11 lines
231 KiB
JavaScript
11 lines
231 KiB
JavaScript
/*! Outlook specific API library */
|
|
/*! Version: 16.0.6807.1000 */
|
|
/*! Update: 7 */
|
|
/*!
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
*/
|
|
|
|
/*!
|
|
Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
|
|
*/
|
|
var __extends=this&&this.__extends||function(b,a){for(var c in a)if(a.hasOwnProperty(c))b[c]=a[c];function d(){this.constructor=b}b.prototype=a===null?Object.create(a):(d.prototype=a.prototype,new d)},OfficeExt;(function(b){var a=function(){function a(){}a.prototype.isMsAjaxLoaded=function(){return typeof Sys!=="undefined"&&typeof Type!=="undefined"&&Sys.StringBuilder&&typeof Sys.StringBuilder==="function"&&Type.registerNamespace&&typeof Type.registerNamespace==="function"&&Type.registerClass&&typeof Type.registerClass==="function"&&typeof Function._validateParams==="function"?true:false};a.prototype.loadMsAjaxFull=function(b){var a=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";OSF.OUtil.loadScript(a,b)};Object.defineProperty(a.prototype,"msAjaxError",{"get":function(){if(this._msAjaxError==null&&this.isMsAjaxLoaded())this._msAjaxError=Error;return this._msAjaxError},"set":function(a){this._msAjaxError=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"msAjaxSerializer",{"get":function(){if(this._msAjaxSerializer==null&&this.isMsAjaxLoaded())this._msAjaxSerializer=Sys.Serialization.JavaScriptSerializer;return this._msAjaxSerializer},"set":function(a){this._msAjaxSerializer=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"msAjaxString",{"get":function(){if(this._msAjaxString==null&&this.isMsAjaxLoaded())this._msAjaxSerializer=String;return this._msAjaxString},"set":function(a){this._msAjaxString=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"msAjaxDebug",{"get":function(){if(this._msAjaxDebug==null&&this.isMsAjaxLoaded())this._msAjaxDebug=Sys.Debug;return this._msAjaxDebug},"set":function(a){this._msAjaxDebug=a},enumerable:true,configurable:true});return a}();b.MicrosoftAjaxFactory=a})(OfficeExt||(OfficeExt={}));var OsfMsAjaxFactory=new OfficeExt.MicrosoftAjaxFactory,OSF=OSF||{},OfficeExt;(function(b){var a=function(){function a(a){this._internalStorage=a}a.prototype.getItem=function(a){try{return this._internalStorage&&this._internalStorage.getItem(a)}catch(b){return null}};a.prototype.setItem=function(b,a){try{this._internalStorage&&this._internalStorage.setItem(b,a)}catch(c){}};a.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(a){}};a.prototype.removeItem=function(a){try{this._internalStorage&&this._internalStorage.removeItem(a)}catch(b){}};a.prototype.getKeysWithPrefix=function(d){var b=[];try{for(var e=this._internalStorage&&this._internalStorage.length||0,a=0;a<e;a++){var c=this._internalStorage.key(a);c.indexOf(d)===0&&b.push(c)}}catch(f){}return b};return a}();b.SafeStorage=a})(OfficeExt||(OfficeExt={}));OSF.OUtil=function(){var f=-1,j="&_xdm_Info=",g="&_serializer_version=",h="_xdm_",m="_serializer_version=",c="#",e={},l=3e4,b=null,d=null,a=+new Date;function k(){var b=2147483647*Math.random();b^=a^(new Date).getMilliseconds()<<Math.floor(Math.random()*(31-10));return b.toString(16)}function i(){if(!b){try{var a=window.sessionStorage}catch(c){a=null}b=new OfficeExt.SafeStorage(a)}return b}return{set_entropy:function(b){if(typeof b=="string")for(var c=0;c<b.length;c+=4){for(var e=0,d=0;d<4&&c+d<b.length;d++)e=(e<<8)+b.charCodeAt(c+d);a^=e}else if(typeof b=="number")a^=b;else a^=2147483647*Math.random();a&=2147483647},extend:function(b,a){var c=function(){};c.prototype=a.prototype;b.prototype=new c;b.prototype.constructor=b;b.uber=a.prototype;if(a.prototype.constructor===Object.prototype.constructor)a.prototype.constructor=a},setNamespace:function(b,a){if(a&&b&&!a[b])a[b]={}},unsetNamespace:function(b,a){if(a&&b&&a[b])delete a[b]},loadScript:function(c,d,f){if(c&&d){var i=window.document,a=e[c];if(!a){var b=i.createElement("script");b.type="text/javascript";a={loaded:false,pendingCallbacks:[d],timer:null};e[c]=a;var g=function(){if(a.timer!=null){clearTimeout(a.timer);delete a.timer}a.loaded=true;for(var c=a.pendingCallbacks.length,b=0;b<c;b++){var d=a.pendingCallbacks.shift();d()}},h=function(){delete e[c];if(a.timer!=null){clearTimeout(a.timer);delete a.timer}for(var d=a.pendingCallbacks.length,b=0;b<d;b++){var f=a.pendingCallbacks.shift();f()}};if(b.readyState)b.onreadystatechange=function(){if(b.readyState=="loaded"||b.readyState=="complete"){b.onreadystatechange=null;g()}};else b.onload=g;b.onerror=h;f=f||l;a.timer=setTimeout(h,f);b.src=c;i.getElementsByTagName("head")[0].appendChild(b)}else if(a.loaded)d();else a.pendingCallbacks.push(d)}},loadCSS:function(c){if(c){var b=window.document,a=b.createElement("link");a.type="text/css";a.rel="stylesheet";a.href=c;b.getElementsByTagName("head")[0].appendChild(a)}},parseEnum:function(b,c){var a=c[b.trim()];if(typeof a=="undefined"){OsfMsAjaxFactory.msAjaxDebug.trace("invalid enumeration string:"+b);throw OsfMsAjaxFactory.msAjaxError.argument("str");}return a},delayExecutionAndCache:function(){var a={calc:arguments[0]};return function(){if(a.calc){a.val=a.calc.apply(this,arguments);delete a.calc}return a.val}},getUniqueId:function(){f=f+1;return f.toString()},formatString:function(){var a=arguments,b=a[0];return b.replace(/{(\d+)}/gm,function(d,b){var c=parseInt(b,10)+1;return a[c]===undefined?"{"+b+"}":a[c]})},generateConversationId:function(){return[k(),k(),(+new Date).toString()].join("_")},getFrameNameAndConversationId:function(b,c){var a=h+b+this.generateConversationId();c.setAttribute("name",a);return this.generateConversationId()},addXdmInfoAsHash:function(b,a){return OSF.OUtil.addInfoAsHash(b,j,a)},addSerializerVersionAsHash:function(b,a){return OSF.OUtil.addInfoAsHash(b,g,a)},addInfoAsHash:function(a,g,e){a=a.trim()||"";var b=a.split(c),d=b.shift(),f=b.join(c);return[d,c,f,g,e].join("")},parseXdmInfo:function(a){return OSF.OUtil.parseXdmInfoWithGivenFragment(a,window.location.hash)},parseXdmInfoWithGivenFragment:function(a,b){return OSF.OUtil.parseInfoWithGivenFragment(j,h,a,b)},parseSerializerVersion:function(a){return OSF.OUtil.parseSerializerVersionWithGivenFragment(a,window.location.hash)},parseSerializerVersionWithGivenFragment:function(a,b){return parseInt(OSF.OUtil.parseInfoWithGivenFragment(g,m,a,b))},parseInfoWithGivenFragment:function(k,h,g,j){var d=j.split(k),a=d.length>1?d[d.length-1]:null,b=i();if(!g&&b){var c=window.name.indexOf(h);if(c>-1){var e=window.name.indexOf(";",c);if(e==-1)e=window.name.length;var f=window.name.substring(c,e);if(a)b.setItem(f,a);else a=b.getItem(f)}}return a},getConversationId:function(){var b=window.location.search,a=null;if(b){var c=b.indexOf("&");a=c>0?b.substring(1,c):b.substr(1);if(a&&a.charAt(a.length-1)==="="){a=a.substring(0,a.length-1);if(a)a=decodeURIComponent(a)}}return a},getInfoItems:function(b){var a=b.split("$");if(typeof a[1]=="undefined")a=b.split("|");return a},getConversationUrl:function(){var b="",c=OSF.OUtil.parseXdmInfo(true);if(c){var a=OSF.OUtil.getInfoItems(c);if(a!=undefined&&a.length>=3)b=a[2]}return b},validateParamObject:function(d,c){var a=Function._validateParams(arguments,[{name:"params",type:Object,mayBeNull:false},{name:"expectedProperties",type:Object,mayBeNull:false},{name:"callback",type:Function,mayBeNull:true}]);if(a)throw a;for(var b in c){a=Function._validateParameter(d[b],c[b],b);if(a)throw a;}},writeProfilerMark:function(a){if(window.msWriteProfilerMark){window.msWriteProfilerMark(a);OsfMsAjaxFactory.msAjaxDebug.trace(a)}},outputDebug:function(a){typeof Sys!=="undefined"&&Sys&&Sys.Debug&&OsfMsAjaxFactory.msAjaxDebug.trace(a)},defineNondefaultProperty:function(d,e,a,b){a=a||{};for(var f in b){var c=b[f];if(a[c]==undefined)a[c]=true}Object.defineProperty(d,e,a);return d},defineNondefaultProperties:function(c,a,d){a=a||{};for(var b in a)OSF.OUtil.defineNondefaultProperty(c,b,a[b],d);return c},defineEnumerableProperty:function(c,b,a){return OSF.OUtil.defineNondefaultProperty(c,b,a,["enumerable"])},defineEnumerableProperties:function(b,a){return OSF.OUtil.defineNondefaultProperties(b,a,["enumerable"])},defineMutableProperty:function(c,b,a){return OSF.OUtil.defineNondefaultProperty(c,b,a,["writable","enumerable","configurable"])},defineMutableProperties:function(b,a){return OSF.OUtil.defineNondefaultProperties(b,a,["writable","enumerable","configurable"])},finalizeProperties:function(c,b){b=b||{};for(var e=Object.getOwnPropertyNames(c),g=e.length,d=0;d<g;d++){var f=e[d],a=Object.getOwnPropertyDescriptor(c,f);if(!a.get&&!a.set)a.writable=b.writable||false;a.configurable=b.configurable||false;a.enumerable=b.enumerable||true;Object.defineProperty(c,f,a)}return c},mapList:function(a,c){var b=[];if(a)for(var d in a)b.push(c(a[d]));return b},listContainsKey:function(b,c){for(var a in b)if(c==a)return true;return false},listContainsValue:function(a,b){for(var c in a)if(b==a[c])return true;return false},augmentList:function(a,b){var d=a.push?function(c,b){a.push(b)}:function(c,b){a[c]=b};for(var c in b)d(c,b[c])},redefineList:function(a,b){for(var d in a)delete a[d];for(var c in b)a[c]=b[c]},isArray:function(a){return Object.prototype.toString.apply(a)==="[object Array]"},isFunction:function(a){return Object.prototype.toString.apply(a)==="[object Function]"},isDate:function(a){return Object.prototype.toString.apply(a)==="[object Date]"},addEventListener:function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&a.attachEvent)a.attachEvent("on"+b,c);else a["on"+b]=c},removeEventListener:function(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false);else if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&a.detachEvent)a.detachEvent("on"+b,c);else a["on"+b]=null},getCookieValue:function(b){var a=RegExp(b+"[^;]+").exec(document.cookie);return a.toString().replace(/^[^=]+./,"")},xhrGet:function(d,c,b){var a;try{a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState==4)if(a.status==200)c(a.responseText);else b(a.status)};a.open("GET",d,true);a.send()}catch(e){b(e)}},xhrGetFull:function(f,d,e,b){var a,c=d;try{a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState==4)if(a.status==200)e(a,c);else b(a.status)};a.open("GET",f,true);a.send()}catch(g){b(g)}},encodeBase64:function(c){if(!c)return c;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=[],b=[],h=0,j,g,i,d,e,f,a,m=c.length;do{j=c.charCodeAt(h++);g=c.charCodeAt(h++);i=c.charCodeAt(h++);a=0;d=j&255;e=j>>8;f=g&255;b[a++]=d>>2;b[a++]=(d&3)<<4|e>>4;b[a++]=(e&15)<<2|f>>6;b[a++]=f&63;if(!isNaN(g)){d=g>>8;e=i&255;f=i>>8;b[a++]=d>>2;b[a++]=(d&3)<<4|e>>4;b[a++]=(e&15)<<2|f>>6;b[a++]=f&63}if(isNaN(g))b[a-1]=64;else if(isNaN(i)){b[a-2]=64;b[a-1]=64}for(var k=0;k<a;k++)l.push(n.charAt(b[k]))}while(h<m);return l.join("")},getSessionStorage:function(){return i()},getLocalStorage:function(){if(!d){try{var a=window.localStorage}catch(b){a=null}d=new OfficeExt.SafeStorage(a)}return d},convertIntToCssHexColor:function(b){return"#"+(Number(b)+16777216).toString(16).slice(-6)},attachClickHandler:function(a,b){a.onclick=function(){b()};a.ontouchend=function(a){b();a.preventDefault()}},getQueryStringParamValue:function(a,c){var d=Function._validateParams(arguments,[{name:"queryString",type:String,mayBeNull:false},{name:"paramName",type:String,mayBeNull:false}]);if(d){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null.");return""}var b=new RegExp("[\\?&]"+c+"=([^&#]*)","i");if(!b.test(a)){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found.");return""}return b.exec(a)[1]},isiOS:function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?true:false},shallowCopy:function(a){var c=a.constructor();for(var b in a)if(a.hasOwnProperty(b))c[b]=a[b];return c},serializeOMEXResponseErrorMessage:function(a){if(typeof JSON!=="undefined")try{return JSON.stringify(a)}catch(b){}return""},createObject:function(a){var c=null;if(a){c={};for(var d=a.length,b=0;b<d;b++)c[a[b].name]=a[b].value}return c}}}();OSF.OUtil.Guid=function(){var a=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return{generateNewGuid:function(){for(var c="",d=+new Date,b=0;b<32&&d>0;b++){if(b==8||b==12||b==16||b==20)c+="-";c+=a[d%16];d=Math.floor(d/16)}for(;b<32;b++){if(b==8||b==12||b==16||b==20)c+="-";c+=a[Math.floor(Math.random()*16)]}return c}}}();window.OSF=OSF;OSF.OUtil.setNamespace("OSF",window);OSF.AppName={Unsupported:0,Excel:1,Word:2,PowerPoint:4,Outlook:8,ExcelWebApp:16,WordWebApp:32,OutlookWebApp:64,Project:128,AccessWebApp:256,PowerpointWebApp:512,ExcelIOS:1024,Sway:2048,WordIOS:4096,PowerPointIOS:8192,Access:16384,Lync:32768,OutlookIOS:65536,OneNoteWebApp:131072};OSF.InternalPerfMarker={DataCoercionBegin:"Agave.HostCall.CoerceDataStart",DataCoercionEnd:"Agave.HostCall.CoerceDataEnd"};OSF.HostCallPerfMarker={IssueCall:"Agave.HostCall.IssueCall",ReceiveResponse:"Agave.HostCall.ReceiveResponse",RuntimeExceptionRaised:"Agave.HostCall.RuntimeExecptionRaised"};OSF.AgaveHostAction={Select:0,UnSelect:1,CancelDialog:2,InsertAgave:3,CtrlF6In:4,CtrlF6Exit:5,CtrlF6ExitShift:6,SelectWithError:7,NotifyHostError:8,RefreshAddinCommands:9};OSF.SharedConstants={NotificationConversationIdSuffix:"_ntf"};OSF.DialogMessageType={DialogMessageReceived:0,DialogClosed:1,NavigationFailed:2,InvalidSchema:3};OSF.OfficeAppContext=function(q,m,i,h,k,n,j,l,p,d,o,f,e,g,c,b,a){this._id=q;this._appName=m;this._appVersion=i;this._appUILocale=h;this._dataLocale=k;this._docUrl=n;this._clientMode=j;this._settings=l;this._reason=p;this._osfControlType=d;this._eToken=o;this._correlationId=f;this._appInstanceId=e;this._touchEnabled=g;this._commerceAllowed=c;this._appMinorVersion=b;this._requirementMatrix=a;this._isDialog=false;this.get_id=function(){return this._id};this.get_appName=function(){return this._appName};this.get_appVersion=function(){return"16.0.4909.1000"};this.get_appUILocale=function(){return this._appUILocale};this.get_dataLocale=function(){return this._dataLocale};this.get_docUrl=function(){return this._docUrl};this.get_clientMode=function(){return this._clientMode};this.get_bindings=function(){return this._bindings};this.get_settings=function(){return this._settings};this.get_reason=function(){return this._reason};this.get_osfControlType=function(){return this._osfControlType};this.get_eToken=function(){return this._eToken};this.get_correlationId=function(){return this._correlationId};this.get_appInstanceId=function(){return this._appInstanceId};this.get_touchEnabled=function(){return this._touchEnabled};this.get_commerceAllowed=function(){return this._commerceAllowed};this.get_appMinorVersion=function(){return this._appMinorVersion};this.get_requirementMatrix=function(){return this._requirementMatrix};this.get_isDialog=function(){return this._isDialog}};OSF.OsfControlType={DocumentLevel:0,ContainerLevel:1};OSF.ClientMode={ReadOnly:0,ReadWrite:1};OSF.OUtil.setNamespace("Microsoft",window);OSF.OUtil.setNamespace("Office",Microsoft);OSF.OUtil.setNamespace("Client",Microsoft.Office);OSF.OUtil.setNamespace("WebExtension",Microsoft.Office);Microsoft.Office.WebExtension.InitializationReason={Inserted:"inserted",DocumentOpened:"documentOpened"};Microsoft.Office.WebExtension.ValueFormat={Unformatted:"unformatted",Formatted:"formatted"};Microsoft.Office.WebExtension.FilterType={All:"all"};Microsoft.Office.WebExtension.Parameters={BindingType:"bindingType",CoercionType:"coercionType",ValueFormat:"valueFormat",FilterType:"filterType",Columns:"columns",SampleData:"sampleData",GoToType:"goToType",SelectionMode:"selectionMode",Id:"id",PromptText:"promptText",ItemName:"itemName",FailOnCollision:"failOnCollision",StartRow:"startRow",StartColumn:"startColumn",RowCount:"rowCount",ColumnCount:"columnCount",Callback:"callback",AsyncContext:"asyncContext",Data:"data",Rows:"rows",OverwriteIfStale:"overwriteIfStale",FileType:"fileType",EventType:"eventType",Handler:"handler",SliceSize:"sliceSize",SliceIndex:"sliceIndex",ActiveView:"activeView",Status:"status",Xml:"xml",Namespace:"namespace",Prefix:"prefix",XPath:"xPath",Text:"text",ImageLeft:"imageLeft",ImageTop:"imageTop",ImageWidth:"imageWidth",ImageHeight:"imageHeight",TaskId:"taskId",FieldId:"fieldId",FieldValue:"fieldValue",ServerUrl:"serverUrl",ListName:"listName",ResourceId:"resourceId",ViewType:"viewType",ViewName:"viewName",GetRawValue:"getRawValue",CellFormat:"cellFormat",TableOptions:"tableOptions",TaskIndex:"taskIndex",ResourceIndex:"resourceIndex",Url:"url",MessageHandler:"messageHandler",Width:"width",Height:"height",RequireHTTPs:"requireHTTPS",MessageToParent:"messageToParent",TargetOrigin:"targetOrigin",XFrameDenySafe:"xFrameDenySafe"};OSF.OUtil.setNamespace("DDA",OSF);OSF.DDA.DocumentMode={ReadOnly:1,ReadWrite:0};OSF.DDA.PropertyDescriptors={AsyncResultStatus:"AsyncResultStatus"};OSF.DDA.EventDescriptors={};OSF.DDA.ListDescriptors={};OSF.DDA.UI={};OSF.DDA.getXdmEventName=function(b,a){return a==Microsoft.Office.WebExtension.EventType.BindingSelectionChanged||a==Microsoft.Office.WebExtension.EventType.BindingDataChanged?b+"_"+a:a};OSF.DDA.MethodDispId={dispidMethodMin:64,dispidGetSelectedDataMethod:64,dispidSetSelectedDataMethod:65,dispidAddBindingFromSelectionMethod:66,dispidAddBindingFromPromptMethod:67,dispidGetBindingMethod:68,dispidReleaseBindingMethod:69,dispidGetBindingDataMethod:70,dispidSetBindingDataMethod:71,dispidAddRowsMethod:72,dispidClearAllRowsMethod:73,dispidGetAllBindingsMethod:74,dispidLoadSettingsMethod:75,dispidSaveSettingsMethod:76,dispidGetDocumentCopyMethod:77,dispidAddBindingFromNamedItemMethod:78,dispidAddColumnsMethod:79,dispidGetDocumentCopyChunkMethod:80,dispidReleaseDocumentCopyMethod:81,dispidNavigateToMethod:82,dispidGetActiveViewMethod:83,dispidGetDocumentThemeMethod:84,dispidGetOfficeThemeMethod:85,dispidGetFilePropertiesMethod:86,dispidClearFormatsMethod:87,dispidSetTableOptionsMethod:88,dispidSetFormatsMethod:89,dispidExecuteRichApiRequestMethod:93,dispidAppCommandInvocationCompletedMethod:94,dispidAddDataPartMethod:128,dispidGetDataPartByIdMethod:129,dispidGetDataPartsByNamespaceMethod:130,dispidGetDataPartXmlMethod:131,dispidGetDataPartNodesMethod:132,dispidDeleteDataPartMethod:133,dispidGetDataNodeValueMethod:134,dispidGetDataNodeXmlMethod:135,dispidGetDataNodesMethod:136,dispidSetDataNodeValueMethod:137,dispidSetDataNodeXmlMethod:138,dispidAddDataNamespaceMethod:139,dispidGetDataUriByPrefixMethod:140,dispidGetDataPrefixByUriMethod:141,dispidGetDataNodeTextMethod:142,dispidSetDataNodeTextMethod:143,dispidMethodMax:143,dispidGetSelectedTaskMethod:110,dispidGetSelectedResourceMethod:111,dispidGetTaskMethod:112,dispidGetResourceFieldMethod:113,dispidGetWSSUrlMethod:114,dispidGetTaskFieldMethod:115,dispidGetProjectFieldMethod:116,dispidGetSelectedViewMethod:117,dispidGetTaskByIndexMethod:118,dispidGetResourceByIndexMethod:119,dispidSetTaskFieldMethod:120,dispidSetResourceFieldMethod:121,dispidGetMaxTaskIndexMethod:122,dispidGetMaxResourceIndexMethod:123,dispidMessageParentMethod:900};OSF.DDA.EventDispId={dispidEventMin:0,dispidInitializeEvent:0,dispidSettingsChangedEvent:1,dispidDocumentSelectionChangedEvent:2,dispidBindingSelectionChangedEvent:3,dispidBindingDataChangedEvent:4,dispidDocumentOpenEvent:5,dispidDocumentCloseEvent:6,dispidActiveViewChangedEvent:7,dispidDocumentThemeChangedEvent:8,dispidOfficeThemeChangedEvent:9,dispidDialogMessageReceivedEvent:10,dispidActivationStatusChangedEvent:32,dispidAppCommandInvokedEvent:39,dispidTaskSelectionChangedEvent:56,dispidResourceSelectionChangedEvent:57,dispidViewSelectionChangedEvent:58,dispidDataNodeAddedEvent:60,dispidDataNodeReplacedEvent:61,dispidDataNodeDeletedEvent:62,dispidEventMax:63};OSF.DDA.ErrorCodeManager=function(){var a={};return{getErrorArgs:function(c){var b=a[c];if(!b)b=a[this.errorCodes.ooeInternalError];if(!b.name)b.name=a[this.errorCodes.ooeInternalError].name;if(!b.message)b.message=a[this.errorCodes.ooeInternalError].message;return b},addErrorMessage:function(c,b){a[c]=b},errorCodes:{ooeSuccess:0,ooeChunkResult:1,ooeCoercionTypeNotSupported:1e3,ooeGetSelectionNotMatchDataType:1001,ooeCoercionTypeNotMatchBinding:1002,ooeInvalidGetRowColumnCounts:1003,ooeSelectionNotSupportCoercionType:1004,ooeInvalidGetStartRowColumn:1005,ooeNonUniformPartialGetNotSupported:1006,ooeGetDataIsTooLarge:1008,ooeFileTypeNotSupported:1009,ooeGetDataParametersConflict:1010,ooeInvalidGetColumns:1011,ooeInvalidGetRows:1012,ooeInvalidReadForBlankRow:1013,ooeUnsupportedDataObject:2e3,ooeCannotWriteToSelection:2001,ooeDataNotMatchSelection:2002,ooeOverwriteWorksheetData:2003,ooeDataNotMatchBindingSize:2004,ooeInvalidSetStartRowColumn:2005,ooeInvalidDataFormat:2006,ooeDataNotMatchCoercionType:2007,ooeDataNotMatchBindingType:2008,ooeSetDataIsTooLarge:2009,ooeNonUniformPartialSetNotSupported:2010,ooeInvalidSetColumns:2011,ooeInvalidSetRows:2012,ooeSetDataParametersConflict:2013,ooeCellDataAmountBeyondLimits:2014,ooeSelectionCannotBound:3e3,ooeBindingNotExist:3002,ooeBindingToMultipleSelection:3003,ooeInvalidSelectionForBindingType:3004,ooeOperationNotSupportedOnThisBindingType:3005,ooeNamedItemNotFound:3006,ooeMultipleNamedItemFound:3007,ooeInvalidNamedItemForBindingType:3008,ooeUnknownBindingType:3009,ooeOperationNotSupportedOnMatrixData:3010,ooeInvalidColumnsForBinding:3011,ooeSettingNameNotExist:4e3,ooeSettingsCannotSave:4001,ooeSettingsAreStale:4002,ooeOperationNotSupported:5e3,ooeInternalError:5001,ooeDocumentReadOnly:5002,ooeEventHandlerNotExist:5003,ooeInvalidApiCallInContext:5004,ooeShuttingDown:5005,ooeUnsupportedEnumeration:5007,ooeIndexOutOfRange:5008,ooeBrowserAPINotSupported:5009,ooeInvalidParam:5010,ooeRequestTimeout:5011,ooeTooManyIncompleteRequests:5100,ooeRequestTokenUnavailable:5101,ooeActivityLimitReached:5102,ooeCustomXmlNodeNotFound:6e3,ooeCustomXmlError:6100,ooeCustomXmlExceedQuota:6101,ooeCustomXmlOutOfDate:6102,ooeNoCapability:7e3,ooeCannotNavTo:7001,ooeSpecifiedIdNotExist:7002,ooeNavOutOfBound:7004,ooeElementMissing:8e3,ooeProtectedError:8001,ooeInvalidCellsValue:8010,ooeInvalidTableOptionValue:8011,ooeInvalidFormatValue:8012,ooeRowIndexOutOfRange:8020,ooeColIndexOutOfRange:8021,ooeFormatValueOutOfRange:8022,ooeCellFormatAmountBeyondLimits:8023,ooeMemoryFileLimit:11e3,ooeNetworkProblemRetrieveFile:11001,ooeInvalidSliceSize:11002,ooeInvalidCallback:11101,ooeInvalidWidth:12e3,ooeInvalidHeight:12001,ooeNavigationError:12002,ooeInvalidScheme:12003,ooeAppDomains:12004,ooeRequireHTTPS:12005,ooeWebDialogClosed:12006,ooeDialogAlreadyOpened:12007},initializeErrorMessages:function(b){a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotSupported]={name:b.L_InvalidCoercion,message:b.L_CoercionTypeNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetSelectionNotMatchDataType]={name:b.L_DataReadError,message:b.L_GetSelectionNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding]={name:b.L_InvalidCoercion,message:b.L_CoercionTypeNotMatchBinding};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRowColumnCounts]={name:b.L_DataReadError,message:b.L_InvalidGetRowColumnCounts};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionNotSupportCoercionType]={name:b.L_DataReadError,message:b.L_SelectionNotSupportCoercionType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetStartRowColumn]={name:b.L_DataReadError,message:b.L_InvalidGetStartRowColumn};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialGetNotSupported]={name:b.L_DataReadError,message:b.L_NonUniformPartialGetNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataIsTooLarge]={name:b.L_DataReadError,message:b.L_GetDataIsTooLarge};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeFileTypeNotSupported]={name:b.L_DataReadError,message:b.L_FileTypeNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataParametersConflict]={name:b.L_DataReadError,message:b.L_GetDataParametersConflict};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetColumns]={name:b.L_DataReadError,message:b.L_InvalidGetColumns};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRows]={name:b.L_DataReadError,message:b.L_InvalidGetRows};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidReadForBlankRow]={name:b.L_DataReadError,message:b.L_InvalidReadForBlankRow};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject]={name:b.L_DataWriteError,message:b.L_UnsupportedDataObject};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotWriteToSelection]={name:b.L_DataWriteError,message:b.L_CannotWriteToSelection};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchSelection]={name:b.L_DataWriteError,message:b.L_DataNotMatchSelection};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOverwriteWorksheetData]={name:b.L_DataWriteError,message:b.L_OverwriteWorksheetData};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingSize]={name:b.L_DataWriteError,message:b.L_DataNotMatchBindingSize};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetStartRowColumn]={name:b.L_DataWriteError,message:b.L_InvalidSetStartRowColumn};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidDataFormat]={name:b.L_InvalidFormat,message:b.L_InvalidDataFormat};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchCoercionType]={name:b.L_InvalidDataObject,message:b.L_DataNotMatchCoercionType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingType]={name:b.L_InvalidDataObject,message:b.L_DataNotMatchBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataIsTooLarge]={name:b.L_DataWriteError,message:b.L_SetDataIsTooLarge};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialSetNotSupported]={name:b.L_DataWriteError,message:b.L_NonUniformPartialSetNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetColumns]={name:b.L_DataWriteError,message:b.L_InvalidSetColumns};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetRows]={name:b.L_DataWriteError,message:b.L_InvalidSetRows};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataParametersConflict]={name:b.L_DataWriteError,message:b.L_SetDataParametersConflict};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionCannotBound]={name:b.L_BindingCreationError,message:b.L_SelectionCannotBound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingNotExist]={name:b.L_InvalidBindingError,message:b.L_BindingNotExist};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingToMultipleSelection]={name:b.L_BindingCreationError,message:b.L_BindingToMultipleSelection};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSelectionForBindingType]={name:b.L_BindingCreationError,message:b.L_InvalidSelectionForBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnThisBindingType]={name:b.L_InvalidBindingOperation,message:b.L_OperationNotSupportedOnThisBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNamedItemNotFound]={name:b.L_BindingCreationError,message:b.L_NamedItemNotFound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeMultipleNamedItemFound]={name:b.L_BindingCreationError,message:b.L_MultipleNamedItemFound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidNamedItemForBindingType]={name:b.L_BindingCreationError,message:b.L_InvalidNamedItemForBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnknownBindingType]={name:b.L_InvalidBinding,message:b.L_UnknownBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnMatrixData]={name:b.L_InvalidBindingOperation,message:b.L_OperationNotSupportedOnMatrixData};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidColumnsForBinding]={name:b.L_InvalidBinding,message:b.L_InvalidColumnsForBinding};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingNameNotExist]={name:b.L_ReadSettingsError,message:b.L_SettingNameNotExist};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsCannotSave]={name:b.L_SaveSettingsError,message:b.L_SettingsCannotSave};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsAreStale]={name:b.L_SettingsStaleError,message:b.L_SettingsAreStale};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported]={name:b.L_HostError,message:b.L_OperationNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError]={name:b.L_InternalError,message:b.L_InternalErrorDescription};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDocumentReadOnly]={name:b.L_PermissionDenied,message:b.L_DocumentReadOnly};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist]={name:b.L_EventRegistrationError,message:b.L_EventHandlerNotExist};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext]={name:b.L_InvalidAPICall,message:b.L_InvalidApiCallInContext};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeShuttingDown]={name:b.L_ShuttingDown,message:b.L_ShuttingDown};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration]={name:b.L_UnsupportedEnumeration,message:b.L_UnsupportedEnumerationMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeIndexOutOfRange]={name:b.L_IndexOutOfRange,message:b.L_IndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeBrowserAPINotSupported]={name:b.L_APINotSupported,message:b.L_BrowserAPINotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTimeout]={name:b.L_APICallFailed,message:b.L_RequestTimeout};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests]={name:b.L_APICallFailed,message:b.L_TooManyIncompleteRequests};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTokenUnavailable]={name:b.L_APICallFailed,message:b.L_RequestTokenUnavailable};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeActivityLimitReached]={name:b.L_APICallFailed,message:b.L_ActivityLimitReached};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlNodeNotFound]={name:b.L_InvalidNode,message:b.L_CustomXmlNodeNotFound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlError]={name:b.L_CustomXmlError,message:b.L_CustomXmlError};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlExceedQuota]={name:b.L_CustomXmlError,message:b.L_CustomXmlError};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlOutOfDate]={name:b.L_CustomXmlError,message:b.L_CustomXmlError};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability]={name:b.L_PermissionDenied,message:b.L_NoCapability};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotNavTo]={name:b.L_CannotNavigateTo,message:b.L_CannotNavigateTo};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSpecifiedIdNotExist]={name:b.L_SpecifiedIdNotExist,message:b.L_SpecifiedIdNotExist};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavOutOfBound]={name:b.L_NavOutOfBound,message:b.L_NavOutOfBound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellDataAmountBeyondLimits]={name:b.L_DataWriteReminder,message:b.L_CellDataAmountBeyondLimits};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeElementMissing]={name:b.L_MissingParameter,message:b.L_ElementMissing};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeProtectedError]={name:b.L_PermissionDenied,message:b.L_NoCapability};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCellsValue]={name:b.L_InvalidValue,message:b.L_InvalidCellsValue};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidTableOptionValue]={name:b.L_InvalidValue,message:b.L_InvalidTableOptionValue};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidFormatValue]={name:b.L_InvalidValue,message:b.L_InvalidFormatValue};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeRowIndexOutOfRange]={name:b.L_OutOfRange,message:b.L_RowIndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeColIndexOutOfRange]={name:b.L_OutOfRange,message:b.L_ColIndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeFormatValueOutOfRange]={name:b.L_OutOfRange,message:b.L_FormatValueOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellFormatAmountBeyondLimits]={name:b.L_FormattingReminder,message:b.L_CellFormatAmountBeyondLimits};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeMemoryFileLimit]={name:b.L_MemoryLimit,message:b.L_CloseFileBeforeRetrieve};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNetworkProblemRetrieveFile]={name:b.L_NetworkProblem,message:b.L_NetworkProblemRetrieveFile};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSliceSize]={name:b.L_InvalidValue,message:b.L_SliceSizeNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened]={name:b.L_DisplayDialogError,message:b.L_DialogAlreadyOpened};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidWidth]={name:b.L_IndexOutOfRange,message:b.L_IndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidHeight]={name:b.L_IndexOutOfRange,message:b.L_IndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavigationError]={name:b.L_DisplayDialogError,message:b.L_NetworkProblem};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidScheme]={name:b.L_DialogNavigateError,message:b.L_DialogAddressNotTrusted};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeAppDomains]={name:b.L_DisplayDialogError,message:b.L_DialogAddressNotTrusted};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequireHTTPS]={name:b.L_DisplayDialogError,message:b.L_DialogAddressNotTrusted}}}}();var OfficeExt;(function(a){var b;(function(a){var c=function(){function a(a){this.isSetSupported=function(b,a){if(b==undefined)return false;if(a==undefined)a=0;var e=this._setMap,d=e._sets;if(d.hasOwnProperty(b.toLowerCase())){var c=d[b.toLowerCase()];return c>0&&c>=a}else return false};this._setMap=a}return a}();a.RequirementMatrix=c;var b=function(){function a(a){this._addSetMap=function(a){for(var b in a)this._sets[b]=a[b]};this._sets=a}return a}();a.DefaultSetRequirement=b;var k=function(b){__extends(a,b);function a(){return b.call(this,{dialogapi:1.1})||this}return a}(b);a.DefaultRequiredDialogSetRequirement=k;var j=function(b){__extends(a,b);function a(){return b.call(this,{dialogorigin:1.1})||this}return a}(b);a.DefaultOptionalDialogSetRequirement=j;var e=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,documentevents:1.1,excelapi:1.1,matrixbindings:1.1,matrixcoercion:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1})}return a}(b);a.ExcelClientDefaultSetRequirement=e;var l=function(b){__extends(a,b);function a(){b.call(this);this._addSetMap({imagecoercion:1.1})}return a}(e);a.ExcelClientV1DefaultSetRequirement=l;var m=function(b){__extends(a,b);function a(){b.call(this,{mailbox:1.3})}return a}(b);a.OutlookClientDefaultSetRequirement=m;var g=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,compressedfile:1.1,customxmlparts:1.1,documentevents:1.1,file:1.1,htmlcoercion:1.1,matrixbindings:1.1,matrixcoercion:1.1,ooxmlcoercion:1.1,pdffile:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1,textfile:1.1,wordapi:1.1})}return a}(b);a.WordClientDefaultSetRequirement=g;var q=function(b){__extends(a,b);function a(){b.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2,imagecoercion:1.1})}return a}(g);a.WordClientV1DefaultSetRequirement=q;var d=function(b){__extends(a,b);function a(){b.call(this,{activeview:1.1,compressedfile:1.1,documentevents:1.1,file:1.1,pdffile:1.1,selection:1.1,settings:1.1,textcoercion:1.1})}return a}(b);a.PowerpointClientDefaultSetRequirement=d;var i=function(b){__extends(a,b);function a(){b.call(this);this._addSetMap({imagecoercion:1.1})}return a}(d);a.PowerpointClientV1DefaultSetRequirement=i;var p=function(b){__extends(a,b);function a(){b.call(this,{selection:1.1,textcoercion:1.1})}return a}(b);a.ProjectClientDefaultSetRequirement=p;var v=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,documentevents:1.1,matrixbindings:1.1,matrixcoercion:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1,file:1.1})}return a}(b);a.ExcelWebDefaultSetRequirement=v;var x=function(b){__extends(a,b);function a(){b.call(this,{customxmlparts:1.1,documentevents:1.1,file:1.1,ooxmlcoercion:1.1,selection:1.1,settings:1.1,textcoercion:1.1})}return a}(b);a.WordWebDefaultSetRequirement=x;var o=function(b){__extends(a,b);function a(){b.call(this,{activeview:1.1,settings:1.1})}return a}(b);a.PowerpointWebDefaultSetRequirement=o;var f=function(b){__extends(a,b);function a(){b.call(this,{mailbox:1.3})}return a}(b);a.OutlookWebDefaultSetRequirement=f;var w=function(b){__extends(a,b);function a(){b.call(this,{activeview:1.1,documentevents:1.1,selection:1.1,settings:1.1,textcoercion:1.1})}return a}(b);a.SwayWebDefaultSetRequirement=w;var s=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,partialtablebindings:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1})}return a}(b);a.AccessWebDefaultSetRequirement=s;var u=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,documentevents:1.1,matrixbindings:1.1,matrixcoercion:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1})}return a}(b);a.ExcelIOSDefaultSetRequirement=u;var h=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,compressedfile:1.1,customxmlparts:1.1,documentevents:1.1,file:1.1,htmlcoercion:1.1,matrixbindings:1.1,matrixcoercion:1.1,ooxmlcoercion:1.1,pdffile:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1,textfile:1.1})}return a}(b);a.WordIOSDefaultSetRequirement=h;var t=function(b){__extends(a,b);function a(){b.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2})}return a}(h);a.WordIOSV1DefaultSetRequirement=t;var n=function(b){__extends(a,b);function a(){b.call(this,{activeview:1.1,compressedfile:1.1,documentevents:1.1,file:1.1,pdffile:1.1,selection:1.1,settings:1.1,textcoercion:1.1})}return a}(b);a.PowerpointIOSDefaultSetRequirement=n;var r=function(b){__extends(a,b);function a(){b.call(this,{mailbox:1.1})}return a}(b);a.OutlookIOSDefaultSetRequirement=r;var y=function(){function a(){}a.initializeOsfDda=function(){OSF.OUtil.setNamespace("Requirement",OSF.DDA)};a.getDefaultRequirementMatrix=function(e){this.initializeDefaultSetMatrix();var d=undefined,f=e.get_requirementMatrix();if(f!=undefined&&f.length>0&&typeof JSON!=="undefined"){var h=JSON.parse(e.get_requirementMatrix().toLowerCase());d=new c(new b(h))}else{var g=a.getClientFullVersionString(e);if(a.DefaultSetArrayMatrix!=undefined&&a.DefaultSetArrayMatrix[g]!=undefined)d=new c(a.DefaultSetArrayMatrix[g]);else d=new c(new b({}))}return d};a.getDefaultDialogRequirementMatrix=function(g){var b=new k,e=g.get_requirementMatrix();if(e!=undefined&&e.length>0&&typeof JSON!=="undefined"){var d=JSON.parse(e.toLowerCase());for(var a in b._sets)if(d.hasOwnProperty(a))b._sets[a]=d[a];var f=new j;for(var a in f._sets)if(d.hasOwnProperty(a))b._sets[a]=d[a]}return new c(b)};a.getClientFullVersionString=function(a){var d=a.get_appMinorVersion(),e="",b="",c=a.get_appName(),f=c==1024||c==4096||c==8192||c==65536;if(f&&a.get_appVersion()==1)if(c==4096&&d>=15)b="16.00.01";else b="16.00";else if(a.get_appName()==64)b=a.get_appVersion();else{if(d<10)e="0"+d;else e=""+d;b=a.get_appVersion()+"."+e}return a.get_appName()+"-"+b};a.initializeDefaultSetMatrix=function(){a.DefaultSetArrayMatrix[a.Excel_RCLIENT_1600]=new e;a.DefaultSetArrayMatrix[a.Word_RCLIENT_1600]=new g;a.DefaultSetArrayMatrix[a.PowerPoint_RCLIENT_1600]=new d;a.DefaultSetArrayMatrix[a.Excel_RCLIENT_1601]=new l;a.DefaultSetArrayMatrix[a.Word_RCLIENT_1601]=new q;a.DefaultSetArrayMatrix[a.PowerPoint_RCLIENT_1601]=new i;a.DefaultSetArrayMatrix[a.Outlook_RCLIENT_1600]=new m;a.DefaultSetArrayMatrix[a.Excel_WAC_1600]=new v;a.DefaultSetArrayMatrix[a.Word_WAC_1600]=new x;a.DefaultSetArrayMatrix[a.Outlook_WAC_1600]=new f;a.DefaultSetArrayMatrix[a.Outlook_WAC_1601]=new f;a.DefaultSetArrayMatrix[a.Project_RCLIENT_1600]=new p;a.DefaultSetArrayMatrix[a.Access_WAC_1600]=new s;a.DefaultSetArrayMatrix[a.PowerPoint_WAC_1600]=new o;a.DefaultSetArrayMatrix[a.Excel_IOS_1600]=new u;a.DefaultSetArrayMatrix[a.SWAY_WAC_1600]=new w;a.DefaultSetArrayMatrix[a.Word_IOS_1600]=new h;a.DefaultSetArrayMatrix[a.Word_IOS_16001]=new t;a.DefaultSetArrayMatrix[a.PowerPoint_IOS_1600]=new n;a.DefaultSetArrayMatrix[a.Outlook_IOS_1600]=new r};a.Excel_RCLIENT_1600="1-16.00";a.Excel_RCLIENT_1601="1-16.01";a.Word_RCLIENT_1600="2-16.00";a.Word_RCLIENT_1601="2-16.01";a.PowerPoint_RCLIENT_1600="4-16.00";a.PowerPoint_RCLIENT_1601="4-16.01";a.Outlook_RCLIENT_1600="8-16.00";a.Excel_WAC_1600="16-16.00";a.Word_WAC_1600="32-16.00";a.Outlook_WAC_1600="64-16.00";a.Outlook_WAC_1601="64-16.01";a.Project_RCLIENT_1600="128-16.00";a.Access_WAC_1600="256-16.00";a.PowerPoint_WAC_1600="512-16.00";a.Excel_IOS_1600="1024-16.00";a.SWAY_WAC_1600="2048-16.00";a.Word_IOS_1600="4096-16.00";a.Word_IOS_16001="4096-16.00.01";a.PowerPoint_IOS_1600="8192-16.00";a.Outlook_IOS_1600="65536-16.00";a.DefaultSetArrayMatrix={};return a}();a.RequirementsMatrixFactory=y})(b=a.Requirement||(a.Requirement={}))})(OfficeExt||(OfficeExt={}));OfficeExt.Requirement.RequirementsMatrixFactory.initializeOsfDda();Microsoft.Office.WebExtension.ApplicationMode={WebEditor:"webEditor",WebViewer:"webViewer",Client:"client"};Microsoft.Office.WebExtension.DocumentMode={ReadOnly:"readOnly",ReadWrite:"readWrite"};OSF.NamespaceManager=function(){var b,a=false;return{enableShortcut:function(){if(!a){if(window.Office)b=window.Office;else OSF.OUtil.setNamespace("Office",window);window.Office=Microsoft.Office.WebExtension;a=true}},disableShortcut:function(){if(a){if(b)window.Office=b;else OSF.OUtil.unsetNamespace("Office",window);a=false}}}}();OSF.NamespaceManager.enableShortcut();Microsoft.Office.WebExtension.useShortNamespace=function(a){if(a)OSF.NamespaceManager.enableShortcut();else OSF.NamespaceManager.disableShortcut()};Microsoft.Office.WebExtension.select=function(a,b){var c;if(a&&typeof a=="string"){var d=a.indexOf("#");if(d!=-1){var h=a.substring(0,d),g=a.substring(d+1);switch(h){case"binding":case"bindings":if(g)c=new OSF.DDA.BindingPromise(g)}}}if(!c){if(b){var e=typeof b;if(e=="function"){var f={};f[Microsoft.Office.WebExtension.Parameters.Callback]=b;OSF.DDA.issueAsyncResult(f,OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext,OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext))}else throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,e);}}else{c.onFail=b;return c}};OSF.DDA.Context=function(a,e,f,b,c){OSF.OUtil.defineEnumerableProperties(this,{contentLanguage:{value:a.get_dataLocale()},displayLanguage:{value:a.get_appUILocale()},touchEnabled:{value:a.get_touchEnabled()},commerceAllowed:{value:a.get_commerceAllowed()}});f&&OSF.OUtil.defineEnumerableProperty(this,"license",{value:f});a.ui&&OSF.OUtil.defineEnumerableProperty(this,"ui",{value:a.ui});if(a.get_isDialog()){var d=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(a);OSF.OUtil.defineEnumerableProperty(this,"requirements",{value:d})}else{e&&OSF.OUtil.defineEnumerableProperty(this,"document",{value:e});if(b){var g=b.displayName||"appOM";delete b.displayName;OSF.OUtil.defineEnumerableProperty(this,g,{value:b})}c&&OSF.OUtil.defineEnumerableProperty(this,"officeTheme",{"get":function(){return c()}});var d=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(a);OSF.OUtil.defineEnumerableProperty(this,"requirements",{value:d})}};OSF.DDA.OutlookContext=function(c,a,d,e,b){OSF.DDA.OutlookContext.uber.constructor.call(this,c,null,d,e,b);a&&OSF.OUtil.defineEnumerableProperty(this,"roamingSettings",{value:a})};OSF.OUtil.extend(OSF.DDA.OutlookContext,OSF.DDA.Context);OSF.DDA.OutlookAppOm=function(){};OSF.DDA.Document=function(b,c){var a;switch(b.get_clientMode()){case OSF.ClientMode.ReadOnly:a=Microsoft.Office.WebExtension.DocumentMode.ReadOnly;break;case OSF.ClientMode.ReadWrite:a=Microsoft.Office.WebExtension.DocumentMode.ReadWrite}c&&OSF.OUtil.defineEnumerableProperty(this,"settings",{value:c});OSF.OUtil.defineMutableProperties(this,{mode:{value:a},url:{value:b.get_docUrl()}})};OSF.DDA.JsomDocument=function(c,a,d){OSF.DDA.JsomDocument.uber.constructor.call(this,c,d);a&&OSF.OUtil.defineEnumerableProperty(this,"bindings",{"get":function(){return a}});var b=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[b.GetSelectedDataAsync,b.SetSelectedDataAsync]);OSF.DDA.DispIdHost.addEventSupport(this,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged]))};OSF.OUtil.extend(OSF.DDA.JsomDocument,OSF.DDA.Document);OSF.OUtil.defineEnumerableProperty(Microsoft.Office.WebExtension,"context",{"get":function(){var a;if(OSF&&OSF._OfficeAppFactory)a=OSF._OfficeAppFactory.getContext();return a}});OSF.DDA.License=function(a){OSF.OUtil.defineEnumerableProperty(this,"value",{value:a})};OSF.DDA.ApiMethodCall=function(b,e,d,f,g){var c=b.length,a=OSF.OUtil.delayExecutionAndCache(function(){return OSF.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,g)});this.verifyArguments=function(d,f){for(var e in d){var b=d[e],c=f[e];if(b["enum"])switch(typeof c){case"string":if(OSF.OUtil.listContainsValue(b["enum"],c))break;case"undefined":throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration;default:throw a();}if(b.types)if(!OSF.OUtil.listContainsValue(b.types,typeof c))throw a();}};this.extractRequiredArguments=function(g,l,j){if(g.length<c)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_MissingRequiredArguments);for(var e=[],d=0;d<c;d++)e.push(g[d]);this.verifyArguments(b,e);var i={};for(d=0;d<c;d++){var f=b[d],h=e[d];if(f.verify){var k=f.verify(h,l,j);if(!k)throw a();}i[f.name]=h}return i},this.fillOptions=function(a,f,h,g){a=a||{};for(var d in e)if(!OSF.OUtil.listContainsKey(a,d)){var c=undefined,b=e[d];if(b.calculate&&f)c=b.calculate(f,h,g);if(!c&&b.defaultValue!==undefined)c=b.defaultValue;a[d]=c}return a};this.constructCallArgs=function(c,e,g,b){var a={};for(var i in c)a[i]=c[i];for(var h in e)a[h]=e[h];for(var j in d)a[j]=d[j](g,b);if(f)a=f(a,g,b);return a}};OSF.OUtil.setNamespace("AsyncResultEnum",OSF.DDA);OSF.DDA.AsyncResultEnum.Properties={Context:"Context",Value:"Value",Status:"Status",Error:"Error"};Microsoft.Office.WebExtension.AsyncResultStatus={Succeeded:"succeeded",Failed:"failed"};OSF.DDA.AsyncResultEnum.ErrorCode={Success:0,Failed:1};OSF.DDA.AsyncResultEnum.ErrorProperties={Name:"Name",Message:"Message",Code:"Code"};OSF.DDA.AsyncMethodNames={};OSF.DDA.AsyncMethodNames.addNames=function(b){for(var a in b){var c={};OSF.OUtil.defineEnumerableProperties(c,{id:{value:a},displayName:{value:b[a]}});OSF.DDA.AsyncMethodNames[a]=c}};OSF.DDA.AsyncMethodCall=function(c,d,h,e,f,i,j){var b=c.length,a=new OSF.DDA.ApiMethodCall(c,d,h,i,j);function g(g,i,k,j){if(g.length>b+2)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var c,e,h=g.length-1;h>=b;h--){var f=g[h];switch(typeof f){case"object":if(c)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else c=f;break;case"function":if(e)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalFunction);else e=f;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}c=a.fillOptions(c,i,k,j);if(e)if(c[Microsoft.Office.WebExtension.Parameters.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;else c[Microsoft.Office.WebExtension.Parameters.Callback]=e;a.verifyArguments(d,c);return c}this.verifyAndExtractCall=function(e,c,b){var d=a.extractRequiredArguments(e,c,b),h=g(e,d,c,b),f=a.constructCallArgs(d,h,c,b);return f};this.processResponse=function(c,b,g,d){var a;if(c==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)if(e)a=e(b,g,d);else a=b;else if(f)a=f(c,b);else a=OSF.DDA.ErrorCodeManager.getErrorArgs(c);return a};this.getCallArgs=function(f){for(var a,c,e=f.length-1;e>=b;e--){var d=f[e];switch(typeof d){case"object":a=d;break;case"function":c=d}}a=a||{};if(c)a[Microsoft.Office.WebExtension.Parameters.Callback]=c;return a}};OSF.DDA.AsyncMethodCallFactory=function(){return{manufacture:function(a){var c=a.supportedOptions?OSF.OUtil.createObject(a.supportedOptions):[],b=a.privateStateCallbacks?OSF.OUtil.createObject(a.privateStateCallbacks):[];return new OSF.DDA.AsyncMethodCall(a.requiredArguments||[],c,b,a.onSucceeded,a.onFailed,a.checkCallArgs,a.method.displayName)}}}();OSF.DDA.AsyncMethodCalls={};OSF.DDA.AsyncMethodCalls.define=function(a){OSF.DDA.AsyncMethodCalls[a.method.id]=OSF.DDA.AsyncMethodCallFactory.manufacture(a)};OSF.DDA.Error=function(c,a,b){OSF.OUtil.defineEnumerableProperties(this,{name:{value:c},message:{value:a},code:{value:b}})};OSF.DDA.AsyncResult=function(b,a){OSF.OUtil.defineEnumerableProperties(this,{value:{value:b[OSF.DDA.AsyncResultEnum.Properties.Value]},status:{value:a?Microsoft.Office.WebExtension.AsyncResultStatus.Failed:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded}});b[OSF.DDA.AsyncResultEnum.Properties.Context]&&OSF.OUtil.defineEnumerableProperty(this,"asyncContext",{value:b[OSF.DDA.AsyncResultEnum.Properties.Context]});a&&OSF.OUtil.defineEnumerableProperty(this,"error",{value:new OSF.DDA.Error(a[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],a[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],a[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])})};OSF.DDA.issueAsyncResult=function(d,f,a){var e=d[Microsoft.Office.WebExtension.Parameters.Callback];if(e){var c={};c[OSF.DDA.AsyncResultEnum.Properties.Context]=d[Microsoft.Office.WebExtension.Parameters.AsyncContext];var b;if(f==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)c[OSF.DDA.AsyncResultEnum.Properties.Value]=a;else{b={};a=a||OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);b[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=f||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;b[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=a.name||a;b[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=a.message||a}e(new OSF.DDA.AsyncResult(c,b))}};OSF.DDA.SyncMethodNames={};OSF.DDA.SyncMethodNames.addNames=function(b){for(var a in b){var c={};OSF.OUtil.defineEnumerableProperties(c,{id:{value:a},displayName:{value:b[a]}});OSF.DDA.SyncMethodNames[a]=c}};OSF.DDA.SyncMethodCall=function(b,c,f,g,h){var d=b.length,a=new OSF.DDA.ApiMethodCall(b,c,f,g,h);function e(e,h,j,i){if(e.length>d+1)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var b,k,f=e.length-1;f>=d;f--){var g=e[f];switch(typeof g){case"object":if(b)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else b=g;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}b=a.fillOptions(b,h,j,i);a.verifyArguments(c,b);return b}this.verifyAndExtractCall=function(f,c,b){var d=a.extractRequiredArguments(f,c,b),h=e(f,d,c,b),g=a.constructCallArgs(d,h,c,b);return g}};OSF.DDA.SyncMethodCallFactory=function(){return{manufacture:function(a){var b=a.supportedOptions?OSF.OUtil.createObject(a.supportedOptions):[];return new OSF.DDA.SyncMethodCall(a.requiredArguments||[],b,a.privateStateCallbacks,a.checkCallArgs,a.method.displayName)}}}();OSF.DDA.SyncMethodCalls={};OSF.DDA.SyncMethodCalls.define=function(a){OSF.DDA.SyncMethodCalls[a.method.id]=OSF.DDA.SyncMethodCallFactory.manufacture(a)};OSF.DDA.ListType=function(){var a={};return{setListType:function(c,b){a[c]=b},isListType:function(b){return OSF.OUtil.listContainsKey(a,b)},getDescriptor:function(b){return a[b]}}}();OSF.DDA.HostParameterMap=function(a,b){var h="toHost",d="fromHost",f="self",c={};c[Microsoft.Office.WebExtension.Parameters.Data]={toHost:function(a){if(a!=null&&a.rows!==undefined){var b={};b[OSF.DDA.TableDataProperties.TableRows]=a.rows;b[OSF.DDA.TableDataProperties.TableHeaders]=a.headers;a=b}return a},fromHost:function(a){return a}};c[Microsoft.Office.WebExtension.Parameters.SampleData]=c[Microsoft.Office.WebExtension.Parameters.Data];function e(j,i){var m=j?{}:undefined;for(var h in j){var g=j[h],f;if(OSF.DDA.ListType.isListType(h)){f=[];for(var n in g)f.push(e(g[n],i))}else if(OSF.OUtil.listContainsKey(c,h))f=c[h][i](g);else if(i==d&&a.preserveNesting(h))f=e(g,i);else{var k=b[h];if(k){var l=k[i];if(l){f=l[g];if(f===undefined)f=g}}else f=g}m[h]=f}return m}function i(k,j){var e;for(var c in j){var d;if(a.isComplexType(c))d=i(k,b[c][h]);else d=k[c];if(d!=undefined){if(!e)e={};var g=j[c];if(g==f)g=c;e[g]=a.pack(c,d)}}return e}function g(k,j,h){if(!h)h={};for(var e in j){var l=j[e],c;if(l==f)c=k;else c=k[l];if(c===null||c===undefined)h[e]=undefined;else{c=a.unpack(e,c);var i;if(a.isComplexType(e)){i=b[e][d];if(a.preserveNesting(e))h[e]=g(c,i);else g(c,i,h)}else{if(OSF.DDA.ListType.isListType(e)){i={};var n=OSF.DDA.ListType.getDescriptor(e);i[n]=f;for(var m in c)c[m]=g(c[m],i)}h[e]=c}}}return h}function j(k,f,a){var d=b[k][a],c;if(a=="toHost"){var j=e(f,a);c=i(j,d)}else if(a=="fromHost"){var h=g(f,d);c=e(h,a)}return c}if(!b)b={};this.addMapping=function(l,i){var a,e;if(i.map){a=i.map;e={};for(var j in a){var k=a[j];if(k==f)k=j;e[k]=j}}else{a=i.toHost;e=i.fromHost}var c=b[l];if(c){var g=c[h];for(var n in g)a[n]=g[n];g=c[d];for(var m in g)e[m]=g[m]}else c=b[l]={};c[h]=a;c[d]=e};this.toHost=function(b,a){return j(b,a,h)};this.fromHost=function(a,b){return j(a,b,d)};this.self=f;this.addComplexType=function(b){a.addComplexType(b)};this.getDynamicType=function(b){return a.getDynamicType(b)};this.setDynamicType=function(c,b){a.setDynamicType(c,b)};this.dynamicTypes=c;this.doMapValues=function(a,b){return e(a,b)}};OSF.DDA.SpecialProcessor=function(b,a){this.addComplexType=function(a){b.push(a)};this.getDynamicType=function(b){return a[b]};this.setDynamicType=function(c,b){a[c]=b};this.isComplexType=function(a){return OSF.OUtil.listContainsValue(b,a)};this.isDynamicType=function(b){return OSF.OUtil.listContainsKey(a,b)};this.preserveNesting=function(b){var a=[];OSF.DDA.PropertyDescriptors&&a.push(OSF.DDA.PropertyDescriptors.Subset);if(OSF.DDA.DataNodeEventProperties)a=a.concat([OSF.DDA.DataNodeEventProperties.OldNode,OSF.DDA.DataNodeEventProperties.NewNode,OSF.DDA.DataNodeEventProperties.NextSiblingNode]);return OSF.OUtil.listContainsValue(a,b)};this.pack=function(c,d){var b;if(this.isDynamicType(c))b=a[c].toHost(d);else b=d;return b};this.unpack=function(c,d){var b;if(this.isDynamicType(c))b=a[c].fromHost(d);else b=d;return b}};OSF.DDA.getDecoratedParameterMap=function(d,c){var a=new OSF.DDA.HostParameterMap(d),f=a.self;function b(a){var c=null;if(a){c={};for(var d=a.length,b=0;b<d;b++)c[a[b].name]=a[b].value}return c}a.define=function(c){var d={},e=b(c.toHost);if(c.invertible)d.map=e;else if(c.canonical)d.toHost=d.fromHost=e;else{d.toHost=e;d.fromHost=b(c.fromHost)}a.addMapping(c.type,d);c.isComplexType&&a.addComplexType(c.type)};for(var e in c)a.define(c[e]);return a};OSF.OUtil.setNamespace("DispIdHost",OSF.DDA);OSF.DDA.DispIdHost.Methods={InvokeMethod:"invokeMethod",AddEventHandler:"addEventHandler",RemoveEventHandler:"removeEventHandler",OpenDialog:"openDialog",CloseDialog:"closeDialog",MessageParent:"messageParent"};OSF.DDA.DispIdHost.Delegates={ExecuteAsync:"executeAsync",RegisterEventAsync:"registerEventAsync",UnregisterEventAsync:"unregisterEventAsync",ParameterMap:"parameterMap",MessageParent:"messageParent"};OSF.DDA.DispIdHost.Facade=function(d,e){var b={},c=OSF.DDA.AsyncMethodNames,a=OSF.DDA.MethodDispId,h={GoToByIdAsync:a.dispidNavigateToMethod,GetSelectedDataAsync:a.dispidGetSelectedDataMethod,SetSelectedDataAsync:a.dispidSetSelectedDataMethod,GetDocumentCopyChunkAsync:a.dispidGetDocumentCopyChunkMethod,ReleaseDocumentCopyAsync:a.dispidReleaseDocumentCopyMethod,GetDocumentCopyAsync:a.dispidGetDocumentCopyMethod,AddFromSelectionAsync:a.dispidAddBindingFromSelectionMethod,AddFromPromptAsync:a.dispidAddBindingFromPromptMethod,AddFromNamedItemAsync:a.dispidAddBindingFromNamedItemMethod,GetAllAsync:a.dispidGetAllBindingsMethod,GetByIdAsync:a.dispidGetBindingMethod,ReleaseByIdAsync:a.dispidReleaseBindingMethod,GetDataAsync:a.dispidGetBindingDataMethod,SetDataAsync:a.dispidSetBindingDataMethod,AddRowsAsync:a.dispidAddRowsMethod,AddColumnsAsync:a.dispidAddColumnsMethod,DeleteAllDataValuesAsync:a.dispidClearAllRowsMethod,RefreshAsync:a.dispidLoadSettingsMethod,SaveAsync:a.dispidSaveSettingsMethod,GetActiveViewAsync:a.dispidGetActiveViewMethod,GetFilePropertiesAsync:a.dispidGetFilePropertiesMethod,GetOfficeThemeAsync:a.dispidGetOfficeThemeMethod,GetDocumentThemeAsync:a.dispidGetDocumentThemeMethod,ClearFormatsAsync:a.dispidClearFormatsMethod,SetTableOptionsAsync:a.dispidSetTableOptionsMethod,SetFormatsAsync:a.dispidSetFormatsMethod,ExecuteRichApiRequestAsync:a.dispidExecuteRichApiRequestMethod,AppCommandInvocationCompletedAsync:a.dispidAppCommandInvocationCompletedMethod,AddDataPartAsync:a.dispidAddDataPartMethod,GetDataPartByIdAsync:a.dispidGetDataPartByIdMethod,GetDataPartsByNameSpaceAsync:a.dispidGetDataPartsByNamespaceMethod,GetPartXmlAsync:a.dispidGetDataPartXmlMethod,GetPartNodesAsync:a.dispidGetDataPartNodesMethod,DeleteDataPartAsync:a.dispidDeleteDataPartMethod,GetNodeValueAsync:a.dispidGetDataNodeValueMethod,GetNodeXmlAsync:a.dispidGetDataNodeXmlMethod,GetRelativeNodesAsync:a.dispidGetDataNodesMethod,SetNodeValueAsync:a.dispidSetDataNodeValueMethod,SetNodeXmlAsync:a.dispidSetDataNodeXmlMethod,AddDataPartNamespaceAsync:a.dispidAddDataNamespaceMethod,GetDataPartNamespaceAsync:a.dispidGetDataUriByPrefixMethod,GetDataPartPrefixAsync:a.dispidGetDataPrefixByUriMethod,GetNodeTextAsync:a.dispidGetDataNodeTextMethod,SetNodeTextAsync:a.dispidSetDataNodeTextMethod,GetSelectedTask:a.dispidGetSelectedTaskMethod,GetTask:a.dispidGetTaskMethod,GetWSSUrl:a.dispidGetWSSUrlMethod,GetTaskField:a.dispidGetTaskFieldMethod,GetSelectedResource:a.dispidGetSelectedResourceMethod,GetResourceField:a.dispidGetResourceFieldMethod,GetProjectField:a.dispidGetProjectFieldMethod,GetSelectedView:a.dispidGetSelectedViewMethod,GetTaskByIndex:a.dispidGetTaskByIndexMethod,GetResourceByIndex:a.dispidGetResourceByIndexMethod,SetTaskField:a.dispidSetTaskFieldMethod,SetResourceField:a.dispidSetResourceFieldMethod,GetMaxTaskIndex:a.dispidGetMaxTaskIndexMethod,GetMaxResourceIndex:a.dispidGetMaxResourceIndexMethod};for(var f in h)if(c[f])b[c[f].id]=h[f];c=OSF.DDA.SyncMethodNames;a=OSF.DDA.MethodDispId;var k={MessageParent:a.dispidMessageParentMethod};for(var f in k)if(c[f])b[c[f].id]=h[f];c=Microsoft.Office.WebExtension.EventType;a=OSF.DDA.EventDispId;var j={SettingsChanged:a.dispidSettingsChangedEvent,DocumentSelectionChanged:a.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:a.dispidBindingSelectionChangedEvent,BindingDataChanged:a.dispidBindingDataChangedEvent,ActiveViewChanged:a.dispidActiveViewChangedEvent,OfficeThemeChanged:a.dispidOfficeThemeChangedEvent,DocumentThemeChanged:a.dispidDocumentThemeChangedEvent,AppCommandInvoked:a.dispidAppCommandInvokedEvent,DialogMessageReceived:a.dispidDialogMessageReceivedEvent,TaskSelectionChanged:a.dispidTaskSelectionChangedEvent,ResourceSelectionChanged:a.dispidResourceSelectionChangedEvent,ViewSelectionChanged:a.dispidViewSelectionChangedEvent,DataNodeInserted:a.dispidDataNodeAddedEvent,DataNodeReplaced:a.dispidDataNodeReplacedEvent,DataNodeDeleted:a.dispidDataNodeDeletedEvent};for(var i in j)if(c[i])b[c[i]]=j[i];function g(a,c,d,b){if(typeof a=="number"){if(!b)b=c.getCallArgs(d);OSF.DDA.issueAsyncResult(b,a,OSF.DDA.ErrorCodeManager.getErrorArgs(a))}else throw a;}this[OSF.DDA.DispIdHost.Methods.InvokeMethod]=function(n,j,k,l){var a;try{var h=n.id,c=OSF.DDA.AsyncMethodCalls[h];a=c.verifyAndExtractCall(j,k,l);var i=b[h],m=d(h),f;if(e.toHost)f=e.toHost(i,a);else f=a;m[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]({dispId:i,hostCallArgs:f,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:function(f,d){var b;if(f==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)if(e.fromHost)b=e.fromHost(i,d);else b=d;else b=d;var g=c.processResponse(f,b,k,a);OSF.DDA.issueAsyncResult(a,f,g)}})}catch(o){g(o,c,j,a)}};this[OSF.DDA.DispIdHost.Methods.AddEventHandler]=function(j,f,h){var c,a,l;function i(b){if(b==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){var e=f.addEventHandler(a,l);if(!e)b=OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerAdditionFailed}var d;if(b!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)d=OSF.DDA.ErrorCodeManager.getErrorArgs(b);OSF.DDA.issueAsyncResult(c,b,d)}try{var k=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.AddHandlerAsync.id];c=k.verifyAndExtractCall(j,h,f);a=c[Microsoft.Office.WebExtension.Parameters.EventType];l=c[Microsoft.Office.WebExtension.Parameters.Handler];if(f.getEventHandlerCount(a)==0){var m=b[a],n=d(a)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];n({eventType:a,dispId:m,targetId:h.id||"",onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:i,onEvent:function(b){var c=e.fromHost(m,b);f.fireEvent(OSF.DDA.OMFactory.manufactureEventArgs(a,h,c))}})}else i(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}catch(o){g(o,k,j,c)}};this[OSF.DDA.DispIdHost.Methods.RemoveEventHandler]=function(k,e,m){var c,a,h;function j(a){var b;if(a!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)b=OSF.DDA.ErrorCodeManager.getErrorArgs(a);OSF.DDA.issueAsyncResult(c,a,b)}try{var l=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.id];c=l.verifyAndExtractCall(k,m,e);a=c[Microsoft.Office.WebExtension.Parameters.EventType];h=c[Microsoft.Office.WebExtension.Parameters.Handler];var i,f;if(h===null){f=e.clearEventHandlers(a);i=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}else{f=e.removeEventHandler(a,h);i=f?OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist}if(f&&e.getEventHandlerCount(a)==0){var o=b[a],n=d(a)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];n({eventType:a,dispId:o,targetId:m.id||"",onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:j})}else j(i)}catch(p){g(p,l,k,c)}};this[OSF.DDA.DispIdHost.Methods.OpenDialog]=function(m,c,l){var h,a,f,k;function i(a){var d;if(a!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)d=OSF.DDA.ErrorCodeManager.getErrorArgs(a);else{var b={};b[Microsoft.Office.WebExtension.Parameters.Id]=k;b[Microsoft.Office.WebExtension.Parameters.Data]=c;var d=j.processResponse(a,b,l,h)}OSF.DDA.issueAsyncResult(h,a,d)}try{a=Microsoft.Office.WebExtension.EventType.DialogMessageReceived;f=Microsoft.Office.WebExtension.EventType.DialogEventReceived;(a==undefined||f==undefined)&&i(OSF.DDA.ErrorCodeManager.ooeOperationNotSupported);if(OSF.DDA.AsyncMethodNames.DisplayDialogAsync==null){i(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);return}var j=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.DisplayDialogAsync.id];h=j.verifyAndExtractCall(m,l,c);c.clearEventHandlers(a);c.clearEventHandlers(f);var n=b[a],o=d(a)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];k=JSON.stringify(h);o({eventType:a,dispId:n,targetId:k,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:i,onEvent:function(i){var h=e.fromHost(n,i),g=OSF.DDA.OMFactory.manufactureEventArgs(a,l,h);if(g.type==f){var d=OSF.DDA.ErrorCodeManager.getErrorArgs(g.error),b={};b[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=status||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;b[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=d.name||d;b[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=d.message||d;g.error=new OSF.DDA.Error(b[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],b[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],b[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])}c.fireOrQueueEvent(g);if(h[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogClosed){c.clearEventHandlers(a);c.clearEventHandlers(f)}}})}catch(p){g(p,j,m,h)}};this[OSF.DDA.DispIdHost.Methods.CloseDialog]=function(f,l,c,n){var j,a,h,e=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess;function k(a){e=a}try{var i=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.CloseAsync.id];j=i.verifyAndExtractCall(f,n,c);a=Microsoft.Office.WebExtension.EventType.DialogMessageReceived;h=Microsoft.Office.WebExtension.EventType.DialogEventReceived;c.clearEventHandlers(a);c.clearEventHandlers(h);var o=b[a],m=d(a)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];m({eventType:a,dispId:o,targetId:l,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:k})}catch(p){g(p,i,f,j)}if(e!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)throw OSF.OUtil.formatString(Strings.OfficeOM.L_FunctionCallFailed,OSF.DDA.AsyncMethodNames.CloseAsync.displayName,e);};this[OSF.DDA.DispIdHost.Methods.MessageParent]=function(c,i){var e={},a=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.MessageParent.id],f=a.verifyAndExtractCall(c,i,e),g=d(OSF.DDA.SyncMethodNames.MessageParent.id),h=g[OSF.DDA.DispIdHost.Delegates.MessageParent],j=b[a];return h({dispId:j,hostCallArgs:f,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})}};OSF.DDA.DispIdHost.addAsyncMethods=function(a,b,e){for(var f in b){var c=b[f],d=c.displayName;!a[d]&&OSF.OUtil.defineEnumerableProperty(a,d,{value:function(b){return function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.InvokeMethod];c(b,arguments,a,e)}}(c)})}};OSF.DDA.DispIdHost.addEventSupport=function(a,b){var d=OSF.DDA.AsyncMethodNames.AddHandlerAsync.displayName,c=OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.displayName;!a[d]&&OSF.OUtil.defineEnumerableProperty(a,d,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.AddEventHandler];c(arguments,b,a)}});!a[c]&&OSF.OUtil.defineEnumerableProperty(a,c,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.RemoveEventHandler];c(arguments,b,a)}})};if(!OsfMsAjaxFactory.isMsAjaxLoaded())if(!(OSF._OfficeAppFactory&&OSF._OfficeAppFactory&&OSF._OfficeAppFactory.getLoadScriptHelper&&OSF._OfficeAppFactory.getLoadScriptHelper().isScriptLoading(OSF.ConstantNames.MicrosoftAjaxId))){var msAjaxCDNPath=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";OsfMsAjaxFactory.loadMsAjaxFull(function(){if(!OsfMsAjaxFactory.isMsAjaxLoaded())throw"Not able to load MicrosoftAjax.js.";})}OSF.OUtil.setNamespace("SafeArray",OSF.DDA);OSF.DDA.SafeArray.Response={Status:0,Payload:1};OSF.DDA.SafeArray.UniqueArguments={Offset:"offset",Run:"run",BindingSpecificData:"bindingSpecificData",MergedCellGuid:"{66e7831f-81b2-42e2-823c-89e872d541b3}"};OSF.OUtil.setNamespace("Delegate",OSF.DDA.SafeArray);OSF.DDA.SafeArray.Delegate._onException=function(d,c){var a,b=d.number;if(b)switch(b){case-2146828218:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2147467259:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened;break;case-2146828283:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2146827850:default:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}if(c.onComplete)c.onComplete(a||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod=function(c){var a,b=c.number;if(b)switch(b){case-2146828218:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2146827850:default:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}return a||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError};OSF.DDA.SafeArray.Delegate.SpecialProcessor=function(){function a(a){var b;try{var h=a.ubound(1),d=a.ubound(2);a=a.toArray();if(h==1&&d==1)b=[a];else{b=[];for(var f=0;f<h;f++){for(var c=[],e=0;e<d;e++){var g=a[f*d+e];g!=OSF.DDA.SafeArray.UniqueArguments.MergedCellGuid&&c.push(g)}c.length>0&&b.push(c)}}}catch(i){}return b}var c=[],b={};b[Microsoft.Office.WebExtension.Parameters.Data]=function(){var c=0,b=1;return{toHost:function(a){if(typeof a!="string"&&a[OSF.DDA.TableDataProperties.TableRows]!==undefined){var d=[];d[c]=a[OSF.DDA.TableDataProperties.TableRows];d[b]=a[OSF.DDA.TableDataProperties.TableHeaders];a=d}return a},fromHost:function(f){var e;if(f.toArray){var g=f.dimensions();if(g===2)e=a(f);else{var d=f.toArray();if(d.length===2&&(d[0]!=null&&d[0].toArray||d[1]!=null&&d[1].toArray)){e={};e[OSF.DDA.TableDataProperties.TableRows]=a(d[c]);e[OSF.DDA.TableDataProperties.TableHeaders]=a(d[b])}else e=d}}else e=f;return e}}}();OSF.DDA.SafeArray.Delegate.SpecialProcessor.uber.constructor.call(this,c,b);this.unpack=function(c,a){var d;if(this.isComplexType(c)||OSF.DDA.ListType.isListType(c)){var e=(a||typeof a==="unknown")&&a.toArray;d=e?a.toArray():a||{}}else if(this.isDynamicType(c))d=b[c].fromHost(a);else d=a;return d}};OSF.OUtil.extend(OSF.DDA.SafeArray.Delegate.SpecialProcessor,OSF.DDA.SpecialProcessor);OSF.DDA.SafeArray.Delegate.ParameterMap=OSF.DDA.getDecoratedParameterMap(new OSF.DDA.SafeArray.Delegate.SpecialProcessor,[{type:Microsoft.Office.WebExtension.Parameters.ValueFormat,toHost:[{name:Microsoft.Office.WebExtension.ValueFormat.Unformatted,value:0},{name:Microsoft.Office.WebExtension.ValueFormat.Formatted,value:1}]},{type:Microsoft.Office.WebExtension.Parameters.FilterType,toHost:[{name:Microsoft.Office.WebExtension.FilterType.All,value:0}]}]);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.AsyncResultStatus,fromHost:[{name:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded,value:0},{name:Microsoft.Office.WebExtension.AsyncResultStatus.Failed,value:1}]});OSF.DDA.SafeArray.Delegate.executeAsync=function(a){function c(a){var b=a;if(OSF.OUtil.isArray(a))for(var f=b.length,d=0;d<f;d++)b[d]=c(b[d]);else if(OSF.OUtil.isDate(a))b=a.getVarDate();else if(typeof a==="object"&&!OSF.OUtil.isArray(a)){b=[];for(var e in a)if(!OSF.OUtil.isFunction(a[e]))b[e]=c(a[e])}return b}function b(a){var e=a;if(a!=null&&a.toArray){var d=a.toArray();e=new Array(d.length);for(var c=0;c<d.length;c++)e[c]=b(d[c])}return e}try{a.onCalling&&a.onCalling();var d=+new Date;OSF.ClientHostController.execute(a.dispId,c(a.hostCallArgs),function(i){var e=i.toArray(),f=e[OSF.DDA.SafeArray.Response.Status];if(f==OSF.DDA.ErrorCodeManager.errorCodes.ooeChunkResult){var c=e[OSF.DDA.SafeArray.Response.Payload];c=b(c);if(c!=null){if(!a._chunkResultData)a._chunkResultData=[];a._chunkResultData[c[0]]=c[1]}return false}a.onReceiving&&a.onReceiving();if(a.onComplete){var c;if(f==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){if(e.length>2){c=[];for(var g=1;g<e.length;g++)c[g-1]=e[g]}else c=e[OSF.DDA.SafeArray.Response.Payload];if(a._chunkResultData){c=b(c);if(c!=null){var h=c[c.length-1];if(a._chunkResultData.length==h)c[c.length-1]=a._chunkResultData;else f=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}}}else c=e[OSF.DDA.SafeArray.Response.Payload];a.onComplete(f,c)}if(OSF.AppTelemetry)OSF.AppTelemetry.onMethodDone(a.dispId,a.hostCallArgs,Math.abs(+new Date-d),f);return true})}catch(e){OSF.DDA.SafeArray.Delegate._onException(e,a)}};OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent=function(c,a){var b=+new Date;return function(d){a.onReceiving&&a.onReceiving();var e=d.toArray?d.toArray()[OSF.DDA.SafeArray.Response.Status]:d;if(a.onComplete)a.onComplete(e);if(OSF.AppTelemetry)OSF.AppTelemetry.onRegisterDone(c,a.dispId,Math.abs(+new Date-b),e)}};OSF.DDA.SafeArray.Delegate.registerEventAsync=function(a){a.onCalling&&a.onCalling();var b=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(true,a);try{OSF.ClientHostController.registerEvent(a.dispId,a.targetId,function(c,b){if(a.onEvent)a.onEvent(b);if(OSF.AppTelemetry)OSF.AppTelemetry.onEventDone(a.dispId)},b)}catch(c){OSF.DDA.SafeArray.Delegate._onException(c,a)}};OSF.DDA.SafeArray.Delegate.unregisterEventAsync=function(a){a.onCalling&&a.onCalling();var b=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(false,a);try{OSF.ClientHostController.unregisterEvent(a.dispId,a.targetId,b)}catch(c){OSF.DDA.SafeArray.Delegate._onException(c,a)}};OSF.ClientMode={ReadWrite:0,ReadOnly:1};OSF.DDA.RichInitializationReason={1:Microsoft.Office.WebExtension.InitializationReason.Inserted,2:Microsoft.Office.WebExtension.InitializationReason.DocumentOpened};OSF.InitializationHelper=function(c,a,e,d,b){this._hostInfo=c;this._webAppState=a;this._context=e;this._settings=d;this._hostFacade=b;this._initializeSettings=this.initializeSettings};OSF.InitializationHelper.prototype.deserializeSettings=function(b,f){var d,c=OSF.OUtil.getSessionStorage();if(c){var a=c.getItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey());if(a)b=typeof JSON!=="undefined"?JSON.parse(a):OsfMsAjaxFactory.msAjaxSerializer.deserialize(a,true);else{a=typeof JSON!=="undefined"?JSON.stringify(b):OsfMsAjaxFactory.msAjaxSerializer.serialize(b);c.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),a)}}var e=OSF.DDA.SettingsManager.deserializeSettings(b);if(f)d=new OSF.DDA.RefreshableSettings(e);else d=new OSF.DDA.Settings(e);return d};OSF.InitializationHelper.prototype.setAgaveHostCommunication=function(){};OSF.InitializationHelper.prototype.prepareRightBeforeWebExtensionInitialize=function(a){this.prepareApiSurface(a);Microsoft.Office.WebExtension.initialize(this.getInitializationReason(a))};OSF.InitializationHelper.prototype.prepareApiSurface=function(a){var e=new OSF.DDA.License(a.get_eToken()),d=OSF.DDA.OfficeTheme&&OSF.DDA.OfficeTheme.getOfficeTheme?OSF.DDA.OfficeTheme.getOfficeTheme:null;if(a.get_isDialog()){if(OSF.DDA.UI.ChildUI)a.ui=new OSF.DDA.UI.ChildUI}else if(OSF.DDA.UI.ParentUI)a.ui=new OSF.DDA.UI.ParentUI;OSF._OfficeAppFactory.setContext(new OSF.DDA.Context(a,a.doc,e,null,d));var b,c;b=OSF.DDA.DispIdHost.getClientDelegateMethods;c=OSF.DDA.SafeArray.Delegate.ParameterMap;OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(b,c))};OSF.InitializationHelper.prototype.getInitializationReason=function(a){return OSF.DDA.RichInitializationReason[a.get_reason()]};OSF.DDA.DispIdHost.getClientDelegateMethods=function(b){var a={};a[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync;a[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync;a[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync;a[OSF.DDA.DispIdHost.Delegates.MessageParent]=OSF.DDA.SafeArray.Delegate.messageParent;if(OSF.DDA.AsyncMethodNames.RefreshAsync&&b==OSF.DDA.AsyncMethodNames.RefreshAsync.id){var d=function(c,b,a){return OSF.DDA.ClientSettingsManager.read(b,a)};a[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(d)}if(OSF.DDA.AsyncMethodNames.SaveAsync&&b==OSF.DDA.AsyncMethodNames.SaveAsync.id){var c=function(a,c,b){return OSF.DDA.ClientSettingsManager.write(a[OSF.DDA.SettingsManager.SerializedSettings],a[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],c,b)};a[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(c)}return a};var OSFRichclient;(function(b){var a=function(){function a(){}a.prototype.execute=function(c,b,a){if(typeof OsfOMToken!="undefined"&&OsfOMToken)window.external.Execute(c,b,a,OsfOMToken);else window.external.Execute(c,b,a)};a.prototype.registerEvent=function(d,b,c,a){if(typeof OsfOMToken!="undefined"&&OsfOMToken)window.external.RegisterEvent(d,b,c,a,OsfOMToken);else window.external.RegisterEvent(d,b,c,a)};a.prototype.unregisterEvent=function(c,b,a){if(typeof OsfOMToken!="undefined"&&OsfOMToken)window.external.UnregisterEvent(c,b,a,OsfOMToken);else window.external.UnregisterEvent(c,b,a)};a.prototype.messageParent=function(a){if(a){var b=a[Microsoft.Office.WebExtension.Parameters.MessageToParent];if(typeof b==="boolean")if(b===true)a[Microsoft.Office.WebExtension.Parameters.MessageToParent]="true";else if(b===false)a[Microsoft.Office.WebExtension.Parameters.MessageToParent]=""}if(typeof window.external.MessageParent2!="undefined")if(typeof OsfOMToken!="undefined"&&OsfOMToken)window.external.MessageParent2(JSON.stringify(a),OsfOMToken);else window.external.MessageParent2(JSON.stringify(a));else{var c=a[Microsoft.Office.WebExtension.Parameters.MessageToParent];window.external.MessageParent(c)}};return a}();b.RichClientHostController=a})(OSFRichclient||(OSFRichclient={}));OSF.ClientHostController=new OSFRichclient.RichClientHostController;var OfficeExt;(function(a){var b;(function(c){var b=function(){function a(){this._osfOfficeTheme=null;this._osfOfficeThemeTimeStamp=null}a.prototype.getOfficeTheme=function(){if(OSF.DDA._OsfControlContext){if(this._osfOfficeTheme&&this._osfOfficeThemeTimeStamp&&+new Date-this._osfOfficeThemeTimeStamp<a._osfOfficeThemeCacheValidPeriod){if(OSF.AppTelemetry)OSF.AppTelemetry.onPropertyDone("GetOfficeThemeInfo",0)}else{var e=+new Date,d=OSF.DDA._OsfControlContext.GetOfficeThemeInfo(),b=+new Date;if(OSF.AppTelemetry)OSF.AppTelemetry.onPropertyDone("GetOfficeThemeInfo",Math.abs(b-e));this._osfOfficeTheme=JSON.parse(d);for(var c in this._osfOfficeTheme)this._osfOfficeTheme[c]=OSF.OUtil.convertIntToCssHexColor(this._osfOfficeTheme[c]);this._osfOfficeThemeTimeStamp=b}return this._osfOfficeTheme}};a.instance=function(){if(a._instance==null)a._instance=new a;return a._instance};a._osfOfficeThemeCacheValidPeriod=5e3;a._instance=null;return a}();c.OfficeThemeManager=b;OSF.OUtil.setNamespace("OfficeTheme",OSF.DDA);OSF.DDA.OfficeTheme.getOfficeTheme=a.OfficeTheme.OfficeThemeManager.instance().getOfficeTheme})(b=a.OfficeTheme||(a.OfficeTheme={}))})(OfficeExt||(OfficeExt={}));OSF.DDA.ClientSettingsManager={getSettingsExecuteMethod:function(a){return function(b){var d,c;try{c=a(b.hostCallArgs,b.onCalling,b.onReceiving);d=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}catch(e){d=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;c={name:Strings.OfficeOM.L_InternalError,message:e}}if(b.onComplete)b.onComplete(d,c)}},read:function(f,e){var b=[],c=[];f&&f();if(typeof OsfOMToken!="undefined"&&OsfOMToken)OSF.DDA._OsfControlContext.GetSettings(OsfOMToken).Read(b,c);else OSF.DDA._OsfControlContext.GetSettings().Read(b,c);e&&e();for(var d={},a=0;a<b.length;a++)d[b[a]]=c[a];return d},write:function(c,g,e,d){var b=[],a=[];for(var f in c){b.push(f);a.push(c[f])}e&&e();if(typeof OsfOMToken!="undefined"&&OsfOMToken)OSF.DDA._OsfControlContext.GetSettings(OsfOMToken).Write(b,a);else OSF.DDA._OsfControlContext.GetSettings().Write(b,a);d&&d()}};OSF.InitializationHelper.prototype.initializeSettings=function(b){var a=OSF.DDA.ClientSettingsManager.read(),c=this.deserializeSettings(a,b);return c};OSF.InitializationHelper.prototype.getAppContext=function(w,l){var c,a=OSF.DDA._OsfControlContext=window.external.GetContext(),d=a.GetAppType(),f=false;for(var p in OSF.AppName)if(OSF.AppName[p]==d){f=true;break}if(!f)throw"Unsupported client type "+d;var v=a.GetSolutionRef(),s=a.GetAppVersionMajor(),m=a.GetAppVersionMinor(),r=a.GetAppUILocale(),o=a.GetAppDataLocale(),t=a.GetDocUrl(),n=a.GetAppCapabilities(),u=a.GetActivationMode(),k=a.GetControlIntegrationLevel(),q=[],b;try{b=a.GetSolutionToken()}catch(x){}var i;if(typeof a.GetCorrelationId!=="undefined")i=a.GetCorrelationId();var h;if(typeof a.GetInstanceId!=="undefined")h=a.GetInstanceId();var j;if(typeof a.GetTouchEnabled!=="undefined")j=a.GetTouchEnabled();var g;if(typeof a.GetCommerceAllowed!=="undefined")g=a.GetCommerceAllowed();var e;if(typeof a.GetSupportedMatrix!=="undefined")e=a.GetSupportedMatrix();b=b?b.toString():"";c=new OSF.OfficeAppContext(v,d,s,r,o,t,n,q,u,k,b,i,h,j,g,m,e);OSF.AppTelemetry&&OSF.AppTelemetry.initialize(c);l(c)};(function(){var a=function(){var c=function(a){a&&OSF.OUtil.loadScript(a,function(){OsfMsAjaxFactory.msAjaxDebug.trace("loaded customized script:"+a)})},e,g,a,b=null,f=OSF.OUtil.parseXdmInfo();if(f){a=OSF.OUtil.getInfoItems(f);if(a&&a.length>=3){e=a[0];g=a[2];b=Microsoft.Office.Common.XdmCommunicationManager.connect(e,window.parent,g)}}var d=null;if(!b){try{if(typeof window.external.getCustomizedScriptPath!=="undefined")d=window.external.getCustomizedScriptPath()}catch(h){OsfMsAjaxFactory.msAjaxDebug.trace("no script override through window.external.")}c(d)}else try{b.invoke("getCustomizedScriptPathAsync",function(b,a){c(b===0?a:null)},{__timeout__:1e3})}catch(h){OsfMsAjaxFactory.msAjaxDebug.trace("no script override through cross frame communication.")}};OSF._OfficeAppFactory.getLoadScriptHelper&&OSF._OfficeAppFactory.getLoadScriptHelper().waitForScripts([OSF.ConstantNames.MicrosoftAjaxId],a)})();Microsoft.Office.WebExtension.EventType={};OSF.EventDispatch=function(a){this._eventHandlers={};this._queuedEventsArgs={};for(var c in a){var b=a[c];this._eventHandlers[b]=[];this._queuedEventsArgs[b]=[]}};OSF.EventDispatch.prototype={getSupportedEvents:function(){var a=[];for(var b in this._eventHandlers)a.push(b);return a},supportsEvent:function(c){var a=false;for(var b in this._eventHandlers)if(c==b){a=true;break}return a},hasEventHandler:function(b,c){var a=this._eventHandlers[b];if(a&&a.length>0)for(var d in a)if(a[d]===c)return true;return false},addEventHandler:function(b,a){if(typeof a!="function")return false;var c=this._eventHandlers[b];if(c&&!this.hasEventHandler(b,a)){c.push(a);return true}else return false},addEventHandlerAndFireQueuedEvent:function(a,e){var d=this._eventHandlers[a],c=d.length==0,b=this.addEventHandler(a,e);c&&b&&this.fireQueuedEvent(a);return b},removeEventHandler:function(c,d){var a=this._eventHandlers[c];if(a&&a.length>0)for(var b=0;b<a.length;b++)if(a[b]===d){a.splice(b,1);return true}return false},clearEventHandlers:function(a){if(typeof this._eventHandlers[a]!="undefined"&&this._eventHandlers[a].length>0){this._eventHandlers[a]=[];return true}return false},getEventHandlerCount:function(a){return this._eventHandlers[a]!=undefined?this._eventHandlers[a].length:-1},fireEvent:function(a){if(a.type==undefined)return false;var b=a.type;if(b&&this._eventHandlers[b]){var c=this._eventHandlers[b];for(var d in c)c[d](a);return true}else return false},fireOrQueueEvent:function(b){var a=b.type;if(a&&this._eventHandlers[a]){var c=this._eventHandlers[a],d=this._queuedEventsArgs[a];if(c.length==0)d.push(b);else this.fireEvent(b);return true}else return false},fireQueuedEvent:function(a){if(a&&this._eventHandlers[a]){var b=this._eventHandlers[a],c=this._queuedEventsArgs[a];if(b.length>0){var d=b[0];while(c.length>0){var e=c.shift();d(e)}return true}}return false}};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureEventArgs=function(d,c,a){var b;switch(d){case Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged:b=new OSF.DDA.DocumentSelectionChangedEventArgs(c);break;case Microsoft.Office.WebExtension.EventType.BindingSelectionChanged:b=new OSF.DDA.BindingSelectionChangedEventArgs(this.manufactureBinding(a,c.document),a[OSF.DDA.PropertyDescriptors.Subset]);break;case Microsoft.Office.WebExtension.EventType.BindingDataChanged:b=new OSF.DDA.BindingDataChangedEventArgs(this.manufactureBinding(a,c.document));break;case Microsoft.Office.WebExtension.EventType.SettingsChanged:b=new OSF.DDA.SettingsChangedEventArgs(c);break;case Microsoft.Office.WebExtension.EventType.ActiveViewChanged:b=new OSF.DDA.ActiveViewChangedEventArgs(a);break;case Microsoft.Office.WebExtension.EventType.OfficeThemeChanged:b=new OSF.DDA.Theming.OfficeThemeChangedEventArgs(a);break;case Microsoft.Office.WebExtension.EventType.DocumentThemeChanged:b=new OSF.DDA.Theming.DocumentThemeChangedEventArgs(a);break;case Microsoft.Office.WebExtension.EventType.AppCommandInvoked:b=OSF.DDA.AppCommand.AppCommandInvokedEventArgs.create(a);break;case Microsoft.Office.WebExtension.EventType.DataNodeInserted:b=new OSF.DDA.NodeInsertedEventArgs(this.manufactureDataNode(a[OSF.DDA.DataNodeEventProperties.NewNode]),a[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeReplaced:b=new OSF.DDA.NodeReplacedEventArgs(this.manufactureDataNode(a[OSF.DDA.DataNodeEventProperties.OldNode]),this.manufactureDataNode(a[OSF.DDA.DataNodeEventProperties.NewNode]),a[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeDeleted:b=new OSF.DDA.NodeDeletedEventArgs(this.manufactureDataNode(a[OSF.DDA.DataNodeEventProperties.OldNode]),this.manufactureDataNode(a[OSF.DDA.DataNodeEventProperties.NextSiblingNode]),a[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.TaskSelectionChanged:b=new OSF.DDA.TaskSelectionChangedEventArgs(c);break;case Microsoft.Office.WebExtension.EventType.ResourceSelectionChanged:b=new OSF.DDA.ResourceSelectionChangedEventArgs(c);break;case Microsoft.Office.WebExtension.EventType.ViewSelectionChanged:b=new OSF.DDA.ViewSelectionChangedEventArgs(c);break;case Microsoft.Office.WebExtension.EventType.DialogMessageReceived:b=new OSF.DDA.DialogEventArgs(a);break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,d));}return b};OSF.DDA.AsyncMethodNames.addNames({AddHandlerAsync:"addHandlerAsync",RemoveHandlerAsync:"removeHandlerAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(b,c,a){return a.supportsEvent(b)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.RemoveHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(b,c,a){return a.supportsEvent(b)}}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDialogMessageReceivedEvent});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{DialogMessageReceivedEvent:"DialogMessageReceivedEvent"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{DialogMessageReceived:"dialogMessageReceived",DialogEventReceived:"dialogEventReceived"});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{MessageType:"messageType",MessageContent:"messageContent",MessageOrigin:"messageOrigin"});OSF.DDA.DialogEventType={};OSF.OUtil.augmentList(OSF.DDA.DialogEventType,{DialogClosed:"dialogClosed",NavigationFailed:"naviationFailed"});OSF.DDA.AsyncMethodNames.addNames({DisplayDialogAsync:"displayDialogAsync",CloseAsync:"close"});OSF.DDA.SyncMethodNames.addNames({MessageParent:"messageParent",AddMessageHandler:"addEventHandler"});OSF.DDA.UI.ParentUI=function(){var c=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived]),b=OSF.DDA.AsyncMethodNames.DisplayDialogAsync.displayName,a=this;!a[b]&&OSF.OUtil.defineEnumerableProperty(a,b,{value:function(){var b=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.OpenDialog];b(arguments,c,a)}});OSF.OUtil.finalizeProperties(this)};OSF.DDA.UI.ChildUI=function(){var b=OSF.DDA.SyncMethodNames.MessageParent.displayName,a=this;!a[b]&&OSF.OUtil.defineEnumerableProperty(a,b,{value:function(){var b=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.MessageParent];return b(arguments,a)}});OSF.OUtil.finalizeProperties(this)};OSF.DialogHandler=function(){};OSF.DDA.DialogEventArgs=function(a){if(a[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogMessageReceived)OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogMessageReceived},message:{value:a[OSF.DDA.PropertyDescriptors.MessageContent]},origin:{value:a[OSF.DDA.PropertyDescriptors.MessageOrigin]}});else OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogEventReceived},error:{value:a[OSF.DDA.PropertyDescriptors.MessageType]}})};OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.DisplayDialogAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Url,types:["string"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Width,value:{types:["number"],defaultValue:99}},{name:Microsoft.Office.WebExtension.Parameters.Height,value:{types:["number"],defaultValue:99}},{name:Microsoft.Office.WebExtension.Parameters.RequireHTTPs,value:{types:["boolean"],defaultValue:true}},{name:Microsoft.Office.WebExtension.Parameters.XFrameDenySafe,value:{types:["boolean"],defaultValue:true}}],privateStateCallbacks:[],onSucceeded:function(c){var f=c[Microsoft.Office.WebExtension.Parameters.Id],b=c[Microsoft.Office.WebExtension.Parameters.Data],a=new OSF.DialogHandler,d=OSF.DDA.AsyncMethodNames.CloseAsync.displayName;OSF.OUtil.defineEnumerableProperty(a,d,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.CloseDialog];c(arguments,f,b,a)}});var e=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;OSF.OUtil.defineEnumerableProperty(a,e,{value:function(){var d=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.AddMessageHandler.id],c=d.verifyAndExtractCall(arguments,a,b),e=c[Microsoft.Office.WebExtension.Parameters.EventType],f=c[Microsoft.Office.WebExtension.Parameters.Handler];return b.addEventHandlerAndFireQueuedEvent(e,f)}});return a},checkCallArgs:function(a){if(a[Microsoft.Office.WebExtension.Parameters.Width]<=0)a[Microsoft.Office.WebExtension.Parameters.Width]=1;if(a[Microsoft.Office.WebExtension.Parameters.Width]>100)a[Microsoft.Office.WebExtension.Parameters.Width]=99;if(a[Microsoft.Office.WebExtension.Parameters.Height]<=0)a[Microsoft.Office.WebExtension.Parameters.Height]=1;if(a[Microsoft.Office.WebExtension.Parameters.Height]>100)a[Microsoft.Office.WebExtension.Parameters.Height]=99;return a}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.MessageParent,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.TargetOrigin,value:{types:["string"],defaultValue:""}}]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.AddMessageHandler,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(b,c,a){return a.supportsEvent(b)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[]});OSF.DDA.SafeArray.Delegate.messageParent=function(a){try{a.onCalling&&a.onCalling();var c=+new Date,b=OSF.ClientHostController.messageParent(a.hostCallArgs);a.onReceiving&&a.onReceiving();if(OSF.AppTelemetry)OSF.AppTelemetry.onMethodDone(a.dispId,a.hostCallArgs,Math.abs(+new Date-c),b);return b}catch(d){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(d)}};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DialogMessageReceivedEvent,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.MessageType,value:0},{name:OSF.DDA.PropertyDescriptors.MessageContent,value:1},{name:OSF.DDA.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:true});var OSFLog;(function(b){var a=function(){function a(a){this._table=a;this._fields={}}Object.defineProperty(a.prototype,"Fields",{"get":function(){return this._fields},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Table",{"get":function(){return this._table},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){};a.prototype.SetSerializedField=function(b,a){if(typeof a!=="undefined"&&a!==null)this._serializedFields[b]=a.toString()};a.prototype.SerializeRow=function(){this._serializedFields={};this.SetSerializedField("Table",this._table);this.SerializeFields();return JSON.stringify(this._serializedFields)};return a}();b.BaseUsageData=a;var d=function(b){__extends(a,b);function a(){b.call(this,"AppActivated")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppId",{"get":function(){return this.Fields.AppId},"set":function(a){this.Fields.AppId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppInstanceId",{"get":function(){return this.Fields.AppInstanceId},"set":function(a){this.Fields.AppInstanceId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppURL",{"get":function(){return this.Fields.AppURL},"set":function(a){this.Fields.AppURL=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AssetId",{"get":function(){return this.Fields.AssetId},"set":function(a){this.Fields.AssetId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Browser",{"get":function(){return this.Fields.Browser},"set":function(a){this.Fields.Browser=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"UserId",{"get":function(){return this.Fields.UserId},"set":function(a){this.Fields.UserId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Host",{"get":function(){return this.Fields.Host},"set":function(a){this.Fields.Host=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"HostVersion",{"get":function(){return this.Fields.HostVersion},"set":function(a){this.Fields.HostVersion=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ClientId",{"get":function(){return this.Fields.ClientId},"set":function(a){this.Fields.ClientId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppSizeWidth",{"get":function(){return this.Fields.AppSizeWidth},"set":function(a){this.Fields.AppSizeWidth=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppSizeHeight",{"get":function(){return this.Fields.AppSizeHeight},"set":function(a){this.Fields.AppSizeHeight=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("AppId",this.AppId);this.SetSerializedField("AppInstanceId",this.AppInstanceId);this.SetSerializedField("AppURL",this.AppURL);this.SetSerializedField("AssetId",this.AssetId);this.SetSerializedField("Browser",this.Browser);this.SetSerializedField("UserId",this.UserId);this.SetSerializedField("Host",this.Host);this.SetSerializedField("HostVersion",this.HostVersion);this.SetSerializedField("ClientId",this.ClientId);this.SetSerializedField("AppSizeWidth",this.AppSizeWidth);this.SetSerializedField("AppSizeHeight",this.AppSizeHeight)};return a}(a);b.AppActivatedUsageData=d;var e=function(b){__extends(a,b);function a(){b.call(this,"ScriptLoad")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ScriptId",{"get":function(){return this.Fields.ScriptId},"set":function(a){this.Fields.ScriptId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"StartTime",{"get":function(){return this.Fields.StartTime},"set":function(a){this.Fields.StartTime=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ResponseTime",{"get":function(){return this.Fields.ResponseTime},"set":function(a){this.Fields.ResponseTime=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("ScriptId",this.ScriptId);this.SetSerializedField("StartTime",this.StartTime);this.SetSerializedField("ResponseTime",this.ResponseTime)};return a}(a);b.ScriptLoadUsageData=e;var f=function(b){__extends(a,b);function a(){b.call(this,"AppClosed")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"FocusTime",{"get":function(){return this.Fields.FocusTime},"set":function(a){this.Fields.FocusTime=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppSizeFinalWidth",{"get":function(){return this.Fields.AppSizeFinalWidth},"set":function(a){this.Fields.AppSizeFinalWidth=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppSizeFinalHeight",{"get":function(){return this.Fields.AppSizeFinalHeight},"set":function(a){this.Fields.AppSizeFinalHeight=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"OpenTime",{"get":function(){return this.Fields.OpenTime},"set":function(a){this.Fields.OpenTime=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"CloseMethod",{"get":function(){return this.Fields.CloseMethod},"set":function(a){this.Fields.CloseMethod=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("FocusTime",this.FocusTime);this.SetSerializedField("AppSizeFinalWidth",this.AppSizeFinalWidth);this.SetSerializedField("AppSizeFinalHeight",this.AppSizeFinalHeight);this.SetSerializedField("OpenTime",this.OpenTime);this.SetSerializedField("CloseMethod",this.CloseMethod)};return a}(a);b.AppClosedUsageData=f;var g=function(b){__extends(a,b);function a(){b.call(this,"APIUsage")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"APIType",{"get":function(){return this.Fields.APIType},"set":function(a){this.Fields.APIType=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"APIID",{"get":function(){return this.Fields.APIID},"set":function(a){this.Fields.APIID=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Parameters",{"get":function(){return this.Fields.Parameters},"set":function(a){this.Fields.Parameters=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ResponseTime",{"get":function(){return this.Fields.ResponseTime},"set":function(a){this.Fields.ResponseTime=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ErrorType",{"get":function(){return this.Fields.ErrorType},"set":function(a){this.Fields.ErrorType=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("APIType",this.APIType);this.SetSerializedField("APIID",this.APIID);this.SetSerializedField("Parameters",this.Parameters);this.SetSerializedField("ResponseTime",this.ResponseTime);this.SetSerializedField("ErrorType",this.ErrorType)};return a}(a);b.APIUsageUsageData=g;var c=function(b){__extends(a,b);function a(){b.call(this,"AppInitialization")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SuccessCode",{"get":function(){return this.Fields.SuccessCode},"set":function(a){this.Fields.SuccessCode=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Message",{"get":function(){return this.Fields.Message},"set":function(a){this.Fields.Message=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("SuccessCode",this.SuccessCode);this.SetSerializedField("Message",this.Message)};return a}(a);b.AppInitializationUsageData=c})(OSFLog||(OSFLog={}));var Logger;(function(a){"use strict";(function(a){a[a.info=0]="info";a[a.warning=1]="warning";a[a.error=2]="error"})(a.TraceLevel||(a.TraceLevel={}));var f=a.TraceLevel;(function(a){a[a.none=0]="none";a[a.flush=1]="flush"})(a.SendFlag||(a.SendFlag={}));var g=a.SendFlag;function b(){}a.allowUploadingData=b;function e(){}a.sendLog=e;function c(){try{return new d}catch(a){return null}}var d=function(){function a(){}a.prototype.writeLog=function(){};a.prototype.loadProxyFrame=function(){};return a}();if(!OSF.Logger)OSF.Logger=a;a.ulsEndpoint=c()})(Logger||(Logger={}));var OSFAriaLogger;(function(k){var d={name:"AppActivated",enabled:true,basic:true,critical:true,points:[{name:"Browser",type:"string"},{name:"Message",type:"string"},{name:"AppURL",type:"string"},{name:"Host",type:"string"},{name:"AppSizeWidth",type:"int64"},{name:"AppSizeHeight",type:"int64"},{name:"IsFromWacAutomation",type:"string"}]},e={name:"ScriptLoad",enabled:true,basic:false,critical:false,points:[{name:"ScriptId",type:"string"},{name:"StartTime",type:"double"},{name:"ResponseTime",type:"double"}]},i={name:"APIUsage",enabled:false,basic:false,critical:false,points:[{name:"APIType",type:"string"},{name:"APIID",type:"int64"},{name:"Parameters",type:"string"},{name:"ResponseTime",type:"int64"},{name:"ErrorType",type:"int64"}]},c={name:"AppInitialization",enabled:true,basic:false,critical:false,points:[{name:"SuccessCode",type:"int64"},{name:"Message",type:"string"}]},f={name:"AppClosed",enabled:true,basic:false,critical:false,points:[{name:"FocusTime",type:"int64"},{name:"AppSizeFinalWidth",type:"int64"},{name:"AppSizeFinalHeight",type:"int64"},{name:"OpenTime",type:"int64"}]},b=[d,e,i,c,f];function j(a,c){var d=c.rename===undefined?c.name:c.rename,e=c.type,b=undefined;switch(e){case"string":b=oteljs.makeStringDataField(d,a);break;case"double":if(typeof a==="string")a=parseFloat(a);b=oteljs.makeDoubleDataField(d,a);break;case"int64":if(typeof a==="string")a=parseInt(a);b=oteljs.makeInt64DataField(d,a);break;case"boolean":if(typeof a==="string")a=a==="true";b=oteljs.makeBooleanDataField(d,a)}return b}function a(d){for(var a=0;a<b.length;a++){var c=b[a];if(c.name===d)return c}return undefined}function l(c){var b=a(c);return b===undefined?false:b.enabled}function g(f,m){var b=a(f);if(b===undefined)return undefined;for(var e=[],d=0,k=b.points;d<k.length;d++){var h=k[d],o=h.name,i=m[o];if(i===undefined)continue;var g=j(i,h);g!==undefined&&e.push(g)}var c={dataCategories:oteljs.DataCategories.ProductServiceUsage};if(b.critical)c.samplingPolicy=oteljs.SamplingPolicy.CriticalBusinessImpact;if(b.basic)c.diagnosticLevel=oteljs.DiagnosticLevel.BasicEvent;var l="Office.Extensibility.OfficeJs."+f+"X",n={eventName:l,dataFields:e,eventFlags:c};return n}function h(a,b){if(l(a))if(typeof OTel!=="undefined")OTel.OTelLogger.onTelemetryLoaded(function(){var c=g(a,b);if(c===undefined)return;Microsoft.Office.WebExtension.sendTelemetryEvent(c)})}var m=function(){function a(){}a.prototype.getAriaCDNLocation=function(){return OSF._OfficeAppFactory.getLoadScriptHelper().getOfficeJsBasePath()+"ariatelemetry/aria-web-telemetry.js"};a.getInstance=function(){if(a.AriaLoggerObj===undefined)a.AriaLoggerObj=new a;return a.AriaLoggerObj};a.prototype.isIUsageData=function(a){return a.Fields!==undefined};a.prototype.shouldSendDirectToAria=function(){var d,b;if(OSF._OfficeAppFactory&&OSF._OfficeAppFactory.getHostInfo)d=OSF._OfficeAppFactory.getHostInfo().hostPlatform;if(!d)return false;else if(d.toLowerCase()!=="win32")return true;if(window.external&&typeof window.external.GetContext!=="undefined"&&typeof window.external.GetContext().GetHostFullVersion!=="undefined")b=window.external.GetContext().GetHostFullVersion();var c=10,f=16,g=0,e=11601;if(b){var a=b.split(".");return a.length<3?false:parseInt(a[0],c)>=f&&parseInt(a[1],c)>=g&&parseInt(a[2],c)>=e?false:true}return false};a.prototype.isDirectToAriaEnabled=function(){if(this.EnableDirectToAria===undefined||this.EnableDirectToAria===null)this.EnableDirectToAria=true;return this.EnableDirectToAria};a.prototype.sendTelemetry=function(c,b){var e=1e3,d=a.EnableSendingTelemetryWithLegacyAria&&this.isDirectToAriaEnabled();d&&OSF.OUtil.loadScript(this.getAriaCDNLocation(),function(){try{if(!this.ALogger){var e="db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439";this.ALogger=AWTLogManager.initialize(e)}var a=new AWTEventProperties;a.setName("Office.Extensibility.OfficeJS."+c);for(var d in b)d.toLowerCase()!=="table"&&a.setProperty(d,b[d]);var f=new Date;a.setProperty("Date",f.toISOString());this.ALogger.logEvent(a)}catch(g){}},e);a.EnableSendingTelemetryWithOTel&&h(c,b)};a.prototype.logData=function(a){if(this.isIUsageData(a))this.sendTelemetry(a.Table,a.Fields);else this.sendTelemetry(a.Table,a)};a.EnableSendingTelemetryWithOTel=true;a.EnableSendingTelemetryWithLegacyAria=false;return a}();k.AriaLogger=m})(OSFAriaLogger||(OSFAriaLogger={}));var OSFAppTelemetry;(function(b){"use strict";var a,d=OSF.OUtil.Guid.generateNewGuid(),g="",n=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i");b.enableTelemetry=true;var j=function(){function a(){}return a}();b.AppInfo=j;var e=function(){function a(b,a){this.name=b;this.handler=a}return a}(),i=function(){function a(){this.clientIDKey="Office API client";this.logIdSetKey="Office App Log Id Set"}a.prototype.getClientId=function(){var a=this.getValue(this.clientIDKey);if(!a||a.length<=0||a.length>40){a=OSF.OUtil.Guid.generateNewGuid();this.setValue(this.clientIDKey,a)}return a};a.prototype.saveLog=function(b,c){var a=this.getValue(this.logIdSetKey);a=(a&&a.length>0?a+";":"")+b;this.setValue(this.logIdSetKey,a);this.setValue(b,c)};a.prototype.enumerateLog=function(b,d){var c=this.getValue(this.logIdSetKey);if(c){var e=c.split(";");for(var g in e){var a=e[g],f=this.getValue(a);if(f){b&&b(a,f);d&&this.remove(a)}}d&&this.remove(this.logIdSetKey)}};a.prototype.getValue=function(c){var a=OSF.OUtil.getLocalStorage(),b="";if(a)b=a.getItem(c);return b};a.prototype.setValue=function(c,b){var a=OSF.OUtil.getLocalStorage();a&&a.setItem(c,b)};a.prototype.remove=function(b){var a=OSF.OUtil.getLocalStorage();if(a)try{a.removeItem(b)}catch(c){}};return a}(),f=function(){function a(){}a.prototype.LogData=function(a){if(!b.enableTelemetry)return;try{OSFAriaLogger.AriaLogger.getInstance().logData(a)}catch(c){}};a.prototype.LogRawData=function(a){if(!b.enableTelemetry)return;try{OSFAriaLogger.AriaLogger.getInstance().logData(JSON.parse(a))}catch(c){}};return a}();function c(a){if(a)a=a.replace(/[{}]/g,"").toLowerCase();return a||""}var x=function(){function a(){}a.hashString=function(c){var a=0;if(c.length===0)return a;for(var b=0;b<c.length;b++){var d=c.charCodeAt(b);a=(a<<5)-a+d;a|=0}return a};a.stringToHash=function(d){var c=a.hashString(d),b=c.toString();if(c<0)b="1"+b.substring(1);else b="0"+b;return b};a.startsWith=function(b,a){return b.indexOf(a)==-0};a.isFileUrl=function(b){return a.startsWith(b.toLowerCase(),"file:")};a.removeHttpPrefix=function(c){var b="";if(a.startsWith(c.toLowerCase(),a.httpsPrefix))b=a.httpsPrefix;else if(a.startsWith(c.toLowerCase(),a.httpPrefix))b=a.httpPrefix;var d=c.slice(b.length);return d};a.getUrlDomain=function(c){var b=a.removeHttpPrefix(c);b=b.split("/")[0];b=b.split(":")[0];return b};a.isIp4Address=function(b){var a=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;return a.test(b)};a.filter=function(d){if(a.isFileUrl(d)){var c=a.stringToHash(d);return"file://"+c}var b=a.getUrlDomain(d);if(a.isIp4Address(b)){var c=a.stringToHash(d);return a.startsWith(b,"10.")?"IP10Range_"+c:a.startsWith(b,"192.")?"IP192Range_"+c:a.startsWith(b,"127.")?"IP127Range_"+c:"IPOther_"+c}return b.split(".").slice(-2).join(".")};a.httpPrefix="http://";a.httpsPrefix="https://";return a}();function v(f){if(!b.enableTelemetry)return;if(a)return;a=new j;a.hostVersion=f.get_appVersion();a.appId=f.get_id();a.host=f.get_appName();a.browser=window.navigator.userAgent;a.correlationId=c(f.get_correlationId());a.clientId=(new i).getClientId();a.appInstanceId=f.get_appInstanceId();if(a.appInstanceId)a.appInstanceId=a.appInstanceId.replace(/[{}]/g,"").toLowerCase();a.officeJSVersion=OSF.ConstantNames.FileVersion;a.hostJSVersion="16.0.6807.1000";if(f._wacHostEnvironment)a.wacHostEnvironment=f._wacHostEnvironment;if(f._isFromWacAutomation!==undefined&&f._isFromWacAutomation!==null)a.isFromWacAutomation=f._isFromWacAutomation.toString().toLowerCase();var h=f.get_docUrl();a.docUrl=n.test(h)?h:"";var g=location.href;if(g)g=g.split("?")[0].split("#")[0];a.appURL=x.filter(g);(function(g,a){var c,f,b;a.assetId="";a.userId="";try{c=decodeURIComponent(g);f=new DOMParser;b=f.parseFromString(c,"text/xml");var d=b.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),e=b.getElementsByTagName("t")[0].attributes.getNamedItem("oid");if(d&&d.nodeValue)a.userId=d.nodeValue;else if(e&&e.nodeValue)a.userId=e.nodeValue;a.assetId=b.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}catch(h){}finally{c=null;b=null;f=null}})(f.get_eToken(),a);a.sessionId=d;typeof OTel!=="undefined"&&OTel.OTelLogger.initialize(a);(function(){var j=new Date,c=null,g=0,i=false,d=function(){if(document.hasFocus()){if(c==null)c=new Date}else if(c){g+=Math.abs(+new Date-c.getTime());c=null}},a=[];a.push(new e("focus",d));a.push(new e("blur",d));a.push(new e("focusout",d));a.push(new e("focusin",d));var h=function(){for(var d=0;d<a.length;d++)OSF.OUtil.removeEventListener(window,a[d].name,a[d].handler);a.length=0;if(!i){if(document.hasFocus()&&c){g+=Math.abs(+new Date-c.getTime());c=null}b.onAppClosed(Math.abs(+new Date-j.getTime()),g);i=true}};a.push(new e("beforeunload",h));a.push(new e("unload",h));for(var f=0;f<a.length;f++)OSF.OUtil.addEventListener(window,a[f].name,a[f].handler);d()})();b.onAppActivated()}b.initialize=v;function o(){if(!a)return;(new i).enumerateLog(function(b,a){return(new f).LogRawData(a)},true);var b=new OSFLog.AppActivatedUsageData;b.SessionId=d;b.AppId=a.appId;b.AssetId=a.assetId;b.AppURL=a.appURL;b.UserId="";b.ClientId=a.clientId;b.Browser=a.browser;b.Host=a.host;b.HostVersion=a.hostVersion;b.CorrelationId=c(a.correlationId);b.AppSizeWidth=window.innerWidth;b.AppSizeHeight=window.innerHeight;b.AppInstanceId=a.appInstanceId;b.Message=a.message;b.DocUrl=a.docUrl;b.OfficeJSVersion=a.officeJSVersion;b.HostJSVersion=a.hostJSVersion;if(a.wacHostEnvironment)b.WacHostEnvironment=a.wacHostEnvironment;if(a.isFromWacAutomation!==undefined&&a.isFromWacAutomation!==null)b.IsFromWacAutomation=a.isFromWacAutomation;(new f).LogData(b)}b.onAppActivated=o;function s(h,g,e,b){var a=new OSFLog.ScriptLoadUsageData;a.CorrelationId=c(b);a.SessionId=d;a.ScriptId=h;a.StartTime=g;a.ResponseTime=e;(new f).LogData(a)}b.onScriptDone=s;function w(j,k,h,e,i){if(!a)return;var b=new OSFLog.APIUsageUsageData;b.CorrelationId=c(g);b.SessionId=d;b.APIType=j;b.APIID=k;b.Parameters=h;b.ResponseTime=e;b.ErrorType=i;(new f).LogData(b)}b.onCallDone=w;function r(f,b,d,e){var a=null;if(b)if(typeof b=="number")a=String(b);else if(typeof b==="object")for(var c in b){if(a!==null)a+=",";else a="";if(typeof b[c]=="number")a+=String(b[c])}else a="";OSF.AppTelemetry.onCallDone("method",f,a,d,e)}b.onMethodDone=r;function p(b,a){OSF.AppTelemetry.onCallDone("property",-1,b,a)}b.onPropertyDone=p;function u(b,a){OSF.AppTelemetry.onCallDone("event",b,null,0,a)}b.onEventDone=u;function q(c,d,a,b){OSF.AppTelemetry.onCallDone(c?"registerevent":"unregisterevent",d,null,a,b)}b.onRegisterDone=q;function t(f,e){if(!a)return;var b=new OSFLog.AppClosedUsageData;b.CorrelationId=c(g);b.SessionId=d;b.FocusTime=e;b.OpenTime=f;b.AppSizeFinalWidth=window.innerWidth;b.AppSizeFinalHeight=window.innerHeight;(new i).saveLog(d,b.SerializeRow())}b.onAppClosed=t;function k(a){g=c(a)}b.setOsfControlAppCorrelationId=k;function h(b,e){var a=new OSFLog.AppInitializationUsageData;a.CorrelationId=c(g);a.SessionId=d;a.SuccessCode=b?1:0;a.Message=e;(new f).LogData(a)}b.doAppInitializationLogging=h;function l(a){h(false,a)}b.logAppCommonMessage=l;function m(a){h(true,a)}b.logAppException=m;OSF.AppTelemetry=b})(OSFAppTelemetry||(OSFAppTelemetry={}));var OfficeExt;(function(a){var b;(function(b){var e=function(){function d(){var a=this;this._pseudoDocument=null;this._eventDispatch=null;this._processAppCommandInvocation=function(b){var c=a._verifyManifestCallback(b.callbackName);if(c.errorCode!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){a._invokeAppCommandCompletedMethod(b.appCommandId,c.errorCode,"");return}var d=a._constructEventObjectForCallback(b);if(d)window.setTimeout(function(){c.callback(d)},0);else a._invokeAppCommandCompletedMethod(b.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,"")}}d.initializeOsfDda=function(){OSF.DDA.AsyncMethodNames.addNames({AppCommandInvocationCompletedAsync:"appCommandInvocationCompletedAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:["string"]},{name:Microsoft.Office.WebExtension.Parameters.Status,types:["number"]},{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string"]}]});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{AppCommandInvokedEvent:"AppCommandInvokedEvent"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{AppCommandInvoked:"appCommandInvoked"});OSF.OUtil.setNamespace("AppCommand",OSF.DDA);OSF.DDA.AppCommand.AppCommandInvokedEventArgs=a.AppCommand.AppCommandInvokedEventArgs};d.prototype.initializeAndChangeOnce=function(a){b.registerDdaFacade();this._pseudoDocument={};OSF.DDA.DispIdHost.addAsyncMethods(this._pseudoDocument,[OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync]);this._eventDispatch=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.AppCommandInvoked]);var c=function(b){if(a)if(b.status=="succeeded")a(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess);else a(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.DispIdHost.addEventSupport(this._pseudoDocument,this._eventDispatch);this._pseudoDocument.addHandlerAsync(Microsoft.Office.WebExtension.EventType.AppCommandInvoked,this._processAppCommandInvocation,c)};d.prototype._verifyManifestCallback=function(e){var d={callback:null,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCallback};e=e.trim();try{for(var a=e.split("."),b=window,c=0;c<a.length-1;c++)if(b[a[c]]&&typeof b[a[c]]=="object")b=b[a[c]];else return d;var f=b[a[a.length-1]];if(typeof f!="function")return d}catch(g){return d}return{callback:f,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}};d.prototype._invokeAppCommandCompletedMethod=function(a,b,c){this._pseudoDocument.appCommandInvocationCompletedAsync(a,b,c)};d.prototype._constructEventObjectForCallback=function(b){var e=this,a=new c;try{var d=JSON.parse(b.eventObjStr);this._translateEventObjectInternal(d,a);Object.defineProperty(a,"completed",{value:function(){var c=JSON.stringify(a);e._invokeAppCommandCompletedMethod(b.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,c)},enumerable:true})}catch(f){a=null}return a};d.prototype._translateEventObjectInternal=function(d,c){for(var a in d){if(!d.hasOwnProperty(a))continue;var b=d[a];if(typeof b=="object"&&b!=null){OSF.OUtil.defineEnumerableProperty(c,a,{value:{}});this._translateEventObjectInternal(b,c[a])}else Object.defineProperty(c,a,{value:b,enumerable:true,writable:true})}};d.prototype._constructObjectByTemplate=function(c,g){var b={};if(!c||!g)return b;for(var a in c)if(c.hasOwnProperty(a)){b[a]=null;if(g[a]!=null){var e=c[a],f=g[a],d=typeof f;if(typeof e=="object"&&e!=null)b[a]=this._constructObjectByTemplate(e,f);else if(d=="number"||d=="string"||d=="boolean")b[a]=f}}return b};d.instance=function(){if(d._instance==null)d._instance=new d;return d._instance};d._instance=null;return d}();b.AppCommandManager=e;var d=function(){function a(a,b,c){this.type=Microsoft.Office.WebExtension.EventType.AppCommandInvoked;this.appCommandId=a;this.callbackName=b;this.eventObjStr=c}a.create=function(c){return new a(c[b.AppCommandInvokedEventEnums.AppCommandId],c[b.AppCommandInvokedEventEnums.CallbackName],c[b.AppCommandInvokedEventEnums.EventObjStr])};return a}();b.AppCommandInvokedEventArgs=d;var c=function(){function a(){}return a}();b.AppCommandCallbackEventArgs=c;b.AppCommandInvokedEventEnums={AppCommandId:"appCommandId",CallbackName:"callbackName",EventObjStr:"eventObjStr"}})(b=a.AppCommand||(a.AppCommand={}))})(OfficeExt||(OfficeExt={}));OfficeExt.AppCommand.AppCommandManager.initializeOsfDda();var OfficeExt;(function(a){var b;(function(c){function b(){if(OSF.DDA.SafeArray){var b=OSF.DDA.SafeArray.Delegate.ParameterMap;b.define({type:OSF.DDA.MethodDispId.dispidAppCommandInvocationCompletedMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.Status,value:1},{name:Microsoft.Office.WebExtension.Parameters.Data,value:2}]});b.define({type:OSF.DDA.EventDispId.dispidAppCommandInvokedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.AppCommandInvokedEvent,value:b.self}],isComplexType:true});b.define({type:OSF.DDA.EventDescriptors.AppCommandInvokedEvent,fromHost:[{name:a.AppCommand.AppCommandInvokedEventEnums.AppCommandId,value:0},{name:a.AppCommand.AppCommandInvokedEventEnums.CallbackName,value:1},{name:a.AppCommand.AppCommandInvokedEventEnums.EventObjStr,value:2}],isComplexType:true})}}c.registerDdaFacade=b})(b=a.AppCommand||(a.AppCommand={}))})(OfficeExt||(OfficeExt={}));var OfficeJsClient_OutlookWin32;(function(a){function c(a){if(a.get_isDialog())a.ui=new OSF.DDA.UI.ChildUI;else a.ui=new OSF.DDA.UI.ParentUI}a.prepareApiSurface=c;function b(){var a=OfficeExt.AppCommand.AppCommandManager.instance();a.initializeAndChangeOnce()}a.prepareRightAfterWebExtensionInitialize=b})(OfficeJsClient_OutlookWin32||(OfficeJsClient_OutlookWin32={}));OSF.InitializationHelper.prototype.prepareRightAfterWebExtensionInitialize=function(){OfficeJsClient_OutlookWin32.prepareRightAfterWebExtensionInitialize()};OSF.InitializationHelper.prototype.prepareApiSurface=function(a){var b=new OSF.DDA.License(a.get_eToken());if(a.get_appName()==OSF.AppName.OutlookWebApp){OSF.WebApp._UpdateLinksForHostAndXdmInfo();OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(a,this._settings,b,a.appOM))}else{OfficeJsClient_OutlookWin32.prepareApiSurface(a);OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(a,this._settings,b,a.appOM,OSF.DDA.Theming?OSF.DDA.Theming.getOfficeTheme:null,a.ui));OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(OSF.DDA.DispIdHost.getClientDelegateMethods,OSF.DDA.SafeArray.Delegate.ParameterMap))}};OSF.DDA.SettingsManager={SerializedSettings:"serializedSettings",DateJSONPrefix:"Date(",DataJSONSuffix:")",serializeSettings:function(b){var d={};for(var c in b){var a=b[c];try{if(JSON)a=JSON.stringify(a,function(a,b){return OSF.OUtil.isDate(this[a])?OSF.DDA.SettingsManager.DateJSONPrefix+this[a].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:b});else a=Sys.Serialization.JavaScriptSerializer.serialize(a);d[c]=a}catch(e){}}return d},deserializeSettings:function(b){var d={};b=b||{};for(var c in b){var a=b[c];try{if(JSON)a=JSON.parse(a,function(c,a){var b;if(typeof a==="string"&&a&&a.length>6&&a.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&a.slice(-1)===OSF.DDA.SettingsManager.DataJSONSuffix){b=new Date(parseInt(a.slice(5,-1)));if(b)return b}return a});else a=Sys.Serialization.JavaScriptSerializer.deserialize(a,true);d[c]=a}catch(e){}}return d}};OSF.InitializationHelper.prototype.loadAppSpecificScriptAndCreateOM=function(c,e){Type.registerNamespace("Microsoft.Office.WebExtension.MailboxEnums");Microsoft.Office.WebExtension.MailboxEnums.EntityType={MeetingSuggestion:"meetingSuggestion",TaskSuggestion:"taskSuggestion",Address:"address",EmailAddress:"emailAddress",Url:"url",PhoneNumber:"phoneNumber",Contact:"contact",FlightReservations:"flightReservations",ParcelDeliveries:"parcelDeliveries"};Microsoft.Office.WebExtension.MailboxEnums.ItemType={Message:"message",Appointment:"appointment"};Microsoft.Office.WebExtension.MailboxEnums.ResponseType={None:"none",Organizer:"organizer",Tentative:"tentative",Accepted:"accepted",Declined:"declined"};Microsoft.Office.WebExtension.MailboxEnums.RecipientType={Other:"other",DistributionList:"distributionList",User:"user",ExternalUser:"externalUser"};Microsoft.Office.WebExtension.MailboxEnums.AttachmentType={File:"file",Item:"item",Cloud:"cloud"};Microsoft.Office.WebExtension.MailboxEnums.BodyType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType={ProgressIndicator:"progressIndicator",InformationalMessage:"informationalMessage",ErrorMessage:"errorMessage"};Microsoft.Office.WebExtension.CoercionType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.MailboxEnums.UserProfileType={Office365:"office365",OutlookCom:"outlookCom",Enterprise:"enterprise"};Microsoft.Office.WebExtension.MailboxEnums.RestVersion={v1_0:"v1.0",v2_0:"v2.0",Beta:"beta"};Type.registerNamespace("OSF.DDA");var b=window.OSF||{};b.DDA=b.DDA||{};window.OSF.DDA.OutlookAppOm=b.DDA.OutlookAppOm=function(d,e,c){this.$$d_displayContactCardAsync=Function.createDelegate(this,this.displayContactCardAsync);this.$$d_displayNewMessageFormApi=Function.createDelegate(this,this.displayNewMessageFormApi);this.$$d__displayNewAppointmentFormApi$p$0=Function.createDelegate(this,this._displayNewAppointmentFormApi$p$0);this.$$d_windowOpenOverrideHandler=Function.createDelegate(this,this.windowOpenOverrideHandler);this.$$d__getEwsUrl$p$0=Function.createDelegate(this,this._getEwsUrl$p$0);this.$$d__getDiagnostics$p$0=Function.createDelegate(this,this._getDiagnostics$p$0);this.$$d__getUserProfile$p$0=Function.createDelegate(this,this._getUserProfile$p$0);this.$$d__getItem$p$0=Function.createDelegate(this,this._getItem$p$0);this.$$d__callAppReadyCallback$p$0=Function.createDelegate(this,this._callAppReadyCallback$p$0);this.$$d__getInitialDataResponseHandler$p$0=Function.createDelegate(this,this._getInitialDataResponseHandler$p$0);window.OSF.DDA.OutlookAppOm._instance$p=this;this._officeAppContext$p$0=d;this._appReadyCallback$p$0=c;var a=this,b=function(){if(c)if(!d.get_isDialog())a.invokeHostMethod(1,null,a.$$d__getInitialDataResponseHandler$p$0);else window.setTimeout(a.$$d__callAppReadyCallback$p$0,0)};if(this._areStringsLoaded$p$0())b();else this._loadLocalizedScript$p$0(b)};window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i=function(a){if(!a)throw Error.create(window._u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text);};window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i=function(a,d,c,b){if(a<d||a>c)throw Error.argumentOutOfRange(b);};window.OSF.DDA.OutlookAppOm._getHtmlBody$p=function(a){var b="";if("htmlBody"in a){window.OSF.DDA.OutlookAppOm._throwOnInvalidHtmlBody$p(a.htmlBody);b=a.htmlBody}return b};window.OSF.DDA.OutlookAppOm._getAttachments$p=function(b){var a=[];if("attachments"in b){a=b.attachments;window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentsArray$p(a)}return a};window.OSF.DDA.OutlookAppOm._getOptionsAndCallback$p=function(b){var a=[];if("options"in b)a[0]=b.options;if("callback"in b)a[a.length]=b.callback;return a};window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p=function(b){var c=new Array(0);if(Array.isInstanceOfType(b))for(var a=0;a<b.length;a++)if(Object.isInstanceOfType(b[a])){var d=b[a];window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachment$p(d);c[a]=window.OSF.DDA.OutlookAppOm._createAttachmentData$p(d)}else throw Error.argument("attachments");return c};window.OSF.DDA.OutlookAppOm._throwOnInvalidHtmlBody$p=function(b){if(!String.isInstanceOfType(b))throw Error.argument("htmlBody");if(a.ScriptHelpers.isNullOrUndefined(b))throw Error.argument("htmlBody");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(b.length,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody")};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentsArray$p=function(a){if(!Array.isInstanceOfType(a))throw Error.argument("attachments");};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachment$p=function(a){if(!Object.isInstanceOfType(a))throw Error.argument("attachments");if(!("type"in a)||!("name"in a))throw Error.argument("attachments");if(!("url"in a||"itemId"in a))throw Error.argument("attachments");};window.OSF.DDA.OutlookAppOm._createAttachmentData$p=function(a){var c=null;if(a.type==="file"){var e=a.url,b=a.name;window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentUrlOrName$p(e,b);c=window.OSF.DDA.OutlookAppOm._createFileAttachmentData$p(e,b)}else if(a.type==="item"){var d=window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(a.itemId),b=a.name;window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentItemIdOrName$p(d,b);c=window.OSF.DDA.OutlookAppOm._createItemAttachmentData$p(d,b)}else throw Error.argument("attachments");return c};window.OSF.DDA.OutlookAppOm._createFileAttachmentData$p=function(b,a){return["file",a,b]};window.OSF.DDA.OutlookAppOm._createItemAttachmentData$p=function(a,b){return["item",b,a]};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentUrlOrName$p=function(a,b){if(!String.isInstanceOfType(a)||!String.isInstanceOfType(b))throw Error.argument("attachments");if(a.length>2048)throw Error.argumentOutOfRange("attachments",a.length,window._u.ExtensibilityStrings.l_AttachmentUrlTooLong_Text);window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p(b)};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentItemIdOrName$p=function(a,b){if(!String.isInstanceOfType(a)||!String.isInstanceOfType(b))throw Error.argument("attachments");if(a.length>200)throw Error.argumentOutOfRange("attachments",a.length,window._u.ExtensibilityStrings.l_AttachmentItemIdTooLong_Text);window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p(b)};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p=function(a){if(a.length>255)throw Error.argumentOutOfRange("attachments",a.length,window._u.ExtensibilityStrings.l_AttachmentNameTooLong_Text);};window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p=function(a){if(!a)throw Error.argumentNull("restVersion");if(a!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0&&a!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v2_0&&a!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.Beta)throw Error.argument("restVersion");};window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost=function(a){return window.OSF.DDA.OutlookAppOm._instance$p._initialData$p$0&&window.OSF.DDA.OutlookAppOm._instance$p._initialData$p$0.get__isRestIdSupported$i$0()?window.OSF.DDA.OutlookAppOm._instance$p.convertToRestId(a,window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0):window.OSF.DDA.OutlookAppOm._instance$p.convertToEwsId(a,window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0)};window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p=function(c,b,a){if(Object.getType(c)!==b)throw Error.argumentType(a);};window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p=function(b,f,e,c){if(a.ScriptHelpers.isNullOrUndefined(b))return;window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(b,String,c);var d=b;window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(d.length,f,e,c)};window.OSF.DDA.OutlookAppOm._convertToOutlookParameters$p=function(d,a){var b=null;switch(d){case 1:case 2:case 12:case 3:case 14:case 18:case 26:case 32:case 41:case 34:break;case 4:var c=window.JSON.stringify(a.customProperties);b=[c];break;case 5:b=[a.body];break;case 8:case 9:b=[a.itemId];break;case 7:b=[window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(a.requiredAttendees),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(a.optionalAttendees),a.start,a.end,a.location,window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(a.resources),a.subject,a.body];break;case 44:b=[window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(a.toRecipients),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(a.ccRecipients),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(a.bccRecipients),a.subject,a.htmlBody,a.attachments];break;case 43:b=[a.ewsIdOrEmail];break;case 40:b=[a.extensionId,a.consentState];break;case 11:case 10:b=[a.htmlBody];break;case 31:case 30:b=[a.htmlBody,a.attachments];break;case 23:case 13:case 38:case 29:b=[a.data,a.coercionType];break;case 37:case 28:b=[a.coercionType];break;case 17:b=[a.subject];break;case 15:b=[a.recipientField];break;case 22:case 21:b=[a.recipientField,window.OSF.DDA.OutlookAppOm._convertComposeEmailDictionaryParameterForSetApi$p(a.recipientArray)];break;case 19:b=[a.itemId,a.name];break;case 16:b=[a.uri,a.name];break;case 20:b=[a.attachmentIndex];break;case 25:b=[a.TimeProperty,a.time];break;case 24:b=[a.TimeProperty];break;case 27:b=[a.location];break;case 33:case 35:b=[a.key,a.type,a.persistent,a.message,a.icon];break;case 36:b=[a.key];break;default:Sys.Debug.fail("Unexpected method dispid")}return b};window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p=function(a){return a?a.join(";"):null};window.OSF.DDA.OutlookAppOm._convertComposeEmailDictionaryParameterForSetApi$p=function(a){if(!a)return null;for(var c=new Array(a.length),b=0;b<a.length;b++)c[b]=[a[b].address,a[b].name];return c};window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p=function(g,e){if(a.ScriptHelpers.isNullOrUndefined(g))return null;window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(g,Array,e);var c=g,d=null,f=false;window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,window.OSF.DDA.OutlookAppOm._maxRecipients$p,String.format("{0}.length",e));for(var b=0;b<c.length;b++)if(a.EmailAddressDetails.isInstanceOfType(c[b])){f=true;break}if(f)d=[];for(var b=0;b<c.length;b++)if(f){d[b]=a.EmailAddressDetails.isInstanceOfType(c[b])?c[b].emailAddress:c[b];window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(d[b],String,String.format("{0}[{1}]",e,b))}else window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(c[b],String,String.format("{0}[{1}]",e,b));return d};b.DDA.OutlookAppOm.prototype={_initialData$p$0:null,_item$p$0:null,_userProfile$p$0:null,_diagnostics$p$0:null,_officeAppContext$p$0:null,_appReadyCallback$p$0:null,_clientEndPoint$p$0:null,_hostItemType$p$0:0,get_clientEndPoint:function(){if(!this._clientEndPoint$p$0)this._clientEndPoint$p$0=b._OfficeAppFactory.getClientEndPoint();return this._clientEndPoint$p$0},set_clientEndPoint:function(a){this._clientEndPoint$p$0=a;return a},get_initialData:function(){return this._initialData$p$0},get__appName$i$0:function(){return this._officeAppContext$p$0.get_appName()},initialize:function(b){var c="itemType";this._initialData$p$0=new a.InitialData(b);this._hostItemType$p$0=b[c];if(1===b[c])this._item$p$0=new a.Message(this._initialData$p$0);else if(3===b[c])this._item$p$0=new a.MeetingRequest(this._initialData$p$0);else if(2===b[c])this._item$p$0=new a.Appointment(this._initialData$p$0);else if(4===b[c])this._item$p$0=new a.MessageCompose(this._initialData$p$0);else if(5===b[c])this._item$p$0=new a.AppointmentCompose(this._initialData$p$0);else 6!==b[c]&&Sys.Debug.trace("Unexpected item type was received from the host.");this._userProfile$p$0=new a.UserProfile(this._initialData$p$0);this._diagnostics$p$0=new a.Diagnostics(this._initialData$p$0,this._officeAppContext$p$0.get_appName());this._initializeMethods$p$0();a.InitialData._defineReadOnlyProperty$i(this,"item",this.$$d__getItem$p$0);a.InitialData._defineReadOnlyProperty$i(this,"userProfile",this.$$d__getUserProfile$p$0);a.InitialData._defineReadOnlyProperty$i(this,"diagnostics",this.$$d__getDiagnostics$p$0);a.InitialData._defineReadOnlyProperty$i(this,"ewsUrl",this.$$d__getEwsUrl$p$0);if(window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===64)if(this._initialData$p$0.get__overrideWindowOpen$i$0())window.open=this.$$d_windowOpenOverrideHandler},windowOpenOverrideHandler:function(a){this.invokeHostMethod(403,{launchUrl:a},null)},createAsyncResult:function(j,i,e,h,g){var d={},c=null;d[b.DDA.AsyncResultEnum.Properties.Value]=j;d[b.DDA.AsyncResultEnum.Properties.Context]=h;if(0!==i){c={};var f=a.OutlookErrorManager.getErrorArgs(e);c[b.DDA.AsyncResultEnum.ErrorProperties.Name]=f.name;c[b.DDA.AsyncResultEnum.ErrorProperties.Message]=!g?f.message:g;c[b.DDA.AsyncResultEnum.ErrorProperties.Code]=e}return new b.DDA.AsyncResult(d,c)},_throwOnMethodCallForInsufficientPermission$i$0:function(a,b){if(this._initialData$p$0._permissionLevel$p$0<a)throw Error.create(String.format(window._u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text,b));},_displayReplyForm$i$0:function(a){this._displayReplyFormHelper$p$0(a,false)},_displayReplyAllForm$i$0:function(a){this._displayReplyFormHelper$p$0(a,true)},_displayReplyFormHelper$p$0:function(a,b){if(String.isInstanceOfType(a))this._doDisplayReplyForm$p$0(a,b);else if(Object.isInstanceOfType(a)&&Object.getTypeName(a)==="Object")this._doDisplayReplyFormWithAttachments$p$0(a,b);else throw Error.argumentType();},_doDisplayReplyForm$p$0:function(b,c){!a.ScriptHelpers.isNullOrUndefined(b)&&window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(b.length,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody");this.invokeHostMethod(c?11:10,{htmlBody:b},null)},_doDisplayReplyFormWithAttachments$p$0:function(b,e){var f=window.OSF.DDA.OutlookAppOm._getHtmlBody$p(b),d=window.OSF.DDA.OutlookAppOm._getAttachments$p(b),c=a.CommonParameters.parse(window.OSF.DDA.OutlookAppOm._getOptionsAndCallback$p(b),false),g=this;this._standardInvokeHostMethod$i$0(e?31:30,{htmlBody:f,attachments:window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p(d)},function(a){return a},c._asyncContext$p$0,c._callback$p$0)},_standardInvokeHostMethod$i$0:function(e,f,d,a,c){var b=this;this.invokeHostMethod(e,f,function(i,g){if(c){var f=null;if(Object.isInstanceOfType(g)){var e=g;if("error"in e||"data"in e||"errorCode"in e)if(!e.error){var h=d?d(e.data):e.data;f=b.createAsyncResult(h,0,0,a,null)}else{var j=e.errorCode;f=b.createAsyncResult(null,1,j,a,null)}}if(!f&&i)f=b.createAsyncResult(null,1,9002,a,null);c(f)}})},invokeHostMethod:function(c,e,a){if(64===this._officeAppContext$p$0.get_appName()){var d={ApiParams:e};d.MethodData={ControlId:b._OfficeAppFactory.getId(),DispatchId:c};if(c===1)this.get_clientEndPoint().invoke("GetInitialData",a,d);else this.get_clientEndPoint().invoke("ExecuteMethod",a,d)}else if(!this._isOwaOnlyMethod$p$0(c)){var f=window.OSF.DDA.OutlookAppOm._convertToOutlookParameters$p(c,e),g=this;b.ClientHostController.execute(c,f,function(g,f){if(a){var c=g.toArray(),d=window.JSON.parse(c[0]);if(Object.isInstanceOfType(d)){var b=d;if(c.length>1&&c[1]){b.error=true;b.errorCode=c[1]}else b.error=false;a(f,b)}else if(Number.isInstanceOfType(d)){var e={};e.error=true;e.errorCode=d;a(f,e)}else throw Error.notImplemented("Return data type from host must be Dictionary or int");}})}else a&&a(-2,null)},_dictionaryToDate$i$0:function(a){var b=new Date(a.year,a.month,a.date,a.hours,a.minutes,a.seconds,!a.milliseconds?0:a.milliseconds);if(window.isNaN(b.getTime()))throw Error.format(window._u.ExtensibilityStrings.l_InvalidDate_Text);return b},_dateToDictionary$i$0:function(b){var a={};a.month=b.getMonth();a.date=b.getDate();a.year=b.getFullYear();a.hours=b.getHours();a.minutes=b.getMinutes();a.seconds=b.getSeconds();a.milliseconds=b.getMilliseconds();return a},_isOwaOnlyMethod$p$0:function(a){switch(a){case 402:case 401:case 400:case 403:return true;default:return false}},_displayNewAppointmentFormApi$p$0:function(b){var e=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(b.requiredAttendees,"requiredAttendees"),d=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(b.optionalAttendees,"optionalAttendees");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(b.location,0,window.OSF.DDA.OutlookAppOm._maxLocationLength$p,"location");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(b.body,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"body");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(b.subject,0,window.OSF.DDA.OutlookAppOm._maxSubjectLength$p,"subject");if(!a.ScriptHelpers.isNullOrUndefined(b.start)){window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(b.start,Date,"start");var g=b.start;b.start=g.getTime();if(!a.ScriptHelpers.isNullOrUndefined(b.end)){window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(b.end,Date,"end");var f=b.end;if(f<g)throw Error.argumentOutOfRange("end",f,window._u.ExtensibilityStrings.l_InvalidEventDates_Text);b.end=f.getTime()}}var c=null;if(e||d){c={};var h=b;for(var i in h){var j={key:i,value:h[i]};c[j.key]=j.value}if(e)c.requiredAttendees=e;if(d)c.optionalAttendees=d}this.invokeHostMethod(7,c||b,null)},displayNewMessageFormApi:function(a){var b={};if(a){var e=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(a.toRecipients,"toRecipients"),d=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(a.ccRecipients,"ccRecipients"),c=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(a.bccRecipients,"bccRecipients");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(a.htmlBody,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(a.subject,0,window.OSF.DDA.OutlookAppOm._maxSubjectLength$p,"subject");var f=window.OSF.DDA.OutlookAppOm._getAttachments$p(a),g=a;for(var h in g){var i={key:h,value:g[h]};b[i.key]=i.value}if(e)b.toRecipients=e;if(d)b.ccRecipients=d;if(c)b.bccRecipients=c;if(f)b.attachments=window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p(f)}this.invokeHostMethod(44,b||a,null)},displayContactCardAsync:function(e,f){if(a.ScriptHelpers.isNullOrUndefined(e))throw Error.argumentNull("ewsIdOrEmail");var d=null,b=null;if(f){var c=a.CommonParameters.parse([f],false);d=c._asyncContext$p$0;b=c._callback$p$0}this._standardInvokeHostMethod$i$0(43,{ewsIdOrEmail:e.trim()},null,d,b)},_initializeMethods$p$0:function(){var b=this;if(a.Item.isInstanceOfType(this._item$p$0)||this._hostItemType$p$0===6){b.displayNewAppointmentForm=this.$$d__displayNewAppointmentFormApi$p$0;b.displayNewMessageForm=this.$$d_displayNewMessageFormApi;b.displayContactCardAsync=this.$$d_displayContactCardAsync}},_getInitialDataResponseHandler$p$0:function(a,b){if(a)return;this.initialize(b);this.displayName="mailbox";window.setTimeout(this.$$d__callAppReadyCallback$p$0,0)},_callAppReadyCallback$p$0:function(){this._appReadyCallback$p$0()},_invokeGetTokenMethodAsync$p$0:function(e,f,d,b){if(a.ScriptHelpers.isNullOrUndefined(d))throw Error.argumentNull("callback");var c=this;this.invokeHostMethod(e,null,function(f,g){var e;if(f)e=c.createAsyncResult(null,1,9017,b,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,f));else{var a=g;if(a.wasSuccessful)e=c.createAsyncResult(a.token,0,0,b,null);else e=c.createAsyncResult(null,1,a.errorCode,b,a.errorMessage)}d(e)})},_getItem$p$0:function(){return this._item$p$0},_getUserProfile$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._initialData$p$0._permissionLevel$p$0);return this._userProfile$p$0},_getDiagnostics$p$0:function(){return this._diagnostics$p$0},_getEwsUrl$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._initialData$p$0._permissionLevel$p$0);return this._initialData$p$0.get__ewsUrl$i$0()},_findOffset$p$0:function(d){for(var c=this._initialData$p$0.get__timeZoneOffsets$i$0(),b=0;b<c.length;b++){var a=c[b],e=window.parseInt(a.start),f=window.parseInt(a.end);if(d.getTime()-e>=0&&d.getTime()-f<0)return window.parseInt(a.offset)}throw Error.format(window._u.ExtensibilityStrings.l_InvalidDate_Text);},_areStringsLoaded$p$0:function(){var b=false;try{b=!a.ScriptHelpers.isNullOrUndefined(window._u.ExtensibilityStrings.l_EwsRequestOversized_Text)}catch(c){}return b},_loadLocalizedScript$p$0:function(i){for(var g=null,l="",m=document.getElementsByTagName("script"),h=m.length-1;h>=0;h--){var b=null,j=m[h].attributes;if(j){var k=j.getNamedItem("src");if(k)b=k.value;if(b){var o=false;b=b.toLowerCase();var e=b.indexOf("office_strings.js");if(e<0){e=b.indexOf("office_strings.debug.js");o=true}if(e>0&&e<b.length){g=b.replace(o?"office_strings.debug.js":"office_strings.js","outlook_strings.js");var c=b.substring(0,e),d=c.lastIndexOf("/",c.length-2);if(d===-1)d=c.lastIndexOf("\\",c.length-2);if(d!==-1&&c.length>d+1)l=c.substring(0,d+1);break}}}}if(g){var p=document.getElementsByTagName("head")[0],a=null,r=this,f=function(){if(i&&(!a.readyState||a.readyState&&(a.readyState==="loaded"||a.readyState==="complete"))){a.onload=null;a.onreadystatechange=null;i()}},n=this,q=function(){if(!n._areStringsLoaded$p$0()){var b=l+"en-us/outlook_strings.js";a.onload=null;a.onreadystatechange=null;a=n._createScriptElement$p$0(b);a.onload=f;a.onreadystatechange=f;p.appendChild(a)}};a=this._createScriptElement$p$0(g);a.onload=f;a.onreadystatechange=f;window.setTimeout(q,2e3);p.appendChild(a)}},_createScriptElement$p$0:function(b){var a=document.createElement("script");a.type="text/javascript";a.src=b;return a}};b.DDA.OutlookAppOm.prototype.makeEwsRequestAsync=function(d){for(var f=[],c=1;c<arguments.length;++c)f[c-1]=arguments[c];if(a.ScriptHelpers.isNullOrUndefined(d))throw Error.argumentNull("data");if(d.length>window.OSF.DDA.OutlookAppOm._maxEwsRequestSize$p)throw Error.argument("data",window._u.ExtensibilityStrings.l_EwsRequestOversized_Text);this._throwOnMethodCallForInsufficientPermission$i$0(3,"makeEwsRequestAsync");var e=a.CommonParameters.parse(f,true,true),b=new a.EwsRequest(e._asyncContext$p$0),g=this;b.onreadystatechange=function(){4===b.get__requestState$i$1()&&e._callback$p$0(b._asyncResult$p$0)};b.send(d)};b.DDA.OutlookAppOm.prototype.recordDataPoint=function(b){if(a.ScriptHelpers.isNullOrUndefined(b))throw Error.argumentNull("data");this.invokeHostMethod(402,b,null)};b.DDA.OutlookAppOm.prototype.recordTrace=function(b){if(a.ScriptHelpers.isNullOrUndefined(b))throw Error.argumentNull("data");this.invokeHostMethod(401,b,null)};b.DDA.OutlookAppOm.prototype.trackCtq=function(b){if(a.ScriptHelpers.isNullOrUndefined(b))throw Error.argumentNull("data");this.invokeHostMethod(400,b,null)};b.DDA.OutlookAppOm.prototype.convertToLocalClientTime=function(d){var a=new Date(d.getTime()),b=a.getTimezoneOffset()*-1;if(this._initialData$p$0&&this._initialData$p$0.get__timeZoneOffsets$i$0()){a.setUTCMinutes(a.getUTCMinutes()-b);b=this._findOffset$p$0(a);a.setUTCMinutes(a.getUTCMinutes()+b)}var c=this._dateToDictionary$i$0(a);c.timezoneOffset=b;return c};b.DDA.OutlookAppOm.prototype.convertToUtcClientTime=function(c){var a=this._dictionaryToDate$i$0(c);if(this._initialData$p$0&&this._initialData$p$0.get__timeZoneOffsets$i$0()){var b=this._findOffset$p$0(a);a.setUTCMinutes(a.getUTCMinutes()-b);b=!c.timezoneOffset?a.getTimezoneOffset()*-1:c.timezoneOffset;a.setUTCMinutes(a.getUTCMinutes()+b)}return a};b.DDA.OutlookAppOm.prototype.convertToRestId=function(a,b){if(!a)throw Error.argumentNull("itemId");window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p(b);return a.replace(new RegExp("[/]","g"),"-").replace(new RegExp("[+]","g"),"_")};b.DDA.OutlookAppOm.prototype.convertToEwsId=function(a,b){if(!a)throw Error.argumentNull("itemId");window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p(b);return a.replace(new RegExp("[-]","g"),"/").replace(new RegExp("[_]","g"),"+")};b.DDA.OutlookAppOm.prototype.getUserIdentityTokenAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];this._throwOnMethodCallForInsufficientPermission$i$0(1,"getUserIdentityTokenAsync");var c=a.CommonParameters.parse(d,true,true);this._invokeGetTokenMethodAsync$p$0(2,"GetUserIdentityToken",c._callback$p$0,c._asyncContext$p$0)};b.DDA.OutlookAppOm.prototype.getCallbackTokenAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];this._throwOnMethodCallForInsufficientPermission$i$0(1,"getCallbackTokenAsync");var c=a.CommonParameters.parse(d,true,true);this._invokeGetTokenMethodAsync$p$0(12,"GetCallbackToken",c._callback$p$0,c._asyncContext$p$0)};b.DDA.OutlookAppOm.prototype.displayMessageForm=function(b){if(a.ScriptHelpers.isNullOrUndefined(b))throw Error.argumentNull("itemId");this.invokeHostMethod(8,{itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(b)},null)};b.DDA.OutlookAppOm.prototype.displayAppointmentForm=function(b){if(a.ScriptHelpers.isNullOrUndefined(b))throw Error.argumentNull("itemId");this.invokeHostMethod(9,{itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(b)},null)};b.DDA.OutlookAppOm.prototype.RegisterConsentAsync=function(a){if(a!==2&&a!==1&&a)throw Error.argumentOutOfRange("consentState");var b={};b.consentState=a.toString();b.extensionId=this.GetExtensionId();this.invokeHostMethod(40,b,null)};b.DDA.OutlookAppOm.prototype.CloseApp=function(){this.invokeHostMethod(42,null,null)};b.DDA.OutlookAppOm.prototype.GetIsRead=function(){return this._initialData$p$0.get__isRead$i$0()};b.DDA.OutlookAppOm.prototype.GetEndNodeUrl=function(){return this._initialData$p$0.get__endNodeUrl$i$0()};b.DDA.OutlookAppOm.prototype.GetConsentMetadata=function(){return this._initialData$p$0.get__consentMetadata$i$0()};b.DDA.OutlookAppOm.prototype.GetEntryPointUrl=function(){return this._initialData$p$0.get__entryPointUrl$i$0()};b.DDA.OutlookAppOm.prototype.GetMarketplaceContentMarket=function(){return this._initialData$p$0.get__marketplaceContentMarket$i$0()};b.DDA.OutlookAppOm.prototype.GetMarketplaceAssetId=function(){return this._initialData$p$0.get__marketplaceAssetId$i$0()};b.DDA.OutlookAppOm.prototype.GetExtensionId=function(){return this._initialData$p$0.get__extensionId$i$0()};window.OSF.DDA.Settings=b.DDA.Settings=function(a){this._rawData$p$0=a};window.OSF.DDA.Settings._convertFromRawSettings$p=function(a){if(!a)return{};if(window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===8){var c=a.SettingsKey;if(c)return b.DDA.SettingsManager.deserializeSettings(c)}return a};b.DDA.Settings.prototype={_rawData$p$0:null,_settingsData$p$0:null,get__data$p$0:function(){if(!this._settingsData$p$0){this._settingsData$p$0=window.OSF.DDA.Settings._convertFromRawSettings$p(this._rawData$p$0);this._rawData$p$0=null}return this._settingsData$p$0},_saveSettingsForOutlook$p$0:function(e,d){var a=null;try{var g=b.DDA.SettingsManager.serializeSettings(this.get__data$p$0()),h=window.JSON.stringify(g),f={SettingsKey:h};b.DDA.ClientSettingsManager.write(f)}catch(i){a=i}if(e){var c;if(a)c=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9019,d,a.message);else c=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,0,0,d,null);e(c)}},_saveSettingsForOwa$p$0:function(c,a){var d=b.DDA.SettingsManager.serializeSettings(this.get__data$p$0()),e=this;window.OSF.DDA.OutlookAppOm._instance$p.invokeHostMethod(404,[d],function(e,f){if(c){var b;if(e)b=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9017,a,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,e));else{var d=f;if(!d.error)b=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,0,0,a,null);else b=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9019,a,d.errorMessage)}c(b)}})}};b.DDA.Settings.prototype.get=function(a){return this.get__data$p$0()[a]};b.DDA.Settings.prototype.set=function(b,a){this.get__data$p$0()[b]=a};b.DDA.Settings.prototype.remove=function(a){delete this.get__data$p$0()[a]};b.DDA.Settings.prototype.saveAsync=function(){for(var e=[],d=0;d<arguments.length;++d)e[d]=arguments[d];var c=a.CommonParameters.parse(e,false);if(window.JSON.stringify(b.DDA.SettingsManager.serializeSettings(this.get__data$p$0())).length>32768){var f=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9019,c._asyncContext$p$0,""),g=this;window.setTimeout(function(){c._callback$p$0(f)},0);return}if(window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===64)this._saveSettingsForOwa$p$0(c._callback$p$0,c._asyncContext$p$0);else this._saveSettingsForOutlook$p$0(c._callback$p$0,c._asyncContext$p$0)};Type.registerNamespace("$h");var a=window.$h||{};Type.registerNamespace("Office.cast");var d=window.Office||{};d.cast=d.cast||{};a.Appointment=function(b){this.$$d__getOrganizer$p$2=Function.createDelegate(this,this._getOrganizer$p$2);this.$$d__getNormalizedSubject$p$2=Function.createDelegate(this,this._getNormalizedSubject$p$2);this.$$d__getSubject$p$2=Function.createDelegate(this,this._getSubject$p$2);this.$$d__getResources$p$2=Function.createDelegate(this,this._getResources$p$2);this.$$d__getRequiredAttendees$p$2=Function.createDelegate(this,this._getRequiredAttendees$p$2);this.$$d__getOptionalAttendees$p$2=Function.createDelegate(this,this._getOptionalAttendees$p$2);this.$$d__getLocation$p$2=Function.createDelegate(this,this._getLocation$p$2);this.$$d__getEnd$p$2=Function.createDelegate(this,this._getEnd$p$2);this.$$d__getStart$p$2=Function.createDelegate(this,this._getStart$p$2);a.Appointment.initializeBase(this,[b]);a.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$2);a.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$2);a.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$2);a.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$2);a.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$2);a.InitialData._defineReadOnlyProperty$i(this,"resources",this.$$d__getResources$p$2);a.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$2);a.InitialData._defineReadOnlyProperty$i(this,"normalizedSubject",this.$$d__getNormalizedSubject$p$2);a.InitialData._defineReadOnlyProperty$i(this,"organizer",this.$$d__getOrganizer$p$2)};a.Appointment.prototype={getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},_getStart$p$2:function(){return this._data$p$0.get__start$i$0()},_getEnd$p$2:function(){return this._data$p$0.get__end$i$0()},_getLocation$p$2:function(){return this._data$p$0.get__location$i$0()},_getOptionalAttendees$p$2:function(){return this._data$p$0.get__cc$i$0()},_getRequiredAttendees$p$2:function(){return this._data$p$0.get__to$i$0()},_getResources$p$2:function(){return this._data$p$0.get__resources$i$0()},_getSubject$p$2:function(){return this._data$p$0.get__subject$i$0()},_getNormalizedSubject$p$2:function(){return this._data$p$0.get__normalizedSubject$i$0()},_getOrganizer$p$2:function(){return this._data$p$0.get__organizer$i$0()}};a.Appointment.prototype.getEntities=function(){return this._data$p$0._getEntities$i$0()};a.Appointment.prototype.getEntitiesByType=function(a){return this._data$p$0._getEntitiesByType$i$0(a)};a.Appointment.prototype.getRegExMatches=function(){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatches");return this._data$p$0._getRegExMatches$i$0()};a.Appointment.prototype.getFilteredEntitiesByName=function(a){return this._data$p$0._getFilteredEntitiesByName$i$0(a)};a.Appointment.prototype.getRegExMatchesByName=function(a){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatchesByName");return this._data$p$0._getRegExMatchesByName$i$0(a)};a.Appointment.prototype.displayReplyForm=function(a){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyForm$i$0(a)};a.Appointment.prototype.displayReplyAllForm=function(a){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyAllForm$i$0(a)};a.AppointmentCompose=function(b){this.$$d__getLocation$p$2=Function.createDelegate(this,this._getLocation$p$2);this.$$d__getEnd$p$2=Function.createDelegate(this,this._getEnd$p$2);this.$$d__getStart$p$2=Function.createDelegate(this,this._getStart$p$2);this.$$d__getOptionalAttendees$p$2=Function.createDelegate(this,this._getOptionalAttendees$p$2);this.$$d__getRequiredAttendees$p$2=Function.createDelegate(this,this._getRequiredAttendees$p$2);a.AppointmentCompose.initializeBase(this,[b]);a.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$2);a.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$2);a.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$2);a.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$2);a.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$2)};a.AppointmentCompose.prototype={_requiredAttendees$p$2:null,_optionalAttendees$p$2:null,_start$p$2:null,_end$p$2:null,_location$p$2:null,getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},_getRequiredAttendees$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._requiredAttendees$p$2)this._requiredAttendees$p$2=new a.ComposeRecipient(0,"requiredAttendees");return this._requiredAttendees$p$2},_getOptionalAttendees$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._optionalAttendees$p$2)this._optionalAttendees$p$2=new a.ComposeRecipient(1,"optionalAttendees");return this._optionalAttendees$p$2},_getStart$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._start$p$2)this._start$p$2=new a.ComposeTime(1);return this._start$p$2},_getEnd$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._end$p$2)this._end$p$2=new a.ComposeTime(2);return this._end$p$2},_getLocation$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._location$p$2)this._location$p$2=new a.ComposeLocation;return this._location$p$2}};a.AttachmentConstants=function(){};a.AttachmentDetails=function(b){this.$$d__getIsInline$p$0=Function.createDelegate(this,this._getIsInline$p$0);this.$$d__getAttachmentType$p$0=Function.createDelegate(this,this._getAttachmentType$p$0);this.$$d__getSize$p$0=Function.createDelegate(this,this._getSize$p$0);this.$$d__getContentType$p$0=Function.createDelegate(this,this._getContentType$p$0);this.$$d__getName$p$0=Function.createDelegate(this,this._getName$p$0);this.$$d__getId$p$0=Function.createDelegate(this,this._getId$p$0);this._data$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"id",this.$$d__getId$p$0);a.InitialData._defineReadOnlyProperty$i(this,"name",this.$$d__getName$p$0);a.InitialData._defineReadOnlyProperty$i(this,"contentType",this.$$d__getContentType$p$0);a.InitialData._defineReadOnlyProperty$i(this,"size",this.$$d__getSize$p$0);a.InitialData._defineReadOnlyProperty$i(this,"attachmentType",this.$$d__getAttachmentType$p$0);a.InitialData._defineReadOnlyProperty$i(this,"isInline",this.$$d__getIsInline$p$0)};a.AttachmentDetails.prototype={_data$p$0:null,_getId$p$0:function(){return this._data$p$0.id},_getName$p$0:function(){return this._data$p$0.name},_getContentType$p$0:function(){return this._data$p$0.contentType},_getSize$p$0:function(){return this._data$p$0.size},_getAttachmentType$p$0:function(){var b=this._data$p$0.attachmentType;return b<a.AttachmentDetails._attachmentTypeMap$p.length?a.AttachmentDetails._attachmentTypeMap$p[b]:window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File},_getIsInline$p$0:function(){return this._data$p$0.isInline}};a.Body=function(){};a.Body._tryMapToHostCoercionType$i=function(b,a){a.val=undefined;if(b===window.Microsoft.Office.WebExtension.CoercionType.Html)a.val=3;else if(b===window.Microsoft.Office.WebExtension.CoercionType.Text)a.val=0;else return false;return true};a.Body.prototype.getAsync=function(h){for(var g=[],b=1;b<arguments.length;++b)g[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"body.getAsync");var d=a.CommonParameters.parse(g,true),c,e,f;if(!(f=a.Body._tryMapToHostCoercionType$i(h,e={val:c}),c=e.val,f))throw Error.argument("coercionType");var i={coercionType:c};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(37,i,null,d._asyncContext$p$0,d._callback$p$0)};a.ComposeBody=function(){a.ComposeBody.initializeBase(this)};a.ComposeBody._createParameterDictionaryToHost$i=function(g,b){var d={data:g};if(b._options$p$0&&!a.ScriptHelpers.isNull(b._options$p$0.coercionType)){var c,e,f;if(!(f=a.Body._tryMapToHostCoercionType$i(b._options$p$0.coercionType,e={val:c}),c=e.val,f)){b._callback$p$0&&b._callback$p$0(window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,1e3,b._asyncContext$p$0,null));return null}d.coercionType=c}else d.coercionType=0;return d};a.ComposeBody.prototype.getTypeAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"body.getTypeAsync");var c=a.CommonParameters.parse(d,true);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(14,null,null,c._asyncContext$p$0,c._callback$p$0)};a.ComposeBody.prototype.setSelectedDataAsync=function(c){for(var f=[],b=1;b<arguments.length;++b)f[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.setSelectedDataAsync");var d=a.CommonParameters.parse(f,false);if(!String.isInstanceOfType(c))throw Error.argumentType("data",Object.getType(c),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,1e6,"data");var e=a.ComposeBody._createParameterDictionaryToHost$i(c,d);if(!e)return;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(13,e,null,d._asyncContext$p$0,d._callback$p$0)};a.ComposeBody.prototype.prependAsync=function(c){for(var f=[],b=1;b<arguments.length;++b)f[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.prependAsync");var d=a.CommonParameters.parse(f,false);if(!String.isInstanceOfType(c))throw Error.argumentType("data",Object.getType(c),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,1e6,"data");var e=a.ComposeBody._createParameterDictionaryToHost$i(c,d);if(!e)return;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(23,e,null,d._asyncContext$p$0,d._callback$p$0)};a.ComposeBody.prototype.setAsync=function(c){for(var f=[],b=1;b<arguments.length;++b)f[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.setAsync");var d=a.CommonParameters.parse(f,false);if(!String.isInstanceOfType(c))throw Error.argumentType("data",Object.getType(c),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,1e6,"data");var e=a.ComposeBody._createParameterDictionaryToHost$i(c,d);if(!e)return;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(38,e,null,d._asyncContext$p$0,d._callback$p$0)};a.ComposeItem=function(b){this.$$d__getBody$p$1=Function.createDelegate(this,this._getBody$p$1);this.$$d__getSubject$p$1=Function.createDelegate(this,this._getSubject$p$1);a.ComposeItem.initializeBase(this,[b]);a.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$1);a.InitialData._defineReadOnlyProperty$i(this,"body",this.$$d__getBody$p$1)};a.ComposeItem.prototype={_subject$p$1:null,_body$p$1:null,_getBody$p$1:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._body$p$1)this._body$p$1=new a.ComposeBody;return this._body$p$1},_getSubject$p$1:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._subject$p$1)this._subject$p$1=new a.ComposeSubject;return this._subject$p$1}};a.ComposeItem.prototype.addFileAttachmentAsync=function(d,c){for(var f=[],b=2;b<arguments.length;++b)f[b-2]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"addFileAttachmentAsync");if(!a.ScriptHelpers.isNonEmptyString(d))throw Error.argument("uri");if(!a.ScriptHelpers.isNonEmptyString(c))throw Error.argument("attachmentName");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(d.length,0,2048,"uri");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,255,"attachmentName");var e=a.CommonParameters.parse(f,false),g={uri:d,name:c,__timeout__:6e5};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(16,g,null,e._asyncContext$p$0,e._callback$p$0)};a.ComposeItem.prototype.addItemAttachmentAsync=function(d,c){for(var f=[],b=2;b<arguments.length;++b)f[b-2]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"addItemAttachmentAsync");if(!a.ScriptHelpers.isNonEmptyString(d))throw Error.argument("itemId");if(!a.ScriptHelpers.isNonEmptyString(c))throw Error.argument("attachmentName");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(d.length,0,200,"itemId");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,255,"attachmentName");var e=a.CommonParameters.parse(f,false),g={itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(d),name:c,__timeout__:6e5};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(19,g,null,e._asyncContext$p$0,e._callback$p$0)};a.ComposeItem.prototype.removeAttachmentAsync=function(c){for(var e=[],b=1;b<arguments.length;++b)e[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"removeAttachmentAsync");if(!a.ScriptHelpers.isNonEmptyString(c))throw Error.argument("attachmentId");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,200,"attachmentId");var d=a.CommonParameters.parse(e,false);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(20,{attachmentIndex:c},null,d._asyncContext$p$0,d._callback$p$0)};a.ComposeItem.prototype.getSelectedDataAsync=function(d){for(var h=[],b=1;b<arguments.length;++b)h[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getSelectedDataAsync");var e=a.CommonParameters.parse(h,true),c,f,g;if(d!==window.Microsoft.Office.WebExtension.CoercionType.Html&&d!==window.Microsoft.Office.WebExtension.CoercionType.Text||!(g=a.Body._tryMapToHostCoercionType$i(d,f={val:c}),c=f.val,g))throw Error.argument("coercionType");var i={coercionType:c};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(28,i,null,e._asyncContext$p$0,e._callback$p$0)};a.ComposeItem.prototype.setSelectedDataAsync=function(c){for(var f=[],b=1;b<arguments.length;++b)f[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"setSelectedDataAsync");var d=a.CommonParameters.parse(f,false);if(!String.isInstanceOfType(c))throw Error.argumentType("data",Object.getType(c),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,1e6,"data");var e=a.ComposeBody._createParameterDictionaryToHost$i(c,d);if(!e)return;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(29,e,null,d._asyncContext$p$0,d._callback$p$0)};a.ComposeItem.prototype.close=function(){window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(41,null,null,null,null)};a.ComposeItem.prototype.saveAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"saveAsync");var c=a.CommonParameters.parse(d,false);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(32,null,null,c._asyncContext$p$0,c._callback$p$0)};a.ComposeRecipient=function(b,a){this._type$p$0=b;this._propertyName$p$0=a};a.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p=function(b,a){if(!b&&!a)throw Error.argument("recipients");if(b&&b.length>255)throw Error.argumentOutOfRange("recipients",b.length,window._u.ExtensibilityStrings.l_DisplayNameTooLong_Text);if(a&&a.length>571)throw Error.argumentOutOfRange("recipients",a.length,window._u.ExtensibilityStrings.l_EmailAddressTooLong_Text);};a.ComposeRecipient._getAsyncFormatter$p=function(e){for(var d=e,c=[],b=0;b<d.length;b++){var f=new a.EmailAddressDetails(d[b]);c[b]=f}return c};a.ComposeRecipient._createEmailDictionaryForHost$p=function(a,b){return{address:a,name:b}};a.ComposeRecipient.prototype={_propertyName$p$0:null,_type$p$0:0,setAddHelper:function(c,k,j){window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,100,"recipients");var h=a.CommonParameters.parse(k,false),d=[];if(Array.isInstanceOfType(c))for(var b=0;b<c.length;b++)if(String.isInstanceOfType(c[b])){a.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(c[b],c[b]);d[b]=a.ComposeRecipient._createEmailDictionaryForHost$p(c[b],c[b])}else if(a.EmailAddressDetails.isInstanceOfType(c[b])){var e=c[b];a.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(e.displayName,e.emailAddress);d[b]=a.ComposeRecipient._createEmailDictionaryForHost$p(e.emailAddress,e.displayName)}else if(Object.isInstanceOfType(c[b])){var i=c[b],f=i.emailAddress,g=i.displayName;a.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(g,f);d[b]=a.ComposeRecipient._createEmailDictionaryForHost$p(f,g)}else throw Error.argument("recipients");else throw Error.argument("recipients");var l=this;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(j?21:22,{recipientField:this._type$p$0,recipientArray:d},function(a){return a},h._asyncContext$p$0,h._callback$p$0)}};a.ComposeRecipient.prototype.getAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];var c=a.CommonParameters.parse(d,true);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,this._propertyName$p$0+".getAsync");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(15,{recipientField:this._type$p$0},a.ComposeRecipient._getAsyncFormatter$p,c._asyncContext$p$0,c._callback$p$0)};a.ComposeRecipient.prototype.setAsync=function(c){for(var b=[],a=1;a<arguments.length;++a)b[a-1]=arguments[a];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._propertyName$p$0+".setAsync");this.setAddHelper(c,b,true)};a.ComposeRecipient.prototype.addAsync=function(c){for(var b=[],a=1;a<arguments.length;++a)b[a-1]=arguments[a];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._propertyName$p$0+".addAsync");this.setAddHelper(c,b,false)};a.ComposeRecipient.RecipientField=function(){};a.ComposeRecipient.RecipientField.prototype={to:0,cc:1,bcc:2,requiredAttendees:0,optionalAttendees:1};a.ComposeRecipient.RecipientField.registerEnum("$h.ComposeRecipient.RecipientField",false);a.ComposeLocation=function(){};a.ComposeLocation.prototype.getAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"location.getAsync");var c=a.CommonParameters.parse(d,true);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(26,null,null,c._asyncContext$p$0,c._callback$p$0)};a.ComposeLocation.prototype.setAsync=function(d){for(var e=[],b=1;b<arguments.length;++b)e[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"location.setAsync");var c=a.CommonParameters.parse(e,false);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(d.length,0,255,"location");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(27,{location:d},null,c._asyncContext$p$0,c._callback$p$0)};a.ComposeSubject=function(){};a.ComposeSubject.prototype.getAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];var c=a.CommonParameters.parse(d,true);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"subject.getAsync");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(18,null,null,c._asyncContext$p$0,c._callback$p$0)};a.ComposeSubject.prototype.setAsync=function(c){for(var e=[],b=1;b<arguments.length;++b)e[b-1]=arguments[b];var d=a.CommonParameters.parse(e,false);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"subject.setAsync");if(!String.isInstanceOfType(c))throw Error.argument("data");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(c.length,0,255,"data");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(17,{subject:c},null,d._asyncContext$p$0,d._callback$p$0)};a.ComposeTime=function(a){this.$$d__ticksToDateFormatter$p$0=Function.createDelegate(this,this._ticksToDateFormatter$p$0);this._timeType$p$0=a};a.ComposeTime.prototype={_timeType$p$0:0,_ticksToDateFormatter$p$0:function(a){var b=a;return new Date(b)},_getPropertyName$p$0:function(){return this._timeType$p$0===1?"start":"end"}};a.ComposeTime.prototype.getAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,this._getPropertyName$p$0()+".getAsync");var c=a.CommonParameters.parse(d,true);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(24,{TimeProperty:this._timeType$p$0},this.$$d__ticksToDateFormatter$p$0,c._asyncContext$p$0,c._callback$p$0)};a.ComposeTime.prototype.setAsync=function(b){for(var e=[],c=1;c<arguments.length;++c)e[c-1]=arguments[c];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._getPropertyName$p$0()+".setAsync");if(!Date.isInstanceOfType(b))throw Error.argumentType("dateTime",Object.getType(b),Date);if(window.isNaN(b.getTime()))throw Error.argument("dateTime");if(b.getTime()<-864e13||b.getTime()>864e13)throw Error.argumentOutOfRange("dateTime");var d=a.CommonParameters.parse(e,false);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(25,{TimeProperty:this._timeType$p$0,time:b.getTime()},null,d._asyncContext$p$0,d._callback$p$0)};a.ComposeTime.TimeType=function(){};a.ComposeTime.TimeType.prototype={start:1,end:2};a.ComposeTime.TimeType.registerEnum("$h.ComposeTime.TimeType",false);a.Contact=function(b){this.$$d__getContactString$p$0=Function.createDelegate(this,this._getContactString$p$0);this.$$d__getAddresses$p$0=Function.createDelegate(this,this._getAddresses$p$0);this.$$d__getUrls$p$0=Function.createDelegate(this,this._getUrls$p$0);this.$$d__getEmailAddresses$p$0=Function.createDelegate(this,this._getEmailAddresses$p$0);this.$$d__getPhoneNumbers$p$0=Function.createDelegate(this,this._getPhoneNumbers$p$0);this.$$d__getBusinessName$p$0=Function.createDelegate(this,this._getBusinessName$p$0);this.$$d__getPersonName$p$0=Function.createDelegate(this,this._getPersonName$p$0);this._data$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"personName",this.$$d__getPersonName$p$0);a.InitialData._defineReadOnlyProperty$i(this,"businessName",this.$$d__getBusinessName$p$0);a.InitialData._defineReadOnlyProperty$i(this,"phoneNumbers",this.$$d__getPhoneNumbers$p$0);a.InitialData._defineReadOnlyProperty$i(this,"emailAddresses",this.$$d__getEmailAddresses$p$0);a.InitialData._defineReadOnlyProperty$i(this,"urls",this.$$d__getUrls$p$0);a.InitialData._defineReadOnlyProperty$i(this,"addresses",this.$$d__getAddresses$p$0);a.InitialData._defineReadOnlyProperty$i(this,"contactString",this.$$d__getContactString$p$0)};a.Contact.prototype={_data$p$0:null,_phoneNumbers$p$0:null,_getPersonName$p$0:function(){return this._data$p$0.PersonName},_getBusinessName$p$0:function(){return this._data$p$0.BusinessName},_getAddresses$p$0:function(){return a.Entities._getExtractedStringProperty$i(this._data$p$0,"Addresses")},_getEmailAddresses$p$0:function(){return a.Entities._getExtractedStringProperty$i(this._data$p$0,"EmailAddresses")},_getUrls$p$0:function(){return a.Entities._getExtractedStringProperty$i(this._data$p$0,"Urls")},_getPhoneNumbers$p$0:function(){if(!this._phoneNumbers$p$0){var b=this;this._phoneNumbers$p$0=a.Entities._getExtractedObjects$i(a.PhoneNumber,this._data$p$0,"PhoneNumbers",function(b){return new a.PhoneNumber(b)})}return this._phoneNumbers$p$0},_getContactString$p$0:function(){return this._data$p$0.ContactString}};a.CustomProperties=function(b){if(a.ScriptHelpers.isNullOrUndefined(b))throw Error.argumentNull("data");if(Array.isInstanceOfType(b)){var c=b;if(c.length>0)this._data$p$0=c[0];else throw Error.argument("data");}else this._data$p$0=b};a.CustomProperties.prototype={_data$p$0:null};a.CustomProperties.prototype.get=function(f){var b=this._data$p$0[f];if(typeof b==="string"){var a=b;if(a.length>6&&a.startsWith("Date(")&&a.endsWith(")")){var e=a.substring(5,a.length-1),d=window.parseInt(e);if(!window.isNaN(d)){var c=new Date(d);if(c)b=c}}}return b};a.CustomProperties.prototype.set=function(b,a){if(window.OSF.OUtil.isDate(a))a="Date("+a.getTime()+")";this._data$p$0[b]=a};a.CustomProperties.prototype.remove=function(a){delete this._data$p$0[a]};a.CustomProperties.prototype.saveAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];var e=2500;if(window.JSON.stringify(this._data$p$0).length>e)throw Error.argument();var c=a.CommonParameters.parse(d,false,true),f=new a.SaveDictionaryRequest(c._callback$p$0,c._asyncContext$p$0);f._sendRequest$i$0(4,"SaveCustomProperties",{customProperties:this._data$p$0})};a.Diagnostics=function(c,b){this.$$d__getOwaView$p$0=Function.createDelegate(this,this._getOwaView$p$0);this.$$d__getHostVersion$p$0=Function.createDelegate(this,this._getHostVersion$p$0);this.$$d__getHostName$p$0=Function.createDelegate(this,this._getHostName$p$0);this._data$p$0=c;this._appName$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"hostName",this.$$d__getHostName$p$0);a.InitialData._defineReadOnlyProperty$i(this,"hostVersion",this.$$d__getHostVersion$p$0);64===this._appName$p$0&&a.InitialData._defineReadOnlyProperty$i(this,"OWAView",this.$$d__getOwaView$p$0)};a.Diagnostics.prototype={_data$p$0:null,_appName$p$0:0,_getHostName$p$0:function(){return 8===this._appName$p$0?"Outlook":64===this._appName$p$0?"OutlookWebApp":null},_getHostVersion$p$0:function(){return this._data$p$0.get__hostVersion$i$0()},_getOwaView$p$0:function(){return this._data$p$0.get__owaView$i$0()}};a.EmailAddressDetails=function(b){this.$$d__getRecipientType$p$0=Function.createDelegate(this,this._getRecipientType$p$0);this.$$d__getAppointmentResponse$p$0=Function.createDelegate(this,this._getAppointmentResponse$p$0);this.$$d__getDisplayName$p$0=Function.createDelegate(this,this._getDisplayName$p$0);this.$$d__getEmailAddress$p$0=Function.createDelegate(this,this._getEmailAddress$p$0);this._data$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"emailAddress",this.$$d__getEmailAddress$p$0);a.InitialData._defineReadOnlyProperty$i(this,"displayName",this.$$d__getDisplayName$p$0);a.ScriptHelpers.dictionaryContainsKey(b,"appointmentResponse")&&a.InitialData._defineReadOnlyProperty$i(this,"appointmentResponse",this.$$d__getAppointmentResponse$p$0);a.ScriptHelpers.dictionaryContainsKey(b,"recipientType")&&a.InitialData._defineReadOnlyProperty$i(this,"recipientType",this.$$d__getRecipientType$p$0)};a.EmailAddressDetails._createFromEmailUserDictionary$i=function(c){var b={},e=c.Name,d=c.UserId;b.name=e||a.EmailAddressDetails._emptyString$p;b.address=d||a.EmailAddressDetails._emptyString$p;return new a.EmailAddressDetails(b)};a.EmailAddressDetails.prototype={_data$p$0:null,_getEmailAddress$p$0:function(){return this._data$p$0.address},_getDisplayName$p$0:function(){return this._data$p$0.name},_getAppointmentResponse$p$0:function(){var b=this._data$p$0.appointmentResponse;return b<a.EmailAddressDetails._responseTypeMap$p.length?a.EmailAddressDetails._responseTypeMap$p[b]:window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None},_getRecipientType$p$0:function(){var b=this._data$p$0.recipientType;return b<a.EmailAddressDetails._recipientTypeMap$p.length?a.EmailAddressDetails._recipientTypeMap$p[b]:window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other}};a.EmailAddressDetails.prototype.toJSON=function(){var b={};b.emailAddress=this._getEmailAddress$p$0();b.displayName=this._getDisplayName$p$0();if(a.ScriptHelpers.dictionaryContainsKey(this._data$p$0,"appointmentResponse"))b.appointmentResponse=this._getAppointmentResponse$p$0();if(a.ScriptHelpers.dictionaryContainsKey(this._data$p$0,"recipientType"))b.recipientType=this._getRecipientType$p$0();return b};a.Entities=function(e,b,d,c){this.$$d__createMeetingSuggestion$p$0=Function.createDelegate(this,this._createMeetingSuggestion$p$0);this.$$d__getParcelDeliveries$p$0=Function.createDelegate(this,this._getParcelDeliveries$p$0);this.$$d__getFlightReservations$p$0=Function.createDelegate(this,this._getFlightReservations$p$0);this.$$d__getContacts$p$0=Function.createDelegate(this,this._getContacts$p$0);this.$$d__getPhoneNumbers$p$0=Function.createDelegate(this,this._getPhoneNumbers$p$0);this.$$d__getUrls$p$0=Function.createDelegate(this,this._getUrls$p$0);this.$$d__getEmailAddresses$p$0=Function.createDelegate(this,this._getEmailAddresses$p$0);this.$$d__getMeetingSuggestions$p$0=Function.createDelegate(this,this._getMeetingSuggestions$p$0);this.$$d__getTaskSuggestions$p$0=Function.createDelegate(this,this._getTaskSuggestions$p$0);this.$$d__getAddresses$p$0=Function.createDelegate(this,this._getAddresses$p$0);this._data$p$0=e||{};this._filteredData$p$0=b||{};this._dateTimeSent$p$0=d;a.InitialData._defineReadOnlyProperty$i(this,"addresses",this.$$d__getAddresses$p$0);a.InitialData._defineReadOnlyProperty$i(this,"taskSuggestions",this.$$d__getTaskSuggestions$p$0);a.InitialData._defineReadOnlyProperty$i(this,"meetingSuggestions",this.$$d__getMeetingSuggestions$p$0);a.InitialData._defineReadOnlyProperty$i(this,"emailAddresses",this.$$d__getEmailAddresses$p$0);a.InitialData._defineReadOnlyProperty$i(this,"urls",this.$$d__getUrls$p$0);a.InitialData._defineReadOnlyProperty$i(this,"phoneNumbers",this.$$d__getPhoneNumbers$p$0);a.InitialData._defineReadOnlyProperty$i(this,"contacts",this.$$d__getContacts$p$0);a.InitialData._defineReadOnlyProperty$i(this,"flightReservations",this.$$d__getFlightReservations$p$0);a.InitialData._defineReadOnlyProperty$i(this,"parcelDeliveries",this.$$d__getParcelDeliveries$p$0);this._permissionLevel$p$0=c};a.Entities._getExtractedObjects$i=function(n,l,m,g,j,i){var c=null,b=l[m];if(!b)return new Array(0);if(j)b=a.Entities._removeDuplicate$p(Object,b,a.Entities._entityDictionaryEquals$p,i);c=new Array(b.length);for(var h=0,f=b,k=f.length,d=0;d<k;++d){var e=f[d];if(g)c[h++]=g(e);else c[h++]=e}return c};a.Entities._getExtractedStringProperty$i=function(d,e,c){var b=d[e];if(!b)return new Array(0);if(c)b=a.Entities._removeDuplicate$p(String,b,a.Entities._stringEquals$p,null);return b};a.Entities._createContact$p=function(b){return new a.Contact(b)};a.Entities._createTaskSuggestion$p=function(b){return new a.TaskSuggestion(b)};a.Entities._createPhoneNumber$p=function(b){return new a.PhoneNumber(b)};a.Entities._entityDictionaryEquals$p=function(a,b,c){return a===b?true:!a||!b?false:a[c]===b[c]?true:false};a.Entities._stringEquals$p=function(a,b){return a===b};a.Entities._removeDuplicate$p=function(g,b,f,e){for(var a=b.length-1;a>=0;a--){for(var d=false,c=a-1;c>=0;c--)if(f(b[a],b[c],e)){d=true;break}d&&Array.removeAt(b,a)}return b};a.Entities.prototype={_dateTimeSent$p$0:null,_data$p$0:null,_filteredData$p$0:null,_filteredEntitiesCache$p$0:null,_permissionLevel$p$0:0,_taskSuggestions$p$0:null,_meetingSuggestions$p$0:null,_phoneNumbers$p$0:null,_contacts$p$0:null,_addresses$p$0:null,_emailAddresses$p$0:null,_urls$p$0:null,_flightReservations$p$0:null,_parcelDeliveries$p$0:null,_getByType$i$0:function(a){return a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.MeetingSuggestion?this._getMeetingSuggestions$p$0():a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.TaskSuggestion?this._getTaskSuggestions$p$0():a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Address?this._getAddresses$p$0():a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.PhoneNumber?this._getPhoneNumbers$p$0():a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.EmailAddress?this._getEmailAddresses$p$0():a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Url?this._getUrls$p$0():a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Contact?this._getContacts$p$0():a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.FlightReservations?this._getFlightReservations$p$0():a===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.ParcelDeliveries?this._getParcelDeliveries$p$0():null},_getFilteredEntitiesByName$i$0:function(b){if(!this._filteredEntitiesCache$p$0)this._filteredEntitiesCache$p$0={};if(!a.ScriptHelpers.dictionaryContainsKey(this._filteredEntitiesCache$p$0,b)){for(var f=false,d=0;d<a.Entities._allEntityKeys$p.length;d++){var e=a.Entities._allEntityKeys$p[d],c=this._filteredData$p$0[e];if(!c)continue;if(a.ScriptHelpers.dictionaryContainsKey(c,b)){switch(e){case"EmailAddresses":case"Urls":this._filteredEntitiesCache$p$0[b]=a.Entities._getExtractedStringProperty$i(c,b);break;case"Addresses":this._filteredEntitiesCache$p$0[b]=a.Entities._getExtractedStringProperty$i(c,b,true);break;case"PhoneNumbers":this._filteredEntitiesCache$p$0[b]=a.Entities._getExtractedObjects$i(a.PhoneNumber,c,b,a.Entities._createPhoneNumber$p,false,null);break;case"TaskSuggestions":this._filteredEntitiesCache$p$0[b]=a.Entities._getExtractedObjects$i(a.TaskSuggestion,c,b,a.Entities._createTaskSuggestion$p,true,"TaskString");break;case"MeetingSuggestions":this._filteredEntitiesCache$p$0[b]=a.Entities._getExtractedObjects$i(a.MeetingSuggestion,c,b,this.$$d__createMeetingSuggestion$p$0,true,"MeetingString");break;case"Contacts":this._filteredEntitiesCache$p$0[b]=a.Entities._getExtractedObjects$i(a.Contact,c,b,a.Entities._createContact$p,true,"ContactString")}f=true;break}}if(!f)this._filteredEntitiesCache$p$0[b]=null}return this._filteredEntitiesCache$p$0[b]},_createMeetingSuggestion$p$0:function(b){return new a.MeetingSuggestion(b,this._dateTimeSent$p$0)},_getAddresses$p$0:function(){if(!this._addresses$p$0)this._addresses$p$0=a.Entities._getExtractedStringProperty$i(this._data$p$0,"Addresses",true);return this._addresses$p$0},_getEmailAddresses$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);if(!this._emailAddresses$p$0)this._emailAddresses$p$0=a.Entities._getExtractedStringProperty$i(this._data$p$0,"EmailAddresses",false);return this._emailAddresses$p$0},_getUrls$p$0:function(){if(!this._urls$p$0)this._urls$p$0=a.Entities._getExtractedStringProperty$i(this._data$p$0,"Urls",false);return this._urls$p$0},_getPhoneNumbers$p$0:function(){if(!this._phoneNumbers$p$0)this._phoneNumbers$p$0=a.Entities._getExtractedObjects$i(a.PhoneNumber,this._data$p$0,"PhoneNumbers",a.Entities._createPhoneNumber$p);return this._phoneNumbers$p$0},_getTaskSuggestions$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);if(!this._taskSuggestions$p$0)this._taskSuggestions$p$0=a.Entities._getExtractedObjects$i(a.TaskSuggestion,this._data$p$0,"TaskSuggestions",a.Entities._createTaskSuggestion$p,true,"TaskString");return this._taskSuggestions$p$0},_getMeetingSuggestions$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);if(!this._meetingSuggestions$p$0)this._meetingSuggestions$p$0=a.Entities._getExtractedObjects$i(a.MeetingSuggestion,this._data$p$0,"MeetingSuggestions",this.$$d__createMeetingSuggestion$p$0,true,"MeetingString");return this._meetingSuggestions$p$0},_getContacts$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);if(!this._contacts$p$0)this._contacts$p$0=a.Entities._getExtractedObjects$i(a.Contact,this._data$p$0,"Contacts",a.Entities._createContact$p,true,"ContactString");return this._contacts$p$0},_getParcelDeliveries$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);if(!this._parcelDeliveries$p$0)this._parcelDeliveries$p$0=a.Entities._getExtractedObjects$i(Object,this._data$p$0,"ParcelDeliveries",null);return this._parcelDeliveries$p$0},_getFlightReservations$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);if(!this._flightReservations$p$0)this._flightReservations$p$0=a.Entities._getExtractedObjects$i(Object,this._data$p$0,"FlightReservations",null);return this._flightReservations$p$0}};a.ReplyConstants=function(){};a.AsyncConstants=function(){};window.Office.cast.item=d.cast.item=function(){};window.Office.cast.item.toItemRead=function(b){if(a.Item.isInstanceOfType(b))return b;throw Error.argumentType();};window.Office.cast.item.toItemCompose=function(b){if(a.ComposeItem.isInstanceOfType(b))return b;throw Error.argumentType();};window.Office.cast.item.toMessage=function(a){return window.Office.cast.item.toMessageRead(a)};window.Office.cast.item.toMessageRead=function(b){if(a.Message.isInstanceOfType(b))return b;throw Error.argumentType();};window.Office.cast.item.toMessageCompose=function(b){if(a.MessageCompose.isInstanceOfType(b))return b;throw Error.argumentType();};window.Office.cast.item.toMeetingRequest=function(b){if(a.MeetingRequest.isInstanceOfType(b))return b;throw Error.argumentType();};window.Office.cast.item.toAppointment=function(a){return window.Office.cast.item.toAppointmentRead(a)};window.Office.cast.item.toAppointmentRead=function(b){if(a.Appointment.isInstanceOfType(b))return b;throw Error.argumentType();};window.Office.cast.item.toAppointmentCompose=function(b){if(a.AppointmentCompose.isInstanceOfType(b))return b;throw Error.argumentType();};a.Item=function(b){this.$$d__getBody$p$1=Function.createDelegate(this,this._getBody$p$1);this.$$d__getAttachments$p$1=Function.createDelegate(this,this._getAttachments$p$1);this.$$d__getItemClass$p$1=Function.createDelegate(this,this._getItemClass$p$1);this.$$d__getItemId$p$1=Function.createDelegate(this,this._getItemId$p$1);this.$$d__getDateTimeModified$p$1=Function.createDelegate(this,this._getDateTimeModified$p$1);this.$$d__getDateTimeCreated$p$1=Function.createDelegate(this,this._getDateTimeCreated$p$1);a.Item.initializeBase(this,[b]);a.InitialData._defineReadOnlyProperty$i(this,"dateTimeCreated",this.$$d__getDateTimeCreated$p$1);a.InitialData._defineReadOnlyProperty$i(this,"dateTimeModified",this.$$d__getDateTimeModified$p$1);a.InitialData._defineReadOnlyProperty$i(this,"itemId",this.$$d__getItemId$p$1);a.InitialData._defineReadOnlyProperty$i(this,"itemClass",this.$$d__getItemClass$p$1);a.InitialData._defineReadOnlyProperty$i(this,"attachments",this.$$d__getAttachments$p$1);a.InitialData._defineReadOnlyProperty$i(this,"body",this.$$d__getBody$p$1)};a.Item.prototype={_body$p$1:null,_getItemId$p$1:function(){return this._data$p$0.get__itemId$i$0()},_getItemClass$p$1:function(){return this._data$p$0.get__itemClass$i$0()},_getDateTimeCreated$p$1:function(){return this._data$p$0.get__dateTimeCreated$i$0()},_getDateTimeModified$p$1:function(){return this._data$p$0.get__dateTimeModified$i$0()},_getAttachments$p$1:function(){return this._data$p$0.get__attachments$i$0()},_getBody$p$1:function(){if(!this._body$p$1)this._body$p$1=new a.Body;return this._body$p$1}};a.ItemBase=function(b){this.$$d__createCustomProperties$i$0=Function.createDelegate(this,this._createCustomProperties$i$0);this.$$d__getNotificationMessages$p$0=Function.createDelegate(this,this._getNotificationMessages$p$0);this.$$d_getItemType=Function.createDelegate(this,this.getItemType);this._data$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"itemType",this.$$d_getItemType);a.InitialData._defineReadOnlyProperty$i(this,"notificationMessages",this.$$d__getNotificationMessages$p$0)};a.ItemBase.prototype={_data$p$0:null,_notificationMessages$p$0:null,get_data:function(){return this._data$p$0},_createCustomProperties$i$0:function(b){return new a.CustomProperties(b)},_getNotificationMessages$p$0:function(){if(!this._notificationMessages$p$0)this._notificationMessages$p$0=new a.NotificationMessages;return this._notificationMessages$p$0}};a.ItemBase.prototype.loadCustomPropertiesAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];var c=a.CommonParameters.parse(d,true,true),e=new a._loadDictionaryRequest(this.$$d__createCustomProperties$i$0,"customProperties",c._callback$p$0,c._asyncContext$p$0);e._sendRequest$i$0(3,"LoadCustomProperties",{})};a.MeetingRequest=function(b){this.$$d__getRequiredAttendees$p$3=Function.createDelegate(this,this._getRequiredAttendees$p$3);this.$$d__getOptionalAttendees$p$3=Function.createDelegate(this,this._getOptionalAttendees$p$3);this.$$d__getLocation$p$3=Function.createDelegate(this,this._getLocation$p$3);this.$$d__getEnd$p$3=Function.createDelegate(this,this._getEnd$p$3);this.$$d__getStart$p$3=Function.createDelegate(this,this._getStart$p$3);a.MeetingRequest.initializeBase(this,[b]);a.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$3);a.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$3);a.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$3);a.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$3);a.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$3)};a.MeetingRequest.prototype={_getStart$p$3:function(){return this._data$p$0.get__start$i$0()},_getEnd$p$3:function(){return this._data$p$0.get__end$i$0()},_getLocation$p$3:function(){return this._data$p$0.get__location$i$0()},_getOptionalAttendees$p$3:function(){return this._data$p$0.get__cc$i$0()},_getRequiredAttendees$p$3:function(){return this._data$p$0.get__to$i$0()}};a.MeetingSuggestion=function(c,b){this.$$d__getEndTime$p$0=Function.createDelegate(this,this._getEndTime$p$0);this.$$d__getStartTime$p$0=Function.createDelegate(this,this._getStartTime$p$0);this.$$d__getSubject$p$0=Function.createDelegate(this,this._getSubject$p$0);this.$$d__getLocation$p$0=Function.createDelegate(this,this._getLocation$p$0);this.$$d__getAttendees$p$0=Function.createDelegate(this,this._getAttendees$p$0);this.$$d__getMeetingString$p$0=Function.createDelegate(this,this._getMeetingString$p$0);this._data$p$0=c;this._dateTimeSent$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"meetingString",this.$$d__getMeetingString$p$0);a.InitialData._defineReadOnlyProperty$i(this,"attendees",this.$$d__getAttendees$p$0);a.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$0);a.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$0);a.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStartTime$p$0);a.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEndTime$p$0)};a.MeetingSuggestion.prototype={_dateTimeSent$p$0:null,_data$p$0:null,_attendees$p$0:null,_getMeetingString$p$0:function(){return this._data$p$0.MeetingString},_getLocation$p$0:function(){return this._data$p$0.Location},_getSubject$p$0:function(){return this._data$p$0.Subject},_getStartTime$p$0:function(){var b=this._createDateTimeFromParameter$p$0("StartTime"),c=a.MeetingSuggestionTimeDecoder.resolve(b,this._dateTimeSent$p$0);return c.getTime()!==b.getTime()?window.OSF.DDA.OutlookAppOm._instance$p.convertToUtcClientTime(window.OSF.DDA.OutlookAppOm._instance$p._dateToDictionary$i$0(c)):b},_getEndTime$p$0:function(){var b=this._createDateTimeFromParameter$p$0("EndTime"),c=a.MeetingSuggestionTimeDecoder.resolve(b,this._dateTimeSent$p$0);return c.getTime()!==b.getTime()?window.OSF.DDA.OutlookAppOm._instance$p.convertToUtcClientTime(window.OSF.DDA.OutlookAppOm._instance$p._dateToDictionary$i$0(c)):b},_createDateTimeFromParameter$p$0:function(b){var a=this._data$p$0[b];return!a?null:new Date(a)},_getAttendees$p$0:function(){if(!this._attendees$p$0){var b=this;this._attendees$p$0=a.Entities._getExtractedObjects$i(a.EmailAddressDetails,this._data$p$0,"Attendees",function(b){return a.EmailAddressDetails._createFromEmailUserDictionary$i(b)})}return this._attendees$p$0}};a.MeetingSuggestionTimeDecoder=function(){};a.MeetingSuggestionTimeDecoder.resolve=function(f,d){if(!d)return f;try{var g,b,c,e=new Date(d.getFullYear(),d.getMonth(),d.getDate(),0,0,0,0),h,i,j;if(!(j=a.MeetingSuggestionTimeDecoder._decode$p(f,h={val:c},i={val:g}),c=h.val,g=i.val,j))return f;else{if(a._preciseDate.isInstanceOfType(c))b=a.MeetingSuggestionTimeDecoder._resolvePreciseDate$p(e,c);else if(a._relativeDate.isInstanceOfType(c))b=a.MeetingSuggestionTimeDecoder._resolveRelativeDate$p(e,c);else b=e;if(window.isNaN(b.getTime()))return d;b.setMilliseconds(b.getMilliseconds()+g);return b}}catch(k){return d}};a.MeetingSuggestionTimeDecoder._isNullOrUndefined$i=function(a){return null===a||a===undefined};a.MeetingSuggestionTimeDecoder._resolvePreciseDate$p=function(c,d){var f=d._year$i$1,e=!d._month$i$1?c.getMonth():d._month$i$1-1,g=d._day$i$1;if(!g)return c;var b;if(a.MeetingSuggestionTimeDecoder._isNullOrUndefined$i(f)){b=new Date(c.getFullYear(),e,g);if(b.getTime()<c.getTime())b=new Date(c.getFullYear()+1,e,g)}else b=new Date(f<50?2e3+f:1900+f,e,g);return b.getMonth()!==e?c:b};a.MeetingSuggestionTimeDecoder._resolveRelativeDate$p=function(c,d){var b;switch(d._unit$i$1){case 0:b=new Date(c.getFullYear(),c.getMonth(),c.getDate());b.setDate(b.getDate()+d._offset$i$1);return b;case 5:return a.MeetingSuggestionTimeDecoder._findBestDateForWeekDate$p(c,d._offset$i$1,d._tag$i$1);case 2:var e=1;switch(d._modifier$i$1){case 1:break;case 2:e=16;break;default:if(!d._offset$i$1)e=c.getDate()}b=new Date(c.getFullYear(),c.getMonth(),e);b.setMonth(b.getMonth()+d._offset$i$1);b.getTime()<c.getTime()&&b.setDate(b.getDate()+c.getDate()-1);return b;case 1:b=new Date(c.getFullYear(),c.getMonth(),c.getDate());b.setDate(c.getDate()+7*d._offset$i$1);if(d._modifier$i$1===1||!d._modifier$i$1){b.setDate(b.getDate()+1-b.getDay());return b.getTime()<c.getTime()?c:b}else if(d._modifier$i$1===2){b.setDate(b.getDate()+5-b.getDay());return b}break;case 4:return a.MeetingSuggestionTimeDecoder._findBestDateForWeekOfMonthDate$p(c,d);case 3:if(d._offset$i$1>0)return new Date(c.getFullYear()+d._offset$i$1,0,1)}return c};a.MeetingSuggestionTimeDecoder._findBestDateForWeekDate$p=function(a,c,e){if(c>-5&&c<5){var d,b;d=(e+6)%7+1;b=7*c+(d-a.getDay());a.setDate(a.getDate()+b);return a}else{var b=(e-a.getDay())%7;if(b<0)b+=7;a.setDate(a.getDate()+b);return a}};a.MeetingSuggestionTimeDecoder._findBestDateForWeekOfMonthDate$p=function(e,d){var g,b,c;g=e;if(d._tag$i$1<=0||d._tag$i$1>12||d._offset$i$1<=0||d._offset$i$1>5)return e;var h=(12+d._tag$i$1-g.getMonth()-1)%12;b=new Date(g.getFullYear(),g.getMonth()+h,1);if(d._modifier$i$1===1)if(d._offset$i$1===1&&b.getDay()!==6&&b.getDay())return b;else{c=new Date(b.getFullYear(),b.getMonth(),b.getDate());c.setDate(c.getDate()+(7+(1-b.getDay()))%7);b.getDay()!==6&&b.getDay()&&b.getDay()!==1&&c.setDate(c.getDate()-7);c.setDate(c.getDate()+7*(d._offset$i$1-1));return c.getMonth()+1!==d._tag$i$1?e:c}else{c=new Date(b.getFullYear(),b.getMonth(),a.MeetingSuggestionTimeDecoder._daysInMonth$p(b.getMonth(),b.getFullYear()));var f=1-c.getDay();if(f>0)f=f-7;c.setDate(c.getDate()+f);c.setDate(c.getDate()+7*(1-d._offset$i$1));return c.getMonth()+1!==d._tag$i$1?b.getDay()!==6&&b.getDay()?b:e:c}};a.MeetingSuggestionTimeDecoder._decode$p=function(c,d,e){var g=32767;d.val=null;e.val=0;if(!c)return false;e.val=a.MeetingSuggestionTimeDecoder._getTimeOfDayInMillisecondsUTC$p(c);var f=c.getTime()-e.val,b=(f-a.MeetingSuggestionTimeDecoder._baseDate$p.getTime())/864e5;if(b<0)return false;else if(b>=262144)return false;else{var h=b>>15;b=b&g;switch(h){case 0:return a.MeetingSuggestionTimeDecoder._decodePreciseDate$p(b,d);case 1:return a.MeetingSuggestionTimeDecoder._decodeRelativeDate$p(b,d);default:return false}}};a.MeetingSuggestionTimeDecoder._decodePreciseDate$p=function(c,f){var i=7,e=15,k=31,j=127,g=null,d=0,h=0;f.val=null;var b=c>>12&i;if((b&4)===4){g=c>>5&j;if((b&2)===2){if((b&1)===1)return false;d=c>>1&e}}else{if((b&2)===2)d=c>>8&e;if((b&1)===1)h=c>>3&k}f.val=new a._preciseDate(h,d,g);return true};a.MeetingSuggestionTimeDecoder._decodeRelativeDate$p=function(b,c){var h=15,e=63,g=7,d=3,k=b&h;b>>=4;var i=a.MeetingSuggestionTimeDecoder._fromComplement$p(b&e,6);b>>=6;var j=b&g;b>>=3;var f=b&d;try{c.val=new a._relativeDate(f,i,j,k);return true}catch(l){c.val=null;return false}};a.MeetingSuggestionTimeDecoder._fromComplement$p=function(a,c){var b=1<<c-1,d=(1<<c)-1;return(a&b)===b?-((a^d)+1):a};a.MeetingSuggestionTimeDecoder._daysInMonth$p=function(a,b){return 32-new Date(b,a,32).getDate()};a.MeetingSuggestionTimeDecoder._getTimeOfDayInMillisecondsUTC$p=function(b){var a=0;a+=b.getUTCHours()*3600;a+=b.getUTCMinutes()*60;a+=b.getUTCSeconds();a*=1e3;a+=b.getUTCMilliseconds();return a};a._extractedDate=function(){};a._preciseDate=function(d,b,c){a._preciseDate.initializeBase(this);if(d<0||d>31)throw Error.argumentOutOfRange("day");if(b<0||b>12)throw Error.argumentOutOfRange("month");this._day$i$1=d;this._month$i$1=b;if(!a.MeetingSuggestionTimeDecoder._isNullOrUndefined$i(c)){if(!b&&d)throw Error.argument("Invalid arguments");if(c<0||c>2099)throw Error.argumentOutOfRange("year");this._year$i$1=c%100}else if(!this._month$i$1&&!this._day$i$1)throw Error.argument("Invalid datetime");};a._preciseDate.prototype={_day$i$1:0,_month$i$1:0,_year$i$1:null};a._relativeDate=function(e,b,d,c){a._relativeDate.initializeBase(this);if(b<-32||b>31)throw Error.argumentOutOfRange("offset");if(c<0||c>15)throw Error.argumentOutOfRange("tag");if(!d&&b<0)throw Error.argument("unit & offset do not form a valid date");this._modifier$i$1=e;this._offset$i$1=b;this._unit$i$1=d;this._tag$i$1=c};a._relativeDate.prototype={_modifier$i$1:0,_offset$i$1:0,_unit$i$1:0,_tag$i$1:0};a.Message=function(b){this.$$d__getConversationId$p$2=Function.createDelegate(this,this._getConversationId$p$2);this.$$d__getInternetMessageId$p$2=Function.createDelegate(this,this._getInternetMessageId$p$2);this.$$d__getCc$p$2=Function.createDelegate(this,this._getCc$p$2);this.$$d__getTo$p$2=Function.createDelegate(this,this._getTo$p$2);this.$$d__getFrom$p$2=Function.createDelegate(this,this._getFrom$p$2);this.$$d__getSender$p$2=Function.createDelegate(this,this._getSender$p$2);this.$$d__getNormalizedSubject$p$2=Function.createDelegate(this,this._getNormalizedSubject$p$2);this.$$d__getSubject$p$2=Function.createDelegate(this,this._getSubject$p$2);a.Message.initializeBase(this,[b]);a.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$2);a.InitialData._defineReadOnlyProperty$i(this,"normalizedSubject",this.$$d__getNormalizedSubject$p$2);a.InitialData._defineReadOnlyProperty$i(this,"sender",this.$$d__getSender$p$2);a.InitialData._defineReadOnlyProperty$i(this,"from",this.$$d__getFrom$p$2);a.InitialData._defineReadOnlyProperty$i(this,"to",this.$$d__getTo$p$2);a.InitialData._defineReadOnlyProperty$i(this,"cc",this.$$d__getCc$p$2);a.InitialData._defineReadOnlyProperty$i(this,"internetMessageId",this.$$d__getInternetMessageId$p$2);a.InitialData._defineReadOnlyProperty$i(this,"conversationId",this.$$d__getConversationId$p$2)};a.Message.prototype={getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},_getSubject$p$2:function(){return this._data$p$0.get__subject$i$0()},_getNormalizedSubject$p$2:function(){return this._data$p$0.get__normalizedSubject$i$0()},_getSender$p$2:function(){return this._data$p$0.get__sender$i$0()},_getFrom$p$2:function(){return this._data$p$0.get__from$i$0()},_getTo$p$2:function(){return this._data$p$0.get__to$i$0()},_getCc$p$2:function(){return this._data$p$0.get__cc$i$0()},_getInternetMessageId$p$2:function(){return this._data$p$0.get__internetMessageId$i$0()},_getConversationId$p$2:function(){return this._data$p$0.get__conversationId$i$0()}};a.Message.prototype.getEntities=function(){return this._data$p$0._getEntities$i$0()};a.Message.prototype.getEntitiesByType=function(a){return this._data$p$0._getEntitiesByType$i$0(a)};a.Message.prototype.getFilteredEntitiesByName=function(a){return this._data$p$0._getFilteredEntitiesByName$i$0(a)};a.Message.prototype.getRegExMatches=function(){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatches");return this._data$p$0._getRegExMatches$i$0()};a.Message.prototype.getRegExMatchesByName=function(a){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatchesByName");return this._data$p$0._getRegExMatchesByName$i$0(a)};a.Message.prototype.displayReplyForm=function(a){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyForm$i$0(a)};a.Message.prototype.displayReplyAllForm=function(a){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyAllForm$i$0(a)};a.MessageCompose=function(b){this.$$d__getConversationId$p$2=Function.createDelegate(this,this._getConversationId$p$2);this.$$d__getBcc$p$2=Function.createDelegate(this,this._getBcc$p$2);this.$$d__getCc$p$2=Function.createDelegate(this,this._getCc$p$2);this.$$d__getTo$p$2=Function.createDelegate(this,this._getTo$p$2);a.MessageCompose.initializeBase(this,[b]);a.InitialData._defineReadOnlyProperty$i(this,"to",this.$$d__getTo$p$2);a.InitialData._defineReadOnlyProperty$i(this,"cc",this.$$d__getCc$p$2);a.InitialData._defineReadOnlyProperty$i(this,"bcc",this.$$d__getBcc$p$2);a.InitialData._defineReadOnlyProperty$i(this,"conversationId",this.$$d__getConversationId$p$2)};a.MessageCompose.prototype={_to$p$2:null,_cc$p$2:null,_bcc$p$2:null,getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},_getTo$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._to$p$2)this._to$p$2=new a.ComposeRecipient(0,"to");return this._to$p$2},_getCc$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._cc$p$2)this._cc$p$2=new a.ComposeRecipient(1,"cc");return this._cc$p$2},_getBcc$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._bcc$p$2)this._bcc$p$2=new a.ComposeRecipient(2,"bcc");return this._bcc$p$2},_getConversationId$p$2:function(){return this._data$p$0.get__conversationId$i$0()}};a.NotificationMessages=function(){};a.NotificationMessages._mapToHostItemNotificationMessageType$p=function(c){var b,a;b=c.type;if(b===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ProgressIndicator)a=1;else if(b===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage)a=0;else if(b===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ErrorMessage)a=2;else throw Error.argument("type");c.type=a};a.NotificationMessages._validateKey$p=function(b){if(!a.ScriptHelpers.isNonEmptyString(b))throw Error.argument("key");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(b.length,0,32,"key")};a.NotificationMessages._validateDictionary$p=function(b){if(!a.ScriptHelpers.isNonEmptyString(b.type))throw Error.argument("type");if(b.type===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage){if(!a.ScriptHelpers.isNonEmptyString(b.icon))throw Error.argument("icon");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(b.icon.length,0,32,"icon");if(a.ScriptHelpers.isUndefined(b.persistent))throw Error.argument("persistent");if(!Boolean.isInstanceOfType(b.persistent))throw Error.argumentType("persistent",Object.getType(b.persistent),Boolean);}else{if(!a.ScriptHelpers.isUndefined(b.icon))throw Error.argument("icon");if(!a.ScriptHelpers.isUndefined(b.persistent))throw Error.argument("persistent");}if(!a.ScriptHelpers.isNonEmptyString(b.message))throw Error.argument("message");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(b.message.length,0,150,"message")};a.NotificationMessages.prototype.addAsync=function(g,e){for(var f=[],c=2;c<arguments.length;++c)f[c-2]=arguments[c];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.addAsync");var d=a.CommonParameters.parse(f,false);a.NotificationMessages._validateKey$p(g);a.NotificationMessages._validateDictionary$p(e);var b={};b=a.ScriptHelpers.deepClone(e);b.key=g;a.NotificationMessages._mapToHostItemNotificationMessageType$p(b);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(33,b,null,d._asyncContext$p$0,d._callback$p$0)};a.NotificationMessages.prototype.getAllAsync=function(){for(var d=[],b=0;b<arguments.length;++b)d[b]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.getAllAsync");var c=a.CommonParameters.parse(d,true);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(34,null,null,c._asyncContext$p$0,c._callback$p$0)};a.NotificationMessages.prototype.replaceAsync=function(g,e){for(var f=[],c=2;c<arguments.length;++c)f[c-2]=arguments[c];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.replaceAsync");var d=a.CommonParameters.parse(f,false);a.NotificationMessages._validateKey$p(g);a.NotificationMessages._validateDictionary$p(e);var b={};b=a.ScriptHelpers.deepClone(e);b.key=g;a.NotificationMessages._mapToHostItemNotificationMessageType$p(b);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(35,b,null,d._asyncContext$p$0,d._callback$p$0)};a.NotificationMessages.prototype.removeAsync=function(e){for(var d=[],b=1;b<arguments.length;++b)d[b-1]=arguments[b];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.removeAsync");var c=a.CommonParameters.parse(d,false);a.NotificationMessages._validateKey$p(e);var f={key:e};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(36,f,null,c._asyncContext$p$0,c._callback$p$0)};a.OutlookErrorManager=function(){};a.OutlookErrorManager.getErrorArgs=function(c){!a.OutlookErrorManager._isInitialized$p&&a.OutlookErrorManager._initialize$p();return b.DDA.ErrorCodeManager.getErrorArgs(c)};a.OutlookErrorManager._initialize$p=function(){a.OutlookErrorManager._addErrorMessage$p(9e3,"AttachmentSizeExceeded",window._u.ExtensibilityStrings.l_AttachmentExceededSize_Text);a.OutlookErrorManager._addErrorMessage$p(9001,"NumberOfAttachmentsExceeded",window._u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text);a.OutlookErrorManager._addErrorMessage$p(9002,"InternalFormatError",window._u.ExtensibilityStrings.l_InternalFormatError_Text);a.OutlookErrorManager._addErrorMessage$p(9003,"InvalidAttachmentId",window._u.ExtensibilityStrings.l_InvalidAttachmentId_Text);a.OutlookErrorManager._addErrorMessage$p(9004,"InvalidAttachmentPath",window._u.ExtensibilityStrings.l_InvalidAttachmentPath_Text);a.OutlookErrorManager._addErrorMessage$p(9005,"CannotAddAttachmentBeforeUpgrade",window._u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text);a.OutlookErrorManager._addErrorMessage$p(9006,"AttachmentDeletedBeforeUploadCompletes",window._u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text);a.OutlookErrorManager._addErrorMessage$p(9007,"AttachmentUploadGeneralFailure",window._u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text);a.OutlookErrorManager._addErrorMessage$p(9008,"AttachmentToDeleteDoesNotExist",window._u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text);a.OutlookErrorManager._addErrorMessage$p(9009,"AttachmentDeleteGeneralFailure",window._u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text);a.OutlookErrorManager._addErrorMessage$p(9010,"InvalidEndTime",window._u.ExtensibilityStrings.l_InvalidEndTime_Text);a.OutlookErrorManager._addErrorMessage$p(9011,"HtmlSanitizationFailure",window._u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text);a.OutlookErrorManager._addErrorMessage$p(9012,"NumberOfRecipientsExceeded",String.format(window._u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text,500));a.OutlookErrorManager._addErrorMessage$p(9013,"NoValidRecipientsProvided",window._u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text);a.OutlookErrorManager._addErrorMessage$p(9014,"CursorPositionChanged",window._u.ExtensibilityStrings.l_CursorPositionChanged_Text);a.OutlookErrorManager._addErrorMessage$p(9016,"InvalidSelection",window._u.ExtensibilityStrings.l_InvalidSelection_Text);a.OutlookErrorManager._addErrorMessage$p(9017,"AccessRestricted","");a.OutlookErrorManager._addErrorMessage$p(9018,"GenericTokenError","");a.OutlookErrorManager._addErrorMessage$p(9019,"GenericSettingsError","");a.OutlookErrorManager._addErrorMessage$p(9020,"GenericResponseError","");a.OutlookErrorManager._addErrorMessage$p(9021,"SaveError",window._u.ExtensibilityStrings.l_SaveError_Text);a.OutlookErrorManager._addErrorMessage$p(9022,"MessageInDifferentStoreError",window._u.ExtensibilityStrings.l_MessageInDifferentStoreError_Text);a.OutlookErrorManager._addErrorMessage$p(9023,"DuplicateNotificationKey",window._u.ExtensibilityStrings.l_DuplicateNotificationKey_Text);a.OutlookErrorManager._addErrorMessage$p(9024,"NotificationKeyNotFound",window._u.ExtensibilityStrings.l_NotificationKeyNotFound_Text);a.OutlookErrorManager._addErrorMessage$p(9025,"NumberOfNotificationsExceeded",window._u.ExtensibilityStrings.l_NumberOfNotificationsExceeded_Text);a.OutlookErrorManager._addErrorMessage$p(9026,"PersistedNotificationArrayReadError",window._u.ExtensibilityStrings.l_PersistedNotificationArrayReadError_Text);a.OutlookErrorManager._addErrorMessage$p(9027,"PersistedNotificationArraySaveError",window._u.ExtensibilityStrings.l_PersistedNotificationArraySaveError_Text);a.OutlookErrorManager._addErrorMessage$p(9028,"CannotPersistPropertyInUnsavedDraftError",window._u.ExtensibilityStrings.l_CannotPersistPropertyInUnsavedDraftError_Text);a.OutlookErrorManager._isInitialized$p=true};a.OutlookErrorManager._addErrorMessage$p=function(c,d,a){b.DDA.ErrorCodeManager.addErrorMessage(c,{name:d,message:a})};a.OutlookErrorManager.OutlookErrorCodes=function(){};a.OutlookErrorManager.OsfDdaErrorCodes=function(){};a.PhoneNumber=function(b){this.$$d__getPhoneType$p$0=Function.createDelegate(this,this._getPhoneType$p$0);this.$$d__getOriginalPhoneString$p$0=Function.createDelegate(this,this._getOriginalPhoneString$p$0);this.$$d__getPhoneString$p$0=Function.createDelegate(this,this._getPhoneString$p$0);this._data$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"phoneString",this.$$d__getPhoneString$p$0);a.InitialData._defineReadOnlyProperty$i(this,"originalPhoneString",this.$$d__getOriginalPhoneString$p$0);a.InitialData._defineReadOnlyProperty$i(this,"type",this.$$d__getPhoneType$p$0)};a.PhoneNumber.prototype={_data$p$0:null,_getPhoneString$p$0:function(){return this._data$p$0.PhoneString},_getOriginalPhoneString$p$0:function(){return this._data$p$0.OriginalPhoneString},_getPhoneType$p$0:function(){return this._data$p$0.Type}};a.TaskSuggestion=function(b){this.$$d__getAssignees$p$0=Function.createDelegate(this,this._getAssignees$p$0);this.$$d__getTaskString$p$0=Function.createDelegate(this,this._getTaskString$p$0);this._data$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"taskString",this.$$d__getTaskString$p$0);a.InitialData._defineReadOnlyProperty$i(this,"assignees",this.$$d__getAssignees$p$0)};a.TaskSuggestion.prototype={_data$p$0:null,_assignees$p$0:null,_getTaskString$p$0:function(){return this._data$p$0.TaskString},_getAssignees$p$0:function(){if(!this._assignees$p$0){var b=this;this._assignees$p$0=a.Entities._getExtractedObjects$i(a.EmailAddressDetails,this._data$p$0,"Assignees",function(b){return a.EmailAddressDetails._createFromEmailUserDictionary$i(b)})}return this._assignees$p$0}};a.UserProfile=function(b){this.$$d__getUserProfileType$p$0=Function.createDelegate(this,this._getUserProfileType$p$0);this.$$d__getTimeZone$p$0=Function.createDelegate(this,this._getTimeZone$p$0);this.$$d__getEmailAddress$p$0=Function.createDelegate(this,this._getEmailAddress$p$0);this.$$d__getDisplayName$p$0=Function.createDelegate(this,this._getDisplayName$p$0);this._data$p$0=b;a.InitialData._defineReadOnlyProperty$i(this,"displayName",this.$$d__getDisplayName$p$0);a.InitialData._defineReadOnlyProperty$i(this,"emailAddress",this.$$d__getEmailAddress$p$0);a.InitialData._defineReadOnlyProperty$i(this,"timeZone",this.$$d__getTimeZone$p$0);a.InitialData._defineReadOnlyProperty$i(this,"type",this.$$d__getUserProfileType$p$0)};a.UserProfile.prototype={_data$p$0:null,_getUserProfileType$p$0:function(){return this._data$p$0.get__userProfileType$i$0()},_getDisplayName$p$0:function(){return this._data$p$0.get__userDisplayName$i$0()},_getEmailAddress$p$0:function(){return this._data$p$0.get__userEmailAddress$i$0()},_getTimeZone$p$0:function(){return this._data$p$0.get__userTimeZone$i$0()}};a.OutlookDispid=function(){};a.OutlookDispid.prototype={owaOnlyMethod:0,getInitialData:1,getUserIdentityToken:2,loadCustomProperties:3,saveCustomProperties:4,ewsRequest:5,displayNewAppointmentForm:7,displayMessageForm:8,displayAppointmentForm:9,displayReplyForm:10,displayReplyAllForm:11,getCallbackToken:12,bodySetSelectedDataAsync:13,getBodyTypeAsync:14,getRecipientsAsync:15,addFileAttachmentAsync:16,setSubjectAsync:17,getSubjectAsync:18,addItemAttachmentAsync:19,removeAttachmentAsync:20,setRecipientsAsync:21,addRecipientsAsync:22,bodyPrependAsync:23,getTimeAsync:24,setTimeAsync:25,getLocationAsync:26,setLocationAsync:27,getSelectedDataAsync:28,setSelectedDataAsync:29,displayReplyFormWithAttachments:30,displayReplyAllFormWithAttachments:31,saveAsync:32,addNotficationMessageAsync:33,getAllNotficationMessagesAsync:34,replaceNotficationMessageAsync:35,removeNotficationMessageAsync:36,getBodyAsync:37,setBodyAsync:38,appCommands1:39,registerConsentAsync:40,close:41,closeApp:42,displayContactCardAsync:43,displayNewMessageForm:44,appCommands2:94,trackCtq:400,recordTrace:401,recordDataPoint:402,windowOpenOverrideHandler:403,saveSettingsRequest:404};a.OutlookDispid.registerEnum("$h.OutlookDispid",false);a.RequestState=function(){};a.RequestState.prototype={unsent:0,opened:1,headersReceived:2,loading:3,done:4};a.RequestState.registerEnum("$h.RequestState",false);a.CommonParameters=function(c,b,a){this._options$p$0=c;this._callback$p$0=b;this._asyncContext$p$0=a};a.CommonParameters.parse=function(b,j,k){var e,h,i;if(k&&(i=a.CommonParameters._tryParseLegacy$p(b,h={val:e}),e=h.val,i))return e;var f=b.length,c=null,d=null,g=null;if(f===1)if(Function.isInstanceOfType(b[0]))d=b[0];else if(Object.isInstanceOfType(b[0]))c=b[0];else throw Error.argumentType();else if(f===2){if(!Object.isInstanceOfType(b[0]))throw Error.argument("options");if(!Function.isInstanceOfType(b[1]))throw Error.argument("callback");c=b[0];d=b[1]}else if(f)throw Error.parameterCount(window._u.ExtensibilityStrings.l_ParametersNotAsExpected_Text);if(j&&!d)throw Error.argumentNull("callback");if(c&&!a.ScriptHelpers.isNullOrUndefined(c.asyncContext))g=c.asyncContext;return new a.CommonParameters(c,d,g)};a.CommonParameters._tryParseLegacy$p=function(b,d){d.val=null;var c=b.length,f=null,e=null;if(!c||c>2)return false;if(!Function.isInstanceOfType(b[0]))return false;f=b[0];if(c>1)e=b[1];d.val=new a.CommonParameters(null,f,e);return true};a.CommonParameters.prototype={_options$p$0:null,_callback$p$0:null,_asyncContext$p$0:null,get_options:function(){return this._options$p$0},get_callback:function(){return this._callback$p$0},get_asyncContext:function(){return this._asyncContext$p$0}};a.EwsRequest=function(b){a.EwsRequest.initializeBase(this,[b])};a.EwsRequest.prototype={readyState:1,status:0,statusText:null,onreadystatechange:null,responseText:null,get__statusCode$i$1:function(){return this.status},set__statusCode$i$1:function(a){this.status=a;return a},get__statusDescription$i$1:function(){return this.statusText},set__statusDescription$i$1:function(a){this.statusText=a;return a},get__requestState$i$1:function(){return this.readyState},set__requestState$i$1:function(a){this.readyState=a;return a},get_hasOnReadyStateChangeCallback:function(){return!a.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)},get__response$i$1:function(){return this.responseText},set__response$i$1:function(a){this.responseText=a;return a},send:function(b){this._checkSendConditions$i$1();a.ScriptHelpers.isNullOrUndefined(b)&&this._throwInvalidStateException$i$1();this._sendRequest$i$0(5,"EwsRequest",{body:b})},_callOnReadyStateChangeCallback$i$1:function(){!a.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)&&this.onreadystatechange()},_parseExtraResponseData$i$1:function(){},executeExtraFailedResponseSteps:function(){}};a.InitialData=function(a){this._data$p$0=a;this._permissionLevel$p$0=this._calculatePermissionLevel$p$0()};a.InitialData._defineReadOnlyProperty$i=function(d,b,c){var a={"get":c,configurable:false};Object.defineProperty(d,b,a)};a.InitialData.prototype={_toRecipients$p$0:null,_ccRecipients$p$0:null,_attachments$p$0:null,_resources$p$0:null,_entities$p$0:null,_data$p$0:null,_permissionLevel$p$0:0,get__isRestIdSupported$i$0:function(){return this._data$p$0.isRestIdSupported},get__itemId$i$0:function(){return this._data$p$0.id},get__itemClass$i$0:function(){return this._data$p$0.itemClass},get__dateTimeCreated$i$0:function(){return new Date(this._data$p$0.dateTimeCreated)},get__dateTimeModified$i$0:function(){return new Date(this._data$p$0.dateTimeModified)},get__dateTimeSent$i$0:function(){return new Date(this._data$p$0.dateTimeSent)},get__subject$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.subject},get__normalizedSubject$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.normalizedSubject},get__internetMessageId$i$0:function(){return this._data$p$0.internetMessageId},get__conversationId$i$0:function(){return this._data$p$0.conversationId},get__sender$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var b=this._data$p$0.sender;return a.ScriptHelpers.isNullOrUndefined(b)?null:new a.EmailAddressDetails(b)},get__from$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var b=this._data$p$0.from;return a.ScriptHelpers.isNullOrUndefined(b)?null:new a.EmailAddressDetails(b)},get__to$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();if(null===this._toRecipients$p$0)this._toRecipients$p$0=this._createEmailAddressDetails$p$0("to");return this._toRecipients$p$0},get__cc$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();if(null===this._ccRecipients$p$0)this._ccRecipients$p$0=this._createEmailAddressDetails$p$0("cc");return this._ccRecipients$p$0},get__attachments$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();if(null===this._attachments$p$0)this._attachments$p$0=this._createAttachmentDetails$p$0();return this._attachments$p$0},get__ewsUrl$i$0:function(){return this._data$p$0.ewsUrl},get__marketplaceAssetId$i$0:function(){return this._data$p$0.marketplaceAssetId},get__extensionId$i$0:function(){return this._data$p$0.extensionId},get__marketplaceContentMarket$i$0:function(){return this._data$p$0.marketplaceContentMarket},get__consentMetadata$i$0:function(){return this._data$p$0.consentMetadata},get__isRead$i$0:function(){return this._data$p$0.isRead},get__endNodeUrl$i$0:function(){return this._data$p$0.endNodeUrl},get__entryPointUrl$i$0:function(){return this._data$p$0.entryPointUrl},get__start$i$0:function(){return new Date(this._data$p$0.start)},get__end$i$0:function(){return new Date(this._data$p$0.end)},get__location$i$0:function(){return this._data$p$0.location},get__userProfileType$i$0:function(){return this._data$p$0.userProfileType},get__resources$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();if(null===this._resources$p$0)this._resources$p$0=this._createEmailAddressDetails$p$0("resources");return this._resources$p$0},get__organizer$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var b=this._data$p$0.organizer;return a.ScriptHelpers.isNullOrUndefined(b)?null:new a.EmailAddressDetails(b)},get__userDisplayName$i$0:function(){return this._data$p$0.userDisplayName},get__userEmailAddress$i$0:function(){return this._data$p$0.userEmailAddress},get__userTimeZone$i$0:function(){return this._data$p$0.userTimeZone},get__timeZoneOffsets$i$0:function(){return this._data$p$0.timeZoneOffsets},get__hostVersion$i$0:function(){return this._data$p$0.hostVersion},get__owaView$i$0:function(){return this._data$p$0.owaView},get__overrideWindowOpen$i$0:function(){return this._data$p$0.overrideWindowOpen},_getEntities$i$0:function(){if(!this._entities$p$0)this._entities$p$0=new a.Entities(this._data$p$0.entities,this._data$p$0.filteredEntities,this.get__dateTimeSent$i$0(),this._permissionLevel$p$0);return this._entities$p$0},_getEntitiesByType$i$0:function(a){var b=this._getEntities$i$0();return b._getByType$i$0(a)},_getFilteredEntitiesByName$i$0:function(b){var a=this._getEntities$i$0();return a._getFilteredEntitiesByName$i$0(b)},_getRegExMatches$i$0:function(){return!this._data$p$0.regExMatches?null:this._data$p$0.regExMatches},_getRegExMatchesByName$i$0:function(b){var a=this._getRegExMatches$i$0();return!a||!a[b]?null:a[b]},_throwOnRestrictedPermissionLevel$i$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0)},_createEmailAddressDetails$p$0:function(e){var c=this._data$p$0[e];if(a.ScriptHelpers.isNullOrUndefined(c))return[];for(var d=[],b=0;b<c.length;b++)if(!a.ScriptHelpers.isNullOrUndefined(c[b]))d[b]=new a.EmailAddressDetails(c[b]);return d},_createAttachmentDetails$p$0:function(){var c=this._data$p$0.attachments;if(a.ScriptHelpers.isNullOrUndefined(c))return[];for(var d=[],b=0;b<c.length;b++)if(!a.ScriptHelpers.isNullOrUndefined(c[b]))d[b]=new a.AttachmentDetails(c[b]);return d},_calculatePermissionLevel$p$0:function(){var e=1,c=2,d=3,b=this._data$p$0.permissionLevel;if(a.ScriptHelpers.isUndefined(this._permissionLevel$p$0))return 0;switch(b){case e:return 1;case d:return 2;case c:return 3;default:return 0}}};a._loadDictionaryRequest=function(b,c,e,d){a._loadDictionaryRequest.initializeBase(this,[d]);this._createResultObject$p$1=b;this._dictionaryName$p$1=c;this._callback$p$1=e};a._loadDictionaryRequest.prototype={_dictionaryName$p$1:null,_createResultObject$p$1:null,_callback$p$1:null,handleResponse:function(a){if(a.wasSuccessful){var c=a[this._dictionaryName$p$1],b=window.JSON.parse(c);this.createAsyncResult(this._createResultObject$p$1(b),0,0,null)}else this.createAsyncResult(null,1,9020,a.errorMessage);this._callback$p$1(this._asyncResult$p$0)}};a.ProxyRequestBase=function(b){a.ProxyRequestBase.initializeBase(this,[b])};a.ProxyRequestBase.prototype={handleResponse:function(a){if(!a.wasProxySuccessful){this.set__statusCode$i$1(500);this.set__statusDescription$i$1("Error");var b=a.errorMessage;this.set__response$i$1(b);this.createAsyncResult(null,1,9020,b)}else{this.set__statusCode$i$1(a.statusCode);this.set__statusDescription$i$1(a.statusDescription);this.set__response$i$1(a.body);this.createAsyncResult(this.get__response$i$1(),0,0,null)}this._parseExtraResponseData$i$1(a);this._cycleReadyStateFromHeadersReceivedToLoadingToDone$i$1()},_throwInvalidStateException$i$1:function(){throw Error.create("DOMException",{code:11,message:"INVALID_STATE_ERR"});},_cycleReadyStateFromHeadersReceivedToLoadingToDone$i$1:function(){var a=this;this._changeReadyState$i$1(2,function(){a._changeReadyState$i$1(3,function(){a._changeReadyState$i$1(4,null)})})},_changeReadyState$i$1:function(d,b){this.set__requestState$i$1(d);var c=this;window.setTimeout(function(){try{c._callOnReadyStateChangeCallback$i$1()}finally{!a.ScriptHelpers.isNullOrUndefined(b)&&b()}},0)},_checkSendConditions$i$1:function(){this.get__requestState$i$1()!==1&&this._throwInvalidStateException$i$1();this._isSent$p$0&&this._throwInvalidStateException$i$1()}};a.RequestBase=function(a){this._userContext$p$0=a};a.RequestBase.prototype={_isSent$p$0:false,_asyncResult$p$0:null,_userContext$p$0:null,get_asyncResult:function(){return this._asyncResult$p$0},_sendRequest$i$0:function(c,d,b){this._isSent$p$0=true;var a=this;window.OSF.DDA.OutlookAppOm._instance$p.invokeHostMethod(c,b,function(b,c){if(b)a.createAsyncResult(null,1,9017,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,b));else a.handleResponse(c)})},createAsyncResult:function(d,c,a,b){this._asyncResult$p$0=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(d,c,a,this._userContext$p$0,b)}};a.SaveDictionaryRequest=function(b,c){a.SaveDictionaryRequest.initializeBase(this,[c]);if(!a.ScriptHelpers.isNullOrUndefined(b))this._callback$p$1=b};a.SaveDictionaryRequest.prototype={_callback$p$1:null,handleResponse:function(b){if(b.wasSuccessful)this.createAsyncResult(null,0,0,null);else this.createAsyncResult(null,1,9020,b.errorMessage);!a.ScriptHelpers.isNullOrUndefined(this._callback$p$1)&&this._callback$p$1(this._asyncResult$p$0)}};a.ScriptHelpers=function(){};a.ScriptHelpers.isNull=function(a){return null===a};a.ScriptHelpers.isNullOrUndefined=function(b){return a.ScriptHelpers.isNull(b)||a.ScriptHelpers.isUndefined(b)};a.ScriptHelpers.isUndefined=function(a){return a===undefined};a.ScriptHelpers.dictionaryContainsKey=function(a,b){return Object.isInstanceOfType(a)?b in a:false};a.ScriptHelpers.isNonEmptyString=function(a){return!a?false:String.isInstanceOfType(a)};a.ScriptHelpers.deepClone=function(a){return window.JSON.parse(window.JSON.stringify(a))};window.OSF.DDA.OutlookAppOm.registerClass("OSF.DDA.OutlookAppOm");window.OSF.DDA.Settings.registerClass("OSF.DDA.Settings");a.ItemBase.registerClass("$h.ItemBase");a.Item.registerClass("$h.Item",a.ItemBase);a.Appointment.registerClass("$h.Appointment",a.Item);a.ComposeItem.registerClass("$h.ComposeItem",a.ItemBase);a.AppointmentCompose.registerClass("$h.AppointmentCompose",a.ComposeItem);a.AttachmentConstants.registerClass("$h.AttachmentConstants");a.AttachmentDetails.registerClass("$h.AttachmentDetails");a.Body.registerClass("$h.Body");a.ComposeBody.registerClass("$h.ComposeBody",a.Body);a.ComposeRecipient.registerClass("$h.ComposeRecipient");a.ComposeLocation.registerClass("$h.ComposeLocation");a.ComposeSubject.registerClass("$h.ComposeSubject");a.ComposeTime.registerClass("$h.ComposeTime");a.Contact.registerClass("$h.Contact");a.CustomProperties.registerClass("$h.CustomProperties");a.Diagnostics.registerClass("$h.Diagnostics");a.EmailAddressDetails.registerClass("$h.EmailAddressDetails");a.Entities.registerClass("$h.Entities");a.ReplyConstants.registerClass("$h.ReplyConstants");a.AsyncConstants.registerClass("$h.AsyncConstants");window.Office.cast.item.registerClass("Office.cast.item");a.Message.registerClass("$h.Message",a.Item);a.MeetingRequest.registerClass("$h.MeetingRequest",a.Message);a.MeetingSuggestion.registerClass("$h.MeetingSuggestion");a.MeetingSuggestionTimeDecoder.registerClass("$h.MeetingSuggestionTimeDecoder");a._extractedDate.registerClass("$h._extractedDate");a._preciseDate.registerClass("$h._preciseDate",a._extractedDate);a._relativeDate.registerClass("$h._relativeDate",a._extractedDate);a.MessageCompose.registerClass("$h.MessageCompose",a.ComposeItem);a.NotificationMessages.registerClass("$h.NotificationMessages");a.OutlookErrorManager.registerClass("$h.OutlookErrorManager");a.OutlookErrorManager.OutlookErrorCodes.registerClass("$h.OutlookErrorManager.OutlookErrorCodes");a.OutlookErrorManager.OsfDdaErrorCodes.registerClass("$h.OutlookErrorManager.OsfDdaErrorCodes");a.PhoneNumber.registerClass("$h.PhoneNumber");a.TaskSuggestion.registerClass("$h.TaskSuggestion");a.UserProfile.registerClass("$h.UserProfile");a.CommonParameters.registerClass("$h.CommonParameters");a.RequestBase.registerClass("$h.RequestBase");a.ProxyRequestBase.registerClass("$h.ProxyRequestBase",a.RequestBase);a.EwsRequest.registerClass("$h.EwsRequest",a.ProxyRequestBase);a.InitialData.registerClass("$h.InitialData");a._loadDictionaryRequest.registerClass("$h._loadDictionaryRequest",a.RequestBase);a.SaveDictionaryRequest.registerClass("$h.SaveDictionaryRequest",a.RequestBase);a.ScriptHelpers.registerClass("$h.ScriptHelpers");window.OSF.DDA.OutlookAppOm.asyncMethodTimeoutKeyName="__timeout__";window.OSF.DDA.OutlookAppOm.ewsIdOrEmailParamName="ewsIdOrEmail";window.OSF.DDA.OutlookAppOm._maxRecipients$p=100;window.OSF.DDA.OutlookAppOm._maxSubjectLength$p=255;window.OSF.DDA.OutlookAppOm.maxBodyLength=32768;window.OSF.DDA.OutlookAppOm._maxLocationLength$p=255;window.OSF.DDA.OutlookAppOm._maxEwsRequestSize$p=1e6;window.OSF.DDA.OutlookAppOm.executeMethodName="ExecuteMethod";window.OSF.DDA.OutlookAppOm.getInitialDataMethodName="GetInitialData";window.OSF.DDA.OutlookAppOm.itemIdParameterName="itemId";window.OSF.DDA.OutlookAppOm.restVersionParameterName="restVersion";window.OSF.DDA.OutlookAppOm._instance$p=null;a.AttachmentConstants.maxAttachmentNameLength=255;a.AttachmentConstants.maxUrlLength=2048;a.AttachmentConstants.maxItemIdLength=200;a.AttachmentConstants.maxRemoveIdLength=200;a.AttachmentConstants.attachmentParameterName="attachments";a.AttachmentConstants.attachmentTypeParameterName="type";a.AttachmentConstants.attachmentUrlParameterName="url";a.AttachmentConstants.attachmentItemIdParameterName="itemId";a.AttachmentConstants.attachmentNameParameterName="name";a.AttachmentConstants.attachmentTypeFileName="file";a.AttachmentConstants.attachmentTypeItemName="item";a.AttachmentDetails._attachmentTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File,window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Item,window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Cloud];a.Body.coercionTypeParameterName="coercionType";a.ComposeRecipient.displayNameLengthLimit=255;a.ComposeRecipient.maxSmtpLength=571;a.ComposeRecipient.recipientsLimit=100;a.ComposeRecipient.totalRecipientsLimit=500;a.ComposeRecipient.addressParameterName="address";a.ComposeRecipient.nameParameterName="name";a.ComposeLocation.locationKey="location";a.ComposeLocation.maximumLocationLength=255;a.ComposeSubject.maximumSubjectLength=255;a.ComposeTime.timeTypeName="TimeProperty";a.ComposeTime.timeDataName="time";a.Diagnostics.outlookAppName="Outlook";a.Diagnostics.outlookWebAppName="OutlookWebApp";a.EmailAddressDetails._emptyString$p="";a.EmailAddressDetails._responseTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Organizer,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Tentative,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Accepted,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Declined];a.EmailAddressDetails._recipientTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.DistributionList,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.User,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.ExternalUser];a.Entities._allEntityKeys$p=["Addresses","EmailAddresses","Urls","PhoneNumbers","TaskSuggestions","MeetingSuggestions","Contacts","FlightReservations","ParcelDeliveries"];a.ReplyConstants.htmlBodyKeyName="htmlBody";a.AsyncConstants.optionsKeyName="options";a.AsyncConstants.callbackKeyName="callback";a.AsyncConstants.asyncResultKeyName="asyncResult";a.MeetingSuggestionTimeDecoder._baseDate$p=new Date("0001-01-01T00:00:00Z");a.NotificationMessages.maximumKeyLength=32;a.NotificationMessages.maximumIconLength=32;a.NotificationMessages.maximumMessageLength=150;a.NotificationMessages.notificationsKeyParameterName="key";a.NotificationMessages.notificationsTypeParameterName="type";a.NotificationMessages.notificationsIconParameterName="icon";a.NotificationMessages.notificationsMessageParameterName="message";a.NotificationMessages.notificationsPersistentParameterName="persistent";a.OutlookErrorManager.errorNameKey="name";a.OutlookErrorManager.errorMessageKey="message";a.OutlookErrorManager._isInitialized$p=false;a.OutlookErrorManager.OutlookErrorCodes.attachmentSizeExceeded=9e3;a.OutlookErrorManager.OutlookErrorCodes.numberOfAttachmentsExceeded=9001;a.OutlookErrorManager.OutlookErrorCodes.internalFormatError=9002;a.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentId=9003;a.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentPath=9004;a.OutlookErrorManager.OutlookErrorCodes.cannotAddAttachmentBeforeUpgrade=9005;a.OutlookErrorManager.OutlookErrorCodes.attachmentDeletedBeforeUploadCompletes=9006;a.OutlookErrorManager.OutlookErrorCodes.attachmentUploadGeneralFailure=9007;a.OutlookErrorManager.OutlookErrorCodes.attachmentToDeleteDoesNotExist=9008;a.OutlookErrorManager.OutlookErrorCodes.attachmentDeleteGeneralFailure=9009;a.OutlookErrorManager.OutlookErrorCodes.invalidEndTime=9010;a.OutlookErrorManager.OutlookErrorCodes.htmlSanitizationFailure=9011;a.OutlookErrorManager.OutlookErrorCodes.numberOfRecipientsExceeded=9012;a.OutlookErrorManager.OutlookErrorCodes.noValidRecipientsProvided=9013;a.OutlookErrorManager.OutlookErrorCodes.cursorPositionChanged=9014;a.OutlookErrorManager.OutlookErrorCodes.invalidSelection=9016;a.OutlookErrorManager.OutlookErrorCodes.accessRestricted=9017;a.OutlookErrorManager.OutlookErrorCodes.genericTokenError=9018;a.OutlookErrorManager.OutlookErrorCodes.genericSettingsError=9019;a.OutlookErrorManager.OutlookErrorCodes.genericResponseError=9020;a.OutlookErrorManager.OutlookErrorCodes.saveError=9021;a.OutlookErrorManager.OutlookErrorCodes.messageInDifferentStoreError=9022;a.OutlookErrorManager.OutlookErrorCodes.duplicateNotificationKey=9023;a.OutlookErrorManager.OutlookErrorCodes.notificationKeyNotFound=9024;a.OutlookErrorManager.OutlookErrorCodes.numberOfNotificationsExceeded=9025;a.OutlookErrorManager.OutlookErrorCodes.persistedNotificationArrayReadError=9026;a.OutlookErrorManager.OutlookErrorCodes.persistedNotificationArraySaveError=9027;a.OutlookErrorManager.OutlookErrorCodes.cannotPersistPropertyInUnsavedDraftError=9028;a.OutlookErrorManager.OutlookErrorCodes.ooeInvalidDataFormat=2006;a.OutlookErrorManager.OsfDdaErrorCodes.ooeCoercionTypeNotSupported=1e3;a.CommonParameters.asyncContextKeyName="asyncContext";a.InitialData.userProfileTypeKey="userProfileType";a.ScriptHelpers.emptyString="";b.DDA.ErrorCodeManager.initializeErrorMessages(Strings.OfficeOM);if(c.get_appName()==b.AppName.OutlookWebApp||c.get_appName()==b.AppName.OutlookIOS)this._settings=this._initializeSettings(c,false);else this._settings=this._initializeSettings(false);c.appOM=new b.DDA.OutlookAppOm(c,this._webAppState.wnd,e)} |