@univerjs-pro/edit-history-viewer 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3de555=_0x46ca;(function(_0x1dd6c0,_0xbf5ed1){const _0x55d9a2=_0x46ca,_0x2feb6e=_0x1dd6c0();while(!![]){try{const _0x308d3a=parseInt(_0x55d9a2(0x255))/0x1*(-parseInt(_0x55d9a2(0x14b))/0x2)+-parseInt(_0x55d9a2(0x1db))/0x3*(parseInt(_0x55d9a2(0x182))/0x4)+parseInt(_0x55d9a2(0x133))/0x5*(parseInt(_0x55d9a2(0x25c))/0x6)+parseInt(_0x55d9a2(0x2e5))/0x7+parseInt(_0x55d9a2(0x12f))/0x8*(parseInt(_0x55d9a2(0x198))/0x9)+parseInt(_0x55d9a2(0x21c))/0xa+-parseInt(_0x55d9a2(0x26d))/0xb;if(_0x308d3a===_0xbf5ed1)break;else _0x2feb6e['push'](_0x2feb6e['shift']());}catch(_0x4be3ac){_0x2feb6e['push'](_0x2feb6e['shift']());}}}(_0x534b,0xc5f57));var Fe=Object['defineProperty'],Ye=(_0x1d62ec,_0x22ba21,_0x150865)=>_0x22ba21 in _0x1d62ec?Fe(_0x1d62ec,_0x22ba21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x150865}):_0x1d62ec[_0x22ba21]=_0x150865,l=(_0x6f0669,_0x26b6db,_0x15649d)=>Ye(_0x6f0669,typeof _0x26b6db!=_0x3de555(0x24f)?_0x26b6db+'':_0x26b6db,_0x15649d);import{Disposable as _0x4ab5c3,LocaleType as _0x4b3dec,Inject as _0x4dc40f,UniverInstanceType as _0x5491c0,IUniverInstanceService as _0x158a83,ICommandService as _0x5b299a,IConfigService as _0x369d98,LocaleService as _0x4c407b,useDependency as _0x16416e,Injector as _0x2f9785,IPermissionService as _0x4fe229,connectInjector as _0x3f3d69,ObjectMatrix as _0x5efdee,debounce as _0x881d02,DisposableCollection as _0x48d332,toDisposable as _0x2cce47,DependentOn as _0x58200e,Plugin as _0x79775c,IAuthzIoService as _0x11466e}from'@univerjs/core';import{IImageIoService as _0x20a09a}from'@univerjs/drawing';import{IRenderManagerService as _0xfd9b60,Vector2 as _0x392745}from'@univerjs/engine-render';import{HTTPService as _0x15b46d,IHTTPImplementation as _0x80d92f,FetchHTTPImplementation as _0xab2f70}from'@univerjs/network';import{ICellEditorManagerService as _0xe83889,SheetSkeletonManagerService as _0x13d366,VIEWPORT_KEY as _0x3ef3c4,getCoordByCell as _0x482c4b,getSheetObject as _0x1e049e,UniverSheetsUIPlugin as _0x2a625e}from'@univerjs/sheets-ui';import{IMessageService as _0x533f09,IConfirmService as _0x274741,useObservable as _0x208e5e,IUIPartsService as _0x3295f4,BuiltInUIPart as _0x216ede,ComponentManager as _0x9005be,ISidebarService as _0x4ce9b0,IDialogService as _0x86499b}from'@univerjs/ui';import{RevertRevisionMutation as _0x137a27,CreateUnitMutation as _0x29b106,CompressMutationService as _0x17464f,transformSnapshotToWorkbookData as _0x4df6f0,ISnapshotServerService as _0x2ea981,parseProtocolChangeset as _0x38bbf7,isTransformMutationsSuccess as _0x456a2f,ITransformService as _0x1c3e28}from'@univerjs-pro/collaboration';import{SheetCollabCursorShape as _0x401e81,SnapshotServerOverHTTPService as _0x2e9c94,AuthzIoHttpService as _0x2f2f47,ImageIoService as _0x1302e4}from'@univerjs-pro/collaboration-client';import{MessageType as _0x25c557,Button as _0x2bfdc3,Tooltip as _0x445f48}from'@univerjs/design';import{InsertSheetMutation as _0xd3bb9,RemoveSheetMutation as _0x4d05a5,SetFrozenMutation as _0x40b7d6,AddWorksheetProtectionMutation as _0x98e3e2,AddRangeProtectionMutation as _0x301282,DeleteRangeProtectionMutation as _0x18d4d1,DeleteWorksheetProtectionMutation as _0x4f8780,WorkbookEditablePermission as _0x54eeb6,WorkbookRenameSheetPermission as _0x474501,WorkbookMoveSheetPermission as _0x4db365,WorkbookHideSheetPermission as _0x29cb18,SetWorksheetHideMutation as _0x6e820b,SetRangeValuesMutation as _0x5967d3,SetRangeProtectionMutation as _0x21c563,ReorderRangeMutation as _0x3ed16a,RemoveNumfmtMutation as _0x3888c5,SetNumfmtMutation as _0x9fff36,MoveColsMutation as _0x3db12f,MoveRowsMutation as _0x5be907,MoveRangeMutation as _0x3ee303,InsertColMutation as _0x96fabb,InsertRowMutation as _0x47e8de,AddWorksheetMergeMutation as _0x42d7e1,RangeMergeUtil as _0x4e0764,findAllRectangle as _0x5da2b6,SetWorksheetActiveOperation as _0x378c37}from'@univerjs/sheets';import{BehaviorSubject as _0x5e72fd,combineLatest as _0x4b2898,switchMap as _0x4bdbe7,map as _0x21a892,of as _0x1880b0,debounceTime as _0x1ff4cd,Subject as _0x2de2e3}from'rxjs';import{SetSheetsFilterRangeMutation as _0x85a8af}from'@univerjs/sheets-filter';import{AddDataValidationMutation as _0x4afef5,UpdateDataValidationMutation as _0x2020f9}from'@univerjs/data-validation';import{SetConditionalRuleMutation as _0x37e54a,AddConditionalRuleMutation as _0x21e0ec}from'@univerjs/sheets-conditional-formatting';import _0xa0e293,{forwardRef as _0x123c40,useRef as _0x459b2e,createElement as _0x4e573e,useCallback as _0xe9f68e,useState as _0x1e1514,Fragment as _0xb376ac}from'react';const we=_0x3de555(0x192),rs={};var is=Object[_0x3de555(0x199)],ns=Object['getOwnPropertyDescriptor'],as=(_0x23b39d,_0x4cc2ea,_0x483eff,_0x1324a0)=>{for(var _0x4c2270=_0x1324a0>0x1?void 0x0:_0x1324a0?ns(_0x4cc2ea,_0x483eff):_0x4cc2ea,_0x9cd9f2=_0x23b39d['length']-0x1,_0xf0d1ea;_0x9cd9f2>=0x0;_0x9cd9f2--)(_0xf0d1ea=_0x23b39d[_0x9cd9f2])&&(_0x4c2270=(_0x1324a0?_0xf0d1ea(_0x4cc2ea,_0x483eff,_0x4c2270):_0xf0d1ea(_0x4c2270))||_0x4c2270);return _0x1324a0&&_0x4c2270&&is(_0x4cc2ea,_0x483eff,_0x4c2270),_0x4c2270;},os=(_0x2fdecf,_0x2276ca)=>(_0x296274,_0xf57324)=>_0x2276ca(_0x296274,_0xf57324,_0x2fdecf);let U=class extends _0x4ab5c3{constructor(_0x4212c1){super(),this['_cellEditorManagerService']=_0x4212c1,this['_init']();}[_0x3de555(0x1c9)](){const _0x34aae7=_0x3de555;this[_0x34aae7(0x28e)](this[_0x34aae7(0x171)][_0x34aae7(0x23c)]['subscribe'](_0x370a24=>{const _0x523392=_0x34aae7;_0x370a24!=null&&_0x370a24[_0x523392(0x236)]&&this[_0x523392(0x171)][_0x523392(0x1cc)]({'show':!0x1});}));}};U=as([os(0x0,_0xe83889)],U);var G=(_0x57cde7=>(_0x57cde7[_0x57cde7[_0x3de555(0x1fe)]=0x0]='UNDEFINED',_0x57cde7[_0x57cde7['OK']=0x1]='OK',_0x57cde7[_0x57cde7[_0x3de555(0x131)]=0x2]=_0x3de555(0x131),_0x57cde7[_0x57cde7[_0x3de555(0x272)]=0x3]=_0x3de555(0x272),_0x57cde7[_0x57cde7[_0x3de555(0x183)]=0x4]=_0x3de555(0x183),_0x57cde7[_0x57cde7[_0x3de555(0x2e3)]=0x5]=_0x3de555(0x2e3),_0x57cde7[_0x57cde7[_0x3de555(0x286)]=0x6]=_0x3de555(0x286),_0x57cde7[_0x57cde7[_0x3de555(0x1d5)]=0x7]=_0x3de555(0x1d5),_0x57cde7[_0x57cde7[_0x3de555(0x22a)]=0x8]=_0x3de555(0x22a),_0x57cde7[_0x57cde7[_0x3de555(0x2dc)]=0x9]=_0x3de555(0x2dc),_0x57cde7[_0x57cde7['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3de555(0x2c8),_0x57cde7[_0x57cde7[_0x3de555(0x142)]=0x1771]=_0x3de555(0x142),_0x57cde7[_0x57cde7['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3de555(0x2cd),_0x57cde7[_0x57cde7[_0x3de555(0x1c3)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x57cde7[_0x57cde7[_0x3de555(0x1af)]=0x1b59]=_0x3de555(0x1af),_0x57cde7[_0x57cde7[_0x3de555(0x247)]=0x1b5a]=_0x3de555(0x247),_0x57cde7[_0x57cde7[_0x3de555(0x1ba)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x57cde7[_0x57cde7[_0x3de555(0x21f)]=0x1b5c]=_0x3de555(0x21f),_0x57cde7[_0x57cde7[_0x3de555(0x1f1)]=0x1b5d]=_0x3de555(0x1f1),_0x57cde7[_0x57cde7[_0x3de555(0x1bc)]=0x1f41]=_0x3de555(0x1bc),_0x57cde7[_0x57cde7[_0x3de555(0x20b)]=0x2329]=_0x3de555(0x20b),_0x57cde7[_0x57cde7['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3de555(0x189),_0x57cde7[_0x57cde7[_0x3de555(0x27d)]=0x232b]=_0x3de555(0x27d),_0x57cde7[_0x57cde7[_0x3de555(0x1b7)]=0x232c]=_0x3de555(0x1b7),_0x57cde7[_0x57cde7[_0x3de555(0x24a)]=0x232d]=_0x3de555(0x24a),_0x57cde7[_0x57cde7[_0x3de555(0x2da)]=0x2711]=_0x3de555(0x2da),_0x57cde7[_0x57cde7[_0x3de555(0x2be)]=0x2712]=_0x3de555(0x2be),_0x57cde7[_0x57cde7[_0x3de555(0x2a2)]=0x2713]=_0x3de555(0x2a2),_0x57cde7[_0x57cde7['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x3de555(0x25d),_0x57cde7[_0x57cde7[_0x3de555(0x2cb)]=-0x1]='UNRECOGNIZED',_0x57cde7))(G||{}),j=(_0x112231=>(_0x112231[_0x112231[_0x3de555(0x153)]=0x0]=_0x3de555(0x153),_0x112231[_0x112231[_0x3de555(0x260)]=0x1]=_0x3de555(0x260),_0x112231[_0x112231[_0x3de555(0x193)]=0x2]=_0x3de555(0x193),_0x112231[_0x112231[_0x3de555(0x1cd)]=0x3]=_0x3de555(0x1cd),_0x112231[_0x112231['UNIVER_PROJECT']=0x4]=_0x3de555(0x1ff),_0x112231[_0x112231[_0x3de555(0x2cb)]=-0x1]=_0x3de555(0x2cb),_0x112231))(j||{}),O=(_0x1f5a6a=>(_0x1f5a6a[_0x1f5a6a['View']=0x0]=_0x3de555(0x137),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1a5)]=0x1]=_0x3de555(0x1a5),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1b9)]=0x2]=_0x3de555(0x1b9),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x245)]=0x3]=_0x3de555(0x245),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x257)]=0x4]=_0x3de555(0x257),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1e6)]=0x5]=_0x3de555(0x1e6),_0x1f5a6a[_0x1f5a6a['Copy']=0x6]=_0x3de555(0x16f),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x280)]=0x7]=_0x3de555(0x280),_0x1f5a6a[_0x1f5a6a['Export']=0x8]=_0x3de555(0x15c),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x150)]=0x9]=_0x3de555(0x150),_0x1f5a6a[_0x1f5a6a['DeleteWorksheet']=0xa]=_0x3de555(0x2ba),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x23a)]=0xb]=_0x3de555(0x23a),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x289)]=0xc]='RenameWorksheet',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1a6)]=0xd]='CreateWorksheet',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1a0)]=0xe]=_0x3de555(0x1a0),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x29a)]=0xf]=_0x3de555(0x29a),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x28d)]=0x10]=_0x3de555(0x28d),_0x1f5a6a[_0x1f5a6a['Sort']=0x11]='Sort',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x2a3)]=0x12]=_0x3de555(0x2a3),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x180)]=0x13]=_0x3de555(0x180),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x2ca)]=0x14]=_0x3de555(0x2ca),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x145)]=0x15]=_0x3de555(0x145),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x2dd)]=0x16]=_0x3de555(0x2dd),_0x1f5a6a[_0x1f5a6a['ViemRwHgtClWdt']=0x17]='ViemRwHgtClWdt',_0x1f5a6a[_0x1f5a6a['ViewFilter']=0x18]=_0x3de555(0x26b),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x253)]=0x19]='MoveSheet',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1dc)]=0x1a]=_0x3de555(0x1dc),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1ca)]=0x1b]=_0x3de555(0x1ca),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x173)]=0x1c]=_0x3de555(0x173),_0x1f5a6a[_0x1f5a6a['RenameSheet']=0x1d]='RenameSheet',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x241)]=0x1e]=_0x3de555(0x241),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x275)]=0x1f]='SelectProtectedCells',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x2ce)]=0x20]=_0x3de555(0x2ce),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1e1)]=0x21]=_0x3de555(0x1e1),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x261)]=0x22]=_0x3de555(0x261),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x15d)]=0x23]=_0x3de555(0x15d),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x211)]=0x24]='SetColumnStyle',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x213)]=0x25]=_0x3de555(0x213),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x166)]=0x26]=_0x3de555(0x166),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x29d)]=0x27]=_0x3de555(0x29d),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x18f)]=0x28]='DeleteColumn',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x1fc)]=0x29]=_0x3de555(0x1fc),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x2bb)]=0x2a]=_0x3de555(0x2bb),_0x1f5a6a[_0x1f5a6a[_0x3de555(0x22e)]=0x2b]=_0x3de555(0x22e),_0x1f5a6a[_0x1f5a6a['ViewHistory']=0x2c]='ViewHistory',_0x1f5a6a[_0x1f5a6a[_0x3de555(0x2cb)]=-0x1]='UNRECOGNIZED',_0x1f5a6a))(O||{});function cs(_0x349bcd){const _0x2c3208=_0x3de555;return!!(_0x349bcd&&_0x349bcd[_0x2c3208(0x1c1)]&&_0x349bcd[_0x2c3208(0x1c1)]!==G['OK']&&_0x349bcd[_0x2c3208(0x1c1)]!=='OK');}const ne=(_0x229ff4,_0x150aec)=>{const _0x5475e0=_0x3de555;if(!_0x229ff4)return{'date':'','time':''};const _0x38a76f=new Date(_0x229ff4),_0x378450=_0x38a76f[_0x5475e0(0x291)]()[_0x5475e0(0x2b8)]('T')[0x0];switch(_0x150aec){case _0x4b3dec[_0x5475e0(0x148)]:return{'date':ee(_0x378450,_0x150aec),'time':_0x38a76f[_0x5475e0(0x214)]()+':'+String(_0x38a76f[_0x5475e0(0x239)]())[_0x5475e0(0x28c)](0x2,'0')};default:return{'date':ee(_0x378450,_0x150aec),'time':_0x38a76f[_0x5475e0(0x214)]()+':'+_0x38a76f[_0x5475e0(0x239)]()};}},ls=(_0x2be722,_0x49c1a1)=>{const _0x3aa45a=_0x3de555,_0x30d7e4=_0x2be722[_0x3aa45a(0x269)]||_0x49c1a1['t'](_0x3aa45a(0x1f3));if(_0x2be722[_0x3aa45a(0x276)]['some'](_0x7a5b8c=>_0x7a5b8c===_0x137a27['id'])&&_0x2be722[_0x3aa45a(0x233)]){const _0x29c2f8=ne(_0x2be722[_0x3aa45a(0x233)],_0x49c1a1[_0x3aa45a(0x138)]()),_0x1a722b=_0x29c2f8['date']+'\x20'+_0x29c2f8['time'];return _0x30d7e4+'\x20'+_0x49c1a1['t'](_0x3aa45a(0x13b))+'\x20'+_0x1a722b+'\x20'+_0x49c1a1['t'](_0x3aa45a(0x212));}const _0x277548=us(_0x2be722),_0x463786=_0x277548[_0x3aa45a(0x26f)]===0x1?_0x49c1a1['t'](_0x277548[0x0]):''+_0x49c1a1['t'](_0x277548[0x0])+_0x49c1a1['t'](_0x3aa45a(0x227));return _0x30d7e4+'\x20'+_0x463786;};function _0x534b(){const _0x2509ab=['_getActiveSubUnitId','currentColor','endColumn','user',':\x20(','ViewFilter','center','13398517hhzVvY','makeDirty','length','data','Entered','PERMISSION_DENIED','bottom','getVpScrollXYInfoByPosToVp','SelectProtectedCells','commands','all','UNIVER_EDIT_HISTORY_VIEWER_PLUGIN','univer-version-list-panel','fill','push','trim','LICENSE_IMPORT_SIZE_EXCEEDED','_currentVersionDiff$','parse','Share','getUnitId','_initPanel','_combineRanges','entities','_sheetSkeletonManagerService','ALREADY_EXISTS','getMember','toString','RenameWorksheet','evenodd','_canRevert','padStart','InsertHyperlink','disposeWithMe','rule','history-mask','toISOString','_transformService','_versions$','flex','/list?length=20','userId','_historyFetchService','loadMoreVersions','stopPropagation','EditWorksheetCell','updatePermissionPoint','unitId','DeleteRow','#fff','keys','loadingState$','_localeService','YUUMI_RATE_OVER_LIMIT','Filter','cellValue','getCurrentUnitForType','_loadingState$','span','getCellPositionByOffset','entries','loading','100%','_historyManagerService','init','number','params','_config','fetchMissingChangesets','_snapshotServerService','url(#$1','univer-version-item','univer-version-date','_commandService','createUnit','split','deleteProtection','DeleteWorksheet','Delete','historyViewHeaderRevert','hideMask','YUUMI_URL_COL_OUT_OF_RANGE','map','loadSheet','_revertRevision$','apply','path','next','hidden','confirm-revert-revision','getRelativeToViewportCoord','CHANGESET_REVISION_CONFILICT','_configService','FloatImg','UNRECOGNIZED','editHistory.panel.revertConfirm','SNAPSHOT_HAS_BEEN_REMOVED','SelectUnProtectedCells','userID','triggerRevert','row','time','editHistory.panel.title','rect','getConfig','_lastLabel','_dialogOptions$','display','_initRender','YUUMI_UNABLE_LOAD_URL','_messageService','COMPLETION_FINISHED','RwHgtClWdt','loaded','blocks','forEach','startColumn','_diffs','UNAUTHENTICATED','blockMeta','5004027rGTAMF','concat','setFilter','getUnitOnRev','date','subType','_permissionService','univerjs-icon\x20univerjs-icon-','8ZZfENQ','_workbookDataCache','INTERNAL_ERROR','empty','2860GcQawt','_createUnit','setDV','_maskContainer','View','getCurrentLocale','flex\x20items-center\x20justify-center','m1Prime','editHistory.action.revertSheetPrefix','ensureVersion','top','extend','get','/universer-api/history','endRev','SNAPSHOT_INVALID_SNAPSHOT','registerRenderModule','colorChannel1','History','RestoreSingle','univer-version-item-header','ZH_CN','pipe','_versionDiffService','509506EbDhzD','add','addProtection','block','&lastLabel=','MoveWorksheet','getViewport','dispose','UNIVER_UNKNOWN','Loading','Info','Init','FromArray','_updateDiffMarks','_context','syncExecuteCommand','svg','Export','SetRowStyle','now','body','univer-version-item-content','_getAPIPrefix','_openPanel','createElement','fetchThroughInterceptors','substring','InsertColumn','24px','_lastPointer','set','editHistory.panel.revertConfirmText','[HistoryFetchService]:\x20wrong\x20rev\x20from\x20the\x20server!','reduce','BackSingle','_injector','Copy','subscribe','_cellEditorManagerService','1em','CopySheet','M6.42416\x204.42417C6.65847\x204.18985\x206.65847\x203.80995\x206.42416\x203.57564C6.18984\x203.34132\x205.80994\x203.34132\x205.57563\x203.57564L1.57564\x207.57564C1.34132\x207.80995\x201.34132\x208.18985\x201.57564\x208.42417L5.57563\x2012.4242C5.80994\x2012.6585\x206.18984\x2012.6585\x206.42416\x2012.4242C6.65847\x2012.1899\x206.65847\x2011.81\x206.42416\x2011.5756L3.44843\x208.5999H14C14.3314\x208.5999\x2014.6\x208.33127\x2014.6\x207.9999C14.6\x207.66853\x2014.3314\x207.3999\x2014\x207.3999H3.44843L6.42416\x204.42417Z','univer-version-list-loading-icon','asObservable','tag','getVersions','use','values','indexOf','univer-history-view-header-back-text','absolute','Loaded','dateString','PivotTable','_sidebarDisposable','6896iMKrBs','NOT_FOUND','VIRTUAL_VERSION_NOW','editHistory.action.','showMask','Today','executeCommand','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','div','insertSheet','anonymous','workbook','_confirmService','DeleteColumn','_diffRangesMap','loadingState','edit-history-viewer.config','UNIVER_SHEET','currentVersion','getVersion','defIds','function','8790894OUjUqg','defineProperty','active','style','getOwnPropertySymbols','getCurrent','primary','endRevision','SetWorksheetStyle','versionListLoadingIcon','children','_removeDiffMarks','getOwnPropertyDescriptor','Edit','CreateWorksheet','position','_currentVersion$','_univerInstanceService','Error','close','_unitId$','getCurrentVersion','_componentManager','APPLY_REJECT','_maskElement','value','_extractRanges','name','isArray','versionItemHeaderExpand','action','LICENSE_EXPORT_SIZE_EXCEEDED','confirm','ManageCollaborator','APPLY_REVISION_CONFILICT','url(#restore-single_clip0_1247_2)','CONNECTOR_DATA_TOO_LARGE','_fetching','editHistory.panel.currentVersion','subUnitId','setConfig','code','getDeserializedSheetBlock','ENSURE_SNAPSHOT_EXECUTION','defs','M8.00695\x2014.9998C8.00461\x2014.9999\x208.00227\x2014.9999\x207.99993\x2014.9999C4.13397\x2014.9999\x201\x2011.8659\x201\x207.99995C1\x204.13624\x204.13035\x201.00365\x207.99321\x201.00003C7.9955\x201.00001\x207.99779\x201\x208.00008\x201C11.866\x201\x2015\x204.13397\x2015\x207.99993C15\x2011.8636\x2011.8697\x2014.9961\x208.00695\x2014.9998ZM13.3569\x208.01503C13.3568\x208.01001\x2013.3568\x208.00499\x2013.3568\x207.99995C13.3568\x205.04144\x2010.9584\x202.64309\x207.99993\x202.64309C5.04645\x202.64309\x202.65123\x205.03327\x202.64308\x207.98484C2.64317\x207.98986\x202.64322\x207.99489\x202.64322\x207.99993C2.64322\x2010.9584\x205.04157\x2013.3568\x208.00008\x2013.3568C10.9536\x2013.3568\x2013.3488\x2010.9666\x2013.3569\x208.01503Z','univer-active','prototype','assign','_init','HideSheet','getInterceptPoints','setState','UNIVER_SLIDE','xlink:href','pluginName','_hasMore','historyViewHeader','currentVersion$','getElementById','ranges','INVALID_ARGUMENT','revertRevision$','univer-version-item-header-time-tag','versionItemHeaderTimeTag','idSuffix','range','438QEVGHH','DeleteSheet','_members','editHistory.panel.currentUser','registerComponent','text-gray-500','SetCellStyle','univer-version-item-header-expand','[HistoryFetchService]:\x20request\x20snapshot\x20error!','setCF','string','Comment','onRendered','then','exited','flat','_status$','_sidebarService','onStarting','univer-version-item-header-revert','className','VIEW_MAIN','APPLY_DUPLICATED','versions','editHistory.panel.unknownUser','0\x200\x2016\x2017','closeAll','_updateVersions','historyViewHeaderBack','_createMask','includes','triggerLoadVersions','register','EditExtraObject','startRow','UNDEFINED','UNIVER_PROJECT','disposeUnit','focusUnit','column','triggerLoadSheet','back-single','RenameSheet','width','restore-single_clip0_1247_2','editHistory.panel.listFetchError','editHistory.panel.revertDesc','call','LICENSE_MAX_UNITS_EXCEEDED','versionListPanelContent','_historyContainerId','status','currentVersionDiff$','createSheet','SetColumnStyle','editHistory.action.revertSheetSuffix','InsertRow','getHours','univer-version-list-loading','_initActiveSwitch','append','univer-history-view-header-back','open','hasOwnProperty','M2.06678\x203.37926C2.0668\x201.94333\x203.23085\x200.779297\x204.66678\x200.779297H9.44256C10.1796\x200.779297\x2010.8821\x201.09213\x2011.3751\x201.63999L13.2659\x203.74079C13.6955\x204.21822\x2013.9333\x204.83779\x2013.9333\x205.4801V12.7126C13.9333\x2014.1486\x2012.7692\x2015.3126\x2011.3333\x2015.3126H4.66665C3.2307\x2015.3126\x202.06663\x2014.1486\x202.06665\x2012.7126L2.06678\x203.37926ZM4.66678\x201.9793C3.89359\x201.9793\x203.26679\x202.60609\x203.26678\x203.37928L3.26665\x2012.7126C3.26664\x2013.4858\x203.89344\x2014.1126\x204.66665\x2014.1126H11.3333C12.1065\x2014.1126\x2012.7333\x2013.4858\x2012.7333\x2012.7126V5.4801C12.7333\x205.44882\x2012.7322\x205.41764\x2012.7302\x205.3866H10.7985C9.91488\x205.3866\x209.19853\x204.67026\x209.19853\x203.78661V1.9793H4.66678ZM10.4832\x202.44275L12.0526\x204.1866H10.7985C10.5776\x204.1866\x2010.3985\x204.00752\x2010.3985\x203.78661V2.35649C10.4279\x202.38389\x2010.4561\x202.41266\x2010.4832\x202.44275Z','6349360EahXwp','replace','clear','APPLY_PERMISSION_DENIED','univer-version-list-panel-content','_httpService','forValue','entered','_renderManagerService','editHistory.info.loading','endRow','editHistory.action.etc','currentSkeleton$','univer-loading-spin','TOO_MANY_REQUESTS','transformMutations','rgba(58,\x2096,\x20247,\x200.20)','users','RecoverHistory','_compressMutationService','subscribeEvent','M7.41252\x2010.6196C7.64683\x2010.3852\x207.64683\x2010.0053\x207.41252\x209.77103L6.77012\x209.12863H9.67836C9.89927\x209.12863\x2010.0784\x209.30772\x2010.0784\x209.52863V11.1953C10.0784\x2011.5267\x2010.347\x2011.7953\x2010.6784\x2011.7953C11.0097\x2011.7953\x2011.2784\x2011.5267\x2011.2784\x2011.1953V9.52863C11.2784\x208.64497\x2010.562\x207.92863\x209.67836\x207.92863H6.77012L7.41252\x207.28623C7.64683\x207.05191\x207.64683\x206.67201\x207.41252\x206.4377C7.1782\x206.20338\x206.79831\x206.20338\x206.56399\x206.4377L4.89732\x208.10437C4.66301\x208.33868\x204.66301\x208.71858\x204.89732\x208.95289L6.56399\x2010.6196C6.79831\x2010.8539\x207.1782\x2010.8539\x207.41252\x2010.6196Z','filter','recoverTime','_loadingMessage','versions$','show','restore-single','none','getMinutes','HideWorksheet','interceptor','state$','attrs','_transformMutationByOrder','onPointerMove$','find','CreateSheet','rules','permissionPointUpdate$','rev','Print','_uiPartsService','APPLY_NON_SEQUENTIAL_REVISION','0\x200\x2016\x2016','canRevert','LICENSE_DISTRO_REJECTED','HEADER','justifyContent','onSteady','rgba(225,\x20225,\x20225,\x200.5)','symbol','versionItemContent','merge','clipPath','MoveSheet','setValue','1sbMPhI','history-panel','Duplicate','error','editHistory.header.revert','zIndex','unitId$','2190KopZbl','YUUMI_SUBSCRIPTION_NOT_FOUND','mutations','_initMaskContainer','UNIVER_DOC','SetCellValue','random','displayName','height','has'];_0x534b=function(){return _0x2509ab;};return _0x534b();}function us(_0x49dd7c){const _0x280e62=_0x3de555;if(_0x49dd7c[_0x280e62(0x276)]['length']===0x0)return[''];const _0x14b560=_0x280e62(0x185),_0x53f1e5=_0x14b560+'editSheet',_0x107d32=[{'id':_0x29b106['id'],'action':_0x14b560+_0x280e62(0x210)},{'id':_0x137a27['id'],'action':_0x14b560+'revertSheet'},{'id':_0xd3bb9['id'],'action':_0x14b560+_0x280e62(0x18b)},{'id':_0x4d05a5['id'],'action':_0x14b560+'removeSheet'},{'id':_0x40b7d6['id'],'action':_0x14b560+'setFrozen'},{'id':_0x85a8af['id'],'action':_0x14b560+_0x280e62(0x2e7)},{'id':_0x4afef5['id'],'action':_0x14b560+_0x280e62(0x135)},{'id':_0x2020f9['id'],'action':_0x14b560+_0x280e62(0x135)},{'id':_0x37e54a['id'],'action':_0x14b560+_0x280e62(0x1e4)},{'id':_0x21e0ec['id'],'action':_0x14b560+_0x280e62(0x1e4)},{'id':_0x98e3e2['id'],'action':_0x14b560+_0x280e62(0x14d)},{'id':_0x301282['id'],'action':_0x14b560+_0x280e62(0x14d)},{'id':_0x18d4d1['id'],'action':_0x14b560+_0x280e62(0x2b9)},{'id':_0x4f8780['id'],'action':_0x14b560+'deleteProtection'}][_0x280e62(0x232)](_0x40cc7d=>_0x49dd7c[_0x280e62(0x276)][_0x280e62(0x1f9)](_0x40cc7d['id']));return _0x107d32!=null&&_0x107d32[_0x280e62(0x26f)]?_0x107d32[_0x280e62(0x2bf)](_0x2f4e04=>_0x2f4e04[_0x280e62(0x1b6)]):[_0x53f1e5];}function ee(_0x502a15,_0x123412){const _0x26d6f4=_0x3de555,[_0x57eb66,_0x2be9b2,_0x3ddfa6]=new Date()[_0x26d6f4(0x291)]()[_0x26d6f4(0x2b8)]('T')[0x0][_0x26d6f4(0x2b8)]('-'),[_0x1c245d,_0x421808,_0x3c9934]=_0x502a15[_0x26d6f4(0x2b8)]('-'),_0x3b50fd=_0x57eb66===_0x1c245d&&_0x2be9b2===_0x421808&&_0x3ddfa6===_0x3c9934;let _0x4d60fa='',_0x386ded='',_0x461869='';switch(_0x123412){case _0x4b3dec['ZH_CN']:return _0x3b50fd?'今天':(_0x4d60fa=_0x57eb66===_0x1c245d?'':_0x1c245d+'年',_0x386ded=_0x421808+'月',_0x461869=_0x3c9934+'日',''+_0x4d60fa+_0x386ded+_0x461869);default:return _0x3b50fd?_0x26d6f4(0x187):(_0x4d60fa=_0x57eb66===_0x1c245d?'':_0x1c245d+'-',_0x386ded=_0x421808+'-',_0x461869=''+_0x3c9934,''+_0x4d60fa+_0x386ded+_0x461869);}}function hs(_0x3579c2){const _0xbfe34b=_0x3de555;return _0x3579c2?_0x3579c2[_0xbfe34b(0x16c)]((_0x1fd788,_0x3f0859)=>{const _0x46f429=_0xbfe34b,_0x2f5839=new Date(_0x3f0859[_0x46f429(0x2d2)])[_0x46f429(0x291)]()['split']('T')[0x0];return _0x1fd788[_0x46f429(0x26f)]>0x0&&_0x1fd788[_0x1fd788[_0x46f429(0x26f)]-0x1][_0x46f429(0x17f)]===_0x2f5839?_0x1fd788[_0x1fd788[_0x46f429(0x26f)]-0x1][_0x46f429(0x1f2)][_0x46f429(0x27b)](_0x3f0859):_0x1fd788[_0x46f429(0x27b)]({'dateString':_0x2f5839,'versions':[_0x3f0859]}),_0x1fd788;},[]):[];}var ds=Object[_0x3de555(0x199)],_s=Object[_0x3de555(0x1a4)],vs=(_0x398357,_0x5d66d4,_0x2a0445,_0x3303c0)=>{const _0x482d2a=_0x3de555;for(var _0x39de61=_0x3303c0>0x1?void 0x0:_0x3303c0?_s(_0x5d66d4,_0x2a0445):_0x5d66d4,_0x5355e5=_0x398357[_0x482d2a(0x26f)]-0x1,_0x5f47d5;_0x5355e5>=0x0;_0x5355e5--)(_0x5f47d5=_0x398357[_0x5355e5])&&(_0x39de61=(_0x3303c0?_0x5f47d5(_0x5d66d4,_0x2a0445,_0x39de61):_0x5f47d5(_0x39de61))||_0x39de61);return _0x3303c0&&_0x39de61&&ds(_0x5d66d4,_0x2a0445,_0x39de61),_0x39de61;},N=(_0x205e89,_0x19c151)=>(_0x1c0380,_0x3a88bc)=>_0x19c151(_0x1c0380,_0x3a88bc,_0x205e89);const ms=_0x3de555(0x140);let W=class extends _0x4ab5c3{constructor(_0x419c27,_0x47462f,_0x2751ff,_0x1975b5,_0x32054e,_0x3dca37){const _0x27290c=_0x3de555;super(),l(this,_0x27290c(0x130),new Map()),(this[_0x27290c(0x2b2)]=_0x419c27,this['_univerInstanceService']=_0x47462f,this['_commandService']=_0x2751ff,this[_0x27290c(0x2c9)]=_0x1975b5,this[_0x27290c(0x221)]=_0x32054e,this[_0x27290c(0x22f)]=_0x3dca37);}[_0x3de555(0x152)](){const _0x52bb8b=_0x3de555;this[_0x52bb8b(0x130)][_0x52bb8b(0x21e)](),super[_0x52bb8b(0x152)]();}async[_0x3de555(0x178)](_0x437500,_0x51d5e1){const _0x40d8f4=_0x3de555,_0x900ef7=this[_0x40d8f4(0x161)]()+'/'+_0x437500+_0x40d8f4(0x295)+(_0x51d5e1?_0x40d8f4(0x14f)+_0x51d5e1:'');try{const _0x4f47e5=(await this['_httpService']['get'](_0x900ef7))[_0x40d8f4(0x15f)];if(_0x4f47e5&&_0x4f47e5[_0x40d8f4(0x258)]&&_0x4f47e5[_0x40d8f4(0x258)][_0x40d8f4(0x1c1)]===G['OK']){const {hasMore:_0x572645,lastLabel:_0x460035}=_0x4f47e5,_0x4f4e93=fs(_0x4f47e5),_0x4b8fd3=_0x4f47e5[_0x40d8f4(0x284)][_0x40d8f4(0x22d)];return{'hasMore':_0x572645,'lastLabel':_0x460035,'versions':_0x4f4e93,'members':_0x4b8fd3};}}catch(_0x4b81f3){console[_0x40d8f4(0x258)](_0x4b81f3);}return null;}['_getAPIPrefix'](){const _0x2abcab=_0x3de555;var _0x2a85bc;const _0x5939e5=this[_0x2abcab(0x2c9)][_0x2abcab(0x2d5)](we);return(_0x2a85bc=_0x5939e5==null?void 0x0:_0x5939e5['historyListServerUrl'])!=null?_0x2a85bc:ms;}async[_0x3de555(0x2c0)](_0x52fc08,_0x4705da,_0x48996a){const _0x410f7b=_0x3de555;var _0x2729aa,_0x1f365b;_0x48996a===void 0x0&&(_0x48996a={}),this[_0x410f7b(0x130)][_0x410f7b(0x265)](_0x52fc08)||this[_0x410f7b(0x130)][_0x410f7b(0x169)](_0x52fc08,new Map());const {snapshot:_0xb3e4b8,changesets:_0x27f81a,error:_0x125ff7}=await this['_snapshotServerService'][_0x410f7b(0x2e8)](_0x48996a,{'unitID':_0x52fc08,'type':j[_0x410f7b(0x193)],'revision':_0x4705da});if(cs(_0x125ff7)||!_0xb3e4b8||!_0xb3e4b8[_0x410f7b(0x18d)])throw new Error(_0x410f7b(0x1e3));const _0x22f912=(_0x2729aa=_0x27f81a==null?void 0x0:_0x27f81a[_0x410f7b(0x26f)])!=null?_0x2729aa:0x0;if(_0x4705da!==0x0&&_0xb3e4b8[_0x410f7b(0x244)]+_0x22f912!==_0x4705da)throw new Error(_0x410f7b(0x16b));const {workbook:_0x36c3e3}=_0xb3e4b8,_0x2adb87=_0x36c3e3[_0x410f7b(0x2e4)]?Object[_0x410f7b(0x2a9)](_0x36c3e3[_0x410f7b(0x2e4)])[_0x410f7b(0x2bf)](([_0x21ccc,_0x282c4d])=>{const _0x1ffbd2=_0x410f7b;var _0x1bdef1,_0x1e8eb5;return(_0x1e8eb5=(_0x1bdef1=_0x282c4d[_0x1ffbd2(0x2df)])==null?void 0x0:_0x1bdef1['map'](_0x498317=>_0x498317))!=null?_0x1e8eb5:[];})[_0x410f7b(0x1ea)]():[],_0x8cae59=(await Promise[_0x410f7b(0x277)](_0x2adb87[_0x410f7b(0x2bf)](_0x17d647=>this[_0x410f7b(0x2b2)][_0x410f7b(0x1c2)](_0x48996a,{'unitID':_0x52fc08,'type':j[_0x410f7b(0x193)],'blockID':_0x17d647})[_0x410f7b(0x1e8)](_0x4ae36d=>_0x4ae36d[_0x410f7b(0x14e)]))))[_0x410f7b(0x232)](_0x2c1e12=>!!_0x2c1e12),_0x1fc51a=_0x4df6f0(_0xb3e4b8,_0x8cae59,_0x48996a);return(_0x1f365b=this['_workbookDataCache'][_0x410f7b(0x13f)](_0x52fc08))==null||_0x1f365b[_0x410f7b(0x169)](_0x4705da,{'workbook':_0x1fc51a}),new Promise(_0x4eebc8=>{const _0x3009f6=_0x410f7b,_0x1f138a=this[_0x3009f6(0x1a9)][_0x3009f6(0x2a5)](_0x5491c0[_0x3009f6(0x193)]);_0x1f138a?(this['_univerInstanceService'][_0x3009f6(0x200)](_0x1f138a[_0x3009f6(0x281)]()),setTimeout(()=>{const _0x1f9191=_0x3009f6;this[_0x1f9191(0x134)](_0x1fc51a,_0x27f81a),_0x4eebc8(!0x0);},0x0)):(this[_0x3009f6(0x134)](_0x1fc51a,_0x27f81a),_0x4eebc8(!0x0));});}[_0x3de555(0x134)](_0x31b514,_0x18083d){const _0x4b6a85=_0x3de555,_0x5393ba=this[_0x4b6a85(0x1a9)][_0x4b6a85(0x2b7)](_0x5491c0[_0x4b6a85(0x193)],_0x31b514);this[_0x4b6a85(0x1a9)][_0x4b6a85(0x201)](_0x5393ba['getUnitId']());const _0x394a7c=this[_0x4b6a85(0x22f)][_0x4b6a85(0x23b)][_0x4b6a85(0x164)](this[_0x4b6a85(0x22f)]['interceptor'][_0x4b6a85(0x1cb)]()['COMPRESS_MUTATION_APPLY']);return _0x18083d==null||_0x18083d[_0x4b6a85(0x2e0)](_0x10ca5c=>{const _0x96174=_0x4b6a85,_0xa79ad0=_0x10ca5c[_0x96174(0x25e)]['map'](_0x1b838d=>({'id':_0x1b838d['id'],'params':JSON[_0x96174(0x27f)](_0x1b838d[_0x96174(0x270)])}));({..._0x10ca5c,'mutations':_0x394a7c(_0xa79ad0,null)||_0xa79ad0}[_0x96174(0x25e)][_0x96174(0x2e0)](_0x10ebd9=>{const _0x4a372d=_0x96174;this[_0x4a372d(0x2b6)]['hasCommand'](_0x10ebd9['id'])&&this[_0x4a372d(0x2b6)][_0x4a372d(0x15a)](_0x10ebd9['id'],_0x10ebd9[_0x4a372d(0x2af)]);}));}),_0x5393ba;}};W=vs([N(0x0,_0x2ea981),N(0x1,_0x158a83),N(0x2,_0x5b299a),N(0x3,_0x369d98),N(0x4,_0x4dc40f(_0x15b46d)),N(0x5,_0x4dc40f(_0x17464f))],W);function fs(_0x5dff2b){const _0x287869=_0x3de555;var _0x5d3c35,_0x1c3bcd;const _0x38156b=[],{entities:_0x3246a2,historyIds:_0x1c6a69}=_0x5dff2b,{datas:_0x36bc30,users:_0x5abfd3}=_0x3246a2;for(const _0x123374 of _0x1c6a69)if(_0x36bc30[_0x123374]){const _0x40f996=!!((_0x5d3c35=_0x5abfd3[_0x36bc30[_0x123374][_0x287869(0x296)]])!=null&&_0x5d3c35[_0x287869(0x18c)]);_0x38156b[_0x287869(0x27b)]({'unitId':_0x36bc30[_0x123374][_0x287869(0x29c)],'user':_0x40f996?'':((_0x1c3bcd=_0x5abfd3==null?void 0x0:_0x5abfd3[_0x36bc30[_0x123374][_0x287869(0x296)]])==null?void 0x0:_0x1c3bcd['name'])||'','isAnonymous':_0x40f996,'id':_0x123374,'time':_0x36bc30[_0x123374]['createTime']?Number(_0x36bc30[_0x123374]['createTime']):void 0x0,'commands':_0x36bc30[_0x123374]['command'],'startRev':Number(_0x36bc30[_0x123374]['startRevision']),'endRev':Number(_0x36bc30[_0x123374][_0x287869(0x19f)]),'recoverTime':_0x36bc30[_0x123374][_0x287869(0x233)]?Number(_0x36bc30[_0x123374][_0x287869(0x233)]):void 0x0});}return _0x38156b;}var gs=Object[_0x3de555(0x199)],ps=Object[_0x3de555(0x1a4)],Ss=(_0x34a764,_0x210058,_0xb7e5a1,_0x19eaae)=>{const _0x12cfcb=_0x3de555;for(var _0x59d084=_0x19eaae>0x1?void 0x0:_0x19eaae?ps(_0x210058,_0xb7e5a1):_0x210058,_0x4e4d8b=_0x34a764[_0x12cfcb(0x26f)]-0x1,_0x2541b0;_0x4e4d8b>=0x0;_0x4e4d8b--)(_0x2541b0=_0x34a764[_0x4e4d8b])&&(_0x59d084=(_0x19eaae?_0x2541b0(_0x210058,_0xb7e5a1,_0x59d084):_0x2541b0(_0x59d084))||_0x59d084);return _0x19eaae&&_0x59d084&&gs(_0x210058,_0xb7e5a1,_0x59d084),_0x59d084;},L=(_0x3722e9,_0x537fd4)=>(_0x48eea9,_0x16d81e)=>_0x537fd4(_0x48eea9,_0x16d81e,_0x3722e9),ae=(_0x178afa=>(_0x178afa[_0x3de555(0x271)]=_0x3de555(0x223),_0x178afa['Exited']=_0x3de555(0x1e9),_0x178afa['Error']=_0x3de555(0x258),_0x178afa))(ae||{}),$=(_0x50b10a=>(_0x50b10a[_0x3de555(0x156)]=_0x3de555(0x2ad),_0x50b10a[_0x3de555(0x154)]='loading',_0x50b10a[_0x3de555(0x17e)]='loaded',_0x50b10a))($||{});const Is=_0x3de555(0x184);let R=class extends _0x4ab5c3{constructor(_0x3b8968,_0x5c9812,_0x2b4751,_0x27faf6){const _0x4025a8=_0x3de555;super(),l(this,_0x4025a8(0x293),new _0x5e72fd([])),l(this,_0x4025a8(0x235),this['_versions$'][_0x4025a8(0x176)]()),l(this,_0x4025a8(0x1a8),new _0x5e72fd('')),l(this,_0x4025a8(0x1d2),this[_0x4025a8(0x1a8)][_0x4025a8(0x176)]()),l(this,_0x4025a8(0x1eb),new _0x5e72fd(_0x4025a8(0x223))),l(this,'status$',this[_0x4025a8(0x1eb)][_0x4025a8(0x176)]()),l(this,_0x4025a8(0x2c1),new _0x5e72fd(0x0)),l(this,_0x4025a8(0x1d6),this[_0x4025a8(0x2c1)][_0x4025a8(0x176)]()),l(this,_0x4025a8(0x1ac),new _0x5e72fd('')),l(this,_0x4025a8(0x25b),this[_0x4025a8(0x1ac)][_0x4025a8(0x176)]()),l(this,_0x4025a8(0x1bd),!0x1),l(this,_0x4025a8(0x2a6),new _0x5e72fd(_0x4025a8(0x2ad))),l(this,_0x4025a8(0x2a0),this[_0x4025a8(0x2a6)][_0x4025a8(0x176)]()),l(this,_0x4025a8(0x2d6),null),l(this,_0x4025a8(0x1d0),!0x0),l(this,_0x4025a8(0x1dd),new Map()),l(this,_0x4025a8(0x20d)),l(this,_0x4025a8(0x136)),l(this,_0x4025a8(0x1b0)),l(this,'_canRevert',!0x1),(this[_0x4025a8(0x2db)]=_0x3b8968,this['_confirmService']=_0x5c9812,this['_localeService']=_0x2b4751,this[_0x4025a8(0x297)]=_0x27faf6);}async[_0x3de555(0x1fa)](_0x11c643,_0xe1e71,_0xc9702b){const _0x82b3cc=_0x3de555;this[_0x82b3cc(0x20d)]=_0xe1e71,this[_0x82b3cc(0x28b)]=_0xc9702b,this['_unitId$']['next'](_0x11c643),this[_0x82b3cc(0x1bd)]=!0x0;const _0x4677e7=await this[_0x82b3cc(0x297)]['getVersions'](_0x11c643);if(this[_0x82b3cc(0x1bd)]=!0x1,_0x4677e7){const {versions:_0x50dc44,lastLabel:_0x3587ab,hasMore:_0x1da276,members:_0x32cdd4}=_0x4677e7;_0x50dc44[_0x82b3cc(0x26f)]===0x0&&_0x50dc44[_0x82b3cc(0x27b)]({'unitId':_0x11c643,'id':Is,'startRev':0x1,'endRev':0x0,'time':Date[_0x82b3cc(0x15e)](),'user':this[_0x82b3cc(0x2a1)]['t'](_0x82b3cc(0x1de)),'commands':[],'isAnonymous':!0x1}),this[_0x82b3cc(0x1f6)](_0x50dc44,_0x1da276,_0x3587ab,_0x32cdd4),this[_0x82b3cc(0x1a8)][_0x82b3cc(0x2c4)](_0x50dc44[0x0]['id']);}else this[_0x82b3cc(0x1eb)][_0x82b3cc(0x2c4)](_0x82b3cc(0x258));}async['loadMoreVersions'](){const _0x3026da=_0x3de555;if(!this[_0x3026da(0x2d6)]||!this[_0x3026da(0x1d0)]||this[_0x3026da(0x1bd)])return!0x1;this[_0x3026da(0x1bd)]=!0x0;const _0x17bf87=await this[_0x3026da(0x297)][_0x3026da(0x178)](this['unitId'],this[_0x3026da(0x2d6)]);if(this[_0x3026da(0x1bd)]=!0x1,_0x17bf87){const {versions:_0x204e42,lastLabel:_0x1a5e7e,hasMore:_0x2009dc,members:_0x2fb7f7}=_0x17bf87;this[_0x3026da(0x1f6)](_0x204e42,_0x2009dc,_0x1a5e7e,_0x2fb7f7);}else this['_messageService']['show']({'content':this['_localeService']['t'](_0x3026da(0x208)),'type':_0x25c557[_0x3026da(0x1aa)],'duration':0xbb8});return!0x0;}async['triggerLoadSheet'](_0x43dab6){const _0x5c18bd=_0x3de555;var _0x26e41d;const _0x94c39f=(_0x26e41d=this['_versions$'][_0x5c18bd(0x1b1)])==null?void 0x0:_0x26e41d[_0x5c18bd(0x240)](_0x405af2=>_0x405af2['id']===_0x43dab6),{endRev:_0x1b6803}=_0x94c39f||{};_0x1b6803||_0x1b6803===0x0?(this[_0x5c18bd(0x2a6)][_0x5c18bd(0x2c4)](_0x5c18bd(0x2aa)),await this[_0x5c18bd(0x297)][_0x5c18bd(0x2c0)](this[_0x5c18bd(0x29c)],_0x1b6803),this[_0x5c18bd(0x2a6)]['next'](_0x5c18bd(0x2de))):this['_status$']['next'](_0x5c18bd(0x258));}async[_0x3de555(0x2d0)](_0x3c3aaf){const _0x141d78=_0x3de555,_0x265130=_0x3c3aaf?this['getVersion'](_0x3c3aaf):this[_0x141d78(0x1ad)]();if(!_0x265130)return;const _0x1c9440=_0x265130[_0x141d78(0x141)],_0x265183=ne(_0x265130[_0x141d78(0x2d2)],this[_0x141d78(0x2a1)]['getCurrentLocale']());await this[_0x141d78(0x18e)][_0x141d78(0x1b8)]({'id':_0x141d78(0x2c6),'title':{'title':this[_0x141d78(0x2a1)]['t'](_0x141d78(0x2cc))},'children':{'title':this[_0x141d78(0x2a1)]['t'](_0x141d78(0x16a))+_0x141d78(0x26a)+_0x265183[_0x141d78(0x2e9)]+'\x20'+_0x265183[_0x141d78(0x2d2)]+')'}})&&this['_revertRevision$'][_0x141d78(0x2c4)](_0x1c9440);}[_0x3de555(0x1f6)](_0x445757,_0x502392,_0x4e0adf,_0x44327a){const _0x4ec18e=_0x3de555;this['_versions$'][_0x4ec18e(0x2c4)](this[_0x4ec18e(0x293)][_0x4ec18e(0x1b1)]['concat'](_0x445757)),this[_0x4ec18e(0x1d0)]=_0x502392,this[_0x4ec18e(0x2d6)]=_0x4e0adf,_0x44327a&&Object[_0x4ec18e(0x29f)](_0x44327a)[_0x4ec18e(0x2e0)](_0x4c9223=>this['_members'][_0x4ec18e(0x169)](_0x4c9223,_0x44327a[_0x4c9223]));}[_0x3de555(0x1ad)](){const _0x43b69f=_0x3de555;return this[_0x43b69f(0x195)](this[_0x43b69f(0x1a8)][_0x43b69f(0x1b1)]);}['getVersion'](_0x4847c0){const _0x422287=_0x3de555;var _0x35fa43;return(_0x35fa43=this[_0x422287(0x293)][_0x422287(0x1b1)])==null?void 0x0:_0x35fa43['find'](_0x185724=>_0x185724['id']===_0x4847c0);}['getMember'](_0x46bd85){return this['_members']['get'](_0x46bd85);}[_0x3de555(0x1f8)](){const _0xc0af30=_0x3de555;this[_0xc0af30(0x1b0)]=document['createElement'](_0xc0af30(0x18a)),this[_0xc0af30(0x1b0)][_0xc0af30(0x1ef)]=_0xc0af30(0x290),this['_maskElement'][_0xc0af30(0x19b)][_0xc0af30(0x1a7)]=_0xc0af30(0x17d),this['_maskElement'][_0xc0af30(0x19b)]['top']='0',this['_maskElement']['style']['left']='0',this[_0xc0af30(0x1b0)]['style'][_0xc0af30(0x206)]=_0xc0af30(0x2ab),this[_0xc0af30(0x1b0)][_0xc0af30(0x19b)][_0xc0af30(0x264)]='100%',this['_maskElement'][_0xc0af30(0x19b)]['backgroundColor']=_0xc0af30(0x24e),this[_0xc0af30(0x1b0)][_0xc0af30(0x19b)]['color']='white',this[_0xc0af30(0x1b0)][_0xc0af30(0x19b)][_0xc0af30(0x2d8)]=_0xc0af30(0x294),this[_0xc0af30(0x1b0)][_0xc0af30(0x19b)][_0xc0af30(0x24c)]=_0xc0af30(0x26c),this[_0xc0af30(0x1b0)][_0xc0af30(0x19b)][_0xc0af30(0x25a)]='1000',this[_0xc0af30(0x1b0)][_0xc0af30(0x19b)][_0xc0af30(0x2d8)]=_0xc0af30(0x238),this[_0xc0af30(0x136)][_0xc0af30(0x217)](this[_0xc0af30(0x1b0)]);}[_0x3de555(0x25f)](){const _0x40e984=_0x3de555;var _0x385318;const _0x6091f8=(_0x385318=document[_0x40e984(0x1d3)](this[_0x40e984(0x20d)]))==null?void 0x0:_0x385318['querySelector']('.univer-app-container-content');_0x6091f8&&(this[_0x40e984(0x136)]=_0x6091f8,this[_0x40e984(0x1f8)]());}['showMask'](){const _0x183ef0=_0x3de555;this[_0x183ef0(0x136)]||this[_0x183ef0(0x25f)](),this[_0x183ef0(0x1b0)]&&(this['_maskElement'][_0x183ef0(0x19b)][_0x183ef0(0x2d8)]=_0x183ef0(0x294));}[_0x3de555(0x2bd)](){const _0x55a157=_0x3de555;this[_0x55a157(0x1b0)]&&(this[_0x55a157(0x1b0)][_0x55a157(0x19b)]['display']=_0x55a157(0x238));}set['status'](_0x144194){const _0xd9e495=_0x3de555;this[_0xd9e495(0x1eb)][_0xd9e495(0x2c4)](_0x144194);}set[_0x3de555(0x194)](_0x16674c){const _0x4d7145=_0x3de555;_0x16674c!==this[_0x4d7145(0x1a8)][_0x4d7145(0x1b1)]&&this[_0x4d7145(0x1a8)][_0x4d7145(0x2c4)](_0x16674c);}get[_0x3de555(0x194)](){const _0x59d876=_0x3de555;return this[_0x59d876(0x1a8)]['value'];}set['unitId'](_0x3bbe55){const _0x3cda47=_0x3de555;this[_0x3cda47(0x1ac)][_0x3cda47(0x2c4)](_0x3bbe55);}get[_0x3de555(0x29c)](){return this['_unitId$']['value'];}get['canRevert'](){return this['_canRevert'];}get[_0x3de555(0x191)](){const _0x19465f=_0x3de555;return this['_loadingState$'][_0x19465f(0x1b1)];}};R=Ss([L(0x0,_0x533f09),L(0x1,_0x274741),L(0x2,_0x4dc40f(_0x4c407b)),L(0x3,_0x4dc40f(W))],R);var I=function(){const _0x36336c=_0x3de555;return I=Object[_0x36336c(0x1c8)]||function(_0x253932){const _0x22974e=_0x36336c;for(var _0x2159d5,_0x54726e=0x1,_0x137d12=arguments['length'];_0x54726e<_0x137d12;_0x54726e++){_0x2159d5=arguments[_0x54726e];for(var _0x31b037 in _0x2159d5)Object[_0x22974e(0x1c7)][_0x22974e(0x21a)][_0x22974e(0x20a)](_0x2159d5,_0x31b037)&&(_0x253932[_0x31b037]=_0x2159d5[_0x31b037]);}return _0x253932;},I[_0x36336c(0x2c2)](this,arguments);},Es=function(_0x8a7817,_0x4efbd8){const _0x3f521d=_0x3de555;var _0x57d4cd={};for(var _0x454b10 in _0x8a7817)Object[_0x3f521d(0x1c7)][_0x3f521d(0x21a)][_0x3f521d(0x20a)](_0x8a7817,_0x454b10)&&_0x4efbd8[_0x3f521d(0x17b)](_0x454b10)<0x0&&(_0x57d4cd[_0x454b10]=_0x8a7817[_0x454b10]);if(_0x8a7817!=null&&typeof Object[_0x3f521d(0x19c)]==_0x3f521d(0x197)){for(var _0x30cf0b=0x0,_0x454b10=Object[_0x3f521d(0x19c)](_0x8a7817);_0x30cf0b<_0x454b10[_0x3f521d(0x26f)];_0x30cf0b++)_0x4efbd8['indexOf'](_0x454b10[_0x30cf0b])<0x0&&Object[_0x3f521d(0x1c7)]['propertyIsEnumerable'][_0x3f521d(0x20a)](_0x8a7817,_0x454b10[_0x30cf0b])&&(_0x57d4cd[_0x454b10[_0x30cf0b]]=_0x8a7817[_0x454b10[_0x30cf0b]]);}return _0x57d4cd;},Z=_0x123c40(function(_0x1a116f,_0x47bd48){const _0x362598=_0x3de555;var _0x15670f=_0x1a116f['icon'],_0x3643be=_0x1a116f['id'],_0x19700b=_0x1a116f[_0x362598(0x1ef)],_0x28f910=_0x1a116f['extend'],_0x2a9206=Es(_0x1a116f,['icon','id',_0x362598(0x1ef),_0x362598(0x13e)]),_0x291761=_0x362598(0x12e)[_0x362598(0x2e6)](_0x3643be,'\x20')[_0x362598(0x2e6)](_0x19700b||'')[_0x362598(0x27c)](),_0x58623c=_0x459b2e('_'[_0x362598(0x2e6)](Ms()));return De(_0x15670f,''[_0x362598(0x2e6)](_0x3643be),{'defIds':_0x15670f[_0x362598(0x196)],'idSuffix':_0x58623c['current']},I({'ref':_0x47bd48,'className':_0x291761},_0x2a9206),_0x28f910);});function De(_0x565b46,_0x569625,_0x3a662d,_0x29e640,_0x4039e6){const _0x2a27f4=_0x3de555;return _0x4e573e(_0x565b46['tag'],I(I({'key':_0x569625},Rs(_0x565b46,_0x3a662d,_0x4039e6)),_0x29e640),(bs(_0x565b46,_0x3a662d)[_0x2a27f4(0x1a2)]||[])['map'](function(_0x286efe,_0x320861){const _0x6dfc75=_0x2a27f4;return De(_0x286efe,''[_0x6dfc75(0x2e6)](_0x569625,'-')[_0x6dfc75(0x2e6)](_0x565b46[_0x6dfc75(0x177)],'-')[_0x6dfc75(0x2e6)](_0x320861),_0x3a662d,void 0x0,_0x4039e6);}));}function Rs(_0x3dc9ab,_0x3bb5aa,_0x5a4e45){const _0xfa087b=_0x3de555;var _0x533ca5=I({},_0x3dc9ab[_0xfa087b(0x23d)]);_0x5a4e45!=null&&_0x5a4e45[_0xfa087b(0x144)]&&_0x533ca5[_0xfa087b(0x27a)]===_0xfa087b(0x144)&&(_0x533ca5[_0xfa087b(0x27a)]=_0x5a4e45[_0xfa087b(0x144)]);var _0x5d8195=_0x3bb5aa[_0xfa087b(0x196)];return!_0x5d8195||_0x5d8195['length']===0x0||(_0x3dc9ab['tag']===_0xfa087b(0x179)&&_0x533ca5[_0xfa087b(0x1ce)]&&(_0x533ca5['xlink:href']=_0x533ca5['xlink:href']+_0x3bb5aa['idSuffix']),Object[_0xfa087b(0x2a9)](_0x533ca5)['forEach'](function(_0x17344f){const _0x2010c7=_0xfa087b;var _0x5574c3=_0x17344f[0x0],_0x163144=_0x17344f[0x1];typeof _0x163144==_0x2010c7(0x1e5)&&(_0x533ca5[_0x5574c3]=_0x163144[_0x2010c7(0x21d)](/url\(#(.*)\)/,_0x2010c7(0x2b3)[_0x2010c7(0x2e6)](_0x3bb5aa['idSuffix'],')')));})),_0x533ca5;}function bs(_0x37b96c,_0x485f2a){const _0x3a7c45=_0x3de555;var _0x331709,_0x3961ec=_0x485f2a[_0x3a7c45(0x196)];return!_0x3961ec||_0x3961ec[_0x3a7c45(0x26f)]===0x0?_0x37b96c:_0x37b96c[_0x3a7c45(0x177)]===_0x3a7c45(0x1c4)&&(!((_0x331709=_0x37b96c[_0x3a7c45(0x1a2)])===null||_0x331709===void 0x0)&&_0x331709[_0x3a7c45(0x26f)])?I(I({},_0x37b96c),{'children':_0x37b96c[_0x3a7c45(0x1a2)][_0x3a7c45(0x2bf)](function(_0x59e0e8){const _0x2f8493=_0x3a7c45;return typeof _0x59e0e8['attrs']['id']==_0x2f8493(0x1e5)&&_0x3961ec&&_0x3961ec[_0x2f8493(0x17b)](_0x59e0e8[_0x2f8493(0x23d)]['id'])>-0x1?I(I({},_0x59e0e8),{'attrs':I(I({},_0x59e0e8['attrs']),{'id':_0x59e0e8[_0x2f8493(0x23d)]['id']+_0x485f2a[_0x2f8493(0x1d9)]})}):_0x59e0e8;})}):_0x37b96c;}function Ms(){const _0x150b7b=_0x3de555;return Math[_0x150b7b(0x262)]()[_0x150b7b(0x288)](0x24)[_0x150b7b(0x165)](0x2,0x8);}Z[_0x3de555(0x263)]='UniverIcon';var Cs={'tag':'svg','attrs':{'fill':_0x3de555(0x238),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3de555(0x172)},'children':[{'tag':_0x3de555(0x2c3),'attrs':{'fill':'currentColor','d':_0x3de555(0x174)}}]},$e=_0x123c40(function(_0x150747,_0x2a6f34){const _0x22b2ad=_0x3de555;return _0x4e573e(Z,Object[_0x22b2ad(0x1c8)]({},_0x150747,{'id':_0x22b2ad(0x204),'ref':_0x2a6f34,'icon':Cs}));});$e[_0x3de555(0x263)]=_0x3de555(0x16d);var ys={'tag':_0x3de555(0x15b),'attrs':{'fill':'none','viewBox':_0x3de555(0x248),'width':'1em','height':'1em'},'children':[{'tag':_0x3de555(0x2c3),'attrs':{'fill':_0x3de555(0x144),'d':_0x3de555(0x1c5),'fillRule':_0x3de555(0x28a),'clipRule':_0x3de555(0x28a)}},{'tag':_0x3de555(0x2c3),'attrs':{'fill':_0x3de555(0x267),'d':'M7.17852\x201.82153C7.17852\x201.36781\x207.54633\x201\x208.00005\x201C11.866\x201\x2015\x204.13397\x2015\x207.99993C15\x2011.8659\x2011.866\x2014.9999\x208.00005\x2014.9999C4.1341\x2014.9999\x201.00012\x2011.8659\x201.00012\x207.99993C1.00012\x207.54621\x201.36793\x207.1784\x201.82165\x207.1784C2.27537\x207.1784\x202.64318\x207.54621\x202.64318\x207.99993C2.64318\x2010.9584\x205.04153\x2013.3568\x208.00005\x2013.3568C10.9586\x2013.3568\x2013.3569\x2010.9584\x2013.3569\x207.99993C13.3569\x205.04141\x2010.9586\x202.64306\x208.00005\x202.64306C7.54633\x202.64306\x207.17852\x202.27525\x207.17852\x201.82153Z','fillRule':_0x3de555(0x28a),'clipRule':_0x3de555(0x28a)}}]},oe=_0x123c40(function(_0x632248,_0x10f2b9){const _0x2cf9dc=_0x3de555;return _0x4e573e(Z,Object[_0x2cf9dc(0x1c8)]({},_0x632248,{'id':_0x2cf9dc(0x2aa),'ref':_0x10f2b9,'icon':ys}));});oe[_0x3de555(0x263)]=_0x3de555(0x154);var Os={'tag':_0x3de555(0x15b),'attrs':{'fill':'none','viewBox':_0x3de555(0x1f4),'width':_0x3de555(0x172),'height':_0x3de555(0x172)},'children':[{'tag':'g','attrs':{'fill':_0x3de555(0x267),'clipPath':_0x3de555(0x1bb)},'children':[{'tag':_0x3de555(0x2c3),'attrs':{'d':_0x3de555(0x231)}},{'tag':_0x3de555(0x2c3),'attrs':{'d':_0x3de555(0x21b),'fillRule':_0x3de555(0x28a),'clipRule':_0x3de555(0x28a)}}]},{'tag':_0x3de555(0x1c4),'attrs':{},'children':[{'tag':_0x3de555(0x252),'attrs':{'id':_0x3de555(0x207)},'children':[{'tag':_0x3de555(0x2d4),'attrs':{'width':0x10,'height':0x10,'y':0.05,'fill':_0x3de555(0x29e),'rx':0x4}}]}]}],'defIds':['restore-single_clip0_1247_2']},Te=_0x123c40(function(_0x4b87f2,_0x3167c0){const _0x2b4234=_0x3de555;return _0x4e573e(Z,Object[_0x2b4234(0x1c8)]({},_0x4b87f2,{'id':_0x2b4234(0x237),'ref':_0x3167c0,'icon':Os}));});Te[_0x3de555(0x263)]=_0x3de555(0x146);const Ns=_0x3de555(0x279),Ps=_0x3de555(0x220),ws=_0x3de555(0x2b5),Ds=_0x3de555(0x2b4),$s=_0x3de555(0x147),Ts=_0x3de555(0x1e2),Vs='univer-version-item-header-time',Ls=_0x3de555(0x1d7),Hs=_0x3de555(0x1ee),ks=_0x3de555(0x160),xs=_0x3de555(0x1c6),Us='univer-history-view-header',js=_0x3de555(0x218),Ws=_0x3de555(0x17c),Fs='univer-history-view-header-revert',Ys=_0x3de555(0x215),Bs=_0x3de555(0x175),Xs=_0x3de555(0x229),v={'versionListPanel':Ns,'versionListPanelContent':Ps,'versionDate':ws,'versionItem':Ds,'versionItemHeader':$s,'versionItemHeaderExpand':Ts,'versionItemHeaderTime':Vs,'versionItemHeaderTimeTag':Ls,'versionItemHeaderRevert':Hs,'versionItemContent':ks,'active':xs,'historyViewHeader':Us,'historyViewHeaderBack':js,'historyViewHeaderBackText':Ws,'historyViewHeaderRevert':Fs,'versionListLoading':Ys,'versionListLoadingIcon':Bs,'loadingSpin':Xs};function Gs(){const _0x397d71=_0x3de555;var _0x28079e;const _0x39c97b=_0x16416e(R),_0x31afb9=_0x16416e(_0x4c407b),_0x2e460c=_0xe9f68e(()=>{const _0x37053d=_0x46ca;_0x39c97b[_0x37053d(0x20e)]=ae['Exited'];},[_0x39c97b]),_0x347a7c=_0xe9f68e(()=>{const _0x3d9bff=_0x46ca;_0x39c97b[_0x3d9bff(0x2d0)]();},[_0x39c97b]),_0x38255c=_0x208e5e(_0x39c97b[_0x397d71(0x1d2)]),_0x12016c=_0x208e5e(_0x39c97b[_0x397d71(0x235)]),_0x25dfee=!(_0x38255c===((_0x28079e=_0x12016c==null?void 0x0:_0x12016c[0x0])==null?void 0x0:_0x28079e['id']))&&_0x39c97b[_0x397d71(0x249)];return _0xa0e293[_0x397d71(0x163)](_0x397d71(0x18a),{'className':v[_0x397d71(0x1d1)]},_0xa0e293[_0x397d71(0x163)]('div',{'onClick':_0x2e460c,'className':v[_0x397d71(0x1f7)]},_0xa0e293['createElement']($e,{'style':{'fontSize':_0x397d71(0x167)}})),_0xa0e293[_0x397d71(0x163)](_0x397d71(0x18a),{'className':v[_0x397d71(0x2bc)]},_0x25dfee&&_0xa0e293['createElement'](_0x2bfdc3,{'type':_0x397d71(0x19e),'onClick':_0x347a7c},_0x31afb9['t'](_0x397d71(0x259)))));}var Zs=Object[_0x3de555(0x199)],As=Object['getOwnPropertyDescriptor'],Ks=(_0x49a017,_0x1decc4,_0xfe7f87,_0x360324)=>{const _0x568178=_0x3de555;for(var _0x5a2af9=_0x360324>0x1?void 0x0:_0x360324?As(_0x1decc4,_0xfe7f87):_0x1decc4,_0x1975d4=_0x49a017[_0x568178(0x26f)]-0x1,_0x2fa78a;_0x1975d4>=0x0;_0x1975d4--)(_0x2fa78a=_0x49a017[_0x1975d4])&&(_0x5a2af9=(_0x360324?_0x2fa78a(_0x1decc4,_0xfe7f87,_0x5a2af9):_0x2fa78a(_0x5a2af9))||_0x5a2af9);return _0x360324&&_0x5a2af9&&Zs(_0x1decc4,_0xfe7f87,_0x5a2af9),_0x5a2af9;},P=(_0x1fad8b,_0x4e6c07)=>(_0x303f5d,_0x12ad47)=>_0x4e6c07(_0x303f5d,_0x12ad47,_0x1fad8b);let F=class extends _0x4ab5c3{constructor(_0x511f7f,_0x5a50f1,_0x2b2c93,_0x564d8b,_0x3fe320,_0x1a1919){const _0x39ec2a=_0x3de555;super(),l(this,_0x39ec2a(0x234)),(this[_0x39ec2a(0x12d)]=_0x511f7f,this[_0x39ec2a(0x246)]=_0x5a50f1,this['_messageService']=_0x2b2c93,this[_0x39ec2a(0x2a1)]=_0x564d8b,this[_0x39ec2a(0x2ac)]=_0x3fe320,this[_0x39ec2a(0x16e)]=_0x1a1919,this[_0x39ec2a(0x1c9)]());}[_0x3de555(0x1c9)](){const _0x1edd55=_0x3de555;this[_0x1edd55(0x28e)](this['_historyManagerService'][_0x1edd55(0x1d2)]['subscribe'](_0x52588d=>{const _0xf3928d=_0x1edd55;_0x52588d&&this[_0xf3928d(0x2ac)][_0xf3928d(0x203)](_0x52588d);})),this[_0x1edd55(0x28e)](this[_0x1edd55(0x12d)][_0x1edd55(0x243)]['subscribe'](_0x3a7fb1=>{const _0x10f991=_0x1edd55,_0x4bb642=this[_0x10f991(0x2ac)][_0x10f991(0x29c)];_0x4bb642&&(_0x3a7fb1[_0x10f991(0x12c)]===O[_0x10f991(0x1a5)]&&_0x3a7fb1[_0x10f991(0x1b1)]===!0x0&&this['_permissionService'][_0x10f991(0x29b)](new _0x54eeb6(_0x4bb642)['id'],!0x1),_0x3a7fb1[_0x10f991(0x12c)]===O[_0x10f991(0x205)]&&_0x3a7fb1[_0x10f991(0x1b1)]===!0x0&&this[_0x10f991(0x12d)]['updatePermissionPoint'](new _0x474501(_0x4bb642)['id'],!0x1),_0x3a7fb1['subType']===O[_0x10f991(0x253)]&&_0x3a7fb1[_0x10f991(0x1b1)]===!0x0&&this['_permissionService'][_0x10f991(0x29b)](new _0x4db365(_0x4bb642)['id'],!0x1),_0x3a7fb1[_0x10f991(0x12c)]===O[_0x10f991(0x1ca)]&&_0x3a7fb1[_0x10f991(0x1b1)]===!0x0&&this[_0x10f991(0x12d)][_0x10f991(0x29b)](new _0x29cb18(_0x4bb642)['id'],!0x1),_0x3a7fb1['subType']===O[_0x10f991(0x1e6)]&&_0x3a7fb1[_0x10f991(0x1b1)]===!0x0&&this[_0x10f991(0x12d)]['updatePermissionPoint'](new _0x54eeb6(_0x4bb642)['id'],!0x1),_0x3a7fb1[_0x10f991(0x12c)]===O[_0x10f991(0x2ca)]&&_0x3a7fb1[_0x10f991(0x1b1)]===!0x0&&this[_0x10f991(0x12d)][_0x10f991(0x29b)](new _0x54eeb6(_0x4bb642)['id'],!0x1));})),this[_0x1edd55(0x28e)](this[_0x1edd55(0x246)][_0x1edd55(0x1df)](_0x216ede[_0x1edd55(0x24b)],()=>_0x3f3d69(Gs,this['_injector']))),this['disposeWithMe'](this[_0x1edd55(0x2ac)][_0x1edd55(0x2a0)][_0x1edd55(0x170)](_0x1e7411=>{const _0x1283d4=_0x1edd55;var _0x4bf613;_0x1e7411===$[_0x1283d4(0x154)]&&(this['_historyManagerService'][_0x1283d4(0x186)](),this[_0x1283d4(0x234)]=this['_messageService']['show']({'type':_0x25c557[_0x1283d4(0x155)],'content':this[_0x1283d4(0x2a1)]['t'](_0x1283d4(0x225))})),_0x1e7411===$['Loaded']&&((_0x4bf613=this[_0x1283d4(0x234)])==null||_0x4bf613['dispose'](),this[_0x1283d4(0x2ac)]['hideMask']());}));}};F=Ks([P(0x0,_0x4fe229),P(0x1,_0x3295f4),P(0x2,_0x533f09),P(0x3,_0x4dc40f(_0x4c407b)),P(0x4,_0x4dc40f(R)),P(0x5,_0x4dc40f(_0x2f9785))],F);var zs=Object[_0x3de555(0x199)],Js=Object[_0x3de555(0x1a4)],Qs=(_0x2cc465,_0x3865f4,_0x2fb755,_0x2455a2)=>{for(var _0x751108=_0x2455a2>0x1?void 0x0:_0x2455a2?Js(_0x3865f4,_0x2fb755):_0x3865f4,_0x25481=_0x2cc465['length']-0x1,_0x512817;_0x25481>=0x0;_0x25481--)(_0x512817=_0x2cc465[_0x25481])&&(_0x751108=(_0x2455a2?_0x512817(_0x3865f4,_0x2fb755,_0x751108):_0x512817(_0x751108))||_0x751108);return _0x2455a2&&_0x751108&&zs(_0x3865f4,_0x2fb755,_0x751108),_0x751108;},z=(_0xd86c93,_0x1a7ed1)=>(_0x4976d4,_0xe33ca5)=>_0x1a7ed1(_0x4976d4,_0xe33ca5,_0xd86c93);let V=class extends _0x4ab5c3{constructor(_0x57ff4f,_0xf9638b,_0x5031fe){const _0x37b539=_0x3de555;super(),l(this,_0x37b539(0x190),new Map()),l(this,_0x37b539(0x27e),new _0x5e72fd({'ranges':new Map(),'active':null})),l(this,_0x37b539(0x20f),this['_currentVersionDiff$'][_0x37b539(0x176)]()),(this[_0x37b539(0x2ac)]=_0x57ff4f,this[_0x37b539(0x292)]=_0xf9638b,this[_0x37b539(0x2b2)]=_0x5031fe,this[_0x37b539(0x1c9)]());}[_0x3de555(0x1c9)](){const _0x147adf=_0x3de555;this[_0x147adf(0x190)]=new Map(),this[_0x147adf(0x28e)](this[_0x147adf(0x2ac)][_0x147adf(0x25b)][_0x147adf(0x170)](_0x12ae0f=>{const _0xf8a9c3=_0x147adf;_0x12ae0f&&!this['_diffRangesMap']['has'](_0x12ae0f)&&this['_diffRangesMap'][_0xf8a9c3(0x169)](_0x12ae0f,new Map());})),this['disposeWithMe'](this['_historyManagerService'][_0x147adf(0x1d2)][_0x147adf(0x170)](async _0x221fc1=>{const _0x43a855=_0x147adf;var _0x34501a;_0x221fc1&&(await this['ensureVersion'](_0x221fc1),this[_0x43a855(0x27e)]['next'](((_0x34501a=this[_0x43a855(0x190)][_0x43a855(0x13f)](this[_0x43a855(0x2ac)]['unitId']))==null?void 0x0:_0x34501a[_0x43a855(0x13f)](_0x221fc1))||{'ranges':new Map(),'active':null}));}));}async[_0x3de555(0x13c)](_0x5c8204){const _0x3f5c23=_0x3de555;var _0x233814,_0x3200d6;const _0x16df24=this['_historyManagerService']['getVersion'](_0x5c8204),_0x45776c=this[_0x3f5c23(0x2ac)][_0x3f5c23(0x29c)];if(!_0x16df24||!_0x45776c)return;const _0x2c1492=this[_0x3f5c23(0x190)][_0x3f5c23(0x13f)](_0x45776c);if(_0x2c1492||this['_diffRangesMap'][_0x3f5c23(0x169)](_0x45776c,new Map()),(_0x233814=this[_0x3f5c23(0x190)]['get'](_0x45776c))!=null&&_0x233814[_0x3f5c23(0x265)](_0x16df24['id']))return;const {startRev:_0x4f42f3,endRev:_0x2b53e4}=_0x16df24;if(_0x4f42f3===0x1){_0x2c1492[_0x3f5c23(0x169)](_0x16df24['id'],{'ranges':new Map(),'active':null});return;}const _0x491140=_0x4f42f3-0x1,_0x178381=_0x2b53e4,_0x1e2895=await this[_0x3f5c23(0x2b2)][_0x3f5c23(0x2b1)]({},{'unitID':_0x45776c,'from':_0x491140,'to':_0x178381,'type':j[_0x3f5c23(0x193)]});if(((_0x3200d6=_0x1e2895[_0x3f5c23(0x258)])==null?void 0x0:_0x3200d6[_0x3f5c23(0x1c1)])===G['OK']){const _0x1bccd0=_0x1e2895['changesets']['map'](_0x38bbf7)[_0x3f5c23(0x2bf)](_0x6d774=>_0x6d774[_0x3f5c23(0x25e)][_0x3f5c23(0x2bf)](_0x139259=>({..._0x139259,'params':{..._0x139259['params'],'memberId':_0x6d774[_0x3f5c23(0x2cf)]}})))['flat'](),_0x1f9dab=this[_0x3f5c23(0x23e)](_0x1bccd0),_0x5ad11=this[_0x3f5c23(0x266)](_0x1bccd0),_0x2897e2=this[_0x3f5c23(0x1b2)](_0x1f9dab);_0x2c1492[_0x3f5c23(0x169)](_0x16df24['id'],{'ranges':_0x2897e2,'active':_0x5ad11});}}[_0x3de555(0x23e)](_0x1770ea){const _0x11bc46=_0x3de555;let _0x38b8d3=[];for(let _0xd13929=0x0;_0xd13929<_0x1770ea[_0x11bc46(0x26f)];_0xd13929++){const _0x317626=_0x1770ea[_0xd13929];if(_0x38b8d3['push'](_0x317626),_0xd13929!==_0x1770ea[_0x11bc46(0x26f)]-0x1){const _0x50e54c=_0x1770ea[_0xd13929+0x1],_0x4f688a=this[_0x11bc46(0x292)][_0x11bc46(0x22b)](_0x38b8d3,[_0x50e54c]);_0x456a2f(_0x4f688a)?_0x38b8d3=_0x4f688a[_0x11bc46(0x13a)]:_0x38b8d3=[];}}return _0x38b8d3;}[_0x3de555(0x266)](_0x23f766){const _0x29b54a=_0x3de555;let _0x1eda7c=[];return _0x23f766['forEach'](_0x35b677=>{const _0x2c3739=_0x46ca;if(_0x35b677['id']===_0xd3bb9['id']){const _0xf3d75e=_0x35b677[_0x2c3739(0x2af)];_0x1eda7c['push'](_0xf3d75e['sheet']['id']);}else{if(_0x35b677['id']===_0x4d05a5['id']){const _0x38ea29=_0x35b677['params'];_0x1eda7c['length']>0x0&&(_0x1eda7c=_0x1eda7c[_0x2c3739(0x232)](_0x4744c8=>_0x4744c8!==_0x38ea29['subUnitId']));}else{if(_0x35b677['id']===_0x6e820b['id']){const _0xfb0133=_0x35b677[_0x2c3739(0x2af)];_0xfb0133[_0x2c3739(0x2c5)]?_0x1eda7c=_0x1eda7c[_0x2c3739(0x232)](_0x10bbc0=>_0x10bbc0!==_0xfb0133[_0x2c3739(0x1bf)]):_0x1eda7c[_0x2c3739(0x27b)](_0xfb0133['subUnitId']);}else{const _0x512370=_0x35b677[_0x2c3739(0x2af)];_0x512370[_0x2c3739(0x1bf)]&&_0x1eda7c[_0x2c3739(0x27b)](_0x512370['subUnitId']);}}}}),_0x1eda7c[_0x29b54a(0x26f)]>0x0?_0x1eda7c[_0x1eda7c['length']-0x1]:null;}[_0x3de555(0x1b2)](_0x10a643){const _0x4fe21f=_0x3de555,_0x3d59c7=new Map();return _0x10a643[_0x4fe21f(0x2e0)](_0xd1aa6b=>{const _0x49f8ca=_0x4fe21f;var _0x3e34f4,_0x551dc8;const _0xc17b08=(_0x3e34f4=_0xd1aa6b[_0x49f8ca(0x2af)])==null?void 0x0:_0x3e34f4['memberId'];if(_0xc17b08){_0x3d59c7[_0x49f8ca(0x265)](_0xc17b08)||_0x3d59c7['set'](_0xc17b08,[]);const _0x21ab7b=this['_getRangesByMutation'](_0xd1aa6b);(_0x551dc8=_0x3d59c7[_0x49f8ca(0x13f)](_0xc17b08))==null||_0x551dc8['push'](..._0x21ab7b);}}),_0x3d59c7[_0x4fe21f(0x2e0)]((_0x588faa,_0x1fa90b)=>{const _0x4d1230=_0x4fe21f;_0x3d59c7[_0x4d1230(0x169)](_0x1fa90b,this['_combineRanges'](_0x588faa));}),_0x3d59c7;}['_getRangesByMutation'](_0x4adc97){const _0x31fbdb=_0x3de555;switch(_0x4adc97['id']){case _0x301282['id']:{const _0x35e66d=_0x4adc97['params'];return _0x35e66d[_0x31fbdb(0x242)]['map'](_0x549415=>_0x549415[_0x31fbdb(0x1d4)][_0x31fbdb(0x2bf)](_0x24f9c0=>({'range':_0x24f9c0,'unitId':_0x35e66d['unitId'],'subUnitId':_0x35e66d['subUnitId']})))['flat']();}case _0x42d7e1['id']:{const _0x45db41=_0x4adc97[_0x31fbdb(0x2af)];return _0x45db41[_0x31fbdb(0x1d4)]['map'](_0x20d0d7=>({'range':_0x20d0d7,'unitId':_0x45db41['unitId'],'subUnitId':_0x45db41['subUnitId']}));}case _0x47e8de['id']:{const _0x19895c=_0x4adc97['params'];return[{'range':_0x19895c[_0x31fbdb(0x1da)],'unitId':_0x19895c[_0x31fbdb(0x29c)],'subUnitId':_0x19895c['subUnitId']}];}case _0x96fabb['id']:{const _0x26e3ce=_0x4adc97['params'];return[{'range':_0x26e3ce[_0x31fbdb(0x1da)],'unitId':_0x26e3ce[_0x31fbdb(0x29c)],'subUnitId':_0x26e3ce['subUnitId']}];}case _0x3ee303['id']:{const _0x22f5a8=_0x4adc97['params'],{from:_0x1947bf,to:_0xd51510,unitId:_0x574073}=_0x22f5a8;return[{'range':de(_0x1947bf['value']),'unitId':_0x574073,'subUnitId':_0x1947bf[_0x31fbdb(0x1bf)]},{'range':de(_0xd51510[_0x31fbdb(0x1b1)]),'unitId':_0x574073,'subUnitId':_0xd51510[_0x31fbdb(0x1bf)]}];}case _0x5be907['id']:{const _0x8e0721=_0x4adc97[_0x31fbdb(0x2af)],{unitId:_0xa22ef1,subUnitId:_0x14a578,sourceRange:_0x111ec4,targetRange:_0x2ad0c5}=_0x8e0721,_0x5703fc=_0x111ec4[_0x31fbdb(0x226)]-_0x111ec4[_0x31fbdb(0x1fd)]+0x1;return[{'range':_0x2ad0c5[_0x31fbdb(0x1fd)]<=_0x111ec4['startRow']?_0x2ad0c5:{..._0x2ad0c5,'startRow':_0x2ad0c5[_0x31fbdb(0x1fd)]-_0x5703fc,'endRow':_0x2ad0c5[_0x31fbdb(0x226)]-_0x5703fc},'unitId':_0xa22ef1,'subUnitId':_0x14a578}];}case _0x3db12f['id']:{const _0x379040=_0x4adc97[_0x31fbdb(0x2af)],{unitId:_0x3256a7,subUnitId:_0x495fdb,sourceRange:_0x1836ba,targetRange:_0x3c2dda}=_0x379040,_0x24a424=_0x1836ba[_0x31fbdb(0x268)]-_0x1836ba[_0x31fbdb(0x2e1)]+0x1;return[{'range':_0x3c2dda['startColumn']<=_0x1836ba[_0x31fbdb(0x2e1)]?_0x3c2dda:{..._0x3c2dda,'startColumn':_0x3c2dda[_0x31fbdb(0x2e1)]-_0x24a424,'endColumn':_0x3c2dda[_0x31fbdb(0x268)]-_0x24a424},'unitId':_0x3256a7,'subUnitId':_0x495fdb}];}case _0x9fff36['id']:{const _0xcc53ea=_0x4adc97[_0x31fbdb(0x2af)],{values:_0x30700d,unitId:_0x282fc9,subUnitId:_0x398aac}=_0xcc53ea;return Object[_0x31fbdb(0x17a)](_0x30700d)[_0x31fbdb(0x2bf)](_0x2bc0b0=>_0x2bc0b0[_0x31fbdb(0x1d4)][_0x31fbdb(0x2bf)](_0x274428=>({'range':_0x274428,'unitId':_0x282fc9,'subUnitId':_0x398aac})))['flat']();}case _0x3888c5['id']:{const _0xc77ed9=_0x4adc97[_0x31fbdb(0x2af)],{ranges:_0x4b6470,unitId:_0x477529,subUnitId:_0x5f47b5}=_0xc77ed9;return _0x4b6470[_0x31fbdb(0x2bf)](_0x5135c4=>({'range':_0x5135c4,'unitId':_0x477529,'subUnitId':_0x5f47b5}));}case _0x3ed16a['id']:{const _0xc6cd35=_0x4adc97[_0x31fbdb(0x2af)],{unitId:_0x47ac8b,subUnitId:_0x24c6eb,range:_0x1476f7}=_0xc6cd35;return[{'range':_0x1476f7,'unitId':_0x47ac8b,'subUnitId':_0x24c6eb}];}case _0x21c563['id']:{const _0x626bf6=_0x4adc97[_0x31fbdb(0x2af)];return _0x626bf6[_0x31fbdb(0x28f)][_0x31fbdb(0x1d4)][_0x31fbdb(0x2bf)](_0x4fadbd=>({'range':_0x4fadbd,'unitId':_0x626bf6[_0x31fbdb(0x29c)],'subUnitId':_0x626bf6[_0x31fbdb(0x1bf)]}));}case _0x5967d3['id']:{const _0x59a129=_0x4adc97[_0x31fbdb(0x2af)];return _0x59a129[_0x31fbdb(0x2a4)]?qs(_0x59a129['cellValue'])[_0x31fbdb(0x2bf)](_0x2c28be=>({'range':_0x2c28be,'unitId':_0x59a129['unitId'],'subUnitId':_0x59a129[_0x31fbdb(0x1bf)]})):[];}case _0x85a8af['id']:{const _0x442e4b=_0x4adc97[_0x31fbdb(0x2af)];return[{'range':_0x442e4b['range'],'unitId':_0x442e4b[_0x31fbdb(0x29c)],'subUnitId':_0x442e4b[_0x31fbdb(0x1bf)]}];}case _0x4afef5['id']:{const _0x31ec8d=_0x4adc97['params'];return(Array[_0x31fbdb(0x1b4)](_0x31ec8d[_0x31fbdb(0x28f)])?_0x31ec8d['rule']:[_0x31ec8d[_0x31fbdb(0x28f)]])[_0x31fbdb(0x2bf)](_0x42f487=>_0x42f487[_0x31fbdb(0x1d4)]['map'](_0x2ed4fb=>({'range':_0x2ed4fb,'unitId':_0x31ec8d[_0x31fbdb(0x29c)],'subUnitId':_0x31ec8d[_0x31fbdb(0x1bf)]})))[_0x31fbdb(0x1ea)]();}case _0x37e54a['id']:{const _0x373c6c=_0x4adc97[_0x31fbdb(0x2af)];return _0x373c6c['rule'][_0x31fbdb(0x1d4)]['map'](_0x93b4cd=>({'range':_0x93b4cd,'unitId':_0x373c6c[_0x31fbdb(0x29c)],'subUnitId':_0x373c6c[_0x31fbdb(0x1bf)]}));}default:return[];}}[_0x3de555(0x283)](_0x4b8e54){const _0x3206b0=_0x3de555;if(_0x4b8e54['length']<=0x1)return _0x4b8e54;const _0x31d86e=new Map();return _0x4b8e54[_0x3206b0(0x2e0)](_0x5e0465=>{const _0x51a240=_0x3206b0;var _0x14b92c;const {unitId:_0xc66dd8,subUnitId:_0x279176}=_0x5e0465,_0x4bcabf=_0xc66dd8+'-'+_0x279176;_0x31d86e[_0x51a240(0x265)](_0x4bcabf)?(_0x14b92c=_0x31d86e[_0x51a240(0x13f)](_0x4bcabf))==null||_0x14b92c[_0x51a240(0x27b)](_0x5e0465):_0x31d86e[_0x51a240(0x169)](_0x4bcabf,[_0x5e0465]);}),Array['from'](_0x31d86e['values']())[_0x3206b0(0x2bf)](_0x14a7f6=>new _0x4e0764()[_0x3206b0(0x14c)](..._0x14a7f6[_0x3206b0(0x2bf)](_0x7ff03f=>_0x7ff03f[_0x3206b0(0x1da)]))[_0x3206b0(0x251)]()[_0x3206b0(0x2bf)](_0x5542dd=>({'range':_0x5542dd,'unitId':_0x14a7f6[0x0]['unitId'],'subUnitId':_0x14a7f6[0x0][_0x3206b0(0x1bf)]})))[_0x3206b0(0x1ea)]();}};V=Qs([z(0x0,_0x4dc40f(R)),z(0x1,_0x1c3e28),z(0x2,_0x2ea981)],V);function de(_0x561ba8){return new _0x5efdee(_0x561ba8)['getDataRange']();}function qs(_0x47088e){const _0xeed72e=_0x3de555,_0x483272=new _0x5efdee(_0x47088e),_0x1663d8=new _0x5efdee();return _0x483272[_0xeed72e(0x222)]((_0x5aadb2,_0x3c613b)=>{const _0x37225c=_0xeed72e;_0x1663d8[_0x37225c(0x254)](_0x5aadb2,_0x3c613b,0x1);}),_0x5da2b6(_0x1663d8);}var er=Object[_0x3de555(0x199)],tr=Object[_0x3de555(0x1a4)],sr=(_0x56edcd,_0x5a730c,_0x47e47f,_0x92d2ae)=>{for(var _0x5dea2e=_0x92d2ae>0x1?void 0x0:_0x92d2ae?tr(_0x5a730c,_0x47e47f):_0x5a730c,_0x7b41bd=_0x56edcd['length']-0x1,_0x119bdd;_0x7b41bd>=0x0;_0x7b41bd--)(_0x119bdd=_0x56edcd[_0x7b41bd])&&(_0x5dea2e=(_0x92d2ae?_0x119bdd(_0x5a730c,_0x47e47f,_0x5dea2e):_0x119bdd(_0x5dea2e))||_0x5dea2e);return _0x92d2ae&&_0x5dea2e&&er(_0x5a730c,_0x47e47f,_0x5dea2e),_0x5dea2e;},w=(_0x83b759,_0x3abcde)=>(_0xccb457,_0x5047bc)=>_0x3abcde(_0xccb457,_0x5047bc,_0x83b759);let te=class extends _0x4ab5c3{constructor(_0x329c0c,_0x34c460,_0x5ddcb7,_0x895136,_0x1099b7,_0x750b02,_0x3d13fe){const _0xa4b48c=_0x3de555;super(),l(this,_0xa4b48c(0x2e2),new Set()),l(this,_0xa4b48c(0x168),null),(this[_0xa4b48c(0x159)]=_0x329c0c,this[_0xa4b48c(0x2ac)]=_0x34c460,this['_versionDiffService']=_0x5ddcb7,this[_0xa4b48c(0x1a9)]=_0x895136,this['_renderManagerService']=_0x1099b7,this[_0xa4b48c(0x285)]=_0x750b02,this[_0xa4b48c(0x2b6)]=_0x3d13fe,this[_0xa4b48c(0x1c9)]());}['_init'](){const _0x3cf7b1=_0x3de555;this['_initRender'](),this[_0x3cf7b1(0x216)]();}[_0x3de555(0x2d9)](){const _0x217982=_0x3de555;this[_0x217982(0x28e)](_0x4b2898([this[_0x217982(0x2ac)][_0x217982(0x2a0)],this[_0x217982(0x285)][_0x217982(0x228)]])[_0x217982(0x149)](_0x4bdbe7(([_0x5b13df,_0x3ce4b3])=>{const _0x2905fb=_0x217982;if(_0x5b13df===$['Loaded']&&_0x3ce4b3){const _0x2384d8=_0x3ce4b3['sheetId'];return this[_0x2905fb(0x14a)][_0x2905fb(0x20f)][_0x2905fb(0x149)](_0x21a892(_0x37a474=>{const _0x25b83b=_0x2905fb,_0x59f5fc=new Map();return _0x37a474['ranges'][_0x25b83b(0x2e0)]((_0x48eff7,_0x5dc7b2)=>{const _0x4f385b=_0x48eff7['filter'](_0x128318=>_0x128318['subUnitId']===_0x2384d8);_0x59f5fc['set'](_0x5dc7b2,_0x4f385b);}),{'skeleton':_0x3ce4b3,'diffs':_0x59f5fc};}));}return _0x1880b0({'skeleton':null,'diffs':new Map()});}))['subscribe'](({skeleton:_0x2705c0,diffs:_0x530575})=>{const _0x496196=_0x217982;this[_0x496196(0x1a3)](),_0x2705c0&&this[_0x496196(0x158)](_0x2705c0,_0x530575);})),this['disposeWithMe'](this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0xf56b0e=>{const _0x2e6b9d=_0x217982;if(_0xf56b0e==null)return;const {skeleton:_0x37cb04}=_0xf56b0e,{scene:_0x5e0892}=this[_0x2e6b9d(0x159)];_0x5e0892[_0x2e6b9d(0x23f)][_0x2e6b9d(0x230)](_0x881d02(_0x43b414=>{const _0x3a0ca3=_0x2e6b9d;var _0x546212,_0x24c674;const {offsetX:_0x22fbfd,offsetY:_0x2e4a40}=_0x43b414,{x:_0x575ae0,y:_0x3b1dc9}=_0x5e0892[_0x3a0ca3(0x2c7)](_0x392745[_0x3a0ca3(0x157)]([_0x22fbfd,_0x2e4a40])),{scaleX:_0x4cb7e2,scaleY:_0x413e7e}=_0x5e0892['getAncestorScale'](),_0x27d381=_0x5e0892[_0x3a0ca3(0x151)](_0x3ef3c4[_0x3a0ca3(0x1f0)]),_0x40a6b8=_0x5e0892[_0x3a0ca3(0x274)](_0x392745['FromArray']([_0x575ae0,_0x3b1dc9]),_0x27d381),_0x169f73=_0x37cb04[_0x3a0ca3(0x2a8)](_0x22fbfd,_0x2e4a40,_0x4cb7e2,_0x413e7e,_0x40a6b8);((_0x546212=this[_0x3a0ca3(0x168)])==null?void 0x0:_0x546212['column'])===_0x169f73[_0x3a0ca3(0x202)]&&((_0x24c674=this['_lastPointer'])==null?void 0x0:_0x24c674[_0x3a0ca3(0x2d1)])===_0x169f73[_0x3a0ca3(0x2d1)]||this[_0x3a0ca3(0x2e2)]['forEach'](_0xb67760=>{_0xb67760['onMouseMove'](_0x169f73);});},0x64));}));}['_initActiveSwitch'](){const _0x3b1f6b=_0x3de555;this[_0x3b1f6b(0x28e)](this[_0x3b1f6b(0x2ac)][_0x3b1f6b(0x2a0)]['subscribe'](_0xae3608=>{const _0x3f57d1=_0x3b1f6b,_0x211fd5=new _0x48d332();return _0xae3608===$['Loaded']&&(_0x211fd5['dispose'](),_0x211fd5[_0x3f57d1(0x14c)](this[_0x3f57d1(0x14a)]['currentVersionDiff$'][_0x3f57d1(0x170)](_0x553472=>{const _0x4abc24=_0x3f57d1;_0x553472[_0x4abc24(0x19a)]&&this['_commandService'][_0x4abc24(0x188)](_0x378c37['id'],{'unitId':this[_0x4abc24(0x159)][_0x4abc24(0x29c)],'subUnitId':_0x553472[_0x4abc24(0x19a)]});}))),()=>_0x211fd5[_0x3f57d1(0x152)]();}));}['_updateDiffMarks'](_0xc2a543,_0x2d8812){const _0x1acb08=_0x3de555;var _0x3d48b0;const _0x30e217=(_0x3d48b0=this[_0x1acb08(0x285)][_0x1acb08(0x19d)]())==null?void 0x0:_0x3d48b0['skeleton'];if(!_0x30e217)return;this[_0x1acb08(0x2e2)][_0x1acb08(0x2e0)](_0xf0b756=>{const _0x2fd930=_0x1acb08;_0xf0b756[_0x2fd930(0x26e)]();});const {scene:_0x48da8c}=this[_0x1acb08(0x159)],_0x13c7c9=Array['from'](_0x2d8812['keys']())[_0x1acb08(0x2bf)](_0x56d4dd=>_0x2d8812['get'](_0x56d4dd)[_0x1acb08(0x2bf)](_0x560633=>{const _0x4b8add=_0x1acb08;var _0x22dba7;const {range:_0x35c951,subUnitId:_0x767493,unitId:_0x253096}=_0x560633,{startColumn:_0x40d221,startRow:_0x26e704,endColumn:_0x134457,endRow:_0x37b10e}=_0x35c951,_0xb0c560=_0x482c4b(_0x26e704,_0x40d221,_0x48da8c,_0x30e217),_0x2fe391=_0x482c4b(_0x37b10e,_0x134457,_0x48da8c,_0x30e217),{columnHeaderHeightAndMarginTop:_0x4ea63f}=_0x30e217,{startX:_0x24e0d2,startY:_0x23cf20}=_0xb0c560,{endX:_0x42afea,endY:_0xa9c6df}=_0x2fe391,_0x488654=_0x42afea-_0x24e0d2,_0x1dcdb3=_0xa9c6df-_0x23cf20,_0xf81690={'labelPosition':_0x23cf20-_0x4ea63f>=0x14?_0x4b8add(0x13d):_0x4b8add(0x273),'sheetID':_0x767493,'range':_0x35c951,'color':_0x4b8add(0x22c),'fillAfterStrokeEnabled':!0x0,'backgroundColor':_0x4b8add(0x22c),'name':((_0x22dba7=this[_0x4b8add(0x2ac)][_0x4b8add(0x287)](_0x56d4dd))==null?void 0x0:_0x22dba7[_0x4b8add(0x1b3)])||'','selection':_0x253096+'-'+_0x767493+'-'+_0x35c951[_0x4b8add(0x2e1)]+'-'+_0x35c951[_0x4b8add(0x1fd)]+'-'+_0x35c951[_0x4b8add(0x268)]+'-'+_0x35c951[_0x4b8add(0x226)],'left':_0x24e0d2,'top':_0x23cf20,'width':_0x488654,'height':_0x1dcdb3,'evented':!0x1,'zIndex':0x1};return new _0x401e81('',_0xf81690);}))[_0x1acb08(0x1ea)]();_0x48da8c['addObjects'](_0x13c7c9,0x1),this[_0x1acb08(0x2e2)]=new Set(_0x13c7c9);}[_0x3de555(0x1a3)](){const _0x1b0d26=_0x3de555;var _0x570ee7;(_0x570ee7=this[_0x1b0d26(0x2e2)])==null||_0x570ee7[_0x1b0d26(0x2e0)](_0x19fa65=>_0x19fa65[_0x1b0d26(0x152)]());}['_getSheetObject'](){const _0x186670=_0x3de555;return _0x1e049e(this[_0x186670(0x1a9)],this[_0x186670(0x224)]);}};te=sr([w(0x1,_0x4dc40f(R)),w(0x2,_0x4dc40f(V)),w(0x3,_0x158a83),w(0x4,_0xfd9b60),w(0x5,_0x4dc40f(_0x13d366)),w(0x6,_0x5b299a)],te);function Ve(_0x366ac8){const _0x112fbd=_0x3de555;var _0x369eaa,_0x33c7a4,_0x1840fd='';if(typeof _0x366ac8==_0x112fbd(0x1e5)||typeof _0x366ac8==_0x112fbd(0x2ae))_0x1840fd+=_0x366ac8;else{if(typeof _0x366ac8=='object'){if(Array[_0x112fbd(0x1b4)](_0x366ac8)){var _0x4cb67c=_0x366ac8[_0x112fbd(0x26f)];for(_0x369eaa=0x0;_0x369eaa<_0x4cb67c;_0x369eaa++)_0x366ac8[_0x369eaa]&&(_0x33c7a4=Ve(_0x366ac8[_0x369eaa]))&&(_0x1840fd&&(_0x1840fd+='\x20'),_0x1840fd+=_0x33c7a4);}else{for(_0x33c7a4 in _0x366ac8)_0x366ac8[_0x33c7a4]&&(_0x1840fd&&(_0x1840fd+='\x20'),_0x1840fd+=_0x33c7a4);}}}return _0x1840fd;}function se(){for(var _0x3d0d59,_0x56707f,_0x8be6e=0x0,_0x3c0f41='',_0x27c2d9=arguments['length'];_0x8be6e<_0x27c2d9;_0x8be6e++)(_0x3d0d59=arguments[_0x8be6e])&&(_0x56707f=Ve(_0x3d0d59))&&(_0x3c0f41&&(_0x3c0f41+='\x20'),_0x3c0f41+=_0x56707f);return _0x3c0f41;}function rr(){const _0x1e35be=_0x3de555,_0x1dfb8d=_0x16416e(R),_0x70e973=_0x208e5e(_0x1dfb8d[_0x1e35be(0x235)]),[_0x280bc9,_0xaa9776]=_0x1e1514(!0x1),_0x3de764=hs(_0x70e973);return _0x70e973?_0xa0e293[_0x1e35be(0x163)](_0x1e35be(0x18a),{'className':v['versionListPanel']},_0xa0e293[_0x1e35be(0x163)]('div',{'className':v[_0x1e35be(0x20c)]},_0x3de764[_0x1e35be(0x2bf)]((_0x3ba180,_0x1cec85)=>_0xa0e293[_0x1e35be(0x163)](_0xb376ac,{'key':_0x3ba180[_0x1e35be(0x17f)]},_0xa0e293[_0x1e35be(0x163)](ar,{'date':_0x3ba180[_0x1e35be(0x17f)]}),_0x3ba180['versions']['map']((_0x5ca6a6,_0x400a9b)=>_0xa0e293[_0x1e35be(0x163)](or,{'key':_0x1cec85+'-'+_0x400a9b,'index':[_0x1cec85,_0x400a9b],'item':_0x5ca6a6})))),_0x280bc9&&_0xa0e293[_0x1e35be(0x163)](ir,null))):_0xa0e293[_0x1e35be(0x163)](nr,null);}function ir(){const _0x37e3d4=_0x3de555;return _0xa0e293[_0x37e3d4(0x163)](_0x37e3d4(0x18a),{'className':v['versionListLoading']},_0xa0e293[_0x37e3d4(0x163)](oe,{'className':v[_0x37e3d4(0x1a1)]}));}function nr(){const _0x34499c=_0x3de555;return _0xa0e293[_0x34499c(0x163)](_0x34499c(0x18a),{'className':se(v[_0x34499c(0x132)],_0x34499c(0x139))},_0xa0e293[_0x34499c(0x163)]('span',{'className':se(v['emptyText'],_0x34499c(0x1e0))},_0xa0e293[_0x34499c(0x163)](oe,{'className':'m-auto\x20animate-spin360'})));}function ar(_0x3e19fa){const _0x45b795=_0x3de555,_0x1f11cb=_0x16416e(_0x4c407b),{date:_0x21be40}=_0x3e19fa;return _0xa0e293[_0x45b795(0x163)]('div',{'className':v['versionDate']},ee(_0x21be40,_0x1f11cb[_0x45b795(0x138)]()));}function _0x46ca(_0x461c20,_0x27ae55){const _0x534bbf=_0x534b();return _0x46ca=function(_0x46ca74,_0x4f29fa){_0x46ca74=_0x46ca74-0x12c;let _0x55289d=_0x534bbf[_0x46ca74];return _0x55289d;},_0x46ca(_0x461c20,_0x27ae55);}function or(_0x2ba17c){const _0x184a1b=_0x3de555,{item:_0x64c15f,index:_0x462658}=_0x2ba17c,{time:_0x4e38af,user:_0x521fa5}=_0x64c15f,[_0x1acd3d,_0x55b197]=_0x462658,_0x48626a=_0x16416e(R),_0x415046=_0x208e5e(_0x48626a[_0x184a1b(0x1d2)],'',!0x0)===_0x64c15f['id'],_0x4b928a=_0x1acd3d===0x0&&_0x55b197===0x0,_0x1f63c3=!_0x4b928a&&_0x48626a[_0x184a1b(0x249)],_0x1596a0=_0x16416e(_0x4c407b),_0x3a717f=_0x1596a0[_0x184a1b(0x138)](),_0x58df80=ne(_0x4e38af,_0x3a717f),_0x35e6ad=_0x1596a0['t'](_0x184a1b(0x1be)),_0x31d0df=_0xe9f68e(_0xf35f1a=>{const _0x41c087=_0x184a1b;_0x48626a[_0x41c087(0x191)]!==$[_0x41c087(0x154)]&&(_0x48626a[_0x41c087(0x194)]=_0xf35f1a);},[_0x48626a]),_0x175db1=_0xe9f68e(_0x31c418=>{const _0x7f057d=_0x184a1b;_0x48626a[_0x7f057d(0x2d0)](_0x31c418);},[_0x48626a]);return _0xa0e293[_0x184a1b(0x163)](_0x184a1b(0x18a),{'className':se(v['versionItem'],{[v[_0x184a1b(0x19a)]]:_0x415046}),'onClick':()=>_0x31d0df(_0x64c15f['id'])},_0xa0e293[_0x184a1b(0x163)]('div',{'className':v['versionItemHeader']},_0xa0e293[_0x184a1b(0x163)]('div',{'className':v[_0x184a1b(0x1b5)]}),_0xa0e293['createElement']('div',{'className':v['versionItemHeaderTime']},_0xa0e293[_0x184a1b(0x163)](_0x184a1b(0x2a7),null,_0x58df80['time']),_0x4b928a&&_0xa0e293[_0x184a1b(0x163)](_0x184a1b(0x2a7),{'className':v[_0x184a1b(0x1d8)]},_0x35e6ad)),_0xa0e293['createElement'](_0x184a1b(0x18a),null,_0x1f63c3&&_0xa0e293[_0x184a1b(0x163)](_0x445f48,{'title':_0x1596a0['t'](_0x184a1b(0x209))},_0xa0e293['createElement'](_0x184a1b(0x18a),{'onClick':_0x5622e6=>{const _0x4e51fd=_0x184a1b;_0x5622e6[_0x4e51fd(0x299)](),_0x175db1(_0x64c15f['id']);},'className':v['versionItemHeaderRevert']},_0xa0e293['createElement'](Te,null))))),_0xa0e293[_0x184a1b(0x163)]('div',{'className':v[_0x184a1b(0x250)]},ls(_0x64c15f,_0x1596a0)));}var cr=Object[_0x3de555(0x199)],lr=Object['getOwnPropertyDescriptor'],ur=(_0xa2360b,_0x49c3ea,_0x4ff442,_0x5d5fea)=>{for(var _0x23158b=_0x5d5fea>0x1?void 0x0:_0x5d5fea?lr(_0x49c3ea,_0x4ff442):_0x49c3ea,_0x2402d4=_0xa2360b['length']-0x1,_0x47fc24;_0x2402d4>=0x0;_0x2402d4--)(_0x47fc24=_0xa2360b[_0x2402d4])&&(_0x23158b=(_0x5d5fea?_0x47fc24(_0x49c3ea,_0x4ff442,_0x23158b):_0x47fc24(_0x23158b))||_0x23158b);return _0x5d5fea&&_0x23158b&&cr(_0x49c3ea,_0x4ff442,_0x23158b),_0x23158b;},H=(_0x51d8d4,_0x445fe3)=>(_0x1d5ecb,_0x322aea)=>_0x445fe3(_0x1d5ecb,_0x322aea,_0x51d8d4);const _e=_0x3de555(0x256);let Y=class extends _0x4ab5c3{constructor(_0x4bec24,_0x59e593,_0x3c7d5d,_0x212846){const _0x58e608=_0x3de555;super(),l(this,'_sidebarDisposable',null),(this[_0x58e608(0x1ec)]=_0x4bec24,this['_componentManager']=_0x59e593,this['_localeService']=_0x3c7d5d,this[_0x58e608(0x2ac)]=_0x212846,this[_0x58e608(0x1c9)]());}[_0x3de555(0x1c9)](){const _0x3c13f3=_0x3de555;this[_0x3c13f3(0x282)](),this['_openPanel']();}[_0x3de555(0x162)](){const _0x1d33ac=_0x3de555;if(this['_sidebarDisposable'])return;const _0x1872a9={'header':{'title':this[_0x1d33ac(0x2a1)]['t'](_0x1d33ac(0x2d3))},'children':{'label':_e},'onClose':()=>{const _0x26a985=_0x1d33ac;this[_0x26a985(0x181)]=null,this['_historyManagerService'][_0x26a985(0x20e)]=ae['Exited'];}};this[_0x1d33ac(0x181)]=this[_0x1d33ac(0x1ec)][_0x1d33ac(0x219)]({..._0x1872a9});}['_initPanel'](){const _0x5a3c2c=_0x3de555;this[_0x5a3c2c(0x28e)](this[_0x5a3c2c(0x1ae)][_0x5a3c2c(0x1fb)](_e,rr)),this['disposeWithMe'](this[_0x5a3c2c(0x1ec)]['scrollEvent$']['pipe'](_0x1ff4cd(0x64))[_0x5a3c2c(0x170)](_0x27872c=>{const _0x391466=_0x5a3c2c,{target:_0x30f2d0}=_0x27872c||{};if(_0x30f2d0){const {scrollTop:_0x100665,scrollHeight:_0x5f5498,clientHeight:_0x1e4581}=_0x30f2d0;_0x100665+_0x1e4581>=_0x5f5498-0x5&&this[_0x391466(0x2ac)][_0x391466(0x298)]();}}));}};Y=ur([H(0x0,_0x4ce9b0),H(0x1,_0x4dc40f(_0x9005be)),H(0x2,_0x4dc40f(_0x4c407b)),H(0x3,_0x4dc40f(R))],Y);class hr extends _0x4ab5c3{constructor(){const _0x598dae=_0x3de555;super(),l(this,_0x598dae(0x2d7),new _0x2de2e3());}[_0x3de555(0x219)](){return _0x2cce47(()=>{});}[_0x3de555(0x1ab)](){}[_0x3de555(0x1f5)](_0x185b97){}['getDialogs$'](){const _0x217127=_0x3de555;return this[_0x217127(0x2d7)][_0x217127(0x176)]();}}var Le=Object[_0x3de555(0x199)],dr=Object['getOwnPropertyDescriptor'],_r=(_0x3387a6,_0x1af5d0,_0x104913)=>_0x1af5d0 in _0x3387a6?Le(_0x3387a6,_0x1af5d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104913}):_0x3387a6[_0x1af5d0]=_0x104913,vr=(_0x3b2e6c,_0x527442,_0x217e8d,_0xb81194)=>{const _0x53e0fb=_0x3de555;for(var _0x4c5b83=_0xb81194>0x1?void 0x0:_0xb81194?dr(_0x527442,_0x217e8d):_0x527442,_0x30b33b=_0x3b2e6c[_0x53e0fb(0x26f)]-0x1,_0x4e9260;_0x30b33b>=0x0;_0x30b33b--)(_0x4e9260=_0x3b2e6c[_0x30b33b])&&(_0x4c5b83=(_0xb81194?_0x4e9260(_0x527442,_0x217e8d,_0x4c5b83):_0x4e9260(_0x4c5b83))||_0x4c5b83);return _0xb81194&&_0x4c5b83&&Le(_0x527442,_0x217e8d,_0x4c5b83),_0x4c5b83;},J=(_0x751ba5,_0x12cd1e)=>(_0x1adb1a,_0x62fc61)=>_0x12cd1e(_0x1adb1a,_0x62fc61,_0x751ba5),mr=(_0x33a3ca,_0x3e0b2e,_0x562304)=>_r(_0x33a3ca,_0x3e0b2e+'',_0x562304);const fr=_0x3de555(0x278);let re=class extends _0x79775c{constructor(_0x5c3cf2=rs,_0x2bc067,_0x5bf6f0,_0xd0cd50){const _0x3f6f77=_0x3de555;super(),this[_0x3f6f77(0x2b0)]=_0x5c3cf2,this[_0x3f6f77(0x16e)]=_0x2bc067,this[_0x3f6f77(0x224)]=_0x5bf6f0,this[_0x3f6f77(0x2c9)]=_0xd0cd50;const {..._0x2419a6}=this[_0x3f6f77(0x2b0)];this[_0x3f6f77(0x2c9)][_0x3f6f77(0x1c0)](we,_0x2419a6);}[_0x3de555(0x1ed)](){const _0x508c6d=_0x3de555;[[R],[F],[V],[W],[Y],[_0x15b46d],[U],[_0x80d92f,{'useClass':_0xab2f70}],[_0x2ea981,{'useClass':_0x2e9c94}],[_0x11466e,{'useClass':_0x2f2f47}],[_0x86499b,{'useClass':hr}],[_0x20a09a,{'useClass':_0x1302e4}]][_0x508c6d(0x2e0)](_0x54f1ee=>this[_0x508c6d(0x16e)][_0x508c6d(0x14c)](_0x54f1ee)),this['_injector'][_0x508c6d(0x13f)](F);}[_0x3de555(0x1e7)](){const _0x1dce3b=_0x3de555;[[te]]['forEach'](_0x6d135a=>{const _0x345265=_0x46ca;this['disposeWithMe'](this[_0x345265(0x224)][_0x345265(0x143)](_0x5491c0[_0x345265(0x193)],_0x6d135a));}),this[_0x1dce3b(0x16e)][_0x1dce3b(0x13f)](U),this[_0x1dce3b(0x16e)][_0x1dce3b(0x13f)](Y);}[_0x3de555(0x24d)](){const _0xfb33a0=_0x3de555;this[_0xfb33a0(0x16e)][_0xfb33a0(0x13f)](V);}};mr(re,_0x3de555(0x1cf),fr),re=vr([_0x58200e(_0x2a625e),J(0x1,_0x4dc40f(_0x2f9785)),J(0x2,_0xfd9b60),J(0x3,_0x369d98)],re);export{R as HistoryManagerService,ae as HistoryModeStatus,re as UniverEditHistoryViewerPlugin};
1
+ const _0x3beb43=_0x174a;(function(_0x2b1e25,_0x321841){const _0x31c000=_0x174a,_0x1b6e48=_0x2b1e25();while(!![]){try{const _0x314bda=-parseInt(_0x31c000(0x2c7))/0x1*(parseInt(_0x31c000(0x204))/0x2)+-parseInt(_0x31c000(0x31d))/0x3+-parseInt(_0x31c000(0x20e))/0x4*(-parseInt(_0x31c000(0x30a))/0x5)+parseInt(_0x31c000(0x226))/0x6+-parseInt(_0x31c000(0x278))/0x7+-parseInt(_0x31c000(0x38f))/0x8+parseInt(_0x31c000(0x2e5))/0x9;if(_0x314bda===_0x321841)break;else _0x1b6e48['push'](_0x1b6e48['shift']());}catch(_0x5528a6){_0x1b6e48['push'](_0x1b6e48['shift']());}}}(_0x1482,0x599d6));var Fe=Object[_0x3beb43(0x213)],Ye=(_0x40765c,_0x436d93,_0x289f08)=>_0x436d93 in _0x40765c?Fe(_0x40765c,_0x436d93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x289f08}):_0x40765c[_0x436d93]=_0x289f08,l=(_0x5abf65,_0xdedde9,_0x48fbcd)=>Ye(_0x5abf65,typeof _0xdedde9!='symbol'?_0xdedde9+'':_0xdedde9,_0x48fbcd);import{Disposable as _0x49a45c,LocaleType as _0x37fe27,Inject as _0x286274,UniverInstanceType as _0x47aded,IUniverInstanceService as _0x212eaf,ICommandService as _0x3f7672,IConfigService as _0x2c87d9,LocaleService as _0x4b72b6,useDependency as _0x1ae1b9,Injector as _0x5d907a,IPermissionService as _0x4efcbd,connectInjector as _0xf9a7c4,ObjectMatrix as _0x5f16ce,debounce as _0x55f481,DisposableCollection as _0x2be8ab,toDisposable as _0x174492,DependentOn as _0x58ae67,Plugin as _0x173464,IAuthzIoService as _0x593c8a}from'@univerjs/core';import{IImageIoService as _0x395daa}from'@univerjs/drawing';import{IRenderManagerService as _0x52528f,Vector2 as _0x5e54aa}from'@univerjs/engine-render';import{HTTPService as _0x22d6fc,IHTTPImplementation as _0x3c4871,FetchHTTPImplementation as _0x7d925c}from'@univerjs/network';import{ICellEditorManagerService as _0x1458c2,SheetSkeletonManagerService as _0x4a549b,VIEWPORT_KEY as _0xa003cb,getCoordByCell as _0x293dba,getSheetObject as _0x1c30b4,UniverSheetsUIPlugin as _0x562ef0}from'@univerjs/sheets-ui';import{IMessageService as _0x599ada,IConfirmService as _0x18a9d7,useObservable as _0x2228c6,IUIPartsService as _0xc34303,BuiltInUIPart as _0x598b60,ComponentManager as _0xeb0ca1,ISidebarService as _0x117690,IDialogService as _0x17ded3}from'@univerjs/ui';import{RevertRevisionMutation as _0x4cebca,CreateUnitMutation as _0x195947,CompressMutationService as _0x5cbcba,transformSnapshotToWorkbookData as _0x193587,ISnapshotServerService as _0x4efa4f,parseProtocolChangeset as _0x56a295,isTransformMutationsSuccess as _0x649626,ITransformService as _0x3e8f0f}from'@univerjs-pro/collaboration';import{SheetCollabCursorShape as _0x333098,SnapshotServerOverHTTPService as _0x48e390,AuthzIoHttpService as _0x28c43c,ImageIoService as _0x6a7eb9}from'@univerjs-pro/collaboration-client';import{MessageType as _0xf8df50,Button as _0x2c586a,Tooltip as _0x5618a3}from'@univerjs/design';import{InsertSheetMutation as _0x3c63b7,RemoveSheetMutation as _0x240faa,SetFrozenMutation as _0x170b57,AddWorksheetProtectionMutation as _0xdd0ff5,AddRangeProtectionMutation as _0x180b57,DeleteRangeProtectionMutation as _0x1bed9f,DeleteWorksheetProtectionMutation as _0x5f0de9,WorkbookEditablePermission as _0x31c494,WorkbookRenameSheetPermission as _0x5dbf14,WorkbookMoveSheetPermission as _0x5b80ea,WorkbookHideSheetPermission as _0x247292,SetWorksheetHideMutation as _0x3c927c,SetRangeValuesMutation as _0x32bef4,SetRangeProtectionMutation as _0x2b6fde,ReorderRangeMutation as _0x3ce41f,RemoveNumfmtMutation as _0x4649f2,SetNumfmtMutation as _0xf6d494,MoveColsMutation as _0x2c5c3f,MoveRowsMutation as _0x3c8aab,MoveRangeMutation as _0x5008eb,InsertColMutation as _0x5d98a2,InsertRowMutation as _0xd0d0f1,AddWorksheetMergeMutation as _0x581958,RangeMergeUtil as _0x1d8e28,findAllRectangle as _0x99cef2,SetWorksheetActiveOperation as _0x17ff39}from'@univerjs/sheets';import{BehaviorSubject as _0x332727,combineLatest as _0x153c3c,switchMap as _0x19a163,map as _0x36be2c,of as _0x3d967c,debounceTime as _0x269f0a,Subject as _0x5f5456}from'rxjs';import{SetSheetsFilterRangeMutation as _0x53f609}from'@univerjs/sheets-filter';import{AddDataValidationMutation as _0x2e468d,UpdateDataValidationMutation as _0x5a5470}from'@univerjs/data-validation';import{SetConditionalRuleMutation as _0x5943aa,AddConditionalRuleMutation as _0x1330bc}from'@univerjs/sheets-conditional-formatting';import _0x6f7b11,{forwardRef as _0x1ed5a0,useRef as _0x1e815b,createElement as _0x5406b4,useCallback as _0x18fb58,useState as _0x3ef6d5,Fragment as _0x172862}from'react';const we=_0x3beb43(0x354),rs={};var is=Object[_0x3beb43(0x213)],ns=Object['getOwnPropertyDescriptor'],as=(_0x588db9,_0x22a6b1,_0x1a287d,_0x2f3c08)=>{const _0x31828d=_0x3beb43;for(var _0x458c14=_0x2f3c08>0x1?void 0x0:_0x2f3c08?ns(_0x22a6b1,_0x1a287d):_0x22a6b1,_0x5d7c18=_0x588db9[_0x31828d(0x23f)]-0x1,_0x4e1113;_0x5d7c18>=0x0;_0x5d7c18--)(_0x4e1113=_0x588db9[_0x5d7c18])&&(_0x458c14=(_0x2f3c08?_0x4e1113(_0x22a6b1,_0x1a287d,_0x458c14):_0x4e1113(_0x458c14))||_0x458c14);return _0x2f3c08&&_0x458c14&&is(_0x22a6b1,_0x1a287d,_0x458c14),_0x458c14;},os=(_0x53c7e2,_0xeab8f5)=>(_0x4860c4,_0x57ea90)=>_0xeab8f5(_0x4860c4,_0x57ea90,_0x53c7e2);let U=class extends _0x49a45c{constructor(_0xd00af4){const _0x527a62=_0x3beb43;super(),this[_0x527a62(0x2c3)]=_0xd00af4,this[_0x527a62(0x35c)]();}['_init'](){const _0x1d1063=_0x3beb43;this['disposeWithMe'](this[_0x1d1063(0x2c3)][_0x1d1063(0x332)]['subscribe'](_0x32419a=>{const _0x5368e3=_0x1d1063;_0x32419a!=null&&_0x32419a[_0x5368e3(0x33f)]&&this['_cellEditorManagerService'][_0x5368e3(0x36f)]({'show':!0x1});}));}};U=as([os(0x0,_0x1458c2)],U);function _0x174a(_0x2cfadd,_0x545d9f){const _0x1482bd=_0x1482();return _0x174a=function(_0x174a45,_0x56ed18){_0x174a45=_0x174a45-0x1e4;let _0x245294=_0x1482bd[_0x174a45];return _0x245294;},_0x174a(_0x2cfadd,_0x545d9f);}var G=(_0x3898c3=>(_0x3898c3[_0x3898c3[_0x3beb43(0x2fc)]=0x0]=_0x3beb43(0x2fc),_0x3898c3[_0x3898c3['OK']=0x1]='OK',_0x3898c3[_0x3898c3[_0x3beb43(0x240)]=0x2]=_0x3beb43(0x240),_0x3898c3[_0x3898c3[_0x3beb43(0x323)]=0x3]='PERMISSION_DENIED',_0x3898c3[_0x3898c3[_0x3beb43(0x272)]=0x4]=_0x3beb43(0x272),_0x3898c3[_0x3898c3[_0x3beb43(0x2e1)]=0x5]=_0x3beb43(0x2e1),_0x3898c3[_0x3898c3[_0x3beb43(0x21e)]=0x6]=_0x3beb43(0x21e),_0x3898c3[_0x3898c3[_0x3beb43(0x1f6)]=0x7]=_0x3beb43(0x1f6),_0x3898c3[_0x3898c3[_0x3beb43(0x256)]=0x8]=_0x3beb43(0x256),_0x3898c3[_0x3898c3[_0x3beb43(0x275)]=0x9]=_0x3beb43(0x275),_0x3898c3[_0x3898c3[_0x3beb43(0x21c)]=0x1389]=_0x3beb43(0x21c),_0x3898c3[_0x3898c3[_0x3beb43(0x208)]=0x1771]=_0x3beb43(0x208),_0x3898c3[_0x3898c3[_0x3beb43(0x212)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3898c3[_0x3898c3[_0x3beb43(0x1f8)]=0x1773]=_0x3beb43(0x1f8),_0x3898c3[_0x3898c3[_0x3beb43(0x2db)]=0x1b59]=_0x3beb43(0x2db),_0x3898c3[_0x3898c3[_0x3beb43(0x328)]=0x1b5a]=_0x3beb43(0x328),_0x3898c3[_0x3898c3[_0x3beb43(0x250)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3898c3[_0x3898c3[_0x3beb43(0x36a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3898c3[_0x3898c3[_0x3beb43(0x286)]=0x1b5d]='APPLY_DUPLICATED',_0x3898c3[_0x3898c3['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3beb43(0x2ee),_0x3898c3[_0x3898c3[_0x3beb43(0x333)]=0x2329]=_0x3beb43(0x333),_0x3898c3[_0x3898c3[_0x3beb43(0x236)]=0x232a]=_0x3beb43(0x236),_0x3898c3[_0x3898c3[_0x3beb43(0x2ea)]=0x232b]=_0x3beb43(0x2ea),_0x3898c3[_0x3898c3[_0x3beb43(0x1ef)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3898c3[_0x3898c3['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x3898c3[_0x3898c3[_0x3beb43(0x36e)]=0x2711]=_0x3beb43(0x36e),_0x3898c3[_0x3898c3['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3898c3[_0x3898c3['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3898c3[_0x3898c3[_0x3beb43(0x25a)]=0x2714]=_0x3beb43(0x25a),_0x3898c3[_0x3898c3[_0x3beb43(0x23d)]=-0x1]=_0x3beb43(0x23d),_0x3898c3))(G||{}),j=(_0x2b60fb=>(_0x2b60fb[_0x2b60fb[_0x3beb43(0x21a)]=0x0]=_0x3beb43(0x21a),_0x2b60fb[_0x2b60fb[_0x3beb43(0x367)]=0x1]=_0x3beb43(0x367),_0x2b60fb[_0x2b60fb[_0x3beb43(0x347)]=0x2]=_0x3beb43(0x347),_0x2b60fb[_0x2b60fb[_0x3beb43(0x2fe)]=0x3]=_0x3beb43(0x2fe),_0x2b60fb[_0x2b60fb[_0x3beb43(0x2f5)]=0x4]=_0x3beb43(0x2f5),_0x2b60fb[_0x2b60fb[_0x3beb43(0x23d)]=-0x1]=_0x3beb43(0x23d),_0x2b60fb))(j||{}),O=(_0xf4784f=>(_0xf4784f[_0xf4784f[_0x3beb43(0x338)]=0x0]=_0x3beb43(0x338),_0xf4784f[_0xf4784f[_0x3beb43(0x382)]=0x1]=_0x3beb43(0x382),_0xf4784f[_0xf4784f[_0x3beb43(0x279)]=0x2]=_0x3beb43(0x279),_0xf4784f[_0xf4784f[_0x3beb43(0x36c)]=0x3]=_0x3beb43(0x36c),_0xf4784f[_0xf4784f[_0x3beb43(0x383)]=0x4]=_0x3beb43(0x383),_0xf4784f[_0xf4784f[_0x3beb43(0x2e7)]=0x5]='Comment',_0xf4784f[_0xf4784f['Copy']=0x6]=_0x3beb43(0x25e),_0xf4784f[_0xf4784f[_0x3beb43(0x21d)]=0x7]=_0x3beb43(0x21d),_0xf4784f[_0xf4784f['Export']=0x8]=_0x3beb43(0x20c),_0xf4784f[_0xf4784f[_0x3beb43(0x301)]=0x9]=_0x3beb43(0x301),_0xf4784f[_0xf4784f[_0x3beb43(0x244)]=0xa]=_0x3beb43(0x244),_0xf4784f[_0xf4784f[_0x3beb43(0x284)]=0xb]='HideWorksheet',_0xf4784f[_0xf4784f['RenameWorksheet']=0xc]=_0x3beb43(0x37d),_0xf4784f[_0xf4784f[_0x3beb43(0x1e4)]=0xd]=_0x3beb43(0x1e4),_0xf4784f[_0xf4784f[_0x3beb43(0x368)]=0xe]=_0x3beb43(0x368),_0xf4784f[_0xf4784f['EditWorksheetCell']=0xf]='EditWorksheetCell',_0xf4784f[_0xf4784f[_0x3beb43(0x26d)]=0x10]='InsertHyperlink',_0xf4784f[_0xf4784f[_0x3beb43(0x350)]=0x11]=_0x3beb43(0x350),_0xf4784f[_0xf4784f[_0x3beb43(0x23b)]=0x12]=_0x3beb43(0x23b),_0xf4784f[_0xf4784f[_0x3beb43(0x247)]=0x13]=_0x3beb43(0x247),_0xf4784f[_0xf4784f[_0x3beb43(0x365)]=0x14]=_0x3beb43(0x365),_0xf4784f[_0xf4784f[_0x3beb43(0x248)]=0x15]=_0x3beb43(0x248),_0xf4784f[_0xf4784f[_0x3beb43(0x273)]=0x16]=_0x3beb43(0x273),_0xf4784f[_0xf4784f[_0x3beb43(0x2f6)]=0x17]=_0x3beb43(0x2f6),_0xf4784f[_0xf4784f['ViewFilter']=0x18]='ViewFilter',_0xf4784f[_0xf4784f['MoveSheet']=0x19]=_0x3beb43(0x32a),_0xf4784f[_0xf4784f['DeleteSheet']=0x1a]=_0x3beb43(0x294),_0xf4784f[_0xf4784f[_0x3beb43(0x29b)]=0x1b]='HideSheet',_0xf4784f[_0xf4784f[_0x3beb43(0x27d)]=0x1c]='CopySheet',_0xf4784f[_0xf4784f[_0x3beb43(0x228)]=0x1d]='RenameSheet',_0xf4784f[_0xf4784f[_0x3beb43(0x21b)]=0x1e]='CreateSheet',_0xf4784f[_0xf4784f[_0x3beb43(0x22a)]=0x1f]=_0x3beb43(0x22a),_0xf4784f[_0xf4784f[_0x3beb43(0x22f)]=0x20]=_0x3beb43(0x22f),_0xf4784f[_0xf4784f['SetCellStyle']=0x21]=_0x3beb43(0x27b),_0xf4784f[_0xf4784f[_0x3beb43(0x241)]=0x22]=_0x3beb43(0x241),_0xf4784f[_0xf4784f['SetRowStyle']=0x23]=_0x3beb43(0x2b1),_0xf4784f[_0xf4784f[_0x3beb43(0x2c8)]=0x24]=_0x3beb43(0x2c8),_0xf4784f[_0xf4784f['InsertRow']=0x25]=_0x3beb43(0x307),_0xf4784f[_0xf4784f[_0x3beb43(0x232)]=0x26]='InsertColumn',_0xf4784f[_0xf4784f['DeleteRow']=0x27]=_0x3beb43(0x231),_0xf4784f[_0xf4784f[_0x3beb43(0x318)]=0x28]=_0x3beb43(0x318),_0xf4784f[_0xf4784f[_0x3beb43(0x22d)]=0x29]=_0x3beb43(0x22d),_0xf4784f[_0xf4784f[_0x3beb43(0x309)]=0x2a]=_0x3beb43(0x309),_0xf4784f[_0xf4784f['RecoverHistory']=0x2b]=_0x3beb43(0x325),_0xf4784f[_0xf4784f['ViewHistory']=0x2c]=_0x3beb43(0x321),_0xf4784f[_0xf4784f[_0x3beb43(0x23d)]=-0x1]='UNRECOGNIZED',_0xf4784f))(O||{});function cs(_0x29d285){const _0x3a8635=_0x3beb43;return!!(_0x29d285&&_0x29d285[_0x3a8635(0x370)]&&_0x29d285['code']!==G['OK']&&_0x29d285['code']!=='OK');}const ne=(_0x50ed91,_0x1c6764)=>{const _0x4bbc11=_0x3beb43;if(!_0x50ed91)return{'date':'','time':''};const _0x3141d8=new Date(_0x50ed91),_0x57946a=_0x3141d8['toISOString']()[_0x4bbc11(0x258)]('T')[0x0];switch(_0x1c6764){case _0x37fe27[_0x4bbc11(0x2fd)]:return{'date':ee(_0x57946a,_0x1c6764),'time':_0x3141d8[_0x4bbc11(0x391)]()+':'+String(_0x3141d8[_0x4bbc11(0x384)]())[_0x4bbc11(0x239)](0x2,'0')};default:return{'date':ee(_0x57946a,_0x1c6764),'time':_0x3141d8[_0x4bbc11(0x391)]()+':'+_0x3141d8[_0x4bbc11(0x384)]()};}},ls=(_0x5bdcb8,_0x4cd564)=>{const _0x33d146=_0x3beb43,_0x473515=_0x5bdcb8[_0x33d146(0x235)]||_0x4cd564['t'](_0x33d146(0x2a3));if(_0x5bdcb8[_0x33d146(0x251)]['some'](_0x3ef8bf=>_0x3ef8bf===_0x4cebca['id'])&&_0x5bdcb8[_0x33d146(0x349)]){const _0x2e54a8=ne(_0x5bdcb8[_0x33d146(0x349)],_0x4cd564[_0x33d146(0x25c)]()),_0x2ec063=_0x2e54a8[_0x33d146(0x2a7)]+'\x20'+_0x2e54a8[_0x33d146(0x2b4)];return _0x473515+'\x20'+_0x4cd564['t']('editHistory.action.revertSheetPrefix')+'\x20'+_0x2ec063+'\x20'+_0x4cd564['t'](_0x33d146(0x205));}const _0x2d6f73=us(_0x5bdcb8),_0x138b66=_0x2d6f73[_0x33d146(0x23f)]===0x1?_0x4cd564['t'](_0x2d6f73[0x0]):''+_0x4cd564['t'](_0x2d6f73[0x0])+_0x4cd564['t'](_0x33d146(0x2ba));return _0x473515+'\x20'+_0x138b66;};function us(_0x16d532){const _0x432d6f=_0x3beb43;if(_0x16d532[_0x432d6f(0x251)]['length']===0x0)return[''];const _0x47494a=_0x432d6f(0x1fd),_0x373aa3=_0x47494a+'editSheet',_0x5d042e=[{'id':_0x195947['id'],'action':_0x47494a+_0x432d6f(0x316)},{'id':_0x4cebca['id'],'action':_0x47494a+'revertSheet'},{'id':_0x3c63b7['id'],'action':_0x47494a+_0x432d6f(0x387)},{'id':_0x240faa['id'],'action':_0x47494a+_0x432d6f(0x1e8)},{'id':_0x170b57['id'],'action':_0x47494a+_0x432d6f(0x218)},{'id':_0x53f609['id'],'action':_0x47494a+_0x432d6f(0x378)},{'id':_0x2e468d['id'],'action':_0x47494a+'setDV'},{'id':_0x5a5470['id'],'action':_0x47494a+_0x432d6f(0x252)},{'id':_0x5943aa['id'],'action':_0x47494a+_0x432d6f(0x385)},{'id':_0x1330bc['id'],'action':_0x47494a+_0x432d6f(0x385)},{'id':_0xdd0ff5['id'],'action':_0x47494a+_0x432d6f(0x22c)},{'id':_0x180b57['id'],'action':_0x47494a+'addProtection'},{'id':_0x1bed9f['id'],'action':_0x47494a+'deleteProtection'},{'id':_0x5f0de9['id'],'action':_0x47494a+_0x432d6f(0x26e)}][_0x432d6f(0x377)](_0x22c21d=>_0x16d532[_0x432d6f(0x251)][_0x432d6f(0x255)](_0x22c21d['id']));return _0x5d042e!=null&&_0x5d042e[_0x432d6f(0x23f)]?_0x5d042e[_0x432d6f(0x375)](_0x4dc11d=>_0x4dc11d[_0x432d6f(0x34d)]):[_0x373aa3];}function ee(_0x40b6fc,_0x43d15e){const _0xe489ac=_0x3beb43,[_0x38138a,_0x186f2d,_0x1375ff]=new Date()[_0xe489ac(0x1fc)]()[_0xe489ac(0x258)]('T')[0x0][_0xe489ac(0x258)]('-'),[_0x56ec71,_0x47a2bb,_0x33b20e]=_0x40b6fc[_0xe489ac(0x258)]('-'),_0x48631a=_0x38138a===_0x56ec71&&_0x186f2d===_0x47a2bb&&_0x1375ff===_0x33b20e;let _0x3bb361='',_0x763400='',_0x4cae3f='';switch(_0x43d15e){case _0x37fe27[_0xe489ac(0x2fd)]:return _0x48631a?'今天':(_0x3bb361=_0x38138a===_0x56ec71?'':_0x56ec71+'年',_0x763400=_0x47a2bb+'月',_0x4cae3f=_0x33b20e+'日',''+_0x3bb361+_0x763400+_0x4cae3f);default:return _0x48631a?'Today':(_0x3bb361=_0x38138a===_0x56ec71?'':_0x56ec71+'-',_0x763400=_0x47a2bb+'-',_0x4cae3f=''+_0x33b20e,''+_0x3bb361+_0x763400+_0x4cae3f);}}function hs(_0x112178){const _0x5e2fd8=_0x3beb43;return _0x112178?_0x112178[_0x5e2fd8(0x358)]((_0x5d424c,_0x4be68e)=>{const _0x2aa995=_0x5e2fd8,_0x3884a0=new Date(_0x4be68e[_0x2aa995(0x2b4)])[_0x2aa995(0x1fc)]()[_0x2aa995(0x258)]('T')[0x0];return _0x5d424c[_0x2aa995(0x23f)]>0x0&&_0x5d424c[_0x5d424c[_0x2aa995(0x23f)]-0x1]['dateString']===_0x3884a0?_0x5d424c[_0x5d424c[_0x2aa995(0x23f)]-0x1][_0x2aa995(0x293)]['push'](_0x4be68e):_0x5d424c['push']({'dateString':_0x3884a0,'versions':[_0x4be68e]}),_0x5d424c;},[]):[];}var ds=Object[_0x3beb43(0x213)],_s=Object[_0x3beb43(0x1f3)],vs=(_0x1be014,_0x5b3cf4,_0x154f7d,_0x37a51c)=>{const _0x10d5e6=_0x3beb43;for(var _0x2b3dfb=_0x37a51c>0x1?void 0x0:_0x37a51c?_s(_0x5b3cf4,_0x154f7d):_0x5b3cf4,_0x4afca4=_0x1be014[_0x10d5e6(0x23f)]-0x1,_0x1b59f8;_0x4afca4>=0x0;_0x4afca4--)(_0x1b59f8=_0x1be014[_0x4afca4])&&(_0x2b3dfb=(_0x37a51c?_0x1b59f8(_0x5b3cf4,_0x154f7d,_0x2b3dfb):_0x1b59f8(_0x2b3dfb))||_0x2b3dfb);return _0x37a51c&&_0x2b3dfb&&ds(_0x5b3cf4,_0x154f7d,_0x2b3dfb),_0x2b3dfb;},N=(_0x28d286,_0x9e5461)=>(_0x50d82d,_0x3ac22c)=>_0x9e5461(_0x50d82d,_0x3ac22c,_0x28d286);const ms=_0x3beb43(0x34b);let W=class extends _0x49a45c{constructor(_0x26bf46,_0x4bf893,_0x51decf,_0x39b8d7,_0x26393b,_0x3073a0){const _0x34ceac=_0x3beb43;super(),l(this,_0x34ceac(0x1f2),new Map()),(this['_snapshotServerService']=_0x26bf46,this['_univerInstanceService']=_0x4bf893,this[_0x34ceac(0x260)]=_0x51decf,this['_configService']=_0x39b8d7,this[_0x34ceac(0x263)]=_0x26393b,this[_0x34ceac(0x23e)]=_0x3073a0);}[_0x3beb43(0x38d)](){const _0x29936f=_0x3beb43;this[_0x29936f(0x1f2)]['clear'](),super['dispose']();}async[_0x3beb43(0x215)](_0x553806,_0x3f31af){const _0xcaff29=_0x3beb43,_0x4cc45b=this[_0xcaff29(0x2e2)]()+'/'+_0x553806+_0xcaff29(0x1eb)+(_0x3f31af?_0xcaff29(0x373)+_0x3f31af:'');try{const _0x3a39fa=(await this[_0xcaff29(0x263)][_0xcaff29(0x26c)](_0x4cc45b))[_0xcaff29(0x249)];if(_0x3a39fa&&_0x3a39fa[_0xcaff29(0x337)]&&_0x3a39fa[_0xcaff29(0x337)][_0xcaff29(0x370)]===G['OK']){const {hasMore:_0x331aaf,lastLabel:_0x26f76a}=_0x3a39fa,_0x2b5956=fs(_0x3a39fa),_0x1de685=_0x3a39fa[_0xcaff29(0x360)][_0xcaff29(0x297)];return{'hasMore':_0x331aaf,'lastLabel':_0x26f76a,'versions':_0x2b5956,'members':_0x1de685};}}catch(_0x5aeba5){console[_0xcaff29(0x337)](_0x5aeba5);}return null;}[_0x3beb43(0x2e2)](){const _0x122063=_0x3beb43;var _0x230f03;const _0x4d9ef3=this[_0x122063(0x1fa)][_0x122063(0x221)](we);return(_0x230f03=_0x4d9ef3==null?void 0x0:_0x4d9ef3[_0x122063(0x330)])!=null?_0x230f03:ms;}async[_0x3beb43(0x282)](_0x16d1f6,_0x398dcb,_0x45bc5e){const _0x48cd95=_0x3beb43;var _0x21d78d,_0x1ae444;_0x45bc5e===void 0x0&&(_0x45bc5e={}),this['_workbookDataCache'][_0x48cd95(0x2a4)](_0x16d1f6)||this[_0x48cd95(0x1f2)][_0x48cd95(0x362)](_0x16d1f6,new Map());const {snapshot:_0x232564,changesets:_0x2ad8cb,error:_0x1eaac1}=await this[_0x48cd95(0x25b)][_0x48cd95(0x230)](_0x45bc5e,{'unitID':_0x16d1f6,'type':j['UNIVER_SHEET'],'revision':_0x398dcb});if(cs(_0x1eaac1)||!_0x232564||!_0x232564[_0x48cd95(0x2c6)])throw new Error(_0x48cd95(0x317));const _0x5f2907=(_0x21d78d=_0x2ad8cb==null?void 0x0:_0x2ad8cb['length'])!=null?_0x21d78d:0x0;if(_0x398dcb!==0x0&&_0x232564[_0x48cd95(0x35d)]+_0x5f2907!==_0x398dcb)throw new Error(_0x48cd95(0x24c));const {workbook:_0x3ae47f}=_0x232564,_0xb36bb4=_0x3ae47f['blockMeta']?Object['entries'](_0x3ae47f[_0x48cd95(0x242)])[_0x48cd95(0x375)](([_0x14dddb,_0x16fa89])=>{var _0x5249d0,_0x3e3863;return(_0x3e3863=(_0x5249d0=_0x16fa89['blocks'])==null?void 0x0:_0x5249d0['map'](_0x440810=>_0x440810))!=null?_0x3e3863:[];})[_0x48cd95(0x2d8)]():[],_0x4b7c1a=(await Promise['all'](_0xb36bb4[_0x48cd95(0x375)](_0x59b01a=>this[_0x48cd95(0x25b)][_0x48cd95(0x262)](_0x45bc5e,{'unitID':_0x16d1f6,'type':j[_0x48cd95(0x347)],'blockID':_0x59b01a})[_0x48cd95(0x33e)](_0x2e1c5c=>_0x2e1c5c['block']))))[_0x48cd95(0x377)](_0x22105d=>!!_0x22105d),_0x432b01=_0x193587(_0x232564,_0x4b7c1a,_0x45bc5e);return(_0x1ae444=this['_workbookDataCache'][_0x48cd95(0x26c)](_0x16d1f6))==null||_0x1ae444[_0x48cd95(0x362)](_0x398dcb,{'workbook':_0x432b01}),new Promise(_0x3d3dc4=>{const _0x108739=_0x48cd95,_0x48fd18=this[_0x108739(0x1ed)][_0x108739(0x269)](_0x47aded[_0x108739(0x347)]);_0x48fd18?(this['_univerInstanceService']['disposeUnit'](_0x48fd18[_0x108739(0x289)]()),setTimeout(()=>{this['_createUnit'](_0x432b01,_0x2ad8cb),_0x3d3dc4(!0x0);},0x0)):(this[_0x108739(0x35e)](_0x432b01,_0x2ad8cb),_0x3d3dc4(!0x0));});}[_0x3beb43(0x35e)](_0x1721f2,_0x5aae5f){const _0x3d51fa=_0x3beb43,_0x312fe1=this[_0x3d51fa(0x1ed)][_0x3d51fa(0x308)](_0x47aded[_0x3d51fa(0x347)],_0x1721f2);this[_0x3d51fa(0x1ed)][_0x3d51fa(0x363)](_0x312fe1['getUnitId']());const _0x1847b3=this[_0x3d51fa(0x23e)][_0x3d51fa(0x2d0)]['fetchThroughInterceptors'](this[_0x3d51fa(0x23e)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);return _0x5aae5f==null||_0x5aae5f[_0x3d51fa(0x2b6)](_0x2a856c=>{const _0x2bd9db=_0x3d51fa,_0x14d334=_0x2a856c[_0x2bd9db(0x22e)][_0x2bd9db(0x375)](_0x3ed099=>({'id':_0x3ed099['id'],'params':JSON['parse'](_0x3ed099[_0x2bd9db(0x2b5)])}));({..._0x2a856c,'mutations':_0x1847b3(_0x14d334,null)||_0x14d334}['mutations'][_0x2bd9db(0x2b6)](_0x355e6=>{this['_commandService']['hasCommand'](_0x355e6['id'])&&this['_commandService']['syncExecuteCommand'](_0x355e6['id'],_0x355e6['params']);}));}),_0x312fe1;}};W=vs([N(0x0,_0x4efa4f),N(0x1,_0x212eaf),N(0x2,_0x3f7672),N(0x3,_0x2c87d9),N(0x4,_0x286274(_0x22d6fc)),N(0x5,_0x286274(_0x5cbcba))],W);function fs(_0x587576){const _0x57dbc6=_0x3beb43;var _0xd86dcb,_0x78f5d3;const _0x1ee92a=[],{entities:_0x346476,historyIds:_0x413fe8}=_0x587576,{datas:_0xdd16eb,users:_0x20b137}=_0x346476;for(const _0x53992c of _0x413fe8)if(_0xdd16eb[_0x53992c]){const _0x2fddea=!!((_0xd86dcb=_0x20b137[_0xdd16eb[_0x53992c][_0x57dbc6(0x29d)]])!=null&&_0xd86dcb['anonymous']);_0x1ee92a[_0x57dbc6(0x2d1)]({'unitId':_0xdd16eb[_0x53992c]['unitId'],'user':_0x2fddea?'':((_0x78f5d3=_0x20b137==null?void 0x0:_0x20b137[_0xdd16eb[_0x53992c]['userId']])==null?void 0x0:_0x78f5d3[_0x57dbc6(0x2dd)])||'','isAnonymous':_0x2fddea,'id':_0x53992c,'time':_0xdd16eb[_0x53992c]['createTime']?Number(_0xdd16eb[_0x53992c][_0x57dbc6(0x376)]):void 0x0,'commands':_0xdd16eb[_0x53992c][_0x57dbc6(0x36d)],'startRev':Number(_0xdd16eb[_0x53992c][_0x57dbc6(0x2ad)]),'endRev':Number(_0xdd16eb[_0x53992c][_0x57dbc6(0x334)]),'recoverTime':_0xdd16eb[_0x53992c]['recoverTime']?Number(_0xdd16eb[_0x53992c][_0x57dbc6(0x349)]):void 0x0});}return _0x1ee92a;}var gs=Object['defineProperty'],ps=Object[_0x3beb43(0x1f3)],Ss=(_0x54e029,_0x1cc74d,_0xc90e24,_0x13ce16)=>{const _0x2037d8=_0x3beb43;for(var _0x2cf81e=_0x13ce16>0x1?void 0x0:_0x13ce16?ps(_0x1cc74d,_0xc90e24):_0x1cc74d,_0x239b60=_0x54e029[_0x2037d8(0x23f)]-0x1,_0x4e2b7d;_0x239b60>=0x0;_0x239b60--)(_0x4e2b7d=_0x54e029[_0x239b60])&&(_0x2cf81e=(_0x13ce16?_0x4e2b7d(_0x1cc74d,_0xc90e24,_0x2cf81e):_0x4e2b7d(_0x2cf81e))||_0x2cf81e);return _0x13ce16&&_0x2cf81e&&gs(_0x1cc74d,_0xc90e24,_0x2cf81e),_0x2cf81e;},L=(_0x214822,_0x29a2b6)=>(_0x2cc8b8,_0x1dbcbc)=>_0x29a2b6(_0x2cc8b8,_0x1dbcbc,_0x214822),ae=(_0x58d9b7=>(_0x58d9b7[_0x3beb43(0x254)]=_0x3beb43(0x37a),_0x58d9b7[_0x3beb43(0x28c)]=_0x3beb43(0x25f),_0x58d9b7[_0x3beb43(0x2ac)]='error',_0x58d9b7))(ae||{}),$=(_0x3413ea=>(_0x3413ea[_0x3beb43(0x287)]='init',_0x3413ea['Loading']=_0x3beb43(0x335),_0x3413ea[_0x3beb43(0x267)]=_0x3beb43(0x30d),_0x3413ea))($||{});const Is=_0x3beb43(0x1f5);let R=class extends _0x49a45c{constructor(_0x2a45d1,_0x2a64bd,_0x4adfda,_0x5b8864){const _0x161b99=_0x3beb43;super(),l(this,_0x161b99(0x28e),new _0x332727([])),l(this,'versions$',this[_0x161b99(0x28e)][_0x161b99(0x361)]()),l(this,_0x161b99(0x292),new _0x332727('')),l(this,'currentVersion$',this[_0x161b99(0x292)][_0x161b99(0x361)]()),l(this,_0x161b99(0x211),new _0x332727(_0x161b99(0x37a))),l(this,'status$',this['_status$'][_0x161b99(0x361)]()),l(this,_0x161b99(0x20d),new _0x332727(0x0)),l(this,_0x161b99(0x2b9),this[_0x161b99(0x20d)][_0x161b99(0x361)]()),l(this,_0x161b99(0x339),new _0x332727('')),l(this,_0x161b99(0x2f2),this[_0x161b99(0x339)][_0x161b99(0x361)]()),l(this,_0x161b99(0x33d),!0x1),l(this,'_loadingState$',new _0x332727(_0x161b99(0x29e))),l(this,'loadingState$',this[_0x161b99(0x265)][_0x161b99(0x361)]()),l(this,_0x161b99(0x30c),null),l(this,_0x161b99(0x28b),!0x0),l(this,'_members',new Map()),l(this,_0x161b99(0x388)),l(this,'_maskContainer'),l(this,'_maskElement'),l(this,_0x161b99(0x1ee),!0x1),(this[_0x161b99(0x2cb)]=_0x2a45d1,this['_confirmService']=_0x2a64bd,this['_localeService']=_0x4adfda,this[_0x161b99(0x32d)]=_0x5b8864);}async['triggerLoadVersions'](_0x3b74a9,_0x519752,_0x4b9a8e){const _0x2ad835=_0x3beb43;this['_historyContainerId']=_0x519752,this['_canRevert']=_0x4b9a8e,this[_0x2ad835(0x339)]['next'](_0x3b74a9),this[_0x2ad835(0x33d)]=!0x0;const _0x46a12a=await this['_historyFetchService'][_0x2ad835(0x215)](_0x3b74a9);if(this[_0x2ad835(0x33d)]=!0x1,_0x46a12a){const {versions:_0x3264e8,lastLabel:_0x2562f8,hasMore:_0x3e4fec,members:_0x187357}=_0x46a12a;_0x3264e8[_0x2ad835(0x23f)]===0x0&&_0x3264e8[_0x2ad835(0x2d1)]({'unitId':_0x3b74a9,'id':Is,'startRev':0x1,'endRev':0x0,'time':Date[_0x2ad835(0x283)](),'user':this[_0x2ad835(0x357)]['t'](_0x2ad835(0x1f1)),'commands':[],'isAnonymous':!0x1}),this[_0x2ad835(0x24a)](_0x3264e8,_0x3e4fec,_0x2562f8,_0x187357),this[_0x2ad835(0x292)][_0x2ad835(0x2ce)](_0x3264e8[0x0]['id']);}else this[_0x2ad835(0x211)][_0x2ad835(0x2ce)]('error');}async[_0x3beb43(0x2cd)](){const _0x566fe2=_0x3beb43;if(!this['_lastLabel']||!this[_0x566fe2(0x28b)]||this[_0x566fe2(0x33d)])return!0x1;this[_0x566fe2(0x33d)]=!0x0;const _0x29a2b9=await this[_0x566fe2(0x32d)][_0x566fe2(0x215)](this[_0x566fe2(0x2fa)],this[_0x566fe2(0x30c)]);if(this['_fetching']=!0x1,_0x29a2b9){const {versions:_0x62d0b5,lastLabel:_0x3c4b15,hasMore:_0x3f7e80,members:_0x5b88f0}=_0x29a2b9;this[_0x566fe2(0x24a)](_0x62d0b5,_0x3f7e80,_0x3c4b15,_0x5b88f0);}else this[_0x566fe2(0x2cb)][_0x566fe2(0x33f)]({'content':this['_localeService']['t'](_0x566fe2(0x32e)),'type':_0xf8df50[_0x566fe2(0x2ac)],'duration':0xbb8});return!0x0;}async[_0x3beb43(0x21f)](_0x2e1bca){const _0x1826f5=_0x3beb43;var _0x54005b;const _0x498010=(_0x54005b=this[_0x1826f5(0x28e)][_0x1826f5(0x24f)])==null?void 0x0:_0x54005b['find'](_0x506bc0=>_0x506bc0['id']===_0x2e1bca),{endRev:_0x5ca661}=_0x498010||{};_0x5ca661||_0x5ca661===0x0?(this[_0x1826f5(0x265)][_0x1826f5(0x2ce)]('loading'),await this[_0x1826f5(0x32d)][_0x1826f5(0x282)](this[_0x1826f5(0x2fa)],_0x5ca661),this['_loadingState$'][_0x1826f5(0x2ce)](_0x1826f5(0x30d))):this[_0x1826f5(0x211)][_0x1826f5(0x2ce)](_0x1826f5(0x337));}async[_0x3beb43(0x210)](_0x562ccd){const _0x56d9b0=_0x3beb43,_0x1de94c=_0x562ccd?this[_0x56d9b0(0x233)](_0x562ccd):this[_0x56d9b0(0x31a)]();if(!_0x1de94c)return;const _0x54ca7f=_0x1de94c[_0x56d9b0(0x346)],_0x5c3f3d=ne(_0x1de94c[_0x56d9b0(0x2b4)],this[_0x56d9b0(0x357)][_0x56d9b0(0x25c)]());await this['_confirmService'][_0x56d9b0(0x38b)]({'id':_0x56d9b0(0x288),'title':{'title':this['_localeService']['t']('editHistory.panel.revertConfirm')},'children':{'title':this[_0x56d9b0(0x357)]['t'](_0x56d9b0(0x261))+_0x56d9b0(0x277)+_0x5c3f3d[_0x56d9b0(0x2a7)]+'\x20'+_0x5c3f3d[_0x56d9b0(0x2b4)]+')'}})&&this[_0x56d9b0(0x20d)]['next'](_0x54ca7f);}['_updateVersions'](_0x230af9,_0x2940d9,_0x39aa27,_0x24bcd2){const _0x41e8c1=_0x3beb43;this[_0x41e8c1(0x28e)][_0x41e8c1(0x2ce)](this[_0x41e8c1(0x28e)][_0x41e8c1(0x24f)][_0x41e8c1(0x356)](_0x230af9)),this[_0x41e8c1(0x28b)]=_0x2940d9,this[_0x41e8c1(0x30c)]=_0x39aa27,_0x24bcd2&&Object[_0x41e8c1(0x2d7)](_0x24bcd2)[_0x41e8c1(0x2b6)](_0x40ff24=>this[_0x41e8c1(0x220)]['set'](_0x40ff24,_0x24bcd2[_0x40ff24]));}[_0x3beb43(0x31a)](){const _0xacc0a4=_0x3beb43;return this[_0xacc0a4(0x233)](this[_0xacc0a4(0x292)][_0xacc0a4(0x24f)]);}[_0x3beb43(0x233)](_0x5f3c89){const _0x2eac44=_0x3beb43;var _0x5a06fc;return(_0x5a06fc=this[_0x2eac44(0x28e)]['value'])==null?void 0x0:_0x5a06fc[_0x2eac44(0x2d5)](_0xb3abdc=>_0xb3abdc['id']===_0x5f3c89);}[_0x3beb43(0x243)](_0x2bcc6b){const _0x20526c=_0x3beb43;return this[_0x20526c(0x220)][_0x20526c(0x26c)](_0x2bcc6b);}[_0x3beb43(0x238)](){const _0xb77202=_0x3beb43;this[_0xb77202(0x2bd)]=document[_0xb77202(0x364)]('div'),this['_maskElement']['className']=_0xb77202(0x216),this['_maskElement'][_0xb77202(0x305)][_0xb77202(0x203)]=_0xb77202(0x296),this[_0xb77202(0x2bd)][_0xb77202(0x305)][_0xb77202(0x2f7)]='0',this[_0xb77202(0x2bd)]['style'][_0xb77202(0x340)]='0',this[_0xb77202(0x2bd)][_0xb77202(0x305)][_0xb77202(0x34c)]='100%',this[_0xb77202(0x2bd)]['style'][_0xb77202(0x280)]='100%',this[_0xb77202(0x2bd)][_0xb77202(0x305)]['backgroundColor']=_0xb77202(0x352),this['_maskElement'][_0xb77202(0x305)][_0xb77202(0x214)]=_0xb77202(0x264),this[_0xb77202(0x2bd)]['style']['display']=_0xb77202(0x2eb),this[_0xb77202(0x2bd)]['style'][_0xb77202(0x300)]=_0xb77202(0x253),this[_0xb77202(0x2bd)]['style']['zIndex']=_0xb77202(0x298),this['_maskElement'][_0xb77202(0x305)][_0xb77202(0x20b)]='none',this['_maskContainer'][_0xb77202(0x315)](this[_0xb77202(0x2bd)]);}[_0x3beb43(0x2c9)](){const _0x4c77d1=_0x3beb43;var _0x53bce5;const _0x2a6f3a=(_0x53bce5=document['getElementById'](this['_historyContainerId']))==null?void 0x0:_0x53bce5['querySelector'](_0x4c77d1(0x302));_0x2a6f3a&&(this[_0x4c77d1(0x2b7)]=_0x2a6f3a,this[_0x4c77d1(0x238)]());}[_0x3beb43(0x1f4)](){const _0x30ef21=_0x3beb43;this[_0x30ef21(0x2b7)]||this[_0x30ef21(0x2c9)](),this[_0x30ef21(0x2bd)]&&(this[_0x30ef21(0x2bd)]['style'][_0x30ef21(0x20b)]=_0x30ef21(0x2eb));}[_0x3beb43(0x1fe)](){const _0x55a767=_0x3beb43;this[_0x55a767(0x2bd)]&&(this[_0x55a767(0x2bd)][_0x55a767(0x305)][_0x55a767(0x20b)]=_0x55a767(0x295));}set['status'](_0x5352e8){const _0x33d345=_0x3beb43;this[_0x33d345(0x211)]['next'](_0x5352e8);}set['currentVersion'](_0x1bc2d5){const _0x1d1b41=_0x3beb43;_0x1bc2d5!==this[_0x1d1b41(0x292)][_0x1d1b41(0x24f)]&&this['_currentVersion$'][_0x1d1b41(0x2ce)](_0x1bc2d5);}get[_0x3beb43(0x266)](){const _0x4150e9=_0x3beb43;return this[_0x4150e9(0x292)]['value'];}set[_0x3beb43(0x2fa)](_0x55f794){const _0x4f96cc=_0x3beb43;this[_0x4f96cc(0x339)][_0x4f96cc(0x2ce)](_0x55f794);}get[_0x3beb43(0x2fa)](){const _0x1e3c5c=_0x3beb43;return this['_unitId$'][_0x1e3c5c(0x24f)];}get[_0x3beb43(0x2f1)](){const _0x301486=_0x3beb43;return this[_0x301486(0x1ee)];}get[_0x3beb43(0x366)](){const _0x3fc342=_0x3beb43;return this[_0x3fc342(0x265)][_0x3fc342(0x24f)];}};R=Ss([L(0x0,_0x599ada),L(0x1,_0x18a9d7),L(0x2,_0x286274(_0x4b72b6)),L(0x3,_0x286274(W))],R);var I=function(){const _0x2dd829=_0x3beb43;return I=Object[_0x2dd829(0x2ae)]||function(_0x553ac6){const _0x13b6ff=_0x2dd829;for(var _0x359f13,_0x46da0c=0x1,_0x498914=arguments[_0x13b6ff(0x23f)];_0x46da0c<_0x498914;_0x46da0c++){_0x359f13=arguments[_0x46da0c];for(var _0x43bae9 in _0x359f13)Object[_0x13b6ff(0x299)][_0x13b6ff(0x29c)][_0x13b6ff(0x23a)](_0x359f13,_0x43bae9)&&(_0x553ac6[_0x43bae9]=_0x359f13[_0x43bae9]);}return _0x553ac6;},I[_0x2dd829(0x30b)](this,arguments);},Es=function(_0x5b11b6,_0x364f12){const _0x1f5ec9=_0x3beb43;var _0x273fcf={};for(var _0x4f392a in _0x5b11b6)Object[_0x1f5ec9(0x299)][_0x1f5ec9(0x29c)]['call'](_0x5b11b6,_0x4f392a)&&_0x364f12['indexOf'](_0x4f392a)<0x0&&(_0x273fcf[_0x4f392a]=_0x5b11b6[_0x4f392a]);if(_0x5b11b6!=null&&typeof Object[_0x1f5ec9(0x2bf)]=='function'){for(var _0x12a938=0x0,_0x4f392a=Object['getOwnPropertySymbols'](_0x5b11b6);_0x12a938<_0x4f392a[_0x1f5ec9(0x23f)];_0x12a938++)_0x364f12[_0x1f5ec9(0x2aa)](_0x4f392a[_0x12a938])<0x0&&Object[_0x1f5ec9(0x299)]['propertyIsEnumerable']['call'](_0x5b11b6,_0x4f392a[_0x12a938])&&(_0x273fcf[_0x4f392a[_0x12a938]]=_0x5b11b6[_0x4f392a[_0x12a938]]);}return _0x273fcf;},Z=_0x1ed5a0(function(_0x19a4de,_0xa4fff5){const _0x4bf71c=_0x3beb43;var _0x4c2ff4=_0x19a4de[_0x4bf71c(0x32b)],_0x5ea2b9=_0x19a4de['id'],_0x5cee2c=_0x19a4de['className'],_0xce2696=_0x19a4de[_0x4bf71c(0x1f9)],_0x428760=Es(_0x19a4de,[_0x4bf71c(0x32b),'id',_0x4bf71c(0x379),_0x4bf71c(0x1f9)]),_0x20b6b4='univerjs-icon\x20univerjs-icon-'[_0x4bf71c(0x356)](_0x5ea2b9,'\x20')[_0x4bf71c(0x356)](_0x5cee2c||'')[_0x4bf71c(0x31b)](),_0x2d83e3=_0x1e815b('_'[_0x4bf71c(0x356)](Ms()));return De(_0x4c2ff4,''[_0x4bf71c(0x356)](_0x5ea2b9),{'defIds':_0x4c2ff4['defIds'],'idSuffix':_0x2d83e3[_0x4bf71c(0x2a9)]},I({'ref':_0xa4fff5,'className':_0x20b6b4},_0x428760),_0xce2696);});function De(_0x4d5281,_0x45ce45,_0x2212a2,_0x2e4b6b,_0x1d3b81){const _0x2fa6ca=_0x3beb43;return _0x5406b4(_0x4d5281[_0x2fa6ca(0x37b)],I(I({'key':_0x45ce45},Rs(_0x4d5281,_0x2212a2,_0x1d3b81)),_0x2e4b6b),(bs(_0x4d5281,_0x2212a2)[_0x2fa6ca(0x2bb)]||[])['map'](function(_0xd41922,_0xb61f24){const _0x3032af=_0x2fa6ca;return De(_0xd41922,''[_0x3032af(0x356)](_0x45ce45,'-')[_0x3032af(0x356)](_0x4d5281[_0x3032af(0x37b)],'-')[_0x3032af(0x356)](_0xb61f24),_0x2212a2,void 0x0,_0x1d3b81);}));}function Rs(_0x554e61,_0x2d0620,_0x232456){const _0x1c1ebf=_0x3beb43;var _0x20bd87=I({},_0x554e61[_0x1c1ebf(0x2ed)]);_0x232456!=null&&_0x232456[_0x1c1ebf(0x31c)]&&_0x20bd87[_0x1c1ebf(0x1fb)]===_0x1c1ebf(0x31c)&&(_0x20bd87['fill']=_0x232456[_0x1c1ebf(0x31c)]);var _0x365677=_0x2d0620['defIds'];return!_0x365677||_0x365677['length']===0x0||(_0x554e61[_0x1c1ebf(0x37b)]==='use'&&_0x20bd87['xlink:href']&&(_0x20bd87[_0x1c1ebf(0x28d)]=_0x20bd87[_0x1c1ebf(0x28d)]+_0x2d0620[_0x1c1ebf(0x371)]),Object[_0x1c1ebf(0x2ca)](_0x20bd87)[_0x1c1ebf(0x2b6)](function(_0x5f5011){const _0x2b9c76=_0x1c1ebf;var _0x588804=_0x5f5011[0x0],_0x1ea7eb=_0x5f5011[0x1];typeof _0x1ea7eb==_0x2b9c76(0x209)&&(_0x20bd87[_0x588804]=_0x1ea7eb[_0x2b9c76(0x390)](/url\(#(.*)\)/,_0x2b9c76(0x34e)[_0x2b9c76(0x356)](_0x2d0620[_0x2b9c76(0x371)],')')));})),_0x20bd87;}function bs(_0x42cd61,_0xeb579b){const _0x25ca1e=_0x3beb43;var _0x45ed98,_0x4754dc=_0xeb579b[_0x25ca1e(0x27f)];return!_0x4754dc||_0x4754dc[_0x25ca1e(0x23f)]===0x0?_0x42cd61:_0x42cd61[_0x25ca1e(0x37b)]==='defs'&&(!((_0x45ed98=_0x42cd61[_0x25ca1e(0x2bb)])===null||_0x45ed98===void 0x0)&&_0x45ed98['length'])?I(I({},_0x42cd61),{'children':_0x42cd61[_0x25ca1e(0x2bb)][_0x25ca1e(0x375)](function(_0x15b0b2){const _0x5eeb39=_0x25ca1e;return typeof _0x15b0b2['attrs']['id']==_0x5eeb39(0x209)&&_0x4754dc&&_0x4754dc[_0x5eeb39(0x2aa)](_0x15b0b2[_0x5eeb39(0x2ed)]['id'])>-0x1?I(I({},_0x15b0b2),{'attrs':I(I({},_0x15b0b2['attrs']),{'id':_0x15b0b2[_0x5eeb39(0x2ed)]['id']+_0xeb579b['idSuffix']})}):_0x15b0b2;})}):_0x42cd61;}function Ms(){const _0x2c1ea9=_0x3beb43;return Math[_0x2c1ea9(0x268)]()[_0x2c1ea9(0x1ea)](0x24)['substring'](0x2,0x8);}Z[_0x3beb43(0x2d3)]=_0x3beb43(0x28a);var Cs={'tag':_0x3beb43(0x310),'attrs':{'fill':_0x3beb43(0x295),'viewBox':_0x3beb43(0x342),'width':'1em','height':_0x3beb43(0x1e6)},'children':[{'tag':_0x3beb43(0x2dc),'attrs':{'fill':_0x3beb43(0x2af),'d':'M6.42416\x204.42417C6.65847\x204.18985\x206.65847\x203.80995\x206.42416\x203.57564C6.18984\x203.34132\x205.80994\x203.34132\x205.57563\x203.57564L1.57564\x207.57564C1.34132\x207.80995\x201.34132\x208.18985\x201.57564\x208.42417L5.57563\x2012.4242C5.80994\x2012.6585\x206.18984\x2012.6585\x206.42416\x2012.4242C6.65847\x2012.1899\x206.65847\x2011.81\x206.42416\x2011.5756L3.44843\x208.5999H14C14.3314\x208.5999\x2014.6\x208.33127\x2014.6\x207.9999C14.6\x207.66853\x2014.3314\x207.3999\x2014\x207.3999H3.44843L6.42416\x204.42417Z'}}]},$e=_0x1ed5a0(function(_0x40a1d5,_0x426cbe){const _0x5c719e=_0x3beb43;return _0x5406b4(Z,Object[_0x5c719e(0x2ae)]({},_0x40a1d5,{'id':'back-single','ref':_0x426cbe,'icon':Cs}));});$e[_0x3beb43(0x2d3)]=_0x3beb43(0x27c);var ys={'tag':_0x3beb43(0x310),'attrs':{'fill':_0x3beb43(0x295),'viewBox':_0x3beb43(0x342),'width':_0x3beb43(0x1e6),'height':_0x3beb43(0x1e6)},'children':[{'tag':_0x3beb43(0x2dc),'attrs':{'fill':_0x3beb43(0x31c),'d':_0x3beb43(0x2a1),'fillRule':_0x3beb43(0x259),'clipRule':'evenodd'}},{'tag':_0x3beb43(0x2dc),'attrs':{'fill':_0x3beb43(0x2af),'d':'M7.17852\x201.82153C7.17852\x201.36781\x207.54633\x201\x208.00005\x201C11.866\x201\x2015\x204.13397\x2015\x207.99993C15\x2011.8659\x2011.866\x2014.9999\x208.00005\x2014.9999C4.1341\x2014.9999\x201.00012\x2011.8659\x201.00012\x207.99993C1.00012\x207.54621\x201.36793\x207.1784\x201.82165\x207.1784C2.27537\x207.1784\x202.64318\x207.54621\x202.64318\x207.99993C2.64318\x2010.9584\x205.04153\x2013.3568\x208.00005\x2013.3568C10.9586\x2013.3568\x2013.3569\x2010.9584\x2013.3569\x207.99993C13.3569\x205.04141\x2010.9586\x202.64306\x208.00005\x202.64306C7.54633\x202.64306\x207.17852\x202.27525\x207.17852\x201.82153Z','fillRule':_0x3beb43(0x259),'clipRule':_0x3beb43(0x259)}}]},oe=_0x1ed5a0(function(_0x5abc78,_0x45f012){const _0x3c6172=_0x3beb43;return _0x5406b4(Z,Object[_0x3c6172(0x2ae)]({},_0x5abc78,{'id':_0x3c6172(0x335),'ref':_0x45f012,'icon':ys}));});oe[_0x3beb43(0x2d3)]=_0x3beb43(0x314);var Os={'tag':_0x3beb43(0x310),'attrs':{'fill':'none','viewBox':_0x3beb43(0x2cc),'width':_0x3beb43(0x1e6),'height':_0x3beb43(0x1e6)},'children':[{'tag':'g','attrs':{'fill':_0x3beb43(0x2af),'clipPath':_0x3beb43(0x31f)},'children':[{'tag':_0x3beb43(0x2dc),'attrs':{'d':_0x3beb43(0x320)}},{'tag':_0x3beb43(0x2dc),'attrs':{'d':_0x3beb43(0x219),'fillRule':_0x3beb43(0x259),'clipRule':'evenodd'}}]},{'tag':_0x3beb43(0x331),'attrs':{},'children':[{'tag':_0x3beb43(0x2be),'attrs':{'id':_0x3beb43(0x1e7)},'children':[{'tag':_0x3beb43(0x217),'attrs':{'width':0x10,'height':0x10,'y':0.05,'fill':'#fff','rx':0x4}}]}]}],'defIds':[_0x3beb43(0x1e7)]},Te=_0x1ed5a0(function(_0x218b7e,_0x2d6e28){const _0x34f1a2=_0x3beb43;return _0x5406b4(Z,Object['assign']({},_0x218b7e,{'id':_0x34f1a2(0x2f9),'ref':_0x2d6e28,'icon':Os}));});Te['displayName']=_0x3beb43(0x2f3);const Ns=_0x3beb43(0x355),Ps=_0x3beb43(0x311),ws=_0x3beb43(0x2cf),Ds=_0x3beb43(0x322),$s=_0x3beb43(0x2e9),Ts='univer-version-item-header-expand',Vs=_0x3beb43(0x201),Ls=_0x3beb43(0x246),Hs='univer-version-item-header-revert',ks=_0x3beb43(0x1ec),xs='univer-active',Us=_0x3beb43(0x344),js=_0x3beb43(0x2a2),Ws=_0x3beb43(0x22b),Fs=_0x3beb43(0x271),Ys='univer-version-list-loading',Bs=_0x3beb43(0x31e),Xs='univer-loading-spin',v={'versionListPanel':Ns,'versionListPanelContent':Ps,'versionDate':ws,'versionItem':Ds,'versionItemHeader':$s,'versionItemHeaderExpand':Ts,'versionItemHeaderTime':Vs,'versionItemHeaderTimeTag':Ls,'versionItemHeaderRevert':Hs,'versionItemContent':ks,'active':xs,'historyViewHeader':Us,'historyViewHeaderBack':js,'historyViewHeaderBackText':Ws,'historyViewHeaderRevert':Fs,'versionListLoading':Ys,'versionListLoadingIcon':Bs,'loadingSpin':Xs};function Gs(){const _0x14c906=_0x3beb43;var _0x1a7899;const _0x47c3dc=_0x1ae1b9(R),_0xd375d3=_0x1ae1b9(_0x4b72b6),_0x4f8081=_0x18fb58(()=>{const _0x306f36=_0x174a;_0x47c3dc['status']=ae[_0x306f36(0x28c)];},[_0x47c3dc]),_0x34a155=_0x18fb58(()=>{const _0xc8fbf7=_0x174a;_0x47c3dc[_0xc8fbf7(0x210)]();},[_0x47c3dc]),_0x483ebb=_0x2228c6(_0x47c3dc['currentVersion$']),_0xa9619b=_0x2228c6(_0x47c3dc['versions$']),_0x49a5c4=!(_0x483ebb===((_0x1a7899=_0xa9619b==null?void 0x0:_0xa9619b[0x0])==null?void 0x0:_0x1a7899['id']))&&_0x47c3dc[_0x14c906(0x2f1)];return _0x6f7b11['createElement']('div',{'className':v['historyViewHeader']},_0x6f7b11[_0x14c906(0x364)](_0x14c906(0x336),{'onClick':_0x4f8081,'className':v['historyViewHeaderBack']},_0x6f7b11['createElement']($e,{'style':{'fontSize':_0x14c906(0x374)}})),_0x6f7b11[_0x14c906(0x364)](_0x14c906(0x336),{'className':v[_0x14c906(0x386)]},_0x49a5c4&&_0x6f7b11[_0x14c906(0x364)](_0x2c586a,{'type':_0x14c906(0x270),'onClick':_0x34a155},_0xd375d3['t'](_0x14c906(0x2d9)))));}var Zs=Object[_0x3beb43(0x213)],As=Object[_0x3beb43(0x1f3)],Ks=(_0x18e54a,_0xa54e5e,_0x4010cf,_0x37e9a5)=>{const _0x1d9958=_0x3beb43;for(var _0x51b064=_0x37e9a5>0x1?void 0x0:_0x37e9a5?As(_0xa54e5e,_0x4010cf):_0xa54e5e,_0x14b048=_0x18e54a[_0x1d9958(0x23f)]-0x1,_0x270173;_0x14b048>=0x0;_0x14b048--)(_0x270173=_0x18e54a[_0x14b048])&&(_0x51b064=(_0x37e9a5?_0x270173(_0xa54e5e,_0x4010cf,_0x51b064):_0x270173(_0x51b064))||_0x51b064);return _0x37e9a5&&_0x51b064&&Zs(_0xa54e5e,_0x4010cf,_0x51b064),_0x51b064;},P=(_0x4c3b5c,_0x251166)=>(_0x4e462f,_0x221dbf)=>_0x251166(_0x4e462f,_0x221dbf,_0x4c3b5c);let F=class extends _0x49a45c{constructor(_0x57faf0,_0x4ef201,_0x476c1a,_0x3eb5f6,_0x470e50,_0x54b139){const _0x4269f1=_0x3beb43;super(),l(this,_0x4269f1(0x2d2)),(this[_0x4269f1(0x20a)]=_0x57faf0,this[_0x4269f1(0x2e0)]=_0x4ef201,this[_0x4269f1(0x2cb)]=_0x476c1a,this['_localeService']=_0x3eb5f6,this['_historyManagerService']=_0x470e50,this[_0x4269f1(0x2f4)]=_0x54b139,this['_init']());}[_0x3beb43(0x35c)](){const _0x290480=_0x3beb43;this[_0x290480(0x304)](this[_0x290480(0x345)][_0x290480(0x222)][_0x290480(0x2fb)](_0x160a2f=>{const _0x4d0d5a=_0x290480;_0x160a2f&&this[_0x4d0d5a(0x345)][_0x4d0d5a(0x21f)](_0x160a2f);})),this[_0x290480(0x304)](this[_0x290480(0x20a)][_0x290480(0x2f0)]['subscribe'](_0x44d990=>{const _0x4126a5=_0x290480,_0x38d6eb=this[_0x4126a5(0x345)][_0x4126a5(0x2fa)];_0x38d6eb&&(_0x44d990[_0x4126a5(0x2c0)]===O[_0x4126a5(0x382)]&&_0x44d990['value']===!0x0&&this[_0x4126a5(0x20a)][_0x4126a5(0x24d)](new _0x31c494(_0x38d6eb)['id'],!0x1),_0x44d990[_0x4126a5(0x2c0)]===O[_0x4126a5(0x228)]&&_0x44d990[_0x4126a5(0x24f)]===!0x0&&this['_permissionService'][_0x4126a5(0x24d)](new _0x5dbf14(_0x38d6eb)['id'],!0x1),_0x44d990[_0x4126a5(0x2c0)]===O['MoveSheet']&&_0x44d990[_0x4126a5(0x24f)]===!0x0&&this[_0x4126a5(0x20a)][_0x4126a5(0x24d)](new _0x5b80ea(_0x38d6eb)['id'],!0x1),_0x44d990['subType']===O[_0x4126a5(0x29b)]&&_0x44d990[_0x4126a5(0x24f)]===!0x0&&this[_0x4126a5(0x20a)][_0x4126a5(0x24d)](new _0x247292(_0x38d6eb)['id'],!0x1),_0x44d990['subType']===O[_0x4126a5(0x2e7)]&&_0x44d990['value']===!0x0&&this['_permissionService'][_0x4126a5(0x24d)](new _0x31c494(_0x38d6eb)['id'],!0x1),_0x44d990['subType']===O[_0x4126a5(0x365)]&&_0x44d990['value']===!0x0&&this[_0x4126a5(0x20a)][_0x4126a5(0x24d)](new _0x31c494(_0x38d6eb)['id'],!0x1));})),this['disposeWithMe'](this[_0x290480(0x2e0)][_0x290480(0x2da)](_0x598b60[_0x290480(0x324)],()=>_0xf9a7c4(Gs,this[_0x290480(0x2f4)]))),this[_0x290480(0x304)](this[_0x290480(0x345)][_0x290480(0x2de)][_0x290480(0x2fb)](_0x3dd84d=>{const _0x3d30a7=_0x290480;var _0x3329a2;_0x3dd84d===$[_0x3d30a7(0x314)]&&(this[_0x3d30a7(0x345)]['showMask'](),this[_0x3d30a7(0x2d2)]=this[_0x3d30a7(0x2cb)][_0x3d30a7(0x33f)]({'type':_0xf8df50['Info'],'content':this['_localeService']['t'](_0x3d30a7(0x200))})),_0x3dd84d===$['Loaded']&&((_0x3329a2=this[_0x3d30a7(0x2d2)])==null||_0x3329a2[_0x3d30a7(0x38d)](),this[_0x3d30a7(0x345)]['hideMask']());}));}};F=Ks([P(0x0,_0x4efcbd),P(0x1,_0xc34303),P(0x2,_0x599ada),P(0x3,_0x286274(_0x4b72b6)),P(0x4,_0x286274(R)),P(0x5,_0x286274(_0x5d907a))],F);var zs=Object[_0x3beb43(0x213)],Js=Object[_0x3beb43(0x1f3)],Qs=(_0x1caf9a,_0xb5947c,_0x2ce847,_0x2e3f5c)=>{const _0x3a4c22=_0x3beb43;for(var _0x4f56fe=_0x2e3f5c>0x1?void 0x0:_0x2e3f5c?Js(_0xb5947c,_0x2ce847):_0xb5947c,_0xe05302=_0x1caf9a[_0x3a4c22(0x23f)]-0x1,_0x467d9b;_0xe05302>=0x0;_0xe05302--)(_0x467d9b=_0x1caf9a[_0xe05302])&&(_0x4f56fe=(_0x2e3f5c?_0x467d9b(_0xb5947c,_0x2ce847,_0x4f56fe):_0x467d9b(_0x4f56fe))||_0x4f56fe);return _0x2e3f5c&&_0x4f56fe&&zs(_0xb5947c,_0x2ce847,_0x4f56fe),_0x4f56fe;},z=(_0x3051da,_0x361819)=>(_0x280c07,_0x531fe5)=>_0x361819(_0x280c07,_0x531fe5,_0x3051da);let V=class extends _0x49a45c{constructor(_0x585b32,_0x29d699,_0x37c004){const _0x9f7510=_0x3beb43;super(),l(this,_0x9f7510(0x32c),new Map()),l(this,_0x9f7510(0x33a),new _0x332727({'ranges':new Map(),'active':null})),l(this,_0x9f7510(0x237),this[_0x9f7510(0x33a)][_0x9f7510(0x361)]()),(this[_0x9f7510(0x345)]=_0x585b32,this['_transformService']=_0x29d699,this[_0x9f7510(0x25b)]=_0x37c004,this['_init']());}[_0x3beb43(0x35c)](){const _0x2e824c=_0x3beb43;this[_0x2e824c(0x32c)]=new Map(),this[_0x2e824c(0x304)](this['_historyManagerService'][_0x2e824c(0x2f2)]['subscribe'](_0x56ae00=>{const _0xbfdeca=_0x2e824c;_0x56ae00&&!this[_0xbfdeca(0x32c)][_0xbfdeca(0x2a4)](_0x56ae00)&&this[_0xbfdeca(0x32c)][_0xbfdeca(0x362)](_0x56ae00,new Map());})),this['disposeWithMe'](this[_0x2e824c(0x345)]['currentVersion$']['subscribe'](async _0x13132d=>{const _0x4a089c=_0x2e824c;var _0x123292;_0x13132d&&(await this[_0x4a089c(0x245)](_0x13132d),this[_0x4a089c(0x33a)][_0x4a089c(0x2ce)](((_0x123292=this[_0x4a089c(0x32c)]['get'](this[_0x4a089c(0x345)][_0x4a089c(0x2fa)]))==null?void 0x0:_0x123292[_0x4a089c(0x26c)](_0x13132d))||{'ranges':new Map(),'active':null}));}));}async[_0x3beb43(0x245)](_0x36bc08){const _0x13374c=_0x3beb43;var _0x50624d,_0x16398a;const _0xbb2785=this['_historyManagerService'][_0x13374c(0x233)](_0x36bc08),_0x410f17=this['_historyManagerService'][_0x13374c(0x2fa)];if(!_0xbb2785||!_0x410f17)return;const _0x10c980=this[_0x13374c(0x32c)]['get'](_0x410f17);if(_0x10c980||this[_0x13374c(0x32c)][_0x13374c(0x362)](_0x410f17,new Map()),(_0x50624d=this[_0x13374c(0x32c)][_0x13374c(0x26c)](_0x410f17))!=null&&_0x50624d['has'](_0xbb2785['id']))return;const {startRev:_0x23b123,endRev:_0x18dbdc}=_0xbb2785;if(_0x23b123===0x1){_0x10c980['set'](_0xbb2785['id'],{'ranges':new Map(),'active':null});return;}const _0x12e3fd=_0x23b123-0x1,_0x41a050=_0x18dbdc,_0x217b31=await this[_0x13374c(0x25b)][_0x13374c(0x303)]({},{'unitID':_0x410f17,'from':_0x12e3fd,'to':_0x41a050,'type':j[_0x13374c(0x347)]});if(((_0x16398a=_0x217b31[_0x13374c(0x337)])==null?void 0x0:_0x16398a[_0x13374c(0x370)])===G['OK']){const _0x2d0af6=_0x217b31[_0x13374c(0x1f7)][_0x13374c(0x375)](_0x56a295)[_0x13374c(0x375)](_0x13fae4=>_0x13fae4[_0x13374c(0x22e)]['map'](_0x5bda1b=>({..._0x5bda1b,'params':{..._0x5bda1b[_0x13374c(0x2d4)],'memberId':_0x13fae4['userID']}})))[_0x13374c(0x2d8)](),_0x130b3b=this[_0x13374c(0x2ef)](_0x2d0af6),_0x3f3203=this[_0x13374c(0x229)](_0x2d0af6),_0x39a7f1=this[_0x13374c(0x20f)](_0x130b3b);_0x10c980[_0x13374c(0x362)](_0xbb2785['id'],{'ranges':_0x39a7f1,'active':_0x3f3203});}}[_0x3beb43(0x2ef)](_0x4b69d3){const _0x5a5948=_0x3beb43;let _0x52cbe8=[];for(let _0x2eb74f=0x0;_0x2eb74f<_0x4b69d3[_0x5a5948(0x23f)];_0x2eb74f++){const _0x100343=_0x4b69d3[_0x2eb74f];if(_0x52cbe8[_0x5a5948(0x2d1)](_0x100343),_0x2eb74f!==_0x4b69d3[_0x5a5948(0x23f)]-0x1){const _0x521494=_0x4b69d3[_0x2eb74f+0x1],_0x59621c=this[_0x5a5948(0x1f0)]['transformMutations'](_0x52cbe8,[_0x521494]);_0x649626(_0x59621c)?_0x52cbe8=_0x59621c[_0x5a5948(0x37f)]:_0x52cbe8=[];}}return _0x52cbe8;}[_0x3beb43(0x229)](_0x188c9d){const _0x34c695=_0x3beb43;let _0xf6c94f=[];return _0x188c9d[_0x34c695(0x2b6)](_0x63c311=>{const _0x4114f5=_0x34c695;if(_0x63c311['id']===_0x3c63b7['id']){const _0x30c0ae=_0x63c311[_0x4114f5(0x2d4)];_0xf6c94f[_0x4114f5(0x2d1)](_0x30c0ae[_0x4114f5(0x285)]['id']);}else{if(_0x63c311['id']===_0x240faa['id']){const _0x58f346=_0x63c311['params'];_0xf6c94f['length']>0x0&&(_0xf6c94f=_0xf6c94f[_0x4114f5(0x377)](_0x105083=>_0x105083!==_0x58f346[_0x4114f5(0x359)]));}else{if(_0x63c311['id']===_0x3c927c['id']){const _0x1941ac=_0x63c311[_0x4114f5(0x2d4)];_0x1941ac['hidden']?_0xf6c94f=_0xf6c94f[_0x4114f5(0x377)](_0x162da5=>_0x162da5!==_0x1941ac[_0x4114f5(0x359)]):_0xf6c94f[_0x4114f5(0x2d1)](_0x1941ac['subUnitId']);}else{const _0x2dff64=_0x63c311[_0x4114f5(0x2d4)];_0x2dff64[_0x4114f5(0x359)]&&_0xf6c94f[_0x4114f5(0x2d1)](_0x2dff64[_0x4114f5(0x359)]);}}}}),_0xf6c94f[_0x34c695(0x23f)]>0x0?_0xf6c94f[_0xf6c94f[_0x34c695(0x23f)]-0x1]:null;}[_0x3beb43(0x20f)](_0x5aaeae){const _0x4d4f56=_0x3beb43,_0x41bb77=new Map();return _0x5aaeae[_0x4d4f56(0x2b6)](_0x44617e=>{const _0x9a2972=_0x4d4f56;var _0x5a63ca,_0x35f6d0;const _0x3adee4=(_0x5a63ca=_0x44617e[_0x9a2972(0x2d4)])==null?void 0x0:_0x5a63ca[_0x9a2972(0x224)];if(_0x3adee4){_0x41bb77[_0x9a2972(0x2a4)](_0x3adee4)||_0x41bb77[_0x9a2972(0x362)](_0x3adee4,[]);const _0x3bc2fa=this['_getRangesByMutation'](_0x44617e);(_0x35f6d0=_0x41bb77[_0x9a2972(0x26c)](_0x3adee4))==null||_0x35f6d0[_0x9a2972(0x2d1)](..._0x3bc2fa);}}),_0x41bb77['forEach']((_0x4cbda4,_0x26cd6d)=>{const _0x3297c8=_0x4d4f56;_0x41bb77['set'](_0x26cd6d,this[_0x3297c8(0x202)](_0x4cbda4));}),_0x41bb77;}[_0x3beb43(0x327)](_0x59ca38){const _0x3c0fc0=_0x3beb43;switch(_0x59ca38['id']){case _0x180b57['id']:{const _0x3108ba=_0x59ca38[_0x3c0fc0(0x2d4)];return _0x3108ba[_0x3c0fc0(0x37c)][_0x3c0fc0(0x375)](_0x157ca6=>_0x157ca6['ranges'][_0x3c0fc0(0x375)](_0x40b476=>({'range':_0x40b476,'unitId':_0x3108ba[_0x3c0fc0(0x2fa)],'subUnitId':_0x3108ba[_0x3c0fc0(0x359)]})))[_0x3c0fc0(0x2d8)]();}case _0x581958['id']:{const _0x4fef35=_0x59ca38[_0x3c0fc0(0x2d4)];return _0x4fef35[_0x3c0fc0(0x351)][_0x3c0fc0(0x375)](_0x2d5a1d=>({'range':_0x2d5a1d,'unitId':_0x4fef35[_0x3c0fc0(0x2fa)],'subUnitId':_0x4fef35[_0x3c0fc0(0x359)]}));}case _0xd0d0f1['id']:{const _0x2165bb=_0x59ca38[_0x3c0fc0(0x2d4)];return[{'range':_0x2165bb[_0x3c0fc0(0x26a)],'unitId':_0x2165bb[_0x3c0fc0(0x2fa)],'subUnitId':_0x2165bb[_0x3c0fc0(0x359)]}];}case _0x5d98a2['id']:{const _0x3fb6f5=_0x59ca38[_0x3c0fc0(0x2d4)];return[{'range':_0x3fb6f5[_0x3c0fc0(0x26a)],'unitId':_0x3fb6f5[_0x3c0fc0(0x2fa)],'subUnitId':_0x3fb6f5['subUnitId']}];}case _0x5008eb['id']:{const _0x438dcd=_0x59ca38[_0x3c0fc0(0x2d4)],{from:_0x1b780f,to:_0x54b2c2,unitId:_0x53064d}=_0x438dcd;return[{'range':de(_0x1b780f[_0x3c0fc0(0x24f)]),'unitId':_0x53064d,'subUnitId':_0x1b780f[_0x3c0fc0(0x359)]},{'range':de(_0x54b2c2[_0x3c0fc0(0x24f)]),'unitId':_0x53064d,'subUnitId':_0x54b2c2['subUnitId']}];}case _0x3c8aab['id']:{const _0x38ef5b=_0x59ca38[_0x3c0fc0(0x2d4)],{unitId:_0x1a4efc,subUnitId:_0x3609ba,sourceRange:_0x8b70c1,targetRange:_0x20bf83}=_0x38ef5b,_0x110d09=_0x8b70c1[_0x3c0fc0(0x2e6)]-_0x8b70c1[_0x3c0fc0(0x2ab)]+0x1;return[{'range':_0x20bf83[_0x3c0fc0(0x2ab)]<=_0x8b70c1[_0x3c0fc0(0x2ab)]?_0x20bf83:{..._0x20bf83,'startRow':_0x20bf83[_0x3c0fc0(0x2ab)]-_0x110d09,'endRow':_0x20bf83['endRow']-_0x110d09},'unitId':_0x1a4efc,'subUnitId':_0x3609ba}];}case _0x2c5c3f['id']:{const _0x6b6397=_0x59ca38[_0x3c0fc0(0x2d4)],{unitId:_0x4ea115,subUnitId:_0x297636,sourceRange:_0x5907d0,targetRange:_0x3942e1}=_0x6b6397,_0xf9e090=_0x5907d0['endColumn']-_0x5907d0[_0x3c0fc0(0x34f)]+0x1;return[{'range':_0x3942e1[_0x3c0fc0(0x34f)]<=_0x5907d0[_0x3c0fc0(0x34f)]?_0x3942e1:{..._0x3942e1,'startColumn':_0x3942e1[_0x3c0fc0(0x34f)]-_0xf9e090,'endColumn':_0x3942e1[_0x3c0fc0(0x223)]-_0xf9e090},'unitId':_0x4ea115,'subUnitId':_0x297636}];}case _0xf6d494['id']:{const _0xf2077c=_0x59ca38[_0x3c0fc0(0x2d4)],{values:_0x5564d8,unitId:_0x31f9bd,subUnitId:_0x471461}=_0xf2077c;return Object['values'](_0x5564d8)[_0x3c0fc0(0x375)](_0x8c3be6=>_0x8c3be6['ranges']['map'](_0x31b6d0=>({'range':_0x31b6d0,'unitId':_0x31f9bd,'subUnitId':_0x471461})))[_0x3c0fc0(0x2d8)]();}case _0x4649f2['id']:{const _0x490c3f=_0x59ca38[_0x3c0fc0(0x2d4)],{ranges:_0x56639b,unitId:_0x17f91d,subUnitId:_0x170ac6}=_0x490c3f;return _0x56639b[_0x3c0fc0(0x375)](_0x1f01be=>({'range':_0x1f01be,'unitId':_0x17f91d,'subUnitId':_0x170ac6}));}case _0x3ce41f['id']:{const _0x3763a8=_0x59ca38[_0x3c0fc0(0x2d4)],{unitId:_0x5efc17,subUnitId:_0x4e55b9,range:_0x213226}=_0x3763a8;return[{'range':_0x213226,'unitId':_0x5efc17,'subUnitId':_0x4e55b9}];}case _0x2b6fde['id']:{const _0x21f0ae=_0x59ca38['params'];return _0x21f0ae[_0x3c0fc0(0x34a)][_0x3c0fc0(0x351)][_0x3c0fc0(0x375)](_0x10c345=>({'range':_0x10c345,'unitId':_0x21f0ae['unitId'],'subUnitId':_0x21f0ae[_0x3c0fc0(0x359)]}));}case _0x32bef4['id']:{const _0x3ebdbe=_0x59ca38['params'];return _0x3ebdbe[_0x3c0fc0(0x35b)]?qs(_0x3ebdbe['cellValue'])[_0x3c0fc0(0x375)](_0x3e968e=>({'range':_0x3e968e,'unitId':_0x3ebdbe[_0x3c0fc0(0x2fa)],'subUnitId':_0x3ebdbe[_0x3c0fc0(0x359)]})):[];}case _0x53f609['id']:{const _0x2cee87=_0x59ca38[_0x3c0fc0(0x2d4)];return[{'range':_0x2cee87[_0x3c0fc0(0x26a)],'unitId':_0x2cee87[_0x3c0fc0(0x2fa)],'subUnitId':_0x2cee87[_0x3c0fc0(0x359)]}];}case _0x2e468d['id']:{const _0x442ee4=_0x59ca38['params'];return(Array[_0x3c0fc0(0x2e8)](_0x442ee4['rule'])?_0x442ee4['rule']:[_0x442ee4['rule']])['map'](_0x40ffa8=>_0x40ffa8[_0x3c0fc0(0x351)][_0x3c0fc0(0x375)](_0x420ebe=>({'range':_0x420ebe,'unitId':_0x442ee4['unitId'],'subUnitId':_0x442ee4[_0x3c0fc0(0x359)]})))[_0x3c0fc0(0x2d8)]();}case _0x5943aa['id']:{const _0x47a711=_0x59ca38[_0x3c0fc0(0x2d4)];return _0x47a711['rule']['ranges'][_0x3c0fc0(0x375)](_0x3da556=>({'range':_0x3da556,'unitId':_0x47a711['unitId'],'subUnitId':_0x47a711[_0x3c0fc0(0x359)]}));}default:return[];}}[_0x3beb43(0x202)](_0x355ea8){const _0x348540=_0x3beb43;if(_0x355ea8['length']<=0x1)return _0x355ea8;const _0x49b357=new Map();return _0x355ea8['forEach'](_0x4925b5=>{const _0x5f5a40=_0x174a;var _0x398781;const {unitId:_0x13b32f,subUnitId:_0x4efd28}=_0x4925b5,_0x1c3d7e=_0x13b32f+'-'+_0x4efd28;_0x49b357[_0x5f5a40(0x2a4)](_0x1c3d7e)?(_0x398781=_0x49b357[_0x5f5a40(0x26c)](_0x1c3d7e))==null||_0x398781[_0x5f5a40(0x2d1)](_0x4925b5):_0x49b357[_0x5f5a40(0x362)](_0x1c3d7e,[_0x4925b5]);}),Array[_0x348540(0x35a)](_0x49b357['values']())[_0x348540(0x375)](_0x3ba833=>new _0x1d8e28()[_0x348540(0x2e3)](..._0x3ba833[_0x348540(0x375)](_0x4a813d=>_0x4a813d[_0x348540(0x26a)]))[_0x348540(0x207)]()[_0x348540(0x375)](_0x27e485=>({'range':_0x27e485,'unitId':_0x3ba833[0x0][_0x348540(0x2fa)],'subUnitId':_0x3ba833[0x0][_0x348540(0x359)]})))[_0x348540(0x2d8)]();}};V=Qs([z(0x0,_0x286274(R)),z(0x1,_0x3e8f0f),z(0x2,_0x4efa4f)],V);function de(_0x51cf11){return new _0x5f16ce(_0x51cf11)['getDataRange']();}function qs(_0x43234f){const _0x32861d=_0x3beb43,_0x13a9d1=new _0x5f16ce(_0x43234f),_0xd923f6=new _0x5f16ce();return _0x13a9d1[_0x32861d(0x2d6)]((_0x2497e4,_0x2fc94d)=>{const _0x5d9741=_0x32861d;_0xd923f6[_0x5d9741(0x2b0)](_0x2497e4,_0x2fc94d,0x1);}),_0x99cef2(_0xd923f6);}var er=Object[_0x3beb43(0x213)],tr=Object[_0x3beb43(0x1f3)],sr=(_0x3b8b11,_0x21580e,_0x5391eb,_0x326ddb)=>{const _0xfbbf27=_0x3beb43;for(var _0x3bb9c8=_0x326ddb>0x1?void 0x0:_0x326ddb?tr(_0x21580e,_0x5391eb):_0x21580e,_0x28c2f8=_0x3b8b11[_0xfbbf27(0x23f)]-0x1,_0x528387;_0x28c2f8>=0x0;_0x28c2f8--)(_0x528387=_0x3b8b11[_0x28c2f8])&&(_0x3bb9c8=(_0x326ddb?_0x528387(_0x21580e,_0x5391eb,_0x3bb9c8):_0x528387(_0x3bb9c8))||_0x3bb9c8);return _0x326ddb&&_0x3bb9c8&&er(_0x21580e,_0x5391eb,_0x3bb9c8),_0x3bb9c8;},w=(_0x9a90af,_0x1a7d93)=>(_0x2c6510,_0x36fcec)=>_0x1a7d93(_0x2c6510,_0x36fcec,_0x9a90af);let te=class extends _0x49a45c{constructor(_0x1b5149,_0x58da22,_0x47c2bd,_0x5340aa,_0x246c24,_0x123d82,_0x2e61bb){const _0x3ea6fa=_0x3beb43;super(),l(this,_0x3ea6fa(0x369),new Set()),l(this,'_lastPointer',null),(this[_0x3ea6fa(0x380)]=_0x1b5149,this['_historyManagerService']=_0x58da22,this[_0x3ea6fa(0x1e9)]=_0x47c2bd,this[_0x3ea6fa(0x1ed)]=_0x5340aa,this[_0x3ea6fa(0x30f)]=_0x246c24,this[_0x3ea6fa(0x30e)]=_0x123d82,this[_0x3ea6fa(0x260)]=_0x2e61bb,this[_0x3ea6fa(0x35c)]());}['_init'](){const _0x1e36d2=_0x3beb43;this['_initRender'](),this[_0x1e36d2(0x33b)]();}[_0x3beb43(0x281)](){const _0x1c6cfe=_0x3beb43;this[_0x1c6cfe(0x304)](_0x153c3c([this[_0x1c6cfe(0x345)]['loadingState$'],this[_0x1c6cfe(0x30e)][_0x1c6cfe(0x2a0)]])[_0x1c6cfe(0x1ff)](_0x19a163(([_0x361297,_0x4c4683])=>{const _0xe6e4e8=_0x1c6cfe;if(_0x361297===$[_0xe6e4e8(0x267)]&&_0x4c4683){const _0x2b5e65=_0x4c4683[_0xe6e4e8(0x29a)];return this['_versionDiffService'][_0xe6e4e8(0x237)][_0xe6e4e8(0x1ff)](_0x36be2c(_0x54c312=>{const _0x3f62b4=_0xe6e4e8,_0x2cba23=new Map();return _0x54c312[_0x3f62b4(0x351)][_0x3f62b4(0x2b6)]((_0x509e86,_0x59dd6f)=>{const _0x50b5b7=_0x3f62b4,_0x1005b5=_0x509e86[_0x50b5b7(0x377)](_0x1b3582=>_0x1b3582[_0x50b5b7(0x359)]===_0x2b5e65);_0x2cba23['set'](_0x59dd6f,_0x1005b5);}),{'skeleton':_0x4c4683,'diffs':_0x2cba23};}));}return _0x3d967c({'skeleton':null,'diffs':new Map()});}))[_0x1c6cfe(0x2fb)](({skeleton:_0x2342ce,diffs:_0x26076f})=>{const _0x133bcd=_0x1c6cfe;this[_0x133bcd(0x38a)](),_0x2342ce&&this[_0x133bcd(0x32f)](_0x2342ce,_0x26076f);})),this[_0x1c6cfe(0x304)](this[_0x1c6cfe(0x30e)][_0x1c6cfe(0x2a0)][_0x1c6cfe(0x2fb)](_0x448ce5=>{const _0x2eb3bb=_0x1c6cfe;if(_0x448ce5==null)return;const {skeleton:_0x12898d}=_0x448ce5,{scene:_0x26e4f8}=this['_context'];_0x26e4f8['onPointerMove$'][_0x2eb3bb(0x33c)](_0x55f481(_0x1c7131=>{const _0xd6a173=_0x2eb3bb;var _0x3df4d6,_0x213ba9;const {offsetX:_0x2e5fd9,offsetY:_0x51154b}=_0x1c7131,{x:_0x41d649,y:_0x19000b}=_0x26e4f8[_0xd6a173(0x36b)](_0x5e54aa['FromArray']([_0x2e5fd9,_0x51154b])),{scaleX:_0x4e369c,scaleY:_0xcdcd83}=_0x26e4f8['getAncestorScale'](),_0x11a22e=_0x26e4f8[_0xd6a173(0x381)](_0xa003cb['VIEW_MAIN']),_0x4e0578=_0x26e4f8['getVpScrollXYInfoByPosToVp'](_0x5e54aa[_0xd6a173(0x227)]([_0x41d649,_0x19000b]),_0x11a22e),_0x34db6a=_0x12898d['getCellPositionByOffset'](_0x2e5fd9,_0x51154b,_0x4e369c,_0xcdcd83,_0x4e0578);((_0x3df4d6=this[_0xd6a173(0x38c)])==null?void 0x0:_0x3df4d6[_0xd6a173(0x29f)])===_0x34db6a['column']&&((_0x213ba9=this[_0xd6a173(0x38c)])==null?void 0x0:_0x213ba9[_0xd6a173(0x306)])===_0x34db6a['row']||this[_0xd6a173(0x369)][_0xd6a173(0x2b6)](_0x56c46a=>{const _0x385595=_0xd6a173;_0x56c46a[_0x385595(0x38e)](_0x34db6a);});},0x64));}));}['_initActiveSwitch'](){const _0x5792ba=_0x3beb43;this['disposeWithMe'](this[_0x5792ba(0x345)][_0x5792ba(0x2de)][_0x5792ba(0x2fb)](_0x28e63a=>{const _0x21ec95=_0x5792ba,_0x49dc7c=new _0x2be8ab();return _0x28e63a===$['Loaded']&&(_0x49dc7c[_0x21ec95(0x38d)](),_0x49dc7c[_0x21ec95(0x2e3)](this[_0x21ec95(0x1e9)]['currentVersionDiff$']['subscribe'](_0x4c8337=>{const _0x58051e=_0x21ec95;_0x4c8337[_0x58051e(0x2ec)]&&this[_0x58051e(0x260)]['executeCommand'](_0x17ff39['id'],{'unitId':this[_0x58051e(0x380)]['unitId'],'subUnitId':_0x4c8337['active']});}))),()=>_0x49dc7c['dispose']();}));}[_0x3beb43(0x32f)](_0x515e24,_0x5cf942){const _0x2e1582=_0x3beb43;var _0x5ec201;const _0x174886=(_0x5ec201=this[_0x2e1582(0x30e)][_0x2e1582(0x319)]())==null?void 0x0:_0x5ec201[_0x2e1582(0x35f)];if(!_0x174886)return;this['_diffs'][_0x2e1582(0x2b6)](_0x5f4c3c=>{const _0x24156e=_0x2e1582;_0x5f4c3c[_0x24156e(0x2a5)]();});const {scene:_0x15f046}=this['_context'],_0x58571a=Array['from'](_0x5cf942[_0x2e1582(0x2d7)]())[_0x2e1582(0x375)](_0x5343b9=>_0x5cf942[_0x2e1582(0x26c)](_0x5343b9)[_0x2e1582(0x375)](_0x3edeef=>{const _0x22ef57=_0x2e1582;var _0x5a8d28;const {range:_0x4725ef,subUnitId:_0x575ae3,unitId:_0x3533ed}=_0x3edeef,{startColumn:_0x42982b,startRow:_0x4487d6,endColumn:_0x446262,endRow:_0x5a7b18}=_0x4725ef,_0x345a74=_0x293dba(_0x4487d6,_0x42982b,_0x15f046,_0x174886),_0x504489=_0x293dba(_0x5a7b18,_0x446262,_0x15f046,_0x174886),{columnHeaderHeightAndMarginTop:_0x22a6a9}=_0x174886,{startX:_0x5902d5,startY:_0x32aa76}=_0x345a74,{endX:_0x122cc6,endY:_0x4b314d}=_0x504489,_0x4039a9=_0x122cc6-_0x5902d5,_0x4ce2db=_0x4b314d-_0x32aa76,_0x2478c8={'labelPosition':_0x32aa76-_0x22a6a9>=0x14?_0x22ef57(0x2f7):_0x22ef57(0x2df),'sheetID':_0x575ae3,'range':_0x4725ef,'color':'rgba(58,\x2096,\x20247,\x200.20)','fillAfterStrokeEnabled':!0x0,'backgroundColor':'rgba(58,\x2096,\x20247,\x200.20)','name':((_0x5a8d28=this[_0x22ef57(0x345)]['getMember'](_0x5343b9))==null?void 0x0:_0x5a8d28['name'])||'','selection':_0x3533ed+'-'+_0x575ae3+'-'+_0x4725ef['startColumn']+'-'+_0x4725ef[_0x22ef57(0x2ab)]+'-'+_0x4725ef['endColumn']+'-'+_0x4725ef[_0x22ef57(0x2e6)],'left':_0x5902d5,'top':_0x32aa76,'width':_0x4039a9,'height':_0x4ce2db,'evented':!0x1,'zIndex':0x1};return new _0x333098('',_0x2478c8);}))[_0x2e1582(0x2d8)]();_0x15f046['addObjects'](_0x58571a,0x1),this['_diffs']=new Set(_0x58571a);}[_0x3beb43(0x38a)](){const _0x188719=_0x3beb43;var _0x1bafc3;(_0x1bafc3=this[_0x188719(0x369)])==null||_0x1bafc3[_0x188719(0x2b6)](_0x35edb1=>_0x35edb1['dispose']());}[_0x3beb43(0x341)](){const _0x492f86=_0x3beb43;return _0x1c30b4(this['_univerInstanceService'],this[_0x492f86(0x30f)]);}};te=sr([w(0x1,_0x286274(R)),w(0x2,_0x286274(V)),w(0x3,_0x212eaf),w(0x4,_0x52528f),w(0x5,_0x286274(_0x4a549b)),w(0x6,_0x3f7672)],te);function Ve(_0x2d555a){const _0x509b1e=_0x3beb43;var _0x85905c,_0x3c52b7,_0x304051='';if(typeof _0x2d555a==_0x509b1e(0x209)||typeof _0x2d555a=='number')_0x304051+=_0x2d555a;else{if(typeof _0x2d555a==_0x509b1e(0x1e5)){if(Array[_0x509b1e(0x2e8)](_0x2d555a)){var _0x5a5813=_0x2d555a[_0x509b1e(0x23f)];for(_0x85905c=0x0;_0x85905c<_0x5a5813;_0x85905c++)_0x2d555a[_0x85905c]&&(_0x3c52b7=Ve(_0x2d555a[_0x85905c]))&&(_0x304051&&(_0x304051+='\x20'),_0x304051+=_0x3c52b7);}else{for(_0x3c52b7 in _0x2d555a)_0x2d555a[_0x3c52b7]&&(_0x304051&&(_0x304051+='\x20'),_0x304051+=_0x3c52b7);}}}return _0x304051;}function se(){for(var _0x184685,_0x1b0f84,_0x55a39e=0x0,_0x14d0f2='',_0x18bfe6=arguments['length'];_0x55a39e<_0x18bfe6;_0x55a39e++)(_0x184685=arguments[_0x55a39e])&&(_0x1b0f84=Ve(_0x184685))&&(_0x14d0f2&&(_0x14d0f2+='\x20'),_0x14d0f2+=_0x1b0f84);return _0x14d0f2;}function rr(){const _0x4567fc=_0x3beb43,_0x5d23f7=_0x1ae1b9(R),_0x36d0f4=_0x2228c6(_0x5d23f7[_0x4567fc(0x2a6)]),[_0x57dac9,_0x59755e]=_0x3ef6d5(!0x1),_0xe6b5b1=hs(_0x36d0f4);return _0x36d0f4?_0x6f7b11[_0x4567fc(0x364)](_0x4567fc(0x336),{'className':v[_0x4567fc(0x2a8)]},_0x6f7b11[_0x4567fc(0x364)]('div',{'className':v[_0x4567fc(0x2c2)]},_0xe6b5b1['map']((_0x20d266,_0x5c5a93)=>_0x6f7b11['createElement'](_0x172862,{'key':_0x20d266[_0x4567fc(0x2b8)]},_0x6f7b11['createElement'](ar,{'date':_0x20d266['dateString']}),_0x20d266['versions']['map']((_0x492db4,_0x2fac44)=>_0x6f7b11[_0x4567fc(0x364)](or,{'key':_0x5c5a93+'-'+_0x2fac44,'index':[_0x5c5a93,_0x2fac44],'item':_0x492db4})))),_0x57dac9&&_0x6f7b11[_0x4567fc(0x364)](ir,null))):_0x6f7b11[_0x4567fc(0x364)](nr,null);}function ir(){const _0x5c66f4=_0x3beb43;return _0x6f7b11['createElement'](_0x5c66f4(0x336),{'className':v['versionListLoading']},_0x6f7b11[_0x5c66f4(0x364)](oe,{'className':v[_0x5c66f4(0x24e)]}));}function nr(){const _0x216b64=_0x3beb43;return _0x6f7b11[_0x216b64(0x364)](_0x216b64(0x336),{'className':se(v[_0x216b64(0x206)],_0x216b64(0x37e))},_0x6f7b11[_0x216b64(0x364)](_0x216b64(0x2f8),{'className':se(v[_0x216b64(0x290)],_0x216b64(0x2bc))},_0x6f7b11['createElement'](oe,{'className':_0x216b64(0x274)})));}function ar(_0x4a6b1d){const _0x17ce18=_0x3beb43,_0xb65756=_0x1ae1b9(_0x4b72b6),{date:_0x359ada}=_0x4a6b1d;return _0x6f7b11[_0x17ce18(0x364)](_0x17ce18(0x336),{'className':v[_0x17ce18(0x2b3)]},ee(_0x359ada,_0xb65756[_0x17ce18(0x25c)]()));}function or(_0x127c52){const _0x42f457=_0x3beb43,{item:_0x9bf074,index:_0x13a5e2}=_0x127c52,{time:_0x2d2c23,user:_0x432622}=_0x9bf074,[_0x3b1902,_0x1a9172]=_0x13a5e2,_0x1da82f=_0x1ae1b9(R),_0x45f3e4=_0x2228c6(_0x1da82f[_0x42f457(0x222)],'',!0x0)===_0x9bf074['id'],_0xeb7cdb=_0x3b1902===0x0&&_0x1a9172===0x0,_0x9e5c2=!_0xeb7cdb&&_0x1da82f[_0x42f457(0x2f1)],_0x5749df=_0x1ae1b9(_0x4b72b6),_0xf3c589=_0x5749df[_0x42f457(0x25c)](),_0x1bb15a=ne(_0x2d2c23,_0xf3c589),_0x401597=_0x5749df['t'](_0x42f457(0x343)),_0x598b74=_0x18fb58(_0x478368=>{const _0x5dedda=_0x42f457;_0x1da82f[_0x5dedda(0x366)]!==$[_0x5dedda(0x314)]&&(_0x1da82f[_0x5dedda(0x266)]=_0x478368);},[_0x1da82f]),_0x421b18=_0x18fb58(_0x5df2d2=>{_0x1da82f['triggerRevert'](_0x5df2d2);},[_0x1da82f]);return _0x6f7b11['createElement'](_0x42f457(0x336),{'className':se(v[_0x42f457(0x257)],{[v[_0x42f457(0x2ec)]]:_0x45f3e4}),'onClick':()=>_0x598b74(_0x9bf074['id'])},_0x6f7b11[_0x42f457(0x364)]('div',{'className':v[_0x42f457(0x329)]},_0x6f7b11[_0x42f457(0x364)](_0x42f457(0x336),{'className':v[_0x42f457(0x2c4)]}),_0x6f7b11[_0x42f457(0x364)](_0x42f457(0x336),{'className':v[_0x42f457(0x313)]},_0x6f7b11[_0x42f457(0x364)]('span',null,_0x1bb15a[_0x42f457(0x2b4)]),_0xeb7cdb&&_0x6f7b11[_0x42f457(0x364)](_0x42f457(0x2f8),{'className':v[_0x42f457(0x348)]},_0x401597)),_0x6f7b11[_0x42f457(0x364)](_0x42f457(0x336),null,_0x9e5c2&&_0x6f7b11[_0x42f457(0x364)](_0x5618a3,{'title':_0x5749df['t'](_0x42f457(0x23c))},_0x6f7b11[_0x42f457(0x364)](_0x42f457(0x336),{'onClick':_0x344ac2=>{const _0x4c8248=_0x42f457;_0x344ac2[_0x4c8248(0x291)](),_0x421b18(_0x9bf074['id']);},'className':v['versionItemHeaderRevert']},_0x6f7b11[_0x42f457(0x364)](Te,null))))),_0x6f7b11[_0x42f457(0x364)](_0x42f457(0x336),{'className':v[_0x42f457(0x2e4)]},ls(_0x9bf074,_0x5749df)));}var cr=Object[_0x3beb43(0x213)],lr=Object['getOwnPropertyDescriptor'],ur=(_0x1a32ba,_0x22d90d,_0x5904d4,_0x21edf9)=>{const _0x5449ac=_0x3beb43;for(var _0x5f7a01=_0x21edf9>0x1?void 0x0:_0x21edf9?lr(_0x22d90d,_0x5904d4):_0x22d90d,_0x297c26=_0x1a32ba[_0x5449ac(0x23f)]-0x1,_0x327c52;_0x297c26>=0x0;_0x297c26--)(_0x327c52=_0x1a32ba[_0x297c26])&&(_0x5f7a01=(_0x21edf9?_0x327c52(_0x22d90d,_0x5904d4,_0x5f7a01):_0x327c52(_0x5f7a01))||_0x5f7a01);return _0x21edf9&&_0x5f7a01&&cr(_0x22d90d,_0x5904d4,_0x5f7a01),_0x5f7a01;},H=(_0x48f48e,_0x347863)=>(_0x3e1495,_0x3d88d9)=>_0x347863(_0x3e1495,_0x3d88d9,_0x48f48e);const _e=_0x3beb43(0x28f);let Y=class extends _0x49a45c{constructor(_0x5a87b7,_0x2fc7fe,_0x34491e,_0x35e502){const _0x425d47=_0x3beb43;super(),l(this,_0x425d47(0x276),null),(this[_0x425d47(0x372)]=_0x5a87b7,this['_componentManager']=_0x2fc7fe,this['_localeService']=_0x34491e,this['_historyManagerService']=_0x35e502,this['_init']());}['_init'](){const _0x311d29=_0x3beb43;this[_0x311d29(0x25d)](),this['_openPanel']();}[_0x3beb43(0x26f)](){const _0x3c9ccf=_0x3beb43;if(this[_0x3c9ccf(0x276)])return;const _0x1c9b08={'header':{'title':this[_0x3c9ccf(0x357)]['t'](_0x3c9ccf(0x2c5))},'children':{'label':_e},'onClose':()=>{const _0x5a5d90=_0x3c9ccf;this['_sidebarDisposable']=null,this[_0x5a5d90(0x345)][_0x5a5d90(0x234)]=ae['Exited'];}};this[_0x3c9ccf(0x276)]=this[_0x3c9ccf(0x372)][_0x3c9ccf(0x326)]({..._0x1c9b08});}[_0x3beb43(0x25d)](){const _0x123e36=_0x3beb43;this[_0x123e36(0x304)](this['_componentManager'][_0x123e36(0x389)](_e,rr)),this['disposeWithMe'](this['_sidebarService']['scrollEvent$']['pipe'](_0x269f0a(0x64))[_0x123e36(0x2fb)](_0x28d968=>{const _0x3fa9d8=_0x123e36,{target:_0x27f27c}=_0x28d968||{};if(_0x27f27c){const {scrollTop:_0x1110e4,scrollHeight:_0x2130ad,clientHeight:_0x583256}=_0x27f27c;_0x1110e4+_0x583256>=_0x2130ad-0x5&&this['_historyManagerService'][_0x3fa9d8(0x2cd)]();}}));}};Y=ur([H(0x0,_0x117690),H(0x1,_0x286274(_0xeb0ca1)),H(0x2,_0x286274(_0x4b72b6)),H(0x3,_0x286274(R))],Y);function _0x1482(){const _0x240337=['UniverIcon','_hasMore','Exited','xlink:href','_versions$','history-panel','emptyText','stopPropagation','_currentVersion$','versions','DeleteSheet','none','absolute','users','1000','prototype','sheetId','HideSheet','hasOwnProperty','userId','init','column','currentSkeleton$','M8.00695\x2014.9998C8.00461\x2014.9999\x208.00227\x2014.9999\x207.99993\x2014.9999C4.13397\x2014.9999\x201\x2011.8659\x201\x207.99995C1\x204.13624\x204.13035\x201.00365\x207.99321\x201.00003C7.9955\x201.00001\x207.99779\x201\x208.00008\x201C11.866\x201\x2015\x204.13397\x2015\x207.99993C15\x2011.8636\x2011.8697\x2014.9961\x208.00695\x2014.9998ZM13.3569\x208.01503C13.3568\x208.01001\x2013.3568\x208.00499\x2013.3568\x207.99995C13.3568\x205.04144\x2010.9584\x202.64309\x207.99993\x202.64309C5.04645\x202.64309\x202.65123\x205.03327\x202.64308\x207.98484C2.64317\x207.98986\x202.64322\x207.99489\x202.64322\x207.99993C2.64322\x2010.9584\x205.04157\x2013.3568\x208.00008\x2013.3568C10.9536\x2013.3568\x2013.3488\x2010.9666\x2013.3569\x208.01503Z','univer-history-view-header-back','editHistory.panel.unknownUser','has','makeDirty','versions$','date','versionListPanel','current','indexOf','startRow','Error','startRevision','assign','currentColor','setValue','SetRowStyle','UNIVER_EDIT_HISTORY_VIEWER_PLUGIN','versionDate','time','data','forEach','_maskContainer','dateString','revertRevision$','editHistory.action.etc','children','text-gray-500','_maskElement','clipPath','getOwnPropertySymbols','subType','_dialogOptions$','versionListPanelContent','_cellEditorManagerService','versionItemHeaderExpand','editHistory.panel.title','workbook','1FhkfGl','SetColumnStyle','_initMaskContainer','entries','_messageService','0\x200\x2016\x2017','loadMoreVersions','next','univer-version-date','interceptor','push','_loadingMessage','displayName','params','find','forValue','keys','flat','editHistory.header.revert','registerComponent','APPLY_REJECT','path','name','loadingState$','bottom','_uiPartsService','UNAUTHENTICATED','_getAPIPrefix','add','versionItemContent','3202560ESIxRl','endRow','Comment','isArray','univer-version-item-header','LICENSE_IMPORT_SIZE_EXCEEDED','flex','active','attrs','CONNECTOR_DATA_TOO_LARGE','_transformMutationByOrder','permissionPointUpdate$','canRevert','unitId$','RestoreSingle','_injector','UNIVER_PROJECT','ViemRwHgtClWdt','top','span','restore-single','unitId','subscribe','UNDEFINED','ZH_CN','UNIVER_SLIDE','onStarting','justifyContent','MoveWorksheet','.univer-app-container-content','fetchMissingChangesets','disposeWithMe','style','row','InsertRow','createUnit','Delete','1634805fcSftX','apply','_lastLabel','loaded','_sheetSkeletonManagerService','_renderManagerService','svg','univer-version-list-panel-content','closeAll','versionItemHeaderTime','Loading','append','createSheet','[HistoryFetchService]:\x20request\x20snapshot\x20error!','DeleteColumn','getCurrent','getCurrentVersion','trim','colorChannel1','235230kropGN','univer-version-list-loading-icon','url(#restore-single_clip0_1247_2)','M7.41252\x2010.6196C7.64683\x2010.3852\x207.64683\x2010.0053\x207.41252\x209.77103L6.77012\x209.12863H9.67836C9.89927\x209.12863\x2010.0784\x209.30772\x2010.0784\x209.52863V11.1953C10.0784\x2011.5267\x2010.347\x2011.7953\x2010.6784\x2011.7953C11.0097\x2011.7953\x2011.2784\x2011.5267\x2011.2784\x2011.1953V9.52863C11.2784\x208.64497\x2010.562\x207.92863\x209.67836\x207.92863H6.77012L7.41252\x207.28623C7.64683\x207.05191\x207.64683\x206.67201\x207.41252\x206.4377C7.1782\x206.20338\x206.79831\x206.20338\x206.56399\x206.4377L4.89732\x208.10437C4.66301\x208.33868\x204.66301\x208.71858\x204.89732\x208.95289L6.56399\x2010.6196C6.79831\x2010.8539\x207.1782\x2010.8539\x207.41252\x2010.6196Z','ViewHistory','univer-version-item','PERMISSION_DENIED','HEADER','RecoverHistory','open','_getRangesByMutation','APPLY_NON_SEQUENTIAL_REVISION','versionItemHeader','MoveSheet','icon','_diffRangesMap','_historyFetchService','editHistory.panel.listFetchError','_updateDiffMarks','historyListServerUrl','defs','state$','LICENSE_MAX_UNITS_EXCEEDED','endRevision','loading','div','error','View','_unitId$','_currentVersionDiff$','_initActiveSwitch','subscribeEvent','_fetching','then','show','left','_getSheetObject','0\x200\x2016\x2016','editHistory.panel.currentVersion','univer-history-view-header','_historyManagerService','endRev','UNIVER_SHEET','versionItemHeaderTimeTag','recoverTime','rule','/universer-api/history','width','action','url(#$1','startColumn','Sort','ranges','rgba(225,\x20225,\x20225,\x200.5)','onRendered','edit-history-viewer.config','univer-version-list-panel','concat','_localeService','reduce','subUnitId','from','cellValue','_init','rev','_createUnit','skeleton','entities','asObservable','set','focusUnit','createElement','FloatImg','loadingState','UNIVER_DOC','SetWorksheetStyle','_diffs','APPLY_PERMISSION_DENIED','getRelativeToViewportCoord','Print','command','YUUMI_UNABLE_LOAD_URL','setState','code','idSuffix','_sidebarService','&lastLabel=','24px','map','createTime','filter','setFilter','className','entered','tag','rules','RenameWorksheet','flex\x20items-center\x20justify-center','m1Prime','_context','getViewport','Edit','Duplicate','getMinutes','setCF','historyViewHeaderRevert','insertSheet','_historyContainerId','register','_removeDiffMarks','confirm','_lastPointer','dispose','onMouseMove','4507008HxPlpg','replace','getHours','CreateWorksheet','object','1em','restore-single_clip0_1247_2','removeSheet','_versionDiffService','toString','/list?length=20','univer-version-item-content','_univerInstanceService','_canRevert','LICENSE_EXPORT_SIZE_EXCEEDED','_transformService','editHistory.panel.currentUser','_workbookDataCache','getOwnPropertyDescriptor','showMask','VIRTUAL_VERSION_NOW','INVALID_ARGUMENT','changesets','ENSURE_SNAPSHOT_EXECUTION','extend','_configService','fill','toISOString','editHistory.action.','hideMask','pipe','editHistory.info.loading','univer-version-item-header-time','_combineRanges','position','1144850cDNzlm','editHistory.action.revertSheetSuffix','empty','merge','SNAPSHOT_INVALID_SNAPSHOT','string','_permissionService','display','Export','_revertRevision$','8qbloyV','_extractRanges','triggerRevert','_status$','SNAPSHOT_HAS_BEEN_REMOVED','defineProperty','color','getVersions','history-mask','rect','setFrozen','M2.06678\x203.37926C2.0668\x201.94333\x203.23085\x200.779297\x204.66678\x200.779297H9.44256C10.1796\x200.779297\x2010.8821\x201.09213\x2011.3751\x201.63999L13.2659\x203.74079C13.6955\x204.21822\x2013.9333\x204.83779\x2013.9333\x205.4801V12.7126C13.9333\x2014.1486\x2012.7692\x2015.3126\x2011.3333\x2015.3126H4.66665C3.2307\x2015.3126\x202.06663\x2014.1486\x202.06665\x2012.7126L2.06678\x203.37926ZM4.66678\x201.9793C3.89359\x201.9793\x203.26679\x202.60609\x203.26678\x203.37928L3.26665\x2012.7126C3.26664\x2013.4858\x203.89344\x2014.1126\x204.66665\x2014.1126H11.3333C12.1065\x2014.1126\x2012.7333\x2013.4858\x2012.7333\x2012.7126V5.4801C12.7333\x205.44882\x2012.7322\x205.41764\x2012.7302\x205.3866H10.7985C9.91488\x205.3866\x209.19853\x204.67026\x209.19853\x203.78661V1.9793H4.66678ZM10.4832\x202.44275L12.0526\x204.1866H10.7985C10.5776\x204.1866\x2010.3985\x204.00752\x2010.3985\x203.78661V2.35649C10.4279\x202.38389\x2010.4561\x202.41266\x2010.4832\x202.44275Z','UNIVER_UNKNOWN','CreateSheet','CHANGESET_REVISION_CONFILICT','Share','ALREADY_EXISTS','triggerLoadSheet','_members','getConfig','currentVersion$','endColumn','memberId','setConfig','3566448QHaqbQ','FromArray','RenameSheet','_getActiveSubUnitId','SelectProtectedCells','univer-history-view-header-back-text','addProtection','EditExtraObject','mutations','SelectUnProtectedCells','getUnitOnRev','DeleteRow','InsertColumn','getVersion','status','user','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','currentVersionDiff$','_createMask','padStart','call','Filter','editHistory.panel.revertDesc','UNRECOGNIZED','_compressMutationService','length','INTERNAL_ERROR','SetCellValue','blockMeta','getMember','DeleteWorksheet','ensureVersion','univer-version-item-header-time-tag','PivotTable','History','body','_updateVersions','pluginName','[HistoryFetchService]:\x20wrong\x20rev\x20from\x20the\x20server!','updatePermissionPoint','versionListLoadingIcon','value','APPLY_REVISION_CONFILICT','commands','setDV','center','Entered','includes','TOO_MANY_REQUESTS','versionItem','split','evenodd','YUUMI_SUBSCRIPTION_NOT_FOUND','_snapshotServerService','getCurrentLocale','_initPanel','Copy','exited','_commandService','editHistory.panel.revertConfirmText','getDeserializedSheetBlock','_httpService','white','_loadingState$','currentVersion','Loaded','random','getCurrentUnitForType','range','registerRenderModule','get','InsertHyperlink','deleteProtection','_openPanel','primary','univer-history-view-header-revert','NOT_FOUND','RwHgtClWdt','m-auto\x20animate-spin360','COMPLETION_FINISHED','_sidebarDisposable',':\x20(','160279ULWDrh','ManageCollaborator','_config','SetCellStyle','BackSingle','CopySheet','onSteady','defIds','height','_initRender','loadSheet','now','HideWorksheet','sheet','APPLY_DUPLICATED','Init','confirm-revert-revision','getUnitId'];_0x1482=function(){return _0x240337;};return _0x1482();}class hr extends _0x49a45c{constructor(){const _0x206c3e=_0x3beb43;super(),l(this,_0x206c3e(0x2c1),new _0x5f5456());}['open'](){return _0x174492(()=>{});}['close'](){}[_0x3beb43(0x312)](_0x3cd549){}['getDialogs$'](){const _0x8ab74=_0x3beb43;return this[_0x8ab74(0x2c1)][_0x8ab74(0x361)]();}}var Le=Object[_0x3beb43(0x213)],dr=Object['getOwnPropertyDescriptor'],_r=(_0x2ba62d,_0x187657,_0x1f7249)=>_0x187657 in _0x2ba62d?Le(_0x2ba62d,_0x187657,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f7249}):_0x2ba62d[_0x187657]=_0x1f7249,vr=(_0x1a2e7b,_0x43ac9a,_0x5be0fa,_0x101e9c)=>{const _0x24418a=_0x3beb43;for(var _0x5c72e5=_0x101e9c>0x1?void 0x0:_0x101e9c?dr(_0x43ac9a,_0x5be0fa):_0x43ac9a,_0x16b640=_0x1a2e7b[_0x24418a(0x23f)]-0x1,_0xb4bb4b;_0x16b640>=0x0;_0x16b640--)(_0xb4bb4b=_0x1a2e7b[_0x16b640])&&(_0x5c72e5=(_0x101e9c?_0xb4bb4b(_0x43ac9a,_0x5be0fa,_0x5c72e5):_0xb4bb4b(_0x5c72e5))||_0x5c72e5);return _0x101e9c&&_0x5c72e5&&Le(_0x43ac9a,_0x5be0fa,_0x5c72e5),_0x5c72e5;},J=(_0x35fc5c,_0x2c591f)=>(_0x32f586,_0x519b87)=>_0x2c591f(_0x32f586,_0x519b87,_0x35fc5c),mr=(_0x4f3f3b,_0x5541df,_0x502b04)=>_r(_0x4f3f3b,_0x5541df+'',_0x502b04);const fr=_0x3beb43(0x2b2);let re=class extends _0x173464{constructor(_0x551515=rs,_0x1aed3,_0x209f63,_0x31a061){const _0x54e31c=_0x3beb43;super(),this[_0x54e31c(0x27a)]=_0x551515,this[_0x54e31c(0x2f4)]=_0x1aed3,this[_0x54e31c(0x30f)]=_0x209f63,this['_configService']=_0x31a061;const {..._0x1bcc67}=this[_0x54e31c(0x27a)];this[_0x54e31c(0x1fa)][_0x54e31c(0x225)](we,_0x1bcc67);}[_0x3beb43(0x2ff)](){const _0x3fba01=_0x3beb43;[[R],[F],[V],[W],[Y],[_0x22d6fc],[U],[_0x3c4871,{'useClass':_0x7d925c}],[_0x4efa4f,{'useClass':_0x48e390}],[_0x593c8a,{'useClass':_0x28c43c}],[_0x17ded3,{'useClass':hr}],[_0x395daa,{'useClass':_0x6a7eb9}]][_0x3fba01(0x2b6)](_0x356854=>this[_0x3fba01(0x2f4)][_0x3fba01(0x2e3)](_0x356854)),this[_0x3fba01(0x2f4)][_0x3fba01(0x26c)](F);}[_0x3beb43(0x353)](){const _0x5ef9fa=_0x3beb43;[[te]][_0x5ef9fa(0x2b6)](_0x4e2f67=>{const _0x1384d4=_0x5ef9fa;this[_0x1384d4(0x304)](this['_renderManagerService'][_0x1384d4(0x26b)](_0x47aded[_0x1384d4(0x347)],_0x4e2f67));}),this['_injector'][_0x5ef9fa(0x26c)](U),this[_0x5ef9fa(0x2f4)][_0x5ef9fa(0x26c)](Y);}[_0x3beb43(0x27e)](){const _0x11744b=_0x3beb43;this[_0x11744b(0x2f4)][_0x11744b(0x26c)](V);}};mr(re,_0x3beb43(0x24b),fr),re=vr([_0x58ae67(_0x562ef0),J(0x1,_0x286274(_0x5d907a)),J(0x2,_0x52528f),J(0x3,_0x2c87d9)],re);export{R as HistoryManagerService,ae as HistoryModeStatus,re as UniverEditHistoryViewerPlugin};