UNPKG

@microsoft/office-js

Version:
18 lines (15 loc) • 289 kB
/* Outlook Android specific API library */ /* Version: 16.0.8112.1000 */ /* 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. */ /*! Copyright (c) Microsoft Corporation. All rights reserved. */ /*! Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419. */ var __extends = this && this.__extends || function (n, t) { for (var i in t) t.hasOwnProperty(i) && (n[i] = t[i]); function r() { this.constructor = n } n.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r) }, OfficeExt; (function (n) { var t = function () { var n = !0; function t() { } t.prototype.isMsAjaxLoaded = function () { var t = "function", i = "undefined"; return typeof Sys !== i && typeof Type !== i && Sys.StringBuilder && typeof Sys.StringBuilder === t && Type.registerNamespace && typeof Type.registerNamespace === t && Type.registerClass && typeof Type.registerClass === t && typeof Function._validateParams === t && Sys.Serialization && Sys.Serialization.JavaScriptSerializer && typeof Sys.Serialization.JavaScriptSerializer.serialize === t ? n : !1 }; t.prototype.loadMsAjaxFull = function (n) { var t = (window.location.protocol.toLowerCase() === "https:" ? "https:" : "http:") + "//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js"; OSF.OUtil.loadScript(t, n) }; Object.defineProperty(t.prototype, "msAjaxError", { get: function () { var n = this; n._msAjaxError == null && n.isMsAjaxLoaded() && (n._msAjaxError = Error); return n._msAjaxError }, set: function (n) { this._msAjaxError = n }, enumerable: n, configurable: n }); Object.defineProperty(t.prototype, "msAjaxString", { get: function () { var n = this; n._msAjaxString == null && n.isMsAjaxLoaded() && (n._msAjaxString = String); return n._msAjaxString }, set: function (n) { this._msAjaxString = n }, enumerable: n, configurable: n }); Object.defineProperty(t.prototype, "msAjaxDebug", { get: function () { var n = this; n._msAjaxDebug == null && n.isMsAjaxLoaded() && (n._msAjaxDebug = Sys.Debug); return n._msAjaxDebug }, set: function (n) { this._msAjaxDebug = n }, enumerable: n, configurable: n }); return t }(); n.MicrosoftAjaxFactory = t })(OfficeExt || (OfficeExt = {})); var OsfMsAjaxFactory = new OfficeExt.MicrosoftAjaxFactory, OSF = OSF || {}, OfficeExt; (function (n) { var t = function () { function n(n) { this._internalStorage = n } n.prototype.getItem = function (n) { try { return this._internalStorage && this._internalStorage.getItem(n) } catch (t) { return null } }; n.prototype.setItem = function (n, t) { try { this._internalStorage && this._internalStorage.setItem(n, t) } catch (i) { } }; n.prototype.clear = function () { try { this._internalStorage && this._internalStorage.clear() } catch (n) { } }; n.prototype.removeItem = function (n) { try { this._internalStorage && this._internalStorage.removeItem(n) } catch (t) { } }; n.prototype.getKeysWithPrefix = function (n) { var i = []; try { for (var u = this._internalStorage && this._internalStorage.length || 0, t = 0; t < u; t++) { var r = this._internalStorage.key(t); r.indexOf(n) === 0 && i.push(r) } } catch (f) { } return i }; return n }(); n.SafeStorage = t })(OfficeExt || (OfficeExt = {})); OSF.XdmFieldName = { ConversationUrl: "ConversationUrl", AppId: "AppId" }; OSF.WindowNameItemKeys = { BaseFrameName: "baseFrameName", HostInfo: "hostInfo", XdmInfo: "xdmInfo", SerializerVersion: "serializerVersion", AppContext: "appContext" }; OSF.OUtil = function () { var f = "focus", s = "on", nt = "configurable", tt = "writable", o = "enumerable", h = "undefined", i = !0, t = !1, y = 2147483647, n = null, r = -1, w = r, d = "&_xdm_Info=", g = "&_serializer_version=", rt = "_xdm_", ut = "_serializer_version=", c = "#", it = "&", e = "class", v = {}, ft = 3e4, a = n, l = n, u = +new Date; function b() { var n = y * Math.random(); n ^= u ^ (new Date).getMilliseconds() << Math.floor(Math.random() * 21); return n.toString(16) } function p() { if (!a) { try { var t = window.sessionStorage } catch (i) { t = n } a = new OfficeExt.SafeStorage(t) } return a } function k(n) { for (var u = [], i = [], f = n.length, t, r = 0; r < f; r++) { t = n[r]; t.tabIndex ? t.tabIndex > 0 ? i.push(t) : t.tabIndex === 0 && u.push(t) : u.push(t) } i = i.sort(function (n, t) { var r = n.tabIndex - t.tabIndex; r === 0 && (r = i.indexOf(n) - i.indexOf(t)); return r }); return [].concat(i, u) } return { set_entropy: function (n) { if (typeof n == "string") for (var i = 0; i < n.length; i += 4) { for (var r = 0, t = 0; t < 4 && i + t < n.length; t++) r = (r << 8) + n.charCodeAt(i + t); u ^= r } else u ^= typeof n == "number" ? n : y * Math.random(); u &= y }, extend: function (n, t) { var i = function () { }; i.prototype = t.prototype; n.prototype = new i; n.prototype.constructor = n; n.uber = t.prototype; t.prototype.constructor === Object.prototype.constructor && (t.prototype.constructor = t) }, setNamespace: function (n, t) { t && n && !t[n] && (t[n] = {}) }, unsetNamespace: function (n, t) { t && n && t[n] && delete t[n] }, loadScript: function (r, u, f) { if (r && u) { var c = window.document, e = v[r]; if (e) e.loaded ? u() : e.pendingCallbacks.push(u); else { var o = c.createElement("script"); o.type = "text/javascript"; e = { loaded: t, pendingCallbacks: [u], timer: n }; v[r] = e; var h = function () { if (e.timer != n) { clearTimeout(e.timer); delete e.timer } e.loaded = i; for (var u = e.pendingCallbacks.length, t = 0; t < u; t++) { var r = e.pendingCallbacks.shift(); r() } }, s = function () { delete v[r]; if (e.timer != n) { clearTimeout(e.timer); delete e.timer } for (var u = e.pendingCallbacks.length, t = 0; t < u; t++) { var i = e.pendingCallbacks.shift(); i() } }; o.readyState ? o.onreadystatechange = function () { if (o.readyState == "loaded" || o.readyState == "complete") { o.onreadystatechange = n; h() } } : o.onload = h; o.onerror = s; f = f || ft; e.timer = setTimeout(s, f); o.setAttribute("crossOrigin", "anonymous"); o.src = r; c.getElementsByTagName("head")[0].appendChild(o) } } }, loadCSS: function (n) { if (n) { var i = window.document, t = i.createElement("link"); t.type = "text/css"; t.rel = "stylesheet"; t.href = n; i.getElementsByTagName("head")[0].appendChild(t) } }, parseEnum: function (n, t) { var i = t[n.trim()]; if (typeof i == h) { OsfMsAjaxFactory.msAjaxDebug.trace("invalid enumeration string:" + n); throw OsfMsAjaxFactory.msAjaxError.argument("str"); } return i }, delayExecutionAndCache: function () { var n = { calc: arguments[0] }; return function () { if (n.calc) { n.val = n.calc.apply(this, arguments); delete n.calc } return n.val } }, getUniqueId: function () { w = w + 1; return w.toString() }, formatString: function () { var n = arguments, t = n[0]; return t.replace(/{(\d+)}/gm, function (t, i) { var r = parseInt(i, 10) + 1; return n[r] === undefined ? "{" + i + "}" : n[r] }) }, generateConversationId: function () { return [b(), b(), (+new Date).toString()].join("_") }, getFrameName: function (n) { return rt + n + this.generateConversationId() }, addXdmInfoAsHash: function (n, i) { return OSF.OUtil.addInfoAsHash(n, d, i, t) }, addSerializerVersionAsHash: function (n, t) { return OSF.OUtil.addInfoAsHash(n, g, t, i) }, addInfoAsHash: function (n, t, i, r) { n = n.trim() || ""; var e = n.split(c), o = e.shift(), f = e.join(c), u; u = r ? [t, encodeURIComponent(i), f].join("") : [f, t, i].join(""); return [o, c, u].join("") }, parseHostInfoFromWindowName: function (n, t) { return OSF.OUtil.parseInfoFromWindowName(n, t, OSF.WindowNameItemKeys.HostInfo) }, parseXdmInfo: function (n) { var t = OSF.OUtil.parseXdmInfoWithGivenFragment(n, window.location.hash); t || (t = OSF.OUtil.parseXdmInfoFromWindowName(n, window.name)); return t }, parseXdmInfoFromWindowName: function (n, t) { return OSF.OUtil.parseInfoFromWindowName(n, t, OSF.WindowNameItemKeys.XdmInfo) }, parseXdmInfoWithGivenFragment: function (n, i) { return OSF.OUtil.parseInfoWithGivenFragment(d, rt, t, n, i) }, parseSerializerVersion: function (n) { var t = OSF.OUtil.parseSerializerVersionWithGivenFragment(n, window.location.hash); isNaN(t) && (t = OSF.OUtil.parseSerializerVersionFromWindowName(n, window.name)); return t }, parseSerializerVersionFromWindowName: function (n, t) { return parseInt(OSF.OUtil.parseInfoFromWindowName(n, t, OSF.WindowNameItemKeys.SerializerVersion)) }, parseSerializerVersionWithGivenFragment: function (n, t) { return parseInt(OSF.OUtil.parseInfoWithGivenFragment(g, ut, i, n, t)) }, parseInfoFromWindowName: function (t, i, r) { try { var f = JSON.parse(i), u = f != n ? f[r] : n, e = p(); if (!t && e && f != n) { var o = f[OSF.WindowNameItemKeys.BaseFrameName] + r; u ? e.setItem(o, u) : u = e.getItem(o) } return u } catch (s) { return n } }, parseInfoWithGivenFragment: function (t, i, u, f, e) { var c = e.split(t), o = c.length > 1 ? c[c.length - 1] : n; if (u && o != n) { o.indexOf(it) >= 0 && (o = o.split(it)[0]); o = decodeURIComponent(o) } var l = p(); if (!f && l) { var s = window.name.indexOf(i); if (s > r) { var h = window.name.indexOf(";", s); h == r && (h = window.name.length); var a = window.name.substring(s, h); o ? l.setItem(a, o) : o = l.getItem(a) } } return o }, getConversationId: function () { var i = window.location.search, t = n; if (i) { var r = i.indexOf("&"); t = r > 0 ? i.substring(1, r) : i.substr(1); if (t && t.charAt(t.length - 1) === "=") { t = t.substring(0, t.length - 1); t && (t = decodeURIComponent(t)) } } return t }, getInfoItems: function (n) { var t = n.split("$"); typeof t[1] == h && (t = n.split("|")); typeof t[1] == h && (t = n.split("%7C")); return t }, getXdmFieldValue: function (n, t) { var r = "", u = OSF.OUtil.parseXdmInfo(t); if (u) { var i = OSF.OUtil.getInfoItems(u); if (i != undefined && i.length >= 3) switch (n) { case OSF.XdmFieldName.ConversationUrl: r = i[2]; break; case OSF.XdmFieldName.AppId: r = i[1] } } return r }, validateParamObject: function (n, r) { var u = Function._validateParams(arguments, [{ name: "params", type: Object, mayBeNull: t }, { name: "expectedProperties", type: Object, mayBeNull: t }, { name: "callback", type: Function, mayBeNull: i }]); if (u) throw u; for (var f in r) { u = Function._validateParameter(n[f], r[f], f); if (u) throw u; } }, writeProfilerMark: function (n) { if (window.msWriteProfilerMark) { window.msWriteProfilerMark(n); OsfMsAjaxFactory.msAjaxDebug.trace(n) } }, outputDebug: function (n) { typeof OsfMsAjaxFactory !== h && OsfMsAjaxFactory.msAjaxDebug && OsfMsAjaxFactory.msAjaxDebug.trace && OsfMsAjaxFactory.msAjaxDebug.trace(n) }, defineNondefaultProperty: function (n, t, r, u) { r = r || {}; for (var e in u) { var f = u[e]; r[f] == undefined && (r[f] = i) } Object.defineProperty(n, t, r); return n }, defineNondefaultProperties: function (n, t, i) { t = t || {}; for (var r in t) OSF.OUtil.defineNondefaultProperty(n, r, t[r], i); return n }, defineEnumerableProperty: function (n, t, i) { return OSF.OUtil.defineNondefaultProperty(n, t, i, [o]) }, defineEnumerableProperties: function (n, t) { return OSF.OUtil.defineNondefaultProperties(n, t, [o]) }, defineMutableProperty: function (n, t, i) { return OSF.OUtil.defineNondefaultProperty(n, t, i, [tt, o, nt]) }, defineMutableProperties: function (n, t) { return OSF.OUtil.defineNondefaultProperties(n, t, [tt, o, nt]) }, finalizeProperties: function (n, r) { r = r || {}; for (var o = Object.getOwnPropertyNames(n), s = o.length, f = 0; f < s; f++) { var e = o[f], u = Object.getOwnPropertyDescriptor(n, e); u.get || u.set || (u.writable = r.writable || t); u.configurable = r.configurable || t; u.enumerable = r.enumerable || i; Object.defineProperty(n, e, u) } return n }, mapList: function (n, t) { var i = []; if (n) for (var r in n) i.push(t(n[r])); return i }, listContainsKey: function (n, r) { for (var u in n) if (r == u) return i; return t }, listContainsValue: function (n, r) { for (var u in n) if (r == n[u]) return i; return t }, augmentList: function (n, t) { var r = n.push ? function (t, i) { n.push(i) } : function (t, i) { n[t] = i }; for (var i in t) r(i, t[i]) }, redefineList: function (n, t) { for (var r in n) delete n[r]; for (var i in t) n[i] = t[i] }, isArray: function (n) { return Object.prototype.toString.apply(n) === "[object Array]" }, isFunction: function (n) { return Object.prototype.toString.apply(n) === "[object Function]" }, isDate: function (n) { return Object.prototype.toString.apply(n) === "[object Date]" }, addEventListener: function (n, i, r) { n.addEventListener ? n.addEventListener(i, r, t) : Sys.Browser.agent === Sys.Browser.InternetExplorer && n.attachEvent ? n.attachEvent(s + i, r) : n[s + i] = r }, removeEventListener: function (i, r, u) { i.removeEventListener ? i.removeEventListener(r, u, t) : Sys.Browser.agent === Sys.Browser.InternetExplorer && i.detachEvent ? i.detachEvent(s + r, u) : i[s + r] = n }, getCookieValue: function (n) { var t = RegExp(n + "[^;]+").exec(document.cookie); return t.toString().replace(/^[^=]+./, "") }, xhrGet: function (n, t, r) { var u; try { u = new XMLHttpRequest; u.onreadystatechange = function () { u.readyState == 4 && (u.status == 200 ? t(u.responseText) : r(u.status)) }; u.open("GET", n, i); u.send() } catch (f) { r(f) } }, xhrGetFull: function (n, t, r, u) { var f, e = t; try { f = new XMLHttpRequest; f.onreadystatechange = function () { f.readyState == 4 && (f.status == 200 ? r(f, e) : u(f.status)) }; f.open("GET", n, i); f.send() } catch (o) { u(o) } }, encodeBase64: function (n) { if (!n) return n; var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", l = [], i = [], o = 0, c, e, s, r, u, f, t, v = n.length; do { c = n.charCodeAt(o++); e = n.charCodeAt(o++); s = n.charCodeAt(o++); t = 0; r = c & 255; u = c >> 8; f = e & 255; i[t++] = r >> 2; i[t++] = (r & 3) << 4 | u >> 4; i[t++] = (u & 15) << 2 | f >> 6; i[t++] = f & 63; if (!isNaN(e)) { r = e >> 8; u = s & 255; f = s >> 8; i[t++] = r >> 2; i[t++] = (r & 3) << 4 | u >> 4; i[t++] = (u & 15) << 2 | f >> 6; i[t++] = f & 63 } if (isNaN(e)) i[t - 1] = 64; else if (isNaN(s)) { i[t - 2] = 64; i[t - 1] = 64 } for (var h = 0; h < t; h++) l.push(a.charAt(i[h])) } while (o < v); return l.join("") }, getSessionStorage: function () { return p() }, getLocalStorage: function () { if (!l) { try { var t = window.localStorage } catch (i) { t = n } l = new OfficeExt.SafeStorage(t) } return l }, convertIntToCssHexColor: function (n) { return "#" + (Number(n) + 16777216).toString(16).slice(-6) }, attachClickHandler: function (n, t) { n.onclick = function () { t() }; n.ontouchend = function (n) { t(); n.preventDefault() } }, getQueryStringParamValue: function (n, i) { var u = Function._validateParams(arguments, [{ name: "queryString", type: String, mayBeNull: t }, { name: "paramName", type: String, mayBeNull: t }]); if (u) { OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null."); return "" } var r = new RegExp("[\\?&]" + i + "=([^&#]*)", "i"); if (!r.test(n)) { OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found."); return "" } return r.exec(n)[1] }, isiOS: function () { return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? i : t }, 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 }, shallowCopy: function (t) { if (t == n) return n; else if (t instanceof Object) if (Array.isArray(t)) { for (var u = [], r = 0; r < t.length; r++) u.push(t[r]); return u } else { var f = t.constructor(); for (var i in t) t.hasOwnProperty(i) && (f[i] = t[i]); return f } else return t }, createObject: function (t) { var r = n; if (t) { r = {}; for (var u = t.length, i = 0; i < u; i++) r[t[i].name] = t[i].value } return r }, addClass: function (n, t) { if (!OSF.OUtil.hasClass(n, t)) { var i = n.getAttribute(e); i ? n.setAttribute(e, i + " " + t) : n.setAttribute(e, t) } }, hasClass: function (n, t) { var i = n.getAttribute(e); return i && i.match(new RegExp("(\\s|^)" + t + "(\\s|$)")) }, focusToFirstTabbable: function (u, e) { var s, h = t, o, c = function () { h = i }, l = function (n, t, i) { if (t < 0 || t > n) return r; else if (t === 0 && i) return r; else if (t === n - 1 && !i) return r; return i ? t - 1 : t + 1 }; u = k(u); s = e ? u.length - 1 : 0; if (u.length === 0) return n; while (!h && s >= 0 && s < u.length) { o = u[s]; window.focus(); o.addEventListener(f, c); o.focus(); o.removeEventListener(f, c); s = l(u.length, s, e); h || o !== document.activeElement || (h = i) } return h ? o : n }, focusToNextTabbable: function (u, e, o) { var v, s, c = t, h, a = function () { c = i }, y = function (n, t) { for (var i = 0; i < n.length; i++) if (n[i] === t) return i; return r }, l = function (n, t, i) { if (t < 0 || t > n) return r; else if (t === 0 && i) return r; else if (t === n - 1 && !i) return r; return i ? t - 1 : t + 1 }; u = k(u); v = y(u, e); s = l(u.length, v, o); if (s < 0) return n; while (!c && s >= 0 && s < u.length) { h = u[s]; h.addEventListener(f, a); h.focus(); h.removeEventListener(f, a); s = l(u.length, s, o); c || h !== document.activeElement || (c = i) } return c ? h : n } } }(); OSF.OUtil.Guid = function () { var n = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]; return { generateNewGuid: function () { for (var i = "", r = +new Date, t = 0; t < 32 && r > 0; t++) { (t == 8 || t == 12 || t == 16 || t == 20) && (i += "-"); i += n[r % 16]; r = Math.floor(r / 16) } for (; t < 32; t++) { (t == 8 || t == 12 || t == 16 || t == 20) && (i += "-"); i += n[Math.floor(Math.random() * 16)] } return i } } }(); window.OSF = OSF; OSF.OUtil.setNamespace("OSF", window); OSF.AppName = { Unsupported: 0, Excel: 1, Word: 2, PowerPoint: 4, Outlook: 8, ExcelWebApp: 16, WordWebApp: 32, OutlookWebApp: 64, Project: 128, AccessWebApp: 256, PowerpointWebApp: 512, ExcelIOS: 1024, Sway: 2048, WordIOS: 4096, PowerPointIOS: 8192, Access: 16384, Lync: 32768, OutlookIOS: 65536, OneNoteWebApp: 131072, OneNote: 262144, ExcelWinRT: 524288, WordWinRT: 1048576, PowerpointWinRT: 2097152, OutlookAndroid: 4194304, OneNoteWinRT: 8388608, ExcelAndroid: 8388609, VisioWebApp: 8388610 }; 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 }; OSF.SharedConstants = { NotificationConversationIdSuffix: "_ntf" }; OSF.DialogMessageType = { DialogMessageReceived: 0, DialogParentMessageReceived: 1, DialogClosed: 12006 }; OSF.OfficeAppContext = function (n, t, i, r, u, f, e, o, s, h, c, l, a, v, y, p, w, b, k, d, g, nt, tt, it) { var rt = this; rt._id = n; rt._appName = t; rt._appVersion = i; rt._appUILocale = r; rt._dataLocale = u; rt._docUrl = f; rt._clientMode = e; rt._settings = o; rt._reason = s; rt._osfControlType = h; rt._eToken = c; rt._correlationId = l; rt._appInstanceId = a; rt._touchEnabled = v; rt._commerceAllowed = y; rt._appMinorVersion = p; rt._requirementMatrix = w; rt._hostCustomMessage = b; rt._hostFullVersion = k; rt._isDialog = !1; rt._clientWindowHeight = d; rt._clientWindowWidth = g; rt._addinName = nt; rt._appDomains = tt; rt._dialogRequirementMatrix = it; rt.get_id = function () { return this._id }; rt.get_appName = function () { return this._appName }; rt.get_appVersion = function () { return this._appVersion }; rt.get_appUILocale = function () { return this._appUILocale }; rt.get_dataLocale = function () { return this._dataLocale }; rt.get_docUrl = function () { return this._docUrl }; rt.get_clientMode = function () { return this._clientMode }; rt.get_bindings = function () { return this._bindings }; rt.get_settings = function () { return this._settings }; rt.get_reason = function () { return this._reason }; rt.get_osfControlType = function () { return this._osfControlType }; rt.get_eToken = function () { return this._eToken }; rt.get_correlationId = function () { return this._correlationId }; rt.get_appInstanceId = function () { return this._appInstanceId }; rt.get_touchEnabled = function () { return this._touchEnabled }; rt.get_commerceAllowed = function () { return this._commerceAllowed }; rt.get_appMinorVersion = function () { return this._appMinorVersion }; rt.get_requirementMatrix = function () { return this._requirementMatrix }; rt.get_dialogRequirementMatrix = function () { return this._dialogRequirementMatrix }; rt.get_hostCustomMessage = function () { return this._hostCustomMessage }; rt.get_hostFullVersion = function () { return this._hostFullVersion }; rt.get_isDialog = function () { return this._isDialog }; rt.get_clientWindowHeight = function () { return this._clientWindowHeight }; rt.get_clientWindowWidth = function () { return this._clientWindowWidth }; rt.get_addinName = function () { return this._addinName }; rt.get_appDomains = function () { return this._appDomains } }; OSF.OsfControlType = { DocumentLevel: 0, ContainerLevel: 1 }; OSF.ClientMode = { ReadOnly: 0, ReadWrite: 1 }; OSF.OUtil.setNamespace("Microsoft", window); OSF.OUtil.setNamespace("Office", Microsoft); OSF.OUtil.setNamespace("Client", Microsoft.Office); OSF.OUtil.setNamespace("WebExtension", Microsoft.Office); Microsoft.Office.WebExtension.InitializationReason = { Inserted: "inserted", DocumentOpened: "documentOpened" }; Microsoft.Office.WebExtension.ValueFormat = { Unformatted: "unformatted", Formatted: "formatted" }; Microsoft.Office.WebExtension.FilterType = { All: "all" }; Microsoft.Office.WebExtension.PlatformType = { PC: "PC", OfficeOnline: "OfficeOnline", Mac: "Mac", iOS: "iOS", Android: "Android", Universal: "Universal" }; Microsoft.Office.WebExtension.HostType = { Word: "Word", Excel: "Excel", PowerPoint: "PowerPoint", Outlook: "Outlook", OneNote: "OneNote", Project: "Project", Access: "Access" }; 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", 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", AppCommandInvocationCompletedData: "appCommandInvocationCompletedData" }; 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 (n, t) { return t == Microsoft.Office.WebExtension.EventType.BindingSelectionChanged || t == Microsoft.Office.WebExtension.EventType.BindingDataChanged || t == Microsoft.Office.WebExtension.EventType.DataNodeDeleted || t == Microsoft.Office.WebExtension.EventType.DataNodeInserted || t == Microsoft.Office.WebExtension.EventType.DataNodeReplaced ? n + "_" + t : t }; 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, 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, dispidGetDelegateTokenMethod: 146, dispidMethodMax: 146 }; 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, dispidAppCommandInvokedEvent: 39, dispidOlkItemSelectedChangedEvent: 46, dispidTaskSelectionChangedEvent: 56, dispidResourceSelectionChangedEvent: 57, dispidViewSelectionChangedEvent: 58, dispidDataNodeAddedEvent: 60, dispidDataNodeReplacedEvent: 61, dispidDataNodeDeletedEvent: 62, dispidEventMax: 63 }; OSF.DDA.ErrorCodeManager = function () { var n = {}; return { getErrorArgs: function (t) { var i = n[t]; if (i) { i.name || (i.name = n[this.errorCodes.ooeInternalError].name); i.message || (i.message = n[this.errorCodes.ooeInternalError].message) } else i = n[this.errorCodes.ooeInternalError]; return i }, addErrorMessage: function (t, i) { n[t] = i }, 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, ooeTooManyIncompleteRequests: 5100, ooeRequestTokenUnavailable: 5101, ooeActivityLimitReached: 5102, ooeCustomXmlNodeNotFound: 6e3, ooeCustomXmlError: 6100, ooeCustomXmlExceedQuota: 6101, ooeCustomXmlOutOfDate: 6102, ooeNoCapability: 7e3, ooeCannotNavTo: 7001, ooeSpecifiedIdNotExist: 7002, ooeNavOutOfBound: 7004, ooeElementMissing: 8e3, ooeProtectedError: 8001, ooeInvalidCellsValue: 8010, ooeInvalidTableOptionValue: 8011, ooeInvalidFormatValue: 8012, ooeRowIndexOutOfRange: 8020, ooeColIndexOutOfRange: 8021, ooeFormatValueOutOfRange: 8022, ooeCellFormatAmountBeyondLimits: 8023, ooeMemoryFileLimit: 11e3, ooeNetworkProblemRetrieveFile: 11001, ooeInvalidSliceSize: 11002, ooeInvalidCallback: 11101, ooeInvalidWidth: 12e3, ooeInvalidHeight: 12001, ooeNavigationError: 12002, ooeInvalidScheme: 12003, ooeAppDomains: 12004, ooeRequireHTTPS: 12005, ooeWebDialogClosed: 12006, ooeDialogAlreadyOpened: 12007, ooeEndUserAllow: 12008, ooeEndUserIgnore: 12009, ooeNotUILessDialog: 12010, ooeCrossZone: 12011, ooeNotSSOAgave: 13e3, ooeSSOUserNotSignedIn: 13001, ooeSSOUserAborted: 13002, ooeSSOUnsupportedUserIdentity: 13003, ooeSSOInvalidResourceUrl: 13004, ooeSSOInvalidGrant: 13005, ooeSSOClientError: 13006, ooeSSOServerError: 13007 }, initializeErrorMessages: function (t) { n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotSupported] = { name: t.L_InvalidCoercion, message: t.L_CoercionTypeNotSupported }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetSelectionNotMatchDataType] = { name: t.L_DataReadError, message: t.L_GetSelectionNotSupported }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding] = { name: t.L_InvalidCoercion, message: t.L_CoercionTypeNotMatchBinding }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRowColumnCounts] = { name: t.L_DataReadError, message: t.L_InvalidGetRowColumnCounts }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionNotSupportCoercionType] = { name: t.L_DataReadError, message: t.L_SelectionNotSupportCoercionType }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetStartRowColumn] = { name: t.L_DataReadError, message: t.L_InvalidGetStartRowColumn }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialGetNotSupported] = { name: t.L_DataReadError, message: t.L_NonUniformPartialGetNotSupported }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataIsTooLarge] = { name: t.L_DataReadError, message: t.L_GetDataIsTooLarge }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFileTypeNotSupported] = { name: t.L_DataReadError, message: t.L_FileTypeNotSupported }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataParametersConflict] = { name: t.L_DataReadError, message: t.L_GetDataParametersConflict }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetColumns] = { name: t.L_DataReadError, message: t.L_InvalidGetColumns }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRows] = { name: t.L_DataReadError, message: t.L_InvalidGetRows }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidReadForBlankRow] = { name: t.L_DataReadError, message: t.L_InvalidReadForBlankRow }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject] = { name: t.L_DataWriteError, message: t.L_UnsupportedDataObject }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotWriteToSelection] = { name: t.L_DataWriteError, message: t.L_CannotWriteToSelection }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchSelection] = { name: t.L_DataWriteError, message: t.L_DataNotMatchSelection }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOverwriteWorksheetData] = { name: t.L_DataWriteError, message: t.L_OverwriteWorksheetData }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingSize] = { name: t.L_DataWriteError, message: t.L_DataNotMatchBindingSize }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetStartRowColumn] = { name: t.L_DataWriteError, message: t.L_InvalidSetStartRowColumn }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidDataFormat] = { name: t.L_InvalidFormat, message: t.L_InvalidDataFormat }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchCoercionType] = { name: t.L_InvalidDataObject, message: t.L_DataNotMatchCoercionType }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingType] = { name: t.L_InvalidDataObject, message: t.L_DataNotMatchBindingType }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataIsTooLarge] = { name: t.L_DataWriteError, message: t.L_SetDataIsTooLarge }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialSetNotSupported] = { name: t.L_DataWriteError, message: t.L_NonUniformPartialSetNotSupported }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetColumns] = { name: t.L_DataWriteError, message: t.L_InvalidSetColumns }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetRows] = { name: t.L_DataWriteError, message: t.L_InvalidSetRows }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataParametersConflict] = { name: t.L_DataWriteError, message: t.L_SetDataParametersConflict }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionCannotBound] = { name: t.L_BindingCreationError, message: t.L_SelectionCannotBound }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingNotExist] = { name: t.L_InvalidBindingError, message: t.L_BindingNotExist }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingToMultipleSelection] = { name: t.L_BindingCreationError, message: t.L_BindingToMultipleSelection }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSelectionForBindingType] = { name: t.L_BindingCreationError, message: t.L_InvalidSelectionForBindingType }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnThisBindingType] = { name: t.L_InvalidBindingOperation, message: t.L_OperationNotSupportedOnThisBindingType }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNamedItemNotFound] = { name: t.L_BindingCreationError, message: t.L_NamedItemNotFound }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMultipleNamedItemFound] = { name: t.L_BindingCreationError, message: t.L_MultipleNamedItemFound }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidNamedItemForBindingType] = { name: t.L_BindingCreationError, message: t.L_InvalidNamedItemForBindingType }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnknownBindingType] = { name: t.L_InvalidBinding, message: t.L_UnknownBindingType }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnMatrixData] = { name: t.L_InvalidBindingOperation, message: t.L_OperationNotSupportedOnMatrixData }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidColumnsForBinding] = { name: t.L_InvalidBinding, message: t.L_InvalidColumnsForBinding }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingNameNotExist] = { name: t.L_ReadSettingsError, message: t.L_SettingNameNotExist }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsCannotSave] = { name: t.L_SaveSettingsError, message: t.L_SettingsCannotSave }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsAreStale] = { name: t.L_SettingsStaleError, message: t.L_SettingsAreStale }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported] = { name: t.L_HostError, message: t.L_OperationNotSupported }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError] = { name: t.L_InternalError, message: t.L_InternalErrorDescription }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDocumentReadOnly] = { name: t.L_PermissionDenied, message: t.L_DocumentReadOnly }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist] = { name: t.L_EventRegistrationError, message: t.L_EventHandlerNotExist }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext] = { name: t.L_InvalidAPICall, message: t.L_InvalidApiCallInContext }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeShuttingDown] = { name: t.L_ShuttingDown, message: t.L_ShuttingDown }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration] = { name: t.L_UnsupportedEnumeration, message: t.L_UnsupportedEnumerationMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeIndexOutOfRange] = { name: t.L_IndexOutOfRange, message: t.L_IndexOutOfRange }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBrowserAPINotSupported] = { name: t.L_APINotSupported, message: t.L_BrowserAPINotSupported }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTimeout] = { name: t.L_APICallFailed, message: t.L_RequestTimeout }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidOrTimedOutSession] = { name: t.L_InvalidOrTimedOutSession, message: t.L_InvalidOrTimedOutSessionMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests] = { name: t.L_APICallFailed, message: t.L_TooManyIncompleteRequests }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTokenUnavailable] = { name: t.L_APICallFailed, message: t.L_RequestTokenUnavailable }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeActivityLimitReached] = { name: t.L_APICallFailed, message: t.L_ActivityLimitReached }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiArguments] = { name: t.L_APICallFailed, message: t.L_InvalidApiArgumentsMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlNodeNotFound] = { name: t.L_InvalidNode, message: t.L_CustomXmlNodeNotFound }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlError] = { name: t.L_CustomXmlError, message: t.L_CustomXmlError }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlExceedQuota] = { name: t.L_CustomXmlExceedQuotaName, message: t.L_CustomXmlExceedQuotaMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlOutOfDate] = { name: t.L_CustomXmlOutOfDateName, message: t.L_CustomXmlOutOfDateMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability] = { name: t.L_PermissionDenied, message: t.L_NoCapability }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotNavTo] = { name: t.L_CannotNavigateTo, message: t.L_CannotNavigateTo }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSpecifiedIdNotExist] = { name: t.L_SpecifiedIdNotExist, message: t.L_SpecifiedIdNotExist }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavOutOfBound] = { name: t.L_NavOutOfBound, message: t.L_NavOutOfBound }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellDataAmountBeyondLimits] = { name: t.L_DataWriteReminder, message: t.L_CellDataAmountBeyondLimits }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeElementMissing] = { name: t.L_MissingParameter, message: t.L_ElementMissing }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeProtectedError] = { name: t.L_PermissionDenied, message: t.L_NoCapability }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCellsValue] = { name: t.L_InvalidValue, message: t.L_InvalidCellsValue }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidTableOptionValue] = { name: t.L_InvalidValue, message: t.L_InvalidTableOptionValue }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidFormatValue] = { name: t.L_InvalidValue, message: t.L_InvalidFormatValue }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRowIndexOutOfRange] = { name: t.L_OutOfRange, message: t.L_RowIndexOutOfRange }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeColIndexOutOfRange] = { name: t.L_OutOfRange, message: t.L_ColIndexOutOfRange }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFormatValueOutOfRange] = { name: t.L_OutOfRange, message: t.L_FormatValueOutOfRange }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellFormatAmountBeyondLimits] = { name: t.L_FormattingReminder, message: t.L_CellFormatAmountBeyondLimits }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMemoryFileLimit] = { name: t.L_MemoryLimit, message: t.L_CloseFileBeforeRetrieve }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNetworkProblemRetrieveFile] = { name: t.L_NetworkProblem, message: t.L_NetworkProblemRetrieveFile }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSliceSize] = { name: t.L_InvalidValue, message: t.L_SliceSizeNotSupported }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened] = { name: t.L_DisplayDialogError, message: t.L_DialogAlreadyOpened }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidWidth] = { name: t.L_IndexOutOfRange, message: t.L_IndexOutOfRange }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidHeight] = { name: t.L_IndexOutOfRange, message: t.L_IndexOutOfRange }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavigationError] = { name: t.L_DisplayDialogError, message: t.L_NetworkProblem }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidScheme] = { name: t.L_DialogNavigateError, message: t.L_DialogInvalidScheme }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeAppDomains] = { name: t.L_DisplayDialogError, message: t.L_DialogAddressNotTrusted }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequireHTTPS] = { name: t.L_DisplayDialogError, message: t.L_DialogRequireHTTPS }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEndUserIgnore] = { name: t.L_DisplayDialogError, message: t.L_UserClickIgnore }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCrossZone] = { name: t.L_DisplayDialogError, message: t.L_NewWindowCrossZoneErrorString }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNotSSOAgave] = { name: t.L_APINotSupported, message: t.L_InvalidSSOAddinMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserNotSignedIn] = { name: t.L_UserNotSignedIn, message: t.L_UserNotSignedIn }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserAborted] = { name: t.L_UserAborted, message: t.L_UserAbortedMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUnsupportedUserIdentity] = { name: t.L_UnsupportedUserIdentity, message: t.L_UnsupportedUserIdentityMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidResourceUrl] = { name: t.L_InvalidResourceUrl, message: t.L_InvalidResourceUrlMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidGrant] = { name: t.L_InvalidGrant, message: t.L_InvalidGrantMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOClientError] = { name: t.L_SSOClientError, message: t.L_SSOClientErrorMessage }; n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOServerError] = { name: t.L_SSOServerError, message: t.L_SSOServerErrorMessage } } } }(); var OfficeExt; (function (n) { var t; (function (n) { var t = 1.1, ut = function () { function n() { } return n }(); n.RequirementVersion = ut; var r = function () { function n(n) { var t = this; t.isSetSupported = function (n, t) { if (n == undefined) return !1; t == undefined && (t = 0); var f = this._setMap, u = f._sets; if (u.hasOwnProperty(n.toLowerCase())) { var e = u[n.toLowerCase()]; try { var i = this._getVersion(e); t = t + ""; var r = this._getVersion(t); if (i.major > 0 && i.major > r.major || i.minor > 0 && i.minor > 0 && i.major == r.major && i.minor >= r.minor) return !0 } catch (o) { return !1 } } return !1 }; t._getVersion = function (n) { var u = "version format incorrect", t = n.split("."), r = 0, i = 0; if (t.length < 2 && isNaN(Number(n))) throw u; else { r = Number(t[0]); t.length >= 2 && (i = Number(t[1])); if (isNaN(r) || isNaN(i)) throw u; } return { minor: i, major: r } }; t._setMap = n; t.isSetSupported = t.isSetSupported.bind(t) } return n }(); n.RequirementMatrix = r; var i = function () { function n(n) { this._addSetMap = function (n) { for (var t in n) this._sets[t] = n[t] }; this._sets = n } return n }(); n.DefaultSetRequirement = i; var k = function (n) { __extends(i, n); function i() { n.call(this, { dialogapi: t }) } return i }(i); n.DefaultDialogSetRequirement = k; var o = function (n) { __extends(i, n); function i() { n.call(this, { bindingevents: t, documentevents: t, excelapi: t, matrixbindings: t, matrixcoercion: t, selection: t, settings: t, tablebindings: t, tablecoercion: t, textbindings: t, textcoercion: t }) } return i }(i); n.ExcelClientDefaultSetRequirement = o; var d = function (n) { __extends(i, n); function i() { n.call(this); this._addSetMap({ imagecoercion: t }) } return i }(o); n.ExcelClientV1DefaultSetRequirement = d; var w = function (n) { __extends(t, n); function t() { n.call(this, { mailbox: 1.3 }) } return t }(i); n.OutlookClientDefaultSetRequirement = w; var f = function (n) { __extends(i, n); function i() { n.call(this, { bindingevents: t, compressedfile: t, customxmlparts: t, documentevents: t, file: t, htmlcoercion: t, matrixbindings: t, matrixcoercion: t, ooxmlcoercion: t, pdffile: t, selection: t, settings: t, tablebindings: t, tablecoercion: t, textbindings: t, textcoercion: t, textfile: t, wordapi: t }) } return i }(i); n.WordClientDefaultSetRequirement = f; var b = function (n) { __extends(i, n); function i() { n.call(this); this._addSetMap({ customxmlparts: 1.2, wordapi: 1.2, imagecoercion: t }) } return i }(f); n.WordClientV1DefaultSetRequirement = b; var e = function (n) { __extends(i, n); function i() { n.call(this, { activeview: t, compressedfile: t, documentevents: t, file: t, pdffile: t, selection: t, settings: t, textcoercion: t }) } return i }(i); n.PowerpointClientDefaultSetRequirement = e; var tt = function (n) { __extends(i, n); function i() { n.call(this); this._addSetMap({ imagecoercion: t }) } return i }(e); n.PowerpointClientV1DefaultSetRequirement = tt; var it = function (n) { __extends(i, n); function i() { n.call(this, { selection: t, textcoercion: t }) } return i }(i); n.ProjectClientDefaultSetRequirement = it; var g = function (n) { __extends(i, n); function i() { n.call(this, { bindingevents: t, documentevents: t, matrixbindings: t, matrixcoercion: t, selection: t, settings: t, tablebindings: t, tablecoercion: t, textbindings: t, textcoercion: t, file: t }) } return i }(i); n.ExcelWebDefaultSetRequirement = g; var nt = function (n) { __extends(i, n); function i() { n.call(this, { compressedfile: t, documentevents: t, file: t, imagecoercion: t, matrixcoercion: t, ooxmlcoercion: t, pdffile: t, selection: t, settings: t, tablecoercion: t, textcoercion: t, textfile: t }) } return i }(i); n.WordWebDefaultSetRequirement = nt; var h = function (n) { __extends(i, n); function i() { n.call(this, { activeview: t, settings: t }) } return i }(i); n.PowerpointWebDefaultSetRequirement = h; var s = function (n) { __extends(t, n); function t() { n.call(this, { mailbox: 1.3 }) } return t }(i); n.OutlookWebDefaultSetRequirement = s; var l = function (n) { __extends(i, n); function i() { n.call(this, { activeview: t, documentevents: t, selection: t, settings: t, textcoercion: t }) } return i }(i); n.SwayWebDefaultSetRequirement = l; var c = function (n) { __extends(i, n); function i() { n.call(this, { bindingevents: t, partialtablebindings: t, settings: t, tablebindings: t, tablecoercion: t }) } return i }(i); n.AccessWebDefaultSetRequirement = c; var y = function (n) { __extends(i, n); function i() { n.call(this, { bindingevents: t, documentevents: t, matrixbindings: t, matrixcoercion: t, selection: t, settings: t, tablebindings: t, tablecoercion: t, textbindings: t, textcoercion: t }) } return i }(i); n.ExcelIOSDefaultSetRequirement = y; var u = function (n) { __extends(i, n); function i() { n.call(this, { bindingevents: t, compressedfile: t, customxmlparts: t, documentevents: t, file: t, htmlcoercion: t, matrixbindings: t, matrixcoercion: t, ooxmlcoercion: t, pdffile: t, selection: t, settings: t, tablebindings: t, tablecoercion: t, textbindings: t, textcoercion: t, textfile: t }) } return i }(i); n.WordIOSDefaultSetRequirement = u; var p = function (n) { __extends(t, n); function t() { n.call(this); this._addSetMap({ customxmlparts: 1.2, wordapi: 1.2 }) } return t }(u); n.WordIOSV1DefaultSetRequirement = p; var a = function (n) { __extends(i, n); function i() { n.call(this, { activeview: t, compressedfile: t, documentevents: t, file: t, pdffile: t, selection: t, settings: t, textcoercion: t }) } return i }(i); n.PowerpointIOSDefaultSetRequirement = a; var v = function (n) { __extends(i, n); function i() { n.call(this, { mailbox: t }) } return i }(i); n.OutlookIOSDefaultSetRequirement = v; var rt = function () { var t = "undefined"; function n() { } n.initializeOsfDda = function () { OSF.OUtil.setNamespace("Requirement