/* Outlook iOS specific API library */
/* osfweb version: 16.0.14419.10000 */
/* office-js-api version: 20210820.2 */
/*
	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.

    This file also contains the following Promise implementation (with a few small modifications):
        * @overview es6-promise - a tiny implementation of Promises/A+.
        * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
        * @license   Licensed under MIT license
        *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
        * @version   2.3.0
*/
"undefined"!==typeof OSFPerformance&&(OSFPerformance.hostInitializationStart=OSFPerformance.now());
/* Outlook iOS client specific API library */
/* Version: 16.0.14419.10000 */
var __extends=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(c,a){for(var b in a)if(a.hasOwnProperty(b))c[b]=a[b]};return a(c,b)};return function(c,b){a(c,b);function d(){this.constructor=c}c.prototype=b===null?Object.create(b):(d.prototype=b.prototype,new d)}}(),OfficeExt;(function(b){var a=function(){var a=true;function b(){}b.prototype.isMsAjaxLoaded=function(){var b="function",c="undefined";if(typeof Sys!==c&&typeof Type!==c&&Sys.StringBuilder&&typeof Sys.StringBuilder===b&&Type.registerNamespace&&typeof Type.registerNamespace===b&&Type.registerClass&&typeof Type.registerClass===b&&typeof Function._validateParams===b&&Sys.Serialization&&Sys.Serialization.JavaScriptSerializer&&typeof Sys.Serialization.JavaScriptSerializer.serialize===b)return a;else return false};b.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(b.prototype,"msAjaxError",{"get":function(){var a=this;if(a._msAjaxError==null&&a.isMsAjaxLoaded())a._msAjaxError=Error;return a._msAjaxError},"set":function(a){this._msAjaxError=a},enumerable:a,configurable:a});Object.defineProperty(b.prototype,"msAjaxString",{"get":function(){var a=this;if(a._msAjaxString==null&&a.isMsAjaxLoaded())a._msAjaxString=String;return a._msAjaxString},"set":function(a){this._msAjaxString=a},enumerable:a,configurable:a});Object.defineProperty(b.prototype,"msAjaxDebug",{"get":function(){var a=this;if(a._msAjaxDebug==null&&a.isMsAjaxLoaded())a._msAjaxDebug=Sys.Debug;return a._msAjaxDebug},"set":function(a){this._msAjaxDebug=a},enumerable:a,configurable:a});return b}();b.MicrosoftAjaxFactory=a})(OfficeExt||(OfficeExt={}));var OsfMsAjaxFactory=new OfficeExt.MicrosoftAjaxFactory,OSF=OSF||{};(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.XdmFieldName={ConversationUrl:"ConversationUrl",AppId:"AppId"};OSF.TestFlightStart=1e3;OSF.TestFlightEnd=1009;OSF.FlightNames={UseOriginNotUrl:0,CheckReceiverOrigin:1,AddinEnforceHttps:2,FirstPartyAnonymousProxyReadyCheckTimeout:6,AddinRibbonIdAllowUnknown:9,ManifestParserDevConsoleLog:15,AddinActionDefinitionHybridMode:18,UseActionIdForUILessCommand:20,RequirementSetRibbonApiOnePointTwo:21,SetFocusToTaskpaneIsEnabled:22,ShortcutInfoArrayInUserPreferenceData:23,OSFTestFlight1000:OSF.TestFlightStart,OSFTestFlight1001:OSF.TestFlightStart+1,OSFTestFlight1002:OSF.TestFlightStart+2,OSFTestFlight1003:OSF.TestFlightStart+3,OSFTestFlight1004:OSF.TestFlightStart+4,OSFTestFlight1005:OSF.TestFlightStart+5,OSFTestFlight1006:OSF.TestFlightStart+6,OSFTestFlight1007:OSF.TestFlightStart+7,OSFTestFlight1008:OSF.TestFlightStart+8,OSFTestFlight1009:OSF.TestFlightEnd};OSF.FlightTreatmentNames={AllowStorageAccessByUserActivationOnIFrame:"Microsoft.Office.SharedOnline.AllowStorageAccessByUserActivationOnIFrame",IsPrivateAddin:"Microsoft.Office.SharedOnline.IsPrivateAddin",LogAllAddinsAsPublic:"Microsoft.Office.SharedOnline.LogAllAddinsAsPublic"};OSF.Flights=[];OSF.Settings={};OSF.WindowNameItemKeys={BaseFrameName:"baseFrameName",HostInfo:"hostInfo",XdmInfo:"xdmInfo",SerializerVersion:"serializerVersion",AppContext:"appContext",Flights:"flights"};OSF.OUtil=function(){var k="focus",j="https:",i="on",q="configurable",p="writable",h="enumerable",e="",f="undefined",c=false,b=true,l="string",m=2147483647,a=null,g="#",d=-1,w=d,C="&_xdm_Info=",z="&_serializer_version=",B="&_flights=",A="_xdm_",F="_serializer_version=",G="_flights=",s=g,y="&",n="class",v={},E=3e4,r=a,u=a,o=(new Date).getTime();function D(){var a=m*Math.random();a^=o^(new Date).getMilliseconds()<<Math.floor(Math.random()*(31-10));return a.toString(16)}function t(){if(!r){try{var b=window.sessionStorage}catch(c){b=a}r=new OfficeExt.SafeStorage(b)}return r}function x(e){for(var c=[],b=[],f=e.length,a,d=0;d<f;d++){a=e[d];if(a.tabIndex)if(a.tabIndex>0)b.push(a);else a.tabIndex===0&&c.push(a);else c.push(a)}b=b.sort(function(d,c){var a=d.tabIndex-c.tabIndex;if(a===0)a=b.indexOf(d)-b.indexOf(c);return a});return [].concat(b,c)}return {set_entropy:function(a){if(typeof a==l)for(var b=0;b<a.length;b+=4){for(var d=0,c=0;c<4&&b+c<a.length;c++)d=(d<<8)+a.charCodeAt(b+c);o^=d}else if(typeof a=="number")o^=a;else o^=m*Math.random();o&=m},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]},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(c){var f={};c=c||{};for(var e in c){var a=c[e];try{if(JSON)a=JSON.parse(a,function(c,a){var b;if(typeof a===l&&a&&a.length>6&&a.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&a.slice(d)===OSF.DDA.SettingsManager.DataJSONSuffix){b=new Date(parseInt(a.slice(5,d)));if(b)return b}return a});else a=Sys.Serialization.JavaScriptSerializer.deserialize(a,b);f[e]=a}catch(g){}}return f},loadScript:function(f,g,i){if(f&&g){var k=window.document,d=v[f];if(!d){var e=k.createElement("script");e.type="text/javascript";d={loaded:c,pendingCallbacks:[g],timer:a};v[f]=d;var j=function(){if(d.timer!=a){clearTimeout(d.timer);delete d.timer}d.loaded=b;for(var e=d.pendingCallbacks.length,c=0;c<e;c++){var f=d.pendingCallbacks.shift();f()}},l=function(){if(window.navigator.userAgent.indexOf("Trident")>0)h(a);else h(new Event("Script load timed out"))},h=function(){delete v[f];if(d.timer!=a){clearTimeout(d.timer);delete d.timer}for(var c=d.pendingCallbacks.length,b=0;b<c;b++){var e=d.pendingCallbacks.shift();e()}};if(e.readyState)e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete"){e.onreadystatechange=a;j()}};else e.onload=j;e.onerror=h;i=i||E;d.timer=setTimeout(l,i);e.setAttribute("crossOrigin","anonymous");e.src=f;k.getElementsByTagName("head")[0].appendChild(e)}else if(d.loaded)g();else d.pendingCallbacks.push(g)}},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==f){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(){w=w+1;return w.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 [D(),D(),(new Date).getTime().toString()].join("_")},getFrameName:function(a){return A+a+this.generateConversationId()},addXdmInfoAsHash:function(b,a){return OSF.OUtil.addInfoAsHash(b,C,a,c)},addSerializerVersionAsHash:function(c,a){return OSF.OUtil.addInfoAsHash(c,z,a,b)},addFlightsAsHash:function(c,a){return OSF.OUtil.addInfoAsHash(c,B,a,b)},addInfoAsHash:function(b,g,c,i){b=b.trim()||e;var f=b.split(s),h=f.shift(),d=f.join(s),a;if(i)a=[g,encodeURIComponent(c),d].join(e);else a=[d,g,c].join(e);return [h,s,a].join(e)},parseHostInfoFromWindowName:function(a,b){return OSF.OUtil.parseInfoFromWindowName(a,b,OSF.WindowNameItemKeys.HostInfo)},parseXdmInfo:function(b){var a=OSF.OUtil.parseXdmInfoWithGivenFragment(b,window.location.hash);if(!a)a=OSF.OUtil.parseXdmInfoFromWindowName(b,window.name);return a},parseXdmInfoFromWindowName:function(a,b){return OSF.OUtil.parseInfoFromWindowName(a,b,OSF.WindowNameItemKeys.XdmInfo)},parseXdmInfoWithGivenFragment:function(a,b){return OSF.OUtil.parseInfoWithGivenFragment(C,A,c,a,b)},parseSerializerVersion:function(b){var a=OSF.OUtil.parseSerializerVersionWithGivenFragment(b,window.location.hash);if(isNaN(a))a=OSF.OUtil.parseSerializerVersionFromWindowName(b,window.name);return a},parseSerializerVersionFromWindowName:function(a,b){return parseInt(OSF.OUtil.parseInfoFromWindowName(a,b,OSF.WindowNameItemKeys.SerializerVersion))},parseSerializerVersionWithGivenFragment:function(a,c){return parseInt(OSF.OUtil.parseInfoWithGivenFragment(z,F,b,a,c))},parseFlights:function(b){var a=OSF.OUtil.parseFlightsWithGivenFragment(b,window.location.hash);if(a.length==0)a=OSF.OUtil.parseFlightsFromWindowName(b,window.name);return a},checkFlight:function(a){return OSF.Flights&&OSF.Flights.indexOf(a)>=0},pushFlight:function(a){if(OSF.Flights.indexOf(a)<0){OSF.Flights.push(a);return b}return c},getBooleanSetting:function(a){return OSF.OUtil.getBooleanFromDictionary(OSF.Settings,a)},getBooleanFromDictionary:function(b,a){var d=b&&a&&b[a]!==undefined&&b[a]&&(typeof b[a]===l&&b[a].toUpperCase()==="TRUE"||typeof b[a]==="boolean"&&b[a]);return d!==undefined?d:c},parseFlightsFromWindowName:function(a,b){return OSF.OUtil.parseArrayWithDefault(OSF.OUtil.parseInfoFromWindowName(a,b,OSF.WindowNameItemKeys.Flights))},parseFlightsWithGivenFragment:function(a,c){return OSF.OUtil.parseArrayWithDefault(OSF.OUtil.parseInfoWithGivenFragment(B,G,b,a,c))},parseArrayWithDefault:function(b){var a=[];try{a=JSON.parse(b)}catch(c){}if(!Array.isArray(a))a=[];return a},parseInfoFromWindowName:function(g,h,f){try{var b=JSON.parse(h),c=b!=a?b[f]:a,d=t();if(!g&&d&&b!=a){var e=b[OSF.WindowNameItemKeys.BaseFrameName]+f;if(c)d.setItem(e,c);else c=d.getItem(e)}return c}catch(i){return a}},parseInfoWithGivenFragment:function(m,j,k,i,l){var f=l.split(m),b=f.length>1?f[f.length-1]:a;if(k&&b!=a){if(b.indexOf(y)>=0)b=b.split(y)[0];b=decodeURIComponent(b)}var c=t();if(!i&&c){var e=window.name.indexOf(j);if(e>d){var g=window.name.indexOf(";",e);if(g==d)g=window.name.length;var h=window.name.substring(e,g);if(b)c.setItem(h,b);else b=c.getItem(h)}}return b},getConversationId:function(){var c=window.location.search,b=a;if(c){var d=c.indexOf("&");b=d>0?c.substring(1,d):c.substr(1);if(b&&b.charAt(b.length-1)==="="){b=b.substring(0,b.length-1);if(b)b=decodeURIComponent(b)}}return b},getInfoItems:function(b){var a=b.split("$");if(typeof a[1]==f)a=b.split("|");if(typeof a[1]==f)a=b.split("%7C");return a},getXdmFieldValue:function(f,d){var b=e,c=OSF.OUtil.parseXdmInfo(d);if(c){var a=OSF.OUtil.getInfoItems(c);if(a!=undefined&&a.length>=3)switch(f){case OSF.XdmFieldName.ConversationUrl:b=a[2];break;case OSF.XdmFieldName.AppId:b=a[1]}}return b},validateParamObject:function(f,e){var a=Function._validateParams(arguments,[{name:"params",type:Object,mayBeNull:c},{name:"expectedProperties",type:Object,mayBeNull:c},{name:"callback",type:Function,mayBeNull:b}]);if(a)throw a;for(var d in e){a=Function._validateParameter(f[d],e[d],d);if(a)throw a}},writeProfilerMark:function(a){if(window.msWriteProfilerMark){window.msWriteProfilerMark(a);OsfMsAjaxFactory.msAjaxDebug.trace(a)}},outputDebug:function(a){typeof OsfMsAjaxFactory!==f&&OsfMsAjaxFactory.msAjaxDebug&&OsfMsAjaxFactory.msAjaxDebug.trace&&OsfMsAjaxFactory.msAjaxDebug.trace(a)},defineNondefaultProperty:function(e,f,a,c){a=a||{};for(var g in c){var d=c[g];if(a[d]==undefined)a[d]=b}Object.defineProperty(e,f,a);return e},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,[h])},defineEnumerableProperties:function(b,a){return OSF.OUtil.defineNondefaultProperties(b,a,[h])},defineMutableProperty:function(c,b,a){return OSF.OUtil.defineNondefaultProperty(c,b,a,[p,h,q])},defineMutableProperties:function(b,a){return OSF.OUtil.defineNondefaultProperties(b,a,[p,h,q])},finalizeProperties:function(e,d){d=d||{};for(var g=Object.getOwnPropertyNames(e),i=g.length,f=0;f<i;f++){var h=g[f],a=Object.getOwnPropertyDescriptor(e,h);if(!a.get&&!a.set)a.writable=d.writable||c;a.configurable=d.configurable||c;a.enumerable=d.enumerable||b;Object.defineProperty(e,h,a)}return e},mapList:function(a,c){var b=[];if(a)for(var d in a)b.push(c(a[d]));return b},listContainsKey:function(d,e){for(var a in d)if(e==a)return b;return c},listContainsValue:function(a,d){for(var e in a)if(d==a[e])return b;return c},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,d){if(a.addEventListener)a.addEventListener(b,d,c);else if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&a.attachEvent)a.attachEvent(i+b,d);else a[i+b]=d},removeEventListener:function(b,d,e){if(b.removeEventListener)b.removeEventListener(d,e,c);else if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&b.detachEvent)b.detachEvent(i+d,e);else b[i+d]=a},getCookieValue:function(b){var a=RegExp(b+"[^;]+").exec(document.cookie);return a.toString().replace(/^[^=]+./,e)},xhrGet:function(f,e,c){var a;try{a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState==4)if(a.status==200)e(a.responseText);else c(a.status)};a.open("GET",f,b);a.send()}catch(d){c(d)}},xhrGetFull:function(h,f,g,c){var a,e=f;try{a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState==4)if(a.status==200)g(a,e);else c(a.status)};a.open("GET",h,b);a.send()}catch(d){c(d)}},encodeBase64:function(c){if(!c)return c;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",m=[],b=[],i=0,k,h,j,d,f,g,a,n=c.length;do{k=c.charCodeAt(i++);h=c.charCodeAt(i++);j=c.charCodeAt(i++);a=0;d=k&255;f=k>>8;g=h&255;b[a++]=d>>2;b[a++]=(d&3)<<4|f>>4;b[a++]=(f&15)<<2|g>>6;b[a++]=g&63;if(!isNaN(h)){d=h>>8;f=j&255;g=j>>8;b[a++]=d>>2;b[a++]=(d&3)<<4|f>>4;b[a++]=(f&15)<<2|g>>6;b[a++]=g&63}if(isNaN(h))b[a-1]=64;else if(isNaN(j)){b[a-2]=64;b[a-1]=64}for(var l=0;l<a;l++)m.push(o.charAt(b[l]))}while(i<n);return m.join(e)},getSessionStorage:function(){return t()},getLocalStorage:function(){if(!u){try{var b=window.localStorage}catch(c){b=a}u=new OfficeExt.SafeStorage(b)}return u},convertIntToCssHexColor:function(b){var a=g+(Number(b)+16777216).toString(16).slice(-6);return a},attachClickHandler:function(a,b){a.onclick=function(){b()};a.ontouchend=function(a){b();a.preventDefault()}},getQueryStringParamValue:function(a,d){var f=Function._validateParams(arguments,[{name:"queryString",type:String,mayBeNull:c},{name:"paramName",type:String,mayBeNull:c}]);if(f){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null.");return e}var b=new RegExp("[\\?&]"+d+"=([^&#]*)","i");if(!b.test(a)){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found.");return e}return b.exec(a)[1]},getHostnamePortionForLogging:function(d){var f=Function._validateParams(arguments,[{name:"hostname",type:String,mayBeNull:c}]);if(f)return e;var a=d.split("."),b=a.length;if(b>=2)return a[b-2]+"."+a[b-1];else if(b==1)return a[0]},isiOS:function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?b:c},isChrome:function(){return window.navigator.userAgent.indexOf("Chrome")>0&&!OSF.OUtil.isEdge()},isEdge:function(){return window.navigator.userAgent.indexOf("Edge")>0},isIE:function(){return window.navigator.userAgent.indexOf("Trident")>0},isFirefox:function(){return window.navigator.userAgent.indexOf("Firefox")>0},startsWith:function(b,a,c){if(c)return b.substr(0,a.length)===a;else return b.startsWith(a)},containsPort:function(d,e,c,a){return this.startsWith(d,e+"//"+c+":"+a,b)||this.startsWith(d,c+":"+a,b)},getRedundandPortString:function(b,a){if(!b||!a)return e;if(a.protocol==j&&this.containsPort(b,j,a.hostname,"443"))return ":443";else if(a.protocol=="http:"&&this.containsPort(b,"http:",a.hostname,"80"))return ":80";return e},removeChar:function(a,b){if(b<a.length-1)return a.substring(0,b)+a.substring(b+1);else if(b==a.length-1)return a.substring(0,a.length-1);else return a},cleanUrlOfChar:function(a,c){for(var b=0;b<a.length;b++)if(a.charAt(b)===c)if(b+1>=a.length)return this.removeChar(a,b);else if(c==="/"){if(a.charAt(b+1)==="?"||a.charAt(b+1)===g)return this.removeChar(a,b)}else if(c==="?")if(a.charAt(b+1)===g)return this.removeChar(a,b);return a},cleanUrl:function(a){a=this.cleanUrlOfChar(a,"/");a=this.cleanUrlOfChar(a,"?");a=this.cleanUrlOfChar(a,g);if(a.substr(0,8)=="https://"){var b=a.indexOf(":443");if(b!=d)if(b==a.length-4||a.charAt(b+4)=="/"||a.charAt(b+4)=="?"||a.charAt(b+4)==g)a=a.substring(0,b)+a.substring(b+4)}else if(a.substr(0,7)=="http://"){var b=a.indexOf(":80");if(b!=d)if(b==a.length-3||a.charAt(b+3)=="/"||a.charAt(b+3)=="?"||a.charAt(b+3)==g)a=a.substring(0,b)+a.substring(b+3)}return a},parseUrl:function(g,i){var h=this;if(i===void 0)i=c;if(typeof g===f||!g)return undefined;var k="NotHttps",o="InvalidUrl",n=h.isIE(),b={protocol:undefined,hostname:undefined,host:undefined,port:undefined,pathname:undefined,search:undefined,hash:undefined,isPortPartOfUrl:undefined};try{if(n){var a=document.createElement("a");a.href=g;if(!a||!a.protocol||!a.host||!a.hostname||!a.href||h.cleanUrl(a.href).toLowerCase()!==h.cleanUrl(g).toLowerCase())throw o;if(OSF.OUtil.checkFlight(OSF.FlightNames.AddinEnforceHttps))if(i&&a.protocol!=j)throw new Error(k);var m=h.getRedundandPortString(g,a);b.protocol=a.protocol;b.hostname=a.hostname;b.port=m==e?a.port:e;b.host=m!=e?a.hostname:a.host;b.pathname=(n?"/":e)+a.pathname;b.search=a.search;b.hash=a.hash;b.isPortPartOfUrl=h.containsPort(g,a.protocol,a.hostname,a.port)}else{var d=new URL(g);if(d&&d.protocol&&d.host&&d.hostname){if(OSF.OUtil.checkFlight(OSF.FlightNames.AddinEnforceHttps))if(i&&d.protocol!=j)throw new Error(k);b.protocol=d.protocol;b.hostname=d.hostname;b.port=d.port;b.host=d.host;b.pathname=d.pathname;b.search=d.search;b.hash=d.hash;b.isPortPartOfUrl=d.host.lastIndexOf(":"+d.port)==d.host.length-d.port.length-1}}}catch(l){if(l.message===k)throw l}return b},shallowCopy:function(b){if(b==a)return a;else if(!(b instanceof Object))return b;else if(Array.isArray(b)){for(var e=[],d=0;d<b.length;d++)e.push(b[d]);return e}else{var f=b.constructor();for(var c in b)if(b.hasOwnProperty(c))f[c]=b[c];return f}},createObject:function(b){var d=a;if(b){d={};for(var e=b.length,c=0;c<e;c++)d[b[c].name]=b[c].value}return d},addClass:function(a,b){if(!OSF.OUtil.hasClass(a,b)){var c=a.getAttribute(n);if(c)a.setAttribute(n,c+" "+b);else a.setAttribute(n,b)}},removeClass:function(b,c){if(OSF.OUtil.hasClass(b,c)){var a=b.getAttribute(n),d=new RegExp("(\\s|^)"+c+"(\\s|$)");a=a.replace(d,e);b.setAttribute(n,a)}},hasClass:function(c,b){var a=c.getAttribute(n);return a&&a.match(new RegExp("(\\s|^)"+b+"(\\s|$)"))},focusToFirstTabbable:function(e,i){var g,h=c,f,j=function(){h=b},l=function(c,a,b){if(a<0||a>c)return d;else if(a===0&&b)return d;else if(a===c-1&&!b)return d;if(b)return a-1;else return a+1};e=x(e);g=i?e.length-1:0;if(e.length===0)return a;while(!h&&g>=0&&g<e.length){f=e[g];window.focus();f.addEventListener(k,j);f.focus();f.removeEventListener(k,j);g=l(e.length,g,i);if(!h&&f===document.activeElement)h=b}if(h)return f;else return a},focusToNextTabbable:function(f,o,m){var j,e,h=c,g,l=function(){h=b},n=function(b,c){for(var a=0;a<b.length;a++)if(b[a]===c)return a;return d},i=function(c,a,b){if(a<0||a>c)return d;else if(a===0&&b)return d;else if(a===c-1&&!b)return d;if(b)return a-1;else return a+1};f=x(f);j=n(f,o);e=i(f.length,j,m);if(e<0)return a;while(!h&&e>=0&&e<f.length){g=f[e];g.addEventListener(k,l);g.focus();g.removeEventListener(k,l);e=i(f.length,e,m);if(!h&&g===document.activeElement)h=b}if(h)return g;else return a},isNullOrUndefined:function(d){if(typeof d===f)return b;if(d===a)return b;return c},stringEndsWith:function(d,a){if(!OSF.OUtil.isNullOrUndefined(d)&&!OSF.OUtil.isNullOrUndefined(a)){if(a.length>d.length)return c;if(d.substr(d.length-a.length)===a)return b}return c},hashCode:function(b){var a=0;if(!OSF.OUtil.isNullOrUndefined(b)){var c=0,d=b.length;while(c<d)a=(a<<5)-a+b.charCodeAt(c++)|0}return a},getValue:function(a,b){if(OSF.OUtil.isNullOrUndefined(a))return b;return a},externalNativeFunctionExists:function(a){return a==="unknown"||a!==f}}}();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).getTime(),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}}}();try{(function(){OSF.Flights=OSF.OUtil.parseFlights(true)})()}catch(ex){}window.OSF=OSF;OSF.OUtil.setNamespace("OSF",window);OSF.MessageIDs={FetchBundleUrl:0,LoadReactBundle:1,LoadBundleSuccess:2,LoadBundleError:3};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,OneNote:262144,ExcelWinRT:524288,WordWinRT:1048576,PowerpointWinRT:2097152,OutlookAndroid:4194304,OneNoteWinRT:8388608,ExcelAndroid:8388609,VisioWebApp:8388610,OneNoteIOS:8388611,WordAndroid:8388613,PowerpointAndroid:8388614,Visio:8388615,OneNoteAndroid:4194305};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,PageIsReady:10,TabIn:11,TabInShift:12,TabExit:13,TabExitShift:14,EscExit:15,F2Exit:16,ExitNoFocusable:17,ExitNoFocusableShift:18,MouseEnter:19,MouseLeave:20,UpdateTargetUrl:21,InstallCustomFunctions:22,SendTelemetryEvent:23,UninstallCustomFunctions:24,SendMessage:25,LaunchExtensionComponent:26,StopExtensionComponent:27,RestartExtensionComponent:28,EnableTaskPaneHeaderButton:29,DisableTaskPaneHeaderButton:30,TaskPaneHeaderButtonClicked:31,RemoveAppCommandsAddin:32,RefreshRibbonGallery:33,GetOriginalControlId:34,OfficeJsReady:35,InsertDevManifest:36,InsertDevManifestError:37,SendCustomerContent:38,KeyboardShortcuts:39};OSF.SharedConstants={NotificationConversationIdSuffix:"_ntf"};OSF.DialogMessageType={DialogMessageReceived:0,DialogParentMessageReceived:1,DialogClosed:12006};OSF.OfficeAppContext=function(B,x,s,p,u,y,t,w,A,k,z,m,l,o,i,h,g,f,j,c,e,v,r,b,n,q,d){var a=this;a._id=B;a._appName=x;a._appVersion=s;a._appUILocale=p;a._dataLocale=u;a._docUrl=y;a._clientMode=t;a._settings=w;a._reason=A;a._osfControlType=k;a._eToken=z;a._correlationId=m;a._appInstanceId=l;a._touchEnabled=o;a._commerceAllowed=i;a._appMinorVersion=h;a._requirementMatrix=g;a._hostCustomMessage=f;a._hostFullVersion=j;a._isDialog=false;a._clientWindowHeight=c;a._clientWindowWidth=e;a._addinName=v;a._appDomains=r;a._dialogRequirementMatrix=b;a._featureGates=n;a._officeTheme=q;a._initialDisplayMode=d;a.get_id=function(){return this._id};a.get_appName=function(){return this._appName};a.get_appVersion=function(){return this._appVersion};a.get_appUILocale=function(){return this._appUILocale};a.get_dataLocale=function(){return this._dataLocale};a.get_docUrl=function(){return this._docUrl};a.get_clientMode=function(){return this._clientMode};a.get_bindings=function(){return this._bindings};a.get_settings=function(){return this._settings};a.get_reason=function(){return this._reason};a.get_osfControlType=function(){return this._osfControlType};a.get_eToken=function(){return this._eToken};a.get_correlationId=function(){return this._correlationId};a.get_appInstanceId=function(){return this._appInstanceId};a.get_touchEnabled=function(){return this._touchEnabled};a.get_commerceAllowed=function(){return this._commerceAllowed};a.get_appMinorVersion=function(){return this._appMinorVersion};a.get_requirementMatrix=function(){return this._requirementMatrix};a.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix};a.get_hostCustomMessage=function(){return this._hostCustomMessage};a.get_hostFullVersion=function(){return this._hostFullVersion};a.get_isDialog=function(){return this._isDialog};a.get_clientWindowHeight=function(){return this._clientWindowHeight};a.get_clientWindowWidth=function(){return this._clientWindowWidth};a.get_addinName=function(){return this._addinName};a.get_appDomains=function(){return this._appDomains};a.get_featureGates=function(){return this._featureGates};a.get_officeTheme=function(){return this._officeTheme};a.get_initialDisplayMode=function(){return this._initialDisplayMode?this._initialDisplayMode:0}};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",ControlActivation:"controlActivation"};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",PlatformType:"platformType",HostType:"hostType",ForceConsent:"forceConsent",ForceAddAccount:"forceAddAccount",AuthChallenge:"authChallenge",AllowConsentPrompt:"allowConsentPrompt",ForMSGraphAccess:"forMSGraphAccess",AllowSignInPrompt:"allowSignInPrompt",JsonPayload:"jsonPayload",EnableNewHosts:"enableNewHosts",AccountTypeFilter:"accountTypeFilter",AddinTrustId:"addinTrustId",Reserved:"reserved",Tcid:"tcid",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",CustomFieldId:"customFieldId",Url:"url",MessageHandler:"messageHandler",Width:"width",Height:"height",RequireHTTPs:"requireHTTPS",MessageToParent:"messageToParent",DisplayInIframe:"displayInIframe",MessageContent:"messageContent",HideTitle:"hideTitle",UseDeviceIndependentPixels:"useDeviceIndependentPixels",PromptBeforeOpen:"promptBeforeOpen",EnforceAppDomain:"enforceAppDomain",UrlNoHostInfo:"urlNoHostInfo",TargetOrigin:"targetOrigin",AppCommandInvocationCompletedData:"appCommandInvocationCompletedData",Base64:"base64",FormId:"formId"};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){if(a==Microsoft.Office.WebExtension.EventType.BindingSelectionChanged||a==Microsoft.Office.WebExtension.EventType.BindingDataChanged||a==Microsoft.Office.WebExtension.EventType.DataNodeDeleted||a==Microsoft.Office.WebExtension.EventType.DataNodeInserted||a==Microsoft.Office.WebExtension.EventType.DataNodeReplaced)return b+"_"+a;else return 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,dispidCloseContainerMethod:97,dispidGetAccessTokenMethod:98,dispidGetAuthContextMethod:99,dispidOpenBrowserWindow:102,dispidCreateDocumentMethod:105,dispidInsertFormMethod:106,dispidDisplayRibbonCalloutAsyncMethod:109,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,dispidCreateTaskMethod:124,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,dispidMessageParentMethod:144,dispidSendMessageMethod:145,dispidExecuteFeature:146,dispidQueryFeature:147,dispidMethodMax:147};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,dispidDialogNotificationShownInAddinEvent:11,dispidDialogParentMessageReceivedEvent:12,dispidObjectDeletedEvent:13,dispidObjectSelectionChangedEvent:14,dispidObjectDataChangedEvent:15,dispidContentControlAddedEvent:16,dispidActivationStatusChangedEvent:32,dispidRichApiMessageEvent:33,dispidAppCommandInvokedEvent:39,dispidOlkItemSelectedChangedEvent:46,dispidOlkRecipientsChangedEvent:47,dispidOlkAppointmentTimeChangedEvent:48,dispidOlkRecurrenceChangedEvent:49,dispidOlkAttachmentsChangedEvent:50,dispidOlkEnhancedLocationsChangedEvent:51,dispidOlkInfobarClickedEvent:52,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];else{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,ooeInvalidOrTimedOutSession:5012,ooeInvalidApiArguments:5013,ooeOperationCancelled:5014,ooeWorkbookHidden:5015,ooeWriteNotSupportedWhenModalDialogOpen:5016,ooeTooManyIncompleteRequests:5100,ooeRequestTokenUnavailable:5101,ooeActivityLimitReached:5102,ooeRequestPayloadSizeLimitExceeded:5103,ooeResponsePayloadSizeLimitExceeded:5104,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:11000,ooeNetworkProblemRetrieveFile:11001,ooeInvalidSliceSize:11002,ooeInvalidCallback:11101,ooeInvalidWidth:12000,ooeInvalidHeight:12001,ooeNavigationError:12002,ooeInvalidScheme:12003,ooeAppDomains:12004,ooeRequireHTTPS:12005,ooeWebDialogClosed:12006,ooeDialogAlreadyOpened:12007,ooeEndUserAllow:12008,ooeEndUserIgnore:12009,ooeNotUILessDialog:12010,ooeCrossZone:12011,ooeNotSSOAgave:13000,ooeSSOUserNotSignedIn:13001,ooeSSOUserAborted:13002,ooeSSOUnsupportedUserIdentity:13003,ooeSSOInvalidResourceUrl:13004,ooeSSOInvalidGrant:13005,ooeSSOClientError:13006,ooeSSOServerError:13007,ooeAddinIsAlreadyRequestingToken:13008,ooeSSOUserConsentNotSupportedByCurrentAddinCategory:13009,ooeSSOConnectionLost:13010,ooeResourceNotAllowed:13011,ooeSSOUnsupportedPlatform:13012,ooeSSOCallThrottled:13013,ooeAccessDenied:13990,ooeGeneralException:13991},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.ooeInvalidOrTimedOutSession]={name:b.L_InvalidOrTimedOutSession,message:b.L_InvalidOrTimedOutSessionMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiArguments]={name:b.L_APICallFailed,message:b.L_InvalidApiArgumentsMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeWorkbookHidden]={name:b.L_APICallFailed,message:b.L_WorkbookHiddenMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeWriteNotSupportedWhenModalDialogOpen]={name:b.L_APICallFailed,message:b.L_WriteNotSupportedWhenModalDialogOpen};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.ooeRequestPayloadSizeLimitExceeded]={name:b.L_APICallFailed,message:b.L_RequestPayloadSizeLimitExceededMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeResponsePayloadSizeLimitExceeded]={name:b.L_APICallFailed,message:b.L_ResponsePayloadSizeLimitExceededMessage};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_CustomXmlExceedQuotaName,message:b.L_CustomXmlExceedQuotaMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlOutOfDate]={name:b.L_CustomXmlOutOfDateName,message:b.L_CustomXmlOutOfDateMessage};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_DialogInvalidScheme};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_DialogRequireHTTPS};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeEndUserIgnore]={name:b.L_DisplayDialogError,message:b.L_UserClickIgnore};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCrossZone]={name:b.L_DisplayDialogError,message:b.L_NewWindowCrossZoneErrorString};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNotSSOAgave]={name:b.L_APINotSupported,message:b.L_InvalidSSOAddinMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserNotSignedIn]={name:b.L_UserNotSignedIn,message:b.L_UserNotSignedIn};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserAborted]={name:b.L_UserAborted,message:b.L_UserAbortedMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUnsupportedUserIdentity]={name:b.L_UnsupportedUserIdentity,message:b.L_UnsupportedUserIdentityMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidResourceUrl]={name:b.L_InvalidResourceUrl,message:b.L_InvalidResourceUrlMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidGrant]={name:b.L_InvalidGrant,message:b.L_InvalidGrantMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOClientError]={name:b.L_SSOClientError,message:b.L_SSOClientErrorMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOServerError]={name:b.L_SSOServerError,message:b.L_SSOServerErrorMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeAddinIsAlreadyRequestingToken]={name:b.L_AddinIsAlreadyRequestingToken,message:b.L_AddinIsAlreadyRequestingTokenMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserConsentNotSupportedByCurrentAddinCategory]={name:b.L_SSOUserConsentNotSupportedByCurrentAddinCategory,message:b.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOConnectionLost]={name:b.L_SSOConnectionLostError,message:b.L_SSOConnectionLostErrorMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUnsupportedPlatform]={name:b.L_APINotSupported,message:b.L_SSOUnsupportedPlatform};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOCallThrottled]={name:b.L_APICallFailed,message:b.L_RequestTokenUnavailable};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationCancelled]={name:b.L_OperationCancelledError,message:b.L_OperationCancelledErrorMessage}}}}();(function(a){var b;(function(b){var a=1.1,A=function(){function a(){}return a}();b.RequirementVersion=A;var d=function(){function a(b){var a=this;a.isSetSupported=function(d,b){if(d==undefined)return false;if(b==undefined)b=0;var f=this._setMap,e=f._sets;if(e.hasOwnProperty(d.toLowerCase())){var g=e[d.toLowerCase()];try{var a=this._getVersion(g);b=b+"";var c=this._getVersion(b);if(a.major>0&&a.major>c.major)return true;if(a.major>0&&a.minor>=0&&a.major==c.major&&a.minor>=c.minor)return true}catch(h){return false}}return false};a._getVersion=function(b){var a="version format incorrect";b=b+"";var c=b.split("."),d=0,e=0;if(c.length<2&&isNaN(Number(b)))throw a;else{d=Number(c[0]);if(c.length>=2)e=Number(c[1]);if(isNaN(d)||isNaN(e))throw a}var f={minor:e,major:d};return f};a._setMap=b;a.isSetSupported=a.isSetSupported.bind(a)}return a}();b.RequirementMatrix=d;var c=function(){function a(a){this._addSetMap=function(a){for(var b in a)this._sets[b]=a[b]};this._sets=a}return a}();b.DefaultSetRequirement=c;var l=function(c){__extends(b,c);function b(){return c.call(this,{dialogapi:a})||this}return b}(c);b.DefaultRequiredDialogSetRequirement=l;var k=function(c){__extends(b,c);function b(){return c.call(this,{dialogorigin:a})||this}return b}(c);b.DefaultOptionalDialogSetRequirement=k;var f=function(c){__extends(b,c);function b(){return c.call(this,{bindingevents:a,documentevents:a,excelapi:a,matrixbindings:a,matrixcoercion:a,selection:a,settings:a,tablebindings:a,tablecoercion:a,textbindings:a,textcoercion:a})||this}return b}(c);b.ExcelClientDefaultSetRequirement=f;var m=function(c){__extends(b,c);function b(){var b=c.call(this)||this;b._addSetMap({imagecoercion:a});return b}return b}(f);b.ExcelClientV1DefaultSetRequirement=m;var n=function(b){__extends(a,b);function a(){return b.call(this,{mailbox:1.3})||this}return a}(c);b.OutlookClientDefaultSetRequirement=n;var h=function(c){__extends(b,c);function b(){return c.call(this,{bindingevents:a,compressedfile:a,customxmlparts:a,documentevents:a,file:a,htmlcoercion:a,matrixbindings:a,matrixcoercion:a,ooxmlcoercion:a,pdffile:a,selection:a,settings:a,tablebindings:a,tablecoercion:a,textbindings:a,textcoercion:a,textfile:a,wordapi:a})||this}return b}(c);b.WordClientDefaultSetRequirement=h;var r=function(c){__extends(b,c);function b(){var b=c.call(this)||this;b._addSetMap({customxmlparts:1.2,wordapi:1.2,imagecoercion:a});return b}return b}(h);b.WordClientV1DefaultSetRequirement=r;var e=function(c){__extends(b,c);function b(){return c.call(this,{activeview:a,compressedfile:a,documentevents:a,file:a,pdffile:a,selection:a,settings:a,textcoercion:a})||this}return b}(c);b.PowerpointClientDefaultSetRequirement=e;var j=function(c){__extends(b,c);function b(){var b=c.call(this)||this;b._addSetMap({imagecoercion:a});return b}return b}(e);b.PowerpointClientV1DefaultSetRequirement=j;var q=function(c){__extends(b,c);function b(){return c.call(this,{selection:a,textcoercion:a})||this}return b}(c);b.ProjectClientDefaultSetRequirement=q;var w=function(c){__extends(b,c);function b(){return c.call(this,{bindingevents:a,documentevents:a,matrixbindings:a,matrixcoercion:a,selection:a,settings:a,tablebindings:a,tablecoercion:a,textbindings:a,textcoercion:a,file:a})||this}return b}(c);b.ExcelWebDefaultSetRequirement=w;var y=function(c){__extends(b,c);function b(){return c.call(this,{compressedfile:a,documentevents:a,file:a,imagecoercion:a,matrixcoercion:a,ooxmlcoercion:a,pdffile:a,selection:a,settings:a,tablecoercion:a,textcoercion:a,textfile:a})||this}return b}(c);b.WordWebDefaultSetRequirement=y;var p=function(c){__extends(b,c);function b(){return c.call(this,{activeview:a,settings:a})||this}return b}(c);b.PowerpointWebDefaultSetRequirement=p;var g=function(b){__extends(a,b);function a(){return b.call(this,{mailbox:1.3})||this}return a}(c);b.OutlookWebDefaultSetRequirement=g;var x=function(c){__extends(b,c);function b(){return c.call(this,{activeview:a,documentevents:a,selection:a,settings:a,textcoercion:a})||this}return b}(c);b.SwayWebDefaultSetRequirement=x;var t=function(c){__extends(b,c);function b(){return c.call(this,{bindingevents:a,partialtablebindings:a,settings:a,tablebindings:a,tablecoercion:a})||this}return b}(c);b.AccessWebDefaultSetRequirement=t;var v=function(c){__extends(b,c);function b(){return c.call(this,{bindingevents:a,documentevents:a,matrixbindings:a,matrixcoercion:a,selection:a,settings:a,tablebindings:a,tablecoercion:a,textbindings:a,textcoercion:a})||this}return b}(c);b.ExcelIOSDefaultSetRequirement=v;var i=function(c){__extends(b,c);function b(){return c.call(this,{bindingevents:a,compressedfile:a,customxmlparts:a,documentevents:a,file:a,htmlcoercion:a,matrixbindings:a,matrixcoercion:a,ooxmlcoercion:a,pdffile:a,selection:a,settings:a,tablebindings:a,tablecoercion:a,textbindings:a,textcoercion:a,textfile:a})||this}return b}(c);b.WordIOSDefaultSetRequirement=i;var u=function(b){__extends(a,b);function a(){var a=b.call(this)||this;a._addSetMap({customxmlparts:1.2,wordapi:1.2});return a}return a}(i);b.WordIOSV1DefaultSetRequirement=u;var o=function(c){__extends(b,c);function b(){return c.call(this,{activeview:a,compressedfile:a,documentevents:a,file:a,pdffile:a,selection:a,settings:a,textcoercion:a})||this}return b}(c);b.PowerpointIOSDefaultSetRequirement=o;var s=function(c){__extends(b,c);function b(){return c.call(this,{mailbox:a})||this}return b}(c);b.OutlookIOSDefaultSetRequirement=s;var z=function(){var b="undefined";function a(){}a.initializeOsfDda=function(){OSF.OUtil.setNamespace("Requirement",OSF.DDA)};a.getDefaultRequirementMatrix=function(f){this.initializeDefaultSetMatrix();var e=undefined,g=f.get_requirementMatrix();if(g!=undefined&&g.length>0&&typeof JSON!==b){var i=JSON.parse(f.get_requirementMatrix().toLowerCase());e=new d(new c(i))}else{var h=a.getClientFullVersionString(f);if(a.DefaultSetArrayMatrix!=undefined&&a.DefaultSetArrayMatrix[h]!=undefined)e=new d(a.DefaultSetArrayMatrix[h]);else e=new d(new c({}))}return e};a.getDefaultDialogRequirementMatrix=function(h){var a=undefined,i=h.get_dialogRequirementMatrix();if(i!=undefined&&i.length>0&&typeof JSON!==b){var f=JSON.parse(h.get_requirementMatrix().toLowerCase());a=new c(f)}else{a=new l;var g=h.get_requirementMatrix();if(g!=undefined&&g.length>0&&typeof JSON!==b){var f=JSON.parse(g.toLowerCase());for(var e in a._sets)if(f.hasOwnProperty(e))a._sets[e]=f[e];var j=new k;for(var e in j._sets)if(f.hasOwnProperty(e))a._sets[e]=f[e]}}return new d(a)};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 f;a.DefaultSetArrayMatrix[a.Word_RCLIENT_1600]=new h;a.DefaultSetArrayMatrix[a.PowerPoint_RCLIENT_1600]=new e;a.DefaultSetArrayMatrix[a.Excel_RCLIENT_1601]=new m;a.DefaultSetArrayMatrix[a.Word_RCLIENT_1601]=new r;a.DefaultSetArrayMatrix[a.PowerPoint_RCLIENT_1601]=new j;a.DefaultSetArrayMatrix[a.Outlook_RCLIENT_1600]=new n;a.DefaultSetArrayMatrix[a.Excel_WAC_1600]=new w;a.DefaultSetArrayMatrix[a.Word_WAC_1600]=new y;a.DefaultSetArrayMatrix[a.Outlook_WAC_1600]=new g;a.DefaultSetArrayMatrix[a.Outlook_WAC_1601]=new g;a.DefaultSetArrayMatrix[a.Project_RCLIENT_1600]=new q;a.DefaultSetArrayMatrix[a.Access_WAC_1600]=new t;a.DefaultSetArrayMatrix[a.PowerPoint_WAC_1600]=new p;a.DefaultSetArrayMatrix[a.Excel_IOS_1600]=new v;a.DefaultSetArrayMatrix[a.SWAY_WAC_1600]=new x;a.DefaultSetArrayMatrix[a.Word_IOS_1600]=new i;a.DefaultSetArrayMatrix[a.Word_IOS_16001]=new u;a.DefaultSetArrayMatrix[a.PowerPoint_IOS_1600]=new o;a.DefaultSetArrayMatrix[a.Outlook_IOS_1600]=new s};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}();b.RequirementsMatrixFactory=z})(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,h,i,c,d){var g="officeTheme",f="requirements",b=this;OSF.OUtil.defineEnumerableProperties(b,{contentLanguage:{value:a.get_dataLocale()},displayLanguage:{value:a.get_appUILocale()},touchEnabled:{value:a.get_touchEnabled()},commerceAllowed:{value:a.get_commerceAllowed()},host:{value:OfficeExt.HostName.Host.getInstance().getHost()},platform:{value:OfficeExt.HostName.Host.getInstance().getPlatform()},isDialog:{value:OSF._OfficeAppFactory.getHostInfo().isDialog},diagnostics:{value:OfficeExt.HostName.Host.getInstance().getDiagnostics(a.get_hostFullVersion())}});i&&OSF.OUtil.defineEnumerableProperty(b,"license",{value:i});a.ui&&OSF.OUtil.defineEnumerableProperty(b,"ui",{value:a.ui});a.auth&&OSF.OUtil.defineEnumerableProperty(b,"auth",{value:a.auth});a.webAuth&&OSF.OUtil.defineEnumerableProperty(b,"webAuth",{value:a.webAuth});a.application&&OSF.OUtil.defineEnumerableProperty(b,"application",{value:a.application});a.extensionLifeCycle&&OSF.OUtil.defineEnumerableProperty(b,"extensionLifeCycle",{value:a.extensionLifeCycle});a.messaging&&OSF.OUtil.defineEnumerableProperty(b,"messaging",{value:a.messaging});a.ui&&a.ui.taskPaneAction&&OSF.OUtil.defineEnumerableProperty(b,"taskPaneAction",{value:a.ui.taskPaneAction});a.ui&&a.ui.ribbonGallery&&OSF.OUtil.defineEnumerableProperty(b,"ribbonGallery",{value:a.ui.ribbonGallery});if(a.get_isDialog()){var e=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(a);OSF.OUtil.defineEnumerableProperty(b,f,{value:e})}else{h&&OSF.OUtil.defineEnumerableProperty(b,"document",{value:h});if(c){var j=c.displayName||"appOM";delete c.displayName;OSF.OUtil.defineEnumerableProperty(b,j,{value:c})}if(a.get_officeTheme())OSF.OUtil.defineEnumerableProperty(b,g,{"get":function(){return a.get_officeTheme()}});else d&&OSF.OUtil.defineEnumerableProperty(b,g,{"get":function(){return d()}});var e=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(a);OSF.OUtil.defineEnumerableProperty(b,f,{value:e})}};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.Application=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(d,b,e){var a=this;OSF.DDA.JsomDocument.uber.constructor.call(a,d,e);b&&OSF.OUtil.defineEnumerableProperty(a,"bindings",{"get":function(){return b}});var c=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(a,[c.GetSelectedDataAsync,c.SetSelectedDataAsync]);OSF.DDA.DispIdHost.addEventSupport(a,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(c,f,e,g,h){var a=this,d=c.length,b=OSF.OUtil.delayExecutionAndCache(function(){return OSF.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,h)});a.verifyArguments=function(d,f){for(var e in d){var a=d[e],c=f[e];if(a["enum"])switch(typeof c){case "string":if(OSF.OUtil.listContainsValue(a["enum"],c))break;case "undefined":throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration;default:throw b()}if(a["types"])if(!OSF.OUtil.listContainsValue(a["types"],typeof c))throw b()}};a.extractRequiredArguments=function(g,l,j){if(g.length<d)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_MissingRequiredArguments);for(var e=[],a=0;a<d;a++)e.push(g[a]);this.verifyArguments(c,e);var i={};for(a=0;a<d;a++){var f=c[a],h=e[a];if(f.verify){var k=f.verify(h,l,j);if(!k)throw b()}i[f.name]=h}return i},a.fillOptions=function(a,e,h,g){a=a||{};for(var d in f)if(!OSF.OUtil.listContainsKey(a,d)){var c=undefined,b=f[d];if(b.calculate&&e)c=b.calculate(e,h,g);if(!c&&b.defaultValue!==undefined)c=b.defaultValue;a[d]=c}return a};a.constructCallArgs=function(c,d,f,b){var a={};for(var i in c)a[i]=c[i];for(var h in d)a[h]=d[h];for(var j in e)a[j]=e[j](f,b);if(g)a=g(a,f,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(d,e,i,f,g,j,k){var a="function",c=d.length,b=new OSF.DDA.ApiMethodCall(d,e,i,j,k);function h(h,j,l,k){if(h.length>c+2)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var d,f,i=h.length-1;i>=c;i--){var g=h[i];switch(typeof g){case "object":if(d)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else d=g;break;case a:if(f)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalFunction);else f=g;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument)}}d=b.fillOptions(d,j,l,k);if(f)if(d[Microsoft.Office.WebExtension.Parameters.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;else d[Microsoft.Office.WebExtension.Parameters.Callback]=f;b.verifyArguments(e,d);return d}this.verifyAndExtractCall=function(e,c,a){var d=b.extractRequiredArguments(e,c,a),g=h(e,d,c,a),f=b.constructCallArgs(d,g,c,a);return f};this.processResponse=function(c,b,e,d){var a;if(c==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)if(f)a=f(b,e,d);else a=b;else if(g)a=g(c,b);else a=OSF.DDA.ErrorCodeManager.getErrorArgs(c);return a};this.getCallArgs=function(g){for(var b,d,f=g.length-1;f>=c;f--){var e=g[f];switch(typeof e){case "object":b=e;break;case a:d=e}}b=b||{};if(d)b[Microsoft.Office.WebExtension.Parameters.Callback]=d;return b}};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(b,c){var j="fromHost",a=this,i="toHost",e=j,l="sourceData",g="self",d={};d[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}};d[Microsoft.Office.WebExtension.Parameters.SampleData]=d[Microsoft.Office.WebExtension.Parameters.Data];function f(j,i){var m=j?{}:undefined;for(var h in j){var g=j[h],a;if(OSF.DDA.ListType.isListType(h)){a=[];for(var n in g)a.push(f(g[n],i))}else if(OSF.OUtil.listContainsKey(d,h))a=d[h][i](g);else if(i==e&&b.preserveNesting(h))a=f(g,i);else{var k=c[h];if(k){var l=k[i];if(l){a=l[g];if(a===undefined)a=g}}else a=g}m[h]=a}return m}function k(j,h){var e;for(var a in h){var d;if(b.isComplexType(a))d=k(j,c[a][i]);else d=j[a];if(d!=undefined){if(!e)e={};var f=h[a];if(f==g)f=a;e[f]=b.pack(a,d)}}return e}function h(j,n,f){if(!f)f={};for(var a in n){var k=n[a],d;if(k==g)d=j;else if(k==l){f[a]=j.toArray();continue}else d=j[k];if(d===null||d===undefined)f[a]=undefined;else{d=b.unpack(a,d);var i;if(b.isComplexType(a)){i=c[a][e];if(b.preserveNesting(a))f[a]=h(d,i);else h(d,i,f)}else if(OSF.DDA.ListType.isListType(a)){i={};var p=OSF.DDA.ListType.getDescriptor(a);i[p]=g;var m=new Array(d.length);for(var o in d)m[o]=h(d[o],i);f[a]=m}else f[a]=d}}return f}function m(l,e,a){var d=c[l][a],b;if(a=="toHost"){var i=f(e,a);b=k(i,d)}else if(a==j){var g=h(e,d);b=f(g,a)}return b}if(!c)c={};a.addMapping=function(l,h){var a,d;if(h.map){a=h.map;d={};for(var j in a){var k=a[j];if(k==g)k=j;d[k]=j}}else{a=h.toHost;d=h.fromHost}var b=c[l];if(b){var f=b[i];for(var n in f)a[n]=f[n];f=b[e];for(var m in f)d[m]=f[m]}else b=c[l]={};b[i]=a;b[e]=d};a.toHost=function(b,a){return m(b,a,i)};a.fromHost=function(a,b){return m(a,b,e)};a.self=g;a.sourceData=l;a.addComplexType=function(a){b.addComplexType(a)};a.getDynamicType=function(a){return b.getDynamicType(a)};a.setDynamicType=function(c,a){b.setDynamicType(c,a)};a.dynamicTypes=d;a.doMapValues=function(a,b){return f(a,b)}};OSF.DDA.SpecialProcessor=function(c,b){var a=this;a.addComplexType=function(a){c.push(a)};a.getDynamicType=function(a){return b[a]};a.setDynamicType=function(c,a){b[c]=a};a.isComplexType=function(a){return OSF.OUtil.listContainsValue(c,a)};a.isDynamicType=function(a){return OSF.OUtil.listContainsKey(b,a)};a.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)};a.pack=function(c,d){var a;if(this.isDynamicType(c))a=b[c].toHost(d);else a=d;return a};a.unpack=function(c,d){var a;if(this.isDynamicType(c))a=b[c].fromHost(d);else a=d;return a}};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",SendMessage:"sendMessage"};OSF.DDA.DispIdHost.Delegates={ExecuteAsync:"executeAsync",RegisterEventAsync:"registerEventAsync",UnregisterEventAsync:"unregisterEventAsync",ParameterMap:"parameterMap",OpenDialog:"openDialog",CloseDialog:"closeDialog",MessageParent:"messageParent",SendMessage:"sendMessage"};OSF.DDA.DispIdHost.Facade=function(f,h){var b=false,d=null,g=this,c={},e=OSF.DDA.AsyncMethodNames,a=OSF.DDA.MethodDispId,n={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,GetAccessTokenAsync:a.dispidGetAccessTokenMethod,GetAuthContextAsync:a.dispidGetAuthContextMethod,ExecuteRichApiRequestAsync:a.dispidExecuteRichApiRequestMethod,AppCommandInvocationCompletedAsync:a.dispidAppCommandInvocationCompletedMethod,CloseContainerAsync:a.dispidCloseContainerMethod,OpenBrowserWindow:a.dispidOpenBrowserWindow,CreateDocumentAsync:a.dispidCreateDocumentMethod,InsertFormAsync:a.dispidInsertFormMethod,ExecuteFeature:a.dispidExecuteFeature,QueryFeature:a.dispidQueryFeature,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,CreateTask:a.dispidCreateTaskMethod};for(var i in n)if(e[i])c[e[i].id]=n[i];e=OSF.DDA.SyncMethodNames;a=OSF.DDA.MethodDispId;var m={MessageParent:a.dispidMessageParentMethod,SendMessage:a.dispidSendMessageMethod};for(var i in m)if(e[i])c[e[i].id]=m[i];e=Microsoft.Office.WebExtension.EventType;a=OSF.DDA.EventDispId;var o={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,DialogParentMessageReceived:a.dispidDialogParentMessageReceivedEvent,ObjectDeleted:a.dispidObjectDeletedEvent,ObjectSelectionChanged:a.dispidObjectSelectionChangedEvent,ObjectDataChanged:a.dispidObjectDataChangedEvent,ContentControlAdded:a.dispidContentControlAddedEvent,RichApiMessage:a.dispidRichApiMessageEvent,ItemChanged:a.dispidOlkItemSelectedChangedEvent,RecipientsChanged:a.dispidOlkRecipientsChangedEvent,AppointmentTimeChanged:a.dispidOlkAppointmentTimeChangedEvent,RecurrenceChanged:a.dispidOlkRecurrenceChangedEvent,AttachmentsChanged:a.dispidOlkAttachmentsChangedEvent,EnhancedLocationsChanged:a.dispidOlkEnhancedLocationsChangedEvent,InfobarClicked:a.dispidOlkInfobarClickedEvent,TaskSelectionChanged:a.dispidTaskSelectionChangedEvent,ResourceSelectionChanged:a.dispidResourceSelectionChangedEvent,ViewSelectionChanged:a.dispidViewSelectionChangedEvent,DataNodeInserted:a.dispidDataNodeAddedEvent,DataNodeReplaced:a.dispidDataNodeReplacedEvent,DataNodeDeleted:a.dispidDataNodeDeletedEvent};for(var k in o)if(e[k])c[e[k]]=o[k];function l(a){return a==OSF.DDA.EventDispId.dispidObjectDeletedEvent||a==OSF.DDA.EventDispId.dispidObjectSelectionChangedEvent||a==OSF.DDA.EventDispId.dispidObjectDataChangedEvent||a==OSF.DDA.EventDispId.dispidContentControlAddedEvent}function j(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}g[OSF.DDA.DispIdHost.Methods.InvokeMethod]=function(t,m,n,q){var a;try{var i=t.id,l=OSF.DDA.AsyncMethodCalls[i];a=l.verifyAndExtractCall(m,n,q);var k=c[i],s=f(i),b=d;if(window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api"))window.Excel._RedirectV1APIs=true;if(window.Excel&&window.Excel._RedirectV1APIs&&(b=window.Excel._V1APIMap[i])){var e=OSF.OUtil.shallowCopy(a);delete e[Microsoft.Office.WebExtension.Parameters.AsyncContext];if(b.preprocess)e=b.preprocess(e);var o=new window.Excel.RequestContext,u=b.call(o,e);o.sync().then(function(){var c=u.value,d=c.status;delete c["status"];delete c["@odata.type"];if(b.postprocess)c=b.postprocess(c,e);if(d!=0)c=OSF.DDA.ErrorCodeManager.getErrorArgs(d);OSF.DDA.issueAsyncResult(a,d,c)})["catch"](function(){OSF.DDA.issueAsyncResult(a,OSF.DDA.ErrorCodeManager.errorCodes.ooeFailure,d)})}else{var g;if(h.toHost)g=h.toHost(k,a);else g=a;var r=(new Date).getTime();s[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]({dispId:k,hostCallArgs:g,onCalling:function(){},onReceiving:function(){},onComplete:function(c,d){var b;if(c==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)if(h.fromHost)b=h.fromHost(k,d);else b=d;else b=d;var e=l.processResponse(c,b,n,a);OSF.DDA.issueAsyncResult(a,c,e);OSF.AppTelemetry&&!(OSF.ConstantNames&&OSF.ConstantNames.IsCustomFunctionsRuntime)&&OSF.AppTelemetry.onMethodDone(k,g,Math.abs((new Date).getTime()-r),c)}})}}catch(p){j(p,l,m,a)}};g[OSF.DDA.DispIdHost.Methods.AddEventHandler]=function(p,d,o,s){var e,a,n,g=b;function k(b){if(b==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){var f=!g?d.addEventHandler(a,n):d.addObjectEventHandler(a,e[Microsoft.Office.WebExtension.Parameters.Id],n);if(!f)b=OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerAdditionFailed}var c;if(b!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)c=OSF.DDA.ErrorCodeManager.getErrorArgs(b);OSF.DDA.issueAsyncResult(e,b,c)}try{var q=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.AddHandlerAsync.id];e=q.verifyAndExtractCall(p,o,d);a=e[Microsoft.Office.WebExtension.Parameters.EventType];n=e[Microsoft.Office.WebExtension.Parameters.Handler];if(s){k(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess);return}var m=c[a];g=l(m);var i=g?e[Microsoft.Office.WebExtension.Parameters.Id]:o.id||"",u=g?d.getObjectEventHandlerCount(a,i):d.getEventHandlerCount(a);if(u==0){var t=f(a)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];t({eventType:a,dispId:m,targetId:i,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:k,onEvent:function(c){var b=h.fromHost(m,c);if(!g)d.fireEvent(OSF.DDA.OMFactory.manufactureEventArgs(a,o,b));else d.fireObjectEvent(i,OSF.DDA.OMFactory.manufactureEventArgs(a,i,b))}})}else k(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}catch(r){j(r,q,p,e)}};g[OSF.DDA.DispIdHost.Methods.RemoveEventHandler]=function(p,e,r){var g,a,m,h=b;function o(a){var b;if(a!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)b=OSF.DDA.ErrorCodeManager.getErrorArgs(a);OSF.DDA.issueAsyncResult(g,a,b)}try{var q=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.id];g=q.verifyAndExtractCall(p,r,e);a=g[Microsoft.Office.WebExtension.Parameters.EventType];m=g[Microsoft.Office.WebExtension.Parameters.Handler];var s=c[a];h=l(s);var k=h?g[Microsoft.Office.WebExtension.Parameters.Id]:r.id||"",n,i;if(m===d){i=h?e.clearObjectEventHandlers(a,k):e.clearEventHandlers(a);n=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}else{i=h?e.removeObjectEventHandler(a,k,m):e.removeEventHandler(a,m);n=i?OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist}var v=h?e.getObjectEventHandlerCount(a,k):e.getEventHandlerCount(a);if(i&&v==0){var u=f(a)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];u({eventType:a,dispId:s,targetId:k,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:o})}else o(n)}catch(t){j(t,q,p,g)}};g[OSF.DDA.DispIdHost.Methods.OpenDialog]=function(p,a,o){var i,n,e=Microsoft.Office.WebExtension.EventType.DialogMessageReceived,g=Microsoft.Office.WebExtension.EventType.DialogEventReceived;function k(b){var d;if(b!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)d=OSF.DDA.ErrorCodeManager.getErrorArgs(b);else{var c={};c[Microsoft.Office.WebExtension.Parameters.Id]=n;c[Microsoft.Office.WebExtension.Parameters.Data]=a;var d=l.processResponse(b,c,o,i);OSF.DialogShownStatus.hasDialogShown=true;a.clearEventHandlers(e);a.clearEventHandlers(g)}OSF.DDA.issueAsyncResult(i,b,d)}try{(e==undefined||g==undefined)&&k(OSF.DDA.ErrorCodeManager.ooeOperationNotSupported);if(OSF.DDA.AsyncMethodNames.DisplayDialogAsync==d){k(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);return}var l=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.DisplayDialogAsync.id];i=l.verifyAndExtractCall(p,o,a);var q=c[e],m=f(e),s=m[OSF.DDA.DispIdHost.Delegates.OpenDialog]!=undefined?m[OSF.DDA.DispIdHost.Delegates.OpenDialog]:m[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];n=JSON.stringify(i);if(!OSF.DialogShownStatus.hasDialogShown){a.clearQueuedEvent(e);a.clearQueuedEvent(g);a.clearQueuedEvent(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived)}s({eventType:e,dispId:q,targetId:n,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:k,onEvent:function(j){var i=h.fromHost(q,j),f=OSF.DDA.OMFactory.manufactureEventArgs(e,o,i);if(f.type==g){var d=OSF.DDA.ErrorCodeManager.getErrorArgs(f.error),c={};c[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=status||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;c[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=d.name||d;c[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=d.message||d;f.error=new OSF.DDA.Error(c[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],c[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],c[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])}a.fireOrQueueEvent(f);if(i[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogClosed){a.clearEventHandlers(e);a.clearEventHandlers(g);a.clearEventHandlers(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived);OSF.DialogShownStatus.hasDialogShown=b}}})}catch(r){j(r,l,p,i)}};g[OSF.DDA.DispIdHost.Methods.CloseDialog]=function(h,o,e,q){var l,a,i,g=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess;function n(a){g=a;OSF.DialogShownStatus.hasDialogShown=b}try{var k=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.CloseAsync.id];l=k.verifyAndExtractCall(h,q,e);a=Microsoft.Office.WebExtension.EventType.DialogMessageReceived;i=Microsoft.Office.WebExtension.EventType.DialogEventReceived;e.clearEventHandlers(a);e.clearEventHandlers(i);var r=c[a],d=f(a),p=d[OSF.DDA.DispIdHost.Delegates.CloseDialog]!=undefined?d[OSF.DDA.DispIdHost.Delegates.CloseDialog]:d[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];p({eventType:a,dispId:r,targetId:o,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:n})}catch(m){j(m,k,h,l)}if(g!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)throw OSF.OUtil.formatString(Strings.OfficeOM.L_FunctionCallFailed,OSF.DDA.AsyncMethodNames.CloseAsync.displayName,g)};g[OSF.DDA.DispIdHost.Methods.MessageParent]=function(a,i){var d={},b=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.MessageParent.id],e=b.verifyAndExtractCall(a,i,d),g=f(OSF.DDA.SyncMethodNames.MessageParent.id),h=g[OSF.DDA.DispIdHost.Delegates.MessageParent],j=c[OSF.DDA.SyncMethodNames.MessageParent.id];return h({dispId:j,hostCallArgs:e,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})};g[OSF.DDA.DispIdHost.Methods.SendMessage]=function(a,k,i){var d={},b=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.SendMessage.id],e=b.verifyAndExtractCall(a,i,d),g=f(OSF.DDA.SyncMethodNames.SendMessage.id),h=g[OSF.DDA.DispIdHost.Delegates.SendMessage],j=c[OSF.DDA.SyncMethodNames.SendMessage.id];return h({dispId:j,hostCallArgs:e,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,e){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,e)}});!a[c]&&OSF.OUtil.defineEnumerableProperty(a,c,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.RemoveEventHandler];c(arguments,b,a)}})};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,b){var a,c=d.number;if(c)switch(c){case -2146828218:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case -2147467259:if(b.dispId==OSF.DDA.EventDispId.dispidDialogMessageReceivedEvent)a=OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened;else a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;break;case -2146828283:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case -2147209089:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case -2147208704:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests;break;case -2146827850:default:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}b.onComplete&&b.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(OSF.DDA.TableDataProperties&&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!==undefined&&a.toArray!==undefined;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();OSF.ClientHostController.execute(a.dispId,c(a.hostCallArgs),function(g){var d,e;if(typeof g==="number"){d=[];e=g}else{d=g.toArray();e=d[OSF.DDA.SafeArray.Response.Status]}if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeChunkResult){var c=d[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(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){if(d.length>2){c=[];for(var f=1;f<d.length;f++)c[f-1]=d[f]}else c=d[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 e=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}}}else c=d[OSF.DDA.SafeArray.Response.Payload];a.onComplete(e,c)}return true})}catch(d){OSF.DDA.SafeArray.Delegate._onException(d,a)}};OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent=function(c,a){var b=(new Date).getTime();return function(d){a.onReceiving&&a.onReceiving();var e=d.toArray?d.toArray()[OSF.DDA.SafeArray.Response.Status]:d;a.onComplete&&a.onComplete(e);OSF.AppTelemetry&&OSF.AppTelemetry.onRegisterDone(c,a.dispId,Math.abs((new Date).getTime()-b),e)}};OSF.DDA.SafeArray.Delegate.registerEventAsync=function(a){a.onCalling&&a.onCalling();var c=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(true,a);try{OSF.ClientHostController.registerEvent(a.dispId,a.targetId,function(c,b){a.onEvent&&a.onEvent(b);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(a.dispId)},c)}catch(b){OSF.DDA.SafeArray.Delegate._onException(b,a)}};OSF.DDA.SafeArray.Delegate.unregisterEventAsync=function(a){a.onCalling&&a.onCalling();var c=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(false,a);try{OSF.ClientHostController.unregisterEvent(a.dispId,a.targetId,c)}catch(b){OSF.DDA.SafeArray.Delegate._onException(b,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(d,b,f,e,c){var a=this;a._hostInfo=d;a._webAppState=b;a._context=f;a._settings=e;a._hostFacade=c;a._initializeSettings=a.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=JSON.parse(a);else{a=JSON.stringify(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.saveAndSetDialogInfo=function(){};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;OfficeExt.Container&&OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.CloseContainerAsync])}OSF.DDA.OpenBrowser&&OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.OpenBrowserWindow]);OSF.DDA.ExecuteFeature&&OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.ExecuteFeature]);OSF.DDA.QueryFeature&&OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.QueryFeature]);if(OSF.DDA.Auth){a.auth=new OSF.DDA.Auth;OSF.DDA.DispIdHost.addAsyncMethods(a.auth,[OSF.DDA.AsyncMethodNames.GetAccessTokenAsync])}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.OpenDialog]=OSF.DDA.SafeArray.Delegate.openDialog;a[OSF.DDA.DispIdHost.Delegates.CloseDialog]=OSF.DDA.SafeArray.Delegate.closeDialog;a[OSF.DDA.DispIdHost.Delegates.MessageParent]=OSF.DDA.SafeArray.Delegate.messageParent;a[OSF.DDA.DispIdHost.Delegates.SendMessage]=OSF.DDA.SafeArray.Delegate.sendMessage;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 OSF=OSF||{},OSFWebkit;(function(b){var a=function(){var a=false;function b(a){this.data=a;this.safeArrayFlag=this.isSafeArray(a)}b.prototype.dimensions=function(){var a=0;if(this.safeArrayFlag)a=this.data[0][0];else if(this.isArray())a=2;return a};b.prototype.getItem=function(){var b=[],a=null;if(this.safeArrayFlag)b=this.toArray();else b=this.data;a=b;for(var c=0;c<arguments.length;c++)a=a[arguments[c]];return a};b.prototype.lbound=function(){return 0};b.prototype.ubound=function(b){var a=this,c=0;if(a.safeArrayFlag)c=a.data[0][b];else if(a.isArray())if(b==1)return a.data.length;else if(b==2)if(OSF.OUtil.isArray(a.data[0]))return a.data[0].length;else if(a.data[0]!=null)return 1;return c};b.prototype.toArray=function(){var c=this;if(c.isArray()==a)return c.data;for(var e=[],g=c.safeArrayFlag?1:0,f=g;f<c.data.length;f++){var d=c.data[f];if(c.isSafeArray(d))e.push(new b(d));else e.push(d)}return e};b.prototype.isArray=function(){return OSF.OUtil.isArray(this.data)};b.prototype.isSafeArray=function(d){var f=a;if(OSF.OUtil.isArray(d)&&OSF.OUtil.isArray(d[0])){var c=d[0],h=c[0];if(c.length!=h+1)return a;for(var b=1,e=1;e<c.length;e++){var g=c[e];if(isFinite(g)==a)return a;b=b*g}b++;f=b==d.length}return f};return b}();b.WebkitSafeArray=a})(OSFWebkit||(OSFWebkit={}));(function(a){var b;(function(b){var a=null;function g(b,c){a.agaveHostCallback(b,c)}b.agaveHostCallback=g;function d(b,c){a.agaveHostEventCallback(b,c)}b.agaveHostEventCallback=d;function f(){if(a==null)a=new c("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback");return a}b.GetScriptMessenger=f;var e=function(){function a(c,a,b){this.id=c;this.targetId=a;this.handler=b}return a}(),c=function(){function a(c,d){var b=this;b.callingIndex=0;b.callbackList={};b.eventHandlerList={};b.asyncMethodCallbackFunctionName=c;b.eventCallbackFunctionName=d;b.conversationId=a.getCurrentTimeMS().toString()}a.prototype.invokeMethod=function(b,d,e,c){var a={};this.postWebkitMessage(a,b,d,e,c)};a.prototype.registerEvent=function(f,i,b,a,j,g){var d={eventCallbackFunction:this.eventCallbackFunctionName},h={id:b,targetId:a},c=this.postWebkitMessage(d,f,i,h,g);this.eventHandlerList[c]=new e(b,a,j)};a.prototype.unregisterEvent=function(f,i,e,d,g){var a=this,h={id:e,targetId:d};for(var b in a.eventHandlerList)if(a.eventHandlerList.hasOwnProperty(b)){var c=a.eventHandlerList[b];if(c.id==e&&c.targetId==d)delete a.eventHandlerList[b]}a.invokeMethod(f,i,h,g)};a.prototype.agaveHostCallback=function(c,d){var a=this.callbackList[c];if(a){var b=a(d);if(b===undefined||b===true)delete this.callbackList[c]}};a.prototype.agaveHostEventCallback=function(b,c){var a=this.eventHandlerList[b];a&&a.handler(c)};a.prototype.postWebkitMessage=function(c,h,i,j,g){var b=this;c.methodId=i;c.params=j;var d="";if(g){d=b.generateCorrelationId();b.callbackList[d]=g;c.callbackId=d;c.callbackFunction=b.asyncMethodCallbackFunctionName}var f=function(){window.webkit.messageHandlers[h].postMessage(JSON.stringify(c))},e=a.getCurrentTimeMS();if(b.lastMessageTimestamp==null||e-b.lastMessageTimestamp>=a.MESSAGE_TIME_DELTA){f();b.lastMessageTimestamp=e}else{b.lastMessageTimestamp+=a.MESSAGE_TIME_DELTA;setTimeout(function(){f()},b.lastMessageTimestamp-e)}return d};a.prototype.generateCorrelationId=function(){++this.callingIndex;return this.conversationId+this.callingIndex};a.getCurrentTimeMS=function(){return (new Date).getTime()};a.MESSAGE_TIME_DELTA=10;return a}();b.WebkitScriptMessaging=c})(b=a.ScriptMessaging||(a.ScriptMessaging={}))})(OSFWebkit||(OSFWebkit={}));OSF.ScriptMessaging=OSFWebkit.ScriptMessaging;(function(a){a.MessageHandlerName="Agave";a.PopupMessageHandlerName="WefPopupHandler";var b;(function(a){var x="InitialDisplayMode",w="HostFullVersion",v="HostCustomMessage",u="RequirementMatrix",t="CommerceAllowed",s="TouchEnabled",r="InstanceId",q="CorrelationId",p="APISetVersion",o="SolutionToken",n="ControlIntegrationLevel",m="ActivationMode",l="DocumentUrl",k="BindingCount",j="AppDataLocale",i="APPUILocale",h="AppCapabilities",g="APIVersionSequence",f="RevisionVersion",e="MinorVersion",d="MajorVersion",c="SolutionReferenceId",b="Settings";a[a[b]=0]=b;a[a[c]=1]=c;a[a["AppType"]=2]="AppType";a[a[d]=3]=d;a[a[e]=4]=e;a[a[f]=5]=f;a[a[g]=6]=g;a[a[h]=7]=h;a[a[i]=8]=i;a[a[j]=9]=j;a[a[k]=10]=k;a[a[l]=11]=l;a[a[m]=12]=m;a[a[n]=13]=n;a[a[o]=14]=o;a[a[p]=15]=p;a[a[q]=16]=q;a[a[r]=17]=r;a[a[s]=18]=s;a[a[t]=19]=t;a[a[u]=20]=u;a[a[v]=21]=v;a[a[w]=22]=w;a[a[x]=23]=x})(b=a.AppContextProperties||(a.AppContextProperties={}));var d;(function(a){var i="MessageParent2",h="SendMessage2",g="MessageParent",f="SendMessage",e="GetContext",d="WriteSettings",c="UnregisterEvent",b="RegisterEvent";a[a["Execute"]=1]="Execute";a[a[b]=2]=b;a[a[c]=3]=c;a[a[d]=4]=d;a[a[e]=5]=e;a[a[f]=6]=f;a[a[g]=7]=g;a[a[h]=8]=h;a[a[i]=9]=i})(d=a.MethodId||(a.MethodId={}));var c=function(){var d="message",c=null;function b(a){this.hostScriptProxy=a;this.useFullDialogAPI=!!window._enableFullDialogAPI;this.osfSupportsDialogOrigin=!!window._osfEnableDialogOrigin}b.prototype.execute=function(g,f,b){var e={id:g,apiArgs:f},d=function(e){if(b){var g=[];if(OSF.OUtil.isArray(e))for(var f=0;f<e.length;f++){var d=e[f];if(OSF.OUtil.isArray(d))d=new a.WebkitSafeArray(d);g.unshift(d)}return b.apply(c,g)}};this.hostScriptProxy.invokeMethod(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.Execute,e,d)};b.prototype.registerEvent=function(g,f,c,b){var d=function(b){var d=b,e=0;if(OSF.OUtil.isArray(b)&&b.length>=2){d=b[0];e=b[1]}c&&c(e,new a.WebkitSafeArray(d))},e=function(c){if(b)return b(new a.WebkitSafeArray(c))};this.hostScriptProxy.registerEvent(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.RegisterEvent,g,f,d,e)};b.prototype.unregisterEvent=function(e,d,c){var b=function(b){return c(new a.WebkitSafeArray(b))};this.hostScriptProxy.unregisterEvent(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.UnregisterEvent,e,d,b)};b.prototype.messageParent=function(a){var e=this,d,b;if(e.osfSupportsDialogOrigin&&a[Microsoft.Office.WebExtension.Parameters.TargetOrigin]){d=e.useFullDialogAPI?JSON.stringify(a):a[Microsoft.Office.WebExtension.Parameters.MessageToParent];b=OSF.Webkit.MethodId.MessageParent2}else{d=a[Microsoft.Office.WebExtension.Parameters.MessageToParent];b=OSF.Webkit.MethodId.MessageParent}if(e.useFullDialogAPI)e.hostScriptProxy.invokeMethod(OSF.Webkit.MessageHandlerName,b,d,c);else{var g={dialogMessage:{messageType:OSF.DialogMessageType.DialogMessageReceived,messageContent:d}},f=b==OSF.Webkit.MethodId.MessageParent2?a[Microsoft.Office.WebExtension.Parameters.TargetOrigin]:window.location.origin;window.opener.postMessage(JSON.stringify(g),f)}};b.prototype.openDialog=function(g,k,f,a){if(this.useFullDialogAPI){this.registerEvent(g,k,f,a);return}if(b.popup&&!b.popup.closed){a(OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened);return}var p="action=displayDialog";b.OpenDialogCallback=undefined;var i="#",h=JSON.parse(k),l=h.url;if(!l){a(OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidScheme);return}var e=l.split(i),j="?";if(e[0].indexOf("?")>-1)j="&";var t=screen.width*h.width/100,r=screen.height*h.height/100,s="width="+t+", height="+r;e[0]=e[0].concat(j).concat(p);var q=e.join(i);b.popup=window.open(q,"",s);function o(a){if(a.origin==window.location.origin)try{var b=JSON.parse(a.data);b.dialogMessage&&f(g,[OSF.DialogMessageType.DialogMessageReceived,b.dialogMessage.messageContent,a.origin])}catch(c){OsfMsAjaxFactory.msAjaxDebug.trace("messages received cannot be handlered. Message:"+a.data)}}b.DialogEventListener=o;function n(){try{if(b.popup==c||b.popup.closed){window.clearInterval(b.interval);window.removeEventListener(d,b.DialogEventListener);b.NotifyError=c;b.popup=c;f(g,[OSF.DialogMessageType.DialogClosed])}}catch(a){OsfMsAjaxFactory.msAjaxDebug.trace("Error happened when popup window closed.")}}function m(a){f(g,[a])}b.OpenDialogCallback=function(c){if(c==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){window.addEventListener(d,b.DialogEventListener);b.interval=window.setInterval(n,1e3);b.NotifyError=m}a(c)}};b.prototype.closeDialog=function(f,e,a){if(this.useFullDialogAPI)this.unregisterEvent(f,e,a);else if(b.popup){b.interval&&window.clearInterval(b.interval);b.popup.close();b.popup=c;window.removeEventListener(d,b.DialogEventListener);b.NotifyError=c;a(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}else a(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};b.prototype.sendMessage=function(d){var a,b;if(this.osfSupportsDialogOrigin&&d[Microsoft.Office.WebExtension.Parameters.TargetOrigin]){a=JSON.stringify(d);b=OSF.Webkit.MethodId.SendMessage2}else{a=d[Microsoft.Office.WebExtension.Parameters.MessageContent];b=OSF.Webkit.MethodId.SendMessage;if(!isNaN(parseFloat(a))&&isFinite(a))a=a.toString()}this.hostScriptProxy.invokeMethod(OSF.Webkit.MessageHandlerName,b,a,c)};return b}();a.WebkitHostController=c})(OSFWebkit||(OSFWebkit={}));OSF.Webkit=OSFWebkit;OSF.initializeWebkitCommon=function(){OSF.DDA.ClientSettingsManager={getSettingsExecuteMethod:function(a){return function(b){var e,d,c=function(c,a){b.onReceiving&&b.onReceiving();b.onComplete&&b.onComplete(c,a)};try{a(b.hostCallArgs,b.onCalling,c)}catch(f){e=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;d={name:Strings.OfficeOM.L_InternalError,message:f};c(e,d)}}},read:function(b,a){var f=[],e=[];b&&b();var c=OSF._OfficeAppFactory.getInitializationHelper(),d=function(b){a&&a(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,b.get_settings())};c.getAppContext(null,d)},write:function(b,i,d,c){var a={},f=[],e=[];for(var g in b){f.push(g);e.push(b[g])}a["keys"]=f;a["values"]=e;d&&d();var h=function(a){c&&c(a[0],null)};OSF.ScriptMessaging.GetScriptMessenger().invokeMethod(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.WriteSettings,a,h)}};OSF.InitializationHelper.prototype.initializeSettings=function(c,b){var a=c.get_settings(),d=this.deserializeSettings(a,b);return d};OSF.InitializationHelper.prototype.getAppContext=function(d,c){var b=function(b){for(var f,a=OSF.Webkit.AppContextProperties,w=b[a.AppType],h=b[a.Settings],g={},i=h[0],A=h[1],e=0;e<i.length;e++)g[i[e]]=A[e];var B=b[a.SolutionReferenceId],x=b[a.MajorVersion],r=b[a.MinorVersion],t=b[a.AppCapabilities],v=b[a.APPUILocale],u=b[a.AppDataLocale],y=b[a.DocumentUrl],z=b[a.ActivationMode],o=b[a.ControlIntegrationLevel],d=b[a.SolutionToken];d=d?d.toString():"";var q=b[a.CorrelationId],p=b[a.InstanceId],s=b[a.TouchEnabled],m=b[a.CommerceAllowed],l=b[a.RequirementMatrix],k=b[a.HostCustomMessage],n=b[a.HostFullVersion],j=b[a.InitialDisplayMode];f=new OSF.OfficeAppContext(B,w,x,v,u,y,t,g,z,o,d,q,p,s,m,r,l,k,n,undefined,undefined,undefined,undefined,undefined,undefined,undefined,j);OSF.AppTelemetry&&OSF.AppTelemetry.initialize(f);c(f)},a;if(this._hostInfo.isDialog&&window.webkit.messageHandlers[OSF.Webkit.PopupMessageHandlerName])a=OSF.Webkit.PopupMessageHandlerName;else a=OSF.Webkit.MessageHandlerName;OSF.ScriptMessaging.GetScriptMessenger().invokeMethod(a,OSF.Webkit.MethodId.GetContext,[],b)}};OSF.ClientHostController=new OSFWebkit.WebkitHostController(OSF.ScriptMessaging.GetScriptMessenger());OSF.initializeWebkitCommon();(function(){var a=function(){var h=function(a){a&&OSF.OUtil.loadScript(a,function(){OsfMsAjaxFactory.msAjaxDebug.trace("loaded customized script:"+a)})},e,g,a,d=null,f=OSF.OUtil.parseXdmInfo();if(f){a=OSF.OUtil.getInfoItems(f);if(a&&a.length>=3){e=a[0];g=a[2];var b=OSF.OUtil.parseSerializerVersionWithGivenFragment(false,OSF._OfficeAppFactory.getWindowLocationHash());if(isNaN(b)&&OSF._OfficeAppFactory.getWindowName)b=OSF.OUtil.parseSerializerVersionFromWindowName(false,OSF._OfficeAppFactory.getWindowName());d=Microsoft.Office.Common.XdmCommunicationManager.connect(e,window.parent,g,b)}}var c=null;if(!d){try{if(window.external&&typeof window.external.getCustomizedScriptPath!=="undefined")c=window.external.getCustomizedScriptPath()}catch(i){OsfMsAjaxFactory.msAjaxDebug.trace("no script override through window.external.")}h(c)}},b=true;if(b&&!OsfMsAjaxFactory.isMsAjaxLoaded())if(!(OSF._OfficeAppFactory&&OSF._OfficeAppFactory&&OSF._OfficeAppFactory.getLoadScriptHelper&&OSF._OfficeAppFactory.getLoadScriptHelper().isScriptLoading(OSF.ConstantNames.MicrosoftAjaxId)))OsfMsAjaxFactory.loadMsAjaxFull(function(){if(OsfMsAjaxFactory.isMsAjaxLoaded())a();else throw"Not able to load MicrosoftAjax.js."});else OSF._OfficeAppFactory.getLoadScriptHelper().waitForScripts([OSF.ConstantNames.MicrosoftAjaxId],a);else a()})();Microsoft.Office.WebExtension.EventType={};OSF.EventDispatch=function(c){var b=this;b._eventHandlers={};b._objectEventHandlers={};b._queuedEventsArgs={};if(c!=null)for(var d=0;d<c.length;d++){var a=c[d],e=a=="objectDeleted"||a=="objectSelectionChanged"||a=="objectDataChanged"||a=="contentControlAdded";if(!e)b._eventHandlers[a]=[];else b._objectEventHandlers[a]={};b._queuedEventsArgs[a]=[]}};OSF.EventDispatch.prototype={getSupportedEvents:function(){var a=[];for(var b in this._eventHandlers)a.push(b);for(var b in this._objectEventHandlers)a.push(b);return a},supportsEvent:function(b){for(var a in this._eventHandlers)if(b==a)return true;for(var a in this._objectEventHandlers)if(b==a)return true;return false},hasEventHandler: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)return true;return false},hasObjectEventHandler:function(d,e,f){var c=this._objectEventHandlers[d];if(c!=null)for(var a=c[e],b=0;a!=null&&b<a.length;b++)if(a[b]===f)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},addObjectEventHandler:function(d,b,c){if(typeof c!="function")return false;var a=this._objectEventHandlers[d];if(a&&!this.hasObjectEventHandler(d,b,c)){if(a[b]==null)a[b]=[];a[b].push(c);return true}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},removeObjectEventHandler:function(d,e,f){var c=this._objectEventHandlers[d];if(c!=null)for(var a=c[e],b=0;a!=null&&b<a.length;b++)if(a[b]===f){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},clearObjectEventHandlers:function(a,b){if(this._objectEventHandlers[a]!=null&&this._objectEventHandlers[a][b]!=null){this._objectEventHandlers[a][b]=[];return true}return false},getEventHandlerCount:function(a){return this._eventHandlers[a]!=undefined?this._eventHandlers[a].length:-1},getObjectEventHandlerCount:function(a,b){if(this._objectEventHandlers[a]==null||this._objectEventHandlers[a][b]==null)return 0;return this._objectEventHandlers[a][b].length},fireEvent:function(a){if(a.type==undefined)return false;var b=a.type;if(b&&this._eventHandlers[b]){for(var d=this._eventHandlers[b],c=0;c<d.length;c++)d[c](a);return true}else return false},fireObjectEvent:function(f,a){if(a.type==undefined)return false;var b=a.type;if(b&&this._objectEventHandlers[b]){var e=this._objectEventHandlers[b],c=e[f];if(c!=null){for(var d=0;d<c.length;d++)c[d](a);return true}}return false},fireOrQueueEvent:function(c){var b=this,a=c.type;if(a&&b._eventHandlers[a]){var d=b._eventHandlers[a],e=b._queuedEventsArgs[a];if(d.length==0)e.push(c);else b.fireEvent(c);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},clearQueuedEvent:function(a){if(a&&this._eventHandlers[a]){var b=this._queuedEventsArgs[a];if(b)this._queuedEventsArgs[a]=[]}}};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureEventArgs=function(c,d,b){var h="hostPlatform",f="outlook",e="hostType",g=this,a;switch(c){case Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged:a=new OSF.DDA.DocumentSelectionChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.BindingSelectionChanged:a=new OSF.DDA.BindingSelectionChangedEventArgs(g.manufactureBinding(b,d.document),b[OSF.DDA.PropertyDescriptors.Subset]);break;case Microsoft.Office.WebExtension.EventType.BindingDataChanged:a=new OSF.DDA.BindingDataChangedEventArgs(g.manufactureBinding(b,d.document));break;case Microsoft.Office.WebExtension.EventType.SettingsChanged:a=new OSF.DDA.SettingsChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.ActiveViewChanged:a=new OSF.DDA.ActiveViewChangedEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.OfficeThemeChanged:a=new OSF.DDA.Theming.OfficeThemeChangedEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.DocumentThemeChanged:a=new OSF.DDA.Theming.DocumentThemeChangedEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.AppCommandInvoked:a=OSF.DDA.AppCommand.AppCommandInvokedEventArgs.create(b);break;case Microsoft.Office.WebExtension.EventType.ObjectDeleted:case Microsoft.Office.WebExtension.EventType.ObjectSelectionChanged:case Microsoft.Office.WebExtension.EventType.ObjectDataChanged:case Microsoft.Office.WebExtension.EventType.ContentControlAdded:a=new OSF.DDA.ObjectEventArgs(c,b[Microsoft.Office.WebExtension.Parameters.Id]);break;case Microsoft.Office.WebExtension.EventType.RichApiMessage:a=new OSF.DDA.RichApiMessageEventArgs(c,b);break;case Microsoft.Office.WebExtension.EventType.DataNodeInserted:a=new OSF.DDA.NodeInsertedEventArgs(g.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.NewNode]),b[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeReplaced:a=new OSF.DDA.NodeReplacedEventArgs(g.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.OldNode]),g.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.NewNode]),b[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeDeleted:a=new OSF.DDA.NodeDeletedEventArgs(g.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.OldNode]),g.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.NextSiblingNode]),b[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.TaskSelectionChanged:a=new OSF.DDA.TaskSelectionChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.ResourceSelectionChanged:a=new OSF.DDA.ResourceSelectionChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.ViewSelectionChanged:a=new OSF.DDA.ViewSelectionChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.DialogMessageReceived:a=new OSF.DDA.DialogEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived:a=new OSF.DDA.DialogParentEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.ItemChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f){a=new OSF.DDA.OlkItemSelectedChangedEventArgs(b);d.initialize(a["initialData"]);(OSF._OfficeAppFactory.getHostInfo()[h]=="win32"||OSF._OfficeAppFactory.getHostInfo()[h]=="mac")&&d.setCurrentItemNumber(a["itemNumber"].itemNumber)}else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.RecipientsChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)a=new OSF.DDA.OlkRecipientsChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.AppointmentTimeChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)a=new OSF.DDA.OlkAppointmentTimeChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.RecurrenceChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)a=new OSF.DDA.OlkRecurrenceChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.AttachmentsChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)a=new OSF.DDA.OlkAttachmentsChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.EnhancedLocationsChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)a=new OSF.DDA.OlkEnhancedLocationsChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.InfobarClicked:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)a=new OSF.DDA.OlkInfobarClickedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c))}return a};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.DialogShownStatus={hasDialogShown:false,isWindowDialog:false};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",MessageChild:"messageChild",SendMessage:"sendMessage",AddMessageHandler:"addEventHandler"});OSF.DDA.UI.ParentUI=function(){var a;if(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived!=null)a=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived,Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived]);else a=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived]);var c=OSF.DDA.AsyncMethodNames.DisplayDialogAsync.displayName,b=this;!b[c]&&OSF.OUtil.defineEnumerableProperty(b,c,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.OpenDialog];c(arguments,a,b)}});OSF.OUtil.finalizeProperties(this)};OSF.DDA.UI.ChildUI=function(d){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)}});var c=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;!a[c]&&typeof OSF.DialogParentMessageEventDispatch!="undefined"&&OSF.DDA.DispIdHost.addEventSupport(a,OSF.DialogParentMessageEventDispatch,d);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.DialogParentEventArgs=function(a){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived},message:{value:a[OSF.DDA.PropertyDescriptors.MessageContent]},origin:{value:a[OSF.DDA.PropertyDescriptors.MessageOrigin]}})};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.DisplayInIframe,value:{types:["boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.HideTitle,value:{types:["boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.PromptBeforeOpen,value:{types:["boolean"],defaultValue:true}},{name:Microsoft.Office.WebExtension.Parameters.EnforceAppDomain,value:{types:["boolean"],defaultValue:true}},{name:Microsoft.Office.WebExtension.Parameters.UrlNoHostInfo,value:{types:["boolean"],defaultValue:false}}],privateStateCallbacks:[],onSucceeded:function(c){var h=c[Microsoft.Office.WebExtension.Parameters.Id],b=c[Microsoft.Office.WebExtension.Parameters.Data],a=new OSF.DialogHandler,e=OSF.DDA.AsyncMethodNames.CloseAsync.displayName;OSF.OUtil.defineEnumerableProperty(a,e,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.CloseDialog];c(arguments,h,b,a)}});var g=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;OSF.OUtil.defineEnumerableProperty(a,g,{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)}});if(OSF.DDA.UI.EnableSendMessageDialogAPI===true){var f=OSF.DDA.SyncMethodNames.SendMessage.displayName;OSF.OUtil.defineEnumerableProperty(a,f,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.SendMessage];return c(arguments,b,a)}})}if(OSF.DDA.UI.EnableMessageChildDialogAPI===true){var d=OSF.DDA.SyncMethodNames.MessageChild.displayName;OSF.OUtil.defineEnumerableProperty(a,d,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.SendMessage];return c(arguments,b,a)}})}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.UseDeviceIndependentPixels]&&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.UseDeviceIndependentPixels]&&a[Microsoft.Office.WebExtension.Parameters.Height]>100)a[Microsoft.Office.WebExtension.Parameters.Height]=99;if(!a[Microsoft.Office.WebExtension.Parameters.RequireHTTPs])a[Microsoft.Office.WebExtension.Parameters.RequireHTTPs]=true;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.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.SendMessage,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.MessageContent,types:["string"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.TargetOrigin,value:{types:["string"],defaultValue:""}}],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.openDialog=function(a){try{a.onCalling&&a.onCalling();var c=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(true,a);OSF.ClientHostController.openDialog(a.dispId,a.targetId,function(c,b){a.onEvent&&a.onEvent(b);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(a.dispId)},c)}catch(b){OSF.DDA.SafeArray.Delegate._onException(b,a)}};OSF.DDA.SafeArray.Delegate.closeDialog=function(a){a.onCalling&&a.onCalling();var c=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(false,a);try{OSF.ClientHostController.closeDialog(a.dispId,a.targetId,c)}catch(b){OSF.DDA.SafeArray.Delegate._onException(b,a)}};OSF.DDA.SafeArray.Delegate.messageParent=function(a){try{a.onCalling&&a.onCalling();var d=(new Date).getTime(),b=OSF.ClientHostController.messageParent(a.hostCallArgs);a.onReceiving&&a.onReceiving();OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(a.dispId,a.hostCallArgs,Math.abs((new Date).getTime()-d),b);return b}catch(c){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(c)}};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});OSF.DDA.SafeArray.Delegate.sendMessage=function(a){try{a.onCalling&&a.onCalling();var d=(new Date).getTime(),c=OSF.ClientHostController.sendMessage(a.hostCallArgs);a.onReceiving&&a.onReceiving();return c}catch(b){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(b)}};OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{DialogParentMessageReceivedEvent:"DialogParentMessageReceivedEvent"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{DialogParentMessageReceived:"dialogParentMessageReceived",DialogParentEventReceived:"dialogParentEventReceived"});OSF.DialogParentMessageEventDispatch=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived,Microsoft.Office.WebExtension.EventType.DialogParentEventReceived]);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DialogParentMessageReceivedEvent,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.MessageType,value:0},{name:OSF.DDA.PropertyDescriptors.MessageContent,value:1},{name:OSF.DDA.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:true});OSF.DDA.UI.EnableMessageChildDialogAPI=true;OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ItemChanged:"olkItemSelectedChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkItemSelectedData:"OlkItemSelectedData"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{RecipientsChanged:"olkRecipientsChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkRecipientsData:"OlkRecipientsData"});OSF.DDA.OlkRecipientsChangedEventArgs=function(b){var a=b[OSF.DDA.EventDescriptors.OlkRecipientsData][0];if(a==="")a=null;OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.RecipientsChanged},changedRecipientFields:{value:JSON.parse(a)}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{AppointmentTimeChanged:"olkAppointmentTimeChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkAppointmentTimeChangedData:"OlkAppointmentTimeChangedData"});OSF.DDA.OlkAppointmentTimeChangedEventArgs=function(e){var d=e[OSF.DDA.EventDescriptors.OlkAppointmentTimeChangedData][0],a,b;try{var c=JSON.parse(d);a=(new Date(c.start)).toISOString();b=(new Date(c.end)).toISOString()}catch(f){a=null;b=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.AppointmentTimeChanged},start:{value:a},end:{value:b}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{RecurrenceChanged:"olkRecurrenceChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkRecurrenceData:"OlkRecurrenceData"});OSF.DDA.OlkRecurrenceChangedEventArgs=function(c){var a=null;try{var b=JSON.parse(c[OSF.DDA.EventDescriptors.OlkRecurrenceChangedData][0]);if(b.recurrence!=null){a=JSON.parse(b.recurrence);a=Microsoft.Office.WebExtension.OutlookBase.SeriesTimeJsonConverter(a)}}catch(d){a=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.RecurrenceChanged},recurrence:{value:a}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{OfficeThemeChanged:"officeThemeChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OfficeThemeData:"OfficeThemeData"});OSF.OUtil.setNamespace("Theming",OSF.DDA);OSF.DDA.Theming.OfficeThemeChangedEventArgs=function(d){var b=JSON.parse(d.OfficeThemeData[0]),a={};for(var c in b)a[c]=OSF.OUtil.convertIntToCssHexColor(b[c]);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.OfficeThemeChanged},officeTheme:{value:a}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{AttachmentsChanged:"olkAttachmentsChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkAttachmentsChangedData:"OlkAttachmentsChangedData"});OSF.DDA.OlkAttachmentsChangedEventArgs=function(d){var b,a;try{var c=JSON.parse(d[OSF.DDA.EventDescriptors.OlkAttachmentsChangedData][0]);b=c.attachmentStatus;a=Microsoft.Office.WebExtension.OutlookBase.CreateAttachmentDetails(c.attachmentDetails)}catch(e){b=null;a=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.AttachmentsChanged},attachmentStatus:{value:b},attachmentDetails:{value:a}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{EnhancedLocationsChanged:"olkEnhancedLocationsChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkEnhancedLocationsChangedData:"OlkEnhancedLocationsChangedData"});OSF.DDA.OlkEnhancedLocationsChangedEventArgs=function(c){var a;try{var b=JSON.parse(c[OSF.DDA.EventDescriptors.OlkEnhancedLocationsChangedData][0]);a=b.enhancedLocations}catch(d){a=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.EnhancedLocationsChanged},enhancedLocations:{value:a}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{InfobarClicked:"olkInfobarClicked"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkInfobarClickedData:"OlkInfobarClickedData"});OSF.DDA.OlkInfobarClickedEventArgs=function(b){var a;try{a=b[OSF.DDA.EventDescriptors.OlkInfobarClickedData][0]}catch(c){a=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.InfobarClicked},infobarDetails:{value:a}})};OSF.DDA.OlkItemSelectedChangedEventArgs=function(b){var a=b[OSF.DDA.EventDescriptors.OlkItemSelectedData][0];if(a==="")a=null;OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.ItemChanged},initialData:{value:JSON.parse(a)},itemNumber:{value:JSON.parse(b[OSF.DDA.EventDescriptors.OlkItemSelectedData][1])}})};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkItemSelectedChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkItemSelectedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkRecipientsChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkRecipientsData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkAppointmentTimeChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkAppointmentTimeChangedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkRecurrenceChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkRecurrenceChangedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OfficeThemeData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkAttachmentsChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkAttachmentsChangedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkEnhancedLocationsChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkEnhancedLocationsChangedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkInfobarClickedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkInfobarClickedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:true});var OSFLog;(function(g){var e="ResponseTime",d="Message",c="SessionId",b="CorrelationId",a=true,f=function(){function b(a){this._table=a;this._fields={}}Object.defineProperty(b.prototype,"Fields",{"get":function(){return this._fields},enumerable:a,configurable:a});Object.defineProperty(b.prototype,"Table",{"get":function(){return this._table},enumerable:a,configurable:a});b.prototype.SerializeFields=function(){};b.prototype.SetSerializedField=function(b,a){if(typeof a!=="undefined"&&a!==null)this._serializedFields[b]=a.toString()};b.prototype.SerializeRow=function(){var a=this;a._serializedFields={};a.SetSerializedField("Table",a._table);a.SerializeFields();return JSON.stringify(a._serializedFields)};return b}();g.BaseUsageData=f;var i=function(v){var u="IsFromWacAutomation",t="WacHostEnvironment",s="HostJSVersion",r="OfficeJSVersion",q="DocUrl",p="AppSizeHeight",o="AppSizeWidth",n="ClientId",m="HostVersion",l="Host",k="UserId",j="Browser",i="AssetId",h="AppURL",g="AppInstanceId",f="AppId";__extends(e,v);function e(){return v.call(this,"AppActivated")||this}Object.defineProperty(e.prototype,b,{"get":function(){return this.Fields[b]},"set":function(a){this.Fields[b]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,c,{"get":function(){return this.Fields[c]},"set":function(a){this.Fields[c]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,f,{"get":function(){return this.Fields[f]},"set":function(a){this.Fields[f]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,g,{"get":function(){return this.Fields[g]},"set":function(a){this.Fields[g]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,h,{"get":function(){return this.Fields[h]},"set":function(a){this.Fields[h]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,i,{"get":function(){return this.Fields[i]},"set":function(a){this.Fields[i]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,j,{"get":function(){return this.Fields[j]},"set":function(a){this.Fields[j]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,k,{"get":function(){return this.Fields[k]},"set":function(a){this.Fields[k]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,l,{"get":function(){return this.Fields[l]},"set":function(a){this.Fields[l]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,m,{"get":function(){return this.Fields[m]},"set":function(a){this.Fields[m]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,n,{"get":function(){return this.Fields[n]},"set":function(a){this.Fields[n]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,o,{"get":function(){return this.Fields[o]},"set":function(a){this.Fields[o]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,p,{"get":function(){return this.Fields[p]},"set":function(a){this.Fields[p]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,d,{"get":function(){return this.Fields[d]},"set":function(a){this.Fields[d]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,q,{"get":function(){return this.Fields[q]},"set":function(a){this.Fields[q]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,r,{"get":function(){return this.Fields[r]},"set":function(a){this.Fields[r]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,s,{"get":function(){return this.Fields[s]},"set":function(a){this.Fields[s]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,t,{"get":function(){return this.Fields[t]},"set":function(a){this.Fields[t]=a},enumerable:a,configurable:a});Object.defineProperty(e.prototype,u,{"get":function(){return this.Fields[u]},"set":function(a){this.Fields[u]=a},enumerable:a,configurable:a});e.prototype.SerializeFields=function(){var a=this;a.SetSerializedField(b,a.CorrelationId);a.SetSerializedField(c,a.SessionId);a.SetSerializedField(f,a.AppId);a.SetSerializedField(g,a.AppInstanceId);a.SetSerializedField(h,a.AppURL);a.SetSerializedField(i,a.AssetId);a.SetSerializedField(j,a.Browser);a.SetSerializedField(k,a.UserId);a.SetSerializedField(l,a.Host);a.SetSerializedField(m,a.HostVersion);a.SetSerializedField(n,a.ClientId);a.SetSerializedField(o,a.AppSizeWidth);a.SetSerializedField(p,a.AppSizeHeight);a.SetSerializedField(d,a.Message);a.SetSerializedField(q,a.DocUrl);a.SetSerializedField(r,a.OfficeJSVersion);a.SetSerializedField(s,a.HostJSVersion);a.SetSerializedField(t,a.WacHostEnvironment);a.SetSerializedField(u,a.IsFromWacAutomation)};return e}(f);g.AppActivatedUsageData=i;var k=function(h){var f="StartTime",d="ScriptId";__extends(g,h);function g(){return h.call(this,"ScriptLoad")||this}Object.defineProperty(g.prototype,b,{"get":function(){return this.Fields[b]},"set":function(a){this.Fields[b]=a},enumerable:a,configurable:a});Object.defineProperty(g.prototype,c,{"get":function(){return this.Fields[c]},"set":function(a){this.Fields[c]=a},enumerable:a,configurable:a});Object.defineProperty(g.prototype,d,{"get":function(){return this.Fields[d]},"set":function(a){this.Fields[d]=a},enumerable:a,configurable:a});Object.defineProperty(g.prototype,f,{"get":function(){return this.Fields[f]},"set":function(a){this.Fields[f]=a},enumerable:a,configurable:a});Object.defineProperty(g.prototype,e,{"get":function(){return this.Fields[e]},"set":function(a){this.Fields[e]=a},enumerable:a,configurable:a});g.prototype.SerializeFields=function(){var a=this;a.SetSerializedField(b,a.CorrelationId);a.SetSerializedField(c,a.SessionId);a.SetSerializedField(d,a.ScriptId);a.SetSerializedField(f,a.StartTime);a.SetSerializedField(e,a.ResponseTime)};return g}(f);g.ScriptLoadUsageData=k;var l=function(j){var h="CloseMethod",g="OpenTime",f="AppSizeFinalHeight",e="AppSizeFinalWidth",d="FocusTime";__extends(i,j);function i(){return j.call(this,"AppClosed")||this}Object.defineProperty(i.prototype,b,{"get":function(){return this.Fields[b]},"set":function(a){this.Fields[b]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,c,{"get":function(){return this.Fields[c]},"set":function(a){this.Fields[c]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,d,{"get":function(){return this.Fields[d]},"set":function(a){this.Fields[d]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,e,{"get":function(){return this.Fields[e]},"set":function(a){this.Fields[e]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,f,{"get":function(){return this.Fields[f]},"set":function(a){this.Fields[f]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,g,{"get":function(){return this.Fields[g]},"set":function(a){this.Fields[g]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,h,{"get":function(){return this.Fields[h]},"set":function(a){this.Fields[h]=a},enumerable:a,configurable:a});i.prototype.SerializeFields=function(){var a=this;a.SetSerializedField(b,a.CorrelationId);a.SetSerializedField(c,a.SessionId);a.SetSerializedField(d,a.FocusTime);a.SetSerializedField(e,a.AppSizeFinalWidth);a.SetSerializedField(f,a.AppSizeFinalHeight);a.SetSerializedField(g,a.OpenTime);a.SetSerializedField(h,a.CloseMethod)};return i}(f);g.AppClosedUsageData=l;var m=function(j){var h="ErrorType",g="Parameters",f="APIID",d="APIType";__extends(i,j);function i(){return j.call(this,"APIUsage")||this}Object.defineProperty(i.prototype,b,{"get":function(){return this.Fields[b]},"set":function(a){this.Fields[b]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,c,{"get":function(){return this.Fields[c]},"set":function(a){this.Fields[c]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,d,{"get":function(){return this.Fields[d]},"set":function(a){this.Fields[d]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,f,{"get":function(){return this.Fields[f]},"set":function(a){this.Fields[f]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,g,{"get":function(){return this.Fields[g]},"set":function(a){this.Fields[g]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,e,{"get":function(){return this.Fields[e]},"set":function(a){this.Fields[e]=a},enumerable:a,configurable:a});Object.defineProperty(i.prototype,h,{"get":function(){return this.Fields[h]},"set":function(a){this.Fields[h]=a},enumerable:a,configurable:a});i.prototype.SerializeFields=function(){var a=this;a.SetSerializedField(b,a.CorrelationId);a.SetSerializedField(c,a.SessionId);a.SetSerializedField(d,a.APIType);a.SetSerializedField(f,a.APIID);a.SetSerializedField(g,a.Parameters);a.SetSerializedField(e,a.ResponseTime);a.SetSerializedField(h,a.ErrorType)};return i}(f);g.APIUsageUsageData=m;var h=function(g){var e="SuccessCode";__extends(f,g);function f(){return g.call(this,"AppInitialization")||this}Object.defineProperty(f.prototype,b,{"get":function(){return this.Fields[b]},"set":function(a){this.Fields[b]=a},enumerable:a,configurable:a});Object.defineProperty(f.prototype,c,{"get":function(){return this.Fields[c]},"set":function(a){this.Fields[c]=a},enumerable:a,configurable:a});Object.defineProperty(f.prototype,e,{"get":function(){return this.Fields[e]},"set":function(a){this.Fields[e]=a},enumerable:a,configurable:a});Object.defineProperty(f.prototype,d,{"get":function(){return this.Fields[d]},"set":function(a){this.Fields[d]=a},enumerable:a,configurable:a});f.prototype.SerializeFields=function(){var a=this;a.SetSerializedField(b,a.CorrelationId);a.SetSerializedField(c,a.SessionId);a.SetSerializedField(e,a.SuccessCode);a.SetSerializedField(d,a.Message)};return f}(f);g.AppInitializationUsageData=h;var j=function(h){var d="wacDomain",c="hostPlatform",b="hostType",f="instanceId",e="isWacKnownHost";__extends(g,h);function g(){return h.call(this,"CheckWACHost")||this}Object.defineProperty(g.prototype,e,{"get":function(){return this.Fields[e]},"set":function(a){this.Fields[e]=a},enumerable:a,configurable:a});Object.defineProperty(g.prototype,f,{"get":function(){return this.Fields[f]},"set":function(a){this.Fields[f]=a},enumerable:a,configurable:a});Object.defineProperty(g.prototype,b,{"get":function(){return this.Fields[b]},"set":function(a){this.Fields[b]=a},enumerable:a,configurable:a});Object.defineProperty(g.prototype,c,{"get":function(){return this.Fields[c]},"set":function(a){this.Fields[c]=a},enumerable:a,configurable:a});Object.defineProperty(g.prototype,d,{"get":function(){return this.Fields[d]},"set":function(a){this.Fields[d]=a},enumerable:a,configurable:a});g.prototype.SerializeFields=function(){var a=this;a.SetSerializedField(e,a.isWacKnownHost);a.SetSerializedField(f,a.instanceId);a.SetSerializedField(b,a.hostType);a.SetSerializedField(c,a.hostPlatform);a.SetSerializedField(d,a.wacDomain)};return g}(f);g.CheckWACHostUsageData=j})(OSFLog||(OSFLog={}));var Logger;(function(a){"use strict";var e;(function(a){a[a["info"]=0]="info";a[a["warning"]=1]="warning";a[a["error"]=2]="error"})(e=a.TraceLevel||(a.TraceLevel={}));var f;(function(a){a[a["none"]=0]="none";a[a["flush"]=1]="flush"})(f=a.SendFlag||(a.SendFlag={}));function b(){}a.allowUploadingData=b;function g(){}a.sendLog=g;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(w){var e="undefined",f="hostPlatform",h="hostType",j="ResponseTime",g="double",a=false,d="int64",b="string",c=true,l={name:"AppActivated",enabled:c,critical:c,points:[{name:"Browser",type:b},{name:"Message",type:b},{name:"Host",type:b},{name:"AppSizeWidth",type:d},{name:"AppSizeHeight",type:d},{name:"IsFromWacAutomation",type:b}]},n={name:"ScriptLoad",enabled:c,critical:a,points:[{name:"ScriptId",type:b},{name:"StartTime",type:g},{name:j,type:g}]},v=o(),s={name:"APIUsage",enabled:v,critical:a,points:[{name:"APIType",type:b},{name:"APIID",type:d},{name:"Parameters",type:b},{name:j,type:d},{name:"ErrorType",type:d}]},k={name:"AppInitialization",enabled:c,critical:a,points:[{name:"SuccessCode",type:d},{name:"Message",type:b}]},p={name:"AppClosed",enabled:c,critical:a,points:[{name:"FocusTime",type:d},{name:"AppSizeFinalWidth",type:d},{name:"AppSizeFinalHeight",type:d},{name:"OpenTime",type:d}]},m={name:"CheckWACHost",enabled:c,critical:a,points:[{name:"isWacKnownHost",type:d},{name:"solutionId",type:b},{name:h,type:b},{name:f,type:b},{name:"correlationId",type:b}]},u=[l,n,s,k,p,m];function t(a,e){var f=e.rename===undefined?e.name:e.rename,h=e.type,c=undefined;switch(h){case b:c=oteljs.makeStringDataField(f,a);break;case g:if(typeof a===b)a=parseFloat(a);c=oteljs.makeDoubleDataField(f,a);break;case d:if(typeof a===b)a=parseInt(a);c=oteljs.makeInt64DataField(f,a);break;case "boolean":if(typeof a===b)a=a==="true";c=oteljs.makeBooleanDataField(f,a)}return c}function i(d){for(var a=0,b=u;a<b.length;a++){var c=b[a];if(c.name===d)return c}return undefined}function x(c){var b=i(c);if(b===undefined)return a;return b.enabled}function o(){if(!OSF._OfficeAppFactory||!OSF._OfficeAppFactory.getHostInfo)return a;var b=OSF._OfficeAppFactory.getHostInfo();if(!b)return a;switch(b[h]){case "outlook":switch(b[f]){case "mac":case "web":return c;default:return a}default:return a}}function q(e,l){var a=i(e);if(a===undefined)return undefined;for(var d=[],c=0,j=a.points;c<j.length;c++){var g=j[c],n=g.name,h=l[n];if(h===undefined)continue;var f=t(h,g);f!==undefined&&d.push(f)}var b={dataCategories:oteljs.DataCategories.ProductServiceUsage};if(a.critical)b.samplingPolicy=oteljs.SamplingPolicy.CriticalBusinessImpact;b.diagnosticLevel=oteljs.DiagnosticLevel.NecessaryServiceDataEvent;var k="Office.Extensibility.OfficeJs."+e+"X",m={eventName:k,dataFields:d,eventFlags:b};return m}function r(a,b){if(x(a))typeof OTel!==e&&OTel.OTelLogger.onTelemetryLoaded(function(){var c=q(a,b);if(c===undefined)return;Microsoft.Office.WebExtension.sendTelemetryEvent(c)})}var y=function(){function b(){}b.prototype.getAriaCDNLocation=function(){return OSF._OfficeAppFactory.getLoadScriptHelper().getOfficeJsBasePath()+"ariatelemetry/aria-web-telemetry.js"};b.getInstance=function(){if(b.AriaLoggerObj===undefined)b.AriaLoggerObj=new b;return b.AriaLoggerObj};b.prototype.isIUsageData=function(a){return a["Fields"]!==undefined};b.prototype.shouldSendDirectToAria=function(f,h){var k=10,i=[16,0,11601],j=[16,28],d;if(!f)return a;else if(f.toLowerCase()==="win32")d=i;else if(f.toLowerCase()==="mac")d=j;else return c;if(!h)return a;for(var g=h.split("."),b=0;b<d.length&&b<g.length;b++){var e=parseInt(g[b],k);if(isNaN(e))return a;if(e<d[b])return c;if(e>d[b])return a}return a};b.prototype.isDirectToAriaEnabled=function(){var a=this;if(a.EnableDirectToAria===undefined||a.EnableDirectToAria===null){var c=void 0,b=void 0;if(OSF._OfficeAppFactory&&OSF._OfficeAppFactory.getHostInfo)c=OSF._OfficeAppFactory.getHostInfo()[f];if(window.external&&typeof window.external.GetContext!==e&&typeof window.external.GetContext().GetHostFullVersion!==e)b=window.external.GetContext().GetHostFullVersion();a.EnableDirectToAria=a.shouldSendDirectToAria(c,b)}return a.EnableDirectToAria};b.prototype.sendTelemetry=function(c,a){var e=1e3,d=b.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 b=new AWTEventProperties;b.setName("Office.Extensibility.OfficeJS."+c);for(var d in a)d.toLowerCase()!=="table"&&b.setProperty(d,a[d]);var f=new Date;b.setProperty("Date",f.toISOString());this.ALogger.logEvent(b)}catch(g){}},e);b.EnableSendingTelemetryWithOTel&&r(c,a)};b.prototype.logData=function(a){if(this.isIUsageData(a))this.sendTelemetry(a["Table"],a["Fields"]);else this.sendTelemetry(a["Table"],a)};b.EnableSendingTelemetryWithOTel=c;b.EnableSendingTelemetryWithLegacyAria=a;return b}();w.AriaLogger=y})(OSFAriaLogger||(OSFAriaLogger={}));var OSFAppTelemetry;(function(d){var e=false,b=null,f=true,c="";"use strict";var a,h=OSF.OUtil.Guid.generateNewGuid(),k=c,w=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i"),q="PRIVATE";d.enableTelemetry=f;var r=function(){function a(){}return a}();d.AppInfo=r;var j=function(){function a(b,a){this.name=b;this.handler=a}return a}(),n=function(){function a(){this.clientIDKey="Office API client";this.logIdSetKey="Office App Log Id Set"}a.prototype.getClientId=function(){var b=this,a=b.getValue(b.clientIDKey);if(!a||a.length<=0||a.length>40){a=OSF.OUtil.Guid.generateNewGuid();b.setValue(b.clientIDKey,a)}return a};a.prototype.saveLog=function(d,e){var b=this,a=b.getValue(b.logIdSetKey);a=(a&&a.length>0?a+";":c)+d;b.setValue(b.logIdSetKey,a);b.setValue(d,e)};a.prototype.enumerateLog=function(c,e){var a=this,d=a.getValue(a.logIdSetKey);if(d){var f=d.split(";");for(var h in f){var b=f[h],g=a.getValue(b);if(g){c&&c(b,g);e&&a.remove(b)}}e&&a.remove(a.logIdSetKey)}};a.prototype.getValue=function(d){var a=OSF.OUtil.getLocalStorage(),b=c;if(a)b=a.getItem(d);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}(),i=function(){function a(){}a.prototype.LogData=function(a){if(!d.enableTelemetry)return;try{OSFAriaLogger.AriaLogger.getInstance().logData(a)}catch(b){}};a.prototype.LogRawData=function(a){if(!d.enableTelemetry)return;try{OSFAriaLogger.AriaLogger.getInstance().logData(JSON.parse(a))}catch(b){}};return a}();function g(a){if(a)a=a.replace(/[{}]/g,c).toLowerCase();return a||c}function G(i){if(!d.enableTelemetry)return;if(a)return;a=new r;if(i.get_hostFullVersion())a.hostVersion=i.get_hostFullVersion();else a.hostVersion=i.get_appVersion();a.appId=m()?i.get_id():q;a.browser=window.navigator.userAgent;a.correlationId=g(i.get_correlationId());a.clientId=(new n).getClientId();a.appInstanceId=i.get_appInstanceId();if(a.appInstanceId){a.appInstanceId=g(a.appInstanceId);a.appInstanceId=o(i.get_id(),a.appInstanceId)}a.message=i.get_hostCustomMessage();a.officeJSVersion=OSF.ConstantNames.FileVersion;a.hostJSVersion="16.0.14419.10000";if(i._wacHostEnvironment)a.wacHostEnvironment=i._wacHostEnvironment;if(i._isFromWacAutomation!==undefined&&i._isFromWacAutomation!==b)a.isFromWacAutomation=i._isFromWacAutomation.toString().toLowerCase();var l=i.get_docUrl();a.docUrl=w.test(l)?l:c;var k=location.href;if(k)k=k.split("?")[0].split("#")[0];a.appURL=c;(function(i,a){var e,h,d;a.assetId=c;a.userId=c;try{e=decodeURIComponent(i);h=new DOMParser;d=h.parseFromString(e,"text/xml");var f=d.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),g=d.getElementsByTagName("t")[0].attributes.getNamedItem("oid");if(f&&f.nodeValue)a.userId=f.nodeValue;else if(g&&g.nodeValue)a.userId=g.nodeValue;a.assetId=d.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}catch(j){}finally{e=b;d=b;h=b}})(i.get_eToken(),a);a.sessionId=h;typeof OTel!=="undefined"&&OTel.OTelLogger.initialize(a);(function(){var m=new Date,c=b,i=0,l=e,g=function(){if(document.hasFocus()){if(c==b)c=new Date}else if(c){i+=Math.abs((new Date).getTime()-c.getTime());c=b}},a=[];a.push(new j("focus",g));a.push(new j("blur",g));a.push(new j("focusout",g));a.push(new j("focusin",g));var k=function(){for(var e=0;e<a.length;e++)OSF.OUtil.removeEventListener(window,a[e].name,a[e].handler);a.length=0;if(!l){if(document.hasFocus()&&c){i+=Math.abs((new Date).getTime()-c.getTime());c=b}d.onAppClosed(Math.abs((new Date).getTime()-m.getTime()),i);l=f}};a.push(new j("beforeunload",k));a.push(new j("unload",k));for(var h=0;h<a.length;h++)OSF.OUtil.addEventListener(window,a[h].name,a[h].handler);g()})();d.onAppActivated()}d.initialize=G;function x(){if(!a)return;(new n).enumerateLog(function(b,a){return (new i).LogRawData(a)},f);var d=new OSFLog.AppActivatedUsageData;d.SessionId=h;d.AppId=a.appId;d.AssetId=a.assetId;d.AppURL=c;d.UserId=c;d.ClientId=a.clientId;d.Browser=a.browser;d.HostVersion=a.hostVersion;d.CorrelationId=g(a.correlationId);d.AppSizeWidth=window.innerWidth;d.AppSizeHeight=window.innerHeight;d.AppInstanceId=a.appInstanceId;d.Message=a.message;d.DocUrl=a.docUrl;d.OfficeJSVersion=a.officeJSVersion;d.HostJSVersion=a.hostJSVersion;if(a.wacHostEnvironment)d.WacHostEnvironment=a.wacHostEnvironment;if(a.isFromWacAutomation!==undefined&&a.isFromWacAutomation!==b)d.IsFromWacAutomation=a.isFromWacAutomation;(new i).LogData(d)}d.onAppActivated=x;function D(e,d,c,b){var a=new OSFLog.ScriptLoadUsageData;a.CorrelationId=g(b);a.SessionId=h;a.ScriptId=e;a.StartTime=d;a.ResponseTime=c;(new i).LogData(a)}d.onScriptDone=D;function H(c,d,f,e,j){if(!a)return;if(!B()||!t(d,c))return;var b=new OSFLog.APIUsageUsageData;b.CorrelationId=g(k);b.SessionId=h;b.APIType=c;b.APIID=d;b.Parameters=f;b.ResponseTime=e;b.ErrorType=j;(new i).LogData(b)}d.onCallDone=H;function C(h,d,f,g){var a=b;if(d)if(typeof d=="number")a=String(d);else if(typeof d==="object")for(var e in d){if(a!==b)a+=",";else a=c;if(typeof d[e]=="number")a+=String(d[e])}else a=c;OSF.AppTelemetry.onCallDone("method",h,a,f,g)}d.onMethodDone=C;function z(b,a){OSF.AppTelemetry.onCallDone("property",-1,b,a)}d.onPropertyDone=z;function y(b,e,f,d){var a=new OSFLog.CheckWACHostUsageData;a.isWacKnownHost=b;a.instanceId=e;a.hostType=f;a.hostPlatform=d;a.wacDomain=c;(new i).LogData(a)}d.onCheckWACHost=y;function F(c,a){OSF.AppTelemetry.onCallDone("event",c,b,0,a)}d.onEventDone=F;function A(d,e,a,c){OSF.AppTelemetry.onCallDone(d?"registerevent":"unregisterevent",e,b,a,c)}d.onRegisterDone=A;function E(d,c){if(!a)return;var b=new OSFLog.AppClosedUsageData;b.CorrelationId=g(k);b.SessionId=h;b.FocusTime=c;b.OpenTime=d;b.AppSizeFinalWidth=window.innerWidth;b.AppSizeFinalHeight=window.innerHeight;(new n).saveLog(h,b.SerializeRow())}d.onAppClosed=E;function s(a){k=g(a)}d.setOsfControlAppCorrelationId=s;function l(b,c){var a=new OSFLog.AppInitializationUsageData;a.CorrelationId=g(k);a.SessionId=h;a.SuccessCode=b?1:0;a.Message=c;(new i).LogData(a)}d.doAppInitializationLogging=l;function u(a){l(e,a)}d.logAppCommonMessage=u;function v(a){l(f,a)}d.logAppException=v;function B(){if(!OSF._OfficeAppFactory||!OSF._OfficeAppFactory.getHostInfo)return e;var a=OSF._OfficeAppFactory.getHostInfo();if(!a)return e;switch(a["hostType"]){case "outlook":switch(a["hostPlatform"]){case "mac":case "web":return f;default:return e}default:return e}}function t(b,a){if(a==="method")switch(b){case 3:case 4:case 38:case 37:case 10:case 12:return f;default:return e}return e}function m(){var b=(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.PublicAddin)!=0;if(b)return b;if(!a)return e;var c=OSF._OfficeAppFactory.getHostInfo().hostPlatform,d=a.hostVersion;return p(c,d)}d.canSendAddinId=m;function o(b,a){if(!m()&&a===b)return q;return a}d.getCompliantAppInstanceId=o;function p(d,j){var c=e,i=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/,a=i.exec(j);if(a){var b=parseInt(a[1]),h=parseInt(a[2]),g=parseInt(a[3]);if(d=="win32"){if(b<16||b==16&&g<14225)c=f}else if(d=="mac")if(b<16||b==16&&(h<52||h==52&&g<808))c=f}return c}d._isComplianceExceptedHost=p;OSF.AppTelemetry=d})(OSFAppTelemetry||(OSFAppTelemetry={}));(function(a){var b;(function(b){var e=function(){var g="object",h="function",f="string",d=null;function e(){var a=this,b=a;a._pseudoDocument=d;a._eventDispatch=d;a._processAppCommandInvocation=function(a){var c=b._verifyManifestCallback(a.callbackName);if(c.errorCode!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){b._invokeAppCommandCompletedMethod(a.appCommandId,c.errorCode,"");return}var d=b._constructEventObjectForCallback(a);if(d)window.setTimeout(function(){c.callback(d)},0);else b._invokeAppCommandCompletedMethod(a.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,"")}}e.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:[f]},{name:Microsoft.Office.WebExtension.Parameters.Status,types:["number"]},{name:Microsoft.Office.WebExtension.Parameters.AppCommandInvocationCompletedData,types:[f]}]});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};e.prototype.initializeAndChangeOnce=function(c){var a=this;b.registerDdaFacade();a._pseudoDocument={};OSF.DDA.DispIdHost.addAsyncMethods(a._pseudoDocument,[OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync]);a._eventDispatch=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.AppCommandInvoked]);var d=function(a){if(c)if(a.status=="succeeded")c(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess);else c(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.DispIdHost.addEventSupport(a._pseudoDocument,a._eventDispatch);a._pseudoDocument.addHandlerAsync(Microsoft.Office.WebExtension.EventType.AppCommandInvoked,a._processAppCommandInvocation,d)};e.prototype._verifyManifestCallback=function(a){var b={callback:d,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCallback};a=a.trim();try{var c=this._getCallbackFunc(a);if(typeof c!=h)return b}catch(e){return b}return {callback:c,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}};e.prototype._getCallbackFuncFromWindow=function(f){for(var a=f.split("."),b=window,c=0;c<a.length-1;c++)if(b[a[c]]&&(typeof b[a[c]]==g||typeof b[a[c]]==h))b=b[a[c]];else return d;var e=b[a[a.length-1]];return e};e.prototype._getCallbackFuncFromActionAssociateTable=function(b){var a=b.toUpperCase();return Office.actions._association.mappings[a]};e.prototype._getCallbackFunc=function(b){var a=this._getCallbackFuncFromWindow(b);if(!a)a=this._getCallbackFuncFromActionAssociateTable(b);return a};e.prototype._invokeAppCommandCompletedMethod=function(a,b,c){this._pseudoDocument.appCommandInvocationCompletedAsync(a,b,c)};e.prototype._constructEventObjectForCallback=function(b){var f=this,a=new c;try{var e=JSON.parse(b.eventObjStr);this._translateEventObjectInternal(e,a);Object.defineProperty(a,"completed",{value:function(c){a.completedContext=c;var d=JSON.stringify(a);f._invokeAppCommandCompletedMethod(b.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,d)},enumerable:true})}catch(g){a=d}return a};e.prototype._translateEventObjectInternal=function(e,c){for(var a in e){if(!e.hasOwnProperty(a))continue;var b=e[a];if(typeof b==g&&b!=d){OSF.OUtil.defineEnumerableProperty(c,a,{value:{}});this._translateEventObjectInternal(b,c[a])}else Object.defineProperty(c,a,{value:b,enumerable:true,writable:true})}};e.prototype._constructObjectByTemplate=function(c,j){var b={};if(!c||!j)return b;for(var a in c)if(c.hasOwnProperty(a)){b[a]=d;if(j[a]!=d){var h=c[a],i=j[a],e=typeof i;if(typeof h==g&&h!=d)b[a]=this._constructObjectByTemplate(h,i);else if(e=="number"||e==f||e=="boolean")b[a]=i}}return b};e.instance=function(){if(e._instance==d)e._instance=new e;return e._instance};e._instance=d;return e}();b.AppCommandManager=e;var d=function(){function a(b,c,d){var a=this;a.type=Microsoft.Office.WebExtension.EventType.AppCommandInvoked;a.appCommandId=b;a.callbackName=c;a.eventObjStr=d}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();(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.AppCommandInvocationCompletedData,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={}));OSF.DDA.AsyncMethodNames.addNames({CloseContainerAsync:"closeContainer"});(function(b){var a=function(){function a(){}return a}();b.Container=a})(OfficeExt||(OfficeExt={}));OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.CloseContainerAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidCloseContainerMethod,fromHost:[],toHost:[]});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;OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.CloseContainerAsync])}}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(e){var t=new OSF.DDA.License(e.get_eToken());e.get_appName()==OSF.AppName.OutlookWebApp?(OSF.WebApp._UpdateLinksForHostAndXdmInfo(),this.initWebDialog(e),this.initWebAuth(e),OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(e,this._settings,t,e.appOM)),OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(OSF.DDA.WAC.getDelegateMethods,OSF.DDA.WAC.Delegate.ParameterMap))):(OfficeJsClient_OutlookWin32.prepareApiSurface(e),OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(e,this._settings,t,e.appOM,OSF.DDA.OfficeTheme?OSF.DDA.OfficeTheme.getOfficeTheme:null,e.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(e){var t={};for(var n in e){var r=e[n];try{r=JSON?JSON.stringify(r,(function(e,t){return OSF.OUtil.isDate(this[e])?OSF.DDA.SettingsManager.DateJSONPrefix+this[e].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:t})):Sys.Serialization.JavaScriptSerializer.serialize(r),t[n]=r}catch(e){}}return t},deserializeSettings:function(e){var t={};for(var n in e=e||{}){var r=e[n];try{r=JSON?JSON.parse(r,(function(e,t){var n;return"string"===typeof t&&t&&t.length>6&&t.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&t.slice(-1)===OSF.DDA.SettingsManager.DataJSONSuffix&&(n=new Date(parseInt(t.slice(5,-1))))?n:t})):Sys.Serialization.JavaScriptSerializer.deserialize(r,!0),t[n]=r}catch(e){}}return t}},OSF.InitializationHelper.prototype.loadAppSpecificScriptAndCreateOM=function(e,t,n){var r="object"===typeof r?r:{};r.OutlookAppOm=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=2)}([function(e,t){e.exports=OSF},function(e,t){e.exports=Microsoft},function(e,t,n){"use strict";function r(e){return null===e||void 0===e}n.r(t);var a,i=window;function o(e){return a[e]}var s,c="",d="",l=null,u=!1;function f(e){var t=document.createElement("script");return t.type="text/javascript",t.src=e,t}function m(){u=!0,r(s)||!r(l.readyState)&&(r(l.readyState)||"loaded"!==l.readyState&&"complete"!==l.readyState)||(l.onload=null,l.onreadystatechange=null,"undefined"!==typeof i._u&&(a=i._u.ExtensibilityStrings),s())}function p(){if(!u){var e=document.getElementsByTagName("head")[0],t=d+"en-us/outlook_strings.js";l.onload=null,l.onreadystatechange=null,(l=f(t)).onload=m,l.onreadystatechange=m,e.appendChild(l)}}function y(e,t,n){var r=n.substring(0,t),a=r.lastIndexOf("/",r.length-2);return-1===a&&(a=r.lastIndexOf("\\",r.length-2)),-1!==a&&r.length>a+1&&(e=r.substring(0,a+1)),e}var g,h=function(){function e(){}return e.success=0,e.noResponseDictionary=-900,e.noErrorCodeForStandardInvokeMethod=-901,e.genericProxyError=-902,e.genericLegacyApiError=-903,e.genericUnknownError=-904,e}(),v=function(e){switch(e){case 402:case 401:case 400:case 403:return!0;default:return!1}};!function(e){e[e.noError=0]="noError",e[e.errorInRequest=-1]="errorInRequest",e[e.errorHandlingRequest=-2]="errorHandlingRequest",e[e.errorInResponse=-3]="errorInResponse",e[e.errorHandlingResponse=-4]="errorHandlingResponse",e[e.errorHandlingRequestAccessDenied=-5]="errorHandlingRequestAccessDenied",e[e.errorHandlingMethodCallTimedout=-6]="errorHandlingMethodCallTimedout"}(g||(g={}));var T=n(0),A=!1;function S(e){return A||(b(9e3,"AttachmentSizeExceeded",o("l_AttachmentExceededSize_Text")),b(9001,"NumberOfAttachmentsExceeded",o("l_ExceededMaxNumberOfAttachments_Text")),b(9002,"InternalFormatError",o("l_InternalFormatError_Text")),b(9003,"InvalidAttachmentId",o("l_InvalidAttachmentId_Text")),b(9004,"InvalidAttachmentPath",o("l_InvalidAttachmentPath_Text")),b(9005,"CannotAddAttachmentBeforeUpgrade",o("l_CannotAddAttachmentBeforeUpgrade_Text")),b(9006,"AttachmentDeletedBeforeUploadCompletes",o("l_AttachmentDeletedBeforeUploadCompletes_Text")),b(9007,"AttachmentUploadGeneralFailure",o("l_AttachmentUploadGeneralFailure_Text")),b(9008,"AttachmentToDeleteDoesNotExist",o("l_DeleteAttachmentDoesNotExist_Text")),b(9009,"AttachmentDeleteGeneralFailure",o("l_AttachmentDeleteGeneralFailure_Text")),b(9010,"InvalidEndTime",o("l_InvalidEndTime_Text")),b(9011,"HtmlSanitizationFailure",o("l_HtmlSanitizationFailure_Text")),b(9012,"NumberOfRecipientsExceeded",o("l_NumberOfRecipientsExceeded_Text").replace("{0}",500)),b(9013,"NoValidRecipientsProvided",o("l_NoValidRecipientsProvided_Text")),b(9014,"CursorPositionChanged",o("l_CursorPositionChanged_Text")),b(9016,"InvalidSelection",o("l_InvalidSelection_Text")),b(9017,"AccessRestricted",""),b(9018,"GenericTokenError",""),b(9019,"GenericSettingsError",""),b(9020,"GenericResponseError",""),b(9021,"SaveError",o("l_SaveError_Text")),b(9022,"MessageInDifferentStoreError",o("l_MessageInDifferentStoreError_Text")),b(9023,"DuplicateNotificationKey",o("l_DuplicateNotificationKey_Text")),b(9024,"NotificationKeyNotFound",o("l_NotificationKeyNotFound_Text")),b(9025,"NumberOfNotificationsExceeded",o("l_NumberOfNotificationsExceeded_Text")),b(9026,"PersistedNotificationArrayReadError",o("l_PersistedNotificationArrayReadError_Text")),b(9027,"PersistedNotificationArraySaveError",o("l_PersistedNotificationArraySaveError_Text")),b(9028,"CannotPersistPropertyInUnsavedDraftError",o("l_CannotPersistPropertyInUnsavedDraftError_Text")),b(9029,"CanOnlyGetTokenForSavedItem",o("l_CallSaveAsyncBeforeToken_Text")),b(9030,"APICallFailedDueToItemChange",o("l_APICallFailedDueToItemChange_Text")),b(9031,"InvalidParameterValueError",o("l_InvalidParameterValueError_Text")),b(9032,"ApiCallNotSupportedByExtensionPoint",o("l_API_Not_Supported_By_ExtensionPoint_Error_Text")),b(9033,"SetRecurrenceOnInstanceError",o("l_Recurrence_Error_Instance_SetAsync_Text")),b(9034,"InvalidRecurrenceError",o("l_Recurrence_Error_Properties_Invalid_Text")),b(9035,"RecurrenceZeroOccurrences",o("l_RecurrenceErrorZeroOccurrences_Text")),b(9036,"RecurrenceMaxOccurrences",o("l_RecurrenceErrorMaxOccurrences_Text")),b(9037,"RecurrenceInvalidTimeZone",o("l_RecurrenceInvalidTimeZone_Text")),b(9038,"InsufficientItemPermissionsError",o("l_Insufficient_Item_Permissions_Text")),b(9039,"RecurrenceUnsupportedAlternateCalendar",o("l_RecurrenceUnsupportedAlternateCalendar_Text")),b(9040,"HTTPRequestFailure",o("l_Olk_Http_Error_Text")),b(9041,"NetworkError",o("l_Internet_Not_Connected_Error_Text")),b(9042,"InternalServerError",o("l_Internal_Server_Error_Text")),b(9043,"AttachmentTypeNotSupported",o("l_AttachmentNotSupported_Text")),b(9044,"InvalidCategory",o("l_Invalid_Category_Error_Text")),b(9045,"DuplicateCategory",o("l_Duplicate_Category_Error_Text")),b(9046,"ItemNotSaved",o("l_Item_Not_Saved_Error_Text")),b(9047,"MissingExtendedPermissionsForAPIError",o("l_Missing_Extended_Permissions_For_API")),b(9048,"TokenAccessDenied",o("l_TokenAccessDeniedWithoutItemContext_Text")),b(9049,"ItemNotFound",o("l_ItemNotFound_Text")),b(9050,"KeyNotFound",o("l_KeyNotFound_Text")),b(9051,"SessionObjectMaxLengthExceeded",o("l_SessionDataObjectMaxLengthExceeded_Text").replace("{0}",5e4)),b(9052,"AttachmentResourceNotFound",o("l_Attachment_Resource_Not_Found")),b(9053,"AttachmentResourceUnAuthorizedAccess",o("l_Attachment_Resource_UnAuthorizedAccess")),b(9054,"AttachmentDownloadFailed",o("l_Attachment_Download_Failed_Generic_Error")),b(9055,"APINotSupportedForSharedFolders",o("l_API_Not_Supported_For_Shared_Folders_Error")),A=!0),T.DDA.ErrorCodeManager.getErrorArgs(e)}var D;function b(e,t,n){T.DDA.ErrorCodeManager.addErrorMessage(e,{name:t,message:n})}var w=function(){return D},C=function(e){return(D=new x).parameterBlobSupported=!0,D},x=function(){function e(){this._parameterBlobSupported=!0,this._itemNumber=0,D=this}return Object.defineProperty(e.prototype,"parameterBlobSupported",{set:function(e){this._parameterBlobSupported=e},enumerable:!0,configurable:!0}),e.prototype.setActionsDefinition=function(e){this._actionsDefinition=e},e.prototype.setCurrentItemNumber=function(e){e>0&&(this._itemNumber=e)},Object.defineProperty(e.prototype,"itemNumber",{get:function(){return this._itemNumber},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actionsDefinition",{get:function(){return this._actionsDefinition},enumerable:!0,configurable:!0}),e.prototype.updateOutlookExecuteParameters=function(e,t){var n=e;if(this._parameterBlobSupported){if(this._itemNumber>0&&(t.itemNumber=this._itemNumber.toString()),null!=this._actionsDefinition&&(t.actions=this.actionsDefinition),0===Object.keys(t).length)return n;null==n&&(n=[]),n.push(JSON.stringify(t))}return n},e}(),k=n(0),E=function(e){if(0==e.length)return null;var t=N(e),n=t>0,r=0;return w()&&(r=w().itemNumber),I(e,n&&r>0&&t>r)},M=function(e,t){var n=null,r={};switch(e){case 12:r.isRest=t.isRest;break;case 4:n=[JSON.stringify(t.customProperties)];break;case 5:n=new Array(t.body);break;case 8:case 9:case 179:case 180:n=new Array(t.itemId);break;case 7:case 177:n=new Array(_(t.requiredAttendees),_(t.optionalAttendees),t.start,t.end,t.location,_(t.resources),t.subject,t.body);break;case 44:case 178:n=[_(t.toRecipients),_(t.ccRecipients),_(t.bccRecipients),t.subject,t.htmlBody,t.attachments];break;case 43:n=[t.ewsIdOrEmail];break;case 45:n=[t.module,t.queryString];break;case 40:n=[t.extensionId,t.consentState];break;case 11:case 10:case 184:case 183:n=[t.htmlBody];break;case 31:case 30:case 182:case 181:n=[t.htmlBody,t.attachments];break;case 23:case 13:case 38:case 29:n=[t.data,t.coercionType];break;case 37:case 28:n=[t.coercionType];break;case 17:n=[t.subject];break;case 15:n=[t.recipientField];break;case 22:case 21:n=[t.recipientField,O(t.recipientArray)];break;case 19:n=[t.itemId,t.name];break;case 16:n=[t.uri,t.name,t.isInline];break;case 148:n=[t.base64String,t.name,t.isInline];break;case 20:n=[t.attachmentIndex];break;case 25:n=[t.TimeProperty,t.time];break;case 24:n=[t.TimeProperty];break;case 27:n=[t.location];break;case 33:case 35:n=[t.key,t.type,t.persistent,t.message,t.icon],w().setActionsDefinition(t.actions);break;case 36:n=[t.key];break;default:r=t||{}}return 1!==e&&(n=w().updateOutlookExecuteParameters(n,r)),n},_=function(e){return null!=e?e.join(";"):""},O=function(e){var t=[];if(null==e)return t;for(var n=0;n<e.length;n++){var r=[e[n].address,e[n].name];t.push(r)}return t},N=function(e){var t=0;if(e.length>2){var n=JSON.parse(e[2]);n&&"object"===typeof n&&(t=n.itemNumber)}return t},I=function(e,t){var n=null,r=JSON.parse(e[0]);if("number"===typeof r)n=R(e,t);else{if(!r||"object"!==typeof r)throw new Error("Return data type from host must be Object or Number");n=P(e,t)}return n},P=function(e,t){var n=JSON.parse(e[0]);if(t)n.error=!0,n.errorCode=9030;else if(e.length>1&&0!==e[1]){if(n.error=!0,n.errorCode=e[1],e.length>2){var r=JSON.parse(e[2]);n.diagnostics=r.Diagnostics}e.length>=5&&(n.errorMessage=e[3],n.errorName=e[4])}else n.error=!1;return n},R=function(e,t){var n={error:!0};return n.errorCode=e[0],n};var F=n(0);function U(e,t,n,r,a,i){H(e,r,(function(e,r){if(n){var o=void 0,s=!0;if("object"===typeof r&&null!==r){if(void 0!==r.wasSuccessful&&(s=r.wasSuccessful),void 0!==r.error||void 0!==r.errorCode||void 0!==r.data)if(r.error){var c=r.errorCode;o=j(void 0,F.DDA.AsyncResultEnum.ErrorCode.Failed,c,t)}else{o=j(a?a(r.data):r.data,F.DDA.AsyncResultEnum.ErrorCode.Success,0,t)}i&&(o=i(r,t,e)),o||e===g.noError||(o=j(void 0,F.DDA.AsyncResultEnum.ErrorCode.Failed,9002,t)),o||e!==g.noError||!1!==s||(o=j(void 0,F.DDA.AsyncResultEnum.ErrorCode.Failed,F.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported,t)),n(o)}}}))}function j(e,t,n,r,a,i){var o,s={};if(s[F.DDA.AsyncResultEnum.Properties.Value]=e,s[F.DDA.AsyncResultEnum.Properties.Context]=r,F.DDA.AsyncResultEnum.ErrorCode.Success!==t){o={};var c;c=S(n),o[F.DDA.AsyncResultEnum.ErrorProperties.Name]=i||c.name,o[F.DDA.AsyncResultEnum.ErrorProperties.Message]=a||c.message,o[F.DDA.AsyncResultEnum.ErrorProperties.Code]=n}return new F.DDA.AsyncResult(s,o)}var W,H=function(e,t,n){B(e,t,n)},B=function(e,t,n){if(F.AppName.OutlookWebApp!==ci()&&v(e))n(g.errorHandlingRequest,null);else{var r=performance&&performance.now(),a=function(t,a){z(t,a,e,r),n&&n(t,a)};if(F.AppName.OutlookWebApp===ci()){var i={ApiParams:t,MethodData:{ControlId:F._OfficeAppFactory.getId(),DispatchId:e}};1===e?F._OfficeAppFactory.getClientEndPoint().invoke("GetInitialData",a,i):F._OfficeAppFactory.getClientEndPoint().invoke("ExecuteMethod",a,i)}else!function(e,t,n){var r=M(e,t);k.ClientHostController.execute(e,r,(function(e,t){var r=e.toArray(),a=E(r);null!=n&&n(t,a)}))}(e,t,a)}},z=function(e,t,n,a){if(F.AppTelemetry){var i=function(e,t){if(t){if("error"in t)return t.error?"errorCode"in t?t.errorCode:h.noErrorCodeForStandardInvokeMethod:h.success;if("wasProxySuccessful"in t)return t.wasProxySuccessful?h.success:h.genericProxyError;if("wasSuccessful"in t)return t.wasSuccessful?h.success:h.genericLegacyApiError}return r(e)?h.genericUnknownError:e}(e,t),o=performance&&performance.now();F.AppTelemetry.onMethodDone(n,null,Math.round(o-a),i)}},J=function(){var e=oi("permissionLevel");return r(e)?-1:e};function L(e,t){var n=new Error(e);if(n.message=e||"",t)for(var r in t)n[r]=t[r];return n}function Y(e,t){var n="Sys.ArgumentException: "+(t||"Value does not fall within the expected range.");return e&&(n+="\n"+"Parameter name: {0}".replace("{0}",e)),L(n,{name:"Sys.ArgumentException",paramName:e})}function q(e,t){var n="Sys.ArgumentNullException: "+(t||"Value cannot be null.");return e&&(n+="\n"+"Parameter name: {0}".replace("{0}",e)),L(n,{name:"Sys.ArgumentNullException",paramName:e})}function V(e,t,n){var r="Sys.ArgumentOutOfRangeException: "+(n||"Specified argument was out of the range of valid values.");return e&&(r+="\n"+"Parameter name: {0}".replace("{0}",e)),"undefined"!==typeof t&&null!==t&&(r+="\n"+"Actual value was {0}.".replace("{0}",t)),L(r,{name:"Sys.ArgumentOutOfRangeException",paramName:e,actualValue:t})}function Z(e,t,n,r){var a="Sys.ArgumentTypeException: ";return a+=r||(t&&n?"Object of type '{0}' cannot be converted to type '{1}'.".replace("{0}",t.getName?t.getName():t).replace("{1}",n.getName?n.getName():n):"Object cannot be converted to the required type."),e&&(a+="\n"+"Parameter name: {0}".replace("{0}",e)),L(a,{name:"Sys.ArgumentTypeException",paramName:e,actualType:t,expectedType:n})}function G(e,t){if(-1==J())throw function(e){return L("Invalid operation ({0}) when Office.context.mailbox.item is null.".replace("{0}",e))}(t);if(J()<e)throw L(o("l_ElevatedPermissionNeededForMethod_Text").replace("{0}",t))}function K(e,t,n){var r={};if(n&&(r=function(e){var t={};if(1===e.length||2===e.length)return"function"!==typeof e[0]?t:(t.callback=e[0],2===e.length&&(t.asyncContext=e[1]),t);return t}(e)).callback)return r;if(1===e.length)if("function"===typeof e[0])r.callback=e[0];else{if("object"!==typeof e[0])throw Z();r.options=e[0]}else if(2===e.length){if("object"!==typeof e[0])throw Y("options");if("function"!==typeof e[1])throw Y("callback");r.callback=e[1],r.options=e[0]}else if(0!==e.length)throw L("Sys.ParameterCountException: "+(o("l_ParametersNotAsExpected_Text")||"Parameter count mismatch."),{name:"Sys.ParameterCountException"});if(t&&!r.callback)throw q("callback");return r.options&&r.options.asyncContext&&(r.asyncContext=r.options.asyncContext),r}!function(e){e[e.to=0]="to",e[e.cc=1]="cc",e[e.bcc=2]="bcc",e[e.requiredAttendees=0]="requiredAttendees",e[e.optionalAttendees=1]="optionalAttendees"}(W||(W={}));function $(e,t,n,r){if(e<t||e>n)throw V(String(r))}var X={EntityType:{MeetingSuggestion:"meetingSuggestion",TaskSuggestion:"taskSuggestion",Address:"address",EmailAddress:"emailAddress",Url:"url",PhoneNumber:"phoneNumber",Contact:"contact",FlightReservations:"flightReservations",ParcelDeliveries:"parcelDeliveries"},ItemType:{Message:"message",Appointment:"appointment"},ResponseType:{None:"none",Organizer:"organizer",Tentative:"tentative",Accepted:"accepted",Declined:"declined"},RecipientType:{Other:"other",DistributionList:"distributionList",User:"user",ExternalUser:"externalUser"},AttachmentType:{File:"file",Item:"item",Cloud:"cloud"},AttachmentStatus:{Added:"added",Removed:"removed"},AttachmentContentFormat:{Base64:"base64",Url:"url",Eml:"eml",ICalendar:"iCalendar"},BodyType:{Text:"text",Html:"html"},ItemNotificationMessageType:{ProgressIndicator:"progressIndicator",InformationalMessage:"informationalMessage",ErrorMessage:"errorMessage",InsightMessage:"insightMessage"},Folder:{Inbox:"inbox",Junk:"junk",DeletedItems:"deletedItems"},ComposeType:{Forward:"forward",NewMail:"newMail",Reply:"reply"}},Q={Text:"text",Html:"html"};function ee(e){if(null===e||void 0===e)throw q(e);if(e!==X.RestVersion.v1_0&&e!==X.RestVersion.v2_0&&e!==X.RestVersion.Beta)throw Y(e)}function te(e,t){if(null===e||void 0===e)throw q(e);return ee(t),e.replace(new RegExp("[/]","g"),"-").replace(new RegExp("[+]","g"),"_")}function ne(e,t){if(null===e||void 0===e)throw q(e);return ee(t),e.replace(new RegExp("[-]","g"),"/").replace(new RegExp("[_]","g"),"+")}function re(e,t){if(!Array.isArray(e))throw Z("name");$(e.length,0,100,"{0}.length".replace("{0}",t))}function ae(e,t){for(var n=e,r=[],a=0;a<n.length;a++)if("object"===typeof n[a]){if(ie(n[a]),r[a]=n[a].emailAddress,"string"!==typeof r[a])throw Y("{0}[{1}]".replace(t,String(a)))}else{if("string"!==typeof n[a])throw Y("{0}[{1}]".replace(t,String(a)));r[a]=n[a]}return r}function ie(e){if(!r(e.displayName)&&"string"===typeof e.displayName&&e.displayName.length>255)throw V("displayName");if(!r(e.emailAddress)&&"string"===typeof e.emailAddress&&e.emailAddress.length>571)throw V("emailAddress");if(!r(e.appointmentResponse)&&"string"!==typeof e.appointmentResponse)throw V("appointmentResponse");if(!r(e.recipientType)&&"string"!==typeof e.recipientType)throw V("recipientType")}function oe(e){if("string"!==typeof e)throw Z("itemId");!function(e){if(r(e)||""===e)throw q("itemId")}(e)}function se(e){return oi("isRestIdSupported")?te(e,X.RestVersion.v1_0):ne(e,X.RestVersion.v1_0)}X.UserProfileType={Office365:"office365",OutlookCom:"outlookCom",Enterprise:"enterprise"},X.RestVersion={v1_0:"v1.0",v2_0:"v2.0",Beta:"beta"},X.ModuleType={Addins:"addins"},X.ActionType={ShowTaskPane:"showTaskPane"},X.Days={Mon:"mon",Tue:"tue",Wed:"wed",Thu:"thu",Fri:"fri",Sat:"sat",Sun:"sun",Weekday:"weekday",WeekendDay:"weekendDay",Day:"day"},X.WeekNumber={First:"first",Second:"second",Third:"third",Fourth:"fourth",Last:"last"},X.RecurrenceType={Daily:"daily",Weekday:"weekday",Weekly:"weekly",Monthly:"monthly",Yearly:"yearly"},X.Month={Jan:"jan",Feb:"feb",Mar:"mar",Apr:"apr",May:"may",Jun:"jun",Jul:"jul",Aug:"aug",Sep:"sep",Oct:"oct",Nov:"nov",Dec:"dec"},X.DelegatePermissions={Read:1,Write:2,DeleteOwn:4,DeleteAll:8,EditOwn:16,EditAll:32},X.TimeZone={AfghanistanStandardTime:"Afghanistan Standard Time",AlaskanStandardTime:"Alaskan Standard Time",AleutianStandardTime:"Aleutian Standard Time",AltaiStandardTime:"Altai Standard Time",ArabStandardTime:"Arab Standard Time",ArabianStandardTime:"Arabian Standard Time",ArabicStandardTime:"Arabic Standard Time",ArgentinaStandardTime:"Argentina Standard Time",AstrakhanStandardTime:"Astrakhan Standard Time",AtlanticStandardTime:"Atlantic Standard Time",AUSCentralStandardTime:"AUS Central Standard Time",AusCentralWStandardTime:"Aus Central W. Standard Time",AUSEasternStandardTime:"AUS Eastern Standard Time",AzerbaijanStandardTime:"Azerbaijan Standard Time",AzoresStandardTime:"Azores Standard Time",BahiaStandardTime:"Bahia Standard Time",BangladeshStandardTime:"Bangladesh Standard Time",BelarusStandardTime:"Belarus Standard Time",BougainvilleStandardTime:"Bougainville Standard Time",CanadaCentralStandardTime:"Canada Central Standard Time",CapeVerdeStandardTime:"Cape Verde Standard Time",CaucasusStandardTime:"Caucasus Standard Time",CenAustraliaStandardTime:"Cen. Australia Standard Time",CentralAmericaStandardTime:"Central America Standard Time",CentralAsiaStandardTime:"Central Asia Standard Time",CentralBrazilianStandardTime:"Central Brazilian Standard Time",CentralEuropeStandardTime:"Central Europe Standard Time",CentralEuropeanStandardTime:"Central European Standard Time",CentralPacificStandardTime:"Central Pacific Standard Time",CentralStandardTime:"Central Standard Time",CentralStandardTime_Mexico:"Central Standard Time (Mexico)",ChathamIslandsStandardTime:"Chatham Islands Standard Time",ChinaStandardTime:"China Standard Time",CubaStandardTime:"Cuba Standard Time",DatelineStandardTime:"Dateline Standard Time",EAfricaStandardTime:"E. Africa Standard Time",EAustraliaStandardTime:"E. Australia Standard Time",EEuropeStandardTime:"E. Europe Standard Time",ESouthAmericaStandardTime:"E. South America Standard Time",EasterIslandStandardTime:"Easter Island Standard Time",EasternStandardTime:"Eastern Standard Time",EasternStandardTime_Mexico:"Eastern Standard Time (Mexico)",EgyptStandardTime:"Egypt Standard Time",EkaterinburgStandardTime:"Ekaterinburg Standard Time",FijiStandardTime:"Fiji Standard Time",FLEStandardTime:"FLE Standard Time",GeorgianStandardTime:"Georgian Standard Time",GMTStandardTime:"GMT Standard Time",GreenlandStandardTime:"Greenland Standard Time",GreenwichStandardTime:"Greenwich Standard Time",GTBStandardTime:"GTB Standard Time",HaitiStandardTime:"Haiti Standard Time",HawaiianStandardTime:"Hawaiian Standard Time",IndiaStandardTime:"India Standard Time",IranStandardTime:"Iran Standard Time",IsraelStandardTime:"Israel Standard Time",JordanStandardTime:"Jordan Standard Time",KaliningradStandardTime:"Kaliningrad Standard Time",KamchatkaStandardTime:"Kamchatka Standard Time",KoreaStandardTime:"Korea Standard Time",LibyaStandardTime:"Libya Standard Time",LineIslandsStandardTime:"Line Islands Standard Time",LordHoweStandardTime:"Lord Howe Standard Time",MagadanStandardTime:"Magadan Standard Time",MagallanesStandardTime:"Magallanes Standard Time",MarquesasStandardTime:"Marquesas Standard Time",MauritiusStandardTime:"Mauritius Standard Time",MidAtlanticStandardTime:"Mid-Atlantic Standard Time",MiddleEastStandardTime:"Middle East Standard Time",MontevideoStandardTime:"Montevideo Standard Time",MoroccoStandardTime:"Morocco Standard Time",MountainStandardTime:"Mountain Standard Time",MountainStandardTime_Mexico:"Mountain Standard Time (Mexico)",MyanmarStandardTime:"Myanmar Standard Time",NCentralAsiaStandardTime:"N. Central Asia Standard Time",NamibiaStandardTime:"Namibia Standard Time",NepalStandardTime:"Nepal Standard Time",NewZealandStandardTime:"New Zealand Standard Time",NewfoundlandStandardTime:"Newfoundland Standard Time",NorfolkStandardTime:"Norfolk Standard Time",NorthAsiaEastStandardTime:"North Asia East Standard Time",NorthAsiaStandardTime:"North Asia Standard Time",NorthKoreaStandardTime:"North Korea Standard Time",OmskStandardTime:"Omsk Standard Time",PacificSAStandardTime:"Pacific SA Standard Time",PacificStandardTime:"Pacific Standard Time",PacificStandardTime_Mexico:"Pacific Standard Time (Mexico)",PakistanStandardTime:"Pakistan Standard Time",ParaguayStandardTime:"Paraguay Standard Time",RomanceStandardTime:"Romance Standard Time",RussiaTimeZone10:"Russia Time Zone 10",RussiaTimeZone11:"Russia Time Zone 11",RussiaTimeZone3:"Russia Time Zone 3",RussianStandardTime:"Russian Standard Time",SAEasternStandardTime:"SA Eastern Standard Time",SAPacificStandardTime:"SA Pacific Standard Time",SAWesternStandardTime:"SA Western Standard Time",SaintPierreStandardTime:"Saint Pierre Standard Time",SakhalinStandardTime:"Sakhalin Standard Time",SamoaStandardTime:"Samoa Standard Time",SaratovStandardTime:"Saratov Standard Time",SEAsiaStandardTime:"SE Asia Standard Time",SingaporeStandardTime:"Singapore Standard Time",SouthAfricaStandardTime:"South Africa Standard Time",SriLankaStandardTime:"Sri Lanka Standard Time",SudanStandardTime:"Sudan Standard Time",SyriaStandardTime:"Syria Standard Time",TaipeiStandardTime:"Taipei Standard Time",TasmaniaStandardTime:"Tasmania Standard Time",TocantinsStandardTime:"Tocantins Standard Time",TokyoStandardTime:"Tokyo Standard Time",TomskStandardTime:"Tomsk Standard Time",TongaStandardTime:"Tonga Standard Time",TransbaikalStandardTime:"Transbaikal Standard Time",TurkeyStandardTime:"Turkey Standard Time",TurksAndCaicosStandardTime:"Turks And Caicos Standard Time",UlaanbaatarStandardTime:"Ulaanbaatar Standard Time",USEasternStandardTime:"US Eastern Standard Time",USMountainStandardTime:"US Mountain Standard Time",UTC:"UTC",UTCPLUS12:"UTC+12",UTCPLUS13:"UTC+13",UTCMINUS02:"UTC-02",UTCMINUS08:"UTC-08",UTCMINUS09:"UTC-09",UTCMINUS11:"UTC-11",VenezuelaStandardTime:"Venezuela Standard Time",VladivostokStandardTime:"Vladivostok Standard Time",WAustraliaStandardTime:"W. Australia Standard Time",WCentralAfricaStandardTime:"W. Central Africa Standard Time",WEuropeStandardTime:"W. Europe Standard Time",WMongoliaStandardTime:"W. Mongolia Standard Time",WestAsiaStandardTime:"West Asia Standard Time",WestBankStandardTime:"West Bank Standard Time",WestPacificStandardTime:"West Pacific Standard Time",YakutskStandardTime:"Yakutsk Standard Time"},X.LocationType={Custom:"custom",Room:"room"},X.AppointmentSensitivityType={Normal:"normal",Personal:"personal",Private:"private",Confidential:"confidential"},X.CategoryColor={None:"None",Preset0:"Preset0",Preset1:"Preset1",Preset2:"Preset2",Preset3:"Preset3",Preset4:"Preset4",Preset5:"Preset5",Preset6:"Preset6",Preset7:"Preset7",Preset8:"Preset8",Preset9:"Preset9",Preset10:"Preset10",Preset11:"Preset11",Preset12:"Preset12",Preset13:"Preset13",Preset14:"Preset14",Preset15:"Preset15",Preset16:"Preset16",Preset17:"Preset17",Preset18:"Preset18",Preset19:"Preset19",Preset20:"Preset20",Preset21:"Preset21",Preset22:"Preset22",Preset23:"Preset23",Preset24:"Preset24"};var ce=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r};function de(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ue.apply(void 0,ce([9,e],t))}function le(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ue.apply(void 0,ce([180,e],t))}function ue(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];G(1,"mailbox.displayAppointmentForm");var a=K(n,!1,!1),i={itemId:t};fe(i),U(e,a.asyncContext,a.callback,{itemId:se(i.itemId)},void 0)}function fe(e){oe(e.itemId)}var me=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r};function pe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ge.apply(void 0,me([8,e],t))}function ye(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ge.apply(void 0,me([179,e],t))}function ge(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];G(1,"mailbox.displayMessageForm");var a=K(n,!1,!1),i={itemId:t};he(i),U(e,a.asyncContext,a.callback,{itemId:se(i.itemId)},void 0)}function he(e){oe(e.itemId)}function ve(e,t,n,r){if("string"!==typeof e)throw Y(String(r));$(e.length,t,n,r)}var Te=function(e){return e instanceof Date||"[object Date]"==Object.prototype.toString.call(e)},Ae=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r};function Se(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return be.apply(void 0,Ae([7,e],t))}function De(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return be.apply(void 0,Ae([177,e],t))}function be(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];G(1,"mailbox.displayNewAppointmentForm");var a=K(n,!1,!1);we(t);var i=Ce(t);U(e,a.asyncContext,a.callback,i,void 0)}function we(e){if(r(e.requiredAttendees)||re(e.requiredAttendees,"requiredAttendees"),r(e.optionalAttendees)||re(e.optionalAttendees,"optionalAttendees"),r(e.location)||ve(e.location,0,255,"location"),r(e.body)||ve(e.body,0,32768,"body"),r(e.subject)||ve(e.subject,0,255,"subject"),!r(e.start)){if(!Te(e.start))throw Y("start");if(!r(e.end)){if(!Te(e.end))throw Y("end");if(e.end&&e.start&&e.end<e.start)throw Y("end",o("l_InvalidEventDates_Text"))}}}function Ce(e){var t=null,n=null;if(r(e.requiredAttendees)||(t=ae(e.requiredAttendees,"requiredAttendees")),r(e.optionalAttendees)||(n=ae(e.optionalAttendees,"optionalAttendees")),!r(e.start)){var a=e.start;e.start=a.getTime()}if(!r(e.end)){var i=e.end;e.end=i.getTime()}var o=JSON.parse(JSON.stringify(e));return(t||n)&&(r(e.requiredAttendees)||(o.requiredAttendees=t),r(e.optionalAttendees)||(o.optionalAttendees=n)),o}var xe=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r};function ke(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Me.apply(void 0,xe([44,e],t))}function Ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Me.apply(void 0,xe([178,e],t))}function Me(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];G(1,"mailbox.displayNewMessageForm");var a=K(n,!1,!1);_e(t);var i=Oe(t);U(e,a.asyncContext,a.callback,null===i||void 0===i?t:i,void 0)}function _e(e){null!==e&&null!==e&&(r(e.toRecipients)||re(e.toRecipients,"toRecipients"),r(e.ccRecipients)||re(e.ccRecipients,"ccRecipients"),r(e.bccRecipients)||re(e.bccRecipients,"bccRecipients"),r(e.htmlBody)||ve(e.htmlBody,0,32768,"htmlBody"),r(e.subject)||ve(e.subject,0,255,"subject"))}function Oe(e){var t=JSON.parse(JSON.stringify(e));if(!r(e)){e.toRecipients&&(t.toRecipients=ae(e.toRecipients,"toRecipients")),e.ccRecipients&&(t.ccRecipients=ae(e.ccRecipients,"ccRecipients")),e.bccRecipients&&(t.bccRecipients=ae(e.bccRecipients,"bccRecipients"));var n=function(e){var t=[];e.attachments&&Ne(t=e.attachments);return t}(e);e.attachments&&(t.attachments=Ie(n))}return t}function Ne(e){if(!r(e)&&!Array.isArray(e))throw Y("attachments")}function Ie(e){for(var t=[],n=0;n<e.length;n++){if("object"!==typeof e[n])throw Y("attachments");var r=e[n];Pe(r),t.push(Re(r))}return t}function Pe(e){if("object"!==typeof e)throw Y("attachments");if(!e.type||!e.name)throw Y("attachments");if(!e.url&&!e.itemId)throw Y("attachments")}function Re(e){var t=null;if(e.type===X.AttachmentType.File){var n=e.url,r=e.name,a=!!e.isInline;!function(e,t){if("string"!==typeof e&&"string"!==typeof t)throw Y("attachments");if(e.length>2048)throw V("attachments",e.length,o("l_AttachmentUrlTooLong_Text"));Fe(t)}(n,r),t=[X.AttachmentType.File,r,n,a]}else{if(e.type!==X.AttachmentType.Item)throw Y("attachments");var i=se(e.itemId),s=e.name;!function(e,t){if("string"!==typeof e||"string"!==typeof t)throw Y("attachments");if(e.length>200)throw V("attachments",e.length,o("l_AttachmentItemIdTooLong_Text"));Fe(t)}(i,s),t=[X.AttachmentType.Item,s,i]}return t}function Fe(e){if(e.length>255)throw V("attachments",e.length,o("l_AttachmentNameTooLong_Text"))}var Ue=n(0);function je(e,t,n){var r=void 0;return ci()===Ue.AppName.Outlook&&void 0!==e.error&&void 0!==e.errorCode&&e.error&&9030===e.errorCode?r=j(void 0,Ue.DDA.AsyncResultEnum.ErrorCode.Failed,e.errorCode,t,e.errorMessage,e.errorName):n&&n!==g.noError?(r=j(void 0,Ue.DDA.AsyncResultEnum.ErrorCode.Failed,9017,t,o("l_InternalProtocolError_Text").replace("{0}",n)))&&(r.diagnostics={InvokeCodeResult:n}):(r=e.wasSuccessful?j(e.token,Ue.DDA.AsyncResultEnum.ErrorCode.Success,0,t):j(void 0,Ue.DDA.AsyncResultEnum.ErrorCode.Failed,e.errorCode,t,e.errorMessage,e.errorName),e.diagnostics&&(r.diagnostics=e.diagnostics)),r}function We(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"mailbox.getCallbackTokenAsync");var n=K(e,!0,!0),r=!1;if(n.options&&n.options.isRest&&(r=!0),si()&&(!r||J()<3))throw L(o("l_TokenAccessDeniedWithoutItemContext_Text"));U(12,n.asyncContext,n.callback,{isRest:r},void 0,je)}function He(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"mailbox.getUserIdentityToken");var n=K(e,!0,!0);U(2,n.asyncContext,n.callback,void 0,void 0,je)}var Be=n(0);function ze(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(3,"mailbox.makeEwsRequest");var r=K(t,!0,!0);if(null===e||void 0===e)throw q("data");if("string"!==typeof e)throw Z("data",typeof e,"string");if(e.length>1e6)throw Y("data",o("l_EwsRequestOversized_Text"));U(5,r.asyncContext,r.callback,{body:e},void 0,Je)}function Je(e,t,n){return n&&n!==g.noError?j(void 0,Be.DDA.AsyncResultEnum.ErrorCode.Failed,9017,t,o("l_InternalProtocolError_Text").replace("{0}",n)):!1===e.wasProxySuccessful?j(void 0,Be.DDA.AsyncResultEnum.ErrorCode.Failed,9020,t,e.errorMessage):j(e.body,Be.DDA.AsyncResultEnum.ErrorCode.Success,0,t)}var Le=function(e,t){var n=Object.keys(t),r=n.map((function(e){return{value:t[e],writable:!1}})),a={};return n.forEach((function(e,t){a[e]=r[t]})),Object.defineProperties(e,a)},Ye=n(0),qe=function(){switch(ci()){case Ye.AppName.Outlook:return"Outlook";case Ye.AppName.OutlookWebApp:return"OutlookWebApp";case Ye.AppName.OutlookIOS:return"OutlookIOS";case Ye.AppName.OutlookAndroid:return"OutlookAndroid";default:return}};var Ve=X.CategoryColor,Ze=[Ve.None,Ve.Preset0,Ve.Preset1,Ve.Preset2,Ve.Preset3,Ve.Preset4,Ve.Preset5,Ve.Preset6,Ve.Preset7,Ve.Preset8,Ve.Preset9,Ve.Preset10,Ve.Preset11,Ve.Preset12,Ve.Preset13,Ve.Preset14,Ve.Preset15,Ve.Preset16,Ve.Preset17,Ve.Preset18,Ve.Preset19,Ve.Preset20,Ve.Preset21,Ve.Preset22,Ve.Preset23,Ve.Preset24];function Ge(e){if(!e)throw Y("categoryDetails");if(!Array.isArray(e))throw Z("categoryDetails",typeof e,typeof[]);if(0===e.length)throw Y("categoryDetails");e.forEach(Ke)}function Ke(e){if(!e)throw Y("categoryDetails");if(!e.color||!e.displayName)throw Y("categoryDetails");if("string"!==typeof e.color)throw Z("categoryDetails.color",typeof e.color,"string");if("string"!==typeof e.displayName)throw Z("categoryDetails.displayName",typeof e.displayName,"string");if(e.displayName.length>255)throw V("categoryDetails.displayName",e.displayName.length);if(-1===Ze.indexOf(e.color))throw Y("categoryDetails.color")}function $e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(3,"masterCategories.addAsync");var r=K(t,!1,!1),a={categoryDetails:e};Ge(e),U(161,r.asyncContext,r.callback,a,void 0)}function Xe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(3,"masterCategories.getAsync");var n=K(e,!0,!1);U(160,n.asyncContext,n.callback,void 0,void 0)}function Qe(e){if(!e)throw Y("categories");if(!Array.isArray(e))throw Z("categories",typeof e,typeof Array);if(0===e.length)throw Y("categories");e.forEach(et)}function et(e){if(!e)throw Y("categories");if("string"!==typeof e)throw Z("categories",typeof e,"string");if(e.length>255)throw V("categories",e.length)}function tt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(3,"masterCategories.removeAsync");var r=K(t,!1,!1),a={categories:e};Qe(e),U(162,r.asyncContext,r.callback,a,void 0)}function nt(){U(42,void 0,void 0,void 0,void 0)}var rt,at=function(){return oi("itemType")};function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"item.getInitializationContext");var n=K(e,!0,!1);U(99,n.asyncContext,n.callback,void 0,void 0)}!function(e){e[e.Message=1]="Message",e[e.Appointment=2]="Appointment",e[e.MeetingRequest=3]="MeetingRequest",e[e.MessageCompose=4]="MessageCompose",e[e.AppointmentCompose=5]="AppointmentCompose",e[e.ItemLess=6]="ItemLess"}(rt||(rt={}));var ot;function st(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(1,"item.saveCustomProperties");var r=K(t,!1,!0);ct(e),U(4,r.asyncContext,r.callback,{customProperties:e},void 0)}function ct(e){if(JSON.stringify(e).length>2500)throw V("customProperties")}!function(e){e[e.NonTransmittable=0]="NonTransmittable"}(ot||(ot={}));var dt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r},lt=function(){function e(e){if(r(e)&&q("data"),Array.isArray(e)){var t=e;if(!(t.length>ot.NonTransmittable))throw Y("data");e=t[ot.NonTransmittable]}else this.rawData=e}return e.prototype.get=function(e){var t=this.rawData[e];if("string"===typeof t){var n=t;if(n.length>"Date(".length+")".length&&n.startsWith("Date(")&&n.endsWith(")")){var a=n.substring("Date(".length,n.length-1),i=parseInt(a);if(!isNaN(i)){var o=new Date(i);r(o)||(t=o)}}}return t},e.prototype.set=function(e,t){Te(t)&&(t="Date("+t.getTime()+")"),this.rawData[e]=t},e.prototype.remove=function(e){delete this.rawData[e]},e.prototype.saveAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];st.apply(void 0,dt([this.rawData],e))},e.prototype.getAll=function(){var e=this,t={};return Object.keys(this.rawData).forEach((function(n){t[n]=e.get(n)})),t},e}(),ut=n(0);function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=K(e,!0,!0);U(3,n.asyncContext,n.callback,void 0,void 0,mt)}function mt(e,t,n){if("undefined"!==typeof n&&n!==g.noError)return j(void 0,ut.DDA.AsyncResultEnum.ErrorCode.Failed,9017,t,o("l_InternalProtocolError_Text").replace("{0}",n));if(e.wasSuccessful){var r=JSON.parse(e.customProperties);return j(new lt(r),ut.DDA.AsyncResultEnum.ErrorCode.Success,0,t)}return j(void 0,ut.DDA.AsyncResultEnum.ErrorCode.Failed,9020,t,e.errorMessage)}var pt,yt=n(0);function gt(e,t){t.options&&"string"===typeof t.options.coercionType?e.coercionType=ht(t.options.coercionType):e.coercionType=pt.Text}function ht(e){return e===Q.Html?pt.Html:e===Q.Text?pt.Text:void 0}function vt(e){e.callback&&e.callback(j(void 0,yt.DDA.AsyncResultEnum.ErrorCode.Failed,1e3,e.asyncContext))}function Tt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(1,"body.getAsync");var r=K(t,!0,!1),a={coercionType:ht(e)};if(void 0===a.coercionType)throw Y("coercionType");U(37,r.asyncContext,r.callback,a,void 0)}function At(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"body.getTypeAsync");var n=K(e,!0,!1);U(14,n.asyncContext,n.callback,void 0,void 0)}!function(e){e[e.Text=0]="Text",e[e.Html=3]="Html"}(pt||(pt={}));function St(e){if("string"!==typeof e.appendTxt)throw Z("data",typeof e.appendTxt,"string");if(e.appendTxt.length>5e3)throw V("data",e.appendTxt.length)}function Dt(e){if("string"!==typeof e.data)throw Z("data",typeof e.data,"string");if(e.data.length>1e6)throw V("data",e.data.length)}function bt(e){if("string"!==typeof e.data)throw Z("data",typeof e.data,"string");if(e.data.length>12e4)throw V("data",e.data.length)}function wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"body.setAsync");var r=K(t,!1,!1),a={data:e};Dt(a),gt(a,r),void 0!==a.coercionType?U(38,r.asyncContext,r.callback,a,void 0):vt(r)}function Ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"body.prependAsync");var r=K(t,!1,!1),a={data:e};Dt(a),gt(a,r),void 0!==a.coercionType?U(23,r.asyncContext,r.callback,a,void 0):vt(r)}function xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"body.appendOnSendAsync");var a=K(t,!1,!1),i={appendTxt:e};r(i.appendTxt)?i.appendTxt="":St(i),gt(i,a),void 0!==i.coercionType?U(100,a.asyncContext,a.callback,i,void 0):vt(a)}function kt(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];G(2,"body.setSelectedDataAsync");var a=K(n,!1,!1),i={data:t};Dt(i),gt(i,a),void 0!==i.coercionType?U(e,a.asyncContext,a.callback,i,void 0):vt(a)}}var Et,Mt=1,_t=1,Ot=2,Nt=2;function It(e){return e<=1}function Pt(e,t){if(!It(e))throw function(e){return L("The feature {0}, is only enabled on the beta api endpoint".replace("{0}",e),{name:"Sys.FeatureNotEnabled"})}(t)}function Rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"item.body.setSignatureAsync");var a=K(t,!1,!1),i={data:e};Pt(_t,"setSignatureAsync"),r(i.data)?i.data="":bt(i),gt(i,a),void 0!==i.coercionType?U(173,a.asyncContext,a.callback,i,void 0):vt(a)}function Ft(e){var t=Le({},{getAsync:Tt});return e&&Le(t,{appendOnSendAsync:xt,getTypeAsync:At,prependAsync:Ct,setAsync:wt,setSelectedDataAsync:kt(13),setSignatureAsync:Rt}),t}function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"item.getAllInternetHeadersAsync");var n=K(e,!0,!1);U(168,n.asyncContext,n.callback,void 0,void 0)}function jt(e,t){if(r(t)||""===t)throw q(e);if("string"!==typeof t)throw Z(e,typeof t,"string")}!function(e){e[e.informationalMessage=0]="informationalMessage",e[e.progressIndicator=1]="progressIndicator",e[e.errorMessage=2]="errorMessage",e[e.insightMessage=3]="insightMessage"}(Et||(Et={}));function Wt(e){if(jt("key",e),e.length>32)throw V("key",e.length)}function Ht(e){if(jt("type",e.type),e.type===X.ItemNotificationMessageType.InformationalMessage){if(jt("icon",e.icon),e.icon.length>32)throw V("icon",e.icon.length);if(r(e.persistent))throw q("persistent");if("boolean"!==typeof e.persistent)throw Z("persistent",typeof e.persistent,"boolean");if(!r(e.actions))throw Y("actions",o("l_ActionsDefinitionWrongNotificationMessageError_Text"))}else if(e.type===X.ItemNotificationMessageType.InsightMessage)!function(e){if(jt("icon",e.icon),e.icon.length>32)throw V("icon",e.icon.length);if(!r(e.persistent))throw Y("persistent");if(r(e.actions))throw q("actions");!function(e){var t=function(e){var t=null;if(!Array.isArray(e))throw Y("actions");if(1===e.length)t=e[0];else if(e.length>1)throw Y("actions",o("l_ActionsDefinitionMultipleActionsError_Text"));return t}(e);if(r(t))return;(function(e){if(r(e.actionType))throw q("actionType");if("showTaskPane"!==e.actionType)throw Y("actionType",o("l_InvalidActionType_Text"));if(r(e.commandId)||"string"!==typeof e.commandId||""===e.commandId)throw Y("commandId",o("l_InvalidCommandIdError_Text"))})(t),function(e){if(r(e.actionText)||""===e.actionText||"string"!==typeof e.actionText)throw q("actionText");if(e.actionText.length>30)throw V("actionText",e.actionText.length)}(t)}(e.actions)}(e);else{if(!r(e.icon))throw Y("icon");if(!r(e.persistent))throw Y("persistent");if(!r(e.actions))throw Y("actions",o("l_ActionsDefinitionWrongNotificationMessageError_Text"))}if(jt("message",e.message),e.message.length>150)throw V("message",e.message.length)}function Bt(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];G(1,"notificationMessages.addAsync");var i=K(n,!1,!1);Wt(e),Ht(t);var o=Et[t.type];if(r(o))throw Y("type");var s=t.message,c=t.icon,d=t.persistent,l=t.actions,u={key:e,message:s,type:o,icon:c,persistent:d,actions:l};U(33,i.asyncContext,i.callback,u,void 0)}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"notificationMessages.getAsync");var n=K(e,!0,!1);U(34,n.asyncContext,n.callback,void 0,void 0)}function Jt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(1,"notificationMessages.removeAsync");var r=K(t,!1,!1);Wt(e);var a={key:e};U(36,r.asyncContext,r.callback,a,void 0)}function Lt(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];G(1,"notificationMessages.replaceAsync");var i=K(n,!1,!1);Wt(e),Ht(t);var o=Et[t.type];if(r(o))throw Y("type");var s=t.message,c=t.icon,d=t.persistent,l=t.actions,u={key:e,message:s,type:o,icon:c,persistent:d,actions:l};U(35,i.asyncContext,i.callback,u,void 0)}function Yt(){return Le({},{addAsync:Bt,getAllAsync:zt,removeAsync:Jt,replaceAsync:Lt})}function qt(e){r(e)||$(e.length,0,32768,"htmlBody")}function Vt(e){var t="";return e.htmlBody&&(!function(e){if("string"!==typeof e)throw Z("htmlBody",typeof e,"string");if(r(e))throw q("htmlBody");$(e.length,0,32768,"htmlBody")}(e.htmlBody),t=e.htmlBody),t}function Zt(e){var t=[];return e.attachments&&Ne(t=e.attachments),t}function Gt(e){var t=[];return r(e.options)||(t[0]=e.options),r(e.callback)||(t[t.length]=e.callback),t}var Kt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r};function $t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return tn.apply(void 0,Kt([!1,!1,e],t))}function Xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return tn.apply(void 0,Kt([!0,!1,e],t))}function Qt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return tn.apply(void 0,Kt([!1,!0,e],t))}function en(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return tn.apply(void 0,Kt([!0,!0,e],t))}function tn(e,t,n){for(var a,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];G(1,"mailbox.displayReplyForm");var s=K(Gt(n),!1,!1);It(Ot)&&(r(s)||void 0===s.options&&void 0===s.callback)&&(s=K(i,!1,!1));var c={formData:n},d=null,l=null;if("string"===typeof c.formData)a=e?t?184:11:t?183:10,qt(c.formData),U(a,s.asyncContext,s.callback,{htmlBody:c.formData},void 0);else{if("object"!==typeof c.formData)throw Y();d=Vt(c.formData),l=Ie(Zt(c.formData)),U(a=e?t?182:31:t?181:30,s.asyncContext,s.callback,{htmlBody:d,attachments:l},void 0)}}function nn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"categories.addAsync");var r=K(t,!1,!1),a={categories:e};Qe(e),U(158,r.asyncContext,r.callback,a,void 0)}function rn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"categories.getAsync");var n=K(e,!0,!1);U(157,n.asyncContext,n.callback,void 0,void 0)}function an(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"categories.removeAsync");var r=K(t,!1,!1),a={categories:e};Qe(e),U(159,r.asyncContext,r.callback,a,void 0)}function on(){return Le({},{addAsync:nn,getAsync:rn,removeAsync:an})}function sn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(1,"item.getAttachmentContentAsync");var r=K(t,!0,!1),a={id:e};cn(a),U(150,r.asyncContext,r.callback,a,void 0)}function cn(e){jt("attachmentId",e.id)}var dn=X.Folder;function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(3,"item.move");var r=K(t,!1,!1),a={destinationFolder:e};un(e),U(101,r.asyncContext,r.callback,a,void 0)}function un(e){if(e!==dn.Inbox&&e!==dn.Junk&&e!==dn.DeletedItems)throw Y("destinationFolder")}var fn=X.ResponseType,mn=X.RecipientType,pn=[fn.None,fn.Organizer,fn.Tentative,fn.Accepted,fn.Declined],yn=[mn.Other,mn.DistributionList,mn.User,mn.ExternalUser],gn=function(e){var t=e.appointmentResponse,n=e.recipientType,r={emailAddress:e.address,displayName:e.name};return"number"===typeof e.appointmentResponse&&(r.appointmentResponse=t<pn.length?pn[t]:fn.None),"number"===typeof e.recipientType&&(r.recipientType=n<yn.length?yn[n]:mn.Other),r};function hn(e){return gn({name:e.Name||"",address:e.UserId||""})}function vn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"delayDeliveryTime.getAsync");var n=K(e,!0,!1);U(166,n.asyncContext,n.callback,void 0,void 0)}function Tn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"delayDeliveryTime.setAsync");var r=K(t,!1,!1);An(e),U(167,r.asyncContext,r.callback,{time:e.getTime()},void 0)}function An(e){if(r(e))throw q("dateTime","You cannot conduct to a null dateTime");if(!Te(e))throw Z("dateTime",typeof e,typeof Date);if(isNaN(e.getTime()))throw Y("dateTime");$(e.getTime(),-864e13,864e13,"dateTime")}function Sn(e){var t=Le({},{getAsync:vn});return e&&Le(t,{setAsync:Tn}),t}function Dn(e,t){for(var n=e.length-1;n>=0;n--){for(var r=!1,a=n-1;a>=0;a--)if(t(e[n],e[a])){r=!0;break}r&&e.splice(n,1)}return e}var bn=function(e,t){return e===t},wn=function(e,t){return e===t||!(!e||!t)&&e.meetingString===t.meetingString},Cn=function(e,t){return e===t||!(!e||!t)&&e.taskString===t.taskString},xn=function(e,t){return e===t||!(!e||!t)&&e.contactString===t.contactString};function kn(){return!!oi("entities")&&void 0!==oi("entities").IsLegacyExtraction&&oi("entities").IsLegacyExtraction}var En,Mn=new Date("0001-01-01T00:00:00Z");function _n(e,t){if(!t)return e;var n=null;try{var a=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0),i=function(e){var t=0;if(null==e)return;t=kn()?Nn(e):On(e);var n=(e.getTime()-t-Mn.getTime())/864e5;if(n<0)return;if(n>=1<<18)return;var r=n>>15;switch(n&=32767,r){case 0:return function(e){var t=0,n=0,r=0,a=e>>12&7;if(4==(4&a)){if(t=e>>5&127,2==(2&a)){if(1==(1&a))return;n=e>>1&15}}else 2==(2&a)&&(n=e>>8&15),1==(1&a)&&(r=e>>3&31);return function(e,t,n){return{day:e,month:t,year:n%100}}(r,n,t)}(n);case 1:return function(e){var t=15&e,n=function(e,t){var n=1<<t-1,r=(1<<t)-1;return(e&n)==n?-(1+(e^r)):e}(63&(e>>=4),6),r=7&(e>>=6),a=3&(e>>=3);try{return function(e,t,n,r){return{modifier:e,offset:t,unit:n,tag:r}}(a,n,r,t)}catch(e){return}}(n);default:return}}(e);if(!i)return e;var o=i;if(o.day&&o.month&&void 0!==o.year)n=function(e,t){var n,a=t.year,i=0==t.month?e.getMonth():t.month-1,o=t.day;if(0==o)return e;r(a)?(n=new Date(e.getFullYear(),i,o)).getTime()<e.getTime()&&(n=new Date(e.getFullYear()+1,i,o)):n=new Date(a<50?2e3+a:1900+a,i,o);if(n.getMonth()!=i)return e;return n}(a,i);else{var s=i;n=void 0!==s.modifier&&void 0!==s.offset&&void 0!==s.tag&&void 0!==s.unit?function(e,t){var n;switch(t.unit){case 0:return(n=new Date(e.getFullYear(),e.getMonth(),e.getDate())).setDate(n.getDate()+t.offset),n;case 5:return function(e,t,n){if(t>-5&&t<5){var r=7*t+((n+6)%7+1-e.getDay());return e.setDate(e.getDate()+r),e}return(r=(n-e.getDay())%7)<0&&(r+=7),e.setDate(e.getDate()+r),e}(e,t.offset,t.tag);case 2:var r=1;switch(t.modifier){case 1:break;case 2:r=16;break;default:0==t.offset&&(r=e.getDate())}return(n=new Date(e.getFullYear(),e.getMonth(),r)).setMonth(n.getMonth()+t.offset),n.getTime()<e.getTime()&&n.setDate(n.getDate()+e.getDate()-1),n;case 1:if((n=new Date(e.getFullYear(),e.getMonth(),e.getDate())).setDate(e.getDate()+7*t.offset),1==t.modifier||0==t.modifier)return n.setDate(n.getDate()+1-n.getDay()),n.getTime()<e.getTime()?e:n;if(2==t.modifier)return n.setDate(n.getDate()+5-n.getDay()),n;break;case 4:return function(e,t){var n,r,a;if(n=e,t.tag<=0||t.tag>12||t.offset<=0||t.offset>5)return e;var i=(12+t.tag-n.getMonth()-1)%12;if(r=new Date(n.getFullYear(),n.getMonth()+i,1),1==t.modifier)return 1==t.offset&&6!=r.getDay()&&0!=r.getDay()?r:((a=new Date(r.getFullYear(),r.getMonth(),r.getDate())).setDate(a.getDate()+(1-r.getDay()+7)%7),6!=r.getDay()&&0!=r.getDay()&&1!=r.getDay()&&a.setDate(a.getDate()-7),a.setDate(a.getDate()+7*(t.offset-1)),a.getMonth()+1!=t.tag?e:a);var o=1-(a=new Date(r.getFullYear(),r.getMonth(),(s=r.getMonth(),c=r.getFullYear(),32-new Date(c,s,32).getDate()))).getDay();return o>0&&(o-=7),a.setDate(a.getDate()+o),a.setDate(a.getDate()+7*(1-t.offset)),a.getMonth()+1!=t.tag?6!=r.getDay()&&0!=r.getDay()?r:e:a;var s,c}(e,t);case 3:if(t.offset>0)return new Date(e.getFullYear()+t.offset,0,1)}return e}(a,i):a}return isNaN(n.getTime())?t:(n.setMilliseconds(n.getMilliseconds()+(kn()?Nn(e):On(e))),n)}catch(e){return t}}function On(e){var t=0;return t+=3600*e.getHours(),t+=60*e.getMinutes(),t+=e.getSeconds(),t*=1e3,t+=e.getMilliseconds()}function Nn(e){var t=0;return t+=3600*e.getUTCHours(),t+=60*e.getUTCMinutes(),t+=e.getUTCSeconds(),t*=1e3,t+=e.getUTCMilliseconds()}function In(e){for(var t=oi("timeZoneOffsets"),n=0;n<t.length;n++){var r=t[n],a=parseInt(r.start),i=parseInt(r.end);if(e.getTime()-a>=0&&e.getTime()-i<0)return parseInt(r.offset)}throw Y("input",o("l_InvalidDate_Text"))}function Pn(e){var t=function(e){var t=new Date(e.year,e.month,e.date,e.hours,e.minutes,e.seconds,null===e.milliseconds?0:e.milliseconds);if(isNaN(t.getTime()))throw Y("input",o("l_InvalidDate_Text"));return t}(e);if(!r(oi("timeZoneOffsets"))){var n=In(t);t.setUTCMinutes(t.getUTCMinutes()-n),n=e.timezoneOffset?e.timezoneOffset:-1*t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()+n)}return t}function Rn(e){return{month:e.getMonth(),date:e.getDate(),year:e.getFullYear(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds(),milliseconds:e.getMilliseconds()}}function Fn(e){return r(e)?{addresses:[],emailAddresses:[],urls:[],taskSuggestions:[],meetingSuggestions:[],phoneNumbers:[],contacts:[],flightReservations:[],parcelDelivery:[]}:{addresses:Un(e[En.address]),emailAddresses:jn(e[En.emailAddress]),urls:Wn(e[En.url]),taskSuggestions:Hn(e[En.taskSuggestion]),meetingSuggestions:Bn(e[En.meetingSuggestion]),phoneNumbers:Jn(e[En.phoneNumber]),contacts:Ln(e[En.contact]),flightReservations:Yn(e[En.flightReservations]),parcelDelivery:Yn(e[En.parcelDeliveries])}}!function(e){e.meetingSuggestion="MeetingSuggestions",e.taskSuggestion="TaskSuggestions",e.address="Addresses",e.emailAddress="EmailAddresses",e.url="Urls",e.phoneNumber="PhoneNumbers",e.contact="Contacts",e.flightReservations="FlightReservations",e.parcelDeliveries="ParcelDeliveries"}(En||(En={}));var Un=function(e){return Dn(e||[],bn)},jn=function(e){return 0===J()?[]:e||[]},Wn=function(e){return e||[]},Hn=function(e){if(0===J())return[];var t=e||[];return Dn(t=t.map((function(e){return{assignees:(e.Assignees||[]).map(hn),taskString:e.TaskString}})),Cn)},Bn=function(e){if(0===J())return[];var t=e||[];return Dn(t=t.map((function(e){var t=""!==e.StartTime?zn(e.StartTime):void 0,n=""!==e.EndTime?zn(e.EndTime):void 0;return{meetingString:e.MeetingString,attendees:(e.Attendees||[]).map(hn),location:e.Location,subject:e.Subject,start:void 0!==e.StartTime?t:void 0,end:void 0!==e.EndTime?n:void 0}})),wn)};function zn(e){var t=_n(new Date(e),new Date(oi("dateTimeSent")));return t.getTime()!==new Date(e).getTime()?Pn(Rn(t)):new Date(e)}var Jn=function(e){return(e||[]).map((function(e){return{phoneString:e.PhoneString,originalPhoneString:e.OriginalPhoneString,type:e.Type}}))},Ln=function(e){if(0===J())return[];var t=e||[];return Dn(t=t.map((function(e){return{personName:e.PersonName,businessName:e.BusinessName,phoneNumbers:Jn(e.PhoneNumbers||[]),emailAddresses:e.EmailAddresses||[],urls:e.Urls||[],addresses:e.Addresses||[],contactString:e.ContactString}})),xn)},Yn=function(e){return 0===J()?[]:e||[]},qn={meetingSuggestion:1,taskSuggestion:1,address:0,emailAddress:1,url:0,phoneNumber:0,contact:1,flightReservations:1,parcelDeliveries:1},Vn={meetingSuggestion:"meetingSuggestions",taskSuggestion:"taskSuggestions",address:"addresses",emailAddress:"emailAddresses",url:"urls",phoneNumber:"phoneNumbers",contact:"contacts",flightReservations:"flightReservations",parcelDeliveries:"parcelDeliveries"},Zn=function(){return Fn(oi("entities"))},Gn=function(e){var t=Fn(oi("entities"));G(void 0!==qn[e]?qn[e]:1,e);var n=Vn[e];return void 0===n?null:t[n]},Kn=function(e){return function(e,t){G(1,"item.getFilteredEntitiesByName");var n=Object.keys(e).map((function(n){return e[n][t]?{entityType:n,name:t,entities:e[n][t]}:void 0})).filter((function(e){return void 0!==e}));if(0===n.length)return null;var r=n[0];switch(r.entityType){case En.meetingSuggestion:return Bn(r.entities);case En.address:return Un(r.entities);case En.contact:return Ln(r.entities);case En.emailAddress:return jn(r.entities);case En.phoneNumber:return Jn(r.entities);case En.taskSuggestion:return Hn(r.entities);case En.url:return Wn(r.entities);default:return Yn(r.entities)}}(oi("filteredEntities"),e)},$n=function(){return oi("regExMatches")},Xn=function(e){return(oi("regExMatches")||{})[e]},Qn=function(){return Fn(oi("selectedEntities"))},er=function(){return oi("selectedRegExMatches")};function tr(e){var t=[];if(0===J())return[];if(e)for(var n=0;n<e.length;n++)if(e[n]){var r=nr(e[n]);t.push(r)}return t}function nr(e){if(null!==e.attachmentType||void 0!==e.attachmentType)switch(e.attachmentType){case 0:e.attachmentType=X.AttachmentType.File;break;case 1:e.attachmentType=X.AttachmentType.Item;break;case 2:e.attachmentType=X.AttachmentType.Cloud}return e}function rr(e){return JSON.parse(JSON.stringify(e))}function ar(e){return e<0&&(e=1),e<10?"0"+e.toString():e.toString()}function ir(e,t,n){if(!or(e,t,n))throw Y("seriesTime",o("l_InvalidDate_Text"))}function or(e,t,n){return!(e<1601||t<1||t>12||n<1||n>31)}var sr=function(){function e(){this.startYear=0,this.startMonth=0,this.startDay=0,this.endYear=0,this.endMonth=0,this.endDay=0,this.startTimeMinutes=0,this.durationMinutes=0}return e.prototype.getDuration=function(){return this.durationMinutes},e.prototype.getEndTime=function(){var e=this.startTimeMinutes+this.durationMinutes,t=e%60;return"T"+ar(Math.floor(e/60)%24)+":"+ar(t)+":00.000"},e.prototype.getEndDate=function(){return 0===this.endYear&&0===this.endMonth&&0===this.endDay?null:this.endYear.toString()+"-"+ar(this.endMonth)+"-"+ar(this.endDay)},e.prototype.getStartDate=function(){return this.startYear.toString()+"-"+ar(this.startMonth)+"-"+ar(this.startDay)},e.prototype.getStartTime=function(){var e=this.startTimeMinutes%60;return"T"+ar(Math.floor(this.startTimeMinutes/60))+":"+ar(e)+":00.000"},e.prototype.setDuration=function(e){if(!(e>=0))throw Y(void 0,o("l_InvalidTime_Text"));this.durationMinutes=e},e.prototype.setEndDate=function(e,t,n){null===e||r(t)||null===n?null!==e?this.setDateHelper(!1,e):null==e&&(this.endYear=0,this.endMonth=0,this.endDay=0):this.setDateHelper(!1,e,t,n)},e.prototype.setStartDate=function(e,t,n){null===e||r(t)||null===n?null!==e&&this.setDateHelper(!0,e):this.setDateHelper(!0,e,t,n)},e.prototype.setStartTime=function(e,t){if(r(e)||r(t)){if(!r(e)){var n=e,a="2017-01-15"+n+"Z";if(!new RegExp("^T[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d{3}$").test(n))throw Y(void 0,o("l_InvalidTime_Text"));var i=new Date(a);if(r(i)||isNaN(i.getUTCHours())||isNaN(i.getUTCMinutes()))throw Y(void 0,o("l_InvalidTime_Text"));this.startTimeMinutes=60*i.getUTCHours()+i.getUTCMinutes()}}else{var s=60*e+t;if(!(s>=0))throw Y(void 0,o("l_InvalidTime_Text"));this.startTimeMinutes=s}},e.prototype.isValid=function(){return!!or(this.startYear,this.startMonth,this.startDay)&&(!(0!==this.endDay&&0!==this.endMonth&&0!==this.endYear&&!or(this.endYear,this.endMonth,this.endDay))&&!(this.startTimeMinutes<0||this.durationMinutes<=0))},e.prototype.exportToSeriesTimeJson=function(){var e={};return e.startYear=this.startYear,e.startMonth=this.startMonth,e.startDay=this.startDay,0===this.endYear&&0===this.endMonth&&0===this.endDay?e.noEndDate=!0:(e.endYear=this.endYear,e.endMonth=this.endMonth,e.endDay=this.endDay),e.startTimeMin=this.startTimeMinutes,this.durationMinutes>0&&(e.durationMin=this.durationMinutes),e},e.prototype.importFromSeriesTimeJsonObject=function(e){this.startYear=e.startYear,this.startMonth=e.startMonth,this.startDay=e.startDay,null!=e.noEndDate&&"boolean"===typeof e.noEndDate?(this.endYear=0,this.endMonth=0,this.endDay=0):(this.endYear=e.endYear,this.endMonth=e.endMonth,this.endDay=e.endDay),this.startTimeMinutes=e.startTimeMin,this.durationMinutes=e.durationMin},e.prototype.setDateHelper=function(e,t,n,a){var i=0,s=0,c=0;if(null===t||r(n)||null===a){if(null!==t){var d=t;!function(e){if(!new RegExp("^\\d{4}-(?:[0]\\d|1[0-2])-(?:[0-2]\\d|3[01])$").test(e))throw Y("seriesTime",o("l_InvalidDate_Text"))}(d);var l=new Date(d);null===l||isNaN(l.getUTCFullYear())||isNaN(l.getUTCMonth())||isNaN(l.getUTCDate())||(ir(l.getUTCFullYear(),l.getUTCMonth()+1,l.getUTCDate()),i=l.getUTCFullYear(),s=l.getUTCMonth()+1,c=l.getUTCDate())}}else ir(t,n+1,a),i=t,s=n+1,c=a;0!==i&&0!==s&&0!==c&&(e?(this.startYear=i,this.startMonth=s,this.startDay=c):(this.endYear=i,this.endMonth=s,this.endDay=c))},e.prototype.isEndAfterStart=function(){if(0===this.endYear&&0===this.endMonth&&0===this.endDay)return!0;var e=new Date;e.setFullYear(this.startYear),e.setMonth(this.startMonth-1),e.setDate(this.startDay);var t=new Date;return t.setFullYear(this.endYear),t.setMonth(this.endMonth-1),t.setDate(this.endDay),t>=e},e}();function cr(e){if(r(e)||r(e.seriesTimeJson))return e;var t={recurrenceType:"",recurrenceProperties:null,recurrenceTimeZone:null},n=new sr;return r(e.recurrenceProperties)||(t.recurrenceProperties=rr(e.recurrenceProperties)),t.recurrenceType=e.recurrenceType,r(e.recurrenceTimeZone)||(t.recurrenceTimeZone=rr(e.recurrenceTimeZone)),n.importFromSeriesTimeJsonObject(e.seriesTimeJson),t.seriesTime=n,t}function dr(){var e=oi("sender"),t=oi("from"),n=oi("dateTimeCreated"),r=oi("dateTimeModified"),a=oi("end"),i=oi("start");return Le({},{attachments:tr(oi("attachments")),bcc:(oi("bcc")||[]).map(gn),body:Ft(!1),categories:on(),cc:(oi("cc")||[]).map(gn),conversationId:oi("conversationId"),dateTimeCreated:n?new Date(n):void 0,dateTimeModified:r?new Date(r):void 0,end:a?new Date(a):void 0,from:t?gn(t):void 0,getAllInternetHeadersAsync:Ut,internetMessageId:oi("internetMessageId"),itemClass:oi("itemClass"),itemId:oi("id"),itemType:"message",location:oi("location"),move:ln,normalizedSubject:oi("normalizedSubject"),notificationMessages:Yt(),recurrence:cr(oi("recurrence")),seriesId:oi("seriesId"),sender:e?gn(e):void 0,start:i?new Date(i):void 0,subject:oi("subject"),to:(oi("to")||[]).map(gn),displayReplyForm:$t,displayReplyFormAsync:Qt,displayReplyAllForm:Xt,displayReplyAllFormAsync:en,getAttachmentContentAsync:sn,getEntities:Zn,getEntitiesByType:Gn,getFilteredEntitiesByName:Kn,getInitializationContextAsync:it,getRegExMatches:$n,getRegExMatchesByName:Xn,getSelectedEntities:Qn,getSelectedRegExMatches:er,loadCustomPropertiesAsync:ft,delayDeliveryTime:Sn(!1),isAllDayEvent:oi("isAllDayEvent"),sensitivity:oi("sensitivity")})}function lr(e){if(r(e)||""===e||"string"!==typeof e)throw Y("attachmentName");$(e.length,0,255,"attachmentName")}function ur(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];G(2,"item.addFileAttachmentAsync");var a=K(n,!1,!1),i=!1;a.options&&(i=!!a.options.isInline);var o=t,s={uri:e,name:o,isInline:i,__timeout__:6e5};fr(s),U(16,a.asyncContext,a.callback,s,void 0)}function fr(e){jt("uri",e.uri),$(e.uri.length,0,2048,"uri"),lr(e.name)}function mr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];G(2,"item.addBase64FileAttachmentAsync");var a=K(n,!1,!1),i=!1;a.options&&(i=!!a.options.isInline);var o={base64String:e,name:t,isInline:i,__timeout__:6e5};pr(o),U(148,a.asyncContext,a.callback,o,void 0)}function pr(e){jt("base64Encoded",e.base64String),$(e.base64String.length,0,27892122,"base64File"),lr(e.name)}function yr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];G(2,"item.addItemAttachmentAsync");var a=K(n,!1,!1),i={itemId:e,name:t};gr(i),U(19,a.asyncContext,a.callback,{itemId:se(i.itemId),name:i.name,__timeout__:6e5},void 0)}function gr(e){jt("itemId",e.itemId),jt("attachmentName",e.name),$(e.itemId.length,0,200,"itemId"),$(e.name.length,0,255,"attachmentName")}function hr(){U(41,void 0,void 0,void 0,void 0)}function vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"item.getAttachmentsAsync");var n=K(e,!0,!1);U(149,n.asyncContext,n.callback,void 0,tr)}function Tr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"item.getSelectedDataAsync");var r=K(t,!0,!1),a={coercionType:ht(e)};if(void 0===a.coercionType)throw Y("coercionType");U(28,r.asyncContext,r.callback,a,void 0)}function Ar(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"item.removeAttachmentAsync");var r=K(t,!1,!1),a={attachmentIndex:e};Sr(a),U(20,r.asyncContext,r.callback,a,void 0)}function Sr(e){jt("attachmentId",e.attachmentIndex),$(e.attachmentIndex.length,0,200,"attachmentId")}function Dr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(2,"item.saveAsync");var n=K(e,!1,!1);U(32,n.asyncContext,n.callback,void 0,void 0)}function br(e){if(!Array.isArray(e.recipientArray))throw Y("recipients");if(e.recipientArray.length>100)throw V("recipients",e.recipientArray.length);var t=e.recipientArray.map((function(e){if(r(e))throw Y("recipients");if("string"===typeof e)return wr(e,e),Cr(e,e);if("object"===typeof e)return wr(e.displayName,e.emailAddress),Cr(e.displayName,e.emailAddress);throw Y("recipients")}));e.recipientArray=t}function wr(e,t){if(!e&&!t)throw Y("recipients");if("string"===typeof e&&e.length>255)throw V("recipients",e.length,o("l_DisplayNameTooLong_Text"));if("string"===typeof t&&t.length>571)throw V("recipients",t.length,o("l_EmailAddressTooLong_Text"));if("string"!==typeof e&&"string"!==typeof t)throw Y("recipients")}function Cr(e,t){return{address:t,name:e}}function xr(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];G(2,e+".addAsync");var a=K(n,!1,!1),i={recipientField:W[e],recipientArray:t};br(i),U(22,a.asyncContext,a.callback,i,void 0)}}function kr(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];G(1,e+".getAsync");var r=K(t,!0,!1);U(15,r.asyncContext,r.callback,{recipientField:W[e]},Er)}}function Er(e){return null===e||void 0===e?[]:e.map((function(e){return gn(e)}))}function Mr(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];G(2,e+".setAsync");var a=K(n,!1,!1),i={recipientField:W[e],recipientArray:t};br(i),U(21,a.asyncContext,a.callback,i,void 0)}}function _r(e){return Le({},{addAsync:xr(e),getAsync:kr(e),setAsync:Mr(e)})}function Or(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];G(1,e+".getAsync");var r=K(t,!0,!1);U(107,r.asyncContext,r.callback,void 0,Nr)}}function Nr(e){return r(e)?null:gn(e)}function Ir(e){return Le({},{getAsync:Or(e)})}function Pr(e){if(r(e))throw Y("internetHeaders");if(!Array.isArray(e))throw Z("internetHeaders",typeof e,"Array");if(0===e.length)throw Y("internetHeaders");for(var t=0,n=e;t<n.length;t++){jt("internetHeaders",n[t])}}function Rr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"internetHeaders.removeAsync");var r=K(t,!1,!1),a={internetHeaderKeys:e};Fr(a),U(153,r.asyncContext,r.callback,a,void 0)}function Fr(e){Pr(e.internetHeaderKeys)}function Ur(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(1,"internetHeaders.getAsync");var r=K(t,!0,!1),a={internetHeaderKeys:e};jr(a),U(151,r.asyncContext,r.callback,a,void 0)}function jr(e){Pr(e.internetHeaderKeys)}function Wr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"internetHeaders.setAsync");var r=K(t,!1,!1),a={internetHeaderNameValuePairs:e};Hr(a),U(152,r.asyncContext,r.callback,a,void 0)}function Hr(e){if(r(e.internetHeaderNameValuePairs))throw q("internetHeaders");var t=Object.keys(e.internetHeaderNameValuePairs);if(0===t.length)throw Y("internetHeaders");for(var n=0,a=t;n<a.length;n++){var i=a[n],o=e.internetHeaderNameValuePairs[i];if(jt("internetHeaders",i),"string"!==typeof o)throw Z("internetHeaders",typeof o,"string");$(i.length+o.length,0,998,i)}}function Br(e){var t=Le({},{getAsync:Ur});return e&&Le(t,{removeAsync:Rr,setAsync:Wr}),t}function zr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"subject.getAsync");var n=K(e,!0,!1);U(18,n.asyncContext,n.callback,void 0,void 0)}var Jr;function Lr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"subject.setAsync");var r=K(t,!1,!1),a={subject:e};Yr(a),U(17,r.asyncContext,r.callback,a,void 0)}function Yr(e){if("string"!==typeof e.subject)throw Z("subject",typeof e.subject,"string");$(e.subject.length,0,255,"subject")}function qr(){return Le({},{getAsync:zr,setAsync:Lr})}function Vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"item.getItemIdAsync");var n=K(e,!0,!1);U(164,n.asyncContext,n.callback,void 0,void 0)}function Zr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"item.getComposeTypeAsync");var n=K(e,!0,!1);Pt(_t,"getComposeTypeAsync"),U(174,n.asyncContext,n.callback,void 0,void 0)}function Gr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"isClientSignatureEnabledAsync");var n=K(e,!0,!1);Pt(_t,"isClientSignatureEnabledAsync"),U(175,n.asyncContext,n.callback,void 0,void 0)}function Kr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(2,"disableClientSignatureAsync");var n=K(e,!0,!1);Pt(_t,"disableClientSignatureAsync"),U(176,n.asyncContext,n.callback,void 0,void 0)}function $r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"sessionData.getAsync");var r=K(t,!0,!1);Pt(Nt,"sessionData.getAsync");var a={name:e};Xr(a),U(186,r.asyncContext,r.callback,a,void 0)}function Xr(e){jt("name",e.name)}function Qr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];G(2,"sessionData.setAsync");var a=K(n,!1,!1),i={name:e,value:t};Pt(Nt,"sessionData.setAsync"),ea(i),U(185,a.asyncContext,a.callback,i,void 0)}function ea(e){jt("name",e.name),function(e,t){if(r(t))throw q(e);if("string"!==typeof t)throw Z(e,typeof t,"string")}("value",e.value)}function ta(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(2,"sessionData.getAllAsync");var n=K(e,!0,!1);Pt(Nt,"sessionData.getAllAsync"),U(187,n.asyncContext,n.callback,void 0,void 0)}function na(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(2,"sessionData.clearAsync");var n=K(e,!1,!1);Pt(Nt,"sessionData.clearAsync"),U(188,n.asyncContext,n.callback,void 0,void 0)}function ra(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"sessionData.removeAsync");var r=K(t,!1,!1),a={name:e};Pt(Nt,"sessionData.removeAsync"),aa(a),U(189,r.asyncContext,r.callback,a,void 0)}function aa(e){jt("name",e.name)}function ia(){return Le({},{getAsync:$r,setAsync:Qr,getAllAsync:ta,clearAsync:na,removeAsync:ra})}function oa(e){if(r(e))throw q("locationIdentifier");if(!Array.isArray(e))throw Z("locationIdentifier",typeof e,"Array");if(0===e.length)throw Y("locationIdentifier");for(var t=0,n=e;t<n.length;t++){sa(n[t])}}function sa(e){if(r(e)||r(e.id)||r(e.type))throw q("locationIdentifier");if(e.type!==X.LocationType.Room&&e.type!==X.LocationType.Custom)throw Y("type");!function(e,t){if(""===e)throw Y("id");if(t===X.LocationType.Room&&e.length>571)throw Y("id")}(e.id,e.type)}function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"enhancedLocations.addAsync");var r=K(t,!1,!1),a={enhancedLocations:e};da(a),U(155,r.asyncContext,r.callback,a,void 0)}function da(e){oa(e.enhancedLocations)}function la(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"enhancedLocations.getAsync");var n=K(e,!0,!1);U(154,n.asyncContext,n.callback,void 0,void 0)}function ua(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"enhancedLocations.removeAsync");var r=K(t,!1,!1),a={enhancedLocations:e};fa(a),U(156,r.asyncContext,r.callback,a,void 0)}function fa(e){oa(e.enhancedLocations)}function ma(e){var t=Le({},{getAsync:la});return e&&Le(t,{addAsync:ca,removeAsync:ua}),t}function pa(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];G(1,e+".getAsync");var r=K(t,!0,!1);U(24,r.asyncContext,r.callback,{TimeProperty:Jr[e]},ya)}}function ya(e){return new Date(e)}!function(e){e[e.start=1]="start",e[e.end=2]="end"}(Jr||(Jr={}));function ga(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];G(2,e+".setAsync");var a=K(n,!1,!1),i={date:t};ha(i),U(25,a.asyncContext,a.callback,{TimeProperty:Jr[e],time:i.date.getTime()},void 0)}}function ha(e){if(!Te(e.date))throw Z("dateTime",typeof e.date,typeof Date);if(isNaN(e.date.getTime()))throw Y("dateTime");if(e.date.getTime()<-864e13||e.date.getTime()>864e13)throw V("dateTime")}function va(e){return Le({},{getAsync:pa(e),setAsync:ga(e)})}function Ta(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"location.getAsync");var n=K(e,!0,!1);U(26,n.asyncContext,n.callback,void 0,void 0)}function Aa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"location.setAsync");var r=K(t,!1,!1),a={location:e};Sa(a),U(27,r.asyncContext,r.callback,a,void 0)}function Sa(e){if(r(e.location))throw q("location");if("string"!==typeof e.location)throw Z("location",typeof e.location,"string");$(e.location.length,0,255,"location")}function Da(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"recurrenceProperties.getAsync");var n=K(e,!0,!1);U(103,n.asyncContext,n.callback,void 0,ba)}function ba(e){if(null!==e&&null!==e.seriesTimeJson){var t=new sr;t.importFromSeriesTimeJsonObject(e.seriesTimeJson),delete e.seriesTimeJson,e.seriesTime=t}return e}function wa(e){if(!r(e)){if(r((e=e).recurrenceType))throw q("recurrenceType");if(r(e.seriesTime))throw q("seriesTime");if(!(e.seriesTime instanceof sr)||!e.seriesTime.isValid())throw Y("seriesTime");if(!e.seriesTime.isEndAfterStart())throw Y("seriesTime",o("l_InvalidEventDates_Text"));if(function(e){if(e!==X.RecurrenceType.Daily&&e!==X.RecurrenceType.Weekly&&e!==X.RecurrenceType.Weekday&&e!==X.RecurrenceType.Yearly&&e!==X.RecurrenceType.Monthly)throw Y("recurrenceType")}(e.recurrenceType),e.recurrenceType!==X.RecurrenceType.Weekday&&r(e.recurrenceProperties))throw q("recurrenceType");if(!r(e.recurrenceTimeZone)){if(r(e.recurrenceTimeZone.name))throw q("name");if("string"!==typeof e.recurrenceTimeZone.name)throw Z("name",typeof e.recurrenceTimeZone.name,"string")}e.recurrenceType===X.RecurrenceType.Daily?Ca(e.recurrenceProperties):e.recurrenceType===X.RecurrenceType.Weekly?function(e){if(Ca(e),r(e.days))throw Z("days");if(!Array.isArray(e.days))throw Z("days");if(function(e){for(var t=0;t<e.length;t++)if(!xa(e[t],!1))throw Y("days")}(e.days),!r(e.firstDayOfWeek)){if("string"!==typeof e.firstDayOfWeek)throw Z("firstDayOfWeek");if(!xa(e.firstDayOfWeek,!1))throw Y("firstDayOfWeek")}}(e.recurrenceProperties):e.recurrenceType===X.RecurrenceType.Monthly?function(e){if(r(e.interval))throw q("interval");if("number"!==typeof e.interval)throw Z("interval",typeof e.interval,"number");if(r(e.dayOfMonth)){if(r(e.dayOfWeek)||r(e.weekNumber))throw Y(void 0,o("l_Recurrence_Error_Properties_Invalid_Text"));if("string"!==typeof e.dayOfWeek)throw Z("dayOfWeek",typeof e.dayOfWeek,"string");if(!xa(e.dayOfWeek,!0))throw Y("dayOfWeek");if("string"!==typeof e.weekNumber)throw Z("weekNumber",typeof e.weekNumber,"string");ka(e.weekNumber)}else{if("number"!==typeof e.dayOfMonth)throw Z("dayOfMonth",typeof e.dayOfMonth,"number");Ea(e.dayOfMonth)}}(e.recurrenceProperties):e.recurrenceType===X.RecurrenceType.Yearly&&function(e){if(r(e.interval))throw q("interval");if("number"!==typeof e.interval)throw Z("interval",typeof e.interval,"number");if(r(e.month))throw q("month");if("string"!==typeof e.month)throw Z("month",typeof e.month,"string");if(function(e){if(e!==X.Month.Jan&&e!==X.Month.Feb&&e!==X.Month.Mar&&e!==X.Month.Apr&&e!==X.Month.May&&e!==X.Month.Jun&&e!==X.Month.Jul&&e!==X.Month.Aug&&e!==X.Month.Sep&&e!==X.Month.Oct&&e!==X.Month.Nov&&e!==X.Month.Dec)throw Y("month")}(e.month),r(e.dayOfMonth)){if(r(e.weekNumber)||r(e.dayOfWeek))throw Y(void 0,o("l_Recurrence_Error_Properties_Invalid_Text"));if("string"!==typeof e.dayOfWeek)throw Z("dayOfWeek",typeof e.dayOfWeek,"string");if(!xa(e.dayOfWeek,!0))throw Y("dayOfWeek");if("string"!==typeof e.weekNumber)throw Z("weekNumber",typeof e.weekNumber,"string");ka(e.weekNumber)}else{if("number"!==typeof e.dayOfMonth)throw Z("dayOfMonth",typeof e.dayOfMonth,"number");Ea(e.dayOfMonth)}}(e.recurrenceProperties)}}function Ca(e){if(r(e.interval))throw q("interval");if("number"!==typeof e.interval)throw Z("interval",typeof e.interval,"number");if(e.interval<=0)throw Y("interval")}function xa(e,t){var n=e===X.Days.Mon||e===X.Days.Tue||e===X.Days.Wed||e===X.Days.Thu||e===X.Days.Fri||e===X.Days.Sat||e===X.Days.Sun;return t&&(e===X.Days.WeekendDay||e===X.Days.Weekday||e===X.Days.Day)||n}function ka(e){if(e!==X.WeekNumber.First&&e!==X.WeekNumber.Second&&e!==X.WeekNumber.Third&&e!==X.WeekNumber.Fourth&&e!==X.WeekNumber.Last)throw Y("weekNumber")}function Ea(e){if(e<1||e>31)throw Y("dayOfMonth")}function Ma(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"recurrenceProperties.setAsync");var a=ja().seriesId;if(!r(a)&&a.length>0)throw Y(void 0,o("l_Recurrence_Error_Instance_SetAsync_Text"));wa(e);var i=K(t,!1,!1),s=_a(e),c={recurrenceData:s};U(104,i.asyncContext,i.callback,c,void 0)}function _a(e){if(null!==e&&null!==e.seriesTime&&e.seriesTime instanceof sr)return{recurrenceProperties:e.recurrenceProperties,recurrenceTimeZone:e.recurrenceTimeZone,recurrenceType:e.recurrenceType,seriesTimeJson:e.seriesTime.exportToSeriesTimeJson()};return e}function Oa(e){var t=Le({},{getAsync:Da});return e&&Le(t,{setAsync:Ma}),t}function Na(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"isAllDayEvent.getAsync");var n=K(e,!0,!1);Pt(Mt,"isAllDayEvent.getAsync"),U(169,n.asyncContext,n.callback,void 0,void 0)}function Ia(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"isAllDayEvent.setAsync");var r=K(t,!0,!1),a={isAllDayEvent:e};Pt(Mt,"isAllDayEvent.setAsync"),Pa(a),U(170,r.asyncContext,r.callback,a,void 0)}function Pa(e){if(r(e.isAllDayEvent))throw q("isAllDayEvent");if("boolean"!==typeof e.isAllDayEvent)throw Z("isAllDayEvent",typeof e.isAllDayEvent,"boolean")}function Ra(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];G(2,"sensitivity.setAsync");var r=K(t,!0,!1),a={sensitivity:e};Pt(Mt,"sensitivity.setAsync"),Fa(a),U(172,r.asyncContext,r.callback,a,void 0)}function Fa(e){jt("sensitivity",e.sensitivity),function(e){if(e!==X.AppointmentSensitivityType.Normal&&e!==X.AppointmentSensitivityType.Personal&&e!==X.AppointmentSensitivityType.Private&&e!==X.AppointmentSensitivityType.Confidential)throw Y("sensitivity")}(e.sensitivity)}function Ua(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"sensitivity.getAsync");var n=K(e,!0,!1);Pt(Mt,"sensitivity.getAsync"),U(171,n.asyncContext,n.callback,void 0,void 0)}function ja(){return Le({},{body:Ft(!0),categories:on(),end:va("end"),enhancedLocation:ma(!0),itemType:"appointment",location:Le({},{getAsync:Ta,setAsync:Aa}),notificationMessages:Yt(),optionalAttendees:_r("optionalAttendees"),organizer:Ir("organizer"),recurrence:Oa(!0),requiredAttendees:_r("requiredAttendees"),seriesId:oi("seriesId"),start:va("start"),subject:qr(),addFileAttachmentAsync:ur,addFileAttachmentFromBase64Async:mr,addItemAttachmentAsync:yr,close:hr,getAttachmentsAsync:vr,getAttachmentContentAsync:sn,getInitializationContextAsync:it,getItemIdAsync:Vr,getSelectedDataAsync:Tr,loadCustomPropertiesAsync:ft,removeAttachmentAsync:Ar,saveAsync:Dr,setSelectedDataAsync:kt(29),isAllDayEvent:Le({},{getAsync:Na,setAsync:Ia}),sensitivity:Le({},{getAsync:Ua,setAsync:Ra}),isClientSignatureEnabledAsync:Gr,disableClientSignatureAsync:Kr,sessionData:ia()})}var Wa,Ha=n(0),Ba=n(1);function za(e){var t={consentState:e,extensionId:oi("extensionId")};!function(e){if(e!==Wa.Consented&&e!==Wa.NotConsented&&e!==Wa.NotResponded)throw V("consentState")}(e),U(40,void 0,void 0,t,void 0)}function Ja(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=K(t,!1,!1),a={module:e};La(e),e===X.ModuleType.Addins&&(r.options&&r.options.queryString?a.queryString=r.options.queryString:a.queryString=""),U(45,r.asyncContext,r.callback,a,void 0)}function La(e){if(r(e))throw q("module");if(""===e)throw Y("module");if(e!==X.ModuleType.Addins)throw Y("module")}function Ya(e){if(r(e))throw q("data");U(402,void 0,void 0,e,void 0)}function qa(e){if(r(e))throw q("data");U(401,void 0,void 0,e,void 0)}function Va(e){if(r(e))throw q("data");U(400,void 0,void 0,e,void 0)}function Za(e,t,n,r){return U(403,void 0,void 0,{launchUrl:e},void 0),window}function Ga(e){if(r(e))throw q("data");U(163,void 0,void 0,{telemetryData:e},void 0)}function Ka(e){if(r(e))throw q("data");U(193,void 0,void 0,{telemetryData:e},void 0)}!function(e){e[e.NotResponded=0]="NotResponded",e[e.NotConsented=1]="NotConsented",e[e.Consented=2]="Consented"}(Wa||(Wa={}));var $a=function(){return($a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function Xa(e){if(!Te(e))throw Y("timeValue");var t=new Date(e.getTime()),n=-1*t.getTimezoneOffset();return r(oi("timeZoneOffsets"))||(t.setUTCMinutes(t.getUTCMinutes()-n),n=In(t),t.setUTCMinutes(t.getUTCMinutes()+n)),$a({timezoneOffset:n},Rn(t))}function Qa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=K(t,!1,!1),a={ewsIdOrEmail:e};ei(a),U(43,r.asyncContext,r.callback,{ewsIdOrEmail:e.trim()},void 0)}function ei(e){if(r(e.ewsIdOrEmail))throw q("ewsIdOrEmail");if(function(e){if("string"!==typeof e)throw Y("ewsIdOrEmail")}(e.ewsIdOrEmail),""===e.ewsIdOrEmail)throw Y("ewsIdOrEmail","ewsIdOrEmail cannot be empty.")}function ti(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];G(1,"item.getSharedPropertiesAsync");var n=K(e,!0,!1);U(108,n.asyncContext,n.callback,void 0,void 0)}var ni,ri=n(0),ai=function(){var e,t=void 0;switch(at()){case rt.Message:t=dr();break;case rt.MessageCompose:t=Le({},{bcc:_r("bcc"),body:Ft(!0),categories:on(),cc:_r("cc"),conversationId:oi("conversationId"),from:Ir("from"),internetHeaders:Br(!0),itemType:"message",notificationMessages:Yt(),seriesId:oi("seriesId"),subject:qr(),to:_r("to"),addFileAttachmentAsync:ur,addFileAttachmentFromBase64Async:mr,addItemAttachmentAsync:yr,close:hr,getAttachmentsAsync:vr,getAttachmentContentAsync:sn,getInitializationContextAsync:it,getItemIdAsync:Vr,getSelectedDataAsync:Tr,loadCustomPropertiesAsync:ft,removeAttachmentAsync:Ar,saveAsync:Dr,setSelectedDataAsync:kt(29),delayDeliveryTime:Sn(!0),getComposeTypeAsync:Zr,isClientSignatureEnabledAsync:Gr,disableClientSignatureAsync:Kr,sessionData:ia()});break;case rt.Appointment:t=function(){var e=oi("organizer"),t=oi("dateTimeCreated"),n=oi("dateTimeModified"),r=oi("end"),a=oi("start");return Le({},{attachments:tr(oi("attachments")),body:Ft(!1),categories:on(),dateTimeCreated:t?new Date(t):void 0,dateTimeModified:n?new Date(n):void 0,end:r?new Date(r):void 0,enhancedLocation:ma(!1),itemClass:oi("itemClass"),itemId:oi("id"),itemType:"appointment",location:oi("location"),normalizedSubject:oi("normalizedSubject"),notificationMessages:Yt(),optionalAttendees:(oi("cc")||[]).map(gn),organizer:e?gn(e):void 0,recurrence:cr(oi("recurrence")),requiredAttendees:(oi("to")||[]).map(gn),start:a?new Date(a):void 0,seriesId:oi("seriesId"),subject:oi("subject"),displayReplyForm:$t,displayReplyFormAsync:Qt,displayReplyAllForm:Xt,displayReplyAllFormAsync:en,getAttachmentContentAsync:sn,getEntities:Zn,getEntitiesByType:Gn,getFilteredEntitiesByName:Kn,getInitializationContextAsync:it,getRegExMatches:$n,getRegExMatchesByName:Xn,getSelectedEntities:Qn,getSelectedRegExMatches:er,loadCustomPropertiesAsync:ft,isAllDayEvent:oi("isAllDayEvent"),sensitivity:oi("sensitivity")})}();break;case rt.AppointmentCompose:t=ja();break;case rt.MeetingRequest:t=dr();break;default:return}return e=t,Ha.DDA.DispIdHost.addEventSupport(e,new Ha.EventDispatch([Ba.Office.WebExtension.EventType.RecipientsChanged,Ba.Office.WebExtension.EventType.AppointmentTimeChanged,Ba.Office.WebExtension.EventType.AttachmentsChanged,Ba.Office.WebExtension.EventType.EnhancedLocationsChanged,Ba.Office.WebExtension.EventType.InfobarClicked,Ba.Office.WebExtension.EventType.RecurrenceChanged])),function(e){e&&oi("isFromSharedFolder")&&at()!==rt.ItemLess&&Le(e,{getSharedPropertiesAsync:ti})}(t),t},ii=n(0),oi=function(e){return ni&&ni.getInitialDataProp(e)},si=function(){return!ni||!ni.item},ci=function(){return ni&&ni.getAppName()},di=function(){function e(e,t,n){var a=this;this.displayName="mailbox",this.stringLoadedCallback=function(){a.appReadyCallback&&(a.officeAppContext.get_isDialog()?setTimeout((function(){return a.appReadyCallback()}),0):H(1,void 0,a.onInitialDataResponse))},this.initialize=function(e){if(null===e||void 0===e)C(),a.initialData=null,a.item=null;else{a.initialData=e,a.initialData.permissionLevel=li(),a.item=ai();ci()!==ii.AppName.Outlook||function(e){var t=0,n=0;return r(e)||(t=e.indexOf("."),n=parseInt(e.substring(0,t))),n>=16}(oi("hostVersion"))||function(e,t){var n=!1;try{var r=JSON.parse(t.get_requirementMatrix()).Mailbox.split("."),a=e.split(".");(parseInt(r[0])>parseInt(a[0])||parseInt(r[0])===parseInt(a[0])&&parseInt(r[1])>=parseInt(a[1]))&&(n=!0)}catch(e){}return n}("1.5",a.officeAppContext),C(),"undefined"!==typeof e.itemNumber&&w().setCurrentItemNumber(e.itemNumber)}},this.onInitialDataResponse=function(e,t){var n;e&&e!==g.noError||(a.initialize(t),Le(n=a,{ewsUrl:oi("ewsUrl"),restUrl:oi("restUrl"),displayAppointmentForm:de,displayAppointmentFormAsync:le,displayMessageForm:pe,displayMessageFormAsync:ye,displayPersonaCardAsync:Qa,getCallbackTokenAsync:We,getUserIdentityTokenAsync:He,logTelemetry:Ga,logCustomerContentTelemetry:Ka,makeEwsRequestAsync:ze,masterCategories:Le({},{addAsync:$e,getAsync:Xe,removeAsync:tt}),navigateToModuleAsync:Ja,diagnostics:Le({},{hostName:qe(),hostVersion:oi("hostVersion"),OWAView:oi("owaView")}),userProfile:Le({},{accountType:oi("userProfileType"),displayName:oi("userDisplayName"),emailAddress:oi("userEmailAddress"),timeZone:oi("userTimeZone")}),convertToEwsId:ne,convertToLocalClientTime:Xa,convertToRestId:te,convertToUtcClientTime:Pn,RegisterConsentAsync:za,GetIsRead:function(){return oi("isRead")},GetEndPointUrl:function(){return oi("endNodeUrl")},GetConsentMetaData:function(){return oi("consentMetadata")},GetMarketplaceContentMarket:function(){return oi("marketplaceContentMarket")},GetMarketplaceAssetId:function(){return oi("marketplaceAssetId")},GetExtensionId:function(){return oi("extensionId")},CloseApp:nt,recordDataPoint:Ya,recordTrace:qa,trackCtq:Va}),at()!==rt.MessageCompose&&at()!==rt.AppointmentCompose&&Le(n,{displayNewAppointmentForm:Se,displayNewMessageForm:ke,displayNewAppointmentFormAsync:De,displayNewMessageFormAsync:Ee}),ci()===ri.AppName.OutlookWebApp&&oi("openWindowOpen")&&(window.open=Za),setTimeout((function(){return a.appReadyCallback()}),0))},this.officeAppContext=e,this.targetWindow=window,this.appReadyCallback=n,ni=this,function(e){var t;s=e;for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r++){var a=n.item(r);if(a&&a.src){var i=a.src||"";if(t=(i=i.toLowerCase()).indexOf("office_strings.js"),i&&t>0){c=i.replace("office_strings.js","outlook_strings.js"),d=y(d,t,i);break}if(t=i.indexOf("office_strings.debug.js"),i&&t>0){c=i.replace("office_strings.debug.js","outlook_strings.js"),d=y(d,t,i);break}}}if(c){var o=document.getElementsByTagName("head")[0];(l=f(c)).onload=m,l.onreadystatechange=m,window.setTimeout(p,2e3),o.appendChild(l)}}(this.stringLoadedCallback)}return e.prototype.getAppName=function(){return this.officeAppContext.get_appName()},e.prototype.getInitialDataProp=function(e){return this.initialData&&this.initialData[e]},e.prototype.setCurrentItemNumber=function(e){w().setCurrentItemNumber(e)},e.addAdditionalArgs=function(e,t){return t},e.shouldRunInitialDataResponse=function(){return!0},e}(),li=function(){var e=oi("permissionLevel");if(void 0===e)return 0;switch(e){case 1:return 1;case 3:return 2;case 2:return 3;default:return 0}},ui=n(0);function fi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=K(t,!1,!1),a=ui.DDA.SettingsManager.serializeSettings(e);if(JSON.stringify(a).length>32768){var i=j(void 0,ui.DDA.AsyncResultEnum.ErrorCode.Failed,9019,r.asyncContext,"");r.callback&&setTimeout((function(){r.callback&&r.callback(i)}),0)}else ui.AppName.OutlookWebApp===ci()?mi(r,a):pi(r,a)}function mi(e,t){U(404,e.asyncContext,e.callback,[t],void 0)}function pi(e,t){var n=-1,r=null;try{var a=JSON.stringify(t),i={};i.SettingsKey=a,ui.DDA.ClientSettingsManager.write(i)}catch(e){r=e}var o=void 0;null!=r?(n=9019,o=j(void 0,ui.DDA.AsyncResultEnum.ErrorCode.Failed,n,e.asyncContext,r.Message)):(n=0,o=j(void 0,ui.DDA.AsyncResultEnum.ErrorCode.Success,n,e.asyncContext)),e.callback&&e.callback(o)}var yi=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r},gi=n(0),hi=function(){function e(e){this.rawData=e,this.settingsData=null}return e.prototype.getSettingsData=function(){return null==this.settingsData&&(this.settingsData=this.convertFromRawSettings(this.rawData),this.rawData=null),this.settingsData},e.prototype.get=function(e){return this.getSettingsData()[e]},e.prototype.set=function(e,t){this.getSettingsData()[e]=t},e.prototype.remove=function(e){delete this.getSettingsData()[e]},e.prototype.saveAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];fi.apply(void 0,yi([this.getSettingsData()],e))},e.prototype.convertFromRawSettings=function(e){if(null==e)return{};if(ci()!==gi.AppName.OutlookWebApp){var t=e.SettingsKey;if(t)return gi.DDA.SettingsManager.deserializeSettings(t)}return e},e}(),vi={toItemRead:function(e){var t=at();if(t===rt.Message||t===rt.Appointment||t===rt.MeetingRequest)return e;throw Z()},toItemCompose:function(e){var t=at();if(t===rt.MessageCompose||t===rt.AppointmentCompose)return e;throw Z()},toMessage:function(e){return vi.toMessageRead(e)},toMessageRead:function(e){if(at()===rt.Message||at()===rt.MeetingRequest)return e;throw Z()},toMessageCompose:function(e){if(at()===rt.MessageCompose)return e;throw Z()},toMeetingRequest:function(e){if(at()===rt.MeetingRequest)return e;throw Z()},toAppointment:function(e){if(at()===rt.Appointment)return e;throw Z()},toAppointmentRead:function(e){if(at()===rt.Appointment)return e;throw Z()},toAppointmentCompose:function(e){if(at()===rt.AppointmentCompose)return e;throw Z()}},Ti={SeriesTimeJsonConverter:function(e){if(null!==e&&"object"===typeof e&&null!==e.seriesTimeJson){var t=new sr;t.importFromSeriesTimeJsonObject(e.seriesTimeJson),delete e.seriesTimeJson,e.seriesTime=t}return e},CreateAttachmentDetails:function(e){return nr(e),e}};OSF="object"===typeof OSF?OSF:{},OSF.DDA=OSF.DDA||{},OSF.DDA.Settings=hi,OSF="object"===typeof OSF?OSF:{},OSF.DDA=OSF.DDA||{},OSF.DDA.OutlookAppOm=di,Office="object"===typeof Office?Office:{},Office.cast=Office.cast||{},Office.cast.item=vi,Microsoft.Office.WebExtension.MailboxEnums=X,Microsoft.Office.WebExtension.CoercionType=Q,Microsoft.Office.WebExtension.SeriesTime=sr,Microsoft.Office.WebExtension.OutlookBase=Ti;t.default=di;var Ai=window;Ai.$h="object"===typeof $h?$h:{},Ai.$h.Message=$h.Message||{},Ai.$h.Appointment=$h.Appointment||{},Ai.$h.Message.isInstanceOfType=function(e){return e&&"message"===e.itemType},Ai.$h.Appointment.isInstanceOfType=function(e){return e&&"appointment"===e.itemType}}]).default,OSF.DDA.ErrorCodeManager.initializeErrorMessages(Strings.OfficeOM),e.get_appName()==OSF.AppName.Outlook&&OSF.DDA.RichApi&&OSF.DDA.AsyncMethodNames.ExecuteRichApiRequestAsync&&(OSF.DDA.DispIdHost.addAsyncMethods(OSF.DDA.RichApi,[OSF.DDA.AsyncMethodNames.ExecuteRichApiRequestAsync]),OSF.DDA.RichApi.richApiMessageManager=new OfficeExt.RichApiMessageManager),e.get_appName()==OSF.AppName.OutlookWebApp||e.get_appName()==OSF.AppName.OutlookIOS||e.get_appName()==OSF.AppName.OutlookAndroid?this._settings=this._initializeSettings(e,!1):"mac"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&e.get_appName()==OSF.AppName.Outlook?this._settings=this.initializeMacSettings(e,!1):this._settings=this._initializeSettings(!1),e.appOM=new OSF.DDA.OutlookAppOm(e,this._webAppState.wnd,t),e.get_appName()!=OSF.AppName.Outlook&&e.get_appName()!=OSF.AppName.OutlookWebApp&&e.get_appName()!=OSF.AppName.OutlookIOS&&e.get_appName()!=OSF.AppName.OutlookAndroid||OSF.DDA.DispIdHost.addEventSupport(e.appOM,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.ItemChanged,Microsoft.Office.WebExtension.EventType.OfficeThemeChanged]))},"undefined"!==typeof OSFPerformance&&(OSFPerformance.hostInitializationEnd=OSFPerformance.now());