@univerjs-pro/edit-history-loader 0.24.0 → 0.25.0
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/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +14 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/ja-JP.d.ts +3 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +47 -42
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd3747d=_0xe99c;(function(_0x538946,_0x504149){const _0x49730c=_0xe99c,_0x2636df=_0x538946();while(!![]){try{const _0x3d31a2=-parseInt(_0x49730c(0x2af))/0x1+parseInt(_0x49730c(0x1f4))/0x2+-parseInt(_0x49730c(0x1fd))/0x3*(parseInt(_0x49730c(0x242))/0x4)+parseInt(_0x49730c(0x20d))/0x5+parseInt(_0x49730c(0x240))/0x6*(parseInt(_0x49730c(0x296))/0x7)+-parseInt(_0x49730c(0x22f))/0x8*(parseInt(_0x49730c(0x278))/0x9)+parseInt(_0x49730c(0x210))/0xa;if(_0x3d31a2===_0x504149)break;else _0x2636df['push'](_0x2636df['shift']());}catch(_0x94d5f){_0x2636df['push'](_0x2636df['shift']());}}}(_0x545a,0x89959));import{CommandType as _0x46f158,DependentOn as _0xeab6e0,Disposable as _0x6c5d76,DisposableCollection as _0x58b672,IAuthzIoService as _0x25a20c,ICommandService as _0x57aba4,IConfigService as _0x550417,IPermissionService as _0x5dc172,IUniverInstanceService as _0x1bbbcc,Inject as _0x506b77,Injector as _0x11bf60,LocaleService as _0x2fd53d,Plugin as _0x545f8f,RxDisposable as _0x23822b,ThemeService as _0x56c0a0,Univer as _0x33c36b,UniverInstanceType as _0x31ee75,Workbook as _0x2a7488,merge as _0x33300f,toDisposable as _0x3e40d9}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x15136c,RangeProtectionRuleModel as _0x34e08b,SetWorksheetActivateCommand as _0x5ddf17,UniverSheetsPlugin as _0x33c86b,WorkbookEditablePermission as _0x210132,WorkbookRecoverHistoryPermission as _0x56ae1e,WorkbookViewHistoryPermission as _0x4de8e1,WorksheetEditPermission as _0x1c1e44,getSheetCommandTarget as _0x4eed07}from'@univerjs/sheets';import{CollaborationEvent as _0x473a70,RevertRevisionMutation as _0x4a9cc0,UniverCollaborationPlugin as _0x540b93}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x328722,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x249dd6,CollaborationController as _0x403598,CollaborationStatus as _0x1c0ec0,DataLoaderService as _0x297f87,ILocalCacheService as _0x4cecb8}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x39e9ab,HistoryModeStatus as _0x3033a5,UniverEditHistoryViewerMobilePlugin as _0x55a3ef,UniverEditHistoryViewerPlugin as _0x4ad7ee}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x1ae143,UniverLicensePlugin as _0x42940f}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x3ab737}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xc6fc17}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x41cc6c}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xd239}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x5310aa}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x4eb0a1}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xf3b184}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x318883}from'@univerjs/data-validation';import{MessageType as _0x235979}from'@univerjs/design';import{UniverDocsPlugin as _0x56f869}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1b9c79}from'@univerjs/docs-ui';import{IImageIoService as _0x5bff47,UniverDrawingPlugin as _0x798726}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x4abb8b}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x1d50f9}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x270392}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x458233}from'@univerjs/network';import{IRemoteInstanceService as _0x197e95,UniverRPCMainThreadPlugin as _0x14cb3e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x8742fa}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x153c52}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x3dd0c9}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0xd9d82f,UniverSheetsDataValidationUIPlugin as _0x1a32b2}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5b59e6}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x363dea}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x50dd11}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x379bf4}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xfe84d7}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x562138}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x332a69}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x15240e}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x48f874}from'@univerjs/sheets-numfmt';function _0x545a(){const _0x4f09ac=['getOwnPropertyDescriptor','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','onStarting','subscribe','workerURL','BUTTON','_pluginMap','_internalWebWorker','fromCollab','@univerjs-pro/edit-history-loader','editHistory.panel.listFetchError','type','1602636VAzogd','Exited','2528ODitPx','clear','location','registerCommand','dispose','_updateSubUnitFromURLParams','_permissionService','version','Entered','univer.operation.toggle-edit-history','activeSheet$','show','history-container','set','_commandService','from','params','onCommandExecuted','iterator','defineProperty','exhaustSavingTask','getSheetBySheetId','left','unMountHistoryContent','getSubunitRuleList','style','composePermission','_historyManagerService','every','setParam','historyUniver$','pipe','urlChange$','some','flat','top','mutations','Error','getElementById','100%','closeAll','menu','univer-history-container-mobile','symbol','mountHistoryContent','setLocale','UNIVER_UNKNOWN','getParam','getCurrentUnitOfType','block','_handleRevertAcknowledgement','univerContainerId','_config','univer.operation.exit-edit-history','12213genBfA','mergeMenu','CHANGESET_ACK','historyUniver','values','call','UNIVER_SHEET','appendChild','status$','div','_localeService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_componentManager','absolute','close','Loading','decorate','_initListener','createElement','getAllPlugins','_localCacheService','zIndex','getSheets','_dialogService','value','HistoryIcon','uComp','pluginName','string','_menuManagerService','21CTUomH','_historyUniver$','_injector','_dataLoaderService','packageName','function','_configService','then','revertRevision$','height','editHistory.panel.revertFailed','edit-history-loader.config','_themeService','getUnit','state$','default','_setupSubUnitSync','SYNCED','length','getUnhiddenWorksheets','none','forEach','disposeUnit','loadUnit','register','689368NgqdEL','triggerLoadVersions','historyPanelHidden','historyListServerUrl','univer-container','reload','getActiveSheet','\x20has\x20been\x20registered.','registerPlugin','object','getCollabEntity','session','OPERATION','unsubscribe','681720UBprhf','_init','_selectionProtectionRuleModel','prototype','eventID','permissionId','executeCommand','getSheetId','dataset','3909zMfVZP','_collaborationController','_initContainer','terminate','whenReady','add','event$','UNIVER_CONTAINER_ID','asObservable','setConfig','display','editHistory.panel.reverting','map','editHistory.info.initializing','getConfig','triggerCustomVersions','2035980cSQhFo','has','_revertErrorTimer','7509400mhvAHf','onSteady','_initPlugins','setTheme','historyPanelComponentKey','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','invoke','darkMode$','get','setDarkMode','historyAIassistantEnabled','_messageService','getUnitId','data','toPrimitive','OTHERS','_checkCanRevert','[MobileHistoryLoaderService]:\x20Plugin\x20','getCurrentLocale','disposeWithMe','_urlService','position','subunit','_disposableCollection','_sidebarService','_univerInstanceService','width','_updateURLWithCurrentState','next','currentTheme$','_initUniver','1320wtBgqq','__getInjector','dispose$','status','[HistoryLoaderService]:\x20Plugin\x20'];_0x545a=function(){return _0x4f09ac;};return _0x545a();}import{UniverSheetsTablePlugin as _0x1ffac4}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x4307c2,UniverSheetsUIPlugin as _0x2c3c9f,getCurrentRangeDisable$ as _0x565f31}from'@univerjs/sheets-ui';import{ComponentManager as _0x579cf7,IDialogService as _0x4cc893,IMenuManagerService as _0x7ea17b,IMessageService as _0x388624,ISidebarService as _0x376338,MenuItemType as _0x5aba48,RibbonStartGroup as _0x37854d,UniverMobileUIPlugin as _0x3b5660,UniverUIPlugin as _0x924848,getMenuHiddenObservable as _0x3be5a3}from'@univerjs/ui';import{BehaviorSubject as _0xf7d34,combineLatest as _0x3fef9b,takeUntil as _0x181a1c}from'rxjs';import{IURLService as _0x43f444}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x357cc1}from'@univerjs/icons';const R=_0xd3747d(0x2a1);Symbol(R);const z={};function B(_0x5b8664){'@babel/helpers - typeof';const _0x27bf9d=_0xd3747d;return B=typeof Symbol=='function'&&typeof Symbol[_0x27bf9d(0x254)]=='symbol'?function(_0x4e01d4){return typeof _0x4e01d4;}:function(_0x31f228){const _0x563695=_0x27bf9d;return _0x31f228&&typeof Symbol==_0x563695(0x29b)&&_0x31f228['constructor']===Symbol&&_0x31f228!==Symbol[_0x563695(0x1f7)]?'symbol':typeof _0x31f228;},B(_0x5b8664);}function it(_0x193bdd,_0x55604f){const _0x11df31=_0xd3747d;if(B(_0x193bdd)!=_0x11df31(0x1ef)||!_0x193bdd)return _0x193bdd;var _0x580b46=_0x193bdd[Symbol[_0x11df31(0x21e)]];if(_0x580b46!==void 0x0){var _0xf50c2=_0x580b46[_0x11df31(0x27d)](_0x193bdd,_0x55604f||_0x11df31(0x2a5));if(B(_0xf50c2)!='object')return _0xf50c2;throw TypeError(_0x11df31(0x283));}return(_0x55604f===_0x11df31(0x294)?String:Number)(_0x193bdd);}function at(_0x86057b){const _0x33220=_0xd3747d;var _0x380322=it(_0x86057b,_0x33220(0x294));return B(_0x380322)==_0x33220(0x26d)?_0x380322:_0x380322+'';}function V(_0x3a8e98,_0x24cfda,_0x205287){const _0x43255f=_0xd3747d;return(_0x24cfda=at(_0x24cfda))in _0x3a8e98?Object[_0x43255f(0x255)](_0x3a8e98,_0x24cfda,{'value':_0x205287,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a8e98[_0x24cfda]=_0x205287,_0x3a8e98;}function H(_0x333488,_0x508d0f){return function(_0x180fee,_0x412174){_0x508d0f(_0x180fee,_0x412174,_0x333488);};}function U(_0x270678,_0x5e727b,_0x268f1b,_0x1163a6){const _0x4444f6=_0xd3747d;var _0x42b0c2=arguments[_0x4444f6(0x2a8)],_0x42a2ac=_0x42b0c2<0x3?_0x5e727b:_0x1163a6===null?_0x1163a6=Object[_0x4444f6(0x234)](_0x5e727b,_0x268f1b):_0x1163a6,_0x2c82f6;if(typeof Reflect==_0x4444f6(0x1ef)&&typeof Reflect[_0x4444f6(0x288)]==_0x4444f6(0x29b))_0x42a2ac=Reflect[_0x4444f6(0x288)](_0x270678,_0x5e727b,_0x268f1b,_0x1163a6);else{for(var _0x453580=_0x270678[_0x4444f6(0x2a8)]-0x1;_0x453580>=0x0;_0x453580--)(_0x2c82f6=_0x270678[_0x453580])&&(_0x42a2ac=(_0x42b0c2<0x3?_0x2c82f6(_0x42a2ac):_0x42b0c2>0x3?_0x2c82f6(_0x5e727b,_0x268f1b,_0x42a2ac):_0x2c82f6(_0x5e727b,_0x268f1b))||_0x42a2ac);}return _0x42b0c2>0x3&&_0x42a2ac&&Object[_0x4444f6(0x255)](_0x5e727b,_0x268f1b,_0x42a2ac),_0x42a2ac;}const ot=_0xd3747d(0x204),W='univer-history-container';function _0xe99c(_0x709a08,_0x5a92f){_0x709a08=_0x709a08-0x1e8;const _0x545adb=_0x545a();let _0xe99c77=_0x545adb[_0x709a08];return _0xe99c77;}let G=class extends _0x6c5d76{constructor(_0x31db47,_0x27c903,_0x342859,_0x38c1f5,_0xcd4c6f,_0x22a7fc,_0x23f63f,_0x40431d,_0x4bc512,_0x59bf8f){const _0x1a577f=_0xd3747d;super(),this[_0x1a577f(0x282)]=_0x31db47,this['_univerInstanceService']=_0x27c903,this[_0x1a577f(0x29c)]=_0x342859,this[_0x1a577f(0x250)]=_0x38c1f5,this[_0x1a577f(0x21b)]=_0xcd4c6f,this['_permissionService']=_0x22a7fc,this['_selectionProtectionRuleModel']=_0x23f63f,this[_0x1a577f(0x28f)]=_0x40431d,this['_sidebarService']=_0x4bc512,this[_0x1a577f(0x2a2)]=_0x59bf8f,V(this,_0x1a577f(0x297),new _0xf7d34(null)),V(this,_0x1a577f(0x260),this['_historyUniver$']['asObservable']()),V(this,_0x1a577f(0x227),new _0x58b672()),V(this,_0x1a577f(0x23a),new Map()),V(this,_0x1a577f(0x23b),null),this[_0x1a577f(0x1f5)]();}get['historyUniver'](){return this['_historyUniver$']['value'];}[_0xd3747d(0x1f5)](){const _0x27d666=_0xd3747d;this[_0x27d666(0x1ff)](),this[_0x27d666(0x212)]();}[_0xd3747d(0x1ff)](){const _0x200008=_0xd3747d;var _0x566262;let _0x3b0b14=(_0x566262=this[_0x200008(0x29c)][_0x200008(0x20b)]('UNIVER_CONTAINER_ID'))==null?_0x200008(0x1ea):_0x566262,_0x74b3a6=document['getElementById'](_0x3b0b14);if(!_0x74b3a6)return;let _0x5a4aea=document[_0x200008(0x28a)](_0x200008(0x281));_0x5a4aea['id']=W,_0x5a4aea[_0x200008(0x1fc)][_0x200008(0x292)]=_0x200008(0x24e),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x225)]=_0x200008(0x285),_0x5a4aea['style'][_0x200008(0x265)]='0',_0x5a4aea[_0x200008(0x25b)][_0x200008(0x258)]='0',_0x5a4aea['style'][_0x200008(0x22a)]=_0x200008(0x269),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x29f)]=_0x200008(0x269),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x28d)]='49',_0x5a4aea['style'][_0x200008(0x207)]=_0x200008(0x2aa),_0x74b3a6[_0x200008(0x27f)](_0x5a4aea);}[_0xd3747d(0x212)](){const _0x4cd34c=_0xd3747d;[[_0x270392],[_0x924848,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cc893,null]]}],[_0x458233],[_0x798726,{'override':[[_0x5bff47,null]]}],[_0x56f869,{'hasScroll':!0x1}],[_0x1b9c79],[_0x48f874],[_0x33c86b,{'notExecuteFormula':!0x0}],[_0x2c3c9f],[_0xfe84d7],[_0x562138],[_0x540b93],[_0x50dd11],[_0x379bf4],[_0x8742fa],[_0x153c52],[_0x332a69],[_0x15240e],[_0x318883],[_0x3dd0c9],[_0x1a32b2],[_0x1d50f9,{'notExecuteFormula':!0x0}],[_0x4abb8b],[_0x5b59e6],[_0x363dea],[_0x4eb0a1],[_0xf3b184],[_0x3ab737],[_0xc6fc17],[_0xd239],[_0x5310aa],[_0x41cc6c,{'notExecuteFormula':!0x0}],[_0x1ffac4]]['forEach'](([_0x4fd77b,_0x4f4bad])=>this[_0x4cd34c(0x1ee)](_0x4fd77b,_0x4f4bad));}[_0xd3747d(0x246)](){const _0x17c434=_0xd3747d;super[_0x17c434(0x246)](),this[_0x17c434(0x259)](),this[_0x17c434(0x23a)]['clear']();}['registerPlugin'](_0x10ef51,_0x78dc0,_0x1acae1){const _0xb9ebee=_0xd3747d;if(this[_0xb9ebee(0x23a)][_0xb9ebee(0x20e)](_0x10ef51[_0xb9ebee(0x293)])&&!_0x1acae1)throw Error(_0xb9ebee(0x233)+_0x10ef51[_0xb9ebee(0x293)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0xb9ebee(0x24f)](_0x10ef51[_0xb9ebee(0x293)],[_0x10ef51,_0x78dc0]);}['getAllPlugins'](){const _0x4bdcbb=_0xd3747d;return Array[_0x4bdcbb(0x251)](this[_0x4bdcbb(0x23a)][_0x4bdcbb(0x27c)]());}[_0xd3747d(0x26e)](_0x432104,_0x19ab33){const _0x58eb82=_0xd3747d;let _0x5c3776=document[_0x58eb82(0x268)](W);_0x5c3776&&(_0x5c3776[_0x58eb82(0x25b)][_0x58eb82(0x207)]=_0x58eb82(0x273),this[_0x58eb82(0x22e)](_0x432104,W,_0x19ab33));}['unMountHistoryContent'](){const _0x280731=_0xd3747d;var _0x57df33;this[_0x280731(0x227)][_0x280731(0x246)](),(_0x57df33=this[_0x280731(0x27b)])==null||_0x57df33[_0x280731(0x246)](),this[_0x280731(0x297)][_0x280731(0x22c)](null);let _0x1cf1fa=document[_0x280731(0x268)](W);_0x1cf1fa&&(_0x1cf1fa[_0x280731(0x25b)]['display']=_0x280731(0x2aa),this[_0x280731(0x23b)]&&(this['_internalWebWorker'][_0x280731(0x200)](),this[_0x280731(0x23b)]=null));}[_0xd3747d(0x22e)](_0x5462e2,_0x1afac1,_0x94e86e){const _0x578619=_0xd3747d;var _0x22b970,_0x56e7c4,_0x2802e2,_0x1fe362,_0x5359e0;if(this[_0x578619(0x27b)])return;let _0x2b32b9=new _0x33c36b({'locales':{[this['_localeService'][_0x578619(0x222)]()]:this[_0x578619(0x282)]['getLocales']()},'override':[[_0x25a20c,{'useClass':_0x328722}]]}),_0x301b87=_0x2b32b9[_0x578619(0x230)]();this[_0x578619(0x223)](this[_0x578619(0x2a2)]['darkMode$'][_0x578619(0x237)](_0x39718b=>{const _0x48704f=_0x578619;_0x301b87['get'](_0x56c0a0)[_0x48704f(0x219)](_0x39718b);})),this[_0x578619(0x223)](this[_0x578619(0x2a2)]['currentTheme$'][_0x578619(0x237)](_0x3f6588=>{const _0x3ee75b=_0x578619;_0x301b87[_0x3ee75b(0x218)](_0x56c0a0)[_0x3ee75b(0x213)](_0x3f6588);})),_0x301b87['get'](_0x2fd53d)[_0x578619(0x26f)](this[_0x578619(0x282)][_0x578619(0x222)]()),_0x301b87[_0x578619(0x218)](_0x550417)[_0x578619(0x206)](_0x249dd6,this[_0x578619(0x29c)][_0x578619(0x20b)](_0x249dd6));let _0x46e3c3=this[_0x578619(0x29c)]['getConfig'](_0x1ae143);_0x46e3c3&&_0x2b32b9['registerPlugin'](_0x42940f,{'license':_0x46e3c3['ls']});let _0x3cadc1=(_0x22b970=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x22b970[_0x578619(0x238)],_0x3d5c10=!!_0x3cadc1;_0x3d5c10&&(this['_internalWebWorker']=_0x3cadc1 instanceof Worker?_0x3cadc1:null,_0x2b32b9[_0x578619(0x1ee)](_0x14cb3e,{'workerURL':_0x3cadc1})),this[_0x578619(0x23a)][_0x578619(0x2ab)](([_0x556ce7,_0x32906e])=>{const _0x1ac3c6=_0x578619;_0x2b32b9[_0x1ac3c6(0x1ee)](_0x556ce7,_0x32906e);}),_0x2b32b9[_0x578619(0x1ee)](_0x4ad7ee,{'historyListServerUrl':(_0x56e7c4=this['_configService'][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x56e7c4[_0x578619(0x1e9)],'historyPanelComponentKey':(_0x2802e2=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x2802e2[_0x578619(0x214)],'historyPanelHidden':(_0x1fe362=this[_0x578619(0x29c)]['getConfig'](_0x578619(0x2a1)))==null?void 0x0:_0x1fe362[_0x578619(0x1e8)],'historyAIassistantEnabled':(_0x5359e0=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x5359e0[_0x578619(0x21a)]}),_0x301b87[_0x578619(0x216)](_0x41c9b7=>{const _0x54f38c=_0x578619;this[_0x54f38c(0x289)](_0x41c9b7,_0x5462e2);}),this[_0x578619(0x297)][_0x578619(0x22c)](_0x2b32b9);let _0x52f621=_0x301b87[_0x578619(0x218)](_0x39e9ab),_0x7919bc=this[_0x578619(0x220)](_0x5462e2),_0x5e4eaf=()=>{const _0x5e857f=_0x578619;_0x94e86e?_0x52f621['triggerCustomVersions'](_0x5462e2,_0x1afac1,_0x7919bc,_0x94e86e):_0x52f621[_0x5e857f(0x2b0)](_0x5462e2,_0x1afac1,_0x7919bc);};if(this[_0x578619(0x21b)]['show']({'content':this[_0x578619(0x282)]['t'](_0x578619(0x20a)),'type':_0x235979[_0x578619(0x287)]}),_0x3d5c10)try{_0x301b87['get'](_0x197e95)[_0x578619(0x201)]()[_0x578619(0x29d)](()=>{_0x5e4eaf();});}catch{_0x5e4eaf();}else _0x5e4eaf();}[_0xd3747d(0x289)](_0x4fcaa6,_0x55ca4d){const _0x6c1645=_0xd3747d;let _0x3d0820=_0x4fcaa6[_0x6c1645(0x218)](_0x39e9ab);this[_0x6c1645(0x227)][_0x6c1645(0x202)](_0x3d0820[_0x6c1645(0x280)][_0x6c1645(0x237)](_0x14434f=>{const _0x4fc1e7=_0x6c1645;switch(_0x14434f){case _0x3033a5[_0x4fc1e7(0x24a)]:this[_0x4fc1e7(0x28f)][_0x4fc1e7(0x26a)](),this[_0x4fc1e7(0x228)]['close']();break;case _0x3033a5[_0x4fc1e7(0x241)]:this[_0x4fc1e7(0x250)]['executeCommand'](q['id']),this[_0x4fc1e7(0x259)]();break;case _0x3033a5[_0x4fc1e7(0x267)]:this[_0x4fc1e7(0x259)](),this[_0x4fc1e7(0x21b)][_0x4fc1e7(0x24d)]({'content':this[_0x4fc1e7(0x282)]['t']('editHistory.panel.listFetchError'),'type':_0x235979[_0x4fc1e7(0x267)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x6c1645(0x202)](_0x3d0820[_0x6c1645(0x29e)][_0x6c1645(0x237)](async _0x48c774=>{const _0x53cd92=_0x6c1645;_0x48c774&&this['_commandService'][_0x53cd92(0x1fa)](_0x4a9cc0['id'],{'unitId':_0x55ca4d,'revision':_0x48c774});}));}[_0xd3747d(0x220)](_0x41ad54){const _0x4d8b71=_0xd3747d;let _0x5e2035=this[_0x4d8b71(0x229)][_0x4d8b71(0x2a3)](_0x41ad54)[_0x4d8b71(0x28e)]()[_0x4d8b71(0x209)](_0x2685c6=>_0x2685c6[_0x4d8b71(0x1fb)]()),_0x2d9f8c=new _0x210132(_0x41ad54)['id'],_0x5d8839=_0x5e2035[_0x4d8b71(0x209)](_0x467583=>new _0x1c1e44(_0x41ad54,_0x467583)['id']),_0x460820=_0x5e2035[_0x4d8b71(0x209)](_0x5eccb7=>this[_0x4d8b71(0x1f6)][_0x4d8b71(0x25a)](_0x41ad54,_0x5eccb7)['map'](_0x50f2c6=>new _0x15136c(_0x41ad54,_0x5eccb7,_0x50f2c6[_0x4d8b71(0x1f9)])['id']))[_0x4d8b71(0x264)](),_0x213824=new _0x56ae1e(_0x41ad54)['id'];return this[_0x4d8b71(0x248)][_0x4d8b71(0x25c)]([_0x2d9f8c,..._0x5d8839,..._0x460820,_0x213824])[_0x4d8b71(0x25e)](_0x1955e2=>!!_0x1955e2['value']);}};G=U([H(0x0,_0x506b77(_0x2fd53d)),H(0x1,_0x1bbbcc),H(0x2,_0x550417),H(0x3,_0x57aba4),H(0x4,_0x388624),H(0x5,_0x5dc172),H(0x6,_0x506b77(_0x34e08b)),H(0x7,_0x506b77(_0x4cc893)),H(0x8,_0x506b77(_0x376338)),H(0x9,_0x506b77(_0x56c0a0))],G);const K={'id':_0xd3747d(0x24b),'type':_0x46f158[_0xd3747d(0x1f2)],'handler':_0x523c34=>{const _0x309aea=_0xd3747d;let _0x2dd09b=_0x523c34[_0x309aea(0x218)](G),{unitId:_0x37586b}=_0x4eed07(_0x523c34[_0x309aea(0x218)](_0x1bbbcc))||{};return _0x37586b?(_0x2dd09b['mountHistoryContent'](_0x37586b),!0x0):!0x1;}},q={'id':_0xd3747d(0x277),'type':_0x46f158[_0xd3747d(0x1f2)],'handler':()=>!0x0};var st=_0xd3747d(0x23d),ct='0.24.0';function lt(_0x5dc746){const _0x5cc6a0=_0xd3747d;return{'id':K['id'],'type':_0x5aba48[_0x5cc6a0(0x239)],'icon':_0x5cc6a0(0x291),'tooltip':'editHistory.panel.title','hidden$':_0x3be5a3(_0x5dc746,_0x31ee75[_0x5cc6a0(0x27e)]),'disabled$':_0x565f31(_0x5dc746,{'workbookTypes':[_0x4de8e1],'worksheetTypes':[],'rangeTypes':[]})};}const ut={[_0x37854d[_0xd3747d(0x21f)]]:{[K['id']]:{'order':0.2,'menuItemFactory':lt}}};let J=class extends _0x23822b{constructor(_0x44a944,_0x44ae36,_0xf175e,_0x198901,_0x3a228e,_0x2942ed,_0xfd0988,_0x2f92de,_0x4d79f4,_0x4a2bad,_0x2b8630){const _0x3c58dc=_0xd3747d;super(),this[_0x3c58dc(0x250)]=_0x44a944,this[_0x3c58dc(0x295)]=_0x44ae36,this[_0x3c58dc(0x284)]=_0xf175e,this[_0x3c58dc(0x25d)]=_0x198901,this[_0x3c58dc(0x282)]=_0x3a228e,this[_0x3c58dc(0x21b)]=_0x2942ed,this[_0x3c58dc(0x1fe)]=_0xfd0988,this[_0x3c58dc(0x28c)]=_0x2f92de,this[_0x3c58dc(0x299)]=_0x4d79f4,this[_0x3c58dc(0x229)]=_0x4a2bad,this[_0x3c58dc(0x224)]=_0x2b8630,V(this,_0x3c58dc(0x20f),null),this[_0x3c58dc(0x1f5)]();}[_0xd3747d(0x1f5)](){const _0x359ffd=_0xd3747d;[K,q]['forEach'](_0x54bafd=>this[_0x359ffd(0x223)](_0x3e40d9(this[_0x359ffd(0x250)]['registerCommand'](_0x54bafd)))),this['disposeWithMe'](this[_0x359ffd(0x284)][_0x359ffd(0x2ae)]('HistoryIcon',_0x357cc1)),this[_0x359ffd(0x295)][_0x359ffd(0x279)](ut),this[_0x359ffd(0x223)](this['_commandService'][_0x359ffd(0x253)](async(_0x7bf22e,_0xe85134)=>{const _0x28f9cb=_0x359ffd;if(_0x7bf22e['id']===_0x4a9cc0['id']){let {unitId:_0x2fc530}=_0x7bf22e[_0x28f9cb(0x252)];this['_messageService']['show']({'content':this[_0x28f9cb(0x282)]['t'](_0x28f9cb(0x208)),'type':_0x235979[_0x28f9cb(0x287)],'duration':0x1388});let _0x5d9446=this['_collaborationController'][_0x28f9cb(0x1f0)](_0x2fc530);_0xe85134!=null&&_0xe85134[_0x28f9cb(0x23c)]?this[_0x28f9cb(0x274)](_0x5d9446,async()=>(setTimeout(()=>window[_0x28f9cb(0x244)][_0x28f9cb(0x1eb)]()),!0x0),!0x0):this[_0x28f9cb(0x274)](_0x5d9446,async()=>{const _0x48ff35=_0x28f9cb;let _0x4250ac=this[_0x48ff35(0x229)][_0x48ff35(0x272)](_0x31ee75[_0x48ff35(0x27e)]),_0x1d3004=_0x4250ac==null?void 0x0:_0x4250ac[_0x48ff35(0x1ec)]();if(!_0x1d3004)return!0x1;this['_univerInstanceService'][_0x48ff35(0x2ac)](_0x2fc530);let _0x6e38a8=await this[_0x48ff35(0x299)][_0x48ff35(0x2ad)](_0x2fc530,_0x31ee75['UNIVER_SHEET']);return _0x6e38a8&&_0x6e38a8 instanceof _0x2a7488?(await this[_0x48ff35(0x2a6)](_0x6e38a8,_0x1d3004['getSheetId']()),!0x0):!0x1;});}}));}[_0xd3747d(0x274)](_0x28b756,_0x7d8d01,_0x430d19=!0x1){const _0x55ad57=_0xd3747d;let _0x9f78bb=_0x3fef9b([_0x28b756[_0x55ad57(0x1f1)][_0x55ad57(0x203)],_0x28b756['state$']])[_0x55ad57(0x237)](async([_0x4e3ca6,_0x261f54])=>{const _0x2563a7=_0x55ad57;if(_0x4e3ca6[_0x2563a7(0x1f8)]===_0x473a70[_0x2563a7(0x27a)]&&(_0x261f54==null?void 0x0:_0x261f54['status'])===_0x1c0ec0[_0x2563a7(0x2a7)]&&_0x4e3ca6[_0x2563a7(0x21d)][_0x2563a7(0x266)][_0x2563a7(0x263)](_0xe399ce=>_0xe399ce['id']===_0x4a9cc0['id'])&&await _0x7d8d01()){var _0x550163;this[_0x2563a7(0x25d)][_0x2563a7(0x259)](),_0x9f78bb[_0x2563a7(0x1f3)](),this[_0x2563a7(0x20f)]&&clearTimeout(this[_0x2563a7(0x20f)]),await((_0x550163=this[_0x2563a7(0x28c)])==null?void 0x0:_0x550163[_0x2563a7(0x256)]()),this['_messageService']['removeAll']();}});_0x430d19&&(this[_0x55ad57(0x20f)]=setTimeout(()=>{const _0x1d9751=_0x55ad57;_0x9f78bb[_0x1d9751(0x1f3)](),this['_messageService'][_0x1d9751(0x24d)]({'content':this[_0x1d9751(0x282)]['t'](_0x1d9751(0x2a0)),'type':_0x235979['Error'],'duration':0xbb8});},0x1388));}async[_0xd3747d(0x2a6)](_0x3628fe,_0xf81a26){const _0x27dbed=_0xd3747d;await this[_0x27dbed(0x247)](_0x3628fe,_0xf81a26),_0x3628fe['activeSheet$'][_0x27dbed(0x261)](_0x181a1c(this[_0x27dbed(0x231)]))[_0x27dbed(0x237)](_0x3a3978=>{const _0x4f1e04=_0x27dbed;_0x3a3978&&this[_0x4f1e04(0x22b)](_0x3a3978);}),this[_0x27dbed(0x224)][_0x27dbed(0x262)][_0x27dbed(0x261)](_0x181a1c(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3628fe,_0xf81a26));}[_0xd3747d(0x22b)](_0x209b16,_0x3864ab=!0x1){const _0x7a48f3=_0xd3747d;let _0x2350bb=this['_urlService'][_0x7a48f3(0x271)]('subunit');_0x209b16[_0x7a48f3(0x1fb)]()!==_0x2350bb&&this['_urlService']['setParam'](_0x7a48f3(0x226),_0x209b16[_0x7a48f3(0x1fb)](),_0x3864ab);}async[_0xd3747d(0x247)](_0x554f73,_0x2c4c39){const _0x49b1c6=_0xd3747d;var _0x378e81;if(!_0x2c4c39||!_0x554f73['getSheetBySheetId'](_0x2c4c39)){let _0x3903a0=_0x554f73[_0x49b1c6(0x2a9)]()[0x0],_0x23b7c8=_0x554f73[_0x49b1c6(0x257)](_0x3903a0);if(!_0x23b7c8)return;this[_0x49b1c6(0x22b)](_0x23b7c8,!0x0),await this['_commandService'][_0x49b1c6(0x1fa)](_0x5ddf17['id'],{'unitId':_0x554f73[_0x49b1c6(0x21c)](),'subUnitId':_0x3903a0});return;}((_0x378e81=_0x554f73['getActiveSheet']())==null?void 0x0:_0x378e81[_0x49b1c6(0x1fb)]())!==_0x2c4c39&&await this[_0x49b1c6(0x250)]['executeCommand'](_0x5ddf17['id'],{'unitId':_0x554f73['getUnitId'](),'subUnitId':_0x2c4c39});}};J=U([H(0x0,_0x57aba4),H(0x1,_0x7ea17b),H(0x2,_0x506b77(_0x579cf7)),H(0x3,_0x506b77(G)),H(0x4,_0x506b77(_0x2fd53d)),H(0x5,_0x388624),H(0x6,_0x506b77(_0x403598)),H(0x7,_0x4cecb8),H(0x8,_0x506b77(_0x297f87)),H(0x9,_0x1bbbcc),H(0xa,_0x43f444)],J);const Y=_0xd3747d(0x26c);let X=class extends _0x6c5d76{constructor(_0x5734c8,_0x570db8,_0x574e00,_0x3063b5,_0xe05beb,_0x56e59b,_0x22bf3e,_0x2b852d,_0x4872b1,_0x15ff97){const _0x41d24d=_0xd3747d;super(),this[_0x41d24d(0x282)]=_0x5734c8,this[_0x41d24d(0x229)]=_0x570db8,this['_configService']=_0x574e00,this[_0x41d24d(0x250)]=_0x3063b5,this[_0x41d24d(0x21b)]=_0xe05beb,this[_0x41d24d(0x248)]=_0x56e59b,this[_0x41d24d(0x1f6)]=_0x22bf3e,this[_0x41d24d(0x28f)]=_0x2b852d,this[_0x41d24d(0x228)]=_0x4872b1,this[_0x41d24d(0x2a2)]=_0x15ff97,V(this,_0x41d24d(0x297),new _0xf7d34(null)),V(this,_0x41d24d(0x260),this[_0x41d24d(0x297)][_0x41d24d(0x205)]()),V(this,'_disposableCollection',new _0x58b672()),V(this,_0x41d24d(0x23a),new Map()),V(this,_0x41d24d(0x23b),null),this[_0x41d24d(0x1f5)]();}get[_0xd3747d(0x27b)](){const _0x3405cf=_0xd3747d;return this[_0x3405cf(0x297)][_0x3405cf(0x290)];}[_0xd3747d(0x1f5)](){const _0x1d5728=_0xd3747d;this[_0x1d5728(0x1ff)](),this['_initPlugins']();}['_initContainer'](){const _0x1f326f=_0xd3747d;var _0x2e3972;let _0x2cba4e=(_0x2e3972=this[_0x1f326f(0x29c)][_0x1f326f(0x20b)](_0x1f326f(0x204)))==null?_0x1f326f(0x1ea):_0x2e3972,_0x223f83=document[_0x1f326f(0x268)](_0x2cba4e);if(!_0x223f83)return;let _0x3ded1b=document['createElement'](_0x1f326f(0x281));_0x3ded1b['id']=Y,_0x3ded1b[_0x1f326f(0x1fc)][_0x1f326f(0x292)]=_0x1f326f(0x24e),_0x3ded1b['style'][_0x1f326f(0x225)]='absolute',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x265)]='0',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x258)]='0',_0x3ded1b[_0x1f326f(0x25b)]['width']='100%',_0x3ded1b[_0x1f326f(0x25b)]['height']=_0x1f326f(0x269),_0x3ded1b[_0x1f326f(0x25b)]['zIndex']='49',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x207)]=_0x1f326f(0x2aa),_0x223f83[_0x1f326f(0x27f)](_0x3ded1b);}['_initPlugins'](){const _0x12477f=_0xd3747d;[[_0x270392],[_0x3b5660,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cc893,null]]}],[_0x458233],[_0x798726,{'override':[[_0x5bff47,null]]}],[_0x56f869,{'hasScroll':!0x1}],[_0x1b9c79],[_0x48f874],[_0x33c86b,{'notExecuteFormula':!0x0}],[_0x4307c2],[_0xfe84d7],[_0x562138],[_0x540b93],[_0x50dd11],[_0x8742fa],[_0x332a69],[_0x15240e],[_0x318883],[_0x3dd0c9],[_0xd9d82f],[_0x1d50f9,{'notExecuteFormula':!0x0}],[_0x4abb8b],[_0x5b59e6],[_0x363dea],[_0x4eb0a1],[_0xf3b184],[_0x3ab737],[_0xc6fc17],[_0xd239],[_0x5310aa],[_0x41cc6c,{'notExecuteFormula':!0x0}],[_0x1ffac4]][_0x12477f(0x2ab)](([_0x5cf5b1,_0xaf3d7])=>this[_0x12477f(0x1ee)](_0x5cf5b1,_0xaf3d7));}[_0xd3747d(0x246)](){const _0x34110f=_0xd3747d;super[_0x34110f(0x246)](),this[_0x34110f(0x259)](),this['_pluginMap'][_0x34110f(0x243)]();}[_0xd3747d(0x1ee)](_0x11c668,_0x226afe,_0x287987){const _0x2b1935=_0xd3747d;if(this[_0x2b1935(0x23a)][_0x2b1935(0x20e)](_0x11c668['pluginName'])&&!_0x287987)throw Error(_0x2b1935(0x221)+_0x11c668[_0x2b1935(0x293)]+_0x2b1935(0x1ed));this[_0x2b1935(0x23a)][_0x2b1935(0x24f)](_0x11c668[_0x2b1935(0x293)],[_0x11c668,_0x226afe]);}[_0xd3747d(0x28b)](){const _0x10f2eb=_0xd3747d;return Array[_0x10f2eb(0x251)](this[_0x10f2eb(0x23a)]['values']());}[_0xd3747d(0x26e)](_0x37845b,_0x26efa9){const _0x247df5=_0xd3747d;let _0x1ccbcb=document[_0x247df5(0x268)](Y);_0x1ccbcb&&(_0x1ccbcb[_0x247df5(0x25b)][_0x247df5(0x207)]='block',this[_0x247df5(0x22e)](_0x37845b,Y,_0x26efa9));}[_0xd3747d(0x259)](){const _0x27d942=_0xd3747d;var _0x21ef22;this[_0x27d942(0x227)]['dispose'](),(_0x21ef22=this[_0x27d942(0x27b)])==null||_0x21ef22[_0x27d942(0x246)](),this[_0x27d942(0x297)]['next'](null);let _0x43f433=document[_0x27d942(0x268)](Y);_0x43f433&&(_0x43f433['style']['display']=_0x27d942(0x2aa),this[_0x27d942(0x23b)]&&(this['_internalWebWorker'][_0x27d942(0x200)](),this[_0x27d942(0x23b)]=null));}[_0xd3747d(0x22e)](_0x36fd80,_0x171a0a,_0x5bcf25){const _0x481bb6=_0xd3747d;var _0xdd4788,_0x13e453,_0x48effa,_0xba84c8;if(this['historyUniver'])return;let _0xb8e56c=new _0x33c36b({'locales':{[this[_0x481bb6(0x282)][_0x481bb6(0x222)]()]:this['_localeService']['getLocales']()},'override':[[_0x25a20c,{'useClass':_0x328722}]]}),_0x244bb1=_0xb8e56c['__getInjector']();this[_0x481bb6(0x223)](this[_0x481bb6(0x2a2)][_0x481bb6(0x217)]['subscribe'](_0x2bd20c=>{const _0x58c342=_0x481bb6;_0x244bb1[_0x58c342(0x218)](_0x56c0a0)[_0x58c342(0x219)](_0x2bd20c);})),this[_0x481bb6(0x223)](this[_0x481bb6(0x2a2)][_0x481bb6(0x22d)][_0x481bb6(0x237)](_0x492bf6=>{const _0x2936f2=_0x481bb6;_0x244bb1[_0x2936f2(0x218)](_0x56c0a0)[_0x2936f2(0x213)](_0x492bf6);})),_0x244bb1[_0x481bb6(0x218)](_0x2fd53d)[_0x481bb6(0x26f)](this[_0x481bb6(0x282)][_0x481bb6(0x222)]()),_0x244bb1['get'](_0x550417)[_0x481bb6(0x206)](_0x249dd6,this[_0x481bb6(0x29c)][_0x481bb6(0x20b)](_0x249dd6));let _0x31d198=this['_configService'][_0x481bb6(0x20b)](_0x1ae143);_0x31d198&&_0xb8e56c[_0x481bb6(0x1ee)](_0x42940f,{'license':_0x31d198['ls']});let _0x4d7fee=(_0xdd4788=this[_0x481bb6(0x29c)][_0x481bb6(0x20b)](_0x481bb6(0x2a1)))==null?void 0x0:_0xdd4788[_0x481bb6(0x238)],_0x7c6541=!!_0x4d7fee;_0x7c6541&&(this[_0x481bb6(0x23b)]=_0x4d7fee instanceof Worker?_0x4d7fee:null,_0xb8e56c[_0x481bb6(0x1ee)](_0x14cb3e,{'workerURL':_0x4d7fee})),this['_pluginMap']['forEach'](([_0x53566e,_0x5bf69b])=>{const _0x32eb17=_0x481bb6;_0xb8e56c[_0x32eb17(0x1ee)](_0x53566e,_0x5bf69b);}),_0xb8e56c['registerPlugin'](_0x55a3ef,{'historyListServerUrl':(_0x13e453=this[_0x481bb6(0x29c)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x13e453[_0x481bb6(0x1e9)],'historyPanelComponentKey':(_0x48effa=this['_configService']['getConfig'](_0x481bb6(0x2a1)))==null?void 0x0:_0x48effa['historyPanelComponentKey'],'historyPanelHidden':(_0xba84c8=this[_0x481bb6(0x29c)]['getConfig'](_0x481bb6(0x2a1)))==null?void 0x0:_0xba84c8[_0x481bb6(0x1e8)]}),_0x244bb1['invoke'](_0x149a83=>{const _0x7269a9=_0x481bb6;this[_0x7269a9(0x289)](_0x149a83,_0x36fd80);}),this[_0x481bb6(0x297)][_0x481bb6(0x22c)](_0xb8e56c);let _0x3eb7e0=_0x244bb1['get'](_0x39e9ab),_0x4f2b0c=this[_0x481bb6(0x220)](_0x36fd80),_0x5e2fb2=()=>{const _0x3ad07e=_0x481bb6;_0x5bcf25?_0x3eb7e0[_0x3ad07e(0x20c)](_0x36fd80,_0x171a0a,_0x4f2b0c,_0x5bcf25):_0x3eb7e0[_0x3ad07e(0x2b0)](_0x36fd80,_0x171a0a,_0x4f2b0c);};if(this[_0x481bb6(0x21b)][_0x481bb6(0x24d)]({'content':this[_0x481bb6(0x282)]['t'](_0x481bb6(0x20a)),'type':_0x235979[_0x481bb6(0x287)]}),_0x7c6541)try{_0x244bb1[_0x481bb6(0x218)](_0x197e95)[_0x481bb6(0x201)]()[_0x481bb6(0x29d)](()=>{_0x5e2fb2();});}catch{_0x5e2fb2();}else _0x5e2fb2();}['_initListener'](_0x3e7ef7,_0x307407){const _0x51fd56=_0xd3747d;let _0x28ef2a=_0x3e7ef7['get'](_0x39e9ab);this[_0x51fd56(0x227)][_0x51fd56(0x202)](_0x28ef2a[_0x51fd56(0x280)][_0x51fd56(0x237)](_0x234251=>{const _0x32cb03=_0x51fd56;switch(_0x234251){case _0x3033a5[_0x32cb03(0x24a)]:this[_0x32cb03(0x28f)][_0x32cb03(0x26a)](),this[_0x32cb03(0x228)][_0x32cb03(0x286)]();break;case _0x3033a5[_0x32cb03(0x241)]:this['_commandService'][_0x32cb03(0x1fa)](q['id']),this[_0x32cb03(0x259)]();break;case _0x3033a5['Error']:this[_0x32cb03(0x259)](),this[_0x32cb03(0x21b)][_0x32cb03(0x24d)]({'content':this[_0x32cb03(0x282)]['t'](_0x32cb03(0x23e)),'type':_0x235979['Error'],'duration':0xbb8});break;default:break;}})),this[_0x51fd56(0x227)][_0x51fd56(0x202)](_0x28ef2a[_0x51fd56(0x29e)][_0x51fd56(0x237)](async _0x48c42a=>{_0x48c42a&&this['_commandService']['executeCommand'](_0x4a9cc0['id'],{'unitId':_0x307407,'revision':_0x48c42a});}));}[_0xd3747d(0x220)](_0x807a0d){const _0x217da1=_0xd3747d;let _0x72c9d5=this[_0x217da1(0x229)][_0x217da1(0x2a3)](_0x807a0d)[_0x217da1(0x28e)]()['map'](_0x996447=>_0x996447[_0x217da1(0x1fb)]()),_0x5bcc7d=new _0x210132(_0x807a0d)['id'],_0x25c279=_0x72c9d5[_0x217da1(0x209)](_0xf1500e=>new _0x1c1e44(_0x807a0d,_0xf1500e)['id']),_0x3da1b6=_0x72c9d5[_0x217da1(0x209)](_0x3b01c4=>this[_0x217da1(0x1f6)][_0x217da1(0x25a)](_0x807a0d,_0x3b01c4)['map'](_0x502801=>new _0x15136c(_0x807a0d,_0x3b01c4,_0x502801['permissionId'])['id']))[_0x217da1(0x264)](),_0x2e8a69=new _0x56ae1e(_0x807a0d)['id'];return this[_0x217da1(0x248)][_0x217da1(0x25c)]([_0x5bcc7d,..._0x25c279,..._0x3da1b6,_0x2e8a69])[_0x217da1(0x25e)](_0x1771c0=>!!_0x1771c0[_0x217da1(0x290)]);}};X=U([H(0x0,_0x506b77(_0x2fd53d)),H(0x1,_0x1bbbcc),H(0x2,_0x550417),H(0x3,_0x57aba4),H(0x4,_0x388624),H(0x5,_0x5dc172),H(0x6,_0x506b77(_0x34e08b)),H(0x7,_0x506b77(_0x4cc893)),H(0x8,_0x506b77(_0x376338)),H(0x9,_0x506b77(_0x56c0a0))],X);let Z=class extends _0x545f8f{constructor(_0xad6b19=z,_0x4b8c2b,_0x39ed14){const _0x16339b=_0xd3747d;super(),this[_0x16339b(0x276)]=_0xad6b19,this[_0x16339b(0x298)]=_0x4b8c2b,this[_0x16339b(0x29c)]=_0x39ed14;let {menu:_0x1053b4,..._0x67b106}=_0x33300f({},z,this[_0x16339b(0x276)]);_0x1053b4&&this[_0x16339b(0x29c)]['setConfig'](_0x16339b(0x26b),_0x1053b4,{'merge':!0x0}),this[_0x16339b(0x29c)][_0x16339b(0x206)](R,_0x67b106),this[_0x16339b(0x276)][_0x16339b(0x275)]&&this[_0x16339b(0x29c)][_0x16339b(0x206)](_0x16339b(0x204),this[_0x16339b(0x276)]['univerContainerId']);}[_0xd3747d(0x236)](){const _0x312513=_0xd3747d;[[G,{'useClass':X}],[J]][_0x312513(0x2ab)](_0x1abbb2=>this[_0x312513(0x298)][_0x312513(0x202)](_0x1abbb2));}['onSteady'](){const _0x25615b=_0xd3747d;this[_0x25615b(0x298)][_0x25615b(0x218)](J);}};V(Z,'type',_0x31ee75[_0xd3747d(0x270)]),V(Z,_0xd3747d(0x293),_0xd3747d(0x235)),V(Z,_0xd3747d(0x29a),st),V(Z,_0xd3747d(0x249),ct),Z=U([_0xeab6e0(_0x42940f),H(0x1,_0x506b77(_0x11bf60)),H(0x2,_0x550417)],Z);let Q=class extends _0x23822b{constructor(_0x2fce87,_0x3ce960,_0x200965,_0x328b0d,_0x28da8c,_0xb81b75,_0x1ecccb,_0x508032,_0x2678b0,_0x5967bd,_0x35c0b8){const _0x2ad92b=_0xd3747d;super(),this[_0x2ad92b(0x250)]=_0x2fce87,this[_0x2ad92b(0x295)]=_0x3ce960,this[_0x2ad92b(0x284)]=_0x200965,this[_0x2ad92b(0x25d)]=_0x328b0d,this[_0x2ad92b(0x282)]=_0x28da8c,this[_0x2ad92b(0x21b)]=_0xb81b75,this[_0x2ad92b(0x1fe)]=_0x1ecccb,this[_0x2ad92b(0x28c)]=_0x508032,this[_0x2ad92b(0x299)]=_0x2678b0,this['_univerInstanceService']=_0x5967bd,this[_0x2ad92b(0x224)]=_0x35c0b8,V(this,_0x2ad92b(0x20f),null),this[_0x2ad92b(0x1f5)]();}[_0xd3747d(0x1f5)](){const _0x312fa5=_0xd3747d;[K,q][_0x312fa5(0x2ab)](_0x5725be=>this[_0x312fa5(0x223)](_0x3e40d9(this[_0x312fa5(0x250)][_0x312fa5(0x245)](_0x5725be)))),this[_0x312fa5(0x223)](this[_0x312fa5(0x284)][_0x312fa5(0x2ae)]('HistoryIcon',_0x357cc1)),this[_0x312fa5(0x295)][_0x312fa5(0x279)](ut),this[_0x312fa5(0x223)](this[_0x312fa5(0x250)][_0x312fa5(0x253)](async(_0xfef9a9,_0x2e6d03)=>{const _0x35cfcb=_0x312fa5;if(_0xfef9a9['id']===_0x4a9cc0['id']){let {unitId:_0x599738}=_0xfef9a9[_0x35cfcb(0x252)];this['_messageService'][_0x35cfcb(0x24d)]({'content':this[_0x35cfcb(0x282)]['t']('editHistory.panel.reverting'),'type':_0x235979[_0x35cfcb(0x287)],'duration':0x1388});let _0x536ca8=this[_0x35cfcb(0x1fe)][_0x35cfcb(0x1f0)](_0x599738);_0x2e6d03!=null&&_0x2e6d03['fromCollab']?this[_0x35cfcb(0x274)](_0x536ca8,async()=>(setTimeout(()=>window[_0x35cfcb(0x244)]['reload']()),!0x0),!0x0):this[_0x35cfcb(0x274)](_0x536ca8,async()=>{const _0x3bd65b=_0x35cfcb;let _0x312b03=this[_0x3bd65b(0x229)][_0x3bd65b(0x272)](_0x31ee75['UNIVER_SHEET']),_0x87f72=_0x312b03==null?void 0x0:_0x312b03['getActiveSheet']();if(!_0x87f72)return!0x1;this['_univerInstanceService'][_0x3bd65b(0x2ac)](_0x599738);let _0x5e6000=await this[_0x3bd65b(0x299)][_0x3bd65b(0x2ad)](_0x599738,_0x31ee75['UNIVER_SHEET']);return _0x5e6000&&_0x5e6000 instanceof _0x2a7488?(await this['_setupSubUnitSync'](_0x5e6000,_0x87f72['getSheetId']()),!0x0):!0x1;});}}));}[_0xd3747d(0x274)](_0x1279eb,_0x22db95,_0x27355f=!0x1){const _0x522a5a=_0xd3747d;let _0x49dd69=_0x3fef9b([_0x1279eb[_0x522a5a(0x1f1)][_0x522a5a(0x203)],_0x1279eb[_0x522a5a(0x2a4)]])[_0x522a5a(0x237)](async([_0x40d65e,_0x1d951a])=>{const _0x51ca58=_0x522a5a;if(_0x40d65e[_0x51ca58(0x1f8)]===_0x473a70[_0x51ca58(0x27a)]&&(_0x1d951a==null?void 0x0:_0x1d951a[_0x51ca58(0x232)])===_0x1c0ec0[_0x51ca58(0x2a7)]&&_0x40d65e[_0x51ca58(0x21d)][_0x51ca58(0x266)][_0x51ca58(0x263)](_0x3e1e32=>_0x3e1e32['id']===_0x4a9cc0['id'])&&await _0x22db95()){var _0x2b1443;this[_0x51ca58(0x25d)][_0x51ca58(0x259)](),_0x49dd69['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x51ca58(0x20f)]),await((_0x2b1443=this[_0x51ca58(0x28c)])==null?void 0x0:_0x2b1443[_0x51ca58(0x256)]());}});_0x27355f&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x11b05a=_0x522a5a;_0x49dd69[_0x11b05a(0x1f3)](),this[_0x11b05a(0x21b)][_0x11b05a(0x24d)]({'content':this['_localeService']['t'](_0x11b05a(0x2a0)),'type':_0x235979['Error'],'duration':0xbb8});},0x1388));}async[_0xd3747d(0x2a6)](_0xfbf23d,_0x1a2eb2){const _0x2d1810=_0xd3747d;await this[_0x2d1810(0x247)](_0xfbf23d,_0x1a2eb2),_0xfbf23d[_0x2d1810(0x24c)][_0x2d1810(0x261)](_0x181a1c(this['dispose$']))[_0x2d1810(0x237)](_0x237358=>{_0x237358&&this['_updateURLWithCurrentState'](_0x237358);}),this[_0x2d1810(0x224)][_0x2d1810(0x262)][_0x2d1810(0x261)](_0x181a1c(this[_0x2d1810(0x231)]))[_0x2d1810(0x237)](()=>this[_0x2d1810(0x247)](_0xfbf23d,_0x1a2eb2));}[_0xd3747d(0x22b)](_0x501bfd,_0x4ad9fa=!0x1){const _0x376bef=_0xd3747d;let _0x4d553c=this['_urlService']['getParam']('subunit');_0x501bfd[_0x376bef(0x1fb)]()!==_0x4d553c&&this[_0x376bef(0x224)][_0x376bef(0x25f)]('subunit',_0x501bfd['getSheetId'](),_0x4ad9fa);}async[_0xd3747d(0x247)](_0x52f74c,_0x4cbf34){const _0x54938e=_0xd3747d;var _0x1c9828;if(!_0x4cbf34||!_0x52f74c[_0x54938e(0x257)](_0x4cbf34)){let _0x34336e=_0x52f74c[_0x54938e(0x2a9)]()[0x0],_0x494b17=_0x52f74c['getSheetBySheetId'](_0x34336e);if(!_0x494b17)return;this[_0x54938e(0x22b)](_0x494b17,!0x0),await this[_0x54938e(0x250)][_0x54938e(0x1fa)](_0x5ddf17['id'],{'unitId':_0x52f74c[_0x54938e(0x21c)](),'subUnitId':_0x34336e});return;}((_0x1c9828=_0x52f74c[_0x54938e(0x1ec)]())==null?void 0x0:_0x1c9828[_0x54938e(0x1fb)]())!==_0x4cbf34&&await this[_0x54938e(0x250)][_0x54938e(0x1fa)](_0x5ddf17['id'],{'unitId':_0x52f74c[_0x54938e(0x21c)](),'subUnitId':_0x4cbf34});}};Q=U([H(0x0,_0x57aba4),H(0x1,_0x7ea17b),H(0x2,_0x506b77(_0x579cf7)),H(0x3,_0x506b77(G)),H(0x4,_0x506b77(_0x2fd53d)),H(0x5,_0x388624),H(0x6,_0x506b77(_0x403598)),H(0x7,_0x4cecb8),H(0x8,_0x506b77(_0x297f87)),H(0x9,_0x1bbbcc),H(0xa,_0x43f444)],Q);let $=class extends _0x545f8f{constructor(_0x5ab643=z,_0x31e475,_0x2bd815){const _0x2d9a4a=_0xd3747d;super(),this[_0x2d9a4a(0x276)]=_0x5ab643,this['_injector']=_0x31e475,this[_0x2d9a4a(0x29c)]=_0x2bd815;let {menu:_0xa082c6,..._0x45529b}=_0x33300f({},z,this[_0x2d9a4a(0x276)]);_0xa082c6&&this['_configService'][_0x2d9a4a(0x206)]('menu',_0xa082c6,{'merge':!0x0}),this['_configService']['setConfig'](R,_0x45529b),this['_config'][_0x2d9a4a(0x275)]&&this[_0x2d9a4a(0x29c)][_0x2d9a4a(0x206)](ot,this[_0x2d9a4a(0x276)][_0x2d9a4a(0x275)]);}[_0xd3747d(0x236)](){const _0x2b8bd4=_0xd3747d;[[G],[Q]][_0x2b8bd4(0x2ab)](_0x1f9e66=>this[_0x2b8bd4(0x298)][_0x2b8bd4(0x202)](_0x1f9e66));}[_0xd3747d(0x211)](){const _0x2cd489=_0xd3747d;this[_0x2cd489(0x298)]['get'](Q);}};V($,_0xd3747d(0x23f),_0x31ee75[_0xd3747d(0x270)]),V($,_0xd3747d(0x293),_0xd3747d(0x215)),V($,_0xd3747d(0x29a),st),V($,_0xd3747d(0x249),ct),$=U([_0xeab6e0(_0x42940f),H(0x1,_0x506b77(_0x11bf60)),H(0x2,_0x550417)],$);export{R as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,ot as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x4c49c2=_0x49b6;(function(_0x46ebae,_0x3ea2f8){const _0x2ee78b=_0x49b6,_0x541e1b=_0x46ebae();while(!![]){try{const _0x3fcad8=parseInt(_0x2ee78b(0x22e))/0x1*(parseInt(_0x2ee78b(0x229))/0x2)+parseInt(_0x2ee78b(0x213))/0x3+parseInt(_0x2ee78b(0x1d2))/0x4*(-parseInt(_0x2ee78b(0x252))/0x5)+-parseInt(_0x2ee78b(0x1fd))/0x6*(-parseInt(_0x2ee78b(0x1a2))/0x7)+-parseInt(_0x2ee78b(0x1fc))/0x8*(-parseInt(_0x2ee78b(0x257))/0x9)+-parseInt(_0x2ee78b(0x237))/0xa*(-parseInt(_0x2ee78b(0x255))/0xb)+-parseInt(_0x2ee78b(0x218))/0xc;if(_0x3fcad8===_0x3ea2f8)break;else _0x541e1b['push'](_0x541e1b['shift']());}catch(_0x2686b2){_0x541e1b['push'](_0x541e1b['shift']());}}}(_0x2793,0x1e7c4));import{CommandType as _0x519d99,DependentOn as _0x332599,Disposable as _0x2a3e77,DisposableCollection as _0x1d9150,IAuthzIoService as _0x8140f0,ICommandService as _0x18e0ae,IConfigService as _0x2358af,IPermissionService as _0x3608c8,IUniverInstanceService as _0x3a5724,Inject as _0x2a1c21,Injector as _0x58e461,LocaleService as _0x4481e5,Plugin as _0x7d98a3,RxDisposable as _0x3f5b03,ThemeService as _0x171164,Univer as _0x9dd17b,UniverInstanceType as _0x3ba906,Workbook as _0x9fce4d,merge as _0x410477,toDisposable as _0x1e746a}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x50ad28,RangeProtectionRuleModel as _0x16ed19,SetWorksheetActivateCommand as _0x5ebce6,UniverSheetsPlugin as _0x37f383,WorkbookEditablePermission as _0x3d1217,WorkbookRecoverHistoryPermission as _0x266a14,WorkbookViewHistoryPermission as _0x268bff,WorksheetEditPermission as _0x5bed14,getSheetCommandTarget as _0x1ef74b}from'@univerjs/sheets';import{CollaborationEvent as _0x2db2ee,RevertRevisionMutation as _0x526ad7,UniverCollaborationPlugin as _0x45abad}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x168266,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x37ae5d,CollaborationController as _0x341c06,CollaborationStatus as _0x46c40d,DataLoaderService as _0x57070e,ILocalCacheService as _0x310f1b}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x41efc8,HistoryModeStatus as _0x203990,UniverEditHistoryViewerMobilePlugin as _0x502946,UniverEditHistoryViewerPlugin as _0x2cde77}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x59d6d1,UniverLicensePlugin as _0x3c1214}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0xa34c36}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xe205b7}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x418476}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x57f8cb}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x10415a}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x2f2ad7}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5a9ca5}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x199a16}from'@univerjs/data-validation';import{MessageType as _0x21300f}from'@univerjs/design';import{UniverDocsPlugin as _0x4ba5f1}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x4dc8ee}from'@univerjs/docs-ui';import{IImageIoService as _0x29d249,UniverDrawingPlugin as _0x5a5fc3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x29a515}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x179a24}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x12c6f7}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x57816a}from'@univerjs/network';import{IRemoteInstanceService as _0x2d798e,UniverRPCMainThreadPlugin as _0x5097e6}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x58f56a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x46159a}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0xaed69e}from'@univerjs/sheets-data-validation';function _0x2793(){const _0x5b1682=['iterator','reload','univer-container','_dialogService','24uPexpC','298314TjrSJx','univerContainerId','composePermission','next','triggerCustomVersions','_updateURLWithCurrentState','[MobileHistoryLoaderService]:\x20Plugin\x20','workerURL','getOwnPropertyDescriptor','width','getCurrentLocale','div','registerPlugin','getSheetBySheetId','_setupSubUnitSync','whenReady','then','left','mergeMenu','menu','data','_historyManagerService','41850QEECSB','session','_historyUniver$','loadUnit','_revertErrorTimer','2888832nALCJu','_initContainer','_componentManager','history-container','toPrimitive','revertRevision$','\x20has\x20been\x20registered.','object','packageName','getActiveSheet','defineProperty','setDarkMode','has','setParam','_urlService','params','disposeWithMe','118BHgFPS','type','getSheets','getAllPlugins','setLocale','2887wEVEqc','getLocales','position','function','values','block','getCurrentUnitOfType','version','default','865230HeBFeo','edit-history-loader.config','getElementById','getCollabEntity','_localCacheService','_menuManagerService','uComp','_collaborationController','value','univer.operation.exit-edit-history','symbol','_univerInstanceService','none','HistoryIcon','edit-history-loader.panel.listFetchError','edit-history-loader.panel.reverting','get','historyListServerUrl','100%','onCommandExecuted','Exited','disposeUnit','_internalWebWorker','set','state$','edit-history-loader.info.initializing','createElement','5EgWskN','unMountHistoryContent','permissionId','11wYwgrm','decorate','422991lZcquh','_injector','UNIVER_UNKNOWN','length','univer-history-container-mobile','_configService','_localeService','UNIVER_CONTAINER_ID','dataset','_permissionService','getParam','flat','style','some','14HxCAsp','_initUniver','getUnhiddenWorksheets','unsubscribe','_updateSubUnitFromURLParams','_selectionProtectionRuleModel','from','_themeService','closeAll','zIndex','forEach','status$','call','close','map','CHANGESET_ACK','__getInjector','OTHERS','_commandService','display','_checkCanRevert','getUnitId','pluginName','Error','OPERATION','onStarting','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','mutations','add','absolute','currentTheme$','_sidebarService','pipe','exhaustSavingTask','_messageService','event$','every','appendChild','registerCommand','height','activeSheet$','location','getConfig','getSubunitRuleList','terminate','edit-history-loader.panel.revertFailed','invoke','top','582548gJPJev','subunit','BUTTON','_pluginMap','string','urlChange$','triggerLoadVersions','_handleRevertAcknowledgement','setConfig','Loading','setTheme','_dataLoaderService','dispose','getUnit','subscribe','mountHistoryContent','fromCollab','SYNCED','_initPlugins','show','historyUniver$','darkMode$','onSteady','getSheetId','_disposableCollection','_initListener','prototype','dispose$','[HistoryLoaderService]:\x20Plugin\x20','eventID','edit-history-loader.panel.title','UNIVER_SHEET','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','_init','executeCommand','constructor','_config','historyUniver'];_0x2793=function(){return _0x5b1682;};return _0x2793();}import{UniverSheetsDataValidationMobileUIPlugin as _0x1dbe4c,UniverSheetsDataValidationUIPlugin as _0x59ea04}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x1c2b4a}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x13f44e}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x5b7a8e}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x4ab03b}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x1f838a}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x254895}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x48885b}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x542410}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x10e1ee}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0xbc7e65}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x371ee3,UniverSheetsUIPlugin as _0x4cbb0e,getCurrentRangeDisable$ as _0x451799}from'@univerjs/sheets-ui';import{ComponentManager as _0xa97fdf,IDialogService as _0x505fd8,IMenuManagerService as _0x4225d9,IMessageService as _0x1430cf,ISidebarService as _0x14ebea,MenuItemType as _0x3e94ad,RibbonStartGroup as _0x47129b,UniverMobileUIPlugin as _0x2ed289,UniverUIPlugin as _0x377f6c,getMenuHiddenObservable as _0x58fb33}from'@univerjs/ui';import{BehaviorSubject as _0x1a5106,combineLatest as _0x460070,takeUntil as _0xd7de37}from'rxjs';import{IURLService as _0x5c80e8}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0xa61b65}from'@univerjs/icons';const R='edit-history-loader.config',z={};function B(_0x2f5cc1){'@babel/helpers - typeof';const _0x25ff74=_0x49b6;return B=typeof Symbol=='function'&&typeof Symbol[_0x25ff74(0x1f8)]==_0x25ff74(0x241)?function(_0x33d456){return typeof _0x33d456;}:function(_0x113a71){const _0xb8fc5e=_0x25ff74;return _0x113a71&&typeof Symbol==_0xb8fc5e(0x231)&&_0x113a71[_0xb8fc5e(0x1f5)]===Symbol&&_0x113a71!==Symbol[_0xb8fc5e(0x1ec)]?_0xb8fc5e(0x241):typeof _0x113a71;},B(_0x2f5cc1);}function _0x49b6(_0x1e0624,_0x3c6e5f){_0x1e0624=_0x1e0624-0x19a;const _0x2793f1=_0x2793();let _0x49b6b2=_0x2793f1[_0x1e0624];return _0x49b6b2;}function it(_0x2a3ea0,_0x269c60){const _0xf0f7f2=_0x49b6;if(B(_0x2a3ea0)!='object'||!_0x2a3ea0)return _0x2a3ea0;var _0xe10ad4=_0x2a3ea0[Symbol[_0xf0f7f2(0x21c)]];if(_0xe10ad4!==void 0x0){var _0x23f85d=_0xe10ad4[_0xf0f7f2(0x1ae)](_0x2a3ea0,_0x269c60||_0xf0f7f2(0x236));if(B(_0x23f85d)!=_0xf0f7f2(0x21f))return _0x23f85d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x269c60===_0xf0f7f2(0x1d6)?String:Number)(_0x2a3ea0);}function at(_0x627d04){const _0x5d7782=_0x49b6;var _0x41657d=it(_0x627d04,_0x5d7782(0x1d6));return B(_0x41657d)==_0x5d7782(0x241)?_0x41657d:_0x41657d+'';}function V(_0x2090a2,_0x3fd652,_0x594786){const _0x2bc813=_0x49b6;return(_0x3fd652=at(_0x3fd652))in _0x2090a2?Object[_0x2bc813(0x222)](_0x2090a2,_0x3fd652,{'value':_0x594786,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2090a2[_0x3fd652]=_0x594786,_0x2090a2;}function H(_0x2fcbb8,_0x41b3f3){return function(_0xb81002,_0x1ab399){_0x41b3f3(_0xb81002,_0x1ab399,_0x2fcbb8);};}function U(_0x1a25de,_0x1e18c9,_0x5171b0,_0x575272){const _0x309294=_0x49b6;var _0x59f499=arguments[_0x309294(0x25a)],_0x2d750a=_0x59f499<0x3?_0x1e18c9:_0x575272===null?_0x575272=Object[_0x309294(0x205)](_0x1e18c9,_0x5171b0):_0x575272,_0x340036;if(typeof Reflect==_0x309294(0x21f)&&typeof Reflect[_0x309294(0x256)]=='function')_0x2d750a=Reflect[_0x309294(0x256)](_0x1a25de,_0x1e18c9,_0x5171b0,_0x575272);else{for(var _0x2db3e2=_0x1a25de[_0x309294(0x25a)]-0x1;_0x2db3e2>=0x0;_0x2db3e2--)(_0x340036=_0x1a25de[_0x2db3e2])&&(_0x2d750a=(_0x59f499<0x3?_0x340036(_0x2d750a):_0x59f499>0x3?_0x340036(_0x1e18c9,_0x5171b0,_0x2d750a):_0x340036(_0x1e18c9,_0x5171b0))||_0x2d750a);}return _0x59f499>0x3&&_0x2d750a&&Object[_0x309294(0x222)](_0x1e18c9,_0x5171b0,_0x2d750a),_0x2d750a;}const ot=_0x4c49c2(0x19b),W='univer-history-container';let G=class extends _0x2a3e77{constructor(_0x5ee429,_0x419044,_0x28d137,_0x1cc47d,_0x15004b,_0x2f3045,_0x45e21d,_0x3c210e,_0x4db0fa,_0x3e3b72){const _0x2e23ac=_0x4c49c2;super(),this[_0x2e23ac(0x19a)]=_0x5ee429,this[_0x2e23ac(0x242)]=_0x419044,this[_0x2e23ac(0x25c)]=_0x28d137,this[_0x2e23ac(0x1b4)]=_0x1cc47d,this[_0x2e23ac(0x1c4)]=_0x15004b,this[_0x2e23ac(0x19d)]=_0x2f3045,this['_selectionProtectionRuleModel']=_0x45e21d,this[_0x2e23ac(0x1fb)]=_0x3c210e,this['_sidebarService']=_0x4db0fa,this['_themeService']=_0x3e3b72,V(this,_0x2e23ac(0x215),new _0x1a5106(null)),V(this,'historyUniver$',this[_0x2e23ac(0x215)]['asObservable']()),V(this,'_disposableCollection',new _0x1d9150()),V(this,_0x2e23ac(0x1d5),new Map()),V(this,_0x2e23ac(0x24d),null),this[_0x2e23ac(0x1f3)]();}get['historyUniver'](){const _0x5d64c6=_0x4c49c2;return this[_0x5d64c6(0x215)][_0x5d64c6(0x23f)];}[_0x4c49c2(0x1f3)](){const _0x2a24f5=_0x4c49c2;this[_0x2a24f5(0x219)](),this[_0x2a24f5(0x1e4)]();}[_0x4c49c2(0x219)](){const _0x33a208=_0x4c49c2;var _0x4ed195;let _0x5981d5=(_0x4ed195=this[_0x33a208(0x25c)][_0x33a208(0x1cc)](_0x33a208(0x19b)))==null?_0x33a208(0x1fa):_0x4ed195,_0x17c604=document['getElementById'](_0x5981d5);if(!_0x17c604)return;let _0x1bc3e8=document[_0x33a208(0x251)](_0x33a208(0x208));_0x1bc3e8['id']=W,_0x1bc3e8[_0x33a208(0x19c)][_0x33a208(0x23d)]='history-container',_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x230)]=_0x33a208(0x1bf),_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x1d1)]='0',_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x20e)]='0',_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x206)]=_0x33a208(0x249),_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x1c9)]=_0x33a208(0x249),_0x1bc3e8['style'][_0x33a208(0x1ab)]='49',_0x1bc3e8['style'][_0x33a208(0x1b5)]=_0x33a208(0x243),_0x17c604[_0x33a208(0x1c7)](_0x1bc3e8);}[_0x4c49c2(0x1e4)](){const _0x4c7761=_0x4c49c2;[[_0x12c6f7],[_0x377f6c,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x505fd8,null]]}],[_0x57816a],[_0x5a5fc3,{'override':[[_0x29d249,null]]}],[_0x4ba5f1,{'hasScroll':!0x1}],[_0x4dc8ee],[_0x10e1ee],[_0x37f383,{'notExecuteFormula':!0x0}],[_0x4cbb0e],[_0x1f838a],[_0x254895],[_0x45abad],[_0x5b7a8e],[_0x4ab03b],[_0x58f56a],[_0x46159a],[_0x48885b],[_0x542410],[_0x199a16],[_0xaed69e],[_0x59ea04],[_0x179a24,{'notExecuteFormula':!0x0}],[_0x29a515],[_0x1c2b4a],[_0x13f44e],[_0x2f2ad7],[_0x5a9ca5],[_0xa34c36],[_0xe205b7],[_0x57f8cb],[_0x10415a],[_0x418476,{'notExecuteFormula':!0x0}],[_0xbc7e65]][_0x4c7761(0x1ac)](([_0xd8d916,_0x484b0a])=>this['registerPlugin'](_0xd8d916,_0x484b0a));}[_0x4c49c2(0x1de)](){const _0x21ccc1=_0x4c49c2;super[_0x21ccc1(0x1de)](),this['unMountHistoryContent'](),this['_pluginMap']['clear']();}[_0x4c49c2(0x209)](_0xa02487,_0x2314f9,_0x8e00dd){const _0x4fb33c=_0x4c49c2;if(this['_pluginMap'][_0x4fb33c(0x224)](_0xa02487[_0x4fb33c(0x1b8)])&&!_0x8e00dd)throw Error(_0x4fb33c(0x1ee)+_0xa02487['pluginName']+_0x4fb33c(0x21e));this[_0x4fb33c(0x1d5)]['set'](_0xa02487[_0x4fb33c(0x1b8)],[_0xa02487,_0x2314f9]);}[_0x4c49c2(0x22c)](){const _0x57f365=_0x4c49c2;return Array[_0x57f365(0x1a8)](this[_0x57f365(0x1d5)][_0x57f365(0x232)]());}[_0x4c49c2(0x1e1)](_0x160ed1,_0x1eef9e){const _0xdc9142=_0x4c49c2;let _0x3acbba=document[_0xdc9142(0x239)](W);_0x3acbba&&(_0x3acbba[_0xdc9142(0x1a0)]['display']=_0xdc9142(0x233),this[_0xdc9142(0x1a3)](_0x160ed1,W,_0x1eef9e));}['unMountHistoryContent'](){const _0x261226=_0x4c49c2;var _0x2ff3fb;this['_disposableCollection'][_0x261226(0x1de)](),(_0x2ff3fb=this[_0x261226(0x1f7)])==null||_0x2ff3fb[_0x261226(0x1de)](),this['_historyUniver$'][_0x261226(0x200)](null);let _0x527100=document[_0x261226(0x239)](W);_0x527100&&(_0x527100[_0x261226(0x1a0)][_0x261226(0x1b5)]=_0x261226(0x243),this['_internalWebWorker']&&(this['_internalWebWorker'][_0x261226(0x1ce)](),this[_0x261226(0x24d)]=null));}[_0x4c49c2(0x1a3)](_0x184ad5,_0x3567c7,_0x2ab818){const _0x3e09ad=_0x4c49c2;var _0x2390f5,_0x2b4c33,_0xf856d6,_0x55ff08,_0x48b90d;if(this[_0x3e09ad(0x1f7)])return;let _0x3278bd=new _0x9dd17b({'locales':{[this['_localeService'][_0x3e09ad(0x207)]()]:this[_0x3e09ad(0x19a)][_0x3e09ad(0x22f)]()},'override':[[_0x8140f0,{'useClass':_0x168266}]]}),_0x4ae24b=_0x3278bd[_0x3e09ad(0x1b2)]();this[_0x3e09ad(0x228)](this['_themeService']['darkMode$'][_0x3e09ad(0x1e0)](_0x14ef84=>{const _0x5253bd=_0x3e09ad;_0x4ae24b[_0x5253bd(0x247)](_0x171164)[_0x5253bd(0x223)](_0x14ef84);})),this[_0x3e09ad(0x228)](this[_0x3e09ad(0x1a9)]['currentTheme$'][_0x3e09ad(0x1e0)](_0x377656=>{const _0x131eda=_0x3e09ad;_0x4ae24b['get'](_0x171164)[_0x131eda(0x1dc)](_0x377656);})),_0x4ae24b[_0x3e09ad(0x247)](_0x4481e5)[_0x3e09ad(0x22d)](this[_0x3e09ad(0x19a)][_0x3e09ad(0x207)]()),_0x4ae24b[_0x3e09ad(0x247)](_0x2358af)[_0x3e09ad(0x1da)](_0x37ae5d,this['_configService'][_0x3e09ad(0x1cc)](_0x37ae5d));let _0x5ec6b3=this[_0x3e09ad(0x25c)]['getConfig'](_0x59d6d1);_0x5ec6b3&&_0x3278bd[_0x3e09ad(0x209)](_0x3c1214,{'license':_0x5ec6b3['ls']});let _0x3b8482=(_0x2390f5=this[_0x3e09ad(0x25c)][_0x3e09ad(0x1cc)](_0x3e09ad(0x238)))==null?void 0x0:_0x2390f5[_0x3e09ad(0x204)],_0x50705d=!!_0x3b8482;_0x50705d&&(this['_internalWebWorker']=_0x3b8482 instanceof Worker?_0x3b8482:null,_0x3278bd[_0x3e09ad(0x209)](_0x5097e6,{'workerURL':_0x3b8482})),this[_0x3e09ad(0x1d5)]['forEach'](([_0x54d4f6,_0x326428])=>{_0x3278bd['registerPlugin'](_0x54d4f6,_0x326428);}),_0x3278bd[_0x3e09ad(0x209)](_0x2cde77,{'historyListServerUrl':(_0x2b4c33=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x2b4c33['historyListServerUrl'],'historyPanelComponentKey':(_0xf856d6=this[_0x3e09ad(0x25c)]['getConfig'](_0x3e09ad(0x238)))==null?void 0x0:_0xf856d6['historyPanelComponentKey'],'historyPanelHidden':(_0x55ff08=this[_0x3e09ad(0x25c)]['getConfig'](_0x3e09ad(0x238)))==null?void 0x0:_0x55ff08['historyPanelHidden'],'historyAIassistantEnabled':(_0x48b90d=this['_configService'][_0x3e09ad(0x1cc)](_0x3e09ad(0x238)))==null?void 0x0:_0x48b90d['historyAIassistantEnabled']}),_0x4ae24b[_0x3e09ad(0x1d0)](_0x23d21c=>{const _0x80e09e=_0x3e09ad;this[_0x80e09e(0x1eb)](_0x23d21c,_0x184ad5);}),this[_0x3e09ad(0x215)][_0x3e09ad(0x200)](_0x3278bd);let _0x4cd1e5=_0x4ae24b['get'](_0x41efc8),_0x2e7166=this[_0x3e09ad(0x1b6)](_0x184ad5),_0xdaefb6=()=>{const _0x2ccd39=_0x3e09ad;_0x2ab818?_0x4cd1e5[_0x2ccd39(0x201)](_0x184ad5,_0x3567c7,_0x2e7166,_0x2ab818):_0x4cd1e5[_0x2ccd39(0x1d8)](_0x184ad5,_0x3567c7,_0x2e7166);};if(this[_0x3e09ad(0x1c4)][_0x3e09ad(0x1e5)]({'content':this[_0x3e09ad(0x19a)]['t'](_0x3e09ad(0x250)),'type':_0x21300f[_0x3e09ad(0x1db)]}),_0x50705d)try{_0x4ae24b[_0x3e09ad(0x247)](_0x2d798e)['whenReady']()[_0x3e09ad(0x20d)](()=>{_0xdaefb6();});}catch{_0xdaefb6();}else _0xdaefb6();}['_initListener'](_0xfa3cc4,_0x64bdc9){const _0x3ce44e=_0x4c49c2;let _0x399bc2=_0xfa3cc4[_0x3ce44e(0x247)](_0x41efc8);this['_disposableCollection'][_0x3ce44e(0x1be)](_0x399bc2[_0x3ce44e(0x1ad)]['subscribe'](_0x10b4c4=>{const _0x14f4f0=_0x3ce44e;switch(_0x10b4c4){case _0x203990['Entered']:this['_dialogService'][_0x14f4f0(0x1aa)](),this['_sidebarService'][_0x14f4f0(0x1af)]();break;case _0x203990['Exited']:this[_0x14f4f0(0x1b4)][_0x14f4f0(0x1f4)](q['id']),this['unMountHistoryContent']();break;case _0x203990[_0x14f4f0(0x1b9)]:this[_0x14f4f0(0x253)](),this['_messageService'][_0x14f4f0(0x1e5)]({'content':this['_localeService']['t'](_0x14f4f0(0x245)),'type':_0x21300f[_0x14f4f0(0x1b9)],'duration':0xbb8});break;default:break;}})),this[_0x3ce44e(0x1ea)]['add'](_0x399bc2[_0x3ce44e(0x21d)]['subscribe'](async _0x57865f=>{const _0x1a95dd=_0x3ce44e;_0x57865f&&this[_0x1a95dd(0x1b4)][_0x1a95dd(0x1f4)](_0x526ad7['id'],{'unitId':_0x64bdc9,'revision':_0x57865f});}));}['_checkCanRevert'](_0x1bfee7){const _0x8d6de6=_0x4c49c2;let _0x474e0c=this[_0x8d6de6(0x242)][_0x8d6de6(0x1df)](_0x1bfee7)[_0x8d6de6(0x22b)]()[_0x8d6de6(0x1b0)](_0x541045=>_0x541045[_0x8d6de6(0x1e9)]()),_0x3b26dc=new _0x3d1217(_0x1bfee7)['id'],_0x4f83f3=_0x474e0c[_0x8d6de6(0x1b0)](_0x26d693=>new _0x5bed14(_0x1bfee7,_0x26d693)['id']),_0x5ebd67=_0x474e0c[_0x8d6de6(0x1b0)](_0x19ecf0=>this['_selectionProtectionRuleModel'][_0x8d6de6(0x1cd)](_0x1bfee7,_0x19ecf0)['map'](_0x1ebb93=>new _0x50ad28(_0x1bfee7,_0x19ecf0,_0x1ebb93[_0x8d6de6(0x254)])['id']))[_0x8d6de6(0x19f)](),_0x3c022b=new _0x266a14(_0x1bfee7)['id'];return this[_0x8d6de6(0x19d)]['composePermission']([_0x3b26dc,..._0x4f83f3,..._0x5ebd67,_0x3c022b])[_0x8d6de6(0x1c6)](_0x19bee8=>!!_0x19bee8['value']);}};G=U([H(0x0,_0x2a1c21(_0x4481e5)),H(0x1,_0x3a5724),H(0x2,_0x2358af),H(0x3,_0x18e0ae),H(0x4,_0x1430cf),H(0x5,_0x3608c8),H(0x6,_0x2a1c21(_0x16ed19)),H(0x7,_0x2a1c21(_0x505fd8)),H(0x8,_0x2a1c21(_0x14ebea)),H(0x9,_0x2a1c21(_0x171164))],G);const K={'id':'univer.operation.toggle-edit-history','type':_0x519d99[_0x4c49c2(0x1ba)],'handler':_0x3ffed3=>{const _0x13172f=_0x4c49c2;let _0x105782=_0x3ffed3[_0x13172f(0x247)](G),{unitId:_0x3d8306}=_0x1ef74b(_0x3ffed3[_0x13172f(0x247)](_0x3a5724))||{};return _0x3d8306?(_0x105782[_0x13172f(0x1e1)](_0x3d8306),!0x0):!0x1;}},q={'id':_0x4c49c2(0x240),'type':_0x519d99['OPERATION'],'handler':()=>!0x0};var st='@univerjs-pro/edit-history-loader',ct='0.25.0';function lt(_0x73d6f5){const _0x250a8a=_0x4c49c2;return{'id':K['id'],'type':_0x3e94ad[_0x250a8a(0x1d4)],'icon':_0x250a8a(0x244),'tooltip':_0x250a8a(0x1f0),'hidden$':_0x58fb33(_0x73d6f5,_0x3ba906['UNIVER_SHEET']),'disabled$':_0x451799(_0x73d6f5,{'workbookTypes':[_0x268bff],'worksheetTypes':[],'rangeTypes':[]})};}const ut={[_0x47129b[_0x4c49c2(0x1b3)]]:{[K['id']]:{'order':0.2,'menuItemFactory':lt}}};let J=class extends _0x3f5b03{constructor(_0x49615f,_0x40f502,_0x5714d3,_0x39ca6f,_0x409964,_0x1d18ea,_0x822eac,_0x24969a,_0x503d80,_0x264e73,_0x36c999){const _0x156899=_0x4c49c2;super(),this[_0x156899(0x1b4)]=_0x49615f,this['_menuManagerService']=_0x40f502,this['_componentManager']=_0x5714d3,this[_0x156899(0x212)]=_0x39ca6f,this[_0x156899(0x19a)]=_0x409964,this['_messageService']=_0x1d18ea,this['_collaborationController']=_0x822eac,this[_0x156899(0x23b)]=_0x24969a,this[_0x156899(0x1dd)]=_0x503d80,this[_0x156899(0x242)]=_0x264e73,this['_urlService']=_0x36c999,V(this,'_revertErrorTimer',null),this[_0x156899(0x1f3)]();}[_0x4c49c2(0x1f3)](){const _0x1ff700=_0x4c49c2;[K,q][_0x1ff700(0x1ac)](_0x38fcf8=>this[_0x1ff700(0x228)](_0x1e746a(this[_0x1ff700(0x1b4)][_0x1ff700(0x1c8)](_0x38fcf8)))),this[_0x1ff700(0x228)](this[_0x1ff700(0x21a)]['register'](_0x1ff700(0x244),_0xa61b65)),this['_menuManagerService'][_0x1ff700(0x20f)](ut),this[_0x1ff700(0x228)](this['_commandService'][_0x1ff700(0x24a)](async(_0x3e09af,_0x346f22)=>{const _0x403251=_0x1ff700;if(_0x3e09af['id']===_0x526ad7['id']){let {unitId:_0x55b3be}=_0x3e09af['params'];this[_0x403251(0x1c4)][_0x403251(0x1e5)]({'content':this['_localeService']['t'](_0x403251(0x246)),'type':_0x21300f[_0x403251(0x1db)],'duration':0x1388});let _0xd471e4=this['_collaborationController'][_0x403251(0x23a)](_0x55b3be);_0x346f22!=null&&_0x346f22[_0x403251(0x1e2)]?this['_handleRevertAcknowledgement'](_0xd471e4,async()=>(setTimeout(()=>window[_0x403251(0x1cb)][_0x403251(0x1f9)]()),!0x0),!0x0):this[_0x403251(0x1d9)](_0xd471e4,async()=>{const _0x500029=_0x403251;let _0x207631=this['_univerInstanceService']['getCurrentUnitOfType'](_0x3ba906[_0x500029(0x1f1)]),_0x584d99=_0x207631==null?void 0x0:_0x207631[_0x500029(0x221)]();if(!_0x584d99)return!0x1;this[_0x500029(0x242)][_0x500029(0x24c)](_0x55b3be);let _0x50183f=await this[_0x500029(0x1dd)][_0x500029(0x216)](_0x55b3be,_0x3ba906[_0x500029(0x1f1)]);return _0x50183f&&_0x50183f instanceof _0x9fce4d?(await this['_setupSubUnitSync'](_0x50183f,_0x584d99[_0x500029(0x1e9)]()),!0x0):!0x1;});}}));}[_0x4c49c2(0x1d9)](_0x3351a9,_0x271acd,_0x25fac7=!0x1){const _0x20b5bc=_0x4c49c2;let _0x20a726=_0x460070([_0x3351a9[_0x20b5bc(0x214)][_0x20b5bc(0x1c5)],_0x3351a9['state$']])[_0x20b5bc(0x1e0)](async([_0x42331a,_0x106ced])=>{const _0x40261d=_0x20b5bc;if(_0x42331a[_0x40261d(0x1ef)]===_0x2db2ee[_0x40261d(0x1b1)]&&(_0x106ced==null?void 0x0:_0x106ced['status'])===_0x46c40d[_0x40261d(0x1e3)]&&_0x42331a[_0x40261d(0x211)]['mutations']['some'](_0x25646a=>_0x25646a['id']===_0x526ad7['id'])&&await _0x271acd()){var _0x4c4c30;this['_historyManagerService']['unMountHistoryContent'](),_0x20a726[_0x40261d(0x1a5)](),this[_0x40261d(0x217)]&&clearTimeout(this[_0x40261d(0x217)]),await((_0x4c4c30=this['_localCacheService'])==null?void 0x0:_0x4c4c30[_0x40261d(0x1c3)]()),this[_0x40261d(0x1c4)]['removeAll']();}});_0x25fac7&&(this[_0x20b5bc(0x217)]=setTimeout(()=>{const _0x5a21e1=_0x20b5bc;_0x20a726['unsubscribe'](),this[_0x5a21e1(0x1c4)][_0x5a21e1(0x1e5)]({'content':this[_0x5a21e1(0x19a)]['t'](_0x5a21e1(0x1cf)),'type':_0x21300f['Error'],'duration':0xbb8});},0x1388));}async[_0x4c49c2(0x20b)](_0x45b87d,_0x25a0da){const _0x412537=_0x4c49c2;await this[_0x412537(0x1a6)](_0x45b87d,_0x25a0da),_0x45b87d[_0x412537(0x1ca)][_0x412537(0x1c2)](_0xd7de37(this[_0x412537(0x1ed)]))[_0x412537(0x1e0)](_0x236b1d=>{const _0x5cce41=_0x412537;_0x236b1d&&this[_0x5cce41(0x202)](_0x236b1d);}),this[_0x412537(0x226)][_0x412537(0x1d7)][_0x412537(0x1c2)](_0xd7de37(this[_0x412537(0x1ed)]))[_0x412537(0x1e0)](()=>this[_0x412537(0x1a6)](_0x45b87d,_0x25a0da));}[_0x4c49c2(0x202)](_0xafd180,_0x9ebb85=!0x1){const _0x799489=_0x4c49c2;let _0x459cf2=this['_urlService']['getParam'](_0x799489(0x1d3));_0xafd180[_0x799489(0x1e9)]()!==_0x459cf2&&this[_0x799489(0x226)][_0x799489(0x225)](_0x799489(0x1d3),_0xafd180[_0x799489(0x1e9)](),_0x9ebb85);}async[_0x4c49c2(0x1a6)](_0x39e47b,_0x4b8b9c){const _0x27a768=_0x4c49c2;var _0x5a6c48;if(!_0x4b8b9c||!_0x39e47b[_0x27a768(0x20a)](_0x4b8b9c)){let _0x43b9e3=_0x39e47b[_0x27a768(0x1a4)]()[0x0],_0x4baee4=_0x39e47b['getSheetBySheetId'](_0x43b9e3);if(!_0x4baee4)return;this[_0x27a768(0x202)](_0x4baee4,!0x0),await this[_0x27a768(0x1b4)][_0x27a768(0x1f4)](_0x5ebce6['id'],{'unitId':_0x39e47b[_0x27a768(0x1b7)](),'subUnitId':_0x43b9e3});return;}((_0x5a6c48=_0x39e47b['getActiveSheet']())==null?void 0x0:_0x5a6c48[_0x27a768(0x1e9)]())!==_0x4b8b9c&&await this[_0x27a768(0x1b4)][_0x27a768(0x1f4)](_0x5ebce6['id'],{'unitId':_0x39e47b[_0x27a768(0x1b7)](),'subUnitId':_0x4b8b9c});}};J=U([H(0x0,_0x18e0ae),H(0x1,_0x4225d9),H(0x2,_0x2a1c21(_0xa97fdf)),H(0x3,_0x2a1c21(G)),H(0x4,_0x2a1c21(_0x4481e5)),H(0x5,_0x1430cf),H(0x6,_0x2a1c21(_0x341c06)),H(0x7,_0x310f1b),H(0x8,_0x2a1c21(_0x57070e)),H(0x9,_0x3a5724),H(0xa,_0x5c80e8)],J);const Y=_0x4c49c2(0x25b);let X=class extends _0x2a3e77{constructor(_0x98d25e,_0x410c0a,_0x492cf7,_0x4fea45,_0xaedafd,_0x417265,_0x3d9ba9,_0x35e508,_0x10642b,_0x167ee9){const _0xf7e2b=_0x4c49c2;super(),this['_localeService']=_0x98d25e,this['_univerInstanceService']=_0x410c0a,this[_0xf7e2b(0x25c)]=_0x492cf7,this['_commandService']=_0x4fea45,this[_0xf7e2b(0x1c4)]=_0xaedafd,this[_0xf7e2b(0x19d)]=_0x417265,this[_0xf7e2b(0x1a7)]=_0x3d9ba9,this[_0xf7e2b(0x1fb)]=_0x35e508,this[_0xf7e2b(0x1c1)]=_0x10642b,this[_0xf7e2b(0x1a9)]=_0x167ee9,V(this,_0xf7e2b(0x215),new _0x1a5106(null)),V(this,_0xf7e2b(0x1e6),this[_0xf7e2b(0x215)]['asObservable']()),V(this,'_disposableCollection',new _0x1d9150()),V(this,_0xf7e2b(0x1d5),new Map()),V(this,_0xf7e2b(0x24d),null),this['_init']();}get[_0x4c49c2(0x1f7)](){return this['_historyUniver$']['value'];}[_0x4c49c2(0x1f3)](){this['_initContainer'](),this['_initPlugins']();}[_0x4c49c2(0x219)](){const _0x2f91ab=_0x4c49c2;var _0x179486;let _0x17dc71=(_0x179486=this[_0x2f91ab(0x25c)]['getConfig'](_0x2f91ab(0x19b)))==null?_0x2f91ab(0x1fa):_0x179486,_0x26c9cf=document[_0x2f91ab(0x239)](_0x17dc71);if(!_0x26c9cf)return;let _0x5a4c63=document[_0x2f91ab(0x251)](_0x2f91ab(0x208));_0x5a4c63['id']=Y,_0x5a4c63[_0x2f91ab(0x19c)][_0x2f91ab(0x23d)]=_0x2f91ab(0x21b),_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x230)]=_0x2f91ab(0x1bf),_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x1d1)]='0',_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x20e)]='0',_0x5a4c63['style'][_0x2f91ab(0x206)]=_0x2f91ab(0x249),_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x1c9)]='100%',_0x5a4c63['style']['zIndex']='49',_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x1b5)]=_0x2f91ab(0x243),_0x26c9cf[_0x2f91ab(0x1c7)](_0x5a4c63);}['_initPlugins'](){[[_0x12c6f7],[_0x2ed289,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x505fd8,null]]}],[_0x57816a],[_0x5a5fc3,{'override':[[_0x29d249,null]]}],[_0x4ba5f1,{'hasScroll':!0x1}],[_0x4dc8ee],[_0x10e1ee],[_0x37f383,{'notExecuteFormula':!0x0}],[_0x371ee3],[_0x1f838a],[_0x254895],[_0x45abad],[_0x5b7a8e],[_0x58f56a],[_0x48885b],[_0x542410],[_0x199a16],[_0xaed69e],[_0x1dbe4c],[_0x179a24,{'notExecuteFormula':!0x0}],[_0x29a515],[_0x1c2b4a],[_0x13f44e],[_0x2f2ad7],[_0x5a9ca5],[_0xa34c36],[_0xe205b7],[_0x57f8cb],[_0x10415a],[_0x418476,{'notExecuteFormula':!0x0}],[_0xbc7e65]]['forEach'](([_0x43ffeb,_0xc18711])=>this['registerPlugin'](_0x43ffeb,_0xc18711));}[_0x4c49c2(0x1de)](){const _0x472bf3=_0x4c49c2;super[_0x472bf3(0x1de)](),this[_0x472bf3(0x253)](),this['_pluginMap']['clear']();}[_0x4c49c2(0x209)](_0x5bf76e,_0x3f2288,_0x2509a0){const _0x532a05=_0x4c49c2;if(this['_pluginMap'][_0x532a05(0x224)](_0x5bf76e[_0x532a05(0x1b8)])&&!_0x2509a0)throw Error(_0x532a05(0x203)+_0x5bf76e[_0x532a05(0x1b8)]+_0x532a05(0x21e));this[_0x532a05(0x1d5)][_0x532a05(0x24e)](_0x5bf76e['pluginName'],[_0x5bf76e,_0x3f2288]);}[_0x4c49c2(0x22c)](){const _0x271706=_0x4c49c2;return Array[_0x271706(0x1a8)](this[_0x271706(0x1d5)][_0x271706(0x232)]());}[_0x4c49c2(0x1e1)](_0x1aa6fa,_0x3a18b8){const _0x53f014=_0x4c49c2;let _0x120abb=document['getElementById'](Y);_0x120abb&&(_0x120abb[_0x53f014(0x1a0)][_0x53f014(0x1b5)]='block',this[_0x53f014(0x1a3)](_0x1aa6fa,Y,_0x3a18b8));}[_0x4c49c2(0x253)](){const _0x10e4f5=_0x4c49c2;var _0x2f44cd;this['_disposableCollection'][_0x10e4f5(0x1de)](),(_0x2f44cd=this[_0x10e4f5(0x1f7)])==null||_0x2f44cd[_0x10e4f5(0x1de)](),this[_0x10e4f5(0x215)][_0x10e4f5(0x200)](null);let _0x27db5a=document[_0x10e4f5(0x239)](Y);_0x27db5a&&(_0x27db5a[_0x10e4f5(0x1a0)][_0x10e4f5(0x1b5)]=_0x10e4f5(0x243),this[_0x10e4f5(0x24d)]&&(this[_0x10e4f5(0x24d)][_0x10e4f5(0x1ce)](),this[_0x10e4f5(0x24d)]=null));}[_0x4c49c2(0x1a3)](_0x447276,_0x3b4662,_0x47d420){const _0xdff85b=_0x4c49c2;var _0x29d8ad,_0x5bcc32,_0x7ed82e,_0x57d033;if(this['historyUniver'])return;let _0x291554=new _0x9dd17b({'locales':{[this[_0xdff85b(0x19a)]['getCurrentLocale']()]:this['_localeService'][_0xdff85b(0x22f)]()},'override':[[_0x8140f0,{'useClass':_0x168266}]]}),_0x5602d2=_0x291554['__getInjector']();this[_0xdff85b(0x228)](this['_themeService'][_0xdff85b(0x1e7)][_0xdff85b(0x1e0)](_0x1d4c36=>{const _0x397c4d=_0xdff85b;_0x5602d2[_0x397c4d(0x247)](_0x171164)[_0x397c4d(0x223)](_0x1d4c36);})),this['disposeWithMe'](this[_0xdff85b(0x1a9)][_0xdff85b(0x1c0)]['subscribe'](_0x22f2a8=>{const _0x41291c=_0xdff85b;_0x5602d2[_0x41291c(0x247)](_0x171164)[_0x41291c(0x1dc)](_0x22f2a8);})),_0x5602d2[_0xdff85b(0x247)](_0x4481e5)['setLocale'](this[_0xdff85b(0x19a)][_0xdff85b(0x207)]()),_0x5602d2[_0xdff85b(0x247)](_0x2358af)[_0xdff85b(0x1da)](_0x37ae5d,this[_0xdff85b(0x25c)][_0xdff85b(0x1cc)](_0x37ae5d));let _0x30ddad=this[_0xdff85b(0x25c)]['getConfig'](_0x59d6d1);_0x30ddad&&_0x291554[_0xdff85b(0x209)](_0x3c1214,{'license':_0x30ddad['ls']});let _0x224699=(_0x29d8ad=this['_configService'][_0xdff85b(0x1cc)]('edit-history-loader.config'))==null?void 0x0:_0x29d8ad[_0xdff85b(0x204)],_0x29ed5f=!!_0x224699;_0x29ed5f&&(this[_0xdff85b(0x24d)]=_0x224699 instanceof Worker?_0x224699:null,_0x291554[_0xdff85b(0x209)](_0x5097e6,{'workerURL':_0x224699})),this[_0xdff85b(0x1d5)][_0xdff85b(0x1ac)](([_0x2beac4,_0x8c6001])=>{_0x291554['registerPlugin'](_0x2beac4,_0x8c6001);}),_0x291554[_0xdff85b(0x209)](_0x502946,{'historyListServerUrl':(_0x5bcc32=this[_0xdff85b(0x25c)][_0xdff85b(0x1cc)](_0xdff85b(0x238)))==null?void 0x0:_0x5bcc32[_0xdff85b(0x248)],'historyPanelComponentKey':(_0x7ed82e=this[_0xdff85b(0x25c)][_0xdff85b(0x1cc)]('edit-history-loader.config'))==null?void 0x0:_0x7ed82e['historyPanelComponentKey'],'historyPanelHidden':(_0x57d033=this[_0xdff85b(0x25c)][_0xdff85b(0x1cc)](_0xdff85b(0x238)))==null?void 0x0:_0x57d033['historyPanelHidden']}),_0x5602d2[_0xdff85b(0x1d0)](_0x3f98f5=>{const _0x25393f=_0xdff85b;this[_0x25393f(0x1eb)](_0x3f98f5,_0x447276);}),this[_0xdff85b(0x215)][_0xdff85b(0x200)](_0x291554);let _0x476abc=_0x5602d2[_0xdff85b(0x247)](_0x41efc8),_0x58984b=this['_checkCanRevert'](_0x447276),_0x18f1f9=()=>{const _0x5c2139=_0xdff85b;_0x47d420?_0x476abc[_0x5c2139(0x201)](_0x447276,_0x3b4662,_0x58984b,_0x47d420):_0x476abc['triggerLoadVersions'](_0x447276,_0x3b4662,_0x58984b);};if(this[_0xdff85b(0x1c4)][_0xdff85b(0x1e5)]({'content':this[_0xdff85b(0x19a)]['t'](_0xdff85b(0x250)),'type':_0x21300f[_0xdff85b(0x1db)]}),_0x29ed5f)try{_0x5602d2[_0xdff85b(0x247)](_0x2d798e)[_0xdff85b(0x20c)]()[_0xdff85b(0x20d)](()=>{_0x18f1f9();});}catch{_0x18f1f9();}else _0x18f1f9();}['_initListener'](_0x23af2c,_0x5b6d5f){const _0x4efcef=_0x4c49c2;let _0x5434ba=_0x23af2c['get'](_0x41efc8);this[_0x4efcef(0x1ea)][_0x4efcef(0x1be)](_0x5434ba['status$'][_0x4efcef(0x1e0)](_0x17951d=>{const _0x5cd90e=_0x4efcef;switch(_0x17951d){case _0x203990['Entered']:this[_0x5cd90e(0x1fb)][_0x5cd90e(0x1aa)](),this['_sidebarService']['close']();break;case _0x203990[_0x5cd90e(0x24b)]:this[_0x5cd90e(0x1b4)][_0x5cd90e(0x1f4)](q['id']),this['unMountHistoryContent']();break;case _0x203990[_0x5cd90e(0x1b9)]:this[_0x5cd90e(0x253)](),this[_0x5cd90e(0x1c4)][_0x5cd90e(0x1e5)]({'content':this[_0x5cd90e(0x19a)]['t'](_0x5cd90e(0x245)),'type':_0x21300f[_0x5cd90e(0x1b9)],'duration':0xbb8});break;default:break;}})),this[_0x4efcef(0x1ea)]['add'](_0x5434ba[_0x4efcef(0x21d)]['subscribe'](async _0x1c750a=>{const _0x413ce5=_0x4efcef;_0x1c750a&&this[_0x413ce5(0x1b4)][_0x413ce5(0x1f4)](_0x526ad7['id'],{'unitId':_0x5b6d5f,'revision':_0x1c750a});}));}[_0x4c49c2(0x1b6)](_0x244da0){const _0x42f89a=_0x4c49c2;let _0x5c73f5=this[_0x42f89a(0x242)][_0x42f89a(0x1df)](_0x244da0)[_0x42f89a(0x22b)]()['map'](_0x20517f=>_0x20517f['getSheetId']()),_0x58c984=new _0x3d1217(_0x244da0)['id'],_0x2e1a75=_0x5c73f5[_0x42f89a(0x1b0)](_0x41594d=>new _0x5bed14(_0x244da0,_0x41594d)['id']),_0x35ff21=_0x5c73f5[_0x42f89a(0x1b0)](_0xad863b=>this['_selectionProtectionRuleModel'][_0x42f89a(0x1cd)](_0x244da0,_0xad863b)[_0x42f89a(0x1b0)](_0x2c475b=>new _0x50ad28(_0x244da0,_0xad863b,_0x2c475b[_0x42f89a(0x254)])['id']))[_0x42f89a(0x19f)](),_0x3aaa17=new _0x266a14(_0x244da0)['id'];return this['_permissionService'][_0x42f89a(0x1ff)]([_0x58c984,..._0x2e1a75,..._0x35ff21,_0x3aaa17])['every'](_0x4e0a3f=>!!_0x4e0a3f[_0x42f89a(0x23f)]);}};X=U([H(0x0,_0x2a1c21(_0x4481e5)),H(0x1,_0x3a5724),H(0x2,_0x2358af),H(0x3,_0x18e0ae),H(0x4,_0x1430cf),H(0x5,_0x3608c8),H(0x6,_0x2a1c21(_0x16ed19)),H(0x7,_0x2a1c21(_0x505fd8)),H(0x8,_0x2a1c21(_0x14ebea)),H(0x9,_0x2a1c21(_0x171164))],X);let Z=class extends _0x7d98a3{constructor(_0x4cf79b=z,_0x2257ec,_0x158596){const _0xcfb212=_0x4c49c2;super(),this[_0xcfb212(0x1f6)]=_0x4cf79b,this[_0xcfb212(0x258)]=_0x2257ec,this['_configService']=_0x158596;let {menu:_0x3a1d36,..._0x5b7403}=_0x410477({},z,this['_config']);_0x3a1d36&&this[_0xcfb212(0x25c)][_0xcfb212(0x1da)](_0xcfb212(0x210),_0x3a1d36,{'merge':!0x0}),this[_0xcfb212(0x25c)][_0xcfb212(0x1da)](R,_0x5b7403),this[_0xcfb212(0x1f6)][_0xcfb212(0x1fe)]&&this[_0xcfb212(0x25c)][_0xcfb212(0x1da)]('UNIVER_CONTAINER_ID',this[_0xcfb212(0x1f6)]['univerContainerId']);}[_0x4c49c2(0x1bb)](){const _0xe16bc0=_0x4c49c2;[[G,{'useClass':X}],[J]][_0xe16bc0(0x1ac)](_0x2bbef5=>this[_0xe16bc0(0x258)][_0xe16bc0(0x1be)](_0x2bbef5));}[_0x4c49c2(0x1e8)](){const _0x1bc02d=_0x4c49c2;this[_0x1bc02d(0x258)][_0x1bc02d(0x247)](J);}};V(Z,_0x4c49c2(0x22a),_0x3ba906[_0x4c49c2(0x259)]),V(Z,_0x4c49c2(0x1b8),_0x4c49c2(0x1f2)),V(Z,_0x4c49c2(0x220),st),V(Z,_0x4c49c2(0x235),ct),Z=U([_0x332599(_0x3c1214),H(0x1,_0x2a1c21(_0x58e461)),H(0x2,_0x2358af)],Z);let Q=class extends _0x3f5b03{constructor(_0x4ce866,_0x3a912a,_0x3cc854,_0x199aa4,_0x5f5891,_0x4bbb35,_0x13a74c,_0x4ab601,_0x324109,_0x2ae798,_0x307a6d){const _0x51bd52=_0x4c49c2;super(),this[_0x51bd52(0x1b4)]=_0x4ce866,this['_menuManagerService']=_0x3a912a,this[_0x51bd52(0x21a)]=_0x3cc854,this[_0x51bd52(0x212)]=_0x199aa4,this[_0x51bd52(0x19a)]=_0x5f5891,this['_messageService']=_0x4bbb35,this[_0x51bd52(0x23e)]=_0x13a74c,this[_0x51bd52(0x23b)]=_0x4ab601,this[_0x51bd52(0x1dd)]=_0x324109,this[_0x51bd52(0x242)]=_0x2ae798,this[_0x51bd52(0x226)]=_0x307a6d,V(this,_0x51bd52(0x217),null),this[_0x51bd52(0x1f3)]();}['_init'](){const _0xd1af2a=_0x4c49c2;[K,q][_0xd1af2a(0x1ac)](_0x4ccc13=>this[_0xd1af2a(0x228)](_0x1e746a(this['_commandService'][_0xd1af2a(0x1c8)](_0x4ccc13)))),this[_0xd1af2a(0x228)](this[_0xd1af2a(0x21a)]['register']('HistoryIcon',_0xa61b65)),this[_0xd1af2a(0x23c)][_0xd1af2a(0x20f)](ut),this[_0xd1af2a(0x228)](this[_0xd1af2a(0x1b4)]['onCommandExecuted'](async(_0x3bffe1,_0x2eaf9d)=>{const _0xa8b8e6=_0xd1af2a;if(_0x3bffe1['id']===_0x526ad7['id']){let {unitId:_0x426001}=_0x3bffe1[_0xa8b8e6(0x227)];this[_0xa8b8e6(0x1c4)][_0xa8b8e6(0x1e5)]({'content':this['_localeService']['t']('edit-history-loader.panel.reverting'),'type':_0x21300f[_0xa8b8e6(0x1db)],'duration':0x1388});let _0x5205fc=this[_0xa8b8e6(0x23e)][_0xa8b8e6(0x23a)](_0x426001);_0x2eaf9d!=null&&_0x2eaf9d[_0xa8b8e6(0x1e2)]?this[_0xa8b8e6(0x1d9)](_0x5205fc,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x5205fc,async()=>{const _0x2db1db=_0xa8b8e6;let _0x27a6aa=this[_0x2db1db(0x242)][_0x2db1db(0x234)](_0x3ba906[_0x2db1db(0x1f1)]),_0x27fc4a=_0x27a6aa==null?void 0x0:_0x27a6aa[_0x2db1db(0x221)]();if(!_0x27fc4a)return!0x1;this[_0x2db1db(0x242)][_0x2db1db(0x24c)](_0x426001);let _0x3d44ff=await this['_dataLoaderService'][_0x2db1db(0x216)](_0x426001,_0x3ba906['UNIVER_SHEET']);return _0x3d44ff&&_0x3d44ff instanceof _0x9fce4d?(await this[_0x2db1db(0x20b)](_0x3d44ff,_0x27fc4a[_0x2db1db(0x1e9)]()),!0x0):!0x1;});}}));}[_0x4c49c2(0x1d9)](_0x3b515b,_0x140951,_0x5b3858=!0x1){const _0x2c983a=_0x4c49c2;let _0x57685b=_0x460070([_0x3b515b[_0x2c983a(0x214)][_0x2c983a(0x1c5)],_0x3b515b[_0x2c983a(0x24f)]])[_0x2c983a(0x1e0)](async([_0x2278d7,_0x1fbfbf])=>{const _0x3ba523=_0x2c983a;if(_0x2278d7[_0x3ba523(0x1ef)]===_0x2db2ee[_0x3ba523(0x1b1)]&&(_0x1fbfbf==null?void 0x0:_0x1fbfbf['status'])===_0x46c40d[_0x3ba523(0x1e3)]&&_0x2278d7['data'][_0x3ba523(0x1bd)][_0x3ba523(0x1a1)](_0x57b5ec=>_0x57b5ec['id']===_0x526ad7['id'])&&await _0x140951()){var _0x3edb7b;this[_0x3ba523(0x212)][_0x3ba523(0x253)](),_0x57685b[_0x3ba523(0x1a5)](),this[_0x3ba523(0x217)]&&clearTimeout(this['_revertErrorTimer']),await((_0x3edb7b=this['_localCacheService'])==null?void 0x0:_0x3edb7b[_0x3ba523(0x1c3)]());}});_0x5b3858&&(this[_0x2c983a(0x217)]=setTimeout(()=>{const _0x183f37=_0x2c983a;_0x57685b[_0x183f37(0x1a5)](),this[_0x183f37(0x1c4)]['show']({'content':this[_0x183f37(0x19a)]['t'](_0x183f37(0x1cf)),'type':_0x21300f[_0x183f37(0x1b9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x595215,_0x403afc){const _0x1f421b=_0x4c49c2;await this['_updateSubUnitFromURLParams'](_0x595215,_0x403afc),_0x595215[_0x1f421b(0x1ca)][_0x1f421b(0x1c2)](_0xd7de37(this[_0x1f421b(0x1ed)]))['subscribe'](_0x9edba=>{const _0x24acbe=_0x1f421b;_0x9edba&&this[_0x24acbe(0x202)](_0x9edba);}),this[_0x1f421b(0x226)][_0x1f421b(0x1d7)][_0x1f421b(0x1c2)](_0xd7de37(this[_0x1f421b(0x1ed)]))[_0x1f421b(0x1e0)](()=>this['_updateSubUnitFromURLParams'](_0x595215,_0x403afc));}[_0x4c49c2(0x202)](_0xa8c845,_0xdee2ad=!0x1){const _0x5a0c58=_0x4c49c2;let _0x5f2533=this['_urlService'][_0x5a0c58(0x19e)](_0x5a0c58(0x1d3));_0xa8c845[_0x5a0c58(0x1e9)]()!==_0x5f2533&&this['_urlService'][_0x5a0c58(0x225)](_0x5a0c58(0x1d3),_0xa8c845['getSheetId'](),_0xdee2ad);}async[_0x4c49c2(0x1a6)](_0x4f1102,_0x454790){const _0x3e2541=_0x4c49c2;var _0x1eadea;if(!_0x454790||!_0x4f1102['getSheetBySheetId'](_0x454790)){let _0x111383=_0x4f1102['getUnhiddenWorksheets']()[0x0],_0xfc355f=_0x4f1102['getSheetBySheetId'](_0x111383);if(!_0xfc355f)return;this[_0x3e2541(0x202)](_0xfc355f,!0x0),await this['_commandService'][_0x3e2541(0x1f4)](_0x5ebce6['id'],{'unitId':_0x4f1102[_0x3e2541(0x1b7)](),'subUnitId':_0x111383});return;}((_0x1eadea=_0x4f1102[_0x3e2541(0x221)]())==null?void 0x0:_0x1eadea['getSheetId']())!==_0x454790&&await this[_0x3e2541(0x1b4)][_0x3e2541(0x1f4)](_0x5ebce6['id'],{'unitId':_0x4f1102[_0x3e2541(0x1b7)](),'subUnitId':_0x454790});}};Q=U([H(0x0,_0x18e0ae),H(0x1,_0x4225d9),H(0x2,_0x2a1c21(_0xa97fdf)),H(0x3,_0x2a1c21(G)),H(0x4,_0x2a1c21(_0x4481e5)),H(0x5,_0x1430cf),H(0x6,_0x2a1c21(_0x341c06)),H(0x7,_0x310f1b),H(0x8,_0x2a1c21(_0x57070e)),H(0x9,_0x3a5724),H(0xa,_0x5c80e8)],Q);let $=class extends _0x7d98a3{constructor(_0x2fca72=z,_0xe651f5,_0x580fa1){const _0x5aba4d=_0x4c49c2;super(),this[_0x5aba4d(0x1f6)]=_0x2fca72,this[_0x5aba4d(0x258)]=_0xe651f5,this[_0x5aba4d(0x25c)]=_0x580fa1;let {menu:_0x188a03,..._0x27c7bc}=_0x410477({},z,this[_0x5aba4d(0x1f6)]);_0x188a03&&this[_0x5aba4d(0x25c)]['setConfig']('menu',_0x188a03,{'merge':!0x0}),this[_0x5aba4d(0x25c)]['setConfig'](R,_0x27c7bc),this[_0x5aba4d(0x1f6)][_0x5aba4d(0x1fe)]&&this[_0x5aba4d(0x25c)][_0x5aba4d(0x1da)](ot,this['_config'][_0x5aba4d(0x1fe)]);}[_0x4c49c2(0x1bb)](){const _0x50391c=_0x4c49c2;[[G],[Q]]['forEach'](_0x47d051=>this[_0x50391c(0x258)][_0x50391c(0x1be)](_0x47d051));}['onSteady'](){const _0x193954=_0x4c49c2;this[_0x193954(0x258)][_0x193954(0x247)](Q);}};V($,_0x4c49c2(0x22a),_0x3ba906[_0x4c49c2(0x259)]),V($,_0x4c49c2(0x1b8),_0x4c49c2(0x1bc)),V($,_0x4c49c2(0x220),st),V($,_0x4c49c2(0x235),ct),$=U([_0x332599(_0x3c1214),H(0x1,_0x2a1c21(_0x58e461)),H(0x2,_0x2358af)],$);export{R as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,ot as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x4fff41=_0x11b8;function _0x11b8(_0x20c7ea,_0x25dcf3){_0x20c7ea=_0x20c7ea-0x19c;const _0x4a625a=_0x4a62();let _0x11b89a=_0x4a625a[_0x20c7ea];return _0x11b89a;}(function(_0x32f0b3,_0x5538f4){const _0x550f9c=_0x11b8,_0x88b4b6=_0x32f0b3();while(!![]){try{const _0x17bea4=-parseInt(_0x550f9c(0x1a4))/0x1+parseInt(_0x550f9c(0x19c))/0x2*(-parseInt(_0x550f9c(0x19f))/0x3)+-parseInt(_0x550f9c(0x1a2))/0x4+-parseInt(_0x550f9c(0x1a3))/0x5+parseInt(_0x550f9c(0x1a1))/0x6+parseInt(_0x550f9c(0x1a0))/0x7+parseInt(_0x550f9c(0x19e))/0x8;if(_0x17bea4===_0x5538f4)break;else _0x88b4b6['push'](_0x88b4b6['shift']());}catch(_0x33769d){_0x88b4b6['push'](_0x88b4b6['shift']());}}}(_0x4a62,0x4c815));const e={'edit-history-loader':{'panel':{'title':'سجل\x20التحرير','reverting':'جارٍ\x20الاستعادة،\x20يرجى\x20الانتظار...','revertFailed':'خطأ\x20غير\x20معروف،\x20يرجى\x20تحديث\x20الصفحة\x20لعرض\x20نتيجة\x20الاستعادة','listFetchError':_0x4fff41(0x19d)},'info':{'initializing':'جارٍ\x20التهيئة،\x20يرجى\x20الانتظار...'}}};export{e as default};function _0x4a62(){const _0x2a5967=['179408jQAGbW','6EloDlZ','فشل\x20في\x20الحصول\x20على\x20قائمة\x20سجل\x20التحرير','6024800UBVJAL','559893BZioNe','3664458rtbXSY','2558868IYkPUI','194000FwRvCj','3009530WinoBS'];_0x4a62=function(){return _0x2a5967;};return _0x4a62();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x50aa(){const _0x2fe5cd=['4501329DdeCkk','516651SGgXGB','12EvvnEY','7744116OOdTDW','3374465ZUBBad','608852wLnHve','No\x20s\x27ha\x20pogut\x20obtenir\x20la\x20llista\x20de\x20l\x27historial','4CCHZZu','Inicialitzant,\x20espereu...','10175184nSLnIU','13003047rKRbWp','Restaurant,\x20espereu...'];_0x50aa=function(){return _0x2fe5cd;};return _0x50aa();}const _0x121cd9=_0x3315;(function(_0x568aaf,_0x2fc95d){const _0x5eb5e2=_0x3315,_0x38ac1e=_0x568aaf();while(!![]){try{const _0x566667=parseInt(_0x5eb5e2(0x6e))/0x1*(parseInt(_0x5eb5e2(0x6c))/0x2)+-parseInt(_0x5eb5e2(0x74))/0x3*(-parseInt(_0x5eb5e2(0x75))/0x4)+parseInt(_0x5eb5e2(0x77))/0x5+-parseInt(_0x5eb5e2(0x76))/0x6+-parseInt(_0x5eb5e2(0x73))/0x7+-parseInt(_0x5eb5e2(0x70))/0x8+parseInt(_0x5eb5e2(0x71))/0x9;if(_0x566667===_0x2fc95d)break;else _0x38ac1e['push'](_0x38ac1e['shift']());}catch(_0x231a68){_0x38ac1e['push'](_0x38ac1e['shift']());}}}(_0x50aa,0x9e4d0));const e={'edit-history-loader':{'panel':{'title':'Historial\x20d\x27edicions','reverting':_0x121cd9(0x72),'revertFailed':'Error\x20desconegut,\x20actualitzeu\x20la\x20pàgina\x20per\x20veure\x20el\x20resultat\x20de\x20la\x20restauració','listFetchError':_0x121cd9(0x6d)},'info':{'initializing':_0x121cd9(0x6f)}}};function _0x3315(_0x2abb5f,_0x4e02f6){_0x2abb5f=_0x2abb5f-0x6c;const _0x50aa4b=_0x50aa();let _0x33152e=_0x50aa4b[_0x2abb5f];return _0x33152e;}export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x527b(){const _0x4a99e9=['2692584VHxkVP','206sWhXZd','Fehler\x20beim\x20Abrufen\x20der\x20Bearbeitungshistorie','119jJQVbp','2497104VmWzdr','6zHMBUk','Wiederherstellung\x20läuft,\x20bitte\x20warten...','1898225RvppeN','500228WlXaPf','113934XVHUZn','4013XQEUGm','3353770dosuNu'];_0x527b=function(){return _0x4a99e9;};return _0x527b();}const _0x2be4b7=_0x6953;function _0x6953(_0x362d08,_0x1f35fd){_0x362d08=_0x362d08-0x1d2;const _0x527bd6=_0x527b();let _0x6953ad=_0x527bd6[_0x362d08];return _0x6953ad;}(function(_0x458f64,_0x14f96f){const _0x11035e=_0x6953,_0x53a7f1=_0x458f64();while(!![]){try{const _0x2e9711=parseInt(_0x11035e(0x1d8))/0x1*(-parseInt(_0x11035e(0x1db))/0x2)+parseInt(_0x11035e(0x1d3))/0x3*(-parseInt(_0x11035e(0x1d6))/0x4)+-parseInt(_0x11035e(0x1d5))/0x5+-parseInt(_0x11035e(0x1d7))/0x6*(-parseInt(_0x11035e(0x1dd))/0x7)+parseInt(_0x11035e(0x1d2))/0x8+parseInt(_0x11035e(0x1da))/0x9+parseInt(_0x11035e(0x1d9))/0xa;if(_0x2e9711===_0x14f96f)break;else _0x53a7f1['push'](_0x53a7f1['shift']());}catch(_0x5e1010){_0x53a7f1['push'](_0x53a7f1['shift']());}}}(_0x527b,0x37466));const e={'edit-history-loader':{'panel':{'title':'Bearbeitungsverlauf','reverting':_0x2be4b7(0x1d4),'revertFailed':'Unbekannter\x20Fehler,\x20bitte\x20aktualisieren\x20Sie\x20die\x20Seite,\x20um\x20das\x20Ergebnis\x20der\x20Wiederherstellung\x20anzuzeigen','listFetchError':_0x2be4b7(0x1dc)},'info':{'initializing':'Initialisierung\x20läuft,\x20bitte\x20warten...'}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x247160=_0x53ca;(function(_0x23aef2,_0x317adb){const _0x304e23=_0x53ca,_0x16760e=_0x23aef2();while(!![]){try{const _0x466469=parseInt(_0x304e23(0x19a))/0x1+-parseInt(_0x304e23(0x1a1))/0x2*(parseInt(_0x304e23(0x1a3))/0x3)+-parseInt(_0x304e23(0x197))/0x4*(parseInt(_0x304e23(0x19c))/0x5)+parseInt(_0x304e23(0x19b))/0x6+parseInt(_0x304e23(0x199))/0x7+-parseInt(_0x304e23(0x1a2))/0x8*(-parseInt(_0x304e23(0x19d))/0x9)+-parseInt(_0x304e23(0x19e))/0xa;if(_0x466469===_0x317adb)break;else _0x16760e['push'](_0x16760e['shift']());}catch(_0x2de9e2){_0x16760e['push'](_0x16760e['shift']());}}}(_0x4f68,0x44e83));const e={'edit-history-loader':{'panel':{'title':'Edit\x20History','reverting':_0x247160(0x198),'revertFailed':_0x247160(0x19f),'listFetchError':_0x247160(0x1a0)},'info':{'initializing':'Initializing,\x20please\x20wait...'}}};function _0x53ca(_0x2c5bd2,_0x3fa461){_0x2c5bd2=_0x2c5bd2-0x197;const _0x4f68e6=_0x4f68();let _0x53ca1d=_0x4f68e6[_0x2c5bd2];return _0x53ca1d;}export{e as default};function _0x4f68(){const _0x462682=['1184xdnltA','730707GpZgjY','647908VBEtVe','Reverting,\x20please\x20wait...','189910WMNtqN','432209fcJhoM','2227674obWVCT','10JjKVLJ','4581sTnWRt','561840ihXsUi','Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','Failed\x20to\x20get\x20edit\x20history\x20list','2Cufuqb'];_0x4f68=function(){return _0x462682;};return _0x4f68();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x3e3078=_0x1cf4;function _0x2d62(){const _0x401c5a=['Error\x20desconocido,\x20actualice\x20la\x20página\x20para\x20ver\x20el\x20resultado\x20de\x20la\x20restauración','Restaurando,\x20espere...','No\x20se\x20pudo\x20obtener\x20la\x20lista\x20del\x20historial\x20de\x20ediciones','99plRneu','701282BtEXZz','1437738jnthIX','1541745FWfsiL','346056FJlFGh','Inicializando,\x20espere...','21ekcwtz','66772EsqLCe','643548RAIPxm','4027590gzvuCD'];_0x2d62=function(){return _0x401c5a;};return _0x2d62();}function _0x1cf4(_0x58158d,_0x1c93e0){_0x58158d=_0x58158d-0x177;const _0x2d6226=_0x2d62();let _0x1cf407=_0x2d6226[_0x58158d];return _0x1cf407;}(function(_0xb8c6c2,_0x450465){const _0x571046=_0x1cf4,_0x8ff50c=_0xb8c6c2();while(!![]){try{const _0x37d0c8=parseInt(_0x571046(0x17c))/0x1+parseInt(_0x571046(0x183))/0x2+-parseInt(_0x571046(0x178))/0x3+parseInt(_0x571046(0x17d))/0x4+-parseInt(_0x571046(0x17e))/0x5+parseInt(_0x571046(0x177))/0x6*(parseInt(_0x571046(0x17b))/0x7)+-parseInt(_0x571046(0x179))/0x8*(-parseInt(_0x571046(0x182))/0x9);if(_0x37d0c8===_0x450465)break;else _0x8ff50c['push'](_0x8ff50c['shift']());}catch(_0x13787d){_0x8ff50c['push'](_0x8ff50c['shift']());}}}(_0x2d62,0x6ebbb));const e={'edit-history-loader':{'panel':{'title':'Historial\x20de\x20ediciones','reverting':_0x3e3078(0x180),'revertFailed':_0x3e3078(0x17f),'listFetchError':_0x3e3078(0x181)},'info':{'initializing':_0x3e3078(0x17a)}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0xb7f5b3=_0x35ea;function _0x1a1c(){const _0x5b2748=['3489pogMHw','311113UfuJzQ','683304HKKsoC','135DdZaRM','76344dCnYMz','3715pvbuUc','6657492svjxIv','3172rafrGh','93569NoelnU','خطای\x20ناشناخته،\x20لطفا\x20صفحه\x20را\x20بارگذاری\x20مجدد\x20کنید\x20تا\x20نتیجه\x20بازگردانی\x20را\x20مشاهده\x20کنید','90cUuxFi','دریافت\x20لیست\x20تاریخچه\x20ویرایش\x20ناموفق\x20بود','54fFrvFM','60diuKvZ'];_0x1a1c=function(){return _0x5b2748;};return _0x1a1c();}function _0x35ea(_0x272711,_0x5286b2){_0x272711=_0x272711-0x1c7;const _0x1a1cc5=_0x1a1c();let _0x35eab2=_0x1a1cc5[_0x272711];return _0x35eab2;}(function(_0x4f40af,_0x5e64b6){const _0x416020=_0x35ea,_0x3439f0=_0x4f40af();while(!![]){try{const _0x32653c=parseInt(_0x416020(0x1c7))/0x1+-parseInt(_0x416020(0x1d1))/0x2*(parseInt(_0x416020(0x1d3))/0x3)+-parseInt(_0x416020(0x1cc))/0x4*(parseInt(_0x416020(0x1ca))/0x5)+parseInt(_0x416020(0x1d2))/0x6*(-parseInt(_0x416020(0x1cd))/0x7)+parseInt(_0x416020(0x1c9))/0x8*(parseInt(_0x416020(0x1c8))/0x9)+parseInt(_0x416020(0x1cf))/0xa*(-parseInt(_0x416020(0x1d4))/0xb)+parseInt(_0x416020(0x1cb))/0xc;if(_0x32653c===_0x5e64b6)break;else _0x3439f0['push'](_0x3439f0['shift']());}catch(_0x33f92d){_0x3439f0['push'](_0x3439f0['shift']());}}}(_0x1a1c,0x5aec7));const e={'edit-history-loader':{'panel':{'title':'تاریخچه\x20ویرایش','reverting':'در\x20حال\x20بازگردانی،\x20لطفا\x20صبر\x20کنید...','revertFailed':_0xb7f5b3(0x1ce),'listFetchError':_0xb7f5b3(0x1d0)},'info':{'initializing':'در\x20حال\x20راهاندازی،\x20لطفا\x20صبر\x20کنید...'}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x376bb8=_0x2262;(function(_0x36a328,_0x38a9a4){const _0x46d9c2=_0x2262,_0x2b48e4=_0x36a328();while(!![]){try{const _0x54dcc3=parseInt(_0x46d9c2(0xcc))/0x1+-parseInt(_0x46d9c2(0xcb))/0x2*(parseInt(_0x46d9c2(0xc5))/0x3)+parseInt(_0x46d9c2(0xc9))/0x4*(-parseInt(_0x46d9c2(0xc3))/0x5)+parseInt(_0x46d9c2(0xc4))/0x6+-parseInt(_0x46d9c2(0xc7))/0x7*(parseInt(_0x46d9c2(0xcd))/0x8)+parseInt(_0x46d9c2(0xc2))/0x9+parseInt(_0x46d9c2(0xcf))/0xa*(parseInt(_0x46d9c2(0xc6))/0xb);if(_0x54dcc3===_0x38a9a4)break;else _0x2b48e4['push'](_0x2b48e4['shift']());}catch(_0x5cae90){_0x2b48e4['push'](_0x2b48e4['shift']());}}}(_0x13ed,0xe5836));function _0x13ed(){const _0x7181db=['232IKKlgi','Erreur\x20inconnue,\x20veuillez\x20actualiser\x20la\x20page\x20pour\x20voir\x20le\x20résultat\x20de\x20la\x20restauration','2lKshuc','1112296rIOPyF','56gNtGtI','Échec\x20de\x20l\x27obtention\x20de\x20la\x20liste\x20de\x20l\x27historique','5627210AStCLD','9688077cKXISl','119690RIzTSl','2435988xcRakj','2880777yBOIVP','33jRLjAI','994161frDmXY','Restauration\x20en\x20cours,\x20veuillez\x20patienter...'];_0x13ed=function(){return _0x7181db;};return _0x13ed();}function _0x2262(_0x662a18,_0x3b6d92){_0x662a18=_0x662a18-0xc2;const _0x13ede8=_0x13ed();let _0x226236=_0x13ede8[_0x662a18];return _0x226236;}const e={'edit-history-loader':{'panel':{'title':'Historique\x20des\x20modifications','reverting':_0x376bb8(0xc8),'revertFailed':_0x376bb8(0xca),'listFetchError':_0x376bb8(0xce)},'info':{'initializing':'Initialisation\x20en\x20cours,\x20veuillez\x20patienter...'}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x3d6e5a=_0xb6fc;function _0xb6fc(_0x29a5ba,_0x13b029){_0x29a5ba=_0x29a5ba-0x64;const _0x4dfa6d=_0x4dfa();let _0xb6fc7b=_0x4dfa6d[_0x29a5ba];return _0xb6fc7b;}(function(_0x108ec5,_0x43099f){const _0x2c7a42=_0xb6fc,_0x417329=_0x108ec5();while(!![]){try{const _0x1209a7=parseInt(_0x2c7a42(0x6e))/0x1+-parseInt(_0x2c7a42(0x6d))/0x2*(-parseInt(_0x2c7a42(0x65))/0x3)+parseInt(_0x2c7a42(0x6f))/0x4+-parseInt(_0x2c7a42(0x6b))/0x5+-parseInt(_0x2c7a42(0x66))/0x6*(parseInt(_0x2c7a42(0x70))/0x7)+-parseInt(_0x2c7a42(0x67))/0x8+parseInt(_0x2c7a42(0x69))/0x9;if(_0x1209a7===_0x43099f)break;else _0x417329['push'](_0x417329['shift']());}catch(_0x2905a7){_0x417329['push'](_0x417329['shift']());}}}(_0x4dfa,0xf084c));const e={'edit-history-loader':{'panel':{'title':_0x3d6e5a(0x6a),'reverting':_0x3d6e5a(0x68),'revertFailed':'Kesalahan\x20tidak\x20diketahui,\x20harap\x20segarkan\x20halaman\x20untuk\x20melihat\x20hasil\x20pengembalian','listFetchError':_0x3d6e5a(0x64)},'info':{'initializing':_0x3d6e5a(0x6c)}}};export{e as default};function _0x4dfa(){const _0x39f29d=['356394hASMee','3790328oEKsDA','Mengembalikan,\x20harap\x20tunggu...','22147128KOEElT','Riwayat\x20Edit','6875445OmHKki','Menginisialisasi,\x20harap\x20tunggu...','2ucZlBF','322559RllLeE','4961812lTwjmq','203JCNFnK','Gagal\x20mendapatkan\x20daftar\x20riwayat\x20edit','1598433YgqOEu'];_0x4dfa=function(){return _0x39f29d;};return _0x4dfa();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1b987b=_0x27d2;(function(_0x164e90,_0x8091ca){const _0x4e9417=_0x27d2,_0x1ffc41=_0x164e90();while(!![]){try{const _0x23b552=-parseInt(_0x4e9417(0x75))/0x1+parseInt(_0x4e9417(0x76))/0x2*(-parseInt(_0x4e9417(0x7a))/0x3)+-parseInt(_0x4e9417(0x74))/0x4*(-parseInt(_0x4e9417(0x78))/0x5)+parseInt(_0x4e9417(0x79))/0x6*(-parseInt(_0x4e9417(0x77))/0x7)+-parseInt(_0x4e9417(0x7c))/0x8+-parseInt(_0x4e9417(0x73))/0x9*(-parseInt(_0x4e9417(0x72))/0xa)+parseInt(_0x4e9417(0x7d))/0xb;if(_0x23b552===_0x8091ca)break;else _0x1ffc41['push'](_0x1ffc41['shift']());}catch(_0x4ec88c){_0x1ffc41['push'](_0x1ffc41['shift']());}}}(_0x216a,0x2cbea));function _0x27d2(_0x5d73ad,_0x39aad0){_0x5d73ad=_0x5d73ad-0x71;const _0x216a5c=_0x216a();let _0x27d258=_0x216a5c[_0x5d73ad];return _0x27d258;}const e={'edit-history-loader':{'panel':{'title':'Cronologia\x20modifiche','reverting':_0x1b987b(0x7b),'revertFailed':'Errore\x20sconosciuto,\x20aggiorna\x20la\x20pagina\x20per\x20visualizzare\x20il\x20risultato\x20del\x20ripristino','listFetchError':'Impossibile\x20ottenere\x20l\x27elenco\x20della\x20cronologia\x20modifiche'},'info':{'initializing':_0x1b987b(0x71)}}};function _0x216a(){const _0x51afc2=['274691RFTgDm','4QNtfxT','77oKxhuJ','35sAElQm','111876wjCBmJ','124482eHQevG','Ripristino\x20in\x20corso,\x20attendi...','285376KcUuEQ','5545287uQxROb','Inizializzazione\x20in\x20corso,\x20attendi...','2453930aCpJKL','9BDvGgP','18412ssNdBi'];_0x216a=function(){return _0x51afc2;};return _0x216a();}export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0xc4dfdd=_0x15e8;function _0x15e8(_0x1a9a18,_0x104ad3){_0x1a9a18=_0x1a9a18-0x172;const _0x58a920=_0x58a9();let _0x15e844=_0x58a920[_0x1a9a18];return _0x15e844;}(function(_0x58932a,_0x14e94e){const _0x5f0da5=_0x15e8,_0x5e30ea=_0x58932a();while(!![]){try{const _0x2a46cd=parseInt(_0x5f0da5(0x17a))/0x1+parseInt(_0x5f0da5(0x176))/0x2+parseInt(_0x5f0da5(0x174))/0x3+-parseInt(_0x5f0da5(0x173))/0x4+-parseInt(_0x5f0da5(0x172))/0x5+parseInt(_0x5f0da5(0x175))/0x6+parseInt(_0x5f0da5(0x177))/0x7;if(_0x2a46cd===_0x14e94e)break;else _0x5e30ea['push'](_0x5e30ea['shift']());}catch(_0x28e234){_0x5e30ea['push'](_0x5e30ea['shift']());}}}(_0x58a9,0x3f6bb));function _0x58a9(){const _0x465206=['編集履歴リストの取得に失敗しました','172298eDzjKo','1334685ElpGiS','1457408mWecYB','127776xWqYSM','45156ZdzeoN','578298Zxgjqn','2656465yJIjbg','初期化中です。お待ちください...'];_0x58a9=function(){return _0x465206;};return _0x58a9();}const e={'edit-history-loader':{'panel':{'title':'編集履歴','reverting':'復元中です。お待ちください...','revertFailed':'不明なエラーが発生しました。ページを更新して復元結果を確認してください','listFetchError':_0xc4dfdd(0x179)},'info':{'initializing':_0xc4dfdd(0x178)}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x95b020=_0x12ca;function _0x12ca(_0x2529b1,_0x3b7ac9){_0x2529b1=_0x2529b1-0x1b9;const _0x534cff=_0x534c();let _0x12ca60=_0x534cff[_0x2529b1];return _0x12ca60;}(function(_0x4f83e7,_0x19c45f){const _0x220424=_0x12ca,_0x554110=_0x4f83e7();while(!![]){try{const _0x4e3500=-parseInt(_0x220424(0x1be))/0x1*(-parseInt(_0x220424(0x1bb))/0x2)+parseInt(_0x220424(0x1c7))/0x3*(parseInt(_0x220424(0x1c3))/0x4)+parseInt(_0x220424(0x1bd))/0x5+-parseInt(_0x220424(0x1c6))/0x6*(-parseInt(_0x220424(0x1bf))/0x7)+parseInt(_0x220424(0x1c0))/0x8+parseInt(_0x220424(0x1c2))/0x9+-parseInt(_0x220424(0x1ba))/0xa;if(_0x4e3500===_0x19c45f)break;else _0x554110['push'](_0x554110['shift']());}catch(_0x20a2a5){_0x554110['push'](_0x554110['shift']());}}}(_0x534c,0x5cdff));const e={'edit-history-loader':{'panel':{'title':_0x95b020(0x1c5),'reverting':_0x95b020(0x1b9),'revertFailed':_0x95b020(0x1bc),'listFetchError':_0x95b020(0x1c4)},'info':{'initializing':_0x95b020(0x1c1)}}};function _0x534c(){const _0x42604b=['알\x20수\x20없는\x20오류가\x20발생했습니다.\x20페이지를\x20새로\x20고침하여\x20복원\x20결과를\x20확인하세요','612710NGhuuw','461841eBBMht','1617287yTWUbm','5784352wWgWrp','초기화\x20중입니다.\x20잠시만\x20기다려\x20주세요...','413703COPozT','4AKnKGl','편집\x20기록\x20목록을\x20가져오지\x20못했습니다','편집\x20기록','12dFDJSD','1171878atiVLX','복원\x20중입니다.\x20잠시만\x20기다려\x20주세요...','18256870ZKnukB','2QAJzdO'];_0x534c=function(){return _0x42604b;};return _0x534c();}export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x3badfb=_0x18be;(function(_0x4e1d4c,_0x1b0987){const _0xa979ca=_0x18be,_0x5ce604=_0x4e1d4c();while(!![]){try{const _0x24384a=parseInt(_0xa979ca(0xa4))/0x1+parseInt(_0xa979ca(0x9c))/0x2*(parseInt(_0xa979ca(0x99))/0x3)+-parseInt(_0xa979ca(0x9e))/0x4*(parseInt(_0xa979ca(0x9f))/0x5)+parseInt(_0xa979ca(0x9d))/0x6+parseInt(_0xa979ca(0xa6))/0x7+-parseInt(_0xa979ca(0x9a))/0x8*(-parseInt(_0xa979ca(0xa0))/0x9)+-parseInt(_0xa979ca(0xa1))/0xa*(parseInt(_0xa979ca(0xa5))/0xb);if(_0x24384a===_0x1b0987)break;else _0x5ce604['push'](_0x5ce604['shift']());}catch(_0x404447){_0x5ce604['push'](_0x5ce604['shift']());}}}(_0x5a63,0xcbad4));function _0x18be(_0xb6ea7d,_0x4c3087){_0xb6ea7d=_0xb6ea7d-0x99;const _0x5a6395=_0x5a63();let _0x18be88=_0x5a6395[_0xb6ea7d];return _0x18be88;}function _0x5a63(){const _0x2b8158=['12NkOeaQ','14296lTjMSe','Historia\x20edycji','252014GVnpWr','1861980qxuqIA','5153272ZrmCGd','5RkVBXB','4923Ryoaip','20DIxapn','Inicjalizowanie,\x20proszę\x20czekać...','Nieznany\x20błąd,\x20odśwież\x20stronę,\x20aby\x20zobaczyć\x20wynik\x20przywracania','1169693myTFYU','6281440qXkXpX','2121826MhwDzD','Przywracanie,\x20proszę\x20czekać...'];_0x5a63=function(){return _0x2b8158;};return _0x5a63();}const e={'edit-history-loader':{'panel':{'title':_0x3badfb(0x9b),'reverting':_0x3badfb(0xa7),'revertFailed':_0x3badfb(0xa3),'listFetchError':'Nie\x20udało\x20się\x20pobrać\x20listy\x20historii\x20edycji'},'info':{'initializing':_0x3badfb(0xa2)}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x2c9435=_0x2e57;function _0x60d8(){const _0x234876=['25251xYPykC','4190dOoPgi','1324Ddqknn','10377PAOxFZ','395244nAhlxw','1717744nzLYCq','Histórico\x20de\x20Edição','Inicializando,\x20aguarde...','Falha\x20ao\x20obter\x20a\x20lista\x20de\x20histórico\x20de\x20edição','381024dqnasI','Revertendo,\x20aguarde...','389150BorjDj','40fbdgPG','1345WkOPPw'];_0x60d8=function(){return _0x234876;};return _0x60d8();}function _0x2e57(_0x10cc13,_0x3f8222){_0x10cc13=_0x10cc13-0x192;const _0x60d8f3=_0x60d8();let _0x2e576e=_0x60d8f3[_0x10cc13];return _0x2e576e;}(function(_0x38da98,_0x3bf77e){const _0x1ee8c7=_0x2e57,_0x2ca23f=_0x38da98();while(!![]){try{const _0x46fac0=parseInt(_0x1ee8c7(0x19e))/0x1+-parseInt(_0x1ee8c7(0x19f))/0x2*(parseInt(_0x1ee8c7(0x193))/0x3)+-parseInt(_0x1ee8c7(0x195))/0x4*(parseInt(_0x1ee8c7(0x192))/0x5)+-parseInt(_0x1ee8c7(0x197))/0x6+-parseInt(_0x1ee8c7(0x198))/0x7+-parseInt(_0x1ee8c7(0x19c))/0x8+-parseInt(_0x1ee8c7(0x196))/0x9*(-parseInt(_0x1ee8c7(0x194))/0xa);if(_0x46fac0===_0x3bf77e)break;else _0x2ca23f['push'](_0x2ca23f['shift']());}catch(_0x4e3f16){_0x2ca23f['push'](_0x2ca23f['shift']());}}}(_0x60d8,0x3e7f0));const e={'edit-history-loader':{'panel':{'title':_0x2c9435(0x199),'reverting':_0x2c9435(0x19d),'revertFailed':'Erro\x20desconhecido,\x20atualize\x20a\x20página\x20para\x20ver\x20o\x20resultado\x20da\x20reversão','listFetchError':_0x2c9435(0x19b)},'info':{'initializing':_0x2c9435(0x19a)}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x2a8dde=_0x5576;(function(_0x5e9737,_0x55796c){const _0x3f133f=_0x5576,_0x5c7719=_0x5e9737();while(!![]){try{const _0x1df8ea=parseInt(_0x3f133f(0x154))/0x1*(parseInt(_0x3f133f(0x153))/0x2)+-parseInt(_0x3f133f(0x15b))/0x3+parseInt(_0x3f133f(0x158))/0x4*(-parseInt(_0x3f133f(0x15a))/0x5)+-parseInt(_0x3f133f(0x161))/0x6*(-parseInt(_0x3f133f(0x156))/0x7)+parseInt(_0x3f133f(0x160))/0x8*(-parseInt(_0x3f133f(0x15c))/0x9)+-parseInt(_0x3f133f(0x15e))/0xa+-parseInt(_0x3f133f(0x152))/0xb*(-parseInt(_0x3f133f(0x155))/0xc);if(_0x1df8ea===_0x55796c)break;else _0x5c7719['push'](_0x5c7719['shift']());}catch(_0x46adcc){_0x5c7719['push'](_0x5c7719['shift']());}}}(_0x4e7d,0x6176c));function _0x5576(_0x5d0790,_0x5cd3bd){_0x5d0790=_0x5d0790-0x152;const _0x4e7db6=_0x4e7d();let _0x55764e=_0x4e7db6[_0x5d0790];return _0x55764e;}function _0x4e7d(){const _0x4759bc=['Инициализация,\x20подождите...','810980rfMxJb','Неизвестная\x20ошибка,\x20обновите\x20страницу\x20для\x20просмотра\x20результата\x20восстановления','859528RrRDyE','602886UrQXvo','616QfmNMP','2wdhOxo','108600WiQVXw','17364GIUeWz','35tdmBXt','Восстановление,\x20подождите...','20656FOTqcK','Не\x20удалось\x20получить\x20список\x20истории\x20изменений','45KJGaxq','173430oHAaLP','9FkZouk'];_0x4e7d=function(){return _0x4759bc;};return _0x4e7d();}const e={'edit-history-loader':{'panel':{'title':'История\x20изменений','reverting':_0x2a8dde(0x157),'revertFailed':_0x2a8dde(0x15f),'listFetchError':_0x2a8dde(0x159)},'info':{'initializing':_0x2a8dde(0x15d)}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x5602f6=_0xb042;(function(_0x3a819e,_0x3830da){const _0x41efab=_0xb042,_0xf57ef8=_0x3a819e();while(!![]){try{const _0x695ab2=parseInt(_0x41efab(0x1f8))/0x1*(parseInt(_0x41efab(0x1f7))/0x2)+parseInt(_0x41efab(0x1fb))/0x3+-parseInt(_0x41efab(0x1fa))/0x4+-parseInt(_0x41efab(0x200))/0x5*(parseInt(_0x41efab(0x1fe))/0x6)+-parseInt(_0x41efab(0x1fd))/0x7*(-parseInt(_0x41efab(0x1f9))/0x8)+parseInt(_0x41efab(0x202))/0x9*(parseInt(_0x41efab(0x1f5))/0xa)+parseInt(_0x41efab(0x1f4))/0xb*(-parseInt(_0x41efab(0x1fc))/0xc);if(_0x695ab2===_0x3830da)break;else _0xf57ef8['push'](_0xf57ef8['shift']());}catch(_0x351ab9){_0xf57ef8['push'](_0xf57ef8['shift']());}}}(_0x5ddc,0xee9ff));function _0xb042(_0x2430b8,_0x4a76d8){_0x2430b8=_0x2430b8-0x1f4;const _0x5ddc43=_0x5ddc();let _0xb042f=_0x5ddc43[_0x2430b8];return _0xb042f;}const e={'edit-history-loader':{'panel':{'title':'História\x20úprav','reverting':_0x5602f6(0x1ff),'revertFailed':'Neznáma\x20chyba,\x20obnovte\x20stránku\x20a\x20pozrite\x20si\x20výsledok\x20obnovenia','listFetchError':_0x5602f6(0x1f6)},'info':{'initializing':_0x5602f6(0x201)}}};export{e as default};function _0x5ddc(){const _0x17a22c=['3073065PWtcON','Inicializace,\x20prosím\x20počkejte...','10938555WElJVc','22GvjXuM','10ubmbpC','Nepodarilo\x20sa\x20získať\x20zoznam\x20histórie\x20úprav','7444YKuEHW','512QtinRX','72048IjLxOz','5178820aMNotk','3505035xPsYZM','6727728EhMtMW','259MwPWNz','12xDEoAn','Obnovuje\x20sa,\x20prosím\x20počkajte...'];_0x5ddc=function(){return _0x17a22c;};return _0x5ddc();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x24e8fa=_0x3ae7;(function(_0x1d8a05,_0x2ba01c){const _0x386099=_0x3ae7,_0x9b9fc8=_0x1d8a05();while(!![]){try{const _0xc5d3e9=parseInt(_0x386099(0x94))/0x1*(-parseInt(_0x386099(0x8f))/0x2)+parseInt(_0x386099(0x8a))/0x3*(-parseInt(_0x386099(0x93))/0x4)+-parseInt(_0x386099(0x97))/0x5*(parseInt(_0x386099(0x91))/0x6)+-parseInt(_0x386099(0x95))/0x7+parseInt(_0x386099(0x92))/0x8*(parseInt(_0x386099(0x8d))/0x9)+-parseInt(_0x386099(0x8e))/0xa+parseInt(_0x386099(0x88))/0xb*(parseInt(_0x386099(0x89))/0xc);if(_0xc5d3e9===_0x2ba01c)break;else _0x9b9fc8['push'](_0x9b9fc8['shift']());}catch(_0x21358b){_0x9b9fc8['push'](_0x9b9fc8['shift']());}}}(_0x2ff1,0xb4936));const e={'edit-history-loader':{'panel':{'title':_0x24e8fa(0x90),'reverting':_0x24e8fa(0x8c),'revertFailed':_0x24e8fa(0x8b),'listFetchError':'Không\x20thể\x20lấy\x20danh\x20sách\x20lịch\x20sử\x20chỉnh\x20sửa'},'info':{'initializing':_0x24e8fa(0x96)}}};function _0x3ae7(_0x1f04ad,_0x5108b9){_0x1f04ad=_0x1f04ad-0x88;const _0x2ff170=_0x2ff1();let _0x3ae72f=_0x2ff170[_0x1f04ad];return _0x3ae72f;}function _0x2ff1(){const _0x4f15c5=['12efmckw','2821784LyoKuN','74076NrWNgq','3xThplq','8495228hGJVnC','đang\x20khởi\x20tạo,\x20vui\x20lòng\x20đợi...','3367965GKAzNE','24672769PjOOuz','24pCDdyB','21GGlNaD','Lỗi\x20không\x20xác\x20định,\x20vui\x20lòng\x20làm\x20mới\x20trang\x20để\x20xem\x20kết\x20quả\x20khôi\x20phục','Đang\x20khôi\x20phục,\x20vui\x20lòng\x20đợi...','9QJFxQI','12611130oRpGQm','98338jpdZjl','Lịch\x20sử\x20chỉnh\x20sửa'];_0x2ff1=function(){return _0x4f15c5;};return _0x2ff1();}export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x55ef78=_0x6d58;function _0x6d58(_0xea71cc,_0x4f51ac){_0xea71cc=_0xea71cc-0x1f2;const _0xde09c7=_0xde09();let _0x6d5854=_0xde09c7[_0xea71cc];return _0x6d5854;}(function(_0x29a556,_0x2609e9){const _0x1b2666=_0x6d58,_0x597b28=_0x29a556();while(!![]){try{const _0x5d8e36=-parseInt(_0x1b2666(0x1f4))/0x1*(parseInt(_0x1b2666(0x1fb))/0x2)+parseInt(_0x1b2666(0x1ff))/0x3+-parseInt(_0x1b2666(0x1fe))/0x4+parseInt(_0x1b2666(0x200))/0x5*(parseInt(_0x1b2666(0x1f9))/0x6)+-parseInt(_0x1b2666(0x201))/0x7*(parseInt(_0x1b2666(0x1f3))/0x8)+-parseInt(_0x1b2666(0x1f2))/0x9*(parseInt(_0x1b2666(0x1fc))/0xa)+-parseInt(_0x1b2666(0x1fa))/0xb*(-parseInt(_0x1b2666(0x1f8))/0xc);if(_0x5d8e36===_0x2609e9)break;else _0x597b28['push'](_0x597b28['shift']());}catch(_0x180452){_0x597b28['push'](_0x597b28['shift']());}}}(_0xde09,0x62445));function _0xde09(){const _0x3bd542=['732gCUHRf','2298sBQejY','104467cSgGQa','215916wjmpqf','17970kdtIEJ','历史记录','1675344yiXeGC','2293434yIZWMN','8230hkeFqi','231KVzmAD','9Gnuiag','95848HOFOss','7yrjRoM','正在还原,请稍等...','未知错误,请刷新页面查看还原结果','初始化中,请稍等...'];_0xde09=function(){return _0x3bd542;};return _0xde09();}const e={'edit-history-loader':{'panel':{'title':_0x55ef78(0x1fd),'reverting':_0x55ef78(0x1f5),'revertFailed':_0x55ef78(0x1f6),'listFetchError':'获取编辑历史记录列表失败'},'info':{'initializing':_0x55ef78(0x1f7)}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x421b13=_0x23e5;function _0x5772(){const _0x4333d2=['正在還原,請稍候...','158nBWadh','4263816eTJZML','28189XBbcGC','380ssRbsJ','3069425FfWaZD','3634632jXpUji','編輯歷程','40794160kQThZX','初始化中,請稍候...','發生未知錯誤,請重新整理頁面查看還原結果','384HmBELM','11838mVUWhn','27309lUjBJG'];_0x5772=function(){return _0x4333d2;};return _0x5772();}function _0x23e5(_0x6e500f,_0x158ec5){_0x6e500f=_0x6e500f-0x67;const _0x5772b8=_0x5772();let _0x23e544=_0x5772b8[_0x6e500f];return _0x23e544;}(function(_0x24a0d4,_0x380364){const _0xf99927=_0x23e5,_0x4cc85e=_0x24a0d4();while(!![]){try{const _0x455900=-parseInt(_0xf99927(0x74))/0x1*(parseInt(_0xf99927(0x69))/0x2)+parseInt(_0xf99927(0x67))/0x3*(-parseInt(_0xf99927(0x6c))/0x4)+-parseInt(_0xf99927(0x6d))/0x5+parseInt(_0xf99927(0x73))/0x6*(-parseInt(_0xf99927(0x6b))/0x7)+-parseInt(_0xf99927(0x6a))/0x8+-parseInt(_0xf99927(0x6e))/0x9+parseInt(_0xf99927(0x70))/0xa;if(_0x455900===_0x380364)break;else _0x4cc85e['push'](_0x4cc85e['shift']());}catch(_0x3d5176){_0x4cc85e['push'](_0x4cc85e['shift']());}}}(_0x5772,0x72fcf));const e={'edit-history-loader':{'panel':{'title':_0x421b13(0x6f),'reverting':_0x421b13(0x68),'revertFailed':_0x421b13(0x72),'listFetchError':'無法取得編輯歷程列表'},'info':{'initializing':_0x421b13(0x71)}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x3651f5=_0x4f3b;(function(_0xe5d3ff,_0x5682c0){const _0x1968ae=_0x4f3b,_0x2a225b=_0xe5d3ff();while(!![]){try{const _0x36b4e0=-parseInt(_0x1968ae(0x9a))/0x1+-parseInt(_0x1968ae(0x96))/0x2+-parseInt(_0x1968ae(0x9b))/0x3*(-parseInt(_0x1968ae(0x91))/0x4)+-parseInt(_0x1968ae(0x9d))/0x5*(parseInt(_0x1968ae(0x97))/0x6)+-parseInt(_0x1968ae(0x98))/0x7*(parseInt(_0x1968ae(0x95))/0x8)+parseInt(_0x1968ae(0x9c))/0x9*(-parseInt(_0x1968ae(0x94))/0xa)+parseInt(_0x1968ae(0x92))/0xb;if(_0x36b4e0===_0x5682c0)break;else _0x2a225b['push'](_0x2a225b['shift']());}catch(_0x3769e3){_0x2a225b['push'](_0x2a225b['shift']());}}}(_0x2a94,0xf028f));const e={'edit-history-loader':{'panel':{'title':_0x3651f5(0x99),'reverting':_0x3651f5(0x90),'revertFailed':_0x3651f5(0x9e),'listFetchError':'無法取得編輯歷程列表'},'info':{'initializing':_0x3651f5(0x93)}}};function _0x2a94(){const _0x3f12d2=['676pghhTY','89199011bRzpNU','初始化中,請稍候...','10SDNTvi','4242648IJiyIs','2139796gbVWRn','288vSJGRh','21xvmzgz','編輯歷程','1649853WRkTLn','4899lMnQQO','17210547RgyOIn','122735NDzfDj','發生未知錯誤,請重新整理頁面查看還原結果','正在還原,請稍候...'];_0x2a94=function(){return _0x3f12d2;};return _0x2a94();}function _0x4f3b(_0x20f0eb,_0xb920ac){_0x20f0eb=_0x20f0eb-0x90;const _0x2a94a4=_0x2a94();let _0x4f3b0d=_0x2a94a4[_0x20f0eb];return _0x4f3b0d;}export{e as default};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd3747d=_0xe99c;(function(_0x538946,_0x504149){const _0x49730c=_0xe99c,_0x2636df=_0x538946();while(!![]){try{const _0x3d31a2=-parseInt(_0x49730c(0x2af))/0x1+parseInt(_0x49730c(0x1f4))/0x2+-parseInt(_0x49730c(0x1fd))/0x3*(parseInt(_0x49730c(0x242))/0x4)+parseInt(_0x49730c(0x20d))/0x5+parseInt(_0x49730c(0x240))/0x6*(parseInt(_0x49730c(0x296))/0x7)+-parseInt(_0x49730c(0x22f))/0x8*(parseInt(_0x49730c(0x278))/0x9)+parseInt(_0x49730c(0x210))/0xa;if(_0x3d31a2===_0x504149)break;else _0x2636df['push'](_0x2636df['shift']());}catch(_0x94d5f){_0x2636df['push'](_0x2636df['shift']());}}}(_0x545a,0x89959));import{CommandType as _0x46f158,DependentOn as _0xeab6e0,Disposable as _0x6c5d76,DisposableCollection as _0x58b672,IAuthzIoService as _0x25a20c,ICommandService as _0x57aba4,IConfigService as _0x550417,IPermissionService as _0x5dc172,IUniverInstanceService as _0x1bbbcc,Inject as _0x506b77,Injector as _0x11bf60,LocaleService as _0x2fd53d,Plugin as _0x545f8f,RxDisposable as _0x23822b,ThemeService as _0x56c0a0,Univer as _0x33c36b,UniverInstanceType as _0x31ee75,Workbook as _0x2a7488,merge as _0x33300f,toDisposable as _0x3e40d9}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x15136c,RangeProtectionRuleModel as _0x34e08b,SetWorksheetActivateCommand as _0x5ddf17,UniverSheetsPlugin as _0x33c86b,WorkbookEditablePermission as _0x210132,WorkbookRecoverHistoryPermission as _0x56ae1e,WorkbookViewHistoryPermission as _0x4de8e1,WorksheetEditPermission as _0x1c1e44,getSheetCommandTarget as _0x4eed07}from'@univerjs/sheets';import{CollaborationEvent as _0x473a70,RevertRevisionMutation as _0x4a9cc0,UniverCollaborationPlugin as _0x540b93}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x328722,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x249dd6,CollaborationController as _0x403598,CollaborationStatus as _0x1c0ec0,DataLoaderService as _0x297f87,ILocalCacheService as _0x4cecb8}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x39e9ab,HistoryModeStatus as _0x3033a5,UniverEditHistoryViewerMobilePlugin as _0x55a3ef,UniverEditHistoryViewerPlugin as _0x4ad7ee}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x1ae143,UniverLicensePlugin as _0x42940f}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x3ab737}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xc6fc17}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x41cc6c}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xd239}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x5310aa}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x4eb0a1}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xf3b184}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x318883}from'@univerjs/data-validation';import{MessageType as _0x235979}from'@univerjs/design';import{UniverDocsPlugin as _0x56f869}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1b9c79}from'@univerjs/docs-ui';import{IImageIoService as _0x5bff47,UniverDrawingPlugin as _0x798726}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x4abb8b}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x1d50f9}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x270392}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x458233}from'@univerjs/network';import{IRemoteInstanceService as _0x197e95,UniverRPCMainThreadPlugin as _0x14cb3e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x8742fa}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x153c52}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x3dd0c9}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0xd9d82f,UniverSheetsDataValidationUIPlugin as _0x1a32b2}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5b59e6}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x363dea}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x50dd11}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x379bf4}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xfe84d7}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x562138}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x332a69}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x15240e}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x48f874}from'@univerjs/sheets-numfmt';function _0x545a(){const _0x4f09ac=['getOwnPropertyDescriptor','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','onStarting','subscribe','workerURL','BUTTON','_pluginMap','_internalWebWorker','fromCollab','@univerjs-pro/edit-history-loader','editHistory.panel.listFetchError','type','1602636VAzogd','Exited','2528ODitPx','clear','location','registerCommand','dispose','_updateSubUnitFromURLParams','_permissionService','version','Entered','univer.operation.toggle-edit-history','activeSheet$','show','history-container','set','_commandService','from','params','onCommandExecuted','iterator','defineProperty','exhaustSavingTask','getSheetBySheetId','left','unMountHistoryContent','getSubunitRuleList','style','composePermission','_historyManagerService','every','setParam','historyUniver$','pipe','urlChange$','some','flat','top','mutations','Error','getElementById','100%','closeAll','menu','univer-history-container-mobile','symbol','mountHistoryContent','setLocale','UNIVER_UNKNOWN','getParam','getCurrentUnitOfType','block','_handleRevertAcknowledgement','univerContainerId','_config','univer.operation.exit-edit-history','12213genBfA','mergeMenu','CHANGESET_ACK','historyUniver','values','call','UNIVER_SHEET','appendChild','status$','div','_localeService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_componentManager','absolute','close','Loading','decorate','_initListener','createElement','getAllPlugins','_localCacheService','zIndex','getSheets','_dialogService','value','HistoryIcon','uComp','pluginName','string','_menuManagerService','21CTUomH','_historyUniver$','_injector','_dataLoaderService','packageName','function','_configService','then','revertRevision$','height','editHistory.panel.revertFailed','edit-history-loader.config','_themeService','getUnit','state$','default','_setupSubUnitSync','SYNCED','length','getUnhiddenWorksheets','none','forEach','disposeUnit','loadUnit','register','689368NgqdEL','triggerLoadVersions','historyPanelHidden','historyListServerUrl','univer-container','reload','getActiveSheet','\x20has\x20been\x20registered.','registerPlugin','object','getCollabEntity','session','OPERATION','unsubscribe','681720UBprhf','_init','_selectionProtectionRuleModel','prototype','eventID','permissionId','executeCommand','getSheetId','dataset','3909zMfVZP','_collaborationController','_initContainer','terminate','whenReady','add','event$','UNIVER_CONTAINER_ID','asObservable','setConfig','display','editHistory.panel.reverting','map','editHistory.info.initializing','getConfig','triggerCustomVersions','2035980cSQhFo','has','_revertErrorTimer','7509400mhvAHf','onSteady','_initPlugins','setTheme','historyPanelComponentKey','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','invoke','darkMode$','get','setDarkMode','historyAIassistantEnabled','_messageService','getUnitId','data','toPrimitive','OTHERS','_checkCanRevert','[MobileHistoryLoaderService]:\x20Plugin\x20','getCurrentLocale','disposeWithMe','_urlService','position','subunit','_disposableCollection','_sidebarService','_univerInstanceService','width','_updateURLWithCurrentState','next','currentTheme$','_initUniver','1320wtBgqq','__getInjector','dispose$','status','[HistoryLoaderService]:\x20Plugin\x20'];_0x545a=function(){return _0x4f09ac;};return _0x545a();}import{UniverSheetsTablePlugin as _0x1ffac4}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x4307c2,UniverSheetsUIPlugin as _0x2c3c9f,getCurrentRangeDisable$ as _0x565f31}from'@univerjs/sheets-ui';import{ComponentManager as _0x579cf7,IDialogService as _0x4cc893,IMenuManagerService as _0x7ea17b,IMessageService as _0x388624,ISidebarService as _0x376338,MenuItemType as _0x5aba48,RibbonStartGroup as _0x37854d,UniverMobileUIPlugin as _0x3b5660,UniverUIPlugin as _0x924848,getMenuHiddenObservable as _0x3be5a3}from'@univerjs/ui';import{BehaviorSubject as _0xf7d34,combineLatest as _0x3fef9b,takeUntil as _0x181a1c}from'rxjs';import{IURLService as _0x43f444}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x357cc1}from'@univerjs/icons';const R=_0xd3747d(0x2a1);Symbol(R);const z={};function B(_0x5b8664){'@babel/helpers - typeof';const _0x27bf9d=_0xd3747d;return B=typeof Symbol=='function'&&typeof Symbol[_0x27bf9d(0x254)]=='symbol'?function(_0x4e01d4){return typeof _0x4e01d4;}:function(_0x31f228){const _0x563695=_0x27bf9d;return _0x31f228&&typeof Symbol==_0x563695(0x29b)&&_0x31f228['constructor']===Symbol&&_0x31f228!==Symbol[_0x563695(0x1f7)]?'symbol':typeof _0x31f228;},B(_0x5b8664);}function it(_0x193bdd,_0x55604f){const _0x11df31=_0xd3747d;if(B(_0x193bdd)!=_0x11df31(0x1ef)||!_0x193bdd)return _0x193bdd;var _0x580b46=_0x193bdd[Symbol[_0x11df31(0x21e)]];if(_0x580b46!==void 0x0){var _0xf50c2=_0x580b46[_0x11df31(0x27d)](_0x193bdd,_0x55604f||_0x11df31(0x2a5));if(B(_0xf50c2)!='object')return _0xf50c2;throw TypeError(_0x11df31(0x283));}return(_0x55604f===_0x11df31(0x294)?String:Number)(_0x193bdd);}function at(_0x86057b){const _0x33220=_0xd3747d;var _0x380322=it(_0x86057b,_0x33220(0x294));return B(_0x380322)==_0x33220(0x26d)?_0x380322:_0x380322+'';}function V(_0x3a8e98,_0x24cfda,_0x205287){const _0x43255f=_0xd3747d;return(_0x24cfda=at(_0x24cfda))in _0x3a8e98?Object[_0x43255f(0x255)](_0x3a8e98,_0x24cfda,{'value':_0x205287,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a8e98[_0x24cfda]=_0x205287,_0x3a8e98;}function H(_0x333488,_0x508d0f){return function(_0x180fee,_0x412174){_0x508d0f(_0x180fee,_0x412174,_0x333488);};}function U(_0x270678,_0x5e727b,_0x268f1b,_0x1163a6){const _0x4444f6=_0xd3747d;var _0x42b0c2=arguments[_0x4444f6(0x2a8)],_0x42a2ac=_0x42b0c2<0x3?_0x5e727b:_0x1163a6===null?_0x1163a6=Object[_0x4444f6(0x234)](_0x5e727b,_0x268f1b):_0x1163a6,_0x2c82f6;if(typeof Reflect==_0x4444f6(0x1ef)&&typeof Reflect[_0x4444f6(0x288)]==_0x4444f6(0x29b))_0x42a2ac=Reflect[_0x4444f6(0x288)](_0x270678,_0x5e727b,_0x268f1b,_0x1163a6);else{for(var _0x453580=_0x270678[_0x4444f6(0x2a8)]-0x1;_0x453580>=0x0;_0x453580--)(_0x2c82f6=_0x270678[_0x453580])&&(_0x42a2ac=(_0x42b0c2<0x3?_0x2c82f6(_0x42a2ac):_0x42b0c2>0x3?_0x2c82f6(_0x5e727b,_0x268f1b,_0x42a2ac):_0x2c82f6(_0x5e727b,_0x268f1b))||_0x42a2ac);}return _0x42b0c2>0x3&&_0x42a2ac&&Object[_0x4444f6(0x255)](_0x5e727b,_0x268f1b,_0x42a2ac),_0x42a2ac;}const ot=_0xd3747d(0x204),W='univer-history-container';function _0xe99c(_0x709a08,_0x5a92f){_0x709a08=_0x709a08-0x1e8;const _0x545adb=_0x545a();let _0xe99c77=_0x545adb[_0x709a08];return _0xe99c77;}let G=class extends _0x6c5d76{constructor(_0x31db47,_0x27c903,_0x342859,_0x38c1f5,_0xcd4c6f,_0x22a7fc,_0x23f63f,_0x40431d,_0x4bc512,_0x59bf8f){const _0x1a577f=_0xd3747d;super(),this[_0x1a577f(0x282)]=_0x31db47,this['_univerInstanceService']=_0x27c903,this[_0x1a577f(0x29c)]=_0x342859,this[_0x1a577f(0x250)]=_0x38c1f5,this[_0x1a577f(0x21b)]=_0xcd4c6f,this['_permissionService']=_0x22a7fc,this['_selectionProtectionRuleModel']=_0x23f63f,this[_0x1a577f(0x28f)]=_0x40431d,this['_sidebarService']=_0x4bc512,this[_0x1a577f(0x2a2)]=_0x59bf8f,V(this,_0x1a577f(0x297),new _0xf7d34(null)),V(this,_0x1a577f(0x260),this['_historyUniver$']['asObservable']()),V(this,_0x1a577f(0x227),new _0x58b672()),V(this,_0x1a577f(0x23a),new Map()),V(this,_0x1a577f(0x23b),null),this[_0x1a577f(0x1f5)]();}get['historyUniver'](){return this['_historyUniver$']['value'];}[_0xd3747d(0x1f5)](){const _0x27d666=_0xd3747d;this[_0x27d666(0x1ff)](),this[_0x27d666(0x212)]();}[_0xd3747d(0x1ff)](){const _0x200008=_0xd3747d;var _0x566262;let _0x3b0b14=(_0x566262=this[_0x200008(0x29c)][_0x200008(0x20b)]('UNIVER_CONTAINER_ID'))==null?_0x200008(0x1ea):_0x566262,_0x74b3a6=document['getElementById'](_0x3b0b14);if(!_0x74b3a6)return;let _0x5a4aea=document[_0x200008(0x28a)](_0x200008(0x281));_0x5a4aea['id']=W,_0x5a4aea[_0x200008(0x1fc)][_0x200008(0x292)]=_0x200008(0x24e),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x225)]=_0x200008(0x285),_0x5a4aea['style'][_0x200008(0x265)]='0',_0x5a4aea[_0x200008(0x25b)][_0x200008(0x258)]='0',_0x5a4aea['style'][_0x200008(0x22a)]=_0x200008(0x269),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x29f)]=_0x200008(0x269),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x28d)]='49',_0x5a4aea['style'][_0x200008(0x207)]=_0x200008(0x2aa),_0x74b3a6[_0x200008(0x27f)](_0x5a4aea);}[_0xd3747d(0x212)](){const _0x4cd34c=_0xd3747d;[[_0x270392],[_0x924848,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cc893,null]]}],[_0x458233],[_0x798726,{'override':[[_0x5bff47,null]]}],[_0x56f869,{'hasScroll':!0x1}],[_0x1b9c79],[_0x48f874],[_0x33c86b,{'notExecuteFormula':!0x0}],[_0x2c3c9f],[_0xfe84d7],[_0x562138],[_0x540b93],[_0x50dd11],[_0x379bf4],[_0x8742fa],[_0x153c52],[_0x332a69],[_0x15240e],[_0x318883],[_0x3dd0c9],[_0x1a32b2],[_0x1d50f9,{'notExecuteFormula':!0x0}],[_0x4abb8b],[_0x5b59e6],[_0x363dea],[_0x4eb0a1],[_0xf3b184],[_0x3ab737],[_0xc6fc17],[_0xd239],[_0x5310aa],[_0x41cc6c,{'notExecuteFormula':!0x0}],[_0x1ffac4]]['forEach'](([_0x4fd77b,_0x4f4bad])=>this[_0x4cd34c(0x1ee)](_0x4fd77b,_0x4f4bad));}[_0xd3747d(0x246)](){const _0x17c434=_0xd3747d;super[_0x17c434(0x246)](),this[_0x17c434(0x259)](),this[_0x17c434(0x23a)]['clear']();}['registerPlugin'](_0x10ef51,_0x78dc0,_0x1acae1){const _0xb9ebee=_0xd3747d;if(this[_0xb9ebee(0x23a)][_0xb9ebee(0x20e)](_0x10ef51[_0xb9ebee(0x293)])&&!_0x1acae1)throw Error(_0xb9ebee(0x233)+_0x10ef51[_0xb9ebee(0x293)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0xb9ebee(0x24f)](_0x10ef51[_0xb9ebee(0x293)],[_0x10ef51,_0x78dc0]);}['getAllPlugins'](){const _0x4bdcbb=_0xd3747d;return Array[_0x4bdcbb(0x251)](this[_0x4bdcbb(0x23a)][_0x4bdcbb(0x27c)]());}[_0xd3747d(0x26e)](_0x432104,_0x19ab33){const _0x58eb82=_0xd3747d;let _0x5c3776=document[_0x58eb82(0x268)](W);_0x5c3776&&(_0x5c3776[_0x58eb82(0x25b)][_0x58eb82(0x207)]=_0x58eb82(0x273),this[_0x58eb82(0x22e)](_0x432104,W,_0x19ab33));}['unMountHistoryContent'](){const _0x280731=_0xd3747d;var _0x57df33;this[_0x280731(0x227)][_0x280731(0x246)](),(_0x57df33=this[_0x280731(0x27b)])==null||_0x57df33[_0x280731(0x246)](),this[_0x280731(0x297)][_0x280731(0x22c)](null);let _0x1cf1fa=document[_0x280731(0x268)](W);_0x1cf1fa&&(_0x1cf1fa[_0x280731(0x25b)]['display']=_0x280731(0x2aa),this[_0x280731(0x23b)]&&(this['_internalWebWorker'][_0x280731(0x200)](),this[_0x280731(0x23b)]=null));}[_0xd3747d(0x22e)](_0x5462e2,_0x1afac1,_0x94e86e){const _0x578619=_0xd3747d;var _0x22b970,_0x56e7c4,_0x2802e2,_0x1fe362,_0x5359e0;if(this[_0x578619(0x27b)])return;let _0x2b32b9=new _0x33c36b({'locales':{[this['_localeService'][_0x578619(0x222)]()]:this[_0x578619(0x282)]['getLocales']()},'override':[[_0x25a20c,{'useClass':_0x328722}]]}),_0x301b87=_0x2b32b9[_0x578619(0x230)]();this[_0x578619(0x223)](this[_0x578619(0x2a2)]['darkMode$'][_0x578619(0x237)](_0x39718b=>{const _0x48704f=_0x578619;_0x301b87['get'](_0x56c0a0)[_0x48704f(0x219)](_0x39718b);})),this[_0x578619(0x223)](this[_0x578619(0x2a2)]['currentTheme$'][_0x578619(0x237)](_0x3f6588=>{const _0x3ee75b=_0x578619;_0x301b87[_0x3ee75b(0x218)](_0x56c0a0)[_0x3ee75b(0x213)](_0x3f6588);})),_0x301b87['get'](_0x2fd53d)[_0x578619(0x26f)](this[_0x578619(0x282)][_0x578619(0x222)]()),_0x301b87[_0x578619(0x218)](_0x550417)[_0x578619(0x206)](_0x249dd6,this[_0x578619(0x29c)][_0x578619(0x20b)](_0x249dd6));let _0x46e3c3=this[_0x578619(0x29c)]['getConfig'](_0x1ae143);_0x46e3c3&&_0x2b32b9['registerPlugin'](_0x42940f,{'license':_0x46e3c3['ls']});let _0x3cadc1=(_0x22b970=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x22b970[_0x578619(0x238)],_0x3d5c10=!!_0x3cadc1;_0x3d5c10&&(this['_internalWebWorker']=_0x3cadc1 instanceof Worker?_0x3cadc1:null,_0x2b32b9[_0x578619(0x1ee)](_0x14cb3e,{'workerURL':_0x3cadc1})),this[_0x578619(0x23a)][_0x578619(0x2ab)](([_0x556ce7,_0x32906e])=>{const _0x1ac3c6=_0x578619;_0x2b32b9[_0x1ac3c6(0x1ee)](_0x556ce7,_0x32906e);}),_0x2b32b9[_0x578619(0x1ee)](_0x4ad7ee,{'historyListServerUrl':(_0x56e7c4=this['_configService'][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x56e7c4[_0x578619(0x1e9)],'historyPanelComponentKey':(_0x2802e2=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x2802e2[_0x578619(0x214)],'historyPanelHidden':(_0x1fe362=this[_0x578619(0x29c)]['getConfig'](_0x578619(0x2a1)))==null?void 0x0:_0x1fe362[_0x578619(0x1e8)],'historyAIassistantEnabled':(_0x5359e0=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x5359e0[_0x578619(0x21a)]}),_0x301b87[_0x578619(0x216)](_0x41c9b7=>{const _0x54f38c=_0x578619;this[_0x54f38c(0x289)](_0x41c9b7,_0x5462e2);}),this[_0x578619(0x297)][_0x578619(0x22c)](_0x2b32b9);let _0x52f621=_0x301b87[_0x578619(0x218)](_0x39e9ab),_0x7919bc=this[_0x578619(0x220)](_0x5462e2),_0x5e4eaf=()=>{const _0x5e857f=_0x578619;_0x94e86e?_0x52f621['triggerCustomVersions'](_0x5462e2,_0x1afac1,_0x7919bc,_0x94e86e):_0x52f621[_0x5e857f(0x2b0)](_0x5462e2,_0x1afac1,_0x7919bc);};if(this[_0x578619(0x21b)]['show']({'content':this[_0x578619(0x282)]['t'](_0x578619(0x20a)),'type':_0x235979[_0x578619(0x287)]}),_0x3d5c10)try{_0x301b87['get'](_0x197e95)[_0x578619(0x201)]()[_0x578619(0x29d)](()=>{_0x5e4eaf();});}catch{_0x5e4eaf();}else _0x5e4eaf();}[_0xd3747d(0x289)](_0x4fcaa6,_0x55ca4d){const _0x6c1645=_0xd3747d;let _0x3d0820=_0x4fcaa6[_0x6c1645(0x218)](_0x39e9ab);this[_0x6c1645(0x227)][_0x6c1645(0x202)](_0x3d0820[_0x6c1645(0x280)][_0x6c1645(0x237)](_0x14434f=>{const _0x4fc1e7=_0x6c1645;switch(_0x14434f){case _0x3033a5[_0x4fc1e7(0x24a)]:this[_0x4fc1e7(0x28f)][_0x4fc1e7(0x26a)](),this[_0x4fc1e7(0x228)]['close']();break;case _0x3033a5[_0x4fc1e7(0x241)]:this[_0x4fc1e7(0x250)]['executeCommand'](q['id']),this[_0x4fc1e7(0x259)]();break;case _0x3033a5[_0x4fc1e7(0x267)]:this[_0x4fc1e7(0x259)](),this[_0x4fc1e7(0x21b)][_0x4fc1e7(0x24d)]({'content':this[_0x4fc1e7(0x282)]['t']('editHistory.panel.listFetchError'),'type':_0x235979[_0x4fc1e7(0x267)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x6c1645(0x202)](_0x3d0820[_0x6c1645(0x29e)][_0x6c1645(0x237)](async _0x48c774=>{const _0x53cd92=_0x6c1645;_0x48c774&&this['_commandService'][_0x53cd92(0x1fa)](_0x4a9cc0['id'],{'unitId':_0x55ca4d,'revision':_0x48c774});}));}[_0xd3747d(0x220)](_0x41ad54){const _0x4d8b71=_0xd3747d;let _0x5e2035=this[_0x4d8b71(0x229)][_0x4d8b71(0x2a3)](_0x41ad54)[_0x4d8b71(0x28e)]()[_0x4d8b71(0x209)](_0x2685c6=>_0x2685c6[_0x4d8b71(0x1fb)]()),_0x2d9f8c=new _0x210132(_0x41ad54)['id'],_0x5d8839=_0x5e2035[_0x4d8b71(0x209)](_0x467583=>new _0x1c1e44(_0x41ad54,_0x467583)['id']),_0x460820=_0x5e2035[_0x4d8b71(0x209)](_0x5eccb7=>this[_0x4d8b71(0x1f6)][_0x4d8b71(0x25a)](_0x41ad54,_0x5eccb7)['map'](_0x50f2c6=>new _0x15136c(_0x41ad54,_0x5eccb7,_0x50f2c6[_0x4d8b71(0x1f9)])['id']))[_0x4d8b71(0x264)](),_0x213824=new _0x56ae1e(_0x41ad54)['id'];return this[_0x4d8b71(0x248)][_0x4d8b71(0x25c)]([_0x2d9f8c,..._0x5d8839,..._0x460820,_0x213824])[_0x4d8b71(0x25e)](_0x1955e2=>!!_0x1955e2['value']);}};G=U([H(0x0,_0x506b77(_0x2fd53d)),H(0x1,_0x1bbbcc),H(0x2,_0x550417),H(0x3,_0x57aba4),H(0x4,_0x388624),H(0x5,_0x5dc172),H(0x6,_0x506b77(_0x34e08b)),H(0x7,_0x506b77(_0x4cc893)),H(0x8,_0x506b77(_0x376338)),H(0x9,_0x506b77(_0x56c0a0))],G);const K={'id':_0xd3747d(0x24b),'type':_0x46f158[_0xd3747d(0x1f2)],'handler':_0x523c34=>{const _0x309aea=_0xd3747d;let _0x2dd09b=_0x523c34[_0x309aea(0x218)](G),{unitId:_0x37586b}=_0x4eed07(_0x523c34[_0x309aea(0x218)](_0x1bbbcc))||{};return _0x37586b?(_0x2dd09b['mountHistoryContent'](_0x37586b),!0x0):!0x1;}},q={'id':_0xd3747d(0x277),'type':_0x46f158[_0xd3747d(0x1f2)],'handler':()=>!0x0};var st=_0xd3747d(0x23d),ct='0.24.0';function lt(_0x5dc746){const _0x5cc6a0=_0xd3747d;return{'id':K['id'],'type':_0x5aba48[_0x5cc6a0(0x239)],'icon':_0x5cc6a0(0x291),'tooltip':'editHistory.panel.title','hidden$':_0x3be5a3(_0x5dc746,_0x31ee75[_0x5cc6a0(0x27e)]),'disabled$':_0x565f31(_0x5dc746,{'workbookTypes':[_0x4de8e1],'worksheetTypes':[],'rangeTypes':[]})};}const ut={[_0x37854d[_0xd3747d(0x21f)]]:{[K['id']]:{'order':0.2,'menuItemFactory':lt}}};let J=class extends _0x23822b{constructor(_0x44a944,_0x44ae36,_0xf175e,_0x198901,_0x3a228e,_0x2942ed,_0xfd0988,_0x2f92de,_0x4d79f4,_0x4a2bad,_0x2b8630){const _0x3c58dc=_0xd3747d;super(),this[_0x3c58dc(0x250)]=_0x44a944,this[_0x3c58dc(0x295)]=_0x44ae36,this[_0x3c58dc(0x284)]=_0xf175e,this[_0x3c58dc(0x25d)]=_0x198901,this[_0x3c58dc(0x282)]=_0x3a228e,this[_0x3c58dc(0x21b)]=_0x2942ed,this[_0x3c58dc(0x1fe)]=_0xfd0988,this[_0x3c58dc(0x28c)]=_0x2f92de,this[_0x3c58dc(0x299)]=_0x4d79f4,this[_0x3c58dc(0x229)]=_0x4a2bad,this[_0x3c58dc(0x224)]=_0x2b8630,V(this,_0x3c58dc(0x20f),null),this[_0x3c58dc(0x1f5)]();}[_0xd3747d(0x1f5)](){const _0x359ffd=_0xd3747d;[K,q]['forEach'](_0x54bafd=>this[_0x359ffd(0x223)](_0x3e40d9(this[_0x359ffd(0x250)]['registerCommand'](_0x54bafd)))),this['disposeWithMe'](this[_0x359ffd(0x284)][_0x359ffd(0x2ae)]('HistoryIcon',_0x357cc1)),this[_0x359ffd(0x295)][_0x359ffd(0x279)](ut),this[_0x359ffd(0x223)](this['_commandService'][_0x359ffd(0x253)](async(_0x7bf22e,_0xe85134)=>{const _0x28f9cb=_0x359ffd;if(_0x7bf22e['id']===_0x4a9cc0['id']){let {unitId:_0x2fc530}=_0x7bf22e[_0x28f9cb(0x252)];this['_messageService']['show']({'content':this[_0x28f9cb(0x282)]['t'](_0x28f9cb(0x208)),'type':_0x235979[_0x28f9cb(0x287)],'duration':0x1388});let _0x5d9446=this['_collaborationController'][_0x28f9cb(0x1f0)](_0x2fc530);_0xe85134!=null&&_0xe85134[_0x28f9cb(0x23c)]?this[_0x28f9cb(0x274)](_0x5d9446,async()=>(setTimeout(()=>window[_0x28f9cb(0x244)][_0x28f9cb(0x1eb)]()),!0x0),!0x0):this[_0x28f9cb(0x274)](_0x5d9446,async()=>{const _0x48ff35=_0x28f9cb;let _0x4250ac=this[_0x48ff35(0x229)][_0x48ff35(0x272)](_0x31ee75[_0x48ff35(0x27e)]),_0x1d3004=_0x4250ac==null?void 0x0:_0x4250ac[_0x48ff35(0x1ec)]();if(!_0x1d3004)return!0x1;this['_univerInstanceService'][_0x48ff35(0x2ac)](_0x2fc530);let _0x6e38a8=await this[_0x48ff35(0x299)][_0x48ff35(0x2ad)](_0x2fc530,_0x31ee75['UNIVER_SHEET']);return _0x6e38a8&&_0x6e38a8 instanceof _0x2a7488?(await this[_0x48ff35(0x2a6)](_0x6e38a8,_0x1d3004['getSheetId']()),!0x0):!0x1;});}}));}[_0xd3747d(0x274)](_0x28b756,_0x7d8d01,_0x430d19=!0x1){const _0x55ad57=_0xd3747d;let _0x9f78bb=_0x3fef9b([_0x28b756[_0x55ad57(0x1f1)][_0x55ad57(0x203)],_0x28b756['state$']])[_0x55ad57(0x237)](async([_0x4e3ca6,_0x261f54])=>{const _0x2563a7=_0x55ad57;if(_0x4e3ca6[_0x2563a7(0x1f8)]===_0x473a70[_0x2563a7(0x27a)]&&(_0x261f54==null?void 0x0:_0x261f54['status'])===_0x1c0ec0[_0x2563a7(0x2a7)]&&_0x4e3ca6[_0x2563a7(0x21d)][_0x2563a7(0x266)][_0x2563a7(0x263)](_0xe399ce=>_0xe399ce['id']===_0x4a9cc0['id'])&&await _0x7d8d01()){var _0x550163;this[_0x2563a7(0x25d)][_0x2563a7(0x259)](),_0x9f78bb[_0x2563a7(0x1f3)](),this[_0x2563a7(0x20f)]&&clearTimeout(this[_0x2563a7(0x20f)]),await((_0x550163=this[_0x2563a7(0x28c)])==null?void 0x0:_0x550163[_0x2563a7(0x256)]()),this['_messageService']['removeAll']();}});_0x430d19&&(this[_0x55ad57(0x20f)]=setTimeout(()=>{const _0x1d9751=_0x55ad57;_0x9f78bb[_0x1d9751(0x1f3)](),this['_messageService'][_0x1d9751(0x24d)]({'content':this[_0x1d9751(0x282)]['t'](_0x1d9751(0x2a0)),'type':_0x235979['Error'],'duration':0xbb8});},0x1388));}async[_0xd3747d(0x2a6)](_0x3628fe,_0xf81a26){const _0x27dbed=_0xd3747d;await this[_0x27dbed(0x247)](_0x3628fe,_0xf81a26),_0x3628fe['activeSheet$'][_0x27dbed(0x261)](_0x181a1c(this[_0x27dbed(0x231)]))[_0x27dbed(0x237)](_0x3a3978=>{const _0x4f1e04=_0x27dbed;_0x3a3978&&this[_0x4f1e04(0x22b)](_0x3a3978);}),this[_0x27dbed(0x224)][_0x27dbed(0x262)][_0x27dbed(0x261)](_0x181a1c(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3628fe,_0xf81a26));}[_0xd3747d(0x22b)](_0x209b16,_0x3864ab=!0x1){const _0x7a48f3=_0xd3747d;let _0x2350bb=this['_urlService'][_0x7a48f3(0x271)]('subunit');_0x209b16[_0x7a48f3(0x1fb)]()!==_0x2350bb&&this['_urlService']['setParam'](_0x7a48f3(0x226),_0x209b16[_0x7a48f3(0x1fb)](),_0x3864ab);}async[_0xd3747d(0x247)](_0x554f73,_0x2c4c39){const _0x49b1c6=_0xd3747d;var _0x378e81;if(!_0x2c4c39||!_0x554f73['getSheetBySheetId'](_0x2c4c39)){let _0x3903a0=_0x554f73[_0x49b1c6(0x2a9)]()[0x0],_0x23b7c8=_0x554f73[_0x49b1c6(0x257)](_0x3903a0);if(!_0x23b7c8)return;this[_0x49b1c6(0x22b)](_0x23b7c8,!0x0),await this['_commandService'][_0x49b1c6(0x1fa)](_0x5ddf17['id'],{'unitId':_0x554f73[_0x49b1c6(0x21c)](),'subUnitId':_0x3903a0});return;}((_0x378e81=_0x554f73['getActiveSheet']())==null?void 0x0:_0x378e81[_0x49b1c6(0x1fb)]())!==_0x2c4c39&&await this[_0x49b1c6(0x250)]['executeCommand'](_0x5ddf17['id'],{'unitId':_0x554f73['getUnitId'](),'subUnitId':_0x2c4c39});}};J=U([H(0x0,_0x57aba4),H(0x1,_0x7ea17b),H(0x2,_0x506b77(_0x579cf7)),H(0x3,_0x506b77(G)),H(0x4,_0x506b77(_0x2fd53d)),H(0x5,_0x388624),H(0x6,_0x506b77(_0x403598)),H(0x7,_0x4cecb8),H(0x8,_0x506b77(_0x297f87)),H(0x9,_0x1bbbcc),H(0xa,_0x43f444)],J);const Y=_0xd3747d(0x26c);let X=class extends _0x6c5d76{constructor(_0x5734c8,_0x570db8,_0x574e00,_0x3063b5,_0xe05beb,_0x56e59b,_0x22bf3e,_0x2b852d,_0x4872b1,_0x15ff97){const _0x41d24d=_0xd3747d;super(),this[_0x41d24d(0x282)]=_0x5734c8,this[_0x41d24d(0x229)]=_0x570db8,this['_configService']=_0x574e00,this[_0x41d24d(0x250)]=_0x3063b5,this[_0x41d24d(0x21b)]=_0xe05beb,this[_0x41d24d(0x248)]=_0x56e59b,this[_0x41d24d(0x1f6)]=_0x22bf3e,this[_0x41d24d(0x28f)]=_0x2b852d,this[_0x41d24d(0x228)]=_0x4872b1,this[_0x41d24d(0x2a2)]=_0x15ff97,V(this,_0x41d24d(0x297),new _0xf7d34(null)),V(this,_0x41d24d(0x260),this[_0x41d24d(0x297)][_0x41d24d(0x205)]()),V(this,'_disposableCollection',new _0x58b672()),V(this,_0x41d24d(0x23a),new Map()),V(this,_0x41d24d(0x23b),null),this[_0x41d24d(0x1f5)]();}get[_0xd3747d(0x27b)](){const _0x3405cf=_0xd3747d;return this[_0x3405cf(0x297)][_0x3405cf(0x290)];}[_0xd3747d(0x1f5)](){const _0x1d5728=_0xd3747d;this[_0x1d5728(0x1ff)](),this['_initPlugins']();}['_initContainer'](){const _0x1f326f=_0xd3747d;var _0x2e3972;let _0x2cba4e=(_0x2e3972=this[_0x1f326f(0x29c)][_0x1f326f(0x20b)](_0x1f326f(0x204)))==null?_0x1f326f(0x1ea):_0x2e3972,_0x223f83=document[_0x1f326f(0x268)](_0x2cba4e);if(!_0x223f83)return;let _0x3ded1b=document['createElement'](_0x1f326f(0x281));_0x3ded1b['id']=Y,_0x3ded1b[_0x1f326f(0x1fc)][_0x1f326f(0x292)]=_0x1f326f(0x24e),_0x3ded1b['style'][_0x1f326f(0x225)]='absolute',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x265)]='0',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x258)]='0',_0x3ded1b[_0x1f326f(0x25b)]['width']='100%',_0x3ded1b[_0x1f326f(0x25b)]['height']=_0x1f326f(0x269),_0x3ded1b[_0x1f326f(0x25b)]['zIndex']='49',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x207)]=_0x1f326f(0x2aa),_0x223f83[_0x1f326f(0x27f)](_0x3ded1b);}['_initPlugins'](){const _0x12477f=_0xd3747d;[[_0x270392],[_0x3b5660,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cc893,null]]}],[_0x458233],[_0x798726,{'override':[[_0x5bff47,null]]}],[_0x56f869,{'hasScroll':!0x1}],[_0x1b9c79],[_0x48f874],[_0x33c86b,{'notExecuteFormula':!0x0}],[_0x4307c2],[_0xfe84d7],[_0x562138],[_0x540b93],[_0x50dd11],[_0x8742fa],[_0x332a69],[_0x15240e],[_0x318883],[_0x3dd0c9],[_0xd9d82f],[_0x1d50f9,{'notExecuteFormula':!0x0}],[_0x4abb8b],[_0x5b59e6],[_0x363dea],[_0x4eb0a1],[_0xf3b184],[_0x3ab737],[_0xc6fc17],[_0xd239],[_0x5310aa],[_0x41cc6c,{'notExecuteFormula':!0x0}],[_0x1ffac4]][_0x12477f(0x2ab)](([_0x5cf5b1,_0xaf3d7])=>this[_0x12477f(0x1ee)](_0x5cf5b1,_0xaf3d7));}[_0xd3747d(0x246)](){const _0x34110f=_0xd3747d;super[_0x34110f(0x246)](),this[_0x34110f(0x259)](),this['_pluginMap'][_0x34110f(0x243)]();}[_0xd3747d(0x1ee)](_0x11c668,_0x226afe,_0x287987){const _0x2b1935=_0xd3747d;if(this[_0x2b1935(0x23a)][_0x2b1935(0x20e)](_0x11c668['pluginName'])&&!_0x287987)throw Error(_0x2b1935(0x221)+_0x11c668[_0x2b1935(0x293)]+_0x2b1935(0x1ed));this[_0x2b1935(0x23a)][_0x2b1935(0x24f)](_0x11c668[_0x2b1935(0x293)],[_0x11c668,_0x226afe]);}[_0xd3747d(0x28b)](){const _0x10f2eb=_0xd3747d;return Array[_0x10f2eb(0x251)](this[_0x10f2eb(0x23a)]['values']());}[_0xd3747d(0x26e)](_0x37845b,_0x26efa9){const _0x247df5=_0xd3747d;let _0x1ccbcb=document[_0x247df5(0x268)](Y);_0x1ccbcb&&(_0x1ccbcb[_0x247df5(0x25b)][_0x247df5(0x207)]='block',this[_0x247df5(0x22e)](_0x37845b,Y,_0x26efa9));}[_0xd3747d(0x259)](){const _0x27d942=_0xd3747d;var _0x21ef22;this[_0x27d942(0x227)]['dispose'](),(_0x21ef22=this[_0x27d942(0x27b)])==null||_0x21ef22[_0x27d942(0x246)](),this[_0x27d942(0x297)]['next'](null);let _0x43f433=document[_0x27d942(0x268)](Y);_0x43f433&&(_0x43f433['style']['display']=_0x27d942(0x2aa),this[_0x27d942(0x23b)]&&(this['_internalWebWorker'][_0x27d942(0x200)](),this[_0x27d942(0x23b)]=null));}[_0xd3747d(0x22e)](_0x36fd80,_0x171a0a,_0x5bcf25){const _0x481bb6=_0xd3747d;var _0xdd4788,_0x13e453,_0x48effa,_0xba84c8;if(this['historyUniver'])return;let _0xb8e56c=new _0x33c36b({'locales':{[this[_0x481bb6(0x282)][_0x481bb6(0x222)]()]:this['_localeService']['getLocales']()},'override':[[_0x25a20c,{'useClass':_0x328722}]]}),_0x244bb1=_0xb8e56c['__getInjector']();this[_0x481bb6(0x223)](this[_0x481bb6(0x2a2)][_0x481bb6(0x217)]['subscribe'](_0x2bd20c=>{const _0x58c342=_0x481bb6;_0x244bb1[_0x58c342(0x218)](_0x56c0a0)[_0x58c342(0x219)](_0x2bd20c);})),this[_0x481bb6(0x223)](this[_0x481bb6(0x2a2)][_0x481bb6(0x22d)][_0x481bb6(0x237)](_0x492bf6=>{const _0x2936f2=_0x481bb6;_0x244bb1[_0x2936f2(0x218)](_0x56c0a0)[_0x2936f2(0x213)](_0x492bf6);})),_0x244bb1[_0x481bb6(0x218)](_0x2fd53d)[_0x481bb6(0x26f)](this[_0x481bb6(0x282)][_0x481bb6(0x222)]()),_0x244bb1['get'](_0x550417)[_0x481bb6(0x206)](_0x249dd6,this[_0x481bb6(0x29c)][_0x481bb6(0x20b)](_0x249dd6));let _0x31d198=this['_configService'][_0x481bb6(0x20b)](_0x1ae143);_0x31d198&&_0xb8e56c[_0x481bb6(0x1ee)](_0x42940f,{'license':_0x31d198['ls']});let _0x4d7fee=(_0xdd4788=this[_0x481bb6(0x29c)][_0x481bb6(0x20b)](_0x481bb6(0x2a1)))==null?void 0x0:_0xdd4788[_0x481bb6(0x238)],_0x7c6541=!!_0x4d7fee;_0x7c6541&&(this[_0x481bb6(0x23b)]=_0x4d7fee instanceof Worker?_0x4d7fee:null,_0xb8e56c[_0x481bb6(0x1ee)](_0x14cb3e,{'workerURL':_0x4d7fee})),this['_pluginMap']['forEach'](([_0x53566e,_0x5bf69b])=>{const _0x32eb17=_0x481bb6;_0xb8e56c[_0x32eb17(0x1ee)](_0x53566e,_0x5bf69b);}),_0xb8e56c['registerPlugin'](_0x55a3ef,{'historyListServerUrl':(_0x13e453=this[_0x481bb6(0x29c)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x13e453[_0x481bb6(0x1e9)],'historyPanelComponentKey':(_0x48effa=this['_configService']['getConfig'](_0x481bb6(0x2a1)))==null?void 0x0:_0x48effa['historyPanelComponentKey'],'historyPanelHidden':(_0xba84c8=this[_0x481bb6(0x29c)]['getConfig'](_0x481bb6(0x2a1)))==null?void 0x0:_0xba84c8[_0x481bb6(0x1e8)]}),_0x244bb1['invoke'](_0x149a83=>{const _0x7269a9=_0x481bb6;this[_0x7269a9(0x289)](_0x149a83,_0x36fd80);}),this[_0x481bb6(0x297)][_0x481bb6(0x22c)](_0xb8e56c);let _0x3eb7e0=_0x244bb1['get'](_0x39e9ab),_0x4f2b0c=this[_0x481bb6(0x220)](_0x36fd80),_0x5e2fb2=()=>{const _0x3ad07e=_0x481bb6;_0x5bcf25?_0x3eb7e0[_0x3ad07e(0x20c)](_0x36fd80,_0x171a0a,_0x4f2b0c,_0x5bcf25):_0x3eb7e0[_0x3ad07e(0x2b0)](_0x36fd80,_0x171a0a,_0x4f2b0c);};if(this[_0x481bb6(0x21b)][_0x481bb6(0x24d)]({'content':this[_0x481bb6(0x282)]['t'](_0x481bb6(0x20a)),'type':_0x235979[_0x481bb6(0x287)]}),_0x7c6541)try{_0x244bb1[_0x481bb6(0x218)](_0x197e95)[_0x481bb6(0x201)]()[_0x481bb6(0x29d)](()=>{_0x5e2fb2();});}catch{_0x5e2fb2();}else _0x5e2fb2();}['_initListener'](_0x3e7ef7,_0x307407){const _0x51fd56=_0xd3747d;let _0x28ef2a=_0x3e7ef7['get'](_0x39e9ab);this[_0x51fd56(0x227)][_0x51fd56(0x202)](_0x28ef2a[_0x51fd56(0x280)][_0x51fd56(0x237)](_0x234251=>{const _0x32cb03=_0x51fd56;switch(_0x234251){case _0x3033a5[_0x32cb03(0x24a)]:this[_0x32cb03(0x28f)][_0x32cb03(0x26a)](),this[_0x32cb03(0x228)][_0x32cb03(0x286)]();break;case _0x3033a5[_0x32cb03(0x241)]:this['_commandService'][_0x32cb03(0x1fa)](q['id']),this[_0x32cb03(0x259)]();break;case _0x3033a5['Error']:this[_0x32cb03(0x259)](),this[_0x32cb03(0x21b)][_0x32cb03(0x24d)]({'content':this[_0x32cb03(0x282)]['t'](_0x32cb03(0x23e)),'type':_0x235979['Error'],'duration':0xbb8});break;default:break;}})),this[_0x51fd56(0x227)][_0x51fd56(0x202)](_0x28ef2a[_0x51fd56(0x29e)][_0x51fd56(0x237)](async _0x48c42a=>{_0x48c42a&&this['_commandService']['executeCommand'](_0x4a9cc0['id'],{'unitId':_0x307407,'revision':_0x48c42a});}));}[_0xd3747d(0x220)](_0x807a0d){const _0x217da1=_0xd3747d;let _0x72c9d5=this[_0x217da1(0x229)][_0x217da1(0x2a3)](_0x807a0d)[_0x217da1(0x28e)]()['map'](_0x996447=>_0x996447[_0x217da1(0x1fb)]()),_0x5bcc7d=new _0x210132(_0x807a0d)['id'],_0x25c279=_0x72c9d5[_0x217da1(0x209)](_0xf1500e=>new _0x1c1e44(_0x807a0d,_0xf1500e)['id']),_0x3da1b6=_0x72c9d5[_0x217da1(0x209)](_0x3b01c4=>this[_0x217da1(0x1f6)][_0x217da1(0x25a)](_0x807a0d,_0x3b01c4)['map'](_0x502801=>new _0x15136c(_0x807a0d,_0x3b01c4,_0x502801['permissionId'])['id']))[_0x217da1(0x264)](),_0x2e8a69=new _0x56ae1e(_0x807a0d)['id'];return this[_0x217da1(0x248)][_0x217da1(0x25c)]([_0x5bcc7d,..._0x25c279,..._0x3da1b6,_0x2e8a69])[_0x217da1(0x25e)](_0x1771c0=>!!_0x1771c0[_0x217da1(0x290)]);}};X=U([H(0x0,_0x506b77(_0x2fd53d)),H(0x1,_0x1bbbcc),H(0x2,_0x550417),H(0x3,_0x57aba4),H(0x4,_0x388624),H(0x5,_0x5dc172),H(0x6,_0x506b77(_0x34e08b)),H(0x7,_0x506b77(_0x4cc893)),H(0x8,_0x506b77(_0x376338)),H(0x9,_0x506b77(_0x56c0a0))],X);let Z=class extends _0x545f8f{constructor(_0xad6b19=z,_0x4b8c2b,_0x39ed14){const _0x16339b=_0xd3747d;super(),this[_0x16339b(0x276)]=_0xad6b19,this[_0x16339b(0x298)]=_0x4b8c2b,this[_0x16339b(0x29c)]=_0x39ed14;let {menu:_0x1053b4,..._0x67b106}=_0x33300f({},z,this[_0x16339b(0x276)]);_0x1053b4&&this[_0x16339b(0x29c)]['setConfig'](_0x16339b(0x26b),_0x1053b4,{'merge':!0x0}),this[_0x16339b(0x29c)][_0x16339b(0x206)](R,_0x67b106),this[_0x16339b(0x276)][_0x16339b(0x275)]&&this[_0x16339b(0x29c)][_0x16339b(0x206)](_0x16339b(0x204),this[_0x16339b(0x276)]['univerContainerId']);}[_0xd3747d(0x236)](){const _0x312513=_0xd3747d;[[G,{'useClass':X}],[J]][_0x312513(0x2ab)](_0x1abbb2=>this[_0x312513(0x298)][_0x312513(0x202)](_0x1abbb2));}['onSteady'](){const _0x25615b=_0xd3747d;this[_0x25615b(0x298)][_0x25615b(0x218)](J);}};V(Z,'type',_0x31ee75[_0xd3747d(0x270)]),V(Z,_0xd3747d(0x293),_0xd3747d(0x235)),V(Z,_0xd3747d(0x29a),st),V(Z,_0xd3747d(0x249),ct),Z=U([_0xeab6e0(_0x42940f),H(0x1,_0x506b77(_0x11bf60)),H(0x2,_0x550417)],Z);let Q=class extends _0x23822b{constructor(_0x2fce87,_0x3ce960,_0x200965,_0x328b0d,_0x28da8c,_0xb81b75,_0x1ecccb,_0x508032,_0x2678b0,_0x5967bd,_0x35c0b8){const _0x2ad92b=_0xd3747d;super(),this[_0x2ad92b(0x250)]=_0x2fce87,this[_0x2ad92b(0x295)]=_0x3ce960,this[_0x2ad92b(0x284)]=_0x200965,this[_0x2ad92b(0x25d)]=_0x328b0d,this[_0x2ad92b(0x282)]=_0x28da8c,this[_0x2ad92b(0x21b)]=_0xb81b75,this[_0x2ad92b(0x1fe)]=_0x1ecccb,this[_0x2ad92b(0x28c)]=_0x508032,this[_0x2ad92b(0x299)]=_0x2678b0,this['_univerInstanceService']=_0x5967bd,this[_0x2ad92b(0x224)]=_0x35c0b8,V(this,_0x2ad92b(0x20f),null),this[_0x2ad92b(0x1f5)]();}[_0xd3747d(0x1f5)](){const _0x312fa5=_0xd3747d;[K,q][_0x312fa5(0x2ab)](_0x5725be=>this[_0x312fa5(0x223)](_0x3e40d9(this[_0x312fa5(0x250)][_0x312fa5(0x245)](_0x5725be)))),this[_0x312fa5(0x223)](this[_0x312fa5(0x284)][_0x312fa5(0x2ae)]('HistoryIcon',_0x357cc1)),this[_0x312fa5(0x295)][_0x312fa5(0x279)](ut),this[_0x312fa5(0x223)](this[_0x312fa5(0x250)][_0x312fa5(0x253)](async(_0xfef9a9,_0x2e6d03)=>{const _0x35cfcb=_0x312fa5;if(_0xfef9a9['id']===_0x4a9cc0['id']){let {unitId:_0x599738}=_0xfef9a9[_0x35cfcb(0x252)];this['_messageService'][_0x35cfcb(0x24d)]({'content':this[_0x35cfcb(0x282)]['t']('editHistory.panel.reverting'),'type':_0x235979[_0x35cfcb(0x287)],'duration':0x1388});let _0x536ca8=this[_0x35cfcb(0x1fe)][_0x35cfcb(0x1f0)](_0x599738);_0x2e6d03!=null&&_0x2e6d03['fromCollab']?this[_0x35cfcb(0x274)](_0x536ca8,async()=>(setTimeout(()=>window[_0x35cfcb(0x244)]['reload']()),!0x0),!0x0):this[_0x35cfcb(0x274)](_0x536ca8,async()=>{const _0x3bd65b=_0x35cfcb;let _0x312b03=this[_0x3bd65b(0x229)][_0x3bd65b(0x272)](_0x31ee75['UNIVER_SHEET']),_0x87f72=_0x312b03==null?void 0x0:_0x312b03['getActiveSheet']();if(!_0x87f72)return!0x1;this['_univerInstanceService'][_0x3bd65b(0x2ac)](_0x599738);let _0x5e6000=await this[_0x3bd65b(0x299)][_0x3bd65b(0x2ad)](_0x599738,_0x31ee75['UNIVER_SHEET']);return _0x5e6000&&_0x5e6000 instanceof _0x2a7488?(await this['_setupSubUnitSync'](_0x5e6000,_0x87f72['getSheetId']()),!0x0):!0x1;});}}));}[_0xd3747d(0x274)](_0x1279eb,_0x22db95,_0x27355f=!0x1){const _0x522a5a=_0xd3747d;let _0x49dd69=_0x3fef9b([_0x1279eb[_0x522a5a(0x1f1)][_0x522a5a(0x203)],_0x1279eb[_0x522a5a(0x2a4)]])[_0x522a5a(0x237)](async([_0x40d65e,_0x1d951a])=>{const _0x51ca58=_0x522a5a;if(_0x40d65e[_0x51ca58(0x1f8)]===_0x473a70[_0x51ca58(0x27a)]&&(_0x1d951a==null?void 0x0:_0x1d951a[_0x51ca58(0x232)])===_0x1c0ec0[_0x51ca58(0x2a7)]&&_0x40d65e[_0x51ca58(0x21d)][_0x51ca58(0x266)][_0x51ca58(0x263)](_0x3e1e32=>_0x3e1e32['id']===_0x4a9cc0['id'])&&await _0x22db95()){var _0x2b1443;this[_0x51ca58(0x25d)][_0x51ca58(0x259)](),_0x49dd69['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x51ca58(0x20f)]),await((_0x2b1443=this[_0x51ca58(0x28c)])==null?void 0x0:_0x2b1443[_0x51ca58(0x256)]());}});_0x27355f&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x11b05a=_0x522a5a;_0x49dd69[_0x11b05a(0x1f3)](),this[_0x11b05a(0x21b)][_0x11b05a(0x24d)]({'content':this['_localeService']['t'](_0x11b05a(0x2a0)),'type':_0x235979['Error'],'duration':0xbb8});},0x1388));}async[_0xd3747d(0x2a6)](_0xfbf23d,_0x1a2eb2){const _0x2d1810=_0xd3747d;await this[_0x2d1810(0x247)](_0xfbf23d,_0x1a2eb2),_0xfbf23d[_0x2d1810(0x24c)][_0x2d1810(0x261)](_0x181a1c(this['dispose$']))[_0x2d1810(0x237)](_0x237358=>{_0x237358&&this['_updateURLWithCurrentState'](_0x237358);}),this[_0x2d1810(0x224)][_0x2d1810(0x262)][_0x2d1810(0x261)](_0x181a1c(this[_0x2d1810(0x231)]))[_0x2d1810(0x237)](()=>this[_0x2d1810(0x247)](_0xfbf23d,_0x1a2eb2));}[_0xd3747d(0x22b)](_0x501bfd,_0x4ad9fa=!0x1){const _0x376bef=_0xd3747d;let _0x4d553c=this['_urlService']['getParam']('subunit');_0x501bfd[_0x376bef(0x1fb)]()!==_0x4d553c&&this[_0x376bef(0x224)][_0x376bef(0x25f)]('subunit',_0x501bfd['getSheetId'](),_0x4ad9fa);}async[_0xd3747d(0x247)](_0x52f74c,_0x4cbf34){const _0x54938e=_0xd3747d;var _0x1c9828;if(!_0x4cbf34||!_0x52f74c[_0x54938e(0x257)](_0x4cbf34)){let _0x34336e=_0x52f74c[_0x54938e(0x2a9)]()[0x0],_0x494b17=_0x52f74c['getSheetBySheetId'](_0x34336e);if(!_0x494b17)return;this[_0x54938e(0x22b)](_0x494b17,!0x0),await this[_0x54938e(0x250)][_0x54938e(0x1fa)](_0x5ddf17['id'],{'unitId':_0x52f74c[_0x54938e(0x21c)](),'subUnitId':_0x34336e});return;}((_0x1c9828=_0x52f74c[_0x54938e(0x1ec)]())==null?void 0x0:_0x1c9828[_0x54938e(0x1fb)]())!==_0x4cbf34&&await this[_0x54938e(0x250)][_0x54938e(0x1fa)](_0x5ddf17['id'],{'unitId':_0x52f74c[_0x54938e(0x21c)](),'subUnitId':_0x4cbf34});}};Q=U([H(0x0,_0x57aba4),H(0x1,_0x7ea17b),H(0x2,_0x506b77(_0x579cf7)),H(0x3,_0x506b77(G)),H(0x4,_0x506b77(_0x2fd53d)),H(0x5,_0x388624),H(0x6,_0x506b77(_0x403598)),H(0x7,_0x4cecb8),H(0x8,_0x506b77(_0x297f87)),H(0x9,_0x1bbbcc),H(0xa,_0x43f444)],Q);let $=class extends _0x545f8f{constructor(_0x5ab643=z,_0x31e475,_0x2bd815){const _0x2d9a4a=_0xd3747d;super(),this[_0x2d9a4a(0x276)]=_0x5ab643,this['_injector']=_0x31e475,this[_0x2d9a4a(0x29c)]=_0x2bd815;let {menu:_0xa082c6,..._0x45529b}=_0x33300f({},z,this[_0x2d9a4a(0x276)]);_0xa082c6&&this['_configService'][_0x2d9a4a(0x206)]('menu',_0xa082c6,{'merge':!0x0}),this['_configService']['setConfig'](R,_0x45529b),this['_config'][_0x2d9a4a(0x275)]&&this[_0x2d9a4a(0x29c)][_0x2d9a4a(0x206)](ot,this[_0x2d9a4a(0x276)][_0x2d9a4a(0x275)]);}[_0xd3747d(0x236)](){const _0x2b8bd4=_0xd3747d;[[G],[Q]][_0x2b8bd4(0x2ab)](_0x1f9e66=>this[_0x2b8bd4(0x298)][_0x2b8bd4(0x202)](_0x1f9e66));}[_0xd3747d(0x211)](){const _0x2cd489=_0xd3747d;this[_0x2cd489(0x298)]['get'](Q);}};V($,_0xd3747d(0x23f),_0x31ee75[_0xd3747d(0x270)]),V($,_0xd3747d(0x293),_0xd3747d(0x215)),V($,_0xd3747d(0x29a),st),V($,_0xd3747d(0x249),ct),$=U([_0xeab6e0(_0x42940f),H(0x1,_0x506b77(_0x11bf60)),H(0x2,_0x550417)],$);export{R as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,ot as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x4c49c2=_0x49b6;(function(_0x46ebae,_0x3ea2f8){const _0x2ee78b=_0x49b6,_0x541e1b=_0x46ebae();while(!![]){try{const _0x3fcad8=parseInt(_0x2ee78b(0x22e))/0x1*(parseInt(_0x2ee78b(0x229))/0x2)+parseInt(_0x2ee78b(0x213))/0x3+parseInt(_0x2ee78b(0x1d2))/0x4*(-parseInt(_0x2ee78b(0x252))/0x5)+-parseInt(_0x2ee78b(0x1fd))/0x6*(-parseInt(_0x2ee78b(0x1a2))/0x7)+-parseInt(_0x2ee78b(0x1fc))/0x8*(-parseInt(_0x2ee78b(0x257))/0x9)+-parseInt(_0x2ee78b(0x237))/0xa*(-parseInt(_0x2ee78b(0x255))/0xb)+-parseInt(_0x2ee78b(0x218))/0xc;if(_0x3fcad8===_0x3ea2f8)break;else _0x541e1b['push'](_0x541e1b['shift']());}catch(_0x2686b2){_0x541e1b['push'](_0x541e1b['shift']());}}}(_0x2793,0x1e7c4));import{CommandType as _0x519d99,DependentOn as _0x332599,Disposable as _0x2a3e77,DisposableCollection as _0x1d9150,IAuthzIoService as _0x8140f0,ICommandService as _0x18e0ae,IConfigService as _0x2358af,IPermissionService as _0x3608c8,IUniverInstanceService as _0x3a5724,Inject as _0x2a1c21,Injector as _0x58e461,LocaleService as _0x4481e5,Plugin as _0x7d98a3,RxDisposable as _0x3f5b03,ThemeService as _0x171164,Univer as _0x9dd17b,UniverInstanceType as _0x3ba906,Workbook as _0x9fce4d,merge as _0x410477,toDisposable as _0x1e746a}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x50ad28,RangeProtectionRuleModel as _0x16ed19,SetWorksheetActivateCommand as _0x5ebce6,UniverSheetsPlugin as _0x37f383,WorkbookEditablePermission as _0x3d1217,WorkbookRecoverHistoryPermission as _0x266a14,WorkbookViewHistoryPermission as _0x268bff,WorksheetEditPermission as _0x5bed14,getSheetCommandTarget as _0x1ef74b}from'@univerjs/sheets';import{CollaborationEvent as _0x2db2ee,RevertRevisionMutation as _0x526ad7,UniverCollaborationPlugin as _0x45abad}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x168266,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x37ae5d,CollaborationController as _0x341c06,CollaborationStatus as _0x46c40d,DataLoaderService as _0x57070e,ILocalCacheService as _0x310f1b}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x41efc8,HistoryModeStatus as _0x203990,UniverEditHistoryViewerMobilePlugin as _0x502946,UniverEditHistoryViewerPlugin as _0x2cde77}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x59d6d1,UniverLicensePlugin as _0x3c1214}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0xa34c36}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xe205b7}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x418476}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x57f8cb}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x10415a}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x2f2ad7}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5a9ca5}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x199a16}from'@univerjs/data-validation';import{MessageType as _0x21300f}from'@univerjs/design';import{UniverDocsPlugin as _0x4ba5f1}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x4dc8ee}from'@univerjs/docs-ui';import{IImageIoService as _0x29d249,UniverDrawingPlugin as _0x5a5fc3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x29a515}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x179a24}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x12c6f7}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x57816a}from'@univerjs/network';import{IRemoteInstanceService as _0x2d798e,UniverRPCMainThreadPlugin as _0x5097e6}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x58f56a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x46159a}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0xaed69e}from'@univerjs/sheets-data-validation';function _0x2793(){const _0x5b1682=['iterator','reload','univer-container','_dialogService','24uPexpC','298314TjrSJx','univerContainerId','composePermission','next','triggerCustomVersions','_updateURLWithCurrentState','[MobileHistoryLoaderService]:\x20Plugin\x20','workerURL','getOwnPropertyDescriptor','width','getCurrentLocale','div','registerPlugin','getSheetBySheetId','_setupSubUnitSync','whenReady','then','left','mergeMenu','menu','data','_historyManagerService','41850QEECSB','session','_historyUniver$','loadUnit','_revertErrorTimer','2888832nALCJu','_initContainer','_componentManager','history-container','toPrimitive','revertRevision$','\x20has\x20been\x20registered.','object','packageName','getActiveSheet','defineProperty','setDarkMode','has','setParam','_urlService','params','disposeWithMe','118BHgFPS','type','getSheets','getAllPlugins','setLocale','2887wEVEqc','getLocales','position','function','values','block','getCurrentUnitOfType','version','default','865230HeBFeo','edit-history-loader.config','getElementById','getCollabEntity','_localCacheService','_menuManagerService','uComp','_collaborationController','value','univer.operation.exit-edit-history','symbol','_univerInstanceService','none','HistoryIcon','edit-history-loader.panel.listFetchError','edit-history-loader.panel.reverting','get','historyListServerUrl','100%','onCommandExecuted','Exited','disposeUnit','_internalWebWorker','set','state$','edit-history-loader.info.initializing','createElement','5EgWskN','unMountHistoryContent','permissionId','11wYwgrm','decorate','422991lZcquh','_injector','UNIVER_UNKNOWN','length','univer-history-container-mobile','_configService','_localeService','UNIVER_CONTAINER_ID','dataset','_permissionService','getParam','flat','style','some','14HxCAsp','_initUniver','getUnhiddenWorksheets','unsubscribe','_updateSubUnitFromURLParams','_selectionProtectionRuleModel','from','_themeService','closeAll','zIndex','forEach','status$','call','close','map','CHANGESET_ACK','__getInjector','OTHERS','_commandService','display','_checkCanRevert','getUnitId','pluginName','Error','OPERATION','onStarting','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','mutations','add','absolute','currentTheme$','_sidebarService','pipe','exhaustSavingTask','_messageService','event$','every','appendChild','registerCommand','height','activeSheet$','location','getConfig','getSubunitRuleList','terminate','edit-history-loader.panel.revertFailed','invoke','top','582548gJPJev','subunit','BUTTON','_pluginMap','string','urlChange$','triggerLoadVersions','_handleRevertAcknowledgement','setConfig','Loading','setTheme','_dataLoaderService','dispose','getUnit','subscribe','mountHistoryContent','fromCollab','SYNCED','_initPlugins','show','historyUniver$','darkMode$','onSteady','getSheetId','_disposableCollection','_initListener','prototype','dispose$','[HistoryLoaderService]:\x20Plugin\x20','eventID','edit-history-loader.panel.title','UNIVER_SHEET','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','_init','executeCommand','constructor','_config','historyUniver'];_0x2793=function(){return _0x5b1682;};return _0x2793();}import{UniverSheetsDataValidationMobileUIPlugin as _0x1dbe4c,UniverSheetsDataValidationUIPlugin as _0x59ea04}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x1c2b4a}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x13f44e}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x5b7a8e}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x4ab03b}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x1f838a}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x254895}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x48885b}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x542410}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x10e1ee}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0xbc7e65}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x371ee3,UniverSheetsUIPlugin as _0x4cbb0e,getCurrentRangeDisable$ as _0x451799}from'@univerjs/sheets-ui';import{ComponentManager as _0xa97fdf,IDialogService as _0x505fd8,IMenuManagerService as _0x4225d9,IMessageService as _0x1430cf,ISidebarService as _0x14ebea,MenuItemType as _0x3e94ad,RibbonStartGroup as _0x47129b,UniverMobileUIPlugin as _0x2ed289,UniverUIPlugin as _0x377f6c,getMenuHiddenObservable as _0x58fb33}from'@univerjs/ui';import{BehaviorSubject as _0x1a5106,combineLatest as _0x460070,takeUntil as _0xd7de37}from'rxjs';import{IURLService as _0x5c80e8}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0xa61b65}from'@univerjs/icons';const R='edit-history-loader.config',z={};function B(_0x2f5cc1){'@babel/helpers - typeof';const _0x25ff74=_0x49b6;return B=typeof Symbol=='function'&&typeof Symbol[_0x25ff74(0x1f8)]==_0x25ff74(0x241)?function(_0x33d456){return typeof _0x33d456;}:function(_0x113a71){const _0xb8fc5e=_0x25ff74;return _0x113a71&&typeof Symbol==_0xb8fc5e(0x231)&&_0x113a71[_0xb8fc5e(0x1f5)]===Symbol&&_0x113a71!==Symbol[_0xb8fc5e(0x1ec)]?_0xb8fc5e(0x241):typeof _0x113a71;},B(_0x2f5cc1);}function _0x49b6(_0x1e0624,_0x3c6e5f){_0x1e0624=_0x1e0624-0x19a;const _0x2793f1=_0x2793();let _0x49b6b2=_0x2793f1[_0x1e0624];return _0x49b6b2;}function it(_0x2a3ea0,_0x269c60){const _0xf0f7f2=_0x49b6;if(B(_0x2a3ea0)!='object'||!_0x2a3ea0)return _0x2a3ea0;var _0xe10ad4=_0x2a3ea0[Symbol[_0xf0f7f2(0x21c)]];if(_0xe10ad4!==void 0x0){var _0x23f85d=_0xe10ad4[_0xf0f7f2(0x1ae)](_0x2a3ea0,_0x269c60||_0xf0f7f2(0x236));if(B(_0x23f85d)!=_0xf0f7f2(0x21f))return _0x23f85d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x269c60===_0xf0f7f2(0x1d6)?String:Number)(_0x2a3ea0);}function at(_0x627d04){const _0x5d7782=_0x49b6;var _0x41657d=it(_0x627d04,_0x5d7782(0x1d6));return B(_0x41657d)==_0x5d7782(0x241)?_0x41657d:_0x41657d+'';}function V(_0x2090a2,_0x3fd652,_0x594786){const _0x2bc813=_0x49b6;return(_0x3fd652=at(_0x3fd652))in _0x2090a2?Object[_0x2bc813(0x222)](_0x2090a2,_0x3fd652,{'value':_0x594786,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2090a2[_0x3fd652]=_0x594786,_0x2090a2;}function H(_0x2fcbb8,_0x41b3f3){return function(_0xb81002,_0x1ab399){_0x41b3f3(_0xb81002,_0x1ab399,_0x2fcbb8);};}function U(_0x1a25de,_0x1e18c9,_0x5171b0,_0x575272){const _0x309294=_0x49b6;var _0x59f499=arguments[_0x309294(0x25a)],_0x2d750a=_0x59f499<0x3?_0x1e18c9:_0x575272===null?_0x575272=Object[_0x309294(0x205)](_0x1e18c9,_0x5171b0):_0x575272,_0x340036;if(typeof Reflect==_0x309294(0x21f)&&typeof Reflect[_0x309294(0x256)]=='function')_0x2d750a=Reflect[_0x309294(0x256)](_0x1a25de,_0x1e18c9,_0x5171b0,_0x575272);else{for(var _0x2db3e2=_0x1a25de[_0x309294(0x25a)]-0x1;_0x2db3e2>=0x0;_0x2db3e2--)(_0x340036=_0x1a25de[_0x2db3e2])&&(_0x2d750a=(_0x59f499<0x3?_0x340036(_0x2d750a):_0x59f499>0x3?_0x340036(_0x1e18c9,_0x5171b0,_0x2d750a):_0x340036(_0x1e18c9,_0x5171b0))||_0x2d750a);}return _0x59f499>0x3&&_0x2d750a&&Object[_0x309294(0x222)](_0x1e18c9,_0x5171b0,_0x2d750a),_0x2d750a;}const ot=_0x4c49c2(0x19b),W='univer-history-container';let G=class extends _0x2a3e77{constructor(_0x5ee429,_0x419044,_0x28d137,_0x1cc47d,_0x15004b,_0x2f3045,_0x45e21d,_0x3c210e,_0x4db0fa,_0x3e3b72){const _0x2e23ac=_0x4c49c2;super(),this[_0x2e23ac(0x19a)]=_0x5ee429,this[_0x2e23ac(0x242)]=_0x419044,this[_0x2e23ac(0x25c)]=_0x28d137,this[_0x2e23ac(0x1b4)]=_0x1cc47d,this[_0x2e23ac(0x1c4)]=_0x15004b,this[_0x2e23ac(0x19d)]=_0x2f3045,this['_selectionProtectionRuleModel']=_0x45e21d,this[_0x2e23ac(0x1fb)]=_0x3c210e,this['_sidebarService']=_0x4db0fa,this['_themeService']=_0x3e3b72,V(this,_0x2e23ac(0x215),new _0x1a5106(null)),V(this,'historyUniver$',this[_0x2e23ac(0x215)]['asObservable']()),V(this,'_disposableCollection',new _0x1d9150()),V(this,_0x2e23ac(0x1d5),new Map()),V(this,_0x2e23ac(0x24d),null),this[_0x2e23ac(0x1f3)]();}get['historyUniver'](){const _0x5d64c6=_0x4c49c2;return this[_0x5d64c6(0x215)][_0x5d64c6(0x23f)];}[_0x4c49c2(0x1f3)](){const _0x2a24f5=_0x4c49c2;this[_0x2a24f5(0x219)](),this[_0x2a24f5(0x1e4)]();}[_0x4c49c2(0x219)](){const _0x33a208=_0x4c49c2;var _0x4ed195;let _0x5981d5=(_0x4ed195=this[_0x33a208(0x25c)][_0x33a208(0x1cc)](_0x33a208(0x19b)))==null?_0x33a208(0x1fa):_0x4ed195,_0x17c604=document['getElementById'](_0x5981d5);if(!_0x17c604)return;let _0x1bc3e8=document[_0x33a208(0x251)](_0x33a208(0x208));_0x1bc3e8['id']=W,_0x1bc3e8[_0x33a208(0x19c)][_0x33a208(0x23d)]='history-container',_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x230)]=_0x33a208(0x1bf),_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x1d1)]='0',_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x20e)]='0',_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x206)]=_0x33a208(0x249),_0x1bc3e8[_0x33a208(0x1a0)][_0x33a208(0x1c9)]=_0x33a208(0x249),_0x1bc3e8['style'][_0x33a208(0x1ab)]='49',_0x1bc3e8['style'][_0x33a208(0x1b5)]=_0x33a208(0x243),_0x17c604[_0x33a208(0x1c7)](_0x1bc3e8);}[_0x4c49c2(0x1e4)](){const _0x4c7761=_0x4c49c2;[[_0x12c6f7],[_0x377f6c,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x505fd8,null]]}],[_0x57816a],[_0x5a5fc3,{'override':[[_0x29d249,null]]}],[_0x4ba5f1,{'hasScroll':!0x1}],[_0x4dc8ee],[_0x10e1ee],[_0x37f383,{'notExecuteFormula':!0x0}],[_0x4cbb0e],[_0x1f838a],[_0x254895],[_0x45abad],[_0x5b7a8e],[_0x4ab03b],[_0x58f56a],[_0x46159a],[_0x48885b],[_0x542410],[_0x199a16],[_0xaed69e],[_0x59ea04],[_0x179a24,{'notExecuteFormula':!0x0}],[_0x29a515],[_0x1c2b4a],[_0x13f44e],[_0x2f2ad7],[_0x5a9ca5],[_0xa34c36],[_0xe205b7],[_0x57f8cb],[_0x10415a],[_0x418476,{'notExecuteFormula':!0x0}],[_0xbc7e65]][_0x4c7761(0x1ac)](([_0xd8d916,_0x484b0a])=>this['registerPlugin'](_0xd8d916,_0x484b0a));}[_0x4c49c2(0x1de)](){const _0x21ccc1=_0x4c49c2;super[_0x21ccc1(0x1de)](),this['unMountHistoryContent'](),this['_pluginMap']['clear']();}[_0x4c49c2(0x209)](_0xa02487,_0x2314f9,_0x8e00dd){const _0x4fb33c=_0x4c49c2;if(this['_pluginMap'][_0x4fb33c(0x224)](_0xa02487[_0x4fb33c(0x1b8)])&&!_0x8e00dd)throw Error(_0x4fb33c(0x1ee)+_0xa02487['pluginName']+_0x4fb33c(0x21e));this[_0x4fb33c(0x1d5)]['set'](_0xa02487[_0x4fb33c(0x1b8)],[_0xa02487,_0x2314f9]);}[_0x4c49c2(0x22c)](){const _0x57f365=_0x4c49c2;return Array[_0x57f365(0x1a8)](this[_0x57f365(0x1d5)][_0x57f365(0x232)]());}[_0x4c49c2(0x1e1)](_0x160ed1,_0x1eef9e){const _0xdc9142=_0x4c49c2;let _0x3acbba=document[_0xdc9142(0x239)](W);_0x3acbba&&(_0x3acbba[_0xdc9142(0x1a0)]['display']=_0xdc9142(0x233),this[_0xdc9142(0x1a3)](_0x160ed1,W,_0x1eef9e));}['unMountHistoryContent'](){const _0x261226=_0x4c49c2;var _0x2ff3fb;this['_disposableCollection'][_0x261226(0x1de)](),(_0x2ff3fb=this[_0x261226(0x1f7)])==null||_0x2ff3fb[_0x261226(0x1de)](),this['_historyUniver$'][_0x261226(0x200)](null);let _0x527100=document[_0x261226(0x239)](W);_0x527100&&(_0x527100[_0x261226(0x1a0)][_0x261226(0x1b5)]=_0x261226(0x243),this['_internalWebWorker']&&(this['_internalWebWorker'][_0x261226(0x1ce)](),this[_0x261226(0x24d)]=null));}[_0x4c49c2(0x1a3)](_0x184ad5,_0x3567c7,_0x2ab818){const _0x3e09ad=_0x4c49c2;var _0x2390f5,_0x2b4c33,_0xf856d6,_0x55ff08,_0x48b90d;if(this[_0x3e09ad(0x1f7)])return;let _0x3278bd=new _0x9dd17b({'locales':{[this['_localeService'][_0x3e09ad(0x207)]()]:this[_0x3e09ad(0x19a)][_0x3e09ad(0x22f)]()},'override':[[_0x8140f0,{'useClass':_0x168266}]]}),_0x4ae24b=_0x3278bd[_0x3e09ad(0x1b2)]();this[_0x3e09ad(0x228)](this['_themeService']['darkMode$'][_0x3e09ad(0x1e0)](_0x14ef84=>{const _0x5253bd=_0x3e09ad;_0x4ae24b[_0x5253bd(0x247)](_0x171164)[_0x5253bd(0x223)](_0x14ef84);})),this[_0x3e09ad(0x228)](this[_0x3e09ad(0x1a9)]['currentTheme$'][_0x3e09ad(0x1e0)](_0x377656=>{const _0x131eda=_0x3e09ad;_0x4ae24b['get'](_0x171164)[_0x131eda(0x1dc)](_0x377656);})),_0x4ae24b[_0x3e09ad(0x247)](_0x4481e5)[_0x3e09ad(0x22d)](this[_0x3e09ad(0x19a)][_0x3e09ad(0x207)]()),_0x4ae24b[_0x3e09ad(0x247)](_0x2358af)[_0x3e09ad(0x1da)](_0x37ae5d,this['_configService'][_0x3e09ad(0x1cc)](_0x37ae5d));let _0x5ec6b3=this[_0x3e09ad(0x25c)]['getConfig'](_0x59d6d1);_0x5ec6b3&&_0x3278bd[_0x3e09ad(0x209)](_0x3c1214,{'license':_0x5ec6b3['ls']});let _0x3b8482=(_0x2390f5=this[_0x3e09ad(0x25c)][_0x3e09ad(0x1cc)](_0x3e09ad(0x238)))==null?void 0x0:_0x2390f5[_0x3e09ad(0x204)],_0x50705d=!!_0x3b8482;_0x50705d&&(this['_internalWebWorker']=_0x3b8482 instanceof Worker?_0x3b8482:null,_0x3278bd[_0x3e09ad(0x209)](_0x5097e6,{'workerURL':_0x3b8482})),this[_0x3e09ad(0x1d5)]['forEach'](([_0x54d4f6,_0x326428])=>{_0x3278bd['registerPlugin'](_0x54d4f6,_0x326428);}),_0x3278bd[_0x3e09ad(0x209)](_0x2cde77,{'historyListServerUrl':(_0x2b4c33=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x2b4c33['historyListServerUrl'],'historyPanelComponentKey':(_0xf856d6=this[_0x3e09ad(0x25c)]['getConfig'](_0x3e09ad(0x238)))==null?void 0x0:_0xf856d6['historyPanelComponentKey'],'historyPanelHidden':(_0x55ff08=this[_0x3e09ad(0x25c)]['getConfig'](_0x3e09ad(0x238)))==null?void 0x0:_0x55ff08['historyPanelHidden'],'historyAIassistantEnabled':(_0x48b90d=this['_configService'][_0x3e09ad(0x1cc)](_0x3e09ad(0x238)))==null?void 0x0:_0x48b90d['historyAIassistantEnabled']}),_0x4ae24b[_0x3e09ad(0x1d0)](_0x23d21c=>{const _0x80e09e=_0x3e09ad;this[_0x80e09e(0x1eb)](_0x23d21c,_0x184ad5);}),this[_0x3e09ad(0x215)][_0x3e09ad(0x200)](_0x3278bd);let _0x4cd1e5=_0x4ae24b['get'](_0x41efc8),_0x2e7166=this[_0x3e09ad(0x1b6)](_0x184ad5),_0xdaefb6=()=>{const _0x2ccd39=_0x3e09ad;_0x2ab818?_0x4cd1e5[_0x2ccd39(0x201)](_0x184ad5,_0x3567c7,_0x2e7166,_0x2ab818):_0x4cd1e5[_0x2ccd39(0x1d8)](_0x184ad5,_0x3567c7,_0x2e7166);};if(this[_0x3e09ad(0x1c4)][_0x3e09ad(0x1e5)]({'content':this[_0x3e09ad(0x19a)]['t'](_0x3e09ad(0x250)),'type':_0x21300f[_0x3e09ad(0x1db)]}),_0x50705d)try{_0x4ae24b[_0x3e09ad(0x247)](_0x2d798e)['whenReady']()[_0x3e09ad(0x20d)](()=>{_0xdaefb6();});}catch{_0xdaefb6();}else _0xdaefb6();}['_initListener'](_0xfa3cc4,_0x64bdc9){const _0x3ce44e=_0x4c49c2;let _0x399bc2=_0xfa3cc4[_0x3ce44e(0x247)](_0x41efc8);this['_disposableCollection'][_0x3ce44e(0x1be)](_0x399bc2[_0x3ce44e(0x1ad)]['subscribe'](_0x10b4c4=>{const _0x14f4f0=_0x3ce44e;switch(_0x10b4c4){case _0x203990['Entered']:this['_dialogService'][_0x14f4f0(0x1aa)](),this['_sidebarService'][_0x14f4f0(0x1af)]();break;case _0x203990['Exited']:this[_0x14f4f0(0x1b4)][_0x14f4f0(0x1f4)](q['id']),this['unMountHistoryContent']();break;case _0x203990[_0x14f4f0(0x1b9)]:this[_0x14f4f0(0x253)](),this['_messageService'][_0x14f4f0(0x1e5)]({'content':this['_localeService']['t'](_0x14f4f0(0x245)),'type':_0x21300f[_0x14f4f0(0x1b9)],'duration':0xbb8});break;default:break;}})),this[_0x3ce44e(0x1ea)]['add'](_0x399bc2[_0x3ce44e(0x21d)]['subscribe'](async _0x57865f=>{const _0x1a95dd=_0x3ce44e;_0x57865f&&this[_0x1a95dd(0x1b4)][_0x1a95dd(0x1f4)](_0x526ad7['id'],{'unitId':_0x64bdc9,'revision':_0x57865f});}));}['_checkCanRevert'](_0x1bfee7){const _0x8d6de6=_0x4c49c2;let _0x474e0c=this[_0x8d6de6(0x242)][_0x8d6de6(0x1df)](_0x1bfee7)[_0x8d6de6(0x22b)]()[_0x8d6de6(0x1b0)](_0x541045=>_0x541045[_0x8d6de6(0x1e9)]()),_0x3b26dc=new _0x3d1217(_0x1bfee7)['id'],_0x4f83f3=_0x474e0c[_0x8d6de6(0x1b0)](_0x26d693=>new _0x5bed14(_0x1bfee7,_0x26d693)['id']),_0x5ebd67=_0x474e0c[_0x8d6de6(0x1b0)](_0x19ecf0=>this['_selectionProtectionRuleModel'][_0x8d6de6(0x1cd)](_0x1bfee7,_0x19ecf0)['map'](_0x1ebb93=>new _0x50ad28(_0x1bfee7,_0x19ecf0,_0x1ebb93[_0x8d6de6(0x254)])['id']))[_0x8d6de6(0x19f)](),_0x3c022b=new _0x266a14(_0x1bfee7)['id'];return this[_0x8d6de6(0x19d)]['composePermission']([_0x3b26dc,..._0x4f83f3,..._0x5ebd67,_0x3c022b])[_0x8d6de6(0x1c6)](_0x19bee8=>!!_0x19bee8['value']);}};G=U([H(0x0,_0x2a1c21(_0x4481e5)),H(0x1,_0x3a5724),H(0x2,_0x2358af),H(0x3,_0x18e0ae),H(0x4,_0x1430cf),H(0x5,_0x3608c8),H(0x6,_0x2a1c21(_0x16ed19)),H(0x7,_0x2a1c21(_0x505fd8)),H(0x8,_0x2a1c21(_0x14ebea)),H(0x9,_0x2a1c21(_0x171164))],G);const K={'id':'univer.operation.toggle-edit-history','type':_0x519d99[_0x4c49c2(0x1ba)],'handler':_0x3ffed3=>{const _0x13172f=_0x4c49c2;let _0x105782=_0x3ffed3[_0x13172f(0x247)](G),{unitId:_0x3d8306}=_0x1ef74b(_0x3ffed3[_0x13172f(0x247)](_0x3a5724))||{};return _0x3d8306?(_0x105782[_0x13172f(0x1e1)](_0x3d8306),!0x0):!0x1;}},q={'id':_0x4c49c2(0x240),'type':_0x519d99['OPERATION'],'handler':()=>!0x0};var st='@univerjs-pro/edit-history-loader',ct='0.25.0';function lt(_0x73d6f5){const _0x250a8a=_0x4c49c2;return{'id':K['id'],'type':_0x3e94ad[_0x250a8a(0x1d4)],'icon':_0x250a8a(0x244),'tooltip':_0x250a8a(0x1f0),'hidden$':_0x58fb33(_0x73d6f5,_0x3ba906['UNIVER_SHEET']),'disabled$':_0x451799(_0x73d6f5,{'workbookTypes':[_0x268bff],'worksheetTypes':[],'rangeTypes':[]})};}const ut={[_0x47129b[_0x4c49c2(0x1b3)]]:{[K['id']]:{'order':0.2,'menuItemFactory':lt}}};let J=class extends _0x3f5b03{constructor(_0x49615f,_0x40f502,_0x5714d3,_0x39ca6f,_0x409964,_0x1d18ea,_0x822eac,_0x24969a,_0x503d80,_0x264e73,_0x36c999){const _0x156899=_0x4c49c2;super(),this[_0x156899(0x1b4)]=_0x49615f,this['_menuManagerService']=_0x40f502,this['_componentManager']=_0x5714d3,this[_0x156899(0x212)]=_0x39ca6f,this[_0x156899(0x19a)]=_0x409964,this['_messageService']=_0x1d18ea,this['_collaborationController']=_0x822eac,this[_0x156899(0x23b)]=_0x24969a,this[_0x156899(0x1dd)]=_0x503d80,this[_0x156899(0x242)]=_0x264e73,this['_urlService']=_0x36c999,V(this,'_revertErrorTimer',null),this[_0x156899(0x1f3)]();}[_0x4c49c2(0x1f3)](){const _0x1ff700=_0x4c49c2;[K,q][_0x1ff700(0x1ac)](_0x38fcf8=>this[_0x1ff700(0x228)](_0x1e746a(this[_0x1ff700(0x1b4)][_0x1ff700(0x1c8)](_0x38fcf8)))),this[_0x1ff700(0x228)](this[_0x1ff700(0x21a)]['register'](_0x1ff700(0x244),_0xa61b65)),this['_menuManagerService'][_0x1ff700(0x20f)](ut),this[_0x1ff700(0x228)](this['_commandService'][_0x1ff700(0x24a)](async(_0x3e09af,_0x346f22)=>{const _0x403251=_0x1ff700;if(_0x3e09af['id']===_0x526ad7['id']){let {unitId:_0x55b3be}=_0x3e09af['params'];this[_0x403251(0x1c4)][_0x403251(0x1e5)]({'content':this['_localeService']['t'](_0x403251(0x246)),'type':_0x21300f[_0x403251(0x1db)],'duration':0x1388});let _0xd471e4=this['_collaborationController'][_0x403251(0x23a)](_0x55b3be);_0x346f22!=null&&_0x346f22[_0x403251(0x1e2)]?this['_handleRevertAcknowledgement'](_0xd471e4,async()=>(setTimeout(()=>window[_0x403251(0x1cb)][_0x403251(0x1f9)]()),!0x0),!0x0):this[_0x403251(0x1d9)](_0xd471e4,async()=>{const _0x500029=_0x403251;let _0x207631=this['_univerInstanceService']['getCurrentUnitOfType'](_0x3ba906[_0x500029(0x1f1)]),_0x584d99=_0x207631==null?void 0x0:_0x207631[_0x500029(0x221)]();if(!_0x584d99)return!0x1;this[_0x500029(0x242)][_0x500029(0x24c)](_0x55b3be);let _0x50183f=await this[_0x500029(0x1dd)][_0x500029(0x216)](_0x55b3be,_0x3ba906[_0x500029(0x1f1)]);return _0x50183f&&_0x50183f instanceof _0x9fce4d?(await this['_setupSubUnitSync'](_0x50183f,_0x584d99[_0x500029(0x1e9)]()),!0x0):!0x1;});}}));}[_0x4c49c2(0x1d9)](_0x3351a9,_0x271acd,_0x25fac7=!0x1){const _0x20b5bc=_0x4c49c2;let _0x20a726=_0x460070([_0x3351a9[_0x20b5bc(0x214)][_0x20b5bc(0x1c5)],_0x3351a9['state$']])[_0x20b5bc(0x1e0)](async([_0x42331a,_0x106ced])=>{const _0x40261d=_0x20b5bc;if(_0x42331a[_0x40261d(0x1ef)]===_0x2db2ee[_0x40261d(0x1b1)]&&(_0x106ced==null?void 0x0:_0x106ced['status'])===_0x46c40d[_0x40261d(0x1e3)]&&_0x42331a[_0x40261d(0x211)]['mutations']['some'](_0x25646a=>_0x25646a['id']===_0x526ad7['id'])&&await _0x271acd()){var _0x4c4c30;this['_historyManagerService']['unMountHistoryContent'](),_0x20a726[_0x40261d(0x1a5)](),this[_0x40261d(0x217)]&&clearTimeout(this[_0x40261d(0x217)]),await((_0x4c4c30=this['_localCacheService'])==null?void 0x0:_0x4c4c30[_0x40261d(0x1c3)]()),this[_0x40261d(0x1c4)]['removeAll']();}});_0x25fac7&&(this[_0x20b5bc(0x217)]=setTimeout(()=>{const _0x5a21e1=_0x20b5bc;_0x20a726['unsubscribe'](),this[_0x5a21e1(0x1c4)][_0x5a21e1(0x1e5)]({'content':this[_0x5a21e1(0x19a)]['t'](_0x5a21e1(0x1cf)),'type':_0x21300f['Error'],'duration':0xbb8});},0x1388));}async[_0x4c49c2(0x20b)](_0x45b87d,_0x25a0da){const _0x412537=_0x4c49c2;await this[_0x412537(0x1a6)](_0x45b87d,_0x25a0da),_0x45b87d[_0x412537(0x1ca)][_0x412537(0x1c2)](_0xd7de37(this[_0x412537(0x1ed)]))[_0x412537(0x1e0)](_0x236b1d=>{const _0x5cce41=_0x412537;_0x236b1d&&this[_0x5cce41(0x202)](_0x236b1d);}),this[_0x412537(0x226)][_0x412537(0x1d7)][_0x412537(0x1c2)](_0xd7de37(this[_0x412537(0x1ed)]))[_0x412537(0x1e0)](()=>this[_0x412537(0x1a6)](_0x45b87d,_0x25a0da));}[_0x4c49c2(0x202)](_0xafd180,_0x9ebb85=!0x1){const _0x799489=_0x4c49c2;let _0x459cf2=this['_urlService']['getParam'](_0x799489(0x1d3));_0xafd180[_0x799489(0x1e9)]()!==_0x459cf2&&this[_0x799489(0x226)][_0x799489(0x225)](_0x799489(0x1d3),_0xafd180[_0x799489(0x1e9)](),_0x9ebb85);}async[_0x4c49c2(0x1a6)](_0x39e47b,_0x4b8b9c){const _0x27a768=_0x4c49c2;var _0x5a6c48;if(!_0x4b8b9c||!_0x39e47b[_0x27a768(0x20a)](_0x4b8b9c)){let _0x43b9e3=_0x39e47b[_0x27a768(0x1a4)]()[0x0],_0x4baee4=_0x39e47b['getSheetBySheetId'](_0x43b9e3);if(!_0x4baee4)return;this[_0x27a768(0x202)](_0x4baee4,!0x0),await this[_0x27a768(0x1b4)][_0x27a768(0x1f4)](_0x5ebce6['id'],{'unitId':_0x39e47b[_0x27a768(0x1b7)](),'subUnitId':_0x43b9e3});return;}((_0x5a6c48=_0x39e47b['getActiveSheet']())==null?void 0x0:_0x5a6c48[_0x27a768(0x1e9)]())!==_0x4b8b9c&&await this[_0x27a768(0x1b4)][_0x27a768(0x1f4)](_0x5ebce6['id'],{'unitId':_0x39e47b[_0x27a768(0x1b7)](),'subUnitId':_0x4b8b9c});}};J=U([H(0x0,_0x18e0ae),H(0x1,_0x4225d9),H(0x2,_0x2a1c21(_0xa97fdf)),H(0x3,_0x2a1c21(G)),H(0x4,_0x2a1c21(_0x4481e5)),H(0x5,_0x1430cf),H(0x6,_0x2a1c21(_0x341c06)),H(0x7,_0x310f1b),H(0x8,_0x2a1c21(_0x57070e)),H(0x9,_0x3a5724),H(0xa,_0x5c80e8)],J);const Y=_0x4c49c2(0x25b);let X=class extends _0x2a3e77{constructor(_0x98d25e,_0x410c0a,_0x492cf7,_0x4fea45,_0xaedafd,_0x417265,_0x3d9ba9,_0x35e508,_0x10642b,_0x167ee9){const _0xf7e2b=_0x4c49c2;super(),this['_localeService']=_0x98d25e,this['_univerInstanceService']=_0x410c0a,this[_0xf7e2b(0x25c)]=_0x492cf7,this['_commandService']=_0x4fea45,this[_0xf7e2b(0x1c4)]=_0xaedafd,this[_0xf7e2b(0x19d)]=_0x417265,this[_0xf7e2b(0x1a7)]=_0x3d9ba9,this[_0xf7e2b(0x1fb)]=_0x35e508,this[_0xf7e2b(0x1c1)]=_0x10642b,this[_0xf7e2b(0x1a9)]=_0x167ee9,V(this,_0xf7e2b(0x215),new _0x1a5106(null)),V(this,_0xf7e2b(0x1e6),this[_0xf7e2b(0x215)]['asObservable']()),V(this,'_disposableCollection',new _0x1d9150()),V(this,_0xf7e2b(0x1d5),new Map()),V(this,_0xf7e2b(0x24d),null),this['_init']();}get[_0x4c49c2(0x1f7)](){return this['_historyUniver$']['value'];}[_0x4c49c2(0x1f3)](){this['_initContainer'](),this['_initPlugins']();}[_0x4c49c2(0x219)](){const _0x2f91ab=_0x4c49c2;var _0x179486;let _0x17dc71=(_0x179486=this[_0x2f91ab(0x25c)]['getConfig'](_0x2f91ab(0x19b)))==null?_0x2f91ab(0x1fa):_0x179486,_0x26c9cf=document[_0x2f91ab(0x239)](_0x17dc71);if(!_0x26c9cf)return;let _0x5a4c63=document[_0x2f91ab(0x251)](_0x2f91ab(0x208));_0x5a4c63['id']=Y,_0x5a4c63[_0x2f91ab(0x19c)][_0x2f91ab(0x23d)]=_0x2f91ab(0x21b),_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x230)]=_0x2f91ab(0x1bf),_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x1d1)]='0',_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x20e)]='0',_0x5a4c63['style'][_0x2f91ab(0x206)]=_0x2f91ab(0x249),_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x1c9)]='100%',_0x5a4c63['style']['zIndex']='49',_0x5a4c63[_0x2f91ab(0x1a0)][_0x2f91ab(0x1b5)]=_0x2f91ab(0x243),_0x26c9cf[_0x2f91ab(0x1c7)](_0x5a4c63);}['_initPlugins'](){[[_0x12c6f7],[_0x2ed289,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x505fd8,null]]}],[_0x57816a],[_0x5a5fc3,{'override':[[_0x29d249,null]]}],[_0x4ba5f1,{'hasScroll':!0x1}],[_0x4dc8ee],[_0x10e1ee],[_0x37f383,{'notExecuteFormula':!0x0}],[_0x371ee3],[_0x1f838a],[_0x254895],[_0x45abad],[_0x5b7a8e],[_0x58f56a],[_0x48885b],[_0x542410],[_0x199a16],[_0xaed69e],[_0x1dbe4c],[_0x179a24,{'notExecuteFormula':!0x0}],[_0x29a515],[_0x1c2b4a],[_0x13f44e],[_0x2f2ad7],[_0x5a9ca5],[_0xa34c36],[_0xe205b7],[_0x57f8cb],[_0x10415a],[_0x418476,{'notExecuteFormula':!0x0}],[_0xbc7e65]]['forEach'](([_0x43ffeb,_0xc18711])=>this['registerPlugin'](_0x43ffeb,_0xc18711));}[_0x4c49c2(0x1de)](){const _0x472bf3=_0x4c49c2;super[_0x472bf3(0x1de)](),this[_0x472bf3(0x253)](),this['_pluginMap']['clear']();}[_0x4c49c2(0x209)](_0x5bf76e,_0x3f2288,_0x2509a0){const _0x532a05=_0x4c49c2;if(this['_pluginMap'][_0x532a05(0x224)](_0x5bf76e[_0x532a05(0x1b8)])&&!_0x2509a0)throw Error(_0x532a05(0x203)+_0x5bf76e[_0x532a05(0x1b8)]+_0x532a05(0x21e));this[_0x532a05(0x1d5)][_0x532a05(0x24e)](_0x5bf76e['pluginName'],[_0x5bf76e,_0x3f2288]);}[_0x4c49c2(0x22c)](){const _0x271706=_0x4c49c2;return Array[_0x271706(0x1a8)](this[_0x271706(0x1d5)][_0x271706(0x232)]());}[_0x4c49c2(0x1e1)](_0x1aa6fa,_0x3a18b8){const _0x53f014=_0x4c49c2;let _0x120abb=document['getElementById'](Y);_0x120abb&&(_0x120abb[_0x53f014(0x1a0)][_0x53f014(0x1b5)]='block',this[_0x53f014(0x1a3)](_0x1aa6fa,Y,_0x3a18b8));}[_0x4c49c2(0x253)](){const _0x10e4f5=_0x4c49c2;var _0x2f44cd;this['_disposableCollection'][_0x10e4f5(0x1de)](),(_0x2f44cd=this[_0x10e4f5(0x1f7)])==null||_0x2f44cd[_0x10e4f5(0x1de)](),this[_0x10e4f5(0x215)][_0x10e4f5(0x200)](null);let _0x27db5a=document[_0x10e4f5(0x239)](Y);_0x27db5a&&(_0x27db5a[_0x10e4f5(0x1a0)][_0x10e4f5(0x1b5)]=_0x10e4f5(0x243),this[_0x10e4f5(0x24d)]&&(this[_0x10e4f5(0x24d)][_0x10e4f5(0x1ce)](),this[_0x10e4f5(0x24d)]=null));}[_0x4c49c2(0x1a3)](_0x447276,_0x3b4662,_0x47d420){const _0xdff85b=_0x4c49c2;var _0x29d8ad,_0x5bcc32,_0x7ed82e,_0x57d033;if(this['historyUniver'])return;let _0x291554=new _0x9dd17b({'locales':{[this[_0xdff85b(0x19a)]['getCurrentLocale']()]:this['_localeService'][_0xdff85b(0x22f)]()},'override':[[_0x8140f0,{'useClass':_0x168266}]]}),_0x5602d2=_0x291554['__getInjector']();this[_0xdff85b(0x228)](this['_themeService'][_0xdff85b(0x1e7)][_0xdff85b(0x1e0)](_0x1d4c36=>{const _0x397c4d=_0xdff85b;_0x5602d2[_0x397c4d(0x247)](_0x171164)[_0x397c4d(0x223)](_0x1d4c36);})),this['disposeWithMe'](this[_0xdff85b(0x1a9)][_0xdff85b(0x1c0)]['subscribe'](_0x22f2a8=>{const _0x41291c=_0xdff85b;_0x5602d2[_0x41291c(0x247)](_0x171164)[_0x41291c(0x1dc)](_0x22f2a8);})),_0x5602d2[_0xdff85b(0x247)](_0x4481e5)['setLocale'](this[_0xdff85b(0x19a)][_0xdff85b(0x207)]()),_0x5602d2[_0xdff85b(0x247)](_0x2358af)[_0xdff85b(0x1da)](_0x37ae5d,this[_0xdff85b(0x25c)][_0xdff85b(0x1cc)](_0x37ae5d));let _0x30ddad=this[_0xdff85b(0x25c)]['getConfig'](_0x59d6d1);_0x30ddad&&_0x291554[_0xdff85b(0x209)](_0x3c1214,{'license':_0x30ddad['ls']});let _0x224699=(_0x29d8ad=this['_configService'][_0xdff85b(0x1cc)]('edit-history-loader.config'))==null?void 0x0:_0x29d8ad[_0xdff85b(0x204)],_0x29ed5f=!!_0x224699;_0x29ed5f&&(this[_0xdff85b(0x24d)]=_0x224699 instanceof Worker?_0x224699:null,_0x291554[_0xdff85b(0x209)](_0x5097e6,{'workerURL':_0x224699})),this[_0xdff85b(0x1d5)][_0xdff85b(0x1ac)](([_0x2beac4,_0x8c6001])=>{_0x291554['registerPlugin'](_0x2beac4,_0x8c6001);}),_0x291554[_0xdff85b(0x209)](_0x502946,{'historyListServerUrl':(_0x5bcc32=this[_0xdff85b(0x25c)][_0xdff85b(0x1cc)](_0xdff85b(0x238)))==null?void 0x0:_0x5bcc32[_0xdff85b(0x248)],'historyPanelComponentKey':(_0x7ed82e=this[_0xdff85b(0x25c)][_0xdff85b(0x1cc)]('edit-history-loader.config'))==null?void 0x0:_0x7ed82e['historyPanelComponentKey'],'historyPanelHidden':(_0x57d033=this[_0xdff85b(0x25c)][_0xdff85b(0x1cc)](_0xdff85b(0x238)))==null?void 0x0:_0x57d033['historyPanelHidden']}),_0x5602d2[_0xdff85b(0x1d0)](_0x3f98f5=>{const _0x25393f=_0xdff85b;this[_0x25393f(0x1eb)](_0x3f98f5,_0x447276);}),this[_0xdff85b(0x215)][_0xdff85b(0x200)](_0x291554);let _0x476abc=_0x5602d2[_0xdff85b(0x247)](_0x41efc8),_0x58984b=this['_checkCanRevert'](_0x447276),_0x18f1f9=()=>{const _0x5c2139=_0xdff85b;_0x47d420?_0x476abc[_0x5c2139(0x201)](_0x447276,_0x3b4662,_0x58984b,_0x47d420):_0x476abc['triggerLoadVersions'](_0x447276,_0x3b4662,_0x58984b);};if(this[_0xdff85b(0x1c4)][_0xdff85b(0x1e5)]({'content':this[_0xdff85b(0x19a)]['t'](_0xdff85b(0x250)),'type':_0x21300f[_0xdff85b(0x1db)]}),_0x29ed5f)try{_0x5602d2[_0xdff85b(0x247)](_0x2d798e)[_0xdff85b(0x20c)]()[_0xdff85b(0x20d)](()=>{_0x18f1f9();});}catch{_0x18f1f9();}else _0x18f1f9();}['_initListener'](_0x23af2c,_0x5b6d5f){const _0x4efcef=_0x4c49c2;let _0x5434ba=_0x23af2c['get'](_0x41efc8);this[_0x4efcef(0x1ea)][_0x4efcef(0x1be)](_0x5434ba['status$'][_0x4efcef(0x1e0)](_0x17951d=>{const _0x5cd90e=_0x4efcef;switch(_0x17951d){case _0x203990['Entered']:this[_0x5cd90e(0x1fb)][_0x5cd90e(0x1aa)](),this['_sidebarService']['close']();break;case _0x203990[_0x5cd90e(0x24b)]:this[_0x5cd90e(0x1b4)][_0x5cd90e(0x1f4)](q['id']),this['unMountHistoryContent']();break;case _0x203990[_0x5cd90e(0x1b9)]:this[_0x5cd90e(0x253)](),this[_0x5cd90e(0x1c4)][_0x5cd90e(0x1e5)]({'content':this[_0x5cd90e(0x19a)]['t'](_0x5cd90e(0x245)),'type':_0x21300f[_0x5cd90e(0x1b9)],'duration':0xbb8});break;default:break;}})),this[_0x4efcef(0x1ea)]['add'](_0x5434ba[_0x4efcef(0x21d)]['subscribe'](async _0x1c750a=>{const _0x413ce5=_0x4efcef;_0x1c750a&&this[_0x413ce5(0x1b4)][_0x413ce5(0x1f4)](_0x526ad7['id'],{'unitId':_0x5b6d5f,'revision':_0x1c750a});}));}[_0x4c49c2(0x1b6)](_0x244da0){const _0x42f89a=_0x4c49c2;let _0x5c73f5=this[_0x42f89a(0x242)][_0x42f89a(0x1df)](_0x244da0)[_0x42f89a(0x22b)]()['map'](_0x20517f=>_0x20517f['getSheetId']()),_0x58c984=new _0x3d1217(_0x244da0)['id'],_0x2e1a75=_0x5c73f5[_0x42f89a(0x1b0)](_0x41594d=>new _0x5bed14(_0x244da0,_0x41594d)['id']),_0x35ff21=_0x5c73f5[_0x42f89a(0x1b0)](_0xad863b=>this['_selectionProtectionRuleModel'][_0x42f89a(0x1cd)](_0x244da0,_0xad863b)[_0x42f89a(0x1b0)](_0x2c475b=>new _0x50ad28(_0x244da0,_0xad863b,_0x2c475b[_0x42f89a(0x254)])['id']))[_0x42f89a(0x19f)](),_0x3aaa17=new _0x266a14(_0x244da0)['id'];return this['_permissionService'][_0x42f89a(0x1ff)]([_0x58c984,..._0x2e1a75,..._0x35ff21,_0x3aaa17])['every'](_0x4e0a3f=>!!_0x4e0a3f[_0x42f89a(0x23f)]);}};X=U([H(0x0,_0x2a1c21(_0x4481e5)),H(0x1,_0x3a5724),H(0x2,_0x2358af),H(0x3,_0x18e0ae),H(0x4,_0x1430cf),H(0x5,_0x3608c8),H(0x6,_0x2a1c21(_0x16ed19)),H(0x7,_0x2a1c21(_0x505fd8)),H(0x8,_0x2a1c21(_0x14ebea)),H(0x9,_0x2a1c21(_0x171164))],X);let Z=class extends _0x7d98a3{constructor(_0x4cf79b=z,_0x2257ec,_0x158596){const _0xcfb212=_0x4c49c2;super(),this[_0xcfb212(0x1f6)]=_0x4cf79b,this[_0xcfb212(0x258)]=_0x2257ec,this['_configService']=_0x158596;let {menu:_0x3a1d36,..._0x5b7403}=_0x410477({},z,this['_config']);_0x3a1d36&&this[_0xcfb212(0x25c)][_0xcfb212(0x1da)](_0xcfb212(0x210),_0x3a1d36,{'merge':!0x0}),this[_0xcfb212(0x25c)][_0xcfb212(0x1da)](R,_0x5b7403),this[_0xcfb212(0x1f6)][_0xcfb212(0x1fe)]&&this[_0xcfb212(0x25c)][_0xcfb212(0x1da)]('UNIVER_CONTAINER_ID',this[_0xcfb212(0x1f6)]['univerContainerId']);}[_0x4c49c2(0x1bb)](){const _0xe16bc0=_0x4c49c2;[[G,{'useClass':X}],[J]][_0xe16bc0(0x1ac)](_0x2bbef5=>this[_0xe16bc0(0x258)][_0xe16bc0(0x1be)](_0x2bbef5));}[_0x4c49c2(0x1e8)](){const _0x1bc02d=_0x4c49c2;this[_0x1bc02d(0x258)][_0x1bc02d(0x247)](J);}};V(Z,_0x4c49c2(0x22a),_0x3ba906[_0x4c49c2(0x259)]),V(Z,_0x4c49c2(0x1b8),_0x4c49c2(0x1f2)),V(Z,_0x4c49c2(0x220),st),V(Z,_0x4c49c2(0x235),ct),Z=U([_0x332599(_0x3c1214),H(0x1,_0x2a1c21(_0x58e461)),H(0x2,_0x2358af)],Z);let Q=class extends _0x3f5b03{constructor(_0x4ce866,_0x3a912a,_0x3cc854,_0x199aa4,_0x5f5891,_0x4bbb35,_0x13a74c,_0x4ab601,_0x324109,_0x2ae798,_0x307a6d){const _0x51bd52=_0x4c49c2;super(),this[_0x51bd52(0x1b4)]=_0x4ce866,this['_menuManagerService']=_0x3a912a,this[_0x51bd52(0x21a)]=_0x3cc854,this[_0x51bd52(0x212)]=_0x199aa4,this[_0x51bd52(0x19a)]=_0x5f5891,this['_messageService']=_0x4bbb35,this[_0x51bd52(0x23e)]=_0x13a74c,this[_0x51bd52(0x23b)]=_0x4ab601,this[_0x51bd52(0x1dd)]=_0x324109,this[_0x51bd52(0x242)]=_0x2ae798,this[_0x51bd52(0x226)]=_0x307a6d,V(this,_0x51bd52(0x217),null),this[_0x51bd52(0x1f3)]();}['_init'](){const _0xd1af2a=_0x4c49c2;[K,q][_0xd1af2a(0x1ac)](_0x4ccc13=>this[_0xd1af2a(0x228)](_0x1e746a(this['_commandService'][_0xd1af2a(0x1c8)](_0x4ccc13)))),this[_0xd1af2a(0x228)](this[_0xd1af2a(0x21a)]['register']('HistoryIcon',_0xa61b65)),this[_0xd1af2a(0x23c)][_0xd1af2a(0x20f)](ut),this[_0xd1af2a(0x228)](this[_0xd1af2a(0x1b4)]['onCommandExecuted'](async(_0x3bffe1,_0x2eaf9d)=>{const _0xa8b8e6=_0xd1af2a;if(_0x3bffe1['id']===_0x526ad7['id']){let {unitId:_0x426001}=_0x3bffe1[_0xa8b8e6(0x227)];this[_0xa8b8e6(0x1c4)][_0xa8b8e6(0x1e5)]({'content':this['_localeService']['t']('edit-history-loader.panel.reverting'),'type':_0x21300f[_0xa8b8e6(0x1db)],'duration':0x1388});let _0x5205fc=this[_0xa8b8e6(0x23e)][_0xa8b8e6(0x23a)](_0x426001);_0x2eaf9d!=null&&_0x2eaf9d[_0xa8b8e6(0x1e2)]?this[_0xa8b8e6(0x1d9)](_0x5205fc,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x5205fc,async()=>{const _0x2db1db=_0xa8b8e6;let _0x27a6aa=this[_0x2db1db(0x242)][_0x2db1db(0x234)](_0x3ba906[_0x2db1db(0x1f1)]),_0x27fc4a=_0x27a6aa==null?void 0x0:_0x27a6aa[_0x2db1db(0x221)]();if(!_0x27fc4a)return!0x1;this[_0x2db1db(0x242)][_0x2db1db(0x24c)](_0x426001);let _0x3d44ff=await this['_dataLoaderService'][_0x2db1db(0x216)](_0x426001,_0x3ba906['UNIVER_SHEET']);return _0x3d44ff&&_0x3d44ff instanceof _0x9fce4d?(await this[_0x2db1db(0x20b)](_0x3d44ff,_0x27fc4a[_0x2db1db(0x1e9)]()),!0x0):!0x1;});}}));}[_0x4c49c2(0x1d9)](_0x3b515b,_0x140951,_0x5b3858=!0x1){const _0x2c983a=_0x4c49c2;let _0x57685b=_0x460070([_0x3b515b[_0x2c983a(0x214)][_0x2c983a(0x1c5)],_0x3b515b[_0x2c983a(0x24f)]])[_0x2c983a(0x1e0)](async([_0x2278d7,_0x1fbfbf])=>{const _0x3ba523=_0x2c983a;if(_0x2278d7[_0x3ba523(0x1ef)]===_0x2db2ee[_0x3ba523(0x1b1)]&&(_0x1fbfbf==null?void 0x0:_0x1fbfbf['status'])===_0x46c40d[_0x3ba523(0x1e3)]&&_0x2278d7['data'][_0x3ba523(0x1bd)][_0x3ba523(0x1a1)](_0x57b5ec=>_0x57b5ec['id']===_0x526ad7['id'])&&await _0x140951()){var _0x3edb7b;this[_0x3ba523(0x212)][_0x3ba523(0x253)](),_0x57685b[_0x3ba523(0x1a5)](),this[_0x3ba523(0x217)]&&clearTimeout(this['_revertErrorTimer']),await((_0x3edb7b=this['_localCacheService'])==null?void 0x0:_0x3edb7b[_0x3ba523(0x1c3)]());}});_0x5b3858&&(this[_0x2c983a(0x217)]=setTimeout(()=>{const _0x183f37=_0x2c983a;_0x57685b[_0x183f37(0x1a5)](),this[_0x183f37(0x1c4)]['show']({'content':this[_0x183f37(0x19a)]['t'](_0x183f37(0x1cf)),'type':_0x21300f[_0x183f37(0x1b9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x595215,_0x403afc){const _0x1f421b=_0x4c49c2;await this['_updateSubUnitFromURLParams'](_0x595215,_0x403afc),_0x595215[_0x1f421b(0x1ca)][_0x1f421b(0x1c2)](_0xd7de37(this[_0x1f421b(0x1ed)]))['subscribe'](_0x9edba=>{const _0x24acbe=_0x1f421b;_0x9edba&&this[_0x24acbe(0x202)](_0x9edba);}),this[_0x1f421b(0x226)][_0x1f421b(0x1d7)][_0x1f421b(0x1c2)](_0xd7de37(this[_0x1f421b(0x1ed)]))[_0x1f421b(0x1e0)](()=>this['_updateSubUnitFromURLParams'](_0x595215,_0x403afc));}[_0x4c49c2(0x202)](_0xa8c845,_0xdee2ad=!0x1){const _0x5a0c58=_0x4c49c2;let _0x5f2533=this['_urlService'][_0x5a0c58(0x19e)](_0x5a0c58(0x1d3));_0xa8c845[_0x5a0c58(0x1e9)]()!==_0x5f2533&&this['_urlService'][_0x5a0c58(0x225)](_0x5a0c58(0x1d3),_0xa8c845['getSheetId'](),_0xdee2ad);}async[_0x4c49c2(0x1a6)](_0x4f1102,_0x454790){const _0x3e2541=_0x4c49c2;var _0x1eadea;if(!_0x454790||!_0x4f1102['getSheetBySheetId'](_0x454790)){let _0x111383=_0x4f1102['getUnhiddenWorksheets']()[0x0],_0xfc355f=_0x4f1102['getSheetBySheetId'](_0x111383);if(!_0xfc355f)return;this[_0x3e2541(0x202)](_0xfc355f,!0x0),await this['_commandService'][_0x3e2541(0x1f4)](_0x5ebce6['id'],{'unitId':_0x4f1102[_0x3e2541(0x1b7)](),'subUnitId':_0x111383});return;}((_0x1eadea=_0x4f1102[_0x3e2541(0x221)]())==null?void 0x0:_0x1eadea['getSheetId']())!==_0x454790&&await this[_0x3e2541(0x1b4)][_0x3e2541(0x1f4)](_0x5ebce6['id'],{'unitId':_0x4f1102[_0x3e2541(0x1b7)](),'subUnitId':_0x454790});}};Q=U([H(0x0,_0x18e0ae),H(0x1,_0x4225d9),H(0x2,_0x2a1c21(_0xa97fdf)),H(0x3,_0x2a1c21(G)),H(0x4,_0x2a1c21(_0x4481e5)),H(0x5,_0x1430cf),H(0x6,_0x2a1c21(_0x341c06)),H(0x7,_0x310f1b),H(0x8,_0x2a1c21(_0x57070e)),H(0x9,_0x3a5724),H(0xa,_0x5c80e8)],Q);let $=class extends _0x7d98a3{constructor(_0x2fca72=z,_0xe651f5,_0x580fa1){const _0x5aba4d=_0x4c49c2;super(),this[_0x5aba4d(0x1f6)]=_0x2fca72,this[_0x5aba4d(0x258)]=_0xe651f5,this[_0x5aba4d(0x25c)]=_0x580fa1;let {menu:_0x188a03,..._0x27c7bc}=_0x410477({},z,this[_0x5aba4d(0x1f6)]);_0x188a03&&this[_0x5aba4d(0x25c)]['setConfig']('menu',_0x188a03,{'merge':!0x0}),this[_0x5aba4d(0x25c)]['setConfig'](R,_0x27c7bc),this[_0x5aba4d(0x1f6)][_0x5aba4d(0x1fe)]&&this[_0x5aba4d(0x25c)][_0x5aba4d(0x1da)](ot,this['_config'][_0x5aba4d(0x1fe)]);}[_0x4c49c2(0x1bb)](){const _0x50391c=_0x4c49c2;[[G],[Q]]['forEach'](_0x47d051=>this[_0x50391c(0x258)][_0x50391c(0x1be)](_0x47d051));}['onSteady'](){const _0x193954=_0x4c49c2;this[_0x193954(0x258)][_0x193954(0x247)](Q);}};V($,_0x4c49c2(0x22a),_0x3ba906[_0x4c49c2(0x259)]),V($,_0x4c49c2(0x1b8),_0x4c49c2(0x1bc)),V($,_0x4c49c2(0x220),st),V($,_0x4c49c2(0x235),ct),$=U([_0x332599(_0x3c1214),H(0x1,_0x2a1c21(_0x58e461)),H(0x2,_0x2358af)],$);export{R as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,ot as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x4fff41=_0x11b8;function _0x11b8(_0x20c7ea,_0x25dcf3){_0x20c7ea=_0x20c7ea-0x19c;const _0x4a625a=_0x4a62();let _0x11b89a=_0x4a625a[_0x20c7ea];return _0x11b89a;}(function(_0x32f0b3,_0x5538f4){const _0x550f9c=_0x11b8,_0x88b4b6=_0x32f0b3();while(!![]){try{const _0x17bea4=-parseInt(_0x550f9c(0x1a4))/0x1+parseInt(_0x550f9c(0x19c))/0x2*(-parseInt(_0x550f9c(0x19f))/0x3)+-parseInt(_0x550f9c(0x1a2))/0x4+-parseInt(_0x550f9c(0x1a3))/0x5+parseInt(_0x550f9c(0x1a1))/0x6+parseInt(_0x550f9c(0x1a0))/0x7+parseInt(_0x550f9c(0x19e))/0x8;if(_0x17bea4===_0x5538f4)break;else _0x88b4b6['push'](_0x88b4b6['shift']());}catch(_0x33769d){_0x88b4b6['push'](_0x88b4b6['shift']());}}}(_0x4a62,0x4c815));const e={'edit-history-loader':{'panel':{'title':'سجل\x20التحرير','reverting':'جارٍ\x20الاستعادة،\x20يرجى\x20الانتظار...','revertFailed':'خطأ\x20غير\x20معروف،\x20يرجى\x20تحديث\x20الصفحة\x20لعرض\x20نتيجة\x20الاستعادة','listFetchError':_0x4fff41(0x19d)},'info':{'initializing':'جارٍ\x20التهيئة،\x20يرجى\x20الانتظار...'}}};export{e as default};function _0x4a62(){const _0x2a5967=['179408jQAGbW','6EloDlZ','فشل\x20في\x20الحصول\x20على\x20قائمة\x20سجل\x20التحرير','6024800UBVJAL','559893BZioNe','3664458rtbXSY','2558868IYkPUI','194000FwRvCj','3009530WinoBS'];_0x4a62=function(){return _0x2a5967;};return _0x4a62();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x50aa(){const _0x2fe5cd=['4501329DdeCkk','516651SGgXGB','12EvvnEY','7744116OOdTDW','3374465ZUBBad','608852wLnHve','No\x20s\x27ha\x20pogut\x20obtenir\x20la\x20llista\x20de\x20l\x27historial','4CCHZZu','Inicialitzant,\x20espereu...','10175184nSLnIU','13003047rKRbWp','Restaurant,\x20espereu...'];_0x50aa=function(){return _0x2fe5cd;};return _0x50aa();}const _0x121cd9=_0x3315;(function(_0x568aaf,_0x2fc95d){const _0x5eb5e2=_0x3315,_0x38ac1e=_0x568aaf();while(!![]){try{const _0x566667=parseInt(_0x5eb5e2(0x6e))/0x1*(parseInt(_0x5eb5e2(0x6c))/0x2)+-parseInt(_0x5eb5e2(0x74))/0x3*(-parseInt(_0x5eb5e2(0x75))/0x4)+parseInt(_0x5eb5e2(0x77))/0x5+-parseInt(_0x5eb5e2(0x76))/0x6+-parseInt(_0x5eb5e2(0x73))/0x7+-parseInt(_0x5eb5e2(0x70))/0x8+parseInt(_0x5eb5e2(0x71))/0x9;if(_0x566667===_0x2fc95d)break;else _0x38ac1e['push'](_0x38ac1e['shift']());}catch(_0x231a68){_0x38ac1e['push'](_0x38ac1e['shift']());}}}(_0x50aa,0x9e4d0));const e={'edit-history-loader':{'panel':{'title':'Historial\x20d\x27edicions','reverting':_0x121cd9(0x72),'revertFailed':'Error\x20desconegut,\x20actualitzeu\x20la\x20pàgina\x20per\x20veure\x20el\x20resultat\x20de\x20la\x20restauració','listFetchError':_0x121cd9(0x6d)},'info':{'initializing':_0x121cd9(0x6f)}}};function _0x3315(_0x2abb5f,_0x4e02f6){_0x2abb5f=_0x2abb5f-0x6c;const _0x50aa4b=_0x50aa();let _0x33152e=_0x50aa4b[_0x2abb5f];return _0x33152e;}export{e as default};
|