@univerjs-pro/edit-history-loader 0.16.1 → 0.17.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/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/plugin.d.ts +2 -0
- package/lib/umd/index.js +1 -1
- package/package.json +42 -42
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xb3d05a=_0x12b9;(function(_0x2fd85f,_0x287391){const _0x489e16=_0x12b9,_0x141ca0=_0x2fd85f();while(!![]){try{const _0x5e2ccc=parseInt(_0x489e16(0x17b))/0x1*(parseInt(_0x489e16(0x18a))/0x2)+parseInt(_0x489e16(0x1bd))/0x3*(-parseInt(_0x489e16(0x1bf))/0x4)+-parseInt(_0x489e16(0x1d0))/0x5+parseInt(_0x489e16(0x1ed))/0x6*(parseInt(_0x489e16(0x19d))/0x7)+parseInt(_0x489e16(0x183))/0x8+parseInt(_0x489e16(0x131))/0x9*(parseInt(_0x489e16(0x1ae))/0xa)+-parseInt(_0x489e16(0x1e7))/0xb;if(_0x5e2ccc===_0x287391)break;else _0x141ca0['push'](_0x141ca0['shift']());}catch(_0x426c91){_0x141ca0['push'](_0x141ca0['shift']());}}}(_0x22a9,0xc2a2e));var J=Object[_0xb3d05a(0x1eb)],Q=(_0xdb7fcd,_0x308970,_0x3671ae)=>_0x308970 in _0xdb7fcd?J(_0xdb7fcd,_0x308970,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3671ae}):_0xdb7fcd[_0x308970]=_0x3671ae,m=(_0xb97e5a,_0x31f7b1,_0x3b7e16)=>Q(_0xb97e5a,typeof _0x31f7b1!='symbol'?_0x31f7b1+'':_0x31f7b1,_0x3b7e16);function _0x22a9(){const _0x76877=['_setupSubUnitSync','5620220mlFulZ','location','setTheme','univer-container','LocaleService','UniverDocsUIPlugin','_initPlugins','revertRevision$','AuthzIoHttpService','uComp','UniverDrawingUIPlugin','urlChange$','registerPlugin','univerContainerId','path','IMenuManagerService','currentColor','block','UniverSheetsConditionalFormattingPlugin','UNIVER_SHEET','UniverEditHistoryViewerPlugin','activeSheet$','url(#history-icon_clip0_907_281)','30249153fvyhkL','none','white','ComponentManager','defineProperty','BehaviorSubject','864sWbLEt','getSheetId','Inject','mountHistoryContent','UniverSheetsChartPlugin','CollaborationEvent','disposeWithMe','HistoryModeStatus','HistoryLoaderService','UniverDataValidationPlugin','UNIVER_PROJECT','displayName','CHANGESET_ACK','clear','dispose','some','getOwnPropertyDescriptor','UniverSheetSparklinePlugin','UniverSheetsConditionalFormattingUIPlugin','flat','_selectionProtectionRuleModel','edit-history-loader.config','fill','map','UniverSheetsFilterPlugin','editHistory.panel.revertFailed','values','WorksheetEditPermission','_messageService','CommandType','_handleRevertAcknowledgement','invoke','session','onCommandExecuted','currentTheme$','univerjs-icon\x20univerjs-icon-','from','RangeProtectionRuleModel','exhaustSavingTask','SYNCED','dispose$','terminate','Loading','UniverSheetsTablePlugin','UniverSheetsHyperLinkUIPlugin','getLocales','getCollabEntity','whenReady','IConfigService','editHistory.info.initializing','UniverSheetsHyperLinkPlugin','subunit','getMenuHiddenObservable','getUnitId','IImageIoService','Module','colorChannel1','UniverUIPlugin','setConfig','UNIVER_HISTORY_CONTAINER_ID','_urlService','_updateURLWithCurrentState','then','_componentManager','_init','assign','_themeService','UniverIcon','UNIVER_CONTAINER_ID','idSuffix','params','100%','pipe','getConfig','UniverSheetsDrawingUIPlugin','getParam','every','_revertErrorTimer','_historyManagerService','UniverSheetsShapePlugin','ToggleEditHistoryOperation','asObservable','HistoryIcon','_configService','onSteady','6238233fXdSqM','workerURL','ThemeService','UniverLicensePlugin','UniverSheetsDataValidationPlugin','top','0\x200\x2016\x2016','defIds','merge','use','unsubscribe','RibbonStartGroup','takeUntil','trim','_updateSubUnitFromURLParams','random','url(#$1','_historyUniver$','RangeProtectionPermissionEditPoint','mask','editHistory.panel.reverting','eventID','getSubunitRuleList','getActiveSheet','_checkCanRevert','UniverSheetsShapeUIPlugin','closeAll','UniverSheetsFormulaPlugin','getAllPlugins','height','IURLService','_initUniver','DisposableCollection','getSheets','Injector','Univer','xlink:href','getCurrentUnitOfType','historyUniver','Disposable','history-icon_clip0_907_281','next','MessageType','pluginName','length','historyPanelComponentKey','_pluginMap','ICommandService','forEach','[HistoryLoaderService]:\x20Plugin\x20','UniverEditHistoryLoaderPlugin','getSheetBySheetId','UniverSheetsDrawingPlugin','UniverDrawingPlugin','div','UNIVER_UNKNOWN','fromCollab','children','UniverSheetsPlugin','_permissionService','Error','_internalWebWorker','composePermission','get','show','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverSheetsUIPlugin','Exited','_disposableCollection','UniverSheetsNumfmtPlugin','toString','BUTTON','UniverRPCMainThreadPlugin','history-container','4uqqsqf','UniverSheetsFilterUIPlugin','MenuItemType','state$','editHistory.panel.listFetchError','_localeService','\x20has\x20been\x20registered.','_localCacheService','4962856mguCXP','UniverNetworkPlugin','left','RevertRevisionMutation','tag','M0\x200H16V16H0z','getElementById','664498iQcnvj','_menuManagerService','getCurrentRangeDisable$','IMessageService','http://www.w3.org/2000/svg','1em','_commandService','WorkbookViewHistoryPermission','OTHERS','IAuthzIoService','current','UniverSheetSparklineUIPlugin','setParam','historyAIassistantEnabled','status','getSheetCommandTarget','disposeUnit','zIndex','register','69783QnBznQ','onStarting','UniverCollaborationPlugin','style','DataLoaderService','IUniverInstanceService','width','add','defs','entries','set','editHistory.panel.title','_config','unMountHistoryContent','type','subscribe','_initContainer','20EWtAeb','_initListener','UNIVER_DOC','univer-history-container','createElement','symbol','string','SetWorksheetActivateCommand','menu','permissionId','getUnit','UniverSheetsPivotTablePlugin','setLocale','Workbook','_injector','18DMwPua','UNRECOGNIZED','66644AnPqtg','useRef','WorkbookEditablePermission','includes','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','UNIVER_SLIDE','attrs','_dialogService','executeCommand','WorkbookRecoverHistoryPermission','_univerInstanceService','value','getCurrentLocale','OPERATION','registerCommand','mutations'];_0x22a9=function(){return _0x76877;};return _0x22a9();}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xb3d05a(0x113)});const o=require('@univerjs/core'),g=require('@univerjs/sheets'),U=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),p=require('@univerjs-pro/edit-history-viewer'),H=require('@univerjs-pro/license'),X=require('@univerjs-pro/sheets-chart'),ee=require('@univerjs-pro/sheets-chart-ui'),ie=require('@univerjs-pro/sheets-pivot'),te=require('@univerjs-pro/sheets-shape'),re=require('@univerjs-pro/sheets-shape-ui'),ne=require('@univerjs-pro/sheets-sparkline'),se=require('@univerjs-pro/sheets-sparkline-ui'),oe=require('@univerjs/data-validation'),P=require('@univerjs/design'),ae=require('@univerjs/docs'),ce=require('@univerjs/docs-ui'),V=require('@univerjs/drawing'),le=require('@univerjs/drawing-ui'),ue=require('@univerjs/engine-formula'),he=require('@univerjs/engine-render'),ge=require('@univerjs/network'),F=require('@univerjs/rpc'),de=require('@univerjs/sheets-conditional-formatting'),ve=require('@univerjs/sheets-conditional-formatting-ui'),_e=require('@univerjs/sheets-data-validation'),Se=require('@univerjs/sheets-data-validation-ui'),me=require('@univerjs/sheets-drawing'),Ie=require('@univerjs/sheets-drawing-ui'),fe=require('@univerjs/sheets-filter'),Ce=require('@univerjs/sheets-filter-ui'),pe=require('@univerjs/sheets-formula'),ye=require('@univerjs/sheets-formula-ui'),Ue=require('@univerjs/sheets-hyper-link'),Ee=require('@univerjs/sheets-hyper-link-ui'),Pe=require('@univerjs/sheets-numfmt'),be=require('@univerjs/sheets-table'),j=require('@univerjs/sheets-ui'),d=require('@univerjs/ui'),E=require('rxjs'),Re=require('@univerjs-pro/collaboration-client-ui'),b=require('react'),I=_0xb3d05a(0x202),W={};var Ne=Object[_0xb3d05a(0x1fd)],Le=(_0x31e4e8,_0x1b5fc4,_0x4c2347,_0x32da49)=>{for(var _0x5b78bd=_0x32da49>0x1?void 0x0:_0x32da49?Ne(_0x1b5fc4,_0x4c2347):_0x1b5fc4,_0x1c5ca4=_0x31e4e8['length']-0x1,_0x2a9e48;_0x1c5ca4>=0x0;_0x1c5ca4--)(_0x2a9e48=_0x31e4e8[_0x1c5ca4])&&(_0x5b78bd=_0x2a9e48(_0x5b78bd)||_0x5b78bd);return _0x5b78bd;},_=(_0x1b1b4d,_0x35bbdd)=>(_0x363501,_0x194221)=>_0x35bbdd(_0x363501,_0x194221,_0x1b1b4d);const He=_0xb3d05a(0x1d3),M=_0xb3d05a(0x120),y=_0xb3d05a(0x1b1);exports[_0xb3d05a(0x1f5)]=class extends o[_0xb3d05a(0x158)]{constructor(_0x5750ed,_0x2e45b3,_0x1fd39b,_0x1a6a7f,_0x4c1ffb,_0x42ee5b,_0x1e1ad6,_0x1e6211,_0x5df8d7,_0x50143c){const _0xe3e453=_0xb3d05a;super(),m(this,_0xe3e453(0x142),new E[(_0xe3e453(0x1ec))](null)),m(this,'historyUniver$',this[_0xe3e453(0x142)][_0xe3e453(0x12d)]()),m(this,_0xe3e453(0x175),new o[(_0xe3e453(0x151))]()),m(this,_0xe3e453(0x15f),new Map()),m(this,_0xe3e453(0x16e),null),(this[_0xe3e453(0x180)]=_0x5750ed,this['_univerInstanceService']=_0x2e45b3,this[_0xe3e453(0x12f)]=_0x1fd39b,this[_0xe3e453(0x190)]=_0x1a6a7f,this['_messageService']=_0x4c1ffb,this[_0xe3e453(0x16c)]=_0x42ee5b,this[_0xe3e453(0x201)]=_0x1e1ad6,this[_0xe3e453(0x1c6)]=_0x1e6211,this['_sidebarService']=_0x5df8d7,this[_0xe3e453(0x11e)]=_0x50143c,this['_init']());}get[_0xb3d05a(0x157)](){const _0x426dd2=_0xb3d05a;return this[_0x426dd2(0x142)]['value'];}[_0xb3d05a(0x11c)](){const _0x4ac504=_0xb3d05a;this[_0x4ac504(0x1ad)](),this[_0x4ac504(0x1d6)]();}[_0xb3d05a(0x1ad)](){const _0x2f229a=_0xb3d05a;var _0x38f38f;const _0x59502b=(_0x38f38f=this['_configService'][_0x2f229a(0x125)](M))!=null?_0x38f38f:He,_0x1f2267=document[_0x2f229a(0x189)](_0x59502b);if(!_0x1f2267)return;const _0x1ef5bd=document[_0x2f229a(0x1b2)](_0x2f229a(0x167));_0x1ef5bd['id']=y,_0x1ef5bd['dataset'][_0x2f229a(0x1d9)]=_0x2f229a(0x17a),_0x1ef5bd[_0x2f229a(0x1a0)]['position']='absolute',_0x1ef5bd[_0x2f229a(0x1a0)][_0x2f229a(0x136)]='0',_0x1ef5bd['style'][_0x2f229a(0x185)]='0',_0x1ef5bd[_0x2f229a(0x1a0)][_0x2f229a(0x1a3)]=_0x2f229a(0x123),_0x1ef5bd[_0x2f229a(0x1a0)][_0x2f229a(0x14e)]=_0x2f229a(0x123),_0x1ef5bd[_0x2f229a(0x1a0)][_0x2f229a(0x19b)]='49',_0x1ef5bd[_0x2f229a(0x1a0)]['display']='none',_0x1f2267['appendChild'](_0x1ef5bd);}[_0xb3d05a(0x1d6)](){const _0x4132ef=_0xb3d05a;[[he['UniverRenderEnginePlugin']],[d[_0x4132ef(0x115)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[d['IDialogService'],null]]}],[ge[_0x4132ef(0x184)]],[V[_0x4132ef(0x166)],{'override':[[V[_0x4132ef(0x112)],null]]}],[ae['UniverDocsPlugin'],{'hasScroll':!0x1}],[ce[_0x4132ef(0x1d5)]],[Pe[_0x4132ef(0x176)]],[g[_0x4132ef(0x16b)],{'notExecuteFormula':!0x0}],[j[_0x4132ef(0x173)]],[pe[_0x4132ef(0x14c)]],[ye['UniverSheetsFormulaUIPlugin']],[U[_0x4132ef(0x19f)]],[fe[_0x4132ef(0x205)]],[Ce[_0x4132ef(0x17c)]],[de[_0x4132ef(0x1e2)]],[ve[_0x4132ef(0x1ff)]],[Ue[_0x4132ef(0x10e)]],[Ee[_0x4132ef(0x219)]],[oe[_0x4132ef(0x1f6)]],[_e[_0x4132ef(0x135)]],[Se['UniverSheetsDataValidationUIPlugin']],[ue['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[le[_0x4132ef(0x1da)]],[me[_0x4132ef(0x165)]],[Ie[_0x4132ef(0x126)]],[ne[_0x4132ef(0x1fe)]],[se[_0x4132ef(0x195)]],[X[_0x4132ef(0x1f1)]],[ee['UniverSheetsChartUIPlugin']],[te[_0x4132ef(0x12b)]],[re[_0x4132ef(0x14a)]],[ie[_0x4132ef(0x1b9)],{'notExecuteFormula':!0x0}],[be[_0x4132ef(0x218)]]][_0x4132ef(0x161)](([_0x5cf53e,_0x562d1e])=>this[_0x4132ef(0x1dc)](_0x5cf53e,_0x562d1e));}['dispose'](){const _0x322906=_0xb3d05a;super[_0x322906(0x1fb)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x322906(0x1fa)]();}[_0xb3d05a(0x1dc)](_0x5206c9,_0x23d6da,_0x1ca8b8){const _0xfd37eb=_0xb3d05a;if(this[_0xfd37eb(0x15f)]['has'](_0x5206c9[_0xfd37eb(0x15c)])&&!_0x1ca8b8)throw new Error(_0xfd37eb(0x162)+_0x5206c9[_0xfd37eb(0x15c)]+_0xfd37eb(0x181));this[_0xfd37eb(0x15f)][_0xfd37eb(0x1a7)](_0x5206c9['pluginName'],[_0x5206c9,_0x23d6da]);}[_0xb3d05a(0x14d)](){const _0x1d8dbc=_0xb3d05a;return Array[_0x1d8dbc(0x211)](this[_0x1d8dbc(0x15f)][_0x1d8dbc(0x207)]());}[_0xb3d05a(0x1f0)](_0x208387,_0x562464){const _0x206856=_0xb3d05a,_0x435d42=document[_0x206856(0x189)](y);_0x435d42&&(_0x435d42['style']['display']=_0x206856(0x1e1),this[_0x206856(0x150)](_0x208387,y,_0x562464));}[_0xb3d05a(0x1aa)](){const _0x3c3a97=_0xb3d05a;var _0x2c3c43;this['_disposableCollection'][_0x3c3a97(0x1fb)](),(_0x2c3c43=this[_0x3c3a97(0x157)])==null||_0x2c3c43[_0x3c3a97(0x1fb)](),this[_0x3c3a97(0x142)][_0x3c3a97(0x15a)](null);const _0x15f4d8=document['getElementById'](y);_0x15f4d8&&(_0x15f4d8[_0x3c3a97(0x1a0)]['display']=_0x3c3a97(0x1e8),this[_0x3c3a97(0x16e)]&&(this['_internalWebWorker'][_0x3c3a97(0x216)](),this[_0x3c3a97(0x16e)]=null));}[_0xb3d05a(0x150)](_0x4cfed2,_0xfa4eea,_0x3d74a0){const _0xc18594=_0xb3d05a;var _0x346915,_0xad063b,_0x14e0b1,_0x40b11b,_0x27aa5b;if(this[_0xc18594(0x157)])return;const _0x1e4a11=new o[(_0xc18594(0x154))]({'locales':{[this[_0xc18594(0x180)][_0xc18594(0x1cb)]()]:this[_0xc18594(0x180)][_0xc18594(0x21a)]()},'override':[[o[_0xc18594(0x193)],{'useClass':f[_0xc18594(0x1d8)]}]]}),_0x4c9391=_0x1e4a11['__getInjector']();this['disposeWithMe'](this['_themeService']['darkMode$'][_0xc18594(0x1ac)](_0x26e8b2=>{const _0x306091=_0xc18594;_0x4c9391[_0x306091(0x170)](o[_0x306091(0x133)])['setDarkMode'](_0x26e8b2);})),this[_0xc18594(0x1f3)](this[_0xc18594(0x11e)][_0xc18594(0x20f)][_0xc18594(0x1ac)](_0x2cc3a1=>{const _0x5f06f1=_0xc18594;_0x4c9391[_0x5f06f1(0x170)](o['ThemeService'])[_0x5f06f1(0x1d2)](_0x2cc3a1);})),_0x4c9391[_0xc18594(0x170)](o[_0xc18594(0x1d4)])[_0xc18594(0x1ba)](this['_localeService'][_0xc18594(0x1cb)]()),_0x4c9391['get'](o['IConfigService'])[_0xc18594(0x116)](f['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0xc18594(0x12f)]['getConfig'](f['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x1e3cbd=this[_0xc18594(0x12f)][_0xc18594(0x125)](H['LS_CONFIG_KEY']);_0x1e3cbd&&_0x1e4a11[_0xc18594(0x1dc)](H[_0xc18594(0x134)],{'license':_0x1e3cbd['ls']});const _0x1a3d95=(_0x346915=this['_configService'][_0xc18594(0x125)](I))==null?void 0x0:_0x346915[_0xc18594(0x132)],_0x1958ee=!!_0x1a3d95;_0x1958ee&&(this[_0xc18594(0x16e)]=_0x1a3d95 instanceof Worker?_0x1a3d95:null,_0x1e4a11[_0xc18594(0x1dc)](F[_0xc18594(0x179)],{'workerURL':_0x1a3d95})),this[_0xc18594(0x15f)][_0xc18594(0x161)](([_0x1e7d17,_0x8d9668])=>{_0x1e4a11['registerPlugin'](_0x1e7d17,_0x8d9668);}),_0x1e4a11[_0xc18594(0x1dc)](p[_0xc18594(0x1e4)],{'historyListServerUrl':(_0xad063b=this[_0xc18594(0x12f)]['getConfig'](I))==null?void 0x0:_0xad063b['historyListServerUrl'],'historyPanelComponentKey':(_0x14e0b1=this[_0xc18594(0x12f)][_0xc18594(0x125)](I))==null?void 0x0:_0x14e0b1[_0xc18594(0x15e)],'historyPanelHidden':(_0x40b11b=this[_0xc18594(0x12f)][_0xc18594(0x125)](I))==null?void 0x0:_0x40b11b['historyPanelHidden'],'historyAIassistantEnabled':(_0x27aa5b=this['_configService'][_0xc18594(0x125)](I))==null?void 0x0:_0x27aa5b[_0xc18594(0x197)]}),_0x4c9391[_0xc18594(0x20c)](_0x5acff1=>{const _0x54d386=_0xc18594;this[_0x54d386(0x1af)](_0x5acff1,_0x4cfed2);}),this[_0xc18594(0x142)][_0xc18594(0x15a)](_0x1e4a11);const _0x35a195=_0x4c9391['get'](p['HistoryManagerService']),_0x40d977=this['_checkCanRevert'](_0x4cfed2),_0x561566=()=>{_0x3d74a0?_0x35a195['triggerCustomVersions'](_0x4cfed2,_0xfa4eea,_0x40d977,_0x3d74a0):_0x35a195['triggerLoadVersions'](_0x4cfed2,_0xfa4eea,_0x40d977);};if(this[_0xc18594(0x209)][_0xc18594(0x171)]({'content':this[_0xc18594(0x180)]['t'](_0xc18594(0x21e)),'type':P['MessageType'][_0xc18594(0x217)]}),_0x1958ee)try{_0x4c9391[_0xc18594(0x170)](F['IRemoteInstanceService'])[_0xc18594(0x21c)]()[_0xc18594(0x11a)](()=>{_0x561566();});}catch{_0x561566();}else _0x561566();}['_initListener'](_0x5dfdff,_0x3bace9){const _0x2f4d1c=_0xb3d05a,_0x13b0a2=_0x5dfdff[_0x2f4d1c(0x170)](p['HistoryManagerService']);this['_disposableCollection']['add'](_0x13b0a2['status$'][_0x2f4d1c(0x1ac)](_0x54d5df=>{const _0x1320a5=_0x2f4d1c;switch(_0x54d5df){case p['HistoryModeStatus']['Entered']:this[_0x1320a5(0x1c6)][_0x1320a5(0x14b)](),this['_sidebarService']['close']();break;case p[_0x1320a5(0x1f4)][_0x1320a5(0x174)]:this[_0x1320a5(0x190)][_0x1320a5(0x1c7)](G['id']),this['unMountHistoryContent']();break;case p['HistoryModeStatus'][_0x1320a5(0x16d)]:this[_0x1320a5(0x1aa)](),this[_0x1320a5(0x209)][_0x1320a5(0x171)]({'content':this['_localeService']['t'](_0x1320a5(0x17f)),'type':P[_0x1320a5(0x15b)][_0x1320a5(0x16d)],'duration':0xbb8});break;}})),this[_0x2f4d1c(0x175)]['add'](_0x13b0a2[_0x2f4d1c(0x1d7)][_0x2f4d1c(0x1ac)](async _0x431fe1=>{const _0x34ec52=_0x2f4d1c;_0x431fe1&&this[_0x34ec52(0x190)][_0x34ec52(0x1c7)](U['RevertRevisionMutation']['id'],{'unitId':_0x3bace9,'revision':_0x431fe1});}));}[_0xb3d05a(0x149)](_0x2f4a8b){const _0x5ba3bc=_0xb3d05a,_0x1f49b4=this[_0x5ba3bc(0x1c9)][_0x5ba3bc(0x1b8)](_0x2f4a8b)[_0x5ba3bc(0x152)]()[_0x5ba3bc(0x204)](_0x38ba26=>_0x38ba26[_0x5ba3bc(0x1ee)]()),_0x52c427=new g[(_0x5ba3bc(0x1c1))](_0x2f4a8b)['id'],_0x3b4fc2=_0x1f49b4[_0x5ba3bc(0x204)](_0x1cdff4=>new g[(_0x5ba3bc(0x208))](_0x2f4a8b,_0x1cdff4)['id']),_0x21910d=_0x1f49b4[_0x5ba3bc(0x204)](_0x3d37cb=>this[_0x5ba3bc(0x201)][_0x5ba3bc(0x147)](_0x2f4a8b,_0x3d37cb)[_0x5ba3bc(0x204)](_0x44e8f5=>new g[(_0x5ba3bc(0x143))](_0x2f4a8b,_0x3d37cb,_0x44e8f5[_0x5ba3bc(0x1b7)])['id']))[_0x5ba3bc(0x200)](),_0x23febd=new g[(_0x5ba3bc(0x1c8))](_0x2f4a8b)['id'];return this['_permissionService'][_0x5ba3bc(0x16f)]([_0x52c427,..._0x3b4fc2,..._0x21910d,_0x23febd])[_0x5ba3bc(0x128)](_0x540182=>!!_0x540182[_0x5ba3bc(0x1ca)]);}},exports[_0xb3d05a(0x1f5)]=Le([_(0x0,o[_0xb3d05a(0x1ef)](o['LocaleService'])),_(0x1,o[_0xb3d05a(0x1a2)]),_(0x2,o[_0xb3d05a(0x21d)]),_(0x3,o[_0xb3d05a(0x160)]),_(0x4,d['IMessageService']),_(0x5,o['IPermissionService']),_(0x6,o[_0xb3d05a(0x1ef)](g[_0xb3d05a(0x212)])),_(0x7,o['Inject'](d['IDialogService'])),_(0x8,o['Inject'](d['ISidebarService'])),_(0x9,o[_0xb3d05a(0x1ef)](o[_0xb3d05a(0x133)]))],exports['HistoryLoaderService']);const N={'id':'univer.operation.toggle-edit-history','type':o[_0xb3d05a(0x20a)][_0xb3d05a(0x1cc)],'handler':_0x2a592d=>{const _0x28b3ca=_0xb3d05a,_0x3560fc=_0x2a592d['get'](exports[_0x28b3ca(0x1f5)]),_0x185a43=_0x2a592d[_0x28b3ca(0x170)](o[_0x28b3ca(0x1a2)]),{unitId:_0x4f2832}=g[_0x28b3ca(0x199)](_0x185a43)||{};return _0x4f2832?(_0x3560fc['mountHistoryContent'](_0x4f2832),!0x0):!0x1;}},G={'id':'univer.operation.exit-edit-history','type':o['CommandType'][_0xb3d05a(0x1cc)],'handler':()=>!0x0};function K({ref:_0x455076,..._0x2ce7a7}){const _0xefed9b=_0xb3d05a,{icon:_0x3e9cc8,id:_0x5bb8b6,className:_0x248fe7,extend:_0x59209f,..._0x4ce7cc}=_0x2ce7a7,_0x43b8a0=(_0xefed9b(0x210)+_0x5bb8b6+'\x20'+(_0x248fe7||''))[_0xefed9b(0x13e)](),_0x23a341=b[_0xefed9b(0x1c0)]('_'+Te());return Y(_0x3e9cc8,''+_0x5bb8b6,{'defIds':_0x3e9cc8[_0xefed9b(0x138)],'idSuffix':_0x23a341[_0xefed9b(0x194)]},{'ref':_0x455076,'className':_0x43b8a0,..._0x4ce7cc},_0x59209f);}function Y(_0x29dd3e,_0x177839,_0x169b11,_0x12f43c,_0xfb6fd){const _0x529709=_0xb3d05a;return b[_0x529709(0x1b2)](_0x29dd3e[_0x529709(0x187)],{'key':_0x177839,...Oe(_0x29dd3e,_0x169b11,_0xfb6fd),..._0x12f43c},(Me(_0x29dd3e,_0x169b11)[_0x529709(0x16a)]||[])[_0x529709(0x204)]((_0x5bca07,_0x224eb2)=>Y(_0x5bca07,_0x177839+'-'+_0x29dd3e[_0x529709(0x187)]+'-'+_0x224eb2,_0x169b11,void 0x0,_0xfb6fd)));}function Oe(_0xa325d1,_0x2731df,_0xeb9350){const _0x3baacf=_0xb3d05a,_0x58cddc={..._0xa325d1[_0x3baacf(0x1c5)]};_0xeb9350!=null&&_0xeb9350['colorChannel1']&&_0x58cddc['fill']===_0x3baacf(0x114)&&(_0x58cddc[_0x3baacf(0x203)]=_0xeb9350[_0x3baacf(0x114)]),_0xa325d1['tag']===_0x3baacf(0x144)&&_0x58cddc['id']&&(_0x58cddc['id']=_0x58cddc['id']+_0x2731df['idSuffix']),Object[_0x3baacf(0x1a6)](_0x58cddc)[_0x3baacf(0x161)](([_0x1ea660,_0x2ec591])=>{const _0xd48fab=_0x3baacf;_0x1ea660===_0xd48fab(0x144)&&typeof _0x2ec591=='string'&&(_0x58cddc[_0x1ea660]=_0x2ec591['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2731df[_0xd48fab(0x121)]+')'));});const {defIds:_0x193c11}=_0x2731df;return!_0x193c11||_0x193c11[_0x3baacf(0x15d)]===0x0||(_0xa325d1[_0x3baacf(0x187)]===_0x3baacf(0x13a)&&_0x58cddc['xlink:href']&&(_0x58cddc[_0x3baacf(0x155)]=_0x58cddc[_0x3baacf(0x155)]+_0x2731df[_0x3baacf(0x121)]),Object[_0x3baacf(0x1a6)](_0x58cddc)['forEach'](([_0x736c90,_0x5d01c3])=>{const _0x4a8af4=_0x3baacf;typeof _0x5d01c3==_0x4a8af4(0x1b4)&&(_0x58cddc[_0x736c90]=_0x5d01c3['replace'](/url\(#(.*)\)/,_0x4a8af4(0x141)+_0x2731df[_0x4a8af4(0x121)]+')'));})),_0x58cddc;}function Me(_0x483c93,_0x42d8be){const _0xe22428=_0xb3d05a;var _0x305f2b;const {defIds:_0x36302e}=_0x42d8be;return!_0x36302e||_0x36302e['length']===0x0?_0x483c93:_0x483c93[_0xe22428(0x187)]===_0xe22428(0x1a5)&&((_0x305f2b=_0x483c93['children'])!=null&&_0x305f2b[_0xe22428(0x15d)])?{..._0x483c93,'children':_0x483c93['children'][_0xe22428(0x204)](_0x5973ad=>typeof _0x5973ad[_0xe22428(0x1c5)]['id']==_0xe22428(0x1b4)&&_0x36302e&&_0x36302e[_0xe22428(0x1c2)](_0x5973ad[_0xe22428(0x1c5)]['id'])?{..._0x5973ad,'attrs':{..._0x5973ad['attrs'],'id':_0x5973ad[_0xe22428(0x1c5)]['id']+_0x42d8be['idSuffix']}}:_0x5973ad)}:_0x483c93;}function Te(){const _0x8dea52=_0xb3d05a;return Math[_0x8dea52(0x140)]()[_0x8dea52(0x177)](0x24)['substring'](0x2,0x8);}K[_0xb3d05a(0x1f8)]=_0xb3d05a(0x11f);const we={'tag':'svg','attrs':{'xmlns':_0xb3d05a(0x18e),'fill':_0xb3d05a(0x1e8),'viewBox':_0xb3d05a(0x137),'width':_0xb3d05a(0x18f),'height':_0xb3d05a(0x18f)},'children':[{'tag':'g','attrs':{'fill':_0xb3d05a(0x1e0),'clipPath':_0xb3d05a(0x1e6)},'children':[{'tag':_0xb3d05a(0x1de),'attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':_0xb3d05a(0x1de),'attrs':{'d':_0xb3d05a(0x1c3)}}]},{'tag':_0xb3d05a(0x1a5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb3d05a(0x159)},'children':[{'tag':'path','attrs':{'fill':_0xb3d05a(0x1e9),'d':_0xb3d05a(0x188)}}]}]}],'defIds':[_0xb3d05a(0x159)]},B=b['forwardRef'](function(_0x34e002,_0x41ef6e){const _0x3536ec=_0xb3d05a;return b[_0x3536ec(0x1b2)](K,Object[_0x3536ec(0x11d)]({},_0x34e002,{'id':'history-icon','ref':_0x41ef6e,'icon':we}));});B[_0xb3d05a(0x1f8)]=_0xb3d05a(0x12e);var O=(_0x1e8d82=>(_0x1e8d82[_0x1e8d82[_0xb3d05a(0x168)]=0x0]='UNIVER_UNKNOWN',_0x1e8d82[_0x1e8d82['UNIVER_DOC']=0x1]=_0xb3d05a(0x1b0),_0x1e8d82[_0x1e8d82[_0xb3d05a(0x1e3)]=0x2]=_0xb3d05a(0x1e3),_0x1e8d82[_0x1e8d82[_0xb3d05a(0x1c4)]=0x3]=_0xb3d05a(0x1c4),_0x1e8d82[_0x1e8d82['UNIVER_PROJECT']=0x4]=_0xb3d05a(0x1f7),_0x1e8d82[_0x1e8d82[_0xb3d05a(0x1be)]=-0x1]='UNRECOGNIZED',_0x1e8d82))(O||{});function De(_0x3915d4){const _0x23662e=_0xb3d05a;return{'id':N['id'],'type':d[_0x23662e(0x17d)][_0x23662e(0x178)],'icon':'HistoryIcon','tooltip':_0x23662e(0x1a8),'hidden$':d[_0x23662e(0x110)](_0x3915d4,o['UniverInstanceType']['UNIVER_SHEET']),'disabled$':j[_0x23662e(0x18c)](_0x3915d4,{'workbookTypes':[g[_0x23662e(0x1c1)],g[_0x23662e(0x191)]],'worksheetTypes':[],'rangeTypes':[]})};}const qe={[d[_0xb3d05a(0x13c)][_0xb3d05a(0x192)]]:{[N['id']]:{'order':0.2,'menuItemFactory':De}}};var $e=Object[_0xb3d05a(0x1fd)],ke=(_0x3124bc,_0x1e58c5,_0x39fe36,_0x246190)=>{const _0x1d7618=_0xb3d05a;for(var _0x44274b=_0x246190>0x1?void 0x0:_0x246190?$e(_0x1e58c5,_0x39fe36):_0x1e58c5,_0x30719e=_0x3124bc[_0x1d7618(0x15d)]-0x1,_0x4be2a5;_0x30719e>=0x0;_0x30719e--)(_0x4be2a5=_0x3124bc[_0x30719e])&&(_0x44274b=_0x4be2a5(_0x44274b)||_0x44274b);return _0x44274b;},h=(_0x575b93,_0xfb6512)=>(_0x3f7cd4,_0x2409a6)=>_0xfb6512(_0x3f7cd4,_0x2409a6,_0x575b93);let R=class extends o['RxDisposable']{constructor(_0x1139dc,_0x285844,_0xbc6570,_0x453f43,_0x2c4212,_0x5a6564,_0x3ec257,_0x58d9e9,_0xee4c9c,_0x3a4a03,_0xa9291f){const _0x5c7799=_0xb3d05a;super(),m(this,_0x5c7799(0x129),null),(this['_commandService']=_0x1139dc,this['_menuManagerService']=_0x285844,this[_0x5c7799(0x11b)]=_0xbc6570,this[_0x5c7799(0x12a)]=_0x453f43,this[_0x5c7799(0x180)]=_0x2c4212,this[_0x5c7799(0x209)]=_0x5a6564,this['_collaborationController']=_0x3ec257,this['_localCacheService']=_0x58d9e9,this['_dataLoaderService']=_0xee4c9c,this[_0x5c7799(0x1c9)]=_0x3a4a03,this[_0x5c7799(0x118)]=_0xa9291f,this[_0x5c7799(0x11c)]());}[_0xb3d05a(0x11c)](){const _0x5eca71=_0xb3d05a;[N,G][_0x5eca71(0x161)](_0x37eb6a=>this[_0x5eca71(0x1f3)](o['toDisposable'](this['_commandService'][_0x5eca71(0x1cd)](_0x37eb6a)))),this[_0x5eca71(0x1f3)](this[_0x5eca71(0x11b)][_0x5eca71(0x19c)](_0x5eca71(0x12e),B)),this[_0x5eca71(0x18b)]['mergeMenu'](qe),this[_0x5eca71(0x1f3)](this['_commandService'][_0x5eca71(0x20e)](async(_0x47d0be,_0x483ce5)=>{const _0x32aab3=_0x5eca71;if(_0x47d0be['id']===U[_0x32aab3(0x186)]['id']){const {unitId:_0x3c6722}=_0x47d0be[_0x32aab3(0x122)];this['_messageService'][_0x32aab3(0x171)]({'content':this[_0x32aab3(0x180)]['t'](_0x32aab3(0x145)),'type':P[_0x32aab3(0x15b)][_0x32aab3(0x217)],'duration':0x1388});const _0x1622f6=this['_collaborationController'][_0x32aab3(0x21b)](_0x3c6722);(_0x483ce5==null?void 0x0:_0x483ce5[_0x32aab3(0x169)])?this[_0x32aab3(0x20b)](_0x1622f6,async()=>(setTimeout(()=>window[_0x32aab3(0x1d1)]['reload']()),!0x0),!0x0):this[_0x32aab3(0x20b)](_0x1622f6,async()=>{const _0x206dd7=_0x32aab3,_0x50b40a=this[_0x206dd7(0x1c9)][_0x206dd7(0x156)](O[_0x206dd7(0x1e3)]),_0x4d12c7=_0x50b40a==null?void 0x0:_0x50b40a['getActiveSheet']();if(!_0x4d12c7)return!0x1;this['_univerInstanceService'][_0x206dd7(0x19a)](_0x3c6722);const _0xabcd=await this['_dataLoaderService']['loadUnit'](_0x3c6722,O[_0x206dd7(0x1e3)]);return _0xabcd&&_0xabcd instanceof o[_0x206dd7(0x1bb)]?(await this[_0x206dd7(0x1cf)](_0xabcd,_0x4d12c7[_0x206dd7(0x1ee)]()),!0x0):!0x1;});}}));}[_0xb3d05a(0x20b)](_0x3d4a86,_0x435b71,_0x3cbd3f=!0x1){const _0x34fa04=_0xb3d05a,_0x2c9ac3=E['combineLatest']([_0x3d4a86[_0x34fa04(0x20d)]['event$'],_0x3d4a86[_0x34fa04(0x17e)]])['subscribe'](async([_0x140665,_0xc1e655])=>{const _0x2e02ca=_0x34fa04;var _0x5000f2;_0x140665[_0x2e02ca(0x146)]===U[_0x2e02ca(0x1f2)][_0x2e02ca(0x1f9)]&&(_0xc1e655==null?void 0x0:_0xc1e655[_0x2e02ca(0x198)])===f['CollaborationStatus'][_0x2e02ca(0x214)]&&_0x140665['data'][_0x2e02ca(0x1ce)][_0x2e02ca(0x1fc)](_0x36eff3=>_0x36eff3['id']===U['RevertRevisionMutation']['id'])&&await _0x435b71()&&(this[_0x2e02ca(0x12a)][_0x2e02ca(0x1aa)](),_0x2c9ac3[_0x2e02ca(0x13b)](),this[_0x2e02ca(0x129)]&&clearTimeout(this[_0x2e02ca(0x129)]),await((_0x5000f2=this[_0x2e02ca(0x182)])==null?void 0x0:_0x5000f2[_0x2e02ca(0x213)]()));});_0x3cbd3f&&(this[_0x34fa04(0x129)]=setTimeout(()=>{const _0x1ac244=_0x34fa04;_0x2c9ac3['unsubscribe'](),this['_messageService'][_0x1ac244(0x171)]({'content':this[_0x1ac244(0x180)]['t'](_0x1ac244(0x206)),'type':P[_0x1ac244(0x15b)][_0x1ac244(0x16d)],'duration':0xbb8});},0x1388));}async[_0xb3d05a(0x1cf)](_0x5b11ca,_0x6f7fe0){const _0x4c5c9c=_0xb3d05a;await this[_0x4c5c9c(0x13f)](_0x5b11ca,_0x6f7fe0),_0x5b11ca[_0x4c5c9c(0x1e5)]['pipe'](E['takeUntil'](this[_0x4c5c9c(0x215)]))['subscribe'](_0x3c2262=>{const _0x4fe035=_0x4c5c9c;_0x3c2262&&this[_0x4fe035(0x119)](_0x3c2262);}),this['_urlService'][_0x4c5c9c(0x1db)][_0x4c5c9c(0x124)](E[_0x4c5c9c(0x13d)](this['dispose$']))['subscribe'](()=>this[_0x4c5c9c(0x13f)](_0x5b11ca,_0x6f7fe0));}[_0xb3d05a(0x119)](_0x163943,_0x204845=!0x1){const _0x1f0635=_0xb3d05a,_0x20e6fc=this[_0x1f0635(0x118)][_0x1f0635(0x127)](_0x1f0635(0x10f));_0x163943[_0x1f0635(0x1ee)]()!==_0x20e6fc&&this[_0x1f0635(0x118)][_0x1f0635(0x196)](_0x1f0635(0x10f),_0x163943[_0x1f0635(0x1ee)](),_0x204845);}async[_0xb3d05a(0x13f)](_0x53cf84,_0x5d3afe){const _0x5cf02a=_0xb3d05a;var _0x33cc45;if(!_0x5d3afe||!_0x53cf84['getSheetBySheetId'](_0x5d3afe)){const _0x175289=_0x53cf84['getUnhiddenWorksheets']()[0x0],_0x1f31b7=_0x53cf84[_0x5cf02a(0x164)](_0x175289);if(!_0x1f31b7)return;this['_updateURLWithCurrentState'](_0x1f31b7,!0x0),await this['_commandService'][_0x5cf02a(0x1c7)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x53cf84[_0x5cf02a(0x111)](),'subUnitId':_0x175289});return;}((_0x33cc45=_0x53cf84[_0x5cf02a(0x148)]())==null?void 0x0:_0x33cc45[_0x5cf02a(0x1ee)]())!==_0x5d3afe&&await this[_0x5cf02a(0x190)][_0x5cf02a(0x1c7)](g[_0x5cf02a(0x1b5)]['id'],{'unitId':_0x53cf84[_0x5cf02a(0x111)](),'subUnitId':_0x5d3afe});}};R=ke([h(0x0,o[_0xb3d05a(0x160)]),h(0x1,d[_0xb3d05a(0x1df)]),h(0x2,o[_0xb3d05a(0x1ef)](d[_0xb3d05a(0x1ea)])),h(0x3,o[_0xb3d05a(0x1ef)](exports[_0xb3d05a(0x1f5)])),h(0x4,o[_0xb3d05a(0x1ef)](o[_0xb3d05a(0x1d4)])),h(0x5,d[_0xb3d05a(0x18d)]),h(0x6,o['Inject'](f['CollaborationController'])),h(0x7,f['ILocalCacheService']),h(0x8,o['Inject'](f[_0xb3d05a(0x1a1)])),h(0x9,o[_0xb3d05a(0x1a2)]),h(0xa,Re[_0xb3d05a(0x14f)])],R);var Ae=Object[_0xb3d05a(0x1eb)],Ve=Object[_0xb3d05a(0x1fd)],Fe=(_0x5c3fee,_0x316eab,_0x43b81b)=>_0x316eab in _0x5c3fee?Ae(_0x5c3fee,_0x316eab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43b81b}):_0x5c3fee[_0x316eab]=_0x43b81b,We=(_0x2a6c06,_0x5b879d,_0xdafd0,_0x341207)=>{for(var _0x525bfc=_0x341207>0x1?void 0x0:_0x341207?Ve(_0x5b879d,_0xdafd0):_0x5b879d,_0x38e126=_0x2a6c06['length']-0x1,_0x489311;_0x38e126>=0x0;_0x38e126--)(_0x489311=_0x2a6c06[_0x38e126])&&(_0x525bfc=_0x489311(_0x525bfc)||_0x525bfc);return _0x525bfc;},x=(_0x12933b,_0x47ad7d)=>(_0xda0a09,_0xe6bdd8)=>_0x47ad7d(_0xda0a09,_0xe6bdd8,_0x12933b),z=(_0x4c2f4c,_0x1351ac,_0x1a1510)=>Fe(_0x4c2f4c,typeof _0x1351ac!=_0xb3d05a(0x1b3)?_0x1351ac+'':_0x1351ac,_0x1a1510);const xe=_0xb3d05a(0x172);function _0x12b9(_0xc931e9,_0x3e3858){_0xc931e9=_0xc931e9-0x10e;const _0x22a9c5=_0x22a9();let _0x12b983=_0x22a9c5[_0xc931e9];return _0x12b983;}exports['UniverEditHistoryLoaderPlugin']=class extends o['Plugin']{constructor(_0x1f5d97=W,_0x64dc81,_0x327b0e){const _0xe5f2a0=_0xb3d05a;super(),this[_0xe5f2a0(0x1a9)]=_0x1f5d97,this['_injector']=_0x64dc81,this[_0xe5f2a0(0x12f)]=_0x327b0e;const {menu:_0x387c80,..._0x4dc201}=o[_0xe5f2a0(0x139)]({},W,this[_0xe5f2a0(0x1a9)]);_0x387c80&&this[_0xe5f2a0(0x12f)][_0xe5f2a0(0x116)](_0xe5f2a0(0x1b6),_0x387c80,{'merge':!0x0}),this['_configService'][_0xe5f2a0(0x116)](I,_0x4dc201),this['_config'][_0xe5f2a0(0x1dd)]&&this[_0xe5f2a0(0x12f)][_0xe5f2a0(0x116)](M,this[_0xe5f2a0(0x1a9)]['univerContainerId']);}[_0xb3d05a(0x19e)](){const _0x54830e=_0xb3d05a;[[exports[_0x54830e(0x1f5)]],[R]][_0x54830e(0x161)](_0x3de7b3=>this[_0x54830e(0x1bc)][_0x54830e(0x1a4)](_0x3de7b3));}[_0xb3d05a(0x130)](){const _0x576a55=_0xb3d05a;this[_0x576a55(0x1bc)]['get'](R);}},z(exports[_0xb3d05a(0x163)],_0xb3d05a(0x1ab),o['UniverInstanceType'][_0xb3d05a(0x168)]),z(exports[_0xb3d05a(0x163)],'pluginName',xe),exports[_0xb3d05a(0x163)]=We([o['DependentOn'](H['UniverLicensePlugin']),x(0x1,o[_0xb3d05a(0x1ef)](o[_0xb3d05a(0x153)])),x(0x2,o[_0xb3d05a(0x21d)])],exports[_0xb3d05a(0x163)]),exports['EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY']=I,exports[_0xb3d05a(0x12c)]=N,exports['UNIVER_CONTAINER_ID_KEY']=M,exports[_0xb3d05a(0x117)]=y;
|
|
1
|
+
'use strict';const _0x44f9d9=_0x4d41;(function(_0x45cc59,_0xf6b433){const _0x34c504=_0x4d41,_0x62579f=_0x45cc59();while(!![]){try{const _0x20e9df=-parseInt(_0x34c504(0x25c))/0x1+-parseInt(_0x34c504(0x2a9))/0x2*(parseInt(_0x34c504(0x261))/0x3)+-parseInt(_0x34c504(0x254))/0x4+-parseInt(_0x34c504(0x28c))/0x5+-parseInt(_0x34c504(0x27d))/0x6+parseInt(_0x34c504(0x2c5))/0x7+parseInt(_0x34c504(0x2a0))/0x8*(parseInt(_0x34c504(0x235))/0x9);if(_0x20e9df===_0xf6b433)break;else _0x62579f['push'](_0x62579f['shift']());}catch(_0x164389){_0x62579f['push'](_0x62579f['shift']());}}}(_0xddd6,0x2adf7));var Q=Object[_0x44f9d9(0x2b6)],X=(_0x3a733d,_0x4f56b0,_0x208c14)=>_0x4f56b0 in _0x3a733d?Q(_0x3a733d,_0x4f56b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208c14}):_0x3a733d[_0x4f56b0]=_0x208c14,m=(_0x1fecc0,_0x48b1ff,_0x40c2d2)=>X(_0x1fecc0,typeof _0x48b1ff!=_0x44f9d9(0x248)?_0x48b1ff+'':_0x48b1ff,_0x40c2d2);Object[_0x44f9d9(0x2b6)](exports,Symbol[_0x44f9d9(0x2c2)],{'value':_0x44f9d9(0x208)});const o=require('@univerjs/core'),g=require('@univerjs/sheets'),U=require('@univerjs-pro/collaboration'),I=require('@univerjs-pro/collaboration-client'),p=require('@univerjs-pro/edit-history-viewer'),O=require('@univerjs-pro/license'),ee=require('@univerjs-pro/sheets-chart'),ie=require('@univerjs-pro/sheets-chart-ui'),te=require('@univerjs-pro/sheets-pivot'),re=require('@univerjs-pro/sheets-shape'),ne=require('@univerjs-pro/sheets-shape-ui'),se=require('@univerjs-pro/sheets-sparkline'),oe=require('@univerjs-pro/sheets-sparkline-ui'),ae=require('@univerjs/data-validation'),P=require('@univerjs/design'),ce=require('@univerjs/docs'),le=require('@univerjs/docs-ui'),F=require('@univerjs/drawing'),ue=require('@univerjs/drawing-ui'),he=require('@univerjs/engine-formula'),ge=require('@univerjs/engine-render'),de=require('@univerjs/network'),W=require('@univerjs/rpc'),ve=require('@univerjs/sheets-conditional-formatting'),_e=require('@univerjs/sheets-conditional-formatting-ui'),Se=require('@univerjs/sheets-data-validation'),me=require('@univerjs/sheets-data-validation-ui'),fe=require('@univerjs/sheets-drawing'),Ie=require('@univerjs/sheets-drawing-ui'),Ce=require('@univerjs/sheets-filter'),pe=require('@univerjs/sheets-filter-ui'),ye=require('@univerjs/sheets-formula'),Ue=require('@univerjs/sheets-formula-ui'),Ee=require('@univerjs/sheets-hyper-link'),Pe=require('@univerjs/sheets-hyper-link-ui'),be=require('@univerjs/sheets-numfmt'),Re=require('@univerjs/sheets-table'),G=require('@univerjs/sheets-ui'),d=require('@univerjs/ui'),E=require('rxjs'),Ne=require('@univerjs-pro/collaboration-client-ui'),b=require('react'),f=_0x44f9d9(0x1ed),x={};var Le=Object[_0x44f9d9(0x27c)],He=(_0x1b8a10,_0x52b3c2,_0x3849dd,_0x174d18)=>{for(var _0x2d597a=_0x174d18>0x1?void 0x0:_0x174d18?Le(_0x52b3c2,_0x3849dd):_0x52b3c2,_0x3e1d76=_0x1b8a10['length']-0x1,_0x12483e;_0x3e1d76>=0x0;_0x3e1d76--)(_0x12483e=_0x1b8a10[_0x3e1d76])&&(_0x2d597a=_0x12483e(_0x2d597a)||_0x2d597a);return _0x2d597a;},_=(_0x292460,_0x402b90)=>(_0x137f5a,_0x4d84b3)=>_0x402b90(_0x137f5a,_0x4d84b3,_0x292460);const Oe=_0x44f9d9(0x2c9),T='UNIVER_CONTAINER_ID',y='univer-history-container';exports[_0x44f9d9(0x2b0)]=class extends o[_0x44f9d9(0x202)]{constructor(_0x405637,_0x2d5d3e,_0x46718a,_0x232c51,_0x28cc7c,_0x58c06e,_0xcd91d9,_0x27a9e5,_0x4b40de,_0x1e93ed){const _0x354622=_0x44f9d9;super(),m(this,_0x354622(0x252),new E[(_0x354622(0x1f5))](null)),m(this,'historyUniver$',this[_0x354622(0x252)][_0x354622(0x21c)]()),m(this,_0x354622(0x2bd),new o[(_0x354622(0x25f))]()),m(this,_0x354622(0x29e),new Map()),m(this,'_internalWebWorker',null),(this['_localeService']=_0x405637,this[_0x354622(0x1ea)]=_0x2d5d3e,this['_configService']=_0x46718a,this[_0x354622(0x27a)]=_0x232c51,this[_0x354622(0x29a)]=_0x28cc7c,this[_0x354622(0x1fe)]=_0x58c06e,this[_0x354622(0x1dc)]=_0xcd91d9,this[_0x354622(0x269)]=_0x27a9e5,this['_sidebarService']=_0x4b40de,this[_0x354622(0x292)]=_0x1e93ed,this[_0x354622(0x28f)]());}get[_0x44f9d9(0x298)](){const _0x489ccc=_0x44f9d9;return this[_0x489ccc(0x252)][_0x489ccc(0x262)];}[_0x44f9d9(0x28f)](){const _0x330136=_0x44f9d9;this[_0x330136(0x23e)](),this[_0x330136(0x22f)]();}[_0x44f9d9(0x23e)](){const _0xd70edf=_0x44f9d9;var _0x499847;const _0x57a715=(_0x499847=this[_0xd70edf(0x1cf)][_0xd70edf(0x24a)](T))!=null?_0x499847:Oe,_0x24e120=document[_0xd70edf(0x277)](_0x57a715);if(!_0x24e120)return;const _0x1ac18f=document['createElement'](_0xd70edf(0x2a5));_0x1ac18f['id']=y,_0x1ac18f[_0xd70edf(0x1c8)][_0xd70edf(0x20c)]=_0xd70edf(0x274),_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x2a1)]=_0xd70edf(0x234),_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x25d)]='0',_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x20f)]='0',_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x215)]=_0xd70edf(0x25a),_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x1e2)]=_0xd70edf(0x25a),_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x22a)]='49',_0x1ac18f['style'][_0xd70edf(0x1c4)]=_0xd70edf(0x1ff),_0x24e120[_0xd70edf(0x1bd)](_0x1ac18f);}[_0x44f9d9(0x22f)](){const _0x4071a8=_0x44f9d9;[[ge['UniverRenderEnginePlugin']],[d[_0x4071a8(0x21e)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[d[_0x4071a8(0x2cb)],null]]}],[de[_0x4071a8(0x224)]],[F['UniverDrawingPlugin'],{'override':[[F[_0x4071a8(0x1e6)],null]]}],[ce[_0x4071a8(0x256)],{'hasScroll':!0x1}],[le[_0x4071a8(0x253)]],[be[_0x4071a8(0x2b1)]],[g[_0x4071a8(0x299)],{'notExecuteFormula':!0x0}],[G[_0x4071a8(0x2ce)]],[ye[_0x4071a8(0x23a)]],[Ue[_0x4071a8(0x205)]],[U[_0x4071a8(0x247)]],[Ce[_0x4071a8(0x2d4)]],[pe['UniverSheetsFilterUIPlugin']],[ve[_0x4071a8(0x1f7)]],[_e[_0x4071a8(0x1c2)]],[Ee[_0x4071a8(0x2d7)]],[Pe[_0x4071a8(0x296)]],[ae[_0x4071a8(0x1f1)]],[Se['UniverSheetsDataValidationPlugin']],[me[_0x4071a8(0x2c0)]],[he[_0x4071a8(0x22b)],{'notExecuteFormula':!0x0}],[ue[_0x4071a8(0x251)]],[fe[_0x4071a8(0x290)]],[Ie[_0x4071a8(0x1f0)]],[se[_0x4071a8(0x1db)]],[oe[_0x4071a8(0x28d)]],[ee['UniverSheetsChartPlugin']],[ie['UniverSheetsChartUIPlugin']],[re[_0x4071a8(0x2de)]],[ne[_0x4071a8(0x1d4)]],[te[_0x4071a8(0x257)],{'notExecuteFormula':!0x0}],[Re['UniverSheetsTablePlugin']]]['forEach'](([_0xf0d728,_0x1a94a3])=>this[_0x4071a8(0x27e)](_0xf0d728,_0x1a94a3));}[_0x44f9d9(0x2b7)](){const _0x478c00=_0x44f9d9;super['dispose'](),this[_0x478c00(0x288)](),this[_0x478c00(0x29e)]['clear']();}['registerPlugin'](_0x13549e,_0x3a8db0,_0x3abb0f){const _0x122e91=_0x44f9d9;if(this[_0x122e91(0x29e)]['has'](_0x13549e[_0x122e91(0x289)])&&!_0x3abb0f)throw new Error(_0x122e91(0x21d)+_0x13549e[_0x122e91(0x289)]+_0x122e91(0x22c));this['_pluginMap']['set'](_0x13549e[_0x122e91(0x289)],[_0x13549e,_0x3a8db0]);}[_0x44f9d9(0x285)](){const _0x5f265d=_0x44f9d9;return Array[_0x5f265d(0x259)](this[_0x5f265d(0x29e)][_0x5f265d(0x1d3)]());}[_0x44f9d9(0x29c)](_0x469a28,_0x3eda02){const _0x5f552f=_0x44f9d9,_0xb208ba=document[_0x5f552f(0x277)](y);_0xb208ba&&(_0xb208ba[_0x5f552f(0x279)][_0x5f552f(0x1c4)]=_0x5f552f(0x1fc),this[_0x5f552f(0x266)](_0x469a28,y,_0x3eda02));}['unMountHistoryContent'](){const _0x3fd60e=_0x44f9d9;var _0x4c78f8;this[_0x3fd60e(0x2bd)][_0x3fd60e(0x2b7)](),(_0x4c78f8=this[_0x3fd60e(0x298)])==null||_0x4c78f8[_0x3fd60e(0x2b7)](),this[_0x3fd60e(0x252)][_0x3fd60e(0x2cd)](null);const _0x48e599=document[_0x3fd60e(0x277)](y);_0x48e599&&(_0x48e599[_0x3fd60e(0x279)][_0x3fd60e(0x1c4)]=_0x3fd60e(0x1ff),this[_0x3fd60e(0x27b)]&&(this[_0x3fd60e(0x27b)][_0x3fd60e(0x24e)](),this[_0x3fd60e(0x27b)]=null));}[_0x44f9d9(0x266)](_0x55aaa5,_0x5abb30,_0x791a9){const _0x51dc9b=_0x44f9d9;var _0x255a3f,_0x53902c,_0x5418f5,_0x59db0a,_0x5259c7;if(this[_0x51dc9b(0x298)])return;const _0x58a3d2=new o[(_0x51dc9b(0x1c9))]({'locales':{[this[_0x51dc9b(0x287)][_0x51dc9b(0x286)]()]:this[_0x51dc9b(0x287)][_0x51dc9b(0x1ef)]()},'override':[[o[_0x51dc9b(0x23c)],{'useClass':I[_0x51dc9b(0x295)]}]]}),_0x36af74=_0x58a3d2[_0x51dc9b(0x23d)]();this['disposeWithMe'](this[_0x51dc9b(0x292)][_0x51dc9b(0x2d0)]['subscribe'](_0x16d305=>{const _0x3af869=_0x51dc9b;_0x36af74[_0x3af869(0x232)](o[_0x3af869(0x218)])['setDarkMode'](_0x16d305);})),this[_0x51dc9b(0x270)](this[_0x51dc9b(0x292)][_0x51dc9b(0x1fb)]['subscribe'](_0x47f6eb=>{const _0x3ee24e=_0x51dc9b;_0x36af74['get'](o[_0x3ee24e(0x218)])[_0x3ee24e(0x2a4)](_0x47f6eb);})),_0x36af74['get'](o[_0x51dc9b(0x2aa)])[_0x51dc9b(0x24d)](this[_0x51dc9b(0x287)][_0x51dc9b(0x286)]()),_0x36af74[_0x51dc9b(0x232)](o[_0x51dc9b(0x20d)])[_0x51dc9b(0x24b)](I[_0x51dc9b(0x2d8)],this[_0x51dc9b(0x1cf)][_0x51dc9b(0x24a)](I[_0x51dc9b(0x2d8)]));const _0x32306d=this['_configService']['getConfig'](O[_0x51dc9b(0x268)]);_0x32306d&&_0x58a3d2[_0x51dc9b(0x27e)](O[_0x51dc9b(0x210)],{'license':_0x32306d['ls']});const _0x5ae51a=(_0x255a3f=this[_0x51dc9b(0x1cf)][_0x51dc9b(0x24a)](f))==null?void 0x0:_0x255a3f[_0x51dc9b(0x1d8)],_0xfeb7a6=!!_0x5ae51a;_0xfeb7a6&&(this[_0x51dc9b(0x27b)]=_0x5ae51a instanceof Worker?_0x5ae51a:null,_0x58a3d2[_0x51dc9b(0x27e)](W[_0x51dc9b(0x209)],{'workerURL':_0x5ae51a})),this[_0x51dc9b(0x29e)][_0x51dc9b(0x265)](([_0x5b85b8,_0x459551])=>{const _0x29b11d=_0x51dc9b;_0x58a3d2[_0x29b11d(0x27e)](_0x5b85b8,_0x459551);}),_0x58a3d2[_0x51dc9b(0x27e)](p[_0x51dc9b(0x2c3)],{'historyListServerUrl':(_0x53902c=this[_0x51dc9b(0x1cf)]['getConfig'](f))==null?void 0x0:_0x53902c['historyListServerUrl'],'historyPanelComponentKey':(_0x5418f5=this['_configService'][_0x51dc9b(0x24a)](f))==null?void 0x0:_0x5418f5[_0x51dc9b(0x2bb)],'historyPanelHidden':(_0x59db0a=this[_0x51dc9b(0x1cf)][_0x51dc9b(0x24a)](f))==null?void 0x0:_0x59db0a[_0x51dc9b(0x221)],'historyAIassistantEnabled':(_0x5259c7=this[_0x51dc9b(0x1cf)][_0x51dc9b(0x24a)](f))==null?void 0x0:_0x5259c7[_0x51dc9b(0x200)]}),_0x36af74[_0x51dc9b(0x28b)](_0x671e4a=>{const _0x2c7de4=_0x51dc9b;this[_0x2c7de4(0x226)](_0x671e4a,_0x55aaa5);}),this['_historyUniver$'][_0x51dc9b(0x2cd)](_0x58a3d2);const _0x24e3bf=_0x36af74[_0x51dc9b(0x232)](p[_0x51dc9b(0x2cf)]),_0x4c7092=this[_0x51dc9b(0x2bf)](_0x55aaa5),_0x32f24e=()=>{const _0x4845b5=_0x51dc9b;_0x791a9?_0x24e3bf[_0x4845b5(0x1e3)](_0x55aaa5,_0x5abb30,_0x4c7092,_0x791a9):_0x24e3bf[_0x4845b5(0x21b)](_0x55aaa5,_0x5abb30,_0x4c7092);};if(this[_0x51dc9b(0x29a)][_0x51dc9b(0x246)]({'content':this[_0x51dc9b(0x287)]['t'](_0x51dc9b(0x1f9)),'type':P['MessageType'][_0x51dc9b(0x1c1)]}),_0xfeb7a6)try{_0x36af74[_0x51dc9b(0x232)](W['IRemoteInstanceService'])[_0x51dc9b(0x2bc)]()[_0x51dc9b(0x2af)](()=>{_0x32f24e();});}catch{_0x32f24e();}else _0x32f24e();}[_0x44f9d9(0x226)](_0x32bdff,_0x173335){const _0x2e5f32=_0x44f9d9,_0x554892=_0x32bdff[_0x2e5f32(0x232)](p[_0x2e5f32(0x2cf)]);this['_disposableCollection'][_0x2e5f32(0x276)](_0x554892[_0x2e5f32(0x273)][_0x2e5f32(0x29d)](_0x201b3c=>{const _0x2ebc2f=_0x2e5f32;switch(_0x201b3c){case p[_0x2ebc2f(0x2d2)]['Entered']:this[_0x2ebc2f(0x269)][_0x2ebc2f(0x231)](),this['_sidebarService'][_0x2ebc2f(0x25b)]();break;case p[_0x2ebc2f(0x2d2)]['Exited']:this[_0x2ebc2f(0x27a)]['executeCommand'](K['id']),this['unMountHistoryContent']();break;case p[_0x2ebc2f(0x2d2)][_0x2ebc2f(0x1d5)]:this['unMountHistoryContent'](),this[_0x2ebc2f(0x29a)][_0x2ebc2f(0x246)]({'content':this['_localeService']['t'](_0x2ebc2f(0x206)),'type':P[_0x2ebc2f(0x2d9)]['Error'],'duration':0xbb8});break;}})),this['_disposableCollection']['add'](_0x554892[_0x2e5f32(0x25e)]['subscribe'](async _0x3a161c=>{const _0x31e321=_0x2e5f32;_0x3a161c&&this[_0x31e321(0x27a)][_0x31e321(0x2dc)](U[_0x31e321(0x1e7)]['id'],{'unitId':_0x173335,'revision':_0x3a161c});}));}[_0x44f9d9(0x2bf)](_0x513c38){const _0x239713=_0x44f9d9,_0x2f8934=this[_0x239713(0x1ea)][_0x239713(0x282)](_0x513c38)[_0x239713(0x1de)]()[_0x239713(0x2b3)](_0x289bab=>_0x289bab['getSheetId']()),_0x2e3a73=new g[(_0x239713(0x2ae))](_0x513c38)['id'],_0x19e5c3=_0x2f8934[_0x239713(0x2b3)](_0xff4da7=>new g[(_0x239713(0x2ad))](_0x513c38,_0xff4da7)['id']),_0x1acb2d=_0x2f8934['map'](_0x14b0b3=>this[_0x239713(0x1dc)][_0x239713(0x204)](_0x513c38,_0x14b0b3)[_0x239713(0x2b3)](_0x2b07e0=>new g[(_0x239713(0x1c3))](_0x513c38,_0x14b0b3,_0x2b07e0['permissionId'])['id']))[_0x239713(0x293)](),_0x1c1392=new g[(_0x239713(0x211))](_0x513c38)['id'];return this[_0x239713(0x1fe)][_0x239713(0x2c1)]([_0x2e3a73,..._0x19e5c3,..._0x1acb2d,_0x1c1392])[_0x239713(0x2ab)](_0x5e86c6=>!!_0x5e86c6['value']);}},exports[_0x44f9d9(0x2b0)]=He([_(0x0,o[_0x44f9d9(0x263)](o[_0x44f9d9(0x2aa)])),_(0x1,o[_0x44f9d9(0x267)]),_(0x2,o[_0x44f9d9(0x20d)]),_(0x3,o[_0x44f9d9(0x1e8)]),_(0x4,d[_0x44f9d9(0x249)]),_(0x5,o[_0x44f9d9(0x297)]),_(0x6,o[_0x44f9d9(0x263)](g['RangeProtectionRuleModel'])),_(0x7,o['Inject'](d[_0x44f9d9(0x2cb)])),_(0x8,o[_0x44f9d9(0x263)](d[_0x44f9d9(0x2b9)])),_(0x9,o['Inject'](o['ThemeService']))],exports['HistoryLoaderService']);const N={'id':_0x44f9d9(0x1ee),'type':o['CommandType'][_0x44f9d9(0x201)],'handler':_0x211d60=>{const _0x26be9b=_0x44f9d9,_0x30e242=_0x211d60[_0x26be9b(0x232)](exports[_0x26be9b(0x2b0)]),_0x1efe59=_0x211d60['get'](o[_0x26be9b(0x267)]),{unitId:_0x1517c0}=g[_0x26be9b(0x283)](_0x1efe59)||{};return _0x1517c0?(_0x30e242['mountHistoryContent'](_0x1517c0),!0x0):!0x1;}},K={'id':_0x44f9d9(0x241),'type':o[_0x44f9d9(0x258)][_0x44f9d9(0x201)],'handler':()=>!0x0},Me=_0x44f9d9(0x1fd),Te=_0x44f9d9(0x245),Y={'name':Me,'version':Te};function B({ref:_0x134dcc,..._0x1def7e}){const _0x1578f1=_0x44f9d9,{icon:_0x52b153,id:_0x5d2406,className:_0x4950c2,extend:_0x4a3f78,..._0x5bafa3}=_0x1def7e,_0x5bd5b6=(_0x1578f1(0x240)+_0x5d2406+'\x20'+(_0x4950c2||''))['trim'](),_0x46648e=b[_0x1578f1(0x1d7)]('_'+qe());return z(_0x52b153,''+_0x5d2406,{'defIds':_0x52b153[_0x1578f1(0x1c5)],'idSuffix':_0x46648e[_0x1578f1(0x2df)]},{'ref':_0x134dcc,'className':_0x5bd5b6,..._0x5bafa3},_0x4a3f78);}function z(_0x33b108,_0x52ed32,_0x2fed92,_0x5101b5,_0x4d4277){const _0x44f556=_0x44f9d9;return b['createElement'](_0x33b108[_0x44f556(0x2b8)],{'key':_0x52ed32,...we(_0x33b108,_0x2fed92,_0x4d4277),..._0x5101b5},(De(_0x33b108,_0x2fed92)[_0x44f556(0x2da)]||[])[_0x44f556(0x2b3)]((_0x344cfe,_0x6965d4)=>z(_0x344cfe,_0x52ed32+'-'+_0x33b108[_0x44f556(0x2b8)]+'-'+_0x6965d4,_0x2fed92,void 0x0,_0x4d4277)));}function we(_0x3dd537,_0x49fd02,_0x3522a2){const _0x2d9655=_0x44f9d9,_0x4889e0={..._0x3dd537[_0x2d9655(0x29f)]};_0x3522a2!=null&&_0x3522a2['colorChannel1']&&_0x4889e0[_0x2d9655(0x255)]==='colorChannel1'&&(_0x4889e0[_0x2d9655(0x255)]=_0x3522a2['colorChannel1']),_0x3dd537['tag']===_0x2d9655(0x22e)&&_0x4889e0['id']&&(_0x4889e0['id']=_0x4889e0['id']+_0x49fd02[_0x2d9655(0x1e4)]),Object[_0x2d9655(0x1e9)](_0x4889e0)[_0x2d9655(0x265)](([_0x55288c,_0x310128])=>{const _0x5d8d6d=_0x2d9655;_0x55288c===_0x5d8d6d(0x22e)&&typeof _0x310128=='string'&&(_0x4889e0[_0x55288c]=_0x310128[_0x5d8d6d(0x1e5)](/url\(#(.*)\)/,_0x5d8d6d(0x281)+_0x49fd02[_0x5d8d6d(0x1e4)]+')'));});const {defIds:_0x18e46f}=_0x49fd02;return!_0x18e46f||_0x18e46f[_0x2d9655(0x1fa)]===0x0||(_0x3dd537[_0x2d9655(0x2b8)]===_0x2d9655(0x1d0)&&_0x4889e0[_0x2d9655(0x1f3)]&&(_0x4889e0[_0x2d9655(0x1f3)]=_0x4889e0[_0x2d9655(0x1f3)]+_0x49fd02['idSuffix']),Object[_0x2d9655(0x1e9)](_0x4889e0)[_0x2d9655(0x265)](([_0x1059a6,_0x3f5b87])=>{const _0xe7db92=_0x2d9655;typeof _0x3f5b87==_0xe7db92(0x220)&&(_0x4889e0[_0x1059a6]=_0x3f5b87[_0xe7db92(0x1e5)](/url\(#(.*)\)/,_0xe7db92(0x281)+_0x49fd02[_0xe7db92(0x1e4)]+')'));})),_0x4889e0;}function De(_0x59b8c4,_0x2996de){const _0x125b16=_0x44f9d9;var _0x456cd3;const {defIds:_0x1f3adc}=_0x2996de;return!_0x1f3adc||_0x1f3adc[_0x125b16(0x1fa)]===0x0?_0x59b8c4:_0x59b8c4[_0x125b16(0x2b8)]==='defs'&&((_0x456cd3=_0x59b8c4['children'])!=null&&_0x456cd3['length'])?{..._0x59b8c4,'children':_0x59b8c4[_0x125b16(0x2da)]['map'](_0x580019=>typeof _0x580019[_0x125b16(0x29f)]['id']==_0x125b16(0x220)&&_0x1f3adc&&_0x1f3adc[_0x125b16(0x2dd)](_0x580019['attrs']['id'])?{..._0x580019,'attrs':{..._0x580019[_0x125b16(0x29f)],'id':_0x580019['attrs']['id']+_0x2996de[_0x125b16(0x1e4)]}}:_0x580019)}:_0x59b8c4;}function qe(){const _0x263b55=_0x44f9d9;return Math[_0x263b55(0x225)]()[_0x263b55(0x20e)](0x24)[_0x263b55(0x280)](0x2,0x8);}B[_0x44f9d9(0x28e)]=_0x44f9d9(0x26b);const ke={'tag':_0x44f9d9(0x227),'attrs':{'xmlns':_0x44f9d9(0x1ce),'fill':_0x44f9d9(0x1ff),'viewBox':'0\x200\x2016\x2016','width':_0x44f9d9(0x24c),'height':_0x44f9d9(0x24c)},'children':[{'tag':'g','attrs':{'fill':_0x44f9d9(0x2db),'clipPath':_0x44f9d9(0x229)},'children':[{'tag':_0x44f9d9(0x28a),'attrs':{'d':_0x44f9d9(0x275)}},{'tag':_0x44f9d9(0x28a),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x44f9d9(0x1bf)},'children':[{'tag':_0x44f9d9(0x28a),'attrs':{'fill':'white','d':_0x44f9d9(0x1f4)}}]}]}],'defIds':[_0x44f9d9(0x1bf)]},Z=b['forwardRef'](function(_0x1afc5a,_0x302baf){const _0x237d43=_0x44f9d9;return b[_0x237d43(0x278)](B,Object[_0x237d43(0x207)]({},_0x1afc5a,{'id':_0x237d43(0x1e1),'ref':_0x302baf,'icon':ke}));});function _0xddd6(){const _0x352776=['data','Loading','UniverSheetsConditionalFormattingUIPlugin','RangeProtectionPermissionEditPoint','display','defIds','_setupSubUnitSync','UNIVER_SLIDE','dataset','Univer','_componentManager','_config','_updateSubUnitFromURLParams','dispose$','http://www.w3.org/2000/svg','_configService','use','ComponentManager','_historyManagerService','values','UniverSheetsShapeUIPlugin','Error','event$','useRef','workerURL','UNIVER_CONTAINER_ID_KEY','Injector','UniverSheetSparklinePlugin','_selectionProtectionRuleModel','ILocalCacheService','getSheets','location','version','history-icon','height','triggerCustomVersions','idSuffix','replace','IImageIoService','RevertRevisionMutation','ICommandService','entries','_univerInstanceService','Plugin','takeUntil','edit-history-loader.config','univer.operation.toggle-edit-history','getLocales','UniverSheetsDrawingUIPlugin','UniverDataValidationPlugin','UNIVER_PROJECT','xlink:href','M0\x200H16V16H0z','BehaviorSubject','_localCacheService','UniverSheetsConditionalFormattingPlugin','getSheetBySheetId','editHistory.info.initializing','length','currentTheme$','block','@univerjs-pro/edit-history-loader','_permissionService','none','historyAIassistantEnabled','OPERATION','Disposable','_injector','getSubunitRuleList','UniverSheetsFormulaUIPlugin','editHistory.panel.listFetchError','assign','Module','UniverRPCMainThreadPlugin','reload','pipe','uComp','IConfigService','toString','left','UniverLicensePlugin','WorkbookRecoverHistoryPermission','register','CHANGESET_ACK','editHistory.panel.title','width','editHistory.panel.reverting','unsubscribe','ThemeService','state$','IMenuManagerService','triggerLoadVersions','asObservable','[HistoryLoaderService]:\x20Plugin\x20','UniverUIPlugin','editHistory.panel.revertFailed','string','historyPanelHidden','univerContainerId','_handleRevertAcknowledgement','UniverNetworkPlugin','random','_initListener','svg','SYNCED','url(#history-icon_clip0_907_281)','zIndex','UniverFormulaEnginePlugin','\x20has\x20been\x20registered.','CollaborationEvent','mask','_initPlugins','name','closeAll','get','disposeUnit','absolute','54YAnuen','_revertErrorTimer','fromCollab','params','getCurrentRangeDisable$','UniverSheetsFormulaPlugin','CollaborationController','IAuthzIoService','__getInjector','_initContainer','type','univerjs-icon\x20univerjs-icon-','univer.operation.exit-edit-history','_menuManagerService','RibbonStartGroup','_dataLoaderService','0.17.0','show','UniverCollaborationPlugin','symbol','IMessageService','getConfig','setConfig','1em','setLocale','terminate','UNIVER_UNKNOWN','getUnitId','UniverDrawingUIPlugin','_historyUniver$','UniverDocsUIPlugin','1337076NKuRjS','fill','UniverDocsPlugin','UniverSheetsPivotTablePlugin','CommandType','from','100%','close','235288gwXbKk','top','revertRevision$','DisposableCollection','CollaborationStatus','711dvVeSa','value','Inject','packageName','forEach','_initUniver','IUniverInstanceService','LS_CONFIG_KEY','_dialogService','UNIVER_HISTORY_CONTAINER_ID','UniverIcon','MenuItemType','getCollabEntity','loadUnit','OTHERS','disposeWithMe','eventID','HistoryIcon','status$','history-container','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','add','getElementById','createElement','style','_commandService','_internalWebWorker','getOwnPropertyDescriptor','1082604LeZFSI','registerPlugin','WorkbookViewHistoryPermission','substring','url(#$1','getUnit','getSheetCommandTarget','activeSheet$','getAllPlugins','getCurrentLocale','_localeService','unMountHistoryContent','pluginName','path','invoke','430195sGgCWw','UniverSheetSparklineUIPlugin','displayName','_init','UniverSheetsDrawingPlugin','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_themeService','flat','onSteady','AuthzIoHttpService','UniverSheetsHyperLinkUIPlugin','IPermissionService','historyUniver','UniverSheetsPlugin','_messageService','UNRECOGNIZED','mountHistoryContent','subscribe','_pluginMap','attrs','1311392vCMOvf','position','getSheetId','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','setTheme','div','getActiveSheet','getCurrentUnitOfType','SetWorksheetActivateCommand','74eyaFHQ','LocaleService','every','menu','WorksheetEditPermission','WorkbookEditablePermission','then','HistoryLoaderService','UniverSheetsNumfmtPlugin','_collaborationController','map','registerCommand','IURLService','defineProperty','dispose','tag','ISidebarService','UNIVER_DOC','historyPanelComponentKey','whenReady','_disposableCollection','_urlService','_checkCanRevert','UniverSheetsDataValidationUIPlugin','composePermission','toStringTag','UniverEditHistoryViewerPlugin','status','258034PaGOOA','exhaustSavingTask','subunit','UNIVER_SHEET','univer-container','UniverEditHistoryLoaderPlugin','IDialogService','BUTTON','next','UniverSheetsUIPlugin','HistoryManagerService','darkMode$','RxDisposable','HistoryModeStatus','mergeMenu','UniverSheetsFilterPlugin','onStarting','mutations','UniverSheetsHyperLinkPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','MessageType','children','currentColor','executeCommand','includes','UniverSheetsShapePlugin','current','urlChange$','session','onCommandExecuted','_updateURLWithCurrentState','toDisposable','appendChild','UniverInstanceType','history-icon_clip0_907_281'];_0xddd6=function(){return _0x352776;};return _0xddd6();}Z[_0x44f9d9(0x28e)]=_0x44f9d9(0x272);var M=(_0x35fd68=>(_0x35fd68[_0x35fd68[_0x44f9d9(0x24f)]=0x0]=_0x44f9d9(0x24f),_0x35fd68[_0x35fd68[_0x44f9d9(0x2ba)]=0x1]=_0x44f9d9(0x2ba),_0x35fd68[_0x35fd68['UNIVER_SHEET']=0x2]=_0x44f9d9(0x2c8),_0x35fd68[_0x35fd68[_0x44f9d9(0x1c7)]=0x3]=_0x44f9d9(0x1c7),_0x35fd68[_0x35fd68[_0x44f9d9(0x1f2)]=0x4]=_0x44f9d9(0x1f2),_0x35fd68[_0x35fd68[_0x44f9d9(0x29b)]=-0x1]=_0x44f9d9(0x29b),_0x35fd68))(M||{});function $e(_0x21c243){const _0x2c2b07=_0x44f9d9;return{'id':N['id'],'type':d[_0x2c2b07(0x26c)][_0x2c2b07(0x2cc)],'icon':'HistoryIcon','tooltip':_0x2c2b07(0x214),'hidden$':d['getMenuHiddenObservable'](_0x21c243,o[_0x2c2b07(0x1be)]['UNIVER_SHEET']),'disabled$':G[_0x2c2b07(0x239)](_0x21c243,{'workbookTypes':[g['WorkbookEditablePermission'],g[_0x2c2b07(0x27f)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ve={[d[_0x44f9d9(0x243)][_0x44f9d9(0x26f)]]:{[N['id']]:{'order':0.2,'menuItemFactory':$e}}};function _0x4d41(_0x2fb306,_0xa11454){_0x2fb306=_0x2fb306-0x1ba;const _0xddd6bc=_0xddd6();let _0x4d4150=_0xddd6bc[_0x2fb306];return _0x4d4150;}var Ae=Object[_0x44f9d9(0x27c)],Fe=(_0x396f2f,_0x452bcc,_0x232b1f,_0x1e9884)=>{const _0x258c23=_0x44f9d9;for(var _0xe0010c=_0x1e9884>0x1?void 0x0:_0x1e9884?Ae(_0x452bcc,_0x232b1f):_0x452bcc,_0x3d66b4=_0x396f2f[_0x258c23(0x1fa)]-0x1,_0x2c5c60;_0x3d66b4>=0x0;_0x3d66b4--)(_0x2c5c60=_0x396f2f[_0x3d66b4])&&(_0xe0010c=_0x2c5c60(_0xe0010c)||_0xe0010c);return _0xe0010c;},h=(_0x425870,_0x40a2e8)=>(_0x25b930,_0x154320)=>_0x40a2e8(_0x25b930,_0x154320,_0x425870);let R=class extends o[_0x44f9d9(0x2d1)]{constructor(_0x5172e4,_0x187b80,_0x4b2821,_0x1d1f0b,_0x255c49,_0x49ae0e,_0x2ac08c,_0x30f596,_0xb2018e,_0x37be15,_0x3cb42b){const _0x5935f6=_0x44f9d9;super(),m(this,_0x5935f6(0x236),null),(this[_0x5935f6(0x27a)]=_0x5172e4,this[_0x5935f6(0x242)]=_0x187b80,this[_0x5935f6(0x1ca)]=_0x4b2821,this[_0x5935f6(0x1d2)]=_0x1d1f0b,this[_0x5935f6(0x287)]=_0x255c49,this[_0x5935f6(0x29a)]=_0x49ae0e,this[_0x5935f6(0x2b2)]=_0x2ac08c,this[_0x5935f6(0x1f6)]=_0x30f596,this[_0x5935f6(0x244)]=_0xb2018e,this[_0x5935f6(0x1ea)]=_0x37be15,this[_0x5935f6(0x2be)]=_0x3cb42b,this[_0x5935f6(0x28f)]());}['_init'](){const _0x1fa3a6=_0x44f9d9;[N,K]['forEach'](_0x49eeba=>this[_0x1fa3a6(0x270)](o[_0x1fa3a6(0x1bc)](this['_commandService'][_0x1fa3a6(0x2b4)](_0x49eeba)))),this[_0x1fa3a6(0x270)](this[_0x1fa3a6(0x1ca)][_0x1fa3a6(0x212)]('HistoryIcon',Z)),this['_menuManagerService'][_0x1fa3a6(0x2d3)](Ve),this[_0x1fa3a6(0x270)](this[_0x1fa3a6(0x27a)][_0x1fa3a6(0x1ba)](async(_0x54732a,_0xbb8b51)=>{const _0x1f6571=_0x1fa3a6;if(_0x54732a['id']===U[_0x1f6571(0x1e7)]['id']){const {unitId:_0x532dbf}=_0x54732a[_0x1f6571(0x238)];this[_0x1f6571(0x29a)]['show']({'content':this[_0x1f6571(0x287)]['t'](_0x1f6571(0x216)),'type':P[_0x1f6571(0x2d9)]['Loading'],'duration':0x1388});const _0x3f0cc8=this[_0x1f6571(0x2b2)][_0x1f6571(0x26d)](_0x532dbf);(_0xbb8b51==null?void 0x0:_0xbb8b51[_0x1f6571(0x237)])?this['_handleRevertAcknowledgement'](_0x3f0cc8,async()=>(setTimeout(()=>window[_0x1f6571(0x1df)][_0x1f6571(0x20a)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x3f0cc8,async()=>{const _0xee58cd=_0x1f6571,_0x3eae2e=this['_univerInstanceService'][_0xee58cd(0x2a7)](M[_0xee58cd(0x2c8)]),_0x805ac0=_0x3eae2e==null?void 0x0:_0x3eae2e[_0xee58cd(0x2a6)]();if(!_0x805ac0)return!0x1;this[_0xee58cd(0x1ea)][_0xee58cd(0x233)](_0x532dbf);const _0xb96889=await this[_0xee58cd(0x244)][_0xee58cd(0x26e)](_0x532dbf,M[_0xee58cd(0x2c8)]);return _0xb96889&&_0xb96889 instanceof o['Workbook']?(await this['_setupSubUnitSync'](_0xb96889,_0x805ac0[_0xee58cd(0x2a2)]()),!0x0):!0x1;});}}));}[_0x44f9d9(0x223)](_0x506967,_0x524bd8,_0x2e98a6=!0x1){const _0x373767=_0x44f9d9,_0x3bc13e=E['combineLatest']([_0x506967[_0x373767(0x2e1)][_0x373767(0x1d6)],_0x506967[_0x373767(0x219)]])[_0x373767(0x29d)](async([_0x1ca5a5,_0x59d098])=>{const _0x8e6369=_0x373767;var _0xe4c9d2;_0x1ca5a5[_0x8e6369(0x271)]===U[_0x8e6369(0x22d)][_0x8e6369(0x213)]&&(_0x59d098==null?void 0x0:_0x59d098[_0x8e6369(0x2c4)])===I[_0x8e6369(0x260)][_0x8e6369(0x228)]&&_0x1ca5a5[_0x8e6369(0x1c0)][_0x8e6369(0x2d6)]['some'](_0x419076=>_0x419076['id']===U[_0x8e6369(0x1e7)]['id'])&&await _0x524bd8()&&(this[_0x8e6369(0x1d2)]['unMountHistoryContent'](),_0x3bc13e[_0x8e6369(0x217)](),this[_0x8e6369(0x236)]&&clearTimeout(this[_0x8e6369(0x236)]),await((_0xe4c9d2=this['_localCacheService'])==null?void 0x0:_0xe4c9d2[_0x8e6369(0x2c6)]()));});_0x2e98a6&&(this[_0x373767(0x236)]=setTimeout(()=>{const _0x143def=_0x373767;_0x3bc13e['unsubscribe'](),this[_0x143def(0x29a)][_0x143def(0x246)]({'content':this[_0x143def(0x287)]['t'](_0x143def(0x21f)),'type':P[_0x143def(0x2d9)][_0x143def(0x1d5)],'duration':0xbb8});},0x1388));}async[_0x44f9d9(0x1c6)](_0x485db1,_0x4558f3){const _0x19780b=_0x44f9d9;await this[_0x19780b(0x1cc)](_0x485db1,_0x4558f3),_0x485db1[_0x19780b(0x284)][_0x19780b(0x20b)](E[_0x19780b(0x1ec)](this[_0x19780b(0x1cd)]))[_0x19780b(0x29d)](_0xd68295=>{const _0x2906f8=_0x19780b;_0xd68295&&this[_0x2906f8(0x1bb)](_0xd68295);}),this[_0x19780b(0x2be)][_0x19780b(0x2e0)][_0x19780b(0x20b)](E['takeUntil'](this[_0x19780b(0x1cd)]))[_0x19780b(0x29d)](()=>this[_0x19780b(0x1cc)](_0x485db1,_0x4558f3));}['_updateURLWithCurrentState'](_0x537129,_0x7979b9=!0x1){const _0x279615=_0x44f9d9,_0x13ef56=this['_urlService']['getParam'](_0x279615(0x2c7));_0x537129[_0x279615(0x2a2)]()!==_0x13ef56&&this[_0x279615(0x2be)]['setParam'](_0x279615(0x2c7),_0x537129[_0x279615(0x2a2)](),_0x7979b9);}async[_0x44f9d9(0x1cc)](_0x50c4ec,_0x7bda53){const _0x27a85f=_0x44f9d9;var _0x141879;if(!_0x7bda53||!_0x50c4ec['getSheetBySheetId'](_0x7bda53)){const _0xa34a49=_0x50c4ec['getUnhiddenWorksheets']()[0x0],_0xe85bf=_0x50c4ec[_0x27a85f(0x1f8)](_0xa34a49);if(!_0xe85bf)return;this[_0x27a85f(0x1bb)](_0xe85bf,!0x0),await this[_0x27a85f(0x27a)][_0x27a85f(0x2dc)](g[_0x27a85f(0x2a8)]['id'],{'unitId':_0x50c4ec[_0x27a85f(0x250)](),'subUnitId':_0xa34a49});return;}((_0x141879=_0x50c4ec['getActiveSheet']())==null?void 0x0:_0x141879[_0x27a85f(0x2a2)]())!==_0x7bda53&&await this[_0x27a85f(0x27a)][_0x27a85f(0x2dc)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x50c4ec[_0x27a85f(0x250)](),'subUnitId':_0x7bda53});}};R=Fe([h(0x0,o[_0x44f9d9(0x1e8)]),h(0x1,d[_0x44f9d9(0x21a)]),h(0x2,o[_0x44f9d9(0x263)](d[_0x44f9d9(0x1d1)])),h(0x3,o['Inject'](exports[_0x44f9d9(0x2b0)])),h(0x4,o[_0x44f9d9(0x263)](o[_0x44f9d9(0x2aa)])),h(0x5,d[_0x44f9d9(0x249)]),h(0x6,o[_0x44f9d9(0x263)](I[_0x44f9d9(0x23b)])),h(0x7,I[_0x44f9d9(0x1dd)]),h(0x8,o[_0x44f9d9(0x263)](I['DataLoaderService'])),h(0x9,o[_0x44f9d9(0x267)]),h(0xa,Ne[_0x44f9d9(0x2b5)])],R);var We=Object[_0x44f9d9(0x2b6)],xe=Object[_0x44f9d9(0x27c)],je=(_0xb6d856,_0x1aec57,_0x10b68e)=>_0x1aec57 in _0xb6d856?We(_0xb6d856,_0x1aec57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10b68e}):_0xb6d856[_0x1aec57]=_0x10b68e,Ge=(_0x451d74,_0x3cb79b,_0x5a5241,_0x562333)=>{const _0x39c72f=_0x44f9d9;for(var _0x2178f0=_0x562333>0x1?void 0x0:_0x562333?xe(_0x3cb79b,_0x5a5241):_0x3cb79b,_0x5a7137=_0x451d74[_0x39c72f(0x1fa)]-0x1,_0x3b0469;_0x5a7137>=0x0;_0x5a7137--)(_0x3b0469=_0x451d74[_0x5a7137])&&(_0x2178f0=_0x3b0469(_0x2178f0)||_0x2178f0);return _0x2178f0;},j=(_0x3726cf,_0x212e3a)=>(_0x2ba633,_0x1fee13)=>_0x212e3a(_0x2ba633,_0x1fee13,_0x3726cf),L=(_0xfe84a5,_0x44f22f,_0x712428)=>je(_0xfe84a5,typeof _0x44f22f!=_0x44f9d9(0x248)?_0x44f22f+'':_0x44f22f,_0x712428);exports['UniverEditHistoryLoaderPlugin']=class extends o[_0x44f9d9(0x1eb)]{constructor(_0x2a1d4e=x,_0x2d76b8,_0x4e0b60){const _0x39bfae=_0x44f9d9;super(),this[_0x39bfae(0x1cb)]=_0x2a1d4e,this[_0x39bfae(0x203)]=_0x2d76b8,this['_configService']=_0x4e0b60;const {menu:_0x1d093a,..._0x2a7136}=o['merge']({},x,this[_0x39bfae(0x1cb)]);_0x1d093a&&this[_0x39bfae(0x1cf)][_0x39bfae(0x24b)](_0x39bfae(0x2ac),_0x1d093a,{'merge':!0x0}),this[_0x39bfae(0x1cf)][_0x39bfae(0x24b)](f,_0x2a7136),this[_0x39bfae(0x1cb)][_0x39bfae(0x222)]&&this[_0x39bfae(0x1cf)][_0x39bfae(0x24b)](T,this[_0x39bfae(0x1cb)][_0x39bfae(0x222)]);}[_0x44f9d9(0x2d5)](){const _0x3d4380=_0x44f9d9;[[exports[_0x3d4380(0x2b0)]],[R]][_0x3d4380(0x265)](_0x4bd1b5=>this[_0x3d4380(0x203)][_0x3d4380(0x276)](_0x4bd1b5));}[_0x44f9d9(0x294)](){const _0x5019ff=_0x44f9d9;this[_0x5019ff(0x203)]['get'](R);}},L(exports[_0x44f9d9(0x2ca)],_0x44f9d9(0x23f),o[_0x44f9d9(0x1be)][_0x44f9d9(0x24f)]),L(exports[_0x44f9d9(0x2ca)],'pluginName',_0x44f9d9(0x291)),L(exports[_0x44f9d9(0x2ca)],_0x44f9d9(0x264),Y[_0x44f9d9(0x230)]),L(exports['UniverEditHistoryLoaderPlugin'],_0x44f9d9(0x1e0),Y[_0x44f9d9(0x1e0)]),exports[_0x44f9d9(0x2ca)]=Ge([o['DependentOn'](O[_0x44f9d9(0x210)]),j(0x1,o[_0x44f9d9(0x263)](o[_0x44f9d9(0x1da)])),j(0x2,o[_0x44f9d9(0x20d)])],exports['UniverEditHistoryLoaderPlugin']),exports[_0x44f9d9(0x2a3)]=f,exports['ToggleEditHistoryOperation']=N,exports[_0x44f9d9(0x1d9)]=T,exports[_0x44f9d9(0x26a)]=y;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ffd73=_0x1b09;(function(_0x114db0,_0x1a11c5){const _0x124d95=_0x1b09,_0x7a875c=_0x114db0();while(!![]){try{const _0xc5290d=-parseInt(_0x124d95(0x185))/0x1+parseInt(_0x124d95(0x1bc))/0x2+-parseInt(_0x124d95(0x10e))/0x3+-parseInt(_0x124d95(0x152))/0x4+parseInt(_0x124d95(0x142))/0x5+parseInt(_0x124d95(0x1aa))/0x6*(-parseInt(_0x124d95(0x190))/0x7)+parseInt(_0x124d95(0x17f))/0x8;if(_0xc5290d===_0x1a11c5)break;else _0x7a875c['push'](_0x7a875c['shift']());}catch(_0x29c114){_0x7a875c['push'](_0x7a875c['shift']());}}}(_0x5273,0x786e8));var oe=Object[_0x3ffd73(0x122)],se=(_0x3734ad,_0x54b2fe,_0x14c0d4)=>_0x54b2fe in _0x3734ad?oe(_0x3734ad,_0x54b2fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14c0d4}):_0x3734ad[_0x54b2fe]=_0x14c0d4,d=(_0x2a94a2,_0x1cf0fc,_0x15ae39)=>se(_0x2a94a2,typeof _0x1cf0fc!=_0x3ffd73(0x1bb)?_0x1cf0fc+'':_0x1cf0fc,_0x15ae39);import{Inject as _0x58b648,LocaleService as _0x337530,ThemeService as _0x3459b4,Disposable as _0x2a676b,DisposableCollection as _0x3f32d9,Univer as _0x2edaf9,IAuthzIoService as _0x2302a9,IConfigService as _0x531b81,IUniverInstanceService as _0x4dd905,ICommandService as _0x48a5ee,IPermissionService as _0x15db4a,CommandType as _0x27e5a6,UniverInstanceType as _0x825b22,RxDisposable as _0x1f9c27,toDisposable as _0x2da9e6,Workbook as _0x16a53b,DependentOn as _0x25541b,Injector as _0x405c21,Plugin as _0x5531b9,merge as _0x1d80b8}from'@univerjs/core';import{RangeProtectionRuleModel as _0x3f08bf,UniverSheetsPlugin as _0x4b8015,WorkbookEditablePermission as _0x19decb,WorksheetEditPermission as _0x4d3673,RangeProtectionPermissionEditPoint as _0x5dd0af,WorkbookRecoverHistoryPermission as _0x182873,getSheetCommandTarget as _0x39536d,WorkbookViewHistoryPermission as _0x57174b,SetWorksheetActivateCommand as _0x355c1a}from'@univerjs/sheets';import{UniverCollaborationPlugin as _0x33f982,RevertRevisionMutation as _0x30981a,CollaborationEvent as _0x22a7eb}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x58b5f6,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x58adfa,CollaborationController as _0x2d54a4,DataLoaderService as _0x42cdd9,CollaborationStatus as _0x1cbf13,ILocalCacheService as _0x35c5c9}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x1cdf6b,HistoryManagerService as _0x5a6d93,HistoryModeStatus as _0x5d23c8}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x55f8fe,UniverLicensePlugin as _0x452992}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x19a819}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x3aa768}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x3cbbc1}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xe004b8}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x2421d7}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x195129}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x2ffc73}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x51aa5d}from'@univerjs/data-validation';import{MessageType as _0x203d72}from'@univerjs/design';import{UniverDocsPlugin as _0xa6e5ec}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1c30bd}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x490f18,IImageIoService as _0x14b75a}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x21d42d}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3caa5a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x3e5bfc}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x4462c0}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x3646c5,IRemoteInstanceService as _0x4888cf}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x4024b8}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x423edb}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x21ae77}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x374137}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x115085}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x526d0d}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x53da34}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x46a503}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x48c259}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2fe19}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x25c6e3}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x1b4438}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x2c266d}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x466435}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x1c45a3,getCurrentRangeDisable$ as _0x18a775}from'@univerjs/sheets-ui';import{IDialogService as _0xd23fe6,ISidebarService as _0x5eabfc,UniverUIPlugin as _0x505c73,IMessageService as _0x58c51e,MenuItemType as _0x3cf949,getMenuHiddenObservable as _0x459696,RibbonStartGroup as _0x26f57a,ComponentManager as _0x412f6e,IMenuManagerService as _0x3c4660}from'@univerjs/ui';import{BehaviorSubject as _0x1e71e4,combineLatest as _0x506c72,takeUntil as _0x2a74f7}from'rxjs';import{IURLService as _0x556266}from'@univerjs-pro/collaboration-client-ui';import{useRef as _0x640c4,createElement as _0x1fb0e1,forwardRef as _0x437a7a}from'react';const _=_0x3ffd73(0x15e),F={};var Rt=Object[_0x3ffd73(0x17d)],Nt=(_0x1c9f36,_0x2682f7,_0x218551,_0x291f55)=>{const _0x4658de=_0x3ffd73;for(var _0x499caa=_0x291f55>0x1?void 0x0:_0x291f55?Rt(_0x2682f7,_0x218551):_0x2682f7,_0x517941=_0x1c9f36[_0x4658de(0x11a)]-0x1,_0x32f83c;_0x517941>=0x0;_0x517941--)(_0x32f83c=_0x1c9f36[_0x517941])&&(_0x499caa=_0x32f83c(_0x499caa)||_0x499caa);return _0x499caa;},g=(_0x527a9d,_0x43ca67)=>(_0x569b1f,_0x2885b3)=>_0x43ca67(_0x569b1f,_0x2885b3,_0x527a9d);const Lt=_0x3ffd73(0x167),Q='UNIVER_CONTAINER_ID',f='univer-history-container';let S=class extends _0x2a676b{constructor(_0x56dd44,_0x1454ad,_0x1dc9b4,_0x2c4fb4,_0x247a0,_0x28a8b1,_0x7262dc,_0x150581,_0x505d17,_0x46f922){const _0x21fd3c=_0x3ffd73;super(),d(this,'_historyUniver$',new _0x1e71e4(null)),d(this,_0x21fd3c(0x19f),this[_0x21fd3c(0x15c)][_0x21fd3c(0x179)]()),d(this,_0x21fd3c(0x15a),new _0x3f32d9()),d(this,'_pluginMap',new Map()),d(this,'_internalWebWorker',null),(this[_0x21fd3c(0x12a)]=_0x56dd44,this[_0x21fd3c(0x11b)]=_0x1454ad,this[_0x21fd3c(0x162)]=_0x1dc9b4,this[_0x21fd3c(0x168)]=_0x2c4fb4,this['_messageService']=_0x247a0,this[_0x21fd3c(0x157)]=_0x28a8b1,this['_selectionProtectionRuleModel']=_0x7262dc,this[_0x21fd3c(0x19e)]=_0x150581,this[_0x21fd3c(0x16d)]=_0x505d17,this[_0x21fd3c(0x11f)]=_0x46f922,this['_init']());}get[_0x3ffd73(0x1b6)](){const _0x1b0026=_0x3ffd73;return this[_0x1b0026(0x15c)][_0x1b0026(0x13c)];}[_0x3ffd73(0x183)](){const _0x5cbc29=_0x3ffd73;this[_0x5cbc29(0x174)](),this['_initPlugins']();}[_0x3ffd73(0x174)](){const _0x11b105=_0x3ffd73;var _0x231818;const _0x14b1cc=(_0x231818=this['_configService']['getConfig'](Q))!=null?_0x231818:Lt,_0x5774d4=document['getElementById'](_0x14b1cc);if(!_0x5774d4)return;const _0x44aa9d=document[_0x11b105(0x146)]('div');_0x44aa9d['id']=f,_0x44aa9d[_0x11b105(0x17e)]['uComp']='history-container',_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x18d)]=_0x11b105(0x18f),_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x181)]='0',_0x44aa9d['style'][_0x11b105(0x170)]='0',_0x44aa9d[_0x11b105(0x128)]['width']=_0x11b105(0x1b7),_0x44aa9d['style'][_0x11b105(0x19d)]=_0x11b105(0x1b7),_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x139)]='49',_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x193)]='none',_0x5774d4['appendChild'](_0x44aa9d);}[_0x3ffd73(0x191)](){const _0x42bd3e=_0x3ffd73;[[_0x3e5bfc],[_0x505c73,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0xd23fe6,null]]}],[_0x4462c0],[_0x490f18,{'override':[[_0x14b75a,null]]}],[_0xa6e5ec,{'hasScroll':!0x1}],[_0x1c30bd],[_0x2c266d],[_0x4b8015,{'notExecuteFormula':!0x0}],[_0x1c45a3],[_0x48c259],[_0x2fe19],[_0x33f982],[_0x53da34],[_0x46a503],[_0x4024b8],[_0x423edb],[_0x25c6e3],[_0x1b4438],[_0x51aa5d],[_0x21ae77],[_0x374137],[_0x3caa5a,{'notExecuteFormula':!0x0}],[_0x21d42d],[_0x115085],[_0x526d0d],[_0x195129],[_0x2ffc73],[_0x19a819],[_0x3aa768],[_0xe004b8],[_0x2421d7],[_0x3cbbc1,{'notExecuteFormula':!0x0}],[_0x466435]][_0x42bd3e(0x17a)](([_0xfe44a,_0x26076a])=>this[_0x42bd3e(0x19c)](_0xfe44a,_0x26076a));}[_0x3ffd73(0x10c)](){const _0x394771=_0x3ffd73;super[_0x394771(0x10c)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x394771(0x164)]();}[_0x3ffd73(0x19c)](_0x1643b9,_0x5df214,_0x1b17ec){const _0x432004=_0x3ffd73;if(this[_0x432004(0x180)][_0x432004(0x1a7)](_0x1643b9[_0x432004(0x175)])&&!_0x1b17ec)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1643b9['pluginName']+'\x20has\x20been\x20registered.');this[_0x432004(0x180)][_0x432004(0x12f)](_0x1643b9['pluginName'],[_0x1643b9,_0x5df214]);}[_0x3ffd73(0x121)](){const _0x28fe04=_0x3ffd73;return Array['from'](this['_pluginMap'][_0x28fe04(0x16b)]());}[_0x3ffd73(0x153)](_0x17cb95,_0xdba2d){const _0x653d5e=_0x3ffd73,_0x373336=document[_0x653d5e(0x177)](f);_0x373336&&(_0x373336[_0x653d5e(0x128)][_0x653d5e(0x193)]='block',this[_0x653d5e(0x144)](_0x17cb95,f,_0xdba2d));}[_0x3ffd73(0x111)](){const _0x846f28=_0x3ffd73;var _0x2eeaa3;this[_0x846f28(0x15a)]['dispose'](),(_0x2eeaa3=this[_0x846f28(0x1b6)])==null||_0x2eeaa3[_0x846f28(0x10c)](),this['_historyUniver$'][_0x846f28(0x1ad)](null);const _0x2df74d=document[_0x846f28(0x177)](f);_0x2df74d&&(_0x2df74d[_0x846f28(0x128)][_0x846f28(0x193)]=_0x846f28(0x1ba),this[_0x846f28(0x10d)]&&(this['_internalWebWorker'][_0x846f28(0x197)](),this[_0x846f28(0x10d)]=null));}['_initUniver'](_0xa29aaa,_0x45bbbe,_0x5cd983){const _0x1a290b=_0x3ffd73;var _0x16b879,_0x521d70,_0x3aef12,_0x145124,_0x35ede7;if(this[_0x1a290b(0x1b6)])return;const _0x18a37f=new _0x2edaf9({'locales':{[this['_localeService'][_0x1a290b(0x137)]()]:this[_0x1a290b(0x12a)][_0x1a290b(0x1b8)]()},'override':[[_0x2302a9,{'useClass':_0x58b5f6}]]}),_0x1a97dc=_0x18a37f[_0x1a290b(0x192)]();this[_0x1a290b(0x132)](this[_0x1a290b(0x11f)][_0x1a290b(0x1a6)][_0x1a290b(0x19b)](_0x3e9188=>{const _0x382af3=_0x1a290b;_0x1a97dc[_0x382af3(0x184)](_0x3459b4)[_0x382af3(0x112)](_0x3e9188);})),this[_0x1a290b(0x132)](this[_0x1a290b(0x11f)]['currentTheme$'][_0x1a290b(0x19b)](_0x26f613=>{const _0x5a8822=_0x1a290b;_0x1a97dc[_0x5a8822(0x184)](_0x3459b4)[_0x5a8822(0x151)](_0x26f613);})),_0x1a97dc[_0x1a290b(0x184)](_0x337530)['setLocale'](this[_0x1a290b(0x12a)][_0x1a290b(0x137)]()),_0x1a97dc[_0x1a290b(0x184)](_0x531b81)[_0x1a290b(0x195)](_0x58adfa,this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_0x58adfa));const _0x2eab37=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_0x55f8fe);_0x2eab37&&_0x18a37f[_0x1a290b(0x19c)](_0x452992,{'license':_0x2eab37['ls']});const _0x1fa9f9=(_0x16b879=this['_configService']['getConfig'](_))==null?void 0x0:_0x16b879[_0x1a290b(0x1a4)],_0x43f2a4=!!_0x1fa9f9;_0x43f2a4&&(this[_0x1a290b(0x10d)]=_0x1fa9f9 instanceof Worker?_0x1fa9f9:null,_0x18a37f['registerPlugin'](_0x3646c5,{'workerURL':_0x1fa9f9})),this[_0x1a290b(0x180)][_0x1a290b(0x17a)](([_0x3ccafb,_0x49d705])=>{const _0x33b15c=_0x1a290b;_0x18a37f[_0x33b15c(0x19c)](_0x3ccafb,_0x49d705);}),_0x18a37f[_0x1a290b(0x19c)](_0x1cdf6b,{'historyListServerUrl':(_0x521d70=this['_configService']['getConfig'](_))==null?void 0x0:_0x521d70['historyListServerUrl'],'historyPanelComponentKey':(_0x3aef12=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_))==null?void 0x0:_0x3aef12[_0x1a290b(0x16f)],'historyPanelHidden':(_0x145124=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_))==null?void 0x0:_0x145124[_0x1a290b(0x155)],'historyAIassistantEnabled':(_0x35ede7=this[_0x1a290b(0x162)]['getConfig'](_))==null?void 0x0:_0x35ede7[_0x1a290b(0x1a2)]}),_0x1a97dc[_0x1a290b(0x12d)](_0xf8559f=>{this['_initListener'](_0xf8559f,_0xa29aaa);}),this[_0x1a290b(0x15c)][_0x1a290b(0x1ad)](_0x18a37f);const _0x3938df=_0x1a97dc['get'](_0x5a6d93),_0x23796e=this[_0x1a290b(0x15b)](_0xa29aaa),_0x4fd47b=()=>{const _0x429125=_0x1a290b;_0x5cd983?_0x3938df[_0x429125(0x11d)](_0xa29aaa,_0x45bbbe,_0x23796e,_0x5cd983):_0x3938df[_0x429125(0x110)](_0xa29aaa,_0x45bbbe,_0x23796e);};if(this[_0x1a290b(0x1b1)]['show']({'content':this[_0x1a290b(0x12a)]['t'](_0x1a290b(0x150)),'type':_0x203d72['Loading']}),_0x43f2a4)try{_0x1a97dc[_0x1a290b(0x184)](_0x4888cf)[_0x1a290b(0x172)]()[_0x1a290b(0x173)](()=>{_0x4fd47b();});}catch{_0x4fd47b();}else _0x4fd47b();}[_0x3ffd73(0x1af)](_0x377e44,_0x456428){const _0x3a5895=_0x3ffd73,_0x5e862d=_0x377e44[_0x3a5895(0x184)](_0x5a6d93);this[_0x3a5895(0x15a)]['add'](_0x5e862d[_0x3a5895(0x134)]['subscribe'](_0x307a1b=>{const _0x1fcaf3=_0x3a5895;switch(_0x307a1b){case _0x5d23c8[_0x1fcaf3(0x129)]:this['_dialogService']['closeAll'](),this[_0x1fcaf3(0x16d)][_0x1fcaf3(0x12e)]();break;case _0x5d23c8['Exited']:this[_0x1fcaf3(0x168)]['executeCommand'](X['id']),this[_0x1fcaf3(0x111)]();break;case _0x5d23c8['Error']:this[_0x1fcaf3(0x111)](),this['_messageService'][_0x1fcaf3(0x131)]({'content':this['_localeService']['t'](_0x1fcaf3(0x143)),'type':_0x203d72[_0x1fcaf3(0x13e)],'duration':0xbb8});break;}})),this[_0x3a5895(0x15a)]['add'](_0x5e862d[_0x3a5895(0x140)][_0x3a5895(0x19b)](async _0x5b3383=>{const _0x201ffe=_0x3a5895;_0x5b3383&&this[_0x201ffe(0x168)][_0x201ffe(0x1bd)](_0x30981a['id'],{'unitId':_0x456428,'revision':_0x5b3383});}));}['_checkCanRevert'](_0x501551){const _0x377c8b=_0x3ffd73,_0x5539e4=this[_0x377c8b(0x11b)][_0x377c8b(0x18b)](_0x501551)['getSheets']()[_0x377c8b(0x16c)](_0x1e4928=>_0x1e4928[_0x377c8b(0x1ae)]()),_0x45bdd5=new _0x19decb(_0x501551)['id'],_0x2c4940=_0x5539e4[_0x377c8b(0x16c)](_0x32f871=>new _0x4d3673(_0x501551,_0x32f871)['id']),_0x30b076=_0x5539e4[_0x377c8b(0x16c)](_0x4e3440=>this[_0x377c8b(0x15d)][_0x377c8b(0x126)](_0x501551,_0x4e3440)[_0x377c8b(0x16c)](_0x4727ce=>new _0x5dd0af(_0x501551,_0x4e3440,_0x4727ce[_0x377c8b(0x115)])['id']))['flat'](),_0x3acf18=new _0x182873(_0x501551)['id'];return this['_permissionService']['composePermission']([_0x45bdd5,..._0x2c4940,..._0x30b076,_0x3acf18])['every'](_0x21bd3a=>!!_0x21bd3a[_0x377c8b(0x13c)]);}};S=Nt([g(0x0,_0x58b648(_0x337530)),g(0x1,_0x4dd905),g(0x2,_0x531b81),g(0x3,_0x48a5ee),g(0x4,_0x58c51e),g(0x5,_0x15db4a),g(0x6,_0x58b648(_0x3f08bf)),g(0x7,_0x58b648(_0xd23fe6)),g(0x8,_0x58b648(_0x5eabfc)),g(0x9,_0x58b648(_0x3459b4))],S);const M={'id':'univer.operation.toggle-edit-history','type':_0x27e5a6['OPERATION'],'handler':_0x2bfa51=>{const _0xb2f853=_0x3ffd73,_0x13892a=_0x2bfa51[_0xb2f853(0x184)](S),_0x1b56ff=_0x2bfa51[_0xb2f853(0x184)](_0x4dd905),{unitId:_0x243c66}=_0x39536d(_0x1b56ff)||{};return _0x243c66?(_0x13892a[_0xb2f853(0x153)](_0x243c66),!0x0):!0x1;}},X={'id':'univer.operation.exit-edit-history','type':_0x27e5a6[_0x3ffd73(0x1a5)],'handler':()=>!0x0};function ee({ref:_0x5714e6,..._0x1c42cd}){const _0x3f1bdc=_0x3ffd73,{icon:_0x4dce6d,id:_0xc6104d,className:_0x207e7f,extend:_0x2689ec,..._0x3bcb44}=_0x1c42cd,_0x3eb634=(_0x3f1bdc(0x14c)+_0xc6104d+'\x20'+(_0x207e7f||''))[_0x3f1bdc(0x14e)](),_0x82befd=_0x640c4('_'+Ot());return te(_0x4dce6d,''+_0xc6104d,{'defIds':_0x4dce6d['defIds'],'idSuffix':_0x82befd[_0x3f1bdc(0x138)]},{'ref':_0x5714e6,'className':_0x3eb634,..._0x3bcb44},_0x2689ec);}function te(_0x658026,_0x1a8b9d,_0x451310,_0x29df4d,_0x57146a){const _0x18d850=_0x3ffd73;return _0x1fb0e1(_0x658026[_0x18d850(0x194)],{'key':_0x1a8b9d,...Ht(_0x658026,_0x451310,_0x57146a),..._0x29df4d},(Mt(_0x658026,_0x451310)[_0x18d850(0x1a0)]||[])[_0x18d850(0x16c)]((_0x15420d,_0x59cbbd)=>te(_0x15420d,_0x1a8b9d+'-'+_0x658026[_0x18d850(0x194)]+'-'+_0x59cbbd,_0x451310,void 0x0,_0x57146a)));}function Ht(_0x4a3f25,_0x2d7499,_0x235e93){const _0x359261=_0x3ffd73,_0x36cad7={..._0x4a3f25['attrs']};_0x235e93!=null&&_0x235e93[_0x359261(0x18e)]&&_0x36cad7[_0x359261(0x14d)]==='colorChannel1'&&(_0x36cad7[_0x359261(0x14d)]=_0x235e93[_0x359261(0x18e)]),_0x4a3f25['tag']===_0x359261(0x18a)&&_0x36cad7['id']&&(_0x36cad7['id']=_0x36cad7['id']+_0x2d7499[_0x359261(0x156)]),Object['entries'](_0x36cad7)[_0x359261(0x17a)](([_0xf40158,_0x31b74f])=>{const _0x55bc64=_0x359261;_0xf40158===_0x55bc64(0x18a)&&typeof _0x31b74f==_0x55bc64(0x17c)&&(_0x36cad7[_0xf40158]=_0x31b74f[_0x55bc64(0x169)](/url\(#(.*)\)/,_0x55bc64(0x141)+_0x2d7499[_0x55bc64(0x156)]+')'));});const {defIds:_0xf9493b}=_0x2d7499;return!_0xf9493b||_0xf9493b[_0x359261(0x11a)]===0x0||(_0x4a3f25[_0x359261(0x194)]===_0x359261(0x145)&&_0x36cad7['xlink:href']&&(_0x36cad7['xlink:href']=_0x36cad7['xlink:href']+_0x2d7499['idSuffix']),Object['entries'](_0x36cad7)[_0x359261(0x17a)](([_0x28e805,_0x27f5f9])=>{const _0x35c0b1=_0x359261;typeof _0x27f5f9==_0x35c0b1(0x17c)&&(_0x36cad7[_0x28e805]=_0x27f5f9[_0x35c0b1(0x169)](/url\(#(.*)\)/,_0x35c0b1(0x141)+_0x2d7499['idSuffix']+')'));})),_0x36cad7;}function Mt(_0x5f26e3,_0x564cb8){const _0x5e09bd=_0x3ffd73;var _0x169ada;const {defIds:_0x124785}=_0x564cb8;return!_0x124785||_0x124785['length']===0x0?_0x5f26e3:_0x5f26e3[_0x5e09bd(0x194)]===_0x5e09bd(0x15f)&&((_0x169ada=_0x5f26e3[_0x5e09bd(0x1a0)])!=null&&_0x169ada[_0x5e09bd(0x11a)])?{..._0x5f26e3,'children':_0x5f26e3[_0x5e09bd(0x1a0)]['map'](_0x14abfc=>typeof _0x14abfc[_0x5e09bd(0x158)]['id']==_0x5e09bd(0x17c)&&_0x124785&&_0x124785[_0x5e09bd(0x135)](_0x14abfc[_0x5e09bd(0x158)]['id'])?{..._0x14abfc,'attrs':{..._0x14abfc[_0x5e09bd(0x158)],'id':_0x14abfc['attrs']['id']+_0x564cb8['idSuffix']}}:_0x14abfc)}:_0x5f26e3;}function _0x5273(){const _0x4d660e=['historyUniver$','children','history-icon_clip0_907_281','historyAIassistantEnabled','_collaborationController','workerURL','OPERATION','darkMode$','has','editHistory.panel.reverting','editHistory.panel.revertFailed','200940ZMMfkg','mutations','getUnitId','next','getSheetId','_initListener','_urlService','_messageService','_updateSubUnitFromURLParams','onSteady','onStarting','UNIVER_PROJECT','historyUniver','100%','getLocales','state$','none','symbol','1400378xbfkky','executeCommand','dispose','_internalWebWorker','2129529SQyzwy','getSheetBySheetId','triggerLoadVersions','unMountHistoryContent','setDarkMode','event$','HistoryIcon','permissionId','disposeUnit','_localCacheService','getActiveSheet','_handleRevertAcknowledgement','length','_univerInstanceService','type','triggerCustomVersions','url(#history-icon_clip0_907_281)','_themeService','activeSheet$','getAllPlugins','defineProperty','session','UNIVER_UNKNOWN','M0\x200H16V16H0z','getSubunitRuleList','_setupSubUnitSync','style','Entered','_localeService','_injector','path','invoke','close','set','substring','show','disposeWithMe','1em','status$','includes','_revertErrorTimer','getCurrentLocale','current','zIndex','_historyManagerService','pipe','value','UNIVER_SHEET','Error','register','revertRevision$','url(#$1','2820315SwbxbC','editHistory.panel.listFetchError','_initUniver','use','createElement','history-icon','_componentManager','eventID','_dataLoaderService','registerCommand','univerjs-icon\x20univerjs-icon-','fill','trim','getConfig','editHistory.info.initializing','setTheme','1116816LFcuHE','mountHistoryContent','loadUnit','historyPanelHidden','idSuffix','_permissionService','attrs','getParam','_disposableCollection','_checkCanRevert','_historyUniver$','_selectionProtectionRuleModel','edit-history-loader.config','defs','some','svg','_configService','menu','clear','onCommandExecuted','OTHERS','univer-container','_commandService','replace','dispose$','values','map','_sidebarService','white','historyPanelComponentKey','left','random','whenReady','then','_initContainer','pluginName','UNIVER_SLIDE','getElementById','_updateURLWithCurrentState','asObservable','forEach','reload','string','getOwnPropertyDescriptor','dataset','9482664DgwzPA','_pluginMap','top','toString','_init','get','364430exgWtY','location','setParam','subunit','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','mask','getUnit','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','position','colorChannel1','absolute','126bBMFZv','_initPlugins','__getInjector','display','tag','setConfig','BUTTON','terminate','UNRECOGNIZED','data','_config','subscribe','registerPlugin','height','_dialogService'];_0x5273=function(){return _0x4d660e;};return _0x5273();}function Ot(){const _0x19e1a3=_0x3ffd73;return Math[_0x19e1a3(0x171)]()[_0x19e1a3(0x182)](0x24)[_0x19e1a3(0x130)](0x2,0x8);}ee['displayName']='UniverIcon';const wt={'tag':_0x3ffd73(0x161),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3ffd73(0x1ba),'viewBox':'0\x200\x2016\x2016','width':_0x3ffd73(0x133),'height':_0x3ffd73(0x133)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x3ffd73(0x11e)},'children':[{'tag':_0x3ffd73(0x12c),'attrs':{'d':_0x3ffd73(0x18c)}},{'tag':_0x3ffd73(0x12c),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3ffd73(0x1a1)},'children':[{'tag':_0x3ffd73(0x12c),'attrs':{'fill':_0x3ffd73(0x16e),'d':_0x3ffd73(0x125)}}]}]}],'defIds':[_0x3ffd73(0x1a1)]},ie=_0x437a7a(function(_0x2f8f3b,_0x9a2bc2){const _0x307558=_0x3ffd73;return _0x1fb0e1(ee,Object['assign']({},_0x2f8f3b,{'id':_0x307558(0x147),'ref':_0x9a2bc2,'icon':wt}));});ie['displayName']=_0x3ffd73(0x114);var R=(_0x19771a=>(_0x19771a[_0x19771a['UNIVER_UNKNOWN']=0x0]=_0x3ffd73(0x124),_0x19771a[_0x19771a['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x19771a[_0x19771a['UNIVER_SHEET']=0x2]=_0x3ffd73(0x13d),_0x19771a[_0x19771a[_0x3ffd73(0x176)]=0x3]=_0x3ffd73(0x176),_0x19771a[_0x19771a[_0x3ffd73(0x1b5)]=0x4]='UNIVER_PROJECT',_0x19771a[_0x19771a['UNRECOGNIZED']=-0x1]=_0x3ffd73(0x198),_0x19771a))(R||{});function Dt(_0xa7e79d){const _0x57f6cf=_0x3ffd73;return{'id':M['id'],'type':_0x3cf949[_0x57f6cf(0x196)],'icon':_0x57f6cf(0x114),'tooltip':'editHistory.panel.title','hidden$':_0x459696(_0xa7e79d,_0x825b22[_0x57f6cf(0x13d)]),'disabled$':_0x18a775(_0xa7e79d,{'workbookTypes':[_0x19decb,_0x57174b],'worksheetTypes':[],'rangeTypes':[]})};}const Tt={[_0x26f57a[_0x3ffd73(0x166)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Dt}}};var $t=Object[_0x3ffd73(0x17d)],xt=(_0x3f4154,_0xb9b7e,_0x3b51ae,_0x30cd30)=>{const _0x3715d4=_0x3ffd73;for(var _0x5eeec4=_0x30cd30>0x1?void 0x0:_0x30cd30?$t(_0xb9b7e,_0x3b51ae):_0xb9b7e,_0x736143=_0x3f4154[_0x3715d4(0x11a)]-0x1,_0x391de3;_0x736143>=0x0;_0x736143--)(_0x391de3=_0x3f4154[_0x736143])&&(_0x5eeec4=_0x391de3(_0x5eeec4)||_0x5eeec4);return _0x5eeec4;},h=(_0x501a6a,_0x5ab9da)=>(_0x3d767a,_0x38aacf)=>_0x5ab9da(_0x3d767a,_0x38aacf,_0x501a6a);let I=class extends _0x1f9c27{constructor(_0x23556c,_0x12a6d8,_0x1b196a,_0x3237b8,_0x3493c9,_0x56aed4,_0x493bfb,_0x439752,_0x4befeb,_0x578bf4,_0x4f3af8){const _0x1fa09d=_0x3ffd73;super(),d(this,'_revertErrorTimer',null),(this['_commandService']=_0x23556c,this['_menuManagerService']=_0x12a6d8,this['_componentManager']=_0x1b196a,this[_0x1fa09d(0x13a)]=_0x3237b8,this[_0x1fa09d(0x12a)]=_0x3493c9,this['_messageService']=_0x56aed4,this['_collaborationController']=_0x493bfb,this[_0x1fa09d(0x117)]=_0x439752,this[_0x1fa09d(0x14a)]=_0x4befeb,this[_0x1fa09d(0x11b)]=_0x578bf4,this[_0x1fa09d(0x1b0)]=_0x4f3af8,this[_0x1fa09d(0x183)]());}[_0x3ffd73(0x183)](){const _0x2602ee=_0x3ffd73;[M,X][_0x2602ee(0x17a)](_0x1b9147=>this[_0x2602ee(0x132)](_0x2da9e6(this[_0x2602ee(0x168)][_0x2602ee(0x14b)](_0x1b9147)))),this[_0x2602ee(0x132)](this[_0x2602ee(0x148)][_0x2602ee(0x13f)](_0x2602ee(0x114),ie)),this['_menuManagerService']['mergeMenu'](Tt),this[_0x2602ee(0x132)](this[_0x2602ee(0x168)][_0x2602ee(0x165)](async(_0x3a0062,_0x2d179e)=>{const _0x4b928d=_0x2602ee;if(_0x3a0062['id']===_0x30981a['id']){const {unitId:_0x22f5d3}=_0x3a0062['params'];this[_0x4b928d(0x1b1)][_0x4b928d(0x131)]({'content':this['_localeService']['t'](_0x4b928d(0x1a8)),'type':_0x203d72['Loading'],'duration':0x1388});const _0x5f580e=this[_0x4b928d(0x1a3)]['getCollabEntity'](_0x22f5d3);(_0x2d179e==null?void 0x0:_0x2d179e['fromCollab'])?this['_handleRevertAcknowledgement'](_0x5f580e,async()=>(setTimeout(()=>window[_0x4b928d(0x186)][_0x4b928d(0x17b)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x5f580e,async()=>{const _0xd65268=_0x4b928d,_0x17365=this[_0xd65268(0x11b)]['getCurrentUnitOfType'](R['UNIVER_SHEET']),_0x28114c=_0x17365==null?void 0x0:_0x17365['getActiveSheet']();if(!_0x28114c)return!0x1;this[_0xd65268(0x11b)][_0xd65268(0x116)](_0x22f5d3);const _0x21bded=await this[_0xd65268(0x14a)][_0xd65268(0x154)](_0x22f5d3,R[_0xd65268(0x13d)]);return _0x21bded&&_0x21bded instanceof _0x16a53b?(await this[_0xd65268(0x127)](_0x21bded,_0x28114c['getSheetId']()),!0x0):!0x1;});}}));}[_0x3ffd73(0x119)](_0x4d5ebd,_0x562575,_0x4b9973=!0x1){const _0x29c8b4=_0x3ffd73,_0x5d0e99=_0x506c72([_0x4d5ebd[_0x29c8b4(0x123)][_0x29c8b4(0x113)],_0x4d5ebd[_0x29c8b4(0x1b9)]])[_0x29c8b4(0x19b)](async([_0x4ea7d1,_0x1fe945])=>{const _0x2fba02=_0x29c8b4;var _0x1d57e3;_0x4ea7d1[_0x2fba02(0x149)]===_0x22a7eb['CHANGESET_ACK']&&(_0x1fe945==null?void 0x0:_0x1fe945['status'])===_0x1cbf13['SYNCED']&&_0x4ea7d1[_0x2fba02(0x199)][_0x2fba02(0x1ab)][_0x2fba02(0x160)](_0x438b8f=>_0x438b8f['id']===_0x30981a['id'])&&await _0x562575()&&(this['_historyManagerService']['unMountHistoryContent'](),_0x5d0e99['unsubscribe'](),this[_0x2fba02(0x136)]&&clearTimeout(this[_0x2fba02(0x136)]),await((_0x1d57e3=this[_0x2fba02(0x117)])==null?void 0x0:_0x1d57e3['exhaustSavingTask']()));});_0x4b9973&&(this[_0x29c8b4(0x136)]=setTimeout(()=>{const _0x2497a9=_0x29c8b4;_0x5d0e99['unsubscribe'](),this[_0x2497a9(0x1b1)]['show']({'content':this[_0x2497a9(0x12a)]['t'](_0x2497a9(0x1a9)),'type':_0x203d72[_0x2497a9(0x13e)],'duration':0xbb8});},0x1388));}async[_0x3ffd73(0x127)](_0x5534ab,_0x2771f3){const _0x5de54e=_0x3ffd73;await this[_0x5de54e(0x1b2)](_0x5534ab,_0x2771f3),_0x5534ab[_0x5de54e(0x120)][_0x5de54e(0x13b)](_0x2a74f7(this[_0x5de54e(0x16a)]))[_0x5de54e(0x19b)](_0x187525=>{const _0x5c8b14=_0x5de54e;_0x187525&&this[_0x5c8b14(0x178)](_0x187525);}),this[_0x5de54e(0x1b0)]['urlChange$']['pipe'](_0x2a74f7(this[_0x5de54e(0x16a)]))[_0x5de54e(0x19b)](()=>this[_0x5de54e(0x1b2)](_0x5534ab,_0x2771f3));}[_0x3ffd73(0x178)](_0x529d25,_0x530bf6=!0x1){const _0x3d0c68=_0x3ffd73,_0x431a15=this[_0x3d0c68(0x1b0)][_0x3d0c68(0x159)](_0x3d0c68(0x188));_0x529d25[_0x3d0c68(0x1ae)]()!==_0x431a15&&this[_0x3d0c68(0x1b0)][_0x3d0c68(0x187)](_0x3d0c68(0x188),_0x529d25[_0x3d0c68(0x1ae)](),_0x530bf6);}async[_0x3ffd73(0x1b2)](_0x379d08,_0x4a61d9){const _0x136b9b=_0x3ffd73;var _0x47efdc;if(!_0x4a61d9||!_0x379d08[_0x136b9b(0x10f)](_0x4a61d9)){const _0x29e1d4=_0x379d08['getUnhiddenWorksheets']()[0x0],_0x341a06=_0x379d08[_0x136b9b(0x10f)](_0x29e1d4);if(!_0x341a06)return;this['_updateURLWithCurrentState'](_0x341a06,!0x0),await this[_0x136b9b(0x168)][_0x136b9b(0x1bd)](_0x355c1a['id'],{'unitId':_0x379d08[_0x136b9b(0x1ac)](),'subUnitId':_0x29e1d4});return;}((_0x47efdc=_0x379d08[_0x136b9b(0x118)]())==null?void 0x0:_0x47efdc['getSheetId']())!==_0x4a61d9&&await this[_0x136b9b(0x168)][_0x136b9b(0x1bd)](_0x355c1a['id'],{'unitId':_0x379d08[_0x136b9b(0x1ac)](),'subUnitId':_0x4a61d9});}};I=xt([h(0x0,_0x48a5ee),h(0x1,_0x3c4660),h(0x2,_0x58b648(_0x412f6e)),h(0x3,_0x58b648(S)),h(0x4,_0x58b648(_0x337530)),h(0x5,_0x58c51e),h(0x6,_0x58b648(_0x2d54a4)),h(0x7,_0x35c5c9),h(0x8,_0x58b648(_0x42cdd9)),h(0x9,_0x4dd905),h(0xa,_0x556266)],I);var At=Object[_0x3ffd73(0x122)],Vt=Object[_0x3ffd73(0x17d)],Wt=(_0x1a45cf,_0x43dd77,_0x456ec3)=>_0x43dd77 in _0x1a45cf?At(_0x1a45cf,_0x43dd77,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x456ec3}):_0x1a45cf[_0x43dd77]=_0x456ec3,kt=(_0x4fc994,_0x46664d,_0xde63cf,_0xfad37f)=>{const _0x5d8fee=_0x3ffd73;for(var _0xbfec4c=_0xfad37f>0x1?void 0x0:_0xfad37f?Vt(_0x46664d,_0xde63cf):_0x46664d,_0x12f217=_0x4fc994[_0x5d8fee(0x11a)]-0x1,_0x32411a;_0x12f217>=0x0;_0x12f217--)(_0x32411a=_0x4fc994[_0x12f217])&&(_0xbfec4c=_0x32411a(_0xbfec4c)||_0xbfec4c);return _0xbfec4c;},j=(_0x51e09e,_0x42196b)=>(_0x4dcd19,_0x20cc96)=>_0x42196b(_0x4dcd19,_0x20cc96,_0x51e09e),re=(_0x35bd77,_0x40f876,_0x1e0fe0)=>Wt(_0x35bd77,typeof _0x40f876!=_0x3ffd73(0x1bb)?_0x40f876+'':_0x40f876,_0x1e0fe0);const Ft=_0x3ffd73(0x189);let y=class extends _0x5531b9{constructor(_0x3f8626=F,_0x1447d1,_0x2a892d){const _0x515133=_0x3ffd73;super(),this[_0x515133(0x19a)]=_0x3f8626,this[_0x515133(0x12b)]=_0x1447d1,this[_0x515133(0x162)]=_0x2a892d;const {menu:_0x375a79,..._0x3d3d22}=_0x1d80b8({},F,this['_config']);_0x375a79&&this[_0x515133(0x162)]['setConfig'](_0x515133(0x163),_0x375a79,{'merge':!0x0}),this[_0x515133(0x162)]['setConfig'](_,_0x3d3d22),this[_0x515133(0x19a)]['univerContainerId']&&this[_0x515133(0x162)]['setConfig'](Q,this[_0x515133(0x19a)]['univerContainerId']);}[_0x3ffd73(0x1b4)](){const _0x386519=_0x3ffd73;[[S],[I]][_0x386519(0x17a)](_0x472c54=>this[_0x386519(0x12b)]['add'](_0x472c54));}[_0x3ffd73(0x1b3)](){const _0x169f5e=_0x3ffd73;this[_0x169f5e(0x12b)]['get'](I);}};re(y,_0x3ffd73(0x11c),_0x825b22[_0x3ffd73(0x124)]),re(y,_0x3ffd73(0x175),Ft),y=kt([_0x25541b(_0x452992),j(0x1,_0x58b648(_0x405c21)),j(0x2,_0x531b81)],y);function _0x1b09(_0x2e5a59,_0x51f6e5){_0x2e5a59=_0x2e5a59-0x10c;const _0x52735f=_0x5273();let _0x1b0956=_0x52735f[_0x2e5a59];return _0x1b0956;}export{_ as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,S as HistoryLoaderService,M as ToggleEditHistoryOperation,Q as UNIVER_CONTAINER_ID_KEY,f as UNIVER_HISTORY_CONTAINER_ID,y as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x2fc7b3=_0x3e8e;(function(_0x39663d,_0x26b573){const _0x569312=_0x3e8e,_0x515cba=_0x39663d();while(!![]){try{const _0x209e36=-parseInt(_0x569312(0x257))/0x1*(parseInt(_0x569312(0x21e))/0x2)+-parseInt(_0x569312(0x220))/0x3+parseInt(_0x569312(0x230))/0x4*(-parseInt(_0x569312(0x1ec))/0x5)+parseInt(_0x569312(0x27e))/0x6+-parseInt(_0x569312(0x246))/0x7+parseInt(_0x569312(0x27f))/0x8*(parseInt(_0x569312(0x1d3))/0x9)+-parseInt(_0x569312(0x279))/0xa*(-parseInt(_0x569312(0x1c8))/0xb);if(_0x209e36===_0x26b573)break;else _0x515cba['push'](_0x515cba['shift']());}catch(_0x4f3458){_0x515cba['push'](_0x515cba['shift']());}}}(_0xd9da,0x276a8));var se=Object[_0x2fc7b3(0x1dd)],ae=(_0x1385ce,_0x16515f,_0x4d053d)=>_0x16515f in _0x1385ce?se(_0x1385ce,_0x16515f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d053d}):_0x1385ce[_0x16515f]=_0x4d053d,d=(_0x33b70c,_0x2c84dc,_0x353c0f)=>ae(_0x33b70c,typeof _0x2c84dc!=_0x2fc7b3(0x261)?_0x2c84dc+'':_0x2c84dc,_0x353c0f);import{Inject as _0x3e7270,LocaleService as _0x184cc8,ThemeService as _0x1127f9,Disposable as _0x34eb73,DisposableCollection as _0x1685de,Univer as _0x5e0599,IAuthzIoService as _0x5c2ef6,IConfigService as _0x23d28a,IUniverInstanceService as _0x4ed486,ICommandService as _0x28c1d1,IPermissionService as _0x488a25,CommandType as _0x500d88,UniverInstanceType as _0x3d874e,RxDisposable as _0x2d9b8d,toDisposable as _0x3b05ce,Workbook as _0x37e8a8,DependentOn as _0x4a3855,Injector as _0x2e410e,Plugin as _0x4097a3,merge as _0xf24e08}from'@univerjs/core';import{RangeProtectionRuleModel as _0x50d464,UniverSheetsPlugin as _0x5b498d,WorkbookEditablePermission as _0x26ccb0,WorksheetEditPermission as _0x3ee8b6,RangeProtectionPermissionEditPoint as _0x3e6ac1,WorkbookRecoverHistoryPermission as _0x56f8be,getSheetCommandTarget as _0x6cdcaa,WorkbookViewHistoryPermission as _0x4b9d57,SetWorksheetActivateCommand as _0x306b09}from'@univerjs/sheets';import{UniverCollaborationPlugin as _0x560b85,RevertRevisionMutation as _0x161d46,CollaborationEvent as _0x5d6708}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5851a5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x87210a,CollaborationController as _0x542228,DataLoaderService as _0xae6654,CollaborationStatus as _0x181bf6,ILocalCacheService as _0x33c52e}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x34a908,HistoryManagerService as _0x18b099,HistoryModeStatus as _0x466ec0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x425d58,UniverLicensePlugin as _0x4b6169}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x140db0}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x53b902}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x5320ea}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xdef9b7}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x5be6c1}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x31c6ca}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x391d8c}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3ea405}from'@univerjs/data-validation';import{MessageType as _0x34ba39}from'@univerjs/design';import{UniverDocsPlugin as _0x335d73}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x273ca7}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x16441d,IImageIoService as _0x4010ef}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x3b762d}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x1bf488}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x57cf7e}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x55580b}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x471191,IRemoteInstanceService as _0x50c86c}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0xbe5f41}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x15e06e}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x311142}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x505a92}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5071b5}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x50d60f}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x455047}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x2d1d84}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xded503}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x3e06cb}from'@univerjs/sheets-formula-ui';function _0xd9da(){const _0x166d51=['getParam','CHANGESET_ACK','string','add','82mafFQq','_internalWebWorker','367185rjbzUo','_initPlugins','some','status$','reload','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','menu','getElementById','urlChange$','_themeService','from','uComp','trim','zIndex','packageName','asObservable','33868iqrcPD','fill','display','none','univer.operation.toggle-edit-history','subscribe','_updateURLWithCurrentState','_commandService','_urlService','data','_permissionService','getLocales','_historyUniver$','exhaustSavingTask','__getInjector','_localeService','UNIVER_PROJECT','permissionId','forEach','version','_selectionProtectionRuleModel','map','2176475TUElUe','univer-history-container','historyUniver','top','assign','_init','history-icon_clip0_907_281','type','Exited','Entered','defIds','close','1em','editHistory.panel.title','clipPath','unsubscribe','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','4999mHeuzb','setTheme','_collaborationController','OTHERS','value','getAllPlugins','triggerLoadVersions','loadUnit','getSubunitRuleList','edit-history-loader.config','symbol','current','dispose','_dialogService','_configService','_initUniver','_pluginMap','status','setLocale','editHistory.info.initializing','toString','includes','100%','_initListener','OPERATION','_handleRevertAcknowledgement','setParam','_checkCanRevert','UniverIcon','style','pluginName','width','show','xlink:href','10URuzkB','subunit','getCurrentLocale','M0\x200H16V16H0z','UNIVER_DOC','1666308vOETcd','808OZclCM','get','currentColor','name','_componentManager','getActiveSheet','tag','_messageService','getConfig','6777529zrgMZQ','triggerCustomVersions','_revertErrorTimer','HistoryIcon','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','fromCollab','getSheetBySheetId','dispose$','location','_initContainer','eventID','666tBmfEf','onCommandExecuted','every','Error','clear','registerPlugin','historyAIassistantEnabled','createElement','_updateSubUnitFromURLParams','defs','defineProperty','_historyManagerService','getSheets','executeCommand','disposeWithMe','dataset','editHistory.panel.listFetchError','replace','idSuffix','composePermission','white','editHistory.panel.reverting','path','getUnit','univerjs-icon\x20univerjs-icon-','60gFtecd','appendChild','position','_disposableCollection','has','history-container','mountHistoryContent','getCollabEntity','attrs','BUTTON','_setupSubUnitSync','_injector','univer.operation.exit-edit-history','UNIVER_SLIDE','substring','getUnitId','UNRECOGNIZED','terminate','editHistory.panel.revertFailed','[HistoryLoaderService]:\x20Plugin\x20','values','_univerInstanceService','colorChannel1','length','setConfig','UNIVER_UNKNOWN','children','getOwnPropertyDescriptor','_dataLoaderService','random','session','pipe','entries','getCurrentUnitOfType','UNIVER_SHEET','Loading','flat','getSheetId','historyPanelHidden','historyListServerUrl','url(#$1','currentTheme$','displayName','div','unMountHistoryContent','_config'];_0xd9da=function(){return _0x166d51;};return _0xd9da();}import{UniverSheetsHyperLinkPlugin as _0x23cd79}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x980711}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x559200}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x2fc1a6}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x7caa0c,getCurrentRangeDisable$ as _0x17195d}from'@univerjs/sheets-ui';import{IDialogService as _0x182d6c,ISidebarService as _0x2aaed0,UniverUIPlugin as _0x2a944f,IMessageService as _0x27fe79,MenuItemType as _0x492789,getMenuHiddenObservable as _0x541ae0,RibbonStartGroup as _0x478a30,ComponentManager as _0x5855de,IMenuManagerService as _0x5bc567}from'@univerjs/ui';import{BehaviorSubject as _0x26d00b,combineLatest as _0x384456,takeUntil as _0x4891b1}from'rxjs';import{IURLService as _0x2e5a36}from'@univerjs-pro/collaboration-client-ui';import{useRef as _0x4ecb78,createElement as _0x2a7b0e,forwardRef as _0x35d8e4}from'react';const _=_0x2fc7b3(0x260),j={};var Nt=Object[_0x2fc7b3(0x207)],Lt=(_0xebec81,_0xfe92f1,_0x1e4521,_0x218fc4)=>{const _0x27bc6e=_0x2fc7b3;for(var _0x1f9e00=_0x218fc4>0x1?void 0x0:_0x218fc4?Nt(_0xfe92f1,_0x1e4521):_0xfe92f1,_0x214b1d=_0xebec81[_0x27bc6e(0x203)]-0x1,_0x31c892;_0x214b1d>=0x0;_0x214b1d--)(_0x31c892=_0xebec81[_0x214b1d])&&(_0x1f9e00=_0x31c892(_0x1f9e00)||_0x1f9e00);return _0x1f9e00;},g=(_0x4af4a6,_0x476d17)=>(_0x5beeaf,_0x308cbb)=>_0x476d17(_0x5beeaf,_0x308cbb,_0x4af4a6);const Ht='univer-container',X='UNIVER_CONTAINER_ID',S=_0x2fc7b3(0x247);let p=class extends _0x34eb73{constructor(_0x431296,_0xec5e2c,_0x15a15,_0x3eddde,_0x5b6568,_0x20e01b,_0x1f17de,_0x27b547,_0x26d247,_0xc5ee89){const _0x2c1118=_0x2fc7b3;super(),d(this,'_historyUniver$',new _0x26d00b(null)),d(this,'historyUniver$',this[_0x2c1118(0x23c)][_0x2c1118(0x22f)]()),d(this,_0x2c1118(0x1ef),new _0x1685de()),d(this,_0x2c1118(0x267),new Map()),d(this,_0x2c1118(0x21f),null),(this[_0x2c1118(0x23f)]=_0x431296,this[_0x2c1118(0x201)]=_0xec5e2c,this[_0x2c1118(0x265)]=_0x15a15,this[_0x2c1118(0x237)]=_0x3eddde,this[_0x2c1118(0x1c6)]=_0x5b6568,this[_0x2c1118(0x23a)]=_0x20e01b,this[_0x2c1118(0x244)]=_0x1f17de,this[_0x2c1118(0x264)]=_0x27b547,this['_sidebarService']=_0x26d247,this[_0x2c1118(0x229)]=_0xc5ee89,this[_0x2c1118(0x24b)]());}get['historyUniver'](){const _0x13bc33=_0x2fc7b3;return this[_0x13bc33(0x23c)][_0x13bc33(0x25b)];}[_0x2fc7b3(0x24b)](){this['_initContainer'](),this['_initPlugins']();}[_0x2fc7b3(0x1d1)](){const _0x2eb594=_0x2fc7b3;var _0x4d0f33;const _0xefad3e=(_0x4d0f33=this[_0x2eb594(0x265)]['getConfig'](X))!=null?_0x4d0f33:Ht,_0xf78fcc=document[_0x2eb594(0x227)](_0xefad3e);if(!_0xf78fcc)return;const _0x3001f7=document[_0x2eb594(0x1da)](_0x2eb594(0x217));_0x3001f7['id']=S,_0x3001f7[_0x2eb594(0x1e2)][_0x2eb594(0x22b)]=_0x2eb594(0x1f1),_0x3001f7['style'][_0x2eb594(0x1ee)]='absolute',_0x3001f7['style'][_0x2eb594(0x249)]='0',_0x3001f7[_0x2eb594(0x274)]['left']='0',_0x3001f7['style'][_0x2eb594(0x276)]=_0x2eb594(0x26d),_0x3001f7[_0x2eb594(0x274)]['height']=_0x2eb594(0x26d),_0x3001f7['style'][_0x2eb594(0x22d)]='49',_0x3001f7[_0x2eb594(0x274)][_0x2eb594(0x232)]=_0x2eb594(0x233),_0xf78fcc[_0x2eb594(0x1ed)](_0x3001f7);}[_0x2fc7b3(0x221)](){const _0x56494e=_0x2fc7b3;[[_0x57cf7e],[_0x2a944f,{'container':S,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x182d6c,null]]}],[_0x55580b],[_0x16441d,{'override':[[_0x4010ef,null]]}],[_0x335d73,{'hasScroll':!0x1}],[_0x273ca7],[_0x559200],[_0x5b498d,{'notExecuteFormula':!0x0}],[_0x7caa0c],[_0xded503],[_0x3e06cb],[_0x560b85],[_0x455047],[_0x2d1d84],[_0xbe5f41],[_0x15e06e],[_0x23cd79],[_0x980711],[_0x3ea405],[_0x311142],[_0x505a92],[_0x1bf488,{'notExecuteFormula':!0x0}],[_0x3b762d],[_0x5071b5],[_0x50d60f],[_0x31c6ca],[_0x391d8c],[_0x140db0],[_0x53b902],[_0xdef9b7],[_0x5be6c1],[_0x5320ea,{'notExecuteFormula':!0x0}],[_0x2fc1a6]][_0x56494e(0x242)](([_0x47202d,_0xdc66e8])=>this[_0x56494e(0x1d8)](_0x47202d,_0xdc66e8));}[_0x2fc7b3(0x263)](){const _0x300dce=_0x2fc7b3;super[_0x300dce(0x263)](),this[_0x300dce(0x218)](),this[_0x300dce(0x267)][_0x300dce(0x1d7)]();}[_0x2fc7b3(0x1d8)](_0x1f66d9,_0x2bec44,_0x350491){const _0x161484=_0x2fc7b3;if(this[_0x161484(0x267)][_0x161484(0x1f0)](_0x1f66d9['pluginName'])&&!_0x350491)throw new Error(_0x161484(0x1ff)+_0x1f66d9['pluginName']+'\x20has\x20been\x20registered.');this[_0x161484(0x267)]['set'](_0x1f66d9[_0x161484(0x275)],[_0x1f66d9,_0x2bec44]);}[_0x2fc7b3(0x25c)](){const _0x53a1c4=_0x2fc7b3;return Array[_0x53a1c4(0x22a)](this[_0x53a1c4(0x267)][_0x53a1c4(0x200)]());}[_0x2fc7b3(0x1f2)](_0x7824d1,_0x2ca46d){const _0x3c3cff=_0x2fc7b3,_0x56cabd=document[_0x3c3cff(0x227)](S);_0x56cabd&&(_0x56cabd[_0x3c3cff(0x274)][_0x3c3cff(0x232)]='block',this[_0x3c3cff(0x266)](_0x7824d1,S,_0x2ca46d));}[_0x2fc7b3(0x218)](){const _0x4704b3=_0x2fc7b3;var _0x4afbe1;this[_0x4704b3(0x1ef)][_0x4704b3(0x263)](),(_0x4afbe1=this[_0x4704b3(0x248)])==null||_0x4afbe1[_0x4704b3(0x263)](),this[_0x4704b3(0x23c)]['next'](null);const _0xe731bc=document[_0x4704b3(0x227)](S);_0xe731bc&&(_0xe731bc[_0x4704b3(0x274)][_0x4704b3(0x232)]=_0x4704b3(0x233),this['_internalWebWorker']&&(this[_0x4704b3(0x21f)][_0x4704b3(0x1fd)](),this[_0x4704b3(0x21f)]=null));}[_0x2fc7b3(0x266)](_0x3ff990,_0x12df54,_0x51142a){const _0x5f4ba2=_0x2fc7b3;var _0x39136e,_0x362142,_0x5dc3ab,_0x545d42,_0x58e17a;if(this[_0x5f4ba2(0x248)])return;const _0x5db6ee=new _0x5e0599({'locales':{[this[_0x5f4ba2(0x23f)][_0x5f4ba2(0x27b)]()]:this[_0x5f4ba2(0x23f)][_0x5f4ba2(0x23b)]()},'override':[[_0x5c2ef6,{'useClass':_0x5851a5}]]}),_0x5eb7a4=_0x5db6ee[_0x5f4ba2(0x23e)]();this[_0x5f4ba2(0x1e1)](this['_themeService']['darkMode$'][_0x5f4ba2(0x235)](_0x2b9c25=>{const _0x4b6ebf=_0x5f4ba2;_0x5eb7a4[_0x4b6ebf(0x1c0)](_0x1127f9)['setDarkMode'](_0x2b9c25);})),this[_0x5f4ba2(0x1e1)](this[_0x5f4ba2(0x229)][_0x5f4ba2(0x215)]['subscribe'](_0x52963c=>{const _0x2ea4d7=_0x5f4ba2;_0x5eb7a4[_0x2ea4d7(0x1c0)](_0x1127f9)[_0x2ea4d7(0x258)](_0x52963c);})),_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x184cc8)[_0x5f4ba2(0x269)](this['_localeService'][_0x5f4ba2(0x27b)]()),_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x23d28a)['setConfig'](_0x87210a,this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_0x87210a));const _0x105cc2=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_0x425d58);_0x105cc2&&_0x5db6ee[_0x5f4ba2(0x1d8)](_0x4b6169,{'license':_0x105cc2['ls']});const _0xfca89d=(_0x39136e=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x39136e['workerURL'],_0x40c21b=!!_0xfca89d;_0x40c21b&&(this[_0x5f4ba2(0x21f)]=_0xfca89d instanceof Worker?_0xfca89d:null,_0x5db6ee[_0x5f4ba2(0x1d8)](_0x471191,{'workerURL':_0xfca89d})),this['_pluginMap'][_0x5f4ba2(0x242)](([_0x2c9703,_0x296d00])=>{const _0x3fa2fb=_0x5f4ba2;_0x5db6ee[_0x3fa2fb(0x1d8)](_0x2c9703,_0x296d00);}),_0x5db6ee[_0x5f4ba2(0x1d8)](_0x34a908,{'historyListServerUrl':(_0x362142=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x362142[_0x5f4ba2(0x213)],'historyPanelComponentKey':(_0x5dc3ab=this[_0x5f4ba2(0x265)]['getConfig'](_))==null?void 0x0:_0x5dc3ab['historyPanelComponentKey'],'historyPanelHidden':(_0x545d42=this[_0x5f4ba2(0x265)]['getConfig'](_))==null?void 0x0:_0x545d42[_0x5f4ba2(0x212)],'historyAIassistantEnabled':(_0x58e17a=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x58e17a[_0x5f4ba2(0x1d9)]}),_0x5eb7a4['invoke'](_0x15f6da=>{const _0x3120f7=_0x5f4ba2;this[_0x3120f7(0x26e)](_0x15f6da,_0x3ff990);}),this['_historyUniver$']['next'](_0x5db6ee);const _0x13a282=_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x18b099),_0x2f4ce9=this[_0x5f4ba2(0x272)](_0x3ff990),_0x4d447c=()=>{const _0x12ed3c=_0x5f4ba2;_0x51142a?_0x13a282[_0x12ed3c(0x1c9)](_0x3ff990,_0x12df54,_0x2f4ce9,_0x51142a):_0x13a282[_0x12ed3c(0x25d)](_0x3ff990,_0x12df54,_0x2f4ce9);};if(this[_0x5f4ba2(0x1c6)][_0x5f4ba2(0x277)]({'content':this[_0x5f4ba2(0x23f)]['t'](_0x5f4ba2(0x26a)),'type':_0x34ba39[_0x5f4ba2(0x20f)]}),_0x40c21b)try{_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x50c86c)['whenReady']()['then'](()=>{_0x4d447c();});}catch{_0x4d447c();}else _0x4d447c();}[_0x2fc7b3(0x26e)](_0x52950f,_0x2f392a){const _0xfbe1dd=_0x2fc7b3,_0x2b7707=_0x52950f[_0xfbe1dd(0x1c0)](_0x18b099);this['_disposableCollection'][_0xfbe1dd(0x21d)](_0x2b7707[_0xfbe1dd(0x223)][_0xfbe1dd(0x235)](_0x254b63=>{const _0x4d3a66=_0xfbe1dd;switch(_0x254b63){case _0x466ec0[_0x4d3a66(0x24f)]:this[_0x4d3a66(0x264)]['closeAll'](),this['_sidebarService'][_0x4d3a66(0x251)]();break;case _0x466ec0[_0x4d3a66(0x24e)]:this[_0x4d3a66(0x237)][_0x4d3a66(0x1e0)](ee['id']),this[_0x4d3a66(0x218)]();break;case _0x466ec0[_0x4d3a66(0x1d6)]:this[_0x4d3a66(0x218)](),this[_0x4d3a66(0x1c6)][_0x4d3a66(0x277)]({'content':this[_0x4d3a66(0x23f)]['t'](_0x4d3a66(0x1e3)),'type':_0x34ba39['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0xfbe1dd(0x21d)](_0x2b7707['revertRevision$'][_0xfbe1dd(0x235)](async _0x935b1e=>{const _0x564453=_0xfbe1dd;_0x935b1e&&this[_0x564453(0x237)][_0x564453(0x1e0)](_0x161d46['id'],{'unitId':_0x2f392a,'revision':_0x935b1e});}));}[_0x2fc7b3(0x272)](_0x2427a0){const _0x3b3ede=_0x2fc7b3,_0x548c48=this[_0x3b3ede(0x201)][_0x3b3ede(0x1ea)](_0x2427a0)[_0x3b3ede(0x1df)]()['map'](_0x4a2a13=>_0x4a2a13[_0x3b3ede(0x211)]()),_0x43278d=new _0x26ccb0(_0x2427a0)['id'],_0x5177fd=_0x548c48['map'](_0x48abc3=>new _0x3ee8b6(_0x2427a0,_0x48abc3)['id']),_0x5be2cc=_0x548c48[_0x3b3ede(0x245)](_0x253cba=>this[_0x3b3ede(0x244)][_0x3b3ede(0x25f)](_0x2427a0,_0x253cba)[_0x3b3ede(0x245)](_0x207db1=>new _0x3e6ac1(_0x2427a0,_0x253cba,_0x207db1[_0x3b3ede(0x241)])['id']))[_0x3b3ede(0x210)](),_0x1f28b2=new _0x56f8be(_0x2427a0)['id'];return this[_0x3b3ede(0x23a)][_0x3b3ede(0x1e6)]([_0x43278d,..._0x5177fd,..._0x5be2cc,_0x1f28b2])[_0x3b3ede(0x1d5)](_0x3d0e47=>!!_0x3d0e47[_0x3b3ede(0x25b)]);}};p=Lt([g(0x0,_0x3e7270(_0x184cc8)),g(0x1,_0x4ed486),g(0x2,_0x23d28a),g(0x3,_0x28c1d1),g(0x4,_0x27fe79),g(0x5,_0x488a25),g(0x6,_0x3e7270(_0x50d464)),g(0x7,_0x3e7270(_0x182d6c)),g(0x8,_0x3e7270(_0x2aaed0)),g(0x9,_0x3e7270(_0x1127f9))],p);const w={'id':_0x2fc7b3(0x234),'type':_0x500d88['OPERATION'],'handler':_0x172cd7=>{const _0x4f5da6=_0x2fc7b3,_0x632697=_0x172cd7[_0x4f5da6(0x1c0)](p),_0x377c1a=_0x172cd7[_0x4f5da6(0x1c0)](_0x4ed486),{unitId:_0x443012}=_0x6cdcaa(_0x377c1a)||{};return _0x443012?(_0x632697[_0x4f5da6(0x1f2)](_0x443012),!0x0):!0x1;}},ee={'id':_0x2fc7b3(0x1f8),'type':_0x500d88[_0x2fc7b3(0x26f)],'handler':()=>!0x0},Ot='@univerjs-pro/edit-history-loader',wt='0.17.0',te={'name':Ot,'version':wt};function ie({ref:_0x4a3a8a,..._0x27a491}){const _0x4f3d26=_0x2fc7b3,{icon:_0x38777f,id:_0x4f95cd,className:_0x3e84c6,extend:_0x24af1d,..._0xf5c395}=_0x27a491,_0x5154a8=(_0x4f3d26(0x1eb)+_0x4f95cd+'\x20'+(_0x3e84c6||''))[_0x4f3d26(0x22c)](),_0x2bb510=_0x4ecb78('_'+Tt());return re(_0x38777f,''+_0x4f95cd,{'defIds':_0x38777f[_0x4f3d26(0x250)],'idSuffix':_0x2bb510[_0x4f3d26(0x262)]},{'ref':_0x4a3a8a,'className':_0x5154a8,..._0xf5c395},_0x24af1d);}function re(_0x3d0489,_0x1383bd,_0x9ce76b,_0x3c1092,_0x4db7f6){const _0x23cdfa=_0x2fc7b3;return _0x2a7b0e(_0x3d0489[_0x23cdfa(0x1c5)],{'key':_0x1383bd,...Mt(_0x3d0489,_0x9ce76b,_0x4db7f6),..._0x3c1092},(Dt(_0x3d0489,_0x9ce76b)['children']||[])[_0x23cdfa(0x245)]((_0x36fc8f,_0xe1b8e2)=>re(_0x36fc8f,_0x1383bd+'-'+_0x3d0489[_0x23cdfa(0x1c5)]+'-'+_0xe1b8e2,_0x9ce76b,void 0x0,_0x4db7f6)));}function Mt(_0x3cd6a3,_0x3a5c94,_0x3d6917){const _0x429f42=_0x2fc7b3,_0x19d0d4={..._0x3cd6a3['attrs']};_0x3d6917!=null&&_0x3d6917[_0x429f42(0x202)]&&_0x19d0d4[_0x429f42(0x231)]===_0x429f42(0x202)&&(_0x19d0d4['fill']=_0x3d6917[_0x429f42(0x202)]),_0x3cd6a3['tag']==='mask'&&_0x19d0d4['id']&&(_0x19d0d4['id']=_0x19d0d4['id']+_0x3a5c94[_0x429f42(0x1e5)]),Object['entries'](_0x19d0d4)[_0x429f42(0x242)](([_0x42553d,_0x462dac])=>{const _0x162945=_0x429f42;_0x42553d==='mask'&&typeof _0x462dac==_0x162945(0x21c)&&(_0x19d0d4[_0x42553d]=_0x462dac[_0x162945(0x1e4)](/url\(#(.*)\)/,_0x162945(0x214)+_0x3a5c94[_0x162945(0x1e5)]+')'));});const {defIds:_0x265016}=_0x3a5c94;return!_0x265016||_0x265016[_0x429f42(0x203)]===0x0||(_0x3cd6a3['tag']==='use'&&_0x19d0d4[_0x429f42(0x278)]&&(_0x19d0d4[_0x429f42(0x278)]=_0x19d0d4[_0x429f42(0x278)]+_0x3a5c94[_0x429f42(0x1e5)]),Object[_0x429f42(0x20c)](_0x19d0d4)[_0x429f42(0x242)](([_0x38c4cb,_0x141634])=>{const _0x3229e8=_0x429f42;typeof _0x141634==_0x3229e8(0x21c)&&(_0x19d0d4[_0x38c4cb]=_0x141634[_0x3229e8(0x1e4)](/url\(#(.*)\)/,_0x3229e8(0x214)+_0x3a5c94[_0x3229e8(0x1e5)]+')'));})),_0x19d0d4;}function Dt(_0x4a7d1e,_0x3cf10a){const _0x5eabb2=_0x2fc7b3;var _0xd42df6;const {defIds:_0x188985}=_0x3cf10a;return!_0x188985||_0x188985[_0x5eabb2(0x203)]===0x0?_0x4a7d1e:_0x4a7d1e[_0x5eabb2(0x1c5)]===_0x5eabb2(0x1dc)&&((_0xd42df6=_0x4a7d1e[_0x5eabb2(0x206)])!=null&&_0xd42df6[_0x5eabb2(0x203)])?{..._0x4a7d1e,'children':_0x4a7d1e[_0x5eabb2(0x206)][_0x5eabb2(0x245)](_0x391fdb=>typeof _0x391fdb[_0x5eabb2(0x1f4)]['id']=='string'&&_0x188985&&_0x188985[_0x5eabb2(0x26c)](_0x391fdb[_0x5eabb2(0x1f4)]['id'])?{..._0x391fdb,'attrs':{..._0x391fdb[_0x5eabb2(0x1f4)],'id':_0x391fdb[_0x5eabb2(0x1f4)]['id']+_0x3cf10a['idSuffix']}}:_0x391fdb)}:_0x4a7d1e;}function Tt(){const _0x57dfd3=_0x2fc7b3;return Math[_0x57dfd3(0x209)]()[_0x57dfd3(0x26b)](0x24)[_0x57dfd3(0x1fa)](0x2,0x8);}ie[_0x2fc7b3(0x216)]=_0x2fc7b3(0x273);const $t={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2fc7b3(0x252),'height':_0x2fc7b3(0x252)},'children':[{'tag':'g','attrs':{'fill':_0x2fc7b3(0x1c1),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x2fc7b3(0x1e9),'attrs':{'d':_0x2fc7b3(0x256)}},{'tag':_0x2fc7b3(0x1e9),'attrs':{'d':_0x2fc7b3(0x1cc)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2fc7b3(0x254),'attrs':{'id':_0x2fc7b3(0x24c)},'children':[{'tag':_0x2fc7b3(0x1e9),'attrs':{'fill':_0x2fc7b3(0x1e7),'d':_0x2fc7b3(0x27c)}}]}]}],'defIds':[_0x2fc7b3(0x24c)]},ne=_0x35d8e4(function(_0x1a37d9,_0x537c94){const _0x44696f=_0x2fc7b3;return _0x2a7b0e(ie,Object[_0x44696f(0x24a)]({},_0x1a37d9,{'id':'history-icon','ref':_0x537c94,'icon':$t}));});ne[_0x2fc7b3(0x216)]=_0x2fc7b3(0x1cb);var N=(_0x1bf683=>(_0x1bf683[_0x1bf683['UNIVER_UNKNOWN']=0x0]=_0x2fc7b3(0x205),_0x1bf683[_0x1bf683['UNIVER_DOC']=0x1]=_0x2fc7b3(0x27d),_0x1bf683[_0x1bf683[_0x2fc7b3(0x20e)]=0x2]='UNIVER_SHEET',_0x1bf683[_0x1bf683[_0x2fc7b3(0x1f9)]=0x3]=_0x2fc7b3(0x1f9),_0x1bf683[_0x1bf683[_0x2fc7b3(0x240)]=0x4]=_0x2fc7b3(0x240),_0x1bf683[_0x1bf683[_0x2fc7b3(0x1fc)]=-0x1]='UNRECOGNIZED',_0x1bf683))(N||{});function kt(_0x29f021){const _0x5f131f=_0x2fc7b3;return{'id':w['id'],'type':_0x492789[_0x5f131f(0x1f5)],'icon':_0x5f131f(0x1cb),'tooltip':_0x5f131f(0x253),'hidden$':_0x541ae0(_0x29f021,_0x3d874e['UNIVER_SHEET']),'disabled$':_0x17195d(_0x29f021,{'workbookTypes':[_0x26ccb0,_0x4b9d57],'worksheetTypes':[],'rangeTypes':[]})};}function _0x3e8e(_0x10da54,_0x40abe7){_0x10da54=_0x10da54-0x1c0;const _0xd9da89=_0xd9da();let _0x3e8e3a=_0xd9da89[_0x10da54];return _0x3e8e3a;}const xt={[_0x478a30[_0x2fc7b3(0x25a)]]:{[w['id']]:{'order':0.2,'menuItemFactory':kt}}};var Vt=Object['getOwnPropertyDescriptor'],Wt=(_0x5620ed,_0x373ca4,_0x319261,_0x1e7a6e)=>{const _0x484da2=_0x2fc7b3;for(var _0x3c2b9d=_0x1e7a6e>0x1?void 0x0:_0x1e7a6e?Vt(_0x373ca4,_0x319261):_0x373ca4,_0x3e0f9a=_0x5620ed[_0x484da2(0x203)]-0x1,_0x178f98;_0x3e0f9a>=0x0;_0x3e0f9a--)(_0x178f98=_0x5620ed[_0x3e0f9a])&&(_0x3c2b9d=_0x178f98(_0x3c2b9d)||_0x3c2b9d);return _0x3c2b9d;},h=(_0x3ed86b,_0x387c6d)=>(_0x4da281,_0x494f6a)=>_0x387c6d(_0x4da281,_0x494f6a,_0x3ed86b);let y=class extends _0x2d9b8d{constructor(_0x46218c,_0x2ad584,_0x9e7dd1,_0x22214e,_0x4a473c,_0x26204f,_0x4ec20d,_0x3f53e4,_0xeb3d55,_0x164c0d,_0x160e09){const _0x166b56=_0x2fc7b3;super(),d(this,_0x166b56(0x1ca),null),(this[_0x166b56(0x237)]=_0x46218c,this['_menuManagerService']=_0x2ad584,this['_componentManager']=_0x9e7dd1,this[_0x166b56(0x1de)]=_0x22214e,this[_0x166b56(0x23f)]=_0x4a473c,this[_0x166b56(0x1c6)]=_0x26204f,this['_collaborationController']=_0x4ec20d,this['_localCacheService']=_0x3f53e4,this[_0x166b56(0x208)]=_0xeb3d55,this[_0x166b56(0x201)]=_0x164c0d,this[_0x166b56(0x238)]=_0x160e09,this[_0x166b56(0x24b)]());}[_0x2fc7b3(0x24b)](){const _0x37836f=_0x2fc7b3;[w,ee][_0x37836f(0x242)](_0x281bb2=>this[_0x37836f(0x1e1)](_0x3b05ce(this[_0x37836f(0x237)]['registerCommand'](_0x281bb2)))),this['disposeWithMe'](this[_0x37836f(0x1c3)]['register'](_0x37836f(0x1cb),ne)),this['_menuManagerService']['mergeMenu'](xt),this[_0x37836f(0x1e1)](this[_0x37836f(0x237)][_0x37836f(0x1d4)](async(_0x2323e1,_0x58962f)=>{const _0x12b25d=_0x37836f;if(_0x2323e1['id']===_0x161d46['id']){const {unitId:_0x4fc345}=_0x2323e1['params'];this[_0x12b25d(0x1c6)][_0x12b25d(0x277)]({'content':this[_0x12b25d(0x23f)]['t'](_0x12b25d(0x1e8)),'type':_0x34ba39['Loading'],'duration':0x1388});const _0x38540a=this[_0x12b25d(0x259)][_0x12b25d(0x1f3)](_0x4fc345);(_0x58962f==null?void 0x0:_0x58962f[_0x12b25d(0x1cd)])?this['_handleRevertAcknowledgement'](_0x38540a,async()=>(setTimeout(()=>window[_0x12b25d(0x1d0)][_0x12b25d(0x224)]()),!0x0),!0x0):this[_0x12b25d(0x270)](_0x38540a,async()=>{const _0x4e9202=_0x12b25d,_0x1b2437=this[_0x4e9202(0x201)][_0x4e9202(0x20d)](N[_0x4e9202(0x20e)]),_0x2107cb=_0x1b2437==null?void 0x0:_0x1b2437['getActiveSheet']();if(!_0x2107cb)return!0x1;this['_univerInstanceService']['disposeUnit'](_0x4fc345);const _0x128f22=await this[_0x4e9202(0x208)][_0x4e9202(0x25e)](_0x4fc345,N[_0x4e9202(0x20e)]);return _0x128f22&&_0x128f22 instanceof _0x37e8a8?(await this[_0x4e9202(0x1f6)](_0x128f22,_0x2107cb[_0x4e9202(0x211)]()),!0x0):!0x1;});}}));}[_0x2fc7b3(0x270)](_0x5edb2e,_0x2211e5,_0xa272d4=!0x1){const _0x52804f=_0x2fc7b3,_0x3c4942=_0x384456([_0x5edb2e[_0x52804f(0x20a)]['event$'],_0x5edb2e['state$']])[_0x52804f(0x235)](async([_0x552dd8,_0x3982b1])=>{const _0x16d0ee=_0x52804f;var _0x12b9a0;_0x552dd8[_0x16d0ee(0x1d2)]===_0x5d6708[_0x16d0ee(0x21b)]&&(_0x3982b1==null?void 0x0:_0x3982b1[_0x16d0ee(0x268)])===_0x181bf6['SYNCED']&&_0x552dd8[_0x16d0ee(0x239)]['mutations'][_0x16d0ee(0x222)](_0x5ab688=>_0x5ab688['id']===_0x161d46['id'])&&await _0x2211e5()&&(this['_historyManagerService'][_0x16d0ee(0x218)](),_0x3c4942['unsubscribe'](),this[_0x16d0ee(0x1ca)]&&clearTimeout(this[_0x16d0ee(0x1ca)]),await((_0x12b9a0=this['_localCacheService'])==null?void 0x0:_0x12b9a0[_0x16d0ee(0x23d)]()));});_0xa272d4&&(this[_0x52804f(0x1ca)]=setTimeout(()=>{const _0x5d77b5=_0x52804f;_0x3c4942[_0x5d77b5(0x255)](),this[_0x5d77b5(0x1c6)]['show']({'content':this[_0x5d77b5(0x23f)]['t'](_0x5d77b5(0x1fe)),'type':_0x34ba39[_0x5d77b5(0x1d6)],'duration':0xbb8});},0x1388));}async[_0x2fc7b3(0x1f6)](_0x475972,_0x454e89){const _0x14c2cc=_0x2fc7b3;await this[_0x14c2cc(0x1db)](_0x475972,_0x454e89),_0x475972['activeSheet$'][_0x14c2cc(0x20b)](_0x4891b1(this[_0x14c2cc(0x1cf)]))[_0x14c2cc(0x235)](_0x2515c5=>{const _0x3e27f1=_0x14c2cc;_0x2515c5&&this[_0x3e27f1(0x236)](_0x2515c5);}),this[_0x14c2cc(0x238)][_0x14c2cc(0x228)][_0x14c2cc(0x20b)](_0x4891b1(this[_0x14c2cc(0x1cf)]))[_0x14c2cc(0x235)](()=>this['_updateSubUnitFromURLParams'](_0x475972,_0x454e89));}['_updateURLWithCurrentState'](_0x18afde,_0x336877=!0x1){const _0x5123d6=_0x2fc7b3,_0x4bc7d8=this[_0x5123d6(0x238)][_0x5123d6(0x21a)](_0x5123d6(0x27a));_0x18afde[_0x5123d6(0x211)]()!==_0x4bc7d8&&this[_0x5123d6(0x238)][_0x5123d6(0x271)](_0x5123d6(0x27a),_0x18afde[_0x5123d6(0x211)](),_0x336877);}async[_0x2fc7b3(0x1db)](_0x986350,_0x1f23b5){const _0x18aae6=_0x2fc7b3;var _0x27093a;if(!_0x1f23b5||!_0x986350['getSheetBySheetId'](_0x1f23b5)){const _0x169ce0=_0x986350['getUnhiddenWorksheets']()[0x0],_0x5e7524=_0x986350[_0x18aae6(0x1ce)](_0x169ce0);if(!_0x5e7524)return;this[_0x18aae6(0x236)](_0x5e7524,!0x0),await this[_0x18aae6(0x237)][_0x18aae6(0x1e0)](_0x306b09['id'],{'unitId':_0x986350['getUnitId'](),'subUnitId':_0x169ce0});return;}((_0x27093a=_0x986350[_0x18aae6(0x1c4)]())==null?void 0x0:_0x27093a[_0x18aae6(0x211)]())!==_0x1f23b5&&await this['_commandService'][_0x18aae6(0x1e0)](_0x306b09['id'],{'unitId':_0x986350[_0x18aae6(0x1fb)](),'subUnitId':_0x1f23b5});}};y=Wt([h(0x0,_0x28c1d1),h(0x1,_0x5bc567),h(0x2,_0x3e7270(_0x5855de)),h(0x3,_0x3e7270(p)),h(0x4,_0x3e7270(_0x184cc8)),h(0x5,_0x27fe79),h(0x6,_0x3e7270(_0x542228)),h(0x7,_0x33c52e),h(0x8,_0x3e7270(_0xae6654)),h(0x9,_0x4ed486),h(0xa,_0x2e5a36)],y);var At=Object[_0x2fc7b3(0x1dd)],Ft=Object['getOwnPropertyDescriptor'],jt=(_0x5c3567,_0x36f328,_0x3d7873)=>_0x36f328 in _0x5c3567?At(_0x5c3567,_0x36f328,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d7873}):_0x5c3567[_0x36f328]=_0x3d7873,Bt=(_0x1690eb,_0x15b08b,_0x39affa,_0x4fd98f)=>{for(var _0x42f340=_0x4fd98f>0x1?void 0x0:_0x4fd98f?Ft(_0x15b08b,_0x39affa):_0x15b08b,_0x16d45f=_0x1690eb['length']-0x1,_0x31337c;_0x16d45f>=0x0;_0x16d45f--)(_0x31337c=_0x1690eb[_0x16d45f])&&(_0x42f340=_0x31337c(_0x42f340)||_0x42f340);return _0x42f340;},B=(_0x2fa047,_0xb7f219)=>(_0x36dac8,_0x17ee8e)=>_0xb7f219(_0x36dac8,_0x17ee8e,_0x2fa047),U=(_0x972ce8,_0x2d82f7,_0x4994b7)=>jt(_0x972ce8,typeof _0x2d82f7!=_0x2fc7b3(0x261)?_0x2d82f7+'':_0x2d82f7,_0x4994b7);let f=class extends _0x4097a3{constructor(_0x48a789=j,_0x36b8db,_0x5eb42b){const _0x1e3114=_0x2fc7b3;super(),this[_0x1e3114(0x219)]=_0x48a789,this[_0x1e3114(0x1f7)]=_0x36b8db,this[_0x1e3114(0x265)]=_0x5eb42b;const {menu:_0xe61acf,..._0x2e5d13}=_0xf24e08({},j,this[_0x1e3114(0x219)]);_0xe61acf&&this[_0x1e3114(0x265)]['setConfig'](_0x1e3114(0x226),_0xe61acf,{'merge':!0x0}),this[_0x1e3114(0x265)][_0x1e3114(0x204)](_,_0x2e5d13),this[_0x1e3114(0x219)]['univerContainerId']&&this['_configService']['setConfig'](X,this[_0x1e3114(0x219)]['univerContainerId']);}['onStarting'](){const _0x5d1f8e=_0x2fc7b3;[[p],[y]][_0x5d1f8e(0x242)](_0x5b952b=>this[_0x5d1f8e(0x1f7)][_0x5d1f8e(0x21d)](_0x5b952b));}['onSteady'](){const _0x167a4e=_0x2fc7b3;this['_injector'][_0x167a4e(0x1c0)](y);}};U(f,_0x2fc7b3(0x24d),_0x3d874e[_0x2fc7b3(0x205)]),U(f,_0x2fc7b3(0x275),_0x2fc7b3(0x225)),U(f,_0x2fc7b3(0x22e),te[_0x2fc7b3(0x1c2)]),U(f,_0x2fc7b3(0x243),te[_0x2fc7b3(0x243)]),f=Bt([_0x4a3855(_0x4b6169),B(0x1,_0x3e7270(_0x2e410e)),B(0x2,_0x23d28a)],f);export{_ as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,p as HistoryLoaderService,w as ToggleEditHistoryOperation,X as UNIVER_CONTAINER_ID_KEY,S as UNIVER_HISTORY_CONTAINER_ID,f as UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ffd73=_0x1b09;(function(_0x114db0,_0x1a11c5){const _0x124d95=_0x1b09,_0x7a875c=_0x114db0();while(!![]){try{const _0xc5290d=-parseInt(_0x124d95(0x185))/0x1+parseInt(_0x124d95(0x1bc))/0x2+-parseInt(_0x124d95(0x10e))/0x3+-parseInt(_0x124d95(0x152))/0x4+parseInt(_0x124d95(0x142))/0x5+parseInt(_0x124d95(0x1aa))/0x6*(-parseInt(_0x124d95(0x190))/0x7)+parseInt(_0x124d95(0x17f))/0x8;if(_0xc5290d===_0x1a11c5)break;else _0x7a875c['push'](_0x7a875c['shift']());}catch(_0x29c114){_0x7a875c['push'](_0x7a875c['shift']());}}}(_0x5273,0x786e8));var oe=Object[_0x3ffd73(0x122)],se=(_0x3734ad,_0x54b2fe,_0x14c0d4)=>_0x54b2fe in _0x3734ad?oe(_0x3734ad,_0x54b2fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14c0d4}):_0x3734ad[_0x54b2fe]=_0x14c0d4,d=(_0x2a94a2,_0x1cf0fc,_0x15ae39)=>se(_0x2a94a2,typeof _0x1cf0fc!=_0x3ffd73(0x1bb)?_0x1cf0fc+'':_0x1cf0fc,_0x15ae39);import{Inject as _0x58b648,LocaleService as _0x337530,ThemeService as _0x3459b4,Disposable as _0x2a676b,DisposableCollection as _0x3f32d9,Univer as _0x2edaf9,IAuthzIoService as _0x2302a9,IConfigService as _0x531b81,IUniverInstanceService as _0x4dd905,ICommandService as _0x48a5ee,IPermissionService as _0x15db4a,CommandType as _0x27e5a6,UniverInstanceType as _0x825b22,RxDisposable as _0x1f9c27,toDisposable as _0x2da9e6,Workbook as _0x16a53b,DependentOn as _0x25541b,Injector as _0x405c21,Plugin as _0x5531b9,merge as _0x1d80b8}from'@univerjs/core';import{RangeProtectionRuleModel as _0x3f08bf,UniverSheetsPlugin as _0x4b8015,WorkbookEditablePermission as _0x19decb,WorksheetEditPermission as _0x4d3673,RangeProtectionPermissionEditPoint as _0x5dd0af,WorkbookRecoverHistoryPermission as _0x182873,getSheetCommandTarget as _0x39536d,WorkbookViewHistoryPermission as _0x57174b,SetWorksheetActivateCommand as _0x355c1a}from'@univerjs/sheets';import{UniverCollaborationPlugin as _0x33f982,RevertRevisionMutation as _0x30981a,CollaborationEvent as _0x22a7eb}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x58b5f6,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x58adfa,CollaborationController as _0x2d54a4,DataLoaderService as _0x42cdd9,CollaborationStatus as _0x1cbf13,ILocalCacheService as _0x35c5c9}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x1cdf6b,HistoryManagerService as _0x5a6d93,HistoryModeStatus as _0x5d23c8}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x55f8fe,UniverLicensePlugin as _0x452992}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x19a819}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x3aa768}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x3cbbc1}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xe004b8}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x2421d7}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x195129}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x2ffc73}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x51aa5d}from'@univerjs/data-validation';import{MessageType as _0x203d72}from'@univerjs/design';import{UniverDocsPlugin as _0xa6e5ec}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1c30bd}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x490f18,IImageIoService as _0x14b75a}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x21d42d}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3caa5a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x3e5bfc}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x4462c0}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x3646c5,IRemoteInstanceService as _0x4888cf}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x4024b8}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x423edb}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x21ae77}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x374137}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x115085}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x526d0d}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x53da34}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x46a503}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x48c259}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2fe19}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x25c6e3}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x1b4438}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x2c266d}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x466435}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x1c45a3,getCurrentRangeDisable$ as _0x18a775}from'@univerjs/sheets-ui';import{IDialogService as _0xd23fe6,ISidebarService as _0x5eabfc,UniverUIPlugin as _0x505c73,IMessageService as _0x58c51e,MenuItemType as _0x3cf949,getMenuHiddenObservable as _0x459696,RibbonStartGroup as _0x26f57a,ComponentManager as _0x412f6e,IMenuManagerService as _0x3c4660}from'@univerjs/ui';import{BehaviorSubject as _0x1e71e4,combineLatest as _0x506c72,takeUntil as _0x2a74f7}from'rxjs';import{IURLService as _0x556266}from'@univerjs-pro/collaboration-client-ui';import{useRef as _0x640c4,createElement as _0x1fb0e1,forwardRef as _0x437a7a}from'react';const _=_0x3ffd73(0x15e),F={};var Rt=Object[_0x3ffd73(0x17d)],Nt=(_0x1c9f36,_0x2682f7,_0x218551,_0x291f55)=>{const _0x4658de=_0x3ffd73;for(var _0x499caa=_0x291f55>0x1?void 0x0:_0x291f55?Rt(_0x2682f7,_0x218551):_0x2682f7,_0x517941=_0x1c9f36[_0x4658de(0x11a)]-0x1,_0x32f83c;_0x517941>=0x0;_0x517941--)(_0x32f83c=_0x1c9f36[_0x517941])&&(_0x499caa=_0x32f83c(_0x499caa)||_0x499caa);return _0x499caa;},g=(_0x527a9d,_0x43ca67)=>(_0x569b1f,_0x2885b3)=>_0x43ca67(_0x569b1f,_0x2885b3,_0x527a9d);const Lt=_0x3ffd73(0x167),Q='UNIVER_CONTAINER_ID',f='univer-history-container';let S=class extends _0x2a676b{constructor(_0x56dd44,_0x1454ad,_0x1dc9b4,_0x2c4fb4,_0x247a0,_0x28a8b1,_0x7262dc,_0x150581,_0x505d17,_0x46f922){const _0x21fd3c=_0x3ffd73;super(),d(this,'_historyUniver$',new _0x1e71e4(null)),d(this,_0x21fd3c(0x19f),this[_0x21fd3c(0x15c)][_0x21fd3c(0x179)]()),d(this,_0x21fd3c(0x15a),new _0x3f32d9()),d(this,'_pluginMap',new Map()),d(this,'_internalWebWorker',null),(this[_0x21fd3c(0x12a)]=_0x56dd44,this[_0x21fd3c(0x11b)]=_0x1454ad,this[_0x21fd3c(0x162)]=_0x1dc9b4,this[_0x21fd3c(0x168)]=_0x2c4fb4,this['_messageService']=_0x247a0,this[_0x21fd3c(0x157)]=_0x28a8b1,this['_selectionProtectionRuleModel']=_0x7262dc,this[_0x21fd3c(0x19e)]=_0x150581,this[_0x21fd3c(0x16d)]=_0x505d17,this[_0x21fd3c(0x11f)]=_0x46f922,this['_init']());}get[_0x3ffd73(0x1b6)](){const _0x1b0026=_0x3ffd73;return this[_0x1b0026(0x15c)][_0x1b0026(0x13c)];}[_0x3ffd73(0x183)](){const _0x5cbc29=_0x3ffd73;this[_0x5cbc29(0x174)](),this['_initPlugins']();}[_0x3ffd73(0x174)](){const _0x11b105=_0x3ffd73;var _0x231818;const _0x14b1cc=(_0x231818=this['_configService']['getConfig'](Q))!=null?_0x231818:Lt,_0x5774d4=document['getElementById'](_0x14b1cc);if(!_0x5774d4)return;const _0x44aa9d=document[_0x11b105(0x146)]('div');_0x44aa9d['id']=f,_0x44aa9d[_0x11b105(0x17e)]['uComp']='history-container',_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x18d)]=_0x11b105(0x18f),_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x181)]='0',_0x44aa9d['style'][_0x11b105(0x170)]='0',_0x44aa9d[_0x11b105(0x128)]['width']=_0x11b105(0x1b7),_0x44aa9d['style'][_0x11b105(0x19d)]=_0x11b105(0x1b7),_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x139)]='49',_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x193)]='none',_0x5774d4['appendChild'](_0x44aa9d);}[_0x3ffd73(0x191)](){const _0x42bd3e=_0x3ffd73;[[_0x3e5bfc],[_0x505c73,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0xd23fe6,null]]}],[_0x4462c0],[_0x490f18,{'override':[[_0x14b75a,null]]}],[_0xa6e5ec,{'hasScroll':!0x1}],[_0x1c30bd],[_0x2c266d],[_0x4b8015,{'notExecuteFormula':!0x0}],[_0x1c45a3],[_0x48c259],[_0x2fe19],[_0x33f982],[_0x53da34],[_0x46a503],[_0x4024b8],[_0x423edb],[_0x25c6e3],[_0x1b4438],[_0x51aa5d],[_0x21ae77],[_0x374137],[_0x3caa5a,{'notExecuteFormula':!0x0}],[_0x21d42d],[_0x115085],[_0x526d0d],[_0x195129],[_0x2ffc73],[_0x19a819],[_0x3aa768],[_0xe004b8],[_0x2421d7],[_0x3cbbc1,{'notExecuteFormula':!0x0}],[_0x466435]][_0x42bd3e(0x17a)](([_0xfe44a,_0x26076a])=>this[_0x42bd3e(0x19c)](_0xfe44a,_0x26076a));}[_0x3ffd73(0x10c)](){const _0x394771=_0x3ffd73;super[_0x394771(0x10c)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x394771(0x164)]();}[_0x3ffd73(0x19c)](_0x1643b9,_0x5df214,_0x1b17ec){const _0x432004=_0x3ffd73;if(this[_0x432004(0x180)][_0x432004(0x1a7)](_0x1643b9[_0x432004(0x175)])&&!_0x1b17ec)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1643b9['pluginName']+'\x20has\x20been\x20registered.');this[_0x432004(0x180)][_0x432004(0x12f)](_0x1643b9['pluginName'],[_0x1643b9,_0x5df214]);}[_0x3ffd73(0x121)](){const _0x28fe04=_0x3ffd73;return Array['from'](this['_pluginMap'][_0x28fe04(0x16b)]());}[_0x3ffd73(0x153)](_0x17cb95,_0xdba2d){const _0x653d5e=_0x3ffd73,_0x373336=document[_0x653d5e(0x177)](f);_0x373336&&(_0x373336[_0x653d5e(0x128)][_0x653d5e(0x193)]='block',this[_0x653d5e(0x144)](_0x17cb95,f,_0xdba2d));}[_0x3ffd73(0x111)](){const _0x846f28=_0x3ffd73;var _0x2eeaa3;this[_0x846f28(0x15a)]['dispose'](),(_0x2eeaa3=this[_0x846f28(0x1b6)])==null||_0x2eeaa3[_0x846f28(0x10c)](),this['_historyUniver$'][_0x846f28(0x1ad)](null);const _0x2df74d=document[_0x846f28(0x177)](f);_0x2df74d&&(_0x2df74d[_0x846f28(0x128)][_0x846f28(0x193)]=_0x846f28(0x1ba),this[_0x846f28(0x10d)]&&(this['_internalWebWorker'][_0x846f28(0x197)](),this[_0x846f28(0x10d)]=null));}['_initUniver'](_0xa29aaa,_0x45bbbe,_0x5cd983){const _0x1a290b=_0x3ffd73;var _0x16b879,_0x521d70,_0x3aef12,_0x145124,_0x35ede7;if(this[_0x1a290b(0x1b6)])return;const _0x18a37f=new _0x2edaf9({'locales':{[this['_localeService'][_0x1a290b(0x137)]()]:this[_0x1a290b(0x12a)][_0x1a290b(0x1b8)]()},'override':[[_0x2302a9,{'useClass':_0x58b5f6}]]}),_0x1a97dc=_0x18a37f[_0x1a290b(0x192)]();this[_0x1a290b(0x132)](this[_0x1a290b(0x11f)][_0x1a290b(0x1a6)][_0x1a290b(0x19b)](_0x3e9188=>{const _0x382af3=_0x1a290b;_0x1a97dc[_0x382af3(0x184)](_0x3459b4)[_0x382af3(0x112)](_0x3e9188);})),this[_0x1a290b(0x132)](this[_0x1a290b(0x11f)]['currentTheme$'][_0x1a290b(0x19b)](_0x26f613=>{const _0x5a8822=_0x1a290b;_0x1a97dc[_0x5a8822(0x184)](_0x3459b4)[_0x5a8822(0x151)](_0x26f613);})),_0x1a97dc[_0x1a290b(0x184)](_0x337530)['setLocale'](this[_0x1a290b(0x12a)][_0x1a290b(0x137)]()),_0x1a97dc[_0x1a290b(0x184)](_0x531b81)[_0x1a290b(0x195)](_0x58adfa,this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_0x58adfa));const _0x2eab37=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_0x55f8fe);_0x2eab37&&_0x18a37f[_0x1a290b(0x19c)](_0x452992,{'license':_0x2eab37['ls']});const _0x1fa9f9=(_0x16b879=this['_configService']['getConfig'](_))==null?void 0x0:_0x16b879[_0x1a290b(0x1a4)],_0x43f2a4=!!_0x1fa9f9;_0x43f2a4&&(this[_0x1a290b(0x10d)]=_0x1fa9f9 instanceof Worker?_0x1fa9f9:null,_0x18a37f['registerPlugin'](_0x3646c5,{'workerURL':_0x1fa9f9})),this[_0x1a290b(0x180)][_0x1a290b(0x17a)](([_0x3ccafb,_0x49d705])=>{const _0x33b15c=_0x1a290b;_0x18a37f[_0x33b15c(0x19c)](_0x3ccafb,_0x49d705);}),_0x18a37f[_0x1a290b(0x19c)](_0x1cdf6b,{'historyListServerUrl':(_0x521d70=this['_configService']['getConfig'](_))==null?void 0x0:_0x521d70['historyListServerUrl'],'historyPanelComponentKey':(_0x3aef12=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_))==null?void 0x0:_0x3aef12[_0x1a290b(0x16f)],'historyPanelHidden':(_0x145124=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_))==null?void 0x0:_0x145124[_0x1a290b(0x155)],'historyAIassistantEnabled':(_0x35ede7=this[_0x1a290b(0x162)]['getConfig'](_))==null?void 0x0:_0x35ede7[_0x1a290b(0x1a2)]}),_0x1a97dc[_0x1a290b(0x12d)](_0xf8559f=>{this['_initListener'](_0xf8559f,_0xa29aaa);}),this[_0x1a290b(0x15c)][_0x1a290b(0x1ad)](_0x18a37f);const _0x3938df=_0x1a97dc['get'](_0x5a6d93),_0x23796e=this[_0x1a290b(0x15b)](_0xa29aaa),_0x4fd47b=()=>{const _0x429125=_0x1a290b;_0x5cd983?_0x3938df[_0x429125(0x11d)](_0xa29aaa,_0x45bbbe,_0x23796e,_0x5cd983):_0x3938df[_0x429125(0x110)](_0xa29aaa,_0x45bbbe,_0x23796e);};if(this[_0x1a290b(0x1b1)]['show']({'content':this[_0x1a290b(0x12a)]['t'](_0x1a290b(0x150)),'type':_0x203d72['Loading']}),_0x43f2a4)try{_0x1a97dc[_0x1a290b(0x184)](_0x4888cf)[_0x1a290b(0x172)]()[_0x1a290b(0x173)](()=>{_0x4fd47b();});}catch{_0x4fd47b();}else _0x4fd47b();}[_0x3ffd73(0x1af)](_0x377e44,_0x456428){const _0x3a5895=_0x3ffd73,_0x5e862d=_0x377e44[_0x3a5895(0x184)](_0x5a6d93);this[_0x3a5895(0x15a)]['add'](_0x5e862d[_0x3a5895(0x134)]['subscribe'](_0x307a1b=>{const _0x1fcaf3=_0x3a5895;switch(_0x307a1b){case _0x5d23c8[_0x1fcaf3(0x129)]:this['_dialogService']['closeAll'](),this[_0x1fcaf3(0x16d)][_0x1fcaf3(0x12e)]();break;case _0x5d23c8['Exited']:this[_0x1fcaf3(0x168)]['executeCommand'](X['id']),this[_0x1fcaf3(0x111)]();break;case _0x5d23c8['Error']:this[_0x1fcaf3(0x111)](),this['_messageService'][_0x1fcaf3(0x131)]({'content':this['_localeService']['t'](_0x1fcaf3(0x143)),'type':_0x203d72[_0x1fcaf3(0x13e)],'duration':0xbb8});break;}})),this[_0x3a5895(0x15a)]['add'](_0x5e862d[_0x3a5895(0x140)][_0x3a5895(0x19b)](async _0x5b3383=>{const _0x201ffe=_0x3a5895;_0x5b3383&&this[_0x201ffe(0x168)][_0x201ffe(0x1bd)](_0x30981a['id'],{'unitId':_0x456428,'revision':_0x5b3383});}));}['_checkCanRevert'](_0x501551){const _0x377c8b=_0x3ffd73,_0x5539e4=this[_0x377c8b(0x11b)][_0x377c8b(0x18b)](_0x501551)['getSheets']()[_0x377c8b(0x16c)](_0x1e4928=>_0x1e4928[_0x377c8b(0x1ae)]()),_0x45bdd5=new _0x19decb(_0x501551)['id'],_0x2c4940=_0x5539e4[_0x377c8b(0x16c)](_0x32f871=>new _0x4d3673(_0x501551,_0x32f871)['id']),_0x30b076=_0x5539e4[_0x377c8b(0x16c)](_0x4e3440=>this[_0x377c8b(0x15d)][_0x377c8b(0x126)](_0x501551,_0x4e3440)[_0x377c8b(0x16c)](_0x4727ce=>new _0x5dd0af(_0x501551,_0x4e3440,_0x4727ce[_0x377c8b(0x115)])['id']))['flat'](),_0x3acf18=new _0x182873(_0x501551)['id'];return this['_permissionService']['composePermission']([_0x45bdd5,..._0x2c4940,..._0x30b076,_0x3acf18])['every'](_0x21bd3a=>!!_0x21bd3a[_0x377c8b(0x13c)]);}};S=Nt([g(0x0,_0x58b648(_0x337530)),g(0x1,_0x4dd905),g(0x2,_0x531b81),g(0x3,_0x48a5ee),g(0x4,_0x58c51e),g(0x5,_0x15db4a),g(0x6,_0x58b648(_0x3f08bf)),g(0x7,_0x58b648(_0xd23fe6)),g(0x8,_0x58b648(_0x5eabfc)),g(0x9,_0x58b648(_0x3459b4))],S);const M={'id':'univer.operation.toggle-edit-history','type':_0x27e5a6['OPERATION'],'handler':_0x2bfa51=>{const _0xb2f853=_0x3ffd73,_0x13892a=_0x2bfa51[_0xb2f853(0x184)](S),_0x1b56ff=_0x2bfa51[_0xb2f853(0x184)](_0x4dd905),{unitId:_0x243c66}=_0x39536d(_0x1b56ff)||{};return _0x243c66?(_0x13892a[_0xb2f853(0x153)](_0x243c66),!0x0):!0x1;}},X={'id':'univer.operation.exit-edit-history','type':_0x27e5a6[_0x3ffd73(0x1a5)],'handler':()=>!0x0};function ee({ref:_0x5714e6,..._0x1c42cd}){const _0x3f1bdc=_0x3ffd73,{icon:_0x4dce6d,id:_0xc6104d,className:_0x207e7f,extend:_0x2689ec,..._0x3bcb44}=_0x1c42cd,_0x3eb634=(_0x3f1bdc(0x14c)+_0xc6104d+'\x20'+(_0x207e7f||''))[_0x3f1bdc(0x14e)](),_0x82befd=_0x640c4('_'+Ot());return te(_0x4dce6d,''+_0xc6104d,{'defIds':_0x4dce6d['defIds'],'idSuffix':_0x82befd[_0x3f1bdc(0x138)]},{'ref':_0x5714e6,'className':_0x3eb634,..._0x3bcb44},_0x2689ec);}function te(_0x658026,_0x1a8b9d,_0x451310,_0x29df4d,_0x57146a){const _0x18d850=_0x3ffd73;return _0x1fb0e1(_0x658026[_0x18d850(0x194)],{'key':_0x1a8b9d,...Ht(_0x658026,_0x451310,_0x57146a),..._0x29df4d},(Mt(_0x658026,_0x451310)[_0x18d850(0x1a0)]||[])[_0x18d850(0x16c)]((_0x15420d,_0x59cbbd)=>te(_0x15420d,_0x1a8b9d+'-'+_0x658026[_0x18d850(0x194)]+'-'+_0x59cbbd,_0x451310,void 0x0,_0x57146a)));}function Ht(_0x4a3f25,_0x2d7499,_0x235e93){const _0x359261=_0x3ffd73,_0x36cad7={..._0x4a3f25['attrs']};_0x235e93!=null&&_0x235e93[_0x359261(0x18e)]&&_0x36cad7[_0x359261(0x14d)]==='colorChannel1'&&(_0x36cad7[_0x359261(0x14d)]=_0x235e93[_0x359261(0x18e)]),_0x4a3f25['tag']===_0x359261(0x18a)&&_0x36cad7['id']&&(_0x36cad7['id']=_0x36cad7['id']+_0x2d7499[_0x359261(0x156)]),Object['entries'](_0x36cad7)[_0x359261(0x17a)](([_0xf40158,_0x31b74f])=>{const _0x55bc64=_0x359261;_0xf40158===_0x55bc64(0x18a)&&typeof _0x31b74f==_0x55bc64(0x17c)&&(_0x36cad7[_0xf40158]=_0x31b74f[_0x55bc64(0x169)](/url\(#(.*)\)/,_0x55bc64(0x141)+_0x2d7499[_0x55bc64(0x156)]+')'));});const {defIds:_0xf9493b}=_0x2d7499;return!_0xf9493b||_0xf9493b[_0x359261(0x11a)]===0x0||(_0x4a3f25[_0x359261(0x194)]===_0x359261(0x145)&&_0x36cad7['xlink:href']&&(_0x36cad7['xlink:href']=_0x36cad7['xlink:href']+_0x2d7499['idSuffix']),Object['entries'](_0x36cad7)[_0x359261(0x17a)](([_0x28e805,_0x27f5f9])=>{const _0x35c0b1=_0x359261;typeof _0x27f5f9==_0x35c0b1(0x17c)&&(_0x36cad7[_0x28e805]=_0x27f5f9[_0x35c0b1(0x169)](/url\(#(.*)\)/,_0x35c0b1(0x141)+_0x2d7499['idSuffix']+')'));})),_0x36cad7;}function Mt(_0x5f26e3,_0x564cb8){const _0x5e09bd=_0x3ffd73;var _0x169ada;const {defIds:_0x124785}=_0x564cb8;return!_0x124785||_0x124785['length']===0x0?_0x5f26e3:_0x5f26e3[_0x5e09bd(0x194)]===_0x5e09bd(0x15f)&&((_0x169ada=_0x5f26e3[_0x5e09bd(0x1a0)])!=null&&_0x169ada[_0x5e09bd(0x11a)])?{..._0x5f26e3,'children':_0x5f26e3[_0x5e09bd(0x1a0)]['map'](_0x14abfc=>typeof _0x14abfc[_0x5e09bd(0x158)]['id']==_0x5e09bd(0x17c)&&_0x124785&&_0x124785[_0x5e09bd(0x135)](_0x14abfc[_0x5e09bd(0x158)]['id'])?{..._0x14abfc,'attrs':{..._0x14abfc[_0x5e09bd(0x158)],'id':_0x14abfc['attrs']['id']+_0x564cb8['idSuffix']}}:_0x14abfc)}:_0x5f26e3;}function _0x5273(){const _0x4d660e=['historyUniver$','children','history-icon_clip0_907_281','historyAIassistantEnabled','_collaborationController','workerURL','OPERATION','darkMode$','has','editHistory.panel.reverting','editHistory.panel.revertFailed','200940ZMMfkg','mutations','getUnitId','next','getSheetId','_initListener','_urlService','_messageService','_updateSubUnitFromURLParams','onSteady','onStarting','UNIVER_PROJECT','historyUniver','100%','getLocales','state$','none','symbol','1400378xbfkky','executeCommand','dispose','_internalWebWorker','2129529SQyzwy','getSheetBySheetId','triggerLoadVersions','unMountHistoryContent','setDarkMode','event$','HistoryIcon','permissionId','disposeUnit','_localCacheService','getActiveSheet','_handleRevertAcknowledgement','length','_univerInstanceService','type','triggerCustomVersions','url(#history-icon_clip0_907_281)','_themeService','activeSheet$','getAllPlugins','defineProperty','session','UNIVER_UNKNOWN','M0\x200H16V16H0z','getSubunitRuleList','_setupSubUnitSync','style','Entered','_localeService','_injector','path','invoke','close','set','substring','show','disposeWithMe','1em','status$','includes','_revertErrorTimer','getCurrentLocale','current','zIndex','_historyManagerService','pipe','value','UNIVER_SHEET','Error','register','revertRevision$','url(#$1','2820315SwbxbC','editHistory.panel.listFetchError','_initUniver','use','createElement','history-icon','_componentManager','eventID','_dataLoaderService','registerCommand','univerjs-icon\x20univerjs-icon-','fill','trim','getConfig','editHistory.info.initializing','setTheme','1116816LFcuHE','mountHistoryContent','loadUnit','historyPanelHidden','idSuffix','_permissionService','attrs','getParam','_disposableCollection','_checkCanRevert','_historyUniver$','_selectionProtectionRuleModel','edit-history-loader.config','defs','some','svg','_configService','menu','clear','onCommandExecuted','OTHERS','univer-container','_commandService','replace','dispose$','values','map','_sidebarService','white','historyPanelComponentKey','left','random','whenReady','then','_initContainer','pluginName','UNIVER_SLIDE','getElementById','_updateURLWithCurrentState','asObservable','forEach','reload','string','getOwnPropertyDescriptor','dataset','9482664DgwzPA','_pluginMap','top','toString','_init','get','364430exgWtY','location','setParam','subunit','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','mask','getUnit','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','position','colorChannel1','absolute','126bBMFZv','_initPlugins','__getInjector','display','tag','setConfig','BUTTON','terminate','UNRECOGNIZED','data','_config','subscribe','registerPlugin','height','_dialogService'];_0x5273=function(){return _0x4d660e;};return _0x5273();}function Ot(){const _0x19e1a3=_0x3ffd73;return Math[_0x19e1a3(0x171)]()[_0x19e1a3(0x182)](0x24)[_0x19e1a3(0x130)](0x2,0x8);}ee['displayName']='UniverIcon';const wt={'tag':_0x3ffd73(0x161),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3ffd73(0x1ba),'viewBox':'0\x200\x2016\x2016','width':_0x3ffd73(0x133),'height':_0x3ffd73(0x133)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x3ffd73(0x11e)},'children':[{'tag':_0x3ffd73(0x12c),'attrs':{'d':_0x3ffd73(0x18c)}},{'tag':_0x3ffd73(0x12c),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3ffd73(0x1a1)},'children':[{'tag':_0x3ffd73(0x12c),'attrs':{'fill':_0x3ffd73(0x16e),'d':_0x3ffd73(0x125)}}]}]}],'defIds':[_0x3ffd73(0x1a1)]},ie=_0x437a7a(function(_0x2f8f3b,_0x9a2bc2){const _0x307558=_0x3ffd73;return _0x1fb0e1(ee,Object['assign']({},_0x2f8f3b,{'id':_0x307558(0x147),'ref':_0x9a2bc2,'icon':wt}));});ie['displayName']=_0x3ffd73(0x114);var R=(_0x19771a=>(_0x19771a[_0x19771a['UNIVER_UNKNOWN']=0x0]=_0x3ffd73(0x124),_0x19771a[_0x19771a['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x19771a[_0x19771a['UNIVER_SHEET']=0x2]=_0x3ffd73(0x13d),_0x19771a[_0x19771a[_0x3ffd73(0x176)]=0x3]=_0x3ffd73(0x176),_0x19771a[_0x19771a[_0x3ffd73(0x1b5)]=0x4]='UNIVER_PROJECT',_0x19771a[_0x19771a['UNRECOGNIZED']=-0x1]=_0x3ffd73(0x198),_0x19771a))(R||{});function Dt(_0xa7e79d){const _0x57f6cf=_0x3ffd73;return{'id':M['id'],'type':_0x3cf949[_0x57f6cf(0x196)],'icon':_0x57f6cf(0x114),'tooltip':'editHistory.panel.title','hidden$':_0x459696(_0xa7e79d,_0x825b22[_0x57f6cf(0x13d)]),'disabled$':_0x18a775(_0xa7e79d,{'workbookTypes':[_0x19decb,_0x57174b],'worksheetTypes':[],'rangeTypes':[]})};}const Tt={[_0x26f57a[_0x3ffd73(0x166)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Dt}}};var $t=Object[_0x3ffd73(0x17d)],xt=(_0x3f4154,_0xb9b7e,_0x3b51ae,_0x30cd30)=>{const _0x3715d4=_0x3ffd73;for(var _0x5eeec4=_0x30cd30>0x1?void 0x0:_0x30cd30?$t(_0xb9b7e,_0x3b51ae):_0xb9b7e,_0x736143=_0x3f4154[_0x3715d4(0x11a)]-0x1,_0x391de3;_0x736143>=0x0;_0x736143--)(_0x391de3=_0x3f4154[_0x736143])&&(_0x5eeec4=_0x391de3(_0x5eeec4)||_0x5eeec4);return _0x5eeec4;},h=(_0x501a6a,_0x5ab9da)=>(_0x3d767a,_0x38aacf)=>_0x5ab9da(_0x3d767a,_0x38aacf,_0x501a6a);let I=class extends _0x1f9c27{constructor(_0x23556c,_0x12a6d8,_0x1b196a,_0x3237b8,_0x3493c9,_0x56aed4,_0x493bfb,_0x439752,_0x4befeb,_0x578bf4,_0x4f3af8){const _0x1fa09d=_0x3ffd73;super(),d(this,'_revertErrorTimer',null),(this['_commandService']=_0x23556c,this['_menuManagerService']=_0x12a6d8,this['_componentManager']=_0x1b196a,this[_0x1fa09d(0x13a)]=_0x3237b8,this[_0x1fa09d(0x12a)]=_0x3493c9,this['_messageService']=_0x56aed4,this['_collaborationController']=_0x493bfb,this[_0x1fa09d(0x117)]=_0x439752,this[_0x1fa09d(0x14a)]=_0x4befeb,this[_0x1fa09d(0x11b)]=_0x578bf4,this[_0x1fa09d(0x1b0)]=_0x4f3af8,this[_0x1fa09d(0x183)]());}[_0x3ffd73(0x183)](){const _0x2602ee=_0x3ffd73;[M,X][_0x2602ee(0x17a)](_0x1b9147=>this[_0x2602ee(0x132)](_0x2da9e6(this[_0x2602ee(0x168)][_0x2602ee(0x14b)](_0x1b9147)))),this[_0x2602ee(0x132)](this[_0x2602ee(0x148)][_0x2602ee(0x13f)](_0x2602ee(0x114),ie)),this['_menuManagerService']['mergeMenu'](Tt),this[_0x2602ee(0x132)](this[_0x2602ee(0x168)][_0x2602ee(0x165)](async(_0x3a0062,_0x2d179e)=>{const _0x4b928d=_0x2602ee;if(_0x3a0062['id']===_0x30981a['id']){const {unitId:_0x22f5d3}=_0x3a0062['params'];this[_0x4b928d(0x1b1)][_0x4b928d(0x131)]({'content':this['_localeService']['t'](_0x4b928d(0x1a8)),'type':_0x203d72['Loading'],'duration':0x1388});const _0x5f580e=this[_0x4b928d(0x1a3)]['getCollabEntity'](_0x22f5d3);(_0x2d179e==null?void 0x0:_0x2d179e['fromCollab'])?this['_handleRevertAcknowledgement'](_0x5f580e,async()=>(setTimeout(()=>window[_0x4b928d(0x186)][_0x4b928d(0x17b)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x5f580e,async()=>{const _0xd65268=_0x4b928d,_0x17365=this[_0xd65268(0x11b)]['getCurrentUnitOfType'](R['UNIVER_SHEET']),_0x28114c=_0x17365==null?void 0x0:_0x17365['getActiveSheet']();if(!_0x28114c)return!0x1;this[_0xd65268(0x11b)][_0xd65268(0x116)](_0x22f5d3);const _0x21bded=await this[_0xd65268(0x14a)][_0xd65268(0x154)](_0x22f5d3,R[_0xd65268(0x13d)]);return _0x21bded&&_0x21bded instanceof _0x16a53b?(await this[_0xd65268(0x127)](_0x21bded,_0x28114c['getSheetId']()),!0x0):!0x1;});}}));}[_0x3ffd73(0x119)](_0x4d5ebd,_0x562575,_0x4b9973=!0x1){const _0x29c8b4=_0x3ffd73,_0x5d0e99=_0x506c72([_0x4d5ebd[_0x29c8b4(0x123)][_0x29c8b4(0x113)],_0x4d5ebd[_0x29c8b4(0x1b9)]])[_0x29c8b4(0x19b)](async([_0x4ea7d1,_0x1fe945])=>{const _0x2fba02=_0x29c8b4;var _0x1d57e3;_0x4ea7d1[_0x2fba02(0x149)]===_0x22a7eb['CHANGESET_ACK']&&(_0x1fe945==null?void 0x0:_0x1fe945['status'])===_0x1cbf13['SYNCED']&&_0x4ea7d1[_0x2fba02(0x199)][_0x2fba02(0x1ab)][_0x2fba02(0x160)](_0x438b8f=>_0x438b8f['id']===_0x30981a['id'])&&await _0x562575()&&(this['_historyManagerService']['unMountHistoryContent'](),_0x5d0e99['unsubscribe'](),this[_0x2fba02(0x136)]&&clearTimeout(this[_0x2fba02(0x136)]),await((_0x1d57e3=this[_0x2fba02(0x117)])==null?void 0x0:_0x1d57e3['exhaustSavingTask']()));});_0x4b9973&&(this[_0x29c8b4(0x136)]=setTimeout(()=>{const _0x2497a9=_0x29c8b4;_0x5d0e99['unsubscribe'](),this[_0x2497a9(0x1b1)]['show']({'content':this[_0x2497a9(0x12a)]['t'](_0x2497a9(0x1a9)),'type':_0x203d72[_0x2497a9(0x13e)],'duration':0xbb8});},0x1388));}async[_0x3ffd73(0x127)](_0x5534ab,_0x2771f3){const _0x5de54e=_0x3ffd73;await this[_0x5de54e(0x1b2)](_0x5534ab,_0x2771f3),_0x5534ab[_0x5de54e(0x120)][_0x5de54e(0x13b)](_0x2a74f7(this[_0x5de54e(0x16a)]))[_0x5de54e(0x19b)](_0x187525=>{const _0x5c8b14=_0x5de54e;_0x187525&&this[_0x5c8b14(0x178)](_0x187525);}),this[_0x5de54e(0x1b0)]['urlChange$']['pipe'](_0x2a74f7(this[_0x5de54e(0x16a)]))[_0x5de54e(0x19b)](()=>this[_0x5de54e(0x1b2)](_0x5534ab,_0x2771f3));}[_0x3ffd73(0x178)](_0x529d25,_0x530bf6=!0x1){const _0x3d0c68=_0x3ffd73,_0x431a15=this[_0x3d0c68(0x1b0)][_0x3d0c68(0x159)](_0x3d0c68(0x188));_0x529d25[_0x3d0c68(0x1ae)]()!==_0x431a15&&this[_0x3d0c68(0x1b0)][_0x3d0c68(0x187)](_0x3d0c68(0x188),_0x529d25[_0x3d0c68(0x1ae)](),_0x530bf6);}async[_0x3ffd73(0x1b2)](_0x379d08,_0x4a61d9){const _0x136b9b=_0x3ffd73;var _0x47efdc;if(!_0x4a61d9||!_0x379d08[_0x136b9b(0x10f)](_0x4a61d9)){const _0x29e1d4=_0x379d08['getUnhiddenWorksheets']()[0x0],_0x341a06=_0x379d08[_0x136b9b(0x10f)](_0x29e1d4);if(!_0x341a06)return;this['_updateURLWithCurrentState'](_0x341a06,!0x0),await this[_0x136b9b(0x168)][_0x136b9b(0x1bd)](_0x355c1a['id'],{'unitId':_0x379d08[_0x136b9b(0x1ac)](),'subUnitId':_0x29e1d4});return;}((_0x47efdc=_0x379d08[_0x136b9b(0x118)]())==null?void 0x0:_0x47efdc['getSheetId']())!==_0x4a61d9&&await this[_0x136b9b(0x168)][_0x136b9b(0x1bd)](_0x355c1a['id'],{'unitId':_0x379d08[_0x136b9b(0x1ac)](),'subUnitId':_0x4a61d9});}};I=xt([h(0x0,_0x48a5ee),h(0x1,_0x3c4660),h(0x2,_0x58b648(_0x412f6e)),h(0x3,_0x58b648(S)),h(0x4,_0x58b648(_0x337530)),h(0x5,_0x58c51e),h(0x6,_0x58b648(_0x2d54a4)),h(0x7,_0x35c5c9),h(0x8,_0x58b648(_0x42cdd9)),h(0x9,_0x4dd905),h(0xa,_0x556266)],I);var At=Object[_0x3ffd73(0x122)],Vt=Object[_0x3ffd73(0x17d)],Wt=(_0x1a45cf,_0x43dd77,_0x456ec3)=>_0x43dd77 in _0x1a45cf?At(_0x1a45cf,_0x43dd77,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x456ec3}):_0x1a45cf[_0x43dd77]=_0x456ec3,kt=(_0x4fc994,_0x46664d,_0xde63cf,_0xfad37f)=>{const _0x5d8fee=_0x3ffd73;for(var _0xbfec4c=_0xfad37f>0x1?void 0x0:_0xfad37f?Vt(_0x46664d,_0xde63cf):_0x46664d,_0x12f217=_0x4fc994[_0x5d8fee(0x11a)]-0x1,_0x32411a;_0x12f217>=0x0;_0x12f217--)(_0x32411a=_0x4fc994[_0x12f217])&&(_0xbfec4c=_0x32411a(_0xbfec4c)||_0xbfec4c);return _0xbfec4c;},j=(_0x51e09e,_0x42196b)=>(_0x4dcd19,_0x20cc96)=>_0x42196b(_0x4dcd19,_0x20cc96,_0x51e09e),re=(_0x35bd77,_0x40f876,_0x1e0fe0)=>Wt(_0x35bd77,typeof _0x40f876!=_0x3ffd73(0x1bb)?_0x40f876+'':_0x40f876,_0x1e0fe0);const Ft=_0x3ffd73(0x189);let y=class extends _0x5531b9{constructor(_0x3f8626=F,_0x1447d1,_0x2a892d){const _0x515133=_0x3ffd73;super(),this[_0x515133(0x19a)]=_0x3f8626,this[_0x515133(0x12b)]=_0x1447d1,this[_0x515133(0x162)]=_0x2a892d;const {menu:_0x375a79,..._0x3d3d22}=_0x1d80b8({},F,this['_config']);_0x375a79&&this[_0x515133(0x162)]['setConfig'](_0x515133(0x163),_0x375a79,{'merge':!0x0}),this[_0x515133(0x162)]['setConfig'](_,_0x3d3d22),this[_0x515133(0x19a)]['univerContainerId']&&this[_0x515133(0x162)]['setConfig'](Q,this[_0x515133(0x19a)]['univerContainerId']);}[_0x3ffd73(0x1b4)](){const _0x386519=_0x3ffd73;[[S],[I]][_0x386519(0x17a)](_0x472c54=>this[_0x386519(0x12b)]['add'](_0x472c54));}[_0x3ffd73(0x1b3)](){const _0x169f5e=_0x3ffd73;this[_0x169f5e(0x12b)]['get'](I);}};re(y,_0x3ffd73(0x11c),_0x825b22[_0x3ffd73(0x124)]),re(y,_0x3ffd73(0x175),Ft),y=kt([_0x25541b(_0x452992),j(0x1,_0x58b648(_0x405c21)),j(0x2,_0x531b81)],y);function _0x1b09(_0x2e5a59,_0x51f6e5){_0x2e5a59=_0x2e5a59-0x10c;const _0x52735f=_0x5273();let _0x1b0956=_0x52735f[_0x2e5a59];return _0x1b0956;}export{_ as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,S as HistoryLoaderService,M as ToggleEditHistoryOperation,Q as UNIVER_CONTAINER_ID_KEY,f as UNIVER_HISTORY_CONTAINER_ID,y as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x2fc7b3=_0x3e8e;(function(_0x39663d,_0x26b573){const _0x569312=_0x3e8e,_0x515cba=_0x39663d();while(!![]){try{const _0x209e36=-parseInt(_0x569312(0x257))/0x1*(parseInt(_0x569312(0x21e))/0x2)+-parseInt(_0x569312(0x220))/0x3+parseInt(_0x569312(0x230))/0x4*(-parseInt(_0x569312(0x1ec))/0x5)+parseInt(_0x569312(0x27e))/0x6+-parseInt(_0x569312(0x246))/0x7+parseInt(_0x569312(0x27f))/0x8*(parseInt(_0x569312(0x1d3))/0x9)+-parseInt(_0x569312(0x279))/0xa*(-parseInt(_0x569312(0x1c8))/0xb);if(_0x209e36===_0x26b573)break;else _0x515cba['push'](_0x515cba['shift']());}catch(_0x4f3458){_0x515cba['push'](_0x515cba['shift']());}}}(_0xd9da,0x276a8));var se=Object[_0x2fc7b3(0x1dd)],ae=(_0x1385ce,_0x16515f,_0x4d053d)=>_0x16515f in _0x1385ce?se(_0x1385ce,_0x16515f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d053d}):_0x1385ce[_0x16515f]=_0x4d053d,d=(_0x33b70c,_0x2c84dc,_0x353c0f)=>ae(_0x33b70c,typeof _0x2c84dc!=_0x2fc7b3(0x261)?_0x2c84dc+'':_0x2c84dc,_0x353c0f);import{Inject as _0x3e7270,LocaleService as _0x184cc8,ThemeService as _0x1127f9,Disposable as _0x34eb73,DisposableCollection as _0x1685de,Univer as _0x5e0599,IAuthzIoService as _0x5c2ef6,IConfigService as _0x23d28a,IUniverInstanceService as _0x4ed486,ICommandService as _0x28c1d1,IPermissionService as _0x488a25,CommandType as _0x500d88,UniverInstanceType as _0x3d874e,RxDisposable as _0x2d9b8d,toDisposable as _0x3b05ce,Workbook as _0x37e8a8,DependentOn as _0x4a3855,Injector as _0x2e410e,Plugin as _0x4097a3,merge as _0xf24e08}from'@univerjs/core';import{RangeProtectionRuleModel as _0x50d464,UniverSheetsPlugin as _0x5b498d,WorkbookEditablePermission as _0x26ccb0,WorksheetEditPermission as _0x3ee8b6,RangeProtectionPermissionEditPoint as _0x3e6ac1,WorkbookRecoverHistoryPermission as _0x56f8be,getSheetCommandTarget as _0x6cdcaa,WorkbookViewHistoryPermission as _0x4b9d57,SetWorksheetActivateCommand as _0x306b09}from'@univerjs/sheets';import{UniverCollaborationPlugin as _0x560b85,RevertRevisionMutation as _0x161d46,CollaborationEvent as _0x5d6708}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5851a5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x87210a,CollaborationController as _0x542228,DataLoaderService as _0xae6654,CollaborationStatus as _0x181bf6,ILocalCacheService as _0x33c52e}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x34a908,HistoryManagerService as _0x18b099,HistoryModeStatus as _0x466ec0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x425d58,UniverLicensePlugin as _0x4b6169}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x140db0}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x53b902}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x5320ea}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xdef9b7}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x5be6c1}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x31c6ca}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x391d8c}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3ea405}from'@univerjs/data-validation';import{MessageType as _0x34ba39}from'@univerjs/design';import{UniverDocsPlugin as _0x335d73}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x273ca7}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x16441d,IImageIoService as _0x4010ef}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x3b762d}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x1bf488}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x57cf7e}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x55580b}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x471191,IRemoteInstanceService as _0x50c86c}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0xbe5f41}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x15e06e}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x311142}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x505a92}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5071b5}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x50d60f}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x455047}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x2d1d84}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xded503}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x3e06cb}from'@univerjs/sheets-formula-ui';function _0xd9da(){const _0x166d51=['getParam','CHANGESET_ACK','string','add','82mafFQq','_internalWebWorker','367185rjbzUo','_initPlugins','some','status$','reload','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','menu','getElementById','urlChange$','_themeService','from','uComp','trim','zIndex','packageName','asObservable','33868iqrcPD','fill','display','none','univer.operation.toggle-edit-history','subscribe','_updateURLWithCurrentState','_commandService','_urlService','data','_permissionService','getLocales','_historyUniver$','exhaustSavingTask','__getInjector','_localeService','UNIVER_PROJECT','permissionId','forEach','version','_selectionProtectionRuleModel','map','2176475TUElUe','univer-history-container','historyUniver','top','assign','_init','history-icon_clip0_907_281','type','Exited','Entered','defIds','close','1em','editHistory.panel.title','clipPath','unsubscribe','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','4999mHeuzb','setTheme','_collaborationController','OTHERS','value','getAllPlugins','triggerLoadVersions','loadUnit','getSubunitRuleList','edit-history-loader.config','symbol','current','dispose','_dialogService','_configService','_initUniver','_pluginMap','status','setLocale','editHistory.info.initializing','toString','includes','100%','_initListener','OPERATION','_handleRevertAcknowledgement','setParam','_checkCanRevert','UniverIcon','style','pluginName','width','show','xlink:href','10URuzkB','subunit','getCurrentLocale','M0\x200H16V16H0z','UNIVER_DOC','1666308vOETcd','808OZclCM','get','currentColor','name','_componentManager','getActiveSheet','tag','_messageService','getConfig','6777529zrgMZQ','triggerCustomVersions','_revertErrorTimer','HistoryIcon','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','fromCollab','getSheetBySheetId','dispose$','location','_initContainer','eventID','666tBmfEf','onCommandExecuted','every','Error','clear','registerPlugin','historyAIassistantEnabled','createElement','_updateSubUnitFromURLParams','defs','defineProperty','_historyManagerService','getSheets','executeCommand','disposeWithMe','dataset','editHistory.panel.listFetchError','replace','idSuffix','composePermission','white','editHistory.panel.reverting','path','getUnit','univerjs-icon\x20univerjs-icon-','60gFtecd','appendChild','position','_disposableCollection','has','history-container','mountHistoryContent','getCollabEntity','attrs','BUTTON','_setupSubUnitSync','_injector','univer.operation.exit-edit-history','UNIVER_SLIDE','substring','getUnitId','UNRECOGNIZED','terminate','editHistory.panel.revertFailed','[HistoryLoaderService]:\x20Plugin\x20','values','_univerInstanceService','colorChannel1','length','setConfig','UNIVER_UNKNOWN','children','getOwnPropertyDescriptor','_dataLoaderService','random','session','pipe','entries','getCurrentUnitOfType','UNIVER_SHEET','Loading','flat','getSheetId','historyPanelHidden','historyListServerUrl','url(#$1','currentTheme$','displayName','div','unMountHistoryContent','_config'];_0xd9da=function(){return _0x166d51;};return _0xd9da();}import{UniverSheetsHyperLinkPlugin as _0x23cd79}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x980711}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x559200}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x2fc1a6}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x7caa0c,getCurrentRangeDisable$ as _0x17195d}from'@univerjs/sheets-ui';import{IDialogService as _0x182d6c,ISidebarService as _0x2aaed0,UniverUIPlugin as _0x2a944f,IMessageService as _0x27fe79,MenuItemType as _0x492789,getMenuHiddenObservable as _0x541ae0,RibbonStartGroup as _0x478a30,ComponentManager as _0x5855de,IMenuManagerService as _0x5bc567}from'@univerjs/ui';import{BehaviorSubject as _0x26d00b,combineLatest as _0x384456,takeUntil as _0x4891b1}from'rxjs';import{IURLService as _0x2e5a36}from'@univerjs-pro/collaboration-client-ui';import{useRef as _0x4ecb78,createElement as _0x2a7b0e,forwardRef as _0x35d8e4}from'react';const _=_0x2fc7b3(0x260),j={};var Nt=Object[_0x2fc7b3(0x207)],Lt=(_0xebec81,_0xfe92f1,_0x1e4521,_0x218fc4)=>{const _0x27bc6e=_0x2fc7b3;for(var _0x1f9e00=_0x218fc4>0x1?void 0x0:_0x218fc4?Nt(_0xfe92f1,_0x1e4521):_0xfe92f1,_0x214b1d=_0xebec81[_0x27bc6e(0x203)]-0x1,_0x31c892;_0x214b1d>=0x0;_0x214b1d--)(_0x31c892=_0xebec81[_0x214b1d])&&(_0x1f9e00=_0x31c892(_0x1f9e00)||_0x1f9e00);return _0x1f9e00;},g=(_0x4af4a6,_0x476d17)=>(_0x5beeaf,_0x308cbb)=>_0x476d17(_0x5beeaf,_0x308cbb,_0x4af4a6);const Ht='univer-container',X='UNIVER_CONTAINER_ID',S=_0x2fc7b3(0x247);let p=class extends _0x34eb73{constructor(_0x431296,_0xec5e2c,_0x15a15,_0x3eddde,_0x5b6568,_0x20e01b,_0x1f17de,_0x27b547,_0x26d247,_0xc5ee89){const _0x2c1118=_0x2fc7b3;super(),d(this,'_historyUniver$',new _0x26d00b(null)),d(this,'historyUniver$',this[_0x2c1118(0x23c)][_0x2c1118(0x22f)]()),d(this,_0x2c1118(0x1ef),new _0x1685de()),d(this,_0x2c1118(0x267),new Map()),d(this,_0x2c1118(0x21f),null),(this[_0x2c1118(0x23f)]=_0x431296,this[_0x2c1118(0x201)]=_0xec5e2c,this[_0x2c1118(0x265)]=_0x15a15,this[_0x2c1118(0x237)]=_0x3eddde,this[_0x2c1118(0x1c6)]=_0x5b6568,this[_0x2c1118(0x23a)]=_0x20e01b,this[_0x2c1118(0x244)]=_0x1f17de,this[_0x2c1118(0x264)]=_0x27b547,this['_sidebarService']=_0x26d247,this[_0x2c1118(0x229)]=_0xc5ee89,this[_0x2c1118(0x24b)]());}get['historyUniver'](){const _0x13bc33=_0x2fc7b3;return this[_0x13bc33(0x23c)][_0x13bc33(0x25b)];}[_0x2fc7b3(0x24b)](){this['_initContainer'](),this['_initPlugins']();}[_0x2fc7b3(0x1d1)](){const _0x2eb594=_0x2fc7b3;var _0x4d0f33;const _0xefad3e=(_0x4d0f33=this[_0x2eb594(0x265)]['getConfig'](X))!=null?_0x4d0f33:Ht,_0xf78fcc=document[_0x2eb594(0x227)](_0xefad3e);if(!_0xf78fcc)return;const _0x3001f7=document[_0x2eb594(0x1da)](_0x2eb594(0x217));_0x3001f7['id']=S,_0x3001f7[_0x2eb594(0x1e2)][_0x2eb594(0x22b)]=_0x2eb594(0x1f1),_0x3001f7['style'][_0x2eb594(0x1ee)]='absolute',_0x3001f7['style'][_0x2eb594(0x249)]='0',_0x3001f7[_0x2eb594(0x274)]['left']='0',_0x3001f7['style'][_0x2eb594(0x276)]=_0x2eb594(0x26d),_0x3001f7[_0x2eb594(0x274)]['height']=_0x2eb594(0x26d),_0x3001f7['style'][_0x2eb594(0x22d)]='49',_0x3001f7[_0x2eb594(0x274)][_0x2eb594(0x232)]=_0x2eb594(0x233),_0xf78fcc[_0x2eb594(0x1ed)](_0x3001f7);}[_0x2fc7b3(0x221)](){const _0x56494e=_0x2fc7b3;[[_0x57cf7e],[_0x2a944f,{'container':S,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x182d6c,null]]}],[_0x55580b],[_0x16441d,{'override':[[_0x4010ef,null]]}],[_0x335d73,{'hasScroll':!0x1}],[_0x273ca7],[_0x559200],[_0x5b498d,{'notExecuteFormula':!0x0}],[_0x7caa0c],[_0xded503],[_0x3e06cb],[_0x560b85],[_0x455047],[_0x2d1d84],[_0xbe5f41],[_0x15e06e],[_0x23cd79],[_0x980711],[_0x3ea405],[_0x311142],[_0x505a92],[_0x1bf488,{'notExecuteFormula':!0x0}],[_0x3b762d],[_0x5071b5],[_0x50d60f],[_0x31c6ca],[_0x391d8c],[_0x140db0],[_0x53b902],[_0xdef9b7],[_0x5be6c1],[_0x5320ea,{'notExecuteFormula':!0x0}],[_0x2fc1a6]][_0x56494e(0x242)](([_0x47202d,_0xdc66e8])=>this[_0x56494e(0x1d8)](_0x47202d,_0xdc66e8));}[_0x2fc7b3(0x263)](){const _0x300dce=_0x2fc7b3;super[_0x300dce(0x263)](),this[_0x300dce(0x218)](),this[_0x300dce(0x267)][_0x300dce(0x1d7)]();}[_0x2fc7b3(0x1d8)](_0x1f66d9,_0x2bec44,_0x350491){const _0x161484=_0x2fc7b3;if(this[_0x161484(0x267)][_0x161484(0x1f0)](_0x1f66d9['pluginName'])&&!_0x350491)throw new Error(_0x161484(0x1ff)+_0x1f66d9['pluginName']+'\x20has\x20been\x20registered.');this[_0x161484(0x267)]['set'](_0x1f66d9[_0x161484(0x275)],[_0x1f66d9,_0x2bec44]);}[_0x2fc7b3(0x25c)](){const _0x53a1c4=_0x2fc7b3;return Array[_0x53a1c4(0x22a)](this[_0x53a1c4(0x267)][_0x53a1c4(0x200)]());}[_0x2fc7b3(0x1f2)](_0x7824d1,_0x2ca46d){const _0x3c3cff=_0x2fc7b3,_0x56cabd=document[_0x3c3cff(0x227)](S);_0x56cabd&&(_0x56cabd[_0x3c3cff(0x274)][_0x3c3cff(0x232)]='block',this[_0x3c3cff(0x266)](_0x7824d1,S,_0x2ca46d));}[_0x2fc7b3(0x218)](){const _0x4704b3=_0x2fc7b3;var _0x4afbe1;this[_0x4704b3(0x1ef)][_0x4704b3(0x263)](),(_0x4afbe1=this[_0x4704b3(0x248)])==null||_0x4afbe1[_0x4704b3(0x263)](),this[_0x4704b3(0x23c)]['next'](null);const _0xe731bc=document[_0x4704b3(0x227)](S);_0xe731bc&&(_0xe731bc[_0x4704b3(0x274)][_0x4704b3(0x232)]=_0x4704b3(0x233),this['_internalWebWorker']&&(this[_0x4704b3(0x21f)][_0x4704b3(0x1fd)](),this[_0x4704b3(0x21f)]=null));}[_0x2fc7b3(0x266)](_0x3ff990,_0x12df54,_0x51142a){const _0x5f4ba2=_0x2fc7b3;var _0x39136e,_0x362142,_0x5dc3ab,_0x545d42,_0x58e17a;if(this[_0x5f4ba2(0x248)])return;const _0x5db6ee=new _0x5e0599({'locales':{[this[_0x5f4ba2(0x23f)][_0x5f4ba2(0x27b)]()]:this[_0x5f4ba2(0x23f)][_0x5f4ba2(0x23b)]()},'override':[[_0x5c2ef6,{'useClass':_0x5851a5}]]}),_0x5eb7a4=_0x5db6ee[_0x5f4ba2(0x23e)]();this[_0x5f4ba2(0x1e1)](this['_themeService']['darkMode$'][_0x5f4ba2(0x235)](_0x2b9c25=>{const _0x4b6ebf=_0x5f4ba2;_0x5eb7a4[_0x4b6ebf(0x1c0)](_0x1127f9)['setDarkMode'](_0x2b9c25);})),this[_0x5f4ba2(0x1e1)](this[_0x5f4ba2(0x229)][_0x5f4ba2(0x215)]['subscribe'](_0x52963c=>{const _0x2ea4d7=_0x5f4ba2;_0x5eb7a4[_0x2ea4d7(0x1c0)](_0x1127f9)[_0x2ea4d7(0x258)](_0x52963c);})),_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x184cc8)[_0x5f4ba2(0x269)](this['_localeService'][_0x5f4ba2(0x27b)]()),_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x23d28a)['setConfig'](_0x87210a,this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_0x87210a));const _0x105cc2=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_0x425d58);_0x105cc2&&_0x5db6ee[_0x5f4ba2(0x1d8)](_0x4b6169,{'license':_0x105cc2['ls']});const _0xfca89d=(_0x39136e=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x39136e['workerURL'],_0x40c21b=!!_0xfca89d;_0x40c21b&&(this[_0x5f4ba2(0x21f)]=_0xfca89d instanceof Worker?_0xfca89d:null,_0x5db6ee[_0x5f4ba2(0x1d8)](_0x471191,{'workerURL':_0xfca89d})),this['_pluginMap'][_0x5f4ba2(0x242)](([_0x2c9703,_0x296d00])=>{const _0x3fa2fb=_0x5f4ba2;_0x5db6ee[_0x3fa2fb(0x1d8)](_0x2c9703,_0x296d00);}),_0x5db6ee[_0x5f4ba2(0x1d8)](_0x34a908,{'historyListServerUrl':(_0x362142=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x362142[_0x5f4ba2(0x213)],'historyPanelComponentKey':(_0x5dc3ab=this[_0x5f4ba2(0x265)]['getConfig'](_))==null?void 0x0:_0x5dc3ab['historyPanelComponentKey'],'historyPanelHidden':(_0x545d42=this[_0x5f4ba2(0x265)]['getConfig'](_))==null?void 0x0:_0x545d42[_0x5f4ba2(0x212)],'historyAIassistantEnabled':(_0x58e17a=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x58e17a[_0x5f4ba2(0x1d9)]}),_0x5eb7a4['invoke'](_0x15f6da=>{const _0x3120f7=_0x5f4ba2;this[_0x3120f7(0x26e)](_0x15f6da,_0x3ff990);}),this['_historyUniver$']['next'](_0x5db6ee);const _0x13a282=_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x18b099),_0x2f4ce9=this[_0x5f4ba2(0x272)](_0x3ff990),_0x4d447c=()=>{const _0x12ed3c=_0x5f4ba2;_0x51142a?_0x13a282[_0x12ed3c(0x1c9)](_0x3ff990,_0x12df54,_0x2f4ce9,_0x51142a):_0x13a282[_0x12ed3c(0x25d)](_0x3ff990,_0x12df54,_0x2f4ce9);};if(this[_0x5f4ba2(0x1c6)][_0x5f4ba2(0x277)]({'content':this[_0x5f4ba2(0x23f)]['t'](_0x5f4ba2(0x26a)),'type':_0x34ba39[_0x5f4ba2(0x20f)]}),_0x40c21b)try{_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x50c86c)['whenReady']()['then'](()=>{_0x4d447c();});}catch{_0x4d447c();}else _0x4d447c();}[_0x2fc7b3(0x26e)](_0x52950f,_0x2f392a){const _0xfbe1dd=_0x2fc7b3,_0x2b7707=_0x52950f[_0xfbe1dd(0x1c0)](_0x18b099);this['_disposableCollection'][_0xfbe1dd(0x21d)](_0x2b7707[_0xfbe1dd(0x223)][_0xfbe1dd(0x235)](_0x254b63=>{const _0x4d3a66=_0xfbe1dd;switch(_0x254b63){case _0x466ec0[_0x4d3a66(0x24f)]:this[_0x4d3a66(0x264)]['closeAll'](),this['_sidebarService'][_0x4d3a66(0x251)]();break;case _0x466ec0[_0x4d3a66(0x24e)]:this[_0x4d3a66(0x237)][_0x4d3a66(0x1e0)](ee['id']),this[_0x4d3a66(0x218)]();break;case _0x466ec0[_0x4d3a66(0x1d6)]:this[_0x4d3a66(0x218)](),this[_0x4d3a66(0x1c6)][_0x4d3a66(0x277)]({'content':this[_0x4d3a66(0x23f)]['t'](_0x4d3a66(0x1e3)),'type':_0x34ba39['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0xfbe1dd(0x21d)](_0x2b7707['revertRevision$'][_0xfbe1dd(0x235)](async _0x935b1e=>{const _0x564453=_0xfbe1dd;_0x935b1e&&this[_0x564453(0x237)][_0x564453(0x1e0)](_0x161d46['id'],{'unitId':_0x2f392a,'revision':_0x935b1e});}));}[_0x2fc7b3(0x272)](_0x2427a0){const _0x3b3ede=_0x2fc7b3,_0x548c48=this[_0x3b3ede(0x201)][_0x3b3ede(0x1ea)](_0x2427a0)[_0x3b3ede(0x1df)]()['map'](_0x4a2a13=>_0x4a2a13[_0x3b3ede(0x211)]()),_0x43278d=new _0x26ccb0(_0x2427a0)['id'],_0x5177fd=_0x548c48['map'](_0x48abc3=>new _0x3ee8b6(_0x2427a0,_0x48abc3)['id']),_0x5be2cc=_0x548c48[_0x3b3ede(0x245)](_0x253cba=>this[_0x3b3ede(0x244)][_0x3b3ede(0x25f)](_0x2427a0,_0x253cba)[_0x3b3ede(0x245)](_0x207db1=>new _0x3e6ac1(_0x2427a0,_0x253cba,_0x207db1[_0x3b3ede(0x241)])['id']))[_0x3b3ede(0x210)](),_0x1f28b2=new _0x56f8be(_0x2427a0)['id'];return this[_0x3b3ede(0x23a)][_0x3b3ede(0x1e6)]([_0x43278d,..._0x5177fd,..._0x5be2cc,_0x1f28b2])[_0x3b3ede(0x1d5)](_0x3d0e47=>!!_0x3d0e47[_0x3b3ede(0x25b)]);}};p=Lt([g(0x0,_0x3e7270(_0x184cc8)),g(0x1,_0x4ed486),g(0x2,_0x23d28a),g(0x3,_0x28c1d1),g(0x4,_0x27fe79),g(0x5,_0x488a25),g(0x6,_0x3e7270(_0x50d464)),g(0x7,_0x3e7270(_0x182d6c)),g(0x8,_0x3e7270(_0x2aaed0)),g(0x9,_0x3e7270(_0x1127f9))],p);const w={'id':_0x2fc7b3(0x234),'type':_0x500d88['OPERATION'],'handler':_0x172cd7=>{const _0x4f5da6=_0x2fc7b3,_0x632697=_0x172cd7[_0x4f5da6(0x1c0)](p),_0x377c1a=_0x172cd7[_0x4f5da6(0x1c0)](_0x4ed486),{unitId:_0x443012}=_0x6cdcaa(_0x377c1a)||{};return _0x443012?(_0x632697[_0x4f5da6(0x1f2)](_0x443012),!0x0):!0x1;}},ee={'id':_0x2fc7b3(0x1f8),'type':_0x500d88[_0x2fc7b3(0x26f)],'handler':()=>!0x0},Ot='@univerjs-pro/edit-history-loader',wt='0.17.0',te={'name':Ot,'version':wt};function ie({ref:_0x4a3a8a,..._0x27a491}){const _0x4f3d26=_0x2fc7b3,{icon:_0x38777f,id:_0x4f95cd,className:_0x3e84c6,extend:_0x24af1d,..._0xf5c395}=_0x27a491,_0x5154a8=(_0x4f3d26(0x1eb)+_0x4f95cd+'\x20'+(_0x3e84c6||''))[_0x4f3d26(0x22c)](),_0x2bb510=_0x4ecb78('_'+Tt());return re(_0x38777f,''+_0x4f95cd,{'defIds':_0x38777f[_0x4f3d26(0x250)],'idSuffix':_0x2bb510[_0x4f3d26(0x262)]},{'ref':_0x4a3a8a,'className':_0x5154a8,..._0xf5c395},_0x24af1d);}function re(_0x3d0489,_0x1383bd,_0x9ce76b,_0x3c1092,_0x4db7f6){const _0x23cdfa=_0x2fc7b3;return _0x2a7b0e(_0x3d0489[_0x23cdfa(0x1c5)],{'key':_0x1383bd,...Mt(_0x3d0489,_0x9ce76b,_0x4db7f6),..._0x3c1092},(Dt(_0x3d0489,_0x9ce76b)['children']||[])[_0x23cdfa(0x245)]((_0x36fc8f,_0xe1b8e2)=>re(_0x36fc8f,_0x1383bd+'-'+_0x3d0489[_0x23cdfa(0x1c5)]+'-'+_0xe1b8e2,_0x9ce76b,void 0x0,_0x4db7f6)));}function Mt(_0x3cd6a3,_0x3a5c94,_0x3d6917){const _0x429f42=_0x2fc7b3,_0x19d0d4={..._0x3cd6a3['attrs']};_0x3d6917!=null&&_0x3d6917[_0x429f42(0x202)]&&_0x19d0d4[_0x429f42(0x231)]===_0x429f42(0x202)&&(_0x19d0d4['fill']=_0x3d6917[_0x429f42(0x202)]),_0x3cd6a3['tag']==='mask'&&_0x19d0d4['id']&&(_0x19d0d4['id']=_0x19d0d4['id']+_0x3a5c94[_0x429f42(0x1e5)]),Object['entries'](_0x19d0d4)[_0x429f42(0x242)](([_0x42553d,_0x462dac])=>{const _0x162945=_0x429f42;_0x42553d==='mask'&&typeof _0x462dac==_0x162945(0x21c)&&(_0x19d0d4[_0x42553d]=_0x462dac[_0x162945(0x1e4)](/url\(#(.*)\)/,_0x162945(0x214)+_0x3a5c94[_0x162945(0x1e5)]+')'));});const {defIds:_0x265016}=_0x3a5c94;return!_0x265016||_0x265016[_0x429f42(0x203)]===0x0||(_0x3cd6a3['tag']==='use'&&_0x19d0d4[_0x429f42(0x278)]&&(_0x19d0d4[_0x429f42(0x278)]=_0x19d0d4[_0x429f42(0x278)]+_0x3a5c94[_0x429f42(0x1e5)]),Object[_0x429f42(0x20c)](_0x19d0d4)[_0x429f42(0x242)](([_0x38c4cb,_0x141634])=>{const _0x3229e8=_0x429f42;typeof _0x141634==_0x3229e8(0x21c)&&(_0x19d0d4[_0x38c4cb]=_0x141634[_0x3229e8(0x1e4)](/url\(#(.*)\)/,_0x3229e8(0x214)+_0x3a5c94[_0x3229e8(0x1e5)]+')'));})),_0x19d0d4;}function Dt(_0x4a7d1e,_0x3cf10a){const _0x5eabb2=_0x2fc7b3;var _0xd42df6;const {defIds:_0x188985}=_0x3cf10a;return!_0x188985||_0x188985[_0x5eabb2(0x203)]===0x0?_0x4a7d1e:_0x4a7d1e[_0x5eabb2(0x1c5)]===_0x5eabb2(0x1dc)&&((_0xd42df6=_0x4a7d1e[_0x5eabb2(0x206)])!=null&&_0xd42df6[_0x5eabb2(0x203)])?{..._0x4a7d1e,'children':_0x4a7d1e[_0x5eabb2(0x206)][_0x5eabb2(0x245)](_0x391fdb=>typeof _0x391fdb[_0x5eabb2(0x1f4)]['id']=='string'&&_0x188985&&_0x188985[_0x5eabb2(0x26c)](_0x391fdb[_0x5eabb2(0x1f4)]['id'])?{..._0x391fdb,'attrs':{..._0x391fdb[_0x5eabb2(0x1f4)],'id':_0x391fdb[_0x5eabb2(0x1f4)]['id']+_0x3cf10a['idSuffix']}}:_0x391fdb)}:_0x4a7d1e;}function Tt(){const _0x57dfd3=_0x2fc7b3;return Math[_0x57dfd3(0x209)]()[_0x57dfd3(0x26b)](0x24)[_0x57dfd3(0x1fa)](0x2,0x8);}ie[_0x2fc7b3(0x216)]=_0x2fc7b3(0x273);const $t={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2fc7b3(0x252),'height':_0x2fc7b3(0x252)},'children':[{'tag':'g','attrs':{'fill':_0x2fc7b3(0x1c1),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x2fc7b3(0x1e9),'attrs':{'d':_0x2fc7b3(0x256)}},{'tag':_0x2fc7b3(0x1e9),'attrs':{'d':_0x2fc7b3(0x1cc)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2fc7b3(0x254),'attrs':{'id':_0x2fc7b3(0x24c)},'children':[{'tag':_0x2fc7b3(0x1e9),'attrs':{'fill':_0x2fc7b3(0x1e7),'d':_0x2fc7b3(0x27c)}}]}]}],'defIds':[_0x2fc7b3(0x24c)]},ne=_0x35d8e4(function(_0x1a37d9,_0x537c94){const _0x44696f=_0x2fc7b3;return _0x2a7b0e(ie,Object[_0x44696f(0x24a)]({},_0x1a37d9,{'id':'history-icon','ref':_0x537c94,'icon':$t}));});ne[_0x2fc7b3(0x216)]=_0x2fc7b3(0x1cb);var N=(_0x1bf683=>(_0x1bf683[_0x1bf683['UNIVER_UNKNOWN']=0x0]=_0x2fc7b3(0x205),_0x1bf683[_0x1bf683['UNIVER_DOC']=0x1]=_0x2fc7b3(0x27d),_0x1bf683[_0x1bf683[_0x2fc7b3(0x20e)]=0x2]='UNIVER_SHEET',_0x1bf683[_0x1bf683[_0x2fc7b3(0x1f9)]=0x3]=_0x2fc7b3(0x1f9),_0x1bf683[_0x1bf683[_0x2fc7b3(0x240)]=0x4]=_0x2fc7b3(0x240),_0x1bf683[_0x1bf683[_0x2fc7b3(0x1fc)]=-0x1]='UNRECOGNIZED',_0x1bf683))(N||{});function kt(_0x29f021){const _0x5f131f=_0x2fc7b3;return{'id':w['id'],'type':_0x492789[_0x5f131f(0x1f5)],'icon':_0x5f131f(0x1cb),'tooltip':_0x5f131f(0x253),'hidden$':_0x541ae0(_0x29f021,_0x3d874e['UNIVER_SHEET']),'disabled$':_0x17195d(_0x29f021,{'workbookTypes':[_0x26ccb0,_0x4b9d57],'worksheetTypes':[],'rangeTypes':[]})};}function _0x3e8e(_0x10da54,_0x40abe7){_0x10da54=_0x10da54-0x1c0;const _0xd9da89=_0xd9da();let _0x3e8e3a=_0xd9da89[_0x10da54];return _0x3e8e3a;}const xt={[_0x478a30[_0x2fc7b3(0x25a)]]:{[w['id']]:{'order':0.2,'menuItemFactory':kt}}};var Vt=Object['getOwnPropertyDescriptor'],Wt=(_0x5620ed,_0x373ca4,_0x319261,_0x1e7a6e)=>{const _0x484da2=_0x2fc7b3;for(var _0x3c2b9d=_0x1e7a6e>0x1?void 0x0:_0x1e7a6e?Vt(_0x373ca4,_0x319261):_0x373ca4,_0x3e0f9a=_0x5620ed[_0x484da2(0x203)]-0x1,_0x178f98;_0x3e0f9a>=0x0;_0x3e0f9a--)(_0x178f98=_0x5620ed[_0x3e0f9a])&&(_0x3c2b9d=_0x178f98(_0x3c2b9d)||_0x3c2b9d);return _0x3c2b9d;},h=(_0x3ed86b,_0x387c6d)=>(_0x4da281,_0x494f6a)=>_0x387c6d(_0x4da281,_0x494f6a,_0x3ed86b);let y=class extends _0x2d9b8d{constructor(_0x46218c,_0x2ad584,_0x9e7dd1,_0x22214e,_0x4a473c,_0x26204f,_0x4ec20d,_0x3f53e4,_0xeb3d55,_0x164c0d,_0x160e09){const _0x166b56=_0x2fc7b3;super(),d(this,_0x166b56(0x1ca),null),(this[_0x166b56(0x237)]=_0x46218c,this['_menuManagerService']=_0x2ad584,this['_componentManager']=_0x9e7dd1,this[_0x166b56(0x1de)]=_0x22214e,this[_0x166b56(0x23f)]=_0x4a473c,this[_0x166b56(0x1c6)]=_0x26204f,this['_collaborationController']=_0x4ec20d,this['_localCacheService']=_0x3f53e4,this[_0x166b56(0x208)]=_0xeb3d55,this[_0x166b56(0x201)]=_0x164c0d,this[_0x166b56(0x238)]=_0x160e09,this[_0x166b56(0x24b)]());}[_0x2fc7b3(0x24b)](){const _0x37836f=_0x2fc7b3;[w,ee][_0x37836f(0x242)](_0x281bb2=>this[_0x37836f(0x1e1)](_0x3b05ce(this[_0x37836f(0x237)]['registerCommand'](_0x281bb2)))),this['disposeWithMe'](this[_0x37836f(0x1c3)]['register'](_0x37836f(0x1cb),ne)),this['_menuManagerService']['mergeMenu'](xt),this[_0x37836f(0x1e1)](this[_0x37836f(0x237)][_0x37836f(0x1d4)](async(_0x2323e1,_0x58962f)=>{const _0x12b25d=_0x37836f;if(_0x2323e1['id']===_0x161d46['id']){const {unitId:_0x4fc345}=_0x2323e1['params'];this[_0x12b25d(0x1c6)][_0x12b25d(0x277)]({'content':this[_0x12b25d(0x23f)]['t'](_0x12b25d(0x1e8)),'type':_0x34ba39['Loading'],'duration':0x1388});const _0x38540a=this[_0x12b25d(0x259)][_0x12b25d(0x1f3)](_0x4fc345);(_0x58962f==null?void 0x0:_0x58962f[_0x12b25d(0x1cd)])?this['_handleRevertAcknowledgement'](_0x38540a,async()=>(setTimeout(()=>window[_0x12b25d(0x1d0)][_0x12b25d(0x224)]()),!0x0),!0x0):this[_0x12b25d(0x270)](_0x38540a,async()=>{const _0x4e9202=_0x12b25d,_0x1b2437=this[_0x4e9202(0x201)][_0x4e9202(0x20d)](N[_0x4e9202(0x20e)]),_0x2107cb=_0x1b2437==null?void 0x0:_0x1b2437['getActiveSheet']();if(!_0x2107cb)return!0x1;this['_univerInstanceService']['disposeUnit'](_0x4fc345);const _0x128f22=await this[_0x4e9202(0x208)][_0x4e9202(0x25e)](_0x4fc345,N[_0x4e9202(0x20e)]);return _0x128f22&&_0x128f22 instanceof _0x37e8a8?(await this[_0x4e9202(0x1f6)](_0x128f22,_0x2107cb[_0x4e9202(0x211)]()),!0x0):!0x1;});}}));}[_0x2fc7b3(0x270)](_0x5edb2e,_0x2211e5,_0xa272d4=!0x1){const _0x52804f=_0x2fc7b3,_0x3c4942=_0x384456([_0x5edb2e[_0x52804f(0x20a)]['event$'],_0x5edb2e['state$']])[_0x52804f(0x235)](async([_0x552dd8,_0x3982b1])=>{const _0x16d0ee=_0x52804f;var _0x12b9a0;_0x552dd8[_0x16d0ee(0x1d2)]===_0x5d6708[_0x16d0ee(0x21b)]&&(_0x3982b1==null?void 0x0:_0x3982b1[_0x16d0ee(0x268)])===_0x181bf6['SYNCED']&&_0x552dd8[_0x16d0ee(0x239)]['mutations'][_0x16d0ee(0x222)](_0x5ab688=>_0x5ab688['id']===_0x161d46['id'])&&await _0x2211e5()&&(this['_historyManagerService'][_0x16d0ee(0x218)](),_0x3c4942['unsubscribe'](),this[_0x16d0ee(0x1ca)]&&clearTimeout(this[_0x16d0ee(0x1ca)]),await((_0x12b9a0=this['_localCacheService'])==null?void 0x0:_0x12b9a0[_0x16d0ee(0x23d)]()));});_0xa272d4&&(this[_0x52804f(0x1ca)]=setTimeout(()=>{const _0x5d77b5=_0x52804f;_0x3c4942[_0x5d77b5(0x255)](),this[_0x5d77b5(0x1c6)]['show']({'content':this[_0x5d77b5(0x23f)]['t'](_0x5d77b5(0x1fe)),'type':_0x34ba39[_0x5d77b5(0x1d6)],'duration':0xbb8});},0x1388));}async[_0x2fc7b3(0x1f6)](_0x475972,_0x454e89){const _0x14c2cc=_0x2fc7b3;await this[_0x14c2cc(0x1db)](_0x475972,_0x454e89),_0x475972['activeSheet$'][_0x14c2cc(0x20b)](_0x4891b1(this[_0x14c2cc(0x1cf)]))[_0x14c2cc(0x235)](_0x2515c5=>{const _0x3e27f1=_0x14c2cc;_0x2515c5&&this[_0x3e27f1(0x236)](_0x2515c5);}),this[_0x14c2cc(0x238)][_0x14c2cc(0x228)][_0x14c2cc(0x20b)](_0x4891b1(this[_0x14c2cc(0x1cf)]))[_0x14c2cc(0x235)](()=>this['_updateSubUnitFromURLParams'](_0x475972,_0x454e89));}['_updateURLWithCurrentState'](_0x18afde,_0x336877=!0x1){const _0x5123d6=_0x2fc7b3,_0x4bc7d8=this[_0x5123d6(0x238)][_0x5123d6(0x21a)](_0x5123d6(0x27a));_0x18afde[_0x5123d6(0x211)]()!==_0x4bc7d8&&this[_0x5123d6(0x238)][_0x5123d6(0x271)](_0x5123d6(0x27a),_0x18afde[_0x5123d6(0x211)](),_0x336877);}async[_0x2fc7b3(0x1db)](_0x986350,_0x1f23b5){const _0x18aae6=_0x2fc7b3;var _0x27093a;if(!_0x1f23b5||!_0x986350['getSheetBySheetId'](_0x1f23b5)){const _0x169ce0=_0x986350['getUnhiddenWorksheets']()[0x0],_0x5e7524=_0x986350[_0x18aae6(0x1ce)](_0x169ce0);if(!_0x5e7524)return;this[_0x18aae6(0x236)](_0x5e7524,!0x0),await this[_0x18aae6(0x237)][_0x18aae6(0x1e0)](_0x306b09['id'],{'unitId':_0x986350['getUnitId'](),'subUnitId':_0x169ce0});return;}((_0x27093a=_0x986350[_0x18aae6(0x1c4)]())==null?void 0x0:_0x27093a[_0x18aae6(0x211)]())!==_0x1f23b5&&await this['_commandService'][_0x18aae6(0x1e0)](_0x306b09['id'],{'unitId':_0x986350[_0x18aae6(0x1fb)](),'subUnitId':_0x1f23b5});}};y=Wt([h(0x0,_0x28c1d1),h(0x1,_0x5bc567),h(0x2,_0x3e7270(_0x5855de)),h(0x3,_0x3e7270(p)),h(0x4,_0x3e7270(_0x184cc8)),h(0x5,_0x27fe79),h(0x6,_0x3e7270(_0x542228)),h(0x7,_0x33c52e),h(0x8,_0x3e7270(_0xae6654)),h(0x9,_0x4ed486),h(0xa,_0x2e5a36)],y);var At=Object[_0x2fc7b3(0x1dd)],Ft=Object['getOwnPropertyDescriptor'],jt=(_0x5c3567,_0x36f328,_0x3d7873)=>_0x36f328 in _0x5c3567?At(_0x5c3567,_0x36f328,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d7873}):_0x5c3567[_0x36f328]=_0x3d7873,Bt=(_0x1690eb,_0x15b08b,_0x39affa,_0x4fd98f)=>{for(var _0x42f340=_0x4fd98f>0x1?void 0x0:_0x4fd98f?Ft(_0x15b08b,_0x39affa):_0x15b08b,_0x16d45f=_0x1690eb['length']-0x1,_0x31337c;_0x16d45f>=0x0;_0x16d45f--)(_0x31337c=_0x1690eb[_0x16d45f])&&(_0x42f340=_0x31337c(_0x42f340)||_0x42f340);return _0x42f340;},B=(_0x2fa047,_0xb7f219)=>(_0x36dac8,_0x17ee8e)=>_0xb7f219(_0x36dac8,_0x17ee8e,_0x2fa047),U=(_0x972ce8,_0x2d82f7,_0x4994b7)=>jt(_0x972ce8,typeof _0x2d82f7!=_0x2fc7b3(0x261)?_0x2d82f7+'':_0x2d82f7,_0x4994b7);let f=class extends _0x4097a3{constructor(_0x48a789=j,_0x36b8db,_0x5eb42b){const _0x1e3114=_0x2fc7b3;super(),this[_0x1e3114(0x219)]=_0x48a789,this[_0x1e3114(0x1f7)]=_0x36b8db,this[_0x1e3114(0x265)]=_0x5eb42b;const {menu:_0xe61acf,..._0x2e5d13}=_0xf24e08({},j,this[_0x1e3114(0x219)]);_0xe61acf&&this[_0x1e3114(0x265)]['setConfig'](_0x1e3114(0x226),_0xe61acf,{'merge':!0x0}),this[_0x1e3114(0x265)][_0x1e3114(0x204)](_,_0x2e5d13),this[_0x1e3114(0x219)]['univerContainerId']&&this['_configService']['setConfig'](X,this[_0x1e3114(0x219)]['univerContainerId']);}['onStarting'](){const _0x5d1f8e=_0x2fc7b3;[[p],[y]][_0x5d1f8e(0x242)](_0x5b952b=>this[_0x5d1f8e(0x1f7)][_0x5d1f8e(0x21d)](_0x5b952b));}['onSteady'](){const _0x167a4e=_0x2fc7b3;this['_injector'][_0x167a4e(0x1c0)](y);}};U(f,_0x2fc7b3(0x24d),_0x3d874e[_0x2fc7b3(0x205)]),U(f,_0x2fc7b3(0x275),_0x2fc7b3(0x225)),U(f,_0x2fc7b3(0x22e),te[_0x2fc7b3(0x1c2)]),U(f,_0x2fc7b3(0x243),te[_0x2fc7b3(0x243)]),f=Bt([_0x4a3855(_0x4b6169),B(0x1,_0x3e7270(_0x2e410e)),B(0x2,_0x23d28a)],f);export{_ as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,p as HistoryLoaderService,w as ToggleEditHistoryOperation,X as UNIVER_CONTAINER_ID_KEY,S as UNIVER_HISTORY_CONTAINER_ID,f as UniverEditHistoryLoaderPlugin};
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export declare class UniverEditHistoryLoaderPlugin extends Plugin {
|
|
|
6
6
|
private readonly _configService;
|
|
7
7
|
static type: UniverInstanceType;
|
|
8
8
|
static pluginName: string;
|
|
9
|
+
static packageName: string;
|
|
10
|
+
static version: string;
|
|
9
11
|
constructor(_config: Partial<IUniverEditHistoryLoaderConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
10
12
|
onStarting(): void;
|
|
11
13
|
onSteady(): void;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x521a29,_0x212ab7){const _0x5a8a1a=_0x210c,_0xe5d8a6=_0x521a29();while(!![]){try{const _0x434e5f=-parseInt(_0x5a8a1a(0x1da))/0x1+parseInt(_0x5a8a1a(0x26e))/0x2+-parseInt(_0x5a8a1a(0x215))/0x3+-parseInt(_0x5a8a1a(0x297))/0x4*(-parseInt(_0x5a8a1a(0x213))/0x5)+-parseInt(_0x5a8a1a(0x256))/0x6+parseInt(_0x5a8a1a(0x2fc))/0x7*(-parseInt(_0x5a8a1a(0x2a6))/0x8)+-parseInt(_0x5a8a1a(0x21f))/0x9*(-parseInt(_0x5a8a1a(0x1eb))/0xa);if(_0x434e5f===_0x212ab7)break;else _0xe5d8a6['push'](_0xe5d8a6['shift']());}catch(_0x5631a1){_0xe5d8a6['push'](_0xe5d8a6['shift']());}}}(_0x446c,0xa39d9),function(_0x54b2ab,_0x441af0){const _0x45c28b=_0x210c;typeof exports==_0x45c28b(0x269)&&typeof module<'u'?_0x441af0(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-shape'),require('@univerjs-pro/sheets-shape-ui'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/design'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-table'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('rxjs'),require('@univerjs-pro/collaboration-client-ui'),require('react')):typeof define==_0x45c28b(0x2d8)&&define['amd']?define([_0x45c28b(0x249),_0x45c28b(0x1b9),_0x45c28b(0x2c7),_0x45c28b(0x2a0),_0x45c28b(0x206),_0x45c28b(0x207),'@univerjs-pro/license',_0x45c28b(0x27a),_0x45c28b(0x205),_0x45c28b(0x24c),_0x45c28b(0x2f3),_0x45c28b(0x281),_0x45c28b(0x23f),_0x45c28b(0x210),_0x45c28b(0x2b7),_0x45c28b(0x1b3),_0x45c28b(0x1f4),_0x45c28b(0x1d6),_0x45c28b(0x250),_0x45c28b(0x25a),_0x45c28b(0x27b),_0x45c28b(0x2ae),'@univerjs/network',_0x45c28b(0x2b6),_0x45c28b(0x26a),'@univerjs/sheets-conditional-formatting-ui',_0x45c28b(0x1cc),'@univerjs/sheets-data-validation-ui',_0x45c28b(0x1b4),'@univerjs/sheets-drawing-ui',_0x45c28b(0x2c9),_0x45c28b(0x2e8),_0x45c28b(0x2a9),_0x45c28b(0x1c7),_0x45c28b(0x23a),'@univerjs/sheets-hyper-link-ui',_0x45c28b(0x1c1),_0x45c28b(0x241),'@univerjs/sheets-ui',_0x45c28b(0x21a),_0x45c28b(0x1f9),_0x45c28b(0x299),_0x45c28b(0x223)],_0x441af0):(_0x54b2ab=typeof globalThis<'u'?globalThis:_0x54b2ab||self,_0x441af0(_0x54b2ab[_0x45c28b(0x1fb)]={},_0x54b2ab[_0x45c28b(0x295)],_0x54b2ab['UniverSheets'],_0x54b2ab[_0x45c28b(0x29a)],_0x54b2ab['UniverProCollaborationClient'],_0x54b2ab[_0x45c28b(0x1e6)],_0x54b2ab[_0x45c28b(0x2fa)],_0x54b2ab['UniverProSheetsChart'],_0x54b2ab[_0x45c28b(0x1f5)],_0x54b2ab[_0x45c28b(0x2b2)],_0x54b2ab[_0x45c28b(0x286)],_0x54b2ab[_0x45c28b(0x298)],_0x54b2ab[_0x45c28b(0x233)],_0x54b2ab['UniverProSheetsSparklineUi'],_0x54b2ab[_0x45c28b(0x22b)],_0x54b2ab[_0x45c28b(0x1d5)],_0x54b2ab[_0x45c28b(0x244)],_0x54b2ab[_0x45c28b(0x2e9)],_0x54b2ab[_0x45c28b(0x1df)],_0x54b2ab[_0x45c28b(0x1e3)],_0x54b2ab[_0x45c28b(0x2af)],_0x54b2ab[_0x45c28b(0x2bd)],_0x54b2ab[_0x45c28b(0x1e4)],_0x54b2ab['UniverRpc'],_0x54b2ab[_0x45c28b(0x21e)],_0x54b2ab[_0x45c28b(0x292)],_0x54b2ab['UniverSheetsDataValidation'],_0x54b2ab[_0x45c28b(0x2ed)],_0x54b2ab[_0x45c28b(0x20f)],_0x54b2ab['UniverSheetsDrawingUi'],_0x54b2ab[_0x45c28b(0x1bb)],_0x54b2ab[_0x45c28b(0x1bc)],_0x54b2ab[_0x45c28b(0x2c6)],_0x54b2ab[_0x45c28b(0x1d0)],_0x54b2ab[_0x45c28b(0x27c)],_0x54b2ab['UniverSheetsHyperLinkUi'],_0x54b2ab[_0x45c28b(0x259)],_0x54b2ab[_0x45c28b(0x1e9)],_0x54b2ab[_0x45c28b(0x2c0)],_0x54b2ab[_0x45c28b(0x262)],_0x54b2ab[_0x45c28b(0x1f9)],_0x54b2ab[_0x45c28b(0x290)],_0x54b2ab['React']));}(this,function(_0x56f7a6,_0x4c3f3f,_0x175618,_0x3f6b06,_0x3934c2,_0x175e35,_0xc1e4c3,_0x4e2aa0,_0x5d9300,_0x4bc006,_0x22d553,_0x2b81a8,_0x40b35f,_0xe3f61f,_0x4c7dc3,_0x33f435,_0x303967,_0x360e17,_0x7eac73,_0x4db4d6,_0x18c79c,_0x4affef,_0x33ba42,_0x2bf563,_0x370bec,_0x16915b,_0x5d2548,_0x56defc,_0xf68b5a,_0x503533,_0xb8ebc7,_0x4916ce,_0x2c11d8,_0x49b0c3,_0x195416,_0x2b13a7,_0x21add9,_0x558c62,_0x47d3a5,_0xce0520,_0x35922f,_0x4db9cb,_0x4f7dcf){'use strict';const _0x223a81=_0x210c;var _0x2daefb=Object[_0x223a81(0x226)],_0x14be7b=(_0x41e157,_0x500eb1,_0x3d0b79)=>_0x500eb1 in _0x41e157?_0x2daefb(_0x41e157,_0x500eb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d0b79}):_0x41e157[_0x500eb1]=_0x3d0b79,_0x624104=(_0xe809a5,_0x52c074,_0x55da6b)=>_0x14be7b(_0xe809a5,typeof _0x52c074!=_0x223a81(0x25f)?_0x52c074+'':_0x52c074,_0x55da6b);const _0x556b86=_0x223a81(0x2ca),_0x3c92e0={};var _0x315faa=Object[_0x223a81(0x1fe)],_0x1283b5=(_0xbaf27,_0x3b4d37,_0x3acae0,_0x302de6)=>{const _0x84844e=_0x223a81;for(var _0x304b7e=_0x302de6>0x1?void 0x0:_0x302de6?_0x315faa(_0x3b4d37,_0x3acae0):_0x3b4d37,_0x480fac=_0xbaf27[_0x84844e(0x24f)]-0x1,_0x3e4c0c;_0x480fac>=0x0;_0x480fac--)(_0x3e4c0c=_0xbaf27[_0x480fac])&&(_0x304b7e=_0x3e4c0c(_0x304b7e)||_0x304b7e);return _0x304b7e;},_0x1d5826=(_0x2950c7,_0x12d1fc)=>(_0xeaaa73,_0x22a5ee)=>_0x12d1fc(_0xeaaa73,_0x22a5ee,_0x2950c7);const _0x1e71f3='univer-container',_0x433081='UNIVER_CONTAINER_ID',_0x32d320='univer-history-container';_0x56f7a6[_0x223a81(0x1dd)]=class extends _0x4c3f3f[_0x223a81(0x1cb)]{constructor(_0x53514f,_0x57c446,_0x171f24,_0x30449e,_0x492d26,_0x1ded54,_0x284d5,_0xee3e6,_0xbeaa1e,_0x4a90e8){const _0x5594cb=_0x223a81;super(),_0x624104(this,'_historyUniver$',new _0x35922f[(_0x5594cb(0x2d9))](null)),_0x624104(this,'historyUniver$',this['_historyUniver$'][_0x5594cb(0x1d7)]()),_0x624104(this,'_disposableCollection',new _0x4c3f3f[(_0x5594cb(0x1e0))]()),_0x624104(this,_0x5594cb(0x21b),new Map()),_0x624104(this,_0x5594cb(0x2a4),null),(this['_localeService']=_0x53514f,this['_univerInstanceService']=_0x57c446,this[_0x5594cb(0x1d2)]=_0x171f24,this[_0x5594cb(0x2f7)]=_0x30449e,this[_0x5594cb(0x1fa)]=_0x492d26,this['_permissionService']=_0x1ded54,this['_selectionProtectionRuleModel']=_0x284d5,this['_dialogService']=_0xee3e6,this['_sidebarService']=_0xbeaa1e,this['_themeService']=_0x4a90e8,this[_0x5594cb(0x2f2)]());}get[_0x223a81(0x2ba)](){const _0x3af989=_0x223a81;return this[_0x3af989(0x220)][_0x3af989(0x274)];}[_0x223a81(0x2f2)](){const _0x2a40cf=_0x223a81;this[_0x2a40cf(0x1d4)](),this[_0x2a40cf(0x282)]();}[_0x223a81(0x1d4)](){const _0x2414c6=_0x223a81;var _0x4c1a6c;const _0x2aa363=(_0x4c1a6c=this[_0x2414c6(0x1d2)][_0x2414c6(0x2b3)](_0x433081))!=null?_0x4c1a6c:_0x1e71f3,_0x4232fc=document[_0x2414c6(0x255)](_0x2aa363);if(!_0x4232fc)return;const _0xa44dc2=document[_0x2414c6(0x219)](_0x2414c6(0x20b));_0xa44dc2['id']=_0x32d320,_0xa44dc2[_0x2414c6(0x24e)][_0x2414c6(0x2c3)]=_0x2414c6(0x2c5),_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x1f6)]=_0x2414c6(0x25d),_0xa44dc2[_0x2414c6(0x2ac)]['top']='0',_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x2bf)]='0',_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x2a8)]=_0x2414c6(0x1fc),_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x2c2)]=_0x2414c6(0x1fc),_0xa44dc2[_0x2414c6(0x2ac)]['zIndex']='49',_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x247)]=_0x2414c6(0x291),_0x4232fc['appendChild'](_0xa44dc2);}[_0x223a81(0x282)](){const _0x5570df=_0x223a81;[[_0x4affef[_0x5570df(0x301)]],[_0xce0520[_0x5570df(0x26b)],{'container':_0x32d320,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0xce0520[_0x5570df(0x2d1)],null]]}],[_0x33ba42[_0x5570df(0x260)]],[_0x7eac73[_0x5570df(0x1f1)],{'override':[[_0x7eac73[_0x5570df(0x2e7)],null]]}],[_0x303967[_0x5570df(0x1b5)],{'hasScroll':!0x1}],[_0x360e17['UniverDocsUIPlugin']],[_0x21add9['UniverSheetsNumfmtPlugin']],[_0x175618[_0x5570df(0x1bd)],{'notExecuteFormula':!0x0}],[_0x47d3a5[_0x5570df(0x2fb)]],[_0x2c11d8[_0x5570df(0x28d)]],[_0x49b0c3['UniverSheetsFormulaUIPlugin']],[_0x3f6b06[_0x5570df(0x209)]],[_0xb8ebc7['UniverSheetsFilterPlugin']],[_0x4916ce['UniverSheetsFilterUIPlugin']],[_0x370bec[_0x5570df(0x1d3)]],[_0x16915b[_0x5570df(0x2c8)]],[_0x195416['UniverSheetsHyperLinkPlugin']],[_0x2b13a7['UniverSheetsHyperLinkUIPlugin']],[_0x4c7dc3[_0x5570df(0x251)]],[_0x5d2548[_0x5570df(0x2bb)]],[_0x56defc[_0x5570df(0x1bf)]],[_0x18c79c[_0x5570df(0x2b5)],{'notExecuteFormula':!0x0}],[_0x4db4d6[_0x5570df(0x267)]],[_0xf68b5a[_0x5570df(0x237)]],[_0x503533['UniverSheetsDrawingUIPlugin']],[_0x40b35f[_0x5570df(0x1de)]],[_0xe3f61f[_0x5570df(0x2e6)]],[_0x4e2aa0['UniverSheetsChartPlugin']],[_0x5d9300['UniverSheetsChartUIPlugin']],[_0x22d553['UniverSheetsShapePlugin']],[_0x2b81a8[_0x5570df(0x200)]],[_0x4bc006[_0x5570df(0x2df)],{'notExecuteFormula':!0x0}],[_0x558c62['UniverSheetsTablePlugin']]][_0x5570df(0x284)](([_0x359189,_0x3a3146])=>this[_0x5570df(0x2fd)](_0x359189,_0x3a3146));}[_0x223a81(0x1be)](){const _0x5d72bd=_0x223a81;super['dispose'](),this[_0x5d72bd(0x2ad)](),this[_0x5d72bd(0x21b)]['clear']();}[_0x223a81(0x2fd)](_0x32ae0f,_0x500aab,_0xe98d5e){const _0x41569a=_0x223a81;if(this[_0x41569a(0x21b)][_0x41569a(0x1c3)](_0x32ae0f[_0x41569a(0x20e)])&&!_0xe98d5e)throw new Error(_0x41569a(0x235)+_0x32ae0f['pluginName']+_0x41569a(0x204));this[_0x41569a(0x21b)]['set'](_0x32ae0f[_0x41569a(0x20e)],[_0x32ae0f,_0x500aab]);}[_0x223a81(0x1e7)](){const _0x12ac7c=_0x223a81;return Array[_0x12ac7c(0x300)](this[_0x12ac7c(0x21b)][_0x12ac7c(0x225)]());}['mountHistoryContent'](_0x43b96c,_0x10773a){const _0x44b77c=_0x223a81,_0xfac3ec=document[_0x44b77c(0x255)](_0x32d320);_0xfac3ec&&(_0xfac3ec[_0x44b77c(0x2ac)]['display']=_0x44b77c(0x24d),this['_initUniver'](_0x43b96c,_0x32d320,_0x10773a));}['unMountHistoryContent'](){const _0x2a1ff0=_0x223a81;var _0x5e9c54;this[_0x2a1ff0(0x23e)][_0x2a1ff0(0x1be)](),(_0x5e9c54=this[_0x2a1ff0(0x2ba)])==null||_0x5e9c54[_0x2a1ff0(0x1be)](),this[_0x2a1ff0(0x220)]['next'](null);const _0x2f6a5d=document[_0x2a1ff0(0x255)](_0x32d320);_0x2f6a5d&&(_0x2f6a5d[_0x2a1ff0(0x2ac)]['display']=_0x2a1ff0(0x291),this[_0x2a1ff0(0x2a4)]&&(this[_0x2a1ff0(0x2a4)]['terminate'](),this[_0x2a1ff0(0x2a4)]=null));}[_0x223a81(0x2de)](_0x1e9b0a,_0x2ac9c2,_0x30f3e8){const _0x4831e2=_0x223a81;var _0x4e07b5,_0x504f58,_0x236885,_0x1662cf,_0x55c648;if(this[_0x4831e2(0x2ba)])return;const _0x464ed5=new _0x4c3f3f[(_0x4831e2(0x2a2))]({'locales':{[this[_0x4831e2(0x2cf)]['getCurrentLocale']()]:this[_0x4831e2(0x2cf)][_0x4831e2(0x2cc)]()},'override':[[_0x4c3f3f[_0x4831e2(0x2be)],{'useClass':_0x3934c2[_0x4831e2(0x242)]}]]}),_0x3b51bd=_0x464ed5[_0x4831e2(0x26d)]();this[_0x4831e2(0x265)](this[_0x4831e2(0x264)]['darkMode$'][_0x4831e2(0x1fd)](_0x439d06=>{const _0x3e9753=_0x4831e2;_0x3b51bd[_0x3e9753(0x271)](_0x4c3f3f['ThemeService'])['setDarkMode'](_0x439d06);})),this[_0x4831e2(0x265)](this['_themeService'][_0x4831e2(0x2d7)][_0x4831e2(0x1fd)](_0x57b4c3=>{const _0x42287f=_0x4831e2;_0x3b51bd[_0x42287f(0x271)](_0x4c3f3f[_0x42287f(0x2da)])['setTheme'](_0x57b4c3);})),_0x3b51bd[_0x4831e2(0x271)](_0x4c3f3f[_0x4831e2(0x2db)])['setLocale'](this[_0x4831e2(0x2cf)]['getCurrentLocale']()),_0x3b51bd[_0x4831e2(0x271)](_0x4c3f3f[_0x4831e2(0x27d)])[_0x4831e2(0x253)](_0x3934c2[_0x4831e2(0x283)],this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0x3934c2[_0x4831e2(0x283)]));const _0x5e20ba=this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0xc1e4c3[_0x4831e2(0x211)]);_0x5e20ba&&_0x464ed5[_0x4831e2(0x2fd)](_0xc1e4c3[_0x4831e2(0x288)],{'license':_0x5e20ba['ls']});const _0x41c996=(_0x4e07b5=this['_configService'][_0x4831e2(0x2b3)](_0x556b86))==null?void 0x0:_0x4e07b5[_0x4831e2(0x202)],_0x399f72=!!_0x41c996;_0x399f72&&(this[_0x4831e2(0x2a4)]=_0x41c996 instanceof Worker?_0x41c996:null,_0x464ed5['registerPlugin'](_0x2bf563[_0x4831e2(0x252)],{'workerURL':_0x41c996})),this[_0x4831e2(0x21b)][_0x4831e2(0x284)](([_0x530d12,_0x5f2c26])=>{_0x464ed5['registerPlugin'](_0x530d12,_0x5f2c26);}),_0x464ed5[_0x4831e2(0x2fd)](_0x175e35[_0x4831e2(0x1e2)],{'historyListServerUrl':(_0x504f58=this['_configService']['getConfig'](_0x556b86))==null?void 0x0:_0x504f58['historyListServerUrl'],'historyPanelComponentKey':(_0x236885=this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0x556b86))==null?void 0x0:_0x236885['historyPanelComponentKey'],'historyPanelHidden':(_0x1662cf=this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0x556b86))==null?void 0x0:_0x1662cf[_0x4831e2(0x2fe)],'historyAIassistantEnabled':(_0x55c648=this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0x556b86))==null?void 0x0:_0x55c648['historyAIassistantEnabled']}),_0x3b51bd[_0x4831e2(0x2eb)](_0x29f654=>{this['_initListener'](_0x29f654,_0x1e9b0a);}),this[_0x4831e2(0x220)][_0x4831e2(0x2f0)](_0x464ed5);const _0x103fef=_0x3b51bd[_0x4831e2(0x271)](_0x175e35[_0x4831e2(0x221)]),_0x495a7b=this[_0x4831e2(0x203)](_0x1e9b0a),_0xd7b750=()=>{const _0x321360=_0x4831e2;_0x30f3e8?_0x103fef[_0x321360(0x287)](_0x1e9b0a,_0x2ac9c2,_0x495a7b,_0x30f3e8):_0x103fef[_0x321360(0x231)](_0x1e9b0a,_0x2ac9c2,_0x495a7b);};if(this['_messageService']['show']({'content':this[_0x4831e2(0x2cf)]['t'](_0x4831e2(0x28b)),'type':_0x33f435['MessageType'][_0x4831e2(0x261)]}),_0x399f72)try{_0x3b51bd['get'](_0x2bf563[_0x4831e2(0x1c8)])[_0x4831e2(0x254)]()[_0x4831e2(0x2ff)](()=>{_0xd7b750();});}catch{_0xd7b750();}else _0xd7b750();}[_0x223a81(0x22e)](_0x18384b,_0x3f07d9){const _0x4c3500=_0x223a81,_0x2c7cd6=_0x18384b['get'](_0x175e35[_0x4c3500(0x221)]);this[_0x4c3500(0x23e)][_0x4c3500(0x279)](_0x2c7cd6[_0x4c3500(0x29b)][_0x4c3500(0x1fd)](_0x2fb9b0=>{const _0x408465=_0x4c3500;switch(_0x2fb9b0){case _0x175e35['HistoryModeStatus'][_0x408465(0x25b)]:this['_dialogService']['closeAll'](),this[_0x408465(0x1ca)][_0x408465(0x222)]();break;case _0x175e35['HistoryModeStatus'][_0x408465(0x1ef)]:this[_0x408465(0x2f7)][_0x408465(0x2dc)](_0x2f4670['id']),this[_0x408465(0x2ad)]();break;case _0x175e35[_0x408465(0x1ec)][_0x408465(0x1ba)]:this['unMountHistoryContent'](),this[_0x408465(0x1fa)][_0x408465(0x2bc)]({'content':this[_0x408465(0x2cf)]['t'](_0x408465(0x218)),'type':_0x33f435[_0x408465(0x229)][_0x408465(0x1ba)],'duration':0xbb8});break;}})),this[_0x4c3500(0x23e)][_0x4c3500(0x279)](_0x2c7cd6[_0x4c3500(0x1cf)]['subscribe'](async _0x1373fe=>{const _0x319f2d=_0x4c3500;_0x1373fe&&this[_0x319f2d(0x2f7)][_0x319f2d(0x2dc)](_0x3f6b06[_0x319f2d(0x2d3)]['id'],{'unitId':_0x3f07d9,'revision':_0x1373fe});}));}[_0x223a81(0x203)](_0x5b26d4){const _0x43f572=_0x223a81,_0x5d9686=this[_0x43f572(0x26c)]['getUnit'](_0x5b26d4)[_0x43f572(0x23d)]()[_0x43f572(0x2c4)](_0x3fe328=>_0x3fe328['getSheetId']()),_0x35f5e6=new _0x175618[(_0x43f572(0x1cd))](_0x5b26d4)['id'],_0x25a0b6=_0x5d9686['map'](_0x30dd22=>new _0x175618[(_0x43f572(0x1f2))](_0x5b26d4,_0x30dd22)['id']),_0x453145=_0x5d9686[_0x43f572(0x2c4)](_0x183bfe=>this[_0x43f572(0x272)][_0x43f572(0x1ce)](_0x5b26d4,_0x183bfe)['map'](_0x5064d6=>new _0x175618['RangeProtectionPermissionEditPoint'](_0x5b26d4,_0x183bfe,_0x5064d6[_0x43f572(0x2e4)])['id']))['flat'](),_0x1ba5ba=new _0x175618[(_0x43f572(0x28a))](_0x5b26d4)['id'];return this[_0x43f572(0x270)][_0x43f572(0x275)]([_0x35f5e6,..._0x25a0b6,..._0x453145,_0x1ba5ba])['every'](_0xa51b82=>!!_0xa51b82[_0x43f572(0x274)]);}},_0x56f7a6[_0x223a81(0x1dd)]=_0x1283b5([_0x1d5826(0x0,_0x4c3f3f[_0x223a81(0x228)](_0x4c3f3f[_0x223a81(0x2db)])),_0x1d5826(0x1,_0x4c3f3f[_0x223a81(0x2e2)]),_0x1d5826(0x2,_0x4c3f3f[_0x223a81(0x27d)]),_0x1d5826(0x3,_0x4c3f3f['ICommandService']),_0x1d5826(0x4,_0xce0520['IMessageService']),_0x1d5826(0x5,_0x4c3f3f['IPermissionService']),_0x1d5826(0x6,_0x4c3f3f[_0x223a81(0x228)](_0x175618[_0x223a81(0x1d8)])),_0x1d5826(0x7,_0x4c3f3f[_0x223a81(0x228)](_0xce0520[_0x223a81(0x2d1)])),_0x1d5826(0x8,_0x4c3f3f[_0x223a81(0x228)](_0xce0520[_0x223a81(0x20d)])),_0x1d5826(0x9,_0x4c3f3f[_0x223a81(0x228)](_0x4c3f3f['ThemeService']))],_0x56f7a6['HistoryLoaderService']);const _0xefc74d={'id':'univer.operation.toggle-edit-history','type':_0x4c3f3f[_0x223a81(0x1c0)][_0x223a81(0x22f)],'handler':_0x4132dd=>{const _0x29b7b1=_0x223a81,_0xdb320e=_0x4132dd['get'](_0x56f7a6['HistoryLoaderService']),_0x38c8bb=_0x4132dd[_0x29b7b1(0x271)](_0x4c3f3f[_0x29b7b1(0x2e2)]),{unitId:_0x549b3f}=_0x175618['getSheetCommandTarget'](_0x38c8bb)||{};return _0x549b3f?(_0xdb320e['mountHistoryContent'](_0x549b3f),!0x0):!0x1;}},_0x2f4670={'id':_0x223a81(0x1dc),'type':_0x4c3f3f[_0x223a81(0x1c0)]['OPERATION'],'handler':()=>!0x0};function _0x363ccb({ref:_0x2b6460,..._0x432b26}){const _0xb3875f=_0x223a81,{icon:_0xfd7b8,id:_0x419e6c,className:_0x235f66,extend:_0x5a0428,..._0x435a34}=_0x432b26,_0x9b04ff=('univerjs-icon\x20univerjs-icon-'+_0x419e6c+'\x20'+(_0x235f66||''))['trim'](),_0x45b039=_0x4f7dcf[_0xb3875f(0x2d2)]('_'+_0x328a14());return _0x418e49(_0xfd7b8,''+_0x419e6c,{'defIds':_0xfd7b8[_0xb3875f(0x28e)],'idSuffix':_0x45b039['current']},{'ref':_0x2b6460,'className':_0x9b04ff,..._0x435a34},_0x5a0428);}function _0x418e49(_0x41366e,_0x1f2c38,_0x449722,_0x6e348d,_0x1ff21a){const _0x582f13=_0x223a81;return _0x4f7dcf['createElement'](_0x41366e[_0x582f13(0x273)],{'key':_0x1f2c38,..._0x568964(_0x41366e,_0x449722,_0x1ff21a),..._0x6e348d},(_0x11658d(_0x41366e,_0x449722)[_0x582f13(0x2f5)]||[])[_0x582f13(0x2c4)]((_0x3befeb,_0xf62c45)=>_0x418e49(_0x3befeb,_0x1f2c38+'-'+_0x41366e[_0x582f13(0x273)]+'-'+_0xf62c45,_0x449722,void 0x0,_0x1ff21a)));}function _0x568964(_0x23d3c9,_0x561995,_0x2125d8){const _0x552abb=_0x223a81,_0x9cb4b0={..._0x23d3c9[_0x552abb(0x27e)]};_0x2125d8!=null&&_0x2125d8[_0x552abb(0x2f8)]&&_0x9cb4b0[_0x552abb(0x1e1)]==='colorChannel1'&&(_0x9cb4b0[_0x552abb(0x1e1)]=_0x2125d8['colorChannel1']),_0x23d3c9[_0x552abb(0x273)]===_0x552abb(0x293)&&_0x9cb4b0['id']&&(_0x9cb4b0['id']=_0x9cb4b0['id']+_0x561995['idSuffix']),Object[_0x552abb(0x1f7)](_0x9cb4b0)['forEach'](([_0x5cc90e,_0x566dc1])=>{const _0x37d815=_0x552abb;_0x5cc90e==='mask'&&typeof _0x566dc1==_0x37d815(0x240)&&(_0x9cb4b0[_0x5cc90e]=_0x566dc1[_0x37d815(0x2f4)](/url\(#(.*)\)/,_0x37d815(0x1ed)+_0x561995[_0x37d815(0x239)]+')'));});const {defIds:_0x414d20}=_0x561995;return!_0x414d20||_0x414d20[_0x552abb(0x24f)]===0x0||(_0x23d3c9[_0x552abb(0x273)]==='use'&&_0x9cb4b0[_0x552abb(0x2a3)]&&(_0x9cb4b0[_0x552abb(0x2a3)]=_0x9cb4b0['xlink:href']+_0x561995['idSuffix']),Object[_0x552abb(0x1f7)](_0x9cb4b0)[_0x552abb(0x284)](([_0x1f3ef2,_0x233113])=>{const _0xffe2cb=_0x552abb;typeof _0x233113==_0xffe2cb(0x240)&&(_0x9cb4b0[_0x1f3ef2]=_0x233113['replace'](/url\(#(.*)\)/,_0xffe2cb(0x1ed)+_0x561995[_0xffe2cb(0x239)]+')'));})),_0x9cb4b0;}function _0x11658d(_0x4b9a77,_0x191bdb){const _0x4c792e=_0x223a81;var _0x45248d;const {defIds:_0x1f6a0b}=_0x191bdb;return!_0x1f6a0b||_0x1f6a0b[_0x4c792e(0x24f)]===0x0?_0x4b9a77:_0x4b9a77[_0x4c792e(0x273)]==='defs'&&((_0x45248d=_0x4b9a77[_0x4c792e(0x2f5)])!=null&&_0x45248d[_0x4c792e(0x24f)])?{..._0x4b9a77,'children':_0x4b9a77[_0x4c792e(0x2f5)]['map'](_0x325536=>typeof _0x325536['attrs']['id']=='string'&&_0x1f6a0b&&_0x1f6a0b[_0x4c792e(0x2ab)](_0x325536['attrs']['id'])?{..._0x325536,'attrs':{..._0x325536[_0x4c792e(0x27e)],'id':_0x325536[_0x4c792e(0x27e)]['id']+_0x191bdb[_0x4c792e(0x239)]}}:_0x325536)}:_0x4b9a77;}function _0x328a14(){const _0x5e98dd=_0x223a81;return Math[_0x5e98dd(0x2f6)]()[_0x5e98dd(0x2cb)](0x24)['substring'](0x2,0x8);}_0x363ccb[_0x223a81(0x29f)]=_0x223a81(0x2f1);const _0x57c6a2={'tag':_0x223a81(0x217),'attrs':{'xmlns':_0x223a81(0x22d),'fill':'none','viewBox':_0x223a81(0x23b),'width':'1em','height':_0x223a81(0x276)},'children':[{'tag':'g','attrs':{'fill':_0x223a81(0x236),'clipPath':_0x223a81(0x230)},'children':[{'tag':_0x223a81(0x2ef),'attrs':{'d':_0x223a81(0x201)}},{'tag':_0x223a81(0x2ef),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':_0x223a81(0x257),'attrs':{},'children':[{'tag':_0x223a81(0x20c),'attrs':{'id':_0x223a81(0x22a)},'children':[{'tag':_0x223a81(0x2ef),'attrs':{'fill':_0x223a81(0x2a5),'d':_0x223a81(0x2a1)}}]}]}],'defIds':[_0x223a81(0x22a)]},_0x4d0d58=_0x4f7dcf[_0x223a81(0x258)](function(_0x5247ba,_0x4747bb){const _0x58ef80=_0x223a81;return _0x4f7dcf[_0x58ef80(0x219)](_0x363ccb,Object[_0x58ef80(0x208)]({},_0x5247ba,{'id':_0x58ef80(0x246),'ref':_0x4747bb,'icon':_0x57c6a2}));});_0x4d0d58[_0x223a81(0x29f)]=_0x223a81(0x280);var _0x4e73f2=(_0x1d1ada=>(_0x1d1ada[_0x1d1ada[_0x223a81(0x2ea)]=0x0]=_0x223a81(0x2ea),_0x1d1ada[_0x1d1ada[_0x223a81(0x2e5)]=0x1]=_0x223a81(0x2e5),_0x1d1ada[_0x1d1ada[_0x223a81(0x2d6)]=0x2]='UNIVER_SHEET',_0x1d1ada[_0x1d1ada[_0x223a81(0x24b)]=0x3]=_0x223a81(0x24b),_0x1d1ada[_0x1d1ada['UNIVER_PROJECT']=0x4]=_0x223a81(0x2d0),_0x1d1ada[_0x1d1ada[_0x223a81(0x29e)]=-0x1]=_0x223a81(0x29e),_0x1d1ada))(_0x4e73f2||{});function _0x28b5e4(_0x5f2fba){const _0x46cb68=_0x223a81;return{'id':_0xefc74d['id'],'type':_0xce0520[_0x46cb68(0x23c)][_0x46cb68(0x248)],'icon':_0x46cb68(0x280),'tooltip':_0x46cb68(0x1f0),'hidden$':_0xce0520['getMenuHiddenObservable'](_0x5f2fba,_0x4c3f3f['UniverInstanceType'][_0x46cb68(0x2d6)]),'disabled$':_0x47d3a5[_0x46cb68(0x232)](_0x5f2fba,{'workbookTypes':[_0x175618[_0x46cb68(0x1cd)],_0x175618[_0x46cb68(0x25c)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x24ce10={[_0xce0520[_0x223a81(0x1d1)][_0x223a81(0x28c)]]:{[_0xefc74d['id']]:{'order':0.2,'menuItemFactory':_0x28b5e4}}};var _0x590b51=Object[_0x223a81(0x1fe)],_0x36b58f=(_0x5d231f,_0x4e7833,_0x2e4a90,_0x41d790)=>{const _0xf11920=_0x223a81;for(var _0xc8176c=_0x41d790>0x1?void 0x0:_0x41d790?_0x590b51(_0x4e7833,_0x2e4a90):_0x4e7833,_0x2e9053=_0x5d231f[_0xf11920(0x24f)]-0x1,_0x5f5364;_0x2e9053>=0x0;_0x2e9053--)(_0x5f5364=_0x5d231f[_0x2e9053])&&(_0xc8176c=_0x5f5364(_0xc8176c)||_0xc8176c);return _0xc8176c;},_0x192a89=(_0x489efd,_0x27d62c)=>(_0x225f5a,_0x39ab1c)=>_0x27d62c(_0x225f5a,_0x39ab1c,_0x489efd);let _0x4c4452=class extends _0x4c3f3f[_0x223a81(0x20a)]{constructor(_0x198790,_0x230387,_0xcb4208,_0xfa363a,_0x461066,_0x21ee5f,_0x392d09,_0x437be2,_0x3a9d18,_0x51e03b,_0x39fd77){const _0x573752=_0x223a81;super(),_0x624104(this,_0x573752(0x2e3),null),(this[_0x573752(0x2f7)]=_0x198790,this[_0x573752(0x2b0)]=_0x230387,this[_0x573752(0x2b8)]=_0xcb4208,this[_0x573752(0x22c)]=_0xfa363a,this[_0x573752(0x2cf)]=_0x461066,this[_0x573752(0x1fa)]=_0x21ee5f,this[_0x573752(0x1d9)]=_0x392d09,this[_0x573752(0x1c4)]=_0x437be2,this[_0x573752(0x2a7)]=_0x3a9d18,this[_0x573752(0x26c)]=_0x51e03b,this[_0x573752(0x2e1)]=_0x39fd77,this[_0x573752(0x2f2)]());}['_init'](){const _0x95c715=_0x223a81;[_0xefc74d,_0x2f4670][_0x95c715(0x284)](_0x43ff2b=>this[_0x95c715(0x265)](_0x4c3f3f[_0x95c715(0x2d5)](this['_commandService'][_0x95c715(0x266)](_0x43ff2b)))),this[_0x95c715(0x265)](this[_0x95c715(0x2b8)][_0x95c715(0x2cd)]('HistoryIcon',_0x4d0d58)),this[_0x95c715(0x2b0)][_0x95c715(0x227)](_0x24ce10),this['disposeWithMe'](this[_0x95c715(0x2f7)][_0x95c715(0x1b6)](async(_0x26c06f,_0x17b2d3)=>{const _0x4b0e35=_0x95c715;if(_0x26c06f['id']===_0x3f6b06[_0x4b0e35(0x2d3)]['id']){const {unitId:_0x5324c5}=_0x26c06f[_0x4b0e35(0x296)];this['_messageService']['show']({'content':this[_0x4b0e35(0x2cf)]['t'](_0x4b0e35(0x243)),'type':_0x33f435[_0x4b0e35(0x229)][_0x4b0e35(0x261)],'duration':0x1388});const _0x22b4d2=this[_0x4b0e35(0x1d9)][_0x4b0e35(0x289)](_0x5324c5);(_0x17b2d3==null?void 0x0:_0x17b2d3[_0x4b0e35(0x29d)])?this[_0x4b0e35(0x1b7)](_0x22b4d2,async()=>(setTimeout(()=>window['location'][_0x4b0e35(0x2c1)]()),!0x0),!0x0):this[_0x4b0e35(0x1b7)](_0x22b4d2,async()=>{const _0x1ac0ef=_0x4b0e35,_0x11f7d8=this[_0x1ac0ef(0x26c)][_0x1ac0ef(0x1ea)](_0x4e73f2['UNIVER_SHEET']),_0x1df2b3=_0x11f7d8==null?void 0x0:_0x11f7d8[_0x1ac0ef(0x224)]();if(!_0x1df2b3)return!0x1;this['_univerInstanceService']['disposeUnit'](_0x5324c5);const _0x56318b=await this[_0x1ac0ef(0x2a7)]['loadUnit'](_0x5324c5,_0x4e73f2['UNIVER_SHEET']);return _0x56318b&&_0x56318b instanceof _0x4c3f3f[_0x1ac0ef(0x1c5)]?(await this[_0x1ac0ef(0x234)](_0x56318b,_0x1df2b3[_0x1ac0ef(0x2d4)]()),!0x0):!0x1;});}}));}[_0x223a81(0x1b7)](_0x49e84f,_0x59587b,_0xafeaeb=!0x1){const _0x2d6457=_0x223a81,_0x46e19c=_0x35922f[_0x2d6457(0x245)]([_0x49e84f[_0x2d6457(0x25e)]['event$'],_0x49e84f[_0x2d6457(0x1ff)]])[_0x2d6457(0x1fd)](async([_0x225ae5,_0x55c7bf])=>{const _0x50585d=_0x2d6457;var _0x37c6af;_0x225ae5['eventID']===_0x3f6b06[_0x50585d(0x285)][_0x50585d(0x294)]&&(_0x55c7bf==null?void 0x0:_0x55c7bf[_0x50585d(0x1ee)])===_0x3934c2[_0x50585d(0x2b1)]['SYNCED']&&_0x225ae5['data'][_0x50585d(0x1e5)]['some'](_0x50a894=>_0x50a894['id']===_0x3f6b06[_0x50585d(0x2d3)]['id'])&&await _0x59587b()&&(this[_0x50585d(0x22c)][_0x50585d(0x2ad)](),_0x46e19c[_0x50585d(0x2dd)](),this['_revertErrorTimer']&&clearTimeout(this[_0x50585d(0x2e3)]),await((_0x37c6af=this['_localCacheService'])==null?void 0x0:_0x37c6af[_0x50585d(0x28f)]()));});_0xafeaeb&&(this[_0x2d6457(0x2e3)]=setTimeout(()=>{const _0x4c51fd=_0x2d6457;_0x46e19c[_0x4c51fd(0x2dd)](),this['_messageService']['show']({'content':this['_localeService']['t'](_0x4c51fd(0x24a)),'type':_0x33f435[_0x4c51fd(0x229)]['Error'],'duration':0xbb8});},0x1388));}async[_0x223a81(0x234)](_0x145595,_0x50a202){const _0x1f9ccc=_0x223a81;await this['_updateSubUnitFromURLParams'](_0x145595,_0x50a202),_0x145595['activeSheet$'][_0x1f9ccc(0x214)](_0x35922f[_0x1f9ccc(0x26f)](this['dispose$']))[_0x1f9ccc(0x1fd)](_0x3d3b2d=>{_0x3d3b2d&&this['_updateURLWithCurrentState'](_0x3d3b2d);}),this[_0x1f9ccc(0x2e1)]['urlChange$']['pipe'](_0x35922f['takeUntil'](this['dispose$']))[_0x1f9ccc(0x1fd)](()=>this[_0x1f9ccc(0x238)](_0x145595,_0x50a202));}[_0x223a81(0x1c2)](_0x14210d,_0x4a47ca=!0x1){const _0x36c733=_0x223a81,_0x436626=this[_0x36c733(0x2e1)][_0x36c733(0x277)]('subunit');_0x14210d['getSheetId']()!==_0x436626&&this[_0x36c733(0x2e1)]['setParam'](_0x36c733(0x1c9),_0x14210d[_0x36c733(0x2d4)](),_0x4a47ca);}async[_0x223a81(0x238)](_0x6a0653,_0x30bf63){const _0x24b41d=_0x223a81;var _0x549d93;if(!_0x30bf63||!_0x6a0653[_0x24b41d(0x212)](_0x30bf63)){const _0x27262d=_0x6a0653[_0x24b41d(0x21d)]()[0x0],_0x1df9d5=_0x6a0653[_0x24b41d(0x212)](_0x27262d);if(!_0x1df9d5)return;this['_updateURLWithCurrentState'](_0x1df9d5,!0x0),await this[_0x24b41d(0x2f7)]['executeCommand'](_0x175618[_0x24b41d(0x1f8)]['id'],{'unitId':_0x6a0653[_0x24b41d(0x2ee)](),'subUnitId':_0x27262d});return;}((_0x549d93=_0x6a0653['getActiveSheet']())==null?void 0x0:_0x549d93[_0x24b41d(0x2d4)]())!==_0x30bf63&&await this[_0x24b41d(0x2f7)][_0x24b41d(0x2dc)](_0x175618[_0x24b41d(0x1f8)]['id'],{'unitId':_0x6a0653['getUnitId'](),'subUnitId':_0x30bf63});}};_0x4c4452=_0x36b58f([_0x192a89(0x0,_0x4c3f3f[_0x223a81(0x2ce)]),_0x192a89(0x1,_0xce0520[_0x223a81(0x27f)]),_0x192a89(0x2,_0x4c3f3f[_0x223a81(0x228)](_0xce0520['ComponentManager'])),_0x192a89(0x3,_0x4c3f3f[_0x223a81(0x228)](_0x56f7a6[_0x223a81(0x1dd)])),_0x192a89(0x4,_0x4c3f3f[_0x223a81(0x228)](_0x4c3f3f[_0x223a81(0x2db)])),_0x192a89(0x5,_0xce0520[_0x223a81(0x216)]),_0x192a89(0x6,_0x4c3f3f[_0x223a81(0x228)](_0x3934c2[_0x223a81(0x2aa)])),_0x192a89(0x7,_0x3934c2['ILocalCacheService']),_0x192a89(0x8,_0x4c3f3f['Inject'](_0x3934c2[_0x223a81(0x1c6)])),_0x192a89(0x9,_0x4c3f3f[_0x223a81(0x2e2)]),_0x192a89(0xa,_0x4db9cb['IURLService'])],_0x4c4452);var _0x4bc494=Object[_0x223a81(0x226)],_0x118bce=Object[_0x223a81(0x1fe)],_0x4fdde5=(_0x4e6ef5,_0x200613,_0xd02f99)=>_0x200613 in _0x4e6ef5?_0x4bc494(_0x4e6ef5,_0x200613,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd02f99}):_0x4e6ef5[_0x200613]=_0xd02f99,_0xcb4f38=(_0x3e54c7,_0x1c43c2,_0x1b2d7a,_0x56314a)=>{const _0x5b29c0=_0x223a81;for(var _0x1c2945=_0x56314a>0x1?void 0x0:_0x56314a?_0x118bce(_0x1c43c2,_0x1b2d7a):_0x1c43c2,_0x3a82cd=_0x3e54c7[_0x5b29c0(0x24f)]-0x1,_0x5de7e7;_0x3a82cd>=0x0;_0x3a82cd--)(_0x5de7e7=_0x3e54c7[_0x3a82cd])&&(_0x1c2945=_0x5de7e7(_0x1c2945)||_0x1c2945);return _0x1c2945;},_0x411529=(_0x4b8a88,_0xf3586d)=>(_0x5a5b05,_0x39fd66)=>_0xf3586d(_0x5a5b05,_0x39fd66,_0x4b8a88),_0x34d458=(_0x543dc2,_0x3eec98,_0x2b721c)=>_0x4fdde5(_0x543dc2,typeof _0x3eec98!=_0x223a81(0x25f)?_0x3eec98+'':_0x3eec98,_0x2b721c);const _0x33c632=_0x223a81(0x1f3);_0x56f7a6['UniverEditHistoryLoaderPlugin']=class extends _0x4c3f3f['Plugin']{constructor(_0x1ce455=_0x3c92e0,_0x50b5d2,_0x187d40){const _0x2afd6f=_0x223a81;super(),this[_0x2afd6f(0x2f9)]=_0x1ce455,this[_0x2afd6f(0x2e0)]=_0x50b5d2,this[_0x2afd6f(0x1d2)]=_0x187d40;const {menu:_0x84241f,..._0x568b93}=_0x4c3f3f[_0x2afd6f(0x29c)]({},_0x3c92e0,this[_0x2afd6f(0x2f9)]);_0x84241f&&this[_0x2afd6f(0x1d2)][_0x2afd6f(0x253)]('menu',_0x84241f,{'merge':!0x0}),this[_0x2afd6f(0x1d2)][_0x2afd6f(0x253)](_0x556b86,_0x568b93),this[_0x2afd6f(0x2f9)][_0x2afd6f(0x2b9)]&&this[_0x2afd6f(0x1d2)]['setConfig'](_0x433081,this[_0x2afd6f(0x2f9)][_0x2afd6f(0x2b9)]);}[_0x223a81(0x1b8)](){const _0x593b37=_0x223a81;[[_0x56f7a6[_0x593b37(0x1dd)]],[_0x4c4452]][_0x593b37(0x284)](_0x31c4cd=>this[_0x593b37(0x2e0)][_0x593b37(0x279)](_0x31c4cd));}[_0x223a81(0x278)](){const _0x1bcf98=_0x223a81;this[_0x1bcf98(0x2e0)][_0x1bcf98(0x271)](_0x4c4452);}},_0x34d458(_0x56f7a6[_0x223a81(0x2ec)],'type',_0x4c3f3f[_0x223a81(0x1e8)][_0x223a81(0x2ea)]),_0x34d458(_0x56f7a6[_0x223a81(0x2ec)],_0x223a81(0x20e),_0x33c632),_0x56f7a6[_0x223a81(0x2ec)]=_0xcb4f38([_0x4c3f3f['DependentOn'](_0xc1e4c3['UniverLicensePlugin']),_0x411529(0x1,_0x4c3f3f['Inject'](_0x4c3f3f[_0x223a81(0x263)])),_0x411529(0x2,_0x4c3f3f[_0x223a81(0x27d)])],_0x56f7a6[_0x223a81(0x2ec)]),_0x56f7a6[_0x223a81(0x2b4)]=_0x556b86,_0x56f7a6[_0x223a81(0x268)]=_0xefc74d,_0x56f7a6['UNIVER_CONTAINER_ID_KEY']=_0x433081,_0x56f7a6[_0x223a81(0x21c)]=_0x32d320,Object['defineProperty'](_0x56f7a6,Symbol[_0x223a81(0x1db)],{'value':'Module'});}));function _0x210c(_0x8bd28,_0x108071){_0x8bd28=_0x8bd28-0x1b3;const _0x446c74=_0x446c();let _0x210c3f=_0x446c74[_0x8bd28];return _0x210c3f;}function _0x446c(){const _0x37dfd8=['BUTTON','exports','editHistory.panel.revertFailed','UNIVER_SLIDE','@univerjs-pro/sheets-pivot','block','dataset','length','@univerjs/drawing','UniverDataValidationPlugin','UniverRPCMainThreadPlugin','setConfig','whenReady','getElementById','7957104SYALHw','defs','forwardRef','UniverSheetsNumfmt','@univerjs/drawing-ui','Entered','WorkbookViewHistoryPermission','absolute','session','symbol','UniverNetworkPlugin','Loading','UniverUi','Injector','_themeService','disposeWithMe','registerCommand','UniverDrawingUIPlugin','ToggleEditHistoryOperation','object','@univerjs/sheets-conditional-formatting','UniverUIPlugin','_univerInstanceService','__getInjector','2545254pkydpn','takeUntil','_permissionService','get','_selectionProtectionRuleModel','tag','value','composePermission','1em','getParam','onSteady','add','@univerjs-pro/sheets-chart','@univerjs/engine-formula','UniverSheetsHyperLink','IConfigService','attrs','IMenuManagerService','HistoryIcon','@univerjs-pro/sheets-shape-ui','_initPlugins','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','forEach','CollaborationEvent','UniverProSheetsShape','triggerCustomVersions','UniverLicensePlugin','getCollabEntity','WorkbookRecoverHistoryPermission','editHistory.info.initializing','OTHERS','UniverSheetsFormulaPlugin','defIds','exhaustSavingTask','UniverProCollaborationClientUi','none','UniverSheetsConditionalFormattingUi','mask','CHANGESET_ACK','UniverCore','params','1124fCbpcG','UniverProSheetsShapeUi','@univerjs-pro/collaboration-client-ui','UniverProCollaboration','status$','merge','fromCollab','UNRECOGNIZED','displayName','@univerjs-pro/collaboration','M0\x200H16V16H0z','Univer','xlink:href','_internalWebWorker','white','3219248gQEYxq','_dataLoaderService','width','@univerjs/sheets-formula','CollaborationController','includes','style','unMountHistoryContent','@univerjs/engine-render','UniverEngineFormula','_menuManagerService','CollaborationStatus','UniverProSheetsPivot','getConfig','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverFormulaEnginePlugin','@univerjs/rpc','@univerjs/data-validation','_componentManager','univerContainerId','historyUniver','UniverSheetsDataValidationPlugin','show','UniverEngineRender','IAuthzIoService','left','UniverSheetsUi','reload','height','uComp','map','history-container','UniverSheetsFormula','@univerjs/sheets','UniverSheetsConditionalFormattingUIPlugin','@univerjs/sheets-filter','edit-history-loader.config','toString','getLocales','register','ICommandService','_localeService','UNIVER_PROJECT','IDialogService','useRef','RevertRevisionMutation','getSheetId','toDisposable','UNIVER_SHEET','currentTheme$','function','BehaviorSubject','ThemeService','LocaleService','executeCommand','unsubscribe','_initUniver','UniverSheetsPivotTablePlugin','_injector','_urlService','IUniverInstanceService','_revertErrorTimer','permissionId','UNIVER_DOC','UniverSheetSparklineUIPlugin','IImageIoService','@univerjs/sheets-filter-ui','UniverDocsUi','UNIVER_UNKNOWN','invoke','UniverEditHistoryLoaderPlugin','UniverSheetsDataValidationUi','getUnitId','path','next','UniverIcon','_init','@univerjs-pro/sheets-shape','replace','children','random','_commandService','colorChannel1','_config','UniverProLicense','UniverSheetsUIPlugin','21ICUuUD','registerPlugin','historyPanelHidden','then','from','UniverRenderEnginePlugin','@univerjs/design','@univerjs/sheets-drawing','UniverDocsPlugin','onCommandExecuted','_handleRevertAcknowledgement','onStarting','@univerjs/core','Error','UniverSheetsFilter','UniverSheetsFilterUi','UniverSheetsPlugin','dispose','UniverSheetsDataValidationUIPlugin','CommandType','@univerjs/sheets-numfmt','_updateURLWithCurrentState','has','_localCacheService','Workbook','DataLoaderService','@univerjs/sheets-formula-ui','IRemoteInstanceService','subunit','_sidebarService','Disposable','@univerjs/sheets-data-validation','WorkbookEditablePermission','getSubunitRuleList','revertRevision$','UniverSheetsFormulaUi','RibbonStartGroup','_configService','UniverSheetsConditionalFormattingPlugin','_initContainer','UniverDesign','@univerjs/docs-ui','asObservable','RangeProtectionRuleModel','_collaborationController','629414NOZHoM','toStringTag','univer.operation.exit-edit-history','HistoryLoaderService','UniverSheetSparklinePlugin','UniverDrawing','DisposableCollection','fill','UniverEditHistoryViewerPlugin','UniverDrawingUi','UniverNetwork','mutations','UniverProEditHistoryViewer','getAllPlugins','UniverInstanceType','UniverSheetsTable','getCurrentUnitOfType','10STZQau','HistoryModeStatus','url(#$1','status','Exited','editHistory.panel.title','UniverDrawingPlugin','WorksheetEditPermission','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','@univerjs/docs','UniverProSheetsChartUi','position','entries','SetWorksheetActivateCommand','rxjs','_messageService','UniverProEditHistoryLoader','100%','subscribe','getOwnPropertyDescriptor','state$','UniverSheetsShapeUIPlugin','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','workerURL','_checkCanRevert','\x20has\x20been\x20registered.','@univerjs-pro/sheets-chart-ui','@univerjs-pro/collaboration-client','@univerjs-pro/edit-history-viewer','assign','UniverCollaborationPlugin','RxDisposable','div','clipPath','ISidebarService','pluginName','UniverSheetsDrawing','@univerjs-pro/sheets-sparkline-ui','LS_CONFIG_KEY','getSheetBySheetId','1845PAtZXk','pipe','1409364kTQvPl','IMessageService','svg','editHistory.panel.listFetchError','createElement','@univerjs/ui','_pluginMap','UNIVER_HISTORY_CONTAINER_ID','getUnhiddenWorksheets','UniverSheetsConditionalFormatting','26338113yZNiYY','_historyUniver$','HistoryManagerService','close','react','getActiveSheet','values','defineProperty','mergeMenu','Inject','MessageType','history-icon_clip0_907_281','UniverDataValidation','_historyManagerService','http://www.w3.org/2000/svg','_initListener','OPERATION','url(#history-icon_clip0_907_281)','triggerLoadVersions','getCurrentRangeDisable$','UniverProSheetsSparkline','_setupSubUnitSync','[HistoryLoaderService]:\x20Plugin\x20','currentColor','UniverSheetsDrawingPlugin','_updateSubUnitFromURLParams','idSuffix','@univerjs/sheets-hyper-link','0\x200\x2016\x2016','MenuItemType','getSheets','_disposableCollection','@univerjs-pro/sheets-sparkline','string','@univerjs/sheets-table','AuthzIoHttpService','editHistory.panel.reverting','UniverDocs','combineLatest','history-icon','display'];_0x446c=function(){return _0x37dfd8;};return _0x446c();}
|
|
1
|
+
function _0x5dd6(_0x20ef87,_0xc6e42b){_0x20ef87=_0x20ef87-0x99;const _0x1b70f0=_0x1b70();let _0x5dd647=_0x1b70f0[_0x20ef87];return _0x5dd647;}(function(_0x38b293,_0x4382a1){const _0x5ae647=_0x5dd6,_0x182703=_0x38b293();while(!![]){try{const _0x3e8647=-parseInt(_0x5ae647(0x1b3))/0x1*(parseInt(_0x5ae647(0x1e2))/0x2)+parseInt(_0x5ae647(0xd3))/0x3*(parseInt(_0x5ae647(0x1b5))/0x4)+parseInt(_0x5ae647(0xd4))/0x5+-parseInt(_0x5ae647(0x12f))/0x6*(-parseInt(_0x5ae647(0xca))/0x7)+parseInt(_0x5ae647(0x116))/0x8*(parseInt(_0x5ae647(0x1e1))/0x9)+-parseInt(_0x5ae647(0xb9))/0xa*(-parseInt(_0x5ae647(0x1cf))/0xb)+-parseInt(_0x5ae647(0x9c))/0xc;if(_0x3e8647===_0x4382a1)break;else _0x182703['push'](_0x182703['shift']());}catch(_0x3bda03){_0x182703['push'](_0x182703['shift']());}}}(_0x1b70,0xce700),function(_0xbcdf46,_0x5a892c){const _0x5b4549=_0x5dd6;typeof exports=='object'&&typeof module<'u'?_0x5a892c(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-shape'),require('@univerjs-pro/sheets-shape-ui'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/design'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-table'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('rxjs'),require('@univerjs-pro/collaboration-client-ui'),require('react')):typeof define==_0x5b4549(0x10c)&&define[_0x5b4549(0x145)]?define([_0x5b4549(0x14f),'@univerjs/core','@univerjs/sheets',_0x5b4549(0x12b),_0x5b4549(0x158),_0x5b4549(0xf4),_0x5b4549(0xed),_0x5b4549(0x1b2),_0x5b4549(0x124),_0x5b4549(0xc1),'@univerjs-pro/sheets-shape',_0x5b4549(0x172),_0x5b4549(0x142),_0x5b4549(0x1d9),_0x5b4549(0x121),_0x5b4549(0xd6),_0x5b4549(0x180),'@univerjs/docs-ui',_0x5b4549(0x1d2),_0x5b4549(0x192),'@univerjs/engine-formula',_0x5b4549(0x14b),_0x5b4549(0x167),'@univerjs/rpc',_0x5b4549(0xae),_0x5b4549(0xc2),_0x5b4549(0x117),_0x5b4549(0x122),_0x5b4549(0x9b),_0x5b4549(0x101),_0x5b4549(0xbc),_0x5b4549(0xa2),'@univerjs/sheets-formula','@univerjs/sheets-formula-ui',_0x5b4549(0x13b),'@univerjs/sheets-hyper-link-ui',_0x5b4549(0x1b1),_0x5b4549(0x16c),'@univerjs/sheets-ui',_0x5b4549(0x151),_0x5b4549(0xd2),_0x5b4549(0x194),_0x5b4549(0x1ae)],_0x5a892c):(_0xbcdf46=typeof globalThis<'u'?globalThis:_0xbcdf46||self,_0x5a892c(_0xbcdf46[_0x5b4549(0x1aa)]={},_0xbcdf46[_0x5b4549(0x1e6)],_0xbcdf46[_0x5b4549(0xcd)],_0xbcdf46[_0x5b4549(0x126)],_0xbcdf46['UniverProCollaborationClient'],_0xbcdf46[_0x5b4549(0x1be)],_0xbcdf46[_0x5b4549(0x1e5)],_0xbcdf46['UniverProSheetsChart'],_0xbcdf46[_0x5b4549(0x14e)],_0xbcdf46['UniverProSheetsPivot'],_0xbcdf46['UniverProSheetsShape'],_0xbcdf46[_0x5b4549(0xc5)],_0xbcdf46[_0x5b4549(0x1a4)],_0xbcdf46[_0x5b4549(0xe5)],_0xbcdf46[_0x5b4549(0x9d)],_0xbcdf46[_0x5b4549(0x15b)],_0xbcdf46[_0x5b4549(0x147)],_0xbcdf46['UniverDocsUi'],_0xbcdf46[_0x5b4549(0x137)],_0xbcdf46['UniverDrawingUi'],_0xbcdf46[_0x5b4549(0xa4)],_0xbcdf46[_0x5b4549(0xfb)],_0xbcdf46['UniverNetwork'],_0xbcdf46[_0x5b4549(0x19b)],_0xbcdf46[_0x5b4549(0xf1)],_0xbcdf46[_0x5b4549(0x146)],_0xbcdf46[_0x5b4549(0x168)],_0xbcdf46[_0x5b4549(0xd5)],_0xbcdf46[_0x5b4549(0xa0)],_0xbcdf46['UniverSheetsDrawingUi'],_0xbcdf46[_0x5b4549(0x1dd)],_0xbcdf46[_0x5b4549(0x162)],_0xbcdf46['UniverSheetsFormula'],_0xbcdf46['UniverSheetsFormulaUi'],_0xbcdf46[_0x5b4549(0x1af)],_0xbcdf46[_0x5b4549(0x166)],_0xbcdf46[_0x5b4549(0x1d1)],_0xbcdf46['UniverSheetsTable'],_0xbcdf46['UniverSheetsUi'],_0xbcdf46[_0x5b4549(0x169)],_0xbcdf46[_0x5b4549(0xd2)],_0xbcdf46[_0x5b4549(0x11b)],_0xbcdf46[_0x5b4549(0x174)]));}(this,function(_0x4b548d,_0x420e0b,_0x57ccac,_0x373b71,_0xfabf9a,_0x23bed2,_0x157100,_0x28b033,_0x2899ee,_0x5a3378,_0x40ffd6,_0x2287e1,_0x353dd7,_0xf70474,_0xd07290,_0x4cba39,_0x2189cf,_0x32d65f,_0x4eeee4,_0x2aaf43,_0x350e6c,_0x332659,_0x4e8de9,_0x93c578,_0x3c308e,_0x17c37a,_0x466b4a,_0x5f25ed,_0x311963,_0x3681ac,_0x39c631,_0x3c2f97,_0xcbc3f9,_0x321798,_0x1a9b32,_0x349add,_0x4fc11b,_0xcf7c55,_0x51277a,_0x36e10f,_0x287a0d,_0x22a96b,_0x34be3b){'use strict';const _0x306e06=_0x5dd6;var _0x37ed03=Object[_0x306e06(0x1df)],_0x4322e3=(_0x27c3b1,_0x366bc6,_0x2a191a)=>_0x366bc6 in _0x27c3b1?_0x37ed03(_0x27c3b1,_0x366bc6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a191a}):_0x27c3b1[_0x366bc6]=_0x2a191a,_0x2d4563=(_0x1cd75e,_0xb76755,_0x5ea3fa)=>_0x4322e3(_0x1cd75e,typeof _0xb76755!='symbol'?_0xb76755+'':_0xb76755,_0x5ea3fa);const _0xacb774=_0x306e06(0x1b0),_0x5d7af5={};var _0x14d50f=Object[_0x306e06(0xa6)],_0x1d45d1=(_0x46d222,_0x3b7906,_0x5b906b,_0x52812a)=>{const _0x54c1ec=_0x306e06;for(var _0x54e113=_0x52812a>0x1?void 0x0:_0x52812a?_0x14d50f(_0x3b7906,_0x5b906b):_0x3b7906,_0x33b63e=_0x46d222[_0x54c1ec(0xf9)]-0x1,_0x4a0f07;_0x33b63e>=0x0;_0x33b63e--)(_0x4a0f07=_0x46d222[_0x33b63e])&&(_0x54e113=_0x4a0f07(_0x54e113)||_0x54e113);return _0x54e113;},_0x185226=(_0x2eb9da,_0x369342)=>(_0x4fd02e,_0x253d76)=>_0x369342(_0x4fd02e,_0x253d76,_0x2eb9da);const _0x1bdcb5='univer-container',_0x3a1430=_0x306e06(0x191),_0x2c0412=_0x306e06(0x17d);_0x4b548d[_0x306e06(0x154)]=class extends _0x420e0b[_0x306e06(0xd1)]{constructor(_0x57a11b,_0x208285,_0x44a90a,_0x3cc4bf,_0x1edc46,_0x3f7c33,_0x511b02,_0x68ed9d,_0x170156,_0x1aaeee){const _0x3ac42b=_0x306e06;super(),_0x2d4563(this,_0x3ac42b(0xbf),new _0x287a0d[(_0x3ac42b(0xfe))](null)),_0x2d4563(this,_0x3ac42b(0xbb),this[_0x3ac42b(0xbf)][_0x3ac42b(0xf7)]()),_0x2d4563(this,_0x3ac42b(0xbe),new _0x420e0b[(_0x3ac42b(0x179))]()),_0x2d4563(this,_0x3ac42b(0x181),new Map()),_0x2d4563(this,_0x3ac42b(0xe2),null),(this[_0x3ac42b(0x1c1)]=_0x57a11b,this[_0x3ac42b(0x16a)]=_0x208285,this[_0x3ac42b(0x1a5)]=_0x44a90a,this[_0x3ac42b(0x1a2)]=_0x3cc4bf,this[_0x3ac42b(0x111)]=_0x1edc46,this[_0x3ac42b(0x114)]=_0x3f7c33,this[_0x3ac42b(0x171)]=_0x511b02,this[_0x3ac42b(0x125)]=_0x68ed9d,this[_0x3ac42b(0x18c)]=_0x170156,this[_0x3ac42b(0x14a)]=_0x1aaeee,this['_init']());}get[_0x306e06(0x1c5)](){const _0x4fb9c6=_0x306e06;return this['_historyUniver$'][_0x4fb9c6(0xe4)];}['_init'](){const _0x42a37e=_0x306e06;this[_0x42a37e(0x161)](),this[_0x42a37e(0x199)]();}[_0x306e06(0x161)](){const _0x3499a1=_0x306e06;var _0x12d823;const _0x5c1fe6=(_0x12d823=this['_configService'][_0x3499a1(0xba)](_0x3a1430))!=null?_0x12d823:_0x1bdcb5,_0x28bab2=document['getElementById'](_0x5c1fe6);if(!_0x28bab2)return;const _0x4d5bb6=document['createElement']('div');_0x4d5bb6['id']=_0x2c0412,_0x4d5bb6['dataset']['uComp']=_0x3499a1(0x143),_0x4d5bb6[_0x3499a1(0x128)][_0x3499a1(0x11e)]=_0x3499a1(0x17a),_0x4d5bb6['style'][_0x3499a1(0x113)]='0',_0x4d5bb6[_0x3499a1(0x128)]['left']='0',_0x4d5bb6[_0x3499a1(0x128)][_0x3499a1(0xaf)]=_0x3499a1(0xfc),_0x4d5bb6[_0x3499a1(0x128)]['height']='100%',_0x4d5bb6[_0x3499a1(0x128)][_0x3499a1(0x17b)]='49',_0x4d5bb6[_0x3499a1(0x128)][_0x3499a1(0x1bb)]='none',_0x28bab2[_0x3499a1(0xdf)](_0x4d5bb6);}[_0x306e06(0x199)](){const _0x225d40=_0x306e06;[[_0x332659[_0x225d40(0xb0)]],[_0x36e10f['UniverUIPlugin'],{'container':_0x2c0412,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x36e10f['IDialogService'],null]]}],[_0x4e8de9['UniverNetworkPlugin']],[_0x4eeee4[_0x225d40(0x12d)],{'override':[[_0x4eeee4[_0x225d40(0x9f)],null]]}],[_0x2189cf[_0x225d40(0x1e0)],{'hasScroll':!0x1}],[_0x32d65f['UniverDocsUIPlugin']],[_0x4fc11b[_0x225d40(0x1dc)]],[_0x57ccac[_0x225d40(0x197)],{'notExecuteFormula':!0x0}],[_0x51277a[_0x225d40(0x134)]],[_0xcbc3f9[_0x225d40(0x196)]],[_0x321798[_0x225d40(0x129)]],[_0x373b71[_0x225d40(0x131)]],[_0x39c631[_0x225d40(0x1e3)]],[_0x3c2f97[_0x225d40(0xd8)]],[_0x3c308e[_0x225d40(0x1cc)]],[_0x17c37a['UniverSheetsConditionalFormattingUIPlugin']],[_0x1a9b32[_0x225d40(0xe1)]],[_0x349add[_0x225d40(0xb1)]],[_0xd07290['UniverDataValidationPlugin']],[_0x466b4a['UniverSheetsDataValidationPlugin']],[_0x5f25ed[_0x225d40(0x107)]],[_0x350e6c[_0x225d40(0xb7)],{'notExecuteFormula':!0x0}],[_0x2aaf43['UniverDrawingUIPlugin']],[_0x311963[_0x225d40(0xe3)]],[_0x3681ac[_0x225d40(0xb6)]],[_0x353dd7[_0x225d40(0x19c)]],[_0xf70474[_0x225d40(0x14d)]],[_0x28b033['UniverSheetsChartPlugin']],[_0x2899ee[_0x225d40(0x1d7)]],[_0x40ffd6[_0x225d40(0x12c)]],[_0x2287e1[_0x225d40(0x165)]],[_0x5a3378[_0x225d40(0x164)],{'notExecuteFormula':!0x0}],[_0xcf7c55[_0x225d40(0x140)]]][_0x225d40(0x9a)](([_0x16da5e,_0x12c801])=>this[_0x225d40(0x186)](_0x16da5e,_0x12c801));}[_0x306e06(0xa8)](){const _0x1f3099=_0x306e06;super[_0x1f3099(0xa8)](),this[_0x1f3099(0xf3)](),this[_0x1f3099(0x181)][_0x1f3099(0x157)]();}[_0x306e06(0x186)](_0x4932b6,_0x51f4f0,_0x38c6af){const _0x27fe2d=_0x306e06;if(this[_0x27fe2d(0x181)][_0x27fe2d(0xec)](_0x4932b6['pluginName'])&&!_0x38c6af)throw new Error(_0x27fe2d(0x1d8)+_0x4932b6[_0x27fe2d(0x112)]+_0x27fe2d(0x149));this[_0x27fe2d(0x181)][_0x27fe2d(0xef)](_0x4932b6[_0x27fe2d(0x112)],[_0x4932b6,_0x51f4f0]);}[_0x306e06(0xd9)](){const _0x4fe4ac=_0x306e06;return Array[_0x4fe4ac(0x108)](this[_0x4fe4ac(0x181)][_0x4fe4ac(0xc6)]());}[_0x306e06(0x1bf)](_0x4985dc,_0xd8afea){const _0xa0e20b=_0x306e06,_0x548001=document['getElementById'](_0x2c0412);_0x548001&&(_0x548001['style'][_0xa0e20b(0x1bb)]=_0xa0e20b(0x10e),this['_initUniver'](_0x4985dc,_0x2c0412,_0xd8afea));}[_0x306e06(0xf3)](){const _0xa105b5=_0x306e06;var _0x74830f;this[_0xa105b5(0xbe)]['dispose'](),(_0x74830f=this[_0xa105b5(0x1c5)])==null||_0x74830f[_0xa105b5(0xa8)](),this[_0xa105b5(0xbf)][_0xa105b5(0x10b)](null);const _0x29417d=document[_0xa105b5(0x141)](_0x2c0412);_0x29417d&&(_0x29417d['style']['display']=_0xa105b5(0x170),this[_0xa105b5(0xe2)]&&(this[_0xa105b5(0xe2)][_0xa105b5(0x16f)](),this[_0xa105b5(0xe2)]=null));}[_0x306e06(0x183)](_0x4fa444,_0x1c73f1,_0x12d313){const _0x122d4a=_0x306e06;var _0x4dc413,_0x5cc0ad,_0x353591,_0x122c31,_0x5f167b;if(this[_0x122d4a(0x1c5)])return;const _0x5dcb7d=new _0x420e0b[(_0x122d4a(0x1a1))]({'locales':{[this[_0x122d4a(0x1c1)][_0x122d4a(0xc9)]()]:this[_0x122d4a(0x1c1)][_0x122d4a(0xff)]()},'override':[[_0x420e0b[_0x122d4a(0xdd)],{'useClass':_0xfabf9a['AuthzIoHttpService']}]]}),_0x3712ff=_0x5dcb7d['__getInjector']();this[_0x122d4a(0x132)](this[_0x122d4a(0x14a)][_0x122d4a(0x163)][_0x122d4a(0xbd)](_0x19534b=>{const _0x3fa18f=_0x122d4a;_0x3712ff[_0x3fa18f(0x18e)](_0x420e0b[_0x3fa18f(0xc0)])[_0x3fa18f(0x110)](_0x19534b);})),this[_0x122d4a(0x132)](this['_themeService'][_0x122d4a(0x15f)][_0x122d4a(0xbd)](_0xda3066=>{const _0x5d9b66=_0x122d4a;_0x3712ff[_0x5d9b66(0x18e)](_0x420e0b[_0x5d9b66(0xc0)])[_0x5d9b66(0x118)](_0xda3066);})),_0x3712ff[_0x122d4a(0x18e)](_0x420e0b[_0x122d4a(0xe9)])[_0x122d4a(0x1cd)](this[_0x122d4a(0x1c1)][_0x122d4a(0xc9)]()),_0x3712ff[_0x122d4a(0x18e)](_0x420e0b[_0x122d4a(0x160)])[_0x122d4a(0x139)](_0xfabf9a[_0x122d4a(0x1de)],this[_0x122d4a(0x1a5)][_0x122d4a(0xba)](_0xfabf9a['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x45c197=this[_0x122d4a(0x1a5)][_0x122d4a(0xba)](_0x157100[_0x122d4a(0x15c)]);_0x45c197&&_0x5dcb7d[_0x122d4a(0x186)](_0x157100[_0x122d4a(0xcf)],{'license':_0x45c197['ls']});const _0x20ec27=(_0x4dc413=this['_configService'][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x4dc413[_0x122d4a(0x1bc)],_0x32584c=!!_0x20ec27;_0x32584c&&(this[_0x122d4a(0xe2)]=_0x20ec27 instanceof Worker?_0x20ec27:null,_0x5dcb7d['registerPlugin'](_0x93c578['UniverRPCMainThreadPlugin'],{'workerURL':_0x20ec27})),this[_0x122d4a(0x181)][_0x122d4a(0x9a)](([_0x157165,_0x5d0251])=>{const _0xb249ad=_0x122d4a;_0x5dcb7d[_0xb249ad(0x186)](_0x157165,_0x5d0251);}),_0x5dcb7d[_0x122d4a(0x186)](_0x23bed2['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x5cc0ad=this[_0x122d4a(0x1a5)][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x5cc0ad['historyListServerUrl'],'historyPanelComponentKey':(_0x353591=this[_0x122d4a(0x1a5)][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x353591['historyPanelComponentKey'],'historyPanelHidden':(_0x122c31=this['_configService'][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x122c31[_0x122d4a(0xaa)],'historyAIassistantEnabled':(_0x5f167b=this['_configService'][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x5f167b['historyAIassistantEnabled']}),_0x3712ff['invoke'](_0x657f9f=>{const _0x5195a2=_0x122d4a;this[_0x5195a2(0x1a9)](_0x657f9f,_0x4fa444);}),this['_historyUniver$']['next'](_0x5dcb7d);const _0x4b27ab=_0x3712ff[_0x122d4a(0x18e)](_0x23bed2[_0x122d4a(0x182)]),_0x3b7d72=this['_checkCanRevert'](_0x4fa444),_0x3b6d80=()=>{const _0xd7b98=_0x122d4a;_0x12d313?_0x4b27ab[_0xd7b98(0x130)](_0x4fa444,_0x1c73f1,_0x3b7d72,_0x12d313):_0x4b27ab['triggerLoadVersions'](_0x4fa444,_0x1c73f1,_0x3b7d72);};if(this[_0x122d4a(0x111)][_0x122d4a(0x1ad)]({'content':this[_0x122d4a(0x1c1)]['t'](_0x122d4a(0x18b)),'type':_0x4cba39['MessageType'][_0x122d4a(0x99)]}),_0x32584c)try{_0x3712ff[_0x122d4a(0x18e)](_0x93c578['IRemoteInstanceService'])[_0x122d4a(0x1b7)]()[_0x122d4a(0x1ac)](()=>{_0x3b6d80();});}catch{_0x3b6d80();}else _0x3b6d80();}[_0x306e06(0x1a9)](_0x20320d,_0x3ef87b){const _0x4a7da5=_0x306e06,_0x3b7db4=_0x20320d[_0x4a7da5(0x18e)](_0x23bed2[_0x4a7da5(0x182)]);this[_0x4a7da5(0xbe)][_0x4a7da5(0x1e7)](_0x3b7db4[_0x4a7da5(0x144)][_0x4a7da5(0xbd)](_0x1ecc94=>{const _0x3f5435=_0x4a7da5;switch(_0x1ecc94){case _0x23bed2[_0x3f5435(0x13a)][_0x3f5435(0x1c8)]:this[_0x3f5435(0x125)][_0x3f5435(0xe6)](),this[_0x3f5435(0x18c)][_0x3f5435(0x12e)]();break;case _0x23bed2[_0x3f5435(0x13a)][_0x3f5435(0xcc)]:this[_0x3f5435(0x1a2)]['executeCommand'](_0x14026b['id']),this[_0x3f5435(0xf3)]();break;case _0x23bed2[_0x3f5435(0x13a)][_0x3f5435(0x193)]:this[_0x3f5435(0xf3)](),this[_0x3f5435(0x111)]['show']({'content':this[_0x3f5435(0x1c1)]['t']('editHistory.panel.listFetchError'),'type':_0x4cba39[_0x3f5435(0x13e)][_0x3f5435(0x193)],'duration':0xbb8});break;}})),this[_0x4a7da5(0xbe)][_0x4a7da5(0x1e7)](_0x3b7db4['revertRevision$'][_0x4a7da5(0xbd)](async _0x421150=>{const _0x4f3ecd=_0x4a7da5;_0x421150&&this[_0x4f3ecd(0x1a2)]['executeCommand'](_0x373b71[_0x4f3ecd(0x1b9)]['id'],{'unitId':_0x3ef87b,'revision':_0x421150});}));}[_0x306e06(0x189)](_0x32a047){const _0x5d058a=_0x306e06,_0x81d29e=this[_0x5d058a(0x16a)][_0x5d058a(0x11a)](_0x32a047)[_0x5d058a(0x12a)]()['map'](_0x41cfd4=>_0x41cfd4['getSheetId']()),_0x2b054a=new _0x57ccac[(_0x5d058a(0xf0))](_0x32a047)['id'],_0x4834d1=_0x81d29e['map'](_0x59564d=>new _0x57ccac[(_0x5d058a(0xce))](_0x32a047,_0x59564d)['id']),_0x5d9316=_0x81d29e[_0x5d058a(0x119)](_0x2d7070=>this[_0x5d058a(0x171)][_0x5d058a(0xda)](_0x32a047,_0x2d7070)[_0x5d058a(0x119)](_0x36d916=>new _0x57ccac[(_0x5d058a(0x1e8))](_0x32a047,_0x2d7070,_0x36d916['permissionId'])['id']))[_0x5d058a(0x188)](),_0x4ba8c3=new _0x57ccac[(_0x5d058a(0x10f))](_0x32a047)['id'];return this[_0x5d058a(0x114)][_0x5d058a(0x1c4)]([_0x2b054a,..._0x4834d1,..._0x5d9316,_0x4ba8c3])[_0x5d058a(0x198)](_0x10df67=>!!_0x10df67[_0x5d058a(0xe4)]);}},_0x4b548d['HistoryLoaderService']=_0x1d45d1([_0x185226(0x0,_0x420e0b[_0x306e06(0xe0)](_0x420e0b[_0x306e06(0xe9)])),_0x185226(0x1,_0x420e0b[_0x306e06(0x103)]),_0x185226(0x2,_0x420e0b[_0x306e06(0x160)]),_0x185226(0x3,_0x420e0b['ICommandService']),_0x185226(0x4,_0x36e10f[_0x306e06(0x1ba)]),_0x185226(0x5,_0x420e0b[_0x306e06(0x19e)]),_0x185226(0x6,_0x420e0b['Inject'](_0x57ccac[_0x306e06(0x1ce)])),_0x185226(0x7,_0x420e0b[_0x306e06(0xe0)](_0x36e10f['IDialogService'])),_0x185226(0x8,_0x420e0b[_0x306e06(0xe0)](_0x36e10f['ISidebarService'])),_0x185226(0x9,_0x420e0b[_0x306e06(0xe0)](_0x420e0b[_0x306e06(0xc0)]))],_0x4b548d[_0x306e06(0x154)]);const _0x351c97={'id':'univer.operation.toggle-edit-history','type':_0x420e0b[_0x306e06(0x17f)][_0x306e06(0x1a3)],'handler':_0x544da0=>{const _0x1763a1=_0x306e06,_0x27b44=_0x544da0['get'](_0x4b548d[_0x1763a1(0x154)]),_0x3d97a5=_0x544da0['get'](_0x420e0b[_0x1763a1(0x103)]),{unitId:_0x5382ef}=_0x57ccac[_0x1763a1(0x18f)](_0x3d97a5)||{};return _0x5382ef?(_0x27b44['mountHistoryContent'](_0x5382ef),!0x0):!0x1;}},_0x14026b={'id':'univer.operation.exit-edit-history','type':_0x420e0b['CommandType']['OPERATION'],'handler':()=>!0x0},_0x4c65c9={'name':_0x306e06(0xd7),'version':_0x306e06(0x1da)};function _0x54636c({ref:_0xe83a0,..._0x17f739}){const _0x480bd7=_0x306e06,{icon:_0xeb4fe8,id:_0x598307,className:_0x21793a,extend:_0x2a2f56,..._0x514610}=_0x17f739,_0x530c85=('univerjs-icon\x20univerjs-icon-'+_0x598307+'\x20'+(_0x21793a||''))[_0x480bd7(0x1ab)](),_0x26f572=_0x34be3b[_0x480bd7(0x13d)]('_'+_0x1f552e());return _0x26f213(_0xeb4fe8,''+_0x598307,{'defIds':_0xeb4fe8[_0x480bd7(0xad)],'idSuffix':_0x26f572[_0x480bd7(0xac)]},{'ref':_0xe83a0,'className':_0x530c85,..._0x514610},_0x2a2f56);}function _0x26f213(_0x16a360,_0x960c42,_0x45088e,_0x2dc4cf,_0x5eaea6){const _0x2cb837=_0x306e06;return _0x34be3b[_0x2cb837(0x1c6)](_0x16a360[_0x2cb837(0xc4)],{'key':_0x960c42,..._0x4fdf8b(_0x16a360,_0x45088e,_0x5eaea6),..._0x2dc4cf},(_0x19bfbb(_0x16a360,_0x45088e)['children']||[])[_0x2cb837(0x119)]((_0x35c08d,_0x559541)=>_0x26f213(_0x35c08d,_0x960c42+'-'+_0x16a360[_0x2cb837(0xc4)]+'-'+_0x559541,_0x45088e,void 0x0,_0x5eaea6)));}function _0x4fdf8b(_0x584213,_0x3bad7a,_0x3bb825){const _0x1168db=_0x306e06,_0x306d18={..._0x584213[_0x1168db(0x10a)]};_0x3bb825!=null&&_0x3bb825[_0x1168db(0x195)]&&_0x306d18[_0x1168db(0x135)]===_0x1168db(0x195)&&(_0x306d18[_0x1168db(0x135)]=_0x3bb825['colorChannel1']),_0x584213[_0x1168db(0xc4)]==='mask'&&_0x306d18['id']&&(_0x306d18['id']=_0x306d18['id']+_0x3bad7a[_0x1168db(0xea)]),Object['entries'](_0x306d18)[_0x1168db(0x9a)](([_0x803387,_0xc6e1e])=>{const _0x3fcfc6=_0x1168db;_0x803387==='mask'&&typeof _0xc6e1e==_0x3fcfc6(0x11f)&&(_0x306d18[_0x803387]=_0xc6e1e[_0x3fcfc6(0x105)](/url\(#(.*)\)/,_0x3fcfc6(0x19d)+_0x3bad7a[_0x3fcfc6(0xea)]+')'));});const {defIds:_0x4f192c}=_0x3bad7a;return!_0x4f192c||_0x4f192c['length']===0x0||(_0x584213[_0x1168db(0xc4)]===_0x1168db(0x1ea)&&_0x306d18[_0x1168db(0x1d5)]&&(_0x306d18['xlink:href']=_0x306d18[_0x1168db(0x1d5)]+_0x3bad7a[_0x1168db(0xea)]),Object[_0x1168db(0x175)](_0x306d18)[_0x1168db(0x9a)](([_0x2626c7,_0x2f1162])=>{const _0xa8ecd8=_0x1168db;typeof _0x2f1162==_0xa8ecd8(0x11f)&&(_0x306d18[_0x2626c7]=_0x2f1162[_0xa8ecd8(0x105)](/url\(#(.*)\)/,'url(#$1'+_0x3bad7a[_0xa8ecd8(0xea)]+')'));})),_0x306d18;}function _0x19bfbb(_0x324fc7,_0x2f46c0){const _0x5c9a4a=_0x306e06;var _0xc3e812;const {defIds:_0x1e003d}=_0x2f46c0;return!_0x1e003d||_0x1e003d[_0x5c9a4a(0xf9)]===0x0?_0x324fc7:_0x324fc7[_0x5c9a4a(0xc4)]===_0x5c9a4a(0xc3)&&((_0xc3e812=_0x324fc7[_0x5c9a4a(0x1e4)])!=null&&_0xc3e812['length'])?{..._0x324fc7,'children':_0x324fc7[_0x5c9a4a(0x1e4)][_0x5c9a4a(0x119)](_0x3128f3=>typeof _0x3128f3[_0x5c9a4a(0x10a)]['id']=='string'&&_0x1e003d&&_0x1e003d[_0x5c9a4a(0x14c)](_0x3128f3[_0x5c9a4a(0x10a)]['id'])?{..._0x3128f3,'attrs':{..._0x3128f3[_0x5c9a4a(0x10a)],'id':_0x3128f3['attrs']['id']+_0x2f46c0[_0x5c9a4a(0xea)]}}:_0x3128f3)}:_0x324fc7;}function _0x1f552e(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x54636c['displayName']=_0x306e06(0x150);const _0x2ee805={'tag':_0x306e06(0xb2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x306e06(0x170),'viewBox':_0x306e06(0xdb),'width':_0x306e06(0x120),'height':_0x306e06(0x120)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x306e06(0xb8)},'children':[{'tag':_0x306e06(0x133),'attrs':{'d':_0x306e06(0x106)}},{'tag':_0x306e06(0x133),'attrs':{'d':_0x306e06(0x15d)}}]},{'tag':_0x306e06(0xc3),'attrs':{},'children':[{'tag':_0x306e06(0x13f),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x306e06(0x133),'attrs':{'fill':_0x306e06(0x13c),'d':_0x306e06(0x123)}}]}]}],'defIds':[_0x306e06(0x15a)]},_0x4f915b=_0x34be3b[_0x306e06(0x1c9)](function(_0x45fc06,_0x339a89){const _0xc0af53=_0x306e06;return _0x34be3b['createElement'](_0x54636c,Object[_0xc0af53(0xb5)]({},_0x45fc06,{'id':_0xc0af53(0x109),'ref':_0x339a89,'icon':_0x2ee805}));});_0x4f915b[_0x306e06(0x1d6)]='HistoryIcon';var _0x35b62a=(_0x5eec90=>(_0x5eec90[_0x5eec90[_0x306e06(0x1d4)]=0x0]=_0x306e06(0x1d4),_0x5eec90[_0x5eec90['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x5eec90[_0x5eec90[_0x306e06(0xc8)]=0x2]=_0x306e06(0xc8),_0x5eec90[_0x5eec90[_0x306e06(0xcb)]=0x3]=_0x306e06(0xcb),_0x5eec90[_0x5eec90[_0x306e06(0x16e)]=0x4]='UNIVER_PROJECT',_0x5eec90[_0x5eec90[_0x306e06(0x115)]=-0x1]=_0x306e06(0x115),_0x5eec90))(_0x35b62a||{});function _0x4f1569(_0x4dcf1f){const _0x56590a=_0x306e06;return{'id':_0x351c97['id'],'type':_0x36e10f[_0x56590a(0x153)][_0x56590a(0x17e)],'icon':'HistoryIcon','tooltip':'editHistory.panel.title','hidden$':_0x36e10f[_0x56590a(0x1e9)](_0x4dcf1f,_0x420e0b['UniverInstanceType'][_0x56590a(0xc8)]),'disabled$':_0x51277a[_0x56590a(0x1cb)](_0x4dcf1f,{'workbookTypes':[_0x57ccac[_0x56590a(0xf0)],_0x57ccac[_0x56590a(0x11c)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x3c80e4={[_0x36e10f[_0x306e06(0xe8)][_0x306e06(0xa9)]]:{[_0x351c97['id']]:{'order':0.2,'menuItemFactory':_0x4f1569}}};var _0x1ee3af=Object[_0x306e06(0xa6)],_0x22ea45=(_0x3b1b67,_0x41ee19,_0x2bcbda,_0x53a4cd)=>{const _0x51b0d7=_0x306e06;for(var _0x319903=_0x53a4cd>0x1?void 0x0:_0x53a4cd?_0x1ee3af(_0x41ee19,_0x2bcbda):_0x41ee19,_0x57d452=_0x3b1b67[_0x51b0d7(0xf9)]-0x1,_0x5d3b26;_0x57d452>=0x0;_0x57d452--)(_0x5d3b26=_0x3b1b67[_0x57d452])&&(_0x319903=_0x5d3b26(_0x319903)||_0x319903);return _0x319903;},_0x2a95e0=(_0x44d55f,_0xe6a017)=>(_0x1223e6,_0x5a9b5b)=>_0xe6a017(_0x1223e6,_0x5a9b5b,_0x44d55f);let _0x347682=class extends _0x420e0b[_0x306e06(0x152)]{constructor(_0x2523fd,_0x5727a6,_0x1aabca,_0x32bddf,_0x4617e1,_0x1a8713,_0x3aea8a,_0x1844be,_0x59504f,_0x203fe9,_0x132260){const _0xf124b5=_0x306e06;super(),_0x2d4563(this,_0xf124b5(0xa5),null),(this[_0xf124b5(0x1a2)]=_0x2523fd,this['_menuManagerService']=_0x5727a6,this['_componentManager']=_0x1aabca,this[_0xf124b5(0xa3)]=_0x32bddf,this[_0xf124b5(0x1c1)]=_0x4617e1,this[_0xf124b5(0x111)]=_0x1a8713,this[_0xf124b5(0x177)]=_0x3aea8a,this[_0xf124b5(0x1c2)]=_0x1844be,this[_0xf124b5(0xfa)]=_0x59504f,this[_0xf124b5(0x16a)]=_0x203fe9,this[_0xf124b5(0x138)]=_0x132260,this[_0xf124b5(0xdc)]());}['_init'](){const _0x35cecb=_0x306e06;[_0x351c97,_0x14026b][_0x35cecb(0x9a)](_0x222da9=>this['disposeWithMe'](_0x420e0b[_0x35cecb(0x1c3)](this['_commandService'][_0x35cecb(0x1c7)](_0x222da9)))),this['disposeWithMe'](this[_0x35cecb(0xde)]['register'](_0x35cecb(0x176),_0x4f915b)),this['_menuManagerService'][_0x35cecb(0x155)](_0x3c80e4),this[_0x35cecb(0x132)](this[_0x35cecb(0x1a2)]['onCommandExecuted'](async(_0x1a5217,_0x188f32)=>{const _0x23e988=_0x35cecb;if(_0x1a5217['id']===_0x373b71[_0x23e988(0x1b9)]['id']){const {unitId:_0x26000b}=_0x1a5217[_0x23e988(0x190)];this[_0x23e988(0x111)][_0x23e988(0x1ad)]({'content':this[_0x23e988(0x1c1)]['t'](_0x23e988(0x16d)),'type':_0x4cba39[_0x23e988(0x13e)][_0x23e988(0x99)],'duration':0x1388});const _0x2cf072=this[_0x23e988(0x177)]['getCollabEntity'](_0x26000b);(_0x188f32==null?void 0x0:_0x188f32['fromCollab'])?this[_0x23e988(0xd0)](_0x2cf072,async()=>(setTimeout(()=>window[_0x23e988(0x136)]['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x2cf072,async()=>{const _0x121c17=_0x23e988,_0xa0e650=this[_0x121c17(0x16a)][_0x121c17(0xb4)](_0x35b62a['UNIVER_SHEET']),_0x361e6f=_0xa0e650==null?void 0x0:_0xa0e650['getActiveSheet']();if(!_0x361e6f)return!0x1;this[_0x121c17(0x16a)]['disposeUnit'](_0x26000b);const _0x28c19c=await this['_dataLoaderService'][_0x121c17(0x9e)](_0x26000b,_0x35b62a[_0x121c17(0xc8)]);return _0x28c19c&&_0x28c19c instanceof _0x420e0b[_0x121c17(0x1ca)]?(await this[_0x121c17(0xe7)](_0x28c19c,_0x361e6f[_0x121c17(0xa7)]()),!0x0):!0x1;});}}));}[_0x306e06(0xd0)](_0x259837,_0x5b7538,_0x52a054=!0x1){const _0x3f118f=_0x306e06,_0x56295e=_0x287a0d[_0x3f118f(0x148)]([_0x259837[_0x3f118f(0x127)][_0x3f118f(0x1ec)],_0x259837['state$']])['subscribe'](async([_0xbaaeff,_0x184f64])=>{const _0x4e2ad5=_0x3f118f;var _0x37d603;_0xbaaeff[_0x4e2ad5(0x159)]===_0x373b71['CollaborationEvent'][_0x4e2ad5(0x11d)]&&(_0x184f64==null?void 0x0:_0x184f64[_0x4e2ad5(0xee)])===_0xfabf9a[_0x4e2ad5(0x1b6)]['SYNCED']&&_0xbaaeff[_0x4e2ad5(0xf6)]['mutations'][_0x4e2ad5(0xf2)](_0x3342be=>_0x3342be['id']===_0x373b71['RevertRevisionMutation']['id'])&&await _0x5b7538()&&(this[_0x4e2ad5(0xa3)]['unMountHistoryContent'](),_0x56295e[_0x4e2ad5(0x18a)](),this[_0x4e2ad5(0xa5)]&&clearTimeout(this['_revertErrorTimer']),await((_0x37d603=this[_0x4e2ad5(0x1c2)])==null?void 0x0:_0x37d603[_0x4e2ad5(0x17c)]()));});_0x52a054&&(this[_0x3f118f(0xa5)]=setTimeout(()=>{const _0x5866df=_0x3f118f;_0x56295e[_0x5866df(0x18a)](),this[_0x5866df(0x111)][_0x5866df(0x1ad)]({'content':this[_0x5866df(0x1c1)]['t'](_0x5866df(0x16b)),'type':_0x4cba39[_0x5866df(0x13e)][_0x5866df(0x193)],'duration':0xbb8});},0x1388));}async[_0x306e06(0xe7)](_0x7c2c2c,_0x2d862c){const _0x361c1e=_0x306e06;await this[_0x361c1e(0x1d0)](_0x7c2c2c,_0x2d862c),_0x7c2c2c[_0x361c1e(0x1c0)][_0x361c1e(0x156)](_0x287a0d['takeUntil'](this[_0x361c1e(0x1a8)]))['subscribe'](_0x1900e7=>{const _0x58c762=_0x361c1e;_0x1900e7&&this[_0x58c762(0xeb)](_0x1900e7);}),this['_urlService']['urlChange$'][_0x361c1e(0x156)](_0x287a0d[_0x361c1e(0x1a7)](this[_0x361c1e(0x1a8)]))[_0x361c1e(0xbd)](()=>this[_0x361c1e(0x1d0)](_0x7c2c2c,_0x2d862c));}[_0x306e06(0xeb)](_0x176f01,_0xeb354b=!0x1){const _0x49b4f9=_0x306e06,_0x319456=this[_0x49b4f9(0x138)][_0x49b4f9(0x1b4)](_0x49b4f9(0x1db));_0x176f01[_0x49b4f9(0xa7)]()!==_0x319456&&this['_urlService'][_0x49b4f9(0x1eb)](_0x49b4f9(0x1db),_0x176f01[_0x49b4f9(0xa7)](),_0xeb354b);}async['_updateSubUnitFromURLParams'](_0x1ccaae,_0x273c2c){const _0x556f65=_0x306e06;var _0x248717;if(!_0x273c2c||!_0x1ccaae['getSheetBySheetId'](_0x273c2c)){const _0x385d9e=_0x1ccaae[_0x556f65(0x15e)]()[0x0],_0x5a9fa5=_0x1ccaae[_0x556f65(0x10d)](_0x385d9e);if(!_0x5a9fa5)return;this[_0x556f65(0xeb)](_0x5a9fa5,!0x0),await this[_0x556f65(0x1a2)][_0x556f65(0x104)](_0x57ccac['SetWorksheetActivateCommand']['id'],{'unitId':_0x1ccaae['getUnitId'](),'subUnitId':_0x385d9e});return;}((_0x248717=_0x1ccaae[_0x556f65(0xa1)]())==null?void 0x0:_0x248717['getSheetId']())!==_0x273c2c&&await this['_commandService'][_0x556f65(0x104)](_0x57ccac['SetWorksheetActivateCommand']['id'],{'unitId':_0x1ccaae['getUnitId'](),'subUnitId':_0x273c2c});}};_0x347682=_0x22ea45([_0x2a95e0(0x0,_0x420e0b['ICommandService']),_0x2a95e0(0x1,_0x36e10f[_0x306e06(0x1b8)]),_0x2a95e0(0x2,_0x420e0b[_0x306e06(0xe0)](_0x36e10f['ComponentManager'])),_0x2a95e0(0x3,_0x420e0b[_0x306e06(0xe0)](_0x4b548d[_0x306e06(0x154)])),_0x2a95e0(0x4,_0x420e0b['Inject'](_0x420e0b['LocaleService'])),_0x2a95e0(0x5,_0x36e10f[_0x306e06(0x1ba)]),_0x2a95e0(0x6,_0x420e0b[_0x306e06(0xe0)](_0xfabf9a[_0x306e06(0x19f)])),_0x2a95e0(0x7,_0xfabf9a[_0x306e06(0x19a)]),_0x2a95e0(0x8,_0x420e0b[_0x306e06(0xe0)](_0xfabf9a[_0x306e06(0xf5)])),_0x2a95e0(0x9,_0x420e0b[_0x306e06(0x103)]),_0x2a95e0(0xa,_0x22a96b['IURLService'])],_0x347682);var _0x1a96ce=Object[_0x306e06(0x1df)],_0x2729e2=Object[_0x306e06(0xa6)],_0x1317aa=(_0x558b11,_0x52224d,_0x3ae367)=>_0x52224d in _0x558b11?_0x1a96ce(_0x558b11,_0x52224d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ae367}):_0x558b11[_0x52224d]=_0x3ae367,_0x42e893=(_0x1bdce3,_0x489027,_0x224907,_0x2365da)=>{const _0x68eaf4=_0x306e06;for(var _0x376ab5=_0x2365da>0x1?void 0x0:_0x2365da?_0x2729e2(_0x489027,_0x224907):_0x489027,_0x5b0468=_0x1bdce3[_0x68eaf4(0xf9)]-0x1,_0x49c47a;_0x5b0468>=0x0;_0x5b0468--)(_0x49c47a=_0x1bdce3[_0x5b0468])&&(_0x376ab5=_0x49c47a(_0x376ab5)||_0x376ab5);return _0x376ab5;},_0x3b6fd8=(_0x2d8978,_0x372562)=>(_0x22678c,_0x3c0df8)=>_0x372562(_0x22678c,_0x3c0df8,_0x2d8978),_0x3da276=(_0x3087bf,_0x19637a,_0x808961)=>_0x1317aa(_0x3087bf,typeof _0x19637a!=_0x306e06(0x1a0)?_0x19637a+'':_0x19637a,_0x808961);_0x4b548d[_0x306e06(0x1d3)]=class extends _0x420e0b['Plugin']{constructor(_0x168102=_0x5d7af5,_0x555d6f,_0x551f7c){const _0x1c5983=_0x306e06;super(),this[_0x1c5983(0x1a6)]=_0x168102,this[_0x1c5983(0x173)]=_0x555d6f,this[_0x1c5983(0x1a5)]=_0x551f7c;const {menu:_0xdccec4,..._0x167c90}=_0x420e0b[_0x1c5983(0x178)]({},_0x5d7af5,this[_0x1c5983(0x1a6)]);_0xdccec4&&this[_0x1c5983(0x1a5)][_0x1c5983(0x139)](_0x1c5983(0xab),_0xdccec4,{'merge':!0x0}),this[_0x1c5983(0x1a5)][_0x1c5983(0x139)](_0xacb774,_0x167c90),this['_config'][_0x1c5983(0x184)]&&this[_0x1c5983(0x1a5)]['setConfig'](_0x3a1430,this[_0x1c5983(0x1a6)][_0x1c5983(0x184)]);}['onStarting'](){const _0x4ba773=_0x306e06;[[_0x4b548d[_0x4ba773(0x154)]],[_0x347682]][_0x4ba773(0x9a)](_0x8292e6=>this['_injector'][_0x4ba773(0x1e7)](_0x8292e6));}[_0x306e06(0xfd)](){const _0x8d2c1c=_0x306e06;this[_0x8d2c1c(0x173)][_0x8d2c1c(0x18e)](_0x347682);}},_0x3da276(_0x4b548d['UniverEditHistoryLoaderPlugin'],_0x306e06(0x102),_0x420e0b[_0x306e06(0x185)]['UNIVER_UNKNOWN']),_0x3da276(_0x4b548d[_0x306e06(0x1d3)],_0x306e06(0x112),'UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_0x3da276(_0x4b548d['UniverEditHistoryLoaderPlugin'],'packageName',_0x4c65c9['name']),_0x3da276(_0x4b548d[_0x306e06(0x1d3)],_0x306e06(0xc7),_0x4c65c9[_0x306e06(0xc7)]),_0x4b548d[_0x306e06(0x1d3)]=_0x42e893([_0x420e0b[_0x306e06(0x18d)](_0x157100[_0x306e06(0xcf)]),_0x3b6fd8(0x1,_0x420e0b[_0x306e06(0xe0)](_0x420e0b[_0x306e06(0x187)])),_0x3b6fd8(0x2,_0x420e0b[_0x306e06(0x160)])],_0x4b548d[_0x306e06(0x1d3)]),_0x4b548d[_0x306e06(0xb3)]=_0xacb774,_0x4b548d[_0x306e06(0xf8)]=_0x351c97,_0x4b548d[_0x306e06(0x100)]=_0x3a1430,_0x4b548d['UNIVER_HISTORY_CONTAINER_ID']=_0x2c0412,Object[_0x306e06(0x1df)](_0x4b548d,Symbol['toStringTag'],{'value':_0x306e06(0x1bd)});}));function _0x1b70(){const _0x40a07b=['6438635nbMICf','UniverSheetsDataValidationUi','@univerjs/design','@univerjs-pro/edit-history-loader','UniverSheetsFilterUIPlugin','getAllPlugins','getSubunitRuleList','0\x200\x2016\x2016','_init','IAuthzIoService','_componentManager','appendChild','Inject','UniverSheetsHyperLinkPlugin','_internalWebWorker','UniverSheetsDrawingPlugin','value','UniverProSheetsSparklineUi','closeAll','_setupSubUnitSync','RibbonStartGroup','LocaleService','idSuffix','_updateURLWithCurrentState','has','@univerjs-pro/license','status','set','WorkbookEditablePermission','UniverSheetsConditionalFormatting','some','unMountHistoryContent','@univerjs-pro/edit-history-viewer','DataLoaderService','data','asObservable','ToggleEditHistoryOperation','length','_dataLoaderService','UniverEngineRender','100%','onSteady','BehaviorSubject','getLocales','UNIVER_CONTAINER_ID_KEY','@univerjs/sheets-drawing-ui','type','IUniverInstanceService','executeCommand','replace','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','UniverSheetsDataValidationUIPlugin','from','history-icon','attrs','next','function','getSheetBySheetId','block','WorkbookRecoverHistoryPermission','setDarkMode','_messageService','pluginName','top','_permissionService','UNRECOGNIZED','24WXusbv','@univerjs/sheets-data-validation','setTheme','map','getUnit','UniverProCollaborationClientUi','WorkbookViewHistoryPermission','CHANGESET_ACK','position','string','1em','@univerjs/data-validation','@univerjs/sheets-data-validation-ui','M0\x200H16V16H0z','@univerjs-pro/sheets-chart-ui','_dialogService','UniverProCollaboration','session','style','UniverSheetsFormulaUIPlugin','getSheets','@univerjs-pro/collaboration','UniverSheetsShapePlugin','UniverDrawingPlugin','close','114ymBZyP','triggerCustomVersions','UniverCollaborationPlugin','disposeWithMe','path','UniverSheetsUIPlugin','fill','location','UniverDrawing','_urlService','setConfig','HistoryModeStatus','@univerjs/sheets-hyper-link','white','useRef','MessageType','clipPath','UniverSheetsTablePlugin','getElementById','@univerjs-pro/sheets-sparkline','history-container','status$','amd','UniverSheetsConditionalFormattingUi','UniverDocs','combineLatest','\x20has\x20been\x20registered.','_themeService','@univerjs/engine-render','includes','UniverSheetSparklineUIPlugin','UniverProSheetsChartUi','exports','UniverIcon','@univerjs/ui','RxDisposable','MenuItemType','HistoryLoaderService','mergeMenu','pipe','clear','@univerjs-pro/collaboration-client','eventID','history-icon_clip0_907_281','UniverDesign','LS_CONFIG_KEY','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','getUnhiddenWorksheets','currentTheme$','IConfigService','_initContainer','UniverSheetsFilterUi','darkMode$','UniverSheetsPivotTablePlugin','UniverSheetsShapeUIPlugin','UniverSheetsHyperLinkUi','@univerjs/network','UniverSheetsDataValidation','UniverUi','_univerInstanceService','editHistory.panel.revertFailed','@univerjs/sheets-table','editHistory.panel.reverting','UNIVER_PROJECT','terminate','none','_selectionProtectionRuleModel','@univerjs-pro/sheets-shape-ui','_injector','React','entries','HistoryIcon','_collaborationController','merge','DisposableCollection','absolute','zIndex','exhaustSavingTask','univer-history-container','BUTTON','CommandType','@univerjs/docs','_pluginMap','HistoryManagerService','_initUniver','univerContainerId','UniverInstanceType','registerPlugin','Injector','flat','_checkCanRevert','unsubscribe','editHistory.info.initializing','_sidebarService','DependentOn','get','getSheetCommandTarget','params','UNIVER_CONTAINER_ID','@univerjs/drawing-ui','Error','@univerjs-pro/collaboration-client-ui','colorChannel1','UniverSheetsFormulaPlugin','UniverSheetsPlugin','every','_initPlugins','ILocalCacheService','UniverRpc','UniverSheetSparklinePlugin','url(#$1','IPermissionService','CollaborationController','symbol','Univer','_commandService','OPERATION','UniverProSheetsSparkline','_configService','_config','takeUntil','dispose$','_initListener','UniverProEditHistoryLoader','trim','then','show','react','UniverSheetsHyperLink','edit-history-loader.config','@univerjs/sheets-numfmt','@univerjs-pro/sheets-chart','1763Lsggre','getParam','1071736AsknSR','CollaborationStatus','whenReady','IMenuManagerService','RevertRevisionMutation','IMessageService','display','workerURL','Module','UniverProEditHistoryViewer','mountHistoryContent','activeSheet$','_localeService','_localCacheService','toDisposable','composePermission','historyUniver','createElement','registerCommand','Entered','forwardRef','Workbook','getCurrentRangeDisable$','UniverSheetsConditionalFormattingPlugin','setLocale','RangeProtectionRuleModel','11xZmVQj','_updateSubUnitFromURLParams','UniverSheetsNumfmt','@univerjs/drawing','UniverEditHistoryLoaderPlugin','UNIVER_UNKNOWN','xlink:href','displayName','UniverSheetsChartUIPlugin','[HistoryLoaderService]:\x20Plugin\x20','@univerjs-pro/sheets-sparkline-ui','0.17.0','subunit','UniverSheetsNumfmtPlugin','UniverSheetsFilter','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','defineProperty','UniverDocsPlugin','2001078vtpvWc','838DgzKSr','UniverSheetsFilterPlugin','children','UniverProLicense','UniverCore','add','RangeProtectionPermissionEditPoint','getMenuHiddenObservable','use','setParam','event$','Loading','forEach','@univerjs/sheets-drawing','36671448nExAaU','UniverDataValidation','loadUnit','IImageIoService','UniverSheetsDrawing','getActiveSheet','@univerjs/sheets-filter-ui','_historyManagerService','UniverEngineFormula','_revertErrorTimer','getOwnPropertyDescriptor','getSheetId','dispose','OTHERS','historyPanelHidden','menu','current','defIds','@univerjs/sheets-conditional-formatting','width','UniverRenderEnginePlugin','UniverSheetsHyperLinkUIPlugin','svg','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','getCurrentUnitOfType','assign','UniverSheetsDrawingUIPlugin','UniverFormulaEnginePlugin','url(#history-icon_clip0_907_281)','10252700BhclDe','getConfig','historyUniver$','@univerjs/sheets-filter','subscribe','_disposableCollection','_historyUniver$','ThemeService','@univerjs-pro/sheets-pivot','@univerjs/sheets-conditional-formatting-ui','defs','tag','UniverProSheetsShapeUi','values','version','UNIVER_SHEET','getCurrentLocale','19376gwbCDg','UNIVER_SLIDE','Exited','UniverSheets','WorksheetEditPermission','UniverLicensePlugin','_handleRevertAcknowledgement','Disposable','rxjs','18lwzkJJ'];_0x1b70=function(){return _0x40a07b;};return _0x1b70();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,47 +47,47 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^1.1.1",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/edit-history-viewer": "0.
|
|
54
|
-
"@univerjs-pro/sheets-chart": "0.
|
|
55
|
-
"@univerjs-pro/sheets-chart
|
|
56
|
-
"@univerjs-pro/
|
|
57
|
-
"@univerjs-pro/sheets-
|
|
58
|
-
"@univerjs-pro/sheets-
|
|
59
|
-
"@univerjs-pro/
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/docs-ui": "0.
|
|
67
|
-
"@univerjs/drawing-ui": "0.
|
|
68
|
-
"@univerjs/drawing": "0.
|
|
69
|
-
"@univerjs/engine-formula": "0.
|
|
70
|
-
"@univerjs/network": "0.16.1",
|
|
71
|
-
"@univerjs/engine-render": "0.16.1",
|
|
72
|
-
"@univerjs/rpc": "0.16.1",
|
|
73
|
-
"@univerjs/sheets-conditional-formatting": "0.16.1",
|
|
74
|
-
"@univerjs/sheets-conditional-formatting-ui": "0.16.1",
|
|
75
|
-
"@univerjs/sheets-data-validation-ui": "0.16.1",
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.17.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client-ui": "0.17.0",
|
|
52
|
+
"@univerjs-pro/license": "0.17.0",
|
|
53
|
+
"@univerjs-pro/edit-history-viewer": "0.17.0",
|
|
54
|
+
"@univerjs-pro/sheets-chart-ui": "0.17.0",
|
|
55
|
+
"@univerjs-pro/sheets-chart": "0.17.0",
|
|
56
|
+
"@univerjs-pro/sheets-shape": "0.17.0",
|
|
57
|
+
"@univerjs-pro/sheets-shape-ui": "0.17.0",
|
|
58
|
+
"@univerjs-pro/sheets-pivot": "0.17.0",
|
|
59
|
+
"@univerjs-pro/collaboration": "0.17.0",
|
|
60
|
+
"@univerjs-pro/sheets-sparkline": "0.17.0",
|
|
61
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.17.0",
|
|
62
|
+
"@univerjs/core": "0.17.0",
|
|
63
|
+
"@univerjs/data-validation": "0.17.0",
|
|
64
|
+
"@univerjs/design": "0.17.0",
|
|
65
|
+
"@univerjs/docs": "0.17.0",
|
|
66
|
+
"@univerjs/docs-ui": "0.17.0",
|
|
67
|
+
"@univerjs/drawing-ui": "0.17.0",
|
|
68
|
+
"@univerjs/drawing": "0.17.0",
|
|
69
|
+
"@univerjs/engine-formula": "0.17.0",
|
|
76
70
|
"@univerjs/protocol": "0.1.48",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs/
|
|
79
|
-
"@univerjs/
|
|
80
|
-
"@univerjs/sheets
|
|
81
|
-
"@univerjs/sheets-
|
|
82
|
-
"@univerjs/sheets-
|
|
83
|
-
"@univerjs/sheets-
|
|
84
|
-
"@univerjs/sheets-
|
|
85
|
-
"@univerjs/sheets-
|
|
86
|
-
"@univerjs/sheets-
|
|
87
|
-
"@univerjs/sheets-
|
|
88
|
-
"@univerjs/sheets-ui": "0.
|
|
89
|
-
"@univerjs/
|
|
90
|
-
"@univerjs/sheets-formula-ui": "0.
|
|
71
|
+
"@univerjs/network": "0.17.0",
|
|
72
|
+
"@univerjs/engine-render": "0.17.0",
|
|
73
|
+
"@univerjs/rpc": "0.17.0",
|
|
74
|
+
"@univerjs/sheets": "0.17.0",
|
|
75
|
+
"@univerjs/sheets-conditional-formatting": "0.17.0",
|
|
76
|
+
"@univerjs/sheets-data-validation": "0.17.0",
|
|
77
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.17.0",
|
|
78
|
+
"@univerjs/sheets-data-validation-ui": "0.17.0",
|
|
79
|
+
"@univerjs/sheets-drawing": "0.17.0",
|
|
80
|
+
"@univerjs/sheets-drawing-ui": "0.17.0",
|
|
81
|
+
"@univerjs/sheets-filter": "0.17.0",
|
|
82
|
+
"@univerjs/sheets-filter-ui": "0.17.0",
|
|
83
|
+
"@univerjs/sheets-formula": "0.17.0",
|
|
84
|
+
"@univerjs/sheets-formula-ui": "0.17.0",
|
|
85
|
+
"@univerjs/sheets-hyper-link": "0.17.0",
|
|
86
|
+
"@univerjs/sheets-numfmt": "0.17.0",
|
|
87
|
+
"@univerjs/sheets-table": "0.17.0",
|
|
88
|
+
"@univerjs/sheets-ui": "0.17.0",
|
|
89
|
+
"@univerjs/sheets-hyper-link-ui": "0.17.0",
|
|
90
|
+
"@univerjs/ui": "0.17.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"react": "18.3.1",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"typescript": "^5.9.3",
|
|
96
96
|
"vite": "^7.3.1",
|
|
97
97
|
"vitest": "^4.0.18",
|
|
98
|
-
"@univerjs-infra/shared": "0.
|
|
98
|
+
"@univerjs-infra/shared": "0.17.0"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"test": "vitest run",
|