Mini Kabibi Habibi

Current Path : C:/Program Files/Microsoft Office/root/Office16/
Upload File :
Current File : C:/Program Files/Microsoft Office/root/Office16/excel-launchevent-host.win32.bundle

/*
 * 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 OSFPerformance,CustomFunctionMappings,CustomFunctions,Strings;!function(e){e.now=function(){return"undefined"!=typeof performance&&performance.now?performance.now():0},e.getTotalJSHeapSize=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.totalJSHeapSize:0},e.getUsedJSHeapSize=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.usedJSHeapSize:0},e.getJSHeapSizeLimit=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.jsHeapSizeLimit:0},e.officeExecuteStartDate=e.officeExecuteStartDate||Date.now(),e.officeExecuteStart=e.officeExecuteStart||0,e.officeExecuteEnd=e.officeExecuteEnd||0,e.hostInitializationStart=0,e.hostInitializationEnd=0,e.totalJSHeapSize=0,e.usedJSHeapSize=0,e.jsHeapSizeLimit=0,e.createOMEnd=0,e.hostSpecificFileName="",e.getAppContextStart=0,e.getAppContextEnd=0,e.getAppContextXdmStart=0,e.getAppContextXdmEnd=0,e.officeOnReady=0}(OSFPerformance||(OSFPerformance={})),function(e){e.definePropertyOnNamespace=function(e,t,n){Object.defineProperty(e,t,{get:function(){return n()},configurable:!0,enumerable:!0})}}(OSF||(OSF={})),OSFPerformance.hostInitializationStart=OSFPerformance.now(),function(e){!function(e){function t(){return e.m_association||(e.m_association=new OSF.Association),e.m_association}e.m_association=e.m_association,e.associate=function(){OTel&&OTel.OTelLogger&&OTel.OTelLogger.onTelemetryLoaded((function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ApiCall",dataFields:[oteljs.makeStringDataField("Api","Office.actions.associate")],eventFlags:{dataCategories:2,diagnosticLevel:110}})})),t().associate.apply(t(),arguments)},OSF.definePropertyOnNamespace(e,"_association",t)}(e.actions||(e.actions={}))}(Office||(Office={})),function(e){!function(e){e[e.Select=0]="Select",e[e.UnSelect=1]="UnSelect",e[e.CancelDialog=2]="CancelDialog",e[e.InsertAgave=3]="InsertAgave",e[e.CtrlF6In=4]="CtrlF6In",e[e.CtrlF6Exit=5]="CtrlF6Exit",e[e.CtrlF6ExitShift=6]="CtrlF6ExitShift",e[e.SelectWithError=7]="SelectWithError",e[e.NotifyHostError=8]="NotifyHostError",e[e.RefreshAddinCommands=9]="RefreshAddinCommands",e[e.PageIsReady=10]="PageIsReady",e[e.TabIn=11]="TabIn",e[e.TabInShift=12]="TabInShift",e[e.TabExit=13]="TabExit",e[e.TabExitShift=14]="TabExitShift",e[e.EscExit=15]="EscExit",e[e.F2Exit=16]="F2Exit",e[e.ExitNoFocusable=17]="ExitNoFocusable",e[e.ExitNoFocusableShift=18]="ExitNoFocusableShift",e[e.MouseEnter=19]="MouseEnter",e[e.MouseLeave=20]="MouseLeave",e[e.UpdateTargetUrl=21]="UpdateTargetUrl",e[e.InstallCustomFunctions=22]="InstallCustomFunctions",e[e.SendTelemetryEvent=23]="SendTelemetryEvent",e[e.UninstallCustomFunctions=24]="UninstallCustomFunctions",e[e.SendMessage=25]="SendMessage",e[e.LaunchExtensionComponent=26]="LaunchExtensionComponent",e[e.StopExtensionComponent=27]="StopExtensionComponent",e[e.RestartExtensionComponent=28]="RestartExtensionComponent",e[e.EnableTaskPaneHeaderButton=29]="EnableTaskPaneHeaderButton",e[e.DisableTaskPaneHeaderButton=30]="DisableTaskPaneHeaderButton",e[e.TaskPaneHeaderButtonClicked=31]="TaskPaneHeaderButtonClicked",e[e.RemoveAppCommandsAddin=32]="RemoveAppCommandsAddin",e[e.RefreshRibbonGallery=33]="RefreshRibbonGallery",e[e.GetOriginalControlId=34]="GetOriginalControlId",e[e.OfficeJsReady=35]="OfficeJsReady",e[e.InsertDevManifest=36]="InsertDevManifest",e[e.InsertDevManifestError=37]="InsertDevManifestError",e[e.SendCustomerContent=38]="SendCustomerContent",e[e.KeyboardShortcuts=39]="KeyboardShortcuts",e[e.CloseSDXDialog=42]="CloseSDXDialog",e[e.ResizeSDXDialog=43]="ResizeSDXDialog",e[e.SendNonStandardEvent=44]="SendNonStandardEvent"}(e.AgaveHostAction||(e.AgaveHostAction={}))}(OSF||(OSF={})),function(e){var t=function(){function t(){var t=this;this._processAppCommandInvocation=function(e){var n=t._verifyManifestCallback(e.callbackName);if(0==n.errorCode){var r=t._constructEventObjectForCallback(e);r?window.setTimeout((function(){n.callback(r)}),0):t._invokeAppCommandCompletedMethod(e.appCommandId,5001,"")}else t._invokeAppCommandCompletedMethod(e.appCommandId,n.errorCode,"")},this._eventDispatch=new e.EventDispatch([{type:e.EventType.AppCommandInvoked,id:e.EventDispId.dispidAppCommandInvokedEvent,getTargetId:function(){return""},fromSafeArrayHost:function(t){return{type:e.EventType.AppCommandInvoked,appCommandId:t[0],callbackName:t[1],eventObjStr:t[2]}},fromWebHost:function(t){return{type:e.EventType.AppCommandInvoked,appCommandId:t[0],callbackName:t[1],eventObjStr:t[2]}}}])}return t.prototype.initializeEventHandler=function(t){var n=this;this.addHandlerAsync(e.EventType.AppCommandInvoked,(function(e){n._processAppCommandInvocation(e)}),t)},t.prototype.appCommandInvocationCompletedAsync=function(t,n,r,o){e._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(94,{fromSafeArrayHost:function(e){return e},fromWebHost:function(e){return e},toSafeArrayHost:function(){return[t,n,r]},toWebHost:function(){var e={};return e[0]=t,e[1]=n,e[2]=r,e}},o)},t.prototype.addHandlerAsync=function(t,n,r){e.EventHelper.addEventHandler(t,n,r,this._eventDispatch,void 0,e.OUtil.isPopupWindow())},t.prototype._verifyManifestCallback=function(e){var t={callback:null,errorCode:11101};e=e.trim();try{var n=this._getCallbackFunc(e);if("function"!=typeof n)return t}catch(e){return t}return{callback:n,errorCode:0}},t.prototype._getCallbackFuncFromActionAssociateTable=function(e){var t=e.toUpperCase();return Office.actions._association.mappings[t]},t.prototype._getCallbackFunc=function(e){return this._getCallbackFuncFromActionAssociateTable(e)},t.prototype._invokeAppCommandCompletedMethod=function(e,t,n){this.appCommandInvocationCompletedAsync(e,t,n,(function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Failed to notify the host thta app command is completed")}))},t.prototype._constructEventObjectForCallback=function(e){var t,n,r=this;try{t=JSON.parse(e.eventObjStr),n=JSON.parse(e.eventObjStr)}catch(e){}return t||(t={}),n||(n={}),t.completed=function(t){n.completedContext=t;var o=JSON.stringify(n);r._invokeAppCommandCompletedMethod(e.appCommandId,0,o)},t},t.initialize=function(){null==t._instance&&(t._instance=new t,t._instance.initializeEventHandler((function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Cannot initialize app command: "+JSON.stringify(e))})))},t._instance=null,t}();e.AppCommandManager=t}(OSF||(OSF={})),function(e){!function(e){e[e.Unsupported=0]="Unsupported",e[e.Excel=1]="Excel",e[e.Word=2]="Word",e[e.PowerPoint=4]="PowerPoint",e[e.Outlook=8]="Outlook",e[e.ExcelWebApp=16]="ExcelWebApp",e[e.WordWebApp=32]="WordWebApp",e[e.OutlookWebApp=64]="OutlookWebApp",e[e.Project=128]="Project",e[e.AccessWebApp=256]="AccessWebApp",e[e.PowerpointWebApp=512]="PowerpointWebApp",e[e.ExcelIOS=1024]="ExcelIOS",e[e.Sway=2048]="Sway",e[e.WordIOS=4096]="WordIOS",e[e.PowerPointIOS=8192]="PowerPointIOS",e[e.Access=16384]="Access",e[e.Lync=32768]="Lync",e[e.OutlookIOS=65536]="OutlookIOS",e[e.OneNoteWebApp=131072]="OneNoteWebApp",e[e.OneNote=262144]="OneNote",e[e.ExcelWinRT=524288]="ExcelWinRT",e[e.WordWinRT=1048576]="WordWinRT",e[e.PowerpointWinRT=2097152]="PowerpointWinRT",e[e.OutlookAndroid=4194304]="OutlookAndroid",e[e.OneNoteWinRT=8388608]="OneNoteWinRT",e[e.ExcelAndroid=8388609]="ExcelAndroid",e[e.VisioWebApp=8388610]="VisioWebApp",e[e.OneNoteIOS=8388611]="OneNoteIOS",e[e.WordAndroid=8388613]="WordAndroid",e[e.PowerpointAndroid=8388614]="PowerpointAndroid",e[e.Visio=8388615]="Visio",e[e.OneNoteAndroid=4194305]="OneNoteAndroid"}(e.AppName||(e.AppName={}))}(OSF||(OSF={})),function(e){var t=function(){function e(){this.m_mappings={},this.m_onchangeHandlers=[]}return e.prototype.associate=function(e,t){function n(e){"undefined"!=typeof console&&console.warn&&console.warn(e)}if(1==arguments.length&&"object"==typeof arguments[0]&&arguments[0]){var r=arguments[0];for(var o in r)this.associate(o,r[o])}else if(2==arguments.length){var i=arguments[0],a=arguments[1];if("string"!=typeof i)return void n("[InvalidArg] Function=associate");if("function"!=typeof a)return void n("[InvalidArg] Function=associate");var s=i.toUpperCase();this.m_mappings[s]&&n("[DuplicatedName] Function="+i),this.m_mappings[s]=a;for(var l=0;l<this.m_onchangeHandlers.length;l++)this.m_onchangeHandlers[l]()}else n("[InvalidArg] Function=associate")},e.prototype.onchange=function(e){e&&this.m_onchangeHandlers.push(e)},Object.defineProperty(e.prototype,"mappings",{get:function(){return this.m_mappings},enumerable:!0,configurable:!0}),e}();e.Association=t}(OSF||(OSF={})),function(e){var t=function(){function e(){}return e.prototype.invokeCallback=function(e,t,n,r,o){if(0==n){var i={status:Office.AsyncResultStatus.Succeeded,value:r,asyncContext:o};"function"==typeof t&&t(i)}else{var a={status:Office.AsyncResultStatus.Failed,error:{code:n},asyncContext:o};"function"==typeof t&&t(a)}},e}();e.AsyncMethodExecutor=t}(OSF||(OSF={})),function(e){var t=function(){function t(e){this._asyncMethodExecutor=e}return t.prototype.handleSafeArrayHostResponse=function(t,n,r,o,i,a,s){var l,u;if("number"==typeof(t=e.Utility.fromSafeArray(t))?(l=[],u=t):u=(l=t)[0],1==u)return null!=(c=l[1])&&(r[c[0]]=c[1]),!1;if(o){var c;if(0==u){if(l.length>2){c=[];for(var p=1;p<l.length;p++)c[p-1]=l[p]}else c=l[1];if(r.length>0&&null!=c){var f=c[c.length-1];r.length==f?c[c.length-1]=r:u=5001}}else c=l[1];var h=null;0==u&&(h=i.fromSafeArrayHost(c)),this._asyncMethodExecutor.invokeCallback(a,o,u,h,s)}return!0},t.prototype.handleWebHostResponse=function(e,t,n,r,o,i){var a=null;0==t&&(a=r.fromWebHost(e)),this._asyncMethodExecutor.invokeCallback(o,n,t,a,i)},t}();e.AsyncMethodExecutorHelper=t}(OSF||(OSF={})),function(e){!function(e){!function(e){!function(e){e.Context="Context",e.Value="Value",e.Status="Status",e.Error="Error"}(e.Properties||(e.Properties={})),function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed"}(e.ErrorCode||(e.ErrorCode={})),function(e){e.Name="Name",e.Message="Message",e.Code="Code"}(e.ErrorProperties||(e.ErrorProperties={}))}(e.AsyncResultEnum||(e.AsyncResultEnum={}));var t=function(e,t){this.value=e.Value,this.status=t?Office.AsyncResultStatus.Failed:Office.AsyncResultStatus.Succeeded,e.Context&&(this.asyncContext=e.Context),t&&(this.error=new n(t.Name,t.Message,t.Code))};e.AsyncResult=t;var n=function(e,t,n){this.name=e,this.message=t,this.code=n};e.Error=n}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){!function(t){t.createWebClientHostControllerHelper=function(t,n){return new e.WebClientHostControllerHelper(t,n)},t.createAsyncMethodExecutorHelper=function(t){return new e.AsyncMethodExecutorHelper(t)}}(e.BootStrapExtension||(e.BootStrapExtension={}))}(OSF||(OSF={})),function(e){!function(e){e.DefaultLocale="en-us",e.OfficeJS="office.js",e.OfficeDebugJS="office.debug.js",e.OfficeStringsId="OFFICESTRINGS",e.OfficeJsId="OFFICEJS",e.HostFileId="HOST",e.OfficeStringJS="office_strings.js",e.OfficeStringDebugJS="office_strings.debug.js",e.FileVersion="0.0.0.0"}(e.ConstantNames||(e.ConstantNames={}))}(OSF||(OSF={})),function(e){var t=function(){function e(){}return e.NotificationConversationIdSuffix="_ntf",e}();e.Constants=t}(OSF||(OSF={})),CustomFunctionMappings||(CustomFunctionMappings={}),function(e){e.delayInitialization=function(){CustomFunctionMappings.__delay__=!0},e._association=e._association||new OSF.Association,e.associate=function(){e._association.associate.apply(e._association,arguments),delete CustomFunctionMappings.__delay__}}(CustomFunctions||(CustomFunctions={})),function(e){!function(e){!function(e){var t={},n=!1;e.getErrorArgs=function(e){var r;n||(r=Strings.OfficeOM,t[1e3]={name:r.L_InvalidCoercion,message:r.L_CoercionTypeNotSupported},t[1001]={name:r.L_DataReadError,message:r.L_GetSelectionNotSupported},t[1002]={name:r.L_InvalidCoercion,message:r.L_CoercionTypeNotMatchBinding},t[1003]={name:r.L_DataReadError,message:r.L_InvalidGetRowColumnCounts},t[1004]={name:r.L_DataReadError,message:r.L_SelectionNotSupportCoercionType},t[1005]={name:r.L_DataReadError,message:r.L_InvalidGetStartRowColumn},t[1006]={name:r.L_DataReadError,message:r.L_NonUniformPartialGetNotSupported},t[1008]={name:r.L_DataReadError,message:r.L_GetDataIsTooLarge},t[1009]={name:r.L_DataReadError,message:r.L_FileTypeNotSupported},t[1010]={name:r.L_DataReadError,message:r.L_GetDataParametersConflict},t[1011]={name:r.L_DataReadError,message:r.L_InvalidGetColumns},t[1012]={name:r.L_DataReadError,message:r.L_InvalidGetRows},t[1013]={name:r.L_DataReadError,message:r.L_InvalidReadForBlankRow},t[2e3]={name:r.L_DataWriteError,message:r.L_UnsupportedDataObject},t[2001]={name:r.L_DataWriteError,message:r.L_CannotWriteToSelection},t[2002]={name:r.L_DataWriteError,message:r.L_DataNotMatchSelection},t[2003]={name:r.L_DataWriteError,message:r.L_OverwriteWorksheetData},t[2004]={name:r.L_DataWriteError,message:r.L_DataNotMatchBindingSize},t[2005]={name:r.L_DataWriteError,message:r.L_InvalidSetStartRowColumn},t[2006]={name:r.L_InvalidFormat,message:r.L_InvalidDataFormat},t[2007]={name:r.L_InvalidDataObject,message:r.L_DataNotMatchCoercionType},t[2008]={name:r.L_InvalidDataObject,message:r.L_DataNotMatchBindingType},t[2009]={name:r.L_DataWriteError,message:r.L_SetDataIsTooLarge},t[2010]={name:r.L_DataWriteError,message:r.L_NonUniformPartialSetNotSupported},t[2011]={name:r.L_DataWriteError,message:r.L_InvalidSetColumns},t[2012]={name:r.L_DataWriteError,message:r.L_InvalidSetRows},t[2013]={name:r.L_DataWriteError,message:r.L_SetDataParametersConflict},t[3e3]={name:r.L_BindingCreationError,message:r.L_SelectionCannotBound},t[3002]={name:r.L_InvalidBindingError,message:r.L_BindingNotExist},t[3003]={name:r.L_BindingCreationError,message:r.L_BindingToMultipleSelection},t[3004]={name:r.L_BindingCreationError,message:r.L_InvalidSelectionForBindingType},t[3005]={name:r.L_InvalidBindingOperation,message:r.L_OperationNotSupportedOnThisBindingType},t[3006]={name:r.L_BindingCreationError,message:r.L_NamedItemNotFound},t[3007]={name:r.L_BindingCreationError,message:r.L_MultipleNamedItemFound},t[3008]={name:r.L_BindingCreationError,message:r.L_InvalidNamedItemForBindingType},t[3009]={name:r.L_InvalidBinding,message:r.L_UnknownBindingType},t[3010]={name:r.L_InvalidBindingOperation,message:r.L_OperationNotSupportedOnMatrixData},t[3011]={name:r.L_InvalidBinding,message:r.L_InvalidColumnsForBinding},t[4e3]={name:r.L_ReadSettingsError,message:r.L_SettingNameNotExist},t[4001]={name:r.L_SaveSettingsError,message:r.L_SettingsCannotSave},t[4002]={name:r.L_SettingsStaleError,message:r.L_SettingsAreStale},t[5e3]={name:r.L_HostError,message:r.L_OperationNotSupported},t[5001]={name:r.L_InternalError,message:r.L_InternalErrorDescription},t[5002]={name:r.L_PermissionDenied,message:r.L_DocumentReadOnly},t[5003]={name:r.L_EventRegistrationError,message:r.L_EventHandlerNotExist},t[5004]={name:r.L_InvalidAPICall,message:r.L_InvalidApiCallInContext},t[5005]={name:r.L_ShuttingDown,message:r.L_ShuttingDown},t[5007]={name:r.L_UnsupportedEnumeration,message:r.L_UnsupportedEnumerationMessage},t[5008]={name:r.L_IndexOutOfRange,message:r.L_IndexOutOfRange},t[5009]={name:r.L_APINotSupported,message:r.L_BrowserAPINotSupported},t[5011]={name:r.L_APICallFailed,message:r.L_RequestTimeout},t[5012]={name:r.L_InvalidOrTimedOutSession,message:r.L_InvalidOrTimedOutSessionMessage},t[5013]={name:r.L_APICallFailed,message:r.L_InvalidApiArgumentsMessage},t[5015]={name:r.L_APICallFailed,message:r.L_WorkbookHiddenMessage},t[5016]={name:r.L_APICallFailed,message:r.L_WriteNotSupportedWhenModalDialogOpen},t[5017]={name:r.L_APICallFailed,message:r.L_UndoNotSupportedMessage},t[5100]={name:r.L_APICallFailed,message:r.L_TooManyIncompleteRequests},t[5101]={name:r.L_APICallFailed,message:r.L_RequestTokenUnavailable},t[5102]={name:r.L_APICallFailed,message:r.L_ActivityLimitReached},t[5103]={name:r.L_APICallFailed,message:r.L_RequestPayloadSizeLimitExceededMessage},t[5104]={name:r.L_APICallFailed,message:r.L_ResponsePayloadSizeLimitExceededMessage},t[6e3]={name:r.L_InvalidNode,message:r.L_CustomXmlNodeNotFound},t[6100]={name:r.L_CustomXmlError,message:r.L_CustomXmlError},t[6101]={name:r.L_CustomXmlExceedQuotaName,message:r.L_CustomXmlExceedQuotaMessage},t[6102]={name:r.L_CustomXmlOutOfDateName,message:r.L_CustomXmlOutOfDateMessage},t[7e3]={name:r.L_PermissionDenied,message:r.L_NoCapability},t[7001]={name:r.L_CannotNavigateTo,message:r.L_CannotNavigateTo},t[7002]={name:r.L_SpecifiedIdNotExist,message:r.L_SpecifiedIdNotExist},t[7004]={name:r.L_NavOutOfBound,message:r.L_NavOutOfBound},t[2014]={name:r.L_DataWriteReminder,message:r.L_CellDataAmountBeyondLimits},t[8e3]={name:r.L_MissingParameter,message:r.L_ElementMissing},t[8001]={name:r.L_PermissionDenied,message:r.L_NoCapability},t[8010]={name:r.L_InvalidValue,message:r.L_InvalidCellsValue},t[8011]={name:r.L_InvalidValue,message:r.L_InvalidTableOptionValue},t[8012]={name:r.L_InvalidValue,message:r.L_InvalidFormatValue},t[8020]={name:r.L_OutOfRange,message:r.L_RowIndexOutOfRange},t[8021]={name:r.L_OutOfRange,message:r.L_ColIndexOutOfRange},t[8022]={name:r.L_OutOfRange,message:r.L_FormatValueOutOfRange},t[8023]={name:r.L_FormattingReminder,message:r.L_CellFormatAmountBeyondLimits},t[1e4]={name:r.L_UserNotSignedIn,message:r.L_UserNotSignedIn},t[11e3]={name:r.L_MemoryLimit,message:r.L_CloseFileBeforeRetrieve},t[11001]={name:r.L_NetworkProblem,message:r.L_NetworkProblemRetrieveFile},t[11002]={name:r.L_InvalidValue,message:r.L_SliceSizeNotSupported},t[12007]={name:r.L_DisplayDialogError,message:r.L_DialogAlreadyOpened},t[12e3]={name:r.L_IndexOutOfRange,message:r.L_IndexOutOfRange},t[12001]={name:r.L_IndexOutOfRange,message:r.L_IndexOutOfRange},t[12002]={name:r.L_DisplayDialogError,message:r.L_NetworkProblem},t[12003]={name:r.L_DialogNavigateError,message:r.L_DialogInvalidScheme},t[12004]={name:r.L_DisplayDialogError,message:r.L_DialogAddressNotTrusted},t[12005]={name:r.L_DisplayDialogError,message:r.L_DialogRequireHTTPS},t[12009]={name:r.L_DisplayDialogError,message:r.L_UserClickIgnore},t[12011]={name:r.L_DisplayDialogError,message:r.L_NewWindowCrossZoneErrorString},t[13e3]={name:r.L_APINotSupported,message:r.L_InvalidSSOAddinMessage},t[13001]={name:r.L_UserNotSignedIn,message:r.L_UserNotSignedIn},t[13002]={name:r.L_UserAborted,message:r.L_UserAbortedMessage},t[13003]={name:r.L_UnsupportedUserIdentity,message:r.L_UnsupportedUserIdentityMessage},t[13004]={name:r.L_InvalidResourceUrl,message:r.L_InvalidResourceUrlMessage},t[13005]={name:r.L_InvalidGrant,message:r.L_InvalidGrantMessage},t[13006]={name:r.L_SSOClientError,message:r.L_SSOClientErrorMessage},t[13007]={name:r.L_SSOServerError,message:r.L_SSOServerErrorMessage},t[13008]={name:r.L_AddinIsAlreadyRequestingToken,message:r.L_AddinIsAlreadyRequestingTokenMessage},t[13009]={name:r.L_SSOUserConsentNotSupportedByCurrentAddinCategory,message:r.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage},t[13010]={name:r.L_SSOConnectionLostError,message:r.L_SSOConnectionLostErrorMessage},t[13012]={name:r.L_APINotSupported,message:r.L_SSOUnsupportedPlatform},t[13013]={name:r.L_APICallFailed,message:r.L_RequestTokenUnavailable},t[5014]={name:r.L_OperationCancelledError,message:r.L_OperationCancelledErrorMessage},n=!0);var o=t[e];return o?(o.name||(o.name=t[5001].name),o.message||(o.message=t[5001].message)):o=t[5001],o},e.addErrorMessage=function(e,n){t[e]=n}}(e.ErrorCodeManager||(e.ErrorCodeManager={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){var t=function(){function e(e){if(this._eventInfos={},this._queuedEventsArgs={},this._eventHandlers={},this._queuedEventsArgs={},null!=e)for(var t=0;t<e.length;t++)if("string"==typeof e[t]){var n=e[t];this._eventHandlers[n]=[],this._queuedEventsArgs[n]=[]}else{n=e[t].type;this._eventInfos[n]=e[t],this._eventHandlers[n]=[],this._queuedEventsArgs[n]=[]}}return e.prototype.getSupportedEvents=function(){var e=[];for(var t in this._eventHandlers)e.push(t);return e},e.prototype.supportsEvent=function(e){for(var t in this._eventHandlers)if(e==t)return!0;return!1},e.prototype.hasEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&n.length>0)for(var r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},e.prototype.addEventHandler=function(e,t){if("function"!=typeof t)return!1;var n=this._eventHandlers[e];return!(!n||this.hasEventHandler(e,t))&&(n.push(t),!0)},e.prototype.addEventHandlerAndFireQueuedEvent=function(e,t){var n=this._eventHandlers[e],r=!n||0==n.length,o=this.addEventHandler(e,t);return r&&o&&this.fireQueuedEvent(e),o},e.prototype.removeEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&n.length>0)for(var r=0;r<n.length;r++)if(n[r]===t)return n.splice(r,1),!0;return!1},e.prototype.clearEventHandlers=function(e){return void 0!==this._eventHandlers[e]&&this._eventHandlers[e].length>0&&(this._eventHandlers[e]=[],!0)},e.prototype.getEventHandlerCount=function(e){return null!=this._eventHandlers[e]?this._eventHandlers[e].length:-1},e.prototype.getEventInfo=function(e){return this._eventInfos[e]},e.prototype.fireEvent=function(e){if(null==e.type)return!1;var t=e.type;if(t&&this._eventHandlers[t]){for(var n=this._eventHandlers[t],r=0;r<n.length;r++)n[r](e);return!0}return!1},e.prototype.fireOrQueueEvent=function(e){if(null==e.type)return!1;var t=e.type;if(t&&this._eventHandlers[t]){var n=this._eventHandlers[t],r=this._queuedEventsArgs[t];return 0==n.length?r.push(e):this.fireEvent(e),!0}return!1},e.prototype.fireQueuedEvent=function(e){if(e&&this._eventHandlers[e]){var t=this._eventHandlers[e],n=this._queuedEventsArgs[e];if(t.length>0){for(var r=t[0];n.length>0;){r(n.shift())}return!0}}return!1},e.prototype.clearQueuedEvent=function(e){e&&this._eventHandlers[e]&&(this._queuedEventsArgs[e]&&(this._queuedEventsArgs[e]=[]))},e}();e.EventDispatch=t}(OSF||(OSF={})),function(e){!function(e){e.dispidEventMin=0,e.dispidInitializeEvent=0,e.dispidSettingsChangedEvent=1,e.dispidDocumentSelectionChangedEvent=2,e.dispidBindingSelectionChangedEvent=3,e.dispidBindingDataChangedEvent=4,e.dispidDocumentOpenEvent=5,e.dispidDocumentCloseEvent=6,e.dispidActiveViewChangedEvent=7,e.dispidDocumentThemeChangedEvent=8,e.dispidOfficeThemeChangedEvent=9,e.dispidDialogMessageReceivedEvent=10,e.dispidDialogNotificationShownInAddinEvent=11,e.dispidDialogParentMessageReceivedEvent=12,e.dispidObjectDeletedEvent=13,e.dispidObjectSelectionChangedEvent=14,e.dispidObjectDataChangedEvent=15,e.dispidContentControlAddedEvent=16,e.dispidLiveShareStateChangedEvent=17,e.dispidActivationStatusChangedEvent=32,e.dispidRichApiMessageEvent=33,e.dispidAppCommandInvokedEvent=39,e.dispidOnSdxSendMessageEvent=40,e.dispidDataNodeAddedEvent=60,e.dispidDataNodeReplacedEvent=61,e.dispidDataNodeDeletedEvent=62}(e.EventDispId||(e.EventDispId={}))}(OSF||(OSF={})),function(e){var t=function(){function t(){}return t.addEventHandler=function(n,r,o,i,a,s){var l=0;function u(t){0==t&&(i.hasEventHandler(n,r)||i.addEventHandler(n,r)||(t=5010));e._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(l,o,t,null,a)}var c=i.getEventInfo(n);if(c)try{if(s)return void u(0);l=c.id;var p=c.getTargetId();if(0==i.getEventHandlerCount(n))e._OfficeAppFactory.getAsyncMethodExecutor().registerEventAsync(l,c.type,p,(function(e){i.fireEvent(e)}),c,(function(t){u(e.Utility.getErrorCodeFromAsyncResult(t))}),a);else u(0)}catch(e){t.onException(l,e,o)}else u(5010)},t.removeEventHandler=function(n,r,o,i,a,s){var l=0;function u(t){e._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(l,o,t,null,a)}var c=i.getEventInfo(n);if(c)try{l=c.id;var p=c.getTargetId(),f=0,h=!0;null===r?(h=i.clearEventHandlers(n),f=0):f=(h=i.removeEventHandler(n,r))?0:5003;var d=i.getEventHandlerCount(n);if(h&&0==d)e._OfficeAppFactory.getAsyncMethodExecutor().unregisterEventAsync(l,c.type,p,(function(t){u(e.Utility.getErrorCodeFromAsyncResult(t))}),a);else u(f)}catch(e){t.onException(l,e,o)}else u(5010)},t.onException=function(t,n,r){if("number"!=typeof n)throw n;e._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(t,r,n,null)},t}();e.EventHelper=t}(OSF||(OSF={})),function(e){!function(e){e.ActiveViewChanged="activeViewChanged",e.AppCommandInvoked="appCommandInvoked",e.RichApiMessage="richApiMessage",e.DocumentSelectionChanged="documentSelectionChanged",e.BindingSelectionChanged="bindingSelectionChanged",e.BindingDataChanged="bindingDataChanged",e.OfficeThemeChanged="officeThemeChanged",e.DocumentThemeChanged="documentThemeChanged",e.LiveShareStateChanged="liveShareStateChanged",e.DataNodeDeleted="nodeDeleted",e.DataNodeInserted="nodeInserted",e.DataNodeReplaced="nodeReplaced",e.DialogMessageReceived="dialogMessageReceived",e.DialogParentMessageReceived="dialogParentMessageReceived",e.DialogParentEventReceived="dialogParentEventReceived",e.DialogEventReceived="dialogEventReceived",e.NodeDeleted="nodeDeleted",e.NodeInserted="nodeInserted",e.NodeReplaced="nodeReplaced",e.SettingsChanged="settingsChanged"}(e.EventType||(e.EventType={}))}(OSF||(OSF={})),function(e){!function(t){var n=function(){function t(){this.platformRemappings={web:Office.PlatformType.OfficeOnline,winrt:Office.PlatformType.Universal,win32:Office.PlatformType.PC,mac:Office.PlatformType.Mac,ios:Office.PlatformType.iOS,android:Office.PlatformType.Android},this.camelCaseMappings={powerpoint:Office.HostType.PowerPoint,onenote:Office.HostType.OneNote},this.hostInfo=e._OfficeAppFactory.getHostInfo()}return t.prototype.capitalizeFirstLetter=function(e){return e?e[0].toUpperCase()+e.slice(1).toLowerCase():e},t.getInstance=function(){return void 0===t.hostObj&&(t.hostObj=new t),t.hostObj},t.prototype.getPlatform=function(e){if(this.hostInfo&&this.hostInfo.hostPlatform){var t=this.hostInfo.hostPlatform.toLowerCase();if(this.platformRemappings[t])return this.platformRemappings[t]}return null},t.prototype.getHost=function(e){if(this.hostInfo&&this.hostInfo.hostType){var t=this.hostInfo.hostType.toLowerCase();if(this.camelCaseMappings[t])return this.camelCaseMappings[t];if(t=this.capitalizeFirstLetter(this.hostInfo.hostType),Office.HostType[t])return Office.HostType[t]}return null},t.prototype.getDefaultVersion=function(){return this.getHost()?"16.0.0000.0000":null},t.prototype.getDiagnostics=function(e){return{host:this.getHost(),version:e||this.getDefaultVersion(),platform:this.getPlatform()}},t}();t.Host=n}(e.HostName||(e.HostName={}))}(OSF||(OSF={})),function(e){!function(e){e[e.SharedApp=1]="SharedApp",e[e.CustomFunction=2]="CustomFunction",e[e.ProtectedDocDisable=4]="ProtectedDocDisable",e[e.ExperimentJsEnabled=8]="ExperimentJsEnabled",e[e.PublicAddin=16]="PublicAddin",e[e.BundleJsEnabled=32]="BundleJsEnabled",e[e.IsMos=64]="IsMos",e[e.IsMonarch=128]="IsMonarch"}(e.HostInfoFlags||(e.HostInfoFlags={}))}(OSF||(OSF={})),function(e){!function(e){e.excel="excel",e.word="word"}(e.HostInfoHostType||(e.HostInfoHostType={}))}(OSF||(OSF={})),function(e){!function(e){e.web="web",e.winrt="winrt",e.win32="win32",e.mac="mac",e.ios="ios",e.android="android"}(e.HostInfoPlatform||(e.HostInfoPlatform={}))}(OSF||(OSF={})),function(e){var t=function(){function t(e,t,n,r){this._hostInfo=e,this._webAppState=t,this._context=n,this._hostFacade=r}return t.prototype.saveAndSetDialogInfo=function(e){},t.prototype.setAgaveHostCommunication=function(){},t.prototype.createClientHostController=function(){return null},t.prototype.createAsyncMethodExecutor=function(){return null},t.prototype.createClientSettingsManager=function(){return null},t.prototype.createSettings=function(t){var n=e.OUtil.getSessionStorage();if(n){var r=n.getItem(e._OfficeAppFactory.getCachedSessionSettingsKey());r?t=JSON.parse(r):(r=JSON.stringify(t),n.setItem(e._OfficeAppFactory.getCachedSessionSettingsKey(),r))}var o=e.OUtil.deserializeSettings(t),i=this.createClientSettingsManager();return new Office.Settings(o,i)},t.prototype.prepareApiSurface=function(t){var n=t.get_featureGates();n&&(Microsoft.Office.WebExtension.FeatureGates=n),e.BootStrapExtension.prepareApiSurface&&e.BootStrapExtension.prepareApiSurface(),e.BootStrapExtension.prepareHostSpecificSurface&&e.BootStrapExtension.prepareHostSpecificSurface(),OSFPerformance.createOMEnd=OSFPerformance.now()},t.prototype.getTabbableElements=function(){return null},t}();e.InitializationHelper=t}(OSF||(OSF={})),function(e){!function(e){e.Inserted="inserted",e.DocumentOpened="documentOpened"}(e.InitializationReason||(e.InitializationReason={}))}(OSF||(OSF={})),OSF||(OSF={}),function(e){!function(t){var n,r=null,o=!1,i=["excel","word","powerpoint","onenote","outlook","visio","office-common","office.common","office","officebase"],a=[".js",".debug.js"],s="_osfDisableHostCheck",l=function(){try{return document.currentScript}catch(e){return null}}();function u(){return c(),n.trustedTypesOptIn}function c(){if(!n){var e=function(e){var t=null!=e?e.src:null;if(!t)return null;for(var n=t.toLowerCase(),r=0;r<i.length;r++)for(var o=0;o<a.length;o++){var l=i[r]+a[o],u=n.indexOf(l);if(u>=0&&(0===u||"/"===t.charAt(u-1)||"\\"===t.charAt(u-1))&&(u+l.length===t.length||"?"===t.charAt(u+l.length))){var c=t.substring(0,u),p=n.indexOf(".debug.js",u)>0,f=e.getAttribute("data-is-sdx"),h="1"===f||"true"===f,d=e.getAttribute("data-enable-trusted-types"),y="1"===d||"true"===d;return{basePath:c,name:l,isDebugJs:p,isSdx:h,disableHostCheck:window.hasOwnProperty(s)&&!0===window._osfDisableHostCheck,trustedTypesOptIn:y}}}return null};if(!(n=e(l))){for(var t=document.getElementsByTagName("script"),r=t.length,o=0;o<r;o++)if(n=e(t[o]))return;n={basePath:"",name:"",isDebugJs:!1,isSdx:!1,disableHostCheck:!1,trustedTypesOptIn:!1}}}}t.getHostBundleJsBasePath=function(){return c(),n.basePath},t.getHostBundleJsName=function(){return c(),n.name},t.getOfficeStringJsName=function(){return c(),n.isDebugJs?e.ConstantNames.OfficeStringDebugJS:e.ConstantNames.OfficeStringJS},t.isSdx=function(){return c(),n.isSdx},t.disableHostCheck=function(){return c(),n.disableHostCheck},t.trustedTypesOptIn=u,t.loadScriptWithBasename=function(t,r,o){c();var i=t+(n.isDebugJs?".debug.js":".js");i=i.toLowerCase();var a=n.basePath+i;e.OUtil.loadScript(a,r,f())};var p=["https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js"];function f(){if(!o){o=!0;try{if(!u()||!window.trustedTypes||!window.trustedTypes.createPolicy)return null;var e=l.src,t=new URL(e).origin.toLowerCase();if(!t)return null;r=window.trustedTypes.createPolicy("officejs",{createScriptURL:function(e){var n=e.toLowerCase(),r=new URL(n).origin;if(t&&t===r)return e;for(var o=0,i=p;o<i.length;o++){if(n===i[o])return e}throw new Error("Untrusted script URL")}})}catch(e){}}return r}t.getTrustedTypesPolicy=f}(e.LoadScriptHelper||(e.LoadScriptHelper={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){t.getAuthContextAsync=function(t){function n(e){var t=e.userObjectId||"",n=e.tenantId||"",r=e.userPrincipalName||"";return{userObjectId:t,tenantId:n,userPrincipalName:r,authorityType:e.authorityType||"",authorityBaseUrl:e.authorityBaseUrl||"",puid:e.puid||"",loginHint:e.loginHint||r}}var r={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){try{return n(JSON.parse(e))}catch(e){return null}},toWebHost:function(){return{}},fromWebHost:function(e){return n(e)}};e._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(205,r,t)}}(t.Auth||(t.Auth={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){var t;!function(e){e[e.MaxLiveShareStateDataSizeInBytes=1024]="MaxLiveShareStateDataSizeInBytes"}(t=e.LiveShareStateParams||(e.LiveShareStateParams={}));var n=function(){function e(e){var t=this;e=e||null,this._liveShareState=e,this._eventDispatch=new OSF.EventDispatch([{id:OSF.EventDispId.dispidLiveShareStateChangedEvent,type:OSF.EventType.LiveShareStateChanged,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:OSF.EventType.LiveShareStateChanged,liveShareState:t}},fromWebHost:function(e){return{type:OSF.EventType.LiveShareStateChanged,liveShareState:t}}}])}return e.prototype.get=function(){return this._liveShareState},e.prototype.set=function(e){if((new TextEncoder).encode(e).length>t.MaxLiveShareStateDataSizeInBytes)throw new Error("State data size is limited to "+t.MaxLiveShareStateDataSizeInBytes+" bytes.");this._liveShareState=e},e.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},e.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},e}();e.LiveShareState=n}(Office||(Office={})),function(e){var t={"ar-sa":!0,"bg-bg":!0,"bn-in":!0,"ca-es":!0,"cs-cz":!0,"da-dk":!0,"de-de":!0,"el-gr":!0,"en-us":!0,"es-es":!0,"et-ee":!0,"eu-es":!0,"fa-ir":!0,"fi-fi":!0,"fr-fr":!0,"gl-es":!0,"he-il":!0,"hi-in":!0,"hr-hr":!0,"hu-hu":!0,"id-id":!0,"it-it":!0,"ja-jp":!0,"kk-kz":!0,"ko-kr":!0,"lo-la":!0,"lt-lt":!0,"lv-lv":!0,"ms-my":!0,"nb-no":!0,"nl-nl":!0,"nn-no":!0,"pl-pl":!0,"pt-br":!0,"pt-pt":!0,"ro-ro":!0,"ru-ru":!0,"sk-sk":!0,"sl-si":!0,"sr-cyrl-cs":!0,"sr-cyrl-rs":!0,"sr-latn-cs":!0,"sr-latn-rs":!0,"sv-se":!0,"th-th":!0,"tr-tr":!0,"uk-ua":!0,"ur-pk":!0,"vi-vn":!0,"zh-cn":!0,"zh-tw":!0},n={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"};e.getSupportedLocale=function(e,r){if(void 0===r&&(r="en-us"),!e)return r;var o;if((e=e.toLowerCase())in t)o=e;else{var i=e.split("-",1);i&&i.length>0&&(o=n[i[0]])}return o||(o=r),o}}(OSF||(OSF={})),function(e){e.OfficeOM||(e.OfficeOM={})}(Strings||(Strings={})),function(e){!function(t){var n;t.ensureOfficeStringsJs=function(){return n||(n=1==e.OUtil.getLibraryReleaseVehicle()?new Office.Promise((function(e,t){e()})):new Office.Promise((function(n,r){if(e._OfficeAppFactory.getHostInfo().hostLocale){var o=e.LoadScriptHelper.getHostBundleJsBasePath()+e._OfficeAppFactory.getHostInfo().hostLocale+"/"+e.LoadScriptHelper.getOfficeStringJsName();e.OUtil.loadScript(o,(function(o){if(o)n();else{var i=e.LoadScriptHelper.getHostBundleJsBasePath()+e.ConstantNames.DefaultLocale+"/"+e.LoadScriptHelper.getOfficeStringJsName();t.loadScript(i,(function(t){t?n():r(new Error("Cannot load "+e.ConstantNames.OfficeStringJS))}),e.LoadScriptHelper.getTrustedTypesPolicy())}}),e.LoadScriptHelper.getTrustedTypesPolicy())}else r(new Error("No host locale"))}))),n}}(e.OUtil||(e.OUtil={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){var n;OSF.definePropertyOnNamespace(t,"url",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_docUrl()})),OSF.definePropertyOnNamespace(t,"mode",(function(){return 0==OSF._OfficeAppFactory.getOfficeAppContext().get_clientMode()?e.DocumentMode.ReadOnly:e.DocumentMode.ReadWrite})),OSF.definePropertyOnNamespace(t,"settings",(function(){if(!n){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_settingsFunc()();n=OSF._OfficeAppFactory.getInitializationHelper().createSettings(e)}return n})),t.goToByIdAsync=function(t,n,r,o){var i={};i[e.GoToType.Binding]=0,i[e.GoToType.NamedItem]=1,i[e.GoToType.Slide]=2,i[e.GoToType.Index]=3;var a={};a[e.SelectionMode.Default]=0,a[e.SelectionMode.Selected]=1,a[e.SelectionMode.None]=2;var s=i[n],l=0,u=o;"function"==typeof r?u=r:void 0!==r&&(l=a[r]);var c={toSafeArrayHost:function(){return[t,s,l]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaGoToByIdMethod:{Id:t,GoToType:s,SelectionMode:l}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(82,c,u)}}(t.document||(t.document={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){!function(e){e.sendMessage=function(e){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web){var t=OSF._OfficeAppFactory.getWebAppState();t.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[t.id,OSF.AgaveHostAction.SendMessage,e])}else{var n=JSON.stringify(e);OSF._OfficeAppFactory.getClientHostController().execute(208,[n],null)}},e.registerOnMessageEventHandler=function(t){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web)e.onMessage=t;else{OSF._OfficeAppFactory.getClientHostController().registerEvent(OSF.EventDispId.dispidOnSdxSendMessageEvent,"","",(function(e,n){var r=n.toArray();t(JSON.parse(r[0]))}),null)}}}(e.messaging||(e.messaging={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(t){var n,r;OSF.definePropertyOnNamespace(t,"contentLanguage",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_dataLocale()})),OSF.definePropertyOnNamespace(t,"displayLanguage",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_appUILocale()})),OSF.definePropertyOnNamespace(t,"partitionKey",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_partitionKey()})),OSF.definePropertyOnNamespace(t,"isDialog",(function(){return OSF._OfficeAppFactory.getHostInfo().isDialog})),OSF.definePropertyOnNamespace(t,"touchEnabled",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_touchEnabled()})),OSF.definePropertyOnNamespace(t,"commerceAllowed",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_commerceAllowed()})),OSF.definePropertyOnNamespace(t,"host",(function(){return OSF.HostName.Host.getInstance().getHost()})),OSF.definePropertyOnNamespace(t,"platform",(function(){return OSF.HostName.Host.getInstance().getPlatform()})),OSF.definePropertyOnNamespace(t,"diagnostics",(function(){return OSF.HostName.Host.getInstance().getDiagnostics(OSF._OfficeAppFactory.getOfficeAppContext().get_hostFullVersion())})),OSF.definePropertyOnNamespace(t,"requirements",(function(){if(!n){var e=OSF._OfficeAppFactory.getOfficeAppContext();e&&(n=e.get_isDialog()?OSF.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(e):OSF.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(e))}return n})),OSF.definePropertyOnNamespace(t,"officeTheme",(function(){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_officeThemeFunc();return e?"function"==typeof e?e():e:void 0})),OSF.definePropertyOnNamespace(t,"webAuth",(function(){if(OSF.DDA.WebAuth)return OSF.DDA.WebAuth})),OSF.definePropertyOnNamespace(t,"auth",(function(){if(OSF.DDA.Auth)return OSF.DDA.Auth})),OSF.definePropertyOnNamespace(t,"license",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_eToken()})),OSF.definePropertyOnNamespace(t,"hostSettings",(function(){if(!r){var t=OSF._OfficeAppFactory.getOfficeAppContext().get_hostSettingsFunc();if(void 0!==t){var n=t(),o=OSF.OUtil.deserializeSettings(n);r=new e.Settings(o,void 0)}}return r}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){!function(e){e.refreshRibbon=function(e){OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getWebAppState().id,OSF.AgaveHostAction.RefreshRibbonGallery,e])}}(e.ribbonGallery||(e.ribbonGallery={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){!function(e){e.taskPaneAction||(e.taskPaneAction={})}(e.ui||(e.ui={}))}(e.context||(e.context={}))}(Office||(Office={}));var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){function t(){e._officeOnReadyState.officeOnReadyPromise||(e._officeOnReadyState.officeOnReadyPromise=new e.Promise((function(t,n){e._officeOnReadyState.officeOnReadyPromiseResolve=t})))}function n(n){return t(),n&&(e._officeOnReadyState.officeOnReadyFired?n(e._officeOnReadyState.officeOnReadyHostAndPlatformInfo):e._officeOnReadyState.officeOnReadyCallbacks.push(n)),e._officeOnReadyState.officeOnReadyPromise}e._officeOnReadyState=e._officeOnReadyState||{isOfficeOnReadyCalled:!1,officeOnReadyPromise:null,officeOnReadyPromiseResolve:null,officeOnReadyCallbacks:[],officeOnReadyHostAndPlatformInfo:null,officeOnReadyFired:!1},e.initialize=e.initialize,e.onReadyInternal=n,e.onReady=function(t){return e._officeOnReadyState.isOfficeOnReadyCalled=!0,n(t)},e.fireOnReady=function(n){for(t(),e._officeOnReadyState.officeOnReadyHostAndPlatformInfo=__assign({},n),e._officeOnReadyState.officeOnReadyFired=!0,OSFPerformance.officeOnReady=OSFPerformance.now();e._officeOnReadyState.officeOnReadyCallbacks.length>0;)e._officeOnReadyState.officeOnReadyCallbacks.shift()(e._officeOnReadyState.officeOnReadyHostAndPlatformInfo);e._officeOnReadyState.officeOnReadyPromiseResolve(e._officeOnReadyState.officeOnReadyHostAndPlatformInfo),e._officeOnReadyState.isOfficeOnReadyCalled||OSF.OUtil.waitForFunction((function(){return"function"==typeof e.initialize}),(function(t){t&&e.initialize(OSF._OfficeAppFactory.getOfficeAppContext().get_reason())}),400,50)}}(Office||(Office={})),function(e){var t=function(){function t(t,n,r,o,i,a,s,l,u,c,p,f,h,d,y,m,g,_,b,v,O,C,S,P,A,E,R,x,T,I,w,F,N){this._id=t,this._appName=n,this._appVersion=r,this._appUILocale=o,this._dataLocale=i,this._docUrl=a,this._clientMode=s,this._settingsFunc=l,this._reason=u,this._osfControlType=c,this._eToken=p,this._correlationId=f,this._appInstanceId=h,this._touchEnabled=d,this._commerceAllowed=y,this._appMinorVersion=m,this._requirementMatrix=g,this._hostCustomMessage=_,this._hostFullVersion=b,this._isDialog=e.OUtil.isDialog(),this._clientWindowHeight=v,this._clientWindowWidth=O,this._addinName=C,this._appDomains=S,this._dialogRequirementMatrix=P,this._featureGates=A,this._officeThemeFunc=E,this._initialDisplayMode=R,this._isFromWacAutomation=x,this._wopiHostOriginForSingleSignOn=T,this._hostSettingsFunc=I,this._isWeb=w,this._nestedAppAuthBridgeType=F,this._partitionKey=N}return t.prototype.get_id=function(){return this._id},t.prototype.get_appName=function(){return this._appName},t.prototype.get_appVersion=function(){return this._appVersion},t.prototype.get_appUILocale=function(){return this._appUILocale},t.prototype.get_dataLocale=function(){return this._dataLocale},t.prototype.get_docUrl=function(){return this._docUrl},t.prototype.get_clientMode=function(){return this._isWeb?this._clientMode:0==this._clientMode?Office.DocumentMode.ReadWrite:Office.DocumentMode.ReadOnly},t.prototype.get_settingsFunc=function(){return this._settingsFunc},t.prototype.get_reason=function(){return this._reason},t.prototype.get_osfControlType=function(){return this._osfControlType},t.prototype.get_eToken=function(){return this._eToken},t.prototype.get_correlationId=function(){return this._correlationId},t.prototype.get_appInstanceId=function(){return this._appInstanceId},t.prototype.get_touchEnabled=function(){return this._touchEnabled},t.prototype.get_commerceAllowed=function(){return this._commerceAllowed},t.prototype.get_appMinorVersion=function(){return this._appMinorVersion},t.prototype.get_requirementMatrix=function(){return this._requirementMatrix},t.prototype.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix},t.prototype.get_hostCustomMessage=function(){return this._hostCustomMessage},t.prototype.get_hostFullVersion=function(){return this._hostFullVersion},t.prototype.get_isDialog=function(){return this._isDialog},t.prototype.get_clientWindowHeight=function(){return this._clientWindowHeight},t.prototype.get_clientWindowWidth=function(){return this._clientWindowWidth},t.prototype.get_addinName=function(){return this._addinName},t.prototype.get_appDomains=function(){return this._appDomains},t.prototype.get_taskpaneUrl=function(){return this._taskpaneUrl},t.prototype.set_taskpaneUrl=function(e){this._taskpaneUrl=e},t.prototype.get_featureGates=function(){return this._featureGates},t.prototype.get_officeThemeFunc=function(){return this._officeThemeFunc},t.prototype.get_initialDisplayMode=function(){return this._initialDisplayMode?this._initialDisplayMode:0},t.prototype.get_isFromWacAutomation=function(){return this._isFromWacAutomation},t.prototype.get_wopiHostOriginForSingleSignOn=function(){return this._wopiHostOriginForSingleSignOn},t.prototype.get_hostSettingsFunc=function(){return this._hostSettingsFunc},t.prototype.get_isWeb=function(){return this._isWeb},t.prototype.get_nestedAppAuthBridgeType=function(){return this._nestedAppAuthBridgeType},t.prototype.get_partitionKey=function(){return this._partitionKey},t}();e.OfficeAppContext=t}(OSF||(OSF={})),function(e){!function(t){t.retrieveHostInfo=function(){var t={isO15:!0,isRichClient:!0,hostType:"",hostPlatform:"",hostSpecificFileVersion:"",hostLocale:"",osfControlAppCorrelationId:"",isDialog:!1,disableLogging:!1,flags:0},n="_host_Info",r=null;try{if(window.external=window.external||{},"undefined"!=typeof agaveHost&&agaveHost.GetHostInfo&&(window.external.GetHostInfo=function(){return agaveHost.GetHostInfo()}),window.external.GetHostInfo){var o=window.external.GetHostInfo();if("isDialog"==o)t.isO15=!0,t.isDialog=!0;else{var i=o.split("_host_Info=");r=i.length>1?i[1]:o}}}catch(t){e.Utility.log(JSON.stringify(t))}if(!r)try{var a=window.name;if(a){var s=JSON.parse(a);r=s?s.hostInfo:null}}catch(t){e.Utility.log(JSON.stringify(t))}r||(r=e.Utility.getQueryStringValue(n));var l=e.OUtil.getSessionStorage();if(!r&&l.getItem("hostInfoValue")&&(r=l.getItem("hostInfoValue")),r){r=decodeURIComponent(r),t.isO15=!1;var u=r.split("$");void 0===u[2]&&(u=r.split("|")),t.hostType=void 0===u[0]?"":u[0].toLowerCase(),t.hostPlatform=void 0===u[1]?"":u[1].toLowerCase(),t.hostSpecificFileVersion=void 0===u[2]?"":u[2].toLowerCase(),t.hostLocale=void 0===u[3]?"":u[3].toLowerCase(),t.osfControlAppCorrelationId=void 0===u[4]?"":u[4],"telemetry"==t.osfControlAppCorrelationId&&(t.osfControlAppCorrelationId=""),t.isDialog=void 0!==u[5]&&"isDialog"==u[5],t.disableLogging=void 0!==u[6]&&"disableLogging"==u[6],t.flags="string"==typeof u[7]&&u[7].length>0?parseInt(u[7]):0,l.setItem("hostInfoValue",r)}else t.isO15=!0,t.hostLocale=e.Utility.getQueryStringValue("locale");return t}}(e._OfficeAppFactory||(e._OfficeAppFactory={}))}(OSF||(OSF={})),function(e){var t;!function(t){var n,r,o,i,a,s,l,u,c;"undefined"!=typeof window&&(window.location&&(n=window.location.hash,r=window.location.search),o=window.name);var p={0:"Unknown",1:"Hidden",2:"Taskpane",3:"Dialog"};function f(t,n){e.AppCommandManager.initialize();var r=t.get_appName(),o=null;0!=(i.flags&e.HostInfoFlags.SharedApp)&&(o={visibilityMode:p[t.get_initialDisplayMode()]}),Office.fireOnReady({host:e.HostName.Host.getInstance().getHost(r),platform:e.HostName.Host.getInstance().getPlatform(r),addin:o}),i.hostPlatform==e.HostInfoPlatform.web&&null!=a.clientEndPoint&&a.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[a.id,e.AgaveHostAction.OfficeJsReady,Date.now()]),n(t)}t.bootstrap=function(n,r){if(a={id:null,webAppUrl:null,conversationID:null,clientEndPoint:null,wnd:window.parent,focused:!1,serviceEndPoint:null},i=t.retrieveHostInfo(),function(){!0;try{if(i.disableLogging)return void!1;window.external=window.external||{},void 0===window.external.GetLoggingAllowed||window.external.GetLoggingAllowed()}catch(e){}}(),function(){if(i.hostPlatform===e.HostInfoPlatform.web)s=new e.WebInitializationHelper(i,a,null,null);else if(i.hostPlatform===e.HostInfoPlatform.win32)s=new e.RichClientInitializationHelper(i,a,null,null);else if(i.hostPlatform===e.HostInfoPlatform.ios||i.hostPlatform===e.HostInfoPlatform.mac){if(!(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.Agave))throw e.Utility.createNotImplementedException();s=new e.WebkitInitializationHelper(i,a,null,null)}else i.hostPlatform===e.HostInfoPlatform.android||i.hostPlatform===e.HostInfoPlatform.winrt?s=new e.WebViewInitializationHelper(i,a,null,null):console.warn("Office.js is loaded inside in unknown host or platform "+i.hostPlatform)}(),s){i.hostPlatform===e.HostInfoPlatform.web&&s.saveAndSetDialogInfo(e.Utility.getQueryStringValue("_host_Info")),s.setAgaveHostCommunication(),OSFPerformance.getAppContextStart=OSFPerformance.now();s.getAppContext(window,(function(t){OSFPerformance.getAppContextEnd=OSFPerformance.now(),e.AppTelemetry.initialize(t),u=t,c=s.createClientHostController(),l=s.createAsyncMethodExecutor(),s.prepareApiSurface(t),e.BootStrapExtension.onGetAppContext?e.BootStrapExtension.onGetAppContext(t,a.wnd).then((function(){f(t,n)})):f(t,n)}),(function(e){r(e)}))}else r(new Error("Office.js cannot be initialized."))},t.getWindowName=function(){return o},t.getWindowLocationHash=function(){return n},t.getWindowLocationSearch=function(){return r},t.getAsyncMethodExecutor=function(){return l},t.getOfficeAppContext=function(){return u},t.getHostInfo=function(){return i},t.getCachedSessionSettingsKey=function(){return(null!=a.conversationID?a.conversationID:u.get_appInstanceId())+"CachedSessionSettings"},t.getWebAppState=function(){return a},t.getId=function(){return a.id},t.getInitializationHelper=function(){return s},t.getClientHostController=function(){return c}}(t=e._OfficeAppFactory||(e._OfficeAppFactory={})),e.getClientEndPoint=function(){return t.getWebAppState().clientEndPoint}}(OSF||(OSF={})),function(e){!function(e){e.Succeeded="succeeded",e.Failed="failed"}(e.AsyncResultStatus||(e.AsyncResultStatus={})),function(e){e.ReadOnly="readOnly",e.ReadWrite="readWrite"}(e.DocumentMode||(e.DocumentMode={})),function(e){e.Word="Word",e.Excel="Excel",e.PowerPoint="PowerPoint",e.Outlook="Outlook",e.OneNote="OneNote",e.Project="Project",e.Access="Access",e.Visio="Visio"}(e.HostType||(e.HostType={})),function(e){e.Inserted="inserted",e.DocumentOpened="documentOpened"}(e.InitializationReason||(e.InitializationReason={})),function(e){e.PC="PC",e.OfficeOnline="OfficeOnline",e.Mac="Mac",e.iOS="iOS",e.Android="Android",e.Universal="Universal"}(e.PlatformType||(e.PlatformType={})),function(e){e.Binding="binding",e.NamedItem="namedItem",e.Slide="slide",e.Index="index"}(e.GoToType||(e.GoToType={})),function(e){e.Default="default",e.Selected="selected",e.None="none"}(e.SelectionMode||(e.SelectionMode={})),function(e){e.Unformatted="unformatted",e.Formatted="formatted"}(e.ValueFormat||(e.ValueFormat={})),function(e){e.Text="text",e.Compressed="compressed",e.Pdf="pdf"}(e.FileType||(e.FileType={})),e.CoercionType={Html:"html",Matrix:"matrix",Ooxml:"ooxml",OoxmlPackage:"ooxmlPackage",PdfFile:"pdfFile",SlideRange:"slideRange",Table:"table",Text:"text"},function(e){e.Table="table",e.Text="text",e.Matrix="matrix"}(e.BindingType||(e.BindingType={})),function(e){e.OnlyVisible="onlyVisible",e.All="all"}(e.FilterType||(e.FilterType={})),function(e){e[e.All=0]="All",e[e.Data=1]="Data",e[e.Headers=2]="Headers"}(e.Table||(e.Table={})),function(e){e.Read="read",e.Edit="edit"}(e.ActiveView||(e.ActiveView={}))}(Office||(Office={}));var OSFPerfUtil,__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){e.appSpecificCheckOrigin=function(e,t,n,r){return!1}}(OfficeExt||(OfficeExt={})),function(e){var t=function(){function e(e,t,n){this._method=e,this._invokeType=t,this._blockingOthers=n}return e.prototype.getMethod=function(){return this._method},e.prototype.getInvokeType=function(){return this._invokeType},e.prototype.getBlockingFlag=function(){return this._blockingOthers},e}();e.XdmMethodObject=t;var n=function(){function e(e,t){this._registerMethodObject=e,this._unregisterMethodObject=t}return e.prototype.getRegisterMethodObject=function(){return this._registerMethodObject},e.prototype.getUnregisterMethodObject=function(){return this._unregisterMethodObject},e}();e.XdmEventMethodObject=n;var r=function(){function r(e){this._methodObjectList={},this._eventHandlerProxyList={},this._conversations={},this._policyManager=null,this._appDomains={},this._onHandleRequestError=null,this._methodObjectList={},this._eventHandlerProxyList={},this._Id=e,this._conversations={},this._policyManager=null,this._appDomains={},this._onHandleRequestError=null}return r.prototype.registerMethod=function(n,r,o,i){if(0!==o&&1!==o)throw e.Utility.createArgumentException("invokeType");var a=new t(r,o,i);this._methodObjectList[n]=a},r.prototype.unregisterMethod=function(e){delete this._methodObjectList[e]},r.prototype.registerEvent=function(e,r,o){var i=new n(new t(r,4,!1),new t(o,5,!1));this._methodObjectList[e]=i},r.prototype.registerEventEx=function(e,r,o,i,a){var s=new n(new t(r,o,!1),new t(i,a,!1));this._methodObjectList[e]=s},r.prototype.unregisterEvent=function(e){this.unregisterMethod(e)},r.prototype.registerConversation=function(t,n,r){if(e.Utility.xdmDebugLog("registerConversation: cId="+t+" Url="+n),r){if(!Array.isArray(r))throw e.Utility.createArgumentException("appDomains");this._appDomains[t]=r}this._conversations[t]={url:n}},r.prototype.unregisterConversation=function(e){delete this._conversations[e]},r.prototype.setPolicyManager=function(t){if(!t.checkPermission)throw e.Utility.createArgumentException("policyManager");this._policyManager=t},r.prototype.getPolicyManager=function(){return this._policyManager},r.prototype.dispose=function(){this._methodObjectList=null,this._eventHandlerProxyList=null,this._Id=null,this._conversations=null,this._policyManager=null,this._appDomains=null,this._onHandleRequestError=null},r}();e.XdmServiceEndPoint=r;var o,i=function(){function e(e,t,n){this._callbackList={},this._eventHandlerList={},this._hostTrustCheckStatus=0,this._checkStatusLogged=!1,this._fHostTrusted=!1,this._conversationId=e,this._targetWindow=t,this._targetUrl=n,this._callingIndex=0,this._callbackList={},this._eventHandlerList={},this._checkReceiverOriginAndRun=null}return Object.defineProperty(e.prototype,"targetUrl",{get:function(){return this._targetUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTrustCheckStatus",{get:function(){return this._hostTrustCheckStatus},set:function(e){this._hostTrustCheckStatus=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fHostTrusted",{get:function(){return this._fHostTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkStatusLogged",{get:function(){return this._checkStatusLogged},set:function(e){this._checkStatusLogged=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkReceiverOriginAndRun",{get:function(){return this._checkReceiverOriginAndRun},set:function(e){this._checkReceiverOriginAndRun=e},enumerable:!0,configurable:!0}),e.prototype.invoke=function(e,t,n){var r=this,i=function(){var i=r._callingIndex++,a=new Date,l={callback:t,createdOn:a.getTime()};n&&"object"==typeof n&&"number"==typeof n.__timeout__&&(l.timeout=n.__timeout__,delete n.__timeout__),r._callbackList[i]=l;try{if(3!==r._hostTrustCheckStatus&&"ContextActivationManager_getAppContextAsync"!==e)throw"Access Denied";var c=new s(e,0,r._conversationId,i,n),p=u.envelope(c);r._targetWindow.postMessage(p,r._targetUrl),o._startMethodTimeoutTimer()}catch(e){try{null!==t&&t(-1,e)}finally{delete r._callbackList[i]}}};this._checkReceiverOriginAndRun?this._checkReceiverOriginAndRun(i):(this._hostTrustCheckStatus=3,i())},e.prototype.registerForEvent=function(e,t,n,r){var i=this._callingIndex++,a=new Date;this._callbackList[i]={callback:n,createdOn:a.getTime()};try{var l=new s(e,1,this._conversationId,i,r),c=u.envelope(l);this._targetWindow.postMessage(c,this._targetUrl),o._startMethodTimeoutTimer(),this._eventHandlerList[e]=t}catch(e){try{null!==n&&n(-1,e)}finally{delete this._callbackList[i]}}},e.prototype.unregisterForEvent=function(e,t,n){var r=this._callingIndex++,i=new Date;this._callbackList[r]={callback:t,createdOn:i.getTime()};try{var a=new s(e,2,this._conversationId,r,n),l=u.envelope(a);this._targetWindow.postMessage(l,this._targetUrl),o._startMethodTimeoutTimer()}catch(e){try{null!==t&&t(-1,e)}finally{delete this._callbackList[r]}}finally{delete this._eventHandlerList[e]}},e}();e.XdmClientEndPoint=i,function(t){var n=[],o=null,a=null,s=!1,c={},h={},d=!1;function y(){null!==a?s||(n.length>0?m(n.shift()):(clearInterval(a),a=null)):e.Utility.xdmDebugLog("channel is not ready.")}function m(e){s=e.getInvokeBlockingFlag(),e.invoke(),o=(new Date).getTime()}function g(){s=!1}function _(t,n){var r=!1;if(!(n&&"null"!==n&&n.length&&t&&t instanceof Array&&t.length))return r;for(var o=0;o<t.length&&!r;o++)if(-1!==t[o].indexOf("://")){var i=e.OUtil.parseUrl(n,!0);r=O(e.OUtil.parseUrl(t[o],!0),i)}return r}function b(t){if(!t||"null"===t)return!1;var n=new Array("^outlook\\.office\\.com$","^outlook-sdf\\.office\\.com$","^outlook\\.office\\.com$","^outlook-sdf\\.office\\.com$","^outlook\\.live\\.com$","^outlook-sdf\\.live\\.com$","^consumer\\.live-int\\.com$","^outlook-tdf\\.live\\.com$","^sdfpilot\\.live\\.com$","^outlook\\.office365\\.us$","^outlook\\.office365\\.com$","^exchangelabs\\.live-int\\.com$","^.*\\.dod\\.online\\.office365\\.us$","^.*\\.gov\\.online\\.office365\\.us$","^.*\\.officeapps\\.live\\.com$","^.*\\.officeapps-df\\.live\\.com$","^"+document.domain.replace(new RegExp("\\.","g"),"\\.")+"$");return!0===e.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments&&n.push("^partner\\.outlook\\.cn$","^.*\\.partner\\.officewebapps\\.cn$"),new RegExp(n.join("|")).test(t)}function v(t,n){if(!t||!n||"null"===t||"null"===n)return!1;var r=e.OUtil.parseUrl(t,!0),o=e.OUtil.parseUrl(n,!0);if(null==r||null==o)return!1;var i=r.protocol===o.protocol,a=r.port===o.port,s=o.hostname,l=r.hostname,u=s===l,c=!1;return!u&&s.length>l.length+1&&(c=s.slice(-(l.length+1))==="."+l),a&&i&&(u||c)}function O(e,t){return e.hostname==t.hostname&&e.protocol==t.protocol&&e.port==t.port}function C(t){if(""!=t.data){var r,i=t.data;try{r=u.unenvelope(i)}catch(e){return}if(e.Utility.xdmDebugLog(i),0===r._messageType){var d=null==t.origin||"null"===t.origin?r._origin:t.origin;try{var C=function(t){for(var n in c)if(c[n]._conversations[t])return c[n];throw e.Utility.createArgumentException("conversationId")}(r._conversationId);e.Utility.xdmDebugLog("_receive: request, origin="+d+" sourceURL:"+C._conversations[r._conversationId]);var S=C._conversations[r._conversationId];e.Utility.xdmDebugLog("_receive: request, origin="+d+" sourceURL:"+S.url);var P=[S.url].concat(C._appDomains[r._conversationId]);if(!_(P,t.origin))if(!OfficeExt.appSpecificCheckOrigin(P,t,r._origin,_))if(!v(S.url,t.origin))throw"Failed origin check";var A=C.getPolicyManager();if(A&&!A.checkPermission(r._conversationId,r._actionName,r._data))throw"Access Denied";var E=function(t,n){var r=t._methodObjectList[n._actionName];if(!r)throw e.Utility.xdmDebugLog("The specified method is not registered on service endpoint:"+n._actionName),e.Utility.createArgumentException("messageObject");return 0===n._actionType?r:1===n._actionType?r.getRegisterMethodObject():r.getUnregisterMethodObject()}(C,r),R=new p(t.source,d,r._actionName,r._conversationId,r._correlationId,g),x=new f(E,r._data,R,C._eventHandlerProxyList,r._conversationId,r._actionName),T=!0;null==a&&((null==o||(new Date).getTime()-o>10)&&!s?(m(x),T=!1):a=setInterval(y,10)),T&&function(e){n.push(e)}(x)}catch(n){C&&C._onHandleRequestError&&C._onHandleRequestError(r,n);var I=-2;"Access Denied"==n&&(I=-5);var w=new l(r._actionName,r._conversationId,r._correlationId,I,0,n),F=u.envelope(w),N=!1;try{N=!(!t.source||!t.source.postMessage)}catch(e){}var D=!1;if(window.location.href&&t.origin&&"null"!==t.origin&&v(window.location.href,t.origin))D=!0;else if(t.origin&&"null"!==t.origin)D=b(e.OUtil.parseUrl(t.origin,!0).hostname);N&&D&&t.source.postMessage(F,d)}}else{if(1!==r._messageType)return;var k=function(t){var n=h[t];return n||e.Utility.xdmDebugLog("Unknown conversation Id."),n}(r._conversationId);if(!k)return;if(e.Utility.xdmDebugLog("_receive: response, origin="+t.origin+" targetURL:"+k._targetUrl),M=k._targetUrl,H=t.origin,!(M&&H&&"null"!==M&&"null"!==H&&M.length&&H.length&&O(e.OUtil.parseUrl(M,!0),e.OUtil.parseUrl(H,!0))))throw"Failed orgin check";if(3==k._hostTrustCheckStatus&&(k._fHostTrusted=!0),0===r._responseType){var j=k._callbackList[r._correlationId];if(j)try{j.callback&&j.callback(r._errorCode,r._data)}finally{delete k._callbackList[r._correlationId]}}else{var U=k._eventHandlerList[r._actionName];null!=U&&U(r._data)}}}var M,H}function S(){d||(!function(t){if(window.addEventListener)window.addEventListener("message",t,!1);else{if(!(navigator.userAgent.indexOf("MSIE")>-1&&window.attachEvent))throw e.Utility.xdmDebugLog("Browser doesn't support the required API."),e.Utility.createArgumentException("Browser");window.attachEvent("onmessage",t)}}(C),d=!0)}t.connect=function(e,t,n){var r=h[e];return r||(S(),r=new i(e,t,n),h[e]=r),r},t.getClientEndPoint=function(e){return h[e]},t.createServiceEndPoint=function(e){S();var t=new r(e);return c[e]=t,t},t.getServiceEndPoint=function(e){return c[e]},t.deleteClientEndPoint=function(e){delete h[e]},t.deleteServiceEndPoint=function(e){delete c[e]},t.checkUrlWithAppDomains=function(e,t){return _(e,t)},t.isTargetSubdomainOfSourceLocation=function(e,t){return v(e,t)},t._setMethodTimeout=function(e){e<=0?65e3:e},t._startMethodTimeoutTimer=function(){},t.isHostNameValidWacDomain=function(e){return b(e)}}(o=e.XdmCommunicationManager||(e.XdmCommunicationManager={}));var a=function(){function e(e,t,n,r,o){this._messageType=e,this._actionName=t,this._conversationId=n,this._correlationId=r,this._origin=window.location.origin,this._data=void 0===o?null:o}return e.prototype.getActionName=function(){return this._actionName},e.prototype.getConversationId=function(){return this._conversationId},e.prototype.getCorrelationId=function(){return this._correlationId},e.prototype.getOrigin=function(){return this._origin},e.prototype.getData=function(){return this._data},e.prototype.getMessageType=function(){return this._messageType},e}(),s=function(e){function t(t,n,r,o,i){var a=e.call(this,0,t,r,o,i)||this;return a._actionType=n,a}return __extends(t,e),t.prototype.getActionType=function(){return this._actionType},t}(a),l=function(e){function t(t,n,r,o,i,a){var s=e.call(this,1,t,n,r,a)||this;return s._errorCode=o,s._responseType=i,s}return __extends(t,e),t.prototype.getErrorCode=function(){return this._errorCode},t.prototype.getResponseType=function(){return this._responseType},t}(a),u=function(){function e(){}return e.envelope=function(e){return JSON.stringify(e)},e.unenvelope=function(e){return JSON.parse(e)},e}(),c=function(){function t(t,n,r,o,i,a){var s=this;this._invokeResultCode=0,this._requesterWindow=t,this._requesterUrl=n,this._actionName=r,this._conversationId=o,this._correlationId=i,this._invokeResultCode=0,this._responseType=a,this._send=function(t){try{var n=new l(s._actionName,s._conversationId,s._correlationId,s._invokeResultCode,s._responseType,t),r=u.envelope(n);s._requesterWindow.postMessage(r,s._requesterUrl),e.Utility.xdmDebugLog("_send: requestUrl="+s._requesterUrl+" _actionName:"+s._actionName)}catch(t){e.Utility.xdmDebugLog("ResponseSender._send error:"+t.message)}}}return t.prototype.getRequesterWindow=function(){return this._requesterWindow},t.prototype.getRequesterUrl=function(){return this._requesterUrl},t.prototype.getActionName=function(){return this._actionName},t.prototype.getConversationId=function(){return this._conversationId},t.prototype.getCorrelationId=function(){return this._correlationId},t.prototype.getSend=function(){return this._send},t.prototype.setResultCode=function(e){this._invokeResultCode=e},t}(),p=function(t){function n(n,r,o,i,a,s){var c=t.call(this,n,r,o,i,a,0)||this;return c._postCallbackHandler=s,c._send=function(t,n){null!=n&&(c._invokeResultCode=n);try{var r=new l(c._actionName,c._conversationId,c._correlationId,c._invokeResultCode,c._responseType,t),o=u.envelope(r);c._requesterWindow.postMessage(o,c._requesterUrl),c._postCallbackHandler()}catch(t){e.Utility.xdmDebugLog("InvokeCompleteCallback._send error:"+t.message)}},c}return __extends(n,t),n}(c),f=function(){function e(e,t,n,r,o,i){this._callerId="",this._methodObject=e,this._param=t,this._invokeCompleteCallback=n,this._eventHandlerProxyList=r,this._conversationId=o,this._eventName=i}return e.prototype.invoke=function(){try{var e;switch(this._methodObject.getInvokeType()){case 0:this._methodObject.getMethod()(this._param,this._invokeCompleteCallback.getSend());break;case 1:e=this._methodObject.getMethod()(this._param),this._invokeCompleteCallback.getSend()(e);break;case 4:var t=this._createEventHandlerProxyObject(this._invokeCompleteCallback);e=this._methodObject.getMethod()(t.getSend(),this._param),this._eventHandlerProxyList[this._conversationId+this._eventName]=t.getSend(),this._invokeCompleteCallback.getSend()(e);break;case 5:var n=this._eventHandlerProxyList[this._conversationId+this._eventName];e=this._methodObject.getMethod()(n,this._param),delete this._eventHandlerProxyList[this._conversationId+this._eventName],this._invokeCompleteCallback.getSend()(e);break;case 2:var r=this._createEventHandlerProxyObject(this._invokeCompleteCallback);this._methodObject.getMethod()(r.getSend(),this._invokeCompleteCallback.getSend(),this._param),this._eventHandlerProxyList[this._callerId+this._eventName]=r.getSend();break;case 3:var o=this._eventHandlerProxyList[this._callerId+this._eventName];this._methodObject.getMethod()(o,this._invokeCompleteCallback.getSend(),this._param),delete this._eventHandlerProxyList[this._callerId+this._eventName]}}catch(e){this._invokeCompleteCallback.setResultCode(-3),this._invokeCompleteCallback.getSend()(e)}},e.prototype.getInvokeBlockingFlag=function(){return this._methodObject.getBlockingFlag()},e.prototype._createEventHandlerProxyObject=function(e){return new c(e.getRequesterWindow(),e.getRequesterUrl(),e.getActionName(),e.getConversationId(),e.getCorrelationId(),1)},e}()}(OSF||(OSF={})),function(e){function t(e,t){return t+="_Resource",void 0!==oteljs?[oteljs.makeDoubleDataField(t+"_responseEnd",e.responseEnd),oteljs.makeDoubleDataField(t+"_responseStart",e.responseStart),oteljs.makeDoubleDataField(t+"_startTime",e.startTime),oteljs.makeDoubleDataField(t+"_transferSize",e.transferSize)]:[]}e.sendPerformanceTelemetry=function(){if(OSF.AppTelemetry.enableTelemetry&&"undefined"!=typeof performance&&performance.getEntriesByType){var e,n,r=OSF.LoadScriptHelper.getHostBundleJsName().toLowerCase();performance.getEntriesByType("resource").forEach((function(t){var o=t.name.toLowerCase();OSF.Utility.stringEndsWith(o,r)?e=t:(OSF.Utility.stringEndsWith(o,OSF.ConstantNames.OfficeDebugJS)||OSF.Utility.stringEndsWith(o,OSF.ConstantNames.OfficeJS))&&(n=t)})),OTel.OTelLogger.onTelemetryLoaded((function(){var r=[];e&&(r=r.concat(t(e,"HostJs"))),n&&(r=r.concat(t(n,"OfficeJs"))),r=r.concat([oteljs.makeDoubleDataField("officeExecuteStartDate",OSFPerformance.officeExecuteStartDate),oteljs.makeDoubleDataField("officeExecuteStart",OSFPerformance.officeExecuteStart),oteljs.makeDoubleDataField("officeExecuteEnd",OSFPerformance.officeExecuteEnd),oteljs.makeDoubleDataField("hostInitializationStart",OSFPerformance.hostInitializationStart),oteljs.makeDoubleDataField("hostInitializationEnd",OSFPerformance.hostInitializationEnd),oteljs.makeDoubleDataField("totalJSHeapSize",OSFPerformance.totalJSHeapSize),oteljs.makeDoubleDataField("usedJSHeapSize",OSFPerformance.usedJSHeapSize),oteljs.makeDoubleDataField("jsHeapSizeLimit",OSFPerformance.jsHeapSizeLimit),oteljs.makeDoubleDataField("getAppContextStart",OSFPerformance.getAppContextStart),oteljs.makeDoubleDataField("getAppContextEnd",OSFPerformance.getAppContextEnd),oteljs.makeDoubleDataField("getAppContextXdmStart",OSFPerformance.getAppContextXdmStart),oteljs.makeDoubleDataField("getAppContextXdmEnd",OSFPerformance.getAppContextXdmEnd),oteljs.makeDoubleDataField("createOMEnd",OSFPerformance.createOMEnd),oteljs.makeDoubleDataField("officeOnReady",OSFPerformance.officeOnReady),oteljs.makeBooleanDataField("isSharedRuntime",0!=(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp))]),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.JSPerformanceTelemetryV06",dataFields:r,eventFlags:{dataCategories:2,diagnosticLevel:110}})}))}}}(OSFPerfUtil||(OSFPerfUtil={})),function(e){!function(t){var n,r,o={};!function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];e.generateNewGuid=function(){for(var e="",n=(new Date).getTime(),r=0;r<32&&n>0;r++)8!=r&&12!=r&&16!=r&&20!=r||(e+="-"),e+=t[n%16],n=Math.floor(n/16);for(;r<32;r++)8!=r&&12!=r&&16!=r&&20!=r||(e+="-"),e+=t[Math.floor(16*Math.random())];return e}}(t.Guid||(t.Guid={})),t.loadScript=function(e,t,n,r){if(e&&t){var i=window.document,a=o[e];if(a)a.loaded?t(!0):a.pendingCallbacks.push(t);else{var s=i.createElement("script");s.type="text/javascript",a={loaded:!1,pendingCallbacks:[t],timer:null},o[e]=a;var l=function(){null!=a.timer&&(clearTimeout(a.timer),delete a.timer),a.loaded=!0;for(var e=a.pendingCallbacks.length,t=0;t<e;t++){a.pendingCallbacks.shift()(!0)}},u=function(){delete o[e],null!=a.timer&&(clearTimeout(a.timer),delete a.timer);for(var t=a.pendingCallbacks.length,n=0;n<t;n++){a.pendingCallbacks.shift()(!1)}};s.readyState?s.onreadystatechange=function(){"loaded"!=s.readyState&&"complete"!=s.readyState||(s.onreadystatechange=null,l())}:s.onload=l,s.onerror=u,r=r||3e4,a.timer=setTimeout(u,r),s.setAttribute("crossOrigin","anonymous"),s.src=n?n.createScriptURL(e):e,i.getElementsByTagName("head")[0].appendChild(s)}}},t.getSessionStorage=function(){if(!n){try{var t=window.sessionStorage}catch(e){t=null}n=new e.SafeStorage(t)}return n},t.getLocalStorage=function(){if(!r){try{var t=window.localStorage}catch(e){t=null}r=new e.SafeStorage(t)}return r},t.waitForFunction=function(e,t,n,r){var o,i=n,a=function(){i--,e()?t(!0):i>0?(o=window.setTimeout(a,r),i--):(window.clearTimeout(o),t(!1))};a()}}(e.OUtil||(e.OUtil={}))}(OSF||(OSF={})),function(e){e.Flights=[],e.DisabledChangeGates=[];e.FlightTreatmentNames={EnableMsal3SsoApi:"Microsoft.Office.SharedOnline.EnableMsal3SsoApi"},function(t){var n="&_flights=",r="&_disabledChangeGates=",o="_flights=",i="_disabledChangeGates=";function a(e,t){return e.substr(0,t.length)===t}function s(e,t,n,r){return a(e,t+"//"+n+":"+r)||a(e,n+":"+r)}t.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},t.isFunction=function(e){return"[object Function]"===Object.prototype.toString.apply(e)},t.isDate=function(e){return"[object Date]"===Object.prototype.toString.apply(e)},t.addEventListener=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else{if(!e.attachEvent)throw new Error("Cannot attach event");e.attachEvent("on"+t,n)}},t.removeEventListener=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else{if(!e.detachEvent)throw new Error("Cannot remove event");e.detachEvent("on"+t,n)}};var l="Date(";function u(e){var t=[];try{t=JSON.parse(e)}catch(e){}return Array.isArray(t)||(t=[]),t}function c(e,n,r){try{var o=JSON.parse(n),i=null!=o?o[r]:null,a=t.getSessionStorage();if(!e&&a&&null!=o){var s=o.baseFrameName+r;i?a.setItem(s,i):i=a.getItem(s)}return i}catch(e){return null}}function p(e,n,r,o,i){var a=i.split(e),s=a.length>1?a[a.length-1]:null;r&&null!=s&&(s.indexOf("&")>=0&&(s=s.split("&")[0]),s=decodeURIComponent(s));var l=t.getSessionStorage();if(!o&&l){var u=window.name.indexOf(n);if(u>-1){var c=window.name.indexOf(";",u);-1==c&&(c=window.name.length);var p=window.name.substring(u,c);s?l.setItem(p,s):s=l.getItem(p)}}return s}function f(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)===t){if(n+1>=e.length)return this.removeChar(e,n);if("/"===t){if("?"===e.charAt(n+1)||"#"===e.charAt(n+1))return this.removeChar(e,n)}else if("?"===t&&"#"===e.charAt(n+1))return this.removeChar(e,n)}return e}function h(e){if(e=f(e,"/"),e=f(e,"?"),"https://"==(e=f(e,"#")).substr(0,8))-1!=(t=e.indexOf(":443"))&&(t!=e.length-4&&"/"!=e.charAt(t+4)&&"?"!=e.charAt(t+4)&&"#"!=e.charAt(t+4)||(e=e.substring(0,t)+e.substring(t+4)));else if("http://"==e.substr(0,7)){var t;-1!=(t=e.indexOf(":80"))&&(t!=e.length-3&&"/"!=e.charAt(t+3)&&"?"!=e.charAt(t+3)&&"#"!=e.charAt(t+3)||(e=e.substring(0,t)+e.substring(t+3)))}return e}function d(e){var t,n,r=[],o=[],i=e.length;for(t=0;t<i;t++)(n=e[t]).tabIndex?n.tabIndex>0?o.push(n):0===n.tabIndex&&r.push(n):r.push(n);return o=o.sort((function(e,t){var n=e.tabIndex-t.tabIndex;return 0===n&&(n=o.indexOf(e)-o.indexOf(t)),n})),[].concat(o,r)}t.serializeSettings=function(t){var n={};for(var r in t){var o=t[r];try{o=JSON.stringify(o,(function(t,n){return e.OUtil.isDate(this[t])?l+this[t].getTime()+")":n})),n[r]=o}catch(e){}}return n},t.deserializeSettings=function(e){var t={};for(var n in e=e||{}){var r=e[n];try{r=JSON.parse(r,(function(e,t){var n;return"string"==typeof t&&t&&t.length>6&&t.slice(0,5)===l&&")"===t.slice(-1)&&(n=new Date(parseInt(t.slice(5,-1))))?n:t})),t[n]=r}catch(e){}}return t},t.convertIntToCssHexColor=function(e){return"#"+(Number(e)+16777216).toString(16).slice(-6)},t.parseAppContextFromWindowName=function(e,n){return t.parseInfoFromWindowName(e,n,"appContext")},t.parseHostInfoFromWindowName=function(t,n){return e.OUtil.parseInfoFromWindowName(t,n,"hostInfo")},t.parseXdmInfo=function(e){var n=t.parseXdmInfoWithGivenFragment(e,window.location.hash);return n||(n=t.parseXdmInfoFromWindowName(e,window.name)),n},t.parseXdmInfoFromWindowName=function(t,n){return e.OUtil.parseInfoFromWindowName(t,n,"xdmInfo")},t.parseXdmInfoWithGivenFragment=function(t,n){return e.OUtil.parseInfoWithGivenFragment("&_xdm_Info=","_xdm_",!1,t,n)},t.parseFlights=function(e){var t=function(e,t){return u(p(n,o,!0,e,t))}(e,window.location.hash);return 0==t.length&&(t=function(e,t){return u(c(e,t,"flights"))}(e,window.name)),t},t.parseDisabledChangeGates=function(e){var t=function(e,t){return u(p(r,i,!0,e,t))}(e,window.location.hash);return 0==t.length&&(t=function(e,t){return u(c(e,t,"disabledChangeGates"))}(e,window.name)),t},t.checkFlight=function(t){return e.Flights&&e.Flights.indexOf(t)>=0},t.isChangeGateEnabled=function(t){return!e.DisabledChangeGates||-1===e.DisabledChangeGates.indexOf(t)},t.parseInfoFromWindowName=c,t.parseInfoWithGivenFragment=p,t.getConversationId=function(){var e=window.location.search,t=null;if(e){var n=e.indexOf("&");(t=n>0?e.substring(1,n):e.substr(1))&&"="===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1))&&(t=decodeURIComponent(t))}return t},t.getInfoItems=function(e){var t=e.split("$");return void 0===t[1]&&(t=e.split("|")),void 0===t[1]&&(t=e.split("%7C")),t},t.getXdmFieldValue=function(t,n){var r="",o=e.OUtil.parseXdmInfo(n);if(o){var i=e.OUtil.getInfoItems(o);if(null!=i&&i.length>=3)switch(t){case"ConversationUrl":r=i[2];break;case"AppId":r=i[1]}}return r},t.parseUrl=function(t,n){if(void 0===n&&(n=!1),void 0!==t&&t){var r="NotHttps",o="undefined"!=typeof window&&void 0!==window.navigator&&window.navigator.userAgent.indexOf("Trident")>0,i=("undefined"!=typeof window&&void 0!==window.navigator&&window.navigator.userAgent.indexOf("Edge"),{protocol:void 0,hostname:void 0,host:void 0,port:void 0,pathname:void 0,search:void 0,hash:void 0,isPortPartOfUrl:void 0});try{if(o){var a=document.createElement("a");if(a.href=t,!(a&&a.protocol&&a.host&&a.hostname&&a.href&&h(a.href).toLowerCase()===h(t).toLowerCase()))throw"InvalidUrl";if(e.OUtil.checkFlight(2)&&n&&"https:"!=a.protocol)throw new Error(r);var l=function(e,t){return e&&t?"https:"==t.protocol&&s(e,"https:",t.hostname,"443")?":443":"http:"==t.protocol&&s(e,"http:",t.hostname,"80")?":80":"":""}(t,a);i.protocol=a.protocol,i.hostname=a.hostname,i.port=""==l?a.port:"",i.host=""!=l?a.hostname:a.host,i.pathname=(o?"/":"")+a.pathname,i.search=a.search,i.hash=a.hash,i.isPortPartOfUrl=s(t,a.protocol,a.hostname,a.port)}else{var u=new URL(t);if(u&&u.protocol&&u.host&&u.hostname){if(e.OUtil.checkFlight(2)&&n&&"https:"!=u.protocol)throw new Error(r);i.protocol=u.protocol,i.hostname=u.hostname,i.port=u.port,i.host=u.host,i.pathname=u.pathname,i.search=u.search,i.hash=u.hash,i.isPortPartOfUrl=u.host.lastIndexOf(":"+u.port)==u.host.length-u.port.length-1}}}catch(e){if(e.message===r)throw e}return i}},t.focusToFirstTabbable=function(e,t){var n,r,o=!1,i=function(e){o=!0},a=function(e,t,n){return t<0||t>e||0===t&&n?-1:t!==e-1||n?n?t-1:t+1:-1};if(e=d(e),n=t?e.length-1:0,0===e.length)return null;for(;!o&&n>=0&&n<e.length;)r=e[n],window.focus(),r.addEventListener("focus",i),r.focus(),r.removeEventListener("focus",i),n=a(e.length,n,t),o||r!==document.activeElement||(o=!0);return o?r:null},t.focusToNextTabbable=function(e,t,n){var r,o,i,a=!1,s=function(e){a=!0},l=function(e,t,n){return t<0||t>e||0===t&&n?-1:t!==e-1||n?n?t-1:t+1:-1};if(r=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}(e=d(e),t),(o=l(e.length,r,n))<0)return null;for(;!a&&o>=0&&o<e.length;)(i=e[o]).addEventListener("focus",s),i.focus(),i.removeEventListener("focus",s),o=l(e.length,o,n),a||i!==document.activeElement||(a=!0);return a?i:null},t.defineMethodOnNamespace=function(e,t,n){e[t]=n},t.isDialog=function(){return e._OfficeAppFactory.getHostInfo().isDialog},t.isPopupWindow=function(){return e.OUtil.isDialog()&&e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web&&null!=window.opener},t.getHostPlatform=function(){return e._OfficeAppFactory.getHostInfo().hostPlatform},t.getCustomOfficeInitializationSettings=function(){return"object"==typeof officeInitializationSettings?officeInitializationSettings:{}};var y=0;t.getLibraryReleaseVehicle=function(){return y},t.setLibraryReleaseVehicle=function(e){y=e}}(e.OUtil||(e.OUtil={}))}(OSF||(OSF={})),function(e){!function(e){e.Callback="callback",e.AsyncContext="asyncContext",e.Data="data",e.MessageToParent="messageToParent",e.MessageContent="messageContent",e.MessageOrigin="messageOrigin",e.TargetOrigin="targetOrigin",e.AppCommandInvocationCompletedData="appCommandInvocationCompletedData"}(e.ParameterNames||(e.ParameterNames={}))}(OSF||(OSF={})),function(e){!function(t){var n=function(){};t.RequirementVersion=n;var r=function(){function e(e){this._setMap=e}return e.prototype.isSetSupported=function(e,t){if(null==e)return!1;null==t&&(t=0);var n=this._setMap._sets;if(n.hasOwnProperty(e.toLowerCase())){var r=n[e.toLowerCase()];try{var o=this._getVersion(r+"");t+="";var i=this._getVersion(t);if(o.major>0&&o.major>i.major)return!0;if(o.major>0&&o.minor>=0&&o.major==i.major&&o.minor>=i.minor)return!0}catch(e){return!1}}return!1},e.prototype._getVersion=function(e){var t=(e+="").split("."),n=0,r=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),t.length>=2&&(r=Number(t[1])),isNaN(n)||isNaN(r))throw"version format incorrect";return{minor:r,major:n}},e}();t.RequirementMatrix=r;var o=function(){function e(e){this._sets=e}return e.prototype._addSetMap=function(e){for(var t in e)this._sets[t]=e[t]},e}();t.DefaultSetRequirement=o;var i=function(e){function t(){return e.call(this,{dialogapi:1.1})||this}return __extends(t,e),t}(o);t.DefaultRequiredDialogSetRequirement=i;var a=function(e){function t(){return e.call(this,{dialogorigin:1.1})||this}return __extends(t,e),t}(o);t.DefaultOptionalDialogSetRequirement=a;var s=function(){function t(){}return t.getDefaultRequirementMatrix=function(t){var n=void 0,i=t.get_requirementMatrix();if(null!=i&&i.length>0){var a=JSON.parse(t.get_requirementMatrix().toLowerCase());if(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web)try{var s="dialogorigin";a.hasOwnProperty(s)||(a[s]=1.1)}catch(e){}n=new r(new o(a))}else n=new r(new o({}));return n},t.getDefaultDialogRequirementMatrix=function(t){var n=void 0,s=t.get_dialogRequirementMatrix();if(null!=s&&s.length>0){var l=JSON.parse(t.get_requirementMatrix().toLowerCase());n=new o(l)}else{n=new i;var u=t.get_requirementMatrix();if(null!=u&&u.length>0&&"undefined"!=typeof JSON){l=JSON.parse(u.toLowerCase());for(var c in n._sets)l.hasOwnProperty(c)&&(n._sets[c]=l[c]);var p=new a;for(var c in p._sets)l.hasOwnProperty(c)&&(n._sets[c]=l[c])}}if(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web)try{var f="dialogorigin";!n._sets.hasOwnProperty(f)&&window.opener&&(n._sets[f]=1.1)}catch(e){}return new r(n)},t}();t.RequirementsMatrixFactory=s}(e.Requirement||(e.Requirement={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){var n;t.executeRichApiRequestAsync=function(t,n){var r={toSafeArrayHost:function(){return[t]},fromSafeArrayHost:function(e){return{data:e}},toWebHost:function(){return{ArrayData:t}},fromWebHost:function(e){return{data:e.Data}}};e._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(93,r,n)},Object.defineProperty(t,"richApiMessageManager",{get:function(){return n||(n=new e.RichApiMessageManager),n}})}(t.RichApi||(t.RichApi={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){var t=function(){function t(){this._registerHandlers=[],this._eventDispatch=new e.EventDispatch([{type:e.EventType.RichApiMessage,id:e.EventDispId.dispidRichApiMessageEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){var n=e;return t.transferEventArgument(n)},fromWebHost:function(e){var n=e.ArrayData;return t.transferEventArgument(n)}}])}return t.transferEventArgument=function(t){var n=[];if(t)for(var r=0;r<t.length;r++){var o=t[r];o.toArray&&(o=o.toArray()),n.push({messageCategory:o[0],messageType:o[1],targetId:o[2],message:o[3],id:o[4],isRemoteOverride:o[5]})}return{type:e.EventType.RichApiMessage,entries:n}},t.prototype.addHandlerAsync=function(t,n,r){e.EventHelper.addEventHandler(t,n,r,this._eventDispatch)},t.prototype.removeHandlerAsync=function(t,n,r){e.EventHelper.removeEventHandler(t,n,r,this._eventDispatch)},t.prototype.register=function(t){var n=this;return this._registerPromise||(this._registerPromise=new Office.Promise((function(t,r){n.addHandlerAsync(e.EventType.RichApiMessage,(function(e){n._registerHandlers.forEach((function(t){t&&t(e)}))}),(function(e){"failed"==e.status?r(e.error):t()}))}))),this._registerPromise.then((function(){n._registerHandlers.push(t)}))},t}();e.RichApiMessageManager=t}(OSF||(OSF={})),function(e){var t=function(){function t(){}return t.prototype.execute=function(e,t,n){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.Execute(e,t,n,OsfOMToken):window.external.Execute(e,t,n)},t.prototype.registerEvent=function(e,t,n,r,o){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.RegisterEvent(e,n,r,o,OsfOMToken):window.external.RegisterEvent(e,n,r,o)},t.prototype.unregisterEvent=function(e,t,n,r){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.UnregisterEvent(e,n,r,OsfOMToken):window.external.UnregisterEvent(e,n,r)},t.prototype.closeSdxDialog=function(t){throw e.Utility.createNotImplementedException()},t.prototype.resizeSdxDialog=function(t,n){throw e.Utility.createNotImplementedException()},t}();e.RichClientHostController=t}(OSF||(OSF={})),function(e){var t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.officeThemeTimeStamp=null,e.officeTheme=null,e}return __extends(n,t),n.prototype.getOsfControlContext=function(){if(!this._osfControlContext){var t="Warning: Office.js is loaded outside of Office client";try{if(!window.external)return console.error("There is no window.external."),e.Utility.trace(t),null;this._osfControlContext=window.external.GetContext()}catch(n){return console.error("Error when call window.external.GetContext() :"+JSON.stringify(n)),e.Utility.trace(t),null}}return this._osfControlContext},n.prototype.getAppContext=function(t,n,r){var o=this,i=this.getOsfControlContext();if(i){var a,s,l,u,c,p,f,h,d,y,m,g,_,b,v,O,C,S,P,A,E,R,x,T,I,w,F=0,N=!1;if((D=e.Utility.externalNativeFunctionExists)(typeof i.GetContextDataInJson))if("undefined"!=typeof OsfOMToken&&OsfOMToken)if((I=i.GetContextDataInJson(OsfOMToken))&&(w=JSON.parse(I)),w)a=w.appType,s=w.solutionRef,l=w.versionMajor,u=w.versionMinor,c=w.uiLocale,p=w.dataLocale,f=w.docUrl,h=w.clientMode,d=w.activationMode,m=w.controlType,g=w.eToken,_=w.correlationId,b=w.appInstanceId,v=w.touchEnabled,O=i.commerceAllowed,C=w.requirementMatrix,P=w.hostFullVersion,A=w.requirementMatrix,(k=w.featureGates)&&(E=JSON.parse(k)),F=w.initialDisplayMode,R=function(){var t={};if(w.settings)try{var n=JSON.parse(w.settings);if(n)for(var r=[n.names,n.values],o=r[0],i=r[1],a=0;a<o.length;a++)t[o[a]]=i[a]}catch(t){e.Utility.trace("Exception while parsing settings. Details: "+t)}return t},x=function(){var e=w.themeInfo;return o.getOfficeThemeFromInfoString(e)};else N=!0;else N=!0;else N=!0;if(N){a=i.GetAppType(),s=i.GetSolutionRef(),l=i.GetAppVersionMajor(),u=i.GetAppVersionMinor(),c=i.GetAppUILocale(),p=i.GetAppDataLocale(),f=i.GetDocUrl(),h=i.GetAppCapabilities(),d=i.GetActivationMode(),m=i.GetControlIntegrationLevel();try{g=i.GetSolutionToken()}catch(e){}var D;if((D=e.Utility.externalNativeFunctionExists)(typeof i.GetCorrelationId)&&(_=i.GetCorrelationId()),D(typeof i.GetInstanceId)&&(b=i.GetInstanceId()),D(typeof i.GetTouchEnabled)&&(v=i.GetTouchEnabled()),D(typeof i.GetCommerceAllowed)&&(O=i.GetCommerceAllowed()),D(typeof i.GetSupportedMatrix)&&(C=i.GetSupportedMatrix()),D(typeof i.GetHostCustomMessage)&&(S=i.GetHostCustomMessage()),D(typeof i.GetHostFullVersion)&&(P=i.GetHostFullVersion()),D(typeof i.GetDialogRequirementMatrix)&&(A=i.GetDialogRequirementMatrix()),D(typeof i.GetFeaturesForSolution))try{var k;(k=i.GetFeaturesForSolution())&&(E=JSON.parse(k))}catch(t){e.Utility.trace("Exception while creating the SDX FeatureGates object. Details: "+t)}D(typeof i.GetInitialDisplayMode)&&(F=i.GetInitialDisplayMode()),R=function(){return o.getSerializedSettings()},x=function(){return o.getOfficeTheme()},T=function(){return o.getSerializedHostSettings()}}y=2===d?Office.InitializationReason.DocumentOpened:Office.InitializationReason.Inserted,g=g?g.toString():"",n(new e.OfficeAppContext(s,a,l,c,p,f,h,R,y,m,g,_,b,v,O,u,C,S,P,void 0,void 0,void 0,void 0,A,E,x,F,void 0,void 0,T,!1,void 0,void 0))}else r(new Error("The Office.js is loaded outside of Office client"))},n.prototype.createClientHostController=function(){if(!this._clientHostController){if(this._hostInfo.hostPlatform!==e.HostInfoPlatform.win32)throw e.Utility.createNotImplementedException();this._clientHostController=new e.Win32RichClientHostController}return this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new e.SafeArrayAsyncMethodExecutor(this._clientHostController)},n.prototype.createClientSettingsManager=function(){return new e.RichClientSettingsManager(this.getOsfControlContext())},n.prototype.getSerializedSettings=function(){var e=this.getOsfControlContext(),t=[],n=[];"undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken).Read(t,n):e.GetSettings().Read(t,n);for(var r={},o=0;o<t.length;o++)r[t[o]]=n[o];return r},n.prototype.getOfficeTheme=function(){var e=this.getOsfControlContext();if(e){if(!(this.officeTheme&&this.officeThemeTimeStamp&&(new Date).getTime()-this.officeThemeTimeStamp<n.officeThemeCacheValidPeriod)){var t=e.GetOfficeThemeInfo();this.officeTheme=this.getOfficeThemeFromInfoString(t),this.officeThemeTimeStamp=(new Date).getTime()}return this.officeTheme}},n.prototype.getOfficeThemeFromInfoString=function(t){var n=null;if(t)try{n=JSON.parse(t)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+t)}var r={};if(n){var o={bodyBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},bodyForegroundColor:{name:"bodyForegroundColor",convertToHex:!0},controlBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},controlForegroundColor:{name:"controlForegroundColor",convertToHex:!0},primaryFontColor:{name:"bodyForegroundColor",convertToHex:!0},primaryBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},secondaryFontColor:{name:"controlForegroundColor",convertToHex:!0},secondaryBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},fluentThemeData:{name:"fluentThemeData",convertToHex:!1}};for(var i in n){var a=!1,s=i;o[i]&&(s=o[i].name,a=o[i].convertToHex),r[s]=a?e.OUtil.convertIntToCssHexColor(n[i]):n[i]}}return r},n.prototype.getSerializedHostSettings=function(){var e=this.getOsfControlContext(),t=[],n=[];"function"==typeof e.GetSettings().ReadHost&&("undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken).ReadHost(t,n):e.GetSettings().ReadHost(t,n));for(var r={},o=0;o<t.length;o++)r[t[o]]=n[o];return r},n.officeThemeCacheValidPeriod=5e3,n}(e.InitializationHelper);e.RichClientInitializationHelper=t}(OSF||(OSF={})),function(e){var t=function(){function e(e){this._osfClientContext=e}return e.prototype.read=function(e){var t,n=this._osfClientContext;t="undefined"!=typeof OsfOMToken&&OsfOMToken?n.GetSettings(OsfOMToken):n.GetSettings();var r=function(){var n=[],r=[];t.Read(n,r);for(var o={},i=0;i<n.length;i++)o[n[i]]=r[i];e&&e(0,o)};t.RefreshAsync?t.RefreshAsync((function(){r()})):r()},e.prototype.write=function(e,t){var n=[],r=[];for(var o in e)n.push(o),r.push(e[o]);var i,a=this._osfClientContext;void 0!==(i="undefined"!=typeof OsfOMToken&&OsfOMToken?a.GetSettings(OsfOMToken):a.GetSettings()).WriteAsync?i.WriteAsync(n,r,t):(i.Write(n,r),t(0))},e}();e.RichClientSettingsManager=t}(OSF||(OSF={})),function(e){var t=function(t){function n(n){var r=t.call(this)||this;return r._clientHostController=n,r._asyncMethodExecutorHelper=e.BootStrapExtension.createAsyncMethodExecutorHelper(r),r}return __extends(n,t),n.prototype.executeAsync=function(t,n,r,o){var i=this;try{var a=new Array;this._clientHostController.execute(t,n.toSafeArrayHost(),(function(s,l){var u=e.Utility.fromSafeArray(s);return i._asyncMethodExecutorHelper.handleSafeArrayHostResponse(u,l,a,r,n,t,o)}))}catch(e){this.onException(e,t,r)}},n.prototype.registerEventAsync=function(t,n,r,o,i,a,s){var l=this;try{this._clientHostController.registerEvent(t,n,r,(function(t,n){var r=e.Utility.fromSafeArray(n),a=i.fromSafeArrayHost(r);o(a)}),(function(n){var r,o=e.Utility.fromSafeArray(n);return"number"==typeof o?([],r=o):r=o[0],l.invokeCallback(t,a,r,null,s),!0}))}catch(e){this.onException(e,t,a)}},n.prototype.unregisterEventAsync=function(t,n,r,o,i){var a=this;try{this._clientHostController.unregisterEvent(t,n,r,(function(n,r){var s,l=e.Utility.fromSafeArray(n);return"number"==typeof l?([],s=l):s=l[0],a.invokeCallback(t,o,s,null,i),!0}))}catch(e){this.onException(e,t,o)}},n.prototype.onException=function(t,n,r){var o,i=t.number;if(i)switch(i){case-2146828218:o=7e3;break;case-2147467259:o=n==e.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:o=5010;break;case-2147208704:o=5100;break;case-2146827850:default:o=5001}r&&this.invokeCallback(n,r,o||5001,null)},n}(e.AsyncMethodExecutor);e.SafeArrayAsyncMethodExecutor=t}(OSF||(OSF={})),function(e){var t=function(){function e(e){this._internalStorage=e}return e.prototype.getItem=function(e){try{return this._internalStorage&&this._internalStorage.getItem(e)}catch(e){return null}},e.prototype.setItem=function(e,t){try{this._internalStorage&&this._internalStorage.setItem(e,t)}catch(e){}},e.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(e){}},e.prototype.removeItem=function(e){try{this._internalStorage&&this._internalStorage.removeItem(e)}catch(e){}},e.prototype.getKeysWithPrefix=function(e){var t=[];try{for(var n=this._internalStorage&&this._internalStorage.length||0,r=0;r<n;r++){var o=this._internalStorage.key(r);0===o.indexOf(e)&&t.push(o)}}catch(e){}return t},e}();e.SafeStorage=t}(OSF||(OSF={})),function(e){var t=function(){function t(e,t){var n=this;this._clientSettingsManager=t,e=e||{},this._settings=e,this._eventDispatch=new OSF.EventDispatch([{id:OSF.EventDispId.dispidSettingsChangedEvent,type:OSF.EventType.SettingsChanged,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:OSF.EventType.SettingsChanged,settings:n}},fromWebHost:function(e){return{type:OSF.EventType.SettingsChanged,settings:n}}}])}return t.prototype.cacheSessionSettings=function(e){var t=OSF.OUtil.getSessionStorage();if(t){var n=OSF.OUtil.serializeSettings(e),r=JSON.stringify(n);t.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),r)}},t.prototype.get=function(e){var t=this._settings[e];return void 0===t?null:t},t.prototype.set=function(e,t){this._settings[e]=t,this.cacheSessionSettings(this._settings)},t.prototype.remove=function(e){delete this._settings[e],this.cacheSessionSettings(this._settings)},t.prototype.saveAsync=function(e){var t=this._clientSettingsManager,n=OSF.OUtil.serializeSettings(this._settings);t.write(n,(function(t){var n=OSF.Utility.asyncResultFromErrorCode(t);e&&e(n)}))},t.prototype.refreshAsync=function(t){var n=this;this._clientSettingsManager.read((function(r,o){var i=OSF.Utility.asyncResultFromErrorCode(r);i.status===e.AsyncResultStatus.Succeeded&&(n._settings=OSF.OUtil.deserializeSettings(o),i.value=n),t&&t(i)}))},t.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},t.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},t.prototype.toJSON=function(){return this._settings},t}();e.Settings=t}(Office||(Office={}));var OSFWebkit,OTel,Microsoft,__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){var t=function(){function t(){}return t.isSovereignVersion=function(){return"undefined"!=typeof isOsfSovereignVersion&&!0===isOsfSovereignVersion},t.prototype.getEnvironmentName=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(e=t.sent())&&e.envName?e.envName:null]}}))}))},t.prototype.getEnvironmentType=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(e=t.sent())&&e.envType?e.envType:null]}}))}))},t.prototype.getTrustedHostOrigins=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(e=t.sent())?e.trustedHostOrigins:null]}}))}))},t.prototype.isConfigAvailable=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,!!e.sent()]}}))}))},t.prototype.isSovereignHostTrusted=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return e?e===window.location.hostname?[2,!0]:[4,this.getTrustedHostOrigins()]:[2,!1];case 1:return(t=n.sent())&&0!=t.length?[2,new RegExp(t.join("|")).test(e)]:[2,!1]}}))}))},t.prototype.getConfigPath=function(){var t=e.LoadScriptHelper.getHostBundleJsBasePath();if(t){var n="/lib/",r=(t=t.toLowerCase()).indexOf(n);if(r>-1)return t.toLowerCase().substring(0,r+n.length)+"officeconfig.json"}return""},t.prototype.getConfig=function(){return this._configPromise||(this._configPromise=this.tryLoadConfig()),this._configPromise},t.prototype.tryLoadConfig=function(){return __awaiter(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return __generator(this,(function(l){switch(l.label){case 0:if(!(t=this.getConfigPath()))return[3,2];if(n=e.OUtil.getLocalStorage(),r=t+"_cache",o=n.getItem(r),i=null,o){try{i=JSON.parse(o)}catch(e){}if(864e5,a=(new Date).getTime(),i&&i.config&&i.createTime<=a&&i.createTime+864e5>=a)return[2,i.config]}return[4,this.downloadConfig(t)];case 1:return(s=l.sent())?(i={createTime:(new Date).getTime(),config:s},n.setItem(r,JSON.stringify(i))):i&&(s=i.config),[2,s];case 2:return[2,null]}}))}))},t.prototype.downloadConfig=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()];case 3:return t.sent(),[3,4];case 4:return[2,null]}}))}))},t}();e.SovereignHelper=t}(OSF||(OSF={})),function(e){!function(e){function t(e){return void 0===e||null===e}e.createParameterException=function(e){return new Error("Parameter count mismatch: "+e)},e.createArgumentException=function(e){return new Error("Invalid argument "+e)},e.createNotImplementedException=function(){return new Error("Not implemented yet")},e.log=function(e){console.log(e)},e.trace=function(e){console.log(e)},e.debugLog=function(e){console.log(e)},e.getQueryStringValue=function(e){if("undefined"!=typeof window&&window.location&&window.location.search){var t=new RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);if(t)return t[1]}return null},e.isNullOrUndefined=t,e.isNullOrEmpty=function(e){return!!t(e)||0===e.length},e.isInUnittest=function(){return"boolean"==typeof g_osfUnittest&&g_osfUnittest}}(e.Utility||(e.Utility={}))}(OSF||(OSF={})),function(e){e.isOfficeReactNative=function(){try{return"undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka}catch(e){return!1}},function(e){function t(e){return new Promise(e)}function n(e){var t=e,o=1;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray)if(e.dimensions&&(o=e.dimensions()),2===o)t=r(e);else{var i=e.toArray();t=new Array(i.length);for(var a=0;a<i.length;a++)t[a]=n(i[a])}return t}function r(e){var t;try{var n=e.ubound(1),r=e.ubound(2);if(e=e.toArray(),1==n&&1==r)t=[e];else{t=[];for(var o=0;o<n;o++){for(var i=[],a=0;a<r;a++){var s=e[o*r+a];"{66e7831f-81b2-42e2-823c-89e872d541b3}"!=s&&i.push(s)}i.length>0&&t.push(i)}}}catch(e){}return t}e.xdmDebugLog=function(t){e._DebugXdm&&console.log(t)},e.enableDebugXdm=function(){e._DebugXdm=!0},e.createPromiseFromResult=function(e){return Promise.resolve(e)},e.createPromise=t,e.promisify=function(e,n){return t((function(t,r){e((function(e){0===e?t():r()})),setTimeout((function(){r()}),n)}))},e.compareVersions=function(e,t){var n,r=e.split("."),o=t.split(".");for(n in r){if(parseInt(r[n])<parseInt(o[n]))return!1;if(parseInt(r[n])>parseInt(o[n]))return!0}return!1},e.getErrorCodeFromAsyncResult=function(e){return e.status===Office.AsyncResultStatus.Succeeded?0:e.error&&e.error.code?e.error.code:5001},e.externalNativeFunctionExists=function(e){return"unknown"===e||"undefined"!==e},e.stringEndsWith=function(t,n){if(e.isNullOrUndefined(t))throw e.createArgumentException("value");if(e.isNullOrUndefined(n))throw e.createArgumentException("subString");return!(n.length>t.length)&&t.substr(t.length-n.length)===n},e.fromSafeArray=function(e){var t=e;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray){var r=e.toArray();t=new Array(r.length);for(var o=0;o<r.length;o++)t[o]=n(r[o])}return t},e.twoDVBArrayToJaggedArray=r,e.asyncResultFromErrorCode=function(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),0===e?{status:Office.AsyncResultStatus.Succeeded}:{status:Office.AsyncResultStatus.Failed,error:{code:e}}},e._DebugXdm=!1}(e.Utility||(e.Utility={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(n){var r=t.call(this)||this;return r._clientHostController=n,r._asyncMethodExecutorHelper=e.BootStrapExtension.createAsyncMethodExecutorHelper(r),r}return __extends(n,t),n.prototype.executeAsync=function(e,t,n,r){var o=this;this._clientHostController.execute(e,t.toWebHost(),(function(i,a){return n&&o._asyncMethodExecutorHelper.handleWebHostResponse(a,i,n,t,e,r),!0}))},n.prototype.registerEventAsync=function(e,t,n,r,o,i,a){var s=this;this._clientHostController.registerEvent(e,t,n,(function(e){var t=e,n=o.fromWebHost(t);r(n)}),(function(t,n){return i&&s.invokeCallback(e,i,t,null,a),!0}))},n.prototype.unregisterEventAsync=function(e,t,n,r,o){var i=this;this._clientHostController.unregisterEvent(e,t,n,(function(t,n){return r&&i.invokeCallback(e,r,t,null,o),!0}))},n}(e.AsyncMethodExecutor);e.WebAsyncMethodExecutor=t}(OSF||(OSF={})),function(e){!function(t){!function(t){t.getAuthContextAsync=function(t){e._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(99,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.authContext}},t)}}(t.WebAuth||(t.WebAuth={}))}(e.DDA||(e.DDA={})),function(t){var n;!function(e){e.AuthCode="authcode",e.Broker="broker",e.Implicit="implicit"}(n=t.AuthFlow||(t.AuthFlow={})),t.loadAttempts=0;var r="webauth/",o="webauth.browserauth.debug.js",i="webauth.browserauth.js",a=!1;t.load=function(){return t.config&&t.config.authFlow===n.AuthCode?(t.loadAttempts++,(a=t.config&&(!0===t.config.useMsal3||!1!==t.config.useMsal3&&e.OUtil.checkFlight(e.FlightTreatmentNames.EnableMsal3SsoApi)))&&(o="webauth.browserauth.msal3.debug.js",i="webauth.browserauth.msal3.js"),new Promise((function(n,s){var l=function(t,n,r){return new Promise((function(o,i){t?e.OUtil.loadScript(t,(function(e){if("boolean"!=typeof e||e)if(e instanceof Event&&e)i(new Event("loadScript: "+e.type+" '"+t+"'"));else if(r&&!n())var a=0,s=setInterval((function(){a+=500,!(n()||a>r)||(clearInterval(s),n())||i(new Event("Missing expected object after loaded."))}),500);else o(null);else i(new Event("loadScript: failed to load '"+t+"'"))}),e.LoadScriptHelper.getTrustedTypesPolicy(),r):o(null)}))},u=[l(t.config&&t.config.authVersion?e.LoadScriptHelper.getHostBundleJsBasePath()+r+t.config.authVersion+"/"+(t.config&&t.config.debugging?o:i):e.LoadScriptHelper.getHostBundleJsBasePath()+r+(t.config&&t.config.debugging?o:i),(function(){return!!BrowserAuth}),t.config.delayWebAuth)];a||u.push(l(t.config.msal,(function(){return!!msal}),t.config.delayMsal)),Promise.all(u).then((function(){t.config?BrowserAuth.Load(t.config,e._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId).then((function(e){n(e)}),(function(e){s(e)})):s(new Event("config is empty."))}),(function(e){s(e)}))}))):new Promise((function(e,t){return t(new Event("'authcode' as authFlow is only supported"))}))},t.getToken=function(e,r,o,i,s,l){return t.config&&t.config.authFlow===n.AuthCode?a?BrowserAuth.GetToken({resource:e,scopes:r,applicationId:o,correlationId:i,popup:!!s,claims:l}):BrowserAuth.GetToken(e,o,i,!!s,!!s,!1,l):Promise.reject(new Event("'authcode' as authFlow is only supported"))}}(e.WebAuth||(e.WebAuth={}))}(OSF||(OSF={})),function(e){var t=function(){function t(t){this._delegateVersion=1,this._webAppState=t,this._webClientHostControllerHelper=e.BootStrapExtension.createWebClientHostControllerHelper(this._webAppState,this._delegateVersion)}return t.prototype.execute=function(e,t,n){var r=this,o=this._webClientHostControllerHelper.getHostCallArgs(e,t),i=this._webClientHostControllerHelper.getTargetMethodName(e);this._webAppState.clientEndPoint.invoke(i,(function(t,o){var i=0;if(0==t)r._delegateVersion=o.Version,i=r._webClientHostControllerHelper.parseErrorFromPayload(e,o);else switch(t){case-5:i=7e3;break;default:i=5001}n&&n(i,o)}),o)},t.prototype.registerEvent=function(e,t,n,r,o){this._webAppState.clientEndPoint.registerForEvent(this.getXdmEventName(n,t),(function(e){r&&r(e)}),this._getOnAfterRegisterEvent(!0,e,o),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.unregisterEvent=function(e,t,n,r){this._webAppState.clientEndPoint.unregisterForEvent(this.getXdmEventName(n,t),this._getOnAfterRegisterEvent(!1,e,r),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.messageParent=function(t){throw e.Utility.createNotImplementedException()},t.prototype.openDialog=function(t,n,r,o,i){throw e.Utility.createNotImplementedException()},t.prototype.closeDialog=function(t,n,r,o){throw e.Utility.createNotImplementedException()},t.prototype.sendMessage=function(t){throw e.Utility.createNotImplementedException()},t.prototype.closeSdxDialog=function(t){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,e.AgaveHostAction.CloseSDXDialog,{InstanceId:this._webAppState.id,DialogCloseCallbackParam:t}])},t.prototype.resizeSdxDialog=function(t,n){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,e.AgaveHostAction.ResizeSDXDialog,{InstanceId:this._webAppState.id,DialogWidth:t+"px",DialogHeight:n+"px"}])},t.prototype.getXdmEventName=function(t,n){return n==e.EventType.BindingSelectionChanged||n==e.EventType.BindingDataChanged||n==e.EventType.DataNodeDeleted||n==e.EventType.DataNodeInserted||n==e.EventType.DataNodeReplaced?t+"_"+n:n},t.prototype._getOnAfterRegisterEvent=function(t,n,r){var o=(new Date).getTime();return function(i,a){var s;if(0!=i)switch(i){case-5:s=7e3;break;default:s=5001}else s=a?a.Error?a.Error:0:5001;r&&r(s),e.AppTelemetry&&e.AppTelemetry.onRegisterDone(t,n,Math.abs((new Date).getTime()-o),s)}},t}();e.WebClientHostController=t}(OSF||(OSF={})),function(e){var t=function(){function e(e,t){this._webAppState=e,this._delegateVersion=t}return e.prototype.getHostCallArgs=function(e,t){var n=t;return n||(n={}),n.DdaMethod={ControlId:this.getControlId(),DispatchId:e,Version:this._delegateVersion},n.__timeout__=-1,n},e.prototype.getTargetMethodName=function(e){return"executeMethod"},e.prototype.parseErrorFromPayload=function(e,t){return t.Error},e.prototype.getControlId=function(){return this._webAppState.id},e}();e.WebClientHostControllerHelper=t}(OSF||(OSF={})),function(e){var t=function(){function t(){}return t.prototype.read=function(t){e._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(75,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.Properties.Settings}},(function(e){if(e.status===Office.AsyncResultStatus.Succeeded){for(var n={},r=0;r<e.value.length;r++){var o=e.value[r];Array.isArray(o)?n[o[0]]=o[1]:n[o.Name]=o.Value}t(0,n)}else{var i=e.error.code;t(i,{})}}))},t.prototype.write=function(t,n){var r=e._OfficeAppFactory.getAsyncMethodExecutor(),o=[];for(var i in t){var a=[];a.push(i),a.push(t[i]),o.push(a)}var s={toSafeArrayHost:function(){return null},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{DdaSettingsMethod:{OverwriteIfStale:!0,Properties:o}}},fromWebHost:function(e){return null}};r.executeAsync(76,s,(function(e){if(e.status===Office.AsyncResultStatus.Succeeded)n(0);else{var t=e.error.code;n(t)}}))},t}();e.WebClientSettingsManager=t}(OSF||(OSF={})),function(e){var t=function(t){function n(e,n,r,o){var i=t.call(this,e,n,r,o)||this;return i._serializedSettings={},i._serializedHostSettings={},i._appContext={},i._tabbableElements="a[href]:not([tabindex='-1']),area[href]:not([tabindex='-1']),button:not([disabled]):not([tabindex='-1']),input:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),textarea:not([disabled]):not([tabindex='-1']),*[tabindex]:not([tabindex='-1']),*[contenteditable]:not([disabled]):not([tabindex='-1'])",i}return __extends(n,t),Object.defineProperty(n.prototype,"isHostOriginTrusted",{get:function(){return this._isHostOriginTrustedFunc},set:function(e){this._isHostOriginTrustedFunc=e},enumerable:!0,configurable:!0}),n.prototype.saveAndSetDialogInfo=function(t){var n,r=e.OUtil.getSessionStorage();if(r){if(t||(t=e.OUtil.parseHostInfoFromWindowName(!0,e._OfficeAppFactory.getWindowName())),t&&t.indexOf("isDialog")>-1){var o=(n=e.OUtil.parseXdmInfo(!0))?n.split("|")[1]:null;return null!=o&&r.setItem(o+"IsDialog","true"),void(this._hostInfo.isDialog=!0)}this._hostInfo.isDialog=null!=r.getItem(e.OUtil.getXdmFieldValue("AppId",!1)+"IsDialog")}},n.prototype.checkReceiverOriginAndRun=function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a,s,l,u,c,p;return __generator(this,(function(f){switch(f.label){case 0:return 3===(n=this)._webAppState.clientEndPoint.hostTrustCheckStatus?(t(),[2]):(r=e.OUtil.parseUrl(n._webAppState.clientEndPoint.targetUrl,!1),o="https:"==r.protocol,i=r.hostname,a="NotHttps",0!==n._webAppState.clientEndPoint.hostTrustCheckStatus?[3,4]:(o||(n._webAppState.clientEndPoint.hostTrustCheckStatus=2),2==n._webAppState.clientEndPoint.hostTrustCheckStatus?[3,4]:(s=!1,(l=e.SovereignHelper.isSovereignVersion())&&!0!==e.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments||(s=e.XdmCommunicationManager.isHostNameValidWacDomain(i),n.isHostOriginTrusted&&(s=s||n.isHostOriginTrusted(i))),s||!l?[3,3]:(n._sovereignHelper||(n._sovereignHelper=new e.SovereignHelper),[4,(u=n._sovereignHelper).isConfigAvailable()]))));case 1:return f.sent()?[4,u.isSovereignHostTrusted(i)]:[2];case 2:s=f.sent(),f.label=3;case 3:s&&(n._webAppState.clientEndPoint.hostTrustCheckStatus=3),f.label=4;case 4:if(n._webAppState.clientEndPoint.checkStatusLogged||null==n._hostInfo||void 0===n._hostInfo||(e.AppTelemetry.onCheckWACHost(n._webAppState.clientEndPoint.hostTrustCheckStatus,n._webAppState.id,n._hostInfo.hostType,n._hostInfo.hostPlatform,n._webAppState.clientEndPoint.targetUrl),n._webAppState.clientEndPoint.checkStatusLogged=!0),3===n._webAppState.clientEndPoint.hostTrustCheckStatus||e.LoadScriptHelper.disableHostCheck())t();else{if(e.LoadScriptHelper.isSdx())throw new Error("Not supported host");c=function(){var r=e.LoadScriptHelper.getHostBundleJsBasePath().match(/^https?:\/\/[^:/?#]*(?::([0-9]+))?/);if(r&&r[0]){var s=e.LoadScriptHelper.getHostBundleJsBasePath()+"AgaveErrorUX/index.html#",l={error:"NotTrustedWAC",locale:e.getSupportedLocale(n._hostInfo.hostLocale,e.ConstantNames.DefaultLocale),hostname:i,noHttps:!o,validate:!1},u=document.createElement("iframe");u.style.visibility="hidden",u.style.height="0",u.style.width="0";var c=function(o){if(o.source==u.contentWindow&&o.origin==r[0])try{!0===JSON.parse(o.data).hostUserTrusted?(n._webAppState.clientEndPoint.hostTrustCheckStatus=3,e.OUtil.removeEventListener(window,"message",c),document.body.removeChild(u)):(l.validate=!1,window.location.replace(s+encodeURIComponent(JSON.stringify(l)))),t()}catch(t){e.OUtil.ensureOfficeStringsJs().then((function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC}))}};e.OUtil.addEventListener(window,"message",c),l.validate=!0,u.setAttribute("src",s+encodeURIComponent(JSON.stringify(l))),u.onload=function(){var e={hostname:i,noHttps:!o};u.contentWindow.postMessage(JSON.stringify(e),r[0])},document.body.appendChild(u)}else e.OUtil.ensureOfficeStringsJs().then((function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC}));if(e.OUtil.checkFlight(2)&&!o)throw new Error(a)},document.body?c():(p=!1,document.addEventListener("DOMContentLoaded",(function(){p||(p=!0,c())})))}return[2]}}))}))},n.prototype.setAgaveHostCommunication=function(){try{var t=this,n=e.OUtil.parseXdmInfoWithGivenFragment(!1,e._OfficeAppFactory.getWindowLocationHash());if(n||(n=e.OUtil.parseXdmInfoFromWindowName(!1,e._OfficeAppFactory.getWindowName())),n){var r=e.OUtil.getInfoItems(n);null!=r&&r.length>=3&&(t._webAppState.conversationID=r[0],t._webAppState.id=r[1],t._webAppState.webAppUrl=r[2].indexOf(":")>=0?r[2]:decodeURIComponent(r[2]))}if(t._webAppState.wnd=null!=window.opener?window.opener:window.parent,this._hostInfo.isDialog&&null!=window.opener)return;t._webAppState.clientEndPoint=e.XdmCommunicationManager.connect(t._webAppState.conversationID,t._webAppState.wnd,t._webAppState.webAppUrl),t._webAppState.serviceEndPoint=e.XdmCommunicationManager.createServiceEndPoint(t._webAppState.id),t._webAppState.clientEndPoint.checkReceiverOriginAndRun=function(e){t.checkReceiverOriginAndRun(e)};var o=t._webAppState.conversationID+e.Constants.NotificationConversationIdSuffix;t._webAppState.serviceEndPoint.registerConversation(o,t._webAppState.webAppUrl);t._webAppState.serviceEndPoint.registerMethod("Office_notifyAgave",(function(n){var r;switch(r="string"==typeof n?n:n[0]){case e.AgaveHostAction.Select:t._webAppState.focused=!0;break;case e.AgaveHostAction.UnSelect:t._webAppState.focused=!1;break;case e.AgaveHostAction.TabIn:case e.AgaveHostAction.CtrlF6In:window.focus();var o=document.querySelectorAll(t._tabbableElements);e.OUtil.focusToFirstTabbable(o,!1)||(window.blur(),t._webAppState.focused=!1,t._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[t._webAppState.id,e.AgaveHostAction.ExitNoFocusable]));break;case e.AgaveHostAction.TabInShift:window.focus();o=document.querySelectorAll(t._tabbableElements);e.OUtil.focusToFirstTabbable(o,!0)||(window.blur(),t._webAppState.focused=!1,t._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[t._webAppState.id,e.AgaveHostAction.ExitNoFocusableShift]));break;case e.AgaveHostAction.SendMessage:if(Office.context.messaging.onMessage){var i=n[1];Office.context.messaging.onMessage(i)}break;case e.AgaveHostAction.TaskPaneHeaderButtonClicked:Office.context.ui.taskPaneAction.onHeaderButtonClick&&Office.context.ui.taskPaneAction.onHeaderButtonClick();break;default:e.Utility.trace("actionId "+r+" notifyAgave is wrong.")}}),0,!1),t.addOrRemoveEventListenersForWindow(!0)}catch(t){throw e.AppTelemetry&&e.AppTelemetry.logAppException("Exception thrown in setAgaveHostCommunication. Exception:["+t+"]"),t}},n.prototype.getAppContext=function(t,n,r){var o=this,i=this,a=function(t,a){if(OSFPerformance.getAppContextXdmEnd=OSFPerformance.now(),a._appName===e.AppName.ExcelWebApp){for(var s=0,l=a._settings;s<l.length;s++){var u=l[s],c=u[0],p=u[1];o._serializedSettings[c]=p}for(var f=0,h=a._hostSettings;f<h.length;f++){var d=h[f];c=d[0],p=d[1];o._serializedHostSettings[c]=p}}else o._serializedSettings=a._settings||{},o._serializedHostSettings=a._hostSettings||{};if(!i._hostInfo.isDialog||null==window.opener){var y=window.location.href;i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,e.AgaveHostAction.UpdateTargetUrl,y])}if(0===t&&null!=a._id&&null!=a._appName&&null!=a._appVersion&&null!=a._appUILocale&&null!=a._dataLocale&&null!=a._docUrl&&null!=a._clientMode&&null!=a._reason){i._appContext=a;var m=a._appInstanceId?a._appInstanceId:a._id,g=0;null!=a._appMinorVersion&&(g=a._appMinorVersion);var _=void 0;null!=a._requirementMatrix&&(_=a._requirementMatrix),a.eToken=a.eToken?a.eToken:"";var b=new e.OfficeAppContext(a._id,a._appName,a._appVersion,a._appUILocale,a._dataLocale,a._docUrl,a._clientMode,(function(){return o._serializedSettings}),a._reason,a._osfControlType,a._eToken,a._correlationId,m,!1,!0,g,_,a._hostCustomMessage,a._hostFullVersion,a._clientWindowHeight,a._clientWindowWidth,a._addinName,a._appDomains,a._dialogRequirementMatrix,a._featureGates,a._officeTheme,a._initialDisplayMode,a._isFromWacAutomation,a._wopiHostOriginForSingleSignOn,(function(){return o._serializedHostSettings}),!0,a._nestedAppAuthBridgeType,a._partitionKey);b.set_taskpaneUrl(a._taskpaneUrl),n(b)}else{var v="Function ContextActivationManager_getAppContextAsync call failed. ErrorCode is "+t+", exception: "+a;e.AppTelemetry&&e.AppTelemetry.logAppException(v),r(v)}};try{var s=!0;this._hostInfo.isDialog&&null!=window.opener&&(s=!1);var l=e.OUtil.parseAppContextFromWindowName(s,e._OfficeAppFactory.getWindowName());l?a(0,l):(OSFPerformance.getAppContextXdmStart=OSFPerformance.now(),this._webAppState.clientEndPoint.invoke("ContextActivationManager_getAppContextAsync",a,this._webAppState.id))}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception thrown when trying to invoke getAppContextAsync. Exception:["+t+"]"),r(t)}},n.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new e.WebClientHostController(this._webAppState)),this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new e.WebAsyncMethodExecutor(this._clientHostController)},n.prototype.createClientSettingsManager=function(){return new e.WebClientSettingsManager},n.prototype.addOrRemoveEventListenersForWindow=function(t){var n=this,r=function(){n._webAppState.focused||(n._webAppState.focused=!0),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.Select])},o=function(){e&&(n._webAppState.focused&&(n._webAppState.focused=!1),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.UnSelect]))},i=function(t){if(t.preventDefault=t.preventDefault||function(){t.returnValue=!1},117==t.keyCode&&(t.ctrlKey||t.metaKey)){t.preventDefault();var r=e.AgaveHostAction.CtrlF6Exit;t.shiftKey&&(r=e.AgaveHostAction.CtrlF6ExitShift),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,r])}else if(9==t.keyCode){t.preventDefault();var o=document.querySelectorAll(n._tabbableElements);e.OUtil.focusToNextTabbable(o,t.target||t.srcElement,t.shiftKey)||(n._hostInfo.isDialog?e.OUtil.focusToFirstTabbable(o,t.shiftKey):t.shiftKey?n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.TabExitShift]):n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.TabExit]))}else if(27==t.keyCode)t.preventDefault(),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.EscExit]);else if(113==t.keyCode)t.preventDefault(),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.F2Exit]);else if((t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)&&t.keyCode>=1&&t.keyCode<=255){var i={keyCode:t.keyCode,shiftKey:t.shiftKey,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey};n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.KeyboardShortcuts,i])}},a=function(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)};e.Utility._DebugXdm||(t?(e.OUtil.addEventListener(window,"focus",r),e.OUtil.addEventListener(window,"blur",o),e.OUtil.addEventListener(window,"keydown",i),e.OUtil.addEventListener(window,"keypress",a)):(e.OUtil.removeEventListener(window,"focus",r),e.OUtil.removeEventListener(window,"blur",o),e.OUtil.removeEventListener(window,"keydown",i),e.OUtil.removeEventListener(window,"keypress",a)))},n.prototype.getTabbableElements=function(){return this._tabbableElements},n}(e.InitializationHelper);e.WebInitializationHelper=t}(OSF||(OSF={})),function(e){var t=function(){function t(e,t){this._initializationHelper=e,this._scriptMessager=t}return t.prototype.read=function(e){this._initializationHelper.getAppContext(null,(function(t){if(e){var n=t.get_settingsFunc()();e(0,n)}}),(function(t){e&&e(5001,{})}))},t.prototype.write=function(t,n){var r={},o=[],i=[];for(var a in t)o.push(a),i.push(t[a]);r.keys=o,r.values=i;this._scriptMessager.invokeMethod(e.Webkit.MessageHandlerName,e.Webkit.MethodId.WriteSettings,r,(function(e){n&&n(e[0])}))},t}();e.WebkitClientSettingsManager=t}(OSF||(OSF={})),function(e){!function(t){t.MessageHandlerName="Agave",t.PopupMessageHandlerName="WefPopupHandler",function(e){e[e.Settings=0]="Settings",e[e.SolutionReferenceId=1]="SolutionReferenceId",e[e.AppType=2]="AppType",e[e.MajorVersion=3]="MajorVersion",e[e.MinorVersion=4]="MinorVersion",e[e.RevisionVersion=5]="RevisionVersion",e[e.APIVersionSequence=6]="APIVersionSequence",e[e.AppCapabilities=7]="AppCapabilities",e[e.APPUILocale=8]="APPUILocale",e[e.AppDataLocale=9]="AppDataLocale",e[e.BindingCount=10]="BindingCount",e[e.DocumentUrl=11]="DocumentUrl",e[e.ActivationMode=12]="ActivationMode",e[e.ControlIntegrationLevel=13]="ControlIntegrationLevel",e[e.SolutionToken=14]="SolutionToken",e[e.APISetVersion=15]="APISetVersion",e[e.CorrelationId=16]="CorrelationId",e[e.InstanceId=17]="InstanceId",e[e.TouchEnabled=18]="TouchEnabled",e[e.CommerceAllowed=19]="CommerceAllowed",e[e.RequirementMatrix=20]="RequirementMatrix",e[e.HostCustomMessage=21]="HostCustomMessage",e[e.HostFullVersion=22]="HostFullVersion",e[e.InitialDisplayMode=23]="InitialDisplayMode",e[e.FeatureGates=24]="FeatureGates",e[e.HostSettings=25]="HostSettings",e[e.OfficeThemeInfo=26]="OfficeThemeInfo"}(t.AppContextProperties||(t.AppContextProperties={})),function(e){e[e.Execute=1]="Execute",e[e.RegisterEvent=2]="RegisterEvent",e[e.UnregisterEvent=3]="UnregisterEvent",e[e.WriteSettings=4]="WriteSettings",e[e.GetContext=5]="GetContext",e[e.SendMessage=6]="SendMessage",e[e.MessageParent=7]="MessageParent",e[e.SendMessage2=8]="SendMessage2",e[e.MessageParent2=9]="MessageParent2",e[e.CloseSdxDialog=10]="CloseSdxDialog",e[e.ResizeSdxDialog=11]="ResizeSdxDialog"}(t.MethodId||(t.MethodId={}));var n=function(){function t(e){this.hostScriptProxy=e,this.useFullDialogAPI=!!window._enableFullDialogAPI,this.osfSupportsDialogOrigin=!!window._osfEnableDialogOrigin}return t.prototype.execute=function(t,n,r){var o={id:t,apiArgs:n};this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,e.Webkit.MethodId.Execute,o,(function(t){if(r){var n=[];if(e.OUtil.isArray(t))for(var o=0;o<t.length;o++){var i=t[o];e.OUtil.isArray(i)&&(i=new e.WebkitSafeArray(i)),n.unshift(i)}return r.apply(null,n)}}))},t.prototype.registerEvent=function(t,n,r,o,i){this.hostScriptProxy.registerEvent(e.Webkit.MessageHandlerName,e.Webkit.MethodId.RegisterEvent,t,r,(function(t){var n=t,r=0;e.OUtil.isArray(t)&&t.length>=2&&(n=t[0],r=t[1]),o&&o(r,new e.WebkitSafeArray(n))}),(function(t){if(i)return i(new e.WebkitSafeArray(t))}))},t.prototype.unregisterEvent=function(t,n,r,o){this.hostScriptProxy.unregisterEvent(e.Webkit.MessageHandlerName,e.Webkit.MethodId.UnregisterEvent,t,r,(function(t){return o(new e.WebkitSafeArray(t))}))},t.prototype.messageParent=function(t){var n,r;if(this.osfSupportsDialogOrigin&&t[e.ParameterNames.TargetOrigin]?(n=this.useFullDialogAPI?JSON.stringify(t):t[e.ParameterNames.MessageToParent],r=e.Webkit.MethodId.MessageParent2):(n=t[e.ParameterNames.MessageToParent],r=e.Webkit.MethodId.MessageParent),this.useFullDialogAPI)this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,r,n,null);else{var o={dialogMessage:{messageType:0,messageContent:n}},i=r==e.Webkit.MethodId.MessageParent2?t[e.ParameterNames.TargetOrigin]:window.location.origin;window.opener.postMessage(JSON.stringify(o),i)}},t.prototype.openDialog=function(n,r,o,i,a){if(this.useFullDialogAPI)this.registerEvent(n,r,o,i,a);else if(!t.popup||t.popup.closed){t.OpenDialogCallback=void 0;var s=JSON.parse(o),l=s.url;if(l){var u=l.split("#"),c="?";u[0].indexOf("?")>-1&&(c="&");var p="width="+screen.width*s.width/100+", height="+screen.height*s.height/100;u[0]=u[0].concat(c).concat("action=displayDialog");var f=u.join("#");t.popup=window.open(f,"",p),t.DialogEventListener=function(t){if(t.origin==window.location.origin)try{var r=JSON.parse(t.data);r.dialogMessage&&i(n,[0,r.dialogMessage.messageContent,t.origin])}catch(n){e.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},t.OpenDialogCallback=function(e){0==e&&(window.addEventListener("message",t.DialogEventListener),t.interval=window.setInterval(h,1e3),t.NotifyError=function(e){i(n,[e])}),a(e)}}else a(12003)}else a(12007);function h(){try{(null==t.popup||t.popup.closed)&&(window.clearInterval(t.interval),window.removeEventListener("message",t.DialogEventListener),t.NotifyError=null,t.popup=null,i(n,[12006]))}catch(t){e.Utility.trace("Error happened when popup window closed.")}}},t.prototype.closeDialog=function(e,n,r,o){this.useFullDialogAPI?this.unregisterEvent(e,n,r,o):t.popup?(t.interval&&window.clearInterval(t.interval),t.popup.close(),t.popup=null,window.removeEventListener("message",t.DialogEventListener),t.NotifyError=null,o(0)):o(5001)},t.prototype.sendMessage=function(t){var n,r;this.osfSupportsDialogOrigin&&t[e.ParameterNames.TargetOrigin]?(n=JSON.stringify(t),r=e.Webkit.MethodId.SendMessage2):(n=t[e.ParameterNames.MessageContent],r=e.Webkit.MethodId.SendMessage,!isNaN(parseFloat(n))&&isFinite(n)&&(n=n.toString())),this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,r,n,null)},t.prototype.closeSdxDialog=function(t){var n=[t],r=e.Webkit.MethodId.CloseSdxDialog;this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,r,n,null)},t.prototype.resizeSdxDialog=function(t,n){var r=[t,n],o=e.Webkit.MethodId.ResizeSdxDialog;this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,o,r,null)},t}();t.WebkitHostController=n}(e.Webkit||(e.Webkit={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(e,n,r,o){var i=t.call(this,e,n,r,o)||this;return i._serializedSettings={},i._serializedHostSettings={},i.initializeWebkitMessaging(),i}return __extends(n,t),n.prototype.initializeWebkitMessaging=function(){e.ScriptMessaging=OSFWebkit.ScriptMessaging},n.prototype.getAppContext=function(t,n,r){var o,i=this;o=this._hostInfo.isDialog&&window.webkit.messageHandlers[e.Webkit.PopupMessageHandlerName]?e.Webkit.PopupMessageHandlerName:e.Webkit.MessageHandlerName,e.ScriptMessaging.GetScriptMessenger().invokeMethod(o,e.Webkit.MethodId.GetContext,[],(function(t){var r,o=e.Webkit.AppContextProperties,a=t[o.AppType],s=t[o.Settings];if(s&&2===s.length)for(var l=s[0],u=s[1],c=0;c<l.length;c++)i._serializedSettings[l[c]]=u[c];var p=t[o.HostSettings];if(p&&2===p.length)for(l=p[0],u=p[1],c=0;c<l.length;c++)i._serializedHostSettings[l[c]]=u[c];var f=t[o.SolutionReferenceId],h=t[o.MajorVersion],d=t[o.MinorVersion],y=t[o.AppCapabilities],m=t[o.APPUILocale],g=t[o.AppDataLocale],_=t[o.DocumentUrl],b=t[o.ActivationMode],v=t[o.ControlIntegrationLevel],O=t[o.SolutionToken];O=O?O.toString():"";var C,S=t[o.CorrelationId],P=t[o.InstanceId],A=t[o.TouchEnabled],E=t[o.CommerceAllowed],R=t[o.RequirementMatrix],x=t[o.HostCustomMessage],T=t[o.HostFullVersion],I=t[o.InitialDisplayMode],w=t[o.FeatureGates];if(w)try{C=JSON.parse(w)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception trying to parse FeatureGates."+t)}var F=null;if(t[o.OfficeThemeInfo])try{F=JSON.parse(t[o.OfficeThemeInfo])}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+t)}var N={};if(F){var D={bodyBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},bodyForegroundColor:{name:"bodyForegroundColor",convertToHex:!0},controlBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},controlForegroundColor:{name:"controlForegroundColor",convertToHex:!0},primaryFontColor:{name:"bodyForegroundColor",convertToHex:!0},primaryBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},secondaryFontColor:{name:"controlForegroundColor",convertToHex:!0},secondaryBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},fluentThemeData:{name:"fluentThemeData",convertToHex:!1}};for(var k in F){var j=!1,U=k;D[k]&&(U=D[k].name,j=D[k].convertToHex),N[U]=j?e.OUtil.convertIntToCssHexColor(F[k]):F[k]}}r=new e.OfficeAppContext(f,a,h,m,g,_,y,(function(){return i._serializedSettings}),b,v,O,S,P,A,E,d,R,x,T,void 0,void 0,void 0,void 0,void 0,C,N,I,void 0,void 0,(function(){return i._serializedHostSettings}),!1,void 0,void 0),n(r)}))},n.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new e.Webkit.WebkitHostController(e.ScriptMessaging.GetScriptMessenger())),this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new e.SafeArrayAsyncMethodExecutor(this.createClientHostController())},n.prototype.createClientSettingsManager=function(){return new e.WebkitClientSettingsManager(this,e.ScriptMessaging.GetScriptMessenger())},n}(e.InitializationHelper);e.WebkitInitializationHelper=t}(OSF||(OSF={})),function(e){var t=function(){function t(e){this.data=e,this.safeArrayFlag=this.isSafeArray(e)}return t.prototype.dimensions=function(){var e=0;return this.safeArrayFlag?e=this.data[0][0]:this.isArray()&&(e=2),e},t.prototype.getItem=function(){var e=null;e=this.safeArrayFlag?this.toArray():this.data;for(var t=0;t<arguments.length;t++)e=e[arguments[t]];return e},t.prototype.lbound=function(e){return 0},t.prototype.ubound=function(t){var n=0;if(this.safeArrayFlag)n=this.data[0][t];else if(this.isArray()){if(1==t)return this.data.length;if(2==t){if(e.OUtil.isArray(this.data[0]))return this.data[0].length;if(null!=this.data[0])return 1}}return n},t.prototype.toArray=function(){if(0==this.isArray())return this.data;for(var e=[],n=this.safeArrayFlag?1:0;n<this.data.length;n++){var r=this.data[n];this.isSafeArray(r)?e.push(new t(r)):e.push(r)}return e},t.prototype.isArray=function(){return e.OUtil.isArray(this.data)},t.prototype.isSafeArray=function(t){var n=!1;if(e.OUtil.isArray(t)&&e.OUtil.isArray(t[0])){var r=t[0],o=r[0];if(r.length!=o+1)return!1;for(var i=1,a=1;a<r.length;a++){var s=r[a];if(0==isFinite(s))return!1;i*=s}n=++i==t.length}return n},t}();e.WebkitSafeArray=t}(OSF||(OSF={})),function(e){!function(e){var t=null;e.agaveHostCallback=function(e,n){t.agaveHostCallback(e,n)},e.agaveHostEventCallback=function(e,n){t.agaveHostEventCallback(e,n)},e.GetScriptMessenger=function(){return null==t&&(t=r.IsSupportedByHost()?new r:new o("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback")),t};var n=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},r=function(){function e(){this.eventHandlers=[]}return e.IsSupportedByHost=function(){return!!window._osfHostAPI},e.prototype.invokeMethod=function(e,t,n,r){window._osfHostAPI(e,this.constructMessagingArgs(t,n),(function(e){var t=r(e);return void 0===t||!0===t}))},e.prototype.registerEvent=function(e,t,n,r,o,i){var a={id:n,targetId:r},s=window._osfHostRegisterEvent(e,this.constructMessagingArgs(t,a),(function(e){return o(e),!1}),(function(e){return i(e),!0}));this.eventHandlers.push({targetId:r,dispId:n,callbackId:s.eventCallbackId})},e.prototype.unregisterEvent=function(e,t,n,r,o){var i={id:n,targetId:r};window._osfHostAPI(e,this.constructMessagingArgs(t,i),(function(e){return o(e),!0}));for(var a=this.eventHandlers.length-1;a>=0;a--){var s=this.eventHandlers[a];s.dispId===n&&s.targetId===r&&(this.eventHandlers.splice(a,1),window._osfHostUnregisterCallback(s.callbackId))}},e.prototype.agaveHostCallback=function(e,t){},e.prototype.agaveHostEventCallback=function(e,t){},e.prototype.constructMessagingArgs=function(e,t){return{params:t,methodId:e}},e}(),o=function(){function e(t,n){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=t,this.eventCallbackFunctionName=n,this.conversationId=e.getCurrentTimeMS().toString()}return e.prototype.invokeMethod=function(e,t,n,r){this.postWebkitMessage({},e,t,n,r)},e.prototype.registerEvent=function(e,t,r,o,i,a){var s={eventCallbackFunction:this.eventCallbackFunctionName},l={id:r,targetId:o},u=this.postWebkitMessage(s,e,t,l,a);this.eventHandlerList[u]=new n(r,o,i)},e.prototype.unregisterEvent=function(e,t,n,r,o){var i={id:n,targetId:r};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==r&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,i,o)},e.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var r=n(t);void 0!==r&&!0!==r||delete this.callbackList[e]}},e.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},e.prototype.postWebkitMessage=function(t,n,r,o,i){t.methodId=r,t.params=o;var a="";i&&(a=this.generateCorrelationId(),this.callbackList[a]=i,t.callbackId=a,t.callbackFunction=this.asyncMethodCallbackFunctionName);var s=function(){window.webkit.messageHandlers[n].postMessage(JSON.stringify(t))},l=e.getCurrentTimeMS();return null==this.lastMessageTimestamp||l-this.lastMessageTimestamp>=e.MESSAGE_TIME_DELTA?(s(),this.lastMessageTimestamp=l):(this.lastMessageTimestamp+=e.MESSAGE_TIME_DELTA,setTimeout((function(){s()}),this.lastMessageTimestamp-l)),a},e.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},e.getCurrentTimeMS=function(){return(new Date).getTime()},e.MESSAGE_TIME_DELTA=10,e}()}(e.ScriptMessaging||(e.ScriptMessaging={}))}(OSFWebkit||(OSFWebkit={})),function(e){var t=function(){function t(e,t){this._initializationHelper=e,this._scriptMessager=t}return t.prototype.read=function(e){this._initializationHelper.getAppContext(null,(function(t){if(e){var n=t.get_settingsFunc()();e(0,n)}}),(function(t){e&&e(5001,{})}))},t.prototype.write=function(t,n){var r={},o=[],i=[];for(var a in t)o.push(a),i.push(t[a]);r.keys=o,r.values=i;this._scriptMessager.invokeMethod(e.WebView.MessageHandlerName,e.WebView.MethodId.WriteSettings,r,(function(e){n&&n(e[0])}))},t}();e.WebViewClientSettingsManager=t}(OSF||(OSF={})),function(e){!function(t){t.MessageHandlerName="Agave",t.PopupMessageHandlerName="WefPopupHandler",function(e){e[e.Settings=0]="Settings",e[e.SolutionReferenceId=1]="SolutionReferenceId",e[e.AppType=2]="AppType",e[e.MajorVersion=3]="MajorVersion",e[e.MinorVersion=4]="MinorVersion",e[e.RevisionVersion=5]="RevisionVersion",e[e.APIVersionSequence=6]="APIVersionSequence",e[e.AppCapabilities=7]="AppCapabilities",e[e.APPUILocale=8]="APPUILocale",e[e.AppDataLocale=9]="AppDataLocale",e[e.BindingCount=10]="BindingCount",e[e.DocumentUrl=11]="DocumentUrl",e[e.ActivationMode=12]="ActivationMode",e[e.ControlIntegrationLevel=13]="ControlIntegrationLevel",e[e.SolutionToken=14]="SolutionToken",e[e.APISetVersion=15]="APISetVersion",e[e.CorrelationId=16]="CorrelationId",e[e.InstanceId=17]="InstanceId",e[e.TouchEnabled=18]="TouchEnabled",e[e.CommerceAllowed=19]="CommerceAllowed",e[e.RequirementMatrix=20]="RequirementMatrix",e[e.OfficeThemeInfo=21]="OfficeThemeInfo"}(t.AppContextProperties||(t.AppContextProperties={})),function(e){e[e.Execute=1]="Execute",e[e.RegisterEvent=2]="RegisterEvent",e[e.UnregisterEvent=3]="UnregisterEvent",e[e.WriteSettings=4]="WriteSettings",e[e.GetContext=5]="GetContext",e[e.OnKeydown=6]="OnKeydown",e[e.AddinInitialized=7]="AddinInitialized",e[e.OpenWindow=8]="OpenWindow",e[e.MessageParent=9]="MessageParent",e[e.SendMessage=10]="SendMessage"}(t.MethodId||(t.MethodId={}));var n=function(){function t(e){this.hostScriptProxy=e}return t.prototype.execute=function(t,n,r){var o=n;null==o&&(o=[]);var i={id:t,apiArgs:o};this.hostScriptProxy.invokeMethod(e.WebView.MessageHandlerName,e.WebView.MethodId.Execute,i,(function(t){var n=t;if(e.OUtil.isArray(t)&&t.length>=2){t[0];n=t[1]}if(r)return r(new e.WebkitSafeArray(n))}))},t.prototype.registerEvent=function(t,n,r,o,i){this.hostScriptProxy.registerEvent(e.WebView.MessageHandlerName,e.WebView.MethodId.RegisterEvent,t,r,(function(t){var n=t,r=0;e.OUtil.isArray(t)&&t.length>=2&&(r=t[0],n=t[1]),o&&o(r,new e.WebkitSafeArray(n))}),(function(t){if(i)return i(new e.WebkitSafeArray(t))}))},t.prototype.unregisterEvent=function(t,n,r,o){this.hostScriptProxy.unregisterEvent(e.WebView.MessageHandlerName,e.WebView.MethodId.UnregisterEvent,t,r,(function(t){return o(new e.WebkitSafeArray(t))}))},t.prototype.messageParent=function(t){var n={dialogMessage:{messageType:0,messageContent:t[e.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(n),window.location.origin)},t.prototype.openDialog=function(n,r,o,i,a){var s=JSON.parse(o),l=s.url;if(l){var u=l.split("#"),c="?";l.indexOf("?")>-1&&(c="&");var p="width="+screen.width*s.width/100+", height="+screen.height*s.height/100;u[0]=u[0].concat(c).concat("action=displayDialog");var f,h=u.join("#");t.popup=window.open(h,"",p),window.addEventListener("message",(function(r){if(r.source==t.popup)try{var o=JSON.parse(r.data);o.dialogMessage&&i(n,[0,o.dialogMessage.messageContent])}catch(t){e.Utility.trace("messages received cannot be handled. Message:"+r.data)}})),f=window.setInterval((function(){try{(null==t.popup||t.popup.closed)&&(window.clearInterval(f),i(n,[12006]))}catch(t){e.Utility.trace("Error happened when popup window closed.")}}),1e3),a(0)}},t.prototype.closeDialog=function(e,n,r,o){t.popup?(t.popup.close(),t.popup=null,o(0)):o(5001)},t.prototype.sendMessage=function(t){var n=t[e.ParameterNames.MessageContent];!isNaN(parseFloat(n))&&isFinite(n)&&(n=n.toString()),this.hostScriptProxy.invokeMethod(e.WebView.MessageHandlerName,e.WebView.MethodId.SendMessage,n,null)},t.prototype.closeSdxDialog=function(t){throw e.Utility.createNotImplementedException()},t.prototype.resizeSdxDialog=function(t,n){throw e.Utility.createNotImplementedException()},t}();t.WebViewHostController=n}(e.WebView||(e.WebView={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(e,n,r,o){var i=t.call(this,e,n,r,o)||this;return i._serializedSettings={},i.initializeWebViewMessaging(),i}return __extends(n,t),n.prototype.initializeWebViewMessaging=function(){e.ScriptMessaging=e.WebView.ScriptMessaging},n.prototype.getAppContext=function(t,n,r){var o,i=this;o=this._hostInfo.isDialog?e.WebView.PopupMessageHandlerName:e.WebView.MessageHandlerName,e.ScriptMessaging.GetScriptMessenger().invokeMethod(o,e.WebView.MethodId.GetContext,[],(function(t){var r,o=e.Webkit.AppContextProperties,a=t[o.AppType],s=t[o.Settings];if(s&&2===s.length)for(var l=s[0],u=s[1],c=0;c<l.length;c++)i._serializedSettings[l[c]]=u[c];var p=t[o.SolutionReferenceId],f=t[o.MajorVersion],h=t[o.MinorVersion],d=t[o.AppCapabilities],y=t[o.APPUILocale],m=t[o.AppDataLocale],g=t[o.DocumentUrl],_=t[o.ActivationMode],b=t[o.ControlIntegrationLevel],v=t[o.SolutionToken];v=v?v.toString():"";var O=t[o.CorrelationId],C=t[o.InstanceId],S=t[o.TouchEnabled],P=t[o.CommerceAllowed],A=t[o.RequirementMatrix],E=t[o.HostCustomMessage],R=t[o.HostFullVersion],x=t[o.InitialDisplayMode];r=new e.OfficeAppContext(p,a,f,y,m,g,d,(function(){return i._serializedSettings}),_,b,v,O,C,S,P,h,A,E,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,x,void 0,void 0,void 0,!1,void 0,void 0),n(r)}))},n.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new e.WebView.WebViewHostController(e.ScriptMessaging.GetScriptMessenger())),this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new e.SafeArrayAsyncMethodExecutor(this.createClientHostController())},n.prototype.createClientSettingsManager=function(){return new e.WebViewClientSettingsManager(this,e.ScriptMessaging.GetScriptMessenger())},n}(e.InitializationHelper);e.WebViewInitializationHelper=t}(OSF||(OSF={})),function(e){var t;!function(e){!function(e){e[e.MethodCallback=0]="MethodCallback",e[e.EventCallback=1]="EventCallback"}(e.CallbackType||(e.CallbackType={}));var t=function(e,t,n){this.callbackType=e,this.callbackId=t,this.params=n};e.CallbackData=t}(t||(t={})),function(n){var r=function(){function n(){}return n.getInstance=function(){return null==n.uniqueInstance&&(n.uniqueInstance=new n),n.uniqueInstance},n.prototype.postMessage=function(e,t){agaveHost.postMessage(t)},n.prototype.ReceiveMessage=function(n){switch(n.callbackType){case t.CallbackType.MethodCallback:e.WebView.ScriptMessaging.agaveHostCallback(n.callbackId,n.params);break;case t.CallbackType.EventCallback:e.WebView.ScriptMessaging.agaveHostEventCallback(n.callbackId,n.params)}},n}();n.Poster=r}(e.Android||(e.Android={})),function(n){var r=function(){function n(){window.addEventListener("message",this.OnReceiveMessage.bind(this))}return n.prototype.postMessage=function(e,t){window.parent.postMessage(t,"*")},n.prototype.OnReceiveMessage=function(n){if(n.source==window.parent&&window.parent==window.top&&n.origin.startsWith("ms-appx-web://")){var r;try{r=JSON.parse(n.data)}catch(e){return}switch(r.callbackType){case t.CallbackType.MethodCallback:e.WebView.ScriptMessaging.agaveHostCallback(r.callbackId,JSON.parse(r.params));break;case t.CallbackType.EventCallback:e.WebView.ScriptMessaging.agaveHostEventCallback(r.callbackId,JSON.parse(r.params))}}},n}();n.Poster=r}(e.WinRT||(e.WinRT={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){var n=null;t.agaveHostCallback=function(e,t){n.agaveHostCallback(e,t)},t.agaveHostEventCallback=function(e,t){n.agaveHostEventCallback(e,t)},t.GetScriptMessenger=function(){if(null==n){var t=e._OfficeAppFactory.getHostInfo().hostPlatform;if(t===e.HostInfoPlatform.android)n=new o("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback",e.Android.Poster.getInstance());else{if(t!==e.HostInfoPlatform.winrt)throw e.Utility.createNotImplementedException();n=new o("agaveHostCallback","agaveHostEventCallback",new e.WinRT.Poster)}}return n};var r=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},o=function(){function e(t,n,r){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=t,this.eventCallbackFunctionName=n,this.poster=r,this.conversationId=e.getCurrentTimeMS().toString()}return e.prototype.invokeMethod=function(e,t,n,r){this.postMessage({},e,t,n,r)},e.prototype.registerEvent=function(e,t,n,o,i,a){var s={eventCallbackFunction:this.eventCallbackFunctionName},l={id:n,targetId:o},u=this.postMessage(s,e,t,l,a);this.eventHandlerList[u]=new r(n,o,i)},e.prototype.unregisterEvent=function(e,t,n,r,o){var i={id:n,targetId:r};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==r&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,i,o)},e.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var r=n(t);void 0!==r&&!0!==r||delete this.callbackList[e]}},e.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},e.prototype.postMessage=function(e,t,n,r,o){var i=this.generateCorrelationId();return this.callbackList[i]=o,e.methodId=n,e.params=r,e.callbackId=i,e.callbackFunction=this.asyncMethodCallbackFunctionName,this.poster.postMessage(t,JSON.stringify(e)),i},e.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},e.getCurrentTimeMS=function(){return(new Date).getTime()},e.MESSAGE_TIME_DELTA=10,e}()}(t.ScriptMessaging||(t.ScriptMessaging={}))}(e.WebView||(e.WebView={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.messageParent=function(t){if(e.Utility.externalNativeFunctionExists(typeof window.external.MessageParent2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageParent2(JSON.stringify(t),OsfOMToken):window.external.MessageParent2(JSON.stringify(t));else{var n=t[e.ParameterNames.MessageToParent];window.external.MessageParent(n)}},n.prototype.openDialog=function(e,t,n,r,o){this.registerEvent(e,t,n,r,o)},n.prototype.closeDialog=function(e,t,n,r){this.unregisterEvent(e,t,n,r)},n.prototype.sendMessage=function(t){if(e.Utility.externalNativeFunctionExists(typeof window.external.MessageChild2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageChild2(JSON.stringify(t),OsfOMToken):window.external.MessageChild2(JSON.stringify(t));else{var n=t[e.ParameterNames.MessageContent];window.external.MessageChild(n)}},n.prototype.closeSdxDialog=function(t){e.Utility.externalNativeFunctionExists(typeof window.external.closeSdxDialog)&&window.external.closeSdxDialog(t)},n.prototype.resizeSdxDialog=function(t,n){e.Utility.externalNativeFunctionExists(typeof window.external.resizeSdxDialog)&&window.external.resizeSdxDialog(t,n)},n}(e.RichClientHostController);e.Win32RichClientHostController=t}(OSF||(OSF={})),function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.openDialog=function(t,r,o,i,a){if(!n.popup||n.popup.closed){window.dialogAPIErrorCode=void 0;var s=JSON.parse(o),l=s.url;if(l){var u=l.split("#"),c="?";u[0].indexOf("?")>-1&&(c="&");var p="width="+screen.width*s.width/100+", height="+screen.height*s.height/100;u[0]=u[0].concat(c).concat("action=displayDialog");var f=u.join("#");if(n.popup=window.open(f,"",p),n.DialogEventListener=function(r){if(r.source==n.popup)try{var o=JSON.parse(r.data);o.dialogMessage&&i(t,[0,o.dialogMessage.messageContent])}catch(t){e.Utility.trace("messages received cannot be handlered. Message:"+r.data)}},null!=n.popup&&null==window.dialogAPIErrorCode)window.addEventListener("message",n.DialogEventListener),n.interval=window.setInterval((function(){try{(null==n.popup||n.popup.closed)&&(window.clearInterval(n.interval),window.removeEventListener("message",n.DialogEventListener),n.NotifyError=null,i(t,[12006]))}catch(t){e.Utility.trace("Error happened when popup window closed.")}}),500),n.NotifyError=function(e){i(t,[e])},a(0);else{var h=5001;window.dialogAPIErrorCode&&(h=window.dialogAPIErrorCode),a(h)}}else a(12003)}else a(12007)},n.prototype.messageParent=function(t){var n={dialogMessage:{messageType:0,messageContent:t[e.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(n),window.location.origin)},n.prototype.closeDialog=function(e,t,r,o){n.popup?(n.interval&&window.clearInterval(n.interval),n.popup.close(),n.popup=null,window.removeEventListener("message",n.DialogEventListener),n.NotifyError=null,o(0)):o(5001)},n}(e.Webkit.WebkitHostController);e.MacRichClientHostController=t}(OSF||(OSF={})),function(e){var t;!function(e){!function(e){e.Init=function(){return function(){"use strict";function e(e){return"function"==typeof e}var t,n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,o=function(e,n){f[r]=e,f[r+1]=n,2===(r+=2)&&(t?t(h):l())};var i=("undefined"!=typeof window?window:void 0)||{},a=(i.MutationObserver||i.WebKitMutationObserver,"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)),s="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var l,u,c,p,f=new Array(1e3);function h(){for(var e=0;e<r;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}r=0}function d(){}a?(c=process.nextTick,p=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray(p)&&"0"===p[1]&&"10"===p[2]&&(c=setImmediate),l=function(){c(h)}):s?((u=new MessageChannel).port1.onmessage=h,l=function(){u.port2.postMessage(0)}):l=function(){setTimeout(h,1)};var y=void 0,m=new P;function g(t,n){if(n.constructor===t.constructor)!function(e,t){1===t._state?v(e,t._result):2===t._state?O(e,t._result):C(t,void 0,(function(t){_(e,t)}),(function(t){O(e,t)}))}(t,n);else{var r=function(e){try{return e.then}catch(e){return m.error=e,m}}(n);r===m?O(t,m.error):void 0===r?v(t,n):e(r)?function(e,t,n){o((function(e){var r=!1,o=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?_(e,n):v(e,n))}),(function(t){r||(r=!0,O(e,t))}),e._label);!r&&o&&(r=!0,O(e,o))}),e)}(t,n,r):v(t,n)}}function _(e,t){var n;e===t?O(e,new TypeError("You cannot resolve a promise with itself")):"function"==typeof(n=t)||"object"==typeof n&&null!==n?g(e,t):v(e,t)}function b(e){e._onerror&&e._onerror(e._result),S(e)}function v(e,t){e._state===y&&(e._result=t,e._state=1,0!==e._subscribers.length&&o(S,e))}function O(e,t){e._state===y&&(e._state=2,e._result=t,o(b,e))}function C(e,t,n,r){var i=e._subscribers,a=i.length;e._onerror=null,i[a]=t,i[a+1]=n,i[a+2]=r,0===a&&e._state&&o(S,e)}function S(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,o,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?E(n,r,o,i):o(i);e._subscribers.length=0}}function P(){this.error=null}var A=new P;function E(t,n,r,o){var i,a,s,l,u=e(r);if(u){if((i=function(e,t){try{return e(t)}catch(e){return A.error=e,A}}(r,o))===A?(l=!0,a=i.error,i=null):s=!0,n===i)return void O(n,new TypeError("A promises callback cannot return that same promise."))}else i=o,s=!0;n._state!==y||(u&&s?_(n,i):l?O(n,a):1===t?v(n,i):2===t&&O(n,i))}function R(e,t){var n=this;n._instanceConstructor=e,n.promise=new e(d),n._validateInput(t)?(n._input=t,n.length=t.length,n._remaining=t.length,n._init(),0===n.length?v(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&v(n.promise,n._result))):O(n.promise,n._validationError())}R.prototype._validateInput=function(e){return n(e)},R.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},R.prototype._init=function(){this._result=new Array(this.length)};var x=R;R.prototype._enumerate=function(){for(var e=this,t=e.length,n=e.promise,r=e._input,o=0;n._state===y&&o<t;o++)e._eachEntry(r[o],o)},R.prototype._eachEntry=function(e,t){var n,r=this,o=r._instanceConstructor;"object"==typeof(n=e)&&null!==n?e.constructor===o&&e._state!==y?(e._onerror=null,r._settledAt(e._state,t,e._result)):r._willSettleAt(o.resolve(e),t):(r._remaining--,r._result[t]=e)},R.prototype._settledAt=function(e,t,n){var r=this,o=r.promise;o._state===y&&(r._remaining--,2===e?O(o,n):r._result[t]=n),0===r._remaining&&v(o,r._result)},R.prototype._willSettleAt=function(e,t){var n=this;C(e,void 0,(function(e){n._settledAt(1,t,e)}),(function(e){n._settledAt(2,t,e)}))};var T=function(e){return new x(this,e).promise};var I=function(e){var t=new this(d);if(!n(e))return O(t,new TypeError("You must pass an array to race.")),t;var r=e.length;function o(e){_(t,e)}function i(e){O(t,e)}for(var a=0;t._state===y&&a<r;a++)C(this.resolve(e[a]),void 0,o,i);return t};var w=function(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(d);return _(t,e),t};var F=function(e){var t=new this(d);return O(t,e),t},N=0;var D=k;function k(t){this._id=N++,this._state=void 0,this._result=void 0,this._subscribers=[],d!==t&&(e(t)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof k||function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}(),function(e,t){try{t((function(t){_(e,t)}),(function(t){O(e,t)}))}catch(t){O(e,t)}}(this,t))}return k.all=T,k.race=I,k.resolve=w,k.reject=F,k._setScheduler=function(e){t=e},k._setAsap=function(e){o=e},k._asap=o,k.prototype={constructor:k,then:function(e,t){var n=this,r=n._state;if(1===r&&!e||2===r&&!t)return this;var i=new this.constructor(d),a=n._result;if(r){var s=arguments[r-1];o((function(){E(r,i,s,a)}))}else C(n,i,e,t);return i},catch:function(e){return this.then(null,e)}},D}.call(this)}}(e.PromiseImpl||(e.PromiseImpl={}))}(e._Internal||(e._Internal={})),function(e){e.OfficePromise=function(){if("undefined"==typeof window&&"function"==typeof Promise)return Promise;if("undefined"!=typeof window){if(window.Promise)return window.Promise;var t=e.PromiseImpl.Init();return window.Promise=t,t}}()}(t=e._Internal||(e._Internal={})),e.OfficePromise=t.OfficePromise,e.Promise=e.OfficePromise}(Office||(Office={})),function(e){!function(t){var n,r=e.OUtil.Guid.generateNewGuid(),o=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i"),i=!1,a="PRIVATE";t.enableTelemetry=!0;var s=function(){};t.AppInfo=s;var l=function(){function t(){this.clientIDKey="Office API client",this.logIdSetKey="Office App Log Id Set"}return t.prototype.getClientId=function(){var t=this.getValue(this.clientIDKey);return(!t||t.length<=0||t.length>40)&&(t=e.OUtil.Guid.generateNewGuid(),this.setValue(this.clientIDKey,t)),t},t.prototype.getValue=function(t){var n=e.OUtil.getLocalStorage(),r="";return n&&(r=n.getItem(t)),r},t.prototype.setValue=function(t,n){var r=e.OUtil.getLocalStorage();r&&r.setItem(t,n)},t}();function u(e){return e&&(e=e.replace(/[{}]/g,"").toLowerCase()),e||""}function c(e){try{return JSON.parse(e)}catch(t){return e}}function p(){n&&(i||OTel.OTelLogger.onTelemetryLoaded((function(){var t=[],r=n.isMos?1:0;t=t.concat([oteljs.makeStringDataField("Browser",n.browser),oteljs.makeInt64DataField("AppSizeWidth",window.innerWidth),oteljs.makeInt64DataField("AppSizeHeight",window.innerHeight),oteljs.makeInt64DataField("IsMOS",r)]),e.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")&&n.launchSource&&n.launchReason&&(t.push(oteljs.makeStringDataField("LaunchSource",n.launchSource)),t.push(oteljs.makeStringDataField("LaunchReason",n.launchReason))),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AppActivatedX",dataFields:t,eventFlags:{dataCategories:2,diagnosticLevel:110,samplingPolicy:191}})})))}function f(e,t){}function h(){var t=0!=(e._OfficeAppFactory.getHostInfo().flags&e.HostInfoFlags.PublicAddin);return t||!!n&&y(e._OfficeAppFactory.getHostInfo().hostPlatform,n.hostVersion)}function d(e,t){return h()||t!==e?t:a}function y(t,n){var r=!1,o=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(n);if(o){var i=parseInt(o[1]),a=parseInt(o[2]),s=parseInt(o[3]);t==e.HostInfoPlatform.win32?(i<16||16==i&&s<14225)&&(r=!0):t==e.HostInfoPlatform.mac&&(i<16||16==i&&(a<52||52==a&&s<808))&&(r=!0)}return r}function m(){return 0!=(e._OfficeAppFactory.getHostInfo().flags&e.HostInfoFlags.IsMos)}t.initialize=function(p){if(t.enableTelemetry&&!n){n=new s,p.get_hostFullVersion()?n.hostVersion=p.get_hostFullVersion():n.hostVersion=p.get_appVersion(),n.appId=h()?p.get_id():a,n.marketplaceType=p._marketplaceType,n.host=""+p.get_appName(),n.browser=window.navigator.userAgent,n.correlationId=u(p.get_correlationId()),n.clientId=(new l).getClientId(),n.appInstanceId=p.get_appInstanceId(),n.appInstanceId&&(n.appInstanceId=u(n.appInstanceId),n.appInstanceId=d(p.get_id(),n.appInstanceId)),n.message=p.get_hostCustomMessage(),n.officeJSVersion=e.ConstantNames.FileVersion,n.hostJSVersion="NA",p._wacHostEnvironment&&(n.wacHostEnvironment=p._wacHostEnvironment);var f=p.get_isFromWacAutomation();null!=f&&(n.isFromWacAutomation=f.toString().toLowerCase());var y=p.get_docUrl();n.docUrl=o.test(y)?y:"";var g=location.href;if(g&&(n.isPreload=-1!==g.indexOf("preload=1"),g=g.split("?")[0].split("#")[0]),n.isMos=m(),e.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")){var _=p.get_settingsFunc()();_&&_.LaunchSource&&_.LaunchReason&&(n.launchSource=c(_.LaunchSource),n.launchReason=c(_.LaunchReason))}!function(t,n){n.assetId="",n.userId="";try{if(!e.Utility.isNullOrEmpty(t)){var r=decodeURIComponent(t),o=new DOMParser,i=void 0;if(e.LoadScriptHelper.trustedTypesOptIn()&&window.trustedTypes&&window.trustedTypes.createPolicy)i=window.trustedTypes.createPolicy("officejs-domparser",{createHTML:function(e){return e}}).createHTML(r);else i=r;var a=o.parseFromString(i,"text/xml"),s=a.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),l=a.getElementsByTagName("t")[0].attributes.getNamedItem("oid");s&&s.nodeValue?n.userId=s.nodeValue:l&&l.nodeValue&&(n.userId=l.nodeValue),n.assetId=a.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}}catch(e){}}(p.get_eToken(),n),n.sessionId=r,OTel.OTelLogger.initialize(n),n.isPreload?i=!0:t.onAppActivated()}},t.onAppActivated=p,t.onScriptDone=function(e,t,n,r){},t.onCallDone=function(e,t,n,r,o){},t.onMethodDone=function(e,t,n,r){},t.onPropertyDone=function(t,n){e.AppTelemetry.onCallDone("property",-1,t,n,0)},t.onCheckWACHost=function(e,t,n,r,o){},t.onEventDone=function(t,n){e.AppTelemetry.onCallDone("event",t,null,0,n)},t.onRegisterDone=function(t,n,r,o){e.AppTelemetry.onCallDone(t?"registerevent":"unregisterevent",n,null,r,o)},t.onAppClosed=function(e,t){},t.setOsfControlAppCorrelationId=function(e){u(e)},t.doAppInitializationLogging=f,t.logAppCommonMessage=function(e){},t.logAppException=function(e){},t.CallOnAppActivatedIfPending=function(){i&&(i=!1,p())},t.canSendAddinId=h,t.getCompliantAppInstanceId=d,t._isComplianceExceptedHost=y,t.isMos=m}(e.AppTelemetry||(e.AppTelemetry={}))}(OSF||(OSF={})),function(e){var t=function(){function t(){}return t.loaded=function(){return!(void 0===t.logger)},t.create=function(t){var n,r={id:t.appId,marketplaceType:t.marketplaceType,assetId:t.assetId,officeJsVersion:t.officeJSVersion,hostJsVersion:t.hostJSVersion,browserToken:t.clientId,instanceId:t.appInstanceId,sessionId:t.sessionId},o=oteljs.Contracts.Office.System.SDX.getFields("SDX",r);if("web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform)n=new e.SdxWacSink;else{if(!Office.context.requirements.isSetSupported("Telemetry","1.2"))return console.error("Cannot create telemetry sink successfully"),null;n=new e.RichApiSink,this.richApiSink=n}var i=new oteljs.SimpleTelemetryLogger(void 0,o);return i.addSink(n),i.setTenantToken("Office.Extensibility.OfficeJs","db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439",1755),oteljs.onNotification().addListener((function(e){OSF.Utility.debugLog(e.message())})),i},t.checkAndResolvePromises=function(){t.loaded()&&(t.promises.forEach((function(e){e()})),t.promises=[])},t.initialize=function(e){t.Enabled?Office.onReadyInternal().then((function(){t.loaded()||(OSF.Utility.debugLog("Creating OTelLogger"),t.logger=t.create(e),t.checkAndResolvePromises())})):t.promises=[]},t.sendTelemetryEvent=function(e){t.onTelemetryLoaded((function(){try{t.logger.sendTelemetryEvent(e)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}}))},t.sendNonStandardEvent=function(e,n){t.onTelemetryLoaded((function(){try{t.logger.sendNonStandardEvent(e,n)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}}))},t.flushTelemetryQueue=function(){var e=this;return new Office.Promise((function(n){t.onTelemetryLoaded((function(){e.richApiSink?e.richApiSink.flushTelemetryQueue().then((function(){n()})):n()}))}))},t.onTelemetryLoaded=function(e){t.Enabled&&(t.loaded()?e():t.promises.push(e))},t.promises=[],t.Enabled=!0,t}();e.OTelLogger=t}(OTel||(OTel={})),function(e){var t=function(){function e(){var e=this;this._requestIsPending=!0,this._telemetryQueue=[],this.pause(1e3).then((function(){var t=e._telemetryQueue;e._telemetryQueue=[],e._requestIsPending=!1,e.processTelemetryEvents(t)}))}return e.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push([e,1]),this._requestIsPending||this.processWorkBacklog()},e.prototype.sendNonStandardEvent=function(e,t){this._telemetryQueue.push([e,t]),this._requestIsPending||this.processWorkBacklog()},e.prototype.flushTelemetryQueue=function(){var e=this;return new Office.Promise((function(t){var n=e._telemetryQueue;e._telemetryQueue=[],e.processTelemetryEvents(n).then((function(){t()}))}))},e.prototype.processWorkBacklog=function(){var e=this;this._requestIsPending=!0;var t=this._telemetryQueue;this._telemetryQueue=[],this.processTelemetryEvents(t).then(this.waitAndProcessMore.bind(this)).catch((function(t){oteljs.logError(1,"RichApiSink Error",t),e.waitAndProcessMore.bind(e)()}))},e.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then((function(){e._telemetryQueue.length>0&&setTimeout((function(){return e.processWorkBacklog()}),0),e._requestIsPending=!1})).catch((function(){}))},e.prototype.processTelemetryEvents=function(e){var t=this,n=new OfficeCore.RequestContext;return e.forEach((function(e){var r=e[0],o=e[1];if(r.telemetryProperties){var i=[];t.addDataFields(i,r.dataFields);var a=r.eventContract?r.eventContract.name:"";r.eventContract&&t.addDataFields(i,r.eventContract.dataFields),1===o?n.telemetry.sendTelemetryEvent(r.telemetryProperties,r.eventName,a,oteljs.getEffectiveEventFlags(r),i):n.telemetry.sendNonStandardEvent(r.telemetryProperties,r.eventName,a,oteljs.getEffectiveEventFlags(r),i,o)}})),n.sync().catch((function(){oteljs.logNotification(2,1,(function(){return"RichApi telemetry call failed."}))}))},e.prototype.addDataFields=function(e,t){t&&t.forEach((function(t){e.push({name:t.name,value:t.value,classification:t.classification?t.classification:4,type:t.dataType})}))},e.prototype.pause=function(e){return new Office.Promise((function(t){return setTimeout(t,e)}))},e}();e.RichApiSink=t}(OTel||(OTel={})),function(e){var t=function(){function e(){}return e.prototype.sendTelemetryEvent=function(e,t){try{if(e.dataFields&&e.dataFields.filter((function(e){var t=e.classification;return t&&4!==t&&1!==t})).length>0)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},e.prototype.sendNonStandardEvent=function(e,t){try{if(1===t)throw new Error("Please call sendTelemetryEvent for events of type "+t);if(e.dataFields&&e.dataFields.filter((function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t&&2048!==t})).length>0)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendNonStandardEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},e}();e.SdxWacSink=t}(OTel||(OTel={})),function(e){var t,n=[];function r(e,t,n){OTel.OTelLogger.onTelemetryLoaded((function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionRequest",dataFields:[oteljs.makeStringDataField("invocationId",e),oteljs.makeStringDataField("methodPath",t),oteljs.makeStringDataField("params",n)],eventFlags:{dataCategories:2,diagnosticLevel:110}})}))}function o(e,t,n){OTel.OTelLogger.onTelemetryLoaded((function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionResponse",dataFields:[oteljs.makeStringDataField("invocationId",e),oteljs.makeBooleanDataField("isSuccessful",t),oteljs.makeStringDataField("error",n?JSON.stringify({name:n.name,code:n.code,message:n.message}):void 0)],eventFlags:{dataCategories:2,diagnosticLevel:110}})}))}try{for(var i=0,a=function(e){var t=Navigator.prototype[e];t&&(Navigator.prototype[e]=function(n,a,s){if(3===arguments.length&&Function.prototype.isPrototypeOf(a)&&Function.prototype.isPrototypeOf(s)){var l=(i++).toString();return r(l,"Navigator.prototype."+e,JSON.stringify([{audio:!!n.audio,video:!!n.video}])),t.apply(this,[n,function(){return o(l,!0),a.apply(this,arguments)},function(){return o(l,!1,arguments[0]),s.apply(this,arguments)}])}return t.apply(this,arguments)},n.push("Navigator.prototype."+e))},s=0,l=["getUserMedia","webkitGetUserMedia","mozGetUserMedia"];s<l.length;s++){a(l[s])}var u=MediaDevices.prototype.getUserMedia;u&&(MediaDevices.prototype.getUserMedia=function(e){var t=(i++).toString();return 1===arguments.length&&void 0!==e?(r(t,"MediaDevices.prototype.getUserMedia",JSON.stringify([{audio:!!e.audio,video:!!e.video}])),u.apply(this,arguments).then((function(){return o(t,!0),arguments[0]}),(function(){throw o(t,!1,arguments[0]),arguments[0]}))):u.apply(this,arguments)},n.push("MediaDevices.prototype.getUserMedia"));for(var c=function(e){var t=Geolocation.prototype[e];t&&(Geolocation.prototype[e]=function(n,a,s){for(var l=[],u=3;u<arguments.length;u++)l[u-3]=arguments[u];var c=(i++).toString(),p=!1;r(c,"Geolocation.prototype."+e,JSON.stringify([]));var f=Function.prototype.isPrototypeOf(n)?function(){return p||(o(c,!0),p=!0),n.apply(this,arguments)}:n,h=Function.prototype.isPrototypeOf(a)?function(){return p||(o(c,!1,arguments[0]),p=!0),a.apply(this,arguments)}:a;return t.apply(this,[f,h,s].concat(l))},n.push("Geolocation.prototype."+e))},p=0,f=["getCurrentPosition","watchPosition"];p<f.length;p++){c(f[p])}}catch(e){t=e.toString()}OTel.OTelLogger.onTelemetryLoaded((function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionHookInstall",dataFields:[oteljs.makeStringDataField("hooksInstalled",JSON.stringify(n)),oteljs.makeStringDataField("error",t)],eventFlags:{dataCategories:2,diagnosticLevel:110}})}))}(Office||(Office={})),function(e){!function(e){!function(e){e.FeatureGates={},e.EventType=OSF.EventType,e.sendTelemetryEvent=function(e){OTel.OTelLogger.sendTelemetryEvent(e)},e.sendNonStandardEvent=function(e,t){OTel.OTelLogger.sendNonStandardEvent(e,t)},e.flushTelemetryQueue=function(){return OTel.OTelLogger.flushTelemetryQueue()},e.telemetrySink=OTel.OTelLogger}(e.WebExtension||(e.WebExtension={}))}(e.Office||(e.Office={}))}(Microsoft||(Microsoft={})),function(e){e.sendTelemetryEvent=function(e){Microsoft.Office.WebExtension.sendTelemetryEvent(e)},e.sendNonStandardEvent=function(e,t){Microsoft.Office.WebExtension.sendNonStandardEvent(e,t)},e.flushTelemetryQueue=function(){return Microsoft.Office.WebExtension.flushTelemetryQueue()},e.telemetrySink=Microsoft.Office.WebExtension.telemetrySink,e.isTrustedHost=function(){return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,6,,7]),OSF._OfficeAppFactory.getHostInfo().hostPlatform===OSF.HostInfoPlatform.web?[3,2]:[4,e.onReady()];case 1:return o.sent(),[2,!0];case 2:return null!=(t=OSF._OfficeAppFactory.getWebAppState().clientEndPoint)&&t.fHostTrusted||null!=document.referrer&&(n=OSF.OUtil.parseUrl(document.referrer,!1),"https:"==n.protocol&&OSF.XdmCommunicationManager.isHostNameValidWacDomain(n.hostname)&&!new RegExp("^"+document.domain.replace(new RegExp("\\.","g"),"\\.")+"$").test(n.hostname))?[2,!0]:null==t?[3,4]:[4,OSF.Utility.promisify((function(e){t.invoke("ContextActivationManager_getAppContextAsync",e,OSF._OfficeAppFactory.getWebAppState().id)}),1e4)];case 3:return o.sent(),[2,!0];case 4:return[2,!1];case 5:return[3,7];case 6:return r=o.sent(),OSF.AppTelemetry&&OSF.AppTelemetry.logAppException("Exception happens at Office.isTrustedHost."+r),[2,!1];case 7:return[2]}}))}))},Microsoft.Office.WebExtension.onReadyInternal=e.onReadyInternal}(Office||(Office={}));var OfficeExtension;__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){var t;!function(e){e.graph="graph",e.wfe="wfe"}(t=e.RemoteEndpointType||(e.RemoteEndpointType={}));var n=function(){function e(){}return e.prototype._resolveRequestUrlAndHeaderInfo=function(){return c._createPromiseFromResult(null)},e.prototype._createRequestExecutorOrNull=function(){return null},e.prototype.getEventRegistration=function(e){return null},e}();e.SessionBase=n;var r=function(){function e(){}return e.setCustomSendRequestFunc=function(t){e.s_customSendRequestFunc=t},e.xhrSendRequestFunc=function(e){return c.createPromise((function(t,n){var r=new XMLHttpRequest;if(r.open(e.method,e.url),r.onload=function(){var e={statusCode:r.status,headers:c._parseHttpResponseHeaders(r.getAllResponseHeaders()),body:r.responseText};t(e)},r.onerror=function(){n(new o.RuntimeError({code:a.connectionFailure,httpStatusCode:r.status,message:c._getResourceString(s.connectionFailureWithStatus,r.statusText)}))},e.headers)for(var i in e.headers)r.setRequestHeader(i,e.headers[i]);r.send(c._getRequestBodyText(e))}))},e.fetchSendRequestFunc=function(e){var t=c._getRequestBodyText(e);return""===t&&(t=void 0),fetch(e.url,{method:e.method,headers:e.headers,body:t}).then((function(e){return e.text().then((function(t){var n=e.status,r={};return e.headers.forEach((function(e,t){r[t]=e})),{statusCode:n,headers:r,body:t}}))}))},e.sendRequest=function(t){e.validateAndNormalizeRequest(t);var n=e.s_customSendRequestFunc;return n||(n="undefined"!=typeof fetch?e.fetchSendRequestFunc:e.xhrSendRequestFunc),n(t)},e.setCustomSendLocalDocumentRequestFunc=function(t){e.s_customSendLocalDocumentRequestFunc=t},e.sendLocalDocumentRequest=function(t){return e.validateAndNormalizeRequest(t),(e.s_customSendLocalDocumentRequestFunc||e.officeJsSendLocalDocumentRequestFunc)(t)},e.officeJsSendLocalDocumentRequestFunc=function(e){e=c._validateLocalDocumentRequest(e);var t=c._buildRequestMessageSafeArray(e);return c.createPromise((function(e,n){OSF.DDA.RichApi.executeRichApiRequestAsync(t,(function(t){var n;n="succeeded"==t.status?{statusCode:u.getResponseStatusCode(t),headers:u.getResponseHeaders(t),body:u.getResponseBody(t)}:u.buildHttpResponseFromOfficeJsError(t.error.code,t.error.message),c.log("Response:"),c.log(JSON.stringify(n)),e(n)}))}))},e.validateAndNormalizeRequest=function(e){if(c.isNullOrUndefined(e))throw o.RuntimeError._createInvalidArgError({argumentName:"request"});c.isNullOrEmptyString(e.method)&&(e.method="GET"),e.method=e.method.toUpperCase();var t=!1;if("object"==typeof e.headers&&e.headers[l.testRequestNameHeader]&&(t=!0),!t){var n=p._getCurrentTestNameWithSequenceId();n&&(e.headers||(e.headers={}),e.headers[l.testRequestNameHeader]=n)}},e.logRequest=function(t){if(c._logEnabled){if(c.log("---HTTP Request---"),c.log(t.method+" "+t.url),t.headers)for(var n in t.headers)c.log(n+": "+t.headers[n]);e._logBodyEnabled&&c.log(c._getRequestBodyText(t))}},e.logResponse=function(t){if(c._logEnabled){if(c.log("---HTTP Response---"),c.log(""+t.statusCode),t.headers)for(var n in t.headers)c.log(n+": "+t.headers[n]);e._logBodyEnabled&&c.log(t.body)}},e._logBodyEnabled=!1,e}();e.HttpUtility=r;var o,i=function(){function e(e){var t=this;this.m_bridge=e,this.m_promiseResolver={},this.m_handlers=[],this.m_bridge.onMessageFromHost=function(e){var n=JSON.parse(e);if(3==n.type){var r=n.message;if(r&&r.entries)for(var o=0;o<r.entries.length;o++){var i=r.entries[o];if(Array.isArray(i)){var a={messageCategory:i[0],messageType:i[1],targetId:i[2],message:i[3],id:i[4]};r.entries[o]=a}}}t.dispatchMessage(n)}}return e.init=function(t){if("object"==typeof t&&t){var n=new e(t);e.s_instance=n,r.setCustomSendLocalDocumentRequestFunc((function(t){t=c._validateLocalDocumentRequest(t);var r=0;c.isReadonlyRestRequest(t.method)||(r=1);var o=t.url.indexOf("?");if(o>=0){var i=t.url.substr(o+1),a=c._parseRequestFlagsAndCustomDataFromQueryStringIfAny(i);a.flags>=0&&(r=a.flags)}"string"==typeof t.body&&(t.body=JSON.parse(t.body));var s={id:e.nextId(),type:1,flags:r,message:t};return n.sendMessageToHostAndExpectResponse(s).then((function(e){return e.message}))}));for(var o=0;o<e.s_onInitedHandlers.length;o++)e.s_onInitedHandlers[o](n)}},Object.defineProperty(e,"instance",{get:function(){return e.s_instance},enumerable:!0,configurable:!0}),e.prototype.sendMessageToHost=function(e){this.m_bridge.sendMessageToHost(JSON.stringify(e))},e.prototype.sendMessageToHostAndExpectResponse=function(e){var t=this,n=c.createPromise((function(n,r){t.m_promiseResolver[e.id]=n}));return this.m_bridge.sendMessageToHost(JSON.stringify(e)),n},e.prototype.addHostMessageHandler=function(e){this.m_handlers.push(e)},e.prototype.removeHostMessageHandler=function(e){var t=this.m_handlers.indexOf(e);t>=0&&this.m_handlers.splice(t,1)},e.onInited=function(t){e.s_onInitedHandlers.push(t),e.s_instance&&t(e.s_instance)},e.prototype.dispatchMessage=function(e){if("number"==typeof e.id){var t=this.m_promiseResolver[e.id];if(t)return t(e),void delete this.m_promiseResolver[e.id]}for(var n=0;n<this.m_handlers.length;n++)this.m_handlers[n](e)},e.nextId=function(){return e.s_nextId++},e.s_onInitedHandlers=[],e.s_nextId=1,e}();e.HostBridge=i,"object"==typeof _richApiNativeBridge&&_richApiNativeBridge&&i.init(_richApiNativeBridge),function(e){var t=function(t){function n(e){var r=t.call(this,"string"==typeof e?e:e.message)||this;if(Object.setPrototypeOf(r,n.prototype),r.name="RichApi.Error","string"==typeof e?r.message=e:(r.code=e.code,r.message=e.message,r.traceMessages=e.traceMessages||[],r.innerError=e.innerError||null,r.debugInfo=r._createDebugInfo(e.debugInfo||{}),r.httpStatusCode=e.httpStatusCode,r.data=e.data),c.isNullOrUndefined(r.httpStatusCode)||200===r.httpStatusCode){var o={};o[a.accessDenied]=401,o[a.connectionFailure]=500,o[a.generalException]=500,o[a.invalidArgument]=400,o[a.invalidObjectPath]=400,o[a.invalidOrTimedOutSession]=408,o[a.invalidRequestContext]=400,o[a.timeout]=408,o[a.valueNotLoaded]=400,r.httpStatusCode=o[r.code]}return c.isNullOrUndefined(r.httpStatusCode)&&(r.httpStatusCode=500),r}return __extends(n,t),n.prototype.toString=function(){return this.code+": "+this.message},n.prototype._createDebugInfo=function(t){var n={code:this.code,message:this.message,toString:function(){return JSON.stringify(this)}};for(var r in t)n[r]=t[r];return this.innerError&&(this.innerError instanceof e.RuntimeError?n.innerError=this.innerError.debugInfo:n.innerError=this.innerError),n},n._createInvalidArgError=function(t){return new e.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:c.isNullOrEmptyString(t.argumentName)?c._getResourceString(s.invalidArgumentGeneric):c._getResourceString(s.invalidArgument,t.argumentName),debugInfo:t.errorLocation?{errorLocation:t.errorLocation}:{},innerError:t.innerError})},n}(Error);e.RuntimeError=t}(o=e._Internal||(e._Internal={})),e.Error=o.RuntimeError;var a=function(){function e(){}return e.apiNotFound="ApiNotFound",e.accessDenied="AccessDenied",e.generalException="GeneralException",e.activityLimitReached="ActivityLimitReached",e.invalidArgument="InvalidArgument",e.connectionFailure="ConnectionFailure",e.timeout="Timeout",e.invalidOrTimedOutSession="InvalidOrTimedOutSession",e.invalidObjectPath="InvalidObjectPath",e.invalidRequestContext="InvalidRequestContext",e.valueNotLoaded="ValueNotLoaded",e.requestPayloadSizeLimitExceeded="RequestPayloadSizeLimitExceeded",e.responsePayloadSizeLimitExceeded="ResponsePayloadSizeLimitExceeded",e.writeNotSupportedWhenModalDialogOpen="WriteNotSupportedWhenModalDialogOpen",e.undoNotSupported="UndoNotSupported",e}();e.CoreErrorCodes=a;var s=function(){function e(){}return e.apiNotFoundDetails="ApiNotFoundDetails",e.connectionFailureWithStatus="ConnectionFailureWithStatus",e.connectionFailureWithDetails="ConnectionFailureWithDetails",e.invalidArgument="InvalidArgument",e.invalidArgumentGeneric="InvalidArgumentGeneric",e.timeout="Timeout",e.invalidOrTimedOutSessionMessage="InvalidOrTimedOutSessionMessage",e.invalidSheetName="InvalidSheetName",e.invalidObjectPath="InvalidObjectPath",e.invalidRequestContext="InvalidRequestContext",e.valueNotLoaded="ValueNotLoaded",e}();e.CoreResourceStrings=s;var l=function(){function e(){}return e.flags="flags",e.sourceLibHeader="SdkVersion",e.processQuery="ProcessQuery",e.localDocument="http://document.localhost/",e.localDocumentApiPrefix="http://document.localhost/_api/",e.customData="customdata",e.testRequestNameHeader="x-test-request-name",e}();e.CoreConstants=l;var u=function(){function e(){}return e.buildMessageArrayForIRequestExecutor=function(t,n,r,o){var i=JSON.stringify(r.Body);c.log("Request:"),c.log(i);var a={};return c._copyHeaders(r.Headers,a),a[l.sourceLibHeader]=o,e.buildRequestMessageSafeArray(t,n,"POST",l.processQuery,a,i)},e.buildResponseOnSuccess=function(e,t){var n={HttpStatusCode:200,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.Body=JSON.parse(e),n.Headers=t,n},e.buildResponseOnError=function(t,n){var r={HttpStatusCode:500,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return r.ErrorCode=a.generalException,r.ErrorMessage=n,t==e.OfficeJsErrorCode_ooeNoCapability?(r.ErrorCode=a.accessDenied,r.HttpStatusCode=401):t==e.OfficeJsErrorCode_ooeActivityLimitReached?(r.ErrorCode=a.activityLimitReached,r.HttpStatusCode=429):t==e.OfficeJsErrorCode_ooeInvalidOrTimedOutSession?(r.ErrorCode=a.invalidOrTimedOutSession,r.HttpStatusCode=408,r.ErrorMessage=c._getResourceString(s.invalidOrTimedOutSessionMessage)):t==e.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded?(r.ErrorCode=a.requestPayloadSizeLimitExceeded,r.HttpStatusCode=400):t==e.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded?(r.ErrorCode=a.responsePayloadSizeLimitExceeded,r.HttpStatusCode=400):t==e.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen?(r.ErrorCode=a.writeNotSupportedWhenModalDialogOpen,r.HttpStatusCode=400):t==e.OfficeJsErrorCode_ooeInvalidSheetName?(r.ErrorCode=a.invalidRequestContext,r.HttpStatusCode=400,r.ErrorMessage=c._getResourceString(s.invalidSheetName)):t==e.OfficeJsErrorCode_ooeUndoNotSupported&&(r.ErrorCode=a.undoNotSupported,r.HttpStatusCode=400),r},e.buildHttpResponseFromOfficeJsError=function(t,n){var r=500,o={error:{}};return o.error.code=a.generalException,o.error.message=n,t===e.OfficeJsErrorCode_ooeNoCapability?(r=403,o.error.code=a.accessDenied):t===e.OfficeJsErrorCode_ooeActivityLimitReached&&(r=429,o.error.code=a.activityLimitReached),{statusCode:r,headers:{},body:JSON.stringify(o)}},e.buildRequestMessageSafeArray=function(e,t,n,r,o,i){var a=[];if(o)for(var s in o)a.push(s),a.push(o[s]);return[e,n,r,a,i,0,t,"","","","","",""]},e.getResponseBody=function(t){return e.getResponseBodyFromSafeArray(t.value.data)},e.getResponseHeaders=function(t){return e.getResponseHeadersFromSafeArray(t.value.data)},e.getResponseBodyFromSafeArray=function(e){var t=e[2];return"string"==typeof t?t:t.join("")},e.getResponseHeadersFromSafeArray=function(e){var t=e[1];if(!t)return null;for(var n={},r=0;r<t.length-1;r+=2)n[t[r]]=t[r+1];return n},e.getResponseStatusCode=function(t){return e.getResponseStatusCodeFromSafeArray(t.value.data)},e.getResponseStatusCodeFromSafeArray=function(e){return e[0]},e.OfficeJsErrorCode_ooeInvalidOrTimedOutSession=5012,e.OfficeJsErrorCode_ooeActivityLimitReached=5102,e.OfficeJsErrorCode_ooeNoCapability=7e3,e.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded=5103,e.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded=5104,e.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen=5016,e.OfficeJsErrorCode_ooeInvalidSheetName=1014,e.OfficeJsErrorCode_ooeUndoNotSupported=5017,e}();e.RichApiMessageUtility=u,function(e){e.getPromiseType=function(){if("undefined"!=typeof Promise)return Promise;if(void 0!==Office&&Office.Promise)return Office.Promise;if(void 0!==OfficeExtension&&OfficeExtension.Promise)return OfficeExtension.Promise;throw new e.Error("No Promise implementation found")}}(o=e._Internal||(e._Internal={}));var c=function(){function e(){}return e.log=function(t){e._logEnabled&&"undefined"!=typeof console&&console.log&&console.log(t)},e.checkArgumentNull=function(t,n){if(e.isNullOrUndefined(t))throw o.RuntimeError._createInvalidArgError({argumentName:n})},e.isNullOrUndefined=function(e){return null===e||void 0===e},e.isUndefined=function(e){return void 0===e},e.isNullOrEmptyString=function(e){return null===e||(void 0===e||0==e.length)},e.isPlainJsonObject=function(t){if(e.isNullOrUndefined(t))return!1;if("object"!=typeof t)return!1;if("[object Object]"!==Object.prototype.toString.apply(t))return!1;if(t.constructor&&!Object.prototype.hasOwnProperty.call(t,"constructor")&&!Object.prototype.hasOwnProperty.call(t.constructor.prototype,"hasOwnProperty"))return!1;for(var n in t)if(!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0},e.trim=function(e){return e.replace(new RegExp("^\\s+|\\s+$","g"),"")},e.caseInsensitiveCompareString=function(t,n){return e.isNullOrUndefined(t)?e.isNullOrUndefined(n):!e.isNullOrUndefined(n)&&t.toUpperCase()==n.toUpperCase()},e.isReadonlyRestRequest=function(t){return e.caseInsensitiveCompareString(t,"GET")},e._getResourceString=function(t,n){var r;if("undefined"!=typeof window&&window.Strings&&window.Strings.OfficeOM){var o="L_"+t,i=window.Strings.OfficeOM[o];i&&(r=i)}if(r||(r=e.s_resourceStringValues[t]),r||(r=t),!e.isNullOrUndefined(n))if(Array.isArray(n)){var a=n;r=e._formatString(r,a)}else r=r.replace("{0}",n);return r},e._formatString=function(e,t){return e.replace(/\{\d\}/g,(function(e){var n=parseInt(e.substr(1,e.length-2));if(n<t.length)return t[n];throw o.RuntimeError._createInvalidArgError({argumentName:"format"})}))},Object.defineProperty(e,"Promise",{get:function(){return o.getPromiseType()},enumerable:!0,configurable:!0}),e.createPromise=function(t){return new e.Promise(t)},e._createPromiseFromResult=function(t){return e.createPromise((function(e,n){e(t)}))},e._createPromiseFromException=function(t){return e.createPromise((function(e,n){n(t)}))},e._createTimeoutPromise=function(t){return e.createPromise((function(e,n){setTimeout((function(){e(null)}),t)}))},e._createInvalidArgError=function(e){return o.RuntimeError._createInvalidArgError(e)},e._isLocalDocumentUrl=function(t){return e._getLocalDocumentUrlPrefixLength(t)>0},e._getLocalDocumentUrlPrefixLength=function(e){for(var t=["http://document.localhost","https://document.localhost","//document.localhost"],n=e.toLowerCase().trim(),r=0;r<t.length;r++){if(n===t[r])return t[r].length;if(n.substr(0,t[r].length+1)===t[r]+"/")return t[r].length+1}return 0},e._validateLocalDocumentRequest=function(t){var n=e._getLocalDocumentUrlPrefixLength(t.url);if(n<=0)throw o.RuntimeError._createInvalidArgError({argumentName:"request"});var r=t.url.substr(n),i=r.toLowerCase();return"_api"===i?r="":"_api/"===i.substr(0,"_api/".length)&&(r=r.substr("_api/".length)),{method:t.method,url:r,headers:t.headers,body:t.body}},e._parseRequestFlagsAndCustomDataFromQueryStringIfAny=function(e){for(var t={flags:-1,customData:""},n=e.split("&"),r=0;r<n.length;r++){var o=n[r].split("=");if(o[0].toLowerCase()===l.flags){var i=parseInt(o[1]);i&=65535,t.flags=i}else o[0].toLowerCase()===l.customData&&(t.customData=decodeURIComponent(o[1]))}return t},e._getRequestBodyText=function(e){var t="";return"string"==typeof e.body?t=e.body:e.body&&"object"==typeof e.body&&(t=JSON.stringify(e.body)),t},e._parseResponseBody=function(t){if("string"==typeof t.body){var n=e.trim(t.body);return JSON.parse(n)}return t.body},e._buildRequestMessageSafeArray=function(t){var n=0;e.isReadonlyRestRequest(t.method)||(n=1);var r="";if(t.url.substr(0,l.processQuery.length).toLowerCase()===l.processQuery.toLowerCase()){var o=t.url.indexOf("?");if(o>0){var i=t.url.substr(o+1),a=e._parseRequestFlagsAndCustomDataFromQueryStringIfAny(i);a.flags>=0&&(n=a.flags),r=a.customData}}return u.buildRequestMessageSafeArray(r,n,t.method,t.url,t.headers,e._getRequestBodyText(t))},e._parseHttpResponseHeaders=function(t){var n={};if(!e.isNullOrEmptyString(t))for(var r=new RegExp("\r?\n"),o=t.split(r),i=0;i<o.length;i++){var a=o[i];if(null!=a){var s=a.indexOf(":");if(s>0){var l=a.substr(0,s),u=a.substr(s+1);l=e.trim(l),u=e.trim(u),n[l.toUpperCase()]=u}}}return n},e._parseErrorResponse=function(t){var n=e._parseErrorResponseBody(t),r=t.statusCode.toString();if(e.isNullOrUndefined(n)||"object"!=typeof n||!n.error)return e._createDefaultErrorResponse(r);var o=n.error,i=o.innerError;return i&&i.code?e._createErrorResponse(i.code,r,i.message):o.code?e._createErrorResponse(o.code,r,o.message):e._createDefaultErrorResponse(r)},e._parseErrorResponseBody=function(t){if(e.isPlainJsonObject(t.body))return t.body;if(!e.isNullOrEmptyString(t.body)){var n=e.trim(t.body);try{return JSON.parse(n)}catch(t){e.log("Error when parse "+n)}}},e._createDefaultErrorResponse=function(t){return{errorCode:a.connectionFailure,errorMessage:e._getResourceString(s.connectionFailureWithStatus,t)}},e._createErrorResponse=function(t,n,r){return{errorCode:t,errorMessage:e._getResourceString(s.connectionFailureWithDetails,[n,t,r])}},e._copyHeaders=function(e,t){if(e&&t)for(var n in e)t[n]=e[n]},e.addResourceStringValues=function(t){for(var n in t)e.s_resourceStringValues[n]=t[n]},e._logEnabled=!1,e.s_resourceStringValues={ApiNotFoundDetails:"The method or property {0} is part of the {1} requirement set, which is not available in your version of {2}.",ConnectionFailureWithStatus:"The request failed with status code of {0}.",ConnectionFailureWithDetails:"The request failed with status code of {0}, error code {1} and the following error message: {2}",InvalidArgument:"The argument '{0}' doesn't work for this situation, is missing, or isn't in the right format.",InvalidObjectPath:'The object path \'{0}\' isn\'t working for what you\'re trying to do. If you\'re using the object across multiple "context.sync" calls and outside the sequential execution of a ".run" batch, please use the "context.trackedObjects.add()" and "context.trackedObjects.remove()" methods to manage the object\'s lifetime.',InvalidRequestContext:"Cannot use the object across different request contexts.",Timeout:"The operation has timed out.",ValueNotLoaded:'The value of the result object has not been loaded yet. Before reading the value property, call "context.sync()" on the associated request context.'},e}();e.CoreUtility=c;var p=function(){function e(){}return e.setMock=function(t){e.s_isMock=t},e.isMock=function(){return e.s_isMock},e._setCurrentTestName=function(t){e.s_currentTestName=t,e.s_currentTestSequenceId=0},e._getCurrentTestNameWithSequenceId=function(){return e.s_currentTestName?(e.s_currentTestSequenceId++,e.s_currentTestName+"."+e.s_currentTestSequenceId):null},e}();e.TestUtility=p,e._internalConfig={showDisposeInfoInDebugInfo:!1,showInternalApiInDebugInfo:!1,enableEarlyDispose:!0,alwaysPolyfillClientObjectUpdateMethod:!1,alwaysPolyfillClientObjectRetrieveMethod:!1,enableConcurrentFlag:!0,enableUndoableFlag:!0,appendTypeNameToObjectPathInfo:!1,enablePreviewExecution:!1},e.config={extendedErrorLogging:!1};var f=function(){function t(){}return t.createSetPropertyAction=function(t,n,r,o,i){S.validateObjectPath(n);var a={Id:t._nextId(),ActionType:4,Name:r,ObjectPathId:n._objectPath.objectPathInfo.Id,ArgumentInfo:{}},s=[o],l=S.setMethodArguments(t,a.ArgumentInfo,s);S.validateReferencedObjectPaths(l);var u=new d(a,0,i);if(u.referencedObjectPath=n._objectPath,u.referencedArgumentObjectPaths=l,e._internalConfig.enablePreviewExecution&&0!=(16&i)){var c={Id:t._nextId(),ActionType:4,Name:r,ObjectId:"",ObjectType:"",Arguments:[o]};n._addPreviewExecutionAction(c)}return n._addAction(u)},t.createQueryAction=function(e,t,n,r){S.validateObjectPath(t);var o={Id:e._nextId(),ActionType:2,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},i=new d(o,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i,r)},t.createQueryAsJsonAction=function(e,t,n,r){S.validateObjectPath(t);var o={Id:e._nextId(),ActionType:7,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},i=new d(o,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i,r)},t.createUpdateAction=function(e,t,n){S.validateObjectPath(t);var r={Id:e._nextId(),ActionType:9,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},o=new d(r,0,0);return o.referencedObjectPath=t._objectPath,t._addAction(o)},t}();e.CommonActionFactory=f;var h=function(){function t(e,t){this.m_contextBase=e,this.m_objectPath=t}return Object.defineProperty(t.prototype,"_objectPath",{get:function(){return this.m_objectPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_context",{get:function(){return this.m_contextBase},enumerable:!0,configurable:!0}),t.prototype._addAction=function(e,t){var n=this;return void 0===t&&(t=null),c.createPromise((function(r,o){n._context._addServiceApiAction(e,t,r,o)}))},t.prototype._addPreviewExecutionAction=function(e){},t.prototype._retrieve=function(t,n){var r=e._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;r||(r=!S.isSetSupported("RichApiRuntime","1.1"));var o=m._parseQueryOption(t);return r?f.createQueryAction(this._context,this,o,n):f.createQueryAsJsonAction(this._context,this,o,n)},t.prototype._recursivelyUpdate=function(t){var n=e._internalConfig.alwaysPolyfillClientObjectUpdateMethod;n||(n=!S.isSetSupported("RichApiRuntime","1.2"));try{var r=this[C.scalarPropertyNames];r||(r=[]);var i=this[C.scalarPropertyUpdateable];if(!i){i=[];for(var l=0;l<r.length;l++)i.push(!1)}var u=this[C.navigationPropertyNames];u||(u=[]);var p={},h={},d=0;for(var y in t){var m=r.indexOf(y);if(m>=0){if(!i[m])throw new o.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:c._getResourceString(P.attemptingToSetReadOnlyProperty,y),debugInfo:{errorLocation:y}});p[y]=t[y],++d}else{if(!(u.indexOf(y)>=0))throw new o.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:c._getResourceString(P.propertyDoesNotExist,y),debugInfo:{errorLocation:y}});h[y]=t[y]}}if(d>0)if(n)for(l=0;l<r.length;l++){var g=p[y=r[l]];S.isUndefined(g)||f.createSetPropertyAction(this._context,this,y,g)}else f.createUpdateAction(this._context,this,p);for(var y in h){var _=this[y],b=h[y];_._recursivelyUpdate(b)}}catch(e){throw new o.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:c._getResourceString(s.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".update"},innerError:e})}},t}();e.ClientObjectBase=h;var d=function(){function e(e,t,n){this.m_actionInfo=e,this.m_operationType=t,this.m_flags=n}return Object.defineProperty(e.prototype,"actionInfo",{get:function(){return this.m_actionInfo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),e}();e.Action=d;var y=function(){function t(e,t,n,r,o,i){this.m_objectPathInfo=e,this.m_parentObjectPath=t,this.m_isCollection=n,this.m_isInvalidAfterRequest=r,this.m_isValid=!0,this.m_operationType=o,this.m_flags=i}return Object.defineProperty(t.prototype,"id",{get:function(){var e=this.m_objectPathInfo.ArgumentInfo;if(e){var t=e.Arguments;if(t)return t[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this.m_parentObjectPath;if(e)return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentId",{get:function(){return this.parent?this.parent.id:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectPathInfo",{get:function(){return this.m_objectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollection",{get:function(){return this.m_isCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalidAfterRequest",{get:function(){return this.m_isInvalidAfterRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentObjectPath",{get:function(){return this.m_parentObjectPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"argumentObjectPaths",{get:function(){return this.m_argumentObjectPaths},set:function(e){this.m_argumentObjectPaths=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this.m_isValid},set:function(e){this.m_isValid=e,!e&&6===this.m_objectPathInfo.ObjectPathType&&this.m_savedObjectPathInfo&&(t.copyObjectPathInfo(this.m_savedObjectPathInfo.pathInfo,this.m_objectPathInfo),this.m_parentObjectPath=this.m_savedObjectPathInfo.parent,this.m_isValid=!0,this.m_savedObjectPathInfo=null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalObjectPathInfo",{get:function(){return this.m_originalObjectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getByIdMethodName",{get:function(){return this.m_getByIdMethodName},set:function(e){this.m_getByIdMethodName=e},enumerable:!0,configurable:!0}),t.prototype._updateAsNullObject=function(){this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=7,this.m_objectPathInfo.Name="",this.m_parentObjectPath=null},t.prototype.saveOriginalObjectPathInfo=function(){e.config.extendedErrorLogging&&!this.m_originalObjectPathInfo&&(this.m_originalObjectPathInfo={},t.copyObjectPathInfo(this.m_objectPathInfo,this.m_originalObjectPathInfo))},t.prototype.updateUsingObjectData=function(e,n){var r=e[C.referenceId];if(!c.isNullOrEmptyString(r)){if(!this.m_savedObjectPathInfo&&!this.isInvalidAfterRequest&&t.isRestorableObjectPath(this.m_objectPathInfo.ObjectPathType)){var o={};t.copyObjectPathInfo(this.m_objectPathInfo,o),this.m_savedObjectPathInfo={pathInfo:o,parent:this.m_parentObjectPath}}return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=6,this.m_objectPathInfo.Name=r,delete this.m_objectPathInfo.ParentObjectPathId,void(this.m_parentObjectPath=null)}if(n){var i=n[C.collectionPropertyPath];if(!c.isNullOrEmptyString(i)&&n.context){var a=S.tryGetObjectIdFromLoadOrRetrieveResult(e);if(!c.isNullOrUndefined(a)){for(var s=i.split("."),l=n.context[s[0]],u=1;u<s.length;u++)l=l[s[u]];return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_parentObjectPath=l._objectPath,this.m_objectPathInfo.ParentObjectPathId=this.m_parentObjectPath.objectPathInfo.Id,this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name="",void(this.m_objectPathInfo.ArgumentInfo.Arguments=[a])}}}var p=this.parentObjectPath&&this.parentObjectPath.isCollection,f=this.getByIdMethodName;if(p||!c.isNullOrEmptyString(f)){a=S.tryGetObjectIdFromLoadOrRetrieveResult(e);if(!c.isNullOrUndefined(a))return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),c.isNullOrEmptyString(f)?(this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name=""):(this.m_objectPathInfo.ObjectPathType=3,this.m_objectPathInfo.Name=f),void(this.m_objectPathInfo.ArgumentInfo.Arguments=[a])}},t.prototype.resetForUpdateUsingObjectData=function(){this.m_isInvalidAfterRequest=!1,this.m_isValid=!0,this.m_operationType=1,this.m_flags=4,this.m_objectPathInfo.ArgumentInfo={},this.m_argumentObjectPaths=null,this.m_getByIdMethodName=null},t.isRestorableObjectPath=function(e){return 1===e||5===e||3===e||4===e},t.copyObjectPathInfo=function(e,t){t.Id=e.Id,t.ArgumentInfo=e.ArgumentInfo,t.Name=e.Name,t.ObjectPathType=e.ObjectPathType,t.ParentObjectPathId=e.ParentObjectPathId},t}();e.ObjectPath=y;var m=function(){function e(){this.m_nextId=0}return e.prototype._nextId=function(){return++this.m_nextId},e.prototype._addServiceApiAction=function(e,t,n,r){this.m_serviceApiQueue||(this.m_serviceApiQueue=new v(this)),this.m_serviceApiQueue.add(e,t,n,r)},e._parseQueryOption=function(t){var n={};if("string"==typeof t){var r=t;n.Select=S._parseSelectExpand(r)}else if(Array.isArray(t))n.Select=t;else if("object"==typeof t){var i=t;if(e.isLoadOption(i)){if("string"==typeof i.select)n.Select=S._parseSelectExpand(i.select);else if(Array.isArray(i.select))n.Select=i.select;else if(!S.isNullOrUndefined(i.select))throw o.RuntimeError._createInvalidArgError({argumentName:"option.select"});if("string"==typeof i.expand)n.Expand=S._parseSelectExpand(i.expand);else if(Array.isArray(i.expand))n.Expand=i.expand;else if(!S.isNullOrUndefined(i.expand))throw o.RuntimeError._createInvalidArgError({argumentName:"option.expand"});if("number"==typeof i.top)n.Top=i.top;else if(!S.isNullOrUndefined(i.top))throw o.RuntimeError._createInvalidArgError({argumentName:"option.top"});if("number"==typeof i.skip)n.Skip=i.skip;else if(!S.isNullOrUndefined(i.skip))throw o.RuntimeError._createInvalidArgError({argumentName:"option.skip"})}else n=e.parseStrictLoadOption(t)}else if(!S.isNullOrUndefined(t))throw o.RuntimeError._createInvalidArgError({argumentName:"option"});return n},e.isLoadOption=function(e){if(!S.isUndefined(e.select)&&("string"==typeof e.select||Array.isArray(e.select)))return!0;if(!S.isUndefined(e.expand)&&("string"==typeof e.expand||Array.isArray(e.expand)))return!0;if(!S.isUndefined(e.top)&&"number"==typeof e.top)return!0;if(!S.isUndefined(e.skip)&&"number"==typeof e.skip)return!0;for(var t in e)return!1;return!0},e.parseStrictLoadOption=function(t){var n={Select:[]};return e.parseStrictLoadOptionHelper(n,"","option",t),n},e.combineQueryPath=function(e,t,n){return 0===e.length?t:e+n+t},e.parseStrictLoadOptionHelper=function(t,n,r,i){for(var a in i){var s=i[a];if("$all"===a){if("boolean"!=typeof s)throw o.RuntimeError._createInvalidArgError({argumentName:e.combineQueryPath(r,a,".")});s&&t.Select.push(e.combineQueryPath(n,"*","/"))}else if("$top"===a){if("number"!=typeof s||n.length>0)throw o.RuntimeError._createInvalidArgError({argumentName:e.combineQueryPath(r,a,".")});t.Top=s}else if("$skip"===a){if("number"!=typeof s||n.length>0)throw o.RuntimeError._createInvalidArgError({argumentName:e.combineQueryPath(r,a,".")});t.Skip=s}else if("boolean"==typeof s)s&&t.Select.push(e.combineQueryPath(n,a,"/"));else{if("object"!=typeof s)throw o.RuntimeError._createInvalidArgError({argumentName:e.combineQueryPath(r,a,".")});e.parseStrictLoadOptionHelper(t,e.combineQueryPath(n,a,"/"),e.combineQueryPath(r,a,"."),s)}}},e}();e.ClientRequestContextBase=m;var g=function(){function e(e){this.m_objectPath=e}return e.prototype._handleResult=function(e){c.isNullOrUndefined(e)?this.m_objectPath._updateAsNullObject():this.m_objectPath.updateUsingObjectData(e,null)},e}(),_=function(){function t(e){this.m_contextBase=e,this.m_actions=[],this.m_actionResultHandler={},this.m_referencedObjectPaths={},this.m_instantiatedObjectPaths={},this.m_preSyncPromises=[],this.m_previewExecutionActions=[]}return t.prototype.addAction=function(e){this.m_actions.push(e),1==e.actionInfo.ActionType&&(this.m_instantiatedObjectPaths[e.actionInfo.ObjectPathId]=e)},t.prototype.addPreviewExecutionAction=function(e){this.m_previewExecutionActions.push(e)},Object.defineProperty(t.prototype,"hasActions",{get:function(){return this.m_actions.length>0},enumerable:!0,configurable:!0}),t.prototype._getLastAction=function(){return this.m_actions[this.m_actions.length-1]},t.prototype.ensureInstantiateObjectPath=function(e){if(e){if(this.m_instantiatedObjectPaths[e.objectPathInfo.Id])return;if(this.ensureInstantiateObjectPath(e.parentObjectPath),this.ensureInstantiateObjectPaths(e.argumentObjectPaths),!this.m_instantiatedObjectPaths[e.objectPathInfo.Id]){var t={Id:this.m_contextBase._nextId(),ActionType:1,Name:"",ObjectPathId:e.objectPathInfo.Id},n=new d(t,1,4);n.referencedObjectPath=e,this.addReferencedObjectPath(e),this.addAction(n);var r=new g(e);this.addActionResultHandler(n,r)}}},t.prototype.ensureInstantiateObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.ensureInstantiateObjectPath(e[t])},t.prototype.addReferencedObjectPath=function(e){if(e&&!this.m_referencedObjectPaths[e.objectPathInfo.Id]){if(!e.isValid)throw new o.RuntimeError({code:a.invalidObjectPath,httpStatusCode:400,message:c._getResourceString(s.invalidObjectPath,S.getObjectPathExpression(e)),debugInfo:{errorLocation:S.getObjectPathExpression(e)}});for(;e;)this.m_referencedObjectPaths[e.objectPathInfo.Id]=e,3==e.objectPathInfo.ObjectPathType&&this.addReferencedObjectPaths(e.argumentObjectPaths),e=e.parentObjectPath}},t.prototype.addReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.addReferencedObjectPath(e[t])},t.prototype.addActionResultHandler=function(e,t){this.m_actionResultHandler[e.actionInfo.Id]=t},t.prototype.aggregrateRequestFlags=function(e,t,n){return 0===t&&(e|=1,0==(2&n)&&(e&=-17),0==(8&n)&&(e&=-257),e&=-5),1&n&&(e|=2),0==(4&n)&&(e&=-5),e},t.prototype.finallyNormalizeFlags=function(t){return 0==(1&t)&&(t&=-17,t&=-257),e._internalConfig.enableConcurrentFlag||(t&=-5),e._internalConfig.enableUndoableFlag||(t&=-17),S.isSetSupported("RichApiRuntimeFlag","1.1")||(t&=-5,t&=-17),S.isSetSupported("RichApiRuntimeFlag","1.2")||(t&=-257),"number"==typeof this.m_flagsForTesting&&(t=this.m_flagsForTesting),t},t.prototype.buildRequestMessageBodyAndRequestFlags=function(){e._internalConfig.enableEarlyDispose&&t._calculateLastUsedObjectPathIds(this.m_actions);var n=276,r={};for(var o in this.m_referencedObjectPaths)n=this.aggregrateRequestFlags(n,this.m_referencedObjectPaths[o].operationType,this.m_referencedObjectPaths[o].flags),r[o]=this.m_referencedObjectPaths[o].objectPathInfo;for(var i=[],a=!1,s=0;s<this.m_actions.length;s++){var l=this.m_actions[s];3===l.actionInfo.ActionType&&l.actionInfo.Name===C.keepReference&&(a=!0),n=this.aggregrateRequestFlags(n,l.operationType,l.flags),i.push(l.actionInfo)}n=this.finallyNormalizeFlags(n);var u={AutoKeepReference:this.m_contextBase._autoCleanup&&a,Actions:i,ObjectPaths:r};return this.m_previewExecutionActions.length>0&&(u.PreviewExecutionActions=this.m_previewExecutionActions,n|=4096),{body:u,flags:n}},t.prototype.processResponse=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t],r=this.m_actionResultHandler[n.ActionId];r&&r._handleResult(n.Value)}},t.prototype.invalidatePendingInvalidObjectPaths=function(){for(var e in this.m_referencedObjectPaths)this.m_referencedObjectPaths[e].isInvalidAfterRequest&&(this.m_referencedObjectPaths[e].isValid=!1)},t.prototype._addPreSyncPromise=function(e){this.m_preSyncPromises.push(e)},Object.defineProperty(t.prototype,"_preSyncPromises",{get:function(){return this.m_preSyncPromises},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_actions",{get:function(){return this.m_actions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_objectPaths",{get:function(){return this.m_referencedObjectPaths},enumerable:!0,configurable:!0}),t.prototype._removeKeepReferenceAction=function(e){for(var t=this.m_actions.length-1;t>=0;t--){var n=this.m_actions[t].actionInfo;if(n.ObjectPathId===e&&3===n.ActionType&&n.Name===C.keepReference){this.m_actions.splice(t,1);break}}},t._updateLastUsedActionIdOfObjectPathId=function(e,n,r){for(;n;){if(e[n.objectPathInfo.Id])return;e[n.objectPathInfo.Id]=r;var o=n.argumentObjectPaths;if(o)for(var i=o.length,a=0;a<i;a++)t._updateLastUsedActionIdOfObjectPathId(e,o[a],r);n=n.parentObjectPath}},t._calculateLastUsedObjectPathIds=function(e){for(var n={},r=e.length,o=r-1;o>=0;--o){var i=(f=e[o]).actionInfo.Id;f.referencedObjectPath&&t._updateLastUsedActionIdOfObjectPathId(n,f.referencedObjectPath,i);var a=f.referencedArgumentObjectPaths;if(a)for(var s=a.length,l=0;l<s;l++)t._updateLastUsedActionIdOfObjectPathId(n,a[l],i)}var u={};for(var c in n){var p=u[i=n[c]];p||(p=[],u[i]=p),p.push(parseInt(c))}for(o=0;o<r;o++){var f,h=u[(f=e[o]).actionInfo.Id];h&&h.length>0?f.actionInfo.L=h:f.actionInfo.L&&delete f.actionInfo.L}},t}();e.ClientRequestBase=_;var b=function(){function e(e){this.m_type=e}return Object.defineProperty(e.prototype,"value",{get:function(){if(!this.m_isLoaded)throw new o.RuntimeError({code:a.valueNotLoaded,httpStatusCode:400,message:c._getResourceString(s.valueNotLoaded),debugInfo:{errorLocation:"clientResult.value"}});return this.m_value},enumerable:!0,configurable:!0}),e.prototype._handleResult=function(e){this.m_isLoaded=!0,"object"==typeof e&&e&&e._IsNull||(1===this.m_type?this.m_value=S.adjustToDateTime(e):this.m_value=e)},e}();e.ClientResult=b;var v=function(){function e(e){this.m_context=e,this.m_actions=[]}return e.prototype.add=function(e,t,n,r){var o=this;this.m_actions.push({action:e,resultHandler:t,resolve:n,reject:r}),1===this.m_actions.length&&setTimeout((function(){return o.processActions()}),0)},e.prototype.processActions=function(){var e=this;if(0!==this.m_actions.length){var t=this.m_actions;this.m_actions=[];for(var n=new _(this.m_context),r=0;r<t.length;r++){var o=t[r];n.ensureInstantiateObjectPath(o.action.referencedObjectPath),n.ensureInstantiateObjectPaths(o.action.referencedArgumentObjectPaths),n.addAction(o.action),n.addReferencedObjectPath(o.action.referencedObjectPath),n.addReferencedObjectPaths(o.action.referencedArgumentObjectPaths)}var i=n.buildRequestMessageBodyAndRequestFlags(),a=i.body,s=i.flags,u={Url:l.localDocumentApiPrefix,Headers:null,Body:a};c.log("Request:"),c.log(JSON.stringify(a)),(new O).executeAsync(this.m_context._customData,s,u).then((function(r){e.processResponse(n,t,r)})).catch((function(e){for(var n=0;n<t.length;n++){t[n].reject(e)}}))}},e.prototype.processResponse=function(e,t,n){var r=this.getErrorFromResponse(n),o=null;n.Body.Results?o=n.Body.Results:n.Body.ProcessedResults&&n.Body.ProcessedResults.Results&&(o=n.Body.ProcessedResults.Results),o||(o=[]),this.processActionResults(e,t,o,r)},e.prototype.getErrorFromResponse=function(e){return c.isNullOrEmptyString(e.ErrorCode)?e.Body&&e.Body.Error?new o.RuntimeError({code:e.Body.Error.Code,httpStatusCode:e.Body.Error.HttpStatusCode,message:e.Body.Error.Message}):null:new o.RuntimeError({code:e.ErrorCode,httpStatusCode:e.HttpStatusCode,message:e.ErrorMessage})},e.prototype.processActionResults=function(e,t,n,r){e.processResponse(n);for(var o=0;o<t.length;o++){for(var i=t[o],a=i.action.actionInfo.Id,s=!1,l=0;l<n.length;l++)if(a==n[l].ActionId){var u=n[l].Value;i.resultHandler&&(i.resultHandler._handleResult(u),u=i.resultHandler.value),i.resolve&&i.resolve(u),s=!0;break}!s&&i.reject&&(r?i.reject(r):i.reject("No response for the action."))}},e}(),O=function(){function e(){}return e.prototype.getRequestUrl=function(e,n,r){void 0===r&&(r=t.graph.toString());var o=l.flags+"="+n.toString();switch(r){case t.graph.toString():"/"!=e.charAt(e.length-1)&&(e+="/"),e=(e+=l.processQuery)+"?"+o;break;case t.wfe.toString():e=(e=e+"&"+o)+"&wdRestPart=_api/"+l.processQuery}return e},e.prototype.executeAsync=function(n,o,i){var a=i.Headers?i.Headers[C.remoteEndpointTypeHeaderKey]:t.graph.toString(),s={method:"POST",url:this.getRequestUrl(i.Url,o,a),headers:{},body:i.Body};if(s.headers[l.sourceLibHeader]=e.SourceLibHeaderValue,s.headers["CONTENT-TYPE"]="application/json",i.Headers)for(var u in i.Headers)s.headers[u]=i.Headers[u];return(c._isLocalDocumentUrl(s.url)?r.sendLocalDocumentRequest:r.sendRequest)(s).then((function(e){var t;if(200===e.statusCode)t={HttpStatusCode:e.statusCode,ErrorCode:null,ErrorMessage:null,Headers:e.headers,Body:c._parseResponseBody(e)};else{c.log("Error Response:"+e.body);var n=c._parseErrorResponse(e);t={HttpStatusCode:e.statusCode,ErrorCode:n.errorCode,ErrorMessage:n.errorMessage,Headers:e.headers,Body:null,RawErrorResponseBody:c._parseErrorResponseBody(e)}}return t}))},e.SourceLibHeaderValue="officejs-rest",e}();e.HttpRequestExecutor=O;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.collectionPropertyPath="_collectionPropertyPath",t.id="Id",t.idLowerCase="id",t.idPrivate="_Id",t.keepReference="_KeepReference",t.objectPathIdPrivate="_ObjectPathId",t.referenceId="_ReferenceId",t.items="_Items",t.itemsLowerCase="items",t.scalarPropertyNames="_scalarPropertyNames",t.scalarPropertyOriginalNames="_scalarPropertyOriginalNames",t.navigationPropertyNames="_navigationPropertyNames",t.scalarPropertyUpdateable="_scalarPropertyUpdateable",t.previewExecutionObjectId="_previewExecutionObjectId",t.remoteEndpointTypeHeaderKey="X-EndpointType",t}(l);e.CommonConstants=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.validateObjectPath=function(e){for(var n=e._objectPath;n;){if(!n.isValid)throw new o.RuntimeError({code:a.invalidObjectPath,httpStatusCode:400,message:c._getResourceString(s.invalidObjectPath,t.getObjectPathExpression(n)),debugInfo:{errorLocation:t.getObjectPathExpression(n)}});n=n.parentObjectPath}},t.validateReferencedObjectPaths=function(e){if(e)for(var n=0;n<e.length;n++)for(var r=e[n];r;){if(!r.isValid)throw new o.RuntimeError({code:a.invalidObjectPath,httpStatusCode:400,message:c._getResourceString(s.invalidObjectPath,t.getObjectPathExpression(r))});r=r.parentObjectPath}},t._toCamelLowerCase=function(e){if(c.isNullOrEmptyString(e))return e;for(var t=0;t<e.length&&e.charCodeAt(t)>=65&&e.charCodeAt(t)<=90;)t++;return t<e.length?e.substr(0,t).toLowerCase()+e.substr(t):e.toLowerCase()},t.adjustToDateTime=function(e){if(c.isNullOrUndefined(e))return null;if("string"==typeof e)return new Date(e);if(Array.isArray(e)){for(var n=e,r=0;r<n.length;r++)n[r]=t.adjustToDateTime(n[r]);return n}throw c._createInvalidArgError({argumentName:"date"})},t.tryGetObjectIdFromLoadOrRetrieveResult=function(e){var t=e[C.id];return c.isNullOrUndefined(t)&&(t=e[C.idLowerCase]),c.isNullOrUndefined(t)&&(t=e[C.idPrivate]),t},t.getObjectPathExpression=function(e){for(var n="";e;){switch(e.objectPathInfo.ObjectPathType){case 1:n=n;break;case 2:n="new()"+(n.length>0?".":"")+n;break;case 3:n=t.normalizeName(e.objectPathInfo.Name)+"()"+(n.length>0?".":"")+n;break;case 4:n=t.normalizeName(e.objectPathInfo.Name)+(n.length>0?".":"")+n;break;case 5:n="getItem()"+(n.length>0?".":"")+n;break;case 6:n="_reference()"+(n.length>0?".":"")+n}e=e.parentObjectPath}return n},t.setMethodArguments=function(e,n,r){if(c.isNullOrUndefined(r))return null;var o=new Array,i=new Array,a=t.collectObjectPathInfos(e,r,o,i);return n.Arguments=r,a&&(n.ReferencedObjectPathIds=i),o},t.validateContext=function(e,t){if(e&&t&&t._context!==e)throw new o.RuntimeError({code:a.invalidRequestContext,httpStatusCode:400,message:c._getResourceString(s.invalidRequestContext)})},t.isSetSupported=function(e,n){return"function"==typeof t.isSetSupportedOverride?t.isSetSupportedOverride(e,n):!("undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.requirements)||window.Office.context.requirements.isSetSupported(e,n)},t.throwIfApiNotSupported=function(e,n,r,i){if(t._doApiNotSupportedCheck&&!t.isSetSupported(n,r)){var l=c._getResourceString(s.apiNotFoundDetails,[e,n+" "+r,i]);throw new o.RuntimeError({code:a.apiNotFound,httpStatusCode:404,message:l,debugInfo:{errorLocation:e}})}},t.calculateApiFlags=function(e,n,r){var o=window&&window.location&&window.location.href&&-1!==window.location.href.indexOf("eed0a086-3498-4f91-a377-1e0265ecc0cc");return("function"==typeof t.isSetSupportedOverride?t.isSetSupportedOverride(n,r):!o&&t.isSetSupported(n,r))||(e&=-3),e},t._parseSelectExpand=function(e){var t=[];if(!c.isNullOrEmptyString(e))for(var n=e.split(","),r=0;r<n.length;r++){var o=n[r];(o=i(o.trim())).length>0&&t.push(o)}return t;function i(e){var t=e.toLowerCase();if("items"===t||"items/"===t)return"*";return("items/"===t.substr(0,6)||"items."===t.substr(0,6))&&(e=e.substr(6)),e.replace(new RegExp("[/.]items[/.]","gi"),"/")}},t.changePropertyNameToCamelLowerCase=function(e){if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.changePropertyNameToCamelLowerCase(e[r]));return n}if("object"==typeof e&&null!==e){n={};for(var o in e){var i=e[o];if(o===C.items){(n={})[C.itemsLowerCase]=this.changePropertyNameToCamelLowerCase(i);break}n[t._toCamelLowerCase(o)]=this.changePropertyNameToCamelLowerCase(i)}return n}return e},t.purifyJson=function(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.purifyJson(e[n]));return t}if("object"==typeof e&&null!==e){t={};for(var r in e)if(95!==r.charCodeAt(0)){var o=e[r];"object"==typeof o&&null!==o&&Array.isArray(o.items)&&(o=o.items),t[r]=this.purifyJson(o)}return t}return e},t.collectObjectPathInfos=function(e,n,r,o){for(var i=!1,a=0;a<n.length;a++)if(n[a]instanceof h){var s=n[a];t.validateContext(e,s),n[a]=s._objectPath.objectPathInfo.Id,o.push(s._objectPath.objectPathInfo.Id),r.push(s._objectPath),i=!0}else if(Array.isArray(n[a])){var l=new Array;t.collectObjectPathInfos(e,n[a],r,l)?(o.push(l),i=!0):o.push(0)}else c.isPlainJsonObject(n[a])?(o.push(0),t.replaceClientObjectPropertiesWithObjectPathIds(n[a],r)):o.push(0);return i},t.replaceClientObjectPropertiesWithObjectPathIds=function(e,n){var r,o;for(var i in e){var a=e[i];if(a instanceof h)n.push(a._objectPath),e[i]=((r={})[C.objectPathIdPrivate]=a._objectPath.objectPathInfo.Id,r);else if(Array.isArray(a))for(var s=0;s<a.length;s++)if(a[s]instanceof h){var l=a[s];n.push(l._objectPath),a[s]=((o={})[C.objectPathIdPrivate]=l._objectPath.objectPathInfo.Id,o)}else c.isPlainJsonObject(a[s])&&t.replaceClientObjectPropertiesWithObjectPathIds(a[s],n);else c.isPlainJsonObject(a)&&t.replaceClientObjectPropertiesWithObjectPathIds(a,n)}},t.normalizeName=function(e){return e.substr(0,1).toLowerCase()+e.substr(1)},t._doApiNotSupportedCheck=!1,t}(c);e.CommonUtility=S;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.propertyDoesNotExist="PropertyDoesNotExist",t.attemptingToSetReadOnlyProperty="AttemptingToSetReadOnlyProperty",t}(s);e.CommonResourceStrings=P;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.propertyNotLoaded="PropertyNotLoaded",t.runMustReturnPromise="RunMustReturnPromise",t.cannotRegisterEvent="CannotRegisterEvent",t.invalidOrTimedOutSession="InvalidOrTimedOutSession",t.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",t}(a);e.ErrorCodes=A;var E=function(){function e(e){this.m_callback=e}return e.prototype._handleResult=function(e){this.m_callback&&this.m_callback()},e}(),R=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.createMethodAction=function(t,n,r,o,i,a){J.validateObjectPath(n);var s={Id:t._nextId(),ActionType:3,Name:r,ObjectPathId:n._objectPath.objectPathInfo.Id,ArgumentInfo:{}},l=J.setMethodArguments(t,s.ArgumentInfo,i);J.validateReferencedObjectPaths(l);var u=J._fixupApiFlags(a),c=new d(s,o,u);if(c.referencedObjectPath=n._objectPath,c.referencedArgumentObjectPaths=l,n._addAction(c),e._internalConfig.enablePreviewExecution&&0!=(16&u)){var p={Id:t._nextId(),ActionType:3,Name:r,Arguments:i,ObjectId:"",ObjectType:""};n._addPreviewExecutionAction(p)}return c},n.createRecursiveQueryAction=function(e,t,n){J.validateObjectPath(t);var r={Id:e._nextId(),ActionType:6,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,RecursiveQueryInfo:n},o=new d(r,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o),o},n.createEnsureUnchangedAction=function(e,t,n){J.validateObjectPath(t);var r={Id:e._nextId(),ActionType:8,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},o=new d(r,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o),o},n.createInstantiateAction=function(e,t){J.validateObjectPath(t),e._pendingRequest.ensureInstantiateObjectPath(t._objectPath.parentObjectPath),e._pendingRequest.ensureInstantiateObjectPaths(t._objectPath.argumentObjectPaths);var n={Id:e._nextId(),ActionType:1,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id},r=new d(n,1,4);return r.referencedObjectPath=t._objectPath,t._addAction(r,new L(t),!0),r},n.createTraceAction=function(e,t,n){var r={Id:e._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},o=new d(r,1,4);return e._pendingRequest.addAction(o),n&&e._pendingRequest.addTrace(r.Id,t),o},n.createTraceMarkerForCallback=function(e,t){var r=n.createTraceAction(e,null,!1);e._pendingRequest.addActionResultHandler(r,new E(t))},n}(f);e.ActionFactory=R;var x=function(t){function n(n,r){var o=t.call(this,n,r)||this;return J.checkArgumentNull(n,"context"),o.m_context=n,o._objectPath&&(!n._processingResult&&n._pendingRequest&&(R.createInstantiateAction(n,o),n._autoCleanup&&o._KeepReference&&n.trackedObjects._autoAdd(o)),e._internalConfig.appendTypeNameToObjectPathInfo&&o._objectPath.objectPathInfo&&o._className&&(o._objectPath.objectPathInfo.T=o._className)),o}return __extends(n,t),Object.defineProperty(n.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isNull",{get:function(){return(void 0!==this.m_isNull||!p.isMock())&&(J.throwIfNotLoaded("isNull",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isNullObject",{get:function(){return(void 0!==this.m_isNull||!p.isMock())&&(J.throwIfNotLoaded("isNullObject",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isNull",{get:function(){return this.m_isNull},set:function(e){this.m_isNull=e,e&&this._objectPath&&this._objectPath._updateAsNullObject()},enumerable:!0,configurable:!0}),n.prototype._addAction=function(e,t,n){return void 0===t&&(t=null),n||(this.context._pendingRequest.ensureInstantiateObjectPath(this._objectPath),this.context._pendingRequest.ensureInstantiateObjectPaths(e.referencedArgumentObjectPaths)),this.context._pendingRequest.addAction(e),this.context._pendingRequest.addReferencedObjectPath(this._objectPath),this.context._pendingRequest.addReferencedObjectPaths(e.referencedArgumentObjectPaths),this.context._pendingRequest.addActionResultHandler(e,t),c._createPromiseFromResult(null)},n.prototype._addPreviewExecutionAction=function(e){if(!J.isUndefined(this._className)){e.ObjectType=this._className;var t=J._getPropertyValueWithoutCheckLoaded(this,N.idLowerCase);J.isUndefined(t)&&(t=J._getPropertyValueWithoutCheckLoaded(this,N.idPrivate)),J.isUndefined(t)&&(t=J._getPropertyValueWithoutCheckLoaded(this,N.previewExecutionObjectId)),e.ObjectId=t,this.context._pendingRequest.addPreviewExecutionAction(e)}},n.prototype._handleResult=function(e){this._isNull=J.isNullOrUndefined(e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},n.prototype._handleIdResult=function(e){this._isNull=J.isNullOrUndefined(e),J.fixObjectPathIfNecessary(this,e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},n.prototype._handleRetrieveResult=function(e,t){this._handleIdResult(e)},n.prototype._recursivelySet=function(e,t,r,i,l){var u=e instanceof n,p=e;if(u){if(Object.getPrototypeOf(this)!==Object.getPrototypeOf(e))throw o.RuntimeError._createInvalidArgError({argumentName:"properties",errorLocation:this._className+".set"});e=JSON.parse(JSON.stringify(e))}try{for(var f,h=0;h<r.length;h++)f=r[h],e.hasOwnProperty(f)&&void 0!==e[f]&&(this[f]=e[f]);for(h=0;h<i.length;h++)if(f=i[h],e.hasOwnProperty(f)&&void 0!==e[f]){var d=u?p[f]:e[f];this[f].set(d,t)}var y=!u;t&&!J.isNullOrUndefined(y)&&(y=t.throwOnReadOnly);for(h=0;h<l.length;h++)if(f=l[h],e.hasOwnProperty(f)&&void 0!==e[f]&&y)throw new o.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:c._getResourceString(q.cannotApplyPropertyThroughSetMethod,f),debugInfo:{errorLocation:f}});for(f in e)if(r.indexOf(f)<0&&i.indexOf(f)<0){var m=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),f);if(!m)throw new o.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:c._getResourceString(P.propertyDoesNotExist,f),debugInfo:{errorLocation:f}});if(y&&!m.set)throw new o.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:c._getResourceString(P.attemptingToSetReadOnlyProperty,f),debugInfo:{errorLocation:f}})}}catch(e){throw new o.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:c._getResourceString(s.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".set"},innerError:e})}},n}(h);e.ClientObject=x;var T=function(){function e(e){this.m_session=e}return e.prototype.executeAsync=function(e,t,n){var r={url:l.processQuery,method:"POST",headers:n.Headers,body:n.Body},o="";n.Headers&&(o=n.Headers[N.officeControlId]);var a={id:i.nextId(),type:1,flags:t,controlId:o,message:r,customData:e};return c.log(JSON.stringify(a)),this.m_session.sendMessageToHost(a).then((function(e){c.log("Received response: "+JSON.stringify(e));var t,n=e.message;if(200===n.statusCode)t={HttpStatusCode:n.statusCode,ErrorCode:null,ErrorMessage:null,Headers:n.headers,Body:c._parseResponseBody(n)};else{c.log("Error Response:"+n.body);var r=c._parseErrorResponse(n);t={HttpStatusCode:n.statusCode,ErrorCode:r.errorCode,ErrorMessage:r.errorMessage,Headers:n.headers,Body:null}}return t}))},e}(),I=function(e){function t(t){var n=e.call(this)||this;return n.m_bridge=t,n.m_bridge.addHostMessageHandler((function(e){if(3===e.type){var t=e.controlId;if(c.isNullOrEmptyString(t))M.getGenericEventRegistration(t)._handleRichApiMessage(e.message);else{var n=M.peekGenericEventRegistrationOrNull(t);n&&n._handleRichApiMessage(e.message),(n=M.peekGenericEventRegistrationOrNull(""))&&n._handleRichApiMessage(e.message)}}})),n}return __extends(t,e),t.getInstanceIfHostBridgeInited=function(){return i.instance?((c.isNullOrUndefined(t.s_instance)||t.s_instance.m_bridge!==i.instance)&&(t.s_instance=new t(i.instance)),t.s_instance):null},t.prototype._resolveRequestUrlAndHeaderInfo=function(){return c._createPromiseFromResult(null)},t.prototype._createRequestExecutorOrNull=function(){return c.log("NativeBridgeSession::CreateRequestExecutor"),new T(this)},t.prototype.getEventRegistration=function(e){return M.getGenericEventRegistration(e)},t.prototype.sendMessageToHost=function(e){return this.m_bridge.sendMessageToHostAndExpectResponse(e)},t}(n);e.HostBridgeSession=I;var w=function(t){function r(e){var i=t.call(this)||this;if(i.m_customRequestHeaders={},i.m_batchMode=0,i._onRunFinishedNotifiers=[],n._overrideSession)i.m_requestUrlAndHeaderInfoResolver=n._overrideSession;else if((J.isNullOrUndefined(e)||"string"==typeof e&&0===e.length)&&((e=r.defaultRequestUrlAndHeaders)||(e={url:l.localDocument,headers:{}})),"string"==typeof e)i.m_requestUrlAndHeaderInfo={url:e,headers:{}};else if(r.isRequestUrlAndHeaderInfoResolver(e))i.m_requestUrlAndHeaderInfoResolver=e;else{if(!r.isRequestUrlAndHeaderInfo(e))throw o.RuntimeError._createInvalidArgError({argumentName:"url"});var a=e;i.m_requestUrlAndHeaderInfo={url:a.url,headers:{}},c._copyHeaders(a.headers,i.m_requestUrlAndHeaderInfo.headers)}return!i.m_requestUrlAndHeaderInfoResolver&&i.m_requestUrlAndHeaderInfo&&c._isLocalDocumentUrl(i.m_requestUrlAndHeaderInfo.url)&&I.getInstanceIfHostBridgeInited()&&(i.m_requestUrlAndHeaderInfo=null,i.m_requestUrlAndHeaderInfoResolver=I.getInstanceIfHostBridgeInited()),i.m_requestUrlAndHeaderInfoResolver instanceof n&&(i.m_session=i.m_requestUrlAndHeaderInfoResolver),i._processingResult=!1,i._customData=N.iterativeExecutor,i.sync=i.sync.bind(i),i}return __extends(r,t),Object.defineProperty(r.prototype,"session",{get:function(){return this.m_session},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eventRegistration",{get:function(){return this.m_session?this.m_session.getEventRegistration(this._controlId):o.officeJsEventRegistration},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_url",{get:function(){return this.m_requestUrlAndHeaderInfo?this.m_requestUrlAndHeaderInfo.url:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_pendingRequest",{get:function(){return null==this.m_pendingRequest&&(this.m_pendingRequest=new D(this)),this.m_pendingRequest},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_controlId",{get:function(){var e=this.m_customRequestHeaders[N.officeControlId];return c.isNullOrUndefined(e)&&(e=""),e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"debugInfo",{get:function(){return{pendingStatements:new G(this._rootObjectPropertyName,this._pendingRequest._objectPaths,this._pendingRequest._actions,e._internalConfig.showDisposeInfoInDebugInfo).process()}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"trackedObjects",{get:function(){return this.m_trackedObjects||(this.m_trackedObjects=new V(this)),this.m_trackedObjects},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"requestHeaders",{get:function(){return this.m_customRequestHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"batchMode",{get:function(){return this.m_batchMode},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"getAdditionalHeaders",{set:function(e){this.m_getAdditionalHeaders=e},enumerable:!0,configurable:!0}),r.prototype.ensureInProgressBatchIfBatchMode=function(){if(1===this.m_batchMode&&!this.m_explicitBatchInProgress)throw J.createRuntimeError(a.generalException,c._getResourceString(q.notInsideBatch),null)},r.prototype.load=function(e,t){J.validateContext(this,e);var n=r._parseQueryOption(t);f.createQueryAction(this,e,n,e)},r.prototype.loadRecursive=function(e,t,n){if(!J.isPlainJsonObject(t))throw o.RuntimeError._createInvalidArgError({argumentName:"options"});var i={};for(var a in t)i[a]=r._parseQueryOption(t[a]);var s=R.createRecursiveQueryAction(this,e,{Queries:i,MaxDepth:n});this._pendingRequest.addActionResultHandler(s,e)},r.prototype.trace=function(e){R.createTraceAction(this,e,!0)},r.prototype._processOfficeJsErrorResponse=function(e,t){},r.prototype.ensureRequestUrlAndHeaderInfo=function(){var e=this;return J._createPromiseFromResult(null).then((function(){if(!e.m_requestUrlAndHeaderInfo)return e.m_requestUrlAndHeaderInfoResolver._resolveRequestUrlAndHeaderInfo().then((function(t){if(e.m_requestUrlAndHeaderInfo=t,e.m_requestUrlAndHeaderInfo||(e.m_requestUrlAndHeaderInfo={url:l.localDocument,headers:{}}),J.isNullOrEmptyString(e.m_requestUrlAndHeaderInfo.url)&&(e.m_requestUrlAndHeaderInfo.url=l.localDocument),e.m_requestUrlAndHeaderInfo.headers||(e.m_requestUrlAndHeaderInfo.headers={}),"function"==typeof e.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull){var n=e.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull();n&&(e._requestExecutor=n)}}))}))},r.prototype.syncPrivateMain=function(){var e=this;return this.ensureRequestUrlAndHeaderInfo().then((function(){var t=e._pendingRequest;return e.m_pendingRequest=null,e.processPreSyncPromises(t).then((function(){return e.syncPrivate(t)}))}))},r.prototype.syncPrivate=function(t){var n=this;if(p.isMock())return c._createPromiseFromResult(null);if(!t.hasActions)return this.processPendingEventHandlers(t);var r=t.buildRequestMessageBodyAndRequestFlags(),i=r.body,a=r.flags;this._requestFlagModifier&&(a|=this._requestFlagModifier),this._requestExecutor||(c._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)?this._requestExecutor=new W(this):this._requestExecutor=new O);var s=this._requestExecutor,u={};c._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,u),c._copyHeaders(this.m_customRequestHeaders,u),delete this.m_customRequestHeaders[N.officeScriptEventId],this.m_getAdditionalHeaders&&c._copyHeaders(this.m_getAdditionalHeaders(),u);var f=p._getCurrentTestNameWithSequenceId();f&&(u[l.testRequestNameHeader]=f);var h={Url:this.m_requestUrlAndHeaderInfo.url,Headers:u,Body:i};t.invalidatePendingInvalidObjectPaths();var d=null,y=null;return this._lastSyncStart="undefined"==typeof performance?Date.now():performance.now(),this._lastRequestFlags=a,s.executeAsync(this._customData,a,h).then((function(r){return n._lastSyncEnd="undefined"==typeof performance?Date.now():performance.now(),e.config.executePerfLogFunc&&e.config.executePerfLogFunc({syncStart:n._lastSyncStart,syncEnd:n._lastSyncEnd}),d=n.processRequestExecutorResponseMessage(t,r),n.processPendingEventHandlers(t).catch((function(e){c.log("Error in processPendingEventHandlers"),c.log(JSON.stringify(e)),y=e}))})).then((function(){if(d)throw c.log("Throw error from response: "+JSON.stringify(d)),d;if(y){c.log("Throw error from ProcessEventHandler: "+JSON.stringify(y));var e=null;if(y instanceof o.RuntimeError)(e=y).traceMessages=t._responseTraceMessages;else{var n=null;n="string"==typeof y?y:y.message,J.isNullOrEmptyString(n)&&(n=c._getResourceString(q.cannotRegisterEvent)),e=new o.RuntimeError({code:A.cannotRegisterEvent,httpStatusCode:400,message:n,traceMessages:t._responseTraceMessages})}throw e}}))},r.prototype.processRequestExecutorResponseMessage=function(t,n){n.Body&&n.Body.TraceIds&&t._setResponseTraceIds(n.Body.TraceIds);var r=t._responseTraceMessages,i=null;if(n.Body){if(n.Body.Error&&n.Body.Error.ActionIndex>=0){var a=new G(this._rootObjectPropertyName,t._objectPaths,t._actions,!1,!0),s=a.processForDebugStatementInfo(n.Body.Error.ActionIndex);i={statement:s.statement,surroundingStatements:s.surroundingStatements,fullStatements:["Please enable config.extendedErrorLogging to see full statements."]},e.config.extendedErrorLogging&&(a=new G(this._rootObjectPropertyName,t._objectPaths,t._actions,!1,!1),i.fullStatements=a.process())}var l=null;if(n.Body.Results?l=n.Body.Results:n.Body.ProcessedResults&&n.Body.ProcessedResults.Results&&(l=n.Body.ProcessedResults.Results),l){this._processingResult=!0;try{t.processResponse(l)}finally{this._processingResult=!1}}}if(!J.isNullOrEmptyString(n.ErrorCode))return new o.RuntimeError({code:n.ErrorCode,httpStatusCode:n.HttpStatusCode,message:n.ErrorMessage,traceMessages:r,data:{responseBody:n.RawErrorResponseBody}});if(n.Body&&n.Body.Error){var u={errorLocation:n.Body.Error.Location};return i&&(u.statement=i.statement,u.surroundingStatements=i.surroundingStatements,u.fullStatements=i.fullStatements),new o.RuntimeError({code:n.Body.Error.Code,httpStatusCode:n.Body.Error.HttpStatusCode,message:n.Body.Error.Message,traceMessages:r,debugInfo:u})}return null},r.prototype.processPendingEventHandlers=function(e){for(var t=J._createPromiseFromResult(null),n=0;n<e._pendingProcessEventHandlers.length;n++){var r=e._pendingProcessEventHandlers[n];t=t.then(this.createProcessOneEventHandlersFunc(r,e))}return t},r.prototype.createProcessOneEventHandlersFunc=function(e,t){return function(){return e._processRegistration(t)}},r.prototype.processPreSyncPromises=function(e){for(var t=J._createPromiseFromResult(null),n=0;n<e._preSyncPromises.length;n++){var r=e._preSyncPromises[n];t=t.then(this.createProcessOneProSyncFunc(r))}return t},r.prototype.createProcessOneProSyncFunc=function(e){return function(){return e}},r.prototype.sync=function(e){return p.isMock()?c._createPromiseFromResult(e):this.syncPrivateMain().then((function(){return e}))},r.prototype.batch=function(e){var t=this;if(1!==this.m_batchMode)return c._createPromiseFromException(J.createRuntimeError(a.generalException,null,null));if(this.m_explicitBatchInProgress)return c._createPromiseFromException(J.createRuntimeError(a.generalException,c._getResourceString(q.pendingBatchInProgress),null));if(J.isNullOrUndefined(e))return J._createPromiseFromResult(null);this.m_explicitBatchInProgress=!0;var n,r,o,i=this.m_pendingRequest;this.m_pendingRequest=new D(this);try{n=e(this._rootObject,this)}catch(e){return this.m_explicitBatchInProgress=!1,this.m_pendingRequest=i,c._createPromiseFromException(e)}return"object"==typeof n&&n&&"function"==typeof n.then?o=J._createPromiseFromResult(null).then((function(){return n})).then((function(e){return t.m_explicitBatchInProgress=!1,r=t.m_pendingRequest,t.m_pendingRequest=i,e})).catch((function(e){return t.m_explicitBatchInProgress=!1,r=t.m_pendingRequest,t.m_pendingRequest=i,c._createPromiseFromException(e)})):(this.m_explicitBatchInProgress=!1,r=this.m_pendingRequest,this.m_pendingRequest=i,o=J._createPromiseFromResult(n)),o.then((function(e){return t.ensureRequestUrlAndHeaderInfo().then((function(){return t.syncPrivate(r)})).then((function(){return e}))}))},r._run=function(e,t,n,o,i,a){return void 0===n&&(n=3),void 0===o&&(o=5e3),r._runCommon("run",null,e,0,t,n,o,null,null,i,a)},r.isValidRequestInfo=function(e){return"string"==typeof e||r.isRequestUrlAndHeaderInfo(e)||r.isRequestUrlAndHeaderInfoResolver(e)},r.isRequestUrlAndHeaderInfo=function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})&&!J.isNullOrUndefined(e.url)},r.isRequestUrlAndHeaderInfoResolver=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e._resolveRequestUrlAndHeaderInfo},r._runBatch=function(e,t,n,o,i,a,s,l,u){return void 0===a&&(a=3),void 0===s&&(s=5e3),r._runBatchCommon(0,e,t,n,a,s,o,i,l,u)},r._runExplicitBatch=function(e,t,n,o,i,a,s,l,u){return void 0===a&&(a=3),void 0===s&&(s=5e3),r._runBatchCommon(1,e,t,n,a,s,o,i,l,u)},r._runBatchCommon=function(e,t,n,o,i,a,s,l,u,c){var p,f;void 0===i&&(i=3),void 0===a&&(a=5e3);var h=null,d=null,y=null,m=0,g=null;if(n.length>0)if(r.isValidRequestInfo(n[0]))h=n[0],m=1;else if(J.isPlainJsonObject(n[0])){if(null!=(h=(g=n[0]).session)&&!r.isValidRequestInfo(h))return r.createErrorPromise(t);d=g.getAdditionalHeaders,y=g.previousObjects,m=1}if(n.length==m+1)f=n[m+0];else{if(null!=g||n.length!=m+2)return r.createErrorPromise(t);y=n[m+0],f=n[m+1]}if(null!=y)if(y instanceof x)p=function(){return y.context};else if(y instanceof r)p=function(){return y};else{if(!Array.isArray(y))return r.createErrorPromise(t);var _=y;if(0==_.length)return r.createErrorPromise(t);for(var b=0;b<_.length;b++){if(!(_[b]instanceof x))return r.createErrorPromise(t);if(_[b].context!=_[0].context)return r.createErrorPromise(t,q.invalidRequestContext)}p=function(){return _[0].context}}else p=o;var v=null;s&&(v=function(e){return s(g||{},e)});var O=null;return l&&(O=function(e){return l(g||{},e)}),r._runCommon(t,h,p,e,f,i,a,v,O,u,c,d)},r.createErrorPromise=function(e,t){return void 0===t&&(t=s.invalidArgument),c._createPromiseFromException(J.createRuntimeError(t,c._getResourceString(t),e))},r._runCommon=function(t,o,i,a,s,l,u,p,f,h,d,y){n._overrideSession&&(o=n._overrideSession);var m,g,_,b=c.createPromise((function(e,t){e()})),v=!1;return b.then((function(){if((m=i(o)).getAdditionalHeaders=y,m._autoCleanup)return new e.Promise((function(e,t){m._onRunFinishedNotifiers.push((function(){m._autoCleanup=!0,e()}))}));m._autoCleanup=!0})).then((function(){return"function"!=typeof s?r.createErrorPromise(t):(_=m.m_batchMode,m.m_batchMode=a,p&&p(m),e=s(1==a?m.batch.bind(m):m),(J.isNullOrUndefined(e)||"function"!=typeof e.then)&&J.throwError(q.runMustReturnPromise),e);var e})).then((function(e){return 1===a?e:m.sync(e)})).then((function(e){v=!0,g=e})).catch((function(e){g=e})).then((function(){var e=m.trackedObjects._retrieveAndClearAutoCleanupList();for(var t in m._autoCleanup=!1,m.m_batchMode=_,e)e[t]._objectPath.isValid=!1;var n=0;if(J._synchronousCleanup||r.isRequestUrlAndHeaderInfoResolver(o))return i();function i(){n++;var t=m.m_pendingRequest,r=m.m_batchMode,o=new D(m);m.m_pendingRequest=o,m.m_batchMode=0;try{for(var a in e)m.trackedObjects.remove(e[a]);f&&f(m)}finally{m.m_batchMode=r,m.m_pendingRequest=t}return m.syncPrivate(o).then((function(){h&&h(n)})).catch((function(){d&&d(n),n<l&&setTimeout((function(){i()}),u)}))}i()})).then((function(){m._onRunFinishedNotifiers&&m._onRunFinishedNotifiers.length>0&&m._onRunFinishedNotifiers.shift()();if(v)return g;throw g}))},r}(m);e.ClientRequestContext=w;var F=function(){function e(e,t){this.m_proxy=e,this.m_shouldPolyfill=t;var n=e[N.scalarPropertyNames],r=e[N.navigationPropertyNames],o=e[N.className],i=e[N.isCollection];if(n)for(var a=0;a<n.length;a++)J.definePropertyThrowUnloadedException(this,o,n[a]);if(r)for(a=0;a<r.length;a++)J.definePropertyThrowUnloadedException(this,o,r[a]);i&&J.definePropertyThrowUnloadedException(this,o,N.itemsLowerCase)}return Object.defineProperty(e.prototype,"$proxy",{get:function(){return this.m_proxy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"$isNullObject",{get:function(){if(!this.m_isLoaded)throw new o.RuntimeError({code:A.valueNotLoaded,httpStatusCode:400,message:c._getResourceString(q.valueNotLoaded),debugInfo:{errorLocation:"retrieveResult.$isNullObject"}});return this.m_isNullObject},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){if(this.m_isLoaded)return this.m_isNullObject?null:(J.isUndefined(this.m_json)&&(this.m_json=J.purifyJson(this.m_value)),this.m_json)},e.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.prototype._handleResult=function(e){this.m_isLoaded=!0,null===e||"object"==typeof e&&e&&e._IsNull?(this.m_isNullObject=!0,e=null):this.m_isNullObject=!1,this.m_shouldPolyfill&&(e=J.changePropertyNameToCamelLowerCase(e)),this.m_value=e,this.m_proxy._handleRetrieveResult(e,this)},e}(),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getItemAt="GetItemAt",t.index="_Index",t.iterativeExecutor="IterativeExecutor",t.isTracked="_IsTracked",t.eventMessageCategory=65536,t.eventWorkbookId="Workbook",t.eventSourceRemote="Remote",t.proxy="$proxy",t.className="_className",t.isCollection="_isCollection",t.collectionPropertyPath="_collectionPropertyPath",t.objectPathInfoDoNotKeepReferenceFieldName="D",t.officeScriptEventId="X-OfficeScriptEventId",t.officeScriptFireRecordingEvent="X-OfficeScriptFireRecordingEvent",t.officeControlId="X-OfficeControlId",t}(C);e.Constants=N;var D=function(e){function t(t){var n=e.call(this,t)||this;return n.m_context=t,n.m_pendingProcessEventHandlers=[],n.m_pendingEventHandlerActions={},n.m_traceInfos={},n.m_responseTraceIds={},n.m_responseTraceMessages=[],n}return __extends(t,e),Object.defineProperty(t.prototype,"traceInfos",{get:function(){return this.m_traceInfos},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_responseTraceMessages",{get:function(){return this.m_responseTraceMessages},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_responseTraceIds",{get:function(){return this.m_responseTraceIds},enumerable:!0,configurable:!0}),t.prototype._setResponseTraceIds=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];this.m_responseTraceIds[n]=n;var r=this.m_traceInfos[n];c.isNullOrUndefined(r)||this.m_responseTraceMessages.push(r)}},t.prototype.addTrace=function(e,t){this.m_traceInfos[e]=t},t.prototype._addPendingEventHandlerAction=function(e,t){this.m_pendingEventHandlerActions[e._id]||(this.m_pendingEventHandlerActions[e._id]=[],this.m_pendingProcessEventHandlers.push(e)),this.m_pendingEventHandlerActions[e._id].push(t)},Object.defineProperty(t.prototype,"_pendingProcessEventHandlers",{get:function(){return this.m_pendingProcessEventHandlers},enumerable:!0,configurable:!0}),t.prototype._getPendingEventHandlerActions=function(e){return this.m_pendingEventHandlerActions[e._id]},t}(_);e.ClientRequest=D;var k=function(){function e(e,t,n,r){var o=this;this.m_id=e._nextId(),this.m_context=e,this.m_name=n,this.m_handlers=[],this.m_registered=!1,this.m_eventInfo=r,this.m_callback=function(e){o.m_eventInfo.eventArgsTransformFunc(e).then((function(e){return o.fireEvent(e)}))}}return Object.defineProperty(e.prototype,"_registered",{get:function(){return this.m_registered},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_handlers",{get:function(){return this.m_handlers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_callback",{get:function(){return this.m_callback},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=R.createTraceAction(this.m_context,null,!1);return this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:0}),new j(this.m_context,this,e)},e.prototype.remove=function(e){var t=R.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:1})},e.prototype.removeAll=function(){var e=R.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:e.actionInfo.Id,handler:null,operation:2})},e.prototype._processRegistration=function(e){var t=this,n=c._createPromiseFromResult(null),r=e._getPendingEventHandlerActions(this);if(!r)return n;for(var o=[],i=0;i<this.m_handlers.length;i++)o.push(this.m_handlers[i]);var a=!1;for(i=0;i<r.length;i++)if(e._responseTraceIds[r[i].id])switch(a=!0,r[i].operation){case 0:o.push(r[i].handler);break;case 1:for(var s=o.length-1;s>=0;s--)if(o[s]===r[i].handler){o.splice(s,1);break}break;case 2:o=[]}return a&&(!this.m_registered&&o.length>0?n=n.then((function(){return t.m_eventInfo.registerFunc(t.m_callback)})).then((function(){return t.m_registered=!0})):this.m_registered&&0==o.length&&(n=n.then((function(){return t.m_eventInfo.unregisterFunc(t.m_callback)})).catch((function(e){c.log("Error when unregister event: "+JSON.stringify(e))})).then((function(){return t.m_registered=!1}))),n=n.then((function(){return t.m_handlers=o}))),n},e.prototype.fireEvent=function(e){for(var t=[],n=0;n<this.m_handlers.length;n++){var r=this.m_handlers[n],o=c._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(r,e)).catch((function(e){c.log("Error when invoke handler: "+JSON.stringify(e))}));t.push(o)}c.Promise.all(t)},e.prototype.createFireOneEventHandlerFunc=function(e,t){return function(){return e(t)}},e}();e.EventHandlers=k;var j=function(){function e(e,t,n){this.m_context=e,this.m_allHandlers=t,this.m_handler=n}return Object.defineProperty(e.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),e.prototype.remove=function(){this.m_allHandlers&&this.m_handler&&(this.m_allHandlers.remove(this.m_handler),this.m_allHandlers=null,this.m_handler=null)},e}();e.EventHandlerResult=j,function(e){var t=function(){function t(){}return t.prototype.register=function(t,n,r){switch(t){case 4:return J.promisify((function(e){return Office.context.document.bindings.getByIdAsync(n,e)})).then((function(e){return J.promisify((function(t){return e.addHandlerAsync(Office.EventType.BindingDataChanged,r,t)}))}));case 3:return J.promisify((function(e){return Office.context.document.bindings.getByIdAsync(n,e)})).then((function(e){return J.promisify((function(t){return e.addHandlerAsync(Office.EventType.BindingSelectionChanged,r,t)}))}));case 2:return J.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,r,e)}));case 1:return J.promisify((function(e){return Office.context.document.settings.addHandlerAsync(Office.EventType.SettingsChanged,r,e)}));case 5:return OSF.DDA.RichApi.richApiMessageManager.register(r);case 13:return J.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDeleted,r,{id:n},e)}));case 14:return J.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectSelectionChanged,r,{id:n},e)}));case 15:return J.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDataChanged,r,{id:n},e)}));case 16:return J.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.ContentControlAdded,r,{id:n},e)}));default:throw e.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},t.prototype.unregister=function(t,n,r){switch(t){case 4:return J.promisify((function(e){return Office.context.document.bindings.getByIdAsync(n,e)})).then((function(e){return J.promisify((function(t){return e.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:r},t)}))}));case 3:return J.promisify((function(e){return Office.context.document.bindings.getByIdAsync(n,e)})).then((function(e){return J.promisify((function(t){return e.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:r},t)}))}));case 2:return J.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:r},e)}));case 1:return J.promisify((function(e){return Office.context.document.settings.removeHandlerAsync(Office.EventType.SettingsChanged,{handler:r},e)}));case 5:return J.promisify((function(e){return OSF.DDA.RichApi.richApiMessageManager.removeHandlerAsync("richApiMessage",{handler:r},e)}));case 13:return J.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDeleted,{id:n,handler:r},e)}));case 14:return J.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectSelectionChanged,{id:n,handler:r},e)}));case 15:return J.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDataChanged,{id:n,handler:r},e)}));case 16:return J.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ContentControlAdded,{id:n,handler:r},e)}));default:throw e.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},t}();e.officeJsEventRegistration=new t}(o=e._Internal||(e._Internal={}));var U=function(){function e(e,t){this.m_handlersByEventByTarget={},this.m_registerEventImpl=e,this.m_unregisterEventImpl=t}return e.getTargetIdOrDefault=function(e){return J.isNullOrUndefined(e)?"":e},e.prototype.getHandlers=function(t,n){n=e.getTargetIdOrDefault(n);var r=this.m_handlersByEventByTarget[t];r||(r={},this.m_handlersByEventByTarget[t]=r);var o=r[n];return o||(o=[],r[n]=o),o},e.prototype.callHandlers=function(e,t,n){for(var r=this.getHandlers(e,t),o=0;o<r.length;o++)r[o](n)},e.prototype.hasHandlers=function(e,t){return this.getHandlers(e,t).length>0},e.prototype.register=function(e,t,n){if(!n)throw o.RuntimeError._createInvalidArgError({argumentName:"handler"});var r=this.getHandlers(e,t);return r.push(n),1===r.length?this.m_registerEventImpl(e,t):J._createPromiseFromResult(null)},e.prototype.unregister=function(e,t,n){if(!n)throw o.RuntimeError._createInvalidArgError({argumentName:"handler"});for(var r=this.getHandlers(e,t),i=r.length-1;i>=0;i--)if(r[i]===n){r.splice(i,1);break}return 0===r.length?this.m_unregisterEventImpl(e,t):J._createPromiseFromResult(null)},e}();e.EventRegistration=U;var M=function(){function e(){this.m_eventRegistration=new U(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this)),this.m_richApiMessageHandler=this._handleRichApiMessage.bind(this)}return e.prototype.ready=function(){var t=this;return this.m_ready||(e._testReadyImpl?this.m_ready=e._testReadyImpl().then((function(){t.m_isReady=!0})):i.instance?this.m_ready=J._createPromiseFromResult(null).then((function(){t.m_isReady=!0})):this.m_ready=o.officeJsEventRegistration.register(5,"",this.m_richApiMessageHandler).then((function(){t.m_isReady=!0}))),this.m_ready},Object.defineProperty(e.prototype,"isReady",{get:function(){return this.m_isReady},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t,n){var r=this;return this.ready().then((function(){return r.m_eventRegistration.register(e,t,n)}))},e.prototype.unregister=function(e,t,n){var r=this;return this.ready().then((function(){return r.m_eventRegistration.unregister(e,t,n)}))},e.prototype._registerEventImpl=function(e,t){return J._createPromiseFromResult(null)},e.prototype._unregisterEventImpl=function(e,t){return J._createPromiseFromResult(null)},e.prototype._handleRichApiMessage=function(e){if(e&&e.entries)for(var t=0;t<e.entries.length;t++){var n=e.entries[t];if(n.messageCategory==N.eventMessageCategory){c._logEnabled&&c.log(JSON.stringify(n));var r=n.messageType,o=n.targetId;if(this.m_eventRegistration.hasHandlers(r,o)){var i=JSON.parse(n.message);n.isRemoteOverride&&(i.source=N.eventSourceRemote),this.m_eventRegistration.callHandlers(r,o,i)}}}},e.getGenericEventRegistration=function(t){c.isNullOrUndefined(t)&&(t="");var n=e.s_genericEventRegistrations[t];return n||(n=new e,e.s_genericEventRegistrations[t]=n),n},e.peekGenericEventRegistrationOrNull=function(t){return c.isNullOrUndefined(t)&&(t=""),e.s_genericEventRegistrations[t]},e.richApiMessageEventCategory=65536,e.s_genericEventRegistrations={},e}();e.GenericEventRegistration=M,e._testSetRichApiMessageReadyImpl=function(e){M._testReadyImpl=e},e._testTriggerRichApiMessageEvent=function(e){M.getGenericEventRegistration("")._handleRichApiMessage(e)};var H=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r,o)||this;return i.m_genericEventInfo=o,i}return __extends(t,e),t.prototype.add=function(e){var t=this;0==this._handlers.length&&this.m_genericEventInfo.registerFunc&&this.m_genericEventInfo.registerFunc();var n=this._context._controlId;return M.getGenericEventRegistration(n).isReady||this._context._pendingRequest._addPreSyncPromise(M.getGenericEventRegistration(n).ready()),R.createTraceMarkerForCallback(this._context,(function(){t._handlers.push(e),1==t._handlers.length&&M.getGenericEventRegistration(n).register(t.m_genericEventInfo.eventType,t.m_genericEventInfo.getTargetIdFunc(),t._callback)})),new j(this._context,this,e)},t.prototype.remove=function(e){var t=this;1==this._handlers.length&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();var n=this._context._controlId;R.createTraceMarkerForCallback(this._context,(function(){for(var r=t._handlers,o=r.length-1;o>=0;o--)if(r[o]===e){r.splice(o,1);break}0==r.length&&M.getGenericEventRegistration(n).unregister(t.m_genericEventInfo.eventType,t.m_genericEventInfo.getTargetIdFunc(),t._callback)}))},t.prototype.removeAll=function(){},t}(k);e.GenericEventHandlers=H;var L=function(){function e(e){this.m_clientObject=e}return e.prototype._handleResult=function(e){this.m_clientObject._handleIdResult(e)},e}(),B=function(){function e(){}return e.createGlobalObjectObjectPath=function(e){var t={Id:e._nextId(),ObjectPathType:1,Name:""};return new y(t,null,!1,!1,1,4)},e.createNewObjectObjectPath=function(e,t,n,r){var o={Id:e._nextId(),ObjectPathType:2,Name:t};return new y(o,null,n,!1,1,J._fixupApiFlags(r))},e.createPropertyObjectPath=function(e,t,n,r,o,i){var a={Id:e._nextId(),ObjectPathType:4,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id};return new y(a,t._objectPath,r,o,1,J._fixupApiFlags(i))},e.createIndexerObjectPath=function(e,t,n){var r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=n,new y(r,t._objectPath,!1,!1,1,4)},e.createIndexerObjectPathUsingParentPath=function(e,t,n){var r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=n,new y(r,t,!1,!1,1,4)},e.createMethodObjectPath=function(e,t,n,r,o,i,a,s,l){var u={Id:e._nextId(),ObjectPathType:3,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},c=J.setMethodArguments(e,u.ArgumentInfo,o),p=new y(u,t._objectPath,i,a,r,J._fixupApiFlags(l));return p.argumentObjectPaths=c,p.getByIdMethodName=s,p},e.createReferenceIdObjectPath=function(e,t){var n={Id:e._nextId(),ObjectPathType:6,Name:t,ArgumentInfo:{}};return new y(n,null,!1,!1,1,4)},e.createChildItemObjectPathUsingIndexerOrGetItemAt=function(t,n,r,o,i){var a=J.tryGetObjectIdFromLoadOrRetrieveResult(o);return t&&!J.isNullOrUndefined(a)?e.createChildItemObjectPathUsingIndexer(n,r,o):e.createChildItemObjectPathUsingGetItemAt(n,r,o,i)},e.createChildItemObjectPathUsingIndexer=function(e,t,n){var r=J.tryGetObjectIdFromLoadOrRetrieveResult(n),o=o={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return o.ArgumentInfo.Arguments=[r],new y(o,t._objectPath,!1,!1,1,4)},e.createChildItemObjectPathUsingGetItemAt=function(e,t,n,r){var o=n[N.index];o&&(r=o);var i={Id:e._nextId(),ObjectPathType:3,Name:N.getItemAt,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return i.ArgumentInfo.Arguments=[r],new y(i,t._objectPath,!1,!1,1,4)},e}();e.ObjectPathFactory=B;var W=function(){function t(e){this.m_context=e}return t.prototype.executeAsync=function(n,r,o){var i=this,a=u.buildMessageArrayForIRequestExecutor(n,r,o,t.SourceLibHeaderValue);return new e.Promise((function(e,t){OSF.DDA.RichApi.executeRichApiRequestAsync(a,(function(t){var n;c.log("Response:"),c.log(JSON.stringify(t)),"succeeded"==t.status?n=u.buildResponseOnSuccess(u.getResponseBody(t),u.getResponseHeaders(t)):(n=u.buildResponseOnError(t.error.code,t.error.message),i.m_context._processOfficeJsErrorResponse(t.error.code,n)),e(n)}))}))},t.SourceLibHeaderValue="officejs",t}(),V=function(){function e(e){this._autoCleanupList={},this.m_context=e}return e.prototype.add=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._addCommon(e,!0)})):this._addCommon(e,!0)},e.prototype._autoAdd=function(e){this._addCommon(e,!1),this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e},e.prototype._autoTrackIfNecessaryWhenHandleObjectResultValue=function(e,t){this.m_context._autoCleanup&&!e[N.isTracked]&&e!==this.m_context._rootObject&&t&&!J.isNullOrEmptyString(t[N.referenceId])&&(this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e,e[N.isTracked]=!0)},e.prototype._addCommon=function(e,t){if(e[N.isTracked])t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id];else{var n=e[N.referenceId];if(e._objectPath.objectPathInfo[N.objectPathInfoDoNotKeepReferenceFieldName])throw J.createRuntimeError(a.generalException,c._getResourceString(q.objectIsUntracked),null);J.isNullOrEmptyString(n)&&e._KeepReference&&(e._KeepReference(),R.createInstantiateAction(this.m_context,e),t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id],e[N.isTracked]=!0)}},e.prototype.remove=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._removeCommon(e)})):this._removeCommon(e)},e.prototype._removeCommon=function(e){e._objectPath.objectPathInfo[N.objectPathInfoDoNotKeepReferenceFieldName]=!0,e.context._pendingRequest._removeKeepReferenceAction(e._objectPath.objectPathInfo.Id);var t=e[N.referenceId];if(!J.isNullOrEmptyString(t)){var n=this.m_context._rootObject;n._RemoveReference&&n._RemoveReference(t)}delete e[N.isTracked]},e.prototype._retrieveAndClearAutoCleanupList=function(){var e=this._autoCleanupList;return this._autoCleanupList={},e},e}();e.TrackedObjects=V;var G=function(){function t(e,t,n,r,o){e||(e="root"),this.m_globalObjName=e,this.m_referencedObjectPaths=t,this.m_actions=n,this.m_statements=[],this.m_variableNameForObjectPathMap={},this.m_variableNameToObjectPathMap={},this.m_declaredObjectPathMap={},this.m_showDispose=r,this.m_removePII=o}return t.prototype.process=function(){this.m_showDispose&&D._calculateLastUsedObjectPathIds(this.m_actions);for(var e=0;e<this.m_actions.length;e++)this.processOneAction(this.m_actions[e]);return this.m_statements},t.prototype.processForDebugStatementInfo=function(e){this.m_showDispose&&D._calculateLastUsedObjectPathIds(this.m_actions);this.m_statements=[];for(var t=-1,n=0;n<this.m_actions.length&&(this.processOneAction(this.m_actions[n]),e==n&&(t=this.m_statements.length-1),!(t>=0&&this.m_statements.length>t+5+1));n++);if(t<0)return null;var r=t-5;r<0&&(r=0);var o=t+1+5;o>this.m_statements.length&&(o=this.m_statements.length);var i=[];0!=r&&i.push("...");for(var a=r;a<t;a++)i.push(this.m_statements[a]);i.push("// >>>>>"),i.push(this.m_statements[t]),i.push("// <<<<<");for(var s=t+1;s<o;s++)i.push(this.m_statements[s]);return o<this.m_statements.length&&i.push("..."),{statement:this.m_statements[t],surroundingStatements:i}},t.prototype.processOneAction=function(e){switch(e.actionInfo.ActionType){case 1:this.processInstantiateAction(e);break;case 3:this.processMethodAction(e);break;case 2:this.processQueryAction(e);break;case 7:this.processQueryAsJsonAction(e);break;case 6:this.processRecursiveQueryAction(e);break;case 4:this.processSetPropertyAction(e);break;case 5:this.processTraceAction(e);break;case 8:this.processEnsureUnchangedAction(e);break;case 9:this.processUpdateAction(e)}},t.prototype.processInstantiateAction=function(e){var t=e.actionInfo.ObjectPathId,n=this.m_referencedObjectPaths[t],r=this.getObjVarName(t);if(this.m_declaredObjectPathMap[t]){o="// Instantiate {"+r+"}";o=this.appendDisposeCommentIfRelevant(o,e),this.m_statements.push(o)}else{var o="var "+r+" = "+this.buildObjectPathExpressionWithParent(n)+";";o=this.appendDisposeCommentIfRelevant(o,e),this.m_statements.push(o),this.m_declaredObjectPathMap[t]=r}},t.prototype.processMethodAction=function(t){var n=t.actionInfo.Name;if("_KeepReference"===n){if(!e._internalConfig.showInternalApiInDebugInfo)return;n="track"}var r=this.getObjVarName(t.actionInfo.ObjectPathId)+"."+J._toCamelLowerCase(n)+"("+this.buildArgumentsExpression(t.actionInfo.ArgumentInfo)+");";r=this.appendDisposeCommentIfRelevant(r,t),this.m_statements.push(r)},t.prototype.processQueryAction=function(e){var t=this.buildQueryExpression(e),n=this.getObjVarName(e.actionInfo.ObjectPathId)+".load("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},t.prototype.processQueryAsJsonAction=function(e){var t=this.buildQueryExpression(e),n=this.getObjVarName(e.actionInfo.ObjectPathId)+".retrieve("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},t.prototype.processRecursiveQueryAction=function(e){var t="";e.actionInfo.RecursiveQueryInfo&&(t=JSON.stringify(e.actionInfo.RecursiveQueryInfo));var n=this.getObjVarName(e.actionInfo.ObjectPathId)+".loadRecursive("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},t.prototype.processSetPropertyAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+J._toCamelLowerCase(e.actionInfo.Name)+" = "+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+";";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},t.prototype.processTraceAction=function(e){var t="context.trace();";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},t.prototype.processEnsureUnchangedAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+".ensureUnchanged("+JSON.stringify(e.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},t.prototype.processUpdateAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+".update("+JSON.stringify(e.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},t.prototype.appendDisposeCommentIfRelevant=function(e,t){var n=this;if(this.m_showDispose){var r=t.actionInfo.L;if(r&&r.length>0)return e+" // And then dispose {"+r.map((function(e){return n.getObjVarName(e)})).join(", ")+"}"}return e},t.prototype.buildQueryExpression=function(e){if(e.actionInfo.QueryInfo){var t={};return t.select=e.actionInfo.QueryInfo.Select,t.expand=e.actionInfo.QueryInfo.Expand,t.skip=e.actionInfo.QueryInfo.Skip,t.top=e.actionInfo.QueryInfo.Top,void 0===t.top&&void 0===t.skip&&void 0===t.expand?void 0===t.select?"":JSON.stringify(t.select):JSON.stringify(t)}return""},t.prototype.buildObjectPathExpressionWithParent=function(e){return(5==e.objectPathInfo.ObjectPathType||3==e.objectPathInfo.ObjectPathType||4==e.objectPathInfo.ObjectPathType)&&e.objectPathInfo.ParentObjectPathId?this.getObjVarName(e.objectPathInfo.ParentObjectPathId)+"."+this.buildObjectPathExpression(e):this.buildObjectPathExpression(e)},t.prototype.buildObjectPathExpression=function(e){var t=this.buildObjectPathInfoExpression(e.objectPathInfo),n=e.originalObjectPathInfo;return n&&(t=t+" /* originally "+this.buildObjectPathInfoExpression(n)+" */"),t},t.prototype.buildObjectPathInfoExpression=function(e){switch(e.ObjectPathType){case 1:return"context."+this.m_globalObjName;case 5:return"getItem("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 3:return J._toCamelLowerCase(e.Name)+"("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 2:return e.Name+".newObject()";case 7:return"null";case 4:return J._toCamelLowerCase(e.Name);case 6:return"context."+this.m_globalObjName+"._getObjectByReferenceId("+JSON.stringify(e.Name)+")"}},t.prototype.buildArgumentsExpression=function(e){var t="";if(!e.Arguments||0===e.Arguments.length)return t;if(this.m_removePII)return void 0===e.Arguments[0]?t:"...";for(var n=0;n<e.Arguments.length;n++)n>0&&(t+=", "),t+=this.buildArgumentLiteral(e.Arguments[n],e.ReferencedObjectPathIds?e.ReferencedObjectPathIds[n]:null);return"undefined"===t&&(t=""),t},t.prototype.buildArgumentLiteral=function(e,t){return"number"==typeof e&&e===t?this.getObjVarName(t):JSON.stringify(e)},t.prototype.getObjVarNameBase=function(e){var t="v",n=this.m_referencedObjectPaths[e];if(n)switch(n.objectPathInfo.ObjectPathType){case 1:t=this.m_globalObjName;break;case 4:t=J._toCamelLowerCase(n.objectPathInfo.Name);break;case 3:var r=n.objectPathInfo.Name;r.length>3&&"Get"===r.substr(0,3)&&(r=r.substr(3)),t=J._toCamelLowerCase(r);break;case 5:var o=this.getObjVarNameBase(n.objectPathInfo.ParentObjectPathId);t="s"===o.charAt(o.length-1)?o.substr(0,o.length-1):o+"Item"}return t},t.prototype.getObjVarName=function(e){if(this.m_variableNameForObjectPathMap[e])return this.m_variableNameForObjectPathMap[e];var t=this.getObjVarNameBase(e);if(!this.m_variableNameToObjectPathMap[t])return this.m_variableNameForObjectPathMap[e]=t,this.m_variableNameToObjectPathMap[t]=e,t;for(var n=1;this.m_variableNameToObjectPathMap[t+n.toString()];)n++;return t+=n.toString(),this.m_variableNameForObjectPathMap[e]=t,this.m_variableNameToObjectPathMap[t]=e,t},t}(),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.cannotRegisterEvent="CannotRegisterEvent",t.connectionFailureWithStatus="ConnectionFailureWithStatus",t.connectionFailureWithDetails="ConnectionFailureWithDetails",t.propertyNotLoaded="PropertyNotLoaded",t.runMustReturnPromise="RunMustReturnPromise",t.moreInfoInnerError="MoreInfoInnerError",t.cannotApplyPropertyThroughSetMethod="CannotApplyPropertyThroughSetMethod",t.invalidOperationInCellEditMode="InvalidOperationInCellEditMode",t.objectIsUntracked="ObjectIsUntracked",t.customFunctionDefintionMissing="CustomFunctionDefintionMissing",t.customFunctionImplementationMissing="CustomFunctionImplementationMissing",t.customFunctionNameContainsBadChars="CustomFunctionNameContainsBadChars",t.customFunctionNameCannotSplit="CustomFunctionNameCannotSplit",t.customFunctionUnexpectedNumberOfEntriesInResultBatch="CustomFunctionUnexpectedNumberOfEntriesInResultBatch",t.customFunctionCancellationHandlerMissing="CustomFunctionCancellationHandlerMissing",t.customFunctionInvalidFunction="CustomFunctionInvalidFunction",t.customFunctionInvalidFunctionMapping="CustomFunctionInvalidFunctionMapping",t.customFunctionWindowMissing="CustomFunctionWindowMissing",t.customFunctionDefintionMissingOnWindow="CustomFunctionDefintionMissingOnWindow",t.pendingBatchInProgress="PendingBatchInProgress",t.notInsideBatch="NotInsideBatch",t.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",t}(P);e.ResourceStrings=q,c.addResourceStringValues({CannotRegisterEvent:"The event handler cannot be registered.",PropertyNotLoaded:"The property '{0}' is not available. Before reading the property's value, call the load method on the containing object and call \"context.sync()\" on the associated request context.",RunMustReturnPromise:'The batch function passed to the ".run" method didn\'t return a promise. The function must return a promise, so that any automatically-tracked objects can be released at the completion of the batch operation. Typically, you return a promise by returning the response from "context.sync()".',InvalidOrTimedOutSessionMessage:"Your Office Online session has expired or is invalid. To continue, refresh the page.",InvalidOperationInCellEditMode:"Excel is in cell-editing mode. Please exit the edit mode by pressing ENTER or TAB or selecting another cell, and then try again.",InvalidSheetName:"The request cannot be processed because the specified worksheet cannot be found. Please try again.",CustomFunctionDefintionMissing:"A property with the name '{0}' that represents the function's definition must exist on Excel.Script.CustomFunctions.",CustomFunctionDefintionMissingOnWindow:"A property with the name '{0}' that represents the function's definition must exist on the window object.",CustomFunctionImplementationMissing:"The property with the name '{0}' on Excel.Script.CustomFunctions that represents the function's definition must contain a 'call' property that implements the function.",CustomFunctionNameContainsBadChars:"The function name may only contain letters, digits, underscores, and periods.",CustomFunctionNameCannotSplit:"The function name must contain a non-empty namespace and a non-empty short name.",CustomFunctionUnexpectedNumberOfEntriesInResultBatch:"The batching function returned a number of results that doesn't match the number of parameter value sets that were passed into it.",CustomFunctionCancellationHandlerMissing:"The cancellation handler onCanceled is missing in the function. The handler must be present as the function is defined as cancelable.",CustomFunctionInvalidFunction:"The property with the name '{0}' that represents the function's definition is not a valid function.",CustomFunctionInvalidFunctionMapping:"The property with the name '{0}' on CustomFunctionMappings that represents the function's definition is not a valid function.",CustomFunctionWindowMissing:"The window object was not found.",PendingBatchInProgress:"There is a pending batch in progress. The batch method may not be called inside another batch, or simultaneously with another batch.",NotInsideBatch:"Operations may not be invoked outside of a batch method.",CannotUpdateReadOnlyProperty:"The property '{0}' is read-only and it cannot be updated.",ObjectIsUntracked:"The object is untracked."});var J=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.fixObjectPathIfNecessary=function(e,t){e&&e._objectPath&&t&&e._objectPath.updateUsingObjectData(t,e)},n.load=function(e,t){return e.context.load(e,t),e},n.loadAndSync=function(e,t){return e.context.load(e,t),e.context.sync().then((function(){return e}))},n.retrieve=function(t,r){var o=e._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;o||(o=!n.isSetSupported("RichApiRuntime","1.1"));var i=new F(t,o);return t._retrieve(r,i),i},n.retrieveAndSync=function(e,t){var r=n.retrieve(e,t);return e.context.sync().then((function(){return r}))},n.toJson=function(e,t,r,o){var i={};for(var a in t){void 0!==(s=t[a])&&(i[a]=s)}for(var a in r){var s;void 0!==(s=r[a])&&(s[n.fieldName_isCollection]&&void 0!==s[n.fieldName_m__items]?i[a]=s.toJSON().items:i[a]=s.toJSON())}return o&&(i.items=o.map((function(e){return e.toJSON()}))),i},n.throwError=function(e,t,n){throw new o.RuntimeError({code:e,httpStatusCode:400,message:c._getResourceString(e,t),debugInfo:n?{errorLocation:n}:void 0})},n.createRuntimeError=function(e,t,n,r,i){return new o.RuntimeError({code:e,httpStatusCode:r,message:t,debugInfo:{errorLocation:n},data:i})},n.throwIfNotLoaded=function(e,t,r,o){if(!o&&c.isUndefined(t)&&e.charCodeAt(0)!=n.s_underscoreCharCode&&!n.s_suppressPropertyNotLoadedException)throw n.createPropertyNotLoadedException(r,e)},n._getPropertyValueWithoutCheckLoaded=function(e,t){n.s_suppressPropertyNotLoadedException=!0;try{return e[t]}finally{n.s_suppressPropertyNotLoadedException=!1}},n.createPropertyNotLoadedException=function(e,t){return new o.RuntimeError({code:A.propertyNotLoaded,httpStatusCode:400,message:c._getResourceString(q.propertyNotLoaded,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},n.createCannotUpdateReadOnlyPropertyException=function(e,t){return new o.RuntimeError({code:A.cannotUpdateReadOnlyProperty,httpStatusCode:400,message:c._getResourceString(q.cannotUpdateReadOnlyProperty,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},n.promisify=function(t){return new e.Promise((function(e,n){t((function(t){"failed"==t.status?n(t.error):e(t.value)}))}))},n._addActionResultHandler=function(e,t,n){e.context._pendingRequest.addActionResultHandler(t,n)},n._handleNavigationPropertyResults=function(e,t,n){for(var r=0;r<n.length-1;r+=2)c.isUndefined(t[n[r+1]])||e[n[r]]._handleResult(t[n[r+1]])},n._fixupApiFlags=function(e){return"boolean"==typeof e&&(e=e?1:0),e},n.definePropertyThrowUnloadedException=function(e,t,r){Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){throw n.createPropertyNotLoadedException(t,r)},set:function(){throw n.createCannotUpdateReadOnlyPropertyException(t,r)}})},n.defineReadOnlyPropertyWithValue=function(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return r},set:function(){throw n.createCannotUpdateReadOnlyPropertyException(null,t)}})},n.processRetrieveResult=function(e,t,r,o){if(!c.isNullOrUndefined(t))if(o){var i=t[N.itemsLowerCase];if(Array.isArray(i)){for(var a=[],s=0;s<i.length;s++){var l=o(i[s],s),u={};u[N.proxy]=l,l._handleRetrieveResult(i[s],u),a.push(u)}n.defineReadOnlyPropertyWithValue(r,N.itemsLowerCase,a)}}else{var p=e[N.scalarPropertyNames],f=e[N.navigationPropertyNames],h=e[N.className];if(p)for(s=0;s<p.length;s++){var d=t[y=p[s]];c.isUndefined(d)?n.definePropertyThrowUnloadedException(r,h,y):n.defineReadOnlyPropertyWithValue(r,y,d)}if(f)for(s=0;s<f.length;s++){var y;d=t[y=f[s]];if(c.isUndefined(d))n.definePropertyThrowUnloadedException(r,h,y);else{var m=e[y],g={};m._handleRetrieveResult(d,g),g[N.proxy]=m,Array.isArray(g[N.itemsLowerCase])&&(g=g[N.itemsLowerCase]),n.defineReadOnlyPropertyWithValue(r,y,g)}}}},n.setMockData=function(e,t,r,o){if(c.isNullOrUndefined(t))e._handleResult(t);else{if(e[N.scalarPropertyOriginalNames]){for(var i={},a=e[N.scalarPropertyOriginalNames],s=e[N.scalarPropertyNames],l=0;l<s.length;l++)void 0!==t[s[l]]&&(i[a[l]]=t[s[l]]);e._handleResult(i)}if(e[N.navigationPropertyNames]){var u=e[N.navigationPropertyNames];for(l=0;l<u.length;l++)if(void 0!==t[u[l]]){var p=e[u[l]];p.setMockData&&p.setMockData(t[u[l]])}}if(e[N.isCollection]&&r){var f=Array.isArray(t)?t:t[N.itemsLowerCase];if(Array.isArray(f)){var h=[];for(l=0;l<f.length;l++){var d=r(f,l);n.setMockData(d,f[l]),h.push(d)}o(h)}}}},n.applyMixin=function(e,t){Object.getOwnPropertyNames(t.prototype).forEach((function(n){"constructor"!==n&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))}))},n.ensureTypeInitialized=function(e){var t=new w;new e(t,B.createNewObjectObjectPath(t,"Temp",!1,0))},n.fieldName_m__items="m__items",n.fieldName_isCollection="_isCollection",n._synchronousCleanup=!1,n.s_underscoreCharCode="_".charCodeAt(0),n.s_suppressPropertyNotLoadedException=!1,n}(S);e.Utility=J;var z=function(){function e(){}return e.invokeMethod=function(e,t,n,r,o,i){var a=R.createMethodAction(e.context,e,t,n,r,o),s=new b(i);return J._addActionResultHandler(e,a,s),s},e.invokeEnsureUnchanged=function(e,t){R.createEnsureUnchangedAction(e.context,e,t)},e.invokeSetProperty=function(e,t,n,r){R.createSetPropertyAction(e.context,e,t,n,r)},e.createRootServiceObject=function(e,t){return new e(t,B.createGlobalObjectObjectPath(t))},e.createObjectFromReferenceId=function(e,t,n){return new e(t,B.createReferenceIdObjectPath(t,n))},e.createTopLevelServiceObject=function(e,t,n,r,o){return new e(t,B.createNewObjectObjectPath(t,n,r,o))},e.createPropertyObject=function(e,t,n,r,o){var i=B.createPropertyObjectPath(t.context,t,n,r,!1,o);return new e(t.context,i)},e.createIndexerObject=function(e,t,n){var r=B.createIndexerObjectPath(t.context,t,n);return new e(t.context,r)},e.createMethodObject=function(e,t,n,r,o,i,a,s,l){var u=B.createMethodObjectPath(t.context,t,n,r,o,i,a,s,l);return new e(t.context,u)},e.createChildItemObject=function(e,t,n,r,o){var i=B.createChildItemObjectPathUsingIndexerOrGetItemAt(t,n.context,n,r,o);return new e(n.context,i)},e}();e.BatchApiHelper=z;var K=function(){function t(e){if(this.m_namespaceMap={},this.m_namespace=e.metadata.name,this.m_targetNamespaceObject=e.targetNamespaceObject,this.m_namespaceMap[this.m_namespace]=e.targetNamespaceObject,e.namespaceMap)for(var t in e.namespaceMap)this.m_namespaceMap[t]=e.namespaceMap[t];this.m_defaultApiSetName=e.metadata.defaultApiSetName,this.m_hostName=e.metadata.hostName;var n=e.metadata;if(n.enumTypes)for(var r=0;r<n.enumTypes.length;r++)this.buildEnumType(n.enumTypes[r]);if(n.apiSets){for(r=0;r<n.apiSets.length;r++){var o=n.apiSets[r];Array.isArray(o)&&(n.apiSets[r]={version:o[0],name:o[1]||this.m_defaultApiSetName})}this.m_apiSets=n.apiSets}if(this.m_strings=n.strings,n.clientObjectTypes)for(r=0;r<n.clientObjectTypes.length;r++){o=n.clientObjectTypes[r];Array.isArray(o)&&(this.ensureArraySize(o,11),n.clientObjectTypes[r]={name:this.getString(o[0]),behaviorFlags:o[1],collectionPropertyPath:this.getString(o[6]),newObjectServerTypeFullName:this.getString(o[9]),newObjectApiFlags:o[10],childItemTypeFullName:this.getString(o[7]),scalarProperties:o[2],navigationProperties:o[3],scalarMethods:o[4],navigationMethods:o[5],events:o[8]}),this.buildClientObjectType(n.clientObjectTypes[r],e.fullyInitialize)}}return t.prototype.ensureArraySize=function(e,t){for(var n=t-e.length;n>0;)e.push(0),n--},t.prototype.getString=function(e){return"number"==typeof e?e>0?this.m_strings[e-1]:null:e},t.prototype.buildEnumType=function(e){var t;if(Array.isArray(e)){(t={name:e[0],fields:e[2]}).fields||(t.fields={});var n=e[1];if(Array.isArray(n))for(var r=0;r<n.length;r++)t.fields[n[r]]=this.toSimpleCamelUpperCase(n[r])}else t=e;this.m_targetNamespaceObject[t.name]=t.fields},t.prototype.buildClientObjectType=function(n,r){var o=this,i=function(t,r){x.apply(this,arguments),o.m_targetNamespaceObject[n.name]._typeInited||(o.buildPrototype(o.m_targetNamespaceObject[n.name],n),o.m_targetNamespaceObject[n.name]._typeInited=!0),e._internalConfig.appendTypeNameToObjectPathInfo&&this._objectPath&&this._objectPath.objectPathInfo&&this._className&&(this._objectPath.objectPathInfo.T=this._className)};(this.m_targetNamespaceObject[n.name]=i,this.extendsType(i,x),this.buildNewObject(i,n),0!=(2&n.behaviorFlags)&&(i.prototype._KeepReference=function(){z.invokeMethod(this,"_KeepReference",1,[],0,0)}),0!=(32&n.behaviorFlags))&&this.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_StaticCustomize").call(null,i);r&&(this.buildPrototype(i,n),i._typeInited=!0)},t.prototype.extendsType=function(e,t){function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t.prototype.findObjectUnderPath=function(t,n,r){for(var o=t,i=r;i<n.length;i++){if("object"!=typeof o)throw new e.Error("Cannot find "+n.join("."));o=o[n[i]]}return o},t.prototype.getFunction=function(t){var n=this.resolveObjectByFullName(t);if("function"!=typeof n)throw new e.Error("Cannot find function or type: "+t);return n},t.prototype.resolveObjectByFullName=function(e){var t=e.split(".");if(1===t.length)return this.m_targetNamespaceObject[t[0]];var n=t[0];return n===this.m_namespace?this.findObjectUnderPath(this.m_targetNamespaceObject,t,1):this.m_namespaceMap[n]?this.findObjectUnderPath(this.m_namespaceMap[n],t,1):this.findObjectUnderPath(this.m_targetNamespaceObject,t,0)},t.prototype.evaluateSimpleExpression=function(t,n){if(J.isNullOrUndefined(t))return null;var r=t.split(".");if(3===r.length&&"OfficeExtension"===r[0]&&"Constants"===r[1])return N[r[2]];if("this"===r[0]){for(var o=n,i=1;i<r.length;i++)o="toString()"==r[i]?o.toString():"()"===r[i].substr(r[i].length-2)?o[r[i].substr(0,r[i].length-2)]():o[r[i]];return o}throw new e.Error("Cannot evaluate: "+t)},t.prototype.evaluateEventTargetId=function(e,t){return J.isNullOrEmptyString(e)?"":this.evaluateSimpleExpression(e,t)},t.prototype.isAllDigits=function(e){for(var t="0".charCodeAt(0),n="9".charCodeAt(0),r=0;r<e.length;r++)if(e.charCodeAt(r)<t||e.charCodeAt(r)>n)return!1;return!0},t.prototype.evaluateEventType=function(t){if(J.isNullOrEmptyString(t))return 0;if(this.isAllDigits(t))return parseInt(t);var n=this.resolveObjectByFullName(t);if("number"!=typeof n)throw new e.Error("Invalid event type: "+t);return n},t.prototype.buildPrototype=function(e,t){this.buildScalarProperties(e,t),this.buildNavigationProperties(e,t),this.buildScalarMethods(e,t),this.buildNavigationMethods(e,t),this.buildEvents(e,t),this.buildHandleResult(e,t),this.buildHandleIdResult(e,t),this.buildHandleRetrieveResult(e,t),this.buildLoad(e,t),this.buildRetrieve(e,t),this.buildSetMockData(e,t),this.buildEnsureUnchanged(e,t),this.buildUpdate(e,t),this.buildSet(e,t),this.buildToJSON(e,t),this.buildItems(e,t),this.buildTypeMetadataInfo(e,t),this.buildTrackUntrack(e,t),this.buildMixin(e,t)},t.prototype.toSimpleCamelUpperCase=function(e){return e.substr(0,1).toUpperCase()+e.substr(1)},t.prototype.ensureOriginalName=function(e){null===e.originalName&&(e.originalName=this.toSimpleCamelUpperCase(e.name))},t.prototype.getFieldName=function(e){return"m_"+e.name},t.prototype.throwIfApiNotSupported=function(e,t){if(this.m_apiSets&&t.apiSetInfoOrdinal>0){var n=this.m_apiSets[t.apiSetInfoOrdinal-1];n&&J.throwIfApiNotSupported(e.name+"."+t.name,n.name,n.version,this.m_hostName)}},t.prototype.buildScalarProperties=function(e,t){if(Array.isArray(t.scalarProperties))for(var n=0;n<t.scalarProperties.length;n++){var r=t.scalarProperties[n];Array.isArray(r)&&(this.ensureArraySize(r,6),t.scalarProperties[n]={name:this.getString(r[0]),behaviorFlags:r[1],apiSetInfoOrdinal:r[2],originalName:this.getString(r[3]),setMethodApiFlags:r[4],undoableApiSetInfoOrdinal:r[5]}),this.buildScalarProperty(e,t,t.scalarProperties[n])}},t.prototype.calculateApiFlags=function(e,t){if(t>0){var n=this.m_apiSets[t-1];n&&(e=S.calculateApiFlags(e,n.name,n.version))}return e},t.prototype.buildScalarProperty=function(e,n,r){this.ensureOriginalName(r);var o=this,i=this.getFieldName(r),a={get:function(){return J.throwIfNotLoaded(r.name,this[i],n.name,this._isNull),o.throwIfApiNotSupported(n,r),this[i]},enumerable:!0,configurable:!0};0==(2&r.behaviorFlags)&&(a.set=function(e){if(4&r.behaviorFlags&&o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Set").call(this,this,e).handled)return;this[i]=e;var a=o.calculateApiFlags(r.setMethodApiFlags,r.undoableApiSetInfoOrdinal);z.invokeSetProperty(this,r.originalName,e,a)}),Object.defineProperty(e.prototype,r.name,a)},t.prototype.buildNavigationProperties=function(e,t){if(Array.isArray(t.navigationProperties))for(var n=0;n<t.navigationProperties.length;n++){var r=t.navigationProperties[n];Array.isArray(r)&&(this.ensureArraySize(r,8),t.navigationProperties[n]={name:this.getString(r[0]),behaviorFlags:r[2],apiSetInfoOrdinal:r[3],originalName:this.getString(r[4]),getMethodApiFlags:r[5],setMethodApiFlags:r[6],propertyTypeFullName:this.getString(r[1]),undoableApiSetInfoOrdinal:r[7]}),this.buildNavigationProperty(e,t,t.navigationProperties[n])}},t.prototype.buildNavigationProperty=function(e,n,r){this.ensureOriginalName(r);var o=this,i=this.getFieldName(r),a={get:function(){(this[o.getFieldName(r)]||(o.throwIfApiNotSupported(n,r),this[i]=z.createPropertyObject(o.getFunction(r.propertyTypeFullName),this,r.originalName,0!=(16&r.behaviorFlags),r.getMethodApiFlags)),64&r.behaviorFlags)&&o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Get").call(this,this,this[i]);return this[i]},enumerable:!0,configurable:!0};0==(2&r.behaviorFlags)&&(a.set=function(e){if(4&r.behaviorFlags&&o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Set").call(this,this,e).handled)return;this[i]=e;var a=o.calculateApiFlags(r.setMethodApiFlags,r.undoableApiSetInfoOrdinal);z.invokeSetProperty(this,r.originalName,e,a)}),Object.defineProperty(e.prototype,r.name,a)},t.prototype.buildScalarMethods=function(e,t){if(Array.isArray(t.scalarMethods))for(var n=0;n<t.scalarMethods.length;n++){var r=t.scalarMethods[n];Array.isArray(r)&&(this.ensureArraySize(r,7),t.scalarMethods[n]={name:this.getString(r[0]),behaviorFlags:r[2],apiSetInfoOrdinal:r[3],originalName:this.getString(r[5]),apiFlags:r[4],parameterCount:r[1],undoableApiSetInfoOrdinal:r[6]}),this.buildScalarMethod(e,t,t.scalarMethods[n])}},t.prototype.buildScalarMethod=function(e,n,r){this.ensureOriginalName(r);var o=this;e.prototype[r.name]=function(){var e=[];if(64&r.behaviorFlags&&r.parameterCount>0){for(var i=0;i<r.parameterCount-1;i++)e.push(arguments[i]);var a=[];for(i=r.parameterCount-1;i<arguments.length;i++)a.push(arguments[i]);e.push(a)}else for(i=0;i<arguments.length;i++)e.push(arguments[i]);if(1&r.behaviorFlags){var s=o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName),l=[this];for(i=0;i<e.length;i++)l.push(e[i]);var u=s.apply(this,l),c=u.handled,p=u.result;if(c)return p}o.throwIfApiNotSupported(n,r);var f=0;32&r.behaviorFlags&&(f=1);var h=0;2&r.behaviorFlags&&(h=1);var d=o.calculateApiFlags(r.apiFlags,r.undoableApiSetInfoOrdinal);return z.invokeMethod(this,r.originalName,h,e,d,f)}},t.prototype.buildNavigationMethods=function(e,t){if(Array.isArray(t.navigationMethods))for(var n=0;n<t.navigationMethods.length;n++){var r=t.navigationMethods[n];Array.isArray(r)&&(this.ensureArraySize(r,9),t.navigationMethods[n]={name:this.getString(r[0]),behaviorFlags:r[3],apiSetInfoOrdinal:r[4],originalName:this.getString(r[6]),apiFlags:r[5],parameterCount:r[2],returnTypeFullName:this.getString(r[1]),returnObjectGetByIdMethodName:this.getString(r[7]),undoableApiSetInfoOrdinal:r[8]}),this.buildNavigationMethod(e,t,t.navigationMethods[n])}},t.prototype.buildNavigationMethod=function(e,n,r){this.ensureOriginalName(r);var o=this;e.prototype[r.name]=function(){var e=[];if(64&r.behaviorFlags&&r.parameterCount>0){for(var i=0;i<r.parameterCount-1;i++)e.push(arguments[i]);var a=[];for(i=r.parameterCount-1;i<arguments.length;i++)a.push(arguments[i]);e.push(a)}else for(i=0;i<arguments.length;i++)e.push(arguments[i]);if(1&r.behaviorFlags){var s=o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName),l=[this];for(i=0;i<e.length;i++)l.push(e[i]);var u=s.apply(this,l),c=u.handled,p=u.result;if(c)return p}if(o.throwIfApiNotSupported(n,r),0!=(16&r.behaviorFlags))return z.createIndexerObject(o.getFunction(r.returnTypeFullName),this,e);var f=0;2&r.behaviorFlags&&(f=1);var h=o.calculateApiFlags(r.apiFlags,r.undoableApiSetInfoOrdinal);return z.createMethodObject(o.getFunction(r.returnTypeFullName),this,r.originalName,f,e,0!=(4&r.behaviorFlags),0!=(8&r.behaviorFlags),r.returnObjectGetByIdMethodName,h)}},t.prototype.buildHandleResult=function(e,n){var r=this;e.prototype._handleResult=function(e){if(x.prototype._handleResult.call(this,e),!J.isNullOrUndefined(e)){if(J.fixObjectPathIfNecessary(this,e),8&n.behaviorFlags)r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_HandleResult").call(this,this,e);if(n.scalarProperties)for(var o=0;o<n.scalarProperties.length;o++)J.isUndefined(e[n.scalarProperties[o].originalName])||(0!=(8&n.scalarProperties[o].behaviorFlags)?this[r.getFieldName(n.scalarProperties[o])]=J.adjustToDateTime(e[n.scalarProperties[o].originalName]):this[r.getFieldName(n.scalarProperties[o])]=e[n.scalarProperties[o].originalName]);if(n.navigationProperties){for(var i=[],a=0;a<n.navigationProperties.length;a++)i.push(n.navigationProperties[a].name),i.push(n.navigationProperties[a].originalName);J._handleNavigationPropertyResults(this,e,i)}if(0!=(1&n.behaviorFlags)){var s=r.hasIndexMethod(n);if(!J.isNullOrUndefined(e[N.items])){this.m__items=[];for(var l=e[N.items],u=r.getFunction(n.childItemTypeFullName),c=0;c<l.length;c++){var p=z.createChildItemObject(u,s,this,l[c],c);p._handleResult(l[c]),this.m__items.push(p)}}}}}},t.prototype.buildHandleRetrieveResult=function(e,t){var n=this;e.prototype._handleRetrieveResult=function(e,r){if(x.prototype._handleRetrieveResult.call(this,e,r),!J.isNullOrUndefined(e)){if(t.scalarProperties)for(var o=0;o<t.scalarProperties.length;o++)8&t.scalarProperties[o].behaviorFlags&&(J.isNullOrUndefined(e[t.scalarProperties[o].name])||(e[t.scalarProperties[o].name]=J.adjustToDateTime(e[t.scalarProperties[o].name])));if(1&t.behaviorFlags){var i=n.hasIndexMethod(t),a=n.getFunction(t.childItemTypeFullName),s=this;J.processRetrieveResult(s,e,r,(function(e,t){return z.createChildItemObject(a,i,s,e,t)}))}else J.processRetrieveResult(this,e,r)}}},t.prototype.buildHandleIdResult=function(e,n){var r=this;e.prototype._handleIdResult=function(e){if(x.prototype._handleIdResult.call(this,e),!J.isNullOrUndefined(e)){if(16&n.behaviorFlags)r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_HandleIdResult").call(this,this,e);if(n.scalarProperties)for(var o=0;o<n.scalarProperties.length;o++){var i=n.scalarProperties[o].originalName;"Id"!==i&&"_Id"!==i&&"_ReferenceId"!==i||J.isNullOrUndefined(e[n.scalarProperties[o].originalName])||(this[r.getFieldName(n.scalarProperties[o])]=e[n.scalarProperties[o].originalName])}}}},t.prototype.buildLoad=function(e,t){e.prototype.load=function(e){return J.load(this,e)}},t.prototype.buildRetrieve=function(e,t){e.prototype.retrieve=function(e){return J.retrieve(this,e)}},t.prototype.buildNewObject=function(e,t){J.isNullOrEmptyString(t.newObjectServerTypeFullName)||(e.newObject=function(n){return z.createTopLevelServiceObject(e,n,t.newObjectServerTypeFullName,0!=(1&t.behaviorFlags),t.newObjectApiFlags)})},t.prototype.buildSetMockData=function(e,t){var n=this;if(1&t.behaviorFlags){var r=n.hasIndexMethod(t);e.prototype.setMockData=function(e){var o=this;J.setMockData(o,e,(function(e,i){return z.createChildItemObject(n.getFunction(t.childItemTypeFullName),r,o,e,i)}),(function(e){o.m__items=e}))}}else e.prototype.setMockData=function(e){J.setMockData(this,e)}},t.prototype.buildEnsureUnchanged=function(e,t){e.prototype.ensureUnchanged=function(e){z.invokeEnsureUnchanged(this,e)}},t.prototype.buildUpdate=function(e,t){e.prototype.update=function(e){this._recursivelyUpdate(e)}},t.prototype.buildSet=function(e,t){if(0==(1&t.behaviorFlags)){var n=[],r=[];if(t.scalarProperties)for(var o=0;o<t.scalarProperties.length;o++)0==(2&t.scalarProperties[o].behaviorFlags)&&0!=(1&t.scalarProperties[o].behaviorFlags)?r.push(t.scalarProperties[o].name):n.push(t.scalarProperties[o].name);var i=[];if(t.navigationProperties)for(o=0;o<t.navigationProperties.length;o++)0!=(16&t.navigationProperties[o].behaviorFlags)||0==(1&t.navigationProperties[o].behaviorFlags)||0==(32&t.navigationProperties[o].behaviorFlags)?n.push(t.navigationProperties[o].name):i.push(t.navigationProperties[o].name);0===i.length&&0===r.length||(e.prototype.set=function(e,t){this._recursivelySet(e,t,r,i,n)})}},t.prototype.buildItems=function(e,t){0!=(1&t.behaviorFlags)&&Object.defineProperty(e.prototype,"items",{get:function(){return J.throwIfNotLoaded("items",this.m__items,t.name,this._isNull),this.m__items},enumerable:!0,configurable:!0})},t.prototype.buildToJSON=function(e,t){var n=this;0==(1&t.behaviorFlags)?e.prototype.toJSON=function(){var e={};if(t.scalarProperties)for(var r=0;r<t.scalarProperties.length;r++)0!=(1&t.scalarProperties[r].behaviorFlags)&&(e[t.scalarProperties[r].name]=this[n.getFieldName(t.scalarProperties[r])]);var o={};if(t.navigationProperties)for(r=0;r<t.navigationProperties.length;r++)0!=(1&t.navigationProperties[r].behaviorFlags)&&(o[t.navigationProperties[r].name]=this[n.getFieldName(t.navigationProperties[r])]);return J.toJson(this,e,o)}:e.prototype.toJSON=function(){return J.toJson(this,{},{},this.m__items)}},t.prototype.buildTypeMetadataInfo=function(e,t){Object.defineProperty(e.prototype,"_className",{get:function(){return t.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isCollection",{get:function(){return 0!=(1&t.behaviorFlags)},enumerable:!0,configurable:!0}),J.isNullOrEmptyString(t.collectionPropertyPath)||Object.defineProperty(e.prototype,"_collectionPropertyPath",{get:function(){return t.collectionPropertyPath},enumerable:!0,configurable:!0}),t.scalarProperties&&t.scalarProperties.length>0&&(Object.defineProperty(e.prototype,"_scalarPropertyNames",{get:function(){return this.m__scalarPropertyNames||(this.m__scalarPropertyNames=t.scalarProperties.map((function(e){return e.name}))),this.m__scalarPropertyNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scalarPropertyOriginalNames",{get:function(){return this.m__scalarPropertyOriginalNames||(this.m__scalarPropertyOriginalNames=t.scalarProperties.map((function(e){return e.originalName}))),this.m__scalarPropertyOriginalNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{get:function(){return this.m__scalarPropertyUpdateable||(this.m__scalarPropertyUpdateable=t.scalarProperties.map((function(e){return 0==(2&e.behaviorFlags)}))),this.m__scalarPropertyUpdateable},enumerable:!0,configurable:!0})),t.navigationProperties&&t.navigationProperties.length>0&&Object.defineProperty(e.prototype,"_navigationPropertyNames",{get:function(){return this.m__navigationPropertyNames||(this.m__navigationPropertyNames=t.navigationProperties.map((function(e){return e.name}))),this.m__navigationPropertyNames},enumerable:!0,configurable:!0})},t.prototype.buildTrackUntrack=function(e,t){2&t.behaviorFlags&&(e.prototype.track=function(){return this.context.trackedObjects.add(this),this},e.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this})},t.prototype.buildMixin=function(e,t){if(4&t.behaviorFlags){var n=this.getFunction(t.name+"Custom");J.applyMixin(e,n)}},t.prototype.getOnEventName=function(e){return"_"===e[0]?"_on"+e.substr(1):"on"+e},t.prototype.buildEvents=function(e,t){if(t.events)for(var n=0;n<t.events.length;n++){var r=t.events[n];Array.isArray(r)&&(this.ensureArraySize(r,7),t.events[n]={name:this.getString(r[0]),behaviorFlags:r[1],apiSetInfoOrdinal:r[2],typeExpression:this.getString(r[3]),targetIdExpression:this.getString(r[4]),register:this.getString(r[5]),unregister:this.getString(r[6])}),this.buildEvent(e,t,t.events[n])}},t.prototype.buildEvent=function(e,t,n){1&n.behaviorFlags?this.buildV0Event(e,t,n):this.buildV2Event(e,t,n)},t.prototype.buildV2Event=function(e,n,r){var o=this,i=this.getOnEventName(r.name),a=this.getFieldName(r);Object.defineProperty(e.prototype,i,{get:function(){if(!this[a]){o.throwIfApiNotSupported(n,r);var e=this,i=null;"null"!==r.register&&(i=this[r.register].bind(this));var s=null;"null"!==r.unregister&&(s=this[r.unregister].bind(this));var l=null;2&r.behaviorFlags&&(l=o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+r.name+"_EventArgsTransform"));var u=o.evaluateEventType(r.typeExpression);this[a]=new H(this.context,this,r.name,{eventType:u,getTargetIdFunc:function(){return o.evaluateEventTargetId(r.targetIdExpression,e)},registerFunc:i,unregisterFunc:s,eventArgsTransformFunc:function(t){return l&&(t=l.call(e,e,t)),J._createPromiseFromResult(t)}})}return this[a]},enumerable:!0,configurable:!0})},t.prototype.buildV0Event=function(e,n,r){var o=this,i=this.getOnEventName(r.name),a=this.getFieldName(r);Object.defineProperty(e.prototype,i,{get:function(){if(!this[a]){o.throwIfApiNotSupported(n,r);var e=this,i=null;if(J.isNullOrEmptyString(r.register)){var s=o.evaluateEventType(r.typeExpression);i=function(t){var n=o.evaluateEventTargetId(r.targetIdExpression,e);return e.context.eventRegistration.register(s,n,t)}}else if("null"!==r.register){var l=o.getFunction(r.register);i=function(t){return l.call(e,e,t)}}var u=null;if(J.isNullOrEmptyString(r.unregister)){var c=o.evaluateEventType(r.typeExpression);u=function(t){var n=o.evaluateEventTargetId(r.targetIdExpression,e);return e.context.eventRegistration.unregister(c,n,t)}}else if("null"!==r.unregister){var p=o.getFunction(r.unregister);u=function(t){return p.call(e,e,t)}}var f=null;2&r.behaviorFlags&&(f=o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+r.name+"_EventArgsTransform"));this[a]=new k(this.context,this,r.name,{registerFunc:i,unregisterFunc:u,eventArgsTransformFunc:function(t){return f&&(t=f.call(e,e,t)),J._createPromiseFromResult(t)}})}return this[a]},enumerable:!0,configurable:!0})},t.prototype.hasIndexMethod=function(e){var t=!1;if(e.navigationMethods)for(var n=0;n<e.navigationMethods.length;n++)if(0!=(16&e.navigationMethods[n].behaviorFlags)){t=!0;break}return t},t.CustomizationCodeNamespace="_CC",t}();e.LibraryBuilder=K}(OfficeExtension||(OfficeExtension={})),function(e){var t;!function(t){t.getPromiseType=function(){if("undefined"!=typeof Promise)return Promise;if(void 0!==Office&&Office.Promise)return Office.Promise;throw new e.Error("No Promise implementation found")}}(t||(t={})),Object.defineProperty(e,"Promise",{get:function(){return t.getPromiseType()},enumerable:!0,configurable:!0})}(OfficeExtension||(OfficeExtension={}));try{if("undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka){var RichApiBridgeImpl=function(){function e(){}return e.prototype.sendMessageToHost=function(e){OfficePlatformGlobal.ReactNativeReka.RekaInstance.InvokeNative("RichApiDataService","ProcessMessageToHost",e)},e}(),RichApiBridge_1=new RichApiBridgeImpl,RichApiDataService_1=function(){function e(){}return e.prototype.Invoke=function(e,t){"ProcessMessageFromHost"===e&&RichApiBridge_1.onMessageFromHost&&RichApiBridge_1.onMessageFromHost(t)},e}();OfficePlatformGlobal.ReactNativeReka.initReka(),OfficePlatformGlobal.ReactNativeReka.RekaInstance.RegisterService("RichApiDataService",(function(){return new RichApiDataService_1})),OfficeExtension.HostBridge.init(RichApiBridge_1),OfficeExtension.HostBridgeSession.getInstanceIfHostBridgeInited()}}catch(e){}var oteljs;__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){function t(e,t,n,r){return{name:e,dataType:t,value:n,classification:r||4}}e.makeBooleanDataField=function(e,n,r){return t(e,1,n,r)},e.makeInt64DataField=function(e,n,r){return t(e,2,n,r)},e.makeDoubleDataField=function(e,n,r){return t(e,3,n,r)},e.makeStringDataField=function(e,n,r){return t(e,0,n,r)},e.makeGuidDataField=function(e,n,r){return t(e,4,n,r)}}(oteljs||(oteljs={})),function(e){!function(e){e[e.EssentialServiceMetadata=1]="EssentialServiceMetadata",e[e.AccountData=2]="AccountData",e[e.SystemMetadata=4]="SystemMetadata",e[e.OrganizationIdentifiableInformation=8]="OrganizationIdentifiableInformation",e[e.EndUserIdentifiableInformation=16]="EndUserIdentifiableInformation",e[e.CustomerContent=32]="CustomerContent",e[e.AccessControl=64]="AccessControl",e[e.PublicNonPersonalData=128]="PublicNonPersonalData",e[e.EndUserPseudonymousInformation=256]="EndUserPseudonymousInformation",e[e.PublicPersonalData=512]="PublicPersonalData",e[e.SupportData=1024]="SupportData",e[e.DirectMeasurementData=2048]="DirectMeasurementData",e[e.Everything=65535]="Everything"}(e.DataClassification||(e.DataClassification={})),function(e){e[e.String=0]="String",e[e.Boolean=1]="Boolean",e[e.Int64=2]="Int64",e[e.Double=3]="Double",e[e.Guid=4]="Guid"}(e.DataFieldType||(e.DataFieldType={})),function(e){e[e.NotSet=0]="NotSet",e[e.Measure=1]="Measure",e[e.Diagnostics=2]="Diagnostics",e[e.CriticalBusinessImpact=191]="CriticalBusinessImpact",e[e.CriticalCensus=192]="CriticalCensus",e[e.CriticalExperimentation=193]="CriticalExperimentation",e[e.CriticalUsage=194]="CriticalUsage"}(e.SamplingPolicy||(e.SamplingPolicy={})),function(e){e[e.NotSet=0]="NotSet",e[e.Normal=1]="Normal",e[e.High=2]="High"}(e.PersistencePriority||(e.PersistencePriority={})),function(e){e[e.NotSet=0]="NotSet",e[e.Normal=1]="Normal",e[e.High=2]="High"}(e.CostPriority||(e.CostPriority={})),function(e){e[e.NotSet=0]="NotSet",e[e.SoftwareSetup=1]="SoftwareSetup",e[e.ProductServiceUsage=2]="ProductServiceUsage",e[e.ProductServicePerformance=4]="ProductServicePerformance",e[e.DeviceConfiguration=8]="DeviceConfiguration",e[e.InkingTypingSpeech=16]="InkingTypingSpeech"}(e.DataCategories||(e.DataCategories={})),function(e){e[e.ReservedDoNotUse=0]="ReservedDoNotUse",e[e.Required=10]="Required",e[e.BasicEvent=10]="BasicEvent",e[e.Optional=100]="Optional",e[e.FullEvent=100]="FullEvent",e[e.RequiredServiceData=110]="RequiredServiceData",e[e.NecessaryServiceDataEvent=110]="NecessaryServiceDataEvent",e[e.RequiredServiceDataForEssentialServices=120]="RequiredServiceDataForEssentialServices",e[e.AlwaysOnNecessaryServiceDataEvent=120]="AlwaysOnNecessaryServiceDataEvent"}(e.DiagnosticLevel||(e.DiagnosticLevel={})),function(e){e[e.None=0]="None",e[e.MocaAddIn=1]="MocaAddIn"}(e.CustomerContentType||(e.CustomerContentType={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose"}(e.LogLevel||(e.LogLevel={})),function(e){e[e.Core=0]="Core",e[e.Sink=1]="Sink",e[e.Transport=2]="Transport"}(e.Category||(e.Category={})),function(e){e[e.Hourly=1]="Hourly",e[e.Daily=2]="Daily"}(e.DnmInterval||(e.DnmInterval={})),function(e){e[e.ReleaseAudienceGroup=1]="ReleaseAudienceGroup",e[e.WacRing=2]="WacRing",e[e.AppName=3]="AppName",e[e.AppPlatform=4]="AppPlatform",e[e.AppVersion=5]="AppVersion"}(e.AllowedPartA||(e.AllowedPartA={})),function(e){e[e.SendTelemetryEvent=1]="SendTelemetryEvent",e[e.CustomerContent=2]="CustomerContent",e[e.DirectNumericEvent=3]="DirectNumericEvent"}(e.EventType||(e.EventType={}))}(oteljs||(oteljs={})),function(e){e.getEffectiveEventFlags=function(t){var n={costPriority:1,samplingPolicy:1,persistencePriority:1,dataCategories:0,diagnosticLevel:100};return t.eventFlags&&t.eventFlags.dataCategories||e.logNotification(0,0,(function(){return"DataCategories"})),t.eventFlags?(t.eventFlags.costPriority&&(n.costPriority=t.eventFlags.costPriority),t.eventFlags.samplingPolicy&&(n.samplingPolicy=t.eventFlags.samplingPolicy),t.eventFlags.persistencePriority&&(n.persistencePriority=t.eventFlags.persistencePriority),t.eventFlags.dataCategories&&(n.dataCategories=t.eventFlags.dataCategories),t.eventFlags.diagnosticLevel&&(n.diagnosticLevel=t.eventFlags.diagnosticLevel),n):n}}(oteljs||(oteljs={})),function(e){var t,n=(t=[],{fireEvent:function(e){t.forEach((function(t){return t(e)}))},addListener:function(e){e&&t.push(e)}});function r(e,t,r){n.fireEvent({level:e,category:t,message:r})}e.onNotification=function(){return n},e.logNotification=r,e.logError=function(e,t,n){r(0,e,(function(){var e=n instanceof Error?n.message:"";return"".concat(t,": ").concat(e)}))}}(oteljs||(oteljs={})),function(e){var t;function n(e){var t={eventName:e.eventName,eventFlags:e.eventFlags||{},telemetryProperties:e.telemetryProperties?__assign({},e.telemetryProperties):{},dataFields:e.dataFields?e.dataFields.slice():[],timestamp:e.timestamp||(new Date).getTime()};return e.eventContract&&(t.eventContract={name:e.eventContract.name,dataFields:e.eventContract.dataFields.slice()}),t}!function(e){e[e.TelemetryData=0]="TelemetryData",e[e.AnonymousData=1]="AnonymousData",e[e.CustomerContent=2]="CustomerContent"}(t||(t={})),e.SuppressNexus=-1,e.cloneEvent=n;var r=function(){function t(e,t,n){var r,o,i;this.telemetrySinks=[],this.persistentDataFields=[],this.partAFields=[],this.eventQueue=[],this.config=n||{},e&&(this.telemetrySinks=e.telemetrySinks,(r=this.persistentDataFields).push.apply(r,e.persistentDataFields),this.config=__assign(__assign({},e.getConfig()),this.config),(o=this.partAFields).push.apply(o,e.partAFields)),t&&(i=this.persistentDataFields).push.apply(i,t)}return t.prototype.addEventContentType=function(t,n){t.push(e.makeInt64DataField("EventContent.Type",n))},t.prototype.sendTelemetryEvent=function(t){var r=n(t),o=r.telemetryProperties;o.nexusTenantToken=e.SuppressNexus;var i=o.ariaTenantToken;if(!i&&(!e.fillTenantTokens(r.eventName,o)&&!i))return void e.logNotification(0,0,(function(){return"No tenant token: "+t.eventName}));this.sendTelemetryEventInternal(r,1)},t.prototype.sendNonStandardEvent=function(e,t){var r=n(e);this.sendTelemetryEventInternal(r,t)},t.prototype.sendCustomerContent=function(e){var t=n(e),r=t.telemetryProperties,o=r.customerContentVersion;return(!o||o>2)&&(r.customerContentVersion=2),r.ariaTenantToken=void 0,r.nexusTenantToken=void 0,r.dnmToken=void 0,this.addEventContentType(t.dataFields,2),this.sendTelemetryEventInternal(t,2)},t.prototype.sendDirectNumericEvent=function(t){var r=n(t),o=r.telemetryProperties;if(!o.dnmToken&&(!e.fillTenantTokens(r.eventName,o)&&!o.dnmToken))return void e.logNotification(0,0,(function(){return"No dnm token: "+r.eventName}));this.addEventContentType(r.dataFields,1),this.sendTelemetryEventInternal(r,3)},t.prototype.sendTelemetryEventInternal=function(t,n){if(2===n||!t.telemetryProperties.customerContentVersion&&!t.telemetryProperties.customerContentType){try{if(0===this.telemetrySinks.length)return void(this.config.enableQueue&&this.eventQueue.length<1e3?this.eventQueue.push([t,n]):e.logNotification(1,0,(function(){return"No telemetry sinks are attached."})));this.processTelemetryEvent(t,n)}catch(t){return void e.logError(0,"SendTelemetryEvent",t)}this.telemetrySinks.forEach((function(e){try{3===n||2===n?e.sendNonStandardEvent&&e.sendNonStandardEvent(t,n):e.sendTelemetryEvent(t)}catch(e){}}))}else e.logNotification(0,0,(function(){return"Customer content"}))},t.prototype.processTelemetryEvent=function(t,n){var r,o,i;if(t.dataFields&&(null===(i=t.dataFields)||void 0===i||i.unshift(e.makeStringDataField("OTelJS.Version",e.oteljsVersion)),3!==n&&this.persistentDataFields&&(r=t.dataFields).unshift.apply(r,this.persistentDataFields)),this.partAFields.length>0){var a=t.eventContract||{name:"",dataFields:[]};(o=a.dataFields).push.apply(o,this.partAFields),t.eventContract=a}this.config.disableValidation||e.validateTelemetryEvent(t)},t.prototype.addSink=function(e){this.telemetrySinks.push(e),this.flushQueue()},t.prototype.flushQueue=function(){var e=this.eventQueue;if(this.eventQueue=[],this.telemetrySinks.length>0)for(var t=0,n=e;t<n.length;t++){var r=n[t],o=r[0],i=r[1];this.sendTelemetryEventInternal(o,i)}},t.prototype.setTenantToken=function(t,n,r){e.setTenantTokens(t,{ariaTenantToken:n,nexusTenantToken:r})},t.prototype.setDNMToken=function(t,n){e.setTenantTokens(t,{dnmToken:n})},t.prototype.cloneEvent=function(e){return n(e)},t.prototype.getConfig=function(){return this.config},t}();e.SimpleTelemetryLogger=r}(oteljs||(oteljs={})),function(e){var t=9007199254740991,n=/^Office(\.[A-Z][a-zA-Z0-9]*){2,}$/,r=/^[a-zA-Z0-9_\.]{1,95}$/;function o(e){return r.test(e)}function i(e){e&&e.forEach((function(e){if("string"!=typeof e.name||!o(e.name))throw new Error("Invalid dataField name");2===e.dataType&&a(e.value)}))}function a(e){if("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e<-9007199254740991||e>t)throw new Error("Invalid integer ".concat(JSON.stringify(e)))}e.validateTelemetryEvent=function(e){if(!function(e){if(!e||e.length>98)return!1;return n.test(e)}(e.eventName))throw new Error("Invalid eventName");var t=e.eventContract;if(t){if(t.name&&!o(t.name))throw new Error("Invalid eventContract");i(t.dataFields)}i(e.dataFields)},e.validateInt=a}(oteljs||(oteljs={})),function(e){var t={};e.setTenantTokens=function(n,r){"Office."===n.substring(0,7)&&"."!==n[n.length-1]?t[n]?(r.ariaTenantToken&&(t[n].ariaTenantToken=r.ariaTenantToken),r.dnmToken&&(t[n].dnmToken=r.dnmToken)):t[n]=r:e.logNotification(0,0,(function(){return"Namespace: ".concat(n)}))},e.fillTenantTokens=function(e,n){for(var r=e.length;r>0;){var o=e.substr(0,r);if(t[o]){var i=t[o];return n.ariaTenantToken=i.ariaTenantToken,n.dnmToken=i.dnmToken,!0}r=e.lastIndexOf(".",r-1)}return!1},e.clear=function(){t={}}}(oteljs||(oteljs={})),function(e){e.oteljsVersion="4.18.0"}(oteljs||(oteljs={})),function(e){var t=function(){function t(){var e=this;this._requestIsPending=!0,this._telemetryQueue=[],this._customerContentQueue=[],this.pause(1e3).then((function(){return e._requestIsPending=!1,e.processTelemetryEvents()})).catch()}return t.isSupportedByDeclaration=function(){return t.isSupportedVersion("1.2")},t.isSupportedVersion=function(e){return Office.context.requirements.isSetSupported("Telemetry",e)},t.prototype.sendCustomerContent=function(e){t.isSupportedVersion("1.3")&&(this._customerContentQueue.push(e),this.processWorkBacklog())},t.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push(e),this.processWorkBacklog()},t.prototype.processWorkBacklog=function(){var t=this;this._requestIsPending||(this._requestIsPending=!0,this.processTelemetryEvents().then((function(){t.waitAndProcessMore()})).catch((function(n){e.logError(1,"RichApiSink Error",n),t.waitAndProcessMore()})))},t.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then((function(){e._requestIsPending=!1,e._telemetryQueue.length>0&&setTimeout((function(){return e.processWorkBacklog()}),0)})).catch((function(){e._requestIsPending=!1}))},t.prototype.processTelemetryEvents=function(){var t=this,n=this._telemetryQueue;this._telemetryQueue=[];var r=this._customerContentQueue;this._customerContentQueue=[];var o=new OfficeCore.RequestContext,i=function(n,r){if(n.telemetryProperties){var o=[];t.addDataFields(o,n.dataFields);var i=n.eventContract?n.eventContract.name:"";n.eventContract&&t.addDataFields(o,n.eventContract.dataFields),r(n.telemetryProperties,n.eventName,i,e.getEffectiveEventFlags(n),o)}};return n.forEach((function(e){i(e,(function(e,t,n,r,i){o.telemetry.sendTelemetryEvent(e,t,n,r,i)}))})),r.forEach((function(e){i(e,(function(e,t,n,r,i){o.telemetry.sendCustomerContent(e,t,n,r,i)}))})),o.sync().catch((function(t){e.logError(1,"RichApi telemetry failed.",t)}))},t.prototype.addDataFields=function(e,t){t&&t.forEach((function(t){e.push({name:t.name,value:t.value,classification:t.classification?t.classification:4,type:4===t.dataType?0:t.dataType})}))},t.prototype.pause=function(e){return new Office.Promise((function(t){return setTimeout(t,e)}))},t}();e.RichApiSink=t}(oteljs||(oteljs={})),function(e){!function(t){!function(t){!function(t){!function(t){t.getFields=function(t,n){var r=[];return void 0!==n.id&&r.push(e.makeStringDataField("".concat(t,".Id"),n.id)),void 0!==n.version&&r.push(e.makeStringDataField("".concat(t,".Version"),n.version)),void 0!==n.instanceId&&r.push(e.makeStringDataField("".concat(t,".InstanceId"),n.instanceId)),void 0!==n.name&&r.push(e.makeStringDataField("".concat(t,".Name"),n.name)),void 0!==n.marketplaceType&&r.push(e.makeStringDataField("".concat(t,".MarketplaceType"),n.marketplaceType)),void 0!==n.sessionId&&r.push(e.makeStringDataField("".concat(t,".SessionId"),n.sessionId)),void 0!==n.browserToken&&r.push(e.makeStringDataField("".concat(t,".BrowserToken"),n.browserToken)),void 0!==n.osfRuntimeVersion&&r.push(e.makeStringDataField("".concat(t,".OsfRuntimeVersion"),n.osfRuntimeVersion)),void 0!==n.officeJsVersion&&r.push(e.makeStringDataField("".concat(t,".OfficeJsVersion"),n.officeJsVersion)),void 0!==n.hostJsVersion&&r.push(e.makeStringDataField("".concat(t,".HostJsVersion"),n.hostJsVersion)),void 0!==n.assetId&&r.push(e.makeStringDataField("".concat(t,".AssetId"),n.assetId)),void 0!==n.providerName&&r.push(e.makeStringDataField("".concat(t,".ProviderName"),n.providerName)),void 0!==n.type&&r.push(e.makeStringDataField("".concat(t,".Type"),n.type)),r}}(t.SDX||(t.SDX={}))}(t.System||(t.System={}))}(t.Office||(t.Office={}))}(e.Contracts||(e.Contracts={}))}(oteljs||(oteljs={})),function(e){var t=function(){function t(){}return t.isSupported=function(){return Office.context&&Office.context.platform?Office.context.platform===Office.PlatformType.OfficeOnline:OfficeExt&&OfficeExt.HostName&&OfficeExt.HostName.Host&&OfficeExt.HostName.Host.getInstance().getPlatform()===Office.PlatformType.OfficeOnline},t.prototype.sendTelemetryEvent=function(t,n){try{if(t.dataFields&&t.dataFields.filter((function(e){var t=e.classification;return t&&4!==t&&1!==t})).length>0)return;var r=OSF._OfficeAppFactory.getId(),o=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[r,o,t])}catch(t){e.logError(1,"AgaveWacSink",t)}},t.prototype.sendCustomerContent=function(t,n){try{if(t.dataFields&&t.dataFields.filter((function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t})).length>0)return;var r=OSF._OfficeAppFactory.getId(),o=OSF.AgaveHostAction.SendCustomerContent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[r,o,t])}catch(t){e.logError(1,"AgaveWacSink",t)}},t}();e.SdxWacSink=t}(oteljs||(oteljs={}));var OfficeFirstPartyDialog,OfficeFirstPartyAuth,OfficeCore,OfficeFirstParty;__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var t=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,n=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),o=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),i=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags),l=function(l){function u(){return null!==l&&l.apply(this,arguments)||this}return __extends(u,l),Object.defineProperty(u.prototype,"_className",{get:function(){return"BiShim"},enumerable:!0,configurable:!0}),u.prototype.initialize=function(e){n(this,"Initialize",0,[e],s(2,"SharedApiUndo","1.5"),0)},u.prototype.getData=function(){return n(this,"getData",1,[],4,0)},u.prototype.setVisualObjects=function(e){n(this,"setVisualObjects",0,[e],2,0)},u.prototype.setVisualObjectsToPersist=function(e){n(this,"setVisualObjectsToPersist",0,[e],2,0)},u.prototype._handleResult=function(e){(l.prototype._handleResult.call(this,e),r(e))||i(this,e)},u.prototype._handleRetrieveResult=function(e,t){l.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},u.newObject=function(n){return t(e.BiShim,n,"Microsoft.AgaveVisual.BiShim",!1,4)},u.prototype.toJSON=function(){return o(this,{},{})},u}(OfficeExtension.ClientObject);e.BiShim=l,function(e){e.generalException="GeneralException"}(e.AgaveVisualErrorCodes||(e.AgaveVisualErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(e){OfficeExtension.BatchApiHelper.createPropertyObject;var t=OfficeExtension.BatchApiHelper.createMethodObject,n=(OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),r=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),o=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,i=(OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),a=OfficeExtension.Utility.isUndefined,s=OfficeExtension.Utility.throwIfNotLoaded,l=(OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load),u=OfficeExtension.Utility.retrieve,c=OfficeExtension.Utility.toJson,p=OfficeExtension.Utility.fixObjectPathIfNecessary,f=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),h=function(o){function a(){return null!==o&&o.apply(this,arguments)||this}return __extends(a,o),Object.defineProperty(a.prototype,"_className",{get:function(){return"FlightingService"},enumerable:!0,configurable:!0}),a.prototype.getClientSessionId=function(){return r(this,"GetClientSessionId",1,[],4,0)},a.prototype.getDeferredFlights=function(){return r(this,"GetDeferredFlights",1,[],4,0)},a.prototype.getFeature=function(n,r,o,i){return t(e.ABType,this,"GetFeature",1,[n,r,o,i],!1,!1,null,4)},a.prototype.getFeatureGate=function(n,r){return t(e.ABType,this,"GetFeatureGate",1,[n,r],!1,!1,null,4)},a.prototype.resetOverride=function(e){r(this,"ResetOverride",0,[e],0,0)},a.prototype.setOverride=function(e,t,n){r(this,"SetOverride",0,[e,t,n],0,0)},a.prototype._handleResult=function(e){(o.prototype._handleResult.call(this,e),i(e))||p(this,e)},a.prototype._handleRetrieveResult=function(e,t){o.prototype._handleRetrieveResult.call(this,e,t),f(this,e,t)},a.newObject=function(t){return n(e.FlightingService,t,"Microsoft.Experiment.FlightingService",!1,4)},a.prototype.toJSON=function(){return c(this,{},{})},a}(OfficeExtension.ClientObject);e.FlightingService=h;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ABType"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return s("value",this._V,"ABType",this._isNull),this._V},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!i(t)){var n=t;p(this,n),a(n.Value)||(this._V=n.Value)}},t.prototype.load=function(e){return l(this,e)},t.prototype.retrieve=function(e){return u(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),f(this,t,n)},t.prototype.toJSON=function(){return c(this,{value:this._V},{})},t.prototype.ensureUnchanged=function(e){o(this,e)},t}(OfficeExtension.ClientObject);e.ABType=d,function(e){e.boolean="Boolean",e.integer="Integer",e.string="String"}(e.FeatureType||(e.FeatureType={})),function(e){e.generalException="GeneralException"}(e.ExperimentErrorCodes||(e.ExperimentErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(e){var t,n=function(){function e(e){this._dialogService=e}return e.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},e.prototype.messageChild=function(e,t){DialogApiManager&&DialogApiManager.messageChildRichApiBridge&&DialogApiManager.messageChildRichApiBridge(e,t)},e}();e.Dialog=n,e.displayWebDialog=function(t,n){return void 0===n&&(n={}),new OfficeExtension.CoreUtility.Promise((function(o,i){if(n.width&&n.height&&(!r(n.width)||!r(n.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var a=new OfficeExtension.ClientRequestContext,s=OfficeCore.FirstPartyDialogService.newObject(a),l=new e.Dialog(s),u=s.onDialogMessage.add((function(e){OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e));var t,r,s,c=JSON.parse(e.message),p=c.errorCode?new OfficeExtension.Error((t=c.errorCode,(r={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},r[12003]={code:"InvalidUrl",message:"HTTPS is required."},r[12004]={code:"Untrusted",message:"Domain is not trusted."},r[12005]={code:"InvalidUrl",message:"HTTPS is required."},r[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},(s=r)[t]?s[t]:{code:"Unknown",message:"An unknown error has occured with code: "+t})):null,f=c.type,h=c.origin,d=c.message;switch(f){case 17:p?i(p):o(l);break;case 12:n.onMessage&&n.onMessage(d,l,h);break;case 10:default:12006===c.errorCode?(u&&(u.remove(),a.sync()),n.onClose&&n.onClose()):n.onRuntimeError&&(n.onRuntimeError(p,l),i(p))}return OfficeExtension.CoreUtility.Promise.resolve()}));return a.sync().then((function(){var e={width:n.width?parseInt(n.width):50,height:n.height?parseInt(n.height):50,displayInIFrame:n.displayInIFrame,dialogTitle:n.dialogTitle,escKeyCloseDialog:void 0===n.escKeyCloseDialog||n.escKeyCloseDialog};return s.displayDialog(t,e),a.sync()})).catch((function(e){i(e)}))}));function r(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}},function(e){e[e.dialogMessageReceived=0]="dialogMessageReceived",e[e.dialogEventReceived=1]="dialogEventReceived"}(t||(t={}))}(OfficeFirstPartyDialog||(OfficeFirstPartyDialog={})),function(e){e.OfficeOnlineDomainList=["*.dod.online.office365.us","*.gov.online.office365.us","*.officeapps-df.live.com","*.officeapps.live.com","*.online.office.de","*.partner.officewebapps.cn"],e.isHostOriginTrusted=function(){if(void 0===window.external||void 0===window.external.GetContext){var t=OSF.getClientEndPoint()._targetUrl,n=t.split("/")[2].split(":")[0].split("?")[0];return 0!=t.indexOf("https:")||e.OfficeOnlineDomainList.forEach((function(e){if(0==e.indexOf("*.")&&(e=e.substring(2)),n.indexOf(e)==n.length-e.length)return!0})),!1}return!0}}(OfficeCore||(OfficeCore={})),function(e){var t=function(){function t(e){this.context=e}return Object.defineProperty(t.prototype,"roamingSettings",{get:function(){return this.m_roamingSettings||(this.m_roamingSettings=e.AuthenticationService.newObject(this.context).roamingSettings),this.m_roamingSettings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tap",{get:function(){return this.m_tap||(this.m_tap=e.Tap.newObject(this.context)),this.m_tap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skill",{get:function(){return this.m_skill||(this.m_skill=e.Skill.newObject(this.context)),this.m_skill},enumerable:!0,configurable:!0}),t}();e.FirstPartyApis=t;var n=function(n){function r(e){return n.call(this,e)||this}return __extends(r,n),Object.defineProperty(r.prototype,"firstParty",{get:function(){return this.m_firstPartyApis||(this.m_firstPartyApis=new t(this)),this.m_firstPartyApis},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"flighting",{get:function(){return this.flightingService},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"telemetry",{get:function(){return this.m_telemetry||(this.m_telemetry=e.TelemetryService.newObject(this)),this.m_telemetry},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ribbon",{get:function(){return this.m_ribbon||(this.m_ribbon=e.DynamicRibbon.newObject(this)),this.m_ribbon},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bi",{get:function(){return this.m_biShim||(this.m_biShim=e.BiShim.newObject(this)),this.m_biShim},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"flightingService",{get:function(){return this.m_flightingService||(this.m_flightingService=e.FlightingService.newObject(this)),this.m_flightingService},enumerable:!0,configurable:!0}),r}(OfficeExtension.ClientRequestContext);e.RequestContext=n,e.run=function(t,n){return OfficeExtension.ClientRequestContext._runBatch("OfficeCore.run",arguments,(function(t){return new e.RequestContext(t)}))}}(OfficeCore||(OfficeCore={})),function(e){!function(e){function t(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}e.isFeatureEnabled=function(e,n){return __awaiter(this,void 0,void 0,(function(){var r,o,i;return __generator(this,(function(a){switch(a.label){case 0:return r=t(),o=OfficeCore.License.newObject(r),i=o.isFeatureEnabled(e,n),[4,r.sync()];case 1:return a.sent(),[2,i.value]}}))}))},e.getFeatureTier=function(e,n){return __awaiter(this,void 0,void 0,(function(){var r,o,i;return __generator(this,(function(a){switch(a.label){case 0:return r=t(),o=OfficeCore.License.newObject(r),i=o.getFeatureTier(e,n),[4,r.sync()];case 1:return a.sent(),[2,i.value]}}))}))},e.isFreemiumUpsellEnabled=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(o){switch(o.label){case 0:return e=t(),n=OfficeCore.License.newObject(e),r=n.isFreemiumUpsellEnabled(),[4,e.sync()];case 1:return o.sent(),[2,r.value]}}))}))},e.launchUpsellExperience=function(e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),OfficeCore.License.newObject(n).launchUpsellExperience(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.onFeatureStateChanged=function(e,n){return __awaiter(this,void 0,void 0,(function(){var r,o,i,a;return __generator(this,(function(s){switch(s.label){case 0:return r=t(),o=OfficeCore.License.newObject(r),(i=o.getLicenseFeature(e)).onStateChanged.add(n),a=function(){return i.onStateChanged.remove(n),null},[4,r.sync()];case 1:return s.sent(),[2,a]}}))}))},e.getMsaDeviceTicket=function(e,n,r){return __awaiter(this,void 0,void 0,(function(){var o,i,a;return __generator(this,(function(s){switch(s.label){case 0:return o=t(),i=OfficeCore.License.newObject(o),a=i.getMsaDeviceTicket(e,n,r),[4,o.sync()];case 1:return s.sent(),[2,a.value]}}))}))}}(e.license||(e.license={}))}(Office||(Office={})),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var t,n=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,r=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),o=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),i=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),l=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags),u=function(u){function c(){return null!==u&&u.apply(this,arguments)||this}return __extends(c,u),Object.defineProperty(c.prototype,"_className",{get:function(){return"Skill"},enumerable:!0,configurable:!0}),c.prototype.executeAction=function(e,t,n){return r(this,"ExecuteAction",1,[e,t,n],5,0)},c.prototype.notifyPaneEvent=function(e,t){r(this,"NotifyPaneEvent",1,[e,t],5,0)},c.prototype.registerHostSkillEvent=function(){r(this,"RegisterHostSkillEvent",0,[],l(3,"SharedApiUndo","1.1"),0)},c.prototype.testFireEvent=function(){r(this,"TestFireEvent",0,[],l(3,"SharedApiUndo","1.1"),0)},c.prototype.unregisterHostSkillEvent=function(){r(this,"UnregisterHostSkillEvent",0,[],l(3,"SharedApiUndo","1.1"),0)},c.prototype._handleResult=function(e){(u.prototype._handleResult.call(this,e),o(e))||a(this,e)},c.prototype._handleRetrieveResult=function(e,t){u.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},c.newObject=function(t){return n(e.Skill,t,"Microsoft.SkillApi.Skill",!1,4)},Object.defineProperty(c.prototype,"onHostSkillEvent",{get:function(){var e=this;return this.m_hostSkillEvent||(this.m_hostSkillEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"HostSkillEvent",{eventType:65538,registerFunc:function(){return e.registerHostSkillEvent()},unregisterFunc:function(){return e.unregisterHostSkillEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(n){var r=t.Skill_HostSkillEvent_EventArgsTransform(e,n);return OfficeExtension.Utility._createPromiseFromResult(r)}})),this.m_hostSkillEvent},enumerable:!0,configurable:!0}),c.prototype.toJSON=function(){return i(this,{},{})},c}(OfficeExtension.ClientObject);e.Skill=u,function(e){e.Skill_HostSkillEvent_EventArgsTransform=function(e,t){return{type:t.type,data:t.data}}}(t=e._CC||(e._CC={})),function(e){e.generalException="GeneralException"}(e.SkillErrorCodes||(e.SkillErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var t=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,n=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),o=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported),i=(OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),l=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,function(l){function u(){return null!==l&&l.apply(this,arguments)||this}return __extends(u,l),Object.defineProperty(u.prototype,"_className",{get:function(){return"TelemetryService"},enumerable:!0,configurable:!0}),u.prototype.sendNonStandardEvent=function(e,t,r,i,a,s){o("TelemetryService.sendNonStandardEvent","Telemetry","1.4","OfficeCore"),n(this,"SendNonStandardEvent",1,[e,t,r,i,a,s],4,0)},u.prototype.sendTelemetryEvent=function(e,t,r,o,i){n(this,"SendTelemetryEvent",1,[e,t,r,o,i],4,0)},u.prototype._handleResult=function(e){(l.prototype._handleResult.call(this,e),r(e))||a(this,e)},u.prototype._handleRetrieveResult=function(e,t){l.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},u.newObject=function(n){return t(e.TelemetryService,n,"Microsoft.Telemetry.TelemetryService",!1,4)},u.prototype.toJSON=function(){return i(this,{},{})},u}(OfficeExtension.ClientObject));e.TelemetryService=l,function(e){e.unset="Unset",e.string="String",e.boolean="Boolean",e.int64="Int64",e.double="Double"}(e.DataFieldType||(e.DataFieldType={})),function(e){e.sendTelemetryEvent="SendTelemetryEvent",e.customerContent="CustomerContent",e.directNumericEvent="DirectNumericEvent"}(e.EventType||(e.EventType={})),function(e){e.generalException="GeneralException"}(e.TelemetryErrorCodes||(e.TelemetryErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(e){var t="officeWebAuthReplyUrls",n=!1,r=null;function o(e){var t=null,n=null,r=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t=e.apply(void 0,n)};return{immediateCall:r,delayCall:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=function(){return r.apply(void 0,e)}},waitForPromise:function(){return n&&(n(),n=null),t||Promise.resolve()}}}function i(t){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(o){switch(o.label){case 0:return n=!1,t&&e.supportsTeamsTokenFlow?(n=!0,[3,3]):[3,1];case 1:return[4,a()];case 2:(r=o.sent()).supportsAuthToken?n=!0:t&&(n=!r.hostPageSupportsAuth),o.label=3;case 3:return[2,n]}}))}))}function a(){return Office&&Office.context&&Office.context.webAuth?r?Promise.resolve(r):new Promise((function(e,t){Office.context.webAuth.getAuthContextAsync((function(n){if("succeeded"===n.status){if(!(r=n.value)||r.isAnonymous)return void t({code:"CannotGetAuthContext",message:r?r.Error:void 0,loggableErrorMessage:"Anonymous user"});if(!r.appId)return void t({code:"CannotGetAuthContext",message:"App ID is missing from getAuthContextAsync. Please verify the WebApplicationInfo node in app manifest."});e(r)}else t({code:"CannotGetAuthContext",message:n.status,loggableErrorMessage:String(n.error.code)})}))})):Promise.reject({code:"GetAuthContextAsyncMissing",message:"Office:["+!Office+"],Office.context:["+!Office.context+"],Office.context.webAuth:["+!Office.context.webAuth+"]"})}e.authFlow="authcode",e.autoPopup=!1,e.upnCheck=!0,e.timeout=void 0,e.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",e.debugging=!1,e.useMsal3=void 0,e.delay=0,e.delayMsal=0,e.supportsOauthManager=!1,e.supportsTeamsTokenFlow=!0,e.supportsBrowserAuth=!0;var s=o((function(r,o){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(s){switch(s.label){case 0:return e.supportsBrowserAuth?[4,a()]:[2,Promise.reject({code:"PackageNotLoaded"})];case 1:return i=s.sent(),[2,new Promise((function(a,s){try{var l="msa"===i.authorityType.toLowerCase();if(OSF.WebAuth.config={authFlow:e.authFlow,authVersion:e.authVersion?e.authVersion:null,msal:e.msal,delayWebAuth:e.delay,delayMsal:e.delayMsal,debugging:e.debugging,useMsal3:e.useMsal3,authority:e.authorityOverride?e.authorityOverride:i.authority,idp:i.authorityType.toLowerCase(),appIds:[l&&i.msaAppId?i.msaAppId:i.appId],redirectUri:r||null,upn:i.upn,puid:i.userId,prefetch:o,telemetryInstance:"otel",autoPopup:e.autoPopup,enableUpnCheck:e.upnCheck,enableConsoleLogging:e.debugging,tenantId:i.tenantId,timeout:e.timeout},OSF.WebAuth.load().then((function(e){c(e,n=!0),a()})).catch((function(e){s({code:"PackageNotLoaded",message:e instanceof Event?e.type:e,telemetryResult:e})})),"implicit"===e.authFlow){var u=r||window.location.href.split("?")[0],p=sessionStorage.getItem(t);p||""===p?p=u:p+=", "+u,p&&sessionStorage.setItem(t,p)}}catch(e){OSF.WebAuth.config=null,OSF.WebAuth.load().then((function(){a()})).catch((function(){s({code:"FailedToLoad",message:e})}))}}))]}}))}))}));var l=o((function(t,n){return __awaiter(this,void 0,void 0,(function(){var r,o;return __generator(this,(function(a){switch(a.label){case 0:if(!OSF.WebAuth||"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform)return[3,6];a.label=1;case 1:return a.trys.push([1,5,,6]),s.delayCall(t,n),[4,i(e.supportsOauthManager)];case 2:return a.sent()?[3,4]:[4,s.waitForPromise()];case 3:a.sent(),a.label=4;case 4:return[3,6];case 5:throw r=a.sent(),c((o=r).result,!1,o),delete o.result,delete o.loggableErrorMessage,o;case 6:return[2]}}))}))}));function u(e,t){return l.immediateCall(e,t)}function c(e,t,n){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded((function(){var r=OSF.WebAuth.config?[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.appIds[0]),oteljs.makeStringDataField("Target",{authFlow:OSF.WebAuth.config.authFlow,authVersion:OSF.WebAuth.config.authVersion,msal:OSF.WebAuth.config.msal,autoPopup:OSF.WebAuth.config.autoPopup,enableUpnCheck:OSF.WebAuth.config.upnCheck}),oteljs.makeBooleanDataField("UseMsal3",!0===OSF.WebAuth.config.useMsal3)]:[],o=n&&n.loggableErrorMessage?n.loggableErrorMessage:"",i=t?[]:[oteljs.makeStringDataField("ApiErrorCode",n&&n.code?n.code:""),oteljs.makeStringDataField("Error",o||(e instanceof Event?e.type:""))],a=r.concat(i,[oteljs.makeBooleanDataField("Result",t)]);if(e&&!(e instanceof Event)&&e.Telemetry)for(var s in e.Telemetry)if(e.Telemetry[s])switch(s){case"succeeded":a.push(oteljs.makeBooleanDataField(s,e.Telemetry[s]));break;case"loadedApplicationCount":case"timeToLoad":a.push(oteljs.makeInt64DataField(s,e.Telemetry[s]));break;default:a.push(oteljs.makeStringDataField(s,e.Telemetry[s]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.Load",dataFields:a,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})}))}function p(e,t,n){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded((function(){var r=[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.appIds[0]),oteljs.makeStringDataField("Target",{authFlow:OSF.WebAuth.config.authFlow,authVersion:OSF.WebAuth.config.authVersion,msal:OSF.WebAuth.config.msal,autoPopup:OSF.WebAuth.config.autoPopup,enableUpnCheck:OSF.WebAuth.config.upnCheck}),oteljs.makeBooleanDataField("Popup","boolean"==typeof n&&n),oteljs.makeBooleanDataField("Result",t),oteljs.makeStringDataField("Error",e instanceof Event?e.type:e.ErrorCode)];if(e&&!(e instanceof Event)&&e.Telemetry)for(var o in e.Telemetry)if(e.Telemetry[o])switch(o){case"succeeded":r.push(oteljs.makeBooleanDataField(o,e.Telemetry[o]));break;case"timeToGetToken":r.push(oteljs.makeInt64DataField(o,e.Telemetry[o]));break;default:r.push(oteljs.makeStringDataField(o,e.Telemetry[o]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.GetAccessToken",dataFields:r,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})}))}e.load=u,e.getAccessToken=function(e,t){var r=this;return l.waitForPromise().then((function(){return new Promise((function(o,a){return __awaiter(r,void 0,void 0,(function(){var r,l,u,c,f,h,d,y;return __generator(this,(function(m){switch(m.label){case 0:return m.trys.push([0,10,,11]),"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform?[3,6]:[4,i(!!e.appName)];case 1:return m.sent()?[3,3]:[4,s.waitForPromise()];case 2:return m.sent(),OSF.WebAuth&&n?OSF.WebAuth.config.appIds[0]&&OSF.WebAuth.getToken(e.resource,null,OSF.WebAuth.config.appIds[0],e.correlationId||OSF._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId,t&&t.popup?t.popup:null,e&&e.authChallenge?e.authChallenge:null).then((function(e){p(e,!0,!(!t||!t.popup)&&t.popup),o({accessToken:e.Token,tokenIdenityType:"msa"==OSF.WebAuth.config.idp.toLowerCase()?OfficeCore.IdentityType.microsoftAccount:OfficeCore.IdentityType.organizationAccount})})).catch((function(e){p(e,!1,!(!t||!t.popup)&&t.popup),a({code:e.ErrorCode,message:e instanceof Event?e.type:e.ErrorMessage})})):(g=n,_=OSF.WebAuth.loadAttempts,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded((function(){var e=[oteljs.makeBooleanDataField("Loaded",g),oteljs.makeInt64DataField("LoadAttempts","number"==typeof _?_:0)];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.UnexpectedAcquire",dataFields:e,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})}))),[3,5];case 3:return r=new OfficeCore.RequestContext,c=OfficeCore.AuthenticationService.newObject(r),r._customData="WacPartition",l=c.getAccessToken(e,null),[4,r.sync()];case 4:m.sent(),o(l.value),m.label=5;case 5:return[3,9];case 6:return u=new OfficeCore.RequestContext,c=OfficeCore.AuthenticationService.newObject(u),f=c.onTokenReceived.add((function(e){if(!OfficeExtension.CoreUtility.isNullOrUndefined(e))if(f.remove(),u.sync().catch((function(){})),0==e.code)o(e.tokenValue);else if(OfficeExtension.CoreUtility.isNullOrUndefined(e.errorInfo))a({code:e.code});else try{a(JSON.parse(e.errorInfo))}catch(t){a({code:e.code,message:e.errorInfo})}return null})),[4,u.sync()];case 7:return m.sent(),h=c.getAccessToken(e,c._targetId),[4,u.sync()];case 8:if(m.sent(),OfficeExtension.CoreUtility.isNullOrUndefined(h.value))return[2,null];d=h.value.accessToken,OfficeExtension.CoreUtility.isNullOrUndefined(d)||o(h.value),m.label=9;case 9:return[3,11];case 10:return y=m.sent(),a(y),[3,11];case 11:return[2]}var g,_}))}))}))}))},e.getPrimaryIdentityInfo=function(){var e=new OfficeCore.RequestContext,t=OfficeCore.AuthenticationService.newObject(e);e._customData="WacPartition";var n=t.getPrimaryIdentityInfo();return e.sync().then((function(){return n.value}))},e.getIdentities=function(){var e=new OfficeCore.RequestContext,t=OfficeCore.AuthenticationService.newObject(e).getIdentities();return e.sync().then((function(){return t.value}))},e.onIdentityChanged=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r=this;return __generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),"web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform?[3,2]:(t=new OfficeCore.RequestContext,n=OfficeCore.AuthenticationService.newObject(t),n.onIdentityChanged.add(e),[4,t.sync()]);case 1:return o.sent(),[2,function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return n.onIdentityChanged.remove(e),[4,t.sync()];case 1:return r.sent(),[2]}}))}))}];case 2:return[3,4];case 3:return o.sent(),[3,4];case 4:return[2,function(){return Promise.resolve()}]}}))}))},"undefined"!=typeof window&&window.OSF&&function(){try{if("undefined"==typeof window||!window.sessionStorage)return;var e=sessionStorage.getItem(t);null!==e&&-1!==e.indexOf(window.location.origin+window.location.pathname)&&u()}catch(e){console.error(e)}}()}(OfficeFirstPartyAuth||(OfficeFirstPartyAuth={})),function(e){!function(e){var t,n;!function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Force=2]="Force"}(t=e.PopupOptions||(e.PopupOptions={})),function(e){e[e.UnsupportedUserIdentity=13003]="UnsupportedUserIdentity",e[e.UserAborted=13004]="UserAborted",e[e.InteractionRequired=13005]="InteractionRequired",e[e.ClientError=13006]="ClientError",e[e.ServerError=13007]="ServerError",e[e.NotAvailable=13012]="NotAvailable",e[e.InternalError=5001]="InternalError",e[e.InvalidApiArguments=5013]="InvalidApiArguments"}(n=e.AuthErrorCode||(e.AuthErrorCode={}));var r={ACCOUNT_UNAVAILABLE:n.UnsupportedUserIdentity,USER_CANCEL:n.UserAborted,USER_INTERACTION_REQUIRED:n.InteractionRequired,PERSISTENT_ERROR:n.ClientError,NO_NETWORK:n.ServerError,TRANSIENT_ERROR:n.ServerError,NESTED_APP_AUTH_UNAVAILABLE:n.NotAvailable},o={POPUP_WINDOW_ERROR:n.ClientError,USER_CANCELLED:n.UserAborted},i="access_token",a="xms_cc",s=0,l=!1,u=!1,c=void 0,p=null,f=void 0;e.clientCapabilities=[],e.upnCheck=!0,e.timeout=void 0,e.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",e.debugging=!1,e.delay=0,e.delayMsal=0,e.useMsal3=void 0;var h={},d=function(e){try{var t="string"==typeof e?e:e.data,o=JSON.parse(t);if(o.requestId){var i=o.requestId;if(h.hasOwnProperty(i)){var a=n.InternalError,s=h[i],l=s[0],u=s[1];delete h[i];var c=o.token;if(c&&!0===o.success&&c.access_token&&"number"==typeof c.expires_in)return void l({accessToken:c.access_token,idToken:c.id_token,expiresOn:new Date(Date.now()+1e3*c.expires_in)});var p=o.error;if(p){var f=p.status;r[f]&&(a=r[f])}u({code:a})}}}catch(e){}},y={code:n.NotAvailable};function m(t){if(0===e.clientCapabilities.length)return t;var n={};if(t)try{n=JSON.parse(t)}catch(e){}return n.hasOwnProperty(i)||(n[i]={}),n[i][a]={values:e.clientCapabilities},JSON.stringify(n)}function g(e,t){var r=e.clientId||f,i=e.correlationId||OSF.OUtil.Guid.generateNewGuid(),a=Date.now(),p=function(e){var n=function(e,n){var o=Date.now()-a;!function(e,t,n,r,o,i){if(s>0&&!n)return;s++,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded((function(){var o=[oteljs.makeStringDataField("NestedClientId",e),oteljs.makeStringDataField("CorrelationId",t),oteljs.makeBooleanDataField("Popup",n),oteljs.makeInt64DataField("Duration",r),oteljs.makeInt64DataField("ErrorCode",i?i.code:0),oteljs.makeBooleanDataField("BridgeAvailable",_())];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.NestedAppAuth.GetAccessToken",dataFields:o,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.NecessaryServiceDataEvent}})}))}(r,i,t,o,0,n)};return e.then((function(e){n(0,null)})).catch((function(e){n(0,e)})),e};return _()?p(new Promise((function(n,o){var a=OSF.OUtil.Guid.generateNewGuid(),s=e.scopes.join(" "),u={messageType:"NestedAppAuthRequest",method:t?"GetTokenPopup":"GetToken",requestId:a,clientLibrary:"officejs",sendTime:Date.now(),tokenParams:{clientId:r,scope:s,correlationId:i,claims:m(e.claims)}};l||(nestedAppAuthBridge.addEventListener("message",d),l=!0),h[a]=[n,o],nestedAppAuthBridge.postMessage(JSON.stringify(u))}))):p(c?c.then((function(){if(!u)return Promise.reject(y);var a=e.scopes.join(" ");return a=a.replace(/(\/.default)$/,""),OSF.WebAuth.getToken(a,e.scopes,r,i,t,e.claims).then((function(e){return{accessToken:e.Token,expiresOn:e.MsalResult?e.MsalResult.expiresOn:void 0}})).catch((function(e){var t=n.InternalError,r=void 0;if(e)if(r=e.ErrorMessage,e.MsalResult&&"InteractionRequiredAuthError"===e.MsalResult.name)t=n.InteractionRequired;else if(e.ErrorCode){var i=e.ErrorCode.toUpperCase();o[i]&&(t=o[i])}return Promise.reject({code:t,description:r})}))})):Promise.reject(y))}function _(){return"undefined"!=typeof nestedAppAuthBridge}e.isBridgeAvailable=_,e.load=function(t,n,r,o){return f=t,o&&(e.clientCapabilities=o),c||(c=new Promise((function(i,a){if(_())i();else if(Office&&Office.context&&Office.context.auth&&OSF.WebAuth)try{Office.context.auth.getAuthContextAsync((function(s){if("succeeded"===s.status){if(!(p=s.value))return void a(y);OSF.WebAuth.config={authFlow:"authcode",authVersion:e.authVersion?e.authVersion:null,msal:e.msal,delayWebAuth:e.delay,delayMsal:e.delayMsal,debugging:e.debugging,useMsal3:e.useMsal3,authority:e.authorityOverride?e.authorityOverride:p.authorityBaseUrl,idp:"msa"===p.authorityType.toLowerCase()?"msa":"aad",appIds:[t],redirectUri:n||null,upn:p.userPrincipalName,prefetch:r,telemetryInstance:"otel",enableUpnCheck:e.upnCheck,enableConsoleLogging:e.debugging,checkActiveAccount:!0,tenantId:p.tenantId,timeout:e.timeout,clientCapabilities:o},OSF.WebAuth.load().then((function(e){u=!0,i()})).catch((function(e){a(__assign({},y,{description:e instanceof Event?e.type:void 0}))}))}else a(y)}))}catch(e){a(y)}else a(y)})))},e.getAccessToken=function(e){var r=null==e.popup?t.None:e.popup;if(r===t.Auto&&!e.directUserActionCallback)throw{code:n.InvalidApiArguments};return g(e,r===t.Force).catch((function(o){if(o.code==n.InteractionRequired&&r===t.Auto&&e.directUserActionCallback)return e.directUserActionCallback().then((function(t){if(t)return g(e,!0);throw{code:n.UserAborted}})).catch((function(){throw{code:n.UserAborted}}));throw o}))}}(e.NestedAppAuth||(e.NestedAppAuth={}))}(OfficeFirstPartyAuth||(OfficeFirstPartyAuth={})),function(e){var t,n="Office",r=OfficeExtension.BatchApiHelper.createPropertyObject,o=OfficeExtension.BatchApiHelper.createMethodObject,i=OfficeExtension.BatchApiHelper.createIndexerObject,a=(OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),s=OfficeExtension.BatchApiHelper.createChildItemObject,l=OfficeExtension.BatchApiHelper.invokeMethod,u=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,c=OfficeExtension.BatchApiHelper.invokeSetProperty,p=OfficeExtension.Utility.isNullOrUndefined,f=OfficeExtension.Utility.isUndefined,h=OfficeExtension.Utility.throwIfNotLoaded,d=OfficeExtension.Utility.throwIfApiNotSupported,y=OfficeExtension.Utility.load,m=OfficeExtension.Utility.retrieve,g=OfficeExtension.Utility.toJson,_=OfficeExtension.Utility.fixObjectPathIfNecessary,b=OfficeExtension.Utility._handleNavigationPropertyResults,v=OfficeExtension.Utility.adjustToDateTime,O=OfficeExtension.Utility.processRetrieveResult,C=OfficeExtension.Utility.setMockData,S=OfficeExtension.CommonUtility.calculateApiFlags,P=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DialogPage"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return h("_Id",this.__I,"DialogPage",this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.close=function(){l(this,"Close",1,[],4,0)},n.prototype.readyToShow=function(){l(this,"ReadyToShow",1,[],4,0)},n.prototype.registerOnShow=function(){l(this,"RegisterOnShow",1,[],4,0)},n.prototype.sendMessageToHost=function(e){l(this,"SendMessageToHost",1,[e],4,0)},n.prototype.unregisterOnShow=function(){l(this,"UnregisterOnShow",1,[],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),f(n._Id)||(this.__I=n._Id)}},n.prototype.load=function(e){return y(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),p(e)||f(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.DialogPage,t,"Microsoft.Office.DialogPage.DialogPage",!1,4)},Object.defineProperty(n.prototype,"onOnShowEvent",{get:function(){var e=this;return this.m_onShowEvent||(this.m_onShowEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"OnShowEvent",{eventType:1,registerFunc:function(){return e.registerOnShow()},unregisterFunc:function(){return e.unregisterOnShow()},getTargetIdFunc:function(){return e._Id},eventArgsTransformFunc:function(e){return OfficeExtension.Utility._createPromiseFromResult({})}})),this.m_onShowEvent},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.DialogPage=P,function(e){e.unknown="Unknown",e.basic="Basic",e.premium="Premium"}(t=e.LicenseFeatureTier||(e.LicenseFeatureTier={}));var A=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"License"},enumerable:!0,configurable:!0}),n.prototype.getFeatureTier=function(e,t){return l(this,"GetFeatureTier",1,[e,t],4,0)},n.prototype.getLicenseFeature=function(t){return o(e.LicenseFeature,this,"GetLicenseFeature",1,[t],!1,!1,null,4)},n.prototype.getMsaDeviceTicket=function(e,t,n){return l(this,"GetMsaDeviceTicket",1,[e,t,n],5,0)},n.prototype.isFeatureEnabled=function(e,t){return l(this,"IsFeatureEnabled",1,[e,t],4,0)},n.prototype.isFreemiumUpsellEnabled=function(){return l(this,"IsFreemiumUpsellEnabled",1,[],4,0)},n.prototype.launchUpsellExperience=function(e){l(this,"LaunchUpsellExperience",1,[e],4,0)},n.prototype._TestFireStateChangedEvent=function(e){l(this,"_TestFireStateChangedEvent",0,[e],S(3,"SharedApiUndo","1.2"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.License,t,"Microsoft.Office.Licensing.License",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.License=A;var E,R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"LicenseFeature"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return h("id",this._I,"LicenseFeature",this._isNull),this._I},enumerable:!0,configurable:!0}),t.prototype._RegisterStateChange=function(){l(this,"_RegisterStateChange",1,[],4,0)},t.prototype._UnregisterStateChange=function(){l(this,"_UnregisterStateChange",1,[],4,0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!p(t)){var n=t;_(this,n),f(n.Id)||(this._I=n.Id)}},t.prototype.load=function(e){return y(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),p(t)||f(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},Object.defineProperty(t.prototype,"onStateChanged",{get:function(){var e=this;return this.m_stateChanged||(this.m_stateChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"StateChanged",{eventType:1,registerFunc:function(){return e._RegisterStateChange()},unregisterFunc:function(){return e._UnregisterStateChange()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(t){var n=E.LicenseFeature_StateChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_stateChanged},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return g(this,{id:this._I},{})},t.prototype.setMockData=function(e){C(this,e)},t.prototype.ensureUnchanged=function(e){u(this,e)},t}(OfficeExtension.ClientObject);e.LicenseFeature=R,function(e){e.LicenseFeature_StateChanged_EventArgsTransform=function(e,n){var r={feature:n.featureName,isEnabled:n.isEnabled,tier:n.tierName};return n.tierName&&(r.tier=0==n.tierName?t.unknown:1==n.tierName?t.basic:2==n.tierName?t.premium:n.tierName),r}}(E=e._CC||(e._CC={}));var x=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"MsaDeviceTicketOptions"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["scopes"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Scopes"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scopes",{get:function(){return h("scopes",this._S,"MsaDeviceTicketOptions",this._isNull),this._S},set:function(e){this._S=e,c(this,"Scopes",e,S(2,"SharedApiUndo","1.2"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["scopes"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),f(n.Scopes)||(this._S=n.Scopes)}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.MsaDeviceTicketOptions,t,"Microsoft.Office.Licensing.MsaDeviceTicketOptions",!1,4)},n.prototype.toJSON=function(){return g(this,{scopes:this._S},{})},n.prototype.setMockData=function(e){C(this,e)},n.prototype.ensureUnchanged=function(e){u(this,e)},n}(OfficeExtension.ClientObject);e.MsaDeviceTicketOptions=x;var T=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"AppRuntimePersistenceService"},enumerable:!0,configurable:!0}),n.prototype.getAppRuntimeStartState=function(){return l(this,"GetAppRuntimeStartState",1,[],4,0)},n.prototype.setAppRuntimeStartState=function(e){l(this,"SetAppRuntimeStartState",0,[e],S(2,"SharedRuntimeInternal","1.2"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.AppRuntimePersistenceService,t,"Microsoft.AppRuntime.AppRuntimePersistenceService",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.AppRuntimePersistenceService=T;var I=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return __extends(r,t),Object.defineProperty(r.prototype,"_className",{get:function(){return"AppRuntimeService"},enumerable:!0,configurable:!0}),r.prototype.getAppRuntimeState=function(){return l(this,"GetAppRuntimeState",1,[],4,0)},r.prototype.getContentSnapshotAsBase64=function(){return d("AppRuntimeService.getContentSnapshotAsBase64","SnapshotControl","1.1",n),l(this,"GetContentSnapshotAsBase64",1,[],4,0)},r.prototype.getSnapshotEnabled=function(){return d("AppRuntimeService.getSnapshotEnabled","SnapshotControl","1.1",n),l(this,"GetSnapshotEnabled",1,[],4,0)},r.prototype.setAppRuntimeState=function(e){l(this,"SetAppRuntimeState",0,[e],S(2,"SharedRuntimeInternal","1.2"),0)},r.prototype.setSnapshotEnabled=function(e){d("AppRuntimeService.setSnapshotEnabled","SnapshotControl","1.1",n),l(this,"SetSnapshotEnabled",1,[e],4,0)},r.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},r.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},r.newObject=function(t){return a(e.AppRuntimeService,t,"Microsoft.AppRuntime.AppRuntimeService",!1,4)},Object.defineProperty(r.prototype,"onSnapshotImageReady",{get:function(){return d("AppRuntimeService.onSnapshotImageReady","SnapshotControl","1.1",n),this.m_snapshotImageReady||(this.m_snapshotImageReady=new OfficeExtension.GenericEventHandlers(this.context,this,"SnapshotImageReady",{eventType:65547,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={imageBase64:e.imageBase64};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_snapshotImageReady},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"onVisibilityChanged",{get:function(){return this.m_visibilityChanged||(this.m_visibilityChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"VisibilityChanged",{eventType:65539,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={visibility:e.visibility};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_visibilityChanged},enumerable:!0,configurable:!0}),r.prototype.toJSON=function(){return g(this,{},{})},r}(OfficeExtension.ClientObject);e.AppRuntimeService=I,function(e){e.inactive="Inactive",e.background="Background",e.visible="Visible"}(e.AppRuntimeState||(e.AppRuntimeState={})),function(e){e.hidden="Hidden",e.visible="Visible"}(e.Visibility||(e.Visibility={})),function(e){e.default="Default",e.menus="Menus",e.panes="Panes",e.qat="QAT",e.statusBar="StatusBar",e.backstage="Backstage",e.dialogs="Dialogs"}(e.VisualSurface||(e.VisualSurface={}));var w=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ThemeService"},enumerable:!0,configurable:!0}),n.prototype.getOfficeThemeDataForVisualSurface=function(e){return l(this,"GetOfficeThemeDataForVisualSurface",1,[e],5,0)},n.prototype.registerOfficeThemeChangedEvent=function(){l(this,"RegisterOfficeThemeChangedEvent",0,[],S(2,"SharedApiUndo","1.1"),0)},n.prototype.unregisterOfficeThemeChangedEvent=function(){l(this,"UnregisterOfficeThemeChangedEvent",0,[],S(2,"SharedApiUndo","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.ThemeService,t,"Microsoft.Theme.ThemeService",!1,4)},Object.defineProperty(n.prototype,"onOfficeThemeChanged",{get:function(){var e=this;return this.m_officeThemeChanged||(this.m_officeThemeChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"OfficeThemeChanged",{eventType:65548,registerFunc:function(){return e.registerOfficeThemeChangedEvent()},unregisterFunc:function(){return e.unregisterOfficeThemeChangedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=E.ThemeService_OfficeThemeChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_officeThemeChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.ThemeService=w,function(e){e.ThemeService_OfficeThemeChanged_EventArgsTransform=function(e,t){return{bodyBackgroundColor:t.bodyBackgroundColor,bodyForegroundColor:t.bodyForegroundColor,controlBackgroundColor:t.controlBackgroundColor,controlForegroundColor:t.controlForegroundColor}}}(E=e._CC||(e._CC={}));var F=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Tap"},enumerable:!0,configurable:!0}),n.prototype.getEnterpriseUserInfo=function(){return l(this,"GetEnterpriseUserInfo",1,[],5,0)},n.prototype.getMruFriendlyPath=function(e){return l(this,"GetMruFriendlyPath",1,[e],5,0)},n.prototype.launchFileUrlInOfficeApp=function(e,t){return l(this,"LaunchFileUrlInOfficeApp",1,[e,t],5,0)},n.prototype.performLocalSearch=function(e,t,n,r){return l(this,"PerformLocalSearch",1,[e,t,n,r],5,0)},n.prototype.readSearchCache=function(e,t,n){return l(this,"ReadSearchCache",1,[e,t,n],5,0)},n.prototype.writeSearchCache=function(e,t,n){return l(this,"WriteSearchCache",1,[e,t,n],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.Tap,t,"Microsoft.TapRichApi.Tap",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.Tap=F,function(e){e.unknown="Unknown",e.chart="Chart",e.smartArt="SmartArt",e.table="Table",e.image="Image",e.slide="Slide",e.ole="OLE",e.text="Text"}(e.ObjectType||(e.ObjectType={})),function(e){e.placeHolderRendered="PlaceHolderRendered",e.initialCardRendered="InitialCardRendered"}(e.PersonaCardPerfPoint||(e.PersonaCardPerfPoint={})),function(e){e.notSet="NotSet",e.free="Free",e.idle="Idle",e.busy="Busy",e.idleBusy="IdleBusy",e.doNotDisturb="DoNotDisturb",e.unalertable="Unalertable",e.unavailable="Unavailable"}(e.UnifiedCommunicationAvailability||(e.UnifiedCommunicationAvailability={})),function(e){e.online="Online",e.notOnline="NotOnline",e.away="Away",e.busy="Busy",e.beRightBack="BeRightBack",e.onThePhone="OnThePhone",e.outToLunch="OutToLunch",e.inAMeeting="InAMeeting",e.outOfOffice="OutOfOffice",e.doNotDisturb="DoNotDisturb",e.inAConference="InAConference",e.getting="Getting",e.notABuddy="NotABuddy",e.disconnected="Disconnected",e.notInstalled="NotInstalled",e.urgentInterruptionsOnly="UrgentInterruptionsOnly",e.mayBeAvailable="MayBeAvailable",e.idle="Idle",e.inPresentation="InPresentation"}(e.UnifiedCommunicationStatus||(e.UnifiedCommunicationStatus={})),function(e){e.free="Free",e.busy="Busy",e.idle="Idle",e.doNotDistrub="DoNotDistrub",e.blocked="Blocked",e.notSet="NotSet",e.outOfOffice="OutOfOffice"}(e.UnifiedCommunicationPresence||(e.UnifiedCommunicationPresence={})),function(e){e.unknown="Unknown",e.free="Free",e.busy="Busy",e.elsewhere="Elsewhere",e.tentative="Tentative",e.outOfOffice="OutOfOffice"}(e.FreeBusyCalendarState||(e.FreeBusyCalendarState={})),function(e){e.unknown="Unknown",e.enterprise="Enterprise",e.contact="Contact",e.bot="Bot",e.phoneOnly="PhoneOnly",e.oneOff="OneOff",e.distributionList="DistributionList",e.personalDistributionList="PersonalDistributionList",e.anonymous="Anonymous",e.unifiedGroup="UnifiedGroup"}(e.PersonaType||(e.PersonaType={})),function(e){e.workPhone="WorkPhone",e.homePhone="HomePhone",e.mobilePhone="MobilePhone",e.businessFax="BusinessFax",e.otherPhone="OtherPhone"}(e.PhoneType||(e.PhoneType={})),function(e){e.workAddress="WorkAddress",e.homeAddress="HomeAddress",e.otherAddress="OtherAddress"}(e.AddressType||(e.AddressType={})),function(e){e.unknown="Unknown",e.individual="Individual",e.group="Group"}(e.MemberType||(e.MemberType={}));var N,D="MemberInfoList",k=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"MemberInfoList"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["isWarmedUp","isWarmingUp"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IsWarmedUp","IsWarmingUp"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWarmedUp",{get:function(){return h("isWarmedUp",this._I,D,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWarmingUp",{get:function(){return h("isWarmingUp",this._Is,D,this._isNull),this._Is},enumerable:!0,configurable:!0}),n.prototype.getPersonaForMember=function(t){return o(e.Persona,this,"GetPersonaForMember",1,[t],!1,!1,null,4)},n.prototype.items=function(){return l(this,"Items",1,[],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),f(n.IsWarmedUp)||(this._I=n.IsWarmedUp),f(n.IsWarmingUp)||(this._Is=n.IsWarmingUp)}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.prototype.toJSON=function(){return g(this,{isWarmedUp:this._I,isWarmingUp:this._Is},{})},n.prototype.setMockData=function(e){C(this,e)},n.prototype.ensureUnchanged=function(e){u(this,e)},n}(OfficeExtension.ClientObject);e.MemberInfoList=k,function(e){e.hostId="HostId",e.type="Type",e.photo="Photo",e.personaInfo="PersonaInfo",e.unifiedCommunicationInfo="UnifiedCommunicationInfo",e.organization="Organization",e.unifiedGroupInfo="UnifiedGroupInfo",e.members="Members",e.membership="Membership",e.capabilities="Capabilities",e.customizations="Customizations",e.viewableSources="ViewableSources",e.placeholder="Placeholder"}(N=e.PersonaDataUpdated||(e.PersonaDataUpdated={}));var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PersonaActions"},enumerable:!0,configurable:!0}),t.prototype.addContact=function(){l(this,"AddContact",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.callPhoneNumber=function(e){l(this,"CallPhoneNumber",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype.composeEmail=function(e){l(this,"ComposeEmail",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype.composeInstantMessage=function(e){l(this,"ComposeInstantMessage",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype.editContact=function(){l(this,"EditContact",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.editContactByIdentifier=function(e){l(this,"EditContactByIdentifier",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype.editUnifiedGroup=function(){l(this,"EditUnifiedGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.getChangePhotoUrlAndOpenInBrowser=function(){l(this,"GetChangePhotoUrlAndOpenInBrowser",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.hideHoverCardForPersona=function(){l(this,"HideHoverCardForPersona",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.joinUnifiedGroup=function(){l(this,"JoinUnifiedGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.leaveUnifiedGroup=function(){l(this,"LeaveUnifiedGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.openGroupCalendar=function(){l(this,"OpenGroupCalendar",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.openLinkContactUx=function(){l(this,"OpenLinkContactUx",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.openOutlookProperties=function(){l(this,"OpenOutlookProperties",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.pinPersonaToQuickContacts=function(){l(this,"PinPersonaToQuickContacts",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.scheduleMeeting=function(){l(this,"ScheduleMeeting",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.showContactCard=function(e,t,n,r,o,i){l(this,"ShowContactCard",0,[e,t,n,r,o,i],S(2,"SharedApiUndo","1.4"),0)},t.prototype.showContextMenu=function(e,t,n,r,o,i){l(this,"ShowContextMenu",0,[e,t,n,r,o,i],S(2,"SharedApiUndo","1.4"),0)},t.prototype.showExpandedCard=function(e,t,n,r,o,i){l(this,"ShowExpandedCard",0,[e,t,n,r,o,i],S(2,"SharedApiUndo","1.4"),0)},t.prototype.showHoverCardForPersona=function(e,t,n,r,o,i){l(this,"ShowHoverCardForPersona",0,[e,t,n,r,o,i],S(2,"SharedApiUndo","1.4"),0)},t.prototype.startAudioCall=function(){l(this,"StartAudioCall",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.startVideoCall=function(){l(this,"StartVideoCall",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.subscribeToGroup=function(){l(this,"SubscribeToGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.toggleTagForAlerts=function(){l(this,"ToggleTagForAlerts",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.unsubscribeFromGroup=function(){l(this,"UnsubscribeFromGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),p(t))||_(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},t.prototype.toJSON=function(){return g(this,{},{})},t}(OfficeExtension.ClientObject);e.PersonaActions=j;var U="PersonaInfoSource",M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PersonaInfoSource"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","phones","addresses","webSites","notes"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["DisplayName","Email","EmailAddresses","SipAddresses","Birthday","Birthdays","Title","JobInfoDepartment","CompanyName","Office","LinkedTitles","LinkedDepartments","LinkedCompanyNames","LinkedOffices","Phones","Addresses","WebSites","Notes"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addresses",{get:function(){return h("addresses",this._A,U,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"birthday",{get:function(){return h("birthday",this._B,U,this._isNull),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"birthdays",{get:function(){return h("birthdays",this._Bi,U,this._isNull),this._Bi},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"companyName",{get:function(){return h("companyName",this._C,U,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayName",{get:function(){return h("displayName",this._D,U,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"email",{get:function(){return h("email",this._E,U,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"emailAddresses",{get:function(){return h("emailAddresses",this._Em,U,this._isNull),this._Em},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"jobInfoDepartment",{get:function(){return h("jobInfoDepartment",this._J,U,this._isNull),this._J},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkedCompanyNames",{get:function(){return h("linkedCompanyNames",this._L,U,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkedDepartments",{get:function(){return h("linkedDepartments",this._Li,U,this._isNull),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkedOffices",{get:function(){return h("linkedOffices",this._Lin,U,this._isNull),this._Lin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkedTitles",{get:function(){return h("linkedTitles",this._Link,U,this._isNull),this._Link},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"notes",{get:function(){return h("notes",this._N,U,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"office",{get:function(){return h("office",this._O,U,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"phones",{get:function(){return h("phones",this._P,U,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sipAddresses",{get:function(){return h("sipAddresses",this._S,U,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return h("title",this._T,U,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"webSites",{get:function(){return h("webSites",this._W,U,this._isNull),this._W},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!p(t)){var n=t;_(this,n),f(n.Addresses)||(this._A=n.Addresses),f(n.Birthday)||(this._B=n.Birthday),f(n.Birthdays)||(this._Bi=n.Birthdays),f(n.CompanyName)||(this._C=n.CompanyName),f(n.DisplayName)||(this._D=n.DisplayName),f(n.Email)||(this._E=n.Email),f(n.EmailAddresses)||(this._Em=n.EmailAddresses),f(n.JobInfoDepartment)||(this._J=n.JobInfoDepartment),f(n.LinkedCompanyNames)||(this._L=n.LinkedCompanyNames),f(n.LinkedDepartments)||(this._Li=n.LinkedDepartments),f(n.LinkedOffices)||(this._Lin=n.LinkedOffices),f(n.LinkedTitles)||(this._Link=n.LinkedTitles),f(n.Notes)||(this._N=n.Notes),f(n.Office)||(this._O=n.Office),f(n.Phones)||(this._P=n.Phones),f(n.SipAddresses)||(this._S=n.SipAddresses),f(n.Title)||(this._T=n.Title),f(n.WebSites)||(this._W=n.WebSites)}},t.prototype.load=function(e){return y(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},t.prototype.toJSON=function(){return g(this,{addresses:this._A,birthday:this._B,birthdays:this._Bi,companyName:this._C,displayName:this._D,email:this._E,emailAddresses:this._Em,jobInfoDepartment:this._J,linkedCompanyNames:this._L,linkedDepartments:this._Li,linkedOffices:this._Lin,linkedTitles:this._Link,notes:this._N,office:this._O,phones:this._P,sipAddresses:this._S,title:this._T,webSites:this._W},{})},t.prototype.setMockData=function(e){C(this,e)},t.prototype.ensureUnchanged=function(e){u(this,e)},t}(OfficeExtension.ClientObject);e.PersonaInfoSource=M;var H="PersonaInfo",L=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PersonaInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","webSites","notes","isPersonResolved"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["DisplayName","Email","EmailAddresses","SipAddresses","Birthday","Birthdays","Title","JobInfoDepartment","CompanyName","Office","LinkedTitles","LinkedDepartments","LinkedCompanyNames","LinkedOffices","WebSites","Notes","IsPersonResolved"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["sources"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sources",{get:function(){return this._So||(this._So=r(e.PersonaInfoSource,this,"Sources",!1,4)),this._So},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"birthday",{get:function(){return h("birthday",this._B,H,this._isNull),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"birthdays",{get:function(){return h("birthdays",this._Bi,H,this._isNull),this._Bi},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"companyName",{get:function(){return h("companyName",this._C,H,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayName",{get:function(){return h("displayName",this._D,H,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"email",{get:function(){return h("email",this._E,H,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"emailAddresses",{get:function(){return h("emailAddresses",this._Em,H,this._isNull),this._Em},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isPersonResolved",{get:function(){return h("isPersonResolved",this._I,H,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"jobInfoDepartment",{get:function(){return h("jobInfoDepartment",this._J,H,this._isNull),this._J},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedCompanyNames",{get:function(){return h("linkedCompanyNames",this._L,H,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedDepartments",{get:function(){return h("linkedDepartments",this._Li,H,this._isNull),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedOffices",{get:function(){return h("linkedOffices",this._Lin,H,this._isNull),this._Lin},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedTitles",{get:function(){return h("linkedTitles",this._Link,H,this._isNull),this._Link},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"notes",{get:function(){return h("notes",this._N,H,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"office",{get:function(){return h("office",this._O,H,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sipAddresses",{get:function(){return h("sipAddresses",this._S,H,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return h("title",this._T,H,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"webSites",{get:function(){return h("webSites",this._W,H,this._isNull),this._W},enumerable:!0,configurable:!0}),n.prototype.getAddresses=function(){return l(this,"GetAddresses",1,[],4,0)},n.prototype.getPhones=function(){return l(this,"GetPhones",1,[],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),f(n.Birthday)||(this._B=v(n.Birthday)),f(n.Birthdays)||(this._Bi=v(n.Birthdays)),f(n.CompanyName)||(this._C=n.CompanyName),f(n.DisplayName)||(this._D=n.DisplayName),f(n.Email)||(this._E=n.Email),f(n.EmailAddresses)||(this._Em=n.EmailAddresses),f(n.IsPersonResolved)||(this._I=n.IsPersonResolved),f(n.JobInfoDepartment)||(this._J=n.JobInfoDepartment),f(n.LinkedCompanyNames)||(this._L=n.LinkedCompanyNames),f(n.LinkedDepartments)||(this._Li=n.LinkedDepartments),f(n.LinkedOffices)||(this._Lin=n.LinkedOffices),f(n.LinkedTitles)||(this._Link=n.LinkedTitles),f(n.Notes)||(this._N=n.Notes),f(n.Office)||(this._O=n.Office),f(n.SipAddresses)||(this._S=n.SipAddresses),f(n.Title)||(this._T=n.Title),f(n.WebSites)||(this._W=n.WebSites),b(this,n,["sources","Sources"])}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){if(t.prototype._handleRetrieveResult.call(this,e,n),!p(e)){var r=e;f(r.Birthday)||(r.birthday=v(r.birthday)),f(r.Birthdays)||(r.birthdays=v(r.birthdays)),O(this,e,n)}},n.prototype.toJSON=function(){return g(this,{birthday:this._B,birthdays:this._Bi,companyName:this._C,displayName:this._D,email:this._E,emailAddresses:this._Em,isPersonResolved:this._I,jobInfoDepartment:this._J,linkedCompanyNames:this._L,linkedDepartments:this._Li,linkedOffices:this._Lin,linkedTitles:this._Link,notes:this._N,office:this._O,sipAddresses:this._S,title:this._T,webSites:this._W},{sources:this._So})},n.prototype.setMockData=function(e){C(this,e)},n.prototype.ensureUnchanged=function(e){u(this,e)},n}(OfficeExtension.ClientObject);e.PersonaInfo=L;var B="PersonaUnifiedCommunicationInfo",W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PersonaUnifiedCommunicationInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["availability","status","isSelf","isTagged","customStatusString","isBlocked","presenceTooltip","isOutOfOffice","outOfOfficeNote","timezone","meetingLocation","meetingSubject","timezoneBias","idleStartTime","overallCapability","isOnBuddyList","presenceNote","voiceMailUri","availabilityText","availabilityTooltip","isDurationInAvailabilityText","freeBusyStatus","calendarState","presence"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Availability","Status","IsSelf","IsTagged","CustomStatusString","IsBlocked","PresenceTooltip","IsOutOfOffice","OutOfOfficeNote","Timezone","MeetingLocation","MeetingSubject","TimezoneBias","IdleStartTime","OverallCapability","IsOnBuddyList","PresenceNote","VoiceMailUri","AvailabilityText","AvailabilityTooltip","IsDurationInAvailabilityText","FreeBusyStatus","CalendarState","Presence"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availability",{get:function(){return h("availability",this._A,B,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availabilityText",{get:function(){return h("availabilityText",this._Av,B,this._isNull),this._Av},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availabilityTooltip",{get:function(){return h("availabilityTooltip",this._Ava,B,this._isNull),this._Ava},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendarState",{get:function(){return h("calendarState",this._C,B,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"customStatusString",{get:function(){return h("customStatusString",this._Cu,B,this._isNull),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"freeBusyStatus",{get:function(){return h("freeBusyStatus",this._F,B,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"idleStartTime",{get:function(){return h("idleStartTime",this._I,B,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBlocked",{get:function(){return h("isBlocked",this._Is,B,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDurationInAvailabilityText",{get:function(){return h("isDurationInAvailabilityText",this._IsD,B,this._isNull),this._IsD},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOnBuddyList",{get:function(){return h("isOnBuddyList",this._IsO,B,this._isNull),this._IsO},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOutOfOffice",{get:function(){return h("isOutOfOffice",this._IsOu,B,this._isNull),this._IsOu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSelf",{get:function(){return h("isSelf",this._IsS,B,this._isNull),this._IsS},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTagged",{get:function(){return h("isTagged",this._IsT,B,this._isNull),this._IsT},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"meetingLocation",{get:function(){return h("meetingLocation",this._M,B,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"meetingSubject",{get:function(){return h("meetingSubject",this._Me,B,this._isNull),this._Me},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outOfOfficeNote",{get:function(){return h("outOfOfficeNote",this._O,B,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overallCapability",{get:function(){return h("overallCapability",this._Ov,B,this._isNull),this._Ov},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"presence",{get:function(){return h("presence",this._P,B,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"presenceNote",{get:function(){return h("presenceNote",this._Pr,B,this._isNull),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"presenceTooltip",{get:function(){return h("presenceTooltip",this._Pre,B,this._isNull),this._Pre},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return h("status",this._S,B,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timezone",{get:function(){return h("timezone",this._T,B,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timezoneBias",{get:function(){return h("timezoneBias",this._Ti,B,this._isNull),this._Ti},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"voiceMailUri",{get:function(){return h("voiceMailUri",this._V,B,this._isNull),this._V},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!p(t)){var n=t;_(this,n),f(n.Availability)||(this._A=n.Availability),f(n.AvailabilityText)||(this._Av=n.AvailabilityText),f(n.AvailabilityTooltip)||(this._Ava=n.AvailabilityTooltip),f(n.CalendarState)||(this._C=n.CalendarState),f(n.CustomStatusString)||(this._Cu=n.CustomStatusString),f(n.FreeBusyStatus)||(this._F=n.FreeBusyStatus),f(n.IdleStartTime)||(this._I=v(n.IdleStartTime)),f(n.IsBlocked)||(this._Is=n.IsBlocked),f(n.IsDurationInAvailabilityText)||(this._IsD=n.IsDurationInAvailabilityText),f(n.IsOnBuddyList)||(this._IsO=n.IsOnBuddyList),f(n.IsOutOfOffice)||(this._IsOu=n.IsOutOfOffice),f(n.IsSelf)||(this._IsS=n.IsSelf),f(n.IsTagged)||(this._IsT=n.IsTagged),f(n.MeetingLocation)||(this._M=n.MeetingLocation),f(n.MeetingSubject)||(this._Me=n.MeetingSubject),f(n.OutOfOfficeNote)||(this._O=n.OutOfOfficeNote),f(n.OverallCapability)||(this._Ov=n.OverallCapability),f(n.Presence)||(this._P=n.Presence),f(n.PresenceNote)||(this._Pr=n.PresenceNote),f(n.PresenceTooltip)||(this._Pre=n.PresenceTooltip),f(n.Status)||(this._S=n.Status),f(n.Timezone)||(this._T=n.Timezone),f(n.TimezoneBias)||(this._Ti=n.TimezoneBias),f(n.VoiceMailUri)||(this._V=n.VoiceMailUri)}},t.prototype.load=function(e){return y(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleRetrieveResult=function(t,n){if(e.prototype._handleRetrieveResult.call(this,t,n),!p(t)){var r=t;f(r.IdleStartTime)||(r.idleStartTime=v(r.idleStartTime)),O(this,t,n)}},t.prototype.toJSON=function(){return g(this,{availability:this._A,availabilityText:this._Av,availabilityTooltip:this._Ava,calendarState:this._C,customStatusString:this._Cu,freeBusyStatus:this._F,idleStartTime:this._I,isBlocked:this._Is,isDurationInAvailabilityText:this._IsD,isOnBuddyList:this._IsO,isOutOfOffice:this._IsOu,isSelf:this._IsS,isTagged:this._IsT,meetingLocation:this._M,meetingSubject:this._Me,outOfOfficeNote:this._O,overallCapability:this._Ov,presence:this._P,presenceNote:this._Pr,presenceTooltip:this._Pre,status:this._S,timezone:this._T,timezoneBias:this._Ti,voiceMailUri:this._V},{})},t.prototype.setMockData=function(e){C(this,e)},t.prototype.ensureUnchanged=function(e){u(this,e)},t}(OfficeExtension.ClientObject);e.PersonaUnifiedCommunicationInfo=W;var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PersonaPhotoInfo"},enumerable:!0,configurable:!0}),t.prototype.getImageUri=function(e){return l(this,"getImageUri",1,[e],4,0)},t.prototype.getImageUriWithMetadata=function(e){return l(this,"getImageUriWithMetadata",1,[e],4,0)},t.prototype.getPlaceholderUri=function(e){return l(this,"getPlaceholderUri",1,[e],4,0)},t.prototype.setPlaceholderColor=function(e){l(this,"setPlaceholderColor",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),p(t))||_(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},t.prototype.toJSON=function(){return g(this,{},{})},t}(OfficeExtension.ClientObject);e.PersonaPhotoInfo=V;var G=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PersonaCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return h("items",this.m__items,"PersonaCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return i(e.Persona,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!p(n)){var r=n;if(_(this,r),!p(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=s(e.Persona,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),O(this,n,r,(function(t,n){return s(e.Persona,!0,o,t,n)}))},n.prototype.toJSON=function(){return g(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;C(this,t,(function(t,r){return s(e.Persona,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PersonaCollection=G;var q="PersonaOrganizationInfo",J=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PersonaOrganizationInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["isWarmedUp","isWarmingUp"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IsWarmedUp","IsWarmingUp"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["hierarchy","manager","directReports"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"directReports",{get:function(){return this._D||(this._D=r(e.PersonaCollection,this,"DirectReports",!0,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hierarchy",{get:function(){return this._H||(this._H=r(e.PersonaCollection,this,"Hierarchy",!0,4)),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"manager",{get:function(){return this._M||(this._M=r(e.Persona,this,"Manager",!1,4)),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWarmedUp",{get:function(){return h("isWarmedUp",this._I,q,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWarmingUp",{get:function(){return h("isWarmingUp",this._Is,q,this._isNull),this._Is},enumerable:!0,configurable:!0}),n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),f(n.IsWarmedUp)||(this._I=n.IsWarmedUp),f(n.IsWarmingUp)||(this._Is=n.IsWarmingUp),b(this,n,["directReports","DirectReports","hierarchy","Hierarchy","manager","Manager"])}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.prototype.toJSON=function(){return g(this,{isWarmedUp:this._I,isWarmingUp:this._Is},{})},n.prototype.setMockData=function(e){C(this,e)},n.prototype.ensureUnchanged=function(e){u(this,e)},n}(OfficeExtension.ClientObject);e.PersonaOrganizationInfo=J,function(e){e.email="Email",e.workPhone="WorkPhone",e.workPhone2="WorkPhone2",e.workFax="WorkFax",e.mobilePhone="MobilePhone",e.homePhone="HomePhone",e.homePhone2="HomePhone2",e.otherPhone="OtherPhone",e.sipAddress="SipAddress",e.profile="Profile",e.office="Office",e.company="Company",e.workAddress="WorkAddress",e.homeAddress="HomeAddress",e.otherAddress="OtherAddress",e.birthday="Birthday"}(e.CustomizedData||(e.CustomizedData={}));var z="UnifiedGroupInfo",K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"UnifiedGroupInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["description","oneDrive","oneNote","isPublic","amIOwner","amIMember","amISubscribed","memberCount","ownerCount","hasGuests","site","planner","classification","subscriptionEnabled"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Description","OneDrive","OneNote","IsPublic","AmIOwner","AmIMember","AmISubscribed","MemberCount","OwnerCount","HasGuests","Site","Planner","Classification","SubscriptionEnabled"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amIMember",{get:function(){return h("amIMember",this._A,z,this._isNull),this._A},set:function(e){this._A=e,c(this,"AmIMember",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amIOwner",{get:function(){return h("amIOwner",this._Am,z,this._isNull),this._Am},set:function(e){this._Am=e,c(this,"AmIOwner",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amISubscribed",{get:function(){return h("amISubscribed",this._AmI,z,this._isNull),this._AmI},set:function(e){this._AmI=e,c(this,"AmISubscribed",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classification",{get:function(){return h("classification",this._C,z,this._isNull),this._C},set:function(e){this._C=e,c(this,"Classification",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return h("description",this._D,z,this._isNull),this._D},set:function(e){this._D=e,c(this,"Description",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasGuests",{get:function(){return h("hasGuests",this._H,z,this._isNull),this._H},set:function(e){this._H=e,c(this,"HasGuests",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPublic",{get:function(){return h("isPublic",this._I,z,this._isNull),this._I},set:function(e){this._I=e,c(this,"IsPublic",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"memberCount",{get:function(){return h("memberCount",this._M,z,this._isNull),this._M},set:function(e){this._M=e,c(this,"MemberCount",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oneDrive",{get:function(){return h("oneDrive",this._O,z,this._isNull),this._O},set:function(e){this._O=e,c(this,"OneDrive",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oneNote",{get:function(){return h("oneNote",this._On,z,this._isNull),this._On},set:function(e){this._On=e,c(this,"OneNote",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ownerCount",{get:function(){return h("ownerCount",this._Ow,z,this._isNull),this._Ow},set:function(e){this._Ow=e,c(this,"OwnerCount",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"planner",{get:function(){return h("planner",this._P,z,this._isNull),this._P},set:function(e){this._P=e,c(this,"Planner",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return h("site",this._S,z,this._isNull),this._S},set:function(e){this._S=e,c(this,"Site",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subscriptionEnabled",{get:function(){return h("subscriptionEnabled",this._Su,z,this._isNull),this._Su},set:function(e){this._Su=e,c(this,"SubscriptionEnabled",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["description","oneDrive","oneNote","isPublic","amIOwner","amIMember","amISubscribed","memberCount","ownerCount","hasGuests","site","planner","classification","subscriptionEnabled"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!p(t)){var n=t;_(this,n),f(n.AmIMember)||(this._A=n.AmIMember),f(n.AmIOwner)||(this._Am=n.AmIOwner),f(n.AmISubscribed)||(this._AmI=n.AmISubscribed),f(n.Classification)||(this._C=n.Classification),f(n.Description)||(this._D=n.Description),f(n.HasGuests)||(this._H=n.HasGuests),f(n.IsPublic)||(this._I=n.IsPublic),f(n.MemberCount)||(this._M=n.MemberCount),f(n.OneDrive)||(this._O=n.OneDrive),f(n.OneNote)||(this._On=n.OneNote),f(n.OwnerCount)||(this._Ow=n.OwnerCount),f(n.Planner)||(this._P=n.Planner),f(n.Site)||(this._S=n.Site),f(n.SubscriptionEnabled)||(this._Su=n.SubscriptionEnabled)}},t.prototype.load=function(e){return y(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},t.prototype.toJSON=function(){return g(this,{amIMember:this._A,amIOwner:this._Am,amISubscribed:this._AmI,classification:this._C,description:this._D,hasGuests:this._H,isPublic:this._I,memberCount:this._M,oneDrive:this._O,oneNote:this._On,ownerCount:this._Ow,planner:this._P,site:this._S,subscriptionEnabled:this._Su},{})},t.prototype.setMockData=function(e){C(this,e)},t.prototype.ensureUnchanged=function(e){u(this,e)},t}(OfficeExtension.ClientObject);e.UnifiedGroupInfo=K;var Q,X="Persona";!function(e){e[e.immediate=0]="immediate",e[e.load=3]="load"}(Q=e.PersonaPromiseType||(e.PersonaPromiseType={}));var Y=function(){};e.PersonaInfoAndSource=Y;var Z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Persona"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["hostId","type","capabilities","diagnosticId","instanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["HostId","Type","Capabilities","DiagnosticId","InstanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["photo","personaInfo","unifiedCommunicationInfo","organization","unifiedGroupInfo","actions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"actions",{get:function(){return this._A||(this._A=r(e.PersonaActions,this,"Actions",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"organization",{get:function(){return this._O||(this._O=r(e.PersonaOrganizationInfo,this,"Organization",!1,4)),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"personaInfo",{get:function(){return this._P||(this._P=r(e.PersonaInfo,this,"PersonaInfo",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"photo",{get:function(){return this._Ph||(this._Ph=r(e.PersonaPhotoInfo,this,"Photo",!1,4)),this._Ph},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"unifiedCommunicationInfo",{get:function(){return this._U||(this._U=r(e.PersonaUnifiedCommunicationInfo,this,"UnifiedCommunicationInfo",!1,4)),this._U},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"unifiedGroupInfo",{get:function(){return this._Un||(this._Un=r(e.UnifiedGroupInfo,this,"UnifiedGroupInfo",!1,4)),this._Un},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"capabilities",{get:function(){return h("capabilities",this._C,X,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"diagnosticId",{get:function(){return h("diagnosticId",this._D,X,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hostId",{get:function(){return h("hostId",this._H,X,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"instanceId",{get:function(){return h("instanceId",this._I,X,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return h("type",this._T,X,this._isNull),this._T},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["unifiedGroupInfo"],["actions","organization","personaInfo","photo","unifiedCommunicationInfo"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.dispose=function(){l(this,"Dispose",0,[],S(2,"SharedApiUndo","1.4"),0)},n.prototype.getCustomizations=function(){return l(this,"GetCustomizations",1,[],4,0)},n.prototype.getMembers=function(){return o(e.MemberInfoList,this,"GetMembers",1,[],!1,!1,null,4)},n.prototype.getMembership=function(){return o(e.MemberInfoList,this,"GetMembership",1,[],!1,!1,null,4)},n.prototype.getViewableSources=function(){return l(this,"GetViewableSources",1,[],4,0)},n.prototype.reportTimeForRender=function(e,t){l(this,"ReportTimeForRender",0,[e,t],S(2,"SharedApiUndo","1.4"),0)},n.prototype.warmup=function(e){l(this,"Warmup",0,[e],S(2,"SharedApiUndo","1.4"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),f(n.Capabilities)||(this._C=n.Capabilities),f(n.DiagnosticId)||(this._D=n.DiagnosticId),f(n.HostId)||(this._H=n.HostId),f(n.InstanceId)||(this._I=n.InstanceId),f(n.Type)||(this._T=n.Type),b(this,n,["actions","Actions","organization","Organization","personaInfo","PersonaInfo","photo","Photo","unifiedCommunicationInfo","UnifiedCommunicationInfo","unifiedGroupInfo","UnifiedGroupInfo"])}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.prototype.toJSON=function(){return g(this,{capabilities:this._C,diagnosticId:this._D,hostId:this._H,instanceId:this._I,type:this._T},{organization:this._O,personaInfo:this._P,unifiedCommunicationInfo:this._U,unifiedGroupInfo:this._Un})},n.prototype.setMockData=function(e){C(this,e)},n.prototype.ensureUnchanged=function(e){u(this,e)},n}(OfficeExtension.ClientObject);e.Persona=Z;var $=function(){function t(){}return t.prototype.performAsyncOperation=function(e,t,n,r){var o=this;e!=Q.immediate?r().then((function(e){if(e)n();else{var i=o;i.load("hostId"),i.context.sync().then((function(){var e=i.hostId;o.getPersonaLifetime().then((function(o){var a=function(s){return new OfficeExtension.CoreUtility.Promise((function(l,u){if(s.sendingPersonaHostId==e)for(var c=0;c<s.dataUpdated.length;++c){var p=s.dataUpdated[c];if(t==p)return void r().then((function(e){e&&(n(),o.onPersonaUpdated.remove(a),i.context.sync()),l(e)}))}l(!1)}))};o.onPersonaUpdated.add(a),i.context.sync()}))}))}})):n()},t.prototype.getOrganizationAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=t;t.performAsyncOperation(e,N.organization,(function(){var e=o.organization;e.load("*"),o.context.sync().then((function(){n(e)}))}),(function(){return new OfficeExtension.CoreUtility.Promise((function(e,t){var n=o.organization;n.load("isWarmedUp"),o.context.sync().then((function(){e(n.isWarmedUp)}))}))}))}))},t.prototype.getIsPersonaInfoResolvedCheck=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var r=e.personaInfo;r.load("isPersonResolved"),e.context.sync().then((function(){t(r.isPersonResolved)}))}))},t.prototype.getPersonaInfoAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=t;t.performAsyncOperation(e,N.personaInfo,(function(){var e=o.personaInfo;e.load(),o.context.sync().then((function(){n(e)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getPersonaInfoWithSourceAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=t;t.performAsyncOperation(e,N.personaInfo,(function(){var e=new Y;e.info=o.personaInfo,e.info.load(),e.source=o.personaInfo.sources,e.source.load(),o.context.sync().then((function(){n(e)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getUnifiedCommunicationInfo=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=t;t.performAsyncOperation(e,N.personaInfo,(function(){var e=o.unifiedCommunicationInfo;e.load("*"),o.context.sync().then((function(){n(e)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getUnifiedGroupInfoAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=t;t.performAsyncOperation(e,N.personaInfo,(function(){var e=o.unifiedGroupInfo;e.load("*"),o.context.sync().then((function(){n(e)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getTypeAsync=function(t){var n=this;return new OfficeExtension.CoreUtility.Promise((function(r,o){var i=n;n.performAsyncOperation(t,N.personaInfo,(function(){i.load("type"),i.context.sync().then((function(){r(e.PersonaType[i.type.valueOf()])}))}),(function(){return n.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getCustomizationsAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=t;t.performAsyncOperation(e,N.personaInfo,(function(){var e=o.getCustomizations();o.context.sync().then((function(){n(e.value)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getMembersAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=t;t.performAsyncOperation(e,N.members,(function(){var e=o.getMembers();e.load("isWarmedUp"),o.context.sync().then((function(){n(e)}))}),(function(){return new OfficeExtension.CoreUtility.Promise((function(e,t){var n=o.getMembers();n.load("isWarmedUp"),o.context.sync().then((function(){e(n.isWarmedUp)}))}))}))}))},t.prototype.getMembershipAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=t;t.performAsyncOperation(e,N.membership,(function(){var e=o.getMembership();e.load("*"),o.context.sync().then((function(){n(e)}))}),(function(){return new OfficeExtension.CoreUtility.Promise((function(e){var t=o.getMembership();t.load("isWarmedUp"),o.context.sync().then((function(){e(t.isWarmedUp)}))}))}))}))},t.prototype.getPersonaLifetime=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var r=e;r.load("instanceId"),r.context.sync().then((function(){new oe(r.context,r.instanceId).getPersonaLifetime().then((function(e){t(e)}))}))}))},t}();e.PersonaCustom=$,OfficeExtension.Utility.applyMixin(Z,$);var ee=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PersonaLifetime"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["instanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["InstanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"instanceId",{get:function(){return h("instanceId",this._I,"PersonaLifetime",this._isNull),this._I},enumerable:!0,configurable:!0}),n.prototype.getPersona=function(t){return o(e.Persona,this,"GetPersona",1,[t],!1,!1,null,4)},n.prototype.getPersonaForOrgByEntryId=function(t,n,r,i){return o(e.Persona,this,"GetPersonaForOrgByEntryId",1,[t,n,r,i],!1,!1,null,4)},n.prototype.getPersonaForOrgEntry=function(t,n,r,i){return o(e.Persona,this,"GetPersonaForOrgEntry",1,[t,n,r,i],!1,!1,null,4)},n.prototype.getPolicies=function(){return l(this,"GetPolicies",1,[],4,0)},n.prototype.getTextScaleFactor=function(){return l(this,"GetTextScaleFactor",1,[],4,0)},n.prototype._RegisterPersonaUpdatedEvent=function(){l(this,"_RegisterPersonaUpdatedEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},n.prototype._UnregisterPersonaUpdatedEvent=function(){l(this,"_UnregisterPersonaUpdatedEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),f(n.InstanceId)||(this._I=n.InstanceId)}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},Object.defineProperty(n.prototype,"onPersonaUpdated",{get:function(){var e=this;return this.m_personaUpdated||(this.m_personaUpdated=new OfficeExtension.GenericEventHandlers(this.context,this,"PersonaUpdated",{eventType:3502,registerFunc:function(){return e._RegisterPersonaUpdatedEvent()},unregisterFunc:function(){return e._UnregisterPersonaUpdatedEvent()},getTargetIdFunc:function(){return e.instanceId},eventArgsTransformFunc:function(e){var t={dataUpdated:e.dataUpdated,sendingPersonaHostId:e.sendingPersonaHostId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_personaUpdated},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{instanceId:this._I},{})},n.prototype.setMockData=function(e){C(this,e)},n.prototype.ensureUnchanged=function(e){u(this,e)},n}(OfficeExtension.ClientObject);e.PersonaLifetime=ee;var te="LokiTokenProvider",ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"LokiTokenProvider"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["emailOrUpn","instanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["EmailOrUpn","InstanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"emailOrUpn",{get:function(){return h("emailOrUpn",this._E,te,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"instanceId",{get:function(){return h("instanceId",this._I,te,this._isNull),this._I},enumerable:!0,configurable:!0}),t.prototype.requestClientAccessToken=function(){l(this,"RequestClientAccessToken",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.requestIdentityUniqueId=function(){l(this,"RequestIdentityUniqueId",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.requestToken=function(){l(this,"RequestToken",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._RegisterClientAccessTokenAvailableEvent=function(){l(this,"_RegisterClientAccessTokenAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._RegisterIdentityUniqueIdAvailableEvent=function(){l(this,"_RegisterIdentityUniqueIdAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._RegisterLokiTokenAvailableEvent=function(){l(this,"_RegisterLokiTokenAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._UnregisterClientAccessTokenAvailableEvent=function(){l(this,"_UnregisterClientAccessTokenAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._UnregisterIdentityUniqueIdAvailableEvent=function(){l(this,"_UnregisterIdentityUniqueIdAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._UnregisterLokiTokenAvailableEvent=function(){l(this,"_UnregisterLokiTokenAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!p(t)){var n=t;_(this,n),f(n.EmailOrUpn)||(this._E=n.EmailOrUpn),f(n.InstanceId)||(this._I=n.InstanceId)}},t.prototype.load=function(e){return y(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},Object.defineProperty(t.prototype,"onClientAccessTokenAvailable",{get:function(){var e=this;return this.m_clientAccessTokenAvailable||(this.m_clientAccessTokenAvailable=new OfficeExtension.GenericEventHandlers(this.context,this,"ClientAccessTokenAvailable",{eventType:3505,registerFunc:function(){return e._RegisterClientAccessTokenAvailableEvent()},unregisterFunc:function(){return e._UnregisterClientAccessTokenAvailableEvent()},getTargetIdFunc:function(){return e.instanceId},eventArgsTransformFunc:function(e){var t={clientAccessToken:e.clientAccessToken,isAvailable:e.isAvailable,tokenTTLInSeconds:e.tokenTTLInSeconds};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_clientAccessTokenAvailable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onIdentityUniqueIdAvailable",{get:function(){var e=this;return this.m_identityUniqueIdAvailable||(this.m_identityUniqueIdAvailable=new OfficeExtension.GenericEventHandlers(this.context,this,"IdentityUniqueIdAvailable",{eventType:3504,registerFunc:function(){return e._RegisterIdentityUniqueIdAvailableEvent()},unregisterFunc:function(){return e._UnregisterIdentityUniqueIdAvailableEvent()},getTargetIdFunc:function(){return e.instanceId},eventArgsTransformFunc:function(e){var t={isAvailable:e.isAvailable,uniqueId:e.uniqueId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_identityUniqueIdAvailable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onLokiTokenAvailable",{get:function(){var e=this;return this.m_lokiTokenAvailable||(this.m_lokiTokenAvailable=new OfficeExtension.GenericEventHandlers(this.context,this,"LokiTokenAvailable",{eventType:3503,registerFunc:function(){return e._RegisterLokiTokenAvailableEvent()},unregisterFunc:function(){return e._UnregisterLokiTokenAvailableEvent()},getTargetIdFunc:function(){return e.instanceId},eventArgsTransformFunc:function(e){var t={isAvailable:e.isAvailable,lokiAutoDiscoverUrl:e.lokiAutoDiscoverUrl,lokiToken:e.lokiToken};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_lokiTokenAvailable},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return g(this,{emailOrUpn:this._E,instanceId:this._I},{})},t.prototype.setMockData=function(e){C(this,e)},t.prototype.ensureUnchanged=function(e){u(this,e)},t}(OfficeExtension.ClientObject);e.LokiTokenProvider=ne;var re=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"LokiTokenProviderFactory"},enumerable:!0,configurable:!0}),n.prototype.getLokiTokenProvider=function(t){return o(e.LokiTokenProvider,this,"GetLokiTokenProvider",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.LokiTokenProviderFactory,t,"Microsoft.People.LokiTokenProviderFactory",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.LokiTokenProviderFactory=re;var oe=function(){function t(e,t){this.context=e,this.instanceId=t}return Object.defineProperty(t.prototype,"serviceContext",{get:function(){return this.m_serviceConext||(this.m_serviceConext=e.ServiceContext.newObject(this.context)),this.m_serviceConext},enumerable:!0,configurable:!0}),t.prototype.getPersonaLifetime=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var r=e.serviceContext.getPersonaLifetime(e.instanceId);e.context.sync().then((function(){r.load("instanceId"),e.context.sync().then((function(){t(r)}))}))}))},t.prototype.getInitialPersona=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var r=e.serviceContext.getInitialPersona(e.instanceId);e.context.sync().then((function(){t(r)}))}))},t.prototype.getLokiTokenProvider=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var r=e.serviceContext.getLokiTokenProvider(e.instanceId);e.context.sync().then((function(){r.load("instanceId"),e.context.sync().then((function(){t(r)}))}))}))},t}();e.PeopleApiContext=oe;var ie=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ServiceContext"},enumerable:!0,configurable:!0}),n.prototype.accountEmailOrUpn=function(e){return l(this,"AccountEmailOrUpn",1,[e],4,0)},n.prototype.dispose=function(e){l(this,"Dispose",0,[e],S(2,"SharedApiUndo","1.4"),0)},n.prototype.getInitialPersona=function(t){return o(e.Persona,this,"GetInitialPersona",1,[t],!1,!1,null,4)},n.prototype.getLokiTokenProvider=function(t){return o(e.LokiTokenProvider,this,"GetLokiTokenProvider",1,[t],!1,!1,null,4)},n.prototype.getPersonaLifetime=function(t){return o(e.PersonaLifetime,this,"GetPersonaLifetime",1,[t],!1,!1,null,4)},n.prototype.getPersonaPolicies=function(){return l(this,"GetPersonaPolicies",1,[],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.ServiceContext,t,"Microsoft.People.ServiceContext",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.ServiceContext=ie;var ae=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RichapiPcxFeatureChecks"},enumerable:!0,configurable:!0}),n.prototype.isAddChangePhotoLinkOnLpcPersonaImageFlightEnabled=function(){return l(this,"IsAddChangePhotoLinkOnLpcPersonaImageFlightEnabled",1,[],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.RichapiPcxFeatureChecks,t,"Microsoft.People.RichapiPcxFeatureChecks",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.RichapiPcxFeatureChecks=ae;var se="Comment",le=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Comment"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","text","created","level","resolved","author","mentions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Text","Created","Level","Resolved","Author","Mentions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["parent","parentOrNullObject","replies"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parent",{get:function(){return this._P||(this._P=r(e.Comment,this,"Parent",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentOrNullObject",{get:function(){return this._Pa||(this._Pa=r(e.Comment,this,"ParentOrNullObject",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"replies",{get:function(){return this._R||(this._R=r(e.CommentCollection,this,"Replies",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"author",{get:function(){return h("author",this._A,se,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"created",{get:function(){return h("created",this._C,se,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return h("id",this._I,se,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"level",{get:function(){return h("level",this._L,se,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"mentions",{get:function(){return h("mentions",this._M,se,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"resolved",{get:function(){return h("resolved",this._Re,se,this._isNull),this._Re},set:function(e){this._Re=e,c(this,"Resolved",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return h("text",this._T,se,this._isNull),this._T},set:function(e){this._T=e,c(this,"Text",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["text","resolved"],[],["parent","parentOrNullObject","replies"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){l(this,"Delete",0,[],S(2,"SharedApiUndo","1.4"),0)},n.prototype.getParentOrSelf=function(){return o(e.Comment,this,"GetParentOrSelf",1,[],!1,!1,null,4)},n.prototype.getRichText=function(e){return l(this,"GetRichText",1,[e],4,0)},n.prototype.reply=function(t,n){return o(e.Comment,this,"Reply",0,[t,n],!1,!1,null,S(2,"SharedApiUndo","1.4"))},n.prototype.setRichText=function(e,t){return l(this,"SetRichText",0,[e,t],S(2,"SharedApiUndo","1.4"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),f(n.Author)||(this._A=n.Author),f(n.Created)||(this._C=v(n.Created)),f(n.Id)||(this._I=n.Id),f(n.Level)||(this._L=n.Level),f(n.Mentions)||(this._M=n.Mentions),f(n.Resolved)||(this._Re=n.Resolved),f(n.Text)||(this._T=n.Text),b(this,n,["parent","Parent","parentOrNullObject","ParentOrNullObject","replies","Replies"])}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),p(e)||f(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){if(t.prototype._handleRetrieveResult.call(this,e,n),!p(e)){var r=e;f(r.Created)||(r.created=v(r.created)),O(this,e,n)}},n.prototype.toJSON=function(){return g(this,{author:this._A,created:this._C,id:this._I,level:this._L,mentions:this._M,resolved:this._Re,text:this._T},{replies:this._R})},n.prototype.setMockData=function(e){C(this,e)},n.prototype.ensureUnchanged=function(e){u(this,e)},n}(OfficeExtension.ClientObject);e.Comment=le;var ue=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CommentCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return h("items",this.m__items,"CommentCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return i(e.Comment,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!p(n)){var r=n;if(_(this,r),!p(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=s(e.Comment,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),O(this,n,r,(function(t,n){return s(e.Comment,!0,o,t,n)}))},n.prototype.toJSON=function(){return g(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;C(this,t,(function(t,r){return s(e.Comment,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.CommentCollection=ue;var ce=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ExtensionLifeCycle"},enumerable:!0,configurable:!0}),n.prototype.launchExtensionComponent=function(e,t,n){l(this,"LaunchExtensionComponent",1,[e,t,n],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.ExtensionLifeCycle,t,"Microsoft.OfficeSharedApi.ExtensionLifeCycle",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.ExtensionLifeCycle=ce,function(e){e.plain="Plain",e.markdown="Markdown",e.delta="Delta"}(e.CommentTextFormat||(e.CommentTextFormat={})),function(e){e.shortTime="ShortTime",e.longTime="LongTime",e.shortDate="ShortDate",e.longDate="LongDate"}(e.TimeStringFormat||(e.TimeStringFormat={}));var pe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"LocaleApi"},enumerable:!0,configurable:!0}),n.prototype.formatDateTimeString=function(e,t,n){return l(this,"FormatDateTimeString",1,[e,t,n],4,0)},n.prototype.getLocaleDateTimeFormattingInfo=function(e){return l(this,"GetLocaleDateTimeFormattingInfo",1,[e],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.LocaleApi,t,"Microsoft.LocaleApi.LocaleApi",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.LocaleApi=pe;var fe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"FirstPartyDialogService"},enumerable:!0,configurable:!0}),n.prototype.close=function(){l(this,"Close",1,[],5,0)},n.prototype.displayDialog=function(e,t){l(this,"DisplayDialog",1,[e,t],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.FirstPartyDialogService,t,"Microsoft.FirstPartyDialog.FirstPartyDialogService",!1,4)},Object.defineProperty(n.prototype,"onDialogMessage",{get:function(){var e=this;return this.m_dialogMessage||(this.m_dialogMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"DialogMessage",{eventType:65536,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=E.FirstPartyDialogService_DialogMessage_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_dialogMessage},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.FirstPartyDialogService=fe,function(e){e.FirstPartyDialogService_DialogMessage_EventArgsTransform=function(e,t){return{message:t.message}}}(E=e._CC||(e._CC={}));var he=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"DynamicRibbon"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["buttons"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"buttons",{get:function(){return this._B||(this._B=r(e.RibbonButtonCollection,this,"Buttons",!0,4)),this._B},enumerable:!0,configurable:!0}),i.prototype.executeRequestCreate=function(e){d("DynamicRibbon.executeRequestCreate","DynamicRibbon","1.2",n),l(this,"ExecuteRequestCreate",1,[e],4,0)},i.prototype.executeRequestUpdate=function(e){l(this,"ExecuteRequestUpdate",1,[e],4,0)},i.prototype.getButton=function(t){return o(e.RibbonButton,this,"GetButton",1,[t],!1,!1,null,4)},i.prototype.getTab=function(t){return o(e.RibbonTab,this,"GetTab",1,[t],!1,!1,null,4)},i.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),b(this,n,["buttons","Buttons"])}},i.prototype.load=function(e){return y(this,e)},i.prototype.retrieve=function(e){return m(this,e)},i.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},i.newObject=function(t){return a(e.DynamicRibbon,t,"Microsoft.DynamicRibbon.DynamicRibbon",!1,4)},i.prototype.toJSON=function(){return g(this,{},{buttons:this._B})},i}(OfficeExtension.ClientObject);e.DynamicRibbon=he;var de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RibbonTab"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return h("id",this._I,"RibbonTab",this._isNull),this._I},enumerable:!0,configurable:!0}),t.prototype.setVisibility=function(e){l(this,"SetVisibility",0,[e],S(2,"DynamicRibbonUndo","1.1"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!p(t)){var n=t;_(this,n),f(n.Id)||(this._I=n.Id)}},t.prototype.load=function(e){return y(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),p(t)||f(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},t.prototype.toJSON=function(){return g(this,{id:this._I},{})},t.prototype.setMockData=function(e){C(this,e)},t.prototype.ensureUnchanged=function(e){u(this,e)},t}(OfficeExtension.ClientObject);e.RibbonTab=de;var ye="RibbonButton",me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RibbonButton"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id","enabled","label"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Enabled","Label"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return h("enabled",this._E,ye,this._isNull),this._E},set:function(e){this._E=e,c(this,"Enabled",e,S(2,"DynamicRibbonUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return h("id",this._I,ye,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return h("label",this._L,ye,this._isNull),this._L},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["enabled"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.setEnabled=function(e){l(this,"SetEnabled",0,[e],S(2,"DynamicRibbonUndo","1.1"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!p(t)){var n=t;_(this,n),f(n.Enabled)||(this._E=n.Enabled),f(n.Id)||(this._I=n.Id),f(n.Label)||(this._L=n.Label)}},t.prototype.load=function(e){return y(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),p(t)||f(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},t.prototype.toJSON=function(){return g(this,{enabled:this._E,id:this._I,label:this._L},{})},t.prototype.setMockData=function(e){C(this,e)},t.prototype.ensureUnchanged=function(e){u(this,e)},t}(OfficeExtension.ClientObject);e.RibbonButton=me;var ge=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RibbonButtonCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return h("items",this.m__items,"RibbonButtonCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return i(e.RibbonButton,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!p(n)){var r=n;if(_(this,r),!p(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=s(e.RibbonButton,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return y(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),O(this,n,r,(function(t,n){return s(e.RibbonButton,!0,o,t,n)}))},n.prototype.toJSON=function(){return g(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;C(this,t,(function(t,r){return s(e.RibbonButton,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.RibbonButtonCollection=ge,function(e){e.ariaBrowserPipeUrl="AriaBrowserPipeUrl",e.ariaUploadUrl="AriaUploadUrl",e.ariaVNextUploadUrl="AriaVNextUploadUrl",e.lokiAutoDiscoverUrl="LokiAutoDiscoverUrl"}(e.ServiceProvider||(e.ServiceProvider={}));var _e=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ServiceUrlProvider"},enumerable:!0,configurable:!0}),n.prototype.getServiceUrl=function(e,t){return l(this,"GetServiceUrl",1,[e,t],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.ServiceUrlProvider,t,"Microsoft.DesktopCompliance.ServiceUrlProvider",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.ServiceUrlProvider=_e;var be=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"LinkedIn"},enumerable:!0,configurable:!0}),n.prototype.isEnabledForOffice=function(){return l(this,"IsEnabledForOffice",1,[],4,0)},n.prototype.recordLinkedInSettingsCompliance=function(e,t){l(this,"RecordLinkedInSettingsCompliance",0,[e,t],S(2,"SharedApiUndo","1.4"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.LinkedIn,t,"Microsoft.DesktopCompliance.LinkedIn",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.LinkedIn=be;var ve=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NetworkUsage"},enumerable:!0,configurable:!0}),n.prototype.isInDisconnectedMode=function(){return l(this,"IsInDisconnectedMode",1,[],4,0)},n.prototype.isInOnlineMode=function(){return l(this,"IsInOnlineMode",1,[],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.NetworkUsage,t,"Microsoft.DesktopCompliance.NetworkUsage",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.NetworkUsage=ve;var Oe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"BeforeDocumentCloseNotification"},enumerable:!0,configurable:!0}),n.prototype.disable=function(){l(this,"Disable",1,[],4,0)},n.prototype.enable=function(){l(this,"Enable",1,[],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.BeforeDocumentCloseNotification,t,"Microsoft.BeforeDocumentCloseNotification.BeforeDocumentCloseNotification",!1,4)},Object.defineProperty(n.prototype,"onBeforeCloseNotificationCancelled",{get:function(){return this.m_beforeCloseNotificationCancelled||(this.m_beforeCloseNotificationCancelled=new OfficeExtension.GenericEventHandlers(this.context,this,"BeforeCloseNotificationCancelled",{eventType:65540,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){return OfficeExtension.Utility._createPromiseFromResult({})}})),this.m_beforeCloseNotificationCancelled},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.BeforeDocumentCloseNotification=Oe,function(e){e.organizationAccount="OrganizationAccount",e.microsoftAccount="MicrosoftAccount",e.unsupported="Unsupported"}(e.IdentityType||(e.IdentityType={}));var Ce=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),Object.defineProperty(o.prototype,"_className",{get:function(){return"AuthenticationService"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_navigationPropertyNames",{get:function(){return["roamingSettings"]},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"roamingSettings",{get:function(){return this._R||(this._R=r(e.RoamingSettingCollection,this,"RoamingSettings",!1,4)),this._R},enumerable:!0,configurable:!0}),o.prototype.getAccessToken=function(e,t){return l(this,"GetAccessToken",1,[e,t],5,0)},o.prototype.getIdentities=function(){return d("AuthenticationService.getIdentities","FirstPartyAuthentication","1.3",n),l(this,"GetIdentities",1,[],5,0)},o.prototype.getPrimaryIdentityInfo=function(){return d("AuthenticationService.getPrimaryIdentityInfo","FirstPartyAuthentication","1.2",n),l(this,"GetPrimaryIdentityInfo",1,[],5,0)},o.prototype.registerIdentityChangedEvent=function(){d("AuthenticationService.registerIdentityChangedEvent","FirstPartyAuthentication","1.5",n),l(this,"RegisterIdentityChangedEvent",0,[],S(3,"SharedApiUndo","1.1"),0)},o.prototype.unregisterIdentityChangedEvent=function(){d("AuthenticationService.unregisterIdentityChangedEvent","FirstPartyAuthentication","1.5",n),l(this,"UnregisterIdentityChangedEvent",0,[],S(3,"SharedApiUndo","1.1"),0)},o.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!p(e)){var n=e;_(this,n),b(this,n,["roamingSettings","RoamingSettings"])}},o.prototype.load=function(e){return y(this,e)},o.prototype.retrieve=function(e){return m(this,e)},o.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},o.newObject=function(t){return a(e.AuthenticationService,t,"Microsoft.Authentication.AuthenticationService",!1,4)},Object.defineProperty(o.prototype,"onIdentityChanged",{get:function(){var e=this;return d("AuthenticationService.onIdentityChanged","FirstPartyAuthentication","1.5",n),this.m_identityChanged||(this.m_identityChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"IdentityChanged",{eventType:65545,registerFunc:function(){return e.registerIdentityChangedEvent()},unregisterFunc:function(){return e.unregisterIdentityChangedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={email:e.email,environment:e.environment,uniqueId:e.uniqueId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_identityChanged},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"onTokenReceived",{get:function(){var e=this;return d("AuthenticationService.onTokenReceived","FirstPartyAuthentication","1.2",n),this.m_tokenReceived||(this.m_tokenReceived=new OfficeExtension.GenericEventHandlers(this.context,this,"TokenReceived",{eventType:3001,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return e._targetId},eventArgsTransformFunc:function(t){var n=E.AuthenticationService_TokenReceived_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_tokenReceived},enumerable:!0,configurable:!0}),o.prototype.toJSON=function(){return g(this,{},{})},o}(OfficeExtension.ClientObject);e.AuthenticationService=Ce;var Se=function(){function e(){}return Object.defineProperty(e.prototype,"_targetId",{get:function(){return null==this.m_targetId&&(void 0!==OSF&&OSF.OUtil?this.m_targetId=OSF.OUtil.Guid.generateNewGuid():this.m_targetId=""+this.context._nextId()),this.m_targetId},enumerable:!0,configurable:!0}),e}();e.AuthenticationServiceCustom=Se,OfficeExtension.Utility.applyMixin(Ce,Se),function(e){e.AuthenticationService_TokenReceived_EventArgsTransform=function(e,t){var n=t;return{tokenValue:n.tokenValue,code:n.code,errorInfo:n.errorInfo}}}(E=e._CC||(e._CC={}));var Pe="RoamingSetting",Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RoamingSetting"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id","value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return h("id",this._I,Pe,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return h("value",this._V,Pe,this._isNull),this._V},set:function(e){this._V=e,c(this,"Value",e,S(2,"SharedApiUndo","1.1"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!p(t)){var n=t;_(this,n),f(n.Id)||(this._I=n.Id),f(n.Value)||(this._V=n.Value)}},t.prototype.load=function(e){return y(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),p(t)||f(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),O(this,t,n)},t.prototype.toJSON=function(){return g(this,{id:this._I,value:this._V},{})},t.prototype.setMockData=function(e){C(this,e)},t.prototype.ensureUnchanged=function(e){u(this,e)},t}(OfficeExtension.ClientObject);e.RoamingSetting=Ae;var Ee=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RoamingSettingCollection"},enumerable:!0,configurable:!0}),n.prototype.getItem=function(t){return o(e.RoamingSetting,this,"GetItem",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return o(e.RoamingSetting,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.RoamingSettingCollection=Ee;var Re=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"SharedFilePicker"},enumerable:!0,configurable:!0}),n.prototype.getSharedFilePickerResponse=function(e){return l(this,"GetSharedFilePickerResponse",1,[e],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.SharedFilePicker,t,"Microsoft.Office.SharedFilePicker",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.SharedFilePicker=Re;var xe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ActionService"},enumerable:!0,configurable:!0}),n.prototype.areShortcutsInUse=function(e){return l(this,"AreShortcutsInUse",0,[e],S(2,"SharedApiUndo","1.1"),0)},n.prototype.getShortcuts=function(){return l(this,"GetShortcuts",1,[],4,0)},n.prototype.replaceShortcuts=function(e){l(this,"ReplaceShortcuts",0,[e],S(2,"SharedApiUndo","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.ActionService,t,"Microsoft.Office.ActionService",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.ActionService=xe;var Te=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Auth"},enumerable:!0,configurable:!0}),n.prototype.getAccessTokenFirstPartyOAuth=function(e,t){return l(this,"GetAccessTokenFirstPartyOAuth",1,[e,t],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.Auth,t,"Microsoft.Office.Auth",!1,5)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.Auth=Te;var Ie=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"AugLoopEventService"},enumerable:!0,configurable:!0}),n.prototype.sendMessage=function(e){l(this,"SendMessage",1,[e],5,0)},n.prototype._RegisterHostMessageReceivedEvent=function(){l(this,"_RegisterHostMessageReceivedEvent",1,[],5,0)},n.prototype._UnregisterHostMessageReceivedEvent=function(){l(this,"_UnregisterHostMessageReceivedEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.AugLoopEventService,t,"Microsoft.Office.AugLoopEventService",!1,5)},Object.defineProperty(n.prototype,"onHostMessageReceived",{get:function(){var e=this;return this.m_hostMessageReceived||(this.m_hostMessageReceived=new OfficeExtension.GenericEventHandlers(this.context,this,"HostMessageReceived",{eventType:65542,registerFunc:function(){return e._RegisterHostMessageReceivedEvent()},unregisterFunc:function(){return e._UnregisterHostMessageReceivedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={data:e.data};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_hostMessageReceived},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.AugLoopEventService=Ie;var we=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"UndoService"},enumerable:!0,configurable:!0}),n.prototype.endCopilotOperation=function(e){l(this,"EndCopilotOperation",0,[e],S(3,"SharedApiUndo","1.4"),0)},n.prototype.startCopilotOperation=function(e){return l(this,"StartCopilotOperation",0,[e],S(3,"SharedApiUndo","1.4"),0)},n.prototype.undo=function(){return l(this,"Undo",0,[],S(3,"SharedApiUndo","1.4"),0)},n.prototype._RegisterUndoStackChangedEvent=function(){l(this,"_RegisterUndoStackChangedEvent",1,[],5,0)},n.prototype._UnregisterUndoStackChangedEvent=function(){l(this,"_UnregisterUndoStackChangedEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.UndoService,t,"Microsoft.Office.UndoService",!1,5)},Object.defineProperty(n.prototype,"onCopilotOperationStarted",{get:function(){return this.m_copilotOperationStarted||(this.m_copilotOperationStarted=new OfficeExtension.GenericEventHandlers(this.context,this,"CopilotOperationStarted",{eventType:65544,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={batchId:e.batchId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_copilotOperationStarted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onUndoStackChanged",{get:function(){var e=this;return this.m_undoStackChanged||(this.m_undoStackChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"UndoStackChanged",{eventType:65543,registerFunc:function(){return e._RegisterUndoStackChangedEvent()},unregisterFunc:function(){return e._UnregisterUndoStackChangedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){return OfficeExtension.Utility._createPromiseFromResult({})}})),this.m_undoStackChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.UndoService=we,function(e){e.notSet="NotSet",e.true="True",e.false="False"}(e.TriStateOption||(e.TriStateOption={})),function(e){e.like="Like",e.dislike="Dislike",e.idea="Idea",e.unclassified="Unclassified"}(e.UserFeedbackType||(e.UserFeedbackType={})),function(e){e.modalDialog="ModalDialog",e.taskpane="Taskpane"}(e.UserFeedbackUIType||(e.UserFeedbackUIType={})),function(e){e.autoCapture="AutoCapture",e.autoCaptureWithHtml2Canvas="AutoCaptureWithHtml2Canvas",e.providedAtInitialization="ProvidedAtInitialization",e.dynamicallyProvided="DynamicallyProvided"}(e.UserFeedbackScreenshotInfoSourceType||(e.UserFeedbackScreenshotInfoSourceType={})),function(e){e.jpeg="jpeg",e.png="png"}(e.UserFeedbackScreenshotInfoImageFormat||(e.UserFeedbackScreenshotInfoImageFormat={}));var Fe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"UserFeedbackService"},enumerable:!0,configurable:!0}),n.prototype.canCollectCopilotFeedback=function(){return l(this,"CanCollectCopilotFeedback",1,[],5,0)},n.prototype.canCollectUserFeedback=function(){return l(this,"CanCollectUserFeedback",1,[],5,0)},n.prototype.checkFeedbackEligibility=function(e){return l(this,"CheckFeedbackEligibility",1,[e],5,0)},n.prototype.collectFeedbackEligibility=function(){return l(this,"CollectFeedbackEligibility",1,[],5,0)},n.prototype.collectUserFeedback=function(e,t,n,r){l(this,"CollectUserFeedback",1,[e,t,n,r],5,0)},n.prototype.getHostScreenshot=function(){return l(this,"GetHostScreenshot",1,[],5,0)},n.prototype.getInitializationData=function(){return l(this,"GetInitializationData",1,[],5,0)},n.prototype.invokeDiagnosticsLogsUpload=function(e){l(this,"InvokeDiagnosticsLogsUpload",1,[e],5,0)},n.prototype._RegisterUserFeedbackResponseEvent=function(){l(this,"_RegisterUserFeedbackResponseEvent",1,[],5,0)},n.prototype._RegisterUserFeedbackUIDismissedEvent=function(){l(this,"_RegisterUserFeedbackUIDismissedEvent",1,[],5,0)},n.prototype._UnregisterUserFeedbackResponseEvent=function(){l(this,"_UnregisterUserFeedbackResponseEvent",1,[],5,0)},n.prototype._UnregisterUserFeedbackUIDismissedEvent=function(){l(this,"_UnregisterUserFeedbackUIDismissedEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.UserFeedbackService,t,"Microsoft.Office.UserFeedbackService",!1,5)},Object.defineProperty(n.prototype,"onUserFeedbackResponse",{get:function(){var e=this;return this.m_userFeedbackResponse||(this.m_userFeedbackResponse=new OfficeExtension.GenericEventHandlers(this.context,this,"UserFeedbackResponse",{eventType:65550,registerFunc:function(){return e._RegisterUserFeedbackResponseEvent()},unregisterFunc:function(){return e._UnregisterUserFeedbackResponseEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={responseData:e.responseData};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_userFeedbackResponse},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onUserFeedbackUIDismissed",{get:function(){var e=this;return this.m_userFeedbackUIDismissed||(this.m_userFeedbackUIDismissed=new OfficeExtension.GenericEventHandlers(this.context,this,"UserFeedbackUIDismissed",{eventType:65546,registerFunc:function(){return e._RegisterUserFeedbackUIDismissedEvent()},unregisterFunc:function(){return e._UnregisterUserFeedbackUIDismissedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={isFeedbackSent:e.isFeedbackSent};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_userFeedbackUIDismissed},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.UserFeedbackService=Fe;var Ne=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NotificationService"},enumerable:!0,configurable:!0}),n.prototype.addNotification=function(e,t){return l(this,"AddNotification",0,[e,t],S(3,"SharedApiUndo","1.2"),0)},n.prototype.removeNotification=function(e){l(this,"RemoveNotification",0,[e],S(3,"SharedApiUndo","1.2"),0)},n.prototype.updateNotification=function(e,t){l(this,"UpdateNotification",0,[e,t],S(3,"SharedApiUndo","1.2"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.NotificationService,t,"Microsoft.Office.NotificationService",!1,5)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.NotificationService=Ne;var De=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return __extends(r,t),Object.defineProperty(r.prototype,"_className",{get:function(){return"SensitivityService"},enumerable:!0,configurable:!0}),r.prototype.getHighestSensitivityLabel=function(e){return l(this,"GetHighestSensitivityLabel",0,[e],S(3,"SensitivityUndo","1.1"),0)},r.prototype.getLabel=function(){return l(this,"GetLabel",0,[],S(3,"SensitivityUndo","1.1"),0)},r.prototype.getSensitivityResultDetails=function(e,t){return d("SensitivityService.getSensitivityResultDetails","SensitivityService","1.2",n),l(this,"GetSensitivityResultDetails",0,[e,t],S(3,"SensitivityUndo","1.2"),0)},r.prototype.getSensitivityResultDetailsByStringErrorCode=function(e,t){return d("SensitivityService.getSensitivityResultDetailsByStringErrorCode","SensitivityService","1.3",n),l(this,"GetSensitivityResultDetailsByStringErrorCode",0,[e,t],S(3,"SensitivityUndo","1.3"),0)},r.prototype.tryUpgradeLabel=function(e,t){l(this,"TryUpgradeLabel",0,[e,t],S(3,"SensitivityUndo","1.1"),0)},r.prototype._RegisterSensitivityLabelChangedEvent=function(){l(this,"_RegisterSensitivityLabelChangedEvent",1,[],5,0)},r.prototype._UnregisterSensitivityLabelChangedEvent=function(){l(this,"_UnregisterSensitivityLabelChangedEvent",1,[],5,0)},r.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},r.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},r.newObject=function(t){return a(e.SensitivityService,t,"Microsoft.Office.SensitivityService",!1,5)},Object.defineProperty(r.prototype,"onLabelChanged",{get:function(){var e=this;return this.m_labelChanged||(this.m_labelChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"LabelChanged",{eventType:65549,registerFunc:function(){return e._RegisterSensitivityLabelChangedEvent()},unregisterFunc:function(){return e._UnregisterSensitivityLabelChangedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={context:e.context,error:e.error,newLabel:e.newLabel,previousLabel:e.previousLabel};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_labelChanged},enumerable:!0,configurable:!0}),r.prototype.toJSON=function(){return g(this,{},{})},r}(OfficeExtension.ClientObject);e.SensitivityService=De;var ke=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return __extends(r,t),Object.defineProperty(r.prototype,"_className",{get:function(){return"CopilotService"},enumerable:!0,configurable:!0}),r.prototype.getWindowClientWidth=function(){return l(this,"GetWindowClientWidth",0,[],S(3,"SharedApiUndo","1.3"),0)},r.prototype.launchHelpPaneByArticleId=function(e){l(this,"LaunchHelpPaneByArticleId",0,[e],S(3,"SharedApiUndo","1.3"),0)},r.prototype.launchHelpPaneByArticleIdString=function(e){l(this,"LaunchHelpPaneByArticleIdString",0,[e],S(3,"SharedApiUndo","1.3"),0)},r.prototype.launchHelpPaneByQuery=function(e){l(this,"LaunchHelpPaneByQuery",0,[e],S(3,"SharedApiUndo","1.3"),0)},r.prototype.launchTaskPaneByAgentId=function(e){d("CopilotService.launchTaskPaneByAgentId","CopilotService","1.2",n),l(this,"LaunchTaskPaneByAgentId",0,[e],3,0)},r.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},r.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},r.newObject=function(t){return a(e.CopilotService,t,"Microsoft.Office.CopilotService",!1,5)},r.prototype.toJSON=function(){return g(this,{},{})},r}(OfficeExtension.ClientObject);e.CopilotService=ke;var je=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PrivateApiService"},enumerable:!0,configurable:!0}),n.prototype.execute=function(e){return l(this,"Execute",0,[e],S(3,"PrivateAPI","1.1"),0)},n.prototype._RegisterPrivateApiEvent=function(){l(this,"_RegisterPrivateApiEvent",1,[],5,0)},n.prototype._UnregisterPrivateApiEvent=function(){l(this,"_UnregisterPrivateApiEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.PrivateApiService,t,"Microsoft.Office.PrivateApiService",!1,5)},Object.defineProperty(n.prototype,"onOnPrivateEvent",{get:function(){var e=this;return this.m_onPrivateEvent||(this.m_onPrivateEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"OnPrivateEvent",{eventType:65552,registerFunc:function(){return e._RegisterPrivateApiEvent()},unregisterFunc:function(){return e._UnregisterPrivateApiEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={messageData:e.messageData};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_onPrivateEvent},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.PrivateApiService=je,function(e){e.get="Get",e.post="Post",e.patch="Patch",e.delete="Delete"}(e.RequestMethod||(e.RequestMethod={})),function(e){e.executionResult="ExecutionResult",e.runtimeInfo="RuntimeInfo",e.serviceResponse="ServiceResponse"}(e.ResultType||(e.ResultType={})),function(e){e.other="Other",e.environment="Environment",e.runtime="Runtime",e.license="License",e.user="User",e.auth="Auth",e.billing="Billing",e.invalidArg="InvalidArg",e.python="Python",e.service="Service",e.unsupported="Unsupported",e.dataUpload="DataUpload"}(e.ErrorCategory||(e.ErrorCategory={}));var Ue=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ExternalCodeService"},enumerable:!0,configurable:!0}),n.prototype.executePythonCode=function(e){return l(this,"ExecutePythonCode",0,[e],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.executePythonCodeAsync=function(e){l(this,"ExecutePythonCodeAsync",0,[e],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.executePythonCodeAsync2=function(e,t){l(this,"ExecutePythonCodeAsync2",0,[e,t],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.getRuntimeInfoAsync=function(){l(this,"GetRuntimeInfoAsync",1,[],5,0)},n.prototype.getRuntimeInfoAsync2=function(e){l(this,"GetRuntimeInfoAsync2",1,[e],5,0)},n.prototype.registerExternalCodeExecutionCompletedEvent=function(){l(this,"RegisterExternalCodeExecutionCompletedEvent",0,[],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.registerExternalCodeServiceRequestCompletedEvent=function(){l(this,"RegisterExternalCodeServiceRequestCompletedEvent",1,[],5,0)},n.prototype.registerExternalCodeServiceResultEvent=function(){l(this,"RegisterExternalCodeServiceResultEvent",0,[],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.sendRequestAsync=function(e,t,n,r){return l(this,"SendRequestAsync",1,[e,t,n,r],5,0)},n.prototype.unregisterExternalCodeExecutionCompletedEvent=function(){l(this,"UnregisterExternalCodeExecutionCompletedEvent",0,[],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.unregisterExternalCodeServiceRequestCompletedEvent=function(){l(this,"UnregisterExternalCodeServiceRequestCompletedEvent",1,[],5,0)},n.prototype.unregisterExternalCodeServiceResultEvent=function(){l(this,"UnregisterExternalCodeServiceResultEvent",0,[],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.ExternalCodeService,t,"Microsoft.Office.ExternalCodeService",!1,5)},Object.defineProperty(n.prototype,"onExternalCodeExecutionCompleted",{get:function(){var e=this;return this.m_externalCodeExecutionCompleted||(this.m_externalCodeExecutionCompleted=new OfficeExtension.GenericEventHandlers(this.context,this,"ExternalCodeExecutionCompleted",{eventType:65551,registerFunc:function(){return e.registerExternalCodeExecutionCompletedEvent()},unregisterFunc:function(){return e.unregisterExternalCodeExecutionCompletedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=E.ExternalCodeService_ExternalCodeExecutionCompleted_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_externalCodeExecutionCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onExternalCodeServiceRequestCompleted",{get:function(){var e=this;return this.m_externalCodeServiceRequestCompleted||(this.m_externalCodeServiceRequestCompleted=new OfficeExtension.GenericEventHandlers(this.context,this,"ExternalCodeServiceRequestCompleted",{eventType:65553,registerFunc:function(){return e.registerExternalCodeServiceRequestCompletedEvent()},unregisterFunc:function(){return e.unregisterExternalCodeServiceRequestCompletedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=E.ExternalCodeService_ExternalCodeServiceRequestCompleted_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_externalCodeServiceRequestCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onExternalCodeServiceResult",{get:function(){var e=this;return this.m_externalCodeServiceResult||(this.m_externalCodeServiceResult=new OfficeExtension.GenericEventHandlers(this.context,this,"ExternalCodeServiceResult",{eventType:65554,registerFunc:function(){return e.registerExternalCodeServiceResultEvent()},unregisterFunc:function(){return e.unregisterExternalCodeServiceResultEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=E.ExternalCodeService_ExternalCodeServiceResult_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_externalCodeServiceResult},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.ExternalCodeService=Ue,function(e){e.ExternalCodeService_ExternalCodeExecutionCompleted_EventArgsTransform=function(e,t){return{result:t.result}},e.ExternalCodeService_ExternalCodeServiceRequestCompleted_EventArgsTransform=function(e,t){return t},e.ExternalCodeService_ExternalCodeServiceResult_EventArgsTransform=function(e,t){return t}}(E=e._CC||(e._CC={})),function(e){e.info="Info",e.error="Error",e.blocked="Blocked",e.severeWarning="SevereWarning",e.success="Success",e.warning="Warning"}(e.BusinessBarType||(e.BusinessBarType={}));var Me=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"BusinessBarService"},enumerable:!0,configurable:!0}),n.prototype.hide=function(e){l(this,"Hide",0,[e],S(3,"SharedApiUndo","1.1"),0)},n.prototype.show=function(e,t){l(this,"Show",0,[e,t],S(3,"SharedApiUndo","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.BusinessBarService,t,"Microsoft.Office.BusinessBarService",!1,5)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.BusinessBarService=Me,function(e){e.information="information",e.error="error",e.warning="warning",e.question="question",e.other="other"}(e.SimpleDialogCategory||(e.SimpleDialogCategory={}));var He=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ShowSimpleDialog"},enumerable:!0,configurable:!0}),n.prototype.launchSimpleDialog=function(e,t,n,r,o,i,a,s){return l(this,"LaunchSimpleDialog",0,[e,t,n,r,o,i,a,s],3,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.ShowSimpleDialog,t,"Microsoft.Office.ShowSimpleDialog",!1,5)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.ShowSimpleDialog=He;var Le=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DispatchApiService"},enumerable:!0,configurable:!0}),n.prototype.execute=function(e,t){return l(this,"Execute",1,[e,t],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.DispatchApiService,t,"Microsoft.Office.DispatchApiService",!1,5)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.DispatchApiService=Le,function(e){e.camera="camera",e.microphone="microphone",e.geolocation="geolocation"}(e.DevicePermissionType||(e.DevicePermissionType={}));var Be=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DevicePermissionService"},enumerable:!0,configurable:!0}),n.prototype.requestPermissions=function(e){return l(this,"RequestPermissions",1,[e],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.DevicePermissionService,t,"Microsoft.Office.DevicePermissionService",!1,5)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.DevicePermissionService=Be;var We=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TaskpaneService"},enumerable:!0,configurable:!0}),n.prototype.close=function(){l(this,"Close",0,[],S(3,"TaskpaneAPI","1.1"),0)},n.prototype.move=function(){l(this,"Move",0,[],S(3,"TaskpaneAPI","1.1"),0)},n.prototype.notifyHeaderLoaded=function(){l(this,"NotifyHeaderLoaded",0,[],S(3,"TaskpaneAPI","1.1"),0)},n.prototype.setWidth=function(e){l(this,"SetWidth",0,[e],S(2,"TaskpaneAPI","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.TaskpaneService,t,"Microsoft.Office.TaskpaneService",!1,4)},n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.TaskpaneService=We;var Ve=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"AddinSkillActionService"},enumerable:!0,configurable:!0}),n.prototype.invokeAction=function(e,t,n,r){l(this,"InvokeAction",1,[e,t,n,r],5,0)},n.prototype._RegisterReplyReceivedEvent=function(){l(this,"_RegisterReplyReceivedEvent",1,[],5,0)},n.prototype._UnregisterReplyReceivedEvent=function(){l(this,"_UnregisterReplyReceivedEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.AddinSkillActionService,t,"Microsoft.Office.AddinSkillActionService",!1,5)},Object.defineProperty(n.prototype,"onReplyReceived",{get:function(){var e=this;return this.m_replyReceived||(this.m_replyReceived=new OfficeExtension.GenericEventHandlers(this.context,this,"ReplyReceived",{eventType:65555,registerFunc:function(){return e._RegisterReplyReceivedEvent()},unregisterFunc:function(){return e._UnregisterReplyReceivedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=E.AddinSkillActionService_ReplyReceived_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_replyReceived},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.AddinSkillActionService=Ve,function(e){e.AddinSkillActionService_ReplyReceived_EventArgsTransform=function(e,t){return{actionCorrelationId:t.actionCorrelationId,replyMessage:t.replyMessage,resultCode:t.resultCode}}}(E=e._CC||(e._CC={}));var Ge=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"UnifiedStoreService"},enumerable:!0,configurable:!0}),n.prototype.launchStoreDialogWithCopilotAgentPageShown=function(){l(this,"LaunchStoreDialogWithCopilotAgentPageShown",0,[],3,0)},n.prototype._RegisterCopilotAgentEvent=function(){l(this,"_RegisterCopilotAgentEvent",1,[],5,0)},n.prototype._UnregisterCopilotAgentEvent=function(){l(this,"_UnregisterCopilotAgentEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),p(e))||_(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),O(this,e,n)},n.newObject=function(t){return a(e.UnifiedStoreService,t,"Microsoft.Office.UnifiedStoreService",!1,5)},Object.defineProperty(n.prototype,"onCopilotAgentEvent",{get:function(){var e=this;return this.m_copilotAgentEvent||(this.m_copilotAgentEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"CopilotAgentEvent",{eventType:65556,registerFunc:function(){return e._RegisterCopilotAgentEvent()},unregisterFunc:function(){return e._UnregisterCopilotAgentEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={messageData:e.messageData};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_copilotAgentEvent},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return g(this,{},{})},n}(OfficeExtension.ClientObject);e.UnifiedStoreService=Ge,function(e){e.apiNotAvailable="ApiNotAvailable",e.clientError="ClientError",e.clpSessionError="ClpSessionError",e.controlIdNotFound="ControlIdNotFound",e.docCookieError="DocCookieError",e.entryIdRequired="EntryIdRequired",e.errorPointer="ErrorPointer",e.generalException="GeneralException",e.hostIntegrationManagerError="HostIntegrationManagerError",e.hostRestartNeeded="HostRestartNeeded",e.instanceNotFound="InstanceNotFound",e.interactiveFlowAborted="InteractiveFlowAborted",e.invalidArgument="InvalidArgument",e.invalidGrant="InvalidGrant",e.invalidResourceUrl="InvalidResourceUrl",e.invalidRibbonDefinition="InvalidRibbonDefinition",e.labelingDisabledAppguard="LabelingDisabledAppguard",e.labelingDisabledNoSignedInClpCompatibleUsers="LabelingDisabledNoSignedInClpCompatibleUsers",e.labelingDisabledPrivacySettings="LabelingDisabledPrivacySettings",e.labelingDisabledProtectedView="LabelingDisabledProtectedView",e.labelingDisabledUnsupportedLabelClient="LabelingDisabledUnsupportedLabelClient",e.msoOLDocumentError="MsoOLDocumentError",e.notImplement="NotImplement",e.objectNotFound="ObjectNotFound",e.officeJSItemLabelForIdentityError="OfficeJSItemLabelForIdentityError",e.officeJSRMSLicenseError="OfficeJSRMSLicenseError",e.officeJSSessionOrDocError="OfficeJSSessionOrDocError",e.officeSolutionFrameworkHostError="OfficeSolutionFrameworkHostError",e.omworkflowUserNotFound="OMWorkflowUserNotFound",e.osfControlContainerError="OsfControlContainerError",e.outOfMemory="OutOfMemory",e.resourceNotSupported="ResourceNotSupported",e.sensitivityDocumentReadOnly="SensitivityDocumentReadOnly",e.sensitivityInsufficientPermission="SensitivityInsufficientPermission",e.sensitivityLabelDisabled="SensitivityLabelDisabled",e.sensitivityLabelingDisabled="SensitivityLabelingDisabled",e.sensitivityLabelNotFound="SensitivityLabelNotFound",e.sensitivityNewLabelSensitivityOrder="SensitivityNewLabelSensitivityOrder",e.sensitivityUnsupportedContentType="SensitivityUnsupportedContentType",e.sensitivityUnsupportedCrossTenant="SensitivityUnsupportedCrossTenant",e.sensitivityUnsupportedDke="SensitivityUnsupportedDke",e.sensitivityUnsupportedUdp="SensitivityUnsupportedUdp",e.serverError="ServerError",e.serviceUrlNotFound="ServiceUrlNotFound",e.sharedRuntimeNotAvailable="SharedRuntimeNotAvailable",e.ticketInvalidParams="TicketInvalidParams",e.ticketNetworkError="TicketNetworkError",e.ticketUnauthorized="TicketUnauthorized",e.ticketUninitialized="TicketUninitialized",e.ticketUnknownError="TicketUnknownError",e.unexpectedError="UnexpectedError",e.unsupportedUserIdentity="UnsupportedUserIdentity",e.userNotSignedIn="UserNotSignedIn"}(e.ErrorCodes||(e.ErrorCodes={})),e.Interfaces||(e.Interfaces={})}(OfficeCore||(OfficeCore={})),function(e){var t,n;!function(e){e.hidden="Hidden",e.taskpane="Taskpane"}(t=e.VisibilityMode||(e.VisibilityMode={})),function(e){e.none="None",e.load="Load"}(n=e.StartupBehavior||(e.StartupBehavior={})),function(e){function r(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}function o(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return t=r(!0),OfficeCore.AppRuntimeService.newObject(t).setAppRuntimeState(e),[4,t.sync()];case 1:return n.sent(),[2]}}))}))}var i;e.setStartupBehavior=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o;return __generator(this,(function(i){switch(i.label){case 0:if(e!==n.load&&e!==n.none)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return t=e==n.load?OfficeCore.AppRuntimeState.background:OfficeCore.AppRuntimeState.inactive,o=r(!1),OfficeCore.AppRuntimePersistenceService.newObject(o).setAppRuntimeStartState(t),[4,o.sync()];case 1:return i.sent(),[2]}}))}))},e.getStartupBehavior=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i;return __generator(this,(function(a){switch(a.label){case 0:return e=r(!1),t=OfficeCore.AppRuntimePersistenceService.newObject(e),o=t.getAppRuntimeStartState(),[4,e.sync()];case 1:return a.sent(),i=o.value,[2,i==OfficeCore.AppRuntimeState.inactive?n.none:n.load]}}))}))},e.setSnapshotEnabled=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return t=r(!0),OfficeCore.AppRuntimeService.newObject(t).setSnapshotEnabled(e),[4,t.sync()];case 1:return n.sent(),[2,Promise.resolve()]}}))}))},e.getSnapshotEnabled=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;return __generator(this,(function(o){switch(o.label){case 0:return e=r(!0),t=OfficeCore.AppRuntimeService.newObject(e),n=t.getSnapshotEnabled(),[4,e.sync()];case 1:return o.sent(),[2,n.value]}}))}))},e.getContentSnapshotAsBase64=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,new OfficeExtension.CoreUtility.Promise((function(e,t){var n=r(!0),o=OfficeCore.AppRuntimeService.newObject(n),i=setTimeout((function(){a.remove(),n.sync().catch((function(){})),t(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"timeout","getContentSnapshotAsBase64"))}),7e3),a=o.onSnapshotImageReady.add((function(r){return clearTimeout(i),a.remove(),OfficeExtension.CoreUtility.isNullOrUndefined(r)?(n.sync().catch((function(){})),t(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"execution failed","getContentSnapshotAsBase64"))):(n.sync().catch((function(){})),e(r.imageBase64)),null}));n.sync().then((function(){o.getContentSnapshotAsBase64();return n.sync().then((function(){return null}))})).catch((function(e){t(e)}))}))]}))}))},e._getState=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;return __generator(this,(function(o){switch(o.label){case 0:return e=r(!0),t=OfficeCore.AppRuntimeService.newObject(e),n=t.getAppRuntimeState(),[4,e.sync()];case 1:return o.sent(),[2,n.value]}}))}))},e.showAsTaskpane=function(){return o(OfficeCore.AppRuntimeState.visible)},e.hide=function(){return o(OfficeCore.AppRuntimeState.background)},e.onVisibilityModeChanged=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o,a=this;return __generator(this,(function(s){switch(s.label){case 0:return n=function(){if(!i){var e=r(!0);i=OfficeCore.AppRuntimeService.newObject(e)}return i}(),o=n.onVisibilityChanged.add((function(n){if(e){var r={visibilityMode:(o=n.visibility,o===OfficeCore.Visibility.visible?t.taskpane:t.hidden)};e(r)}var o;return null})),[4,n.context.sync()];case 1:return s.sent(),[2,function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return o.remove(),[4,n.context.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))},function(e){function t(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}e.enable=function(){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(r){switch(r.label){case 0:return e=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e=!0),n=t(e),OfficeCore.BeforeDocumentCloseNotification.newObject(n).enable(),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.disable=function(){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(r){switch(r.label){case 0:return e=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e=!0),n=t(e),OfficeCore.BeforeDocumentCloseNotification.newObject(n).disable(),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.onCloseActionCancelled=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a=this;return __generator(this,(function(s){switch(s.label){case 0:return n=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(n=!0),r=t(n),o=OfficeCore.BeforeDocumentCloseNotification.newObject(r),i=o.onBeforeCloseNotificationCancelled.add((function(t){return e&&e(),null})),[4,r.sync()];case 1:return s.sent(),[2,function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return i.remove(),[4,r.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.beforeDocumentCloseNotification||(e.beforeDocumentCloseNotification={}))}(e.addin||(e.addin={}))}(Office||(Office={})),function(e){var t,n;!function(e){e.taskpane="Taskpane",e.dialog="Dialog"}(t||(t={})),function(n){function r(e){return new OfficeCore.RequestContext}!function(e){function t(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}e.close=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return e=t(),OfficeCore.TaskpaneService.newObject(e).close(),[4,e.sync()];case 1:return n.sent(),[2]}}))}))},e.move=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return e=t(),OfficeCore.TaskpaneService.newObject(e).move(),[4,e.sync()];case 1:return n.sent(),[2]}}))}))},e.notifyHeaderLoaded=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return e=t(),OfficeCore.TaskpaneService.newObject(e).notifyHeaderLoaded(),[4,e.sync()];case 1:return n.sent(),[2]}}))}))},e.setWidth=function(e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),OfficeCore.TaskpaneService.newObject(n).setWidth(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))}}(n.taskpane||(n.taskpane={})),n.launchTaskpane=function(n){return __awaiter(this,void 0,void 0,(function(){var o,i,a,s,l;return __generator(this,(function(u){switch(u.label){case 0:return e.context.platform&&"OfficeOnline"===e.context.platform?(o={SharedRuntimeId:n.sharedRuntimeId,SourceLocationOverrideResourceId:n.sourceLocationOverride,TaskPaneTitle:n.taskpaneTitle,TaskPaneWidth:n.taskpaneWidth},i={OptionalProperties:o,DevProperties:n.settings},e.context.extensionLifeCycle.launchExtensionComponent(null,"Taskpane",null,null,i),[3,3]):[3,1];case 1:return a=r(),s=OfficeCore.ExtensionLifeCycle.newObject(a),l=n.settings,n.settings=l&&OSF.OUtil.serializeSettings(l),s.launchExtensionComponent("",t.taskpane,n),[4,a.sync()];case 2:u.sent(),u.label=3;case 3:return[2]}}))}))},n.launchDialog=function(n){return __awaiter(this,void 0,void 0,(function(){var o,i,a,s,l;return __generator(this,(function(u){switch(u.label){case 0:return e.context.platform&&"OfficeOnline"===e.context.platform?(o={SharedRuntimeId:n.sharedRuntimeId,SourceLocationOverrideResourceId:n.sourceLocationOverride},i={OptionalProperties:o,DevProperties:n.settings},e.context.extensionLifeCycle.launchExtensionComponent(null,"SDXDialog",null,null,i),[3,3]):[3,1];case 1:return a=r(),s=OfficeCore.ExtensionLifeCycle.newObject(a),l=n.settings,n.settings=l&&OSF.OUtil.serializeSettings(l),s.launchExtensionComponent("",t.dialog,n),[4,a.sync()];case 2:u.sent(),u.label=3;case 3:return[2]}}))}))}}(n=e.ExtensionLifeCycle||(e.ExtensionLifeCycle={})),e.extensionLifeCycle=n}(Office||(Office={})),function(e){!function(e){e.executePythonCode=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){switch(o.label){case 0:return t=new OfficeCore.RequestContext,n=OfficeCore.ExternalCodeService.newObject(t),r=n.executePythonCode(e),[4,t.sync()];case 1:return o.sent(),[2,r.value]}}))}))}}(e.externalCodeService||(e.externalCodeService={}))}(Office||(Office={})),function(e){!function(e){function t(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;return __generator(this,(function(r){switch(r.label){case 0:return e=new OfficeCore.RequestContext,t=e.flighting,n=t.getFeatureGate("Microsoft.Office.Excel.UseGenericEventForExternalCodeService"),e.load(n),[4,e.sync()];case 1:return r.sent(),"boolean"==typeof n.value?[2,n.value]:[2,!1]}}))}))}function n(){return new OfficeCore.RequestContext}var r=0;function o(e,o,i){return __awaiter(this,void 0,void 0,(function(){var a=this;return __generator(this,(function(s){return[2,new Promise((function(s){return __awaiter(a,void 0,void 0,(function(){var a,l,u,c,p,f=this;return __generator(this,(function(h){switch(h.label){case 0:return a=n(),l=OfficeCore.ExternalCodeService.newObject(a),u=++r,[4,t()];case 1:return h.sent()||Office.context.platform===Office.PlatformType.OfficeOnline?(c=function(e){return __awaiter(f,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return e.requestId!=u?[3,3]:[4,l.onExternalCodeServiceResult.remove(c)];case 1:return t.sent(),[4,a.sync()];case 2:return t.sent(),s(e),[2,null];case 3:return[2]}}))}))},[4,l.onExternalCodeServiceResult.add(c)]):[3,3];case 2:return h.sent(),[3,5];case 3:return p=function(e){return __awaiter(f,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return e.requestId!=u?[3,3]:[4,l.onExternalCodeServiceRequestCompleted.remove(p)];case 1:return t.sent(),[4,a.sync()];case 2:return t.sent(),s(e),[2,null];case 3:return[2]}}))}))},[4,l.onExternalCodeServiceRequestCompleted.add(p)];case 4:h.sent(),h.label=5;case 5:return[4,a.sync()];case 6:return h.sent(),l.sendRequestAsync(u,e,o,i),[4,a.sync()];case 7:return h.sent(),[2]}}))}))}))]}))}))}e.executePythonCode=function(e,t){return __awaiter(this,void 0,void 0,(function(){var o,i,a=this;return __generator(this,(function(s){if(null==e||""==e)throw new Error("executePythonCode: Invalid argument");return o=t&&t.correlationId?t.correlationId:OSF.OUtil.Guid.generateNewGuid(),i=Date.now(),[2,new Promise((function(t){return __awaiter(a,void 0,void 0,(function(){var a,s,l,u,c=this;return __generator(this,(function(p){switch(p.label){case 0:return(a=n()).requestHeaders["X-Correlation-ID"]=o,s=OfficeCore.ExternalCodeService.newObject(a),l=++r,u=function(e){return __awaiter(c,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return e.requestId!=l?[3,3]:[4,s.onExternalCodeServiceResult.remove(u)];case 1:return n.sent(),[4,a.sync()];case 2:return n.sent(),t(e.result),OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ExternalCodeServiceCore.ExecutePythonCode",dataFields:[oteljs.makeInt64DataField("Duration",Date.now()-i),oteljs.makeStringDataField("CorrelationId",o)],eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.NecessaryServiceDataEvent,samplingPolicy:oteljs.SamplingPolicy.CriticalBusinessImpact}}),[2,null];case 3:return[2]}}))}))},[4,s.onExternalCodeServiceResult.add(u)];case 1:return p.sent(),[4,a.sync()];case 2:return p.sent(),s.executePythonCodeAsync2(l,e),[4,a.sync()];case 3:return p.sent(),[2]}}))}))}))]}))}))},e.getRuntimeInfoAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){return[2,new Promise((function(t){return __awaiter(e,void 0,void 0,(function(){var e,o,i,a,s=this;return __generator(this,(function(l){switch(l.label){case 0:return e=n(),o=++r,i=OfficeCore.ExternalCodeService.newObject(e),a=function(n){return __awaiter(s,void 0,void 0,(function(){var r;return __generator(this,(function(s){switch(s.label){case 0:return n.requestId!=o?[3,3]:[4,i.onExternalCodeServiceResult.remove(a)];case 1:return s.sent(),[4,e.sync()];case 2:return s.sent(),r=JSON.parse(n.result),t(r),[2,null];case 3:return[2]}}))}))},[4,i.onExternalCodeServiceResult.add(a)];case 1:return l.sent(),[4,e.sync()];case 2:return l.sent(),i.getRuntimeInfoAsync2(o),[4,e.sync()];case 3:return l.sent(),[2]}}))}))}))]}))}))},e.sendRequestToService=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r,i,a;return __generator(this,(function(s){switch(s.label){case 0:return(n="string"==typeof e.body?e.body:JSON.stringify(e.body))&&"string"==typeof e.body||(n=""),r=Date.now(),[4,o(e.method,e.serverRelativeUrl,n)];case 1:return(i=s.sent())?(a=null,[4,t()]):(OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ExternalCodeServiceCore.SendRequestToService",dataFields:[oteljs.makeInt64DataField("Duration",Date.now()-r)],eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}}),[2,{status:400,body:null}]);case 2:return a=s.sent()||Office.context.platform===Office.PlatformType.OfficeOnline?0==i.result.length?null:JSON.parse(i.result):0==i.body.length?null:JSON.parse(i.body),OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ExternalCodeServiceCore.SendRequestToService",dataFields:[oteljs.makeInt64DataField("Duration",Date.now()-r),oteljs.makeInt64DataField("Status",i.status)],eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}}),[2,{status:i.status,body:a}]}}))}))}}(e.externalCodeService||(e.externalCodeService={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}e.requestUpdate=function(e){var n=t(),r=n.ribbon;function o(e){void 0!==e.controls&&void 0!==e.controls.length&&e.controls.length&&e.controls.filter((function(e){return!!e.id})).forEach((function(e){var t=r.getButton(e.id);void 0!==e.enabled&&null!==e.enabled&&(t.enabled=e.enabled)}))}return e.tabs.filter((function(e){return!!e.id})).forEach((function(e){var t=r.getTab(e.id);void 0!==e.visible&&null!==e.visible&&t.setVisibility(e.visible),e.groups&&e.groups.length?e.groups.filter((function(e){return!!e.id})).forEach((function(e){o(e)})):o(e)})),n.sync()},e.requestCreateControls=function(e){var n,r=t();return r.ribbon.executeRequestCreate(JSON.stringify(e)),(n=250,new Promise((function(e,t){return setTimeout((function(){return e()}),n)}))).then((function(){return r.sync()}))}}(e.ribbon||(e.ribbon={}))}(Office||(Office={})),function(e){!function(e){e.requestUpdate=function(e){if(OfficeExtension&&OfficeExtension.Utility&&!OfficeExtension.Utility.isSetSupported("ContextMenuApi","1.1"))throw OfficeExtension.Utility.createRuntimeError(OfficeCore.ErrorCodes.apiNotAvailable,null,null);var t,n=(t=new OfficeCore.RequestContext,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t._customData="WacPartition"),t),r=n.ribbon;return e.controls.filter((function(e){return!!e.id})).forEach((function(e){var t=r.getButton(e.id);void 0!==e.enabled&&null!==e.enabled&&(t.enabled=e.enabled)})),n.sync()}}(e.contextMenu||(e.contextMenu={}))}(Office||(Office={})),function(e){var t;OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;!function(e){e.generalException="GeneralException"}(t||(t={}));new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[],strings:["AddinInternalService"],enumTypes:[],clientObjectTypes:[[1,0,0,0,[["notifyActionHandlerReady",0,2,0,4]],0,0,0,0,"Microsoft.InternalService.AddinInternalService",4]]},targetNamespaceObject:e})}(OfficeCore||(OfficeCore={})),function(e){var t;!function(t){var n,r,o=OfficeExtension.Utility.isNullOrUndefined;function i(e,t){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:e,dataFields:t,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.Optional,samplingPolicy:oteljs.SamplingPolicy.CriticalBusinessImpact}})}function a(e){if(e){var t=e.toUpperCase(),r=n.mappings[t];if(!o(r)&&"function"==typeof r)return r}throw OfficeExtension.Utility.createRuntimeError("invalidOperation","sourceData","ActionProxy._getFunction")}function s(e,t,n,r){var a=OSF._OfficeAppFactory.getHostInfo();if(a&&"web"===a.hostPlatform.toLowerCase())OSF._OfficeAppFactory.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getId(),OSF.AgaveHostAction.ReportAddinSkillResult,{actionCorrelationId:e,resultCode:t,replyMessage:r}]);else{if(o(window.external))throw new OfficeExtension.Error({code:"GenericException",message:"API currently unsupported."});var s=o(OSF.MethodDispId)?OSF.DDA.MethodDispId.dispidAddinSkillActionReply:OSF.MethodDispId.dispidAddinSkillActionReply;window.external.Execute(s,[e,r,t],null)}i("Office.Extensibility.AddinSkill.ExecuteAction",[oteljs.makeStringDataField("CorrelationId",e),oteljs.makeStringDataField("Message",n),oteljs.makeInt64DataField("ResultCode",t)])}function l(e){try{OfficeExtension.Utility.log("ActionProxy._handleMessage"),OfficeExtension.Utility.checkArgumentNull(e,"args");for(var t=e.entries,n=function(e){if(2!==t[e].messageCategory)return"continue";if("string"==typeof t[e].message&&(t[e].message=JSON.parse(t[e].message)),1e3===t[e].messageType){var n=null,r=a(c=t[e].message[0]);if(t[e].message.length>=2){var l=t[e].message[1];l&&(n=function(e){if("string"==typeof e&&"{"===e[0])return!0;return!1}(l)?JSON.parse(l):l)}void 0!==OSF&&OSF.AppTelemetry&&OSF.AppTelemetry.CallOnAppActivatedIfPending&&OSF.AppTelemetry.CallOnAppActivatedIfPending(),r.apply(null,[n])}else if(1001===t[e].messageType){n=null;var c=t[e].message[0],p=t[e].message[1],f=JSON.parse(p);n=f.message;var h=f.correlationId,d=[oteljs.makeStringDataField("CorrelationId",h),oteljs.makeStringDataField("Message","ActionProxy._handleMessage is called")];i("Office.Extensibility.AddinSkill.ExecuteAction",d);var y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess;r=null;try{r=a(c)}catch(e){y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoActionFunctionMapping,d.push(oteljs.makeStringDataField("Message","ActionProxy._handleMessage failed to get function")),d.push(oteljs.makeInt64DataField("ResultCode",y)),i("Office.Extensibility.AddinSkill.ExecuteAction",d),u(e)}var m=null,g="";if(y==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)try{m=r.apply(null,[n])}catch(e){y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,d.push(oteljs.makeStringDataField("Message","ActionProxy._handleMessage failed to execute function")),d.push(oteljs.makeInt64DataField("ResultCode",y)),i("Office.Extensibility.AddinSkill.ExecuteAction",d),u(e)}if(y==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&o(m)?(y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,g="No result generated"):y!=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess||"object"==typeof m&&"function"==typeof m.then||(y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,g="Invalid result generated"),y==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)try{m.then((function(e){g="Successfully executed function",o(e)?(e="",y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,g="No result generated"):"string"!=typeof e&&(e="",y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,g="Invalid result generated"),s(h,y,g,e)}),(function(e){var t="";y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,g="Failed to execute function","string"==typeof e?t=e:u(e),s(h,y,g,t)}))}catch(e){y=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,g="Invalid result generated",u(e),s(h,y,g,"")}else try{s(h,y,g,"")}catch(e){u(e)}}else OfficeExtension.Utility.log("ActionProxy._handleMessage unknown message type "+t[e].messageType)},r=0;r<t.length;r++)n(r)}catch(e){throw u(e),e}return OfficeExtension.Utility._createPromiseFromResult(null)}function u(e){var t=function(e){var t="Unknown Error";if(e)try{e.toString&&(t=e.toString()),t=t+" "+JSON.stringify(e)}catch(e){t="Unexpected Error"}return t}(e);OfficeExtension.Utility.log(t)}function c(){try{Microsoft.Office.WebExtension.onReadyInternal().then((function(){return function(){if(void 0!==OSF&&OSF.DDA&&OSF.DDA.RichApi&&OSF.DDA.RichApi.richApiMessageManager)return(new OfficeExtension.ClientRequestContext).eventRegistration.register(5,"",l)}()})).then((function(){var e,t,n=OSF._OfficeAppFactory.getHostInfo();return!0===n.isDialog||"web"===n.hostPlatform&&"word"!==n.hostType&&"excel"!==n.hostType&&"powerpoint"!==n.hostType?void 0:(e=new OfficeExtension.ClientRequestContext,t=OfficeCore.AddinInternalService.newObject(e),e._customData="WacPartition",t.notifyActionHandlerReady(),e.sync())}))}catch(e){}}OfficeExtension.Utility.log("ActionProxy.initOnce"),void 0!==e.actions&&(r=e.actions._association,n=r),"undefined"!=typeof document&&(document.readyState&&"loading"!==document.readyState?(OfficeExtension.Utility.log("ActionProxy.initOnce: document.readyState is not loading state"),c()):document.addEventListener&&document.addEventListener("DOMContentLoaded",(function(){OfficeExtension.Utility.log("ActionProxy.initOnce: DOMContentLoaded event triggered"),c()}))),OfficeExtension.HostBridge.onInited((function(e){!function(e){e.addHostMessageHandler((function(e){3===e.type&&l(e.message)}))}(e)}))}(t||(t={}))}(Office||(Office={})),function(e){!function(e){function t(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}e.areShortcutsInUse=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a;return __generator(this,(function(s){switch(s.label){case 0:return n=t(),r=OfficeCore.ActionService.newObject(n),o=r.areShortcutsInUse(e),[4,n.sync()];case 1:for(s.sent(),i=[],a=0;a<e.length;a++)i.push({shortcut:e[a],inUse:o.value[a]});return[2,i]}}))}))},e.replaceShortcuts=function(e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),OfficeCore.ActionService.newObject(n).replaceShortcuts(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.getShortcuts=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(o){switch(o.label){case 0:return e=t(),n=OfficeCore.ActionService.newObject(e),r=n.getShortcuts(),[4,e.sync()];case 1:return o.sent(),[2,r.value]}}))}))}}(e.actions||(e.actions={}))}(Office||(Office={})),function(e){var t;!function(e){e[e.AddinInvokeResultNotInstalled=-1]="AddinInvokeResultNotInstalled",e[e.AddinInvokeResultSkillNotFound=-2]="AddinInvokeResultSkillNotFound",e[e.AddinInvokeResultLaunchFailed=-3]="AddinInvokeResultLaunchFailed",e[e.AddinInvokeResultSuccess=0]="AddinInvokeResultSuccess",e[e.AddinInvokeResultInvocationFailed=1]="AddinInvokeResultInvocationFailed",e[e.AddinInvokeResultNoResultGenerated=2]="AddinInvokeResultNoResultGenerated",e[e.AddinInvokeResultInvalidResultGenerated=3]="AddinInvokeResultInvalidResultGenerated",e[e.AddinInvokeResultNoActionFunctionMapping=4]="AddinInvokeResultNoActionFunctionMapping"}(t=e.AddinInvokeResult||(e.AddinInvokeResult={})),function(e){var n={},r=null;function o(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function i(e){!function(){if(null==r){r=function(e){var t=e.actionCorrelationId,r=(e.replyMessage,e.resultCode,n[t]);return null!=r&&(r.replyMessage=e.replyMessage,r.resultCode=e.resultCode,r.replyPromiseResolver()),null};var e=o();OfficeCore.AddinSkillActionService.newObject(e).onReplyReceived.add(r),e.sync().then(null,(function(e){console.log("There was an error registering the reply event listener!")}))}}();var t={correlationId:e,replyPromise:null,replyPromiseResolver:null,replyMessage:null,resultCode:0};return t.replyPromise=new Promise((function(e){t.replyPromiseResolver=e})),n[e]=t,t}e.InvokeAction=function(e,r,a){return __awaiter(this,void 0,void 0,(function(){var s,l,u,c;return __generator(this,(function(p){switch(p.label){case 0:s=o(),l=OfficeCore.AddinSkillActionService.newObject(s),u=OSF.OUtil.Guid.generateNewGuid(),c=i(u),p.label=1;case 1:return p.trys.push([1,,4,5]),l.invokeAction(e,r,a,u),[4,s.sync()];case 2:return p.sent(),[4,c.replyPromise];case 3:return p.sent(),[3,5];case 4:return function(e){delete n[e]}(u),[7];case 5:if(c.resultCode==t.AddinInvokeResultSuccess){if("string"==typeof c.replyMessage)return[2,c.replyMessage];c.resultCode=t.AddinInvokeResultInvalidResultGenerated}switch(c.resultCode){case t.AddinInvokeResultNotInstalled:throw new OfficeExtension.Error({code:"AddinNotInstalled",message:"Add-in not installed."});case t.AddinInvokeResultSkillNotFound:throw new OfficeExtension.Error({code:"SkillNotFound",message:"Skill not found in the add-in manifest."});case t.AddinInvokeResultLaunchFailed:throw new OfficeExtension.Error({code:"LaunchFailed",message:"Add-in launch failed."});case t.AddinInvokeResultInvocationFailed:throw new OfficeExtension.Error({code:"InvocationFailed",message:"Skill invocation failed."});case t.AddinInvokeResultNoResultGenerated:throw new OfficeExtension.Error({code:"NoResultGenerated",message:"No result generated."});case t.AddinInvokeResultInvalidResultGenerated:throw new OfficeExtension.Error({code:"InvalidResultGenerated",message:"Invalid result generated."});case t.AddinInvokeResultNoActionFunctionMapping:throw new OfficeExtension.Error({code:"NoActionFunctionMapping",message:"No action function mapping."});default:throw new OfficeExtension.Error({code:"UnknownError",message:"Unknown error (code = "+c.resultCode+")."})}return[2]}}))}))}}(e.AddinSkillAction||(e.AddinSkillAction={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}e.SendMessage=function(e,n){return __awaiter(this,void 0,void 0,(function(){var r,o;return __generator(this,(function(i){switch(i.label){case 0:return r=void 0!==n?n:e,o=t(void 0!==n?e:void 0),OfficeCore.AugLoopEventService.newObject(o).sendMessage(r),[4,o.sync()];case 1:return i.sent(),[2]}}))}))},e.onHostMessageReceived=function(e,n){return __awaiter(this,void 0,void 0,(function(){var r,o,i,a,s=this;return __generator(this,(function(l){switch(l.label){case 0:return r=void 0!==n?n:e,o=t(void 0!==n?e:void 0),i=OfficeCore.AugLoopEventService.newObject(o),a=function(e){if(r){var t=e.data;r(t)}return null},i.onHostMessageReceived.add(a),[4,i.context.sync()];case 1:return l.sent(),[2,function(){return __awaiter(s,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return i.onHostMessageReceived.remove(a),[4,o.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.AugLoop||(e.AugLoop={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){return"object"==typeof e&&"string"==typeof e.controlId?e.controlId:void 0}function n(e){var t=new OfficeCore.RequestContext;return e&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e),t._customData="SkipUndoRecording",t}var r,o={};e.undo=function(e){return __awaiter(this,void 0,void 0,(function(){var r,o,i;return __generator(this,(function(a){switch(a.label){case 0:return r=n(t(e)),o=OfficeCore.UndoService.newObject(r),i=o.undo(),[4,r.sync()];case 1:return a.sent(),[2,i.value]}}))}))},e.onUndoStackChanged=function(e,r){return __awaiter(this,void 0,void 0,(function(){var o,i,a,s=this;return __generator(this,(function(l){switch(l.label){case 0:return o=r||e,i=n(t(r?e:void 0)),(a=OfficeCore.UndoService.newObject(i)).onUndoStackChanged.add(o),[4,i.sync()];case 1:return l.sent(),[2,function(){return __awaiter(s,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return a.onUndoStackChanged.remove(o),[4,i.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))},e.startCopilotOperation=function(e){return __awaiter(this,void 0,void 0,(function(){var i,a,s,l,u,c,p,f;return __generator(this,(function(h){switch(h.label){case 0:if(void 0===(i=t(e))){if(void 0!==r)throw new Error("startCopilotOperation is already inprogress")}else if(o[i])throw new Error("startCopilotOperation is already in progress");a=function(){},s=new Promise((function(e){void 0===i?r=e:o[i]=e})),h.label=1;case 1:return h.trys.push([1,4,,5]),l=n(i),u=OfficeCore.UndoService.newObject(l),c=function(){return function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return void 0===e?void 0!==r&&(r(),r=void 0):o[e]&&(o[e](),delete o[e]),[2]}))}))}(i)},a=function(){try{u.onCopilotOperationStarted.remove(c),l.sync()}catch(e){}},u.onCopilotOperationStarted.add(c),[4,l.sync()];case 2:return h.sent(),p=u.startCopilotOperation(""),[4,l.sync()];case 3:return h.sent(),p.value?(void 0!==i&&s.then((function(){a()})),[2,s]):(void 0===i?r=void 0:(a(),delete o[i]),[3,5]);case 4:throw f=h.sent(),void 0===i?r=void 0:(a(),delete o[i]),f;case 5:return[2]}}))}))},e.endCopilotOperation=function(e){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(o){switch(o.label){case 0:return r=n(t(e)),OfficeCore.UndoService.newObject(r).endCopilotOperation(""),[4,r.sync()];case 1:return o.sent(),[2]}}))}))}}(e.Undo||(e.Undo={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){var t;(t=e.dialogPage||(e.dialogPage={})).close=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return e=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(e).close(),[4,e.sync()];case 1:return t.sent(),[2]}}))}))},t.readyToShow=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return e=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(e).readyToShow(),[4,e.sync()];case 1:return t.sent(),[2]}}))}))},t.onShow=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){switch(o.label){case 0:return t=new OfficeCore.RequestContext,(n=OfficeCore.DialogPage.newObject(t)).onOnShowEvent.add(e),r=function(){return n.onOnShowEvent.remove(e),null},[4,t.sync()];case 1:return o.sent(),[2,r]}}))}))},t.sendMessageToHost=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).sendMessageToHost(e),[4,t.sync()];case 1:return n.sent(),[2]}}))}))}}(Office||(Office={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}e.CollectUserFeedback=function(e,n,r,o){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:return i=t(),OfficeCore.UserFeedbackService.newObject(i).collectUserFeedback(e,n,r,o),[4,i.sync()];case 1:return a.sent(),[2]}}))}))},e.onUserFeedbackUIDismissed=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r,o,i=this;return __generator(this,(function(a){switch(a.label){case 0:return n=function(t){if(e){var n=t.isFeedbackSent;e(n)}return null},r=t(),(o=OfficeCore.UserFeedbackService.newObject(r)).onUserFeedbackUIDismissed.add(n),[4,o.context.sync()];case 1:return a.sent(),[2,function(){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return o.onUserFeedbackUIDismissed.remove(n),[4,r.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))},e.CanCollectUserFeedback=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(o){switch(o.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),r=n.canCollectUserFeedback(),[4,e.sync()];case 1:return o.sent(),[2,r.value]}}))}))},e.onUserFeedbackResponse=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r,o,i=this;return __generator(this,(function(a){switch(a.label){case 0:return n=function(t){if(e){var n=t.responseData;e(n)}return null},r=t(),(o=OfficeCore.UserFeedbackService.newObject(r)).onUserFeedbackResponse.add(n),[4,o.context.sync()];case 1:return a.sent(),[2,function(){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return o.onUserFeedbackResponse.remove(n),[4,r.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))},e.InvokeDiagnosticsLogsUpload=function(e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),OfficeCore.UserFeedbackService.newObject(n).invokeDiagnosticsLogsUpload(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.GetInitializationData=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(o){switch(o.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),r=n.getInitializationData(),[4,e.sync()];case 1:return o.sent(),[2,r.value]}}))}))},e.GetHostScreenshot=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(o){switch(o.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),r=n.getHostScreenshot(),[4,e.sync()];case 1:return o.sent(),[2,r.value]}}))}))},e.CanCollectCopilotFeedback=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(o){switch(o.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),r=n.canCollectCopilotFeedback(),[4,e.sync()];case 1:return o.sent(),[2,r.value]}}))}))},e.CollectFeedbackEligibility=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(o){switch(o.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),r=n.collectFeedbackEligibility(),[4,e.sync()];case 1:return o.sent(),[2,r.value]}}))}))},e.CheckFeedbackEligibility=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r,o;return __generator(this,(function(i){switch(i.label){case 0:return n=t(),r=OfficeCore.UserFeedbackService.newObject(n),o=r.checkFeedbackEligibility(e),[4,n.sync()];case 1:return i.sent(),[2,o.value]}}))}))}}(e.UserFeedback||(e.UserFeedback={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){var t=function(){};function n(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function r(e){return JSON.stringify(e instanceof t?{type:"callout",params:e.params}:{type:"custom",props:e})}e.callout=function(e){var n=new t;return n.params=e,n},e.addNotification=function(e,t){return __awaiter(this,void 0,void 0,(function(){var o,i,a;return __generator(this,(function(s){switch(s.label){case 0:return o=n(),i=OfficeCore.NotificationService.newObject(o),a=i.addNotification(r(e),function(e){return JSON.stringify(e)}(t)),[4,o.sync()];case 1:return s.sent(),[2,a.value]}}))}))},e.updateNotification=function(e,t){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(i){switch(i.label){case 0:return o=n(),OfficeCore.NotificationService.newObject(o).updateNotification(e,r(t)),[4,o.sync()];case 1:return i.sent(),[2]}}))}))},e.removeNotification=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return t=n(),OfficeCore.NotificationService.newObject(t).removeNotification(e),[4,t.sync()];case 1:return r.sent(),[2]}}))}))}}(e.Notification||(e.Notification={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}e.getLabel=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r,o;return __generator(this,(function(i){switch(i.label){case 0:return n=t(e),r=OfficeCore.SensitivityService.newObject(n),o=r.getLabel(),[4,n.sync()];case 1:return i.sent(),[2,o.value]}}))}))},e.tryUpgradeLabel=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a;return __generator(this,(function(s){switch(s.label){case 0:if(n=3===e.length,2!==e.length&&3!==e.length)throw new Error("tryUpgradeLabel: Invalid number of parameters ("+e.length+")");return r=n?e[0]:void 0,o=n?e[1]:e[0],i=n?e[2]:e[1],a=t(r),OfficeCore.SensitivityService.newObject(a).tryUpgradeLabel(o,i),[4,a.sync()];case 1:return s.sent(),[2]}}))}))},e.getHighestSensitivityLabel=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a,s;return __generator(this,(function(l){switch(l.label){case 0:if(n=2===e.length,1!==e.length&&2!==e.length)throw new Error("getHighestSensitivityLabel: Invalid number of parameters ("+e.length+")");return r=n?e[0]:void 0,o=n?e[1]:e[0],i=t(r),a=OfficeCore.SensitivityService.newObject(i),s=a.getHighestSensitivityLabel(o),[4,i.sync()];case 1:return l.sent(),[2,s.value]}}))}))},e.getSensitivityResultDetails=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a,s,l;return __generator(this,(function(u){switch(u.label){case 0:if(n=3===e.length,2!==e.length&&3!==e.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+e.length+")");return r=n?e[0]:void 0,o=n?e[1]:e[0],i=n?e[2]:e[1],a=t(r),s=OfficeCore.SensitivityService.newObject(a),l=s.getSensitivityResultDetails(o,i),[4,a.sync()];case 1:return u.sent(),[2,l.value]}}))}))},e.getSensitivityResultDetailsByStringErrorCode=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a,s,l;return __generator(this,(function(u){switch(u.label){case 0:if(n=3===e.length,2!==e.length&&3!==e.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+e.length+")");return r=n?e[0]:void 0,o=n?e[1]:e[0],i=n?e[2]:e[1],a=t(r),s=OfficeCore.SensitivityService.newObject(a),l=s.getSensitivityResultDetailsByStringErrorCode(o,i),[4,a.sync()];case 1:return u.sent(),[2,l.value]}}))}))},e.onLabelChangedEvent=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a,s,l=this;return __generator(this,(function(u){switch(u.label){case 0:if(n=2===e.length,1!==e.length&&2!==e.length)throw new Error("onLabelChangedEvent: Invalid number of parameters ("+e.length+")");return r=n?e[0]:void 0,o=n?e[1]:e[0],i=function(e){if(o){var t=e.previousLabel,n=e.newLabel,r=e.context,i=e.error;o(t,n,r,i)}return null},a=t(r),(s=OfficeCore.SensitivityService.newObject(a)).onLabelChanged.add(i),[4,s.context.sync()];case 1:return u.sent(),[2,function(){return __awaiter(l,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return s.onLabelChanged.remove(i),[4,a.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.Sensitivity||(e.Sensitivity={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}e.launchHelpPaneByQuery=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),r=OfficeCore.CopilotService.newObject(n),r.launchHelpPaneByQuery(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.launchHelpPaneByArticleId=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),r=OfficeCore.CopilotService.newObject(n),r.launchHelpPaneByArticleId(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.launchHelpPaneByArticleIdString=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),r=OfficeCore.CopilotService.newObject(n),r.launchHelpPaneByArticleIdString(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.launchTaskPaneByAgentId=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),r=OfficeCore.CopilotService.newObject(n),r.launchTaskPaneByAgentId(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.getWindowClientWidth=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(o){switch(o.label){case 0:return e=t(),n=OfficeCore.CopilotService.newObject(e),r=n.getWindowClientWidth(),[4,e.sync()];case 1:return o.sent(),[2,r.value]}}))}))}}(e.Copilot||(e.Copilot={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}e.execute=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a,s;return __generator(this,(function(l){switch(l.label){case 0:return n=e.length>=2,r=n?e[0]:void 0,o=n?e[1]:e[0],i=t(r),a=OfficeCore.PrivateApiService.newObject(i),s=a.execute(o),[4,i.sync()];case 1:return l.sent(),[2,s.value]}}))}))},e.onPrivateEvent=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,r,o,i,a,s,l=this;return __generator(this,(function(u){switch(u.label){case 0:return n=e.length>=2,r=n?e[0]:void 0,o=n?e[1]:e[0],i=function(e){if(o){var t=e.messageData;o(t)}return null},a=t(r),(s=OfficeCore.PrivateApiService.newObject(a)).onOnPrivateEvent.add(i),[4,s.context.sync()];case 1:return u.sent(),[2,function(){return __awaiter(l,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return s.onOnPrivateEvent.remove(i),[4,a.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.PrivateApi||(e.PrivateApi={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){var t;function n(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}!function(e){e.copilotAgentsPage="CopilotAgentsPage"}(t=e.DefaultPageType||(e.DefaultPageType={})),function(e){e.activated="Activated",e.removed="Removed"}(e.CopilotAgentActionType||(e.CopilotAgentActionType={})),e.launchStore=function(e){return __awaiter(this,void 0,void 0,(function(){var r,o,i;return __generator(this,(function(a){switch(a.label){case 0:if(e!==t.copilotAgentsPage)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return r=n(),o=OfficeCore.UnifiedStoreService.newObject(r),e!=t.copilotAgentsPage?[3,2]:(i=o.launchStoreDialogWithCopilotAgentPageShown(),[4,r.sync()]);case 1:return a.sent(),[2,i];case 2:return[2]}}))}))},e.onCopilotAgentEvent=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,o,i=this;return __generator(this,(function(a){switch(a.label){case 0:return t=function(t){if(e){var n=JSON.parse(t.messageData),r=n.actionType,o=n.titleId;e({actionType:r,titleId:o})}return null},r=n(),(o=OfficeCore.UnifiedStoreService.newObject(r)).onCopilotAgentEvent.add(t),[4,o.context.sync()];case 1:return a.sent(),[2,function(){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return o.onCopilotAgentEvent.remove(t),[4,r.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.UnifiedStore||(e.UnifiedStore={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}e.hide=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),r=OfficeCore.BusinessBarService.newObject(n),r.hide(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.show=function(e,n){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(o){switch(o.label){case 0:return r=t(),OfficeCore.BusinessBarService.newObject(r).show(e,n),[4,r.sync()];case 1:return o.sent(),[2]}}))}))}}(e.BusinessBar||(e.BusinessBar={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){e.launchSimpleDialog=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){switch(o.label){case 0:return t=function(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(),n=OfficeCore.ShowSimpleDialog.newObject(t),r=n.launchSimpleDialog(e.title,e.description,e.telemetryid,e.category,e.hasButton,e.buttonLabel,e.hasCheckbox,e.checkboxLabel),[4,t.sync()];case 1:return o.sent(),[2,r.value]}}))}))}}(e.SimpleDialog||(e.SimpleDialog={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){e.execute=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,o;return __generator(this,(function(i){switch(i.label){case 0:return n=function(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}(),r=OfficeCore.DispatchApiService.newObject(n),o=r.execute(e,t),[4,n.sync()];case 1:return i.sent(),[2,o.value]}}))}))}}(e.DispatchApi||(e.DispatchApi={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){e.camera="camera",e.microphone="microphone",e.geolocation="geolocation"}(e.DevicePermissionType||(e.DevicePermissionType={})),function(e){e.requestPermissions=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){switch(o.label){case 0:return t=function(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(),n=OfficeCore.DevicePermissionService.newObject(t),r=n.requestPermissions(e),[4,t.sync()];case 1:return o.sent(),[2,r.value]}}))}))}}(e.devicePermission||(e.devicePermission={}))}(Office||(Office={})),function(e){!function(e){e.getofficethemedataforvisualsurface=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){switch(o.label){case 0:return t=function(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}(),n=OfficeCore.ThemeService.newObject(t),r=n.getOfficeThemeDataForVisualSurface(e),[4,t.sync()];case 1:return o.sent(),[2,JSON.parse(r.value)]}}))}))}}(e.ThemeService||(e.ThemeService={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){var t=function(){function t(e){this.m_activeView=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.ActiveViewChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeView",{get:function(){return this.m_activeView.activeView},enumerable:!0,configurable:!0}),t}();e.ActiveViewChangedEventArgs=t}(OSF||(OSF={})),function(e){var t=function(){function t(e,t,n,r,o){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._checkCallArgs=r,this._displayName=o,this._requiredCount=e.length}return t.prototype.verifyArguments=function(t,n){for(var r in t){var o=t[r],i=n[r];if(o.enum)switch(typeof i){case"string":if(e.OUtil.listContainsValue(o.enum,i))break;case"undefined":throw 5007;default:throw this.getInvalidParameterString()}if(o.types&&!e.OUtil.listContainsValue(o.types,typeof i))throw this.getInvalidParameterString()}},t.prototype.extractRequiredArguments=function(t,n,r){if(t.length<this._requiredCount)throw e.Utility.createParameterException(Strings.OfficeOM.L_MissingRequiredArguments);var o,i=[];for(o=0;o<this._requiredCount;o++)i.push(t[o]);this.verifyArguments(this._requiredParameters,i);var a={};for(o=0;o<this._requiredCount;o++){var s=this._requiredParameters[o],l=i[o];if(s.verify)if(!s.verify(l,n,r))throw this.getInvalidParameterString();a[s.name]=l}return a},t.prototype.fillOptions=function(t,n,r,o){for(var i in t=t||{},this._supportedOptions)if(!e.OUtil.listContainsKey(t,i)){var a=void 0,s=this._supportedOptions[i];s.calculate&&n&&(a=s.calculate(n,r,o)),a||void 0===s.defaultValue||(a=s.defaultValue),t[i]=a}return t},t.prototype.constructCallArgs=function(e,t,n,r){var o={};for(var i in e)o[i]=e[i];for(var a in t)o[a]=t[a];for(var s in this._privateStateCallbacks)o[s]=this._privateStateCallbacks[s](n,r);return this._checkCallArgs&&(o=this._checkCallArgs(o,n,r)),o},t.prototype.getInvalidParameterString=function(){var t=this;e.OUtil.delayExecutionAndCache((function(){return e.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,t._displayName)}))},t}();e.ApiMethodCall=t}(OSF||(OSF={})),function(e){var t=function(){function t(t,n,r,o,i,a,s){this._requiredParameters=t,this._supportedOptions=n,this._privateStateCallbacks=r,this._onSucceeded=o,this._onFailed=i,this._displayName=s,this._checkCallArgs=a,this._requiredCount=t.length,this._apiMethods=new e.ApiMethodCall(t,n,r,a,s)}return t.prototype.verifyAndExtractCall=function(e,t,n){var r=this._apiMethods.extractRequiredArguments(e,t,n),o=this.extractOptions(e,r,t,n);return this._apiMethods.constructCallArgs(r,o,t,n)},t.prototype.processResponse=function(t,n,r,o){return 0==t?this._onSucceeded?this._onSucceeded(n,r,o):n:this._onFailed?this._onFailed(t,n):e.DDA.ErrorCodeManager.getErrorArgs(t)},t.prototype.getCallArgs=function(t){for(var n,r,o=t.length-1;o>=this._requiredCount;o--){var i=t[o];switch(typeof i){case"object":n=i;break;case"function":r=i}}return n=n||{},r&&(n[e.ParameterNames.Callback]=r),n},t.prototype.extractOptions=function(t,n,r,o){if(t.length>this._requiredCount+2)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);for(var i,a,s=t.length-1;s>=this._requiredCount;s--){var l=t[s];switch(typeof l){case"object":if(i)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyOptionalObjects);i=l;break;case"function":if(a)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyOptionalFunction);a=l;break;default:throw e.Utility.createArgumentException(Strings.OfficeOM.L_InValidOptionalArgument)}}if(i=this._apiMethods.fillOptions(i,n,r,o),a){if(i[e.ParameterNames.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;i[e.ParameterNames.Callback]=a}return this._apiMethods.verifyArguments(this._supportedOptions,i),i},t}();e.AsyncMethodCall=t}(OSF||(OSF={})),function(e){!function(t){var n={};t.define=function(t){var r,o,i;n[t.method]=(o=(r=t).supportedOptions?e.OUtil.createObject(r.supportedOptions):[],i=r.privateStateCallbacks?e.OUtil.createObject(r.privateStateCallbacks):[],new e.AsyncMethodCall(r.requiredArguments||[],o,i,r.onSucceeded,r.onFailed,r.checkCallArgs,r.method))},t.get=function(e){return n[e]}}(e.AsyncMethodCalls||(e.AsyncMethodCalls={}))}(OSF||(OSF={})),function(e){e.AsyncMethods={AddColumnsAsync:"addColumnsAsync",AddFromSelectionAsync:"addFromSelectionAsync",AddFromNamedItemAsync:"addFromNamedItemAsync",AddFromPromptAsync:"addFromPromptAsync",AddHandlerAsync:"addHandlerAsync",AddRowsAsync:"addRowsAsync",BindingSelectionChanged:"bindingSelectionChanged",BindingDataChanged:"bindingDataChanged",ClearFormatsAsync:"clearFormatsAsync",CloseAsync:"close",CloseContainerAsync:"closeContainer",DeleteAllDataValuesAsync:"deleteAllDataValuesAsync",DisplayDialogAsync:"displayDialogAsync",ExecuteFeature:"executeFeature",ExecuteRichApiRequestAsync:"executeRichApiRequestAsync",GetAllAsync:"getAllAsync",GetAccessTokenAsync:"getAccessTokenAsync",GetByIdAsync:"getByIdAsync",GetDataAsync:"getDataAsync",GetDocumentCopyAsync:"getFileAsync",GetDocumentCopyChunkAsync:"getSliceAsync",GetFilePropertiesAsync:"getFilePropertiesAsync",GetSelectedDataAsync:"getSelectedDataAsync",GoToByIdAsync:"goToByIdAsync",OpenBrowserWindow:"openBrowserWindow",QueryFeature:"queryFeature",ReleaseByIdAsync:"releaseByIdAsync",RemoveHandlerAsync:"removeHandlerAsync",ReleaseDocumentCopyAsync:"closeAsync",SetDataAsync:"setDataAsync",SetFormatsAsync:"setFormatsAsync",SetSelectedDataAsync:"setSelectedDataAsync",SetTableOptionsAsync:"setTableOptionsAsync",GetOfficeThemeAsync:"getOfficeThemeAsync",GetDocumentThemeAsync:"getDocumentThemeAsync"}}(OSF||(OSF={})),function(e){!function(e){e.Subset="subset",e.BindingProperties="BindingProperties"}(e.PropertyDescriptors||(e.PropertyDescriptors={}));var t=function(){function t(e,t){this.m_bindingInstance=e,this.m_subset=t}return Object.defineProperty(t.prototype,"startRow",{get:function(){return this.m_subset.startRow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startColumn",{get:function(){return this.m_subset.startColumn},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.m_subset.rowCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnCount",{get:function(){return this.m_subset.columnCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.BindingSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),t}();e.BindingSelectionChangedEventArgs=t;var n=function(){function t(e){this.m_bindingInstance=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.BindingDataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),t}();e.BindingDataChangedEventArgs=n}(OSF||(OSF={})),function(e){!function(e){e.DataPartProperties="DataPartProperties",e.DataNodeProperties="DataNodeProperties"}(e.PropertyDescriptors||(e.PropertyDescriptors={})),function(e){!function(e){!function(e){e.OldNode="OldNode",e.NewNode="NewNode",e.NextSiblingNode="NextSiblingNode",e.InUndoRedo="InUndoRedo"}(e.DataNodeEventProperties||(e.DataNodeEventProperties={}))}(e.Customxml||(e.Customxml={}))}(e.Marshaling||(e.Marshaling={})),function(e){e.DataNodeInsertedEvent="DataNodeInsertedEvent",e.DataNodeReplacedEvent="DataNodeReplacedEvent",e.DataNodeDeletedEvent="DataNodeDeletedEvent"}(e.EventDescriptors||(e.EventDescriptors={})),function(e){e.OldNode="OldNode",e.NewNode="NewNode",e.NextSiblingNode="NextSiblingNode",e.InUndoRedo="InUndoRedo"}(e.DataNodeEventProperties||(e.DataNodeEventProperties={}));var t=function(){function t(e,t){this.m_newNode=e,this.m_inUndoRedo=t}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.DataNodeInserted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),t}();e.NodeInsertedEventArgs=t;var n=function(){function t(e,t,n){this.m_oldNode=e,this.m_newNode=t,this.m_inUndoRedo=n}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.DataNodeReplaced},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),t}();e.NodeReplacedEventArgs=n;var r=function(){function t(e,t,n){this.m_oldNode=e,this.m_oldNextSibling=t,this.m_inUndoRedo=n}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.DataNodeDeleted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oldNextSibling",{get:function(){return this.m_oldNextSibling},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),t}();e.NodeDeletedEventArgs=r}(OSF||(OSF={})),function(e){var t=function(t){0==t[e.PropertyDescriptors.MessageType]?e.OUtil.defineEnumerableProperties(this,{type:{value:e.EventType.DialogMessageReceived},message:{value:t[e.PropertyDescriptors.MessageContent]},origin:{value:t[e.PropertyDescriptors.MessageOrigin]}}):e.OUtil.defineEnumerableProperties(this,{type:{value:e.EventType.DialogEventReceived},error:{value:t[e.PropertyDescriptors.MessageType]}})};e.DialogEventArgs=t,function(e){e.MessageType="messageType",e.MessageContent="messageContent",e.MessageOrigin="messageOrigin"}(e.PropertyDescriptors||(e.PropertyDescriptors={}))}(OSF||(OSF={})),function(e){var t=function(){function t(e){this.m_docInstance=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.DocumentSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),t}();e.DocumentSelectionChangedEventArgs=t}(OSF||(OSF={})),function(e){var t=function(t){e.OUtil.defineEnumerableProperties(this,{type:{value:e.EventType.DialogParentMessageReceived},message:{value:t[e.PropertyDescriptors.MessageContent]},origin:{value:t[e.PropertyDescriptors.MessageOrigin]}})};e.DialogParentEventArgs=t}(OSF||(OSF={})),function(e){e.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1},function(t){var n;function r(t){return t==e.EventDispId.dispidObjectDeletedEvent||t==e.EventDispId.dispidObjectSelectionChangedEvent||t==e.EventDispId.dispidObjectDataChangedEvent||t==e.EventDispId.dispidContentControlAddedEvent}function o(t,n,r,o){if("number"!=typeof t)throw t;o||(o=n.getCallArgs(r)),s(o,t,e.DDA.ErrorCodeManager.getErrorArgs(t))}function i(t){return(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web?e.WACDelegate:e.SafeArrayDelegate)[t]}function a(){return n||function(){n={};var t={GoToByIdAsync:82,GetSelectedDataAsync:64,SetSelectedDataAsync:65,GetDocumentCopyChunkAsync:80,ReleaseDocumentCopyAsync:81,GetDocumentCopyAsync:77,AddFromSelectionAsync:66,AddFromPromptAsync:67,AddFromNamedItemAsync:78,GetAllAsync:74,GetByIdAsync:68,ReleaseByIdAsync:69,GetDataAsync:70,SetDataAsync:71,AddRowsAsync:72,AddColumnsAsync:79,DeleteAllDataValuesAsync:73,RefreshAsync:75,SaveAsync:76,GetActiveViewAsync:83,GetFilePropertiesAsync:86,GetOfficeThemeAsync:85,GetDocumentThemeAsync:84,ClearFormatsAsync:87,SetTableOptionsAsync:88,SetFormatsAsync:89,GetUserIdentityInfoAsync:92,GetAccessTokenAsync:98,GetAuthContextAsync:99,ExecuteRichApiRequestAsync:93,AppCommandInvocationCompletedAsync:94,CloseContainerAsync:97,OpenBrowserWindow:102,CreateDocumentAsync:105,InsertFormAsync:106,ExecuteFeature:146,QueryFeature:147,AddDataPartAsync:128,GetDataPartByIdAsync:129,GetDataPartsByNameSpaceAsync:130,GetPartXmlAsync:131,GetPartNodesAsync:132,DeleteDataPartAsync:133,GetNodeValueAsync:134,GetNodeXmlAsync:135,GetRelativeNodesAsync:136,SetNodeValueAsync:137,SetNodeXmlAsync:138,AddDataPartNamespaceAsync:139,GetDataPartNamespaceAsync:140,GetDataPartPrefixAsync:141,GetNodeTextAsync:142,SetNodeTextAsync:143,GetSelectedTask:110,GetTask:112,GetWSSUrl:114,GetTaskField:115,GetSelectedResource:111,GetResourceField:113,GetProjectField:116,GetSelectedView:117,GetTaskByIndex:118,GetResourceByIndex:119,SetTaskField:120,SetResourceField:121,GetMaxTaskIndex:122,GetMaxResourceIndex:123,CreateTask:124};for(var r in t)e.AsyncMethods[r]&&(n[e.AsyncMethods[r]]=t[r]);var o={MessageParent:144,SendMessage:145};for(var r in o)e.SyncMethods[r]&&(n[e.SyncMethods[r]]=o[r]);var i={SettingsChanged:e.EventDispId.dispidSettingsChangedEvent,DocumentSelectionChanged:e.EventDispId.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:e.EventDispId.dispidBindingSelectionChangedEvent,BindingDataChanged:e.EventDispId.dispidBindingDataChangedEvent,ActiveViewChanged:e.EventDispId.dispidActiveViewChangedEvent,OfficeThemeChanged:e.EventDispId.dispidOfficeThemeChangedEvent,DocumentThemeChanged:e.EventDispId.dispidDocumentThemeChangedEvent,AppCommandInvoked:e.EventDispId.dispidAppCommandInvokedEvent,DialogMessageReceived:e.EventDispId.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:e.EventDispId.dispidDialogParentMessageReceivedEvent,ObjectDeleted:e.EventDispId.dispidObjectDeletedEvent,ObjectSelectionChanged:e.EventDispId.dispidObjectSelectionChangedEvent,ObjectDataChanged:e.EventDispId.dispidObjectDataChangedEvent,ContentControlAdded:e.EventDispId.dispidContentControlAddedEvent,LiveShareStateChanged:e.EventDispId.dispidLiveShareStateChangedEvent,RichApiMessage:e.EventDispId.dispidRichApiMessageEvent,DataNodeInserted:e.EventDispId.dispidDataNodeAddedEvent,DataNodeReplaced:e.EventDispId.dispidDataNodeReplacedEvent,DataNodeDeleted:e.EventDispId.dispidDataNodeDeletedEvent};for(var a in i)e.EventType[a]&&(n[e.EventType[a]]=i[a])}(),n}function s(t,n,r){var o=t[e.ParameterNames.Callback];if(o){var i,a={};a[e.DDA.AsyncResultEnum.Properties.Context]=t[e.ParameterNames.AsyncContext],0==n?a[e.DDA.AsyncResultEnum.Properties.Value]=r:(i={},r=r||e.DDA.ErrorCodeManager.getErrorArgs(5001),i[e.DDA.AsyncResultEnum.ErrorProperties.Code]=n||5001,i[e.DDA.AsyncResultEnum.ErrorProperties.Name]=r.name||r,i[e.DDA.AsyncResultEnum.ErrorProperties.Message]=r.message||r),o(new e.DDA.AsyncResult(a,i))}}t.InvokeMethod=function(t,n,r,l){var u;try{var c=e.AsyncMethodCalls.get(t);u=c.verifyAndExtractCall(n,r,l);var p=a()[t],f=i("executeAsync"),h=null;if(window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0),window.Excel&&window.Excel._RedirectV1APIs&&(h=window.Excel._V1APIMap[t])){var d=e.OUtil.shallowCopy(u);delete d[e.ParameterNames.AsyncContext],h.preprocess&&(d=h.preprocess(d));var y=new window.Excel.RequestContext,m=h.call(y,d);y.sync().then((function(){var t=m.value,n=t.status;delete t.status,delete t["@odata.type"],h.postprocess&&(t=h.postprocess(t,d)),0!=n&&(t=e.DDA.ErrorCodeManager.getErrorArgs(n)),s(u,n,t)})).catch((function(e){s(u,13991,null)}))}else{var g;g=e.HostParameterMap.toHost(p,u);var _=(new Date).getTime();f({dispId:p,hostCallArgs:g,onCalling:function(){},onReceiving:function(){},onComplete:function(t,n){var o;o=0==t?e.HostParameterMap.fromHost(p,n):n;var i=c.processResponse(t,o,r,u);s(u,t,i),e.AppTelemetry&&e.AppTelemetry.onMethodDone(p,g,Math.abs((new Date).getTime()-_),t)}})}}catch(e){o(e,c,n,u)}},t.AddEventHandler=function(t,n,l,u){var c,p,f,h=!1;function d(t){var r;0==t&&((h?n.addObjectEventHandler(p,c[e.ParameterNames.Id],f):n.addEventHandler(p,f))||(t=13991));0!=t&&(r=e.DDA.ErrorCodeManager.getErrorArgs(t)),s(c,t,r)}try{var y=e.AsyncMethodCalls.get(e.AsyncMethods.AddHandlerAsync);if(c=y.verifyAndExtractCall(t,l,n),p=c[e.ParameterNames.EventType],f=c[e.ParameterNames.Handler],u)return void d(0);var m=a()[p],g=(h=r(m))?c[e.ParameterNames.Id]:l.id||"";if(0==(h?n.getObjectEventHandlerCount(p,g):n.getEventHandlerCount(p)))i("registerEventAsync")({eventType:p,dispId:m,targetId:g,onCalling:function(){},onReceiving:function(){},onComplete:d,onEvent:function(t){var r=e.HostParameterMap.fromHost(m,t);h?n.fireObjectEvent(g,e.manufactureEventArgs(p,g,r)):n.fireEvent(e.manufactureEventArgs(p,l,r))}});else d(0)}catch(e){o(e,y,t,c)}},t.RemoveEventHandler=function(t,n,l){var u,c,p,f=!1;function h(t){var n;0!=t&&(n=e.DDA.ErrorCodeManager.getErrorArgs(t)),s(u,t,n)}try{var d=e.AsyncMethodCalls.get(e.AsyncMethods.RemoveHandlerAsync);c=(u=d.verifyAndExtractCall(t,l,n))[e.ParameterNames.EventType],p=u[e.ParameterNames.Handler];var y,m,g=a()[c],_=(f=r(g))?u[e.ParameterNames.Id]:l.id||"";null===p?(m=f?n.clearObjectEventHandlers(c,_):n.clearEventHandlers(c),y=0):y=(m=f?n.removeObjectEventHandler(c,_,p):n.removeEventHandler(c,p))?0:5003;var b=f?n.getObjectEventHandlerCount(c,_):n.getEventHandlerCount(c);if(m&&0==b)i("unregisterEventAsync")({eventType:c,dispId:g,targetId:_,onCalling:function(){},onReceiving:function(){},onComplete:h});else h(y)}catch(e){o(e,d,t,u)}},t.OpenDialog=function(t,n,r){var l,u,c=e.EventType.DialogMessageReceived,p=e.EventType.DialogEventReceived;function f(t){if(0!=t)i=e.DDA.ErrorCodeManager.getErrorArgs(t);else{var o={};o.id=u,o.data=n;var i=h.processResponse(t,o,r,l);e.DialogShownStatus.hasDialogShown=!0,n.clearEventHandlers(c),n.clearEventHandlers(p)}s(l,t,i)}try{if(null!=c&&null!=p||f(5e3),null==e.AsyncMethods.DisplayDialogAsync)return void f(5001);var h=e.AsyncMethodCalls.get(e.AsyncMethods.DisplayDialogAsync);l=h.verifyAndExtractCall(t,r,n);var d=a()[c],y=i("openDialog");u=JSON.stringify(l),e.DialogShownStatus.hasDialogShown||(n.clearQueuedEvent(c),n.clearQueuedEvent(p),n.clearQueuedEvent(e.EventType.DialogParentMessageReceived)),y({eventType:c,dispId:d,targetId:u,onCalling:function(){},onReceiving:function(){},onComplete:f,onEvent:function(t){var o=e.HostParameterMap.fromHost(d,t),i=e.manufactureEventArgs(c,r,o);if(i.type==p){e.DDA.ErrorCodeManager.getErrorArgs(i.error);var a={};a.code=status||5001,i.error=new e.DDA.Error(a[e.DDA.AsyncResultEnum.ErrorProperties.Name],a[e.DDA.AsyncResultEnum.ErrorProperties.Message],a[e.DDA.AsyncResultEnum.ErrorProperties.Code])}n.fireOrQueueEvent(i),12006==o.messageType&&(n.clearEventHandlers(c),n.clearEventHandlers(p),n.clearEventHandlers(e.EventType.DialogParentMessageReceived),e.DialogShownStatus.hasDialogShown=!1)}})}catch(e){o(e,h,t,l)}},t.CloseDialog=function(t,n,r,s){var l,u,c;try{var p=e.AsyncMethodCalls.get(e.AsyncMethods.CloseAsync);l=p.verifyAndExtractCall(t,s,r),u=e.EventType.DialogMessageReceived,c=e.EventType.DialogEventReceived,r.clearEventHandlers(u),r.clearEventHandlers(c);var f=a()[u];i("closeDialog")({eventType:u,dispId:f,targetId:n,onCalling:function(){},onReceiving:function(){},onComplete:function(t){t,e.DialogShownStatus.hasDialogShown=!1}})}catch(e){o(e,p,t,l)}},t.MessageParent=function(t,n){var r=e.SyncMethodCalls.get(e.SyncMethods.MessageParent).verifyAndExtractCall(t,n,{});return i("messageParent")({dispId:a()[e.SyncMethods.MessageParent],hostCallArgs:r,onCalling:function(){},onReceiving:function(){}})},t.SendMessage=function(t,n,r){var o=e.SyncMethodCalls.get(e.SyncMethods.SendMessage).verifyAndExtractCall(t,r,{});return i("sendMessage")({dispId:a()[e.SyncMethods.SendMessage],hostCallArgs:o,onCalling:function(){},onReceiving:function(){}})},t.addAsyncMethods=function(t,n,r){for(var o in n){var i=n[o];t[i]||e.OUtil.defineEnumerableProperty(t,i,{value:function(n){return function(){var o=e.DispIdHost.InvokeMethod;o(n,arguments,t,r)}}(i)})}},t.addEventSupport=function(t,n,r){var o=e.AsyncMethods.AddHandlerAsync,i=e.AsyncMethods.RemoveHandlerAsync;t[o]||e.OUtil.defineEnumerableProperty(t,o,{value:function(){var o=e.DispIdHost.AddEventHandler;o(arguments,n,t,r)}}),t[i]||e.OUtil.defineEnumerableProperty(t,i,{value:function(){var r=e.DispIdHost.RemoveEventHandler;r(arguments,n,t)}})},t.issueAsyncResult=s}(e.DispIdHost||(e.DispIdHost={}))}(OSF||(OSF={})),function(e){e.manufactureEventArgs=function(t,n,r){var o;switch(t){case e.EventType.DocumentSelectionChanged:o=new e.DocumentSelectionChangedEventArgs(n);break;case e.EventType.BindingSelectionChanged:o=new e.BindingSelectionChangedEventArgs(e.manufactureBinding(r,n.document),r[e.PropertyDescriptors.Subset]);break;case e.EventType.BindingDataChanged:o=new e.BindingDataChangedEventArgs(e.manufactureBinding(r,n.document));break;case e.EventType.SettingsChanged:o=new e.SettingsChangedEventArgs(n);break;case e.EventType.ActiveViewChanged:o=new e.ActiveViewChangedEventArgs(r);break;case e.EventType.LiveShareStateChanged:o=new e.LiveShareStateChangedEventArgs(r);break;case e.EventType.OfficeThemeChanged:o=new e.DDA.Theming.OfficeThemeChangedEventArgs(r);break;case e.EventType.DocumentThemeChanged:o=new e.DDA.Theming.DocumentThemeChangedEventArgs(r);break;case e.EventType.DataNodeInserted:o=new e.NodeInsertedEventArgs(e.manufactureDataNode(r[e.DataNodeEventProperties.NewNode]),r[e.DataNodeEventProperties.InUndoRedo]);break;case e.EventType.DataNodeReplaced:o=new e.NodeReplacedEventArgs(e.manufactureDataNode(r[e.DataNodeEventProperties.OldNode]),e.manufactureDataNode(r[e.DataNodeEventProperties.NewNode]),r[e.DataNodeEventProperties.InUndoRedo]);break;case e.EventType.DataNodeDeleted:o=new e.NodeDeletedEventArgs(e.manufactureDataNode(r[e.DataNodeEventProperties.OldNode]),e.manufactureDataNode(r[e.DataNodeEventProperties.NextSiblingNode]),r[e.DataNodeEventProperties.InUndoRedo]);break;case e.EventType.DialogMessageReceived:o=new e.DialogEventArgs(r);break;case e.EventType.DialogParentMessageReceived:o=new e.DialogParentEventArgs(r)}return o}}(OSF||(OSF={})),function(e){var t="toHost",n="fromHost";!function(r){var o;r.self="self",r.dynamicTypes={},r.dynamicTypes[e.ParameterNames.Data]={toHost:function(t){if(null!=t&&void 0!==t.rows){var n={};n[e.TableDataProperties.TableRows]=t.rows,n[e.TableDataProperties.TableHeaders]=t.headers,t=n}return t},fromHost:function(e){return e}},r.dynamicTypes.sampleData=r.dynamicTypes.data;var i={};function a(e,t){var n,o;if(t.map)for(var a in o={},n=t.map){var s=n[a];s==r.self&&(s=a),o[s]=a}else n=t.toHost,o=t.fromHost;var l=i[e];if(l){var u=l.toHost;for(var c in u)n[c]=u[c];for(var p in u=l.fromHost)o[p]=u[p]}else l=i[e]={};l.toHost=n,l.fromHost=o}function s(e){c().addComplexType(e)}function l(t,o){var a=t?{}:void 0;for(var s in t){var u,p=t[s];if(e.ListType.isListType(s))for(var f in u=[],p)u.push(l(p[f],o));else if(e.OUtil.listContainsKey(r.dynamicTypes,s))u=r.dynamicTypes[s][o](p);else if(o==n&&c().preserveNesting(s))u=l(p,o);else{var h=i[s];if(h){var d=h[o];d&&void 0===(u=d[p])&&(u=p)}else u=p}a[s]=u}return a}function u(t,n,o){var a,s=i[t][o];if("toHost"==o)a=function e(t,n){var o;for(var a in n){var s;if(null!=(s=c().isComplexType(a)?e(t,i[a].toHost):t[a])){o||(o={});var l=n[a];l==r.self&&(l=a),o[l]=c().pack(a,s)}}return o}(l(n,o),s);else if("fromHost"==o){a=l(function t(n,o,a){for(var s in a||(a={}),o){var l,u,p=o[s];if(p==r.self)l=n;else{if("sourceData"==p){a[s]=n.toArray();continue}l=n[p]}if(null==l)a[s]=void 0;else if(l=c().unpack(s,l),c().isComplexType(s))u=i[s].fromHost,c().preserveNesting(s)?a[s]=t(l,u):t(l,u,a);else if(e.ListType.isListType(s)){(u={})[e.ListType.getDescriptor(s)]=r.self;var f=new Array(l.length);for(var h in l)f[h]=t(l[h],u);a[s]=f}else a[s]=l}return a}(n,s),o)}return a}function c(){if(!o){var t=e._OfficeAppFactory.getHostInfo();o=t.hostPlatform==e.HostInfoPlatform.web?new e.WebSpecialProcessor:new e.SafeArraySpecialProcessor}return o}function p(e){var t=null;if(e){t={};for(var n=e.length,r=0;r<n;r++)t[e[r].name]=e[r].value}return t}r.define=function(e){var t={},n=p(e.toHost);e.invertible?t.map=n:e.canonical?t.toHost=t.fromHost=n:(t.toHost=n,t.fromHost=p(e.fromHost)),a(e.type,t),e.isComplexType&&s(e.type)},r.toHost=function(e,n){return u(e,n,t)},r.fromHost=function(e,t){return u(e,t,n)},r.addMapping=a,r.addComplexType=s,r.getDynamicType=function(e){return c().getDynamicType(e)},r.setDynamicType=function(e,t){c().setDynamicType(e,t)},r.doMapValues=function(e,t){return l(e,t)}}(e.HostParameterMap||(e.HostParameterMap={}))}(OSF||(OSF={})),function(e){!function(t){var n={};t.setListType=function(e,t){n[e]=t},t.isListType=function(t){return e.OUtil.listContainsKey(n,t)},t.getDescriptor=function(e){return n[e]}}(e.ListType||(e.ListType={}))}(OSF||(OSF={})),function(e){var t=function(){function t(e){this.m_liveShareStateInstance=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.LiveShareStateChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"liveShareState",{get:function(){return this.m_liveShareStateInstance},enumerable:!0,configurable:!0}),t}();e.LiveShareStateChangedEventArgs=t}(OSF||(OSF={})),function(e){!function(e){e.ActiveViewChanged="activeViewChanged",e.DialogMessageReceived="dialogMessageReceived",e.DialogParentMessageReceived="dialogParentMessageReceived",e.DialogParentEventReceived="dialogParentEventReceived",e.DialogEventReceived="dialogEventReceived",e.BindingDataChanged="bindingDataChanged",e.BindingSelectionChanged="bindingSelectionChanged",e.OfficeThemeChanged="officeThemeChanged",e.DocumentThemeChanged="documentThemeChanged",e.DataNodeDeleted="nodeDeleted",e.DataNodeInserted="nodeInserted",e.DataNodeReplaced="nodeReplaced",e.DocumentSelectionChanged="documentSelectionChanged",e.LiveShareStateChanged="liveShareStateChanged",e.NodeDeleted="nodeDeleted",e.NodeInserted="nodeInserted",e.NodeReplaced="nodeReplaced",e.SettingsChanged="settingsChanged"}(e.EventType||(e.EventType={}))}(Office||(Office={})),function(e){!function(e){e.TableRows="TableRows",e.TableHeaders="TableHeaders"}(e.TableDataProperties||(e.TableDataProperties={}))}(OSF||(OSF={})),function(e){!function(t){var n,r,o;function i(){try{var e=window.navigator.userAgent;return e.indexOf("MSIE ")>-1||e.indexOf("Trident/")>-1||e.indexOf("Edge/")>-1}catch(e){return u("Error happens in isInternetExplorer.",e),!1}}function a(e){if("undefined"!=typeof JSON)try{return JSON.stringify(e)}catch(e){}return""}!function(e){e.ButtonBorderColor="buttonBorderColor",e.ButtonBackgroundColor="buttonBackgroundColor"}(t.HostThemeButtonStyleKeys||(t.HostThemeButtonStyleKeys={})),function(e){e.HostButtonBorderColor="#86bfa0",e.HostButtonBackgroundColor="#d3f0e0"}(n||(n={})),function(e){e.HostButtonBorderColor="#a3bde3",e.HostButtonBackgroundColor="#d5e1f2"}(r||(r={})),function(e){e.HostButtonBorderColor="#f5ba9d",e.HostButtonBackgroundColor="#fcf0ed"}(o||(o={})),t.finalizeProperties=function(e,t){t=t||{};for(var n=Object.getOwnPropertyNames(e),r=n.length,o=0;o<r;o++){var i=n[o],a=Object.getOwnPropertyDescriptor(e,i);a.get||a.set||(a.writable=t.writable||!1),a.configurable=t.configurable||!1,a.enumerable=t.enumerable||!0,Object.defineProperty(e,i,a)}return e},t.defineEnumerableProperties=function(e,t){return function(e,t,n){for(var r in t=t||{})l(e,r,t[r],n);return e}(e,t,["enumerable"])},t.defineEnumerableProperty=function(e,t,n){return l(e,t,n,["enumerable"])},t.listContainsKey=function(e,t){for(var n in e)if(t==n)return!0;return!1},t.augmentList=function(e,t){var n=e.push?function(t,n){e.push(n)}:function(t,n){e[t]=n};for(var r in t)n(r,t[r])},t.createObject=function(e){var t=null;if(e){t={};for(var n=e.length,r=0;r<n;r++)t[e[r].name]=e[r].value}return t},t.listContainsValue=function(e,t){for(var n in e)if(t==e[n])return!0;return!1},t.shouldUseLocalStorageToPassMessage=function(){try{for(var e=["Windows NT 6.1","Windows NT 6.2","Windows NT 6.3","Windows NT 10.0"],t=window.navigator.userAgent,n=0,r=e.length;n<r;n++)if(t.indexOf(e[n])>-1)return i();return!1}catch(e){return u("Error happens in shouldUseLocalStorageToPassMessage.",e),!1}},t.isInternetExplorer=i,t.serializeObjectToString=a,t.formatString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e,r=n[0];return r.replace(/{(\d+)}/gm,(function(e,t){var r=parseInt(t,10)+1;return void 0===n[r]?"{"+t+"}":n[r]}))},t.addHostInfoAsQueryParam=function(e,t){if(!e)return null;var n,r="#",o=(e=e.trim()||"").split(r),i=o.shift(),a=o.join(r),s=i.split("?");return s.length>1?n=i+"&_host_Info="+t:s.length>0&&(n=i+"?_host_Info="+t),a?[n,r,a].join(""):n},t.getHostnamePortionForLogging=function(e){var t=e.split("."),n=t.length;return n>=2?t[n-2]+"."+t[n-1]:1==n?t[0]:void 0},t.shallowCopy=function(e){if(null==e)return null;if(e instanceof Object){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}var r=e.constructor();for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);return r}return e},t.getXdmEventName=function(t,n){return n==e.EventType.BindingSelectionChanged||n==e.EventType.BindingDataChanged||n==e.EventType.DataNodeDeleted||n==e.EventType.DataNodeInserted||n==e.EventType.DataNodeReplaced?t+"_"+n:n},t.getCommonUI=function(){switch(Office.context.host){case Office.HostType.Excel:return n;case Office.HostType.Word:return r;case Office.HostType.PowerPoint:return o}return null},t.getDomainForUrl=function(e){if(!e)return null;var t=document.createElement("a");return t.href=e,t.protocol+"//"+t.host},t.delayExecutionAndCache=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={calc:e[0]};return n.calc&&(n.val=n.calc.apply(this,e),delete n.calc),n.val};var s=-1;function l(e,t,n,r){for(var o in n=n||{},r){var i=r[o];null==n[i]&&(n[i]=!0)}return Object.defineProperty(e,t,n),e}function u(t,n){e.Utility.trace(t+" Exception details: "+a(n))}t.getUniqueId=function(){return(s+=1).toString()}}(e.OUtil||(e.OUtil={}))}(OSF||(OSF={})),function(e){!function(e){e.BindingType="bindingType",e.CoercionType="coercionType",e.ValueFormat="valueFormat",e.FilterType="filterType",e.Columns="columns",e.SampleData="sampleData",e.GoToType="goToType",e.SelectionMode="selectionMode",e.Id="id",e.PromptText="promptText",e.ItemName="itemName",e.FailOnCollision="failOnCollision",e.StartRow="startRow",e.StartColumn="startColumn",e.RowCount="rowCount",e.ColumnCount="columnCount",e.Rows="rows",e.OverwriteIfStale="overwriteIfStale",e.FileType="fileType",e.EventType="eventType",e.Handler="handler",e.SliceSize="sliceSize",e.SliceIndex="sliceIndex",e.ActiveView="activeView",e.Status="status",e.PlatformType="platformType",e.HostType="hostType",e.Email="email",e.OfficeTheme="officeTheme",e.DocumentTheme="documentTheme",e.ForceConsent="forceConsent",e.ForceAddAccount="forceAddAccount",e.AuthChallenge="authChallenge",e.AllowConsentPrompt="allowConsentPrompt",e.ForMSGraphAccess="forMSGraphAccess",e.AllowSignInPrompt="allowSignInPrompt",e.JsonPayload="jsonPayload",e.EnableNewHosts="enableNewHosts",e.AccountTypeFilter="accountTypeFilter",e.AddinTrustId="addinTrustId",e.Reserved="reserved",e.Tcid="tcid",e.Xml="xml",e.Namespace="namespace",e.Prefix="prefix",e.XPath="xPath",e.Text="text",e.ImageLeft="imageLeft",e.ImageTop="imageTop",e.ImageWidth="imageWidth",e.ImageHeight="imageHeight",e.TaskId="taskId",e.FieldId="fieldId",e.FieldValue="fieldValue",e.ServerUrl="serverUrl",e.ListName="listName",e.ResourceId="resourceId",e.ViewType="viewType",e.ViewName="viewName",e.GetRawValue="getRawValue",e.CellFormat="cellFormat",e.TableOptions="tableOptions",e.TaskIndex="taskIndex",e.ResourceIndex="resourceIndex",e.CustomFieldId="customFieldId",e.Url="url",e.MessageHandler="messageHandler",e.Width="width",e.Height="height",e.RequireHTTPs="requireHTTPS",e.DisplayInIframe="displayInIframe",e.HideTitle="hideTitle",e.UseDeviceIndependentPixels="useDeviceIndependentPixels",e.PromptBeforeOpen="promptBeforeOpen",e.EnforceAppDomain="enforceAppDomain",e.UrlNoHostInfo="urlNoHostInfo",e.Base64="base64",e.FormId="formId"}(e.ParameterNames||(e.ParameterNames={}))}(OSF||(OSF={})),function(e){!function(t){function n(t,n){var r=(new Date).getTime();return function(o){n.onReceiving&&n.onReceiving();var i=o.toArray?o.toArray()[0]:o;return n.onComplete&&n.onComplete(i),e.AppTelemetry&&e.AppTelemetry.onRegisterDone(t,n.dispId,Math.abs((new Date).getTime()-r),i),!0}}function r(e){var t=e;if(null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var o=0;o<n.length;o++)t[o]=r(n[o])}return t}t.executeAsync=function(t){try{t.onCalling&&t.onCalling(),e._OfficeAppFactory.getClientHostController().execute(t.dispId,function t(n){var r=n;if(e.OUtil.isArray(n))for(var o=r.length,i=0;i<o;i++)r[i]=t(r[i]);else if(e.OUtil.isDate(n))r=n.getVarDate();else if("object"==typeof n&&!e.OUtil.isArray(n))for(var a in r=[],n)e.OUtil.isFunction(n[a])||(r[a]=t(n[a]));return r}(t.hostCallArgs),(function(e,n){var o,i;if("number"==typeof e?(o=[],i=e):i=(o=e.toArray())[0],1==i)return null!=(a=r(a=o[1]))&&(t._chunkResultData||(t._chunkResultData=new Array),t._chunkResultData[a[0]]=a[1]),!1;if(t.onReceiving&&t.onReceiving(),t.onComplete){var a;if(0==i){if(o.length>2){a=[];for(var s=1;s<o.length;s++)a[s-1]=o[s]}else a=o[1];if(t._chunkResultData&&null!=(a=r(a))){var l=a[a.length-1];t._chunkResultData.length==l?a[a.length-1]=t._chunkResultData:i=5001}}else a=o[1];t.onComplete(i,a)}return!0}))}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.registerEventAsync=function(t){t.onCalling&&t.onCalling();var r=n(!0,t);try{e._OfficeAppFactory.getClientHostController().registerEvent(t.dispId,void 0,t.targetId,(function(n,r){t.onEvent&&t.onEvent(r),e.AppTelemetry&&e.AppTelemetry.onEventDone(t.dispId)}),r)}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.unregisterEventAsync=function(t){t.onCalling&&t.onCalling();var r=n(!1,t);try{e._OfficeAppFactory.getClientHostController().unregisterEvent(t.dispId,void 0,t.targetId,r)}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.onException=function(t,n){var r,o=t.number;if(o)switch(o){case-2146828218:r=7e3;break;case-2147467259:r=n.dispId==e.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:r=5010;break;case-2147208704:r=5100;break;case-2146827850:default:r=5001}n.onComplete&&n.onComplete(r||5001)},t.onExceptionSyncMethod=function(e,t){var n,r=e.number;if(r)switch(r){case-2146828218:n=7e3;break;case-2146827850:default:n=5001}return n||5001},t.getOnAfterRegisterEvent=n}(e.SafeArrayDelegate||(e.SafeArrayDelegate={}))}(OSF||(OSF={})),function(e){var t=function(){function t(e){this.m_settingsInstance=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.SettingsChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settings",{get:function(){return this.m_settingsInstance},enumerable:!0,configurable:!0}),t}();e.SettingsChangedEventArgs=t}(OSF||(OSF={})),function(e){var t=function(){function t(e,t){this._complexTypes=e,this.dynamicTypes=t}return t.prototype.addComplexType=function(e){this._complexTypes.push(e)},t.prototype.getDynamicType=function(e){return this.dynamicTypes[e]},t.prototype.setDynamicType=function(e,t){this.dynamicTypes[e]=t},t.prototype.isComplexType=function(t){return e.OUtil.listContainsValue(this._complexTypes,t)},t.prototype.isDynamicType=function(t){return e.OUtil.listContainsKey(this.dynamicTypes,t)},t.prototype.preserveNesting=function(e){return!1},t.prototype.pack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].toHost(t):t},t.prototype.unpack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].fromHost(t):t},t}();e.SpecialProcessor=t}(OSF||(OSF={}));__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){var t=function(t){function n(){var n={};return n[e.ParameterNames.Data]={toHost:function(t){if(e.TableDataProperties&&"string"!=typeof t&&void 0!==t[e.TableDataProperties.TableRows]){var n=[];n[0]=t[e.TableDataProperties.TableRows],n[1]=t[e.TableDataProperties.TableHeaders],t=n}return t},fromHost:function(t){var n;if(t.toArray)if(2===t.dimensions())n=e.Utility.twoDVBArrayToJaggedArray(t);else{var r=t.toArray();2===r.length&&(null!=r[0]&&r[0].toArray||null!=r[1]&&r[1].toArray)?((n={})[e.TableDataProperties.TableRows]=e.Utility.twoDVBArrayToJaggedArray(r[0]),n[e.TableDataProperties.TableHeaders]=e.Utility.twoDVBArrayToJaggedArray(r[1])):n=r}else n=t;return n}},t.call(this,[],n)||this}return __extends(n,t),n.prototype.unpack=function(t,n){var r;this.isComplexType(t)||e.ListType.isListType(t)?r=void 0!==n&&void 0!==n.toArray?n.toArray():n||{}:r=this.isDynamicType(t)?this.dynamicTypes[t].fromHost(n):n;return r},n}(e.SpecialProcessor);e.SafeArraySpecialProcessor=t}(OSF||(OSF={})),function(e){var t=function(){function t(t,n,r,o,i){this._requiredCount=t.length,this._apiMethods=new e.ApiMethodCall(t,n,r,o,i),this._supportedOptions=n}return t.prototype.verifyAndExtractCall=function(e,t,n){var r=this._apiMethods.extractRequiredArguments(e,t,n),o=this.extractOptions(e,r,t,n);return this._apiMethods.constructCallArgs(r,o,t,n)},t.prototype.extractOptions=function(t,n,r,o){if(t.length>this._requiredCount+1)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);for(var i,a=t.length-1;a>=this._requiredCount;a--){var s=t[a];switch(typeof s){case"object":if(i)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);i=s;break;default:throw e.Utility.createArgumentException(Strings.OfficeOM.L_InValidOptionalArgument)}}return i=this._apiMethods.fillOptions(i,n,r,o),this._apiMethods.verifyArguments(this._supportedOptions,i),i},t}();e.SyncMethodCall=t}(OSF||(OSF={})),function(e){!function(t){var n={};t.define=function(t){var r,o;n[t.method]=(o=(r=t).supportedOptions?e.OUtil.createObject(r.supportedOptions):[],new e.SyncMethodCall(r.requiredArguments||[],o,r.privateStateCallbacks,r.checkCallArgs,r.method.displayName))},t.get=function(e){return n[e]}}(e.SyncMethodCalls||(e.SyncMethodCalls={}))}(OSF||(OSF={})),function(e){e.SyncMethods={MessageParent:"messageParent",MessageChild:"messageChild",SendMessage:"sendMessage",AddMessageHandler:"addEventHandler"}}(OSF||(OSF={})),function(e){!function(t){!function(t){function n(t){for(var n=[{name:e.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent1,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent2,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent3,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent4,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent5,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent6,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Hyperlink,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.BodyLatinFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.BodyScriptFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,needToConvertToHex:!1}],r={},o=0;o<n.length;o++)n[o].needToConvertToHex?r[n[o].name]=e.OUtil.convertIntToCssHexColor(t[n[o].name]):r[n[o].name]=t[n[o].name];return r}function r(t){var n={};if(t){var r=e.DDA.Theming.OfficeThemeEnum,o={bodyBackgroundColor:{name:r.BodyBackgroundColor,convertToHex:!0},bodyForegroundColor:{name:r.BodyForegroundColor,convertToHex:!0},controlBackgroundColor:{name:r.ControlBackgroundColor,convertToHex:!0},controlForegroundColor:{name:r.ControlForegroundColor,convertToHex:!0},primaryFontColor:{name:r.BodyForegroundColor,convertToHex:!0},primaryBackgroundColor:{name:r.BodyBackgroundColor,convertToHex:!0},secondaryFontColor:{name:r.ControlForegroundColor,convertToHex:!0},secondaryBackgroundColor:{name:r.ControlBackgroundColor,convertToHex:!0},fluentThemeData:{name:r.FluentThemeData,convertToHex:!1}};for(var i in t){var a=!1,s=i;o[i]&&(s=o[i].name,a=o[i].convertToHex),n[s]=a?e.OUtil.convertIntToCssHexColor(t[i]):t[i]}null==n[r.IsDarkTheme]&&(n[r.IsDarkTheme]=e.DDA.Theming.GetIsDarkThemeFromCSSHexColor(n[r.BodyBackgroundColor])),null==n[r.ThemeId]&&(n[r.ThemeId]=n[r.IsDarkTheme]?e.DDA.Theming.ThemeId.Black:e.DDA.Theming.ThemeId.White)}return n}!function(e){e.PrimaryFontColor="primaryFontColor",e.PrimaryBackgroundColor="primaryBackgroundColor",e.SecondaryFontColor="secondaryFontColor",e.SecondaryBackgroundColor="secondaryBackgroundColor",e.Accent1="accent1",e.Accent2="accent2",e.Accent3="accent3",e.Accent4="accent4",e.Accent5="accent5",e.Accent6="accent6",e.Hyperlink="hyperlink",e.FollowedHyperlink="followedHyperlink",e.HeaderLatinFont="headerLatinFont",e.HeaderEastAsianFont="headerEastAsianFont",e.HeaderScriptFont="headerScriptFont",e.HeaderLocalizedFont="headerLocalizedFont",e.BodyLatinFont="bodyLatinFont",e.BodyEastAsianFont="bodyEastAsianFont",e.BodyScriptFont="bodyScriptFont",e.BodyLocalizedFont="bodyLocalizedFont"}(t.DocumentThemeEnum||(t.DocumentThemeEnum={})),function(e){e.BodyBackgroundColor="bodyBackgroundColor",e.BodyForegroundColor="bodyForegroundColor",e.ControlBackgroundColor="controlBackgroundColor",e.ControlForegroundColor="controlForegroundColor",e.IsDarkTheme="isDarkTheme",e.ThemeId="themeId",e.FluentThemeData="fluentThemeData"}(t.OfficeThemeEnum||(t.OfficeThemeEnum={})),function(e){e.PrimaryFontColor="primaryFontColor",e.PrimaryBackgroundColor="primaryBackgroundColor",e.SecondaryFontColor="secondaryFontColor",e.SecondaryBackgroundColor="secondaryBackgroundColor",e.IsDarkTheme="isDarkTheme",e.ThemeId="themeId"}(t.OfficeThemeEnumWac||(t.OfficeThemeEnumWac={})),function(e){e[e.Colorful=0]="Colorful",e[e.DarkGray=1]="DarkGray",e[e.Black=2]="Black",e[e.White=3]="White"}(t.ThemeId||(t.ThemeId={})),t.ConvertToDocumentTheme=n,t.GetIsDarkThemeFromCSSHexColor=function(e){var t="#"===e.charAt(0)?e.substring(1,7):e;return.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16)<186},t.ConvertToOfficeTheme=r;var o=function(t){var n=null,o=e._OfficeAppFactory.getHostInfo();n=o.hostPlatform==e.HostInfoPlatform.web?t:r(t);var i=e.DDA.Theming.OfficeThemeEnum;void 0===n[i.IsDarkTheme]&&(n.isDarkTheme=e.DDA.Theming.GetIsDarkThemeFromCSSHexColor(t[i.BodyBackgroundColor])),void 0===n[i.ThemeId]&&(n.themeId=n.isDarkTheme?e.DDA.Theming.ThemeId.Black:e.DDA.Theming.ThemeId.White),o.hostPlatform!=e.HostInfoPlatform.web&&"mac"!=o.hostPlatform.toLowerCase()&&"ios"!=o.hostPlatform.toLowerCase()||Office.context&&Office.context.officeTheme&&(Office.context.officeTheme.bodyBackgroundColor=n.bodyBackgroundColor,Office.context.officeTheme.bodyForegroundColor=n.bodyForegroundColor,Office.context.officeTheme.controlBackgroundColor=n.controlBackgroundColor,Office.context.officeTheme.controlForegroundColor=n.controlForegroundColor,Office.context.officeTheme.isDarkTheme=n.isDarkTheme,Office.context.officeTheme.themeId=n.themeId),e.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.OfficeThemeChanged},officeTheme:{value:n}})};t.OfficeThemeChangedEventArgs=o;var i=function(t){var r=n(t);e.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DocumentThemeChanged},documentTheme:{value:r}})};t.DocumentThemeChangedEventArgs=i}(t.Theming||(t.Theming={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){!function(t){var n=[];t.initialize=function(){n.forEach((function(t){t.defineMethodsFunc(),e.OUtil.getHostPlatform()==e.HostInfoPlatform.web?"function"==typeof t.defineWebParameterMapFunc&&t.defineWebParameterMapFunc():"function"==typeof t.defineSafeArrayParameterMapFunc&&t.defineSafeArrayParameterMapFunc(),"function"==typeof t.initializeFunc&&t.initializeFunc()}))},t.register=function(e){n.push(e)}}(e.V10ApiFeatureRegistry||(e.V10ApiFeatureRegistry={}))}(OSF||(OSF={})),function(e){!function(t){function n(t,n){var r=(new Date).getTime();return function(o,i){var a;if(n.onReceiving&&n.onReceiving(),0!=o)switch(o){case-5:a=7e3;break;default:a=5001}else a=i?i.Error?i.Error:0:5001;n.onComplete&&n.onComplete(a),e.AppTelemetry&&e.AppTelemetry.onRegisterDone(t,n.dispId,Math.abs((new Date).getTime()-r),a)}}t.version=1,function(e){e.Data="Data",e.Properties="Properties",e.BindingRequest="DdaBindingsMethod",e.BindingResponse="Bindings",e.SingleBindingResponse="singleBindingResponse",e.GetData="DdaGetBindingData",e.AddRowsColumns="DdaAddRowsColumns",e.SetData="DdaSetBindingData",e.ClearFormats="DdaClearBindingFormats",e.SetFormats="DdaSetBindingFormats",e.SettingsRequest="DdaSettingsMethod",e.BindingEventSource="ddaBinding",e.ArrayData="ArrayData"}(t.UniqueArguments||(t.UniqueArguments={})),t.executeAsync=function(t){t.hostCallArgs||(t.hostCallArgs={}),t.hostCallArgs.DdaMethod={ControlId:e._OfficeAppFactory.getId(),Version:e.WACDelegate.version,DispatchId:t.dispId},t.hostCallArgs.__timeout__=-1,t.onCalling&&t.onCalling(),e.getClientEndPoint()&&e.getClientEndPoint().invoke("executeMethod",(function(n,r){var o;if(t.onReceiving&&t.onReceiving(),0==n)e.WACDelegate.version=r.Version,o=r.Error;else switch(n){case-5:o=7e3;break;default:o=5001}t.onComplete&&t.onComplete(o,r)}),t.hostCallArgs)},t.getOnAfterRegisterEvent=n,t.registerEventAsync=function(t){t.onCalling&&t.onCalling(),e.getClientEndPoint()&&e.getClientEndPoint().registerForEvent(e.OUtil.getXdmEventName(t.targetId,t.eventType),(function(n){t.onEvent&&t.onEvent(n),e.AppTelemetry&&e.AppTelemetry.onEventDone(t.dispId)}),n(!0,t),{controlId:e._OfficeAppFactory.getId(),eventDispId:t.dispId,targetId:t.targetId})},t.unregisterEventAsync=function(t){t.onCalling&&t.onCalling(),e.getClientEndPoint()&&e.getClientEndPoint().unregisterForEvent(e.OUtil.getXdmEventName(t.targetId,t.eventType),n(!1,t),{controlId:e._OfficeAppFactory.getId(),eventDispId:t.dispId,targetId:t.targetId})}}(e.WACDelegate||(e.WACDelegate={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(){var n=[e.WACDelegate.UniqueArguments.SingleBindingResponse,e.WACDelegate.UniqueArguments.BindingRequest,e.WACDelegate.UniqueArguments.BindingResponse,e.WACDelegate.UniqueArguments.GetData,e.WACDelegate.UniqueArguments.AddRowsColumns,e.WACDelegate.UniqueArguments.SetData,e.WACDelegate.UniqueArguments.ClearFormats,e.WACDelegate.UniqueArguments.SetFormats,e.WACDelegate.UniqueArguments.SettingsRequest,e.WACDelegate.UniqueArguments.BindingEventSource];return t.call(this,n,{})||this}return __extends(n,t),n}(e.SpecialProcessor);e.WebSpecialProcessor=t}(OSF||(OSF={}));__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){!function(e){!function(e){!function(e){e._eventDispatches=[],e.addFromSelectionAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromSelectionAsync,arguments,this,void 0)},e.addFromNamedItemAsync=function(e,t,n,r){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromNamedItemAsync,arguments,this,void 0)},e.addFromPromptAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromPromptAsync,arguments,this,void 0)},e.getAllAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetAllAsync,arguments,this,void 0)},e.getByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetByIdAsync,arguments,this,void 0)},e.releaseByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseByIdAsync,arguments,this,void 0)}}(e.bindings||(e.bindings={}))}(e.document||(e.document={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){e.Id="BindingId",e.Type="bindingType",e.RowCount="RowCount",e.ColumnCount="BindingColumnCount",e.HasHeaders="HasHeaders"}(e.BindingProperties||(e.BindingProperties={})),function(e){e.BindingList="BindingList"}(e.ListDescriptors||(e.ListDescriptors={})),e.ListType.setListType(e.ListDescriptors.BindingList,e.PropertyDescriptors.BindingProperties),function(e){e.BindingSelectionChangedEvent="BindingSelectionChangedEvent"}(e.EventDescriptors||(e.EventDescriptors={})),function(e){!function(e){e.Id="BindingId",e.BindingType="BindingType",e.ItemName="ItemName",e.StartRow="StartRow",e.StartCol="StartCol",e.RowCount="RowCount",e.ColCount="ColCount"}(e.BindingParameterKeys||(e.BindingParameterKeys={})),function(e){e.TableHeaders="TableHeaders",e.TableRows="TableRows"}(e.TableBindingParameterKeys||(e.TableBindingParameterKeys={})),function(e){e.BindingId="Name",e.BindingType="BindingType",e[e.BindingProperties=0]="BindingProperties",e.BindingEventSource="ddaBinding",e.RowCount="RowCount",e.ColumnCount="ColCount",e.HasHeaders="HasHeaders"}(e.AppBindingKeys||(e.AppBindingKeys={})),function(e){e.TableSubset="subset",e.StartRow="startRow",e.StartColumn="startColumn",e.RowCount="rowCount",e.ColumnCount="columnCount"}(e.TableSubsetKeys||(e.TableSubsetKeys={})),function(e){e[e.Table=1]="Table",e[e.Text=2]="Text",e[e.Matrix=3]="Matrix"}(e.BindingType||(e.BindingType={}))}(e.Marshaling||(e.Marshaling={})),function(t){function n(t){return e.manufactureBinding(t,Office.context.document)}function r(e){return e.id}function o(t,n,r){var o=t[e.ParameterNames.Data];return e.TableDataProperties&&o&&(null!=o[e.TableDataProperties.TableRows]||null!=o[e.TableDataProperties.TableHeaders])&&(o=Office.manufactureTableData(o)),null==(o=e.DataCoercion.coerceData(o,r[e.ParameterNames.CoercionType]))?null:o}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.AddFromPromptAsync,requiredArguments:[{name:e.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:e.ParameterNames.Id,value:{types:["string"],calculate:l}},{name:e.ParameterNames.PromptText,value:{types:["string"],calculate:function(){return Strings.OfficeOM.L_AddBindingFromPromptDefaultText}}},{name:e.ParameterNames.SampleData,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:function(t){return e.manufactureBinding(t,Office.context.document)}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.AddFromSelectionAsync,requiredArguments:[{name:e.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:e.ParameterNames.Id,value:{types:["string"],calculate:l}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:n}),e.AsyncMethodCalls.define({method:e.AsyncMethods.AddFromNamedItemAsync,requiredArguments:[{name:e.ParameterNames.ItemName,types:["string"]},{name:e.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:e.ParameterNames.Id,value:{types:["string"],calculate:l}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[{name:e.ParameterNames.FailOnCollision,value:function(){return!0}}],onSucceeded:n}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetAllAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(t){return t[e.ListDescriptors.BindingList].map(n)}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetByIdAsync,requiredArguments:[{name:e.ParameterNames.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:n}),e.AsyncMethodCalls.define({method:e.AsyncMethods.ReleaseByIdAsync,requiredArguments:[{name:e.ParameterNames.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(t,n,r){var o=r[e.ParameterNames.Id];delete n._eventDispatches[o]}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetDataAsync,requiredArguments:[],supportedOptions:[{name:e.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(t,n){return e.DataCoercion.getCoercionDefaultForBinding(n.type)}}},{name:e.ParameterNames.ValueFormat,value:{enum:Office.ValueFormat,defaultValue:Office.ValueFormat.Unformatted}},{name:e.ParameterNames.FilterType,value:{enum:Office.FilterType,defaultValue:Office.FilterType.All}},{name:e.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:e.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.RowCount,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.ColumnCount,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(t,n,r){if(0==t[e.ParameterNames.StartRow]&&0==t[e.ParameterNames.StartColumn]&&0==t[e.ParameterNames.RowCount]&&0==t[e.ParameterNames.ColumnCount]&&(delete t[e.ParameterNames.StartRow],delete t[e.ParameterNames.StartColumn],delete t[e.ParameterNames.RowCount],delete t[e.ParameterNames.ColumnCount]),t[e.ParameterNames.CoercionType]!=e.DataCoercion.getCoercionDefaultForBinding(n.type)&&(t[e.ParameterNames.StartRow]||t[e.ParameterNames.StartColumn]||t[e.ParameterNames.RowCount]||t[e.ParameterNames.ColumnCount]))throw 1002;return t},privateStateCallbacks:[{name:e.ParameterNames.Id,value:r}],onSucceeded:o}),e.AsyncMethodCalls.define({method:e.AsyncMethods.SetDataAsync,requiredArguments:[{name:e.ParameterNames.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:e.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(t){return e.DataCoercion.determineCoercionType(t[e.ParameterNames.Data])}}},{name:e.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:e.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(t,n,r){if(0==t[e.ParameterNames.StartRow]&&0==t[e.ParameterNames.StartColumn]&&(delete t[e.ParameterNames.StartRow],delete t[e.ParameterNames.StartColumn]),t[e.ParameterNames.CoercionType]!=e.DataCoercion.getCoercionDefaultForBinding(n.type)&&(t[e.ParameterNames.StartRow]||t[e.ParameterNames.StartColumn]))throw 1002;return t},privateStateCallbacks:[{name:e.ParameterNames.Id,value:r}]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:"bindingSpecificData",fromHost:[{name:e.BindingProperties.RowCount,value:0},{name:e.BindingProperties.ColumnCount,value:1},{name:e.BindingProperties.HasHeaders,value:2}],isComplexType:!0}),e.HostParameterMap.define({type:e.PropertyDescriptors.Subset,toHost:[{name:"offset",value:0},{name:"run",value:1}],canonical:!0,isComplexType:!0}),e.HostParameterMap.define({type:"offset",toHost:[{name:e.ParameterNames.StartRow,value:0},{name:e.ParameterNames.StartColumn,value:1}],canonical:!0,isComplexType:!0}),e.HostParameterMap.define({type:"run",toHost:[{name:e.ParameterNames.RowCount,value:0},{name:e.ParameterNames.ColumnCount,value:1}],canonical:!0,isComplexType:!0}),e.HostParameterMap.define({type:"run",toHost:[{name:e.ParameterNames.RowCount,value:0},{name:e.ParameterNames.ColumnCount,value:1}],canonical:!0,isComplexType:!0}),e.HostParameterMap.define({type:79,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.Data,value:1}]}),e.HostParameterMap.define({type:73,toHost:[{name:e.ParameterNames.Id,value:0}]}),e.HostParameterMap.define({type:e.PropertyDescriptors.BindingProperties,fromHost:[{name:e.BindingProperties.Id,value:0},{name:e.BindingProperties.Type,value:1},{name:"bindingSpecificData",value:2}],isComplexType:!0}),e.HostParameterMap.define({type:e.ParameterNames.BindingType,toHost:[{name:Office.BindingType.Text,value:0},{name:Office.BindingType.Matrix,value:1},{name:Office.BindingType.Table,value:2}],invertible:!0}),e.HostParameterMap.define({type:66,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.BindingType,value:1}]}),e.HostParameterMap.define({type:78,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.ItemName,value:0},{name:e.ParameterNames.Id,value:1},{name:e.ParameterNames.BindingType,value:2},{name:e.ParameterNames.FailOnCollision,value:3}]}),e.HostParameterMap.define({type:67,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.BindingType,value:1},{name:e.ParameterNames.PromptText,value:2}]}),e.HostParameterMap.define({type:69,toHost:[{name:e.ParameterNames.Id,value:0}]}),e.HostParameterMap.define({type:68,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Id,value:0}]}),e.HostParameterMap.define({type:74,fromHost:[{name:e.ListDescriptors.BindingList,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:70,fromHost:[{name:e.ParameterNames.Data,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.CoercionType,value:1},{name:e.ParameterNames.ValueFormat,value:2},{name:e.ParameterNames.FilterType,value:3},{name:e.PropertyDescriptors.Subset,value:4}]}),e.HostParameterMap.define({type:71,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.CoercionType,value:1},{name:e.ParameterNames.Data,value:2},{name:"offset",value:3}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:72,toHost:[{name:e.WACDelegate.UniqueArguments.AddRowsColumns,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:79,toHost:[{name:e.WACDelegate.UniqueArguments.AddRowsColumns,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:73,toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.AddRowsColumns,toHost:[{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.Data,value:e.WACDelegate.UniqueArguments.Data}]}),e.HostParameterMap.define({type:e.PropertyDescriptors.Subset,fromHost:[{name:e.ParameterNames.StartRow,value:"StartRow"},{name:e.ParameterNames.StartColumn,value:"StartCol"},{name:e.ParameterNames.RowCount,value:"RowCount"},{name:e.ParameterNames.ColumnCount,value:"ColCount"}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.BindingRequest,toHost:[{name:e.ParameterNames.ItemName,value:"ItemName"},{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.BindingType,value:"BindingType"},{name:e.ParameterNames.PromptText,value:"PromptText"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.SampleData,value:"SampleData"},{name:e.ParameterNames.FailOnCollision,value:"FailOnCollision"}]}),e.HostParameterMap.addComplexType(e.PropertyDescriptors.BindingProperties),e.HostParameterMap.define({type:e.ParameterNames.BindingType,toHost:[{name:Office.BindingType.Text,value:2},{name:Office.BindingType.Matrix,value:3},{name:Office.BindingType.Table,value:1}],invertible:!0}),e.HostParameterMap.define({type:e.PropertyDescriptors.BindingProperties,fromHost:[{name:e.BindingProperties.Id,value:"Name"},{name:e.BindingProperties.Type,value:"BindingType"},{name:e.BindingProperties.RowCount,value:"RowCount"},{name:e.BindingProperties.ColumnCount,value:"ColCount"},{name:e.BindingProperties.HasHeaders,value:"HasHeaders"}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SingleBindingResponse,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:0}]}),e.HostParameterMap.define({type:66,fromHost:[{name:e.WACDelegate.UniqueArguments.SingleBindingResponse,value:e.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:67,fromHost:[{name:e.WACDelegate.UniqueArguments.SingleBindingResponse,value:e.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:78,fromHost:[{name:e.WACDelegate.UniqueArguments.SingleBindingResponse,value:e.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:69,toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:68,fromHost:[{name:e.WACDelegate.UniqueArguments.SingleBindingResponse,value:e.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:74,fromHost:[{name:e.ListDescriptors.BindingList,value:e.WACDelegate.UniqueArguments.BindingResponse}]}),e.HostParameterMap.define({type:70,fromHost:[{name:e.ParameterNames.Data,value:e.WACDelegate.UniqueArguments.Data}],toHost:[{name:e.WACDelegate.UniqueArguments.GetData,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:71,toHost:[{name:e.WACDelegate.UniqueArguments.SetData,value:e.HostParameterMap.self}]})},initializeFunc:function(){e.manufactureBinding=function(t,n){var r,o=t[e.BindingProperties.Id],i=t[e.BindingProperties.RowCount],a=t[e.BindingProperties.ColumnCount],s=t[e.BindingProperties.HasHeaders];switch(t[e.BindingProperties.Type]){case Office.BindingType.Text:r=new e.TextBinding(o,n);break;case Office.BindingType.Matrix:r=null,r=new e.MatrixBinding(o,n,i,a);break;case Office.BindingType.Table:r=new(e._OfficeAppFactory.getHostInfo().hostType==e.HostInfoHostType.excel&&Office.context.document&&e.ExcelTableBinding?e.ExcelTableBinding:e.TableBinding)(o,n,i,a,s);break;default:r=new e.UnknownBinding(o,n)}return r}}})}(e.Bindings||(e.Bindings={})),e.BindingEvents||(e.BindingEvents={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:e.EventDescriptors.BindingSelectionChangedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.WACDelegate.UniqueArguments.BindingEventSource},{name:e.PropertyDescriptors.Subset,value:e.PropertyDescriptors.Subset}]}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:e.EventDescriptors.BindingSelectionChangedEvent,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.WACDelegate.UniqueArguments.BindingEventSource}]})}});var t=function(){function t(e){this.m_id=e}return Object.defineProperty(t.prototype,"onFail",{get:function(){return this.m_errorCallback},set:function(t){var n=typeof t;if("undefined"!=n&&"function"!=n)throw e.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,n);this.m_errorCallback=t},enumerable:!0,configurable:!0}),t.prototype._fetch=function(t){if(this.m_binding)t&&t(this.m_binding);else if(!this.m_binding){var n=this;Office.context.document.bindings.getByIdAsync(this.m_id,(function(r){r.status==Office.AsyncResultStatus.Succeeded?(e.OUtil.defineEnumerableProperty(n,"binding",{value:r.value}),t&&t(n.m_binding)):n.onFail&&n.onFail(r)}))}return this},t.prototype.getDataAsync=function(){var e=arguments;return this._fetch((function(t){t.getDataAsync.apply(t,e)})),this},t.prototype.setDataAsync=function(){var e=arguments;return this._fetch((function(t){t.setDataAsync.apply(t,e)})),this},t.prototype.addHandlerAsync=function(){var e=arguments;return this._fetch((function(t){t.addHandlerAsync.apply(t,e)})),this},t.prototype.removeHandlerAsync=function(){var e=arguments;return this._fetch((function(t){t.removeHandlerAsync.apply(t,e)})),this},t.prototype.setTableOptionsAsync=function(){var e=arguments;return this._fetch((function(t){t.setTableOptionsAsync.apply(t,e)})),this},t.prototype.setFormatsAsync=function(){var e=arguments;return this._fetch((function(t){t.setFormatsAsync.apply(t,e)})),this},t.prototype.clearFormatsAsync=function(){var e=arguments;return this._fetch((function(t){t.clearFormatsAsync.apply(t,e)})),this},t}();e.BindingPromise=t;var n=function(){function e(e,t){this.m_id=e,this.m_docInstance=t}return Object.defineProperty(e.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),e}();e.UnknownBinding=n;var r=function(){function t(t,n){this.m_id=t,this.m_docInstance=n;var r=e.EventType,o=n.bindings._eventDispatches;o[t]||(o[t]=new e.EventDispatch([r.BindingSelectionChanged,r.BindingDataChanged]));var i=o[t];e.DispIdHost.addEventSupport(this,i)}return t.prototype.getDataAsync=function(t,n){e.DispIdHost.InvokeMethod(e.AsyncMethods.GetDataAsync,arguments,this,void 0)},t.prototype.setDataAsync=function(t,n,r){e.DispIdHost.InvokeMethod(e.AsyncMethods.SetDataAsync,arguments,this,void 0)},Object.defineProperty(t.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),t}();e.Binding=r;var o=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.m_rows=r,i.m_cols=o,i}return __extends(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return Office.BindingType.Matrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),t}(e.Binding);e.MatrixBinding=o;var i=function(t){function n(e,n,r,o,i){var a=t.call(this,e,n)||this;return a.m_rows=r,a.m_cols=o,a.m_hasHeaders=i,a}return __extends(n,t),Object.defineProperty(n.prototype,"type",{get:function(){return Office.BindingType.Table},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasHeaders",{get:function(){return!!this.m_hasHeaders&&this.m_hasHeaders},enumerable:!0,configurable:!0}),n.prototype.addRowsAsync=function(t,n,r){e.DispIdHost.InvokeMethod(e.AsyncMethods.AddRowsAsync,arguments,this,void 0)},n.prototype.addColumnsAsync=function(t,n,r){e.DispIdHost.InvokeMethod(e.AsyncMethods.AddColumnsAsync,arguments,this,void 0)},n.prototype.deleteAllDataValuesAsync=function(t,n){e.DispIdHost.InvokeMethod(e.AsyncMethods.DeleteAllDataValuesAsync,arguments,this,void 0)},n}(e.Binding);e.TableBinding=i;var a=function(t){function n(n,r,o,i,a){var s=t.call(this,n,r,o,i,a)||this;return e.OUtil.finalizeProperties(s),s}return __extends(n,t),n.prototype.clearFormatsAsync=function(t,n){e.DispIdHost.InvokeMethod(e.AsyncMethods.ClearFormatsAsync,arguments,this,void 0)},n.prototype.setTableOptionsAsync=function(t,n,r){e.DispIdHost.InvokeMethod(e.AsyncMethods.SetTableOptionsAsync,arguments,this,void 0)},n.prototype.setFormatsAsync=function(t,n,r){e.DispIdHost.InvokeMethod(e.AsyncMethods.SetFormatsAsync,arguments,this,void 0)},n}(e.TableBinding);e.ExcelTableBinding=a,function(t){function n(e){return e.id}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.AddRowsAsync,requiredArguments:[{name:e.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.AddColumnsAsync,requiredArguments:[{name:e.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.DeleteAllDataValuesAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]})}})}(e.TableBindingMethods||(e.TableBindingMethods={}));var s=function(e){function t(t,n){return e.call(this,t,n)||this}return __extends(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return Office.BindingType.Text},enumerable:!0,configurable:!0}),t}(e.Binding);function l(){return"UnnamedBinding_"+e.OUtil.getUniqueId()+"_"+(new Date).getTime()}e.TextBinding=s,e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.BindingSelectionChanged,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.BindingDataChanged,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:0},{name:e.PropertyDescriptors.Subset,value:1}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:e.EventDescriptors.BindingSelectionChangedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.WACDelegate.UniqueArguments.BindingEventSource},{name:e.PropertyDescriptors.Subset,value:e.PropertyDescriptors.Subset}]}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:e.EventDescriptors.BindingSelectionChangedEvent,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.WACDelegate.UniqueArguments.BindingEventSource}]})}})}(OSF||(OSF={})),function(e){!function(t){function n(t){if(null==t||null==t)return null;var n=null,r=typeof t;return void 0!==t.rows?n=Office.CoercionType.Table:e.OUtil.isArray(t)?n=Office.CoercionType.Matrix:("string"==r||"number"==r||"boolean"==r||e.OUtil.isDate(t))&&(n=Office.CoercionType.Text),n}function r(t,r,o){return(o=o||n(t))&&o!=r&&(t=function(t,n){var r;switch(t){case Office.CoercionType.Table:r=n;break;case Office.CoercionType.Matrix:r=function(e){var t=e.rows;null!=e.headers&&t.unshift(e.headers);return t}(n);break;case Office.CoercionType.SlideRange:e.manufactureSlideRange&&null==(r=e.manufactureSlideRange(i(n)))&&(r=i(n));break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:r=i(n)}return r}(r,function(e,t){null==t&&(t=n(e));var r;switch(t){case Office.CoercionType.Table:r=e;break;case Office.CoercionType.Matrix:r=new Office.TableData(e);break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:r=new Office.TableData(function(e){for(var t=e.split("\n"),n=0;n<t.length;n++)t[n]=t[n].split("\t");return t}(e))}return r}(t,o))),t}function o(e){if(1==e.length&&1==e[0].length)return""+e[0][0];for(var t="",n=0;n<e.length;n++)t+=e[n].join("\t")+"\n";return t.substring(0,t.length-1)}function i(e){var t="";null!=e.headers&&(t=o([e.headers])+"\n");var n=o(e.rows);return""==n&&(t=t.substring(0,t.length-1)),t+n}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.ParameterNames.CoercionType,toHost:[{name:Office.CoercionType.Text,value:0},{name:Office.CoercionType.Matrix,value:1},{name:Office.CoercionType.Table,value:2},{name:Office.CoercionType.Html,value:3},{name:Office.CoercionType.Ooxml,value:4},{name:Office.CoercionType.OoxmlPackage,value:5},{name:Office.CoercionType.PdfFile,value:6},{name:Office.CoercionType.SlideRange,value:7}]});var t=e._OfficeAppFactory.getHostInfo();t.hostPlatform!=e.HostInfoPlatform.win32&&t.hostPlatform!=e.HostInfoPlatform.mac&&t.hostPlatform!=e.HostInfoPlatform.ios&&t.hostPlatform!=e.HostInfoPlatform.android||(e.OUtil.augmentList(Office.CoercionType,{Image:"image"}),e.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),e.HostParameterMap.define({type:e.ParameterNames.CoercionType,toHost:[{name:"image",value:8},{name:"xmlSvg",value:9}]}));e.HostParameterMap.define({type:e.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),e.HostParameterMap.define({type:e.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})},defineWebParameterMapFunc:function(){e.OUtil.augmentList(Office.CoercionType,{Image:"image"}),e.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),e.HostParameterMap.define({type:e.ParameterNames.CoercionType,toHost:[{name:Office.CoercionType.Text,value:0},{name:Office.CoercionType.Matrix,value:1},{name:Office.CoercionType.Table,value:2},{name:Office.CoercionType.Html,value:3},{name:Office.CoercionType.Ooxml,value:4},{name:Office.CoercionType.OoxmlPackage,value:5},{name:Office.CoercionType.PdfFile,value:6},{name:Office.CoercionType.SlideRange,value:7},{name:"image",value:8},{name:"xmlSvg",value:9}]}),e.HostParameterMap.define({type:e.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),e.HostParameterMap.define({type:e.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})}}),t.findArrayDimensionality=function t(n){if(e.OUtil.isArray(n)){for(var r=0,o=0;o<n.length;o++)r=Math.max(r,t(n[o]));return r+1}return 0},t.getCoercionDefaultForBinding=function(e){switch(e){case Office.BindingType.Matrix:return Office.CoercionType.Matrix;case Office.BindingType.Table:return Office.CoercionType.Table;case Office.BindingType.Text:default:return Office.CoercionType.Text}},t.getBindingDefaultForCoercion=function(e){switch(e){case Office.CoercionType.Matrix:return Office.BindingType.Matrix;case Office.CoercionType.Table:return Office.BindingType.Table;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:return Office.BindingType.Text}},t.determineCoercionType=n,t.coerceData=r,t.serializeDynamicData=function(t){if(null!=t&&void 0!==t.rows){var n={};n[e.TableDataProperties.TableRows]=t.rows,n[e.TableDataProperties.TableHeaders]=t.headers,t=n}var r;if(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web)return"string"!=typeof t&&void 0!==t[e.TableDataProperties.TableRows]?((r={}).Rows=t[e.TableDataProperties.TableRows],r.Headers=t[e.TableDataProperties.TableHeaders],t=r):e.DataCoercion.determineCoercionType(t)==Office.CoercionType.Text&&(t=[[t]]),t;if(e.TableDataProperties&&"string"!=typeof t&&void 0!==t[e.TableDataProperties.TableRows]){(r=[])[0]=t[e.TableDataProperties.TableRows],r[1]=t[e.TableDataProperties.TableHeaders],t=r}return t},t.deserializeDynamicData=function(t,n){var o=null;if(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web)null!=t.Rows?((o={})[e.TableDataProperties.TableRows]=t.Rows,o[e.TableDataProperties.TableHeaders]=t.Headers):o=t,!o||null==o[e.TableDataProperties.TableRows]&&null==o[e.TableDataProperties.TableHeaders]||(o=Office.manufactureTableData(o)),o=r(o,n);else{if(2===t.length){(o={})[e.TableDataProperties.TableRows]=t[0],o[e.TableDataProperties.TableHeaders]=t[1],o=Office.manufactureTableData(o)}else o=t;o=r(o,n)}return o}}(e.DataCoercion||(e.DataCoercion={}))}(OSF||(OSF={})),function(e){!function(e){!function(e){e.CoercionType="CoerceType"}(e.GetDataKeys||(e.GetDataKeys={})),function(e){e.CoercionType="CoerceType",e.Data="Data",e.ImageLeft="ImageLeft",e.ImageTop="ImageTop",e.ImageWidth="ImageWidth",e.ImageHeight="ImageHeight"}(e.SetDataKeys||(e.SetDataKeys={})),function(e){e.Html="html",e.Ooxml="ooxml",e.SlideRange="slideRange",e.Text="text",e.Table="table",e.Matrix="matrix",e.Image="image",e.XmlSvg="xmlSvg"}(e.CoercionTypeKeys||(e.CoercionTypeKeys={}))}(e.Marshaling||(e.Marshaling={})),e.DataIO||(e.DataIO={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.GetData,toHost:[{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.CoercionType,value:"CoerceType"},{name:e.ParameterNames.ValueFormat,value:"ValueFormat"},{name:e.ParameterNames.FilterType,value:"FilterType"},{name:e.ParameterNames.Rows,value:"Rows"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.StartRow,value:"StartRow"},{name:e.ParameterNames.StartColumn,value:"StartCol"},{name:e.ParameterNames.RowCount,value:"RowCount"},{name:e.ParameterNames.ColumnCount,value:"ColCount"}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SetData,toHost:[{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.CoercionType,value:"CoerceType"},{name:e.ParameterNames.Data,value:e.WACDelegate.UniqueArguments.Data},{name:e.ParameterNames.Rows,value:"Rows"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.StartRow,value:"StartRow"},{name:e.ParameterNames.StartColumn,value:"StartCol"},{name:e.ParameterNames.ImageLeft,value:"ImageLeft"},{name:e.ParameterNames.ImageTop,value:"ImageTop"},{name:e.ParameterNames.ImageWidth,value:"ImageWidth"},{name:e.ParameterNames.ImageHeight,value:"ImageHeight"}]})}})}(OSF||(OSF={})),function(e){!function(e){!function(e){e.MessageType="messageType",e.MessageContent="messageContent",e.MessageOrigin="messageOrigin"}(e.DialogMessageReceivedEventKeys||(e.DialogMessageReceivedEventKeys={})),function(e){e.MessageType="messageType",e.MessageContent="messageContent",e.MessageOrigin="messageOrigin"}(e.DialogParentMessageReceivedEventKeys||(e.DialogParentMessageReceivedEventKeys={})),function(e){e.MessageToParent="messageToParent",e.TargetOrigin="targetOrigin"}(e.MessageParentKeys||(e.MessageParentKeys={})),function(e){e.DialogNotificationShown="dialogNotificationShown"}(e.DialogNotificationShownEventType||(e.DialogNotificationShownEventType={})),function(e){e.MessageContent="messageContent",e.TargetOrigin="targetOrigin"}(e.SendMessageKeys||(e.SendMessageKeys={}))}(e.Marshaling||(e.Marshaling={}))}(OSF||(OSF={})),function(e){var t;!function(e){e.DialogParentMessageReceivedEvent="DialogParentMessageReceivedEvent",e.DialogMessageReceivedEvent="DialogMessageReceivedEvent"}(e.EventDescriptors||(e.EventDescriptors={})),e.DialogParentMessageEventDispatch=new e.EventDispatch([e.EventType.DialogParentMessageReceived,e.EventType.DialogParentEventReceived]),t||(t={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.DisplayDialogAsync,requiredArguments:[{name:e.ParameterNames.Url,types:["string"]}],supportedOptions:[{name:e.ParameterNames.Width,value:{types:["number"],defaultValue:99}},{name:e.ParameterNames.Height,value:{types:["number"],defaultValue:99}},{name:e.ParameterNames.RequireHTTPs,value:{types:["boolean"],defaultValue:!0}},{name:e.ParameterNames.DisplayInIframe,value:{types:["boolean"],defaultValue:!1}},{name:e.ParameterNames.HideTitle,value:{types:["boolean"],defaultValue:!1}},{name:e.ParameterNames.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:!1}},{name:e.ParameterNames.PromptBeforeOpen,value:{types:["boolean"],defaultValue:!0}},{name:e.ParameterNames.EnforceAppDomain,value:{types:["boolean"],defaultValue:!0}},{name:e.ParameterNames.UrlNoHostInfo,value:{types:["boolean"],defaultValue:!1}}],privateStateCallbacks:[],onSucceeded:function(t,n,r){var o=t[e.ParameterNames.Id],i=t[e.ParameterNames.Data],a={},s=e.AsyncMethods.CloseAsync;e.OUtil.defineEnumerableProperty(a,s,{value:function(){var t=e.DispIdHost.CloseDialog;t(arguments,o,i,a)}});var l=e.SyncMethods.AddMessageHandler;if(e.OUtil.defineEnumerableProperty(a,l,{value:function(){var t=e.SyncMethodCalls.get(e.SyncMethods.AddMessageHandler),n=t.verifyAndExtractCall(arguments,a,i),r=n[e.ParameterNames.EventType],o=n[e.ParameterNames.Handler];return i.addEventHandlerAndFireQueuedEvent(r,o)}}),!0===e.EnableSendMessageDialogAPI){var u=e.SyncMethods.SendMessage;e.OUtil.defineEnumerableProperty(a,u,{value:function(){var t=e.DispIdHost.SendMessage;return t(arguments,i,a)}})}if(!0===e.EnableMessageChildDialogAPI){var c=e.SyncMethods.MessageChild;e.OUtil.defineEnumerableProperty(a,c,{value:function(){var t=e.DispIdHost.SendMessage;return t(arguments,i,a)}})}return a},checkCallArgs:function(t,n,r){return t[e.ParameterNames.Width]<=0&&(t[e.ParameterNames.Width]=1),!t[e.ParameterNames.UseDeviceIndependentPixels]&&t[e.ParameterNames.Width]>100&&(t[e.ParameterNames.Width]=99),t[e.ParameterNames.Height]<=0&&(t[e.ParameterNames.Height]=1),!t[e.ParameterNames.UseDeviceIndependentPixels]&&t[e.ParameterNames.Height]>100&&(t[e.ParameterNames.Height]=99),t[e.ParameterNames.RequireHTTPs]||(t[e.ParameterNames.RequireHTTPs]=!0),t}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),e.SyncMethodCalls.define({method:e.SyncMethods.MessageParent,requiredArguments:[{name:e.ParameterNames.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[{name:e.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}]}),e.SyncMethodCalls.define({method:e.SyncMethods.AddMessageHandler,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:e.ParameterNames.Handler,types:["function"]}],supportedOptions:[]}),e.SyncMethodCalls.define({method:e.SyncMethods.SendMessage,requiredArguments:[{name:e.ParameterNames.MessageContent,types:["string"]}],supportedOptions:[{name:e.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:e.EventDescriptors.DialogMessageReceivedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:e.PropertyDescriptors.MessageType,value:0},{name:e.PropertyDescriptors.MessageContent,value:1},{name:e.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:e.EventDescriptors.DialogParentMessageReceivedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:e.PropertyDescriptors.MessageType,value:0},{name:e.PropertyDescriptors.MessageContent,value:1},{name:e.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:e.EventDescriptors.DialogMessageReceivedEvent,value:e.HostParameterMap.self}]}),e.HostParameterMap.addComplexType(e.EventDescriptors.DialogMessageReceivedEvent),e.HostParameterMap.define({type:e.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:e.PropertyDescriptors.MessageType,value:e.Marshaling.DialogMessageReceivedEventKeys.MessageType},{name:e.PropertyDescriptors.MessageContent,value:e.Marshaling.DialogMessageReceivedEventKeys.MessageContent},{name:e.PropertyDescriptors.MessageOrigin,value:e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),e.HostParameterMap.define({type:e.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:e.EventDescriptors.DialogParentMessageReceivedEvent,value:e.HostParameterMap.self}]}),e.HostParameterMap.addComplexType(e.EventDescriptors.DialogParentMessageReceivedEvent),e.HostParameterMap.define({type:e.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:e.PropertyDescriptors.MessageType,value:e.Marshaling.DialogParentMessageReceivedEventKeys.MessageType},{name:e.PropertyDescriptors.MessageContent,value:e.Marshaling.DialogParentMessageReceivedEventKeys.MessageContent},{name:e.PropertyDescriptors.MessageOrigin,value:e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),e.HostParameterMap.define({type:144,toHost:[{name:e.ParameterNames.MessageToParent,value:e.Marshaling.MessageParentKeys.MessageToParent},{name:e.ParameterNames.TargetOrigin,value:e.Marshaling.MessageParentKeys.TargetOrigin}]}),e.HostParameterMap.define({type:145,toHost:[{name:e.ParameterNames.MessageContent,value:e.Marshaling.SendMessageKeys.MessageContent},{name:e.ParameterNames.TargetOrigin,value:e.Marshaling.MessageParentKeys.TargetOrigin}]})},initializeFunc:function(){var t=e.OUtil.isPopupWindow();e.EnableMessageChildDialogAPI=!0,"onenote"==e._OfficeAppFactory.getHostInfo().hostType?e.EnableSendMessageDialogAPI=!1:e.EnableSendMessageDialogAPI=!0;var n=Office.context.ui;if(e.OUtil.isDialog()){var r=e.SyncMethods.MessageParent;n[r]||e.OUtil.defineEnumerableProperty(n,r,{value:function(){var t=e.DispIdHost.MessageParent;return t(arguments,n)}});var o=e.SyncMethods.AddMessageHandler;n[o]||void 0===e.DialogParentMessageEventDispatch||e.DispIdHost.addEventSupport(n,e.DialogParentMessageEventDispatch,t),t&&e.WacDialogAction.registerMessageReceivedEvent()}else{var i;i=null!=e.EventType.DialogParentMessageReceived?new e.EventDispatch([e.EventType.DialogMessageReceived,e.EventType.DialogEventReceived,e.EventType.DialogParentMessageReceived]):new e.EventDispatch([e.EventType.DialogMessageReceived,e.EventType.DialogEventReceived]);var a=e.AsyncMethods.DisplayDialogAsync;n[a]||e.OUtil.defineEnumerableProperty(n,a,{value:function(){var t=e.DispIdHost.OpenDialog;t(arguments,i,n)}})}e.OUtil.finalizeProperties(n)}})}(OSF||(OSF={}));var OfficeExt,Office,DialogApiManager=function(){function e(){}return e.messageChildRichApiBridge=function(){if(!0===OSF.EnableMessageChildDialogAPI){var e=OSF.DispIdHost.SendMessage;return e(arguments,null,null)}},e}();__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){!function(e){e.Url="url",e.Width="width",e.Height="height",e.DisplayInIframe="displayInIframe",e.HideTitle="hideTitle",e.UseDeviceIndependentPixels="useDeviceIndependentPixels",e.PromptBeforeOpen="promptBeforeOpen",e.EnforceAppDomain="enforceAppDomain",e.UrlNoHostInfo="urlNoHostInfo",e.TargetOrigin="targetOrigin"}(e.ShowWindowDialogParameterKeys||(e.ShowWindowDialogParameterKeys={})),function(e){var t="excel",n="word",r="powerpoint",o="outlook",i="visio";e.getDialogCssManager=function(e){switch(e){case t:case n:case r:case o:case i:default:return new a}};var a=function(){function e(){this.overlayElementCSS=["position: absolute","top: 0","left: 0","width: 100%","height: 100%","background-color: rgba(198, 198, 198, 0.5)","z-index: 99998"],this.dialogNotificationPanelCSS=["width: 100%","height: 190px","position: absolute","z-index: 99999","background-color: rgba(255, 255, 255, 1)","left: 0px","top: 50%","margin-top: -95px"],this.newWindowNotificationTextPanelCSS=["margin: 20px 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","font-size: 14px","height: 100px","line-height: 100px"],this.newWindowNotificationTextSpanCSS=["display: inline-block","line-height: normal","vertical-align: middle"],this.crossZoneNotificationTextPanelCSS=["margin: 20px 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","font-size: 14px","height: 100px"],this.dialogNotificationButtonPanelCSS="margin:0px 9px",this.buttonStyleCSS=["text-align: center","width: 70px","height: 25px","font-size: 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","margin: 0px 5px","border-width: 1px","border-style: solid"]}return e.prototype.getOverlayElementCSS=function(){return this.overlayElementCSS.join(";")},e.prototype.getDialogNotificationPanelCSS=function(){return this.dialogNotificationPanelCSS.join(";")},e.prototype.getNewWindowNotificationTextPanelCSS=function(){return this.newWindowNotificationTextPanelCSS.join(";")},e.prototype.getNewWindowNotificationTextSpanCSS=function(){return this.newWindowNotificationTextSpanCSS.join(";")},e.prototype.getCrossZoneNotificationTextPanelCSS=function(){return this.crossZoneNotificationTextPanelCSS.join(";")},e.prototype.getDialogNotificationButtonPanelCSS=function(){return this.dialogNotificationButtonPanelCSS},e.prototype.getDialogButtonCSS=function(){return this.buttonStyleCSS.join(";")},e}();e.DefaultDialogCSSManager=a}(e.WacCommonUICssManager||(e.WacCommonUICssManager={})),function(t){var n=null,r=null,o=null,i=null,a="osfDialogInternal:action=closeDialog",s=null,l=!1,u=-1,c="messageParentKey",p=null,f="#ababab",h="#ffffff",d="newWindowNotificaiton",y="configureBrowserLink",m="dialogNotificationTextPanel",g={dispId:e.EventDispId.dispidDialogNotificationShownInAddinEvent,eventType:e.Marshaling.DialogNotificationShownEventType.DialogNotificationShown,onComplete:null,onCalling:null};function _(t,n){var r=n.message,o=n.targetOrigin;if(o)t.postMessage(r,o);else{var i=e._OfficeAppFactory.getOfficeAppContext().get_appDomains(),a=window.location.origin;if(a||(a=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),i)for(var s=0;s<i.length&&-1!==i[s].indexOf("://");s++)t.postMessage(r,i[s]);e.XdmCommunicationManager.checkUrlWithAppDomains(i,a)||t.postMessage(r,a)}}function b(){try{i&&i.id==d&&s&&s(12009)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during executing displayDialogAsync callback."+t)}R()}function v(t,n){var r=!1,a=e.WacCommonUICssManager.getDialogCssManager(n);o=T(a),document.body.insertBefore(o,document.body.firstChild),(i=function(t,n){var r=document.createElement("div");r.style.cssText=t.getDialogNotificationPanelCSS(),F(r);var o=document.createElement("div");o.style.cssText=t.getCrossZoneNotificationTextPanelCSS(),o.id=m;var i=document.createElement("a");i.id=y,i.href="#",i.innerText=Strings.OfficeOM.L_NewWindowCrossZoneConfigureBrowserLink,i.setAttribute("onclick","window.open('https://support.microsoft.com/en-us/help/17479/windows-internet-explorer-11-change-security-privacy-settings', '_blank', 'fullscreen=1')");var a=document.createElement("span");if(Strings.OfficeOM.L_NewWindowCrossZone){var s=Strings.OfficeOM.L_NewWindowCrossZone.replace(/{1+}/gm,e.OUtil.getDomainForUrl(n)).split("{0}");a.appendChild(document.createTextNode(s[0])),a.appendChild(i),a.appendChild(document.createTextNode(s[1]))}return o.appendChild(a),r.appendChild(o),r}(a,t)).id="crossZoneNotification";var s=I(a),u=P(a,Strings.OfficeOM.L_DialogOK?Strings.OfficeOM.L_DialogOK:"OK");s.appendChild(u),i.appendChild(s),document.body.insertBefore(i,document.body.firstChild),l=!0,u.onclick=function(){R()},u.addEventListener("keydown",(function(e){9==e.keyCode?(document.getElementById(y).focus(),e.preventDefault(),e.stopPropagation()):13==e.keyCode&&(r=!0,e.preventDefault(),e.stopPropagation())}),!1),u.addEventListener("keyup",(function(e){13==e.keyCode&&r&&(r=!1,R(),e.preventDefault(),e.stopPropagation())}),!1),document.getElementById(y).addEventListener("keydown",(function(e){9==e.keyCode&&(u.focus(),e.preventDefault(),e.stopPropagation())}),!1),window.focus(),u.focus()}function O(t){if(t.source==n)try{var o=t.origin;if(!function(t,n,r){if(void 0===r&&(r=!0),!t||!n)return!1;var o=e.OUtil.parseUrl(t),i=e.OUtil.parseUrl(n),a=e._OfficeAppFactory.getOfficeAppContext().get_appDomains();if("https:"!==o.protocol)return!1;var s=o.protocol===i.protocol&&o.hostname===i.hostname&&o.port===i.port,l=e.XdmCommunicationManager.checkUrlWithAppDomains(a,t),u=s||l;return!u&&r&&(u=e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(n,t)),u}(o,e._OfficeAppFactory.getOfficeAppContext().get_docUrl(),!0))throw new Error("Received a message from a dialog with an untrusted domain.");var i={};i[e.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,i[e.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=t.data,i[e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=o,r(i)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during receive message handler."+t)}}function C(t){var n=e._OfficeAppFactory.getId()+c;if(t.key==n)try{var o={};o[e.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,o[e.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=t.newValue,o[e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=t.origin,r(o)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during storage changed handler."+t)}}function S(t){var o=e._OfficeAppFactory.getHostInfo(),i=[o.hostType,o.hostPlatform,o.hostSpecificFileVersion,o.hostLocale,o.osfControlAppCorrelationId,"isDialog",o.disableLogging?"disableLogging":"",o.flags&e.HostInfoFlags.PublicAddin].join("$"),a=e._OfficeAppFactory.getOfficeAppContext();a.set_taskpaneUrl(window.location.origin),a.get_taskpaneUrl()||a.set_taskpaneUrl(window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var l=t.url;t[e.ShowWindowDialogParameterKeys.UrlNoHostInfo]||(l=e.OUtil.addHostInfoAsQueryParam(l,i));var c=JSON.parse(window.name);c.hostInfo=i;var p=__assign({},a);if(p._appName===e.AppName.ExcelWebApp){if(!p._settings&&p._settingsFunc){var f=p._settingsFunc();p._settings=Object.keys(f).map((function(e){return[e,f[e]]}))}if(!p._hostSettings&&p._hostSettingsFunc){var h=p._hostSettingsFunc();p._hostSettings=Object.keys(h).map((function(e){return[e,h[e]]}))}c.appContext=p}else c.appContext=a;var d=t[e.ShowWindowDialogParameterKeys.Width]*screen.width/100,y=t[e.ShowWindowDialogParameterKeys.Height]*screen.height/100,m="width="+d+", height="+y+", left="+(a.get_clientWindowWidth()/2-d/2)+", top="+(a.get_clientWindowHeight()/2-y/2)+",channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no";if(null==(n=window.open(l,e.OUtil.serializeObjectToString(c),m)))return e.AppTelemetry.logAppCommonMessage("Encountered cross zone issue in displayDialogAsync api."),x(),v(l,o.hostType),void s(12011);e.OUtil.shouldUseLocalStorageToPassMessage()?window.addEventListener("storage",C):window.addEventListener("message",O),u=window.setInterval((function(){try{if(null==n||n.closed){window.clearInterval(u),e.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",C):window.removeEventListener("message",O);var t={};t[e.Marshaling.DialogMessageReceivedEventKeys.MessageType]=12006,r(t)}}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during check or handle window close."+t)}}),1e3),null!=s?s(0):e.AppTelemetry&&e.AppTelemetry.logAppException("showDialogCallback can not be null.")}function P(e,t){var n=document.createElement("input");n.setAttribute("type","button"),n.style.cssText=e.getDialogButtonCSS(),n.style.borderColor=f,n.style.backgroundColor=h,n.setAttribute("value",t);var r=function(){A(n)},o=function(){E(n)};return n.addEventListener("mouseover",r),n.addEventListener("focus",r),n.addEventListener("mouseout",o),n.addEventListener("focusout",o),n}function A(t){null!=p?(t.style.borderColor=p.HostButtonBorderColor,t.style.backgroundColor=p.HostButtonBackgroundColor):e.OUtil.getCommonUI()?(t.style.borderColor=e.OUtil.getCommonUI().HostButtonBorderColor,t.style.backgroundColor=e.OUtil.getCommonUI().HostButtonBackgroundColor):t.style.backgroundColor="#ccc"}function E(e){e.style.borderColor=f,e.style.backgroundColor=h}function R(){g.onCalling=function(e){x(),w(e)},e.WACDelegate.unregisterEventAsync(g)}function x(){null!=i&&(document.body.removeChild(i),i=null),null!=o&&(document.body.removeChild(o),o=null)}function T(e){var t=document.createElement("div");return t.style.cssText=e.getOverlayElementCSS(),t}function I(e){var t=document.createElement("div");return t.style.cssText=e.getDialogNotificationButtonPanelCSS(),"rtl"==document.documentElement.getAttribute("dir")?t.style.cssFloat="left":t.style.cssFloat="right",t}function w(t){if(0!=t){var n=document.querySelectorAll(e._OfficeAppFactory.getInitializationHelper().getTabbableElements());e.OUtil.focusToFirstTabbable(n,!1)}}function F(e){e.setAttribute("role","dialog"),e.setAttribute("aria-describedby",m)}t.setHostThemeButtonStyle=function(t){var n=t.input;null!=n&&(p={HostButtonBorderColor:n[e.OUtil.HostThemeButtonStyleKeys.ButtonBorderColor],HostButtonBackgroundColor:n[e.OUtil.HostThemeButtonStyleKeys.ButtonBackgroundColor]}),t.completed()},t.removeEventListenersForDialog=function(t){!function(t){var n=this,r=function(){e._OfficeAppFactory.getWebAppState().focused||(e._OfficeAppFactory.getWebAppState().focused=!0),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.Select])},o=function(){e&&(e._OfficeAppFactory.getWebAppState().focused&&(e._OfficeAppFactory.getWebAppState().focused=!1),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.UnSelect]))},i=function(t){if(t.preventDefault=t.preventDefault||function(){t.returnValue=!1},117==t.keyCode&&(t.ctrlKey||t.metaKey)){t.preventDefault();var r=e.AgaveHostAction.CtrlF6Exit;t.shiftKey&&(r=e.AgaveHostAction.CtrlF6ExitShift),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,r])}else if(9==t.keyCode){t.preventDefault();var o=document.querySelectorAll(n._tabbableElements);e.OUtil.focusToNextTabbable(o,t.target||t.srcElement,t.shiftKey)||(n._hostInfo.isDialog?e.OUtil.focusToFirstTabbable(o,t.shiftKey):t.shiftKey?e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.TabExitShift]):e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.TabExit]))}else if(27==t.keyCode)t.preventDefault(),b(),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.EscExit]);else if(113==t.keyCode)t.preventDefault(),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.F2Exit]);else if((t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)&&t.keyCode>=1&&t.keyCode<=255){var i={keyCode:t.keyCode,shiftKey:t.shiftKey,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey};e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.KeyboardShortcuts,i])}},a=function(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)};t?(e.OUtil.addEventListener(window,"focus",r),e.OUtil.addEventListener(window,"blur",o),e.OUtil.addEventListener(window,"keydown",i),e.OUtil.addEventListener(window,"keypress",a)):(e.OUtil.removeEventListener(window,"focus",r),e.OUtil.removeEventListener(window,"blur",o),e.OUtil.removeEventListener(window,"keydown",i),e.OUtil.removeEventListener(window,"keypress",a))}(!1),t.completed()},t.handleNewWindowDialog=function(t){try{if(!function(t){var n=e._OfficeAppFactory.getOfficeAppContext().get_appDomains(),r=t.url,o=e.XdmCommunicationManager.checkUrlWithAppDomains(n,r);if(!o)return e._OfficeAppFactory.getOfficeAppContext().get_docUrl()&&e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(e._OfficeAppFactory.getOfficeAppContext().get_docUrl(),r);return o}(t))return void s(12004);if(!t[e.ShowWindowDialogParameterKeys.PromptBeforeOpen])return void S(t);l=!1;var n=!1,r=e._OfficeAppFactory.getHostInfo(),a=e.WacCommonUICssManager.getDialogCssManager(r.hostType),u=e.OUtil.formatString(Strings.OfficeOM.L_ShowWindowDialogNotification,e._OfficeAppFactory.getOfficeAppContext().get_addinName());o=T(a),document.body.insertBefore(o,document.body.firstChild),(i=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),F(n);var r=document.createElement("div");r.style.cssText=e.getNewWindowNotificationTextPanelCSS(),r.id=m,"rtl"==document.documentElement.getAttribute("dir")?r.style.paddingRight="30px":r.style.paddingLeft="30px";var o=document.createElement("span");return o.style.cssText=e.getNewWindowNotificationTextSpanCSS(),o.innerText=t,r.appendChild(o),n.appendChild(r),n}(a,u)).id=d;var c=I(a),p=P(a,Strings.OfficeOM.L_ShowWindowDialogNotificationAllow),f=P(a,Strings.OfficeOM.L_ShowWindowDialogNotificationIgnore);function h(t){g.onCalling=function(e){x(),w(e),s(12009)},e.WACDelegate.unregisterEventAsync(g),t.preventDefault(),t.stopPropagation()}c.appendChild(p),c.appendChild(f),i.appendChild(c),document.body.insertBefore(i,document.body.firstChild),p.onclick=function(e){S(t),l||R(),e.preventDefault(),e.stopPropagation()},f.onclick=h,p.addEventListener("keydown",(function(e){e.shiftKey&&9==e.keyCode&&(E(p),A(f),f.focus(),e.preventDefault(),e.stopPropagation())}),!1),f.addEventListener("keydown",(function(e){e.shiftKey||9!=e.keyCode?13==e.keyCode&&(n=!0,e.preventDefault(),e.stopPropagation()):(E(f),A(p),p.focus(),e.preventDefault(),e.stopPropagation())}),!1),f.addEventListener("keyup",(function(e){13==e.keyCode&&n&&(n=!1,h(e))}),!1),window.focus(),g.onCalling=function(e){p.focus()},e.WACDelegate.registerEventAsync(g)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception happens at new window dialog."+t),s(5001)}},t.closeDialog=function(t){try{if(null!=n){var r=e._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(r)for(var o=0;o<r.length&&-1!==r[o].indexOf("://");o++)n.postMessage(a,r[o]);null==n||n.closed||n.close(),e.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",C):window.removeEventListener("message",O),window.clearInterval(u),n=null,t(0)}else t(5001)}catch(n){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception happens at close window dialog."+n),t(5001)}},t.messageParent=function(t){var n=t.hostCallArgs[e.ParameterNames.MessageToParent],r=t.hostCallArgs[e.ParameterNames.TargetOrigin]||null;if(e.OUtil.shouldUseLocalStorageToPassMessage())try{var o=e._OfficeAppFactory.getId()+c;window.localStorage.setItem(o,n)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during messageParent method:"+t)}else _(window.opener,{message:n,targetOrigin:r})},t.sendMessage=function(t){if(null!=n){var r=t.hostCallArgs,o=r[e.ParameterNames.TargetOrigin]||null;delete r[e.ParameterNames.TargetOrigin],"string"!=typeof r&&(r=JSON.stringify(r)),_(n,{message:r,targetOrigin:o})}},t.postDialogMessage=_,t.registerMessageReceivedEvent=function(){window.addEventListener("message",(function(t){var n=t.origin;if(t.source==window.opener&&(!0===window.office_disable_receive_dialog_message_prompt||e.WacDialogAction.validateTaskpaneDomain(n,!0)))if("string"==typeof t.data&&t.data.indexOf(a)>-1)window.close();else{var r=t.data,o=typeof r;if(r&&("object"==o||"string"==o)){var i="string"==o?JSON.parse(r):r,s={};s[e.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=i.messageContent,s[e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=t.origin;var l=e.manufactureEventArgs(e.EventType.DialogParentMessageReceived,null,s);e.DialogParentMessageEventDispatch.fireEvent(l)}}}))},t.setHandlerAndShowDialogCallback=function(e,t){r=e,s=t},t.escDismissDialogNotification=b,t.showCrossZoneNotification=v,t.getWithExpiry=function(e,t){var n=e.getItem(t);if(!n)return"undefined";var r=JSON.parse(n);return r.expiry&&r.value?(new Date).getTime()>r.expiry?(e.removeItem(t),"undefined"):r.value:"undefined"},t.setWithExpiry=function(e,t,n){var r={value:n,expiry:(new Date).getTime()+864e5};e.setItem(t,JSON.stringify(r))},t.getLocalStorage=function(){return e.SafeStorage?new e.SafeStorage(window.localStorage):window.localStorage},t.getSessionStorage=function(){return e.SafeStorage?new e.SafeStorage(window.sessionStorage):window.sessionStorage},t.getUrlProtocolHostnamePort=function(e){var t=e.port?":"+e.port:"";return e.protocol+"//"+e.hostname+t},t.validateTaskpaneDomain=function(t,n){try{if(!t)return!1;n||(n=!0);var r=window.location.origin;r||(r=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var o=e.OUtil.parseUrl(r,!0),i=e.OUtil.parseUrl(t,!0);if(!(o.protocol&&o.hostname&&i.protocol&&i.hostname&&void 0!==i.port))return!1;var a=(g=i,(m=o).hostname==g.hostname&&m.protocol==g.protocol&&function(e,t){var n="80",r="443";return e.port==t.port||""==e.port&&"http:"==e.protocol&&t.port==n||""==e.port&&"https:"==e.protocol&&t.port==r||""==t.port&&"http:"==t.protocol&&e.port==n||""==t.port&&"https:"==t.protocol&&e.port==r}(m,g)),s=!1;if(n&&(s=e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(t,r)),a||s)return!0;var l=this.getLocalStorage(),u=this.getSessionStorage(),c="_trusts_"+(i.protocol+"//"+i.hostname+(i.port?":"+i.port:"")),p=this.getWithExpiry(l,c),f=this.getWithExpiry(u,c);if("true"===p)return!0;if("false"===f)return!1;var h=this.getUrlProtocolHostnamePort(i),d=this.getUrlProtocolHostnamePort(o),y='You are about to send and receive potentially sensitive information from "'+d+'". Only click OK if you trust the following website recieving the sensitive information: "'+h+'".';return Strings.OfficeOM.L_ConfirmDialogApiTrustsParent&&(y=Strings.OfficeOM.L_ConfirmDialogApiTrustsParent.replace("{0}",d).replace("{1}",h)),window.confirm(y)?(this.setWithExpiry(l,c,"true"),this.setWithExpiry(u,c,"true"),!0):(this.setWithExpiry(l,c,"false"),this.setWithExpiry(u,c,"false"),!1)}catch(t){return e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during validateTaskpaneDomain method:"+t),!1}var m,g}}(e.WacDialogAction||(e.WacDialogAction={}))}(OSF||(OSF={})),function(e){!function(t){t.openDialog=function(t){try{t.onCalling&&t.onCalling();var n=e.SafeArrayDelegate.getOnAfterRegisterEvent(!0,t);e._OfficeAppFactory.getClientHostController().openDialog(t.dispId,void 0,t.targetId,(function(n,r){t.onEvent&&t.onEvent(r),e.AppTelemetry&&e.AppTelemetry.onEventDone(t.dispId)}),n)}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.closeDialog=function(t){t.onCalling&&t.onCalling();var n=e.SafeArrayDelegate.getOnAfterRegisterEvent(!1,t);try{e._OfficeAppFactory.getClientHostController().closeDialog(t.dispId,void 0,t.targetId,n)}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.messageParent=function(t){try{t.onCalling&&t.onCalling();var n=(new Date).getTime(),r=e._OfficeAppFactory.getClientHostController().messageParent(t.hostCallArgs);return t.onReceiving&&t.onReceiving(),e.AppTelemetry&&e.AppTelemetry.onMethodDone(t.dispId,t.hostCallArgs,Math.abs((new Date).getTime()-n),r),r}catch(t){return e.SafeArrayDelegate.onExceptionSyncMethod(t)}},t.sendMessage=function(t){try{t.onCalling&&t.onCalling();(new Date).getTime();var n=e._OfficeAppFactory.getClientHostController().sendMessage(t.hostCallArgs);return t.onReceiving&&t.onReceiving(),n}catch(t){return e.SafeArrayDelegate.onExceptionSyncMethod(t)}}}(e.SafeArrayDelegate||(e.SafeArrayDelegate={}))}(OSF||(OSF={})),function(e){!function(t){t.openDialog=function(n){var r="https://",o="http://",i=JSON.parse(n.targetId),a=t.getOnAfterRegisterEvent(!0,n);function s(t){var n={Error:t};try{a(0,n)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception happens at showDialogCallback."+t)}}if(e.DialogShownStatus.hasDialogShown)s(12007);else{var l=i[e.ShowWindowDialogParameterKeys.Url].toLowerCase(),u=window.location.href.toLowerCase();if(e.AppTelemetry){var c=!1,p=!1,f=!1,h=!1,d="",y="";if(e.OUtil){var m=e.OUtil.parseUrl(l),g=e.OUtil.parseUrl(u);c=m.protocol===g.protocol&&m.hostname===g.hostname&&m.port===g.port,d=e.OUtil.getHostnamePortionForLogging(m.hostname),c?y=d:(y=e.OUtil.getHostnamePortionForLogging(g.hostname),p=e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(l,u),f=e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(u,l));var _=e._OfficeAppFactory.getOfficeAppContext().get_appDomains();h=e.XdmCommunicationManager.checkUrlWithAppDomains(_,l)}var b="openDialog isInline: "+i[e.ShowWindowDialogParameterKeys.DisplayInIframe].toString()+", taskpaneHostname: "+y+", dialogHostName: "+d+", isSameDomain: "+c.toString()+", parentIsSubdomain: "+p.toString()+", childIsSubdomain: "+f.toString()+", isAppDomain: "+h.toString();e.AppTelemetry.logAppCommonMessage(b)}null!=l&&l.substr(0,r.length)===r?i[e.ShowWindowDialogParameterKeys.DisplayInIframe]?(e.DialogShownStatus.isWindowDialog=!1,e.WACDelegate.registerEventAsync(n)):(e.DialogShownStatus.isWindowDialog=!0,e.WacDialogAction.setHandlerAndShowDialogCallback((function(t){n.onEvent&&n.onEvent(t),e.AppTelemetry&&e.AppTelemetry.onEventDone(n.dispId)}),s),e.WacDialogAction.handleNewWindowDialog(i)):l.substr(0,o.length)===o?s(12005):s(12003)}},t.validateTaskpaneDomain=function(t,n){return e.WacDialogAction.validateTaskpaneDomain(t,n)},t.messageParent=function(t){var n=t.hostCallArgs.targetOrigin,r=!!n;if(r&&"*"!=n){var o=e.WacDialogAction.getLocalStorage(),i=e.WacDialogAction.getSessionStorage(),a="_trusts_",s=e.OUtil.parseUrl(n,!0);a+=s.protocol+"//"+s.hostname+(s.port?":"+s.port:""),e.WacDialogAction.setWithExpiry(o,a,"true"),e.WacDialogAction.setWithExpiry(i,a,"true")}if(null!=window.opener){if(!r){var l=e._OfficeAppFactory.getOfficeAppContext().get_taskpaneUrl();if(l){if(!e.WacDialogAction.validateTaskpaneDomain(l,!0)){var u="messageParent called but the taskpane domain is untrusted: "+l;throw e.AppTelemetry&&e.AppTelemetry.logAppException(u),new Error(u)}}else l=window.location.origin;t.hostCallArgs.targetOrigin=l}e.WacDialogAction.messageParent(t)}else{var c=window.location.origin;c||(c=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),r||(t.hostCallArgs.targetOrigin=c),e.WACDelegate.executeAsync(t)}},t.sendMessage=function(t){e.DialogShownStatus.hasDialogShown&&(e.DialogShownStatus.isWindowDialog?e.WacDialogAction.sendMessage(t):e.WACDelegate.executeAsync(t))},t.closeDialog=function(n){var r=t.getOnAfterRegisterEvent(!1,n);function o(t){var n={Error:t};try{r(0,n)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception happens at closeDialogCallback."+t)}}e.DialogShownStatus.hasDialogShown?e.DialogShownStatus.isWindowDialog?(n.onCalling&&n.onCalling(),e.WacDialogAction.closeDialog(o)):e.WACDelegate.unregisterEventAsync(n):o(12006)}}(e.WACDelegate||(e.WACDelegate={}))}(OSF||(OSF={})),function(e){var t;t||(t={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidDocumentSelectionChangedEvent})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidDocumentSelectionChangedEvent})},initializeFunc:function(){var t=Office.context.document;e.DispIdHost.addEventSupport(t,new e.EventDispatch([e.EventType.DocumentSelectionChanged,e.EventType.ActiveViewChanged]))}})}(OSF||(OSF={})),function(e){var t;t||(t={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.AddHandlerAsync,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:e.ParameterNames.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.RemoveHandlerAsync,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}}],supportedOptions:[{name:e.ParameterNames.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]})}})}(OSF||(OSF={})),function(e){var t;!function(e){e.FeatureProperties="FeatureProperties",e.TcidEnabled="TcidEnabled",e.TcidVisible="TcidVisible"}(e.PropertyDescriptors||(e.PropertyDescriptors={})),function(t){function n(){e.HostParameterMap.define({type:e.PropertyDescriptors.FeatureProperties,fromHost:[{name:e.PropertyDescriptors.TcidEnabled,value:0},{name:e.PropertyDescriptors.TcidVisible,value:1}],isComplexType:!0}),e.HostParameterMap.define({type:146,toHost:[{name:e.ParameterNames.Tcid,value:0}]}),e.HostParameterMap.define({type:147,fromHost:[{name:e.PropertyDescriptors.FeatureProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Tcid,value:0}]})}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.ExecuteFeature,requiredArguments:[{name:e.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.QueryFeature,requiredArguments:[{name:e.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:n,defineWebParameterMapFunc:n,initializeFunc:function(){var t=Office.context.ui;e.DispIdHost.addAsyncMethods(t,[e.AsyncMethods.ExecuteFeature]),e.DispIdHost.addAsyncMethods(t,[e.AsyncMethods.QueryFeature])}})}(t||(t={}))}(OSF||(OSF={})),function(e){!function(e){!function(e){e.launchExtensionComponent=function(e,t,n,r,o){var i=OSF.OUtil.Guid.generateNewGuid();null==o&&(o={OptionalProperties:{},DevProperties:{}}),o.OptionalProperties.InstanceToken=i;var a={ExtId:e,ComponentType:t,ComponentId:n,HostProps:r,OptionalProps:o};if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web){var s=OSF._OfficeAppFactory.getWebAppState();return s.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[s.id,OSF.AgaveHostAction.LaunchExtensionComponent,a]),{Id:e,ComponentType:t,ComponentId:n,InstanceToken:i,LaunchProperties:o}}throw OSF.Utility.createNotImplementedException()}}(e.extensionLifeCycle||(e.extensionLifeCycle={}))}(e.context||(e.context={})),function(e){e.close=function(e){OSF._OfficeAppFactory.getClientHostController().closeSdxDialog(e)},e.resize=function(e,t){OSF.Utility.isNullOrUndefined(e)||OSF.Utility.isNullOrUndefined(t)||"number"!=typeof e||"number"!=typeof t?OSF.Utility.debugLog("Invaid dialog width or height. Kindly provide two numbers as input parameters."):OSF._OfficeAppFactory.getClientHostController().resizeSdxDialog(e,t)}}(e.ExtensionLifeCycle||(e.ExtensionLifeCycle={}))}(Office||(Office={})),function(e){var t=function(){function e(e,t,n){this.m_fileSize=t,this.m_sliceSize=n,this.m_privateState={},this.m_privateState[OSF.FileProperties.Handle]=e,this.m_privateState[OSF.FileProperties.SliceSize]=n}return Object.defineProperty(e.prototype,"size",{get:function(){return this.m_fileSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sliceCount",{get:function(){return Math.ceil(this.m_fileSize/this.m_sliceSize)},enumerable:!0,configurable:!0}),e.prototype.getSliceAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyChunkAsync,arguments,this,this.m_privateState)},e.prototype.closeAsync=function(e){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseDocumentCopyAsync,arguments,this,this.m_privateState)},e}();e.File=t}(Office||(Office={})),function(e){!function(t){!function(t){t.getFileAsync=function(t,n,r){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyAsync,arguments,e.context.document,void 0)}}(t.document||(t.document={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){e.FileProperties="FileProperties",e.FileSliceProperties="FileSliceProperties"}(e.PropertyDescriptors||(e.PropertyDescriptors={})),function(e){e.Handle="FileHandle",e.FileSize="FileSize",e.SliceSize="sliceSize"}(e.FileProperties||(e.FileProperties={})),function(e){e.FileSliceOffset="fileSliceoffset"}(e.additionalParameter||(e.additionalParameter={})),function(e){!function(e){!function(e){e[e.Handle=0]="Handle",e[e.FileSize=1]="FileSize"}(e.FilePropertiesKeys||(e.FilePropertiesKeys={})),function(e){e[e.Data=0]="Data",e[e.SliceSize=1]="SliceSize"}(e.SlicePropertiesKeys||(e.SlicePropertiesKeys={})),function(e){e[e.Text=0]="Text",e[e.Compressed=1]="Compressed",e[e.Pdf=2]="Pdf"}(e.FileType||(e.FileType={})),function(e){e[e.FileType=0]="FileType",e[e.SliceSize=1]="SliceSize",e[e.Handle=2]="Handle",e[e.SliceIndex=3]="SliceIndex"}(e.ParameterKeys||(e.ParameterKeys={}))}(e.File||(e.File={}))}(e.Marshaling||(e.Marshaling={})),e.File||(e.File={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.GetDocumentCopyAsync,requiredArguments:[{name:e.ParameterNames.FileType,enum:Office.FileType}],supportedOptions:[{name:e.ParameterNames.SliceSize,value:{types:["number"],defaultValue:e.OUtil.getHostPlatform()==e.HostInfoPlatform.ios?65536:4194304}}],checkCallArgs:function(t,n,r){var o=t[e.ParameterNames.SliceSize];if(o<=0||o>4194304)throw 11002;return t},onSucceeded:function(t,n,r){return new Office.File(t[e.FileProperties.Handle],t[e.FileProperties.FileSize],r[e.ParameterNames.SliceSize])}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetDocumentCopyChunkAsync,requiredArguments:[{name:e.ParameterNames.SliceIndex,types:["number"]}],privateStateCallbacks:[{name:e.FileProperties.Handle,value:function(t,n){return n[e.FileProperties.Handle]}},{name:e.FileProperties.SliceSize,value:function(t,n){return n[e.FileProperties.SliceSize]}}],checkCallArgs:function(t,n,r){var o=t[e.ParameterNames.SliceIndex];if(o<0||o>=n.sliceCount)throw 5008;return t[e.additionalParameter.FileSliceOffset]=parseInt((o*r[e.FileProperties.SliceSize]).toString()),t},onSucceeded:function(t,n,r){var o={};return e.OUtil.defineEnumerableProperties(o,{data:{value:e.OUtil.getHostPlatform()==e.HostInfoPlatform.mac?e.OUtil.shallowCopy(t[e.ParameterNames.Data]):t[e.ParameterNames.Data]},index:{value:r[e.ParameterNames.SliceIndex]},size:{value:t[e.FileProperties.SliceSize]}}),o}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.ReleaseDocumentCopyAsync,privateStateCallbacks:[{name:e.FileProperties.Handle,value:function(t,n){return n[e.FileProperties.Handle]}}]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.PropertyDescriptors.FileProperties,fromHost:[{name:e.FileProperties.Handle,value:0},{name:e.FileProperties.FileSize,value:1}],isComplexType:!0}),e.HostParameterMap.define({type:e.PropertyDescriptors.FileSliceProperties,fromHost:[{name:e.ParameterNames.Data,value:0},{name:e.FileProperties.SliceSize,value:1}],isComplexType:!0}),e.HostParameterMap.define({type:e.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:0},{name:Office.FileType.Compressed,value:5},{name:Office.FileType.Pdf,value:6}]}),e.HostParameterMap.define({type:77,toHost:[{name:e.ParameterNames.FileType,value:0}],fromHost:[{name:e.PropertyDescriptors.FileProperties,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:80,toHost:[{name:e.FileProperties.Handle,value:0},{name:e.additionalParameter.FileSliceOffset,value:1},{name:e.FileProperties.SliceSize,value:2}],fromHost:[{name:e.PropertyDescriptors.FileSliceProperties,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:81,toHost:[{name:e.FileProperties.Handle,value:0}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.addComplexType(e.PropertyDescriptors.FileProperties),e.HostParameterMap.addComplexType(e.PropertyDescriptors.FileSliceProperties),e.HostParameterMap.define({type:e.PropertyDescriptors.FileProperties,fromHost:[{name:e.FileProperties.Handle,value:e.Marshaling.File.FilePropertiesKeys.Handle},{name:e.FileProperties.FileSize,value:e.Marshaling.File.FilePropertiesKeys.FileSize}]}),e.HostParameterMap.define({type:e.PropertyDescriptors.FileSliceProperties,fromHost:[{name:e.ParameterNames.Data,value:e.Marshaling.File.SlicePropertiesKeys.Data},{name:e.FileProperties.SliceSize,value:e.Marshaling.File.SlicePropertiesKeys.SliceSize}]}),e.HostParameterMap.define({type:e.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:e.Marshaling.File.FileType.Text},{name:Office.FileType.Compressed,value:e.Marshaling.File.FileType.Compressed},{name:Office.FileType.Pdf,value:e.Marshaling.File.FileType.Pdf}]}),e.HostParameterMap.define({type:77,toHost:[{name:e.ParameterNames.FileType,value:e.Marshaling.File.ParameterKeys.FileType},{name:e.ParameterNames.SliceSize,value:e.Marshaling.File.ParameterKeys.SliceSize}],fromHost:[{name:e.PropertyDescriptors.FileProperties,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:80,toHost:[{name:e.FileProperties.Handle,value:e.Marshaling.File.ParameterKeys.Handle},{name:e.ParameterNames.SliceIndex,value:e.Marshaling.File.ParameterKeys.SliceIndex}],fromHost:[{name:e.PropertyDescriptors.FileSliceProperties,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:81,toHost:[{name:e.FileProperties.Handle,value:e.Marshaling.File.ParameterKeys.Handle}]})}})}(OSF||(OSF={})),function(e){var t=function(e){OSF.OUtil.defineEnumerableProperties(this,{url:{value:e[OSF.FilePropertiesDescriptor.Url]}})};e.FileProperties=t}(OfficeExt||(OfficeExt={})),function(e){e.FilePropertiesDescriptor={Url:"Url"},function(e){e.FilePropertiesDescriptor="FilePropertiesDescriptor"}(e.PropertyDescriptors||(e.PropertyDescriptors={})),function(e){!function(e){e[e.Properties=0]="Properties",e[e.Url=1]="Url"}(e.FilePropertiesKeys||(e.FilePropertiesKeys={}))}(e.Marshaling||(e.Marshaling={})),e.FileProperties||(e.FileProperties={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.GetFilePropertiesAsync,fromHost:[{name:e.PropertyDescriptors.FilePropertiesDescriptor,value:0}],requiredArguments:[],supportedOptions:[],onSucceeded:function(e,t,n){return new OfficeExt.FileProperties(e)}})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:e.FilePropertiesDescriptor.Url,value:0}],isComplexType:!0}),e.HostParameterMap.define({type:86,fromHost:[{name:e.PropertyDescriptors.FilePropertiesDescriptor,value:e.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.addComplexType(e.PropertyDescriptors.FilePropertiesDescriptor),e.HostParameterMap.define({type:e.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:e.FilePropertiesDescriptor.Url,value:e.Marshaling.FilePropertiesKeys.Url}]}),e.HostParameterMap.define({type:86,fromHost:[{name:e.PropertyDescriptors.FilePropertiesDescriptor,value:e.Marshaling.FilePropertiesKeys.Properties}]})},initializeFunc:function(){var t=Office.context.document;e.DispIdHost.addAsyncMethods(t,[e.AsyncMethods.GetFilePropertiesAsync])}})}(OSF||(OSF={})),function(e){var t;!function(t){function n(e){return e.id}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.ClearFormatsAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.SetTableOptionsAsync,requiredArguments:[{name:e.ParameterNames.TableOptions,defaultValue:[]}],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.SetFormatsAsync,requiredArguments:[{name:e.ParameterNames.CellFormat,defaultValue:[]}],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]})}})}(e.Internal||(e.Internal={})),function(e){!function(e){e.Id="BindingId",e.CellFormat="CellFormat",e.TableOptions="TableOptions"}(e.FormatKeys||(e.FormatKeys={})),function(e){e[e.headerRow=0]="headerRow",e[e.bandedRows=1]="bandedRows",e[e.firstColumn=2]="firstColumn",e[e.lastColumn=3]="lastColumn",e[e.bandedColumns=4]="bandedColumns",e[e.filterButton=5]="filterButton",e[e.style=6]="style",e[e.totalRow=7]="totalRow"}(e.TableOptionProperties||(e.TableOptionProperties={})),function(e){e[e.row=0]="row",e[e.column=1]="column"}(e.CellProperties||(e.CellProperties={})),function(e){e[e.alignHorizontal=1]="alignHorizontal",e[e.alignVertical=2]="alignVertical",e[e.backgroundColor=101]="backgroundColor",e[e.borderStyle=201]="borderStyle",e[e.borderColor=202]="borderColor",e[e.borderTopStyle=203]="borderTopStyle",e[e.borderTopColor=204]="borderTopColor",e[e.borderBottomStyle=205]="borderBottomStyle",e[e.borderBottomColor=206]="borderBottomColor",e[e.borderLeftStyle=207]="borderLeftStyle",e[e.borderLeftColor=208]="borderLeftColor",e[e.borderRightStyle=209]="borderRightStyle",e[e.borderRightColor=210]="borderRightColor",e[e.borderOutlineStyle=211]="borderOutlineStyle",e[e.borderOutlineColor=212]="borderOutlineColor",e[e.borderInlineStyle=213]="borderInlineStyle",e[e.borderInlineColor=214]="borderInlineColor",e[e.fontFamily=301]="fontFamily",e[e.fontStyle=302]="fontStyle",e[e.fontSize=303]="fontSize",e[e.fontUnderlineStyle=304]="fontUnderlineStyle",e[e.fontColor=305]="fontColor",e[e.fontDirection=306]="fontDirection",e[e.fontStrikethrough=307]="fontStrikethrough",e[e.fontSuperscript=308]="fontSuperscript",e[e.fontSubscript=309]="fontSubscript",e[e.fontNormal=310]="fontNormal",e[e.indentLeft=401]="indentLeft",e[e.indentRight=402]="indentRight",e[e.numberFormat=501]="numberFormat",e[e.width=701]="width",e[e.height=702]="height",e[e.wrapping=703]="wrapping"}(e.CellFormatProperties||(e.CellFormatProperties={})),function(e){e[e.none=0]="none",e[e.thin=1]="thin",e[e.medium=2]="medium",e[e.dashed=3]="dashed",e[e.dotted=4]="dotted",e[e.thick=5]="thick",e[e.double=6]="double",e[e.hair=7]="hair",e[e.mediumDashed=8]="mediumDashed",e[e.dashDot=9]="dashDot",e[e.mediumDashDot=10]="mediumDashDot",e[e.dashDotDot=11]="dashDotDot",e[e.mediumDashDotDot=12]="mediumDashDotDot",e[e.slantDashDot=13]="slantDashDot"}(e.BorderStyleType||(e.BorderStyleType={})),function(e){e[e.none=0]="none",e[e.black=1]="black",e[e.blue=2]="blue",e[e.gray=3]="gray",e[e.green=4]="green",e[e.orange=5]="orange",e[e.pink=6]="pink",e[e.purple=7]="purple",e[e.red=8]="red",e[e.teal=9]="teal",e[e.turquoise=10]="turquoise",e[e.violet=11]="violet",e[e.white=12]="white",e[e.yellow=13]="yellow",e[e.automatic=14]="automatic"}(e.ColorType||(e.ColorType={})),function(e){e[e.general=0]="general",e[e.left=1]="left",e[e.center=2]="center",e[e.right=3]="right",e[e.fill=4]="fill",e[e.justify=5]="justify",e[e.centerAcrossSelection=6]="centerAcrossSelection",e[e.distributed=7]="distributed"}(e.AlignHorizontalType||(e.AlignHorizontalType={})),function(e){e[e.top=0]="top",e[e.center=1]="center",e[e.bottom=2]="bottom",e[e.justify=3]="justify",e[e.distributed=4]="distributed"}(e.AlignVerticalType||(e.AlignVerticalType={})),function(e){e[e.regular=0]="regular",e[e.italic=1]="italic",e[e.bold=2]="bold",e[e.boldItalic=3]="boldItalic"}(e.FontStyleType||(e.FontStyleType={})),function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.double=2]="double",e[e.singleAccounting=3]="singleAccounting",e[e.doubleAccounting=4]="doubleAccounting"}(e.FontUnderlineStyleType||(e.FontUnderlineStyleType={})),function(e){e[e.context=0]="context",e[e.leftToRight=1]="leftToRight",e[e.rightToLeft=2]="rightToLeft"}(e.FontDirectionType||(e.FontDirectionType={})),function(e){e[e.autoFit=-1]="autoFit"}(e.WidthType||(e.WidthType={})),function(e){e[e.autoFit=-1]="autoFit"}(e.HeightType||(e.HeightType={}))}(t=e.Marshaling||(e.Marshaling={})),function(n){var r,o;!function(e){e[e.headerRow=0]="headerRow",e[e.bandedRows=1]="bandedRows",e[e.firstColumn=2]="firstColumn",e[e.lastColumn=3]="lastColumn",e[e.bandedColumns=4]="bandedColumns",e[e.filterButton=5]="filterButton",e[e.style=6]="style",e[e.totalRow=7]="totalRow"}(r||(r={})),function(e){e[e.row=0]="row",e[e.column=1]="column"}(o||(o={}));var i={alignHorizontal:{text:"alignHorizontal",type:1},alignVertical:{text:"alignVertical",type:2},backgroundColor:{text:"backgroundColor",type:101},borderStyle:{text:"borderStyle",type:201},borderColor:{text:"borderColor",type:202},borderTopStyle:{text:"borderTopStyle",type:203},borderTopColor:{text:"borderTopColor",type:204},borderBottomStyle:{text:"borderBottomStyle",type:205},borderBottomColor:{text:"borderBottomColor",type:206},borderLeftStyle:{text:"borderLeftStyle",type:207},borderLeftColor:{text:"borderLeftColor",type:208},borderRightStyle:{text:"borderRightStyle",type:209},borderRightColor:{text:"borderRightColor",type:210},borderOutlineStyle:{text:"borderOutlineStyle",type:211},borderOutlineColor:{text:"borderOutlineColor",type:212},borderInlineStyle:{text:"borderInlineStyle",type:213},borderInlineColor:{text:"borderInlineColor",type:214},fontFamily:{text:"fontFamily",type:301},fontStyle:{text:"fontStyle",type:302},fontSize:{text:"fontSize",type:303},fontUnderlineStyle:{text:"fontUnderlineStyle",type:304},fontColor:{text:"fontColor",type:305},fontDirection:{text:"fontDirection",type:306},fontStrikethrough:{text:"fontStrikethrough",type:307},fontSuperscript:{text:"fontSuperscript",type:308},fontSubscript:{text:"fontSubscript",type:309},fontNormal:{text:"fontNormal",type:310},indentLeft:{text:"indentLeft",type:401},indentRight:{text:"indentRight",type:402},numberFormat:{text:"numberFormat",type:501},width:{text:"width",type:701},height:{text:"height",type:702},wrapping:{text:"wrapping",type:703}},a=[{name:"none",value:0},{name:"thin",value:1},{name:"medium",value:2},{name:"dashed",value:3},{name:"dotted",value:4},{name:"thick",value:5},{name:"double",value:6},{name:"hair",value:7},{name:"medium dashed",value:8},{name:"dash dot",value:9},{name:"medium dash dot",value:10},{name:"dash dot dot",value:11},{name:"medium dash dot dot",value:12},{name:"slant dash dot",value:13}],s=[{name:"none",value:0},{name:"black",value:1},{name:"blue",value:2},{name:"gray",value:3},{name:"green",value:4},{name:"orange",value:5},{name:"pink",value:6},{name:"purple",value:7},{name:"red",value:8},{name:"teal",value:9},{name:"turquoise",value:10},{name:"violet",value:11},{name:"white",value:12},{name:"yellow",value:13},{name:"automatic",value:14}];e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.SetDataAsync,requiredArguments:[{name:e.ParameterNames.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:e.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(t){return e.DataCoercion.determineCoercionType(t[e.ParameterNames.Data])}}},{name:e.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:e.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.CellFormat,value:{types:["object"],defaultValue:[]}},{name:e.ParameterNames.TableOptions,value:{types:["object"],defaultValue:[]}}],checkCallArgs:function(t,n,r){var o=e.ParameterNames;if(0==t[o.StartRow]&&0==t[o.StartColumn]&&e.OUtil.isArray(t[o.CellFormat])&&0===t[o.CellFormat].length&&e.OUtil.isArray(t[o.TableOptions])&&0===t[o.TableOptions].length&&(delete t[o.StartRow],delete t[o.StartColumn],delete t[o.CellFormat],delete t[o.TableOptions]),t[o.CoercionType]!=e.DataCoercion.getCoercionDefaultForBinding(n.type)&&(t[o.StartRow]&&0!=t[o.StartRow]||t[o.StartColumn]&&0!=t[o.StartColumn]||t[o.CellFormat]||t[o.TableOptions]))throw 1002;return t},privateStateCallbacks:[{name:e.ParameterNames.Id,value:function(e){return e.id}}]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:87,toHost:[{name:e.ParameterNames.Id,value:0}]}),e.HostParameterMap.define({type:88,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.TableOptions,value:1}]}),e.HostParameterMap.define({type:89,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.CellFormat,value:1}]}),e.HostParameterMap.define({type:71,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.CoercionType,value:1},{name:e.ParameterNames.Data,value:2},{name:"offset",value:3},{name:e.ParameterNames.CellFormat,value:4},{name:e.ParameterNames.TableOptions,value:5}]}),e.HostParameterMap.define({type:i.alignHorizontal.text,toHost:[{name:"general",value:0},{name:"left",value:1},{name:"center",value:2},{name:"right",value:3},{name:"fill",value:4},{name:"justify",value:5},{name:"center across selection",value:6},{name:"distributed",value:7}]}),e.HostParameterMap.define({type:i.alignVertical.text,toHost:[{name:"top",value:0},{name:"center",value:1},{name:"bottom",value:2},{name:"justify",value:3},{name:"distributed",value:4}]}),e.HostParameterMap.define({type:i.backgroundColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderTopStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderTopColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderBottomStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderBottomColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderLeftStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderLeftColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderRightStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderRightColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderOutlineStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderOutlineColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderInlineStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderInlineColor.text,toHost:s}),e.HostParameterMap.define({type:i.fontStyle.text,toHost:[{name:"regular",value:0},{name:"italic",value:1},{name:"bold",value:2},{name:"bold italic",value:3}]}),e.HostParameterMap.define({type:i.fontUnderlineStyle.text,toHost:[{name:"none",value:0},{name:"single",value:1},{name:"double",value:2},{name:"single accounting",value:3},{name:"double accounting",value:4}]}),e.HostParameterMap.define({type:i.fontColor.text,toHost:s}),e.HostParameterMap.define({type:i.fontDirection.text,toHost:[{name:"context",value:0},{name:"left-to-right",value:1},{name:"right-to-left",value:2}]}),e.HostParameterMap.define({type:i.width.text,toHost:[{name:"auto fit",value:-1}]}),e.HostParameterMap.define({type:i.height.text,toHost:[{name:"auto fit",value:-1}]}),e.HostParameterMap.define({type:e.ParameterNames.TableOptions,toHost:[{name:"headerRow",value:0},{name:"bandedRows",value:1},{name:"firstColumn",value:2},{name:"lastColumn",value:3},{name:"bandedColumns",value:4},{name:"filterButton",value:5},{name:"style",value:6},{name:"totalRow",value:7}]}),e.HostParameterMap.dynamicTypes[e.ParameterNames.CellFormat]={toHost:function(t){for(var n in t)t[n].format&&(t[n].format=e.HostParameterMap.doMapValues(t[n].format,"toHost"));return t},fromHost:function(e){return e}},e.HostParameterMap.setDynamicType(e.ParameterNames.CellFormat,{toHost:function(e){var t=[];for(var n in e){var r=e[n],a=[];if(void 0!==r.cells){var s,l=r.cells;if("object"==typeof r.cells)for(var u in s=[],l)void 0!==o[u]&&(s[o[u]]=l[u]);else s=l;a[0]=s}if(r.format){var c=r.format,p=[];for(var f in c)void 0!==i[f]&&p.push([i[f].type,c[f]]);a[1]=p}t[n]=a}return t},fromHost:function(e){return e}}),e.HostParameterMap.setDynamicType(e.ParameterNames.TableOptions,{toHost:function(e){var t=[];for(var n in e)void 0!==r[n]&&(t[r[n]]=e[n]);return t},fromHost:function(e){return e}})},defineWebParameterMapFunc:function(){var n=t.AlignHorizontalType,r=t.AlignVerticalType,o=t.BorderStyleType,i=t.CellProperties,a=(t.CellFormatProperties,t.ColorType),s=t.FontDirectionType,l=t.FontStyleType,u=t.FontUnderlineStyleType,c=t.HeightType,p=t.FormatKeys,f=t.TableOptionProperties,h=t.WidthType,d={alignHorizontal:{text:"alignHorizontal",type:t.CellFormatProperties.alignHorizontal},alignVertical:{text:"alignVertical",type:t.CellFormatProperties.alignVertical},backgroundColor:{text:"backgroundColor",type:t.CellFormatProperties.backgroundColor},borderStyle:{text:"borderStyle",type:t.CellFormatProperties.borderStyle},borderColor:{text:"borderColor",type:t.CellFormatProperties.borderColor},borderTopStyle:{text:"borderTopStyle",type:t.CellFormatProperties.borderTopStyle},borderTopColor:{text:"borderTopColor",type:t.CellFormatProperties.borderTopColor},borderBottomStyle:{text:"borderBottomStyle",type:t.CellFormatProperties.borderBottomStyle},borderBottomColor:{text:"borderBottomColor",type:t.CellFormatProperties.borderBottomColor},borderLeftStyle:{text:"borderLeftStyle",type:t.CellFormatProperties.borderLeftStyle},borderLeftColor:{text:"borderLeftColor",type:t.CellFormatProperties.borderLeftColor},borderRightStyle:{text:"borderRightStyle",type:t.CellFormatProperties.borderRightStyle},borderRightColor:{text:"borderRightColor",type:t.CellFormatProperties.borderRightColor},borderOutlineStyle:{text:"borderOutlineStyle",type:t.CellFormatProperties.borderOutlineStyle},borderOutlineColor:{text:"borderOutlineColor",type:t.CellFormatProperties.borderOutlineColor},borderInlineStyle:{text:"borderInlineStyle",type:t.CellFormatProperties.borderInlineStyle},borderInlineColor:{text:"borderInlineColor",type:t.CellFormatProperties.borderInlineColor},fontFamily:{text:"fontFamily",type:t.CellFormatProperties.fontFamily},fontStyle:{text:"fontStyle",type:t.CellFormatProperties.fontStyle},fontSize:{text:"fontSize",type:t.CellFormatProperties.fontSize},fontUnderlineStyle:{text:"fontUnderlineStyle",type:t.CellFormatProperties.fontUnderlineStyle},fontColor:{text:"fontColor",type:t.CellFormatProperties.fontColor},fontDirection:{text:"fontDirection",type:t.CellFormatProperties.fontDirection},fontStrikethrough:{text:"fontStrikethrough",type:t.CellFormatProperties.fontStrikethrough},fontSuperscript:{text:"fontSuperscript",type:t.CellFormatProperties.fontSuperscript},fontSubscript:{text:"fontSubscript",type:t.CellFormatProperties.fontSubscript},fontNormal:{text:"fontNormal",type:t.CellFormatProperties.fontNormal},indentLeft:{text:"indentLeft",type:t.CellFormatProperties.indentLeft},indentRight:{text:"indentRight",type:t.CellFormatProperties.indentRight},numberFormat:{text:"numberFormat",type:t.CellFormatProperties.numberFormat},width:{text:"width",type:t.CellFormatProperties.width},height:{text:"height",type:t.CellFormatProperties.height},wrapping:{text:"wrapping",type:t.CellFormatProperties.wrapping}},y=[{name:"none",value:o.none},{name:"thin",value:o.thin},{name:"medium",value:o.medium},{name:"dashed",value:o.dashed},{name:"dotted",value:o.dotted},{name:"thick",value:o.thick},{name:"double",value:o.double},{name:"hair",value:o.hair},{name:"medium dashed",value:o.mediumDashed},{name:"dash dot",value:o.dashDot},{name:"medium dash dot",value:o.mediumDashDot},{name:"dash dot dot",value:o.dashDotDot},{name:"medium dash dot dot",value:o.mediumDashDotDot},{name:"slant dash dot",value:o.slantDashDot}],m=[{name:"none",value:a.none},{name:"black",value:a.black},{name:"blue",value:a.blue},{name:"gray",value:a.gray},{name:"green",value:a.green},{name:"orange",value:a.orange},{name:"pink",value:a.pink},{name:"purple",value:a.purple},{name:"red",value:a.red},{name:"teal",value:a.teal},{name:"turquoise",value:a.turquoise},{name:"violet",value:a.violet},{name:"white",value:a.white},{name:"yellow",value:a.yellow},{name:"automatic",value:a.automatic}];e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.ClearFormats,toHost:[{name:e.ParameterNames.Id,value:t.FormatKeys.Id}]}),e.HostParameterMap.define({type:87,toHost:[{name:e.WACDelegate.UniqueArguments.ClearFormats,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SetFormats,toHost:[{name:e.ParameterNames.Id,value:t.FormatKeys.Id},{name:e.ParameterNames.CellFormat,value:t.FormatKeys.CellFormat},{name:e.ParameterNames.TableOptions,value:t.FormatKeys.TableOptions}]}),e.HostParameterMap.define({type:88,toHost:[{name:e.WACDelegate.UniqueArguments.SetFormats,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:89,toHost:[{name:e.WACDelegate.UniqueArguments.SetFormats,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SetData,toHost:[{name:e.ParameterNames.Id,value:p.Id},{name:e.ParameterNames.CoercionType,value:"CoerceType"},{name:e.ParameterNames.Data,value:e.WACDelegate.UniqueArguments.Data},{name:e.ParameterNames.Rows,value:"Rows"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.StartRow,value:"StartRow"},{name:e.ParameterNames.StartColumn,value:"StartCol"},{name:e.ParameterNames.CellFormat,value:p.CellFormat},{name:e.ParameterNames.TableOptions,value:p.TableOptions}]}),e.HostParameterMap.define({type:71,toHost:[{name:e.WACDelegate.UniqueArguments.SetData,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:d.alignHorizontal.text,toHost:[{name:"general",value:n.general},{name:"left",value:n.left},{name:"center",value:n.center},{name:"right",value:n.right},{name:"fill",value:n.fill},{name:"justify",value:n.justify},{name:"center across selection",value:n.centerAcrossSelection},{name:"distributed",value:n.distributed}]}),e.HostParameterMap.define({type:d.alignVertical.text,toHost:[{name:"top",value:r.top},{name:"center",value:r.center},{name:"bottom",value:r.bottom},{name:"justify",value:r.justify},{name:"distributed",value:r.distributed}]}),e.HostParameterMap.define({type:d.backgroundColor.text,toHost:m}),e.HostParameterMap.define({type:d.borderStyle.text,toHost:y}),e.HostParameterMap.define({type:d.borderColor.text,toHost:m}),e.HostParameterMap.define({type:d.borderTopStyle.text,toHost:y}),e.HostParameterMap.define({type:d.borderTopColor.text,toHost:m}),e.HostParameterMap.define({type:d.borderBottomStyle.text,toHost:y}),e.HostParameterMap.define({type:d.borderBottomColor.text,toHost:m}),e.HostParameterMap.define({type:d.borderLeftStyle.text,toHost:y}),e.HostParameterMap.define({type:d.borderLeftColor.text,toHost:m}),e.HostParameterMap.define({type:d.borderRightStyle.text,toHost:y}),e.HostParameterMap.define({type:d.borderRightColor.text,toHost:m}),e.HostParameterMap.define({type:d.borderOutlineStyle.text,toHost:y}),e.HostParameterMap.define({type:d.borderOutlineColor.text,toHost:m}),e.HostParameterMap.define({type:d.borderInlineStyle.text,toHost:y}),e.HostParameterMap.define({type:d.borderInlineColor.text,toHost:m}),e.HostParameterMap.define({type:d.fontStyle.text,toHost:[{name:"regular",value:l.regular},{name:"italic",value:l.italic},{name:"bold",value:l.bold},{name:"bold italic",value:l.boldItalic}]}),e.HostParameterMap.define({type:d.fontUnderlineStyle.text,toHost:[{name:"none",value:u.none},{name:"single",value:u.single},{name:"double",value:u.double},{name:"single accounting",value:u.singleAccounting},{name:"double accounting",value:u.doubleAccounting}]}),e.HostParameterMap.define({type:d.fontColor.text,toHost:m}),e.HostParameterMap.define({type:d.fontDirection.text,toHost:[{name:"context",value:s.context},{name:"left-to-right",value:s.leftToRight},{name:"right-to-left",value:s.rightToLeft}]}),e.HostParameterMap.define({type:d.width.text,toHost:[{name:"auto fit",value:h.autoFit}]}),e.HostParameterMap.define({type:d.height.text,toHost:[{name:"auto fit",value:c.autoFit}]}),e.HostParameterMap.define({type:e.ParameterNames.TableOptions,toHost:[{name:"headerRow",value:f.headerRow},{name:"bandedRows",value:f.bandedRows},{name:"firstColumn",value:f.firstColumn},{name:"lastColumn",value:f.lastColumn},{name:"bandedColumns",value:f.bandedColumns},{name:"filterButton",value:f.filterButton},{name:"style",value:f.style},{name:"totalRow",value:f.totalRow}]}),e.HostParameterMap.dynamicTypes[e.ParameterNames.CellFormat]={toHost:function(t){for(var n in t)t[n].format&&(t[n].format=e.HostParameterMap.doMapValues(t[n].format,"toHost"));return t},fromHost:function(e){return e}},e.HostParameterMap.setDynamicType(e.ParameterNames.CellFormat,{toHost:function(e){var t=[];for(var n in e){var r=e[n],o=[];if(void 0!==r.cells){var a,s=r.cells;if("object"==typeof r.cells)for(var l in a=[],s)void 0!==i[l]&&(a[i[l]]=s[l]);else a=s;o[0]=a}if(r.format){var u=r.format,c=[];for(var p in u)void 0!==d[p]&&c.push([d[p].type,u[p]]);o[1]=c}t[n]=o}return t},fromHost:function(e){return e}}),e.HostParameterMap.setDynamicType(e.ParameterNames.TableOptions,{toHost:function(e){var t=[];for(var n in e)void 0!==f[n]&&(t[f[n]]=e[n]);return t},fromHost:function(e){return e}}),n=null,r=null,o=null,null,a=null,s=null,l=null,u=null,c=null,p=null,h=null}})}(e.Formats||(e.Formats={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){function n(t){var n=0;switch(t){case e.CoercionType.Text:n=0;break;case e.CoercionType.Matrix:n=1;break;case e.CoercionType.Table:n=2;break;case e.CoercionType.Html:n=3;break;case e.CoercionType.Ooxml:n=4;break;case e.CoercionType.OoxmlPackage:n=5;break;case e.CoercionType.PdfFile:n=6;break;case e.CoercionType.SlideRange:n=7;break;case"image":n=8;break;case"xmlSvg":n=9}return n}function r(t){var n=0;switch(t){case e.ValueFormat.Unformatted:n=0;break;case e.ValueFormat.Formatted:n=1}return n}function o(t){var n=0;switch(t){case e.FilterType.All:n=0;break;case e.FilterType.OnlyVisible:n=1}return n}t.setSelectedDataAsync=function(t,r,o){var i=null==r.coercionType?OSF.DataCoercion.determineCoercionType(t):r.coercionType;"function"==typeof r&&(o=r);var a={toSafeArrayHost:function(){var o=OSF._OfficeAppFactory.getHostInfo();return o.hostType.toLowerCase()==e.HostType.Word.toLowerCase()||o.hostType.toLowerCase()==e.HostType.PowerPoint.toLowerCase()||o.hostType.toLowerCase()==e.HostType.OneNote.toLowerCase()||o.hostType.toLowerCase()==e.HostType.Visio.toLowerCase()||"image"==i||"xmlSvg"==i?[n(i),OSF.DataCoercion.serializeDynamicData(t),null!=r.imageLeft&&r.imageLeft,null!=r.imageTop&&r.imageTop,null!=r.imageWidth&&r.imageWidth,null!=r.imageHeight&&r.imageHeight]:o.hostType.toLowerCase()==e.HostType.Excel.toLowerCase()?[n(i),OSF.DataCoercion.serializeDynamicData(t),null==r.cellFormat?[]:r.cellFormat,null==r.tableOptions?[]:r.tableOptions,null!=r.imageWidth&&r.imageWidth,null!=r.imageHeight&&r.imageHeight]:[n(i),OSF.DataCoercion.serializeDynamicData(t),null==r.cellFormat?[]:r.cellFormat,null==r.tableOptions?[]:r.tableOptions]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaSetBindingData:{CoerceType:i,Data:OSF.DataCoercion.serializeDynamicData(t),CellFormat:[],TableOptions:[]}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(65,a,o,null)},t.getSelectedDataAsync=function(t,i,a){var s,l=e.ValueFormat.Unformatted,u=e.FilterType.All;"function"==typeof i?a=i:void 0!==i&&(void 0!==i.valueFormat&&(l=i.valueFormat),void 0!==i.filterType&&(u=i.filterType),void 0!==i.asyncContext&&(s=i.asyncContext));var c={toSafeArrayHost:function(){return[n(t),r(l),o(u)]},fromSafeArrayHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e,t)},toWebHost:function(){return{DdaGetBindingData:{CoerceType:t,ValueFormat:l,FilterType:u}}},fromWebHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e.Data,t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(64,c,a,s)}}(t.document||(t.document={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){var t=function(){function e(e,t){this._rows=e,this._header=t}return Object.defineProperty(e.prototype,"headers",{get:function(){return this._header},set:function(e){this._header=this.fixData(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=null==e||OSF.OUtil.isArray(e)&&0==e.length?[]:this.fixData(e)},enumerable:!0,configurable:!0}),e.prototype.fixData=function(e){if(null==e||null==e)return null;try{for(var t=OSF.DataCoercion.findArrayDimensionality(e);t<2;t++)e=[e];return e}catch(e){}},e}();e.TableData=t,e.manufactureTableData=function(t){return new e.TableData(t[OSF.TableDataProperties.TableRows],t[OSF.TableDataProperties.TableHeaders])}}(Office||(Office={})),function(e){!function(t){!function(t){!function(e){e.OfficeThemeChangedEvent="OfficeThemeChangedEvent",e.DocumentThemeChangedEvent="DocumentThemeChangedEvent"}(t.EventDescriptors||(t.EventDescriptors={})),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.GetDocumentThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:e.DDA.Theming.ConvertToDocumentTheme}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetOfficeThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:e.DDA.Theming.ConvertToOfficeTheme})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:85,fromHost:[{name:e.ParameterNames.OfficeTheme,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.ParameterNames.OfficeTheme,fromHost:[{name:e.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:0},{name:e.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:1},{name:e.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:2},{name:e.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:3},{name:e.DDA.Theming.OfficeThemeEnum.ThemeId,value:4},{name:e.DDA.Theming.OfficeThemeEnum.IsDarkTheme,value:5},{name:e.DDA.Theming.OfficeThemeEnum.FluentThemeData,value:6}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:e.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,fromHost:[{name:e.ParameterNames.OfficeTheme,value:e.HostParameterMap.self}],isComplexType:!0})},defineWebParameterMapFunc:function(){e.HostParameterMap.addComplexType(e.ParameterNames.DocumentTheme),e.HostParameterMap.addComplexType(e.ParameterNames.OfficeTheme),e.HostParameterMap.define({type:e.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:e.ParameterNames.OfficeTheme,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.ParameterNames.OfficeTheme,fromHost:[{name:e.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:e.DDA.Theming.OfficeThemeEnumWac.PrimaryFontColor},{name:e.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:e.DDA.Theming.OfficeThemeEnumWac.PrimaryBackgroundColor},{name:e.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:e.DDA.Theming.OfficeThemeEnumWac.SecondaryFontColor},{name:e.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:e.DDA.Theming.OfficeThemeEnumWac.SecondaryBackgroundColor}],isComplexType:!0})},initializeFunc:function(){var n=e._OfficeAppFactory.getHostInfo(),r=n.hostType.toLowerCase();if(n.hostPlatform==e.HostInfoPlatform.web&&(r==Office.HostType.Word.toLowerCase()||r==Office.HostType.PowerPoint.toLowerCase())&&Office.context.officeTheme){var o=t.GetIsDarkThemeFromCSSHexColor(Office.context.officeTheme.bodyBackgroundColor);Office.context.officeTheme[e.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=o,Office.context.officeTheme[e.DDA.Theming.OfficeThemeEnum.ThemeId]=o?e.DDA.Theming.ThemeId.Black:e.DDA.Theming.ThemeId.White}Office.context&&Office.context.themeManager&&Office.context.themeManager.InitializeAndChangeOnce()}});var n=function(){function n(){this._eventTarget=null,this._previousDocumentThemeData=null,this._previousOfficeThemeData=null,this._officeCss=null,this._asyncCallsCompleted=null,this._onAsyncCallsCompleted=null}return n.prototype.InitializeThemeManager=function(){this._eventTarget=this,e.DispIdHost.addAsyncMethods(this,[e.AsyncMethods.GetOfficeThemeAsync,e.AsyncMethods.GetDocumentThemeAsync]),e.DispIdHost.addEventSupport(this,new e.EventDispatch([Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,Microsoft.Office.WebExtension.EventType.DocumentThemeChanged]))},n.prototype.InitializeAndChangeOnce=function(t){var n=this;this._officeCss=this._getOfficeThemesCss(),this._officeCss?(this._onAsyncCallsCompleted=t,this._asyncCallsCompleted={},this._asyncCallsCompleted[e.AsyncMethods.GetOfficeThemeAsync]=!1,this._asyncCallsCompleted[e.AsyncMethods.GetDocumentThemeAsync]=!1,this._getAndProcessThemeData(this._eventTarget.getOfficeThemeAsync,(function(e){n._processOfficeThemeData(e)}),e.AsyncMethods.GetOfficeThemeAsync)):t&&t()},n.prototype.isDarkTheme=function(){var e=!1;if(Office.context&&Office.context.officeTheme&&Office.context.officeTheme.bodyBackgroundColor){var n=Office.context.officeTheme.bodyBackgroundColor;e=t.GetIsDarkThemeFromCSSHexColor(n)}return e},n.prototype._getOfficeThemesCss=function(){try{return function(){for(var t="officethemes.css",n=0;n<document.styleSheets.length;n++){var r=document.styleSheets[n];if(!r.disabled&&r.href&&t==r.href.substring(r.href.length-t.length,r.href.length).toLowerCase())return r.cssRules||r.rules?r:(e.AppTelemetry&&e.AppTelemetry.logAppException("Browser styleSheet object does not implement cssRules or rules property. Viloates browser's css access rule"),null)}}()}catch(t){return e.AppTelemetry&&e.AppTelemetry.logAppException("Exception thrown when trying to read officethems.css:["+t+"]"),null}},n.prototype._changeCss=function(e,t,n){for(var r=e.cssRules?e.cssRules.length:e.rules.length,o=0;o<r;o++){var i=(e.cssRules?e.cssRules[o]:e.rules[o]).selectorText;i&&i.toLowerCase()==t.toLowerCase()&&(e.cssRules?(e.deleteRule(o),e.insertRule(i+n,o)):(e.removeRule(o),e.addRule(i,n,o)))}},n.prototype._changeDocumentThemeData=function(t){for(var n=[{name:e.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,cssSelector:".office-docTheme-primary-fontColor",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,cssSelector:".office-docTheme-primary-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,cssSelector:".office-docTheme-secondary-fontColor",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,cssSelector:".office-docTheme-secondary-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Hyperlink,cssSelector:".office-a",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,cssSelector:".office-a:visited",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,cssSelector:".office-headerFont-latin",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,cssSelector:".office-headerFont-eastAsian",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,cssSelector:".office-headerFont-script",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,cssSelector:".office-headerFont-localized",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.BodyLatinFont,cssSelector:".office-bodyFont-latin",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,cssSelector:".office-bodyFont-eastAsian",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.BodyScriptFont,cssSelector:".office-bodyFont-script",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,cssSelector:".office-bodyFont-localized",cssProperty:"font-family"}],r=t.type==e.EventType.DocumentThemeChanged?t.documentTheme:t,o=0;o<n.length;o++)if(null===this._previousDocumentThemeData||this._previousDocumentThemeData[n[o].name]!=r[n[o].name])if(null!=r[n[o].name]&&""!=r[n[o].name]){var i=r[n[o].name];"font-family"===n[o].cssProperty&&(i='"'+i.replace(new RegExp('"',"g"),'\\"')+'"'),this._changeCss(this._officeCss,n[o].cssSelector,"{"+n[o].cssProperty+":"+i+";}")}else this._changeCss(this._officeCss,n[o].cssSelector,"{}");this._previousDocumentThemeData=r},n.prototype._changeOfficeThemeData=function(t){for(var n=[{name:e.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,cssSelector:".office-officeTheme-primary-fontColor",cssProperty:"color"},{name:e.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,cssSelector:".office-officeTheme-primary-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,cssSelector:".office-officeTheme-secondary-fontColor",cssProperty:"color"},{name:e.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,cssSelector:".office-officeTheme-secondary-bgColor",cssProperty:"background-color"}],r=t.type==e.EventType.OfficeThemeChanged?t.officeTheme:t,o=0;o<n.length;o++)null!==this._previousOfficeThemeData&&this._previousOfficeThemeData[n[o].name]==r[n[o].name]||void 0!==r[n[o].name]&&this._changeCss(this._officeCss,n[o].cssSelector,"{"+n[o].cssProperty+":"+r[n[o].name]+";}");this._previousOfficeThemeData=r},n.prototype._getAndProcessThemeData=function(t,n,r){var o=this,i=e._OfficeAppFactory.getHostInfo();if(i&&i.hostPlatform==e.HostInfoPlatform.web){if(r==e.AsyncMethods.GetOfficeThemeAsync&&Office.context.officeTheme){var a={};a[e.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor]=Office.context.officeTheme.bodyBackgroundColor,a[e.DDA.Theming.OfficeThemeEnum.BodyForegroundColor]=Office.context.officeTheme.bodyForegroundColor,a[e.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor]=Office.context.officeTheme.controlBackgroundColor,a[e.DDA.Theming.OfficeThemeEnum.ControlForegroundColor]=Office.context.officeTheme.controlForegroundColor,a[e.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=Office.context.officeTheme.isDarkTheme,a[e.DDA.Theming.OfficeThemeEnum.ThemeId]=Office.context.officeTheme.isDarkTheme?e.DDA.Theming.ThemeId.Black:e.DDA.Theming.ThemeId.White,a[e.DDA.Theming.OfficeThemeEnum.FluentThemeData]=Office.context.officeTheme.fluentThemeData,n(a)}}else t((function(e){if("succeeded"==e.status){var t=e.value;n(t)}o._areAllCallsCompleted(r)&&o._onAsyncCallsCompleted&&(o._onAsyncCallsCompleted(),o._onAsyncCallsCompleted=null)}))},n.prototype._processOfficeThemeData=function(e){var t=this;this._changeOfficeThemeData(e),this._eventTarget.addHandlerAsync(Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,(function(e){t._changeOfficeThemeData(e)}),null)},n.prototype._processDocumentThemeData=function(e){var t=this;this._changeDocumentThemeData(e),this._eventTarget.addHandlerAsync(Microsoft.Office.WebExtension.EventType.DocumentThemeChanged,(function(e){t._changeDocumentThemeData(e)}),null)},n.prototype._areAllCallsCompleted=function(e){var t;if(!(t=this._asyncCallsCompleted))return!0;for(var n in e&&t.hasOwnProperty(e)&&(t[e]=!0),t)if(!t.hasOwnProperty(n)||!t[n])return!1;return!0},n}();t.InternalThemeHandler=n}(t.Theming||(t.Theming={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){!function(e){var t;OSF.definePropertyOnNamespace(e,"themeManager",(function(){return t||(t=new OSF.DDA.Theming.InternalThemeHandler).InitializeThemeManager(),t}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){e.BootStrapExtension.prepareApiSurface=function(){return new Promise((function(){e.V10ApiFeatureRegistry.initialize()}))}}(OSF||(OSF={})),function(e){!function(e){function t(){try{if(void 0!==OSF&&void 0!==OSF.isOfficeReactNative&&OSF.isOfficeReactNative())return!0}catch(e){}return!1}function n(){var e="web";try{void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo&&(e=OSF._OfficeAppFactory.getHostInfo().hostPlatform)}catch(e){}return e}e.isNativeStorage=function(){var e=n();return!(function(){try{if(void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo&&OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp)return!0}catch(e){}return!1}()||!(t()||"win32"===e||"mac"===e&&window._useSDXSandbox))},e.isNativeApiInfomation=function(){var e=n();return!!(t()||"win32"===e||"mac"===e&&window._useSDXSandbox)},e.isNativeDialog=function(){var e=n();return!(!t()&&"win32"!==e)}}(e.ApiHelper||(e.ApiHelper={}))}(OfficeRuntime||(OfficeRuntime={})),function(e){e.ApiHelper.isNativeApiInfomation()?e.apiInformation=t:e.apiInformation=n;var t={isSetSupported:function(e,t){if("string"!=typeof e)return!1;if(null==t&&(t="0.0.0"),void 0===global.__apiSets)return!1;var n=global.__apiSets,o=Object.keys(n).map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase());if(o>-1){var i=n[Object.keys(n)[o]];try{var a=r(t),s=void 0;if((s=Array.isArray(i)?function(e,t){for(var n=0;n<e.length;n++){var o=r(e[n]);if(o.major==t)return o}return{major:0,minor:0,patch:0}}(i,a.major):r(i)).major>0){if(s.major>a.major)return!0;if(s.major==a.major&&s.minor>a.minor)return!0;if(s.major==a.major&&s.minor==a.minor&&s.patch>=a.patch)return!0}}catch(e){return!1}}return!1}},n={isSetSupported:function(e,t){try{return!!(Office&&Office.context&&Office.context.requirements)&&Office.context.requirements.isSetSupported(e,Number(t))}catch(e){return!1}}};function r(e){var t=e.split("."),n=0,r=0,o=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),t.length>=2&&(r=Number(t[1])),t.length>=3&&(o=Number(t[2])),isNaN(n)||isNaN(r)||isNaN(o))throw"version format incorrect";return{major:n,minor:r,patch:o}}}(OfficeRuntime||(OfficeRuntime={}));var OfficeRuntime;__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var t=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,n=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),o=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),i=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,function(e){this._dialogService=e});e.Dialog=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.close=function(){return this._dialogService.close(),OfficeExtension.CoreUtility.Promise.resolve()},t}(s),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},t}(s);function c(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}function p(e){var t,n=((t={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},t[12003]={code:"InvalidUrl",message:"HTTPS is required."},t[12004]={code:"Untrusted",message:"Domain is not trusted."},t[12005]={code:"InvalidUrl",message:"HTTPS is required."},t[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},t);return n[e]?n[e]:{code:"Unknown",message:"An unknown error has occured with code: "+e}}e.displayWebDialog=function(t,n){return void 0===n&&(n={}),new OfficeExtension.CoreUtility.Promise((function(r,o){if(n.width&&n.height&&(!c(n.width)||!c(n.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var i={width:n.width?parseInt(n.width):50,height:n.height?parseInt(n.height):50,displayInIFrame:n.displayInIFrame};e.ApiHelper.isNativeDialog()?function(e,t,n,r,o){void 0===o&&(o={});var i=new OfficeExtension.ClientRequestContext,a=h.newObject(i),s=new u(a),l=a.onDialogMessage.add((function(e){switch(OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e)),e.type){case 17:e.error?n(e.error):t(s);break;case 12:o.onMessage&&o.onMessage(e.message,s);break;case 10:default:12006===e.originalErrorCode?(l&&(l.remove(),i.sync()),o.onClose&&o.onClose()):o.onRuntimeError&&(o.onRuntimeError(e.error,s),n(e.error))}return OfficeExtension.CoreUtility.Promise.resolve()}));i.sync().then((function(){return a.displayDialog(r,e),i.sync()})).catch((function(e){n(e)}))}(i,r,o,t,n):function(e,t,n,r,o){void 0===o&&(o={});var i;function a(e){"failed"===e.status?n(new OfficeExtension.Error(p(e.error.code))):((i=e.value).addEventHandler(Office.EventType.DialogMessageReceived,s),i.addEventHandler(Office.EventType.DialogEventReceived,u),t(new l(i)))}function s(e){o.onMessage&&o.onMessage(e.message,i,e.origin)}function u(e){12006===e.error?o.onClose&&o.onClose():o.onRuntimeError&&o.onRuntimeError(new OfficeExtension.Error(p(e.error)),i)}Office.context.ui.displayDialogAsync(r,e,a)}(i,r,o,t,n)}))};var f,h=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return __extends(l,s),Object.defineProperty(l.prototype,"_className",{get:function(){return"DialogService"},enumerable:!0,configurable:!0}),l.prototype.close=function(){n(this,"Close",1,[],4,0)},l.prototype.displayDialog=function(e,t){n(this,"DisplayDialog",1,[e,t],4,0)},l.prototype._handleResult=function(e){(s.prototype._handleResult.call(this,e),r(e))||i(this,e)},l.prototype._handleRetrieveResult=function(e,t){s.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},l.newObject=function(n){return t(e.DialogService,n,"Microsoft.Dialog.DialogService",!1,4)},Object.defineProperty(l.prototype,"onDialogMessage",{get:function(){return this.m_dialogMessage||(this.m_dialogMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"DialogMessage",{eventType:65536,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(e){var t;try{var n=JSON.parse(e.message),r=n.errorCode?new OfficeExtension.Error(p(n.errorCode)):null;t={originalErrorCode:n.errorCode,type:n.type,error:r,message:n.message,origin:n.origin}}catch(e){t={originalErrorCode:null,type:17,error:new OfficeExtension.Error({code:"GenericException",message:"Unknown error"}),message:e.message}}return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_dialogMessage},enumerable:!0,configurable:!0}),l.prototype.toJSON=function(){return o(this,{},{})},l}(OfficeExtension.ClientObject);e.DialogService=h,function(e){e[e.dialogMessageReceived=0]="dialogMessageReceived",e[e.dialogEventReceived=1]="dialogEventReceived"}(f||(f={})),function(e){e.generalException="GeneralException"}(e.DialogErrorCodes||(e.DialogErrorCodes={}))}(OfficeRuntime||(OfficeRuntime={})),function(e){!function(e){function t(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:"true"===n.toString().toLowerCase()}catch(e){return t}}function n(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates,r=parseInt(n[e]);return isNaN(r)?t:r}catch(e){return t}}function r(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:n}catch(e){return t}}e.getBooleanFeatureGate=t,e.getIntFeatureGate=n,e.getStringFeatureGate=r,e.getBooleanFeatureGateAsync=function(e,n){return Promise.resolve(t(e,n))},e.getIntFeatureGateAsync=function(e,t){return Promise.resolve(n(e,t))},e.getStringFeatureGateAsync=function(e,t){return Promise.resolve(r(e,t))}}(e.experimentation||(e.experimentation={}))}(OfficeRuntime||(OfficeRuntime={})),function(e){!function(e){var n={};function r(e){var t=e.eventName,r=e.message;n.hasOwnProperty(t)&&n[t].call(r)}e.on=function(e,o){return function(e,o){n.hasOwnProperty(e)||(n[e]=new t,function(){Office&&Office.context&&Office.context.messaging&&!Office.context.messaging.onMessage&&(Office.context.messaging.onMessage=r.bind(this))}());n[e].add(o)}(e,o),new Promise((function(e){e()}))},e.off=function(e,t){return function(e,t){n.hasOwnProperty(e)&&(t?n[e].remove(t):delete n[e])}(e,t),new Promise((function(e){e()}))},e.emit=function(e,t){return function(e,t){var n={eventName:e,message:t};Office&&Office.context&&Office.context.messaging&&Office.context.messaging.sendMessage&&Office.context.messaging.sendMessage(n)}(e,t),new Promise((function(e){e()}))}}(e.message||(e.message={}));var t=function(){function e(){this.listeners=[]}return e.prototype.add=function(e){this.listeners.push(e)},e.prototype.remove=function(e){var t=this.listeners.lastIndexOf(e);-1!==t&&this.listeners.splice(t,1)},e.prototype.call=function(e){this.listeners.forEach((function(t){return t(e)}))},e}();e.ListenerManager=t}(OfficeRuntime||(OfficeRuntime={})),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var t=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,n=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),o=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),i=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,"_Office_AsyncStorage_"),l=s+"|_unusedKey_",u={getItem:function(e){return h((function(t,n){return t.multiGet(n,JSON.stringify([e]))}),(function(e){var t=JSON.parse(e);return t&&t[0]&&t[0][1]?t[0][1]:null}))},setItem:function(e,t){return h((function(n,r){return n.multiSet(r,JSON.stringify([[e,t]]))}),(function(){return null}))},removeItem:function(e){return h((function(t,n){return t.multiRemove(n,JSON.stringify([e]))}),(function(){return null}))},getItems:function(e){return h((function(t,n){return t.multiGet(n,JSON.stringify(e))}),(function(t){var n=JSON.parse(t),r={};return n&&n.forEach((function(e){var t=e[0],n=e[1];return r[t]=n,n})),e&&e.forEach((function(e){r[e]&&r[e]})),r}))},setItems:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push([n,e[n]]);return h((function(e,n){return e.multiSet(n,JSON.stringify(t))}),(function(){return null}))},removeItems:function(e){return h((function(t,n){return t.multiRemove(n,JSON.stringify(e))}),(function(){return null}))},getKeys:function(){return h((function(e,t){return e.getAllKeys(t)}),(function(e){return JSON.parse(e)}))}},c={getItem:function(e){return m((function(){return p(e)}))},setItem:function(e,t){return y((function(){return f(e,t)}))},removeItem:function(e){return y((function(){return window.localStorage.removeItem(s+e)}))},getItems:function(e){return new Promise((function(t,n){var r={},o=[];try{d()}catch(e){n(e)}e.forEach((function(e){try{var t=p(e);r[e]=t||null}catch(e){o.push(e)}})),o.length>0?n(new Error("Unknown error.")):t(r)}))},setItems:function(e){return g(e,(function(t){return f(t,e[t])}))},removeItems:function(e){return g(e,(function(e){return window.localStorage.removeItem(s+e)}))},getKeys:function(){return m((function(){return Object.keys(window.localStorage).filter((function(e){return 0===e.indexOf(s)})).map((function(e){return e.substr(s.length)}))}))}};function p(e){return window.localStorage.getItem(s+e)}function f(e,t){window.localStorage.setItem(s+e,t)}function h(e,t){return new OfficeExtension.CoreUtility.Promise((function(n,r){var o=_.getInstance(),i=o.setCallBack((function(e,o){if(o)r(o);else{var i=t(e);n(i)}}));o.ctx.sync().then((function(){var t=o.getPersistentKvStorageService();return e(t,i),o.ctx.sync()})).catch((function(e){r(e)}))}))}function d(){f(l,null),window.localStorage.removeItem(l)}function y(e,t){return void 0===t&&(t=function(){}),new Promise((function(n,r){try{d(),e(),t(null),n()}catch(e){t(e),r(e)}}))}function m(e,t){return void 0===t&&(t=function(){}),new Promise((function(n,r){try{d();var o=e();t(null,o),n(o)}catch(e){t(e,null),r(e)}}))}function g(e,t,n){return void 0===n&&(n=function(){}),new Promise((function(r,o){var i=[];try{d()}catch(e){i.push(e)}for(var a in e)if(e.hasOwnProperty(a)||Array.isArray(e))try{Array.isArray(e)?t(e[a]):t(a)}catch(e){i.push(e)}n(i),i.length>0?o(i):r()}))}e.ApiHelper.isNativeStorage()?e.storage=u:e.storage=c;var _=function(){function e(){var e=this;this._invokeId=0,this._callDict={},this.ctx=new OfficeExtension.ClientRequestContext,this._perkvstorService=b.newObject(this.ctx),this._eventResult=this._perkvstorService.onPersistentStorageMessage.add((function(t){OfficeExtension.Utility.log("persistentKvStoragegMessageHandler:"+JSON.stringify(t));var n=e._callDict[t.invokeId];n&&(n(t.message,t.error),delete e._callDict[t.invokeId])}))}return e.getInstance=function(){return void 0===e.instance?e.instance=new e:e.instance._perkvstorService=b.newObject(e.instance.ctx),e.instance},e.prototype.getPersistentKvStorageService=function(){return this._perkvstorService},e.prototype.getCallBack=function(e){return this._callDict[e]},e.prototype.setCallBack=function(e){var t=this._invokeId;return this._callDict[this._invokeId++]=e,t},e}(),b=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return __extends(l,s),Object.defineProperty(l.prototype,"_className",{get:function(){return"PersistentKvStorageService"},enumerable:!0,configurable:!0}),l.prototype.clear=function(e){n(this,"Clear",1,[e],4,0)},l.prototype.getAllKeys=function(e){n(this,"GetAllKeys",1,[e],4,0)},l.prototype.multiGet=function(e,t){n(this,"MultiGet",1,[e,t],4,0)},l.prototype.multiRemove=function(e,t){n(this,"MultiRemove",1,[e,t],4,0)},l.prototype.multiSet=function(e,t){n(this,"MultiSet",1,[e,t],4,0)},l.prototype._handleResult=function(e){(s.prototype._handleResult.call(this,e),r(e))||i(this,e)},l.prototype._handleRetrieveResult=function(e,t){s.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},l.newObject=function(n){return t(e.PersistentKvStorageService,n,"Microsoft.PersistentKvStorage.PersistentKvStorageService",!1,4)},Object.defineProperty(l.prototype,"onPersistentStorageMessage",{get:function(){return this.m_persistentStorageMessage||(this.m_persistentStorageMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"PersistentStorageMessage",{eventType:65537,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(e){var t,n,r,o;try{var i=JSON.parse(e.message),a=parseInt(i.errorCode),s=0!=a?new OfficeExtension.Error((n=a,(r={})[16389]={code:"GenericException",message:"Unknown error."},r[65535]={code:"Unexcepted",message:"Catastrophic failure."},r[14]={code:"OutOfMemory",message:"Ran out of memory."},r[87]={code:"InvalidArg",message:"One or more arguments are invalid."},r[16385]={code:"NotImplemented",message:"Not implemented."},r[6]={code:"BadHandle",message:"File Handle is not Set."},r[5]={code:"AccessDenied",message:"Can't read the Storage File."},(o=r)[n]?o[n]:{code:"Unknown",message:"An unknown error has occured"})):null;t={invokeId:i.invokeId,message:i.message,error:s}}catch(e){t={invokeId:-1,message:e.message,error:new OfficeExtension.Error({code:"GenericException",message:"Unknown error"})}}return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_persistentStorageMessage},enumerable:!0,configurable:!0}),l.prototype.toJSON=function(){return o(this,{},{})},l}(OfficeExtension.ClientObject);e.PersistentKvStorageService=b,function(e){e.generalException="GeneralException"}(e.ErrorCodes||(e.ErrorCodes={}))}(OfficeRuntime||(OfficeRuntime={}));var Excel,OSF;__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};if(function(e){function t(e,t){var r=f("OfficeOnline")?new n:new d;return y(e,r),OfficeExtension.CoreUtility.Promise.resolve().then((function(){return t(r)})).then(r.sync)}!function(e){e.unknown="Unknown",e.dataTypeRestrictedDomain="DataTypeRestrictedDomain",e.dataTypePrivacySetting="DataTypePrivacySetting",e.dataTypeUnsupportedApp="DataTypeUnsupportedApp",e.externalLinksGeneric="ExternalLinksGeneric",e.richDataLinkDisabled="RichDataLinkDisabled",e.signInError="SignInError",e.noLicense="NoLicense"}(e.BlockedErrorCellValueSubType||(e.BlockedErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.externalLinksGeneric="ExternalLinksGeneric",e.loadingImage="LoadingImage"}(e.BusyErrorCellValueSubType||(e.BusyErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.arrayOfArrays="ArrayOfArrays",e.arrayOfRanges="ArrayOfRanges",e.emptyArray="EmptyArray",e.unsupportedLifting="UnsupportedLifting",e.dataTableReferencedPendingFormula="DataTableReferencedPendingFormula",e.tooManyCells="TooManyCells",e.lambdaInCell="LambdaInCell",e.tooDeeplyNested="TooDeeplyNested",e.textOverflow="TextOverflow"}(e.CalcErrorCellValueSubType||(e.CalcErrorCellValueSubType={})),function(e){e.entity="Entity"}(e.EntityCardLayoutType||(e.EntityCardLayoutType={})),function(e){e.javaScriptReference="JavaScriptReference"}(e.FunctionCellValueType||(e.FunctionCellValueType={})),function(e){e.generic="Generic",e.accessibility="Accessibility",e.airplane="Airplane",e.airplaneTakeOff="AirplaneTakeOff",e.album="Album",e.alert="Alert",e.alertUrgent="AlertUrgent",e.animal="Animal",e.animalCat="AnimalCat",e.animalDog="AnimalDog",e.animalRabbit="AnimalRabbit",e.animalTurtle="AnimalTurtle",e.appFolder="AppFolder",e.appGeneric="AppGeneric",e.apple="Apple",e.approvalsApp="ApprovalsApp",e.archive="Archive",e.archiveMultiple="ArchiveMultiple",e.arrowTrendingLines="ArrowTrendingLines",e.art="Art",e.atom="Atom",e.attach="Attach",e.automobile="Automobile",e.autosum="Autosum",e.backpack="Backpack",e.badge="Badge",e.balloon="Balloon",e.bank="Bank",e.barcodeScanner="BarcodeScanner",e.basketball="Basketball",e.battery0="Battery0",e.battery10="Battery10",e.beach="Beach",e.beaker="Beaker",e.bed="Bed",e.binFull="BinFull",e.bird="Bird",e.bluetooth="Bluetooth",e.board="Board",e.boardGames="BoardGames",e.book="Book",e.bookmark="Bookmark",e.bookmarkMultiple="BookmarkMultiple",e.bot="Bot",e.bowlChopsticks="BowlChopsticks",e.box="Box",e.boxMultiple="BoxMultiple",e.brainCircuit="BrainCircuit",e.branch="Branch",e.branchFork="BranchFork",e.branchRequest="BranchRequest",e.bridge="Bridge",e.briefcase="Briefcase",e.briefcaseMedical="BriefcaseMedical",e.broadActivityFeed="BroadActivityFeed",e.broom="Broom",e.bug="Bug",e.building="Building",e.buildingBank="BuildingBank",e.buildingFactory="BuildingFactory",e.buildingGovernment="BuildingGovernment",e.buildingHome="BuildingHome",e.buildingLighthouse="BuildingLighthouse",e.buildingMultiple="BuildingMultiple",e.buildingRetail="BuildingRetail",e.buildingRetailMore="BuildingRetailMore",e.buildingRetailToolbox="BuildingRetailToolbox",e.buildingShop="BuildingShop",e.buildingSkyscraper="BuildingSkyscraper",e.calculator="Calculator",e.calendarLtr="CalendarLtr",e.calendarRtl="CalendarRtl",e.call="Call",e.calligraphyPen="CalligraphyPen",e.camera="Camera",e.cameraDome="CameraDome",e.car="Car",e.cart="Cart",e.cat="Cat",e.certificate="Certificate",e.chartMultiple="ChartMultiple",e.chat="Chat",e.chatMultiple="ChatMultiple",e.chatVideo="ChatVideo",e.check="Check",e.checkboxChecked="CheckboxChecked",e.checkboxUnchecked="CheckboxUnchecked",e.checkmark="Checkmark",e.chess="Chess",e.city="City",e.class="Class",e.classification="Classification",e.clipboard="Clipboard",e.clipboardDataBar="ClipboardDataBar",e.clipboardPulse="ClipboardPulse",e.clipboardTask="ClipboardTask",e.clock="Clock",e.clockAlarm="ClockAlarm",e.cloud="Cloud",e.cloudWords="CloudWords",e.code="Code",e.collections="Collections",e.comment="Comment",e.commentMultiple="CommentMultiple",e.communication="Communication",e.compassNorthwest="CompassNorthwest",e.conferenceRoom="ConferenceRoom",e.connector="Connector",e.constellation="Constellation",e.contactCard="ContactCard",e.cookies="Cookies",e.couch="Couch",e.creditCardPerson="CreditCardPerson",e.creditCardToolbox="CreditCardToolbox",e.cube="Cube",e.cubeMultiple="CubeMultiple",e.cubeTree="CubeTree",e.currencyDollarEuro="CurrencyDollarEuro",e.currencyDollarRupee="CurrencyDollarRupee",e.dataArea="DataArea",e.database="Database",e.databaseMultiple="DatabaseMultiple",e.dataFunnel="DataFunnel",e.dataHistogram="DataHistogram",e.dataLine="DataLine",e.dataPie="DataPie",e.dataScatter="DataScatter",e.dataSunburst="DataSunburst",e.dataTreemap="DataTreemap",e.dataWaterfall="DataWaterfall",e.dataWhisker="DataWhisker",e.dentist="Dentist",e.designIdeas="DesignIdeas",e.desktop="Desktop",e.desktopMac="DesktopMac",e.developerBoard="DeveloperBoard",e.deviceMeetingRoom="DeviceMeetingRoom",e.diagram="Diagram",e.dialpad="Dialpad",e.diamond="Diamond",e.dinosaur="Dinosaur",e.directions="Directions",e.disaster="Disaster",e.diversity="Diversity",e.dNA="DNA",e.doctor="Doctor",e.document="Document",e.documentData="DocumentData",e.documentLandscape="DocumentLandscape",e.documentMultiple="DocumentMultiple",e.documentPdf="DocumentPdf",e.documentQueue="DocumentQueue",e.documentText="DocumentText",e.dog="Dog",e.door="Door",e.doorTag="DoorTag",e.drafts="Drafts",e.drama="Drama",e.drinkBeer="DrinkBeer",e.drinkCoffee="DrinkCoffee",e.drinkMargarita="DrinkMargarita",e.drinkToGo="DrinkToGo",e.drinkWine="DrinkWine",e.driveTrain="DriveTrain",e.drop="Drop",e.dualScreen="DualScreen",e.dumbbell="Dumbbell",e.earth="Earth",e.emoji="Emoji",e.emojiAngry="EmojiAngry",e.emojiHand="EmojiHand",e.emojiLaugh="EmojiLaugh",e.emojiMeh="EmojiMeh",e.emojiMultiple="EmojiMultiple",e.emojiSad="EmojiSad",e.emojiSadSlight="EmojiSadSlight",e.emojiSmileSlight="EmojiSmileSlight",e.emojiSparkle="EmojiSparkle",e.emojiSurprise="EmojiSurprise",e.engine="Engine",e.eraser="Eraser",e.eye="Eye",e.eyedropper="Eyedropper",e.fax="Fax",e.fingerprint="Fingerprint",e.firstAid="FirstAid",e.flag="Flag",e.flash="Flash",e.flashlight="Flashlight",e.flow="Flow",e.flowchart="Flowchart",e.folder="Folder",e.folderOpen="FolderOpen",e.folderOpenVertical="FolderOpenVertical",e.folderPerson="FolderPerson",e.folderZip="FolderZip",e.food="Food",e.foodApple="FoodApple",e.foodCake="FoodCake",e.foodEgg="FoodEgg",e.foodGrains="FoodGrains",e.foodPizza="FoodPizza",e.foodToast="FoodToast",e.galaxy="Galaxy",e.games="Games",e.ganttChart="GanttChart",e.gas="Gas",e.gasPump="GasPump",e.gauge="Gauge",e.gavel="Gavel",e.gift="Gift",e.giftCard="GiftCard",e.glasses="Glasses",e.globe="Globe",e.globeSurface="GlobeSurface",e.grid="Grid",e.gridDots="GridDots",e.gridKanban="GridKanban",e.guardian="Guardian",e.guest="Guest",e.guitar="Guitar",e.handLeft="HandLeft",e.handRight="HandRight",e.handshake="Handshake",e.hardDrive="HardDrive",e.hatGraduation="HatGraduation",e.headphones="Headphones",e.headphonesSoundWave="HeadphonesSoundWave",e.headset="Headset",e.headsetVr="HeadsetVr",e.heart="Heart",e.heartBroken="HeartBroken",e.heartCircle="HeartCircle",e.heartHuman="HeartHuman",e.heartPulse="HeartPulse",e.history="History",e.home="Home",e.homeMore="HomeMore",e.homePerson="HomePerson",e.icons="Icons",e.image="Image",e.imageGlobe="ImageGlobe",e.imageMultiple="ImageMultiple",e.iot="Iot",e.joystick="Joystick",e.justice="Justice",e.key="Key",e.keyboard="Keyboard",e.keyboardLayoutSplit="KeyboardLayoutSplit",e.keyMultiple="KeyMultiple",e.languages="Languages",e.laptop="Laptop",e.lasso="Lasso",e.launcherSettings="LauncherSettings",e.layer="Layer",e.leaf="Leaf",e.leafOne="LeafOne",e.leafThree="LeafThree",e.leafTwo="LeafTwo",e.library="Library",e.lightbulb="Lightbulb",e.lightbulbFilament="LightbulbFilament",e.likert="Likert",e.link="Link",e.localLanguage="LocalLanguage",e.location="Location",e.lockClosed="LockClosed",e.lockMultiple="LockMultiple",e.lockOpen="LockOpen",e.lottery="Lottery",e.luggage="Luggage",e.mail="Mail",e.mailInbox="MailInbox",e.mailMultiple="MailMultiple",e.map="Map",e.mapPin="MapPin",e.markdown="Markdown",e.mathFormula="MathFormula",e.mathSymbols="MathSymbols",e.max="Max",e.megaphone="Megaphone",e.megaphoneLoud="MegaphoneLoud",e.mention="Mention",e.mic="Mic",e.microscope="Microscope",e.midi="Midi",e.molecule="Molecule",e.money="Money",e.moneyHand="MoneyHand",e.mountain="Mountain",e.movieCamera="MovieCamera",e.moviesAndTv="MoviesAndTv",e.musicNote="MusicNote",e.musicNote1="MusicNote1",e.musicNote2="MusicNote2",e.myLocation="MyLocation",e.nByN="NByN",e.nByOne="NByOne",e.news="News",e.notablePeople="NotablePeople",e.note="Note",e.notebook="Notebook",e.notepad="Notepad",e.notepadPerson="NotepadPerson",e.oneByN="OneByN",e.oneByOne="OneByOne",e.options="Options",e.organization="Organization",e.organizationHorizontal="OrganizationHorizontal",e.oval="Oval",e.paintBrush="PaintBrush",e.paintBucket="PaintBucket",e.partlySunnyWeather="PartlySunnyWeather",e.password="Password",e.patch="Patch",e.patient="Patient",e.payment="Payment",e.pen="Pen",e.pentagon="Pentagon",e.people="People",e.peopleAudience="PeopleAudience",e.peopleCall="PeopleCall",e.peopleCommunity="PeopleCommunity",e.peopleMoney="PeopleMoney",e.peopleQueue="PeopleQueue",e.peopleTeam="PeopleTeam",e.peopleToolbox="PeopleToolbox",e.person="Person",e.personBoard="PersonBoard",e.personCall="PersonCall",e.personChat="PersonChat",e.personFeedback="PersonFeedback",e.personSupport="PersonSupport",e.personVoice="PersonVoice",e.phone="Phone",e.phoneDesktop="PhoneDesktop",e.phoneLaptop="PhoneLaptop",e.phoneShake="PhoneShake",e.phoneTablet="PhoneTablet",e.phoneVibrate="PhoneVibrate",e.photoFilter="PhotoFilter",e.pi="Pi",e.pictureInPicture="PictureInPicture",e.pilates="Pilates",e.pill="Pill",e.pin="Pin",e.pipeline="Pipeline",e.planet="Planet",e.playingCards="PlayingCards",e.plugConnected="PlugConnected",e.plugDisconnected="PlugDisconnected",e.pointScan="PointScan",e.poll="Poll",e.power="Power",e.predictions="Predictions",e.premium="Premium",e.presenter="Presenter",e.previewLink="PreviewLink",e.print="Print",e.production="Production",e.prohibited="Prohibited",e.projectionScreen="ProjectionScreen",e.protocolHandler="ProtocolHandler",e.pulse="Pulse",e.pulseSquare="PulseSquare",e.puzzlePiece="PuzzlePiece",e.qrCode="QrCode",e.radar="Radar",e.ram="Ram",e.readingList="ReadingList",e.realEstate="RealEstate",e.receipt="Receipt",e.reward="Reward",e.rhombus="Rhombus",e.ribbon="Ribbon",e.ribbonStar="RibbonStar",e.roadCone="RoadCone",e.rocket="Rocket",e.router="Router",e.rss="Rss",e.ruler="Ruler",e.run="Run",e.running="Running",e.satellite="Satellite",e.save="Save",e.savings="Savings",e.scales="Scales",e.scan="Scan",e.scratchpad="Scratchpad",e.screenPerson="ScreenPerson",e.screenshot="Screenshot",e.search="Search",e.serialPort="SerialPort",e.server="Server",e.serverMultiple="ServerMultiple",e.serviceBell="ServiceBell",e.settings="Settings",e.shapes="Shapes",e.shield="Shield",e.shieldTask="ShieldTask",e.shoppingBag="ShoppingBag",e.signature="Signature",e.sim="Sim",e.sleep="Sleep",e.smartwatch="Smartwatch",e.soundSource="SoundSource",e.soundWaveCircle="SoundWaveCircle",e.sparkle="Sparkle",e.speaker0="Speaker0",e.speaker2="Speaker2",e.sport="Sport",e.sportAmericanFootball="SportAmericanFootball",e.sportBaseball="SportBaseball",e.sportBasketball="SportBasketball",e.sportHockey="SportHockey",e.sportSoccer="SportSoccer",e.squareMultiple="SquareMultiple",e.squareShadow="SquareShadow",e.squaresNested="SquaresNested",e.stack="Stack",e.stackStar="StackStar",e.star="Star",e.starFilled="StarFilled",e.starHalf="StarHalf",e.starLineHorizontal3="StarLineHorizontal3",e.starOneQuarter="StarOneQuarter",e.starThreeQuarter="StarThreeQuarter",e.status="Status",e.steps="Steps",e.stethoscope="Stethoscope",e.sticker="Sticker",e.storage="Storage",e.stream="Stream",e.streamInput="StreamInput",e.streamInputOutput="StreamInputOutput",e.streamOutput="StreamOutput",e.styleGuide="StyleGuide",e.subGrid="SubGrid",e.subtitles="Subtitles",e.surfaceEarbuds="SurfaceEarbuds",e.surfaceHub="SurfaceHub",e.symbols="Symbols",e.syringe="Syringe",e.system="System",e.tabDesktop="TabDesktop",e.tabInprivateAccount="TabInprivateAccount",e.table="Table",e.tableImage="TableImage",e.tableMultiple="TableMultiple",e.tablet="Tablet",e.tabs="Tabs",e.tag="Tag",e.tagCircle="TagCircle",e.tagMultiple="TagMultiple",e.target="Target",e.targetArrow="TargetArrow",e.teddy="Teddy",e.temperature="Temperature",e.tent="Tent",e.tetrisApp="TetrisApp",e.textbox="Textbox",e.textQuote="TextQuote",e.thinking="Thinking",e.thumbDislike="ThumbDislike",e.thumbLike="ThumbLike",e.ticketDiagonal="TicketDiagonal",e.ticketHorizontal="TicketHorizontal",e.timeAndWeather="TimeAndWeather",e.timeline="Timeline",e.timer="Timer",e.toolbox="Toolbox",e.topSpeed="TopSpeed",e.translate="Translate",e.transmission="Transmission",e.treeDeciduous="TreeDeciduous",e.treeEvergreen="TreeEvergreen",e.trophy="Trophy",e.tv="Tv",e.tvUsb="TvUsb",e.umbrella="Umbrella",e.usbPlug="UsbPlug",e.usbStick="UsbStick",e.vault="Vault",e.vehicleBicycle="VehicleBicycle",e.vehicleBus="VehicleBus",e.vehicleCab="VehicleCab",e.vehicleCar="VehicleCar",e.vehicleCarCollision="VehicleCarCollision",e.vehicleCarProfileLtr="VehicleCarProfileLtr",e.vehicleCarProfileRtl="VehicleCarProfileRtl",e.vehicleShip="VehicleShip",e.vehicleSubway="VehicleSubway",e.vehicleTruck="VehicleTruck",e.vehicleTruckBag="VehicleTruckBag",e.vehicleTruckCube="VehicleTruckCube",e.vehicleTruckProfile="VehicleTruckProfile",e.video="Video",e.video360="Video360",e.videoChat="VideoChat",e.videoClip="VideoClip",e.videoClipMultiple="VideoClipMultiple",e.videoPerson="VideoPerson",e.videoRecording="VideoRecording",e.videoSecurity="VideoSecurity",e.viewDesktop="ViewDesktop",e.viewDesktopMobile="ViewDesktopMobile",e.violin="Violin",e.virtualNetwork="VirtualNetwork",e.voicemail="Voicemail",e.vote="Vote",e.walkieTalkie="WalkieTalkie",e.wallet="Wallet",e.walletCreditCard="WalletCreditCard",e.wallpaper="Wallpaper",e.wand="Wand",e.warning="Warning",e.weatherBlowingSnow="WeatherBlowingSnow",e.weatherCloudy="WeatherCloudy",e.weatherDrizzle="WeatherDrizzle",e.weatherDuststorm="WeatherDuststorm",e.weatherFog="WeatherFog",e.weatherHailDay="WeatherHailDay",e.weatherHailNight="WeatherHailNight",e.weatherHaze="WeatherHaze",e.weatherMoon="WeatherMoon",e.weatherPartlyCloudyDay="WeatherPartlyCloudyDay",e.weatherPartlyCloudyNight="WeatherPartlyCloudyNight",e.weatherRain="WeatherRain",e.weatherRainShowersDay="WeatherRainShowersDay",e.weatherRainShowersNight="WeatherRainShowersNight",e.weatherRainSnow="WeatherRainSnow",e.weatherSnow="WeatherSnow",e.weatherSnowflake="WeatherSnowflake",e.weatherSnowShowerDay="WeatherSnowShowerDay",e.weatherSnowShowerNight="WeatherSnowShowerNight",e.weatherSqualls="WeatherSqualls",e.weatherSunnyHigh="WeatherSunnyHigh",e.weatherSunnyLow="WeatherSunnyLow",e.weatherThunderstorm="WeatherThunderstorm",e.webAsset="WebAsset",e.whiteboard="Whiteboard",e.wifi1="Wifi1",e.wifi2="Wifi2",e.window="Window",e.windowMultiple="WindowMultiple",e.windowWrench="WindowWrench",e.wrench="Wrench",e.wrenchScrewdriver="WrenchScrewdriver",e.xray="Xray",e.yoga="Yoga"}(e.EntityCompactLayoutIcons||(e.EntityCompactLayoutIcons={})),function(e){e.array="Array",e.entity="Entity",e.root="Root",e.double="Double",e.string="String",e.boolean="Boolean"}(e.ReferenceValueType||(e.ReferenceValueType={})),function(e){e.array="Array",e.boolean="Boolean",e.double="Double",e.entity="Entity",e.empty="Empty",e.error="Error",e.formattedNumber="FormattedNumber",e.function="Function",e.linkedEntity="LinkedEntity",e.reference="Reference",e.string="String",e.notAvailable="NotAvailable",e.webImage="WebImage"}(e.CellValueType||(e.CellValueType={})),function(e){e.unknown="Unknown",e.serviceError="ServiceError",e.externalLinks="ExternalLinks",e.externalLinksNonCloudLocation="ExternalLinksNonCloudLocation",e.dataTypeNoConnection="DataTypeNoConnection",e.dataTypeServiceError="DataTypeServiceError",e.missingContent="MissingContent",e.requestThrottle="RequestThrottle",e.externalLinksFailedToRefresh="ExternalLinksFailedToRefresh",e.externalLinksAccessFailed="ExternalLinksAccessFailed",e.externalLinksServerError="ExternalLinksServerError",e.externalLinksInvalidRequest="ExternalLinksInvalidRequest",e.externalLinksUnAuthenticated="ExternalLinksUnAuthenticated",e.externalLinksThrottledByHost="ExternalLinksThrottledByHost",e.externalLinksFileTooLarge="ExternalLinksFileTooLarge",e.outdatedLinkedEntity="OutdatedLinkedEntity",e.genericServerError="GenericServerError"}(e.ConnectErrorCellValueSubType||(e.ConnectErrorCellValueSubType={})),function(e){e.blocked="Blocked",e.busy="Busy",e.calc="Calc",e.connect="Connect",e.div0="Div0",e.external="External",e.field="Field",e.gettingData="GettingData",e.notAvailable="NotAvailable",e.name="Name",e.null="Null",e.num="Num",e.placeholder="Placeholder",e.ref="Ref",e.spill="Spill",e.value="Value"}(e.ErrorCellValueType||(e.ErrorCellValueType={})),function(e){e.unknown="Unknown"}(e.ExternalErrorCellValueSubType||(e.ExternalErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.webImageMissingFilePart="WebImageMissingFilePart",e.dataProviderError="DataProviderError",e.richValueRelMissingFilePart="RichValueRelMissingFilePart"}(e.FieldErrorCellValueSubType||(e.FieldErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.arrayTooLarge="ArrayTooLarge"}(e.NumErrorCellValueSubType||(e.NumErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.externalLinksStructuredRef="ExternalLinksStructuredRef",e.externalLinksCalculatedRef="ExternalLinksCalculatedRef"}(e.RefErrorCellValueSubType||(e.RefErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.collision="Collision",e.indeterminateSize="IndeterminateSize",e.worksheetEdge="WorksheetEdge",e.outOfMemoryWhileCalc="OutOfMemoryWhileCalc",e.table="Table",e.mergedCell="MergedCell"}(e.SpillErrorCellValueSubType||(e.SpillErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.vlookupColumnIndexLessThanOne="VlookupColumnIndexLessThanOne",e.vlookupResultNotFound="VlookupResultNotFound",e.hlookupRowIndexLessThanOne="HlookupRowIndexLessThanOne",e.hlookupResultNotFound="HlookupResultNotFound",e.coerceStringToNumberInvalid="CoerceStringToNumberInvalid",e.coerceStringToBoolInvalid="CoerceStringToBoolInvalid",e.coerceStringToInvalidType="CoerceStringToInvalidType",e.subArrayStartRowMissingEndRowNot="SubArrayStartRowMissingEndRowNot",e.subArrayStartColumnMissingEndColumnNot="SubArrayStartColumnMissingEndColumnNot",e.invalidImageUrl="InvalidImageUrl",e.stockHistoryNonTradingDays="StockHistoryNonTradingDays",e.stockHistoryNotAStock="StockHistoryNotAStock",e.stockHistoryInvalidDate="StockHistoryInvalidDate",e.stockHistoryEndBeforeStart="StockHistoryEndBeforeStart",e.stockHistoryStartInFuture="StockHistoryStartInFuture",e.stockHistoryInvalidEnum="StockHistoryInvalidEnum",e.stockHistoryOnlyDateRequested="StockHistoryOnlyDateRequested",e.stockHistoryNotFound="StockHistoryNotFound",e.lambdaWrongParamCount="LambdaWrongParamCount"}(e.ValueErrorCellValueSubType||(e.ValueErrorCellValueSubType={}));var n=function(e){function t(t){var n=e.call(this,t)||this;return n._customData="WacPartition",n.m_wacWorkbook=E(r,n),n._rootObject=n.m_wacWorkbook,n._rootObjectPropertyName="wacWorkbook",n}return __extends(t,e),Object.defineProperty(t.prototype,"wacWorkbook",{get:function(){return this.m_wacWorkbook},enumerable:!0,configurable:!0}),t}(OfficeCore.RequestContext),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.createAndOpenWorkbook=function(e){T(this,"CreateAndOpenWorkbook",0,[e],0,0)},t}(OfficeExtension.ClientObject);function o(e){return e[0].toLowerCase()+e.slice(1)}e.createWorkbook=function(e){return k("Excel.createWorkbook",C,"1.8",O),t({delayForCellEdit:!0},(function(t){t instanceof n?t.wacWorkbook.createAndOpenWorkbook(e):t.workbook.application.createWorkbook(e).open()}))};var i,a,s,l=[["RedDownArrow","YellowSideArrow","GreenUpArrow"],["GrayDownArrow","GraySideArrow","GrayUpArrow"],["RedFlag","YellowFlag","GreenFlag"],["RedCircleWithBorder","YellowCircle","GreenCircle"],["RedTrafficLight","YellowTrafficLight","GreenTrafficLight"],["RedDiamond","YellowTriangle","GreenCircle"],["RedCrossSymbol","YellowExclamationSymbol","GreenCheckSymbol"],["RedCross","YellowExclamation","GreenCheck"],["RedDownArrow","YellowDownInclineArrow","YellowUpInclineArrow","GreenUpArrow"],["GrayDownArrow","GrayDownInclineArrow","GrayUpInclineArrow","GrayUpArrow"],["BlackCircle","GrayCircle","PinkCircle","RedCircle"],["OneBar","TwoBars","ThreeBars","FourBars"],["BlackCircleWithBorder","RedCircleWithBorder","YellowCircle","GreenCircle"],["RedDownArrow","YellowDownInclineArrow","YellowSideArrow","YellowUpInclineArrow","GreenUpArrow"],["GrayDownArrow","GrayDownInclineArrow","GraySideArrow","GrayUpInclineArrow","GrayUpArrow"],["NoBars","OneBar","TwoBars","ThreeBars","FourBars"],["WhiteCircleAllWhiteQuarters","CircleWithThreeWhiteQuarters","CircleWithTwoWhiteQuarters","CircleWithOneWhiteQuarter","BlackCircle"],["SilverStar","HalfGoldStar","GoldStar"],["RedDownTriangle","YellowDash","GreenUpTriangle"],["NoFilledBoxes","OneFilledBox","TwoFilledBoxes","ThreeFilledBoxes","FourFilledBoxes"]];function u(e,t,n,r){if(Array.isArray(n)&&n.length>0&&Array.isArray(n[0])&&n.length*n[0].length>1500&&p()){var o=Math.max(1,Math.round(1500/n[0].length));e._ValidateArraySize(n.length,n[0].length);for(var i=0;i<n.length;i+=o){var a=o;i+a>n.length&&(a=n.length-i);var s=e.getRow(i).untrack().getBoundingRect(e.getRow(i+a-1).untrack()).untrack(),l=n.slice(i,i+a);w(s,t,l,null!=r?r:0)}return!0}return!1}function c(e){return OfficeExtension.Utility.isSetSupported("ExcelApi",e.toString())}function p(){return c(1.3)}function f(e){return!("undefined"==typeof window||!window.Office||!window.Office.context)&&window.Office.context.platform===e}e.icons={},["ThreeArrows","ThreeArrowsGray","ThreeFlags","ThreeTrafficLights1","ThreeTrafficLights2","ThreeSigns","ThreeSymbols","ThreeSymbols2","FourArrows","FourArrowsGray","FourRedToBlack","FourRating","FourTrafficLights","FiveArrows","FiveArrowsGray","FiveRating","FiveQuarters","ThreeStars","ThreeTriangles","FiveBoxes"].map((function(t,n){var r=o(t);e.icons[r]=[],l[n].map((function(n,i){n=o(n);var a={set:t,index:i};e.icons[r].push(a),e.icons[r][n]=a}))})),function(e){e.NotStarted="notStarted",e.Running="running",e.Succeeded="succeeded",e.Failed="failed"}(i||(i={})),function(e){e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NoContent=204]="NoContent",e[e.HighestSuccessCode=299]="HighestSuccessCode",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(a||(a={})),function(e){e.Close="Session.close",e.CommitChanges="Session.commitChanges",e.Create="Session.resolveRequestUrlAndHeaderInfo",e.Refresh="Session.refreshSession"}(s=e.SessionOperation||(e.SessionOperation={}));var h=function(){function e(t,n,r){var o=void 0===r?{}:r,i=o.persistChanges,a=void 0===i||i,s=o.commitExplicitly,l=void 0===s||s;this.m_requestId="",this.m_workbookUrl=t?e.ensureUrlFormatEndWithSlash(t):"",this.m_requestHeaders=n||{},this.m_persistChanges=a,this.m_commitExplicitly=l}return Object.defineProperty(e.prototype,"requestId",{get:function(){return this.m_requestId},enumerable:!0,configurable:!0}),e.prototype.close=function(){var t=this;if(this.m_requestUrlAndHeaderInfo&&!OfficeExtension.Utility._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)){var n={method:"POST",url:this.buildRestApiUrl(this.m_requestUrlAndHeaderInfo.url,e.CLOSE_SESSION),headers:this.m_requestUrlAndHeaderInfo.headers,body:""};return OfficeExtension.HttpUtility.sendRequest(n).then((function(n){if(n.statusCode!==a.NoContent)throw e.createErrorFromResponseInfo(n,s.Close);for(var r in t.m_requestUrlAndHeaderInfo=null,t.m_requestHeaders)if(r.toLowerCase()===e.WorkbookSessionIdHeaderNameLower){delete t.m_requestHeaders[r];break}}))}return OfficeExtension.Utility._createPromiseFromResult(null)},e.prototype.commitChanges=function(t){var n=this;if(void 0===t&&(t={}),!this.m_commitExplicitly)throw e.createError(a.InternalServerError,"Can not call commitChanges() if commitExplicitly is not set.",s.CommitChanges);if(!this.m_workbookUrl||OfficeExtension.Utility._isLocalDocumentUrl(this.m_workbookUrl))throw e.createError(a.InternalServerError,"Not supported for local documents.",s.CommitChanges);if(!this.m_requestUrlAndHeaderInfo)throw e.createError(a.InternalServerError,"Need to call this._resolveRequestUrlAndHeaderInfo() to get the session id first.",s.CommitChanges);var r=this.createCommitChangesRequestInfo(t);return OfficeExtension.HttpUtility.sendRequest(r).then((function(r){var o=r.statusCode;if(o===a.Accepted)return e.delay(e.POLL_DELAY).then((function(o){return n.pollResourceLocation(e.getHeaderIgnoreCase(r.headers,e.LOCATION_HEADER),s.CommitChanges,t)})).then((function(t){if(JSON.parse(t.body).status===i.Failed)throw e.createErrorFromResponseInfo(t,s.CommitChanges);return e.parseCooldownTime(t)}));if(o>=a.OK&&o<=a.HighestSuccessCode)return e.parseCooldownTime(r);throw e.createErrorFromResponseInfo(r,s.CommitChanges)}))},e.prototype._resolveRequestUrlAndHeaderInfo=function(t){var n=this;if(void 0===t&&(t={}),this.m_requestUrlAndHeaderInfo)return OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);if(!this.m_workbookUrl||OfficeExtension.Utility._isLocalDocumentUrl(this.m_workbookUrl))return this.m_requestUrlAndHeaderInfo={url:this.m_workbookUrl,headers:this.m_requestHeaders},OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);if(e.getHeaderIgnoreCase(this.m_requestHeaders,e.WorkbookSessionIdHeaderNameLower))return this.m_requestUrlAndHeaderInfo={url:this.m_workbookUrl,headers:this.m_requestHeaders},OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);var r=this.createAsyncGraphSessionRequestInfo(t);return OfficeExtension.HttpUtility.sendRequest(r).then((function(r){if(n.m_requestId=e.getHeaderIgnoreCase(r.headers,e.REQUEST_ID_HEADER),r.statusCode!==a.Accepted&&r.statusCode!==a.Created)throw e.createErrorFromResponseInfo(r,s.Create);return r.statusCode===a.Created?(n.formatRequestUrlAndHeaderInfo(r),r):e.delay(e.POLL_DELAY).then((function(o){return n.pollResourceLocation(e.getHeaderIgnoreCase(r.headers,e.LOCATION_HEADER),s.Create,t)})).then((function(o){var a=JSON.parse(o.body);if(a.status===i.Failed)throw e.createErrorFromResponseInfo(o,s.Create);var l={method:"GET",url:a.resourceLocation,headers:__assign({},t,{Authorization:e.getHeaderIgnoreCase(n.m_requestHeaders,e.AUTHORIZATION_HEADER)}),body:void 0};return OfficeExtension.HttpUtility.sendRequest(l).then((function(e){return n.formatRequestUrlAndHeaderInfo(e),r}))}))}))},e.prototype.refreshSession=function(){if(!this.m_workbookUrl||OfficeExtension.Utility._isLocalDocumentUrl(this.m_workbookUrl))throw e.createError(a.InternalServerError,"Not supported for local documents.",s.Refresh);if(!this.m_requestUrlAndHeaderInfo)throw e.createError(a.InternalServerError,"Need to call this._resolveRequestUrlAndHeaderInfo() to get the session id first.",s.Refresh);var t=this.createRefreshSessionRequestInfo();return OfficeExtension.HttpUtility.sendRequest(t).then((function(t){if(t.statusCode!=a.NoContent)throw e.createErrorFromResponseInfo(t,s.Refresh);return OfficeExtension.Utility._createPromiseFromResult(null)}))},e.getHeaderIgnoreCase=function(e,t){var n=Object.keys(e).filter((function(e){return e.toLowerCase()===t.toLowerCase()}));return n.length>0?e[n[0]]:void 0},e.prototype.createCommitChangesRequestInfo=function(t){void 0===t&&(t={});var n=this.buildRestApiUrl(this.m_workbookUrl,e.COMMIT_CHANGES),r={};return OfficeExtension.Utility._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,r),OfficeExtension.Utility._copyHeaders(t,r),r[e.PREFER_HEADER]=e.PREFER_HEADER_VAL,{url:n,method:"POST",headers:r,body:{}}},e.prototype.createAsyncGraphSessionRequestInfo=function(t){void 0===t&&(t={});var n=this.buildRestApiUrl(this.m_workbookUrl,e.CREATE_SESSION),r={};return OfficeExtension.Utility._copyHeaders(this.m_requestHeaders,r),OfficeExtension.Utility._copyHeaders(t,r),r[e.CONTENT_TYPE_HEADER]=e.CONTENT_TYPE_HEADER_VAL,r[e.PREFER_HEADER]=e.PREFER_HEADER_VAL,{url:n,method:"POST",headers:r,body:{persistChanges:this.m_persistChanges,commitExplicitly:this.m_commitExplicitly}}},e.prototype.createRefreshSessionRequestInfo=function(){var t=this.buildRestApiUrl(this.m_workbookUrl,e.REFRESH_SESSION),n={};return OfficeExtension.Utility._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,n),n[e.CONTENT_TYPE_HEADER]=e.CONTENT_TYPE_HEADER_VAL,{url:t,method:"POST",headers:n,body:{}}},e.getCorrectGraphVersionUrl=function(t){return t.replace(new RegExp("graph.microsoft.com/.*?/"),"graph.microsoft.com/"+e.ASYNC_API_GRAPH_VERSION+"/")},e.prototype.buildRestApiUrl=function(t,n,r){void 0===r&&(r={});var o={};switch(OfficeExtension.Utility._copyHeaders(r,o),OfficeExtension.Utility._copyHeaders(this.m_requestHeaders,o),this.m_requestUrlAndHeaderInfo&&this.m_requestUrlAndHeaderInfo.headers&&OfficeExtension.Utility._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,o),e.getHeaderIgnoreCase(o,OfficeExtension.CommonConstants.remoteEndpointTypeHeaderKey)){case OfficeExtension.RemoteEndpointType.graph.toString():var i=new URL(e.getCorrectGraphVersionUrl(t)),a=i.pathname.split("/");return n&&a.push(n),i.pathname=a.join("/"),i.toString();case OfficeExtension.RemoteEndpointType.wfe.toString():var s=new URL(t);n&&s.searchParams.set("wdRestPart","_api/"+n);var l=e.getHeaderIgnoreCase(o,e.WorkbookSessionIdHeaderNameLower);if(l=l||e.getHeaderIgnoreCase(o,e.WorkbookSessionIdHeaderNameLower)){var u=l.match(/cluster=(.*?[^\&]+)/);u&&s.searchParams.set("waccluster",u[1])}return s.toString();default:return t}},e.prototype.pollResourceLocation=function(t,n,r,o){var s=this;if(void 0===r&&(r={}),void 0===o&&(o=0),o>=e.MAX_POLL_ATTEMPTS)throw e.createError(a.InternalServerError,"Timout while polling for the resource location.",n);var l={method:"GET",url:t,headers:__assign({},r,{Authorization:e.getHeaderIgnoreCase(this.m_requestHeaders,e.AUTHORIZATION_HEADER)}),body:void 0};return OfficeExtension.HttpUtility.sendRequest(l).then((function(l){if(l.statusCode!==a.OK)return s.pollResourceLocation(t,n,r,o+1);switch(JSON.parse(l.body).status){case i.Succeeded:case i.Failed:return l;case i.NotStarted:case i.Running:return e.delay(e.POLL_DELAY).then((function(e){return s.pollResourceLocation(t,n,r,o+1)}));default:throw e.createErrorFromResponseInfo(l,n)}}))},e.parseCooldownTime=function(t){var n=e.getHeaderIgnoreCase(t.headers,e.RETRY_AFTER_HEADER);return n?1e3*parseInt(n):e.DEFAULT_COMMIT_CHANGES_RETRY_AFTER},e.prototype.formatRequestUrlAndHeaderInfo=function(t){if(t.statusCode!==a.OK&&t.statusCode!==a.Created)throw e.createErrorFromResponseInfo(t,s.Create);var n=JSON.parse(t.body).id,r={};OfficeExtension.Utility._copyHeaders(this.m_requestHeaders,r),r[e.WorkbookSessionIdHeaderName]=n,this.m_requestUrlAndHeaderInfo={url:this.buildRestApiUrl(this.m_workbookUrl,void 0,r),headers:r}},e.ensureUrlFormatEndWithSlash=function(e){return"/"!==e.charAt(e.length-1)&&(e+="/"),e},e.delay=function(e){return new OfficeExtension.CoreUtility.Promise((function(t,n){return setTimeout((function(){return t()}),e)}))},e.createErrorFromResponseInfo=function(t,n){var r=OfficeExtension.Utility._parseErrorResponse(t),o={retryAfter:e.getHeaderIgnoreCase(t.headers,e.RETRY_AFTER_HEADER),responseBody:OfficeExtension.Utility._parseErrorResponseBody(t)};return OfficeExtension.Utility.createRuntimeError(r.errorCode,r.errorMessage,n,t.statusCode,o)},e.createError=function(e,t,n){return OfficeExtension.Utility.createRuntimeError(""+e,t,n)},e.WorkbookSessionIdHeaderName="Workbook-Session-Id",e.WorkbookSessionIdHeaderNameLower="workbook-session-id",e.ASYNC_API_GRAPH_VERSION="beta",e.POLL_DELAY=1e4,e.MAX_POLL_ATTEMPTS=10,e.DEFAULT_COMMIT_CHANGES_RETRY_AFTER=1e4,e.LOCATION_HEADER="location",e.AUTHORIZATION_HEADER="authorization",e.REQUEST_ID_HEADER="request-id",e.RETRY_AFTER_HEADER="retry-after",e.PREFER_HEADER="Prefer",e.PREFER_HEADER_VAL="respond-async",e.CONTENT_TYPE_HEADER="Content-Type",e.CONTENT_TYPE_HEADER_VAL="application/json",e.CLOSE_SESSION="closeSession",e.COMMIT_CHANGES="commitChanges",e.CREATE_SESSION="createSession",e.REFRESH_SESSION="refreshSession",e}();e.Session=h;var d=function(t){function n(n){var r=t.call(this,n)||this;return r.m_workbook=E(e.Workbook,r),r._rootObject=r.m_workbook,r._rootObjectPropertyName="workbook",r}return __extends(n,t),n.prototype._processOfficeJsErrorResponse=function(e,t){5004===e&&(t.ErrorCode=Ui.invalidOperationInCellEditMode,t.HttpStatusCode=400,t.ErrorMessage=OfficeExtension.Utility._getResourceString(OfficeExtension.ResourceStrings.invalidOperationInCellEditMode))},Object.defineProperty(n.prototype,"workbook",{get:function(){return this.m_workbook},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"application",{get:function(){return this.workbook.application},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"runtime",{get:function(){return this.workbook._Runtime},enumerable:!0,configurable:!0}),n}(OfficeCore.RequestContext);function y(e,t){var n=e;n.delayForCellEdit&&OfficeExtension.CommonUtility.isSetSupported("DelayForCellEdit")?t._requestFlagModifier|=64:t._requestFlagModifier&=-65,n._makerSafe&&(t._requestFlagModifier|=1024)}function m(e,t){}function g(e){var t={BindingColumnCount:e.bindingColumnCount,BindingId:e.bindingId,BindingRowCount:e.bindingRowCount,bindingType:e.bindingType,HasHeaders:e.hasHeaders};return window.OSF.DDA.OMFactory.manufactureBinding(t,window.Microsoft.Office.WebExtension.context.document)}function _(e,t){var n;return n=null==e.headers?e.rows:e,void 0===(n=window.OSF.DDA.DataCoercion.coerceData(n,t[window.Microsoft.Office.WebExtension.Parameters.CoercionType]))?null:n}function b(e){if(!("undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.diagnostics&&window.Office.context.diagnostics.version))return!1;var t=window.Office.context.diagnostics.platform.toLowerCase();if("officeonline"===t)return!1;var n=e[t];null==n&&(n=e.general);var r=window.Office.context.diagnostics.version,o=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(r);if(o){var i=parseInt(o[1]),a=parseInt(o[2]),s=parseInt(o[3]);if(i<n.desiredMajor)return!0;if(i===n.desiredMajor&&a<n.desiredMinor)return!0;if(i===n.desiredMajor&&a===n.desiredMinor&&s<n.desiredBuild){var l=o[4];if(/^3\d\d\d+$/.exec(l))return!0}}return!1}e.RequestContext=d,e.run=function(t,n){return OfficeExtension.ClientRequestContext._runBatch("Excel.run",arguments,(function(t){return new e.RequestContext(t)}),y,m)},e.runBatch=function(t,n){return OfficeExtension.ClientRequestContext._runExplicitBatch("Excel.runBatch",arguments,(function(t){return new e.RequestContext(t)}),y,m)},e._RedirectV1APIs=!1,e._V1APIMap={GetDataAsync:{call:function(e,t){return e.workbook._V1Api.bindingGetData(t)},postprocess:_},GetSelectedDataAsync:{call:function(e,t){return e.workbook._V1Api.getSelectedData(t)},postprocess:_},GoToByIdAsync:{call:function(e,t){return e.workbook._V1Api.gotoById(t)}},AddColumnsAsync:{call:function(e,t){return e.workbook._V1Api.bindingAddColumns(t)}},AddFromSelectionAsync:{call:function(e,t){return e.workbook._V1Api.bindingAddFromSelection(t)},postprocess:g},AddFromNamedItemAsync:{call:function(e,t){return e.workbook._V1Api.bindingAddFromNamedItem(t)},postprocess:g},AddFromPromptAsync:{call:function(e,t){return b({ios:{desiredMajor:2,desiredMinor:20,desiredBuild:0}})&&OfficeExtension.CommonUtility.isSetSupported("DelayForCellEdit")&&(e._requestFlagModifier|=64),e.workbook._V1Api.bindingAddFromPrompt(t)},postprocess:g},AddRowsAsync:{call:function(e,t){return e.workbook._V1Api.bindingAddRows(t)}},GetByIdAsync:{call:function(e,t){return e.workbook._V1Api.bindingGetById(t)},postprocess:g},ReleaseByIdAsync:{call:function(e,t){return e.workbook._V1Api.bindingReleaseById(t)}},GetAllAsync:{call:function(e){return e.workbook._V1Api.bindingGetAll()},postprocess:function(e){return e.bindings.map((function(e){return g(e)}))}},DeleteAllDataValuesAsync:{call:function(e,t){return e.workbook._V1Api.bindingDeleteAllDataValues(t)}},SetSelectedDataAsync:{preprocess:function(e){var t=e.cellFormat;return"undefined"!=typeof window&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):"undefined"!=typeof window&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),e},call:function(e,t){return e.workbook._V1Api.setSelectedData(t)}},SetDataAsync:{preprocess:function(e){var t=e.cellFormat;return"undefined"!=typeof window&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):"undefined"!=typeof window&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),e},call:function(e,t){return e.workbook._V1Api.bindingSetData(t)}},SetFormatsAsync:{preprocess:function(e){var t=e.cellFormat;return"undefined"!=typeof window&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):"undefined"!=typeof window&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),e},call:function(e,t){return e.workbook._V1Api.bindingSetFormats(t)}},SetTableOptionsAsync:{call:function(e,t){return e.workbook._V1Api.bindingSetTableOptions(t)}},ClearFormatsAsync:{call:function(e,t){return e.workbook._V1Api.bindingClearFormats(t)}},GetFilePropertiesAsync:{call:function(e){return e.workbook._V1Api.getFilePropertiesAsync()}}};var v;!function(e){e.office10EventIdBindingSelectionChangedEvent=3,e.office10EventIdBindingDataChangedEvent=4,e.office10EventIdDocumentSelectionChangedEvent=2,e.office10EventIdRichApiMessageEvent=5,e.office10EventIdSettingsChangedEvent=1}(v=e._CC||(e._CC={}));var O="Excel",C="ExcelApi",S=OfficeExtension.BatchApiHelper.createPropertyObject,P=OfficeExtension.BatchApiHelper.createMethodObject,A=OfficeExtension.BatchApiHelper.createIndexerObject,E=OfficeExtension.BatchApiHelper.createRootServiceObject,R=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,x=OfficeExtension.BatchApiHelper.createChildItemObject,T=OfficeExtension.BatchApiHelper.invokeMethod,I=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,w=OfficeExtension.BatchApiHelper.invokeSetProperty,F=OfficeExtension.Utility.isNullOrUndefined,N=OfficeExtension.Utility.isUndefined,D=OfficeExtension.Utility.throwIfNotLoaded,k=OfficeExtension.Utility.throwIfApiNotSupported,j=OfficeExtension.Utility.load,U=OfficeExtension.Utility.retrieve,M=OfficeExtension.Utility.toJson,H=OfficeExtension.Utility.fixObjectPathIfNecessary,L=OfficeExtension.Utility._handleNavigationPropertyResults,B=OfficeExtension.Utility.adjustToDateTime,W=OfficeExtension.Utility.processRetrieveResult,V=OfficeExtension.Utility.setMockData,G=OfficeExtension.CommonUtility.calculateApiFlags,q="AllowEditRange",J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"AllowEditRange"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["address","isPasswordProtected","title"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Address","IsPasswordProtected","Title"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"address",{get:function(){return D("address",this._A,q,this._isNull),this._A},set:function(e){this._A=e,w(this,"Address",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPasswordProtected",{get:function(){return D("isPasswordProtected",this._I,q,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return D("title",this._T,q,this._isNull),this._T},set:function(e){this._T=e,w(this,"Title",e,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["address","title"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.delete=function(){T(this,"Delete",0,[],0,0)},t.prototype.pauseProtection=function(e){T(this,"PauseProtection",0,[e],0,0)},t.prototype.setPassword=function(e){T(this,"SetPassword",0,[e],0,0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Address)||(this._A=n.Address),N(n.IsPasswordProtected)||(this._I=n.IsPasswordProtected),N(n.Title)||(this._T=n.Title)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{address:this._A,isPasswordProtected:this._I,title:this._T},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.AllowEditRange=J;var z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"AllowEditRangeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"AllowEditRangeCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(e,t,n){T(this,"Add",0,[e,t,n],0,0)},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.AllowEditRange,this,[t])},n.prototype.getItemAt=function(t){return P(e.AllowEditRange,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return P(e.AllowEditRange,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.pauseProtection=function(e){T(this,"PauseProtection",0,[e],0,0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.AllowEditRange,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.AllowEditRange,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.AllowEditRange,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.AllowEditRangeCollection=z,function(e){e.connectionOnly="ConnectionOnly",e.table="Table",e.pivotTable="PivotTable",e.pivotChart="PivotChart"}(e.LoadToType||(e.LoadToType={}));var K="Query",Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"Query"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["loadedTo","loadedToDataModel","name","refreshDate","rowsLoadedCount","error"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["LoadedTo","LoadedToDataModel","Name","RefreshDate","RowsLoadedCount","Error"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){return D("error",this._E,K,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadedTo",{get:function(){return D("loadedTo",this._L,K,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadedToDataModel",{get:function(){return D("loadedToDataModel",this._Lo,K,this._isNull),this._Lo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return D("name",this._N,K,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"refreshDate",{get:function(){return D("refreshDate",this._R,K,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsLoadedCount",{get:function(){return D("rowsLoadedCount",this._Ro,K,this._isNull),this._Ro},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Error)||(this._E=n.Error),N(n.LoadedTo)||(this._L=n.LoadedTo),N(n.LoadedToDataModel)||(this._Lo=n.LoadedToDataModel),N(n.Name)||(this._N=n.Name),N(n.RefreshDate)||(this._R=B(n.RefreshDate)),N(n.RowsLoadedCount)||(this._Ro=n.RowsLoadedCount)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){if(e.prototype._handleRetrieveResult.call(this,t,n),!F(t)){var r=t;N(r.RefreshDate)||(r.refreshDate=B(r.refreshDate)),W(this,t,n)}},t.prototype.toJSON=function(){return M(this,{},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.Query=Q;var X=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"QueryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"QueryCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.Query,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Query,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Query,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Query,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.QueryCollection=X,function(e){e.unknown="Unknown",e.none="None",e.failedLoadToWorksheet="FailedLoadToWorksheet",e.failedLoadToDataModel="FailedLoadToDataModel",e.failedDownload="FailedDownload",e.failedToCompleteDownload="FailedToCompleteDownload"}(e.QueryError||(e.QueryError={}));var Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"LinkedWorkbook"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return D("id",this._I,"LinkedWorkbook",this._isNull),this._I},enumerable:!0,configurable:!0}),t.prototype.breakLinks=function(){T(this,"BreakLinks",0,[],G(2,"ExcelApiUndo","1.20"),0)},t.prototype.refresh=function(){T(this,"Refresh",0,[],0,0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Id)||(this._I=n.Id)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),F(t)||N(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.LinkedWorkbook=Y;var Z="LinkedWorkbookCollection",$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"LinkedWorkbookCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["workbookLinksRefreshMode"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["WorkbookLinksRefreshMode"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,Z,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"workbookLinksRefreshMode",{get:function(){return D("workbookLinksRefreshMode",this._W,Z,this._isNull),this._W},set:function(e){this._W=e,w(this,"WorkbookLinksRefreshMode",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),n.prototype.breakAllLinks=function(){T(this,"BreakAllLinks",0,[],G(2,"ExcelApiUndo","1.20"),0)},n.prototype.getItem=function(t){return A(e.LinkedWorkbook,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.LinkedWorkbook,this,"GetItemOrNullObject",0,[t],!1,!1,null,G(2,"ExcelApiUndo","1.32"))},n.prototype.refreshAll=function(){T(this,"RefreshAll",0,[],0,0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.WorkbookLinksRefreshMode)||(this._W=r.WorkbookLinksRefreshMode),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.LinkedWorkbook,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.LinkedWorkbook,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.LinkedWorkbook,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.LinkedWorkbookCollection=$,function(e){e.manual="Manual",e.automatic="Automatic"}(e.WorkbookLinksRefreshMode||(e.WorkbookLinksRefreshMode={})),function(e){e.unknown="Unknown",e.localRange="LocalRange",e.localTable="LocalTable"}(e.DataSourceType||(e.DataSourceType={})),function(e){e.unknown="Unknown",e.equals="Equals",e.before="Before",e.beforeOrEqualTo="BeforeOrEqualTo",e.after="After",e.afterOrEqualTo="AfterOrEqualTo",e.between="Between",e.tomorrow="Tomorrow",e.today="Today",e.yesterday="Yesterday",e.nextWeek="NextWeek",e.thisWeek="ThisWeek",e.lastWeek="LastWeek",e.nextMonth="NextMonth",e.thisMonth="ThisMonth",e.lastMonth="LastMonth",e.nextQuarter="NextQuarter",e.thisQuarter="ThisQuarter",e.lastQuarter="LastQuarter",e.nextYear="NextYear",e.thisYear="ThisYear",e.lastYear="LastYear",e.yearToDate="YearToDate",e.allDatesInPeriodQuarter1="AllDatesInPeriodQuarter1",e.allDatesInPeriodQuarter2="AllDatesInPeriodQuarter2",e.allDatesInPeriodQuarter3="AllDatesInPeriodQuarter3",e.allDatesInPeriodQuarter4="AllDatesInPeriodQuarter4",e.allDatesInPeriodJanuary="AllDatesInPeriodJanuary",e.allDatesInPeriodFebruary="AllDatesInPeriodFebruary",e.allDatesInPeriodMarch="AllDatesInPeriodMarch",e.allDatesInPeriodApril="AllDatesInPeriodApril",e.allDatesInPeriodMay="AllDatesInPeriodMay",e.allDatesInPeriodJune="AllDatesInPeriodJune",e.allDatesInPeriodJuly="AllDatesInPeriodJuly",e.allDatesInPeriodAugust="AllDatesInPeriodAugust",e.allDatesInPeriodSeptember="AllDatesInPeriodSeptember",e.allDatesInPeriodOctober="AllDatesInPeriodOctober",e.allDatesInPeriodNovember="AllDatesInPeriodNovember",e.allDatesInPeriodDecember="AllDatesInPeriodDecember"}(e.DateFilterCondition||(e.DateFilterCondition={})),function(e){e.unknown="Unknown",e.equals="Equals",e.beginsWith="BeginsWith",e.endsWith="EndsWith",e.contains="Contains",e.greaterThan="GreaterThan",e.greaterThanOrEqualTo="GreaterThanOrEqualTo",e.lessThan="LessThan",e.lessThanOrEqualTo="LessThanOrEqualTo",e.between="Between"}(e.LabelFilterCondition||(e.LabelFilterCondition={})),function(e){e.unknown="Unknown",e.value="Value",e.manual="Manual",e.label="Label",e.date="Date"}(e.PivotFilterType||(e.PivotFilterType={})),function(e){e.items="Items",e.percent="Percent",e.sum="Sum"}(e.TopBottomSelectionType||(e.TopBottomSelectionType={})),function(e){e.unknown="Unknown",e.equals="Equals",e.greaterThan="GreaterThan",e.greaterThanOrEqualTo="GreaterThanOrEqualTo",e.lessThan="LessThan",e.lessThanOrEqualTo="LessThanOrEqualTo",e.between="Between",e.topN="TopN",e.bottomN="BottomN"}(e.ValueFilterCondition||(e.ValueFilterCondition={})),function(e){e.categories="Categories",e.values="Values",e.xvalues="XValues",e.yvalues="YValues",e.bubbleSizes="BubbleSizes"}(e.ChartSeriesDimension||(e.ChartSeriesDimension={})),function(e){e.unknown="Unknown",e.empty="Empty",e.mixed="Mixed",e.checkbox="Checkbox"}(e.CellControlType||(e.CellControlType={}));var ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"Runtime"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["enableEvents"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["EnableEvents"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableEvents",{get:function(){return D("enableEvents",this._E,"Runtime",this._isNull),k("Runtime.enableEvents",C,"1.8",O),this._E},set:function(e){this._E=e,w(this,"EnableEvents",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["enableEvents"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.EnableEvents)||(this._E=n.EnableEvents)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{enableEvents:this._E},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.Runtime=ee;var te="Application",ne=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Application"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["calculationMode","calculationEngineVersion","calculationState","decimalSeparator","thousandsSeparator","useSystemSeparators"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["CalculationMode","CalculationEngineVersion","CalculationState","DecimalSeparator","ThousandsSeparator","UseSystemSeparators"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!1,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["iterativeCalculation","ribbon","cultureInfo"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cultureInfo",{get:function(){return k("Application.cultureInfo",C,"1.11",O),this._Cu||(this._Cu=S(e.CultureInfo,this,"CultureInfo",!1,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"iterativeCalculation",{get:function(){return k("Application.iterativeCalculation",C,"1.9",O),this._I||(this._I=S(e.IterativeCalculation,this,"IterativeCalculation",!1,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ribbon",{get:function(){return k("Application.ribbon",C,"1.9",O),this._R||(this._R=S(e.Ribbon,this,"Ribbon",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calculationEngineVersion",{get:function(){return D("calculationEngineVersion",this._C,te,this._isNull),k("Application.calculationEngineVersion",C,"1.9",O),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calculationMode",{get:function(){return D("calculationMode",this._Ca,te,this._isNull),this._Ca},set:function(e){this._Ca=e,w(this,"CalculationMode",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calculationState",{get:function(){return D("calculationState",this._Cal,te,this._isNull),k("Application.calculationState",C,"1.9",O),this._Cal},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"decimalSeparator",{get:function(){return D("decimalSeparator",this._D,te,this._isNull),k("Application.decimalSeparator",C,"1.11",O),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"thousandsSeparator",{get:function(){return D("thousandsSeparator",this._T,te,this._isNull),k("Application.thousandsSeparator",C,"1.11",O),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"useSystemSeparators",{get:function(){return D("useSystemSeparators",this._U,te,this._isNull),k("Application.useSystemSeparators",C,"1.11",O),this._U},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["calculationMode"],["iterativeCalculation","ribbon"],["cultureInfo"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.calculate=function(e){T(this,"Calculate",0,[e],G(2,"ExcelApiUndo","1.36"),0)},n.prototype.createWorkbook=function(t){return k("Application.createWorkbook",C,"1.8",O),P(e.WorkbookCreated,this,"CreateWorkbook",1,[t],!1,!0,"_GetWorkbookCreatedById",0)},n.prototype.suspendApiCalculationUntilNextSync=function(){v.Application_SuspendApiCalculationUntilNextSync(this).handled||(k("Application.suspendApiCalculationUntilNextSync",C,"1.6",O),T(this,"SuspendApiCalculationUntilNextSync",0,[],G(2,"ExcelApiUndo","1.6"),0))},n.prototype.suspendScreenUpdatingUntilNextSync=function(){k("Application.suspendScreenUpdatingUntilNextSync",C,"1.9",O),T(this,"SuspendScreenUpdatingUntilNextSync",0,[],G(2,"ExcelApiUndo","1.6"),0)},n.prototype._GetWorkbookCreatedById=function(t){return k("Application._GetWorkbookCreatedById",C,"1.8",O),P(e.WorkbookCreated,this,"_GetWorkbookCreatedById",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.CalculationEngineVersion)||(this._C=n.CalculationEngineVersion),N(n.CalculationMode)||(this._Ca=n.CalculationMode),N(n.CalculationState)||(this._Cal=n.CalculationState),N(n.DecimalSeparator)||(this._D=n.DecimalSeparator),N(n.ThousandsSeparator)||(this._T=n.ThousandsSeparator),N(n.UseSystemSeparators)||(this._U=n.UseSystemSeparators),L(this,n,["cultureInfo","CultureInfo","iterativeCalculation","IterativeCalculation","ribbon","Ribbon"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{calculationEngineVersion:this._C,calculationMode:this._Ca,calculationState:this._Cal,decimalSeparator:this._D,thousandsSeparator:this._T,useSystemSeparators:this._U},{cultureInfo:this._Cu,iterativeCalculation:this._I,ribbon:this._R})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Application=ne,function(e){e.Application_SuspendApiCalculationUntilNextSync=function(e){return f("Mac")&&c(1.6)&&!c(1.7)?{handled:!0}:{handled:!1}}}(v=e._CC||(e._CC={}));var re="IterativeCalculation",oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"IterativeCalculation"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["enabled","maxIteration","maxChange"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Enabled","MaxIteration","MaxChange"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return D("enabled",this._E,re,this._isNull),this._E},set:function(e){this._E=e,w(this,"Enabled",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxChange",{get:function(){return D("maxChange",this._M,re,this._isNull),this._M},set:function(e){this._M=e,w(this,"MaxChange",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxIteration",{get:function(){return D("maxIteration",this._Ma,re,this._isNull),this._Ma},set:function(e){this._Ma=e,w(this,"MaxIteration",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["enabled","maxIteration","maxChange"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Enabled)||(this._E=n.Enabled),N(n.MaxChange)||(this._M=n.MaxChange),N(n.MaxIteration)||(this._Ma=n.MaxIteration)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{enabled:this._E,maxChange:this._M,maxIteration:this._Ma},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.IterativeCalculation=oe;var ie="Workbook",ae=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Workbook"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","readOnly","isDirty","chartDataPointTrack","usePrecisionAsDisplayed","calculationEngineVersion","autoSave","previouslySaved"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","ReadOnly","IsDirty","ChartDataPointTrack","UsePrecisionAsDisplayed","CalculationEngineVersion","AutoSave","PreviouslySaved"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["worksheets","names","tables","application","bindings","functions","_V1Api","pivotTables","settings","customXmlParts","internalTest","properties","styles","protection","dataConnections","_Runtime","comments","slicers","tableStyles","pivotTableStyles","slicerStyles","timelineStyles","queries","linkedWorkbooks","linkedEntityDataDomains","notes"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"application",{get:function(){return this._A||(this._A=S(e.Application,this,"Application",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bindings",{get:function(){return this._B||(this._B=S(e.BindingCollection,this,"Bindings",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"comments",{get:function(){return k("Workbook.comments",C,"1.10",O),this._Co||(this._Co=S(e.CommentCollection,this,"Comments",!0,4)),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"customXmlParts",{get:function(){return k("Workbook.customXmlParts",C,"1.5",O),this._Cus||(this._Cus=S(e.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._Cus},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataConnections",{get:function(){return k("Workbook.dataConnections",C,"1.7",O),this._D||(this._D=S(e.DataConnectionCollection,this,"DataConnections",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"functions",{get:function(){return k("Workbook.functions",C,"1.2",O),this._F||(this._F=S(e.Functions,this,"Functions",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"internalTest",{get:function(){return k("Workbook.internalTest",C,"1.6",O),this._I||(this._I=S(e.InternalTest,this,"InternalTest",!1,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedEntityDataDomains",{get:function(){return k("Workbook.linkedEntityDataDomains",C,"1.19",O),this._L||(this._L=S(e.LinkedEntityDataDomainCollection,this,"LinkedEntityDataDomains",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedWorkbooks",{get:function(){return k("Workbook.linkedWorkbooks","ExcelApiOnline","1.1",O),this._Li||(this._Li=S(e.LinkedWorkbookCollection,this,"LinkedWorkbooks",!0,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"names",{get:function(){return this._Na||(this._Na=S(e.NamedItemCollection,this,"Names",!0,4)),this._Na},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"notes",{get:function(){return k("Workbook.notes",C,"1.18",O),this.m_notes||(this.m_notes=S(e.NoteCollection,this,"Notes",!0,4)),v.Workbook_Notes_Get(this,this.m_notes),this.m_notes},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pivotTableStyles",{get:function(){return k("Workbook.pivotTableStyles",C,"1.10",O),this._Pi||(this._Pi=S(e.PivotTableStyleCollection,this,"PivotTableStyles",!0,4)),this._Pi},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pivotTables",{get:function(){return k("Workbook.pivotTables",C,"1.3",O),this._P||(this._P=S(e.PivotTableCollection,this,"PivotTables",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"properties",{get:function(){return k("Workbook.properties",C,"1.7",O),this._Pro||(this._Pro=S(e.DocumentProperties,this,"Properties",!1,4)),this._Pro},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protection",{get:function(){return k("Workbook.protection",C,"1.7",O),this._Prot||(this._Prot=S(e.WorkbookProtection,this,"Protection",!1,4)),this._Prot},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"queries",{get:function(){return k("Workbook.queries",C,"1.14",O),this._Q||(this._Q=S(e.QueryCollection,this,"Queries",!0,4)),this._Q},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"settings",{get:function(){return k("Workbook.settings",C,"1.4",O),this._S||(this._S=S(e.SettingCollection,this,"Settings",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"slicerStyles",{get:function(){return k("Workbook.slicerStyles",C,"1.10",O),this._Sli||(this._Sli=S(e.SlicerStyleCollection,this,"SlicerStyles",!0,4)),this._Sli},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"slicers",{get:function(){return k("Workbook.slicers",C,"1.10",O),this._Sl||(this._Sl=S(e.SlicerCollection,this,"Slicers",!0,4)),this._Sl},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styles",{get:function(){return k("Workbook.styles",C,"1.7",O),this._St||(this._St=S(e.StyleCollection,this,"Styles",!0,4)),this._St},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tableStyles",{get:function(){return k("Workbook.tableStyles",C,"1.10",O),this._Ta||(this._Ta=S(e.TableStyleCollection,this,"TableStyles",!0,4)),this._Ta},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tables",{get:function(){return this._T||(this._T=S(e.TableCollection,this,"Tables",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"timelineStyles",{get:function(){return k("Workbook.timelineStyles",C,"1.10",O),this._Ti||(this._Ti=S(e.TimelineStyleCollection,this,"TimelineStyles",!0,4)),this._Ti},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheets",{get:function(){return this._W||(this._W=S(e.WorksheetCollection,this,"Worksheets",!0,4)),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Runtime",{get:function(){return k("Workbook._Runtime",C,"1.5",O),this.__R||(this.__R=S(e.Runtime,this,"_Runtime",!1,4)),this.__R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_V1Api",{get:function(){return k("Workbook._V1Api",C,"1.3",O),this.__V||(this.__V=S(e._V1Api,this,"_V1Api",!1,4)),this.__V},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoSave",{get:function(){return D("autoSave",this._Au,ie,this._isNull),k("Workbook.autoSave",C,"1.9",O),this._Au},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calculationEngineVersion",{get:function(){return D("calculationEngineVersion",this._C,ie,this._isNull),k("Workbook.calculationEngineVersion",C,"1.9",O),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"chartDataPointTrack",{get:function(){return D("chartDataPointTrack",this._Ch,ie,this._isNull),k("Workbook.chartDataPointTrack",C,"1.9",O),this._Ch},set:function(e){this._Ch=e,w(this,"ChartDataPointTrack",e,G(2,"ExcelApiUndo","1.32"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isDirty",{get:function(){return D("isDirty",this._Is,ie,this._isNull),k("Workbook.isDirty",C,"1.9",O),this._Is},set:function(e){this._Is=e,w(this,"IsDirty",e,G(2,"ExcelApiUndo","1.32"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,ie,this._isNull),k("Workbook.name",C,"1.7",O),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"previouslySaved",{get:function(){return D("previouslySaved",this._Pr,ie,this._isNull),k("Workbook.previouslySaved",C,"1.9",O),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readOnly",{get:function(){return D("readOnly",this._R,ie,this._isNull),k("Workbook.readOnly",C,"1.8",O),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"usePrecisionAsDisplayed",{get:function(){return D("usePrecisionAsDisplayed",this._U,ie,this._isNull),k("Workbook.usePrecisionAsDisplayed",C,"1.9",O),this._U},set:function(e){this._U=e,w(this,"UsePrecisionAsDisplayed",e,G(2,"ExcelApiUndo","1.32"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["isDirty","chartDataPointTrack","usePrecisionAsDisplayed"],["properties"],["_Runtime","_V1Api","application","bindings","comments","customXmlParts","dataConnections","functions","internalTest","linkedEntityDataDomains","linkedWorkbooks","names","notes","pivotTables","pivotTableStyles","protection","queries","settings","slicers","slicerStyles","styles","tables","tableStyles","timelineStyles","worksheets"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.close=function(e){k("Workbook.close",C,"1.11",O),T(this,"Close",0,[e],0,0)},n.prototype.enableOfficeScriptRecording=function(e){v.Workbook_EnableOfficeScriptRecording(this,e).handled||(k("Workbook.enableOfficeScriptRecording","ExcelApiOnline","1.1",O),T(this,"EnableOfficeScriptRecording",0,[e],G(2,"ExcelApiUndo","1.38"),0))},n.prototype.getActiveCell=function(){return k("Workbook.getActiveCell",C,"1.7",O),P(e.Range,this,"GetActiveCell",1,[],!1,!0,null,4)},n.prototype.getActiveChart=function(){return k("Workbook.getActiveChart",C,"1.9",O),P(e.Chart,this,"GetActiveChart",1,[],!1,!1,null,4)},n.prototype.getActiveChartOrNullObject=function(){return k("Workbook.getActiveChartOrNullObject",C,"1.9",O),P(e.Chart,this,"GetActiveChartOrNullObject",1,[],!1,!1,null,4)},n.prototype.getActiveShape=function(){return k("Workbook.getActiveShape",C,"1.19",O),P(e.Shape,this,"GetActiveShape",1,[],!1,!1,null,4)},n.prototype.getActiveShapeOrNullObject=function(){return k("Workbook.getActiveShapeOrNullObject",C,"1.19",O),P(e.Shape,this,"GetActiveShapeOrNullObject",1,[],!1,!1,null,4)},n.prototype.getActiveSlicer=function(){return k("Workbook.getActiveSlicer",C,"1.10",O),P(e.Slicer,this,"GetActiveSlicer",1,[],!1,!1,null,4)},n.prototype.getActiveSlicerOrNullObject=function(){return k("Workbook.getActiveSlicerOrNullObject",C,"1.10",O),P(e.Slicer,this,"GetActiveSlicerOrNullObject",1,[],!1,!1,null,4)},n.prototype.getIsActiveCollabSession=function(){return k("Workbook.getIsActiveCollabSession",C,"1.9",O),T(this,"GetIsActiveCollabSession",0,[],G(2,"ExcelApiUndo","1.32"),0)},n.prototype.getLinkedEntityCellValue=function(e){return k("Workbook.getLinkedEntityCellValue",C,"1.16",O),T(this,"GetLinkedEntityCellValue",1,[e],4,0)},n.prototype.getSelectedRange=function(){return P(e.Range,this,"GetSelectedRange",1,[],!1,!0,null,4)},n.prototype.getSelectedRanges=function(){return k("Workbook.getSelectedRanges",C,"1.9",O),P(e.RangeAreas,this,"GetSelectedRanges",1,[],!1,!0,null,4)},n.prototype.insertWorksheetsFromBase64=function(e,t){return k("Workbook.insertWorksheetsFromBase64",C,"1.13",O),T(this,"InsertWorksheetsFromBase64",0,[e,t],0,0)},n.prototype.recordAction=function(e){v.Workbook_RecordAction(this,e).handled||T(this,"RecordAction",1,[e],4,0)},n.prototype.registerCustomFunctions=function(e,t,n,r,o,i,a){k("Workbook.registerCustomFunctions","CustomFunctions","1.1",O),T(this,"RegisterCustomFunctions",0,[e,t,n,r,o,i,a],G(10,"ExcelApiUndo","1.32"),0)},n.prototype.save=function(e){k("Workbook.save",C,"1.11",O),T(this,"Save",0,[e],0,0)},n.prototype._GetObjectByReferenceId=function(e){return T(this,"_GetObjectByReferenceId",1,[e],4,0)},n.prototype._GetObjectTypeNameByReferenceId=function(e){return T(this,"_GetObjectTypeNameByReferenceId",1,[e],4,0)},n.prototype._GetRangeForEventByReferenceId=function(t){return P(e.Range,this,"_GetRangeForEventByReferenceId",1,[t],!1,!1,null,4)},n.prototype._GetRangeOrNullObjectForEventByReferenceId=function(t){return P(e.Range,this,"_GetRangeOrNullObjectForEventByReferenceId",1,[t],!1,!1,null,4)},n.prototype._GetRangesForEventByReferenceId=function(t){return k("Workbook._GetRangesForEventByReferenceId",C,"1.9",O),P(e.RangeAreas,this,"_GetRangesForEventByReferenceId",1,[t],!1,!1,null,4)},n.prototype._GetRangesOrNullObjectForEventByReferenceId=function(t){return k("Workbook._GetRangesOrNullObjectForEventByReferenceId",C,"1.9",O),P(e.RangeAreas,this,"_GetRangesOrNullObjectForEventByReferenceId",1,[t],!1,!1,null,4)},n.prototype._GetReferenceCount=function(){return T(this,"_GetReferenceCount",1,[],4,0)},n.prototype._RegisterActivatedEvent=function(){k("Workbook._RegisterActivatedEvent",C,"1.13",O),T(this,"_RegisterActivatedEvent",1,[],0,0)},n.prototype._RegisterAutoSaveSettingChangedEvent=function(){k("Workbook._RegisterAutoSaveSettingChangedEvent",C,"1.9",O),T(this,"_RegisterAutoSaveSettingChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterEventActionRecorded=function(){k("Workbook._RegisterEventActionRecorded","Recorder","1.1",O),T(this,"_RegisterEventActionRecorded",1,[],4,0)},n.prototype._RegisterRecordingStateChangedEvent=function(){k("Workbook._RegisterRecordingStateChangedEvent","WACOperationEvents","1.1",O),T(this,"_RegisterRecordingStateChangedEvent",0,[],G(2,"ExcelApiUndo","1.3"),0)},n.prototype._RegisterWACOperationEvent=function(){k("Workbook._RegisterWACOperationEvent","WACOperationEvents","1.1",O),T(this,"_RegisterWACOperationEvent",1,[],4,0)},n.prototype._RemoveAllReferences=function(){T(this,"_RemoveAllReferences",1,[],0,0)},n.prototype._RemoveReference=function(e){T(this,"_RemoveReference",1,[e],0,0)},n.prototype._SetOsfControlContainerReadyForCustomFunctions=function(){k("Workbook._SetOsfControlContainerReadyForCustomFunctions","CustomFunctions","1.1",O),T(this,"_SetOsfControlContainerReadyForCustomFunctions",0,[],G(2,"ExcelApiUndo","1.32"),0)},n.prototype._UnregisterActivatedEvent=function(){k("Workbook._UnregisterActivatedEvent",C,"1.13",O),T(this,"_UnregisterActivatedEvent",1,[],0,0)},n.prototype._UnregisterAutoSaveSettingChangedEvent=function(){k("Workbook._UnregisterAutoSaveSettingChangedEvent",C,"1.9",O),T(this,"_UnregisterAutoSaveSettingChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterEventActionRecorded=function(){k("Workbook._UnregisterEventActionRecorded","Recorder","1.1",O),T(this,"_UnregisterEventActionRecorded",1,[],4,0)},n.prototype._UnregisterRecordingStateChangedEvent=function(){k("Workbook._UnregisterRecordingStateChangedEvent","WACOperationEvents","1.1",O),T(this,"_UnregisterRecordingStateChangedEvent",0,[],G(2,"ExcelApiUndo","1.3"),0)},n.prototype._UnregisterWACOperationEvent=function(){k("Workbook._UnregisterWACOperationEvent","WACOperationEvents","1.1",O),T(this,"_UnregisterWACOperationEvent",1,[],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AutoSave)||(this._Au=n.AutoSave),N(n.CalculationEngineVersion)||(this._C=n.CalculationEngineVersion),N(n.ChartDataPointTrack)||(this._Ch=n.ChartDataPointTrack),N(n.IsDirty)||(this._Is=n.IsDirty),N(n.Name)||(this._N=n.Name),N(n.PreviouslySaved)||(this._Pr=n.PreviouslySaved),N(n.ReadOnly)||(this._R=n.ReadOnly),N(n.UsePrecisionAsDisplayed)||(this._U=n.UsePrecisionAsDisplayed),L(this,n,["application","Application","bindings","Bindings","comments","Comments","customXmlParts","CustomXmlParts","dataConnections","DataConnections","functions","Functions","internalTest","InternalTest","linkedEntityDataDomains","LinkedEntityDataDomains","linkedWorkbooks","LinkedWorkbooks","names","Names","notes","Notes","pivotTableStyles","PivotTableStyles","pivotTables","PivotTables","properties","Properties","protection","Protection","queries","Queries","settings","Settings","slicerStyles","SlicerStyles","slicers","Slicers","styles","Styles","tableStyles","TableStyles","tables","Tables","timelineStyles","TimelineStyles","worksheets","Worksheets","_Runtime","_Runtime","_V1Api","_V1Api"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},Object.defineProperty(n.prototype,"onActionRecorded",{get:function(){var e=this;return k("Workbook.onActionRecorded","Recorder","1.1",O),this.m_actionRecorded||(this.m_actionRecorded=new OfficeExtension.GenericEventHandlers(this.context,this,"ActionRecorded",{eventType:3201,registerFunc:function(){return e._RegisterEventActionRecorded()},unregisterFunc:function(){return e._UnregisterEventActionRecorded()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={payload:e.payload};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_actionRecorded},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onActivated",{get:function(){var e=this;return k("Workbook.onActivated",C,"1.13",O),this.m_activated||(this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:2203,registerFunc:function(){return e._RegisterActivatedEvent()},unregisterFunc:function(){return e._UnregisterActivatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.workbookActivated};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_activated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onAutoSaveSettingChanged",{get:function(){var e=this;return k("Workbook.onAutoSaveSettingChanged",C,"1.9",O),this.m_autoSaveSettingChanged||(this.m_autoSaveSettingChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"AutoSaveSettingChanged",{eventType:2200,registerFunc:function(){return e._RegisterAutoSaveSettingChangedEvent()},unregisterFunc:function(){return e._UnregisterAutoSaveSettingChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.workbookAutoSaveSettingChanged};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_autoSaveSettingChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onRecordingStateChangedEvent",{get:function(){var e=this;return k("Workbook.onRecordingStateChangedEvent","WACOperationEvents","1.1",O),this.m_recordingStateChangedEvent||(this.m_recordingStateChangedEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"RecordingStateChangedEvent",{eventType:2202,registerFunc:function(){return e._RegisterRecordingStateChangedEvent()},unregisterFunc:function(){return e._UnregisterRecordingStateChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={recording:e.recording};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_recordingStateChangedEvent},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSelectionChanged",{get:function(){var e=this;return k("Workbook.onSelectionChanged",C,"1.3",O),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.EventHandlers(this.context,this,"SelectionChanged",{registerFunc:function(t){return e.context.eventRegistration.register(v.office10EventIdDocumentSelectionChangedEvent,"",t)},unregisterFunc:function(t){return e.context.eventRegistration.unregister(v.office10EventIdDocumentSelectionChangedEvent,"",t)},eventArgsTransformFunc:function(t){var n=v.Workbook_SelectionChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onWACOperationEvent",{get:function(){var e=this;return k("Workbook.onWACOperationEvent","WACOperationEvents","1.1",O),this.m_wacoperationEvent||(this.m_wacoperationEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"WACOperationEvent",{eventType:2201,registerFunc:function(){return e._RegisterWACOperationEvent()},unregisterFunc:function(){return e._UnregisterWACOperationEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(t){var n=v.Workbook_WACOperationEvent_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_wacoperationEvent},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_onMessage",{get:function(){var e=this;return k("Workbook._onMessage",C,"1.7",O),this.m__Message||(this.m__Message=new OfficeExtension.EventHandlers(this.context,this,"_Message",{registerFunc:function(t){return e.context.eventRegistration.register(v.office10EventIdRichApiMessageEvent,"",t)},unregisterFunc:function(t){return e.context.eventRegistration.unregister(v.office10EventIdRichApiMessageEvent,"",t)},eventArgsTransformFunc:function(t){var n=v.Workbook__Message_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m__Message},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{autoSave:this._Au,calculationEngineVersion:this._C,chartDataPointTrack:this._Ch,isDirty:this._Is,name:this._N,previouslySaved:this._Pr,readOnly:this._R,usePrecisionAsDisplayed:this._U},{bindings:this._B,comments:this._Co,customXmlParts:this._Cus,names:this._Na,notes:this.m_notes,pivotTables:this._P,pivotTableStyles:this._Pi,properties:this._Pro,protection:this._Prot,settings:this._S,slicers:this._Sl,slicerStyles:this._Sli,styles:this._St,tables:this._T,tableStyles:this._Ta,timelineStyles:this._Ti,worksheets:this._W})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Workbook=ae,function(t){t.Workbook_EnableOfficeScriptRecording=function(e,t){return this.context.eventId=t,{handled:!1}},t.Workbook_RecordAction=function(e,t){return this.context.sdxPayload=t,{handled:!1}},t.Workbook_Notes_Get=function(e,t){},t.Workbook_SelectionChanged_EventArgsTransform=function(e,t){return{workbook:e}},t.Workbook_WACOperationEvent_EventArgsTransform=function(t,n){return{eventId:n.eventId,payload:n.payload,type:e.EventType.wacoperationEvent}},t.Workbook__Message_EventArgsTransform=function(e,t){return{entries:t.entries,workbook:e}}}(v=e._CC||(e._CC={}));var se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"WorkbookProtection"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["protected"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Protected"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protected",{get:function(){return D("protected",this._P,"WorkbookProtection",this._isNull),this._P},enumerable:!0,configurable:!0}),t.prototype.protect=function(e){T(this,"Protect",0,[e],0,0)},t.prototype.unprotect=function(e){T(this,"Unprotect",0,[e],0,0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Protected)||(this._P=n.Protected)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{protected:this._P},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.WorkbookProtection=se;var le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"WorkbookCreated"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return D("id",this._I,"WorkbookCreated",this._isNull),this._I},enumerable:!0,configurable:!0}),t.prototype.open=function(){T(this,"Open",1,[],4,0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Id)||(this._I=n.Id)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),F(t)||N(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{id:this._I},{})},t}(OfficeExtension.ClientObject);e.WorkbookCreated=le;var ue="Worksheet",ce=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Worksheet"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_collectionPropertyPath",{get:function(){return"workbook.worksheets"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","id","position","visibility","tabColor","standardWidth","standardHeight","showGridlines","showHeadings","enableCalculation","tabId","showDataTypeIcons"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","Id","Position","Visibility","TabColor","StandardWidth","StandardHeight","ShowGridlines","ShowHeadings","EnableCalculation","TabId","ShowDataTypeIcons"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["charts","tables","protection","pivotTables","names","freezePanes","pageLayout","visuals","shapes","horizontalPageBreaks","verticalPageBreaks","autoFilter","slicers","comments","customProperties","namedSheetViews","notes"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoFilter",{get:function(){return k("Worksheet.autoFilter",C,"1.9",O),this._A||(this._A=S(e.AutoFilter,this,"AutoFilter",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"charts",{get:function(){return this.m_charts||(this.m_charts=S(e.ChartCollection,this,"Charts",!0,4)),v.Worksheet_Charts_Get(this,this.m_charts),this.m_charts},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"comments",{get:function(){return k("Worksheet.comments",C,"1.10",O),this.m_comments||(this.m_comments=S(e.CommentCollection,this,"Comments",!0,4)),v.Worksheet_Comments_Get(this,this.m_comments),this.m_comments},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"customProperties",{get:function(){return k("Worksheet.customProperties",C,"1.12",O),this._C||(this._C=S(e.WorksheetCustomPropertyCollection,this,"CustomProperties",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"freezePanes",{get:function(){return k("Worksheet.freezePanes",C,"1.7",O),this._F||(this._F=S(e.WorksheetFreezePanes,this,"FreezePanes",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalPageBreaks",{get:function(){return k("Worksheet.horizontalPageBreaks",C,"1.9",O),this._Ho||(this._Ho=S(e.PageBreakCollection,this,"HorizontalPageBreaks",!0,4)),this._Ho},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"namedSheetViews",{get:function(){return k("Worksheet.namedSheetViews","ExcelApiOnline","1.1",O),this._Na||(this._Na=S(e.NamedSheetViewCollection,this,"NamedSheetViews",!0,4)),this._Na},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"names",{get:function(){return k("Worksheet.names",C,"1.4",O),this.m_names||(this.m_names=S(e.NamedItemCollection,this,"Names",!0,4)),v.Worksheet_Names_Get(this,this.m_names),this.m_names},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"notes",{get:function(){return k("Worksheet.notes",C,"1.18",O),this.m_notes||(this.m_notes=S(e.NoteCollection,this,"Notes",!0,4)),v.Worksheet_Notes_Get(this,this.m_notes),this.m_notes},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pageLayout",{get:function(){return k("Worksheet.pageLayout",C,"1.9",O),this._P||(this._P=S(e.PageLayout,this,"PageLayout",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pivotTables",{get:function(){return k("Worksheet.pivotTables",C,"1.3",O),this.m_pivotTables||(this.m_pivotTables=S(e.PivotTableCollection,this,"PivotTables",!0,4)),v.Worksheet_PivotTables_Get(this,this.m_pivotTables),this.m_pivotTables},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protection",{get:function(){return k("Worksheet.protection",C,"1.2",O),this._Pr||(this._Pr=S(e.WorksheetProtection,this,"Protection",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shapes",{get:function(){return k("Worksheet.shapes",C,"1.9",O),this.m_shapes||(this.m_shapes=S(e.ShapeCollection,this,"Shapes",!0,4)),v.Worksheet_Shapes_Get(this,this.m_shapes),this.m_shapes},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"slicers",{get:function(){return k("Worksheet.slicers",C,"1.10",O),this._Sl||(this._Sl=S(e.SlicerCollection,this,"Slicers",!0,4)),this._Sl},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tables",{get:function(){return this.m_tables||(this.m_tables=S(e.TableCollection,this,"Tables",!0,4)),v.Worksheet_Tables_Get(this,this.m_tables),this.m_tables},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalPageBreaks",{get:function(){return k("Worksheet.verticalPageBreaks",C,"1.9",O),this._V||(this._V=S(e.PageBreakCollection,this,"VerticalPageBreaks",!0,4)),this._V},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visuals",{get:function(){return k("Worksheet.visuals",C,"1.10",O),this.m_visuals||(this.m_visuals=S(e.VisualCollection,this,"Visuals",!0,4)),v.Worksheet_Visuals_Get(this,this.m_visuals),this.m_visuals},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"enableCalculation",{get:function(){return D("enableCalculation",this._E,ue,this._isNull),k("Worksheet.enableCalculation",C,"1.9",O),this._E},set:function(e){this._E=e,w(this,"EnableCalculation",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,ue,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,ue,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndoOnlineOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._Po,ue,this._isNull),this._Po},set:function(e){this._Po=e,w(this,"Position",e,G(2,"ExcelApiUndoOnlineOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showDataTypeIcons",{get:function(){return D("showDataTypeIcons",this._S,ue,this._isNull),k("Worksheet.showDataTypeIcons",C,"1.19",O),this._S},set:function(e){this._S=e,w(this,"ShowDataTypeIcons",e,2)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showGridlines",{get:function(){return D("showGridlines",this.m_showGridlines,ue,this._isNull),k("Worksheet.showGridlines",C,"1.8",O),this.m_showGridlines},set:function(e){v.Worksheet_ShowGridlines_Set(this,e).handled||(this.m_showGridlines=e,w(this,"ShowGridlines",e,G(2,"ExcelApiUndo","1.16")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showHeadings",{get:function(){return D("showHeadings",this.m_showHeadings,ue,this._isNull),k("Worksheet.showHeadings",C,"1.8",O),this.m_showHeadings},set:function(e){v.Worksheet_ShowHeadings_Set(this,e).handled||(this.m_showHeadings=e,w(this,"ShowHeadings",e,G(2,"ExcelApiUndo","1.30")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"standardHeight",{get:function(){return D("standardHeight",this._St,ue,this._isNull),k("Worksheet.standardHeight",C,"1.7",O),this._St},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"standardWidth",{get:function(){return D("standardWidth",this._Sta,ue,this._isNull),k("Worksheet.standardWidth",C,"1.7",O),this._Sta},set:function(e){this._Sta=e,w(this,"StandardWidth",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tabColor",{get:function(){return D("tabColor",this._T,ue,this._isNull),k("Worksheet.tabColor",C,"1.7",O),this._T},set:function(e){this._T=e,w(this,"TabColor",e,G(2,"ExcelApiUndo","1.8"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tabId",{get:function(){return D("tabId",this._Ta,ue,this._isNull),k("Worksheet.tabId",C,"1.14",O),this._Ta},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibility",{get:function(){return D("visibility",this._Vi,ue,this._isNull),this._Vi},set:function(e){this._Vi=e,w(this,"Visibility",e,G(2,"ExcelApiUndoOnlineOnly","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","position","visibility","tabColor","standardWidth","showGridlines","showHeadings","enableCalculation","showDataTypeIcons"],["pageLayout"],["autoFilter","charts","comments","customProperties","freezePanes","horizontalPageBreaks","namedSheetViews","names","notes","pivotTables","protection","shapes","slicers","tables","verticalPageBreaks","visuals"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.activate=function(){T(this,"Activate",1,[],0,0)},n.prototype.calculate=function(e){k("Worksheet.calculate",C,"1.6",O),T(this,"Calculate",0,[e],G(2,"ExcelApiUndo","1.26"),0)},n.prototype.copy=function(t,n){return k("Worksheet.copy",C,"1.7",O),P(e.Worksheet,this,"Copy",0,[t,n],!1,!1,"_GetAnotherWorksheetById",0)},n.prototype.delete=function(){T(this,"Delete",0,[],0,0)},n.prototype.findAll=function(t,n){return k("Worksheet.findAll",C,"1.9",O),P(e.RangeAreas,this,"FindAll",1,[t,n],!1,!0,null,4)},n.prototype.findAllOrNullObject=function(t,n){return k("Worksheet.findAllOrNullObject",C,"1.9",O),P(e.RangeAreas,this,"FindAllOrNullObject",1,[t,n],!1,!0,null,4)},n.prototype.getCell=function(t,n){return P(e.Range,this,"GetCell",1,[t,n],!1,!0,null,4)},n.prototype.getNext=function(t){return k("Worksheet.getNext",C,"1.5",O),P(e.Worksheet,this,"GetNext",1,[t],!1,!0,"_GetSheetById",4)},n.prototype.getNextOrNullObject=function(t){return k("Worksheet.getNextOrNullObject",C,"1.5",O),P(e.Worksheet,this,"GetNextOrNullObject",1,[t],!1,!0,"_GetSheetById",4)},n.prototype.getPrevious=function(t){return k("Worksheet.getPrevious",C,"1.5",O),P(e.Worksheet,this,"GetPrevious",1,[t],!1,!0,"_GetSheetById",4)},n.prototype.getPreviousOrNullObject=function(t){return k("Worksheet.getPreviousOrNullObject",C,"1.5",O),P(e.Worksheet,this,"GetPreviousOrNullObject",1,[t],!1,!0,"_GetSheetById",4)},n.prototype.getRange=function(t){return P(e.Range,this,"GetRange",1,[t],!1,!0,null,4)},n.prototype.getRangeByIndexes=function(t,n,r,o){return k("Worksheet.getRangeByIndexes",C,"1.7",O),P(e.Range,this,"GetRangeByIndexes",1,[t,n,r,o],!1,!0,null,4)},n.prototype.getRanges=function(t){return k("Worksheet.getRanges",C,"1.9",O),P(e.RangeAreas,this,"GetRanges",1,[t],!1,!0,null,4)},n.prototype.getUsedRange=function(t){return P(e.Range,this,"GetUsedRange",1,[t],!1,!0,null,4)},n.prototype.getUsedRangeOrNullObject=function(t){return k("Worksheet.getUsedRangeOrNullObject",C,"1.4",O),P(e.Range,this,"GetUsedRangeOrNullObject",1,[t],!1,!0,null,4)},n.prototype.replaceAll=function(e,t,n){return k("Worksheet.replaceAll",C,"1.9",O),T(this,"ReplaceAll",0,[e,t,n],G(2,"ExcelApiUndo","1.30"),0)},n.prototype.showOutlineLevels=function(e,t){k("Worksheet.showOutlineLevels",C,"1.10",O),T(this,"ShowOutlineLevels",0,[e,t],G(2,"ExcelApiUndo","1.30"),0)},n.prototype._GetAnotherWorksheetById=function(t){return k("Worksheet._GetAnotherWorksheetById",C,"1.7",O),P(e.Worksheet,this,"_GetAnotherWorksheetById",0,[t],!1,!1,null,G(2,"ExcelApiUndo","1.30"))},n.prototype._GetSheetById=function(t){return k("Worksheet._GetSheetById",C,"1.7",O),P(e.Worksheet,this,"_GetSheetById",1,[t],!1,!1,null,4)},n.prototype._RegisterActivatedEvent=function(){k("Worksheet._RegisterActivatedEvent",C,"1.7",O),T(this,"_RegisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterCalculatedEvent=function(){k("Worksheet._RegisterCalculatedEvent",C,"1.8",O),T(this,"_RegisterCalculatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterColumnSortedEvent=function(){k("Worksheet._RegisterColumnSortedEvent",C,"1.10",O),T(this,"_RegisterColumnSortedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterDataChangedEvent=function(){k("Worksheet._RegisterDataChangedEvent",C,"1.7",O),T(this,"_RegisterDataChangedEvent",0,[],G(2,"ExcelApiUndo","1.6"),0)},n.prototype._RegisterDeactivatedEvent=function(){k("Worksheet._RegisterDeactivatedEvent",C,"1.7",O),T(this,"_RegisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterEventNameChanged=function(){k("Worksheet._RegisterEventNameChanged",C,"1.17",O),T(this,"_RegisterEventNameChanged",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterEventVisibilityChanged=function(){k("Worksheet._RegisterEventVisibilityChanged",C,"1.17",O),T(this,"_RegisterEventVisibilityChanged",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterFormatChangedEvent=function(){k("Worksheet._RegisterFormatChangedEvent",C,"1.9",O),T(this,"_RegisterFormatChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterFormulaChangedEvent=function(){k("Worksheet._RegisterFormulaChangedEvent",C,"1.13",O),T(this,"_RegisterFormulaChangedEvent",1,[],0,0)},n.prototype._RegisterProtectionChangedEvent=function(){k("Worksheet._RegisterProtectionChangedEvent",C,"1.14",O),T(this,"_RegisterProtectionChangedEvent",1,[],0,0)},n.prototype._RegisterRowHiddenChangedEvent=function(){k("Worksheet._RegisterRowHiddenChangedEvent",C,"1.11",O),T(this,"_RegisterRowHiddenChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterRowSortedEvent=function(){k("Worksheet._RegisterRowSortedEvent",C,"1.10",O),T(this,"_RegisterRowSortedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterSelectionChangedEvent=function(){k("Worksheet._RegisterSelectionChangedEvent",C,"1.7",O),T(this,"_RegisterSelectionChangedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._RegisterSingleClickedEvent=function(){k("Worksheet._RegisterSingleClickedEvent",C,"1.10",O),T(this,"_RegisterSingleClickedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterActivatedEvent=function(){k("Worksheet._UnregisterActivatedEvent",C,"1.7",O),T(this,"_UnregisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterCalculatedEvent=function(){k("Worksheet._UnregisterCalculatedEvent",C,"1.8",O),T(this,"_UnregisterCalculatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterColumnSortedEvent=function(){k("Worksheet._UnregisterColumnSortedEvent",C,"1.10",O),T(this,"_UnregisterColumnSortedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterDataChangedEvent=function(){k("Worksheet._UnregisterDataChangedEvent",C,"1.7",O),T(this,"_UnregisterDataChangedEvent",0,[],G(2,"ExcelApiUndo","1.6"),0)},n.prototype._UnregisterDeactivatedEvent=function(){k("Worksheet._UnregisterDeactivatedEvent",C,"1.7",O),T(this,"_UnregisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterEventNameChanged=function(){k("Worksheet._UnregisterEventNameChanged",C,"1.17",O),T(this,"_UnregisterEventNameChanged",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterEventVisibilityChanged=function(){k("Worksheet._UnregisterEventVisibilityChanged",C,"1.17",O),T(this,"_UnregisterEventVisibilityChanged",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterFormatChangedEvent=function(){k("Worksheet._UnregisterFormatChangedEvent",C,"1.9",O),T(this,"_UnregisterFormatChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterFormulaChangedEvent=function(){k("Worksheet._UnregisterFormulaChangedEvent",C,"1.13",O),T(this,"_UnregisterFormulaChangedEvent",1,[],0,0)},n.prototype._UnregisterProtectionChangedEvent=function(){k("Worksheet._UnregisterProtectionChangedEvent",C,"1.14",O),T(this,"_UnregisterProtectionChangedEvent",1,[],0,0)},n.prototype._UnregisterRowHiddenChangedEvent=function(){k("Worksheet._UnregisterRowHiddenChangedEvent",C,"1.11",O),T(this,"_UnregisterRowHiddenChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterRowSortedEvent=function(){k("Worksheet._UnregisterRowSortedEvent",C,"1.10",O),T(this,"_UnregisterRowSortedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterSelectionChangedEvent=function(){k("Worksheet._UnregisterSelectionChangedEvent",C,"1.7",O),T(this,"_UnregisterSelectionChangedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._UnregisterSingleClickedEvent=function(){k("Worksheet._UnregisterSingleClickedEvent",C,"1.10",O),T(this,"_UnregisterSingleClickedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.EnableCalculation)||(this._E=n.EnableCalculation),N(n.Id)||(this._I=n.Id),N(n.Name)||(this._N=n.Name),N(n.Position)||(this._Po=n.Position),N(n.ShowDataTypeIcons)||(this._S=n.ShowDataTypeIcons),N(n.ShowGridlines)||(this.m_showGridlines=n.ShowGridlines),N(n.ShowHeadings)||(this.m_showHeadings=n.ShowHeadings),N(n.StandardHeight)||(this._St=n.StandardHeight),N(n.StandardWidth)||(this._Sta=n.StandardWidth),N(n.TabColor)||(this._T=n.TabColor),N(n.TabId)||(this._Ta=n.TabId),N(n.Visibility)||(this._Vi=n.Visibility),L(this,n,["autoFilter","AutoFilter","charts","Charts","comments","Comments","customProperties","CustomProperties","freezePanes","FreezePanes","horizontalPageBreaks","HorizontalPageBreaks","namedSheetViews","NamedSheetViews","names","Names","notes","Notes","pageLayout","PageLayout","pivotTables","PivotTables","protection","Protection","shapes","Shapes","slicers","Slicers","tables","Tables","verticalPageBreaks","VerticalPageBreaks","visuals","Visuals"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},Object.defineProperty(n.prototype,"onActivated",{get:function(){var e=this;return k("Worksheet.onActivated",C,"1.7",O),this.m_activated||(this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:11,registerFunc:function(){return e._RegisterActivatedEvent()},unregisterFunc:function(){return e._UnregisterActivatedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetActivated,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_activated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onCalculated",{get:function(){var e=this;return k("Worksheet.onCalculated",C,"1.8",O),this.m_calculated||(this.m_calculated=new OfficeExtension.GenericEventHandlers(this.context,this,"Calculated",{eventType:16,registerFunc:function(){return e._RegisterCalculatedEvent()},unregisterFunc:function(){return e._UnregisterCalculatedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetCalculated,address:e.address,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_calculated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onChanged",{get:function(){var e=this;return k("Worksheet.onChanged",C,"1.7",O),this.m_changed||(this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:10,registerFunc:function(){return e._RegisterDataChangedEvent()},unregisterFunc:function(){return e._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(t){var n=v.Worksheet_Changed_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_changed},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onColumnSorted",{get:function(){var e=this;return k("Worksheet.onColumnSorted",C,"1.10",O),this.m_columnSorted||(this.m_columnSorted=new OfficeExtension.GenericEventHandlers(this.context,this,"ColumnSorted",{eventType:20,registerFunc:function(){return e._RegisterColumnSortedEvent()},unregisterFunc:function(){return e._UnregisterColumnSortedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetColumnSorted,address:e.address,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_columnSorted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeactivated",{get:function(){var e=this;return k("Worksheet.onDeactivated",C,"1.7",O),this.m_deactivated||(this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:12,registerFunc:function(){return e._RegisterDeactivatedEvent()},unregisterFunc:function(){return e._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetDeactivated,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deactivated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onFormatChanged",{get:function(){var e=this;return k("Worksheet.onFormatChanged",C,"1.9",O),this.m_formatChanged||(this.m_formatChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"FormatChanged",{eventType:18,registerFunc:function(){return e._RegisterFormatChangedEvent()},unregisterFunc:function(){return e._UnregisterFormatChangedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(t){var n=v.Worksheet_FormatChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_formatChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onFormulaChanged",{get:function(){var e=this;return k("Worksheet.onFormulaChanged",C,"1.13",O),this.m_formulaChanged||(this.m_formulaChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"FormulaChanged",{eventType:23,registerFunc:function(){return e._RegisterFormulaChangedEvent()},unregisterFunc:function(){return e._UnregisterFormulaChangedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(t){var n=v.Worksheet_FormulaChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_formulaChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onNameChanged",{get:function(){var e=this;return k("Worksheet.onNameChanged",C,"1.17",O),this.m_nameChanged||(this.m_nameChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"NameChanged",{eventType:25,registerFunc:function(){return e._RegisterEventNameChanged()},unregisterFunc:function(){return e._UnregisterEventNameChanged()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetNameChanged,nameAfter:e.nameAfter,nameBefore:e.nameBefore,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_nameChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onProtectionChanged",{get:function(){var e=this;return k("Worksheet.onProtectionChanged",C,"1.14",O),this.m_protectionChanged||(this.m_protectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"ProtectionChanged",{eventType:24,registerFunc:function(){return e._RegisterProtectionChangedEvent()},unregisterFunc:function(){return e._UnregisterProtectionChangedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetProtectionChanged,allowEditRangesChanged:e.allowEditRangesChanged,isProtected:e.isProtected,protectionOptionsChanged:e.protectionOptionsChanged,sheetPasswordChanged:e.sheetPasswordChanged,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_protectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onRowHiddenChanged",{get:function(){var e=this;return k("Worksheet.onRowHiddenChanged",C,"1.11",O),this.m_rowHiddenChanged||(this.m_rowHiddenChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"RowHiddenChanged",{eventType:22,registerFunc:function(){return e._RegisterRowHiddenChangedEvent()},unregisterFunc:function(){return e._UnregisterRowHiddenChangedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetRowHiddenChanged,address:e.address,changeType:e.changeType,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_rowHiddenChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onRowSorted",{get:function(){var e=this;return k("Worksheet.onRowSorted",C,"1.10",O),this.m_rowSorted||(this.m_rowSorted=new OfficeExtension.GenericEventHandlers(this.context,this,"RowSorted",{eventType:19,registerFunc:function(){return e._RegisterRowSortedEvent()},unregisterFunc:function(){return e._UnregisterRowSortedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetRowSorted,address:e.address,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_rowSorted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSelectionChanged",{get:function(){var e=this;return k("Worksheet.onSelectionChanged",C,"1.7",O),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:14,registerFunc:function(){return e._RegisterSelectionChangedEvent()},unregisterFunc:function(){return e._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetSelectionChanged,address:e.address,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSingleClicked",{get:function(){var e=this;return k("Worksheet.onSingleClicked",C,"1.10",O),this.m_singleClicked||(this.m_singleClicked=new OfficeExtension.GenericEventHandlers(this.context,this,"SingleClicked",{eventType:21,registerFunc:function(){return e._RegisterSingleClickedEvent()},unregisterFunc:function(){return e._UnregisterSingleClickedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetSingleClicked,address:e.address,offsetX:e.offsetX,offsetY:e.offsetY,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_singleClicked},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onVisibilityChanged",{get:function(){var e=this;return k("Worksheet.onVisibilityChanged",C,"1.17",O),this.m_visibilityChanged||(this.m_visibilityChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"VisibilityChanged",{eventType:26,registerFunc:function(){return e._RegisterEventVisibilityChanged()},unregisterFunc:function(){return e._UnregisterEventVisibilityChanged()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.worksheetVisibilityChanged,source:e.source,visibilityAfter:e.visibilityAfter,visibilityBefore:e.visibilityBefore,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_visibilityChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{enableCalculation:this._E,id:this._I,name:this._N,position:this._Po,showDataTypeIcons:this._S,showGridlines:this.m_showGridlines,showHeadings:this.m_showHeadings,standardHeight:this._St,standardWidth:this._Sta,tabColor:this._T,tabId:this._Ta,visibility:this._Vi},{autoFilter:this._A,charts:this.m_charts,comments:this.m_comments,customProperties:this._C,horizontalPageBreaks:this._Ho,names:this.m_names,notes:this.m_notes,pageLayout:this._P,pivotTables:this.m_pivotTables,protection:this._Pr,shapes:this.m_shapes,slicers:this._Sl,tables:this.m_tables,verticalPageBreaks:this._V,visuals:this.m_visuals})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Worksheet=ce,function(t){t.Worksheet_Charts_Get=function(e,t){t._ParentObject=e},t.Worksheet_Comments_Get=function(e,t){t._ParentObject=e},t.Worksheet_Names_Get=function(e,t){t._ParentObject=e},t.Worksheet_Notes_Get=function(e,t){},t.Worksheet_PivotTables_Get=function(e,t){t._ParentObject=e},t.Worksheet_Shapes_Get=function(e,t){t._ParentObject=e},t.Worksheet_ShowGridlines_Set=function(e,t){return e.m_showGridlines=t,w(e,"Gridlines",t,G(2,"ExcelApiUndo","1.16")),{handled:!0}},t.Worksheet_ShowHeadings_Set=function(e,t){return e.m_showHeadings=t,w(e,"Headings",t,G(2,"ExcelApiUndo","1.30")),{handled:!0}},t.Worksheet_Tables_Get=function(e,t){t._ParentObject=e},t.Worksheet_Visuals_Get=function(e,t){t._ParentObject=e},t.Worksheet_Changed_EventArgsTransform=function(t,n){var r,o,i,a,s=n;return null==s.valueBefore&&null==s.valueAfter||(r={valueBefore:s.valueBefore,valueAfter:s.valueAfter,valueTypeBefore:s.valueTypeBefore,valueTypeAfter:s.valueTypeAfter,valueAsJsonBefore:s.valueAsJsonBefore,valueAsJsonAfter:s.valueAsJsonAfter}),s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellLeft?o=e.DeleteShiftDirection.left:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellUp?o=e.DeleteShiftDirection.up:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellRight?i=e.InsertShiftDirection.right:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellDown&&(i=e.InsertShiftDirection.down),s.shiftDirection!=e.InsertDeleteCellsShiftDirection.none&&(a={deleteShiftDirection:o,insertShiftDirection:i}),{type:e.EventType.worksheetChanged,changeType:s.changeType,source:s.source,worksheetId:t.id,address:s.address,getRange:function(e){return k("WorksheetChangedEventArgs.getRange",C,"1.8",O),e.workbook._GetRangeForEventByReferenceId(s.referenceId)},getRangeOrNullObject:function(e){return k("WorksheetChangedEventArgs.getRangeOrNullObject",C,"1.8",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(s.referenceId)},details:r,triggerSource:s.triggerSource,changeDirectionState:a}},t.Worksheet_FormatChanged_EventArgsTransform=function(t,n){var r=n;return{type:e.EventType.worksheetFormatChanged,source:r.source,worksheetId:t.id,address:r.address,getRange:function(e){return k("WorksheetFormatChangedEventArgs.getRange",C,"1.9",O),e.workbook._GetRangeForEventByReferenceId(r.referenceId)},getRangeOrNullObject:function(e){return k("WorksheetFormatChangedEventArgs.getRangeOrNullObject",C,"1.9",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(r.referenceId)}}},t.Worksheet_FormulaChanged_EventArgsTransform=function(t,n){var r,o=n;return null!=o.formulaDetails&&(r=o.formulaDetails),{type:e.EventType.worksheetFormulaChanged,source:o.source,worksheetId:o.worksheetId,formulaDetails:r}}}(v=e._CC||(e._CC={}));var pe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"WorksheetCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"WorksheetCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.Worksheet,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.2"))},n.prototype.getActiveWorksheet=function(){return P(e.Worksheet,this,"GetActiveWorksheet",1,[],!1,!1,null,4)},n.prototype.getCount=function(e){return k("WorksheetCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[e],4,0)},n.prototype.getFirst=function(t){return k("WorksheetCollection.getFirst",C,"1.5",O),P(e.Worksheet,this,"GetFirst",1,[t],!1,!0,null,4)},n.prototype.getItem=function(t){return A(e.Worksheet,this,[t])},n.prototype.getItemOrNullObject=function(t){return k("WorksheetCollection.getItemOrNullObject",C,"1.4",O),P(e.Worksheet,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.getLast=function(t){return k("WorksheetCollection.getLast",C,"1.5",O),P(e.Worksheet,this,"GetLast",1,[t],!1,!0,null,4)},n.prototype._RegisterActivatedEvent=function(){v.WorksheetCollection__RegisterActivatedEvent(this).handled||(k("WorksheetCollection._RegisterActivatedEvent",C,"1.7",O),T(this,"_RegisterActivatedEvent",1,[],0,0))},n.prototype._RegisterAddedEvent=function(){v.WorksheetCollection__RegisterAddedEvent(this).handled||(k("WorksheetCollection._RegisterAddedEvent",C,"1.7",O),T(this,"_RegisterAddedEvent",1,[],0,0))},n.prototype._RegisterCalculatedEvent=function(){k("WorksheetCollection._RegisterCalculatedEvent",C,"1.8",O),T(this,"_RegisterCalculatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterColumnSortedEvent=function(){v.WorksheetCollection__RegisterColumnSortedEvent(this).handled||(k("WorksheetCollection._RegisterColumnSortedEvent",C,"1.10",O),T(this,"_RegisterColumnSortedEvent",1,[],0,0))},n.prototype._RegisterDataChangedEvent=function(){v.WorksheetCollection__RegisterDataChangedEvent(this).handled||(k("WorksheetCollection._RegisterDataChangedEvent",C,"1.9",O),T(this,"_RegisterDataChangedEvent",1,[],0,0))},n.prototype._RegisterDeactivatedEvent=function(){k("WorksheetCollection._RegisterDeactivatedEvent",C,"1.7",O),T(this,"_RegisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._RegisterDeletedEvent=function(){v.WorksheetCollection__RegisterDeletedEvent(this).handled||(k("WorksheetCollection._RegisterDeletedEvent",C,"1.7",O),T(this,"_RegisterDeletedEvent",1,[],0,0))},n.prototype._RegisterEventMoved=function(){k("WorksheetCollection._RegisterEventMoved",C,"1.17",O),T(this,"_RegisterEventMoved",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterEventNameChanged=function(){k("WorksheetCollection._RegisterEventNameChanged",C,"1.17",O),T(this,"_RegisterEventNameChanged",1,[],4,0)},n.prototype._RegisterEventVisibilityChanged=function(){k("WorksheetCollection._RegisterEventVisibilityChanged",C,"1.17",O),T(this,"_RegisterEventVisibilityChanged",1,[],4,0)},n.prototype._RegisterFormatChangedEvent=function(){k("WorksheetCollection._RegisterFormatChangedEvent",C,"1.9",O),T(this,"_RegisterFormatChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterFormulaChangedEvent=function(){k("WorksheetCollection._RegisterFormulaChangedEvent",C,"1.13",O),T(this,"_RegisterFormulaChangedEvent",1,[],0,0)},n.prototype._RegisterProtectionChangedEvent=function(){k("WorksheetCollection._RegisterProtectionChangedEvent",C,"1.14",O),T(this,"_RegisterProtectionChangedEvent",1,[],0,0)},n.prototype._RegisterRowHiddenChangedEvent=function(){k("WorksheetCollection._RegisterRowHiddenChangedEvent",C,"1.11",O),T(this,"_RegisterRowHiddenChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterRowSortedEvent=function(){v.WorksheetCollection__RegisterRowSortedEvent(this).handled||(k("WorksheetCollection._RegisterRowSortedEvent",C,"1.10",O),T(this,"_RegisterRowSortedEvent",1,[],0,0))},n.prototype._RegisterSelectionChangedEvent=function(){k("WorksheetCollection._RegisterSelectionChangedEvent",C,"1.9",O),T(this,"_RegisterSelectionChangedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._RegisterSingleClickedEvent=function(){k("WorksheetCollection._RegisterSingleClickedEvent",C,"1.10",O),T(this,"_RegisterSingleClickedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._UnregisterActivatedEvent=function(){k("WorksheetCollection._UnregisterActivatedEvent",C,"1.7",O),T(this,"_UnregisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._UnregisterAddedEvent=function(){v.WorksheetCollection__UnregisterAddedEvent(this).handled||(k("WorksheetCollection._UnregisterAddedEvent",C,"1.7",O),T(this,"_UnregisterAddedEvent",1,[],0,0))},n.prototype._UnregisterCalculatedEvent=function(){k("WorksheetCollection._UnregisterCalculatedEvent",C,"1.8",O),T(this,"_UnregisterCalculatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterColumnSortedEvent=function(){v.WorksheetCollection__UnregisterColumnSortedEvent(this).handled||(k("WorksheetCollection._UnregisterColumnSortedEvent",C,"1.10",O),T(this,"_UnregisterColumnSortedEvent",1,[],0,0))},n.prototype._UnregisterDataChangedEvent=function(){v.WorksheetCollection__UnregisterDataChangedEvent(this).handled||(k("WorksheetCollection._UnregisterDataChangedEvent",C,"1.9",O),T(this,"_UnregisterDataChangedEvent",1,[],0,0))},n.prototype._UnregisterDeactivatedEvent=function(){k("WorksheetCollection._UnregisterDeactivatedEvent",C,"1.7",O),T(this,"_UnregisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._UnregisterDeletedEvent=function(){v.WorksheetCollection__UnregisterDeletedEvent(this).handled||(k("WorksheetCollection._UnregisterDeletedEvent",C,"1.7",O),T(this,"_UnregisterDeletedEvent",1,[],0,0))},n.prototype._UnregisterEventMoved=function(){k("WorksheetCollection._UnregisterEventMoved",C,"1.17",O),T(this,"_UnregisterEventMoved",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterEventNameChanged=function(){k("WorksheetCollection._UnregisterEventNameChanged",C,"1.17",O),T(this,"_UnregisterEventNameChanged",1,[],4,0)},n.prototype._UnregisterEventVisibilityChanged=function(){k("WorksheetCollection._UnregisterEventVisibilityChanged",C,"1.17",O),T(this,"_UnregisterEventVisibilityChanged",1,[],4,0)},n.prototype._UnregisterFormatChangedEvent=function(){k("WorksheetCollection._UnregisterFormatChangedEvent",C,"1.9",O),T(this,"_UnregisterFormatChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterFormulaChangedEvent=function(){k("WorksheetCollection._UnregisterFormulaChangedEvent",C,"1.13",O),T(this,"_UnregisterFormulaChangedEvent",1,[],0,0)},n.prototype._UnregisterProtectionChangedEvent=function(){k("WorksheetCollection._UnregisterProtectionChangedEvent",C,"1.14",O),T(this,"_UnregisterProtectionChangedEvent",1,[],0,0)},n.prototype._UnregisterRowHiddenChangedEvent=function(){k("WorksheetCollection._UnregisterRowHiddenChangedEvent",C,"1.11",O),T(this,"_UnregisterRowHiddenChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterRowSortedEvent=function(){v.WorksheetCollection__UnregisterRowSortedEvent(this).handled||(k("WorksheetCollection._UnregisterRowSortedEvent",C,"1.10",O),T(this,"_UnregisterRowSortedEvent",1,[],0,0))},n.prototype._UnregisterSelectionChangedEvent=function(){k("WorksheetCollection._UnregisterSelectionChangedEvent",C,"1.9",O),T(this,"_UnregisterSelectionChangedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._UnregisterSingleClickedEvent=function(){k("WorksheetCollection._UnregisterSingleClickedEvent",C,"1.10",O),T(this,"_UnregisterSingleClickedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Worksheet,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Worksheet,!0,o,t,n)}))},Object.defineProperty(n.prototype,"onActivated",{get:function(){var e=this;return k("WorksheetCollection.onActivated",C,"1.7",O),this.m_activated||(this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:11,registerFunc:function(){return e._RegisterActivatedEvent()},unregisterFunc:function(){return e._UnregisterActivatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetActivated,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_activated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onAdded",{get:function(){var e=this;return k("WorksheetCollection.onAdded",C,"1.7",O),this.m_added||(this.m_added=new OfficeExtension.GenericEventHandlers(this.context,this,"Added",{eventType:13,registerFunc:function(){return e._RegisterAddedEvent()},unregisterFunc:function(){return e._UnregisterAddedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetAdded,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_added},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onCalculated",{get:function(){var e=this;return k("WorksheetCollection.onCalculated",C,"1.8",O),this.m_calculated||(this.m_calculated=new OfficeExtension.GenericEventHandlers(this.context,this,"Calculated",{eventType:16,registerFunc:function(){return e._RegisterCalculatedEvent()},unregisterFunc:function(){return e._UnregisterCalculatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetCalculated,address:e.address,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_calculated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onChanged",{get:function(){var e=this;return k("WorksheetCollection.onChanged",C,"1.9",O),this.m_changed||(this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:10,registerFunc:function(){return e._RegisterDataChangedEvent()},unregisterFunc:function(){return e._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(t){var n=v.WorksheetCollection_Changed_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_changed},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onColumnSorted",{get:function(){var e=this;return k("WorksheetCollection.onColumnSorted",C,"1.10",O),this.m_columnSorted||(this.m_columnSorted=new OfficeExtension.GenericEventHandlers(this.context,this,"ColumnSorted",{eventType:20,registerFunc:function(){return e._RegisterColumnSortedEvent()},unregisterFunc:function(){return e._UnregisterColumnSortedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetColumnSorted,address:e.address,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_columnSorted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeactivated",{get:function(){var e=this;return k("WorksheetCollection.onDeactivated",C,"1.7",O),this.m_deactivated||(this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:12,registerFunc:function(){return e._RegisterDeactivatedEvent()},unregisterFunc:function(){return e._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetDeactivated,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deactivated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeleted",{get:function(){var e=this;return k("WorksheetCollection.onDeleted",C,"1.7",O),this.m_deleted||(this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:15,registerFunc:function(){return e._RegisterDeletedEvent()},unregisterFunc:function(){return e._UnregisterDeletedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetDeleted,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deleted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onFormatChanged",{get:function(){var e=this;return k("WorksheetCollection.onFormatChanged",C,"1.9",O),this.m_formatChanged||(this.m_formatChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"FormatChanged",{eventType:18,registerFunc:function(){return e._RegisterFormatChangedEvent()},unregisterFunc:function(){return e._UnregisterFormatChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(t){var n=v.WorksheetCollection_FormatChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_formatChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onFormulaChanged",{get:function(){var e=this;return k("WorksheetCollection.onFormulaChanged",C,"1.13",O),this.m_formulaChanged||(this.m_formulaChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"FormulaChanged",{eventType:23,registerFunc:function(){return e._RegisterFormulaChangedEvent()},unregisterFunc:function(){return e._UnregisterFormulaChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(t){var n=v.WorksheetCollection_FormulaChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_formulaChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onMoved",{get:function(){var e=this;return k("WorksheetCollection.onMoved",C,"1.17",O),this.m_moved||(this.m_moved=new OfficeExtension.GenericEventHandlers(this.context,this,"Moved",{eventType:27,registerFunc:function(){return e._RegisterEventMoved()},unregisterFunc:function(){return e._UnregisterEventMoved()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetMoved,positionAfter:e.positionAfter,positionBefore:e.positionBefore,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_moved},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onNameChanged",{get:function(){var e=this;return k("WorksheetCollection.onNameChanged",C,"1.17",O),this.m_nameChanged||(this.m_nameChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"NameChanged",{eventType:25,registerFunc:function(){return e._RegisterEventNameChanged()},unregisterFunc:function(){return e._UnregisterEventNameChanged()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetNameChanged,nameAfter:e.nameAfter,nameBefore:e.nameBefore,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_nameChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onProtectionChanged",{get:function(){var e=this;return k("WorksheetCollection.onProtectionChanged",C,"1.14",O),this.m_protectionChanged||(this.m_protectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"ProtectionChanged",{eventType:24,registerFunc:function(){return e._RegisterProtectionChangedEvent()},unregisterFunc:function(){return e._UnregisterProtectionChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetProtectionChanged,allowEditRangesChanged:e.allowEditRangesChanged,isProtected:e.isProtected,protectionOptionsChanged:e.protectionOptionsChanged,sheetPasswordChanged:e.sheetPasswordChanged,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_protectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onRowHiddenChanged",{get:function(){var e=this;return k("WorksheetCollection.onRowHiddenChanged",C,"1.11",O),this.m_rowHiddenChanged||(this.m_rowHiddenChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"RowHiddenChanged",{eventType:22,registerFunc:function(){return e._RegisterRowHiddenChangedEvent()},unregisterFunc:function(){return e._UnregisterRowHiddenChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetRowHiddenChanged,address:e.address,changeType:e.changeType,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_rowHiddenChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onRowSorted",{get:function(){var e=this;return k("WorksheetCollection.onRowSorted",C,"1.10",O),this.m_rowSorted||(this.m_rowSorted=new OfficeExtension.GenericEventHandlers(this.context,this,"RowSorted",{eventType:19,registerFunc:function(){return e._RegisterRowSortedEvent()},unregisterFunc:function(){return e._UnregisterRowSortedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetRowSorted,address:e.address,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_rowSorted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSelectionChanged",{get:function(){var e=this;return k("WorksheetCollection.onSelectionChanged",C,"1.9",O),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:14,registerFunc:function(){return e._RegisterSelectionChangedEvent()},unregisterFunc:function(){return e._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetSelectionChanged,address:e.address,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSingleClicked",{get:function(){var e=this;return k("WorksheetCollection.onSingleClicked",C,"1.10",O),this.m_singleClicked||(this.m_singleClicked=new OfficeExtension.GenericEventHandlers(this.context,this,"SingleClicked",{eventType:21,registerFunc:function(){return e._RegisterSingleClickedEvent()},unregisterFunc:function(){return e._UnregisterSingleClickedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetSingleClicked,address:e.address,offsetX:e.offsetX,offsetY:e.offsetY,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_singleClicked},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onVisibilityChanged",{get:function(){var e=this;return k("WorksheetCollection.onVisibilityChanged",C,"1.17",O),this.m_visibilityChanged||(this.m_visibilityChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"VisibilityChanged",{eventType:26,registerFunc:function(){return e._RegisterEventVisibilityChanged()},unregisterFunc:function(){return e._UnregisterEventVisibilityChanged()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.worksheetVisibilityChanged,source:e.source,visibilityAfter:e.visibilityAfter,visibilityBefore:e.visibilityBefore,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_visibilityChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Worksheet,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.WorksheetCollection=pe,function(t){function n(e,t,n){return!f("OfficeOnline")&&!c(1.12)||f("OfficeOnline")&&!c(1.11)?(k("WorksheetCollection."+t,C,n,O),T(e,t,0,[],0,0),{handled:!0}):{handled:!1}}t.WorksheetCollection__RegisterActivatedEvent=function(e){return c(1.9)?{handled:!1}:(k("WorksheetCollection._RegisterActivatedEvent",C,"1.7",O),T(e,"_RegisterActivatedEvent",0,[],0,0),{handled:!0})},t.WorksheetCollection__RegisterAddedEvent=function(e){return n(e,"_RegisterAddedEvent","1.7")},t.WorksheetCollection__RegisterColumnSortedEvent=function(e){return n(e,"_RegisterColumnSortedEvent","1.10")},t.WorksheetCollection__RegisterDataChangedEvent=function(e){return n(e,"_RegisterDataChangedEvent","1.9")},t.WorksheetCollection__RegisterDeletedEvent=function(e){return n(e,"_RegisterDeletedEvent","1.7")},t.WorksheetCollection__RegisterRowSortedEvent=function(e){return n(e,"_RegisterRowSortedEvent","1.10")},t.WorksheetCollection__UnregisterAddedEvent=function(e){return n(e,"_UnregisterAddedEvent","1.7")},t.WorksheetCollection__UnregisterColumnSortedEvent=function(e){return n(e,"_UnregisterColumnSortedEvent","1.10")},t.WorksheetCollection__UnregisterDataChangedEvent=function(e){return n(e,"_UnregisterDataChangedEvent","1.9")},t.WorksheetCollection__UnregisterDeletedEvent=function(e){return n(e,"_UnregisterDeletedEvent","1.7")},t.WorksheetCollection__UnregisterRowSortedEvent=function(e){return n(e,"_UnregisterRowSortedEvent","1.10")},t.WorksheetCollection_Changed_EventArgsTransform=function(t,n){var r,o,i,a,s=n;return null==s.valueBefore&&null==s.valueAfter||(r={valueBefore:s.valueBefore,valueAfter:s.valueAfter,valueTypeBefore:s.valueTypeBefore,valueTypeAfter:s.valueTypeAfter,valueAsJsonBefore:s.valueAsJsonBefore,valueAsJsonAfter:s.valueAsJsonAfter}),s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellLeft?o=e.DeleteShiftDirection.left:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellUp?o=e.DeleteShiftDirection.up:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellRight?i=e.InsertShiftDirection.right:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellDown&&(i=e.InsertShiftDirection.down),s.shiftDirection!=e.InsertDeleteCellsShiftDirection.none&&(a={deleteShiftDirection:o,insertShiftDirection:i}),{type:e.EventType.worksheetChanged,changeType:s.changeType,source:s.source,worksheetId:s.worksheetId,address:s.address,getRange:function(e){return k("WorksheetChangedEventArgs.getRange",C,"1.9",O),e.workbook._GetRangeForEventByReferenceId(s.referenceId)},getRangeOrNullObject:function(e){return k("WorksheetChangedEventArgs.getRangeOrNullObject",C,"1.9",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(s.referenceId)},details:r,triggerSource:s.triggerSource,changeDirectionState:a}},t.WorksheetCollection_FormatChanged_EventArgsTransform=function(t,n){var r=n;return{type:e.EventType.worksheetFormatChanged,source:r.source,worksheetId:r.worksheetId,address:r.address,getRange:function(e){return k("WorksheetFormatChangedEventArgs.getRange",C,"1.9",O),e.workbook._GetRangeForEventByReferenceId(r.referenceId)},getRangeOrNullObject:function(e){return k("WorksheetFormatChangedEventArgs.getRangeOrNullObject",C,"1.9",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(r.referenceId)}}},t.WorksheetCollection_FormulaChanged_EventArgsTransform=function(t,n){var r,o=n;return null!=o.formulaDetails&&(r=o.formulaDetails),{type:e.EventType.worksheetFormulaChanged,source:o.source,worksheetId:o.worksheetId,formulaDetails:r}}}(v=e._CC||(e._CC={}));var fe="WorksheetProtection",he=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"WorksheetProtection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["protected","options","canPauseProtection","isPasswordProtected","isPaused","savedOptions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Protected","Options","CanPauseProtection","IsPasswordProtected","IsPaused","SavedOptions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["allowEditRanges"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"allowEditRanges",{get:function(){return k("WorksheetProtection.allowEditRanges","ExcelApiOnline","1.1",O),this._A||(this._A=S(e.AllowEditRangeCollection,this,"AllowEditRanges",!0,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canPauseProtection",{get:function(){return D("canPauseProtection",this._C,fe,this._isNull),k("WorksheetProtection.canPauseProtection","ExcelApiOnline","1.1",O),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isPasswordProtected",{get:function(){return D("isPasswordProtected",this._I,fe,this._isNull),k("WorksheetProtection.isPasswordProtected","ExcelApiOnline","1.1",O),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isPaused",{get:function(){return D("isPaused",this._Is,fe,this._isNull),k("WorksheetProtection.isPaused","ExcelApiOnline","1.1",O),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return D("options",this._O,fe,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protected",{get:function(){return D("protected",this._P,fe,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"savedOptions",{get:function(){return D("savedOptions",this._S,fe,this._isNull),k("WorksheetProtection.savedOptions","ExcelApiOnline","1.1",O),this._S},enumerable:!0,configurable:!0}),n.prototype.checkPassword=function(e){return k("WorksheetProtection.checkPassword","ExcelApiOnline","1.1",O),T(this,"CheckPassword",1,[e],4,0)},n.prototype.pauseProtection=function(e){k("WorksheetProtection.pauseProtection","ExcelApiOnline","1.1",O),T(this,"PauseProtection",0,[e],0,0)},n.prototype.protect=function(e,t){v.WorksheetProtection_Protect(this,e,t).handled||T(this,"Protect",0,[e,t],0,0)},n.prototype.resumeProtection=function(){k("WorksheetProtection.resumeProtection","ExcelApiOnline","1.1",O),T(this,"ResumeProtection",0,[],0,0)},n.prototype.setPassword=function(e){k("WorksheetProtection.setPassword","ExcelApiOnline","1.1",O),T(this,"SetPassword",0,[e],0,0)},n.prototype.unprotect=function(e){T(this,"Unprotect",0,[e],0,0)},n.prototype.updateOptions=function(e){k("WorksheetProtection.updateOptions","ExcelApiOnline","1.1",O),T(this,"UpdateOptions",0,[e],0,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.CanPauseProtection)||(this._C=n.CanPauseProtection),N(n.IsPasswordProtected)||(this._I=n.IsPasswordProtected),N(n.IsPaused)||(this._Is=n.IsPaused),N(n.Options)||(this._O=n.Options),N(n.Protected)||(this._P=n.Protected),N(n.SavedOptions)||(this._S=n.SavedOptions),L(this,n,["allowEditRanges","AllowEditRanges"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{canPauseProtection:this._C,isPasswordProtected:this._I,isPaused:this._Is,options:this._O,protected:this._P,savedOptions:this._S},{allowEditRanges:this._A})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.WorksheetProtection=he,function(e){e.WorksheetProtection_Protect=function(e,t,n){return b({mac:{desiredMajor:16,desiredMinor:7,desiredBuild:17101600},ios:{desiredMajor:2,desiredMinor:7,desiredBuild:1016},general:{desiredMajor:16,desiredMinor:0,desiredBuild:8716}})?(T(e,"Protect",0,[t],0,0),{handled:!0}):{handled:!1}}}(v=e._CC||(e._CC={}));var de=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"WorksheetFreezePanes"},enumerable:!0,configurable:!0}),n.prototype.freezeAt=function(e){T(this,"FreezeAt",0,[e],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.freezeColumns=function(e){T(this,"FreezeColumns",0,[e],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.freezeRows=function(e){T(this,"FreezeRows",0,[e],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.getLocation=function(){return P(e.Range,this,"GetLocation",1,[],!1,!0,null,4)},n.prototype.getLocationOrNullObject=function(){return P(e.Range,this,"GetLocationOrNullObject",1,[],!1,!0,null,4)},n.prototype.unfreeze=function(){T(this,"Unfreeze",0,[],G(2,"ExcelApiUndo","1.34"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),F(e))||H(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{})},n}(OfficeExtension.ClientObject);e.WorksheetFreezePanes=de;var ye="Range",me=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Range"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["numberFormat","numberFormatLocal","values","text","formulas","formulasLocal","rowIndex","columnIndex","rowCount","columnCount","address","addressLocal","cellCount","_ReferenceId","valueTypes","formulasR1C1","hidden","rowHidden","columnHidden","isEntireColumn","isEntireRow","hyperlink","style","linkedDataTypeState","hasSpill","top","left","height","width","savedAsArray","numberFormatCategories","valuesAsJson","valuesAsJsonLocal","control"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["NumberFormat","NumberFormatLocal","Values","Text","Formulas","FormulasLocal","RowIndex","ColumnIndex","RowCount","ColumnCount","Address","AddressLocal","CellCount","_ReferenceId","ValueTypes","FormulasR1C1","Hidden","RowHidden","ColumnHidden","IsEntireColumn","IsEntireRow","Hyperlink","Style","LinkedDataTypeState","HasSpill","Top","Left","Height","Width","SavedAsArray","NumberFormatCategories","ValuesAsJson","ValuesAsJsonLocal","Control"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!0,!0,!1,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format","worksheet","sort","conditionalFormats","dataValidation"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"conditionalFormats",{get:function(){return k("Range.conditionalFormats",C,"1.6",O),this._Con||(this._Con=S(e.ConditionalFormatCollection,this,"ConditionalFormats",!0,4)),this._Con},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataValidation",{get:function(){return k("Range.dataValidation",C,"1.8",O),this._D||(this._D=S(e.DataValidation,this,"DataValidation",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.RangeFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sort",{get:function(){return k("Range.sort",C,"1.2",O),this._So||(this._So=S(e.RangeSort,this,"Sort",!1,4)),this._So},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheet",{get:function(){return this._Wo||(this._Wo=S(e.Worksheet,this,"Worksheet",!1,4)),this._Wo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"address",{get:function(){return D("address",this._A,ye,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"addressLocal",{get:function(){return D("addressLocal",this._Ad,ye,this._isNull),this._Ad},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cellCount",{get:function(){return D("cellCount",this._C,ye,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnCount",{get:function(){return D("columnCount",this._Co,ye,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnHidden",{get:function(){return D("columnHidden",this._Col,ye,this._isNull),k("Range.columnHidden",C,"1.2",O),this._Col},set:function(e){this._Col=e,w(this,"ColumnHidden",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnIndex",{get:function(){return D("columnIndex",this._Colu,ye,this._isNull),this._Colu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return D("control",this._Cont,ye,this._isNull),k("Range.control",C,"1.18",O),this._Cont},set:function(e){this._Cont=e,w(this,"Control",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formulas",{get:function(){return D("formulas",this.m_formulas,ye,this._isNull),this.m_formulas},set:function(e){v.Range_Formulas_Set(this,e).handled||(this.m_formulas=e,w(this,"Formulas",e,G(2,"ExcelApiUndo","1.10")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formulasLocal",{get:function(){return D("formulasLocal",this.m_formulasLocal,ye,this._isNull),this.m_formulasLocal},set:function(e){v.Range_FormulasLocal_Set(this,e).handled||(this.m_formulasLocal=e,w(this,"FormulasLocal",e,G(2,"ExcelApiUndo","1.10")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formulasR1C1",{get:function(){return D("formulasR1C1",this.m_formulasR1C1,ye,this._isNull),k("Range.formulasR1C1",C,"1.2",O),this.m_formulasR1C1},set:function(e){v.Range_FormulasR1C1_Set(this,e).handled||(this.m_formulasR1C1=e,w(this,"FormulasR1C1",e,G(2,"ExcelApiUndo","1.30")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasSpill",{get:function(){return D("hasSpill",this._H,ye,this._isNull),k("Range.hasSpill",C,"1.12",O),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._He,ye,this._isNull),k("Range.height",C,"1.10",O),this._He},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hidden",{get:function(){return D("hidden",this._Hi,ye,this._isNull),k("Range.hidden",C,"1.2",O),this._Hi},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hyperlink",{get:function(){return D("hyperlink",this._Hy,ye,this._isNull),k("Range.hyperlink",C,"1.7",O),this._Hy},set:function(e){this._Hy=e,w(this,"Hyperlink",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEntireColumn",{get:function(){return D("isEntireColumn",this.m_isEntireColumn,ye,this._isNull),k("Range.isEntireColumn",C,"1.7",O),this.m_isEntireColumn},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEntireRow",{get:function(){return D("isEntireRow",this.m_isEntireRow,ye,this._isNull),k("Range.isEntireRow",C,"1.7",O),this.m_isEntireRow},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,ye,this._isNull),k("Range.left",C,"1.10",O),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedDataTypeState",{get:function(){return D("linkedDataTypeState",this._Li,ye,this._isNull),k("Range.linkedDataTypeState",C,"1.9",O),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this.m_numberFormat,ye,this._isNull),this.m_numberFormat},set:function(e){v.Range_NumberFormat_Set(this,e).handled||(this.m_numberFormat=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndo","1.7")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormatCategories",{get:function(){return D("numberFormatCategories",this._N,ye,this._isNull),k("Range.numberFormatCategories",C,"1.12",O),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormatLocal",{get:function(){return D("numberFormatLocal",this._Nu,ye,this._isNull),k("Range.numberFormatLocal",C,"1.7",O),this._Nu},set:function(e){this._Nu=e,w(this,"NumberFormatLocal",e,G(2,"ExcelApiUndo","1.7"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowCount",{get:function(){return D("rowCount",this._R,ye,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowHidden",{get:function(){return D("rowHidden",this._Ro,ye,this._isNull),k("Range.rowHidden",C,"1.2",O),this._Ro},set:function(e){this._Ro=e,w(this,"RowHidden",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowIndex",{get:function(){return D("rowIndex",this._Row,ye,this._isNull),this._Row},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"savedAsArray",{get:function(){return D("savedAsArray",this._S,ye,this._isNull),k("Range.savedAsArray",C,"1.12",O),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"style",{get:function(){return D("style",this._St,ye,this._isNull),k("Range.style",C,"1.7",O),this._St},set:function(e){this._St=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return D("text",this._T,ye,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._To,ye,this._isNull),k("Range.top",C,"1.10",O),this._To},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueTypes",{get:function(){return D("valueTypes",this._V,ye,this._isNull),this._V},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"values",{get:function(){return D("values",this.m_values,ye,this._isNull),this.m_values},set:function(e){v.Range_Values_Set(this,e).handled||(this.m_values=e,w(this,"Values",e,G(2,"ExcelApiUndo","1.7")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valuesAsJson",{get:function(){return D("valuesAsJson",this.m_valuesAsJson,ye,this._isNull),k("Range.valuesAsJson",C,"1.16",O),this.m_valuesAsJson},set:function(e){v.Range_ValuesAsJson_Set(this,e).handled||(this.m_valuesAsJson=e,w(this,"ValuesAsJson",e,G(2,"ExcelApiUndo","1.31")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valuesAsJsonLocal",{get:function(){return D("valuesAsJsonLocal",this.m_valuesAsJsonLocal,ye,this._isNull),k("Range.valuesAsJsonLocal",C,"1.16",O),this.m_valuesAsJsonLocal},set:function(e){v.Range_ValuesAsJsonLocal_Set(this,e).handled||(this.m_valuesAsJsonLocal=e,w(this,"ValuesAsJsonLocal",e,G(2,"ExcelApiUndo","1.31")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,ye,this._isNull),k("Range.width",C,"1.10",O),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ReferenceId",{get:function(){return D("_ReferenceId",this.__R,ye,this._isNull),this.__R},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["numberFormat","numberFormatLocal","values","formulas","formulasLocal","formulasR1C1","rowHidden","columnHidden","hyperlink","style","valuesAsJson","valuesAsJsonLocal"],["format","dataValidation"],["conditionalFormats","control","sort","worksheet"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.autoFill=function(e,t){k("Range.autoFill",C,"1.9",O),T(this,"AutoFill",0,[e,t],G(2,"ExcelApiUndo","1.22"),0)},n.prototype.calculate=function(){k("Range.calculate",C,"1.6",O),T(this,"Calculate",0,[],G(2,"ExcelApiUndo","1.26"),0)},n.prototype.clear=function(e){T(this,"Clear",0,[e],G(2,"ExcelApiUndo","1.10"),0)},n.prototype.clearOrResetContents=function(){k("Range.clearOrResetContents",C,"1.18",O),T(this,"ClearOrResetContents",0,[],G(2,"ExcelApiUndo","1.30"),0)},n.prototype.convertDataTypeToText=function(){k("Range.convertDataTypeToText",C,"1.9",O),T(this,"ConvertDataTypeToText",0,[],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.convertToLinkedDataType=function(e,t){k("Range.convertToLinkedDataType",C,"1.9",O),T(this,"ConvertToLinkedDataType",0,[e,t],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.copyFrom=function(e,t,n,r){k("Range.copyFrom",C,"1.9",O),T(this,"CopyFrom",0,[e,t,n,r],G(2,"ExcelApiUndo","1.16"),0)},n.prototype.delete=function(e){T(this,"Delete",0,[e],G(2,"ExcelApiUndo","1.15"),0)},n.prototype.find=function(t,n){return k("Range.find",C,"1.9",O),P(e.Range,this,"Find",1,[t,n],!1,!0,null,4)},n.prototype.findOrNullObject=function(t,n){return k("Range.findOrNullObject",C,"1.9",O),P(e.Range,this,"FindOrNullObject",1,[t,n],!1,!0,null,4)},n.prototype.flashFill=function(){k("Range.flashFill",C,"1.9",O),T(this,"FlashFill",0,[],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.getAbsoluteResizedRange=function(t,n){return k("Range.getAbsoluteResizedRange",C,"1.7",O),P(e.Range,this,"GetAbsoluteResizedRange",1,[t,n],!1,!0,null,4)},n.prototype.getBoundingRect=function(t){return P(e.Range,this,"GetBoundingRect",1,[t],!1,!0,null,4)},n.prototype.getCell=function(t,n){return P(e.Range,this,"GetCell",1,[t,n],!1,!0,null,4)},n.prototype.getCellProperties=function(e){return k("Range.getCellProperties",C,"1.9",O),T(this,"GetCellProperties",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.getColumn=function(t){return P(e.Range,this,"GetColumn",1,[t],!1,!0,null,4)},n.prototype.getColumnProperties=function(e){return k("Range.getColumnProperties",C,"1.9",O),T(this,"GetColumnProperties",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.getColumnsAfter=function(t){var n=v.Range_GetColumnsAfter(this,t),r=n.handled,o=n.result;return r?o:(k("Range.getColumnsAfter",C,"1.3",O),P(e.Range,this,"GetColumnsAfter",1,[t],!1,!0,null,4))},n.prototype.getColumnsBefore=function(t){var n=v.Range_GetColumnsBefore(this,t),r=n.handled,o=n.result;return r?o:(k("Range.getColumnsBefore",C,"1.3",O),P(e.Range,this,"GetColumnsBefore",1,[t],!1,!0,null,4))},n.prototype.getDataClassificationIds=function(){return k("Range.getDataClassificationIds","ExcelApiOnline","1.1",O),T(this,"GetDataClassificationIds",1,[],4,0)},n.prototype.getDependents=function(){return k("Range.getDependents",C,"1.15",O),P(e.WorkbookRangeAreas,this,"GetDependents",1,[],!1,!0,null,4)},n.prototype.getDirectDependents=function(){return k("Range.getDirectDependents",C,"1.13",O),P(e.WorkbookRangeAreas,this,"GetDirectDependents",1,[],!1,!0,null,4)},n.prototype.getDirectPrecedents=function(){return k("Range.getDirectPrecedents",C,"1.12",O),P(e.WorkbookRangeAreas,this,"GetDirectPrecedents",1,[],!1,!0,null,4)},n.prototype.getDisplayedCellProperties=function(e){return k("Range.getDisplayedCellProperties",C,"1.19",O),T(this,"GetDisplayedCellProperties",1,[e],4,0)},n.prototype.getEntireColumn=function(){return P(e.Range,this,"GetEntireColumn",1,[],!1,!0,null,4)},n.prototype.getEntireRow=function(){return P(e.Range,this,"GetEntireRow",1,[],!1,!0,null,4)},n.prototype.getExtendedRange=function(t,n){return k("Range.getExtendedRange",C,"1.13",O),P(e.Range,this,"GetExtendedRange",1,[t,n],!1,!0,null,4)},n.prototype.getImage=function(){return k("Range.getImage",C,"1.7",O),T(this,"GetImage",1,[],4,0)},n.prototype.getIntersection=function(t){return P(e.Range,this,"GetIntersection",1,[t],!1,!0,null,4)},n.prototype.getIntersectionOrNullObject=function(t){return k("Range.getIntersectionOrNullObject",C,"1.4",O),P(e.Range,this,"GetIntersectionOrNullObject",1,[t],!1,!0,null,4)},n.prototype.getLastCell=function(){return P(e.Range,this,"GetLastCell",1,[],!1,!0,null,4)},n.prototype.getLastColumn=function(){return P(e.Range,this,"GetLastColumn",1,[],!1,!0,null,4)},n.prototype.getLastRow=function(){return P(e.Range,this,"GetLastRow",1,[],!1,!0,null,4)},n.prototype.getMergedAreas=function(){return k("Range.getMergedAreas","ExcelApiOnline","1.1",O),P(e.RangeAreas,this,"GetMergedAreas",1,[],!1,!0,null,4)},n.prototype.getMergedAreasOrNullObject=function(){return k("Range.getMergedAreasOrNullObject",C,"1.13",O),P(e.RangeAreas,this,"GetMergedAreasOrNullObject",0,[],!1,!1,null,G(2,"ExcelApiUndo","1.7"))},n.prototype.getOffsetRange=function(t,n){return P(e.Range,this,"GetOffsetRange",1,[t,n],!1,!0,null,4)},n.prototype.getPivotTables=function(t){return k("Range.getPivotTables",C,"1.12",O),P(e.PivotTableScopedCollection,this,"GetPivotTables",1,[t],!0,!1,null,4)},n.prototype.getPrecedents=function(){return k("Range.getPrecedents",C,"1.14",O),P(e.WorkbookRangeAreas,this,"GetPrecedents",1,[],!1,!0,null,4)},n.prototype.getRangeEdge=function(t,n){return k("Range.getRangeEdge",C,"1.13",O),P(e.Range,this,"GetRangeEdge",1,[t,n],!1,!0,null,4)},n.prototype.getResizedRange=function(t,n){var r=v.Range_GetResizedRange(this,t,n),o=r.handled,i=r.result;return o?i:(k("Range.getResizedRange",C,"1.3",O),P(e.Range,this,"GetResizedRange",1,[t,n],!1,!0,null,4))},n.prototype.getRow=function(t){return P(e.Range,this,"GetRow",1,[t],!1,!0,null,4)},n.prototype.getRowProperties=function(e){return k("Range.getRowProperties",C,"1.9",O),T(this,"GetRowProperties",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.getRowsAbove=function(t){var n=v.Range_GetRowsAbove(this,t),r=n.handled,o=n.result;return r?o:(k("Range.getRowsAbove",C,"1.3",O),P(e.Range,this,"GetRowsAbove",1,[t],!1,!0,null,4))},n.prototype.getRowsBelow=function(t){var n=v.Range_GetRowsBelow(this,t),r=n.handled,o=n.result;return r?o:(k("Range.getRowsBelow",C,"1.3",O),P(e.Range,this,"GetRowsBelow",1,[t],!1,!0,null,4))},n.prototype.getSpecialCells=function(t,n){return k("Range.getSpecialCells",C,"1.9",O),P(e.RangeAreas,this,"GetSpecialCells",1,[t,n],!1,!0,null,4)},n.prototype.getSpecialCellsOrNullObject=function(t,n){return k("Range.getSpecialCellsOrNullObject",C,"1.9",O),P(e.RangeAreas,this,"GetSpecialCellsOrNullObject",1,[t,n],!1,!0,null,4)},n.prototype.getSpillParent=function(){return k("Range.getSpillParent",C,"1.12",O),P(e.Range,this,"GetSpillParent",1,[],!1,!0,null,4)},n.prototype.getSpillParentOrNullObject=function(){return k("Range.getSpillParentOrNullObject",C,"1.12",O),P(e.Range,this,"GetSpillParentOrNullObject",1,[],!1,!0,null,4)},n.prototype.getSpillingToRange=function(){return k("Range.getSpillingToRange",C,"1.12",O),P(e.Range,this,"GetSpillingToRange",1,[],!1,!0,null,4)},n.prototype.getSpillingToRangeOrNullObject=function(){return k("Range.getSpillingToRangeOrNullObject",C,"1.12",O),P(e.Range,this,"GetSpillingToRangeOrNullObject",1,[],!1,!0,null,4)},n.prototype.getSurroundingRegion=function(){return k("Range.getSurroundingRegion",C,"1.7",O),P(e.Range,this,"GetSurroundingRegion",1,[],!1,!0,null,4)},n.prototype.getTables=function(t){return k("Range.getTables",C,"1.9",O),P(e.TableScopedCollection,this,"GetTables",1,[t],!0,!1,null,4)},n.prototype.getUsedRange=function(t){return P(e.Range,this,"GetUsedRange",1,[t],!1,!0,null,4)},n.prototype.getUsedRangeOrNullObject=function(t){return k("Range.getUsedRangeOrNullObject",C,"1.4",O),P(e.Range,this,"GetUsedRangeOrNullObject",1,[t],!1,!0,null,4)},n.prototype.getVisibleView=function(){return k("Range.getVisibleView",C,"1.3",O),P(e.RangeView,this,"GetVisibleView",1,[],!1,!1,null,4)},n.prototype.group=function(e){k("Range.group",C,"1.10",O),T(this,"Group",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.hideGroupDetails=function(e){k("Range.hideGroupDetails",C,"1.10",O),T(this,"HideGroupDetails",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.insert=function(t){return P(e.Range,this,"Insert",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.15"))},n.prototype.merge=function(e){k("Range.merge",C,"1.2",O),T(this,"Merge",0,[e],G(2,"ExcelApiUndo","1.10"),0)},n.prototype.moveTo=function(e){k("Range.moveTo",C,"1.11",O),T(this,"MoveTo",0,[e],G(2,"ExcelApiUndo","1.16"),0)},n.prototype.removeDuplicates=function(t,n){return k("Range.removeDuplicates",C,"1.9",O),P(e.RemoveDuplicatesResult,this,"RemoveDuplicates",0,[t,n],!1,!0,null,G(2,"ExcelApiUndo","1.14"))},n.prototype.replaceAll=function(e,t,n){return k("Range.replaceAll",C,"1.9",O),T(this,"ReplaceAll",0,[e,t,n],G(2,"ExcelApiUndo","1.10"),0)},n.prototype.select=function(){T(this,"Select",1,[],0,0)},n.prototype.setCellProperties=function(e){k("Range.setCellProperties",C,"1.9",O),T(this,"SetCellProperties",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.setColumnProperties=function(e){k("Range.setColumnProperties",C,"1.9",O),T(this,"SetColumnProperties",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.setDirty=function(){k("Range.setDirty",C,"1.9",O),T(this,"SetDirty",0,[],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.setRowProperties=function(e){k("Range.setRowProperties",C,"1.9",O),T(this,"SetRowProperties",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.showCard=function(){k("Range.showCard",C,"1.7",O),T(this,"ShowCard",0,[],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.showGroupDetails=function(e){k("Range.showGroupDetails",C,"1.10",O),T(this,"ShowGroupDetails",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.showTeachingCallout=function(e,t){k("Range.showTeachingCallout",C,"1.9",O),T(this,"ShowTeachingCallout",0,[e,t],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.ungroup=function(e){k("Range.ungroup",C,"1.10",O),T(this,"Ungroup",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.unmerge=function(){k("Range.unmerge",C,"1.2",O),T(this,"Unmerge",0,[],G(2,"ExcelApiUndo","1.31"),0)},n.prototype._KeepReference=function(){T(this,"_KeepReference",1,[],0,0)},n.prototype._ValidateArraySize=function(e,t){k("Range._ValidateArraySize",C,"1.3",O),T(this,"_ValidateArraySize",1,[e,t],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),v.Range_HandleResult(this,n),N(n.Address)||(this._A=n.Address),N(n.AddressLocal)||(this._Ad=n.AddressLocal),N(n.CellCount)||(this._C=n.CellCount),N(n.ColumnCount)||(this._Co=n.ColumnCount),N(n.ColumnHidden)||(this._Col=n.ColumnHidden),N(n.ColumnIndex)||(this._Colu=n.ColumnIndex),N(n.Control)||(this._Cont=n.Control),N(n.Formulas)||(this.m_formulas=n.Formulas),N(n.FormulasLocal)||(this.m_formulasLocal=n.FormulasLocal),N(n.FormulasR1C1)||(this.m_formulasR1C1=n.FormulasR1C1),N(n.HasSpill)||(this._H=n.HasSpill),N(n.Height)||(this._He=n.Height),N(n.Hidden)||(this._Hi=n.Hidden),N(n.Hyperlink)||(this._Hy=n.Hyperlink),N(n.IsEntireColumn)||(this.m_isEntireColumn=n.IsEntireColumn),N(n.IsEntireRow)||(this.m_isEntireRow=n.IsEntireRow),N(n.Left)||(this._L=n.Left),N(n.LinkedDataTypeState)||(this._Li=n.LinkedDataTypeState),N(n.NumberFormat)||(this.m_numberFormat=n.NumberFormat),N(n.NumberFormatCategories)||(this._N=n.NumberFormatCategories),N(n.NumberFormatLocal)||(this._Nu=n.NumberFormatLocal),N(n.RowCount)||(this._R=n.RowCount),N(n.RowHidden)||(this._Ro=n.RowHidden),N(n.RowIndex)||(this._Row=n.RowIndex),N(n.SavedAsArray)||(this._S=n.SavedAsArray),N(n.Style)||(this._St=n.Style),N(n.Text)||(this._T=n.Text),N(n.Top)||(this._To=n.Top),N(n.ValueTypes)||(this._V=n.ValueTypes),N(n.Values)||(this.m_values=n.Values),N(n.ValuesAsJson)||(this.m_valuesAsJson=n.ValuesAsJson),N(n.ValuesAsJsonLocal)||(this.m_valuesAsJsonLocal=n.ValuesAsJsonLocal),N(n.Width)||(this._W=n.Width),N(n._ReferenceId)||(this.__R=n._ReferenceId),L(this,n,["conditionalFormats","ConditionalFormats","dataValidation","DataValidation","format","Format","sort","Sort","worksheet","Worksheet"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._ReferenceId)||(this.__R=e._ReferenceId)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.track=function(){return this.context.trackedObjects.add(this),this},n.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},n.prototype.toJSON=function(){return M(this,{address:this._A,addressLocal:this._Ad,cellCount:this._C,columnCount:this._Co,columnHidden:this._Col,columnIndex:this._Colu,formulas:this.m_formulas,formulasLocal:this.m_formulasLocal,formulasR1C1:this.m_formulasR1C1,hasSpill:this._H,height:this._He,hidden:this._Hi,hyperlink:this._Hy,isEntireColumn:this.m_isEntireColumn,isEntireRow:this.m_isEntireRow,left:this._L,linkedDataTypeState:this._Li,numberFormat:this.m_numberFormat,numberFormatCategories:this._N,numberFormatLocal:this._Nu,rowCount:this._R,rowHidden:this._Ro,rowIndex:this._Row,savedAsArray:this._S,style:this._St,text:this._T,top:this._To,values:this.m_values,valuesAsJson:this.m_valuesAsJson,valuesAsJsonLocal:this.m_valuesAsJsonLocal,valueTypes:this._V,width:this._W},{conditionalFormats:this._Con,dataValidation:this._D,format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Range=me;var ge=function(){function t(){}return t.prototype._ensureInteger=function(t,n){"number"==typeof t&&isFinite(t)&&Math.floor(t)===t||OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,t,n)},t.prototype._getAdjacentRange=function(e,t,n,r,o){var i;null==t&&(t=1),this._ensureInteger(t,e);var a=0,s=0;return t>0?i=n.getOffsetRange(r,o):(i=n,a=r,s=o),1===Math.abs(t)?i:i.getBoundingRect(n.getOffsetRange(r*t+a,o*t+s))},t}();e.RangeCustom=ge,OfficeExtension.Utility.applyMixin(me,ge),function(t){t.Range_HandleResult=function(e,t){N(t.isEntireColumn)||(e.m_isEntireColumn=t.isEntireColumn),N(t.isEntireRow)||(e.m_isEntireRow=t.isEntireRow)},t.Range_GetColumnsAfter=function(t,n){return p()?{handled:!1,result:null}:(null==n&&(n=1),t._ensureInteger(n,"RowsAbove"),0===n&&OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,"count","RowsAbove"),{handled:!0,result:t._getAdjacentRange("getColumnsAfter",n,t.getLastColumn(),0,1)})},t.Range_GetColumnsBefore=function(t,n){return p()?{handled:!1,result:null}:(null==n&&(n=1),t._ensureInteger(n,"RowsAbove"),0===n&&OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,"count","RowsAbove"),{handled:!0,result:t._getAdjacentRange("getColumnsBefore",n,t.getColumn(0),0,-1)})},t.Range_GetResizedRange=function(e,t,n){return p()?{handled:!1,result:null}:(e._ensureInteger(t,"getResizedRange"),e._ensureInteger(n,"getResizedRange"),{handled:!0,result:(t>=0&&n>=0?e:e.getCell(0,0)).getBoundingRect(e.getLastCell().getOffsetRange(t,n))})},t.Range_GetRowsAbove=function(t,n){return p()?{handled:!1,result:null}:(null==n&&(n=1),t._ensureInteger(n,"RowsAbove"),0===n&&OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,"count","RowsAbove"),{handled:!0,result:t._getAdjacentRange("getRowsAbove",n,t.getRow(0),-1,0)})},t.Range_GetRowsBelow=function(t,n){return p()?{handled:!1,result:null}:(null==n&&(n=1),t._ensureInteger(n,"RowsAbove"),0===n&&OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,"count","RowsAbove"),{handled:!0,result:this._getAdjacentRange("getRowsBelow",n,t.getLastRow(),1,0)})},t.Range_Formulas_Set=function(e,t){return e.m_formulas=t,u(e,"Formulas",t)?{handled:!0}:{handled:!1}},t.Range_FormulasLocal_Set=function(e,t){return e.m_formulasLocal=t,u(e,"FormulasLocal",t)?{handled:!0}:{handled:!1}},t.Range_FormulasR1C1_Set=function(e,t){return e.m_formulasR1C1=t,u(e,"FormulasR1C1",t)?{handled:!0}:{handled:!1}},t.Range_NumberFormat_Set=function(e,t){return e.m_numberFormat=t,u(e,"NumberFormat",t,G(2,"ExcelApiUndo","1.7"))?{handled:!0}:{handled:!1}},t.Range_Values_Set=function(e,t){return e.m_values=t,u(e,"Values",t,G(2,"ExcelApiUndo","1.7"))?{handled:!0}:{handled:!1}},t.Range_ValuesAsJson_Set=function(e,t){return e.m_valuesAsJson=t,u(e,"ValuesAsJson",t,G(2,"ExcelApiUndo","1.7"))?{handled:!0}:{handled:!1}},t.Range_ValuesAsJsonLocal_Set=function(e,t){return e.m_valuesAsJsonLocal=t,u(e,"ValuesAsJsonLocal",t,G(2,"ExcelApiUndo","1.7"))?{handled:!0}:{handled:!1}}}(v=e._CC||(e._CC={}));var _e="RangeAreas",be=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RangeAreas"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","address","addressLocal","areaCount","cellCount","isEntireColumn","isEntireRow","style"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Address","AddressLocal","AreaCount","CellCount","IsEntireColumn","IsEntireRow","Style"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["areas","conditionalFormats","format","dataValidation","worksheet"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"areas",{get:function(){return this._Are||(this._Are=S(e.RangeCollection,this,"Areas",!0,4)),this._Are},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"conditionalFormats",{get:function(){return this._Co||(this._Co=S(e.ConditionalFormatCollection,this,"ConditionalFormats",!0,4)),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataValidation",{get:function(){return this._D||(this._D=S(e.DataValidation,this,"DataValidation",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.RangeFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheet",{get:function(){return this._W||(this._W=S(e.Worksheet,this,"Worksheet",!1,4)),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"address",{get:function(){return D("address",this._A,_e,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"addressLocal",{get:function(){return D("addressLocal",this._Ad,_e,this._isNull),this._Ad},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"areaCount",{get:function(){return D("areaCount",this._Ar,_e,this._isNull),this._Ar},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cellCount",{get:function(){return D("cellCount",this._C,_e,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEntireColumn",{get:function(){return D("isEntireColumn",this.m_isEntireColumn,_e,this._isNull),this.m_isEntireColumn},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEntireRow",{get:function(){return D("isEntireRow",this.m_isEntireRow,_e,this._isNull),this.m_isEntireRow},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"style",{get:function(){return D("style",this._S,_e,this._isNull),this._S},set:function(e){this._S=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.31"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ReferenceId",{get:function(){return D("_ReferenceId",this.__R,_e,this._isNull),this.__R},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["style"],["format","dataValidation"],["areas","conditionalFormats","worksheet"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.calculate=function(){T(this,"Calculate",0,[],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.clear=function(e){T(this,"Clear",0,[e],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.clearOrResetContents=function(){k("RangeAreas.clearOrResetContents",C,"1.18",O),T(this,"ClearOrResetContents",0,[],G(2,"ExcelApiUndo","1.30"),0)},n.prototype.convertDataTypeToText=function(){T(this,"ConvertDataTypeToText",0,[],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.convertToLinkedDataType=function(e,t){T(this,"ConvertToLinkedDataType",0,[e,t],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.copyFrom=function(e,t,n,r){T(this,"CopyFrom",0,[e,t,n,r],G(2,"ExcelApiUndo","1.31"),0)},n.prototype.getEntireColumn=function(){return P(e.RangeAreas,this,"GetEntireColumn",1,[],!1,!0,null,4)},n.prototype.getEntireRow=function(){return P(e.RangeAreas,this,"GetEntireRow",1,[],!1,!0,null,4)},n.prototype.getIntersection=function(t){return P(e.RangeAreas,this,"GetIntersection",1,[t],!1,!0,null,4)},n.prototype.getIntersectionOrNullObject=function(t){return P(e.RangeAreas,this,"GetIntersectionOrNullObject",1,[t],!1,!0,null,4)},n.prototype.getOffsetRangeAreas=function(t,n){return P(e.RangeAreas,this,"GetOffsetRangeAreas",1,[t,n],!1,!0,null,4)},n.prototype.getSpecialCells=function(t,n){return P(e.RangeAreas,this,"GetSpecialCells",1,[t,n],!1,!0,null,4)},n.prototype.getSpecialCellsOrNullObject=function(t,n){return P(e.RangeAreas,this,"GetSpecialCellsOrNullObject",1,[t,n],!1,!0,null,4)},n.prototype.getTables=function(t){return P(e.TableScopedCollection,this,"GetTables",1,[t],!0,!1,null,4)},n.prototype.getUsedRangeAreas=function(t){return P(e.RangeAreas,this,"GetUsedRangeAreas",1,[t],!1,!0,null,4)},n.prototype.getUsedRangeAreasOrNullObject=function(t){return P(e.RangeAreas,this,"GetUsedRangeAreasOrNullObject",1,[t],!1,!0,null,4)},n.prototype.select=function(){k("RangeAreas.select",C,"1.18",O),T(this,"Select",1,[],0,0)},n.prototype.setDirty=function(){T(this,"SetDirty",0,[],G(2,"ExcelApiUndo","1.31"),0)},n.prototype._KeepReference=function(){T(this,"_KeepReference",1,[],0,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Address)||(this._A=n.Address),N(n.AddressLocal)||(this._Ad=n.AddressLocal),N(n.AreaCount)||(this._Ar=n.AreaCount),N(n.CellCount)||(this._C=n.CellCount),N(n.IsEntireColumn)||(this.m_isEntireColumn=n.IsEntireColumn),N(n.IsEntireRow)||(this.m_isEntireRow=n.IsEntireRow),N(n.Style)||(this._S=n.Style),N(n._ReferenceId)||(this.__R=n._ReferenceId),L(this,n,["areas","Areas","conditionalFormats","ConditionalFormats","dataValidation","DataValidation","format","Format","worksheet","Worksheet"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._ReferenceId)||(this.__R=e._ReferenceId)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.track=function(){return this.context.trackedObjects.add(this),this},n.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},n.prototype.toJSON=function(){return M(this,{address:this._A,addressLocal:this._Ad,areaCount:this._Ar,cellCount:this._C,isEntireColumn:this.m_isEntireColumn,isEntireRow:this.m_isEntireRow,style:this._S},{areas:this._Are,conditionalFormats:this._Co,dataValidation:this._D,format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.RangeAreas=be;var ve="WorkbookRangeAreas",Oe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"WorkbookRangeAreas"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","addresses"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Addresses"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["ranges","areas"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"areas",{get:function(){return this._Ar||(this._Ar=S(e.RangeAreasCollection,this,"Areas",!0,4)),this._Ar},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ranges",{get:function(){return this._R||(this._R=S(e.RangeCollection,this,"Ranges",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"addresses",{get:function(){return D("addresses",this._A,ve,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ReferenceId",{get:function(){return D("_ReferenceId",this.__R,ve,this._isNull),this.__R},enumerable:!0,configurable:!0}),n.prototype.getRangeAreasBySheet=function(t){return P(e.RangeAreas,this,"GetRangeAreasBySheet",1,[t],!1,!0,null,4)},n.prototype.getRangeAreasOrNullObjectBySheet=function(t){return P(e.RangeAreas,this,"GetRangeAreasOrNullObjectBySheet",1,[t],!1,!0,null,4)},n.prototype._KeepReference=function(){T(this,"_KeepReference",1,[],0,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Addresses)||(this._A=n.Addresses),N(n._ReferenceId)||(this.__R=n._ReferenceId),L(this,n,["areas","Areas","ranges","Ranges"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._ReferenceId)||(this.__R=e._ReferenceId)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.track=function(){return this.context.trackedObjects.add(this),this},n.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},n.prototype.toJSON=function(){return M(this,{addresses:this._A},{areas:this._Ar,ranges:this._R})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.WorkbookRangeAreas=Oe;var Ce="RangeView",Se=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RangeView"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["numberFormat","values","text","formulas","formulasLocal","formulasR1C1","valueTypes","rowCount","columnCount","cellAddresses","index","valuesAsJson","valuesAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["NumberFormat","Values","Text","Formulas","FormulasLocal","FormulasR1C1","ValueTypes","RowCount","ColumnCount","CellAddresses","Index","ValuesAsJson","ValuesAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1,!0,!0,!0,!1,!1,!1,!1,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["rows"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rows",{get:function(){return this._Ro||(this._Ro=S(e.RangeViewCollection,this,"Rows",!0,4)),this._Ro},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cellAddresses",{get:function(){return D("cellAddresses",this._C,Ce,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnCount",{get:function(){return D("columnCount",this._Co,Ce,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formulas",{get:function(){return D("formulas",this._F,Ce,this._isNull),this._F},set:function(e){this._F=e,w(this,"Formulas",e,G(2,"ExcelApiUndo","1.31"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formulasLocal",{get:function(){return D("formulasLocal",this._Fo,Ce,this._isNull),this._Fo},set:function(e){this._Fo=e,w(this,"FormulasLocal",e,G(2,"ExcelApiUndo","1.31"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formulasR1C1",{get:function(){return D("formulasR1C1",this._For,Ce,this._isNull),this._For},set:function(e){this._For=e,w(this,"FormulasR1C1",e,G(2,"ExcelApiUndo","1.31"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"index",{get:function(){return D("index",this._I,Ce,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this._N,Ce,this._isNull),this._N},set:function(e){this._N=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndo","1.31"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowCount",{get:function(){return D("rowCount",this._R,Ce,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return D("text",this._T,Ce,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueTypes",{get:function(){return D("valueTypes",this._Valu,Ce,this._isNull),this._Valu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"values",{get:function(){return D("values",this._V,Ce,this._isNull),this._V},set:function(e){this._V=e,w(this,"Values",e,G(2,"ExcelApiUndo","1.31"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valuesAsJson",{get:function(){return D("valuesAsJson",this._Va,Ce,this._isNull),k("RangeView.valuesAsJson",C,"1.16",O),this._Va},set:function(e){this._Va=e,w(this,"ValuesAsJson",e,G(2,"ExcelApiUndo","1.31"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valuesAsJsonLocal",{get:function(){return D("valuesAsJsonLocal",this._Val,Ce,this._isNull),k("RangeView.valuesAsJsonLocal",C,"1.16",O),this._Val},set:function(e){this._Val=e,w(this,"ValuesAsJsonLocal",e,G(2,"ExcelApiUndo","1.31"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["numberFormat","values","formulas","formulasLocal","formulasR1C1","valuesAsJson","valuesAsJsonLocal"],[],["rows"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.getRange=function(){return P(e.Range,this,"GetRange",1,[],!1,!0,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.CellAddresses)||(this._C=n.CellAddresses),N(n.ColumnCount)||(this._Co=n.ColumnCount),N(n.Formulas)||(this._F=n.Formulas),N(n.FormulasLocal)||(this._Fo=n.FormulasLocal),N(n.FormulasR1C1)||(this._For=n.FormulasR1C1),N(n.Index)||(this._I=n.Index),N(n.NumberFormat)||(this._N=n.NumberFormat),N(n.RowCount)||(this._R=n.RowCount),N(n.Text)||(this._T=n.Text),N(n.ValueTypes)||(this._Valu=n.ValueTypes),N(n.Values)||(this._V=n.Values),N(n.ValuesAsJson)||(this._Va=n.ValuesAsJson),N(n.ValuesAsJsonLocal)||(this._Val=n.ValuesAsJsonLocal),L(this,n,["rows","Rows"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{cellAddresses:this._C,columnCount:this._Co,formulas:this._F,formulasLocal:this._Fo,formulasR1C1:this._For,index:this._I,numberFormat:this._N,rowCount:this._R,text:this._T,values:this._V,valuesAsJson:this._Va,valuesAsJsonLocal:this._Val,valueTypes:this._Valu},{rows:this._Ro})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.RangeView=Se;var Pe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RangeViewCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"RangeViewCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return k("RangeViewCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItemAt=function(t){return P(e.RangeView,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.RangeView,!1,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.RangeView,!1,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.RangeView,!1,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.RangeViewCollection=Pe;var Ae=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"SettingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"SettingCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){var r=v.SettingCollection_Add(this,t,n),o=r.handled,i=r.result;return o?i:P(e.Setting,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndo","1.36"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.Setting,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.Setting,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Setting,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Setting,!0,o,t,n)}))},Object.defineProperty(n.prototype,"onSettingsChanged",{get:function(){var e=this;return this.m_settingsChanged||(this.m_settingsChanged=new OfficeExtension.EventHandlers(this.context,this,"SettingsChanged",{registerFunc:function(t){return e.context.eventRegistration.register(v.office10EventIdSettingsChangedEvent,"",t)},unregisterFunc:function(t){return e.context.eventRegistration.unregister(v.office10EventIdSettingsChangedEvent,"",t)},eventArgsTransformFunc:function(t){var n=v.SettingCollection_SettingsChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_settingsChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Setting,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.SettingCollection=Ae,function(t){t.SettingCollection_Add=function(n,r,o){return o=t._replaceDateWithStringDate(o),{handled:!0,result:P(e.Setting,n,"Add",0,[r,o],!1,!0,null,0)}},t.SettingCollection_SettingsChanged_EventArgsTransform=function(e,t){return{settings:e}}}(v=e._CC||(e._CC={}));var Ee="Setting",Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"Setting"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["key","value","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Key","Value","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return D("key",this._K,Ee,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return D("value",this.m_value,Ee,this._isNull),this.m_value},set:function(e){v.Setting_Value_Set(this,e).handled||(this.m_value=e,w(this,"Value",e,G(2,"ExcelApiUndo","1.36")))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_Id",{get:function(){return D("_Id",this.__I,Ee,this._isNull),this.__I},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.36"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),v.Setting_HandleResult(this,n),N(n.Key)||(this._K=n.Key),N(n.Value)||(this.m_value=n.Value),N(n._Id)||(this.__I=n._Id)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),F(t)||N(t._Id)||(this.__I=t._Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{key:this._K,value:this.m_value},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.Setting=Re,function(e){var t="Date(";function n(e){var n=JSON.stringify(e,(function(e,n){return this[e]instanceof Date?t+this[e].getTime()+")":n}));return e=JSON.parse(n)}e._replaceDateWithStringDate=n,e.Setting_HandleResult=function(e,n){N(n.Value)||(n.Value=function(e){var n=JSON.stringify(e);return JSON.parse(n,(function(e,n){var r;return"string"==typeof n&&n&&n.length>6&&n.slice(0,5)===t&&")"===n.slice(-1)&&(r=new Date(parseInt(n.slice(5,-1))))?r:n}))}(n.Value))},e.Setting_Value_Set=function(e,t){if(!F(t)){e.m_value=t;var r=n(t);return w(e,"Value",r,0),{handled:!0}}return{handled:!1}}}(v=e._CC||(e._CC={}));var xe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NamedItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"NamedItemCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){return k("NamedItemCollection.add",C,"1.4",O),P(e.NamedItem,this,"Add",0,[t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.addFormulaLocal=function(t,n,r){return k("NamedItemCollection.addFormulaLocal",C,"1.4",O),P(e.NamedItem,this,"AddFormulaLocal",0,[t,n,r],!1,!1,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.getCount=function(){return k("NamedItemCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.NamedItem,this,[t])},n.prototype.getItemOrNullObject=function(t){return k("NamedItemCollection.getItemOrNullObject",C,"1.4",O),P(e.NamedItem,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.NamedItem,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.NamedItem,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.NamedItem,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.NamedItemCollection=xe;var Te=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_eventTargetId",{get:function(){return this._ParentObject?this._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},enumerable:!0,configurable:!0}),e}();e.NamedItemCollectionCustom=Te,OfficeExtension.Utility.applyMixin(xe,Te);var Ie="NamedItem",we=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NamedItem"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","type","value","visible","_Id","comment","scope","formula","valueAsJson","valueAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","Type","Value","Visible","_Id","Comment","Scope","Formula","ValueAsJson","ValueAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!1,!0,!1,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["worksheet","worksheetOrNullObject","arrayValues"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"arrayValues",{get:function(){return k("NamedItem.arrayValues",C,"1.7",O),this._A||(this._A=S(e.NamedItemArrayValues,this,"ArrayValues",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheet",{get:function(){return k("NamedItem.worksheet",C,"1.4",O),this._W||(this._W=S(e.Worksheet,this,"Worksheet",!1,4)),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheetOrNullObject",{get:function(){return k("NamedItem.worksheetOrNullObject",C,"1.4",O),this._Wo||(this._Wo=S(e.Worksheet,this,"WorksheetOrNullObject",!1,4)),this._Wo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"comment",{get:function(){return D("comment",this._C,Ie,this._isNull),k("NamedItem.comment",C,"1.4",O),this._C},set:function(e){this._C=e,w(this,"Comment",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formula",{get:function(){return D("formula",this._F,Ie,this._isNull),k("NamedItem.formula",C,"1.7",O),this._F},set:function(e){this._F=e,w(this,"Formula",e,G(2,"ExcelApiUndo","1.34"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,Ie,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scope",{get:function(){return D("scope",this._S,Ie,this._isNull),k("NamedItem.scope",C,"1.4",O),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return D("type",this._T,Ie,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return D("value",this._V,Ie,this._isNull),this._V},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueAsJson",{get:function(){return D("valueAsJson",this._Va,Ie,this._isNull),k("NamedItem.valueAsJson",C,"1.16",O),this._Va},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueAsJsonLocal",{get:function(){return D("valueAsJsonLocal",this._Val,Ie,this._isNull),k("NamedItem.valueAsJsonLocal",C,"1.16",O),this._Val},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._Vi,Ie,this._isNull),this._Vi},set:function(e){this._Vi=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.37"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return D("_Id",this.__I,Ie,this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["visible","comment","formula"],[],["arrayValues","worksheet","worksheetOrNullObject"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){k("NamedItem.delete",C,"1.4",O),T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.getRange=function(){return P(e.Range,this,"GetRange",1,[],!1,!0,null,4)},n.prototype.getRangeOrNullObject=function(){return k("NamedItem.getRangeOrNullObject",C,"1.4",O),P(e.Range,this,"GetRangeOrNullObject",1,[],!1,!0,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Comment)||(this._C=n.Comment),N(n.Formula)||(this._F=n.Formula),N(n.Name)||(this._N=n.Name),N(n.Scope)||(this._S=n.Scope),N(n.Type)||(this._T=n.Type),N(n.Value)||(this._V=n.Value),N(n.ValueAsJson)||(this._Va=n.ValueAsJson),N(n.ValueAsJsonLocal)||(this._Val=n.ValueAsJsonLocal),N(n.Visible)||(this._Vi=n.Visible),N(n._Id)||(this.__I=n._Id),L(this,n,["arrayValues","ArrayValues","worksheet","Worksheet","worksheetOrNullObject","WorksheetOrNullObject"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{comment:this._C,formula:this._F,name:this._N,scope:this._S,type:this._T,value:this._V,valueAsJson:this._Va,valueAsJsonLocal:this._Val,visible:this._Vi},{arrayValues:this._A})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.NamedItem=we;var Fe="NamedItemArrayValues",Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"NamedItemArrayValues"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["values","types","valuesAsJson","valuesAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Values","Types","ValuesAsJson","ValuesAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"types",{get:function(){return D("types",this._T,Fe,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return D("values",this._V,Fe,this._isNull),this._V},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valuesAsJson",{get:function(){return D("valuesAsJson",this._Va,Fe,this._isNull),k("NamedItemArrayValues.valuesAsJson",C,"1.16",O),this._Va},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valuesAsJsonLocal",{get:function(){return D("valuesAsJsonLocal",this._Val,Fe,this._isNull),k("NamedItemArrayValues.valuesAsJsonLocal",C,"1.16",O),this._Val},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Types)||(this._T=n.Types),N(n.Values)||(this._V=n.Values),N(n.ValuesAsJson)||(this._Va=n.ValuesAsJson),N(n.ValuesAsJsonLocal)||(this._Val=n.ValuesAsJsonLocal)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{types:this._T,values:this._V,valuesAsJson:this._Va,valuesAsJsonLocal:this._Val},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.NamedItemArrayValues=Ne;var De="Binding",ke=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Binding"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,De,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return D("type",this._T,De,this._isNull),this._T},enumerable:!0,configurable:!0}),n.prototype.delete=function(){k("Binding.delete",C,"1.3",O),T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.30"),0)},n.prototype.getRange=function(){return P(e.Range,this,"GetRange",1,[],!1,!1,null,4)},n.prototype.getTable=function(){return P(e.Table,this,"GetTable",1,[],!1,!1,null,4)},n.prototype.getText=function(){return T(this,"GetText",1,[],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),N(n.Type)||(this._T=n.Type)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},Object.defineProperty(n.prototype,"onDataChanged",{get:function(){var e=this;return k("Binding.onDataChanged",C,"1.3",O),this.m_dataChanged||(this.m_dataChanged=new OfficeExtension.EventHandlers(this.context,this,"DataChanged",{registerFunc:function(t){return e.context.eventRegistration.register(v.office10EventIdBindingDataChangedEvent,e.id,t)},unregisterFunc:function(t){return e.context.eventRegistration.unregister(v.office10EventIdBindingDataChangedEvent,e.id,t)},eventArgsTransformFunc:function(t){var n=v.Binding_DataChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_dataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSelectionChanged",{get:function(){var e=this;return k("Binding.onSelectionChanged",C,"1.3",O),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.EventHandlers(this.context,this,"SelectionChanged",{registerFunc:function(t){return e.context.eventRegistration.register(v.office10EventIdBindingSelectionChangedEvent,e.id,t)},unregisterFunc:function(t){return e.context.eventRegistration.unregister(v.office10EventIdBindingSelectionChangedEvent,e.id,t)},eventArgsTransformFunc:function(t){var n=v.Binding_SelectionChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{id:this._I,type:this._T},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Binding=ke,function(e){e.Binding_DataChanged_EventArgsTransform=function(e,t){return{binding:e}},e.Binding_SelectionChanged_EventArgsTransform=function(e,t){return{binding:e,columnCount:t.columnCount,rowCount:t.rowCount,startColumn:t.startColumn,startRow:t.startRow}}}(v=e._CC||(e._CC={}));var je="BindingCollection",Ue=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"BindingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,je,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,je,this._isNull),this._C},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){return k("BindingCollection.add",C,"1.3",O),P(e.Binding,this,"Add",0,[t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.30"))},n.prototype.addFromNamedItem=function(t,n,r){return k("BindingCollection.addFromNamedItem",C,"1.3",O),P(e.Binding,this,"AddFromNamedItem",0,[t,n,r],!1,!1,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.addFromSelection=function(t,n){return k("BindingCollection.addFromSelection",C,"1.3",O),P(e.Binding,this,"AddFromSelection",0,[t,n],!1,!1,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.getCount=function(){return k("BindingCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.Binding,this,[t])},n.prototype.getItemAt=function(t){return P(e.Binding,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("BindingCollection.getItemOrNullObject",C,"1.4",O),P(e.Binding,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Binding,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Binding,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{count:this._C},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Binding,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.BindingCollection=Ue;var Me="TableCollection",He=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TableCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,Me,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,Me,this._isNull),this._C},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.Table,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndo","1.14"))},n.prototype.getCount=function(){return k("TableCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.Table,this,[t])},n.prototype.getItemAt=function(t){return P(e.Table,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("TableCollection.getItemOrNullObject",C,"1.4",O),P(e.Table,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._RegisterAddedEvent=function(){k("TableCollection._RegisterAddedEvent",C,"1.9",O),T(this,"_RegisterAddedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterDataChangedEvent=function(){k("TableCollection._RegisterDataChangedEvent",C,"1.7",O),T(this,"_RegisterDataChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterDeletedEvent=function(){k("TableCollection._RegisterDeletedEvent",C,"1.9",O),T(this,"_RegisterDeletedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterAddedEvent=function(){k("TableCollection._UnregisterAddedEvent",C,"1.9",O),T(this,"_UnregisterAddedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterDataChangedEvent=function(){k("TableCollection._UnregisterDataChangedEvent",C,"1.7",O),T(this,"_UnregisterDataChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterDeletedEvent=function(){k("TableCollection._UnregisterDeletedEvent",C,"1.9",O),T(this,"_UnregisterDeletedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Table,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Table,!0,o,t,n)}))},Object.defineProperty(n.prototype,"onAdded",{get:function(){var e=this;return k("TableCollection.onAdded",C,"1.9",O),this.m_added||(this.m_added=new OfficeExtension.GenericEventHandlers(this.context,this,"Added",{eventType:102,registerFunc:function(){return e._RegisterAddedEvent()},unregisterFunc:function(){return e._UnregisterAddedEvent()},getTargetIdFunc:function(){return e._eventTargetId},eventArgsTransformFunc:function(e){var t={type:xi.tableAdded,source:e.source,tableId:e.tableId,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_added},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onChanged",{get:function(){var e=this;return k("TableCollection.onChanged",C,"1.7",O),this.m_changed||(this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:101,registerFunc:function(){return e._RegisterDataChangedEvent()},unregisterFunc:function(){return e._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return e._eventTargetId},eventArgsTransformFunc:function(t){var n=v.TableCollection_Changed_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_changed},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeleted",{get:function(){var e=this;return k("TableCollection.onDeleted",C,"1.9",O),this.m_deleted||(this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:103,registerFunc:function(){return e._RegisterDeletedEvent()},unregisterFunc:function(){return e._UnregisterDeletedEvent()},getTargetIdFunc:function(){return e._eventTargetId},eventArgsTransformFunc:function(e){var t={type:xi.tableDeleted,source:e.source,tableId:e.tableId,tableName:e.tableName,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deleted},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{count:this._C},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Table,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.TableCollection=He;var Le=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_eventTargetId",{get:function(){return this._ParentObject?this._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},enumerable:!0,configurable:!0}),e}();e.TableCollectionCustom=Le,OfficeExtension.Utility.applyMixin(He,Le),function(t){t.TableCollection_Changed_EventArgsTransform=function(t,n){var r,o=n;return null==o.valueBefore&&null==o.valueAfter||(r={valueBefore:o.valueBefore,valueAfter:o.valueAfter,valueTypeBefore:o.valueTypeBefore,valueTypeAfter:o.valueTypeAfter,valueAsJsonBefore:o.valueAsJsonBefore,valueAsJsonAfter:o.valueAsJsonAfter}),{type:e.EventType.tableChanged,changeType:o.changeType,source:o.source,worksheetId:o.worksheetId,tableId:o.tableId,address:o.address,getRange:function(e){return k("TableChangedEventArgs.getRange",C,"1.8",O),e.workbook._GetRangeForEventByReferenceId(o.referenceId)},getRangeOrNullObject:function(e){return k("TableChangedEventArgs.getRangeOrNullObject",C,"1.8",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(o.referenceId)},details:r}}}(v=e._CC||(e._CC={}));var Be=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TableScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"TableScopedCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getFirst=function(){return P(e.Table,this,"GetFirst",1,[],!1,!0,null,4)},n.prototype.getItem=function(t){return A(e.Table,this,[t])},n.prototype.getItemOrNullObject=function(t){return k("TableScopedCollection.getItemOrNullObject",C,"1.14",O),P(e.Table,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Table,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Table,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Table,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.TableScopedCollection=Be;var We="Table",Ve=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Table"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_collectionPropertyPath",{get:function(){return"workbook.tables"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","name","showHeaders","showTotals","style","highlightFirstColumn","highlightLastColumn","showBandedRows","showBandedColumns","showFilterButton","legacyId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","ShowHeaders","ShowTotals","Style","HighlightFirstColumn","HighlightLastColumn","ShowBandedRows","ShowBandedColumns","ShowFilterButton","LegacyId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["columns","rows","sort","worksheet","autoFilter"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoFilter",{get:function(){return k("Table.autoFilter",C,"1.9",O),this._A||(this._A=S(e.AutoFilter,this,"AutoFilter",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._C||(this._C=S(e.TableColumnCollection,this,"Columns",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rows",{get:function(){return this._R||(this._R=S(e.TableRowCollection,this,"Rows",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sort",{get:function(){return k("Table.sort",C,"1.2",O),this._So||(this._So=S(e.TableSort,this,"Sort",!1,4)),this._So},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheet",{get:function(){return k("Table.worksheet",C,"1.2",O),this._W||(this._W=S(e.Worksheet,this,"Worksheet",!1,4)),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"highlightFirstColumn",{get:function(){return D("highlightFirstColumn",this._H,We,this._isNull),k("Table.highlightFirstColumn",C,"1.3",O),this._H},set:function(e){this._H=e,w(this,"HighlightFirstColumn",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"highlightLastColumn",{get:function(){return D("highlightLastColumn",this._Hi,We,this._isNull),k("Table.highlightLastColumn",C,"1.3",O),this._Hi},set:function(e){this._Hi=e,w(this,"HighlightLastColumn",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,We,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"legacyId",{get:function(){return D("legacyId",this._L,We,this._isNull),k("Table.legacyId",C,"1.8",O),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,We,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.16"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showBandedColumns",{get:function(){return D("showBandedColumns",this._S,We,this._isNull),k("Table.showBandedColumns",C,"1.3",O),this._S},set:function(e){this._S=e,w(this,"ShowBandedColumns",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showBandedRows",{get:function(){return D("showBandedRows",this._Sh,We,this._isNull),k("Table.showBandedRows",C,"1.3",O),this._Sh},set:function(e){this._Sh=e,w(this,"ShowBandedRows",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showFilterButton",{get:function(){return D("showFilterButton",this._Sho,We,this._isNull),k("Table.showFilterButton",C,"1.3",O),this._Sho},set:function(e){this._Sho=e,w(this,"ShowFilterButton",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showHeaders",{get:function(){return D("showHeaders",this._Show,We,this._isNull),this._Show},set:function(e){this._Show=e,w(this,"ShowHeaders",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showTotals",{get:function(){return D("showTotals",this._ShowT,We,this._isNull),this._ShowT},set:function(e){this._ShowT=e,w(this,"ShowTotals",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"style",{get:function(){return D("style",this._St,We,this._isNull),this._St},set:function(e){this._St=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.14"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","showHeaders","showTotals","style","highlightFirstColumn","highlightLastColumn","showBandedRows","showBandedColumns","showFilterButton"],[],["autoFilter","columns","rows","sort","worksheet"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.clearFilters=function(){k("Table.clearFilters",C,"1.2",O),T(this,"ClearFilters",0,[],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.convertToRange=function(){return k("Table.convertToRange",C,"1.2",O),P(e.Range,this,"ConvertToRange",0,[],!1,!0,null,G(2,"ExcelApiUndo","1.16"))},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.16"),0)},n.prototype.getDataBodyRange=function(){return P(e.Range,this,"GetDataBodyRange",1,[],!1,!0,null,4)},n.prototype.getHeaderRowRange=function(){return P(e.Range,this,"GetHeaderRowRange",1,[],!1,!0,null,4)},n.prototype.getRange=function(){return P(e.Range,this,"GetRange",1,[],!1,!0,null,4)},n.prototype.getTotalRowRange=function(){return P(e.Range,this,"GetTotalRowRange",1,[],!1,!0,null,4)},n.prototype.reapplyFilters=function(){k("Table.reapplyFilters",C,"1.2",O),T(this,"ReapplyFilters",0,[],G(2,"ExcelApiUndo","1.16"),0)},n.prototype.resize=function(e){k("Table.resize",C,"1.13",O),T(this,"Resize",0,[e],G(2,"ExcelApiUndo","1.16"),0)},n.prototype._RegisterDataChangedEvent=function(){k("Table._RegisterDataChangedEvent",C,"1.7",O),T(this,"_RegisterDataChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterSelectionChangedEvent=function(){k("Table._RegisterSelectionChangedEvent",C,"1.7",O),T(this,"_RegisterSelectionChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterDataChangedEvent=function(){k("Table._UnregisterDataChangedEvent",C,"1.7",O),T(this,"_UnregisterDataChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterSelectionChangedEvent=function(){k("Table._UnregisterSelectionChangedEvent",C,"1.7",O),T(this,"_UnregisterSelectionChangedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),v.Table_HandleResult(this,n),N(n.HighlightFirstColumn)||(this._H=n.HighlightFirstColumn),N(n.HighlightLastColumn)||(this._Hi=n.HighlightLastColumn),N(n.Id)||(this._I=n.Id),N(n.LegacyId)||(this._L=n.LegacyId),N(n.Name)||(this._N=n.Name),N(n.ShowBandedColumns)||(this._S=n.ShowBandedColumns),N(n.ShowBandedRows)||(this._Sh=n.ShowBandedRows),N(n.ShowFilterButton)||(this._Sho=n.ShowFilterButton),N(n.ShowHeaders)||(this._Show=n.ShowHeaders),N(n.ShowTotals)||(this._ShowT=n.ShowTotals),N(n.Style)||(this._St=n.Style),L(this,n,["autoFilter","AutoFilter","columns","Columns","rows","Rows","sort","Sort","worksheet","Worksheet"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||(v.Table_HandleIdResult(this,e),N(e.Id)||(this._I=e.Id))},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},Object.defineProperty(n.prototype,"onChanged",{get:function(){var e=this;return k("Table.onChanged",C,"1.7",O),this.m_changed||(this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:101,registerFunc:function(){return e._RegisterDataChangedEvent()},unregisterFunc:function(){return e._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(t){var n=v.Table_Changed_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_changed},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSelectionChanged",{get:function(){var e=this;return k("Table.onSelectionChanged",C,"1.7",O),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:100,registerFunc:function(){return e._RegisterSelectionChangedEvent()},unregisterFunc:function(){return e._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(t){var n=v.Table_SelectionChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{highlightFirstColumn:this._H,highlightLastColumn:this._Hi,id:this._I,legacyId:this._L,name:this._N,showBandedColumns:this._S,showBandedRows:this._Sh,showFilterButton:this._Sho,showHeaders:this._Show,showTotals:this._ShowT,style:this._St},{autoFilter:this._A,columns:this._C,rows:this._R,sort:this._So})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Table=Ve,function(t){t.Table_HandleIdResult=function(e,t){N(t.Id)||(t.Id=t.Id.toString())},t.Table_HandleResult=function(e,t){N(t.Id)||(t.Id=t.Id.toString())},t.Table_Changed_EventArgsTransform=function(t,n){var r,o=n;return null==o.valueBefore&&null==o.valueAfter||(r={valueBefore:o.valueBefore,valueAfter:o.valueAfter,valueTypeBefore:o.valueTypeBefore,valueTypeAfter:o.valueTypeAfter,valueAsJsonBefore:o.valueAsJsonBefore,valueAsJsonAfter:o.valueAsJsonAfter}),{type:e.EventType.tableChanged,changeType:o.changeType,source:o.source,worksheetId:o.worksheetId,tableId:o.tableId,address:o.address,getRange:function(e){return k("TableChangedEventArgs.getRange",C,"1.8",O),e.workbook._GetRangeForEventByReferenceId(o.referenceId)},getRangeOrNullObject:function(e){return k("TableChangedEventArgs.getRangeOrNullObject",C,"1.8",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(o.referenceId)},details:r}},t.Table_SelectionChanged_EventArgsTransform=function(t,n){var r=n,o=!r.address||0===r.address.length;return{type:e.EventType.tableSelectionChanged,isInsideTable:!o,worksheetId:r.worksheetId,tableId:t.id,address:r.address}}}(v=e._CC||(e._CC={}));var Ge="TableColumnCollection",qe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TableColumnCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,Ge,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,Ge,this._isNull),this._C},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){return P(e.TableColumn,this,"Add",0,[t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.15"))},n.prototype.addAsJson=function(t,n,r){return k("TableColumnCollection.addAsJson",C,"1.16",O),P(e.TableColumn,this,"AddAsJson",0,[t,n,r],!1,!1,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.getCount=function(){return k("TableColumnCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.TableColumn,this,[t])},n.prototype.getItemAt=function(t){return P(e.TableColumn,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("TableColumnCollection.getItemOrNullObject",C,"1.4",O),P(e.TableColumn,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.TableColumn,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.TableColumn,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{count:this._C},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.TableColumn,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.TableColumnCollection=qe;var Je="TableColumn",ze=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TableColumn"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","index","values","name","valuesAsJson","valuesAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Index","Values","Name","ValuesAsJson","ValuesAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["filter"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filter",{get:function(){return k("TableColumn.filter",C,"1.2",O),this._F||(this._F=S(e.Filter,this,"Filter",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,Je,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"index",{get:function(){return D("index",this._In,Je,this._isNull),this._In},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,Je,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"values",{get:function(){return D("values",this._V,Je,this._isNull),this._V},set:function(e){this._V=e,w(this,"Values",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valuesAsJson",{get:function(){return D("valuesAsJson",this._Va,Je,this._isNull),k("TableColumn.valuesAsJson",C,"1.16",O),this._Va},set:function(e){this._Va=e,w(this,"ValuesAsJson",e,G(2,"ExcelApiUndo","1.34"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valuesAsJsonLocal",{get:function(){return D("valuesAsJsonLocal",this._Val,Je,this._isNull),k("TableColumn.valuesAsJsonLocal",C,"1.16",O),this._Val},set:function(e){this._Val=e,w(this,"ValuesAsJsonLocal",e,G(2,"ExcelApiUndo","1.34"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["values","name","valuesAsJson","valuesAsJsonLocal"],[],["filter"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.15"),0)},n.prototype.getDataBodyRange=function(){return P(e.Range,this,"GetDataBodyRange",1,[],!1,!0,null,4)},n.prototype.getHeaderRowRange=function(){return P(e.Range,this,"GetHeaderRowRange",1,[],!1,!0,null,4)},n.prototype.getRange=function(){return P(e.Range,this,"GetRange",1,[],!1,!0,null,4)},n.prototype.getTotalRowRange=function(){return P(e.Range,this,"GetTotalRowRange",1,[],!1,!0,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),N(n.Index)||(this._In=n.Index),N(n.Name)||(this._N=n.Name),N(n.Values)||(this._V=n.Values),N(n.ValuesAsJson)||(this._Va=n.ValuesAsJson),N(n.ValuesAsJsonLocal)||(this._Val=n.ValuesAsJsonLocal),L(this,n,["filter","Filter"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{id:this._I,index:this._In,name:this._N,values:this._V,valuesAsJson:this._Va,valuesAsJsonLocal:this._Val},{filter:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.TableColumn=ze;var Ke="TableRowCollection",Qe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TableRowCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,Ke,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,Ke,this._isNull),this._C},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){return P(e.TableRow,this,"Add",0,[t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.15"))},n.prototype.addAsJson=function(t,n,r){return k("TableRowCollection.addAsJson",C,"1.16",O),P(e.TableRow,this,"AddAsJson",0,[t,n,r],!1,!1,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.deleteRows=function(e){k("TableRowCollection.deleteRows","ExcelApiOnline","1.1",O),T(this,"DeleteRows",0,[e],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.deleteRowsAt=function(e,t){k("TableRowCollection.deleteRowsAt","ExcelApiOnline","1.1",O),T(this,"DeleteRowsAt",0,[e,t],G(2,"ExcelApiUndo","1.16"),0)},n.prototype.getCount=function(){return k("TableRowCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItemAt=function(t){return P(e.TableRow,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.TableRow,!1,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.TableRow,!1,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{count:this._C},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.TableRow,!1,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.TableRowCollection=Qe;var Xe="TableRow",Ye=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TableRow"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["index","values","valuesAsJson","valuesAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Index","Values","ValuesAsJson","ValuesAsJsonLocal"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"index",{get:function(){return D("index",this._I,Xe,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"values",{get:function(){return D("values",this._V,Xe,this._isNull),this._V},set:function(e){this._V=e,w(this,"Values",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valuesAsJson",{get:function(){return D("valuesAsJson",this._Va,Xe,this._isNull),k("TableRow.valuesAsJson",C,"1.16",O),this._Va},set:function(e){this._Va=e,w(this,"ValuesAsJson",e,G(2,"ExcelApiUndo","1.34"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valuesAsJsonLocal",{get:function(){return D("valuesAsJsonLocal",this._Val,Xe,this._isNull),k("TableRow.valuesAsJsonLocal",C,"1.16",O),this._Val},set:function(e){this._Val=e,w(this,"ValuesAsJsonLocal",e,G(2,"ExcelApiUndo","1.34"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["values","valuesAsJson","valuesAsJsonLocal"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.15"),0)},n.prototype.getRange=function(){return P(e.Range,this,"GetRange",1,[],!1,!0,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Index)||(this._I=n.Index),N(n.Values)||(this._V=n.Values),N(n.ValuesAsJson)||(this._Va=n.ValuesAsJson),N(n.ValuesAsJsonLocal)||(this._Val=n.ValuesAsJsonLocal)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{index:this._I,values:this._V,valuesAsJson:this._Va,valuesAsJsonLocal:this._Val},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.TableRow=Ye;var Ze="DataValidation",$e=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DataValidation"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["type","rule","prompt","errorAlert","ignoreBlanks","valid"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Type","Rule","Prompt","ErrorAlert","IgnoreBlanks","Valid"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"errorAlert",{get:function(){return D("errorAlert",this._E,Ze,this._isNull),this._E},set:function(e){this._E=e,w(this,"ErrorAlert",e,G(2,"ExcelApiUndo","1.32"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ignoreBlanks",{get:function(){return D("ignoreBlanks",this._I,Ze,this._isNull),this._I},set:function(e){this._I=e,w(this,"IgnoreBlanks",e,G(2,"ExcelApiUndo","1.32"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"prompt",{get:function(){return D("prompt",this._P,Ze,this._isNull),this._P},set:function(e){this._P=e,w(this,"Prompt",e,G(2,"ExcelApiUndo","1.32"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rule",{get:function(){return D("rule",this._R,Ze,this._isNull),this._R},set:function(e){this._R=e,w(this,"Rule",e,G(2,"ExcelApiUndo","1.32"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return D("type",this._T,Ze,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valid",{get:function(){return D("valid",this._V,Ze,this._isNull),this._V},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["rule","prompt","errorAlert","ignoreBlanks"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.32"),0)},n.prototype.getInvalidCells=function(){return k("DataValidation.getInvalidCells",C,"1.9",O),P(e.RangeAreas,this,"GetInvalidCells",1,[],!1,!0,null,4)},n.prototype.getInvalidCellsOrNullObject=function(){return k("DataValidation.getInvalidCellsOrNullObject",C,"1.9",O),P(e.RangeAreas,this,"GetInvalidCellsOrNullObject",1,[],!1,!0,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.ErrorAlert)||(this._E=n.ErrorAlert),N(n.IgnoreBlanks)||(this._I=n.IgnoreBlanks),N(n.Prompt)||(this._P=n.Prompt),N(n.Rule)||(this._R=n.Rule),N(n.Type)||(this._T=n.Type),N(n.Valid)||(this._V=n.Valid)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{errorAlert:this._E,ignoreBlanks:this._I,prompt:this._P,rule:this._R,type:this._T,valid:this._V},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.DataValidation=$e;var et="RemoveDuplicatesResult",tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RemoveDuplicatesResult"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["removed","uniqueRemaining"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Removed","UniqueRemaining"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removed",{get:function(){return D("removed",this._R,et,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uniqueRemaining",{get:function(){return D("uniqueRemaining",this._U,et,this._isNull),this._U},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Removed)||(this._R=n.Removed),N(n.UniqueRemaining)||(this._U=n.UniqueRemaining)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{removed:this._R,uniqueRemaining:this._U},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.RemoveDuplicatesResult=tt;var nt="RangeFormat",rt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RangeFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["wrapText","horizontalAlignment","verticalAlignment","columnWidth","rowHeight","textOrientation","useStandardHeight","useStandardWidth","readingOrder","shrinkToFit","indentLevel","autoIndent"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["WrapText","HorizontalAlignment","VerticalAlignment","ColumnWidth","RowHeight","TextOrientation","UseStandardHeight","UseStandardWidth","ReadingOrder","ShrinkToFit","IndentLevel","AutoIndent"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fill","font","borders","protection"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"borders",{get:function(){return this._B||(this._B=S(e.RangeBorderCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.RangeFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.RangeFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protection",{get:function(){return k("RangeFormat.protection",C,"1.2",O),this._P||(this._P=S(e.FormatProtection,this,"Protection",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoIndent",{get:function(){return D("autoIndent",this._A,nt,this._isNull),k("RangeFormat.autoIndent",C,"1.9",O),this._A},set:function(e){this._A=e,w(this,"AutoIndent",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnWidth",{get:function(){return D("columnWidth",this._C,nt,this._isNull),k("RangeFormat.columnWidth",C,"1.2",O),this._C},set:function(e){this._C=e,w(this,"ColumnWidth",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalAlignment",{get:function(){return D("horizontalAlignment",this._H,nt,this._isNull),this._H},set:function(e){this._H=e,w(this,"HorizontalAlignment",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"indentLevel",{get:function(){return D("indentLevel",this._I,nt,this._isNull),k("RangeFormat.indentLevel",C,"1.9",O),this._I},set:function(e){this._I=e,w(this,"IndentLevel",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readingOrder",{get:function(){return D("readingOrder",this._R,nt,this._isNull),k("RangeFormat.readingOrder",C,"1.9",O),this._R},set:function(e){this._R=e,w(this,"ReadingOrder",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowHeight",{get:function(){return D("rowHeight",this._Ro,nt,this._isNull),k("RangeFormat.rowHeight",C,"1.2",O),this._Ro},set:function(e){this._Ro=e,w(this,"RowHeight",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shrinkToFit",{get:function(){return D("shrinkToFit",this._S,nt,this._isNull),k("RangeFormat.shrinkToFit",C,"1.9",O),this._S},set:function(e){this._S=e,w(this,"ShrinkToFit",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textOrientation",{get:function(){return D("textOrientation",this._T,nt,this._isNull),k("RangeFormat.textOrientation",C,"1.7",O),this._T},set:function(e){this._T=e,w(this,"TextOrientation",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"useStandardHeight",{get:function(){return D("useStandardHeight",this._U,nt,this._isNull),k("RangeFormat.useStandardHeight",C,"1.7",O),this._U},set:function(e){this._U=e,w(this,"UseStandardHeight",e,G(2,"ExcelApiUndo","1.24"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"useStandardWidth",{get:function(){return D("useStandardWidth",this._Us,nt,this._isNull),k("RangeFormat.useStandardWidth",C,"1.7",O),this._Us},set:function(e){this._Us=e,w(this,"UseStandardWidth",e,G(2,"ExcelApiUndo","1.24"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return D("verticalAlignment",this._V,nt,this._isNull),this._V},set:function(e){this._V=e,w(this,"VerticalAlignment",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"wrapText",{get:function(){return D("wrapText",this._W,nt,this._isNull),this._W},set:function(e){this._W=e,w(this,"WrapText",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["wrapText","horizontalAlignment","verticalAlignment","columnWidth","rowHeight","textOrientation","useStandardHeight","useStandardWidth","readingOrder","shrinkToFit","indentLevel","autoIndent"],["fill","font","protection"],["borders"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.adjustIndent=function(e){k("RangeFormat.adjustIndent",C,"1.11",O),T(this,"AdjustIndent",0,[e],G(2,"ExcelApiUndo","1.15"),0)},n.prototype.autofitColumns=function(){k("RangeFormat.autofitColumns",C,"1.2",O),T(this,"AutofitColumns",0,[],G(2,"ExcelApiUndo","1.10"),0)},n.prototype.autofitRows=function(){k("RangeFormat.autofitRows",C,"1.2",O),T(this,"AutofitRows",0,[],G(2,"ExcelApiUndo","1.10"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AutoIndent)||(this._A=n.AutoIndent),N(n.ColumnWidth)||(this._C=n.ColumnWidth),N(n.HorizontalAlignment)||(this._H=n.HorizontalAlignment),N(n.IndentLevel)||(this._I=n.IndentLevel),N(n.ReadingOrder)||(this._R=n.ReadingOrder),N(n.RowHeight)||(this._Ro=n.RowHeight),N(n.ShrinkToFit)||(this._S=n.ShrinkToFit),N(n.TextOrientation)||(this._T=n.TextOrientation),N(n.UseStandardHeight)||(this._U=n.UseStandardHeight),N(n.UseStandardWidth)||(this._Us=n.UseStandardWidth),N(n.VerticalAlignment)||(this._V=n.VerticalAlignment),N(n.WrapText)||(this._W=n.WrapText),L(this,n,["borders","Borders","fill","Fill","font","Font","protection","Protection"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{autoIndent:this._A,columnWidth:this._C,horizontalAlignment:this._H,indentLevel:this._I,readingOrder:this._R,rowHeight:this._Ro,shrinkToFit:this._S,textOrientation:this._T,useStandardHeight:this._U,useStandardWidth:this._Us,verticalAlignment:this._V,wrapText:this._W},{borders:this._B,fill:this._F,font:this._Fo,protection:this._P})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.RangeFormat=rt;var ot="FormatProtection",it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"FormatProtection"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["locked","formulaHidden"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Locked","FormulaHidden"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formulaHidden",{get:function(){return D("formulaHidden",this._F,ot,this._isNull),this._F},set:function(e){this._F=e,w(this,"FormulaHidden",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locked",{get:function(){return D("locked",this._L,ot,this._isNull),this._L},set:function(e){this._L=e,w(this,"Locked",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["locked","formulaHidden"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.FormulaHidden)||(this._F=n.FormulaHidden),N(n.Locked)||(this._L=n.Locked)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{formulaHidden:this._F,locked:this._L},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.FormatProtection=it;var at="RangeFill",st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RangeFill"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color","tintAndShade","patternTintAndShade","pattern","patternColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color","TintAndShade","PatternTintAndShade","Pattern","PatternColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,at,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function(){return D("pattern",this._P,at,this._isNull),k("RangeFill.pattern",C,"1.9",O),this._P},set:function(e){this._P=e,w(this,"Pattern",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patternColor",{get:function(){return D("patternColor",this._Pa,at,this._isNull),k("RangeFill.patternColor",C,"1.9",O),this._Pa},set:function(e){this._Pa=e,w(this,"PatternColor",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patternTintAndShade",{get:function(){return D("patternTintAndShade",this._Pat,at,this._isNull),k("RangeFill.patternTintAndShade",C,"1.9",O),this._Pat},set:function(e){this._Pat=e,w(this,"PatternTintAndShade",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tintAndShade",{get:function(){return D("tintAndShade",this._T,at,this._isNull),k("RangeFill.tintAndShade",C,"1.9",O),this._T},set:function(e){this._T=e,w(this,"TintAndShade",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["color","tintAndShade","patternTintAndShade","pattern","patternColor"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.10"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Color)||(this._C=n.Color),N(n.Pattern)||(this._P=n.Pattern),N(n.PatternColor)||(this._Pa=n.PatternColor),N(n.PatternTintAndShade)||(this._Pat=n.PatternTintAndShade),N(n.TintAndShade)||(this._T=n.TintAndShade)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{color:this._C,pattern:this._P,patternColor:this._Pa,patternTintAndShade:this._Pat,tintAndShade:this._T},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.RangeFill=st;var lt="RangeBorder",ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RangeBorder"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["sideIndex","style","weight","color","tintAndShade"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["SideIndex","Style","Weight","Color","TintAndShade"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,lt,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sideIndex",{get:function(){return D("sideIndex",this._S,lt,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return D("style",this._St,lt,this._isNull),this._St},set:function(e){this._St=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tintAndShade",{get:function(){return D("tintAndShade",this._T,lt,this._isNull),k("RangeBorder.tintAndShade",C,"1.9",O),this._T},set:function(e){this._T=e,w(this,"TintAndShade",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return D("weight",this._W,lt,this._isNull),this._W},set:function(e){this._W=e,w(this,"Weight",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["style","weight","color","tintAndShade"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Color)||(this._C=n.Color),N(n.SideIndex)||(this._S=n.SideIndex),N(n.Style)||(this._St=n.Style),N(n.TintAndShade)||(this._T=n.TintAndShade),N(n.Weight)||(this._W=n.Weight)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{color:this._C,sideIndex:this._S,style:this._St,tintAndShade:this._T,weight:this._W},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.RangeBorder=ut;var ct="RangeBorderCollection",pt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RangeBorderCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count","tintAndShade"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count","TintAndShade"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,ct,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,ct,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tintAndShade",{get:function(){return D("tintAndShade",this._T,ct,this._isNull),k("RangeBorderCollection.tintAndShade",C,"1.9",O),this._T},set:function(e){this._T=e,w(this,"TintAndShade",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),n.prototype.getItem=function(t){return A(e.RangeBorder,this,[t])},n.prototype.getItemAt=function(t){return P(e.RangeBorder,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),N(r.TintAndShade)||(this._T=r.TintAndShade),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.RangeBorder,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.RangeBorder,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{count:this._C,tintAndShade:this._T},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.RangeBorder,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.RangeBorderCollection=pt;var ft="RangeFont",ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RangeFont"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["name","size","color","italic","bold","underline","strikethrough","subscript","superscript","tintAndShade"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","Size","Color","Italic","Bold","Underline","Strikethrough","Subscript","Superscript","TintAndShade"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return D("bold",this._B,ft,this._isNull),this._B},set:function(e){this._B=e,w(this,"Bold",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,ft,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return D("italic",this._I,ft,this._isNull),this._I},set:function(e){this._I=e,w(this,"Italic",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return D("name",this._N,ft,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return D("size",this._S,ft,this._isNull),this._S},set:function(e){this._S=e,w(this,"Size",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikethrough",{get:function(){return D("strikethrough",this._St,ft,this._isNull),k("RangeFont.strikethrough",C,"1.9",O),this._St},set:function(e){this._St=e,w(this,"Strikethrough",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subscript",{get:function(){return D("subscript",this._Su,ft,this._isNull),k("RangeFont.subscript",C,"1.9",O),this._Su},set:function(e){this._Su=e,w(this,"Subscript",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"superscript",{get:function(){return D("superscript",this._Sup,ft,this._isNull),k("RangeFont.superscript",C,"1.9",O),this._Sup},set:function(e){this._Sup=e,w(this,"Superscript",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tintAndShade",{get:function(){return D("tintAndShade",this._T,ft,this._isNull),k("RangeFont.tintAndShade",C,"1.9",O),this._T},set:function(e){this._T=e,w(this,"TintAndShade",e,G(2,"ExcelApiUndo","1.38"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return D("underline",this._U,ft,this._isNull),this._U},set:function(e){this._U=e,w(this,"Underline",e,G(2,"ExcelApiUndo","1.10"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["name","size","color","italic","bold","underline","strikethrough","subscript","superscript","tintAndShade"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Bold)||(this._B=n.Bold),N(n.Color)||(this._C=n.Color),N(n.Italic)||(this._I=n.Italic),N(n.Name)||(this._N=n.Name),N(n.Size)||(this._S=n.Size),N(n.Strikethrough)||(this._St=n.Strikethrough),N(n.Subscript)||(this._Su=n.Subscript),N(n.Superscript)||(this._Sup=n.Superscript),N(n.TintAndShade)||(this._T=n.TintAndShade),N(n.Underline)||(this._U=n.Underline)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{bold:this._B,color:this._C,italic:this._I,name:this._N,size:this._S,strikethrough:this._St,subscript:this._Su,superscript:this._Sup,tintAndShade:this._T,underline:this._U},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.RangeFont=ht;var dt="ChartCollection",yt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,dt,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,dt,this._isNull),this._C},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){var o=v.ChartCollection_Add(this,t,n,r),i=o.handled,a=o.result;return i?a:P(e.Chart,this,"Add",0,[t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.17"))},n.prototype.getCount=function(){return k("ChartCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return P(e.Chart,this,"GetItem",1,[t],!1,!1,null,4)},n.prototype.getItemAt=function(t){return P(e.Chart,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("ChartCollection.getItemOrNullObject",C,"1.4",O),P(e.Chart,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._GetItem=function(t){return A(e.Chart,this,[t])},n.prototype._RegisterActivatedEvent=function(){k("ChartCollection._RegisterActivatedEvent",C,"1.8",O),T(this,"_RegisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._RegisterAddedEvent=function(){k("ChartCollection._RegisterAddedEvent",C,"1.8",O),T(this,"_RegisterAddedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterDeactivatedEvent=function(){k("ChartCollection._RegisterDeactivatedEvent",C,"1.8",O),T(this,"_RegisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._RegisterDeletedEvent=function(){k("ChartCollection._RegisterDeletedEvent",C,"1.8",O),T(this,"_RegisterDeletedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._UnregisterActivatedEvent=function(){k("ChartCollection._UnregisterActivatedEvent",C,"1.8",O),T(this,"_UnregisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._UnregisterAddedEvent=function(){k("ChartCollection._UnregisterAddedEvent",C,"1.8",O),T(this,"_UnregisterAddedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterDeactivatedEvent=function(){k("ChartCollection._UnregisterDeactivatedEvent",C,"1.8",O),T(this,"_UnregisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._UnregisterDeletedEvent=function(){k("ChartCollection._UnregisterDeletedEvent",C,"1.8",O),T(this,"_UnregisterDeletedEvent",0,[],G(2,"ExcelApiUndo","1.2"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Chart,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Chart,!0,o,t,n)}))},Object.defineProperty(n.prototype,"onActivated",{get:function(){var e=this;return k("ChartCollection.onActivated",C,"1.8",O),this.m_activated||(this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:51,registerFunc:function(){return e._RegisterActivatedEvent()},unregisterFunc:function(){return e._UnregisterActivatedEvent()},getTargetIdFunc:function(){return e._ParentObject.id},eventArgsTransformFunc:function(e){var t={type:xi.chartActivated,chartId:e.chartId,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_activated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onAdded",{get:function(){var e=this;return k("ChartCollection.onAdded",C,"1.8",O),this.m_added||(this.m_added=new OfficeExtension.GenericEventHandlers(this.context,this,"Added",{eventType:50,registerFunc:function(){return e._RegisterAddedEvent()},unregisterFunc:function(){return e._UnregisterAddedEvent()},getTargetIdFunc:function(){return e._ParentObject.id},eventArgsTransformFunc:function(e){var t={type:xi.chartAdded,chartId:e.chartId,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_added},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeactivated",{get:function(){var e=this;return k("ChartCollection.onDeactivated",C,"1.8",O),this.m_deactivated||(this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:52,registerFunc:function(){return e._RegisterDeactivatedEvent()},unregisterFunc:function(){return e._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return e._ParentObject.id},eventArgsTransformFunc:function(e){var t={type:xi.chartDeactivated,chartId:e.chartId,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deactivated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeleted",{get:function(){var e=this;return k("ChartCollection.onDeleted",C,"1.8",O),this.m_deleted||(this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:53,registerFunc:function(){return e._RegisterDeletedEvent()},unregisterFunc:function(){return e._UnregisterDeletedEvent()},getTargetIdFunc:function(){return e._ParentObject.id},eventArgsTransformFunc:function(e){var t={type:xi.chartDeleted,chartId:e.chartId,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deleted},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{count:this._C},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Chart,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.ChartCollection=yt;var mt=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),e}();e.ChartCollectionCustom=mt,OfficeExtension.Utility.applyMixin(yt,mt),function(t){t.ChartCollection_Add=function(t,n,r,o){if(!(r instanceof e.Range))throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ResourceStrings.invalidArgument,"sourceData","Charts.Add");return{handled:!1,result:null}}}(v=e._CC||(e._CC={}));var gt="Chart",_t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","top","left","width","height","id","showAllFieldButtons","chartType","showDataLabelsOverMaximum","categoryLabelLevel","style","displayBlanksAs","plotBy","plotVisibleOnly","seriesNameLevel"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","Top","Left","Width","Height","Id","ShowAllFieldButtons","ChartType","ShowDataLabelsOverMaximum","CategoryLabelLevel","Style","DisplayBlanksAs","PlotBy","PlotVisibleOnly","SeriesNameLevel"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["title","dataLabels","legend","series","axes","format","worksheet","plotArea","pivotOptions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"axes",{get:function(){return this._A||(this._A=S(e.ChartAxes,this,"Axes",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataLabels",{get:function(){return this._D||(this._D=S(e.ChartDataLabels,this,"DataLabels",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartAreaFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"legend",{get:function(){return this._Le||(this._Le=S(e.ChartLegend,this,"Legend",!1,4)),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pivotOptions",{get:function(){return k("Chart.pivotOptions",C,"1.9",O),this._P||(this._P=S(e.ChartPivotOptions,this,"PivotOptions",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"plotArea",{get:function(){return k("Chart.plotArea",C,"1.8",O),this._Pl||(this._Pl=S(e.ChartPlotArea,this,"PlotArea",!1,4)),this._Pl},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"series",{get:function(){return this._S||(this._S=S(e.ChartSeriesCollection,this,"Series",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._T||(this._T=S(e.ChartTitle,this,"Title",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheet",{get:function(){return k("Chart.worksheet",C,"1.2",O),this._Wo||(this._Wo=S(e.Worksheet,this,"Worksheet",!1,4)),this._Wo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"categoryLabelLevel",{get:function(){return D("categoryLabelLevel",this._C,gt,this._isNull),k("Chart.categoryLabelLevel",C,"1.8",O),this._C},set:function(e){this._C=e,w(this,"CategoryLabelLevel",e,G(2,"ExcelApiUndo","99.99"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"chartType",{get:function(){return D("chartType",this._Ch,gt,this._isNull),k("Chart.chartType",C,"1.7",O),this._Ch},set:function(e){this._Ch=e,w(this,"ChartType",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayBlanksAs",{get:function(){return D("displayBlanksAs",this._Di,gt,this._isNull),k("Chart.displayBlanksAs",C,"1.8",O),this._Di},set:function(e){this._Di=e,w(this,"DisplayBlanksAs",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,gt,this._isNull),this._H},set:function(e){this._H=e,w(this,"Height",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,gt,this._isNull),k("Chart.id",C,"1.7",O),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,gt,this._isNull),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,gt,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"plotBy",{get:function(){return D("plotBy",this._Plo,gt,this._isNull),k("Chart.plotBy",C,"1.8",O),this._Plo},set:function(e){this._Plo=e,w(this,"PlotBy",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"plotVisibleOnly",{get:function(){return D("plotVisibleOnly",this._Plot,gt,this._isNull),k("Chart.plotVisibleOnly",C,"1.8",O),this._Plot},set:function(e){this._Plot=e,w(this,"PlotVisibleOnly",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"seriesNameLevel",{get:function(){return D("seriesNameLevel",this._Se,gt,this._isNull),k("Chart.seriesNameLevel",C,"1.8",O),this._Se},set:function(e){this._Se=e,w(this,"SeriesNameLevel",e,G(2,"ExcelApiUndo","99.99"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showAllFieldButtons",{get:function(){return D("showAllFieldButtons",this._Sh,gt,this._isNull),k("Chart.showAllFieldButtons",C,"1.7",O),this._Sh},set:function(e){this._Sh=e,w(this,"ShowAllFieldButtons",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showDataLabelsOverMaximum",{get:function(){return D("showDataLabelsOverMaximum",this._Sho,gt,this._isNull),k("Chart.showDataLabelsOverMaximum",C,"1.8",O),this._Sho},set:function(e){this._Sho=e,w(this,"ShowDataLabelsOverMaximum",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"style",{get:function(){return D("style",this._St,gt,this._isNull),k("Chart.style",C,"1.8",O),this._St},set:function(e){this._St=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._To,gt,this._isNull),this._To},set:function(e){this._To=e,w(this,"Top",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,gt,this._isNull),this._W},set:function(e){this._W=e,w(this,"Width",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","top","left","width","height","showAllFieldButtons","chartType","showDataLabelsOverMaximum","categoryLabelLevel","style","displayBlanksAs","plotBy","plotVisibleOnly","seriesNameLevel"],["title","dataLabels","legend","axes","format","plotArea","pivotOptions"],["series","worksheet"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.activate=function(){k("Chart.activate",C,"1.9",O),T(this,"Activate",1,[],0,0)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.17"),0)},n.prototype.getDataTable=function(){return k("Chart.getDataTable",C,"1.14",O),P(e.ChartDataTable,this,"GetDataTable",1,[],!1,!1,null,4)},n.prototype.getDataTableOrNullObject=function(){return k("Chart.getDataTableOrNullObject",C,"1.14",O),P(e.ChartDataTable,this,"GetDataTableOrNullObject",1,[],!1,!1,null,4)},n.prototype.getImage=function(e,t,n){return k("Chart.getImage",C,"1.2",O),T(this,"GetImage",1,[e,t,n],4,0)},n.prototype.setData=function(e,t){v.Chart_SetData(this,e,t).handled||T(this,"SetData",0,[e,t],G(2,"ExcelApiUndo","1.17"),0)},n.prototype.setPosition=function(e,t){T(this,"SetPosition",0,[e,t],G(2,"ExcelApiUndo","1.17"),0)},n.prototype._RegisterActivatedEvent=function(){k("Chart._RegisterActivatedEvent",C,"1.8",O),T(this,"_RegisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterDeactivatedEvent=function(){k("Chart._RegisterDeactivatedEvent",C,"1.8",O),T(this,"_RegisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterActivatedEvent=function(){k("Chart._UnregisterActivatedEvent",C,"1.8",O),T(this,"_UnregisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterDeactivatedEvent=function(){k("Chart._UnregisterDeactivatedEvent",C,"1.8",O),T(this,"_UnregisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.CategoryLabelLevel)||(this._C=n.CategoryLabelLevel),N(n.ChartType)||(this._Ch=n.ChartType),N(n.DisplayBlanksAs)||(this._Di=n.DisplayBlanksAs),N(n.Height)||(this._H=n.Height),N(n.Id)||(this._I=n.Id),N(n.Left)||(this._L=n.Left),N(n.Name)||(this._N=n.Name),N(n.PlotBy)||(this._Plo=n.PlotBy),N(n.PlotVisibleOnly)||(this._Plot=n.PlotVisibleOnly),N(n.SeriesNameLevel)||(this._Se=n.SeriesNameLevel),N(n.ShowAllFieldButtons)||(this._Sh=n.ShowAllFieldButtons),N(n.ShowDataLabelsOverMaximum)||(this._Sho=n.ShowDataLabelsOverMaximum),N(n.Style)||(this._St=n.Style),N(n.Top)||(this._To=n.Top),N(n.Width)||(this._W=n.Width),L(this,n,["axes","Axes","dataLabels","DataLabels","format","Format","legend","Legend","pivotOptions","PivotOptions","plotArea","PlotArea","series","Series","title","Title","worksheet","Worksheet"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},Object.defineProperty(n.prototype,"onActivated",{get:function(){var e=this;return k("Chart.onActivated",C,"1.8",O),this.m_activated||(this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:51,registerFunc:function(){return e._RegisterActivatedEvent()},unregisterFunc:function(){return e._UnregisterActivatedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.chartActivated,chartId:e.chartId,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_activated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeactivated",{get:function(){var e=this;return k("Chart.onDeactivated",C,"1.8",O),this.m_deactivated||(this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:52,registerFunc:function(){return e._RegisterDeactivatedEvent()},unregisterFunc:function(){return e._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.chartDeactivated,chartId:e.chartId,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deactivated},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{categoryLabelLevel:this._C,chartType:this._Ch,displayBlanksAs:this._Di,height:this._H,id:this._I,left:this._L,name:this._N,plotBy:this._Plo,plotVisibleOnly:this._Plot,seriesNameLevel:this._Se,showAllFieldButtons:this._Sh,showDataLabelsOverMaximum:this._Sho,style:this._St,top:this._To,width:this._W},{axes:this._A,dataLabels:this._D,format:this._F,legend:this._Le,pivotOptions:this._P,plotArea:this._Pl,series:this._S,title:this._T})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Chart=_t,function(t){t.Chart_SetData=function(t,n,r){if(!(n instanceof e.Range))throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ResourceStrings.invalidArgument,"sourceData","Chart.setData");return{handled:!1}}}(v=e._CC||(e._CC={}));var bt="ChartPivotOptions",vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartPivotOptions"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["showAxisFieldButtons","showLegendFieldButtons","showReportFilterFieldButtons","showValueFieldButtons"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ShowAxisFieldButtons","ShowLegendFieldButtons","ShowReportFilterFieldButtons","ShowValueFieldButtons"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showAxisFieldButtons",{get:function(){return D("showAxisFieldButtons",this._S,bt,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShowAxisFieldButtons",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showLegendFieldButtons",{get:function(){return D("showLegendFieldButtons",this._Sh,bt,this._isNull),this._Sh},set:function(e){this._Sh=e,w(this,"ShowLegendFieldButtons",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showReportFilterFieldButtons",{get:function(){return D("showReportFilterFieldButtons",this._Sho,bt,this._isNull),this._Sho},set:function(e){this._Sho=e,w(this,"ShowReportFilterFieldButtons",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showValueFieldButtons",{get:function(){return D("showValueFieldButtons",this._Show,bt,this._isNull),this._Show},set:function(e){this._Show=e,w(this,"ShowValueFieldButtons",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["showAxisFieldButtons","showLegendFieldButtons","showReportFilterFieldButtons","showValueFieldButtons"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.ShowAxisFieldButtons)||(this._S=n.ShowAxisFieldButtons),N(n.ShowLegendFieldButtons)||(this._Sh=n.ShowLegendFieldButtons),N(n.ShowReportFilterFieldButtons)||(this._Sho=n.ShowReportFilterFieldButtons),N(n.ShowValueFieldButtons)||(this._Show=n.ShowValueFieldButtons)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{showAxisFieldButtons:this._S,showLegendFieldButtons:this._Sh,showReportFilterFieldButtons:this._Sho,showValueFieldButtons:this._Show},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartPivotOptions=vt;var Ot="ChartAreaFormat",Ct=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartAreaFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["roundedCorners","colorScheme"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["RoundedCorners","ColorScheme"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fill","font","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return k("ChartAreaFormat.border",C,"1.7",O),this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ChartFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colorScheme",{get:function(){return D("colorScheme",this._C,Ot,this._isNull),k("ChartAreaFormat.colorScheme",C,"1.9",O),this._C},set:function(e){this._C=e,w(this,"ColorScheme",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"roundedCorners",{get:function(){return D("roundedCorners",this._R,Ot,this._isNull),k("ChartAreaFormat.roundedCorners",C,"1.9",O),this._R},set:function(e){this._R=e,w(this,"RoundedCorners",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["roundedCorners","colorScheme"],["font","border"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.ColorScheme)||(this._C=n.ColorScheme),N(n.RoundedCorners)||(this._R=n.RoundedCorners),L(this,n,["border","Border","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{colorScheme:this._C,roundedCorners:this._R},{border:this._B,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartAreaFormat=Ct;var St="ChartSeriesCollection",Pt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartSeriesCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,St,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,St,this._isNull),this._C},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return k("ChartSeriesCollection.add",C,"1.7",O),P(e.ChartSeries,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndo","1.17"))},n.prototype.getCount=function(){return k("ChartSeriesCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItemAt=function(t){return P(e.ChartSeries,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.ChartSeries,!1,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.ChartSeries,!1,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{count:this._C},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.ChartSeries,!1,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.ChartSeriesCollection=Pt;var At="ChartSeries",Et=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartSeries"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","chartType","hasDataLabels","filtered","markerSize","markerStyle","showShadow","markerBackgroundColor","markerForegroundColor","smooth","plotOrder","gapWidth","doughnutHoleSize","axisGroup","explosion","firstSliceAngle","invertIfNegative","bubbleScale","secondPlotSize","splitType","splitValue","varyByCategories","showLeaderLines","overlap","gradientStyle","gradientMinimumType","gradientMidpointType","gradientMaximumType","gradientMinimumValue","gradientMidpointValue","gradientMaximumValue","gradientMinimumColor","gradientMidpointColor","gradientMaximumColor","parentLabelStrategy","showConnectorLines","invertColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","ChartType","HasDataLabels","Filtered","MarkerSize","MarkerStyle","ShowShadow","MarkerBackgroundColor","MarkerForegroundColor","Smooth","PlotOrder","GapWidth","DoughnutHoleSize","AxisGroup","Explosion","FirstSliceAngle","InvertIfNegative","BubbleScale","SecondPlotSize","SplitType","SplitValue","VaryByCategories","ShowLeaderLines","Overlap","GradientStyle","GradientMinimumType","GradientMidpointType","GradientMaximumType","GradientMinimumValue","GradientMidpointValue","GradientMaximumValue","GradientMinimumColor","GradientMidpointColor","GradientMaximumColor","ParentLabelStrategy","ShowConnectorLines","InvertColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["points","format","trendlines","xErrorBars","yErrorBars","dataLabels","binOptions","mapOptions","boxwhiskerOptions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binOptions",{get:function(){return k("ChartSeries.binOptions",C,"1.9",O),this._B||(this._B=S(e.ChartBinOptions,this,"BinOptions",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"boxwhiskerOptions",{get:function(){return k("ChartSeries.boxwhiskerOptions",C,"1.9",O),this._Bo||(this._Bo=S(e.ChartBoxwhiskerOptions,this,"BoxwhiskerOptions",!1,4)),this._Bo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataLabels",{get:function(){return k("ChartSeries.dataLabels",C,"1.8",O),this._D||(this._D=S(e.ChartDataLabels,this,"DataLabels",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._Fo||(this._Fo=S(e.ChartSeriesFormat,this,"Format",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"mapOptions",{get:function(){return k("ChartSeries.mapOptions",C,"1.9",O),this._M||(this._M=S(e.ChartMapOptions,this,"MapOptions",!1,4)),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"points",{get:function(){return this._Po||(this._Po=S(e.ChartPointsCollection,this,"Points",!0,4)),this._Po},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"trendlines",{get:function(){return k("ChartSeries.trendlines",C,"1.7",O),this._T||(this._T=S(e.ChartTrendlineCollection,this,"Trendlines",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"xErrorBars",{get:function(){return k("ChartSeries.xErrorBars",C,"1.9",O),this._X||(this._X=S(e.ChartErrorBars,this,"XErrorBars",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"yErrorBars",{get:function(){return k("ChartSeries.yErrorBars",C,"1.9",O),this._Y||(this._Y=S(e.ChartErrorBars,this,"YErrorBars",!1,4)),this._Y},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"axisGroup",{get:function(){return D("axisGroup",this._A,At,this._isNull),k("ChartSeries.axisGroup",C,"1.8",O),this._A},set:function(e){this._A=e,w(this,"AxisGroup",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bubbleScale",{get:function(){return D("bubbleScale",this._Bu,At,this._isNull),k("ChartSeries.bubbleScale",C,"1.9",O),this._Bu},set:function(e){this._Bu=e,w(this,"BubbleScale",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"chartType",{get:function(){return D("chartType",this._C,At,this._isNull),k("ChartSeries.chartType",C,"1.7",O),this._C},set:function(e){this._C=e,w(this,"ChartType",e,G(2,"ExcelApiUndo","1.6"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"doughnutHoleSize",{get:function(){return D("doughnutHoleSize",this._Do,At,this._isNull),k("ChartSeries.doughnutHoleSize",C,"1.7",O),this._Do},set:function(e){this._Do=e,w(this,"DoughnutHoleSize",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"explosion",{get:function(){return D("explosion",this._E,At,this._isNull),k("ChartSeries.explosion",C,"1.8",O),this._E},set:function(e){this._E=e,w(this,"Explosion",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filtered",{get:function(){return D("filtered",this._F,At,this._isNull),k("ChartSeries.filtered",C,"1.7",O),this._F},set:function(e){this._F=e,w(this,"Filtered",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"firstSliceAngle",{get:function(){return D("firstSliceAngle",this._Fi,At,this._isNull),k("ChartSeries.firstSliceAngle",C,"1.8",O),this._Fi},set:function(e){this._Fi=e,w(this,"FirstSliceAngle",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gapWidth",{get:function(){return D("gapWidth",this._G,At,this._isNull),k("ChartSeries.gapWidth",C,"1.7",O),this._G},set:function(e){this._G=e,w(this,"GapWidth",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMaximumColor",{get:function(){return D("gradientMaximumColor",this._Gr,At,this._isNull),k("ChartSeries.gradientMaximumColor",C,"1.9",O),this._Gr},set:function(e){this._Gr=e,w(this,"GradientMaximumColor",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMaximumType",{get:function(){return D("gradientMaximumType",this._Gra,At,this._isNull),k("ChartSeries.gradientMaximumType",C,"1.9",O),this._Gra},set:function(e){this._Gra=e,w(this,"GradientMaximumType",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMaximumValue",{get:function(){return D("gradientMaximumValue",this._Grad,At,this._isNull),k("ChartSeries.gradientMaximumValue",C,"1.9",O),this._Grad},set:function(e){this._Grad=e,w(this,"GradientMaximumValue",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMidpointColor",{get:function(){return D("gradientMidpointColor",this._Gradi,At,this._isNull),k("ChartSeries.gradientMidpointColor",C,"1.9",O),this._Gradi},set:function(e){this._Gradi=e,w(this,"GradientMidpointColor",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMidpointType",{get:function(){return D("gradientMidpointType",this._Gradie,At,this._isNull),k("ChartSeries.gradientMidpointType",C,"1.9",O),this._Gradie},set:function(e){this._Gradie=e,w(this,"GradientMidpointType",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMidpointValue",{get:function(){return D("gradientMidpointValue",this._Gradien,At,this._isNull),k("ChartSeries.gradientMidpointValue",C,"1.9",O),this._Gradien},set:function(e){this._Gradien=e,w(this,"GradientMidpointValue",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMinimumColor",{get:function(){return D("gradientMinimumColor",this._Gradient,At,this._isNull),k("ChartSeries.gradientMinimumColor",C,"1.9",O),this._Gradient},set:function(e){this._Gradient=e,w(this,"GradientMinimumColor",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMinimumType",{get:function(){return D("gradientMinimumType",this._GradientM,At,this._isNull),k("ChartSeries.gradientMinimumType",C,"1.9",O),this._GradientM},set:function(e){this._GradientM=e,w(this,"GradientMinimumType",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientMinimumValue",{get:function(){return D("gradientMinimumValue",this._GradientMi,At,this._isNull),k("ChartSeries.gradientMinimumValue",C,"1.9",O),this._GradientMi},set:function(e){this._GradientMi=e,w(this,"GradientMinimumValue",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gradientStyle",{get:function(){return D("gradientStyle",this._GradientS,At,this._isNull),k("ChartSeries.gradientStyle",C,"1.9",O),this._GradientS},set:function(e){this._GradientS=e,w(this,"GradientStyle",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasDataLabels",{get:function(){return D("hasDataLabels",this._H,At,this._isNull),k("ChartSeries.hasDataLabels",C,"1.7",O),this._H},set:function(e){this._H=e,w(this,"HasDataLabels",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"invertColor",{get:function(){return D("invertColor",this._I,At,this._isNull),k("ChartSeries.invertColor",C,"1.9",O),this._I},set:function(e){this._I=e,w(this,"InvertColor",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"invertIfNegative",{get:function(){return D("invertIfNegative",this._In,At,this._isNull),k("ChartSeries.invertIfNegative",C,"1.8",O),this._In},set:function(e){this._In=e,w(this,"InvertIfNegative",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerBackgroundColor",{get:function(){return D("markerBackgroundColor",this._Ma,At,this._isNull),k("ChartSeries.markerBackgroundColor",C,"1.7",O),this._Ma},set:function(e){this._Ma=e,w(this,"MarkerBackgroundColor",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerForegroundColor",{get:function(){return D("markerForegroundColor",this._Mar,At,this._isNull),k("ChartSeries.markerForegroundColor",C,"1.7",O),this._Mar},set:function(e){this._Mar=e,w(this,"MarkerForegroundColor",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerSize",{get:function(){return D("markerSize",this._Mark,At,this._isNull),k("ChartSeries.markerSize",C,"1.7",O),this._Mark},set:function(e){this._Mark=e,w(this,"MarkerSize",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerStyle",{get:function(){return D("markerStyle",this._Marke,At,this._isNull),k("ChartSeries.markerStyle",C,"1.7",O),this._Marke},set:function(e){this._Marke=e,w(this,"MarkerStyle",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,At,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"overlap",{get:function(){return D("overlap",this._O,At,this._isNull),k("ChartSeries.overlap",C,"1.8",O),this._O},set:function(e){this._O=e,w(this,"Overlap",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentLabelStrategy",{get:function(){return D("parentLabelStrategy",this._P,At,this._isNull),k("ChartSeries.parentLabelStrategy",C,"1.9",O),this._P},set:function(e){this._P=e,w(this,"ParentLabelStrategy",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"plotOrder",{get:function(){return D("plotOrder",this._Pl,At,this._isNull),k("ChartSeries.plotOrder",C,"1.7",O),this._Pl},set:function(e){this._Pl=e,w(this,"PlotOrder",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"secondPlotSize",{get:function(){return D("secondPlotSize",this._S,At,this._isNull),k("ChartSeries.secondPlotSize",C,"1.8",O),this._S},set:function(e){this._S=e,w(this,"SecondPlotSize",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showConnectorLines",{get:function(){return D("showConnectorLines",this._Sh,At,this._isNull),k("ChartSeries.showConnectorLines",C,"1.9",O),this._Sh},set:function(e){this._Sh=e,w(this,"ShowConnectorLines",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLeaderLines",{get:function(){return D("showLeaderLines",this._Sho,At,this._isNull),k("ChartSeries.showLeaderLines",C,"1.9",O),this._Sho},set:function(e){this._Sho=e,w(this,"ShowLeaderLines",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showShadow",{get:function(){return D("showShadow",this._Show,At,this._isNull),k("ChartSeries.showShadow",C,"1.7",O),this._Show},set:function(e){this._Show=e,w(this,"ShowShadow",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"smooth",{get:function(){return D("smooth",this._Sm,At,this._isNull),k("ChartSeries.smooth",C,"1.7",O),this._Sm},set:function(e){this._Sm=e,w(this,"Smooth",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"splitType",{get:function(){return D("splitType",this._Sp,At,this._isNull),k("ChartSeries.splitType",C,"1.8",O),this._Sp},set:function(e){this._Sp=e,w(this,"SplitType",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"splitValue",{get:function(){return D("splitValue",this._Spl,At,this._isNull),k("ChartSeries.splitValue",C,"1.9",O),this._Spl},set:function(e){this._Spl=e,w(this,"SplitValue",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"varyByCategories",{get:function(){return D("varyByCategories",this._V,At,this._isNull),k("ChartSeries.varyByCategories",C,"1.8",O),this._V},set:function(e){this._V=e,w(this,"VaryByCategories",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","chartType","hasDataLabels","filtered","markerSize","markerStyle","showShadow","markerBackgroundColor","markerForegroundColor","smooth","plotOrder","gapWidth","doughnutHoleSize","axisGroup","explosion","firstSliceAngle","invertIfNegative","bubbleScale","secondPlotSize","splitType","splitValue","varyByCategories","showLeaderLines","overlap","gradientStyle","gradientMinimumType","gradientMidpointType","gradientMaximumType","gradientMinimumValue","gradientMidpointValue","gradientMaximumValue","gradientMinimumColor","gradientMidpointColor","gradientMaximumColor","parentLabelStrategy","showConnectorLines","invertColor"],["format","xErrorBars","yErrorBars","dataLabels","binOptions","mapOptions","boxwhiskerOptions"],["points","trendlines"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){k("ChartSeries.delete",C,"1.7",O),T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.17"),0)},n.prototype.getDimensionDataSourceString=function(e){return k("ChartSeries.getDimensionDataSourceString",C,"1.15",O),T(this,"GetDimensionDataSourceString",0,[e],G(2,"ExcelApiUndo","1.36"),0)},n.prototype.getDimensionDataSourceType=function(e){return k("ChartSeries.getDimensionDataSourceType",C,"1.15",O),T(this,"GetDimensionDataSourceType",0,[e],G(2,"ExcelApiUndo","1.36"),0)},n.prototype.getDimensionValues=function(e){return k("ChartSeries.getDimensionValues",C,"1.12",O),T(this,"GetDimensionValues",0,[e],G(2,"ExcelApiUndo","1.36"),0)},n.prototype.setBubbleSizes=function(e){k("ChartSeries.setBubbleSizes",C,"1.7",O),T(this,"SetBubbleSizes",0,[e],G(2,"ExcelApiUndo","1.36"),0)},n.prototype.setValues=function(e){k("ChartSeries.setValues",C,"1.7",O),T(this,"SetValues",0,[e],G(2,"ExcelApiUndo","1.17"),0)},n.prototype.setXAxisValues=function(e){k("ChartSeries.setXAxisValues",C,"1.7",O),T(this,"SetXAxisValues",0,[e],G(2,"ExcelApiUndo","1.17"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AxisGroup)||(this._A=n.AxisGroup),N(n.BubbleScale)||(this._Bu=n.BubbleScale),N(n.ChartType)||(this._C=n.ChartType),N(n.DoughnutHoleSize)||(this._Do=n.DoughnutHoleSize),N(n.Explosion)||(this._E=n.Explosion),N(n.Filtered)||(this._F=n.Filtered),N(n.FirstSliceAngle)||(this._Fi=n.FirstSliceAngle),N(n.GapWidth)||(this._G=n.GapWidth),N(n.GradientMaximumColor)||(this._Gr=n.GradientMaximumColor),N(n.GradientMaximumType)||(this._Gra=n.GradientMaximumType),N(n.GradientMaximumValue)||(this._Grad=n.GradientMaximumValue),N(n.GradientMidpointColor)||(this._Gradi=n.GradientMidpointColor),N(n.GradientMidpointType)||(this._Gradie=n.GradientMidpointType),N(n.GradientMidpointValue)||(this._Gradien=n.GradientMidpointValue),N(n.GradientMinimumColor)||(this._Gradient=n.GradientMinimumColor),N(n.GradientMinimumType)||(this._GradientM=n.GradientMinimumType),N(n.GradientMinimumValue)||(this._GradientMi=n.GradientMinimumValue),N(n.GradientStyle)||(this._GradientS=n.GradientStyle),N(n.HasDataLabels)||(this._H=n.HasDataLabels),N(n.InvertColor)||(this._I=n.InvertColor),N(n.InvertIfNegative)||(this._In=n.InvertIfNegative),N(n.MarkerBackgroundColor)||(this._Ma=n.MarkerBackgroundColor),N(n.MarkerForegroundColor)||(this._Mar=n.MarkerForegroundColor),N(n.MarkerSize)||(this._Mark=n.MarkerSize),N(n.MarkerStyle)||(this._Marke=n.MarkerStyle),N(n.Name)||(this._N=n.Name),N(n.Overlap)||(this._O=n.Overlap),N(n.ParentLabelStrategy)||(this._P=n.ParentLabelStrategy),N(n.PlotOrder)||(this._Pl=n.PlotOrder),N(n.SecondPlotSize)||(this._S=n.SecondPlotSize),N(n.ShowConnectorLines)||(this._Sh=n.ShowConnectorLines),N(n.ShowLeaderLines)||(this._Sho=n.ShowLeaderLines),N(n.ShowShadow)||(this._Show=n.ShowShadow),N(n.Smooth)||(this._Sm=n.Smooth),N(n.SplitType)||(this._Sp=n.SplitType),N(n.SplitValue)||(this._Spl=n.SplitValue),N(n.VaryByCategories)||(this._V=n.VaryByCategories),L(this,n,["binOptions","BinOptions","boxwhiskerOptions","BoxwhiskerOptions","dataLabels","DataLabels","format","Format","mapOptions","MapOptions","points","Points","trendlines","Trendlines","xErrorBars","XErrorBars","yErrorBars","YErrorBars"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{axisGroup:this._A,bubbleScale:this._Bu,chartType:this._C,doughnutHoleSize:this._Do,explosion:this._E,filtered:this._F,firstSliceAngle:this._Fi,gapWidth:this._G,gradientMaximumColor:this._Gr,gradientMaximumType:this._Gra,gradientMaximumValue:this._Grad,gradientMidpointColor:this._Gradi,gradientMidpointType:this._Gradie,gradientMidpointValue:this._Gradien,gradientMinimumColor:this._Gradient,gradientMinimumType:this._GradientM,gradientMinimumValue:this._GradientMi,gradientStyle:this._GradientS,hasDataLabels:this._H,invertColor:this._I,invertIfNegative:this._In,markerBackgroundColor:this._Ma,markerForegroundColor:this._Mar,markerSize:this._Mark,markerStyle:this._Marke,name:this._N,overlap:this._O,parentLabelStrategy:this._P,plotOrder:this._Pl,secondPlotSize:this._S,showConnectorLines:this._Sh,showLeaderLines:this._Sho,showShadow:this._Show,smooth:this._Sm,splitType:this._Sp,splitValue:this._Spl,varyByCategories:this._V},{binOptions:this._B,boxwhiskerOptions:this._Bo,dataLabels:this._D,format:this._Fo,mapOptions:this._M,points:this._Po,trendlines:this._T,xErrorBars:this._X,yErrorBars:this._Y})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartSeries=Et;var Rt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartSeriesFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fill","line"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"line",{get:function(){return this._L||(this._L=S(e.ChartLineFormat,this,"Line",!1,4)),this._L},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["line"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["fill","Fill","line","Line"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{line:this._L})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartSeriesFormat=Rt;var xt="ChartPointsCollection",Tt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartPointsCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,xt,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,xt,this._isNull),this._C},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return k("ChartPointsCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItemAt=function(t){return P(e.ChartPoint,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.ChartPoint,!1,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.ChartPoint,!1,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{count:this._C},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.ChartPoint,!1,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.ChartPointsCollection=Tt;var It="ChartPoint",wt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartPoint"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["value","hasDataLabel","markerStyle","markerSize","markerBackgroundColor","markerForegroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Value","HasDataLabel","MarkerStyle","MarkerSize","MarkerBackgroundColor","MarkerForegroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format","dataLabel"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataLabel",{get:function(){return k("ChartPoint.dataLabel",C,"1.7",O),this._D||(this._D=S(e.ChartDataLabel,this,"DataLabel",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartPointFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasDataLabel",{get:function(){return D("hasDataLabel",this._H,It,this._isNull),k("ChartPoint.hasDataLabel",C,"1.7",O),this._H},set:function(e){this._H=e,w(this,"HasDataLabel",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerBackgroundColor",{get:function(){return D("markerBackgroundColor",this._M,It,this._isNull),k("ChartPoint.markerBackgroundColor",C,"1.7",O),this._M},set:function(e){this._M=e,w(this,"MarkerBackgroundColor",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerForegroundColor",{get:function(){return D("markerForegroundColor",this._Ma,It,this._isNull),k("ChartPoint.markerForegroundColor",C,"1.7",O),this._Ma},set:function(e){this._Ma=e,w(this,"MarkerForegroundColor",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerSize",{get:function(){return D("markerSize",this._Mar,It,this._isNull),k("ChartPoint.markerSize",C,"1.7",O),this._Mar},set:function(e){this._Mar=e,w(this,"MarkerSize",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerStyle",{get:function(){return D("markerStyle",this._Mark,It,this._isNull),k("ChartPoint.markerStyle",C,"1.7",O),this._Mark},set:function(e){this._Mark=e,w(this,"MarkerStyle",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return D("value",this._V,It,this._isNull),this._V},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["hasDataLabel","markerStyle","markerSize","markerBackgroundColor","markerForegroundColor"],["format","dataLabel"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.HasDataLabel)||(this._H=n.HasDataLabel),N(n.MarkerBackgroundColor)||(this._M=n.MarkerBackgroundColor),N(n.MarkerForegroundColor)||(this._Ma=n.MarkerForegroundColor),N(n.MarkerSize)||(this._Mar=n.MarkerSize),N(n.MarkerStyle)||(this._Mark=n.MarkerStyle),N(n.Value)||(this._V=n.Value),L(this,n,["dataLabel","DataLabel","format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{hasDataLabel:this._H,markerBackgroundColor:this._M,markerForegroundColor:this._Ma,markerSize:this._Mar,markerStyle:this._Mark,value:this._V},{dataLabel:this._D,format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartPoint=wt;var Ft=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartPointFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fill","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return k("ChartPointFormat.border",C,"1.7",O),this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["border"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["border","Border","fill","Fill"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{border:this._B})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartPointFormat=Ft;var Nt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartAxes"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["categoryAxis","seriesAxis","valueAxis"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"categoryAxis",{get:function(){return this._C||(this._C=S(e.ChartAxis,this,"CategoryAxis",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"seriesAxis",{get:function(){return this._S||(this._S=S(e.ChartAxis,this,"SeriesAxis",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueAxis",{get:function(){return this._V||(this._V=S(e.ChartAxis,this,"ValueAxis",!1,4)),this._V},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["categoryAxis","seriesAxis","valueAxis"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.getItem=function(t,n){return k("ChartAxes.getItem",C,"1.7",O),P(e.ChartAxis,this,"GetItem",1,[t,n],!1,!1,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["categoryAxis","CategoryAxis","seriesAxis","SeriesAxis","valueAxis","ValueAxis"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{categoryAxis:this._C,seriesAxis:this._S,valueAxis:this._V})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartAxes=Nt;var Dt="ChartAxis",kt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartAxis"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["majorUnit","maximum","minimum","minorUnit","displayUnit","showDisplayUnitLabel","customDisplayUnit","type","minorTimeUnitScale","majorTimeUnitScale","baseTimeUnit","categoryType","axisGroup","scaleType","logBase","left","top","height","width","reversePlotOrder","crosses","crossesAt","visible","isBetweenCategories","majorTickMark","minorTickMark","tickMarkSpacing","tickLabelPosition","tickLabelSpacing","alignment","multiLevel","numberFormat","linkNumberFormat","offset","textOrientation","position","positionAt"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["MajorUnit","Maximum","Minimum","MinorUnit","DisplayUnit","ShowDisplayUnitLabel","CustomDisplayUnit","Type","MinorTimeUnitScale","MajorTimeUnitScale","BaseTimeUnit","CategoryType","AxisGroup","ScaleType","LogBase","Left","Top","Height","Width","ReversePlotOrder","Crosses","CrossesAt","Visible","IsBetweenCategories","MajorTickMark","MinorTickMark","TickMarkSpacing","TickLabelPosition","TickLabelSpacing","Alignment","MultiLevel","NumberFormat","LinkNumberFormat","Offset","TextOrientation","Position","PositionAt"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["majorGridlines","minorGridlines","title","format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartAxisFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"majorGridlines",{get:function(){return this._M||(this._M=S(e.ChartGridlines,this,"MajorGridlines",!1,4)),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"minorGridlines",{get:function(){return this._Min||(this._Min=S(e.ChartGridlines,this,"MinorGridlines",!1,4)),this._Min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._Tit||(this._Tit=S(e.ChartAxisTitle,this,"Title",!1,4)),this._Tit},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignment",{get:function(){return D("alignment",this._A,Dt,this._isNull),k("ChartAxis.alignment",C,"1.8",O),this._A},set:function(e){this._A=e,w(this,"Alignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"axisGroup",{get:function(){return D("axisGroup",this._Ax,Dt,this._isNull),k("ChartAxis.axisGroup",C,"1.7",O),this._Ax},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"baseTimeUnit",{get:function(){return D("baseTimeUnit",this._B,Dt,this._isNull),k("ChartAxis.baseTimeUnit",C,"1.7",O),this._B},set:function(e){this._B=e,w(this,"BaseTimeUnit",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"categoryType",{get:function(){return D("categoryType",this._C,Dt,this._isNull),k("ChartAxis.categoryType",C,"1.7",O),this._C},set:function(e){this._C=e,w(this,"CategoryType",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"crosses",{get:function(){return D("crosses",this._Cr,Dt,this._isNull),k("ChartAxis.crosses",C,"1.7",O),this._Cr},set:function(e){this._Cr=e,w(this,"Crosses",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"crossesAt",{get:function(){return D("crossesAt",this._Cro,Dt,this._isNull),k("ChartAxis.crossesAt",C,"1.7",O),this._Cro},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"customDisplayUnit",{get:function(){return D("customDisplayUnit",this._Cu,Dt,this._isNull),k("ChartAxis.customDisplayUnit",C,"1.7",O),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayUnit",{get:function(){return D("displayUnit",this._D,Dt,this._isNull),k("ChartAxis.displayUnit",C,"1.7",O),this._D},set:function(e){this._D=e,w(this,"DisplayUnit",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,Dt,this._isNull),k("ChartAxis.height",C,"1.7",O),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isBetweenCategories",{get:function(){return D("isBetweenCategories",this._I,Dt,this._isNull),k("ChartAxis.isBetweenCategories",C,"1.8",O),this._I},set:function(e){this._I=e,w(this,"IsBetweenCategories",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,Dt,this._isNull),k("ChartAxis.left",C,"1.7",O),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkNumberFormat",{get:function(){return D("linkNumberFormat",this._Li,Dt,this._isNull),k("ChartAxis.linkNumberFormat",C,"1.9",O),this._Li},set:function(e){this._Li=e,w(this,"LinkNumberFormat",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"logBase",{get:function(){return D("logBase",this._Lo,Dt,this._isNull),k("ChartAxis.logBase",C,"1.7",O),this._Lo},set:function(e){this._Lo=e,w(this,"LogBase",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"majorTickMark",{get:function(){return D("majorTickMark",this._Ma,Dt,this._isNull),k("ChartAxis.majorTickMark",C,"1.7",O),this._Ma},set:function(e){this._Ma=e,w(this,"MajorTickMark",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"majorTimeUnitScale",{get:function(){return D("majorTimeUnitScale",this._Maj,Dt,this._isNull),k("ChartAxis.majorTimeUnitScale",C,"1.7",O),this._Maj},set:function(e){this._Maj=e,w(this,"MajorTimeUnitScale",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"majorUnit",{get:function(){return D("majorUnit",this._Majo,Dt,this._isNull),this._Majo},set:function(e){this._Majo=e,w(this,"MajorUnit",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maximum",{get:function(){return D("maximum",this._Max,Dt,this._isNull),this._Max},set:function(e){this._Max=e,w(this,"Maximum",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"minimum",{get:function(){return D("minimum",this._Mi,Dt,this._isNull),this._Mi},set:function(e){this._Mi=e,w(this,"Minimum",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"minorTickMark",{get:function(){return D("minorTickMark",this._Mino,Dt,this._isNull),k("ChartAxis.minorTickMark",C,"1.7",O),this._Mino},set:function(e){this._Mino=e,w(this,"MinorTickMark",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"minorTimeUnitScale",{get:function(){return D("minorTimeUnitScale",this._Minor,Dt,this._isNull),k("ChartAxis.minorTimeUnitScale",C,"1.7",O),this._Minor},set:function(e){this._Minor=e,w(this,"MinorTimeUnitScale",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"minorUnit",{get:function(){return D("minorUnit",this._MinorU,Dt,this._isNull),this._MinorU},set:function(e){this._MinorU=e,w(this,"MinorUnit",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"multiLevel",{get:function(){return D("multiLevel",this._Mu,Dt,this._isNull),k("ChartAxis.multiLevel",C,"1.8",O),this._Mu},set:function(e){this._Mu=e,w(this,"MultiLevel",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this._N,Dt,this._isNull),k("ChartAxis.numberFormat",C,"1.8",O),this._N},set:function(e){this._N=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"offset",{get:function(){return D("offset",this._O,Dt,this._isNull),k("ChartAxis.offset",C,"1.8",O),this._O},set:function(e){this._O=e,w(this,"Offset",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,Dt,this._isNull),k("ChartAxis.position",C,"1.8",O),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"positionAt",{get:function(){return D("positionAt",this._Po,Dt,this._isNull),k("ChartAxis.positionAt",C,"1.8",O),this._Po},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"reversePlotOrder",{get:function(){return D("reversePlotOrder",this._R,Dt,this._isNull),k("ChartAxis.reversePlotOrder",C,"1.7",O),this._R},set:function(e){this._R=e,w(this,"ReversePlotOrder",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scaleType",{get:function(){return D("scaleType",this._S,Dt,this._isNull),k("ChartAxis.scaleType",C,"1.7",O),this._S},set:function(e){this._S=e,w(this,"ScaleType",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showDisplayUnitLabel",{get:function(){return D("showDisplayUnitLabel",this._Sh,Dt,this._isNull),k("ChartAxis.showDisplayUnitLabel",C,"1.7",O),this._Sh},set:function(e){this._Sh=e,w(this,"ShowDisplayUnitLabel",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textOrientation",{get:function(){return D("textOrientation",this._T,Dt,this._isNull),k("ChartAxis.textOrientation",C,"1.8",O),this._T},set:function(e){this._T=e,w(this,"TextOrientation",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickLabelPosition",{get:function(){return D("tickLabelPosition",this._Ti,Dt,this._isNull),k("ChartAxis.tickLabelPosition",C,"1.7",O),this._Ti},set:function(e){this._Ti=e,w(this,"TickLabelPosition",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickLabelSpacing",{get:function(){return D("tickLabelSpacing",this._Tic,Dt,this._isNull),k("ChartAxis.tickLabelSpacing",C,"1.7",O),this._Tic},set:function(e){this._Tic=e,w(this,"TickLabelSpacing",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickMarkSpacing",{get:function(){return D("tickMarkSpacing",this._Tick,Dt,this._isNull),k("ChartAxis.tickMarkSpacing",C,"1.7",O),this._Tick},set:function(e){this._Tick=e,w(this,"TickMarkSpacing",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._To,Dt,this._isNull),k("ChartAxis.top",C,"1.7",O),this._To},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return D("type",this._Ty,Dt,this._isNull),k("ChartAxis.type",C,"1.7",O),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._V,Dt,this._isNull),k("ChartAxis.visible",C,"1.7",O),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,Dt,this._isNull),k("ChartAxis.width",C,"1.7",O),this._W},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["majorUnit","maximum","minimum","minorUnit","displayUnit","showDisplayUnitLabel","minorTimeUnitScale","majorTimeUnitScale","baseTimeUnit","categoryType","scaleType","logBase","reversePlotOrder","crosses","visible","isBetweenCategories","majorTickMark","minorTickMark","tickMarkSpacing","tickLabelPosition","tickLabelSpacing","alignment","multiLevel","numberFormat","linkNumberFormat","offset","textOrientation","position"],["majorGridlines","minorGridlines","title","format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.setCategoryNames=function(e){k("ChartAxis.setCategoryNames",C,"1.7",O),T(this,"SetCategoryNames",0,[e],G(2,"ExcelApiUndo","1.36"),0)},n.prototype.setCrossesAt=function(e){k("ChartAxis.setCrossesAt",C,"1.7",O),T(this,"SetCrossesAt",0,[e],G(2,"ExcelApiUndo","1.22"),0)},n.prototype.setCustomDisplayUnit=function(e){k("ChartAxis.setCustomDisplayUnit",C,"1.7",O),T(this,"SetCustomDisplayUnit",0,[e],G(2,"ExcelApiUndo","1.36"),0)},n.prototype.setPositionAt=function(e){k("ChartAxis.setPositionAt",C,"1.8",O),T(this,"SetPositionAt",0,[e],G(2,"ExcelApiUndo","1.22"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Alignment)||(this._A=n.Alignment),N(n.AxisGroup)||(this._Ax=n.AxisGroup),N(n.BaseTimeUnit)||(this._B=n.BaseTimeUnit),N(n.CategoryType)||(this._C=n.CategoryType),N(n.Crosses)||(this._Cr=n.Crosses),N(n.CrossesAt)||(this._Cro=n.CrossesAt),N(n.CustomDisplayUnit)||(this._Cu=n.CustomDisplayUnit),N(n.DisplayUnit)||(this._D=n.DisplayUnit),N(n.Height)||(this._H=n.Height),N(n.IsBetweenCategories)||(this._I=n.IsBetweenCategories),N(n.Left)||(this._L=n.Left),N(n.LinkNumberFormat)||(this._Li=n.LinkNumberFormat),N(n.LogBase)||(this._Lo=n.LogBase),N(n.MajorTickMark)||(this._Ma=n.MajorTickMark),N(n.MajorTimeUnitScale)||(this._Maj=n.MajorTimeUnitScale),N(n.MajorUnit)||(this._Majo=n.MajorUnit),N(n.Maximum)||(this._Max=n.Maximum),N(n.Minimum)||(this._Mi=n.Minimum),N(n.MinorTickMark)||(this._Mino=n.MinorTickMark),N(n.MinorTimeUnitScale)||(this._Minor=n.MinorTimeUnitScale),N(n.MinorUnit)||(this._MinorU=n.MinorUnit),N(n.MultiLevel)||(this._Mu=n.MultiLevel),N(n.NumberFormat)||(this._N=n.NumberFormat),N(n.Offset)||(this._O=n.Offset),N(n.Position)||(this._P=n.Position),N(n.PositionAt)||(this._Po=n.PositionAt),N(n.ReversePlotOrder)||(this._R=n.ReversePlotOrder),N(n.ScaleType)||(this._S=n.ScaleType),N(n.ShowDisplayUnitLabel)||(this._Sh=n.ShowDisplayUnitLabel),N(n.TextOrientation)||(this._T=n.TextOrientation),N(n.TickLabelPosition)||(this._Ti=n.TickLabelPosition),N(n.TickLabelSpacing)||(this._Tic=n.TickLabelSpacing),N(n.TickMarkSpacing)||(this._Tick=n.TickMarkSpacing),N(n.Top)||(this._To=n.Top),N(n.Type)||(this._Ty=n.Type),N(n.Visible)||(this._V=n.Visible),N(n.Width)||(this._W=n.Width),L(this,n,["format","Format","majorGridlines","MajorGridlines","minorGridlines","MinorGridlines","title","Title"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{alignment:this._A,axisGroup:this._Ax,baseTimeUnit:this._B,categoryType:this._C,crosses:this._Cr,crossesAt:this._Cro,customDisplayUnit:this._Cu,displayUnit:this._D,height:this._H,isBetweenCategories:this._I,left:this._L,linkNumberFormat:this._Li,logBase:this._Lo,majorTickMark:this._Ma,majorTimeUnitScale:this._Maj,majorUnit:this._Majo,maximum:this._Max,minimum:this._Mi,minorTickMark:this._Mino,minorTimeUnitScale:this._Minor,minorUnit:this._MinorU,multiLevel:this._Mu,numberFormat:this._N,offset:this._O,position:this._P,positionAt:this._Po,reversePlotOrder:this._R,scaleType:this._S,showDisplayUnitLabel:this._Sh,textOrientation:this._T,tickLabelPosition:this._Ti,tickLabelSpacing:this._Tic,tickMarkSpacing:this._Tick,top:this._To,type:this._Ty,visible:this._V,width:this._W},{format:this._F,majorGridlines:this._M,minorGridlines:this._Min,title:this._Tit})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartAxis=kt;var jt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartAxisFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["font","line","fill"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return k("ChartAxisFormat.fill",C,"1.8",O),this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ChartFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"line",{get:function(){return this._L||(this._L=S(e.ChartLineFormat,this,"Line",!1,4)),this._L},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["font","line"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["fill","Fill","font","Font","line","Line"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{font:this._Fo,line:this._L})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartAxisFormat=jt;var Ut="ChartAxisTitle",Mt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartAxisTitle"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["text","visible","textOrientation"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Text","Visible","TextOrientation"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartAxisTitleFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return D("text",this._T,Ut,this._isNull),this._T},set:function(e){this._T=e,w(this,"Text",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textOrientation",{get:function(){return D("textOrientation",this._Te,Ut,this._isNull),k("ChartAxisTitle.textOrientation",C,"1.12",O),this._Te},set:function(e){this._Te=e,w(this,"TextOrientation",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._V,Ut,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["text","visible","textOrientation"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.setFormula=function(e){k("ChartAxisTitle.setFormula",C,"1.8",O),T(this,"SetFormula",0,[e],G(2,"ExcelApiUndo","1.22"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Text)||(this._T=n.Text),N(n.TextOrientation)||(this._Te=n.TextOrientation),N(n.Visible)||(this._V=n.Visible),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{text:this._T,textOrientation:this._Te,visible:this._V},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartAxisTitle=Mt;var Ht=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartAxisTitleFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["font","fill","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return k("ChartAxisTitleFormat.border",C,"1.8",O),this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return k("ChartAxisTitleFormat.fill",C,"1.8",O),this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ChartFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["font","border"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["border","Border","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{border:this._B,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartAxisTitleFormat=Ht;var Lt="ChartDataLabels",Bt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartDataLabels"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator","numberFormat","linkNumberFormat","textOrientation","autoText","horizontalAlignment","verticalAlignment","showAsStickyCallout","geometricShapeType","showLeaderLines"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Position","ShowValue","ShowSeriesName","ShowCategoryName","ShowLegendKey","ShowPercentage","ShowBubbleSize","Separator","NumberFormat","LinkNumberFormat","TextOrientation","AutoText","HorizontalAlignment","VerticalAlignment","ShowAsStickyCallout","GeometricShapeType","ShowLeaderLines"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format","leaderLines"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartDataLabelFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"leaderLines",{get:function(){return k("ChartDataLabels.leaderLines",C,"1.19",O),this._L||(this._L=S(e.ChartLeaderLines,this,"LeaderLines",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoText",{get:function(){return D("autoText",this._A,Lt,this._isNull),k("ChartDataLabels.autoText",C,"1.8",O),this._A},set:function(e){this._A=e,w(this,"AutoText",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"geometricShapeType",{get:function(){return D("geometricShapeType",this._G,Lt,this._isNull),k("ChartDataLabels.geometricShapeType",C,"1.19",O),this._G},set:function(e){this._G=e,w(this,"GeometricShapeType",e,G(2,"ExcelApiUndo","99.99"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalAlignment",{get:function(){return D("horizontalAlignment",this._H,Lt,this._isNull),k("ChartDataLabels.horizontalAlignment",C,"1.8",O),this._H},set:function(e){this._H=e,w(this,"HorizontalAlignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkNumberFormat",{get:function(){return D("linkNumberFormat",this._Li,Lt,this._isNull),k("ChartDataLabels.linkNumberFormat",C,"1.9",O),this._Li},set:function(e){this._Li=e,w(this,"LinkNumberFormat",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this._N,Lt,this._isNull),k("ChartDataLabels.numberFormat",C,"1.8",O),this._N},set:function(e){this._N=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,Lt,this._isNull),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"separator",{get:function(){return D("separator",this._S,Lt,this._isNull),this._S},set:function(e){this._S=e,w(this,"Separator",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showAsStickyCallout",{get:function(){return D("showAsStickyCallout",this._Sh,Lt,this._isNull),k("ChartDataLabels.showAsStickyCallout",C,"1.19",O),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showBubbleSize",{get:function(){return D("showBubbleSize",this._Sho,Lt,this._isNull),this._Sho},set:function(e){this._Sho=e,w(this,"ShowBubbleSize",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showCategoryName",{get:function(){return D("showCategoryName",this._Show,Lt,this._isNull),this._Show},set:function(e){this._Show=e,w(this,"ShowCategoryName",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLeaderLines",{get:function(){return D("showLeaderLines",this._ShowL,Lt,this._isNull),k("ChartDataLabels.showLeaderLines",C,"1.19",O),this._ShowL},set:function(e){this._ShowL=e,w(this,"ShowLeaderLines",e,G(2,"ExcelApiUndo","99.99"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLegendKey",{get:function(){return D("showLegendKey",this._ShowLe,Lt,this._isNull),this._ShowLe},set:function(e){this._ShowLe=e,w(this,"ShowLegendKey",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showPercentage",{get:function(){return D("showPercentage",this._ShowP,Lt,this._isNull),this._ShowP},set:function(e){this._ShowP=e,w(this,"ShowPercentage",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showSeriesName",{get:function(){return D("showSeriesName",this._ShowS,Lt,this._isNull),this._ShowS},set:function(e){this._ShowS=e,w(this,"ShowSeriesName",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showValue",{get:function(){return D("showValue",this._ShowV,Lt,this._isNull),this._ShowV},set:function(e){this._ShowV=e,w(this,"ShowValue",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textOrientation",{get:function(){return D("textOrientation",this._T,Lt,this._isNull),k("ChartDataLabels.textOrientation",C,"1.8",O),this._T},set:function(e){this._T=e,w(this,"TextOrientation",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return D("verticalAlignment",this._V,Lt,this._isNull),k("ChartDataLabels.verticalAlignment",C,"1.8",O),this._V},set:function(e){this._V=e,w(this,"VerticalAlignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator","numberFormat","linkNumberFormat","textOrientation","autoText","horizontalAlignment","verticalAlignment","geometricShapeType","showLeaderLines"],["format","leaderLines"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AutoText)||(this._A=n.AutoText),N(n.GeometricShapeType)||(this._G=n.GeometricShapeType),N(n.HorizontalAlignment)||(this._H=n.HorizontalAlignment),N(n.LinkNumberFormat)||(this._Li=n.LinkNumberFormat),N(n.NumberFormat)||(this._N=n.NumberFormat),N(n.Position)||(this._P=n.Position),N(n.Separator)||(this._S=n.Separator),N(n.ShowAsStickyCallout)||(this._Sh=n.ShowAsStickyCallout),N(n.ShowBubbleSize)||(this._Sho=n.ShowBubbleSize),N(n.ShowCategoryName)||(this._Show=n.ShowCategoryName),N(n.ShowLeaderLines)||(this._ShowL=n.ShowLeaderLines),N(n.ShowLegendKey)||(this._ShowLe=n.ShowLegendKey),N(n.ShowPercentage)||(this._ShowP=n.ShowPercentage),N(n.ShowSeriesName)||(this._ShowS=n.ShowSeriesName),N(n.ShowValue)||(this._ShowV=n.ShowValue),N(n.TextOrientation)||(this._T=n.TextOrientation),N(n.VerticalAlignment)||(this._V=n.VerticalAlignment),L(this,n,["format","Format","leaderLines","LeaderLines"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{autoText:this._A,geometricShapeType:this._G,horizontalAlignment:this._H,linkNumberFormat:this._Li,numberFormat:this._N,position:this._P,separator:this._S,showAsStickyCallout:this._Sh,showBubbleSize:this._Sho,showCategoryName:this._Show,showLeaderLines:this._ShowL,showLegendKey:this._ShowLe,showPercentage:this._ShowP,showSeriesName:this._ShowS,showValue:this._ShowV,textOrientation:this._T,verticalAlignment:this._V},{format:this._F,leaderLines:this._L})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartDataLabels=Bt;var Wt="ChartDataLabel",Vt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartDataLabel"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator","top","left","width","height","formula","textOrientation","horizontalAlignment","verticalAlignment","text","autoText","numberFormat","linkNumberFormat","geometricShapeType","showAsStickyCallout"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Position","ShowValue","ShowSeriesName","ShowCategoryName","ShowLegendKey","ShowPercentage","ShowBubbleSize","Separator","Top","Left","Width","Height","Formula","TextOrientation","HorizontalAlignment","VerticalAlignment","Text","AutoText","NumberFormat","LinkNumberFormat","GeometricShapeType","ShowAsStickyCallout"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return k("ChartDataLabel.format",C,"1.8",O),this._F||(this._F=S(e.ChartDataLabelFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoText",{get:function(){return D("autoText",this._A,Wt,this._isNull),k("ChartDataLabel.autoText",C,"1.8",O),this._A},set:function(e){this._A=e,w(this,"AutoText",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formula",{get:function(){return D("formula",this._Fo,Wt,this._isNull),k("ChartDataLabel.formula",C,"1.8",O),this._Fo},set:function(e){this._Fo=e,w(this,"Formula",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"geometricShapeType",{get:function(){return D("geometricShapeType",this._G,Wt,this._isNull),k("ChartDataLabel.geometricShapeType",C,"1.19",O),this._G},set:function(e){this._G=e,w(this,"GeometricShapeType",e,G(2,"ExcelApiUndo","99.99"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,Wt,this._isNull),k("ChartDataLabel.height",C,"1.8",O),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalAlignment",{get:function(){return D("horizontalAlignment",this._Ho,Wt,this._isNull),k("ChartDataLabel.horizontalAlignment",C,"1.8",O),this._Ho},set:function(e){this._Ho=e,w(this,"HorizontalAlignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,Wt,this._isNull),k("ChartDataLabel.left",C,"1.8",O),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkNumberFormat",{get:function(){return D("linkNumberFormat",this._Li,Wt,this._isNull),k("ChartDataLabel.linkNumberFormat",C,"1.9",O),this._Li},set:function(e){this._Li=e,w(this,"LinkNumberFormat",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this._N,Wt,this._isNull),k("ChartDataLabel.numberFormat",C,"1.8",O),this._N},set:function(e){this._N=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,Wt,this._isNull),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"separator",{get:function(){return D("separator",this._S,Wt,this._isNull),this._S},set:function(e){this._S=e,w(this,"Separator",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showAsStickyCallout",{get:function(){return D("showAsStickyCallout",this._Sh,Wt,this._isNull),k("ChartDataLabel.showAsStickyCallout",C,"1.19",O),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showBubbleSize",{get:function(){return D("showBubbleSize",this._Sho,Wt,this._isNull),this._Sho},set:function(e){this._Sho=e,w(this,"ShowBubbleSize",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showCategoryName",{get:function(){return D("showCategoryName",this._Show,Wt,this._isNull),this._Show},set:function(e){this._Show=e,w(this,"ShowCategoryName",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLegendKey",{get:function(){return D("showLegendKey",this._ShowL,Wt,this._isNull),this._ShowL},set:function(e){this._ShowL=e,w(this,"ShowLegendKey",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showPercentage",{get:function(){return D("showPercentage",this._ShowP,Wt,this._isNull),this._ShowP},set:function(e){this._ShowP=e,w(this,"ShowPercentage",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showSeriesName",{get:function(){return D("showSeriesName",this._ShowS,Wt,this._isNull),this._ShowS},set:function(e){this._ShowS=e,w(this,"ShowSeriesName",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showValue",{get:function(){return D("showValue",this._ShowV,Wt,this._isNull),this._ShowV},set:function(e){this._ShowV=e,w(this,"ShowValue",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return D("text",this._T,Wt,this._isNull),k("ChartDataLabel.text",C,"1.8",O),this._T},set:function(e){this._T=e,w(this,"Text",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textOrientation",{get:function(){return D("textOrientation",this._Te,Wt,this._isNull),k("ChartDataLabel.textOrientation",C,"1.8",O),this._Te},set:function(e){this._Te=e,w(this,"TextOrientation",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._To,Wt,this._isNull),k("ChartDataLabel.top",C,"1.8",O),this._To},set:function(e){this._To=e,w(this,"Top",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return D("verticalAlignment",this._V,Wt,this._isNull),k("ChartDataLabel.verticalAlignment",C,"1.8",O),this._V},set:function(e){this._V=e,w(this,"VerticalAlignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,Wt,this._isNull),k("ChartDataLabel.width",C,"1.8",O),this._W},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator","top","left","formula","textOrientation","horizontalAlignment","verticalAlignment","text","autoText","numberFormat","linkNumberFormat","geometricShapeType"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.getSubstring=function(t,n){return k("ChartDataLabel.getSubstring",C,"1.19",O),P(e.ChartFormatString,this,"GetSubstring",1,[t,n],!1,!1,null,4)},n.prototype.getTailAnchor=function(){return k("ChartDataLabel.getTailAnchor",C,"1.19",O),P(e.ChartDataLabelAnchor,this,"GetTailAnchor",1,[],!1,!1,null,4)},n.prototype.setHeight=function(e){k("ChartDataLabel.setHeight",C,"1.19",O),T(this,"SetHeight",0,[e],G(2,"ExcelApiUndo","99.99"),0)},n.prototype.setWidth=function(e){k("ChartDataLabel.setWidth",C,"1.19",O),T(this,"SetWidth",0,[e],G(2,"ExcelApiUndo","99.99"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AutoText)||(this._A=n.AutoText),N(n.Formula)||(this._Fo=n.Formula),N(n.GeometricShapeType)||(this._G=n.GeometricShapeType),N(n.Height)||(this._H=n.Height),N(n.HorizontalAlignment)||(this._Ho=n.HorizontalAlignment),N(n.Left)||(this._L=n.Left),N(n.LinkNumberFormat)||(this._Li=n.LinkNumberFormat),N(n.NumberFormat)||(this._N=n.NumberFormat),N(n.Position)||(this._P=n.Position),N(n.Separator)||(this._S=n.Separator),N(n.ShowAsStickyCallout)||(this._Sh=n.ShowAsStickyCallout),N(n.ShowBubbleSize)||(this._Sho=n.ShowBubbleSize),N(n.ShowCategoryName)||(this._Show=n.ShowCategoryName),N(n.ShowLegendKey)||(this._ShowL=n.ShowLegendKey),N(n.ShowPercentage)||(this._ShowP=n.ShowPercentage),N(n.ShowSeriesName)||(this._ShowS=n.ShowSeriesName),N(n.ShowValue)||(this._ShowV=n.ShowValue),N(n.Text)||(this._T=n.Text),N(n.TextOrientation)||(this._Te=n.TextOrientation),N(n.Top)||(this._To=n.Top),N(n.VerticalAlignment)||(this._V=n.VerticalAlignment),N(n.Width)||(this._W=n.Width),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{autoText:this._A,formula:this._Fo,geometricShapeType:this._G,height:this._H,horizontalAlignment:this._Ho,left:this._L,linkNumberFormat:this._Li,numberFormat:this._N,position:this._P,separator:this._S,showAsStickyCallout:this._Sh,showBubbleSize:this._Sho,showCategoryName:this._Show,showLegendKey:this._ShowL,showPercentage:this._ShowP,showSeriesName:this._ShowS,showValue:this._ShowV,text:this._T,textOrientation:this._Te,top:this._To,verticalAlignment:this._V,width:this._W},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartDataLabel=Vt;var Gt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartDataLabelFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["font","fill","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return k("ChartDataLabelFormat.border",C,"1.8",O),this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ChartFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["font","border"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["border","Border","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{border:this._B,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartDataLabelFormat=Gt;var qt="ChartDataLabelAnchor",Jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartDataLabelAnchor"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["left","top"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Left","Top"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return D("left",this._L,qt,this._isNull),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","99.99"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return D("top",this._T,qt,this._isNull),this._T},set:function(e){this._T=e,w(this,"Top",e,G(2,"ExcelApiUndo","99.99"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["left","top"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Left)||(this._L=n.Left),N(n.Top)||(this._T=n.Top)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{left:this._L,top:this._T},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartDataLabelAnchor=Jt;var zt="ChartDataTable",Kt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartDataTable"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["visible","showLegendKey","showHorizontalBorder","showVerticalBorder","showOutlineBorder"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Visible","ShowLegendKey","ShowHorizontalBorder","ShowVerticalBorder","ShowOutlineBorder"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartDataTableFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showHorizontalBorder",{get:function(){return D("showHorizontalBorder",this._S,zt,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShowHorizontalBorder",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLegendKey",{get:function(){return D("showLegendKey",this._Sh,zt,this._isNull),this._Sh},set:function(e){this._Sh=e,w(this,"ShowLegendKey",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showOutlineBorder",{get:function(){return D("showOutlineBorder",this._Sho,zt,this._isNull),this._Sho},set:function(e){this._Sho=e,w(this,"ShowOutlineBorder",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showVerticalBorder",{get:function(){return D("showVerticalBorder",this._Show,zt,this._isNull),this._Show},set:function(e){this._Show=e,w(this,"ShowVerticalBorder",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._V,zt,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["visible","showLegendKey","showHorizontalBorder","showVerticalBorder","showOutlineBorder"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.ShowHorizontalBorder)||(this._S=n.ShowHorizontalBorder),N(n.ShowLegendKey)||(this._Sh=n.ShowLegendKey),N(n.ShowOutlineBorder)||(this._Sho=n.ShowOutlineBorder),N(n.ShowVerticalBorder)||(this._Show=n.ShowVerticalBorder),N(n.Visible)||(this._V=n.Visible),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{showHorizontalBorder:this._S,showLegendKey:this._Sh,showOutlineBorder:this._Sho,showVerticalBorder:this._Show,visible:this._V},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartDataTable=Kt;var Qt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartDataTableFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fill","font","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ChartFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["font","border"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["border","Border","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{border:this._B,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartDataTableFormat=Qt;var Xt="ChartErrorBars",Yt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartErrorBars"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["endStyleCap","include","type","visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["EndStyleCap","Include","Type","Visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartErrorBarsFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"endStyleCap",{get:function(){return D("endStyleCap",this._E,Xt,this._isNull),this._E},set:function(e){this._E=e,w(this,"EndStyleCap",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"include",{get:function(){return D("include",this._I,Xt,this._isNull),this._I},set:function(e){this._I=e,w(this,"Include",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return D("type",this._T,Xt,this._isNull),this._T},set:function(e){this._T=e,w(this,"Type",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._V,Xt,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["endStyleCap","include","type","visible"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.EndStyleCap)||(this._E=n.EndStyleCap),N(n.Include)||(this._I=n.Include),N(n.Type)||(this._T=n.Type),N(n.Visible)||(this._V=n.Visible),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{endStyleCap:this._E,include:this._I,type:this._T,visible:this._V},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartErrorBars=Yt;var Zt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartErrorBarsFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["line"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"line",{get:function(){return this._L||(this._L=S(e.ChartLineFormat,this,"Line",!1,4)),this._L},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["line"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["line","Line"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{line:this._L})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartErrorBarsFormat=Zt;var $t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartGridlines"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartGridlinesFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._V,"ChartGridlines",this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["visible"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Visible)||(this._V=n.Visible),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{visible:this._V},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartGridlines=$t;var en=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartGridlinesFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["line"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"line",{get:function(){return this._L||(this._L=S(e.ChartLineFormat,this,"Line",!1,4)),this._L},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["line"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["line","Line"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{line:this._L})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartGridlinesFormat=en;var tn="ChartLegend",nn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartLegend"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["visible","position","overlay","left","top","width","height","showShadow"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Visible","Position","Overlay","Left","Top","Width","Height","ShowShadow"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format","legendEntries"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartLegendFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"legendEntries",{get:function(){return k("ChartLegend.legendEntries",C,"1.7",O),this._Le||(this._Le=S(e.ChartLegendEntryCollection,this,"LegendEntries",!0,4)),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,tn,this._isNull),k("ChartLegend.height",C,"1.7",O),this._H},set:function(e){this._H=e,w(this,"Height",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,tn,this._isNull),k("ChartLegend.left",C,"1.7",O),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"overlay",{get:function(){return D("overlay",this._O,tn,this._isNull),this._O},set:function(e){this._O=e,w(this,"Overlay",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,tn,this._isNull),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showShadow",{get:function(){return D("showShadow",this._S,tn,this._isNull),k("ChartLegend.showShadow",C,"1.7",O),this._S},set:function(e){this._S=e,w(this,"ShowShadow",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._T,tn,this._isNull),k("ChartLegend.top",C,"1.7",O),this._T},set:function(e){this._T=e,w(this,"Top",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._V,tn,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,tn,this._isNull),k("ChartLegend.width",C,"1.7",O),this._W},set:function(e){this._W=e,w(this,"Width",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["visible","position","overlay","left","top","width","height","showShadow"],["format"],["legendEntries"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Height)||(this._H=n.Height),N(n.Left)||(this._L=n.Left),N(n.Overlay)||(this._O=n.Overlay),N(n.Position)||(this._P=n.Position),N(n.ShowShadow)||(this._S=n.ShowShadow),N(n.Top)||(this._T=n.Top),N(n.Visible)||(this._V=n.Visible),N(n.Width)||(this._W=n.Width),L(this,n,["format","Format","legendEntries","LegendEntries"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{height:this._H,left:this._L,overlay:this._O,position:this._P,showShadow:this._S,top:this._T,visible:this._V,width:this._W},{format:this._F,legendEntries:this._Le})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartLegend=nn;var rn="ChartLegendEntry",on=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartLegendEntry"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["visible","left","top","width","height","index"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Visible","Left","Top","Width","Height","Index"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!1,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return D("height",this._H,rn,this._isNull),k("ChartLegendEntry.height",C,"1.8",O),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return D("index",this._I,rn,this._isNull),k("ChartLegendEntry.index",C,"1.8",O),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return D("left",this._L,rn,this._isNull),k("ChartLegendEntry.left",C,"1.8",O),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return D("top",this._T,rn,this._isNull),k("ChartLegendEntry.top",C,"1.8",O),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return D("visible",this._V,rn,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return D("width",this._W,rn,this._isNull),k("ChartLegendEntry.width",C,"1.8",O),this._W},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["visible"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Height)||(this._H=n.Height),N(n.Index)||(this._I=n.Index),N(n.Left)||(this._L=n.Left),N(n.Top)||(this._T=n.Top),N(n.Visible)||(this._V=n.Visible),N(n.Width)||(this._W=n.Width)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{height:this._H,index:this._I,left:this._L,top:this._T,visible:this._V,width:this._W},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartLegendEntry=on;var an=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartLegendEntryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"ChartLegendEntryCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItemAt=function(t){return P(e.ChartLegendEntry,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.ChartLegendEntry,!1,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.ChartLegendEntry,!1,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.ChartLegendEntry,!1,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.ChartLegendEntryCollection=an;var sn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartLegendFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["font","fill","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return k("ChartLegendFormat.border",C,"1.8",O),this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ChartFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["font","border"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["border","Border","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{border:this._B,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartLegendFormat=sn;var ln="ChartMapOptions",un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartMapOptions"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["level","labelStrategy","projectionType"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Level","LabelStrategy","ProjectionType"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelStrategy",{get:function(){return D("labelStrategy",this._L,ln,this._isNull),this._L},set:function(e){this._L=e,w(this,"LabelStrategy",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"level",{get:function(){return D("level",this._Le,ln,this._isNull),this._Le},set:function(e){this._Le=e,w(this,"Level",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"projectionType",{get:function(){return D("projectionType",this._P,ln,this._isNull),this._P},set:function(e){this._P=e,w(this,"ProjectionType",e,G(2,"ExcelApiUndo","1.45"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["level","labelStrategy","projectionType"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.LabelStrategy)||(this._L=n.LabelStrategy),N(n.Level)||(this._Le=n.Level),N(n.ProjectionType)||(this._P=n.ProjectionType)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{labelStrategy:this._L,level:this._Le,projectionType:this._P},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartMapOptions=un;var cn="ChartTitle",pn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartTitle"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["visible","text","overlay","horizontalAlignment","top","left","width","height","verticalAlignment","textOrientation","position","showShadow"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Visible","Text","Overlay","HorizontalAlignment","Top","Left","Width","Height","VerticalAlignment","TextOrientation","Position","ShowShadow"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartTitleFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,cn,this._isNull),k("ChartTitle.height",C,"1.7",O),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalAlignment",{get:function(){return D("horizontalAlignment",this._Ho,cn,this._isNull),k("ChartTitle.horizontalAlignment",C,"1.7",O),this._Ho},set:function(e){this._Ho=e,w(this,"HorizontalAlignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,cn,this._isNull),k("ChartTitle.left",C,"1.7",O),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"overlay",{get:function(){return D("overlay",this._O,cn,this._isNull),this._O},set:function(e){this._O=e,w(this,"Overlay",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,cn,this._isNull),k("ChartTitle.position",C,"1.7",O),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showShadow",{get:function(){return D("showShadow",this._S,cn,this._isNull),k("ChartTitle.showShadow",C,"1.7",O),this._S},set:function(e){this._S=e,w(this,"ShowShadow",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return D("text",this._T,cn,this._isNull),this._T},set:function(e){this._T=e,w(this,"Text",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textOrientation",{get:function(){return D("textOrientation",this._Te,cn,this._isNull),k("ChartTitle.textOrientation",C,"1.7",O),this._Te},set:function(e){this._Te=e,w(this,"TextOrientation",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._To,cn,this._isNull),k("ChartTitle.top",C,"1.7",O),this._To},set:function(e){this._To=e,w(this,"Top",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return D("verticalAlignment",this._V,cn,this._isNull),k("ChartTitle.verticalAlignment",C,"1.7",O),this._V},set:function(e){this._V=e,w(this,"VerticalAlignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._Vi,cn,this._isNull),this._Vi},set:function(e){this._Vi=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,cn,this._isNull),k("ChartTitle.width",C,"1.7",O),this._W},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["visible","text","overlay","horizontalAlignment","top","left","verticalAlignment","textOrientation","position","showShadow"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.getSubstring=function(t,n){return k("ChartTitle.getSubstring",C,"1.7",O),P(e.ChartFormatString,this,"GetSubstring",1,[t,n],!1,!1,null,4)},n.prototype.setFormula=function(e){k("ChartTitle.setFormula",C,"1.7",O),T(this,"SetFormula",0,[e],G(2,"ExcelApiUndo","1.22"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Height)||(this._H=n.Height),N(n.HorizontalAlignment)||(this._Ho=n.HorizontalAlignment),N(n.Left)||(this._L=n.Left),N(n.Overlay)||(this._O=n.Overlay),N(n.Position)||(this._P=n.Position),N(n.ShowShadow)||(this._S=n.ShowShadow),N(n.Text)||(this._T=n.Text),N(n.TextOrientation)||(this._Te=n.TextOrientation),N(n.Top)||(this._To=n.Top),N(n.VerticalAlignment)||(this._V=n.VerticalAlignment),N(n.Visible)||(this._Vi=n.Visible),N(n.Width)||(this._W=n.Width),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{height:this._H,horizontalAlignment:this._Ho,left:this._L,overlay:this._O,position:this._P,showShadow:this._S,text:this._T,textOrientation:this._Te,top:this._To,verticalAlignment:this._V,visible:this._Vi,width:this._W},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartTitle=pn;var fn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartFormatString"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["font"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._F||(this._F=S(e.ChartFont,this,"Font",!1,4)),this._F},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["font"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{font:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartFormatString=fn;var hn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartTitleFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["font","fill","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return k("ChartTitleFormat.border",C,"1.7",O),this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ChartFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["font","border"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["border","Border","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{border:this._B,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartTitleFormat=hn;var dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartFill"},enumerable:!0,configurable:!0}),t.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.22"),0)},t.prototype.getSolidColor=function(){return k("ChartFill.getSolidColor",C,"1.16",O),T(this,"GetSolidColor",0,[],G(2,"ExcelApiUndo","1.17"),0)},t.prototype.setSolidColor=function(e){T(this,"SetSolidColor",0,[e],G(2,"ExcelApiUndo","1.17"),0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),F(t))||H(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{},{})},t}(OfficeExtension.ClientObject);e.ChartFill=dn;var yn=function(){function e(){}return e.prototype.load=function(e){return j(this,e),this},e}();e.ChartFillCustom=yn,OfficeExtension.Utility.applyMixin(dn,yn);var mn="ChartBorder",gn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartBorder"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color","lineStyle","weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color","LineStyle","Weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,mn,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineStyle",{get:function(){return D("lineStyle",this._L,mn,this._isNull),this._L},set:function(e){this._L=e,w(this,"LineStyle",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return D("weight",this._W,mn,this._isNull),this._W},set:function(e){this._W=e,w(this,"Weight",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["color","lineStyle","weight"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.clear=function(){k("ChartBorder.clear",C,"1.8",O),T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.22"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Color)||(this._C=n.Color),N(n.LineStyle)||(this._L=n.LineStyle),N(n.Weight)||(this._W=n.Weight)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{color:this._C,lineStyle:this._L,weight:this._W},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartBorder=gn;var _n="ChartBinOptions",bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartBinOptions"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["type","width","count","allowOverflow","allowUnderflow","overflowValue","underflowValue"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Type","Width","Count","AllowOverflow","AllowUnderflow","OverflowValue","UnderflowValue"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowOverflow",{get:function(){return D("allowOverflow",this._A,_n,this._isNull),this._A},set:function(e){this._A=e,w(this,"AllowOverflow",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowUnderflow",{get:function(){return D("allowUnderflow",this._Al,_n,this._isNull),this._Al},set:function(e){this._Al=e,w(this,"AllowUnderflow",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return D("count",this._C,_n,this._isNull),this._C},set:function(e){this._C=e,w(this,"Count",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overflowValue",{get:function(){return D("overflowValue",this._O,_n,this._isNull),this._O},set:function(e){this._O=e,w(this,"OverflowValue",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return D("type",this._T,_n,this._isNull),this._T},set:function(e){this._T=e,w(this,"Type",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underflowValue",{get:function(){return D("underflowValue",this._U,_n,this._isNull),this._U},set:function(e){this._U=e,w(this,"UnderflowValue",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return D("width",this._W,_n,this._isNull),this._W},set:function(e){this._W=e,w(this,"Width",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["type","width","count","allowOverflow","allowUnderflow","overflowValue","underflowValue"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.AllowOverflow)||(this._A=n.AllowOverflow),N(n.AllowUnderflow)||(this._Al=n.AllowUnderflow),N(n.Count)||(this._C=n.Count),N(n.OverflowValue)||(this._O=n.OverflowValue),N(n.Type)||(this._T=n.Type),N(n.UnderflowValue)||(this._U=n.UnderflowValue),N(n.Width)||(this._W=n.Width)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{allowOverflow:this._A,allowUnderflow:this._Al,count:this._C,overflowValue:this._O,type:this._T,underflowValue:this._U,width:this._W},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartBinOptions=bn;var vn="ChartBoxwhiskerOptions",On=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartBoxwhiskerOptions"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["showInnerPoints","showOutlierPoints","showMeanMarker","showMeanLine","quartileCalculation"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ShowInnerPoints","ShowOutlierPoints","ShowMeanMarker","ShowMeanLine","QuartileCalculation"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quartileCalculation",{get:function(){return D("quartileCalculation",this._Q,vn,this._isNull),this._Q},set:function(e){this._Q=e,w(this,"QuartileCalculation",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showInnerPoints",{get:function(){return D("showInnerPoints",this._S,vn,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShowInnerPoints",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showMeanLine",{get:function(){return D("showMeanLine",this._Sh,vn,this._isNull),this._Sh},set:function(e){this._Sh=e,w(this,"ShowMeanLine",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showMeanMarker",{get:function(){return D("showMeanMarker",this._Sho,vn,this._isNull),this._Sho},set:function(e){this._Sho=e,w(this,"ShowMeanMarker",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showOutlierPoints",{get:function(){return D("showOutlierPoints",this._Show,vn,this._isNull),this._Show},set:function(e){this._Show=e,w(this,"ShowOutlierPoints",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["showInnerPoints","showOutlierPoints","showMeanMarker","showMeanLine","quartileCalculation"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.QuartileCalculation)||(this._Q=n.QuartileCalculation),N(n.ShowInnerPoints)||(this._S=n.ShowInnerPoints),N(n.ShowMeanLine)||(this._Sh=n.ShowMeanLine),N(n.ShowMeanMarker)||(this._Sho=n.ShowMeanMarker),N(n.ShowOutlierPoints)||(this._Show=n.ShowOutlierPoints)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{quartileCalculation:this._Q,showInnerPoints:this._S,showMeanLine:this._Sh,showMeanMarker:this._Sho,showOutlierPoints:this._Show},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartBoxwhiskerOptions=On;var Cn="ChartLineFormat",Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartLineFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color","lineStyle","weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color","LineStyle","Weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,Cn,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineStyle",{get:function(){return D("lineStyle",this._L,Cn,this._isNull),k("ChartLineFormat.lineStyle",C,"1.7",O),this._L},set:function(e){this._L=e,w(this,"LineStyle",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return D("weight",this._W,Cn,this._isNull),k("ChartLineFormat.weight",C,"1.7",O),this._W},set:function(e){this._W=e,w(this,"Weight",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["color","lineStyle","weight"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.22"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Color)||(this._C=n.Color),N(n.LineStyle)||(this._L=n.LineStyle),N(n.Weight)||(this._W=n.Weight)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{color:this._C,lineStyle:this._L,weight:this._W},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartLineFormat=Sn;var Pn="ChartFont",An=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartFont"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["bold","color","italic","name","size","underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Bold","Color","Italic","Name","Size","Underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return D("bold",this._B,Pn,this._isNull),this._B},set:function(e){this._B=e,w(this,"Bold",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,Pn,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return D("italic",this._I,Pn,this._isNull),this._I},set:function(e){this._I=e,w(this,"Italic",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return D("name",this._N,Pn,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return D("size",this._S,Pn,this._isNull),this._S},set:function(e){this._S=e,w(this,"Size",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return D("underline",this._U,Pn,this._isNull),this._U},set:function(e){this._U=e,w(this,"Underline",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["bold","color","italic","name","size","underline"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Bold)||(this._B=n.Bold),N(n.Color)||(this._C=n.Color),N(n.Italic)||(this._I=n.Italic),N(n.Name)||(this._N=n.Name),N(n.Size)||(this._S=n.Size),N(n.Underline)||(this._U=n.Underline)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{bold:this._B,color:this._C,italic:this._I,name:this._N,size:this._S,underline:this._U},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ChartFont=An;var En="ChartTrendline",Rn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartTrendline"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["type","polynomialOrder","movingAveragePeriod","_Id","showEquation","showRSquared","forwardPeriod","backwardPeriod","name","intercept"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Type","PolynomialOrder","MovingAveragePeriod","_Id","ShowEquation","ShowRSquared","ForwardPeriod","BackwardPeriod","Name","Intercept"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!1,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format","label"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartTrendlineFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"label",{get:function(){return k("ChartTrendline.label",C,"1.8",O),this._L||(this._L=S(e.ChartTrendlineLabel,this,"Label",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backwardPeriod",{get:function(){return D("backwardPeriod",this._B,En,this._isNull),k("ChartTrendline.backwardPeriod",C,"1.8",O),this._B},set:function(e){this._B=e,w(this,"BackwardPeriod",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"forwardPeriod",{get:function(){return D("forwardPeriod",this._Fo,En,this._isNull),k("ChartTrendline.forwardPeriod",C,"1.8",O),this._Fo},set:function(e){this._Fo=e,w(this,"ForwardPeriod",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"intercept",{get:function(){return D("intercept",this._I,En,this._isNull),this._I},set:function(e){this._I=e,w(this,"Intercept",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"movingAveragePeriod",{get:function(){return D("movingAveragePeriod",this._M,En,this._isNull),this._M},set:function(e){this._M=e,w(this,"MovingAveragePeriod",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,En,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"polynomialOrder",{get:function(){return D("polynomialOrder",this._P,En,this._isNull),this._P},set:function(e){this._P=e,w(this,"PolynomialOrder",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showEquation",{get:function(){return D("showEquation",this._S,En,this._isNull),k("ChartTrendline.showEquation",C,"1.8",O),this._S},set:function(e){this._S=e,w(this,"ShowEquation",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showRSquared",{get:function(){return D("showRSquared",this._Sh,En,this._isNull),k("ChartTrendline.showRSquared",C,"1.8",O),this._Sh},set:function(e){this._Sh=e,w(this,"ShowRSquared",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return D("type",this._T,En,this._isNull),this._T},set:function(e){this._T=e,w(this,"Type",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return D("_Id",this.__I,En,this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["type","polynomialOrder","movingAveragePeriod","showEquation","showRSquared","forwardPeriod","backwardPeriod","name","intercept"],["format","label"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.22"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.BackwardPeriod)||(this._B=n.BackwardPeriod),N(n.ForwardPeriod)||(this._Fo=n.ForwardPeriod),N(n.Intercept)||(this._I=n.Intercept),N(n.MovingAveragePeriod)||(this._M=n.MovingAveragePeriod),N(n.Name)||(this._N=n.Name),N(n.PolynomialOrder)||(this._P=n.PolynomialOrder),N(n.ShowEquation)||(this._S=n.ShowEquation),N(n.ShowRSquared)||(this._Sh=n.ShowRSquared),N(n.Type)||(this._T=n.Type),N(n._Id)||(this.__I=n._Id),L(this,n,["format","Format","label","Label"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{backwardPeriod:this._B,forwardPeriod:this._Fo,intercept:this._I,movingAveragePeriod:this._M,name:this._N,polynomialOrder:this._P,showEquation:this._S,showRSquared:this._Sh,type:this._T},{format:this._F,label:this._L})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartTrendline=Rn;var xn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartTrendlineCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"ChartTrendlineCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.ChartTrendline,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.17"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.ChartTrendline,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.ChartTrendline,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.ChartTrendline,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.ChartTrendline,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.ChartTrendlineCollection=xn;var Tn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartTrendlineFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["line"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"line",{get:function(){return this._L||(this._L=S(e.ChartLineFormat,this,"Line",!1,4)),this._L},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["line"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["line","Line"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{line:this._L})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartTrendlineFormat=Tn;var In="ChartTrendlineLabel",wn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartTrendlineLabel"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["top","left","width","height","formula","textOrientation","horizontalAlignment","verticalAlignment","text","autoText","numberFormat","linkNumberFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Top","Left","Width","Height","Formula","TextOrientation","HorizontalAlignment","VerticalAlignment","Text","AutoText","NumberFormat","LinkNumberFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartTrendlineLabelFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoText",{get:function(){return D("autoText",this._A,In,this._isNull),this._A},set:function(e){this._A=e,w(this,"AutoText",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formula",{get:function(){return D("formula",this._Fo,In,this._isNull),this._Fo},set:function(e){this._Fo=e,w(this,"Formula",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,In,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalAlignment",{get:function(){return D("horizontalAlignment",this._Ho,In,this._isNull),this._Ho},set:function(e){this._Ho=e,w(this,"HorizontalAlignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,In,this._isNull),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkNumberFormat",{get:function(){return D("linkNumberFormat",this._Li,In,this._isNull),k("ChartTrendlineLabel.linkNumberFormat",C,"1.9",O),this._Li},set:function(e){this._Li=e,w(this,"LinkNumberFormat",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this._N,In,this._isNull),this._N},set:function(e){this._N=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return D("text",this._T,In,this._isNull),this._T},set:function(e){this._T=e,w(this,"Text",e,G(2,"ExcelApiUndo","1.36"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textOrientation",{get:function(){return D("textOrientation",this._Te,In,this._isNull),this._Te},set:function(e){this._Te=e,w(this,"TextOrientation",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._To,In,this._isNull),this._To},set:function(e){this._To=e,w(this,"Top",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return D("verticalAlignment",this._V,In,this._isNull),this._V},set:function(e){this._V=e,w(this,"VerticalAlignment",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,In,this._isNull),this._W},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["top","left","formula","textOrientation","horizontalAlignment","verticalAlignment","text","autoText","numberFormat","linkNumberFormat"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AutoText)||(this._A=n.AutoText),N(n.Formula)||(this._Fo=n.Formula),N(n.Height)||(this._H=n.Height),N(n.HorizontalAlignment)||(this._Ho=n.HorizontalAlignment),N(n.Left)||(this._L=n.Left),N(n.LinkNumberFormat)||(this._Li=n.LinkNumberFormat),N(n.NumberFormat)||(this._N=n.NumberFormat),N(n.Text)||(this._T=n.Text),N(n.TextOrientation)||(this._Te=n.TextOrientation),N(n.Top)||(this._To=n.Top),N(n.VerticalAlignment)||(this._V=n.VerticalAlignment),N(n.Width)||(this._W=n.Width),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{autoText:this._A,formula:this._Fo,height:this._H,horizontalAlignment:this._Ho,left:this._L,linkNumberFormat:this._Li,numberFormat:this._N,text:this._T,textOrientation:this._Te,top:this._To,verticalAlignment:this._V,width:this._W},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartTrendlineLabel=wn;var Fn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartTrendlineLabelFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fill","border","font"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ChartFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["border","font"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["border","Border","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{border:this._B,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartTrendlineLabelFormat=Fn;var Nn="ChartPlotArea",Dn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartPlotArea"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["left","top","width","height","insideLeft","insideTop","insideWidth","insideHeight","position"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Left","Top","Width","Height","InsideLeft","InsideTop","InsideWidth","InsideHeight","Position"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartPlotAreaFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,Nn,this._isNull),this._H},set:function(e){this._H=e,w(this,"Height",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"insideHeight",{get:function(){return D("insideHeight",this._I,Nn,this._isNull),this._I},set:function(e){this._I=e,w(this,"InsideHeight",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"insideLeft",{get:function(){return D("insideLeft",this._In,Nn,this._isNull),this._In},set:function(e){this._In=e,w(this,"InsideLeft",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"insideTop",{get:function(){return D("insideTop",this._Ins,Nn,this._isNull),this._Ins},set:function(e){this._Ins=e,w(this,"InsideTop",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"insideWidth",{get:function(){return D("insideWidth",this._Insi,Nn,this._isNull),this._Insi},set:function(e){this._Insi=e,w(this,"InsideWidth",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,Nn,this._isNull),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,Nn,this._isNull),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._T,Nn,this._isNull),this._T},set:function(e){this._T=e,w(this,"Top",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,Nn,this._isNull),this._W},set:function(e){this._W=e,w(this,"Width",e,G(2,"ExcelApiUndo","1.22"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["left","top","width","height","insideLeft","insideTop","insideWidth","insideHeight","position"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Height)||(this._H=n.Height),N(n.InsideHeight)||(this._I=n.InsideHeight),N(n.InsideLeft)||(this._In=n.InsideLeft),N(n.InsideTop)||(this._Ins=n.InsideTop),N(n.InsideWidth)||(this._Insi=n.InsideWidth),N(n.Left)||(this._L=n.Left),N(n.Position)||(this._P=n.Position),N(n.Top)||(this._T=n.Top),N(n.Width)||(this._W=n.Width),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{height:this._H,insideHeight:this._I,insideLeft:this._In,insideTop:this._Ins,insideWidth:this._Insi,left:this._L,position:this._P,top:this._T,width:this._W},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartPlotArea=Dn;var kn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartPlotAreaFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["border","fill"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"border",{get:function(){return this._B||(this._B=S(e.ChartBorder,this,"Border",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ChartFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["border"],["fill"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["border","Border","fill","Fill"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{border:this._B})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartPlotAreaFormat=kn;var jn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartLeaderLines"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ChartLeaderLinesFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartLeaderLines=jn;var Un=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ChartLeaderLinesFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["line"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"line",{get:function(){return this._L||(this._L=S(e.ChartLineFormat,this,"Line",!1,4)),this._L},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["line"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["line","Line"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{line:this._L})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ChartLeaderLinesFormat=Un;var Mn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"VisualCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"VisualCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){return P(e.Visual,this,"Add",0,[t,n,r],!1,!0,null,2)},n.prototype.bootstrapAgaveVisual=function(){T(this,"BootstrapAgaveVisual",0,[],2,0)},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getDefinitions=function(){return T(this,"GetDefinitions",1,[],4,0)},n.prototype.getPreview=function(e,t,n,r){return T(this,"GetPreview",1,[e,t,n,r],4,0)},n.prototype.getSelectedOrNullObject=function(){return P(e.Visual,this,"GetSelectedOrNullObject",1,[],!1,!1,null,4)},n.prototype._GetItem=function(t){return A(e.Visual,this,[t])},n.prototype._RegisterSelectionChangedEvent=function(){T(this,"_RegisterSelectionChangedEvent",1,[],0,0)},n.prototype._UnregisterSelectionChangedEvent=function(){T(this,"_UnregisterSelectionChangedEvent",1,[],0,0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Visual,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Visual,!0,o,t,n)}))},Object.defineProperty(n.prototype,"onAgaveVisualUpdate",{get:function(){var e=this;return this.m_agaveVisualUpdate||(this.m_agaveVisualUpdate=new OfficeExtension.GenericEventHandlers(this.context,this,"AgaveVisualUpdate",{eventType:150,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=v.VisualCollection_AgaveVisualUpdate_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_agaveVisualUpdate},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onSelectionChanged",{get:function(){var e=this;return this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:2e3,registerFunc:function(){return e._RegisterSelectionChangedEvent()},unregisterFunc:function(){return e._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return e._ParentObject.id},eventArgsTransformFunc:function(e){var t={type:xi.visualSelectionChanged,revisionLoad:e.revisionLoad,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Visual,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.VisualCollection=Mn;var Hn=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),e}();e.VisualCollectionCustom=Hn,OfficeExtension.Utility.applyMixin(Mn,Hn),function(e){e.VisualCollection_AgaveVisualUpdate_EventArgsTransform=function(e,t){var n=t;return{type:n.type,payload:n.payload}}}(v=e._CC||(e._CC={}));var Ln="Visual",Bn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Visual"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","isSupportedInVisualTaskpane"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","IsSupportedInVisualTaskpane"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["properties"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"properties",{get:function(){return this._P||(this._P=S(e.VisualPropertyCollection,this,"Properties",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,Ln,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isSupportedInVisualTaskpane",{get:function(){return D("isSupportedInVisualTaskpane",this._Is,Ln,this._isNull),this._Is},enumerable:!0,configurable:!0}),n.prototype.addChildProperty=function(e,t){return k("Visual.addChildProperty","ExcelApiOnline","1.1",O),T(this,"AddChildProperty",0,[e,t],2,0)},n.prototype.changeDataSource=function(e,t){T(this,"ChangeDataSource",0,[e,t],2,0)},n.prototype.delete=function(){T(this,"Delete",0,[],2,0)},n.prototype.deserializeProperties=function(e){T(this,"DeserializeProperties",0,[e],2,0)},n.prototype.getChildProperties=function(t,n){return P(e.VisualPropertyCollection,this,"GetChildProperties",1,[t,n],!0,!1,null,4)},n.prototype.getDataControllerClient=function(){return P(e.DataControllerClient,this,"GetDataControllerClient",1,[],!1,!1,null,4)},n.prototype.getDataSource=function(){return T(this,"GetDataSource",1,[],4,0)},n.prototype.getElementChildProperties=function(t,n,r){return P(e.VisualPropertyCollection,this,"GetElementChildProperties",1,[t,n,r],!0,!1,null,4)},n.prototype.getProperty=function(e){return T(this,"GetProperty",1,[e],4,0)},n.prototype.removeChildProperty=function(e,t){k("Visual.removeChildProperty","ExcelApiOnline","1.1",O),T(this,"RemoveChildProperty",0,[e,t],2,0)},n.prototype.serializeProperties=function(){return T(this,"SerializeProperties",1,[],4,0)},n.prototype.setProperty=function(e,t){T(this,"SetProperty",0,[e,t],2,0)},n.prototype.setPropertyToDefault=function(e){T(this,"SetPropertyToDefault",0,[e],2,0)},n.prototype._RegisterChangeEvent=function(){T(this,"_RegisterChangeEvent",1,[],0,0)},n.prototype._UnregisterChangeEvent=function(){T(this,"_UnregisterChangeEvent",1,[],0,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),N(n.IsSupportedInVisualTaskpane)||(this._Is=n.IsSupportedInVisualTaskpane),L(this,n,["properties","Properties"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},Object.defineProperty(n.prototype,"onChangeNotification",{get:function(){var e=this;return this.m_changeNotification||(this.m_changeNotification=new OfficeExtension.GenericEventHandlers(this.context,this,"ChangeNotification",{eventType:2001,registerFunc:function(){return e._RegisterChangeEvent()},unregisterFunc:function(){return e._UnregisterChangeEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(t){var n=v.Visual_ChangeNotification_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_changeNotification},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{id:this._I,isSupportedInVisualTaskpane:this._Is},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Visual=Bn,function(t){t.Visual_ChangeNotification_EventArgsTransform=function(t,n){var r=n;return{targetId:r.targetId,changeType:r.changeType,payload:r.payload,type:e.EventType.visualChange}}}(v=e._CC||(e._CC={}));var Wn="VisualProperty",Vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"VisualProperty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["type","value","id","localizedName","options","localizedOptions","hasDefault","isDefault","min","max","stepSize","hideMeButShowChildrenUI","expandableUI","nextPropOnSameLine","showResetUI","size","minSize","maxSize","index","parentName"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Type","Value","Id","LocalizedName","Options","LocalizedOptions","HasDefault","IsDefault","Min","Max","StepSize","HideMeButShowChildrenUI","ExpandableUI","NextPropOnSameLine","ShowResetUI","Size","MinSize","MaxSize","Index","ParentName"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expandableUI",{get:function(){return D("expandableUI",this._E,Wn,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDefault",{get:function(){return D("hasDefault",this._H,Wn,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideMeButShowChildrenUI",{get:function(){return D("hideMeButShowChildrenUI",this._Hi,Wn,this._isNull),this._Hi},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return D("id",this._I,Wn,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return D("index",this._In,Wn,this._isNull),k("VisualProperty.index","ExcelApiOnline","1.1",O),this._In},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDefault",{get:function(){return D("isDefault",this._Is,Wn,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localizedName",{get:function(){return D("localizedName",this._L,Wn,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localizedOptions",{get:function(){return D("localizedOptions",this._Lo,Wn,this._isNull),this._Lo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return D("max",this._M,Wn,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return D("maxSize",this._Ma,Wn,this._isNull),k("VisualProperty.maxSize","ExcelApiOnline","1.1",O),this._Ma},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return D("min",this._Mi,Wn,this._isNull),this._Mi},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minSize",{get:function(){return D("minSize",this._Min,Wn,this._isNull),k("VisualProperty.minSize","ExcelApiOnline","1.1",O),this._Min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextPropOnSameLine",{get:function(){return D("nextPropOnSameLine",this._N,Wn,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return D("options",this._O,Wn,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentName",{get:function(){return D("parentName",this._P,Wn,this._isNull),k("VisualProperty.parentName","ExcelApiOnline","1.1",O),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showResetUI",{get:function(){return D("showResetUI",this._S,Wn,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return D("size",this._Si,Wn,this._isNull),k("VisualProperty.size","ExcelApiOnline","1.1",O),this._Si},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stepSize",{get:function(){return D("stepSize",this._St,Wn,this._isNull),this._St},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return D("type",this._T,Wn,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return D("value",this._V,Wn,this._isNull),this._V},enumerable:!0,configurable:!0}),t.prototype.getBoolMetaProperty=function(e){return T(this,"GetBoolMetaProperty",1,[e],4,0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.ExpandableUI)||(this._E=n.ExpandableUI),N(n.HasDefault)||(this._H=n.HasDefault),N(n.HideMeButShowChildrenUI)||(this._Hi=n.HideMeButShowChildrenUI),N(n.Id)||(this._I=n.Id),N(n.Index)||(this._In=n.Index),N(n.IsDefault)||(this._Is=n.IsDefault),N(n.LocalizedName)||(this._L=n.LocalizedName),N(n.LocalizedOptions)||(this._Lo=n.LocalizedOptions),N(n.Max)||(this._M=n.Max),N(n.MaxSize)||(this._Ma=n.MaxSize),N(n.Min)||(this._Mi=n.Min),N(n.MinSize)||(this._Min=n.MinSize),N(n.NextPropOnSameLine)||(this._N=n.NextPropOnSameLine),N(n.Options)||(this._O=n.Options),N(n.ParentName)||(this._P=n.ParentName),N(n.ShowResetUI)||(this._S=n.ShowResetUI),N(n.Size)||(this._Si=n.Size),N(n.StepSize)||(this._St=n.StepSize),N(n.Type)||(this._T=n.Type),N(n.Value)||(this._V=n.Value)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),F(t)||N(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{expandableUI:this._E,hasDefault:this._H,hideMeButShowChildrenUI:this._Hi,id:this._I,index:this._In,isDefault:this._Is,localizedName:this._L,localizedOptions:this._Lo,max:this._M,maxSize:this._Ma,min:this._Mi,minSize:this._Min,nextPropOnSameLine:this._N,options:this._O,parentName:this._P,showResetUI:this._S,size:this._Si,stepSize:this._St,type:this._T,value:this._V},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.VisualProperty=Vn;var Gn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"VisualPropertyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"VisualPropertyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.VisualProperty,this,[t])},n.prototype.getItemAt=function(t){return P(e.VisualProperty,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.VisualProperty,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.VisualProperty,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.VisualProperty,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.VisualPropertyCollection=Gn;var qn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"DataControllerClient"},enumerable:!0,configurable:!0}),t.prototype.addField=function(e,t,n){T(this,"AddField",0,[e,t,n],2,0)},t.prototype.getAssociatedFields=function(e){return T(this,"GetAssociatedFields",1,[e],4,0)},t.prototype.getAvailableFields=function(e){return T(this,"GetAvailableFields",1,[e],4,0)},t.prototype.getWells=function(){return T(this,"GetWells",1,[],4,0)},t.prototype.moveField=function(e,t,n){T(this,"MoveField",0,[e,t,n],2,0)},t.prototype.removeField=function(e,t){T(this,"RemoveField",0,[e,t],2,0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),F(t))||H(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{},{})},t}(OfficeExtension.ClientObject);e.DataControllerClient=qn;var Jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RangeSort"},enumerable:!0,configurable:!0}),t.prototype.apply=function(e,t,n,r,o){T(this,"Apply",0,[e,t,n,r,o],G(2,"ExcelApiUndo","1.10"),0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),F(t))||H(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{},{})},t}(OfficeExtension.ClientObject);e.RangeSort=Jn;var zn="TableSort",Kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"TableSort"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["matchCase","method","fields"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["MatchCase","Method","Fields"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return D("fields",this._F,zn,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchCase",{get:function(){return D("matchCase",this._M,zn,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"method",{get:function(){return D("method",this._Me,zn,this._isNull),this._Me},enumerable:!0,configurable:!0}),t.prototype.apply=function(e,t,n){T(this,"Apply",0,[e,t,n],G(2,"ExcelApiUndo","1.16"),0)},t.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.40"),0)},t.prototype.reapply=function(){T(this,"Reapply",0,[],G(2,"ExcelApiUndo","1.34"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Fields)||(this._F=n.Fields),N(n.MatchCase)||(this._M=n.MatchCase),N(n.Method)||(this._Me=n.Method)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{fields:this._F,matchCase:this._M,method:this._Me},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.TableSort=Kn;var Qn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"Filter"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"criteria",{get:function(){return D("criteria",this._C,"Filter",this._isNull),this._C},enumerable:!0,configurable:!0}),t.prototype.apply=function(e){T(this,"Apply",0,[e],G(2,"ExcelApiUndo","1.40"),0)},t.prototype.applyBottomItemsFilter=function(e){T(this,"ApplyBottomItemsFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyBottomPercentFilter=function(e){T(this,"ApplyBottomPercentFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyCellColorFilter=function(e){T(this,"ApplyCellColorFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyCustomFilter=function(e,t,n){T(this,"ApplyCustomFilter",0,[e,t,n],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyDynamicFilter=function(e){T(this,"ApplyDynamicFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyFontColorFilter=function(e){T(this,"ApplyFontColorFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyIconFilter=function(e){T(this,"ApplyIconFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyTopItemsFilter=function(e){T(this,"ApplyTopItemsFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyTopPercentFilter=function(e){T(this,"ApplyTopPercentFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.applyValuesFilter=function(e){T(this,"ApplyValuesFilter",0,[e],G(2,"ExcelApiUndo","1.15"),0)},t.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.15"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Criteria)||(this._C=n.Criteria)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{criteria:this._C},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.Filter=Qn;var Xn="AutoFilter",Yn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"AutoFilter"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["enabled","isDataFiltered","criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Enabled","IsDataFiltered","Criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"criteria",{get:function(){return D("criteria",this._C,Xn,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"enabled",{get:function(){return D("enabled",this._E,Xn,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isDataFiltered",{get:function(){return D("isDataFiltered",this._I,Xn,this._isNull),this._I},enumerable:!0,configurable:!0}),n.prototype.apply=function(e,t,n){T(this,"Apply",0,[e,t,n],G(2,"ExcelApiUndo","1.14"),0)},n.prototype.clearColumnCriteria=function(e){k("AutoFilter.clearColumnCriteria",C,"1.14",O),T(this,"ClearColumnCriteria",0,[e],G(2,"ExcelApiUndo","1.25"),0)},n.prototype.clearCriteria=function(){T(this,"ClearCriteria",0,[],G(2,"ExcelApiUndo","1.16"),0)},n.prototype.getRange=function(){return P(e.Range,this,"GetRange",1,[],!1,!0,null,4)},n.prototype.getRangeOrNullObject=function(){return P(e.Range,this,"GetRangeOrNullObject",1,[],!1,!0,null,4)},n.prototype.reapply=function(){T(this,"Reapply",0,[],G(2,"ExcelApiUndo","1.16"),0)},n.prototype.remove=function(){T(this,"Remove",0,[],G(2,"ExcelApiUndo","1.16"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Criteria)||(this._C=n.Criteria),N(n.Enabled)||(this._E=n.Enabled),N(n.IsDataFiltered)||(this._I=n.IsDataFiltered)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{criteria:this._C,enabled:this._E,isDataFiltered:this._I},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.AutoFilter=Yn;var Zn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CultureInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["numberFormat","datetimeFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"datetimeFormat",{get:function(){return k("CultureInfo.datetimeFormat",C,"1.12",O),this._D||(this._D=S(e.DatetimeFormatInfo,this,"DatetimeFormat",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return this._Nu||(this._Nu=S(e.NumberFormatInfo,this,"NumberFormat",!1,4)),this._Nu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,"CultureInfo",this._isNull),this._N},enumerable:!0,configurable:!0}),n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Name)||(this._N=n.Name),L(this,n,["datetimeFormat","DatetimeFormat","numberFormat","NumberFormat"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{name:this._N},{datetimeFormat:this._D,numberFormat:this._Nu})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.CultureInfo=Zn;var $n="NumberFormatInfo",er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"NumberFormatInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["numberDecimalSeparator","numberGroupSeparator","currencySymbol"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["NumberDecimalSeparator","NumberGroupSeparator","CurrencySymbol"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currencySymbol",{get:function(){return D("currencySymbol",this._C,$n,this._isNull),k("NumberFormatInfo.currencySymbol",C,"1.17",O),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberDecimalSeparator",{get:function(){return D("numberDecimalSeparator",this._N,$n,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberGroupSeparator",{get:function(){return D("numberGroupSeparator",this._Nu,$n,this._isNull),this._Nu},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.CurrencySymbol)||(this._C=n.CurrencySymbol),N(n.NumberDecimalSeparator)||(this._N=n.NumberDecimalSeparator),N(n.NumberGroupSeparator)||(this._Nu=n.NumberGroupSeparator)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{currencySymbol:this._C,numberDecimalSeparator:this._N,numberGroupSeparator:this._Nu},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.NumberFormatInfo=er;var tr="DatetimeFormatInfo",nr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"DatetimeFormatInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["dateSeparator","longDatePattern","shortDatePattern","timeSeparator","longTimePattern"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["DateSeparator","LongDatePattern","ShortDatePattern","TimeSeparator","LongTimePattern"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateSeparator",{get:function(){return D("dateSeparator",this._D,tr,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longDatePattern",{get:function(){return D("longDatePattern",this._L,tr,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longTimePattern",{get:function(){return D("longTimePattern",this._Lo,tr,this._isNull),this._Lo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shortDatePattern",{get:function(){return D("shortDatePattern",this._S,tr,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeSeparator",{get:function(){return D("timeSeparator",this._T,tr,this._isNull),this._T},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.DateSeparator)||(this._D=n.DateSeparator),N(n.LongDatePattern)||(this._L=n.LongDatePattern),N(n.LongTimePattern)||(this._Lo=n.LongTimePattern),N(n.ShortDatePattern)||(this._S=n.ShortDatePattern),N(n.TimeSeparator)||(this._T=n.TimeSeparator)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{dateSeparator:this._D,longDatePattern:this._L,longTimePattern:this._Lo,shortDatePattern:this._S,timeSeparator:this._T},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.DatetimeFormatInfo=nr;var rr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CustomXmlPartScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"CustomXmlPartScopedCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.CustomXmlPart,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.CustomXmlPart,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.getOnlyItem=function(){return P(e.CustomXmlPart,this,"GetOnlyItem",1,[],!1,!1,null,4)},n.prototype.getOnlyItemOrNullObject=function(){return P(e.CustomXmlPart,this,"GetOnlyItemOrNullObject",1,[],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.CustomXmlPart,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.CustomXmlPart,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.CustomXmlPart,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.CustomXmlPartScopedCollection=rr;var or=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CustomXmlPartCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"CustomXmlPartCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.CustomXmlPart,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.32"))},n.prototype.getByNamespace=function(t){return P(e.CustomXmlPartScopedCollection,this,"GetByNamespace",1,[t],!0,!1,null,4)},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.CustomXmlPart,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.CustomXmlPart,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.CustomXmlPart,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.CustomXmlPart,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.CustomXmlPart,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.CustomXmlPartCollection=or;var ir="CustomXmlPart",ar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"CustomXmlPart"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id","namespaceUri"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","NamespaceUri"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return D("id",this._I,ir,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"namespaceUri",{get:function(){return D("namespaceUri",this._N,ir,this._isNull),this._N},enumerable:!0,configurable:!0}),t.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.34"),0)},t.prototype.getXml=function(){return T(this,"GetXml",1,[],4,0)},t.prototype.setXml=function(e){T(this,"SetXml",0,[e],G(2,"ExcelApiUndo","1.32"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Id)||(this._I=n.Id),N(n.NamespaceUri)||(this._N=n.NamespaceUri)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),F(t)||N(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{id:this._I,namespaceUri:this._N},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.CustomXmlPart=ar;var sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"_V1Api"},enumerable:!0,configurable:!0}),t.prototype.bindingAddColumns=function(e){return T(this,"BindingAddColumns",0,[e],0,0)},t.prototype.bindingAddFromNamedItem=function(e){return T(this,"BindingAddFromNamedItem",1,[e],0,0)},t.prototype.bindingAddFromPrompt=function(e){return T(this,"BindingAddFromPrompt",1,[e],0,0)},t.prototype.bindingAddFromSelection=function(e){return T(this,"BindingAddFromSelection",1,[e],0,0)},t.prototype.bindingAddRows=function(e){return T(this,"BindingAddRows",0,[e],0,0)},t.prototype.bindingClearFormats=function(e){return T(this,"BindingClearFormats",0,[e],0,0)},t.prototype.bindingDeleteAllDataValues=function(e){return T(this,"BindingDeleteAllDataValues",0,[e],0,0)},t.prototype.bindingGetAll=function(){return T(this,"BindingGetAll",1,[],4,0)},t.prototype.bindingGetById=function(e){return T(this,"BindingGetById",1,[e],4,0)},t.prototype.bindingGetData=function(e){return T(this,"BindingGetData",1,[e],4,0)},t.prototype.bindingReleaseById=function(e){return T(this,"BindingReleaseById",1,[e],0,0)},t.prototype.bindingSetData=function(e){return T(this,"BindingSetData",0,[e],0,0)},t.prototype.bindingSetFormats=function(e){return T(this,"BindingSetFormats",0,[e],0,0)},t.prototype.bindingSetTableOptions=function(e){return T(this,"BindingSetTableOptions",0,[e],0,0)},t.prototype.getFilePropertiesAsync=function(){return k("_V1Api.getFilePropertiesAsync",C,"1.6",O),T(this,"GetFilePropertiesAsync",1,[],4,0)},t.prototype.getSelectedData=function(e){return T(this,"GetSelectedData",1,[e],4,0)},t.prototype.gotoById=function(e){return T(this,"GotoById",1,[e],4,0)},t.prototype.setSelectedData=function(e){return T(this,"SetSelectedData",0,[e],0,0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),F(t))||H(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{},{})},t}(OfficeExtension.ClientObject);e._V1Api=sr;var lr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotTableScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"PivotTableScopedCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getFirst=function(){return P(e.PivotTable,this,"GetFirst",1,[],!1,!0,null,4)},n.prototype.getFirstOrNullObject=function(){return k("PivotTableScopedCollection.getFirstOrNullObject",C,"1.15",O),P(e.PivotTable,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},n.prototype.getItem=function(t){return A(e.PivotTable,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.PivotTable,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.PivotTable,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.PivotTable,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.PivotTable,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PivotTableScopedCollection=lr;var ur=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotTableCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"PivotTableCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){return k("PivotTableCollection.add",C,"1.8",O),P(e.PivotTable,this,"Add",0,[t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.1"))},n.prototype.getCount=function(){return k("PivotTableCollection.getCount",C,"1.4",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.PivotTable,this,[t])},n.prototype.getItemOrNullObject=function(t){return k("PivotTableCollection.getItemOrNullObject",C,"1.4",O),P(e.PivotTable,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.refreshAll=function(){T(this,"RefreshAll",0,[],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.PivotTable,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.PivotTable,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.PivotTable,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PivotTableCollection=ur;var cr=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_eventTargetId",{get:function(){return this._ParentObject?this._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},enumerable:!0,configurable:!0}),e}();e.PivotTableCollectionCustom=cr,OfficeExtension.Utility.applyMixin(ur,cr);var pr="PivotTable",fr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotTable"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","id","useCustomSortLists","enableDataValueEditing","refreshOnOpen","allowMultipleFiltersPerField"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","Id","UseCustomSortLists","EnableDataValueEditing","RefreshOnOpen","AllowMultipleFiltersPerField"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["worksheet","hierarchies","rowHierarchies","columnHierarchies","dataHierarchies","filterHierarchies","layout"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnHierarchies",{get:function(){return k("PivotTable.columnHierarchies",C,"1.8",O),this._C||(this._C=S(e.RowColumnPivotHierarchyCollection,this,"ColumnHierarchies",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataHierarchies",{get:function(){return k("PivotTable.dataHierarchies",C,"1.8",O),this._D||(this._D=S(e.DataPivotHierarchyCollection,this,"DataHierarchies",!0,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterHierarchies",{get:function(){return k("PivotTable.filterHierarchies",C,"1.8",O),this._F||(this._F=S(e.FilterPivotHierarchyCollection,this,"FilterHierarchies",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hierarchies",{get:function(){return k("PivotTable.hierarchies",C,"1.8",O),this._H||(this._H=S(e.PivotHierarchyCollection,this,"Hierarchies",!0,4)),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layout",{get:function(){return k("PivotTable.layout",C,"1.8",O),this._L||(this._L=S(e.PivotLayout,this,"Layout",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowHierarchies",{get:function(){return k("PivotTable.rowHierarchies",C,"1.8",O),this._Ro||(this._Ro=S(e.RowColumnPivotHierarchyCollection,this,"RowHierarchies",!0,4)),this._Ro},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheet",{get:function(){return this._W||(this._W=S(e.Worksheet,this,"Worksheet",!1,4)),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"allowMultipleFiltersPerField",{get:function(){return D("allowMultipleFiltersPerField",this._A,pr,this._isNull),k("PivotTable.allowMultipleFiltersPerField",C,"1.12",O),this._A},set:function(e){this._A=e,w(this,"AllowMultipleFiltersPerField",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"enableDataValueEditing",{get:function(){return D("enableDataValueEditing",this._E,pr,this._isNull),k("PivotTable.enableDataValueEditing",C,"1.9",O),this._E},set:function(e){this._E=e,w(this,"EnableDataValueEditing",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,pr,this._isNull),k("PivotTable.id",C,"1.5",O),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,pr,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"refreshOnOpen",{get:function(){return D("refreshOnOpen",this._R,pr,this._isNull),k("PivotTable.refreshOnOpen",C,"1.13",O),this._R},set:function(e){this._R=e,w(this,"RefreshOnOpen",e,G(2,"ExcelApiUndo","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"useCustomSortLists",{get:function(){return D("useCustomSortLists",this._U,pr,this._isNull),k("PivotTable.useCustomSortLists",C,"1.9",O),this._U},set:function(e){this._U=e,w(this,"UseCustomSortLists",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","useCustomSortLists","enableDataValueEditing"],[],["allowMultipleFiltersPerField","columnHierarchies","dataHierarchies","filterHierarchies","hierarchies","layout","refreshOnOpen","rowHierarchies","worksheet"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){k("PivotTable.delete",C,"1.8",O),T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.1"),0)},n.prototype.getDataSourceString=function(){return k("PivotTable.getDataSourceString",C,"1.15",O),T(this,"GetDataSourceString",1,[],4,0)},n.prototype.getDataSourceType=function(){return k("PivotTable.getDataSourceType",C,"1.15",O),T(this,"GetDataSourceType",1,[],4,0)},n.prototype.refresh=function(){T(this,"Refresh",0,[],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AllowMultipleFiltersPerField)||(this._A=n.AllowMultipleFiltersPerField),N(n.EnableDataValueEditing)||(this._E=n.EnableDataValueEditing),N(n.Id)||(this._I=n.Id),N(n.Name)||(this._N=n.Name),N(n.RefreshOnOpen)||(this._R=n.RefreshOnOpen),N(n.UseCustomSortLists)||(this._U=n.UseCustomSortLists),L(this,n,["columnHierarchies","ColumnHierarchies","dataHierarchies","DataHierarchies","filterHierarchies","FilterHierarchies","hierarchies","Hierarchies","layout","Layout","rowHierarchies","RowHierarchies","worksheet","Worksheet"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{enableDataValueEditing:this._E,id:this._I,name:this._N,useCustomSortLists:this._U},{columnHierarchies:this._C,dataHierarchies:this._D,filterHierarchies:this._F,hierarchies:this._H,rowHierarchies:this._Ro})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.PivotTable=fr;var hr="PivotLayout",dr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotLayout"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["showColumnGrandTotals","showRowGrandTotals","enableFieldList","subtotalLocation","layoutType","autoFormat","preserveFormatting","altTextDescription","altTextTitle","emptyCellText","fillEmptyCells","showFieldHeaders"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ShowColumnGrandTotals","ShowRowGrandTotals","EnableFieldList","SubtotalLocation","LayoutType","AutoFormat","PreserveFormatting","AltTextDescription","AltTextTitle","EmptyCellText","FillEmptyCells","ShowFieldHeaders"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"altTextDescription",{get:function(){return D("altTextDescription",this._A,hr,this._isNull),k("PivotLayout.altTextDescription",C,"1.13",O),this._A},set:function(e){this._A=e,w(this,"AltTextDescription",e,G(2,"ExcelApiUndo","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"altTextTitle",{get:function(){return D("altTextTitle",this._Al,hr,this._isNull),k("PivotLayout.altTextTitle",C,"1.13",O),this._Al},set:function(e){this._Al=e,w(this,"AltTextTitle",e,G(2,"ExcelApiUndo","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoFormat",{get:function(){return D("autoFormat",this._Au,hr,this._isNull),k("PivotLayout.autoFormat",C,"1.9",O),this._Au},set:function(e){this._Au=e,w(this,"AutoFormat",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"emptyCellText",{get:function(){return D("emptyCellText",this._E,hr,this._isNull),k("PivotLayout.emptyCellText",C,"1.13",O),this._E},set:function(e){this._E=e,w(this,"EmptyCellText",e,G(2,"ExcelApiUndo","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"enableFieldList",{get:function(){return D("enableFieldList",this._En,hr,this._isNull),k("PivotLayout.enableFieldList",C,"1.10",O),this._En},set:function(e){this._En=e,w(this,"EnableFieldList",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fillEmptyCells",{get:function(){return D("fillEmptyCells",this._F,hr,this._isNull),k("PivotLayout.fillEmptyCells",C,"1.13",O),this._F},set:function(e){this._F=e,w(this,"FillEmptyCells",e,G(2,"ExcelApiUndo","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutType",{get:function(){return D("layoutType",this._L,hr,this._isNull),this._L},set:function(e){this._L=e,w(this,"LayoutType",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"preserveFormatting",{get:function(){return D("preserveFormatting",this._P,hr,this._isNull),k("PivotLayout.preserveFormatting",C,"1.9",O),this._P},set:function(e){this._P=e,w(this,"PreserveFormatting",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showColumnGrandTotals",{get:function(){return D("showColumnGrandTotals",this._S,hr,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShowColumnGrandTotals",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showFieldHeaders",{get:function(){return D("showFieldHeaders",this._Sh,hr,this._isNull),k("PivotLayout.showFieldHeaders",C,"1.13",O),this._Sh},set:function(e){this._Sh=e,w(this,"ShowFieldHeaders",e,G(2,"ExcelApiUndo","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showRowGrandTotals",{get:function(){return D("showRowGrandTotals",this._Sho,hr,this._isNull),this._Sho},set:function(e){this._Sho=e,w(this,"ShowRowGrandTotals",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"subtotalLocation",{get:function(){return D("subtotalLocation",this._Su,hr,this._isNull),this._Su},set:function(e){this._Su=e,w(this,"SubtotalLocation",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["showColumnGrandTotals","showRowGrandTotals","enableFieldList","subtotalLocation","layoutType","autoFormat","preserveFormatting"],[],["altTextDescription","altTextTitle","emptyCellText","fillEmptyCells","showFieldHeaders"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.displayBlankLineAfterEachItem=function(e){k("PivotLayout.displayBlankLineAfterEachItem",C,"1.13",O),T(this,"DisplayBlankLineAfterEachItem",0,[e],G(2,"ExcelApiUndo","1.2"),0)},n.prototype.getColumnLabelRange=function(){var t=v.PivotLayout_GetColumnLabelRange(this),n=t.handled,r=t.result;return n?r:P(e.Range,this,"GetColumnLabelRange",1,[],!1,!1,null,0)},n.prototype.getDataBodyRange=function(){var t=v.PivotLayout_GetDataBodyRange(this),n=t.handled,r=t.result;return n?r:P(e.Range,this,"GetDataBodyRange",1,[],!1,!1,null,0)},n.prototype.getDataHierarchy=function(t){var n=v.PivotLayout_GetDataHierarchy(this,t),r=n.handled,o=n.result;return r?o:(k("PivotLayout.getDataHierarchy",C,"1.9",O),P(e.DataPivotHierarchy,this,"GetDataHierarchy",1,[t],!1,!1,null,0))},n.prototype.getFilterAxisRange=function(){var t=v.PivotLayout_GetFilterAxisRange(this),n=t.handled,r=t.result;return n?r:P(e.Range,this,"GetFilterAxisRange",1,[],!1,!1,null,0)},n.prototype.getPivotItems=function(t,n){return k("PivotLayout.getPivotItems",C,"1.9",O),P(e.PivotItemCollection,this,"GetPivotItems",0,[t,n],!0,!1,null,G(2,"ExcelApiUndo","1.40"))},n.prototype.getRange=function(){var t=v.PivotLayout_GetRange(this),n=t.handled,r=t.result;return n?r:P(e.Range,this,"GetRange",1,[],!1,!1,null,0)},n.prototype.getRowLabelRange=function(){var t=v.PivotLayout_GetRowLabelRange(this),n=t.handled,r=t.result;return n?r:P(e.Range,this,"GetRowLabelRange",1,[],!1,!1,null,0)},n.prototype.repeatAllItemLabels=function(e){k("PivotLayout.repeatAllItemLabels",C,"1.13",O),T(this,"RepeatAllItemLabels",0,[e],G(2,"ExcelApiUndo","1.2"),0)},n.prototype.setAutoSortOnCell=function(e,t){k("PivotLayout.setAutoSortOnCell",C,"1.9",O),T(this,"SetAutoSortOnCell",0,[e,t],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AltTextDescription)||(this._A=n.AltTextDescription),N(n.AltTextTitle)||(this._Al=n.AltTextTitle),N(n.AutoFormat)||(this._Au=n.AutoFormat),N(n.EmptyCellText)||(this._E=n.EmptyCellText),N(n.EnableFieldList)||(this._En=n.EnableFieldList),N(n.FillEmptyCells)||(this._F=n.FillEmptyCells),N(n.LayoutType)||(this._L=n.LayoutType),N(n.PreserveFormatting)||(this._P=n.PreserveFormatting),N(n.ShowColumnGrandTotals)||(this._S=n.ShowColumnGrandTotals),N(n.ShowFieldHeaders)||(this._Sh=n.ShowFieldHeaders),N(n.ShowRowGrandTotals)||(this._Sho=n.ShowRowGrandTotals),N(n.SubtotalLocation)||(this._Su=n.SubtotalLocation)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{autoFormat:this._Au,enableFieldList:this._En,layoutType:this._L,preserveFormatting:this._P,showColumnGrandTotals:this._S,showRowGrandTotals:this._Sho,subtotalLocation:this._Su},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.PivotLayout=dr,function(t){t.PivotLayout_GetColumnLabelRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:P(e.Range,t,"GetColumnLabelRange",0,[],!1,!1,null,0)}},t.PivotLayout_GetDataBodyRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:P(e.Range,t,"GetDataBodyRange",0,[],!1,!1,null,0)}},t.PivotLayout_GetDataHierarchy=function(t,n){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:(k("PivotLayout.getDataHierarchy",C,"1.9",O),{handled:!0,result:P(e.DataPivotHierarchy,t,"GetDataHierarchy",0,[n],!1,!1,null,0)})},t.PivotLayout_GetFilterAxisRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:P(e.Range,t,"GetFilterAxisRange",0,[],!1,!1,null,0)}},t.PivotLayout_GetRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:P(e.Range,t,"GetRange",0,[],!1,!1,null,0)}},t.PivotLayout_GetRowLabelRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:P(e.Range,t,"GetRowLabelRange",0,[],!1,!1,null,0)}}}(v=e._CC||(e._CC={}));var yr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotHierarchyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"PivotHierarchyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.PivotHierarchy,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.PivotHierarchy,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.PivotHierarchy,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.PivotHierarchy,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.PivotHierarchy,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PivotHierarchyCollection=yr;var mr="PivotHierarchy",gr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotHierarchy"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fields"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fields",{get:function(){return this._F||(this._F=S(e.PivotFieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,mr,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,mr,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name"],[],["fields"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),N(n.Name)||(this._N=n.Name),L(this,n,["fields","Fields"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{id:this._I,name:this._N},{fields:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.PivotHierarchy=gr;var _r=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RowColumnPivotHierarchyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"RowColumnPivotHierarchyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.RowColumnPivotHierarchy,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.1"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.RowColumnPivotHierarchy,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.RowColumnPivotHierarchy,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.remove=function(e){T(this,"Remove",0,[e],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.RowColumnPivotHierarchy,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.RowColumnPivotHierarchy,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.RowColumnPivotHierarchy,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.RowColumnPivotHierarchyCollection=_r;var br="RowColumnPivotHierarchy",vr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RowColumnPivotHierarchy"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","name","position"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","Position"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fields"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fields",{get:function(){return this._F||(this._F=S(e.PivotFieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,br,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,br,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,br,this._isNull),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","position"],[],["fields"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.setToDefault=function(){T(this,"SetToDefault",0,[],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),N(n.Name)||(this._N=n.Name),N(n.Position)||(this._P=n.Position),L(this,n,["fields","Fields"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{id:this._I,name:this._N,position:this._P},{fields:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.RowColumnPivotHierarchy=vr;var Or=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"FilterPivotHierarchyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"FilterPivotHierarchyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.FilterPivotHierarchy,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.1"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.FilterPivotHierarchy,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.FilterPivotHierarchy,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.remove=function(e){T(this,"Remove",0,[e],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.FilterPivotHierarchy,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.FilterPivotHierarchy,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.FilterPivotHierarchy,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.FilterPivotHierarchyCollection=Or;var Cr="FilterPivotHierarchy",Sr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"FilterPivotHierarchy"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","name","position","enableMultipleFilterItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","Position","EnableMultipleFilterItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fields"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fields",{get:function(){return this._F||(this._F=S(e.PivotFieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"enableMultipleFilterItems",{get:function(){return D("enableMultipleFilterItems",this._E,Cr,this._isNull),this._E},set:function(e){this._E=e,w(this,"EnableMultipleFilterItems",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,Cr,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,Cr,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,Cr,this._isNull),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","position","enableMultipleFilterItems"],[],["fields"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.setToDefault=function(){T(this,"SetToDefault",0,[],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.EnableMultipleFilterItems)||(this._E=n.EnableMultipleFilterItems),N(n.Id)||(this._I=n.Id),N(n.Name)||(this._N=n.Name),N(n.Position)||(this._P=n.Position),L(this,n,["fields","Fields"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{enableMultipleFilterItems:this._E,id:this._I,name:this._N,position:this._P},{fields:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.FilterPivotHierarchy=Sr;var Pr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DataPivotHierarchyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"DataPivotHierarchyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.DataPivotHierarchy,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.1"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.DataPivotHierarchy,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.DataPivotHierarchy,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.remove=function(e){T(this,"Remove",0,[e],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.DataPivotHierarchy,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.DataPivotHierarchy,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.DataPivotHierarchy,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.DataPivotHierarchyCollection=Pr;var Ar="DataPivotHierarchy",Er=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DataPivotHierarchy"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","name","position","numberFormat","summarizeBy","showAs"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","Position","NumberFormat","SummarizeBy","ShowAs"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["field"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"field",{get:function(){return this._F||(this._F=S(e.PivotField,this,"Field",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,Ar,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,Ar,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this._Nu,Ar,this._isNull),this._Nu},set:function(e){this._Nu=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return D("position",this._P,Ar,this._isNull),this._P},set:function(e){this._P=e,w(this,"Position",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showAs",{get:function(){return D("showAs",this._S,Ar,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShowAs",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"summarizeBy",{get:function(){return D("summarizeBy",this._Su,Ar,this._isNull),this._Su},set:function(e){this._Su=e,w(this,"SummarizeBy",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","position","numberFormat","summarizeBy","showAs"],["field"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.setToDefault=function(){T(this,"SetToDefault",0,[],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),N(n.Name)||(this._N=n.Name),N(n.NumberFormat)||(this._Nu=n.NumberFormat),N(n.Position)||(this._P=n.Position),N(n.ShowAs)||(this._S=n.ShowAs),N(n.SummarizeBy)||(this._Su=n.SummarizeBy),L(this,n,["field","Field"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{id:this._I,name:this._N,numberFormat:this._Nu,position:this._P,showAs:this._S,summarizeBy:this._Su},{field:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.DataPivotHierarchy=Er;var Rr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotFieldCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"PivotFieldCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.PivotField,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.PivotField,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.PivotField,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.PivotField,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.PivotField,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PivotFieldCollection=Rr;var xr="PivotField",Tr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotField"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","name","subtotals","showAllItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","Subtotals","ShowAllItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["items"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return this._It||(this._It=S(e.PivotItemCollection,this,"Items",!0,4)),this._It},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,xr,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,xr,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showAllItems",{get:function(){return D("showAllItems",this._S,xr,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShowAllItems",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"subtotals",{get:function(){return D("subtotals",this._Su,xr,this._isNull),this._Su},set:function(e){this._Su=e,w(this,"Subtotals",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","subtotals","showAllItems"],[],["items"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.applyFilter=function(e){k("PivotField.applyFilter",C,"1.12",O),T(this,"ApplyFilter",0,[e],G(2,"ExcelApiUndo","1.1"),0)},n.prototype.clearAllFilters=function(){k("PivotField.clearAllFilters",C,"1.12",O),T(this,"ClearAllFilters",0,[],G(2,"ExcelApiUndo","1.1"),0)},n.prototype.clearFilter=function(e){k("PivotField.clearFilter",C,"1.12",O),T(this,"ClearFilter",0,[e],G(2,"ExcelApiUndo","1.1"),0)},n.prototype.getFilters=function(){return k("PivotField.getFilters",C,"1.12",O),T(this,"GetFilters",0,[],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.isFiltered=function(e){return k("PivotField.isFiltered",C,"1.12",O),T(this,"IsFiltered",0,[e],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.sortByLabels=function(e){v.PivotField_SortByLabels(this,e).handled||T(this,"SortByLabels",0,[e],G(2,"ExcelApiUndo","1.1"),0)},n.prototype.sortByValues=function(e,t,n){k("PivotField.sortByValues",C,"1.9",O),T(this,"SortByValues",0,[e,t,n],G(2,"ExcelApiUndo","1.1"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),N(n.Name)||(this._N=n.Name),N(n.ShowAllItems)||(this._S=n.ShowAllItems),N(n.Subtotals)||(this._Su=n.Subtotals),L(this,n,["items","Items"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{id:this._I,name:this._N,showAllItems:this._S,subtotals:this._Su},{items:this._It})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.PivotField=Tr,function(e){e.PivotField_SortByLabels=function(e,t){return"string"==typeof t&&(t="ascending"===t.toLowerCase()),T(e,"SortByLabels",0,[t],G(2,"ExcelApiUndo","1.1"),0),{handled:!0}}}(v=e._CC||(e._CC={}));var Ir=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"PivotItemCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.PivotItem,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.PivotItem,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.PivotItem,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.PivotItem,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.PivotItem,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PivotItemCollection=Ir;var wr="PivotItem",Fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PivotItem"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id","name","isExpanded","visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","IsExpanded","Visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return D("id",this._I,wr,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return D("isExpanded",this._Is,wr,this._isNull),this._Is},set:function(e){this._Is=e,w(this,"IsExpanded",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return D("name",this._N,wr,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return D("visible",this._V,wr,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.1"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["name","isExpanded","visible"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Id)||(this._I=n.Id),N(n.IsExpanded)||(this._Is=n.IsExpanded),N(n.Name)||(this._N=n.Name),N(n.Visible)||(this._V=n.Visible)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),F(t)||N(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{id:this._I,isExpanded:this._Is,name:this._N,visible:this._V},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.PivotItem=Fr,function(e){e.invalid="Invalid",e.topItems="TopItems",e.topPercent="TopPercent",e.topSum="TopSum",e.bottomItems="BottomItems",e.bottomPercent="BottomPercent",e.bottomSum="BottomSum"}(e.PivotFilterTopBottomCriterion||(e.PivotFilterTopBottomCriterion={})),function(e){e.ascending="Ascending",e.descending="Descending"}(e.SortBy||(e.SortBy={})),function(e){e.unknown="Unknown",e.automatic="Automatic",e.sum="Sum",e.count="Count",e.average="Average",e.max="Max",e.min="Min",e.product="Product",e.countNumbers="CountNumbers",e.standardDeviation="StandardDeviation",e.standardDeviationP="StandardDeviationP",e.variance="Variance",e.varianceP="VarianceP"}(e.AggregationFunction||(e.AggregationFunction={})),function(e){e.unknown="Unknown",e.none="None",e.percentOfGrandTotal="PercentOfGrandTotal",e.percentOfRowTotal="PercentOfRowTotal",e.percentOfColumnTotal="PercentOfColumnTotal",e.percentOfParentRowTotal="PercentOfParentRowTotal",e.percentOfParentColumnTotal="PercentOfParentColumnTotal",e.percentOfParentTotal="PercentOfParentTotal",e.percentOf="PercentOf",e.runningTotal="RunningTotal",e.percentRunningTotal="PercentRunningTotal",e.differenceFrom="DifferenceFrom",e.percentDifferenceFrom="PercentDifferenceFrom",e.rankAscending="RankAscending",e.rankDecending="RankDecending",e.index="Index"}(e.ShowAsCalculation||(e.ShowAsCalculation={})),function(e){e.unknown="Unknown",e.row="Row",e.column="Column",e.data="Data",e.filter="Filter"}(e.PivotAxis||(e.PivotAxis={}));var Nr="WorksheetCustomProperty",Dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"WorksheetCustomProperty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["key","value","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Key","Value","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return D("key",this._K,Nr,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return D("value",this._V,Nr,this._isNull),this._V},set:function(e){this._V=e,w(this,"Value",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_Id",{get:function(){return D("_Id",this.__I,Nr,this._isNull),this.__I},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.30"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Key)||(this._K=n.Key),N(n.Value)||(this._V=n.Value),N(n._Id)||(this.__I=n._Id)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),F(t)||N(t._Id)||(this.__I=t._Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{key:this._K,value:this._V},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.WorksheetCustomProperty=Dr;var kr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"WorksheetCustomPropertyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"WorksheetCustomPropertyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.WorksheetCustomProperty,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndo","1.30"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.WorksheetCustomProperty,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.WorksheetCustomProperty,this,"GetItemOrNullObject",0,[t],!1,!1,null,G(2,"ExcelApiUndo","1.30"))},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.WorksheetCustomProperty,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.WorksheetCustomProperty,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.WorksheetCustomProperty,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.WorksheetCustomPropertyCollection=kr;var jr="DocumentProperties",Ur=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DocumentProperties"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["title","subject","author","keywords","comments","lastAuthor","revisionNumber","creationDate","category","manager","company"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Title","Subject","Author","Keywords","Comments","LastAuthor","RevisionNumber","CreationDate","Category","Manager","Company"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["custom"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"custom",{get:function(){return this._Cu||(this._Cu=S(e.CustomPropertyCollection,this,"Custom",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"author",{get:function(){return D("author",this._A,jr,this._isNull),this._A},set:function(e){this._A=e,w(this,"Author",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"category",{get:function(){return D("category",this._C,jr,this._isNull),this._C},set:function(e){this._C=e,w(this,"Category",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"comments",{get:function(){return D("comments",this._Co,jr,this._isNull),this._Co},set:function(e){this._Co=e,w(this,"Comments",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"company",{get:function(){return D("company",this._Com,jr,this._isNull),this._Com},set:function(e){this._Com=e,w(this,"Company",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"creationDate",{get:function(){return D("creationDate",this._Cr,jr,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"keywords",{get:function(){return D("keywords",this._K,jr,this._isNull),this._K},set:function(e){this._K=e,w(this,"Keywords",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lastAuthor",{get:function(){return D("lastAuthor",this._L,jr,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"manager",{get:function(){return D("manager",this._M,jr,this._isNull),this._M},set:function(e){this._M=e,w(this,"Manager",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"revisionNumber",{get:function(){return D("revisionNumber",this._R,jr,this._isNull),this._R},set:function(e){this._R=e,w(this,"RevisionNumber",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"subject",{get:function(){return D("subject",this._S,jr,this._isNull),this._S},set:function(e){this._S=e,w(this,"Subject",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return D("title",this._T,jr,this._isNull),this._T},set:function(e){this._T=e,w(this,"Title",e,G(2,"ExcelApiUndoDesktopOnly","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["title","subject","author","keywords","comments","revisionNumber","category","manager","company"],[],["custom"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Author)||(this._A=n.Author),N(n.Category)||(this._C=n.Category),N(n.Comments)||(this._Co=n.Comments),N(n.Company)||(this._Com=n.Company),N(n.CreationDate)||(this._Cr=B(n.CreationDate)),N(n.Keywords)||(this._K=n.Keywords),N(n.LastAuthor)||(this._L=n.LastAuthor),N(n.Manager)||(this._M=n.Manager),N(n.RevisionNumber)||(this._R=n.RevisionNumber),N(n.Subject)||(this._S=n.Subject),N(n.Title)||(this._T=n.Title),L(this,n,["custom","Custom"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){if(t.prototype._handleRetrieveResult.call(this,e,n),!F(e)){var r=e;N(r.CreationDate)||(r.creationDate=B(r.creationDate)),W(this,e,n)}},n.prototype.toJSON=function(){return M(this,{author:this._A,category:this._C,comments:this._Co,company:this._Com,creationDate:this._Cr,keywords:this._K,lastAuthor:this._L,manager:this._M,revisionNumber:this._R,subject:this._S,title:this._T},{custom:this._Cu})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.DocumentProperties=Ur;var Mr="CustomProperty",Hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"CustomProperty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["key","value","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Key","Value","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return D("key",this._K,Mr,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return D("type",this._T,Mr,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return D("value",this._V,Mr,this._isNull),this._V},set:function(e){this._V=e,w(this,"Value",e,G(2,"ExcelApiUndoPreserveUndoStack","1.2"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndoPreserveUndoStack","1.2"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Key)||(this._K=n.Key),N(n.Type)||(this._T=n.Type),N(n.Value)||(this._V=n.Value)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{key:this._K,type:this._T,value:this._V},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.CustomProperty=Hr;var Lr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CustomPropertyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"CustomPropertyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.CustomProperty,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndoPreserveUndoStack","1.2"))},n.prototype.deleteAll=function(){T(this,"DeleteAll",0,[],G(2,"ExcelApiUndoPreserveUndoStack","1.2"),0)},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.CustomProperty,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.CustomProperty,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.CustomProperty,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.CustomProperty,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.CustomProperty,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.CustomPropertyCollection=Lr;var Br=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ConditionalFormatCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"ConditionalFormatCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.ConditionalFormat,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.11"))},n.prototype.clearAll=function(){T(this,"ClearAll",0,[],G(2,"ExcelApiUndo","1.11"),0)},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.ConditionalFormat,this,[t])},n.prototype.getItemAt=function(t){return P(e.ConditionalFormat,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("ConditionalFormatCollection.getItemOrNullObject",C,"1.14",O),P(e.ConditionalFormat,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.ConditionalFormat,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.ConditionalFormat,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.ConditionalFormat,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.ConditionalFormatCollection=Br;var Wr="ConditionalFormat",Vr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["stopIfTrue","priority","type","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["StopIfTrue","Priority","Type","Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["dataBarOrNullObject","dataBar","customOrNullObject","custom","iconSet","iconSetOrNullObject","colorScale","colorScaleOrNullObject","topBottom","topBottomOrNullObject","preset","presetOrNullObject","textComparison","textComparisonOrNullObject","cellValue","cellValueOrNullObject"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cellValue",{get:function(){return this._C||(this._C=S(e.CellValueConditionalFormat,this,"CellValue",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cellValueOrNullObject",{get:function(){return this._Ce||(this._Ce=S(e.CellValueConditionalFormat,this,"CellValueOrNullObject",!1,4)),this._Ce},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colorScale",{get:function(){return this._Co||(this._Co=S(e.ColorScaleConditionalFormat,this,"ColorScale",!1,4)),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colorScaleOrNullObject",{get:function(){return this._Col||(this._Col=S(e.ColorScaleConditionalFormat,this,"ColorScaleOrNullObject",!1,4)),this._Col},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"custom",{get:function(){return this._Cu||(this._Cu=S(e.CustomConditionalFormat,this,"Custom",!1,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"customOrNullObject",{get:function(){return this._Cus||(this._Cus=S(e.CustomConditionalFormat,this,"CustomOrNullObject",!1,4)),this._Cus},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataBar",{get:function(){return this._D||(this._D=S(e.DataBarConditionalFormat,this,"DataBar",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataBarOrNullObject",{get:function(){return this._Da||(this._Da=S(e.DataBarConditionalFormat,this,"DataBarOrNullObject",!1,4)),this._Da},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"iconSet",{get:function(){return this._I||(this._I=S(e.IconSetConditionalFormat,this,"IconSet",!1,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"iconSetOrNullObject",{get:function(){return this._Ic||(this._Ic=S(e.IconSetConditionalFormat,this,"IconSetOrNullObject",!1,4)),this._Ic},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"preset",{get:function(){return this._P||(this._P=S(e.PresetCriteriaConditionalFormat,this,"Preset",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"presetOrNullObject",{get:function(){return this._Pr||(this._Pr=S(e.PresetCriteriaConditionalFormat,this,"PresetOrNullObject",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textComparison",{get:function(){return this._T||(this._T=S(e.TextConditionalFormat,this,"TextComparison",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textComparisonOrNullObject",{get:function(){return this._Te||(this._Te=S(e.TextConditionalFormat,this,"TextComparisonOrNullObject",!1,4)),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"topBottom",{get:function(){return this._To||(this._To=S(e.TopBottomConditionalFormat,this,"TopBottom",!1,4)),this._To},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"topBottomOrNullObject",{get:function(){return this._Top||(this._Top=S(e.TopBottomConditionalFormat,this,"TopBottomOrNullObject",!1,4)),this._Top},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._Id0,Wr,this._isNull),this._Id0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"priority",{get:function(){return D("priority",this._Pri,Wr,this._isNull),this._Pri},set:function(e){this._Pri=e,w(this,"Priority",e,G(2,"ExcelApiUndo","1.21"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"stopIfTrue",{get:function(){return D("stopIfTrue",this._S,Wr,this._isNull),this._S},set:function(e){this._S=e,w(this,"StopIfTrue",e,G(2,"ExcelApiUndo","1.35"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return D("type",this._Ty,Wr,this._isNull),this._Ty},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["stopIfTrue","priority"],["dataBarOrNullObject","dataBar","customOrNullObject","custom","iconSet","iconSetOrNullObject","colorScale","colorScaleOrNullObject","topBottom","topBottomOrNullObject","preset","presetOrNullObject","textComparison","textComparisonOrNullObject","cellValue","cellValueOrNullObject"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.changeRuleToCellValue=function(e){k("ConditionalFormat.changeRuleToCellValue",C,"1.17",O),T(this,"ChangeRuleToCellValue",0,[e],G(2,"ExcelApiUndo","1.35"),0)},n.prototype.changeRuleToColorScale=function(){k("ConditionalFormat.changeRuleToColorScale",C,"1.17",O),T(this,"ChangeRuleToColorScale",0,[],G(2,"ExcelApiUndo","1.35"),0)},n.prototype.changeRuleToContainsText=function(e){k("ConditionalFormat.changeRuleToContainsText",C,"1.17",O),T(this,"ChangeRuleToContainsText",0,[e],G(2,"ExcelApiUndo","1.35"),0)},n.prototype.changeRuleToCustom=function(e){k("ConditionalFormat.changeRuleToCustom",C,"1.17",O),T(this,"ChangeRuleToCustom",0,[e],G(2,"ExcelApiUndo","1.35"),0)},n.prototype.changeRuleToDataBar=function(){k("ConditionalFormat.changeRuleToDataBar",C,"1.17",O),T(this,"ChangeRuleToDataBar",0,[],G(2,"ExcelApiUndo","1.35"),0)},n.prototype.changeRuleToIconSet=function(){k("ConditionalFormat.changeRuleToIconSet",C,"1.17",O),T(this,"ChangeRuleToIconSet",0,[],G(2,"ExcelApiUndo","1.35"),0)},n.prototype.changeRuleToPresetCriteria=function(e){k("ConditionalFormat.changeRuleToPresetCriteria",C,"1.17",O),T(this,"ChangeRuleToPresetCriteria",0,[e],G(2,"ExcelApiUndo","1.35"),0)},n.prototype.changeRuleToTopBottom=function(e){k("ConditionalFormat.changeRuleToTopBottom",C,"1.17",O),T(this,"ChangeRuleToTopBottom",0,[e],G(2,"ExcelApiUndo","1.35"),0)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.12"),0)},n.prototype.getRange=function(){return P(e.Range,this,"GetRange",1,[],!1,!0,null,4)},n.prototype.getRangeOrNullObject=function(){return P(e.Range,this,"GetRangeOrNullObject",1,[],!1,!0,null,4)},n.prototype.getRanges=function(){return k("ConditionalFormat.getRanges",C,"1.9",O),P(e.RangeAreas,this,"GetRanges",1,[],!1,!0,null,4)},n.prototype.setRanges=function(e){k("ConditionalFormat.setRanges",C,"1.17",O),T(this,"SetRanges",0,[e],G(2,"ExcelApiUndo","1.35"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._Id0=n.Id),N(n.Priority)||(this._Pri=n.Priority),N(n.StopIfTrue)||(this._S=n.StopIfTrue),N(n.Type)||(this._Ty=n.Type),L(this,n,["cellValue","CellValue","cellValueOrNullObject","CellValueOrNullObject","colorScale","ColorScale","colorScaleOrNullObject","ColorScaleOrNullObject","custom","Custom","customOrNullObject","CustomOrNullObject","dataBar","DataBar","dataBarOrNullObject","DataBarOrNullObject","iconSet","IconSet","iconSetOrNullObject","IconSetOrNullObject","preset","Preset","presetOrNullObject","PresetOrNullObject","textComparison","TextComparison","textComparisonOrNullObject","TextComparisonOrNullObject","topBottom","TopBottom","topBottomOrNullObject","TopBottomOrNullObject"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._Id0=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{id:this._Id0,priority:this._Pri,stopIfTrue:this._S,type:this._Ty},{cellValue:this._C,cellValueOrNullObject:this._Ce,colorScale:this._Co,colorScaleOrNullObject:this._Col,custom:this._Cu,customOrNullObject:this._Cus,dataBar:this._D,dataBarOrNullObject:this._Da,iconSet:this._I,iconSetOrNullObject:this._Ic,preset:this._P,presetOrNullObject:this._Pr,textComparison:this._T,textComparisonOrNullObject:this._Te,topBottom:this._To,topBottomOrNullObject:this._Top})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ConditionalFormat=Vr;var Gr="DataBarConditionalFormat",qr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DataBarConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["showDataBarOnly","barDirection","axisFormat","axisColor","lowerBoundRule","upperBoundRule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ShowDataBarOnly","BarDirection","AxisFormat","AxisColor","LowerBoundRule","UpperBoundRule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["positiveFormat","negativeFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"negativeFormat",{get:function(){return this._N||(this._N=S(e.ConditionalDataBarNegativeFormat,this,"NegativeFormat",!1,4)),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"positiveFormat",{get:function(){return this._P||(this._P=S(e.ConditionalDataBarPositiveFormat,this,"PositiveFormat",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"axisColor",{get:function(){return D("axisColor",this._A,Gr,this._isNull),this._A},set:function(e){this._A=e,w(this,"AxisColor",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"axisFormat",{get:function(){return D("axisFormat",this._Ax,Gr,this._isNull),this._Ax},set:function(e){this._Ax=e,w(this,"AxisFormat",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"barDirection",{get:function(){return D("barDirection",this._B,Gr,this._isNull),this._B},set:function(e){this._B=e,w(this,"BarDirection",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lowerBoundRule",{get:function(){return D("lowerBoundRule",this._L,Gr,this._isNull),this._L},set:function(e){this._L=e,w(this,"LowerBoundRule",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showDataBarOnly",{get:function(){return D("showDataBarOnly",this._S,Gr,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShowDataBarOnly",e,G(2,"ExcelApiUndo","1.12"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"upperBoundRule",{get:function(){return D("upperBoundRule",this._U,Gr,this._isNull),this._U},set:function(e){this._U=e,w(this,"UpperBoundRule",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["showDataBarOnly","barDirection","axisFormat","axisColor","lowerBoundRule","upperBoundRule"],["positiveFormat","negativeFormat"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AxisColor)||(this._A=n.AxisColor),N(n.AxisFormat)||(this._Ax=n.AxisFormat),N(n.BarDirection)||(this._B=n.BarDirection),N(n.LowerBoundRule)||(this._L=n.LowerBoundRule),N(n.ShowDataBarOnly)||(this._S=n.ShowDataBarOnly),N(n.UpperBoundRule)||(this._U=n.UpperBoundRule),L(this,n,["negativeFormat","NegativeFormat","positiveFormat","PositiveFormat"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{axisColor:this._A,axisFormat:this._Ax,barDirection:this._B,lowerBoundRule:this._L,showDataBarOnly:this._S,upperBoundRule:this._U},{negativeFormat:this._N,positiveFormat:this._P})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.DataBarConditionalFormat=qr;var Jr="ConditionalDataBarPositiveFormat",zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalDataBarPositiveFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["fillColor","gradientFill","borderColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["FillColor","GradientFill","BorderColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return D("borderColor",this._B,Jr,this._isNull),this._B},set:function(e){this._B=e,w(this,"BorderColor",e,G(2,"ExcelApiUndo","1.12"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillColor",{get:function(){return D("fillColor",this._F,Jr,this._isNull),this._F},set:function(e){this._F=e,w(this,"FillColor",e,G(2,"ExcelApiUndo","1.12"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gradientFill",{get:function(){return D("gradientFill",this._G,Jr,this._isNull),this._G},set:function(e){this._G=e,w(this,"GradientFill",e,G(2,"ExcelApiUndo","1.12"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["fillColor","gradientFill","borderColor"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.BorderColor)||(this._B=n.BorderColor),N(n.FillColor)||(this._F=n.FillColor),N(n.GradientFill)||(this._G=n.GradientFill)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{borderColor:this._B,fillColor:this._F,gradientFill:this._G},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ConditionalDataBarPositiveFormat=zr;var Kr="ConditionalDataBarNegativeFormat",Qr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalDataBarNegativeFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["fillColor","matchPositiveFillColor","borderColor","matchPositiveBorderColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["FillColor","MatchPositiveFillColor","BorderColor","MatchPositiveBorderColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return D("borderColor",this._B,Kr,this._isNull),this._B},set:function(e){this._B=e,w(this,"BorderColor",e,G(2,"ExcelApiUndo","1.12"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillColor",{get:function(){return D("fillColor",this._F,Kr,this._isNull),this._F},set:function(e){this._F=e,w(this,"FillColor",e,G(2,"ExcelApiUndo","1.12"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchPositiveBorderColor",{get:function(){return D("matchPositiveBorderColor",this._M,Kr,this._isNull),this._M},set:function(e){this._M=e,w(this,"MatchPositiveBorderColor",e,G(2,"ExcelApiUndo","1.12"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchPositiveFillColor",{get:function(){return D("matchPositiveFillColor",this._Ma,Kr,this._isNull),this._Ma},set:function(e){this._Ma=e,w(this,"MatchPositiveFillColor",e,G(2,"ExcelApiUndo","1.12"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["fillColor","matchPositiveFillColor","borderColor","matchPositiveBorderColor"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.BorderColor)||(this._B=n.BorderColor),N(n.FillColor)||(this._F=n.FillColor),N(n.MatchPositiveBorderColor)||(this._M=n.MatchPositiveBorderColor),N(n.MatchPositiveFillColor)||(this._Ma=n.MatchPositiveFillColor)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{borderColor:this._B,fillColor:this._F,matchPositiveBorderColor:this._M,matchPositiveFillColor:this._Ma},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ConditionalDataBarNegativeFormat=Qr;var Xr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CustomConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["rule","format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ConditionalRangeFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rule",{get:function(){return this._R||(this._R=S(e.ConditionalFormatRule,this,"Rule",!1,4)),this._R},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["rule","format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),L(this,n,["format","Format","rule","Rule"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{format:this._F,rule:this._R})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.CustomConditionalFormat=Xr;var Yr="ConditionalFormatRule",Zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalFormatRule"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["formula","formulaLocal","formulaR1C1"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Formula","FormulaLocal","FormulaR1C1"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formula",{get:function(){return D("formula",this._F,Yr,this._isNull),this._F},set:function(e){this._F=e,w(this,"Formula",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formulaLocal",{get:function(){return D("formulaLocal",this._Fo,Yr,this._isNull),this._Fo},set:function(e){this._Fo=e,w(this,"FormulaLocal",e,G(2,"ExcelApiUndo","1.27"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formulaR1C1",{get:function(){return D("formulaR1C1",this._For,Yr,this._isNull),this._For},set:function(e){this._For=e,w(this,"FormulaR1C1",e,G(2,"ExcelApiUndo","1.35"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["formula","formulaLocal","formulaR1C1"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Formula)||(this._F=n.Formula),N(n.FormulaLocal)||(this._Fo=n.FormulaLocal),N(n.FormulaR1C1)||(this._For=n.FormulaR1C1)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{formula:this._F,formulaLocal:this._Fo,formulaR1C1:this._For},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ConditionalFormatRule=Zr;var $r="IconSetConditionalFormat",eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"IconSetConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["reverseIconOrder","showIconOnly","style","criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ReverseIconOrder","ShowIconOnly","Style","Criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"criteria",{get:function(){return D("criteria",this._C,$r,this._isNull),this._C},set:function(e){this._C=e,w(this,"Criteria",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reverseIconOrder",{get:function(){return D("reverseIconOrder",this._R,$r,this._isNull),this._R},set:function(e){this._R=e,w(this,"ReverseIconOrder",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showIconOnly",{get:function(){return D("showIconOnly",this._S,$r,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShowIconOnly",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return D("style",this._St,$r,this._isNull),this._St},set:function(e){this._St=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["reverseIconOrder","showIconOnly","style","criteria"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Criteria)||(this._C=n.Criteria),N(n.ReverseIconOrder)||(this._R=n.ReverseIconOrder),N(n.ShowIconOnly)||(this._S=n.ShowIconOnly),N(n.Style)||(this._St=n.Style)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{criteria:this._C,reverseIconOrder:this._R,showIconOnly:this._S,style:this._St},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.IconSetConditionalFormat=eo;var to="ColorScaleConditionalFormat",no=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ColorScaleConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["threeColorScale","criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ThreeColorScale","Criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"criteria",{get:function(){return D("criteria",this._C,to,this._isNull),this._C},set:function(e){this._C=e,w(this,"Criteria",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"threeColorScale",{get:function(){return D("threeColorScale",this._T,to,this._isNull),this._T},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["criteria"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Criteria)||(this._C=n.Criteria),N(n.ThreeColorScale)||(this._T=n.ThreeColorScale)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{criteria:this._C,threeColorScale:this._T},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ColorScaleConditionalFormat=no;var ro=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TopBottomConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ConditionalRangeFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rule",{get:function(){return D("rule",this._R,"TopBottomConditionalFormat",this._isNull),this._R},set:function(e){this._R=e,w(this,"Rule",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["rule"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Rule)||(this._R=n.Rule),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{rule:this._R},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.TopBottomConditionalFormat=ro;var oo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PresetCriteriaConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ConditionalRangeFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rule",{get:function(){return D("rule",this._R,"PresetCriteriaConditionalFormat",this._isNull),this._R},set:function(e){this._R=e,w(this,"Rule",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["rule"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Rule)||(this._R=n.Rule),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{rule:this._R},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.PresetCriteriaConditionalFormat=oo;var io=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TextConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ConditionalRangeFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rule",{get:function(){return D("rule",this._R,"TextConditionalFormat",this._isNull),this._R},set:function(e){this._R=e,w(this,"Rule",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["rule"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Rule)||(this._R=n.Rule),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{rule:this._R},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.TextConditionalFormat=io;var ao=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CellValueConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._F||(this._F=S(e.ConditionalRangeFormat,this,"Format",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rule",{get:function(){return D("rule",this._R,"CellValueConditionalFormat",this._isNull),this._R},set:function(e){this._R=e,w(this,"Rule",e,G(2,"ExcelApiUndo","1.13"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["rule"],["format"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Rule)||(this._R=n.Rule),L(this,n,["format","Format"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{rule:this._R},{format:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.CellValueConditionalFormat=ao;var so=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ConditionalRangeFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["numberFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["NumberFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["fill","font","borders"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"borders",{get:function(){return this._B||(this._B=S(e.ConditionalRangeBorderCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ConditionalRangeFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.ConditionalRangeFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this._N,"ConditionalRangeFormat",this._isNull),this._N},set:function(e){this._N=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndo","1.35"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["numberFormat"],["fill","font"],["borders"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.clearFormat=function(){k("ConditionalRangeFormat.clearFormat",C,"1.17",O),T(this,"ClearFormat",0,[],G(2,"ExcelApiUndo","1.35"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.NumberFormat)||(this._N=n.NumberFormat),L(this,n,["borders","Borders","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{numberFormat:this._N},{borders:this._B,fill:this._F,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ConditionalRangeFormat=so;var lo="ConditionalRangeFont",uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalRangeFont"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color","italic","bold","underline","strikethrough"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color","Italic","Bold","Underline","Strikethrough"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return D("bold",this._B,lo,this._isNull),this._B},set:function(e){this._B=e,w(this,"Bold",e,G(2,"ExcelApiUndo","1.18"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,lo,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.18"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return D("italic",this._I,lo,this._isNull),this._I},set:function(e){this._I=e,w(this,"Italic",e,G(2,"ExcelApiUndo","1.18"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikethrough",{get:function(){return D("strikethrough",this._S,lo,this._isNull),this._S},set:function(e){this._S=e,w(this,"Strikethrough",e,G(2,"ExcelApiUndo","1.18"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return D("underline",this._U,lo,this._isNull),this._U},set:function(e){this._U=e,w(this,"Underline",e,G(2,"ExcelApiUndo","1.18"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["color","italic","bold","underline","strikethrough"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.18"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Bold)||(this._B=n.Bold),N(n.Color)||(this._C=n.Color),N(n.Italic)||(this._I=n.Italic),N(n.Strikethrough)||(this._S=n.Strikethrough),N(n.Underline)||(this._U=n.Underline)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{bold:this._B,color:this._C,italic:this._I,strikethrough:this._S,underline:this._U},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ConditionalRangeFont=uo;var co=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalRangeFill"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,"ConditionalRangeFill",this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.18"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["color"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.18"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Color)||(this._C=n.Color)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{color:this._C},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ConditionalRangeFill=co;var po="ConditionalRangeBorder",fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalRangeBorder"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["sideIndex","style","color"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["SideIndex","Style","Color"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,po,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.18"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sideIndex",{get:function(){return D("sideIndex",this._S,po,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return D("style",this._St,po,this._isNull),this._St},set:function(e){this._St=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.18"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["style","color"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Color)||(this._C=n.Color),N(n.SideIndex)||(this._S=n.SideIndex),N(n.Style)||(this._St=n.Style)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{color:this._C,sideIndex:this._S,style:this._St},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ConditionalRangeBorder=fo;var ho="ConditionalRangeBorderCollection",yo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ConditionalRangeBorderCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["top","bottom","left","right"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bottom",{get:function(){return this._B||(this._B=S(e.ConditionalRangeBorder,this,"Bottom",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return this._L||(this._L=S(e.ConditionalRangeBorder,this,"Left",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"right",{get:function(){return this._R||(this._R=S(e.ConditionalRangeBorder,this,"Right",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return this._T||(this._T=S(e.ConditionalRangeBorder,this,"Top",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,ho,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return D("count",this._C,ho,this._isNull),this._C},enumerable:!0,configurable:!0}),n.prototype.getItem=function(t){return A(e.ConditionalRangeBorder,this,[t])},n.prototype.getItemAt=function(t){return P(e.ConditionalRangeBorder,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),N(r.Count)||(this._C=r.Count),L(this,r,["bottom","Bottom","left","Left","right","Right","top","Top"]),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.ConditionalRangeBorder,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.ConditionalRangeBorder,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{count:this._C},{bottom:this._B,left:this._L,right:this._R,top:this._T},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.ConditionalRangeBorder,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.ConditionalRangeBorderCollection=yo;var mo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CustomFunctionManager"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["status"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Status"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"status",{get:function(){return D("status",this._S,"CustomFunctionManager",this._isNull),this._S},enumerable:!0,configurable:!0}),n.prototype.register=function(e,t){T(this,"Register",0,[e,t],G(2,"ExcelApiUndo","1.42"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Status)||(this._S=n.Status)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.newObject=function(t){return R(e.CustomFunctionManager,t,"Microsoft.ExcelServices.CustomFunctionManager",!1,4)},n.prototype.toJSON=function(){return M(this,{},{})},n}(OfficeExtension.ClientObject);e.CustomFunctionManager=mo;var go=function(){function n(){}return n.register=function(n,r){return k("CustomFunctionManager.register","CustomFunctions","1.3",O),t({delayForCellEdit:!0},(function(t){return e.CustomFunctionManager.newObject(t).register(n,r)}))},n.getStatus=function(){return k("CustomFunctionManager.register","CustomFunctions","1.3",O),t({delayForCellEdit:!0},(function(t){var n=e.CustomFunctionManager.newObject(t).load("status");return t.sync().then((function(){return n.status}))}))},n}();e.CustomFunctionManagerCustom=go,OfficeExtension.Utility.applyMixin(mo,go),function(e){e.CustomFunctionManager_StaticCustomize=function(e){e.register=go.register,e.getStatus=go.getStatus}}(v=e._CC||(e._CC={})),v.CustomFunctionManager_StaticCustomize(mo);var _o="Style",bo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Style"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["builtIn","formulaHidden","horizontalAlignment","includeAlignment","includeBorder","includeFont","includeNumber","includePatterns","includeProtection","indentLevel","locked","name","numberFormat","numberFormatLocal","readingOrder","shrinkToFit","verticalAlignment","wrapText","textOrientation","autoIndent"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["BuiltIn","FormulaHidden","HorizontalAlignment","IncludeAlignment","IncludeBorder","IncludeFont","IncludeNumber","IncludePatterns","IncludeProtection","IndentLevel","Locked","Name","NumberFormat","NumberFormatLocal","ReadingOrder","ShrinkToFit","VerticalAlignment","WrapText","TextOrientation","AutoIndent"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["borders","font","fill"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"borders",{get:function(){return this._B||(this._B=S(e.RangeBorderCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.RangeFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._Fo||(this._Fo=S(e.RangeFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoIndent",{get:function(){return D("autoIndent",this.m_autoIndent,_o,this._isNull),k("Style.autoIndent",C,"1.8",O),this.m_autoIndent},set:function(e){this.m_autoIndent=e,w(this,"AutoIndent",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"builtIn",{get:function(){return D("builtIn",this._Bu,_o,this._isNull),this._Bu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formulaHidden",{get:function(){return D("formulaHidden",this._For,_o,this._isNull),this._For},set:function(e){this._For=e,w(this,"FormulaHidden",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalAlignment",{get:function(){return D("horizontalAlignment",this._H,_o,this._isNull),this._H},set:function(e){this._H=e,w(this,"HorizontalAlignment",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"includeAlignment",{get:function(){return D("includeAlignment",this._I,_o,this._isNull),this._I},set:function(e){this._I=e,w(this,"IncludeAlignment",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"includeBorder",{get:function(){return D("includeBorder",this._In,_o,this._isNull),this._In},set:function(e){this._In=e,w(this,"IncludeBorder",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"includeFont",{get:function(){return D("includeFont",this._Inc,_o,this._isNull),this._Inc},set:function(e){this._Inc=e,w(this,"IncludeFont",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"includeNumber",{get:function(){return D("includeNumber",this._Incl,_o,this._isNull),this._Incl},set:function(e){this._Incl=e,w(this,"IncludeNumber",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"includePatterns",{get:function(){return D("includePatterns",this._Inclu,_o,this._isNull),this._Inclu},set:function(e){this._Inclu=e,w(this,"IncludePatterns",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"includeProtection",{get:function(){return D("includeProtection",this._Includ,_o,this._isNull),this._Includ},set:function(e){this._Includ=e,w(this,"IncludeProtection",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"indentLevel",{get:function(){return D("indentLevel",this._Ind,_o,this._isNull),this._Ind},set:function(e){this._Ind=e,w(this,"IndentLevel",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"locked",{get:function(){return D("locked",this._L,_o,this._isNull),this._L},set:function(e){this._L=e,w(this,"Locked",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,_o,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormat",{get:function(){return D("numberFormat",this._Nu,_o,this._isNull),this._Nu},set:function(e){this._Nu=e,w(this,"NumberFormat",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberFormatLocal",{get:function(){return D("numberFormatLocal",this._Num,_o,this._isNull),this._Num},set:function(e){this._Num=e,w(this,"NumberFormatLocal",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readingOrder",{get:function(){return D("readingOrder",this._R,_o,this._isNull),this._R},set:function(e){this._R=e,w(this,"ReadingOrder",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shrinkToFit",{get:function(){return D("shrinkToFit",this._S,_o,this._isNull),this._S},set:function(e){this._S=e,w(this,"ShrinkToFit",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textOrientation",{get:function(){return D("textOrientation",this.m_textOrientation,_o,this._isNull),k("Style.textOrientation",C,"1.8",O),this.m_textOrientation},set:function(e){v.Style_TextOrientation_Set(this,e).handled||(this.m_textOrientation=e,w(this,"TextOrientation",e,G(2,"ExcelApiUndoDesktopOnly","1.2")))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return D("verticalAlignment",this._V,_o,this._isNull),this._V},set:function(e){this._V=e,w(this,"VerticalAlignment",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"wrapText",{get:function(){return D("wrapText",this._W,_o,this._isNull),this._W},set:function(e){this._W=e,w(this,"WrapText",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["formulaHidden","horizontalAlignment","includeAlignment","includeBorder","includeFont","includeNumber","includePatterns","includeProtection","indentLevel","locked","numberFormat","numberFormatLocal","readingOrder","shrinkToFit","verticalAlignment","wrapText","textOrientation","autoIndent"],["font","fill"],["borders"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndoPreserveUndoStack","1.1"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AutoIndent)||(this.m_autoIndent=n.AutoIndent),N(n.BuiltIn)||(this._Bu=n.BuiltIn),N(n.FormulaHidden)||(this._For=n.FormulaHidden),N(n.HorizontalAlignment)||(this._H=n.HorizontalAlignment),N(n.IncludeAlignment)||(this._I=n.IncludeAlignment),N(n.IncludeBorder)||(this._In=n.IncludeBorder),N(n.IncludeFont)||(this._Inc=n.IncludeFont),N(n.IncludeNumber)||(this._Incl=n.IncludeNumber),N(n.IncludePatterns)||(this._Inclu=n.IncludePatterns),N(n.IncludeProtection)||(this._Includ=n.IncludeProtection),N(n.IndentLevel)||(this._Ind=n.IndentLevel),N(n.Locked)||(this._L=n.Locked),N(n.Name)||(this._N=n.Name),N(n.NumberFormat)||(this._Nu=n.NumberFormat),N(n.NumberFormatLocal)||(this._Num=n.NumberFormatLocal),N(n.ReadingOrder)||(this._R=n.ReadingOrder),N(n.ShrinkToFit)||(this._S=n.ShrinkToFit),N(n.TextOrientation)||(this.m_textOrientation=n.TextOrientation),N(n.VerticalAlignment)||(this._V=n.VerticalAlignment),N(n.WrapText)||(this._W=n.WrapText),L(this,n,["borders","Borders","fill","Fill","font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{autoIndent:this.m_autoIndent,builtIn:this._Bu,formulaHidden:this._For,horizontalAlignment:this._H,includeAlignment:this._I,includeBorder:this._In,includeFont:this._Inc,includeNumber:this._Incl,includePatterns:this._Inclu,includeProtection:this._Includ,indentLevel:this._Ind,locked:this._L,name:this._N,numberFormat:this._Nu,numberFormatLocal:this._Num,readingOrder:this._R,shrinkToFit:this._S,textOrientation:this.m_textOrientation,verticalAlignment:this._V,wrapText:this._W},{borders:this._B,fill:this._F,font:this._Fo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Style=bo,function(e){e.Style_TextOrientation_Set=function(e,t){return e.m_textOrientation=t,w(e,"Orientation",t,G(2,"ExcelApiUndoDesktopOnly","1.2")),{handled:!0}}}(v=e._CC||(e._CC={}));var vo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"StyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"StyleCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(e){T(this,"Add",0,[e],G(2,"ExcelApiUndoPreserveUndoStack","1.1"),0)},n.prototype.getCount=function(){return k("StyleCollection.getCount",C,"1.9",O),T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.Style,this,[t])},n.prototype.getItemAt=function(t){return k("StyleCollection.getItemAt",C,"1.9",O),P(e.Style,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("StyleCollection.getItemOrNullObject",C,"1.14",O),P(e.Style,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Style,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Style,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Style,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.StyleCollection=vo;var Oo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TableStyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"TableStyleCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.TableStyle,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndoDesktopOnly","1.2"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getDefault=function(){return P(e.TableStyle,this,"GetDefault",0,[],!1,!1,null,G(2,"ExcelApiUndo","1.40"))},n.prototype.getItem=function(t){return A(e.TableStyle,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.TableStyle,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.setDefault=function(e){T(this,"SetDefault",0,[e],G(2,"ExcelApiUndoDesktopOnly","1.2"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.TableStyle,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.TableStyle,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.TableStyle,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.TableStyleCollection=Oo;var Co="TableStyle",So=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TableStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","readOnly","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","ReadOnly","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,Co,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readOnly",{get:function(){return D("readOnly",this._R,Co,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return D("_Id",this.__I,Co,this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndoDesktopOnly","1.2"),0)},n.prototype.duplicate=function(){return P(e.TableStyle,this,"Duplicate",0,[],!1,!1,null,G(2,"ExcelApiUndoDesktopOnly","1.2"))},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Name)||(this._N=n.Name),N(n.ReadOnly)||(this._R=n.ReadOnly),N(n._Id)||(this.__I=n._Id)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{name:this._N,readOnly:this._R},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.TableStyle=So;var Po=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotTableStyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"PivotTableStyleCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.PivotTableStyle,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndoDesktopOnly","1.2"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getDefault=function(){return P(e.PivotTableStyle,this,"GetDefault",0,[],!1,!1,null,G(2,"ExcelApiUndo","1.40"))},n.prototype.getItem=function(t){return A(e.PivotTableStyle,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.PivotTableStyle,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.setDefault=function(e){T(this,"SetDefault",0,[e],G(2,"ExcelApiUndoDesktopOnly","1.2"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.PivotTableStyle,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.PivotTableStyle,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.PivotTableStyle,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PivotTableStyleCollection=Po;var Ao="PivotTableStyle",Eo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PivotTableStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","readOnly","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","ReadOnly","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,Ao,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readOnly",{get:function(){return D("readOnly",this._R,Ao,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return D("_Id",this.__I,Ao,this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndoDesktopOnly","1.2"),0)},n.prototype.duplicate=function(){return P(e.PivotTableStyle,this,"Duplicate",0,[],!1,!1,null,G(2,"ExcelApiUndoDesktopOnly","1.2"))},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Name)||(this._N=n.Name),N(n.ReadOnly)||(this._R=n.ReadOnly),N(n._Id)||(this.__I=n._Id)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{name:this._N,readOnly:this._R},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.PivotTableStyle=Eo;var Ro=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"SlicerStyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"SlicerStyleCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.SlicerStyle,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndoDesktopOnly","1.2"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getDefault=function(){return P(e.SlicerStyle,this,"GetDefault",0,[],!1,!1,null,G(2,"ExcelApiUndo","1.40"))},n.prototype.getItem=function(t){return A(e.SlicerStyle,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.SlicerStyle,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.setDefault=function(e){T(this,"SetDefault",0,[e],G(2,"ExcelApiUndoDesktopOnly","1.2"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.SlicerStyle,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.SlicerStyle,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.SlicerStyle,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.SlicerStyleCollection=Ro;var xo="SlicerStyle",To=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"SlicerStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","readOnly","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","ReadOnly","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,xo,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readOnly",{get:function(){return D("readOnly",this._R,xo,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return D("_Id",this.__I,xo,this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndoDesktopOnly","1.2"),0)},n.prototype.duplicate=function(){return P(e.SlicerStyle,this,"Duplicate",0,[],!1,!1,null,G(2,"ExcelApiUndoDesktopOnly","1.2"))},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Name)||(this._N=n.Name),N(n.ReadOnly)||(this._R=n.ReadOnly),N(n._Id)||(this.__I=n._Id)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{name:this._N,readOnly:this._R},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.SlicerStyle=To;var Io=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TimelineStyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"TimelineStyleCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.TimelineStyle,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndoDesktopOnly","1.2"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getDefault=function(){return P(e.TimelineStyle,this,"GetDefault",0,[],!1,!1,null,G(2,"ExcelApiUndo","1.40"))},n.prototype.getItem=function(t){return A(e.TimelineStyle,this,[t])},n.prototype.getItemOrNullObject=function(t){return P(e.TimelineStyle,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.setDefault=function(e){T(this,"SetDefault",0,[e],G(2,"ExcelApiUndoDesktopOnly","1.2"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.TimelineStyle,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.TimelineStyle,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.TimelineStyle,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.TimelineStyleCollection=Io;var wo="TimelineStyle",Fo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TimelineStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name","readOnly","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name","ReadOnly","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,wo,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readOnly",{get:function(){return D("readOnly",this._R,wo,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return D("_Id",this.__I,wo,this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndoDesktopOnly","1.2"),0)},n.prototype.duplicate=function(){return P(e.TimelineStyle,this,"Duplicate",0,[],!1,!1,null,G(2,"ExcelApiUndoDesktopOnly","1.2"))},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Name)||(this._N=n.Name),N(n.ReadOnly)||(this._R=n.ReadOnly),N(n._Id)||(this.__I=n._Id)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{name:this._N,readOnly:this._R},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.TimelineStyle=Fo;var No=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"InternalTest"},enumerable:!0,configurable:!0}),n.prototype.delay=function(e){return T(this,"Delay",0,[e],0,0)},n.prototype.enterCellEdit=function(e){k("InternalTest.enterCellEdit",C,"1.9",O),T(this,"EnterCellEdit",0,[e],0,0)},n.prototype.exitCellEdit=function(){k("InternalTest.exitCellEdit",C,"1.9",O),T(this,"ExitCellEdit",0,[],0,0)},n.prototype.firstPartyMethod=function(){k("InternalTest.firstPartyMethod",C,"1.7",O),T(this,"FirstPartyMethod",1,[],5,0)},n.prototype.installCustomFunctionsFromCache=function(){k("InternalTest.installCustomFunctionsFromCache",C,"1.9",O),T(this,"InstallCustomFunctionsFromCache",0,[],0,0)},n.prototype.noPermissionMethod=function(e){return k("InternalTest.noPermissionMethod",C,"1.9",O),T(this,"NoPermissionMethod",0,[e],0,0)},n.prototype.recalc=function(e,t){k("InternalTest.recalc",C,"1.9",O),T(this,"Recalc",0,[e,t],0,0)},n.prototype.recalcBySolutionId=function(e){k("InternalTest.recalcBySolutionId",C,"1.9",O),T(this,"RecalcBySolutionId",0,[e],0,0)},n.prototype.safeForCellEditModeMethod=function(e){return k("InternalTest.safeForCellEditModeMethod",C,"1.9",O),T(this,"SafeForCellEditModeMethod",0,[e],0,0)},n.prototype.triggerMessage=function(e,t,n,r){k("InternalTest.triggerMessage",C,"1.7",O),T(this,"TriggerMessage",0,[e,t,n,r],0,0)},n.prototype.triggerPostProcess=function(){k("InternalTest.triggerPostProcess",C,"1.7",O),T(this,"TriggerPostProcess",0,[],0,0)},n.prototype.triggerTestEvent=function(e,t){k("InternalTest.triggerTestEvent",C,"1.7",O),T(this,"TriggerTestEvent",0,[e,t],0,0)},n.prototype.triggerTestEventWithFilter=function(e,t,n){k("InternalTest.triggerTestEventWithFilter",C,"1.7",O),T(this,"TriggerTestEventWithFilter",0,[e,t,n],0,0)},n.prototype.unregisterAllCustomFunctionExecutionEvents=function(){k("InternalTest.unregisterAllCustomFunctionExecutionEvents","CustomFunctions","1.1",O),T(this,"UnregisterAllCustomFunctionExecutionEvents",0,[],0,0)},n.prototype.verifyCustomFunctionListExist=function(){return k("InternalTest.verifyCustomFunctionListExist",C,"1.9",O),T(this,"VerifyCustomFunctionListExist",0,[],0,0)},n.prototype._RegisterCustomFunctionExecutionBeginEvent=function(){k("InternalTest._RegisterCustomFunctionExecutionBeginEvent","CustomFunctions","1.1",O),T(this,"_RegisterCustomFunctionExecutionBeginEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterCustomFunctionExecutionEndEvent=function(){k("InternalTest._RegisterCustomFunctionExecutionEndEvent","CustomFunctions","1.1",O),T(this,"_RegisterCustomFunctionExecutionEndEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterTest1Event=function(){k("InternalTest._RegisterTest1Event",C,"1.7",O),T(this,"_RegisterTest1Event",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterTestEvent=function(){k("InternalTest._RegisterTestEvent",C,"1.7",O),T(this,"_RegisterTestEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterCustomFunctionExecutionBeginEvent=function(){k("InternalTest._UnregisterCustomFunctionExecutionBeginEvent","CustomFunctions","1.1",O),T(this,"_UnregisterCustomFunctionExecutionBeginEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterCustomFunctionExecutionEndEvent=function(){k("InternalTest._UnregisterCustomFunctionExecutionEndEvent","CustomFunctions","1.1",O),T(this,"_UnregisterCustomFunctionExecutionEndEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterTest1Event=function(){k("InternalTest._UnregisterTest1Event",C,"1.7",O),T(this,"_UnregisterTest1Event",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterTestEvent=function(){k("InternalTest._UnregisterTestEvent",C,"1.7",O),T(this,"_UnregisterTestEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),F(e))||H(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.newObject=function(t){return R(e.InternalTest,t,"Microsoft.ExcelServices.InternalTest",!1,4)},Object.defineProperty(n.prototype,"onCustomFunctionExecutionBeginEvent",{get:function(){var e=this;return k("InternalTest.onCustomFunctionExecutionBeginEvent","CustomFunctions","1.1",O),this.m_customFunctionExecutionBeginEvent||(this.m_customFunctionExecutionBeginEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"CustomFunctionExecutionBeginEvent",{eventType:200,registerFunc:function(){return e._RegisterCustomFunctionExecutionBeginEvent()},unregisterFunc:function(){return e._UnregisterCustomFunctionExecutionBeginEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={higherTicks:e.higherTicks,lowerTicks:e.lowerTicks};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_customFunctionExecutionBeginEvent},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onCustomFunctionExecutionEndEvent",{get:function(){var e=this;return k("InternalTest.onCustomFunctionExecutionEndEvent","CustomFunctions","1.1",O),this.m_customFunctionExecutionEndEvent||(this.m_customFunctionExecutionEndEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"CustomFunctionExecutionEndEvent",{eventType:201,registerFunc:function(){return e._RegisterCustomFunctionExecutionEndEvent()},unregisterFunc:function(){return e._UnregisterCustomFunctionExecutionEndEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={higherTicks:e.higherTicks,lowerTicks:e.lowerTicks};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_customFunctionExecutionEndEvent},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onTest1Event",{get:function(){var e=this;return k("InternalTest.onTest1Event",C,"1.7",O),this.m_test1Event||(this.m_test1Event=new OfficeExtension.GenericEventHandlers(this.context,this,"Test1Event",{eventType:2,registerFunc:function(){return e._RegisterTest1Event()},unregisterFunc:function(){return e._UnregisterTest1Event()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=v.InternalTest_Test1Event_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_test1Event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onTestEvent",{get:function(){var e=this;return k("InternalTest.onTestEvent",C,"1.7",O),this.m_testEvent||(this.m_testEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"TestEvent",{eventType:1,registerFunc:function(){return e._RegisterTestEvent()},unregisterFunc:function(){return e._UnregisterTestEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=v.InternalTest_TestEvent_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_testEvent},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{},{})},n}(OfficeExtension.ClientObject);e.InternalTest=No,function(e){e.InternalTest_Test1Event_EventArgsTransform=function(e,t){var n=t;return{prop1:n.prop1,worksheet:e.context.workbook.worksheets.getItem(n.worksheetId)}},e.InternalTest_TestEvent_EventArgsTransform=function(e,t){var n=t;return{prop1:n.prop1,worksheet:e.context.workbook.worksheets.getItem(n.worksheetId)}}}(v=e._CC||(e._CC={}));var Do="PageLayout",ko=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PageLayout"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["orientation","paperSize","blackAndWhite","printErrors","zoom","centerHorizontally","centerVertically","printHeadings","printGridlines","leftMargin","rightMargin","topMargin","bottomMargin","headerMargin","footerMargin","printComments","draftMode","firstPageNumber","printOrder"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Orientation","PaperSize","BlackAndWhite","PrintErrors","Zoom","CenterHorizontally","CenterVertically","PrintHeadings","PrintGridlines","LeftMargin","RightMargin","TopMargin","BottomMargin","HeaderMargin","FooterMargin","PrintComments","DraftMode","FirstPageNumber","PrintOrder"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["headersFooters"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headersFooters",{get:function(){return this._He||(this._He=S(e.HeaderFooterGroup,this,"HeadersFooters",!1,4)),this._He},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"blackAndWhite",{get:function(){return D("blackAndWhite",this._B,Do,this._isNull),this._B},set:function(e){this._B=e,w(this,"BlackAndWhite",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bottomMargin",{get:function(){return D("bottomMargin",this._Bo,Do,this._isNull),this._Bo},set:function(e){this._Bo=e,w(this,"BottomMargin",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"centerHorizontally",{get:function(){return D("centerHorizontally",this._C,Do,this._isNull),this._C},set:function(e){this._C=e,w(this,"CenterHorizontally",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"centerVertically",{get:function(){return D("centerVertically",this._Ce,Do,this._isNull),this._Ce},set:function(e){this._Ce=e,w(this,"CenterVertically",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"draftMode",{get:function(){return D("draftMode",this._D,Do,this._isNull),this._D},set:function(e){this._D=e,w(this,"DraftMode",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"firstPageNumber",{get:function(){return D("firstPageNumber",this._F,Do,this._isNull),this._F},set:function(e){this._F=e,w(this,"FirstPageNumber",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"footerMargin",{get:function(){return D("footerMargin",this._Fo,Do,this._isNull),this._Fo},set:function(e){this._Fo=e,w(this,"FooterMargin",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headerMargin",{get:function(){return D("headerMargin",this._H,Do,this._isNull),this._H},set:function(e){this._H=e,w(this,"HeaderMargin",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"leftMargin",{get:function(){return D("leftMargin",this._L,Do,this._isNull),this._L},set:function(e){this._L=e,w(this,"LeftMargin",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"orientation",{get:function(){return D("orientation",this._O,Do,this._isNull),this._O},set:function(e){this._O=e,w(this,"Orientation",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"paperSize",{get:function(){return D("paperSize",this._P,Do,this._isNull),this._P},set:function(e){this._P=e,w(this,"PaperSize",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"printComments",{get:function(){return D("printComments",this._Pr,Do,this._isNull),this._Pr},set:function(e){this._Pr=e,w(this,"PrintComments",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"printErrors",{get:function(){return D("printErrors",this._Pri,Do,this._isNull),this._Pri},set:function(e){this._Pri=e,w(this,"PrintErrors",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"printGridlines",{get:function(){return D("printGridlines",this._Prin,Do,this._isNull),this._Prin},set:function(e){this._Prin=e,w(this,"PrintGridlines",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"printHeadings",{get:function(){return D("printHeadings",this._Print,Do,this._isNull),this._Print},set:function(e){this._Print=e,w(this,"PrintHeadings",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"printOrder",{get:function(){return D("printOrder",this._PrintO,Do,this._isNull),this._PrintO},set:function(e){this._PrintO=e,w(this,"PrintOrder",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rightMargin",{get:function(){return D("rightMargin",this._R,Do,this._isNull),this._R},set:function(e){this._R=e,w(this,"RightMargin",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"topMargin",{get:function(){return D("topMargin",this._T,Do,this._isNull),this._T},set:function(e){this._T=e,w(this,"TopMargin",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"zoom",{get:function(){return D("zoom",this._Z,Do,this._isNull),this._Z},set:function(e){this._Z=e,w(this,"Zoom",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["orientation","paperSize","blackAndWhite","printErrors","zoom","centerHorizontally","centerVertically","printHeadings","printGridlines","leftMargin","rightMargin","topMargin","bottomMargin","headerMargin","footerMargin","printComments","draftMode","firstPageNumber","printOrder"],["headersFooters"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.getPrintArea=function(){return P(e.RangeAreas,this,"GetPrintArea",1,[],!1,!0,null,4)},n.prototype.getPrintAreaOrNullObject=function(){return P(e.RangeAreas,this,"GetPrintAreaOrNullObject",1,[],!1,!0,null,4)},n.prototype.getPrintTitleColumns=function(){return P(e.Range,this,"GetPrintTitleColumns",1,[],!1,!0,null,4)},n.prototype.getPrintTitleColumnsOrNullObject=function(){return P(e.Range,this,"GetPrintTitleColumnsOrNullObject",1,[],!1,!0,null,4)},n.prototype.getPrintTitleRows=function(){return P(e.Range,this,"GetPrintTitleRows",1,[],!1,!0,null,4)},n.prototype.getPrintTitleRowsOrNullObject=function(){return P(e.Range,this,"GetPrintTitleRowsOrNullObject",1,[],!1,!0,null,4)},n.prototype.setPrintArea=function(e){T(this,"SetPrintArea",0,[e],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.setPrintMargins=function(e,t){T(this,"SetPrintMargins",0,[e,t],G(2,"ExcelApiUndoPreserveUndoStack","1.1"),0)},n.prototype.setPrintTitleColumns=function(e){T(this,"SetPrintTitleColumns",0,[e],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.setPrintTitleRows=function(e){T(this,"SetPrintTitleRows",0,[e],G(2,"ExcelApiUndo","1.40"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.BlackAndWhite)||(this._B=n.BlackAndWhite),N(n.BottomMargin)||(this._Bo=n.BottomMargin),N(n.CenterHorizontally)||(this._C=n.CenterHorizontally),N(n.CenterVertically)||(this._Ce=n.CenterVertically),N(n.DraftMode)||(this._D=n.DraftMode),N(n.FirstPageNumber)||(this._F=n.FirstPageNumber),N(n.FooterMargin)||(this._Fo=n.FooterMargin),N(n.HeaderMargin)||(this._H=n.HeaderMargin),N(n.LeftMargin)||(this._L=n.LeftMargin),N(n.Orientation)||(this._O=n.Orientation),N(n.PaperSize)||(this._P=n.PaperSize),N(n.PrintComments)||(this._Pr=n.PrintComments),N(n.PrintErrors)||(this._Pri=n.PrintErrors),N(n.PrintGridlines)||(this._Prin=n.PrintGridlines),N(n.PrintHeadings)||(this._Print=n.PrintHeadings),N(n.PrintOrder)||(this._PrintO=n.PrintOrder),N(n.RightMargin)||(this._R=n.RightMargin),N(n.TopMargin)||(this._T=n.TopMargin),N(n.Zoom)||(this._Z=n.Zoom),L(this,n,["headersFooters","HeadersFooters"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{blackAndWhite:this._B,bottomMargin:this._Bo,centerHorizontally:this._C,centerVertically:this._Ce,draftMode:this._D,firstPageNumber:this._F,footerMargin:this._Fo,headerMargin:this._H,leftMargin:this._L,orientation:this._O,paperSize:this._P,printComments:this._Pr,printErrors:this._Pri,printGridlines:this._Prin,printHeadings:this._Print,printOrder:this._PrintO,rightMargin:this._R,topMargin:this._T,zoom:this._Z},{headersFooters:this._He})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.PageLayout=ko;var jo="HeaderFooter",Uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"HeaderFooter"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["leftHeader","centerHeader","rightHeader","leftFooter","centerFooter","rightFooter"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["LeftHeader","CenterHeader","RightHeader","LeftFooter","CenterFooter","RightFooter"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerFooter",{get:function(){return D("centerFooter",this._C,jo,this._isNull),this._C},set:function(e){this._C=e,w(this,"CenterFooter",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerHeader",{get:function(){return D("centerHeader",this._Ce,jo,this._isNull),this._Ce},set:function(e){this._Ce=e,w(this,"CenterHeader",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftFooter",{get:function(){return D("leftFooter",this._L,jo,this._isNull),this._L},set:function(e){this._L=e,w(this,"LeftFooter",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftHeader",{get:function(){return D("leftHeader",this._Le,jo,this._isNull),this._Le},set:function(e){this._Le=e,w(this,"LeftHeader",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightFooter",{get:function(){return D("rightFooter",this._R,jo,this._isNull),this._R},set:function(e){this._R=e,w(this,"RightFooter",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightHeader",{get:function(){return D("rightHeader",this._Ri,jo,this._isNull),this._Ri},set:function(e){this._Ri=e,w(this,"RightHeader",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["leftHeader","centerHeader","rightHeader","leftFooter","centerFooter","rightFooter"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.CenterFooter)||(this._C=n.CenterFooter),N(n.CenterHeader)||(this._Ce=n.CenterHeader),N(n.LeftFooter)||(this._L=n.LeftFooter),N(n.LeftHeader)||(this._Le=n.LeftHeader),N(n.RightFooter)||(this._R=n.RightFooter),N(n.RightHeader)||(this._Ri=n.RightHeader)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{centerFooter:this._C,centerHeader:this._Ce,leftFooter:this._L,leftHeader:this._Le,rightFooter:this._R,rightHeader:this._Ri},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.HeaderFooter=Uo;var Mo="HeaderFooterGroup",Ho=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"HeaderFooterGroup"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["state","useSheetMargins","useSheetScale"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["State","UseSheetMargins","UseSheetScale"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["defaultForAllPages","firstPage","evenPages","oddPages"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultForAllPages",{get:function(){return this._D||(this._D=S(e.HeaderFooter,this,"DefaultForAllPages",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"evenPages",{get:function(){return this._E||(this._E=S(e.HeaderFooter,this,"EvenPages",!1,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"firstPage",{get:function(){return this._F||(this._F=S(e.HeaderFooter,this,"FirstPage",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"oddPages",{get:function(){return this._O||(this._O=S(e.HeaderFooter,this,"OddPages",!1,4)),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"state",{get:function(){return D("state",this._S,Mo,this._isNull),this._S},set:function(e){this._S=e,w(this,"State",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"useSheetMargins",{get:function(){return D("useSheetMargins",this._U,Mo,this._isNull),this._U},set:function(e){this._U=e,w(this,"UseSheetMargins",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"useSheetScale",{get:function(){return D("useSheetScale",this._Us,Mo,this._isNull),this._Us},set:function(e){this._Us=e,w(this,"UseSheetScale",e,G(2,"ExcelApiUndoPreserveUndoStack","1.1"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["state","useSheetMargins","useSheetScale"],["defaultForAllPages","firstPage","evenPages","oddPages"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.State)||(this._S=n.State),N(n.UseSheetMargins)||(this._U=n.UseSheetMargins),N(n.UseSheetScale)||(this._Us=n.UseSheetScale),L(this,n,["defaultForAllPages","DefaultForAllPages","evenPages","EvenPages","firstPage","FirstPage","oddPages","OddPages"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{state:this._S,useSheetMargins:this._U,useSheetScale:this._Us},{defaultForAllPages:this._D,evenPages:this._E,firstPage:this._F,oddPages:this._O})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.HeaderFooterGroup=Ho;var Lo="PageBreak",Bo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PageBreak"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["_Id","columnIndex","rowIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","ColumnIndex","RowIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnIndex",{get:function(){return D("columnIndex",this._C,Lo,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowIndex",{get:function(){return D("rowIndex",this._R,Lo,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return D("_Id",this.__I,Lo,this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.getCellAfterBreak=function(){return P(e.Range,this,"GetCellAfterBreak",1,[],!1,!0,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.ColumnIndex)||(this._C=n.ColumnIndex),N(n.RowIndex)||(this._R=n.RowIndex),N(n._Id)||(this.__I=n._Id)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{columnIndex:this._C,rowIndex:this._R},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.PageBreak=Bo;var Wo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PageBreakCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"PageBreakCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.PageBreak,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.40"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.PageBreak,this,[t])},n.prototype.removePageBreaks=function(){T(this,"RemovePageBreaks",0,[],G(2,"ExcelApiUndo","1.40"),0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.PageBreak,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.PageBreak,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.PageBreak,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PageBreakCollection=Wo;var Vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"DataConnectionCollection"},enumerable:!0,configurable:!0}),t.prototype.refreshAll=function(){T(this,"RefreshAll",0,[],0,0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),F(t))||H(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{},{})},t}(OfficeExtension.ClientObject);e.DataConnectionCollection=Vo;var Go=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RangeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"RangeCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItemAt=function(t){return P(e.Range,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Range,!1,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Range,!1,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Range,!1,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.RangeCollection=Go;var qo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RangeAreasCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"RangeAreasCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItemAt=function(t){return P(e.RangeAreas,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.RangeAreas,!1,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.RangeAreas,!1,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.RangeAreas,!1,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.RangeAreasCollection=qo;var Jo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CommentCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"CommentCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){return P(e.Comment,this,"Add",0,[t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.Comment,this,[t])},n.prototype.getItemAt=function(t){return P(e.Comment,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemByCell=function(t){return P(e.Comment,this,"GetItemByCell",1,[t],!1,!1,null,4)},n.prototype.getItemByReplyId=function(t){return P(e.Comment,this,"GetItemByReplyId",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("CommentCollection.getItemOrNullObject",C,"1.14",O),P(e.Comment,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._RegisterAddedEvent=function(){k("CommentCollection._RegisterAddedEvent",C,"1.12",O),T(this,"_RegisterAddedEvent",1,[],0,0)},n.prototype._RegisterChangedEvent=function(){k("CommentCollection._RegisterChangedEvent",C,"1.12",O),T(this,"_RegisterChangedEvent",1,[],0,0)},n.prototype._RegisterDeletedEvent=function(){k("CommentCollection._RegisterDeletedEvent",C,"1.12",O),T(this,"_RegisterDeletedEvent",1,[],0,0)},n.prototype._UnregisterAddedEvent=function(){k("CommentCollection._UnregisterAddedEvent",C,"1.12",O),T(this,"_UnregisterAddedEvent",1,[],0,0)},n.prototype._UnregisterChangedEvent=function(){k("CommentCollection._UnregisterChangedEvent",C,"1.12",O),T(this,"_UnregisterChangedEvent",1,[],0,0)},n.prototype._UnregisterDeletedEvent=function(){k("CommentCollection._UnregisterDeletedEvent",C,"1.12",O),T(this,"_UnregisterDeletedEvent",1,[],0,0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Comment,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Comment,!0,o,t,n)}))},Object.defineProperty(n.prototype,"onAdded",{get:function(){var e=this;return k("CommentCollection.onAdded",C,"1.12",O),this.m_added||(this.m_added=new OfficeExtension.GenericEventHandlers(this.context,this,"Added",{eventType:250,registerFunc:function(){return e._RegisterAddedEvent()},unregisterFunc:function(){return e._UnregisterAddedEvent()},getTargetIdFunc:function(){return e._eventTargetId},eventArgsTransformFunc:function(e){var t={type:xi.commentAdded,commentDetails:e.commentDetails,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_added},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onChanged",{get:function(){var e=this;return k("CommentCollection.onChanged",C,"1.12",O),this.m_changed||(this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:252,registerFunc:function(){return e._RegisterChangedEvent()},unregisterFunc:function(){return e._UnregisterChangedEvent()},getTargetIdFunc:function(){return e._eventTargetId},eventArgsTransformFunc:function(e){var t={type:xi.commentChanged,changeType:e.changeType,commentDetails:e.commentDetails,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_changed},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeleted",{get:function(){var e=this;return k("CommentCollection.onDeleted",C,"1.12",O),this.m_deleted||(this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:251,registerFunc:function(){return e._RegisterDeletedEvent()},unregisterFunc:function(){return e._UnregisterDeletedEvent()},getTargetIdFunc:function(){return e._eventTargetId},eventArgsTransformFunc:function(e){var t={type:xi.commentDeleted,commentDetails:e.commentDetails,source:e.source,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deleted},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Comment,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.CommentCollection=Jo;var zo=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_eventTargetId",{get:function(){return this._ParentObject?this._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},enumerable:!0,configurable:!0}),e}();e.CommentCollectionCustom=zo,OfficeExtension.Utility.applyMixin(Jo,zo);var Ko="Comment",Qo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Comment"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","content","authorName","authorEmail","creationDate","resolved","richContent","mentions","contentType"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Content","AuthorName","AuthorEmail","CreationDate","Resolved","RichContent","Mentions","ContentType"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!0,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["replies"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"replies",{get:function(){return this._R||(this._R=S(e.CommentReplyCollection,this,"Replies",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"authorEmail",{get:function(){return D("authorEmail",this._A,Ko,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"authorName",{get:function(){return D("authorName",this._Au,Ko,this._isNull),this._Au},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"content",{get:function(){return D("content",this._C,Ko,this._isNull),this._C},set:function(e){this._C=e,w(this,"Content",e,G(2,"ExcelApiUndo","1.34"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"contentType",{get:function(){return D("contentType",this._Co,Ko,this._isNull),k("Comment.contentType",C,"1.12",O),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"creationDate",{get:function(){return D("creationDate",this._Cr,Ko,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,Ko,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"mentions",{get:function(){return D("mentions",this._M,Ko,this._isNull),k("Comment.mentions",C,"1.11",O),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"resolved",{get:function(){return D("resolved",this._Re,Ko,this._isNull),k("Comment.resolved",C,"1.11",O),this._Re},set:function(e){this._Re=e,w(this,"Resolved",e,G(2,"ExcelApiUndo","1.34"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"richContent",{get:function(){return D("richContent",this._Ri,Ko,this._isNull),k("Comment.richContent",C,"1.11",O),this._Ri},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["content","resolved"],[],["replies"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.getLocation=function(){return P(e.Range,this,"GetLocation",1,[],!1,!0,null,4)},n.prototype.updateMentions=function(e){k("Comment.updateMentions",C,"1.11",O),T(this,"UpdateMentions",0,[e],G(2,"ExcelApiUndo","1.34"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AuthorEmail)||(this._A=n.AuthorEmail),N(n.AuthorName)||(this._Au=n.AuthorName),N(n.Content)||(this._C=n.Content),N(n.ContentType)||(this._Co=n.ContentType),N(n.CreationDate)||(this._Cr=B(n.CreationDate)),N(n.Id)||(this._I=n.Id),N(n.Mentions)||(this._M=n.Mentions),N(n.Resolved)||(this._Re=n.Resolved),N(n.RichContent)||(this._Ri=n.RichContent),L(this,n,["replies","Replies"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){if(t.prototype._handleRetrieveResult.call(this,e,n),!F(e)){var r=e;N(r.CreationDate)||(r.creationDate=B(r.creationDate)),W(this,e,n)}},n.prototype.toJSON=function(){return M(this,{authorEmail:this._A,authorName:this._Au,content:this._C,contentType:this._Co,creationDate:this._Cr,id:this._I,mentions:this._M,resolved:this._Re,richContent:this._Ri},{replies:this._R})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Comment=Qo;var Xo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CommentReplyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"CommentReplyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.CommentReply,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.CommentReply,this,[t])},n.prototype.getItemAt=function(t){return P(e.CommentReply,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("CommentReplyCollection.getItemOrNullObject",C,"1.14",O),P(e.CommentReply,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.CommentReply,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.CommentReply,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.CommentReply,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.CommentReplyCollection=Xo;var Yo="CommentReply",Zo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CommentReply"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","content","authorName","authorEmail","creationDate","resolved","richContent","mentions","contentType"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Content","AuthorName","AuthorEmail","CreationDate","Resolved","RichContent","Mentions","ContentType"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!1,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"authorEmail",{get:function(){return D("authorEmail",this._A,Yo,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"authorName",{get:function(){return D("authorName",this._Au,Yo,this._isNull),this._Au},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"content",{get:function(){return D("content",this._C,Yo,this._isNull),this._C},set:function(e){this._C=e,w(this,"Content",e,G(2,"ExcelApiUndo","1.34"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"contentType",{get:function(){return D("contentType",this._Co,Yo,this._isNull),k("CommentReply.contentType",C,"1.12",O),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"creationDate",{get:function(){return D("creationDate",this._Cr,Yo,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,Yo,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"mentions",{get:function(){return D("mentions",this._M,Yo,this._isNull),k("CommentReply.mentions",C,"1.11",O),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"resolved",{get:function(){return D("resolved",this._R,Yo,this._isNull),k("CommentReply.resolved",C,"1.11",O),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"richContent",{get:function(){return D("richContent",this._Ri,Yo,this._isNull),k("CommentReply.richContent",C,"1.11",O),this._Ri},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["content"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.34"),0)},n.prototype.getLocation=function(){return P(e.Range,this,"GetLocation",1,[],!1,!0,null,4)},n.prototype.getParentComment=function(){return P(e.Comment,this,"GetParentComment",0,[],!1,!1,null,G(2,"ExcelApiUndo","1.34"))},n.prototype.updateMentions=function(e){k("CommentReply.updateMentions",C,"1.11",O),T(this,"UpdateMentions",0,[e],G(2,"ExcelApiUndo","1.34"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AuthorEmail)||(this._A=n.AuthorEmail),N(n.AuthorName)||(this._Au=n.AuthorName),N(n.Content)||(this._C=n.Content),N(n.ContentType)||(this._Co=n.ContentType),N(n.CreationDate)||(this._Cr=B(n.CreationDate)),N(n.Id)||(this._I=n.Id),N(n.Mentions)||(this._M=n.Mentions),N(n.Resolved)||(this._R=n.Resolved),N(n.RichContent)||(this._Ri=n.RichContent)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){if(t.prototype._handleRetrieveResult.call(this,e,n),!F(e)){var r=e;N(r.CreationDate)||(r.creationDate=B(r.creationDate)),W(this,e,n)}},n.prototype.toJSON=function(){return M(this,{authorEmail:this._A,authorName:this._Au,content:this._C,contentType:this._Co,creationDate:this._Cr,id:this._I,mentions:this._M,resolved:this._R,richContent:this._Ri},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.CommentReply=Zo;var $o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ShapeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"ShapeCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.addGeometricShape=function(t){return P(e.Shape,this,"AddGeometricShape",0,[t],!1,!1,null,G(2,"ExcelApiUndo","1.30"))},n.prototype.addGroup=function(t){return P(e.Shape,this,"AddGroup",0,[t],!1,!1,null,G(2,"ExcelApiUndo","1.30"))},n.prototype.addImage=function(t){return P(e.Shape,this,"AddImage",0,[t],!1,!1,null,G(2,"ExcelApiUndo","1.30"))},n.prototype.addLine=function(t,n,r,o,i){return P(e.Shape,this,"AddLine",0,[t,n,r,o,i],!1,!1,null,G(2,"ExcelApiUndo","1.38"))},n.prototype.addTextBox=function(t){return P(e.Shape,this,"AddTextBox",0,[t],!1,!1,null,G(2,"ExcelApiUndo","1.30"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return P(e.Shape,this,"GetItem",1,[t],!1,!1,null,4)},n.prototype.getItemAt=function(t){return P(e.Shape,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("ShapeCollection.getItemOrNullObject",C,"1.14",O),P(e.Shape,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._GetItem=function(t){return A(e.Shape,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Shape,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Shape,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Shape,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.ShapeCollection=$o;var ei=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),e}();e.ShapeCollectionCustom=ei,OfficeExtension.Utility.applyMixin($o,ei);var ti="Shape",ni=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Shape"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","name","left","top","width","height","rotation","zOrderPosition","altTextTitle","altTextDescription","type","lockAspectRatio","placement","geometricShapeType","visible","level","connectionSiteCount","displayName"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","Left","Top","Width","Height","Rotation","ZOrderPosition","AltTextTitle","AltTextDescription","Type","LockAspectRatio","Placement","GeometricShapeType","Visible","Level","ConnectionSiteCount","DisplayName"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["geometricShape","image","textFrame","fill","group","parentGroup","line","lineFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fill",{get:function(){return this._F||(this._F=S(e.ShapeFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"geometricShape",{get:function(){return this._G||(this._G=S(e.GeometricShape,this,"GeometricShape",!1,4)),this._G},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"group",{get:function(){return this._Gr||(this._Gr=S(e.ShapeGroup,this,"Group",!1,4)),this._Gr},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"image",{get:function(){return this._Im||(this._Im=S(e.Image,this,"Image",!1,4)),this._Im},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"line",{get:function(){return this._Li||(this._Li=S(e.Line,this,"Line",!1,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lineFormat",{get:function(){return this._Lin||(this._Lin=S(e.ShapeLineFormat,this,"LineFormat",!1,4)),this._Lin},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentGroup",{get:function(){return this._P||(this._P=S(e.Shape,this,"ParentGroup",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textFrame",{get:function(){return this._T||(this._T=S(e.TextFrame,this,"TextFrame",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"altTextDescription",{get:function(){return D("altTextDescription",this._A,ti,this._isNull),this._A},set:function(e){this._A=e,w(this,"AltTextDescription",e,G(2,"ExcelApiUndo","1.17"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"altTextTitle",{get:function(){return D("altTextTitle",this._Al,ti,this._isNull),this._Al},set:function(e){this._Al=e,w(this,"AltTextTitle",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"connectionSiteCount",{get:function(){return D("connectionSiteCount",this._C,ti,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayName",{get:function(){return D("displayName",this._D,ti,this._isNull),k("Shape.displayName",C,"1.15",O),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"geometricShapeType",{get:function(){return D("geometricShapeType",this._Ge,ti,this._isNull),this._Ge},set:function(e){this._Ge=e,w(this,"GeometricShapeType",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,ti,this._isNull),this._H},set:function(e){this._H=e,w(this,"Height",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,ti,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,ti,this._isNull),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"level",{get:function(){return D("level",this._Le,ti,this._isNull),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lockAspectRatio",{get:function(){return D("lockAspectRatio",this._Lo,ti,this._isNull),this._Lo},set:function(e){this._Lo=e,w(this,"LockAspectRatio",e,G(2,"ExcelApiUndo","1.26"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,ti,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"placement",{get:function(){return D("placement",this._Pl,ti,this._isNull),k("Shape.placement",C,"1.10",O),this._Pl},set:function(e){this._Pl=e,w(this,"Placement",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rotation",{get:function(){return D("rotation",this._R,ti,this._isNull),this._R},set:function(e){this._R=e,w(this,"Rotation",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._To,ti,this._isNull),this._To},set:function(e){this._To=e,w(this,"Top",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return D("type",this._Ty,ti,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._V,ti,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,ti,this._isNull),this._W},set:function(e){this._W=e,w(this,"Width",e,G(2,"ExcelApiUndo","1.28"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"zOrderPosition",{get:function(){return D("zOrderPosition",this._Z,ti,this._isNull),this._Z},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","left","top","width","height","rotation","altTextTitle","altTextDescription","lockAspectRatio","placement","geometricShapeType","visible"],["fill","lineFormat"],["geometricShape","group","image","line","parentGroup","textFrame"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.copyTo=function(t){return k("Shape.copyTo",C,"1.10",O),P(e.Shape,this,"CopyTo",0,[t],!1,!0,"_GetShapeById",G(2,"ExcelApiUndo","1.28"))},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.28"),0)},n.prototype.getAsImage=function(e){return T(this,"GetAsImage",0,[e],G(2,"ExcelApiUndo","1.38"),0)},n.prototype.incrementLeft=function(e){T(this,"IncrementLeft",0,[e],G(2,"ExcelApiUndo","1.26"),0)},n.prototype.incrementRotation=function(e){T(this,"IncrementRotation",0,[e],G(2,"ExcelApiUndo","1.28"),0)},n.prototype.incrementTop=function(e){T(this,"IncrementTop",0,[e],G(2,"ExcelApiUndo","1.26"),0)},n.prototype.scaleHeight=function(e,t,n){T(this,"ScaleHeight",0,[e,t,n],G(2,"ExcelApiUndo","1.26"),0)},n.prototype.scaleWidth=function(e,t,n){T(this,"ScaleWidth",0,[e,t,n],G(2,"ExcelApiUndo","1.26"),0)},n.prototype.setZOrder=function(e){T(this,"SetZOrder",0,[e],G(2,"ExcelApiUndo","1.28"),0)},n.prototype._GetShapeById=function(t){return k("Shape._GetShapeById",C,"1.10",O),P(e.Shape,this,"_GetShapeById",1,[t],!1,!1,null,4)},n.prototype._RegisterActivatedEvent=function(){T(this,"_RegisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._RegisterDeactivatedEvent=function(){T(this,"_RegisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterActivatedEvent=function(){T(this,"_UnregisterActivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._UnregisterDeactivatedEvent=function(){T(this,"_UnregisterDeactivatedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AltTextDescription)||(this._A=n.AltTextDescription),N(n.AltTextTitle)||(this._Al=n.AltTextTitle),N(n.ConnectionSiteCount)||(this._C=n.ConnectionSiteCount),N(n.DisplayName)||(this._D=n.DisplayName),N(n.GeometricShapeType)||(this._Ge=n.GeometricShapeType),N(n.Height)||(this._H=n.Height),N(n.Id)||(this._I=n.Id),N(n.Left)||(this._L=n.Left),N(n.Level)||(this._Le=n.Level),N(n.LockAspectRatio)||(this._Lo=n.LockAspectRatio),N(n.Name)||(this._N=n.Name),N(n.Placement)||(this._Pl=n.Placement),N(n.Rotation)||(this._R=n.Rotation),N(n.Top)||(this._To=n.Top),N(n.Type)||(this._Ty=n.Type),N(n.Visible)||(this._V=n.Visible),N(n.Width)||(this._W=n.Width),N(n.ZOrderPosition)||(this._Z=n.ZOrderPosition),L(this,n,["fill","Fill","geometricShape","GeometricShape","group","Group","image","Image","line","Line","lineFormat","LineFormat","parentGroup","ParentGroup","textFrame","TextFrame"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},Object.defineProperty(n.prototype,"onActivated",{get:function(){var e=this;return this.m_activated||(this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:2101,registerFunc:function(){return e._RegisterActivatedEvent()},unregisterFunc:function(){return e._UnregisterActivatedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.shapeActivated,shapeId:e.shapeId,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_activated},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onDeactivated",{get:function(){var e=this;return this.m_deactivated||(this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:2102,registerFunc:function(){return e._RegisterDeactivatedEvent()},unregisterFunc:function(){return e._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={type:xi.shapeDeactivated,shapeId:e.shapeId,worksheetId:e.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deactivated},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{altTextDescription:this._A,altTextTitle:this._Al,connectionSiteCount:this._C,displayName:this._D,geometricShapeType:this._Ge,height:this._H,id:this._I,left:this._L,level:this._Le,lockAspectRatio:this._Lo,name:this._N,placement:this._Pl,rotation:this._R,top:this._To,type:this._Ty,visible:this._V,width:this._W,zOrderPosition:this._Z},{fill:this._F,lineFormat:this._Lin})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Shape=ni;var ri=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"GeometricShape"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["shape"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shape",{get:function(){return this._S||(this._S=S(e.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,"GeometricShape",this._isNull),this._I},enumerable:!0,configurable:!0}),n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),L(this,n,["shape","Shape"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{id:this._I},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.GeometricShape=ri;var oi="Image",ii=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Image"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","format"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["shape"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shape",{get:function(){return this._S||(this._S=S(e.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,oi,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return D("format",this._f,oi,this._isNull),this._f},enumerable:!0,configurable:!0}),n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),N(n.format)||(this._f=n.format),L(this,n,["shape","Shape"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{format:this._f,id:this._I},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Image=ii;var ai=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ShapeGroup"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["shapes","shape"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shape",{get:function(){return this._S||(this._S=S(e.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shapes",{get:function(){return this._Sh||(this._Sh=S(e.GroupShapeCollection,this,"Shapes",!0,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,"ShapeGroup",this._isNull),this._I},enumerable:!0,configurable:!0}),n.prototype.ungroup=function(){T(this,"Ungroup",0,[],G(2,"ExcelApiUndo","1.30"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Id)||(this._I=n.Id),L(this,n,["shape","Shape","shapes","Shapes"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{id:this._I},{shapes:this._Sh})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.ShapeGroup=ai;var si=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"GroupShapeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"GroupShapeCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return P(e.Shape,this,"GetItem",1,[t],!1,!1,null,4)},n.prototype.getItemAt=function(t){return P(e.Shape,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return k("GroupShapeCollection.getItemOrNullObject",C,"1.14",O),P(e.Shape,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._GetItem=function(t){return A(e.Shape,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Shape,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Shape,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Shape,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.GroupShapeCollection=si;var li="Line",ui=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Line"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","connectorType","beginArrowheadLength","beginArrowheadStyle","beginArrowheadWidth","endArrowheadLength","endArrowheadStyle","endArrowheadWidth","isBeginConnected","beginConnectedSite","isEndConnected","endConnectedSite"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","connectorType","BeginArrowheadLength","BeginArrowheadStyle","BeginArrowheadWidth","EndArrowheadLength","EndArrowheadStyle","EndArrowheadWidth","IsBeginConnected","BeginConnectedSite","IsEndConnected","EndConnectedSite"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["shape","beginConnectedShape","endConnectedShape"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"beginConnectedShape",{get:function(){return this._Begi||(this._Begi=S(e.Shape,this,"BeginConnectedShape",!1,4)),this._Begi},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"endConnectedShape",{get:function(){return this._EndC||(this._EndC=S(e.Shape,this,"EndConnectedShape",!1,4)),this._EndC},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shape",{get:function(){return this._S||(this._S=S(e.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"beginArrowheadLength",{get:function(){return D("beginArrowheadLength",this._B,li,this._isNull),this._B},set:function(e){this._B=e,w(this,"BeginArrowheadLength",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"beginArrowheadStyle",{get:function(){return D("beginArrowheadStyle",this._Be,li,this._isNull),this._Be},set:function(e){this._Be=e,w(this,"BeginArrowheadStyle",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"beginArrowheadWidth",{get:function(){return D("beginArrowheadWidth",this._Beg,li,this._isNull),this._Beg},set:function(e){this._Beg=e,w(this,"BeginArrowheadWidth",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"beginConnectedSite",{get:function(){return D("beginConnectedSite",this._Begin,li,this._isNull),this._Begin},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"endArrowheadLength",{get:function(){return D("endArrowheadLength",this._E,li,this._isNull),this._E},set:function(e){this._E=e,w(this,"EndArrowheadLength",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"endArrowheadStyle",{get:function(){return D("endArrowheadStyle",this._En,li,this._isNull),this._En},set:function(e){this._En=e,w(this,"EndArrowheadStyle",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"endArrowheadWidth",{get:function(){return D("endArrowheadWidth",this._End,li,this._isNull),this._End},set:function(e){this._End=e,w(this,"EndArrowheadWidth",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"endConnectedSite",{get:function(){return D("endConnectedSite",this._EndCo,li,this._isNull),this._EndCo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,li,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isBeginConnected",{get:function(){return D("isBeginConnected",this._Is,li,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEndConnected",{get:function(){return D("isEndConnected",this._IsE,li,this._isNull),this._IsE},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"connectorType",{get:function(){return D("connectorType",this._c,li,this._isNull),this._c},set:function(e){this._c=e,w(this,"connectorType",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["connectorType","beginArrowheadLength","beginArrowheadStyle","beginArrowheadWidth","endArrowheadLength","endArrowheadStyle","endArrowheadWidth"],[],["beginConnectedShape","endConnectedShape","shape"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.connectBeginShape=function(e,t){T(this,"ConnectBeginShape",0,[e,t],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.connectEndShape=function(e,t){T(this,"ConnectEndShape",0,[e,t],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.disconnectBeginShape=function(){T(this,"DisconnectBeginShape",0,[],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.disconnectEndShape=function(){T(this,"DisconnectEndShape",0,[],G(2,"ExcelApiUndo","1.40"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.BeginArrowheadLength)||(this._B=n.BeginArrowheadLength),N(n.BeginArrowheadStyle)||(this._Be=n.BeginArrowheadStyle),N(n.BeginArrowheadWidth)||(this._Beg=n.BeginArrowheadWidth),N(n.BeginConnectedSite)||(this._Begin=n.BeginConnectedSite),N(n.EndArrowheadLength)||(this._E=n.EndArrowheadLength),N(n.EndArrowheadStyle)||(this._En=n.EndArrowheadStyle),N(n.EndArrowheadWidth)||(this._End=n.EndArrowheadWidth),N(n.EndConnectedSite)||(this._EndCo=n.EndConnectedSite),N(n.Id)||(this._I=n.Id),N(n.IsBeginConnected)||(this._Is=n.IsBeginConnected),N(n.IsEndConnected)||(this._IsE=n.IsEndConnected),N(n.connectorType)||(this._c=n.connectorType),L(this,n,["beginConnectedShape","BeginConnectedShape","endConnectedShape","EndConnectedShape","shape","Shape"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{beginArrowheadLength:this._B,beginArrowheadStyle:this._Be,beginArrowheadWidth:this._Beg,beginConnectedSite:this._Begin,connectorType:this._c,endArrowheadLength:this._E,endArrowheadStyle:this._En,endArrowheadWidth:this._End,endConnectedSite:this._EndCo,id:this._I,isBeginConnected:this._Is,isEndConnected:this._IsE},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Line=ui;var ci="ShapeFill",pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ShapeFill"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["foregroundColor","type","transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ForegroundColor","Type","Transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"foregroundColor",{get:function(){return D("foregroundColor",this._F,ci,this._isNull),this._F},set:function(e){this._F=e,w(this,"ForegroundColor",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transparency",{get:function(){return D("transparency",this._T,ci,this._isNull),this._T},set:function(e){this._T=e,w(this,"Transparency",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return D("type",this._Ty,ci,this._isNull),this._Ty},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["foregroundColor","transparency"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.clear=function(){T(this,"Clear",0,[],G(2,"ExcelApiUndo","1.30"),0)},t.prototype.setSolidColor=function(e){T(this,"SetSolidColor",0,[e],G(2,"ExcelApiUndo","1.30"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.ForegroundColor)||(this._F=n.ForegroundColor),N(n.Transparency)||(this._T=n.Transparency),N(n.Type)||(this._Ty=n.Type)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{foregroundColor:this._F,transparency:this._T,type:this._Ty},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ShapeFill=pi;var fi="ShapeLineFormat",hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ShapeLineFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["visible","color","style","weight","dashStyle","transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Visible","Color","Style","Weight","DashStyle","Transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,fi,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.29"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashStyle",{get:function(){return D("dashStyle",this._D,fi,this._isNull),this._D},set:function(e){this._D=e,w(this,"DashStyle",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return D("style",this._S,fi,this._isNull),this._S},set:function(e){this._S=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transparency",{get:function(){return D("transparency",this._T,fi,this._isNull),this._T},set:function(e){this._T=e,w(this,"Transparency",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return D("visible",this._V,fi,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return D("weight",this._W,fi,this._isNull),this._W},set:function(e){this._W=e,w(this,"Weight",e,G(2,"ExcelApiUndo","1.30"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["visible","color","style","weight","dashStyle","transparency"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Color)||(this._C=n.Color),N(n.DashStyle)||(this._D=n.DashStyle),N(n.Style)||(this._S=n.Style),N(n.Transparency)||(this._T=n.Transparency),N(n.Visible)||(this._V=n.Visible),N(n.Weight)||(this._W=n.Weight)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{color:this._C,dashStyle:this._D,style:this._S,transparency:this._T,visible:this._V,weight:this._W},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ShapeLineFormat=hi;var di="TextFrame",yi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TextFrame"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["leftMargin","rightMargin","topMargin","bottomMargin","horizontalAlignment","horizontalOverflow","verticalAlignment","verticalOverflow","orientation","readingOrder","hasText","autoSizeSetting"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["LeftMargin","RightMargin","TopMargin","BottomMargin","HorizontalAlignment","HorizontalOverflow","VerticalAlignment","VerticalOverflow","Orientation","ReadingOrder","HasText","AutoSizeSetting"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["textRange"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textRange",{get:function(){return this._T||(this._T=S(e.TextRange,this,"TextRange",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoSizeSetting",{get:function(){return D("autoSizeSetting",this._A,di,this._isNull),this._A},set:function(e){this._A=e,w(this,"AutoSizeSetting",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bottomMargin",{get:function(){return D("bottomMargin",this._B,di,this._isNull),this._B},set:function(e){this._B=e,w(this,"BottomMargin",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasText",{get:function(){return D("hasText",this._H,di,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalAlignment",{get:function(){return D("horizontalAlignment",this._Ho,di,this._isNull),this._Ho},set:function(e){this._Ho=e,w(this,"HorizontalAlignment",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalOverflow",{get:function(){return D("horizontalOverflow",this._Hor,di,this._isNull),this._Hor},set:function(e){this._Hor=e,w(this,"HorizontalOverflow",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"leftMargin",{get:function(){return D("leftMargin",this._L,di,this._isNull),this._L},set:function(e){this._L=e,w(this,"LeftMargin",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"orientation",{get:function(){return D("orientation",this._O,di,this._isNull),this._O},set:function(e){this._O=e,w(this,"Orientation",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readingOrder",{get:function(){return D("readingOrder",this._R,di,this._isNull),this._R},set:function(e){this._R=e,w(this,"ReadingOrder",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rightMargin",{get:function(){return D("rightMargin",this._Ri,di,this._isNull),this._Ri},set:function(e){this._Ri=e,w(this,"RightMargin",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"topMargin",{get:function(){return D("topMargin",this._To,di,this._isNull),this._To},set:function(e){this._To=e,w(this,"TopMargin",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return D("verticalAlignment",this._V,di,this._isNull),this._V},set:function(e){this._V=e,w(this,"VerticalAlignment",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalOverflow",{get:function(){return D("verticalOverflow",this._Ve,di,this._isNull),this._Ve},set:function(e){this._Ve=e,w(this,"VerticalOverflow",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["leftMargin","rightMargin","topMargin","bottomMargin","horizontalAlignment","horizontalOverflow","verticalAlignment","verticalOverflow","orientation","readingOrder","autoSizeSetting"],[],["textRange"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.deleteText=function(){T(this,"DeleteText",0,[],G(2,"ExcelApiUndo","1.48"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AutoSizeSetting)||(this._A=n.AutoSizeSetting),N(n.BottomMargin)||(this._B=n.BottomMargin),N(n.HasText)||(this._H=n.HasText),N(n.HorizontalAlignment)||(this._Ho=n.HorizontalAlignment),N(n.HorizontalOverflow)||(this._Hor=n.HorizontalOverflow),N(n.LeftMargin)||(this._L=n.LeftMargin),N(n.Orientation)||(this._O=n.Orientation),N(n.ReadingOrder)||(this._R=n.ReadingOrder),N(n.RightMargin)||(this._Ri=n.RightMargin),N(n.TopMargin)||(this._To=n.TopMargin),N(n.VerticalAlignment)||(this._V=n.VerticalAlignment),N(n.VerticalOverflow)||(this._Ve=n.VerticalOverflow),L(this,n,["textRange","TextRange"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{autoSizeSetting:this._A,bottomMargin:this._B,hasText:this._H,horizontalAlignment:this._Ho,horizontalOverflow:this._Hor,leftMargin:this._L,orientation:this._O,readingOrder:this._R,rightMargin:this._Ri,topMargin:this._To,verticalAlignment:this._V,verticalOverflow:this._Ve},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.TextFrame=yi;var mi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TextRange"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["text"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Text"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["font"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._F||(this._F=S(e.ShapeFont,this,"Font",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return D("text",this._T,"TextRange",this._isNull),this._T},set:function(e){this._T=e,w(this,"Text",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["text"],["font"],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.getSubstring=function(t,n){return P(e.TextRange,this,"GetSubstring",0,[t,n],!1,!1,null,G(2,"ExcelApiUndo","1.40"))},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Text)||(this._T=n.Text),L(this,n,["font","Font"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{text:this._T},{font:this._F})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.TextRange=mi;var gi="ShapeFont",_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ShapeFont"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["size","name","color","bold","italic","underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Size","Name","Color","Bold","Italic","Underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return D("bold",this._B,gi,this._isNull),this._B},set:function(e){this._B=e,w(this,"Bold",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return D("color",this._C,gi,this._isNull),this._C},set:function(e){this._C=e,w(this,"Color",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return D("italic",this._I,gi,this._isNull),this._I},set:function(e){this._I=e,w(this,"Italic",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return D("name",this._N,gi,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return D("size",this._S,gi,this._isNull),this._S},set:function(e){this._S=e,w(this,"Size",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return D("underline",this._U,gi,this._isNull),this._U},set:function(e){this._U=e,w(this,"Underline",e,G(2,"ExcelApiUndo","1.48"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["size","name","color","bold","italic","underline"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Bold)||(this._B=n.Bold),N(n.Color)||(this._C=n.Color),N(n.Italic)||(this._I=n.Italic),N(n.Name)||(this._N=n.Name),N(n.Size)||(this._S=n.Size),N(n.Underline)||(this._U=n.Underline)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{bold:this._B,color:this._C,italic:this._I,name:this._N,size:this._S,underline:this._U},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.ShapeFont=_i;var bi="Slicer",vi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Slicer"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","name","caption","left","top","width","height","isFilterCleared","style","sortBy"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","Caption","Left","Top","Width","Height","IsFilterCleared","Style","SortBy"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["slicerItems","worksheet"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"slicerItems",{get:function(){return this._S||(this._S=S(e.SlicerItemCollection,this,"SlicerItems",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"worksheet",{get:function(){return this._Wo||(this._Wo=S(e.Worksheet,this,"Worksheet",!1,4)),this._Wo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"caption",{get:function(){return D("caption",this._C,bi,this._isNull),this._C},set:function(e){this._C=e,w(this,"Caption",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,bi,this._isNull),this._H},set:function(e){this._H=e,w(this,"Height",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return D("id",this._I,bi,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isFilterCleared",{get:function(){return D("isFilterCleared",this._Is,bi,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return D("left",this._L,bi,this._isNull),this._L},set:function(e){this._L=e,w(this,"Left",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,bi,this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndoDesktopOnly","1.2"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sortBy",{get:function(){return D("sortBy",this._So,bi,this._isNull),this._So},set:function(e){this._So=e,w(this,"SortBy",e,G(2,"ExcelApiUndo","1.46"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"style",{get:function(){return D("style",this._St,bi,this._isNull),this._St},set:function(e){this._St=e,w(this,"Style",e,G(2,"ExcelApiUndo","1.46"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return D("top",this._T,bi,this._isNull),this._T},set:function(e){this._T=e,w(this,"Top",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,bi,this._isNull),this._W},set:function(e){this._W=e,w(this,"Width",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["name","caption","left","top","width","height","style","sortBy"],["worksheet"],["slicerItems"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.clearFilters=function(){T(this,"ClearFilters",0,[],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.46"),0)},n.prototype.getSelectedItems=function(){return T(this,"GetSelectedItems",0,[],G(2,"ExcelApiUndo","1.40"),0)},n.prototype.selectItems=function(e){T(this,"SelectItems",0,[e],G(2,"ExcelApiUndo","1.40"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Caption)||(this._C=n.Caption),N(n.Height)||(this._H=n.Height),N(n.Id)||(this._I=n.Id),N(n.IsFilterCleared)||(this._Is=n.IsFilterCleared),N(n.Left)||(this._L=n.Left),N(n.Name)||(this._N=n.Name),N(n.SortBy)||(this._So=n.SortBy),N(n.Style)||(this._St=n.Style),N(n.Top)||(this._T=n.Top),N(n.Width)||(this._W=n.Width),L(this,n,["slicerItems","SlicerItems","worksheet","Worksheet"])}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{caption:this._C,height:this._H,id:this._I,isFilterCleared:this._Is,left:this._L,name:this._N,sortBy:this._So,style:this._St,top:this._T,width:this._W},{slicerItems:this._S,worksheet:this._Wo})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Slicer=vi;var Oi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"SlicerCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"SlicerCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n,r){return P(e.Slicer,this,"Add",0,[t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.46"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.Slicer,this,[t])},n.prototype.getItemAt=function(t){return P(e.Slicer,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return P(e.Slicer,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Slicer,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Slicer,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Slicer,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.SlicerCollection=Oi;var Ci="SlicerItem",Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"SlicerItem"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["key","name","isSelected","hasData"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Key","Name","IsSelected","HasData"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasData",{get:function(){return D("hasData",this._H,Ci,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSelected",{get:function(){return D("isSelected",this._I,Ci,this._isNull),this._I},set:function(e){this._I=e,w(this,"IsSelected",e,G(2,"ExcelApiUndo","1.40"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return D("key",this._K,Ci,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return D("name",this._N,Ci,this._isNull),this._N},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["isSelected"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.HasData)||(this._H=n.HasData),N(n.IsSelected)||(this._I=n.IsSelected),N(n.Key)||(this._K=n.Key),N(n.Name)||(this._N=n.Name)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{hasData:this._H,isSelected:this._I,key:this._K,name:this._N},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.SlicerItem=Si;var Pi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"SlicerItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"SlicerItemCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.SlicerItem,this,[t])},n.prototype.getItemAt=function(t){return P(e.SlicerItem,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return P(e.SlicerItem,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.SlicerItem,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.SlicerItem,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.SlicerItem,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.SlicerItemCollection=Pi;var Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"Ribbon"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["activeTab"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ActiveTab"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTab",{get:function(){return D("activeTab",this._A,"Ribbon",this._isNull),this._A},set:function(e){this._A=e,w(this,"ActiveTab",e,G(2,"ExcelApiUndo","1.33"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["activeTab"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.executeCommand=function(e,t){T(this,"ExecuteCommand",0,[e,t],0,0)},t.prototype.showTeachingCallout=function(e,t,n){T(this,"ShowTeachingCallout",0,[e,t,n],G(2,"ExcelApiUndo","1.33"),0)},t.prototype._RegisterCommandExecutedEvent=function(){T(this,"_RegisterCommandExecutedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},t.prototype._UnregisterCommandExecutedEvent=function(){T(this,"_UnregisterCommandExecutedEvent",0,[],G(2,"ExcelApiUndo","1.19"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.ActiveTab)||(this._A=n.ActiveTab)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},Object.defineProperty(t.prototype,"onCommandExecuted",{get:function(){var e=this;return this.m_commandExecuted||(this.m_commandExecuted=new OfficeExtension.GenericEventHandlers(this.context,this,"CommandExecuted",{eventType:2300,registerFunc:function(){return e._RegisterCommandExecutedEvent()},unregisterFunc:function(){return e._UnregisterCommandExecutedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.ribbonCommandExecuted,buttonId:e.buttonId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_commandExecuted},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return M(this,{activeTab:this._A},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.Ribbon=Ai;var Ei="LinkedEntityDataDomain",Ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"LinkedEntityDataDomain"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["dataProvider","id","lastRefreshed","loadFunctionId","name","periodicRefreshInterval","refreshErrors","refreshMode","refreshModeWarnings","serviceId","supportedRefreshModes"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["DataProvider","Id","LastRefreshed","LoadFunctionId","Name","PeriodicRefreshInterval","RefreshErrors","RefreshMode","RefreshModeWarnings","ServiceId","SupportedRefreshModes"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataProvider",{get:function(){return D("dataProvider",this._D,Ei,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return D("id",this._I,Ei,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastRefreshed",{get:function(){return D("lastRefreshed",this._L,Ei,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadFunctionId",{get:function(){return D("loadFunctionId",this._Lo,Ei,this._isNull),this._Lo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return D("name",this._N,Ei,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"periodicRefreshInterval",{get:function(){return D("periodicRefreshInterval",this._P,Ei,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"refreshErrors",{get:function(){return D("refreshErrors",this._R,Ei,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"refreshMode",{get:function(){return D("refreshMode",this._Re,Ei,this._isNull),this._Re},set:function(e){this._Re=e,w(this,"RefreshMode",e,2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"refreshModeWarnings",{get:function(){return D("refreshModeWarnings",this._Ref,Ei,this._isNull),this._Ref},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serviceId",{get:function(){return D("serviceId",this._S,Ei,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"supportedRefreshModes",{get:function(){return D("supportedRefreshModes",this._Su,Ei,this._isNull),this._Su},enumerable:!0,configurable:!0}),t.prototype.delete=function(){T(this,"Delete",0,[],2,0)},t.prototype.refresh=function(){T(this,"Refresh",0,[],2,0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.DataProvider)||(this._D=n.DataProvider),N(n.Id)||(this._I=n.Id),N(n.LastRefreshed)||(this._L=B(n.LastRefreshed)),N(n.LoadFunctionId)||(this._Lo=n.LoadFunctionId),N(n.Name)||(this._N=n.Name),N(n.PeriodicRefreshInterval)||(this._P=n.PeriodicRefreshInterval),N(n.RefreshErrors)||(this._R=n.RefreshErrors),N(n.RefreshMode)||(this._Re=n.RefreshMode),N(n.RefreshModeWarnings)||(this._Ref=n.RefreshModeWarnings),N(n.ServiceId)||(this._S=n.ServiceId),N(n.SupportedRefreshModes)||(this._Su=n.SupportedRefreshModes)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),F(t)||N(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){if(e.prototype._handleRetrieveResult.call(this,t,n),!F(t)){var r=t;N(r.LastRefreshed)||(r.lastRefreshed=B(r.lastRefreshed)),W(this,t,n)}},t.prototype.toJSON=function(){return M(this,{},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.LinkedEntityDataDomain=Ri;var xi,Ti=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"LinkedEntityDataDomainCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"LinkedEntityDataDomainCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(e){T(this,"Add",0,[e],2,0)},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.LinkedEntityDataDomain,this,[t])},n.prototype.getItemAt=function(t){return P(e.LinkedEntityDataDomain,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemByName=function(t){return P(e.LinkedEntityDataDomain,this,"GetItemByName",1,[t],!1,!1,null,4)},n.prototype.getItemByNameOrNullObject=function(t){return P(e.LinkedEntityDataDomain,this,"GetItemByNameOrNullObject",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return P(e.LinkedEntityDataDomain,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype.refreshAll=function(){T(this,"RefreshAll",0,[],2,0)},n.prototype._RegisterEventLinkedEntityDataDomainAdded=function(){T(this,"_RegisterEventLinkedEntityDataDomainAdded",1,[],4,0)},n.prototype._RegisterEventRefreshCompleted=function(){T(this,"_RegisterEventRefreshCompleted",1,[],4,0)},n.prototype._RegisterEventRefreshModeChanged=function(){T(this,"_RegisterEventRefreshModeChanged",1,[],4,0)},n.prototype._UnregisterEventLinkedEntityDataDomainAdded=function(){T(this,"_UnregisterEventLinkedEntityDataDomainAdded",1,[],4,0)},n.prototype._UnregisterEventRefreshCompleted=function(){T(this,"_UnregisterEventRefreshCompleted",1,[],4,0)},n.prototype._UnregisterEventRefreshModeChanged=function(){T(this,"_UnregisterEventRefreshModeChanged",1,[],4,0)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.LinkedEntityDataDomain,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.LinkedEntityDataDomain,!0,o,t,n)}))},Object.defineProperty(n.prototype,"onLinkedEntityDataDomainAdded",{get:function(){var e=this;return this.m_linkedEntityDataDomainAdded||(this.m_linkedEntityDataDomainAdded=new OfficeExtension.GenericEventHandlers(this.context,this,"LinkedEntityDataDomainAdded",{eventType:3600,registerFunc:function(){return e._RegisterEventLinkedEntityDataDomainAdded()},unregisterFunc:function(){return e._UnregisterEventLinkedEntityDataDomainAdded()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.linkedEntityDataDomainLinkedEntityDataDomainAdded,id:e.id,serviceId:e.serviceId,source:e.source};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_linkedEntityDataDomainAdded},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onRefreshCompleted",{get:function(){var e=this;return this.m_refreshCompleted||(this.m_refreshCompleted=new OfficeExtension.GenericEventHandlers(this.context,this,"RefreshCompleted",{eventType:3601,registerFunc:function(){return e._RegisterEventRefreshCompleted()},unregisterFunc:function(){return e._UnregisterEventRefreshCompleted()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.linkedEntityDataDomainRefreshCompleted,errors:e.errors,id:e.id,refreshed:e.refreshed,serviceId:e.serviceId,source:e.source};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_refreshCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onRefreshModeChanged",{get:function(){var e=this;return this.m_refreshModeChanged||(this.m_refreshModeChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"RefreshModeChanged",{eventType:3602,registerFunc:function(){return e._RegisterEventRefreshModeChanged()},unregisterFunc:function(){return e._UnregisterEventRefreshModeChanged()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(e){var t={type:xi.linkedEntityDataDomainRefreshModeChanged,id:e.id,refreshMode:e.refreshMode,serviceId:e.serviceId,source:e.source};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_refreshModeChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.LinkedEntityDataDomain,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.LinkedEntityDataDomainCollection=Ti,function(e){e.unknown="Unknown",e.manual="Manual",e.onLoad="OnLoad",e.periodic="Periodic"}(e.LinkedEntityDataDomainRefreshMode||(e.LinkedEntityDataDomainRefreshMode={})),function(e){e.invalid="Invalid",e.category="Category",e.value="Value",e.series="Series"}(e.AxisType||(e.AxisType={})),function(e){e.primary="Primary",e.secondary="Secondary"}(e.AxisGroup||(e.AxisGroup={})),function(e){e.linear="Linear",e.logarithmic="Logarithmic"}(e.AxisScaleType||(e.AxisScaleType={})),function(e){e.automatic="Automatic",e.maximum="Maximum",e.minimum="Minimum",e.custom="Custom"}(e.AxisCrosses||(e.AxisCrosses={})),function(e){e.none="None",e.cross="Cross",e.inside="Inside",e.outside="Outside"}(e.AxisTickMark||(e.AxisTickMark={})),function(e){e.nextToAxis="NextToAxis",e.high="High",e.low="Low",e.none="None"}(e.AxisTickLabelPosition||(e.AxisTickLabelPosition={})),function(e){e.linear="Linear",e.exponential="Exponential",e.logarithmic="Logarithmic",e.movingAverage="MovingAverage",e.polynomial="Polynomial",e.power="Power"}(e.TrendlineType||(e.TrendlineType={})),function(e){e.invalid="Invalid",e.category="Category",e.value="Value",e.series="Series"}(e.ChartAxisType||(e.ChartAxisType={})),function(e){e.primary="Primary",e.secondary="Secondary"}(e.ChartAxisGroup||(e.ChartAxisGroup={})),function(e){e.linear="Linear",e.logarithmic="Logarithmic"}(e.ChartAxisScaleType||(e.ChartAxisScaleType={})),function(e){e.automatic="Automatic",e.maximum="Maximum",e.minimum="Minimum",e.custom="Custom"}(e.ChartAxisPosition||(e.ChartAxisPosition={})),function(e){e.none="None",e.cross="Cross",e.inside="Inside",e.outside="Outside"}(e.ChartAxisTickMark||(e.ChartAxisTickMark={})),function(e){e.done="Done",e.calculating="Calculating",e.pending="Pending"}(e.CalculationState||(e.CalculationState={})),function(e){e.nextToAxis="NextToAxis",e.high="High",e.low="Low",e.none="None"}(e.ChartAxisTickLabelPosition||(e.ChartAxisTickLabelPosition={})),function(e){e.none="None",e.hundreds="Hundreds",e.thousands="Thousands",e.tenThousands="TenThousands",e.hundredThousands="HundredThousands",e.millions="Millions",e.tenMillions="TenMillions",e.hundredMillions="HundredMillions",e.billions="Billions",e.trillions="Trillions",e.custom="Custom"}(e.ChartAxisDisplayUnit||(e.ChartAxisDisplayUnit={})),function(e){e.days="Days",e.months="Months",e.years="Years"}(e.ChartAxisTimeUnit||(e.ChartAxisTimeUnit={})),function(e){e.inclusive="Inclusive",e.exclusive="Exclusive"}(e.ChartBoxQuartileCalculation||(e.ChartBoxQuartileCalculation={})),function(e){e.automatic="Automatic",e.textAxis="TextAxis",e.dateAxis="DateAxis"}(e.ChartAxisCategoryType||(e.ChartAxisCategoryType={})),function(e){e.category="Category",e.auto="Auto",e.binWidth="BinWidth",e.binCount="BinCount"}(e.ChartBinType||(e.ChartBinType={})),function(e){e.none="None",e.continuous="Continuous",e.dash="Dash",e.dashDot="DashDot",e.dashDotDot="DashDotDot",e.dot="Dot",e.grey25="Grey25",e.grey50="Grey50",e.grey75="Grey75",e.automatic="Automatic",e.roundDot="RoundDot"}(e.ChartLineStyle||(e.ChartLineStyle={})),function(e){e.invalid="Invalid",e.none="None",e.center="Center",e.insideEnd="InsideEnd",e.insideBase="InsideBase",e.outsideEnd="OutsideEnd",e.left="Left",e.right="Right",e.top="Top",e.bottom="Bottom",e.bestFit="BestFit",e.callout="Callout"}(e.ChartDataLabelPosition||(e.ChartDataLabelPosition={})),function(e){e.both="Both",e.minusValues="MinusValues",e.plusValues="PlusValues"}(e.ChartErrorBarsInclude||(e.ChartErrorBarsInclude={})),function(e){e.fixedValue="FixedValue",e.percent="Percent",e.stDev="StDev",e.stError="StError",e.custom="Custom"}(e.ChartErrorBarsType||(e.ChartErrorBarsType={})),function(e){e.automatic="Automatic",e.dataOnly="DataOnly",e.city="City",e.county="County",e.state="State",e.country="Country",e.continent="Continent",e.world="World"}(e.ChartMapAreaLevel||(e.ChartMapAreaLevel={})),function(e){e.twoPhaseColor="TwoPhaseColor",e.threePhaseColor="ThreePhaseColor"}(e.ChartGradientStyle||(e.ChartGradientStyle={})),function(e){e.extremeValue="ExtremeValue",e.number="Number",e.percent="Percent"}(e.ChartGradientStyleType||(e.ChartGradientStyleType={})),function(e){e.automatic="Automatic",e.top="Top",e.bottom="Bottom",e.left="Left",e.right="Right"}(e.ChartTitlePosition||(e.ChartTitlePosition={})),function(e){e.invalid="Invalid",e.top="Top",e.bottom="Bottom",e.left="Left",e.right="Right",e.corner="Corner",e.custom="Custom"}(e.ChartLegendPosition||(e.ChartLegendPosition={})),function(e){e.invalid="Invalid",e.automatic="Automatic",e.none="None",e.square="Square",e.diamond="Diamond",e.triangle="Triangle",e.x="X",e.star="Star",e.dot="Dot",e.dash="Dash",e.circle="Circle",e.plus="Plus",e.picture="Picture"}(e.ChartMarkerStyle||(e.ChartMarkerStyle={})),function(e){e.automatic="Automatic",e.custom="Custom"}(e.ChartPlotAreaPosition||(e.ChartPlotAreaPosition={})),function(e){e.none="None",e.bestFit="BestFit",e.showAll="ShowAll"}(e.ChartMapLabelStrategy||(e.ChartMapLabelStrategy={})),function(e){e.automatic="Automatic",e.mercator="Mercator",e.miller="Miller",e.robinson="Robinson",e.albers="Albers"}(e.ChartMapProjectionType||(e.ChartMapProjectionType={})),function(e){e.none="None",e.banner="Banner",e.overlapping="Overlapping"}(e.ChartParentLabelStrategy||(e.ChartParentLabelStrategy={})),function(e){e.auto="Auto",e.columns="Columns",e.rows="Rows"}(e.ChartSeriesBy||(e.ChartSeriesBy={})),function(e){e.localRange="LocalRange",e.externalRange="ExternalRange",e.list="List",e.unknown="Unknown"}(e.ChartDataSourceType||(e.ChartDataSourceType={})),function(e){e.center="Center",e.left="Left",e.right="Right",e.justify="Justify",e.distributed="Distributed"}(e.ChartTextHorizontalAlignment||(e.ChartTextHorizontalAlignment={})),function(e){e.center="Center",e.bottom="Bottom",e.top="Top",e.justify="Justify",e.distributed="Distributed"}(e.ChartTextVerticalAlignment||(e.ChartTextVerticalAlignment={})),function(e){e.center="Center",e.left="Left",e.right="Right"}(e.ChartTickLabelAlignment||(e.ChartTickLabelAlignment={})),function(e){e.invalid="Invalid",e.columnClustered="ColumnClustered",e.columnStacked="ColumnStacked",e.columnStacked100="ColumnStacked100",e._3DColumnClustered="3DColumnClustered",e._3DColumnStacked="3DColumnStacked",e._3DColumnStacked100="3DColumnStacked100",e.barClustered="BarClustered",e.barStacked="BarStacked",e.barStacked100="BarStacked100",e._3DBarClustered="3DBarClustered",e._3DBarStacked="3DBarStacked",e._3DBarStacked100="3DBarStacked100",e.lineStacked="LineStacked",e.lineStacked100="LineStacked100",e.lineMarkers="LineMarkers",e.lineMarkersStacked="LineMarkersStacked",e.lineMarkersStacked100="LineMarkersStacked100",e.pieOfPie="PieOfPie",e.pieExploded="PieExploded",e._3DPieExploded="3DPieExploded",e.barOfPie="BarOfPie",e.xyscatterSmooth="XYScatterSmooth",e.xyscatterSmoothNoMarkers="XYScatterSmoothNoMarkers",e.xyscatterLines="XYScatterLines",e.xyscatterLinesNoMarkers="XYScatterLinesNoMarkers",e.areaStacked="AreaStacked",e.areaStacked100="AreaStacked100",e._3DAreaStacked="3DAreaStacked",e._3DAreaStacked100="3DAreaStacked100",e.doughnutExploded="DoughnutExploded",e.radarMarkers="RadarMarkers",e.radarFilled="RadarFilled",e.surface="Surface",e.surfaceWireframe="SurfaceWireframe",e.surfaceTopView="SurfaceTopView",e.surfaceTopViewWireframe="SurfaceTopViewWireframe",e.bubble="Bubble",e.bubble3DEffect="Bubble3DEffect",e.stockHLC="StockHLC",e.stockOHLC="StockOHLC",e.stockVHLC="StockVHLC",e.stockVOHLC="StockVOHLC",e.cylinderColClustered="CylinderColClustered",e.cylinderColStacked="CylinderColStacked",e.cylinderColStacked100="CylinderColStacked100",e.cylinderBarClustered="CylinderBarClustered",e.cylinderBarStacked="CylinderBarStacked",e.cylinderBarStacked100="CylinderBarStacked100",e.cylinderCol="CylinderCol",e.coneColClustered="ConeColClustered",e.coneColStacked="ConeColStacked",e.coneColStacked100="ConeColStacked100",e.coneBarClustered="ConeBarClustered",e.coneBarStacked="ConeBarStacked",e.coneBarStacked100="ConeBarStacked100",e.coneCol="ConeCol",e.pyramidColClustered="PyramidColClustered",e.pyramidColStacked="PyramidColStacked",e.pyramidColStacked100="PyramidColStacked100",e.pyramidBarClustered="PyramidBarClustered",e.pyramidBarStacked="PyramidBarStacked",e.pyramidBarStacked100="PyramidBarStacked100",e.pyramidCol="PyramidCol",e._3DColumn="3DColumn",e.line="Line",e._3DLine="3DLine",e._3DPie="3DPie",e.pie="Pie",e.xyscatter="XYScatter",e._3DArea="3DArea",e.area="Area",e.doughnut="Doughnut",e.radar="Radar",e.histogram="Histogram",e.boxwhisker="Boxwhisker",e.pareto="Pareto",e.regionMap="RegionMap",e.treemap="Treemap",e.waterfall="Waterfall",e.sunburst="Sunburst",e.funnel="Funnel"}(e.ChartType||(e.ChartType={})),function(e){e.none="None",e.single="Single"}(e.ChartUnderlineStyle||(e.ChartUnderlineStyle={})),function(e){e.notPlotted="NotPlotted",e.zero="Zero",e.interplotted="Interplotted"}(e.ChartDisplayBlanksAs||(e.ChartDisplayBlanksAs={})),function(e){e.rows="Rows",e.columns="Columns"}(e.ChartPlotBy||(e.ChartPlotBy={})),function(e){e.splitByPosition="SplitByPosition",e.splitByValue="SplitByValue",e.splitByPercentValue="SplitByPercentValue",e.splitByCustomSplit="SplitByCustomSplit"}(e.ChartSplitType||(e.ChartSplitType={})),function(e){e.colorfulPalette1="ColorfulPalette1",e.colorfulPalette2="ColorfulPalette2",e.colorfulPalette3="ColorfulPalette3",e.colorfulPalette4="ColorfulPalette4",e.monochromaticPalette1="MonochromaticPalette1",e.monochromaticPalette2="MonochromaticPalette2",e.monochromaticPalette3="MonochromaticPalette3",e.monochromaticPalette4="MonochromaticPalette4",e.monochromaticPalette5="MonochromaticPalette5",e.monochromaticPalette6="MonochromaticPalette6",e.monochromaticPalette7="MonochromaticPalette7",e.monochromaticPalette8="MonochromaticPalette8",e.monochromaticPalette9="MonochromaticPalette9",e.monochromaticPalette10="MonochromaticPalette10",e.monochromaticPalette11="MonochromaticPalette11",e.monochromaticPalette12="MonochromaticPalette12",e.monochromaticPalette13="MonochromaticPalette13"}(e.ChartColorScheme||(e.ChartColorScheme={})),function(e){e.linear="Linear",e.exponential="Exponential",e.logarithmic="Logarithmic",e.movingAverage="MovingAverage",e.polynomial="Polynomial",e.power="Power"}(e.ChartTrendlineType||(e.ChartTrendlineType={})),function(e){e.bringToFront="BringToFront",e.bringForward="BringForward",e.sendToBack="SendToBack",e.sendBackward="SendBackward"}(e.ShapeZOrder||(e.ShapeZOrder={})),function(e){e.unsupported="Unsupported",e.image="Image",e.geometricShape="GeometricShape",e.group="Group",e.line="Line"}(e.ShapeType||(e.ShapeType={})),function(e){e.currentSize="CurrentSize",e.originalSize="OriginalSize"}(e.ShapeScaleType||(e.ShapeScaleType={})),function(e){e.scaleFromTopLeft="ScaleFromTopLeft",e.scaleFromMiddle="ScaleFromMiddle",e.scaleFromBottomRight="ScaleFromBottomRight"}(e.ShapeScaleFrom||(e.ShapeScaleFrom={})),function(e){e.noFill="NoFill",e.solid="Solid",e.gradient="Gradient",e.pattern="Pattern",e.pictureAndTexture="PictureAndTexture",e.mixed="Mixed"}(e.ShapeFillType||(e.ShapeFillType={})),function(e){e.none="None",e.single="Single",e.double="Double",e.heavy="Heavy",e.dotted="Dotted",e.dottedHeavy="DottedHeavy",e.dash="Dash",e.dashHeavy="DashHeavy",e.dashLong="DashLong",e.dashLongHeavy="DashLongHeavy",e.dotDash="DotDash",e.dotDashHeavy="DotDashHeavy",e.dotDotDash="DotDotDash",e.dotDotDashHeavy="DotDotDashHeavy",e.wavy="Wavy",e.wavyHeavy="WavyHeavy",e.wavyDouble="WavyDouble"}(e.ShapeFontUnderlineStyle||(e.ShapeFontUnderlineStyle={})),function(e){e.unknown="UNKNOWN",e.bmp="BMP",e.jpeg="JPEG",e.gif="GIF",e.png="PNG",e.svg="SVG"}(e.PictureFormat||(e.PictureFormat={})),function(e){e.single="Single",e.thickBetweenThin="ThickBetweenThin",e.thickThin="ThickThin",e.thinThick="ThinThick",e.thinThin="ThinThin"}(e.ShapeLineStyle||(e.ShapeLineStyle={})),function(e){e.dash="Dash",e.dashDot="DashDot",e.dashDotDot="DashDotDot",e.longDash="LongDash",e.longDashDot="LongDashDot",e.roundDot="RoundDot",e.solid="Solid",e.squareDot="SquareDot",e.longDashDotDot="LongDashDotDot",e.systemDash="SystemDash",e.systemDot="SystemDot",e.systemDashDot="SystemDashDot"}(e.ShapeLineDashStyle||(e.ShapeLineDashStyle={})),function(e){e.short="Short",e.medium="Medium",e.long="Long"}(e.ArrowheadLength||(e.ArrowheadLength={})),function(e){e.none="None",e.triangle="Triangle",e.stealth="Stealth",e.diamond="Diamond",e.oval="Oval",e.open="Open"}(e.ArrowheadStyle||(e.ArrowheadStyle={})),function(e){e.narrow="Narrow",e.medium="Medium",e.wide="Wide"}(e.ArrowheadWidth||(e.ArrowheadWidth={})),function(e){e.range="Range",e.table="Table",e.text="Text"}(e.BindingType||(e.BindingType={})),function(e){e.edgeTop="EdgeTop",e.edgeBottom="EdgeBottom",e.edgeLeft="EdgeLeft",e.edgeRight="EdgeRight",e.insideVertical="InsideVertical",e.insideHorizontal="InsideHorizontal",e.diagonalDown="DiagonalDown",e.diagonalUp="DiagonalUp"}(e.BorderIndex||(e.BorderIndex={})),function(e){e.none="None",e.continuous="Continuous",e.dash="Dash",e.dashDot="DashDot",e.dashDotDot="DashDotDot",e.dot="Dot",e.double="Double",e.slantDashDot="SlantDashDot"}(e.BorderLineStyle||(e.BorderLineStyle={})),function(e){e.hairline="Hairline",e.thin="Thin",e.medium="Medium",e.thick="Thick"}(e.BorderWeight||(e.BorderWeight={})),function(e){e.automatic="Automatic",e.automaticExceptTables="AutomaticExceptTables",e.manual="Manual"}(e.CalculationMode||(e.CalculationMode={})),function(e){e.recalculate="Recalculate",e.full="Full",e.fullRebuild="FullRebuild"}(e.CalculationType||(e.CalculationType={})),function(e){e.all="All",e.formats="Formats",e.contents="Contents",e.hyperlinks="Hyperlinks",e.removeHyperlinks="RemoveHyperlinks",e.resetContents="ResetContents"}(e.ClearApplyTo||(e.ClearApplyTo={})),function(e){e.column="Column",e.bar="Bar",e.line="Line",e.area="Area",e.pie="Pie",e.donut="Donut",e.scatter="Scatter",e.bubble="Bubble",e.statistical="Statistical",e.stock="Stock",e.combo="Combo",e.hierarchy="Hierarchy",e.surface="Surface",e.map="Map",e.funnel="Funnel",e.radar="Radar",e.waterfall="Waterfall",e.threeD="ThreeD",e.other="Other"}(e.VisualCategory||(e.VisualCategory={})),function(e){e.object="Object",e.collection="Collection",e.string="String",e.double="Double",e.int="Int",e.bool="Bool",e.enum="Enum",e.color="Color"}(e.VisualPropertyType||(e.VisualPropertyType={})),function(e){e.dataChange="DataChange",e.propertyChange="PropertyChange",e.genericChange="GenericChange",e.selectionChange="SelectionChange"}(e.VisualChangeType||(e.VisualChangeType={})),function(e){e.writeOnly="WriteOnly",e.readOnly="ReadOnly",e.hideEntireSubtreeUI="HideEntireSubtreeUI",e.hideMeButShowChildrenUI="HideMeButShowChildrenUI",e.expandableUI="ExpandableUI",e.nextPropOnSameLine="NextPropOnSameLine",e.hideLabel="HideLabel",e.showResetUI="ShowResetUI",e.hasOwnExpandableSection="HasOwnExpandableSection",e.nextPropOnSameLineFOTP="NextPropOnSameLineFOTP",e.showResetUIFOTP="ShowResetUIFOTP",e.untransferable="Untransferable",e.ignoreDuringChangeChartType="IgnoreDuringChangeChartType",e.notTriviallyUndoable="NotTriviallyUndoable",e.volatileEnum="VolatileEnum",e.exceptionCollection="ExceptionCollection",e.metaOnly="MetaOnly",e.showHideCollection="ShowHideCollection",e.errorMessage="ErrorMessage",e.infoMessage="InfoMessage"}(e.BoolMetaPropertyType||(e.BoolMetaPropertyType={})),function(e){e.automatic="Automatic",e.none="None",e.cellMidPoint="CellMidPoint"}(e.ConditionalDataBarAxisFormat||(e.ConditionalDataBarAxisFormat={})),function(e){e.context="Context",e.leftToRight="LeftToRight",e.rightToLeft="RightToLeft"}(e.ConditionalDataBarDirection||(e.ConditionalDataBarDirection={})),function(e){e.top="Top",e.bottom="Bottom"}(e.ConditionalFormatDirection||(e.ConditionalFormatDirection={})),function(e){e.custom="Custom",e.dataBar="DataBar",e.colorScale="ColorScale",e.iconSet="IconSet",e.topBottom="TopBottom",e.presetCriteria="PresetCriteria",e.containsText="ContainsText",e.cellValue="CellValue"}(e.ConditionalFormatType||(e.ConditionalFormatType={})),function(e){e.invalid="Invalid",e.automatic="Automatic",e.lowestValue="LowestValue",e.highestValue="HighestValue",e.number="Number",e.percent="Percent",e.formula="Formula",e.percentile="Percentile"}(e.ConditionalFormatRuleType||(e.ConditionalFormatRuleType={})),function(e){e.invalid="Invalid",e.number="Number",e.percent="Percent",e.formula="Formula",e.percentile="Percentile"}(e.ConditionalFormatIconRuleType||(e.ConditionalFormatIconRuleType={})),function(e){e.invalid="Invalid",e.lowestValue="LowestValue",e.highestValue="HighestValue",e.number="Number",e.percent="Percent",e.formula="Formula",e.percentile="Percentile"}(e.ConditionalFormatColorCriterionType||(e.ConditionalFormatColorCriterionType={})),function(e){e.invalid="Invalid",e.topItems="TopItems",e.topPercent="TopPercent",e.bottomItems="BottomItems",e.bottomPercent="BottomPercent"}(e.ConditionalTopBottomCriterionType||(e.ConditionalTopBottomCriterionType={})),function(e){e.invalid="Invalid",e.blanks="Blanks",e.nonBlanks="NonBlanks",e.errors="Errors",e.nonErrors="NonErrors",e.yesterday="Yesterday",e.today="Today",e.tomorrow="Tomorrow",e.lastSevenDays="LastSevenDays",e.lastWeek="LastWeek",e.thisWeek="ThisWeek",e.nextWeek="NextWeek",e.lastMonth="LastMonth",e.thisMonth="ThisMonth",e.nextMonth="NextMonth",e.aboveAverage="AboveAverage",e.belowAverage="BelowAverage",e.equalOrAboveAverage="EqualOrAboveAverage",e.equalOrBelowAverage="EqualOrBelowAverage",e.oneStdDevAboveAverage="OneStdDevAboveAverage",e.oneStdDevBelowAverage="OneStdDevBelowAverage",e.twoStdDevAboveAverage="TwoStdDevAboveAverage",e.twoStdDevBelowAverage="TwoStdDevBelowAverage",e.threeStdDevAboveAverage="ThreeStdDevAboveAverage",e.threeStdDevBelowAverage="ThreeStdDevBelowAverage",e.uniqueValues="UniqueValues",e.duplicateValues="DuplicateValues"}(e.ConditionalFormatPresetCriterion||(e.ConditionalFormatPresetCriterion={})),function(e){e.invalid="Invalid",e.contains="Contains",e.notContains="NotContains",e.beginsWith="BeginsWith",e.endsWith="EndsWith"}(e.ConditionalTextOperator||(e.ConditionalTextOperator={})),function(e){e.invalid="Invalid",e.between="Between",e.notBetween="NotBetween",e.equalTo="EqualTo",e.notEqualTo="NotEqualTo",e.greaterThan="GreaterThan",e.lessThan="LessThan",e.greaterThanOrEqual="GreaterThanOrEqual",e.lessThanOrEqual="LessThanOrEqual"}(e.ConditionalCellValueOperator||(e.ConditionalCellValueOperator={})),function(e){e.invalid="Invalid",e.greaterThan="GreaterThan",e.greaterThanOrEqual="GreaterThanOrEqual"}(e.ConditionalIconCriterionOperator||(e.ConditionalIconCriterionOperator={})),function(e){e.edgeTop="EdgeTop",e.edgeBottom="EdgeBottom",e.edgeLeft="EdgeLeft",e.edgeRight="EdgeRight"}(e.ConditionalRangeBorderIndex||(e.ConditionalRangeBorderIndex={})),function(e){e.none="None",e.continuous="Continuous",e.dash="Dash",e.dashDot="DashDot",e.dashDotDot="DashDotDot",e.dot="Dot"}(e.ConditionalRangeBorderLineStyle||(e.ConditionalRangeBorderLineStyle={})),function(e){e.none="None",e.single="Single",e.double="Double"}(e.ConditionalRangeFontUnderlineStyle||(e.ConditionalRangeFontUnderlineStyle={})),function(e){e.invalid="Invalid",e.script="Script",e.webService="WebService"}(e.CustomFunctionType||(e.CustomFunctionType={})),function(e){e.invalid="Invalid",e.openApi="OpenApi"}(e.CustomFunctionMetadataFormat||(e.CustomFunctionMetadataFormat={})),function(e){e.none="None",e.wholeNumber="WholeNumber",e.decimal="Decimal",e.list="List",e.date="Date",e.time="Time",e.textLength="TextLength",e.custom="Custom",e.inconsistent="Inconsistent",e.mixedCriteria="MixedCriteria"}(e.DataValidationType||(e.DataValidationType={})),function(e){e.between="Between",e.notBetween="NotBetween",e.equalTo="EqualTo",e.notEqualTo="NotEqualTo",e.greaterThan="GreaterThan",e.lessThan="LessThan",e.greaterThanOrEqualTo="GreaterThanOrEqualTo",e.lessThanOrEqualTo="LessThanOrEqualTo"}(e.DataValidationOperator||(e.DataValidationOperator={})),function(e){e.stop="Stop",e.warning="Warning",e.information="Information"}(e.DataValidationAlertStyle||(e.DataValidationAlertStyle={})),function(e){e.up="Up",e.left="Left"}(e.DeleteShiftDirection||(e.DeleteShiftDirection={})),function(e){e.unknown="Unknown",e.aboveAverage="AboveAverage",e.allDatesInPeriodApril="AllDatesInPeriodApril",e.allDatesInPeriodAugust="AllDatesInPeriodAugust",e.allDatesInPeriodDecember="AllDatesInPeriodDecember",e.allDatesInPeriodFebruray="AllDatesInPeriodFebruray",e.allDatesInPeriodJanuary="AllDatesInPeriodJanuary",e.allDatesInPeriodJuly="AllDatesInPeriodJuly",e.allDatesInPeriodJune="AllDatesInPeriodJune",e.allDatesInPeriodMarch="AllDatesInPeriodMarch",e.allDatesInPeriodMay="AllDatesInPeriodMay",e.allDatesInPeriodNovember="AllDatesInPeriodNovember",e.allDatesInPeriodOctober="AllDatesInPeriodOctober",e.allDatesInPeriodQuarter1="AllDatesInPeriodQuarter1",e.allDatesInPeriodQuarter2="AllDatesInPeriodQuarter2",e.allDatesInPeriodQuarter3="AllDatesInPeriodQuarter3",e.allDatesInPeriodQuarter4="AllDatesInPeriodQuarter4",e.allDatesInPeriodSeptember="AllDatesInPeriodSeptember",e.belowAverage="BelowAverage",e.lastMonth="LastMonth",e.lastQuarter="LastQuarter",e.lastWeek="LastWeek",e.lastYear="LastYear",e.nextMonth="NextMonth",e.nextQuarter="NextQuarter",e.nextWeek="NextWeek",e.nextYear="NextYear",e.thisMonth="ThisMonth",e.thisQuarter="ThisQuarter",e.thisWeek="ThisWeek",e.thisYear="ThisYear",e.today="Today",e.tomorrow="Tomorrow",e.yearToDate="YearToDate",e.yesterday="Yesterday"}(e.DynamicFilterCriteria||(e.DynamicFilterCriteria={})),function(e){e.year="Year",e.month="Month",e.day="Day",e.hour="Hour",e.minute="Minute",e.second="Second"}(e.FilterDatetimeSpecificity||(e.FilterDatetimeSpecificity={})),function(e){e.bottomItems="BottomItems",e.bottomPercent="BottomPercent",e.cellColor="CellColor",e.dynamic="Dynamic",e.fontColor="FontColor",e.values="Values",e.topItems="TopItems",e.topPercent="TopPercent",e.icon="Icon",e.custom="Custom"}(e.FilterOn||(e.FilterOn={})),function(e){e.and="And",e.or="Or"}(e.FilterOperator||(e.FilterOperator={})),function(e){e.general="General",e.left="Left",e.center="Center",e.right="Right",e.fill="Fill",e.justify="Justify",e.centerAcrossSelection="CenterAcrossSelection",e.distributed="Distributed"}(e.HorizontalAlignment||(e.HorizontalAlignment={})),function(e){e.invalid="Invalid",e.threeArrows="ThreeArrows",e.threeArrowsGray="ThreeArrowsGray",e.threeFlags="ThreeFlags",e.threeTrafficLights1="ThreeTrafficLights1",e.threeTrafficLights2="ThreeTrafficLights2",e.threeSigns="ThreeSigns",e.threeSymbols="ThreeSymbols",e.threeSymbols2="ThreeSymbols2",e.fourArrows="FourArrows",e.fourArrowsGray="FourArrowsGray",e.fourRedToBlack="FourRedToBlack",e.fourRating="FourRating",e.fourTrafficLights="FourTrafficLights",e.fiveArrows="FiveArrows",e.fiveArrowsGray="FiveArrowsGray",e.fiveRating="FiveRating",e.fiveQuarters="FiveQuarters",e.threeStars="ThreeStars",e.threeTriangles="ThreeTriangles",e.fiveBoxes="FiveBoxes"}(e.IconSet||(e.IconSet={})),function(e){e.fit="Fit",e.fitAndCenter="FitAndCenter",e.fill="Fill"}(e.ImageFittingMode||(e.ImageFittingMode={})),function(e){e.down="Down",e.right="Right"}(e.InsertShiftDirection||(e.InsertShiftDirection={})),function(e){e.worksheet="Worksheet",e.workbook="Workbook"}(e.NamedItemScope||(e.NamedItemScope={})),function(e){e.string="String",e.integer="Integer",e.double="Double",e.boolean="Boolean",e.range="Range",e.error="Error",e.array="Array"}(e.NamedItemType||(e.NamedItemType={})),function(e){e.none="None",e.single="Single",e.double="Double",e.singleAccountant="SingleAccountant",e.doubleAccountant="DoubleAccountant"}(e.RangeUnderlineStyle||(e.RangeUnderlineStyle={})),function(e){e.visible="Visible",e.hidden="Hidden",e.veryHidden="VeryHidden"}(e.SheetVisibility||(e.SheetVisibility={})),function(e){e.unknown="Unknown",e.thisLocalAddin="ThisLocalAddin"}(e.EventTriggerSource||(e.EventTriggerSource={})),function(e){e.unknown="Unknown",e.empty="Empty",e.string="String",e.integer="Integer",e.double="Double",e.boolean="Boolean",e.error="Error",e.richValue="RichValue"}(e.RangeValueType||(e.RangeValueType={})),function(e){e.left="Left",e.right="Right",e.up="Up",e.down="Down"}(e.KeyboardDirection||(e.KeyboardDirection={})),function(e){e.forward="Forward",e.backwards="Backwards"}(e.SearchDirection||(e.SearchDirection={})),function(e){e.rows="Rows",e.columns="Columns"}(e.SortOrientation||(e.SortOrientation={})),function(e){e.value="Value",e.cellColor="CellColor",e.fontColor="FontColor",e.icon="Icon"}(e.SortOn||(e.SortOn={})),function(e){e.normal="Normal",e.textAsNumber="TextAsNumber"}(e.SortDataOption||(e.SortDataOption={})),function(e){e.pinYin="PinYin",e.strokeCount="StrokeCount"}(e.SortMethod||(e.SortMethod={})),function(e){e.top="Top",e.center="Center",e.bottom="Bottom",e.justify="Justify",e.distributed="Distributed"}(e.VerticalAlignment||(e.VerticalAlignment={})),function(e){e.none="None",e.shiftCellLeft="ShiftCellLeft",e.shiftCellUp="ShiftCellUp",e.shiftCellRight="ShiftCellRight",e.shiftCellDown="ShiftCellDown"}(e.InsertDeleteCellsShiftDirection||(e.InsertDeleteCellsShiftDirection={})),function(e){e.number="Number",e.boolean="Boolean",e.date="Date",e.string="String",e.float="Float"}(e.DocumentPropertyType||(e.DocumentPropertyType={})),function(e){e.local="Local",e.remote="Remote"}(e.EventSource||(e.EventSource={})),function(e){e.unknown="Unknown",e.rangeEdited="RangeEdited",e.rowInserted="RowInserted",e.rowDeleted="RowDeleted",e.columnInserted="ColumnInserted",e.columnDeleted="ColumnDeleted",e.cellInserted="CellInserted",e.cellDeleted="CellDeleted"}(e.DataChangeType||(e.DataChangeType={})),function(e){e.unhidden="Unhidden",e.hidden="Hidden"}(e.RowHiddenChangeType||(e.RowHiddenChangeType={})),function(e){e.commentEdited="CommentEdited",e.commentResolved="CommentResolved",e.commentReopened="CommentReopened",e.replyAdded="ReplyAdded",e.replyDeleted="ReplyDeleted",e.replyEdited="ReplyEdited"}(e.CommentChangeType||(e.CommentChangeType={})),function(e){e.worksheetChanged="WorksheetChanged",e.worksheetSelectionChanged="WorksheetSelectionChanged",e.worksheetAdded="WorksheetAdded",e.worksheetActivated="WorksheetActivated",e.worksheetDeactivated="WorksheetDeactivated",e.tableChanged="TableChanged",e.tableSelectionChanged="TableSelectionChanged",e.worksheetDeleted="WorksheetDeleted",e.chartAdded="ChartAdded",e.chartActivated="ChartActivated",e.chartDeactivated="ChartDeactivated",e.chartDeleted="ChartDeleted",e.worksheetCalculated="WorksheetCalculated",e.visualSelectionChanged="VisualSelectionChanged",e.agaveVisualUpdate="AgaveVisualUpdate",e.tableAdded="TableAdded",e.tableDeleted="TableDeleted",e.tableFiltered="TableFiltered",e.worksheetFiltered="WorksheetFiltered",e.shapeActivated="ShapeActivated",e.shapeDeactivated="ShapeDeactivated",e.visualChange="VisualChange",e.workbookAutoSaveSettingChanged="WorkbookAutoSaveSettingChanged",e.worksheetFormatChanged="WorksheetFormatChanged",e.wacoperationEvent="WACOperationEvent",e.ribbonCommandExecuted="RibbonCommandExecuted",e.worksheetRowSorted="WorksheetRowSorted",e.worksheetColumnSorted="WorksheetColumnSorted",e.worksheetSingleClicked="WorksheetSingleClicked",e.worksheetRowHiddenChanged="WorksheetRowHiddenChanged",e.recordingStateChangedEvent="RecordingStateChangedEvent",e.commentAdded="CommentAdded",e.commentDeleted="CommentDeleted",e.commentChanged="CommentChanged",e.linkedDataTypeRefreshRequestCompleted="LinkedDataTypeRefreshRequestCompleted",e.linkedDataTypeRefreshModeChanged="LinkedDataTypeRefreshModeChanged",e.linkedDataTypeLinkedDataTypeAdded="LinkedDataTypeLinkedDataTypeAdded",e.worksheetFormulaChanged="WorksheetFormulaChanged",e.workbookActivated="WorkbookActivated",e.linkedWorkbookWorkbookLinksChanged="LinkedWorkbookWorkbookLinksChanged",e.linkedWorkbookRefreshCompleted="LinkedWorkbookRefreshCompleted",e.worksheetProtectionChanged="WorksheetProtectionChanged",e.worksheetNameChanged="WorksheetNameChanged",e.worksheetVisibilityChanged="WorksheetVisibilityChanged",e.worksheetMoved="WorksheetMoved",e.workbookActionRecorded="WorkbookActionRecorded",e.vbaRecorderRecordingChanged2="VbaRecorderRecordingChanged2",e.linkedEntityDataDomainLinkedEntityDataDomainAdded="LinkedEntityDataDomainLinkedEntityDataDomainAdded",e.linkedEntityDataDomainRefreshCompleted="LinkedEntityDataDomainRefreshCompleted",e.linkedEntityDataDomainRefreshModeChanged="LinkedEntityDataDomainRefreshModeChanged"}(xi=e.EventType||(e.EventType={})),function(e){e.title="Title",e.subject="Subject",e.author="Author",e.keywords="Keywords",e.comments="Comments",e.template="Template",e.lastAuth="LastAuth",e.revision="Revision",e.appName="AppName",e.lastPrint="LastPrint",e.creation="Creation",e.lastSave="LastSave",e.category="Category",e.format="Format",e.manager="Manager",e.company="Company"}(e.DocumentPropertyItem||(e.DocumentPropertyItem={})),function(e){e.atTop="AtTop",e.atBottom="AtBottom",e.off="Off"}(e.SubtotalLocationType||(e.SubtotalLocationType={})),function(e){e.compact="Compact",e.tabular="Tabular",e.outline="Outline"}(e.PivotLayoutType||(e.PivotLayoutType={})),function(e){e.normal="Normal",e.unlocked="Unlocked",e.none="None"}(e.ProtectionSelectionMode||(e.ProtectionSelectionMode={})),function(e){e.portrait="Portrait",e.landscape="Landscape"}(e.PageOrientation||(e.PageOrientation={})),function(e){e.letter="Letter",e.letterSmall="LetterSmall",e.tabloid="Tabloid",e.ledger="Ledger",e.legal="Legal",e.statement="Statement",e.executive="Executive",e.a3="A3",e.a4="A4",e.a4Small="A4Small",e.a5="A5",e.b4="B4",e.b5="B5",e.folio="Folio",e.quatro="Quatro",e.paper10x14="Paper10x14",e.paper11x17="Paper11x17",e.note="Note",e.envelope9="Envelope9",e.envelope10="Envelope10",e.envelope11="Envelope11",e.envelope12="Envelope12",e.envelope14="Envelope14",e.csheet="Csheet",e.dsheet="Dsheet",e.esheet="Esheet",e.envelopeDL="EnvelopeDL",e.envelopeC5="EnvelopeC5",e.envelopeC3="EnvelopeC3",e.envelopeC4="EnvelopeC4",e.envelopeC6="EnvelopeC6",e.envelopeC65="EnvelopeC65",e.envelopeB4="EnvelopeB4",e.envelopeB5="EnvelopeB5",e.envelopeB6="EnvelopeB6",e.envelopeItaly="EnvelopeItaly",e.envelopeMonarch="EnvelopeMonarch",e.envelopePersonal="EnvelopePersonal",e.fanfoldUS="FanfoldUS",e.fanfoldStdGerman="FanfoldStdGerman",e.fanfoldLegalGerman="FanfoldLegalGerman"}(e.PaperType||(e.PaperType={})),function(e){e.context="Context",e.leftToRight="LeftToRight",e.rightToLeft="RightToLeft"}(e.ReadingOrder||(e.ReadingOrder={})),function(e){e.normal="Normal",e.comma="Comma",e.currency="Currency",e.percent="Percent",e.wholeComma="WholeComma",e.wholeDollar="WholeDollar",e.hlink="Hlink",e.hlinkTrav="HlinkTrav",e.note="Note",e.warningText="WarningText",e.emphasis1="Emphasis1",e.emphasis2="Emphasis2",e.emphasis3="Emphasis3",e.sheetTitle="SheetTitle",e.heading1="Heading1",e.heading2="Heading2",e.heading3="Heading3",e.heading4="Heading4",e.input="Input",e.output="Output",e.calculation="Calculation",e.checkCell="CheckCell",e.linkedCell="LinkedCell",e.total="Total",e.good="Good",e.bad="Bad",e.neutral="Neutral",e.accent1="Accent1",e.accent1_20="Accent1_20",e.accent1_40="Accent1_40",e.accent1_60="Accent1_60",e.accent2="Accent2",e.accent2_20="Accent2_20",e.accent2_40="Accent2_40",e.accent2_60="Accent2_60",e.accent3="Accent3",e.accent3_20="Accent3_20",e.accent3_40="Accent3_40",e.accent3_60="Accent3_60",e.accent4="Accent4",e.accent4_20="Accent4_20",e.accent4_40="Accent4_40",e.accent4_60="Accent4_60",e.accent5="Accent5",e.accent5_20="Accent5_20",e.accent5_40="Accent5_40",e.accent5_60="Accent5_60",e.accent6="Accent6",e.accent6_20="Accent6_20",e.accent6_40="Accent6_40",e.accent6_60="Accent6_60",e.explanatoryText="ExplanatoryText"}(e.BuiltInStyle||(e.BuiltInStyle={})),function(e){e.asDisplayed="AsDisplayed",e.blank="Blank",e.dash="Dash",e.notAvailable="NotAvailable"}(e.PrintErrorType||(e.PrintErrorType={})),function(e){e.none="None",e.before="Before",e.after="After",e.beginning="Beginning",e.end="End"}(e.WorksheetPositionType||(e.WorksheetPositionType={})),function(e){e.noComments="NoComments",e.endSheet="EndSheet",e.inPlace="InPlace"}(e.PrintComments||(e.PrintComments={})),function(e){e.downThenOver="DownThenOver",e.overThenDown="OverThenDown"}(e.PrintOrder||(e.PrintOrder={})),function(e){e.points="Points",e.inches="Inches",e.centimeters="Centimeters"}(e.PrintMarginUnit||(e.PrintMarginUnit={})),function(e){e.default="Default",e.firstAndDefault="FirstAndDefault",e.oddAndEven="OddAndEven",e.firstOddAndEven="FirstOddAndEven"}(e.HeaderFooterState||(e.HeaderFooterState={})),function(e){e.fillDefault="FillDefault",e.fillCopy="FillCopy",e.fillSeries="FillSeries",e.fillFormats="FillFormats",e.fillValues="FillValues",e.fillDays="FillDays",e.fillWeekdays="FillWeekdays",e.fillMonths="FillMonths",e.fillYears="FillYears",e.linearTrend="LinearTrend",e.growthTrend="GrowthTrend",e.flashFill="FlashFill"}(e.AutoFillType||(e.AutoFillType={})),function(e){e.byRows="ByRows",e.byColumns="ByColumns"}(e.GroupOption||(e.GroupOption={})),function(e){e.all="All",e.formulas="Formulas",e.values="Values",e.formats="Formats",e.link="Link"}(e.RangeCopyType||(e.RangeCopyType={})),function(e){e.none="None",e.validLinkedData="ValidLinkedData",e.disambiguationNeeded="DisambiguationNeeded",e.brokenLinkedData="BrokenLinkedData",e.fetchingData="FetchingData"}(e.LinkedDataTypeState||(e.LinkedDataTypeState={})),function(e){e.lineInverse="LineInverse",e.triangle="Triangle",e.rightTriangle="RightTriangle",e.rectangle="Rectangle",e.diamond="Diamond",e.parallelogram="Parallelogram",e.trapezoid="Trapezoid",e.nonIsoscelesTrapezoid="NonIsoscelesTrapezoid",e.pentagon="Pentagon",e.hexagon="Hexagon",e.heptagon="Heptagon",e.octagon="Octagon",e.decagon="Decagon",e.dodecagon="Dodecagon",e.star4="Star4",e.star5="Star5",e.star6="Star6",e.star7="Star7",e.star8="Star8",e.star10="Star10",e.star12="Star12",e.star16="Star16",e.star24="Star24",e.star32="Star32",e.roundRectangle="RoundRectangle",e.round1Rectangle="Round1Rectangle",e.round2SameRectangle="Round2SameRectangle",e.round2DiagonalRectangle="Round2DiagonalRectangle",e.snipRoundRectangle="SnipRoundRectangle",e.snip1Rectangle="Snip1Rectangle",e.snip2SameRectangle="Snip2SameRectangle",e.snip2DiagonalRectangle="Snip2DiagonalRectangle",e.plaque="Plaque",e.ellipse="Ellipse",e.teardrop="Teardrop",e.homePlate="HomePlate",e.chevron="Chevron",e.pieWedge="PieWedge",e.pie="Pie",e.blockArc="BlockArc",e.donut="Donut",e.noSmoking="NoSmoking",e.rightArrow="RightArrow",e.leftArrow="LeftArrow",e.upArrow="UpArrow",e.downArrow="DownArrow",e.stripedRightArrow="StripedRightArrow",e.notchedRightArrow="NotchedRightArrow",e.bentUpArrow="BentUpArrow",e.leftRightArrow="LeftRightArrow",e.upDownArrow="UpDownArrow",e.leftUpArrow="LeftUpArrow",e.leftRightUpArrow="LeftRightUpArrow",e.quadArrow="QuadArrow",e.leftArrowCallout="LeftArrowCallout",e.rightArrowCallout="RightArrowCallout",e.upArrowCallout="UpArrowCallout",e.downArrowCallout="DownArrowCallout",e.leftRightArrowCallout="LeftRightArrowCallout",e.upDownArrowCallout="UpDownArrowCallout",e.quadArrowCallout="QuadArrowCallout",e.bentArrow="BentArrow",e.uturnArrow="UturnArrow",e.circularArrow="CircularArrow",e.leftCircularArrow="LeftCircularArrow",e.leftRightCircularArrow="LeftRightCircularArrow",e.curvedRightArrow="CurvedRightArrow",e.curvedLeftArrow="CurvedLeftArrow",e.curvedUpArrow="CurvedUpArrow",e.curvedDownArrow="CurvedDownArrow",e.swooshArrow="SwooshArrow",e.cube="Cube",e.can="Can",e.lightningBolt="LightningBolt",e.heart="Heart",e.sun="Sun",e.moon="Moon",e.smileyFace="SmileyFace",e.irregularSeal1="IrregularSeal1",e.irregularSeal2="IrregularSeal2",e.foldedCorner="FoldedCorner",e.bevel="Bevel",e.frame="Frame",e.halfFrame="HalfFrame",e.corner="Corner",e.diagonalStripe="DiagonalStripe",e.chord="Chord",e.arc="Arc",e.leftBracket="LeftBracket",e.rightBracket="RightBracket",e.leftBrace="LeftBrace",e.rightBrace="RightBrace",e.bracketPair="BracketPair",e.bracePair="BracePair",e.callout1="Callout1",e.callout2="Callout2",e.callout3="Callout3",e.accentCallout1="AccentCallout1",e.accentCallout2="AccentCallout2",e.accentCallout3="AccentCallout3",e.borderCallout1="BorderCallout1",e.borderCallout2="BorderCallout2",e.borderCallout3="BorderCallout3",e.accentBorderCallout1="AccentBorderCallout1",e.accentBorderCallout2="AccentBorderCallout2",e.accentBorderCallout3="AccentBorderCallout3",e.wedgeRectCallout="WedgeRectCallout",e.wedgeRRectCallout="WedgeRRectCallout",e.wedgeEllipseCallout="WedgeEllipseCallout",e.cloudCallout="CloudCallout",e.cloud="Cloud",e.ribbon="Ribbon",e.ribbon2="Ribbon2",e.ellipseRibbon="EllipseRibbon",e.ellipseRibbon2="EllipseRibbon2",e.leftRightRibbon="LeftRightRibbon",e.verticalScroll="VerticalScroll",e.horizontalScroll="HorizontalScroll",e.wave="Wave",e.doubleWave="DoubleWave",e.plus="Plus",e.flowChartProcess="FlowChartProcess",e.flowChartDecision="FlowChartDecision",e.flowChartInputOutput="FlowChartInputOutput",e.flowChartPredefinedProcess="FlowChartPredefinedProcess",e.flowChartInternalStorage="FlowChartInternalStorage",e.flowChartDocument="FlowChartDocument",e.flowChartMultidocument="FlowChartMultidocument",e.flowChartTerminator="FlowChartTerminator",e.flowChartPreparation="FlowChartPreparation",e.flowChartManualInput="FlowChartManualInput",e.flowChartManualOperation="FlowChartManualOperation",e.flowChartConnector="FlowChartConnector",e.flowChartPunchedCard="FlowChartPunchedCard",e.flowChartPunchedTape="FlowChartPunchedTape",e.flowChartSummingJunction="FlowChartSummingJunction",e.flowChartOr="FlowChartOr",e.flowChartCollate="FlowChartCollate",e.flowChartSort="FlowChartSort",e.flowChartExtract="FlowChartExtract",e.flowChartMerge="FlowChartMerge",e.flowChartOfflineStorage="FlowChartOfflineStorage",e.flowChartOnlineStorage="FlowChartOnlineStorage",e.flowChartMagneticTape="FlowChartMagneticTape",e.flowChartMagneticDisk="FlowChartMagneticDisk",e.flowChartMagneticDrum="FlowChartMagneticDrum",e.flowChartDisplay="FlowChartDisplay",e.flowChartDelay="FlowChartDelay",e.flowChartAlternateProcess="FlowChartAlternateProcess",e.flowChartOffpageConnector="FlowChartOffpageConnector",e.actionButtonBlank="ActionButtonBlank",e.actionButtonHome="ActionButtonHome",e.actionButtonHelp="ActionButtonHelp",e.actionButtonInformation="ActionButtonInformation",e.actionButtonForwardNext="ActionButtonForwardNext",e.actionButtonBackPrevious="ActionButtonBackPrevious",e.actionButtonEnd="ActionButtonEnd",e.actionButtonBeginning="ActionButtonBeginning",e.actionButtonReturn="ActionButtonReturn",e.actionButtonDocument="ActionButtonDocument",e.actionButtonSound="ActionButtonSound",e.actionButtonMovie="ActionButtonMovie",e.gear6="Gear6",e.gear9="Gear9",e.funnel="Funnel",e.mathPlus="MathPlus",e.mathMinus="MathMinus",e.mathMultiply="MathMultiply",e.mathDivide="MathDivide",e.mathEqual="MathEqual",e.mathNotEqual="MathNotEqual",e.cornerTabs="CornerTabs",e.squareTabs="SquareTabs",e.plaqueTabs="PlaqueTabs",e.chartX="ChartX",e.chartStar="ChartStar",e.chartPlus="ChartPlus"}(e.GeometricShapeType||(e.GeometricShapeType={})),function(e){e.straight="Straight",e.elbow="Elbow",e.curve="Curve"}(e.ConnectorType||(e.ConnectorType={})),function(e){e.plain="Plain",e.mention="Mention"}(e.ContentType||(e.ContentType={})),function(e){e.conditionalFormats="ConditionalFormats",e.dataValidations="DataValidations",e.blanks="Blanks",e.constants="Constants",e.formulas="Formulas",e.sameConditionalFormat="SameConditionalFormat",e.sameDataValidation="SameDataValidation",e.visible="Visible"}(e.SpecialCellType||(e.SpecialCellType={})),function(e){e.all="All",e.errors="Errors",e.errorsLogical="ErrorsLogical",e.errorsNumbers="ErrorsNumbers",e.errorsText="ErrorsText",e.errorsLogicalNumber="ErrorsLogicalNumber",e.errorsLogicalText="ErrorsLogicalText",e.errorsNumberText="ErrorsNumberText",e.logical="Logical",e.logicalNumbers="LogicalNumbers",e.logicalText="LogicalText",e.logicalNumbersText="LogicalNumbersText",e.numbers="Numbers",e.numbersText="NumbersText",e.text="Text"}(e.SpecialCellValueType||(e.SpecialCellValueType={})),function(e){e.twoCell="TwoCell",e.oneCell="OneCell",e.absolute="Absolute"}(e.Placement||(e.Placement={})),function(e){e.none="None",e.solid="Solid",e.gray50="Gray50",e.gray75="Gray75",e.gray25="Gray25",e.horizontal="Horizontal",e.vertical="Vertical",e.down="Down",e.up="Up",e.checker="Checker",e.semiGray75="SemiGray75",e.lightHorizontal="LightHorizontal",e.lightVertical="LightVertical",e.lightDown="LightDown",e.lightUp="LightUp",e.grid="Grid",e.crissCross="CrissCross",e.gray16="Gray16",e.gray8="Gray8",e.linearGradient="LinearGradient",e.rectangularGradient="RectangularGradient"}(e.FillPattern||(e.FillPattern={})),function(e){e.left="Left",e.center="Center",e.right="Right",e.justify="Justify",e.justifyLow="JustifyLow",e.distributed="Distributed",e.thaiDistributed="ThaiDistributed"}(e.ShapeTextHorizontalAlignment||(e.ShapeTextHorizontalAlignment={})),function(e){e.top="Top",e.middle="Middle",e.bottom="Bottom",e.justified="Justified",e.distributed="Distributed"}(e.ShapeTextVerticalAlignment||(e.ShapeTextVerticalAlignment={})),function(e){e.overflow="Overflow",e.ellipsis="Ellipsis",e.clip="Clip"}(e.ShapeTextVerticalOverflow||(e.ShapeTextVerticalOverflow={})),function(e){e.overflow="Overflow",e.clip="Clip"}(e.ShapeTextHorizontalOverflow||(e.ShapeTextHorizontalOverflow={})),function(e){e.leftToRight="LeftToRight",e.rightToLeft="RightToLeft"}(e.ShapeTextReadingOrder||(e.ShapeTextReadingOrder={})),function(e){e.horizontal="Horizontal",e.vertical="Vertical",e.vertical270="Vertical270",e.wordArtVertical="WordArtVertical",e.eastAsianVertical="EastAsianVertical",e.mongolianVertical="MongolianVertical",e.wordArtVerticalRTL="WordArtVerticalRTL"}(e.ShapeTextOrientation||(e.ShapeTextOrientation={})),function(e){e.autoSizeNone="AutoSizeNone",e.autoSizeTextToFitShape="AutoSizeTextToFitShape",e.autoSizeShapeToFitText="AutoSizeShapeToFitText",e.autoSizeMixed="AutoSizeMixed"}(e.ShapeAutoSize||(e.ShapeAutoSize={})),function(e){e.save="Save",e.skipSave="SkipSave"}(e.CloseBehavior||(e.CloseBehavior={})),function(e){e.save="Save",e.prompt="Prompt"}(e.SaveBehavior||(e.SaveBehavior={})),function(e){e.dataSourceOrder="DataSourceOrder",e.ascending="Ascending",e.descending="Descending"}(e.SlicerSortType||(e.SlicerSortType={})),function(e){e.others="Others",e.home="Home",e.insert="Insert",e.draw="Draw",e.pageLayout="PageLayout",e.formulas="Formulas",e.data="Data",e.review="Review",e.view="View",e.developer="Developer",e.addIns="AddIns",e.help="Help"}(e.RibbonTab||(e.RibbonTab={})),function(e){e.general="General",e.number="Number",e.currency="Currency",e.accounting="Accounting",e.date="Date",e.time="Time",e.percentage="Percentage",e.fraction="Fraction",e.scientific="Scientific",e.text="Text",e.special="Special",e.custom="Custom"}(e.NumberFormatCategory||(e.NumberFormatCategory={}));var Ii=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NamedSheetView"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["name"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return D("name",this._N,"NamedSheetView",this._isNull),this._N},set:function(e){this._N=e,w(this,"Name",e,G(2,"ExcelApiUndo","1.41"))},enumerable:!0,configurable:!0}),n.prototype.activate=function(){T(this,"Activate",0,[],G(2,"ExcelApiUndo","1.41"),0)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.41"),0)},n.prototype.duplicate=function(t){return P(e.NamedSheetView,this,"Duplicate",0,[t],!1,!1,null,G(2,"ExcelApiUndo","1.41"))},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.Name)||(this._N=n.Name)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.NamedSheetView=Ii;var wi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NamedSheetViewCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"NamedSheetViewCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t){return P(e.NamedSheetView,this,"Add",0,[t],!1,!0,null,G(2,"ExcelApiUndo","1.41"))},n.prototype.enterTemporary=function(){return P(e.NamedSheetView,this,"EnterTemporary",0,[],!1,!1,null,G(2,"ExcelApiUndo","1.46"))},n.prototype.exit=function(){T(this,"Exit",0,[],G(2,"ExcelApiUndo","1.41"),0)},n.prototype.getActive=function(){return P(e.NamedSheetView,this,"GetActive",0,[],!1,!1,null,G(2,"ExcelApiUndo","1.41"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.NamedSheetView,this,[t])},n.prototype.getItemAt=function(t){return P(e.NamedSheetView,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.NamedSheetView,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.NamedSheetView,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.NamedSheetView,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.NamedSheetViewCollection=wi;var Fi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NoteCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return D("items",this.m__items,"NoteCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.add=function(t,n){return P(e.Note,this,"Add",0,[t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},n.prototype.getCount=function(){return T(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return A(e.Note,this,[t])},n.prototype.getItemAt=function(t){return P(e.Note,this,"GetItemAt",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return P(e.Note,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!F(n)){var r=n;if(H(this,r),!F(r[OfficeExtension.Constants.items])){this.m__items=[];for(var o=r[OfficeExtension.Constants.items],i=0;i<o.length;i++){var a=x(e.Note,!0,this,o[i],i);a._handleResult(o[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleRetrieveResult=function(n,r){var o=this;t.prototype._handleRetrieveResult.call(this,n,r),W(this,n,r,(function(t,n){return x(e.Note,!0,o,t,n)}))},n.prototype.toJSON=function(){return M(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;V(this,t,(function(t,r){return x(e.Note,!0,n,t,r)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.NoteCollection=Fi;var Ni="Note",Di=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Note"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["content","authorName","visible","height","width","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Content","AuthorName","Visible","Height","Width","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"authorName",{get:function(){return D("authorName",this._A,Ni,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"content",{get:function(){return D("content",this._C,Ni,this._isNull),this._C},set:function(e){this._C=e,w(this,"Content",e,G(2,"ExcelApiUndo","1.39"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return D("height",this._H,Ni,this._isNull),this._H},set:function(e){this._H=e,w(this,"Height",e,G(2,"ExcelApiUndo","1.39"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return D("visible",this._V,Ni,this._isNull),this._V},set:function(e){this._V=e,w(this,"Visible",e,G(2,"ExcelApiUndoPreserveUndoStack","1.3"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return D("width",this._W,Ni,this._isNull),this._W},set:function(e){this._W=e,w(this,"Width",e,G(2,"ExcelApiUndo","1.39"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return D("_Id",this.__I,Ni,this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["content","visible","height","width"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){T(this,"Delete",0,[],G(2,"ExcelApiUndo","1.39"),0)},n.prototype.getLocation=function(){return P(e.Range,this,"GetLocation",1,[],!1,!1,null,4)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!F(e)){var n=e;H(this,n),N(n.AuthorName)||(this._A=n.AuthorName),N(n.Content)||(this._C=n.Content),N(n.Height)||(this._H=n.Height),N(n.Visible)||(this._V=n.Visible),N(n.Width)||(this._W=n.Width),N(n._Id)||(this.__I=n._Id)}},n.prototype.load=function(e){return j(this,e)},n.prototype.retrieve=function(e){return U(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),F(e)||N(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),W(this,e,n)},n.prototype.toJSON=function(){return M(this,{authorName:this._A,content:this._C,height:this._H,visible:this._V,width:this._W},{})},n.prototype.setMockData=function(e){V(this,e)},n.prototype.ensureUnchanged=function(e){I(this,e)},n}(OfficeExtension.ClientObject);e.Note=Di;var ki="FunctionResult",ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"FunctionResult<T>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["error","value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Error","Value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){return D("error",this._E,ki,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return D("value",this._V,ki,this._isNull),this._V},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!F(t)){var n=t;H(this,n),N(n.Error)||(this._E=n.Error),N(n.Value)||(this._V=n.Value)}},t.prototype.load=function(e){return j(this,e)},t.prototype.retrieve=function(e){return U(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{error:this._E,value:this._V},{})},t.prototype.setMockData=function(e){V(this,e)},t.prototype.ensureUnchanged=function(e){I(this,e)},t}(OfficeExtension.ClientObject);e.FunctionResult=ji;var Ui,Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"Functions"},enumerable:!0,configurable:!0}),t.prototype.abs=function(e){return P(ji,this,"Abs",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.accrInt=function(e,t,n,r,o,i,a,s){return P(ji,this,"AccrInt",0,[e,t,n,r,o,i,a,s],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.accrIntM=function(e,t,n,r,o){return P(ji,this,"AccrIntM",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.acos=function(e){return P(ji,this,"Acos",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.acosh=function(e){return P(ji,this,"Acosh",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.acot=function(e){return P(ji,this,"Acot",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.acoth=function(e){return P(ji,this,"Acoth",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.amorDegrc=function(e,t,n,r,o,i,a){return P(ji,this,"AmorDegrc",0,[e,t,n,r,o,i,a],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.amorLinc=function(e,t,n,r,o,i,a){return P(ji,this,"AmorLinc",0,[e,t,n,r,o,i,a],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"And",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.arabic=function(e){return P(ji,this,"Arabic",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.areas=function(e){return P(ji,this,"Areas",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.asc=function(e){return P(ji,this,"Asc",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.asin=function(e){return P(ji,this,"Asin",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.asinh=function(e){return P(ji,this,"Asinh",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.atan=function(e){return P(ji,this,"Atan",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.atan2=function(e,t){return P(ji,this,"Atan2",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.atanh=function(e){return P(ji,this,"Atanh",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.aveDev=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"AveDev",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.average=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Average",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.averageA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"AverageA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.averageIf=function(e,t,n){return P(ji,this,"AverageIf",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.averageIfs=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return P(ji,this,"AverageIfs",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bahtText=function(e){return P(ji,this,"BahtText",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.base=function(e,t,n){return P(ji,this,"Base",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.besselI=function(e,t){return P(ji,this,"BesselI",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.besselJ=function(e,t){return P(ji,this,"BesselJ",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.besselK=function(e,t){return P(ji,this,"BesselK",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.besselY=function(e,t){return P(ji,this,"BesselY",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.beta_Dist=function(e,t,n,r,o,i){return P(ji,this,"Beta_Dist",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.beta_Inv=function(e,t,n,r,o){return P(ji,this,"Beta_Inv",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bin2Dec=function(e){return P(ji,this,"Bin2Dec",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bin2Hex=function(e,t){return P(ji,this,"Bin2Hex",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bin2Oct=function(e,t){return P(ji,this,"Bin2Oct",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.binom_Dist=function(e,t,n,r){return P(ji,this,"Binom_Dist",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.binom_Dist_Range=function(e,t,n,r){return P(ji,this,"Binom_Dist_Range",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.binom_Inv=function(e,t,n){return P(ji,this,"Binom_Inv",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bitand=function(e,t){return P(ji,this,"Bitand",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bitlshift=function(e,t){return P(ji,this,"Bitlshift",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bitor=function(e,t){return P(ji,this,"Bitor",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bitrshift=function(e,t){return P(ji,this,"Bitrshift",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.bitxor=function(e,t){return P(ji,this,"Bitxor",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.ceiling_Math=function(e,t,n){return P(ji,this,"Ceiling_Math",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.ceiling_Precise=function(e,t){return P(ji,this,"Ceiling_Precise",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.char=function(e){return P(ji,this,"Char",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.chiSq_Dist=function(e,t,n){return P(ji,this,"ChiSq_Dist",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.chiSq_Dist_RT=function(e,t){return P(ji,this,"ChiSq_Dist_RT",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.chiSq_Inv=function(e,t){return P(ji,this,"ChiSq_Inv",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.chiSq_Inv_RT=function(e,t){return P(ji,this,"ChiSq_Inv_RT",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.choose=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return P(ji,this,"Choose",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.clean=function(e){return P(ji,this,"Clean",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.code=function(e){return P(ji,this,"Code",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.columns=function(e){return P(ji,this,"Columns",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.combin=function(e,t){return P(ji,this,"Combin",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.combina=function(e,t){return P(ji,this,"Combina",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.complex=function(e,t,n){return P(ji,this,"Complex",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.concatenate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Concatenate",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.confidence_Norm=function(e,t,n){return P(ji,this,"Confidence_Norm",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.confidence_T=function(e,t,n){return P(ji,this,"Confidence_T",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.convert=function(e,t,n){return P(ji,this,"Convert",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.cos=function(e){return P(ji,this,"Cos",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.cosh=function(e){return P(ji,this,"Cosh",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.cot=function(e){return P(ji,this,"Cot",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.coth=function(e){return P(ji,this,"Coth",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.count=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Count",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.countA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"CountA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.countBlank=function(e){return P(ji,this,"CountBlank",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.countIf=function(e,t){return P(ji,this,"CountIf",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.countIfs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"CountIfs",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.coupDayBs=function(e,t,n,r){return P(ji,this,"CoupDayBs",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.coupDays=function(e,t,n,r){return P(ji,this,"CoupDays",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.coupDaysNc=function(e,t,n,r){return P(ji,this,"CoupDaysNc",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.coupNcd=function(e,t,n,r){return P(ji,this,"CoupNcd",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.coupNum=function(e,t,n,r){return P(ji,this,"CoupNum",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.coupPcd=function(e,t,n,r){return P(ji,this,"CoupPcd",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.csc=function(e){return P(ji,this,"Csc",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.csch=function(e){return P(ji,this,"Csch",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.cumIPmt=function(e,t,n,r,o,i){return P(ji,this,"CumIPmt",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.cumPrinc=function(e,t,n,r,o,i){return P(ji,this,"CumPrinc",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.daverage=function(e,t,n){return P(ji,this,"DAverage",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dcount=function(e,t,n){return P(ji,this,"DCount",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dcountA=function(e,t,n){return P(ji,this,"DCountA",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dget=function(e,t,n){return P(ji,this,"DGet",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dmax=function(e,t,n){return P(ji,this,"DMax",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dmin=function(e,t,n){return P(ji,this,"DMin",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dproduct=function(e,t,n){return P(ji,this,"DProduct",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dstDev=function(e,t,n){return P(ji,this,"DStDev",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dstDevP=function(e,t,n){return P(ji,this,"DStDevP",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dsum=function(e,t,n){return P(ji,this,"DSum",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dvar=function(e,t,n){return P(ji,this,"DVar",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dvarP=function(e,t,n){return P(ji,this,"DVarP",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.date=function(e,t,n){return P(ji,this,"Date",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.datevalue=function(e){return P(ji,this,"Datevalue",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.day=function(e){return P(ji,this,"Day",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.days=function(e,t){return P(ji,this,"Days",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.days360=function(e,t,n){return P(ji,this,"Days360",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.db=function(e,t,n,r,o){return P(ji,this,"Db",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dbcs=function(e){return P(ji,this,"Dbcs",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.ddb=function(e,t,n,r,o){return P(ji,this,"Ddb",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dec2Bin=function(e,t){return P(ji,this,"Dec2Bin",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dec2Hex=function(e,t){return P(ji,this,"Dec2Hex",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dec2Oct=function(e,t){return P(ji,this,"Dec2Oct",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.decimal=function(e,t){return P(ji,this,"Decimal",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.degrees=function(e){return P(ji,this,"Degrees",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.delta=function(e,t){return P(ji,this,"Delta",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.devSq=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"DevSq",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.disc=function(e,t,n,r,o){return P(ji,this,"Disc",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dollar=function(e,t){return P(ji,this,"Dollar",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dollarDe=function(e,t){return P(ji,this,"DollarDe",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.dollarFr=function(e,t){return P(ji,this,"DollarFr",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.duration=function(e,t,n,r,o,i){return P(ji,this,"Duration",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.ecma_Ceiling=function(e,t){return P(ji,this,"ECMA_Ceiling",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.edate=function(e,t){return P(ji,this,"EDate",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.effect=function(e,t){return P(ji,this,"Effect",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.eoMonth=function(e,t){return P(ji,this,"EoMonth",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.erf=function(e,t){return P(ji,this,"Erf",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.erfC=function(e){return P(ji,this,"ErfC",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.erfC_Precise=function(e){return P(ji,this,"ErfC_Precise",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.erf_Precise=function(e){return P(ji,this,"Erf_Precise",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.error_Type=function(e){return P(ji,this,"Error_Type",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.even=function(e){return P(ji,this,"Even",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.exact=function(e,t){return P(ji,this,"Exact",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.exp=function(e){return P(ji,this,"Exp",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.expon_Dist=function(e,t,n){return P(ji,this,"Expon_Dist",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.fvschedule=function(e,t){return P(ji,this,"FVSchedule",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.f_Dist=function(e,t,n,r){return P(ji,this,"F_Dist",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.f_Dist_RT=function(e,t,n){return P(ji,this,"F_Dist_RT",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.f_Inv=function(e,t,n){return P(ji,this,"F_Inv",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.f_Inv_RT=function(e,t,n){return P(ji,this,"F_Inv_RT",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.fact=function(e){return P(ji,this,"Fact",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.factDouble=function(e){return P(ji,this,"FactDouble",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.false=function(){return P(ji,this,"False",0,[],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.find=function(e,t,n){return P(ji,this,"Find",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.findB=function(e,t,n){return P(ji,this,"FindB",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.fisher=function(e){return P(ji,this,"Fisher",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.fisherInv=function(e){return P(ji,this,"FisherInv",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.fixed=function(e,t,n){return P(ji,this,"Fixed",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.floor_Math=function(e,t,n){return P(ji,this,"Floor_Math",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.floor_Precise=function(e,t){return P(ji,this,"Floor_Precise",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.fv=function(e,t,n,r,o){return P(ji,this,"Fv",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.gamma=function(e){return P(ji,this,"Gamma",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.gammaLn=function(e){return P(ji,this,"GammaLn",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.gammaLn_Precise=function(e){return P(ji,this,"GammaLn_Precise",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.gamma_Dist=function(e,t,n,r){return P(ji,this,"Gamma_Dist",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.gamma_Inv=function(e,t,n){return P(ji,this,"Gamma_Inv",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.gauss=function(e){return P(ji,this,"Gauss",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.gcd=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Gcd",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.geStep=function(e,t){return P(ji,this,"GeStep",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.geoMean=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"GeoMean",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.hlookup=function(e,t,n,r){return P(ji,this,"HLookup",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.harMean=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"HarMean",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.hex2Bin=function(e,t){return P(ji,this,"Hex2Bin",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.hex2Dec=function(e){return P(ji,this,"Hex2Dec",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.hex2Oct=function(e,t){return P(ji,this,"Hex2Oct",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.hour=function(e){return P(ji,this,"Hour",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.hypGeom_Dist=function(e,t,n,r,o){return P(ji,this,"HypGeom_Dist",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.hyperlink=function(e,t){return P(ji,this,"Hyperlink",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.iso_Ceiling=function(e,t){return P(ji,this,"ISO_Ceiling",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.if=function(e,t,n){return P(ji,this,"If",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imAbs=function(e){return P(ji,this,"ImAbs",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imArgument=function(e){return P(ji,this,"ImArgument",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imConjugate=function(e){return P(ji,this,"ImConjugate",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imCos=function(e){return P(ji,this,"ImCos",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imCosh=function(e){return P(ji,this,"ImCosh",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imCot=function(e){return P(ji,this,"ImCot",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imCsc=function(e){return P(ji,this,"ImCsc",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imCsch=function(e){return P(ji,this,"ImCsch",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imDiv=function(e,t){return P(ji,this,"ImDiv",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imExp=function(e){return P(ji,this,"ImExp",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imLn=function(e){return P(ji,this,"ImLn",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imLog10=function(e){return P(ji,this,"ImLog10",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imLog2=function(e){return P(ji,this,"ImLog2",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imPower=function(e,t){return P(ji,this,"ImPower",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imProduct=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"ImProduct",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imReal=function(e){return P(ji,this,"ImReal",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imSec=function(e){return P(ji,this,"ImSec",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imSech=function(e){return P(ji,this,"ImSech",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imSin=function(e){return P(ji,this,"ImSin",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imSinh=function(e){return P(ji,this,"ImSinh",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imSqrt=function(e){return P(ji,this,"ImSqrt",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imSub=function(e,t){return P(ji,this,"ImSub",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imSum=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"ImSum",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imTan=function(e){return P(ji,this,"ImTan",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.imaginary=function(e){return P(ji,this,"Imaginary",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.int=function(e){return P(ji,this,"Int",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.intRate=function(e,t,n,r,o){return P(ji,this,"IntRate",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.ipmt=function(e,t,n,r,o,i){return P(ji,this,"Ipmt",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.irr=function(e,t){return P(ji,this,"Irr",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isErr=function(e){return P(ji,this,"IsErr",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isError=function(e){return P(ji,this,"IsError",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isEven=function(e){return P(ji,this,"IsEven",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isFormula=function(e){return P(ji,this,"IsFormula",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isLogical=function(e){return P(ji,this,"IsLogical",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isNA=function(e){return P(ji,this,"IsNA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isNonText=function(e){return P(ji,this,"IsNonText",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isNumber=function(e){return P(ji,this,"IsNumber",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isOdd=function(e){return P(ji,this,"IsOdd",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isText=function(e){return P(ji,this,"IsText",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isoWeekNum=function(e){return P(ji,this,"IsoWeekNum",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.ispmt=function(e,t,n,r){return P(ji,this,"Ispmt",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.isref=function(e){return P(ji,this,"Isref",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.kurt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Kurt",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.large=function(e,t){return P(ji,this,"Large",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.lcm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Lcm",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.left=function(e,t){return P(ji,this,"Left",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.leftb=function(e,t){return P(ji,this,"Leftb",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.len=function(e){return P(ji,this,"Len",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.lenb=function(e){return P(ji,this,"Lenb",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.ln=function(e){return P(ji,this,"Ln",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.log=function(e,t){return P(ji,this,"Log",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.log10=function(e){return P(ji,this,"Log10",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.logNorm_Dist=function(e,t,n,r){return P(ji,this,"LogNorm_Dist",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.logNorm_Inv=function(e,t,n){return P(ji,this,"LogNorm_Inv",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.lookup=function(e,t,n){return P(ji,this,"Lookup",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.lower=function(e){return P(ji,this,"Lower",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.mduration=function(e,t,n,r,o,i){return P(ji,this,"MDuration",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.mirr=function(e,t,n){return P(ji,this,"MIrr",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.mround=function(e,t){return P(ji,this,"MRound",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.match=function(e,t,n){return P(ji,this,"Match",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.max=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Max",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.maxA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"MaxA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.median=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Median",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.mid=function(e,t,n){return P(ji,this,"Mid",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.midb=function(e,t,n){return P(ji,this,"Midb",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.min=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Min",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.minA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"MinA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.minute=function(e){return P(ji,this,"Minute",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.mod=function(e,t){return P(ji,this,"Mod",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.month=function(e){return P(ji,this,"Month",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.multiNomial=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"MultiNomial",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.n=function(e){return P(ji,this,"N",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.nper=function(e,t,n,r,o){return P(ji,this,"NPer",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.na=function(){return P(ji,this,"Na",0,[],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.negBinom_Dist=function(e,t,n,r){return P(ji,this,"NegBinom_Dist",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.networkDays=function(e,t,n){return P(ji,this,"NetworkDays",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.networkDays_Intl=function(e,t,n,r){return P(ji,this,"NetworkDays_Intl",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.nominal=function(e,t){return P(ji,this,"Nominal",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.norm_Dist=function(e,t,n,r){return P(ji,this,"Norm_Dist",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.norm_Inv=function(e,t,n){return P(ji,this,"Norm_Inv",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.norm_S_Dist=function(e,t){return P(ji,this,"Norm_S_Dist",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.norm_S_Inv=function(e){return P(ji,this,"Norm_S_Inv",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.not=function(e){return P(ji,this,"Not",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.now=function(){return P(ji,this,"Now",0,[],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.npv=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return P(ji,this,"Npv",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.numberValue=function(e,t,n){return P(ji,this,"NumberValue",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.oct2Bin=function(e,t){return P(ji,this,"Oct2Bin",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.oct2Dec=function(e){return P(ji,this,"Oct2Dec",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.oct2Hex=function(e,t){return P(ji,this,"Oct2Hex",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.odd=function(e){return P(ji,this,"Odd",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.oddFPrice=function(e,t,n,r,o,i,a,s,l){return P(ji,this,"OddFPrice",0,[e,t,n,r,o,i,a,s,l],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.oddFYield=function(e,t,n,r,o,i,a,s,l){return P(ji,this,"OddFYield",0,[e,t,n,r,o,i,a,s,l],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.oddLPrice=function(e,t,n,r,o,i,a,s){return P(ji,this,"OddLPrice",0,[e,t,n,r,o,i,a,s],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.oddLYield=function(e,t,n,r,o,i,a,s){return P(ji,this,"OddLYield",0,[e,t,n,r,o,i,a,s],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Or",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.pduration=function(e,t,n){return P(ji,this,"PDuration",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.percentRank_Exc=function(e,t,n){return P(ji,this,"PercentRank_Exc",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.percentRank_Inc=function(e,t,n){return P(ji,this,"PercentRank_Inc",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.percentile_Exc=function(e,t){return P(ji,this,"Percentile_Exc",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.percentile_Inc=function(e,t){return P(ji,this,"Percentile_Inc",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.permut=function(e,t){return P(ji,this,"Permut",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.permutationa=function(e,t){return P(ji,this,"Permutationa",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.phi=function(e){return P(ji,this,"Phi",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.pi=function(){return P(ji,this,"Pi",0,[],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.pmt=function(e,t,n,r,o){return P(ji,this,"Pmt",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.poisson_Dist=function(e,t,n){return P(ji,this,"Poisson_Dist",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.power=function(e,t){return P(ji,this,"Power",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.ppmt=function(e,t,n,r,o,i){return P(ji,this,"Ppmt",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.price=function(e,t,n,r,o,i,a){return P(ji,this,"Price",0,[e,t,n,r,o,i,a],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.priceDisc=function(e,t,n,r,o){return P(ji,this,"PriceDisc",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.priceMat=function(e,t,n,r,o,i){return P(ji,this,"PriceMat",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.product=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Product",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.proper=function(e){return P(ji,this,"Proper",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.pv=function(e,t,n,r,o){return P(ji,this,"Pv",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.quartile_Exc=function(e,t){return P(ji,this,"Quartile_Exc",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.quartile_Inc=function(e,t){return P(ji,this,"Quartile_Inc",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.quotient=function(e,t){return P(ji,this,"Quotient",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.radians=function(e){return P(ji,this,"Radians",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.rand=function(){return P(ji,this,"Rand",0,[],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.randBetween=function(e,t){return P(ji,this,"RandBetween",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.rank_Avg=function(e,t,n){return P(ji,this,"Rank_Avg",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.rank_Eq=function(e,t,n){return P(ji,this,"Rank_Eq",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.rate=function(e,t,n,r,o,i){return P(ji,this,"Rate",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.received=function(e,t,n,r,o){return P(ji,this,"Received",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.replace=function(e,t,n,r){return P(ji,this,"Replace",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.replaceB=function(e,t,n,r){return P(ji,this,"ReplaceB",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.rept=function(e,t){return P(ji,this,"Rept",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.right=function(e,t){return P(ji,this,"Right",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.rightb=function(e,t){return P(ji,this,"Rightb",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.roman=function(e,t){return P(ji,this,"Roman",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.round=function(e,t){return P(ji,this,"Round",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.roundDown=function(e,t){return P(ji,this,"RoundDown",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.roundUp=function(e,t){return P(ji,this,"RoundUp",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.rows=function(e){return P(ji,this,"Rows",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.rri=function(e,t,n){return P(ji,this,"Rri",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sec=function(e){return P(ji,this,"Sec",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sech=function(e){return P(ji,this,"Sech",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.second=function(e){return P(ji,this,"Second",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.seriesSum=function(e,t,n,r){return P(ji,this,"SeriesSum",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sheet=function(e){return P(ji,this,"Sheet",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sheets=function(e){return P(ji,this,"Sheets",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sign=function(e){return P(ji,this,"Sign",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sin=function(e){return P(ji,this,"Sin",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sinh=function(e){return P(ji,this,"Sinh",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.skew=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Skew",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.skew_p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Skew_p",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sln=function(e,t,n){return P(ji,this,"Sln",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.small=function(e,t){return P(ji,this,"Small",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sqrt=function(e){return P(ji,this,"Sqrt",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sqrtPi=function(e){return P(ji,this,"SqrtPi",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.stDevA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"StDevA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.stDevPA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"StDevPA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.stDev_P=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"StDev_P",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.stDev_S=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"StDev_S",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.standardize=function(e,t,n){return P(ji,this,"Standardize",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.substitute=function(e,t,n,r){return P(ji,this,"Substitute",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.subtotal=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return P(ji,this,"Subtotal",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sum=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Sum",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sumIf=function(e,t,n){return P(ji,this,"SumIf",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sumIfs=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return P(ji,this,"SumIfs",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.sumSq=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"SumSq",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.syd=function(e,t,n,r){return P(ji,this,"Syd",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.t=function(e){return P(ji,this,"T",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.tbillEq=function(e,t,n){return P(ji,this,"TBillEq",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.tbillPrice=function(e,t,n){return P(ji,this,"TBillPrice",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.tbillYield=function(e,t,n){return P(ji,this,"TBillYield",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.t_Dist=function(e,t,n){return P(ji,this,"T_Dist",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.t_Dist_2T=function(e,t){return P(ji,this,"T_Dist_2T",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.t_Dist_RT=function(e,t){return P(ji,this,"T_Dist_RT",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.t_Inv=function(e,t){return P(ji,this,"T_Inv",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.t_Inv_2T=function(e,t){return P(ji,this,"T_Inv_2T",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.tan=function(e){return P(ji,this,"Tan",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.tanh=function(e){return P(ji,this,"Tanh",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.text=function(e,t){return P(ji,this,"Text",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.time=function(e,t,n){return P(ji,this,"Time",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.timevalue=function(e){return P(ji,this,"Timevalue",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.today=function(){return P(ji,this,"Today",0,[],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.trim=function(e){return P(ji,this,"Trim",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.trimMean=function(e,t){return P(ji,this,"TrimMean",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.true=function(){return P(ji,this,"True",0,[],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.trunc=function(e,t){return P(ji,this,"Trunc",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.type=function(e){return P(ji,this,"Type",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.usdollar=function(e,t){return P(ji,this,"USDollar",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.unichar=function(e){return P(ji,this,"Unichar",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.unicode=function(e){return P(ji,this,"Unicode",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.upper=function(e){return P(ji,this,"Upper",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.vlookup=function(e,t,n,r){return P(ji,this,"VLookup",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.value=function(e){return P(ji,this,"Value",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.varA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"VarA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.varPA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"VarPA",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.var_P=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Var_P",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.var_S=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Var_S",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.vdb=function(e,t,n,r,o,i,a){return P(ji,this,"Vdb",0,[e,t,n,r,o,i,a],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.weekNum=function(e,t){return P(ji,this,"WeekNum",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.weekday=function(e,t){return P(ji,this,"Weekday",0,[e,t],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.weibull_Dist=function(e,t,n,r){return P(ji,this,"Weibull_Dist",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.workDay=function(e,t,n){return P(ji,this,"WorkDay",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.workDay_Intl=function(e,t,n,r){return P(ji,this,"WorkDay_Intl",0,[e,t,n,r],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.xirr=function(e,t,n){return P(ji,this,"Xirr",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.xnpv=function(e,t,n){return P(ji,this,"Xnpv",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.xor=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(ji,this,"Xor",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.year=function(e){return P(ji,this,"Year",0,[e],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.yearFrac=function(e,t,n){return P(ji,this,"YearFrac",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.yield=function(e,t,n,r,o,i,a){return P(ji,this,"Yield",0,[e,t,n,r,o,i,a],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.yieldDisc=function(e,t,n,r,o){return P(ji,this,"YieldDisc",0,[e,t,n,r,o],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.yieldMat=function(e,t,n,r,o,i){return P(ji,this,"YieldMat",0,[e,t,n,r,o,i],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype.z_Test=function(e,t,n){return P(ji,this,"Z_Test",0,[e,t,n],!1,!0,null,G(2,"ExcelApiUndo","1.39"))},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),F(t))||H(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),W(this,t,n)},t.prototype.toJSON=function(){return M(this,{},{})},t}(OfficeExtension.ClientObject);e.Functions=Mi,function(e){e.accessDenied="AccessDenied",e.apiNotFound="ApiNotFound",e.conflict="Conflict",e.emptyChartSeries="EmptyChartSeries",e.filteredRangeConflict="FilteredRangeConflict",e.formulaLengthExceedsLimit="FormulaLengthExceedsLimit",e.generalException="GeneralException",e.inactiveWorkbook="InactiveWorkbook",e.insertDeleteConflict="InsertDeleteConflict",e.invalidArgument="InvalidArgument",e.invalidBinding="InvalidBinding",e.invalidOperation="InvalidOperation",e.invalidReference="InvalidReference",e.invalidSelection="InvalidSelection",e.itemAlreadyExists="ItemAlreadyExists",e.itemNotFound="ItemNotFound",e.mergedRangeConflict="MergedRangeConflict",e.nonBlankCellOffSheet="NonBlankCellOffSheet",e.notImplemented="NotImplemented",e.openWorkbookLinksBlocked="OpenWorkbookLinksBlocked",e.operationCellsExceedLimit="OperationCellsExceedLimit",e.pivotTableRangeConflict="PivotTableRangeConflict",e.powerQueryRefreshResourceChallenge="PowerQueryRefreshResourceChallenge",e.rangeExceedsLimit="RangeExceedsLimit",e.rangeImageExceedsLimit="RangeImageExceedsLimit",e.refreshWorkbookLinksBlocked="RefreshWorkbookLinksBlocked",e.requestAborted="RequestAborted",e.responsePayloadSizeLimitExceeded="ResponsePayloadSizeLimitExceeded",e.unsupportedFeature="UnsupportedFeature",e.unsupportedFillType="UnsupportedFillType",e.unsupportedOperation="UnsupportedOperation",e.unsupportedSheet="UnsupportedSheet",e.invalidOperationInCellEditMode="InvalidOperationInCellEditMode"}(Ui=e.ErrorCodes||(e.ErrorCodes={})),e.Interfaces||(e.Interfaces={})}(Excel||(Excel={})),"undefined"!=typeof window&&window.OSF&&window.OSF._OfficeAppFactory&&window.OSF._OfficeAppFactory.getHostInfo&&window.OSF._OfficeAppFactory.getHostInfo()){var hostPlatform=window.OSF._OfficeAppFactory.getHostInfo().hostPlatform;"web"===hostPlatform&&(OfficeExtension._internalConfig.enablePreviewExecution=!0)}!function(e){if(!function(){try{return"object"==typeof process&&"[object process]"===String(process)}catch(e){return!1}}()&&!e.isOfficeReactNative()){try{e.Flights=e.OUtil.parseFlights(!0),e.DisabledChangeGates=e.OUtil.parseDisabledChangeGates(!0)}catch(e){}function t(){OSFPerformance.hostSpecificFileName=e.LoadScriptHelper.getHostBundleJsName(),Office.onReadyInternal((function(){OSFPerfUtil.sendPerformanceTelemetry()})),e._OfficeAppFactory.getHostInfo().hostLocale&&setTimeout((function(){e.OUtil.ensureOfficeStringsJs().catch((function(e){console.error(e)}))}),0)}e._OfficeAppFactory.bootstrap((function(){}),(function(e){e instanceof Error?console.warn(e.message):console.warn(JSON.stringify(e))})),"complete"===document.readyState||"interactive"===document.readyState?t():window.addEventListener("DOMContentLoaded",(function(e){t()}))}}(OSF||(OSF={})),OSFPerformance.hostInitializationEnd=OSFPerformance.now(),OSFPerformance.totalJSHeapSize=OSFPerformance.getTotalJSHeapSize(),OSFPerformance.usedJSHeapSize=OSFPerformance.getUsedJSHeapSize(),OSFPerformance.jsHeapSizeLimit=OSFPerformance.getJSHeapSizeLimit();