@univerjs-pro/edit-history-loader 0.12.3 → 0.12.4

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 _0x420a89=_0x30c7;(function(_0x54c5a,_0x28583a){const _0x1349b9=_0x30c7,_0xeab059=_0x54c5a();while(!![]){try{const _0xe11625=-parseInt(_0x1349b9(0x170))/0x1+parseInt(_0x1349b9(0x163))/0x2*(-parseInt(_0x1349b9(0x1c5))/0x3)+-parseInt(_0x1349b9(0x143))/0x4*(-parseInt(_0x1349b9(0x15a))/0x5)+-parseInt(_0x1349b9(0x14a))/0x6+parseInt(_0x1349b9(0x12a))/0x7+parseInt(_0x1349b9(0x145))/0x8*(parseInt(_0x1349b9(0x118))/0x9)+-parseInt(_0x1349b9(0x1a4))/0xa*(parseInt(_0x1349b9(0x128))/0xb);if(_0xe11625===_0x28583a)break;else _0xeab059['push'](_0xeab059['shift']());}catch(_0x55a4db){_0xeab059['push'](_0xeab059['shift']());}}}(_0x5320,0xd6db9));var j=Object['defineProperty'],F=(_0x2bfb0c,_0x2587d1,_0x16a8fb)=>_0x2587d1 in _0x2bfb0c?j(_0x2bfb0c,_0x2587d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16a8fb}):_0x2bfb0c[_0x2587d1]=_0x16a8fb,_=(_0x5c4f39,_0x422fe8,_0x18f253)=>F(_0x5c4f39,typeof _0x422fe8!=_0x420a89(0x1de)?_0x422fe8+'':_0x422fe8,_0x18f253);Object[_0x420a89(0x1cb)](exports,Symbol[_0x420a89(0x18a)],{'value':'Module'});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=_0x420a89(0x1a1),R={};function _0x30c7(_0x230e96,_0x246e2c){const _0x53204b=_0x5320();return _0x30c7=function(_0x30c76e,_0x1b0c92){_0x30c76e=_0x30c76e-0x108;let _0x4b7404=_0x53204b[_0x30c76e];return _0x4b7404;},_0x30c7(_0x230e96,_0x246e2c);}function k({ref:_0x25ce7b,..._0x2cbf5e}){const _0x410852=_0x420a89,{icon:_0x59f70c,id:_0x48e5c7,className:_0x288b3f,extend:_0x1fa51c,..._0x17bbfa}=_0x2cbf5e,_0x1f4e9e=('univerjs-icon\x20univerjs-icon-'+_0x48e5c7+'\x20'+(_0x288b3f||''))[_0x410852(0x17d)](),_0x300298=U[_0x410852(0x142)]('_'+ve());return D(_0x59f70c,''+_0x48e5c7,{'defIds':_0x59f70c['defIds'],'idSuffix':_0x300298[_0x410852(0x1e0)]},{'ref':_0x25ce7b,'className':_0x1f4e9e,..._0x17bbfa},_0x1fa51c);}function D(_0x57b695,_0x4b6a6f,_0x308092,_0x336973,_0x2e2ee1){const _0x1eff95=_0x420a89;return U[_0x1eff95(0x1a0)](_0x57b695[_0x1eff95(0x1c8)],{'key':_0x4b6a6f,...he(_0x57b695,_0x308092,_0x2e2ee1),..._0x336973},(ge(_0x57b695,_0x308092)['children']||[])['map']((_0x2c0ea4,_0x172096)=>D(_0x2c0ea4,_0x4b6a6f+'-'+_0x57b695[_0x1eff95(0x1c8)]+'-'+_0x172096,_0x308092,void 0x0,_0x2e2ee1)));}function he(_0x1fb837,_0x3446b9,_0x4bdb21){const _0x2e1e72=_0x420a89,_0x103ab7={..._0x1fb837[_0x2e1e72(0x141)]};_0x4bdb21!=null&&_0x4bdb21[_0x2e1e72(0x1c4)]&&_0x103ab7['fill']===_0x2e1e72(0x1c4)&&(_0x103ab7[_0x2e1e72(0x19c)]=_0x4bdb21[_0x2e1e72(0x1c4)]),_0x1fb837[_0x2e1e72(0x1c8)]===_0x2e1e72(0x1e3)&&_0x103ab7['id']&&(_0x103ab7['id']=_0x103ab7['id']+_0x3446b9[_0x2e1e72(0x13e)]),Object[_0x2e1e72(0x133)](_0x103ab7)[_0x2e1e72(0x185)](([_0x57e2ff,_0x2c1af2])=>{const _0x4f084f=_0x2e1e72;_0x57e2ff===_0x4f084f(0x1e3)&&typeof _0x2c1af2==_0x4f084f(0x169)&&(_0x103ab7[_0x57e2ff]=_0x2c1af2['replace'](/url\(#(.*)\)/,_0x4f084f(0x1ae)+_0x3446b9[_0x4f084f(0x13e)]+')'));});const {defIds:_0x38cf02}=_0x3446b9;return!_0x38cf02||_0x38cf02[_0x2e1e72(0x173)]===0x0||(_0x1fb837[_0x2e1e72(0x1c8)]===_0x2e1e72(0x191)&&_0x103ab7[_0x2e1e72(0x11c)]&&(_0x103ab7[_0x2e1e72(0x11c)]=_0x103ab7['xlink:href']+_0x3446b9[_0x2e1e72(0x13e)]),Object[_0x2e1e72(0x133)](_0x103ab7)[_0x2e1e72(0x185)](([_0x150849,_0x4e358c])=>{const _0x42cb2f=_0x2e1e72;typeof _0x4e358c==_0x42cb2f(0x169)&&(_0x103ab7[_0x150849]=_0x4e358c[_0x42cb2f(0x124)](/url\(#(.*)\)/,_0x42cb2f(0x1ae)+_0x3446b9[_0x42cb2f(0x13e)]+')'));})),_0x103ab7;}function _0x5320(){const _0x550809=['RevertRevisionMutation','mask','IMenuManagerService','flat','CollaborationController','_initContainer','unsubscribe','UniverLicensePlugin','forwardRef','getConfig','Disposable','setLocale','univer.operation.toggle-edit-history','0\x200\x2016\x2016','IUniverInstanceService','getSheetId','UniverEditHistoryLoaderPlugin','getCurrentLocale','IPermissionService','Plugin','pluginName','Univer','display','closeAll','UniverSheetsPlugin','63oWabyH','M0\x200H16V16H0z','event$','params','xlink:href','_sidebarService','onSteady','onStarting','WorkbookViewHistoryPermission','_localCacheService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','SYNCED','replace','status$','_univerInstanceService','univerContainerId','28875koGHyO','registerPlugin','1950074IVpbRX','_historyUniver$','_componentManager','IImageIoService','defs','add','editHistory.panel.title','currentColor','RangeProtectionPermissionEditPoint','entries','div','values','close','asObservable','HistoryModeStatus','UniverUIPlugin','OPERATION','triggerLoadVersions','revertRevision$','UNIVER_CONTAINER_ID_KEY','idSuffix','_checkCanRevert','UniverSheetsConditionalFormattingUIPlugin','attrs','useRef','576IOLuyk','top','1637464HWEBhs','UniverSheetsNumfmtPlugin','CollaborationStatus','left','UniverEditHistoryViewerPlugin','2551278jzkfol','currentTheme$','UniverSheetsHyperLinkPlugin','WorkbookEditablePermission','LocaleService','IDialogService','historyListServerUrl','_injector','_initUniver','UniverCollaborationPlugin','zIndex','children','setDarkMode','setTheme','UniverSheetsPivotTablePlugin','set','52945ehiQpZ','_menuManagerService','HistoryLoaderService','_pluginMap','BehaviorSubject','uComp','darkMode$','HistoryIcon','_disposableCollection','1828wEfRgh','next','every','ComponentManager','includes','UniverSheetsDataValidationPlugin','string','UniverSheetsUIPlugin','_historyManagerService','historyUniver','Inject','./worker.js','IAuthzIoService','420947ONQpHf','BUTTON','merge','length','_permissionService','none','_messageService','_selectionProtectionRuleModel','type','_initListener','composePermission','_init','block','trim','Loading','UniverNetworkPlugin','editHistory.panel.listFetchError','UniverSheetsDrawingUIPlugin','CHANGESET_ACK','invoke','subscribe','forEach','svg','some','UNIVER_SHEET','getElementById','toStringTag','WorksheetEditPermission','100%','getOwnPropertyDescriptor','UniverSheetsFormulaUIPlugin','UniverSheetsFormulaPlugin','toDisposable','use','OTHERS','get','_revertErrorTimer','UniverInstanceType','clear','white','path','displayName','UNIVER_CONTAINER_ID','_themeService','fill','combineLatest','Exited','style','createElement','edit-history-loader.config','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','ICommandService','3200yfMOMb','menu','_initPlugins','_config','unMountHistoryContent','UniverDrawingPlugin','toString','RangeProtectionRuleModel','exhaustSavingTask','CommandType','url(#$1','_dialogService','UniverSheetsDataValidationUIPlugin','ILocalCacheService','Error','clipPath','UniverDocsPlugin','MessageType','Entered','WorkbookRecoverHistoryPermission','UniverSheetSparklineUIPlugin','map','getLocales','editHistory.panel.reverting','UniverSheetsHyperLinkUIPlugin','show','executeCommand','_commandService','UNIVER_UNKNOWN','getMenuHiddenObservable','IMessageService','mountHistoryContent','colorChannel1','2199mdwvqJ','_configService','ThemeService','tag','mutations','setConfig','defineProperty','_localeService','[HistoryLoaderService]:\x20Plugin\x20','location','UNIVER_HISTORY_CONTAINER_ID','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','dispose','value','disposeWithMe','permissionId','univer-history-container','height','getSheets','DisposableCollection','univer-container','1em','UniverSheetsFilterUIPlugin','UniverIcon','getSubunitRuleList','symbol','getSheetCommandTarget','current','IConfigService'];_0x5320=function(){return _0x550809;};return _0x5320();}function ge(_0xe00aba,_0x21f916){const _0x2b6476=_0x420a89;var _0x14fe2b;const {defIds:_0x2a9e22}=_0x21f916;return!_0x2a9e22||_0x2a9e22[_0x2b6476(0x173)]===0x0?_0xe00aba:_0xe00aba['tag']==='defs'&&((_0x14fe2b=_0xe00aba[_0x2b6476(0x155)])!=null&&_0x14fe2b[_0x2b6476(0x173)])?{..._0xe00aba,'children':_0xe00aba[_0x2b6476(0x155)][_0x2b6476(0x1b9)](_0x282bc3=>typeof _0x282bc3[_0x2b6476(0x141)]['id']=='string'&&_0x2a9e22&&_0x2a9e22[_0x2b6476(0x167)](_0x282bc3[_0x2b6476(0x141)]['id'])?{..._0x282bc3,'attrs':{..._0x282bc3[_0x2b6476(0x141)],'id':_0x282bc3['attrs']['id']+_0x21f916[_0x2b6476(0x13e)]}}:_0x282bc3)}:_0xe00aba;}function ve(){const _0x5ec822=_0x420a89;return Math['random']()[_0x5ec822(0x1aa)](0x24)['substring'](0x2,0x8);}k[_0x420a89(0x199)]=_0x420a89(0x1dc);const de={'tag':_0x420a89(0x186),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x420a89(0x175),'viewBox':_0x420a89(0x10c),'width':_0x420a89(0x1da),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x420a89(0x131),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':'path','attrs':{'d':_0x420a89(0x1a2)}},{'tag':_0x420a89(0x198),'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':_0x420a89(0x12e),'attrs':{},'children':[{'tag':_0x420a89(0x1b3),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x420a89(0x198),'attrs':{'fill':_0x420a89(0x197),'d':_0x420a89(0x119)}}]}]}],'defIds':['history-icon_clip0_907_281']},q=U[_0x420a89(0x1ea)](function(_0x5cb297,_0x214123){return U['createElement'](k,Object['assign']({},_0x5cb297,{'id':'history-icon','ref':_0x214123,'icon':de}));});q['displayName']=_0x420a89(0x161);var _e=Object[_0x420a89(0x18d)],Se=(_0xf067dc,_0x5239b6,_0x24efc9,_0x3d8de1)=>{for(var _0x4da4b4=_0x3d8de1>0x1?void 0x0:_0x3d8de1?_e(_0x5239b6,_0x24efc9):_0x5239b6,_0xd6478=_0xf067dc['length']-0x1,_0xd9de47;_0xd6478>=0x0;_0xd6478--)(_0xd9de47=_0xf067dc[_0xd6478])&&(_0x4da4b4=_0xd9de47(_0x4da4b4)||_0x4da4b4);return _0x4da4b4;},g=(_0x20c8cc,_0x59eb5c)=>(_0x52b899,_0x47bcf0)=>_0x59eb5c(_0x52b899,_0x47bcf0,_0x20c8cc);const me=_0x420a89(0x1d9),P=_0x420a89(0x19a),y=_0x420a89(0x1d5);exports['HistoryLoaderService']=class extends o[_0x420a89(0x109)]{constructor(_0x41603e,_0x17df66,_0xb672a0,_0x2ef62e,_0x12aade,_0x4be87c,_0x1cafdb,_0x282097,_0x1b549e,_0xb84adc){const _0x3de48e=_0x420a89;super(),_(this,_0x3de48e(0x12b),new T[(_0x3de48e(0x15e))](null)),_(this,'historyUniver$',this[_0x3de48e(0x12b)][_0x3de48e(0x137)]()),_(this,_0x3de48e(0x162),new o[(_0x3de48e(0x1d8))]()),_(this,_0x3de48e(0x15d),new Map()),(this[_0x3de48e(0x1cc)]=_0x41603e,this[_0x3de48e(0x126)]=_0x17df66,this[_0x3de48e(0x1c6)]=_0xb672a0,this[_0x3de48e(0x1bf)]=_0x2ef62e,this['_messageService']=_0x12aade,this[_0x3de48e(0x174)]=_0x4be87c,this[_0x3de48e(0x177)]=_0x1cafdb,this['_dialogService']=_0x282097,this[_0x3de48e(0x11d)]=_0x1b549e,this[_0x3de48e(0x19b)]=_0xb84adc,this[_0x3de48e(0x17b)]());}get[_0x420a89(0x16c)](){const _0x336ebd=_0x420a89;return this['_historyUniver$'][_0x336ebd(0x1d2)];}[_0x420a89(0x17b)](){const _0x22ddf7=_0x420a89;this[_0x22ddf7(0x1e7)](),this[_0x22ddf7(0x1a6)]();}['_initContainer'](){const _0x13d316=_0x420a89;var _0x4d3edf;const _0x5cdb0c=(_0x4d3edf=this[_0x13d316(0x1c6)]['getConfig'](P))!=null?_0x4d3edf:me,_0x4487e6=document[_0x13d316(0x189)](_0x5cdb0c);if(!_0x4487e6)return;const _0x52cb3e=document[_0x13d316(0x1a0)](_0x13d316(0x134));_0x52cb3e['id']=y,_0x52cb3e['dataset'][_0x13d316(0x15f)]='history-container',_0x52cb3e['style']['position']='absolute',_0x52cb3e[_0x13d316(0x19f)][_0x13d316(0x144)]='0',_0x52cb3e[_0x13d316(0x19f)][_0x13d316(0x148)]='0',_0x52cb3e[_0x13d316(0x19f)]['width']=_0x13d316(0x18c),_0x52cb3e['style'][_0x13d316(0x1d6)]='100%',_0x52cb3e[_0x13d316(0x19f)][_0x13d316(0x154)]='1000',_0x52cb3e[_0x13d316(0x19f)][_0x13d316(0x115)]=_0x13d316(0x175),_0x4487e6['appendChild'](_0x52cb3e);}[_0x420a89(0x1a6)](){const _0xbdaaaf=_0x420a89;var _0x399e5e;[[z['UniverRenderEnginePlugin']],[h[_0xbdaaaf(0x139)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h['IDialogService'],null]]}],[Z[_0xbdaaaf(0x17f)]],[L[_0xbdaaaf(0x1a9)],{'override':[[L[_0xbdaaaf(0x12d)],null]]}],[W[_0xbdaaaf(0x1b4)],{'hasScroll':!0x1}],[Y['UniverDocsUIPlugin']],[ue[_0xbdaaaf(0x146)]],[d[_0xbdaaaf(0x117)],{'notExecuteFormula':!0x0}],[w[_0xbdaaaf(0x16a)]],[oe[_0xbdaaaf(0x18f)]],[ae[_0xbdaaaf(0x18e)]],[I[_0xbdaaaf(0x153)]],[ne['UniverSheetsFilterPlugin']],[se[_0xbdaaaf(0x1db)]],[Q['UniverSheetsConditionalFormattingPlugin']],[X[_0xbdaaaf(0x140)]],[ce[_0xbdaaaf(0x14c)]],[le[_0xbdaaaf(0x1bc)]],[G['UniverDataValidationPlugin']],[ee[_0xbdaaaf(0x168)]],[ie[_0xbdaaaf(0x1b0)]],[K['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[J['UniverRPCMainThreadPlugin'],{'workerURL':_0xbdaaaf(0x16e)}],[B['UniverDrawingUIPlugin']],[te['UniverSheetsDrawingPlugin']],[re[_0xbdaaaf(0x181)]],[A['UniverSheetSparklinePlugin']],[V[_0xbdaaaf(0x1b8)]],[x[_0xbdaaaf(0x158)],{'notExecuteFormula':!0x0}],[m[_0xbdaaaf(0x149)],{'historyListServerUrl':(_0x399e5e=this[_0xbdaaaf(0x1c6)][_0xbdaaaf(0x108)](O))==null?void 0x0:_0x399e5e[_0xbdaaaf(0x150)]}]][_0xbdaaaf(0x185)](([_0xaea8a9,_0x3c8406])=>this[_0xbdaaaf(0x129)](_0xaea8a9,_0x3c8406));}[_0x420a89(0x1d1)](){const _0x25aac1=_0x420a89;super[_0x25aac1(0x1d1)](),this[_0x25aac1(0x1a8)](),this[_0x25aac1(0x15d)][_0x25aac1(0x196)]();}['registerPlugin'](_0x1e6fe0,_0x216ee8,_0x1b556f){const _0x43900f=_0x420a89;if(this[_0x43900f(0x15d)]['has'](_0x1e6fe0['pluginName'])&&!_0x1b556f)throw new Error(_0x43900f(0x1cd)+_0x1e6fe0[_0x43900f(0x113)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x43900f(0x159)](_0x1e6fe0[_0x43900f(0x113)],[_0x1e6fe0,_0x216ee8]);}['getAllPlugins'](){const _0x5bdb4b=_0x420a89;return Array['from'](this[_0x5bdb4b(0x15d)][_0x5bdb4b(0x135)]());}[_0x420a89(0x1c3)](_0x25b4c3){const _0x4ccc3f=_0x420a89,_0x261124=document[_0x4ccc3f(0x189)](y);_0x261124&&(_0x261124[_0x4ccc3f(0x19f)][_0x4ccc3f(0x115)]=_0x4ccc3f(0x17c),this[_0x4ccc3f(0x152)](_0x25b4c3,y));}[_0x420a89(0x1a8)](){const _0xe35ad7=_0x420a89;var _0x2a9f11;this['_disposableCollection'][_0xe35ad7(0x1d1)](),(_0x2a9f11=this[_0xe35ad7(0x16c)])==null||_0x2a9f11['dispose'](),this['_historyUniver$'][_0xe35ad7(0x164)](null);const _0xa0901b=document['getElementById'](y);_0xa0901b&&(_0xa0901b[_0xe35ad7(0x19f)][_0xe35ad7(0x115)]='none');}['_initUniver'](_0xb1b03e,_0x73ca40){const _0x156111=_0x420a89;if(this[_0x156111(0x16c)])return;const _0x5ee7cd=new o[(_0x156111(0x114))]({'locales':{[this[_0x156111(0x1cc)][_0x156111(0x110)]()]:this[_0x156111(0x1cc)][_0x156111(0x1ba)]()},'override':[[o[_0x156111(0x16f)],{'useClass':f['AuthzIoHttpService']}]]}),_0x1ae516=_0x5ee7cd['__getInjector']();this['disposeWithMe'](this[_0x156111(0x19b)][_0x156111(0x160)][_0x156111(0x184)](_0xf2ade9=>{const _0x4d27aa=_0x156111;_0x1ae516[_0x4d27aa(0x193)](o[_0x4d27aa(0x1c7)])[_0x4d27aa(0x156)](_0xf2ade9);})),this[_0x156111(0x1d3)](this['_themeService'][_0x156111(0x14b)]['subscribe'](_0x241103=>{const _0x8f7a4a=_0x156111;_0x1ae516[_0x8f7a4a(0x193)](o[_0x8f7a4a(0x1c7)])[_0x8f7a4a(0x157)](_0x241103);})),_0x1ae516[_0x156111(0x193)](o[_0x156111(0x14e)])[_0x156111(0x10a)](this[_0x156111(0x1cc)][_0x156111(0x110)]()),_0x1ae516[_0x156111(0x193)](o[_0x156111(0x1e1)])['setConfig'](f[_0x156111(0x1d0)],this[_0x156111(0x1c6)][_0x156111(0x108)](f[_0x156111(0x1d0)]));const _0x2fd9fe=this[_0x156111(0x1c6)][_0x156111(0x108)](H['LS_CONFIG_KEY']);_0x2fd9fe&&_0x5ee7cd[_0x156111(0x129)](H[_0x156111(0x1e9)],{'license':_0x2fd9fe['ls']}),this[_0x156111(0x15d)]['forEach'](([_0x4026c5,_0x9bdc04])=>{const _0x19a5e9=_0x156111;_0x5ee7cd[_0x19a5e9(0x129)](_0x4026c5,_0x9bdc04);}),_0x1ae516[_0x156111(0x183)](_0x380678=>{const _0x35fe7d=_0x156111;this[_0x35fe7d(0x179)](_0x380678,_0xb1b03e);}),this[_0x156111(0x12b)][_0x156111(0x164)](_0x5ee7cd);const _0x2e6593=_0x1ae516[_0x156111(0x193)](m['HistoryManagerService']),_0x3b1e19=this[_0x156111(0x13f)](_0xb1b03e);_0x2e6593[_0x156111(0x13b)](_0xb1b03e,_0x73ca40,_0x3b1e19);}[_0x420a89(0x179)](_0x20ba04,_0x24e05a){const _0x58cea6=_0x420a89,_0x566c56=_0x20ba04[_0x58cea6(0x193)](m['HistoryManagerService']);this['_disposableCollection'][_0x58cea6(0x12f)](_0x566c56[_0x58cea6(0x125)][_0x58cea6(0x184)](_0x42df94=>{const _0x5b0bf4=_0x58cea6;switch(_0x42df94){case m[_0x5b0bf4(0x138)][_0x5b0bf4(0x1b6)]:this[_0x5b0bf4(0x1af)][_0x5b0bf4(0x116)](),this[_0x5b0bf4(0x11d)][_0x5b0bf4(0x136)]();break;case m[_0x5b0bf4(0x138)][_0x5b0bf4(0x19e)]:this[_0x5b0bf4(0x1a8)]();break;case m[_0x5b0bf4(0x138)]['Error']:this[_0x5b0bf4(0x1a8)](),this[_0x5b0bf4(0x176)][_0x5b0bf4(0x1bd)]({'content':this[_0x5b0bf4(0x1cc)]['t'](_0x5b0bf4(0x180)),'type':b[_0x5b0bf4(0x1b5)][_0x5b0bf4(0x1b2)],'duration':0xbb8});break;}})),this[_0x58cea6(0x162)]['add'](_0x566c56[_0x58cea6(0x13c)]['subscribe'](async _0x19f790=>{const _0x4ec557=_0x58cea6;_0x19f790&&this[_0x4ec557(0x1bf)][_0x4ec557(0x1be)](I[_0x4ec557(0x1e2)]['id'],{'unitId':_0x24e05a,'revision':_0x19f790});}));}['_checkCanRevert'](_0x25c0b3){const _0x574a35=_0x420a89,_0x391dac=this['_univerInstanceService']['getUnit'](_0x25c0b3)[_0x574a35(0x1d7)]()['map'](_0x5e5d82=>_0x5e5d82[_0x574a35(0x10e)]()),_0x377547=new d[(_0x574a35(0x14d))](_0x25c0b3)['id'],_0x50515f=_0x391dac['map'](_0x3e2503=>new d[(_0x574a35(0x18b))](_0x25c0b3,_0x3e2503)['id']),_0x5837de=_0x391dac['map'](_0x2c6160=>this['_selectionProtectionRuleModel'][_0x574a35(0x1dd)](_0x25c0b3,_0x2c6160)['map'](_0x4fa1f0=>new d[(_0x574a35(0x132))](_0x25c0b3,_0x2c6160,_0x4fa1f0[_0x574a35(0x1d4)])['id']))[_0x574a35(0x1e5)](),_0x2a16ae=new d[(_0x574a35(0x1b7))](_0x25c0b3)['id'];return this[_0x574a35(0x174)][_0x574a35(0x17a)]([_0x377547,..._0x50515f,..._0x5837de,_0x2a16ae])[_0x574a35(0x165)](_0x2406b6=>!!_0x2406b6[_0x574a35(0x1d2)]);}},exports[_0x420a89(0x15c)]=Se([g(0x0,o[_0x420a89(0x16d)](o['LocaleService'])),g(0x1,o[_0x420a89(0x10d)]),g(0x2,o[_0x420a89(0x1e1)]),g(0x3,o[_0x420a89(0x1a3)]),g(0x4,h[_0x420a89(0x1c2)]),g(0x5,o[_0x420a89(0x111)]),g(0x6,o[_0x420a89(0x16d)](d[_0x420a89(0x1ab)])),g(0x7,o[_0x420a89(0x16d)](h[_0x420a89(0x14f)])),g(0x8,o['Inject'](h['ISidebarService'])),g(0x9,o[_0x420a89(0x16d)](o[_0x420a89(0x1c7)]))],exports[_0x420a89(0x15c)]);const M={'id':_0x420a89(0x10b),'type':o[_0x420a89(0x1ad)][_0x420a89(0x13a)],'handler':_0x31de83=>{const _0x5eec56=_0x420a89,_0x230156=_0x31de83[_0x5eec56(0x193)](exports[_0x5eec56(0x15c)]),_0x75cffd=_0x31de83[_0x5eec56(0x193)](o[_0x5eec56(0x10d)]),{unitId:_0x478541}=d[_0x5eec56(0x1df)](_0x75cffd)||{};return _0x478541?(_0x230156[_0x5eec56(0x1c3)](_0x478541),!0x0):!0x1;}};function ye(_0x7212e0){const _0x2d1626=_0x420a89;return{'id':M['id'],'type':h['MenuItemType'][_0x2d1626(0x171)],'icon':_0x2d1626(0x161),'tooltip':_0x2d1626(0x130),'hidden$':h[_0x2d1626(0x1c1)](_0x7212e0,o['UniverInstanceType'][_0x2d1626(0x188)]),'disabled$':w['getCurrentRangeDisable$'](_0x7212e0,{'workbookTypes':[d['WorkbookEditablePermission'],d[_0x2d1626(0x120)]],'worksheetTypes':[],'rangeTypes':[]})};}const fe={[h['RibbonStartGroup'][_0x420a89(0x192)]]:{[M['id']]:{'order':0.2,'menuItemFactory':ye}}};var pe=Object[_0x420a89(0x18d)],Ie=(_0x310626,_0x4a4659,_0x4b288e,_0x13779d)=>{const _0x5063de=_0x420a89;for(var _0x2a3ecf=_0x13779d>0x1?void 0x0:_0x13779d?pe(_0x4a4659,_0x4b288e):_0x4a4659,_0x16b4b5=_0x310626[_0x5063de(0x173)]-0x1,_0x2e9b89;_0x16b4b5>=0x0;_0x16b4b5--)(_0x2e9b89=_0x310626[_0x16b4b5])&&(_0x2a3ecf=_0x2e9b89(_0x2a3ecf)||_0x2a3ecf);return _0x2a3ecf;},S=(_0x361ded,_0x2741aa)=>(_0x1fca22,_0x4f77c8)=>_0x2741aa(_0x1fca22,_0x4f77c8,_0x361ded);let E=class extends o['RxDisposable']{constructor(_0x13cc9d,_0x59628d,_0x1c330e,_0x29fa3b,_0x410ab6,_0x5244bc,_0x45f5c9,_0x5dfa34){const _0x2449de=_0x420a89;super(),_(this,_0x2449de(0x194),null),(this[_0x2449de(0x1bf)]=_0x13cc9d,this[_0x2449de(0x15b)]=_0x59628d,this[_0x2449de(0x12c)]=_0x1c330e,this[_0x2449de(0x16b)]=_0x29fa3b,this[_0x2449de(0x1cc)]=_0x410ab6,this['_messageService']=_0x5244bc,this['_collaborationController']=_0x45f5c9,this[_0x2449de(0x121)]=_0x5dfa34,this[_0x2449de(0x17b)]());}[_0x420a89(0x17b)](){const _0x3c9c94=_0x420a89;[M]['forEach'](_0x1fc81a=>this[_0x3c9c94(0x1d3)](o[_0x3c9c94(0x190)](this['_commandService']['registerCommand'](_0x1fc81a)))),this[_0x3c9c94(0x1d3)](this['_componentManager']['register'](_0x3c9c94(0x161),q)),this[_0x3c9c94(0x15b)]['mergeMenu'](fe),this[_0x3c9c94(0x1d3)](this['_commandService']['onCommandExecuted'](_0x1f7f46=>{const _0x4a992e=_0x3c9c94;if(_0x1f7f46['id']===I[_0x4a992e(0x1e2)]['id']){this[_0x4a992e(0x176)][_0x4a992e(0x1bd)]({'content':this[_0x4a992e(0x1cc)]['t'](_0x4a992e(0x1bb)),'type':b['MessageType'][_0x4a992e(0x17e)],'duration':0x1388});const {unitId:_0x53634e}=_0x1f7f46[_0x4a992e(0x11b)],_0x2a29fe=this['_collaborationController']['getCollabEntity'](_0x53634e),_0x1abac5=T[_0x4a992e(0x19d)]([_0x2a29fe['session'][_0x4a992e(0x11a)],_0x2a29fe['state$']])[_0x4a992e(0x184)](async([_0x4fa118,_0x4d1256])=>{const _0x11bbc6=_0x4a992e;var _0x5e82d3;_0x4fa118['eventID']===I['CollaborationEvent'][_0x11bbc6(0x182)]&&(_0x4d1256==null?void 0x0:_0x4d1256['status'])===f[_0x11bbc6(0x147)][_0x11bbc6(0x123)]&&_0x4fa118['data'][_0x11bbc6(0x1c9)][_0x11bbc6(0x187)](_0x51b7eb=>_0x51b7eb['id']===I['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x11bbc6(0x1a8)](),_0x1abac5[_0x11bbc6(0x1e8)](),this[_0x11bbc6(0x194)]&&clearTimeout(this[_0x11bbc6(0x194)]),await((_0x5e82d3=this['_localCacheService'])==null?void 0x0:_0x5e82d3[_0x11bbc6(0x1ac)]()),setTimeout(()=>window[_0x11bbc6(0x1ce)]['reload']()));});this[_0x4a992e(0x194)]=setTimeout(()=>{const _0x4524b2=_0x4a992e;_0x1abac5[_0x4524b2(0x1e8)](),this[_0x4524b2(0x176)][_0x4524b2(0x1bd)]({'content':this[_0x4524b2(0x1cc)]['t']('editHistory.panel.revertFailed'),'type':b[_0x4524b2(0x1b5)][_0x4524b2(0x1b2)],'duration':0xbb8});},0x1388);}}));}};E=Ie([S(0x0,o[_0x420a89(0x1a3)]),S(0x1,h[_0x420a89(0x1e4)]),S(0x2,o[_0x420a89(0x16d)](h[_0x420a89(0x166)])),S(0x3,o[_0x420a89(0x16d)](exports[_0x420a89(0x15c)])),S(0x4,o[_0x420a89(0x16d)](o[_0x420a89(0x14e)])),S(0x5,h['IMessageService']),S(0x6,o[_0x420a89(0x16d)](f[_0x420a89(0x1e6)])),S(0x7,f[_0x420a89(0x1b1)])],E);var Ce=Object[_0x420a89(0x18d)],Ue=(_0x344e3e,_0x4ac0bf,_0x2c57ee,_0x3bcf59)=>{const _0x16e3e9=_0x420a89;for(var _0xc04fd=_0x3bcf59>0x1?void 0x0:_0x3bcf59?Ce(_0x4ac0bf,_0x2c57ee):_0x4ac0bf,_0x48a7ec=_0x344e3e[_0x16e3e9(0x173)]-0x1,_0x309b66;_0x48a7ec>=0x0;_0x48a7ec--)(_0x309b66=_0x344e3e[_0x48a7ec])&&(_0xc04fd=_0x309b66(_0xc04fd)||_0xc04fd);return _0xc04fd;},N=(_0x562a56,_0x5c092)=>(_0x416a20,_0x1d1d01)=>_0x5c092(_0x416a20,_0x1d1d01,_0x562a56);const Ee=_0x420a89(0x122);var C;exports[_0x420a89(0x10f)]=(C=class extends o[_0x420a89(0x112)]{constructor(_0x2ec987=R,_0x152c1e,_0x348a1b){const _0x25b56f=_0x420a89;super(),this['_config']=_0x2ec987,this[_0x25b56f(0x151)]=_0x152c1e,this[_0x25b56f(0x1c6)]=_0x348a1b;const {menu:_0xe45308,..._0x374001}=o[_0x25b56f(0x172)]({},R,this[_0x25b56f(0x1a7)]);_0xe45308&&this[_0x25b56f(0x1c6)]['setConfig'](_0x25b56f(0x1a5),_0xe45308,{'merge':!0x0}),this['_configService'][_0x25b56f(0x1ca)](O,_0x374001),this[_0x25b56f(0x1a7)][_0x25b56f(0x127)]&&this[_0x25b56f(0x1c6)][_0x25b56f(0x1ca)](P,this['_config'][_0x25b56f(0x127)]);}[_0x420a89(0x11f)](){const _0x2d40e7=_0x420a89;[[exports[_0x2d40e7(0x15c)]],[E]][_0x2d40e7(0x185)](_0x45c7eb=>this[_0x2d40e7(0x151)]['add'](_0x45c7eb));}[_0x420a89(0x11e)](){const _0x28e035=_0x420a89;this[_0x28e035(0x151)][_0x28e035(0x193)](E);}},_(C,_0x420a89(0x178),o[_0x420a89(0x195)][_0x420a89(0x1c0)]),_(C,_0x420a89(0x113),Ee),C),exports[_0x420a89(0x10f)]=Ue([N(0x1,o[_0x420a89(0x16d)](o['Injector'])),N(0x2,o[_0x420a89(0x1e1)])],exports['UniverEditHistoryLoaderPlugin']),exports[_0x420a89(0x13d)]=P,exports[_0x420a89(0x1cf)]=y;
1
+ 'use strict';const _0x2c37fe=_0x11a1;(function(_0xaff18e,_0x4f1ac2){const _0x575422=_0x11a1,_0x437104=_0xaff18e();while(!![]){try{const _0x20694d=-parseInt(_0x575422(0x110))/0x1*(-parseInt(_0x575422(0x100))/0x2)+parseInt(_0x575422(0x138))/0x3+-parseInt(_0x575422(0xf1))/0x4+-parseInt(_0x575422(0x91))/0x5+-parseInt(_0x575422(0x12b))/0x6+parseInt(_0x575422(0x7e))/0x7*(parseInt(_0x575422(0x13f))/0x8)+-parseInt(_0x575422(0x154))/0x9;if(_0x20694d===_0x4f1ac2)break;else _0x437104['push'](_0x437104['shift']());}catch(_0x4b6b14){_0x437104['push'](_0x437104['shift']());}}}(_0xbf2a,0x96b1d));var j=Object[_0x2c37fe(0xd2)],F=(_0x289fc4,_0x152b3e,_0x26661)=>_0x152b3e in _0x289fc4?j(_0x289fc4,_0x152b3e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26661}):_0x289fc4[_0x152b3e]=_0x26661,_=(_0x1d0f36,_0x179774,_0x1575b3)=>F(_0x1d0f36,typeof _0x179774!='symbol'?_0x179774+'':_0x179774,_0x1575b3);Object[_0x2c37fe(0xd2)](exports,Symbol[_0x2c37fe(0xf5)],{'value':'Module'});const o=require('@univerjs/core'),I=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),P=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-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'),B=require('@univerjs/docs'),K=require('@univerjs/docs-ui'),L=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'),w=require('@univerjs/sheets-ui'),O=_0x2c37fe(0xed),R={};function _0xbf2a(){const _0x58953f=['M0\x200H16V16H0z','merge','RxDisposable','BehaviorSubject','UniverDocsPlugin','closeAll','100%','UniverDrawingPlugin','WorksheetEditPermission','every','UniverEditHistoryLoaderPlugin','UniverSheetsPlugin','attrs','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','getElementById','IAuthzIoService','getCurrentLocale','status','add','_collaborationController','_initUniver','UniverSheetSparklinePlugin','UNIVER_CONTAINER_ID','assign','show','url(#$1','1000','getSheetCommandTarget','IDialogService','mountHistoryContent','xlink:href','AuthzIoHttpService','_initListener','idSuffix','clear','CommandType','UniverSheetsFormulaUIPlugin','asObservable','_initPlugins','CollaborationEvent','univer-container','dispose','setDarkMode','_pluginMap','HistoryManagerService','HistoryModeStatus','UniverFormulaEnginePlugin','_disposableCollection','_revertErrorTimer','executeCommand','length','forwardRef','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','exhaustSavingTask','UNIVER_SHEET','editHistory.panel.listFetchError','flat','tag','defineProperty','_selectionProtectionRuleModel','_checkCanRevert','getOwnPropertyDescriptor','_messageService','register','Exited','registerPlugin','next','mask','UniverLicensePlugin','WorkbookEditablePermission','UniverSheetsFilterUIPlugin','fill','location','zIndex','svg','colorChannel1','WorkbookRecoverHistoryPermission','IConfigService','editHistory.panel.revertFailed','1em','./worker.js','ThemeService','has','session','close','edit-history-loader.config','Injector','position','toString','640144iEENuV','Entered','invoke','width','toStringTag','revertRevision$','block','RevertRevisionMutation','currentTheme$','path','onCommandExecuted','UniverSheetSparklineUIPlugin','CollaborationController','Loading','appendChild','264578qSwBFV','UniverIcon','_univerInstanceService','unsubscribe','_componentManager','history-container','use','_historyUniver$','[HistoryLoaderService]:\x20Plugin\x20','UniverDataValidationPlugin','disposeWithMe','defs','subscribe','_sidebarService','IPermissionService','UniverSheetsHyperLinkUIPlugin','9lxCzRG','univerContainerId','UniverEditHistoryViewerPlugin','Plugin','forEach','absolute','entries','string','LocaleService','IUniverInstanceService','history-icon','UniverSheetsHyperLinkPlugin','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','eventID','triggerLoadVersions','SYNCED','_injector','value','set','UniverSheetsFormulaPlugin','reload','_init','UniverSheetsDataValidationPlugin','_menuManagerService','Inject','values','HistoryLoaderService','5145000QtVkIt','_themeService','state$','UniverNetworkPlugin','darkMode$','UniverRenderEnginePlugin','status$','from','_initContainer','left','none','LS_CONFIG_KEY','OTHERS','2065539nBWeMS','unMountHistoryContent','getCollabEntity','pluginName','OPERATION','univer-history-container','history-icon_clip0_907_281','160hSgdHJ','RibbonStartGroup','_dialogService','0\x200\x2016\x2016','mergeMenu','getMenuHiddenObservable','trim','UNIVER_CONTAINER_ID_KEY','substring','BUTTON','map','display','getAllPlugins','createElement','params','UniverSheetsConditionalFormattingUIPlugin','getLocales','UniverSheetsFilterPlugin','children','editHistory.panel.reverting','UniverUIPlugin','1840356PwCvak','HistoryIcon','url(#history-icon_clip0_907_281)','UniverSheetsChartUIPlugin','UniverSheetsChartPlugin','_localCacheService','useRef','IMessageService','onStarting','ISidebarService','ICommandService','toDisposable','IImageIoService','UniverDrawingUIPlugin','getUnit','UniverSheetsPivotTablePlugin','composePermission','getConfig','get','WorkbookViewHistoryPermission','style','permissionId','_commandService','univerjs-icon\x20univerjs-icon-','_config','displayName','34496vwguRm','clipPath','onSteady','MessageType','ILocalCacheService','MenuItemType','_configService','replace','UniverSheetsNumfmtPlugin','top','Error','random','setLocale','historyUniver','_permissionService','_localeService','height','IMenuManagerService','UniverRPCMainThreadPlugin','692045cSMgRB','setTheme','UniverInstanceType','dataset','setConfig','getSubunitRuleList','white'];_0xbf2a=function(){return _0x58953f;};return _0xbf2a();}function k({ref:_0x2c51e4,..._0x16ca53}){const _0x37d7b7=_0x2c37fe,{icon:_0x31b2b2,id:_0x2a9475,className:_0x5509d5,extend:_0x4e648c,..._0x15a9a9}=_0x16ca53,_0x684924=(_0x37d7b7(0x7b)+_0x2a9475+'\x20'+(_0x5509d5||''))[_0x37d7b7(0x145)](),_0xa81fe8=U[_0x37d7b7(0x15a)]('_'+_e());return D(_0x31b2b2,''+_0x2a9475,{'defIds':_0x31b2b2['defIds'],'idSuffix':_0xa81fe8['current']},{'ref':_0x2c51e4,'className':_0x684924,..._0x15a9a9},_0x4e648c);}function D(_0x396939,_0x86f6ed,_0x24a7f4,_0x1b9352,_0x2c7dd9){const _0x12779f=_0x2c37fe;return U[_0x12779f(0x14c)](_0x396939['tag'],{'key':_0x86f6ed,...ve(_0x396939,_0x24a7f4,_0x2c7dd9),..._0x1b9352},(de(_0x396939,_0x24a7f4)[_0x12779f(0x151)]||[])[_0x12779f(0x149)]((_0x1c284b,_0x5a684f)=>D(_0x1c284b,_0x86f6ed+'-'+_0x396939[_0x12779f(0xd1)]+'-'+_0x5a684f,_0x24a7f4,void 0x0,_0x2c7dd9)));}function ve(_0x3ee7c9,_0x3e76de,_0x3f44d1){const _0xcd47a3=_0x2c37fe,_0x2aefae={..._0x3ee7c9['attrs']};_0x3f44d1!=null&&_0x3f44d1['colorChannel1']&&_0x2aefae['fill']===_0xcd47a3(0xe3)&&(_0x2aefae[_0xcd47a3(0xdf)]=_0x3f44d1['colorChannel1']),_0x3ee7c9[_0xcd47a3(0xd1)]==='mask'&&_0x2aefae['id']&&(_0x2aefae['id']=_0x2aefae['id']+_0x3e76de[_0xcd47a3(0xb9)]),Object[_0xcd47a3(0x116)](_0x2aefae)[_0xcd47a3(0x114)](([_0x44eb19,_0x1e3549])=>{const _0x318f3a=_0xcd47a3;_0x44eb19===_0x318f3a(0xdb)&&typeof _0x1e3549==_0x318f3a(0x117)&&(_0x2aefae[_0x44eb19]=_0x1e3549[_0x318f3a(0x85)](/url\(#(.*)\)/,_0x318f3a(0xb1)+_0x3e76de[_0x318f3a(0xb9)]+')'));});const {defIds:_0x458c03}=_0x3e76de;return!_0x458c03||_0x458c03[_0xcd47a3(0xca)]===0x0||(_0x3ee7c9['tag']===_0xcd47a3(0x106)&&_0x2aefae[_0xcd47a3(0xb6)]&&(_0x2aefae[_0xcd47a3(0xb6)]=_0x2aefae[_0xcd47a3(0xb6)]+_0x3e76de[_0xcd47a3(0xb9)]),Object[_0xcd47a3(0x116)](_0x2aefae)['forEach'](([_0x2ea2b2,_0x57865d])=>{const _0x4af2e9=_0xcd47a3;typeof _0x57865d=='string'&&(_0x2aefae[_0x2ea2b2]=_0x57865d[_0x4af2e9(0x85)](/url\(#(.*)\)/,_0x4af2e9(0xb1)+_0x3e76de[_0x4af2e9(0xb9)]+')'));})),_0x2aefae;}function de(_0x53f176,_0x4b993){const _0x342b98=_0x2c37fe;var _0x1a8d36;const {defIds:_0x151618}=_0x4b993;return!_0x151618||_0x151618[_0x342b98(0xca)]===0x0?_0x53f176:_0x53f176['tag']===_0x342b98(0x10b)&&((_0x1a8d36=_0x53f176[_0x342b98(0x151)])!=null&&_0x1a8d36[_0x342b98(0xca)])?{..._0x53f176,'children':_0x53f176['children'][_0x342b98(0x149)](_0x16ef90=>typeof _0x16ef90[_0x342b98(0xa4)]['id']==_0x342b98(0x117)&&_0x151618&&_0x151618['includes'](_0x16ef90['attrs']['id'])?{..._0x16ef90,'attrs':{..._0x16ef90[_0x342b98(0xa4)],'id':_0x16ef90[_0x342b98(0xa4)]['id']+_0x4b993[_0x342b98(0xb9)]}}:_0x16ef90)}:_0x53f176;}function _e(){const _0x57b8fc=_0x2c37fe;return Math[_0x57b8fc(0x89)]()[_0x57b8fc(0xf0)](0x24)[_0x57b8fc(0x147)](0x2,0x8);}k['displayName']=_0x2c37fe(0x101);const Se={'tag':_0x2c37fe(0xe2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2c37fe(0x135),'viewBox':_0x2c37fe(0x142),'width':_0x2c37fe(0xe7),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x2c37fe(0x156)},'children':[{'tag':_0x2c37fe(0xfa),'attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':_0x2c37fe(0xfa),'attrs':{'d':_0x2c37fe(0x11c)}}]},{'tag':_0x2c37fe(0x10b),'attrs':{},'children':[{'tag':_0x2c37fe(0x7f),'attrs':{'id':_0x2c37fe(0x13e)},'children':[{'tag':'path','attrs':{'fill':_0x2c37fe(0x97),'d':_0x2c37fe(0x98)}}]}]}],'defIds':[_0x2c37fe(0x13e)]},q=U[_0x2c37fe(0xcb)](function(_0x172091,_0x30eedb){const _0x17e535=_0x2c37fe;return U[_0x17e535(0x14c)](k,Object[_0x17e535(0xaf)]({},_0x172091,{'id':_0x17e535(0x11a),'ref':_0x30eedb,'icon':Se}));});q[_0x2c37fe(0x7d)]=_0x2c37fe(0x155);var me=Object[_0x2c37fe(0xd5)],ye=(_0x3d64cc,_0x48f719,_0x5469fd,_0x418332)=>{const _0x40b463=_0x2c37fe;for(var _0x58e6b3=_0x418332>0x1?void 0x0:_0x418332?me(_0x48f719,_0x5469fd):_0x48f719,_0x163f5a=_0x3d64cc[_0x40b463(0xca)]-0x1,_0x3d0cea;_0x163f5a>=0x0;_0x163f5a--)(_0x3d0cea=_0x3d64cc[_0x163f5a])&&(_0x58e6b3=_0x3d0cea(_0x58e6b3)||_0x58e6b3);return _0x58e6b3;},g=(_0x32eecb,_0x4e97bf)=>(_0x194ce8,_0x452d24)=>_0x4e97bf(_0x194ce8,_0x452d24,_0x32eecb);const fe=_0x2c37fe(0xc0),b=_0x2c37fe(0xae),y=_0x2c37fe(0x13d);function _0x11a1(_0x410ccc,_0x2a89ad){_0x410ccc=_0x410ccc-0x6d;const _0xbf2a6e=_0xbf2a();let _0x11a199=_0xbf2a6e[_0x410ccc];return _0x11a199;}exports[_0x2c37fe(0x12a)]=class extends o['Disposable']{constructor(_0x63f1cc,_0x15bb6e,_0x2ff78c,_0x37e65e,_0x2d444d,_0x462e3d,_0xd298c3,_0x46b389,_0x322ef7,_0x5421fb){const _0x342883=_0x2c37fe;super(),_(this,_0x342883(0x107),new T[(_0x342883(0x9b))](null)),_(this,'historyUniver$',this[_0x342883(0x107)][_0x342883(0xbd)]()),_(this,_0x342883(0xc7),new o['DisposableCollection']()),_(this,_0x342883(0xc3),new Map()),(this[_0x342883(0x8d)]=_0x63f1cc,this[_0x342883(0x102)]=_0x15bb6e,this[_0x342883(0x84)]=_0x2ff78c,this[_0x342883(0x7a)]=_0x37e65e,this[_0x342883(0xd6)]=_0x2d444d,this['_permissionService']=_0x462e3d,this[_0x342883(0xd3)]=_0xd298c3,this[_0x342883(0x141)]=_0x46b389,this[_0x342883(0x10d)]=_0x322ef7,this[_0x342883(0x12c)]=_0x5421fb,this[_0x342883(0x125)]());}get[_0x2c37fe(0x8b)](){const _0x1f41c1=_0x2c37fe;return this[_0x1f41c1(0x107)][_0x1f41c1(0x121)];}[_0x2c37fe(0x125)](){const _0x41360f=_0x2c37fe;this['_initContainer'](),this[_0x41360f(0xbe)]();}[_0x2c37fe(0x133)](){const _0x41df4b=_0x2c37fe;var _0x261ba7;const _0x484d59=(_0x261ba7=this[_0x41df4b(0x84)]['getConfig'](b))!=null?_0x261ba7:fe,_0x2fc774=document['getElementById'](_0x484d59);if(!_0x2fc774)return;const _0x54f355=document['createElement']('div');_0x54f355['id']=y,_0x54f355[_0x41df4b(0x94)]['uComp']=_0x41df4b(0x105),_0x54f355['style'][_0x41df4b(0xef)]=_0x41df4b(0x115),_0x54f355[_0x41df4b(0x78)][_0x41df4b(0x87)]='0',_0x54f355[_0x41df4b(0x78)][_0x41df4b(0x134)]='0',_0x54f355[_0x41df4b(0x78)][_0x41df4b(0xf4)]='100%',_0x54f355[_0x41df4b(0x78)][_0x41df4b(0x8e)]=_0x41df4b(0x9e),_0x54f355['style'][_0x41df4b(0xe1)]=_0x41df4b(0xb2),_0x54f355[_0x41df4b(0x78)][_0x41df4b(0x14a)]=_0x41df4b(0x135),_0x2fc774[_0x41df4b(0xff)](_0x54f355);}['_initPlugins'](){const _0x3e5b5f=_0x2c37fe;var _0x33568a;[[J[_0x3e5b5f(0x130)]],[h[_0x3e5b5f(0x153)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x3e5b5f(0xb4)],null]]}],[Q[_0x3e5b5f(0x12e)]],[L[_0x3e5b5f(0x9f)],{'override':[[L[_0x3e5b5f(0x70)],null]]}],[B[_0x3e5b5f(0x9c)],{'hasScroll':!0x1}],[K['UniverDocsUIPlugin']],[ge[_0x3e5b5f(0x86)]],[d[_0x3e5b5f(0xa3)],{'notExecuteFormula':!0x0}],[w['UniverSheetsUIPlugin']],[ce[_0x3e5b5f(0x123)]],[le[_0x3e5b5f(0xbc)]],[I['UniverCollaborationPlugin']],[oe[_0x3e5b5f(0x150)]],[ae[_0x3e5b5f(0xde)]],[ee['UniverSheetsConditionalFormattingPlugin']],[ie[_0x3e5b5f(0x14e)]],[ue[_0x3e5b5f(0x11b)]],[he[_0x3e5b5f(0x10f)]],[Y[_0x3e5b5f(0x109)]],[te[_0x3e5b5f(0x126)]],[re['UniverSheetsDataValidationUIPlugin']],[Z[_0x3e5b5f(0xc6)],{'notExecuteFormula':!0x0}],[X[_0x3e5b5f(0x90)],{'workerURL':_0x3e5b5f(0xe8)}],[z[_0x3e5b5f(0x71)]],[ne['UniverSheetsDrawingPlugin']],[se['UniverSheetsDrawingUIPlugin']],[G[_0x3e5b5f(0xad)]],[W[_0x3e5b5f(0xfc)]],[x[_0x3e5b5f(0x158)]],[A[_0x3e5b5f(0x157)]],[V[_0x3e5b5f(0x73)],{'notExecuteFormula':!0x0}],[m[_0x3e5b5f(0x112)],{'historyListServerUrl':(_0x33568a=this[_0x3e5b5f(0x84)]['getConfig'](O))==null?void 0x0:_0x33568a['historyListServerUrl']}]][_0x3e5b5f(0x114)](([_0x40787b,_0x36e69d])=>this['registerPlugin'](_0x40787b,_0x36e69d));}[_0x2c37fe(0xc1)](){const _0x180cb1=_0x2c37fe;super[_0x180cb1(0xc1)](),this[_0x180cb1(0x139)](),this[_0x180cb1(0xc3)][_0x180cb1(0xba)]();}['registerPlugin'](_0x269fdc,_0x10b7c8,_0x2c632b){const _0x528564=_0x2c37fe;if(this[_0x528564(0xc3)][_0x528564(0xea)](_0x269fdc['pluginName'])&&!_0x2c632b)throw new Error(_0x528564(0x108)+_0x269fdc['pluginName']+'\x20has\x20been\x20registered.');this[_0x528564(0xc3)][_0x528564(0x122)](_0x269fdc['pluginName'],[_0x269fdc,_0x10b7c8]);}[_0x2c37fe(0x14b)](){const _0x450f20=_0x2c37fe;return Array[_0x450f20(0x132)](this['_pluginMap'][_0x450f20(0x129)]());}[_0x2c37fe(0xb5)](_0x229a62){const _0x543be5=_0x2c37fe,_0x41d2aa=document['getElementById'](y);_0x41d2aa&&(_0x41d2aa[_0x543be5(0x78)][_0x543be5(0x14a)]=_0x543be5(0xf7),this[_0x543be5(0xac)](_0x229a62,y));}['unMountHistoryContent'](){const _0x220911=_0x2c37fe;var _0x22f3bf;this[_0x220911(0xc7)][_0x220911(0xc1)](),(_0x22f3bf=this['historyUniver'])==null||_0x22f3bf['dispose'](),this[_0x220911(0x107)][_0x220911(0xda)](null);const _0x1cd972=document[_0x220911(0xa6)](y);_0x1cd972&&(_0x1cd972[_0x220911(0x78)][_0x220911(0x14a)]='none');}['_initUniver'](_0x1e0663,_0xb42223){const _0x4538c2=_0x2c37fe;if(this[_0x4538c2(0x8b)])return;const _0x43969f=new o['Univer']({'locales':{[this['_localeService'][_0x4538c2(0xa8)]()]:this['_localeService'][_0x4538c2(0x14f)]()},'override':[[o[_0x4538c2(0xa7)],{'useClass':f[_0x4538c2(0xb7)]}]]}),_0x197659=_0x43969f['__getInjector']();this[_0x4538c2(0x10a)](this[_0x4538c2(0x12c)][_0x4538c2(0x12f)][_0x4538c2(0x10c)](_0x89997a=>{const _0x576e46=_0x4538c2;_0x197659[_0x576e46(0x76)](o[_0x576e46(0xe9)])[_0x576e46(0xc2)](_0x89997a);})),this[_0x4538c2(0x10a)](this[_0x4538c2(0x12c)][_0x4538c2(0xf9)][_0x4538c2(0x10c)](_0x30a41d=>{const _0x363e07=_0x4538c2;_0x197659[_0x363e07(0x76)](o[_0x363e07(0xe9)])[_0x363e07(0x92)](_0x30a41d);})),_0x197659['get'](o['LocaleService'])[_0x4538c2(0x8a)](this[_0x4538c2(0x8d)][_0x4538c2(0xa8)]()),_0x197659[_0x4538c2(0x76)](o[_0x4538c2(0xe5)])[_0x4538c2(0x95)](f[_0x4538c2(0xcc)],this['_configService']['getConfig'](f[_0x4538c2(0xcc)]));const _0x5ba552=this[_0x4538c2(0x84)][_0x4538c2(0x75)](H[_0x4538c2(0x136)]);_0x5ba552&&_0x43969f[_0x4538c2(0xd9)](H[_0x4538c2(0xdc)],{'license':_0x5ba552['ls']}),this[_0x4538c2(0xc3)]['forEach'](([_0x170464,_0x239251])=>{const _0x40b248=_0x4538c2;_0x43969f[_0x40b248(0xd9)](_0x170464,_0x239251);}),_0x197659[_0x4538c2(0xf3)](_0x17d383=>{const _0x5a3402=_0x4538c2;this[_0x5a3402(0xb8)](_0x17d383,_0x1e0663);}),this[_0x4538c2(0x107)]['next'](_0x43969f);const _0x57bbc8=_0x197659['get'](m[_0x4538c2(0xc4)]),_0x50c7db=this[_0x4538c2(0xd4)](_0x1e0663);_0x57bbc8[_0x4538c2(0x11e)](_0x1e0663,_0xb42223,_0x50c7db);}[_0x2c37fe(0xb8)](_0x1cd1df,_0x3e68fb){const _0x52916b=_0x2c37fe,_0x2def8f=_0x1cd1df[_0x52916b(0x76)](m[_0x52916b(0xc4)]);this['_disposableCollection'][_0x52916b(0xaa)](_0x2def8f[_0x52916b(0x131)]['subscribe'](_0x3ea36f=>{const _0x21786f=_0x52916b;switch(_0x3ea36f){case m[_0x21786f(0xc5)][_0x21786f(0xf2)]:this['_dialogService'][_0x21786f(0x9d)](),this['_sidebarService'][_0x21786f(0xec)]();break;case m[_0x21786f(0xc5)][_0x21786f(0xd8)]:this[_0x21786f(0x139)]();break;case m[_0x21786f(0xc5)][_0x21786f(0x88)]:this[_0x21786f(0x139)](),this['_messageService'][_0x21786f(0xb0)]({'content':this[_0x21786f(0x8d)]['t'](_0x21786f(0xcf)),'type':P[_0x21786f(0x81)][_0x21786f(0x88)],'duration':0xbb8});break;}})),this[_0x52916b(0xc7)][_0x52916b(0xaa)](_0x2def8f[_0x52916b(0xf6)][_0x52916b(0x10c)](async _0x5b208f=>{const _0x5ae2d1=_0x52916b;_0x5b208f&&this[_0x5ae2d1(0x7a)][_0x5ae2d1(0xc9)](I[_0x5ae2d1(0xf8)]['id'],{'unitId':_0x3e68fb,'revision':_0x5b208f});}));}['_checkCanRevert'](_0x906ae2){const _0x5782c0=_0x2c37fe,_0x509ad7=this['_univerInstanceService'][_0x5782c0(0x72)](_0x906ae2)['getSheets']()['map'](_0x41f7e9=>_0x41f7e9['getSheetId']()),_0x24a817=new d[(_0x5782c0(0xdd))](_0x906ae2)['id'],_0x49c46d=_0x509ad7[_0x5782c0(0x149)](_0xe8c0f4=>new d[(_0x5782c0(0xa0))](_0x906ae2,_0xe8c0f4)['id']),_0x3a6366=_0x509ad7[_0x5782c0(0x149)](_0x5a3f32=>this['_selectionProtectionRuleModel'][_0x5782c0(0x96)](_0x906ae2,_0x5a3f32)['map'](_0xd65088=>new d['RangeProtectionPermissionEditPoint'](_0x906ae2,_0x5a3f32,_0xd65088[_0x5782c0(0x79)])['id']))[_0x5782c0(0xd0)](),_0x446788=new d[(_0x5782c0(0xe4))](_0x906ae2)['id'];return this[_0x5782c0(0x8c)][_0x5782c0(0x74)]([_0x24a817,..._0x49c46d,..._0x3a6366,_0x446788])[_0x5782c0(0xa1)](_0x32eba8=>!!_0x32eba8[_0x5782c0(0x121)]);}},exports[_0x2c37fe(0x12a)]=ye([g(0x0,o[_0x2c37fe(0x128)](o[_0x2c37fe(0x118)])),g(0x1,o[_0x2c37fe(0x119)]),g(0x2,o['IConfigService']),g(0x3,o['ICommandService']),g(0x4,h[_0x2c37fe(0x15b)]),g(0x5,o[_0x2c37fe(0x10e)]),g(0x6,o[_0x2c37fe(0x128)](d['RangeProtectionRuleModel'])),g(0x7,o['Inject'](h[_0x2c37fe(0xb4)])),g(0x8,o[_0x2c37fe(0x128)](h[_0x2c37fe(0x6d)])),g(0x9,o[_0x2c37fe(0x128)](o[_0x2c37fe(0xe9)]))],exports[_0x2c37fe(0x12a)]);const M={'id':'univer.operation.toggle-edit-history','type':o[_0x2c37fe(0xbb)][_0x2c37fe(0x13c)],'handler':_0xb9ac79=>{const _0x1f60a6=_0x2c37fe,_0x4ed483=_0xb9ac79[_0x1f60a6(0x76)](exports[_0x1f60a6(0x12a)]),_0x530d4b=_0xb9ac79['get'](o['IUniverInstanceService']),{unitId:_0x574a99}=d[_0x1f60a6(0xb3)](_0x530d4b)||{};return _0x574a99?(_0x4ed483['mountHistoryContent'](_0x574a99),!0x0):!0x1;}};function pe(_0x4c94f0){const _0x6d0db4=_0x2c37fe;return{'id':M['id'],'type':h[_0x6d0db4(0x83)][_0x6d0db4(0x148)],'icon':'HistoryIcon','tooltip':'editHistory.panel.title','hidden$':h[_0x6d0db4(0x144)](_0x4c94f0,o[_0x6d0db4(0x93)][_0x6d0db4(0xce)]),'disabled$':w['getCurrentRangeDisable$'](_0x4c94f0,{'workbookTypes':[d[_0x6d0db4(0xdd)],d[_0x6d0db4(0x77)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ie={[h[_0x2c37fe(0x140)][_0x2c37fe(0x137)]]:{[M['id']]:{'order':0.2,'menuItemFactory':pe}}};var Ce=Object['getOwnPropertyDescriptor'],Ue=(_0x39391c,_0x42f996,_0x3c41f3,_0x564405)=>{for(var _0x3f2b75=_0x564405>0x1?void 0x0:_0x564405?Ce(_0x42f996,_0x3c41f3):_0x42f996,_0x44e486=_0x39391c['length']-0x1,_0x561202;_0x44e486>=0x0;_0x44e486--)(_0x561202=_0x39391c[_0x44e486])&&(_0x3f2b75=_0x561202(_0x3f2b75)||_0x3f2b75);return _0x3f2b75;},S=(_0x5ab6bc,_0x1423f6)=>(_0x55e7e4,_0x96f9ed)=>_0x1423f6(_0x55e7e4,_0x96f9ed,_0x5ab6bc);let E=class extends o[_0x2c37fe(0x9a)]{constructor(_0x56fc90,_0x61b6a2,_0x319aff,_0x453a49,_0x541aac,_0x201743,_0x37d46a,_0x286fd7){const _0xd6864b=_0x2c37fe;super(),_(this,_0xd6864b(0xc8),null),(this[_0xd6864b(0x7a)]=_0x56fc90,this[_0xd6864b(0x127)]=_0x61b6a2,this[_0xd6864b(0x104)]=_0x319aff,this['_historyManagerService']=_0x453a49,this[_0xd6864b(0x8d)]=_0x541aac,this[_0xd6864b(0xd6)]=_0x201743,this[_0xd6864b(0xab)]=_0x37d46a,this[_0xd6864b(0x159)]=_0x286fd7,this[_0xd6864b(0x125)]());}[_0x2c37fe(0x125)](){const _0x4d3152=_0x2c37fe;[M]['forEach'](_0x15962d=>this[_0x4d3152(0x10a)](o[_0x4d3152(0x6f)](this[_0x4d3152(0x7a)]['registerCommand'](_0x15962d)))),this[_0x4d3152(0x10a)](this[_0x4d3152(0x104)][_0x4d3152(0xd7)](_0x4d3152(0x155),q)),this[_0x4d3152(0x127)][_0x4d3152(0x143)](Ie),this[_0x4d3152(0x10a)](this[_0x4d3152(0x7a)][_0x4d3152(0xfb)](_0x4acd21=>{const _0x46640c=_0x4d3152;if(_0x4acd21['id']===I[_0x46640c(0xf8)]['id']){this[_0x46640c(0xd6)][_0x46640c(0xb0)]({'content':this[_0x46640c(0x8d)]['t'](_0x46640c(0x152)),'type':P[_0x46640c(0x81)][_0x46640c(0xfe)],'duration':0x1388});const {unitId:_0x44b32e}=_0x4acd21[_0x46640c(0x14d)],_0xc0b741=this['_collaborationController'][_0x46640c(0x13a)](_0x44b32e),_0x2bf146=T['combineLatest']([_0xc0b741[_0x46640c(0xeb)]['event$'],_0xc0b741[_0x46640c(0x12d)]])[_0x46640c(0x10c)](async([_0x2cd01f,_0x14d3b7])=>{const _0x19c699=_0x46640c;var _0x161949;_0x2cd01f[_0x19c699(0x11d)]===I[_0x19c699(0xbf)]['CHANGESET_ACK']&&(_0x14d3b7==null?void 0x0:_0x14d3b7[_0x19c699(0xa9)])===f['CollaborationStatus'][_0x19c699(0x11f)]&&_0x2cd01f['data']['mutations']['some'](_0x473137=>_0x473137['id']===I[_0x19c699(0xf8)]['id'])&&(this['_historyManagerService'][_0x19c699(0x139)](),_0x2bf146[_0x19c699(0x103)](),this[_0x19c699(0xc8)]&&clearTimeout(this['_revertErrorTimer']),await((_0x161949=this['_localCacheService'])==null?void 0x0:_0x161949[_0x19c699(0xcd)]()),setTimeout(()=>window[_0x19c699(0xe0)][_0x19c699(0x124)]()));});this[_0x46640c(0xc8)]=setTimeout(()=>{const _0x37253f=_0x46640c;_0x2bf146[_0x37253f(0x103)](),this[_0x37253f(0xd6)][_0x37253f(0xb0)]({'content':this['_localeService']['t'](_0x37253f(0xe6)),'type':P['MessageType'][_0x37253f(0x88)],'duration':0xbb8});},0x1388);}}));}};E=Ue([S(0x0,o[_0x2c37fe(0x6e)]),S(0x1,h[_0x2c37fe(0x8f)]),S(0x2,o[_0x2c37fe(0x128)](h['ComponentManager'])),S(0x3,o[_0x2c37fe(0x128)](exports[_0x2c37fe(0x12a)])),S(0x4,o[_0x2c37fe(0x128)](o['LocaleService'])),S(0x5,h[_0x2c37fe(0x15b)]),S(0x6,o['Inject'](f[_0x2c37fe(0xfd)])),S(0x7,f[_0x2c37fe(0x82)])],E);var Ee=Object[_0x2c37fe(0xd5)],Pe=(_0x38bde6,_0x2190d6,_0x54771d,_0x3054eb)=>{const _0x52b6eb=_0x2c37fe;for(var _0x28d719=_0x3054eb>0x1?void 0x0:_0x3054eb?Ee(_0x2190d6,_0x54771d):_0x2190d6,_0x1a42ad=_0x38bde6[_0x52b6eb(0xca)]-0x1,_0x37c8b3;_0x1a42ad>=0x0;_0x1a42ad--)(_0x37c8b3=_0x38bde6[_0x1a42ad])&&(_0x28d719=_0x37c8b3(_0x28d719)||_0x28d719);return _0x28d719;},N=(_0x1299cf,_0xe06621)=>(_0x4f6e81,_0xef8f7f)=>_0xe06621(_0x4f6e81,_0xef8f7f,_0x1299cf);const be=_0x2c37fe(0xa5);var C;exports['UniverEditHistoryLoaderPlugin']=(C=class extends o[_0x2c37fe(0x113)]{constructor(_0xd7198f=R,_0x1b3f8c,_0x88420c){const _0x4ffca9=_0x2c37fe;super(),this[_0x4ffca9(0x7c)]=_0xd7198f,this[_0x4ffca9(0x120)]=_0x1b3f8c,this['_configService']=_0x88420c;const {menu:_0x587eb8,..._0x4eee17}=o[_0x4ffca9(0x99)]({},R,this[_0x4ffca9(0x7c)]);_0x587eb8&&this['_configService'][_0x4ffca9(0x95)]('menu',_0x587eb8,{'merge':!0x0}),this[_0x4ffca9(0x84)][_0x4ffca9(0x95)](O,_0x4eee17),this['_config']['univerContainerId']&&this['_configService'][_0x4ffca9(0x95)](b,this[_0x4ffca9(0x7c)][_0x4ffca9(0x111)]);}[_0x2c37fe(0x15c)](){const _0x1d93d9=_0x2c37fe;[[exports['HistoryLoaderService']],[E]][_0x1d93d9(0x114)](_0x2bfa6b=>this[_0x1d93d9(0x120)][_0x1d93d9(0xaa)](_0x2bfa6b));}[_0x2c37fe(0x80)](){const _0x2aea47=_0x2c37fe;this[_0x2aea47(0x120)]['get'](E);}},_(C,'type',o[_0x2c37fe(0x93)]['UNIVER_UNKNOWN']),_(C,_0x2c37fe(0x13b),be),C),exports['UniverEditHistoryLoaderPlugin']=Pe([N(0x1,o[_0x2c37fe(0x128)](o[_0x2c37fe(0xee)])),N(0x2,o[_0x2c37fe(0xe5)])],exports[_0x2c37fe(0xa2)]),exports[_0x2c37fe(0x146)]=b,exports['UNIVER_HISTORY_CONTAINER_ID']=y;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x128524=_0x3d52;(function(_0x153c7c,_0x10728f){const _0x2d9b84=_0x3d52,_0x42830f=_0x153c7c();while(!![]){try{const _0x4d43c6=-parseInt(_0x2d9b84(0xeb))/0x1+-parseInt(_0x2d9b84(0x130))/0x2+-parseInt(_0x2d9b84(0xe3))/0x3+parseInt(_0x2d9b84(0x124))/0x4*(-parseInt(_0x2d9b84(0xfb))/0x5)+parseInt(_0x2d9b84(0x9b))/0x6+parseInt(_0x2d9b84(0xd9))/0x7+parseInt(_0x2d9b84(0x104))/0x8*(parseInt(_0x2d9b84(0xef))/0x9);if(_0x4d43c6===_0x10728f)break;else _0x42830f['push'](_0x42830f['shift']());}catch(_0x2e9dfb){_0x42830f['push'](_0x42830f['shift']());}}}(_0x34cc,0xe7887));var G=Object[_0x128524(0xba)],B=(_0x346e0c,_0x714ce9,_0x20a7b1)=>_0x714ce9 in _0x346e0c?G(_0x346e0c,_0x714ce9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20a7b1}):_0x346e0c[_0x714ce9]=_0x20a7b1,g=(_0x15994f,_0x1a1c99,_0xba2971)=>B(_0x15994f,typeof _0x1a1c99!=_0x128524(0xbc)?_0x1a1c99+'':_0x1a1c99,_0xba2971);import{Inject as _0x51d82c,LocaleService as _0x58f1e8,IUniverInstanceService as _0x27e838,IConfigService as _0x212553,ICommandService as _0x337e84,IPermissionService as _0x527019,ThemeService as _0x157874,Disposable as _0xa05ac9,DisposableCollection as _0x1d3afb,Univer as _0x197414,IAuthzIoService as _0x22a09d,CommandType as _0x304ff5,UniverInstanceType as _0xf64165,RxDisposable as _0x3fc3e3,toDisposable as _0x9317b9,Plugin as _0x1c50ef,merge as _0x3509ea,Injector as _0x563d50}from'@univerjs/core';import{UniverCollaborationPlugin as _0x3768ac,RevertRevisionMutation as _0x3624f6,CollaborationEvent as _0x5f2d40}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x36ecbd,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x209244,CollaborationController as _0x26eb2b,ILocalCacheService as _0x45e334,CollaborationStatus as _0x5590e5}from'@univerjs-pro/collaboration-client';import{MessageType as _0x5c72e8}from'@univerjs/design';import{useRef as _0x993e88,createElement as _0x5b1f76,forwardRef as _0x50cc20}from'react';function _0x34cc(){const _0x51b7a7=['history-icon_clip0_907_281','show','uComp','HistoryIcon','CHANGESET_ACK','url(#$1','toString','asObservable','onCommandExecuted','onStarting','setDarkMode','string','left','clear','_checkCanRevert','M0\x200H16V16H0z','UNIVER_SHEET','none','editHistory.panel.title','_initPlugins','clipPath','current','_historyManagerService','white','history-container','7609273RBEVEF','historyUniver','UNIVER_UNKNOWN','UNIVER_CONTAINER_ID','./worker.js','executeCommand','SYNCED','next','getSheetId','closeAll','3030453RZPKdW','includes','OPERATION','colorChannel1','editHistory.panel.reverting','Entered','_historyUniver$','onSteady','890924wsKHEt','from','registerCommand','univer-history-container','13328505JRBVST','getConfig','invoke','_injector','_sidebarService','mountHistoryContent','flat','getLocales','getUnit','session','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_pluginMap','10ReCHzQ','_disposableCollection','_init','eventID','historyListServerUrl','_config','__getInjector','editHistory.panel.revertFailed','_collaborationController','8zqJZfB','_themeService','univer-container','trim','displayName','1000','_menuManagerService','disposeWithMe','permissionId','state$','getAllPlugins','get','_revertErrorTimer','history-icon','add','fill','_univerInstanceService','univer.operation.toggle-edit-history','revertRevision$','OTHERS','zIndex','UniverIcon','pluginName','100%','getSubunitRuleList','length','defs','block','params','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','_commandService','map','1482736NqUomQ','mergeMenu','_selectionProtectionRuleModel','triggerLoadVersions','xlink:href','Loading','univerContainerId','_initListener','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','set','use','_messageService','1218440KCjJpI','height','1em','getCurrentLocale','getCollabEntity','Error','editHistory.panel.listFetchError','value','idSuffix','_permissionService','replace','top','subscribe','location','status','exhaustSavingTask','style','tag','_configService','_localCacheService','path','getOwnPropertyDescriptor','defIds','_dialogService','9792228LnUcrC','children','currentColor','edit-history-loader.config','dispose','http://www.w3.org/2000/svg','_initContainer','menu','mutations','substring','type','darkMode$','registerPlugin','register','\x20has\x20been\x20registered.','absolute','_componentManager','getSheets','display','0\x200\x2016\x2016','_localeService','_initUniver','unMountHistoryContent','mask','entries','unsubscribe','univerjs-icon\x20univerjs-icon-','attrs','forEach','historyUniver$','div','defineProperty','svg','symbol','url(#history-icon_clip0_907_281)','appendChild','every'];_0x34cc=function(){return _0x51b7a7;};return _0x34cc();}import{IMessageService as _0x37d45d,IDialogService as _0x4a2413,ISidebarService as _0x23c176,UniverUIPlugin as _0x22dcae,getMenuHiddenObservable as _0x5bed76,MenuItemType as _0x36a55c,RibbonStartGroup as _0x1fd957,IMenuManagerService as _0x83bca1,ComponentManager as _0x4a00b9}from'@univerjs/ui';import{BehaviorSubject as _0x56d00c,combineLatest as _0x1c3f4b}from'rxjs';import{RangeProtectionRuleModel as _0x1ffc66,UniverSheetsPlugin as _0x35fe38,WorkbookEditablePermission as _0x43136c,WorksheetEditPermission as _0x51dfd0,RangeProtectionPermissionEditPoint as _0x2908a4,WorkbookRecoverHistoryPermission as _0x3868f4,getSheetCommandTarget as _0x54c0e5,WorkbookViewHistoryPermission as _0x508d85}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x4ef452,HistoryManagerService as _0x4899a8,HistoryModeStatus as _0x450eed}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x499f7c,UniverLicensePlugin as _0x236114}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x484d01}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x1aa193}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x41c561}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3365a0}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x4626a0}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x231678}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x4f0ff2,IImageIoService as _0xb86313}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x26ff66}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x508206}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x4cce86}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x1ce794}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x16312e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0xc5db0f}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x1738fe}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x124077}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0xf4c8f0}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x578426}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1b6ea3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x5d6947}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x5112a9}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x4f4ac8}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x59a37d}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xccabad}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x32f9b4}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x7b97f}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x34f849,getCurrentRangeDisable$ as _0x7b2188}from'@univerjs/sheets-ui';const x=_0x128524(0x9e),w={};function A({ref:_0x45bf90,..._0x11afa4}){const _0x3043e7=_0x128524,{icon:_0x4466d2,id:_0x798905,className:_0x5525b3,extend:_0x1ebca6,..._0xda4056}=_0x11afa4,_0x1159ec=(_0x3043e7(0xb5)+_0x798905+'\x20'+(_0x5525b3||''))[_0x3043e7(0x107)](),_0x3fe1e4=_0x993e88('_'+si());return F(_0x4466d2,''+_0x798905,{'defIds':_0x4466d2[_0x3043e7(0x99)],'idSuffix':_0x3fe1e4[_0x3043e7(0xd5)]},{'ref':_0x45bf90,'className':_0x1159ec,..._0xda4056},_0x1ebca6);}function F(_0x36f67a,_0xe83f89,_0x5318fd,_0x68444d,_0x48b0c8){const _0x371e59=_0x128524;return _0x5b1f76(_0x36f67a['tag'],{'key':_0xe83f89,...ni(_0x36f67a,_0x5318fd,_0x48b0c8),..._0x68444d},(oi(_0x36f67a,_0x5318fd)[_0x371e59(0x9c)]||[])['map']((_0x569fdc,_0x43d8a2)=>F(_0x569fdc,_0xe83f89+'-'+_0x36f67a['tag']+'-'+_0x43d8a2,_0x5318fd,void 0x0,_0x48b0c8)));}function ni(_0x4de982,_0x451338,_0x4bfd4f){const _0x4f94d2=_0x128524,_0x26db07={..._0x4de982[_0x4f94d2(0xb6)]};_0x4bfd4f!=null&&_0x4bfd4f[_0x4f94d2(0xe6)]&&_0x26db07[_0x4f94d2(0x113)]===_0x4f94d2(0xe6)&&(_0x26db07[_0x4f94d2(0x113)]=_0x4bfd4f[_0x4f94d2(0xe6)]),_0x4de982[_0x4f94d2(0x94)]==='mask'&&_0x26db07['id']&&(_0x26db07['id']=_0x26db07['id']+_0x451338[_0x4f94d2(0x8b)]),Object[_0x4f94d2(0xb3)](_0x26db07)[_0x4f94d2(0xb7)](([_0x55ccef,_0x34d8d8])=>{const _0x2efb24=_0x4f94d2;_0x55ccef===_0x2efb24(0xb2)&&typeof _0x34d8d8==_0x2efb24(0xcb)&&(_0x26db07[_0x55ccef]=_0x34d8d8[_0x2efb24(0x8d)](/url\(#(.*)\)/,'url(#$1'+_0x451338[_0x2efb24(0x8b)]+')'));});const {defIds:_0x1cfc5d}=_0x451338;return!_0x1cfc5d||_0x1cfc5d[_0x4f94d2(0x11d)]===0x0||(_0x4de982['tag']===_0x4f94d2(0x12e)&&_0x26db07[_0x4f94d2(0x128)]&&(_0x26db07['xlink:href']=_0x26db07[_0x4f94d2(0x128)]+_0x451338[_0x4f94d2(0x8b)]),Object['entries'](_0x26db07)[_0x4f94d2(0xb7)](([_0x290638,_0x3fe437])=>{const _0x2cf4ca=_0x4f94d2;typeof _0x3fe437==_0x2cf4ca(0xcb)&&(_0x26db07[_0x290638]=_0x3fe437[_0x2cf4ca(0x8d)](/url\(#(.*)\)/,_0x2cf4ca(0xc5)+_0x451338['idSuffix']+')'));})),_0x26db07;}function oi(_0x1d46c3,_0x486e32){const _0x4dbc64=_0x128524;var _0x58f360;const {defIds:_0x2cf9ff}=_0x486e32;return!_0x2cf9ff||_0x2cf9ff[_0x4dbc64(0x11d)]===0x0?_0x1d46c3:_0x1d46c3[_0x4dbc64(0x94)]===_0x4dbc64(0x11e)&&((_0x58f360=_0x1d46c3[_0x4dbc64(0x9c)])!=null&&_0x58f360['length'])?{..._0x1d46c3,'children':_0x1d46c3[_0x4dbc64(0x9c)][_0x4dbc64(0x123)](_0x4ef989=>typeof _0x4ef989[_0x4dbc64(0xb6)]['id']==_0x4dbc64(0xcb)&&_0x2cf9ff&&_0x2cf9ff[_0x4dbc64(0xe4)](_0x4ef989[_0x4dbc64(0xb6)]['id'])?{..._0x4ef989,'attrs':{..._0x4ef989[_0x4dbc64(0xb6)],'id':_0x4ef989['attrs']['id']+_0x486e32[_0x4dbc64(0x8b)]}}:_0x4ef989)}:_0x1d46c3;}function si(){const _0x49c4aa=_0x128524;return Math['random']()[_0x49c4aa(0xc6)](0x24)[_0x49c4aa(0xa4)](0x2,0x8);}A[_0x128524(0x108)]=_0x128524(0x119);const ai={'tag':_0x128524(0xbb),'attrs':{'xmlns':_0x128524(0xa0),'fill':'none','viewBox':_0x128524(0xae),'width':_0x128524(0x132),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x128524(0x9d),'clipPath':_0x128524(0xbd)},'children':[{'tag':_0x128524(0x97),'attrs':{'d':_0x128524(0x121)}},{'tag':_0x128524(0x97),'attrs':{'d':_0x128524(0x12c)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x128524(0xd4),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x128524(0x97),'attrs':{'fill':_0x128524(0xd7),'d':_0x128524(0xcf)}}]}]}],'defIds':[_0x128524(0xc0)]},j=_0x50cc20(function(_0x1481e7,_0x20507e){const _0x212b2f=_0x128524;return _0x5b1f76(A,Object['assign']({},_0x1481e7,{'id':_0x212b2f(0x111),'ref':_0x20507e,'icon':ai}));});j[_0x128524(0x108)]=_0x128524(0xc3);var ci=Object[_0x128524(0x98)],li=(_0x159e8f,_0x318832,_0x28ff16,_0x4da244)=>{const _0x28efed=_0x128524;for(var _0x32fdd5=_0x4da244>0x1?void 0x0:_0x4da244?ci(_0x318832,_0x28ff16):_0x318832,_0x11bd75=_0x159e8f[_0x28efed(0x11d)]-0x1,_0x56168a;_0x11bd75>=0x0;_0x11bd75--)(_0x56168a=_0x159e8f[_0x11bd75])&&(_0x32fdd5=_0x56168a(_0x32fdd5)||_0x32fdd5);return _0x32fdd5;},l=(_0x187e88,_0x15c0ca)=>(_0x4ca4d3,_0x35d8e8)=>_0x15c0ca(_0x4ca4d3,_0x35d8e8,_0x187e88);const ui=_0x128524(0x106),V=_0x128524(0xdc),d=_0x128524(0xee);let f=class extends _0xa05ac9{constructor(_0x40078b,_0x3b920f,_0x45b194,_0x304336,_0x4fc86f,_0x481add,_0x4a8959,_0x48d92d,_0x3fb8bd,_0x30543c){const _0x990fe5=_0x128524;super(),g(this,_0x990fe5(0xe9),new _0x56d00c(null)),g(this,_0x990fe5(0xb8),this[_0x990fe5(0xe9)][_0x990fe5(0xc7)]()),g(this,'_disposableCollection',new _0x1d3afb()),g(this,_0x990fe5(0xfa),new Map()),(this[_0x990fe5(0xaf)]=_0x40078b,this[_0x990fe5(0x114)]=_0x3b920f,this[_0x990fe5(0x95)]=_0x45b194,this[_0x990fe5(0x122)]=_0x304336,this[_0x990fe5(0x12f)]=_0x4fc86f,this[_0x990fe5(0x8c)]=_0x481add,this[_0x990fe5(0x126)]=_0x4a8959,this[_0x990fe5(0x9a)]=_0x48d92d,this[_0x990fe5(0xf3)]=_0x3fb8bd,this[_0x990fe5(0x105)]=_0x30543c,this[_0x990fe5(0xfd)]());}get['historyUniver'](){const _0x4a764e=_0x128524;return this[_0x4a764e(0xe9)][_0x4a764e(0x8a)];}[_0x128524(0xfd)](){const _0x3fa4fd=_0x128524;this['_initContainer'](),this[_0x3fa4fd(0xd3)]();}[_0x128524(0xa1)](){const _0x47abcc=_0x128524;var _0x397d61;const _0x1a0e0f=(_0x397d61=this[_0x47abcc(0x95)][_0x47abcc(0xf0)](V))!=null?_0x397d61:ui,_0x4b8875=document['getElementById'](_0x1a0e0f);if(!_0x4b8875)return;const _0x366c81=document['createElement'](_0x47abcc(0xb9));_0x366c81['id']=d,_0x366c81['dataset'][_0x47abcc(0xc2)]=_0x47abcc(0xd8),_0x366c81['style']['position']=_0x47abcc(0xaa),_0x366c81[_0x47abcc(0x93)][_0x47abcc(0x8e)]='0',_0x366c81[_0x47abcc(0x93)][_0x47abcc(0xcc)]='0',_0x366c81[_0x47abcc(0x93)]['width']=_0x47abcc(0x11b),_0x366c81[_0x47abcc(0x93)][_0x47abcc(0x131)]=_0x47abcc(0x11b),_0x366c81['style'][_0x47abcc(0x118)]=_0x47abcc(0x109),_0x366c81['style'][_0x47abcc(0xad)]='none',_0x4b8875[_0x47abcc(0xbe)](_0x366c81);}['_initPlugins'](){const _0x2107c4=_0x128524;var _0x40b3d0;[[_0x4cce86],[_0x22dcae,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4a2413,null]]}],[_0x1ce794],[_0x4f0ff2,{'override':[[_0xb86313,null]]}],[_0x4626a0,{'hasScroll':!0x1}],[_0x231678],[_0x7b97f],[_0x35fe38,{'notExecuteFormula':!0x0}],[_0x34f849],[_0x4f4ac8],[_0x59a37d],[_0x3768ac],[_0x5d6947],[_0x5112a9],[_0xc5db0f],[_0x1738fe],[_0xccabad],[_0x32f9b4],[_0x3365a0],[_0x124077],[_0xf4c8f0],[_0x508206,{'notExecuteFormula':!0x0}],[_0x16312e,{'workerURL':_0x2107c4(0xdd)}],[_0x26ff66],[_0x578426],[_0x1b6ea3],[_0x1aa193],[_0x41c561],[_0x484d01,{'notExecuteFormula':!0x0}],[_0x4ef452,{'historyListServerUrl':(_0x40b3d0=this[_0x2107c4(0x95)][_0x2107c4(0xf0)](x))==null?void 0x0:_0x40b3d0[_0x2107c4(0xff)]}]]['forEach'](([_0x4d5635,_0x43b726])=>this['registerPlugin'](_0x4d5635,_0x43b726));}[_0x128524(0x9f)](){const _0x58aed1=_0x128524;super['dispose'](),this[_0x58aed1(0xb1)](),this[_0x58aed1(0xfa)][_0x58aed1(0xcd)]();}[_0x128524(0xa7)](_0x1b4818,_0x2aeac8,_0x15c740){const _0x1f4b8f=_0x128524;if(this[_0x1f4b8f(0xfa)]['has'](_0x1b4818['pluginName'])&&!_0x15c740)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1b4818[_0x1f4b8f(0x11a)]+_0x1f4b8f(0xa9));this[_0x1f4b8f(0xfa)][_0x1f4b8f(0x12d)](_0x1b4818['pluginName'],[_0x1b4818,_0x2aeac8]);}[_0x128524(0x10e)](){const _0x3e0728=_0x128524;return Array[_0x3e0728(0xec)](this[_0x3e0728(0xfa)]['values']());}[_0x128524(0xf4)](_0x1245e0){const _0x30a948=_0x128524,_0x461f70=document['getElementById'](d);_0x461f70&&(_0x461f70[_0x30a948(0x93)][_0x30a948(0xad)]=_0x30a948(0x11f),this[_0x30a948(0xb0)](_0x1245e0,d));}[_0x128524(0xb1)](){const _0x1609f7=_0x128524;var _0x1215d5;this['_disposableCollection'][_0x1609f7(0x9f)](),(_0x1215d5=this[_0x1609f7(0xda)])==null||_0x1215d5[_0x1609f7(0x9f)](),this['_historyUniver$']['next'](null);const _0x1917f4=document['getElementById'](d);_0x1917f4&&(_0x1917f4[_0x1609f7(0x93)]['display']=_0x1609f7(0xd1));}[_0x128524(0xb0)](_0x3a4458,_0x5a58e8){const _0x32958d=_0x128524;if(this[_0x32958d(0xda)])return;const _0x5ed5a1=new _0x197414({'locales':{[this[_0x32958d(0xaf)][_0x32958d(0x86)]()]:this[_0x32958d(0xaf)][_0x32958d(0xf6)]()},'override':[[_0x22a09d,{'useClass':_0x36ecbd}]]}),_0x11ad81=_0x5ed5a1[_0x32958d(0x101)]();this[_0x32958d(0x10b)](this[_0x32958d(0x105)][_0x32958d(0xa6)][_0x32958d(0x8f)](_0x3405af=>{const _0x420c08=_0x32958d;_0x11ad81[_0x420c08(0x10f)](_0x157874)[_0x420c08(0xca)](_0x3405af);})),this[_0x32958d(0x10b)](this[_0x32958d(0x105)]['currentTheme$'][_0x32958d(0x8f)](_0x1cc73e=>{const _0x5520ea=_0x32958d;_0x11ad81[_0x5520ea(0x10f)](_0x157874)['setTheme'](_0x1cc73e);})),_0x11ad81[_0x32958d(0x10f)](_0x58f1e8)['setLocale'](this[_0x32958d(0xaf)][_0x32958d(0x86)]()),_0x11ad81[_0x32958d(0x10f)](_0x212553)['setConfig'](_0x209244,this[_0x32958d(0x95)][_0x32958d(0xf0)](_0x209244));const _0x470c86=this[_0x32958d(0x95)]['getConfig'](_0x499f7c);_0x470c86&&_0x5ed5a1[_0x32958d(0xa7)](_0x236114,{'license':_0x470c86['ls']}),this['_pluginMap']['forEach'](([_0x1d0401,_0xd0fb8e])=>{const _0x18ec09=_0x32958d;_0x5ed5a1[_0x18ec09(0xa7)](_0x1d0401,_0xd0fb8e);}),_0x11ad81[_0x32958d(0xf1)](_0x4631fc=>{const _0x15df93=_0x32958d;this[_0x15df93(0x12b)](_0x4631fc,_0x3a4458);}),this[_0x32958d(0xe9)][_0x32958d(0xe0)](_0x5ed5a1);const _0x56c255=_0x11ad81[_0x32958d(0x10f)](_0x4899a8),_0x46bca5=this[_0x32958d(0xce)](_0x3a4458);_0x56c255[_0x32958d(0x127)](_0x3a4458,_0x5a58e8,_0x46bca5);}[_0x128524(0x12b)](_0x107084,_0x57d235){const _0x43e3a2=_0x128524,_0x53ce04=_0x107084[_0x43e3a2(0x10f)](_0x4899a8);this['_disposableCollection'][_0x43e3a2(0x112)](_0x53ce04['status$'][_0x43e3a2(0x8f)](_0xd04b9=>{const _0x4e8ba6=_0x43e3a2;switch(_0xd04b9){case _0x450eed[_0x4e8ba6(0xe8)]:this[_0x4e8ba6(0x9a)][_0x4e8ba6(0xe2)](),this['_sidebarService']['close']();break;case _0x450eed['Exited']:this['unMountHistoryContent']();break;case _0x450eed[_0x4e8ba6(0x88)]:this['unMountHistoryContent'](),this['_messageService'][_0x4e8ba6(0xc1)]({'content':this[_0x4e8ba6(0xaf)]['t'](_0x4e8ba6(0x89)),'type':_0x5c72e8[_0x4e8ba6(0x88)],'duration':0xbb8});break;}})),this[_0x43e3a2(0xfc)][_0x43e3a2(0x112)](_0x53ce04[_0x43e3a2(0x116)][_0x43e3a2(0x8f)](async _0x3ae051=>{const _0x4c70da=_0x43e3a2;_0x3ae051&&this[_0x4c70da(0x122)][_0x4c70da(0xde)](_0x3624f6['id'],{'unitId':_0x57d235,'revision':_0x3ae051});}));}['_checkCanRevert'](_0x1fc379){const _0x484fd4=_0x128524,_0x535991=this[_0x484fd4(0x114)][_0x484fd4(0xf7)](_0x1fc379)[_0x484fd4(0xac)]()[_0x484fd4(0x123)](_0x1b3cf5=>_0x1b3cf5[_0x484fd4(0xe1)]()),_0x5678c3=new _0x43136c(_0x1fc379)['id'],_0x251814=_0x535991[_0x484fd4(0x123)](_0x1a4ed3=>new _0x51dfd0(_0x1fc379,_0x1a4ed3)['id']),_0x5b210a=_0x535991['map'](_0x40ac72=>this[_0x484fd4(0x126)][_0x484fd4(0x11c)](_0x1fc379,_0x40ac72)[_0x484fd4(0x123)](_0x5b0210=>new _0x2908a4(_0x1fc379,_0x40ac72,_0x5b0210[_0x484fd4(0x10c)])['id']))[_0x484fd4(0xf5)](),_0x57660d=new _0x3868f4(_0x1fc379)['id'];return this['_permissionService']['composePermission']([_0x5678c3,..._0x251814,..._0x5b210a,_0x57660d])[_0x484fd4(0xbf)](_0x32ed3b=>!!_0x32ed3b[_0x484fd4(0x8a)]);}};f=li([l(0x0,_0x51d82c(_0x58f1e8)),l(0x1,_0x27e838),l(0x2,_0x212553),l(0x3,_0x337e84),l(0x4,_0x37d45d),l(0x5,_0x527019),l(0x6,_0x51d82c(_0x1ffc66)),l(0x7,_0x51d82c(_0x4a2413)),l(0x8,_0x51d82c(_0x23c176)),l(0x9,_0x51d82c(_0x157874))],f);const b={'id':_0x128524(0x115),'type':_0x304ff5[_0x128524(0xe5)],'handler':_0x201862=>{const _0x1d72ad=_0x128524,_0x1ac437=_0x201862[_0x1d72ad(0x10f)](f),_0xcac0cf=_0x201862[_0x1d72ad(0x10f)](_0x27e838),{unitId:_0x2690dd}=_0x54c0e5(_0xcac0cf)||{};return _0x2690dd?(_0x1ac437[_0x1d72ad(0xf4)](_0x2690dd),!0x0):!0x1;}};function _0x3d52(_0x1aefc3,_0x1f80b8){const _0x34cc7f=_0x34cc();return _0x3d52=function(_0x3d52e8,_0x4a6f70){_0x3d52e8=_0x3d52e8-0x86;let _0x4e0f32=_0x34cc7f[_0x3d52e8];return _0x4e0f32;},_0x3d52(_0x1aefc3,_0x1f80b8);}function hi(_0x4a2c72){const _0xd9e29d=_0x128524;return{'id':b['id'],'type':_0x36a55c['BUTTON'],'icon':_0xd9e29d(0xc3),'tooltip':_0xd9e29d(0xd2),'hidden$':_0x5bed76(_0x4a2c72,_0xf64165[_0xd9e29d(0xd0)]),'disabled$':_0x7b2188(_0x4a2c72,{'workbookTypes':[_0x43136c,_0x508d85],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x1fd957[_0x128524(0x117)]]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x128524(0x98)],vi=(_0x43fb66,_0x2d37e4,_0x1d867c,_0x3c0efe)=>{const _0x237f72=_0x128524;for(var _0x2573fa=_0x3c0efe>0x1?void 0x0:_0x3c0efe?mi(_0x2d37e4,_0x1d867c):_0x2d37e4,_0x474b6a=_0x43fb66[_0x237f72(0x11d)]-0x1,_0x3e6579;_0x474b6a>=0x0;_0x474b6a--)(_0x3e6579=_0x43fb66[_0x474b6a])&&(_0x2573fa=_0x3e6579(_0x2573fa)||_0x2573fa);return _0x2573fa;},m=(_0x393294,_0x463216)=>(_0x58c19a,_0x1d3bf3)=>_0x463216(_0x58c19a,_0x1d3bf3,_0x393294);let p=class extends _0x3fc3e3{constructor(_0x237020,_0x3fc3ca,_0x929169,_0x1d31ca,_0x5e5672,_0x234f3d,_0x5a1638,_0x18fa5a){const _0x5e9afe=_0x128524;super(),g(this,_0x5e9afe(0x110),null),(this[_0x5e9afe(0x122)]=_0x237020,this[_0x5e9afe(0x10a)]=_0x3fc3ca,this[_0x5e9afe(0xab)]=_0x929169,this['_historyManagerService']=_0x1d31ca,this[_0x5e9afe(0xaf)]=_0x5e5672,this[_0x5e9afe(0x12f)]=_0x234f3d,this[_0x5e9afe(0x103)]=_0x5a1638,this[_0x5e9afe(0x96)]=_0x18fa5a,this[_0x5e9afe(0xfd)]());}[_0x128524(0xfd)](){const _0x37cf51=_0x128524;[b][_0x37cf51(0xb7)](_0x104e00=>this['disposeWithMe'](_0x9317b9(this[_0x37cf51(0x122)][_0x37cf51(0xed)](_0x104e00)))),this[_0x37cf51(0x10b)](this[_0x37cf51(0xab)][_0x37cf51(0xa8)](_0x37cf51(0xc3),j)),this[_0x37cf51(0x10a)][_0x37cf51(0x125)](gi),this[_0x37cf51(0x10b)](this[_0x37cf51(0x122)][_0x37cf51(0xc8)](_0x416c1c=>{const _0x18cb48=_0x37cf51;if(_0x416c1c['id']===_0x3624f6['id']){this['_messageService'][_0x18cb48(0xc1)]({'content':this[_0x18cb48(0xaf)]['t'](_0x18cb48(0xe7)),'type':_0x5c72e8[_0x18cb48(0x129)],'duration':0x1388});const {unitId:_0xf1ba6}=_0x416c1c[_0x18cb48(0x120)],_0x505a19=this[_0x18cb48(0x103)][_0x18cb48(0x87)](_0xf1ba6),_0x3749d4=_0x1c3f4b([_0x505a19[_0x18cb48(0xf8)]['event$'],_0x505a19[_0x18cb48(0x10d)]])[_0x18cb48(0x8f)](async([_0x3b2430,_0x1c5230])=>{const _0x12a0f9=_0x18cb48;var _0x2d95d8;_0x3b2430[_0x12a0f9(0xfe)]===_0x5f2d40[_0x12a0f9(0xc4)]&&(_0x1c5230==null?void 0x0:_0x1c5230[_0x12a0f9(0x91)])===_0x5590e5[_0x12a0f9(0xdf)]&&_0x3b2430['data'][_0x12a0f9(0xa3)]['some'](_0x31d1bc=>_0x31d1bc['id']===_0x3624f6['id'])&&(this[_0x12a0f9(0xd6)][_0x12a0f9(0xb1)](),_0x3749d4[_0x12a0f9(0xb4)](),this[_0x12a0f9(0x110)]&&clearTimeout(this[_0x12a0f9(0x110)]),await((_0x2d95d8=this[_0x12a0f9(0x96)])==null?void 0x0:_0x2d95d8[_0x12a0f9(0x92)]()),setTimeout(()=>window[_0x12a0f9(0x90)]['reload']()));});this[_0x18cb48(0x110)]=setTimeout(()=>{const _0x513249=_0x18cb48;_0x3749d4[_0x513249(0xb4)](),this[_0x513249(0x12f)][_0x513249(0xc1)]({'content':this[_0x513249(0xaf)]['t'](_0x513249(0x102)),'type':_0x5c72e8[_0x513249(0x88)],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x337e84),m(0x1,_0x83bca1),m(0x2,_0x51d82c(_0x4a00b9)),m(0x3,_0x51d82c(f)),m(0x4,_0x51d82c(_0x58f1e8)),m(0x5,_0x37d45d),m(0x6,_0x51d82c(_0x26eb2b)),m(0x7,_0x45e334)],p);var di=Object[_0x128524(0x98)],fi=(_0x50a48e,_0xbe2df3,_0x22bafa,_0x4f5881)=>{const _0x5cef0a=_0x128524;for(var _0x4b85df=_0x4f5881>0x1?void 0x0:_0x4f5881?di(_0xbe2df3,_0x22bafa):_0xbe2df3,_0x1e86f7=_0x50a48e[_0x5cef0a(0x11d)]-0x1,_0xa9fd03;_0x1e86f7>=0x0;_0x1e86f7--)(_0xa9fd03=_0x50a48e[_0x1e86f7])&&(_0x4b85df=_0xa9fd03(_0x4b85df)||_0x4b85df);return _0x4b85df;},R=(_0x42d4bc,_0x30c871)=>(_0x49b90e,_0x3efd25)=>_0x30c871(_0x49b90e,_0x3efd25,_0x42d4bc);const _i=_0x128524(0xf9);var _;let N=(_=class extends _0x1c50ef{constructor(_0xbb47ab=w,_0x2366e2,_0x2ebde3){const _0x5667ca=_0x128524;super(),this[_0x5667ca(0x100)]=_0xbb47ab,this[_0x5667ca(0xf2)]=_0x2366e2,this[_0x5667ca(0x95)]=_0x2ebde3;const {menu:_0x44d538,..._0x3a3fc0}=_0x3509ea({},w,this[_0x5667ca(0x100)]);_0x44d538&&this['_configService']['setConfig'](_0x5667ca(0xa2),_0x44d538,{'merge':!0x0}),this[_0x5667ca(0x95)]['setConfig'](x,_0x3a3fc0),this[_0x5667ca(0x100)][_0x5667ca(0x12a)]&&this['_configService']['setConfig'](V,this['_config'][_0x5667ca(0x12a)]);}[_0x128524(0xc9)](){const _0x12ceb8=_0x128524;[[f],[p]][_0x12ceb8(0xb7)](_0x19e345=>this[_0x12ceb8(0xf2)][_0x12ceb8(0x112)](_0x19e345));}[_0x128524(0xea)](){const _0x235478=_0x128524;this['_injector'][_0x235478(0x10f)](p);}},g(_,_0x128524(0xa5),_0xf64165[_0x128524(0xdb)]),g(_,_0x128524(0x11a),_i),_);N=fi([R(0x1,_0x51d82c(_0x563d50)),R(0x2,_0x212553)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
1
+ function _0x31aa(_0x2fd4fc,_0x553682){_0x2fd4fc=_0x2fd4fc-0x1d5;const _0x53624e=_0x5362();let _0x31aad7=_0x53624e[_0x2fd4fc];return _0x31aad7;}const _0x2db0f7=_0x31aa;(function(_0x2367dd,_0x139e89){const _0x31e4eb=_0x31aa,_0xa15bbf=_0x2367dd();while(!![]){try{const _0x338174=-parseInt(_0x31e4eb(0x1f0))/0x1*(parseInt(_0x31e4eb(0x241))/0x2)+-parseInt(_0x31e4eb(0x1dd))/0x3*(parseInt(_0x31e4eb(0x212))/0x4)+-parseInt(_0x31e4eb(0x226))/0x5+-parseInt(_0x31e4eb(0x268))/0x6*(parseInt(_0x31e4eb(0x1df))/0x7)+-parseInt(_0x31e4eb(0x252))/0x8+parseInt(_0x31e4eb(0x246))/0x9*(-parseInt(_0x31e4eb(0x22b))/0xa)+-parseInt(_0x31e4eb(0x24f))/0xb*(-parseInt(_0x31e4eb(0x238))/0xc);if(_0x338174===_0x139e89)break;else _0xa15bbf['push'](_0xa15bbf['shift']());}catch(_0x4a74ea){_0xa15bbf['push'](_0xa15bbf['shift']());}}}(_0x5362,0xd0334));function _0x5362(){const _0x4e53ce=['UNIVER_UNKNOWN','location','substring','OPERATION','forEach','historyUniver','style','assign','_localCacheService','exhaustSavingTask','54108PVpXmu','toString','M0\x200H16V16H0z','_config','random','history-icon_clip0_907_281','history-icon','onStarting','setConfig','2ukTrff','historyListServerUrl','show','_initUniver','path','2486142BYyKws','registerCommand','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','register','replace','getSubunitRuleList','display','univer-history-container','div','11869pjxgba','event$','getAllPlugins','3353272LxzMhV','editHistory.panel.revertFailed','svg','_permissionService','createElement','tag','type','url(#history-icon_clip0_907_281)','top','__getInjector','editHistory.panel.listFetchError','registerPlugin','_menuManagerService','trim','left','next','1000','Loading','_init','currentTheme$','has','_dialogService','8415834OYeDLd','asObservable','_collaborationController','subscribe','invoke','absolute','OTHERS','mountHistoryContent','_initContainer','getOwnPropertyDescriptor','mergeMenu','mask','getUnit','none','univerContainerId','editHistory.panel.title','closeAll','string','set','UNIVER_CONTAINER_ID','_messageService','length','status$','setDarkMode','attrs','editHistory.panel.reverting','state$','status','univerjs-icon\x20univerjs-icon-','dispose','zIndex','getCollabEntity','displayName','3BjaEkk','Error','7CmgIeJ','includes','_selectionProtectionRuleModel','_themeService','_sidebarService','getConfig','_disposableCollection','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','value','setLocale','dataset','mutations','unsubscribe','fill','getCurrentLocale','_localeService','some','404593psfswo','values','close','data','_configService','_injector','map','_pluginMap','UNIVER_SHEET','history-container','100%','entries','_revertErrorTimer','unMountHistoryContent','reload','session','univer.operation.toggle-edit-history','get','HistoryIcon','idSuffix','\x20has\x20been\x20registered.','CHANGESET_ACK','currentColor','SYNCED','url(#$1','getElementById','height','_checkCanRevert','eventID','_univerInstanceService','pluginName','xlink:href','onCommandExecuted','colorChannel1','1595740GFZibp','1em','_initListener','_historyUniver$','disposeWithMe','defIds','_componentManager','darkMode$','permissionId','Exited','width','setTheme','composePermission','getLocales','children','flat','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','_historyManagerService','onSteady','add','2791915KElAcJ','clipPath','clear','http://www.w3.org/2000/svg','_commandService','30PtBzIw','edit-history-loader.config','0\x200\x2016\x2016'];_0x5362=function(){return _0x4e53ce;};return _0x5362();}var G=Object['defineProperty'],B=(_0x1acb5a,_0x372dac,_0x49c4d9)=>_0x372dac in _0x1acb5a?G(_0x1acb5a,_0x372dac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49c4d9}):_0x1acb5a[_0x372dac]=_0x49c4d9,g=(_0x2fe2fa,_0x56c420,_0xea2a3e)=>B(_0x2fe2fa,typeof _0x56c420!='symbol'?_0x56c420+'':_0x56c420,_0xea2a3e);import{Inject as _0x21b45d,LocaleService as _0x368e92,IUniverInstanceService as _0xdf5baf,IConfigService as _0x335e48,ICommandService as _0x32b4ba,IPermissionService as _0x1c5b74,ThemeService as _0x5bb364,Disposable as _0x15f9bb,DisposableCollection as _0x56663f,Univer as _0x577e42,IAuthzIoService as _0x945c03,CommandType as _0x129f65,UniverInstanceType as _0x5aebf6,RxDisposable as _0x518e69,toDisposable as _0x579c2d,Plugin as _0x3c5c5b,merge as _0x291300,Injector as _0x3cc0a6}from'@univerjs/core';import{UniverCollaborationPlugin as _0x2e819d,RevertRevisionMutation as _0x11d831,CollaborationEvent as _0x561da0}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x31ffaf,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x583645,CollaborationController as _0xd62969,ILocalCacheService as _0x3bee7c,CollaborationStatus as _0x4d5511}from'@univerjs-pro/collaboration-client';import{MessageType as _0x12c38f}from'@univerjs/design';import{useRef as _0x1f19a6,createElement as _0x221eaf,forwardRef as _0x946c4e}from'react';import{IMessageService as _0x5343e4,IDialogService as _0x5387ff,ISidebarService as _0x45d122,UniverUIPlugin as _0xc43ff6,getMenuHiddenObservable as _0x3323dd,MenuItemType as _0x211562,RibbonStartGroup as _0x471df4,IMenuManagerService as _0x458da5,ComponentManager as _0x236294}from'@univerjs/ui';import{BehaviorSubject as _0x5ad379,combineLatest as _0x840415}from'rxjs';import{RangeProtectionRuleModel as _0x5aed72,UniverSheetsPlugin as _0x54080a,WorkbookEditablePermission as _0x1459ec,WorksheetEditPermission as _0xb351dc,RangeProtectionPermissionEditPoint as _0x2bede3,WorkbookRecoverHistoryPermission as _0x29921b,getSheetCommandTarget as _0x25ce28,WorkbookViewHistoryPermission as _0x4abcf9}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x4f35b2,HistoryManagerService as _0x3c2597,HistoryModeStatus as _0x42760a}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x114302,UniverLicensePlugin as _0x1b30a5}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x8c0e5d}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x218af7}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x21a4e0}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x26f54b}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x3b9d9d}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x2c67b9}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x3ed651}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x3dd627}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0xf21ae,IImageIoService as _0x5239ce}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x3c18c0}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x5d0a51}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x48f299}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x49f5e6}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x42dbfb}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x3f0aeb}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x34a522}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x418d2c}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x81d315}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x83a463}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0xcdbfd1}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x42d867}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x5ed04d}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x3847bb}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x5c5426}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xcc5f13}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x432264}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x291c8a}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x510c8e,getCurrentRangeDisable$ as _0x53d413}from'@univerjs/sheets-ui';const x=_0x2db0f7(0x22c),w={};function A({ref:_0x5cc039,..._0x1372eb}){const _0x2e6d3f=_0x2db0f7,{icon:_0xcda0e2,id:_0x14810e,className:_0x1157ad,extend:_0x48bfa9,..._0x271f1b}=_0x1372eb,_0x255746=(_0x2e6d3f(0x1d8)+_0x14810e+'\x20'+(_0x1157ad||''))[_0x2e6d3f(0x25f)](),_0x5954d3=_0x1f19a6('_'+ci());return F(_0xcda0e2,''+_0x14810e,{'defIds':_0xcda0e2[_0x2e6d3f(0x217)],'idSuffix':_0x5954d3['current']},{'ref':_0x5cc039,'className':_0x255746,..._0x271f1b},_0x48bfa9);}function F(_0x5349df,_0x17615d,_0x416d90,_0x39b4b4,_0x4b3cb6){const _0x2c84d0=_0x2db0f7;return _0x221eaf(_0x5349df[_0x2c84d0(0x257)],{'key':_0x17615d,...si(_0x5349df,_0x416d90,_0x4b3cb6),..._0x39b4b4},(ai(_0x5349df,_0x416d90)[_0x2c84d0(0x220)]||[])[_0x2c84d0(0x1f6)]((_0x3e0010,_0x3152e9)=>F(_0x3e0010,_0x17615d+'-'+_0x5349df[_0x2c84d0(0x257)]+'-'+_0x3152e9,_0x416d90,void 0x0,_0x4b3cb6)));}function si(_0x1abbc7,_0x2e6db7,_0x7be053){const _0x228623=_0x2db0f7,_0x49047f={..._0x1abbc7['attrs']};_0x7be053!=null&&_0x7be053[_0x228623(0x211)]&&_0x49047f[_0x228623(0x1ec)]===_0x228623(0x211)&&(_0x49047f[_0x228623(0x1ec)]=_0x7be053[_0x228623(0x211)]),_0x1abbc7[_0x228623(0x257)]===_0x228623(0x273)&&_0x49047f['id']&&(_0x49047f['id']=_0x49047f['id']+_0x2e6db7[_0x228623(0x203)]),Object[_0x228623(0x1fb)](_0x49047f)[_0x228623(0x232)](([_0x40e8b3,_0x507f6d])=>{const _0x53a722=_0x228623;_0x40e8b3==='mask'&&typeof _0x507f6d==_0x53a722(0x279)&&(_0x49047f[_0x40e8b3]=_0x507f6d[_0x53a722(0x24a)](/url\(#(.*)\)/,_0x53a722(0x208)+_0x2e6db7[_0x53a722(0x203)]+')'));});const {defIds:_0x196246}=_0x2e6db7;return!_0x196246||_0x196246[_0x228623(0x27d)]===0x0||(_0x1abbc7[_0x228623(0x257)]==='use'&&_0x49047f['xlink:href']&&(_0x49047f[_0x228623(0x20f)]=_0x49047f[_0x228623(0x20f)]+_0x2e6db7[_0x228623(0x203)]),Object[_0x228623(0x1fb)](_0x49047f)[_0x228623(0x232)](([_0x48083d,_0x13584b])=>{const _0x59297b=_0x228623;typeof _0x13584b=='string'&&(_0x49047f[_0x48083d]=_0x13584b[_0x59297b(0x24a)](/url\(#(.*)\)/,'url(#$1'+_0x2e6db7[_0x59297b(0x203)]+')'));})),_0x49047f;}function ai(_0x4e0960,_0x41729b){const _0x4cec6a=_0x2db0f7;var _0x2f6c31;const {defIds:_0x5621f5}=_0x41729b;return!_0x5621f5||_0x5621f5[_0x4cec6a(0x27d)]===0x0?_0x4e0960:_0x4e0960[_0x4cec6a(0x257)]==='defs'&&((_0x2f6c31=_0x4e0960[_0x4cec6a(0x220)])!=null&&_0x2f6c31[_0x4cec6a(0x27d)])?{..._0x4e0960,'children':_0x4e0960[_0x4cec6a(0x220)]['map'](_0x301e45=>typeof _0x301e45[_0x4cec6a(0x280)]['id']==_0x4cec6a(0x279)&&_0x5621f5&&_0x5621f5[_0x4cec6a(0x1e0)](_0x301e45[_0x4cec6a(0x280)]['id'])?{..._0x301e45,'attrs':{..._0x301e45['attrs'],'id':_0x301e45[_0x4cec6a(0x280)]['id']+_0x41729b[_0x4cec6a(0x203)]}}:_0x301e45)}:_0x4e0960;}function ci(){const _0x554779=_0x2db0f7;return Math[_0x554779(0x23c)]()[_0x554779(0x239)](0x24)[_0x554779(0x230)](0x2,0x8);}A[_0x2db0f7(0x1dc)]='UniverIcon';const li={'tag':_0x2db0f7(0x254),'attrs':{'xmlns':_0x2db0f7(0x229),'fill':'none','viewBox':_0x2db0f7(0x22d),'width':_0x2db0f7(0x213),'height':_0x2db0f7(0x213)},'children':[{'tag':'g','attrs':{'fill':_0x2db0f7(0x206),'clipPath':_0x2db0f7(0x259)},'children':[{'tag':'path','attrs':{'d':_0x2db0f7(0x248)}},{'tag':_0x2db0f7(0x245),'attrs':{'d':_0x2db0f7(0x222)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2db0f7(0x227),'attrs':{'id':_0x2db0f7(0x23d)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2db0f7(0x23a)}}]}]}],'defIds':[_0x2db0f7(0x23d)]},j=_0x946c4e(function(_0x2a5a9f,_0x4f8617){const _0x3b3aca=_0x2db0f7;return _0x221eaf(A,Object[_0x3b3aca(0x235)]({},_0x2a5a9f,{'id':_0x3b3aca(0x23e),'ref':_0x4f8617,'icon':li}));});j['displayName']=_0x2db0f7(0x202);var ui=Object[_0x2db0f7(0x271)],hi=(_0x59acec,_0x1cd3ab,_0x216253,_0x4166c5)=>{for(var _0x2ebb68=_0x4166c5>0x1?void 0x0:_0x4166c5?ui(_0x1cd3ab,_0x216253):_0x1cd3ab,_0x25b2f4=_0x59acec['length']-0x1,_0x1c0ee6;_0x25b2f4>=0x0;_0x25b2f4--)(_0x1c0ee6=_0x59acec[_0x25b2f4])&&(_0x2ebb68=_0x1c0ee6(_0x2ebb68)||_0x2ebb68);return _0x2ebb68;},l=(_0xf09bcd,_0x10f3e7)=>(_0x22cfaa,_0x12d083)=>_0x10f3e7(_0x22cfaa,_0x12d083,_0xf09bcd);const gi='univer-container',V=_0x2db0f7(0x27b),d=_0x2db0f7(0x24d);let f=class extends _0x15f9bb{constructor(_0x19f8bd,_0xe6b160,_0x29bc2b,_0x4cce94,_0xd63260,_0x31d5e5,_0x3969ff,_0x32e3b0,_0x3fe687,_0x395700){const _0x28f39d=_0x2db0f7;super(),g(this,'_historyUniver$',new _0x5ad379(null)),g(this,'historyUniver$',this['_historyUniver$'][_0x28f39d(0x269)]()),g(this,_0x28f39d(0x1e5),new _0x56663f()),g(this,_0x28f39d(0x1f7),new Map()),(this[_0x28f39d(0x1ee)]=_0x19f8bd,this[_0x28f39d(0x20d)]=_0xe6b160,this[_0x28f39d(0x1f4)]=_0x29bc2b,this['_commandService']=_0x4cce94,this['_messageService']=_0xd63260,this['_permissionService']=_0x31d5e5,this[_0x28f39d(0x1e1)]=_0x3969ff,this[_0x28f39d(0x267)]=_0x32e3b0,this[_0x28f39d(0x1e3)]=_0x3fe687,this['_themeService']=_0x395700,this[_0x28f39d(0x264)]());}get['historyUniver'](){const _0x37df9b=_0x2db0f7;return this[_0x37df9b(0x215)][_0x37df9b(0x1e7)];}['_init'](){const _0x3050eb=_0x2db0f7;this[_0x3050eb(0x270)](),this['_initPlugins']();}[_0x2db0f7(0x270)](){const _0x3f209f=_0x2db0f7;var _0x99c00a;const _0x295192=(_0x99c00a=this['_configService']['getConfig'](V))!=null?_0x99c00a:gi,_0x5565e3=document[_0x3f209f(0x209)](_0x295192);if(!_0x5565e3)return;const _0x1e830e=document[_0x3f209f(0x256)](_0x3f209f(0x24e));_0x1e830e['id']=d,_0x1e830e[_0x3f209f(0x1e9)]['uComp']=_0x3f209f(0x1f9),_0x1e830e[_0x3f209f(0x234)]['position']=_0x3f209f(0x26d),_0x1e830e['style'][_0x3f209f(0x25a)]='0',_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x260)]='0',_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x21c)]='100%',_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x20a)]=_0x3f209f(0x1fa),_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x1da)]=_0x3f209f(0x262),_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x24c)]='none',_0x5565e3['appendChild'](_0x1e830e);}['_initPlugins'](){const _0x1bce23=_0x2db0f7;var _0x581e40;[[_0x48f299],[_0xc43ff6,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5387ff,null]]}],[_0x49f5e6],[_0xf21ae,{'override':[[_0x5239ce,null]]}],[_0x3ed651,{'hasScroll':!0x1}],[_0x3dd627],[_0x291c8a],[_0x54080a,{'notExecuteFormula':!0x0}],[_0x510c8e],[_0x3847bb],[_0x5c5426],[_0x2e819d],[_0x42d867],[_0x5ed04d],[_0x3f0aeb],[_0x34a522],[_0xcc5f13],[_0x432264],[_0x2c67b9],[_0x418d2c],[_0x81d315],[_0x5d0a51,{'notExecuteFormula':!0x0}],[_0x42dbfb,{'workerURL':'./worker.js'}],[_0x3c18c0],[_0x83a463],[_0xcdbfd1],[_0x26f54b],[_0x3b9d9d],[_0x8c0e5d],[_0x218af7],[_0x21a4e0,{'notExecuteFormula':!0x0}],[_0x4f35b2,{'historyListServerUrl':(_0x581e40=this[_0x1bce23(0x1f4)][_0x1bce23(0x1e4)](x))==null?void 0x0:_0x581e40[_0x1bce23(0x242)]}]]['forEach'](([_0x447fb8,_0x76ed2])=>this[_0x1bce23(0x25d)](_0x447fb8,_0x76ed2));}['dispose'](){const _0x1e5a1d=_0x2db0f7;super[_0x1e5a1d(0x1d9)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x1e5a1d(0x228)]();}['registerPlugin'](_0x3e6ca1,_0x27c848,_0x233776){const _0x4343be=_0x2db0f7;if(this[_0x4343be(0x1f7)][_0x4343be(0x266)](_0x3e6ca1[_0x4343be(0x20e)])&&!_0x233776)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x3e6ca1[_0x4343be(0x20e)]+_0x4343be(0x204));this[_0x4343be(0x1f7)][_0x4343be(0x27a)](_0x3e6ca1['pluginName'],[_0x3e6ca1,_0x27c848]);}[_0x2db0f7(0x251)](){const _0x270e6e=_0x2db0f7;return Array['from'](this['_pluginMap'][_0x270e6e(0x1f1)]());}[_0x2db0f7(0x26f)](_0x49061c){const _0x4d3ddc=_0x2db0f7,_0x14d5bd=document[_0x4d3ddc(0x209)](d);_0x14d5bd&&(_0x14d5bd[_0x4d3ddc(0x234)]['display']='block',this[_0x4d3ddc(0x244)](_0x49061c,d));}[_0x2db0f7(0x1fd)](){const _0x3be624=_0x2db0f7;var _0x379d6a;this[_0x3be624(0x1e5)]['dispose'](),(_0x379d6a=this[_0x3be624(0x233)])==null||_0x379d6a[_0x3be624(0x1d9)](),this['_historyUniver$'][_0x3be624(0x261)](null);const _0x4d619a=document[_0x3be624(0x209)](d);_0x4d619a&&(_0x4d619a[_0x3be624(0x234)][_0x3be624(0x24c)]=_0x3be624(0x275));}[_0x2db0f7(0x244)](_0x2c115b,_0x4765af){const _0x5eead0=_0x2db0f7;if(this[_0x5eead0(0x233)])return;const _0x278a81=new _0x577e42({'locales':{[this[_0x5eead0(0x1ee)][_0x5eead0(0x1ed)]()]:this[_0x5eead0(0x1ee)][_0x5eead0(0x21f)]()},'override':[[_0x945c03,{'useClass':_0x31ffaf}]]}),_0x1dc7df=_0x278a81[_0x5eead0(0x25b)]();this['disposeWithMe'](this[_0x5eead0(0x1e2)][_0x5eead0(0x219)]['subscribe'](_0x24cc6f=>{const _0x4a21a5=_0x5eead0;_0x1dc7df['get'](_0x5bb364)[_0x4a21a5(0x27f)](_0x24cc6f);})),this['disposeWithMe'](this['_themeService'][_0x5eead0(0x265)][_0x5eead0(0x26b)](_0x4cb370=>{const _0x1ff60d=_0x5eead0;_0x1dc7df['get'](_0x5bb364)[_0x1ff60d(0x21d)](_0x4cb370);})),_0x1dc7df[_0x5eead0(0x201)](_0x368e92)[_0x5eead0(0x1e8)](this[_0x5eead0(0x1ee)]['getCurrentLocale']()),_0x1dc7df[_0x5eead0(0x201)](_0x335e48)[_0x5eead0(0x240)](_0x583645,this[_0x5eead0(0x1f4)]['getConfig'](_0x583645));const _0x10a7f8=this[_0x5eead0(0x1f4)][_0x5eead0(0x1e4)](_0x114302);_0x10a7f8&&_0x278a81[_0x5eead0(0x25d)](_0x1b30a5,{'license':_0x10a7f8['ls']}),this['_pluginMap'][_0x5eead0(0x232)](([_0x54fa75,_0x405360])=>{const _0x20c6df=_0x5eead0;_0x278a81[_0x20c6df(0x25d)](_0x54fa75,_0x405360);}),_0x1dc7df[_0x5eead0(0x26c)](_0x39915c=>{const _0x3191a5=_0x5eead0;this[_0x3191a5(0x214)](_0x39915c,_0x2c115b);}),this[_0x5eead0(0x215)][_0x5eead0(0x261)](_0x278a81);const _0x12266c=_0x1dc7df[_0x5eead0(0x201)](_0x3c2597),_0x1ba5d0=this[_0x5eead0(0x20b)](_0x2c115b);_0x12266c['triggerLoadVersions'](_0x2c115b,_0x4765af,_0x1ba5d0);}[_0x2db0f7(0x214)](_0x1c75ad,_0x59b564){const _0x5d6739=_0x2db0f7,_0x609079=_0x1c75ad[_0x5d6739(0x201)](_0x3c2597);this['_disposableCollection'][_0x5d6739(0x225)](_0x609079[_0x5d6739(0x27e)]['subscribe'](_0x4301d5=>{const _0x561ecf=_0x5d6739;switch(_0x4301d5){case _0x42760a['Entered']:this[_0x561ecf(0x267)][_0x561ecf(0x278)](),this['_sidebarService'][_0x561ecf(0x1f2)]();break;case _0x42760a[_0x561ecf(0x21b)]:this[_0x561ecf(0x1fd)]();break;case _0x42760a['Error']:this['unMountHistoryContent'](),this[_0x561ecf(0x27c)][_0x561ecf(0x243)]({'content':this[_0x561ecf(0x1ee)]['t'](_0x561ecf(0x25c)),'type':_0x12c38f[_0x561ecf(0x1de)],'duration':0xbb8});break;}})),this[_0x5d6739(0x1e5)][_0x5d6739(0x225)](_0x609079['revertRevision$'][_0x5d6739(0x26b)](async _0x31ba44=>{const _0x17e752=_0x5d6739;_0x31ba44&&this[_0x17e752(0x22a)]['executeCommand'](_0x11d831['id'],{'unitId':_0x59b564,'revision':_0x31ba44});}));}['_checkCanRevert'](_0x52100e){const _0x5598a4=_0x2db0f7,_0x329c25=this[_0x5598a4(0x20d)][_0x5598a4(0x274)](_0x52100e)['getSheets']()[_0x5598a4(0x1f6)](_0x3e3486=>_0x3e3486['getSheetId']()),_0x3765b7=new _0x1459ec(_0x52100e)['id'],_0x4b16e9=_0x329c25[_0x5598a4(0x1f6)](_0x4260d2=>new _0xb351dc(_0x52100e,_0x4260d2)['id']),_0x332cdd=_0x329c25[_0x5598a4(0x1f6)](_0x174c78=>this[_0x5598a4(0x1e1)][_0x5598a4(0x24b)](_0x52100e,_0x174c78)['map'](_0x4da009=>new _0x2bede3(_0x52100e,_0x174c78,_0x4da009[_0x5598a4(0x21a)])['id']))[_0x5598a4(0x221)](),_0x26c1c4=new _0x29921b(_0x52100e)['id'];return this[_0x5598a4(0x255)][_0x5598a4(0x21e)]([_0x3765b7,..._0x4b16e9,..._0x332cdd,_0x26c1c4])['every'](_0x25ec29=>!!_0x25ec29['value']);}};f=hi([l(0x0,_0x21b45d(_0x368e92)),l(0x1,_0xdf5baf),l(0x2,_0x335e48),l(0x3,_0x32b4ba),l(0x4,_0x5343e4),l(0x5,_0x1c5b74),l(0x6,_0x21b45d(_0x5aed72)),l(0x7,_0x21b45d(_0x5387ff)),l(0x8,_0x21b45d(_0x45d122)),l(0x9,_0x21b45d(_0x5bb364))],f);const b={'id':_0x2db0f7(0x200),'type':_0x129f65[_0x2db0f7(0x231)],'handler':_0x50d3bc=>{const _0x56ac88=_0x2db0f7,_0x4d2209=_0x50d3bc[_0x56ac88(0x201)](f),_0x2406ee=_0x50d3bc[_0x56ac88(0x201)](_0xdf5baf),{unitId:_0x5d4d3a}=_0x25ce28(_0x2406ee)||{};return _0x5d4d3a?(_0x4d2209['mountHistoryContent'](_0x5d4d3a),!0x0):!0x1;}};function mi(_0x4f8835){const _0x3b7e4b=_0x2db0f7;return{'id':b['id'],'type':_0x211562['BUTTON'],'icon':_0x3b7e4b(0x202),'tooltip':_0x3b7e4b(0x277),'hidden$':_0x3323dd(_0x4f8835,_0x5aebf6[_0x3b7e4b(0x1f8)]),'disabled$':_0x53d413(_0x4f8835,{'workbookTypes':[_0x1459ec,_0x4abcf9],'worksheetTypes':[],'rangeTypes':[]})};}const vi={[_0x471df4[_0x2db0f7(0x26e)]]:{[b['id']]:{'order':0.2,'menuItemFactory':mi}}};var di=Object[_0x2db0f7(0x271)],fi=(_0x30081c,_0x1f8744,_0x18c2ec,_0x4063dd)=>{const _0x2eade5=_0x2db0f7;for(var _0x51c49f=_0x4063dd>0x1?void 0x0:_0x4063dd?di(_0x1f8744,_0x18c2ec):_0x1f8744,_0x4127a7=_0x30081c[_0x2eade5(0x27d)]-0x1,_0x1a1342;_0x4127a7>=0x0;_0x4127a7--)(_0x1a1342=_0x30081c[_0x4127a7])&&(_0x51c49f=_0x1a1342(_0x51c49f)||_0x51c49f);return _0x51c49f;},m=(_0x258d9d,_0x59fd7c)=>(_0x5c6f26,_0x54f9c7)=>_0x59fd7c(_0x5c6f26,_0x54f9c7,_0x258d9d);let p=class extends _0x518e69{constructor(_0x24b4f6,_0x233dc2,_0x24c4ca,_0x4bb263,_0x539635,_0x524ab2,_0x172802,_0x2eb9d3){const _0x4e5b55=_0x2db0f7;super(),g(this,_0x4e5b55(0x1fc),null),(this[_0x4e5b55(0x22a)]=_0x24b4f6,this['_menuManagerService']=_0x233dc2,this[_0x4e5b55(0x218)]=_0x24c4ca,this[_0x4e5b55(0x223)]=_0x4bb263,this[_0x4e5b55(0x1ee)]=_0x539635,this[_0x4e5b55(0x27c)]=_0x524ab2,this[_0x4e5b55(0x26a)]=_0x172802,this['_localCacheService']=_0x2eb9d3,this['_init']());}[_0x2db0f7(0x264)](){const _0x3e11b8=_0x2db0f7;[b][_0x3e11b8(0x232)](_0x5bc1a7=>this[_0x3e11b8(0x216)](_0x579c2d(this[_0x3e11b8(0x22a)][_0x3e11b8(0x247)](_0x5bc1a7)))),this['disposeWithMe'](this['_componentManager'][_0x3e11b8(0x249)]('HistoryIcon',j)),this[_0x3e11b8(0x25e)][_0x3e11b8(0x272)](vi),this[_0x3e11b8(0x216)](this['_commandService'][_0x3e11b8(0x210)](_0x24ffd9=>{const _0x24c852=_0x3e11b8;if(_0x24ffd9['id']===_0x11d831['id']){this[_0x24c852(0x27c)][_0x24c852(0x243)]({'content':this[_0x24c852(0x1ee)]['t'](_0x24c852(0x1d5)),'type':_0x12c38f[_0x24c852(0x263)],'duration':0x1388});const {unitId:_0x4a41bb}=_0x24ffd9['params'],_0xd2afd5=this[_0x24c852(0x26a)][_0x24c852(0x1db)](_0x4a41bb),_0x121baf=_0x840415([_0xd2afd5[_0x24c852(0x1ff)][_0x24c852(0x250)],_0xd2afd5[_0x24c852(0x1d6)]])[_0x24c852(0x26b)](async([_0x5a5b7a,_0x3172c0])=>{const _0x3650d7=_0x24c852;var _0xd3afb1;_0x5a5b7a[_0x3650d7(0x20c)]===_0x561da0[_0x3650d7(0x205)]&&(_0x3172c0==null?void 0x0:_0x3172c0[_0x3650d7(0x1d7)])===_0x4d5511[_0x3650d7(0x207)]&&_0x5a5b7a[_0x3650d7(0x1f3)][_0x3650d7(0x1ea)][_0x3650d7(0x1ef)](_0x29e18c=>_0x29e18c['id']===_0x11d831['id'])&&(this[_0x3650d7(0x223)][_0x3650d7(0x1fd)](),_0x121baf[_0x3650d7(0x1eb)](),this['_revertErrorTimer']&&clearTimeout(this[_0x3650d7(0x1fc)]),await((_0xd3afb1=this[_0x3650d7(0x236)])==null?void 0x0:_0xd3afb1[_0x3650d7(0x237)]()),setTimeout(()=>window[_0x3650d7(0x22f)][_0x3650d7(0x1fe)]()));});this[_0x24c852(0x1fc)]=setTimeout(()=>{const _0x585119=_0x24c852;_0x121baf[_0x585119(0x1eb)](),this[_0x585119(0x27c)]['show']({'content':this[_0x585119(0x1ee)]['t'](_0x585119(0x253)),'type':_0x12c38f[_0x585119(0x1de)],'duration':0xbb8});},0x1388);}}));}};p=fi([m(0x0,_0x32b4ba),m(0x1,_0x458da5),m(0x2,_0x21b45d(_0x236294)),m(0x3,_0x21b45d(f)),m(0x4,_0x21b45d(_0x368e92)),m(0x5,_0x5343e4),m(0x6,_0x21b45d(_0xd62969)),m(0x7,_0x3bee7c)],p);var _i=Object['getOwnPropertyDescriptor'],pi=(_0x1c4a1d,_0x571258,_0x747dd7,_0x289278)=>{const _0x184615=_0x2db0f7;for(var _0x12bb04=_0x289278>0x1?void 0x0:_0x289278?_i(_0x571258,_0x747dd7):_0x571258,_0x3a96a3=_0x1c4a1d[_0x184615(0x27d)]-0x1,_0xb98179;_0x3a96a3>=0x0;_0x3a96a3--)(_0xb98179=_0x1c4a1d[_0x3a96a3])&&(_0x12bb04=_0xb98179(_0x12bb04)||_0x12bb04);return _0x12bb04;},R=(_0x14cb27,_0x12218e)=>(_0x334ec7,_0x5d9ca3)=>_0x12218e(_0x334ec7,_0x5d9ca3,_0x14cb27);const Si=_0x2db0f7(0x1e6);var _;let N=(_=class extends _0x3c5c5b{constructor(_0x3730f6=w,_0x439ccb,_0x3440c7){const _0x2fedc6=_0x2db0f7;super(),this[_0x2fedc6(0x23b)]=_0x3730f6,this['_injector']=_0x439ccb,this[_0x2fedc6(0x1f4)]=_0x3440c7;const {menu:_0x44579c,..._0x2814de}=_0x291300({},w,this[_0x2fedc6(0x23b)]);_0x44579c&&this['_configService']['setConfig']('menu',_0x44579c,{'merge':!0x0}),this[_0x2fedc6(0x1f4)][_0x2fedc6(0x240)](x,_0x2814de),this[_0x2fedc6(0x23b)][_0x2fedc6(0x276)]&&this[_0x2fedc6(0x1f4)][_0x2fedc6(0x240)](V,this[_0x2fedc6(0x23b)][_0x2fedc6(0x276)]);}[_0x2db0f7(0x23f)](){const _0x495fb4=_0x2db0f7;[[f],[p]][_0x495fb4(0x232)](_0x5d72a6=>this[_0x495fb4(0x1f5)][_0x495fb4(0x225)](_0x5d72a6));}[_0x2db0f7(0x224)](){const _0x5d5b26=_0x2db0f7;this[_0x5d5b26(0x1f5)][_0x5d5b26(0x201)](p);}},g(_,_0x2db0f7(0x258),_0x5aebf6[_0x2db0f7(0x22e)]),g(_,_0x2db0f7(0x20e),Si),_);N=pi([R(0x1,_0x21b45d(_0x3cc0a6)),R(0x2,_0x335e48)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x128524=_0x3d52;(function(_0x153c7c,_0x10728f){const _0x2d9b84=_0x3d52,_0x42830f=_0x153c7c();while(!![]){try{const _0x4d43c6=-parseInt(_0x2d9b84(0xeb))/0x1+-parseInt(_0x2d9b84(0x130))/0x2+-parseInt(_0x2d9b84(0xe3))/0x3+parseInt(_0x2d9b84(0x124))/0x4*(-parseInt(_0x2d9b84(0xfb))/0x5)+parseInt(_0x2d9b84(0x9b))/0x6+parseInt(_0x2d9b84(0xd9))/0x7+parseInt(_0x2d9b84(0x104))/0x8*(parseInt(_0x2d9b84(0xef))/0x9);if(_0x4d43c6===_0x10728f)break;else _0x42830f['push'](_0x42830f['shift']());}catch(_0x2e9dfb){_0x42830f['push'](_0x42830f['shift']());}}}(_0x34cc,0xe7887));var G=Object[_0x128524(0xba)],B=(_0x346e0c,_0x714ce9,_0x20a7b1)=>_0x714ce9 in _0x346e0c?G(_0x346e0c,_0x714ce9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20a7b1}):_0x346e0c[_0x714ce9]=_0x20a7b1,g=(_0x15994f,_0x1a1c99,_0xba2971)=>B(_0x15994f,typeof _0x1a1c99!=_0x128524(0xbc)?_0x1a1c99+'':_0x1a1c99,_0xba2971);import{Inject as _0x51d82c,LocaleService as _0x58f1e8,IUniverInstanceService as _0x27e838,IConfigService as _0x212553,ICommandService as _0x337e84,IPermissionService as _0x527019,ThemeService as _0x157874,Disposable as _0xa05ac9,DisposableCollection as _0x1d3afb,Univer as _0x197414,IAuthzIoService as _0x22a09d,CommandType as _0x304ff5,UniverInstanceType as _0xf64165,RxDisposable as _0x3fc3e3,toDisposable as _0x9317b9,Plugin as _0x1c50ef,merge as _0x3509ea,Injector as _0x563d50}from'@univerjs/core';import{UniverCollaborationPlugin as _0x3768ac,RevertRevisionMutation as _0x3624f6,CollaborationEvent as _0x5f2d40}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x36ecbd,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x209244,CollaborationController as _0x26eb2b,ILocalCacheService as _0x45e334,CollaborationStatus as _0x5590e5}from'@univerjs-pro/collaboration-client';import{MessageType as _0x5c72e8}from'@univerjs/design';import{useRef as _0x993e88,createElement as _0x5b1f76,forwardRef as _0x50cc20}from'react';function _0x34cc(){const _0x51b7a7=['history-icon_clip0_907_281','show','uComp','HistoryIcon','CHANGESET_ACK','url(#$1','toString','asObservable','onCommandExecuted','onStarting','setDarkMode','string','left','clear','_checkCanRevert','M0\x200H16V16H0z','UNIVER_SHEET','none','editHistory.panel.title','_initPlugins','clipPath','current','_historyManagerService','white','history-container','7609273RBEVEF','historyUniver','UNIVER_UNKNOWN','UNIVER_CONTAINER_ID','./worker.js','executeCommand','SYNCED','next','getSheetId','closeAll','3030453RZPKdW','includes','OPERATION','colorChannel1','editHistory.panel.reverting','Entered','_historyUniver$','onSteady','890924wsKHEt','from','registerCommand','univer-history-container','13328505JRBVST','getConfig','invoke','_injector','_sidebarService','mountHistoryContent','flat','getLocales','getUnit','session','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_pluginMap','10ReCHzQ','_disposableCollection','_init','eventID','historyListServerUrl','_config','__getInjector','editHistory.panel.revertFailed','_collaborationController','8zqJZfB','_themeService','univer-container','trim','displayName','1000','_menuManagerService','disposeWithMe','permissionId','state$','getAllPlugins','get','_revertErrorTimer','history-icon','add','fill','_univerInstanceService','univer.operation.toggle-edit-history','revertRevision$','OTHERS','zIndex','UniverIcon','pluginName','100%','getSubunitRuleList','length','defs','block','params','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','_commandService','map','1482736NqUomQ','mergeMenu','_selectionProtectionRuleModel','triggerLoadVersions','xlink:href','Loading','univerContainerId','_initListener','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','set','use','_messageService','1218440KCjJpI','height','1em','getCurrentLocale','getCollabEntity','Error','editHistory.panel.listFetchError','value','idSuffix','_permissionService','replace','top','subscribe','location','status','exhaustSavingTask','style','tag','_configService','_localCacheService','path','getOwnPropertyDescriptor','defIds','_dialogService','9792228LnUcrC','children','currentColor','edit-history-loader.config','dispose','http://www.w3.org/2000/svg','_initContainer','menu','mutations','substring','type','darkMode$','registerPlugin','register','\x20has\x20been\x20registered.','absolute','_componentManager','getSheets','display','0\x200\x2016\x2016','_localeService','_initUniver','unMountHistoryContent','mask','entries','unsubscribe','univerjs-icon\x20univerjs-icon-','attrs','forEach','historyUniver$','div','defineProperty','svg','symbol','url(#history-icon_clip0_907_281)','appendChild','every'];_0x34cc=function(){return _0x51b7a7;};return _0x34cc();}import{IMessageService as _0x37d45d,IDialogService as _0x4a2413,ISidebarService as _0x23c176,UniverUIPlugin as _0x22dcae,getMenuHiddenObservable as _0x5bed76,MenuItemType as _0x36a55c,RibbonStartGroup as _0x1fd957,IMenuManagerService as _0x83bca1,ComponentManager as _0x4a00b9}from'@univerjs/ui';import{BehaviorSubject as _0x56d00c,combineLatest as _0x1c3f4b}from'rxjs';import{RangeProtectionRuleModel as _0x1ffc66,UniverSheetsPlugin as _0x35fe38,WorkbookEditablePermission as _0x43136c,WorksheetEditPermission as _0x51dfd0,RangeProtectionPermissionEditPoint as _0x2908a4,WorkbookRecoverHistoryPermission as _0x3868f4,getSheetCommandTarget as _0x54c0e5,WorkbookViewHistoryPermission as _0x508d85}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x4ef452,HistoryManagerService as _0x4899a8,HistoryModeStatus as _0x450eed}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x499f7c,UniverLicensePlugin as _0x236114}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x484d01}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x1aa193}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x41c561}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3365a0}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x4626a0}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x231678}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x4f0ff2,IImageIoService as _0xb86313}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x26ff66}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x508206}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x4cce86}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x1ce794}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x16312e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0xc5db0f}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x1738fe}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x124077}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0xf4c8f0}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x578426}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1b6ea3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x5d6947}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x5112a9}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x4f4ac8}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x59a37d}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xccabad}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x32f9b4}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x7b97f}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x34f849,getCurrentRangeDisable$ as _0x7b2188}from'@univerjs/sheets-ui';const x=_0x128524(0x9e),w={};function A({ref:_0x45bf90,..._0x11afa4}){const _0x3043e7=_0x128524,{icon:_0x4466d2,id:_0x798905,className:_0x5525b3,extend:_0x1ebca6,..._0xda4056}=_0x11afa4,_0x1159ec=(_0x3043e7(0xb5)+_0x798905+'\x20'+(_0x5525b3||''))[_0x3043e7(0x107)](),_0x3fe1e4=_0x993e88('_'+si());return F(_0x4466d2,''+_0x798905,{'defIds':_0x4466d2[_0x3043e7(0x99)],'idSuffix':_0x3fe1e4[_0x3043e7(0xd5)]},{'ref':_0x45bf90,'className':_0x1159ec,..._0xda4056},_0x1ebca6);}function F(_0x36f67a,_0xe83f89,_0x5318fd,_0x68444d,_0x48b0c8){const _0x371e59=_0x128524;return _0x5b1f76(_0x36f67a['tag'],{'key':_0xe83f89,...ni(_0x36f67a,_0x5318fd,_0x48b0c8),..._0x68444d},(oi(_0x36f67a,_0x5318fd)[_0x371e59(0x9c)]||[])['map']((_0x569fdc,_0x43d8a2)=>F(_0x569fdc,_0xe83f89+'-'+_0x36f67a['tag']+'-'+_0x43d8a2,_0x5318fd,void 0x0,_0x48b0c8)));}function ni(_0x4de982,_0x451338,_0x4bfd4f){const _0x4f94d2=_0x128524,_0x26db07={..._0x4de982[_0x4f94d2(0xb6)]};_0x4bfd4f!=null&&_0x4bfd4f[_0x4f94d2(0xe6)]&&_0x26db07[_0x4f94d2(0x113)]===_0x4f94d2(0xe6)&&(_0x26db07[_0x4f94d2(0x113)]=_0x4bfd4f[_0x4f94d2(0xe6)]),_0x4de982[_0x4f94d2(0x94)]==='mask'&&_0x26db07['id']&&(_0x26db07['id']=_0x26db07['id']+_0x451338[_0x4f94d2(0x8b)]),Object[_0x4f94d2(0xb3)](_0x26db07)[_0x4f94d2(0xb7)](([_0x55ccef,_0x34d8d8])=>{const _0x2efb24=_0x4f94d2;_0x55ccef===_0x2efb24(0xb2)&&typeof _0x34d8d8==_0x2efb24(0xcb)&&(_0x26db07[_0x55ccef]=_0x34d8d8[_0x2efb24(0x8d)](/url\(#(.*)\)/,'url(#$1'+_0x451338[_0x2efb24(0x8b)]+')'));});const {defIds:_0x1cfc5d}=_0x451338;return!_0x1cfc5d||_0x1cfc5d[_0x4f94d2(0x11d)]===0x0||(_0x4de982['tag']===_0x4f94d2(0x12e)&&_0x26db07[_0x4f94d2(0x128)]&&(_0x26db07['xlink:href']=_0x26db07[_0x4f94d2(0x128)]+_0x451338[_0x4f94d2(0x8b)]),Object['entries'](_0x26db07)[_0x4f94d2(0xb7)](([_0x290638,_0x3fe437])=>{const _0x2cf4ca=_0x4f94d2;typeof _0x3fe437==_0x2cf4ca(0xcb)&&(_0x26db07[_0x290638]=_0x3fe437[_0x2cf4ca(0x8d)](/url\(#(.*)\)/,_0x2cf4ca(0xc5)+_0x451338['idSuffix']+')'));})),_0x26db07;}function oi(_0x1d46c3,_0x486e32){const _0x4dbc64=_0x128524;var _0x58f360;const {defIds:_0x2cf9ff}=_0x486e32;return!_0x2cf9ff||_0x2cf9ff[_0x4dbc64(0x11d)]===0x0?_0x1d46c3:_0x1d46c3[_0x4dbc64(0x94)]===_0x4dbc64(0x11e)&&((_0x58f360=_0x1d46c3[_0x4dbc64(0x9c)])!=null&&_0x58f360['length'])?{..._0x1d46c3,'children':_0x1d46c3[_0x4dbc64(0x9c)][_0x4dbc64(0x123)](_0x4ef989=>typeof _0x4ef989[_0x4dbc64(0xb6)]['id']==_0x4dbc64(0xcb)&&_0x2cf9ff&&_0x2cf9ff[_0x4dbc64(0xe4)](_0x4ef989[_0x4dbc64(0xb6)]['id'])?{..._0x4ef989,'attrs':{..._0x4ef989[_0x4dbc64(0xb6)],'id':_0x4ef989['attrs']['id']+_0x486e32[_0x4dbc64(0x8b)]}}:_0x4ef989)}:_0x1d46c3;}function si(){const _0x49c4aa=_0x128524;return Math['random']()[_0x49c4aa(0xc6)](0x24)[_0x49c4aa(0xa4)](0x2,0x8);}A[_0x128524(0x108)]=_0x128524(0x119);const ai={'tag':_0x128524(0xbb),'attrs':{'xmlns':_0x128524(0xa0),'fill':'none','viewBox':_0x128524(0xae),'width':_0x128524(0x132),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x128524(0x9d),'clipPath':_0x128524(0xbd)},'children':[{'tag':_0x128524(0x97),'attrs':{'d':_0x128524(0x121)}},{'tag':_0x128524(0x97),'attrs':{'d':_0x128524(0x12c)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x128524(0xd4),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x128524(0x97),'attrs':{'fill':_0x128524(0xd7),'d':_0x128524(0xcf)}}]}]}],'defIds':[_0x128524(0xc0)]},j=_0x50cc20(function(_0x1481e7,_0x20507e){const _0x212b2f=_0x128524;return _0x5b1f76(A,Object['assign']({},_0x1481e7,{'id':_0x212b2f(0x111),'ref':_0x20507e,'icon':ai}));});j[_0x128524(0x108)]=_0x128524(0xc3);var ci=Object[_0x128524(0x98)],li=(_0x159e8f,_0x318832,_0x28ff16,_0x4da244)=>{const _0x28efed=_0x128524;for(var _0x32fdd5=_0x4da244>0x1?void 0x0:_0x4da244?ci(_0x318832,_0x28ff16):_0x318832,_0x11bd75=_0x159e8f[_0x28efed(0x11d)]-0x1,_0x56168a;_0x11bd75>=0x0;_0x11bd75--)(_0x56168a=_0x159e8f[_0x11bd75])&&(_0x32fdd5=_0x56168a(_0x32fdd5)||_0x32fdd5);return _0x32fdd5;},l=(_0x187e88,_0x15c0ca)=>(_0x4ca4d3,_0x35d8e8)=>_0x15c0ca(_0x4ca4d3,_0x35d8e8,_0x187e88);const ui=_0x128524(0x106),V=_0x128524(0xdc),d=_0x128524(0xee);let f=class extends _0xa05ac9{constructor(_0x40078b,_0x3b920f,_0x45b194,_0x304336,_0x4fc86f,_0x481add,_0x4a8959,_0x48d92d,_0x3fb8bd,_0x30543c){const _0x990fe5=_0x128524;super(),g(this,_0x990fe5(0xe9),new _0x56d00c(null)),g(this,_0x990fe5(0xb8),this[_0x990fe5(0xe9)][_0x990fe5(0xc7)]()),g(this,'_disposableCollection',new _0x1d3afb()),g(this,_0x990fe5(0xfa),new Map()),(this[_0x990fe5(0xaf)]=_0x40078b,this[_0x990fe5(0x114)]=_0x3b920f,this[_0x990fe5(0x95)]=_0x45b194,this[_0x990fe5(0x122)]=_0x304336,this[_0x990fe5(0x12f)]=_0x4fc86f,this[_0x990fe5(0x8c)]=_0x481add,this[_0x990fe5(0x126)]=_0x4a8959,this[_0x990fe5(0x9a)]=_0x48d92d,this[_0x990fe5(0xf3)]=_0x3fb8bd,this[_0x990fe5(0x105)]=_0x30543c,this[_0x990fe5(0xfd)]());}get['historyUniver'](){const _0x4a764e=_0x128524;return this[_0x4a764e(0xe9)][_0x4a764e(0x8a)];}[_0x128524(0xfd)](){const _0x3fa4fd=_0x128524;this['_initContainer'](),this[_0x3fa4fd(0xd3)]();}[_0x128524(0xa1)](){const _0x47abcc=_0x128524;var _0x397d61;const _0x1a0e0f=(_0x397d61=this[_0x47abcc(0x95)][_0x47abcc(0xf0)](V))!=null?_0x397d61:ui,_0x4b8875=document['getElementById'](_0x1a0e0f);if(!_0x4b8875)return;const _0x366c81=document['createElement'](_0x47abcc(0xb9));_0x366c81['id']=d,_0x366c81['dataset'][_0x47abcc(0xc2)]=_0x47abcc(0xd8),_0x366c81['style']['position']=_0x47abcc(0xaa),_0x366c81[_0x47abcc(0x93)][_0x47abcc(0x8e)]='0',_0x366c81[_0x47abcc(0x93)][_0x47abcc(0xcc)]='0',_0x366c81[_0x47abcc(0x93)]['width']=_0x47abcc(0x11b),_0x366c81[_0x47abcc(0x93)][_0x47abcc(0x131)]=_0x47abcc(0x11b),_0x366c81['style'][_0x47abcc(0x118)]=_0x47abcc(0x109),_0x366c81['style'][_0x47abcc(0xad)]='none',_0x4b8875[_0x47abcc(0xbe)](_0x366c81);}['_initPlugins'](){const _0x2107c4=_0x128524;var _0x40b3d0;[[_0x4cce86],[_0x22dcae,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4a2413,null]]}],[_0x1ce794],[_0x4f0ff2,{'override':[[_0xb86313,null]]}],[_0x4626a0,{'hasScroll':!0x1}],[_0x231678],[_0x7b97f],[_0x35fe38,{'notExecuteFormula':!0x0}],[_0x34f849],[_0x4f4ac8],[_0x59a37d],[_0x3768ac],[_0x5d6947],[_0x5112a9],[_0xc5db0f],[_0x1738fe],[_0xccabad],[_0x32f9b4],[_0x3365a0],[_0x124077],[_0xf4c8f0],[_0x508206,{'notExecuteFormula':!0x0}],[_0x16312e,{'workerURL':_0x2107c4(0xdd)}],[_0x26ff66],[_0x578426],[_0x1b6ea3],[_0x1aa193],[_0x41c561],[_0x484d01,{'notExecuteFormula':!0x0}],[_0x4ef452,{'historyListServerUrl':(_0x40b3d0=this[_0x2107c4(0x95)][_0x2107c4(0xf0)](x))==null?void 0x0:_0x40b3d0[_0x2107c4(0xff)]}]]['forEach'](([_0x4d5635,_0x43b726])=>this['registerPlugin'](_0x4d5635,_0x43b726));}[_0x128524(0x9f)](){const _0x58aed1=_0x128524;super['dispose'](),this[_0x58aed1(0xb1)](),this[_0x58aed1(0xfa)][_0x58aed1(0xcd)]();}[_0x128524(0xa7)](_0x1b4818,_0x2aeac8,_0x15c740){const _0x1f4b8f=_0x128524;if(this[_0x1f4b8f(0xfa)]['has'](_0x1b4818['pluginName'])&&!_0x15c740)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1b4818[_0x1f4b8f(0x11a)]+_0x1f4b8f(0xa9));this[_0x1f4b8f(0xfa)][_0x1f4b8f(0x12d)](_0x1b4818['pluginName'],[_0x1b4818,_0x2aeac8]);}[_0x128524(0x10e)](){const _0x3e0728=_0x128524;return Array[_0x3e0728(0xec)](this[_0x3e0728(0xfa)]['values']());}[_0x128524(0xf4)](_0x1245e0){const _0x30a948=_0x128524,_0x461f70=document['getElementById'](d);_0x461f70&&(_0x461f70[_0x30a948(0x93)][_0x30a948(0xad)]=_0x30a948(0x11f),this[_0x30a948(0xb0)](_0x1245e0,d));}[_0x128524(0xb1)](){const _0x1609f7=_0x128524;var _0x1215d5;this['_disposableCollection'][_0x1609f7(0x9f)](),(_0x1215d5=this[_0x1609f7(0xda)])==null||_0x1215d5[_0x1609f7(0x9f)](),this['_historyUniver$']['next'](null);const _0x1917f4=document['getElementById'](d);_0x1917f4&&(_0x1917f4[_0x1609f7(0x93)]['display']=_0x1609f7(0xd1));}[_0x128524(0xb0)](_0x3a4458,_0x5a58e8){const _0x32958d=_0x128524;if(this[_0x32958d(0xda)])return;const _0x5ed5a1=new _0x197414({'locales':{[this[_0x32958d(0xaf)][_0x32958d(0x86)]()]:this[_0x32958d(0xaf)][_0x32958d(0xf6)]()},'override':[[_0x22a09d,{'useClass':_0x36ecbd}]]}),_0x11ad81=_0x5ed5a1[_0x32958d(0x101)]();this[_0x32958d(0x10b)](this[_0x32958d(0x105)][_0x32958d(0xa6)][_0x32958d(0x8f)](_0x3405af=>{const _0x420c08=_0x32958d;_0x11ad81[_0x420c08(0x10f)](_0x157874)[_0x420c08(0xca)](_0x3405af);})),this[_0x32958d(0x10b)](this[_0x32958d(0x105)]['currentTheme$'][_0x32958d(0x8f)](_0x1cc73e=>{const _0x5520ea=_0x32958d;_0x11ad81[_0x5520ea(0x10f)](_0x157874)['setTheme'](_0x1cc73e);})),_0x11ad81[_0x32958d(0x10f)](_0x58f1e8)['setLocale'](this[_0x32958d(0xaf)][_0x32958d(0x86)]()),_0x11ad81[_0x32958d(0x10f)](_0x212553)['setConfig'](_0x209244,this[_0x32958d(0x95)][_0x32958d(0xf0)](_0x209244));const _0x470c86=this[_0x32958d(0x95)]['getConfig'](_0x499f7c);_0x470c86&&_0x5ed5a1[_0x32958d(0xa7)](_0x236114,{'license':_0x470c86['ls']}),this['_pluginMap']['forEach'](([_0x1d0401,_0xd0fb8e])=>{const _0x18ec09=_0x32958d;_0x5ed5a1[_0x18ec09(0xa7)](_0x1d0401,_0xd0fb8e);}),_0x11ad81[_0x32958d(0xf1)](_0x4631fc=>{const _0x15df93=_0x32958d;this[_0x15df93(0x12b)](_0x4631fc,_0x3a4458);}),this[_0x32958d(0xe9)][_0x32958d(0xe0)](_0x5ed5a1);const _0x56c255=_0x11ad81[_0x32958d(0x10f)](_0x4899a8),_0x46bca5=this[_0x32958d(0xce)](_0x3a4458);_0x56c255[_0x32958d(0x127)](_0x3a4458,_0x5a58e8,_0x46bca5);}[_0x128524(0x12b)](_0x107084,_0x57d235){const _0x43e3a2=_0x128524,_0x53ce04=_0x107084[_0x43e3a2(0x10f)](_0x4899a8);this['_disposableCollection'][_0x43e3a2(0x112)](_0x53ce04['status$'][_0x43e3a2(0x8f)](_0xd04b9=>{const _0x4e8ba6=_0x43e3a2;switch(_0xd04b9){case _0x450eed[_0x4e8ba6(0xe8)]:this[_0x4e8ba6(0x9a)][_0x4e8ba6(0xe2)](),this['_sidebarService']['close']();break;case _0x450eed['Exited']:this['unMountHistoryContent']();break;case _0x450eed[_0x4e8ba6(0x88)]:this['unMountHistoryContent'](),this['_messageService'][_0x4e8ba6(0xc1)]({'content':this[_0x4e8ba6(0xaf)]['t'](_0x4e8ba6(0x89)),'type':_0x5c72e8[_0x4e8ba6(0x88)],'duration':0xbb8});break;}})),this[_0x43e3a2(0xfc)][_0x43e3a2(0x112)](_0x53ce04[_0x43e3a2(0x116)][_0x43e3a2(0x8f)](async _0x3ae051=>{const _0x4c70da=_0x43e3a2;_0x3ae051&&this[_0x4c70da(0x122)][_0x4c70da(0xde)](_0x3624f6['id'],{'unitId':_0x57d235,'revision':_0x3ae051});}));}['_checkCanRevert'](_0x1fc379){const _0x484fd4=_0x128524,_0x535991=this[_0x484fd4(0x114)][_0x484fd4(0xf7)](_0x1fc379)[_0x484fd4(0xac)]()[_0x484fd4(0x123)](_0x1b3cf5=>_0x1b3cf5[_0x484fd4(0xe1)]()),_0x5678c3=new _0x43136c(_0x1fc379)['id'],_0x251814=_0x535991[_0x484fd4(0x123)](_0x1a4ed3=>new _0x51dfd0(_0x1fc379,_0x1a4ed3)['id']),_0x5b210a=_0x535991['map'](_0x40ac72=>this[_0x484fd4(0x126)][_0x484fd4(0x11c)](_0x1fc379,_0x40ac72)[_0x484fd4(0x123)](_0x5b0210=>new _0x2908a4(_0x1fc379,_0x40ac72,_0x5b0210[_0x484fd4(0x10c)])['id']))[_0x484fd4(0xf5)](),_0x57660d=new _0x3868f4(_0x1fc379)['id'];return this['_permissionService']['composePermission']([_0x5678c3,..._0x251814,..._0x5b210a,_0x57660d])[_0x484fd4(0xbf)](_0x32ed3b=>!!_0x32ed3b[_0x484fd4(0x8a)]);}};f=li([l(0x0,_0x51d82c(_0x58f1e8)),l(0x1,_0x27e838),l(0x2,_0x212553),l(0x3,_0x337e84),l(0x4,_0x37d45d),l(0x5,_0x527019),l(0x6,_0x51d82c(_0x1ffc66)),l(0x7,_0x51d82c(_0x4a2413)),l(0x8,_0x51d82c(_0x23c176)),l(0x9,_0x51d82c(_0x157874))],f);const b={'id':_0x128524(0x115),'type':_0x304ff5[_0x128524(0xe5)],'handler':_0x201862=>{const _0x1d72ad=_0x128524,_0x1ac437=_0x201862[_0x1d72ad(0x10f)](f),_0xcac0cf=_0x201862[_0x1d72ad(0x10f)](_0x27e838),{unitId:_0x2690dd}=_0x54c0e5(_0xcac0cf)||{};return _0x2690dd?(_0x1ac437[_0x1d72ad(0xf4)](_0x2690dd),!0x0):!0x1;}};function _0x3d52(_0x1aefc3,_0x1f80b8){const _0x34cc7f=_0x34cc();return _0x3d52=function(_0x3d52e8,_0x4a6f70){_0x3d52e8=_0x3d52e8-0x86;let _0x4e0f32=_0x34cc7f[_0x3d52e8];return _0x4e0f32;},_0x3d52(_0x1aefc3,_0x1f80b8);}function hi(_0x4a2c72){const _0xd9e29d=_0x128524;return{'id':b['id'],'type':_0x36a55c['BUTTON'],'icon':_0xd9e29d(0xc3),'tooltip':_0xd9e29d(0xd2),'hidden$':_0x5bed76(_0x4a2c72,_0xf64165[_0xd9e29d(0xd0)]),'disabled$':_0x7b2188(_0x4a2c72,{'workbookTypes':[_0x43136c,_0x508d85],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x1fd957[_0x128524(0x117)]]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x128524(0x98)],vi=(_0x43fb66,_0x2d37e4,_0x1d867c,_0x3c0efe)=>{const _0x237f72=_0x128524;for(var _0x2573fa=_0x3c0efe>0x1?void 0x0:_0x3c0efe?mi(_0x2d37e4,_0x1d867c):_0x2d37e4,_0x474b6a=_0x43fb66[_0x237f72(0x11d)]-0x1,_0x3e6579;_0x474b6a>=0x0;_0x474b6a--)(_0x3e6579=_0x43fb66[_0x474b6a])&&(_0x2573fa=_0x3e6579(_0x2573fa)||_0x2573fa);return _0x2573fa;},m=(_0x393294,_0x463216)=>(_0x58c19a,_0x1d3bf3)=>_0x463216(_0x58c19a,_0x1d3bf3,_0x393294);let p=class extends _0x3fc3e3{constructor(_0x237020,_0x3fc3ca,_0x929169,_0x1d31ca,_0x5e5672,_0x234f3d,_0x5a1638,_0x18fa5a){const _0x5e9afe=_0x128524;super(),g(this,_0x5e9afe(0x110),null),(this[_0x5e9afe(0x122)]=_0x237020,this[_0x5e9afe(0x10a)]=_0x3fc3ca,this[_0x5e9afe(0xab)]=_0x929169,this['_historyManagerService']=_0x1d31ca,this[_0x5e9afe(0xaf)]=_0x5e5672,this[_0x5e9afe(0x12f)]=_0x234f3d,this[_0x5e9afe(0x103)]=_0x5a1638,this[_0x5e9afe(0x96)]=_0x18fa5a,this[_0x5e9afe(0xfd)]());}[_0x128524(0xfd)](){const _0x37cf51=_0x128524;[b][_0x37cf51(0xb7)](_0x104e00=>this['disposeWithMe'](_0x9317b9(this[_0x37cf51(0x122)][_0x37cf51(0xed)](_0x104e00)))),this[_0x37cf51(0x10b)](this[_0x37cf51(0xab)][_0x37cf51(0xa8)](_0x37cf51(0xc3),j)),this[_0x37cf51(0x10a)][_0x37cf51(0x125)](gi),this[_0x37cf51(0x10b)](this[_0x37cf51(0x122)][_0x37cf51(0xc8)](_0x416c1c=>{const _0x18cb48=_0x37cf51;if(_0x416c1c['id']===_0x3624f6['id']){this['_messageService'][_0x18cb48(0xc1)]({'content':this[_0x18cb48(0xaf)]['t'](_0x18cb48(0xe7)),'type':_0x5c72e8[_0x18cb48(0x129)],'duration':0x1388});const {unitId:_0xf1ba6}=_0x416c1c[_0x18cb48(0x120)],_0x505a19=this[_0x18cb48(0x103)][_0x18cb48(0x87)](_0xf1ba6),_0x3749d4=_0x1c3f4b([_0x505a19[_0x18cb48(0xf8)]['event$'],_0x505a19[_0x18cb48(0x10d)]])[_0x18cb48(0x8f)](async([_0x3b2430,_0x1c5230])=>{const _0x12a0f9=_0x18cb48;var _0x2d95d8;_0x3b2430[_0x12a0f9(0xfe)]===_0x5f2d40[_0x12a0f9(0xc4)]&&(_0x1c5230==null?void 0x0:_0x1c5230[_0x12a0f9(0x91)])===_0x5590e5[_0x12a0f9(0xdf)]&&_0x3b2430['data'][_0x12a0f9(0xa3)]['some'](_0x31d1bc=>_0x31d1bc['id']===_0x3624f6['id'])&&(this[_0x12a0f9(0xd6)][_0x12a0f9(0xb1)](),_0x3749d4[_0x12a0f9(0xb4)](),this[_0x12a0f9(0x110)]&&clearTimeout(this[_0x12a0f9(0x110)]),await((_0x2d95d8=this[_0x12a0f9(0x96)])==null?void 0x0:_0x2d95d8[_0x12a0f9(0x92)]()),setTimeout(()=>window[_0x12a0f9(0x90)]['reload']()));});this[_0x18cb48(0x110)]=setTimeout(()=>{const _0x513249=_0x18cb48;_0x3749d4[_0x513249(0xb4)](),this[_0x513249(0x12f)][_0x513249(0xc1)]({'content':this[_0x513249(0xaf)]['t'](_0x513249(0x102)),'type':_0x5c72e8[_0x513249(0x88)],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x337e84),m(0x1,_0x83bca1),m(0x2,_0x51d82c(_0x4a00b9)),m(0x3,_0x51d82c(f)),m(0x4,_0x51d82c(_0x58f1e8)),m(0x5,_0x37d45d),m(0x6,_0x51d82c(_0x26eb2b)),m(0x7,_0x45e334)],p);var di=Object[_0x128524(0x98)],fi=(_0x50a48e,_0xbe2df3,_0x22bafa,_0x4f5881)=>{const _0x5cef0a=_0x128524;for(var _0x4b85df=_0x4f5881>0x1?void 0x0:_0x4f5881?di(_0xbe2df3,_0x22bafa):_0xbe2df3,_0x1e86f7=_0x50a48e[_0x5cef0a(0x11d)]-0x1,_0xa9fd03;_0x1e86f7>=0x0;_0x1e86f7--)(_0xa9fd03=_0x50a48e[_0x1e86f7])&&(_0x4b85df=_0xa9fd03(_0x4b85df)||_0x4b85df);return _0x4b85df;},R=(_0x42d4bc,_0x30c871)=>(_0x49b90e,_0x3efd25)=>_0x30c871(_0x49b90e,_0x3efd25,_0x42d4bc);const _i=_0x128524(0xf9);var _;let N=(_=class extends _0x1c50ef{constructor(_0xbb47ab=w,_0x2366e2,_0x2ebde3){const _0x5667ca=_0x128524;super(),this[_0x5667ca(0x100)]=_0xbb47ab,this[_0x5667ca(0xf2)]=_0x2366e2,this[_0x5667ca(0x95)]=_0x2ebde3;const {menu:_0x44d538,..._0x3a3fc0}=_0x3509ea({},w,this[_0x5667ca(0x100)]);_0x44d538&&this['_configService']['setConfig'](_0x5667ca(0xa2),_0x44d538,{'merge':!0x0}),this[_0x5667ca(0x95)]['setConfig'](x,_0x3a3fc0),this[_0x5667ca(0x100)][_0x5667ca(0x12a)]&&this['_configService']['setConfig'](V,this['_config'][_0x5667ca(0x12a)]);}[_0x128524(0xc9)](){const _0x12ceb8=_0x128524;[[f],[p]][_0x12ceb8(0xb7)](_0x19e345=>this[_0x12ceb8(0xf2)][_0x12ceb8(0x112)](_0x19e345));}[_0x128524(0xea)](){const _0x235478=_0x128524;this['_injector'][_0x235478(0x10f)](p);}},g(_,_0x128524(0xa5),_0xf64165[_0x128524(0xdb)]),g(_,_0x128524(0x11a),_i),_);N=fi([R(0x1,_0x51d82c(_0x563d50)),R(0x2,_0x212553)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
1
+ function _0x31aa(_0x2fd4fc,_0x553682){_0x2fd4fc=_0x2fd4fc-0x1d5;const _0x53624e=_0x5362();let _0x31aad7=_0x53624e[_0x2fd4fc];return _0x31aad7;}const _0x2db0f7=_0x31aa;(function(_0x2367dd,_0x139e89){const _0x31e4eb=_0x31aa,_0xa15bbf=_0x2367dd();while(!![]){try{const _0x338174=-parseInt(_0x31e4eb(0x1f0))/0x1*(parseInt(_0x31e4eb(0x241))/0x2)+-parseInt(_0x31e4eb(0x1dd))/0x3*(parseInt(_0x31e4eb(0x212))/0x4)+-parseInt(_0x31e4eb(0x226))/0x5+-parseInt(_0x31e4eb(0x268))/0x6*(parseInt(_0x31e4eb(0x1df))/0x7)+-parseInt(_0x31e4eb(0x252))/0x8+parseInt(_0x31e4eb(0x246))/0x9*(-parseInt(_0x31e4eb(0x22b))/0xa)+-parseInt(_0x31e4eb(0x24f))/0xb*(-parseInt(_0x31e4eb(0x238))/0xc);if(_0x338174===_0x139e89)break;else _0xa15bbf['push'](_0xa15bbf['shift']());}catch(_0x4a74ea){_0xa15bbf['push'](_0xa15bbf['shift']());}}}(_0x5362,0xd0334));function _0x5362(){const _0x4e53ce=['UNIVER_UNKNOWN','location','substring','OPERATION','forEach','historyUniver','style','assign','_localCacheService','exhaustSavingTask','54108PVpXmu','toString','M0\x200H16V16H0z','_config','random','history-icon_clip0_907_281','history-icon','onStarting','setConfig','2ukTrff','historyListServerUrl','show','_initUniver','path','2486142BYyKws','registerCommand','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','register','replace','getSubunitRuleList','display','univer-history-container','div','11869pjxgba','event$','getAllPlugins','3353272LxzMhV','editHistory.panel.revertFailed','svg','_permissionService','createElement','tag','type','url(#history-icon_clip0_907_281)','top','__getInjector','editHistory.panel.listFetchError','registerPlugin','_menuManagerService','trim','left','next','1000','Loading','_init','currentTheme$','has','_dialogService','8415834OYeDLd','asObservable','_collaborationController','subscribe','invoke','absolute','OTHERS','mountHistoryContent','_initContainer','getOwnPropertyDescriptor','mergeMenu','mask','getUnit','none','univerContainerId','editHistory.panel.title','closeAll','string','set','UNIVER_CONTAINER_ID','_messageService','length','status$','setDarkMode','attrs','editHistory.panel.reverting','state$','status','univerjs-icon\x20univerjs-icon-','dispose','zIndex','getCollabEntity','displayName','3BjaEkk','Error','7CmgIeJ','includes','_selectionProtectionRuleModel','_themeService','_sidebarService','getConfig','_disposableCollection','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','value','setLocale','dataset','mutations','unsubscribe','fill','getCurrentLocale','_localeService','some','404593psfswo','values','close','data','_configService','_injector','map','_pluginMap','UNIVER_SHEET','history-container','100%','entries','_revertErrorTimer','unMountHistoryContent','reload','session','univer.operation.toggle-edit-history','get','HistoryIcon','idSuffix','\x20has\x20been\x20registered.','CHANGESET_ACK','currentColor','SYNCED','url(#$1','getElementById','height','_checkCanRevert','eventID','_univerInstanceService','pluginName','xlink:href','onCommandExecuted','colorChannel1','1595740GFZibp','1em','_initListener','_historyUniver$','disposeWithMe','defIds','_componentManager','darkMode$','permissionId','Exited','width','setTheme','composePermission','getLocales','children','flat','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','_historyManagerService','onSteady','add','2791915KElAcJ','clipPath','clear','http://www.w3.org/2000/svg','_commandService','30PtBzIw','edit-history-loader.config','0\x200\x2016\x2016'];_0x5362=function(){return _0x4e53ce;};return _0x5362();}var G=Object['defineProperty'],B=(_0x1acb5a,_0x372dac,_0x49c4d9)=>_0x372dac in _0x1acb5a?G(_0x1acb5a,_0x372dac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49c4d9}):_0x1acb5a[_0x372dac]=_0x49c4d9,g=(_0x2fe2fa,_0x56c420,_0xea2a3e)=>B(_0x2fe2fa,typeof _0x56c420!='symbol'?_0x56c420+'':_0x56c420,_0xea2a3e);import{Inject as _0x21b45d,LocaleService as _0x368e92,IUniverInstanceService as _0xdf5baf,IConfigService as _0x335e48,ICommandService as _0x32b4ba,IPermissionService as _0x1c5b74,ThemeService as _0x5bb364,Disposable as _0x15f9bb,DisposableCollection as _0x56663f,Univer as _0x577e42,IAuthzIoService as _0x945c03,CommandType as _0x129f65,UniverInstanceType as _0x5aebf6,RxDisposable as _0x518e69,toDisposable as _0x579c2d,Plugin as _0x3c5c5b,merge as _0x291300,Injector as _0x3cc0a6}from'@univerjs/core';import{UniverCollaborationPlugin as _0x2e819d,RevertRevisionMutation as _0x11d831,CollaborationEvent as _0x561da0}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x31ffaf,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x583645,CollaborationController as _0xd62969,ILocalCacheService as _0x3bee7c,CollaborationStatus as _0x4d5511}from'@univerjs-pro/collaboration-client';import{MessageType as _0x12c38f}from'@univerjs/design';import{useRef as _0x1f19a6,createElement as _0x221eaf,forwardRef as _0x946c4e}from'react';import{IMessageService as _0x5343e4,IDialogService as _0x5387ff,ISidebarService as _0x45d122,UniverUIPlugin as _0xc43ff6,getMenuHiddenObservable as _0x3323dd,MenuItemType as _0x211562,RibbonStartGroup as _0x471df4,IMenuManagerService as _0x458da5,ComponentManager as _0x236294}from'@univerjs/ui';import{BehaviorSubject as _0x5ad379,combineLatest as _0x840415}from'rxjs';import{RangeProtectionRuleModel as _0x5aed72,UniverSheetsPlugin as _0x54080a,WorkbookEditablePermission as _0x1459ec,WorksheetEditPermission as _0xb351dc,RangeProtectionPermissionEditPoint as _0x2bede3,WorkbookRecoverHistoryPermission as _0x29921b,getSheetCommandTarget as _0x25ce28,WorkbookViewHistoryPermission as _0x4abcf9}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x4f35b2,HistoryManagerService as _0x3c2597,HistoryModeStatus as _0x42760a}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x114302,UniverLicensePlugin as _0x1b30a5}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x8c0e5d}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x218af7}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x21a4e0}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x26f54b}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x3b9d9d}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x2c67b9}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x3ed651}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x3dd627}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0xf21ae,IImageIoService as _0x5239ce}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x3c18c0}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x5d0a51}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x48f299}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x49f5e6}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x42dbfb}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x3f0aeb}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x34a522}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x418d2c}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x81d315}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x83a463}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0xcdbfd1}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x42d867}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x5ed04d}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x3847bb}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x5c5426}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xcc5f13}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x432264}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x291c8a}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x510c8e,getCurrentRangeDisable$ as _0x53d413}from'@univerjs/sheets-ui';const x=_0x2db0f7(0x22c),w={};function A({ref:_0x5cc039,..._0x1372eb}){const _0x2e6d3f=_0x2db0f7,{icon:_0xcda0e2,id:_0x14810e,className:_0x1157ad,extend:_0x48bfa9,..._0x271f1b}=_0x1372eb,_0x255746=(_0x2e6d3f(0x1d8)+_0x14810e+'\x20'+(_0x1157ad||''))[_0x2e6d3f(0x25f)](),_0x5954d3=_0x1f19a6('_'+ci());return F(_0xcda0e2,''+_0x14810e,{'defIds':_0xcda0e2[_0x2e6d3f(0x217)],'idSuffix':_0x5954d3['current']},{'ref':_0x5cc039,'className':_0x255746,..._0x271f1b},_0x48bfa9);}function F(_0x5349df,_0x17615d,_0x416d90,_0x39b4b4,_0x4b3cb6){const _0x2c84d0=_0x2db0f7;return _0x221eaf(_0x5349df[_0x2c84d0(0x257)],{'key':_0x17615d,...si(_0x5349df,_0x416d90,_0x4b3cb6),..._0x39b4b4},(ai(_0x5349df,_0x416d90)[_0x2c84d0(0x220)]||[])[_0x2c84d0(0x1f6)]((_0x3e0010,_0x3152e9)=>F(_0x3e0010,_0x17615d+'-'+_0x5349df[_0x2c84d0(0x257)]+'-'+_0x3152e9,_0x416d90,void 0x0,_0x4b3cb6)));}function si(_0x1abbc7,_0x2e6db7,_0x7be053){const _0x228623=_0x2db0f7,_0x49047f={..._0x1abbc7['attrs']};_0x7be053!=null&&_0x7be053[_0x228623(0x211)]&&_0x49047f[_0x228623(0x1ec)]===_0x228623(0x211)&&(_0x49047f[_0x228623(0x1ec)]=_0x7be053[_0x228623(0x211)]),_0x1abbc7[_0x228623(0x257)]===_0x228623(0x273)&&_0x49047f['id']&&(_0x49047f['id']=_0x49047f['id']+_0x2e6db7[_0x228623(0x203)]),Object[_0x228623(0x1fb)](_0x49047f)[_0x228623(0x232)](([_0x40e8b3,_0x507f6d])=>{const _0x53a722=_0x228623;_0x40e8b3==='mask'&&typeof _0x507f6d==_0x53a722(0x279)&&(_0x49047f[_0x40e8b3]=_0x507f6d[_0x53a722(0x24a)](/url\(#(.*)\)/,_0x53a722(0x208)+_0x2e6db7[_0x53a722(0x203)]+')'));});const {defIds:_0x196246}=_0x2e6db7;return!_0x196246||_0x196246[_0x228623(0x27d)]===0x0||(_0x1abbc7[_0x228623(0x257)]==='use'&&_0x49047f['xlink:href']&&(_0x49047f[_0x228623(0x20f)]=_0x49047f[_0x228623(0x20f)]+_0x2e6db7[_0x228623(0x203)]),Object[_0x228623(0x1fb)](_0x49047f)[_0x228623(0x232)](([_0x48083d,_0x13584b])=>{const _0x59297b=_0x228623;typeof _0x13584b=='string'&&(_0x49047f[_0x48083d]=_0x13584b[_0x59297b(0x24a)](/url\(#(.*)\)/,'url(#$1'+_0x2e6db7[_0x59297b(0x203)]+')'));})),_0x49047f;}function ai(_0x4e0960,_0x41729b){const _0x4cec6a=_0x2db0f7;var _0x2f6c31;const {defIds:_0x5621f5}=_0x41729b;return!_0x5621f5||_0x5621f5[_0x4cec6a(0x27d)]===0x0?_0x4e0960:_0x4e0960[_0x4cec6a(0x257)]==='defs'&&((_0x2f6c31=_0x4e0960[_0x4cec6a(0x220)])!=null&&_0x2f6c31[_0x4cec6a(0x27d)])?{..._0x4e0960,'children':_0x4e0960[_0x4cec6a(0x220)]['map'](_0x301e45=>typeof _0x301e45[_0x4cec6a(0x280)]['id']==_0x4cec6a(0x279)&&_0x5621f5&&_0x5621f5[_0x4cec6a(0x1e0)](_0x301e45[_0x4cec6a(0x280)]['id'])?{..._0x301e45,'attrs':{..._0x301e45['attrs'],'id':_0x301e45[_0x4cec6a(0x280)]['id']+_0x41729b[_0x4cec6a(0x203)]}}:_0x301e45)}:_0x4e0960;}function ci(){const _0x554779=_0x2db0f7;return Math[_0x554779(0x23c)]()[_0x554779(0x239)](0x24)[_0x554779(0x230)](0x2,0x8);}A[_0x2db0f7(0x1dc)]='UniverIcon';const li={'tag':_0x2db0f7(0x254),'attrs':{'xmlns':_0x2db0f7(0x229),'fill':'none','viewBox':_0x2db0f7(0x22d),'width':_0x2db0f7(0x213),'height':_0x2db0f7(0x213)},'children':[{'tag':'g','attrs':{'fill':_0x2db0f7(0x206),'clipPath':_0x2db0f7(0x259)},'children':[{'tag':'path','attrs':{'d':_0x2db0f7(0x248)}},{'tag':_0x2db0f7(0x245),'attrs':{'d':_0x2db0f7(0x222)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2db0f7(0x227),'attrs':{'id':_0x2db0f7(0x23d)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2db0f7(0x23a)}}]}]}],'defIds':[_0x2db0f7(0x23d)]},j=_0x946c4e(function(_0x2a5a9f,_0x4f8617){const _0x3b3aca=_0x2db0f7;return _0x221eaf(A,Object[_0x3b3aca(0x235)]({},_0x2a5a9f,{'id':_0x3b3aca(0x23e),'ref':_0x4f8617,'icon':li}));});j['displayName']=_0x2db0f7(0x202);var ui=Object[_0x2db0f7(0x271)],hi=(_0x59acec,_0x1cd3ab,_0x216253,_0x4166c5)=>{for(var _0x2ebb68=_0x4166c5>0x1?void 0x0:_0x4166c5?ui(_0x1cd3ab,_0x216253):_0x1cd3ab,_0x25b2f4=_0x59acec['length']-0x1,_0x1c0ee6;_0x25b2f4>=0x0;_0x25b2f4--)(_0x1c0ee6=_0x59acec[_0x25b2f4])&&(_0x2ebb68=_0x1c0ee6(_0x2ebb68)||_0x2ebb68);return _0x2ebb68;},l=(_0xf09bcd,_0x10f3e7)=>(_0x22cfaa,_0x12d083)=>_0x10f3e7(_0x22cfaa,_0x12d083,_0xf09bcd);const gi='univer-container',V=_0x2db0f7(0x27b),d=_0x2db0f7(0x24d);let f=class extends _0x15f9bb{constructor(_0x19f8bd,_0xe6b160,_0x29bc2b,_0x4cce94,_0xd63260,_0x31d5e5,_0x3969ff,_0x32e3b0,_0x3fe687,_0x395700){const _0x28f39d=_0x2db0f7;super(),g(this,'_historyUniver$',new _0x5ad379(null)),g(this,'historyUniver$',this['_historyUniver$'][_0x28f39d(0x269)]()),g(this,_0x28f39d(0x1e5),new _0x56663f()),g(this,_0x28f39d(0x1f7),new Map()),(this[_0x28f39d(0x1ee)]=_0x19f8bd,this[_0x28f39d(0x20d)]=_0xe6b160,this[_0x28f39d(0x1f4)]=_0x29bc2b,this['_commandService']=_0x4cce94,this['_messageService']=_0xd63260,this['_permissionService']=_0x31d5e5,this[_0x28f39d(0x1e1)]=_0x3969ff,this[_0x28f39d(0x267)]=_0x32e3b0,this[_0x28f39d(0x1e3)]=_0x3fe687,this['_themeService']=_0x395700,this[_0x28f39d(0x264)]());}get['historyUniver'](){const _0x37df9b=_0x2db0f7;return this[_0x37df9b(0x215)][_0x37df9b(0x1e7)];}['_init'](){const _0x3050eb=_0x2db0f7;this[_0x3050eb(0x270)](),this['_initPlugins']();}[_0x2db0f7(0x270)](){const _0x3f209f=_0x2db0f7;var _0x99c00a;const _0x295192=(_0x99c00a=this['_configService']['getConfig'](V))!=null?_0x99c00a:gi,_0x5565e3=document[_0x3f209f(0x209)](_0x295192);if(!_0x5565e3)return;const _0x1e830e=document[_0x3f209f(0x256)](_0x3f209f(0x24e));_0x1e830e['id']=d,_0x1e830e[_0x3f209f(0x1e9)]['uComp']=_0x3f209f(0x1f9),_0x1e830e[_0x3f209f(0x234)]['position']=_0x3f209f(0x26d),_0x1e830e['style'][_0x3f209f(0x25a)]='0',_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x260)]='0',_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x21c)]='100%',_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x20a)]=_0x3f209f(0x1fa),_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x1da)]=_0x3f209f(0x262),_0x1e830e[_0x3f209f(0x234)][_0x3f209f(0x24c)]='none',_0x5565e3['appendChild'](_0x1e830e);}['_initPlugins'](){const _0x1bce23=_0x2db0f7;var _0x581e40;[[_0x48f299],[_0xc43ff6,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5387ff,null]]}],[_0x49f5e6],[_0xf21ae,{'override':[[_0x5239ce,null]]}],[_0x3ed651,{'hasScroll':!0x1}],[_0x3dd627],[_0x291c8a],[_0x54080a,{'notExecuteFormula':!0x0}],[_0x510c8e],[_0x3847bb],[_0x5c5426],[_0x2e819d],[_0x42d867],[_0x5ed04d],[_0x3f0aeb],[_0x34a522],[_0xcc5f13],[_0x432264],[_0x2c67b9],[_0x418d2c],[_0x81d315],[_0x5d0a51,{'notExecuteFormula':!0x0}],[_0x42dbfb,{'workerURL':'./worker.js'}],[_0x3c18c0],[_0x83a463],[_0xcdbfd1],[_0x26f54b],[_0x3b9d9d],[_0x8c0e5d],[_0x218af7],[_0x21a4e0,{'notExecuteFormula':!0x0}],[_0x4f35b2,{'historyListServerUrl':(_0x581e40=this[_0x1bce23(0x1f4)][_0x1bce23(0x1e4)](x))==null?void 0x0:_0x581e40[_0x1bce23(0x242)]}]]['forEach'](([_0x447fb8,_0x76ed2])=>this[_0x1bce23(0x25d)](_0x447fb8,_0x76ed2));}['dispose'](){const _0x1e5a1d=_0x2db0f7;super[_0x1e5a1d(0x1d9)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x1e5a1d(0x228)]();}['registerPlugin'](_0x3e6ca1,_0x27c848,_0x233776){const _0x4343be=_0x2db0f7;if(this[_0x4343be(0x1f7)][_0x4343be(0x266)](_0x3e6ca1[_0x4343be(0x20e)])&&!_0x233776)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x3e6ca1[_0x4343be(0x20e)]+_0x4343be(0x204));this[_0x4343be(0x1f7)][_0x4343be(0x27a)](_0x3e6ca1['pluginName'],[_0x3e6ca1,_0x27c848]);}[_0x2db0f7(0x251)](){const _0x270e6e=_0x2db0f7;return Array['from'](this['_pluginMap'][_0x270e6e(0x1f1)]());}[_0x2db0f7(0x26f)](_0x49061c){const _0x4d3ddc=_0x2db0f7,_0x14d5bd=document[_0x4d3ddc(0x209)](d);_0x14d5bd&&(_0x14d5bd[_0x4d3ddc(0x234)]['display']='block',this[_0x4d3ddc(0x244)](_0x49061c,d));}[_0x2db0f7(0x1fd)](){const _0x3be624=_0x2db0f7;var _0x379d6a;this[_0x3be624(0x1e5)]['dispose'](),(_0x379d6a=this[_0x3be624(0x233)])==null||_0x379d6a[_0x3be624(0x1d9)](),this['_historyUniver$'][_0x3be624(0x261)](null);const _0x4d619a=document[_0x3be624(0x209)](d);_0x4d619a&&(_0x4d619a[_0x3be624(0x234)][_0x3be624(0x24c)]=_0x3be624(0x275));}[_0x2db0f7(0x244)](_0x2c115b,_0x4765af){const _0x5eead0=_0x2db0f7;if(this[_0x5eead0(0x233)])return;const _0x278a81=new _0x577e42({'locales':{[this[_0x5eead0(0x1ee)][_0x5eead0(0x1ed)]()]:this[_0x5eead0(0x1ee)][_0x5eead0(0x21f)]()},'override':[[_0x945c03,{'useClass':_0x31ffaf}]]}),_0x1dc7df=_0x278a81[_0x5eead0(0x25b)]();this['disposeWithMe'](this[_0x5eead0(0x1e2)][_0x5eead0(0x219)]['subscribe'](_0x24cc6f=>{const _0x4a21a5=_0x5eead0;_0x1dc7df['get'](_0x5bb364)[_0x4a21a5(0x27f)](_0x24cc6f);})),this['disposeWithMe'](this['_themeService'][_0x5eead0(0x265)][_0x5eead0(0x26b)](_0x4cb370=>{const _0x1ff60d=_0x5eead0;_0x1dc7df['get'](_0x5bb364)[_0x1ff60d(0x21d)](_0x4cb370);})),_0x1dc7df[_0x5eead0(0x201)](_0x368e92)[_0x5eead0(0x1e8)](this[_0x5eead0(0x1ee)]['getCurrentLocale']()),_0x1dc7df[_0x5eead0(0x201)](_0x335e48)[_0x5eead0(0x240)](_0x583645,this[_0x5eead0(0x1f4)]['getConfig'](_0x583645));const _0x10a7f8=this[_0x5eead0(0x1f4)][_0x5eead0(0x1e4)](_0x114302);_0x10a7f8&&_0x278a81[_0x5eead0(0x25d)](_0x1b30a5,{'license':_0x10a7f8['ls']}),this['_pluginMap'][_0x5eead0(0x232)](([_0x54fa75,_0x405360])=>{const _0x20c6df=_0x5eead0;_0x278a81[_0x20c6df(0x25d)](_0x54fa75,_0x405360);}),_0x1dc7df[_0x5eead0(0x26c)](_0x39915c=>{const _0x3191a5=_0x5eead0;this[_0x3191a5(0x214)](_0x39915c,_0x2c115b);}),this[_0x5eead0(0x215)][_0x5eead0(0x261)](_0x278a81);const _0x12266c=_0x1dc7df[_0x5eead0(0x201)](_0x3c2597),_0x1ba5d0=this[_0x5eead0(0x20b)](_0x2c115b);_0x12266c['triggerLoadVersions'](_0x2c115b,_0x4765af,_0x1ba5d0);}[_0x2db0f7(0x214)](_0x1c75ad,_0x59b564){const _0x5d6739=_0x2db0f7,_0x609079=_0x1c75ad[_0x5d6739(0x201)](_0x3c2597);this['_disposableCollection'][_0x5d6739(0x225)](_0x609079[_0x5d6739(0x27e)]['subscribe'](_0x4301d5=>{const _0x561ecf=_0x5d6739;switch(_0x4301d5){case _0x42760a['Entered']:this[_0x561ecf(0x267)][_0x561ecf(0x278)](),this['_sidebarService'][_0x561ecf(0x1f2)]();break;case _0x42760a[_0x561ecf(0x21b)]:this[_0x561ecf(0x1fd)]();break;case _0x42760a['Error']:this['unMountHistoryContent'](),this[_0x561ecf(0x27c)][_0x561ecf(0x243)]({'content':this[_0x561ecf(0x1ee)]['t'](_0x561ecf(0x25c)),'type':_0x12c38f[_0x561ecf(0x1de)],'duration':0xbb8});break;}})),this[_0x5d6739(0x1e5)][_0x5d6739(0x225)](_0x609079['revertRevision$'][_0x5d6739(0x26b)](async _0x31ba44=>{const _0x17e752=_0x5d6739;_0x31ba44&&this[_0x17e752(0x22a)]['executeCommand'](_0x11d831['id'],{'unitId':_0x59b564,'revision':_0x31ba44});}));}['_checkCanRevert'](_0x52100e){const _0x5598a4=_0x2db0f7,_0x329c25=this[_0x5598a4(0x20d)][_0x5598a4(0x274)](_0x52100e)['getSheets']()[_0x5598a4(0x1f6)](_0x3e3486=>_0x3e3486['getSheetId']()),_0x3765b7=new _0x1459ec(_0x52100e)['id'],_0x4b16e9=_0x329c25[_0x5598a4(0x1f6)](_0x4260d2=>new _0xb351dc(_0x52100e,_0x4260d2)['id']),_0x332cdd=_0x329c25[_0x5598a4(0x1f6)](_0x174c78=>this[_0x5598a4(0x1e1)][_0x5598a4(0x24b)](_0x52100e,_0x174c78)['map'](_0x4da009=>new _0x2bede3(_0x52100e,_0x174c78,_0x4da009[_0x5598a4(0x21a)])['id']))[_0x5598a4(0x221)](),_0x26c1c4=new _0x29921b(_0x52100e)['id'];return this[_0x5598a4(0x255)][_0x5598a4(0x21e)]([_0x3765b7,..._0x4b16e9,..._0x332cdd,_0x26c1c4])['every'](_0x25ec29=>!!_0x25ec29['value']);}};f=hi([l(0x0,_0x21b45d(_0x368e92)),l(0x1,_0xdf5baf),l(0x2,_0x335e48),l(0x3,_0x32b4ba),l(0x4,_0x5343e4),l(0x5,_0x1c5b74),l(0x6,_0x21b45d(_0x5aed72)),l(0x7,_0x21b45d(_0x5387ff)),l(0x8,_0x21b45d(_0x45d122)),l(0x9,_0x21b45d(_0x5bb364))],f);const b={'id':_0x2db0f7(0x200),'type':_0x129f65[_0x2db0f7(0x231)],'handler':_0x50d3bc=>{const _0x56ac88=_0x2db0f7,_0x4d2209=_0x50d3bc[_0x56ac88(0x201)](f),_0x2406ee=_0x50d3bc[_0x56ac88(0x201)](_0xdf5baf),{unitId:_0x5d4d3a}=_0x25ce28(_0x2406ee)||{};return _0x5d4d3a?(_0x4d2209['mountHistoryContent'](_0x5d4d3a),!0x0):!0x1;}};function mi(_0x4f8835){const _0x3b7e4b=_0x2db0f7;return{'id':b['id'],'type':_0x211562['BUTTON'],'icon':_0x3b7e4b(0x202),'tooltip':_0x3b7e4b(0x277),'hidden$':_0x3323dd(_0x4f8835,_0x5aebf6[_0x3b7e4b(0x1f8)]),'disabled$':_0x53d413(_0x4f8835,{'workbookTypes':[_0x1459ec,_0x4abcf9],'worksheetTypes':[],'rangeTypes':[]})};}const vi={[_0x471df4[_0x2db0f7(0x26e)]]:{[b['id']]:{'order':0.2,'menuItemFactory':mi}}};var di=Object[_0x2db0f7(0x271)],fi=(_0x30081c,_0x1f8744,_0x18c2ec,_0x4063dd)=>{const _0x2eade5=_0x2db0f7;for(var _0x51c49f=_0x4063dd>0x1?void 0x0:_0x4063dd?di(_0x1f8744,_0x18c2ec):_0x1f8744,_0x4127a7=_0x30081c[_0x2eade5(0x27d)]-0x1,_0x1a1342;_0x4127a7>=0x0;_0x4127a7--)(_0x1a1342=_0x30081c[_0x4127a7])&&(_0x51c49f=_0x1a1342(_0x51c49f)||_0x51c49f);return _0x51c49f;},m=(_0x258d9d,_0x59fd7c)=>(_0x5c6f26,_0x54f9c7)=>_0x59fd7c(_0x5c6f26,_0x54f9c7,_0x258d9d);let p=class extends _0x518e69{constructor(_0x24b4f6,_0x233dc2,_0x24c4ca,_0x4bb263,_0x539635,_0x524ab2,_0x172802,_0x2eb9d3){const _0x4e5b55=_0x2db0f7;super(),g(this,_0x4e5b55(0x1fc),null),(this[_0x4e5b55(0x22a)]=_0x24b4f6,this['_menuManagerService']=_0x233dc2,this[_0x4e5b55(0x218)]=_0x24c4ca,this[_0x4e5b55(0x223)]=_0x4bb263,this[_0x4e5b55(0x1ee)]=_0x539635,this[_0x4e5b55(0x27c)]=_0x524ab2,this[_0x4e5b55(0x26a)]=_0x172802,this['_localCacheService']=_0x2eb9d3,this['_init']());}[_0x2db0f7(0x264)](){const _0x3e11b8=_0x2db0f7;[b][_0x3e11b8(0x232)](_0x5bc1a7=>this[_0x3e11b8(0x216)](_0x579c2d(this[_0x3e11b8(0x22a)][_0x3e11b8(0x247)](_0x5bc1a7)))),this['disposeWithMe'](this['_componentManager'][_0x3e11b8(0x249)]('HistoryIcon',j)),this[_0x3e11b8(0x25e)][_0x3e11b8(0x272)](vi),this[_0x3e11b8(0x216)](this['_commandService'][_0x3e11b8(0x210)](_0x24ffd9=>{const _0x24c852=_0x3e11b8;if(_0x24ffd9['id']===_0x11d831['id']){this[_0x24c852(0x27c)][_0x24c852(0x243)]({'content':this[_0x24c852(0x1ee)]['t'](_0x24c852(0x1d5)),'type':_0x12c38f[_0x24c852(0x263)],'duration':0x1388});const {unitId:_0x4a41bb}=_0x24ffd9['params'],_0xd2afd5=this[_0x24c852(0x26a)][_0x24c852(0x1db)](_0x4a41bb),_0x121baf=_0x840415([_0xd2afd5[_0x24c852(0x1ff)][_0x24c852(0x250)],_0xd2afd5[_0x24c852(0x1d6)]])[_0x24c852(0x26b)](async([_0x5a5b7a,_0x3172c0])=>{const _0x3650d7=_0x24c852;var _0xd3afb1;_0x5a5b7a[_0x3650d7(0x20c)]===_0x561da0[_0x3650d7(0x205)]&&(_0x3172c0==null?void 0x0:_0x3172c0[_0x3650d7(0x1d7)])===_0x4d5511[_0x3650d7(0x207)]&&_0x5a5b7a[_0x3650d7(0x1f3)][_0x3650d7(0x1ea)][_0x3650d7(0x1ef)](_0x29e18c=>_0x29e18c['id']===_0x11d831['id'])&&(this[_0x3650d7(0x223)][_0x3650d7(0x1fd)](),_0x121baf[_0x3650d7(0x1eb)](),this['_revertErrorTimer']&&clearTimeout(this[_0x3650d7(0x1fc)]),await((_0xd3afb1=this[_0x3650d7(0x236)])==null?void 0x0:_0xd3afb1[_0x3650d7(0x237)]()),setTimeout(()=>window[_0x3650d7(0x22f)][_0x3650d7(0x1fe)]()));});this[_0x24c852(0x1fc)]=setTimeout(()=>{const _0x585119=_0x24c852;_0x121baf[_0x585119(0x1eb)](),this[_0x585119(0x27c)]['show']({'content':this[_0x585119(0x1ee)]['t'](_0x585119(0x253)),'type':_0x12c38f[_0x585119(0x1de)],'duration':0xbb8});},0x1388);}}));}};p=fi([m(0x0,_0x32b4ba),m(0x1,_0x458da5),m(0x2,_0x21b45d(_0x236294)),m(0x3,_0x21b45d(f)),m(0x4,_0x21b45d(_0x368e92)),m(0x5,_0x5343e4),m(0x6,_0x21b45d(_0xd62969)),m(0x7,_0x3bee7c)],p);var _i=Object['getOwnPropertyDescriptor'],pi=(_0x1c4a1d,_0x571258,_0x747dd7,_0x289278)=>{const _0x184615=_0x2db0f7;for(var _0x12bb04=_0x289278>0x1?void 0x0:_0x289278?_i(_0x571258,_0x747dd7):_0x571258,_0x3a96a3=_0x1c4a1d[_0x184615(0x27d)]-0x1,_0xb98179;_0x3a96a3>=0x0;_0x3a96a3--)(_0xb98179=_0x1c4a1d[_0x3a96a3])&&(_0x12bb04=_0xb98179(_0x12bb04)||_0x12bb04);return _0x12bb04;},R=(_0x14cb27,_0x12218e)=>(_0x334ec7,_0x5d9ca3)=>_0x12218e(_0x334ec7,_0x5d9ca3,_0x14cb27);const Si=_0x2db0f7(0x1e6);var _;let N=(_=class extends _0x3c5c5b{constructor(_0x3730f6=w,_0x439ccb,_0x3440c7){const _0x2fedc6=_0x2db0f7;super(),this[_0x2fedc6(0x23b)]=_0x3730f6,this['_injector']=_0x439ccb,this[_0x2fedc6(0x1f4)]=_0x3440c7;const {menu:_0x44579c,..._0x2814de}=_0x291300({},w,this[_0x2fedc6(0x23b)]);_0x44579c&&this['_configService']['setConfig']('menu',_0x44579c,{'merge':!0x0}),this[_0x2fedc6(0x1f4)][_0x2fedc6(0x240)](x,_0x2814de),this[_0x2fedc6(0x23b)][_0x2fedc6(0x276)]&&this[_0x2fedc6(0x1f4)][_0x2fedc6(0x240)](V,this[_0x2fedc6(0x23b)][_0x2fedc6(0x276)]);}[_0x2db0f7(0x23f)](){const _0x495fb4=_0x2db0f7;[[f],[p]][_0x495fb4(0x232)](_0x5d72a6=>this[_0x495fb4(0x1f5)][_0x495fb4(0x225)](_0x5d72a6));}[_0x2db0f7(0x224)](){const _0x5d5b26=_0x2db0f7;this[_0x5d5b26(0x1f5)][_0x5d5b26(0x201)](p);}},g(_,_0x2db0f7(0x258),_0x5aebf6[_0x2db0f7(0x22e)]),g(_,_0x2db0f7(0x20e),Si),_);N=pi([R(0x1,_0x21b45d(_0x3cc0a6)),R(0x2,_0x335e48)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x238b(_0x48fa2c,_0xea3cee){const _0x483772=_0x4837();return _0x238b=function(_0x238b5a,_0x27f068){_0x238b5a=_0x238b5a-0x1ec;let _0x1bdcfa=_0x483772[_0x238b5a];return _0x1bdcfa;},_0x238b(_0x48fa2c,_0xea3cee);}(function(_0x522d38,_0x222e00){const _0x2eac9f=_0x238b,_0x1ac710=_0x522d38();while(!![]){try{const _0x2e5e1c=parseInt(_0x2eac9f(0x225))/0x1*(-parseInt(_0x2eac9f(0x215))/0x2)+-parseInt(_0x2eac9f(0x25f))/0x3+-parseInt(_0x2eac9f(0x23a))/0x4+-parseInt(_0x2eac9f(0x2bd))/0x5+-parseInt(_0x2eac9f(0x254))/0x6+-parseInt(_0x2eac9f(0x2d9))/0x7*(-parseInt(_0x2eac9f(0x299))/0x8)+parseInt(_0x2eac9f(0x1ed))/0x9;if(_0x2e5e1c===_0x222e00)break;else _0x1ac710['push'](_0x1ac710['shift']());}catch(_0x2bf822){_0x1ac710['push'](_0x1ac710['shift']());}}}(_0x4837,0x99575),function(_0x196f38,_0x51197e){const _0x22722a=_0x238b;typeof exports==_0x22722a(0x2e3)&&typeof module<'u'?_0x51197e(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=='function'&&define[_0x22722a(0x266)]?define([_0x22722a(0x2f2),'@univerjs/core',_0x22722a(0x2ae),_0x22722a(0x1f1),_0x22722a(0x29d),_0x22722a(0x236),'@univerjs/ui',_0x22722a(0x1f8),_0x22722a(0x1f0),_0x22722a(0x26d),'@univerjs-pro/license','@univerjs-pro/sheets-pivot','@univerjs-pro/sheets-sparkline',_0x22722a(0x250),_0x22722a(0x1fd),_0x22722a(0x218),_0x22722a(0x211),_0x22722a(0x307),_0x22722a(0x280),'@univerjs/engine-formula',_0x22722a(0x304),'@univerjs/network','@univerjs/rpc',_0x22722a(0x284),_0x22722a(0x216),'@univerjs/sheets-data-validation','@univerjs/sheets-data-validation-ui',_0x22722a(0x219),_0x22722a(0x24e),_0x22722a(0x23b),_0x22722a(0x2d7),_0x22722a(0x249),_0x22722a(0x29b),_0x22722a(0x285),'@univerjs/sheets-hyper-link-ui',_0x22722a(0x2ee),_0x22722a(0x1ec)],_0x51197e):(_0x196f38=typeof globalThis<'u'?globalThis:_0x196f38||self,_0x51197e(_0x196f38['UniverProEditHistoryLoader']={},_0x196f38['UniverCore'],_0x196f38[_0x22722a(0x28c)],_0x196f38[_0x22722a(0x207)],_0x196f38[_0x22722a(0x2b5)],_0x196f38[_0x22722a(0x303)],_0x196f38[_0x22722a(0x289)],_0x196f38[_0x22722a(0x1f8)],_0x196f38['UniverSheets'],_0x196f38[_0x22722a(0x1fc)],_0x196f38[_0x22722a(0x201)],_0x196f38[_0x22722a(0x248)],_0x196f38['UniverProSheetsSparkline'],_0x196f38['UniverProSheetsSparklineUi'],_0x196f38['UniverDataValidation'],_0x196f38['UniverDocs'],_0x196f38[_0x22722a(0x2dc)],_0x196f38[_0x22722a(0x2ce)],_0x196f38['UniverDrawingUi'],_0x196f38[_0x22722a(0x24a)],_0x196f38['UniverEngineRender'],_0x196f38['UniverNetwork'],_0x196f38[_0x22722a(0x2b7)],_0x196f38['UniverSheetsConditionalFormatting'],_0x196f38[_0x22722a(0x2c2)],_0x196f38[_0x22722a(0x2bf)],_0x196f38[_0x22722a(0x1fe)],_0x196f38[_0x22722a(0x230)],_0x196f38[_0x22722a(0x1ef)],_0x196f38[_0x22722a(0x22a)],_0x196f38[_0x22722a(0x239)],_0x196f38[_0x22722a(0x23f)],_0x196f38['UniverSheetsFormulaUi'],_0x196f38[_0x22722a(0x260)],_0x196f38[_0x22722a(0x2bb)],_0x196f38[_0x22722a(0x221)],_0x196f38[_0x22722a(0x2de)]));}(this,function(_0x167860,_0x44428b,_0x5a511a,_0x893182,_0xb5b35d,_0x3c6641,_0x30a757,_0x3a2b19,_0x3913e3,_0xef08b0,_0x5d39be,_0x16c983,_0x506df5,_0x2309ec,_0x2d9c0e,_0x37270f,_0xf98f10,_0x3607ed,_0x121af6,_0x92aa60,_0x5986b3,_0x4939af,_0x44f66b,_0x2ab007,_0x311eac,_0x2ece02,_0x27adf3,_0x966fa3,_0x55f789,_0x1f496c,_0x5dc53b,_0x1a488f,_0xa3429a,_0x5e6bdb,_0x466f8f,_0x24537e,_0x4fd370){'use strict';const _0x3c9826=_0x238b;var _0x49e78c=Object[_0x3c9826(0x2a1)],_0x4688f0=(_0x209b97,_0x533f5f,_0x1d1093)=>_0x533f5f in _0x209b97?_0x49e78c(_0x209b97,_0x533f5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d1093}):_0x209b97[_0x533f5f]=_0x1d1093,_0x34084d=(_0x5e71a0,_0x421f34,_0x5bd001)=>_0x4688f0(_0x5e71a0,typeof _0x421f34!='symbol'?_0x421f34+'':_0x421f34,_0x5bd001),_0x33159f;const _0x28ec9c='edit-history-loader.config',_0x323f79={};function _0x5b1483({ref:_0x5ddb25,..._0x5c6df9}){const _0x2e92e9=_0x3c9826,{icon:_0x43e7a0,id:_0x5e3b1f,className:_0x540b95,extend:_0x439f20,..._0x475544}=_0x5c6df9,_0x27cc3e=(_0x2e92e9(0x29c)+_0x5e3b1f+'\x20'+(_0x540b95||''))[_0x2e92e9(0x20d)](),_0x1a42f6=_0x3c6641[_0x2e92e9(0x272)]('_'+_0x580f6b());return _0x27a33c(_0x43e7a0,''+_0x5e3b1f,{'defIds':_0x43e7a0['defIds'],'idSuffix':_0x1a42f6[_0x2e92e9(0x305)]},{'ref':_0x5ddb25,'className':_0x27cc3e,..._0x475544},_0x439f20);}function _0x27a33c(_0x3e7d28,_0x1b229d,_0x24c088,_0x3d5953,_0x3d52a8){const _0x318261=_0x3c9826;return _0x3c6641[_0x318261(0x2f3)](_0x3e7d28['tag'],{'key':_0x1b229d,..._0x5d268f(_0x3e7d28,_0x24c088,_0x3d52a8),..._0x3d5953},(_0xdf7b28(_0x3e7d28,_0x24c088)[_0x318261(0x2c1)]||[])['map']((_0x269c22,_0x486e5c)=>_0x27a33c(_0x269c22,_0x1b229d+'-'+_0x3e7d28['tag']+'-'+_0x486e5c,_0x24c088,void 0x0,_0x3d52a8)));}function _0x5d268f(_0x62f42,_0x2734fd,_0x3af83c){const _0x248b17=_0x3c9826,_0x5a19b3={..._0x62f42['attrs']};_0x3af83c!=null&&_0x3af83c[_0x248b17(0x283)]&&_0x5a19b3[_0x248b17(0x296)]===_0x248b17(0x283)&&(_0x5a19b3[_0x248b17(0x296)]=_0x3af83c[_0x248b17(0x283)]),_0x62f42[_0x248b17(0x243)]===_0x248b17(0x276)&&_0x5a19b3['id']&&(_0x5a19b3['id']=_0x5a19b3['id']+_0x2734fd[_0x248b17(0x258)]),Object[_0x248b17(0x2f7)](_0x5a19b3)[_0x248b17(0x241)](([_0x5aa8af,_0x20aebf])=>{const _0x3e7466=_0x248b17;_0x5aa8af===_0x3e7466(0x276)&&typeof _0x20aebf=='string'&&(_0x5a19b3[_0x5aa8af]=_0x20aebf[_0x3e7466(0x2cc)](/url\(#(.*)\)/,_0x3e7466(0x233)+_0x2734fd[_0x3e7466(0x258)]+')'));});const {defIds:_0x2de0b3}=_0x2734fd;return!_0x2de0b3||_0x2de0b3[_0x248b17(0x20b)]===0x0||(_0x62f42[_0x248b17(0x243)]===_0x248b17(0x2ea)&&_0x5a19b3['xlink:href']&&(_0x5a19b3[_0x248b17(0x2d1)]=_0x5a19b3[_0x248b17(0x2d1)]+_0x2734fd[_0x248b17(0x258)]),Object[_0x248b17(0x2f7)](_0x5a19b3)[_0x248b17(0x241)](([_0x482b95,_0x3ba5bd])=>{const _0x418904=_0x248b17;typeof _0x3ba5bd==_0x418904(0x2a5)&&(_0x5a19b3[_0x482b95]=_0x3ba5bd[_0x418904(0x2cc)](/url\(#(.*)\)/,_0x418904(0x233)+_0x2734fd[_0x418904(0x258)]+')'));})),_0x5a19b3;}function _0xdf7b28(_0x1b24df,_0x3e1204){const _0x252c40=_0x3c9826;var _0x126846;const {defIds:_0xd8f5c1}=_0x3e1204;return!_0xd8f5c1||_0xd8f5c1[_0x252c40(0x20b)]===0x0?_0x1b24df:_0x1b24df['tag']==='defs'&&((_0x126846=_0x1b24df[_0x252c40(0x2c1)])!=null&&_0x126846[_0x252c40(0x20b)])?{..._0x1b24df,'children':_0x1b24df[_0x252c40(0x2c1)][_0x252c40(0x288)](_0x43b45f=>typeof _0x43b45f[_0x252c40(0x2e1)]['id']==_0x252c40(0x2a5)&&_0xd8f5c1&&_0xd8f5c1[_0x252c40(0x2ff)](_0x43b45f[_0x252c40(0x2e1)]['id'])?{..._0x43b45f,'attrs':{..._0x43b45f[_0x252c40(0x2e1)],'id':_0x43b45f[_0x252c40(0x2e1)]['id']+_0x3e1204[_0x252c40(0x258)]}}:_0x43b45f)}:_0x1b24df;}function _0x580f6b(){const _0x1f4981=_0x3c9826;return Math[_0x1f4981(0x26a)]()[_0x1f4981(0x251)](0x24)[_0x1f4981(0x231)](0x2,0x8);}_0x5b1483[_0x3c9826(0x204)]=_0x3c9826(0x2aa);const _0x38c2bb={'tag':'svg','attrs':{'xmlns':_0x3c9826(0x2f5),'fill':_0x3c9826(0x23e),'viewBox':_0x3c9826(0x298),'width':_0x3c9826(0x2a6),'height':_0x3c9826(0x2a6)},'children':[{'tag':'g','attrs':{'fill':_0x3c9826(0x275),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x3c9826(0x22c),'attrs':{'d':_0x3c9826(0x273)}},{'tag':_0x3c9826(0x22c),'attrs':{'d':_0x3c9826(0x2ca)}}]},{'tag':_0x3c9826(0x2af),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3c9826(0x222)},'children':[{'tag':_0x3c9826(0x22c),'attrs':{'fill':_0x3c9826(0x2e9),'d':_0x3c9826(0x26b)}}]}]}],'defIds':[_0x3c9826(0x222)]},_0x1d84c0=_0x3c6641[_0x3c9826(0x2e8)](function(_0x168cb1,_0x23abe3){const _0x28823c=_0x3c9826;return _0x3c6641[_0x28823c(0x2f3)](_0x5b1483,Object[_0x28823c(0x245)]({},_0x168cb1,{'id':_0x28823c(0x269),'ref':_0x23abe3,'icon':_0x38c2bb}));});_0x1d84c0['displayName']=_0x3c9826(0x264);var _0x2da90a=Object[_0x3c9826(0x1f6)],_0x4010eb=(_0x490dc9,_0x333534,_0x5c5391,_0x3715c7)=>{const _0x394b16=_0x3c9826;for(var _0x51f0f9=_0x3715c7>0x1?void 0x0:_0x3715c7?_0x2da90a(_0x333534,_0x5c5391):_0x333534,_0x513ac1=_0x490dc9[_0x394b16(0x20b)]-0x1,_0x5af7b1;_0x513ac1>=0x0;_0x513ac1--)(_0x5af7b1=_0x490dc9[_0x513ac1])&&(_0x51f0f9=_0x5af7b1(_0x51f0f9)||_0x51f0f9);return _0x51f0f9;},_0x2c4b11=(_0x2a76eb,_0x1ee72a)=>(_0x2bec16,_0x865f1c)=>_0x1ee72a(_0x2bec16,_0x865f1c,_0x2a76eb);const _0x2b7dd7=_0x3c9826(0x2df),_0x508c64=_0x3c9826(0x29f),_0x3c7fa6=_0x3c9826(0x2c3);_0x167860[_0x3c9826(0x209)]=class extends _0x44428b[_0x3c9826(0x1f5)]{constructor(_0x123977,_0x3e5f47,_0x3099a8,_0x574069,_0x1dc21b,_0x520d9b,_0x3011c3,_0x211f63,_0x1bfda3,_0x4600ae){const _0x10f9d7=_0x3c9826;super(),_0x34084d(this,_0x10f9d7(0x2b4),new _0x3a2b19[(_0x10f9d7(0x21b))](null)),_0x34084d(this,'historyUniver$',this['_historyUniver$'][_0x10f9d7(0x28e)]()),_0x34084d(this,'_disposableCollection',new _0x44428b[(_0x10f9d7(0x2f6))]()),_0x34084d(this,_0x10f9d7(0x2da),new Map()),(this['_localeService']=_0x123977,this[_0x10f9d7(0x2cf)]=_0x3e5f47,this[_0x10f9d7(0x2e6)]=_0x3099a8,this[_0x10f9d7(0x274)]=_0x574069,this[_0x10f9d7(0x2b1)]=_0x1dc21b,this[_0x10f9d7(0x2f9)]=_0x520d9b,this['_selectionProtectionRuleModel']=_0x3011c3,this['_dialogService']=_0x211f63,this[_0x10f9d7(0x308)]=_0x1bfda3,this['_themeService']=_0x4600ae,this[_0x10f9d7(0x255)]());}get[_0x3c9826(0x2fc)](){const _0x3d43a1=_0x3c9826;return this[_0x3d43a1(0x2b4)]['value'];}[_0x3c9826(0x255)](){const _0x533e2c=_0x3c9826;this[_0x533e2c(0x25d)](),this[_0x533e2c(0x2fa)]();}[_0x3c9826(0x25d)](){const _0x126a50=_0x3c9826;var _0x4e3c03;const _0xfbe37e=(_0x4e3c03=this[_0x126a50(0x2e6)]['getConfig'](_0x508c64))!=null?_0x4e3c03:_0x2b7dd7,_0x519cd5=document[_0x126a50(0x25e)](_0xfbe37e);if(!_0x519cd5)return;const _0x19221d=document[_0x126a50(0x2f3)](_0x126a50(0x20e));_0x19221d['id']=_0x3c7fa6,_0x19221d[_0x126a50(0x27e)][_0x126a50(0x2be)]=_0x126a50(0x1f7),_0x19221d['style'][_0x126a50(0x268)]=_0x126a50(0x2fd),_0x19221d['style'][_0x126a50(0x20f)]='0',_0x19221d[_0x126a50(0x247)][_0x126a50(0x2b2)]='0',_0x19221d[_0x126a50(0x247)]['width']='100%',_0x19221d[_0x126a50(0x247)]['height']=_0x126a50(0x2c7),_0x19221d[_0x126a50(0x247)][_0x126a50(0x27a)]=_0x126a50(0x205),_0x19221d['style'][_0x126a50(0x242)]='none',_0x519cd5['appendChild'](_0x19221d);}['_initPlugins'](){const _0x5d979=_0x3c9826;var _0x46059d;[[_0x5986b3['UniverRenderEnginePlugin']],[_0x30a757[_0x5d979(0x212)],{'container':_0x3c7fa6,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x30a757[_0x5d979(0x2c8)],null]]}],[_0x4939af['UniverNetworkPlugin']],[_0x3607ed['UniverDrawingPlugin'],{'override':[[_0x3607ed[_0x5d979(0x263)],null]]}],[_0x37270f['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0xf98f10[_0x5d979(0x21d)]],[_0x24537e[_0x5d979(0x1fb)]],[_0x3913e3[_0x5d979(0x200)],{'notExecuteFormula':!0x0}],[_0x4fd370[_0x5d979(0x27c)]],[_0x1a488f['UniverSheetsFormulaPlugin']],[_0xa3429a['UniverSheetsFormulaUIPlugin']],[_0x5a511a[_0x5d979(0x253)]],[_0x1f496c['UniverSheetsFilterPlugin']],[_0x5dc53b[_0x5d979(0x2a0)]],[_0x2ab007[_0x5d979(0x21e)]],[_0x311eac['UniverSheetsConditionalFormattingUIPlugin']],[_0x5e6bdb[_0x5d979(0x203)]],[_0x466f8f[_0x5d979(0x23d)]],[_0x2d9c0e[_0x5d979(0x27b)]],[_0x2ece02[_0x5d979(0x281)]],[_0x27adf3[_0x5d979(0x26f)]],[_0x92aa60[_0x5d979(0x24d)],{'notExecuteFormula':!0x0}],[_0x44f66b[_0x5d979(0x2c0)],{'workerURL':_0x5d979(0x24c)}],[_0x121af6['UniverDrawingUIPlugin']],[_0x966fa3['UniverSheetsDrawingPlugin']],[_0x55f789[_0x5d979(0x302)]],[_0x506df5[_0x5d979(0x267)]],[_0x2309ec[_0x5d979(0x309)]],[_0x16c983[_0x5d979(0x2f4)],{'notExecuteFormula':!0x0}],[_0xef08b0[_0x5d979(0x202)],{'historyListServerUrl':(_0x46059d=this[_0x5d979(0x2e6)][_0x5d979(0x2ac)](_0x28ec9c))==null?void 0x0:_0x46059d[_0x5d979(0x29e)]}]][_0x5d979(0x241)](([_0x546d44,_0x55e2cf])=>this[_0x5d979(0x2ab)](_0x546d44,_0x55e2cf));}[_0x3c9826(0x279)](){const _0x19b46c=_0x3c9826;super['dispose'](),this[_0x19b46c(0x2b0)](),this[_0x19b46c(0x2da)]['clear']();}[_0x3c9826(0x2ab)](_0x5775c5,_0x223f0a,_0x1aba28){const _0x27c1af=_0x3c9826;if(this[_0x27c1af(0x2da)][_0x27c1af(0x271)](_0x5775c5[_0x27c1af(0x259)])&&!_0x1aba28)throw new Error(_0x27c1af(0x2cb)+_0x5775c5[_0x27c1af(0x259)]+_0x27c1af(0x1f2));this[_0x27c1af(0x2da)][_0x27c1af(0x226)](_0x5775c5[_0x27c1af(0x259)],[_0x5775c5,_0x223f0a]);}[_0x3c9826(0x287)](){const _0x544ad0=_0x3c9826;return Array[_0x544ad0(0x277)](this[_0x544ad0(0x2da)]['values']());}['mountHistoryContent'](_0x533e54){const _0x3d1039=_0x3c9826,_0x17c512=document['getElementById'](_0x3c7fa6);_0x17c512&&(_0x17c512[_0x3d1039(0x247)][_0x3d1039(0x242)]='block',this[_0x3d1039(0x227)](_0x533e54,_0x3c7fa6));}[_0x3c9826(0x2b0)](){const _0x5d800e=_0x3c9826;var _0x3ae5be;this[_0x5d800e(0x237)]['dispose'](),(_0x3ae5be=this['historyUniver'])==null||_0x3ae5be['dispose'](),this['_historyUniver$'][_0x5d800e(0x295)](null);const _0x20306c=document[_0x5d800e(0x25e)](_0x3c7fa6);_0x20306c&&(_0x20306c[_0x5d800e(0x247)][_0x5d800e(0x242)]='none');}[_0x3c9826(0x227)](_0x226ed4,_0x5b1bc6){const _0x1b73c0=_0x3c9826;if(this[_0x1b73c0(0x2fc)])return;const _0x14618d=new _0x44428b[(_0x1b73c0(0x252))]({'locales':{[this[_0x1b73c0(0x2b3)][_0x1b73c0(0x2ba)]()]:this[_0x1b73c0(0x2b3)]['getLocales']()},'override':[[_0x44428b[_0x1b73c0(0x2d0)],{'useClass':_0x893182[_0x1b73c0(0x240)]}]]}),_0x2da79c=_0x14618d[_0x1b73c0(0x22f)]();this[_0x1b73c0(0x2a3)](this[_0x1b73c0(0x24f)][_0x1b73c0(0x2db)][_0x1b73c0(0x292)](_0x1c064e=>{_0x2da79c['get'](_0x44428b['ThemeService'])['setDarkMode'](_0x1c064e);})),this[_0x1b73c0(0x2a3)](this[_0x1b73c0(0x24f)][_0x1b73c0(0x2e0)][_0x1b73c0(0x292)](_0x3e1c10=>{const _0x45b1e1=_0x1b73c0;_0x2da79c[_0x45b1e1(0x217)](_0x44428b[_0x45b1e1(0x257)])[_0x45b1e1(0x293)](_0x3e1c10);})),_0x2da79c[_0x1b73c0(0x217)](_0x44428b[_0x1b73c0(0x21a)])[_0x1b73c0(0x256)](this[_0x1b73c0(0x2b3)][_0x1b73c0(0x2ba)]()),_0x2da79c[_0x1b73c0(0x217)](_0x44428b['IConfigService'])['setConfig'](_0x893182[_0x1b73c0(0x25c)],this[_0x1b73c0(0x2e6)]['getConfig'](_0x893182[_0x1b73c0(0x25c)]));const _0x5b16be=this[_0x1b73c0(0x2e6)][_0x1b73c0(0x2ac)](_0x5d39be[_0x1b73c0(0x2d4)]);_0x5b16be&&_0x14618d[_0x1b73c0(0x2ab)](_0x5d39be['UniverLicensePlugin'],{'license':_0x5b16be['ls']}),this[_0x1b73c0(0x2da)][_0x1b73c0(0x241)](([_0x350082,_0xf6bf4])=>{const _0x483b9=_0x1b73c0;_0x14618d[_0x483b9(0x2ab)](_0x350082,_0xf6bf4);}),_0x2da79c[_0x1b73c0(0x28f)](_0x4c534d=>{const _0x443370=_0x1b73c0;this[_0x443370(0x2d8)](_0x4c534d,_0x226ed4);}),this[_0x1b73c0(0x2b4)][_0x1b73c0(0x295)](_0x14618d);const _0x28103b=_0x2da79c[_0x1b73c0(0x217)](_0xef08b0[_0x1b73c0(0x25a)]),_0x1d2f3d=this[_0x1b73c0(0x2dd)](_0x226ed4);_0x28103b[_0x1b73c0(0x1f4)](_0x226ed4,_0x5b1bc6,_0x1d2f3d);}['_initListener'](_0x1bc5ac,_0x27350f){const _0x25f66a=_0x3c9826,_0x874ae7=_0x1bc5ac[_0x25f66a(0x217)](_0xef08b0['HistoryManagerService']);this[_0x25f66a(0x237)][_0x25f66a(0x1fa)](_0x874ae7['status$'][_0x25f66a(0x292)](_0x41127c=>{const _0xaf6c5=_0x25f66a;switch(_0x41127c){case _0xef08b0['HistoryModeStatus'][_0xaf6c5(0x235)]:this[_0xaf6c5(0x2b8)][_0xaf6c5(0x2fe)](),this['_sidebarService']['close']();break;case _0xef08b0[_0xaf6c5(0x28d)][_0xaf6c5(0x294)]:this[_0xaf6c5(0x2b0)]();break;case _0xef08b0[_0xaf6c5(0x28d)][_0xaf6c5(0x2d2)]:this['unMountHistoryContent'](),this['_messageService'][_0xaf6c5(0x29a)]({'content':this[_0xaf6c5(0x2b3)]['t'](_0xaf6c5(0x232)),'type':_0xb5b35d[_0xaf6c5(0x214)][_0xaf6c5(0x2d2)],'duration':0xbb8});break;}})),this[_0x25f66a(0x237)][_0x25f66a(0x1fa)](_0x874ae7[_0x25f66a(0x2d3)][_0x25f66a(0x292)](async _0x57ecc1=>{const _0x2bea32=_0x25f66a;_0x57ecc1&&this[_0x2bea32(0x274)]['executeCommand'](_0x5a511a[_0x2bea32(0x20a)]['id'],{'unitId':_0x27350f,'revision':_0x57ecc1});}));}['_checkCanRevert'](_0x6610e6){const _0x3a26a5=_0x3c9826,_0x593e2d=this[_0x3a26a5(0x2cf)]['getUnit'](_0x6610e6)[_0x3a26a5(0x229)]()[_0x3a26a5(0x288)](_0x55d4e3=>_0x55d4e3[_0x3a26a5(0x2ed)]()),_0xf6f5b9=new _0x3913e3['WorkbookEditablePermission'](_0x6610e6)['id'],_0xcd4599=_0x593e2d['map'](_0x1fe28c=>new _0x3913e3['WorksheetEditPermission'](_0x6610e6,_0x1fe28c)['id']),_0x3f30c2=_0x593e2d['map'](_0x4f8630=>this['_selectionProtectionRuleModel'][_0x3a26a5(0x262)](_0x6610e6,_0x4f8630)['map'](_0x54bdee=>new _0x3913e3[(_0x3a26a5(0x2a9))](_0x6610e6,_0x4f8630,_0x54bdee[_0x3a26a5(0x2a8)])['id']))['flat'](),_0x3db6f2=new _0x3913e3['WorkbookRecoverHistoryPermission'](_0x6610e6)['id'];return this[_0x3a26a5(0x2f9)][_0x3a26a5(0x27d)]([_0xf6f5b9,..._0xcd4599,..._0x3f30c2,_0x3db6f2])[_0x3a26a5(0x224)](_0x545f71=>!!_0x545f71[_0x3a26a5(0x26e)]);}},_0x167860['HistoryLoaderService']=_0x4010eb([_0x2c4b11(0x0,_0x44428b[_0x3c9826(0x2e4)](_0x44428b[_0x3c9826(0x21a)])),_0x2c4b11(0x1,_0x44428b[_0x3c9826(0x25b)]),_0x2c4b11(0x2,_0x44428b[_0x3c9826(0x2fb)]),_0x2c4b11(0x3,_0x44428b['ICommandService']),_0x2c4b11(0x4,_0x30a757[_0x3c9826(0x206)]),_0x2c4b11(0x5,_0x44428b[_0x3c9826(0x30a)]),_0x2c4b11(0x6,_0x44428b[_0x3c9826(0x2e4)](_0x3913e3['RangeProtectionRuleModel'])),_0x2c4b11(0x7,_0x44428b[_0x3c9826(0x2e4)](_0x30a757[_0x3c9826(0x2c8)])),_0x2c4b11(0x8,_0x44428b[_0x3c9826(0x2e4)](_0x30a757[_0x3c9826(0x2c9)])),_0x2c4b11(0x9,_0x44428b['Inject'](_0x44428b[_0x3c9826(0x257)]))],_0x167860['HistoryLoaderService']);const _0x17c179={'id':_0x3c9826(0x22e),'type':_0x44428b[_0x3c9826(0x2ef)]['OPERATION'],'handler':_0x535771=>{const _0x499bc9=_0x3c9826,_0x33fb6d=_0x535771['get'](_0x167860[_0x499bc9(0x209)]),_0x3a35ce=_0x535771[_0x499bc9(0x217)](_0x44428b[_0x499bc9(0x25b)]),{unitId:_0x1ad143}=_0x3913e3[_0x499bc9(0x24b)](_0x3a35ce)||{};return _0x1ad143?(_0x33fb6d[_0x499bc9(0x297)](_0x1ad143),!0x0):!0x1;}};function _0x21601f(_0x4424fc){const _0x55e4af=_0x3c9826;return{'id':_0x17c179['id'],'type':_0x30a757[_0x55e4af(0x2a7)]['BUTTON'],'icon':'HistoryIcon','tooltip':_0x55e4af(0x2b6),'hidden$':_0x30a757[_0x55e4af(0x210)](_0x4424fc,_0x44428b[_0x55e4af(0x2c5)][_0x55e4af(0x26c)]),'disabled$':_0x4fd370[_0x55e4af(0x22d)](_0x4424fc,{'workbookTypes':[_0x3913e3[_0x55e4af(0x286)],_0x3913e3[_0x55e4af(0x291)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x2e1e40={[_0x30a757['RibbonStartGroup'][_0x3c9826(0x282)]]:{[_0x17c179['id']]:{'order':0.2,'menuItemFactory':_0x21601f}}};var _0x2a5a57=Object[_0x3c9826(0x1f6)],_0x43978f=(_0x75669c,_0xf92fb8,_0x5a9a32,_0x280b0d)=>{for(var _0x481cfa=_0x280b0d>0x1?void 0x0:_0x280b0d?_0x2a5a57(_0xf92fb8,_0x5a9a32):_0xf92fb8,_0x39ae24=_0x75669c['length']-0x1,_0x14b39d;_0x39ae24>=0x0;_0x39ae24--)(_0x14b39d=_0x75669c[_0x39ae24])&&(_0x481cfa=_0x14b39d(_0x481cfa)||_0x481cfa);return _0x481cfa;},_0x59f2dd=(_0x46a5df,_0x4e02af)=>(_0x55e538,_0xad1b65)=>_0x4e02af(_0x55e538,_0xad1b65,_0x46a5df);let _0x35b29b=class extends _0x44428b[_0x3c9826(0x2a4)]{constructor(_0x388fa9,_0x5e6fc6,_0x30fca1,_0x2df109,_0x43f323,_0x591e2b,_0x58e065,_0x30a07b){const _0x4abec0=_0x3c9826;super(),_0x34084d(this,_0x4abec0(0x2bc),null),(this[_0x4abec0(0x274)]=_0x388fa9,this[_0x4abec0(0x1ee)]=_0x5e6fc6,this['_componentManager']=_0x30fca1,this[_0x4abec0(0x223)]=_0x2df109,this[_0x4abec0(0x2b3)]=_0x43f323,this['_messageService']=_0x591e2b,this[_0x4abec0(0x213)]=_0x58e065,this['_localCacheService']=_0x30a07b,this[_0x4abec0(0x255)]());}[_0x3c9826(0x255)](){const _0xac57f7=_0x3c9826;[_0x17c179][_0xac57f7(0x241)](_0x324023=>this[_0xac57f7(0x2a3)](_0x44428b[_0xac57f7(0x234)](this['_commandService'][_0xac57f7(0x21f)](_0x324023)))),this[_0xac57f7(0x2a3)](this['_componentManager'][_0xac57f7(0x2c4)](_0xac57f7(0x264),_0x1d84c0)),this[_0xac57f7(0x1ee)][_0xac57f7(0x2e5)](_0x2e1e40),this[_0xac57f7(0x2a3)](this[_0xac57f7(0x274)][_0xac57f7(0x27f)](_0x3bf598=>{const _0x217aba=_0xac57f7;if(_0x3bf598['id']===_0x5a511a[_0x217aba(0x20a)]['id']){this[_0x217aba(0x2b1)][_0x217aba(0x29a)]({'content':this[_0x217aba(0x2b3)]['t'](_0x217aba(0x228)),'type':_0xb5b35d[_0x217aba(0x214)][_0x217aba(0x208)],'duration':0x1388});const {unitId:_0x1cdcc4}=_0x3bf598[_0x217aba(0x246)],_0x27fa46=this[_0x217aba(0x213)][_0x217aba(0x306)](_0x1cdcc4),_0x1c50bf=_0x3a2b19[_0x217aba(0x2b9)]([_0x27fa46[_0x217aba(0x2f0)][_0x217aba(0x2f1)],_0x27fa46[_0x217aba(0x265)]])[_0x217aba(0x292)](async([_0x48bc14,_0x3d5941])=>{const _0x5d318d=_0x217aba;var _0x2209e0;_0x48bc14[_0x5d318d(0x261)]===_0x5a511a[_0x5d318d(0x278)][_0x5d318d(0x2e2)]&&(_0x3d5941==null?void 0x0:_0x3d5941[_0x5d318d(0x2d6)])===_0x893182['CollaborationStatus']['SYNCED']&&_0x48bc14[_0x5d318d(0x2cd)][_0x5d318d(0x1ff)]['some'](_0x53596e=>_0x53596e['id']===_0x5a511a[_0x5d318d(0x20a)]['id'])&&(this[_0x5d318d(0x223)][_0x5d318d(0x2b0)](),_0x1c50bf['unsubscribe'](),this[_0x5d318d(0x2bc)]&&clearTimeout(this[_0x5d318d(0x2bc)]),await((_0x2209e0=this[_0x5d318d(0x2ec)])==null?void 0x0:_0x2209e0[_0x5d318d(0x23c)]()),setTimeout(()=>window[_0x5d318d(0x2e7)]['reload']()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x348791=_0x217aba;_0x1c50bf['unsubscribe'](),this[_0x348791(0x2b1)][_0x348791(0x29a)]({'content':this[_0x348791(0x2b3)]['t']('editHistory.panel.revertFailed'),'type':_0xb5b35d[_0x348791(0x214)][_0x348791(0x2d2)],'duration':0xbb8});},0x1388);}}));}};_0x35b29b=_0x43978f([_0x59f2dd(0x0,_0x44428b[_0x3c9826(0x1f3)]),_0x59f2dd(0x1,_0x30a757[_0x3c9826(0x22b)]),_0x59f2dd(0x2,_0x44428b[_0x3c9826(0x2e4)](_0x30a757['ComponentManager'])),_0x59f2dd(0x3,_0x44428b[_0x3c9826(0x2e4)](_0x167860[_0x3c9826(0x209)])),_0x59f2dd(0x4,_0x44428b[_0x3c9826(0x2e4)](_0x44428b[_0x3c9826(0x21a)])),_0x59f2dd(0x5,_0x30a757[_0x3c9826(0x206)]),_0x59f2dd(0x6,_0x44428b[_0x3c9826(0x2e4)](_0x893182['CollaborationController'])),_0x59f2dd(0x7,_0x893182[_0x3c9826(0x244)])],_0x35b29b);var _0x53c9f6=Object[_0x3c9826(0x1f6)],_0x3ffd89=(_0x480e8d,_0x3bc37d,_0x44da27,_0x3522a8)=>{const _0x4e952d=_0x3c9826;for(var _0xab6a1b=_0x3522a8>0x1?void 0x0:_0x3522a8?_0x53c9f6(_0x3bc37d,_0x44da27):_0x3bc37d,_0x594583=_0x480e8d[_0x4e952d(0x20b)]-0x1,_0xc8ce48;_0x594583>=0x0;_0x594583--)(_0xc8ce48=_0x480e8d[_0x594583])&&(_0xab6a1b=_0xc8ce48(_0xab6a1b)||_0xab6a1b);return _0xab6a1b;},_0x225be4=(_0x2a330a,_0x368335)=>(_0x11dadc,_0x267ec5)=>_0x368335(_0x11dadc,_0x267ec5,_0x2a330a);const _0x2f7d3f=_0x3c9826(0x270);_0x167860[_0x3c9826(0x2c6)]=(_0x33159f=class extends _0x44428b[_0x3c9826(0x238)]{constructor(_0x34f761=_0x323f79,_0x48fca8,_0x1b91fe){const _0x124d06=_0x3c9826;super(),this[_0x124d06(0x2a2)]=_0x34f761,this[_0x124d06(0x28a)]=_0x48fca8,this[_0x124d06(0x2e6)]=_0x1b91fe;const {menu:_0x3907e1,..._0x2d3dda}=_0x44428b[_0x124d06(0x2d5)]({},_0x323f79,this['_config']);_0x3907e1&&this[_0x124d06(0x2e6)][_0x124d06(0x28b)]('menu',_0x3907e1,{'merge':!0x0}),this[_0x124d06(0x2e6)][_0x124d06(0x28b)](_0x28ec9c,_0x2d3dda),this['_config'][_0x124d06(0x21c)]&&this[_0x124d06(0x2e6)]['setConfig'](_0x508c64,this[_0x124d06(0x2a2)]['univerContainerId']);}[_0x3c9826(0x2f8)](){const _0x2eb47d=_0x3c9826;[[_0x167860['HistoryLoaderService']],[_0x35b29b]][_0x2eb47d(0x241)](_0x238386=>this[_0x2eb47d(0x28a)]['add'](_0x238386));}[_0x3c9826(0x2ad)](){const _0x2c872e=_0x3c9826;this[_0x2c872e(0x28a)]['get'](_0x35b29b);}},_0x34084d(_0x33159f,_0x3c9826(0x301),_0x44428b[_0x3c9826(0x2c5)][_0x3c9826(0x2eb)]),_0x34084d(_0x33159f,'pluginName',_0x2f7d3f),_0x33159f),_0x167860[_0x3c9826(0x2c6)]=_0x3ffd89([_0x225be4(0x1,_0x44428b[_0x3c9826(0x2e4)](_0x44428b[_0x3c9826(0x20c)])),_0x225be4(0x2,_0x44428b['IConfigService'])],_0x167860['UniverEditHistoryLoaderPlugin']),_0x167860[_0x3c9826(0x1f9)]=_0x508c64,_0x167860[_0x3c9826(0x220)]=_0x3c7fa6,Object[_0x3c9826(0x2a1)](_0x167860,Symbol[_0x3c9826(0x290)],{'value':_0x3c9826(0x300)});}));function _0x4837(){const _0x506ba2=['onSteady','@univerjs-pro/collaboration','defs','unMountHistoryContent','_messageService','left','_localeService','_historyUniver$','UniverDesign','editHistory.panel.title','UniverRpc','_dialogService','combineLatest','getCurrentLocale','UniverSheetsHyperLinkUi','_revertErrorTimer','2084750VfNWaS','uComp','UniverSheetsDataValidation','UniverRPCMainThreadPlugin','children','UniverSheetsConditionalFormattingUi','univer-history-container','register','UniverInstanceType','UniverEditHistoryLoaderPlugin','100%','IDialogService','ISidebarService','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','[HistoryLoaderService]:\x20Plugin\x20','replace','data','UniverDrawing','_univerInstanceService','IAuthzIoService','xlink:href','Error','revertRevision$','LS_CONFIG_KEY','merge','status','@univerjs/sheets-filter-ui','_initListener','1862xwLbMH','_pluginMap','darkMode$','UniverDocsUi','_checkCanRevert','UniverSheetsUi','univer-container','currentTheme$','attrs','CHANGESET_ACK','object','Inject','mergeMenu','_configService','location','forwardRef','white','use','UNIVER_UNKNOWN','_localCacheService','getSheetId','@univerjs/sheets-numfmt','CommandType','session','event$','exports','createElement','UniverSheetsPivotTablePlugin','http://www.w3.org/2000/svg','DisposableCollection','entries','onStarting','_permissionService','_initPlugins','IConfigService','historyUniver','absolute','closeAll','includes','Module','type','UniverSheetsDrawingUIPlugin','React','@univerjs/engine-render','current','getCollabEntity','@univerjs/drawing','_sidebarService','UniverSheetSparklineUIPlugin','IPermissionService','@univerjs/sheets-ui','36172737uZsZye','_menuManagerService','UniverSheetsDrawingUi','@univerjs/sheets','@univerjs-pro/collaboration-client','\x20has\x20been\x20registered.','ICommandService','triggerLoadVersions','Disposable','getOwnPropertyDescriptor','history-container','rxjs','UNIVER_CONTAINER_ID_KEY','add','UniverSheetsNumfmtPlugin','UniverProEditHistoryViewer','@univerjs/data-validation','UniverSheetsDataValidationUi','mutations','UniverSheetsPlugin','UniverProLicense','UniverEditHistoryViewerPlugin','UniverSheetsHyperLinkPlugin','displayName','1000','IMessageService','UniverProCollaborationClient','Loading','HistoryLoaderService','RevertRevisionMutation','length','Injector','trim','div','top','getMenuHiddenObservable','@univerjs/docs-ui','UniverUIPlugin','_collaborationController','MessageType','2KCcjcK','@univerjs/sheets-conditional-formatting-ui','get','@univerjs/docs','@univerjs/sheets-drawing','LocaleService','BehaviorSubject','univerContainerId','UniverDocsUIPlugin','UniverSheetsConditionalFormattingPlugin','registerCommand','UNIVER_HISTORY_CONTAINER_ID','UniverSheetsNumfmt','history-icon_clip0_907_281','_historyManagerService','every','654059vEsKFm','set','_initUniver','editHistory.panel.reverting','getSheets','UniverSheetsFilter','IMenuManagerService','path','getCurrentRangeDisable$','univer.operation.toggle-edit-history','__getInjector','UniverSheetsDrawing','substring','editHistory.panel.listFetchError','url(#$1','toDisposable','Entered','react','_disposableCollection','Plugin','UniverSheetsFilterUi','4137556XonSJj','@univerjs/sheets-filter','exhaustSavingTask','UniverSheetsHyperLinkUIPlugin','none','UniverSheetsFormula','AuthzIoHttpService','forEach','display','tag','ILocalCacheService','assign','params','style','UniverProSheetsPivot','@univerjs/sheets-formula','UniverEngineFormula','getSheetCommandTarget','./worker.js','UniverFormulaEnginePlugin','@univerjs/sheets-drawing-ui','_themeService','@univerjs-pro/sheets-sparkline-ui','toString','Univer','UniverCollaborationPlugin','6769002EtKnUY','_init','setLocale','ThemeService','idSuffix','pluginName','HistoryManagerService','IUniverInstanceService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_initContainer','getElementById','2461245GIDDxy','UniverSheetsHyperLink','eventID','getSubunitRuleList','IImageIoService','HistoryIcon','state$','amd','UniverSheetSparklinePlugin','position','history-icon','random','M0\x200H16V16H0z','UNIVER_SHEET','@univerjs-pro/edit-history-viewer','value','UniverSheetsDataValidationUIPlugin','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','has','useRef','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','_commandService','currentColor','mask','from','CollaborationEvent','dispose','zIndex','UniverDataValidationPlugin','UniverSheetsUIPlugin','composePermission','dataset','onCommandExecuted','@univerjs/drawing-ui','UniverSheetsDataValidationPlugin','OTHERS','colorChannel1','@univerjs/sheets-conditional-formatting','@univerjs/sheets-hyper-link','WorkbookEditablePermission','getAllPlugins','map','UniverUi','_injector','setConfig','UniverProCollaboration','HistoryModeStatus','asObservable','invoke','toStringTag','WorkbookViewHistoryPermission','subscribe','setTheme','Exited','next','fill','mountHistoryContent','0\x200\x2016\x2016','19936fmbAvq','show','@univerjs/sheets-formula-ui','univerjs-icon\x20univerjs-icon-','@univerjs/design','historyListServerUrl','UNIVER_CONTAINER_ID','UniverSheetsFilterUIPlugin','defineProperty','_config','disposeWithMe','RxDisposable','string','1em','MenuItemType','permissionId','RangeProtectionPermissionEditPoint','UniverIcon','registerPlugin','getConfig'];_0x4837=function(){return _0x506ba2;};return _0x4837();}
1
+ (function(_0x50c129,_0x55a3e5){const _0x4c34c4=_0x1da9,_0x4591c4=_0x50c129();while(!![]){try{const _0x1623e6=-parseInt(_0x4c34c4(0x12f))/0x1*(parseInt(_0x4c34c4(0x1b0))/0x2)+-parseInt(_0x4c34c4(0xf7))/0x3*(-parseInt(_0x4c34c4(0x188))/0x4)+-parseInt(_0x4c34c4(0x1c3))/0x5*(-parseInt(_0x4c34c4(0x145))/0x6)+-parseInt(_0x4c34c4(0x1b9))/0x7+-parseInt(_0x4c34c4(0x1bb))/0x8+-parseInt(_0x4c34c4(0x14e))/0x9*(parseInt(_0x4c34c4(0x11b))/0xa)+parseInt(_0x4c34c4(0x165))/0xb;if(_0x1623e6===_0x55a3e5)break;else _0x4591c4['push'](_0x4591c4['shift']());}catch(_0x2f3fba){_0x4591c4['push'](_0x4591c4['shift']());}}}(_0x1564,0xe66e7),function(_0xd39d41,_0x3194fa){const _0x37a205=_0x1da9;typeof exports==_0x37a205(0x109)&&typeof module<'u'?_0x3194fa(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==_0x37a205(0x1c5)&&define[_0x37a205(0x196)]?define([_0x37a205(0x1ea),'@univerjs/core',_0x37a205(0xf5),_0x37a205(0x102),'@univerjs/design',_0x37a205(0x19b),'@univerjs/ui',_0x37a205(0x204),_0x37a205(0x211),'@univerjs-pro/edit-history-viewer','@univerjs-pro/license',_0x37a205(0x125),'@univerjs-pro/sheets-chart-ui','@univerjs-pro/sheets-pivot',_0x37a205(0x1fe),_0x37a205(0x172),_0x37a205(0x139),_0x37a205(0x148),'@univerjs/docs-ui','@univerjs/drawing',_0x37a205(0x192),_0x37a205(0x110),_0x37a205(0x138),_0x37a205(0xfb),'@univerjs/rpc',_0x37a205(0x115),_0x37a205(0x137),_0x37a205(0x107),_0x37a205(0x1cd),_0x37a205(0x1a1),_0x37a205(0x14a),_0x37a205(0x1a9),'@univerjs/sheets-filter-ui',_0x37a205(0x1d0),_0x37a205(0x1c0),'@univerjs/sheets-hyper-link','@univerjs/sheets-hyper-link-ui','@univerjs/sheets-numfmt',_0x37a205(0x133)],_0x3194fa):(_0xd39d41=typeof globalThis<'u'?globalThis:_0xd39d41||self,_0x3194fa(_0xd39d41[_0x37a205(0x1cf)]={},_0xd39d41[_0x37a205(0x1f7)],_0xd39d41[_0x37a205(0x1c8)],_0xd39d41['UniverProCollaborationClient'],_0xd39d41['UniverDesign'],_0xd39d41[_0x37a205(0xfd)],_0xd39d41[_0x37a205(0x1e6)],_0xd39d41[_0x37a205(0x204)],_0xd39d41[_0x37a205(0x12c)],_0xd39d41['UniverProEditHistoryViewer'],_0xd39d41[_0x37a205(0x198)],_0xd39d41[_0x37a205(0x1ac)],_0xd39d41[_0x37a205(0x12a)],_0xd39d41[_0x37a205(0x205)],_0xd39d41[_0x37a205(0x187)],_0xd39d41['UniverProSheetsSparklineUi'],_0xd39d41['UniverDataValidation'],_0xd39d41['UniverDocs'],_0xd39d41[_0x37a205(0x1f8)],_0xd39d41[_0x37a205(0x1b8)],_0xd39d41[_0x37a205(0x1dc)],_0xd39d41[_0x37a205(0x17b)],_0xd39d41[_0x37a205(0x17e)],_0xd39d41[_0x37a205(0x118)],_0xd39d41['UniverRpc'],_0xd39d41['UniverSheetsConditionalFormatting'],_0xd39d41[_0x37a205(0x140)],_0xd39d41[_0x37a205(0x180)],_0xd39d41[_0x37a205(0x121)],_0xd39d41[_0x37a205(0x201)],_0xd39d41[_0x37a205(0x113)],_0xd39d41[_0x37a205(0x149)],_0xd39d41[_0x37a205(0x101)],_0xd39d41[_0x37a205(0x189)],_0xd39d41[_0x37a205(0x130)],_0xd39d41[_0x37a205(0x11f)],_0xd39d41[_0x37a205(0x1ca)],_0xd39d41['UniverSheetsNumfmt'],_0xd39d41[_0x37a205(0x17a)]));}(this,function(_0xd454b2,_0x4f7a23,_0x45ae20,_0x4fd6c9,_0x25e92e,_0x299054,_0x57b175,_0x28e36b,_0x4e4203,_0x41f8e7,_0x45569d,_0x204db8,_0x9f9cbd,_0x46db27,_0x15958a,_0x3496a9,_0x4b74c4,_0x927d93,_0x11fa0a,_0x32b69c,_0x3f6896,_0x540990,_0x5521ec,_0x17379e,_0x8cab20,_0x26d8f2,_0x442aa7,_0x1ecb2d,_0xc06005,_0x4c74a5,_0x53bb41,_0x3d0894,_0x29d15c,_0x220ea1,_0x5efb11,_0x3dc081,_0x9a6dba,_0x332790,_0x19421e){'use strict';const _0x1cc33a=_0x1da9;var _0x1be822=Object[_0x1cc33a(0x1c7)],_0x21a196=(_0x208a7e,_0x3a35ba,_0x5a77be)=>_0x3a35ba in _0x208a7e?_0x1be822(_0x208a7e,_0x3a35ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a77be}):_0x208a7e[_0x3a35ba]=_0x5a77be,_0x234bfc=(_0x4c3b98,_0xb5c054,_0x3a30c5)=>_0x21a196(_0x4c3b98,typeof _0xb5c054!='symbol'?_0xb5c054+'':_0xb5c054,_0x3a30c5),_0x2d551b;const _0x1f3100=_0x1cc33a(0x185),_0x195639={};function _0x270c3e({ref:_0x521498,..._0x4b941b}){const _0x174528=_0x1cc33a,{icon:_0x9c74ce,id:_0x125cb2,className:_0x358a65,extend:_0x130ff2,..._0x222f27}=_0x4b941b,_0x3dd22f=('univerjs-icon\x20univerjs-icon-'+_0x125cb2+'\x20'+(_0x358a65||''))[_0x174528(0x203)](),_0x6e994c=_0x299054[_0x174528(0x143)]('_'+_0x42fb33());return _0x1ed162(_0x9c74ce,''+_0x125cb2,{'defIds':_0x9c74ce[_0x174528(0x117)],'idSuffix':_0x6e994c[_0x174528(0x1e2)]},{'ref':_0x521498,'className':_0x3dd22f,..._0x222f27},_0x130ff2);}function _0x1ed162(_0x545745,_0x22f52f,_0x376c27,_0xc5beb9,_0x2c6554){const _0x1e06ba=_0x1cc33a;return _0x299054[_0x1e06ba(0x1e9)](_0x545745['tag'],{'key':_0x22f52f,..._0x237c60(_0x545745,_0x376c27,_0x2c6554),..._0xc5beb9},(_0x3a7414(_0x545745,_0x376c27)[_0x1e06ba(0x10b)]||[])[_0x1e06ba(0x1f3)]((_0x1bf8b7,_0x2deab1)=>_0x1ed162(_0x1bf8b7,_0x22f52f+'-'+_0x545745[_0x1e06ba(0x19f)]+'-'+_0x2deab1,_0x376c27,void 0x0,_0x2c6554)));}function _0x237c60(_0x73e422,_0x55bbdc,_0x1c5f90){const _0x24fb16=_0x1cc33a,_0x432631={..._0x73e422[_0x24fb16(0x10f)]};_0x1c5f90!=null&&_0x1c5f90[_0x24fb16(0x1c4)]&&_0x432631[_0x24fb16(0x1e0)]==='colorChannel1'&&(_0x432631[_0x24fb16(0x1e0)]=_0x1c5f90[_0x24fb16(0x1c4)]),_0x73e422[_0x24fb16(0x19f)]===_0x24fb16(0x209)&&_0x432631['id']&&(_0x432631['id']=_0x432631['id']+_0x55bbdc[_0x24fb16(0x147)]),Object[_0x24fb16(0xf6)](_0x432631)[_0x24fb16(0x191)](([_0x5430b0,_0x33ad79])=>{const _0x164f16=_0x24fb16;_0x5430b0==='mask'&&typeof _0x33ad79==_0x164f16(0x12d)&&(_0x432631[_0x5430b0]=_0x33ad79[_0x164f16(0x1f9)](/url\(#(.*)\)/,_0x164f16(0x1b1)+_0x55bbdc[_0x164f16(0x147)]+')'));});const {defIds:_0x26c997}=_0x55bbdc;return!_0x26c997||_0x26c997['length']===0x0||(_0x73e422['tag']===_0x24fb16(0x175)&&_0x432631[_0x24fb16(0x1a8)]&&(_0x432631['xlink:href']=_0x432631[_0x24fb16(0x1a8)]+_0x55bbdc[_0x24fb16(0x147)]),Object[_0x24fb16(0xf6)](_0x432631)['forEach'](([_0x274d98,_0xa1d2a9])=>{const _0x1698c3=_0x24fb16;typeof _0xa1d2a9==_0x1698c3(0x12d)&&(_0x432631[_0x274d98]=_0xa1d2a9[_0x1698c3(0x1f9)](/url\(#(.*)\)/,_0x1698c3(0x1b1)+_0x55bbdc['idSuffix']+')'));})),_0x432631;}function _0x3a7414(_0x5a32c4,_0x180c44){const _0xfbac85=_0x1cc33a;var _0x3fdc04;const {defIds:_0xfdf399}=_0x180c44;return!_0xfdf399||_0xfdf399[_0xfbac85(0x1ef)]===0x0?_0x5a32c4:_0x5a32c4[_0xfbac85(0x19f)]===_0xfbac85(0x1f6)&&((_0x3fdc04=_0x5a32c4[_0xfbac85(0x10b)])!=null&&_0x3fdc04['length'])?{..._0x5a32c4,'children':_0x5a32c4[_0xfbac85(0x10b)]['map'](_0x1df760=>typeof _0x1df760[_0xfbac85(0x10f)]['id']==_0xfbac85(0x12d)&&_0xfdf399&&_0xfdf399[_0xfbac85(0x1de)](_0x1df760[_0xfbac85(0x10f)]['id'])?{..._0x1df760,'attrs':{..._0x1df760[_0xfbac85(0x10f)],'id':_0x1df760[_0xfbac85(0x10f)]['id']+_0x180c44[_0xfbac85(0x147)]}}:_0x1df760)}:_0x5a32c4;}function _0x42fb33(){const _0x5bc3b1=_0x1cc33a;return Math[_0x5bc3b1(0x16f)]()[_0x5bc3b1(0x142)](0x24)['substring'](0x2,0x8);}_0x270c3e[_0x1cc33a(0x13f)]='UniverIcon';const _0x51a162={'tag':_0x1cc33a(0x13d),'attrs':{'xmlns':_0x1cc33a(0x1d8),'fill':_0x1cc33a(0x156),'viewBox':'0\x200\x2016\x2016','width':_0x1cc33a(0x11e),'height':_0x1cc33a(0x11e)},'children':[{'tag':'g','attrs':{'fill':_0x1cc33a(0x1a6),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x1cc33a(0x1f0),'attrs':{'d':_0x1cc33a(0x1b6)}},{'tag':_0x1cc33a(0x1f0),'attrs':{'d':_0x1cc33a(0x164)}}]},{'tag':_0x1cc33a(0x1f6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1cc33a(0x1d2)},'children':[{'tag':_0x1cc33a(0x1f0),'attrs':{'fill':_0x1cc33a(0x123),'d':_0x1cc33a(0x105)}}]}]}],'defIds':[_0x1cc33a(0x1d2)]},_0x43e4eb=_0x299054['forwardRef'](function(_0x2e84b4,_0x5d424e){const _0x3fd0ef=_0x1cc33a;return _0x299054[_0x3fd0ef(0x1e9)](_0x270c3e,Object[_0x3fd0ef(0x20d)]({},_0x2e84b4,{'id':_0x3fd0ef(0x166),'ref':_0x5d424e,'icon':_0x51a162}));});_0x43e4eb[_0x1cc33a(0x13f)]=_0x1cc33a(0x126);var _0x4233ab=Object[_0x1cc33a(0x10a)],_0x2340c9=(_0x5d3cc1,_0x390e1f,_0x377ad2,_0x283457)=>{for(var _0x5d4098=_0x283457>0x1?void 0x0:_0x283457?_0x4233ab(_0x390e1f,_0x377ad2):_0x390e1f,_0x2c7b76=_0x5d3cc1['length']-0x1,_0xca5e4d;_0x2c7b76>=0x0;_0x2c7b76--)(_0xca5e4d=_0x5d3cc1[_0x2c7b76])&&(_0x5d4098=_0xca5e4d(_0x5d4098)||_0x5d4098);return _0x5d4098;},_0x5061e3=(_0xb0c1af,_0x395962)=>(_0x544a10,_0x272883)=>_0x395962(_0x544a10,_0x272883,_0xb0c1af);const _0x211308=_0x1cc33a(0x152),_0x587b8b=_0x1cc33a(0x1da),_0x1f0749=_0x1cc33a(0x1aa);_0xd454b2[_0x1cc33a(0x16a)]=class extends _0x4f7a23[_0x1cc33a(0x104)]{constructor(_0x254502,_0x11f861,_0x307a9b,_0x3e9e49,_0x40c992,_0x17a168,_0x50cf2a,_0x194f5c,_0x3e259b,_0x13342e){const _0x3f914c=_0x1cc33a;super(),_0x234bfc(this,_0x3f914c(0xf3),new _0x28e36b['BehaviorSubject'](null)),_0x234bfc(this,'historyUniver$',this[_0x3f914c(0xf3)][_0x3f914c(0x1fb)]()),_0x234bfc(this,'_disposableCollection',new _0x4f7a23[(_0x3f914c(0x1ff))]()),_0x234bfc(this,'_pluginMap',new Map()),(this['_localeService']=_0x254502,this[_0x3f914c(0x10e)]=_0x11f861,this[_0x3f914c(0x144)]=_0x307a9b,this[_0x3f914c(0x14d)]=_0x3e9e49,this[_0x3f914c(0x177)]=_0x40c992,this[_0x3f914c(0x1d5)]=_0x17a168,this[_0x3f914c(0x1a3)]=_0x50cf2a,this[_0x3f914c(0x15c)]=_0x194f5c,this[_0x3f914c(0x17d)]=_0x3e259b,this[_0x3f914c(0x128)]=_0x13342e,this['_init']());}get[_0x1cc33a(0x1cc)](){const _0x49900e=_0x1cc33a;return this[_0x49900e(0xf3)][_0x49900e(0xf2)];}['_init'](){const _0x136e2a=_0x1cc33a;this[_0x136e2a(0x1b5)](),this[_0x136e2a(0x1d6)]();}['_initContainer'](){const _0x5a0358=_0x1cc33a;var _0x333f4b;const _0x371bfb=(_0x333f4b=this[_0x5a0358(0x144)][_0x5a0358(0x13e)](_0x587b8b))!=null?_0x333f4b:_0x211308,_0x17a442=document[_0x5a0358(0x114)](_0x371bfb);if(!_0x17a442)return;const _0x4fbac2=document[_0x5a0358(0x1e9)](_0x5a0358(0x190));_0x4fbac2['id']=_0x1f0749,_0x4fbac2['dataset'][_0x5a0358(0x18d)]='history-container',_0x4fbac2[_0x5a0358(0x1b7)]['position']=_0x5a0358(0x19a),_0x4fbac2[_0x5a0358(0x1b7)]['top']='0',_0x4fbac2[_0x5a0358(0x1b7)][_0x5a0358(0x18e)]='0',_0x4fbac2[_0x5a0358(0x1b7)][_0x5a0358(0x20f)]='100%',_0x4fbac2['style'][_0x5a0358(0x17f)]=_0x5a0358(0x1b3),_0x4fbac2[_0x5a0358(0x1b7)][_0x5a0358(0x157)]=_0x5a0358(0x10d),_0x4fbac2[_0x5a0358(0x1b7)][_0x5a0358(0x15e)]='none',_0x17a442[_0x5a0358(0x168)](_0x4fbac2);}[_0x1cc33a(0x1d6)](){const _0x2fe06e=_0x1cc33a;var _0x4c542e;[[_0x5521ec[_0x2fe06e(0x1a0)]],[_0x57b175[_0x2fe06e(0x183)],{'container':_0x1f0749,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x57b175[_0x2fe06e(0x1ab)],null]]}],[_0x17379e[_0x2fe06e(0x15a)]],[_0x32b69c['UniverDrawingPlugin'],{'override':[[_0x32b69c['IImageIoService'],null]]}],[_0x927d93[_0x2fe06e(0x174)],{'hasScroll':!0x1}],[_0x11fa0a[_0x2fe06e(0x186)]],[_0x332790[_0x2fe06e(0x1c2)]],[_0x4e4203[_0x2fe06e(0x154)],{'notExecuteFormula':!0x0}],[_0x19421e[_0x2fe06e(0x1c9)]],[_0x220ea1[_0x2fe06e(0x1b4)]],[_0x5efb11[_0x2fe06e(0x14f)]],[_0x45ae20['UniverCollaborationPlugin']],[_0x3d0894[_0x2fe06e(0x131)]],[_0x29d15c[_0x2fe06e(0x1ad)]],[_0x26d8f2[_0x2fe06e(0x1ba)]],[_0x442aa7['UniverSheetsConditionalFormattingUIPlugin']],[_0x3dc081['UniverSheetsHyperLinkPlugin']],[_0x9a6dba[_0x2fe06e(0x212)]],[_0x4b74c4[_0x2fe06e(0x1a4)]],[_0x1ecb2d[_0x2fe06e(0x1ed)]],[_0xc06005[_0x2fe06e(0x129)]],[_0x540990[_0x2fe06e(0x1ee)],{'notExecuteFormula':!0x0}],[_0x8cab20['UniverRPCMainThreadPlugin'],{'workerURL':_0x2fe06e(0x1d7)}],[_0x3f6896['UniverDrawingUIPlugin']],[_0x4c74a5[_0x2fe06e(0x179)]],[_0x53bb41[_0x2fe06e(0x170)]],[_0x15958a[_0x2fe06e(0x1c6)]],[_0x3496a9['UniverSheetSparklineUIPlugin']],[_0x204db8['UniverSheetsChartPlugin']],[_0x9f9cbd['UniverSheetsChartUIPlugin']],[_0x46db27[_0x2fe06e(0x1cb)],{'notExecuteFormula':!0x0}],[_0x41f8e7[_0x2fe06e(0x169)],{'historyListServerUrl':(_0x4c542e=this[_0x2fe06e(0x144)][_0x2fe06e(0x13e)](_0x1f3100))==null?void 0x0:_0x4c542e['historyListServerUrl']}]][_0x2fe06e(0x191)](([_0x2e8a86,_0x15cd86])=>this[_0x2fe06e(0x18c)](_0x2e8a86,_0x15cd86));}[_0x1cc33a(0x1a2)](){const _0x50c38a=_0x1cc33a;super['dispose'](),this[_0x50c38a(0x15b)](),this[_0x50c38a(0x151)][_0x50c38a(0x10c)]();}[_0x1cc33a(0x18c)](_0x312716,_0x246b26,_0x58a71c){const _0x33aa4a=_0x1cc33a;if(this[_0x33aa4a(0x151)]['has'](_0x312716[_0x33aa4a(0x11c)])&&!_0x58a71c)throw new Error(_0x33aa4a(0x16b)+_0x312716[_0x33aa4a(0x11c)]+'\x20has\x20been\x20registered.');this[_0x33aa4a(0x151)][_0x33aa4a(0xfe)](_0x312716[_0x33aa4a(0x11c)],[_0x312716,_0x246b26]);}[_0x1cc33a(0x176)](){const _0x2829a3=_0x1cc33a;return Array[_0x2829a3(0x1df)](this[_0x2829a3(0x151)][_0x2829a3(0x108)]());}[_0x1cc33a(0x171)](_0x5a2a45){const _0x3af7a0=_0x1cc33a,_0x3d5fce=document[_0x3af7a0(0x114)](_0x1f0749);_0x3d5fce&&(_0x3d5fce[_0x3af7a0(0x1b7)][_0x3af7a0(0x15e)]='block',this[_0x3af7a0(0x1d3)](_0x5a2a45,_0x1f0749));}[_0x1cc33a(0x15b)](){const _0x3615c3=_0x1cc33a;var _0x4de344;this[_0x3615c3(0x18b)][_0x3615c3(0x1a2)](),(_0x4de344=this[_0x3615c3(0x1cc)])==null||_0x4de344[_0x3615c3(0x1a2)](),this[_0x3615c3(0xf3)][_0x3615c3(0x134)](null);const _0x130bf6=document['getElementById'](_0x1f0749);_0x130bf6&&(_0x130bf6['style'][_0x3615c3(0x15e)]=_0x3615c3(0x156));}[_0x1cc33a(0x1d3)](_0x2e3433,_0xed58ac){const _0x267565=_0x1cc33a;if(this['historyUniver'])return;const _0x306e29=new _0x4f7a23[(_0x267565(0x1fc))]({'locales':{[this[_0x267565(0x1db)][_0x267565(0x1c1)]()]:this['_localeService'][_0x267565(0x1bf)]()},'override':[[_0x4f7a23[_0x267565(0x119)],{'useClass':_0x4fd6c9[_0x267565(0x1a7)]}]]}),_0x130469=_0x306e29[_0x267565(0x178)]();this[_0x267565(0x15d)](this['_themeService']['darkMode$']['subscribe'](_0x504de4=>{const _0x2dd251=_0x267565;_0x130469[_0x2dd251(0x213)](_0x4f7a23['ThemeService'])['setDarkMode'](_0x504de4);})),this[_0x267565(0x15d)](this[_0x267565(0x128)][_0x267565(0x20a)][_0x267565(0x20e)](_0x20e086=>{const _0x67969a=_0x267565;_0x130469['get'](_0x4f7a23[_0x67969a(0x1e5)])[_0x67969a(0x1f4)](_0x20e086);})),_0x130469[_0x267565(0x213)](_0x4f7a23[_0x267565(0x111)])[_0x267565(0x206)](this['_localeService'][_0x267565(0x1c1)]()),_0x130469[_0x267565(0x213)](_0x4f7a23['IConfigService'])[_0x267565(0x1f5)](_0x4fd6c9[_0x267565(0x160)],this[_0x267565(0x144)][_0x267565(0x13e)](_0x4fd6c9[_0x267565(0x160)]));const _0x4ed32c=this['_configService'][_0x267565(0x13e)](_0x45569d[_0x267565(0x1f1)]);_0x4ed32c&&_0x306e29[_0x267565(0x18c)](_0x45569d[_0x267565(0x184)],{'license':_0x4ed32c['ls']}),this[_0x267565(0x151)][_0x267565(0x191)](([_0x4cb0ea,_0x127da1])=>{_0x306e29['registerPlugin'](_0x4cb0ea,_0x127da1);}),_0x130469[_0x267565(0x1ae)](_0x380eef=>{this['_initListener'](_0x380eef,_0x2e3433);}),this[_0x267565(0xf3)][_0x267565(0x134)](_0x306e29);const _0x1d2113=_0x130469[_0x267565(0x213)](_0x41f8e7[_0x267565(0x159)]),_0x3a27ce=this[_0x267565(0x16e)](_0x2e3433);_0x1d2113[_0x267565(0x181)](_0x2e3433,_0xed58ac,_0x3a27ce);}['_initListener'](_0x4088f4,_0x4b3951){const _0x5cb247=_0x1cc33a,_0x1509cc=_0x4088f4[_0x5cb247(0x213)](_0x41f8e7[_0x5cb247(0x159)]);this['_disposableCollection'][_0x5cb247(0x100)](_0x1509cc[_0x5cb247(0x1ce)]['subscribe'](_0x51b59e=>{const _0x2d7d4f=_0x5cb247;switch(_0x51b59e){case _0x41f8e7[_0x2d7d4f(0xf4)][_0x2d7d4f(0x182)]:this[_0x2d7d4f(0x15c)]['closeAll'](),this[_0x2d7d4f(0x17d)][_0x2d7d4f(0x167)]();break;case _0x41f8e7[_0x2d7d4f(0xf4)][_0x2d7d4f(0x19e)]:this[_0x2d7d4f(0x15b)]();break;case _0x41f8e7[_0x2d7d4f(0xf4)][_0x2d7d4f(0x120)]:this['unMountHistoryContent'](),this[_0x2d7d4f(0x177)][_0x2d7d4f(0x1f2)]({'content':this[_0x2d7d4f(0x1db)]['t']('editHistory.panel.listFetchError'),'type':_0x25e92e[_0x2d7d4f(0x136)][_0x2d7d4f(0x120)],'duration':0xbb8});break;}})),this[_0x5cb247(0x18b)]['add'](_0x1509cc[_0x5cb247(0x14b)]['subscribe'](async _0x3ebe48=>{const _0x2b085f=_0x5cb247;_0x3ebe48&&this[_0x2b085f(0x14d)][_0x2b085f(0x202)](_0x45ae20[_0x2b085f(0x1d9)]['id'],{'unitId':_0x4b3951,'revision':_0x3ebe48});}));}['_checkCanRevert'](_0x4e33e3){const _0x428909=_0x1cc33a,_0x14723e=this['_univerInstanceService'][_0x428909(0x17c)](_0x4e33e3)[_0x428909(0x1d1)]()[_0x428909(0x1f3)](_0x2c2db2=>_0x2c2db2['getSheetId']()),_0x273fe6=new _0x4e4203[(_0x428909(0x12b))](_0x4e33e3)['id'],_0x4dc7b7=_0x14723e['map'](_0x2e8778=>new _0x4e4203['WorksheetEditPermission'](_0x4e33e3,_0x2e8778)['id']),_0x116c90=_0x14723e[_0x428909(0x1f3)](_0x47df3e=>this[_0x428909(0x1a3)][_0x428909(0x1d4)](_0x4e33e3,_0x47df3e)[_0x428909(0x1f3)](_0x2c40d1=>new _0x4e4203['RangeProtectionPermissionEditPoint'](_0x4e33e3,_0x47df3e,_0x2c40d1[_0x428909(0xf8)])['id']))[_0x428909(0x150)](),_0x3d1f10=new _0x4e4203[(_0x428909(0x141))](_0x4e33e3)['id'];return this['_permissionService'][_0x428909(0x135)]([_0x273fe6,..._0x4dc7b7,..._0x116c90,_0x3d1f10])['every'](_0x5adff7=>!!_0x5adff7['value']);}},_0xd454b2[_0x1cc33a(0x16a)]=_0x2340c9([_0x5061e3(0x0,_0x4f7a23[_0x1cc33a(0x208)](_0x4f7a23[_0x1cc33a(0x111)])),_0x5061e3(0x1,_0x4f7a23['IUniverInstanceService']),_0x5061e3(0x2,_0x4f7a23[_0x1cc33a(0x158)]),_0x5061e3(0x3,_0x4f7a23['ICommandService']),_0x5061e3(0x4,_0x57b175['IMessageService']),_0x5061e3(0x5,_0x4f7a23[_0x1cc33a(0x1e4)]),_0x5061e3(0x6,_0x4f7a23[_0x1cc33a(0x208)](_0x4e4203[_0x1cc33a(0x16d)])),_0x5061e3(0x7,_0x4f7a23['Inject'](_0x57b175[_0x1cc33a(0x1ab)])),_0x5061e3(0x8,_0x4f7a23[_0x1cc33a(0x208)](_0x57b175[_0x1cc33a(0x15f)])),_0x5061e3(0x9,_0x4f7a23[_0x1cc33a(0x208)](_0x4f7a23['ThemeService']))],_0xd454b2[_0x1cc33a(0x16a)]);const _0x541058={'id':_0x1cc33a(0x127),'type':_0x4f7a23[_0x1cc33a(0x155)]['OPERATION'],'handler':_0x4c705c=>{const _0x5e75bc=_0x1cc33a,_0x1bb045=_0x4c705c[_0x5e75bc(0x213)](_0xd454b2['HistoryLoaderService']),_0x49018a=_0x4c705c['get'](_0x4f7a23[_0x5e75bc(0x146)]),{unitId:_0x5d2710}=_0x4e4203['getSheetCommandTarget'](_0x49018a)||{};return _0x5d2710?(_0x1bb045['mountHistoryContent'](_0x5d2710),!0x0):!0x1;}};function _0x337d83(_0x371aed){const _0x32731a=_0x1cc33a;return{'id':_0x541058['id'],'type':_0x57b175[_0x32731a(0x197)]['BUTTON'],'icon':'HistoryIcon','tooltip':_0x32731a(0x1bc),'hidden$':_0x57b175[_0x32731a(0x1ec)](_0x371aed,_0x4f7a23['UniverInstanceType'][_0x32731a(0x1fd)]),'disabled$':_0x19421e['getCurrentRangeDisable$'](_0x371aed,{'workbookTypes':[_0x4e4203['WorkbookEditablePermission'],_0x4e4203[_0x32731a(0xff)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x28c5aa={[_0x57b175['RibbonStartGroup'][_0x1cc33a(0x13b)]]:{[_0x541058['id']]:{'order':0.2,'menuItemFactory':_0x337d83}}};var _0x57e9d4=Object[_0x1cc33a(0x10a)],_0x17202f=(_0xf3ca48,_0x8ffc9,_0x53c543,_0x13f334)=>{const _0x277750=_0x1cc33a;for(var _0x2618a6=_0x13f334>0x1?void 0x0:_0x13f334?_0x57e9d4(_0x8ffc9,_0x53c543):_0x8ffc9,_0x5a36b6=_0xf3ca48[_0x277750(0x1ef)]-0x1,_0xde9a9c;_0x5a36b6>=0x0;_0x5a36b6--)(_0xde9a9c=_0xf3ca48[_0x5a36b6])&&(_0x2618a6=_0xde9a9c(_0x2618a6)||_0x2618a6);return _0x2618a6;},_0x800dd2=(_0x437852,_0x256265)=>(_0xaa6b32,_0x3c584f)=>_0x256265(_0xaa6b32,_0x3c584f,_0x437852);let _0x5df7e5=class extends _0x4f7a23[_0x1cc33a(0xf9)]{constructor(_0x5da410,_0xf60c64,_0xbacf4,_0xa2e12d,_0x6732a0,_0x598e47,_0x596fed,_0x4f78a8){const _0x1f822e=_0x1cc33a;super(),_0x234bfc(this,_0x1f822e(0xfc),null),(this[_0x1f822e(0x14d)]=_0x5da410,this[_0x1f822e(0x1af)]=_0xf60c64,this[_0x1f822e(0x153)]=_0xbacf4,this[_0x1f822e(0x106)]=_0xa2e12d,this[_0x1f822e(0x1db)]=_0x6732a0,this[_0x1f822e(0x177)]=_0x598e47,this[_0x1f822e(0x1bd)]=_0x596fed,this[_0x1f822e(0x195)]=_0x4f78a8,this[_0x1f822e(0x103)]());}['_init'](){const _0x1e76dc=_0x1cc33a;[_0x541058][_0x1e76dc(0x191)](_0x15d999=>this[_0x1e76dc(0x15d)](_0x4f7a23[_0x1e76dc(0x116)](this[_0x1e76dc(0x14d)][_0x1e76dc(0x11d)](_0x15d999)))),this['disposeWithMe'](this[_0x1e76dc(0x153)][_0x1e76dc(0x12e)](_0x1e76dc(0x126),_0x43e4eb)),this[_0x1e76dc(0x1af)]['mergeMenu'](_0x28c5aa),this[_0x1e76dc(0x15d)](this[_0x1e76dc(0x14d)][_0x1e76dc(0x1e7)](_0x583bcd=>{const _0x478da7=_0x1e76dc;if(_0x583bcd['id']===_0x45ae20['RevertRevisionMutation']['id']){this[_0x478da7(0x177)][_0x478da7(0x1f2)]({'content':this[_0x478da7(0x1db)]['t'](_0x478da7(0x122)),'type':_0x25e92e[_0x478da7(0x136)][_0x478da7(0x132)],'duration':0x1388});const {unitId:_0x301e32}=_0x583bcd['params'],_0x105cac=this[_0x478da7(0x1bd)]['getCollabEntity'](_0x301e32),_0x32620a=_0x28e36b[_0x478da7(0x112)]([_0x105cac[_0x478da7(0x16c)]['event$'],_0x105cac[_0x478da7(0xfa)]])[_0x478da7(0x20e)](async([_0x232216,_0x4d7d2b])=>{const _0x1a88cf=_0x478da7;var _0x2caffe;_0x232216[_0x1a88cf(0x20c)]===_0x45ae20['CollaborationEvent'][_0x1a88cf(0x193)]&&(_0x4d7d2b==null?void 0x0:_0x4d7d2b['status'])===_0x4fd6c9['CollaborationStatus'][_0x1a88cf(0x14c)]&&_0x232216[_0x1a88cf(0x11a)]['mutations']['some'](_0x385cb6=>_0x385cb6['id']===_0x45ae20[_0x1a88cf(0x1d9)]['id'])&&(this[_0x1a88cf(0x106)][_0x1a88cf(0x15b)](),_0x32620a[_0x1a88cf(0x207)](),this[_0x1a88cf(0xfc)]&&clearTimeout(this[_0x1a88cf(0xfc)]),await((_0x2caffe=this[_0x1a88cf(0x195)])==null?void 0x0:_0x2caffe[_0x1a88cf(0x1e3)]()),setTimeout(()=>window['location'][_0x1a88cf(0x13a)]()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x37cd1c=_0x478da7;_0x32620a[_0x37cd1c(0x207)](),this[_0x37cd1c(0x177)][_0x37cd1c(0x1f2)]({'content':this[_0x37cd1c(0x1db)]['t']('editHistory.panel.revertFailed'),'type':_0x25e92e['MessageType'][_0x37cd1c(0x120)],'duration':0xbb8});},0x1388);}}));}};_0x5df7e5=_0x17202f([_0x800dd2(0x0,_0x4f7a23[_0x1cc33a(0x1b2)]),_0x800dd2(0x1,_0x57b175[_0x1cc33a(0x1fa)]),_0x800dd2(0x2,_0x4f7a23[_0x1cc33a(0x208)](_0x57b175[_0x1cc33a(0x1dd)])),_0x800dd2(0x3,_0x4f7a23['Inject'](_0xd454b2[_0x1cc33a(0x16a)])),_0x800dd2(0x4,_0x4f7a23[_0x1cc33a(0x208)](_0x4f7a23[_0x1cc33a(0x111)])),_0x800dd2(0x5,_0x57b175[_0x1cc33a(0x173)]),_0x800dd2(0x6,_0x4f7a23['Inject'](_0x4fd6c9[_0x1cc33a(0x194)])),_0x800dd2(0x7,_0x4fd6c9[_0x1cc33a(0x161)])],_0x5df7e5);var _0x1f3c9c=Object[_0x1cc33a(0x10a)],_0xdbd658=(_0x2bc08e,_0x2bc541,_0x46ce57,_0x3e2f6b)=>{const _0x515480=_0x1cc33a;for(var _0x147818=_0x3e2f6b>0x1?void 0x0:_0x3e2f6b?_0x1f3c9c(_0x2bc541,_0x46ce57):_0x2bc541,_0x4f3242=_0x2bc08e[_0x515480(0x1ef)]-0x1,_0x3a947c;_0x4f3242>=0x0;_0x4f3242--)(_0x3a947c=_0x2bc08e[_0x4f3242])&&(_0x147818=_0x3a947c(_0x147818)||_0x147818);return _0x147818;},_0x354010=(_0x4c0f70,_0x1d163c)=>(_0x34ef58,_0x4d51d4)=>_0x1d163c(_0x34ef58,_0x4d51d4,_0x4c0f70);const _0x253d98=_0x1cc33a(0x19d);_0xd454b2[_0x1cc33a(0x1eb)]=(_0x2d551b=class extends _0x4f7a23[_0x1cc33a(0x18a)]{constructor(_0x377a63=_0x195639,_0x37d40a,_0x4fad27){const _0x160126=_0x1cc33a;super(),this[_0x160126(0x19c)]=_0x377a63,this[_0x160126(0x163)]=_0x37d40a,this[_0x160126(0x144)]=_0x4fad27;const {menu:_0x2ad84e,..._0x1405d7}=_0x4f7a23[_0x160126(0x1e1)]({},_0x195639,this['_config']);_0x2ad84e&&this['_configService'][_0x160126(0x1f5)](_0x160126(0x200),_0x2ad84e,{'merge':!0x0}),this[_0x160126(0x144)][_0x160126(0x1f5)](_0x1f3100,_0x1405d7),this[_0x160126(0x19c)][_0x160126(0x20b)]&&this[_0x160126(0x144)][_0x160126(0x1f5)](_0x587b8b,this[_0x160126(0x19c)][_0x160126(0x20b)]);}[_0x1cc33a(0x210)](){const _0x10a959=_0x1cc33a;[[_0xd454b2[_0x10a959(0x16a)]],[_0x5df7e5]][_0x10a959(0x191)](_0x49196a=>this[_0x10a959(0x163)][_0x10a959(0x100)](_0x49196a));}[_0x1cc33a(0x1a5)](){const _0x3e5228=_0x1cc33a;this[_0x3e5228(0x163)][_0x3e5228(0x213)](_0x5df7e5);}},_0x234bfc(_0x2d551b,_0x1cc33a(0x162),_0x4f7a23[_0x1cc33a(0x124)][_0x1cc33a(0x1e8)]),_0x234bfc(_0x2d551b,'pluginName',_0x253d98),_0x2d551b),_0xd454b2[_0x1cc33a(0x1eb)]=_0xdbd658([_0x354010(0x1,_0x4f7a23['Inject'](_0x4f7a23[_0x1cc33a(0x13c)])),_0x354010(0x2,_0x4f7a23[_0x1cc33a(0x158)])],_0xd454b2[_0x1cc33a(0x1eb)]),_0xd454b2[_0x1cc33a(0x199)]=_0x587b8b,_0xd454b2['UNIVER_HISTORY_CONTAINER_ID']=_0x1f0749,Object[_0x1cc33a(0x1c7)](_0xd454b2,Symbol[_0x1cc33a(0x1be)],{'value':_0x1cc33a(0x18f)});}));function _0x1da9(_0x1b0ee7,_0x3a3d4b){_0x1b0ee7=_0x1b0ee7-0xf2;const _0x15648d=_0x1564();let _0x1da986=_0x15648d[_0x1b0ee7];return _0x1da986;}function _0x1564(){const _0x39311d=['trim','rxjs','UniverProSheetsPivot','setLocale','unsubscribe','Inject','mask','currentTheme$','univerContainerId','eventID','assign','subscribe','width','onStarting','@univerjs/sheets','UniverSheetsHyperLinkUIPlugin','get','value','_historyUniver$','HistoryModeStatus','@univerjs-pro/collaboration','entries','3iboGew','permissionId','RxDisposable','state$','@univerjs/network','_revertErrorTimer','React','set','WorkbookViewHistoryPermission','add','UniverSheetsFilterUi','@univerjs-pro/collaboration-client','_init','Disposable','M0\x200H16V16H0z','_historyManagerService','@univerjs/sheets-data-validation','values','object','getOwnPropertyDescriptor','children','clear','1000','_univerInstanceService','attrs','@univerjs/engine-formula','LocaleService','combineLatest','UniverSheetsDrawingUi','getElementById','@univerjs/sheets-conditional-formatting','toDisposable','defIds','UniverNetwork','IAuthzIoService','data','860ZnVsyV','pluginName','registerCommand','1em','UniverSheetsHyperLink','Error','UniverSheetsDataValidationUi','editHistory.panel.reverting','white','UniverInstanceType','@univerjs-pro/sheets-chart','HistoryIcon','univer.operation.toggle-edit-history','_themeService','UniverSheetsDataValidationUIPlugin','UniverProSheetsChartUi','WorkbookEditablePermission','UniverSheets','string','register','123995iZPaYJ','UniverSheetsFormulaUi','UniverSheetsFilterPlugin','Loading','@univerjs/sheets-ui','next','composePermission','MessageType','@univerjs/sheets-conditional-formatting-ui','@univerjs/engine-render','@univerjs/data-validation','reload','OTHERS','Injector','svg','getConfig','displayName','UniverSheetsConditionalFormattingUi','WorkbookRecoverHistoryPermission','toString','useRef','_configService','7731282gclpfw','IUniverInstanceService','idSuffix','@univerjs/docs','UniverSheetsFilter','@univerjs/sheets-drawing-ui','revertRevision$','SYNCED','_commandService','15327KhFgbO','UniverSheetsFormulaUIPlugin','flat','_pluginMap','univer-container','_componentManager','UniverSheetsPlugin','CommandType','none','zIndex','IConfigService','HistoryManagerService','UniverNetworkPlugin','unMountHistoryContent','_dialogService','disposeWithMe','display','ISidebarService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ILocalCacheService','type','_injector','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','28865683JabeUT','history-icon','close','appendChild','UniverEditHistoryViewerPlugin','HistoryLoaderService','[HistoryLoaderService]:\x20Plugin\x20','session','RangeProtectionRuleModel','_checkCanRevert','random','UniverSheetsDrawingUIPlugin','mountHistoryContent','@univerjs-pro/sheets-sparkline-ui','IMessageService','UniverDocsPlugin','use','getAllPlugins','_messageService','__getInjector','UniverSheetsDrawingPlugin','UniverSheetsUi','UniverEngineFormula','getUnit','_sidebarService','UniverEngineRender','height','UniverSheetsDataValidation','triggerLoadVersions','Entered','UniverUIPlugin','UniverLicensePlugin','edit-history-loader.config','UniverDocsUIPlugin','UniverProSheetsSparkline','5158476VKfCxU','UniverSheetsFormula','Plugin','_disposableCollection','registerPlugin','uComp','left','Module','div','forEach','@univerjs/drawing-ui','CHANGESET_ACK','CollaborationController','_localCacheService','amd','MenuItemType','UniverProLicense','UNIVER_CONTAINER_ID_KEY','absolute','react','_config','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','Exited','tag','UniverRenderEnginePlugin','@univerjs/sheets-drawing','dispose','_selectionProtectionRuleModel','UniverDataValidationPlugin','onSteady','currentColor','AuthzIoHttpService','xlink:href','@univerjs/sheets-filter','univer-history-container','IDialogService','UniverProSheetsChart','UniverSheetsFilterUIPlugin','invoke','_menuManagerService','24iXDMmn','url(#$1','ICommandService','100%','UniverSheetsFormulaPlugin','_initContainer','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','style','UniverDrawing','8305220SnEYSg','UniverSheetsConditionalFormattingPlugin','11500912rYRVtm','editHistory.panel.title','_collaborationController','toStringTag','getLocales','@univerjs/sheets-formula-ui','getCurrentLocale','UniverSheetsNumfmtPlugin','5lwIYtu','colorChannel1','function','UniverSheetSparklinePlugin','defineProperty','UniverProCollaboration','UniverSheetsUIPlugin','UniverSheetsHyperLinkUi','UniverSheetsPivotTablePlugin','historyUniver','@univerjs/sheets-data-validation-ui','status$','UniverProEditHistoryLoader','@univerjs/sheets-formula','getSheets','history-icon_clip0_907_281','_initUniver','getSubunitRuleList','_permissionService','_initPlugins','./worker.js','http://www.w3.org/2000/svg','RevertRevisionMutation','UNIVER_CONTAINER_ID','_localeService','UniverDrawingUi','ComponentManager','includes','from','fill','merge','current','exhaustSavingTask','IPermissionService','ThemeService','UniverUi','onCommandExecuted','UNIVER_UNKNOWN','createElement','exports','UniverEditHistoryLoaderPlugin','getMenuHiddenObservable','UniverSheetsDataValidationPlugin','UniverFormulaEnginePlugin','length','path','LS_CONFIG_KEY','show','map','setTheme','setConfig','defs','UniverCore','UniverDocsUi','replace','IMenuManagerService','asObservable','Univer','UNIVER_SHEET','@univerjs-pro/sheets-sparkline','DisposableCollection','menu','UniverSheetsDrawing','executeCommand'];_0x1564=function(){return _0x39311d;};return _0x1564();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/edit-history-loader",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
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.3",
51
- "@univerjs-pro/collaboration-client": "0.12.3",
52
- "@univerjs-pro/edit-history-viewer": "0.12.3",
53
- "@univerjs-pro/license": "0.12.3",
54
- "@univerjs-pro/sheets-sparkline": "0.12.3",
55
- "@univerjs-pro/sheets-pivot": "0.12.3",
56
- "@univerjs-pro/sheets-sparkline-ui": "0.12.3",
57
- "@univerjs/core": "0.12.3",
58
- "@univerjs/data-validation": "0.12.3",
59
- "@univerjs/design": "0.12.3",
60
- "@univerjs/drawing": "0.12.3",
61
- "@univerjs/docs-ui": "0.12.3",
62
- "@univerjs/drawing-ui": "0.12.3",
63
- "@univerjs/docs": "0.12.3",
64
- "@univerjs/engine-formula": "0.12.3",
65
- "@univerjs/engine-render": "0.12.3",
66
- "@univerjs/rpc": "0.12.3",
67
- "@univerjs/sheets": "0.12.3",
68
- "@univerjs/network": "0.12.3",
69
- "@univerjs/sheets-conditional-formatting": "0.12.3",
70
- "@univerjs/sheets-conditional-formatting-ui": "0.12.3",
71
- "@univerjs/sheets-data-validation": "0.12.3",
72
- "@univerjs/sheets-data-validation-ui": "0.12.3",
73
- "@univerjs/sheets-drawing": "0.12.3",
74
- "@univerjs/sheets-drawing-ui": "0.12.3",
75
- "@univerjs/sheets-filter-ui": "0.12.3",
76
- "@univerjs/sheets-filter": "0.12.3",
77
- "@univerjs/sheets-formula-ui": "0.12.3",
78
- "@univerjs/sheets-formula": "0.12.3",
79
- "@univerjs/sheets-hyper-link": "0.12.3",
80
- "@univerjs/sheets-numfmt": "0.12.3",
81
- "@univerjs/sheets-hyper-link-ui": "0.12.3",
82
- "@univerjs/sheets-ui": "0.12.3",
83
- "@univerjs/ui": "0.12.3"
50
+ "@univerjs-pro/collaboration": "0.12.4",
51
+ "@univerjs-pro/collaboration-client": "0.12.4",
52
+ "@univerjs-pro/edit-history-viewer": "0.12.4",
53
+ "@univerjs-pro/license": "0.12.4",
54
+ "@univerjs-pro/sheets-sparkline": "0.12.4",
55
+ "@univerjs-pro/sheets-chart-ui": "0.12.4",
56
+ "@univerjs-pro/sheets-chart": "0.12.4",
57
+ "@univerjs-pro/sheets-sparkline-ui": "0.12.4",
58
+ "@univerjs/design": "0.12.4",
59
+ "@univerjs/core": "0.12.4",
60
+ "@univerjs/data-validation": "0.12.4",
61
+ "@univerjs-pro/sheets-pivot": "0.12.4",
62
+ "@univerjs/docs": "0.12.4",
63
+ "@univerjs/docs-ui": "0.12.4",
64
+ "@univerjs/drawing-ui": "0.12.4",
65
+ "@univerjs/drawing": "0.12.4",
66
+ "@univerjs/engine-formula": "0.12.4",
67
+ "@univerjs/engine-render": "0.12.4",
68
+ "@univerjs/network": "0.12.4",
69
+ "@univerjs/rpc": "0.12.4",
70
+ "@univerjs/sheets": "0.12.4",
71
+ "@univerjs/sheets-conditional-formatting-ui": "0.12.4",
72
+ "@univerjs/sheets-conditional-formatting": "0.12.4",
73
+ "@univerjs/sheets-data-validation-ui": "0.12.4",
74
+ "@univerjs/sheets-drawing": "0.12.4",
75
+ "@univerjs/sheets-drawing-ui": "0.12.4",
76
+ "@univerjs/sheets-data-validation": "0.12.4",
77
+ "@univerjs/sheets-filter": "0.12.4",
78
+ "@univerjs/sheets-filter-ui": "0.12.4",
79
+ "@univerjs/sheets-formula": "0.12.4",
80
+ "@univerjs/sheets-formula-ui": "0.12.4",
81
+ "@univerjs/sheets-numfmt": "0.12.4",
82
+ "@univerjs/sheets-hyper-link": "0.12.4",
83
+ "@univerjs/sheets-ui": "0.12.4",
84
+ "@univerjs/ui": "0.12.4",
85
+ "@univerjs/sheets-hyper-link-ui": "0.12.4"
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.4",
90
- "vitest": "^4.0.14",
91
- "@univerjs-infra/shared": "0.12.3"
91
+ "vite": "^7.2.6",
92
+ "vitest": "^4.0.15",
93
+ "@univerjs-infra/shared": "0.12.4"
92
94
  },
93
95
  "scripts": {
94
96
  "test": "vitest run",