@univerjs-pro/edit-history-loader 0.12.2 → 0.12.3-experimental.20251205-e439e48

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x33927d=_0x3953;(function(_0x4e7873,_0x2bd78e){const _0x4d6270=_0x3953,_0x9a6f7e=_0x4e7873();while(!![]){try{const _0x8988da=-parseInt(_0x4d6270(0x244))/0x1+-parseInt(_0x4d6270(0x1d9))/0x2+-parseInt(_0x4d6270(0x1ee))/0x3+parseInt(_0x4d6270(0x1d7))/0x4*(parseInt(_0x4d6270(0x1de))/0x5)+parseInt(_0x4d6270(0x1e9))/0x6+parseInt(_0x4d6270(0x1b1))/0x7*(parseInt(_0x4d6270(0x187))/0x8)+-parseInt(_0x4d6270(0x236))/0x9;if(_0x8988da===_0x2bd78e)break;else _0x9a6f7e['push'](_0x9a6f7e['shift']());}catch(_0x2872e7){_0x9a6f7e['push'](_0x9a6f7e['shift']());}}}(_0x21a5,0xbcbee));var j=Object[_0x33927d(0x1f2)],F=(_0x77f18d,_0x372bd3,_0x269eb6)=>_0x372bd3 in _0x77f18d?j(_0x77f18d,_0x372bd3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x269eb6}):_0x77f18d[_0x372bd3]=_0x269eb6,_=(_0x4639c1,_0x2a3458,_0x535ca4)=>F(_0x4639c1,typeof _0x2a3458!=_0x33927d(0x19e)?_0x2a3458+'':_0x2a3458,_0x535ca4);Object[_0x33927d(0x1f2)](exports,Symbol[_0x33927d(0x1dd)],{'value':_0x33927d(0x186)});const o=require('@univerjs/core'),I=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),b=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),T=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),H=require('@univerjs-pro/license'),x=require('@univerjs-pro/sheets-pivot'),A=require('@univerjs-pro/sheets-sparkline'),V=require('@univerjs-pro/sheets-sparkline-ui'),G=require('@univerjs/data-validation'),W=require('@univerjs/docs'),Y=require('@univerjs/docs-ui'),L=require('@univerjs/drawing'),B=require('@univerjs/drawing-ui'),K=require('@univerjs/engine-formula'),z=require('@univerjs/engine-render'),Z=require('@univerjs/network'),J=require('@univerjs/rpc'),Q=require('@univerjs/sheets-conditional-formatting'),X=require('@univerjs/sheets-conditional-formatting-ui'),ee=require('@univerjs/sheets-data-validation'),ie=require('@univerjs/sheets-data-validation-ui'),te=require('@univerjs/sheets-drawing'),re=require('@univerjs/sheets-drawing-ui'),ne=require('@univerjs/sheets-filter'),se=require('@univerjs/sheets-filter-ui'),oe=require('@univerjs/sheets-formula'),ae=require('@univerjs/sheets-formula-ui'),ce=require('@univerjs/sheets-hyper-link'),le=require('@univerjs/sheets-hyper-link-ui'),ue=require('@univerjs/sheets-numfmt'),w=require('@univerjs/sheets-ui'),O=_0x33927d(0x240),R={};function k({ref:_0x44e01c,..._0x309f1f}){const _0x3e6a14=_0x33927d,{icon:_0x27c23d,id:_0x119b5c,className:_0x52033f,extend:_0x114795,..._0x326517}=_0x309f1f,_0x5da3c8=(_0x3e6a14(0x1f3)+_0x119b5c+'\x20'+(_0x52033f||''))[_0x3e6a14(0x1d1)](),_0x5d9820=U['useRef']('_'+ve());return D(_0x27c23d,''+_0x119b5c,{'defIds':_0x27c23d[_0x3e6a14(0x1e6)],'idSuffix':_0x5d9820['current']},{'ref':_0x44e01c,'className':_0x5da3c8,..._0x326517},_0x114795);}function D(_0x262802,_0x45a109,_0x13c669,_0x3f04e5,_0x19f3c4){const _0x6ac60c=_0x33927d;return U[_0x6ac60c(0x203)](_0x262802[_0x6ac60c(0x1b5)],{'key':_0x45a109,...he(_0x262802,_0x13c669,_0x19f3c4),..._0x3f04e5},(ge(_0x262802,_0x13c669)[_0x6ac60c(0x1f4)]||[])[_0x6ac60c(0x196)]((_0x2ea6c0,_0x15bc79)=>D(_0x2ea6c0,_0x45a109+'-'+_0x262802[_0x6ac60c(0x1b5)]+'-'+_0x15bc79,_0x13c669,void 0x0,_0x19f3c4)));}function he(_0x299656,_0x83ab74,_0x12f0c6){const _0x1161f8=_0x33927d,_0x3f6133={..._0x299656[_0x1161f8(0x194)]};_0x12f0c6!=null&&_0x12f0c6['colorChannel1']&&_0x3f6133['fill']==='colorChannel1'&&(_0x3f6133[_0x1161f8(0x228)]=_0x12f0c6[_0x1161f8(0x215)]),_0x299656[_0x1161f8(0x1b5)]==='mask'&&_0x3f6133['id']&&(_0x3f6133['id']=_0x3f6133['id']+_0x83ab74[_0x1161f8(0x188)]),Object[_0x1161f8(0x1c8)](_0x3f6133)[_0x1161f8(0x1e4)](([_0xf4dcbd,_0x39c92b])=>{const _0xe1112a=_0x1161f8;_0xf4dcbd==='mask'&&typeof _0x39c92b==_0xe1112a(0x242)&&(_0x3f6133[_0xf4dcbd]=_0x39c92b['replace'](/url\(#(.*)\)/,_0xe1112a(0x205)+_0x83ab74['idSuffix']+')'));});const {defIds:_0x5c1a5a}=_0x83ab74;return!_0x5c1a5a||_0x5c1a5a[_0x1161f8(0x1cb)]===0x0||(_0x299656[_0x1161f8(0x1b5)]==='use'&&_0x3f6133['xlink:href']&&(_0x3f6133['xlink:href']=_0x3f6133['xlink:href']+_0x83ab74[_0x1161f8(0x188)]),Object[_0x1161f8(0x1c8)](_0x3f6133)['forEach'](([_0x3ae3e6,_0x40fef4])=>{const _0x1271db=_0x1161f8;typeof _0x40fef4==_0x1271db(0x242)&&(_0x3f6133[_0x3ae3e6]=_0x40fef4[_0x1271db(0x198)](/url\(#(.*)\)/,_0x1271db(0x205)+_0x83ab74[_0x1271db(0x188)]+')'));})),_0x3f6133;}function ge(_0xa51ece,_0x130415){const _0x2b7c70=_0x33927d;var _0x34a268;const {defIds:_0x4d6362}=_0x130415;return!_0x4d6362||_0x4d6362[_0x2b7c70(0x1cb)]===0x0?_0xa51ece:_0xa51ece['tag']===_0x2b7c70(0x252)&&((_0x34a268=_0xa51ece['children'])!=null&&_0x34a268[_0x2b7c70(0x1cb)])?{..._0xa51ece,'children':_0xa51ece[_0x2b7c70(0x1f4)][_0x2b7c70(0x196)](_0x3ba0c8=>typeof _0x3ba0c8[_0x2b7c70(0x194)]['id']==_0x2b7c70(0x242)&&_0x4d6362&&_0x4d6362[_0x2b7c70(0x18b)](_0x3ba0c8[_0x2b7c70(0x194)]['id'])?{..._0x3ba0c8,'attrs':{..._0x3ba0c8[_0x2b7c70(0x194)],'id':_0x3ba0c8[_0x2b7c70(0x194)]['id']+_0x130415[_0x2b7c70(0x188)]}}:_0x3ba0c8)}:_0xa51ece;}function _0x21a5(){const _0x5d3cb4=['getAllPlugins','fill','1000','style','displayName','_initPlugins','_historyUniver$','getCurrentLocale','MessageType','CHANGESET_ACK','executeCommand','status$','IMenuManagerService','UniverSheetSparklineUIPlugin','CollaborationEvent','13347342RZfznF','next','history-icon','_configService','IUniverInstanceService','clear','setLocale','registerCommand','WorkbookRecoverHistoryPermission','Injector','edit-history-loader.config','_selectionProtectionRuleModel','string','OTHERS','393534NhGIxt','some','M0\x200H16V16H0z','subscribe','UniverUIPlugin','HistoryLoaderService','Entered','UniverSheetsConditionalFormattingPlugin','closeAll','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','params','UNIVER_UNKNOWN','historyUniver','_sidebarService','defs','_initContainer','block','width','location','_initListener','getElementById','_componentManager','session','UniverSheetsPivotTablePlugin','triggerLoadVersions','register','_revertErrorTimer','setTheme','RevertRevisionMutation','disposeWithMe','IAuthzIoService','IPermissionService','UniverSheetsFilterPlugin','SYNCED','WorkbookEditablePermission','Module','264DUaeBn','idSuffix','onSteady','set','includes','./worker.js','UniverSheetsUIPlugin','Loading','getCurrentRangeDisable$','UniverRenderEnginePlugin','UniverSheetsDataValidationPlugin','\x20has\x20been\x20registered.','0\x200\x2016\x2016','attrs','_injector','map','RxDisposable','replace','_historyManagerService','_checkCanRevert','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','merge','add','symbol','_disposableCollection','MenuItemType','UniverInstanceType','_collaborationController','editHistory.panel.title','UniverNetworkPlugin','url(#history-icon_clip0_907_281)','_permissionService','Univer','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','status','UniverEditHistoryViewerPlugin','_localCacheService','http://www.w3.org/2000/svg','UniverSheetsFormulaPlugin','1em','UNIVER_SHEET','onCommandExecuted','117257fWlQCC','UniverFormulaEnginePlugin','Error','mountHistoryContent','tag','position','getUnit','UniverSheetsFormulaUIPlugin','LocaleService','value','state$','display','HistoryManagerService','CommandType','UniverSheetsPlugin','ICommandService','getConfig','getOwnPropertyDescriptor','toString','uComp','left','UniverDocsPlugin','HistoryIcon','entries','UniverSheetsNumfmtPlugin','data','length','univer-history-container','history-icon_clip0_907_281','history-container','_univerInstanceService','Plugin','trim','univer-container','UNIVER_CONTAINER_ID_KEY','substring','_dialogService','clipPath','5353720qavwOL','unsubscribe','268122PgqOpM','_pluginMap','Disposable','WorkbookViewHistoryPermission','toStringTag','5aSphJF','composePermission','IDialogService','mutations','show','_messageService','forEach','top','defIds','RangeProtectionRuleModel','path','6965928SSkkid','random','Exited','assign','combineLatest','805398qkTLbz','white','UniverDrawingPlugin','from','defineProperty','univerjs-icon\x20univerjs-icon-','children','registerPlugin','exhaustSavingTask','type','WorksheetEditPermission','HistoryModeStatus','none','100%','invoke','_localeService','setConfig','univer.operation.toggle-edit-history','_initUniver','IMessageService','OPERATION','createElement','getSheetCommandTarget','url(#$1','values','dispose','UniverSheetsDataValidationUIPlugin','UniverDrawingUIPlugin','_init','_themeService','setDarkMode','UniverDocsUIPlugin','AuthzIoHttpService','UniverEditHistoryLoaderPlugin','univerContainerId','_commandService','get','IImageIoService','Inject','colorChannel1','svg','eventID','historyListServerUrl','UniverSheetsFilterUIPlugin','unMountHistoryContent','IConfigService','UniverLicensePlugin','ThemeService','pluginName','getCollabEntity','getMenuHiddenObservable','UniverSheetSparklinePlugin','close','UniverSheetsHyperLinkPlugin','_config','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','UniverSheetsConditionalFormattingUIPlugin'];_0x21a5=function(){return _0x5d3cb4;};return _0x21a5();}function ve(){const _0x5d3c3b=_0x33927d;return Math[_0x5d3c3b(0x1ea)]()[_0x5d3c3b(0x1c3)](0x24)[_0x5d3c3b(0x1d4)](0x2,0x8);}k['displayName']='UniverIcon';function _0x3953(_0x592b6d,_0x3790c4){const _0x21a5ec=_0x21a5();return _0x3953=function(_0x39534e,_0x46214c){_0x39534e=_0x39534e-0x179;let _0x5702cd=_0x21a5ec[_0x39534e];return _0x5702cd;},_0x3953(_0x592b6d,_0x3790c4);}const de={'tag':_0x33927d(0x216),'attrs':{'xmlns':_0x33927d(0x1ac),'fill':_0x33927d(0x1fa),'viewBox':_0x33927d(0x193),'width':_0x33927d(0x1ae),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x33927d(0x1a5)},'children':[{'tag':_0x33927d(0x1e8),'attrs':{'d':_0x33927d(0x1a8)}},{'tag':_0x33927d(0x1e8),'attrs':{'d':_0x33927d(0x225)}}]},{'tag':_0x33927d(0x252),'attrs':{},'children':[{'tag':_0x33927d(0x1d6),'attrs':{'id':_0x33927d(0x1cd)},'children':[{'tag':_0x33927d(0x1e8),'attrs':{'fill':_0x33927d(0x1ef),'d':_0x33927d(0x246)}}]}]}],'defIds':[_0x33927d(0x1cd)]},q=U['forwardRef'](function(_0x1d9324,_0x4d6234){const _0x258920=_0x33927d;return U['createElement'](k,Object[_0x258920(0x1ec)]({},_0x1d9324,{'id':_0x258920(0x238),'ref':_0x4d6234,'icon':de}));});q[_0x33927d(0x22b)]='HistoryIcon';var _e=Object['getOwnPropertyDescriptor'],Se=(_0x1f80fa,_0x367d74,_0x4015d1,_0x8c77d6)=>{const _0x2e68ce=_0x33927d;for(var _0xe1af6c=_0x8c77d6>0x1?void 0x0:_0x8c77d6?_e(_0x367d74,_0x4015d1):_0x367d74,_0x5cfab7=_0x1f80fa[_0x2e68ce(0x1cb)]-0x1,_0x347f52;_0x5cfab7>=0x0;_0x5cfab7--)(_0x347f52=_0x1f80fa[_0x5cfab7])&&(_0xe1af6c=_0x347f52(_0xe1af6c)||_0xe1af6c);return _0xe1af6c;},g=(_0x2cee47,_0xdd0687)=>(_0x14d328,_0x5dd720)=>_0xdd0687(_0x14d328,_0x5dd720,_0x2cee47);const me=_0x33927d(0x1d2),P='UNIVER_CONTAINER_ID',y=_0x33927d(0x1cc);exports[_0x33927d(0x249)]=class extends o[_0x33927d(0x1db)]{constructor(_0x2cb8b4,_0x524b2d,_0x5a1a3f,_0x5e0d37,_0xba69a,_0x4ef75e,_0x2407fd,_0x479f1a,_0x33c182,_0x5e8d64){const _0x5d83fe=_0x33927d;super(),_(this,_0x5d83fe(0x22d),new T['BehaviorSubject'](null)),_(this,'historyUniver$',this[_0x5d83fe(0x22d)]['asObservable']()),_(this,_0x5d83fe(0x19f),new o['DisposableCollection']()),_(this,_0x5d83fe(0x1da),new Map()),(this[_0x5d83fe(0x1fd)]=_0x2cb8b4,this[_0x5d83fe(0x1cf)]=_0x524b2d,this['_configService']=_0x5a1a3f,this[_0x5d83fe(0x211)]=_0x5e0d37,this['_messageService']=_0xba69a,this[_0x5d83fe(0x1a6)]=_0x4ef75e,this[_0x5d83fe(0x241)]=_0x2407fd,this[_0x5d83fe(0x1d5)]=_0x479f1a,this[_0x5d83fe(0x251)]=_0x33c182,this['_themeService']=_0x5e8d64,this[_0x5d83fe(0x20a)]());}get['historyUniver'](){const _0x1e34d9=_0x33927d;return this[_0x1e34d9(0x22d)][_0x1e34d9(0x1ba)];}['_init'](){const _0x2e8df4=_0x33927d;this[_0x2e8df4(0x253)](),this['_initPlugins']();}['_initContainer'](){const _0x1c78a9=_0x33927d;var _0x4421cb;const _0xd21171=(_0x4421cb=this['_configService']['getConfig'](P))!=null?_0x4421cb:me,_0x20261a=document[_0x1c78a9(0x258)](_0xd21171);if(!_0x20261a)return;const _0x465bea=document['createElement']('div');_0x465bea['id']=y,_0x465bea['dataset'][_0x1c78a9(0x1c4)]=_0x1c78a9(0x1ce),_0x465bea[_0x1c78a9(0x22a)][_0x1c78a9(0x1b6)]='absolute',_0x465bea['style'][_0x1c78a9(0x1e5)]='0',_0x465bea[_0x1c78a9(0x22a)][_0x1c78a9(0x1c5)]='0',_0x465bea[_0x1c78a9(0x22a)][_0x1c78a9(0x255)]='100%',_0x465bea[_0x1c78a9(0x22a)]['height']=_0x1c78a9(0x1fb),_0x465bea[_0x1c78a9(0x22a)]['zIndex']=_0x1c78a9(0x229),_0x465bea[_0x1c78a9(0x22a)][_0x1c78a9(0x1bc)]='none',_0x20261a['appendChild'](_0x465bea);}[_0x33927d(0x22c)](){const _0x2f5fbe=_0x33927d;var _0x1187ad;[[z[_0x2f5fbe(0x190)]],[h[_0x2f5fbe(0x248)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x2f5fbe(0x1e0)],null]]}],[Z[_0x2f5fbe(0x1a4)]],[L[_0x2f5fbe(0x1f0)],{'override':[[L[_0x2f5fbe(0x213)],null]]}],[W[_0x2f5fbe(0x1c6)],{'hasScroll':!0x1}],[Y[_0x2f5fbe(0x20d)]],[ue[_0x2f5fbe(0x1c9)]],[d[_0x2f5fbe(0x1bf)],{'notExecuteFormula':!0x0}],[w[_0x2f5fbe(0x18d)]],[oe[_0x2f5fbe(0x1ad)]],[ae[_0x2f5fbe(0x1b8)]],[I['UniverCollaborationPlugin']],[ne[_0x2f5fbe(0x183)]],[se[_0x2f5fbe(0x219)]],[Q[_0x2f5fbe(0x24b)]],[X[_0x2f5fbe(0x226)]],[ce[_0x2f5fbe(0x223)]],[le['UniverSheetsHyperLinkUIPlugin']],[G['UniverDataValidationPlugin']],[ee[_0x2f5fbe(0x191)]],[ie[_0x2f5fbe(0x208)]],[K[_0x2f5fbe(0x1b2)],{'notExecuteFormula':!0x0}],[J['UniverRPCMainThreadPlugin'],{'workerURL':_0x2f5fbe(0x18c)}],[B[_0x2f5fbe(0x209)]],[te['UniverSheetsDrawingPlugin']],[re['UniverSheetsDrawingUIPlugin']],[A[_0x2f5fbe(0x221)]],[V[_0x2f5fbe(0x234)]],[x[_0x2f5fbe(0x17a)],{'notExecuteFormula':!0x0}],[m[_0x2f5fbe(0x1aa)],{'historyListServerUrl':(_0x1187ad=this['_configService']['getConfig'](O))==null?void 0x0:_0x1187ad[_0x2f5fbe(0x218)]}]][_0x2f5fbe(0x1e4)](([_0xd3086c,_0x3bd4d4])=>this[_0x2f5fbe(0x1f5)](_0xd3086c,_0x3bd4d4));}[_0x33927d(0x207)](){const _0xd03830=_0x33927d;super[_0xd03830(0x207)](),this[_0xd03830(0x21a)](),this[_0xd03830(0x1da)][_0xd03830(0x23b)]();}[_0x33927d(0x1f5)](_0x4f4a04,_0x45b23b,_0xb65469){const _0x4a8b48=_0x33927d;if(this['_pluginMap']['has'](_0x4f4a04[_0x4a8b48(0x21e)])&&!_0xb65469)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x4f4a04['pluginName']+_0x4a8b48(0x192));this[_0x4a8b48(0x1da)][_0x4a8b48(0x18a)](_0x4f4a04[_0x4a8b48(0x21e)],[_0x4f4a04,_0x45b23b]);}[_0x33927d(0x227)](){const _0x11487f=_0x33927d;return Array[_0x11487f(0x1f1)](this[_0x11487f(0x1da)][_0x11487f(0x206)]());}['mountHistoryContent'](_0x2c17e2){const _0xc4264a=_0x33927d,_0x40c8b9=document[_0xc4264a(0x258)](y);_0x40c8b9&&(_0x40c8b9['style']['display']=_0xc4264a(0x254),this[_0xc4264a(0x200)](_0x2c17e2,y));}[_0x33927d(0x21a)](){const _0x1b3109=_0x33927d;var _0x2a1398;this['_disposableCollection'][_0x1b3109(0x207)](),(_0x2a1398=this['historyUniver'])==null||_0x2a1398['dispose'](),this[_0x1b3109(0x22d)][_0x1b3109(0x237)](null);const _0x474995=document['getElementById'](y);_0x474995&&(_0x474995['style'][_0x1b3109(0x1bc)]='none');}[_0x33927d(0x200)](_0x3b05ad,_0x4e11f9){const _0x19ed98=_0x33927d;if(this[_0x19ed98(0x250)])return;const _0x4d987f=new o[(_0x19ed98(0x1a7))]({'locales':{[this[_0x19ed98(0x1fd)][_0x19ed98(0x22e)]()]:this[_0x19ed98(0x1fd)]['getLocales']()},'override':[[o[_0x19ed98(0x181)],{'useClass':f[_0x19ed98(0x20e)]}]]}),_0x36e677=_0x4d987f['__getInjector']();this[_0x19ed98(0x180)](this['_themeService']['darkMode$'][_0x19ed98(0x247)](_0x692f20=>{const _0x338b64=_0x19ed98;_0x36e677['get'](o['ThemeService'])[_0x338b64(0x20c)](_0x692f20);})),this['disposeWithMe'](this[_0x19ed98(0x20b)]['currentTheme$'][_0x19ed98(0x247)](_0x2e0243=>{const _0x14aa97=_0x19ed98;_0x36e677[_0x14aa97(0x212)](o[_0x14aa97(0x21d)])[_0x14aa97(0x17e)](_0x2e0243);})),_0x36e677['get'](o[_0x19ed98(0x1b9)])[_0x19ed98(0x23c)](this['_localeService'][_0x19ed98(0x22e)]()),_0x36e677['get'](o[_0x19ed98(0x21b)])['setConfig'](f['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this['_configService'][_0x19ed98(0x1c1)](f[_0x19ed98(0x24d)]));const _0x3d31b2=this[_0x19ed98(0x239)]['getConfig'](H['LS_CONFIG_KEY']);_0x3d31b2&&_0x4d987f[_0x19ed98(0x1f5)](H[_0x19ed98(0x21c)],{'license':_0x3d31b2['ls']}),this[_0x19ed98(0x1da)][_0x19ed98(0x1e4)](([_0x4f02f6,_0x2da01e])=>{_0x4d987f['registerPlugin'](_0x4f02f6,_0x2da01e);}),_0x36e677[_0x19ed98(0x1fc)](_0x2f595c=>{const _0x59bf4e=_0x19ed98;this[_0x59bf4e(0x257)](_0x2f595c,_0x3b05ad);}),this['_historyUniver$']['next'](_0x4d987f);const _0xc4504=_0x36e677[_0x19ed98(0x212)](m[_0x19ed98(0x1bd)]),_0x26b5e4=this[_0x19ed98(0x19a)](_0x3b05ad);_0xc4504[_0x19ed98(0x17b)](_0x3b05ad,_0x4e11f9,_0x26b5e4);}['_initListener'](_0x5750c8,_0x2c2752){const _0x6927d7=_0x33927d,_0x3320fb=_0x5750c8['get'](m['HistoryManagerService']);this[_0x6927d7(0x19f)][_0x6927d7(0x19d)](_0x3320fb[_0x6927d7(0x232)][_0x6927d7(0x247)](_0x1e524a=>{const _0x3da6cb=_0x6927d7;switch(_0x1e524a){case m[_0x3da6cb(0x1f9)][_0x3da6cb(0x24a)]:this[_0x3da6cb(0x1d5)][_0x3da6cb(0x24c)](),this[_0x3da6cb(0x251)][_0x3da6cb(0x222)]();break;case m['HistoryModeStatus'][_0x3da6cb(0x1eb)]:this[_0x3da6cb(0x21a)]();break;case m['HistoryModeStatus']['Error']:this[_0x3da6cb(0x21a)](),this['_messageService']['show']({'content':this['_localeService']['t']('editHistory.panel.listFetchError'),'type':b[_0x3da6cb(0x22f)][_0x3da6cb(0x1b3)],'duration':0xbb8});break;}})),this[_0x6927d7(0x19f)][_0x6927d7(0x19d)](_0x3320fb['revertRevision$']['subscribe'](async _0x5eee4f=>{const _0x22392d=_0x6927d7;_0x5eee4f&&this[_0x22392d(0x211)][_0x22392d(0x231)](I['RevertRevisionMutation']['id'],{'unitId':_0x2c2752,'revision':_0x5eee4f});}));}[_0x33927d(0x19a)](_0x4b898a){const _0x528b69=_0x33927d,_0xe3ea0c=this['_univerInstanceService'][_0x528b69(0x1b7)](_0x4b898a)['getSheets']()[_0x528b69(0x196)](_0x57c9c1=>_0x57c9c1['getSheetId']()),_0x320b01=new d[(_0x528b69(0x185))](_0x4b898a)['id'],_0x2fabc7=_0xe3ea0c[_0x528b69(0x196)](_0x546480=>new d[(_0x528b69(0x1f8))](_0x4b898a,_0x546480)['id']),_0x20624c=_0xe3ea0c['map'](_0x8b442e=>this[_0x528b69(0x241)]['getSubunitRuleList'](_0x4b898a,_0x8b442e)[_0x528b69(0x196)](_0x1ad382=>new d['RangeProtectionPermissionEditPoint'](_0x4b898a,_0x8b442e,_0x1ad382['permissionId'])['id']))['flat'](),_0xe95d87=new d[(_0x528b69(0x23e))](_0x4b898a)['id'];return this[_0x528b69(0x1a6)][_0x528b69(0x1df)]([_0x320b01,..._0x2fabc7,..._0x20624c,_0xe95d87])['every'](_0x1b5229=>!!_0x1b5229[_0x528b69(0x1ba)]);}},exports[_0x33927d(0x249)]=Se([g(0x0,o[_0x33927d(0x214)](o['LocaleService'])),g(0x1,o[_0x33927d(0x23a)]),g(0x2,o[_0x33927d(0x21b)]),g(0x3,o[_0x33927d(0x1c0)]),g(0x4,h[_0x33927d(0x201)]),g(0x5,o[_0x33927d(0x182)]),g(0x6,o[_0x33927d(0x214)](d[_0x33927d(0x1e7)])),g(0x7,o[_0x33927d(0x214)](h['IDialogService'])),g(0x8,o[_0x33927d(0x214)](h['ISidebarService'])),g(0x9,o[_0x33927d(0x214)](o[_0x33927d(0x21d)]))],exports['HistoryLoaderService']);const M={'id':_0x33927d(0x1ff),'type':o[_0x33927d(0x1be)][_0x33927d(0x202)],'handler':_0x24e42e=>{const _0x5438c5=_0x33927d,_0x50287d=_0x24e42e['get'](exports[_0x5438c5(0x249)]),_0x352686=_0x24e42e[_0x5438c5(0x212)](o[_0x5438c5(0x23a)]),{unitId:_0x933aa3}=d[_0x5438c5(0x204)](_0x352686)||{};return _0x933aa3?(_0x50287d[_0x5438c5(0x1b4)](_0x933aa3),!0x0):!0x1;}};function ye(_0x46532e){const _0x58b793=_0x33927d;return{'id':M['id'],'type':h[_0x58b793(0x1a0)]['BUTTON'],'icon':_0x58b793(0x1c7),'tooltip':_0x58b793(0x1a3),'hidden$':h[_0x58b793(0x220)](_0x46532e,o['UniverInstanceType'][_0x58b793(0x1af)]),'disabled$':w[_0x58b793(0x18f)](_0x46532e,{'workbookTypes':[d['WorkbookEditablePermission'],d[_0x58b793(0x1dc)]],'worksheetTypes':[],'rangeTypes':[]})};}const fe={[h['RibbonStartGroup'][_0x33927d(0x243)]]:{[M['id']]:{'order':0.2,'menuItemFactory':ye}}};var pe=Object['getOwnPropertyDescriptor'],Ie=(_0x5d3e48,_0x4fc16d,_0x54d790,_0x2935bd)=>{const _0xf67e0c=_0x33927d;for(var _0x5af6a9=_0x2935bd>0x1?void 0x0:_0x2935bd?pe(_0x4fc16d,_0x54d790):_0x4fc16d,_0x3791a1=_0x5d3e48[_0xf67e0c(0x1cb)]-0x1,_0x5e39d2;_0x3791a1>=0x0;_0x3791a1--)(_0x5e39d2=_0x5d3e48[_0x3791a1])&&(_0x5af6a9=_0x5e39d2(_0x5af6a9)||_0x5af6a9);return _0x5af6a9;},S=(_0x296f53,_0x11ed67)=>(_0x39a23b,_0xf2b6d8)=>_0x11ed67(_0x39a23b,_0xf2b6d8,_0x296f53);let E=class extends o[_0x33927d(0x197)]{constructor(_0x253e80,_0x200daf,_0x1dc4f0,_0x67c5fb,_0x33ab7a,_0x225c63,_0x5dc97b,_0x4df837){const _0x266b90=_0x33927d;super(),_(this,'_revertErrorTimer',null),(this[_0x266b90(0x211)]=_0x253e80,this['_menuManagerService']=_0x200daf,this[_0x266b90(0x259)]=_0x1dc4f0,this[_0x266b90(0x199)]=_0x67c5fb,this[_0x266b90(0x1fd)]=_0x33ab7a,this['_messageService']=_0x225c63,this['_collaborationController']=_0x5dc97b,this['_localCacheService']=_0x4df837,this[_0x266b90(0x20a)]());}[_0x33927d(0x20a)](){const _0x1d95b4=_0x33927d;[M]['forEach'](_0xcce074=>this[_0x1d95b4(0x180)](o['toDisposable'](this[_0x1d95b4(0x211)][_0x1d95b4(0x23d)](_0xcce074)))),this[_0x1d95b4(0x180)](this[_0x1d95b4(0x259)][_0x1d95b4(0x17c)](_0x1d95b4(0x1c7),q)),this['_menuManagerService']['mergeMenu'](fe),this[_0x1d95b4(0x180)](this[_0x1d95b4(0x211)][_0x1d95b4(0x1b0)](_0x298df1=>{const _0x5485ed=_0x1d95b4;if(_0x298df1['id']===I[_0x5485ed(0x17f)]['id']){this[_0x5485ed(0x1e3)][_0x5485ed(0x1e2)]({'content':this[_0x5485ed(0x1fd)]['t']('editHistory.panel.reverting'),'type':b[_0x5485ed(0x22f)][_0x5485ed(0x18e)],'duration':0x1388});const {unitId:_0x4a0342}=_0x298df1[_0x5485ed(0x24e)],_0x437bc3=this[_0x5485ed(0x1a2)][_0x5485ed(0x21f)](_0x4a0342),_0x1a3aa8=T[_0x5485ed(0x1ed)]([_0x437bc3[_0x5485ed(0x179)]['event$'],_0x437bc3[_0x5485ed(0x1bb)]])[_0x5485ed(0x247)](async([_0x12bc02,_0x96a6fd])=>{const _0x5bf5cd=_0x5485ed;var _0x5d6ff2;_0x12bc02[_0x5bf5cd(0x217)]===I[_0x5bf5cd(0x235)][_0x5bf5cd(0x230)]&&(_0x96a6fd==null?void 0x0:_0x96a6fd[_0x5bf5cd(0x1a9)])===f['CollaborationStatus'][_0x5bf5cd(0x184)]&&_0x12bc02[_0x5bf5cd(0x1ca)][_0x5bf5cd(0x1e1)][_0x5bf5cd(0x245)](_0x52597b=>_0x52597b['id']===I['RevertRevisionMutation']['id'])&&(this[_0x5bf5cd(0x199)][_0x5bf5cd(0x21a)](),_0x1a3aa8[_0x5bf5cd(0x1d8)](),this[_0x5bf5cd(0x17d)]&&clearTimeout(this[_0x5bf5cd(0x17d)]),await((_0x5d6ff2=this[_0x5bf5cd(0x1ab)])==null?void 0x0:_0x5d6ff2[_0x5bf5cd(0x1f6)]()),setTimeout(()=>window[_0x5bf5cd(0x256)]['reload']()));});this[_0x5485ed(0x17d)]=setTimeout(()=>{const _0x35ffaa=_0x5485ed;_0x1a3aa8[_0x35ffaa(0x1d8)](),this['_messageService'][_0x35ffaa(0x1e2)]({'content':this[_0x35ffaa(0x1fd)]['t']('editHistory.panel.revertFailed'),'type':b[_0x35ffaa(0x22f)]['Error'],'duration':0xbb8});},0x1388);}}));}};E=Ie([S(0x0,o[_0x33927d(0x1c0)]),S(0x1,h[_0x33927d(0x233)]),S(0x2,o['Inject'](h['ComponentManager'])),S(0x3,o['Inject'](exports[_0x33927d(0x249)])),S(0x4,o['Inject'](o['LocaleService'])),S(0x5,h[_0x33927d(0x201)]),S(0x6,o[_0x33927d(0x214)](f['CollaborationController'])),S(0x7,f['ILocalCacheService'])],E);var Ce=Object[_0x33927d(0x1c2)],Ue=(_0x354602,_0x269243,_0x7ca088,_0x801e6d)=>{const _0x5d955d=_0x33927d;for(var _0x269da7=_0x801e6d>0x1?void 0x0:_0x801e6d?Ce(_0x269243,_0x7ca088):_0x269243,_0x51c068=_0x354602[_0x5d955d(0x1cb)]-0x1,_0x11bff3;_0x51c068>=0x0;_0x51c068--)(_0x11bff3=_0x354602[_0x51c068])&&(_0x269da7=_0x11bff3(_0x269da7)||_0x269da7);return _0x269da7;},N=(_0x4f7172,_0x166eea)=>(_0x49af7b,_0x4af4ad)=>_0x166eea(_0x49af7b,_0x4af4ad,_0x4f7172);const Ee=_0x33927d(0x19b);var C;exports[_0x33927d(0x20f)]=(C=class extends o[_0x33927d(0x1d0)]{constructor(_0x20f982=R,_0x4ee8da,_0xec97ad){const _0x5727cf=_0x33927d;super(),this[_0x5727cf(0x224)]=_0x20f982,this[_0x5727cf(0x195)]=_0x4ee8da,this[_0x5727cf(0x239)]=_0xec97ad;const {menu:_0x14481e,..._0xfb1a28}=o[_0x5727cf(0x19c)]({},R,this[_0x5727cf(0x224)]);_0x14481e&&this[_0x5727cf(0x239)][_0x5727cf(0x1fe)]('menu',_0x14481e,{'merge':!0x0}),this['_configService']['setConfig'](O,_0xfb1a28),this['_config'][_0x5727cf(0x210)]&&this[_0x5727cf(0x239)][_0x5727cf(0x1fe)](P,this[_0x5727cf(0x224)][_0x5727cf(0x210)]);}['onStarting'](){const _0x42b342=_0x33927d;[[exports[_0x42b342(0x249)]],[E]]['forEach'](_0x2505c8=>this['_injector']['add'](_0x2505c8));}[_0x33927d(0x189)](){const _0x3df2ab=_0x33927d;this['_injector'][_0x3df2ab(0x212)](E);}},_(C,_0x33927d(0x1f7),o[_0x33927d(0x1a1)][_0x33927d(0x24f)]),_(C,'pluginName',Ee),C),exports[_0x33927d(0x20f)]=Ue([N(0x1,o['Inject'](o[_0x33927d(0x23f)])),N(0x2,o[_0x33927d(0x21b)])],exports[_0x33927d(0x20f)]),exports[_0x33927d(0x1d3)]=P,exports['UNIVER_HISTORY_CONTAINER_ID']=y;
1
+ 'use strict';const _0x26ba85=_0x5cee;(function(_0x16d915,_0x4bd026){const _0x4f5a04=_0x5cee,_0x2a79f3=_0x16d915();while(!![]){try{const _0x578642=-parseInt(_0x4f5a04(0x210))/0x1+parseInt(_0x4f5a04(0x267))/0x2+parseInt(_0x4f5a04(0x1ef))/0x3*(parseInt(_0x4f5a04(0x2b0))/0x4)+parseInt(_0x4f5a04(0x219))/0x5*(parseInt(_0x4f5a04(0x1fe))/0x6)+-parseInt(_0x4f5a04(0x1d1))/0x7+parseInt(_0x4f5a04(0x20c))/0x8+-parseInt(_0x4f5a04(0x1c8))/0x9*(parseInt(_0x4f5a04(0x2af))/0xa);if(_0x578642===_0x4bd026)break;else _0x2a79f3['push'](_0x2a79f3['shift']());}catch(_0x8cc013){_0x2a79f3['push'](_0x2a79f3['shift']());}}}(_0x4041,0xebb0c));var j=Object['defineProperty'],F=(_0x20ac3a,_0x3e4c98,_0x19d1d8)=>_0x3e4c98 in _0x20ac3a?j(_0x20ac3a,_0x3e4c98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19d1d8}):_0x20ac3a[_0x3e4c98]=_0x19d1d8,_=(_0x1494e5,_0x507bb2,_0x18aa2d)=>F(_0x1494e5,typeof _0x507bb2!=_0x26ba85(0x258)?_0x507bb2+'':_0x507bb2,_0x18aa2d);Object[_0x26ba85(0x296)](exports,Symbol[_0x26ba85(0x1da)],{'value':_0x26ba85(0x1cc)});const o=require('@univerjs/core'),C=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),w=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),L=require('@univerjs-pro/license'),x=require('@univerjs-pro/sheets-chart'),A=require('@univerjs-pro/sheets-chart-ui'),V=require('@univerjs-pro/sheets-pivot'),G=require('@univerjs-pro/sheets-sparkline'),W=require('@univerjs-pro/sheets-sparkline-ui'),Y=require('@univerjs/data-validation'),K=require('@univerjs/docs'),B=require('@univerjs/docs-ui'),R=require('@univerjs/drawing'),z=require('@univerjs/drawing-ui'),Z=require('@univerjs/engine-formula'),J=require('@univerjs/engine-render'),Q=require('@univerjs/network'),X=require('@univerjs/rpc'),ee=require('@univerjs/sheets-conditional-formatting'),ie=require('@univerjs/sheets-conditional-formatting-ui'),te=require('@univerjs/sheets-data-validation'),re=require('@univerjs/sheets-data-validation-ui'),ne=require('@univerjs/sheets-drawing'),se=require('@univerjs/sheets-drawing-ui'),oe=require('@univerjs/sheets-filter'),ae=require('@univerjs/sheets-filter-ui'),ce=require('@univerjs/sheets-formula'),le=require('@univerjs/sheets-formula-ui'),ue=require('@univerjs/sheets-hyper-link'),he=require('@univerjs/sheets-hyper-link-ui'),ge=require('@univerjs/sheets-numfmt'),O=require('@univerjs/sheets-ui'),b='edit-history-loader.config',N={};function k({ref:_0x3b2263,..._0x44bd0c}){const _0x4d41a2=_0x26ba85,{icon:_0x564b2f,id:_0x118f77,className:_0x2758d8,extend:_0x7a8d71,..._0x3bdee6}=_0x44bd0c,_0x55b9b2=(_0x4d41a2(0x24b)+_0x118f77+'\x20'+(_0x2758d8||''))[_0x4d41a2(0x217)](),_0x4eb25f=U[_0x4d41a2(0x218)]('_'+_e());return D(_0x564b2f,''+_0x118f77,{'defIds':_0x564b2f['defIds'],'idSuffix':_0x4eb25f[_0x4d41a2(0x261)]},{'ref':_0x3b2263,'className':_0x55b9b2,..._0x3bdee6},_0x7a8d71);}function _0x5cee(_0x49cdfc,_0x1df12b){_0x49cdfc=_0x49cdfc-0x1c6;const _0x404198=_0x4041();let _0x5cee78=_0x404198[_0x49cdfc];return _0x5cee78;}function D(_0x2cb8b0,_0x313467,_0x1870d8,_0xaef333,_0x389638){const _0x3b758a=_0x26ba85;return U['createElement'](_0x2cb8b0['tag'],{'key':_0x313467,...ve(_0x2cb8b0,_0x1870d8,_0x389638),..._0xaef333},(de(_0x2cb8b0,_0x1870d8)[_0x3b758a(0x2ae)]||[])[_0x3b758a(0x238)]((_0x5dc39a,_0x3453f3)=>D(_0x5dc39a,_0x313467+'-'+_0x2cb8b0[_0x3b758a(0x278)]+'-'+_0x3453f3,_0x1870d8,void 0x0,_0x389638)));}function ve(_0x3240d9,_0x164734,_0x359f52){const _0x55769d=_0x26ba85,_0x80503e={..._0x3240d9[_0x55769d(0x1e6)]};_0x359f52!=null&&_0x359f52['colorChannel1']&&_0x80503e[_0x55769d(0x1ff)]===_0x55769d(0x2a4)&&(_0x80503e['fill']=_0x359f52[_0x55769d(0x2a4)]),_0x3240d9['tag']===_0x55769d(0x279)&&_0x80503e['id']&&(_0x80503e['id']=_0x80503e['id']+_0x164734['idSuffix']),Object[_0x55769d(0x211)](_0x80503e)[_0x55769d(0x27f)](([_0x33471c,_0x4f69fd])=>{const _0x460cf7=_0x55769d;_0x33471c===_0x460cf7(0x279)&&typeof _0x4f69fd==_0x460cf7(0x20f)&&(_0x80503e[_0x33471c]=_0x4f69fd[_0x460cf7(0x29e)](/url\(#(.*)\)/,'url(#$1'+_0x164734[_0x460cf7(0x224)]+')'));});const {defIds:_0x37f98f}=_0x164734;return!_0x37f98f||_0x37f98f['length']===0x0||(_0x3240d9[_0x55769d(0x278)]==='use'&&_0x80503e[_0x55769d(0x26c)]&&(_0x80503e[_0x55769d(0x26c)]=_0x80503e[_0x55769d(0x26c)]+_0x164734[_0x55769d(0x224)]),Object[_0x55769d(0x211)](_0x80503e)[_0x55769d(0x27f)](([_0x40fe77,_0x27d90a])=>{const _0x1af87c=_0x55769d;typeof _0x27d90a==_0x1af87c(0x20f)&&(_0x80503e[_0x40fe77]=_0x27d90a['replace'](/url\(#(.*)\)/,_0x1af87c(0x23e)+_0x164734[_0x1af87c(0x224)]+')'));})),_0x80503e;}function de(_0x5ac914,_0x4a0c82){const _0x2c88de=_0x26ba85;var _0x4d0126;const {defIds:_0x4f7301}=_0x4a0c82;return!_0x4f7301||_0x4f7301[_0x2c88de(0x1ea)]===0x0?_0x5ac914:_0x5ac914[_0x2c88de(0x278)]===_0x2c88de(0x1dc)&&((_0x4d0126=_0x5ac914[_0x2c88de(0x2ae)])!=null&&_0x4d0126[_0x2c88de(0x1ea)])?{..._0x5ac914,'children':_0x5ac914[_0x2c88de(0x2ae)][_0x2c88de(0x238)](_0x5343da=>typeof _0x5343da['attrs']['id']==_0x2c88de(0x20f)&&_0x4f7301&&_0x4f7301[_0x2c88de(0x234)](_0x5343da[_0x2c88de(0x1e6)]['id'])?{..._0x5343da,'attrs':{..._0x5343da['attrs'],'id':_0x5343da[_0x2c88de(0x1e6)]['id']+_0x4a0c82[_0x2c88de(0x224)]}}:_0x5343da)}:_0x5ac914;}function _e(){const _0xee5695=_0x26ba85;return Math[_0xee5695(0x26b)]()[_0xee5695(0x235)](0x24)['substring'](0x2,0x8);}k[_0x26ba85(0x1ee)]='UniverIcon';const Se={'tag':_0x26ba85(0x200),'attrs':{'xmlns':_0x26ba85(0x223),'fill':'none','viewBox':_0x26ba85(0x212),'width':_0x26ba85(0x1c6),'height':_0x26ba85(0x1c6)},'children':[{'tag':'g','attrs':{'fill':_0x26ba85(0x201),'clipPath':_0x26ba85(0x209)},'children':[{'tag':_0x26ba85(0x1e7),'attrs':{'d':_0x26ba85(0x246)}},{'tag':_0x26ba85(0x1e7),'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':_0x26ba85(0x1dc),'attrs':{},'children':[{'tag':_0x26ba85(0x2ad),'attrs':{'id':_0x26ba85(0x213)},'children':[{'tag':_0x26ba85(0x1e7),'attrs':{'fill':_0x26ba85(0x26a),'d':_0x26ba85(0x1d6)}}]}]}],'defIds':[_0x26ba85(0x213)]},q=U['forwardRef'](function(_0x2d6026,_0x49355e){const _0x525db5=_0x26ba85;return U[_0x525db5(0x2b3)](k,Object[_0x525db5(0x277)]({},_0x2d6026,{'id':_0x525db5(0x222),'ref':_0x49355e,'icon':Se}));});q[_0x26ba85(0x1ee)]=_0x26ba85(0x203);var me=Object['getOwnPropertyDescriptor'],ye=(_0x5bb75f,_0x709788,_0x3b3c33,_0x5eb14c)=>{const _0x2010c6=_0x26ba85;for(var _0x1ecd6a=_0x5eb14c>0x1?void 0x0:_0x5eb14c?me(_0x709788,_0x3b3c33):_0x709788,_0x4ef85a=_0x5bb75f[_0x2010c6(0x1ea)]-0x1,_0x18c43e;_0x4ef85a>=0x0;_0x4ef85a--)(_0x18c43e=_0x5bb75f[_0x4ef85a])&&(_0x1ecd6a=_0x18c43e(_0x1ecd6a)||_0x1ecd6a);return _0x1ecd6a;},g=(_0x8cdab2,_0x205792)=>(_0xa71392,_0x113a86)=>_0x205792(_0xa71392,_0x113a86,_0x8cdab2);const fe=_0x26ba85(0x229),M=_0x26ba85(0x1c7),y='univer-history-container';exports[_0x26ba85(0x268)]=class extends o[_0x26ba85(0x243)]{constructor(_0x12c3b6,_0x580f55,_0x57ff48,_0x2c20a2,_0xac4b1e,_0x197c2e,_0x19dd60,_0x83d468,_0x59c2bb,_0x46b292){const _0x6d0af3=_0x26ba85;super(),_(this,_0x6d0af3(0x241),new w['BehaviorSubject'](null)),_(this,_0x6d0af3(0x247),this[_0x6d0af3(0x241)]['asObservable']()),_(this,_0x6d0af3(0x1d9),new o[(_0x6d0af3(0x29b))]()),_(this,_0x6d0af3(0x2a0),new Map()),(this[_0x6d0af3(0x23c)]=_0x12c3b6,this['_univerInstanceService']=_0x580f55,this[_0x6d0af3(0x24f)]=_0x57ff48,this['_commandService']=_0x2c20a2,this[_0x6d0af3(0x282)]=_0xac4b1e,this[_0x6d0af3(0x25c)]=_0x197c2e,this[_0x6d0af3(0x274)]=_0x19dd60,this[_0x6d0af3(0x29c)]=_0x83d468,this[_0x6d0af3(0x1d0)]=_0x59c2bb,this[_0x6d0af3(0x21e)]=_0x46b292,this['_init']());}get[_0x26ba85(0x23a)](){return this['_historyUniver$']['value'];}[_0x26ba85(0x240)](){const _0x292898=_0x26ba85;this['_initContainer'](),this[_0x292898(0x26f)]();}[_0x26ba85(0x220)](){const _0x2c89f2=_0x26ba85;var _0x5098bb;const _0x4745f1=(_0x5098bb=this[_0x2c89f2(0x24f)]['getConfig'](M))!=null?_0x5098bb:fe,_0x2e5917=document[_0x2c89f2(0x1f2)](_0x4745f1);if(!_0x2e5917)return;const _0x1a399d=document[_0x2c89f2(0x2b3)](_0x2c89f2(0x1e1));_0x1a399d['id']=y,_0x1a399d[_0x2c89f2(0x23b)][_0x2c89f2(0x22c)]=_0x2c89f2(0x202),_0x1a399d[_0x2c89f2(0x242)][_0x2c89f2(0x1cd)]='absolute',_0x1a399d[_0x2c89f2(0x242)]['top']='0',_0x1a399d[_0x2c89f2(0x242)][_0x2c89f2(0x2ab)]='0',_0x1a399d[_0x2c89f2(0x242)][_0x2c89f2(0x1d4)]=_0x2c89f2(0x2a5),_0x1a399d[_0x2c89f2(0x242)][_0x2c89f2(0x1f9)]=_0x2c89f2(0x2a5),_0x1a399d[_0x2c89f2(0x242)][_0x2c89f2(0x25e)]=_0x2c89f2(0x24d),_0x1a399d[_0x2c89f2(0x242)][_0x2c89f2(0x22d)]=_0x2c89f2(0x276),_0x2e5917[_0x2c89f2(0x29a)](_0x1a399d);}[_0x26ba85(0x26f)](){const _0x17463d=_0x26ba85;var _0x14f4ed,_0x3a7f9c;[[J[_0x17463d(0x285)]],[h[_0x17463d(0x266)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x17463d(0x1e0)],null]]}],[Q['UniverNetworkPlugin']],[R[_0x17463d(0x236)],{'override':[[R['IImageIoService'],null]]}],[K[_0x17463d(0x265)],{'hasScroll':!0x1}],[B[_0x17463d(0x280)]],[ge[_0x17463d(0x28e)]],[d[_0x17463d(0x1e8)],{'notExecuteFormula':!0x0}],[O[_0x17463d(0x249)]],[ce['UniverSheetsFormulaPlugin']],[le[_0x17463d(0x287)]],[C[_0x17463d(0x1cf)]],[oe[_0x17463d(0x248)]],[ae['UniverSheetsFilterUIPlugin']],[ee[_0x17463d(0x24e)]],[ie['UniverSheetsConditionalFormattingUIPlugin']],[ue[_0x17463d(0x273)]],[he['UniverSheetsHyperLinkUIPlugin']],[Y['UniverDataValidationPlugin']],[te[_0x17463d(0x21b)]],[re[_0x17463d(0x233)]],[Z[_0x17463d(0x204)],{'notExecuteFormula':!0x0}],[X[_0x17463d(0x1f1)],{'workerURL':_0x17463d(0x264)}],[z[_0x17463d(0x208)]],[ne[_0x17463d(0x251)]],[se[_0x17463d(0x23d)]],[G[_0x17463d(0x299)]],[W[_0x17463d(0x269)]],[x[_0x17463d(0x259)]],[A['UniverSheetsChartUIPlugin']],[V[_0x17463d(0x21c)],{'notExecuteFormula':!0x0}],[m[_0x17463d(0x216)],{'historyListServerUrl':(_0x14f4ed=this[_0x17463d(0x24f)][_0x17463d(0x1f7)](b))==null?void 0x0:_0x14f4ed[_0x17463d(0x214)],'historyPanelComponentKey':(_0x3a7f9c=this[_0x17463d(0x24f)]['getConfig'](b))==null?void 0x0:_0x3a7f9c[_0x17463d(0x29f)]}]][_0x17463d(0x27f)](([_0x405b21,_0x376d22])=>this[_0x17463d(0x254)](_0x405b21,_0x376d22));}[_0x26ba85(0x2a6)](){const _0x4f5744=_0x26ba85;super[_0x4f5744(0x2a6)](),this[_0x4f5744(0x284)](),this[_0x4f5744(0x2a0)][_0x4f5744(0x1f4)]();}[_0x26ba85(0x254)](_0x381315,_0x175ec5,_0x1cbdac){const _0x1b01a4=_0x26ba85;if(this[_0x1b01a4(0x2a0)][_0x1b01a4(0x1ca)](_0x381315[_0x1b01a4(0x294)])&&!_0x1cbdac)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x381315[_0x1b01a4(0x294)]+'\x20has\x20been\x20registered.');this[_0x1b01a4(0x2a0)][_0x1b01a4(0x20e)](_0x381315[_0x1b01a4(0x294)],[_0x381315,_0x175ec5]);}['getAllPlugins'](){const _0x37fed1=_0x26ba85;return Array[_0x37fed1(0x271)](this[_0x37fed1(0x2a0)][_0x37fed1(0x1dd)]());}[_0x26ba85(0x25d)](_0x4cb823){const _0x487fd2=_0x26ba85,_0x5b6830=document['getElementById'](y);_0x5b6830&&(_0x5b6830[_0x487fd2(0x242)][_0x487fd2(0x22d)]=_0x487fd2(0x28c),this['_initUniver'](_0x4cb823,y));}[_0x26ba85(0x284)](){const _0x243570=_0x26ba85;var _0x154fae;this[_0x243570(0x1d9)][_0x243570(0x2a6)](),(_0x154fae=this[_0x243570(0x23a)])==null||_0x154fae[_0x243570(0x2a6)](),this[_0x243570(0x241)]['next'](null);const _0x535f4f=document['getElementById'](y);_0x535f4f&&(_0x535f4f['style'][_0x243570(0x22d)]=_0x243570(0x276));}[_0x26ba85(0x1d8)](_0x115dc5,_0x2b5c66){const _0x4612ef=_0x26ba85;if(this[_0x4612ef(0x23a)])return;const _0x43b059=new o[(_0x4612ef(0x2a9))]({'locales':{[this[_0x4612ef(0x23c)][_0x4612ef(0x250)]()]:this[_0x4612ef(0x23c)][_0x4612ef(0x283)]()},'override':[[o['IAuthzIoService'],{'useClass':f['AuthzIoHttpService']}]]}),_0x3d2a27=_0x43b059['__getInjector']();this['disposeWithMe'](this['_themeService'][_0x4612ef(0x228)][_0x4612ef(0x24a)](_0x2db6bb=>{const _0x5bffa3=_0x4612ef;_0x3d2a27['get'](o['ThemeService'])[_0x5bffa3(0x1f6)](_0x2db6bb);})),this[_0x4612ef(0x1fd)](this[_0x4612ef(0x21e)][_0x4612ef(0x24c)][_0x4612ef(0x24a)](_0x180f87=>{const _0x2ea583=_0x4612ef;_0x3d2a27['get'](o[_0x2ea583(0x1e4)])[_0x2ea583(0x260)](_0x180f87);})),_0x3d2a27[_0x4612ef(0x22b)](o[_0x4612ef(0x288)])[_0x4612ef(0x1d2)](this[_0x4612ef(0x23c)]['getCurrentLocale']()),_0x3d2a27[_0x4612ef(0x22b)](o[_0x4612ef(0x215)])[_0x4612ef(0x1d5)](f[_0x4612ef(0x20d)],this[_0x4612ef(0x24f)][_0x4612ef(0x1f7)](f[_0x4612ef(0x20d)]));const _0x5a13b9=this[_0x4612ef(0x24f)][_0x4612ef(0x1f7)](L[_0x4612ef(0x20b)]);_0x5a13b9&&_0x43b059['registerPlugin'](L['UniverLicensePlugin'],{'license':_0x5a13b9['ls']}),this[_0x4612ef(0x2a0)][_0x4612ef(0x27f)](([_0x5222bd,_0x2209b9])=>{const _0x3f93e3=_0x4612ef;_0x43b059[_0x3f93e3(0x254)](_0x5222bd,_0x2209b9);}),_0x3d2a27['invoke'](_0xfa2686=>{const _0x3c3a85=_0x4612ef;this[_0x3c3a85(0x286)](_0xfa2686,_0x115dc5);}),this[_0x4612ef(0x241)]['next'](_0x43b059);const _0x3f7457=_0x3d2a27[_0x4612ef(0x22b)](m['HistoryManagerService']),_0x450ff7=this[_0x4612ef(0x1ed)](_0x115dc5);_0x3f7457[_0x4612ef(0x1fb)](_0x115dc5,_0x2b5c66,_0x450ff7);}['_initListener'](_0x2b1b36,_0xa1f6f2){const _0x59472c=_0x26ba85,_0x4bd72c=_0x2b1b36[_0x59472c(0x22b)](m['HistoryManagerService']);this['_disposableCollection'][_0x59472c(0x1de)](_0x4bd72c['status$']['subscribe'](_0x2ca3bf=>{const _0x5737a3=_0x59472c;switch(_0x2ca3bf){case m[_0x5737a3(0x1c9)][_0x5737a3(0x2a3)]:this[_0x5737a3(0x29c)][_0x5737a3(0x2b2)](),this[_0x5737a3(0x1d0)]['close']();break;case m[_0x5737a3(0x1c9)][_0x5737a3(0x27c)]:this[_0x5737a3(0x284)]();break;case m[_0x5737a3(0x1c9)][_0x5737a3(0x1d7)]:this[_0x5737a3(0x284)](),this[_0x5737a3(0x282)][_0x5737a3(0x1db)]({'content':this['_localeService']['t'](_0x5737a3(0x1f8)),'type':P[_0x5737a3(0x1f0)][_0x5737a3(0x1d7)],'duration':0xbb8});break;}})),this[_0x59472c(0x1d9)]['add'](_0x4bd72c[_0x59472c(0x1f5)][_0x59472c(0x24a)](async _0x16e13a=>{const _0x5c7d24=_0x59472c;_0x16e13a&&this[_0x5c7d24(0x231)][_0x5c7d24(0x2b1)](C[_0x5c7d24(0x29d)]['id'],{'unitId':_0xa1f6f2,'revision':_0x16e13a});}));}[_0x26ba85(0x1ed)](_0xae10fc){const _0x33ed1e=_0x26ba85,_0x444373=this[_0x33ed1e(0x26e)]['getUnit'](_0xae10fc)[_0x33ed1e(0x25f)]()['map'](_0x5247c1=>_0x5247c1[_0x33ed1e(0x230)]()),_0x3f871c=new d['WorkbookEditablePermission'](_0xae10fc)['id'],_0x293a7c=_0x444373[_0x33ed1e(0x238)](_0xfccbeb=>new d[(_0x33ed1e(0x2a1))](_0xae10fc,_0xfccbeb)['id']),_0x5aec77=_0x444373[_0x33ed1e(0x238)](_0x34f431=>this[_0x33ed1e(0x274)][_0x33ed1e(0x2ac)](_0xae10fc,_0x34f431)[_0x33ed1e(0x238)](_0x27c917=>new d[(_0x33ed1e(0x297))](_0xae10fc,_0x34f431,_0x27c917[_0x33ed1e(0x295)])['id']))['flat'](),_0x4f31bc=new d[(_0x33ed1e(0x255))](_0xae10fc)['id'];return this[_0x33ed1e(0x25c)][_0x33ed1e(0x1ec)]([_0x3f871c,..._0x293a7c,..._0x5aec77,_0x4f31bc])[_0x33ed1e(0x257)](_0x5cd1f9=>!!_0x5cd1f9['value']);}},exports[_0x26ba85(0x268)]=ye([g(0x0,o[_0x26ba85(0x263)](o[_0x26ba85(0x288)])),g(0x1,o[_0x26ba85(0x205)]),g(0x2,o[_0x26ba85(0x215)]),g(0x3,o['ICommandService']),g(0x4,h[_0x26ba85(0x1d3)]),g(0x5,o[_0x26ba85(0x21f)]),g(0x6,o[_0x26ba85(0x263)](d[_0x26ba85(0x2a7)])),g(0x7,o[_0x26ba85(0x263)](h[_0x26ba85(0x1e0)])),g(0x8,o[_0x26ba85(0x263)](h['ISidebarService'])),g(0x9,o[_0x26ba85(0x263)](o[_0x26ba85(0x1e4)]))],exports['HistoryLoaderService']);const H={'id':_0x26ba85(0x225),'type':o[_0x26ba85(0x293)][_0x26ba85(0x1cb)],'handler':_0x4ac520=>{const _0x50a9c5=_0x26ba85,_0x2c262c=_0x4ac520[_0x50a9c5(0x22b)](exports[_0x50a9c5(0x268)]),_0x50d2f9=_0x4ac520[_0x50a9c5(0x22b)](o[_0x50a9c5(0x205)]),{unitId:_0x1f442e}=d[_0x50a9c5(0x275)](_0x50d2f9)||{};return _0x1f442e?(_0x2c262c[_0x50a9c5(0x25d)](_0x1f442e),!0x0):!0x1;}};function _0x4041(){const _0x324e21=['white','random','xlink:href','CollaborationController','_univerInstanceService','_initPlugins','editHistory.panel.revertFailed','from','_componentManager','UniverSheetsHyperLinkPlugin','_selectionProtectionRuleModel','getSheetCommandTarget','none','assign','tag','mask','UNIVER_CONTAINER_ID_KEY','OTHERS','Exited','register','MenuItemType','forEach','UniverDocsUIPlugin','WorkbookEditablePermission','_messageService','getLocales','unMountHistoryContent','UniverRenderEnginePlugin','_initListener','UniverSheetsFormulaUIPlugin','LocaleService','_historyManagerService','_config','state$','block','unsubscribe','UniverSheetsNumfmtPlugin','getMenuHiddenObservable','Injector','Loading','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','CommandType','pluginName','permissionId','defineProperty','RangeProtectionPermissionEditPoint','getCurrentRangeDisable$','UniverSheetSparklinePlugin','appendChild','DisposableCollection','_dialogService','RevertRevisionMutation','replace','historyPanelComponentKey','_pluginMap','WorksheetEditPermission','CollaborationStatus','Entered','colorChannel1','100%','dispose','RangeProtectionRuleModel','_revertErrorTimer','Univer','_menuManagerService','left','getSubunitRuleList','clipPath','children','198540ylCTsA','3912932OyWmdu','executeCommand','closeAll','createElement','UniverInstanceType','1em','UNIVER_CONTAINER_ID','765peOVYn','HistoryModeStatus','has','OPERATION','Module','position','getOwnPropertyDescriptor','UniverCollaborationPlugin','_sidebarService','5580708FInnSB','setLocale','IMessageService','width','setConfig','M0\x200H16V16H0z','Error','_initUniver','_disposableCollection','toStringTag','show','defs','values','add','status','IDialogService','div','session','onCommandExecuted','ThemeService','type','attrs','path','UniverSheetsPlugin','reload','length','menu','composePermission','_checkCanRevert','displayName','3MACZoG','MessageType','UniverRPCMainThreadPlugin','getElementById','merge','clear','revertRevision$','setDarkMode','getConfig','editHistory.panel.listFetchError','height','ComponentManager','triggerLoadVersions','editHistory.panel.title','disposeWithMe','1854Vcrikk','fill','svg','currentColor','history-container','HistoryIcon','UniverFormulaEnginePlugin','IUniverInstanceService','mutations','combineLatest','UniverDrawingUIPlugin','url(#history-icon_clip0_907_281)','IMenuManagerService','LS_CONFIG_KEY','12039144inlODD','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','set','string','1084139JShgdr','entries','0\x200\x2016\x2016','history-icon_clip0_907_281','historyListServerUrl','IConfigService','UniverEditHistoryViewerPlugin','trim','useRef','6475LIfVuc','WorkbookViewHistoryPermission','UniverSheetsDataValidationPlugin','UniverSheetsPivotTablePlugin','data','_themeService','IPermissionService','_initContainer','exhaustSavingTask','history-icon','http://www.w3.org/2000/svg','idSuffix','univer.operation.toggle-edit-history','location','univerContainerId','darkMode$','univer-container','registerCommand','get','uComp','display','some','CollaborationEvent','getSheetId','_commandService','_localCacheService','UniverSheetsDataValidationUIPlugin','includes','toString','UniverDrawingPlugin','UniverEditHistoryLoaderPlugin','map','params','historyUniver','dataset','_localeService','UniverSheetsDrawingUIPlugin','url(#$1','editHistory.panel.reverting','_init','_historyUniver$','style','Disposable','ILocalCacheService','SYNCED','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','historyUniver$','UniverSheetsFilterPlugin','UniverSheetsUIPlugin','subscribe','univerjs-icon\x20univerjs-icon-','currentTheme$','1000','UniverSheetsConditionalFormattingPlugin','_configService','getCurrentLocale','UniverSheetsDrawingPlugin','UNIVER_SHEET','_collaborationController','registerPlugin','WorkbookRecoverHistoryPermission','getCollabEntity','every','symbol','UniverSheetsChartPlugin','RibbonStartGroup','RxDisposable','_permissionService','mountHistoryContent','zIndex','getSheets','setTheme','current','ICommandService','Inject','./worker.js','UniverDocsPlugin','UniverUIPlugin','3302160bhPZPK','HistoryLoaderService','UniverSheetSparklineUIPlugin'];_0x4041=function(){return _0x324e21;};return _0x4041();}function pe(_0x13cd3e){const _0x20b971=_0x26ba85;return{'id':H['id'],'type':h[_0x20b971(0x27e)]['BUTTON'],'icon':'HistoryIcon','tooltip':_0x20b971(0x1fc),'hidden$':h[_0x20b971(0x28f)](_0x13cd3e,o[_0x20b971(0x2b4)][_0x20b971(0x252)]),'disabled$':O[_0x20b971(0x298)](_0x13cd3e,{'workbookTypes':[d[_0x20b971(0x281)],d[_0x20b971(0x21a)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ce={[h[_0x26ba85(0x25a)][_0x26ba85(0x27b)]]:{[H['id']]:{'order':0.2,'menuItemFactory':pe}}};var Ie=Object[_0x26ba85(0x1ce)],Ue=(_0x3177a5,_0x257254,_0x4d1397,_0x45d19e)=>{for(var _0x2630dc=_0x45d19e>0x1?void 0x0:_0x45d19e?Ie(_0x257254,_0x4d1397):_0x257254,_0xa6b4f6=_0x3177a5['length']-0x1,_0x2dacac;_0xa6b4f6>=0x0;_0xa6b4f6--)(_0x2dacac=_0x3177a5[_0xa6b4f6])&&(_0x2630dc=_0x2dacac(_0x2630dc)||_0x2630dc);return _0x2630dc;},S=(_0x57174b,_0x58782c)=>(_0x571332,_0x4c7d51)=>_0x58782c(_0x571332,_0x4c7d51,_0x57174b);let E=class extends o[_0x26ba85(0x25b)]{constructor(_0x42b9b5,_0x4a8ffe,_0x44a80b,_0x51d37e,_0x573049,_0x5f164d,_0x44908b,_0x14e625){const _0x3262e3=_0x26ba85;super(),_(this,_0x3262e3(0x2a8),null),(this['_commandService']=_0x42b9b5,this[_0x3262e3(0x2aa)]=_0x4a8ffe,this[_0x3262e3(0x272)]=_0x44a80b,this[_0x3262e3(0x289)]=_0x51d37e,this['_localeService']=_0x573049,this[_0x3262e3(0x282)]=_0x5f164d,this[_0x3262e3(0x253)]=_0x44908b,this[_0x3262e3(0x232)]=_0x14e625,this[_0x3262e3(0x240)]());}[_0x26ba85(0x240)](){const _0x14229b=_0x26ba85;[H]['forEach'](_0x4471ab=>this[_0x14229b(0x1fd)](o['toDisposable'](this[_0x14229b(0x231)][_0x14229b(0x22a)](_0x4471ab)))),this['disposeWithMe'](this['_componentManager'][_0x14229b(0x27d)](_0x14229b(0x203),q)),this[_0x14229b(0x2aa)]['mergeMenu'](Ce),this['disposeWithMe'](this[_0x14229b(0x231)][_0x14229b(0x1e3)](_0x13cb65=>{const _0x11d82c=_0x14229b;if(_0x13cb65['id']===C[_0x11d82c(0x29d)]['id']){this[_0x11d82c(0x282)]['show']({'content':this[_0x11d82c(0x23c)]['t'](_0x11d82c(0x23f)),'type':P[_0x11d82c(0x1f0)][_0x11d82c(0x291)],'duration':0x1388});const {unitId:_0x1edb78}=_0x13cb65[_0x11d82c(0x239)],_0x270c4e=this[_0x11d82c(0x253)][_0x11d82c(0x256)](_0x1edb78),_0xcb8ba2=w[_0x11d82c(0x207)]([_0x270c4e[_0x11d82c(0x1e2)]['event$'],_0x270c4e[_0x11d82c(0x28b)]])['subscribe'](async([_0x46272a,_0x2fa2fe])=>{const _0x4c1db6=_0x11d82c;var _0x50c2de;_0x46272a['eventID']===C[_0x4c1db6(0x22f)]['CHANGESET_ACK']&&(_0x2fa2fe==null?void 0x0:_0x2fa2fe[_0x4c1db6(0x1df)])===f[_0x4c1db6(0x2a2)][_0x4c1db6(0x245)]&&_0x46272a[_0x4c1db6(0x21d)][_0x4c1db6(0x206)][_0x4c1db6(0x22e)](_0x3ea8e7=>_0x3ea8e7['id']===C[_0x4c1db6(0x29d)]['id'])&&(this['_historyManagerService']['unMountHistoryContent'](),_0xcb8ba2[_0x4c1db6(0x28d)](),this['_revertErrorTimer']&&clearTimeout(this[_0x4c1db6(0x2a8)]),await((_0x50c2de=this[_0x4c1db6(0x232)])==null?void 0x0:_0x50c2de[_0x4c1db6(0x221)]()),setTimeout(()=>window[_0x4c1db6(0x226)][_0x4c1db6(0x1e9)]()));});this[_0x11d82c(0x2a8)]=setTimeout(()=>{const _0xea644f=_0x11d82c;_0xcb8ba2[_0xea644f(0x28d)](),this[_0xea644f(0x282)][_0xea644f(0x1db)]({'content':this[_0xea644f(0x23c)]['t'](_0xea644f(0x270)),'type':P['MessageType']['Error'],'duration':0xbb8});},0x1388);}}));}};E=Ue([S(0x0,o[_0x26ba85(0x262)]),S(0x1,h[_0x26ba85(0x20a)]),S(0x2,o[_0x26ba85(0x263)](h[_0x26ba85(0x1fa)])),S(0x3,o[_0x26ba85(0x263)](exports['HistoryLoaderService'])),S(0x4,o[_0x26ba85(0x263)](o[_0x26ba85(0x288)])),S(0x5,h[_0x26ba85(0x1d3)]),S(0x6,o['Inject'](f[_0x26ba85(0x26d)])),S(0x7,f[_0x26ba85(0x244)])],E);var Ee=Object['getOwnPropertyDescriptor'],Pe=(_0x4cd8b3,_0x49328d,_0x22c09b,_0x5d830d)=>{const _0x30f148=_0x26ba85;for(var _0x57bb89=_0x5d830d>0x1?void 0x0:_0x5d830d?Ee(_0x49328d,_0x22c09b):_0x49328d,_0x4d50d6=_0x4cd8b3[_0x30f148(0x1ea)]-0x1,_0x189691;_0x4d50d6>=0x0;_0x4d50d6--)(_0x189691=_0x4cd8b3[_0x4d50d6])&&(_0x57bb89=_0x189691(_0x57bb89)||_0x57bb89);return _0x57bb89;},T=(_0x1484f9,_0x24e746)=>(_0xc1f400,_0xde0601)=>_0x24e746(_0xc1f400,_0xde0601,_0x1484f9);const be=_0x26ba85(0x292);var I;exports[_0x26ba85(0x237)]=(I=class extends o['Plugin']{constructor(_0xb8e38f=N,_0x4b11b4,_0x4f19dc){const _0x2dec39=_0x26ba85;super(),this[_0x2dec39(0x28a)]=_0xb8e38f,this['_injector']=_0x4b11b4,this[_0x2dec39(0x24f)]=_0x4f19dc;const {menu:_0x4320d3,..._0x3b450a}=o[_0x2dec39(0x1f3)]({},N,this[_0x2dec39(0x28a)]);_0x4320d3&&this[_0x2dec39(0x24f)][_0x2dec39(0x1d5)](_0x2dec39(0x1eb),_0x4320d3,{'merge':!0x0}),this[_0x2dec39(0x24f)][_0x2dec39(0x1d5)](b,_0x3b450a),this['_config'][_0x2dec39(0x227)]&&this[_0x2dec39(0x24f)]['setConfig'](M,this['_config']['univerContainerId']);}['onStarting'](){const _0x226a41=_0x26ba85;[[exports['HistoryLoaderService']],[E]][_0x226a41(0x27f)](_0x25d75=>this['_injector'][_0x226a41(0x1de)](_0x25d75));}['onSteady'](){const _0x4e2d67=_0x26ba85;this['_injector'][_0x4e2d67(0x22b)](E);}},_(I,_0x26ba85(0x1e5),o[_0x26ba85(0x2b4)]['UNIVER_UNKNOWN']),_(I,'pluginName',be),I),exports[_0x26ba85(0x237)]=Pe([T(0x1,o[_0x26ba85(0x263)](o[_0x26ba85(0x290)])),T(0x2,o[_0x26ba85(0x215)])],exports['UniverEditHistoryLoaderPlugin']),exports[_0x26ba85(0x27a)]=M,exports['UNIVER_HISTORY_CONTAINER_ID']=y;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xf78a10=_0x2fe0;(function(_0x1db67d,_0xbddc76){const _0x435371=_0x2fe0,_0x280d3b=_0x1db67d();while(!![]){try{const _0x142c9=parseInt(_0x435371(0x100))/0x1+parseInt(_0x435371(0x150))/0x2*(-parseInt(_0x435371(0x108))/0x3)+-parseInt(_0x435371(0xb5))/0x4*(parseInt(_0x435371(0x149))/0x5)+-parseInt(_0x435371(0xf0))/0x6+-parseInt(_0x435371(0x12d))/0x7+parseInt(_0x435371(0xf5))/0x8+-parseInt(_0x435371(0x12e))/0x9*(-parseInt(_0x435371(0x122))/0xa);if(_0x142c9===_0xbddc76)break;else _0x280d3b['push'](_0x280d3b['shift']());}catch(_0x4abe6b){_0x280d3b['push'](_0x280d3b['shift']());}}}(_0x1d2a,0x211eb));var G=Object[_0xf78a10(0x114)],B=(_0x86d019,_0x1fc404,_0x18e246)=>_0x1fc404 in _0x86d019?G(_0x86d019,_0x1fc404,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18e246}):_0x86d019[_0x1fc404]=_0x18e246,g=(_0xc384c,_0x1f6bc0,_0x9ef671)=>B(_0xc384c,typeof _0x1f6bc0!='symbol'?_0x1f6bc0+'':_0x1f6bc0,_0x9ef671);import{Inject as _0x252e05,LocaleService as _0xe32952,IUniverInstanceService as _0xf20a6e,IConfigService as _0x28b503,ICommandService as _0x30e7f8,IPermissionService as _0x5f1c0f,ThemeService as _0x42c531,Disposable as _0x5f4eaa,DisposableCollection as _0x47f784,Univer as _0x13cb15,IAuthzIoService as _0x1198bc,CommandType as _0x2f5986,UniverInstanceType as _0x49989d,RxDisposable as _0x3def99,toDisposable as _0x2df2dc,Plugin as _0x5198da,merge as _0x2666af,Injector as _0x19f12b}from'@univerjs/core';import{UniverCollaborationPlugin as _0x27aa4f,RevertRevisionMutation as _0xd8c4da,CollaborationEvent as _0x2268c5}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5bef48,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e1b57,CollaborationController as _0x4c88aa,ILocalCacheService as _0x1b2f04,CollaborationStatus as _0x2d1023}from'@univerjs-pro/collaboration-client';import{MessageType as _0x22aee2}from'@univerjs/design';import{useRef as _0x178da8,createElement as _0x18efac,forwardRef as _0x5d7d9f}from'react';import{IMessageService as _0x1a52b6,IDialogService as _0x1ed199,ISidebarService as _0x46e6cf,UniverUIPlugin as _0x5d2d16,getMenuHiddenObservable as _0x4f4342,MenuItemType as _0x18006f,RibbonStartGroup as _0x42a4fb,IMenuManagerService as _0x10b933,ComponentManager as _0x102e68}from'@univerjs/ui';import{BehaviorSubject as _0x156af4,combineLatest as _0x31b746}from'rxjs';import{RangeProtectionRuleModel as _0x54e193,UniverSheetsPlugin as _0x41e00e,WorkbookEditablePermission as _0x1a2eb8,WorksheetEditPermission as _0xe0ef57,RangeProtectionPermissionEditPoint as _0x4d80f2,WorkbookRecoverHistoryPermission as _0x169489,getSheetCommandTarget as _0x2b375f,WorkbookViewHistoryPermission as _0x42bc68}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x3603df,HistoryManagerService as _0x40d8b5,HistoryModeStatus as _0x166d17}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x22522a,UniverLicensePlugin as _0x484890}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x3eef71}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x579cf4}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x3566c7}from'@univerjs-pro/sheets-sparkline-ui';function _0x1d2a(){const _0xd6cb7=['every','state$','absolute','_localeService','UNIVER_UNKNOWN','fill','Exited','_selectionProtectionRuleModel','_initListener','closeAll','display','__getInjector','set','3283070lupLgg','univerContainerId','subscribe','_revertErrorTimer','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','1000','asObservable','_pluginMap','session','_checkCanRevert','HistoryIcon','99393OftDsb','9yuirBh','executeCommand','attrs','_permissionService','history-icon_clip0_907_281','_disposableCollection','show','UNIVER_SHEET','_initContainer','SYNCED','setConfig','composePermission','trim','history-container','setTheme','_initPlugins','disposeWithMe','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','_dialogService','mutations','has','_themeService','univerjs-icon\x20univerjs-icon-','string','clipPath','_initUniver','_config','612690qszYRp','left','forEach','colorChannel1','svg','mountHistoryContent','path','10kDSMql','height','Error','_collaborationController','setDarkMode','editHistory.panel.title','http://www.w3.org/2000/svg','map','defs','historyUniver','getOwnPropertyDescriptor','history-icon','mergeMenu','[HistoryLoaderService]:\x20Plugin\x20','4wSqnbd','unMountHistoryContent','next','_sidebarService','getElementById','params','_init','current','100%','status','historyUniver$','clear','historyListServerUrl','getCollabEntity','_injector','getLocales','top','dispose','\x20has\x20been\x20registered.','Loading','random','getSheetId','entries','from','position','location','getSheets','editHistory.panel.listFetchError','onStarting','url(#$1','univer-container','none','currentColor','revertRevision$','pluginName','_univerInstanceService','some','registerPlugin','1em','0\x200\x2016\x2016','register','status$','_messageService','edit-history-loader.config','OTHERS','get','style','_configService','value','_commandService','type','eventID','flat','zIndex','onSteady','triggerLoadVersions','length','editHistory.panel.reverting','dataset','694710YqCqPs','Entered','getConfig','OPERATION','reload','149616nPyQuF','menu','getCurrentLocale','mask','width','includes','_componentManager','unsubscribe','tag','url(#history-icon_clip0_907_281)','data','67567jeUoGV','add','children','event$','div','_historyUniver$','_menuManagerService','close','15837TEXPIf','exhaustSavingTask','displayName','onCommandExecuted','editHistory.panel.revertFailed','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UNIVER_CONTAINER_ID','block','idSuffix','values','xlink:href','_historyManagerService','defineProperty'];_0x1d2a=function(){return _0xd6cb7;};return _0x1d2a();}function _0x2fe0(_0x402ed9,_0x1b78db){const _0x1d2a68=_0x1d2a();return _0x2fe0=function(_0x2fe035,_0x565aa9){_0x2fe035=_0x2fe035-0xb5;let _0x3bdcaf=_0x1d2a68[_0x2fe035];return _0x3bdcaf;},_0x2fe0(_0x402ed9,_0x1b78db);}import{UniverDataValidationPlugin as _0x42df7d}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x1246f5}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x30382a}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x18e065,IImageIoService as _0x469544}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x27a4ea}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x468496}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x572d40}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x2863cc}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x423509}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x1ee7ea}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x450b2f}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2e757f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x1a35ce}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x36d841}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x564231}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x354dcc}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x2377ae}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x5a0ef4}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x47c71a}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x136dba}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x29ca03}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x5b69e9}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0xd0ca97,getCurrentRangeDisable$ as _0x42c3a5}from'@univerjs/sheets-ui';const x=_0xf78a10(0xe0),w={};function A({ref:_0x4f85fc,..._0x2c67ed}){const _0x361666=_0xf78a10,{icon:_0x973471,id:_0xf3800,className:_0x27b018,extend:_0x299202,..._0x526bd0}=_0x2c67ed,_0x4e1553=(_0x361666(0x144)+_0xf3800+'\x20'+(_0x27b018||''))[_0x361666(0x13a)](),_0x15c4da=_0x178da8('_'+si());return F(_0x973471,''+_0xf3800,{'defIds':_0x973471['defIds'],'idSuffix':_0x15c4da[_0x361666(0xbc)]},{'ref':_0x4f85fc,'className':_0x4e1553,..._0x526bd0},_0x299202);}function F(_0x5ebfce,_0xebbc1b,_0x2ed9f3,_0x578135,_0x3fa93d){const _0x2f5479=_0xf78a10;return _0x18efac(_0x5ebfce[_0x2f5479(0xfd)],{'key':_0xebbc1b,...ni(_0x5ebfce,_0x2ed9f3,_0x3fa93d),..._0x578135},(oi(_0x5ebfce,_0x2ed9f3)[_0x2f5479(0x102)]||[])[_0x2f5479(0x157)]((_0x314818,_0x416671)=>F(_0x314818,_0xebbc1b+'-'+_0x5ebfce['tag']+'-'+_0x416671,_0x2ed9f3,void 0x0,_0x3fa93d)));}function ni(_0x34fc93,_0x50eed3,_0xa9fcac){const _0x50655c=_0xf78a10,_0x2a2cce={..._0x34fc93[_0x50655c(0x130)]};_0xa9fcac!=null&&_0xa9fcac[_0x50655c(0x14c)]&&_0x2a2cce[_0x50655c(0x11a)]===_0x50655c(0x14c)&&(_0x2a2cce[_0x50655c(0x11a)]=_0xa9fcac[_0x50655c(0x14c)]),_0x34fc93[_0x50655c(0xfd)]===_0x50655c(0xf8)&&_0x2a2cce['id']&&(_0x2a2cce['id']=_0x2a2cce['id']+_0x50eed3[_0x50655c(0x110)]),Object[_0x50655c(0xcb)](_0x2a2cce)[_0x50655c(0x14b)](([_0x3f94aa,_0x20fd07])=>{const _0x1135a2=_0x50655c;_0x3f94aa===_0x1135a2(0xf8)&&typeof _0x20fd07=='string'&&(_0x2a2cce[_0x3f94aa]=_0x20fd07['replace'](/url\(#(.*)\)/,_0x1135a2(0xd2)+_0x50eed3[_0x1135a2(0x110)]+')'));});const {defIds:_0x19931d}=_0x50eed3;return!_0x19931d||_0x19931d[_0x50655c(0xed)]===0x0||(_0x34fc93['tag']==='use'&&_0x2a2cce[_0x50655c(0x112)]&&(_0x2a2cce[_0x50655c(0x112)]=_0x2a2cce[_0x50655c(0x112)]+_0x50eed3['idSuffix']),Object[_0x50655c(0xcb)](_0x2a2cce)[_0x50655c(0x14b)](([_0x68f18e,_0x17f727])=>{const _0x13bf04=_0x50655c;typeof _0x17f727==_0x13bf04(0x145)&&(_0x2a2cce[_0x68f18e]=_0x17f727['replace'](/url\(#(.*)\)/,_0x13bf04(0xd2)+_0x50eed3['idSuffix']+')'));})),_0x2a2cce;}function oi(_0x4a5df8,_0x3b137f){const _0x2f9209=_0xf78a10;var _0x2c8e5e;const {defIds:_0x365d9b}=_0x3b137f;return!_0x365d9b||_0x365d9b[_0x2f9209(0xed)]===0x0?_0x4a5df8:_0x4a5df8[_0x2f9209(0xfd)]===_0x2f9209(0x158)&&((_0x2c8e5e=_0x4a5df8['children'])!=null&&_0x2c8e5e[_0x2f9209(0xed)])?{..._0x4a5df8,'children':_0x4a5df8[_0x2f9209(0x102)]['map'](_0x40a203=>typeof _0x40a203['attrs']['id']==_0x2f9209(0x145)&&_0x365d9b&&_0x365d9b[_0x2f9209(0xfa)](_0x40a203[_0x2f9209(0x130)]['id'])?{..._0x40a203,'attrs':{..._0x40a203[_0x2f9209(0x130)],'id':_0x40a203['attrs']['id']+_0x3b137f['idSuffix']}}:_0x40a203)}:_0x4a5df8;}function si(){const _0x5e0666=_0xf78a10;return Math[_0x5e0666(0xc9)]()['toString'](0x24)['substring'](0x2,0x8);}A['displayName']='UniverIcon';const ai={'tag':_0xf78a10(0x14d),'attrs':{'xmlns':_0xf78a10(0x156),'fill':_0xf78a10(0xd4),'viewBox':_0xf78a10(0xdc),'width':'1em','height':_0xf78a10(0xdb)},'children':[{'tag':'g','attrs':{'fill':_0xf78a10(0xd5),'clipPath':_0xf78a10(0xfe)},'children':[{'tag':_0xf78a10(0x14f),'attrs':{'d':_0xf78a10(0x126)}},{'tag':'path','attrs':{'d':_0xf78a10(0x13f)}}]},{'tag':_0xf78a10(0x158),'attrs':{},'children':[{'tag':_0xf78a10(0x146),'attrs':{'id':_0xf78a10(0x132)},'children':[{'tag':_0xf78a10(0x14f),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},j=_0x5d7d9f(function(_0x382fca,_0x550fa2){const _0x40b17b=_0xf78a10;return _0x18efac(A,Object['assign']({},_0x382fca,{'id':_0x40b17b(0x15b),'ref':_0x550fa2,'icon':ai}));});j[_0xf78a10(0x10a)]=_0xf78a10(0x12c);var ci=Object[_0xf78a10(0x15a)],li=(_0x45f2ce,_0x53f96b,_0x3f431d,_0x11d16b)=>{const _0x1ace2f=_0xf78a10;for(var _0x27476f=_0x11d16b>0x1?void 0x0:_0x11d16b?ci(_0x53f96b,_0x3f431d):_0x53f96b,_0x143c36=_0x45f2ce[_0x1ace2f(0xed)]-0x1,_0x310ee8;_0x143c36>=0x0;_0x143c36--)(_0x310ee8=_0x45f2ce[_0x143c36])&&(_0x27476f=_0x310ee8(_0x27476f)||_0x27476f);return _0x27476f;},l=(_0x3763e3,_0x37a6f6)=>(_0x3e7d27,_0x945643)=>_0x37a6f6(_0x3e7d27,_0x945643,_0x3763e3);const ui=_0xf78a10(0xd3),V=_0xf78a10(0x10e),d='univer-history-container';let f=class extends _0x5f4eaa{constructor(_0x4a42f2,_0x1c9b88,_0x53171a,_0x3c1195,_0x24498,_0x25bd84,_0x418c40,_0x2b7ae9,_0xb190d4,_0x17acce){const _0x112366=_0xf78a10;super(),g(this,_0x112366(0x105),new _0x156af4(null)),g(this,_0x112366(0xbf),this[_0x112366(0x105)][_0x112366(0x128)]()),g(this,'_disposableCollection',new _0x47f784()),g(this,'_pluginMap',new Map()),(this[_0x112366(0x118)]=_0x4a42f2,this[_0x112366(0xd8)]=_0x1c9b88,this[_0x112366(0xe4)]=_0x53171a,this['_commandService']=_0x3c1195,this[_0x112366(0xdf)]=_0x24498,this[_0x112366(0x131)]=_0x25bd84,this['_selectionProtectionRuleModel']=_0x418c40,this['_dialogService']=_0x2b7ae9,this[_0x112366(0xb8)]=_0xb190d4,this[_0x112366(0x143)]=_0x17acce,this[_0x112366(0xbb)]());}get[_0xf78a10(0x159)](){const _0x5e1ebf=_0xf78a10;return this[_0x5e1ebf(0x105)]['value'];}[_0xf78a10(0xbb)](){const _0x33fa31=_0xf78a10;this[_0x33fa31(0x136)](),this[_0x33fa31(0x13d)]();}[_0xf78a10(0x136)](){const _0x266e48=_0xf78a10;var _0x134c05;const _0x3f89cc=(_0x134c05=this[_0x266e48(0xe4)][_0x266e48(0xf2)](V))!=null?_0x134c05:ui,_0x33e0ef=document[_0x266e48(0xb9)](_0x3f89cc);if(!_0x33e0ef)return;const _0x3a8226=document['createElement'](_0x266e48(0x104));_0x3a8226['id']=d,_0x3a8226[_0x266e48(0xef)]['uComp']=_0x266e48(0x13b),_0x3a8226[_0x266e48(0xe3)][_0x266e48(0xcd)]=_0x266e48(0x117),_0x3a8226['style'][_0x266e48(0xc5)]='0',_0x3a8226[_0x266e48(0xe3)][_0x266e48(0x14a)]='0',_0x3a8226['style'][_0x266e48(0xf9)]=_0x266e48(0xbd),_0x3a8226['style'][_0x266e48(0x151)]=_0x266e48(0xbd),_0x3a8226[_0x266e48(0xe3)][_0x266e48(0xea)]=_0x266e48(0x127),_0x3a8226['style']['display']=_0x266e48(0xd4),_0x33e0ef['appendChild'](_0x3a8226);}[_0xf78a10(0x13d)](){const _0x2aa918=_0xf78a10;var _0x2d4655;[[_0x572d40],[_0x5d2d16,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1ed199,null]]}],[_0x2863cc],[_0x18e065,{'override':[[_0x469544,null]]}],[_0x1246f5,{'hasScroll':!0x1}],[_0x30382a],[_0x5b69e9],[_0x41e00e,{'notExecuteFormula':!0x0}],[_0xd0ca97],[_0x5a0ef4],[_0x47c71a],[_0x27aa4f],[_0x354dcc],[_0x2377ae],[_0x1ee7ea],[_0x450b2f],[_0x136dba],[_0x29ca03],[_0x42df7d],[_0x2e757f],[_0x1a35ce],[_0x468496,{'notExecuteFormula':!0x0}],[_0x423509,{'workerURL':'./worker.js'}],[_0x27a4ea],[_0x36d841],[_0x564231],[_0x579cf4],[_0x3566c7],[_0x3eef71,{'notExecuteFormula':!0x0}],[_0x3603df,{'historyListServerUrl':(_0x2d4655=this[_0x2aa918(0xe4)]['getConfig'](x))==null?void 0x0:_0x2d4655[_0x2aa918(0xc1)]}]][_0x2aa918(0x14b)](([_0xe7212f,_0x31a974])=>this['registerPlugin'](_0xe7212f,_0x31a974));}[_0xf78a10(0xc6)](){const _0x17e90a=_0xf78a10;super['dispose'](),this['unMountHistoryContent'](),this[_0x17e90a(0x129)][_0x17e90a(0xc0)]();}[_0xf78a10(0xda)](_0x153a11,_0x30c8ca,_0x2e6467){const _0x1e120d=_0xf78a10;if(this[_0x1e120d(0x129)][_0x1e120d(0x142)](_0x153a11['pluginName'])&&!_0x2e6467)throw new Error(_0x1e120d(0x15d)+_0x153a11[_0x1e120d(0xd7)]+_0x1e120d(0xc7));this[_0x1e120d(0x129)][_0x1e120d(0x121)](_0x153a11[_0x1e120d(0xd7)],[_0x153a11,_0x30c8ca]);}['getAllPlugins'](){const _0x4323af=_0xf78a10;return Array[_0x4323af(0xcc)](this[_0x4323af(0x129)][_0x4323af(0x111)]());}[_0xf78a10(0x14e)](_0x562e38){const _0x518ed3=_0xf78a10,_0x24efcc=document['getElementById'](d);_0x24efcc&&(_0x24efcc['style'][_0x518ed3(0x11f)]=_0x518ed3(0x10f),this[_0x518ed3(0x147)](_0x562e38,d));}[_0xf78a10(0xb6)](){const _0x5a5675=_0xf78a10;var _0x39c7b1;this[_0x5a5675(0x133)]['dispose'](),(_0x39c7b1=this[_0x5a5675(0x159)])==null||_0x39c7b1['dispose'](),this[_0x5a5675(0x105)][_0x5a5675(0xb7)](null);const _0x5a0b9d=document[_0x5a5675(0xb9)](d);_0x5a0b9d&&(_0x5a0b9d[_0x5a5675(0xe3)][_0x5a5675(0x11f)]=_0x5a5675(0xd4));}[_0xf78a10(0x147)](_0x2f918f,_0x168e03){const _0x5405c0=_0xf78a10;if(this[_0x5405c0(0x159)])return;const _0x16b369=new _0x13cb15({'locales':{[this[_0x5405c0(0x118)][_0x5405c0(0xf7)]()]:this[_0x5405c0(0x118)][_0x5405c0(0xc4)]()},'override':[[_0x1198bc,{'useClass':_0x5bef48}]]}),_0x44dc6e=_0x16b369[_0x5405c0(0x120)]();this[_0x5405c0(0x13e)](this[_0x5405c0(0x143)]['darkMode$'][_0x5405c0(0x124)](_0x4d9d8b=>{const _0xdc1fc5=_0x5405c0;_0x44dc6e[_0xdc1fc5(0xe2)](_0x42c531)[_0xdc1fc5(0x154)](_0x4d9d8b);})),this[_0x5405c0(0x13e)](this[_0x5405c0(0x143)]['currentTheme$'][_0x5405c0(0x124)](_0x20d1e3=>{const _0x42fd8a=_0x5405c0;_0x44dc6e[_0x42fd8a(0xe2)](_0x42c531)[_0x42fd8a(0x13c)](_0x20d1e3);})),_0x44dc6e[_0x5405c0(0xe2)](_0xe32952)['setLocale'](this[_0x5405c0(0x118)]['getCurrentLocale']()),_0x44dc6e[_0x5405c0(0xe2)](_0x28b503)[_0x5405c0(0x138)](_0x5e1b57,this[_0x5405c0(0xe4)][_0x5405c0(0xf2)](_0x5e1b57));const _0x2b6edd=this[_0x5405c0(0xe4)]['getConfig'](_0x22522a);_0x2b6edd&&_0x16b369[_0x5405c0(0xda)](_0x484890,{'license':_0x2b6edd['ls']}),this[_0x5405c0(0x129)]['forEach'](([_0x242490,_0x17a479])=>{_0x16b369['registerPlugin'](_0x242490,_0x17a479);}),_0x44dc6e['invoke'](_0x337ddb=>{const _0x540114=_0x5405c0;this[_0x540114(0x11d)](_0x337ddb,_0x2f918f);}),this['_historyUniver$']['next'](_0x16b369);const _0x19a75f=_0x44dc6e['get'](_0x40d8b5),_0xa1f216=this[_0x5405c0(0x12b)](_0x2f918f);_0x19a75f[_0x5405c0(0xec)](_0x2f918f,_0x168e03,_0xa1f216);}[_0xf78a10(0x11d)](_0x5664bc,_0x48cc4f){const _0x44e39c=_0xf78a10,_0x20bd7b=_0x5664bc[_0x44e39c(0xe2)](_0x40d8b5);this['_disposableCollection'][_0x44e39c(0x101)](_0x20bd7b[_0x44e39c(0xde)][_0x44e39c(0x124)](_0x204dc1=>{const _0x355a75=_0x44e39c;switch(_0x204dc1){case _0x166d17[_0x355a75(0xf1)]:this[_0x355a75(0x140)][_0x355a75(0x11e)](),this['_sidebarService'][_0x355a75(0x107)]();break;case _0x166d17[_0x355a75(0x11b)]:this[_0x355a75(0xb6)]();break;case _0x166d17[_0x355a75(0x152)]:this[_0x355a75(0xb6)](),this[_0x355a75(0xdf)][_0x355a75(0x134)]({'content':this[_0x355a75(0x118)]['t'](_0x355a75(0xd0)),'type':_0x22aee2[_0x355a75(0x152)],'duration':0xbb8});break;}})),this[_0x44e39c(0x133)][_0x44e39c(0x101)](_0x20bd7b[_0x44e39c(0xd6)][_0x44e39c(0x124)](async _0x44b37e=>{const _0x241573=_0x44e39c;_0x44b37e&&this[_0x241573(0xe6)][_0x241573(0x12f)](_0xd8c4da['id'],{'unitId':_0x48cc4f,'revision':_0x44b37e});}));}['_checkCanRevert'](_0x19e1cf){const _0x1b8227=_0xf78a10,_0x4de153=this[_0x1b8227(0xd8)]['getUnit'](_0x19e1cf)[_0x1b8227(0xcf)]()[_0x1b8227(0x157)](_0x6790ae=>_0x6790ae[_0x1b8227(0xca)]()),_0xfcc5d4=new _0x1a2eb8(_0x19e1cf)['id'],_0x2659fa=_0x4de153['map'](_0x33fc12=>new _0xe0ef57(_0x19e1cf,_0x33fc12)['id']),_0xee2b92=_0x4de153[_0x1b8227(0x157)](_0x29eefb=>this[_0x1b8227(0x11c)]['getSubunitRuleList'](_0x19e1cf,_0x29eefb)[_0x1b8227(0x157)](_0x4c794b=>new _0x4d80f2(_0x19e1cf,_0x29eefb,_0x4c794b['permissionId'])['id']))[_0x1b8227(0xe9)](),_0x2c5bc1=new _0x169489(_0x19e1cf)['id'];return this[_0x1b8227(0x131)][_0x1b8227(0x139)]([_0xfcc5d4,..._0x2659fa,..._0xee2b92,_0x2c5bc1])[_0x1b8227(0x115)](_0x30e081=>!!_0x30e081[_0x1b8227(0xe5)]);}};f=li([l(0x0,_0x252e05(_0xe32952)),l(0x1,_0xf20a6e),l(0x2,_0x28b503),l(0x3,_0x30e7f8),l(0x4,_0x1a52b6),l(0x5,_0x5f1c0f),l(0x6,_0x252e05(_0x54e193)),l(0x7,_0x252e05(_0x1ed199)),l(0x8,_0x252e05(_0x46e6cf)),l(0x9,_0x252e05(_0x42c531))],f);const b={'id':'univer.operation.toggle-edit-history','type':_0x2f5986[_0xf78a10(0xf3)],'handler':_0x4e1414=>{const _0x1cd587=_0xf78a10,_0x574487=_0x4e1414[_0x1cd587(0xe2)](f),_0x215ad6=_0x4e1414[_0x1cd587(0xe2)](_0xf20a6e),{unitId:_0x3650c1}=_0x2b375f(_0x215ad6)||{};return _0x3650c1?(_0x574487['mountHistoryContent'](_0x3650c1),!0x0):!0x1;}};function hi(_0x2b767b){const _0x3c4e81=_0xf78a10;return{'id':b['id'],'type':_0x18006f['BUTTON'],'icon':'HistoryIcon','tooltip':_0x3c4e81(0x155),'hidden$':_0x4f4342(_0x2b767b,_0x49989d[_0x3c4e81(0x135)]),'disabled$':_0x42c3a5(_0x2b767b,{'workbookTypes':[_0x1a2eb8,_0x42bc68],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x42a4fb[_0xf78a10(0xe1)]]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object['getOwnPropertyDescriptor'],vi=(_0x4a0c86,_0x59dd1d,_0x51e904,_0x32a990)=>{const _0xde60bb=_0xf78a10;for(var _0x4536d6=_0x32a990>0x1?void 0x0:_0x32a990?mi(_0x59dd1d,_0x51e904):_0x59dd1d,_0x8d6d10=_0x4a0c86[_0xde60bb(0xed)]-0x1,_0x3e1678;_0x8d6d10>=0x0;_0x8d6d10--)(_0x3e1678=_0x4a0c86[_0x8d6d10])&&(_0x4536d6=_0x3e1678(_0x4536d6)||_0x4536d6);return _0x4536d6;},m=(_0x189c93,_0x49fb75)=>(_0x51ba99,_0x9130d6)=>_0x49fb75(_0x51ba99,_0x9130d6,_0x189c93);let p=class extends _0x3def99{constructor(_0x2203ba,_0x3cb111,_0x4f8df0,_0x5d3008,_0x101a84,_0x566142,_0x1ffe96,_0x1b331f){const _0x283d1e=_0xf78a10;super(),g(this,_0x283d1e(0x125),null),(this[_0x283d1e(0xe6)]=_0x2203ba,this[_0x283d1e(0x106)]=_0x3cb111,this[_0x283d1e(0xfb)]=_0x4f8df0,this['_historyManagerService']=_0x5d3008,this[_0x283d1e(0x118)]=_0x101a84,this[_0x283d1e(0xdf)]=_0x566142,this[_0x283d1e(0x153)]=_0x1ffe96,this['_localCacheService']=_0x1b331f,this[_0x283d1e(0xbb)]());}[_0xf78a10(0xbb)](){const _0x185a0b=_0xf78a10;[b][_0x185a0b(0x14b)](_0x11af86=>this['disposeWithMe'](_0x2df2dc(this[_0x185a0b(0xe6)]['registerCommand'](_0x11af86)))),this['disposeWithMe'](this['_componentManager'][_0x185a0b(0xdd)](_0x185a0b(0x12c),j)),this[_0x185a0b(0x106)][_0x185a0b(0x15c)](gi),this[_0x185a0b(0x13e)](this[_0x185a0b(0xe6)][_0x185a0b(0x10b)](_0xe6d86c=>{const _0x349a39=_0x185a0b;if(_0xe6d86c['id']===_0xd8c4da['id']){this[_0x349a39(0xdf)][_0x349a39(0x134)]({'content':this[_0x349a39(0x118)]['t'](_0x349a39(0xee)),'type':_0x22aee2[_0x349a39(0xc8)],'duration':0x1388});const {unitId:_0x5a84cd}=_0xe6d86c[_0x349a39(0xba)],_0x513746=this[_0x349a39(0x153)][_0x349a39(0xc2)](_0x5a84cd),_0x561c3f=_0x31b746([_0x513746[_0x349a39(0x12a)][_0x349a39(0x103)],_0x513746[_0x349a39(0x116)]])[_0x349a39(0x124)](async([_0x1fbb3f,_0x4c1019])=>{const _0x2de020=_0x349a39;var _0x46df67;_0x1fbb3f[_0x2de020(0xe8)]===_0x2268c5['CHANGESET_ACK']&&(_0x4c1019==null?void 0x0:_0x4c1019[_0x2de020(0xbe)])===_0x2d1023[_0x2de020(0x137)]&&_0x1fbb3f[_0x2de020(0xff)][_0x2de020(0x141)][_0x2de020(0xd9)](_0x1840f4=>_0x1840f4['id']===_0xd8c4da['id'])&&(this[_0x2de020(0x113)]['unMountHistoryContent'](),_0x561c3f['unsubscribe'](),this[_0x2de020(0x125)]&&clearTimeout(this[_0x2de020(0x125)]),await((_0x46df67=this['_localCacheService'])==null?void 0x0:_0x46df67[_0x2de020(0x109)]()),setTimeout(()=>window[_0x2de020(0xce)][_0x2de020(0xf4)]()));});this[_0x349a39(0x125)]=setTimeout(()=>{const _0x1dacd5=_0x349a39;_0x561c3f[_0x1dacd5(0xfc)](),this[_0x1dacd5(0xdf)][_0x1dacd5(0x134)]({'content':this[_0x1dacd5(0x118)]['t'](_0x1dacd5(0x10c)),'type':_0x22aee2[_0x1dacd5(0x152)],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x30e7f8),m(0x1,_0x10b933),m(0x2,_0x252e05(_0x102e68)),m(0x3,_0x252e05(f)),m(0x4,_0x252e05(_0xe32952)),m(0x5,_0x1a52b6),m(0x6,_0x252e05(_0x4c88aa)),m(0x7,_0x1b2f04)],p);var di=Object[_0xf78a10(0x15a)],fi=(_0x3e591d,_0xf45ef4,_0x383801,_0x182481)=>{for(var _0x21ccd1=_0x182481>0x1?void 0x0:_0x182481?di(_0xf45ef4,_0x383801):_0xf45ef4,_0x17bcdd=_0x3e591d['length']-0x1,_0x249352;_0x17bcdd>=0x0;_0x17bcdd--)(_0x249352=_0x3e591d[_0x17bcdd])&&(_0x21ccd1=_0x249352(_0x21ccd1)||_0x21ccd1);return _0x21ccd1;},R=(_0x13b0be,_0x366fed)=>(_0x57b1ff,_0x13fa82)=>_0x366fed(_0x57b1ff,_0x13fa82,_0x13b0be);const _i=_0xf78a10(0x10d);var _;let N=(_=class extends _0x5198da{constructor(_0x26cc5c=w,_0x40328d,_0x5a5139){const _0x272dd0=_0xf78a10;super(),this['_config']=_0x26cc5c,this[_0x272dd0(0xc3)]=_0x40328d,this[_0x272dd0(0xe4)]=_0x5a5139;const {menu:_0x378b21,..._0x35d3c0}=_0x2666af({},w,this[_0x272dd0(0x148)]);_0x378b21&&this[_0x272dd0(0xe4)][_0x272dd0(0x138)](_0x272dd0(0xf6),_0x378b21,{'merge':!0x0}),this[_0x272dd0(0xe4)][_0x272dd0(0x138)](x,_0x35d3c0),this['_config'][_0x272dd0(0x123)]&&this[_0x272dd0(0xe4)][_0x272dd0(0x138)](V,this['_config'][_0x272dd0(0x123)]);}[_0xf78a10(0xd1)](){const _0x523b04=_0xf78a10;[[f],[p]][_0x523b04(0x14b)](_0x14fa46=>this['_injector'][_0x523b04(0x101)](_0x14fa46));}[_0xf78a10(0xeb)](){const _0x163be8=_0xf78a10;this[_0x163be8(0xc3)][_0x163be8(0xe2)](p);}},g(_,_0xf78a10(0xe7),_0x49989d[_0xf78a10(0x119)]),g(_,_0xf78a10(0xd7),_i),_);N=fi([R(0x1,_0x252e05(_0x19f12b)),R(0x2,_0x28b503)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
1
+ const _0x331c6d=_0x5b52;(function(_0x46ea49,_0x3f2c4e){const _0x52edeb=_0x5b52,_0xf59e3=_0x46ea49();while(!![]){try{const _0x4aa835=parseInt(_0x52edeb(0x19e))/0x1*(-parseInt(_0x52edeb(0x16c))/0x2)+-parseInt(_0x52edeb(0x1b1))/0x3*(parseInt(_0x52edeb(0x13e))/0x4)+-parseInt(_0x52edeb(0x1ad))/0x5*(-parseInt(_0x52edeb(0x158))/0x6)+parseInt(_0x52edeb(0x167))/0x7+parseInt(_0x52edeb(0x172))/0x8*(parseInt(_0x52edeb(0x1c1))/0x9)+parseInt(_0x52edeb(0x166))/0xa+parseInt(_0x52edeb(0x16e))/0xb;if(_0x4aa835===_0x3f2c4e)break;else _0xf59e3['push'](_0xf59e3['shift']());}catch(_0x20c1e7){_0xf59e3['push'](_0xf59e3['shift']());}}}(_0xc869,0xca8e0));var G=Object[_0x331c6d(0x17c)],B=(_0x5776a5,_0x48e04c,_0x521b60)=>_0x48e04c in _0x5776a5?G(_0x5776a5,_0x48e04c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x521b60}):_0x5776a5[_0x48e04c]=_0x521b60,g=(_0x560b0a,_0x48d7e0,_0x59a6a7)=>B(_0x560b0a,typeof _0x48d7e0!='symbol'?_0x48d7e0+'':_0x48d7e0,_0x59a6a7);import{Inject as _0x4ff931,LocaleService as _0x2f14eb,IUniverInstanceService as _0x5ed9c7,IConfigService as _0x26c61b,ICommandService as _0x1fccd2,IPermissionService as _0x48466e,ThemeService as _0xf64861,Disposable as _0x2321e1,DisposableCollection as _0x54d207,Univer as _0x4250c9,IAuthzIoService as _0x524c2c,CommandType as _0x6dbac4,UniverInstanceType as _0x57cdf7,RxDisposable as _0x5250a2,toDisposable as _0x1aa207,Plugin as _0x38e956,merge as _0x2d571a,Injector as _0x2c6ded}from'@univerjs/core';import{UniverCollaborationPlugin as _0x132370,RevertRevisionMutation as _0x3ae0b7,CollaborationEvent as _0x170c94}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x37c7cf,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x16016c,CollaborationController as _0x469925,ILocalCacheService as _0x517c1,CollaborationStatus as _0x531862}from'@univerjs-pro/collaboration-client';import{MessageType as _0x5a5867}from'@univerjs/design';import{useRef as _0x45497b,createElement as _0x4e0d3e,forwardRef as _0x194412}from'react';import{IMessageService as _0x4ca5ec,IDialogService as _0x3a521c,ISidebarService as _0x50ff5f,UniverUIPlugin as _0x6e57df,getMenuHiddenObservable as _0x2152e9,MenuItemType as _0x2fc0f3,RibbonStartGroup as _0x2dab13,IMenuManagerService as _0x2cd13e,ComponentManager as _0x446efd}from'@univerjs/ui';import{BehaviorSubject as _0x5c0578,combineLatest as _0x2a1cc0}from'rxjs';import{RangeProtectionRuleModel as _0x479be3,UniverSheetsPlugin as _0x43c299,WorkbookEditablePermission as _0x25ebc0,WorksheetEditPermission as _0x554502,RangeProtectionPermissionEditPoint as _0x3fdff7,WorkbookRecoverHistoryPermission as _0x16b2be,getSheetCommandTarget as _0x1470d7,WorkbookViewHistoryPermission as _0x417430}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x207e64,HistoryManagerService as _0x458d80,HistoryModeStatus as _0xee91a8}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4a6cd7,UniverLicensePlugin as _0x4f78ae}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x183210}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x189cef}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x59af62}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x42e99c}from'@univerjs-pro/sheets-sparkline';function _0xc869(){const _0xf95c9e=['tag','eventID','clear','currentColor','univer-container','registerCommand','M0\x200H16V16H0z','menu','toString','height','display','params','value','univer.operation.toggle-edit-history','_permissionService','_collaborationController','UniverIcon','getSheets','_historyManagerService','fill','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','event$','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','getLocales','60lSDkRW','historyListServerUrl','univerjs-icon\x20univerjs-icon-','colorChannel1','xlink:href','_localCacheService','url(#history-icon_clip0_907_281)','editHistory.panel.reverting','_initUniver','appendChild','getUnit','status','_pluginMap','idSuffix','getSubunitRuleList','asObservable','Exited','mountHistoryContent','1em','\x20has\x20been\x20registered.','setTheme','replace','OTHERS','getAllPlugins','_checkCanRevert','exhaustSavingTask','36504NOaXPX','_revertErrorTimer','historyPanelComponentKey','svg','style','absolute','mask','children','edit-history-loader.config','zIndex','state$','url(#$1','get','_init','10397570acWCuN','9065490ukXoTI','set','next','block','div','9770obZJsn','dispose','7032190iBfVKQ','editHistory.panel.title','getOwnPropertyDescriptor','HistoryIcon','8UnDDyd','_configService','onStarting','_themeService','type','SYNCED','_dialogService','attrs','darkMode$','./worker.js','defineProperty','univer-history-container','0\x200\x2016\x2016','current','width','string','UNIVER_CONTAINER_ID','entries','unMountHistoryContent','subscribe','_messageService','historyUniver','length','Loading','some','composePermission','100%','show','univerContainerId','_univerInstanceService','history-icon','_initPlugins','values','trim','getElementById','registerPlugin','includes','unsubscribe','OPERATION','white','history-container','path','permissionId','setConfig','206pvTWFX','none','assign','_commandService','map','onCommandExecuted','Error','forEach','_historyUniver$','mergeMenu','defIds','pluginName','_disposableCollection','_localeService','close','330MTkAZM','add','_selectionProtectionRuleModel','location','330657tzGZky','uComp','clipPath','history-icon_clip0_907_281','dataset','top','status$','invoke','_initContainer','disposeWithMe','executeCommand','onSteady','createElement','defs','getCollabEntity','currentTheme$','1022382UwhVPg','getConfig','from','BUTTON','data','_sidebarService','historyUniver$','displayName','reload','_menuManagerService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','getCurrentLocale','_config','Entered'];_0xc869=function(){return _0xf95c9e;};return _0xc869();}import{UniverSheetSparklineUIPlugin as _0x4df13f}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x119858}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x4d0d51}from'@univerjs/docs';function _0x5b52(_0x35fbac,_0x4df4c8){_0x35fbac=_0x35fbac-0x11b;const _0xc86915=_0xc869();let _0x5b521a=_0xc86915[_0x35fbac];return _0x5b521a;}import{UniverDocsUIPlugin as _0xc6d4e1}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x1386ee,IImageIoService as _0x5ab772}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x9604b2}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x531e63}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x2a5c0c}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x10c9ff}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x126db7}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x109c7e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x363aa5}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x1ad49f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x21bd90}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x3b2798}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x143e2e}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x3d5050}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0xd2debf}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x4d1068}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x3749f3}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x5bb360}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x508036}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x665953}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x3956d1,getCurrentRangeDisable$ as _0x1b7a4b}from'@univerjs/sheets-ui';const U=_0x331c6d(0x160),R={};function A({ref:_0x5e637b,..._0xf2e7db}){const _0x1328c8=_0x331c6d,{icon:_0x478546,id:_0x3869e6,className:_0x4ce44f,extend:_0x3ac5e,..._0x351c5e}=_0xf2e7db,_0x285430=(_0x1328c8(0x140)+_0x3869e6+'\x20'+(_0x4ce44f||''))[_0x1328c8(0x193)](),_0x2ee37b=_0x45497b('_'+ci());return F(_0x478546,''+_0x3869e6,{'defIds':_0x478546[_0x1328c8(0x1a8)],'idSuffix':_0x2ee37b[_0x1328c8(0x17f)]},{'ref':_0x5e637b,'className':_0x285430,..._0x351c5e},_0x3ac5e);}function F(_0x81f595,_0xc573f1,_0x1fae5c,_0xaf90e6,_0xcecee5){const _0x4206b3=_0x331c6d;return _0x4e0d3e(_0x81f595[_0x4206b3(0x126)],{'key':_0xc573f1,...si(_0x81f595,_0x1fae5c,_0xcecee5),..._0xaf90e6},(ai(_0x81f595,_0x1fae5c)[_0x4206b3(0x15f)]||[])['map']((_0x2dcf31,_0x130ea7)=>F(_0x2dcf31,_0xc573f1+'-'+_0x81f595[_0x4206b3(0x126)]+'-'+_0x130ea7,_0x1fae5c,void 0x0,_0xcecee5)));}function si(_0x272868,_0x3bd1d8,_0x28f3d2){const _0x1bf97f=_0x331c6d,_0xc96028={..._0x272868[_0x1bf97f(0x179)]};_0x28f3d2!=null&&_0x28f3d2[_0x1bf97f(0x141)]&&_0xc96028[_0x1bf97f(0x139)]===_0x1bf97f(0x141)&&(_0xc96028['fill']=_0x28f3d2['colorChannel1']),_0x272868['tag']===_0x1bf97f(0x15e)&&_0xc96028['id']&&(_0xc96028['id']=_0xc96028['id']+_0x3bd1d8['idSuffix']),Object['entries'](_0xc96028)[_0x1bf97f(0x1a5)](([_0x1cc12c,_0x111440])=>{const _0x1e0faf=_0x1bf97f;_0x1cc12c===_0x1e0faf(0x15e)&&typeof _0x111440==_0x1e0faf(0x181)&&(_0xc96028[_0x1cc12c]=_0x111440['replace'](/url\(#(.*)\)/,_0x1e0faf(0x163)+_0x3bd1d8['idSuffix']+')'));});const {defIds:_0x320ded}=_0x3bd1d8;return!_0x320ded||_0x320ded[_0x1bf97f(0x188)]===0x0||(_0x272868['tag']==='use'&&_0xc96028[_0x1bf97f(0x142)]&&(_0xc96028[_0x1bf97f(0x142)]=_0xc96028[_0x1bf97f(0x142)]+_0x3bd1d8['idSuffix']),Object[_0x1bf97f(0x183)](_0xc96028)[_0x1bf97f(0x1a5)](([_0x5363db,_0x28c029])=>{const _0x217f01=_0x1bf97f;typeof _0x28c029=='string'&&(_0xc96028[_0x5363db]=_0x28c029[_0x217f01(0x153)](/url\(#(.*)\)/,_0x217f01(0x163)+_0x3bd1d8[_0x217f01(0x14b)]+')'));})),_0xc96028;}function ai(_0x42fca3,_0x32238e){const _0x971892=_0x331c6d;var _0x554b46;const {defIds:_0xe88ce8}=_0x32238e;return!_0xe88ce8||_0xe88ce8[_0x971892(0x188)]===0x0?_0x42fca3:_0x42fca3[_0x971892(0x126)]===_0x971892(0x1be)&&((_0x554b46=_0x42fca3[_0x971892(0x15f)])!=null&&_0x554b46['length'])?{..._0x42fca3,'children':_0x42fca3[_0x971892(0x15f)][_0x971892(0x1a2)](_0x1e4a36=>typeof _0x1e4a36[_0x971892(0x179)]['id']==_0x971892(0x181)&&_0xe88ce8&&_0xe88ce8[_0x971892(0x196)](_0x1e4a36[_0x971892(0x179)]['id'])?{..._0x1e4a36,'attrs':{..._0x1e4a36['attrs'],'id':_0x1e4a36[_0x971892(0x179)]['id']+_0x32238e['idSuffix']}}:_0x1e4a36)}:_0x42fca3;}function ci(){const _0x54712e=_0x331c6d;return Math['random']()[_0x54712e(0x12e)](0x24)['substring'](0x2,0x8);}A[_0x331c6d(0x11f)]=_0x331c6d(0x136);const li={'tag':_0x331c6d(0x15b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x331c6d(0x19f),'viewBox':_0x331c6d(0x17e),'width':'1em','height':_0x331c6d(0x150)},'children':[{'tag':'g','attrs':{'fill':_0x331c6d(0x129),'clipPath':_0x331c6d(0x144)},'children':[{'tag':'path','attrs':{'d':_0x331c6d(0x13a)}},{'tag':'path','attrs':{'d':_0x331c6d(0x13c)}}]},{'tag':_0x331c6d(0x1be),'attrs':{},'children':[{'tag':_0x331c6d(0x1b3),'attrs':{'id':_0x331c6d(0x1b4)},'children':[{'tag':_0x331c6d(0x19b),'attrs':{'fill':_0x331c6d(0x199),'d':_0x331c6d(0x12c)}}]}]}],'defIds':[_0x331c6d(0x1b4)]},j=_0x194412(function(_0x4ace88,_0x4e7c9a){const _0x57a61a=_0x331c6d;return _0x4e0d3e(A,Object[_0x57a61a(0x1a0)]({},_0x4ace88,{'id':_0x57a61a(0x190),'ref':_0x4e7c9a,'icon':li}));});j['displayName']=_0x331c6d(0x171);var hi=Object[_0x331c6d(0x170)],ui=(_0x3a705a,_0x553db0,_0x2f3638,_0x5783f5)=>{for(var _0x61961f=_0x5783f5>0x1?void 0x0:_0x5783f5?hi(_0x553db0,_0x2f3638):_0x553db0,_0x1eda28=_0x3a705a['length']-0x1,_0x25341b;_0x1eda28>=0x0;_0x1eda28--)(_0x25341b=_0x3a705a[_0x1eda28])&&(_0x61961f=_0x25341b(_0x61961f)||_0x61961f);return _0x61961f;},l=(_0x59d4d2,_0x34dab4)=>(_0x517add,_0xae83b0)=>_0x34dab4(_0x517add,_0xae83b0,_0x59d4d2);const gi=_0x331c6d(0x12a),V=_0x331c6d(0x182),d=_0x331c6d(0x17d);let f=class extends _0x2321e1{constructor(_0x50bf76,_0x2d8b46,_0x5cceff,_0xd6767b,_0x44e971,_0x5af532,_0x39186d,_0x340bd3,_0x3d078d,_0x11f9f4){const _0x166771=_0x331c6d;super(),g(this,_0x166771(0x1a6),new _0x5c0578(null)),g(this,_0x166771(0x11e),this[_0x166771(0x1a6)][_0x166771(0x14d)]()),g(this,_0x166771(0x1aa),new _0x54d207()),g(this,'_pluginMap',new Map()),(this[_0x166771(0x1ab)]=_0x50bf76,this['_univerInstanceService']=_0x2d8b46,this[_0x166771(0x173)]=_0x5cceff,this[_0x166771(0x1a1)]=_0xd6767b,this[_0x166771(0x186)]=_0x44e971,this['_permissionService']=_0x5af532,this[_0x166771(0x1af)]=_0x39186d,this[_0x166771(0x178)]=_0x340bd3,this[_0x166771(0x11d)]=_0x3d078d,this[_0x166771(0x175)]=_0x11f9f4,this[_0x166771(0x165)]());}get[_0x331c6d(0x187)](){const _0x1b0b54=_0x331c6d;return this[_0x1b0b54(0x1a6)][_0x1b0b54(0x132)];}['_init'](){const _0x35bff2=_0x331c6d;this[_0x35bff2(0x1b9)](),this[_0x35bff2(0x191)]();}[_0x331c6d(0x1b9)](){const _0x4a5cac=_0x331c6d;var _0x52bdb2;const _0x14d279=(_0x52bdb2=this[_0x4a5cac(0x173)][_0x4a5cac(0x1c2)](V))!=null?_0x52bdb2:gi,_0x5649e6=document['getElementById'](_0x14d279);if(!_0x5649e6)return;const _0x34f2db=document[_0x4a5cac(0x1bd)](_0x4a5cac(0x16b));_0x34f2db['id']=d,_0x34f2db[_0x4a5cac(0x1b5)][_0x4a5cac(0x1b2)]=_0x4a5cac(0x19a),_0x34f2db[_0x4a5cac(0x15c)]['position']=_0x4a5cac(0x15d),_0x34f2db['style'][_0x4a5cac(0x1b6)]='0',_0x34f2db[_0x4a5cac(0x15c)]['left']='0',_0x34f2db[_0x4a5cac(0x15c)][_0x4a5cac(0x180)]=_0x4a5cac(0x18c),_0x34f2db[_0x4a5cac(0x15c)][_0x4a5cac(0x12f)]='100%',_0x34f2db[_0x4a5cac(0x15c)][_0x4a5cac(0x161)]='1000',_0x34f2db[_0x4a5cac(0x15c)][_0x4a5cac(0x130)]=_0x4a5cac(0x19f),_0x5649e6[_0x4a5cac(0x147)](_0x34f2db);}[_0x331c6d(0x191)](){const _0x4cc7c6=_0x331c6d;var _0x3b9429,_0xc585ab;[[_0x2a5c0c],[_0x6e57df,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a521c,null]]}],[_0x10c9ff],[_0x1386ee,{'override':[[_0x5ab772,null]]}],[_0x4d0d51,{'hasScroll':!0x1}],[_0xc6d4e1],[_0x665953],[_0x43c299,{'notExecuteFormula':!0x0}],[_0x3956d1],[_0x4d1068],[_0x3749f3],[_0x132370],[_0x3d5050],[_0xd2debf],[_0x109c7e],[_0x363aa5],[_0x5bb360],[_0x508036],[_0x119858],[_0x1ad49f],[_0x21bd90],[_0x531e63,{'notExecuteFormula':!0x0}],[_0x126db7,{'workerURL':_0x4cc7c6(0x17b)}],[_0x9604b2],[_0x3b2798],[_0x143e2e],[_0x42e99c],[_0x4df13f],[_0x183210],[_0x189cef],[_0x59af62,{'notExecuteFormula':!0x0}],[_0x207e64,{'historyListServerUrl':(_0x3b9429=this['_configService'][_0x4cc7c6(0x1c2)](U))==null?void 0x0:_0x3b9429[_0x4cc7c6(0x13f)],'historyPanelComponentKey':(_0xc585ab=this['_configService'][_0x4cc7c6(0x1c2)](U))==null?void 0x0:_0xc585ab[_0x4cc7c6(0x15a)]}]][_0x4cc7c6(0x1a5)](([_0x4d9f57,_0x19ad14])=>this[_0x4cc7c6(0x195)](_0x4d9f57,_0x19ad14));}['dispose'](){const _0x42574a=_0x331c6d;super['dispose'](),this[_0x42574a(0x184)](),this['_pluginMap'][_0x42574a(0x128)]();}[_0x331c6d(0x195)](_0x104131,_0x127f41,_0x2d04ea){const _0x4cd2fd=_0x331c6d;if(this['_pluginMap']['has'](_0x104131[_0x4cd2fd(0x1a9)])&&!_0x2d04ea)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x104131[_0x4cd2fd(0x1a9)]+_0x4cd2fd(0x151));this[_0x4cd2fd(0x14a)][_0x4cd2fd(0x168)](_0x104131[_0x4cd2fd(0x1a9)],[_0x104131,_0x127f41]);}[_0x331c6d(0x155)](){const _0x4c807d=_0x331c6d;return Array[_0x4c807d(0x1c3)](this[_0x4c807d(0x14a)][_0x4c807d(0x192)]());}[_0x331c6d(0x14f)](_0x2ccaf7){const _0xd24924=_0x331c6d,_0x2c70b9=document[_0xd24924(0x194)](d);_0x2c70b9&&(_0x2c70b9[_0xd24924(0x15c)][_0xd24924(0x130)]=_0xd24924(0x16a),this['_initUniver'](_0x2ccaf7,d));}['unMountHistoryContent'](){const _0x1a6d42=_0x331c6d;var _0xd7bf3f;this[_0x1a6d42(0x1aa)][_0x1a6d42(0x16d)](),(_0xd7bf3f=this[_0x1a6d42(0x187)])==null||_0xd7bf3f['dispose'](),this[_0x1a6d42(0x1a6)][_0x1a6d42(0x169)](null);const _0x2acb22=document[_0x1a6d42(0x194)](d);_0x2acb22&&(_0x2acb22[_0x1a6d42(0x15c)]['display']=_0x1a6d42(0x19f));}[_0x331c6d(0x146)](_0x29d0f7,_0x83f5db){const _0x1949fa=_0x331c6d;if(this[_0x1949fa(0x187)])return;const _0x42210f=new _0x4250c9({'locales':{[this[_0x1949fa(0x1ab)][_0x1949fa(0x123)]()]:this[_0x1949fa(0x1ab)][_0x1949fa(0x13d)]()},'override':[[_0x524c2c,{'useClass':_0x37c7cf}]]}),_0x2bd3f0=_0x42210f['__getInjector']();this[_0x1949fa(0x1ba)](this['_themeService'][_0x1949fa(0x17a)][_0x1949fa(0x185)](_0xc9476=>{_0x2bd3f0['get'](_0xf64861)['setDarkMode'](_0xc9476);})),this[_0x1949fa(0x1ba)](this[_0x1949fa(0x175)][_0x1949fa(0x1c0)][_0x1949fa(0x185)](_0x57b2f8=>{const _0x4e3519=_0x1949fa;_0x2bd3f0['get'](_0xf64861)[_0x4e3519(0x152)](_0x57b2f8);})),_0x2bd3f0[_0x1949fa(0x164)](_0x2f14eb)['setLocale'](this[_0x1949fa(0x1ab)]['getCurrentLocale']()),_0x2bd3f0['get'](_0x26c61b)[_0x1949fa(0x19d)](_0x16016c,this[_0x1949fa(0x173)]['getConfig'](_0x16016c));const _0x5a6c46=this[_0x1949fa(0x173)][_0x1949fa(0x1c2)](_0x4a6cd7);_0x5a6c46&&_0x42210f[_0x1949fa(0x195)](_0x4f78ae,{'license':_0x5a6c46['ls']}),this['_pluginMap'][_0x1949fa(0x1a5)](([_0x53e2be,_0x38629d])=>{const _0x5c134e=_0x1949fa;_0x42210f[_0x5c134e(0x195)](_0x53e2be,_0x38629d);}),_0x2bd3f0[_0x1949fa(0x1b8)](_0x41d8c0=>{this['_initListener'](_0x41d8c0,_0x29d0f7);}),this['_historyUniver$']['next'](_0x42210f);const _0x309430=_0x2bd3f0[_0x1949fa(0x164)](_0x458d80),_0x1c416c=this['_checkCanRevert'](_0x29d0f7);_0x309430['triggerLoadVersions'](_0x29d0f7,_0x83f5db,_0x1c416c);}['_initListener'](_0x4db5aa,_0xc56318){const _0x4afa6b=_0x331c6d,_0x2bf9dc=_0x4db5aa['get'](_0x458d80);this[_0x4afa6b(0x1aa)][_0x4afa6b(0x1ae)](_0x2bf9dc[_0x4afa6b(0x1b7)]['subscribe'](_0x240281=>{const _0x6fe288=_0x4afa6b;switch(_0x240281){case _0xee91a8[_0x6fe288(0x125)]:this['_dialogService']['closeAll'](),this[_0x6fe288(0x11d)][_0x6fe288(0x1ac)]();break;case _0xee91a8[_0x6fe288(0x14e)]:this[_0x6fe288(0x184)]();break;case _0xee91a8[_0x6fe288(0x1a4)]:this['unMountHistoryContent'](),this['_messageService']['show']({'content':this[_0x6fe288(0x1ab)]['t']('editHistory.panel.listFetchError'),'type':_0x5a5867[_0x6fe288(0x1a4)],'duration':0xbb8});break;}})),this[_0x4afa6b(0x1aa)]['add'](_0x2bf9dc['revertRevision$'][_0x4afa6b(0x185)](async _0x3c474b=>{const _0x2eea85=_0x4afa6b;_0x3c474b&&this[_0x2eea85(0x1a1)][_0x2eea85(0x1bb)](_0x3ae0b7['id'],{'unitId':_0xc56318,'revision':_0x3c474b});}));}[_0x331c6d(0x156)](_0x4eaf14){const _0xcb5d25=_0x331c6d,_0x591796=this[_0xcb5d25(0x18f)][_0xcb5d25(0x148)](_0x4eaf14)[_0xcb5d25(0x137)]()[_0xcb5d25(0x1a2)](_0x1acb70=>_0x1acb70['getSheetId']()),_0x30e8de=new _0x25ebc0(_0x4eaf14)['id'],_0x51262d=_0x591796['map'](_0x1384b7=>new _0x554502(_0x4eaf14,_0x1384b7)['id']),_0x3fffcb=_0x591796[_0xcb5d25(0x1a2)](_0x27ebe8=>this[_0xcb5d25(0x1af)][_0xcb5d25(0x14c)](_0x4eaf14,_0x27ebe8)['map'](_0x119b14=>new _0x3fdff7(_0x4eaf14,_0x27ebe8,_0x119b14[_0xcb5d25(0x19c)])['id']))['flat'](),_0x42e876=new _0x16b2be(_0x4eaf14)['id'];return this[_0xcb5d25(0x134)][_0xcb5d25(0x18b)]([_0x30e8de,..._0x51262d,..._0x3fffcb,_0x42e876])['every'](_0x2bb36e=>!!_0x2bb36e['value']);}};f=ui([l(0x0,_0x4ff931(_0x2f14eb)),l(0x1,_0x5ed9c7),l(0x2,_0x26c61b),l(0x3,_0x1fccd2),l(0x4,_0x4ca5ec),l(0x5,_0x48466e),l(0x6,_0x4ff931(_0x479be3)),l(0x7,_0x4ff931(_0x3a521c)),l(0x8,_0x4ff931(_0x50ff5f)),l(0x9,_0x4ff931(_0xf64861))],f);const b={'id':_0x331c6d(0x133),'type':_0x6dbac4[_0x331c6d(0x198)],'handler':_0x361611=>{const _0x49e20e=_0x331c6d,_0x20780d=_0x361611['get'](f),_0x115710=_0x361611[_0x49e20e(0x164)](_0x5ed9c7),{unitId:_0x2d2a9b}=_0x1470d7(_0x115710)||{};return _0x2d2a9b?(_0x20780d[_0x49e20e(0x14f)](_0x2d2a9b),!0x0):!0x1;}};function mi(_0x4d33f3){const _0xbb4f67=_0x331c6d;return{'id':b['id'],'type':_0x2fc0f3[_0xbb4f67(0x11b)],'icon':_0xbb4f67(0x171),'tooltip':_0xbb4f67(0x16f),'hidden$':_0x2152e9(_0x4d33f3,_0x57cdf7['UNIVER_SHEET']),'disabled$':_0x1b7a4b(_0x4d33f3,{'workbookTypes':[_0x25ebc0,_0x417430],'worksheetTypes':[],'rangeTypes':[]})};}const vi={[_0x2dab13[_0x331c6d(0x154)]]:{[b['id']]:{'order':0.2,'menuItemFactory':mi}}};var di=Object['getOwnPropertyDescriptor'],fi=(_0xbb54c5,_0x1f97e2,_0x48520e,_0x9c0562)=>{for(var _0x3e5414=_0x9c0562>0x1?void 0x0:_0x9c0562?di(_0x1f97e2,_0x48520e):_0x1f97e2,_0x1d1995=_0xbb54c5['length']-0x1,_0x3e26fa;_0x1d1995>=0x0;_0x1d1995--)(_0x3e26fa=_0xbb54c5[_0x1d1995])&&(_0x3e5414=_0x3e26fa(_0x3e5414)||_0x3e5414);return _0x3e5414;},m=(_0x21db79,_0x64fa7b)=>(_0x286584,_0x209156)=>_0x64fa7b(_0x286584,_0x209156,_0x21db79);let _=class extends _0x5250a2{constructor(_0x2758ad,_0x2f3fa9,_0x241415,_0x180898,_0x32cf5c,_0x2cd5ee,_0x6a5ed5,_0x12c627){const _0x3b1c4f=_0x331c6d;super(),g(this,_0x3b1c4f(0x159),null),(this[_0x3b1c4f(0x1a1)]=_0x2758ad,this[_0x3b1c4f(0x121)]=_0x2f3fa9,this['_componentManager']=_0x241415,this[_0x3b1c4f(0x138)]=_0x180898,this[_0x3b1c4f(0x1ab)]=_0x32cf5c,this[_0x3b1c4f(0x186)]=_0x2cd5ee,this[_0x3b1c4f(0x135)]=_0x6a5ed5,this[_0x3b1c4f(0x143)]=_0x12c627,this[_0x3b1c4f(0x165)]());}['_init'](){const _0x3400bf=_0x331c6d;[b][_0x3400bf(0x1a5)](_0x118981=>this[_0x3400bf(0x1ba)](_0x1aa207(this[_0x3400bf(0x1a1)][_0x3400bf(0x12b)](_0x118981)))),this[_0x3400bf(0x1ba)](this['_componentManager']['register'](_0x3400bf(0x171),j)),this[_0x3400bf(0x121)][_0x3400bf(0x1a7)](vi),this[_0x3400bf(0x1ba)](this['_commandService'][_0x3400bf(0x1a3)](_0x266043=>{const _0x50d2dd=_0x3400bf;if(_0x266043['id']===_0x3ae0b7['id']){this[_0x50d2dd(0x186)][_0x50d2dd(0x18d)]({'content':this['_localeService']['t'](_0x50d2dd(0x145)),'type':_0x5a5867[_0x50d2dd(0x189)],'duration':0x1388});const {unitId:_0x158f8e}=_0x266043[_0x50d2dd(0x131)],_0x2d81bf=this[_0x50d2dd(0x135)][_0x50d2dd(0x1bf)](_0x158f8e),_0x461c7e=_0x2a1cc0([_0x2d81bf['session'][_0x50d2dd(0x13b)],_0x2d81bf[_0x50d2dd(0x162)]])[_0x50d2dd(0x185)](async([_0x5929d9,_0xd42dd0])=>{const _0x3afe68=_0x50d2dd;var _0x28ad6;_0x5929d9[_0x3afe68(0x127)]===_0x170c94['CHANGESET_ACK']&&(_0xd42dd0==null?void 0x0:_0xd42dd0[_0x3afe68(0x149)])===_0x531862[_0x3afe68(0x177)]&&_0x5929d9[_0x3afe68(0x11c)]['mutations'][_0x3afe68(0x18a)](_0x36f9d4=>_0x36f9d4['id']===_0x3ae0b7['id'])&&(this[_0x3afe68(0x138)]['unMountHistoryContent'](),_0x461c7e[_0x3afe68(0x197)](),this[_0x3afe68(0x159)]&&clearTimeout(this[_0x3afe68(0x159)]),await((_0x28ad6=this['_localCacheService'])==null?void 0x0:_0x28ad6[_0x3afe68(0x157)]()),setTimeout(()=>window[_0x3afe68(0x1b0)][_0x3afe68(0x120)]()));});this[_0x50d2dd(0x159)]=setTimeout(()=>{const _0x4c7dd9=_0x50d2dd;_0x461c7e[_0x4c7dd9(0x197)](),this['_messageService'][_0x4c7dd9(0x18d)]({'content':this[_0x4c7dd9(0x1ab)]['t']('editHistory.panel.revertFailed'),'type':_0x5a5867[_0x4c7dd9(0x1a4)],'duration':0xbb8});},0x1388);}}));}};_=fi([m(0x0,_0x1fccd2),m(0x1,_0x2cd13e),m(0x2,_0x4ff931(_0x446efd)),m(0x3,_0x4ff931(f)),m(0x4,_0x4ff931(_0x2f14eb)),m(0x5,_0x4ca5ec),m(0x6,_0x4ff931(_0x469925)),m(0x7,_0x517c1)],_);var pi=Object[_0x331c6d(0x170)],_i=(_0x4bf22d,_0x1a8c74,_0x34eedc,_0x722673)=>{const _0x1933d8=_0x331c6d;for(var _0x147620=_0x722673>0x1?void 0x0:_0x722673?pi(_0x1a8c74,_0x34eedc):_0x1a8c74,_0x19b2c4=_0x4bf22d[_0x1933d8(0x188)]-0x1,_0x124428;_0x19b2c4>=0x0;_0x19b2c4--)(_0x124428=_0x4bf22d[_0x19b2c4])&&(_0x147620=_0x124428(_0x147620)||_0x147620);return _0x147620;},N=(_0x4ef387,_0x1ccd31)=>(_0x2065f7,_0x22171b)=>_0x1ccd31(_0x2065f7,_0x22171b,_0x4ef387);const Si=_0x331c6d(0x122);var p;let H=(p=class extends _0x38e956{constructor(_0x441bf8=R,_0x30328b,_0x21598c){const _0x1fe0d4=_0x331c6d;super(),this['_config']=_0x441bf8,this['_injector']=_0x30328b,this[_0x1fe0d4(0x173)]=_0x21598c;const {menu:_0x10859b,..._0x1bbfc4}=_0x2d571a({},R,this['_config']);_0x10859b&&this[_0x1fe0d4(0x173)]['setConfig'](_0x1fe0d4(0x12d),_0x10859b,{'merge':!0x0}),this[_0x1fe0d4(0x173)]['setConfig'](U,_0x1bbfc4),this[_0x1fe0d4(0x124)][_0x1fe0d4(0x18e)]&&this[_0x1fe0d4(0x173)][_0x1fe0d4(0x19d)](V,this[_0x1fe0d4(0x124)][_0x1fe0d4(0x18e)]);}[_0x331c6d(0x174)](){const _0x53ee5a=_0x331c6d;[[f],[_]][_0x53ee5a(0x1a5)](_0x24a23b=>this['_injector'][_0x53ee5a(0x1ae)](_0x24a23b));}[_0x331c6d(0x1bc)](){const _0x1b36c0=_0x331c6d;this['_injector'][_0x1b36c0(0x164)](_);}},g(p,_0x331c6d(0x176),_0x57cdf7['UNIVER_UNKNOWN']),g(p,_0x331c6d(0x1a9),Si),p);H=_i([N(0x1,_0x4ff931(_0x2c6ded)),N(0x2,_0x26c61b)],H);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xf78a10=_0x2fe0;(function(_0x1db67d,_0xbddc76){const _0x435371=_0x2fe0,_0x280d3b=_0x1db67d();while(!![]){try{const _0x142c9=parseInt(_0x435371(0x100))/0x1+parseInt(_0x435371(0x150))/0x2*(-parseInt(_0x435371(0x108))/0x3)+-parseInt(_0x435371(0xb5))/0x4*(parseInt(_0x435371(0x149))/0x5)+-parseInt(_0x435371(0xf0))/0x6+-parseInt(_0x435371(0x12d))/0x7+parseInt(_0x435371(0xf5))/0x8+-parseInt(_0x435371(0x12e))/0x9*(-parseInt(_0x435371(0x122))/0xa);if(_0x142c9===_0xbddc76)break;else _0x280d3b['push'](_0x280d3b['shift']());}catch(_0x4abe6b){_0x280d3b['push'](_0x280d3b['shift']());}}}(_0x1d2a,0x211eb));var G=Object[_0xf78a10(0x114)],B=(_0x86d019,_0x1fc404,_0x18e246)=>_0x1fc404 in _0x86d019?G(_0x86d019,_0x1fc404,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18e246}):_0x86d019[_0x1fc404]=_0x18e246,g=(_0xc384c,_0x1f6bc0,_0x9ef671)=>B(_0xc384c,typeof _0x1f6bc0!='symbol'?_0x1f6bc0+'':_0x1f6bc0,_0x9ef671);import{Inject as _0x252e05,LocaleService as _0xe32952,IUniverInstanceService as _0xf20a6e,IConfigService as _0x28b503,ICommandService as _0x30e7f8,IPermissionService as _0x5f1c0f,ThemeService as _0x42c531,Disposable as _0x5f4eaa,DisposableCollection as _0x47f784,Univer as _0x13cb15,IAuthzIoService as _0x1198bc,CommandType as _0x2f5986,UniverInstanceType as _0x49989d,RxDisposable as _0x3def99,toDisposable as _0x2df2dc,Plugin as _0x5198da,merge as _0x2666af,Injector as _0x19f12b}from'@univerjs/core';import{UniverCollaborationPlugin as _0x27aa4f,RevertRevisionMutation as _0xd8c4da,CollaborationEvent as _0x2268c5}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5bef48,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e1b57,CollaborationController as _0x4c88aa,ILocalCacheService as _0x1b2f04,CollaborationStatus as _0x2d1023}from'@univerjs-pro/collaboration-client';import{MessageType as _0x22aee2}from'@univerjs/design';import{useRef as _0x178da8,createElement as _0x18efac,forwardRef as _0x5d7d9f}from'react';import{IMessageService as _0x1a52b6,IDialogService as _0x1ed199,ISidebarService as _0x46e6cf,UniverUIPlugin as _0x5d2d16,getMenuHiddenObservable as _0x4f4342,MenuItemType as _0x18006f,RibbonStartGroup as _0x42a4fb,IMenuManagerService as _0x10b933,ComponentManager as _0x102e68}from'@univerjs/ui';import{BehaviorSubject as _0x156af4,combineLatest as _0x31b746}from'rxjs';import{RangeProtectionRuleModel as _0x54e193,UniverSheetsPlugin as _0x41e00e,WorkbookEditablePermission as _0x1a2eb8,WorksheetEditPermission as _0xe0ef57,RangeProtectionPermissionEditPoint as _0x4d80f2,WorkbookRecoverHistoryPermission as _0x169489,getSheetCommandTarget as _0x2b375f,WorkbookViewHistoryPermission as _0x42bc68}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x3603df,HistoryManagerService as _0x40d8b5,HistoryModeStatus as _0x166d17}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x22522a,UniverLicensePlugin as _0x484890}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x3eef71}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x579cf4}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x3566c7}from'@univerjs-pro/sheets-sparkline-ui';function _0x1d2a(){const _0xd6cb7=['every','state$','absolute','_localeService','UNIVER_UNKNOWN','fill','Exited','_selectionProtectionRuleModel','_initListener','closeAll','display','__getInjector','set','3283070lupLgg','univerContainerId','subscribe','_revertErrorTimer','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','1000','asObservable','_pluginMap','session','_checkCanRevert','HistoryIcon','99393OftDsb','9yuirBh','executeCommand','attrs','_permissionService','history-icon_clip0_907_281','_disposableCollection','show','UNIVER_SHEET','_initContainer','SYNCED','setConfig','composePermission','trim','history-container','setTheme','_initPlugins','disposeWithMe','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','_dialogService','mutations','has','_themeService','univerjs-icon\x20univerjs-icon-','string','clipPath','_initUniver','_config','612690qszYRp','left','forEach','colorChannel1','svg','mountHistoryContent','path','10kDSMql','height','Error','_collaborationController','setDarkMode','editHistory.panel.title','http://www.w3.org/2000/svg','map','defs','historyUniver','getOwnPropertyDescriptor','history-icon','mergeMenu','[HistoryLoaderService]:\x20Plugin\x20','4wSqnbd','unMountHistoryContent','next','_sidebarService','getElementById','params','_init','current','100%','status','historyUniver$','clear','historyListServerUrl','getCollabEntity','_injector','getLocales','top','dispose','\x20has\x20been\x20registered.','Loading','random','getSheetId','entries','from','position','location','getSheets','editHistory.panel.listFetchError','onStarting','url(#$1','univer-container','none','currentColor','revertRevision$','pluginName','_univerInstanceService','some','registerPlugin','1em','0\x200\x2016\x2016','register','status$','_messageService','edit-history-loader.config','OTHERS','get','style','_configService','value','_commandService','type','eventID','flat','zIndex','onSteady','triggerLoadVersions','length','editHistory.panel.reverting','dataset','694710YqCqPs','Entered','getConfig','OPERATION','reload','149616nPyQuF','menu','getCurrentLocale','mask','width','includes','_componentManager','unsubscribe','tag','url(#history-icon_clip0_907_281)','data','67567jeUoGV','add','children','event$','div','_historyUniver$','_menuManagerService','close','15837TEXPIf','exhaustSavingTask','displayName','onCommandExecuted','editHistory.panel.revertFailed','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UNIVER_CONTAINER_ID','block','idSuffix','values','xlink:href','_historyManagerService','defineProperty'];_0x1d2a=function(){return _0xd6cb7;};return _0x1d2a();}function _0x2fe0(_0x402ed9,_0x1b78db){const _0x1d2a68=_0x1d2a();return _0x2fe0=function(_0x2fe035,_0x565aa9){_0x2fe035=_0x2fe035-0xb5;let _0x3bdcaf=_0x1d2a68[_0x2fe035];return _0x3bdcaf;},_0x2fe0(_0x402ed9,_0x1b78db);}import{UniverDataValidationPlugin as _0x42df7d}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x1246f5}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x30382a}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x18e065,IImageIoService as _0x469544}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x27a4ea}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x468496}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x572d40}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x2863cc}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x423509}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x1ee7ea}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x450b2f}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2e757f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x1a35ce}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x36d841}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x564231}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x354dcc}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x2377ae}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x5a0ef4}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x47c71a}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x136dba}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x29ca03}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x5b69e9}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0xd0ca97,getCurrentRangeDisable$ as _0x42c3a5}from'@univerjs/sheets-ui';const x=_0xf78a10(0xe0),w={};function A({ref:_0x4f85fc,..._0x2c67ed}){const _0x361666=_0xf78a10,{icon:_0x973471,id:_0xf3800,className:_0x27b018,extend:_0x299202,..._0x526bd0}=_0x2c67ed,_0x4e1553=(_0x361666(0x144)+_0xf3800+'\x20'+(_0x27b018||''))[_0x361666(0x13a)](),_0x15c4da=_0x178da8('_'+si());return F(_0x973471,''+_0xf3800,{'defIds':_0x973471['defIds'],'idSuffix':_0x15c4da[_0x361666(0xbc)]},{'ref':_0x4f85fc,'className':_0x4e1553,..._0x526bd0},_0x299202);}function F(_0x5ebfce,_0xebbc1b,_0x2ed9f3,_0x578135,_0x3fa93d){const _0x2f5479=_0xf78a10;return _0x18efac(_0x5ebfce[_0x2f5479(0xfd)],{'key':_0xebbc1b,...ni(_0x5ebfce,_0x2ed9f3,_0x3fa93d),..._0x578135},(oi(_0x5ebfce,_0x2ed9f3)[_0x2f5479(0x102)]||[])[_0x2f5479(0x157)]((_0x314818,_0x416671)=>F(_0x314818,_0xebbc1b+'-'+_0x5ebfce['tag']+'-'+_0x416671,_0x2ed9f3,void 0x0,_0x3fa93d)));}function ni(_0x34fc93,_0x50eed3,_0xa9fcac){const _0x50655c=_0xf78a10,_0x2a2cce={..._0x34fc93[_0x50655c(0x130)]};_0xa9fcac!=null&&_0xa9fcac[_0x50655c(0x14c)]&&_0x2a2cce[_0x50655c(0x11a)]===_0x50655c(0x14c)&&(_0x2a2cce[_0x50655c(0x11a)]=_0xa9fcac[_0x50655c(0x14c)]),_0x34fc93[_0x50655c(0xfd)]===_0x50655c(0xf8)&&_0x2a2cce['id']&&(_0x2a2cce['id']=_0x2a2cce['id']+_0x50eed3[_0x50655c(0x110)]),Object[_0x50655c(0xcb)](_0x2a2cce)[_0x50655c(0x14b)](([_0x3f94aa,_0x20fd07])=>{const _0x1135a2=_0x50655c;_0x3f94aa===_0x1135a2(0xf8)&&typeof _0x20fd07=='string'&&(_0x2a2cce[_0x3f94aa]=_0x20fd07['replace'](/url\(#(.*)\)/,_0x1135a2(0xd2)+_0x50eed3[_0x1135a2(0x110)]+')'));});const {defIds:_0x19931d}=_0x50eed3;return!_0x19931d||_0x19931d[_0x50655c(0xed)]===0x0||(_0x34fc93['tag']==='use'&&_0x2a2cce[_0x50655c(0x112)]&&(_0x2a2cce[_0x50655c(0x112)]=_0x2a2cce[_0x50655c(0x112)]+_0x50eed3['idSuffix']),Object[_0x50655c(0xcb)](_0x2a2cce)[_0x50655c(0x14b)](([_0x68f18e,_0x17f727])=>{const _0x13bf04=_0x50655c;typeof _0x17f727==_0x13bf04(0x145)&&(_0x2a2cce[_0x68f18e]=_0x17f727['replace'](/url\(#(.*)\)/,_0x13bf04(0xd2)+_0x50eed3['idSuffix']+')'));})),_0x2a2cce;}function oi(_0x4a5df8,_0x3b137f){const _0x2f9209=_0xf78a10;var _0x2c8e5e;const {defIds:_0x365d9b}=_0x3b137f;return!_0x365d9b||_0x365d9b[_0x2f9209(0xed)]===0x0?_0x4a5df8:_0x4a5df8[_0x2f9209(0xfd)]===_0x2f9209(0x158)&&((_0x2c8e5e=_0x4a5df8['children'])!=null&&_0x2c8e5e[_0x2f9209(0xed)])?{..._0x4a5df8,'children':_0x4a5df8[_0x2f9209(0x102)]['map'](_0x40a203=>typeof _0x40a203['attrs']['id']==_0x2f9209(0x145)&&_0x365d9b&&_0x365d9b[_0x2f9209(0xfa)](_0x40a203[_0x2f9209(0x130)]['id'])?{..._0x40a203,'attrs':{..._0x40a203[_0x2f9209(0x130)],'id':_0x40a203['attrs']['id']+_0x3b137f['idSuffix']}}:_0x40a203)}:_0x4a5df8;}function si(){const _0x5e0666=_0xf78a10;return Math[_0x5e0666(0xc9)]()['toString'](0x24)['substring'](0x2,0x8);}A['displayName']='UniverIcon';const ai={'tag':_0xf78a10(0x14d),'attrs':{'xmlns':_0xf78a10(0x156),'fill':_0xf78a10(0xd4),'viewBox':_0xf78a10(0xdc),'width':'1em','height':_0xf78a10(0xdb)},'children':[{'tag':'g','attrs':{'fill':_0xf78a10(0xd5),'clipPath':_0xf78a10(0xfe)},'children':[{'tag':_0xf78a10(0x14f),'attrs':{'d':_0xf78a10(0x126)}},{'tag':'path','attrs':{'d':_0xf78a10(0x13f)}}]},{'tag':_0xf78a10(0x158),'attrs':{},'children':[{'tag':_0xf78a10(0x146),'attrs':{'id':_0xf78a10(0x132)},'children':[{'tag':_0xf78a10(0x14f),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},j=_0x5d7d9f(function(_0x382fca,_0x550fa2){const _0x40b17b=_0xf78a10;return _0x18efac(A,Object['assign']({},_0x382fca,{'id':_0x40b17b(0x15b),'ref':_0x550fa2,'icon':ai}));});j[_0xf78a10(0x10a)]=_0xf78a10(0x12c);var ci=Object[_0xf78a10(0x15a)],li=(_0x45f2ce,_0x53f96b,_0x3f431d,_0x11d16b)=>{const _0x1ace2f=_0xf78a10;for(var _0x27476f=_0x11d16b>0x1?void 0x0:_0x11d16b?ci(_0x53f96b,_0x3f431d):_0x53f96b,_0x143c36=_0x45f2ce[_0x1ace2f(0xed)]-0x1,_0x310ee8;_0x143c36>=0x0;_0x143c36--)(_0x310ee8=_0x45f2ce[_0x143c36])&&(_0x27476f=_0x310ee8(_0x27476f)||_0x27476f);return _0x27476f;},l=(_0x3763e3,_0x37a6f6)=>(_0x3e7d27,_0x945643)=>_0x37a6f6(_0x3e7d27,_0x945643,_0x3763e3);const ui=_0xf78a10(0xd3),V=_0xf78a10(0x10e),d='univer-history-container';let f=class extends _0x5f4eaa{constructor(_0x4a42f2,_0x1c9b88,_0x53171a,_0x3c1195,_0x24498,_0x25bd84,_0x418c40,_0x2b7ae9,_0xb190d4,_0x17acce){const _0x112366=_0xf78a10;super(),g(this,_0x112366(0x105),new _0x156af4(null)),g(this,_0x112366(0xbf),this[_0x112366(0x105)][_0x112366(0x128)]()),g(this,'_disposableCollection',new _0x47f784()),g(this,'_pluginMap',new Map()),(this[_0x112366(0x118)]=_0x4a42f2,this[_0x112366(0xd8)]=_0x1c9b88,this[_0x112366(0xe4)]=_0x53171a,this['_commandService']=_0x3c1195,this[_0x112366(0xdf)]=_0x24498,this[_0x112366(0x131)]=_0x25bd84,this['_selectionProtectionRuleModel']=_0x418c40,this['_dialogService']=_0x2b7ae9,this[_0x112366(0xb8)]=_0xb190d4,this[_0x112366(0x143)]=_0x17acce,this[_0x112366(0xbb)]());}get[_0xf78a10(0x159)](){const _0x5e1ebf=_0xf78a10;return this[_0x5e1ebf(0x105)]['value'];}[_0xf78a10(0xbb)](){const _0x33fa31=_0xf78a10;this[_0x33fa31(0x136)](),this[_0x33fa31(0x13d)]();}[_0xf78a10(0x136)](){const _0x266e48=_0xf78a10;var _0x134c05;const _0x3f89cc=(_0x134c05=this[_0x266e48(0xe4)][_0x266e48(0xf2)](V))!=null?_0x134c05:ui,_0x33e0ef=document[_0x266e48(0xb9)](_0x3f89cc);if(!_0x33e0ef)return;const _0x3a8226=document['createElement'](_0x266e48(0x104));_0x3a8226['id']=d,_0x3a8226[_0x266e48(0xef)]['uComp']=_0x266e48(0x13b),_0x3a8226[_0x266e48(0xe3)][_0x266e48(0xcd)]=_0x266e48(0x117),_0x3a8226['style'][_0x266e48(0xc5)]='0',_0x3a8226[_0x266e48(0xe3)][_0x266e48(0x14a)]='0',_0x3a8226['style'][_0x266e48(0xf9)]=_0x266e48(0xbd),_0x3a8226['style'][_0x266e48(0x151)]=_0x266e48(0xbd),_0x3a8226[_0x266e48(0xe3)][_0x266e48(0xea)]=_0x266e48(0x127),_0x3a8226['style']['display']=_0x266e48(0xd4),_0x33e0ef['appendChild'](_0x3a8226);}[_0xf78a10(0x13d)](){const _0x2aa918=_0xf78a10;var _0x2d4655;[[_0x572d40],[_0x5d2d16,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1ed199,null]]}],[_0x2863cc],[_0x18e065,{'override':[[_0x469544,null]]}],[_0x1246f5,{'hasScroll':!0x1}],[_0x30382a],[_0x5b69e9],[_0x41e00e,{'notExecuteFormula':!0x0}],[_0xd0ca97],[_0x5a0ef4],[_0x47c71a],[_0x27aa4f],[_0x354dcc],[_0x2377ae],[_0x1ee7ea],[_0x450b2f],[_0x136dba],[_0x29ca03],[_0x42df7d],[_0x2e757f],[_0x1a35ce],[_0x468496,{'notExecuteFormula':!0x0}],[_0x423509,{'workerURL':'./worker.js'}],[_0x27a4ea],[_0x36d841],[_0x564231],[_0x579cf4],[_0x3566c7],[_0x3eef71,{'notExecuteFormula':!0x0}],[_0x3603df,{'historyListServerUrl':(_0x2d4655=this[_0x2aa918(0xe4)]['getConfig'](x))==null?void 0x0:_0x2d4655[_0x2aa918(0xc1)]}]][_0x2aa918(0x14b)](([_0xe7212f,_0x31a974])=>this['registerPlugin'](_0xe7212f,_0x31a974));}[_0xf78a10(0xc6)](){const _0x17e90a=_0xf78a10;super['dispose'](),this['unMountHistoryContent'](),this[_0x17e90a(0x129)][_0x17e90a(0xc0)]();}[_0xf78a10(0xda)](_0x153a11,_0x30c8ca,_0x2e6467){const _0x1e120d=_0xf78a10;if(this[_0x1e120d(0x129)][_0x1e120d(0x142)](_0x153a11['pluginName'])&&!_0x2e6467)throw new Error(_0x1e120d(0x15d)+_0x153a11[_0x1e120d(0xd7)]+_0x1e120d(0xc7));this[_0x1e120d(0x129)][_0x1e120d(0x121)](_0x153a11[_0x1e120d(0xd7)],[_0x153a11,_0x30c8ca]);}['getAllPlugins'](){const _0x4323af=_0xf78a10;return Array[_0x4323af(0xcc)](this[_0x4323af(0x129)][_0x4323af(0x111)]());}[_0xf78a10(0x14e)](_0x562e38){const _0x518ed3=_0xf78a10,_0x24efcc=document['getElementById'](d);_0x24efcc&&(_0x24efcc['style'][_0x518ed3(0x11f)]=_0x518ed3(0x10f),this[_0x518ed3(0x147)](_0x562e38,d));}[_0xf78a10(0xb6)](){const _0x5a5675=_0xf78a10;var _0x39c7b1;this[_0x5a5675(0x133)]['dispose'](),(_0x39c7b1=this[_0x5a5675(0x159)])==null||_0x39c7b1['dispose'](),this[_0x5a5675(0x105)][_0x5a5675(0xb7)](null);const _0x5a0b9d=document[_0x5a5675(0xb9)](d);_0x5a0b9d&&(_0x5a0b9d[_0x5a5675(0xe3)][_0x5a5675(0x11f)]=_0x5a5675(0xd4));}[_0xf78a10(0x147)](_0x2f918f,_0x168e03){const _0x5405c0=_0xf78a10;if(this[_0x5405c0(0x159)])return;const _0x16b369=new _0x13cb15({'locales':{[this[_0x5405c0(0x118)][_0x5405c0(0xf7)]()]:this[_0x5405c0(0x118)][_0x5405c0(0xc4)]()},'override':[[_0x1198bc,{'useClass':_0x5bef48}]]}),_0x44dc6e=_0x16b369[_0x5405c0(0x120)]();this[_0x5405c0(0x13e)](this[_0x5405c0(0x143)]['darkMode$'][_0x5405c0(0x124)](_0x4d9d8b=>{const _0xdc1fc5=_0x5405c0;_0x44dc6e[_0xdc1fc5(0xe2)](_0x42c531)[_0xdc1fc5(0x154)](_0x4d9d8b);})),this[_0x5405c0(0x13e)](this[_0x5405c0(0x143)]['currentTheme$'][_0x5405c0(0x124)](_0x20d1e3=>{const _0x42fd8a=_0x5405c0;_0x44dc6e[_0x42fd8a(0xe2)](_0x42c531)[_0x42fd8a(0x13c)](_0x20d1e3);})),_0x44dc6e[_0x5405c0(0xe2)](_0xe32952)['setLocale'](this[_0x5405c0(0x118)]['getCurrentLocale']()),_0x44dc6e[_0x5405c0(0xe2)](_0x28b503)[_0x5405c0(0x138)](_0x5e1b57,this[_0x5405c0(0xe4)][_0x5405c0(0xf2)](_0x5e1b57));const _0x2b6edd=this[_0x5405c0(0xe4)]['getConfig'](_0x22522a);_0x2b6edd&&_0x16b369[_0x5405c0(0xda)](_0x484890,{'license':_0x2b6edd['ls']}),this[_0x5405c0(0x129)]['forEach'](([_0x242490,_0x17a479])=>{_0x16b369['registerPlugin'](_0x242490,_0x17a479);}),_0x44dc6e['invoke'](_0x337ddb=>{const _0x540114=_0x5405c0;this[_0x540114(0x11d)](_0x337ddb,_0x2f918f);}),this['_historyUniver$']['next'](_0x16b369);const _0x19a75f=_0x44dc6e['get'](_0x40d8b5),_0xa1f216=this[_0x5405c0(0x12b)](_0x2f918f);_0x19a75f[_0x5405c0(0xec)](_0x2f918f,_0x168e03,_0xa1f216);}[_0xf78a10(0x11d)](_0x5664bc,_0x48cc4f){const _0x44e39c=_0xf78a10,_0x20bd7b=_0x5664bc[_0x44e39c(0xe2)](_0x40d8b5);this['_disposableCollection'][_0x44e39c(0x101)](_0x20bd7b[_0x44e39c(0xde)][_0x44e39c(0x124)](_0x204dc1=>{const _0x355a75=_0x44e39c;switch(_0x204dc1){case _0x166d17[_0x355a75(0xf1)]:this[_0x355a75(0x140)][_0x355a75(0x11e)](),this['_sidebarService'][_0x355a75(0x107)]();break;case _0x166d17[_0x355a75(0x11b)]:this[_0x355a75(0xb6)]();break;case _0x166d17[_0x355a75(0x152)]:this[_0x355a75(0xb6)](),this[_0x355a75(0xdf)][_0x355a75(0x134)]({'content':this[_0x355a75(0x118)]['t'](_0x355a75(0xd0)),'type':_0x22aee2[_0x355a75(0x152)],'duration':0xbb8});break;}})),this[_0x44e39c(0x133)][_0x44e39c(0x101)](_0x20bd7b[_0x44e39c(0xd6)][_0x44e39c(0x124)](async _0x44b37e=>{const _0x241573=_0x44e39c;_0x44b37e&&this[_0x241573(0xe6)][_0x241573(0x12f)](_0xd8c4da['id'],{'unitId':_0x48cc4f,'revision':_0x44b37e});}));}['_checkCanRevert'](_0x19e1cf){const _0x1b8227=_0xf78a10,_0x4de153=this[_0x1b8227(0xd8)]['getUnit'](_0x19e1cf)[_0x1b8227(0xcf)]()[_0x1b8227(0x157)](_0x6790ae=>_0x6790ae[_0x1b8227(0xca)]()),_0xfcc5d4=new _0x1a2eb8(_0x19e1cf)['id'],_0x2659fa=_0x4de153['map'](_0x33fc12=>new _0xe0ef57(_0x19e1cf,_0x33fc12)['id']),_0xee2b92=_0x4de153[_0x1b8227(0x157)](_0x29eefb=>this[_0x1b8227(0x11c)]['getSubunitRuleList'](_0x19e1cf,_0x29eefb)[_0x1b8227(0x157)](_0x4c794b=>new _0x4d80f2(_0x19e1cf,_0x29eefb,_0x4c794b['permissionId'])['id']))[_0x1b8227(0xe9)](),_0x2c5bc1=new _0x169489(_0x19e1cf)['id'];return this[_0x1b8227(0x131)][_0x1b8227(0x139)]([_0xfcc5d4,..._0x2659fa,..._0xee2b92,_0x2c5bc1])[_0x1b8227(0x115)](_0x30e081=>!!_0x30e081[_0x1b8227(0xe5)]);}};f=li([l(0x0,_0x252e05(_0xe32952)),l(0x1,_0xf20a6e),l(0x2,_0x28b503),l(0x3,_0x30e7f8),l(0x4,_0x1a52b6),l(0x5,_0x5f1c0f),l(0x6,_0x252e05(_0x54e193)),l(0x7,_0x252e05(_0x1ed199)),l(0x8,_0x252e05(_0x46e6cf)),l(0x9,_0x252e05(_0x42c531))],f);const b={'id':'univer.operation.toggle-edit-history','type':_0x2f5986[_0xf78a10(0xf3)],'handler':_0x4e1414=>{const _0x1cd587=_0xf78a10,_0x574487=_0x4e1414[_0x1cd587(0xe2)](f),_0x215ad6=_0x4e1414[_0x1cd587(0xe2)](_0xf20a6e),{unitId:_0x3650c1}=_0x2b375f(_0x215ad6)||{};return _0x3650c1?(_0x574487['mountHistoryContent'](_0x3650c1),!0x0):!0x1;}};function hi(_0x2b767b){const _0x3c4e81=_0xf78a10;return{'id':b['id'],'type':_0x18006f['BUTTON'],'icon':'HistoryIcon','tooltip':_0x3c4e81(0x155),'hidden$':_0x4f4342(_0x2b767b,_0x49989d[_0x3c4e81(0x135)]),'disabled$':_0x42c3a5(_0x2b767b,{'workbookTypes':[_0x1a2eb8,_0x42bc68],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x42a4fb[_0xf78a10(0xe1)]]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object['getOwnPropertyDescriptor'],vi=(_0x4a0c86,_0x59dd1d,_0x51e904,_0x32a990)=>{const _0xde60bb=_0xf78a10;for(var _0x4536d6=_0x32a990>0x1?void 0x0:_0x32a990?mi(_0x59dd1d,_0x51e904):_0x59dd1d,_0x8d6d10=_0x4a0c86[_0xde60bb(0xed)]-0x1,_0x3e1678;_0x8d6d10>=0x0;_0x8d6d10--)(_0x3e1678=_0x4a0c86[_0x8d6d10])&&(_0x4536d6=_0x3e1678(_0x4536d6)||_0x4536d6);return _0x4536d6;},m=(_0x189c93,_0x49fb75)=>(_0x51ba99,_0x9130d6)=>_0x49fb75(_0x51ba99,_0x9130d6,_0x189c93);let p=class extends _0x3def99{constructor(_0x2203ba,_0x3cb111,_0x4f8df0,_0x5d3008,_0x101a84,_0x566142,_0x1ffe96,_0x1b331f){const _0x283d1e=_0xf78a10;super(),g(this,_0x283d1e(0x125),null),(this[_0x283d1e(0xe6)]=_0x2203ba,this[_0x283d1e(0x106)]=_0x3cb111,this[_0x283d1e(0xfb)]=_0x4f8df0,this['_historyManagerService']=_0x5d3008,this[_0x283d1e(0x118)]=_0x101a84,this[_0x283d1e(0xdf)]=_0x566142,this[_0x283d1e(0x153)]=_0x1ffe96,this['_localCacheService']=_0x1b331f,this[_0x283d1e(0xbb)]());}[_0xf78a10(0xbb)](){const _0x185a0b=_0xf78a10;[b][_0x185a0b(0x14b)](_0x11af86=>this['disposeWithMe'](_0x2df2dc(this[_0x185a0b(0xe6)]['registerCommand'](_0x11af86)))),this['disposeWithMe'](this['_componentManager'][_0x185a0b(0xdd)](_0x185a0b(0x12c),j)),this[_0x185a0b(0x106)][_0x185a0b(0x15c)](gi),this[_0x185a0b(0x13e)](this[_0x185a0b(0xe6)][_0x185a0b(0x10b)](_0xe6d86c=>{const _0x349a39=_0x185a0b;if(_0xe6d86c['id']===_0xd8c4da['id']){this[_0x349a39(0xdf)][_0x349a39(0x134)]({'content':this[_0x349a39(0x118)]['t'](_0x349a39(0xee)),'type':_0x22aee2[_0x349a39(0xc8)],'duration':0x1388});const {unitId:_0x5a84cd}=_0xe6d86c[_0x349a39(0xba)],_0x513746=this[_0x349a39(0x153)][_0x349a39(0xc2)](_0x5a84cd),_0x561c3f=_0x31b746([_0x513746[_0x349a39(0x12a)][_0x349a39(0x103)],_0x513746[_0x349a39(0x116)]])[_0x349a39(0x124)](async([_0x1fbb3f,_0x4c1019])=>{const _0x2de020=_0x349a39;var _0x46df67;_0x1fbb3f[_0x2de020(0xe8)]===_0x2268c5['CHANGESET_ACK']&&(_0x4c1019==null?void 0x0:_0x4c1019[_0x2de020(0xbe)])===_0x2d1023[_0x2de020(0x137)]&&_0x1fbb3f[_0x2de020(0xff)][_0x2de020(0x141)][_0x2de020(0xd9)](_0x1840f4=>_0x1840f4['id']===_0xd8c4da['id'])&&(this[_0x2de020(0x113)]['unMountHistoryContent'](),_0x561c3f['unsubscribe'](),this[_0x2de020(0x125)]&&clearTimeout(this[_0x2de020(0x125)]),await((_0x46df67=this['_localCacheService'])==null?void 0x0:_0x46df67[_0x2de020(0x109)]()),setTimeout(()=>window[_0x2de020(0xce)][_0x2de020(0xf4)]()));});this[_0x349a39(0x125)]=setTimeout(()=>{const _0x1dacd5=_0x349a39;_0x561c3f[_0x1dacd5(0xfc)](),this[_0x1dacd5(0xdf)][_0x1dacd5(0x134)]({'content':this[_0x1dacd5(0x118)]['t'](_0x1dacd5(0x10c)),'type':_0x22aee2[_0x1dacd5(0x152)],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x30e7f8),m(0x1,_0x10b933),m(0x2,_0x252e05(_0x102e68)),m(0x3,_0x252e05(f)),m(0x4,_0x252e05(_0xe32952)),m(0x5,_0x1a52b6),m(0x6,_0x252e05(_0x4c88aa)),m(0x7,_0x1b2f04)],p);var di=Object[_0xf78a10(0x15a)],fi=(_0x3e591d,_0xf45ef4,_0x383801,_0x182481)=>{for(var _0x21ccd1=_0x182481>0x1?void 0x0:_0x182481?di(_0xf45ef4,_0x383801):_0xf45ef4,_0x17bcdd=_0x3e591d['length']-0x1,_0x249352;_0x17bcdd>=0x0;_0x17bcdd--)(_0x249352=_0x3e591d[_0x17bcdd])&&(_0x21ccd1=_0x249352(_0x21ccd1)||_0x21ccd1);return _0x21ccd1;},R=(_0x13b0be,_0x366fed)=>(_0x57b1ff,_0x13fa82)=>_0x366fed(_0x57b1ff,_0x13fa82,_0x13b0be);const _i=_0xf78a10(0x10d);var _;let N=(_=class extends _0x5198da{constructor(_0x26cc5c=w,_0x40328d,_0x5a5139){const _0x272dd0=_0xf78a10;super(),this['_config']=_0x26cc5c,this[_0x272dd0(0xc3)]=_0x40328d,this[_0x272dd0(0xe4)]=_0x5a5139;const {menu:_0x378b21,..._0x35d3c0}=_0x2666af({},w,this[_0x272dd0(0x148)]);_0x378b21&&this[_0x272dd0(0xe4)][_0x272dd0(0x138)](_0x272dd0(0xf6),_0x378b21,{'merge':!0x0}),this[_0x272dd0(0xe4)][_0x272dd0(0x138)](x,_0x35d3c0),this['_config'][_0x272dd0(0x123)]&&this[_0x272dd0(0xe4)][_0x272dd0(0x138)](V,this['_config'][_0x272dd0(0x123)]);}[_0xf78a10(0xd1)](){const _0x523b04=_0xf78a10;[[f],[p]][_0x523b04(0x14b)](_0x14fa46=>this['_injector'][_0x523b04(0x101)](_0x14fa46));}[_0xf78a10(0xeb)](){const _0x163be8=_0xf78a10;this[_0x163be8(0xc3)][_0x163be8(0xe2)](p);}},g(_,_0xf78a10(0xe7),_0x49989d[_0xf78a10(0x119)]),g(_,_0xf78a10(0xd7),_i),_);N=fi([R(0x1,_0x252e05(_0x19f12b)),R(0x2,_0x28b503)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
1
+ const _0x331c6d=_0x5b52;(function(_0x46ea49,_0x3f2c4e){const _0x52edeb=_0x5b52,_0xf59e3=_0x46ea49();while(!![]){try{const _0x4aa835=parseInt(_0x52edeb(0x19e))/0x1*(-parseInt(_0x52edeb(0x16c))/0x2)+-parseInt(_0x52edeb(0x1b1))/0x3*(parseInt(_0x52edeb(0x13e))/0x4)+-parseInt(_0x52edeb(0x1ad))/0x5*(-parseInt(_0x52edeb(0x158))/0x6)+parseInt(_0x52edeb(0x167))/0x7+parseInt(_0x52edeb(0x172))/0x8*(parseInt(_0x52edeb(0x1c1))/0x9)+parseInt(_0x52edeb(0x166))/0xa+parseInt(_0x52edeb(0x16e))/0xb;if(_0x4aa835===_0x3f2c4e)break;else _0xf59e3['push'](_0xf59e3['shift']());}catch(_0x20c1e7){_0xf59e3['push'](_0xf59e3['shift']());}}}(_0xc869,0xca8e0));var G=Object[_0x331c6d(0x17c)],B=(_0x5776a5,_0x48e04c,_0x521b60)=>_0x48e04c in _0x5776a5?G(_0x5776a5,_0x48e04c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x521b60}):_0x5776a5[_0x48e04c]=_0x521b60,g=(_0x560b0a,_0x48d7e0,_0x59a6a7)=>B(_0x560b0a,typeof _0x48d7e0!='symbol'?_0x48d7e0+'':_0x48d7e0,_0x59a6a7);import{Inject as _0x4ff931,LocaleService as _0x2f14eb,IUniverInstanceService as _0x5ed9c7,IConfigService as _0x26c61b,ICommandService as _0x1fccd2,IPermissionService as _0x48466e,ThemeService as _0xf64861,Disposable as _0x2321e1,DisposableCollection as _0x54d207,Univer as _0x4250c9,IAuthzIoService as _0x524c2c,CommandType as _0x6dbac4,UniverInstanceType as _0x57cdf7,RxDisposable as _0x5250a2,toDisposable as _0x1aa207,Plugin as _0x38e956,merge as _0x2d571a,Injector as _0x2c6ded}from'@univerjs/core';import{UniverCollaborationPlugin as _0x132370,RevertRevisionMutation as _0x3ae0b7,CollaborationEvent as _0x170c94}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x37c7cf,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x16016c,CollaborationController as _0x469925,ILocalCacheService as _0x517c1,CollaborationStatus as _0x531862}from'@univerjs-pro/collaboration-client';import{MessageType as _0x5a5867}from'@univerjs/design';import{useRef as _0x45497b,createElement as _0x4e0d3e,forwardRef as _0x194412}from'react';import{IMessageService as _0x4ca5ec,IDialogService as _0x3a521c,ISidebarService as _0x50ff5f,UniverUIPlugin as _0x6e57df,getMenuHiddenObservable as _0x2152e9,MenuItemType as _0x2fc0f3,RibbonStartGroup as _0x2dab13,IMenuManagerService as _0x2cd13e,ComponentManager as _0x446efd}from'@univerjs/ui';import{BehaviorSubject as _0x5c0578,combineLatest as _0x2a1cc0}from'rxjs';import{RangeProtectionRuleModel as _0x479be3,UniverSheetsPlugin as _0x43c299,WorkbookEditablePermission as _0x25ebc0,WorksheetEditPermission as _0x554502,RangeProtectionPermissionEditPoint as _0x3fdff7,WorkbookRecoverHistoryPermission as _0x16b2be,getSheetCommandTarget as _0x1470d7,WorkbookViewHistoryPermission as _0x417430}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x207e64,HistoryManagerService as _0x458d80,HistoryModeStatus as _0xee91a8}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4a6cd7,UniverLicensePlugin as _0x4f78ae}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x183210}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x189cef}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x59af62}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x42e99c}from'@univerjs-pro/sheets-sparkline';function _0xc869(){const _0xf95c9e=['tag','eventID','clear','currentColor','univer-container','registerCommand','M0\x200H16V16H0z','menu','toString','height','display','params','value','univer.operation.toggle-edit-history','_permissionService','_collaborationController','UniverIcon','getSheets','_historyManagerService','fill','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','event$','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','getLocales','60lSDkRW','historyListServerUrl','univerjs-icon\x20univerjs-icon-','colorChannel1','xlink:href','_localCacheService','url(#history-icon_clip0_907_281)','editHistory.panel.reverting','_initUniver','appendChild','getUnit','status','_pluginMap','idSuffix','getSubunitRuleList','asObservable','Exited','mountHistoryContent','1em','\x20has\x20been\x20registered.','setTheme','replace','OTHERS','getAllPlugins','_checkCanRevert','exhaustSavingTask','36504NOaXPX','_revertErrorTimer','historyPanelComponentKey','svg','style','absolute','mask','children','edit-history-loader.config','zIndex','state$','url(#$1','get','_init','10397570acWCuN','9065490ukXoTI','set','next','block','div','9770obZJsn','dispose','7032190iBfVKQ','editHistory.panel.title','getOwnPropertyDescriptor','HistoryIcon','8UnDDyd','_configService','onStarting','_themeService','type','SYNCED','_dialogService','attrs','darkMode$','./worker.js','defineProperty','univer-history-container','0\x200\x2016\x2016','current','width','string','UNIVER_CONTAINER_ID','entries','unMountHistoryContent','subscribe','_messageService','historyUniver','length','Loading','some','composePermission','100%','show','univerContainerId','_univerInstanceService','history-icon','_initPlugins','values','trim','getElementById','registerPlugin','includes','unsubscribe','OPERATION','white','history-container','path','permissionId','setConfig','206pvTWFX','none','assign','_commandService','map','onCommandExecuted','Error','forEach','_historyUniver$','mergeMenu','defIds','pluginName','_disposableCollection','_localeService','close','330MTkAZM','add','_selectionProtectionRuleModel','location','330657tzGZky','uComp','clipPath','history-icon_clip0_907_281','dataset','top','status$','invoke','_initContainer','disposeWithMe','executeCommand','onSteady','createElement','defs','getCollabEntity','currentTheme$','1022382UwhVPg','getConfig','from','BUTTON','data','_sidebarService','historyUniver$','displayName','reload','_menuManagerService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','getCurrentLocale','_config','Entered'];_0xc869=function(){return _0xf95c9e;};return _0xc869();}import{UniverSheetSparklineUIPlugin as _0x4df13f}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x119858}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x4d0d51}from'@univerjs/docs';function _0x5b52(_0x35fbac,_0x4df4c8){_0x35fbac=_0x35fbac-0x11b;const _0xc86915=_0xc869();let _0x5b521a=_0xc86915[_0x35fbac];return _0x5b521a;}import{UniverDocsUIPlugin as _0xc6d4e1}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x1386ee,IImageIoService as _0x5ab772}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x9604b2}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x531e63}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x2a5c0c}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x10c9ff}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x126db7}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x109c7e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x363aa5}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x1ad49f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x21bd90}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x3b2798}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x143e2e}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x3d5050}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0xd2debf}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x4d1068}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x3749f3}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x5bb360}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x508036}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x665953}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x3956d1,getCurrentRangeDisable$ as _0x1b7a4b}from'@univerjs/sheets-ui';const U=_0x331c6d(0x160),R={};function A({ref:_0x5e637b,..._0xf2e7db}){const _0x1328c8=_0x331c6d,{icon:_0x478546,id:_0x3869e6,className:_0x4ce44f,extend:_0x3ac5e,..._0x351c5e}=_0xf2e7db,_0x285430=(_0x1328c8(0x140)+_0x3869e6+'\x20'+(_0x4ce44f||''))[_0x1328c8(0x193)](),_0x2ee37b=_0x45497b('_'+ci());return F(_0x478546,''+_0x3869e6,{'defIds':_0x478546[_0x1328c8(0x1a8)],'idSuffix':_0x2ee37b[_0x1328c8(0x17f)]},{'ref':_0x5e637b,'className':_0x285430,..._0x351c5e},_0x3ac5e);}function F(_0x81f595,_0xc573f1,_0x1fae5c,_0xaf90e6,_0xcecee5){const _0x4206b3=_0x331c6d;return _0x4e0d3e(_0x81f595[_0x4206b3(0x126)],{'key':_0xc573f1,...si(_0x81f595,_0x1fae5c,_0xcecee5),..._0xaf90e6},(ai(_0x81f595,_0x1fae5c)[_0x4206b3(0x15f)]||[])['map']((_0x2dcf31,_0x130ea7)=>F(_0x2dcf31,_0xc573f1+'-'+_0x81f595[_0x4206b3(0x126)]+'-'+_0x130ea7,_0x1fae5c,void 0x0,_0xcecee5)));}function si(_0x272868,_0x3bd1d8,_0x28f3d2){const _0x1bf97f=_0x331c6d,_0xc96028={..._0x272868[_0x1bf97f(0x179)]};_0x28f3d2!=null&&_0x28f3d2[_0x1bf97f(0x141)]&&_0xc96028[_0x1bf97f(0x139)]===_0x1bf97f(0x141)&&(_0xc96028['fill']=_0x28f3d2['colorChannel1']),_0x272868['tag']===_0x1bf97f(0x15e)&&_0xc96028['id']&&(_0xc96028['id']=_0xc96028['id']+_0x3bd1d8['idSuffix']),Object['entries'](_0xc96028)[_0x1bf97f(0x1a5)](([_0x1cc12c,_0x111440])=>{const _0x1e0faf=_0x1bf97f;_0x1cc12c===_0x1e0faf(0x15e)&&typeof _0x111440==_0x1e0faf(0x181)&&(_0xc96028[_0x1cc12c]=_0x111440['replace'](/url\(#(.*)\)/,_0x1e0faf(0x163)+_0x3bd1d8['idSuffix']+')'));});const {defIds:_0x320ded}=_0x3bd1d8;return!_0x320ded||_0x320ded[_0x1bf97f(0x188)]===0x0||(_0x272868['tag']==='use'&&_0xc96028[_0x1bf97f(0x142)]&&(_0xc96028[_0x1bf97f(0x142)]=_0xc96028[_0x1bf97f(0x142)]+_0x3bd1d8['idSuffix']),Object[_0x1bf97f(0x183)](_0xc96028)[_0x1bf97f(0x1a5)](([_0x5363db,_0x28c029])=>{const _0x217f01=_0x1bf97f;typeof _0x28c029=='string'&&(_0xc96028[_0x5363db]=_0x28c029[_0x217f01(0x153)](/url\(#(.*)\)/,_0x217f01(0x163)+_0x3bd1d8[_0x217f01(0x14b)]+')'));})),_0xc96028;}function ai(_0x42fca3,_0x32238e){const _0x971892=_0x331c6d;var _0x554b46;const {defIds:_0xe88ce8}=_0x32238e;return!_0xe88ce8||_0xe88ce8[_0x971892(0x188)]===0x0?_0x42fca3:_0x42fca3[_0x971892(0x126)]===_0x971892(0x1be)&&((_0x554b46=_0x42fca3[_0x971892(0x15f)])!=null&&_0x554b46['length'])?{..._0x42fca3,'children':_0x42fca3[_0x971892(0x15f)][_0x971892(0x1a2)](_0x1e4a36=>typeof _0x1e4a36[_0x971892(0x179)]['id']==_0x971892(0x181)&&_0xe88ce8&&_0xe88ce8[_0x971892(0x196)](_0x1e4a36[_0x971892(0x179)]['id'])?{..._0x1e4a36,'attrs':{..._0x1e4a36['attrs'],'id':_0x1e4a36[_0x971892(0x179)]['id']+_0x32238e['idSuffix']}}:_0x1e4a36)}:_0x42fca3;}function ci(){const _0x54712e=_0x331c6d;return Math['random']()[_0x54712e(0x12e)](0x24)['substring'](0x2,0x8);}A[_0x331c6d(0x11f)]=_0x331c6d(0x136);const li={'tag':_0x331c6d(0x15b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x331c6d(0x19f),'viewBox':_0x331c6d(0x17e),'width':'1em','height':_0x331c6d(0x150)},'children':[{'tag':'g','attrs':{'fill':_0x331c6d(0x129),'clipPath':_0x331c6d(0x144)},'children':[{'tag':'path','attrs':{'d':_0x331c6d(0x13a)}},{'tag':'path','attrs':{'d':_0x331c6d(0x13c)}}]},{'tag':_0x331c6d(0x1be),'attrs':{},'children':[{'tag':_0x331c6d(0x1b3),'attrs':{'id':_0x331c6d(0x1b4)},'children':[{'tag':_0x331c6d(0x19b),'attrs':{'fill':_0x331c6d(0x199),'d':_0x331c6d(0x12c)}}]}]}],'defIds':[_0x331c6d(0x1b4)]},j=_0x194412(function(_0x4ace88,_0x4e7c9a){const _0x57a61a=_0x331c6d;return _0x4e0d3e(A,Object[_0x57a61a(0x1a0)]({},_0x4ace88,{'id':_0x57a61a(0x190),'ref':_0x4e7c9a,'icon':li}));});j['displayName']=_0x331c6d(0x171);var hi=Object[_0x331c6d(0x170)],ui=(_0x3a705a,_0x553db0,_0x2f3638,_0x5783f5)=>{for(var _0x61961f=_0x5783f5>0x1?void 0x0:_0x5783f5?hi(_0x553db0,_0x2f3638):_0x553db0,_0x1eda28=_0x3a705a['length']-0x1,_0x25341b;_0x1eda28>=0x0;_0x1eda28--)(_0x25341b=_0x3a705a[_0x1eda28])&&(_0x61961f=_0x25341b(_0x61961f)||_0x61961f);return _0x61961f;},l=(_0x59d4d2,_0x34dab4)=>(_0x517add,_0xae83b0)=>_0x34dab4(_0x517add,_0xae83b0,_0x59d4d2);const gi=_0x331c6d(0x12a),V=_0x331c6d(0x182),d=_0x331c6d(0x17d);let f=class extends _0x2321e1{constructor(_0x50bf76,_0x2d8b46,_0x5cceff,_0xd6767b,_0x44e971,_0x5af532,_0x39186d,_0x340bd3,_0x3d078d,_0x11f9f4){const _0x166771=_0x331c6d;super(),g(this,_0x166771(0x1a6),new _0x5c0578(null)),g(this,_0x166771(0x11e),this[_0x166771(0x1a6)][_0x166771(0x14d)]()),g(this,_0x166771(0x1aa),new _0x54d207()),g(this,'_pluginMap',new Map()),(this[_0x166771(0x1ab)]=_0x50bf76,this['_univerInstanceService']=_0x2d8b46,this[_0x166771(0x173)]=_0x5cceff,this[_0x166771(0x1a1)]=_0xd6767b,this[_0x166771(0x186)]=_0x44e971,this['_permissionService']=_0x5af532,this[_0x166771(0x1af)]=_0x39186d,this[_0x166771(0x178)]=_0x340bd3,this[_0x166771(0x11d)]=_0x3d078d,this[_0x166771(0x175)]=_0x11f9f4,this[_0x166771(0x165)]());}get[_0x331c6d(0x187)](){const _0x1b0b54=_0x331c6d;return this[_0x1b0b54(0x1a6)][_0x1b0b54(0x132)];}['_init'](){const _0x35bff2=_0x331c6d;this[_0x35bff2(0x1b9)](),this[_0x35bff2(0x191)]();}[_0x331c6d(0x1b9)](){const _0x4a5cac=_0x331c6d;var _0x52bdb2;const _0x14d279=(_0x52bdb2=this[_0x4a5cac(0x173)][_0x4a5cac(0x1c2)](V))!=null?_0x52bdb2:gi,_0x5649e6=document['getElementById'](_0x14d279);if(!_0x5649e6)return;const _0x34f2db=document[_0x4a5cac(0x1bd)](_0x4a5cac(0x16b));_0x34f2db['id']=d,_0x34f2db[_0x4a5cac(0x1b5)][_0x4a5cac(0x1b2)]=_0x4a5cac(0x19a),_0x34f2db[_0x4a5cac(0x15c)]['position']=_0x4a5cac(0x15d),_0x34f2db['style'][_0x4a5cac(0x1b6)]='0',_0x34f2db[_0x4a5cac(0x15c)]['left']='0',_0x34f2db[_0x4a5cac(0x15c)][_0x4a5cac(0x180)]=_0x4a5cac(0x18c),_0x34f2db[_0x4a5cac(0x15c)][_0x4a5cac(0x12f)]='100%',_0x34f2db[_0x4a5cac(0x15c)][_0x4a5cac(0x161)]='1000',_0x34f2db[_0x4a5cac(0x15c)][_0x4a5cac(0x130)]=_0x4a5cac(0x19f),_0x5649e6[_0x4a5cac(0x147)](_0x34f2db);}[_0x331c6d(0x191)](){const _0x4cc7c6=_0x331c6d;var _0x3b9429,_0xc585ab;[[_0x2a5c0c],[_0x6e57df,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a521c,null]]}],[_0x10c9ff],[_0x1386ee,{'override':[[_0x5ab772,null]]}],[_0x4d0d51,{'hasScroll':!0x1}],[_0xc6d4e1],[_0x665953],[_0x43c299,{'notExecuteFormula':!0x0}],[_0x3956d1],[_0x4d1068],[_0x3749f3],[_0x132370],[_0x3d5050],[_0xd2debf],[_0x109c7e],[_0x363aa5],[_0x5bb360],[_0x508036],[_0x119858],[_0x1ad49f],[_0x21bd90],[_0x531e63,{'notExecuteFormula':!0x0}],[_0x126db7,{'workerURL':_0x4cc7c6(0x17b)}],[_0x9604b2],[_0x3b2798],[_0x143e2e],[_0x42e99c],[_0x4df13f],[_0x183210],[_0x189cef],[_0x59af62,{'notExecuteFormula':!0x0}],[_0x207e64,{'historyListServerUrl':(_0x3b9429=this['_configService'][_0x4cc7c6(0x1c2)](U))==null?void 0x0:_0x3b9429[_0x4cc7c6(0x13f)],'historyPanelComponentKey':(_0xc585ab=this['_configService'][_0x4cc7c6(0x1c2)](U))==null?void 0x0:_0xc585ab[_0x4cc7c6(0x15a)]}]][_0x4cc7c6(0x1a5)](([_0x4d9f57,_0x19ad14])=>this[_0x4cc7c6(0x195)](_0x4d9f57,_0x19ad14));}['dispose'](){const _0x42574a=_0x331c6d;super['dispose'](),this[_0x42574a(0x184)](),this['_pluginMap'][_0x42574a(0x128)]();}[_0x331c6d(0x195)](_0x104131,_0x127f41,_0x2d04ea){const _0x4cd2fd=_0x331c6d;if(this['_pluginMap']['has'](_0x104131[_0x4cd2fd(0x1a9)])&&!_0x2d04ea)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x104131[_0x4cd2fd(0x1a9)]+_0x4cd2fd(0x151));this[_0x4cd2fd(0x14a)][_0x4cd2fd(0x168)](_0x104131[_0x4cd2fd(0x1a9)],[_0x104131,_0x127f41]);}[_0x331c6d(0x155)](){const _0x4c807d=_0x331c6d;return Array[_0x4c807d(0x1c3)](this[_0x4c807d(0x14a)][_0x4c807d(0x192)]());}[_0x331c6d(0x14f)](_0x2ccaf7){const _0xd24924=_0x331c6d,_0x2c70b9=document[_0xd24924(0x194)](d);_0x2c70b9&&(_0x2c70b9[_0xd24924(0x15c)][_0xd24924(0x130)]=_0xd24924(0x16a),this['_initUniver'](_0x2ccaf7,d));}['unMountHistoryContent'](){const _0x1a6d42=_0x331c6d;var _0xd7bf3f;this[_0x1a6d42(0x1aa)][_0x1a6d42(0x16d)](),(_0xd7bf3f=this[_0x1a6d42(0x187)])==null||_0xd7bf3f['dispose'](),this[_0x1a6d42(0x1a6)][_0x1a6d42(0x169)](null);const _0x2acb22=document[_0x1a6d42(0x194)](d);_0x2acb22&&(_0x2acb22[_0x1a6d42(0x15c)]['display']=_0x1a6d42(0x19f));}[_0x331c6d(0x146)](_0x29d0f7,_0x83f5db){const _0x1949fa=_0x331c6d;if(this[_0x1949fa(0x187)])return;const _0x42210f=new _0x4250c9({'locales':{[this[_0x1949fa(0x1ab)][_0x1949fa(0x123)]()]:this[_0x1949fa(0x1ab)][_0x1949fa(0x13d)]()},'override':[[_0x524c2c,{'useClass':_0x37c7cf}]]}),_0x2bd3f0=_0x42210f['__getInjector']();this[_0x1949fa(0x1ba)](this['_themeService'][_0x1949fa(0x17a)][_0x1949fa(0x185)](_0xc9476=>{_0x2bd3f0['get'](_0xf64861)['setDarkMode'](_0xc9476);})),this[_0x1949fa(0x1ba)](this[_0x1949fa(0x175)][_0x1949fa(0x1c0)][_0x1949fa(0x185)](_0x57b2f8=>{const _0x4e3519=_0x1949fa;_0x2bd3f0['get'](_0xf64861)[_0x4e3519(0x152)](_0x57b2f8);})),_0x2bd3f0[_0x1949fa(0x164)](_0x2f14eb)['setLocale'](this[_0x1949fa(0x1ab)]['getCurrentLocale']()),_0x2bd3f0['get'](_0x26c61b)[_0x1949fa(0x19d)](_0x16016c,this[_0x1949fa(0x173)]['getConfig'](_0x16016c));const _0x5a6c46=this[_0x1949fa(0x173)][_0x1949fa(0x1c2)](_0x4a6cd7);_0x5a6c46&&_0x42210f[_0x1949fa(0x195)](_0x4f78ae,{'license':_0x5a6c46['ls']}),this['_pluginMap'][_0x1949fa(0x1a5)](([_0x53e2be,_0x38629d])=>{const _0x5c134e=_0x1949fa;_0x42210f[_0x5c134e(0x195)](_0x53e2be,_0x38629d);}),_0x2bd3f0[_0x1949fa(0x1b8)](_0x41d8c0=>{this['_initListener'](_0x41d8c0,_0x29d0f7);}),this['_historyUniver$']['next'](_0x42210f);const _0x309430=_0x2bd3f0[_0x1949fa(0x164)](_0x458d80),_0x1c416c=this['_checkCanRevert'](_0x29d0f7);_0x309430['triggerLoadVersions'](_0x29d0f7,_0x83f5db,_0x1c416c);}['_initListener'](_0x4db5aa,_0xc56318){const _0x4afa6b=_0x331c6d,_0x2bf9dc=_0x4db5aa['get'](_0x458d80);this[_0x4afa6b(0x1aa)][_0x4afa6b(0x1ae)](_0x2bf9dc[_0x4afa6b(0x1b7)]['subscribe'](_0x240281=>{const _0x6fe288=_0x4afa6b;switch(_0x240281){case _0xee91a8[_0x6fe288(0x125)]:this['_dialogService']['closeAll'](),this[_0x6fe288(0x11d)][_0x6fe288(0x1ac)]();break;case _0xee91a8[_0x6fe288(0x14e)]:this[_0x6fe288(0x184)]();break;case _0xee91a8[_0x6fe288(0x1a4)]:this['unMountHistoryContent'](),this['_messageService']['show']({'content':this[_0x6fe288(0x1ab)]['t']('editHistory.panel.listFetchError'),'type':_0x5a5867[_0x6fe288(0x1a4)],'duration':0xbb8});break;}})),this[_0x4afa6b(0x1aa)]['add'](_0x2bf9dc['revertRevision$'][_0x4afa6b(0x185)](async _0x3c474b=>{const _0x2eea85=_0x4afa6b;_0x3c474b&&this[_0x2eea85(0x1a1)][_0x2eea85(0x1bb)](_0x3ae0b7['id'],{'unitId':_0xc56318,'revision':_0x3c474b});}));}[_0x331c6d(0x156)](_0x4eaf14){const _0xcb5d25=_0x331c6d,_0x591796=this[_0xcb5d25(0x18f)][_0xcb5d25(0x148)](_0x4eaf14)[_0xcb5d25(0x137)]()[_0xcb5d25(0x1a2)](_0x1acb70=>_0x1acb70['getSheetId']()),_0x30e8de=new _0x25ebc0(_0x4eaf14)['id'],_0x51262d=_0x591796['map'](_0x1384b7=>new _0x554502(_0x4eaf14,_0x1384b7)['id']),_0x3fffcb=_0x591796[_0xcb5d25(0x1a2)](_0x27ebe8=>this[_0xcb5d25(0x1af)][_0xcb5d25(0x14c)](_0x4eaf14,_0x27ebe8)['map'](_0x119b14=>new _0x3fdff7(_0x4eaf14,_0x27ebe8,_0x119b14[_0xcb5d25(0x19c)])['id']))['flat'](),_0x42e876=new _0x16b2be(_0x4eaf14)['id'];return this[_0xcb5d25(0x134)][_0xcb5d25(0x18b)]([_0x30e8de,..._0x51262d,..._0x3fffcb,_0x42e876])['every'](_0x2bb36e=>!!_0x2bb36e['value']);}};f=ui([l(0x0,_0x4ff931(_0x2f14eb)),l(0x1,_0x5ed9c7),l(0x2,_0x26c61b),l(0x3,_0x1fccd2),l(0x4,_0x4ca5ec),l(0x5,_0x48466e),l(0x6,_0x4ff931(_0x479be3)),l(0x7,_0x4ff931(_0x3a521c)),l(0x8,_0x4ff931(_0x50ff5f)),l(0x9,_0x4ff931(_0xf64861))],f);const b={'id':_0x331c6d(0x133),'type':_0x6dbac4[_0x331c6d(0x198)],'handler':_0x361611=>{const _0x49e20e=_0x331c6d,_0x20780d=_0x361611['get'](f),_0x115710=_0x361611[_0x49e20e(0x164)](_0x5ed9c7),{unitId:_0x2d2a9b}=_0x1470d7(_0x115710)||{};return _0x2d2a9b?(_0x20780d[_0x49e20e(0x14f)](_0x2d2a9b),!0x0):!0x1;}};function mi(_0x4d33f3){const _0xbb4f67=_0x331c6d;return{'id':b['id'],'type':_0x2fc0f3[_0xbb4f67(0x11b)],'icon':_0xbb4f67(0x171),'tooltip':_0xbb4f67(0x16f),'hidden$':_0x2152e9(_0x4d33f3,_0x57cdf7['UNIVER_SHEET']),'disabled$':_0x1b7a4b(_0x4d33f3,{'workbookTypes':[_0x25ebc0,_0x417430],'worksheetTypes':[],'rangeTypes':[]})};}const vi={[_0x2dab13[_0x331c6d(0x154)]]:{[b['id']]:{'order':0.2,'menuItemFactory':mi}}};var di=Object['getOwnPropertyDescriptor'],fi=(_0xbb54c5,_0x1f97e2,_0x48520e,_0x9c0562)=>{for(var _0x3e5414=_0x9c0562>0x1?void 0x0:_0x9c0562?di(_0x1f97e2,_0x48520e):_0x1f97e2,_0x1d1995=_0xbb54c5['length']-0x1,_0x3e26fa;_0x1d1995>=0x0;_0x1d1995--)(_0x3e26fa=_0xbb54c5[_0x1d1995])&&(_0x3e5414=_0x3e26fa(_0x3e5414)||_0x3e5414);return _0x3e5414;},m=(_0x21db79,_0x64fa7b)=>(_0x286584,_0x209156)=>_0x64fa7b(_0x286584,_0x209156,_0x21db79);let _=class extends _0x5250a2{constructor(_0x2758ad,_0x2f3fa9,_0x241415,_0x180898,_0x32cf5c,_0x2cd5ee,_0x6a5ed5,_0x12c627){const _0x3b1c4f=_0x331c6d;super(),g(this,_0x3b1c4f(0x159),null),(this[_0x3b1c4f(0x1a1)]=_0x2758ad,this[_0x3b1c4f(0x121)]=_0x2f3fa9,this['_componentManager']=_0x241415,this[_0x3b1c4f(0x138)]=_0x180898,this[_0x3b1c4f(0x1ab)]=_0x32cf5c,this[_0x3b1c4f(0x186)]=_0x2cd5ee,this[_0x3b1c4f(0x135)]=_0x6a5ed5,this[_0x3b1c4f(0x143)]=_0x12c627,this[_0x3b1c4f(0x165)]());}['_init'](){const _0x3400bf=_0x331c6d;[b][_0x3400bf(0x1a5)](_0x118981=>this[_0x3400bf(0x1ba)](_0x1aa207(this[_0x3400bf(0x1a1)][_0x3400bf(0x12b)](_0x118981)))),this[_0x3400bf(0x1ba)](this['_componentManager']['register'](_0x3400bf(0x171),j)),this[_0x3400bf(0x121)][_0x3400bf(0x1a7)](vi),this[_0x3400bf(0x1ba)](this['_commandService'][_0x3400bf(0x1a3)](_0x266043=>{const _0x50d2dd=_0x3400bf;if(_0x266043['id']===_0x3ae0b7['id']){this[_0x50d2dd(0x186)][_0x50d2dd(0x18d)]({'content':this['_localeService']['t'](_0x50d2dd(0x145)),'type':_0x5a5867[_0x50d2dd(0x189)],'duration':0x1388});const {unitId:_0x158f8e}=_0x266043[_0x50d2dd(0x131)],_0x2d81bf=this[_0x50d2dd(0x135)][_0x50d2dd(0x1bf)](_0x158f8e),_0x461c7e=_0x2a1cc0([_0x2d81bf['session'][_0x50d2dd(0x13b)],_0x2d81bf[_0x50d2dd(0x162)]])[_0x50d2dd(0x185)](async([_0x5929d9,_0xd42dd0])=>{const _0x3afe68=_0x50d2dd;var _0x28ad6;_0x5929d9[_0x3afe68(0x127)]===_0x170c94['CHANGESET_ACK']&&(_0xd42dd0==null?void 0x0:_0xd42dd0[_0x3afe68(0x149)])===_0x531862[_0x3afe68(0x177)]&&_0x5929d9[_0x3afe68(0x11c)]['mutations'][_0x3afe68(0x18a)](_0x36f9d4=>_0x36f9d4['id']===_0x3ae0b7['id'])&&(this[_0x3afe68(0x138)]['unMountHistoryContent'](),_0x461c7e[_0x3afe68(0x197)](),this[_0x3afe68(0x159)]&&clearTimeout(this[_0x3afe68(0x159)]),await((_0x28ad6=this['_localCacheService'])==null?void 0x0:_0x28ad6[_0x3afe68(0x157)]()),setTimeout(()=>window[_0x3afe68(0x1b0)][_0x3afe68(0x120)]()));});this[_0x50d2dd(0x159)]=setTimeout(()=>{const _0x4c7dd9=_0x50d2dd;_0x461c7e[_0x4c7dd9(0x197)](),this['_messageService'][_0x4c7dd9(0x18d)]({'content':this[_0x4c7dd9(0x1ab)]['t']('editHistory.panel.revertFailed'),'type':_0x5a5867[_0x4c7dd9(0x1a4)],'duration':0xbb8});},0x1388);}}));}};_=fi([m(0x0,_0x1fccd2),m(0x1,_0x2cd13e),m(0x2,_0x4ff931(_0x446efd)),m(0x3,_0x4ff931(f)),m(0x4,_0x4ff931(_0x2f14eb)),m(0x5,_0x4ca5ec),m(0x6,_0x4ff931(_0x469925)),m(0x7,_0x517c1)],_);var pi=Object[_0x331c6d(0x170)],_i=(_0x4bf22d,_0x1a8c74,_0x34eedc,_0x722673)=>{const _0x1933d8=_0x331c6d;for(var _0x147620=_0x722673>0x1?void 0x0:_0x722673?pi(_0x1a8c74,_0x34eedc):_0x1a8c74,_0x19b2c4=_0x4bf22d[_0x1933d8(0x188)]-0x1,_0x124428;_0x19b2c4>=0x0;_0x19b2c4--)(_0x124428=_0x4bf22d[_0x19b2c4])&&(_0x147620=_0x124428(_0x147620)||_0x147620);return _0x147620;},N=(_0x4ef387,_0x1ccd31)=>(_0x2065f7,_0x22171b)=>_0x1ccd31(_0x2065f7,_0x22171b,_0x4ef387);const Si=_0x331c6d(0x122);var p;let H=(p=class extends _0x38e956{constructor(_0x441bf8=R,_0x30328b,_0x21598c){const _0x1fe0d4=_0x331c6d;super(),this['_config']=_0x441bf8,this['_injector']=_0x30328b,this[_0x1fe0d4(0x173)]=_0x21598c;const {menu:_0x10859b,..._0x1bbfc4}=_0x2d571a({},R,this['_config']);_0x10859b&&this[_0x1fe0d4(0x173)]['setConfig'](_0x1fe0d4(0x12d),_0x10859b,{'merge':!0x0}),this[_0x1fe0d4(0x173)]['setConfig'](U,_0x1bbfc4),this[_0x1fe0d4(0x124)][_0x1fe0d4(0x18e)]&&this[_0x1fe0d4(0x173)][_0x1fe0d4(0x19d)](V,this[_0x1fe0d4(0x124)][_0x1fe0d4(0x18e)]);}[_0x331c6d(0x174)](){const _0x53ee5a=_0x331c6d;[[f],[_]][_0x53ee5a(0x1a5)](_0x24a23b=>this['_injector'][_0x53ee5a(0x1ae)](_0x24a23b));}[_0x331c6d(0x1bc)](){const _0x1b36c0=_0x331c6d;this['_injector'][_0x1b36c0(0x164)](_);}},g(p,_0x331c6d(0x176),_0x57cdf7['UNIVER_UNKNOWN']),g(p,_0x331c6d(0x1a9),Si),p);H=_i([N(0x1,_0x4ff931(_0x2c6ded)),N(0x2,_0x26c61b)],H);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
@@ -9,5 +9,6 @@ export interface IUniverEditHistoryLoaderConfig {
9
9
  * @default ''
10
10
  */
11
11
  historyListServerUrl?: string;
12
+ historyPanelComponentKey?: string;
12
13
  }
13
14
  export declare const defaultPluginConfig: IUniverEditHistoryLoaderConfig;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x41e4(_0x95ef9a,_0x385485){const _0x2f327a=_0x2f32();return _0x41e4=function(_0x41e4bb,_0x1a1f9f){_0x41e4bb=_0x41e4bb-0x15e;let _0x3a4934=_0x2f327a[_0x41e4bb];return _0x3a4934;},_0x41e4(_0x95ef9a,_0x385485);}function _0x2f32(){const _0x257e88=['@univerjs/sheets-drawing','5242638NLPgXi','UniverSheetsConditionalFormattingUi','5117hPIpDi','mask','LocaleService','editHistory.panel.title','WorkbookViewHistoryPermission','every','rxjs','status','flat','UniverDataValidation','OPERATION','values','@univerjs/design','width','string','absolute','UniverSheets','eventID','WorkbookRecoverHistoryPermission','UNIVER_SHEET','1000','_initListener','CollaborationStatus','@univerjs/sheets-drawing-ui','7JWERnt','15gJSQZC','MenuItemType','HistoryLoaderService','@univerjs/sheets-ui','_injector','1067aGLPtl','UniverDocs','UniverSheetSparklineUIPlugin','IMessageService','position','UniverProLicense','mergeMenu','defIds','6388740jgsoCA','WorksheetEditPermission','@univerjs/engine-render','getCurrentRangeDisable$','clipPath','zIndex','xlink:href','random','_historyManagerService','UniverEngineRender','getSheetId','UNIVER_CONTAINER_ID_KEY','mountHistoryContent','UniverInstanceType','style','currentColor','React','UniverNetwork','toDisposable','100%','history-icon_clip0_907_281','_initPlugins','combineLatest','useRef','IPermissionService','@univerjs/sheets-numfmt','UNIVER_HISTORY_CONTAINER_ID','toStringTag','length','subscribe','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','UniverSheetsHyperLinkPlugin','params','@univerjs/docs','univer.operation.toggle-edit-history','@univerjs/sheets-filter-ui','Univer','map','height','ICommandService','IDialogService','_configService','forwardRef','add','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','_menuManagerService','next','has','_pluginMap','permissionId','_selectionProtectionRuleModel','historyUniver$','UniverSheetsDrawingUIPlugin','IConfigService','tag','defs','_historyUniver$','UniverSheetsFormula','top','editHistory.panel.revertFailed','reload','history-icon','function','RxDisposable','invoke','react','register','show','ILocalCacheService','createElement','Error','assign','LS_CONFIG_KEY','registerCommand','replace','@univerjs/sheets-data-validation-ui','unsubscribe','UniverSheetsNumfmt','_initContainer','_localCacheService','path','UniverRenderEnginePlugin','UniverSheetsFilter','getOwnPropertyDescriptor','triggerLoadVersions','UniverProEditHistoryViewer','idSuffix','UniverRPCMainThreadPlugin','UniverSheetsNumfmtPlugin','white','_collaborationController','exhaustSavingTask','getConfig','UniverCollaborationPlugin','registerPlugin','_univerInstanceService','M0\x200H16V16H0z','substring','@univerjs/core','426704tTYyzI','historyUniver','UniverIcon','UniverDesign','editHistory.panel.listFetchError','getMenuHiddenObservable','UniverSheetsFormulaUIPlugin','get','editHistory.panel.reverting','@univerjs/sheets-hyper-link-ui','_commandService','session','@univerjs/ui','UniverProEditHistoryLoader','setTheme','UniverFormulaEnginePlugin','@univerjs/engine-formula','_dialogService','__getInjector','UniverDataValidationPlugin','UniverSheetsHyperLinkUIPlugin','set','UniverSheetsDataValidationPlugin','CommandType','ThemeService','attrs','onStarting','_themeService','WorkbookEditablePermission','UniverSheetsDrawingUi','Injector','setConfig','@univerjs/sheets-hyper-link','RangeProtectionPermissionEditPoint','UniverEngineFormula','unMountHistoryContent','type','_permissionService','_checkCanRevert','53772RHikEa','6fdWwmq','UNIVER_UNKNOWN','Loading','getSubunitRuleList','_initUniver','@univerjs-pro/collaboration-client','getUnit','disposeWithMe','@univerjs-pro/sheets-pivot','HistoryModeStatus','@univerjs/sheets-formula-ui','_init','appendChild','entries','CollaborationController','UniverSheetsFilterPlugin','MessageType','url(#history-icon_clip0_907_281)','UniverSheetsConditionalFormattingPlugin','colorChannel1','RibbonStartGroup','UniverNetworkPlugin','_disposableCollection','UniverSheetsHyperLinkUi','IUniverInstanceService','UniverSheetsUIPlugin','trim','currentTheme$','dispose','defineProperty','Exited','1em','children','@univerjs/rpc','Module','UniverSheetsDataValidationUIPlugin','from','_messageService','UniverEditHistoryLoaderPlugin','block','value','UniverLicensePlugin','forEach','@univerjs/sheets','edit-history-loader.config','getElementById','0\x200\x2016\x2016','merge','getLocales','ComponentManager','8VqmUdO','univerContainerId','HistoryIcon','univerjs-icon\x20univerjs-icon-','uComp','getSheets','UniverUi','history-container','Plugin','http://www.w3.org/2000/svg','SYNCED','BUTTON','Entered','display','Inject','RevertRevisionMutation','_revertErrorTimer','includes','getAllPlugins','onCommandExecuted','UniverDrawingPlugin','UniverProCollaborationClient','DisposableCollection','none','pluginName','_localeService','@univerjs/network','UniverSheetsConditionalFormatting','fill','use','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverSheetsDrawingPlugin','UniverSheetsDataValidationUi','event$','UniverSheetsHyperLink','978556JJQGaz','3915320vPVJQC','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','\x20has\x20been\x20registered.','getCollabEntity','UniverRpc','close','UniverSheetsDataValidation','UniverSheetsFilterUIPlugin','AuthzIoHttpService','CollaborationEvent','getCurrentLocale','UniverProSheetsSparkline','@univerjs/sheets-conditional-formatting-ui','./worker.js','@univerjs-pro/sheets-sparkline','asObservable','HistoryManagerService','data','_config','@univerjs/drawing-ui','amd','UniverDrawingUIPlugin','@univerjs/sheets-conditional-formatting'];_0x2f32=function(){return _0x257e88;};return _0x2f32();}(function(_0x2bb197,_0x1bfb92){const _0x593ec0=_0x41e4,_0x4c34c0=_0x2bb197();while(!![]){try{const _0x1c21e4=-parseInt(_0x593ec0(0x1b5))/0x1+-parseInt(_0x593ec0(0x23e))/0x2*(-parseInt(_0x593ec0(0x266))/0x3)+parseInt(_0x593ec0(0x19a))/0x4*(-parseInt(_0x593ec0(0x1ce))/0x5)+-parseInt(_0x593ec0(0x1b3))/0x6*(-parseInt(_0x593ec0(0x1cd))/0x7)+-parseInt(_0x593ec0(0x177))/0x8*(-parseInt(_0x593ec0(0x1db))/0x9)+-parseInt(_0x593ec0(0x19b))/0xa+parseInt(_0x593ec0(0x1d3))/0xb*(-parseInt(_0x593ec0(0x265))/0xc);if(_0x1c21e4===_0x1bfb92)break;else _0x4c34c0['push'](_0x4c34c0['shift']());}catch(_0x45c185){_0x4c34c0['push'](_0x4c34c0['shift']());}}}(_0x2f32,0x6caba),function(_0x31daa2,_0x44735a){const _0x2419f9=_0x41e4;typeof exports=='object'&&typeof module<'u'?_0x44735a(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),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-ui')):typeof define==_0x2419f9(0x219)&&define[_0x2419f9(0x1af)]?define(['exports',_0x2419f9(0x23d),'@univerjs-pro/collaboration',_0x2419f9(0x26b),_0x2419f9(0x1c1),_0x2419f9(0x21c),_0x2419f9(0x24a),_0x2419f9(0x1bb),_0x2419f9(0x170),'@univerjs-pro/edit-history-viewer','@univerjs-pro/license',_0x2419f9(0x26e),_0x2419f9(0x1a9),'@univerjs-pro/sheets-sparkline-ui','@univerjs/data-validation',_0x2419f9(0x1fc),'@univerjs/docs-ui','@univerjs/drawing',_0x2419f9(0x1ae),_0x2419f9(0x24e),_0x2419f9(0x1dd),_0x2419f9(0x191),_0x2419f9(0x166),_0x2419f9(0x1b1),_0x2419f9(0x1a7),'@univerjs/sheets-data-validation',_0x2419f9(0x226),_0x2419f9(0x1b2),_0x2419f9(0x1cc),'@univerjs/sheets-filter',_0x2419f9(0x1fe),'@univerjs/sheets-formula',_0x2419f9(0x270),_0x2419f9(0x25e),_0x2419f9(0x247),_0x2419f9(0x1f4),_0x2419f9(0x1d1)],_0x44735a):(_0x31daa2=typeof globalThis<'u'?globalThis:_0x31daa2||self,_0x44735a(_0x31daa2[_0x2419f9(0x24b)]={},_0x31daa2['UniverCore'],_0x31daa2['UniverProCollaboration'],_0x31daa2[_0x2419f9(0x18c)],_0x31daa2[_0x2419f9(0x241)],_0x31daa2[_0x2419f9(0x1eb)],_0x31daa2[_0x2419f9(0x17d)],_0x31daa2[_0x2419f9(0x1bb)],_0x31daa2[_0x2419f9(0x1c5)],_0x31daa2[_0x2419f9(0x230)],_0x31daa2[_0x2419f9(0x1d8)],_0x31daa2['UniverProSheetsPivot'],_0x31daa2[_0x2419f9(0x1a6)],_0x31daa2['UniverProSheetsSparklineUi'],_0x31daa2[_0x2419f9(0x1be)],_0x31daa2[_0x2419f9(0x1d4)],_0x31daa2['UniverDocsUi'],_0x31daa2['UniverDrawing'],_0x31daa2['UniverDrawingUi'],_0x31daa2[_0x2419f9(0x260)],_0x31daa2[_0x2419f9(0x1e4)],_0x31daa2[_0x2419f9(0x1ec)],_0x31daa2[_0x2419f9(0x19f)],_0x31daa2[_0x2419f9(0x192)],_0x31daa2[_0x2419f9(0x1b4)],_0x31daa2[_0x2419f9(0x1a1)],_0x31daa2[_0x2419f9(0x197)],_0x31daa2['UniverSheetsDrawing'],_0x31daa2[_0x2419f9(0x25b)],_0x31daa2[_0x2419f9(0x22d)],_0x31daa2['UniverSheetsFilterUi'],_0x31daa2[_0x2419f9(0x214)],_0x31daa2['UniverSheetsFormulaUi'],_0x31daa2[_0x2419f9(0x199)],_0x31daa2[_0x2419f9(0x27d)],_0x31daa2[_0x2419f9(0x228)],_0x31daa2['UniverSheetsUi']));}(this,function(_0x1278ea,_0x339e3f,_0xf8ce4f,_0x454ce2,_0x476c4b,_0x36e089,_0x51ef13,_0x52b758,_0x26f8ec,_0x5132cd,_0x547ba6,_0x2c0534,_0x3fe4ae,_0x489412,_0x4b21f9,_0x542d8b,_0x4b659b,_0xc144d8,_0x5344d2,_0x4bdac8,_0x31f033,_0x1ed6d5,_0x307b38,_0x19420c,_0x1e7f41,_0x5a3af6,_0x44c346,_0x447d40,_0x5c083a,_0x324e13,_0xd5eb1,_0x5bf049,_0x14659c,_0x7824a2,_0x83e7f6,_0x44f0b8,_0xcb266c){'use strict';const _0x3adaff=_0x41e4;var _0x3b289b=Object[_0x3adaff(0x162)],_0x5cd0e5=(_0x3a445f,_0x16f895,_0x3ef71b)=>_0x16f895 in _0x3a445f?_0x3b289b(_0x3a445f,_0x16f895,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ef71b}):_0x3a445f[_0x16f895]=_0x3ef71b,_0x1bc6a7=(_0x539660,_0x3e54a4,_0x2352c0)=>_0x5cd0e5(_0x539660,typeof _0x3e54a4!='symbol'?_0x3e54a4+'':_0x3e54a4,_0x2352c0),_0x3f0a29;const _0x225b63=_0x3adaff(0x171),_0x4daa1a={};function _0x2074d9({ref:_0x42a73d,..._0x1399f7}){const _0x5704c7=_0x3adaff,{icon:_0x2e73aa,id:_0x4b0853,className:_0x27f55d,extend:_0xa00a6d,..._0x32eacf}=_0x1399f7,_0x5eac80=(_0x5704c7(0x17a)+_0x4b0853+'\x20'+(_0x27f55d||''))[_0x5704c7(0x15f)](),_0x329b7d=_0x36e089[_0x5704c7(0x1f2)]('_'+_0x1c53ed());return _0x3a988f(_0x2e73aa,''+_0x4b0853,{'defIds':_0x2e73aa[_0x5704c7(0x1da)],'idSuffix':_0x329b7d['current']},{'ref':_0x42a73d,'className':_0x5eac80,..._0x32eacf},_0xa00a6d);}function _0x3a988f(_0x13311d,_0x408a6c,_0x1a6d5e,_0x5ccd24,_0x15d253){const _0x45cee4=_0x3adaff;return _0x36e089[_0x45cee4(0x220)](_0x13311d[_0x45cee4(0x211)],{'key':_0x408a6c,..._0x39358c(_0x13311d,_0x1a6d5e,_0x15d253),..._0x5ccd24},(_0x1fe76f(_0x13311d,_0x1a6d5e)[_0x45cee4(0x165)]||[])[_0x45cee4(0x200)]((_0x338b90,_0x499afa)=>_0x3a988f(_0x338b90,_0x408a6c+'-'+_0x13311d['tag']+'-'+_0x499afa,_0x1a6d5e,void 0x0,_0x15d253)));}function _0x39358c(_0x153cf2,_0xd74124,_0x40931c){const _0x1a57bc=_0x3adaff,_0x22a3bd={..._0x153cf2[_0x1a57bc(0x257)]};_0x40931c!=null&&_0x40931c['colorChannel1']&&_0x22a3bd['fill']===_0x1a57bc(0x279)&&(_0x22a3bd[_0x1a57bc(0x193)]=_0x40931c[_0x1a57bc(0x279)]),_0x153cf2[_0x1a57bc(0x211)]===_0x1a57bc(0x1b6)&&_0x22a3bd['id']&&(_0x22a3bd['id']=_0x22a3bd['id']+_0xd74124['idSuffix']),Object['entries'](_0x22a3bd)[_0x1a57bc(0x16f)](([_0x32014f,_0x43be62])=>{const _0x1c0a89=_0x1a57bc;_0x32014f===_0x1c0a89(0x1b6)&&typeof _0x43be62==_0x1c0a89(0x1c3)&&(_0x22a3bd[_0x32014f]=_0x43be62[_0x1c0a89(0x225)](/url\(#(.*)\)/,'url(#$1'+_0xd74124[_0x1c0a89(0x231)]+')'));});const {defIds:_0x358670}=_0xd74124;return!_0x358670||_0x358670[_0x1a57bc(0x1f7)]===0x0||(_0x153cf2[_0x1a57bc(0x211)]===_0x1a57bc(0x194)&&_0x22a3bd[_0x1a57bc(0x1e1)]&&(_0x22a3bd[_0x1a57bc(0x1e1)]=_0x22a3bd[_0x1a57bc(0x1e1)]+_0xd74124[_0x1a57bc(0x231)]),Object[_0x1a57bc(0x273)](_0x22a3bd)[_0x1a57bc(0x16f)](([_0x335ba8,_0x548f08])=>{const _0xd5619f=_0x1a57bc;typeof _0x548f08==_0xd5619f(0x1c3)&&(_0x22a3bd[_0x335ba8]=_0x548f08['replace'](/url\(#(.*)\)/,'url(#$1'+_0xd74124[_0xd5619f(0x231)]+')'));})),_0x22a3bd;}function _0x1fe76f(_0x5aa4fb,_0x444982){const _0x182ae6=_0x3adaff;var _0xc0926d;const {defIds:_0x4a2243}=_0x444982;return!_0x4a2243||_0x4a2243['length']===0x0?_0x5aa4fb:_0x5aa4fb['tag']===_0x182ae6(0x212)&&((_0xc0926d=_0x5aa4fb[_0x182ae6(0x165)])!=null&&_0xc0926d['length'])?{..._0x5aa4fb,'children':_0x5aa4fb[_0x182ae6(0x165)]['map'](_0x490e70=>typeof _0x490e70['attrs']['id']==_0x182ae6(0x1c3)&&_0x4a2243&&_0x4a2243[_0x182ae6(0x188)](_0x490e70[_0x182ae6(0x257)]['id'])?{..._0x490e70,'attrs':{..._0x490e70[_0x182ae6(0x257)],'id':_0x490e70[_0x182ae6(0x257)]['id']+_0x444982[_0x182ae6(0x231)]}}:_0x490e70)}:_0x5aa4fb;}function _0x1c53ed(){const _0x19eabb=_0x3adaff;return Math[_0x19eabb(0x1e2)]()['toString'](0x24)[_0x19eabb(0x23c)](0x2,0x8);}_0x2074d9['displayName']=_0x3adaff(0x240);const _0x277e5b={'tag':'svg','attrs':{'xmlns':_0x3adaff(0x180),'fill':'none','viewBox':_0x3adaff(0x173),'width':_0x3adaff(0x164),'height':_0x3adaff(0x164)},'children':[{'tag':'g','attrs':{'fill':_0x3adaff(0x1ea),'clipPath':_0x3adaff(0x277)},'children':[{'tag':_0x3adaff(0x22b),'attrs':{'d':_0x3adaff(0x207)}},{'tag':'path','attrs':{'d':_0x3adaff(0x1f9)}}]},{'tag':_0x3adaff(0x212),'attrs':{},'children':[{'tag':_0x3adaff(0x1df),'attrs':{'id':_0x3adaff(0x1ef)},'children':[{'tag':_0x3adaff(0x22b),'attrs':{'fill':_0x3adaff(0x234),'d':_0x3adaff(0x23b)}}]}]}],'defIds':['history-icon_clip0_907_281']},_0x4f8497=_0x36e089[_0x3adaff(0x205)](function(_0xd3c642,_0x4adaed){const _0x49cc87=_0x3adaff;return _0x36e089['createElement'](_0x2074d9,Object[_0x49cc87(0x222)]({},_0xd3c642,{'id':_0x49cc87(0x218),'ref':_0x4adaed,'icon':_0x277e5b}));});_0x4f8497['displayName']=_0x3adaff(0x179);var _0x4e71b2=Object[_0x3adaff(0x22e)],_0x32299b=(_0x5db7f4,_0x462e8d,_0x292060,_0x18c411)=>{const _0x2226b5=_0x3adaff;for(var _0x153e5f=_0x18c411>0x1?void 0x0:_0x18c411?_0x4e71b2(_0x462e8d,_0x292060):_0x462e8d,_0x28bf96=_0x5db7f4[_0x2226b5(0x1f7)]-0x1,_0x223b37;_0x28bf96>=0x0;_0x28bf96--)(_0x223b37=_0x5db7f4[_0x28bf96])&&(_0x153e5f=_0x223b37(_0x153e5f)||_0x153e5f);return _0x153e5f;},_0x89249=(_0x45e8ec,_0x495d0f)=>(_0x51f01e,_0x514743)=>_0x495d0f(_0x51f01e,_0x514743,_0x45e8ec);const _0x385ee5='univer-container',_0x597b80='UNIVER_CONTAINER_ID',_0x42aa57='univer-history-container';_0x1278ea[_0x3adaff(0x1d0)]=class extends _0x339e3f['Disposable']{constructor(_0x11663f,_0x188f04,_0x312d83,_0x178e6a,_0xf3423,_0x4781aa,_0x105bf6,_0x2f9f11,_0x10dbd1,_0x3a8dd1){const _0x35526a=_0x3adaff;super(),_0x1bc6a7(this,_0x35526a(0x213),new _0x52b758['BehaviorSubject'](null)),_0x1bc6a7(this,_0x35526a(0x20e),this[_0x35526a(0x213)][_0x35526a(0x1aa)]()),_0x1bc6a7(this,_0x35526a(0x27c),new _0x339e3f[(_0x35526a(0x18d))]()),_0x1bc6a7(this,'_pluginMap',new Map()),(this[_0x35526a(0x190)]=_0x11663f,this['_univerInstanceService']=_0x188f04,this[_0x35526a(0x204)]=_0x312d83,this[_0x35526a(0x248)]=_0x178e6a,this[_0x35526a(0x16a)]=_0xf3423,this[_0x35526a(0x263)]=_0x4781aa,this[_0x35526a(0x20d)]=_0x105bf6,this['_dialogService']=_0x2f9f11,this['_sidebarService']=_0x10dbd1,this['_themeService']=_0x3a8dd1,this['_init']());}get[_0x3adaff(0x23f)](){const _0x4519e3=_0x3adaff;return this[_0x4519e3(0x213)][_0x4519e3(0x16d)];}['_init'](){const _0x2648ab=_0x3adaff;this[_0x2648ab(0x229)](),this[_0x2648ab(0x1f0)]();}[_0x3adaff(0x229)](){const _0x49f8b9=_0x3adaff;var _0x387693;const _0x4f5111=(_0x387693=this[_0x49f8b9(0x204)]['getConfig'](_0x597b80))!=null?_0x387693:_0x385ee5,_0x5d82ce=document[_0x49f8b9(0x172)](_0x4f5111);if(!_0x5d82ce)return;const _0x5cf393=document[_0x49f8b9(0x220)]('div');_0x5cf393['id']=_0x42aa57,_0x5cf393['dataset'][_0x49f8b9(0x17b)]=_0x49f8b9(0x17e),_0x5cf393[_0x49f8b9(0x1e9)][_0x49f8b9(0x1d7)]=_0x49f8b9(0x1c4),_0x5cf393[_0x49f8b9(0x1e9)][_0x49f8b9(0x215)]='0',_0x5cf393[_0x49f8b9(0x1e9)]['left']='0',_0x5cf393[_0x49f8b9(0x1e9)][_0x49f8b9(0x1c2)]=_0x49f8b9(0x1ee),_0x5cf393[_0x49f8b9(0x1e9)][_0x49f8b9(0x201)]=_0x49f8b9(0x1ee),_0x5cf393[_0x49f8b9(0x1e9)][_0x49f8b9(0x1e0)]=_0x49f8b9(0x1c9),_0x5cf393[_0x49f8b9(0x1e9)]['display']='none',_0x5d82ce[_0x49f8b9(0x272)](_0x5cf393);}[_0x3adaff(0x1f0)](){const _0x255d1b=_0x3adaff;var _0x108b55;[[_0x31f033[_0x255d1b(0x22c)]],[_0x51ef13['UniverUIPlugin'],{'container':_0x42aa57,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x51ef13[_0x255d1b(0x203)],null]]}],[_0x1ed6d5[_0x255d1b(0x27b)]],[_0xc144d8[_0x255d1b(0x18b)],{'override':[[_0xc144d8['IImageIoService'],null]]}],[_0x542d8b['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x4b659b['UniverDocsUIPlugin']],[_0x44f0b8[_0x255d1b(0x233)]],[_0x26f8ec['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0xcb266c[_0x255d1b(0x15e)]],[_0x5bf049['UniverSheetsFormulaPlugin']],[_0x14659c[_0x255d1b(0x244)]],[_0xf8ce4f[_0x255d1b(0x238)]],[_0x324e13[_0x255d1b(0x275)]],[_0xd5eb1[_0x255d1b(0x1a2)]],[_0x19420c[_0x255d1b(0x278)]],[_0x1e7f41['UniverSheetsConditionalFormattingUIPlugin']],[_0x7824a2[_0x255d1b(0x1fa)]],[_0x83e7f6[_0x255d1b(0x252)]],[_0x4b21f9[_0x255d1b(0x251)]],[_0x5a3af6[_0x255d1b(0x254)]],[_0x44c346[_0x255d1b(0x168)]],[_0x4bdac8[_0x255d1b(0x24d)],{'notExecuteFormula':!0x0}],[_0x307b38[_0x255d1b(0x232)],{'workerURL':_0x255d1b(0x1a8)}],[_0x5344d2[_0x255d1b(0x1b0)]],[_0x447d40[_0x255d1b(0x196)]],[_0x5c083a[_0x255d1b(0x20f)]],[_0x3fe4ae['UniverSheetSparklinePlugin']],[_0x489412[_0x255d1b(0x1d5)]],[_0x2c0534['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x5132cd['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x108b55=this['_configService'][_0x255d1b(0x237)](_0x225b63))==null?void 0x0:_0x108b55['historyListServerUrl']}]][_0x255d1b(0x16f)](([_0x347012,_0x1a1121])=>this[_0x255d1b(0x239)](_0x347012,_0x1a1121));}[_0x3adaff(0x161)](){const _0x4fa172=_0x3adaff;super[_0x4fa172(0x161)](),this['unMountHistoryContent'](),this[_0x4fa172(0x20b)]['clear']();}[_0x3adaff(0x239)](_0x4bc22d,_0x536a1a,_0x47dfd3){const _0x5e87d9=_0x3adaff;if(this[_0x5e87d9(0x20b)][_0x5e87d9(0x20a)](_0x4bc22d['pluginName'])&&!_0x47dfd3)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x4bc22d[_0x5e87d9(0x18f)]+_0x5e87d9(0x19d));this[_0x5e87d9(0x20b)][_0x5e87d9(0x253)](_0x4bc22d[_0x5e87d9(0x18f)],[_0x4bc22d,_0x536a1a]);}[_0x3adaff(0x189)](){const _0x4135e1=_0x3adaff;return Array[_0x4135e1(0x169)](this['_pluginMap'][_0x4135e1(0x1c0)]());}[_0x3adaff(0x1e7)](_0x20859a){const _0x3b6a03=_0x3adaff,_0x2152cb=document[_0x3b6a03(0x172)](_0x42aa57);_0x2152cb&&(_0x2152cb[_0x3b6a03(0x1e9)]['display']=_0x3b6a03(0x16c),this[_0x3b6a03(0x26a)](_0x20859a,_0x42aa57));}[_0x3adaff(0x261)](){const _0x25a251=_0x3adaff;var _0x935b6e;this[_0x25a251(0x27c)][_0x25a251(0x161)](),(_0x935b6e=this[_0x25a251(0x23f)])==null||_0x935b6e['dispose'](),this[_0x25a251(0x213)][_0x25a251(0x209)](null);const _0x14c147=document['getElementById'](_0x42aa57);_0x14c147&&(_0x14c147[_0x25a251(0x1e9)][_0x25a251(0x184)]=_0x25a251(0x18e));}['_initUniver'](_0xf03db3,_0xef6d4b){const _0x2253c2=_0x3adaff;if(this['historyUniver'])return;const _0x39711c=new _0x339e3f[(_0x2253c2(0x1ff))]({'locales':{[this[_0x2253c2(0x190)][_0x2253c2(0x1a5)]()]:this[_0x2253c2(0x190)][_0x2253c2(0x175)]()},'override':[[_0x339e3f['IAuthzIoService'],{'useClass':_0x454ce2[_0x2253c2(0x1a3)]}]]}),_0x3aae11=_0x39711c[_0x2253c2(0x250)]();this[_0x2253c2(0x26d)](this[_0x2253c2(0x259)]['darkMode$'][_0x2253c2(0x1f8)](_0x2d8c0a=>{const _0xaa9379=_0x2253c2;_0x3aae11[_0xaa9379(0x245)](_0x339e3f[_0xaa9379(0x256)])['setDarkMode'](_0x2d8c0a);})),this['disposeWithMe'](this[_0x2253c2(0x259)][_0x2253c2(0x160)][_0x2253c2(0x1f8)](_0x301a3d=>{const _0x1f801c=_0x2253c2;_0x3aae11['get'](_0x339e3f[_0x1f801c(0x256)])[_0x1f801c(0x24c)](_0x301a3d);})),_0x3aae11[_0x2253c2(0x245)](_0x339e3f[_0x2253c2(0x1b7)])['setLocale'](this['_localeService'][_0x2253c2(0x1a5)]()),_0x3aae11[_0x2253c2(0x245)](_0x339e3f['IConfigService'])['setConfig'](_0x454ce2[_0x2253c2(0x195)],this[_0x2253c2(0x204)][_0x2253c2(0x237)](_0x454ce2[_0x2253c2(0x195)]));const _0x34b3ae=this[_0x2253c2(0x204)]['getConfig'](_0x547ba6[_0x2253c2(0x223)]);_0x34b3ae&&_0x39711c[_0x2253c2(0x239)](_0x547ba6[_0x2253c2(0x16e)],{'license':_0x34b3ae['ls']}),this['_pluginMap'][_0x2253c2(0x16f)](([_0x48c73a,_0x1a3676])=>{_0x39711c['registerPlugin'](_0x48c73a,_0x1a3676);}),_0x3aae11[_0x2253c2(0x21b)](_0x51fd8d=>{const _0x42fa84=_0x2253c2;this[_0x42fa84(0x1ca)](_0x51fd8d,_0xf03db3);}),this[_0x2253c2(0x213)][_0x2253c2(0x209)](_0x39711c);const _0x3eeb08=_0x3aae11[_0x2253c2(0x245)](_0x5132cd['HistoryManagerService']),_0x115867=this[_0x2253c2(0x264)](_0xf03db3);_0x3eeb08[_0x2253c2(0x22f)](_0xf03db3,_0xef6d4b,_0x115867);}['_initListener'](_0x1de5f0,_0x4c0b89){const _0x466607=_0x3adaff,_0x2e8efd=_0x1de5f0['get'](_0x5132cd[_0x466607(0x1ab)]);this[_0x466607(0x27c)][_0x466607(0x206)](_0x2e8efd['status$'][_0x466607(0x1f8)](_0x591e47=>{const _0x54568b=_0x466607;switch(_0x591e47){case _0x5132cd['HistoryModeStatus'][_0x54568b(0x183)]:this[_0x54568b(0x24f)]['closeAll'](),this['_sidebarService'][_0x54568b(0x1a0)]();break;case _0x5132cd[_0x54568b(0x26f)][_0x54568b(0x163)]:this[_0x54568b(0x261)]();break;case _0x5132cd['HistoryModeStatus'][_0x54568b(0x221)]:this[_0x54568b(0x261)](),this[_0x54568b(0x16a)][_0x54568b(0x21e)]({'content':this['_localeService']['t'](_0x54568b(0x242)),'type':_0x476c4b['MessageType'][_0x54568b(0x221)],'duration':0xbb8});break;}})),this[_0x466607(0x27c)][_0x466607(0x206)](_0x2e8efd['revertRevision$'][_0x466607(0x1f8)](async _0x464235=>{const _0x40d459=_0x466607;_0x464235&&this[_0x40d459(0x248)]['executeCommand'](_0xf8ce4f[_0x40d459(0x186)]['id'],{'unitId':_0x4c0b89,'revision':_0x464235});}));}[_0x3adaff(0x264)](_0x194c8f){const _0x40c32e=_0x3adaff,_0x5b8a57=this[_0x40c32e(0x23a)][_0x40c32e(0x26c)](_0x194c8f)[_0x40c32e(0x17c)]()['map'](_0x3a5a34=>_0x3a5a34[_0x40c32e(0x1e5)]()),_0x58ac6e=new _0x26f8ec['WorkbookEditablePermission'](_0x194c8f)['id'],_0x3f1379=_0x5b8a57[_0x40c32e(0x200)](_0x1ab856=>new _0x26f8ec[(_0x40c32e(0x1dc))](_0x194c8f,_0x1ab856)['id']),_0x386c8c=_0x5b8a57['map'](_0x1c9321=>this[_0x40c32e(0x20d)][_0x40c32e(0x269)](_0x194c8f,_0x1c9321)[_0x40c32e(0x200)](_0x3cf3c0=>new _0x26f8ec[(_0x40c32e(0x25f))](_0x194c8f,_0x1c9321,_0x3cf3c0[_0x40c32e(0x20c)])['id']))[_0x40c32e(0x1bd)](),_0x35828b=new _0x26f8ec[(_0x40c32e(0x1c7))](_0x194c8f)['id'];return this[_0x40c32e(0x263)]['composePermission']([_0x58ac6e,..._0x3f1379,..._0x386c8c,_0x35828b])[_0x40c32e(0x1ba)](_0x54844c=>!!_0x54844c[_0x40c32e(0x16d)]);}},_0x1278ea[_0x3adaff(0x1d0)]=_0x32299b([_0x89249(0x0,_0x339e3f[_0x3adaff(0x185)](_0x339e3f['LocaleService'])),_0x89249(0x1,_0x339e3f['IUniverInstanceService']),_0x89249(0x2,_0x339e3f[_0x3adaff(0x210)]),_0x89249(0x3,_0x339e3f[_0x3adaff(0x202)]),_0x89249(0x4,_0x51ef13[_0x3adaff(0x1d6)]),_0x89249(0x5,_0x339e3f[_0x3adaff(0x1f3)]),_0x89249(0x6,_0x339e3f['Inject'](_0x26f8ec['RangeProtectionRuleModel'])),_0x89249(0x7,_0x339e3f['Inject'](_0x51ef13[_0x3adaff(0x203)])),_0x89249(0x8,_0x339e3f['Inject'](_0x51ef13['ISidebarService'])),_0x89249(0x9,_0x339e3f[_0x3adaff(0x185)](_0x339e3f['ThemeService']))],_0x1278ea[_0x3adaff(0x1d0)]);const _0x3ddd6d={'id':_0x3adaff(0x1fd),'type':_0x339e3f[_0x3adaff(0x255)][_0x3adaff(0x1bf)],'handler':_0x172860=>{const _0x2c00ae=_0x3adaff,_0x189abf=_0x172860[_0x2c00ae(0x245)](_0x1278ea[_0x2c00ae(0x1d0)]),_0x329ce7=_0x172860[_0x2c00ae(0x245)](_0x339e3f[_0x2c00ae(0x27e)]),{unitId:_0x56f878}=_0x26f8ec['getSheetCommandTarget'](_0x329ce7)||{};return _0x56f878?(_0x189abf[_0x2c00ae(0x1e7)](_0x56f878),!0x0):!0x1;}};function _0x4ddd9b(_0x3837ec){const _0x1a393f=_0x3adaff;return{'id':_0x3ddd6d['id'],'type':_0x51ef13[_0x1a393f(0x1cf)][_0x1a393f(0x182)],'icon':_0x1a393f(0x179),'tooltip':_0x1a393f(0x1b8),'hidden$':_0x51ef13[_0x1a393f(0x243)](_0x3837ec,_0x339e3f[_0x1a393f(0x1e8)][_0x1a393f(0x1c8)]),'disabled$':_0xcb266c[_0x1a393f(0x1de)](_0x3837ec,{'workbookTypes':[_0x26f8ec[_0x1a393f(0x25a)],_0x26f8ec[_0x1a393f(0x1b9)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x567382={[_0x51ef13[_0x3adaff(0x27a)]['OTHERS']]:{[_0x3ddd6d['id']]:{'order':0.2,'menuItemFactory':_0x4ddd9b}}};var _0x2e5c25=Object[_0x3adaff(0x22e)],_0x2a2dee=(_0x5efdd5,_0x59bdc4,_0x3e7f03,_0x4a8867)=>{const _0x259923=_0x3adaff;for(var _0x1d7481=_0x4a8867>0x1?void 0x0:_0x4a8867?_0x2e5c25(_0x59bdc4,_0x3e7f03):_0x59bdc4,_0x359013=_0x5efdd5[_0x259923(0x1f7)]-0x1,_0x407594;_0x359013>=0x0;_0x359013--)(_0x407594=_0x5efdd5[_0x359013])&&(_0x1d7481=_0x407594(_0x1d7481)||_0x1d7481);return _0x1d7481;},_0x2f89bb=(_0x49f6e5,_0x44f541)=>(_0x30849c,_0xe95579)=>_0x44f541(_0x30849c,_0xe95579,_0x49f6e5);let _0x314eb1=class extends _0x339e3f[_0x3adaff(0x21a)]{constructor(_0x5b1796,_0x9d675f,_0x3f61bb,_0x14ccb3,_0x327da1,_0x347b3a,_0x2539e1,_0x1b2a68){const _0x3eaf09=_0x3adaff;super(),_0x1bc6a7(this,'_revertErrorTimer',null),(this[_0x3eaf09(0x248)]=_0x5b1796,this[_0x3eaf09(0x208)]=_0x9d675f,this['_componentManager']=_0x3f61bb,this[_0x3eaf09(0x1e3)]=_0x14ccb3,this[_0x3eaf09(0x190)]=_0x327da1,this[_0x3eaf09(0x16a)]=_0x347b3a,this[_0x3eaf09(0x235)]=_0x2539e1,this[_0x3eaf09(0x22a)]=_0x1b2a68,this['_init']());}[_0x3adaff(0x271)](){const _0x55b5cc=_0x3adaff;[_0x3ddd6d]['forEach'](_0x216a8b=>this[_0x55b5cc(0x26d)](_0x339e3f[_0x55b5cc(0x1ed)](this[_0x55b5cc(0x248)][_0x55b5cc(0x224)](_0x216a8b)))),this[_0x55b5cc(0x26d)](this['_componentManager'][_0x55b5cc(0x21d)](_0x55b5cc(0x179),_0x4f8497)),this[_0x55b5cc(0x208)][_0x55b5cc(0x1d9)](_0x567382),this[_0x55b5cc(0x26d)](this[_0x55b5cc(0x248)][_0x55b5cc(0x18a)](_0x4d6724=>{const _0x3020c2=_0x55b5cc;if(_0x4d6724['id']===_0xf8ce4f[_0x3020c2(0x186)]['id']){this['_messageService'][_0x3020c2(0x21e)]({'content':this['_localeService']['t'](_0x3020c2(0x246)),'type':_0x476c4b['MessageType'][_0x3020c2(0x268)],'duration':0x1388});const {unitId:_0x494cb1}=_0x4d6724[_0x3020c2(0x1fb)],_0x753ae4=this[_0x3020c2(0x235)][_0x3020c2(0x19e)](_0x494cb1),_0x3eba8a=_0x52b758[_0x3020c2(0x1f1)]([_0x753ae4[_0x3020c2(0x249)][_0x3020c2(0x198)],_0x753ae4['state$']])[_0x3020c2(0x1f8)](async([_0x556056,_0xd8b73])=>{const _0x7dfaa6=_0x3020c2;var _0x1e3094;_0x556056[_0x7dfaa6(0x1c6)]===_0xf8ce4f[_0x7dfaa6(0x1a4)]['CHANGESET_ACK']&&(_0xd8b73==null?void 0x0:_0xd8b73[_0x7dfaa6(0x1bc)])===_0x454ce2[_0x7dfaa6(0x1cb)][_0x7dfaa6(0x181)]&&_0x556056[_0x7dfaa6(0x1ac)]['mutations']['some'](_0x38f9cf=>_0x38f9cf['id']===_0xf8ce4f['RevertRevisionMutation']['id'])&&(this[_0x7dfaa6(0x1e3)][_0x7dfaa6(0x261)](),_0x3eba8a[_0x7dfaa6(0x227)](),this[_0x7dfaa6(0x187)]&&clearTimeout(this[_0x7dfaa6(0x187)]),await((_0x1e3094=this[_0x7dfaa6(0x22a)])==null?void 0x0:_0x1e3094[_0x7dfaa6(0x236)]()),setTimeout(()=>window['location'][_0x7dfaa6(0x217)]()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x4a3fab=_0x3020c2;_0x3eba8a[_0x4a3fab(0x227)](),this[_0x4a3fab(0x16a)][_0x4a3fab(0x21e)]({'content':this[_0x4a3fab(0x190)]['t'](_0x4a3fab(0x216)),'type':_0x476c4b[_0x4a3fab(0x276)][_0x4a3fab(0x221)],'duration':0xbb8});},0x1388);}}));}};_0x314eb1=_0x2a2dee([_0x2f89bb(0x0,_0x339e3f['ICommandService']),_0x2f89bb(0x1,_0x51ef13['IMenuManagerService']),_0x2f89bb(0x2,_0x339e3f[_0x3adaff(0x185)](_0x51ef13[_0x3adaff(0x176)])),_0x2f89bb(0x3,_0x339e3f[_0x3adaff(0x185)](_0x1278ea['HistoryLoaderService'])),_0x2f89bb(0x4,_0x339e3f[_0x3adaff(0x185)](_0x339e3f['LocaleService'])),_0x2f89bb(0x5,_0x51ef13[_0x3adaff(0x1d6)]),_0x2f89bb(0x6,_0x339e3f['Inject'](_0x454ce2[_0x3adaff(0x274)])),_0x2f89bb(0x7,_0x454ce2[_0x3adaff(0x21f)])],_0x314eb1);var _0x56603f=Object['getOwnPropertyDescriptor'],_0x591ce8=(_0x598b86,_0x57c667,_0x3c060b,_0x3ea658)=>{const _0x7e316a=_0x3adaff;for(var _0xb27f06=_0x3ea658>0x1?void 0x0:_0x3ea658?_0x56603f(_0x57c667,_0x3c060b):_0x57c667,_0x220fa7=_0x598b86[_0x7e316a(0x1f7)]-0x1,_0x5c9f98;_0x220fa7>=0x0;_0x220fa7--)(_0x5c9f98=_0x598b86[_0x220fa7])&&(_0xb27f06=_0x5c9f98(_0xb27f06)||_0xb27f06);return _0xb27f06;},_0x1b37ed=(_0x280b1e,_0x1852a3)=>(_0x3ea069,_0x5a7721)=>_0x1852a3(_0x3ea069,_0x5a7721,_0x280b1e);const _0x3de01b=_0x3adaff(0x19c);_0x1278ea[_0x3adaff(0x16b)]=(_0x3f0a29=class extends _0x339e3f[_0x3adaff(0x17f)]{constructor(_0x214e03=_0x4daa1a,_0x3a1f90,_0x55b04b){const _0x8d5b9=_0x3adaff;super(),this[_0x8d5b9(0x1ad)]=_0x214e03,this[_0x8d5b9(0x1d2)]=_0x3a1f90,this[_0x8d5b9(0x204)]=_0x55b04b;const {menu:_0x1579e4,..._0x4b17c5}=_0x339e3f[_0x8d5b9(0x174)]({},_0x4daa1a,this[_0x8d5b9(0x1ad)]);_0x1579e4&&this[_0x8d5b9(0x204)][_0x8d5b9(0x25d)]('menu',_0x1579e4,{'merge':!0x0}),this['_configService']['setConfig'](_0x225b63,_0x4b17c5),this[_0x8d5b9(0x1ad)][_0x8d5b9(0x178)]&&this['_configService'][_0x8d5b9(0x25d)](_0x597b80,this['_config']['univerContainerId']);}[_0x3adaff(0x258)](){const _0x48bbcf=_0x3adaff;[[_0x1278ea[_0x48bbcf(0x1d0)]],[_0x314eb1]]['forEach'](_0x443edb=>this[_0x48bbcf(0x1d2)]['add'](_0x443edb));}['onSteady'](){const _0x2bba05=_0x3adaff;this[_0x2bba05(0x1d2)][_0x2bba05(0x245)](_0x314eb1);}},_0x1bc6a7(_0x3f0a29,_0x3adaff(0x262),_0x339e3f[_0x3adaff(0x1e8)][_0x3adaff(0x267)]),_0x1bc6a7(_0x3f0a29,'pluginName',_0x3de01b),_0x3f0a29),_0x1278ea['UniverEditHistoryLoaderPlugin']=_0x591ce8([_0x1b37ed(0x1,_0x339e3f[_0x3adaff(0x185)](_0x339e3f[_0x3adaff(0x25c)])),_0x1b37ed(0x2,_0x339e3f[_0x3adaff(0x210)])],_0x1278ea[_0x3adaff(0x16b)]),_0x1278ea[_0x3adaff(0x1e6)]=_0x597b80,_0x1278ea[_0x3adaff(0x1f5)]=_0x42aa57,Object[_0x3adaff(0x162)](_0x1278ea,Symbol[_0x3adaff(0x1f6)],{'value':_0x3adaff(0x167)});}));
1
+ function _0x2491(_0x31f9c4,_0x15d79b){_0x31f9c4=_0x31f9c4-0x1b2;const _0x19ecff=_0x19ec();let _0x249160=_0x19ecff[_0x31f9c4];return _0x249160;}(function(_0x4d9a13,_0x34c79a){const _0x4a37b6=_0x2491,_0x5678d0=_0x4d9a13();while(!![]){try{const _0x3a1765=-parseInt(_0x4a37b6(0x2ca))/0x1*(parseInt(_0x4a37b6(0x2e1))/0x2)+parseInt(_0x4a37b6(0x2a9))/0x3+-parseInt(_0x4a37b6(0x29f))/0x4+parseInt(_0x4a37b6(0x248))/0x5+-parseInt(_0x4a37b6(0x26b))/0x6+-parseInt(_0x4a37b6(0x1c9))/0x7+parseInt(_0x4a37b6(0x262))/0x8*(parseInt(_0x4a37b6(0x1d8))/0x9);if(_0x3a1765===_0x34c79a)break;else _0x5678d0['push'](_0x5678d0['shift']());}catch(_0x273541){_0x5678d0['push'](_0x5678d0['shift']());}}}(_0x19ec,0xe921c),function(_0x232403,_0x435ffc){const _0x3e1f66=_0x2491;typeof exports==_0x3e1f66(0x2c1)&&typeof module<'u'?_0x435ffc(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),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-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),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-ui')):typeof define==_0x3e1f66(0x242)&&define[_0x3e1f66(0x2c0)]?define([_0x3e1f66(0x1bc),'@univerjs/core',_0x3e1f66(0x261),_0x3e1f66(0x22c),_0x3e1f66(0x289),'react',_0x3e1f66(0x238),_0x3e1f66(0x1b2),_0x3e1f66(0x296),_0x3e1f66(0x1d1),'@univerjs-pro/license',_0x3e1f66(0x221),_0x3e1f66(0x1b5),'@univerjs-pro/sheets-pivot',_0x3e1f66(0x21d),_0x3e1f66(0x1c2),_0x3e1f66(0x26e),_0x3e1f66(0x25a),'@univerjs/docs-ui',_0x3e1f66(0x255),_0x3e1f66(0x2b7),_0x3e1f66(0x20e),_0x3e1f66(0x2bb),_0x3e1f66(0x2de),_0x3e1f66(0x1e8),_0x3e1f66(0x2b6),_0x3e1f66(0x1e5),_0x3e1f66(0x1f6),'@univerjs/sheets-data-validation-ui',_0x3e1f66(0x1d5),_0x3e1f66(0x1c0),'@univerjs/sheets-filter',_0x3e1f66(0x271),_0x3e1f66(0x1fb),_0x3e1f66(0x1e4),_0x3e1f66(0x1b7),_0x3e1f66(0x1d2),_0x3e1f66(0x1d9),'@univerjs/sheets-ui'],_0x435ffc):(_0x232403=typeof globalThis<'u'?globalThis:_0x232403||self,_0x435ffc(_0x232403[_0x3e1f66(0x2e5)]={},_0x232403[_0x3e1f66(0x21a)],_0x232403[_0x3e1f66(0x28a)],_0x232403[_0x3e1f66(0x21c)],_0x232403[_0x3e1f66(0x251)],_0x232403[_0x3e1f66(0x28d)],_0x232403['UniverUi'],_0x232403[_0x3e1f66(0x1b2)],_0x232403['UniverSheets'],_0x232403['UniverProEditHistoryViewer'],_0x232403[_0x3e1f66(0x25b)],_0x232403[_0x3e1f66(0x201)],_0x232403[_0x3e1f66(0x2b3)],_0x232403[_0x3e1f66(0x22d)],_0x232403['UniverProSheetsSparkline'],_0x232403[_0x3e1f66(0x2dc)],_0x232403[_0x3e1f66(0x24c)],_0x232403[_0x3e1f66(0x1fd)],_0x232403['UniverDocsUi'],_0x232403['UniverDrawing'],_0x232403['UniverDrawingUi'],_0x232403['UniverEngineFormula'],_0x232403[_0x3e1f66(0x275)],_0x232403[_0x3e1f66(0x2a0)],_0x232403[_0x3e1f66(0x1f3)],_0x232403[_0x3e1f66(0x25d)],_0x232403['UniverSheetsConditionalFormattingUi'],_0x232403['UniverSheetsDataValidation'],_0x232403[_0x3e1f66(0x246)],_0x232403['UniverSheetsDrawing'],_0x232403[_0x3e1f66(0x21b)],_0x232403[_0x3e1f66(0x1c6)],_0x232403[_0x3e1f66(0x227)],_0x232403[_0x3e1f66(0x290)],_0x232403[_0x3e1f66(0x2d6)],_0x232403[_0x3e1f66(0x2bc)],_0x232403[_0x3e1f66(0x282)],_0x232403[_0x3e1f66(0x1ff)],_0x232403['UniverSheetsUi']));}(this,function(_0x37ed36,_0x5e0081,_0x38ff03,_0x2d110c,_0x26996d,_0xfa8fbb,_0x40b810,_0x2e334b,_0xabd4d7,_0x4e98b3,_0x132b5c,_0x186b01,_0xea441,_0xeb6806,_0x4ae3cf,_0x5b8831,_0x54b5c4,_0x73a386,_0x11288e,_0x48fec7,_0x8721ad,_0x4013fc,_0x305900,_0x4023a4,_0x43e4c8,_0x5a936b,_0x54bd14,_0x15a161,_0xbdc45,_0x46058b,_0x42707c,_0x1b7883,_0xd90a97,_0x5efaee,_0x7a34a2,_0x8ddf61,_0x468d5e,_0x12adcb,_0x5123ab){'use strict';const _0x3f62c2=_0x2491;var _0x5d8d29=Object[_0x3f62c2(0x247)],_0x17d406=(_0x12dd46,_0x3aaa18,_0xd2fc01)=>_0x3aaa18 in _0x12dd46?_0x5d8d29(_0x12dd46,_0x3aaa18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd2fc01}):_0x12dd46[_0x3aaa18]=_0xd2fc01,_0x1dfa01=(_0x32c9b8,_0x53ba1f,_0x246afb)=>_0x17d406(_0x32c9b8,typeof _0x53ba1f!=_0x3f62c2(0x2af)?_0x53ba1f+'':_0x53ba1f,_0x246afb),_0x175e7a;const _0x238ff0=_0x3f62c2(0x2df),_0x4cd2c4={};function _0x5091d2({ref:_0x5a061a,..._0x1c09ab}){const _0x2affc1=_0x3f62c2,{icon:_0x192ad2,id:_0xcd34ff,className:_0x4d83b,extend:_0x526db2,..._0x2510ca}=_0x1c09ab,_0x4c3d01=(_0x2affc1(0x2a8)+_0xcd34ff+'\x20'+(_0x4d83b||''))['trim'](),_0x2ef444=_0xfa8fbb[_0x2affc1(0x1b6)]('_'+_0x50aecd());return _0x463fb3(_0x192ad2,''+_0xcd34ff,{'defIds':_0x192ad2[_0x2affc1(0x260)],'idSuffix':_0x2ef444[_0x2affc1(0x20d)]},{'ref':_0x5a061a,'className':_0x4c3d01,..._0x2510ca},_0x526db2);}function _0x463fb3(_0x3bdefd,_0x25f923,_0x1778db,_0xb15994,_0x20d881){const _0x58de66=_0x3f62c2;return _0xfa8fbb[_0x58de66(0x24d)](_0x3bdefd[_0x58de66(0x2b5)],{'key':_0x25f923,..._0x2e0340(_0x3bdefd,_0x1778db,_0x20d881),..._0xb15994},(_0x496cdf(_0x3bdefd,_0x1778db)[_0x58de66(0x291)]||[])[_0x58de66(0x2d4)]((_0x522e93,_0xef0433)=>_0x463fb3(_0x522e93,_0x25f923+'-'+_0x3bdefd['tag']+'-'+_0xef0433,_0x1778db,void 0x0,_0x20d881)));}function _0x2e0340(_0x4d36bd,_0x334047,_0xce5971){const _0x5b60bb=_0x3f62c2,_0x14de75={..._0x4d36bd['attrs']};_0xce5971!=null&&_0xce5971[_0x5b60bb(0x2bd)]&&_0x14de75[_0x5b60bb(0x2b8)]===_0x5b60bb(0x2bd)&&(_0x14de75[_0x5b60bb(0x2b8)]=_0xce5971[_0x5b60bb(0x2bd)]),_0x4d36bd[_0x5b60bb(0x2b5)]===_0x5b60bb(0x25c)&&_0x14de75['id']&&(_0x14de75['id']=_0x14de75['id']+_0x334047[_0x5b60bb(0x28c)]),Object['entries'](_0x14de75)['forEach'](([_0x5a1b3c,_0x436ea7])=>{const _0x5694b0=_0x5b60bb;_0x5a1b3c==='mask'&&typeof _0x436ea7==_0x5694b0(0x2cc)&&(_0x14de75[_0x5a1b3c]=_0x436ea7[_0x5694b0(0x250)](/url\(#(.*)\)/,_0x5694b0(0x1fa)+_0x334047[_0x5694b0(0x28c)]+')'));});const {defIds:_0x5cd847}=_0x334047;return!_0x5cd847||_0x5cd847['length']===0x0||(_0x4d36bd[_0x5b60bb(0x2b5)]===_0x5b60bb(0x2a5)&&_0x14de75[_0x5b60bb(0x1f4)]&&(_0x14de75['xlink:href']=_0x14de75[_0x5b60bb(0x1f4)]+_0x334047[_0x5b60bb(0x28c)]),Object[_0x5b60bb(0x25e)](_0x14de75)[_0x5b60bb(0x2cd)](([_0x4dd918,_0x2c522c])=>{const _0x114056=_0x5b60bb;typeof _0x2c522c==_0x114056(0x2cc)&&(_0x14de75[_0x4dd918]=_0x2c522c[_0x114056(0x250)](/url\(#(.*)\)/,_0x114056(0x1fa)+_0x334047[_0x114056(0x28c)]+')'));})),_0x14de75;}function _0x496cdf(_0x22fb40,_0x49c121){const _0x5039df=_0x3f62c2;var _0x359b4b;const {defIds:_0x56aeee}=_0x49c121;return!_0x56aeee||_0x56aeee[_0x5039df(0x20f)]===0x0?_0x22fb40:_0x22fb40['tag']==='defs'&&((_0x359b4b=_0x22fb40[_0x5039df(0x291)])!=null&&_0x359b4b['length'])?{..._0x22fb40,'children':_0x22fb40['children'][_0x5039df(0x2d4)](_0x347c0b=>typeof _0x347c0b[_0x5039df(0x2e0)]['id']=='string'&&_0x56aeee&&_0x56aeee[_0x5039df(0x1cd)](_0x347c0b[_0x5039df(0x2e0)]['id'])?{..._0x347c0b,'attrs':{..._0x347c0b[_0x5039df(0x2e0)],'id':_0x347c0b[_0x5039df(0x2e0)]['id']+_0x49c121[_0x5039df(0x28c)]}}:_0x347c0b)}:_0x22fb40;}function _0x50aecd(){const _0x3e7afc=_0x3f62c2;return Math[_0x3e7afc(0x1d4)]()[_0x3e7afc(0x226)](0x24)[_0x3e7afc(0x2db)](0x2,0x8);}_0x5091d2[_0x3f62c2(0x264)]='UniverIcon';const _0x1bcacd={'tag':_0x3f62c2(0x2d0),'attrs':{'xmlns':_0x3f62c2(0x237),'fill':_0x3f62c2(0x2b2),'viewBox':_0x3f62c2(0x249),'width':_0x3f62c2(0x202),'height':_0x3f62c2(0x202)},'children':[{'tag':'g','attrs':{'fill':_0x3f62c2(0x2b0),'clipPath':_0x3f62c2(0x2ac)},'children':[{'tag':_0x3f62c2(0x293),'attrs':{'d':_0x3f62c2(0x258)}},{'tag':_0x3f62c2(0x293),'attrs':{'d':_0x3f62c2(0x2d9)}}]},{'tag':_0x3f62c2(0x259),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3f62c2(0x212)},'children':[{'tag':_0x3f62c2(0x293),'attrs':{'fill':_0x3f62c2(0x1fe),'d':_0x3f62c2(0x1e2)}}]}]}],'defIds':[_0x3f62c2(0x212)]},_0x46494c=_0xfa8fbb[_0x3f62c2(0x1cf)](function(_0x29b26a,_0x5097ce){const _0x40c8cc=_0x3f62c2;return _0xfa8fbb['createElement'](_0x5091d2,Object[_0x40c8cc(0x1e0)]({},_0x29b26a,{'id':_0x40c8cc(0x217),'ref':_0x5097ce,'icon':_0x1bcacd}));});_0x46494c[_0x3f62c2(0x264)]=_0x3f62c2(0x1bd);var _0x537925=Object['getOwnPropertyDescriptor'],_0x1dfa0c=(_0x1da9bc,_0x44a517,_0x2f064d,_0x35d2ce)=>{const _0x21f8d7=_0x3f62c2;for(var _0x3e4322=_0x35d2ce>0x1?void 0x0:_0x35d2ce?_0x537925(_0x44a517,_0x2f064d):_0x44a517,_0x2b3d3c=_0x1da9bc[_0x21f8d7(0x20f)]-0x1,_0x26eb91;_0x2b3d3c>=0x0;_0x2b3d3c--)(_0x26eb91=_0x1da9bc[_0x2b3d3c])&&(_0x3e4322=_0x26eb91(_0x3e4322)||_0x3e4322);return _0x3e4322;},_0x53f34b=(_0x1b9c33,_0x2e509b)=>(_0x41a1f3,_0x3c1447)=>_0x2e509b(_0x41a1f3,_0x3c1447,_0x1b9c33);const _0x40a312=_0x3f62c2(0x2ae),_0x38cac4=_0x3f62c2(0x1c8),_0x7dbcc1=_0x3f62c2(0x1ba);_0x37ed36['HistoryLoaderService']=class extends _0x5e0081[_0x3f62c2(0x24e)]{constructor(_0x339b1f,_0x4228b3,_0x7a4bae,_0xcc288d,_0x5a603c,_0x4633fb,_0x100bbf,_0x39f966,_0x1cf452,_0x36a1d3){const _0x45c12a=_0x3f62c2;super(),_0x1dfa01(this,_0x45c12a(0x1cb),new _0x2e334b['BehaviorSubject'](null)),_0x1dfa01(this,_0x45c12a(0x1de),this[_0x45c12a(0x1cb)][_0x45c12a(0x2a3)]()),_0x1dfa01(this,_0x45c12a(0x274),new _0x5e0081[(_0x45c12a(0x1db))]()),_0x1dfa01(this,_0x45c12a(0x2e2),new Map()),(this[_0x45c12a(0x266)]=_0x339b1f,this['_univerInstanceService']=_0x4228b3,this['_configService']=_0x7a4bae,this[_0x45c12a(0x204)]=_0xcc288d,this['_messageService']=_0x5a603c,this[_0x45c12a(0x276)]=_0x4633fb,this[_0x45c12a(0x1bf)]=_0x100bbf,this[_0x45c12a(0x1e6)]=_0x39f966,this[_0x45c12a(0x28b)]=_0x1cf452,this[_0x45c12a(0x1cc)]=_0x36a1d3,this['_init']());}get['historyUniver'](){const _0x28c2fb=_0x3f62c2;return this[_0x28c2fb(0x1cb)][_0x28c2fb(0x223)];}['_init'](){const _0x39bde5=_0x3f62c2;this[_0x39bde5(0x2cb)](),this['_initPlugins']();}[_0x3f62c2(0x2cb)](){const _0x162629=_0x3f62c2;var _0x23ce70;const _0x2f832a=(_0x23ce70=this['_configService'][_0x162629(0x2d1)](_0x38cac4))!=null?_0x23ce70:_0x40a312,_0x150448=document[_0x162629(0x297)](_0x2f832a);if(!_0x150448)return;const _0x12a945=document[_0x162629(0x24d)](_0x162629(0x253));_0x12a945['id']=_0x7dbcc1,_0x12a945[_0x162629(0x277)][_0x162629(0x210)]='history-container',_0x12a945[_0x162629(0x20b)][_0x162629(0x2ad)]=_0x162629(0x1c1),_0x12a945[_0x162629(0x20b)][_0x162629(0x2c5)]='0',_0x12a945[_0x162629(0x20b)][_0x162629(0x26f)]='0',_0x12a945[_0x162629(0x20b)]['width']=_0x162629(0x26d),_0x12a945[_0x162629(0x20b)][_0x162629(0x230)]=_0x162629(0x26d),_0x12a945['style'][_0x162629(0x218)]=_0x162629(0x2c4),_0x12a945[_0x162629(0x20b)][_0x162629(0x2dd)]='none',_0x150448[_0x162629(0x1c3)](_0x12a945);}[_0x3f62c2(0x25f)](){const _0x574f2f=_0x3f62c2;var _0x446716,_0x4a4bec;[[_0x305900[_0x574f2f(0x231)]],[_0x40b810[_0x574f2f(0x288)],{'container':_0x7dbcc1,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x40b810[_0x574f2f(0x273)],null]]}],[_0x4023a4[_0x574f2f(0x2d3)]],[_0x48fec7[_0x574f2f(0x1e7)],{'override':[[_0x48fec7[_0x574f2f(0x2c2)],null]]}],[_0x73a386[_0x574f2f(0x2d7)],{'hasScroll':!0x1}],[_0x11288e['UniverDocsUIPlugin']],[_0x12adcb[_0x574f2f(0x219)]],[_0xabd4d7[_0x574f2f(0x252)],{'notExecuteFormula':!0x0}],[_0x5123ab[_0x574f2f(0x1ea)]],[_0x5efaee[_0x574f2f(0x268)]],[_0x7a34a2['UniverSheetsFormulaUIPlugin']],[_0x38ff03[_0x574f2f(0x243)]],[_0x1b7883[_0x574f2f(0x22b)]],[_0xd90a97['UniverSheetsFilterUIPlugin']],[_0x5a936b[_0x574f2f(0x292)]],[_0x54bd14[_0x574f2f(0x1f0)]],[_0x8ddf61[_0x574f2f(0x22a)]],[_0x468d5e[_0x574f2f(0x265)]],[_0x54b5c4['UniverDataValidationPlugin']],[_0x15a161['UniverSheetsDataValidationPlugin']],[_0xbdc45[_0x574f2f(0x287)]],[_0x4013fc[_0x574f2f(0x21f)],{'notExecuteFormula':!0x0}],[_0x43e4c8['UniverRPCMainThreadPlugin'],{'workerURL':_0x574f2f(0x29c)}],[_0x8721ad[_0x574f2f(0x1ec)]],[_0x46058b[_0x574f2f(0x254)]],[_0x42707c[_0x574f2f(0x2c3)]],[_0x4ae3cf['UniverSheetSparklinePlugin']],[_0x5b8831['UniverSheetSparklineUIPlugin']],[_0x186b01[_0x574f2f(0x263)]],[_0xea441[_0x574f2f(0x203)]],[_0xeb6806['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x4e98b3[_0x574f2f(0x2aa)],{'historyListServerUrl':(_0x446716=this[_0x574f2f(0x2be)][_0x574f2f(0x2d1)](_0x238ff0))==null?void 0x0:_0x446716[_0x574f2f(0x27e)],'historyPanelComponentKey':(_0x4a4bec=this['_configService']['getConfig'](_0x238ff0))==null?void 0x0:_0x4a4bec[_0x574f2f(0x1e9)]}]]['forEach'](([_0x502617,_0x3516c9])=>this['registerPlugin'](_0x502617,_0x3516c9));}[_0x3f62c2(0x239)](){const _0x3601e1=_0x3f62c2;super['dispose'](),this[_0x3601e1(0x240)](),this['_pluginMap'][_0x3601e1(0x1da)]();}[_0x3f62c2(0x1b9)](_0x215487,_0x5bfdf5,_0x91fdf4){const _0x5b0478=_0x3f62c2;if(this['_pluginMap'][_0x5b0478(0x27a)](_0x215487['pluginName'])&&!_0x91fdf4)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x215487[_0x5b0478(0x1c7)]+'\x20has\x20been\x20registered.');this[_0x5b0478(0x2e2)][_0x5b0478(0x272)](_0x215487[_0x5b0478(0x1c7)],[_0x215487,_0x5bfdf5]);}['getAllPlugins'](){const _0x2d8c8f=_0x3f62c2;return Array[_0x2d8c8f(0x1f2)](this[_0x2d8c8f(0x2e2)]['values']());}['mountHistoryContent'](_0x3c28fd){const _0x39686a=_0x3f62c2,_0x37bc65=document['getElementById'](_0x7dbcc1);_0x37bc65&&(_0x37bc65[_0x39686a(0x20b)][_0x39686a(0x2dd)]=_0x39686a(0x236),this[_0x39686a(0x2ba)](_0x3c28fd,_0x7dbcc1));}['unMountHistoryContent'](){const _0x2bcf0f=_0x3f62c2;var _0xd089c1;this[_0x2bcf0f(0x274)][_0x2bcf0f(0x239)](),(_0xd089c1=this[_0x2bcf0f(0x2a1)])==null||_0xd089c1[_0x2bcf0f(0x239)](),this['_historyUniver$'][_0x2bcf0f(0x1eb)](null);const _0x3d1ad5=document[_0x2bcf0f(0x297)](_0x7dbcc1);_0x3d1ad5&&(_0x3d1ad5[_0x2bcf0f(0x20b)][_0x2bcf0f(0x2dd)]='none');}[_0x3f62c2(0x2ba)](_0x2ff302,_0x843bfe){const _0x361a20=_0x3f62c2;if(this[_0x361a20(0x2a1)])return;const _0x58cb58=new _0x5e0081[(_0x361a20(0x213))]({'locales':{[this['_localeService'][_0x361a20(0x241)]()]:this[_0x361a20(0x266)][_0x361a20(0x1f5)]()},'override':[[_0x5e0081[_0x361a20(0x2d8)],{'useClass':_0x2d110c[_0x361a20(0x1d7)]}]]}),_0x3ddc2e=_0x58cb58[_0x361a20(0x299)]();this[_0x361a20(0x2b1)](this['_themeService']['darkMode$'][_0x361a20(0x27b)](_0x158f97=>{const _0x21db79=_0x361a20;_0x3ddc2e['get'](_0x5e0081[_0x21db79(0x1e1)])[_0x21db79(0x215)](_0x158f97);})),this['disposeWithMe'](this['_themeService'][_0x361a20(0x1ca)]['subscribe'](_0x1d3313=>{const _0x254ff9=_0x361a20;_0x3ddc2e[_0x254ff9(0x295)](_0x5e0081[_0x254ff9(0x1e1)])[_0x254ff9(0x21e)](_0x1d3313);})),_0x3ddc2e[_0x361a20(0x295)](_0x5e0081['LocaleService'])[_0x361a20(0x1ed)](this['_localeService'][_0x361a20(0x241)]()),_0x3ddc2e[_0x361a20(0x295)](_0x5e0081['IConfigService'])[_0x361a20(0x222)](_0x2d110c[_0x361a20(0x26a)],this[_0x361a20(0x2be)][_0x361a20(0x2d1)](_0x2d110c[_0x361a20(0x26a)]));const _0x6e42ea=this[_0x361a20(0x2be)]['getConfig'](_0x132b5c[_0x361a20(0x29a)]);_0x6e42ea&&_0x58cb58[_0x361a20(0x1b9)](_0x132b5c[_0x361a20(0x24a)],{'license':_0x6e42ea['ls']}),this[_0x361a20(0x2e2)][_0x361a20(0x2cd)](([_0x17c74d,_0x16dee6])=>{_0x58cb58['registerPlugin'](_0x17c74d,_0x16dee6);}),_0x3ddc2e[_0x361a20(0x23e)](_0x300c7a=>{this['_initListener'](_0x300c7a,_0x2ff302);}),this[_0x361a20(0x1cb)]['next'](_0x58cb58);const _0x394a4a=_0x3ddc2e['get'](_0x4e98b3[_0x361a20(0x298)]),_0x5428bf=this[_0x361a20(0x256)](_0x2ff302);_0x394a4a[_0x361a20(0x216)](_0x2ff302,_0x843bfe,_0x5428bf);}[_0x3f62c2(0x235)](_0x44d48b,_0x3b5403){const _0x439ebb=_0x3f62c2,_0x144898=_0x44d48b[_0x439ebb(0x295)](_0x4e98b3[_0x439ebb(0x298)]);this[_0x439ebb(0x274)]['add'](_0x144898[_0x439ebb(0x224)][_0x439ebb(0x27b)](_0x8015dc=>{const _0x36c62f=_0x439ebb;switch(_0x8015dc){case _0x4e98b3[_0x36c62f(0x1d6)][_0x36c62f(0x2b4)]:this['_dialogService'][_0x36c62f(0x1b4)](),this[_0x36c62f(0x28b)][_0x36c62f(0x244)]();break;case _0x4e98b3[_0x36c62f(0x1d6)][_0x36c62f(0x208)]:this[_0x36c62f(0x240)]();break;case _0x4e98b3[_0x36c62f(0x1d6)][_0x36c62f(0x2a6)]:this[_0x36c62f(0x240)](),this['_messageService'][_0x36c62f(0x28e)]({'content':this[_0x36c62f(0x266)]['t']('editHistory.panel.listFetchError'),'type':_0x26996d['MessageType'][_0x36c62f(0x2a6)],'duration':0xbb8});break;}})),this[_0x439ebb(0x274)][_0x439ebb(0x29e)](_0x144898['revertRevision$'][_0x439ebb(0x27b)](async _0x117ae1=>{const _0x9cf41c=_0x439ebb;_0x117ae1&&this[_0x9cf41c(0x204)][_0x9cf41c(0x23f)](_0x38ff03[_0x9cf41c(0x28f)]['id'],{'unitId':_0x3b5403,'revision':_0x117ae1});}));}['_checkCanRevert'](_0x582e8b){const _0xcfef69=_0x3f62c2,_0x5161e6=this[_0xcfef69(0x2ab)][_0xcfef69(0x2c6)](_0x582e8b)[_0xcfef69(0x1e3)]()[_0xcfef69(0x2d4)](_0x536165=>_0x536165[_0xcfef69(0x23c)]()),_0xcff372=new _0xabd4d7[(_0xcfef69(0x2cf))](_0x582e8b)['id'],_0x4a894f=_0x5161e6[_0xcfef69(0x2d4)](_0x4e0184=>new _0xabd4d7[(_0xcfef69(0x269))](_0x582e8b,_0x4e0184)['id']),_0x31a3c9=_0x5161e6[_0xcfef69(0x2d4)](_0x25ecd8=>this[_0xcfef69(0x1bf)][_0xcfef69(0x229)](_0x582e8b,_0x25ecd8)[_0xcfef69(0x2d4)](_0x7f77fa=>new _0xabd4d7[(_0xcfef69(0x1b8))](_0x582e8b,_0x25ecd8,_0x7f77fa[_0xcfef69(0x257)])['id']))[_0xcfef69(0x2a4)](),_0x296367=new _0xabd4d7[(_0xcfef69(0x1ce))](_0x582e8b)['id'];return this[_0xcfef69(0x276)][_0xcfef69(0x1bb)]([_0xcff372,..._0x4a894f,..._0x31a3c9,_0x296367])['every'](_0x5bc084=>!!_0x5bc084[_0xcfef69(0x223)]);}},_0x37ed36[_0x3f62c2(0x27f)]=_0x1dfa0c([_0x53f34b(0x0,_0x5e0081[_0x3f62c2(0x1ef)](_0x5e0081[_0x3f62c2(0x29b)])),_0x53f34b(0x1,_0x5e0081['IUniverInstanceService']),_0x53f34b(0x2,_0x5e0081[_0x3f62c2(0x2bf)]),_0x53f34b(0x3,_0x5e0081[_0x3f62c2(0x270)]),_0x53f34b(0x4,_0x40b810[_0x3f62c2(0x23b)]),_0x53f34b(0x5,_0x5e0081[_0x3f62c2(0x294)]),_0x53f34b(0x6,_0x5e0081[_0x3f62c2(0x1ef)](_0xabd4d7[_0x3f62c2(0x1c5)])),_0x53f34b(0x7,_0x5e0081[_0x3f62c2(0x1ef)](_0x40b810[_0x3f62c2(0x273)])),_0x53f34b(0x8,_0x5e0081[_0x3f62c2(0x1ef)](_0x40b810[_0x3f62c2(0x245)])),_0x53f34b(0x9,_0x5e0081[_0x3f62c2(0x1ef)](_0x5e0081[_0x3f62c2(0x1e1)]))],_0x37ed36['HistoryLoaderService']);const _0x2866e7={'id':_0x3f62c2(0x2a7),'type':_0x5e0081[_0x3f62c2(0x279)][_0x3f62c2(0x2b9)],'handler':_0x463029=>{const _0x4226d8=_0x3f62c2,_0x2c6d99=_0x463029[_0x4226d8(0x295)](_0x37ed36['HistoryLoaderService']),_0x508cab=_0x463029['get'](_0x5e0081['IUniverInstanceService']),{unitId:_0x20ea12}=_0xabd4d7[_0x4226d8(0x2c7)](_0x508cab)||{};return _0x20ea12?(_0x2c6d99[_0x4226d8(0x205)](_0x20ea12),!0x0):!0x1;}};function _0x5f71e5(_0x3bbd0e){const _0x4669b9=_0x3f62c2;return{'id':_0x2866e7['id'],'type':_0x40b810['MenuItemType'][_0x4669b9(0x228)],'icon':_0x4669b9(0x1bd),'tooltip':_0x4669b9(0x281),'hidden$':_0x40b810[_0x4669b9(0x1d3)](_0x3bbd0e,_0x5e0081[_0x4669b9(0x20a)][_0x4669b9(0x2c9)]),'disabled$':_0x5123ab[_0x4669b9(0x225)](_0x3bbd0e,{'workbookTypes':[_0xabd4d7[_0x4669b9(0x2cf)],_0xabd4d7['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x5ddccb={[_0x40b810[_0x3f62c2(0x2ce)][_0x3f62c2(0x285)]]:{[_0x2866e7['id']]:{'order':0.2,'menuItemFactory':_0x5f71e5}}};var _0x4c99e6=Object[_0x3f62c2(0x220)],_0x199986=(_0x1e775f,_0x45c205,_0xe9bfd5,_0x1236b7)=>{const _0x51194=_0x3f62c2;for(var _0x559ff9=_0x1236b7>0x1?void 0x0:_0x1236b7?_0x4c99e6(_0x45c205,_0xe9bfd5):_0x45c205,_0x320d50=_0x1e775f[_0x51194(0x20f)]-0x1,_0x1edfac;_0x320d50>=0x0;_0x320d50--)(_0x1edfac=_0x1e775f[_0x320d50])&&(_0x559ff9=_0x1edfac(_0x559ff9)||_0x559ff9);return _0x559ff9;},_0x154720=(_0x5700a9,_0x5c6ee9)=>(_0x36b5e0,_0x302fe7)=>_0x5c6ee9(_0x36b5e0,_0x302fe7,_0x5700a9);let _0x11a217=class extends _0x5e0081[_0x3f62c2(0x1f1)]{constructor(_0x246aea,_0x50f43e,_0x4d2f0a,_0x46f832,_0x57944b,_0x40de12,_0xffc8c5,_0xf80f23){const _0x5a843d=_0x3f62c2;super(),_0x1dfa01(this,'_revertErrorTimer',null),(this['_commandService']=_0x246aea,this[_0x5a843d(0x26c)]=_0x50f43e,this[_0x5a843d(0x2d5)]=_0x4d2f0a,this[_0x5a843d(0x280)]=_0x46f832,this[_0x5a843d(0x266)]=_0x57944b,this[_0x5a843d(0x234)]=_0x40de12,this[_0x5a843d(0x1df)]=_0xffc8c5,this['_localCacheService']=_0xf80f23,this[_0x5a843d(0x1d0)]());}[_0x3f62c2(0x1d0)](){const _0x177a00=_0x3f62c2;[_0x2866e7][_0x177a00(0x2cd)](_0x2b16c3=>this['disposeWithMe'](_0x5e0081[_0x177a00(0x211)](this['_commandService'][_0x177a00(0x1be)](_0x2b16c3)))),this['disposeWithMe'](this['_componentManager'][_0x177a00(0x23d)](_0x177a00(0x1bd),_0x46494c)),this[_0x177a00(0x26c)][_0x177a00(0x24b)](_0x5ddccb),this[_0x177a00(0x2b1)](this[_0x177a00(0x204)]['onCommandExecuted'](_0x5ea805=>{const _0x2bd9d6=_0x177a00;if(_0x5ea805['id']===_0x38ff03[_0x2bd9d6(0x28f)]['id']){this['_messageService'][_0x2bd9d6(0x28e)]({'content':this[_0x2bd9d6(0x266)]['t']('editHistory.panel.reverting'),'type':_0x26996d['MessageType'][_0x2bd9d6(0x2e3)],'duration':0x1388});const {unitId:_0x2f1845}=_0x5ea805[_0x2bd9d6(0x2e4)],_0x410a96=this[_0x2bd9d6(0x1df)]['getCollabEntity'](_0x2f1845),_0x4ad3b6=_0x2e334b['combineLatest']([_0x410a96['session']['event$'],_0x410a96[_0x2bd9d6(0x20c)]])[_0x2bd9d6(0x27b)](async([_0x2b6d03,_0x3b05d1])=>{const _0x708b60=_0x2bd9d6;var _0x221b3f;_0x2b6d03[_0x708b60(0x27d)]===_0x38ff03[_0x708b60(0x24f)][_0x708b60(0x284)]&&(_0x3b05d1==null?void 0x0:_0x3b05d1[_0x708b60(0x286)])===_0x2d110c[_0x708b60(0x2da)][_0x708b60(0x1f9)]&&_0x2b6d03[_0x708b60(0x1dc)][_0x708b60(0x2a2)][_0x708b60(0x283)](_0x10c01c=>_0x10c01c['id']===_0x38ff03[_0x708b60(0x28f)]['id'])&&(this[_0x708b60(0x280)]['unMountHistoryContent'](),_0x4ad3b6[_0x708b60(0x22e)](),this[_0x708b60(0x1f8)]&&clearTimeout(this[_0x708b60(0x1f8)]),await((_0x221b3f=this[_0x708b60(0x1f7)])==null?void 0x0:_0x221b3f['exhaustSavingTask']()),setTimeout(()=>window[_0x708b60(0x214)]['reload']()));});this[_0x2bd9d6(0x1f8)]=setTimeout(()=>{const _0x4de8f2=_0x2bd9d6;_0x4ad3b6['unsubscribe'](),this[_0x4de8f2(0x234)][_0x4de8f2(0x28e)]({'content':this[_0x4de8f2(0x266)]['t'](_0x4de8f2(0x207)),'type':_0x26996d[_0x4de8f2(0x2c8)]['Error'],'duration':0xbb8});},0x1388);}}));}};_0x11a217=_0x199986([_0x154720(0x0,_0x5e0081['ICommandService']),_0x154720(0x1,_0x40b810[_0x3f62c2(0x278)]),_0x154720(0x2,_0x5e0081[_0x3f62c2(0x1ef)](_0x40b810[_0x3f62c2(0x233)])),_0x154720(0x3,_0x5e0081[_0x3f62c2(0x1ef)](_0x37ed36[_0x3f62c2(0x27f)])),_0x154720(0x4,_0x5e0081[_0x3f62c2(0x1ef)](_0x5e0081['LocaleService'])),_0x154720(0x5,_0x40b810['IMessageService']),_0x154720(0x6,_0x5e0081[_0x3f62c2(0x1ef)](_0x2d110c[_0x3f62c2(0x22f)])),_0x154720(0x7,_0x2d110c[_0x3f62c2(0x206)])],_0x11a217);var _0x309a1e=Object['getOwnPropertyDescriptor'],_0xe45a52=(_0x5abf49,_0x29dc4b,_0xe6fb60,_0x2583e4)=>{for(var _0x4365a2=_0x2583e4>0x1?void 0x0:_0x2583e4?_0x309a1e(_0x29dc4b,_0xe6fb60):_0x29dc4b,_0x4dd591=_0x5abf49['length']-0x1,_0x100ef8;_0x4dd591>=0x0;_0x4dd591--)(_0x100ef8=_0x5abf49[_0x4dd591])&&(_0x4365a2=_0x100ef8(_0x4365a2)||_0x4365a2);return _0x4365a2;},_0x4fe0e2=(_0x2aba59,_0x10fa4d)=>(_0x3a2ff5,_0x159854)=>_0x10fa4d(_0x3a2ff5,_0x159854,_0x2aba59);const _0x4f7508=_0x3f62c2(0x1c4);_0x37ed36[_0x3f62c2(0x29d)]=(_0x175e7a=class extends _0x5e0081[_0x3f62c2(0x1ee)]{constructor(_0x34f96d=_0x4cd2c4,_0x42c307,_0x19b70f){const _0x53f9c7=_0x3f62c2;super(),this['_config']=_0x34f96d,this[_0x53f9c7(0x209)]=_0x42c307,this[_0x53f9c7(0x2be)]=_0x19b70f;const {menu:_0x33258e,..._0xd9ebc6}=_0x5e0081[_0x53f9c7(0x1b3)]({},_0x4cd2c4,this[_0x53f9c7(0x27c)]);_0x33258e&&this[_0x53f9c7(0x2be)][_0x53f9c7(0x222)](_0x53f9c7(0x2d2),_0x33258e,{'merge':!0x0}),this[_0x53f9c7(0x2be)][_0x53f9c7(0x222)](_0x238ff0,_0xd9ebc6),this[_0x53f9c7(0x27c)][_0x53f9c7(0x1dd)]&&this[_0x53f9c7(0x2be)][_0x53f9c7(0x222)](_0x38cac4,this['_config'][_0x53f9c7(0x1dd)]);}[_0x3f62c2(0x200)](){const _0x2fda94=_0x3f62c2;[[_0x37ed36['HistoryLoaderService']],[_0x11a217]][_0x2fda94(0x2cd)](_0x138314=>this[_0x2fda94(0x209)][_0x2fda94(0x29e)](_0x138314));}['onSteady'](){const _0x2bcf12=_0x3f62c2;this[_0x2bcf12(0x209)][_0x2bcf12(0x295)](_0x11a217);}},_0x1dfa01(_0x175e7a,_0x3f62c2(0x267),_0x5e0081[_0x3f62c2(0x20a)]['UNIVER_UNKNOWN']),_0x1dfa01(_0x175e7a,_0x3f62c2(0x1c7),_0x4f7508),_0x175e7a),_0x37ed36[_0x3f62c2(0x29d)]=_0xe45a52([_0x4fe0e2(0x1,_0x5e0081[_0x3f62c2(0x1ef)](_0x5e0081[_0x3f62c2(0x1fc)])),_0x4fe0e2(0x2,_0x5e0081[_0x3f62c2(0x2bf)])],_0x37ed36[_0x3f62c2(0x29d)]),_0x37ed36['UNIVER_CONTAINER_ID_KEY']=_0x38cac4,_0x37ed36['UNIVER_HISTORY_CONTAINER_ID']=_0x7dbcc1,Object[_0x3f62c2(0x247)](_0x37ed36,Symbol[_0x3f62c2(0x23a)],{'value':_0x3f62c2(0x232)});}));function _0x19ec(){const _0x3882fa=['mutations','asObservable','flat','use','Error','univer.operation.toggle-edit-history','univerjs-icon\x20univerjs-icon-','2798571RQfVdI','UniverEditHistoryViewerPlugin','_univerInstanceService','url(#history-icon_clip0_907_281)','position','univer-container','symbol','currentColor','disposeWithMe','none','UniverProSheetsChartUi','Entered','tag','@univerjs/sheets-conditional-formatting','@univerjs/drawing-ui','fill','OPERATION','_initUniver','@univerjs/engine-render','UniverSheetsHyperLink','colorChannel1','_configService','IConfigService','amd','object','IImageIoService','UniverSheetsDrawingUIPlugin','1000','top','getUnit','getSheetCommandTarget','MessageType','UNIVER_SHEET','39SDfhKI','_initContainer','string','forEach','RibbonStartGroup','WorkbookEditablePermission','svg','getConfig','menu','UniverNetworkPlugin','map','_componentManager','UniverSheetsFormulaUi','UniverDocsPlugin','IAuthzIoService','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','CollaborationStatus','substring','UniverProSheetsSparklineUi','display','@univerjs/network','edit-history-loader.config','attrs','41414eJQhwm','_pluginMap','Loading','params','UniverProEditHistoryLoader','rxjs','merge','closeAll','@univerjs-pro/sheets-chart-ui','useRef','@univerjs/sheets-hyper-link','RangeProtectionPermissionEditPoint','registerPlugin','univer-history-container','composePermission','exports','HistoryIcon','registerCommand','_selectionProtectionRuleModel','@univerjs/sheets-drawing-ui','absolute','@univerjs-pro/sheets-sparkline-ui','appendChild','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','RangeProtectionRuleModel','UniverSheetsFilter','pluginName','UNIVER_CONTAINER_ID','3894821tVIVae','currentTheme$','_historyUniver$','_themeService','includes','WorkbookRecoverHistoryPermission','forwardRef','_init','@univerjs-pro/edit-history-viewer','@univerjs/sheets-hyper-link-ui','getMenuHiddenObservable','random','@univerjs/sheets-drawing','HistoryModeStatus','AuthzIoHttpService','9TiPhzb','@univerjs/sheets-numfmt','clear','DisposableCollection','data','univerContainerId','historyUniver$','_collaborationController','assign','ThemeService','M0\x200H16V16H0z','getSheets','@univerjs/sheets-formula-ui','@univerjs/sheets-conditional-formatting-ui','_dialogService','UniverDrawingPlugin','@univerjs/rpc','historyPanelComponentKey','UniverSheetsUIPlugin','next','UniverDrawingUIPlugin','setLocale','Plugin','Inject','UniverSheetsConditionalFormattingUIPlugin','RxDisposable','from','UniverRpc','xlink:href','getLocales','@univerjs/sheets-data-validation','_localCacheService','_revertErrorTimer','SYNCED','url(#$1','@univerjs/sheets-formula','Injector','UniverDocs','white','UniverSheetsNumfmt','onStarting','UniverProSheetsChart','1em','UniverSheetsChartUIPlugin','_commandService','mountHistoryContent','ILocalCacheService','editHistory.panel.revertFailed','Exited','_injector','UniverInstanceType','style','state$','current','@univerjs/engine-formula','length','uComp','toDisposable','history-icon_clip0_907_281','Univer','location','setDarkMode','triggerLoadVersions','history-icon','zIndex','UniverSheetsNumfmtPlugin','UniverCore','UniverSheetsDrawingUi','UniverProCollaborationClient','@univerjs-pro/sheets-sparkline','setTheme','UniverFormulaEnginePlugin','getOwnPropertyDescriptor','@univerjs-pro/sheets-chart','setConfig','value','status$','getCurrentRangeDisable$','toString','UniverSheetsFilterUi','BUTTON','getSubunitRuleList','UniverSheetsHyperLinkPlugin','UniverSheetsFilterPlugin','@univerjs-pro/collaboration-client','UniverProSheetsPivot','unsubscribe','CollaborationController','height','UniverRenderEnginePlugin','Module','ComponentManager','_messageService','_initListener','block','http://www.w3.org/2000/svg','@univerjs/ui','dispose','toStringTag','IMessageService','getSheetId','register','invoke','executeCommand','unMountHistoryContent','getCurrentLocale','function','UniverCollaborationPlugin','close','ISidebarService','UniverSheetsDataValidationUi','defineProperty','5302895FrkPDa','0\x200\x2016\x2016','UniverLicensePlugin','mergeMenu','UniverDataValidation','createElement','Disposable','CollaborationEvent','replace','UniverDesign','UniverSheetsPlugin','div','UniverSheetsDrawingPlugin','@univerjs/drawing','_checkCanRevert','permissionId','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','defs','@univerjs/docs','UniverProLicense','mask','UniverSheetsConditionalFormatting','entries','_initPlugins','defIds','@univerjs-pro/collaboration','18905912KvpIDh','UniverSheetsChartPlugin','displayName','UniverSheetsHyperLinkUIPlugin','_localeService','type','UniverSheetsFormulaPlugin','WorksheetEditPermission','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','2640540AgbrOh','_menuManagerService','100%','@univerjs/data-validation','left','ICommandService','@univerjs/sheets-filter-ui','set','IDialogService','_disposableCollection','UniverEngineRender','_permissionService','dataset','IMenuManagerService','CommandType','has','subscribe','_config','eventID','historyListServerUrl','HistoryLoaderService','_historyManagerService','editHistory.panel.title','UniverSheetsHyperLinkUi','some','CHANGESET_ACK','OTHERS','status','UniverSheetsDataValidationUIPlugin','UniverUIPlugin','@univerjs/design','UniverProCollaboration','_sidebarService','idSuffix','React','show','RevertRevisionMutation','UniverSheetsFormula','children','UniverSheetsConditionalFormattingPlugin','path','IPermissionService','get','@univerjs/sheets','getElementById','HistoryManagerService','__getInjector','LS_CONFIG_KEY','LocaleService','./worker.js','UniverEditHistoryLoaderPlugin','add','6390804DWfzLN','UniverNetwork','historyUniver'];_0x19ec=function(){return _0x3882fa;};return _0x19ec();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/edit-history-loader",
3
- "version": "0.12.2",
3
+ "version": "0.12.3-experimental.20251205-e439e48",
4
4
  "private": false,
5
5
  "description": "UniverSheet edit history loader",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,48 +47,50 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^1.0.2",
50
- "@univerjs-pro/collaboration": "0.12.2",
51
- "@univerjs-pro/edit-history-viewer": "0.12.2",
52
- "@univerjs-pro/collaboration-client": "0.12.2",
53
- "@univerjs-pro/sheets-pivot": "0.12.2",
54
- "@univerjs-pro/license": "0.12.2",
55
- "@univerjs-pro/sheets-sparkline-ui": "0.12.2",
56
- "@univerjs-pro/sheets-sparkline": "0.12.2",
57
- "@univerjs/core": "0.12.2",
58
- "@univerjs/data-validation": "0.12.2",
59
- "@univerjs/design": "0.12.2",
60
- "@univerjs/docs": "0.12.2",
61
- "@univerjs/docs-ui": "0.12.2",
62
- "@univerjs/drawing-ui": "0.12.2",
63
- "@univerjs/engine-formula": "0.12.2",
64
- "@univerjs/network": "0.12.2",
65
- "@univerjs/drawing": "0.12.2",
66
- "@univerjs/engine-render": "0.12.2",
67
- "@univerjs/sheets": "0.12.2",
68
- "@univerjs/rpc": "0.12.2",
69
- "@univerjs/sheets-conditional-formatting-ui": "0.12.2",
70
- "@univerjs/sheets-data-validation": "0.12.2",
71
- "@univerjs/sheets-conditional-formatting": "0.12.2",
72
- "@univerjs/sheets-data-validation-ui": "0.12.2",
73
- "@univerjs/sheets-drawing": "0.12.2",
74
- "@univerjs/sheets-drawing-ui": "0.12.2",
75
- "@univerjs/sheets-filter": "0.12.2",
76
- "@univerjs/sheets-filter-ui": "0.12.2",
77
- "@univerjs/sheets-formula-ui": "0.12.2",
78
- "@univerjs/sheets-hyper-link": "0.12.2",
79
- "@univerjs/sheets-hyper-link-ui": "0.12.2",
80
- "@univerjs/sheets-formula": "0.12.2",
81
- "@univerjs/sheets-ui": "0.12.2",
82
- "@univerjs/sheets-numfmt": "0.12.2",
83
- "@univerjs/ui": "0.12.2"
50
+ "@univerjs-pro/collaboration": "0.12.3-experimental.20251205-e439e48",
51
+ "@univerjs-pro/collaboration-client": "0.12.3-experimental.20251205-e439e48",
52
+ "@univerjs-pro/edit-history-viewer": "0.12.3-experimental.20251205-e439e48",
53
+ "@univerjs-pro/sheets-chart": "0.12.3-experimental.20251205-e439e48",
54
+ "@univerjs-pro/sheets-chart-ui": "0.12.3-experimental.20251205-e439e48",
55
+ "@univerjs-pro/sheets-pivot": "0.12.3-experimental.20251205-e439e48",
56
+ "@univerjs-pro/license": "0.12.3-experimental.20251205-e439e48",
57
+ "@univerjs-pro/sheets-sparkline-ui": "0.12.3-experimental.20251205-e439e48",
58
+ "@univerjs/core": "0.12.3-experimental.20251205-e439e48",
59
+ "@univerjs/data-validation": "0.12.3-experimental.20251205-e439e48",
60
+ "@univerjs-pro/sheets-sparkline": "0.12.3-experimental.20251205-e439e48",
61
+ "@univerjs/docs": "0.12.3-experimental.20251205-e439e48",
62
+ "@univerjs/design": "0.12.3-experimental.20251205-e439e48",
63
+ "@univerjs/docs-ui": "0.12.3-experimental.20251205-e439e48",
64
+ "@univerjs/drawing-ui": "0.12.3-experimental.20251205-e439e48",
65
+ "@univerjs/engine-formula": "0.12.3-experimental.20251205-e439e48",
66
+ "@univerjs/drawing": "0.12.3-experimental.20251205-e439e48",
67
+ "@univerjs/engine-render": "0.12.3-experimental.20251205-e439e48",
68
+ "@univerjs/network": "0.12.3-experimental.20251205-e439e48",
69
+ "@univerjs/rpc": "0.12.3-experimental.20251205-e439e48",
70
+ "@univerjs/sheets-conditional-formatting-ui": "0.12.3-experimental.20251205-e439e48",
71
+ "@univerjs/sheets": "0.12.3-experimental.20251205-e439e48",
72
+ "@univerjs/sheets-data-validation-ui": "0.12.3-experimental.20251205-e439e48",
73
+ "@univerjs/sheets-conditional-formatting": "0.12.3-experimental.20251205-e439e48",
74
+ "@univerjs/sheets-drawing": "0.12.3-experimental.20251205-e439e48",
75
+ "@univerjs/sheets-data-validation": "0.12.3-experimental.20251205-e439e48",
76
+ "@univerjs/sheets-drawing-ui": "0.12.3-experimental.20251205-e439e48",
77
+ "@univerjs/sheets-filter-ui": "0.12.3-experimental.20251205-e439e48",
78
+ "@univerjs/sheets-filter": "0.12.3-experimental.20251205-e439e48",
79
+ "@univerjs/sheets-formula": "0.12.3-experimental.20251205-e439e48",
80
+ "@univerjs/sheets-formula-ui": "0.12.3-experimental.20251205-e439e48",
81
+ "@univerjs/sheets-hyper-link-ui": "0.12.3-experimental.20251205-e439e48",
82
+ "@univerjs/sheets-numfmt": "0.12.3-experimental.20251205-e439e48",
83
+ "@univerjs/ui": "0.12.3-experimental.20251205-e439e48",
84
+ "@univerjs/sheets-hyper-link": "0.12.3-experimental.20251205-e439e48",
85
+ "@univerjs/sheets-ui": "0.12.3-experimental.20251205-e439e48"
84
86
  },
85
87
  "devDependencies": {
86
88
  "react": "18.3.1",
87
89
  "rxjs": "7.8.2",
88
90
  "typescript": "^5.9.3",
89
- "vite": "^7.2.2",
90
- "vitest": "^3.2.4",
91
- "@univerjs-infra/shared": "0.12.2"
91
+ "vite": "^7.2.6",
92
+ "vitest": "^4.0.15",
93
+ "@univerjs-infra/shared": "0.12.3"
92
94
  },
93
95
  "scripts": {
94
96
  "test": "vitest run",