URL: https://appsforoffice.microsoft.com/lib/beta/hosted/office.js
var OSFPerformance;
(function (OSFPerformance) {
OSFPerformance.officeExecuteStartDate = 0;
OSFPerformance.officeExecuteStart = 0;
OSFPerformance.officeExecuteEnd = 0;
OSFPerformance.hostInitializationStart = 0;
OSFPerformance.hostInitializationEnd = 0;
OSFPerformance.totalJSHeapSize = 0;
OSFPerformance.usedJSHeapSize = 0;
OSFPerformance.jsHeapSizeLimit = 0;
OSFPerformance.getAppContextStart = 0;
OSFPerformance.getAppContextEnd = 0;
OSFPerformance.createOMEnd = 0;
OSFPerformance.officeOnReady = 0;
OSFPerformance.hostSpecificFileName = "";
function now() {
if (performance && performance.now) {
return performance.now();
}
else {
return 0;
}
}
OSFPerformance.now = now;
function getTotalJSHeapSize() {
if (typeof (performance) !== 'undefined' && performance.memory) {
return performance.memory.totalJSHeapSize;
}
else {
return 0;
}
}
OSFPerformance.getTotalJSHeapSize = getTotalJSHeapSize;
function getUsedJSHeapSize() {
if (typeof (performance) !== 'undefined' && performance.memory) {
return performance.memory.usedJSHeapSize;
}
else {
return 0;
}
}
OSFPerformance.getUsedJSHeapSize = getUsedJSHeapSize;
function getJSHeapSizeLimit() {
if (typeof (performance) !== 'undefined' && performance.memory) {
return performance.memory.jsHeapSizeLimit;
}
else {
return 0;
}
}
OSFPerformance.getJSHeapSizeLimit = getJSHeapSizeLimit;
})(OSFPerformance || (OSFPerformance = {}));
;
OSFPerformance.officeExecuteStartDate = Date.now();
OSFPerformance.officeExecuteStart = OSFPerformance.now();
/* Office JavaScript API library */
/*
Copyright (c) Microsoft Corporation. All rights reserved.
*/
/*
Your use of this file is governed by the license terms for the Microsoft Office JavaScript (Office.js) API library: https://github.com/OfficeDev/office-js/blob/release/LICENSE.md
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
*/
var OSF=OSF||{};OSF.HostSpecificFileVersionDefault="16.00";OSF.HostSpecificFileVersionMap={access:{web:"16.00"},agavito:{winrt:"16.00"},excel:{android:"16.00",ios:"16.00",mac:"16.00",web:"16.00",win32:"16.01",winrt:"16.00"},onenote:{android:"16.00",ios:"16.00",mac:"16.00",web:"16.00",win32:"16.00",winrt:"16.00"},outlook:{android:"16.00",ios:"16.00",mac:"16.00",web:"16.01",win32:"16.02"},powerpoint:{ios:"16.00",mac:"16.00",web:"16.00",win32:"16.01",winrt:"16.00"},project:{win32:"16.00"},sway:{web:"16.00"},word:{ios:"16.00",mac:"16.00",web:"16.00",win32:"16.01",winrt:"16.00"},visio:{web:"16.00",win32:"16.00"}};OSF.SupportedLocales={"ar-sa":true,"bg-bg":true,"bn-in":true,"ca-es":true,"cs-cz":true,"da-dk":true,"de-de":true,"el-gr":true,"en-us":true,"es-es":true,"et-ee":true,"eu-es":true,"fa-ir":true,"fi-fi":true,"fr-fr":true,"gl-es":true,"he-il":true,"hi-in":true,"hr-hr":true,"hu-hu":true,"id-id":true,"it-it":true,"ja-jp":true,"kk-kz":true,"ko-kr":true,"lo-la":true,"lt-lt":true,"lv-lv":true,"ms-my":true,"nb-no":true,"nl-nl":true,"nn-no":true,"pl-pl":true,"pt-br":true,"pt-pt":true,"ro-ro":true,"ru-ru":true,"sk-sk":true,"sl-si":true,"sr-cyrl-cs":true,"sr-cyrl-rs":true,"sr-latn-cs":true,"sr-latn-rs":true,"sv-se":true,"th-th":true,"tr-tr":true,"uk-ua":true,"ur-pk":true,"vi-vn":true,"zh-cn":true,"zh-tw":true};OSF.AssociatedLocales={ar:"ar-sa",bg:"bg-bg",bn:"bn-in",ca:"ca-es",cs:"cs-cz",da:"da-dk",de:"de-de",el:"el-gr",en:"en-us",es:"es-es",et:"et-ee",eu:"eu-es",fa:"fa-ir",fi:"fi-fi",fr:"fr-fr",gl:"gl-es",he:"he-il",hi:"hi-in",hr:"hr-hr",hu:"hu-hu",id:"id-id",it:"it-it",ja:"ja-jp",kk:"kk-kz",ko:"ko-kr",lo:"lo-la",lt:"lt-lt",lv:"lv-lv",ms:"ms-my",nb:"nb-no",nl:"nl-nl",nn:"nn-no",pl:"pl-pl",pt:"pt-br",ro:"ro-ro",ru:"ru-ru",sk:"sk-sk",sl:"sl-si",sr:"sr-cyrl-cs",sv:"sv-se",th:"th-th",tr:"tr-tr",uk:"uk-ua",ur:"ur-pk",vi:"vi-vn",zh:"zh-cn"};OSF.SupportedRTLLocales={"ar-sa":true,"he-il":true,"fa-ir":true,"ur-pk":true};OSF.getSupportedLocale=function(a,c){if(c===void 0)c="en-us";if(!a)return c;var b;a=a.toLowerCase();if(a in OSF.SupportedLocales)b=a;else{var d=a.split("-",1);if(d&&d.length>0)b=OSF.AssociatedLocales[d[0]]}if(!b)b=c;return b};OSF.isRTLLocale=function(a){if(!a)return false;return OSF.SupportedRTLLocales[a.toLowerCase()]||false};var ScriptLoading;(function(e){var a=false,b=function(){function b(g,e,d,f,c){var b=this;b.url=g;b.isReady=e;b.hasStarted=d;b.timer=f;b.hasError=a;b.pendingCallbacks=[];b.pendingCallbacks.push(c)}return b}(),d=function(){function a(c,b,a){this.scriptId=c;this.startTime=b;this.msResponseTime=a}return a}(),c=function(){var e=true,c=null;function f(d){var b=this;if(d===void 0)d={OfficeJS:"office.js",OfficeDebugJS:"office.debug.js"};b.constantNames=d;b.defaultScriptLoadingTimeout=1e4;b.loadedScriptByIds={};b.scriptTelemetryBuffer=[];b.osfControlAppCorrelationId="";b.basePath=c;b.getUseAssociatedActionsOnly=a;b.trustedTypesOptIn=undefined}f.prototype.isScriptLoading=function(a){return !!(this.loadedScriptByIds[a]&&this.loadedScriptByIds[a].hasStarted)};f.prototype.getOfficeJsBasePathFromScript=function(h){var f=[this.constantNames.OfficeJS,this.constantNames.OfficeDebugJS],b=h.src;if(!b)return "";for(var g=b.toLowerCase(),d="",e=0;!d&&e