@univerjs-pro/edit-history-loader 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +44 -45
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x15992b=_0x3301;(function(_0xa2cc98,_0x1c946c){const _0xefd5e2=_0x3301,_0x1c4e96=_0xa2cc98();while(!![]){try{const _0x2ea284=parseInt(_0xefd5e2(0x25a))/0x1+parseInt(_0xefd5e2(0x1cd))/0x2+-parseInt(_0xefd5e2(0x26c))/0x3+parseInt(_0xefd5e2(0x1a9))/0x4*(-parseInt(_0xefd5e2(0x1ff))/0x5)+parseInt(_0xefd5e2(0x282))/0x6+parseInt(_0xefd5e2(0x1ad))/0x7*(-parseInt(_0xefd5e2(0x245))/0x8)+-parseInt(_0xefd5e2(0x2a6))/0x9*(-parseInt(_0xefd5e2(0x1ba))/0xa);if(_0x2ea284===_0x1c946c)break;else _0x1c4e96['push'](_0x1c4e96['shift']());}catch(_0x7a389a){_0x1c4e96['push'](_0x1c4e96['shift']());}}}(_0x1229,0xbd11a),Object[_0x15992b(0x233)](exports,Symbol[_0x15992b(0x238)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs/sheets`),n=require(`@univerjs-pro/collaboration`),r=require(`@univerjs-pro/collaboration-client`),i=require(`@univerjs-pro/edit-history-viewer`),a=require(`@univerjs-pro/license`),o=require(`@univerjs-pro/sheets-chart`),s=require(`@univerjs-pro/sheets-chart-ui`),c=require(`@univerjs-pro/sheets-pivot`),l=require(`@univerjs-pro/sheets-shape`),u=require(`@univerjs-pro/sheets-shape-ui`),d=require(`@univerjs-pro/sheets-sparkline`),f=require(`@univerjs-pro/sheets-sparkline-ui`),p=require(`@univerjs/data-validation`),m=require(`@univerjs/design`),h=require(`@univerjs/docs`),g=require(`@univerjs/docs-ui`),_=require(`@univerjs/drawing`),v=require(`@univerjs/drawing-ui`),y=require(`@univerjs/engine-formula`),b=require(`@univerjs/engine-render`),x=require(`@univerjs/network`),S=require(`@univerjs/rpc`),C=require(`@univerjs/sheets-conditional-formatting`),ee=require(`@univerjs/sheets-conditional-formatting-ui`),w=require(`@univerjs/sheets-data-validation`),T=require(`@univerjs/sheets-data-validation-ui`),E=require(`@univerjs/sheets-drawing`),D=require(`@univerjs/sheets-drawing-ui`),te=require(`@univerjs/sheets-filter`),ne=require(`@univerjs/sheets-filter-ui`),re=require(`@univerjs/sheets-formula`),ie=require(`@univerjs/sheets-formula-ui`),ae=require(`@univerjs/sheets-hyper-link`),O=require(`@univerjs/sheets-hyper-link-ui`),k=require(`@univerjs/sheets-numfmt`),A=require(`@univerjs/sheets-table`),j=require(`@univerjs/sheets-ui`),M=require(`@univerjs/ui`),N=require(`rxjs`),P=require(`@univerjs-pro/collaboration-client-ui`),F=require(`@univerjs/icons`),I=require(`@univerjs/protocol`);const L=_0x15992b(0x24d);Symbol(L);const R={};function z(_0x4b2780){'@babel/helpers - typeof';const _0x1e0878=_0x15992b;return z=typeof Symbol==_0x1e0878(0x279)&&typeof Symbol[_0x1e0878(0x266)]==_0x1e0878(0x1ed)?function(_0x4b3e21){return typeof _0x4b3e21;}:function(_0x51ff11){const _0x180b71=_0x1e0878;return _0x51ff11&&typeof Symbol==_0x180b71(0x279)&&_0x51ff11['constructor']===Symbol&&_0x51ff11!==Symbol[_0x180b71(0x216)]?'symbol':typeof _0x51ff11;},z(_0x4b2780);}function oe(_0x1a7c24,_0xb875b){const _0xbe3664=_0x15992b;if(z(_0x1a7c24)!=_0xbe3664(0x26f)||!_0x1a7c24)return _0x1a7c24;var _0x52bcc2=_0x1a7c24[Symbol[_0xbe3664(0x290)]];if(_0x52bcc2!==void 0x0){var _0x410c3c=_0x52bcc2[_0xbe3664(0x230)](_0x1a7c24,_0xb875b||_0xbe3664(0x207));if(z(_0x410c3c)!=_0xbe3664(0x26f))return _0x410c3c;throw TypeError(_0xbe3664(0x270));}return(_0xb875b===_0xbe3664(0x220)?String:Number)(_0x1a7c24);}function se(_0x295d08){const _0x29d24a=_0x15992b;var _0x54c365=oe(_0x295d08,'string');return z(_0x54c365)==_0x29d24a(0x1ed)?_0x54c365:_0x54c365+'';}function B(_0x18fe12,_0x58d8cf,_0x292821){const _0x5e896f=_0x15992b;return(_0x58d8cf=se(_0x58d8cf))in _0x18fe12?Object[_0x5e896f(0x233)](_0x18fe12,_0x58d8cf,{'value':_0x292821,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18fe12[_0x58d8cf]=_0x292821,_0x18fe12;}function V(_0x9a6deb,_0x186552){return function(_0x323d43,_0x23f88f){_0x186552(_0x323d43,_0x23f88f,_0x9a6deb);};}function H(_0x3439db,_0x362900,_0x2ec018,_0x321170){const _0xe5e013=_0x15992b;var _0xf34e4e=arguments[_0xe5e013(0x1c4)],_0x455754=_0xf34e4e<0x3?_0x362900:_0x321170===null?_0x321170=Object[_0xe5e013(0x1b1)](_0x362900,_0x2ec018):_0x321170,_0x4b87f4;if(typeof Reflect==_0xe5e013(0x26f)&&typeof Reflect[_0xe5e013(0x224)]==_0xe5e013(0x279))_0x455754=Reflect[_0xe5e013(0x224)](_0x3439db,_0x362900,_0x2ec018,_0x321170);else{for(var _0x1fc9f8=_0x3439db[_0xe5e013(0x1c4)]-0x1;_0x1fc9f8>=0x0;_0x1fc9f8--)(_0x4b87f4=_0x3439db[_0x1fc9f8])&&(_0x455754=(_0xf34e4e<0x3?_0x4b87f4(_0x455754):_0xf34e4e>0x3?_0x4b87f4(_0x362900,_0x2ec018,_0x455754):_0x4b87f4(_0x362900,_0x2ec018))||_0x455754);}return _0xf34e4e>0x3&&_0x455754&&Object['defineProperty'](_0x362900,_0x2ec018,_0x455754),_0x455754;}const U=_0x15992b(0x18d),W=_0x15992b(0x213);let G=class extends e['Disposable']{constructor(_0x200fd4,_0x8fbdda,_0x56fa5e,_0x128c99,_0x45daf3,_0x19fbbc,_0x40e7f7,_0x27db87,_0x55cf86,_0x3c7357){const _0x4d2026=_0x15992b;super(),this[_0x4d2026(0x292)]=_0x200fd4,this[_0x4d2026(0x276)]=_0x8fbdda,this[_0x4d2026(0x247)]=_0x56fa5e,this['_commandService']=_0x128c99,this['_messageService']=_0x45daf3,this[_0x4d2026(0x24b)]=_0x19fbbc,this[_0x4d2026(0x1b7)]=_0x40e7f7,this[_0x4d2026(0x1e3)]=_0x27db87,this['_sidebarService']=_0x55cf86,this['_themeService']=_0x3c7357,B(this,_0x4d2026(0x243),new N[(_0x4d2026(0x1db))](null)),B(this,_0x4d2026(0x1c3),this['_historyUniver$'][_0x4d2026(0x26e)]()),B(this,_0x4d2026(0x25e),new e[(_0x4d2026(0x1e0))]()),B(this,_0x4d2026(0x1fd),new Map()),B(this,'_internalWebWorker',null),this[_0x4d2026(0x28a)]();}get[_0x15992b(0x19f)](){const _0x500839=_0x15992b;return this[_0x500839(0x243)][_0x500839(0x280)];}[_0x15992b(0x28a)](){const _0x18029c=_0x15992b;this['_initContainer'](),this[_0x18029c(0x206)]();}['_initContainer'](){const _0x2d507e=_0x15992b;var _0x254754;let _0x5862c8=(_0x254754=this[_0x2d507e(0x247)][_0x2d507e(0x1c1)](_0x2d507e(0x18d)))==null?_0x2d507e(0x28e):_0x254754,_0x35006c=document['getElementById'](_0x5862c8);if(!_0x35006c)return;let _0x55864f=document[_0x2d507e(0x1d3)]('div');_0x55864f['id']=W,_0x55864f[_0x2d507e(0x193)][_0x2d507e(0x26d)]=_0x2d507e(0x1eb),_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x275)]='absolute',_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x284)]='0',_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x260)]='0',_0x55864f[_0x2d507e(0x226)]['width']=_0x2d507e(0x1a0),_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x227)]=_0x2d507e(0x1a0),_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x22a)]='49',_0x55864f[_0x2d507e(0x226)]['display']='none',_0x35006c[_0x2d507e(0x1e5)](_0x55864f);}[_0x15992b(0x206)](){const _0x42aff8=_0x15992b;[[b[_0x42aff8(0x197)]],[M[_0x42aff8(0x21c)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M['IDialogService'],null]]}],[x[_0x42aff8(0x248)]],[_[_0x42aff8(0x1c7)],{'override':[[_[_0x42aff8(0x25d)],null]]}],[h[_0x42aff8(0x23b)],{'hasScroll':!0x1}],[g[_0x42aff8(0x2ad)]],[k[_0x42aff8(0x189)]],[t[_0x42aff8(0x203)],{'notExecuteFormula':!0x0}],[j[_0x42aff8(0x249)]],[re[_0x42aff8(0x1f8)]],[ie['UniverSheetsFormulaUIPlugin']],[n[_0x42aff8(0x1be)]],[te[_0x42aff8(0x195)]],[ne[_0x42aff8(0x1b0)]],[C['UniverSheetsConditionalFormattingPlugin']],[ee[_0x42aff8(0x250)]],[ae[_0x42aff8(0x1b6)]],[O[_0x42aff8(0x253)]],[p[_0x42aff8(0x246)]],[w[_0x42aff8(0x1e9)]],[T[_0x42aff8(0x1a6)]],[y['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[v[_0x42aff8(0x1a3)]],[E['UniverSheetsDrawingPlugin']],[D[_0x42aff8(0x252)]],[d[_0x42aff8(0x1ec)]],[f[_0x42aff8(0x274)]],[o[_0x42aff8(0x228)]],[s[_0x42aff8(0x1e6)]],[l['UniverSheetsShapePlugin']],[u['UniverSheetsShapeUIPlugin']],[c[_0x42aff8(0x283)],{'notExecuteFormula':!0x0}],[A[_0x42aff8(0x200)]]]['forEach'](([_0x49b667,_0x1409da])=>this['registerPlugin'](_0x49b667,_0x1409da));}[_0x15992b(0x251)](){const _0xebc559=_0x15992b;super[_0xebc559(0x251)](),this[_0xebc559(0x23d)](),this['_pluginMap'][_0xebc559(0x20d)]();}[_0x15992b(0x240)](_0x3c96b0,_0x36aabf,_0x395589){const _0x1aedd1=_0x15992b;if(this['_pluginMap'][_0x1aedd1(0x21b)](_0x3c96b0[_0x1aedd1(0x258)])&&!_0x395589)throw Error(_0x1aedd1(0x1b3)+_0x3c96b0[_0x1aedd1(0x258)]+_0x1aedd1(0x1b8));this[_0x1aedd1(0x1fd)][_0x1aedd1(0x1dc)](_0x3c96b0[_0x1aedd1(0x258)],[_0x3c96b0,_0x36aabf]);}[_0x15992b(0x1de)](){const _0x2de83d=_0x15992b;return Array[_0x2de83d(0x265)](this[_0x2de83d(0x1fd)]['values']());}[_0x15992b(0x217)](_0x58868d,_0x4e048d){const _0x1c5d4e=_0x15992b;let _0x488655=document[_0x1c5d4e(0x19a)](W);_0x488655&&(_0x488655[_0x1c5d4e(0x226)][_0x1c5d4e(0x1d5)]=_0x1c5d4e(0x211),this[_0x1c5d4e(0x210)](_0x58868d,W,_0x4e048d));}[_0x15992b(0x23d)](){const _0x141ccc=_0x15992b;var _0x5b705c;this[_0x141ccc(0x25e)][_0x141ccc(0x251)](),(_0x5b705c=this[_0x141ccc(0x19f)])==null||_0x5b705c[_0x141ccc(0x251)](),this['_historyUniver$'][_0x141ccc(0x291)](null);let _0x1ef512=document[_0x141ccc(0x19a)](W);_0x1ef512&&(_0x1ef512['style'][_0x141ccc(0x1d5)]=_0x141ccc(0x1d9),this['_internalWebWorker']&&(this[_0x141ccc(0x1c6)][_0x141ccc(0x1fa)](),this[_0x141ccc(0x1c6)]=null));}['_initUniver'](_0x5b1973,_0x30cf47,_0x2f9efd){const _0x522c10=_0x15992b;var _0x1902f1,_0x971e33,_0x253646,_0x3b5cda,_0x398658;if(this[_0x522c10(0x19f)])return;let _0x5d9ac2=new e[(_0x522c10(0x278))]({'locales':{[this[_0x522c10(0x292)][_0x522c10(0x2a1)]()]:this[_0x522c10(0x292)]['getLocales']()},'override':[[e['IAuthzIoService'],{'useClass':r[_0x522c10(0x28c)]}]]}),_0x43937a=_0x5d9ac2[_0x522c10(0x232)]();this[_0x522c10(0x1fe)](this[_0x522c10(0x18c)][_0x522c10(0x1ce)][_0x522c10(0x215)](_0x41743c=>{const _0x262ea5=_0x522c10;_0x43937a['get'](e[_0x262ea5(0x2a8)])[_0x262ea5(0x22d)](_0x41743c);})),this['disposeWithMe'](this[_0x522c10(0x18c)][_0x522c10(0x212)][_0x522c10(0x215)](_0x2eac1f=>{const _0x8c2672=_0x522c10;_0x43937a[_0x8c2672(0x229)](e['ThemeService'])['setTheme'](_0x2eac1f);})),_0x43937a['get'](e[_0x522c10(0x222)])[_0x522c10(0x22b)](this['_localeService'][_0x522c10(0x2a1)]()),_0x43937a[_0x522c10(0x229)](e[_0x522c10(0x1bc)])[_0x522c10(0x21f)](r[_0x522c10(0x1fb)],this[_0x522c10(0x247)][_0x522c10(0x1c1)](r[_0x522c10(0x1fb)]));let _0x214bc3=this[_0x522c10(0x247)][_0x522c10(0x1c1)](a[_0x522c10(0x1ab)]);_0x214bc3&&_0x5d9ac2[_0x522c10(0x240)](a[_0x522c10(0x27d)],{'license':_0x214bc3['ls']});let _0x114396=(_0x1902f1=this[_0x522c10(0x247)][_0x522c10(0x1c1)](_0x522c10(0x24d)))==null?void 0x0:_0x1902f1['workerURL'],_0x47ed2d=!!_0x114396;_0x47ed2d&&(this[_0x522c10(0x1c6)]=_0x114396 instanceof Worker?_0x114396:null,_0x5d9ac2['registerPlugin'](S[_0x522c10(0x29d)],{'workerURL':_0x114396})),this[_0x522c10(0x1fd)][_0x522c10(0x231)](([_0x49c0d1,_0x24194a])=>{const _0x3715de=_0x522c10;_0x5d9ac2[_0x3715de(0x240)](_0x49c0d1,_0x24194a);}),_0x5d9ac2['registerPlugin'](i[_0x522c10(0x196)],{'historyListServerUrl':(_0x971e33=this[_0x522c10(0x247)][_0x522c10(0x1c1)](_0x522c10(0x24d)))==null?void 0x0:_0x971e33['historyListServerUrl'],'historyPanelComponentKey':(_0x253646=this[_0x522c10(0x247)][_0x522c10(0x1c1)]('edit-history-loader.config'))==null?void 0x0:_0x253646[_0x522c10(0x27c)],'historyPanelHidden':(_0x3b5cda=this[_0x522c10(0x247)][_0x522c10(0x1c1)]('edit-history-loader.config'))==null?void 0x0:_0x3b5cda['historyPanelHidden'],'historyAIassistantEnabled':(_0x398658=this[_0x522c10(0x247)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x398658['historyAIassistantEnabled']}),_0x43937a['invoke'](_0x4fb22c=>{this['_initListener'](_0x4fb22c,_0x5b1973);}),this[_0x522c10(0x243)][_0x522c10(0x291)](_0x5d9ac2);let _0x4b9969=_0x43937a[_0x522c10(0x229)](i[_0x522c10(0x1c5)]),_0x153da3=this[_0x522c10(0x1e2)](_0x5b1973),_0x578d84=()=>{const _0x1c69e2=_0x522c10;_0x2f9efd?_0x4b9969[_0x1c69e2(0x25f)](_0x5b1973,_0x30cf47,_0x153da3,_0x2f9efd):_0x4b9969[_0x1c69e2(0x2a9)](_0x5b1973,_0x30cf47,_0x153da3);};if(this[_0x522c10(0x259)]['show']({'content':this['_localeService']['t'](_0x522c10(0x1d8)),'type':m['MessageType'][_0x522c10(0x288)]}),_0x47ed2d)try{_0x43937a[_0x522c10(0x229)](S['IRemoteInstanceService'])['whenReady']()['then'](()=>{_0x578d84();});}catch{_0x578d84();}else _0x578d84();}[_0x15992b(0x26a)](_0x40287a,_0x331c18){const _0x399031=_0x15992b;let _0x185a3=_0x40287a[_0x399031(0x229)](i[_0x399031(0x1c5)]);this[_0x399031(0x25e)][_0x399031(0x22f)](_0x185a3[_0x399031(0x294)][_0x399031(0x215)](_0x3a9c16=>{const _0x212c6c=_0x399031;switch(_0x3a9c16){case i[_0x212c6c(0x20c)][_0x212c6c(0x201)]:this['_dialogService'][_0x212c6c(0x1ca)](),this['_sidebarService']['close']();break;case i[_0x212c6c(0x20c)][_0x212c6c(0x1e7)]:this[_0x212c6c(0x1aa)][_0x212c6c(0x24c)](q['id']),this[_0x212c6c(0x23d)]();break;case i[_0x212c6c(0x20c)][_0x212c6c(0x1d1)]:this[_0x212c6c(0x23d)](),this[_0x212c6c(0x259)][_0x212c6c(0x244)]({'content':this[_0x212c6c(0x292)]['t']('editHistory.panel.listFetchError'),'type':m[_0x212c6c(0x192)][_0x212c6c(0x1d1)],'duration':0xbb8});break;default:break;}})),this[_0x399031(0x25e)][_0x399031(0x22f)](_0x185a3[_0x399031(0x19b)][_0x399031(0x215)](async _0x5c0d3d=>{const _0x3b9dc5=_0x399031;_0x5c0d3d&&this[_0x3b9dc5(0x1aa)][_0x3b9dc5(0x24c)](n[_0x3b9dc5(0x21e)]['id'],{'unitId':_0x331c18,'revision':_0x5c0d3d});}));}[_0x15992b(0x1e2)](_0x1d1158){const _0x234268=_0x15992b;let _0x2b1e87=this['_univerInstanceService'][_0x234268(0x18f)](_0x1d1158)[_0x234268(0x20f)]()['map'](_0x3ae8da=>_0x3ae8da[_0x234268(0x1f6)]()),_0x28d90a=new t[(_0x234268(0x1d6))](_0x1d1158)['id'],_0x10c002=_0x2b1e87[_0x234268(0x286)](_0x2843d5=>new t[(_0x234268(0x1a5))](_0x1d1158,_0x2843d5)['id']),_0x1e4017=_0x2b1e87[_0x234268(0x286)](_0x6b5819=>this[_0x234268(0x1b7)][_0x234268(0x1f0)](_0x1d1158,_0x6b5819)[_0x234268(0x286)](_0x5c4184=>new t[(_0x234268(0x202))](_0x1d1158,_0x6b5819,_0x5c4184[_0x234268(0x1da)])['id']))[_0x234268(0x296)](),_0x329c66=new t[(_0x234268(0x199))](_0x1d1158)['id'];return this['_permissionService']['composePermission']([_0x28d90a,..._0x10c002,..._0x1e4017,_0x329c66])[_0x234268(0x1c0)](_0xe023b0=>!!_0xe023b0['value']);}};G=H([V(0x0,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x222)])),V(0x1,e[_0x15992b(0x285)]),V(0x2,e['IConfigService']),V(0x3,e['ICommandService']),V(0x4,M[_0x15992b(0x21a)]),V(0x5,e[_0x15992b(0x24a)]),V(0x6,(0x0,e[_0x15992b(0x1b4)])(t[_0x15992b(0x218)])),V(0x7,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x29c)])),V(0x8,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x18e)])),V(0x9,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x2a8)]))],G);const K={'id':'univer.operation.toggle-edit-history','type':e['CommandType'][_0x15992b(0x24e)],'handler':_0x23c41b=>{const _0x129fec=_0x15992b;let _0x46c80b=_0x23c41b['get'](G),{unitId:_0x4ed149}=(0x0,t[_0x129fec(0x2ab)])(_0x23c41b[_0x129fec(0x229)](e[_0x129fec(0x285)]))||{};return _0x4ed149?(_0x46c80b[_0x129fec(0x217)](_0x4ed149),!0x0):!0x1;}},q={'id':_0x15992b(0x20a),'type':e['CommandType'][_0x15992b(0x24e)],'handler':()=>!0x0};var ce=_0x15992b(0x27a),le=_0x15992b(0x27f);function ue(_0x580ec7){const _0x2ba6f5=_0x15992b;return{'id':K['id'],'type':M[_0x2ba6f5(0x1bb)][_0x2ba6f5(0x25c)],'icon':'HistoryIcon','tooltip':_0x2ba6f5(0x1bd),'hidden$':(0x0,M['getMenuHiddenObservable'])(_0x580ec7,e[_0x2ba6f5(0x1ef)][_0x2ba6f5(0x25b)]),'disabled$':(0x0,j[_0x2ba6f5(0x29a)])(_0x580ec7,{'workbookTypes':[t[_0x2ba6f5(0x234)]],'worksheetTypes':[],'rangeTypes':[]})};}const de={[M[_0x15992b(0x1f9)][_0x15992b(0x299)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ue}}};let J=class extends e[_0x15992b(0x18a)]{constructor(_0x4b73a1,_0x3c91a1,_0x5f30f3,_0x346b68,_0x45cfa8,_0x898392,_0x215ebd,_0x3d669b,_0x4261c3,_0x59a236,_0x376895){const _0x3374a6=_0x15992b;super(),this['_commandService']=_0x4b73a1,this[_0x3374a6(0x20e)]=_0x3c91a1,this[_0x3374a6(0x236)]=_0x5f30f3,this[_0x3374a6(0x214)]=_0x346b68,this['_localeService']=_0x45cfa8,this[_0x3374a6(0x259)]=_0x898392,this[_0x3374a6(0x1e8)]=_0x215ebd,this['_localCacheService']=_0x3d669b,this[_0x3374a6(0x1a2)]=_0x4261c3,this[_0x3374a6(0x276)]=_0x59a236,this[_0x3374a6(0x2af)]=_0x376895,B(this,_0x3374a6(0x264),null),this[_0x3374a6(0x28a)]();}[_0x15992b(0x28a)](){const _0x547c9a=_0x15992b;[K,q][_0x547c9a(0x231)](_0x29cfc8=>this['disposeWithMe']((0x0,e[_0x547c9a(0x198)])(this[_0x547c9a(0x1aa)][_0x547c9a(0x257)](_0x29cfc8)))),this['disposeWithMe'](this[_0x547c9a(0x236)]['register'](_0x547c9a(0x297),F[_0x547c9a(0x297)])),this[_0x547c9a(0x20e)][_0x547c9a(0x1f4)](de),this['disposeWithMe'](this[_0x547c9a(0x1aa)][_0x547c9a(0x235)](async(_0x3ef3b7,_0x44ad16)=>{const _0x291e7c=_0x547c9a;if(_0x3ef3b7['id']===n[_0x291e7c(0x21e)]['id']){let {unitId:_0x101bf4}=_0x3ef3b7[_0x291e7c(0x263)];this['_messageService'][_0x291e7c(0x244)]({'content':this[_0x291e7c(0x292)]['t'](_0x291e7c(0x208)),'type':m[_0x291e7c(0x192)][_0x291e7c(0x288)],'duration':0x1388});let _0x5b0847=this[_0x291e7c(0x1e8)]['getCollabEntity'](_0x101bf4);_0x44ad16!=null&&_0x44ad16[_0x291e7c(0x205)]?this[_0x291e7c(0x219)](_0x5b0847,async()=>(setTimeout(()=>window[_0x291e7c(0x1dd)][_0x291e7c(0x281)]()),!0x0),!0x0):this[_0x291e7c(0x219)](_0x5b0847,async()=>{const _0x941cb8=_0x291e7c;let _0x3542d5=this[_0x941cb8(0x276)][_0x941cb8(0x28b)](I[_0x941cb8(0x262)][_0x941cb8(0x25b)]),_0x21bebb=_0x3542d5==null?void 0x0:_0x3542d5['getActiveSheet']();if(!_0x21bebb)return!0x1;this[_0x941cb8(0x276)][_0x941cb8(0x1d2)](_0x101bf4);let _0x91a3f1=await this[_0x941cb8(0x1a2)][_0x941cb8(0x225)](_0x101bf4,I[_0x941cb8(0x262)][_0x941cb8(0x25b)]);return _0x91a3f1&&_0x91a3f1 instanceof e[_0x941cb8(0x190)]?(await this[_0x941cb8(0x1a7)](_0x91a3f1,_0x21bebb[_0x941cb8(0x1f6)]()),!0x0):!0x1;});}}));}[_0x15992b(0x219)](_0x56a9b4,_0x5675f3,_0xad34f9=!0x1){const _0x221089=_0x15992b;let _0x558fad=(0x0,N[_0x221089(0x19d)])([_0x56a9b4[_0x221089(0x223)][_0x221089(0x1fc)],_0x56a9b4[_0x221089(0x2a5)]])['subscribe'](async([_0x551a06,_0x484832])=>{const _0x5c2ca4=_0x221089;if(_0x551a06['eventID']===n['CollaborationEvent'][_0x5c2ca4(0x256)]&&(_0x484832==null?void 0x0:_0x484832['status'])===r[_0x5c2ca4(0x2a4)]['SYNCED']&&_0x551a06['data'][_0x5c2ca4(0x2a0)][_0x5c2ca4(0x19e)](_0x3e0bcf=>_0x3e0bcf['id']===n[_0x5c2ca4(0x21e)]['id'])&&await _0x5675f3()){var _0x4f7a06;this[_0x5c2ca4(0x214)][_0x5c2ca4(0x23d)](),_0x558fad['unsubscribe'](),this[_0x5c2ca4(0x264)]&&clearTimeout(this[_0x5c2ca4(0x264)]),await((_0x4f7a06=this[_0x5c2ca4(0x237)])==null?void 0x0:_0x4f7a06['exhaustSavingTask']()),this[_0x5c2ca4(0x259)][_0x5c2ca4(0x28f)]();}});_0xad34f9&&(this[_0x221089(0x264)]=setTimeout(()=>{const _0x53740b=_0x221089;_0x558fad[_0x53740b(0x1ac)](),this[_0x53740b(0x259)][_0x53740b(0x244)]({'content':this[_0x53740b(0x292)]['t'](_0x53740b(0x209)),'type':m['MessageType']['Error'],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x5f165b,_0x4acc25){const _0x26cacb=_0x15992b;await this['_updateSubUnitFromURLParams'](_0x5f165b,_0x4acc25),_0x5f165b['activeSheet$'][_0x26cacb(0x2a2)]((0x0,N[_0x26cacb(0x1ee)])(this['dispose$']))[_0x26cacb(0x215)](_0x1826ac=>{const _0x1cb66c=_0x26cacb;_0x1826ac&&this[_0x1cb66c(0x1a4)](_0x1826ac);}),this['_urlService'][_0x26cacb(0x295)][_0x26cacb(0x2a2)]((0x0,N[_0x26cacb(0x1ee)])(this[_0x26cacb(0x23e)]))[_0x26cacb(0x215)](()=>this['_updateSubUnitFromURLParams'](_0x5f165b,_0x4acc25));}[_0x15992b(0x1a4)](_0x34afb8,_0x26f78a=!0x1){const _0x34a3f7=_0x15992b;let _0x4719b3=this[_0x34a3f7(0x2af)][_0x34a3f7(0x1cb)]('subunit');_0x34afb8[_0x34a3f7(0x1f6)]()!==_0x4719b3&&this[_0x34a3f7(0x2af)][_0x34a3f7(0x26b)]('subunit',_0x34afb8[_0x34a3f7(0x1f6)](),_0x26f78a);}async[_0x15992b(0x1df)](_0x45b69a,_0x2a00f9){const _0x1deba1=_0x15992b;var _0x572891;if(!_0x2a00f9||!_0x45b69a[_0x1deba1(0x271)](_0x2a00f9)){let _0x4a4f2d=_0x45b69a[_0x1deba1(0x29f)]()[0x0],_0x24317b=_0x45b69a['getSheetBySheetId'](_0x4a4f2d);if(!_0x24317b)return;this[_0x1deba1(0x1a4)](_0x24317b,!0x0),await this[_0x1deba1(0x1aa)][_0x1deba1(0x24c)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x45b69a[_0x1deba1(0x261)](),'subUnitId':_0x4a4f2d});return;}((_0x572891=_0x45b69a['getActiveSheet']())==null?void 0x0:_0x572891[_0x1deba1(0x1f6)]())!==_0x2a00f9&&await this['_commandService'][_0x1deba1(0x24c)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x45b69a[_0x1deba1(0x261)](),'subUnitId':_0x2a00f9});}};J=H([V(0x0,e[_0x15992b(0x287)]),V(0x1,M['IMenuManagerService']),V(0x2,(0x0,e['Inject'])(M[_0x15992b(0x221)])),V(0x3,(0x0,e['Inject'])(G)),V(0x4,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x222)])),V(0x5,M[_0x15992b(0x21a)]),V(0x6,(0x0,e['Inject'])(r[_0x15992b(0x1cc)])),V(0x7,r[_0x15992b(0x2a3)]),V(0x8,(0x0,e[_0x15992b(0x1b4)])(r[_0x15992b(0x254)])),V(0x9,e['IUniverInstanceService']),V(0xa,P[_0x15992b(0x289)])],J);function _0x3301(_0x2a2fad,_0x1e21fd){_0x2a2fad=_0x2a2fad-0x189;const _0x1229e4=_0x1229();let _0x3301d1=_0x1229e4[_0x2a2fad];return _0x3301d1;}const Y=_0x15992b(0x1f5);let X=class extends e[_0x15992b(0x1d7)]{constructor(_0x5a0935,_0x289df6,_0x55132f,_0x3766a2,_0x237fe9,_0x162d30,_0xd7f034,_0x4d1c0a,_0x12f9ba,_0x496544){const _0x4814bf=_0x15992b;super(),this[_0x4814bf(0x292)]=_0x5a0935,this['_univerInstanceService']=_0x289df6,this[_0x4814bf(0x247)]=_0x55132f,this[_0x4814bf(0x1aa)]=_0x3766a2,this['_messageService']=_0x237fe9,this[_0x4814bf(0x24b)]=_0x162d30,this[_0x4814bf(0x1b7)]=_0xd7f034,this[_0x4814bf(0x1e3)]=_0x4d1c0a,this['_sidebarService']=_0x12f9ba,this['_themeService']=_0x496544,B(this,_0x4814bf(0x243),new N[(_0x4814bf(0x1db))](null)),B(this,'historyUniver$',this[_0x4814bf(0x243)][_0x4814bf(0x26e)]()),B(this,_0x4814bf(0x25e),new e['DisposableCollection']()),B(this,_0x4814bf(0x1fd),new Map()),B(this,_0x4814bf(0x1c6),null),this[_0x4814bf(0x28a)]();}get['historyUniver'](){const _0x53a23c=_0x15992b;return this[_0x53a23c(0x243)][_0x53a23c(0x280)];}[_0x15992b(0x28a)](){const _0x3c9b5d=_0x15992b;this[_0x3c9b5d(0x1a8)](),this[_0x3c9b5d(0x206)]();}[_0x15992b(0x1a8)](){const _0x34920f=_0x15992b;var _0x2e994c;let _0x6a8a1b=(_0x2e994c=this[_0x34920f(0x247)][_0x34920f(0x1c1)](_0x34920f(0x18d)))==null?_0x34920f(0x28e):_0x2e994c,_0x38c14b=document[_0x34920f(0x19a)](_0x6a8a1b);if(!_0x38c14b)return;let _0x48b2de=document['createElement'](_0x34920f(0x267));_0x48b2de['id']=Y,_0x48b2de[_0x34920f(0x193)]['uComp']=_0x34920f(0x1eb),_0x48b2de[_0x34920f(0x226)][_0x34920f(0x275)]=_0x34920f(0x1c8),_0x48b2de[_0x34920f(0x226)][_0x34920f(0x284)]='0',_0x48b2de[_0x34920f(0x226)][_0x34920f(0x260)]='0',_0x48b2de['style'][_0x34920f(0x1d0)]='100%',_0x48b2de[_0x34920f(0x226)][_0x34920f(0x227)]=_0x34920f(0x1a0),_0x48b2de[_0x34920f(0x226)][_0x34920f(0x22a)]='49',_0x48b2de[_0x34920f(0x226)][_0x34920f(0x1d5)]=_0x34920f(0x1d9),_0x38c14b[_0x34920f(0x1e5)](_0x48b2de);}['_initPlugins'](){const _0x2f9cef=_0x15992b;[[b[_0x2f9cef(0x197)]],[M[_0x2f9cef(0x1af)],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M['IDialogService'],null]]}],[x[_0x2f9cef(0x248)]],[_[_0x2f9cef(0x1c7)],{'override':[[_[_0x2f9cef(0x25d)],null]]}],[h[_0x2f9cef(0x23b)],{'hasScroll':!0x1}],[g[_0x2f9cef(0x2ad)]],[k[_0x2f9cef(0x189)]],[t['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[j[_0x2f9cef(0x1b2)]],[re[_0x2f9cef(0x1f8)]],[ie['UniverSheetsFormulaUIPlugin']],[n[_0x2f9cef(0x1be)]],[te[_0x2f9cef(0x195)]],[C[_0x2f9cef(0x1e1)]],[ae['UniverSheetsHyperLinkPlugin']],[O[_0x2f9cef(0x253)]],[p['UniverDataValidationPlugin']],[w['UniverSheetsDataValidationPlugin']],[T[_0x2f9cef(0x2b0)]],[y[_0x2f9cef(0x29b)],{'notExecuteFormula':!0x0}],[v[_0x2f9cef(0x1a3)]],[E[_0x2f9cef(0x1bf)]],[D[_0x2f9cef(0x252)]],[d[_0x2f9cef(0x1ec)]],[f[_0x2f9cef(0x274)]],[o['UniverSheetsChartPlugin']],[s[_0x2f9cef(0x1e6)]],[l[_0x2f9cef(0x277)]],[u[_0x2f9cef(0x242)]],[c[_0x2f9cef(0x283)],{'notExecuteFormula':!0x0}],[A[_0x2f9cef(0x200)]]][_0x2f9cef(0x231)](([_0xeb8db5,_0x454e5f])=>this[_0x2f9cef(0x240)](_0xeb8db5,_0x454e5f));}[_0x15992b(0x251)](){const _0xbd57cd=_0x15992b;super[_0xbd57cd(0x251)](),this[_0xbd57cd(0x23d)](),this[_0xbd57cd(0x1fd)][_0xbd57cd(0x20d)]();}[_0x15992b(0x240)](_0xd2718a,_0x548541,_0x5918c7){const _0x865ce4=_0x15992b;if(this['_pluginMap'][_0x865ce4(0x21b)](_0xd2718a[_0x865ce4(0x258)])&&!_0x5918c7)throw Error(_0x865ce4(0x1f3)+_0xd2718a['pluginName']+'\x20has\x20been\x20registered.');this[_0x865ce4(0x1fd)]['set'](_0xd2718a[_0x865ce4(0x258)],[_0xd2718a,_0x548541]);}[_0x15992b(0x1de)](){const _0x348afd=_0x15992b;return Array['from'](this[_0x348afd(0x1fd)]['values']());}[_0x15992b(0x217)](_0x2b87f9,_0x2dc917){const _0x266b0a=_0x15992b;let _0xb35851=document['getElementById'](Y);_0xb35851&&(_0xb35851[_0x266b0a(0x226)][_0x266b0a(0x1d5)]=_0x266b0a(0x211),this['_initUniver'](_0x2b87f9,Y,_0x2dc917));}[_0x15992b(0x23d)](){const _0x101bb5=_0x15992b;var _0x1d0840;this[_0x101bb5(0x25e)][_0x101bb5(0x251)](),(_0x1d0840=this[_0x101bb5(0x19f)])==null||_0x1d0840[_0x101bb5(0x251)](),this['_historyUniver$']['next'](null);let _0x69b618=document[_0x101bb5(0x19a)](Y);_0x69b618&&(_0x69b618[_0x101bb5(0x226)][_0x101bb5(0x1d5)]=_0x101bb5(0x1d9),this[_0x101bb5(0x1c6)]&&(this[_0x101bb5(0x1c6)][_0x101bb5(0x1fa)](),this[_0x101bb5(0x1c6)]=null));}[_0x15992b(0x210)](_0x10e9ec,_0x5d19ad,_0x17a91d){const _0x2e4d99=_0x15992b;var _0x36c131,_0xc08d02,_0x2e7f08,_0x4a73a3;if(this['historyUniver'])return;let _0x588ef4=new e[(_0x2e4d99(0x278))]({'locales':{[this['_localeService']['getCurrentLocale']()]:this[_0x2e4d99(0x292)][_0x2e4d99(0x24f)]()},'override':[[e[_0x2e4d99(0x191)],{'useClass':r['AuthzIoHttpService']}]]}),_0x1683ec=_0x588ef4[_0x2e4d99(0x232)]();this[_0x2e4d99(0x1fe)](this['_themeService'][_0x2e4d99(0x1ce)][_0x2e4d99(0x215)](_0x2dab2d=>{const _0x384062=_0x2e4d99;_0x1683ec[_0x384062(0x229)](e[_0x384062(0x2a8)])[_0x384062(0x22d)](_0x2dab2d);})),this[_0x2e4d99(0x1fe)](this[_0x2e4d99(0x18c)][_0x2e4d99(0x212)][_0x2e4d99(0x215)](_0x370001=>{const _0x57dfb6=_0x2e4d99;_0x1683ec['get'](e['ThemeService'])[_0x57dfb6(0x1a1)](_0x370001);})),_0x1683ec[_0x2e4d99(0x229)](e[_0x2e4d99(0x222)])['setLocale'](this[_0x2e4d99(0x292)][_0x2e4d99(0x2a1)]()),_0x1683ec[_0x2e4d99(0x229)](e['IConfigService'])[_0x2e4d99(0x21f)](r[_0x2e4d99(0x1fb)],this['_configService'][_0x2e4d99(0x1c1)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x3b13f9=this[_0x2e4d99(0x247)]['getConfig'](a[_0x2e4d99(0x1ab)]);_0x3b13f9&&_0x588ef4[_0x2e4d99(0x240)](a['UniverLicensePlugin'],{'license':_0x3b13f9['ls']});let _0x2ced84=(_0x36c131=this[_0x2e4d99(0x247)][_0x2e4d99(0x1c1)]('edit-history-loader.config'))==null?void 0x0:_0x36c131['workerURL'],_0x160683=!!_0x2ced84;_0x160683&&(this[_0x2e4d99(0x1c6)]=_0x2ced84 instanceof Worker?_0x2ced84:null,_0x588ef4[_0x2e4d99(0x240)](S[_0x2e4d99(0x29d)],{'workerURL':_0x2ced84})),this['_pluginMap']['forEach'](([_0x4cccb2,_0x1de964])=>{const _0x8d2491=_0x2e4d99;_0x588ef4[_0x8d2491(0x240)](_0x4cccb2,_0x1de964);}),_0x588ef4[_0x2e4d99(0x240)](i[_0x2e4d99(0x1ae)],{'historyListServerUrl':(_0xc08d02=this[_0x2e4d99(0x247)]['getConfig'](_0x2e4d99(0x24d)))==null?void 0x0:_0xc08d02['historyListServerUrl'],'historyPanelComponentKey':(_0x2e7f08=this['_configService'][_0x2e4d99(0x1c1)](_0x2e4d99(0x24d)))==null?void 0x0:_0x2e7f08[_0x2e4d99(0x27c)],'historyPanelHidden':(_0x4a73a3=this[_0x2e4d99(0x247)][_0x2e4d99(0x1c1)](_0x2e4d99(0x24d)))==null?void 0x0:_0x4a73a3[_0x2e4d99(0x29e)]}),_0x1683ec[_0x2e4d99(0x273)](_0x3bdbad=>{const _0x807263=_0x2e4d99;this[_0x807263(0x26a)](_0x3bdbad,_0x10e9ec);}),this[_0x2e4d99(0x243)]['next'](_0x588ef4);let _0x56ec1d=_0x1683ec[_0x2e4d99(0x229)](i['HistoryManagerService']),_0x100c2b=this['_checkCanRevert'](_0x10e9ec),_0x139031=()=>{const _0x3f7b34=_0x2e4d99;_0x17a91d?_0x56ec1d['triggerCustomVersions'](_0x10e9ec,_0x5d19ad,_0x100c2b,_0x17a91d):_0x56ec1d[_0x3f7b34(0x2a9)](_0x10e9ec,_0x5d19ad,_0x100c2b);};if(this['_messageService']['show']({'content':this[_0x2e4d99(0x292)]['t'](_0x2e4d99(0x1d8)),'type':m[_0x2e4d99(0x192)][_0x2e4d99(0x288)]}),_0x160683)try{_0x1683ec[_0x2e4d99(0x229)](S['IRemoteInstanceService'])[_0x2e4d99(0x2ae)]()[_0x2e4d99(0x1cf)](()=>{_0x139031();});}catch{_0x139031();}else _0x139031();}['_initListener'](_0x54b61c,_0x1b00f8){const _0x33099f=_0x15992b;let _0x44777a=_0x54b61c[_0x33099f(0x229)](i[_0x33099f(0x1c5)]);this['_disposableCollection'][_0x33099f(0x22f)](_0x44777a[_0x33099f(0x294)][_0x33099f(0x215)](_0x28336e=>{const _0x2660ac=_0x33099f;switch(_0x28336e){case i[_0x2660ac(0x20c)]['Entered']:this['_dialogService'][_0x2660ac(0x1ca)](),this[_0x2660ac(0x239)]['close']();break;case i[_0x2660ac(0x20c)][_0x2660ac(0x1e7)]:this[_0x2660ac(0x1aa)]['executeCommand'](q['id']),this[_0x2660ac(0x23d)]();break;case i[_0x2660ac(0x20c)][_0x2660ac(0x1d1)]:this['unMountHistoryContent'](),this['_messageService']['show']({'content':this[_0x2660ac(0x292)]['t'](_0x2660ac(0x268)),'type':m[_0x2660ac(0x192)][_0x2660ac(0x1d1)],'duration':0xbb8});break;default:break;}})),this[_0x33099f(0x25e)][_0x33099f(0x22f)](_0x44777a['revertRevision$'][_0x33099f(0x215)](async _0x2d2433=>{const _0x4b2e00=_0x33099f;_0x2d2433&&this[_0x4b2e00(0x1aa)][_0x4b2e00(0x24c)](n['RevertRevisionMutation']['id'],{'unitId':_0x1b00f8,'revision':_0x2d2433});}));}[_0x15992b(0x1e2)](_0x4ba65c){const _0x2001c6=_0x15992b;let _0x22d2d7=this[_0x2001c6(0x276)]['getUnit'](_0x4ba65c)[_0x2001c6(0x20f)]()['map'](_0x117636=>_0x117636[_0x2001c6(0x1f6)]()),_0x4dff8c=new t[(_0x2001c6(0x1d6))](_0x4ba65c)['id'],_0x126336=_0x22d2d7['map'](_0x5d4e07=>new t['WorksheetEditPermission'](_0x4ba65c,_0x5d4e07)['id']),_0x5563fb=_0x22d2d7[_0x2001c6(0x286)](_0x30a25f=>this[_0x2001c6(0x1b7)][_0x2001c6(0x1f0)](_0x4ba65c,_0x30a25f)[_0x2001c6(0x286)](_0xfa4ef0=>new t[(_0x2001c6(0x202))](_0x4ba65c,_0x30a25f,_0xfa4ef0[_0x2001c6(0x1da)])['id']))[_0x2001c6(0x296)](),_0x214f43=new t['WorkbookRecoverHistoryPermission'](_0x4ba65c)['id'];return this['_permissionService'][_0x2001c6(0x22c)]([_0x4dff8c,..._0x126336,..._0x5563fb,_0x214f43])[_0x2001c6(0x1c0)](_0x218b63=>!!_0x218b63[_0x2001c6(0x280)]);}};X=H([V(0x0,(0x0,e['Inject'])(e[_0x15992b(0x222)])),V(0x1,e[_0x15992b(0x285)]),V(0x2,e[_0x15992b(0x1bc)]),V(0x3,e[_0x15992b(0x287)]),V(0x4,M['IMessageService']),V(0x5,e[_0x15992b(0x24a)]),V(0x6,(0x0,e[_0x15992b(0x1b4)])(t[_0x15992b(0x218)])),V(0x7,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x29c)])),V(0x8,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x18e)])),V(0x9,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x2a8)]))],X);function _0x1229(){const _0x258b3b=['mutations','getCurrentLocale','pipe','ILocalCacheService','CollaborationStatus','state$','9MVcnro','UniverEditHistoryLoaderPlugin','ThemeService','triggerLoadVersions','DependentOn','getSheetCommandTarget','_config','UniverDocsUIPlugin','whenReady','_urlService','UniverSheetsDataValidationMobileUIPlugin','UniverSheetsNumfmtPlugin','RxDisposable','menu','_themeService','UNIVER_CONTAINER_ID','ISidebarService','getUnit','Workbook','IAuthzIoService','MessageType','dataset','ToggleEditHistoryOperation','UniverSheetsFilterPlugin','UniverEditHistoryViewerPlugin','UniverRenderEnginePlugin','toDisposable','WorkbookRecoverHistoryPermission','getElementById','revertRevision$','packageName','combineLatest','some','historyUniver','100%','setTheme','_dataLoaderService','UniverDrawingUIPlugin','_updateURLWithCurrentState','WorksheetEditPermission','UniverSheetsDataValidationUIPlugin','_setupSubUnitSync','_initContainer','18028HrJwKq','_commandService','LS_CONFIG_KEY','unsubscribe','133693jyigFG','UniverEditHistoryViewerMobilePlugin','UniverMobileUIPlugin','UniverSheetsFilterUIPlugin','getOwnPropertyDescriptor','UniverSheetsMobileUIPlugin','[HistoryLoaderService]:\x20Plugin\x20','Inject','Plugin','UniverSheetsHyperLinkPlugin','_selectionProtectionRuleModel','\x20has\x20been\x20registered.','type','9314230aejsNj','MenuItemType','IConfigService','editHistory.panel.title','UniverCollaborationPlugin','UniverSheetsDrawingPlugin','every','getConfig','IMenuManagerService','historyUniver$','length','HistoryManagerService','_internalWebWorker','UniverDrawingPlugin','absolute','UNIVER_HISTORY_CONTAINER_ID','closeAll','getParam','CollaborationController','1830560bkMbDn','darkMode$','then','width','Error','disposeUnit','createElement','univerContainerId','display','WorkbookEditablePermission','Disposable','editHistory.info.initializing','none','permissionId','BehaviorSubject','set','location','getAllPlugins','_updateSubUnitFromURLParams','DisposableCollection','UniverSheetsConditionalFormattingPlugin','_checkCanRevert','_dialogService','_injector','appendChild','UniverSheetsChartUIPlugin','Exited','_collaborationController','UniverSheetsDataValidationPlugin','getActiveSheet','history-container','UniverSheetSparklinePlugin','symbol','takeUntil','UniverInstanceType','getSubunitRuleList','activeSheet$','Injector','[MobileHistoryLoaderService]:\x20Plugin\x20','mergeMenu','univer-history-container-mobile','getSheetId','version','UniverSheetsFormulaPlugin','RibbonStartGroup','terminate','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','event$','_pluginMap','disposeWithMe','550bQELXT','UniverSheetsTablePlugin','Entered','RangeProtectionPermissionEditPoint','UniverSheetsPlugin','eventID','fromCollab','_initPlugins','default','editHistory.panel.reverting','editHistory.panel.revertFailed','univer.operation.exit-edit-history','data','HistoryModeStatus','clear','_menuManagerService','getSheets','_initUniver','block','currentTheme$','univer-history-container','_historyManagerService','subscribe','prototype','mountHistoryContent','RangeProtectionRuleModel','_handleRevertAcknowledgement','IMessageService','has','UniverUIPlugin','CollaborationEvent','RevertRevisionMutation','setConfig','string','ComponentManager','LocaleService','session','decorate','loadUnit','style','height','UniverSheetsChartPlugin','get','zIndex','setLocale','composePermission','setDarkMode','UniverEditHistoryLoaderMobilePlugin','add','call','forEach','__getInjector','defineProperty','WorkbookViewHistoryPermission','onCommandExecuted','_componentManager','_localCacheService','toStringTag','_sidebarService','HistoryLoaderService','UniverDocsPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','unMountHistoryContent','dispose$','UNIVER_UNKNOWN','registerPlugin','getCollabEntity','UniverSheetsShapeUIPlugin','_historyUniver$','show','488YquIOh','UniverDataValidationPlugin','_configService','UniverNetworkPlugin','UniverSheetsUIPlugin','IPermissionService','_permissionService','executeCommand','edit-history-loader.config','OPERATION','getLocales','UniverSheetsConditionalFormattingUIPlugin','dispose','UniverSheetsDrawingUIPlugin','UniverSheetsHyperLinkUIPlugin','DataLoaderService','SetWorksheetActivateCommand','CHANGESET_ACK','registerCommand','pluginName','_messageService','72302RTQTng','UNIVER_SHEET','BUTTON','IImageIoService','_disposableCollection','triggerCustomVersions','left','getUnitId','UniverType','params','_revertErrorTimer','from','iterator','div','editHistory.panel.listFetchError','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_initListener','setParam','2014752aZhWYj','uComp','asObservable','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSheetBySheetId','subunit','invoke','UniverSheetSparklineUIPlugin','position','_univerInstanceService','UniverSheetsShapePlugin','Univer','function','@univerjs-pro/edit-history-loader','merge','historyPanelComponentKey','UniverLicensePlugin','MobileHistoryLoaderService','0.20.1','value','reload','7126884LwxLIW','UniverSheetsPivotTablePlugin','top','IUniverInstanceService','map','ICommandService','Loading','IURLService','_init','getCurrentUnitOfType','AuthzIoHttpService','onSteady','univer-container','removeAll','toPrimitive','next','_localeService','onStarting','status$','urlChange$','flat','HistoryIcon','UNIVER_CONTAINER_ID_KEY','OTHERS','getCurrentRangeDisable$','UniverFormulaEnginePlugin','IDialogService','UniverRPCMainThreadPlugin','historyPanelHidden','getUnhiddenWorksheets'];_0x1229=function(){return _0x258b3b;};return _0x1229();}let Z=class extends e[_0x15992b(0x1b5)]{constructor(_0x53c4a1=R,_0x43e8e5,_0x55460e){const _0x5e5f41=_0x15992b;super(),this[_0x5e5f41(0x2ac)]=_0x53c4a1,this[_0x5e5f41(0x1e4)]=_0x43e8e5,this[_0x5e5f41(0x247)]=_0x55460e;let {menu:_0x1e7bcb,..._0x5d45bf}=(0x0,e['merge'])({},R,this[_0x5e5f41(0x2ac)]);_0x1e7bcb&&this[_0x5e5f41(0x247)][_0x5e5f41(0x21f)]('menu',_0x1e7bcb,{'merge':!0x0}),this['_configService'][_0x5e5f41(0x21f)](L,_0x5d45bf),this[_0x5e5f41(0x2ac)][_0x5e5f41(0x1d4)]&&this['_configService'][_0x5e5f41(0x21f)](_0x5e5f41(0x18d),this[_0x5e5f41(0x2ac)][_0x5e5f41(0x1d4)]);}['onStarting'](){const _0x4edd3f=_0x15992b;[[G,{'useClass':X}],[J]][_0x4edd3f(0x231)](_0x37b599=>this[_0x4edd3f(0x1e4)][_0x4edd3f(0x22f)](_0x37b599));}[_0x15992b(0x28d)](){const _0x323284=_0x15992b;this['_injector'][_0x323284(0x229)](J);}};B(Z,_0x15992b(0x1b9),e[_0x15992b(0x1ef)][_0x15992b(0x23f)]),B(Z,_0x15992b(0x258),_0x15992b(0x23c)),B(Z,_0x15992b(0x19c),ce),B(Z,_0x15992b(0x1f7),le),Z=H([(0x0,e[_0x15992b(0x2aa)])(a[_0x15992b(0x27d)]),V(0x1,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x1f2)])),V(0x2,e[_0x15992b(0x1bc)])],Z);let Q=class extends e[_0x15992b(0x18a)]{constructor(_0x107504,_0x14749a,_0x3bd410,_0x3d31ca,_0x3a2532,_0xe6ec5e,_0x7f5ebc,_0x24b72a,_0x2fea1c,_0x6ab723,_0x117e4b){const _0x598058=_0x15992b;super(),this['_commandService']=_0x107504,this[_0x598058(0x20e)]=_0x14749a,this[_0x598058(0x236)]=_0x3bd410,this[_0x598058(0x214)]=_0x3d31ca,this[_0x598058(0x292)]=_0x3a2532,this[_0x598058(0x259)]=_0xe6ec5e,this[_0x598058(0x1e8)]=_0x7f5ebc,this[_0x598058(0x237)]=_0x24b72a,this[_0x598058(0x1a2)]=_0x2fea1c,this[_0x598058(0x276)]=_0x6ab723,this[_0x598058(0x2af)]=_0x117e4b,B(this,'_revertErrorTimer',null),this[_0x598058(0x28a)]();}[_0x15992b(0x28a)](){const _0x3921a2=_0x15992b;[K,q][_0x3921a2(0x231)](_0x474349=>this[_0x3921a2(0x1fe)]((0x0,e[_0x3921a2(0x198)])(this['_commandService'][_0x3921a2(0x257)](_0x474349)))),this[_0x3921a2(0x1fe)](this[_0x3921a2(0x236)]['register'](_0x3921a2(0x297),F[_0x3921a2(0x297)])),this[_0x3921a2(0x20e)]['mergeMenu'](de),this[_0x3921a2(0x1fe)](this[_0x3921a2(0x1aa)][_0x3921a2(0x235)](async(_0x22ac2d,_0x3f2354)=>{const _0x332e22=_0x3921a2;if(_0x22ac2d['id']===n['RevertRevisionMutation']['id']){let {unitId:_0x2451e4}=_0x22ac2d[_0x332e22(0x263)];this[_0x332e22(0x259)][_0x332e22(0x244)]({'content':this['_localeService']['t'](_0x332e22(0x208)),'type':m[_0x332e22(0x192)][_0x332e22(0x288)],'duration':0x1388});let _0x5cf6d5=this['_collaborationController'][_0x332e22(0x241)](_0x2451e4);_0x3f2354!=null&&_0x3f2354['fromCollab']?this[_0x332e22(0x219)](_0x5cf6d5,async()=>(setTimeout(()=>window[_0x332e22(0x1dd)][_0x332e22(0x281)]()),!0x0),!0x0):this[_0x332e22(0x219)](_0x5cf6d5,async()=>{const _0x406496=_0x332e22;let _0x1edcc5=this['_univerInstanceService'][_0x406496(0x28b)](I[_0x406496(0x262)][_0x406496(0x25b)]),_0xb5fcca=_0x1edcc5==null?void 0x0:_0x1edcc5[_0x406496(0x1ea)]();if(!_0xb5fcca)return!0x1;this[_0x406496(0x276)][_0x406496(0x1d2)](_0x2451e4);let _0xe1fd1a=await this['_dataLoaderService'][_0x406496(0x225)](_0x2451e4,I['UniverType'][_0x406496(0x25b)]);return _0xe1fd1a&&_0xe1fd1a instanceof e[_0x406496(0x190)]?(await this['_setupSubUnitSync'](_0xe1fd1a,_0xb5fcca[_0x406496(0x1f6)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x25640e,_0x39eba4,_0x235d26=!0x1){const _0x30ae2d=_0x15992b;let _0x1871ae=(0x0,N[_0x30ae2d(0x19d)])([_0x25640e[_0x30ae2d(0x223)][_0x30ae2d(0x1fc)],_0x25640e['state$']])[_0x30ae2d(0x215)](async([_0x2ce060,_0x459ebf])=>{const _0x4bc37a=_0x30ae2d;if(_0x2ce060[_0x4bc37a(0x204)]===n[_0x4bc37a(0x21d)][_0x4bc37a(0x256)]&&(_0x459ebf==null?void 0x0:_0x459ebf['status'])===r[_0x4bc37a(0x2a4)]['SYNCED']&&_0x2ce060[_0x4bc37a(0x20b)][_0x4bc37a(0x2a0)][_0x4bc37a(0x19e)](_0xb0898d=>_0xb0898d['id']===n[_0x4bc37a(0x21e)]['id'])&&await _0x39eba4()){var _0x3ce6d9;this[_0x4bc37a(0x214)][_0x4bc37a(0x23d)](),_0x1871ae[_0x4bc37a(0x1ac)](),this[_0x4bc37a(0x264)]&&clearTimeout(this[_0x4bc37a(0x264)]),await((_0x3ce6d9=this[_0x4bc37a(0x237)])==null?void 0x0:_0x3ce6d9['exhaustSavingTask']());}});_0x235d26&&(this[_0x30ae2d(0x264)]=setTimeout(()=>{const _0x151c6a=_0x30ae2d;_0x1871ae[_0x151c6a(0x1ac)](),this[_0x151c6a(0x259)][_0x151c6a(0x244)]({'content':this[_0x151c6a(0x292)]['t']('editHistory.panel.revertFailed'),'type':m[_0x151c6a(0x192)]['Error'],'duration':0xbb8});},0x1388));}async[_0x15992b(0x1a7)](_0x18ae29,_0x3a9809){const _0x2d49a1=_0x15992b;await this['_updateSubUnitFromURLParams'](_0x18ae29,_0x3a9809),_0x18ae29[_0x2d49a1(0x1f1)][_0x2d49a1(0x2a2)]((0x0,N[_0x2d49a1(0x1ee)])(this[_0x2d49a1(0x23e)]))[_0x2d49a1(0x215)](_0x2688ed=>{_0x2688ed&&this['_updateURLWithCurrentState'](_0x2688ed);}),this[_0x2d49a1(0x2af)][_0x2d49a1(0x295)][_0x2d49a1(0x2a2)]((0x0,N[_0x2d49a1(0x1ee)])(this[_0x2d49a1(0x23e)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x18ae29,_0x3a9809));}[_0x15992b(0x1a4)](_0x4e20de,_0x1c2c39=!0x1){const _0x20404a=_0x15992b;let _0x25c96b=this[_0x20404a(0x2af)]['getParam'](_0x20404a(0x272));_0x4e20de['getSheetId']()!==_0x25c96b&&this[_0x20404a(0x2af)][_0x20404a(0x26b)](_0x20404a(0x272),_0x4e20de[_0x20404a(0x1f6)](),_0x1c2c39);}async[_0x15992b(0x1df)](_0x3fdfbd,_0x527fea){const _0x1bce6e=_0x15992b;var _0x3f3afa;if(!_0x527fea||!_0x3fdfbd['getSheetBySheetId'](_0x527fea)){let _0x250fc9=_0x3fdfbd[_0x1bce6e(0x29f)]()[0x0],_0x538a9a=_0x3fdfbd[_0x1bce6e(0x271)](_0x250fc9);if(!_0x538a9a)return;this[_0x1bce6e(0x1a4)](_0x538a9a,!0x0),await this[_0x1bce6e(0x1aa)][_0x1bce6e(0x24c)](t[_0x1bce6e(0x255)]['id'],{'unitId':_0x3fdfbd['getUnitId'](),'subUnitId':_0x250fc9});return;}((_0x3f3afa=_0x3fdfbd[_0x1bce6e(0x1ea)]())==null?void 0x0:_0x3f3afa[_0x1bce6e(0x1f6)]())!==_0x527fea&&await this[_0x1bce6e(0x1aa)]['executeCommand'](t[_0x1bce6e(0x255)]['id'],{'unitId':_0x3fdfbd[_0x1bce6e(0x261)](),'subUnitId':_0x527fea});}};Q=H([V(0x0,e[_0x15992b(0x287)]),V(0x1,M[_0x15992b(0x1c2)]),V(0x2,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x221)])),V(0x3,(0x0,e[_0x15992b(0x1b4)])(G)),V(0x4,(0x0,e[_0x15992b(0x1b4)])(e['LocaleService'])),V(0x5,M['IMessageService']),V(0x6,(0x0,e[_0x15992b(0x1b4)])(r[_0x15992b(0x1cc)])),V(0x7,r[_0x15992b(0x2a3)]),V(0x8,(0x0,e[_0x15992b(0x1b4)])(r['DataLoaderService'])),V(0x9,e[_0x15992b(0x285)]),V(0xa,P['IURLService'])],Q);let $=class extends e[_0x15992b(0x1b5)]{constructor(_0x3677c4=R,_0x5c0c88,_0x261df4){const _0x49a8ab=_0x15992b;super(),this['_config']=_0x3677c4,this[_0x49a8ab(0x1e4)]=_0x5c0c88,this[_0x49a8ab(0x247)]=_0x261df4;let {menu:_0x54f1ba,..._0x370676}=(0x0,e[_0x49a8ab(0x27b)])({},R,this[_0x49a8ab(0x2ac)]);_0x54f1ba&&this[_0x49a8ab(0x247)][_0x49a8ab(0x21f)](_0x49a8ab(0x18b),_0x54f1ba,{'merge':!0x0}),this[_0x49a8ab(0x247)][_0x49a8ab(0x21f)](L,_0x370676),this[_0x49a8ab(0x2ac)][_0x49a8ab(0x1d4)]&&this[_0x49a8ab(0x247)][_0x49a8ab(0x21f)](U,this[_0x49a8ab(0x2ac)][_0x49a8ab(0x1d4)]);}[_0x15992b(0x293)](){const _0x4e44fe=_0x15992b;[[G],[Q]][_0x4e44fe(0x231)](_0x23a278=>this[_0x4e44fe(0x1e4)][_0x4e44fe(0x22f)](_0x23a278));}[_0x15992b(0x28d)](){const _0x49f940=_0x15992b;this[_0x49f940(0x1e4)][_0x49f940(0x229)](Q);}};B($,_0x15992b(0x1b9),e[_0x15992b(0x1ef)][_0x15992b(0x23f)]),B($,_0x15992b(0x258),_0x15992b(0x269)),B($,_0x15992b(0x19c),ce),B($,_0x15992b(0x1f7),le),$=H([(0x0,e[_0x15992b(0x2aa)])(a[_0x15992b(0x27d)]),V(0x1,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x1f2)])),V(0x2,e[_0x15992b(0x1bc)])],$),exports['EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY']=L,Object[_0x15992b(0x233)](exports,_0x15992b(0x23a),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x15992b(0x27e),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x15992b(0x194)]=K,exports[_0x15992b(0x298)]=U,exports[_0x15992b(0x1c9)]=W,Object[_0x15992b(0x233)](exports,_0x15992b(0x22e),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x15992b(0x233)](exports,_0x15992b(0x2a7),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x313f78=_0x4b0c;(function(_0x228ba2,_0x21a688){const _0x5f55ad=_0x4b0c,_0x22bb9d=_0x228ba2();while(!![]){try{const _0xf82510=-parseInt(_0x5f55ad(0x2e1))/0x1+parseInt(_0x5f55ad(0x22c))/0x2+-parseInt(_0x5f55ad(0x23b))/0x3+parseInt(_0x5f55ad(0x26e))/0x4*(parseInt(_0x5f55ad(0x20b))/0x5)+-parseInt(_0x5f55ad(0x2d5))/0x6*(parseInt(_0x5f55ad(0x27c))/0x7)+-parseInt(_0x5f55ad(0x254))/0x8+parseInt(_0x5f55ad(0x2cd))/0x9;if(_0xf82510===_0x21a688)break;else _0x22bb9d['push'](_0x22bb9d['shift']());}catch(_0x525a14){_0x22bb9d['push'](_0x22bb9d['shift']());}}}(_0xf9cd,0xb58fc),Object[_0x313f78(0x213)](exports,Symbol[_0x313f78(0x1f1)],{'value':_0x313f78(0x2d0)}));let _univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration'),_univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),_univerjs_pro_edit_history_viewer=require('@univerjs-pro/edit-history-viewer'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_pro_sheets_chart=require('@univerjs-pro/sheets-chart'),_univerjs_pro_sheets_chart_ui=require('@univerjs-pro/sheets-chart-ui'),_univerjs_pro_sheets_pivot=require('@univerjs-pro/sheets-pivot'),_univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_pro_sheets_shape_ui=require('@univerjs-pro/sheets-shape-ui'),_univerjs_pro_sheets_sparkline=require('@univerjs-pro/sheets-sparkline'),_univerjs_pro_sheets_sparkline_ui=require('@univerjs-pro/sheets-sparkline-ui'),_univerjs_data_validation=require('@univerjs/data-validation'),_univerjs_design=require('@univerjs/design'),_univerjs_docs=require('@univerjs/docs'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_drawing_ui=require('@univerjs/drawing-ui'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_network=require('@univerjs/network'),_univerjs_rpc=require('@univerjs/rpc'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_sheets_conditional_formatting_ui=require('@univerjs/sheets-conditional-formatting-ui'),_univerjs_sheets_data_validation=require('@univerjs/sheets-data-validation'),_univerjs_sheets_data_validation_ui=require('@univerjs/sheets-data-validation-ui'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_sheets_drawing_ui=require('@univerjs/sheets-drawing-ui'),_univerjs_sheets_filter=require('@univerjs/sheets-filter'),_univerjs_sheets_filter_ui=require('@univerjs/sheets-filter-ui'),_univerjs_sheets_formula=require('@univerjs/sheets-formula'),_univerjs_sheets_formula_ui=require('@univerjs/sheets-formula-ui'),_univerjs_sheets_hyper_link=require('@univerjs/sheets-hyper-link'),_univerjs_sheets_hyper_link_ui=require('@univerjs/sheets-hyper-link-ui'),_univerjs_sheets_numfmt=require('@univerjs/sheets-numfmt'),_univerjs_sheets_table=require('@univerjs/sheets-table'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_pro_collaboration_client_ui=require('@univerjs-pro/collaboration-client-ui'),_univerjs_icons=require('@univerjs/icons');const EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY=_0x313f78(0x248),configSymbol=Symbol(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x4c2b1f){'@babel/helpers - typeof';const _0xd5632f=_0x313f78;return _typeof=_0xd5632f(0x271)==typeof Symbol&&_0xd5632f(0x235)==typeof Symbol['iterator']?function(_0x15b270){return typeof _0x15b270;}:function(_0x22eaad){const _0x41c8ca=_0xd5632f;return _0x22eaad&&_0x41c8ca(0x271)==typeof Symbol&&_0x22eaad['constructor']===Symbol&&_0x22eaad!==Symbol['prototype']?'symbol':typeof _0x22eaad;},_typeof(_0x4c2b1f);}function toPrimitive(_0x1daddd,_0xe7f562){const _0xc0b6f9=_0x313f78;if('object'!=_typeof(_0x1daddd)||!_0x1daddd)return _0x1daddd;var _0x61851f=_0x1daddd[Symbol[_0xc0b6f9(0x259)]];if(void 0x0!==_0x61851f){var _0x203d08=_0x61851f[_0xc0b6f9(0x23a)](_0x1daddd,_0xe7f562||_0xc0b6f9(0x268));if(_0xc0b6f9(0x28b)!=_typeof(_0x203d08))return _0x203d08;throw new TypeError(_0xc0b6f9(0x270));}return(_0xc0b6f9(0x292)===_0xe7f562?String:Number)(_0x1daddd);}function toPropertyKey(_0x3362c9){const _0x4d20da=_0x313f78;var _0x390a31=toPrimitive(_0x3362c9,_0x4d20da(0x292));return _0x4d20da(0x235)==_typeof(_0x390a31)?_0x390a31:_0x390a31+'';}function _defineProperty(_0x2f54bc,_0x4e6676,_0x52e559){const _0x4b4338=_0x313f78;return(_0x4e6676=toPropertyKey(_0x4e6676))in _0x2f54bc?Object[_0x4b4338(0x213)](_0x2f54bc,_0x4e6676,{'value':_0x52e559,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f54bc[_0x4e6676]=_0x52e559,_0x2f54bc;}function __decorateParam(_0x47dc46,_0x513498){return function(_0x4aa51e,_0x1629f5){_0x513498(_0x4aa51e,_0x1629f5,_0x47dc46);};}function __decorate(_0x551880,_0x1d7fdf,_0x29ce85,_0xadce01){const _0x4c13c0=_0x313f78;var _0x153235=arguments[_0x4c13c0(0x1f0)],_0xaf6648=_0x153235<0x3?_0x1d7fdf:_0xadce01===null?_0xadce01=Object['getOwnPropertyDescriptor'](_0x1d7fdf,_0x29ce85):_0xadce01,_0x1a560d;if(typeof Reflect===_0x4c13c0(0x28b)&&typeof Reflect[_0x4c13c0(0x29d)]===_0x4c13c0(0x271))_0xaf6648=Reflect[_0x4c13c0(0x29d)](_0x551880,_0x1d7fdf,_0x29ce85,_0xadce01);else{for(var _0x29cdbc=_0x551880['length']-0x1;_0x29cdbc>=0x0;_0x29cdbc--)if(_0x1a560d=_0x551880[_0x29cdbc])_0xaf6648=(_0x153235<0x3?_0x1a560d(_0xaf6648):_0x153235>0x3?_0x1a560d(_0x1d7fdf,_0x29ce85,_0xaf6648):_0x1a560d(_0x1d7fdf,_0x29ce85))||_0xaf6648;}return _0x153235>0x3&&_0xaf6648&&Object['defineProperty'](_0x1d7fdf,_0x29ce85,_0xaf6648),_0xaf6648;}const DEFAULT_UNIVER_CONTAINER_ID$1='univer-container',UNIVER_CONTAINER_ID_KEY=_0x313f78(0x273),UNIVER_HISTORY_CONTAINER_ID='univer-history-container';let HistoryLoaderService=class HistoryLoaderService extends _univerjs_core['Disposable']{constructor(_0x39b8c1,_0x1d26fe,_0x23fea7,_0x92bc1f,_0x1217af,_0x1d5b7b,_0x317e65,_0x592cb8,_0x58f1b9,_0x19fb92){const _0x35f820=_0x313f78;super(),this['_localeService']=_0x39b8c1,this[_0x35f820(0x2a2)]=_0x1d26fe,this[_0x35f820(0x309)]=_0x23fea7,this[_0x35f820(0x220)]=_0x92bc1f,this[_0x35f820(0x225)]=_0x1217af,this[_0x35f820(0x204)]=_0x1d5b7b,this[_0x35f820(0x280)]=_0x317e65,this[_0x35f820(0x29e)]=_0x592cb8,this[_0x35f820(0x274)]=_0x58f1b9,this[_0x35f820(0x275)]=_0x19fb92,_defineProperty(this,'_historyUniver$',new rxjs[(_0x35f820(0x25f))](null)),_defineProperty(this,_0x35f820(0x25a),this['_historyUniver$'][_0x35f820(0x23f)]()),_defineProperty(this,_0x35f820(0x2ac),new _univerjs_core[(_0x35f820(0x22a))]()),_defineProperty(this,_0x35f820(0x20d),new Map()),_defineProperty(this,'_internalWebWorker',null),this[_0x35f820(0x1f5)]();}get[_0x313f78(0x29b)](){const _0xfeb840=_0x313f78;return this[_0xfeb840(0x261)]['value'];}[_0x313f78(0x1f5)](){const _0x33df23=_0x313f78;this[_0x33df23(0x2c0)](),this[_0x33df23(0x2d8)]();}['_initContainer'](){const _0x18bac8=_0x313f78;var _0x566b2c;const _0x3f54a4=(_0x566b2c=this[_0x18bac8(0x309)][_0x18bac8(0x294)](_0x18bac8(0x273)))!==null&&_0x566b2c!==void 0x0?_0x566b2c:DEFAULT_UNIVER_CONTAINER_ID$1,_0x5805b3=document[_0x18bac8(0x293)](_0x3f54a4);if(!_0x5805b3)return;const _0x137220=document[_0x18bac8(0x2a3)](_0x18bac8(0x22e));_0x137220['id']=UNIVER_HISTORY_CONTAINER_ID,_0x137220[_0x18bac8(0x24b)][_0x18bac8(0x201)]=_0x18bac8(0x2b1),_0x137220[_0x18bac8(0x251)][_0x18bac8(0x2ab)]='absolute',_0x137220[_0x18bac8(0x251)][_0x18bac8(0x2b8)]='0',_0x137220['style'][_0x18bac8(0x301)]='0',_0x137220['style'][_0x18bac8(0x283)]='100%',_0x137220[_0x18bac8(0x251)]['height']='100%',_0x137220[_0x18bac8(0x251)][_0x18bac8(0x21e)]='49',_0x137220[_0x18bac8(0x251)][_0x18bac8(0x202)]='none',_0x5805b3['appendChild'](_0x137220);}[_0x313f78(0x2d8)](){const _0x5b71ce=_0x313f78;[[_univerjs_engine_render[_0x5b71ce(0x20f)]],[_univerjs_ui[_0x5b71ce(0x263)],{'container':UNIVER_HISTORY_CONTAINER_ID,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[_univerjs_ui['IDialogService'],null]]}],[_univerjs_network[_0x5b71ce(0x252)]],[_univerjs_drawing[_0x5b71ce(0x2b2)],{'override':[[_univerjs_drawing[_0x5b71ce(0x264)],null]]}],[_univerjs_docs[_0x5b71ce(0x26d)],{'hasScroll':![]}],[_univerjs_docs_ui['UniverDocsUIPlugin']],[_univerjs_sheets_numfmt[_0x5b71ce(0x2f4)]],[_univerjs_sheets[_0x5b71ce(0x23d)],{'notExecuteFormula':!![]}],[_univerjs_sheets_ui[_0x5b71ce(0x21c)]],[_univerjs_sheets_formula[_0x5b71ce(0x2ec)]],[_univerjs_sheets_formula_ui[_0x5b71ce(0x2c9)]],[_univerjs_pro_collaboration[_0x5b71ce(0x2a7)]],[_univerjs_sheets_filter[_0x5b71ce(0x2f1)]],[_univerjs_sheets_filter_ui['UniverSheetsFilterUIPlugin']],[_univerjs_sheets_conditional_formatting[_0x5b71ce(0x2f6)]],[_univerjs_sheets_conditional_formatting_ui['UniverSheetsConditionalFormattingUIPlugin']],[_univerjs_sheets_hyper_link[_0x5b71ce(0x2c8)]],[_univerjs_sheets_hyper_link_ui[_0x5b71ce(0x226)]],[_univerjs_data_validation['UniverDataValidationPlugin']],[_univerjs_sheets_data_validation[_0x5b71ce(0x284)]],[_univerjs_sheets_data_validation_ui[_0x5b71ce(0x2ed)]],[_univerjs_engine_formula[_0x5b71ce(0x2ca)],{'notExecuteFormula':!![]}],[_univerjs_drawing_ui[_0x5b71ce(0x2b4)]],[_univerjs_sheets_drawing[_0x5b71ce(0x200)]],[_univerjs_sheets_drawing_ui[_0x5b71ce(0x267)]],[_univerjs_pro_sheets_sparkline['UniverSheetSparklinePlugin']],[_univerjs_pro_sheets_sparkline_ui[_0x5b71ce(0x2e3)]],[_univerjs_pro_sheets_chart[_0x5b71ce(0x2fa)]],[_univerjs_pro_sheets_chart_ui[_0x5b71ce(0x265)]],[_univerjs_pro_sheets_shape[_0x5b71ce(0x233)]],[_univerjs_pro_sheets_shape_ui['UniverSheetsShapeUIPlugin']],[_univerjs_pro_sheets_pivot['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!![]}],[_univerjs_sheets_table['UniverSheetsTablePlugin']]][_0x5b71ce(0x2b3)](([_0x5a1cb2,_0x5366f5])=>this[_0x5b71ce(0x2ba)](_0x5a1cb2,_0x5366f5));}[_0x313f78(0x246)](){const _0xa96705=_0x313f78;super[_0xa96705(0x246)](),this[_0xa96705(0x2d3)](),this[_0xa96705(0x20d)]['clear']();}['registerPlugin'](_0x9ddf83,_0x4f1a31,_0x4eb78e){const _0x1a936a=_0x313f78;if(this[_0x1a936a(0x20d)][_0x1a936a(0x30a)](_0x9ddf83[_0x1a936a(0x2d4)])&&!_0x4eb78e)throw new Error(_0x1a936a(0x28c)+_0x9ddf83['pluginName']+_0x1a936a(0x289));this[_0x1a936a(0x20d)][_0x1a936a(0x1f3)](_0x9ddf83[_0x1a936a(0x2d4)],[_0x9ddf83,_0x4f1a31]);}[_0x313f78(0x1ec)](){const _0x428fb4=_0x313f78;return Array[_0x428fb4(0x224)](this['_pluginMap'][_0x428fb4(0x22f)]());}[_0x313f78(0x298)](_0x11794f,_0x35a931){const _0x346236=_0x313f78,_0x427abd=document[_0x346236(0x293)](UNIVER_HISTORY_CONTAINER_ID);if(!_0x427abd)return;_0x427abd[_0x346236(0x251)]['display']=_0x346236(0x26f),this[_0x346236(0x222)](_0x11794f,UNIVER_HISTORY_CONTAINER_ID,_0x35a931);}['unMountHistoryContent'](){const _0x45177a=_0x313f78;var _0x1c4e08;this[_0x45177a(0x2ac)][_0x45177a(0x246)](),(_0x1c4e08=this['historyUniver'])===null||_0x1c4e08===void 0x0||_0x1c4e08[_0x45177a(0x246)](),this[_0x45177a(0x261)]['next'](null);const _0x19093d=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x19093d)return;_0x19093d['style']['display']=_0x45177a(0x25b),this[_0x45177a(0x27a)]&&(this[_0x45177a(0x27a)][_0x45177a(0x21b)](),this[_0x45177a(0x27a)]=null);}['_initUniver'](_0x23805d,_0x944fc1,_0x470c97){const _0xe4251=_0x313f78;var _0x43d21c,_0x3a2823,_0x5b7fe0,_0x591a71,_0x4c547b;if(this[_0xe4251(0x29b)])return;const _0x2eefaf=new _univerjs_core['Univer']({'locales':{[this['_localeService'][_0xe4251(0x25c)]()]:this[_0xe4251(0x244)][_0xe4251(0x2bd)]()},'override':[[_univerjs_core['IAuthzIoService'],{'useClass':_univerjs_pro_collaboration_client[_0xe4251(0x209)]}]]}),_0x40644d=_0x2eefaf[_0xe4251(0x295)]();this[_0xe4251(0x2c6)](this[_0xe4251(0x275)]['darkMode$'][_0xe4251(0x306)](_0x449168=>{const _0x4195e3=_0xe4251;_0x40644d[_0x4195e3(0x291)](_univerjs_core[_0x4195e3(0x27f)])['setDarkMode'](_0x449168);})),this[_0xe4251(0x2c6)](this['_themeService'][_0xe4251(0x2e5)][_0xe4251(0x306)](_0x5beac1=>{const _0x708714=_0xe4251;_0x40644d[_0x708714(0x291)](_univerjs_core[_0x708714(0x27f)])[_0x708714(0x2f0)](_0x5beac1);})),_0x40644d[_0xe4251(0x291)](_univerjs_core[_0xe4251(0x2e9)])[_0xe4251(0x2e0)](this[_0xe4251(0x244)][_0xe4251(0x25c)]()),_0x40644d[_0xe4251(0x291)](_univerjs_core[_0xe4251(0x26a)])[_0xe4251(0x2c3)](_univerjs_pro_collaboration_client['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0xe4251(0x309)]['getConfig'](_univerjs_pro_collaboration_client[_0xe4251(0x2b0)]));const _0x5f27f8=this[_0xe4251(0x309)]['getConfig'](_univerjs_pro_license['LS_CONFIG_KEY']);if(_0x5f27f8)_0x2eefaf['registerPlugin'](_univerjs_pro_license[_0xe4251(0x2a5)],{'license':_0x5f27f8['ls']});const _0x3d0d19=(_0x43d21c=this['_configService'][_0xe4251(0x294)](_0xe4251(0x248)))===null||_0x43d21c===void 0x0?void 0x0:_0x43d21c[_0xe4251(0x247)],_0x3193f2=!!_0x3d0d19;_0x3193f2&&(this[_0xe4251(0x27a)]=_0x3d0d19 instanceof Worker?_0x3d0d19:null,_0x2eefaf[_0xe4251(0x2ba)](_univerjs_rpc['UniverRPCMainThreadPlugin'],{'workerURL':_0x3d0d19}));this[_0xe4251(0x20d)]['forEach'](([_0x513ce6,_0x3fa199])=>{_0x2eefaf['registerPlugin'](_0x513ce6,_0x3fa199);}),_0x2eefaf[_0xe4251(0x2ba)](_univerjs_pro_edit_history_viewer[_0xe4251(0x205)],{'historyListServerUrl':(_0x3a2823=this[_0xe4251(0x309)]['getConfig'](_0xe4251(0x248)))===null||_0x3a2823===void 0x0?void 0x0:_0x3a2823['historyListServerUrl'],'historyPanelComponentKey':(_0x5b7fe0=this['_configService'][_0xe4251(0x294)](_0xe4251(0x248)))===null||_0x5b7fe0===void 0x0?void 0x0:_0x5b7fe0[_0xe4251(0x2c7)],'historyPanelHidden':(_0x591a71=this[_0xe4251(0x309)][_0xe4251(0x294)]('edit-history-loader.config'))===null||_0x591a71===void 0x0?void 0x0:_0x591a71[_0xe4251(0x2dc)],'historyAIassistantEnabled':(_0x4c547b=this[_0xe4251(0x309)][_0xe4251(0x294)](_0xe4251(0x248)))===null||_0x4c547b===void 0x0?void 0x0:_0x4c547b[_0xe4251(0x269)]}),_0x40644d[_0xe4251(0x1fd)](_0x33c670=>{const _0x51b551=_0xe4251;this[_0x51b551(0x1fb)](_0x33c670,_0x23805d);}),this[_0xe4251(0x261)]['next'](_0x2eefaf);const _0x41141d=_0x40644d[_0xe4251(0x291)](_univerjs_pro_edit_history_viewer['HistoryManagerService']),_0x38a848=this[_0xe4251(0x20a)](_0x23805d),_0x2055a1=()=>{const _0x40f012=_0xe4251;if(_0x470c97)_0x41141d[_0x40f012(0x1f2)](_0x23805d,_0x944fc1,_0x38a848,_0x470c97);else _0x41141d[_0x40f012(0x2ff)](_0x23805d,_0x944fc1,_0x38a848);};this[_0xe4251(0x225)][_0xe4251(0x1ee)]({'content':this[_0xe4251(0x244)]['t'](_0xe4251(0x1f6)),'type':_univerjs_design[_0xe4251(0x2d1)]['Loading']});if(_0x3193f2)try{_0x40644d[_0xe4251(0x291)](_univerjs_rpc['IRemoteInstanceService'])[_0xe4251(0x258)]()[_0xe4251(0x24c)](()=>{_0x2055a1();});}catch{_0x2055a1();}else _0x2055a1();}[_0x313f78(0x1fb)](_0x23bf86,_0x4b0a1c){const _0x151782=_0x313f78,_0x46a3bc=_0x23bf86[_0x151782(0x291)](_univerjs_pro_edit_history_viewer[_0x151782(0x278)]);this[_0x151782(0x2ac)][_0x151782(0x22d)](_0x46a3bc['status$']['subscribe'](_0x1f226b=>{const _0x1e257a=_0x151782;switch(_0x1f226b){case _univerjs_pro_edit_history_viewer[_0x1e257a(0x250)][_0x1e257a(0x234)]:this[_0x1e257a(0x29e)][_0x1e257a(0x219)](),this[_0x1e257a(0x274)]['close']();break;case _univerjs_pro_edit_history_viewer[_0x1e257a(0x250)][_0x1e257a(0x2fc)]:this[_0x1e257a(0x220)]['executeCommand'](ExitEditHistoryOperation['id']),this[_0x1e257a(0x2d3)]();break;case _univerjs_pro_edit_history_viewer[_0x1e257a(0x250)][_0x1e257a(0x2e6)]:this[_0x1e257a(0x2d3)](),this[_0x1e257a(0x225)][_0x1e257a(0x1ee)]({'content':this[_0x1e257a(0x244)]['t']('editHistory.panel.listFetchError'),'type':_univerjs_design[_0x1e257a(0x2d1)]['Error'],'duration':0xbb8});break;default:break;}})),this[_0x151782(0x2ac)][_0x151782(0x22d)](_0x46a3bc[_0x151782(0x245)][_0x151782(0x306)](async _0x3e9ced=>{const _0x4be2de=_0x151782;if(_0x3e9ced)this['_commandService'][_0x4be2de(0x2da)](_univerjs_pro_collaboration['RevertRevisionMutation']['id'],{'unitId':_0x4b0a1c,'revision':_0x3e9ced});}));}[_0x313f78(0x20a)](_0x505263){const _0x3b9cdf=_0x313f78,_0x510a8f=this[_0x3b9cdf(0x2a2)]['getUnit'](_0x505263)[_0x3b9cdf(0x2f3)]()[_0x3b9cdf(0x1ff)](_0x39085f=>_0x39085f[_0x3b9cdf(0x237)]()),_0x194c84=new _univerjs_sheets[(_0x3b9cdf(0x2aa))](_0x505263)['id'],_0x5679c8=_0x510a8f['map'](_0x1cd5a7=>new _univerjs_sheets[(_0x3b9cdf(0x2e8))](_0x505263,_0x1cd5a7)['id']),_0x51330a=_0x510a8f[_0x3b9cdf(0x1ff)](_0x8c772e=>this[_0x3b9cdf(0x280)]['getSubunitRuleList'](_0x505263,_0x8c772e)[_0x3b9cdf(0x1ff)](_0x35745e=>new _univerjs_sheets[(_0x3b9cdf(0x215))](_0x505263,_0x8c772e,_0x35745e[_0x3b9cdf(0x2af)])['id']))[_0x3b9cdf(0x2a8)](),_0x594e5c=new _univerjs_sheets[(_0x3b9cdf(0x2fd))](_0x505263)['id'];return this[_0x3b9cdf(0x204)]['composePermission']([_0x194c84,..._0x5679c8,..._0x51330a,_0x594e5c])[_0x3b9cdf(0x1f8)](_0x1f92be=>!!_0x1f92be[_0x3b9cdf(0x21a)]);}};HistoryLoaderService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_core[_0x313f78(0x2e9)])),__decorateParam(0x1,_univerjs_core[_0x313f78(0x2be)]),__decorateParam(0x2,_univerjs_core[_0x313f78(0x26a)]),__decorateParam(0x3,_univerjs_core['ICommandService']),__decorateParam(0x4,_univerjs_ui[_0x313f78(0x290)]),__decorateParam(0x5,_univerjs_core[_0x313f78(0x29c)]),__decorateParam(0x6,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_sheets[_0x313f78(0x2c5)])),__decorateParam(0x7,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x313f78(0x2ad)])),__decorateParam(0x8,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_ui[_0x313f78(0x300)])),__decorateParam(0x9,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_core[_0x313f78(0x27f)]))],HistoryLoaderService);const ToggleEditHistoryOperation={'id':_0x313f78(0x2d6),'type':_univerjs_core['CommandType'][_0x313f78(0x217)],'handler':_0x5a8326=>{const _0x1c080b=_0x313f78,_0x3a65d2=_0x5a8326[_0x1c080b(0x291)](HistoryLoaderService),{unitId:_0x5bbaf6}=(0x0,_univerjs_sheets[_0x1c080b(0x2e4)])(_0x5a8326[_0x1c080b(0x291)](_univerjs_core[_0x1c080b(0x2be)]))||{};if(!_0x5bbaf6)return![];return _0x3a65d2[_0x1c080b(0x298)](_0x5bbaf6),!![];}},ExitEditHistoryOperation={'id':'univer.operation.exit-edit-history','type':_univerjs_core[_0x313f78(0x26c)][_0x313f78(0x217)],'handler':()=>!![]};var name=_0x313f78(0x216),version=_0x313f78(0x2d2);function ToggleEditHistoryMenuFactory(_0x3fe1a4){const _0x243277=_0x313f78;return{'id':ToggleEditHistoryOperation['id'],'type':_univerjs_ui['MenuItemType'][_0x243277(0x276)],'icon':_0x243277(0x2fb),'tooltip':_0x243277(0x221),'hidden$':(0x0,_univerjs_ui['getMenuHiddenObservable'])(_0x3fe1a4,_univerjs_core['UniverInstanceType'][_0x243277(0x304)]),'disabled$':(0x0,_univerjs_sheets_ui[_0x243277(0x24a)])(_0x3fe1a4,{'workbookTypes':[_univerjs_sheets[_0x243277(0x2c4)]],'worksheetTypes':[],'rangeTypes':[]})};}const menuSchema={[_univerjs_ui['RibbonStartGroup']['OTHERS']]:{[ToggleEditHistoryOperation['id']]:{'order':0.2,'menuItemFactory':ToggleEditHistoryMenuFactory}}};let MobileHistoryLoaderController=class MobileHistoryLoaderController extends _univerjs_core[_0x313f78(0x272)]{constructor(_0x1d8769,_0x43f0fc,_0x439272,_0x118b3d,_0x45d5ff,_0xb0d40d,_0x4b08fe,_0x2fe07c,_0x114332,_0x5286d0,_0xbda657){const _0x165dc7=_0x313f78;super(),this['_commandService']=_0x1d8769,this[_0x165dc7(0x22b)]=_0x43f0fc,this[_0x165dc7(0x255)]=_0x439272,this[_0x165dc7(0x25e)]=_0x118b3d,this[_0x165dc7(0x244)]=_0x45d5ff,this['_messageService']=_0xb0d40d,this[_0x165dc7(0x24d)]=_0x4b08fe,this[_0x165dc7(0x2b9)]=_0x2fe07c,this[_0x165dc7(0x203)]=_0x114332,this['_univerInstanceService']=_0x5286d0,this[_0x165dc7(0x241)]=_0xbda657,_defineProperty(this,_0x165dc7(0x243),null),this[_0x165dc7(0x1f5)]();}[_0x313f78(0x1f5)](){const _0x245017=_0x313f78;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x245017(0x2b3)](_0x357bb0=>this[_0x245017(0x2c6)]((0x0,_univerjs_core[_0x245017(0x279)])(this['_commandService'][_0x245017(0x229)](_0x357bb0)))),this[_0x245017(0x2c6)](this['_componentManager'][_0x245017(0x2cf)](_0x245017(0x2fb),_univerjs_icons[_0x245017(0x2fb)])),this[_0x245017(0x22b)]['mergeMenu'](menuSchema),this[_0x245017(0x2c6)](this['_commandService'][_0x245017(0x21d)](async(_0x1b899f,_0x5a757c)=>{const _0x40d643=_0x245017;if(_0x1b899f['id']===_univerjs_pro_collaboration[_0x40d643(0x2a4)]['id']){const {unitId:_0x5590a0}=_0x1b899f['params'];this[_0x40d643(0x225)][_0x40d643(0x1ee)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_univerjs_design[_0x40d643(0x2d1)][_0x40d643(0x29f)],'duration':0x1388});const _0x4cc9e4=this[_0x40d643(0x24d)][_0x40d643(0x212)](_0x5590a0);if(!(_0x5a757c===null||_0x5a757c===void 0x0?void 0x0:_0x5a757c[_0x40d643(0x260)]))this[_0x40d643(0x2f5)](_0x4cc9e4,async()=>{const _0x4c2053=_0x40d643,_0x4735b6=this[_0x4c2053(0x2a2)][_0x4c2053(0x2cb)](_univerjs_core[_0x4c2053(0x208)][_0x4c2053(0x304)]),_0x3c5223=_0x4735b6===null||_0x4735b6===void 0x0?void 0x0:_0x4735b6[_0x4c2053(0x24f)]();if(!_0x3c5223)return![];this[_0x4c2053(0x2a2)][_0x4c2053(0x2bc)](_0x5590a0);const _0x36ecc4=await this['_dataLoaderService']['loadUnit'](_0x5590a0,_univerjs_core[_0x4c2053(0x208)][_0x4c2053(0x304)]);if(_0x36ecc4&&_0x36ecc4 instanceof _univerjs_core[_0x4c2053(0x2db)])return await this[_0x4c2053(0x28e)](_0x36ecc4,_0x3c5223[_0x4c2053(0x237)]()),!![];return![];});else this[_0x40d643(0x2f5)](_0x4cc9e4,async()=>{const _0x3c67cf=_0x40d643;return setTimeout(()=>window['location'][_0x3c67cf(0x238)]()),!![];},!![]);}}));}[_0x313f78(0x2f5)](_0x1902c9,_0x5a9ede,_0x4ffa81=![]){const _0x29c961=_0x313f78,_0x4c0ab0=(0x0,rxjs[_0x29c961(0x2ef)])([_0x1902c9[_0x29c961(0x1f4)][_0x29c961(0x2fe)],_0x1902c9['state$']])[_0x29c961(0x306)](async([_0x3f6529,_0x9f5dca])=>{const _0x212638=_0x29c961;if(_0x3f6529['eventID']===_univerjs_pro_collaboration[_0x212638(0x2f9)][_0x212638(0x239)]&&(_0x9f5dca===null||_0x9f5dca===void 0x0?void 0x0:_0x9f5dca['status'])===_univerjs_pro_collaboration_client[_0x212638(0x30b)][_0x212638(0x240)]){if(_0x3f6529[_0x212638(0x2bf)]['mutations']['some'](_0x44b987=>_0x44b987['id']===_univerjs_pro_collaboration[_0x212638(0x2a4)]['id'])){if(await _0x5a9ede()){var _0x218e8c;this['_historyManagerService'][_0x212638(0x2d3)](),_0x4c0ab0[_0x212638(0x2df)](),this[_0x212638(0x243)]&&clearTimeout(this['_revertErrorTimer']),await((_0x218e8c=this[_0x212638(0x2b9)])===null||_0x218e8c===void 0x0?void 0x0:_0x218e8c[_0x212638(0x28f)]()),this[_0x212638(0x225)][_0x212638(0x2d7)]();}}}});if(_0x4ffa81)this['_revertErrorTimer']=setTimeout(()=>{const _0x5decef=_0x29c961;_0x4c0ab0['unsubscribe'](),this[_0x5decef(0x225)][_0x5decef(0x1ee)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':_univerjs_design[_0x5decef(0x2d1)][_0x5decef(0x2e6)],'duration':0xbb8});},0x1388);}async[_0x313f78(0x28e)](_0x280f69,_0x2eaaeb){const _0x31c84a=_0x313f78;await this[_0x31c84a(0x236)](_0x280f69,_0x2eaaeb),_0x280f69['activeSheet$']['pipe']((0x0,rxjs[_0x31c84a(0x2e2)])(this[_0x31c84a(0x2c1)]))[_0x31c84a(0x306)](_0x1e474c=>{const _0x328853=_0x31c84a;if(_0x1e474c)this[_0x328853(0x231)](_0x1e474c);}),this[_0x31c84a(0x241)]['urlChange$'][_0x31c84a(0x308)]((0x0,rxjs[_0x31c84a(0x2e2)])(this[_0x31c84a(0x2c1)]))[_0x31c84a(0x306)](()=>this['_updateSubUnitFromURLParams'](_0x280f69,_0x2eaaeb));}[_0x313f78(0x231)](_0x35aaee,_0x576b77=![]){const _0x40ccff=_0x313f78,_0x5151f8=this['_urlService'][_0x40ccff(0x27b)](_0x40ccff(0x307));if(_0x35aaee[_0x40ccff(0x237)]()!==_0x5151f8)this[_0x40ccff(0x241)][_0x40ccff(0x286)]('subunit',_0x35aaee['getSheetId'](),_0x576b77);}async[_0x313f78(0x236)](_0x37c2d7,_0x174a08){const _0x2ee1f3=_0x313f78;var _0x1467cf;if(!_0x174a08||!_0x37c2d7['getSheetBySheetId'](_0x174a08)){const _0x3f269c=_0x37c2d7[_0x2ee1f3(0x266)]()[0x0],_0x473ace=_0x37c2d7[_0x2ee1f3(0x26b)](_0x3f269c);if(!_0x473ace)return;this[_0x2ee1f3(0x231)](_0x473ace,!![]),await this['_commandService'][_0x2ee1f3(0x2da)](_univerjs_sheets[_0x2ee1f3(0x28d)]['id'],{'unitId':_0x37c2d7[_0x2ee1f3(0x2e7)](),'subUnitId':_0x3f269c});return;}if(((_0x1467cf=_0x37c2d7['getActiveSheet']())===null||_0x1467cf===void 0x0?void 0x0:_0x1467cf[_0x2ee1f3(0x237)]())===_0x174a08)return;await this[_0x2ee1f3(0x220)]['executeCommand'](_univerjs_sheets[_0x2ee1f3(0x28d)]['id'],{'unitId':_0x37c2d7[_0x2ee1f3(0x2e7)](),'subUnitId':_0x174a08});}};MobileHistoryLoaderController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_ui[_0x313f78(0x257)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_ui[_0x313f78(0x23c)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x313f78(0x1ef)])(HistoryLoaderService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_core[_0x313f78(0x2e9)])),__decorateParam(0x5,_univerjs_ui[_0x313f78(0x290)]),__decorateParam(0x6,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_pro_collaboration_client[_0x313f78(0x232)])),__decorateParam(0x7,_univerjs_pro_collaboration_client['ILocalCacheService']),__decorateParam(0x8,(0x0,_univerjs_core['Inject'])(_univerjs_pro_collaboration_client[_0x313f78(0x24e)])),__decorateParam(0x9,_univerjs_core['IUniverInstanceService']),__decorateParam(0xa,_univerjs_pro_collaboration_client_ui[_0x313f78(0x1fa)])],MobileHistoryLoaderController);const DEFAULT_UNIVER_CONTAINER_ID=_0x313f78(0x2a1),UNIVER_CONTAINER_ID_KEY$1='UNIVER_CONTAINER_ID',UNIVER_HISTORY_CONTAINER_ID$1=_0x313f78(0x21f);let MobileHistoryLoaderService=class MobileHistoryLoaderService extends _univerjs_core[_0x313f78(0x2de)]{constructor(_0x4d94de,_0x4ed822,_0x5a3f4d,_0x29a6d7,_0x125d3f,_0x38255d,_0x5abda1,_0x4fa1d1,_0x36f3bb,_0x76c272){const _0x467254=_0x313f78;super(),this['_localeService']=_0x4d94de,this[_0x467254(0x2a2)]=_0x4ed822,this['_configService']=_0x5a3f4d,this[_0x467254(0x220)]=_0x29a6d7,this[_0x467254(0x225)]=_0x125d3f,this[_0x467254(0x204)]=_0x38255d,this[_0x467254(0x280)]=_0x5abda1,this[_0x467254(0x29e)]=_0x4fa1d1,this[_0x467254(0x274)]=_0x36f3bb,this[_0x467254(0x275)]=_0x76c272,_defineProperty(this,_0x467254(0x261),new rxjs[(_0x467254(0x25f))](null)),_defineProperty(this,_0x467254(0x25a),this[_0x467254(0x261)]['asObservable']()),_defineProperty(this,_0x467254(0x2ac),new _univerjs_core[(_0x467254(0x22a))]()),_defineProperty(this,_0x467254(0x20d),new Map()),_defineProperty(this,_0x467254(0x27a),null),this[_0x467254(0x1f5)]();}get[_0x313f78(0x29b)](){const _0x16941c=_0x313f78;return this[_0x16941c(0x261)][_0x16941c(0x21a)];}[_0x313f78(0x1f5)](){const _0x59af09=_0x313f78;this[_0x59af09(0x2c0)](),this[_0x59af09(0x2d8)]();}[_0x313f78(0x2c0)](){const _0x598c83=_0x313f78;var _0x294a93;const _0x230a41=(_0x294a93=this[_0x598c83(0x309)][_0x598c83(0x294)](_0x598c83(0x273)))!==null&&_0x294a93!==void 0x0?_0x294a93:DEFAULT_UNIVER_CONTAINER_ID,_0x27e517=document[_0x598c83(0x293)](_0x230a41);if(!_0x27e517)return;const _0x3929c0=document[_0x598c83(0x2a3)]('div');_0x3929c0['id']=UNIVER_HISTORY_CONTAINER_ID$1,_0x3929c0[_0x598c83(0x24b)][_0x598c83(0x201)]=_0x598c83(0x2b1),_0x3929c0[_0x598c83(0x251)]['position']=_0x598c83(0x2a0),_0x3929c0[_0x598c83(0x251)][_0x598c83(0x2b8)]='0',_0x3929c0[_0x598c83(0x251)][_0x598c83(0x301)]='0',_0x3929c0[_0x598c83(0x251)][_0x598c83(0x283)]=_0x598c83(0x214),_0x3929c0[_0x598c83(0x251)][_0x598c83(0x210)]=_0x598c83(0x214),_0x3929c0['style'][_0x598c83(0x21e)]='49',_0x3929c0[_0x598c83(0x251)][_0x598c83(0x202)]=_0x598c83(0x25b),_0x27e517[_0x598c83(0x223)](_0x3929c0);}[_0x313f78(0x2d8)](){const _0x1aa49f=_0x313f78;[[_univerjs_engine_render['UniverRenderEnginePlugin']],[_univerjs_ui[_0x1aa49f(0x277)],{'container':UNIVER_HISTORY_CONTAINER_ID$1,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[_univerjs_ui[_0x1aa49f(0x2ad)],null]]}],[_univerjs_network[_0x1aa49f(0x252)]],[_univerjs_drawing['UniverDrawingPlugin'],{'override':[[_univerjs_drawing[_0x1aa49f(0x264)],null]]}],[_univerjs_docs['UniverDocsPlugin'],{'hasScroll':![]}],[_univerjs_docs_ui[_0x1aa49f(0x249)]],[_univerjs_sheets_numfmt['UniverSheetsNumfmtPlugin']],[_univerjs_sheets[_0x1aa49f(0x23d)],{'notExecuteFormula':!![]}],[_univerjs_sheets_ui[_0x1aa49f(0x2dd)]],[_univerjs_sheets_formula[_0x1aa49f(0x2ec)]],[_univerjs_sheets_formula_ui[_0x1aa49f(0x2c9)]],[_univerjs_pro_collaboration[_0x1aa49f(0x2a7)]],[_univerjs_sheets_filter[_0x1aa49f(0x2f1)]],[_univerjs_sheets_conditional_formatting['UniverSheetsConditionalFormattingPlugin']],[_univerjs_sheets_hyper_link['UniverSheetsHyperLinkPlugin']],[_univerjs_sheets_hyper_link_ui['UniverSheetsHyperLinkUIPlugin']],[_univerjs_data_validation[_0x1aa49f(0x29a)]],[_univerjs_sheets_data_validation[_0x1aa49f(0x284)]],[_univerjs_sheets_data_validation_ui[_0x1aa49f(0x2ae)]],[_univerjs_engine_formula[_0x1aa49f(0x2ca)],{'notExecuteFormula':!![]}],[_univerjs_drawing_ui[_0x1aa49f(0x2b4)]],[_univerjs_sheets_drawing[_0x1aa49f(0x200)]],[_univerjs_sheets_drawing_ui[_0x1aa49f(0x267)]],[_univerjs_pro_sheets_sparkline[_0x1aa49f(0x2f7)]],[_univerjs_pro_sheets_sparkline_ui['UniverSheetSparklineUIPlugin']],[_univerjs_pro_sheets_chart[_0x1aa49f(0x2fa)]],[_univerjs_pro_sheets_chart_ui[_0x1aa49f(0x265)]],[_univerjs_pro_sheets_shape[_0x1aa49f(0x233)]],[_univerjs_pro_sheets_shape_ui[_0x1aa49f(0x2cc)]],[_univerjs_pro_sheets_pivot[_0x1aa49f(0x288)],{'notExecuteFormula':!![]}],[_univerjs_sheets_table['UniverSheetsTablePlugin']]]['forEach'](([_0xaf06a6,_0x523256])=>this[_0x1aa49f(0x2ba)](_0xaf06a6,_0x523256));}[_0x313f78(0x246)](){const _0x5ff2f4=_0x313f78;super[_0x5ff2f4(0x246)](),this['unMountHistoryContent'](),this[_0x5ff2f4(0x20d)]['clear']();}[_0x313f78(0x2ba)](_0x1b5859,_0x33be3b,_0x152b8c){const _0xf25139=_0x313f78;if(this['_pluginMap'][_0xf25139(0x30a)](_0x1b5859[_0xf25139(0x2d4)])&&!_0x152b8c)throw new Error(_0xf25139(0x2ce)+_0x1b5859['pluginName']+'\x20has\x20been\x20registered.');this[_0xf25139(0x20d)][_0xf25139(0x1f3)](_0x1b5859[_0xf25139(0x2d4)],[_0x1b5859,_0x33be3b]);}[_0x313f78(0x1ec)](){const _0x1b6e6f=_0x313f78;return Array['from'](this[_0x1b6e6f(0x20d)][_0x1b6e6f(0x22f)]());}[_0x313f78(0x298)](_0x1c9c41,_0x465c52){const _0xaee58d=_0x313f78,_0x4e777d=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x4e777d)return;_0x4e777d[_0xaee58d(0x251)]['display']=_0xaee58d(0x26f),this[_0xaee58d(0x222)](_0x1c9c41,UNIVER_HISTORY_CONTAINER_ID$1,_0x465c52);}[_0x313f78(0x2d3)](){const _0x39b98d=_0x313f78;var _0x4e79ef;this['_disposableCollection'][_0x39b98d(0x246)](),(_0x4e79ef=this['historyUniver'])===null||_0x4e79ef===void 0x0||_0x4e79ef[_0x39b98d(0x246)](),this[_0x39b98d(0x261)][_0x39b98d(0x302)](null);const _0x1ebd85=document[_0x39b98d(0x293)](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x1ebd85)return;_0x1ebd85[_0x39b98d(0x251)][_0x39b98d(0x202)]=_0x39b98d(0x25b),this['_internalWebWorker']&&(this[_0x39b98d(0x27a)][_0x39b98d(0x21b)](),this[_0x39b98d(0x27a)]=null);}[_0x313f78(0x222)](_0x4bda95,_0x346705,_0x468469){const _0x4e4383=_0x313f78;var _0x2b5727,_0x7c8845,_0x33042c,_0x49738a;if(this[_0x4e4383(0x29b)])return;const _0x26ffb6=new _univerjs_core[(_0x4e4383(0x287))]({'locales':{[this['_localeService'][_0x4e4383(0x25c)]()]:this[_0x4e4383(0x244)][_0x4e4383(0x2bd)]()},'override':[[_univerjs_core[_0x4e4383(0x230)],{'useClass':_univerjs_pro_collaboration_client[_0x4e4383(0x209)]}]]}),_0x27d67e=_0x26ffb6[_0x4e4383(0x295)]();this['disposeWithMe'](this[_0x4e4383(0x275)]['darkMode$'][_0x4e4383(0x306)](_0x27ee3e=>{const _0x59402b=_0x4e4383;_0x27d67e[_0x59402b(0x291)](_univerjs_core[_0x59402b(0x27f)])['setDarkMode'](_0x27ee3e);})),this[_0x4e4383(0x2c6)](this[_0x4e4383(0x275)][_0x4e4383(0x2e5)][_0x4e4383(0x306)](_0x16774c=>{const _0x1053b0=_0x4e4383;_0x27d67e[_0x1053b0(0x291)](_univerjs_core[_0x1053b0(0x27f)])[_0x1053b0(0x2f0)](_0x16774c);})),_0x27d67e[_0x4e4383(0x291)](_univerjs_core[_0x4e4383(0x2e9)])['setLocale'](this['_localeService'][_0x4e4383(0x25c)]()),_0x27d67e[_0x4e4383(0x291)](_univerjs_core[_0x4e4383(0x26a)])[_0x4e4383(0x2c3)](_univerjs_pro_collaboration_client[_0x4e4383(0x2b0)],this[_0x4e4383(0x309)][_0x4e4383(0x294)](_univerjs_pro_collaboration_client[_0x4e4383(0x2b0)]));const _0x488abe=this[_0x4e4383(0x309)][_0x4e4383(0x294)](_univerjs_pro_license[_0x4e4383(0x2eb)]);if(_0x488abe)_0x26ffb6[_0x4e4383(0x2ba)](_univerjs_pro_license['UniverLicensePlugin'],{'license':_0x488abe['ls']});const _0x1df679=(_0x2b5727=this[_0x4e4383(0x309)][_0x4e4383(0x294)](_0x4e4383(0x248)))===null||_0x2b5727===void 0x0?void 0x0:_0x2b5727[_0x4e4383(0x247)],_0xc19f21=!!_0x1df679;_0xc19f21&&(this[_0x4e4383(0x27a)]=_0x1df679 instanceof Worker?_0x1df679:null,_0x26ffb6['registerPlugin'](_univerjs_rpc[_0x4e4383(0x2ee)],{'workerURL':_0x1df679}));this['_pluginMap'][_0x4e4383(0x2b3)](([_0x1f81e5,_0x5c97bd])=>{_0x26ffb6['registerPlugin'](_0x1f81e5,_0x5c97bd);}),_0x26ffb6['registerPlugin'](_univerjs_pro_edit_history_viewer[_0x4e4383(0x2bb)],{'historyListServerUrl':(_0x7c8845=this[_0x4e4383(0x309)][_0x4e4383(0x294)]('edit-history-loader.config'))===null||_0x7c8845===void 0x0?void 0x0:_0x7c8845[_0x4e4383(0x282)],'historyPanelComponentKey':(_0x33042c=this[_0x4e4383(0x309)]['getConfig'](_0x4e4383(0x248)))===null||_0x33042c===void 0x0?void 0x0:_0x33042c['historyPanelComponentKey'],'historyPanelHidden':(_0x49738a=this[_0x4e4383(0x309)]['getConfig'](_0x4e4383(0x248)))===null||_0x49738a===void 0x0?void 0x0:_0x49738a[_0x4e4383(0x2dc)]}),_0x27d67e[_0x4e4383(0x1fd)](_0x6b1ef8=>{const _0x326ccb=_0x4e4383;this[_0x326ccb(0x1fb)](_0x6b1ef8,_0x4bda95);}),this[_0x4e4383(0x261)][_0x4e4383(0x302)](_0x26ffb6);const _0x121787=_0x27d67e[_0x4e4383(0x291)](_univerjs_pro_edit_history_viewer['HistoryManagerService']),_0x47780a=this['_checkCanRevert'](_0x4bda95),_0x5b991d=()=>{const _0x1283b3=_0x4e4383;if(_0x468469)_0x121787[_0x1283b3(0x1f2)](_0x4bda95,_0x346705,_0x47780a,_0x468469);else _0x121787[_0x1283b3(0x2ff)](_0x4bda95,_0x346705,_0x47780a);};this[_0x4e4383(0x225)][_0x4e4383(0x1ee)]({'content':this[_0x4e4383(0x244)]['t'](_0x4e4383(0x1f6)),'type':_univerjs_design[_0x4e4383(0x2d1)][_0x4e4383(0x29f)]});if(_0xc19f21)try{_0x27d67e['get'](_univerjs_rpc[_0x4e4383(0x296)])[_0x4e4383(0x258)]()[_0x4e4383(0x24c)](()=>{_0x5b991d();});}catch{_0x5b991d();}else _0x5b991d();}[_0x313f78(0x1fb)](_0x425971,_0x169255){const _0x4a9bfe=_0x313f78,_0x3d8365=_0x425971[_0x4a9bfe(0x291)](_univerjs_pro_edit_history_viewer[_0x4a9bfe(0x278)]);this[_0x4a9bfe(0x2ac)][_0x4a9bfe(0x22d)](_0x3d8365[_0x4a9bfe(0x303)][_0x4a9bfe(0x306)](_0x5e5502=>{const _0x2f6394=_0x4a9bfe;switch(_0x5e5502){case _univerjs_pro_edit_history_viewer[_0x2f6394(0x250)][_0x2f6394(0x234)]:this[_0x2f6394(0x29e)][_0x2f6394(0x219)](),this[_0x2f6394(0x274)]['close']();break;case _univerjs_pro_edit_history_viewer[_0x2f6394(0x250)][_0x2f6394(0x2fc)]:this[_0x2f6394(0x220)][_0x2f6394(0x2da)](ExitEditHistoryOperation['id']),this[_0x2f6394(0x2d3)]();break;case _univerjs_pro_edit_history_viewer[_0x2f6394(0x250)][_0x2f6394(0x2e6)]:this[_0x2f6394(0x2d3)](),this[_0x2f6394(0x225)][_0x2f6394(0x1ee)]({'content':this[_0x2f6394(0x244)]['t'](_0x2f6394(0x297)),'type':_univerjs_design[_0x2f6394(0x2d1)][_0x2f6394(0x2e6)],'duration':0xbb8});break;default:break;}})),this[_0x4a9bfe(0x2ac)]['add'](_0x3d8365[_0x4a9bfe(0x245)][_0x4a9bfe(0x306)](async _0x46fe91=>{const _0xbb513=_0x4a9bfe;if(_0x46fe91)this['_commandService'][_0xbb513(0x2da)](_univerjs_pro_collaboration['RevertRevisionMutation']['id'],{'unitId':_0x169255,'revision':_0x46fe91});}));}[_0x313f78(0x20a)](_0x29fee1){const _0x62f05f=_0x313f78,_0x1cea38=this[_0x62f05f(0x2a2)][_0x62f05f(0x281)](_0x29fee1)[_0x62f05f(0x2f3)]()[_0x62f05f(0x1ff)](_0x1a8806=>_0x1a8806['getSheetId']()),_0x5b866f=new _univerjs_sheets[(_0x62f05f(0x2aa))](_0x29fee1)['id'],_0x5d9f8e=_0x1cea38[_0x62f05f(0x1ff)](_0x5cb15b=>new _univerjs_sheets['WorksheetEditPermission'](_0x29fee1,_0x5cb15b)['id']),_0x493971=_0x1cea38[_0x62f05f(0x1ff)](_0x36b878=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x29fee1,_0x36b878)[_0x62f05f(0x1ff)](_0x4f770e=>new _univerjs_sheets[(_0x62f05f(0x215))](_0x29fee1,_0x36b878,_0x4f770e[_0x62f05f(0x2af)])['id']))[_0x62f05f(0x2a8)](),_0x4a3313=new _univerjs_sheets[(_0x62f05f(0x2fd))](_0x29fee1)['id'];return this['_permissionService'][_0x62f05f(0x228)]([_0x5b866f,..._0x5d9f8e,..._0x493971,_0x4a3313])[_0x62f05f(0x1f8)](_0x692901=>!!_0x692901['value']);}};MobileHistoryLoaderService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_core[_0x313f78(0x2e9)])),__decorateParam(0x1,_univerjs_core[_0x313f78(0x2be)]),__decorateParam(0x2,_univerjs_core['IConfigService']),__decorateParam(0x3,_univerjs_core['ICommandService']),__decorateParam(0x4,_univerjs_ui[_0x313f78(0x290)]),__decorateParam(0x5,_univerjs_core[_0x313f78(0x29c)]),__decorateParam(0x6,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_sheets[_0x313f78(0x2c5)])),__decorateParam(0x7,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_ui[_0x313f78(0x2ad)])),__decorateParam(0x8,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x313f78(0x300)])),__decorateParam(0x9,(0x0,_univerjs_core['Inject'])(_univerjs_core['ThemeService']))],MobileHistoryLoaderService);let UniverEditHistoryLoaderMobilePlugin=class UniverEditHistoryLoaderMobilePlugin extends _univerjs_core[_0x313f78(0x218)]{constructor(_0x46c25a=defaultPluginConfig,_0x3f4e09,_0x309194){const _0xc66e91=_0x313f78;super(),this[_0xc66e91(0x262)]=_0x46c25a,this['_injector']=_0x3f4e09,this['_configService']=_0x309194;const {menu:_0x241b95,..._0x406126}=(0x0,_univerjs_core[_0xc66e91(0x25d)])({},defaultPluginConfig,this[_0xc66e91(0x262)]);if(_0x241b95)this[_0xc66e91(0x309)][_0xc66e91(0x2c3)](_0xc66e91(0x253),_0x241b95,{'merge':!![]});this['_configService'][_0xc66e91(0x2c3)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x406126);if(this[_0xc66e91(0x262)][_0xc66e91(0x211)])this[_0xc66e91(0x309)]['setConfig'](UNIVER_CONTAINER_ID_KEY$1,this[_0xc66e91(0x262)]['univerContainerId']);}[_0x313f78(0x2b7)](){const _0x3c6d7d=_0x313f78;[[HistoryLoaderService,{'useClass':MobileHistoryLoaderService}],[MobileHistoryLoaderController]][_0x3c6d7d(0x2b3)](_0x4ca56a=>this['_injector'][_0x3c6d7d(0x22d)](_0x4ca56a));}[_0x313f78(0x299)](){const _0x27e6cc=_0x313f78;this[_0x27e6cc(0x256)][_0x27e6cc(0x291)](MobileHistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x313f78(0x242),_univerjs_core[_0x313f78(0x208)]['UNIVER_UNKNOWN']),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x313f78(0x2d4),_0x313f78(0x2b6)),_defineProperty(UniverEditHistoryLoaderMobilePlugin,'packageName',name),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x313f78(0x2a9),version),UniverEditHistoryLoaderMobilePlugin=__decorate([(0x0,_univerjs_core['DependentOn'])(_univerjs_pro_license[_0x313f78(0x2a5)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x313f78(0x26a)])],UniverEditHistoryLoaderMobilePlugin);let HistoryLoaderController=class HistoryLoaderController extends _univerjs_core[_0x313f78(0x272)]{constructor(_0x37ad23,_0x468a3e,_0x591c18,_0x16cfed,_0x159b26,_0x53a34b,_0x18c61b,_0x227f81,_0x2c457a,_0x1e0a1e,_0x5bc132){const _0x5ab0fc=_0x313f78;super(),this[_0x5ab0fc(0x220)]=_0x37ad23,this['_menuManagerService']=_0x468a3e,this[_0x5ab0fc(0x255)]=_0x591c18,this[_0x5ab0fc(0x25e)]=_0x16cfed,this[_0x5ab0fc(0x244)]=_0x159b26,this[_0x5ab0fc(0x225)]=_0x53a34b,this['_collaborationController']=_0x18c61b,this['_localCacheService']=_0x227f81,this[_0x5ab0fc(0x203)]=_0x2c457a,this[_0x5ab0fc(0x2a2)]=_0x1e0a1e,this[_0x5ab0fc(0x241)]=_0x5bc132,_defineProperty(this,_0x5ab0fc(0x243),null),this[_0x5ab0fc(0x1f5)]();}[_0x313f78(0x1f5)](){const _0x4df1a3=_0x313f78;[ToggleEditHistoryOperation,ExitEditHistoryOperation]['forEach'](_0x10d4d3=>this['disposeWithMe']((0x0,_univerjs_core[_0x4df1a3(0x279)])(this['_commandService'][_0x4df1a3(0x229)](_0x10d4d3)))),this[_0x4df1a3(0x2c6)](this[_0x4df1a3(0x255)]['register'](_0x4df1a3(0x2fb),_univerjs_icons[_0x4df1a3(0x2fb)])),this[_0x4df1a3(0x22b)][_0x4df1a3(0x1f7)](menuSchema),this[_0x4df1a3(0x2c6)](this['_commandService']['onCommandExecuted'](async(_0x55e4f3,_0x527537)=>{const _0x18869b=_0x4df1a3;if(_0x55e4f3['id']===_univerjs_pro_collaboration[_0x18869b(0x2a4)]['id']){const {unitId:_0x4cc90f}=_0x55e4f3[_0x18869b(0x1fe)];this[_0x18869b(0x225)][_0x18869b(0x1ee)]({'content':this['_localeService']['t'](_0x18869b(0x285)),'type':_univerjs_design[_0x18869b(0x2d1)]['Loading'],'duration':0x1388});const _0x4acb18=this[_0x18869b(0x24d)][_0x18869b(0x212)](_0x4cc90f);if(!(_0x527537===null||_0x527537===void 0x0?void 0x0:_0x527537[_0x18869b(0x260)]))this[_0x18869b(0x2f5)](_0x4acb18,async()=>{const _0x1306d1=_0x18869b,_0x43e108=this[_0x1306d1(0x2a2)]['getCurrentUnitOfType'](_univerjs_core[_0x1306d1(0x208)]['UNIVER_SHEET']),_0x5de98e=_0x43e108===null||_0x43e108===void 0x0?void 0x0:_0x43e108['getActiveSheet']();if(!_0x5de98e)return![];this[_0x1306d1(0x2a2)][_0x1306d1(0x2bc)](_0x4cc90f);const _0x151d36=await this[_0x1306d1(0x203)]['loadUnit'](_0x4cc90f,_univerjs_core[_0x1306d1(0x208)]['UNIVER_SHEET']);if(_0x151d36&&_0x151d36 instanceof _univerjs_core[_0x1306d1(0x2db)])return await this[_0x1306d1(0x28e)](_0x151d36,_0x5de98e[_0x1306d1(0x237)]()),!![];return![];});else this[_0x18869b(0x2f5)](_0x4acb18,async()=>{const _0x3cdfd7=_0x18869b;return setTimeout(()=>window[_0x3cdfd7(0x2f2)][_0x3cdfd7(0x238)]()),!![];},!![]);}}));}[_0x313f78(0x2f5)](_0x17baea,_0x6ffba4,_0x4c51a9=![]){const _0xaaa34d=_0x313f78,_0x179779=(0x0,rxjs['combineLatest'])([_0x17baea[_0xaaa34d(0x1f4)][_0xaaa34d(0x2fe)],_0x17baea[_0xaaa34d(0x206)]])[_0xaaa34d(0x306)](async([_0x4aedc3,_0x42beb6])=>{const _0x53dfc4=_0xaaa34d;if(_0x4aedc3['eventID']===_univerjs_pro_collaboration[_0x53dfc4(0x2f9)][_0x53dfc4(0x239)]&&(_0x42beb6===null||_0x42beb6===void 0x0?void 0x0:_0x42beb6[_0x53dfc4(0x2ea)])===_univerjs_pro_collaboration_client[_0x53dfc4(0x30b)][_0x53dfc4(0x240)]){if(_0x4aedc3['data'][_0x53dfc4(0x27e)][_0x53dfc4(0x27d)](_0xe6fd6c=>_0xe6fd6c['id']===_univerjs_pro_collaboration['RevertRevisionMutation']['id'])){if(await _0x6ffba4()){var _0xb3ab2f;this[_0x53dfc4(0x25e)][_0x53dfc4(0x2d3)](),_0x179779[_0x53dfc4(0x2df)](),this[_0x53dfc4(0x243)]&&clearTimeout(this[_0x53dfc4(0x243)]),await((_0xb3ab2f=this['_localCacheService'])===null||_0xb3ab2f===void 0x0?void 0x0:_0xb3ab2f[_0x53dfc4(0x28f)]());}}}});if(_0x4c51a9)this[_0xaaa34d(0x243)]=setTimeout(()=>{const _0x360ce3=_0xaaa34d;_0x179779[_0x360ce3(0x2df)](),this[_0x360ce3(0x225)][_0x360ce3(0x1ee)]({'content':this[_0x360ce3(0x244)]['t'](_0x360ce3(0x2c2)),'type':_univerjs_design['MessageType'][_0x360ce3(0x2e6)],'duration':0xbb8});},0x1388);}async[_0x313f78(0x28e)](_0x4b2934,_0x3e7654){const _0x517ea7=_0x313f78;await this[_0x517ea7(0x236)](_0x4b2934,_0x3e7654),_0x4b2934[_0x517ea7(0x2f8)][_0x517ea7(0x308)]((0x0,rxjs[_0x517ea7(0x2e2)])(this[_0x517ea7(0x2c1)]))[_0x517ea7(0x306)](_0x198298=>{if(_0x198298)this['_updateURLWithCurrentState'](_0x198298);}),this[_0x517ea7(0x241)]['urlChange$'][_0x517ea7(0x308)]((0x0,rxjs[_0x517ea7(0x2e2)])(this[_0x517ea7(0x2c1)]))[_0x517ea7(0x306)](()=>this[_0x517ea7(0x236)](_0x4b2934,_0x3e7654));}[_0x313f78(0x231)](_0x1d82ad,_0xc1a823=![]){const _0x472c46=_0x313f78,_0x414847=this['_urlService'][_0x472c46(0x27b)]('subunit');if(_0x1d82ad[_0x472c46(0x237)]()!==_0x414847)this[_0x472c46(0x241)][_0x472c46(0x286)](_0x472c46(0x307),_0x1d82ad[_0x472c46(0x237)](),_0xc1a823);}async[_0x313f78(0x236)](_0xd4faf7,_0x391237){const _0xe49ec8=_0x313f78;var _0x38cb2f;if(!_0x391237||!_0xd4faf7[_0xe49ec8(0x26b)](_0x391237)){const _0x4c33a2=_0xd4faf7[_0xe49ec8(0x266)]()[0x0],_0x5d9861=_0xd4faf7[_0xe49ec8(0x26b)](_0x4c33a2);if(!_0x5d9861)return;this[_0xe49ec8(0x231)](_0x5d9861,!![]),await this['_commandService'][_0xe49ec8(0x2da)](_univerjs_sheets['SetWorksheetActivateCommand']['id'],{'unitId':_0xd4faf7['getUnitId'](),'subUnitId':_0x4c33a2});return;}if(((_0x38cb2f=_0xd4faf7[_0xe49ec8(0x24f)]())===null||_0x38cb2f===void 0x0?void 0x0:_0x38cb2f[_0xe49ec8(0x237)]())===_0x391237)return;await this[_0xe49ec8(0x220)][_0xe49ec8(0x2da)](_univerjs_sheets[_0xe49ec8(0x28d)]['id'],{'unitId':_0xd4faf7['getUnitId'](),'subUnitId':_0x391237});}};HistoryLoaderController=__decorate([__decorateParam(0x0,_univerjs_core[_0x313f78(0x1ed)]),__decorateParam(0x1,_univerjs_ui[_0x313f78(0x257)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_ui[_0x313f78(0x23c)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x313f78(0x1ef)])(HistoryLoaderService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_core[_0x313f78(0x2e9)])),__decorateParam(0x5,_univerjs_ui[_0x313f78(0x290)]),__decorateParam(0x6,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_pro_collaboration_client[_0x313f78(0x232)])),__decorateParam(0x7,_univerjs_pro_collaboration_client[_0x313f78(0x2d9)]),__decorateParam(0x8,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_pro_collaboration_client[_0x313f78(0x24e)])),__decorateParam(0x9,_univerjs_core['IUniverInstanceService']),__decorateParam(0xa,_univerjs_pro_collaboration_client_ui[_0x313f78(0x1fa)])],HistoryLoaderController);function _0x4b0c(_0x5c1307,_0x2b1df3){_0x5c1307=_0x5c1307-0x1ec;const _0xf9cd2=_0xf9cd();let _0x4b0c0c=_0xf9cd2[_0x5c1307];return _0x4b0c0c;}let UniverEditHistoryLoaderPlugin=class UniverEditHistoryLoaderPlugin extends _univerjs_core['Plugin']{constructor(_0xb2f629=defaultPluginConfig,_0x3e1236,_0x5aa3bd){const _0x1b2c79=_0x313f78;super(),this[_0x1b2c79(0x262)]=_0xb2f629,this[_0x1b2c79(0x256)]=_0x3e1236,this['_configService']=_0x5aa3bd;const {menu:_0x5e0418,..._0x111d00}=(0x0,_univerjs_core[_0x1b2c79(0x25d)])({},defaultPluginConfig,this['_config']);if(_0x5e0418)this[_0x1b2c79(0x309)][_0x1b2c79(0x2c3)]('menu',_0x5e0418,{'merge':!![]});this[_0x1b2c79(0x309)][_0x1b2c79(0x2c3)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x111d00);if(this[_0x1b2c79(0x262)]['univerContainerId'])this[_0x1b2c79(0x309)][_0x1b2c79(0x2c3)](UNIVER_CONTAINER_ID_KEY,this[_0x1b2c79(0x262)]['univerContainerId']);}[_0x313f78(0x2b7)](){const _0xe19c8e=_0x313f78;[[HistoryLoaderService],[HistoryLoaderController]][_0xe19c8e(0x2b3)](_0x2271ea=>this[_0xe19c8e(0x256)][_0xe19c8e(0x22d)](_0x2271ea));}[_0x313f78(0x299)](){const _0x36a0a0=_0x313f78;this[_0x36a0a0(0x256)]['get'](HistoryLoaderController);}};function _0xf9cd(){const _0x8ffcdd=['pipe','_configService','has','CollaborationStatus','getAllPlugins','ICommandService','show','Inject','length','toStringTag','triggerCustomVersions','set','session','_init','editHistory.info.initializing','mergeMenu','every','MobileHistoryLoaderService','IURLService','_initListener','UNIVER_CONTAINER_ID_KEY','invoke','params','map','UniverSheetsDrawingPlugin','uComp','display','_dataLoaderService','_permissionService','UniverEditHistoryViewerPlugin','state$','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverInstanceType','AuthzIoHttpService','_checkCanRevert','5518415AZOqVa','UNIVER_UNKNOWN','_pluginMap','DependentOn','UniverRenderEnginePlugin','height','univerContainerId','getCollabEntity','defineProperty','100%','RangeProtectionPermissionEditPoint','@univerjs-pro/edit-history-loader','OPERATION','Plugin','closeAll','value','terminate','UniverSheetsUIPlugin','onCommandExecuted','zIndex','univer-history-container-mobile','_commandService','editHistory.panel.title','_initUniver','appendChild','from','_messageService','UniverSheetsHyperLinkUIPlugin','UniverEditHistoryLoaderPlugin','composePermission','registerCommand','DisposableCollection','_menuManagerService','1314474PVboGw','add','div','values','IAuthzIoService','_updateURLWithCurrentState','CollaborationController','UniverSheetsShapePlugin','Entered','symbol','_updateSubUnitFromURLParams','getSheetId','reload','CHANGESET_ACK','call','803871yBGNaE','ComponentManager','UniverSheetsPlugin','UNIVER_HISTORY_CONTAINER_ID','asObservable','SYNCED','_urlService','type','_revertErrorTimer','_localeService','revertRevision$','dispose','workerURL','edit-history-loader.config','UniverDocsUIPlugin','getCurrentRangeDisable$','dataset','then','_collaborationController','DataLoaderService','getActiveSheet','HistoryModeStatus','style','UniverNetworkPlugin','menu','6439568nAeUao','_componentManager','_injector','IMenuManagerService','whenReady','toPrimitive','historyUniver$','none','getCurrentLocale','merge','_historyManagerService','BehaviorSubject','fromCollab','_historyUniver$','_config','UniverUIPlugin','IImageIoService','UniverSheetsChartUIPlugin','getUnhiddenWorksheets','UniverSheetsDrawingUIPlugin','default','historyAIassistantEnabled','IConfigService','getSheetBySheetId','CommandType','UniverDocsPlugin','4cPfcqR','block','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','RxDisposable','UNIVER_CONTAINER_ID','_sidebarService','_themeService','BUTTON','UniverMobileUIPlugin','HistoryManagerService','toDisposable','_internalWebWorker','getParam','14tjceOV','some','mutations','ThemeService','_selectionProtectionRuleModel','getUnit','historyListServerUrl','width','UniverSheetsDataValidationPlugin','editHistory.panel.reverting','setParam','Univer','UniverSheetsPivotTablePlugin','\x20has\x20been\x20registered.','ToggleEditHistoryOperation','object','[HistoryLoaderService]:\x20Plugin\x20','SetWorksheetActivateCommand','_setupSubUnitSync','exhaustSavingTask','IMessageService','get','string','getElementById','getConfig','__getInjector','IRemoteInstanceService','editHistory.panel.listFetchError','mountHistoryContent','onSteady','UniverDataValidationPlugin','historyUniver','IPermissionService','decorate','_dialogService','Loading','absolute','univer-container','_univerInstanceService','createElement','RevertRevisionMutation','UniverLicensePlugin','UniverEditHistoryLoaderMobilePlugin','UniverCollaborationPlugin','flat','version','WorkbookEditablePermission','position','_disposableCollection','IDialogService','UniverSheetsDataValidationMobileUIPlugin','permissionId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','history-container','UniverDrawingPlugin','forEach','UniverDrawingUIPlugin','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','onStarting','top','_localCacheService','registerPlugin','UniverEditHistoryViewerMobilePlugin','disposeUnit','getLocales','IUniverInstanceService','data','_initContainer','dispose$','editHistory.panel.revertFailed','setConfig','WorkbookViewHistoryPermission','RangeProtectionRuleModel','disposeWithMe','historyPanelComponentKey','UniverSheetsHyperLinkPlugin','UniverSheetsFormulaUIPlugin','UniverFormulaEnginePlugin','getCurrentUnitOfType','UniverSheetsShapeUIPlugin','8079183nSlhHw','[MobileHistoryLoaderService]:\x20Plugin\x20','register','Module','MessageType','0.21.0','unMountHistoryContent','pluginName','953790CDUbcT','univer.operation.toggle-edit-history','removeAll','_initPlugins','ILocalCacheService','executeCommand','Workbook','historyPanelHidden','UniverSheetsMobileUIPlugin','Disposable','unsubscribe','setLocale','524098YTijhd','takeUntil','UniverSheetSparklineUIPlugin','getSheetCommandTarget','currentTheme$','Error','getUnitId','WorksheetEditPermission','LocaleService','status','LS_CONFIG_KEY','UniverSheetsFormulaPlugin','UniverSheetsDataValidationUIPlugin','UniverRPCMainThreadPlugin','combineLatest','setTheme','UniverSheetsFilterPlugin','location','getSheets','UniverSheetsNumfmtPlugin','_handleRevertAcknowledgement','UniverSheetsConditionalFormattingPlugin','UniverSheetSparklinePlugin','activeSheet$','CollaborationEvent','UniverSheetsChartPlugin','HistoryIcon','Exited','WorkbookRecoverHistoryPermission','event$','triggerLoadVersions','ISidebarService','left','next','status$','UNIVER_SHEET','packageName','subscribe','subunit'];_0xf9cd=function(){return _0x8ffcdd;};return _0xf9cd();}_defineProperty(UniverEditHistoryLoaderPlugin,_0x313f78(0x242),_univerjs_core['UniverInstanceType'][_0x313f78(0x20c)]),_defineProperty(UniverEditHistoryLoaderPlugin,_0x313f78(0x2d4),_0x313f78(0x207)),_defineProperty(UniverEditHistoryLoaderPlugin,_0x313f78(0x305),name),_defineProperty(UniverEditHistoryLoaderPlugin,_0x313f78(0x2a9),version),UniverEditHistoryLoaderPlugin=__decorate([(0x0,_univerjs_core[_0x313f78(0x20e)])(_univerjs_pro_license['UniverLicensePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0x313f78(0x1ef)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core['IConfigService'])],UniverEditHistoryLoaderPlugin),exports[_0x313f78(0x2b5)]=EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,Object['defineProperty'](exports,'HistoryLoaderService',{'enumerable':!![],'get':function(){return HistoryLoaderService;}}),Object[_0x313f78(0x213)](exports,_0x313f78(0x1f9),{'enumerable':!![],'get':function(){return MobileHistoryLoaderService;}}),exports[_0x313f78(0x28a)]=ToggleEditHistoryOperation,exports[_0x313f78(0x1fc)]=UNIVER_CONTAINER_ID_KEY,exports[_0x313f78(0x23e)]=UNIVER_HISTORY_CONTAINER_ID,Object[_0x313f78(0x213)](exports,_0x313f78(0x2a6),{'enumerable':!![],'get':function(){return UniverEditHistoryLoaderMobilePlugin;}}),Object[_0x313f78(0x213)](exports,_0x313f78(0x227),{'enumerable':!![],'get':function(){return UniverEditHistoryLoaderPlugin;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x257921=_0x19ba;(function(_0x301c74,_0x38e099){const _0x1ac701=_0x19ba,_0x10ea76=_0x301c74();while(!![]){try{const _0x3a95f7=-parseInt(_0x1ac701(0x223))/0x1+parseInt(_0x1ac701(0x28f))/0x2+parseInt(_0x1ac701(0x1fd))/0x3*(-parseInt(_0x1ac701(0x213))/0x4)+parseInt(_0x1ac701(0x233))/0x5+-parseInt(_0x1ac701(0x1f3))/0x6+parseInt(_0x1ac701(0x21f))/0x7+-parseInt(_0x1ac701(0x238))/0x8*(-parseInt(_0x1ac701(0x29d))/0x9);if(_0x3a95f7===_0x38e099)break;else _0x10ea76['push'](_0x10ea76['shift']());}catch(_0x14bed0){_0x10ea76['push'](_0x10ea76['shift']());}}}(_0x541a,0x90797));import{CommandType as _0x487ef2,DependentOn as _0x219475,Disposable as _0x8532c1,DisposableCollection as _0xc6dfe0,IAuthzIoService as _0x53d29b,ICommandService as _0x3b2fe9,IConfigService as _0x119b2,IPermissionService as _0x1c5768,IUniverInstanceService as _0x430938,Inject as _0x3d4214,Injector as _0x4f86b8,LocaleService as _0x316b33,Plugin as _0x30cf8f,RxDisposable as _0x3c2c30,ThemeService as _0x24cb5d,Univer as _0x481fbd,UniverInstanceType as _0x7184d6,Workbook as _0x26a77f,merge as _0x3bca78,toDisposable as _0x1ecd9a}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x540a05,RangeProtectionRuleModel as _0x333165,SetWorksheetActivateCommand as _0x4bdacf,UniverSheetsPlugin as _0x43ef5f,WorkbookEditablePermission as _0x4417ae,WorkbookRecoverHistoryPermission as _0x4b7b3a,WorkbookViewHistoryPermission as _0x2b5fc9,WorksheetEditPermission as _0x5e4e77,getSheetCommandTarget as _0x1932cf}from'@univerjs/sheets';import{CollaborationEvent as _0x5089a1,RevertRevisionMutation as _0x305fa9,UniverCollaborationPlugin as _0x180f1c}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x1317a3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x464cfe,CollaborationController as _0x1e0d39,CollaborationStatus as _0x4aeda6,DataLoaderService as _0x5d6713,ILocalCacheService as _0x58623b}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x406ca6,HistoryModeStatus as _0x167a98,UniverEditHistoryViewerMobilePlugin as _0x1dd4cd,UniverEditHistoryViewerPlugin as _0x136f43}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x51215c,UniverLicensePlugin as _0x433b30}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x36d825}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xdcd56}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x2231ca}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x2b6158}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x58425d}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x1259f5}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x12fa8b}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x21e9e3}from'@univerjs/data-validation';import{MessageType as _0x4345b3}from'@univerjs/design';import{UniverDocsPlugin as _0x2ff728}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x160fb4}from'@univerjs/docs-ui';import{IImageIoService as _0x17417a,UniverDrawingPlugin as _0x2a38b3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xcaf6d6}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x416a48}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x1304a6}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x31aea4}from'@univerjs/network';import{IRemoteInstanceService as _0x1a1eb4,UniverRPCMainThreadPlugin as _0x268139}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x9547e1}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0xc5eb87}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x41761e}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x26aae3,UniverSheetsDataValidationUIPlugin as _0x4ba7dd}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x4aa64a}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x4dc158}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x2a46c0}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x9ba918}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x3996e3}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x590736}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xf16f54}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xd5ed6c}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x543260}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x5edda3}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x3fdb79,UniverSheetsUIPlugin as _0x2a275b,getCurrentRangeDisable$ as _0x40236d}from'@univerjs/sheets-ui';import{ComponentManager as _0x592985,IDialogService as _0x1c3bd2,IMenuManagerService as _0x5cc3ae,IMessageService as _0x2b6969,ISidebarService as _0x1e4f29,MenuItemType as _0x5def46,RibbonStartGroup as _0x51bab3,UniverMobileUIPlugin as _0x434778,UniverUIPlugin as _0x40a805,getMenuHiddenObservable as _0x403dda}from'@univerjs/ui';import{BehaviorSubject as _0x50afba,combineLatest as _0xa79016,takeUntil as _0xb434a3}from'rxjs';function _0x541a(){const _0x3d9110=['block','flat','100%','historyPanelHidden','univerContainerId','onSteady','getActiveSheet','getElementById','_collaborationController','UNIVER_UNKNOWN','univer.operation.exit-edit-history','object','symbol','_localeService','Exited','_handleRevertAcknowledgement','location','SYNCED','OTHERS','type','composePermission','width','close','getAllPlugins','_initListener','session','left','getUnhiddenWorksheets','some','getCollabEntity','registerPlugin','set','_localCacheService','onStarting','reload','_messageService','permissionId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromCollab','mergeMenu','unMountHistoryContent','setConfig','_initContainer','unsubscribe','_injector','closeAll','_componentManager','UNIVER_SHEET','subscribe','has','_dataLoaderService','_selectionProtectionRuleModel','revertRevision$','dataset','executeCommand','asObservable','event$','params','constructor','onCommandExecuted','style','_disposableCollection','eventID','exhaustSavingTask','data','historyUniver$','_menuManagerService','_permissionService','_revertErrorTimer','Entered','_updateSubUnitFromURLParams','editHistory.panel.revertFailed','historyListServerUrl','zIndex','clear','_themeService','_initUniver','_historyManagerService','height','get','historyAIassistantEnabled','top','length','mountHistoryContent','setLocale','711580ZelWzG','position','uComp','add','then','history-container','setDarkMode','_checkCanRevert','_historyUniver$','pluginName','_urlService','getUnitId','defineProperty','historyPanelComponentKey','8900811NRqokW','_setupSubUnitSync','_univerInstanceService','whenReady','version','HistoryIcon','invoke','default','absolute','_initPlugins','menu','_internalWebWorker','mutations','from','function','getSubunitRuleList','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','disposeUnit','setTheme','historyUniver','_dialogService','loadUnit','1847376elmpYh','string','subunit','univer-container','state$','univer-history-container-mobile','dispose','CHANGESET_ACK','getSheetBySheetId','Loading','1330620zxWUdO','getUnit','editHistory.info.initializing','0.20.1','getParam','edit-history-loader.config','getCurrentLocale','every','div','_sidebarService','toPrimitive','_config','map','dispose$','UNIVER_CONTAINER_ID','editHistory.panel.reverting','_configService','forEach','status$','status','show','appendChild','8uOgeFi','prototype','getConfig','next','editHistory.panel.listFetchError','getSheetId','_pluginMap','decorate','pipe','value','removeAll','createElement','7244272xfMcTo','workerURL','Error','getLocales','618478hlasNS','_init','none','_updateURLWithCurrentState','register','disposeWithMe','__getInjector','OPERATION','triggerLoadVersions','call','editHistory.panel.title','packageName','triggerCustomVersions','currentTheme$','BUTTON','display','127780drTPNZ','setParam','getSheets','_commandService','univer.operation.toggle-edit-history','8eWSUBQ','values'];_0x541a=function(){return _0x3d9110;};return _0x541a();}import{IURLService as _0x117d1f}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x1741d5}from'@univerjs/icons';import{UniverType as _0x1501c2}from'@univerjs/protocol';const L=_0x257921(0x202);Symbol(L);const R={};function z(_0x270b41){'@babel/helpers - typeof';const _0x15d2e7=_0x257921;return z=typeof Symbol==_0x15d2e7(0x1eb)&&typeof Symbol['iterator']=='symbol'?function(_0x1639f9){return typeof _0x1639f9;}:function(_0x25bea2){const _0x5ab393=_0x15d2e7;return _0x25bea2&&typeof Symbol==_0x5ab393(0x1eb)&&_0x25bea2[_0x5ab393(0x274)]===Symbol&&_0x25bea2!==Symbol[_0x5ab393(0x214)]?_0x5ab393(0x246):typeof _0x25bea2;},z(_0x270b41);}function ot(_0x2ab369,_0x3ae845){const _0x135dc6=_0x257921;if(z(_0x2ab369)!=_0x135dc6(0x245)||!_0x2ab369)return _0x2ab369;var _0x59b6d0=_0x2ab369[Symbol[_0x135dc6(0x207)]];if(_0x59b6d0!==void 0x0){var _0x3324df=_0x59b6d0[_0x135dc6(0x22c)](_0x2ab369,_0x3ae845||_0x135dc6(0x1e4));if(z(_0x3324df)!='object')return _0x3324df;throw TypeError(_0x135dc6(0x25f));}return(_0x3ae845===_0x135dc6(0x1f4)?String:Number)(_0x2ab369);}function st(_0x2be02b){const _0xc31033=_0x257921;var _0x15bdd0=ot(_0x2be02b,'string');return z(_0x15bdd0)==_0xc31033(0x246)?_0x15bdd0:_0x15bdd0+'';}function B(_0x280f97,_0x25de66,_0x4c7f85){const _0x197e31=_0x257921;return(_0x25de66=st(_0x25de66))in _0x280f97?Object[_0x197e31(0x29b)](_0x280f97,_0x25de66,{'value':_0x4c7f85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x280f97[_0x25de66]=_0x4c7f85,_0x280f97;}function V(_0xa85f2a,_0x13f6ea){return function(_0x2b9d33,_0xfaf740){_0x13f6ea(_0x2b9d33,_0xfaf740,_0xa85f2a);};}function H(_0x6712da,_0x33c122,_0x16c5e3,_0x198c53){const _0x49d654=_0x257921;var _0x1ec346=arguments['length'],_0x2d7021=_0x1ec346<0x3?_0x33c122:_0x198c53===null?_0x198c53=Object['getOwnPropertyDescriptor'](_0x33c122,_0x16c5e3):_0x198c53,_0x188c3d;if(typeof Reflect==_0x49d654(0x245)&&typeof Reflect[_0x49d654(0x21a)]=='function')_0x2d7021=Reflect[_0x49d654(0x21a)](_0x6712da,_0x33c122,_0x16c5e3,_0x198c53);else{for(var _0x365ac9=_0x6712da[_0x49d654(0x28c)]-0x1;_0x365ac9>=0x0;_0x365ac9--)(_0x188c3d=_0x6712da[_0x365ac9])&&(_0x2d7021=(_0x1ec346<0x3?_0x188c3d(_0x2d7021):_0x1ec346>0x3?_0x188c3d(_0x33c122,_0x16c5e3,_0x2d7021):_0x188c3d(_0x33c122,_0x16c5e3))||_0x2d7021);}return _0x1ec346>0x3&&_0x2d7021&&Object[_0x49d654(0x29b)](_0x33c122,_0x16c5e3,_0x2d7021),_0x2d7021;}const U='UNIVER_CONTAINER_ID',W='univer-history-container';let G=class extends _0x8532c1{constructor(_0x1ef0f1,_0x2e034e,_0x5baa9b,_0x21ad5b,_0x4aa1a4,_0x5c214e,_0x34f9a6,_0x4015b8,_0x3fc4e5,_0x59d3aa){const _0x2e03d9=_0x257921;super(),this[_0x2e03d9(0x247)]=_0x1ef0f1,this[_0x2e03d9(0x29f)]=_0x2e034e,this['_configService']=_0x5baa9b,this[_0x2e03d9(0x236)]=_0x21ad5b,this[_0x2e03d9(0x25d)]=_0x4aa1a4,this[_0x2e03d9(0x27d)]=_0x5c214e,this[_0x2e03d9(0x26d)]=_0x34f9a6,this[_0x2e03d9(0x1f1)]=_0x4015b8,this['_sidebarService']=_0x3fc4e5,this['_themeService']=_0x59d3aa,B(this,'_historyUniver$',new _0x50afba(null)),B(this,'historyUniver$',this[_0x2e03d9(0x297)][_0x2e03d9(0x271)]()),B(this,'_disposableCollection',new _0xc6dfe0()),B(this,_0x2e03d9(0x219),new Map()),B(this,_0x2e03d9(0x1e8),null),this[_0x2e03d9(0x224)]();}get[_0x257921(0x1f0)](){const _0x58ca17=_0x257921;return this['_historyUniver$'][_0x58ca17(0x21c)];}[_0x257921(0x224)](){const _0x1cab03=_0x257921;this[_0x1cab03(0x264)](),this[_0x1cab03(0x1e6)]();}[_0x257921(0x264)](){const _0x2b9cc9=_0x257921;var _0x42a44a;let _0x26eb80=(_0x42a44a=this[_0x2b9cc9(0x20d)][_0x2b9cc9(0x215)](_0x2b9cc9(0x20b)))==null?_0x2b9cc9(0x1f6):_0x42a44a,_0x934a78=document['getElementById'](_0x26eb80);if(!_0x934a78)return;let _0x134aaf=document['createElement'](_0x2b9cc9(0x205));_0x134aaf['id']=W,_0x134aaf[_0x2b9cc9(0x26f)][_0x2b9cc9(0x291)]=_0x2b9cc9(0x294),_0x134aaf[_0x2b9cc9(0x276)][_0x2b9cc9(0x290)]=_0x2b9cc9(0x1e5),_0x134aaf['style']['top']='0',_0x134aaf[_0x2b9cc9(0x276)][_0x2b9cc9(0x254)]='0',_0x134aaf['style'][_0x2b9cc9(0x24f)]=_0x2b9cc9(0x23c),_0x134aaf['style'][_0x2b9cc9(0x288)]=_0x2b9cc9(0x23c),_0x134aaf[_0x2b9cc9(0x276)]['zIndex']='49',_0x134aaf[_0x2b9cc9(0x276)]['display']='none',_0x934a78[_0x2b9cc9(0x212)](_0x134aaf);}[_0x257921(0x1e6)](){const _0x213589=_0x257921;[[_0x1304a6],[_0x40a805,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1c3bd2,null]]}],[_0x31aea4],[_0x2a38b3,{'override':[[_0x17417a,null]]}],[_0x2ff728,{'hasScroll':!0x1}],[_0x160fb4],[_0x543260],[_0x43ef5f,{'notExecuteFormula':!0x0}],[_0x2a275b],[_0x3996e3],[_0x590736],[_0x180f1c],[_0x2a46c0],[_0x9ba918],[_0x9547e1],[_0xc5eb87],[_0xf16f54],[_0xd5ed6c],[_0x21e9e3],[_0x41761e],[_0x4ba7dd],[_0x416a48,{'notExecuteFormula':!0x0}],[_0xcaf6d6],[_0x4aa64a],[_0x4dc158],[_0x1259f5],[_0x12fa8b],[_0x36d825],[_0xdcd56],[_0x2b6158],[_0x58425d],[_0x2231ca,{'notExecuteFormula':!0x0}],[_0x5edda3]][_0x213589(0x20e)](([_0x1e0eae,_0x3c4295])=>this[_0x213589(0x258)](_0x1e0eae,_0x3c4295));}[_0x257921(0x1f9)](){const _0x112d25=_0x257921;super[_0x112d25(0x1f9)](),this[_0x112d25(0x262)](),this[_0x112d25(0x219)][_0x112d25(0x284)]();}[_0x257921(0x258)](_0x2a7f48,_0x434f31,_0x310c2c){const _0x164a9a=_0x257921;if(this[_0x164a9a(0x219)][_0x164a9a(0x26b)](_0x2a7f48[_0x164a9a(0x298)])&&!_0x310c2c)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x2a7f48[_0x164a9a(0x298)]+'\x20has\x20been\x20registered.');this['_pluginMap']['set'](_0x2a7f48['pluginName'],[_0x2a7f48,_0x434f31]);}[_0x257921(0x251)](){const _0x524a3c=_0x257921;return Array[_0x524a3c(0x1ea)](this[_0x524a3c(0x219)]['values']());}[_0x257921(0x28d)](_0x77558c,_0x54dd99){const _0x543bfa=_0x257921;let _0x83a7d3=document[_0x543bfa(0x241)](W);_0x83a7d3&&(_0x83a7d3['style'][_0x543bfa(0x232)]=_0x543bfa(0x23a),this[_0x543bfa(0x286)](_0x77558c,W,_0x54dd99));}[_0x257921(0x262)](){const _0xcb7a9d=_0x257921;var _0x5f5a0c;this[_0xcb7a9d(0x277)][_0xcb7a9d(0x1f9)](),(_0x5f5a0c=this[_0xcb7a9d(0x1f0)])==null||_0x5f5a0c['dispose'](),this['_historyUniver$'][_0xcb7a9d(0x216)](null);let _0x280257=document[_0xcb7a9d(0x241)](W);_0x280257&&(_0x280257[_0xcb7a9d(0x276)][_0xcb7a9d(0x232)]=_0xcb7a9d(0x225),this[_0xcb7a9d(0x1e8)]&&(this['_internalWebWorker']['terminate'](),this[_0xcb7a9d(0x1e8)]=null));}['_initUniver'](_0x174c68,_0x126bd1,_0x190c66){const _0x441fe4=_0x257921;var _0x30eadf,_0xb639c2,_0xbbe029,_0x152b2a,_0xec1ecc;if(this[_0x441fe4(0x1f0)])return;let _0x27024a=new _0x481fbd({'locales':{[this[_0x441fe4(0x247)]['getCurrentLocale']()]:this[_0x441fe4(0x247)]['getLocales']()},'override':[[_0x53d29b,{'useClass':_0x1317a3}]]}),_0x3c8bd8=_0x27024a[_0x441fe4(0x229)]();this[_0x441fe4(0x228)](this[_0x441fe4(0x285)]['darkMode$']['subscribe'](_0x5ab8e8=>{const _0x37cea9=_0x441fe4;_0x3c8bd8[_0x37cea9(0x289)](_0x24cb5d)[_0x37cea9(0x295)](_0x5ab8e8);})),this[_0x441fe4(0x228)](this[_0x441fe4(0x285)][_0x441fe4(0x230)][_0x441fe4(0x26a)](_0x540c41=>{const _0x24655b=_0x441fe4;_0x3c8bd8[_0x24655b(0x289)](_0x24cb5d)[_0x24655b(0x1ef)](_0x540c41);})),_0x3c8bd8['get'](_0x316b33)[_0x441fe4(0x28e)](this[_0x441fe4(0x247)][_0x441fe4(0x203)]()),_0x3c8bd8[_0x441fe4(0x289)](_0x119b2)[_0x441fe4(0x263)](_0x464cfe,this[_0x441fe4(0x20d)]['getConfig'](_0x464cfe));let _0x34d012=this[_0x441fe4(0x20d)]['getConfig'](_0x51215c);_0x34d012&&_0x27024a['registerPlugin'](_0x433b30,{'license':_0x34d012['ls']});let _0x763b8=(_0x30eadf=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0x30eadf[_0x441fe4(0x220)],_0x56624d=!!_0x763b8;_0x56624d&&(this[_0x441fe4(0x1e8)]=_0x763b8 instanceof Worker?_0x763b8:null,_0x27024a['registerPlugin'](_0x268139,{'workerURL':_0x763b8})),this[_0x441fe4(0x219)][_0x441fe4(0x20e)](([_0x31bc84,_0x52f94f])=>{const _0x7ea64a=_0x441fe4;_0x27024a[_0x7ea64a(0x258)](_0x31bc84,_0x52f94f);}),_0x27024a[_0x441fe4(0x258)](_0x136f43,{'historyListServerUrl':(_0xb639c2=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0xb639c2[_0x441fe4(0x282)],'historyPanelComponentKey':(_0xbbe029=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0xbbe029[_0x441fe4(0x29c)],'historyPanelHidden':(_0x152b2a=this[_0x441fe4(0x20d)]['getConfig'](_0x441fe4(0x202)))==null?void 0x0:_0x152b2a[_0x441fe4(0x23d)],'historyAIassistantEnabled':(_0xec1ecc=this[_0x441fe4(0x20d)][_0x441fe4(0x215)]('edit-history-loader.config'))==null?void 0x0:_0xec1ecc[_0x441fe4(0x28a)]}),_0x3c8bd8[_0x441fe4(0x2a3)](_0x2776ed=>{this['_initListener'](_0x2776ed,_0x174c68);}),this[_0x441fe4(0x297)][_0x441fe4(0x216)](_0x27024a);let _0x279f67=_0x3c8bd8[_0x441fe4(0x289)](_0x406ca6),_0x574c26=this[_0x441fe4(0x296)](_0x174c68),_0x4b317c=()=>{const _0x552c0b=_0x441fe4;_0x190c66?_0x279f67[_0x552c0b(0x22f)](_0x174c68,_0x126bd1,_0x574c26,_0x190c66):_0x279f67[_0x552c0b(0x22b)](_0x174c68,_0x126bd1,_0x574c26);};if(this[_0x441fe4(0x25d)]['show']({'content':this[_0x441fe4(0x247)]['t'](_0x441fe4(0x1ff)),'type':_0x4345b3['Loading']}),_0x56624d)try{_0x3c8bd8[_0x441fe4(0x289)](_0x1a1eb4)[_0x441fe4(0x2a0)]()[_0x441fe4(0x293)](()=>{_0x4b317c();});}catch{_0x4b317c();}else _0x4b317c();}['_initListener'](_0x5177f5,_0x3327c5){const _0x226203=_0x257921;let _0x6b7ec2=_0x5177f5[_0x226203(0x289)](_0x406ca6);this[_0x226203(0x277)][_0x226203(0x292)](_0x6b7ec2[_0x226203(0x20f)][_0x226203(0x26a)](_0x921626=>{const _0x3b0790=_0x226203;switch(_0x921626){case _0x167a98[_0x3b0790(0x27f)]:this[_0x3b0790(0x1f1)]['closeAll'](),this[_0x3b0790(0x206)][_0x3b0790(0x250)]();break;case _0x167a98[_0x3b0790(0x248)]:this['_commandService'][_0x3b0790(0x270)](q['id']),this['unMountHistoryContent']();break;case _0x167a98[_0x3b0790(0x221)]:this[_0x3b0790(0x262)](),this['_messageService'][_0x3b0790(0x211)]({'content':this['_localeService']['t'](_0x3b0790(0x217)),'type':_0x4345b3[_0x3b0790(0x221)],'duration':0xbb8});break;default:break;}})),this[_0x226203(0x277)][_0x226203(0x292)](_0x6b7ec2[_0x226203(0x26e)]['subscribe'](async _0x38240b=>{_0x38240b&&this['_commandService']['executeCommand'](_0x305fa9['id'],{'unitId':_0x3327c5,'revision':_0x38240b});}));}[_0x257921(0x296)](_0x5ec881){const _0x50b3f8=_0x257921;let _0x230e31=this[_0x50b3f8(0x29f)][_0x50b3f8(0x1fe)](_0x5ec881)[_0x50b3f8(0x235)]()['map'](_0xbbd350=>_0xbbd350[_0x50b3f8(0x218)]()),_0x5a1066=new _0x4417ae(_0x5ec881)['id'],_0x10c7d8=_0x230e31[_0x50b3f8(0x209)](_0x59ec80=>new _0x5e4e77(_0x5ec881,_0x59ec80)['id']),_0x462488=_0x230e31['map'](_0x351cbb=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x5ec881,_0x351cbb)[_0x50b3f8(0x209)](_0xaaff16=>new _0x540a05(_0x5ec881,_0x351cbb,_0xaaff16[_0x50b3f8(0x25e)])['id']))[_0x50b3f8(0x23b)](),_0x119c30=new _0x4b7b3a(_0x5ec881)['id'];return this['_permissionService']['composePermission']([_0x5a1066,..._0x10c7d8,..._0x462488,_0x119c30])[_0x50b3f8(0x204)](_0x591cd8=>!!_0x591cd8[_0x50b3f8(0x21c)]);}};G=H([V(0x0,_0x3d4214(_0x316b33)),V(0x1,_0x430938),V(0x2,_0x119b2),V(0x3,_0x3b2fe9),V(0x4,_0x2b6969),V(0x5,_0x1c5768),V(0x6,_0x3d4214(_0x333165)),V(0x7,_0x3d4214(_0x1c3bd2)),V(0x8,_0x3d4214(_0x1e4f29)),V(0x9,_0x3d4214(_0x24cb5d))],G);const K={'id':_0x257921(0x237),'type':_0x487ef2['OPERATION'],'handler':_0x5d407c=>{const _0x29aaab=_0x257921;let _0x3d7d8b=_0x5d407c['get'](G),{unitId:_0x5e9add}=_0x1932cf(_0x5d407c[_0x29aaab(0x289)](_0x430938))||{};return _0x5e9add?(_0x3d7d8b[_0x29aaab(0x28d)](_0x5e9add),!0x0):!0x1;}},q={'id':_0x257921(0x244),'type':_0x487ef2[_0x257921(0x22a)],'handler':()=>!0x0};var ct='@univerjs-pro/edit-history-loader',lt=_0x257921(0x200);function ut(_0x3be0a3){const _0x3ac66e=_0x257921;return{'id':K['id'],'type':_0x5def46[_0x3ac66e(0x231)],'icon':'HistoryIcon','tooltip':_0x3ac66e(0x22d),'hidden$':_0x403dda(_0x3be0a3,_0x7184d6[_0x3ac66e(0x269)]),'disabled$':_0x40236d(_0x3be0a3,{'workbookTypes':[_0x2b5fc9],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x51bab3[_0x257921(0x24c)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x3c2c30{constructor(_0x2202f8,_0x259120,_0x3c1839,_0x5ba99d,_0xb432f1,_0x3db589,_0x287978,_0x55bf28,_0x170934,_0x568ee5,_0xea7df4){const _0x3ef6ad=_0x257921;super(),this[_0x3ef6ad(0x236)]=_0x2202f8,this['_menuManagerService']=_0x259120,this[_0x3ef6ad(0x268)]=_0x3c1839,this[_0x3ef6ad(0x287)]=_0x5ba99d,this['_localeService']=_0xb432f1,this['_messageService']=_0x3db589,this[_0x3ef6ad(0x242)]=_0x287978,this[_0x3ef6ad(0x25a)]=_0x55bf28,this[_0x3ef6ad(0x26c)]=_0x170934,this[_0x3ef6ad(0x29f)]=_0x568ee5,this[_0x3ef6ad(0x299)]=_0xea7df4,B(this,_0x3ef6ad(0x27e),null),this['_init']();}[_0x257921(0x224)](){const _0x4dd03d=_0x257921;[K,q]['forEach'](_0x3bc8ff=>this[_0x4dd03d(0x228)](_0x1ecd9a(this[_0x4dd03d(0x236)]['registerCommand'](_0x3bc8ff)))),this['disposeWithMe'](this[_0x4dd03d(0x268)][_0x4dd03d(0x227)](_0x4dd03d(0x2a2),_0x1741d5)),this['_menuManagerService']['mergeMenu'](dt),this[_0x4dd03d(0x228)](this[_0x4dd03d(0x236)]['onCommandExecuted'](async(_0x12c784,_0x3046af)=>{const _0x1d1f72=_0x4dd03d;if(_0x12c784['id']===_0x305fa9['id']){let {unitId:_0x75fe9d}=_0x12c784[_0x1d1f72(0x273)];this[_0x1d1f72(0x25d)][_0x1d1f72(0x211)]({'content':this[_0x1d1f72(0x247)]['t'](_0x1d1f72(0x20c)),'type':_0x4345b3['Loading'],'duration':0x1388});let _0x17004d=this[_0x1d1f72(0x242)]['getCollabEntity'](_0x75fe9d);_0x3046af!=null&&_0x3046af[_0x1d1f72(0x260)]?this[_0x1d1f72(0x249)](_0x17004d,async()=>(setTimeout(()=>window[_0x1d1f72(0x24a)][_0x1d1f72(0x25c)]()),!0x0),!0x0):this[_0x1d1f72(0x249)](_0x17004d,async()=>{const _0x414900=_0x1d1f72;let _0x1d008a=this[_0x414900(0x29f)]['getCurrentUnitOfType'](_0x1501c2['UNIVER_SHEET']),_0x542c6f=_0x1d008a==null?void 0x0:_0x1d008a['getActiveSheet']();if(!_0x542c6f)return!0x1;this[_0x414900(0x29f)][_0x414900(0x1ee)](_0x75fe9d);let _0x47b8fd=await this[_0x414900(0x26c)]['loadUnit'](_0x75fe9d,_0x1501c2[_0x414900(0x269)]);return _0x47b8fd&&_0x47b8fd instanceof _0x26a77f?(await this[_0x414900(0x29e)](_0x47b8fd,_0x542c6f[_0x414900(0x218)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x39e9a6,_0x3017b9,_0x1fae22=!0x1){const _0x434530=_0x257921;let _0x319705=_0xa79016([_0x39e9a6[_0x434530(0x253)][_0x434530(0x272)],_0x39e9a6[_0x434530(0x1f7)]])[_0x434530(0x26a)](async([_0xa262be,_0xcb2de3])=>{const _0x3340bd=_0x434530;if(_0xa262be['eventID']===_0x5089a1[_0x3340bd(0x1fa)]&&(_0xcb2de3==null?void 0x0:_0xcb2de3[_0x3340bd(0x210)])===_0x4aeda6[_0x3340bd(0x24b)]&&_0xa262be[_0x3340bd(0x27a)][_0x3340bd(0x1e9)][_0x3340bd(0x256)](_0x1a3dfb=>_0x1a3dfb['id']===_0x305fa9['id'])&&await _0x3017b9()){var _0x2430d9;this['_historyManagerService'][_0x3340bd(0x262)](),_0x319705[_0x3340bd(0x265)](),this[_0x3340bd(0x27e)]&&clearTimeout(this[_0x3340bd(0x27e)]),await((_0x2430d9=this['_localCacheService'])==null?void 0x0:_0x2430d9[_0x3340bd(0x279)]()),this['_messageService'][_0x3340bd(0x21d)]();}});_0x1fae22&&(this[_0x434530(0x27e)]=setTimeout(()=>{const _0x550f5d=_0x434530;_0x319705[_0x550f5d(0x265)](),this['_messageService'][_0x550f5d(0x211)]({'content':this[_0x550f5d(0x247)]['t'](_0x550f5d(0x281)),'type':_0x4345b3['Error'],'duration':0xbb8});},0x1388));}async[_0x257921(0x29e)](_0x38eefd,_0x495672){const _0x3d0d48=_0x257921;await this[_0x3d0d48(0x280)](_0x38eefd,_0x495672),_0x38eefd['activeSheet$'][_0x3d0d48(0x21b)](_0xb434a3(this[_0x3d0d48(0x20a)]))[_0x3d0d48(0x26a)](_0x4400d6=>{_0x4400d6&&this['_updateURLWithCurrentState'](_0x4400d6);}),this[_0x3d0d48(0x299)]['urlChange$']['pipe'](_0xb434a3(this[_0x3d0d48(0x20a)]))[_0x3d0d48(0x26a)](()=>this['_updateSubUnitFromURLParams'](_0x38eefd,_0x495672));}[_0x257921(0x226)](_0x3118f4,_0x3bc474=!0x1){const _0x12875f=_0x257921;let _0x30810f=this[_0x12875f(0x299)]['getParam'](_0x12875f(0x1f5));_0x3118f4[_0x12875f(0x218)]()!==_0x30810f&&this[_0x12875f(0x299)][_0x12875f(0x234)](_0x12875f(0x1f5),_0x3118f4[_0x12875f(0x218)](),_0x3bc474);}async[_0x257921(0x280)](_0x1156f6,_0x26f800){const _0x266ee0=_0x257921;var _0x4883af;if(!_0x26f800||!_0x1156f6[_0x266ee0(0x1fb)](_0x26f800)){let _0x34c010=_0x1156f6[_0x266ee0(0x255)]()[0x0],_0x33a3f9=_0x1156f6[_0x266ee0(0x1fb)](_0x34c010);if(!_0x33a3f9)return;this[_0x266ee0(0x226)](_0x33a3f9,!0x0),await this[_0x266ee0(0x236)][_0x266ee0(0x270)](_0x4bdacf['id'],{'unitId':_0x1156f6[_0x266ee0(0x29a)](),'subUnitId':_0x34c010});return;}((_0x4883af=_0x1156f6[_0x266ee0(0x240)]())==null?void 0x0:_0x4883af[_0x266ee0(0x218)]())!==_0x26f800&&await this['_commandService'][_0x266ee0(0x270)](_0x4bdacf['id'],{'unitId':_0x1156f6['getUnitId'](),'subUnitId':_0x26f800});}};function _0x19ba(_0x56af7c,_0x4ec7b0){_0x56af7c=_0x56af7c-0x1e4;const _0x541af4=_0x541a();let _0x19bad5=_0x541af4[_0x56af7c];return _0x19bad5;}J=H([V(0x0,_0x3b2fe9),V(0x1,_0x5cc3ae),V(0x2,_0x3d4214(_0x592985)),V(0x3,_0x3d4214(G)),V(0x4,_0x3d4214(_0x316b33)),V(0x5,_0x2b6969),V(0x6,_0x3d4214(_0x1e0d39)),V(0x7,_0x58623b),V(0x8,_0x3d4214(_0x5d6713)),V(0x9,_0x430938),V(0xa,_0x117d1f)],J);const Y=_0x257921(0x1f8);let X=class extends _0x8532c1{constructor(_0x516682,_0x4a771b,_0xd9dfd8,_0x5dac85,_0x13a0ad,_0x16557e,_0x181958,_0x468850,_0x5b4c58,_0x25336f){const _0x221515=_0x257921;super(),this[_0x221515(0x247)]=_0x516682,this['_univerInstanceService']=_0x4a771b,this[_0x221515(0x20d)]=_0xd9dfd8,this[_0x221515(0x236)]=_0x5dac85,this['_messageService']=_0x13a0ad,this[_0x221515(0x27d)]=_0x16557e,this['_selectionProtectionRuleModel']=_0x181958,this['_dialogService']=_0x468850,this[_0x221515(0x206)]=_0x5b4c58,this[_0x221515(0x285)]=_0x25336f,B(this,_0x221515(0x297),new _0x50afba(null)),B(this,_0x221515(0x27b),this['_historyUniver$'][_0x221515(0x271)]()),B(this,_0x221515(0x277),new _0xc6dfe0()),B(this,'_pluginMap',new Map()),B(this,_0x221515(0x1e8),null),this[_0x221515(0x224)]();}get['historyUniver'](){const _0x3947d5=_0x257921;return this['_historyUniver$'][_0x3947d5(0x21c)];}[_0x257921(0x224)](){const _0xbaa330=_0x257921;this[_0xbaa330(0x264)](),this['_initPlugins']();}['_initContainer'](){const _0x5c14ae=_0x257921;var _0x1b10fc;let _0x1d3afa=(_0x1b10fc=this['_configService'][_0x5c14ae(0x215)](_0x5c14ae(0x20b)))==null?_0x5c14ae(0x1f6):_0x1b10fc,_0x3d84e8=document['getElementById'](_0x1d3afa);if(!_0x3d84e8)return;let _0x1014fb=document[_0x5c14ae(0x21e)](_0x5c14ae(0x205));_0x1014fb['id']=Y,_0x1014fb[_0x5c14ae(0x26f)][_0x5c14ae(0x291)]=_0x5c14ae(0x294),_0x1014fb[_0x5c14ae(0x276)][_0x5c14ae(0x290)]='absolute',_0x1014fb['style'][_0x5c14ae(0x28b)]='0',_0x1014fb['style'][_0x5c14ae(0x254)]='0',_0x1014fb['style'][_0x5c14ae(0x24f)]='100%',_0x1014fb[_0x5c14ae(0x276)]['height']='100%',_0x1014fb[_0x5c14ae(0x276)][_0x5c14ae(0x283)]='49',_0x1014fb['style'][_0x5c14ae(0x232)]=_0x5c14ae(0x225),_0x3d84e8[_0x5c14ae(0x212)](_0x1014fb);}['_initPlugins'](){const _0x3d0713=_0x257921;[[_0x1304a6],[_0x434778,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1c3bd2,null]]}],[_0x31aea4],[_0x2a38b3,{'override':[[_0x17417a,null]]}],[_0x2ff728,{'hasScroll':!0x1}],[_0x160fb4],[_0x543260],[_0x43ef5f,{'notExecuteFormula':!0x0}],[_0x3fdb79],[_0x3996e3],[_0x590736],[_0x180f1c],[_0x2a46c0],[_0x9547e1],[_0xf16f54],[_0xd5ed6c],[_0x21e9e3],[_0x41761e],[_0x26aae3],[_0x416a48,{'notExecuteFormula':!0x0}],[_0xcaf6d6],[_0x4aa64a],[_0x4dc158],[_0x1259f5],[_0x12fa8b],[_0x36d825],[_0xdcd56],[_0x2b6158],[_0x58425d],[_0x2231ca,{'notExecuteFormula':!0x0}],[_0x5edda3]][_0x3d0713(0x20e)](([_0x2e5ba5,_0x195721])=>this[_0x3d0713(0x258)](_0x2e5ba5,_0x195721));}[_0x257921(0x1f9)](){const _0xab3aa4=_0x257921;super[_0xab3aa4(0x1f9)](),this[_0xab3aa4(0x262)](),this[_0xab3aa4(0x219)]['clear']();}['registerPlugin'](_0x5f4aff,_0x12444b,_0x36b88a){const _0x15c40a=_0x257921;if(this[_0x15c40a(0x219)][_0x15c40a(0x26b)](_0x5f4aff[_0x15c40a(0x298)])&&!_0x36b88a)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x5f4aff['pluginName']+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x15c40a(0x259)](_0x5f4aff['pluginName'],[_0x5f4aff,_0x12444b]);}[_0x257921(0x251)](){const _0x2eeb89=_0x257921;return Array['from'](this[_0x2eeb89(0x219)][_0x2eeb89(0x239)]());}[_0x257921(0x28d)](_0x3f0402,_0x3003cc){const _0x11b898=_0x257921;let _0x54bd62=document['getElementById'](Y);_0x54bd62&&(_0x54bd62['style'][_0x11b898(0x232)]=_0x11b898(0x23a),this[_0x11b898(0x286)](_0x3f0402,Y,_0x3003cc));}['unMountHistoryContent'](){const _0xd74946=_0x257921;var _0x46e21a;this[_0xd74946(0x277)][_0xd74946(0x1f9)](),(_0x46e21a=this[_0xd74946(0x1f0)])==null||_0x46e21a['dispose'](),this[_0xd74946(0x297)][_0xd74946(0x216)](null);let _0x4caf6f=document[_0xd74946(0x241)](Y);_0x4caf6f&&(_0x4caf6f[_0xd74946(0x276)][_0xd74946(0x232)]=_0xd74946(0x225),this[_0xd74946(0x1e8)]&&(this[_0xd74946(0x1e8)]['terminate'](),this[_0xd74946(0x1e8)]=null));}[_0x257921(0x286)](_0x47fd9c,_0x14073a,_0x169589){const _0x31ac51=_0x257921;var _0x4b2f9a,_0x18765e,_0xe1f04d,_0x437cce;if(this[_0x31ac51(0x1f0)])return;let _0x1855f9=new _0x481fbd({'locales':{[this['_localeService'][_0x31ac51(0x203)]()]:this['_localeService'][_0x31ac51(0x222)]()},'override':[[_0x53d29b,{'useClass':_0x1317a3}]]}),_0x316dfb=_0x1855f9[_0x31ac51(0x229)]();this[_0x31ac51(0x228)](this['_themeService']['darkMode$'][_0x31ac51(0x26a)](_0x160ab1=>{const _0x3c9b04=_0x31ac51;_0x316dfb[_0x3c9b04(0x289)](_0x24cb5d)['setDarkMode'](_0x160ab1);})),this[_0x31ac51(0x228)](this[_0x31ac51(0x285)][_0x31ac51(0x230)][_0x31ac51(0x26a)](_0x3200b8=>{const _0x5bed5a=_0x31ac51;_0x316dfb[_0x5bed5a(0x289)](_0x24cb5d)[_0x5bed5a(0x1ef)](_0x3200b8);})),_0x316dfb[_0x31ac51(0x289)](_0x316b33)[_0x31ac51(0x28e)](this[_0x31ac51(0x247)][_0x31ac51(0x203)]()),_0x316dfb[_0x31ac51(0x289)](_0x119b2)[_0x31ac51(0x263)](_0x464cfe,this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x464cfe));let _0x1d1ef2=this['_configService'][_0x31ac51(0x215)](_0x51215c);_0x1d1ef2&&_0x1855f9['registerPlugin'](_0x433b30,{'license':_0x1d1ef2['ls']});let _0x17daeb=(_0x4b2f9a=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x4b2f9a[_0x31ac51(0x220)],_0x584176=!!_0x17daeb;_0x584176&&(this[_0x31ac51(0x1e8)]=_0x17daeb instanceof Worker?_0x17daeb:null,_0x1855f9[_0x31ac51(0x258)](_0x268139,{'workerURL':_0x17daeb})),this[_0x31ac51(0x219)][_0x31ac51(0x20e)](([_0x4eee14,_0x1ee228])=>{const _0x234a02=_0x31ac51;_0x1855f9[_0x234a02(0x258)](_0x4eee14,_0x1ee228);}),_0x1855f9['registerPlugin'](_0x1dd4cd,{'historyListServerUrl':(_0x18765e=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x18765e['historyListServerUrl'],'historyPanelComponentKey':(_0xe1f04d=this[_0x31ac51(0x20d)]['getConfig'](_0x31ac51(0x202)))==null?void 0x0:_0xe1f04d[_0x31ac51(0x29c)],'historyPanelHidden':(_0x437cce=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x437cce[_0x31ac51(0x23d)]}),_0x316dfb[_0x31ac51(0x2a3)](_0x268344=>{const _0x5055d5=_0x31ac51;this[_0x5055d5(0x252)](_0x268344,_0x47fd9c);}),this[_0x31ac51(0x297)][_0x31ac51(0x216)](_0x1855f9);let _0x4752a1=_0x316dfb[_0x31ac51(0x289)](_0x406ca6),_0x55a4f5=this[_0x31ac51(0x296)](_0x47fd9c),_0x2b75d9=()=>{const _0x2b1a61=_0x31ac51;_0x169589?_0x4752a1[_0x2b1a61(0x22f)](_0x47fd9c,_0x14073a,_0x55a4f5,_0x169589):_0x4752a1[_0x2b1a61(0x22b)](_0x47fd9c,_0x14073a,_0x55a4f5);};if(this[_0x31ac51(0x25d)][_0x31ac51(0x211)]({'content':this[_0x31ac51(0x247)]['t'](_0x31ac51(0x1ff)),'type':_0x4345b3[_0x31ac51(0x1fc)]}),_0x584176)try{_0x316dfb['get'](_0x1a1eb4)[_0x31ac51(0x2a0)]()[_0x31ac51(0x293)](()=>{_0x2b75d9();});}catch{_0x2b75d9();}else _0x2b75d9();}['_initListener'](_0x5609a0,_0x322a62){const _0x3adfb5=_0x257921;let _0x13bd4a=_0x5609a0[_0x3adfb5(0x289)](_0x406ca6);this[_0x3adfb5(0x277)]['add'](_0x13bd4a['status$'][_0x3adfb5(0x26a)](_0x4de4a6=>{const _0x2593c4=_0x3adfb5;switch(_0x4de4a6){case _0x167a98[_0x2593c4(0x27f)]:this[_0x2593c4(0x1f1)][_0x2593c4(0x267)](),this[_0x2593c4(0x206)]['close']();break;case _0x167a98['Exited']:this[_0x2593c4(0x236)][_0x2593c4(0x270)](q['id']),this[_0x2593c4(0x262)]();break;case _0x167a98['Error']:this[_0x2593c4(0x262)](),this[_0x2593c4(0x25d)][_0x2593c4(0x211)]({'content':this[_0x2593c4(0x247)]['t'](_0x2593c4(0x217)),'type':_0x4345b3[_0x2593c4(0x221)],'duration':0xbb8});break;default:break;}})),this[_0x3adfb5(0x277)][_0x3adfb5(0x292)](_0x13bd4a[_0x3adfb5(0x26e)][_0x3adfb5(0x26a)](async _0x2f8f1f=>{const _0x46e862=_0x3adfb5;_0x2f8f1f&&this[_0x46e862(0x236)][_0x46e862(0x270)](_0x305fa9['id'],{'unitId':_0x322a62,'revision':_0x2f8f1f});}));}[_0x257921(0x296)](_0x54d9fd){const _0x478992=_0x257921;let _0x58db9f=this[_0x478992(0x29f)][_0x478992(0x1fe)](_0x54d9fd)[_0x478992(0x235)]()[_0x478992(0x209)](_0x34f9c8=>_0x34f9c8[_0x478992(0x218)]()),_0x3c7ebe=new _0x4417ae(_0x54d9fd)['id'],_0x291b85=_0x58db9f[_0x478992(0x209)](_0x35787f=>new _0x5e4e77(_0x54d9fd,_0x35787f)['id']),_0x164f72=_0x58db9f[_0x478992(0x209)](_0x769727=>this[_0x478992(0x26d)][_0x478992(0x1ec)](_0x54d9fd,_0x769727)[_0x478992(0x209)](_0x5ba00f=>new _0x540a05(_0x54d9fd,_0x769727,_0x5ba00f['permissionId'])['id']))[_0x478992(0x23b)](),_0x17d9f0=new _0x4b7b3a(_0x54d9fd)['id'];return this['_permissionService'][_0x478992(0x24e)]([_0x3c7ebe,..._0x291b85,..._0x164f72,_0x17d9f0])[_0x478992(0x204)](_0x3e9aad=>!!_0x3e9aad[_0x478992(0x21c)]);}};X=H([V(0x0,_0x3d4214(_0x316b33)),V(0x1,_0x430938),V(0x2,_0x119b2),V(0x3,_0x3b2fe9),V(0x4,_0x2b6969),V(0x5,_0x1c5768),V(0x6,_0x3d4214(_0x333165)),V(0x7,_0x3d4214(_0x1c3bd2)),V(0x8,_0x3d4214(_0x1e4f29)),V(0x9,_0x3d4214(_0x24cb5d))],X);let Z=class extends _0x30cf8f{constructor(_0x179fec=R,_0x2c7635,_0x40854b){const _0x48832d=_0x257921;super(),this[_0x48832d(0x208)]=_0x179fec,this[_0x48832d(0x266)]=_0x2c7635,this[_0x48832d(0x20d)]=_0x40854b;let {menu:_0x36f484,..._0x24caba}=_0x3bca78({},R,this[_0x48832d(0x208)]);_0x36f484&&this[_0x48832d(0x20d)][_0x48832d(0x263)]('menu',_0x36f484,{'merge':!0x0}),this[_0x48832d(0x20d)]['setConfig'](L,_0x24caba),this[_0x48832d(0x208)][_0x48832d(0x23e)]&&this[_0x48832d(0x20d)]['setConfig'](_0x48832d(0x20b),this[_0x48832d(0x208)]['univerContainerId']);}['onStarting'](){const _0x43ba7e=_0x257921;[[G,{'useClass':X}],[J]][_0x43ba7e(0x20e)](_0x555cf0=>this[_0x43ba7e(0x266)][_0x43ba7e(0x292)](_0x555cf0));}['onSteady'](){const _0x3f521e=_0x257921;this['_injector'][_0x3f521e(0x289)](J);}};B(Z,_0x257921(0x24d),_0x7184d6['UNIVER_UNKNOWN']),B(Z,'pluginName','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x257921(0x22e),ct),B(Z,_0x257921(0x2a1),lt),Z=H([_0x219475(_0x433b30),V(0x1,_0x3d4214(_0x4f86b8)),V(0x2,_0x119b2)],Z);let Q=class extends _0x3c2c30{constructor(_0x4a9843,_0x1be514,_0x24d815,_0x4af8bd,_0x233b23,_0xe3371,_0x3de048,_0x2c4a41,_0x26e7cb,_0x236092,_0x7753b9){const _0x184416=_0x257921;super(),this[_0x184416(0x236)]=_0x4a9843,this[_0x184416(0x27c)]=_0x1be514,this[_0x184416(0x268)]=_0x24d815,this['_historyManagerService']=_0x4af8bd,this['_localeService']=_0x233b23,this[_0x184416(0x25d)]=_0xe3371,this[_0x184416(0x242)]=_0x3de048,this[_0x184416(0x25a)]=_0x2c4a41,this[_0x184416(0x26c)]=_0x26e7cb,this['_univerInstanceService']=_0x236092,this['_urlService']=_0x7753b9,B(this,'_revertErrorTimer',null),this[_0x184416(0x224)]();}[_0x257921(0x224)](){const _0x33ebfb=_0x257921;[K,q]['forEach'](_0x3cfa49=>this[_0x33ebfb(0x228)](_0x1ecd9a(this['_commandService']['registerCommand'](_0x3cfa49)))),this[_0x33ebfb(0x228)](this[_0x33ebfb(0x268)][_0x33ebfb(0x227)](_0x33ebfb(0x2a2),_0x1741d5)),this['_menuManagerService'][_0x33ebfb(0x261)](dt),this[_0x33ebfb(0x228)](this[_0x33ebfb(0x236)][_0x33ebfb(0x275)](async(_0x272866,_0x1fe3ac)=>{const _0x2ca786=_0x33ebfb;if(_0x272866['id']===_0x305fa9['id']){let {unitId:_0x85b934}=_0x272866[_0x2ca786(0x273)];this[_0x2ca786(0x25d)][_0x2ca786(0x211)]({'content':this[_0x2ca786(0x247)]['t'](_0x2ca786(0x20c)),'type':_0x4345b3['Loading'],'duration':0x1388});let _0x1e6f0c=this[_0x2ca786(0x242)][_0x2ca786(0x257)](_0x85b934);_0x1fe3ac!=null&&_0x1fe3ac[_0x2ca786(0x260)]?this[_0x2ca786(0x249)](_0x1e6f0c,async()=>(setTimeout(()=>window['location'][_0x2ca786(0x25c)]()),!0x0),!0x0):this[_0x2ca786(0x249)](_0x1e6f0c,async()=>{const _0x3d29a3=_0x2ca786;let _0x604c71=this[_0x3d29a3(0x29f)]['getCurrentUnitOfType'](_0x1501c2[_0x3d29a3(0x269)]),_0x5eafe8=_0x604c71==null?void 0x0:_0x604c71[_0x3d29a3(0x240)]();if(!_0x5eafe8)return!0x1;this[_0x3d29a3(0x29f)]['disposeUnit'](_0x85b934);let _0x660f46=await this[_0x3d29a3(0x26c)][_0x3d29a3(0x1f2)](_0x85b934,_0x1501c2['UNIVER_SHEET']);return _0x660f46&&_0x660f46 instanceof _0x26a77f?(await this[_0x3d29a3(0x29e)](_0x660f46,_0x5eafe8[_0x3d29a3(0x218)]()),!0x0):!0x1;});}}));}[_0x257921(0x249)](_0x50a68b,_0x6bb3bd,_0x4ef1ec=!0x1){const _0x8936a9=_0x257921;let _0x454e14=_0xa79016([_0x50a68b['session'][_0x8936a9(0x272)],_0x50a68b[_0x8936a9(0x1f7)]])[_0x8936a9(0x26a)](async([_0x4ea9c7,_0x110b38])=>{const _0x2b12de=_0x8936a9;if(_0x4ea9c7[_0x2b12de(0x278)]===_0x5089a1[_0x2b12de(0x1fa)]&&(_0x110b38==null?void 0x0:_0x110b38[_0x2b12de(0x210)])===_0x4aeda6[_0x2b12de(0x24b)]&&_0x4ea9c7[_0x2b12de(0x27a)][_0x2b12de(0x1e9)]['some'](_0x29bc10=>_0x29bc10['id']===_0x305fa9['id'])&&await _0x6bb3bd()){var _0x3f2d4e;this[_0x2b12de(0x287)][_0x2b12de(0x262)](),_0x454e14[_0x2b12de(0x265)](),this[_0x2b12de(0x27e)]&&clearTimeout(this[_0x2b12de(0x27e)]),await((_0x3f2d4e=this[_0x2b12de(0x25a)])==null?void 0x0:_0x3f2d4e[_0x2b12de(0x279)]());}});_0x4ef1ec&&(this[_0x8936a9(0x27e)]=setTimeout(()=>{const _0x53eba0=_0x8936a9;_0x454e14['unsubscribe'](),this[_0x53eba0(0x25d)]['show']({'content':this[_0x53eba0(0x247)]['t'](_0x53eba0(0x281)),'type':_0x4345b3[_0x53eba0(0x221)],'duration':0xbb8});},0x1388));}async[_0x257921(0x29e)](_0x394df0,_0x47e2d3){const _0x5eec8b=_0x257921;await this[_0x5eec8b(0x280)](_0x394df0,_0x47e2d3),_0x394df0['activeSheet$'][_0x5eec8b(0x21b)](_0xb434a3(this[_0x5eec8b(0x20a)]))['subscribe'](_0x44a1ef=>{const _0x557994=_0x5eec8b;_0x44a1ef&&this[_0x557994(0x226)](_0x44a1ef);}),this[_0x5eec8b(0x299)]['urlChange$'][_0x5eec8b(0x21b)](_0xb434a3(this['dispose$']))[_0x5eec8b(0x26a)](()=>this[_0x5eec8b(0x280)](_0x394df0,_0x47e2d3));}[_0x257921(0x226)](_0x159e12,_0x86f702=!0x1){const _0x32970e=_0x257921;let _0x526db3=this[_0x32970e(0x299)][_0x32970e(0x201)]('subunit');_0x159e12[_0x32970e(0x218)]()!==_0x526db3&&this['_urlService'][_0x32970e(0x234)](_0x32970e(0x1f5),_0x159e12[_0x32970e(0x218)](),_0x86f702);}async[_0x257921(0x280)](_0x2901c9,_0x28260f){const _0x148df0=_0x257921;var _0x1ff694;if(!_0x28260f||!_0x2901c9[_0x148df0(0x1fb)](_0x28260f)){let _0x4643bf=_0x2901c9[_0x148df0(0x255)]()[0x0],_0x2de704=_0x2901c9[_0x148df0(0x1fb)](_0x4643bf);if(!_0x2de704)return;this[_0x148df0(0x226)](_0x2de704,!0x0),await this['_commandService'][_0x148df0(0x270)](_0x4bdacf['id'],{'unitId':_0x2901c9[_0x148df0(0x29a)](),'subUnitId':_0x4643bf});return;}((_0x1ff694=_0x2901c9['getActiveSheet']())==null?void 0x0:_0x1ff694[_0x148df0(0x218)]())!==_0x28260f&&await this[_0x148df0(0x236)][_0x148df0(0x270)](_0x4bdacf['id'],{'unitId':_0x2901c9[_0x148df0(0x29a)](),'subUnitId':_0x28260f});}};Q=H([V(0x0,_0x3b2fe9),V(0x1,_0x5cc3ae),V(0x2,_0x3d4214(_0x592985)),V(0x3,_0x3d4214(G)),V(0x4,_0x3d4214(_0x316b33)),V(0x5,_0x2b6969),V(0x6,_0x3d4214(_0x1e0d39)),V(0x7,_0x58623b),V(0x8,_0x3d4214(_0x5d6713)),V(0x9,_0x430938),V(0xa,_0x117d1f)],Q);let $=class extends _0x30cf8f{constructor(_0x2ecf89=R,_0x595997,_0x4c6d25){const _0x4056d0=_0x257921;super(),this['_config']=_0x2ecf89,this['_injector']=_0x595997,this[_0x4056d0(0x20d)]=_0x4c6d25;let {menu:_0x5130c5,..._0x5d63ed}=_0x3bca78({},R,this[_0x4056d0(0x208)]);_0x5130c5&&this[_0x4056d0(0x20d)][_0x4056d0(0x263)](_0x4056d0(0x1e7),_0x5130c5,{'merge':!0x0}),this[_0x4056d0(0x20d)][_0x4056d0(0x263)](L,_0x5d63ed),this[_0x4056d0(0x208)]['univerContainerId']&&this[_0x4056d0(0x20d)][_0x4056d0(0x263)](U,this[_0x4056d0(0x208)][_0x4056d0(0x23e)]);}[_0x257921(0x25b)](){const _0x4ff547=_0x257921;[[G],[Q]][_0x4ff547(0x20e)](_0x5d2169=>this[_0x4ff547(0x266)][_0x4ff547(0x292)](_0x5d2169));}[_0x257921(0x23f)](){const _0x4f54fc=_0x257921;this[_0x4f54fc(0x266)][_0x4f54fc(0x289)](Q);}};B($,_0x257921(0x24d),_0x7184d6[_0x257921(0x243)]),B($,_0x257921(0x298),_0x257921(0x1ed)),B($,_0x257921(0x22e),ct),B($,_0x257921(0x2a1),lt),$=H([_0x219475(_0x433b30),V(0x1,_0x3d4214(_0x4f86b8)),V(0x2,_0x119b2)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x126485=_0x514f;(function(_0x2e3113,_0x489f45){const _0x3f9a8e=_0x514f,_0x506726=_0x2e3113();while(!![]){try{const _0x1ebcf8=-parseInt(_0x3f9a8e(0x196))/0x1+parseInt(_0x3f9a8e(0xfb))/0x2*(parseInt(_0x3f9a8e(0x111))/0x3)+-parseInt(_0x3f9a8e(0x162))/0x4+parseInt(_0x3f9a8e(0xe4))/0x5*(parseInt(_0x3f9a8e(0x11e))/0x6)+parseInt(_0x3f9a8e(0x120))/0x7+parseInt(_0x3f9a8e(0x18f))/0x8+-parseInt(_0x3f9a8e(0xe6))/0x9*(parseInt(_0x3f9a8e(0x130))/0xa);if(_0x1ebcf8===_0x489f45)break;else _0x506726['push'](_0x506726['shift']());}catch(_0x151a7d){_0x506726['push'](_0x506726['shift']());}}}(_0x496c,0x3ea7e));import{CommandType,DependentOn,Disposable,DisposableCollection,IAuthzIoService,ICommandService,IConfigService,IPermissionService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,RxDisposable,ThemeService,Univer,UniverInstanceType,Workbook,merge,toDisposable}from'@univerjs/core';import{RangeProtectionPermissionEditPoint,RangeProtectionRuleModel,SetWorksheetActivateCommand,UniverSheetsPlugin,WorkbookEditablePermission,WorkbookRecoverHistoryPermission,WorkbookViewHistoryPermission,WorksheetEditPermission,getSheetCommandTarget}from'@univerjs/sheets';import{CollaborationEvent,RevertRevisionMutation,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';function _0x514f(_0x5babbb,_0x29be02){_0x5babbb=_0x5babbb-0xe0;const _0x496c8c=_0x496c();let _0x514f45=_0x496c8c[_0x5babbb];return _0x514f45;}import{AuthzIoHttpService,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationController,CollaborationStatus,DataLoaderService,ILocalCacheService}from'@univerjs-pro/collaboration-client';import{HistoryManagerService,HistoryModeStatus,UniverEditHistoryViewerMobilePlugin,UniverEditHistoryViewerPlugin}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY,UniverLicensePlugin}from'@univerjs-pro/license';import{UniverSheetsChartPlugin}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin}from'@univerjs/data-validation';import{MessageType}from'@univerjs/design';import{UniverDocsPlugin}from'@univerjs/docs';import{UniverDocsUIPlugin}from'@univerjs/docs-ui';import{IImageIoService,UniverDrawingPlugin}from'@univerjs/drawing';import{UniverDrawingUIPlugin}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin}from'@univerjs/engine-render';import{UniverNetworkPlugin}from'@univerjs/network';import{IRemoteInstanceService,UniverRPCMainThreadPlugin}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin,UniverSheetsDataValidationUIPlugin}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin,UniverSheetsUIPlugin,getCurrentRangeDisable$}from'@univerjs/sheets-ui';import{ComponentManager,IDialogService,IMenuManagerService,IMessageService,ISidebarService,MenuItemType,RibbonStartGroup,UniverMobileUIPlugin,UniverUIPlugin,getMenuHiddenObservable}from'@univerjs/ui';import{BehaviorSubject,combineLatest,takeUntil}from'rxjs';import{IURLService}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon}from'@univerjs/icons';const EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY=_0x126485(0x189),configSymbol=Symbol(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x5d8e2a){'@babel/helpers - typeof';const _0x37cfc9=_0x126485;return _typeof=_0x37cfc9(0x178)==typeof Symbol&&_0x37cfc9(0x191)==typeof Symbol[_0x37cfc9(0x14f)]?function(_0x804728){return typeof _0x804728;}:function(_0x5a0f63){const _0x51410c=_0x37cfc9;return _0x5a0f63&&_0x51410c(0x178)==typeof Symbol&&_0x5a0f63['constructor']===Symbol&&_0x5a0f63!==Symbol[_0x51410c(0x132)]?_0x51410c(0x191):typeof _0x5a0f63;},_typeof(_0x5d8e2a);}function toPrimitive(_0x2db299,_0x4cf422){const _0x3dbf4a=_0x126485;if('object'!=_typeof(_0x2db299)||!_0x2db299)return _0x2db299;var _0x9e0f23=_0x2db299[Symbol[_0x3dbf4a(0x112)]];if(void 0x0!==_0x9e0f23){var _0x1475fe=_0x9e0f23[_0x3dbf4a(0x10f)](_0x2db299,_0x4cf422||_0x3dbf4a(0x10a));if(_0x3dbf4a(0x113)!=_typeof(_0x1475fe))return _0x1475fe;throw new TypeError(_0x3dbf4a(0x161));}return(_0x3dbf4a(0x18b)===_0x4cf422?String:Number)(_0x2db299);}function toPropertyKey(_0x355e40){const _0x46a001=_0x126485;var _0x5bdfb6=toPrimitive(_0x355e40,_0x46a001(0x18b));return'symbol'==_typeof(_0x5bdfb6)?_0x5bdfb6:_0x5bdfb6+'';}function _defineProperty(_0x56b726,_0x133724,_0x53999c){const _0x5d7e6c=_0x126485;return(_0x133724=toPropertyKey(_0x133724))in _0x56b726?Object[_0x5d7e6c(0x11c)](_0x56b726,_0x133724,{'value':_0x53999c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56b726[_0x133724]=_0x53999c,_0x56b726;}function __decorateParam(_0x53e2c5,_0x49f222){return function(_0xebf35b,_0x4dc3b1){_0x49f222(_0xebf35b,_0x4dc3b1,_0x53e2c5);};}function __decorate(_0x5963af,_0x439077,_0x2c9ba8,_0x3e5b76){const _0x513d52=_0x126485;var _0x251bb3=arguments[_0x513d52(0x12b)],_0x288aae=_0x251bb3<0x3?_0x439077:_0x3e5b76===null?_0x3e5b76=Object['getOwnPropertyDescriptor'](_0x439077,_0x2c9ba8):_0x3e5b76,_0x18b6e5;if(typeof Reflect===_0x513d52(0x113)&&typeof Reflect['decorate']===_0x513d52(0x178))_0x288aae=Reflect[_0x513d52(0x12f)](_0x5963af,_0x439077,_0x2c9ba8,_0x3e5b76);else{for(var _0x42668c=_0x5963af[_0x513d52(0x12b)]-0x1;_0x42668c>=0x0;_0x42668c--)if(_0x18b6e5=_0x5963af[_0x42668c])_0x288aae=(_0x251bb3<0x3?_0x18b6e5(_0x288aae):_0x251bb3>0x3?_0x18b6e5(_0x439077,_0x2c9ba8,_0x288aae):_0x18b6e5(_0x439077,_0x2c9ba8))||_0x288aae;}return _0x251bb3>0x3&&_0x288aae&&Object['defineProperty'](_0x439077,_0x2c9ba8,_0x288aae),_0x288aae;}const DEFAULT_UNIVER_CONTAINER_ID$1=_0x126485(0x195),UNIVER_CONTAINER_ID_KEY=_0x126485(0x100),UNIVER_HISTORY_CONTAINER_ID=_0x126485(0x153);let HistoryLoaderService=class HistoryLoaderService extends Disposable{constructor(_0xa35463,_0x54eef9,_0x234eb7,_0x1cde6d,_0x583f29,_0x271b2e,_0x2d71d2,_0x150868,_0x28e693,_0x509aa3){const _0x4004e2=_0x126485;super(),this[_0x4004e2(0x179)]=_0xa35463,this['_univerInstanceService']=_0x54eef9,this[_0x4004e2(0x185)]=_0x234eb7,this[_0x4004e2(0x168)]=_0x1cde6d,this['_messageService']=_0x583f29,this[_0x4004e2(0x10b)]=_0x271b2e,this[_0x4004e2(0x184)]=_0x2d71d2,this[_0x4004e2(0x157)]=_0x150868,this[_0x4004e2(0x15c)]=_0x28e693,this['_themeService']=_0x509aa3,_defineProperty(this,'_historyUniver$',new BehaviorSubject(null)),_defineProperty(this,_0x4004e2(0x146),this[_0x4004e2(0x166)][_0x4004e2(0x106)]()),_defineProperty(this,'_disposableCollection',new DisposableCollection()),_defineProperty(this,_0x4004e2(0x104),new Map()),_defineProperty(this,'_internalWebWorker',null),this[_0x4004e2(0xed)]();}get[_0x126485(0xe8)](){const _0x4318aa=_0x126485;return this['_historyUniver$'][_0x4318aa(0x176)];}[_0x126485(0xed)](){const _0x311809=_0x126485;this[_0x311809(0xea)](),this[_0x311809(0x181)]();}['_initContainer'](){const _0xf36288=_0x126485;var _0x4a9c43;const _0x7cc045=(_0x4a9c43=this[_0xf36288(0x185)][_0xf36288(0x16c)](_0xf36288(0x100)))!==null&&_0x4a9c43!==void 0x0?_0x4a9c43:DEFAULT_UNIVER_CONTAINER_ID$1,_0x413f32=document['getElementById'](_0x7cc045);if(!_0x413f32)return;const _0x19e885=document['createElement']('div');_0x19e885['id']=UNIVER_HISTORY_CONTAINER_ID,_0x19e885[_0xf36288(0x199)][_0xf36288(0x180)]=_0xf36288(0x17d),_0x19e885[_0xf36288(0x152)]['position']=_0xf36288(0x121),_0x19e885[_0xf36288(0x152)][_0xf36288(0x140)]='0',_0x19e885[_0xf36288(0x152)][_0xf36288(0x13f)]='0',_0x19e885['style']['width']=_0xf36288(0x17e),_0x19e885[_0xf36288(0x152)][_0xf36288(0x18a)]='100%',_0x19e885['style'][_0xf36288(0x124)]='49',_0x19e885[_0xf36288(0x152)]['display']=_0xf36288(0x131),_0x413f32[_0xf36288(0xee)](_0x19e885);}['_initPlugins'](){const _0x15bd53=_0x126485;[[UniverRenderEnginePlugin],[UniverUIPlugin,{'container':UNIVER_HISTORY_CONTAINER_ID,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[IDialogService,null]]}],[UniverNetworkPlugin],[UniverDrawingPlugin,{'override':[[IImageIoService,null]]}],[UniverDocsPlugin,{'hasScroll':![]}],[UniverDocsUIPlugin],[UniverSheetsNumfmtPlugin],[UniverSheetsPlugin,{'notExecuteFormula':!![]}],[UniverSheetsUIPlugin],[UniverSheetsFormulaPlugin],[UniverSheetsFormulaUIPlugin],[UniverCollaborationPlugin],[UniverSheetsFilterPlugin],[UniverSheetsFilterUIPlugin],[UniverSheetsConditionalFormattingPlugin],[UniverSheetsConditionalFormattingUIPlugin],[UniverSheetsHyperLinkPlugin],[UniverSheetsHyperLinkUIPlugin],[UniverDataValidationPlugin],[UniverSheetsDataValidationPlugin],[UniverSheetsDataValidationUIPlugin],[UniverFormulaEnginePlugin,{'notExecuteFormula':!![]}],[UniverDrawingUIPlugin],[UniverSheetsDrawingPlugin],[UniverSheetsDrawingUIPlugin],[UniverSheetSparklinePlugin],[UniverSheetSparklineUIPlugin],[UniverSheetsChartPlugin],[UniverSheetsChartUIPlugin],[UniverSheetsShapePlugin],[UniverSheetsShapeUIPlugin],[UniverSheetsPivotTablePlugin,{'notExecuteFormula':!![]}],[UniverSheetsTablePlugin]][_0x15bd53(0x167)](([_0x89406e,_0x30671d])=>this[_0x15bd53(0x101)](_0x89406e,_0x30671d));}[_0x126485(0x18e)](){const _0x45501a=_0x126485;super[_0x45501a(0x18e)](),this[_0x45501a(0x155)](),this[_0x45501a(0x104)][_0x45501a(0x19d)]();}[_0x126485(0x101)](_0x77af69,_0x2d1045,_0x4f0c79){const _0x9f1f49=_0x126485;if(this['_pluginMap']['has'](_0x77af69[_0x9f1f49(0x138)])&&!_0x4f0c79)throw new Error(_0x9f1f49(0x12a)+_0x77af69[_0x9f1f49(0x138)]+'\x20has\x20been\x20registered.');this[_0x9f1f49(0x104)][_0x9f1f49(0x142)](_0x77af69[_0x9f1f49(0x138)],[_0x77af69,_0x2d1045]);}[_0x126485(0x126)](){const _0x123f05=_0x126485;return Array[_0x123f05(0x19f)](this[_0x123f05(0x104)]['values']());}[_0x126485(0x18c)](_0x53e281,_0x18e0c8){const _0x155c6c=_0x126485,_0x259d0f=document[_0x155c6c(0x159)](UNIVER_HISTORY_CONTAINER_ID);if(!_0x259d0f)return;_0x259d0f[_0x155c6c(0x152)][_0x155c6c(0xff)]=_0x155c6c(0x148),this[_0x155c6c(0xf1)](_0x53e281,UNIVER_HISTORY_CONTAINER_ID,_0x18e0c8);}[_0x126485(0x155)](){const _0x3ad5da=_0x126485;var _0x21fc02;this[_0x3ad5da(0x154)]['dispose'](),(_0x21fc02=this[_0x3ad5da(0xe8)])===null||_0x21fc02===void 0x0||_0x21fc02[_0x3ad5da(0x18e)](),this['_historyUniver$'][_0x3ad5da(0xf5)](null);const _0x2b5641=document[_0x3ad5da(0x159)](UNIVER_HISTORY_CONTAINER_ID);if(!_0x2b5641)return;_0x2b5641[_0x3ad5da(0x152)][_0x3ad5da(0xff)]=_0x3ad5da(0x131),this[_0x3ad5da(0x14d)]&&(this[_0x3ad5da(0x14d)][_0x3ad5da(0x190)](),this[_0x3ad5da(0x14d)]=null);}[_0x126485(0xf1)](_0x5ca4f5,_0x4f52c2,_0x119e8c){const _0xa876ae=_0x126485;var _0x3a69c5,_0x5d2783,_0x339c42,_0x516421,_0x4408e3;if(this[_0xa876ae(0xe8)])return;const _0x259989=new Univer({'locales':{[this[_0xa876ae(0x179)][_0xa876ae(0x14e)]()]:this[_0xa876ae(0x179)]['getLocales']()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x162513=_0x259989[_0xa876ae(0x192)]();this[_0xa876ae(0x173)](this['_themeService']['darkMode$']['subscribe'](_0x1b3dae=>{const _0x26c2c3=_0xa876ae;_0x162513[_0x26c2c3(0x16a)](ThemeService)[_0x26c2c3(0x160)](_0x1b3dae);})),this[_0xa876ae(0x173)](this[_0xa876ae(0x158)][_0xa876ae(0x16b)]['subscribe'](_0x2fa429=>{const _0x4b0cf8=_0xa876ae;_0x162513[_0x4b0cf8(0x16a)](ThemeService)[_0x4b0cf8(0x16e)](_0x2fa429);})),_0x162513[_0xa876ae(0x16a)](LocaleService)[_0xa876ae(0x116)](this['_localeService']['getCurrentLocale']()),_0x162513[_0xa876ae(0x16a)](IConfigService)[_0xa876ae(0x177)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this['_configService'][_0xa876ae(0x16c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0xc900ca=this[_0xa876ae(0x185)][_0xa876ae(0x16c)](LS_CONFIG_KEY);if(_0xc900ca)_0x259989[_0xa876ae(0x101)](UniverLicensePlugin,{'license':_0xc900ca['ls']});const _0x4fd162=(_0x3a69c5=this['_configService'][_0xa876ae(0x16c)](_0xa876ae(0x189)))===null||_0x3a69c5===void 0x0?void 0x0:_0x3a69c5[_0xa876ae(0x102)],_0x54ec89=!!_0x4fd162;_0x54ec89&&(this[_0xa876ae(0x14d)]=_0x4fd162 instanceof Worker?_0x4fd162:null,_0x259989[_0xa876ae(0x101)](UniverRPCMainThreadPlugin,{'workerURL':_0x4fd162}));this['_pluginMap']['forEach'](([_0x400d0e,_0x8276c])=>{const _0x52d5c4=_0xa876ae;_0x259989[_0x52d5c4(0x101)](_0x400d0e,_0x8276c);}),_0x259989['registerPlugin'](UniverEditHistoryViewerPlugin,{'historyListServerUrl':(_0x5d2783=this[_0xa876ae(0x185)]['getConfig'](_0xa876ae(0x189)))===null||_0x5d2783===void 0x0?void 0x0:_0x5d2783[_0xa876ae(0xe7)],'historyPanelComponentKey':(_0x339c42=this[_0xa876ae(0x185)][_0xa876ae(0x16c)](_0xa876ae(0x189)))===null||_0x339c42===void 0x0?void 0x0:_0x339c42[_0xa876ae(0xe0)],'historyPanelHidden':(_0x516421=this['_configService'][_0xa876ae(0x16c)]('edit-history-loader.config'))===null||_0x516421===void 0x0?void 0x0:_0x516421[_0xa876ae(0xfa)],'historyAIassistantEnabled':(_0x4408e3=this['_configService'][_0xa876ae(0x16c)](_0xa876ae(0x189)))===null||_0x4408e3===void 0x0?void 0x0:_0x4408e3[_0xa876ae(0x19b)]}),_0x162513[_0xa876ae(0x187)](_0x2ade8a=>{this['_initListener'](_0x2ade8a,_0x5ca4f5);}),this[_0xa876ae(0x166)]['next'](_0x259989);const _0x42f2f8=_0x162513[_0xa876ae(0x16a)](HistoryManagerService),_0x3ddc9c=this['_checkCanRevert'](_0x5ca4f5),_0x57203a=()=>{const _0x4047f5=_0xa876ae;if(_0x119e8c)_0x42f2f8[_0x4047f5(0x114)](_0x5ca4f5,_0x4f52c2,_0x3ddc9c,_0x119e8c);else _0x42f2f8[_0x4047f5(0xf8)](_0x5ca4f5,_0x4f52c2,_0x3ddc9c);};this[_0xa876ae(0x18d)]['show']({'content':this[_0xa876ae(0x179)]['t'](_0xa876ae(0x17a)),'type':MessageType['Loading']});if(_0x54ec89)try{_0x162513[_0xa876ae(0x16a)](IRemoteInstanceService)[_0xa876ae(0x136)]()[_0xa876ae(0x139)](()=>{_0x57203a();});}catch{_0x57203a();}else _0x57203a();}[_0x126485(0x11f)](_0x3f2a6d,_0xf80b94){const _0x58e211=_0x126485,_0xc9a3f0=_0x3f2a6d[_0x58e211(0x16a)](HistoryManagerService);this[_0x58e211(0x154)][_0x58e211(0x14c)](_0xc9a3f0['status$']['subscribe'](_0x28a735=>{const _0x308ecf=_0x58e211;switch(_0x28a735){case HistoryModeStatus[_0x308ecf(0x147)]:this[_0x308ecf(0x157)][_0x308ecf(0x17c)](),this[_0x308ecf(0x15c)][_0x308ecf(0x118)]();break;case HistoryModeStatus[_0x308ecf(0x163)]:this[_0x308ecf(0x168)][_0x308ecf(0xec)](ExitEditHistoryOperation['id']),this[_0x308ecf(0x155)]();break;case HistoryModeStatus[_0x308ecf(0xf0)]:this['unMountHistoryContent'](),this[_0x308ecf(0x18d)]['show']({'content':this[_0x308ecf(0x179)]['t'](_0x308ecf(0x103)),'type':MessageType[_0x308ecf(0xf0)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x58e211(0x14c)](_0xc9a3f0[_0x58e211(0x17b)][_0x58e211(0x109)](async _0x2049a3=>{const _0x51d03c=_0x58e211;if(_0x2049a3)this[_0x51d03c(0x168)][_0x51d03c(0xec)](RevertRevisionMutation['id'],{'unitId':_0xf80b94,'revision':_0x2049a3});}));}[_0x126485(0x13b)](_0x3ced4a){const _0x5e79f9=_0x126485,_0x157abf=this['_univerInstanceService'][_0x5e79f9(0x12d)](_0x3ced4a)[_0x5e79f9(0xf4)]()[_0x5e79f9(0x144)](_0x5a2a44=>_0x5a2a44[_0x5e79f9(0x107)]()),_0x8f842=new WorkbookEditablePermission(_0x3ced4a)['id'],_0x1f1069=_0x157abf[_0x5e79f9(0x144)](_0x3385bd=>new WorksheetEditPermission(_0x3ced4a,_0x3385bd)['id']),_0x5e3538=_0x157abf[_0x5e79f9(0x144)](_0x3f9354=>this[_0x5e79f9(0x184)][_0x5e79f9(0xf3)](_0x3ced4a,_0x3f9354)[_0x5e79f9(0x144)](_0x351602=>new RangeProtectionPermissionEditPoint(_0x3ced4a,_0x3f9354,_0x351602[_0x5e79f9(0xf2)])['id']))[_0x5e79f9(0x151)](),_0x25a38e=new WorkbookRecoverHistoryPermission(_0x3ced4a)['id'];return this[_0x5e79f9(0x10b)][_0x5e79f9(0x134)]([_0x8f842,..._0x1f1069,..._0x5e3538,_0x25a38e])['every'](_0x495135=>!!_0x495135[_0x5e79f9(0x176)]);}};HistoryLoaderService=__decorate([__decorateParam(0x0,Inject(LocaleService)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICommandService),__decorateParam(0x4,IMessageService),__decorateParam(0x5,IPermissionService),__decorateParam(0x6,Inject(RangeProtectionRuleModel)),__decorateParam(0x7,Inject(IDialogService)),__decorateParam(0x8,Inject(ISidebarService)),__decorateParam(0x9,Inject(ThemeService))],HistoryLoaderService);const ToggleEditHistoryOperation={'id':_0x126485(0x171),'type':CommandType[_0x126485(0x169)],'handler':_0x413422=>{const _0x55d3cc=_0x126485,_0x8bd7da=_0x413422[_0x55d3cc(0x16a)](HistoryLoaderService),{unitId:_0x15bb1f}=getSheetCommandTarget(_0x413422['get'](IUniverInstanceService))||{};if(!_0x15bb1f)return![];return _0x8bd7da[_0x55d3cc(0x18c)](_0x15bb1f),!![];}},ExitEditHistoryOperation={'id':_0x126485(0xef),'type':CommandType[_0x126485(0x169)],'handler':()=>!![]};var name=_0x126485(0x11d),version=_0x126485(0x194);function ToggleEditHistoryMenuFactory(_0x508e48){const _0x517150=_0x126485;return{'id':ToggleEditHistoryOperation['id'],'type':MenuItemType['BUTTON'],'icon':_0x517150(0x165),'tooltip':'editHistory.panel.title','hidden$':getMenuHiddenObservable(_0x508e48,UniverInstanceType[_0x517150(0x15f)]),'disabled$':getCurrentRangeDisable$(_0x508e48,{'workbookTypes':[WorkbookViewHistoryPermission],'worksheetTypes':[],'rangeTypes':[]})};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[ToggleEditHistoryOperation['id']]:{'order':0.2,'menuItemFactory':ToggleEditHistoryMenuFactory}}};let MobileHistoryLoaderController=class MobileHistoryLoaderController extends RxDisposable{constructor(_0x43090c,_0x44fe50,_0x13cf4f,_0x51979d,_0x166c38,_0x4ec8be,_0x3a0082,_0x1ecb65,_0xfdef34,_0x3b05dc,_0x224367){const _0x5647c5=_0x126485;super(),this['_commandService']=_0x43090c,this[_0x5647c5(0xe1)]=_0x44fe50,this['_componentManager']=_0x13cf4f,this['_historyManagerService']=_0x51979d,this[_0x5647c5(0x179)]=_0x166c38,this[_0x5647c5(0x18d)]=_0x4ec8be,this[_0x5647c5(0x164)]=_0x3a0082,this[_0x5647c5(0x119)]=_0x1ecb65,this[_0x5647c5(0xe5)]=_0xfdef34,this[_0x5647c5(0x170)]=_0x3b05dc,this[_0x5647c5(0x197)]=_0x224367,_defineProperty(this,_0x5647c5(0x15e),null),this['_init']();}[_0x126485(0xed)](){const _0x112321=_0x126485;[ToggleEditHistoryOperation,ExitEditHistoryOperation]['forEach'](_0x2a672c=>this[_0x112321(0x173)](toDisposable(this[_0x112321(0x168)][_0x112321(0x188)](_0x2a672c)))),this[_0x112321(0x173)](this['_componentManager'][_0x112321(0x1a0)](_0x112321(0x165),HistoryIcon)),this[_0x112321(0xe1)][_0x112321(0x175)](menuSchema),this[_0x112321(0x173)](this[_0x112321(0x168)][_0x112321(0x12e)](async(_0x1c3860,_0x3b49a3)=>{const _0x445cd5=_0x112321;if(_0x1c3860['id']===RevertRevisionMutation['id']){const {unitId:_0x4b37f9}=_0x1c3860[_0x445cd5(0xf7)];this['_messageService'][_0x445cd5(0xfe)]({'content':this[_0x445cd5(0x179)]['t'](_0x445cd5(0x110)),'type':MessageType['Loading'],'duration':0x1388});const _0x589f2b=this['_collaborationController'][_0x445cd5(0x133)](_0x4b37f9);if(!(_0x3b49a3===null||_0x3b49a3===void 0x0?void 0x0:_0x3b49a3[_0x445cd5(0x1a1)]))this['_handleRevertAcknowledgement'](_0x589f2b,async()=>{const _0x188788=_0x445cd5,_0x2d8113=this[_0x188788(0x170)][_0x188788(0x12c)](UniverInstanceType[_0x188788(0x15f)]),_0xa79d0c=_0x2d8113===null||_0x2d8113===void 0x0?void 0x0:_0x2d8113[_0x188788(0xf9)]();if(!_0xa79d0c)return![];this[_0x188788(0x170)][_0x188788(0x16d)](_0x4b37f9);const _0x1394b8=await this['_dataLoaderService'][_0x188788(0x115)](_0x4b37f9,UniverInstanceType[_0x188788(0x15f)]);if(_0x1394b8&&_0x1394b8 instanceof Workbook)return await this[_0x188788(0x143)](_0x1394b8,_0xa79d0c[_0x188788(0x107)]()),!![];return![];});else this['_handleRevertAcknowledgement'](_0x589f2b,async()=>{const _0x1e4959=_0x445cd5;return setTimeout(()=>window[_0x1e4959(0x182)][_0x1e4959(0x117)]()),!![];},!![]);}}));}[_0x126485(0x193)](_0x1c31ce,_0x2428e4,_0x3fb872=![]){const _0x2d5880=_0x126485,_0x5f5a1a=combineLatest([_0x1c31ce[_0x2d5880(0xf6)]['event$'],_0x1c31ce[_0x2d5880(0xfc)]])['subscribe'](async([_0x472d9d,_0xe23075])=>{const _0x133790=_0x2d5880;if(_0x472d9d['eventID']===CollaborationEvent[_0x133790(0x19c)]&&(_0xe23075===null||_0xe23075===void 0x0?void 0x0:_0xe23075[_0x133790(0x15b)])===CollaborationStatus[_0x133790(0x122)]){if(_0x472d9d[_0x133790(0x135)][_0x133790(0x11b)][_0x133790(0x149)](_0x516d9a=>_0x516d9a['id']===RevertRevisionMutation['id'])){if(await _0x2428e4()){var _0x550bfe;this[_0x133790(0x10e)]['unMountHistoryContent'](),_0x5f5a1a[_0x133790(0x10d)](),this[_0x133790(0x15e)]&&clearTimeout(this['_revertErrorTimer']),await((_0x550bfe=this[_0x133790(0x119)])===null||_0x550bfe===void 0x0?void 0x0:_0x550bfe[_0x133790(0x14b)]()),this[_0x133790(0x18d)][_0x133790(0xeb)]();}}}});if(_0x3fb872)this[_0x2d5880(0x15e)]=setTimeout(()=>{const _0x400539=_0x2d5880;_0x5f5a1a[_0x400539(0x10d)](),this[_0x400539(0x18d)][_0x400539(0xfe)]({'content':this[_0x400539(0x179)]['t'](_0x400539(0x145)),'type':MessageType[_0x400539(0xf0)],'duration':0xbb8});},0x1388);}async['_setupSubUnitSync'](_0x4284d5,_0x1a1fe9){const _0x642cc7=_0x126485;await this['_updateSubUnitFromURLParams'](_0x4284d5,_0x1a1fe9),_0x4284d5[_0x642cc7(0x172)][_0x642cc7(0x141)](takeUntil(this[_0x642cc7(0x13d)]))[_0x642cc7(0x109)](_0x591902=>{const _0x5ea7d0=_0x642cc7;if(_0x591902)this[_0x5ea7d0(0x108)](_0x591902);}),this[_0x642cc7(0x197)][_0x642cc7(0x125)][_0x642cc7(0x141)](takeUntil(this['dispose$']))[_0x642cc7(0x109)](()=>this[_0x642cc7(0x105)](_0x4284d5,_0x1a1fe9));}['_updateURLWithCurrentState'](_0x58278c,_0x15644f=![]){const _0x555277=_0x126485,_0x2d5b79=this[_0x555277(0x197)][_0x555277(0xe2)](_0x555277(0x15d));if(_0x58278c['getSheetId']()!==_0x2d5b79)this[_0x555277(0x197)][_0x555277(0x19a)](_0x555277(0x15d),_0x58278c['getSheetId'](),_0x15644f);}async[_0x126485(0x105)](_0x46b1f4,_0x144475){const _0x5c2d11=_0x126485;var _0x5d2afa;if(!_0x144475||!_0x46b1f4[_0x5c2d11(0x16f)](_0x144475)){const _0x15f919=_0x46b1f4[_0x5c2d11(0x127)]()[0x0],_0x1349df=_0x46b1f4[_0x5c2d11(0x16f)](_0x15f919);if(!_0x1349df)return;this[_0x5c2d11(0x108)](_0x1349df,!![]),await this[_0x5c2d11(0x168)][_0x5c2d11(0xec)](SetWorksheetActivateCommand['id'],{'unitId':_0x46b1f4[_0x5c2d11(0x129)](),'subUnitId':_0x15f919});return;}if(((_0x5d2afa=_0x46b1f4[_0x5c2d11(0xf9)]())===null||_0x5d2afa===void 0x0?void 0x0:_0x5d2afa['getSheetId']())===_0x144475)return;await this[_0x5c2d11(0x168)][_0x5c2d11(0xec)](SetWorksheetActivateCommand['id'],{'unitId':_0x46b1f4[_0x5c2d11(0x129)](),'subUnitId':_0x144475});}};MobileHistoryLoaderController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager)),__decorateParam(0x3,Inject(HistoryLoaderService)),__decorateParam(0x4,Inject(LocaleService)),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(CollaborationController)),__decorateParam(0x7,ILocalCacheService),__decorateParam(0x8,Inject(DataLoaderService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,IURLService)],MobileHistoryLoaderController);const DEFAULT_UNIVER_CONTAINER_ID='univer-container',UNIVER_CONTAINER_ID_KEY$1=_0x126485(0x100),UNIVER_HISTORY_CONTAINER_ID$1='univer-history-container-mobile';let MobileHistoryLoaderService=class MobileHistoryLoaderService extends Disposable{constructor(_0x3f1424,_0x28f8e8,_0x2a5378,_0xe0488c,_0x56765b,_0x4688f5,_0x2fc2e9,_0x32a71d,_0x283290,_0x34259a){const _0x22f587=_0x126485;super(),this[_0x22f587(0x179)]=_0x3f1424,this[_0x22f587(0x170)]=_0x28f8e8,this[_0x22f587(0x185)]=_0x2a5378,this['_commandService']=_0xe0488c,this[_0x22f587(0x18d)]=_0x56765b,this[_0x22f587(0x10b)]=_0x4688f5,this[_0x22f587(0x184)]=_0x2fc2e9,this[_0x22f587(0x157)]=_0x32a71d,this[_0x22f587(0x15c)]=_0x283290,this[_0x22f587(0x158)]=_0x34259a,_defineProperty(this,'_historyUniver$',new BehaviorSubject(null)),_defineProperty(this,_0x22f587(0x146),this['_historyUniver$'][_0x22f587(0x106)]()),_defineProperty(this,_0x22f587(0x154),new DisposableCollection()),_defineProperty(this,_0x22f587(0x104),new Map()),_defineProperty(this,_0x22f587(0x14d),null),this[_0x22f587(0xed)]();}get['historyUniver'](){const _0x5cfc62=_0x126485;return this[_0x5cfc62(0x166)][_0x5cfc62(0x176)];}[_0x126485(0xed)](){const _0x2d706a=_0x126485;this[_0x2d706a(0xea)](),this[_0x2d706a(0x181)]();}[_0x126485(0xea)](){const _0x3ce80c=_0x126485;var _0x473a8e;const _0x4641b8=(_0x473a8e=this[_0x3ce80c(0x185)][_0x3ce80c(0x16c)]('UNIVER_CONTAINER_ID'))!==null&&_0x473a8e!==void 0x0?_0x473a8e:DEFAULT_UNIVER_CONTAINER_ID,_0x42a8bf=document[_0x3ce80c(0x159)](_0x4641b8);if(!_0x42a8bf)return;const _0x35f96b=document[_0x3ce80c(0x128)]('div');_0x35f96b['id']=UNIVER_HISTORY_CONTAINER_ID$1,_0x35f96b[_0x3ce80c(0x199)][_0x3ce80c(0x180)]=_0x3ce80c(0x17d),_0x35f96b[_0x3ce80c(0x152)][_0x3ce80c(0x19e)]=_0x3ce80c(0x121),_0x35f96b['style']['top']='0',_0x35f96b[_0x3ce80c(0x152)][_0x3ce80c(0x13f)]='0',_0x35f96b[_0x3ce80c(0x152)][_0x3ce80c(0x186)]='100%',_0x35f96b[_0x3ce80c(0x152)][_0x3ce80c(0x18a)]=_0x3ce80c(0x17e),_0x35f96b['style']['zIndex']='49',_0x35f96b['style'][_0x3ce80c(0xff)]=_0x3ce80c(0x131),_0x42a8bf[_0x3ce80c(0xee)](_0x35f96b);}[_0x126485(0x181)](){const _0x50f6f3=_0x126485;[[UniverRenderEnginePlugin],[UniverMobileUIPlugin,{'container':UNIVER_HISTORY_CONTAINER_ID$1,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[IDialogService,null]]}],[UniverNetworkPlugin],[UniverDrawingPlugin,{'override':[[IImageIoService,null]]}],[UniverDocsPlugin,{'hasScroll':![]}],[UniverDocsUIPlugin],[UniverSheetsNumfmtPlugin],[UniverSheetsPlugin,{'notExecuteFormula':!![]}],[UniverSheetsMobileUIPlugin],[UniverSheetsFormulaPlugin],[UniverSheetsFormulaUIPlugin],[UniverCollaborationPlugin],[UniverSheetsFilterPlugin],[UniverSheetsConditionalFormattingPlugin],[UniverSheetsHyperLinkPlugin],[UniverSheetsHyperLinkUIPlugin],[UniverDataValidationPlugin],[UniverSheetsDataValidationPlugin],[UniverSheetsDataValidationMobileUIPlugin],[UniverFormulaEnginePlugin,{'notExecuteFormula':!![]}],[UniverDrawingUIPlugin],[UniverSheetsDrawingPlugin],[UniverSheetsDrawingUIPlugin],[UniverSheetSparklinePlugin],[UniverSheetSparklineUIPlugin],[UniverSheetsChartPlugin],[UniverSheetsChartUIPlugin],[UniverSheetsShapePlugin],[UniverSheetsShapeUIPlugin],[UniverSheetsPivotTablePlugin,{'notExecuteFormula':!![]}],[UniverSheetsTablePlugin]]['forEach'](([_0x5660cf,_0x329e26])=>this[_0x50f6f3(0x101)](_0x5660cf,_0x329e26));}[_0x126485(0x18e)](){const _0x16bcf0=_0x126485;super[_0x16bcf0(0x18e)](),this[_0x16bcf0(0x155)](),this['_pluginMap'][_0x16bcf0(0x19d)]();}['registerPlugin'](_0x8360b2,_0x4a96a2,_0x6b3029){const _0x2909fb=_0x126485;if(this[_0x2909fb(0x104)]['has'](_0x8360b2[_0x2909fb(0x138)])&&!_0x6b3029)throw new Error(_0x2909fb(0x15a)+_0x8360b2[_0x2909fb(0x138)]+_0x2909fb(0x137));this[_0x2909fb(0x104)][_0x2909fb(0x142)](_0x8360b2[_0x2909fb(0x138)],[_0x8360b2,_0x4a96a2]);}[_0x126485(0x126)](){const _0xc82ab3=_0x126485;return Array[_0xc82ab3(0x19f)](this['_pluginMap']['values']());}[_0x126485(0x18c)](_0xd45443,_0x46cd2a){const _0x3ebd3b=_0x126485,_0x1580b7=document[_0x3ebd3b(0x159)](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x1580b7)return;_0x1580b7[_0x3ebd3b(0x152)]['display']=_0x3ebd3b(0x148),this['_initUniver'](_0xd45443,UNIVER_HISTORY_CONTAINER_ID$1,_0x46cd2a);}['unMountHistoryContent'](){const _0x427d20=_0x126485;var _0xe50c7b;this[_0x427d20(0x154)]['dispose'](),(_0xe50c7b=this['historyUniver'])===null||_0xe50c7b===void 0x0||_0xe50c7b[_0x427d20(0x18e)](),this[_0x427d20(0x166)][_0x427d20(0xf5)](null);const _0x16482a=document[_0x427d20(0x159)](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x16482a)return;_0x16482a[_0x427d20(0x152)]['display']=_0x427d20(0x131),this[_0x427d20(0x14d)]&&(this['_internalWebWorker'][_0x427d20(0x190)](),this[_0x427d20(0x14d)]=null);}[_0x126485(0xf1)](_0x339f4b,_0x534109,_0x5e1069){const _0x83853f=_0x126485;var _0x1c1a1a,_0x4d782b,_0x2a58c7,_0x15a432;if(this[_0x83853f(0xe8)])return;const _0x3a8fa5=new Univer({'locales':{[this[_0x83853f(0x179)]['getCurrentLocale']()]:this['_localeService']['getLocales']()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x5a0824=_0x3a8fa5[_0x83853f(0x192)]();this[_0x83853f(0x173)](this['_themeService']['darkMode$'][_0x83853f(0x109)](_0x12ba88=>{const _0x276098=_0x83853f;_0x5a0824[_0x276098(0x16a)](ThemeService)[_0x276098(0x160)](_0x12ba88);})),this[_0x83853f(0x173)](this[_0x83853f(0x158)][_0x83853f(0x16b)][_0x83853f(0x109)](_0x34b07f=>{const _0x33436e=_0x83853f;_0x5a0824[_0x33436e(0x16a)](ThemeService)[_0x33436e(0x16e)](_0x34b07f);})),_0x5a0824['get'](LocaleService)['setLocale'](this[_0x83853f(0x179)]['getCurrentLocale']()),_0x5a0824[_0x83853f(0x16a)](IConfigService)[_0x83853f(0x177)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this[_0x83853f(0x185)][_0x83853f(0x16c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x54143e=this['_configService'][_0x83853f(0x16c)](LS_CONFIG_KEY);if(_0x54143e)_0x3a8fa5[_0x83853f(0x101)](UniverLicensePlugin,{'license':_0x54143e['ls']});const _0x533635=(_0x1c1a1a=this['_configService'][_0x83853f(0x16c)]('edit-history-loader.config'))===null||_0x1c1a1a===void 0x0?void 0x0:_0x1c1a1a[_0x83853f(0x102)],_0xee9b19=!!_0x533635;_0xee9b19&&(this[_0x83853f(0x14d)]=_0x533635 instanceof Worker?_0x533635:null,_0x3a8fa5[_0x83853f(0x101)](UniverRPCMainThreadPlugin,{'workerURL':_0x533635}));this['_pluginMap'][_0x83853f(0x167)](([_0x24c0bd,_0x1828e2])=>{_0x3a8fa5['registerPlugin'](_0x24c0bd,_0x1828e2);}),_0x3a8fa5[_0x83853f(0x101)](UniverEditHistoryViewerMobilePlugin,{'historyListServerUrl':(_0x4d782b=this['_configService'][_0x83853f(0x16c)]('edit-history-loader.config'))===null||_0x4d782b===void 0x0?void 0x0:_0x4d782b[_0x83853f(0xe7)],'historyPanelComponentKey':(_0x2a58c7=this[_0x83853f(0x185)][_0x83853f(0x16c)](_0x83853f(0x189)))===null||_0x2a58c7===void 0x0?void 0x0:_0x2a58c7[_0x83853f(0xe0)],'historyPanelHidden':(_0x15a432=this[_0x83853f(0x185)][_0x83853f(0x16c)](_0x83853f(0x189)))===null||_0x15a432===void 0x0?void 0x0:_0x15a432[_0x83853f(0xfa)]}),_0x5a0824[_0x83853f(0x187)](_0x3242c4=>{const _0x3c41af=_0x83853f;this[_0x3c41af(0x11f)](_0x3242c4,_0x339f4b);}),this[_0x83853f(0x166)][_0x83853f(0xf5)](_0x3a8fa5);const _0x25f639=_0x5a0824[_0x83853f(0x16a)](HistoryManagerService),_0x59137b=this['_checkCanRevert'](_0x339f4b),_0x16d28a=()=>{const _0x4e46b3=_0x83853f;if(_0x5e1069)_0x25f639[_0x4e46b3(0x114)](_0x339f4b,_0x534109,_0x59137b,_0x5e1069);else _0x25f639['triggerLoadVersions'](_0x339f4b,_0x534109,_0x59137b);};this[_0x83853f(0x18d)][_0x83853f(0xfe)]({'content':this[_0x83853f(0x179)]['t'](_0x83853f(0x17a)),'type':MessageType[_0x83853f(0x183)]});if(_0xee9b19)try{_0x5a0824[_0x83853f(0x16a)](IRemoteInstanceService)['whenReady']()[_0x83853f(0x139)](()=>{_0x16d28a();});}catch{_0x16d28a();}else _0x16d28a();}[_0x126485(0x11f)](_0x2cc62d,_0x5b662e){const _0x3e179e=_0x126485,_0x558d8b=_0x2cc62d['get'](HistoryManagerService);this[_0x3e179e(0x154)]['add'](_0x558d8b[_0x3e179e(0x11a)][_0x3e179e(0x109)](_0x581338=>{const _0x37b35c=_0x3e179e;switch(_0x581338){case HistoryModeStatus[_0x37b35c(0x147)]:this[_0x37b35c(0x157)][_0x37b35c(0x17c)](),this[_0x37b35c(0x15c)][_0x37b35c(0x118)]();break;case HistoryModeStatus[_0x37b35c(0x163)]:this[_0x37b35c(0x168)][_0x37b35c(0xec)](ExitEditHistoryOperation['id']),this['unMountHistoryContent']();break;case HistoryModeStatus[_0x37b35c(0xf0)]:this[_0x37b35c(0x155)](),this[_0x37b35c(0x18d)][_0x37b35c(0xfe)]({'content':this[_0x37b35c(0x179)]['t'](_0x37b35c(0x103)),'type':MessageType[_0x37b35c(0xf0)],'duration':0xbb8});break;default:break;}})),this[_0x3e179e(0x154)][_0x3e179e(0x14c)](_0x558d8b['revertRevision$']['subscribe'](async _0x316966=>{const _0x5a2d91=_0x3e179e;if(_0x316966)this[_0x5a2d91(0x168)][_0x5a2d91(0xec)](RevertRevisionMutation['id'],{'unitId':_0x5b662e,'revision':_0x316966});}));}[_0x126485(0x13b)](_0x160bde){const _0xe56752=_0x126485,_0x265cfa=this['_univerInstanceService'][_0xe56752(0x12d)](_0x160bde)[_0xe56752(0xf4)]()['map'](_0x11d435=>_0x11d435['getSheetId']()),_0x3e7f46=new WorkbookEditablePermission(_0x160bde)['id'],_0x5ed89a=_0x265cfa[_0xe56752(0x144)](_0xac48b1=>new WorksheetEditPermission(_0x160bde,_0xac48b1)['id']),_0x2e51ed=_0x265cfa['map'](_0x3e474d=>this['_selectionProtectionRuleModel'][_0xe56752(0xf3)](_0x160bde,_0x3e474d)[_0xe56752(0x144)](_0x13dadc=>new RangeProtectionPermissionEditPoint(_0x160bde,_0x3e474d,_0x13dadc[_0xe56752(0xf2)])['id']))['flat'](),_0x4e5ff5=new WorkbookRecoverHistoryPermission(_0x160bde)['id'];return this['_permissionService'][_0xe56752(0x134)]([_0x3e7f46,..._0x5ed89a,..._0x2e51ed,_0x4e5ff5])[_0xe56752(0x13c)](_0x40134d=>!!_0x40134d[_0xe56752(0x176)]);}};function _0x496c(){const _0x51b092=['next','session','params','triggerLoadVersions','getActiveSheet','historyPanelHidden','190370qAqiVX','state$','_injector','show','display','UNIVER_CONTAINER_ID','registerPlugin','workerURL','editHistory.panel.listFetchError','_pluginMap','_updateSubUnitFromURLParams','asObservable','getSheetId','_updateURLWithCurrentState','subscribe','default','_permissionService','version','unsubscribe','_historyManagerService','call','editHistory.panel.reverting','6lNEgBe','toPrimitive','object','triggerCustomVersions','loadUnit','setLocale','reload','close','_localCacheService','status$','mutations','defineProperty','@univerjs-pro/edit-history-loader','1452nHOoSq','_initListener','2529331PRXfRU','absolute','SYNCED','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','zIndex','urlChange$','getAllPlugins','getUnhiddenWorksheets','createElement','getUnitId','[HistoryLoaderService]:\x20Plugin\x20','length','getCurrentUnitOfType','getUnit','onCommandExecuted','decorate','5320wPYFGJ','none','prototype','getCollabEntity','composePermission','data','whenReady','\x20has\x20been\x20registered.','pluginName','then','type','_checkCanRevert','every','dispose$','_config','left','top','pipe','set','_setupSubUnitSync','map','editHistory.panel.revertFailed','historyUniver$','Entered','block','some','event$','exhaustSavingTask','add','_internalWebWorker','getCurrentLocale','iterator','onSteady','flat','style','univer-history-container','_disposableCollection','unMountHistoryContent','eventID','_dialogService','_themeService','getElementById','[MobileHistoryLoaderService]:\x20Plugin\x20','status','_sidebarService','subunit','_revertErrorTimer','UNIVER_SHEET','setDarkMode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1876448dinQQm','Exited','_collaborationController','HistoryIcon','_historyUniver$','forEach','_commandService','OPERATION','get','currentTheme$','getConfig','disposeUnit','setTheme','getSheetBySheetId','_univerInstanceService','univer.operation.toggle-edit-history','activeSheet$','disposeWithMe','packageName','mergeMenu','value','setConfig','function','_localeService','editHistory.info.initializing','revertRevision$','closeAll','history-container','100%','_componentManager','uComp','_initPlugins','location','Loading','_selectionProtectionRuleModel','_configService','width','invoke','registerCommand','edit-history-loader.config','height','string','mountHistoryContent','_messageService','dispose','3810168mfvWRl','terminate','symbol','__getInjector','_handleRevertAcknowledgement','0.21.0','univer-container','482030WISySf','_urlService','UNIVER_UNKNOWN','dataset','setParam','historyAIassistantEnabled','CHANGESET_ACK','clear','position','from','register','fromCollab','historyPanelComponentKey','_menuManagerService','getParam','menu','5045xYVTFZ','_dataLoaderService','1089qFzJlP','historyListServerUrl','historyUniver','onStarting','_initContainer','removeAll','executeCommand','_init','appendChild','univer.operation.exit-edit-history','Error','_initUniver','permissionId','getSubunitRuleList','getSheets'];_0x496c=function(){return _0x51b092;};return _0x496c();}MobileHistoryLoaderService=__decorate([__decorateParam(0x0,Inject(LocaleService)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICommandService),__decorateParam(0x4,IMessageService),__decorateParam(0x5,IPermissionService),__decorateParam(0x6,Inject(RangeProtectionRuleModel)),__decorateParam(0x7,Inject(IDialogService)),__decorateParam(0x8,Inject(ISidebarService)),__decorateParam(0x9,Inject(ThemeService))],MobileHistoryLoaderService);let UniverEditHistoryLoaderMobilePlugin=class UniverEditHistoryLoaderMobilePlugin extends Plugin{constructor(_0x23d7b3=defaultPluginConfig,_0x479054,_0xcb8d92){const _0x584bfb=_0x126485;super(),this[_0x584bfb(0x13e)]=_0x23d7b3,this[_0x584bfb(0xfd)]=_0x479054,this[_0x584bfb(0x185)]=_0xcb8d92;const {menu:_0x13cd48,..._0x2b3827}=merge({},defaultPluginConfig,this[_0x584bfb(0x13e)]);if(_0x13cd48)this[_0x584bfb(0x185)][_0x584bfb(0x177)](_0x584bfb(0xe3),_0x13cd48,{'merge':!![]});this[_0x584bfb(0x185)][_0x584bfb(0x177)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x2b3827);if(this[_0x584bfb(0x13e)]['univerContainerId'])this[_0x584bfb(0x185)]['setConfig'](UNIVER_CONTAINER_ID_KEY$1,this['_config']['univerContainerId']);}[_0x126485(0xe9)](){const _0x48843c=_0x126485;[[HistoryLoaderService,{'useClass':MobileHistoryLoaderService}],[MobileHistoryLoaderController]][_0x48843c(0x167)](_0x53fd5e=>this[_0x48843c(0xfd)][_0x48843c(0x14c)](_0x53fd5e));}[_0x126485(0x150)](){const _0x21f52e=_0x126485;this[_0x21f52e(0xfd)][_0x21f52e(0x16a)](MobileHistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x126485(0x13a),UniverInstanceType['UNIVER_UNKNOWN']),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x126485(0x138),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x126485(0x174),name),_defineProperty(UniverEditHistoryLoaderMobilePlugin,'version',version),UniverEditHistoryLoaderMobilePlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderMobilePlugin);let HistoryLoaderController=class HistoryLoaderController extends RxDisposable{constructor(_0x475295,_0x4ae2b4,_0x2b644e,_0x3c7ea4,_0x5b5d1e,_0x50111d,_0x1ad116,_0x43ae2b,_0x47ef35,_0x44e085,_0x39a892){const _0x4a89a4=_0x126485;super(),this[_0x4a89a4(0x168)]=_0x475295,this['_menuManagerService']=_0x4ae2b4,this['_componentManager']=_0x2b644e,this[_0x4a89a4(0x10e)]=_0x3c7ea4,this['_localeService']=_0x5b5d1e,this[_0x4a89a4(0x18d)]=_0x50111d,this[_0x4a89a4(0x164)]=_0x1ad116,this[_0x4a89a4(0x119)]=_0x43ae2b,this[_0x4a89a4(0xe5)]=_0x47ef35,this['_univerInstanceService']=_0x44e085,this[_0x4a89a4(0x197)]=_0x39a892,_defineProperty(this,'_revertErrorTimer',null),this[_0x4a89a4(0xed)]();}[_0x126485(0xed)](){const _0x35449f=_0x126485;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x35449f(0x167)](_0x289dcb=>this['disposeWithMe'](toDisposable(this[_0x35449f(0x168)]['registerCommand'](_0x289dcb)))),this['disposeWithMe'](this[_0x35449f(0x17f)][_0x35449f(0x1a0)](_0x35449f(0x165),HistoryIcon)),this[_0x35449f(0xe1)][_0x35449f(0x175)](menuSchema),this[_0x35449f(0x173)](this[_0x35449f(0x168)][_0x35449f(0x12e)](async(_0x50a185,_0x354145)=>{const _0x398bc7=_0x35449f;if(_0x50a185['id']===RevertRevisionMutation['id']){const {unitId:_0x2764bf}=_0x50a185[_0x398bc7(0xf7)];this[_0x398bc7(0x18d)]['show']({'content':this[_0x398bc7(0x179)]['t'](_0x398bc7(0x110)),'type':MessageType[_0x398bc7(0x183)],'duration':0x1388});const _0x157c17=this[_0x398bc7(0x164)]['getCollabEntity'](_0x2764bf);if(!(_0x354145===null||_0x354145===void 0x0?void 0x0:_0x354145[_0x398bc7(0x1a1)]))this[_0x398bc7(0x193)](_0x157c17,async()=>{const _0x45cb58=_0x398bc7,_0x3ee1e0=this[_0x45cb58(0x170)][_0x45cb58(0x12c)](UniverInstanceType[_0x45cb58(0x15f)]),_0x180364=_0x3ee1e0===null||_0x3ee1e0===void 0x0?void 0x0:_0x3ee1e0[_0x45cb58(0xf9)]();if(!_0x180364)return![];this['_univerInstanceService'][_0x45cb58(0x16d)](_0x2764bf);const _0x4219c1=await this[_0x45cb58(0xe5)][_0x45cb58(0x115)](_0x2764bf,UniverInstanceType['UNIVER_SHEET']);if(_0x4219c1&&_0x4219c1 instanceof Workbook)return await this[_0x45cb58(0x143)](_0x4219c1,_0x180364[_0x45cb58(0x107)]()),!![];return![];});else this[_0x398bc7(0x193)](_0x157c17,async()=>{const _0x2eaa8f=_0x398bc7;return setTimeout(()=>window[_0x2eaa8f(0x182)][_0x2eaa8f(0x117)]()),!![];},!![]);}}));}[_0x126485(0x193)](_0x13f5c1,_0x359afb,_0x1e2ee2=![]){const _0x4bdc55=_0x126485,_0x48eb7c=combineLatest([_0x13f5c1['session'][_0x4bdc55(0x14a)],_0x13f5c1['state$']])[_0x4bdc55(0x109)](async([_0x3c36fc,_0x352c37])=>{const _0x5a3abd=_0x4bdc55;if(_0x3c36fc[_0x5a3abd(0x156)]===CollaborationEvent[_0x5a3abd(0x19c)]&&(_0x352c37===null||_0x352c37===void 0x0?void 0x0:_0x352c37[_0x5a3abd(0x15b)])===CollaborationStatus[_0x5a3abd(0x122)]){if(_0x3c36fc[_0x5a3abd(0x135)][_0x5a3abd(0x11b)]['some'](_0x533c9d=>_0x533c9d['id']===RevertRevisionMutation['id'])){if(await _0x359afb()){var _0x29f8c2;this[_0x5a3abd(0x10e)][_0x5a3abd(0x155)](),_0x48eb7c[_0x5a3abd(0x10d)](),this[_0x5a3abd(0x15e)]&&clearTimeout(this[_0x5a3abd(0x15e)]),await((_0x29f8c2=this[_0x5a3abd(0x119)])===null||_0x29f8c2===void 0x0?void 0x0:_0x29f8c2[_0x5a3abd(0x14b)]());}}}});if(_0x1e2ee2)this[_0x4bdc55(0x15e)]=setTimeout(()=>{const _0xdf4db8=_0x4bdc55;_0x48eb7c[_0xdf4db8(0x10d)](),this['_messageService'][_0xdf4db8(0xfe)]({'content':this['_localeService']['t'](_0xdf4db8(0x145)),'type':MessageType['Error'],'duration':0xbb8});},0x1388);}async[_0x126485(0x143)](_0x501524,_0x365cc0){const _0x12ecaa=_0x126485;await this[_0x12ecaa(0x105)](_0x501524,_0x365cc0),_0x501524['activeSheet$'][_0x12ecaa(0x141)](takeUntil(this[_0x12ecaa(0x13d)]))[_0x12ecaa(0x109)](_0x1e2021=>{const _0x45fc43=_0x12ecaa;if(_0x1e2021)this[_0x45fc43(0x108)](_0x1e2021);}),this[_0x12ecaa(0x197)][_0x12ecaa(0x125)]['pipe'](takeUntil(this[_0x12ecaa(0x13d)]))[_0x12ecaa(0x109)](()=>this[_0x12ecaa(0x105)](_0x501524,_0x365cc0));}['_updateURLWithCurrentState'](_0x6034a9,_0x332359=![]){const _0x56e3de=_0x126485,_0x483f97=this[_0x56e3de(0x197)][_0x56e3de(0xe2)](_0x56e3de(0x15d));if(_0x6034a9[_0x56e3de(0x107)]()!==_0x483f97)this[_0x56e3de(0x197)][_0x56e3de(0x19a)](_0x56e3de(0x15d),_0x6034a9[_0x56e3de(0x107)](),_0x332359);}async['_updateSubUnitFromURLParams'](_0x37211a,_0x50fb2c){const _0x35f234=_0x126485;var _0x5aaad3;if(!_0x50fb2c||!_0x37211a[_0x35f234(0x16f)](_0x50fb2c)){const _0x2f521c=_0x37211a['getUnhiddenWorksheets']()[0x0],_0x489f6a=_0x37211a[_0x35f234(0x16f)](_0x2f521c);if(!_0x489f6a)return;this['_updateURLWithCurrentState'](_0x489f6a,!![]),await this[_0x35f234(0x168)]['executeCommand'](SetWorksheetActivateCommand['id'],{'unitId':_0x37211a[_0x35f234(0x129)](),'subUnitId':_0x2f521c});return;}if(((_0x5aaad3=_0x37211a['getActiveSheet']())===null||_0x5aaad3===void 0x0?void 0x0:_0x5aaad3[_0x35f234(0x107)]())===_0x50fb2c)return;await this[_0x35f234(0x168)][_0x35f234(0xec)](SetWorksheetActivateCommand['id'],{'unitId':_0x37211a[_0x35f234(0x129)](),'subUnitId':_0x50fb2c});}};HistoryLoaderController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager)),__decorateParam(0x3,Inject(HistoryLoaderService)),__decorateParam(0x4,Inject(LocaleService)),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(CollaborationController)),__decorateParam(0x7,ILocalCacheService),__decorateParam(0x8,Inject(DataLoaderService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,IURLService)],HistoryLoaderController);let UniverEditHistoryLoaderPlugin=class UniverEditHistoryLoaderPlugin extends Plugin{constructor(_0x40188f=defaultPluginConfig,_0x583437,_0x388f42){const _0x2ed446=_0x126485;super(),this[_0x2ed446(0x13e)]=_0x40188f,this[_0x2ed446(0xfd)]=_0x583437,this[_0x2ed446(0x185)]=_0x388f42;const {menu:_0x220763,..._0xf63c44}=merge({},defaultPluginConfig,this[_0x2ed446(0x13e)]);if(_0x220763)this[_0x2ed446(0x185)][_0x2ed446(0x177)](_0x2ed446(0xe3),_0x220763,{'merge':!![]});this['_configService']['setConfig'](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0xf63c44);if(this[_0x2ed446(0x13e)]['univerContainerId'])this[_0x2ed446(0x185)]['setConfig'](UNIVER_CONTAINER_ID_KEY,this[_0x2ed446(0x13e)]['univerContainerId']);}['onStarting'](){const _0x24cb65=_0x126485;[[HistoryLoaderService],[HistoryLoaderController]][_0x24cb65(0x167)](_0x49e9ea=>this[_0x24cb65(0xfd)][_0x24cb65(0x14c)](_0x49e9ea));}[_0x126485(0x150)](){const _0x15f4af=_0x126485;this[_0x15f4af(0xfd)][_0x15f4af(0x16a)](HistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderPlugin,_0x126485(0x13a),UniverInstanceType[_0x126485(0x198)]),_defineProperty(UniverEditHistoryLoaderPlugin,_0x126485(0x138),_0x126485(0x123)),_defineProperty(UniverEditHistoryLoaderPlugin,_0x126485(0x174),name),_defineProperty(UniverEditHistoryLoaderPlugin,_0x126485(0x10c),version),UniverEditHistoryLoaderPlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderPlugin);export{EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,HistoryLoaderService,MobileHistoryLoaderService,ToggleEditHistoryOperation,UNIVER_CONTAINER_ID_KEY,UNIVER_HISTORY_CONTAINER_ID,UniverEditHistoryLoaderMobilePlugin,UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x257921=_0x19ba;(function(_0x301c74,_0x38e099){const _0x1ac701=_0x19ba,_0x10ea76=_0x301c74();while(!![]){try{const _0x3a95f7=-parseInt(_0x1ac701(0x223))/0x1+parseInt(_0x1ac701(0x28f))/0x2+parseInt(_0x1ac701(0x1fd))/0x3*(-parseInt(_0x1ac701(0x213))/0x4)+parseInt(_0x1ac701(0x233))/0x5+-parseInt(_0x1ac701(0x1f3))/0x6+parseInt(_0x1ac701(0x21f))/0x7+-parseInt(_0x1ac701(0x238))/0x8*(-parseInt(_0x1ac701(0x29d))/0x9);if(_0x3a95f7===_0x38e099)break;else _0x10ea76['push'](_0x10ea76['shift']());}catch(_0x14bed0){_0x10ea76['push'](_0x10ea76['shift']());}}}(_0x541a,0x90797));import{CommandType as _0x487ef2,DependentOn as _0x219475,Disposable as _0x8532c1,DisposableCollection as _0xc6dfe0,IAuthzIoService as _0x53d29b,ICommandService as _0x3b2fe9,IConfigService as _0x119b2,IPermissionService as _0x1c5768,IUniverInstanceService as _0x430938,Inject as _0x3d4214,Injector as _0x4f86b8,LocaleService as _0x316b33,Plugin as _0x30cf8f,RxDisposable as _0x3c2c30,ThemeService as _0x24cb5d,Univer as _0x481fbd,UniverInstanceType as _0x7184d6,Workbook as _0x26a77f,merge as _0x3bca78,toDisposable as _0x1ecd9a}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x540a05,RangeProtectionRuleModel as _0x333165,SetWorksheetActivateCommand as _0x4bdacf,UniverSheetsPlugin as _0x43ef5f,WorkbookEditablePermission as _0x4417ae,WorkbookRecoverHistoryPermission as _0x4b7b3a,WorkbookViewHistoryPermission as _0x2b5fc9,WorksheetEditPermission as _0x5e4e77,getSheetCommandTarget as _0x1932cf}from'@univerjs/sheets';import{CollaborationEvent as _0x5089a1,RevertRevisionMutation as _0x305fa9,UniverCollaborationPlugin as _0x180f1c}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x1317a3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x464cfe,CollaborationController as _0x1e0d39,CollaborationStatus as _0x4aeda6,DataLoaderService as _0x5d6713,ILocalCacheService as _0x58623b}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x406ca6,HistoryModeStatus as _0x167a98,UniverEditHistoryViewerMobilePlugin as _0x1dd4cd,UniverEditHistoryViewerPlugin as _0x136f43}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x51215c,UniverLicensePlugin as _0x433b30}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x36d825}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xdcd56}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x2231ca}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x2b6158}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x58425d}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x1259f5}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x12fa8b}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x21e9e3}from'@univerjs/data-validation';import{MessageType as _0x4345b3}from'@univerjs/design';import{UniverDocsPlugin as _0x2ff728}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x160fb4}from'@univerjs/docs-ui';import{IImageIoService as _0x17417a,UniverDrawingPlugin as _0x2a38b3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xcaf6d6}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x416a48}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x1304a6}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x31aea4}from'@univerjs/network';import{IRemoteInstanceService as _0x1a1eb4,UniverRPCMainThreadPlugin as _0x268139}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x9547e1}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0xc5eb87}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x41761e}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x26aae3,UniverSheetsDataValidationUIPlugin as _0x4ba7dd}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x4aa64a}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x4dc158}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x2a46c0}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x9ba918}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x3996e3}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x590736}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xf16f54}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xd5ed6c}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x543260}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x5edda3}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x3fdb79,UniverSheetsUIPlugin as _0x2a275b,getCurrentRangeDisable$ as _0x40236d}from'@univerjs/sheets-ui';import{ComponentManager as _0x592985,IDialogService as _0x1c3bd2,IMenuManagerService as _0x5cc3ae,IMessageService as _0x2b6969,ISidebarService as _0x1e4f29,MenuItemType as _0x5def46,RibbonStartGroup as _0x51bab3,UniverMobileUIPlugin as _0x434778,UniverUIPlugin as _0x40a805,getMenuHiddenObservable as _0x403dda}from'@univerjs/ui';import{BehaviorSubject as _0x50afba,combineLatest as _0xa79016,takeUntil as _0xb434a3}from'rxjs';function _0x541a(){const _0x3d9110=['block','flat','100%','historyPanelHidden','univerContainerId','onSteady','getActiveSheet','getElementById','_collaborationController','UNIVER_UNKNOWN','univer.operation.exit-edit-history','object','symbol','_localeService','Exited','_handleRevertAcknowledgement','location','SYNCED','OTHERS','type','composePermission','width','close','getAllPlugins','_initListener','session','left','getUnhiddenWorksheets','some','getCollabEntity','registerPlugin','set','_localCacheService','onStarting','reload','_messageService','permissionId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromCollab','mergeMenu','unMountHistoryContent','setConfig','_initContainer','unsubscribe','_injector','closeAll','_componentManager','UNIVER_SHEET','subscribe','has','_dataLoaderService','_selectionProtectionRuleModel','revertRevision$','dataset','executeCommand','asObservable','event$','params','constructor','onCommandExecuted','style','_disposableCollection','eventID','exhaustSavingTask','data','historyUniver$','_menuManagerService','_permissionService','_revertErrorTimer','Entered','_updateSubUnitFromURLParams','editHistory.panel.revertFailed','historyListServerUrl','zIndex','clear','_themeService','_initUniver','_historyManagerService','height','get','historyAIassistantEnabled','top','length','mountHistoryContent','setLocale','711580ZelWzG','position','uComp','add','then','history-container','setDarkMode','_checkCanRevert','_historyUniver$','pluginName','_urlService','getUnitId','defineProperty','historyPanelComponentKey','8900811NRqokW','_setupSubUnitSync','_univerInstanceService','whenReady','version','HistoryIcon','invoke','default','absolute','_initPlugins','menu','_internalWebWorker','mutations','from','function','getSubunitRuleList','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','disposeUnit','setTheme','historyUniver','_dialogService','loadUnit','1847376elmpYh','string','subunit','univer-container','state$','univer-history-container-mobile','dispose','CHANGESET_ACK','getSheetBySheetId','Loading','1330620zxWUdO','getUnit','editHistory.info.initializing','0.20.1','getParam','edit-history-loader.config','getCurrentLocale','every','div','_sidebarService','toPrimitive','_config','map','dispose$','UNIVER_CONTAINER_ID','editHistory.panel.reverting','_configService','forEach','status$','status','show','appendChild','8uOgeFi','prototype','getConfig','next','editHistory.panel.listFetchError','getSheetId','_pluginMap','decorate','pipe','value','removeAll','createElement','7244272xfMcTo','workerURL','Error','getLocales','618478hlasNS','_init','none','_updateURLWithCurrentState','register','disposeWithMe','__getInjector','OPERATION','triggerLoadVersions','call','editHistory.panel.title','packageName','triggerCustomVersions','currentTheme$','BUTTON','display','127780drTPNZ','setParam','getSheets','_commandService','univer.operation.toggle-edit-history','8eWSUBQ','values'];_0x541a=function(){return _0x3d9110;};return _0x541a();}import{IURLService as _0x117d1f}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x1741d5}from'@univerjs/icons';import{UniverType as _0x1501c2}from'@univerjs/protocol';const L=_0x257921(0x202);Symbol(L);const R={};function z(_0x270b41){'@babel/helpers - typeof';const _0x15d2e7=_0x257921;return z=typeof Symbol==_0x15d2e7(0x1eb)&&typeof Symbol['iterator']=='symbol'?function(_0x1639f9){return typeof _0x1639f9;}:function(_0x25bea2){const _0x5ab393=_0x15d2e7;return _0x25bea2&&typeof Symbol==_0x5ab393(0x1eb)&&_0x25bea2[_0x5ab393(0x274)]===Symbol&&_0x25bea2!==Symbol[_0x5ab393(0x214)]?_0x5ab393(0x246):typeof _0x25bea2;},z(_0x270b41);}function ot(_0x2ab369,_0x3ae845){const _0x135dc6=_0x257921;if(z(_0x2ab369)!=_0x135dc6(0x245)||!_0x2ab369)return _0x2ab369;var _0x59b6d0=_0x2ab369[Symbol[_0x135dc6(0x207)]];if(_0x59b6d0!==void 0x0){var _0x3324df=_0x59b6d0[_0x135dc6(0x22c)](_0x2ab369,_0x3ae845||_0x135dc6(0x1e4));if(z(_0x3324df)!='object')return _0x3324df;throw TypeError(_0x135dc6(0x25f));}return(_0x3ae845===_0x135dc6(0x1f4)?String:Number)(_0x2ab369);}function st(_0x2be02b){const _0xc31033=_0x257921;var _0x15bdd0=ot(_0x2be02b,'string');return z(_0x15bdd0)==_0xc31033(0x246)?_0x15bdd0:_0x15bdd0+'';}function B(_0x280f97,_0x25de66,_0x4c7f85){const _0x197e31=_0x257921;return(_0x25de66=st(_0x25de66))in _0x280f97?Object[_0x197e31(0x29b)](_0x280f97,_0x25de66,{'value':_0x4c7f85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x280f97[_0x25de66]=_0x4c7f85,_0x280f97;}function V(_0xa85f2a,_0x13f6ea){return function(_0x2b9d33,_0xfaf740){_0x13f6ea(_0x2b9d33,_0xfaf740,_0xa85f2a);};}function H(_0x6712da,_0x33c122,_0x16c5e3,_0x198c53){const _0x49d654=_0x257921;var _0x1ec346=arguments['length'],_0x2d7021=_0x1ec346<0x3?_0x33c122:_0x198c53===null?_0x198c53=Object['getOwnPropertyDescriptor'](_0x33c122,_0x16c5e3):_0x198c53,_0x188c3d;if(typeof Reflect==_0x49d654(0x245)&&typeof Reflect[_0x49d654(0x21a)]=='function')_0x2d7021=Reflect[_0x49d654(0x21a)](_0x6712da,_0x33c122,_0x16c5e3,_0x198c53);else{for(var _0x365ac9=_0x6712da[_0x49d654(0x28c)]-0x1;_0x365ac9>=0x0;_0x365ac9--)(_0x188c3d=_0x6712da[_0x365ac9])&&(_0x2d7021=(_0x1ec346<0x3?_0x188c3d(_0x2d7021):_0x1ec346>0x3?_0x188c3d(_0x33c122,_0x16c5e3,_0x2d7021):_0x188c3d(_0x33c122,_0x16c5e3))||_0x2d7021);}return _0x1ec346>0x3&&_0x2d7021&&Object[_0x49d654(0x29b)](_0x33c122,_0x16c5e3,_0x2d7021),_0x2d7021;}const U='UNIVER_CONTAINER_ID',W='univer-history-container';let G=class extends _0x8532c1{constructor(_0x1ef0f1,_0x2e034e,_0x5baa9b,_0x21ad5b,_0x4aa1a4,_0x5c214e,_0x34f9a6,_0x4015b8,_0x3fc4e5,_0x59d3aa){const _0x2e03d9=_0x257921;super(),this[_0x2e03d9(0x247)]=_0x1ef0f1,this[_0x2e03d9(0x29f)]=_0x2e034e,this['_configService']=_0x5baa9b,this[_0x2e03d9(0x236)]=_0x21ad5b,this[_0x2e03d9(0x25d)]=_0x4aa1a4,this[_0x2e03d9(0x27d)]=_0x5c214e,this[_0x2e03d9(0x26d)]=_0x34f9a6,this[_0x2e03d9(0x1f1)]=_0x4015b8,this['_sidebarService']=_0x3fc4e5,this['_themeService']=_0x59d3aa,B(this,'_historyUniver$',new _0x50afba(null)),B(this,'historyUniver$',this[_0x2e03d9(0x297)][_0x2e03d9(0x271)]()),B(this,'_disposableCollection',new _0xc6dfe0()),B(this,_0x2e03d9(0x219),new Map()),B(this,_0x2e03d9(0x1e8),null),this[_0x2e03d9(0x224)]();}get[_0x257921(0x1f0)](){const _0x58ca17=_0x257921;return this['_historyUniver$'][_0x58ca17(0x21c)];}[_0x257921(0x224)](){const _0x1cab03=_0x257921;this[_0x1cab03(0x264)](),this[_0x1cab03(0x1e6)]();}[_0x257921(0x264)](){const _0x2b9cc9=_0x257921;var _0x42a44a;let _0x26eb80=(_0x42a44a=this[_0x2b9cc9(0x20d)][_0x2b9cc9(0x215)](_0x2b9cc9(0x20b)))==null?_0x2b9cc9(0x1f6):_0x42a44a,_0x934a78=document['getElementById'](_0x26eb80);if(!_0x934a78)return;let _0x134aaf=document['createElement'](_0x2b9cc9(0x205));_0x134aaf['id']=W,_0x134aaf[_0x2b9cc9(0x26f)][_0x2b9cc9(0x291)]=_0x2b9cc9(0x294),_0x134aaf[_0x2b9cc9(0x276)][_0x2b9cc9(0x290)]=_0x2b9cc9(0x1e5),_0x134aaf['style']['top']='0',_0x134aaf[_0x2b9cc9(0x276)][_0x2b9cc9(0x254)]='0',_0x134aaf['style'][_0x2b9cc9(0x24f)]=_0x2b9cc9(0x23c),_0x134aaf['style'][_0x2b9cc9(0x288)]=_0x2b9cc9(0x23c),_0x134aaf[_0x2b9cc9(0x276)]['zIndex']='49',_0x134aaf[_0x2b9cc9(0x276)]['display']='none',_0x934a78[_0x2b9cc9(0x212)](_0x134aaf);}[_0x257921(0x1e6)](){const _0x213589=_0x257921;[[_0x1304a6],[_0x40a805,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1c3bd2,null]]}],[_0x31aea4],[_0x2a38b3,{'override':[[_0x17417a,null]]}],[_0x2ff728,{'hasScroll':!0x1}],[_0x160fb4],[_0x543260],[_0x43ef5f,{'notExecuteFormula':!0x0}],[_0x2a275b],[_0x3996e3],[_0x590736],[_0x180f1c],[_0x2a46c0],[_0x9ba918],[_0x9547e1],[_0xc5eb87],[_0xf16f54],[_0xd5ed6c],[_0x21e9e3],[_0x41761e],[_0x4ba7dd],[_0x416a48,{'notExecuteFormula':!0x0}],[_0xcaf6d6],[_0x4aa64a],[_0x4dc158],[_0x1259f5],[_0x12fa8b],[_0x36d825],[_0xdcd56],[_0x2b6158],[_0x58425d],[_0x2231ca,{'notExecuteFormula':!0x0}],[_0x5edda3]][_0x213589(0x20e)](([_0x1e0eae,_0x3c4295])=>this[_0x213589(0x258)](_0x1e0eae,_0x3c4295));}[_0x257921(0x1f9)](){const _0x112d25=_0x257921;super[_0x112d25(0x1f9)](),this[_0x112d25(0x262)](),this[_0x112d25(0x219)][_0x112d25(0x284)]();}[_0x257921(0x258)](_0x2a7f48,_0x434f31,_0x310c2c){const _0x164a9a=_0x257921;if(this[_0x164a9a(0x219)][_0x164a9a(0x26b)](_0x2a7f48[_0x164a9a(0x298)])&&!_0x310c2c)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x2a7f48[_0x164a9a(0x298)]+'\x20has\x20been\x20registered.');this['_pluginMap']['set'](_0x2a7f48['pluginName'],[_0x2a7f48,_0x434f31]);}[_0x257921(0x251)](){const _0x524a3c=_0x257921;return Array[_0x524a3c(0x1ea)](this[_0x524a3c(0x219)]['values']());}[_0x257921(0x28d)](_0x77558c,_0x54dd99){const _0x543bfa=_0x257921;let _0x83a7d3=document[_0x543bfa(0x241)](W);_0x83a7d3&&(_0x83a7d3['style'][_0x543bfa(0x232)]=_0x543bfa(0x23a),this[_0x543bfa(0x286)](_0x77558c,W,_0x54dd99));}[_0x257921(0x262)](){const _0xcb7a9d=_0x257921;var _0x5f5a0c;this[_0xcb7a9d(0x277)][_0xcb7a9d(0x1f9)](),(_0x5f5a0c=this[_0xcb7a9d(0x1f0)])==null||_0x5f5a0c['dispose'](),this['_historyUniver$'][_0xcb7a9d(0x216)](null);let _0x280257=document[_0xcb7a9d(0x241)](W);_0x280257&&(_0x280257[_0xcb7a9d(0x276)][_0xcb7a9d(0x232)]=_0xcb7a9d(0x225),this[_0xcb7a9d(0x1e8)]&&(this['_internalWebWorker']['terminate'](),this[_0xcb7a9d(0x1e8)]=null));}['_initUniver'](_0x174c68,_0x126bd1,_0x190c66){const _0x441fe4=_0x257921;var _0x30eadf,_0xb639c2,_0xbbe029,_0x152b2a,_0xec1ecc;if(this[_0x441fe4(0x1f0)])return;let _0x27024a=new _0x481fbd({'locales':{[this[_0x441fe4(0x247)]['getCurrentLocale']()]:this[_0x441fe4(0x247)]['getLocales']()},'override':[[_0x53d29b,{'useClass':_0x1317a3}]]}),_0x3c8bd8=_0x27024a[_0x441fe4(0x229)]();this[_0x441fe4(0x228)](this[_0x441fe4(0x285)]['darkMode$']['subscribe'](_0x5ab8e8=>{const _0x37cea9=_0x441fe4;_0x3c8bd8[_0x37cea9(0x289)](_0x24cb5d)[_0x37cea9(0x295)](_0x5ab8e8);})),this[_0x441fe4(0x228)](this[_0x441fe4(0x285)][_0x441fe4(0x230)][_0x441fe4(0x26a)](_0x540c41=>{const _0x24655b=_0x441fe4;_0x3c8bd8[_0x24655b(0x289)](_0x24cb5d)[_0x24655b(0x1ef)](_0x540c41);})),_0x3c8bd8['get'](_0x316b33)[_0x441fe4(0x28e)](this[_0x441fe4(0x247)][_0x441fe4(0x203)]()),_0x3c8bd8[_0x441fe4(0x289)](_0x119b2)[_0x441fe4(0x263)](_0x464cfe,this[_0x441fe4(0x20d)]['getConfig'](_0x464cfe));let _0x34d012=this[_0x441fe4(0x20d)]['getConfig'](_0x51215c);_0x34d012&&_0x27024a['registerPlugin'](_0x433b30,{'license':_0x34d012['ls']});let _0x763b8=(_0x30eadf=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0x30eadf[_0x441fe4(0x220)],_0x56624d=!!_0x763b8;_0x56624d&&(this[_0x441fe4(0x1e8)]=_0x763b8 instanceof Worker?_0x763b8:null,_0x27024a['registerPlugin'](_0x268139,{'workerURL':_0x763b8})),this[_0x441fe4(0x219)][_0x441fe4(0x20e)](([_0x31bc84,_0x52f94f])=>{const _0x7ea64a=_0x441fe4;_0x27024a[_0x7ea64a(0x258)](_0x31bc84,_0x52f94f);}),_0x27024a[_0x441fe4(0x258)](_0x136f43,{'historyListServerUrl':(_0xb639c2=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0xb639c2[_0x441fe4(0x282)],'historyPanelComponentKey':(_0xbbe029=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0xbbe029[_0x441fe4(0x29c)],'historyPanelHidden':(_0x152b2a=this[_0x441fe4(0x20d)]['getConfig'](_0x441fe4(0x202)))==null?void 0x0:_0x152b2a[_0x441fe4(0x23d)],'historyAIassistantEnabled':(_0xec1ecc=this[_0x441fe4(0x20d)][_0x441fe4(0x215)]('edit-history-loader.config'))==null?void 0x0:_0xec1ecc[_0x441fe4(0x28a)]}),_0x3c8bd8[_0x441fe4(0x2a3)](_0x2776ed=>{this['_initListener'](_0x2776ed,_0x174c68);}),this[_0x441fe4(0x297)][_0x441fe4(0x216)](_0x27024a);let _0x279f67=_0x3c8bd8[_0x441fe4(0x289)](_0x406ca6),_0x574c26=this[_0x441fe4(0x296)](_0x174c68),_0x4b317c=()=>{const _0x552c0b=_0x441fe4;_0x190c66?_0x279f67[_0x552c0b(0x22f)](_0x174c68,_0x126bd1,_0x574c26,_0x190c66):_0x279f67[_0x552c0b(0x22b)](_0x174c68,_0x126bd1,_0x574c26);};if(this[_0x441fe4(0x25d)]['show']({'content':this[_0x441fe4(0x247)]['t'](_0x441fe4(0x1ff)),'type':_0x4345b3['Loading']}),_0x56624d)try{_0x3c8bd8[_0x441fe4(0x289)](_0x1a1eb4)[_0x441fe4(0x2a0)]()[_0x441fe4(0x293)](()=>{_0x4b317c();});}catch{_0x4b317c();}else _0x4b317c();}['_initListener'](_0x5177f5,_0x3327c5){const _0x226203=_0x257921;let _0x6b7ec2=_0x5177f5[_0x226203(0x289)](_0x406ca6);this[_0x226203(0x277)][_0x226203(0x292)](_0x6b7ec2[_0x226203(0x20f)][_0x226203(0x26a)](_0x921626=>{const _0x3b0790=_0x226203;switch(_0x921626){case _0x167a98[_0x3b0790(0x27f)]:this[_0x3b0790(0x1f1)]['closeAll'](),this[_0x3b0790(0x206)][_0x3b0790(0x250)]();break;case _0x167a98[_0x3b0790(0x248)]:this['_commandService'][_0x3b0790(0x270)](q['id']),this['unMountHistoryContent']();break;case _0x167a98[_0x3b0790(0x221)]:this[_0x3b0790(0x262)](),this['_messageService'][_0x3b0790(0x211)]({'content':this['_localeService']['t'](_0x3b0790(0x217)),'type':_0x4345b3[_0x3b0790(0x221)],'duration':0xbb8});break;default:break;}})),this[_0x226203(0x277)][_0x226203(0x292)](_0x6b7ec2[_0x226203(0x26e)]['subscribe'](async _0x38240b=>{_0x38240b&&this['_commandService']['executeCommand'](_0x305fa9['id'],{'unitId':_0x3327c5,'revision':_0x38240b});}));}[_0x257921(0x296)](_0x5ec881){const _0x50b3f8=_0x257921;let _0x230e31=this[_0x50b3f8(0x29f)][_0x50b3f8(0x1fe)](_0x5ec881)[_0x50b3f8(0x235)]()['map'](_0xbbd350=>_0xbbd350[_0x50b3f8(0x218)]()),_0x5a1066=new _0x4417ae(_0x5ec881)['id'],_0x10c7d8=_0x230e31[_0x50b3f8(0x209)](_0x59ec80=>new _0x5e4e77(_0x5ec881,_0x59ec80)['id']),_0x462488=_0x230e31['map'](_0x351cbb=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x5ec881,_0x351cbb)[_0x50b3f8(0x209)](_0xaaff16=>new _0x540a05(_0x5ec881,_0x351cbb,_0xaaff16[_0x50b3f8(0x25e)])['id']))[_0x50b3f8(0x23b)](),_0x119c30=new _0x4b7b3a(_0x5ec881)['id'];return this['_permissionService']['composePermission']([_0x5a1066,..._0x10c7d8,..._0x462488,_0x119c30])[_0x50b3f8(0x204)](_0x591cd8=>!!_0x591cd8[_0x50b3f8(0x21c)]);}};G=H([V(0x0,_0x3d4214(_0x316b33)),V(0x1,_0x430938),V(0x2,_0x119b2),V(0x3,_0x3b2fe9),V(0x4,_0x2b6969),V(0x5,_0x1c5768),V(0x6,_0x3d4214(_0x333165)),V(0x7,_0x3d4214(_0x1c3bd2)),V(0x8,_0x3d4214(_0x1e4f29)),V(0x9,_0x3d4214(_0x24cb5d))],G);const K={'id':_0x257921(0x237),'type':_0x487ef2['OPERATION'],'handler':_0x5d407c=>{const _0x29aaab=_0x257921;let _0x3d7d8b=_0x5d407c['get'](G),{unitId:_0x5e9add}=_0x1932cf(_0x5d407c[_0x29aaab(0x289)](_0x430938))||{};return _0x5e9add?(_0x3d7d8b[_0x29aaab(0x28d)](_0x5e9add),!0x0):!0x1;}},q={'id':_0x257921(0x244),'type':_0x487ef2[_0x257921(0x22a)],'handler':()=>!0x0};var ct='@univerjs-pro/edit-history-loader',lt=_0x257921(0x200);function ut(_0x3be0a3){const _0x3ac66e=_0x257921;return{'id':K['id'],'type':_0x5def46[_0x3ac66e(0x231)],'icon':'HistoryIcon','tooltip':_0x3ac66e(0x22d),'hidden$':_0x403dda(_0x3be0a3,_0x7184d6[_0x3ac66e(0x269)]),'disabled$':_0x40236d(_0x3be0a3,{'workbookTypes':[_0x2b5fc9],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x51bab3[_0x257921(0x24c)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x3c2c30{constructor(_0x2202f8,_0x259120,_0x3c1839,_0x5ba99d,_0xb432f1,_0x3db589,_0x287978,_0x55bf28,_0x170934,_0x568ee5,_0xea7df4){const _0x3ef6ad=_0x257921;super(),this[_0x3ef6ad(0x236)]=_0x2202f8,this['_menuManagerService']=_0x259120,this[_0x3ef6ad(0x268)]=_0x3c1839,this[_0x3ef6ad(0x287)]=_0x5ba99d,this['_localeService']=_0xb432f1,this['_messageService']=_0x3db589,this[_0x3ef6ad(0x242)]=_0x287978,this[_0x3ef6ad(0x25a)]=_0x55bf28,this[_0x3ef6ad(0x26c)]=_0x170934,this[_0x3ef6ad(0x29f)]=_0x568ee5,this[_0x3ef6ad(0x299)]=_0xea7df4,B(this,_0x3ef6ad(0x27e),null),this['_init']();}[_0x257921(0x224)](){const _0x4dd03d=_0x257921;[K,q]['forEach'](_0x3bc8ff=>this[_0x4dd03d(0x228)](_0x1ecd9a(this[_0x4dd03d(0x236)]['registerCommand'](_0x3bc8ff)))),this['disposeWithMe'](this[_0x4dd03d(0x268)][_0x4dd03d(0x227)](_0x4dd03d(0x2a2),_0x1741d5)),this['_menuManagerService']['mergeMenu'](dt),this[_0x4dd03d(0x228)](this[_0x4dd03d(0x236)]['onCommandExecuted'](async(_0x12c784,_0x3046af)=>{const _0x1d1f72=_0x4dd03d;if(_0x12c784['id']===_0x305fa9['id']){let {unitId:_0x75fe9d}=_0x12c784[_0x1d1f72(0x273)];this[_0x1d1f72(0x25d)][_0x1d1f72(0x211)]({'content':this[_0x1d1f72(0x247)]['t'](_0x1d1f72(0x20c)),'type':_0x4345b3['Loading'],'duration':0x1388});let _0x17004d=this[_0x1d1f72(0x242)]['getCollabEntity'](_0x75fe9d);_0x3046af!=null&&_0x3046af[_0x1d1f72(0x260)]?this[_0x1d1f72(0x249)](_0x17004d,async()=>(setTimeout(()=>window[_0x1d1f72(0x24a)][_0x1d1f72(0x25c)]()),!0x0),!0x0):this[_0x1d1f72(0x249)](_0x17004d,async()=>{const _0x414900=_0x1d1f72;let _0x1d008a=this[_0x414900(0x29f)]['getCurrentUnitOfType'](_0x1501c2['UNIVER_SHEET']),_0x542c6f=_0x1d008a==null?void 0x0:_0x1d008a['getActiveSheet']();if(!_0x542c6f)return!0x1;this[_0x414900(0x29f)][_0x414900(0x1ee)](_0x75fe9d);let _0x47b8fd=await this[_0x414900(0x26c)]['loadUnit'](_0x75fe9d,_0x1501c2[_0x414900(0x269)]);return _0x47b8fd&&_0x47b8fd instanceof _0x26a77f?(await this[_0x414900(0x29e)](_0x47b8fd,_0x542c6f[_0x414900(0x218)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x39e9a6,_0x3017b9,_0x1fae22=!0x1){const _0x434530=_0x257921;let _0x319705=_0xa79016([_0x39e9a6[_0x434530(0x253)][_0x434530(0x272)],_0x39e9a6[_0x434530(0x1f7)]])[_0x434530(0x26a)](async([_0xa262be,_0xcb2de3])=>{const _0x3340bd=_0x434530;if(_0xa262be['eventID']===_0x5089a1[_0x3340bd(0x1fa)]&&(_0xcb2de3==null?void 0x0:_0xcb2de3[_0x3340bd(0x210)])===_0x4aeda6[_0x3340bd(0x24b)]&&_0xa262be[_0x3340bd(0x27a)][_0x3340bd(0x1e9)][_0x3340bd(0x256)](_0x1a3dfb=>_0x1a3dfb['id']===_0x305fa9['id'])&&await _0x3017b9()){var _0x2430d9;this['_historyManagerService'][_0x3340bd(0x262)](),_0x319705[_0x3340bd(0x265)](),this[_0x3340bd(0x27e)]&&clearTimeout(this[_0x3340bd(0x27e)]),await((_0x2430d9=this['_localCacheService'])==null?void 0x0:_0x2430d9[_0x3340bd(0x279)]()),this['_messageService'][_0x3340bd(0x21d)]();}});_0x1fae22&&(this[_0x434530(0x27e)]=setTimeout(()=>{const _0x550f5d=_0x434530;_0x319705[_0x550f5d(0x265)](),this['_messageService'][_0x550f5d(0x211)]({'content':this[_0x550f5d(0x247)]['t'](_0x550f5d(0x281)),'type':_0x4345b3['Error'],'duration':0xbb8});},0x1388));}async[_0x257921(0x29e)](_0x38eefd,_0x495672){const _0x3d0d48=_0x257921;await this[_0x3d0d48(0x280)](_0x38eefd,_0x495672),_0x38eefd['activeSheet$'][_0x3d0d48(0x21b)](_0xb434a3(this[_0x3d0d48(0x20a)]))[_0x3d0d48(0x26a)](_0x4400d6=>{_0x4400d6&&this['_updateURLWithCurrentState'](_0x4400d6);}),this[_0x3d0d48(0x299)]['urlChange$']['pipe'](_0xb434a3(this[_0x3d0d48(0x20a)]))[_0x3d0d48(0x26a)](()=>this['_updateSubUnitFromURLParams'](_0x38eefd,_0x495672));}[_0x257921(0x226)](_0x3118f4,_0x3bc474=!0x1){const _0x12875f=_0x257921;let _0x30810f=this[_0x12875f(0x299)]['getParam'](_0x12875f(0x1f5));_0x3118f4[_0x12875f(0x218)]()!==_0x30810f&&this[_0x12875f(0x299)][_0x12875f(0x234)](_0x12875f(0x1f5),_0x3118f4[_0x12875f(0x218)](),_0x3bc474);}async[_0x257921(0x280)](_0x1156f6,_0x26f800){const _0x266ee0=_0x257921;var _0x4883af;if(!_0x26f800||!_0x1156f6[_0x266ee0(0x1fb)](_0x26f800)){let _0x34c010=_0x1156f6[_0x266ee0(0x255)]()[0x0],_0x33a3f9=_0x1156f6[_0x266ee0(0x1fb)](_0x34c010);if(!_0x33a3f9)return;this[_0x266ee0(0x226)](_0x33a3f9,!0x0),await this[_0x266ee0(0x236)][_0x266ee0(0x270)](_0x4bdacf['id'],{'unitId':_0x1156f6[_0x266ee0(0x29a)](),'subUnitId':_0x34c010});return;}((_0x4883af=_0x1156f6[_0x266ee0(0x240)]())==null?void 0x0:_0x4883af[_0x266ee0(0x218)]())!==_0x26f800&&await this['_commandService'][_0x266ee0(0x270)](_0x4bdacf['id'],{'unitId':_0x1156f6['getUnitId'](),'subUnitId':_0x26f800});}};function _0x19ba(_0x56af7c,_0x4ec7b0){_0x56af7c=_0x56af7c-0x1e4;const _0x541af4=_0x541a();let _0x19bad5=_0x541af4[_0x56af7c];return _0x19bad5;}J=H([V(0x0,_0x3b2fe9),V(0x1,_0x5cc3ae),V(0x2,_0x3d4214(_0x592985)),V(0x3,_0x3d4214(G)),V(0x4,_0x3d4214(_0x316b33)),V(0x5,_0x2b6969),V(0x6,_0x3d4214(_0x1e0d39)),V(0x7,_0x58623b),V(0x8,_0x3d4214(_0x5d6713)),V(0x9,_0x430938),V(0xa,_0x117d1f)],J);const Y=_0x257921(0x1f8);let X=class extends _0x8532c1{constructor(_0x516682,_0x4a771b,_0xd9dfd8,_0x5dac85,_0x13a0ad,_0x16557e,_0x181958,_0x468850,_0x5b4c58,_0x25336f){const _0x221515=_0x257921;super(),this[_0x221515(0x247)]=_0x516682,this['_univerInstanceService']=_0x4a771b,this[_0x221515(0x20d)]=_0xd9dfd8,this[_0x221515(0x236)]=_0x5dac85,this['_messageService']=_0x13a0ad,this[_0x221515(0x27d)]=_0x16557e,this['_selectionProtectionRuleModel']=_0x181958,this['_dialogService']=_0x468850,this[_0x221515(0x206)]=_0x5b4c58,this[_0x221515(0x285)]=_0x25336f,B(this,_0x221515(0x297),new _0x50afba(null)),B(this,_0x221515(0x27b),this['_historyUniver$'][_0x221515(0x271)]()),B(this,_0x221515(0x277),new _0xc6dfe0()),B(this,'_pluginMap',new Map()),B(this,_0x221515(0x1e8),null),this[_0x221515(0x224)]();}get['historyUniver'](){const _0x3947d5=_0x257921;return this['_historyUniver$'][_0x3947d5(0x21c)];}[_0x257921(0x224)](){const _0xbaa330=_0x257921;this[_0xbaa330(0x264)](),this['_initPlugins']();}['_initContainer'](){const _0x5c14ae=_0x257921;var _0x1b10fc;let _0x1d3afa=(_0x1b10fc=this['_configService'][_0x5c14ae(0x215)](_0x5c14ae(0x20b)))==null?_0x5c14ae(0x1f6):_0x1b10fc,_0x3d84e8=document['getElementById'](_0x1d3afa);if(!_0x3d84e8)return;let _0x1014fb=document[_0x5c14ae(0x21e)](_0x5c14ae(0x205));_0x1014fb['id']=Y,_0x1014fb[_0x5c14ae(0x26f)][_0x5c14ae(0x291)]=_0x5c14ae(0x294),_0x1014fb[_0x5c14ae(0x276)][_0x5c14ae(0x290)]='absolute',_0x1014fb['style'][_0x5c14ae(0x28b)]='0',_0x1014fb['style'][_0x5c14ae(0x254)]='0',_0x1014fb['style'][_0x5c14ae(0x24f)]='100%',_0x1014fb[_0x5c14ae(0x276)]['height']='100%',_0x1014fb[_0x5c14ae(0x276)][_0x5c14ae(0x283)]='49',_0x1014fb['style'][_0x5c14ae(0x232)]=_0x5c14ae(0x225),_0x3d84e8[_0x5c14ae(0x212)](_0x1014fb);}['_initPlugins'](){const _0x3d0713=_0x257921;[[_0x1304a6],[_0x434778,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1c3bd2,null]]}],[_0x31aea4],[_0x2a38b3,{'override':[[_0x17417a,null]]}],[_0x2ff728,{'hasScroll':!0x1}],[_0x160fb4],[_0x543260],[_0x43ef5f,{'notExecuteFormula':!0x0}],[_0x3fdb79],[_0x3996e3],[_0x590736],[_0x180f1c],[_0x2a46c0],[_0x9547e1],[_0xf16f54],[_0xd5ed6c],[_0x21e9e3],[_0x41761e],[_0x26aae3],[_0x416a48,{'notExecuteFormula':!0x0}],[_0xcaf6d6],[_0x4aa64a],[_0x4dc158],[_0x1259f5],[_0x12fa8b],[_0x36d825],[_0xdcd56],[_0x2b6158],[_0x58425d],[_0x2231ca,{'notExecuteFormula':!0x0}],[_0x5edda3]][_0x3d0713(0x20e)](([_0x2e5ba5,_0x195721])=>this[_0x3d0713(0x258)](_0x2e5ba5,_0x195721));}[_0x257921(0x1f9)](){const _0xab3aa4=_0x257921;super[_0xab3aa4(0x1f9)](),this[_0xab3aa4(0x262)](),this[_0xab3aa4(0x219)]['clear']();}['registerPlugin'](_0x5f4aff,_0x12444b,_0x36b88a){const _0x15c40a=_0x257921;if(this[_0x15c40a(0x219)][_0x15c40a(0x26b)](_0x5f4aff[_0x15c40a(0x298)])&&!_0x36b88a)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x5f4aff['pluginName']+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x15c40a(0x259)](_0x5f4aff['pluginName'],[_0x5f4aff,_0x12444b]);}[_0x257921(0x251)](){const _0x2eeb89=_0x257921;return Array['from'](this[_0x2eeb89(0x219)][_0x2eeb89(0x239)]());}[_0x257921(0x28d)](_0x3f0402,_0x3003cc){const _0x11b898=_0x257921;let _0x54bd62=document['getElementById'](Y);_0x54bd62&&(_0x54bd62['style'][_0x11b898(0x232)]=_0x11b898(0x23a),this[_0x11b898(0x286)](_0x3f0402,Y,_0x3003cc));}['unMountHistoryContent'](){const _0xd74946=_0x257921;var _0x46e21a;this[_0xd74946(0x277)][_0xd74946(0x1f9)](),(_0x46e21a=this[_0xd74946(0x1f0)])==null||_0x46e21a['dispose'](),this[_0xd74946(0x297)][_0xd74946(0x216)](null);let _0x4caf6f=document[_0xd74946(0x241)](Y);_0x4caf6f&&(_0x4caf6f[_0xd74946(0x276)][_0xd74946(0x232)]=_0xd74946(0x225),this[_0xd74946(0x1e8)]&&(this[_0xd74946(0x1e8)]['terminate'](),this[_0xd74946(0x1e8)]=null));}[_0x257921(0x286)](_0x47fd9c,_0x14073a,_0x169589){const _0x31ac51=_0x257921;var _0x4b2f9a,_0x18765e,_0xe1f04d,_0x437cce;if(this[_0x31ac51(0x1f0)])return;let _0x1855f9=new _0x481fbd({'locales':{[this['_localeService'][_0x31ac51(0x203)]()]:this['_localeService'][_0x31ac51(0x222)]()},'override':[[_0x53d29b,{'useClass':_0x1317a3}]]}),_0x316dfb=_0x1855f9[_0x31ac51(0x229)]();this[_0x31ac51(0x228)](this['_themeService']['darkMode$'][_0x31ac51(0x26a)](_0x160ab1=>{const _0x3c9b04=_0x31ac51;_0x316dfb[_0x3c9b04(0x289)](_0x24cb5d)['setDarkMode'](_0x160ab1);})),this[_0x31ac51(0x228)](this[_0x31ac51(0x285)][_0x31ac51(0x230)][_0x31ac51(0x26a)](_0x3200b8=>{const _0x5bed5a=_0x31ac51;_0x316dfb[_0x5bed5a(0x289)](_0x24cb5d)[_0x5bed5a(0x1ef)](_0x3200b8);})),_0x316dfb[_0x31ac51(0x289)](_0x316b33)[_0x31ac51(0x28e)](this[_0x31ac51(0x247)][_0x31ac51(0x203)]()),_0x316dfb[_0x31ac51(0x289)](_0x119b2)[_0x31ac51(0x263)](_0x464cfe,this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x464cfe));let _0x1d1ef2=this['_configService'][_0x31ac51(0x215)](_0x51215c);_0x1d1ef2&&_0x1855f9['registerPlugin'](_0x433b30,{'license':_0x1d1ef2['ls']});let _0x17daeb=(_0x4b2f9a=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x4b2f9a[_0x31ac51(0x220)],_0x584176=!!_0x17daeb;_0x584176&&(this[_0x31ac51(0x1e8)]=_0x17daeb instanceof Worker?_0x17daeb:null,_0x1855f9[_0x31ac51(0x258)](_0x268139,{'workerURL':_0x17daeb})),this[_0x31ac51(0x219)][_0x31ac51(0x20e)](([_0x4eee14,_0x1ee228])=>{const _0x234a02=_0x31ac51;_0x1855f9[_0x234a02(0x258)](_0x4eee14,_0x1ee228);}),_0x1855f9['registerPlugin'](_0x1dd4cd,{'historyListServerUrl':(_0x18765e=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x18765e['historyListServerUrl'],'historyPanelComponentKey':(_0xe1f04d=this[_0x31ac51(0x20d)]['getConfig'](_0x31ac51(0x202)))==null?void 0x0:_0xe1f04d[_0x31ac51(0x29c)],'historyPanelHidden':(_0x437cce=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x437cce[_0x31ac51(0x23d)]}),_0x316dfb[_0x31ac51(0x2a3)](_0x268344=>{const _0x5055d5=_0x31ac51;this[_0x5055d5(0x252)](_0x268344,_0x47fd9c);}),this[_0x31ac51(0x297)][_0x31ac51(0x216)](_0x1855f9);let _0x4752a1=_0x316dfb[_0x31ac51(0x289)](_0x406ca6),_0x55a4f5=this[_0x31ac51(0x296)](_0x47fd9c),_0x2b75d9=()=>{const _0x2b1a61=_0x31ac51;_0x169589?_0x4752a1[_0x2b1a61(0x22f)](_0x47fd9c,_0x14073a,_0x55a4f5,_0x169589):_0x4752a1[_0x2b1a61(0x22b)](_0x47fd9c,_0x14073a,_0x55a4f5);};if(this[_0x31ac51(0x25d)][_0x31ac51(0x211)]({'content':this[_0x31ac51(0x247)]['t'](_0x31ac51(0x1ff)),'type':_0x4345b3[_0x31ac51(0x1fc)]}),_0x584176)try{_0x316dfb['get'](_0x1a1eb4)[_0x31ac51(0x2a0)]()[_0x31ac51(0x293)](()=>{_0x2b75d9();});}catch{_0x2b75d9();}else _0x2b75d9();}['_initListener'](_0x5609a0,_0x322a62){const _0x3adfb5=_0x257921;let _0x13bd4a=_0x5609a0[_0x3adfb5(0x289)](_0x406ca6);this[_0x3adfb5(0x277)]['add'](_0x13bd4a['status$'][_0x3adfb5(0x26a)](_0x4de4a6=>{const _0x2593c4=_0x3adfb5;switch(_0x4de4a6){case _0x167a98[_0x2593c4(0x27f)]:this[_0x2593c4(0x1f1)][_0x2593c4(0x267)](),this[_0x2593c4(0x206)]['close']();break;case _0x167a98['Exited']:this[_0x2593c4(0x236)][_0x2593c4(0x270)](q['id']),this[_0x2593c4(0x262)]();break;case _0x167a98['Error']:this[_0x2593c4(0x262)](),this[_0x2593c4(0x25d)][_0x2593c4(0x211)]({'content':this[_0x2593c4(0x247)]['t'](_0x2593c4(0x217)),'type':_0x4345b3[_0x2593c4(0x221)],'duration':0xbb8});break;default:break;}})),this[_0x3adfb5(0x277)][_0x3adfb5(0x292)](_0x13bd4a[_0x3adfb5(0x26e)][_0x3adfb5(0x26a)](async _0x2f8f1f=>{const _0x46e862=_0x3adfb5;_0x2f8f1f&&this[_0x46e862(0x236)][_0x46e862(0x270)](_0x305fa9['id'],{'unitId':_0x322a62,'revision':_0x2f8f1f});}));}[_0x257921(0x296)](_0x54d9fd){const _0x478992=_0x257921;let _0x58db9f=this[_0x478992(0x29f)][_0x478992(0x1fe)](_0x54d9fd)[_0x478992(0x235)]()[_0x478992(0x209)](_0x34f9c8=>_0x34f9c8[_0x478992(0x218)]()),_0x3c7ebe=new _0x4417ae(_0x54d9fd)['id'],_0x291b85=_0x58db9f[_0x478992(0x209)](_0x35787f=>new _0x5e4e77(_0x54d9fd,_0x35787f)['id']),_0x164f72=_0x58db9f[_0x478992(0x209)](_0x769727=>this[_0x478992(0x26d)][_0x478992(0x1ec)](_0x54d9fd,_0x769727)[_0x478992(0x209)](_0x5ba00f=>new _0x540a05(_0x54d9fd,_0x769727,_0x5ba00f['permissionId'])['id']))[_0x478992(0x23b)](),_0x17d9f0=new _0x4b7b3a(_0x54d9fd)['id'];return this['_permissionService'][_0x478992(0x24e)]([_0x3c7ebe,..._0x291b85,..._0x164f72,_0x17d9f0])[_0x478992(0x204)](_0x3e9aad=>!!_0x3e9aad[_0x478992(0x21c)]);}};X=H([V(0x0,_0x3d4214(_0x316b33)),V(0x1,_0x430938),V(0x2,_0x119b2),V(0x3,_0x3b2fe9),V(0x4,_0x2b6969),V(0x5,_0x1c5768),V(0x6,_0x3d4214(_0x333165)),V(0x7,_0x3d4214(_0x1c3bd2)),V(0x8,_0x3d4214(_0x1e4f29)),V(0x9,_0x3d4214(_0x24cb5d))],X);let Z=class extends _0x30cf8f{constructor(_0x179fec=R,_0x2c7635,_0x40854b){const _0x48832d=_0x257921;super(),this[_0x48832d(0x208)]=_0x179fec,this[_0x48832d(0x266)]=_0x2c7635,this[_0x48832d(0x20d)]=_0x40854b;let {menu:_0x36f484,..._0x24caba}=_0x3bca78({},R,this[_0x48832d(0x208)]);_0x36f484&&this[_0x48832d(0x20d)][_0x48832d(0x263)]('menu',_0x36f484,{'merge':!0x0}),this[_0x48832d(0x20d)]['setConfig'](L,_0x24caba),this[_0x48832d(0x208)][_0x48832d(0x23e)]&&this[_0x48832d(0x20d)]['setConfig'](_0x48832d(0x20b),this[_0x48832d(0x208)]['univerContainerId']);}['onStarting'](){const _0x43ba7e=_0x257921;[[G,{'useClass':X}],[J]][_0x43ba7e(0x20e)](_0x555cf0=>this[_0x43ba7e(0x266)][_0x43ba7e(0x292)](_0x555cf0));}['onSteady'](){const _0x3f521e=_0x257921;this['_injector'][_0x3f521e(0x289)](J);}};B(Z,_0x257921(0x24d),_0x7184d6['UNIVER_UNKNOWN']),B(Z,'pluginName','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x257921(0x22e),ct),B(Z,_0x257921(0x2a1),lt),Z=H([_0x219475(_0x433b30),V(0x1,_0x3d4214(_0x4f86b8)),V(0x2,_0x119b2)],Z);let Q=class extends _0x3c2c30{constructor(_0x4a9843,_0x1be514,_0x24d815,_0x4af8bd,_0x233b23,_0xe3371,_0x3de048,_0x2c4a41,_0x26e7cb,_0x236092,_0x7753b9){const _0x184416=_0x257921;super(),this[_0x184416(0x236)]=_0x4a9843,this[_0x184416(0x27c)]=_0x1be514,this[_0x184416(0x268)]=_0x24d815,this['_historyManagerService']=_0x4af8bd,this['_localeService']=_0x233b23,this[_0x184416(0x25d)]=_0xe3371,this[_0x184416(0x242)]=_0x3de048,this[_0x184416(0x25a)]=_0x2c4a41,this[_0x184416(0x26c)]=_0x26e7cb,this['_univerInstanceService']=_0x236092,this['_urlService']=_0x7753b9,B(this,'_revertErrorTimer',null),this[_0x184416(0x224)]();}[_0x257921(0x224)](){const _0x33ebfb=_0x257921;[K,q]['forEach'](_0x3cfa49=>this[_0x33ebfb(0x228)](_0x1ecd9a(this['_commandService']['registerCommand'](_0x3cfa49)))),this[_0x33ebfb(0x228)](this[_0x33ebfb(0x268)][_0x33ebfb(0x227)](_0x33ebfb(0x2a2),_0x1741d5)),this['_menuManagerService'][_0x33ebfb(0x261)](dt),this[_0x33ebfb(0x228)](this[_0x33ebfb(0x236)][_0x33ebfb(0x275)](async(_0x272866,_0x1fe3ac)=>{const _0x2ca786=_0x33ebfb;if(_0x272866['id']===_0x305fa9['id']){let {unitId:_0x85b934}=_0x272866[_0x2ca786(0x273)];this[_0x2ca786(0x25d)][_0x2ca786(0x211)]({'content':this[_0x2ca786(0x247)]['t'](_0x2ca786(0x20c)),'type':_0x4345b3['Loading'],'duration':0x1388});let _0x1e6f0c=this[_0x2ca786(0x242)][_0x2ca786(0x257)](_0x85b934);_0x1fe3ac!=null&&_0x1fe3ac[_0x2ca786(0x260)]?this[_0x2ca786(0x249)](_0x1e6f0c,async()=>(setTimeout(()=>window['location'][_0x2ca786(0x25c)]()),!0x0),!0x0):this[_0x2ca786(0x249)](_0x1e6f0c,async()=>{const _0x3d29a3=_0x2ca786;let _0x604c71=this[_0x3d29a3(0x29f)]['getCurrentUnitOfType'](_0x1501c2[_0x3d29a3(0x269)]),_0x5eafe8=_0x604c71==null?void 0x0:_0x604c71[_0x3d29a3(0x240)]();if(!_0x5eafe8)return!0x1;this[_0x3d29a3(0x29f)]['disposeUnit'](_0x85b934);let _0x660f46=await this[_0x3d29a3(0x26c)][_0x3d29a3(0x1f2)](_0x85b934,_0x1501c2['UNIVER_SHEET']);return _0x660f46&&_0x660f46 instanceof _0x26a77f?(await this[_0x3d29a3(0x29e)](_0x660f46,_0x5eafe8[_0x3d29a3(0x218)]()),!0x0):!0x1;});}}));}[_0x257921(0x249)](_0x50a68b,_0x6bb3bd,_0x4ef1ec=!0x1){const _0x8936a9=_0x257921;let _0x454e14=_0xa79016([_0x50a68b['session'][_0x8936a9(0x272)],_0x50a68b[_0x8936a9(0x1f7)]])[_0x8936a9(0x26a)](async([_0x4ea9c7,_0x110b38])=>{const _0x2b12de=_0x8936a9;if(_0x4ea9c7[_0x2b12de(0x278)]===_0x5089a1[_0x2b12de(0x1fa)]&&(_0x110b38==null?void 0x0:_0x110b38[_0x2b12de(0x210)])===_0x4aeda6[_0x2b12de(0x24b)]&&_0x4ea9c7[_0x2b12de(0x27a)][_0x2b12de(0x1e9)]['some'](_0x29bc10=>_0x29bc10['id']===_0x305fa9['id'])&&await _0x6bb3bd()){var _0x3f2d4e;this[_0x2b12de(0x287)][_0x2b12de(0x262)](),_0x454e14[_0x2b12de(0x265)](),this[_0x2b12de(0x27e)]&&clearTimeout(this[_0x2b12de(0x27e)]),await((_0x3f2d4e=this[_0x2b12de(0x25a)])==null?void 0x0:_0x3f2d4e[_0x2b12de(0x279)]());}});_0x4ef1ec&&(this[_0x8936a9(0x27e)]=setTimeout(()=>{const _0x53eba0=_0x8936a9;_0x454e14['unsubscribe'](),this[_0x53eba0(0x25d)]['show']({'content':this[_0x53eba0(0x247)]['t'](_0x53eba0(0x281)),'type':_0x4345b3[_0x53eba0(0x221)],'duration':0xbb8});},0x1388));}async[_0x257921(0x29e)](_0x394df0,_0x47e2d3){const _0x5eec8b=_0x257921;await this[_0x5eec8b(0x280)](_0x394df0,_0x47e2d3),_0x394df0['activeSheet$'][_0x5eec8b(0x21b)](_0xb434a3(this[_0x5eec8b(0x20a)]))['subscribe'](_0x44a1ef=>{const _0x557994=_0x5eec8b;_0x44a1ef&&this[_0x557994(0x226)](_0x44a1ef);}),this[_0x5eec8b(0x299)]['urlChange$'][_0x5eec8b(0x21b)](_0xb434a3(this['dispose$']))[_0x5eec8b(0x26a)](()=>this[_0x5eec8b(0x280)](_0x394df0,_0x47e2d3));}[_0x257921(0x226)](_0x159e12,_0x86f702=!0x1){const _0x32970e=_0x257921;let _0x526db3=this[_0x32970e(0x299)][_0x32970e(0x201)]('subunit');_0x159e12[_0x32970e(0x218)]()!==_0x526db3&&this['_urlService'][_0x32970e(0x234)](_0x32970e(0x1f5),_0x159e12[_0x32970e(0x218)](),_0x86f702);}async[_0x257921(0x280)](_0x2901c9,_0x28260f){const _0x148df0=_0x257921;var _0x1ff694;if(!_0x28260f||!_0x2901c9[_0x148df0(0x1fb)](_0x28260f)){let _0x4643bf=_0x2901c9[_0x148df0(0x255)]()[0x0],_0x2de704=_0x2901c9[_0x148df0(0x1fb)](_0x4643bf);if(!_0x2de704)return;this[_0x148df0(0x226)](_0x2de704,!0x0),await this['_commandService'][_0x148df0(0x270)](_0x4bdacf['id'],{'unitId':_0x2901c9[_0x148df0(0x29a)](),'subUnitId':_0x4643bf});return;}((_0x1ff694=_0x2901c9['getActiveSheet']())==null?void 0x0:_0x1ff694[_0x148df0(0x218)]())!==_0x28260f&&await this[_0x148df0(0x236)][_0x148df0(0x270)](_0x4bdacf['id'],{'unitId':_0x2901c9[_0x148df0(0x29a)](),'subUnitId':_0x28260f});}};Q=H([V(0x0,_0x3b2fe9),V(0x1,_0x5cc3ae),V(0x2,_0x3d4214(_0x592985)),V(0x3,_0x3d4214(G)),V(0x4,_0x3d4214(_0x316b33)),V(0x5,_0x2b6969),V(0x6,_0x3d4214(_0x1e0d39)),V(0x7,_0x58623b),V(0x8,_0x3d4214(_0x5d6713)),V(0x9,_0x430938),V(0xa,_0x117d1f)],Q);let $=class extends _0x30cf8f{constructor(_0x2ecf89=R,_0x595997,_0x4c6d25){const _0x4056d0=_0x257921;super(),this['_config']=_0x2ecf89,this['_injector']=_0x595997,this[_0x4056d0(0x20d)]=_0x4c6d25;let {menu:_0x5130c5,..._0x5d63ed}=_0x3bca78({},R,this[_0x4056d0(0x208)]);_0x5130c5&&this[_0x4056d0(0x20d)][_0x4056d0(0x263)](_0x4056d0(0x1e7),_0x5130c5,{'merge':!0x0}),this[_0x4056d0(0x20d)][_0x4056d0(0x263)](L,_0x5d63ed),this[_0x4056d0(0x208)]['univerContainerId']&&this[_0x4056d0(0x20d)][_0x4056d0(0x263)](U,this[_0x4056d0(0x208)][_0x4056d0(0x23e)]);}[_0x257921(0x25b)](){const _0x4ff547=_0x257921;[[G],[Q]][_0x4ff547(0x20e)](_0x5d2169=>this[_0x4ff547(0x266)][_0x4ff547(0x292)](_0x5d2169));}[_0x257921(0x23f)](){const _0x4f54fc=_0x257921;this[_0x4f54fc(0x266)][_0x4f54fc(0x289)](Q);}};B($,_0x257921(0x24d),_0x7184d6[_0x257921(0x243)]),B($,_0x257921(0x298),_0x257921(0x1ed)),B($,_0x257921(0x22e),ct),B($,_0x257921(0x2a1),lt),$=H([_0x219475(_0x433b30),V(0x1,_0x3d4214(_0x4f86b8)),V(0x2,_0x119b2)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x126485=_0x514f;(function(_0x2e3113,_0x489f45){const _0x3f9a8e=_0x514f,_0x506726=_0x2e3113();while(!![]){try{const _0x1ebcf8=-parseInt(_0x3f9a8e(0x196))/0x1+parseInt(_0x3f9a8e(0xfb))/0x2*(parseInt(_0x3f9a8e(0x111))/0x3)+-parseInt(_0x3f9a8e(0x162))/0x4+parseInt(_0x3f9a8e(0xe4))/0x5*(parseInt(_0x3f9a8e(0x11e))/0x6)+parseInt(_0x3f9a8e(0x120))/0x7+parseInt(_0x3f9a8e(0x18f))/0x8+-parseInt(_0x3f9a8e(0xe6))/0x9*(parseInt(_0x3f9a8e(0x130))/0xa);if(_0x1ebcf8===_0x489f45)break;else _0x506726['push'](_0x506726['shift']());}catch(_0x151a7d){_0x506726['push'](_0x506726['shift']());}}}(_0x496c,0x3ea7e));import{CommandType,DependentOn,Disposable,DisposableCollection,IAuthzIoService,ICommandService,IConfigService,IPermissionService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,RxDisposable,ThemeService,Univer,UniverInstanceType,Workbook,merge,toDisposable}from'@univerjs/core';import{RangeProtectionPermissionEditPoint,RangeProtectionRuleModel,SetWorksheetActivateCommand,UniverSheetsPlugin,WorkbookEditablePermission,WorkbookRecoverHistoryPermission,WorkbookViewHistoryPermission,WorksheetEditPermission,getSheetCommandTarget}from'@univerjs/sheets';import{CollaborationEvent,RevertRevisionMutation,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';function _0x514f(_0x5babbb,_0x29be02){_0x5babbb=_0x5babbb-0xe0;const _0x496c8c=_0x496c();let _0x514f45=_0x496c8c[_0x5babbb];return _0x514f45;}import{AuthzIoHttpService,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationController,CollaborationStatus,DataLoaderService,ILocalCacheService}from'@univerjs-pro/collaboration-client';import{HistoryManagerService,HistoryModeStatus,UniverEditHistoryViewerMobilePlugin,UniverEditHistoryViewerPlugin}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY,UniverLicensePlugin}from'@univerjs-pro/license';import{UniverSheetsChartPlugin}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin}from'@univerjs/data-validation';import{MessageType}from'@univerjs/design';import{UniverDocsPlugin}from'@univerjs/docs';import{UniverDocsUIPlugin}from'@univerjs/docs-ui';import{IImageIoService,UniverDrawingPlugin}from'@univerjs/drawing';import{UniverDrawingUIPlugin}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin}from'@univerjs/engine-render';import{UniverNetworkPlugin}from'@univerjs/network';import{IRemoteInstanceService,UniverRPCMainThreadPlugin}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin,UniverSheetsDataValidationUIPlugin}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin,UniverSheetsUIPlugin,getCurrentRangeDisable$}from'@univerjs/sheets-ui';import{ComponentManager,IDialogService,IMenuManagerService,IMessageService,ISidebarService,MenuItemType,RibbonStartGroup,UniverMobileUIPlugin,UniverUIPlugin,getMenuHiddenObservable}from'@univerjs/ui';import{BehaviorSubject,combineLatest,takeUntil}from'rxjs';import{IURLService}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon}from'@univerjs/icons';const EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY=_0x126485(0x189),configSymbol=Symbol(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x5d8e2a){'@babel/helpers - typeof';const _0x37cfc9=_0x126485;return _typeof=_0x37cfc9(0x178)==typeof Symbol&&_0x37cfc9(0x191)==typeof Symbol[_0x37cfc9(0x14f)]?function(_0x804728){return typeof _0x804728;}:function(_0x5a0f63){const _0x51410c=_0x37cfc9;return _0x5a0f63&&_0x51410c(0x178)==typeof Symbol&&_0x5a0f63['constructor']===Symbol&&_0x5a0f63!==Symbol[_0x51410c(0x132)]?_0x51410c(0x191):typeof _0x5a0f63;},_typeof(_0x5d8e2a);}function toPrimitive(_0x2db299,_0x4cf422){const _0x3dbf4a=_0x126485;if('object'!=_typeof(_0x2db299)||!_0x2db299)return _0x2db299;var _0x9e0f23=_0x2db299[Symbol[_0x3dbf4a(0x112)]];if(void 0x0!==_0x9e0f23){var _0x1475fe=_0x9e0f23[_0x3dbf4a(0x10f)](_0x2db299,_0x4cf422||_0x3dbf4a(0x10a));if(_0x3dbf4a(0x113)!=_typeof(_0x1475fe))return _0x1475fe;throw new TypeError(_0x3dbf4a(0x161));}return(_0x3dbf4a(0x18b)===_0x4cf422?String:Number)(_0x2db299);}function toPropertyKey(_0x355e40){const _0x46a001=_0x126485;var _0x5bdfb6=toPrimitive(_0x355e40,_0x46a001(0x18b));return'symbol'==_typeof(_0x5bdfb6)?_0x5bdfb6:_0x5bdfb6+'';}function _defineProperty(_0x56b726,_0x133724,_0x53999c){const _0x5d7e6c=_0x126485;return(_0x133724=toPropertyKey(_0x133724))in _0x56b726?Object[_0x5d7e6c(0x11c)](_0x56b726,_0x133724,{'value':_0x53999c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56b726[_0x133724]=_0x53999c,_0x56b726;}function __decorateParam(_0x53e2c5,_0x49f222){return function(_0xebf35b,_0x4dc3b1){_0x49f222(_0xebf35b,_0x4dc3b1,_0x53e2c5);};}function __decorate(_0x5963af,_0x439077,_0x2c9ba8,_0x3e5b76){const _0x513d52=_0x126485;var _0x251bb3=arguments[_0x513d52(0x12b)],_0x288aae=_0x251bb3<0x3?_0x439077:_0x3e5b76===null?_0x3e5b76=Object['getOwnPropertyDescriptor'](_0x439077,_0x2c9ba8):_0x3e5b76,_0x18b6e5;if(typeof Reflect===_0x513d52(0x113)&&typeof Reflect['decorate']===_0x513d52(0x178))_0x288aae=Reflect[_0x513d52(0x12f)](_0x5963af,_0x439077,_0x2c9ba8,_0x3e5b76);else{for(var _0x42668c=_0x5963af[_0x513d52(0x12b)]-0x1;_0x42668c>=0x0;_0x42668c--)if(_0x18b6e5=_0x5963af[_0x42668c])_0x288aae=(_0x251bb3<0x3?_0x18b6e5(_0x288aae):_0x251bb3>0x3?_0x18b6e5(_0x439077,_0x2c9ba8,_0x288aae):_0x18b6e5(_0x439077,_0x2c9ba8))||_0x288aae;}return _0x251bb3>0x3&&_0x288aae&&Object['defineProperty'](_0x439077,_0x2c9ba8,_0x288aae),_0x288aae;}const DEFAULT_UNIVER_CONTAINER_ID$1=_0x126485(0x195),UNIVER_CONTAINER_ID_KEY=_0x126485(0x100),UNIVER_HISTORY_CONTAINER_ID=_0x126485(0x153);let HistoryLoaderService=class HistoryLoaderService extends Disposable{constructor(_0xa35463,_0x54eef9,_0x234eb7,_0x1cde6d,_0x583f29,_0x271b2e,_0x2d71d2,_0x150868,_0x28e693,_0x509aa3){const _0x4004e2=_0x126485;super(),this[_0x4004e2(0x179)]=_0xa35463,this['_univerInstanceService']=_0x54eef9,this[_0x4004e2(0x185)]=_0x234eb7,this[_0x4004e2(0x168)]=_0x1cde6d,this['_messageService']=_0x583f29,this[_0x4004e2(0x10b)]=_0x271b2e,this[_0x4004e2(0x184)]=_0x2d71d2,this[_0x4004e2(0x157)]=_0x150868,this[_0x4004e2(0x15c)]=_0x28e693,this['_themeService']=_0x509aa3,_defineProperty(this,'_historyUniver$',new BehaviorSubject(null)),_defineProperty(this,_0x4004e2(0x146),this[_0x4004e2(0x166)][_0x4004e2(0x106)]()),_defineProperty(this,'_disposableCollection',new DisposableCollection()),_defineProperty(this,_0x4004e2(0x104),new Map()),_defineProperty(this,'_internalWebWorker',null),this[_0x4004e2(0xed)]();}get[_0x126485(0xe8)](){const _0x4318aa=_0x126485;return this['_historyUniver$'][_0x4318aa(0x176)];}[_0x126485(0xed)](){const _0x311809=_0x126485;this[_0x311809(0xea)](),this[_0x311809(0x181)]();}['_initContainer'](){const _0xf36288=_0x126485;var _0x4a9c43;const _0x7cc045=(_0x4a9c43=this[_0xf36288(0x185)][_0xf36288(0x16c)](_0xf36288(0x100)))!==null&&_0x4a9c43!==void 0x0?_0x4a9c43:DEFAULT_UNIVER_CONTAINER_ID$1,_0x413f32=document['getElementById'](_0x7cc045);if(!_0x413f32)return;const _0x19e885=document['createElement']('div');_0x19e885['id']=UNIVER_HISTORY_CONTAINER_ID,_0x19e885[_0xf36288(0x199)][_0xf36288(0x180)]=_0xf36288(0x17d),_0x19e885[_0xf36288(0x152)]['position']=_0xf36288(0x121),_0x19e885[_0xf36288(0x152)][_0xf36288(0x140)]='0',_0x19e885[_0xf36288(0x152)][_0xf36288(0x13f)]='0',_0x19e885['style']['width']=_0xf36288(0x17e),_0x19e885[_0xf36288(0x152)][_0xf36288(0x18a)]='100%',_0x19e885['style'][_0xf36288(0x124)]='49',_0x19e885[_0xf36288(0x152)]['display']=_0xf36288(0x131),_0x413f32[_0xf36288(0xee)](_0x19e885);}['_initPlugins'](){const _0x15bd53=_0x126485;[[UniverRenderEnginePlugin],[UniverUIPlugin,{'container':UNIVER_HISTORY_CONTAINER_ID,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[IDialogService,null]]}],[UniverNetworkPlugin],[UniverDrawingPlugin,{'override':[[IImageIoService,null]]}],[UniverDocsPlugin,{'hasScroll':![]}],[UniverDocsUIPlugin],[UniverSheetsNumfmtPlugin],[UniverSheetsPlugin,{'notExecuteFormula':!![]}],[UniverSheetsUIPlugin],[UniverSheetsFormulaPlugin],[UniverSheetsFormulaUIPlugin],[UniverCollaborationPlugin],[UniverSheetsFilterPlugin],[UniverSheetsFilterUIPlugin],[UniverSheetsConditionalFormattingPlugin],[UniverSheetsConditionalFormattingUIPlugin],[UniverSheetsHyperLinkPlugin],[UniverSheetsHyperLinkUIPlugin],[UniverDataValidationPlugin],[UniverSheetsDataValidationPlugin],[UniverSheetsDataValidationUIPlugin],[UniverFormulaEnginePlugin,{'notExecuteFormula':!![]}],[UniverDrawingUIPlugin],[UniverSheetsDrawingPlugin],[UniverSheetsDrawingUIPlugin],[UniverSheetSparklinePlugin],[UniverSheetSparklineUIPlugin],[UniverSheetsChartPlugin],[UniverSheetsChartUIPlugin],[UniverSheetsShapePlugin],[UniverSheetsShapeUIPlugin],[UniverSheetsPivotTablePlugin,{'notExecuteFormula':!![]}],[UniverSheetsTablePlugin]][_0x15bd53(0x167)](([_0x89406e,_0x30671d])=>this[_0x15bd53(0x101)](_0x89406e,_0x30671d));}[_0x126485(0x18e)](){const _0x45501a=_0x126485;super[_0x45501a(0x18e)](),this[_0x45501a(0x155)](),this[_0x45501a(0x104)][_0x45501a(0x19d)]();}[_0x126485(0x101)](_0x77af69,_0x2d1045,_0x4f0c79){const _0x9f1f49=_0x126485;if(this['_pluginMap']['has'](_0x77af69[_0x9f1f49(0x138)])&&!_0x4f0c79)throw new Error(_0x9f1f49(0x12a)+_0x77af69[_0x9f1f49(0x138)]+'\x20has\x20been\x20registered.');this[_0x9f1f49(0x104)][_0x9f1f49(0x142)](_0x77af69[_0x9f1f49(0x138)],[_0x77af69,_0x2d1045]);}[_0x126485(0x126)](){const _0x123f05=_0x126485;return Array[_0x123f05(0x19f)](this[_0x123f05(0x104)]['values']());}[_0x126485(0x18c)](_0x53e281,_0x18e0c8){const _0x155c6c=_0x126485,_0x259d0f=document[_0x155c6c(0x159)](UNIVER_HISTORY_CONTAINER_ID);if(!_0x259d0f)return;_0x259d0f[_0x155c6c(0x152)][_0x155c6c(0xff)]=_0x155c6c(0x148),this[_0x155c6c(0xf1)](_0x53e281,UNIVER_HISTORY_CONTAINER_ID,_0x18e0c8);}[_0x126485(0x155)](){const _0x3ad5da=_0x126485;var _0x21fc02;this[_0x3ad5da(0x154)]['dispose'](),(_0x21fc02=this[_0x3ad5da(0xe8)])===null||_0x21fc02===void 0x0||_0x21fc02[_0x3ad5da(0x18e)](),this['_historyUniver$'][_0x3ad5da(0xf5)](null);const _0x2b5641=document[_0x3ad5da(0x159)](UNIVER_HISTORY_CONTAINER_ID);if(!_0x2b5641)return;_0x2b5641[_0x3ad5da(0x152)][_0x3ad5da(0xff)]=_0x3ad5da(0x131),this[_0x3ad5da(0x14d)]&&(this[_0x3ad5da(0x14d)][_0x3ad5da(0x190)](),this[_0x3ad5da(0x14d)]=null);}[_0x126485(0xf1)](_0x5ca4f5,_0x4f52c2,_0x119e8c){const _0xa876ae=_0x126485;var _0x3a69c5,_0x5d2783,_0x339c42,_0x516421,_0x4408e3;if(this[_0xa876ae(0xe8)])return;const _0x259989=new Univer({'locales':{[this[_0xa876ae(0x179)][_0xa876ae(0x14e)]()]:this[_0xa876ae(0x179)]['getLocales']()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x162513=_0x259989[_0xa876ae(0x192)]();this[_0xa876ae(0x173)](this['_themeService']['darkMode$']['subscribe'](_0x1b3dae=>{const _0x26c2c3=_0xa876ae;_0x162513[_0x26c2c3(0x16a)](ThemeService)[_0x26c2c3(0x160)](_0x1b3dae);})),this[_0xa876ae(0x173)](this[_0xa876ae(0x158)][_0xa876ae(0x16b)]['subscribe'](_0x2fa429=>{const _0x4b0cf8=_0xa876ae;_0x162513[_0x4b0cf8(0x16a)](ThemeService)[_0x4b0cf8(0x16e)](_0x2fa429);})),_0x162513[_0xa876ae(0x16a)](LocaleService)[_0xa876ae(0x116)](this['_localeService']['getCurrentLocale']()),_0x162513[_0xa876ae(0x16a)](IConfigService)[_0xa876ae(0x177)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this['_configService'][_0xa876ae(0x16c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0xc900ca=this[_0xa876ae(0x185)][_0xa876ae(0x16c)](LS_CONFIG_KEY);if(_0xc900ca)_0x259989[_0xa876ae(0x101)](UniverLicensePlugin,{'license':_0xc900ca['ls']});const _0x4fd162=(_0x3a69c5=this['_configService'][_0xa876ae(0x16c)](_0xa876ae(0x189)))===null||_0x3a69c5===void 0x0?void 0x0:_0x3a69c5[_0xa876ae(0x102)],_0x54ec89=!!_0x4fd162;_0x54ec89&&(this[_0xa876ae(0x14d)]=_0x4fd162 instanceof Worker?_0x4fd162:null,_0x259989[_0xa876ae(0x101)](UniverRPCMainThreadPlugin,{'workerURL':_0x4fd162}));this['_pluginMap']['forEach'](([_0x400d0e,_0x8276c])=>{const _0x52d5c4=_0xa876ae;_0x259989[_0x52d5c4(0x101)](_0x400d0e,_0x8276c);}),_0x259989['registerPlugin'](UniverEditHistoryViewerPlugin,{'historyListServerUrl':(_0x5d2783=this[_0xa876ae(0x185)]['getConfig'](_0xa876ae(0x189)))===null||_0x5d2783===void 0x0?void 0x0:_0x5d2783[_0xa876ae(0xe7)],'historyPanelComponentKey':(_0x339c42=this[_0xa876ae(0x185)][_0xa876ae(0x16c)](_0xa876ae(0x189)))===null||_0x339c42===void 0x0?void 0x0:_0x339c42[_0xa876ae(0xe0)],'historyPanelHidden':(_0x516421=this['_configService'][_0xa876ae(0x16c)]('edit-history-loader.config'))===null||_0x516421===void 0x0?void 0x0:_0x516421[_0xa876ae(0xfa)],'historyAIassistantEnabled':(_0x4408e3=this['_configService'][_0xa876ae(0x16c)](_0xa876ae(0x189)))===null||_0x4408e3===void 0x0?void 0x0:_0x4408e3[_0xa876ae(0x19b)]}),_0x162513[_0xa876ae(0x187)](_0x2ade8a=>{this['_initListener'](_0x2ade8a,_0x5ca4f5);}),this[_0xa876ae(0x166)]['next'](_0x259989);const _0x42f2f8=_0x162513[_0xa876ae(0x16a)](HistoryManagerService),_0x3ddc9c=this['_checkCanRevert'](_0x5ca4f5),_0x57203a=()=>{const _0x4047f5=_0xa876ae;if(_0x119e8c)_0x42f2f8[_0x4047f5(0x114)](_0x5ca4f5,_0x4f52c2,_0x3ddc9c,_0x119e8c);else _0x42f2f8[_0x4047f5(0xf8)](_0x5ca4f5,_0x4f52c2,_0x3ddc9c);};this[_0xa876ae(0x18d)]['show']({'content':this[_0xa876ae(0x179)]['t'](_0xa876ae(0x17a)),'type':MessageType['Loading']});if(_0x54ec89)try{_0x162513[_0xa876ae(0x16a)](IRemoteInstanceService)[_0xa876ae(0x136)]()[_0xa876ae(0x139)](()=>{_0x57203a();});}catch{_0x57203a();}else _0x57203a();}[_0x126485(0x11f)](_0x3f2a6d,_0xf80b94){const _0x58e211=_0x126485,_0xc9a3f0=_0x3f2a6d[_0x58e211(0x16a)](HistoryManagerService);this[_0x58e211(0x154)][_0x58e211(0x14c)](_0xc9a3f0['status$']['subscribe'](_0x28a735=>{const _0x308ecf=_0x58e211;switch(_0x28a735){case HistoryModeStatus[_0x308ecf(0x147)]:this[_0x308ecf(0x157)][_0x308ecf(0x17c)](),this[_0x308ecf(0x15c)][_0x308ecf(0x118)]();break;case HistoryModeStatus[_0x308ecf(0x163)]:this[_0x308ecf(0x168)][_0x308ecf(0xec)](ExitEditHistoryOperation['id']),this[_0x308ecf(0x155)]();break;case HistoryModeStatus[_0x308ecf(0xf0)]:this['unMountHistoryContent'](),this[_0x308ecf(0x18d)]['show']({'content':this[_0x308ecf(0x179)]['t'](_0x308ecf(0x103)),'type':MessageType[_0x308ecf(0xf0)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x58e211(0x14c)](_0xc9a3f0[_0x58e211(0x17b)][_0x58e211(0x109)](async _0x2049a3=>{const _0x51d03c=_0x58e211;if(_0x2049a3)this[_0x51d03c(0x168)][_0x51d03c(0xec)](RevertRevisionMutation['id'],{'unitId':_0xf80b94,'revision':_0x2049a3});}));}[_0x126485(0x13b)](_0x3ced4a){const _0x5e79f9=_0x126485,_0x157abf=this['_univerInstanceService'][_0x5e79f9(0x12d)](_0x3ced4a)[_0x5e79f9(0xf4)]()[_0x5e79f9(0x144)](_0x5a2a44=>_0x5a2a44[_0x5e79f9(0x107)]()),_0x8f842=new WorkbookEditablePermission(_0x3ced4a)['id'],_0x1f1069=_0x157abf[_0x5e79f9(0x144)](_0x3385bd=>new WorksheetEditPermission(_0x3ced4a,_0x3385bd)['id']),_0x5e3538=_0x157abf[_0x5e79f9(0x144)](_0x3f9354=>this[_0x5e79f9(0x184)][_0x5e79f9(0xf3)](_0x3ced4a,_0x3f9354)[_0x5e79f9(0x144)](_0x351602=>new RangeProtectionPermissionEditPoint(_0x3ced4a,_0x3f9354,_0x351602[_0x5e79f9(0xf2)])['id']))[_0x5e79f9(0x151)](),_0x25a38e=new WorkbookRecoverHistoryPermission(_0x3ced4a)['id'];return this[_0x5e79f9(0x10b)][_0x5e79f9(0x134)]([_0x8f842,..._0x1f1069,..._0x5e3538,_0x25a38e])['every'](_0x495135=>!!_0x495135[_0x5e79f9(0x176)]);}};HistoryLoaderService=__decorate([__decorateParam(0x0,Inject(LocaleService)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICommandService),__decorateParam(0x4,IMessageService),__decorateParam(0x5,IPermissionService),__decorateParam(0x6,Inject(RangeProtectionRuleModel)),__decorateParam(0x7,Inject(IDialogService)),__decorateParam(0x8,Inject(ISidebarService)),__decorateParam(0x9,Inject(ThemeService))],HistoryLoaderService);const ToggleEditHistoryOperation={'id':_0x126485(0x171),'type':CommandType[_0x126485(0x169)],'handler':_0x413422=>{const _0x55d3cc=_0x126485,_0x8bd7da=_0x413422[_0x55d3cc(0x16a)](HistoryLoaderService),{unitId:_0x15bb1f}=getSheetCommandTarget(_0x413422['get'](IUniverInstanceService))||{};if(!_0x15bb1f)return![];return _0x8bd7da[_0x55d3cc(0x18c)](_0x15bb1f),!![];}},ExitEditHistoryOperation={'id':_0x126485(0xef),'type':CommandType[_0x126485(0x169)],'handler':()=>!![]};var name=_0x126485(0x11d),version=_0x126485(0x194);function ToggleEditHistoryMenuFactory(_0x508e48){const _0x517150=_0x126485;return{'id':ToggleEditHistoryOperation['id'],'type':MenuItemType['BUTTON'],'icon':_0x517150(0x165),'tooltip':'editHistory.panel.title','hidden$':getMenuHiddenObservable(_0x508e48,UniverInstanceType[_0x517150(0x15f)]),'disabled$':getCurrentRangeDisable$(_0x508e48,{'workbookTypes':[WorkbookViewHistoryPermission],'worksheetTypes':[],'rangeTypes':[]})};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[ToggleEditHistoryOperation['id']]:{'order':0.2,'menuItemFactory':ToggleEditHistoryMenuFactory}}};let MobileHistoryLoaderController=class MobileHistoryLoaderController extends RxDisposable{constructor(_0x43090c,_0x44fe50,_0x13cf4f,_0x51979d,_0x166c38,_0x4ec8be,_0x3a0082,_0x1ecb65,_0xfdef34,_0x3b05dc,_0x224367){const _0x5647c5=_0x126485;super(),this['_commandService']=_0x43090c,this[_0x5647c5(0xe1)]=_0x44fe50,this['_componentManager']=_0x13cf4f,this['_historyManagerService']=_0x51979d,this[_0x5647c5(0x179)]=_0x166c38,this[_0x5647c5(0x18d)]=_0x4ec8be,this[_0x5647c5(0x164)]=_0x3a0082,this[_0x5647c5(0x119)]=_0x1ecb65,this[_0x5647c5(0xe5)]=_0xfdef34,this[_0x5647c5(0x170)]=_0x3b05dc,this[_0x5647c5(0x197)]=_0x224367,_defineProperty(this,_0x5647c5(0x15e),null),this['_init']();}[_0x126485(0xed)](){const _0x112321=_0x126485;[ToggleEditHistoryOperation,ExitEditHistoryOperation]['forEach'](_0x2a672c=>this[_0x112321(0x173)](toDisposable(this[_0x112321(0x168)][_0x112321(0x188)](_0x2a672c)))),this[_0x112321(0x173)](this['_componentManager'][_0x112321(0x1a0)](_0x112321(0x165),HistoryIcon)),this[_0x112321(0xe1)][_0x112321(0x175)](menuSchema),this[_0x112321(0x173)](this[_0x112321(0x168)][_0x112321(0x12e)](async(_0x1c3860,_0x3b49a3)=>{const _0x445cd5=_0x112321;if(_0x1c3860['id']===RevertRevisionMutation['id']){const {unitId:_0x4b37f9}=_0x1c3860[_0x445cd5(0xf7)];this['_messageService'][_0x445cd5(0xfe)]({'content':this[_0x445cd5(0x179)]['t'](_0x445cd5(0x110)),'type':MessageType['Loading'],'duration':0x1388});const _0x589f2b=this['_collaborationController'][_0x445cd5(0x133)](_0x4b37f9);if(!(_0x3b49a3===null||_0x3b49a3===void 0x0?void 0x0:_0x3b49a3[_0x445cd5(0x1a1)]))this['_handleRevertAcknowledgement'](_0x589f2b,async()=>{const _0x188788=_0x445cd5,_0x2d8113=this[_0x188788(0x170)][_0x188788(0x12c)](UniverInstanceType[_0x188788(0x15f)]),_0xa79d0c=_0x2d8113===null||_0x2d8113===void 0x0?void 0x0:_0x2d8113[_0x188788(0xf9)]();if(!_0xa79d0c)return![];this[_0x188788(0x170)][_0x188788(0x16d)](_0x4b37f9);const _0x1394b8=await this['_dataLoaderService'][_0x188788(0x115)](_0x4b37f9,UniverInstanceType[_0x188788(0x15f)]);if(_0x1394b8&&_0x1394b8 instanceof Workbook)return await this[_0x188788(0x143)](_0x1394b8,_0xa79d0c[_0x188788(0x107)]()),!![];return![];});else this['_handleRevertAcknowledgement'](_0x589f2b,async()=>{const _0x1e4959=_0x445cd5;return setTimeout(()=>window[_0x1e4959(0x182)][_0x1e4959(0x117)]()),!![];},!![]);}}));}[_0x126485(0x193)](_0x1c31ce,_0x2428e4,_0x3fb872=![]){const _0x2d5880=_0x126485,_0x5f5a1a=combineLatest([_0x1c31ce[_0x2d5880(0xf6)]['event$'],_0x1c31ce[_0x2d5880(0xfc)]])['subscribe'](async([_0x472d9d,_0xe23075])=>{const _0x133790=_0x2d5880;if(_0x472d9d['eventID']===CollaborationEvent[_0x133790(0x19c)]&&(_0xe23075===null||_0xe23075===void 0x0?void 0x0:_0xe23075[_0x133790(0x15b)])===CollaborationStatus[_0x133790(0x122)]){if(_0x472d9d[_0x133790(0x135)][_0x133790(0x11b)][_0x133790(0x149)](_0x516d9a=>_0x516d9a['id']===RevertRevisionMutation['id'])){if(await _0x2428e4()){var _0x550bfe;this[_0x133790(0x10e)]['unMountHistoryContent'](),_0x5f5a1a[_0x133790(0x10d)](),this[_0x133790(0x15e)]&&clearTimeout(this['_revertErrorTimer']),await((_0x550bfe=this[_0x133790(0x119)])===null||_0x550bfe===void 0x0?void 0x0:_0x550bfe[_0x133790(0x14b)]()),this[_0x133790(0x18d)][_0x133790(0xeb)]();}}}});if(_0x3fb872)this[_0x2d5880(0x15e)]=setTimeout(()=>{const _0x400539=_0x2d5880;_0x5f5a1a[_0x400539(0x10d)](),this[_0x400539(0x18d)][_0x400539(0xfe)]({'content':this[_0x400539(0x179)]['t'](_0x400539(0x145)),'type':MessageType[_0x400539(0xf0)],'duration':0xbb8});},0x1388);}async['_setupSubUnitSync'](_0x4284d5,_0x1a1fe9){const _0x642cc7=_0x126485;await this['_updateSubUnitFromURLParams'](_0x4284d5,_0x1a1fe9),_0x4284d5[_0x642cc7(0x172)][_0x642cc7(0x141)](takeUntil(this[_0x642cc7(0x13d)]))[_0x642cc7(0x109)](_0x591902=>{const _0x5ea7d0=_0x642cc7;if(_0x591902)this[_0x5ea7d0(0x108)](_0x591902);}),this[_0x642cc7(0x197)][_0x642cc7(0x125)][_0x642cc7(0x141)](takeUntil(this['dispose$']))[_0x642cc7(0x109)](()=>this[_0x642cc7(0x105)](_0x4284d5,_0x1a1fe9));}['_updateURLWithCurrentState'](_0x58278c,_0x15644f=![]){const _0x555277=_0x126485,_0x2d5b79=this[_0x555277(0x197)][_0x555277(0xe2)](_0x555277(0x15d));if(_0x58278c['getSheetId']()!==_0x2d5b79)this[_0x555277(0x197)][_0x555277(0x19a)](_0x555277(0x15d),_0x58278c['getSheetId'](),_0x15644f);}async[_0x126485(0x105)](_0x46b1f4,_0x144475){const _0x5c2d11=_0x126485;var _0x5d2afa;if(!_0x144475||!_0x46b1f4[_0x5c2d11(0x16f)](_0x144475)){const _0x15f919=_0x46b1f4[_0x5c2d11(0x127)]()[0x0],_0x1349df=_0x46b1f4[_0x5c2d11(0x16f)](_0x15f919);if(!_0x1349df)return;this[_0x5c2d11(0x108)](_0x1349df,!![]),await this[_0x5c2d11(0x168)][_0x5c2d11(0xec)](SetWorksheetActivateCommand['id'],{'unitId':_0x46b1f4[_0x5c2d11(0x129)](),'subUnitId':_0x15f919});return;}if(((_0x5d2afa=_0x46b1f4[_0x5c2d11(0xf9)]())===null||_0x5d2afa===void 0x0?void 0x0:_0x5d2afa['getSheetId']())===_0x144475)return;await this[_0x5c2d11(0x168)][_0x5c2d11(0xec)](SetWorksheetActivateCommand['id'],{'unitId':_0x46b1f4[_0x5c2d11(0x129)](),'subUnitId':_0x144475});}};MobileHistoryLoaderController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager)),__decorateParam(0x3,Inject(HistoryLoaderService)),__decorateParam(0x4,Inject(LocaleService)),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(CollaborationController)),__decorateParam(0x7,ILocalCacheService),__decorateParam(0x8,Inject(DataLoaderService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,IURLService)],MobileHistoryLoaderController);const DEFAULT_UNIVER_CONTAINER_ID='univer-container',UNIVER_CONTAINER_ID_KEY$1=_0x126485(0x100),UNIVER_HISTORY_CONTAINER_ID$1='univer-history-container-mobile';let MobileHistoryLoaderService=class MobileHistoryLoaderService extends Disposable{constructor(_0x3f1424,_0x28f8e8,_0x2a5378,_0xe0488c,_0x56765b,_0x4688f5,_0x2fc2e9,_0x32a71d,_0x283290,_0x34259a){const _0x22f587=_0x126485;super(),this[_0x22f587(0x179)]=_0x3f1424,this[_0x22f587(0x170)]=_0x28f8e8,this[_0x22f587(0x185)]=_0x2a5378,this['_commandService']=_0xe0488c,this[_0x22f587(0x18d)]=_0x56765b,this[_0x22f587(0x10b)]=_0x4688f5,this[_0x22f587(0x184)]=_0x2fc2e9,this[_0x22f587(0x157)]=_0x32a71d,this[_0x22f587(0x15c)]=_0x283290,this[_0x22f587(0x158)]=_0x34259a,_defineProperty(this,'_historyUniver$',new BehaviorSubject(null)),_defineProperty(this,_0x22f587(0x146),this['_historyUniver$'][_0x22f587(0x106)]()),_defineProperty(this,_0x22f587(0x154),new DisposableCollection()),_defineProperty(this,_0x22f587(0x104),new Map()),_defineProperty(this,_0x22f587(0x14d),null),this[_0x22f587(0xed)]();}get['historyUniver'](){const _0x5cfc62=_0x126485;return this[_0x5cfc62(0x166)][_0x5cfc62(0x176)];}[_0x126485(0xed)](){const _0x2d706a=_0x126485;this[_0x2d706a(0xea)](),this[_0x2d706a(0x181)]();}[_0x126485(0xea)](){const _0x3ce80c=_0x126485;var _0x473a8e;const _0x4641b8=(_0x473a8e=this[_0x3ce80c(0x185)][_0x3ce80c(0x16c)]('UNIVER_CONTAINER_ID'))!==null&&_0x473a8e!==void 0x0?_0x473a8e:DEFAULT_UNIVER_CONTAINER_ID,_0x42a8bf=document[_0x3ce80c(0x159)](_0x4641b8);if(!_0x42a8bf)return;const _0x35f96b=document[_0x3ce80c(0x128)]('div');_0x35f96b['id']=UNIVER_HISTORY_CONTAINER_ID$1,_0x35f96b[_0x3ce80c(0x199)][_0x3ce80c(0x180)]=_0x3ce80c(0x17d),_0x35f96b[_0x3ce80c(0x152)][_0x3ce80c(0x19e)]=_0x3ce80c(0x121),_0x35f96b['style']['top']='0',_0x35f96b[_0x3ce80c(0x152)][_0x3ce80c(0x13f)]='0',_0x35f96b[_0x3ce80c(0x152)][_0x3ce80c(0x186)]='100%',_0x35f96b[_0x3ce80c(0x152)][_0x3ce80c(0x18a)]=_0x3ce80c(0x17e),_0x35f96b['style']['zIndex']='49',_0x35f96b['style'][_0x3ce80c(0xff)]=_0x3ce80c(0x131),_0x42a8bf[_0x3ce80c(0xee)](_0x35f96b);}[_0x126485(0x181)](){const _0x50f6f3=_0x126485;[[UniverRenderEnginePlugin],[UniverMobileUIPlugin,{'container':UNIVER_HISTORY_CONTAINER_ID$1,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[IDialogService,null]]}],[UniverNetworkPlugin],[UniverDrawingPlugin,{'override':[[IImageIoService,null]]}],[UniverDocsPlugin,{'hasScroll':![]}],[UniverDocsUIPlugin],[UniverSheetsNumfmtPlugin],[UniverSheetsPlugin,{'notExecuteFormula':!![]}],[UniverSheetsMobileUIPlugin],[UniverSheetsFormulaPlugin],[UniverSheetsFormulaUIPlugin],[UniverCollaborationPlugin],[UniverSheetsFilterPlugin],[UniverSheetsConditionalFormattingPlugin],[UniverSheetsHyperLinkPlugin],[UniverSheetsHyperLinkUIPlugin],[UniverDataValidationPlugin],[UniverSheetsDataValidationPlugin],[UniverSheetsDataValidationMobileUIPlugin],[UniverFormulaEnginePlugin,{'notExecuteFormula':!![]}],[UniverDrawingUIPlugin],[UniverSheetsDrawingPlugin],[UniverSheetsDrawingUIPlugin],[UniverSheetSparklinePlugin],[UniverSheetSparklineUIPlugin],[UniverSheetsChartPlugin],[UniverSheetsChartUIPlugin],[UniverSheetsShapePlugin],[UniverSheetsShapeUIPlugin],[UniverSheetsPivotTablePlugin,{'notExecuteFormula':!![]}],[UniverSheetsTablePlugin]]['forEach'](([_0x5660cf,_0x329e26])=>this[_0x50f6f3(0x101)](_0x5660cf,_0x329e26));}[_0x126485(0x18e)](){const _0x16bcf0=_0x126485;super[_0x16bcf0(0x18e)](),this[_0x16bcf0(0x155)](),this['_pluginMap'][_0x16bcf0(0x19d)]();}['registerPlugin'](_0x8360b2,_0x4a96a2,_0x6b3029){const _0x2909fb=_0x126485;if(this[_0x2909fb(0x104)]['has'](_0x8360b2[_0x2909fb(0x138)])&&!_0x6b3029)throw new Error(_0x2909fb(0x15a)+_0x8360b2[_0x2909fb(0x138)]+_0x2909fb(0x137));this[_0x2909fb(0x104)][_0x2909fb(0x142)](_0x8360b2[_0x2909fb(0x138)],[_0x8360b2,_0x4a96a2]);}[_0x126485(0x126)](){const _0xc82ab3=_0x126485;return Array[_0xc82ab3(0x19f)](this['_pluginMap']['values']());}[_0x126485(0x18c)](_0xd45443,_0x46cd2a){const _0x3ebd3b=_0x126485,_0x1580b7=document[_0x3ebd3b(0x159)](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x1580b7)return;_0x1580b7[_0x3ebd3b(0x152)]['display']=_0x3ebd3b(0x148),this['_initUniver'](_0xd45443,UNIVER_HISTORY_CONTAINER_ID$1,_0x46cd2a);}['unMountHistoryContent'](){const _0x427d20=_0x126485;var _0xe50c7b;this[_0x427d20(0x154)]['dispose'](),(_0xe50c7b=this['historyUniver'])===null||_0xe50c7b===void 0x0||_0xe50c7b[_0x427d20(0x18e)](),this[_0x427d20(0x166)][_0x427d20(0xf5)](null);const _0x16482a=document[_0x427d20(0x159)](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x16482a)return;_0x16482a[_0x427d20(0x152)]['display']=_0x427d20(0x131),this[_0x427d20(0x14d)]&&(this['_internalWebWorker'][_0x427d20(0x190)](),this[_0x427d20(0x14d)]=null);}[_0x126485(0xf1)](_0x339f4b,_0x534109,_0x5e1069){const _0x83853f=_0x126485;var _0x1c1a1a,_0x4d782b,_0x2a58c7,_0x15a432;if(this[_0x83853f(0xe8)])return;const _0x3a8fa5=new Univer({'locales':{[this[_0x83853f(0x179)]['getCurrentLocale']()]:this['_localeService']['getLocales']()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x5a0824=_0x3a8fa5[_0x83853f(0x192)]();this[_0x83853f(0x173)](this['_themeService']['darkMode$'][_0x83853f(0x109)](_0x12ba88=>{const _0x276098=_0x83853f;_0x5a0824[_0x276098(0x16a)](ThemeService)[_0x276098(0x160)](_0x12ba88);})),this[_0x83853f(0x173)](this[_0x83853f(0x158)][_0x83853f(0x16b)][_0x83853f(0x109)](_0x34b07f=>{const _0x33436e=_0x83853f;_0x5a0824[_0x33436e(0x16a)](ThemeService)[_0x33436e(0x16e)](_0x34b07f);})),_0x5a0824['get'](LocaleService)['setLocale'](this[_0x83853f(0x179)]['getCurrentLocale']()),_0x5a0824[_0x83853f(0x16a)](IConfigService)[_0x83853f(0x177)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this[_0x83853f(0x185)][_0x83853f(0x16c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x54143e=this['_configService'][_0x83853f(0x16c)](LS_CONFIG_KEY);if(_0x54143e)_0x3a8fa5[_0x83853f(0x101)](UniverLicensePlugin,{'license':_0x54143e['ls']});const _0x533635=(_0x1c1a1a=this['_configService'][_0x83853f(0x16c)]('edit-history-loader.config'))===null||_0x1c1a1a===void 0x0?void 0x0:_0x1c1a1a[_0x83853f(0x102)],_0xee9b19=!!_0x533635;_0xee9b19&&(this[_0x83853f(0x14d)]=_0x533635 instanceof Worker?_0x533635:null,_0x3a8fa5[_0x83853f(0x101)](UniverRPCMainThreadPlugin,{'workerURL':_0x533635}));this['_pluginMap'][_0x83853f(0x167)](([_0x24c0bd,_0x1828e2])=>{_0x3a8fa5['registerPlugin'](_0x24c0bd,_0x1828e2);}),_0x3a8fa5[_0x83853f(0x101)](UniverEditHistoryViewerMobilePlugin,{'historyListServerUrl':(_0x4d782b=this['_configService'][_0x83853f(0x16c)]('edit-history-loader.config'))===null||_0x4d782b===void 0x0?void 0x0:_0x4d782b[_0x83853f(0xe7)],'historyPanelComponentKey':(_0x2a58c7=this[_0x83853f(0x185)][_0x83853f(0x16c)](_0x83853f(0x189)))===null||_0x2a58c7===void 0x0?void 0x0:_0x2a58c7[_0x83853f(0xe0)],'historyPanelHidden':(_0x15a432=this[_0x83853f(0x185)][_0x83853f(0x16c)](_0x83853f(0x189)))===null||_0x15a432===void 0x0?void 0x0:_0x15a432[_0x83853f(0xfa)]}),_0x5a0824[_0x83853f(0x187)](_0x3242c4=>{const _0x3c41af=_0x83853f;this[_0x3c41af(0x11f)](_0x3242c4,_0x339f4b);}),this[_0x83853f(0x166)][_0x83853f(0xf5)](_0x3a8fa5);const _0x25f639=_0x5a0824[_0x83853f(0x16a)](HistoryManagerService),_0x59137b=this['_checkCanRevert'](_0x339f4b),_0x16d28a=()=>{const _0x4e46b3=_0x83853f;if(_0x5e1069)_0x25f639[_0x4e46b3(0x114)](_0x339f4b,_0x534109,_0x59137b,_0x5e1069);else _0x25f639['triggerLoadVersions'](_0x339f4b,_0x534109,_0x59137b);};this[_0x83853f(0x18d)][_0x83853f(0xfe)]({'content':this[_0x83853f(0x179)]['t'](_0x83853f(0x17a)),'type':MessageType[_0x83853f(0x183)]});if(_0xee9b19)try{_0x5a0824[_0x83853f(0x16a)](IRemoteInstanceService)['whenReady']()[_0x83853f(0x139)](()=>{_0x16d28a();});}catch{_0x16d28a();}else _0x16d28a();}[_0x126485(0x11f)](_0x2cc62d,_0x5b662e){const _0x3e179e=_0x126485,_0x558d8b=_0x2cc62d['get'](HistoryManagerService);this[_0x3e179e(0x154)]['add'](_0x558d8b[_0x3e179e(0x11a)][_0x3e179e(0x109)](_0x581338=>{const _0x37b35c=_0x3e179e;switch(_0x581338){case HistoryModeStatus[_0x37b35c(0x147)]:this[_0x37b35c(0x157)][_0x37b35c(0x17c)](),this[_0x37b35c(0x15c)][_0x37b35c(0x118)]();break;case HistoryModeStatus[_0x37b35c(0x163)]:this[_0x37b35c(0x168)][_0x37b35c(0xec)](ExitEditHistoryOperation['id']),this['unMountHistoryContent']();break;case HistoryModeStatus[_0x37b35c(0xf0)]:this[_0x37b35c(0x155)](),this[_0x37b35c(0x18d)][_0x37b35c(0xfe)]({'content':this[_0x37b35c(0x179)]['t'](_0x37b35c(0x103)),'type':MessageType[_0x37b35c(0xf0)],'duration':0xbb8});break;default:break;}})),this[_0x3e179e(0x154)][_0x3e179e(0x14c)](_0x558d8b['revertRevision$']['subscribe'](async _0x316966=>{const _0x5a2d91=_0x3e179e;if(_0x316966)this[_0x5a2d91(0x168)][_0x5a2d91(0xec)](RevertRevisionMutation['id'],{'unitId':_0x5b662e,'revision':_0x316966});}));}[_0x126485(0x13b)](_0x160bde){const _0xe56752=_0x126485,_0x265cfa=this['_univerInstanceService'][_0xe56752(0x12d)](_0x160bde)[_0xe56752(0xf4)]()['map'](_0x11d435=>_0x11d435['getSheetId']()),_0x3e7f46=new WorkbookEditablePermission(_0x160bde)['id'],_0x5ed89a=_0x265cfa[_0xe56752(0x144)](_0xac48b1=>new WorksheetEditPermission(_0x160bde,_0xac48b1)['id']),_0x2e51ed=_0x265cfa['map'](_0x3e474d=>this['_selectionProtectionRuleModel'][_0xe56752(0xf3)](_0x160bde,_0x3e474d)[_0xe56752(0x144)](_0x13dadc=>new RangeProtectionPermissionEditPoint(_0x160bde,_0x3e474d,_0x13dadc[_0xe56752(0xf2)])['id']))['flat'](),_0x4e5ff5=new WorkbookRecoverHistoryPermission(_0x160bde)['id'];return this['_permissionService'][_0xe56752(0x134)]([_0x3e7f46,..._0x5ed89a,..._0x2e51ed,_0x4e5ff5])[_0xe56752(0x13c)](_0x40134d=>!!_0x40134d[_0xe56752(0x176)]);}};function _0x496c(){const _0x51b092=['next','session','params','triggerLoadVersions','getActiveSheet','historyPanelHidden','190370qAqiVX','state$','_injector','show','display','UNIVER_CONTAINER_ID','registerPlugin','workerURL','editHistory.panel.listFetchError','_pluginMap','_updateSubUnitFromURLParams','asObservable','getSheetId','_updateURLWithCurrentState','subscribe','default','_permissionService','version','unsubscribe','_historyManagerService','call','editHistory.panel.reverting','6lNEgBe','toPrimitive','object','triggerCustomVersions','loadUnit','setLocale','reload','close','_localCacheService','status$','mutations','defineProperty','@univerjs-pro/edit-history-loader','1452nHOoSq','_initListener','2529331PRXfRU','absolute','SYNCED','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','zIndex','urlChange$','getAllPlugins','getUnhiddenWorksheets','createElement','getUnitId','[HistoryLoaderService]:\x20Plugin\x20','length','getCurrentUnitOfType','getUnit','onCommandExecuted','decorate','5320wPYFGJ','none','prototype','getCollabEntity','composePermission','data','whenReady','\x20has\x20been\x20registered.','pluginName','then','type','_checkCanRevert','every','dispose$','_config','left','top','pipe','set','_setupSubUnitSync','map','editHistory.panel.revertFailed','historyUniver$','Entered','block','some','event$','exhaustSavingTask','add','_internalWebWorker','getCurrentLocale','iterator','onSteady','flat','style','univer-history-container','_disposableCollection','unMountHistoryContent','eventID','_dialogService','_themeService','getElementById','[MobileHistoryLoaderService]:\x20Plugin\x20','status','_sidebarService','subunit','_revertErrorTimer','UNIVER_SHEET','setDarkMode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1876448dinQQm','Exited','_collaborationController','HistoryIcon','_historyUniver$','forEach','_commandService','OPERATION','get','currentTheme$','getConfig','disposeUnit','setTheme','getSheetBySheetId','_univerInstanceService','univer.operation.toggle-edit-history','activeSheet$','disposeWithMe','packageName','mergeMenu','value','setConfig','function','_localeService','editHistory.info.initializing','revertRevision$','closeAll','history-container','100%','_componentManager','uComp','_initPlugins','location','Loading','_selectionProtectionRuleModel','_configService','width','invoke','registerCommand','edit-history-loader.config','height','string','mountHistoryContent','_messageService','dispose','3810168mfvWRl','terminate','symbol','__getInjector','_handleRevertAcknowledgement','0.21.0','univer-container','482030WISySf','_urlService','UNIVER_UNKNOWN','dataset','setParam','historyAIassistantEnabled','CHANGESET_ACK','clear','position','from','register','fromCollab','historyPanelComponentKey','_menuManagerService','getParam','menu','5045xYVTFZ','_dataLoaderService','1089qFzJlP','historyListServerUrl','historyUniver','onStarting','_initContainer','removeAll','executeCommand','_init','appendChild','univer.operation.exit-edit-history','Error','_initUniver','permissionId','getSubunitRuleList','getSheets'];_0x496c=function(){return _0x51b092;};return _0x496c();}MobileHistoryLoaderService=__decorate([__decorateParam(0x0,Inject(LocaleService)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICommandService),__decorateParam(0x4,IMessageService),__decorateParam(0x5,IPermissionService),__decorateParam(0x6,Inject(RangeProtectionRuleModel)),__decorateParam(0x7,Inject(IDialogService)),__decorateParam(0x8,Inject(ISidebarService)),__decorateParam(0x9,Inject(ThemeService))],MobileHistoryLoaderService);let UniverEditHistoryLoaderMobilePlugin=class UniverEditHistoryLoaderMobilePlugin extends Plugin{constructor(_0x23d7b3=defaultPluginConfig,_0x479054,_0xcb8d92){const _0x584bfb=_0x126485;super(),this[_0x584bfb(0x13e)]=_0x23d7b3,this[_0x584bfb(0xfd)]=_0x479054,this[_0x584bfb(0x185)]=_0xcb8d92;const {menu:_0x13cd48,..._0x2b3827}=merge({},defaultPluginConfig,this[_0x584bfb(0x13e)]);if(_0x13cd48)this[_0x584bfb(0x185)][_0x584bfb(0x177)](_0x584bfb(0xe3),_0x13cd48,{'merge':!![]});this[_0x584bfb(0x185)][_0x584bfb(0x177)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x2b3827);if(this[_0x584bfb(0x13e)]['univerContainerId'])this[_0x584bfb(0x185)]['setConfig'](UNIVER_CONTAINER_ID_KEY$1,this['_config']['univerContainerId']);}[_0x126485(0xe9)](){const _0x48843c=_0x126485;[[HistoryLoaderService,{'useClass':MobileHistoryLoaderService}],[MobileHistoryLoaderController]][_0x48843c(0x167)](_0x53fd5e=>this[_0x48843c(0xfd)][_0x48843c(0x14c)](_0x53fd5e));}[_0x126485(0x150)](){const _0x21f52e=_0x126485;this[_0x21f52e(0xfd)][_0x21f52e(0x16a)](MobileHistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x126485(0x13a),UniverInstanceType['UNIVER_UNKNOWN']),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x126485(0x138),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x126485(0x174),name),_defineProperty(UniverEditHistoryLoaderMobilePlugin,'version',version),UniverEditHistoryLoaderMobilePlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderMobilePlugin);let HistoryLoaderController=class HistoryLoaderController extends RxDisposable{constructor(_0x475295,_0x4ae2b4,_0x2b644e,_0x3c7ea4,_0x5b5d1e,_0x50111d,_0x1ad116,_0x43ae2b,_0x47ef35,_0x44e085,_0x39a892){const _0x4a89a4=_0x126485;super(),this[_0x4a89a4(0x168)]=_0x475295,this['_menuManagerService']=_0x4ae2b4,this['_componentManager']=_0x2b644e,this[_0x4a89a4(0x10e)]=_0x3c7ea4,this['_localeService']=_0x5b5d1e,this[_0x4a89a4(0x18d)]=_0x50111d,this[_0x4a89a4(0x164)]=_0x1ad116,this[_0x4a89a4(0x119)]=_0x43ae2b,this[_0x4a89a4(0xe5)]=_0x47ef35,this['_univerInstanceService']=_0x44e085,this[_0x4a89a4(0x197)]=_0x39a892,_defineProperty(this,'_revertErrorTimer',null),this[_0x4a89a4(0xed)]();}[_0x126485(0xed)](){const _0x35449f=_0x126485;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x35449f(0x167)](_0x289dcb=>this['disposeWithMe'](toDisposable(this[_0x35449f(0x168)]['registerCommand'](_0x289dcb)))),this['disposeWithMe'](this[_0x35449f(0x17f)][_0x35449f(0x1a0)](_0x35449f(0x165),HistoryIcon)),this[_0x35449f(0xe1)][_0x35449f(0x175)](menuSchema),this[_0x35449f(0x173)](this[_0x35449f(0x168)][_0x35449f(0x12e)](async(_0x50a185,_0x354145)=>{const _0x398bc7=_0x35449f;if(_0x50a185['id']===RevertRevisionMutation['id']){const {unitId:_0x2764bf}=_0x50a185[_0x398bc7(0xf7)];this[_0x398bc7(0x18d)]['show']({'content':this[_0x398bc7(0x179)]['t'](_0x398bc7(0x110)),'type':MessageType[_0x398bc7(0x183)],'duration':0x1388});const _0x157c17=this[_0x398bc7(0x164)]['getCollabEntity'](_0x2764bf);if(!(_0x354145===null||_0x354145===void 0x0?void 0x0:_0x354145[_0x398bc7(0x1a1)]))this[_0x398bc7(0x193)](_0x157c17,async()=>{const _0x45cb58=_0x398bc7,_0x3ee1e0=this[_0x45cb58(0x170)][_0x45cb58(0x12c)](UniverInstanceType[_0x45cb58(0x15f)]),_0x180364=_0x3ee1e0===null||_0x3ee1e0===void 0x0?void 0x0:_0x3ee1e0[_0x45cb58(0xf9)]();if(!_0x180364)return![];this['_univerInstanceService'][_0x45cb58(0x16d)](_0x2764bf);const _0x4219c1=await this[_0x45cb58(0xe5)][_0x45cb58(0x115)](_0x2764bf,UniverInstanceType['UNIVER_SHEET']);if(_0x4219c1&&_0x4219c1 instanceof Workbook)return await this[_0x45cb58(0x143)](_0x4219c1,_0x180364[_0x45cb58(0x107)]()),!![];return![];});else this[_0x398bc7(0x193)](_0x157c17,async()=>{const _0x2eaa8f=_0x398bc7;return setTimeout(()=>window[_0x2eaa8f(0x182)][_0x2eaa8f(0x117)]()),!![];},!![]);}}));}[_0x126485(0x193)](_0x13f5c1,_0x359afb,_0x1e2ee2=![]){const _0x4bdc55=_0x126485,_0x48eb7c=combineLatest([_0x13f5c1['session'][_0x4bdc55(0x14a)],_0x13f5c1['state$']])[_0x4bdc55(0x109)](async([_0x3c36fc,_0x352c37])=>{const _0x5a3abd=_0x4bdc55;if(_0x3c36fc[_0x5a3abd(0x156)]===CollaborationEvent[_0x5a3abd(0x19c)]&&(_0x352c37===null||_0x352c37===void 0x0?void 0x0:_0x352c37[_0x5a3abd(0x15b)])===CollaborationStatus[_0x5a3abd(0x122)]){if(_0x3c36fc[_0x5a3abd(0x135)][_0x5a3abd(0x11b)]['some'](_0x533c9d=>_0x533c9d['id']===RevertRevisionMutation['id'])){if(await _0x359afb()){var _0x29f8c2;this[_0x5a3abd(0x10e)][_0x5a3abd(0x155)](),_0x48eb7c[_0x5a3abd(0x10d)](),this[_0x5a3abd(0x15e)]&&clearTimeout(this[_0x5a3abd(0x15e)]),await((_0x29f8c2=this[_0x5a3abd(0x119)])===null||_0x29f8c2===void 0x0?void 0x0:_0x29f8c2[_0x5a3abd(0x14b)]());}}}});if(_0x1e2ee2)this[_0x4bdc55(0x15e)]=setTimeout(()=>{const _0xdf4db8=_0x4bdc55;_0x48eb7c[_0xdf4db8(0x10d)](),this['_messageService'][_0xdf4db8(0xfe)]({'content':this['_localeService']['t'](_0xdf4db8(0x145)),'type':MessageType['Error'],'duration':0xbb8});},0x1388);}async[_0x126485(0x143)](_0x501524,_0x365cc0){const _0x12ecaa=_0x126485;await this[_0x12ecaa(0x105)](_0x501524,_0x365cc0),_0x501524['activeSheet$'][_0x12ecaa(0x141)](takeUntil(this[_0x12ecaa(0x13d)]))[_0x12ecaa(0x109)](_0x1e2021=>{const _0x45fc43=_0x12ecaa;if(_0x1e2021)this[_0x45fc43(0x108)](_0x1e2021);}),this[_0x12ecaa(0x197)][_0x12ecaa(0x125)]['pipe'](takeUntil(this[_0x12ecaa(0x13d)]))[_0x12ecaa(0x109)](()=>this[_0x12ecaa(0x105)](_0x501524,_0x365cc0));}['_updateURLWithCurrentState'](_0x6034a9,_0x332359=![]){const _0x56e3de=_0x126485,_0x483f97=this[_0x56e3de(0x197)][_0x56e3de(0xe2)](_0x56e3de(0x15d));if(_0x6034a9[_0x56e3de(0x107)]()!==_0x483f97)this[_0x56e3de(0x197)][_0x56e3de(0x19a)](_0x56e3de(0x15d),_0x6034a9[_0x56e3de(0x107)](),_0x332359);}async['_updateSubUnitFromURLParams'](_0x37211a,_0x50fb2c){const _0x35f234=_0x126485;var _0x5aaad3;if(!_0x50fb2c||!_0x37211a[_0x35f234(0x16f)](_0x50fb2c)){const _0x2f521c=_0x37211a['getUnhiddenWorksheets']()[0x0],_0x489f6a=_0x37211a[_0x35f234(0x16f)](_0x2f521c);if(!_0x489f6a)return;this['_updateURLWithCurrentState'](_0x489f6a,!![]),await this[_0x35f234(0x168)]['executeCommand'](SetWorksheetActivateCommand['id'],{'unitId':_0x37211a[_0x35f234(0x129)](),'subUnitId':_0x2f521c});return;}if(((_0x5aaad3=_0x37211a['getActiveSheet']())===null||_0x5aaad3===void 0x0?void 0x0:_0x5aaad3[_0x35f234(0x107)]())===_0x50fb2c)return;await this[_0x35f234(0x168)][_0x35f234(0xec)](SetWorksheetActivateCommand['id'],{'unitId':_0x37211a[_0x35f234(0x129)](),'subUnitId':_0x50fb2c});}};HistoryLoaderController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager)),__decorateParam(0x3,Inject(HistoryLoaderService)),__decorateParam(0x4,Inject(LocaleService)),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(CollaborationController)),__decorateParam(0x7,ILocalCacheService),__decorateParam(0x8,Inject(DataLoaderService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,IURLService)],HistoryLoaderController);let UniverEditHistoryLoaderPlugin=class UniverEditHistoryLoaderPlugin extends Plugin{constructor(_0x40188f=defaultPluginConfig,_0x583437,_0x388f42){const _0x2ed446=_0x126485;super(),this[_0x2ed446(0x13e)]=_0x40188f,this[_0x2ed446(0xfd)]=_0x583437,this[_0x2ed446(0x185)]=_0x388f42;const {menu:_0x220763,..._0xf63c44}=merge({},defaultPluginConfig,this[_0x2ed446(0x13e)]);if(_0x220763)this[_0x2ed446(0x185)][_0x2ed446(0x177)](_0x2ed446(0xe3),_0x220763,{'merge':!![]});this['_configService']['setConfig'](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0xf63c44);if(this[_0x2ed446(0x13e)]['univerContainerId'])this[_0x2ed446(0x185)]['setConfig'](UNIVER_CONTAINER_ID_KEY,this[_0x2ed446(0x13e)]['univerContainerId']);}['onStarting'](){const _0x24cb65=_0x126485;[[HistoryLoaderService],[HistoryLoaderController]][_0x24cb65(0x167)](_0x49e9ea=>this[_0x24cb65(0xfd)][_0x24cb65(0x14c)](_0x49e9ea));}[_0x126485(0x150)](){const _0x15f4af=_0x126485;this[_0x15f4af(0xfd)][_0x15f4af(0x16a)](HistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderPlugin,_0x126485(0x13a),UniverInstanceType[_0x126485(0x198)]),_defineProperty(UniverEditHistoryLoaderPlugin,_0x126485(0x138),_0x126485(0x123)),_defineProperty(UniverEditHistoryLoaderPlugin,_0x126485(0x174),name),_defineProperty(UniverEditHistoryLoaderPlugin,_0x126485(0x10c),version),UniverEditHistoryLoaderPlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderPlugin);export{EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,HistoryLoaderService,MobileHistoryLoaderService,ToggleEditHistoryOperation,UNIVER_CONTAINER_ID_KEY,UNIVER_HISTORY_CONTAINER_ID,UniverEditHistoryLoaderMobilePlugin,UniverEditHistoryLoaderPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5534(_0x8ac190,_0x67982){_0x8ac190=_0x8ac190-0x10a;const _0x169d40=_0x169d();let _0x553441=_0x169d40[_0x8ac190];return _0x553441;}(function(_0x452e4f,_0x178410){const _0x4f4565=_0x5534,_0x2e6ee3=_0x452e4f();while(!![]){try{const _0x22ed8a=-parseInt(_0x4f4565(0x17e))/0x1*(-parseInt(_0x4f4565(0x139))/0x2)+-parseInt(_0x4f4565(0x160))/0x3*(parseInt(_0x4f4565(0x156))/0x4)+-parseInt(_0x4f4565(0x1e1))/0x5+parseInt(_0x4f4565(0x16b))/0x6*(parseInt(_0x4f4565(0x1f8))/0x7)+parseInt(_0x4f4565(0x234))/0x8+parseInt(_0x4f4565(0x1bd))/0x9*(parseInt(_0x4f4565(0x1a4))/0xa)+-parseInt(_0x4f4565(0x197))/0xb*(parseInt(_0x4f4565(0x121))/0xc);if(_0x22ed8a===_0x178410)break;else _0x2e6ee3['push'](_0x2e6ee3['shift']());}catch(_0x2a2a69){_0x2e6ee3['push'](_0x2e6ee3['shift']());}}}(_0x169d,0xe3ee3),function(_0x1e0ba5,_0xae46b5){const _0x554514=_0x5534;typeof exports=='object'&&typeof module<'u'?_0xae46b5(exports,require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs-pro/edit-history-viewer`),require(`@univerjs-pro/license`),require(`@univerjs-pro/sheets-chart`),require(`@univerjs-pro/sheets-chart-ui`),require(`@univerjs-pro/sheets-pivot`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs-pro/sheets-shape-ui`),require(`@univerjs-pro/sheets-sparkline`),require(`@univerjs-pro/sheets-sparkline-ui`),require(`@univerjs/data-validation`),require(`@univerjs/design`),require(`@univerjs/docs`),require(`@univerjs/docs-ui`),require(`@univerjs/drawing`),require(`@univerjs/drawing-ui`),require(`@univerjs/engine-formula`),require(`@univerjs/engine-render`),require(`@univerjs/network`),require(`@univerjs/rpc`),require(`@univerjs/sheets-conditional-formatting`),require(`@univerjs/sheets-conditional-formatting-ui`),require(`@univerjs/sheets-data-validation`),require(`@univerjs/sheets-data-validation-ui`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets-drawing-ui`),require(`@univerjs/sheets-filter`),require(`@univerjs/sheets-filter-ui`),require(`@univerjs/sheets-formula`),require(`@univerjs/sheets-formula-ui`),require(`@univerjs/sheets-hyper-link`),require(`@univerjs/sheets-hyper-link-ui`),require(`@univerjs/sheets-numfmt`),require(`@univerjs/sheets-table`),require(`@univerjs/sheets-ui`),require(`@univerjs/ui`),require(`rxjs`),require(`@univerjs-pro/collaboration-client-ui`),require(`react`)):typeof define==_0x554514(0x178)&&define[_0x554514(0x1e0)]?define('exports.@univerjs/core.@univerjs/sheets.@univerjs-pro/collaboration.@univerjs-pro/collaboration-client.@univerjs-pro/edit-history-viewer.@univerjs-pro/license.@univerjs-pro/sheets-chart.@univerjs-pro/sheets-chart-ui.@univerjs-pro/sheets-pivot.@univerjs-pro/sheets-shape.@univerjs-pro/sheets-shape-ui.@univerjs-pro/sheets-sparkline.@univerjs-pro/sheets-sparkline-ui.@univerjs/data-validation.@univerjs/design.@univerjs/docs.@univerjs/docs-ui.@univerjs/drawing.@univerjs/drawing-ui.@univerjs/engine-formula.@univerjs/engine-render.@univerjs/network.@univerjs/rpc.@univerjs/sheets-conditional-formatting.@univerjs/sheets-conditional-formatting-ui.@univerjs/sheets-data-validation.@univerjs/sheets-data-validation-ui.@univerjs/sheets-drawing.@univerjs/sheets-drawing-ui.@univerjs/sheets-filter.@univerjs/sheets-filter-ui.@univerjs/sheets-formula.@univerjs/sheets-formula-ui.@univerjs/sheets-hyper-link.@univerjs/sheets-hyper-link-ui.@univerjs/sheets-numfmt.@univerjs/sheets-table.@univerjs/sheets-ui.@univerjs/ui.rxjs.@univerjs-pro/collaboration-client-ui.react'[_0x554514(0x15e)]('.'),_0xae46b5):(_0x1e0ba5=typeof globalThis<'u'?globalThis:_0x1e0ba5||self,_0xae46b5(_0x1e0ba5['UniverProEditHistoryLoader']={},_0x1e0ba5[_0x554514(0x16c)],_0x1e0ba5[_0x554514(0x253)],_0x1e0ba5[_0x554514(0x146)],_0x1e0ba5['UniverProCollaborationClient'],_0x1e0ba5[_0x554514(0x172)],_0x1e0ba5['UniverProLicense'],_0x1e0ba5[_0x554514(0x19c)],_0x1e0ba5[_0x554514(0x1b9)],_0x1e0ba5[_0x554514(0x110)],_0x1e0ba5[_0x554514(0x123)],_0x1e0ba5[_0x554514(0x21d)],_0x1e0ba5[_0x554514(0x233)],_0x1e0ba5['UniverProSheetsSparklineUi'],_0x1e0ba5[_0x554514(0x15b)],_0x1e0ba5['UniverDesign'],_0x1e0ba5[_0x554514(0x276)],_0x1e0ba5['UniverDocsUi'],_0x1e0ba5[_0x554514(0x21b)],_0x1e0ba5[_0x554514(0x186)],_0x1e0ba5[_0x554514(0x1b3)],_0x1e0ba5['UniverEngineRender'],_0x1e0ba5[_0x554514(0x196)],_0x1e0ba5[_0x554514(0x19b)],_0x1e0ba5[_0x554514(0x1d9)],_0x1e0ba5[_0x554514(0x272)],_0x1e0ba5[_0x554514(0x16d)],_0x1e0ba5[_0x554514(0x1e3)],_0x1e0ba5[_0x554514(0x143)],_0x1e0ba5[_0x554514(0x181)],_0x1e0ba5[_0x554514(0x22b)],_0x1e0ba5[_0x554514(0x14d)],_0x1e0ba5['UniverSheetsFormula'],_0x1e0ba5['UniverSheetsFormulaUi'],_0x1e0ba5['UniverSheetsHyperLink'],_0x1e0ba5['UniverSheetsHyperLinkUi'],_0x1e0ba5[_0x554514(0x122)],_0x1e0ba5[_0x554514(0x1d3)],_0x1e0ba5[_0x554514(0x179)],_0x1e0ba5[_0x554514(0x149)],_0x1e0ba5[_0x554514(0x150)],_0x1e0ba5[_0x554514(0x13e)],_0x1e0ba5[_0x554514(0x190)]));}(this,function(_0x20db1e,_0x12090c,_0x4e039e,_0x11130c,_0x5f37e5,_0x59a771,_0x2827be,_0x115e2f,_0x3792f0,_0x2c40b3,_0x3aafca,_0x473700,_0x28b7a8,_0x1d70f4,_0x3401cf,_0x2feaca,_0x2ea4bf,_0x25da9d,_0x5904cb,_0x2eba8a,_0x19085c,_0x43f152,_0x1a4595,_0x5140f3,_0x34d95d,_0x2eefbf,_0x31ce0b,_0x4255aa,_0x264674,_0x40d9f3,_0x2df2bc,_0x4518b8,_0x3ef67c,_0x2bb13c,_0x5042e4,_0xfc5b51,_0x632a83,_0x4fb882,_0x45eeac,_0x28ef43,_0xfca8c,_0x4f45d9,_0x44783d){const _0x15a2d1=_0x5534;Object[_0x15a2d1(0x241)](_0x20db1e,Symbol[_0x15a2d1(0x182)],{'value':'Module'});let _0xbbabb7=_0x15a2d1(0x236);Symbol(_0xbbabb7);let _0x59d7ed={};function _0x5b884f(_0x5b284e){'@babel/helpers - typeof';const _0x17b1cc=_0x15a2d1;return _0x5b884f=typeof Symbol==_0x17b1cc(0x178)&&typeof Symbol[_0x17b1cc(0x26e)]=='symbol'?function(_0x1ca8c8){return typeof _0x1ca8c8;}:function(_0x2ed122){const _0x31c9a9=_0x17b1cc;return _0x2ed122&&typeof Symbol==_0x31c9a9(0x178)&&_0x2ed122[_0x31c9a9(0x167)]===Symbol&&_0x2ed122!==Symbol[_0x31c9a9(0x17d)]?_0x31c9a9(0x23f):typeof _0x2ed122;},_0x5b884f(_0x5b284e);}function _0x396106(_0x150647,_0x73eef6){const _0x3b8fe3=_0x15a2d1;if(_0x5b884f(_0x150647)!=_0x3b8fe3(0x1de)||!_0x150647)return _0x150647;var _0x1dcb9b=_0x150647[Symbol['toPrimitive']];if(_0x1dcb9b!==void 0x0){var _0x44208d=_0x1dcb9b[_0x3b8fe3(0x151)](_0x150647,_0x73eef6||_0x3b8fe3(0x24f));if(_0x5b884f(_0x44208d)!=_0x3b8fe3(0x1de))return _0x44208d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x73eef6===_0x3b8fe3(0x1c7)?String:Number)(_0x150647);}function _0x599f73(_0x447f7e){const _0x25edec=_0x15a2d1;var _0x3f9a0f=_0x396106(_0x447f7e,_0x25edec(0x1c7));return _0x5b884f(_0x3f9a0f)==_0x25edec(0x23f)?_0x3f9a0f:_0x3f9a0f+'';}function _0x47f855(_0x294712,_0x16654e,_0x40c880){return(_0x16654e=_0x599f73(_0x16654e))in _0x294712?Object['defineProperty'](_0x294712,_0x16654e,{'value':_0x40c880,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x294712[_0x16654e]=_0x40c880,_0x294712;}function _0xe0d68f(_0x5b6de0,_0xc6729d){return function(_0x1e1bdc,_0x670906){_0xc6729d(_0x1e1bdc,_0x670906,_0x5b6de0);};}function _0x1b6269(_0x5bb460,_0x1b5994,_0x54af58,_0x31aaec){const _0xeddc6c=_0x15a2d1;var _0x196b62=arguments[_0xeddc6c(0x277)],_0x17aec3=_0x196b62<0x3?_0x1b5994:_0x31aaec===null?_0x31aaec=Object['getOwnPropertyDescriptor'](_0x1b5994,_0x54af58):_0x31aaec,_0xe6af13;if(typeof Reflect==_0xeddc6c(0x1de)&&typeof Reflect['decorate']==_0xeddc6c(0x178))_0x17aec3=Reflect[_0xeddc6c(0x26a)](_0x5bb460,_0x1b5994,_0x54af58,_0x31aaec);else{for(var _0x48c7b5=_0x5bb460[_0xeddc6c(0x277)]-0x1;_0x48c7b5>=0x0;_0x48c7b5--)(_0xe6af13=_0x5bb460[_0x48c7b5])&&(_0x17aec3=(_0x196b62<0x3?_0xe6af13(_0x17aec3):_0x196b62>0x3?_0xe6af13(_0x1b5994,_0x54af58,_0x17aec3):_0xe6af13(_0x1b5994,_0x54af58))||_0x17aec3);}return _0x196b62>0x3&&_0x17aec3&&Object['defineProperty'](_0x1b5994,_0x54af58,_0x17aec3),_0x17aec3;}let _0x4ee5fa='UNIVER_CONTAINER_ID',_0x149c55='univer-history-container',_0x5664ee=class extends _0x12090c['Disposable']{constructor(_0x369246,_0x59e355,_0x5368d9,_0x1375e4,_0x52402a,_0x922519,_0x52b751,_0x1a687f,_0x787c1f,_0x4f816b){const _0x55f66d=_0x15a2d1;super(),this[_0x55f66d(0x22a)]=_0x369246,this[_0x55f66d(0x12a)]=_0x59e355,this[_0x55f66d(0x1e4)]=_0x5368d9,this[_0x55f66d(0x250)]=_0x1375e4,this[_0x55f66d(0x1e8)]=_0x52402a,this[_0x55f66d(0x238)]=_0x922519,this[_0x55f66d(0x1e7)]=_0x52b751,this[_0x55f66d(0x188)]=_0x1a687f,this[_0x55f66d(0x155)]=_0x787c1f,this[_0x55f66d(0x137)]=_0x4f816b,_0x47f855(this,_0x55f66d(0x153),new _0xfca8c[(_0x55f66d(0x1c1))](null)),_0x47f855(this,_0x55f66d(0x117),this[_0x55f66d(0x153)][_0x55f66d(0x1d1)]()),_0x47f855(this,'_disposableCollection',new _0x12090c['DisposableCollection']()),_0x47f855(this,'_pluginMap',new Map()),_0x47f855(this,'_internalWebWorker',null),this['_init']();}get[_0x15a2d1(0x20d)](){const _0x558708=_0x15a2d1;return this[_0x558708(0x153)]['value'];}[_0x15a2d1(0x125)](){const _0x5175fc=_0x15a2d1;this[_0x5175fc(0x128)](),this[_0x5175fc(0x266)]();}[_0x15a2d1(0x128)](){const _0x385722=_0x15a2d1;var _0x3415d9;let _0xc86b75=(_0x3415d9=this[_0x385722(0x1e4)][_0x385722(0x21a)](_0x385722(0x248)))==null?'univer-container':_0x3415d9,_0x42b243=document[_0x385722(0x223)](_0xc86b75);if(!_0x42b243)return;let _0x47d7f2=document[_0x385722(0x1dc)](_0x385722(0x22f));_0x47d7f2['id']=_0x149c55,_0x47d7f2[_0x385722(0x1ce)]['uComp']='history-container',_0x47d7f2['style']['position']=_0x385722(0x251),_0x47d7f2['style'][_0x385722(0x177)]='0',_0x47d7f2[_0x385722(0x1f7)][_0x385722(0x1c6)]='0',_0x47d7f2['style'][_0x385722(0x13f)]=_0x385722(0x1fc),_0x47d7f2[_0x385722(0x1f7)]['height']=_0x385722(0x1fc),_0x47d7f2[_0x385722(0x1f7)][_0x385722(0x195)]='49',_0x47d7f2[_0x385722(0x1f7)]['display']=_0x385722(0x18c),_0x42b243[_0x385722(0x24b)](_0x47d7f2);}['_initPlugins'](){const _0x1d1e46=_0x15a2d1;[[_0x43f152[_0x1d1e46(0x17f)]],[_0x28ef43[_0x1d1e46(0x1ca)],{'container':_0x149c55,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x28ef43[_0x1d1e46(0x1af)],null]]}],[_0x1a4595[_0x1d1e46(0x173)]],[_0x5904cb[_0x1d1e46(0x247)],{'override':[[_0x5904cb[_0x1d1e46(0x152)],null]]}],[_0x2ea4bf['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x25da9d[_0x1d1e46(0x1a5)]],[_0x632a83[_0x1d1e46(0x163)]],[_0x4e039e[_0x1d1e46(0x20c)],{'notExecuteFormula':!0x0}],[_0x45eeac[_0x1d1e46(0x183)]],[_0x3ef67c[_0x1d1e46(0x232)]],[_0x2bb13c[_0x1d1e46(0x237)]],[_0x11130c[_0x1d1e46(0x112)]],[_0x2df2bc[_0x1d1e46(0x1d5)]],[_0x4518b8[_0x1d1e46(0x118)]],[_0x34d95d[_0x1d1e46(0x24c)]],[_0x2eefbf[_0x1d1e46(0x264)]],[_0x5042e4['UniverSheetsHyperLinkPlugin']],[_0xfc5b51[_0x1d1e46(0x1ed)]],[_0x3401cf[_0x1d1e46(0x165)]],[_0x31ce0b['UniverSheetsDataValidationPlugin']],[_0x4255aa[_0x1d1e46(0x275)]],[_0x19085c[_0x1d1e46(0x1eb)],{'notExecuteFormula':!0x0}],[_0x2eba8a[_0x1d1e46(0x15c)]],[_0x264674[_0x1d1e46(0x17a)]],[_0x40d9f3[_0x1d1e46(0x1d4)]],[_0x28b7a8[_0x1d1e46(0x175)]],[_0x1d70f4['UniverSheetSparklineUIPlugin']],[_0x115e2f[_0x1d1e46(0x18d)]],[_0x3792f0[_0x1d1e46(0x258)]],[_0x3aafca['UniverSheetsShapePlugin']],[_0x473700[_0x1d1e46(0x141)]],[_0x2c40b3[_0x1d1e46(0x133)],{'notExecuteFormula':!0x0}],[_0x4fb882[_0x1d1e46(0x1bc)]]][_0x1d1e46(0x1f9)](([_0x1e92ad,_0x3238d0])=>this[_0x1d1e46(0x26d)](_0x1e92ad,_0x3238d0));}[_0x15a2d1(0x1fd)](){const _0xa316a6=_0x15a2d1;super[_0xa316a6(0x1fd)](),this[_0xa316a6(0x134)](),this[_0xa316a6(0x14f)]['clear']();}[_0x15a2d1(0x26d)](_0x253daa,_0x3d57b1,_0x318b84){const _0x1c3cfc=_0x15a2d1;if(this[_0x1c3cfc(0x14f)]['has'](_0x253daa[_0x1c3cfc(0x119)])&&!_0x318b84)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x253daa[_0x1c3cfc(0x119)]+'\x20has\x20been\x20registered.');this[_0x1c3cfc(0x14f)][_0x1c3cfc(0x19f)](_0x253daa[_0x1c3cfc(0x119)],[_0x253daa,_0x3d57b1]);}['getAllPlugins'](){const _0x2fbcb2=_0x15a2d1;return Array['from'](this['_pluginMap'][_0x2fbcb2(0x169)]());}[_0x15a2d1(0x203)](_0x4ef3b2,_0x1ddb58){const _0x4c9b78=_0x15a2d1;let _0x50382e=document['getElementById'](_0x149c55);_0x50382e&&(_0x50382e[_0x4c9b78(0x1f7)]['display']=_0x4c9b78(0x185),this['_initUniver'](_0x4ef3b2,_0x149c55,_0x1ddb58));}[_0x15a2d1(0x134)](){const _0x208a9a=_0x15a2d1;var _0x222dea;this['_disposableCollection'][_0x208a9a(0x1fd)](),(_0x222dea=this[_0x208a9a(0x20d)])==null||_0x222dea[_0x208a9a(0x1fd)](),this[_0x208a9a(0x153)][_0x208a9a(0x25f)](null);let _0x16a8ac=document[_0x208a9a(0x223)](_0x149c55);_0x16a8ac&&(_0x16a8ac[_0x208a9a(0x1f7)][_0x208a9a(0x111)]=_0x208a9a(0x18c),this[_0x208a9a(0x265)]&&(this[_0x208a9a(0x265)][_0x208a9a(0x12f)](),this[_0x208a9a(0x265)]=null));}[_0x15a2d1(0x19d)](_0xd26b09,_0xbafca1,_0xe5721c){const _0x59023b=_0x15a2d1;var _0x410457,_0x42fc37,_0x16cc98,_0x2a6e38,_0x2e318e;if(this[_0x59023b(0x20d)])return;let _0x17e413=new _0x12090c[(_0x59023b(0x219))]({'locales':{[this[_0x59023b(0x22a)][_0x59023b(0x13d)]()]:this[_0x59023b(0x22a)][_0x59023b(0x164)]()},'override':[[_0x12090c['IAuthzIoService'],{'useClass':_0x5f37e5[_0x59023b(0x161)]}]]}),_0x217bf3=_0x17e413[_0x59023b(0x1a7)]();this['disposeWithMe'](this[_0x59023b(0x137)][_0x59023b(0x132)][_0x59023b(0x1a9)](_0x73d3a9=>{const _0x4614a2=_0x59023b;_0x217bf3[_0x4614a2(0x10e)](_0x12090c[_0x4614a2(0x220)])[_0x4614a2(0x1b6)](_0x73d3a9);})),this[_0x59023b(0x18a)](this[_0x59023b(0x137)]['currentTheme$'][_0x59023b(0x1a9)](_0x3f56ca=>{const _0x456907=_0x59023b;_0x217bf3[_0x456907(0x10e)](_0x12090c[_0x456907(0x220)])[_0x456907(0x24e)](_0x3f56ca);})),_0x217bf3[_0x59023b(0x10e)](_0x12090c[_0x59023b(0x255)])[_0x59023b(0x23d)](this[_0x59023b(0x22a)][_0x59023b(0x13d)]()),_0x217bf3[_0x59023b(0x10e)](_0x12090c[_0x59023b(0x14c)])[_0x59023b(0x222)](_0x5f37e5[_0x59023b(0x189)],this['_configService']['getConfig'](_0x5f37e5['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x148f4a=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x2827be[_0x59023b(0x217)]);_0x148f4a&&_0x17e413['registerPlugin'](_0x2827be[_0x59023b(0x229)],{'license':_0x148f4a['ls']});let _0x418fa1=(_0x410457=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x59023b(0x236)))==null?void 0x0:_0x410457['workerURL'],_0x1ec08a=!!_0x418fa1;_0x1ec08a&&(this[_0x59023b(0x265)]=_0x418fa1 instanceof Worker?_0x418fa1:null,_0x17e413['registerPlugin'](_0x5140f3['UniverRPCMainThreadPlugin'],{'workerURL':_0x418fa1})),this['_pluginMap']['forEach'](([_0x45b702,_0x2a6623])=>{const _0x409077=_0x59023b;_0x17e413[_0x409077(0x26d)](_0x45b702,_0x2a6623);}),_0x17e413['registerPlugin'](_0x59a771[_0x59023b(0x120)],{'historyListServerUrl':(_0x42fc37=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x59023b(0x236)))==null?void 0x0:_0x42fc37['historyListServerUrl'],'historyPanelComponentKey':(_0x16cc98=this[_0x59023b(0x1e4)][_0x59023b(0x21a)]('edit-history-loader.config'))==null?void 0x0:_0x16cc98[_0x59023b(0x1a1)],'historyPanelHidden':(_0x2a6e38=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x59023b(0x236)))==null?void 0x0:_0x2a6e38['historyPanelHidden'],'historyAIassistantEnabled':(_0x2e318e=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x59023b(0x236)))==null?void 0x0:_0x2e318e[_0x59023b(0x1bb)]}),_0x217bf3[_0x59023b(0x26b)](_0x21d355=>{this['_initListener'](_0x21d355,_0xd26b09);}),this[_0x59023b(0x153)][_0x59023b(0x25f)](_0x17e413);let _0x4c1033=_0x217bf3[_0x59023b(0x10e)](_0x59a771['HistoryManagerService']),_0x3e4907=this[_0x59023b(0x25d)](_0xd26b09),_0x50dae9=()=>{const _0x58dc89=_0x59023b;_0xe5721c?_0x4c1033['triggerCustomVersions'](_0xd26b09,_0xbafca1,_0x3e4907,_0xe5721c):_0x4c1033[_0x58dc89(0x260)](_0xd26b09,_0xbafca1,_0x3e4907);};if(this['_messageService']['show']({'content':this['_localeService']['t']('editHistory.info.initializing'),'type':_0x2feaca[_0x59023b(0x211)][_0x59023b(0x17b)]}),_0x1ec08a)try{_0x217bf3[_0x59023b(0x10e)](_0x5140f3[_0x59023b(0x1b8)])[_0x59023b(0x1e9)]()[_0x59023b(0x235)](()=>{_0x50dae9();});}catch{_0x50dae9();}else _0x50dae9();}[_0x15a2d1(0x1ac)](_0x3cb3ea,_0x4124e1){const _0x3b3f1f=_0x15a2d1;let _0x1e1b96=_0x3cb3ea['get'](_0x59a771['HistoryManagerService']);this[_0x3b3f1f(0x13b)][_0x3b3f1f(0x218)](_0x1e1b96['status$'][_0x3b3f1f(0x1a9)](_0x36fb7f=>{const _0x5366cb=_0x3b3f1f;switch(_0x36fb7f){case _0x59a771[_0x5366cb(0x1fe)][_0x5366cb(0x249)]:this[_0x5366cb(0x188)][_0x5366cb(0x136)](),this[_0x5366cb(0x155)]['close']();break;case _0x59a771[_0x5366cb(0x1fe)]['Exited']:this[_0x5366cb(0x250)][_0x5366cb(0x145)](_0x14d3b7['id']),this[_0x5366cb(0x134)]();break;case _0x59a771[_0x5366cb(0x1fe)][_0x5366cb(0x269)]:this[_0x5366cb(0x134)](),this['_messageService'][_0x5366cb(0x226)]({'content':this[_0x5366cb(0x22a)]['t'](_0x5366cb(0x18f)),'type':_0x2feaca[_0x5366cb(0x211)][_0x5366cb(0x269)],'duration':0xbb8});break;default:break;}})),this[_0x3b3f1f(0x13b)][_0x3b3f1f(0x218)](_0x1e1b96[_0x3b3f1f(0x1c0)][_0x3b3f1f(0x1a9)](async _0x4c5fc6=>{const _0x2a3e21=_0x3b3f1f;_0x4c5fc6&&this[_0x2a3e21(0x250)][_0x2a3e21(0x145)](_0x11130c[_0x2a3e21(0x114)]['id'],{'unitId':_0x4124e1,'revision':_0x4c5fc6});}));}[_0x15a2d1(0x25d)](_0x297a76){const _0x2091d4=_0x15a2d1;let _0x3ced6e=this[_0x2091d4(0x12a)]['getUnit'](_0x297a76)[_0x2091d4(0x1c5)]()['map'](_0x44e299=>_0x44e299['getSheetId']()),_0x366534=new _0x4e039e[(_0x2091d4(0x1a2))](_0x297a76)['id'],_0x455873=_0x3ced6e['map'](_0x25b7c3=>new _0x4e039e[(_0x2091d4(0x21e))](_0x297a76,_0x25b7c3)['id']),_0x1d09e=_0x3ced6e[_0x2091d4(0x1fa)](_0x4a8e2b=>this[_0x2091d4(0x1e7)][_0x2091d4(0x1c4)](_0x297a76,_0x4a8e2b)['map'](_0x18db3e=>new _0x4e039e['RangeProtectionPermissionEditPoint'](_0x297a76,_0x4a8e2b,_0x18db3e[_0x2091d4(0x204)])['id']))[_0x2091d4(0x1a6)](),_0x1f2119=new _0x4e039e[(_0x2091d4(0x1cc))](_0x297a76)['id'];return this[_0x2091d4(0x238)][_0x2091d4(0x14b)]([_0x366534,..._0x455873,..._0x1d09e,_0x1f2119])[_0x2091d4(0x12c)](_0x1dd965=>!!_0x1dd965[_0x2091d4(0x25b)]);}};_0x5664ee=_0x1b6269([_0xe0d68f(0x0,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c['LocaleService'])),_0xe0d68f(0x1,_0x12090c[_0x15a2d1(0x170)]),_0xe0d68f(0x2,_0x12090c[_0x15a2d1(0x14c)]),_0xe0d68f(0x3,_0x12090c[_0x15a2d1(0x1aa)]),_0xe0d68f(0x4,_0x28ef43[_0x15a2d1(0x221)]),_0xe0d68f(0x5,_0x12090c[_0x15a2d1(0x215)]),_0xe0d68f(0x6,(0x0,_0x12090c['Inject'])(_0x4e039e[_0x15a2d1(0x159)])),_0xe0d68f(0x7,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x28ef43[_0x15a2d1(0x1af)])),_0xe0d68f(0x8,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x28ef43[_0x15a2d1(0x1da)])),_0xe0d68f(0x9,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x220)]))],_0x5664ee);let _0x32513a={'id':'univer.operation.toggle-edit-history','type':_0x12090c['CommandType'][_0x15a2d1(0x1ea)],'handler':_0x7994d1=>{const _0xcfa4e8=_0x15a2d1;let _0x22e94b=_0x7994d1['get'](_0x5664ee),{unitId:_0x282271}=(0x0,_0x4e039e[_0xcfa4e8(0x243)])(_0x7994d1['get'](_0x12090c[_0xcfa4e8(0x170)]))||{};return _0x282271?(_0x22e94b[_0xcfa4e8(0x203)](_0x282271),!0x0):!0x1;}},_0x14d3b7={'id':_0x15a2d1(0x140),'type':_0x12090c[_0x15a2d1(0x154)]['OPERATION'],'handler':()=>!0x0};var _0x41aedd=_0x15a2d1(0x1d2),_0x2dc78c=_0x15a2d1(0x25a);function _0x59446f({ref:_0x33edc9,..._0x4e212c}){const _0x2857bb=_0x15a2d1;let {icon:_0x3e7956,id:_0x20dc35,className:_0x34e748,extend:_0x3313c0,..._0x46c599}=_0x4e212c,_0x57041c=(_0x2857bb(0x1b4)+_0x20dc35+'\x20'+(_0x34e748||''))[_0x2857bb(0x228)](),_0x23264d=(0x0,_0x44783d['useRef'])('_'+_0x2f7601());return _0x80080c(_0x3e7956,''+_0x20dc35,{'defIds':_0x3e7956[_0x2857bb(0x1d6)],'idSuffix':_0x23264d[_0x2857bb(0x148)]},{'ref':_0x33edc9,'className':_0x57041c,..._0x46c599},_0x3313c0);}function _0x80080c(_0x1e0fc4,_0x2210fc,_0x5bcca5,_0x1fdbd1,_0x52cc71){const _0x899596=_0x15a2d1;return(0x0,_0x44783d[_0x899596(0x1dc)])(_0x1e0fc4[_0x899596(0x1e6)],{'key':_0x2210fc,..._0x427aa5(_0x1e0fc4,_0x5bcca5,_0x52cc71),..._0x1fdbd1},(_0x1579b7(_0x1e0fc4,_0x5bcca5)['children']||[])[_0x899596(0x1fa)]((_0x4f2187,_0x5a00ed)=>_0x80080c(_0x4f2187,_0x2210fc+'-'+_0x1e0fc4['tag']+'-'+_0x5a00ed,_0x5bcca5,void 0x0,_0x52cc71)));}function _0x427aa5(_0x403699,_0x1eec8c,_0x36ae0f){const _0x1beb63=_0x15a2d1;let _0x52ba34={..._0x403699[_0x1beb63(0x225)]};_0x36ae0f!=null&&_0x36ae0f[_0x1beb63(0x191)]&&_0x52ba34[_0x1beb63(0x263)]===_0x1beb63(0x191)&&(_0x52ba34[_0x1beb63(0x263)]=_0x36ae0f[_0x1beb63(0x191)]),_0x403699[_0x1beb63(0x1e6)]===_0x1beb63(0x1c8)&&_0x52ba34['id']&&(_0x52ba34['id']+=_0x1eec8c['idSuffix']),Object[_0x1beb63(0x270)](_0x52ba34)['forEach'](([_0x5ad5a8,_0x507d70])=>{const _0x811f71=_0x1beb63;_0x5ad5a8===_0x811f71(0x1c8)&&typeof _0x507d70=='string'&&(_0x52ba34[_0x5ad5a8]=_0x507d70[_0x811f71(0x256)](/url\(#(.*)\)/,_0x811f71(0x1e2)+_0x1eec8c[_0x811f71(0x25c)]+')'));});let {defIds:_0x407e39}=_0x1eec8c;return!_0x407e39||_0x407e39[_0x1beb63(0x277)]===0x0?_0x52ba34:(_0x403699['tag']==='use'&&_0x52ba34['xlink:href']&&(_0x52ba34[_0x1beb63(0x209)]+=_0x1eec8c[_0x1beb63(0x25c)]),Object[_0x1beb63(0x270)](_0x52ba34)[_0x1beb63(0x1f9)](([_0x326547,_0x318bc0])=>{const _0xe5faae=_0x1beb63;typeof _0x318bc0==_0xe5faae(0x1c7)&&(_0x52ba34[_0x326547]=_0x318bc0[_0xe5faae(0x256)](/url\(#(.*)\)/,'url(#$1'+_0x1eec8c[_0xe5faae(0x25c)]+')'));}),_0x52ba34);}function _0x1579b7(_0x1c48b2,_0x24bdeb){const _0x2a145a=_0x15a2d1;var _0x5f1869;let {defIds:_0x3cf1c1}=_0x24bdeb;return!_0x3cf1c1||_0x3cf1c1[_0x2a145a(0x277)]===0x0?_0x1c48b2:_0x1c48b2[_0x2a145a(0x1e6)]==='defs'&&(_0x5f1869=_0x1c48b2['children'])!=null&&_0x5f1869[_0x2a145a(0x277)]?{..._0x1c48b2,'children':_0x1c48b2[_0x2a145a(0x193)][_0x2a145a(0x1fa)](_0x324b5e=>typeof _0x324b5e['attrs']['id']==_0x2a145a(0x1c7)&&_0x3cf1c1&&_0x3cf1c1[_0x2a145a(0x254)](_0x324b5e['attrs']['id'])?{..._0x324b5e,'attrs':{..._0x324b5e[_0x2a145a(0x225)],'id':_0x324b5e[_0x2a145a(0x225)]['id']+_0x24bdeb[_0x2a145a(0x25c)]}}:_0x324b5e)}:_0x1c48b2;}function _0x2f7601(){const _0x6fd8bf=_0x15a2d1;return Math[_0x6fd8bf(0x240)]()[_0x6fd8bf(0x261)](0x24)[_0x6fd8bf(0x10d)](0x2,0x8);}_0x59446f[_0x15a2d1(0x271)]=_0x15a2d1(0x11c);let _0x486d1b={'tag':_0x15a2d1(0x24d),'attrs':{'xmlns':_0x15a2d1(0x252),'fill':_0x15a2d1(0x18c),'viewBox':_0x15a2d1(0x23a),'width':_0x15a2d1(0x1f2),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x15a2d1(0x1df)},'children':[{'tag':_0x15a2d1(0x147),'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':_0x15a2d1(0x147),'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':_0x15a2d1(0x200),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x15a2d1(0x1db)},'children':[{'tag':_0x15a2d1(0x147),'attrs':{'fill':_0x15a2d1(0x187),'d':_0x15a2d1(0x245)}}]}]}],'defIds':[_0x15a2d1(0x1db)]},_0x11966c=(0x0,_0x44783d['forwardRef'])(function(_0x33d0a2,_0xf16eb5){const _0x5849c7=_0x15a2d1;return(0x0,_0x44783d[_0x5849c7(0x1dc)])(_0x59446f,Object[_0x5849c7(0x1cd)]({},_0x33d0a2,{'id':_0x5849c7(0x15d),'ref':_0xf16eb5,'icon':_0x486d1b}));});_0x11966c['displayName']=_0x15a2d1(0x26c);let _0xc44c27=function(_0x4ba033){const _0x5d8831=_0x15a2d1;return _0x4ba033[_0x4ba033['UNIVER_UNKNOWN']=0x0]=_0x5d8831(0x22c),_0x4ba033[_0x4ba033[_0x5d8831(0x168)]=0x1]='UNIVER_DOC',_0x4ba033[_0x4ba033['UNIVER_SHEET']=0x2]=_0x5d8831(0x201),_0x4ba033[_0x4ba033[_0x5d8831(0x157)]=0x3]='UNIVER_SLIDE',_0x4ba033[_0x4ba033[_0x5d8831(0x246)]=0x4]='UNIVER_PROJECT',_0x4ba033[_0x4ba033[_0x5d8831(0x184)]=-0x1]='UNRECOGNIZED',_0x4ba033;}({});function _0x29682f(_0x145d6a){const _0xe3b017=_0x15a2d1;return{'id':_0x32513a['id'],'type':_0x28ef43[_0xe3b017(0x130)][_0xe3b017(0x20f)],'icon':_0xe3b017(0x26c),'tooltip':_0xe3b017(0x24a),'hidden$':(0x0,_0x28ef43['getMenuHiddenObservable'])(_0x145d6a,_0x12090c[_0xe3b017(0x230)]['UNIVER_SHEET']),'disabled$':(0x0,_0x45eeac['getCurrentRangeDisable$'])(_0x145d6a,{'workbookTypes':[_0x4e039e[_0xe3b017(0x11e)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x1262a3={[_0x28ef43[_0x15a2d1(0x231)]['OTHERS']]:{[_0x32513a['id']]:{'order':0.2,'menuItemFactory':_0x29682f}}},_0x549ca8=class extends _0x12090c[_0x15a2d1(0x1dd)]{constructor(_0x1ce0de,_0x2e7210,_0xa1a08,_0x417b3d,_0x44daa8,_0x17de71,_0x8cb21,_0x2f660b,_0x3bf7ec,_0x180da8,_0x33e121){const _0xe26ddd=_0x15a2d1;super(),this[_0xe26ddd(0x250)]=_0x1ce0de,this[_0xe26ddd(0x213)]=_0x2e7210,this[_0xe26ddd(0x158)]=_0xa1a08,this[_0xe26ddd(0x20a)]=_0x417b3d,this['_localeService']=_0x44daa8,this[_0xe26ddd(0x1e8)]=_0x17de71,this[_0xe26ddd(0x180)]=_0x8cb21,this[_0xe26ddd(0x10f)]=_0x2f660b,this['_dataLoaderService']=_0x3bf7ec,this['_univerInstanceService']=_0x180da8,this[_0xe26ddd(0x127)]=_0x33e121,_0x47f855(this,'_revertErrorTimer',null),this[_0xe26ddd(0x125)]();}['_init'](){const _0x115f27=_0x15a2d1;[_0x32513a,_0x14d3b7]['forEach'](_0x451e37=>this[_0x115f27(0x18a)]((0x0,_0x12090c[_0x115f27(0x208)])(this['_commandService']['registerCommand'](_0x451e37)))),this[_0x115f27(0x18a)](this[_0x115f27(0x158)][_0x115f27(0x1d0)](_0x115f27(0x26c),_0x11966c)),this['_menuManagerService']['mergeMenu'](_0x1262a3),this[_0x115f27(0x18a)](this['_commandService']['onCommandExecuted'](async(_0x2a3ac7,_0x3b309d)=>{const _0x2e2c60=_0x115f27;if(_0x2a3ac7['id']===_0x11130c[_0x2e2c60(0x114)]['id']){let {unitId:_0x39482a}=_0x2a3ac7[_0x2e2c60(0x26f)];this[_0x2e2c60(0x1e8)][_0x2e2c60(0x226)]({'content':this['_localeService']['t'](_0x2e2c60(0x23e)),'type':_0x2feaca[_0x2e2c60(0x211)][_0x2e2c60(0x17b)],'duration':0x1388});let _0x89392e=this['_collaborationController'][_0x2e2c60(0x22e)](_0x39482a);_0x3b309d!=null&&_0x3b309d['fromCollab']?this[_0x2e2c60(0x124)](_0x89392e,async()=>(setTimeout(()=>window['location'][_0x2e2c60(0x244)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x89392e,async()=>{const _0x1b9137=_0x2e2c60;let _0x270109=this[_0x1b9137(0x12a)][_0x1b9137(0x1b5)](_0xc44c27[_0x1b9137(0x201)]),_0x195cd5=_0x270109==null?void 0x0:_0x270109[_0x1b9137(0x274)]();if(!_0x195cd5)return!0x1;this[_0x1b9137(0x12a)][_0x1b9137(0x1d8)](_0x39482a);let _0x379740=await this[_0x1b9137(0x15f)][_0x1b9137(0x12b)](_0x39482a,_0xc44c27['UNIVER_SHEET']);return _0x379740&&_0x379740 instanceof _0x12090c[_0x1b9137(0x11a)]?(await this[_0x1b9137(0x212)](_0x379740,_0x195cd5[_0x1b9137(0x207)]()),!0x0):!0x1;});}}));}[_0x15a2d1(0x124)](_0x3e05fd,_0xf92a80,_0x31f640=!0x1){const _0x4fec14=_0x15a2d1;let _0x32aa1d=(0x0,_0xfca8c[_0x4fec14(0x1b2)])([_0x3e05fd['session'][_0x4fec14(0x1e5)],_0x3e05fd[_0x4fec14(0x19e)]])[_0x4fec14(0x1a9)](async([_0x377e57,_0x108ba2])=>{const _0x83d42a=_0x4fec14;if(_0x377e57['eventID']===_0x11130c[_0x83d42a(0x12d)][_0x83d42a(0x1ba)]&&(_0x108ba2==null?void 0x0:_0x108ba2['status'])===_0x5f37e5['CollaborationStatus'][_0x83d42a(0x257)]&&_0x377e57['data'][_0x83d42a(0x194)][_0x83d42a(0x14a)](_0x492f90=>_0x492f90['id']===_0x11130c['RevertRevisionMutation']['id'])&&await _0xf92a80()){var _0x45da7f;this[_0x83d42a(0x20a)][_0x83d42a(0x134)](),_0x32aa1d[_0x83d42a(0x15a)](),this[_0x83d42a(0x1be)]&&clearTimeout(this[_0x83d42a(0x1be)]),await((_0x45da7f=this[_0x83d42a(0x10f)])==null?void 0x0:_0x45da7f[_0x83d42a(0x224)]()),this[_0x83d42a(0x1e8)][_0x83d42a(0x1f6)]();}});_0x31f640&&(this[_0x4fec14(0x1be)]=setTimeout(()=>{const _0x20506b=_0x4fec14;_0x32aa1d[_0x20506b(0x15a)](),this['_messageService']['show']({'content':this[_0x20506b(0x22a)]['t'](_0x20506b(0x21f)),'type':_0x2feaca[_0x20506b(0x211)][_0x20506b(0x269)],'duration':0xbb8});},0x1388));}async[_0x15a2d1(0x212)](_0x239f2f,_0x3d8d1b){const _0x399877=_0x15a2d1;await this['_updateSubUnitFromURLParams'](_0x239f2f,_0x3d8d1b),_0x239f2f[_0x399877(0x20e)][_0x399877(0x1a0)]((0x0,_0xfca8c[_0x399877(0x10c)])(this[_0x399877(0x216)]))[_0x399877(0x1a9)](_0x3ac944=>{const _0x35c1b5=_0x399877;_0x3ac944&&this[_0x35c1b5(0x115)](_0x3ac944);}),this[_0x399877(0x127)][_0x399877(0x1ab)][_0x399877(0x1a0)]((0x0,_0xfca8c['takeUntil'])(this[_0x399877(0x216)]))[_0x399877(0x1a9)](()=>this['_updateSubUnitFromURLParams'](_0x239f2f,_0x3d8d1b));}[_0x15a2d1(0x115)](_0x517210,_0x69f378=!0x1){const _0x113a56=_0x15a2d1;let _0x2b1641=this[_0x113a56(0x127)]['getParam'](_0x113a56(0x1d7));_0x517210['getSheetId']()!==_0x2b1641&&this[_0x113a56(0x127)][_0x113a56(0x1ae)]('subunit',_0x517210[_0x113a56(0x207)](),_0x69f378);}async['_updateSubUnitFromURLParams'](_0x24b765,_0x137b7a){const _0xb10121=_0x15a2d1;var _0x1c8042;if(!_0x137b7a||!_0x24b765[_0xb10121(0x205)](_0x137b7a)){let _0x5d6539=_0x24b765[_0xb10121(0x138)]()[0x0],_0x51d535=_0x24b765[_0xb10121(0x205)](_0x5d6539);if(!_0x51d535)return;this[_0xb10121(0x115)](_0x51d535,!0x0),await this[_0xb10121(0x250)][_0xb10121(0x145)](_0x4e039e['SetWorksheetActivateCommand']['id'],{'unitId':_0x24b765[_0xb10121(0x1f4)](),'subUnitId':_0x5d6539});return;}((_0x1c8042=_0x24b765[_0xb10121(0x274)]())==null?void 0x0:_0x1c8042[_0xb10121(0x207)]())!==_0x137b7a&&await this[_0xb10121(0x250)][_0xb10121(0x145)](_0x4e039e[_0xb10121(0x1a3)]['id'],{'unitId':_0x24b765[_0xb10121(0x1f4)](),'subUnitId':_0x137b7a});}};_0x549ca8=_0x1b6269([_0xe0d68f(0x0,_0x12090c[_0x15a2d1(0x1aa)]),_0xe0d68f(0x1,_0x28ef43['IMenuManagerService']),_0xe0d68f(0x2,(0x0,_0x12090c['Inject'])(_0x28ef43[_0x15a2d1(0x13a)])),_0xe0d68f(0x3,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5664ee)),_0xe0d68f(0x4,(0x0,_0x12090c['Inject'])(_0x12090c[_0x15a2d1(0x255)])),_0xe0d68f(0x5,_0x28ef43[_0x15a2d1(0x221)]),_0xe0d68f(0x6,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5f37e5[_0x15a2d1(0x1cf)])),_0xe0d68f(0x7,_0x5f37e5[_0x15a2d1(0x1ef)]),_0xe0d68f(0x8,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5f37e5['DataLoaderService'])),_0xe0d68f(0x9,_0x12090c[_0x15a2d1(0x170)]),_0xe0d68f(0xa,_0x4f45d9[_0x15a2d1(0x239)])],_0x549ca8);let _0x4019cf=_0x15a2d1(0x113),_0xd4d756=class extends _0x12090c['Disposable']{constructor(_0x32018e,_0x310059,_0x2a6749,_0x5b384e,_0x87093a,_0x173b64,_0x29fc5c,_0x50c010,_0x3c5b2e,_0x245d4e){const _0x54b8a9=_0x15a2d1;super(),this[_0x54b8a9(0x22a)]=_0x32018e,this['_univerInstanceService']=_0x310059,this['_configService']=_0x2a6749,this[_0x54b8a9(0x250)]=_0x5b384e,this[_0x54b8a9(0x1e8)]=_0x87093a,this[_0x54b8a9(0x238)]=_0x173b64,this[_0x54b8a9(0x1e7)]=_0x29fc5c,this['_dialogService']=_0x50c010,this[_0x54b8a9(0x155)]=_0x3c5b2e,this['_themeService']=_0x245d4e,_0x47f855(this,_0x54b8a9(0x153),new _0xfca8c[(_0x54b8a9(0x1c1))](null)),_0x47f855(this,_0x54b8a9(0x117),this[_0x54b8a9(0x153)]['asObservable']()),_0x47f855(this,_0x54b8a9(0x13b),new _0x12090c[(_0x54b8a9(0x135))]()),_0x47f855(this,'_pluginMap',new Map()),_0x47f855(this,_0x54b8a9(0x265),null),this[_0x54b8a9(0x125)]();}get[_0x15a2d1(0x20d)](){const _0x3dd58b=_0x15a2d1;return this[_0x3dd58b(0x153)]['value'];}[_0x15a2d1(0x125)](){const _0xcb1925=_0x15a2d1;this[_0xcb1925(0x128)](),this['_initPlugins']();}[_0x15a2d1(0x128)](){const _0x481828=_0x15a2d1;var _0x1ea09e;let _0x5e4c88=(_0x1ea09e=this['_configService'][_0x481828(0x21a)]('UNIVER_CONTAINER_ID'))==null?_0x481828(0x116):_0x1ea09e,_0x2af9c1=document[_0x481828(0x223)](_0x5e4c88);if(!_0x2af9c1)return;let _0x4c3c7b=document[_0x481828(0x1dc)]('div');_0x4c3c7b['id']=_0x4019cf,_0x4c3c7b['dataset']['uComp']=_0x481828(0x1f3),_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x1b1)]='absolute',_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x177)]='0',_0x4c3c7b['style']['left']='0',_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x13f)]='100%',_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x242)]=_0x481828(0x1fc),_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x195)]='49',_0x4c3c7b[_0x481828(0x1f7)]['display']='none',_0x2af9c1[_0x481828(0x24b)](_0x4c3c7b);}[_0x15a2d1(0x266)](){const _0x3a951f=_0x15a2d1;[[_0x43f152[_0x3a951f(0x17f)]],[_0x28ef43[_0x3a951f(0x1a8)],{'container':_0x4019cf,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x28ef43[_0x3a951f(0x1af)],null]]}],[_0x1a4595[_0x3a951f(0x173)]],[_0x5904cb[_0x3a951f(0x247)],{'override':[[_0x5904cb[_0x3a951f(0x152)],null]]}],[_0x2ea4bf[_0x3a951f(0x1c2)],{'hasScroll':!0x1}],[_0x25da9d[_0x3a951f(0x1a5)]],[_0x632a83[_0x3a951f(0x163)]],[_0x4e039e[_0x3a951f(0x20c)],{'notExecuteFormula':!0x0}],[_0x45eeac[_0x3a951f(0x1c9)]],[_0x3ef67c[_0x3a951f(0x232)]],[_0x2bb13c[_0x3a951f(0x237)]],[_0x11130c['UniverCollaborationPlugin']],[_0x2df2bc[_0x3a951f(0x1d5)]],[_0x34d95d['UniverSheetsConditionalFormattingPlugin']],[_0x5042e4[_0x3a951f(0x12e)]],[_0xfc5b51[_0x3a951f(0x1ed)]],[_0x3401cf[_0x3a951f(0x165)]],[_0x31ce0b['UniverSheetsDataValidationPlugin']],[_0x4255aa[_0x3a951f(0x21c)]],[_0x19085c[_0x3a951f(0x1eb)],{'notExecuteFormula':!0x0}],[_0x2eba8a[_0x3a951f(0x15c)]],[_0x264674[_0x3a951f(0x17a)]],[_0x40d9f3[_0x3a951f(0x1d4)]],[_0x28b7a8['UniverSheetSparklinePlugin']],[_0x1d70f4[_0x3a951f(0x22d)]],[_0x115e2f[_0x3a951f(0x18d)]],[_0x3792f0[_0x3a951f(0x258)]],[_0x3aafca[_0x3a951f(0x10a)]],[_0x473700[_0x3a951f(0x141)]],[_0x2c40b3[_0x3a951f(0x133)],{'notExecuteFormula':!0x0}],[_0x4fb882[_0x3a951f(0x1bc)]]][_0x3a951f(0x1f9)](([_0xae0e37,_0x520384])=>this[_0x3a951f(0x26d)](_0xae0e37,_0x520384));}[_0x15a2d1(0x1fd)](){const _0xaa9794=_0x15a2d1;super[_0xaa9794(0x1fd)](),this[_0xaa9794(0x134)](),this[_0xaa9794(0x14f)][_0xaa9794(0x1c3)]();}['registerPlugin'](_0x53acb4,_0x55709c,_0x2f1426){const _0x200224=_0x15a2d1;if(this[_0x200224(0x14f)][_0x200224(0x214)](_0x53acb4[_0x200224(0x119)])&&!_0x2f1426)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x53acb4[_0x200224(0x119)]+_0x200224(0x262));this[_0x200224(0x14f)]['set'](_0x53acb4['pluginName'],[_0x53acb4,_0x55709c]);}[_0x15a2d1(0x259)](){const _0x5e0348=_0x15a2d1;return Array[_0x5e0348(0x192)](this[_0x5e0348(0x14f)][_0x5e0348(0x169)]());}[_0x15a2d1(0x203)](_0x5bdf36,_0x1e4b3f){const _0x647261=_0x15a2d1;let _0x82d2b=document[_0x647261(0x223)](_0x4019cf);_0x82d2b&&(_0x82d2b['style'][_0x647261(0x111)]=_0x647261(0x185),this['_initUniver'](_0x5bdf36,_0x4019cf,_0x1e4b3f));}[_0x15a2d1(0x134)](){const _0x2e1011=_0x15a2d1;var _0x4345e9;this[_0x2e1011(0x13b)][_0x2e1011(0x1fd)](),(_0x4345e9=this[_0x2e1011(0x20d)])==null||_0x4345e9['dispose'](),this[_0x2e1011(0x153)][_0x2e1011(0x25f)](null);let _0x164a5c=document[_0x2e1011(0x223)](_0x4019cf);_0x164a5c&&(_0x164a5c['style'][_0x2e1011(0x111)]='none',this[_0x2e1011(0x265)]&&(this[_0x2e1011(0x265)][_0x2e1011(0x12f)](),this['_internalWebWorker']=null));}[_0x15a2d1(0x19d)](_0x158c9f,_0x13f4f1,_0x3dfb9f){const _0x390b6d=_0x15a2d1;var _0x3f16e5,_0xf8d033,_0x1b1812,_0x5df741;if(this['historyUniver'])return;let _0x4b6226=new _0x12090c[(_0x390b6d(0x219))]({'locales':{[this['_localeService'][_0x390b6d(0x13d)]()]:this['_localeService'][_0x390b6d(0x164)]()},'override':[[_0x12090c[_0x390b6d(0x142)],{'useClass':_0x5f37e5[_0x390b6d(0x161)]}]]}),_0x4d09e0=_0x4b6226[_0x390b6d(0x1a7)]();this[_0x390b6d(0x18a)](this[_0x390b6d(0x137)]['darkMode$'][_0x390b6d(0x1a9)](_0x359ccf=>{const _0x254899=_0x390b6d;_0x4d09e0[_0x254899(0x10e)](_0x12090c[_0x254899(0x220)])[_0x254899(0x1b6)](_0x359ccf);})),this[_0x390b6d(0x18a)](this['_themeService']['currentTheme$'][_0x390b6d(0x1a9)](_0x259c0e=>{const _0x442f89=_0x390b6d;_0x4d09e0[_0x442f89(0x10e)](_0x12090c['ThemeService'])[_0x442f89(0x24e)](_0x259c0e);})),_0x4d09e0['get'](_0x12090c['LocaleService'])['setLocale'](this['_localeService'][_0x390b6d(0x13d)]()),_0x4d09e0[_0x390b6d(0x10e)](_0x12090c[_0x390b6d(0x14c)])[_0x390b6d(0x222)](_0x5f37e5[_0x390b6d(0x189)],this['_configService'][_0x390b6d(0x21a)](_0x5f37e5[_0x390b6d(0x189)]));let _0xc68c7f=this[_0x390b6d(0x1e4)][_0x390b6d(0x21a)](_0x2827be['LS_CONFIG_KEY']);_0xc68c7f&&_0x4b6226[_0x390b6d(0x26d)](_0x2827be[_0x390b6d(0x229)],{'license':_0xc68c7f['ls']});let _0x39dd3c=(_0x3f16e5=this['_configService'][_0x390b6d(0x21a)]('edit-history-loader.config'))==null?void 0x0:_0x3f16e5[_0x390b6d(0x174)],_0x41ee3d=!!_0x39dd3c;_0x41ee3d&&(this['_internalWebWorker']=_0x39dd3c instanceof Worker?_0x39dd3c:null,_0x4b6226['registerPlugin'](_0x5140f3[_0x390b6d(0x17c)],{'workerURL':_0x39dd3c})),this[_0x390b6d(0x14f)]['forEach'](([_0x1b720d,_0x399e69])=>{_0x4b6226['registerPlugin'](_0x1b720d,_0x399e69);}),_0x4b6226['registerPlugin'](_0x59a771[_0x390b6d(0x206)],{'historyListServerUrl':(_0xf8d033=this[_0x390b6d(0x1e4)]['getConfig'](_0x390b6d(0x236)))==null?void 0x0:_0xf8d033[_0x390b6d(0x176)],'historyPanelComponentKey':(_0x1b1812=this[_0x390b6d(0x1e4)][_0x390b6d(0x21a)](_0x390b6d(0x236)))==null?void 0x0:_0x1b1812[_0x390b6d(0x1a1)],'historyPanelHidden':(_0x5df741=this[_0x390b6d(0x1e4)]['getConfig'](_0x390b6d(0x236)))==null?void 0x0:_0x5df741[_0x390b6d(0x268)]}),_0x4d09e0[_0x390b6d(0x26b)](_0x2d53ac=>{const _0x15b16c=_0x390b6d;this[_0x15b16c(0x1ac)](_0x2d53ac,_0x158c9f);}),this['_historyUniver$'][_0x390b6d(0x25f)](_0x4b6226);let _0x59f969=_0x4d09e0[_0x390b6d(0x10e)](_0x59a771['HistoryManagerService']),_0x4783a3=this['_checkCanRevert'](_0x158c9f),_0x30f682=()=>{const _0x144802=_0x390b6d;_0x3dfb9f?_0x59f969[_0x144802(0x227)](_0x158c9f,_0x13f4f1,_0x4783a3,_0x3dfb9f):_0x59f969[_0x144802(0x260)](_0x158c9f,_0x13f4f1,_0x4783a3);};if(this['_messageService']['show']({'content':this[_0x390b6d(0x22a)]['t'](_0x390b6d(0x1fb)),'type':_0x2feaca[_0x390b6d(0x211)][_0x390b6d(0x17b)]}),_0x41ee3d)try{_0x4d09e0[_0x390b6d(0x10e)](_0x5140f3[_0x390b6d(0x1b8)])[_0x390b6d(0x1e9)]()[_0x390b6d(0x235)](()=>{_0x30f682();});}catch{_0x30f682();}else _0x30f682();}['_initListener'](_0x41e853,_0x697d2d){const _0x27a2bd=_0x15a2d1;let _0x46a867=_0x41e853[_0x27a2bd(0x10e)](_0x59a771[_0x27a2bd(0x171)]);this[_0x27a2bd(0x13b)]['add'](_0x46a867[_0x27a2bd(0x16e)][_0x27a2bd(0x1a9)](_0x2c5b15=>{const _0x2b32fa=_0x27a2bd;switch(_0x2c5b15){case _0x59a771[_0x2b32fa(0x1fe)][_0x2b32fa(0x249)]:this['_dialogService'][_0x2b32fa(0x136)](),this[_0x2b32fa(0x155)][_0x2b32fa(0x273)]();break;case _0x59a771[_0x2b32fa(0x1fe)][_0x2b32fa(0x1f0)]:this[_0x2b32fa(0x250)][_0x2b32fa(0x145)](_0x14d3b7['id']),this[_0x2b32fa(0x134)]();break;case _0x59a771[_0x2b32fa(0x1fe)][_0x2b32fa(0x269)]:this[_0x2b32fa(0x134)](),this[_0x2b32fa(0x1e8)][_0x2b32fa(0x226)]({'content':this[_0x2b32fa(0x22a)]['t'](_0x2b32fa(0x18f)),'type':_0x2feaca[_0x2b32fa(0x211)][_0x2b32fa(0x269)],'duration':0xbb8});break;default:break;}})),this[_0x27a2bd(0x13b)][_0x27a2bd(0x218)](_0x46a867[_0x27a2bd(0x1c0)][_0x27a2bd(0x1a9)](async _0x47d520=>{const _0x235694=_0x27a2bd;_0x47d520&&this['_commandService'][_0x235694(0x145)](_0x11130c[_0x235694(0x114)]['id'],{'unitId':_0x697d2d,'revision':_0x47d520});}));}[_0x15a2d1(0x25d)](_0x2cd9d5){const _0x2ff861=_0x15a2d1;let _0xbc5024=this[_0x2ff861(0x12a)][_0x2ff861(0x20b)](_0x2cd9d5)['getSheets']()[_0x2ff861(0x1fa)](_0x18c19a=>_0x18c19a[_0x2ff861(0x207)]()),_0x4088ee=new _0x4e039e[(_0x2ff861(0x1a2))](_0x2cd9d5)['id'],_0x2034e1=_0xbc5024[_0x2ff861(0x1fa)](_0x312b1a=>new _0x4e039e[(_0x2ff861(0x21e))](_0x2cd9d5,_0x312b1a)['id']),_0x2771a8=_0xbc5024[_0x2ff861(0x1fa)](_0x449937=>this['_selectionProtectionRuleModel'][_0x2ff861(0x1c4)](_0x2cd9d5,_0x449937)[_0x2ff861(0x1fa)](_0x286e86=>new _0x4e039e[(_0x2ff861(0x18e))](_0x2cd9d5,_0x449937,_0x286e86['permissionId'])['id']))[_0x2ff861(0x1a6)](),_0x3214d1=new _0x4e039e['WorkbookRecoverHistoryPermission'](_0x2cd9d5)['id'];return this[_0x2ff861(0x238)]['composePermission']([_0x4088ee,..._0x2034e1,..._0x2771a8,_0x3214d1])['every'](_0x1c0dd7=>!!_0x1c0dd7[_0x2ff861(0x25b)]);}};_0xd4d756=_0x1b6269([_0xe0d68f(0x0,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x255)])),_0xe0d68f(0x1,_0x12090c[_0x15a2d1(0x170)]),_0xe0d68f(0x2,_0x12090c[_0x15a2d1(0x14c)]),_0xe0d68f(0x3,_0x12090c[_0x15a2d1(0x1aa)]),_0xe0d68f(0x4,_0x28ef43[_0x15a2d1(0x221)]),_0xe0d68f(0x5,_0x12090c[_0x15a2d1(0x215)]),_0xe0d68f(0x6,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x4e039e[_0x15a2d1(0x159)])),_0xe0d68f(0x7,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x28ef43['IDialogService'])),_0xe0d68f(0x8,(0x0,_0x12090c['Inject'])(_0x28ef43[_0x15a2d1(0x1da)])),_0xe0d68f(0x9,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x220)]))],_0xd4d756);let _0x56a29d=class extends _0x12090c[_0x15a2d1(0x16f)]{constructor(_0x26a07d=_0x59d7ed,_0x2189c6,_0x599d70){const _0x2c1580=_0x15a2d1;super(),this[_0x2c1580(0x129)]=_0x26a07d,this[_0x2c1580(0x11b)]=_0x2189c6,this['_configService']=_0x599d70;let {menu:_0x499b86,..._0x565e43}=(0x0,_0x12090c[_0x2c1580(0x210)])({},_0x59d7ed,this[_0x2c1580(0x129)]);_0x499b86&&this[_0x2c1580(0x1e4)][_0x2c1580(0x222)](_0x2c1580(0x166),_0x499b86,{'merge':!0x0}),this[_0x2c1580(0x1e4)]['setConfig'](_0xbbabb7,_0x565e43),this[_0x2c1580(0x129)][_0x2c1580(0x1bf)]&&this['_configService']['setConfig'](_0x2c1580(0x248),this[_0x2c1580(0x129)]['univerContainerId']);}[_0x15a2d1(0x11d)](){const _0x21518c=_0x15a2d1;[[_0x5664ee,{'useClass':_0xd4d756}],[_0x549ca8]][_0x21518c(0x1f9)](_0x2680c8=>this[_0x21518c(0x11b)][_0x21518c(0x218)](_0x2680c8));}[_0x15a2d1(0x1ee)](){const _0x8bf414=_0x15a2d1;this[_0x8bf414(0x11b)][_0x8bf414(0x10e)](_0x549ca8);}};_0x47f855(_0x56a29d,'type',_0x12090c['UniverInstanceType'][_0x15a2d1(0x22c)]),_0x47f855(_0x56a29d,'pluginName','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),_0x47f855(_0x56a29d,'packageName',_0x41aedd),_0x47f855(_0x56a29d,_0x15a2d1(0x18b),_0x2dc78c),_0x56a29d=_0x1b6269([(0x0,_0x12090c[_0x15a2d1(0x1ff)])(_0x2827be[_0x15a2d1(0x229)]),_0xe0d68f(0x1,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c['Injector'])),_0xe0d68f(0x2,_0x12090c[_0x15a2d1(0x14c)])],_0x56a29d);let _0x33294e=class extends _0x12090c[_0x15a2d1(0x1dd)]{constructor(_0x30efd7,_0x1a7aee,_0x25b68e,_0x465c5c,_0x50afd3,_0x34ebd6,_0x2d38aa,_0x5d3026,_0x17eb8a,_0x5ec6ce,_0x1992f1){const _0x45fb43=_0x15a2d1;super(),this[_0x45fb43(0x250)]=_0x30efd7,this['_menuManagerService']=_0x1a7aee,this[_0x45fb43(0x158)]=_0x25b68e,this[_0x45fb43(0x20a)]=_0x465c5c,this[_0x45fb43(0x22a)]=_0x50afd3,this[_0x45fb43(0x1e8)]=_0x34ebd6,this[_0x45fb43(0x180)]=_0x2d38aa,this[_0x45fb43(0x10f)]=_0x5d3026,this[_0x45fb43(0x15f)]=_0x17eb8a,this['_univerInstanceService']=_0x5ec6ce,this['_urlService']=_0x1992f1,_0x47f855(this,_0x45fb43(0x1be),null),this[_0x45fb43(0x125)]();}[_0x15a2d1(0x125)](){const _0x4d58d6=_0x15a2d1;[_0x32513a,_0x14d3b7][_0x4d58d6(0x1f9)](_0x5970e4=>this[_0x4d58d6(0x18a)]((0x0,_0x12090c[_0x4d58d6(0x208)])(this[_0x4d58d6(0x250)][_0x4d58d6(0x144)](_0x5970e4)))),this[_0x4d58d6(0x18a)](this[_0x4d58d6(0x158)][_0x4d58d6(0x1d0)]('HistoryIcon',_0x11966c)),this[_0x4d58d6(0x213)][_0x4d58d6(0x1ad)](_0x1262a3),this['disposeWithMe'](this[_0x4d58d6(0x250)]['onCommandExecuted'](async(_0x23275e,_0x1c61fa)=>{const _0x371ef7=_0x4d58d6;if(_0x23275e['id']===_0x11130c[_0x371ef7(0x114)]['id']){let {unitId:_0x4cfac5}=_0x23275e[_0x371ef7(0x26f)];this[_0x371ef7(0x1e8)]['show']({'content':this[_0x371ef7(0x22a)]['t'](_0x371ef7(0x23e)),'type':_0x2feaca['MessageType'][_0x371ef7(0x17b)],'duration':0x1388});let _0x16cc75=this['_collaborationController']['getCollabEntity'](_0x4cfac5);_0x1c61fa!=null&&_0x1c61fa[_0x371ef7(0x1b7)]?this['_handleRevertAcknowledgement'](_0x16cc75,async()=>(setTimeout(()=>window[_0x371ef7(0x1f1)]['reload']()),!0x0),!0x0):this[_0x371ef7(0x124)](_0x16cc75,async()=>{const _0x289364=_0x371ef7;let _0x23b24d=this[_0x289364(0x12a)][_0x289364(0x1b5)](_0xc44c27['UNIVER_SHEET']),_0x44e1df=_0x23b24d==null?void 0x0:_0x23b24d[_0x289364(0x274)]();if(!_0x44e1df)return!0x1;this['_univerInstanceService'][_0x289364(0x1d8)](_0x4cfac5);let _0x1886a8=await this[_0x289364(0x15f)][_0x289364(0x12b)](_0x4cfac5,_0xc44c27['UNIVER_SHEET']);return _0x1886a8&&_0x1886a8 instanceof _0x12090c[_0x289364(0x11a)]?(await this['_setupSubUnitSync'](_0x1886a8,_0x44e1df[_0x289364(0x207)]()),!0x0):!0x1;});}}));}[_0x15a2d1(0x124)](_0x37d70f,_0x25bc6a,_0x50fcb6=!0x1){const _0x25e2d3=_0x15a2d1;let _0x70abb3=(0x0,_0xfca8c[_0x25e2d3(0x1b2)])([_0x37d70f['session'][_0x25e2d3(0x1e5)],_0x37d70f[_0x25e2d3(0x19e)]])[_0x25e2d3(0x1a9)](async([_0x53b699,_0x188cab])=>{const _0x5420e5=_0x25e2d3;if(_0x53b699[_0x5420e5(0x198)]===_0x11130c[_0x5420e5(0x12d)]['CHANGESET_ACK']&&(_0x188cab==null?void 0x0:_0x188cab[_0x5420e5(0x23b)])===_0x5f37e5[_0x5420e5(0x202)][_0x5420e5(0x257)]&&_0x53b699[_0x5420e5(0x1ec)][_0x5420e5(0x194)][_0x5420e5(0x14a)](_0x446902=>_0x446902['id']===_0x11130c['RevertRevisionMutation']['id'])&&await _0x25bc6a()){var _0x217b91;this['_historyManagerService'][_0x5420e5(0x134)](),_0x70abb3[_0x5420e5(0x15a)](),this[_0x5420e5(0x1be)]&&clearTimeout(this['_revertErrorTimer']),await((_0x217b91=this['_localCacheService'])==null?void 0x0:_0x217b91[_0x5420e5(0x224)]());}});_0x50fcb6&&(this[_0x25e2d3(0x1be)]=setTimeout(()=>{const _0x564490=_0x25e2d3;_0x70abb3[_0x564490(0x15a)](),this[_0x564490(0x1e8)]['show']({'content':this[_0x564490(0x22a)]['t'](_0x564490(0x21f)),'type':_0x2feaca[_0x564490(0x211)]['Error'],'duration':0xbb8});},0x1388));}async[_0x15a2d1(0x212)](_0x4f1057,_0x24bf6a){const _0xfd0934=_0x15a2d1;await this['_updateSubUnitFromURLParams'](_0x4f1057,_0x24bf6a),_0x4f1057['activeSheet$'][_0xfd0934(0x1a0)]((0x0,_0xfca8c[_0xfd0934(0x10c)])(this[_0xfd0934(0x216)]))['subscribe'](_0x56f34b=>{_0x56f34b&&this['_updateURLWithCurrentState'](_0x56f34b);}),this[_0xfd0934(0x127)][_0xfd0934(0x1ab)]['pipe']((0x0,_0xfca8c[_0xfd0934(0x10c)])(this['dispose$']))[_0xfd0934(0x1a9)](()=>this[_0xfd0934(0x13c)](_0x4f1057,_0x24bf6a));}[_0x15a2d1(0x115)](_0x2acf22,_0x49e15c=!0x1){const _0x609db5=_0x15a2d1;let _0x1488d5=this[_0x609db5(0x127)]['getParam'](_0x609db5(0x1d7));_0x2acf22[_0x609db5(0x207)]()!==_0x1488d5&&this[_0x609db5(0x127)][_0x609db5(0x1ae)](_0x609db5(0x1d7),_0x2acf22[_0x609db5(0x207)](),_0x49e15c);}async[_0x15a2d1(0x13c)](_0x5d17ec,_0x9a25ac){const _0x198419=_0x15a2d1;var _0x4b4db0;if(!_0x9a25ac||!_0x5d17ec[_0x198419(0x205)](_0x9a25ac)){let _0x10959a=_0x5d17ec[_0x198419(0x138)]()[0x0],_0x31aa23=_0x5d17ec[_0x198419(0x205)](_0x10959a);if(!_0x31aa23)return;this['_updateURLWithCurrentState'](_0x31aa23,!0x0),await this[_0x198419(0x250)][_0x198419(0x145)](_0x4e039e[_0x198419(0x1a3)]['id'],{'unitId':_0x5d17ec['getUnitId'](),'subUnitId':_0x10959a});return;}((_0x4b4db0=_0x5d17ec['getActiveSheet']())==null?void 0x0:_0x4b4db0[_0x198419(0x207)]())!==_0x9a25ac&&await this[_0x198419(0x250)][_0x198419(0x145)](_0x4e039e[_0x198419(0x1a3)]['id'],{'unitId':_0x5d17ec[_0x198419(0x1f4)](),'subUnitId':_0x9a25ac});}};_0x33294e=_0x1b6269([_0xe0d68f(0x0,_0x12090c[_0x15a2d1(0x1aa)]),_0xe0d68f(0x1,_0x28ef43[_0x15a2d1(0x126)]),_0xe0d68f(0x2,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x28ef43['ComponentManager'])),_0xe0d68f(0x3,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5664ee)),_0xe0d68f(0x4,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x255)])),_0xe0d68f(0x5,_0x28ef43[_0x15a2d1(0x221)]),_0xe0d68f(0x6,(0x0,_0x12090c['Inject'])(_0x5f37e5['CollaborationController'])),_0xe0d68f(0x7,_0x5f37e5[_0x15a2d1(0x1ef)]),_0xe0d68f(0x8,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5f37e5[_0x15a2d1(0x10b)])),_0xe0d68f(0x9,_0x12090c[_0x15a2d1(0x170)]),_0xe0d68f(0xa,_0x4f45d9[_0x15a2d1(0x239)])],_0x33294e);let _0x341085=class extends _0x12090c['Plugin']{constructor(_0x2589a2=_0x59d7ed,_0x174ba0,_0x2b4b69){const _0x48dcf2=_0x15a2d1;super(),this[_0x48dcf2(0x129)]=_0x2589a2,this['_injector']=_0x174ba0,this[_0x48dcf2(0x1e4)]=_0x2b4b69;let {menu:_0x1024b9,..._0x387d1e}=(0x0,_0x12090c[_0x48dcf2(0x210)])({},_0x59d7ed,this['_config']);_0x1024b9&&this['_configService'][_0x48dcf2(0x222)]('menu',_0x1024b9,{'merge':!0x0}),this[_0x48dcf2(0x1e4)]['setConfig'](_0xbbabb7,_0x387d1e),this[_0x48dcf2(0x129)][_0x48dcf2(0x1bf)]&&this[_0x48dcf2(0x1e4)][_0x48dcf2(0x222)](_0x4ee5fa,this[_0x48dcf2(0x129)][_0x48dcf2(0x1bf)]);}[_0x15a2d1(0x11d)](){const _0x4c3edd=_0x15a2d1;[[_0x5664ee],[_0x33294e]][_0x4c3edd(0x1f9)](_0x63a57b=>this[_0x4c3edd(0x11b)][_0x4c3edd(0x218)](_0x63a57b));}[_0x15a2d1(0x1ee)](){this['_injector']['get'](_0x33294e);}};_0x47f855(_0x341085,_0x15a2d1(0x16a),_0x12090c[_0x15a2d1(0x230)][_0x15a2d1(0x22c)]),_0x47f855(_0x341085,'pluginName',_0x15a2d1(0x11f)),_0x47f855(_0x341085,_0x15a2d1(0x14e),_0x41aedd),_0x47f855(_0x341085,_0x15a2d1(0x18b),_0x2dc78c),_0x341085=_0x1b6269([(0x0,_0x12090c['DependentOn'])(_0x2827be['UniverLicensePlugin']),_0xe0d68f(0x1,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x1f5)])),_0xe0d68f(0x2,_0x12090c[_0x15a2d1(0x14c)])],_0x341085),_0x20db1e[_0x15a2d1(0x131)]=_0xbbabb7,Object[_0x15a2d1(0x241)](_0x20db1e,_0x15a2d1(0x199),{'enumerable':!0x0,'get':function(){return _0x5664ee;}}),Object['defineProperty'](_0x20db1e,_0x15a2d1(0x19a),{'enumerable':!0x0,'get':function(){return _0xd4d756;}}),_0x20db1e[_0x15a2d1(0x267)]=_0x32513a,_0x20db1e[_0x15a2d1(0x1cb)]=_0x4ee5fa,_0x20db1e[_0x15a2d1(0x23c)]=_0x149c55,Object[_0x15a2d1(0x241)](_0x20db1e,_0x15a2d1(0x1b0),{'enumerable':!0x0,'get':function(){return _0x56a29d;}}),Object[_0x15a2d1(0x241)](_0x20db1e,_0x15a2d1(0x162),{'enumerable':!0x0,'get':function(){return _0x341085;}});}));function _0x169d(){const _0x46c388=['mountHistoryContent','permissionId','getSheetBySheetId','UniverEditHistoryViewerMobilePlugin','getSheetId','toDisposable','xlink:href','_historyManagerService','getUnit','UniverSheetsPlugin','historyUniver','activeSheet$','BUTTON','merge','MessageType','_setupSubUnitSync','_menuManagerService','has','IPermissionService','dispose$','LS_CONFIG_KEY','add','Univer','getConfig','UniverDrawing','UniverSheetsDataValidationMobileUIPlugin','UniverProSheetsShapeUi','WorksheetEditPermission','editHistory.panel.revertFailed','ThemeService','IMessageService','setConfig','getElementById','exhaustSavingTask','attrs','show','triggerCustomVersions','trim','UniverLicensePlugin','_localeService','UniverSheetsFilter','UNIVER_UNKNOWN','UniverSheetSparklineUIPlugin','getCollabEntity','div','UniverInstanceType','RibbonStartGroup','UniverSheetsFormulaPlugin','UniverProSheetsSparkline','8352024BJwfAb','then','edit-history-loader.config','UniverSheetsFormulaUIPlugin','_permissionService','IURLService','0\x200\x2016\x2016','status','UNIVER_HISTORY_CONTAINER_ID','setLocale','editHistory.panel.reverting','symbol','random','defineProperty','height','getSheetCommandTarget','reload','M0\x200H16V16H0z','UNIVER_PROJECT','UniverDrawingPlugin','UNIVER_CONTAINER_ID','Entered','editHistory.panel.title','appendChild','UniverSheetsConditionalFormattingPlugin','svg','setTheme','default','_commandService','absolute','http://www.w3.org/2000/svg','UniverSheets','includes','LocaleService','replace','SYNCED','UniverSheetsChartUIPlugin','getAllPlugins','0.20.1','value','idSuffix','_checkCanRevert','Inject','next','triggerLoadVersions','toString','\x20has\x20been\x20registered.','fill','UniverSheetsConditionalFormattingUIPlugin','_internalWebWorker','_initPlugins','ToggleEditHistoryOperation','historyPanelHidden','Error','decorate','invoke','HistoryIcon','registerPlugin','iterator','params','entries','displayName','UniverSheetsConditionalFormattingUi','close','getActiveSheet','UniverSheetsDataValidationUIPlugin','UniverDocs','length','UniverSheetsShapePlugin','DataLoaderService','takeUntil','substring','get','_localCacheService','UniverProSheetsPivot','display','UniverCollaborationPlugin','univer-history-container-mobile','RevertRevisionMutation','_updateURLWithCurrentState','univer-container','historyUniver$','UniverSheetsFilterUIPlugin','pluginName','Workbook','_injector','UniverIcon','onStarting','WorkbookViewHistoryPermission','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverEditHistoryViewerPlugin','120WiJIoM','UniverSheetsNumfmt','UniverProSheetsShape','_handleRevertAcknowledgement','_init','IMenuManagerService','_urlService','_initContainer','_config','_univerInstanceService','loadUnit','every','CollaborationEvent','UniverSheetsHyperLinkPlugin','terminate','MenuItemType','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','darkMode$','UniverSheetsPivotTablePlugin','unMountHistoryContent','DisposableCollection','closeAll','_themeService','getUnhiddenWorksheets','644158LLjXVa','ComponentManager','_disposableCollection','_updateSubUnitFromURLParams','getCurrentLocale','UniverProCollaborationClientUi','width','univer.operation.exit-edit-history','UniverSheetsShapeUIPlugin','IAuthzIoService','UniverSheetsDrawing','registerCommand','executeCommand','UniverProCollaboration','path','current','UniverUi','some','composePermission','IConfigService','UniverSheetsFilterUi','packageName','_pluginMap','rxjs','call','IImageIoService','_historyUniver$','CommandType','_sidebarService','860eNPbxk','UNIVER_SLIDE','_componentManager','RangeProtectionRuleModel','unsubscribe','UniverDataValidation','UniverDrawingUIPlugin','history-icon','split','_dataLoaderService','9327ZziItZ','AuthzIoHttpService','UniverEditHistoryLoaderPlugin','UniverSheetsNumfmtPlugin','getLocales','UniverDataValidationPlugin','menu','constructor','UNIVER_DOC','values','type','6heidzB','UniverCore','UniverSheetsDataValidation','status$','Plugin','IUniverInstanceService','HistoryManagerService','UniverProEditHistoryViewer','UniverNetworkPlugin','workerURL','UniverSheetSparklinePlugin','historyListServerUrl','top','function','UniverSheetsUi','UniverSheetsDrawingPlugin','Loading','UniverRPCMainThreadPlugin','prototype','5KsfnaF','UniverRenderEnginePlugin','_collaborationController','UniverSheetsDrawingUi','toStringTag','UniverSheetsUIPlugin','UNRECOGNIZED','block','UniverDrawingUi','white','_dialogService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','disposeWithMe','version','none','UniverSheetsChartPlugin','RangeProtectionPermissionEditPoint','editHistory.panel.listFetchError','React','colorChannel1','from','children','mutations','zIndex','UniverNetwork','1192829HZBOLw','eventID','HistoryLoaderService','MobileHistoryLoaderService','UniverRpc','UniverProSheetsChart','_initUniver','state$','set','pipe','historyPanelComponentKey','WorkbookEditablePermission','SetWorksheetActivateCommand','20qSWMNz','UniverDocsUIPlugin','flat','__getInjector','UniverMobileUIPlugin','subscribe','ICommandService','urlChange$','_initListener','mergeMenu','setParam','IDialogService','UniverEditHistoryLoaderMobilePlugin','position','combineLatest','UniverEngineFormula','univerjs-icon\x20univerjs-icon-','getCurrentUnitOfType','setDarkMode','fromCollab','IRemoteInstanceService','UniverProSheetsChartUi','CHANGESET_ACK','historyAIassistantEnabled','UniverSheetsTablePlugin','5700897eErNEg','_revertErrorTimer','univerContainerId','revertRevision$','BehaviorSubject','UniverDocsPlugin','clear','getSubunitRuleList','getSheets','left','string','mask','UniverSheetsMobileUIPlugin','UniverUIPlugin','UNIVER_CONTAINER_ID_KEY','WorkbookRecoverHistoryPermission','assign','dataset','CollaborationController','register','asObservable','@univerjs-pro/edit-history-loader','UniverSheetsTable','UniverSheetsDrawingUIPlugin','UniverSheetsFilterPlugin','defIds','subunit','disposeUnit','UniverSheetsConditionalFormatting','ISidebarService','history-icon_clip0_907_281','createElement','RxDisposable','object','url(#history-icon_clip0_907_281)','amd','6918635KwPeay','url(#$1','UniverSheetsDataValidationUi','_configService','event$','tag','_selectionProtectionRuleModel','_messageService','whenReady','OPERATION','UniverFormulaEnginePlugin','data','UniverSheetsHyperLinkUIPlugin','onSteady','ILocalCacheService','Exited','location','1em','history-container','getUnitId','Injector','removeAll','style','1042237NxnutL','forEach','map','editHistory.info.initializing','100%','dispose','HistoryModeStatus','DependentOn','defs','UNIVER_SHEET','CollaborationStatus'];_0x169d=function(){return _0x46c388;};return _0x169d();}
|
|
1
|
+
function _0x2d8b(){const _0x1f4f5a=['history-container','RangeProtectionRuleModel','subunit','left','HistoryManagerService','UniverSheetsDataValidationUi','historyUniver$','appendChild','IPermissionService','univer-history-container','symbol','univer.operation.toggle-edit-history','UniverSheetsNumfmtPlugin','_menuManagerService','_revertErrorTimer','UniverSheetSparklineUIPlugin','getSheetBySheetId','mutations','flat','UniverSheetsDataValidationMobileUIPlugin','iterator','getUnhiddenWorksheets','historyPanelHidden','loadUnit','dataset','UniverInstanceType','editHistory.panel.reverting','ISidebarService','IURLService','_dialogService','getSheetCommandTarget','disposeUnit','UniverUi','whenReady','currentTheme$','IDialogService','RevertRevisionMutation','IMessageService','decorate','function','HistoryIcon','editHistory.info.initializing','UniverSheetsUIPlugin','UniverRenderEnginePlugin','CommandType','path','UniverCore','call','HistoryLoaderService','getElementById','UniverSheetsPlugin','white','AuthzIoHttpService','UniverSheetsFilter','_initContainer','Inject','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverSheetsHyperLink','UniverSheetsTablePlugin','_disposableCollection','UniverUIPlugin','xlink:href','_dataLoaderService','_localeService','RxDisposable','http://www.w3.org/2000/svg','toDisposable','_configService','UniverNetworkPlugin','3483342bCGwfP','94686fqVKGy','UNIVER_UNKNOWN','height','onSteady','urlChange$','historyListServerUrl','mountHistoryContent','UniverProCollaboration','zIndex','IUniverInstanceService','editHistory.panel.revertFailed','UniverIcon','mergeMenu','clipPath','onStarting','invoke','next','0\x200\x2016\x2016','IMenuManagerService','idSuffix','WorksheetEditPermission','from','replace','IRemoteInstanceService','M0\x200H16V16H0z','15090330EsvoVQ','eventID','_componentManager','UniverSheetsDrawingUi','_sidebarService','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','IImageIoService','revertRevision$','entries','Loading','exports.@univerjs/core.@univerjs/sheets.@univerjs-pro/collaboration.@univerjs-pro/collaboration-client.@univerjs-pro/edit-history-viewer.@univerjs-pro/license.@univerjs-pro/sheets-chart.@univerjs-pro/sheets-chart-ui.@univerjs-pro/sheets-pivot.@univerjs-pro/sheets-shape.@univerjs-pro/sheets-shape-ui.@univerjs-pro/sheets-sparkline.@univerjs-pro/sheets-sparkline-ui.@univerjs/data-validation.@univerjs/design.@univerjs/docs.@univerjs/docs-ui.@univerjs/drawing.@univerjs/drawing-ui.@univerjs/engine-formula.@univerjs/engine-render.@univerjs/network.@univerjs/rpc.@univerjs/sheets-conditional-formatting.@univerjs/sheets-conditional-formatting-ui.@univerjs/sheets-data-validation.@univerjs/sheets-data-validation-ui.@univerjs/sheets-drawing.@univerjs/sheets-drawing-ui.@univerjs/sheets-filter.@univerjs/sheets-filter-ui.@univerjs/sheets-formula.@univerjs/sheets-formula-ui.@univerjs/sheets-hyper-link.@univerjs/sheets-hyper-link-ui.@univerjs/sheets-numfmt.@univerjs/sheets-table.@univerjs/sheets-ui.@univerjs/ui.rxjs.@univerjs-pro/collaboration-client-ui.react','BUTTON','_themeService','reload','block','div','fill','status$','clear','Exited','UniverProLicense','disposeWithMe','UniverEditHistoryViewerPlugin','UniverSheetsDataValidation','11CJrxiG','UniverSheetsShapePlugin','UniverDataValidation','attrs','UniverFormulaEnginePlugin','UniverProSheetsShapeUi','_internalWebWorker','UniverDataValidationPlugin','HistoryModeStatus','univer-container','_univerInstanceService','defIds','UniverSheetsFormulaUi','getAllPlugins','exhaustSavingTask','UniverEditHistoryLoaderPlugin','UniverSheetsDataValidationUIPlugin','UniverProEditHistoryViewer','mask','none','status','univer.operation.exit-edit-history','IConfigService','LocaleService','WorkbookRecoverHistoryPermission','workerURL','colorChannel1','BehaviorSubject','setDarkMode','takeUntil','UniverDesign','currentColor','UniverProSheetsSparkline','state$','UniverSheetsNumfmt','event$','ComponentManager','length','UNIVER_SHEET','setParam','string','MobileHistoryLoaderService','DisposableCollection','svg','UNIVER_HISTORY_CONTAINER_ID','session','0.21.0','trim','754162DoFBcm','UniverLicensePlugin','value','UniverSheetsPivotTablePlugin','position','use','140uhzACV','UniverCollaborationPlugin','getUnitId','get','UniverSheetsDrawingPlugin','forwardRef','registerPlugin','getSheets','MenuItemType','add','set','toStringTag','_permissionService','UniverSheetsDataValidationPlugin','history-icon','RibbonStartGroup','getUnit','_messageService','UniverSheetsFilterPlugin','defineProperty','getSubunitRuleList','UniverDrawingUi','object','darkMode$','SetWorksheetActivateCommand','ThemeService','terminate','getSheetId','_injector','UniverSheetsDrawingUIPlugin','\x20has\x20been\x20registered.','3523681CCRUqe','__getInjector','17349RZMZXb','UniverEngineRender','UniverSheets','RangeProtectionPermissionEditPoint','defs','uComp','React','UniverRpc','LS_CONFIG_KEY','getConfig','historyUniver','UniverProSheetsSparklineUi','UniverSheetsHyperLinkPlugin','Disposable','UniverDocsPlugin','then','edit-history-loader.config','univerContainerId','UniverSheetsFormulaPlugin','UniverProSheetsShape','rxjs','WorkbookEditablePermission','CollaborationStatus','onCommandExecuted','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','location','type','registerCommand','UniverSheetsTable','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','executeCommand','dispose','_localCacheService','getCollabEntity','UniverDrawingUIPlugin','editHistory.panel.listFetchError','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','OPERATION','UniverSheetsFilterUIPlugin','data','url(#$1','setLocale','UniverSheetsChartUIPlugin','merge','asObservable','every','_historyUniver$','assign','register','UniverSheetsHyperLinkUi','UniverSheetsConditionalFormattingPlugin','_checkCanRevert','toPrimitive','UniverEngineFormula','historyAIassistantEnabled','activeSheet$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_commandService','1902320IrBBnL','CollaborationController','OTHERS','_setupSubUnitSync','getParam','UniverDrawingPlugin','tag','UniverProEditHistoryLoader','ToggleEditHistoryOperation','style','children','unMountHistoryContent','pipe','absolute','univerjs-icon\x20univerjs-icon-','getCurrentRangeDisable$','composePermission','_initUniver','DataLoaderService','_urlService','Injector','UniverSheetsFormulaUIPlugin','MessageType','show','removeAll','split','url(#history-icon_clip0_907_281)','Entered','forEach','values','history-icon_clip0_907_281','Plugin','UniverRPCMainThreadPlugin','historyPanelComponentKey','1ZACDhD','UniverProSheetsPivot','some','unsubscribe','display','UniverDocs','WorkbookViewHistoryPermission','combineLatest','setTheme','UniverProSheetsChartUi','fromCollab','_handleRevertAcknowledgement','triggerCustomVersions','_updateSubUnitFromURLParams','UniverSheetsConditionalFormatting','_updateURLWithCurrentState','current','displayName','_init','UniverDocsUIPlugin','UniverSheetsConditionalFormattingUi','Workbook','_config','IAuthzIoService','UniverSheetSparklinePlugin','createElement','UniverProCollaborationClient','[HistoryLoaderService]:\x20Plugin\x20','_initPlugins','UniverProCollaborationClientUi','permissionId','closeAll','has','dispose$','UniverSheetsChartPlugin','setConfig','close','map','getActiveSheet','menu','Error','CollaborationEvent','ILocalCacheService','100%','_collaborationController','95BWKVMc','_selectionProtectionRuleModel','Univer','@univerjs-pro/edit-history-loader','getLocales','DependentOn','UNIVER_CONTAINER_ID','UniverSheetsShapeUIPlugin','_historyManagerService','subscribe','getCurrentLocale','UniverEditHistoryViewerMobilePlugin','default','ICommandService','pluginName','UniverSheetsMobileUIPlugin','Module','constructor','_pluginMap','version'];_0x2d8b=function(){return _0x1f4f5a;};return _0x2d8b();}function _0x4d71(_0x4d7dda,_0x35036e){_0x4d7dda=_0x4d7dda-0x186;const _0x2d8bd3=_0x2d8b();let _0x4d71c1=_0x2d8bd3[_0x4d7dda];return _0x4d71c1;}(function(_0x35c80d,_0x5110f5){const _0x30cf9d=_0x4d71,_0x5e7223=_0x35c80d();while(!![]){try{const _0x1155ac=-parseInt(_0x30cf9d(0x1ac))/0x1*(parseInt(_0x30cf9d(0x294))/0x2)+-parseInt(_0x30cf9d(0x2bb))/0x3*(parseInt(_0x30cf9d(0x29a))/0x4)+parseInt(_0x30cf9d(0x1d9))/0x5*(-parseInt(_0x30cf9d(0x233))/0x6)+-parseInt(_0x30cf9d(0x2b9))/0x7+-parseInt(_0x30cf9d(0x18a))/0x8+parseInt(_0x30cf9d(0x232))/0x9+-parseInt(_0x30cf9d(0x24c))/0xa*(-parseInt(_0x30cf9d(0x264))/0xb);if(_0x1155ac===_0x5110f5)break;else _0x5e7223['push'](_0x5e7223['shift']());}catch(_0x182ab1){_0x5e7223['push'](_0x5e7223['shift']());}}}(_0x2d8b,0x43475),function(_0x1a3ff5,_0x249de5){const _0x313ee3=_0x4d71;typeof exports==_0x313ee3(0x2b0)&&typeof module<'u'?_0x249de5(exports,require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs-pro/edit-history-viewer`),require(`@univerjs-pro/license`),require(`@univerjs-pro/sheets-chart`),require(`@univerjs-pro/sheets-chart-ui`),require(`@univerjs-pro/sheets-pivot`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs-pro/sheets-shape-ui`),require(`@univerjs-pro/sheets-sparkline`),require(`@univerjs-pro/sheets-sparkline-ui`),require(`@univerjs/data-validation`),require(`@univerjs/design`),require(`@univerjs/docs`),require(`@univerjs/docs-ui`),require(`@univerjs/drawing`),require(`@univerjs/drawing-ui`),require(`@univerjs/engine-formula`),require(`@univerjs/engine-render`),require(`@univerjs/network`),require(`@univerjs/rpc`),require(`@univerjs/sheets-conditional-formatting`),require(`@univerjs/sheets-conditional-formatting-ui`),require(`@univerjs/sheets-data-validation`),require(`@univerjs/sheets-data-validation-ui`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets-drawing-ui`),require(`@univerjs/sheets-filter`),require(`@univerjs/sheets-filter-ui`),require(`@univerjs/sheets-formula`),require(`@univerjs/sheets-formula-ui`),require(`@univerjs/sheets-hyper-link`),require(`@univerjs/sheets-hyper-link-ui`),require(`@univerjs/sheets-numfmt`),require(`@univerjs/sheets-table`),require(`@univerjs/sheets-ui`),require(`@univerjs/ui`),require(`rxjs`),require(`@univerjs-pro/collaboration-client-ui`),require(`react`)):typeof define=='function'&&define['amd']?define(_0x313ee3(0x256)[_0x313ee3(0x1a3)]('.'),_0x249de5):(_0x1a3ff5=typeof globalThis<'u'?globalThis:_0x1a3ff5||self,_0x249de5(_0x1a3ff5[_0x313ee3(0x191)]={},_0x1a3ff5[_0x313ee3(0x21b)],_0x1a3ff5[_0x313ee3(0x2bd)],_0x1a3ff5[_0x313ee3(0x23a)],_0x1a3ff5[_0x313ee3(0x1c6)],_0x1a3ff5[_0x313ee3(0x275)],_0x1a3ff5[_0x313ee3(0x260)],_0x1a3ff5['UniverProSheetsChart'],_0x1a3ff5[_0x313ee3(0x1b5)],_0x1a3ff5[_0x313ee3(0x1ad)],_0x1a3ff5[_0x313ee3(0x2ce)],_0x1a3ff5[_0x313ee3(0x269)],_0x1a3ff5[_0x313ee3(0x284)],_0x1a3ff5[_0x313ee3(0x2c6)],_0x1a3ff5[_0x313ee3(0x266)],_0x1a3ff5[_0x313ee3(0x282)],_0x1a3ff5[_0x313ee3(0x1b1)],_0x1a3ff5['UniverDocsUi'],_0x1a3ff5['UniverDrawing'],_0x1a3ff5[_0x313ee3(0x2af)],_0x1a3ff5[_0x313ee3(0x2f1)],_0x1a3ff5[_0x313ee3(0x2bc)],_0x1a3ff5['UniverNetwork'],_0x1a3ff5[_0x313ee3(0x2c2)],_0x1a3ff5[_0x313ee3(0x1ba)],_0x1a3ff5[_0x313ee3(0x1c0)],_0x1a3ff5[_0x313ee3(0x263)],_0x1a3ff5[_0x313ee3(0x1f2)],_0x1a3ff5['UniverSheetsDrawing'],_0x1a3ff5[_0x313ee3(0x24f)],_0x1a3ff5[_0x313ee3(0x222)],_0x1a3ff5['UniverSheetsFilterUi'],_0x1a3ff5['UniverSheetsFormula'],_0x1a3ff5[_0x313ee3(0x270)],_0x1a3ff5[_0x313ee3(0x226)],_0x1a3ff5[_0x313ee3(0x2ed)],_0x1a3ff5[_0x313ee3(0x286)],_0x1a3ff5[_0x313ee3(0x2d7)],_0x1a3ff5['UniverSheetsUi'],_0x1a3ff5[_0x313ee3(0x20d)],_0x1a3ff5[_0x313ee3(0x2cf)],_0x1a3ff5[_0x313ee3(0x1c9)],_0x1a3ff5[_0x313ee3(0x2c1)]));}(this,function(_0x57d9fe,_0x4941f9,_0x55dc03,_0x4d7f78,_0x56c2b9,_0x23c092,_0x21e068,_0x339a74,_0x3f61d4,_0x12aa69,_0x3873e9,_0x48caa0,_0x4905f6,_0x339b51,_0x3d65ae,_0x141d4a,_0x39adae,_0x191e0b,_0x1ecc4b,_0x2e2fd7,_0x39169a,_0x4b24ed,_0xf803b2,_0x217b9e,_0xa49623,_0x3abcdd,_0xcaeca9,_0x235b7e,_0x15f482,_0x584a9b,_0x9b82b7,_0x397bf8,_0x401347,_0x561d1e,_0x44b86d,_0x3155c5,_0x47d091,_0x263d77,_0x5ba188,_0x4e0cc1,_0x4be76c,_0x3678e9,_0x34440f){const _0x5c0478=_0x4d71;Object[_0x5c0478(0x2ad)](_0x57d9fe,Symbol[_0x5c0478(0x2a5)],{'value':_0x5c0478(0x1e9)});let _0xf36b4='edit-history-loader.config';Symbol(_0xf36b4);let _0x2ab2b7={};function _0x41eefe(_0xf5a78){'@babel/helpers - typeof';const _0x446a2d=_0x5c0478;return _0x41eefe=typeof Symbol==_0x446a2d(0x214)&&typeof Symbol[_0x446a2d(0x201)]==_0x446a2d(0x1f7)?function(_0x2335db){return typeof _0x2335db;}:function(_0x387b3f){const _0x4462fa=_0x446a2d;return _0x387b3f&&typeof Symbol==_0x4462fa(0x214)&&_0x387b3f[_0x4462fa(0x1ea)]===Symbol&&_0x387b3f!==Symbol['prototype']?_0x4462fa(0x1f7):typeof _0x387b3f;},_0x41eefe(_0xf5a78);}function _0x129a18(_0x35448b,_0x5eb7ea){const _0x4f97ed=_0x5c0478;if(_0x41eefe(_0x35448b)!=_0x4f97ed(0x2b0)||!_0x35448b)return _0x35448b;var _0xc51cab=_0x35448b[Symbol[_0x4f97ed(0x2f0)]];if(_0xc51cab!==void 0x0){var _0x20457d=_0xc51cab[_0x4f97ed(0x21c)](_0x35448b,_0x5eb7ea||_0x4f97ed(0x1e5));if(_0x41eefe(_0x20457d)!=_0x4f97ed(0x2b0))return _0x20457d;throw TypeError(_0x4f97ed(0x2d9));}return(_0x5eb7ea===_0x4f97ed(0x28c)?String:Number)(_0x35448b);}function _0x261711(_0x41880e){const _0x18909a=_0x5c0478;var _0x51f5f0=_0x129a18(_0x41880e,_0x18909a(0x28c));return _0x41eefe(_0x51f5f0)=='symbol'?_0x51f5f0:_0x51f5f0+'';}function _0x4b0516(_0x1b0324,_0x227895,_0xbfd0a1){return(_0x227895=_0x261711(_0x227895))in _0x1b0324?Object['defineProperty'](_0x1b0324,_0x227895,{'value':_0xbfd0a1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b0324[_0x227895]=_0xbfd0a1,_0x1b0324;}function _0xa5c874(_0x3fa3ff,_0x3640ea){return function(_0x530dc3,_0x55b413){_0x3640ea(_0x530dc3,_0x55b413,_0x3fa3ff);};}function _0x12d3bc(_0x445050,_0x4259ad,_0xb1bcc3,_0x1180e4){const _0x28b95c=_0x5c0478;var _0xe71925=arguments['length'],_0x3cd4ed=_0xe71925<0x3?_0x4259ad:_0x1180e4===null?_0x1180e4=Object['getOwnPropertyDescriptor'](_0x4259ad,_0xb1bcc3):_0x1180e4,_0x2a0afd;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x28b95c(0x214))_0x3cd4ed=Reflect[_0x28b95c(0x213)](_0x445050,_0x4259ad,_0xb1bcc3,_0x1180e4);else{for(var _0x19135d=_0x445050[_0x28b95c(0x289)]-0x1;_0x19135d>=0x0;_0x19135d--)(_0x2a0afd=_0x445050[_0x19135d])&&(_0x3cd4ed=(_0xe71925<0x3?_0x2a0afd(_0x3cd4ed):_0xe71925>0x3?_0x2a0afd(_0x4259ad,_0xb1bcc3,_0x3cd4ed):_0x2a0afd(_0x4259ad,_0xb1bcc3))||_0x3cd4ed);}return _0xe71925>0x3&&_0x3cd4ed&&Object['defineProperty'](_0x4259ad,_0xb1bcc3,_0x3cd4ed),_0x3cd4ed;}let _0xcb22c8=_0x5c0478(0x1df),_0x899ff9=_0x5c0478(0x1f6),_0x5c387d=class extends _0x4941f9['Disposable']{constructor(_0x4bc780,_0x1d02a1,_0x326b77,_0x547f96,_0x587aad,_0x549642,_0x19e568,_0x33ecb6,_0x1831c9,_0x54e666){const _0x52baff=_0x5c0478;super(),this[_0x52baff(0x22c)]=_0x4bc780,this[_0x52baff(0x26e)]=_0x1d02a1,this[_0x52baff(0x230)]=_0x326b77,this[_0x52baff(0x189)]=_0x547f96,this[_0x52baff(0x2ab)]=_0x587aad,this['_permissionService']=_0x549642,this['_selectionProtectionRuleModel']=_0x19e568,this[_0x52baff(0x20a)]=_0x33ecb6,this[_0x52baff(0x250)]=_0x1831c9,this[_0x52baff(0x258)]=_0x54e666,_0x4b0516(this,_0x52baff(0x2ea),new _0x4be76c[(_0x52baff(0x27f))](null)),_0x4b0516(this,'historyUniver$',this['_historyUniver$']['asObservable']()),_0x4b0516(this,_0x52baff(0x228),new _0x4941f9['DisposableCollection']()),_0x4b0516(this,_0x52baff(0x1eb),new Map()),_0x4b0516(this,_0x52baff(0x26a),null),this[_0x52baff(0x1be)]();}get[_0x5c0478(0x2c5)](){const _0x5968fd=_0x5c0478;return this['_historyUniver$'][_0x5968fd(0x296)];}[_0x5c0478(0x1be)](){const _0x441444=_0x5c0478;this[_0x441444(0x223)](),this['_initPlugins']();}[_0x5c0478(0x223)](){const _0x42d476=_0x5c0478;var _0x28c75e;let _0x3f97ac=(_0x28c75e=this['_configService'][_0x42d476(0x2c4)]('UNIVER_CONTAINER_ID'))==null?_0x42d476(0x26d):_0x28c75e,_0x5316f3=document[_0x42d476(0x21e)](_0x3f97ac);if(!_0x5316f3)return;let _0x2079e3=document['createElement'](_0x42d476(0x25b));_0x2079e3['id']=_0x899ff9,_0x2079e3['dataset'][_0x42d476(0x2c0)]=_0x42d476(0x1ed),_0x2079e3[_0x42d476(0x193)][_0x42d476(0x298)]=_0x42d476(0x197),_0x2079e3['style']['top']='0',_0x2079e3[_0x42d476(0x193)][_0x42d476(0x1f0)]='0',_0x2079e3[_0x42d476(0x193)]['width']=_0x42d476(0x1d7),_0x2079e3[_0x42d476(0x193)][_0x42d476(0x235)]=_0x42d476(0x1d7),_0x2079e3[_0x42d476(0x193)]['zIndex']='49',_0x2079e3[_0x42d476(0x193)][_0x42d476(0x1b0)]=_0x42d476(0x277),_0x5316f3[_0x42d476(0x1f4)](_0x2079e3);}[_0x5c0478(0x1c8)](){const _0x43a336=_0x5c0478;[[_0x4b24ed['UniverRenderEnginePlugin']],[_0x4e0cc1[_0x43a336(0x229)],{'container':_0x899ff9,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4e0cc1[_0x43a336(0x210)],null]]}],[_0xf803b2['UniverNetworkPlugin']],[_0x1ecc4b[_0x43a336(0x18f)],{'override':[[_0x1ecc4b['IImageIoService'],null]]}],[_0x39adae[_0x43a336(0x2c9)],{'hasScroll':!0x1}],[_0x191e0b[_0x43a336(0x1bf)]],[_0x47d091['UniverSheetsNumfmtPlugin']],[_0x55dc03['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x5ba188[_0x43a336(0x217)]],[_0x401347[_0x43a336(0x2cd)]],[_0x561d1e[_0x43a336(0x19f)]],[_0x4d7f78[_0x43a336(0x29b)]],[_0x9b82b7['UniverSheetsFilterPlugin']],[_0x397bf8[_0x43a336(0x2e2)]],[_0xa49623[_0x43a336(0x2ee)]],[_0x3abcdd['UniverSheetsConditionalFormattingUIPlugin']],[_0x44b86d[_0x43a336(0x2c7)]],[_0x3155c5['UniverSheetsHyperLinkUIPlugin']],[_0x3d65ae[_0x43a336(0x26b)]],[_0xcaeca9[_0x43a336(0x2a7)]],[_0x235b7e[_0x43a336(0x274)]],[_0x39169a[_0x43a336(0x268)],{'notExecuteFormula':!0x0}],[_0x2e2fd7[_0x43a336(0x2de)]],[_0x15f482[_0x43a336(0x29e)]],[_0x584a9b[_0x43a336(0x2b7)]],[_0x4905f6[_0x43a336(0x1c4)]],[_0x339b51['UniverSheetSparklineUIPlugin']],[_0x339a74['UniverSheetsChartPlugin']],[_0x3f61d4[_0x43a336(0x2e6)]],[_0x3873e9[_0x43a336(0x265)]],[_0x48caa0['UniverSheetsShapeUIPlugin']],[_0x12aa69[_0x43a336(0x297)],{'notExecuteFormula':!0x0}],[_0x263d77[_0x43a336(0x227)]]][_0x43a336(0x1a6)](([_0x52ed43,_0x218f44])=>this[_0x43a336(0x2a0)](_0x52ed43,_0x218f44));}[_0x5c0478(0x2db)](){const _0x385e6d=_0x5c0478;super[_0x385e6d(0x2db)](),this[_0x385e6d(0x195)](),this[_0x385e6d(0x1eb)][_0x385e6d(0x25e)]();}[_0x5c0478(0x2a0)](_0x2a54b2,_0x5ed160,_0x5246a9){const _0x4bf17e=_0x5c0478;if(this[_0x4bf17e(0x1eb)][_0x4bf17e(0x1cc)](_0x2a54b2[_0x4bf17e(0x1e7)])&&!_0x5246a9)throw Error(_0x4bf17e(0x1c7)+_0x2a54b2[_0x4bf17e(0x1e7)]+_0x4bf17e(0x2b8));this[_0x4bf17e(0x1eb)]['set'](_0x2a54b2[_0x4bf17e(0x1e7)],[_0x2a54b2,_0x5ed160]);}[_0x5c0478(0x271)](){const _0x1ab94c=_0x5c0478;return Array[_0x1ab94c(0x248)](this[_0x1ab94c(0x1eb)][_0x1ab94c(0x1a7)]());}['mountHistoryContent'](_0x46909f,_0x4548f8){const _0x1b6b4a=_0x5c0478;let _0x439450=document[_0x1b6b4a(0x21e)](_0x899ff9);_0x439450&&(_0x439450[_0x1b6b4a(0x193)][_0x1b6b4a(0x1b0)]=_0x1b6b4a(0x25a),this[_0x1b6b4a(0x19b)](_0x46909f,_0x899ff9,_0x4548f8));}['unMountHistoryContent'](){const _0x57c835=_0x5c0478;var _0x5ce534;this['_disposableCollection']['dispose'](),(_0x5ce534=this[_0x57c835(0x2c5)])==null||_0x5ce534[_0x57c835(0x2db)](),this[_0x57c835(0x2ea)][_0x57c835(0x243)](null);let _0x4baa92=document[_0x57c835(0x21e)](_0x899ff9);_0x4baa92&&(_0x4baa92[_0x57c835(0x193)][_0x57c835(0x1b0)]=_0x57c835(0x277),this['_internalWebWorker']&&(this[_0x57c835(0x26a)][_0x57c835(0x2b4)](),this[_0x57c835(0x26a)]=null));}['_initUniver'](_0x1017bf,_0x9dd78c,_0x189990){const _0x405ef3=_0x5c0478;var _0x1ea5d7,_0x1877a4,_0x30e28d,_0x377b48,_0x3e8e0c;if(this[_0x405ef3(0x2c5)])return;let _0x3209a1=new _0x4941f9['Univer']({'locales':{[this[_0x405ef3(0x22c)][_0x405ef3(0x1e3)]()]:this[_0x405ef3(0x22c)][_0x405ef3(0x1dd)]()},'override':[[_0x4941f9[_0x405ef3(0x1c3)],{'useClass':_0x56c2b9[_0x405ef3(0x221)]}]]}),_0x42ddb0=_0x3209a1[_0x405ef3(0x2ba)]();this[_0x405ef3(0x261)](this[_0x405ef3(0x258)]['darkMode$'][_0x405ef3(0x1e2)](_0x305d04=>{const _0x1b8099=_0x405ef3;_0x42ddb0[_0x1b8099(0x29d)](_0x4941f9[_0x1b8099(0x2b3)])[_0x1b8099(0x280)](_0x305d04);})),this[_0x405ef3(0x261)](this[_0x405ef3(0x258)][_0x405ef3(0x20f)][_0x405ef3(0x1e2)](_0x49e4c8=>{const _0x29aae0=_0x405ef3;_0x42ddb0['get'](_0x4941f9[_0x29aae0(0x2b3)])[_0x29aae0(0x1b4)](_0x49e4c8);})),_0x42ddb0['get'](_0x4941f9[_0x405ef3(0x27b)])[_0x405ef3(0x2e5)](this[_0x405ef3(0x22c)][_0x405ef3(0x1e3)]()),_0x42ddb0['get'](_0x4941f9[_0x405ef3(0x27a)])[_0x405ef3(0x1cf)](_0x56c2b9['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x405ef3(0x230)][_0x405ef3(0x2c4)](_0x56c2b9[_0x405ef3(0x188)]));let _0x21c00b=this[_0x405ef3(0x230)]['getConfig'](_0x21e068[_0x405ef3(0x2c3)]);_0x21c00b&&_0x3209a1[_0x405ef3(0x2a0)](_0x21e068['UniverLicensePlugin'],{'license':_0x21c00b['ls']});let _0x3abc57=(_0x1ea5d7=this[_0x405ef3(0x230)][_0x405ef3(0x2c4)](_0x405ef3(0x2cb)))==null?void 0x0:_0x1ea5d7[_0x405ef3(0x27d)],_0x4e309d=!!_0x3abc57;_0x4e309d&&(this[_0x405ef3(0x26a)]=_0x3abc57 instanceof Worker?_0x3abc57:null,_0x3209a1[_0x405ef3(0x2a0)](_0x217b9e[_0x405ef3(0x1aa)],{'workerURL':_0x3abc57})),this['_pluginMap'][_0x405ef3(0x1a6)](([_0x3bcf02,_0x36cafe])=>{const _0x2a3c38=_0x405ef3;_0x3209a1[_0x2a3c38(0x2a0)](_0x3bcf02,_0x36cafe);}),_0x3209a1['registerPlugin'](_0x23c092[_0x405ef3(0x262)],{'historyListServerUrl':(_0x1877a4=this[_0x405ef3(0x230)][_0x405ef3(0x2c4)]('edit-history-loader.config'))==null?void 0x0:_0x1877a4[_0x405ef3(0x238)],'historyPanelComponentKey':(_0x30e28d=this[_0x405ef3(0x230)][_0x405ef3(0x2c4)](_0x405ef3(0x2cb)))==null?void 0x0:_0x30e28d[_0x405ef3(0x1ab)],'historyPanelHidden':(_0x377b48=this[_0x405ef3(0x230)]['getConfig'](_0x405ef3(0x2cb)))==null?void 0x0:_0x377b48['historyPanelHidden'],'historyAIassistantEnabled':(_0x3e8e0c=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3e8e0c[_0x405ef3(0x186)]}),_0x42ddb0['invoke'](_0x538fd4=>{this['_initListener'](_0x538fd4,_0x1017bf);}),this[_0x405ef3(0x2ea)][_0x405ef3(0x243)](_0x3209a1);let _0x5c1b43=_0x42ddb0[_0x405ef3(0x29d)](_0x23c092[_0x405ef3(0x1f1)]),_0x172f61=this[_0x405ef3(0x2ef)](_0x1017bf),_0x5461b0=()=>{const _0x548644=_0x405ef3;_0x189990?_0x5c1b43[_0x548644(0x1b8)](_0x1017bf,_0x9dd78c,_0x172f61,_0x189990):_0x5c1b43['triggerLoadVersions'](_0x1017bf,_0x9dd78c,_0x172f61);};if(this[_0x405ef3(0x2ab)][_0x405ef3(0x1a1)]({'content':this[_0x405ef3(0x22c)]['t'](_0x405ef3(0x216)),'type':_0x141d4a[_0x405ef3(0x1a0)][_0x405ef3(0x255)]}),_0x4e309d)try{_0x42ddb0['get'](_0x217b9e[_0x405ef3(0x24a)])[_0x405ef3(0x20e)]()[_0x405ef3(0x2ca)](()=>{_0x5461b0();});}catch{_0x5461b0();}else _0x5461b0();}['_initListener'](_0x215b07,_0x2e205c){const _0xc064c7=_0x5c0478;let _0x15a8b2=_0x215b07[_0xc064c7(0x29d)](_0x23c092['HistoryManagerService']);this['_disposableCollection'][_0xc064c7(0x2a3)](_0x15a8b2[_0xc064c7(0x25d)][_0xc064c7(0x1e2)](_0x3771ed=>{const _0x3afee5=_0xc064c7;switch(_0x3771ed){case _0x23c092[_0x3afee5(0x26c)]['Entered']:this[_0x3afee5(0x20a)][_0x3afee5(0x1cb)](),this[_0x3afee5(0x250)][_0x3afee5(0x1d0)]();break;case _0x23c092[_0x3afee5(0x26c)][_0x3afee5(0x25f)]:this[_0x3afee5(0x189)][_0x3afee5(0x2da)](_0x1b34e3['id']),this[_0x3afee5(0x195)]();break;case _0x23c092[_0x3afee5(0x26c)][_0x3afee5(0x1d4)]:this[_0x3afee5(0x195)](),this[_0x3afee5(0x2ab)][_0x3afee5(0x1a1)]({'content':this[_0x3afee5(0x22c)]['t'](_0x3afee5(0x2df)),'type':_0x141d4a[_0x3afee5(0x1a0)][_0x3afee5(0x1d4)],'duration':0xbb8});break;default:break;}})),this[_0xc064c7(0x228)][_0xc064c7(0x2a3)](_0x15a8b2[_0xc064c7(0x253)]['subscribe'](async _0x588e41=>{const _0x4dcd5e=_0xc064c7;_0x588e41&&this[_0x4dcd5e(0x189)]['executeCommand'](_0x4d7f78[_0x4dcd5e(0x211)]['id'],{'unitId':_0x2e205c,'revision':_0x588e41});}));}[_0x5c0478(0x2ef)](_0x4932fa){const _0x5f1b03=_0x5c0478;let _0x4eeaee=this[_0x5f1b03(0x26e)][_0x5f1b03(0x2aa)](_0x4932fa)[_0x5f1b03(0x2a1)]()['map'](_0x28a300=>_0x28a300[_0x5f1b03(0x2b5)]()),_0x139fe5=new _0x55dc03[(_0x5f1b03(0x2d0))](_0x4932fa)['id'],_0x44adb7=_0x4eeaee[_0x5f1b03(0x1d1)](_0x115906=>new _0x55dc03[(_0x5f1b03(0x247))](_0x4932fa,_0x115906)['id']),_0x19690d=_0x4eeaee['map'](_0x578ded=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x4932fa,_0x578ded)[_0x5f1b03(0x1d1)](_0x5b4a41=>new _0x55dc03[(_0x5f1b03(0x2be))](_0x4932fa,_0x578ded,_0x5b4a41[_0x5f1b03(0x1ca)])['id']))[_0x5f1b03(0x1ff)](),_0xab81d8=new _0x55dc03[(_0x5f1b03(0x27c))](_0x4932fa)['id'];return this[_0x5f1b03(0x2a6)][_0x5f1b03(0x19a)]([_0x139fe5,..._0x44adb7,..._0x19690d,_0xab81d8])[_0x5f1b03(0x2e9)](_0x341b20=>!!_0x341b20['value']);}};_0x5c387d=_0x12d3bc([_0xa5c874(0x0,(0x0,_0x4941f9['Inject'])(_0x4941f9[_0x5c0478(0x27b)])),_0xa5c874(0x1,_0x4941f9[_0x5c0478(0x23c)]),_0xa5c874(0x2,_0x4941f9[_0x5c0478(0x27a)]),_0xa5c874(0x3,_0x4941f9[_0x5c0478(0x1e6)]),_0xa5c874(0x4,_0x4e0cc1[_0x5c0478(0x212)]),_0xa5c874(0x5,_0x4941f9[_0x5c0478(0x1f5)]),_0xa5c874(0x6,(0x0,_0x4941f9['Inject'])(_0x55dc03[_0x5c0478(0x1ee)])),_0xa5c874(0x7,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4e0cc1[_0x5c0478(0x210)])),_0xa5c874(0x8,(0x0,_0x4941f9['Inject'])(_0x4e0cc1[_0x5c0478(0x208)])),_0xa5c874(0x9,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4941f9[_0x5c0478(0x2b3)]))],_0x5c387d);let _0x543923={'id':_0x5c0478(0x1f8),'type':_0x4941f9[_0x5c0478(0x219)][_0x5c0478(0x2e1)],'handler':_0x5d7097=>{const _0x5c33e9=_0x5c0478;let _0x93dae4=_0x5d7097[_0x5c33e9(0x29d)](_0x5c387d),{unitId:_0x330bf5}=(0x0,_0x55dc03[_0x5c33e9(0x20b)])(_0x5d7097['get'](_0x4941f9[_0x5c33e9(0x23c)]))||{};return _0x330bf5?(_0x93dae4[_0x5c33e9(0x239)](_0x330bf5),!0x0):!0x1;}},_0x1b34e3={'id':_0x5c0478(0x279),'type':_0x4941f9[_0x5c0478(0x219)][_0x5c0478(0x2e1)],'handler':()=>!0x0};var _0x4b4513=_0x5c0478(0x1dc),_0x394f18=_0x5c0478(0x292);function _0x793aff({ref:_0x4206be,..._0x5e99e3}){const _0x594e9a=_0x5c0478;let {icon:_0x1e0868,id:_0x3d9766,className:_0x162df1,extend:_0x1bc62a,..._0x518d7c}=_0x5e99e3,_0x2a2845=(_0x594e9a(0x198)+_0x3d9766+'\x20'+(_0x162df1||''))[_0x594e9a(0x293)](),_0x43ee20=(0x0,_0x34440f['useRef'])('_'+_0x3ffbf6());return _0x392d11(_0x1e0868,''+_0x3d9766,{'defIds':_0x1e0868[_0x594e9a(0x26f)],'idSuffix':_0x43ee20[_0x594e9a(0x1bc)]},{'ref':_0x4206be,'className':_0x2a2845,..._0x518d7c},_0x1bc62a);}function _0x392d11(_0x319e5b,_0x837c97,_0x573060,_0xe9b905,_0x35dbc4){const _0x31437e=_0x5c0478;return(0x0,_0x34440f[_0x31437e(0x1c5)])(_0x319e5b[_0x31437e(0x190)],{'key':_0x837c97,..._0x576718(_0x319e5b,_0x573060,_0x35dbc4),..._0xe9b905},(_0x26318d(_0x319e5b,_0x573060)[_0x31437e(0x194)]||[])[_0x31437e(0x1d1)]((_0x5e15b6,_0x5bddd5)=>_0x392d11(_0x5e15b6,_0x837c97+'-'+_0x319e5b['tag']+'-'+_0x5bddd5,_0x573060,void 0x0,_0x35dbc4)));}function _0x576718(_0x1cc323,_0x184862,_0x1c37b0){const _0x357016=_0x5c0478;let _0x2e3ac5={..._0x1cc323[_0x357016(0x267)]};_0x1c37b0!=null&&_0x1c37b0['colorChannel1']&&_0x2e3ac5['fill']===_0x357016(0x27e)&&(_0x2e3ac5[_0x357016(0x25c)]=_0x1c37b0[_0x357016(0x27e)]),_0x1cc323[_0x357016(0x190)]===_0x357016(0x276)&&_0x2e3ac5['id']&&(_0x2e3ac5['id']+=_0x184862[_0x357016(0x246)]),Object[_0x357016(0x254)](_0x2e3ac5)[_0x357016(0x1a6)](([_0x4e14cd,_0x36a551])=>{const _0x5652fb=_0x357016;_0x4e14cd===_0x5652fb(0x276)&&typeof _0x36a551==_0x5652fb(0x28c)&&(_0x2e3ac5[_0x4e14cd]=_0x36a551[_0x5652fb(0x249)](/url\(#(.*)\)/,'url(#$1'+_0x184862['idSuffix']+')'));});let {defIds:_0x40ede4}=_0x184862;return!_0x40ede4||_0x40ede4[_0x357016(0x289)]===0x0?_0x2e3ac5:(_0x1cc323[_0x357016(0x190)]===_0x357016(0x299)&&_0x2e3ac5[_0x357016(0x22a)]&&(_0x2e3ac5['xlink:href']+=_0x184862['idSuffix']),Object['entries'](_0x2e3ac5)['forEach'](([_0x10ca30,_0x2ce562])=>{const _0x3d6e06=_0x357016;typeof _0x2ce562==_0x3d6e06(0x28c)&&(_0x2e3ac5[_0x10ca30]=_0x2ce562[_0x3d6e06(0x249)](/url\(#(.*)\)/,_0x3d6e06(0x2e4)+_0x184862['idSuffix']+')'));}),_0x2e3ac5);}function _0x26318d(_0x3edc67,_0x5a6658){const _0x7833d=_0x5c0478;var _0x594c7a;let {defIds:_0x5b6a45}=_0x5a6658;return!_0x5b6a45||_0x5b6a45[_0x7833d(0x289)]===0x0?_0x3edc67:_0x3edc67[_0x7833d(0x190)]==='defs'&&(_0x594c7a=_0x3edc67[_0x7833d(0x194)])!=null&&_0x594c7a[_0x7833d(0x289)]?{..._0x3edc67,'children':_0x3edc67[_0x7833d(0x194)]['map'](_0x2a23db=>typeof _0x2a23db[_0x7833d(0x267)]['id']==_0x7833d(0x28c)&&_0x5b6a45&&_0x5b6a45['includes'](_0x2a23db['attrs']['id'])?{..._0x2a23db,'attrs':{..._0x2a23db[_0x7833d(0x267)],'id':_0x2a23db[_0x7833d(0x267)]['id']+_0x5a6658[_0x7833d(0x246)]}}:_0x2a23db)}:_0x3edc67;}function _0x3ffbf6(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x793aff[_0x5c0478(0x1bd)]=_0x5c0478(0x23e);let _0xda8d3c={'tag':_0x5c0478(0x28f),'attrs':{'xmlns':_0x5c0478(0x22e),'fill':_0x5c0478(0x277),'viewBox':_0x5c0478(0x244),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x5c0478(0x283),'clipPath':_0x5c0478(0x1a4)},'children':[{'tag':_0x5c0478(0x21a),'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':_0x5c0478(0x21a),'attrs':{'d':_0x5c0478(0x2d3)}}]},{'tag':_0x5c0478(0x2bf),'attrs':{},'children':[{'tag':_0x5c0478(0x240),'attrs':{'id':_0x5c0478(0x1a8)},'children':[{'tag':_0x5c0478(0x21a),'attrs':{'fill':_0x5c0478(0x220),'d':_0x5c0478(0x24b)}}]}]}],'defIds':['history-icon_clip0_907_281']},_0x448da4=(0x0,_0x34440f[_0x5c0478(0x29f)])(function(_0x287798,_0xa19128){const _0x5aad33=_0x5c0478;return(0x0,_0x34440f[_0x5aad33(0x1c5)])(_0x793aff,Object[_0x5aad33(0x2eb)]({},_0x287798,{'id':_0x5aad33(0x2a8),'ref':_0xa19128,'icon':_0xda8d3c}));});_0x448da4[_0x5c0478(0x1bd)]=_0x5c0478(0x215);function _0x334973(_0x42d36a){const _0x2a0c5b=_0x5c0478;return{'id':_0x543923['id'],'type':_0x4e0cc1[_0x2a0c5b(0x2a2)][_0x2a0c5b(0x257)],'icon':'HistoryIcon','tooltip':'editHistory.panel.title','hidden$':(0x0,_0x4e0cc1['getMenuHiddenObservable'])(_0x42d36a,_0x4941f9[_0x2a0c5b(0x206)][_0x2a0c5b(0x28a)]),'disabled$':(0x0,_0x5ba188[_0x2a0c5b(0x199)])(_0x42d36a,{'workbookTypes':[_0x55dc03[_0x2a0c5b(0x1b2)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0xf7ee2d={[_0x4e0cc1[_0x5c0478(0x2a9)][_0x5c0478(0x18c)]]:{[_0x543923['id']]:{'order':0.2,'menuItemFactory':_0x334973}}},_0x54af3a=class extends _0x4941f9[_0x5c0478(0x22d)]{constructor(_0x4e3f12,_0x3ea551,_0x37ea32,_0x10c57b,_0x2c3168,_0x51d072,_0x3eeb4d,_0x210b98,_0x47fa8f,_0x54ba0e,_0x4a1aaa){const _0x2036da=_0x5c0478;super(),this['_commandService']=_0x4e3f12,this[_0x2036da(0x1fa)]=_0x3ea551,this[_0x2036da(0x24e)]=_0x37ea32,this[_0x2036da(0x1e1)]=_0x10c57b,this[_0x2036da(0x22c)]=_0x2c3168,this['_messageService']=_0x51d072,this[_0x2036da(0x1d8)]=_0x3eeb4d,this['_localCacheService']=_0x210b98,this[_0x2036da(0x22b)]=_0x47fa8f,this['_univerInstanceService']=_0x54ba0e,this[_0x2036da(0x19d)]=_0x4a1aaa,_0x4b0516(this,_0x2036da(0x1fb),null),this[_0x2036da(0x1be)]();}['_init'](){const _0x4fd042=_0x5c0478;[_0x543923,_0x1b34e3][_0x4fd042(0x1a6)](_0x203b7f=>this[_0x4fd042(0x261)]((0x0,_0x4941f9[_0x4fd042(0x22f)])(this[_0x4fd042(0x189)][_0x4fd042(0x2d6)](_0x203b7f)))),this[_0x4fd042(0x261)](this[_0x4fd042(0x24e)][_0x4fd042(0x2ec)](_0x4fd042(0x215),_0x448da4)),this[_0x4fd042(0x1fa)][_0x4fd042(0x23f)](_0xf7ee2d),this[_0x4fd042(0x261)](this[_0x4fd042(0x189)]['onCommandExecuted'](async(_0x5a5367,_0x2b6538)=>{const _0x2584e9=_0x4fd042;if(_0x5a5367['id']===_0x4d7f78[_0x2584e9(0x211)]['id']){let {unitId:_0x218e64}=_0x5a5367['params'];this[_0x2584e9(0x2ab)][_0x2584e9(0x1a1)]({'content':this[_0x2584e9(0x22c)]['t'](_0x2584e9(0x207)),'type':_0x141d4a[_0x2584e9(0x1a0)][_0x2584e9(0x255)],'duration':0x1388});let _0x18a7a9=this[_0x2584e9(0x1d8)]['getCollabEntity'](_0x218e64);_0x2b6538!=null&&_0x2b6538['fromCollab']?this[_0x2584e9(0x1b7)](_0x18a7a9,async()=>(setTimeout(()=>window[_0x2584e9(0x2d4)][_0x2584e9(0x259)]()),!0x0),!0x0):this[_0x2584e9(0x1b7)](_0x18a7a9,async()=>{const _0x40e602=_0x2584e9;let _0x5a115e=this[_0x40e602(0x26e)]['getCurrentUnitOfType'](_0x4941f9['UniverInstanceType']['UNIVER_SHEET']),_0x58b638=_0x5a115e==null?void 0x0:_0x5a115e['getActiveSheet']();if(!_0x58b638)return!0x1;this[_0x40e602(0x26e)][_0x40e602(0x20c)](_0x218e64);let _0x3ade75=await this[_0x40e602(0x22b)][_0x40e602(0x204)](_0x218e64,_0x4941f9[_0x40e602(0x206)][_0x40e602(0x28a)]);return _0x3ade75&&_0x3ade75 instanceof _0x4941f9[_0x40e602(0x1c1)]?(await this['_setupSubUnitSync'](_0x3ade75,_0x58b638[_0x40e602(0x2b5)]()),!0x0):!0x1;});}}));}[_0x5c0478(0x1b7)](_0x418b1d,_0x40e0af,_0x413aa0=!0x1){const _0x4666c9=_0x5c0478;let _0x4f6467=(0x0,_0x4be76c[_0x4666c9(0x1b3)])([_0x418b1d[_0x4666c9(0x291)]['event$'],_0x418b1d[_0x4666c9(0x285)]])['subscribe'](async([_0x1b776c,_0x2b5b85])=>{const _0x2b0077=_0x4666c9;if(_0x1b776c[_0x2b0077(0x24d)]===_0x4d7f78[_0x2b0077(0x1d5)]['CHANGESET_ACK']&&(_0x2b5b85==null?void 0x0:_0x2b5b85[_0x2b0077(0x278)])===_0x56c2b9[_0x2b0077(0x2d1)]['SYNCED']&&_0x1b776c[_0x2b0077(0x2e3)][_0x2b0077(0x1fe)]['some'](_0x37d0bb=>_0x37d0bb['id']===_0x4d7f78[_0x2b0077(0x211)]['id'])&&await _0x40e0af()){var _0x1adc8e;this[_0x2b0077(0x1e1)][_0x2b0077(0x195)](),_0x4f6467['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x2b0077(0x1fb)]),await((_0x1adc8e=this['_localCacheService'])==null?void 0x0:_0x1adc8e[_0x2b0077(0x272)]()),this[_0x2b0077(0x2ab)][_0x2b0077(0x1a2)]();}});_0x413aa0&&(this[_0x4666c9(0x1fb)]=setTimeout(()=>{const _0x5c08f8=_0x4666c9;_0x4f6467[_0x5c08f8(0x1af)](),this['_messageService'][_0x5c08f8(0x1a1)]({'content':this['_localeService']['t'](_0x5c08f8(0x23d)),'type':_0x141d4a[_0x5c08f8(0x1a0)][_0x5c08f8(0x1d4)],'duration':0xbb8});},0x1388));}async[_0x5c0478(0x18d)](_0x1bb53c,_0x59114d){const _0x4bf396=_0x5c0478;await this[_0x4bf396(0x1b9)](_0x1bb53c,_0x59114d),_0x1bb53c[_0x4bf396(0x187)][_0x4bf396(0x196)]((0x0,_0x4be76c[_0x4bf396(0x281)])(this['dispose$']))[_0x4bf396(0x1e2)](_0x5ae8de=>{const _0x3178b0=_0x4bf396;_0x5ae8de&&this[_0x3178b0(0x1bb)](_0x5ae8de);}),this[_0x4bf396(0x19d)][_0x4bf396(0x237)][_0x4bf396(0x196)]((0x0,_0x4be76c[_0x4bf396(0x281)])(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1bb53c,_0x59114d));}[_0x5c0478(0x1bb)](_0x5695cd,_0x20e8c0=!0x1){const _0x588982=_0x5c0478;let _0x3b63a0=this[_0x588982(0x19d)][_0x588982(0x18e)](_0x588982(0x1ef));_0x5695cd[_0x588982(0x2b5)]()!==_0x3b63a0&&this[_0x588982(0x19d)][_0x588982(0x28b)](_0x588982(0x1ef),_0x5695cd['getSheetId'](),_0x20e8c0);}async[_0x5c0478(0x1b9)](_0xcde316,_0x221e37){const _0x3ebe2c=_0x5c0478;var _0x2a6c7b;if(!_0x221e37||!_0xcde316[_0x3ebe2c(0x1fd)](_0x221e37)){let _0x3817b0=_0xcde316[_0x3ebe2c(0x202)]()[0x0],_0x6bbe01=_0xcde316['getSheetBySheetId'](_0x3817b0);if(!_0x6bbe01)return;this[_0x3ebe2c(0x1bb)](_0x6bbe01,!0x0),await this[_0x3ebe2c(0x189)][_0x3ebe2c(0x2da)](_0x55dc03[_0x3ebe2c(0x2b2)]['id'],{'unitId':_0xcde316[_0x3ebe2c(0x29c)](),'subUnitId':_0x3817b0});return;}((_0x2a6c7b=_0xcde316[_0x3ebe2c(0x1d2)]())==null?void 0x0:_0x2a6c7b[_0x3ebe2c(0x2b5)]())!==_0x221e37&&await this[_0x3ebe2c(0x189)][_0x3ebe2c(0x2da)](_0x55dc03[_0x3ebe2c(0x2b2)]['id'],{'unitId':_0xcde316['getUnitId'](),'subUnitId':_0x221e37});}};_0x54af3a=_0x12d3bc([_0xa5c874(0x0,_0x4941f9[_0x5c0478(0x1e6)]),_0xa5c874(0x1,_0x4e0cc1[_0x5c0478(0x245)]),_0xa5c874(0x2,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4e0cc1['ComponentManager'])),_0xa5c874(0x3,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x5c387d)),_0xa5c874(0x4,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4941f9[_0x5c0478(0x27b)])),_0xa5c874(0x5,_0x4e0cc1[_0x5c0478(0x212)]),_0xa5c874(0x6,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x56c2b9[_0x5c0478(0x18b)])),_0xa5c874(0x7,_0x56c2b9[_0x5c0478(0x1d6)]),_0xa5c874(0x8,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x56c2b9[_0x5c0478(0x19c)])),_0xa5c874(0x9,_0x4941f9[_0x5c0478(0x23c)]),_0xa5c874(0xa,_0x3678e9[_0x5c0478(0x209)])],_0x54af3a);let _0x552cd1='univer-history-container-mobile',_0x53b120=class extends _0x4941f9[_0x5c0478(0x2c8)]{constructor(_0x441c67,_0x3f2b31,_0x2bedf2,_0x2db5a4,_0x450ae3,_0x439953,_0x14b990,_0x539826,_0x287a1e,_0x18d65e){const _0x449fe2=_0x5c0478;super(),this['_localeService']=_0x441c67,this[_0x449fe2(0x26e)]=_0x3f2b31,this[_0x449fe2(0x230)]=_0x2bedf2,this[_0x449fe2(0x189)]=_0x2db5a4,this[_0x449fe2(0x2ab)]=_0x450ae3,this[_0x449fe2(0x2a6)]=_0x439953,this[_0x449fe2(0x1da)]=_0x14b990,this[_0x449fe2(0x20a)]=_0x539826,this[_0x449fe2(0x250)]=_0x287a1e,this['_themeService']=_0x18d65e,_0x4b0516(this,_0x449fe2(0x2ea),new _0x4be76c[(_0x449fe2(0x27f))](null)),_0x4b0516(this,_0x449fe2(0x1f3),this[_0x449fe2(0x2ea)][_0x449fe2(0x2e8)]()),_0x4b0516(this,'_disposableCollection',new _0x4941f9[(_0x449fe2(0x28e))]()),_0x4b0516(this,_0x449fe2(0x1eb),new Map()),_0x4b0516(this,_0x449fe2(0x26a),null),this[_0x449fe2(0x1be)]();}get[_0x5c0478(0x2c5)](){const _0x546056=_0x5c0478;return this['_historyUniver$'][_0x546056(0x296)];}[_0x5c0478(0x1be)](){const _0x4646ac=_0x5c0478;this[_0x4646ac(0x223)](),this[_0x4646ac(0x1c8)]();}[_0x5c0478(0x223)](){const _0x359093=_0x5c0478;var _0x44fe0b;let _0x2ca183=(_0x44fe0b=this['_configService'][_0x359093(0x2c4)]('UNIVER_CONTAINER_ID'))==null?_0x359093(0x26d):_0x44fe0b,_0x18d3de=document[_0x359093(0x21e)](_0x2ca183);if(!_0x18d3de)return;let _0x1c4d01=document[_0x359093(0x1c5)]('div');_0x1c4d01['id']=_0x552cd1,_0x1c4d01[_0x359093(0x205)][_0x359093(0x2c0)]=_0x359093(0x1ed),_0x1c4d01[_0x359093(0x193)][_0x359093(0x298)]='absolute',_0x1c4d01['style']['top']='0',_0x1c4d01['style'][_0x359093(0x1f0)]='0',_0x1c4d01[_0x359093(0x193)][_0x359093(0x2d8)]='100%',_0x1c4d01['style'][_0x359093(0x235)]=_0x359093(0x1d7),_0x1c4d01[_0x359093(0x193)][_0x359093(0x23b)]='49',_0x1c4d01[_0x359093(0x193)][_0x359093(0x1b0)]='none',_0x18d3de['appendChild'](_0x1c4d01);}['_initPlugins'](){const _0x4b0bd5=_0x5c0478;[[_0x4b24ed[_0x4b0bd5(0x218)]],[_0x4e0cc1['UniverMobileUIPlugin'],{'container':_0x552cd1,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4e0cc1['IDialogService'],null]]}],[_0xf803b2[_0x4b0bd5(0x231)]],[_0x1ecc4b[_0x4b0bd5(0x18f)],{'override':[[_0x1ecc4b[_0x4b0bd5(0x252)],null]]}],[_0x39adae[_0x4b0bd5(0x2c9)],{'hasScroll':!0x1}],[_0x191e0b[_0x4b0bd5(0x1bf)]],[_0x47d091[_0x4b0bd5(0x1f9)]],[_0x55dc03[_0x4b0bd5(0x21f)],{'notExecuteFormula':!0x0}],[_0x5ba188[_0x4b0bd5(0x1e8)]],[_0x401347[_0x4b0bd5(0x2cd)]],[_0x561d1e[_0x4b0bd5(0x19f)]],[_0x4d7f78[_0x4b0bd5(0x29b)]],[_0x9b82b7[_0x4b0bd5(0x2ac)]],[_0xa49623['UniverSheetsConditionalFormattingPlugin']],[_0x44b86d[_0x4b0bd5(0x2c7)]],[_0x3155c5['UniverSheetsHyperLinkUIPlugin']],[_0x3d65ae['UniverDataValidationPlugin']],[_0xcaeca9[_0x4b0bd5(0x2a7)]],[_0x235b7e[_0x4b0bd5(0x200)]],[_0x39169a[_0x4b0bd5(0x268)],{'notExecuteFormula':!0x0}],[_0x2e2fd7[_0x4b0bd5(0x2de)]],[_0x15f482['UniverSheetsDrawingPlugin']],[_0x584a9b['UniverSheetsDrawingUIPlugin']],[_0x4905f6['UniverSheetSparklinePlugin']],[_0x339b51[_0x4b0bd5(0x1fc)]],[_0x339a74[_0x4b0bd5(0x1ce)]],[_0x3f61d4[_0x4b0bd5(0x2e6)]],[_0x3873e9[_0x4b0bd5(0x265)]],[_0x48caa0[_0x4b0bd5(0x1e0)]],[_0x12aa69[_0x4b0bd5(0x297)],{'notExecuteFormula':!0x0}],[_0x263d77[_0x4b0bd5(0x227)]]][_0x4b0bd5(0x1a6)](([_0x5d9f19,_0x526842])=>this[_0x4b0bd5(0x2a0)](_0x5d9f19,_0x526842));}['dispose'](){const _0x467b04=_0x5c0478;super[_0x467b04(0x2db)](),this[_0x467b04(0x195)](),this[_0x467b04(0x1eb)][_0x467b04(0x25e)]();}[_0x5c0478(0x2a0)](_0xc9a931,_0x429994,_0x27a810){const _0x3486af=_0x5c0478;if(this[_0x3486af(0x1eb)][_0x3486af(0x1cc)](_0xc9a931[_0x3486af(0x1e7)])&&!_0x27a810)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0xc9a931[_0x3486af(0x1e7)]+'\x20has\x20been\x20registered.');this[_0x3486af(0x1eb)][_0x3486af(0x2a4)](_0xc9a931[_0x3486af(0x1e7)],[_0xc9a931,_0x429994]);}[_0x5c0478(0x271)](){const _0x44e911=_0x5c0478;return Array[_0x44e911(0x248)](this[_0x44e911(0x1eb)][_0x44e911(0x1a7)]());}[_0x5c0478(0x239)](_0x45866f,_0xef6be9){const _0x3b6063=_0x5c0478;let _0x276276=document['getElementById'](_0x552cd1);_0x276276&&(_0x276276['style']['display']=_0x3b6063(0x25a),this['_initUniver'](_0x45866f,_0x552cd1,_0xef6be9));}['unMountHistoryContent'](){const _0xaaca84=_0x5c0478;var _0x430e92;this[_0xaaca84(0x228)][_0xaaca84(0x2db)](),(_0x430e92=this[_0xaaca84(0x2c5)])==null||_0x430e92[_0xaaca84(0x2db)](),this[_0xaaca84(0x2ea)][_0xaaca84(0x243)](null);let _0x3143b7=document[_0xaaca84(0x21e)](_0x552cd1);_0x3143b7&&(_0x3143b7[_0xaaca84(0x193)][_0xaaca84(0x1b0)]=_0xaaca84(0x277),this[_0xaaca84(0x26a)]&&(this['_internalWebWorker'][_0xaaca84(0x2b4)](),this['_internalWebWorker']=null));}[_0x5c0478(0x19b)](_0x4245ab,_0x42f30d,_0x1c8fc4){const _0xc69799=_0x5c0478;var _0x3e724f,_0x4d9946,_0x131ef3,_0x1491d7;if(this[_0xc69799(0x2c5)])return;let _0x1b600e=new _0x4941f9[(_0xc69799(0x1db))]({'locales':{[this['_localeService'][_0xc69799(0x1e3)]()]:this[_0xc69799(0x22c)][_0xc69799(0x1dd)]()},'override':[[_0x4941f9[_0xc69799(0x1c3)],{'useClass':_0x56c2b9[_0xc69799(0x221)]}]]}),_0x50fd15=_0x1b600e[_0xc69799(0x2ba)]();this[_0xc69799(0x261)](this[_0xc69799(0x258)][_0xc69799(0x2b1)][_0xc69799(0x1e2)](_0x4a09c6=>{const _0x325ba0=_0xc69799;_0x50fd15[_0x325ba0(0x29d)](_0x4941f9[_0x325ba0(0x2b3)])[_0x325ba0(0x280)](_0x4a09c6);})),this['disposeWithMe'](this[_0xc69799(0x258)][_0xc69799(0x20f)][_0xc69799(0x1e2)](_0x5f08c5=>{const _0x32a3e1=_0xc69799;_0x50fd15[_0x32a3e1(0x29d)](_0x4941f9[_0x32a3e1(0x2b3)])['setTheme'](_0x5f08c5);})),_0x50fd15[_0xc69799(0x29d)](_0x4941f9[_0xc69799(0x27b)])[_0xc69799(0x2e5)](this[_0xc69799(0x22c)]['getCurrentLocale']()),_0x50fd15[_0xc69799(0x29d)](_0x4941f9[_0xc69799(0x27a)])[_0xc69799(0x1cf)](_0x56c2b9['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0xc69799(0x230)][_0xc69799(0x2c4)](_0x56c2b9['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x1936be=this[_0xc69799(0x230)]['getConfig'](_0x21e068[_0xc69799(0x2c3)]);_0x1936be&&_0x1b600e['registerPlugin'](_0x21e068['UniverLicensePlugin'],{'license':_0x1936be['ls']});let _0x12c522=(_0x3e724f=this[_0xc69799(0x230)][_0xc69799(0x2c4)](_0xc69799(0x2cb)))==null?void 0x0:_0x3e724f[_0xc69799(0x27d)],_0x303e0a=!!_0x12c522;_0x303e0a&&(this[_0xc69799(0x26a)]=_0x12c522 instanceof Worker?_0x12c522:null,_0x1b600e[_0xc69799(0x2a0)](_0x217b9e[_0xc69799(0x1aa)],{'workerURL':_0x12c522})),this[_0xc69799(0x1eb)][_0xc69799(0x1a6)](([_0x829df1,_0x347e95])=>{_0x1b600e['registerPlugin'](_0x829df1,_0x347e95);}),_0x1b600e[_0xc69799(0x2a0)](_0x23c092[_0xc69799(0x1e4)],{'historyListServerUrl':(_0x4d9946=this[_0xc69799(0x230)][_0xc69799(0x2c4)](_0xc69799(0x2cb)))==null?void 0x0:_0x4d9946[_0xc69799(0x238)],'historyPanelComponentKey':(_0x131ef3=this[_0xc69799(0x230)]['getConfig'](_0xc69799(0x2cb)))==null?void 0x0:_0x131ef3['historyPanelComponentKey'],'historyPanelHidden':(_0x1491d7=this[_0xc69799(0x230)][_0xc69799(0x2c4)](_0xc69799(0x2cb)))==null?void 0x0:_0x1491d7[_0xc69799(0x203)]}),_0x50fd15[_0xc69799(0x242)](_0x78dae5=>{this['_initListener'](_0x78dae5,_0x4245ab);}),this[_0xc69799(0x2ea)][_0xc69799(0x243)](_0x1b600e);let _0x3beb3e=_0x50fd15[_0xc69799(0x29d)](_0x23c092['HistoryManagerService']),_0x1a059e=this[_0xc69799(0x2ef)](_0x4245ab),_0x10119a=()=>{const _0x47606c=_0xc69799;_0x1c8fc4?_0x3beb3e[_0x47606c(0x1b8)](_0x4245ab,_0x42f30d,_0x1a059e,_0x1c8fc4):_0x3beb3e['triggerLoadVersions'](_0x4245ab,_0x42f30d,_0x1a059e);};if(this[_0xc69799(0x2ab)][_0xc69799(0x1a1)]({'content':this['_localeService']['t']('editHistory.info.initializing'),'type':_0x141d4a[_0xc69799(0x1a0)][_0xc69799(0x255)]}),_0x303e0a)try{_0x50fd15[_0xc69799(0x29d)](_0x217b9e[_0xc69799(0x24a)])[_0xc69799(0x20e)]()[_0xc69799(0x2ca)](()=>{_0x10119a();});}catch{_0x10119a();}else _0x10119a();}['_initListener'](_0x3c20d8,_0x820295){const _0x30c0ed=_0x5c0478;let _0x3776fb=_0x3c20d8['get'](_0x23c092[_0x30c0ed(0x1f1)]);this[_0x30c0ed(0x228)][_0x30c0ed(0x2a3)](_0x3776fb[_0x30c0ed(0x25d)]['subscribe'](_0x5cb88d=>{const _0x37f1a6=_0x30c0ed;switch(_0x5cb88d){case _0x23c092[_0x37f1a6(0x26c)][_0x37f1a6(0x1a5)]:this[_0x37f1a6(0x20a)][_0x37f1a6(0x1cb)](),this['_sidebarService'][_0x37f1a6(0x1d0)]();break;case _0x23c092[_0x37f1a6(0x26c)]['Exited']:this[_0x37f1a6(0x189)][_0x37f1a6(0x2da)](_0x1b34e3['id']),this['unMountHistoryContent']();break;case _0x23c092['HistoryModeStatus']['Error']:this[_0x37f1a6(0x195)](),this['_messageService'][_0x37f1a6(0x1a1)]({'content':this['_localeService']['t'](_0x37f1a6(0x2df)),'type':_0x141d4a[_0x37f1a6(0x1a0)]['Error'],'duration':0xbb8});break;default:break;}})),this[_0x30c0ed(0x228)][_0x30c0ed(0x2a3)](_0x3776fb[_0x30c0ed(0x253)]['subscribe'](async _0x231920=>{const _0x11104c=_0x30c0ed;_0x231920&&this[_0x11104c(0x189)][_0x11104c(0x2da)](_0x4d7f78[_0x11104c(0x211)]['id'],{'unitId':_0x820295,'revision':_0x231920});}));}[_0x5c0478(0x2ef)](_0x4cf0d7){const _0x796687=_0x5c0478;let _0x3387ae=this[_0x796687(0x26e)]['getUnit'](_0x4cf0d7)[_0x796687(0x2a1)]()[_0x796687(0x1d1)](_0x2f9f85=>_0x2f9f85['getSheetId']()),_0x34526a=new _0x55dc03[(_0x796687(0x2d0))](_0x4cf0d7)['id'],_0x4285b9=_0x3387ae['map'](_0x1bb973=>new _0x55dc03[(_0x796687(0x247))](_0x4cf0d7,_0x1bb973)['id']),_0x45aebc=_0x3387ae[_0x796687(0x1d1)](_0x51fdd3=>this[_0x796687(0x1da)][_0x796687(0x2ae)](_0x4cf0d7,_0x51fdd3)[_0x796687(0x1d1)](_0x1c0785=>new _0x55dc03[(_0x796687(0x2be))](_0x4cf0d7,_0x51fdd3,_0x1c0785['permissionId'])['id']))['flat'](),_0x8a4ed=new _0x55dc03[(_0x796687(0x27c))](_0x4cf0d7)['id'];return this[_0x796687(0x2a6)]['composePermission']([_0x34526a,..._0x4285b9,..._0x45aebc,_0x8a4ed])['every'](_0x3c4bcd=>!!_0x3c4bcd[_0x796687(0x296)]);}};_0x53b120=_0x12d3bc([_0xa5c874(0x0,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4941f9[_0x5c0478(0x27b)])),_0xa5c874(0x1,_0x4941f9[_0x5c0478(0x23c)]),_0xa5c874(0x2,_0x4941f9[_0x5c0478(0x27a)]),_0xa5c874(0x3,_0x4941f9[_0x5c0478(0x1e6)]),_0xa5c874(0x4,_0x4e0cc1[_0x5c0478(0x212)]),_0xa5c874(0x5,_0x4941f9[_0x5c0478(0x1f5)]),_0xa5c874(0x6,(0x0,_0x4941f9['Inject'])(_0x55dc03['RangeProtectionRuleModel'])),_0xa5c874(0x7,(0x0,_0x4941f9['Inject'])(_0x4e0cc1[_0x5c0478(0x210)])),_0xa5c874(0x8,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4e0cc1[_0x5c0478(0x208)])),_0xa5c874(0x9,(0x0,_0x4941f9['Inject'])(_0x4941f9[_0x5c0478(0x2b3)]))],_0x53b120);let _0x51c5c7=class extends _0x4941f9[_0x5c0478(0x1a9)]{constructor(_0x22f898=_0x2ab2b7,_0x50b333,_0xbb5bd4){const _0x46ed87=_0x5c0478;super(),this['_config']=_0x22f898,this[_0x46ed87(0x2b6)]=_0x50b333,this[_0x46ed87(0x230)]=_0xbb5bd4;let {menu:_0x109ac0,..._0x5739e4}=(0x0,_0x4941f9[_0x46ed87(0x2e7)])({},_0x2ab2b7,this['_config']);_0x109ac0&&this[_0x46ed87(0x230)][_0x46ed87(0x1cf)](_0x46ed87(0x1d3),_0x109ac0,{'merge':!0x0}),this[_0x46ed87(0x230)][_0x46ed87(0x1cf)](_0xf36b4,_0x5739e4),this['_config'][_0x46ed87(0x2cc)]&&this[_0x46ed87(0x230)][_0x46ed87(0x1cf)]('UNIVER_CONTAINER_ID',this['_config']['univerContainerId']);}[_0x5c0478(0x241)](){const _0x3f8e20=_0x5c0478;[[_0x5c387d,{'useClass':_0x53b120}],[_0x54af3a]]['forEach'](_0x1f37df=>this[_0x3f8e20(0x2b6)]['add'](_0x1f37df));}[_0x5c0478(0x236)](){const _0x454c56=_0x5c0478;this[_0x454c56(0x2b6)][_0x454c56(0x29d)](_0x54af3a);}};_0x4b0516(_0x51c5c7,'type',_0x4941f9['UniverInstanceType'][_0x5c0478(0x234)]),_0x4b0516(_0x51c5c7,'pluginName',_0x5c0478(0x251)),_0x4b0516(_0x51c5c7,'packageName',_0x4b4513),_0x4b0516(_0x51c5c7,_0x5c0478(0x1ec),_0x394f18),_0x51c5c7=_0x12d3bc([(0x0,_0x4941f9[_0x5c0478(0x1de)])(_0x21e068[_0x5c0478(0x295)]),_0xa5c874(0x1,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4941f9[_0x5c0478(0x19e)])),_0xa5c874(0x2,_0x4941f9['IConfigService'])],_0x51c5c7);let _0x5866ad=class extends _0x4941f9[_0x5c0478(0x22d)]{constructor(_0x5a3418,_0x3d54e9,_0x34890e,_0x17eba6,_0x1dd70b,_0x5c6344,_0x661120,_0x3be27e,_0x1a71c9,_0x289168,_0xcccbb6){const _0x5d247a=_0x5c0478;super(),this[_0x5d247a(0x189)]=_0x5a3418,this['_menuManagerService']=_0x3d54e9,this[_0x5d247a(0x24e)]=_0x34890e,this['_historyManagerService']=_0x17eba6,this[_0x5d247a(0x22c)]=_0x1dd70b,this[_0x5d247a(0x2ab)]=_0x5c6344,this[_0x5d247a(0x1d8)]=_0x661120,this[_0x5d247a(0x2dc)]=_0x3be27e,this[_0x5d247a(0x22b)]=_0x1a71c9,this['_univerInstanceService']=_0x289168,this[_0x5d247a(0x19d)]=_0xcccbb6,_0x4b0516(this,_0x5d247a(0x1fb),null),this[_0x5d247a(0x1be)]();}['_init'](){const _0x277646=_0x5c0478;[_0x543923,_0x1b34e3][_0x277646(0x1a6)](_0x4b1120=>this[_0x277646(0x261)]((0x0,_0x4941f9[_0x277646(0x22f)])(this[_0x277646(0x189)]['registerCommand'](_0x4b1120)))),this[_0x277646(0x261)](this['_componentManager'][_0x277646(0x2ec)](_0x277646(0x215),_0x448da4)),this[_0x277646(0x1fa)][_0x277646(0x23f)](_0xf7ee2d),this[_0x277646(0x261)](this[_0x277646(0x189)][_0x277646(0x2d2)](async(_0x94aee3,_0x50e193)=>{const _0xe19ff4=_0x277646;if(_0x94aee3['id']===_0x4d7f78[_0xe19ff4(0x211)]['id']){let {unitId:_0x428637}=_0x94aee3['params'];this[_0xe19ff4(0x2ab)][_0xe19ff4(0x1a1)]({'content':this[_0xe19ff4(0x22c)]['t'](_0xe19ff4(0x207)),'type':_0x141d4a[_0xe19ff4(0x1a0)][_0xe19ff4(0x255)],'duration':0x1388});let _0xd087af=this['_collaborationController'][_0xe19ff4(0x2dd)](_0x428637);_0x50e193!=null&&_0x50e193[_0xe19ff4(0x1b6)]?this['_handleRevertAcknowledgement'](_0xd087af,async()=>(setTimeout(()=>window[_0xe19ff4(0x2d4)]['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0xd087af,async()=>{const _0x5dada6=_0xe19ff4;let _0x245ec1=this['_univerInstanceService']['getCurrentUnitOfType'](_0x4941f9['UniverInstanceType'][_0x5dada6(0x28a)]),_0x36ab2d=_0x245ec1==null?void 0x0:_0x245ec1[_0x5dada6(0x1d2)]();if(!_0x36ab2d)return!0x1;this[_0x5dada6(0x26e)][_0x5dada6(0x20c)](_0x428637);let _0x58d48c=await this[_0x5dada6(0x22b)][_0x5dada6(0x204)](_0x428637,_0x4941f9[_0x5dada6(0x206)]['UNIVER_SHEET']);return _0x58d48c&&_0x58d48c instanceof _0x4941f9[_0x5dada6(0x1c1)]?(await this[_0x5dada6(0x18d)](_0x58d48c,_0x36ab2d['getSheetId']()),!0x0):!0x1;});}}));}[_0x5c0478(0x1b7)](_0x20e49a,_0x566245,_0x2d2cff=!0x1){const _0x5dce4=_0x5c0478;let _0x1a68b8=(0x0,_0x4be76c['combineLatest'])([_0x20e49a[_0x5dce4(0x291)][_0x5dce4(0x287)],_0x20e49a[_0x5dce4(0x285)]])[_0x5dce4(0x1e2)](async([_0x23538f,_0x6eb7b0])=>{const _0xeb3225=_0x5dce4;if(_0x23538f['eventID']===_0x4d7f78[_0xeb3225(0x1d5)]['CHANGESET_ACK']&&(_0x6eb7b0==null?void 0x0:_0x6eb7b0['status'])===_0x56c2b9[_0xeb3225(0x2d1)]['SYNCED']&&_0x23538f[_0xeb3225(0x2e3)][_0xeb3225(0x1fe)][_0xeb3225(0x1ae)](_0x5118d2=>_0x5118d2['id']===_0x4d7f78[_0xeb3225(0x211)]['id'])&&await _0x566245()){var _0x393954;this[_0xeb3225(0x1e1)][_0xeb3225(0x195)](),_0x1a68b8[_0xeb3225(0x1af)](),this[_0xeb3225(0x1fb)]&&clearTimeout(this[_0xeb3225(0x1fb)]),await((_0x393954=this[_0xeb3225(0x2dc)])==null?void 0x0:_0x393954[_0xeb3225(0x272)]());}});_0x2d2cff&&(this[_0x5dce4(0x1fb)]=setTimeout(()=>{const _0x206234=_0x5dce4;_0x1a68b8[_0x206234(0x1af)](),this[_0x206234(0x2ab)]['show']({'content':this[_0x206234(0x22c)]['t'](_0x206234(0x23d)),'type':_0x141d4a['MessageType'][_0x206234(0x1d4)],'duration':0xbb8});},0x1388));}async[_0x5c0478(0x18d)](_0x59cdbc,_0x498e47){const _0x3d314c=_0x5c0478;await this[_0x3d314c(0x1b9)](_0x59cdbc,_0x498e47),_0x59cdbc['activeSheet$'][_0x3d314c(0x196)]((0x0,_0x4be76c[_0x3d314c(0x281)])(this[_0x3d314c(0x1cd)]))[_0x3d314c(0x1e2)](_0x8ab96a=>{const _0x3a9c0a=_0x3d314c;_0x8ab96a&&this[_0x3a9c0a(0x1bb)](_0x8ab96a);}),this[_0x3d314c(0x19d)][_0x3d314c(0x237)][_0x3d314c(0x196)]((0x0,_0x4be76c[_0x3d314c(0x281)])(this[_0x3d314c(0x1cd)]))[_0x3d314c(0x1e2)](()=>this[_0x3d314c(0x1b9)](_0x59cdbc,_0x498e47));}[_0x5c0478(0x1bb)](_0x479be2,_0x26099d=!0x1){const _0x1e1670=_0x5c0478;let _0x2a0942=this[_0x1e1670(0x19d)][_0x1e1670(0x18e)](_0x1e1670(0x1ef));_0x479be2[_0x1e1670(0x2b5)]()!==_0x2a0942&&this[_0x1e1670(0x19d)]['setParam']('subunit',_0x479be2[_0x1e1670(0x2b5)](),_0x26099d);}async[_0x5c0478(0x1b9)](_0x183e08,_0x9de4b1){const _0x3dfcc5=_0x5c0478;var _0x3ecadd;if(!_0x9de4b1||!_0x183e08['getSheetBySheetId'](_0x9de4b1)){let _0x2ca281=_0x183e08['getUnhiddenWorksheets']()[0x0],_0x23b24f=_0x183e08[_0x3dfcc5(0x1fd)](_0x2ca281);if(!_0x23b24f)return;this[_0x3dfcc5(0x1bb)](_0x23b24f,!0x0),await this[_0x3dfcc5(0x189)]['executeCommand'](_0x55dc03[_0x3dfcc5(0x2b2)]['id'],{'unitId':_0x183e08['getUnitId'](),'subUnitId':_0x2ca281});return;}((_0x3ecadd=_0x183e08[_0x3dfcc5(0x1d2)]())==null?void 0x0:_0x3ecadd[_0x3dfcc5(0x2b5)]())!==_0x9de4b1&&await this[_0x3dfcc5(0x189)][_0x3dfcc5(0x2da)](_0x55dc03[_0x3dfcc5(0x2b2)]['id'],{'unitId':_0x183e08['getUnitId'](),'subUnitId':_0x9de4b1});}};_0x5866ad=_0x12d3bc([_0xa5c874(0x0,_0x4941f9[_0x5c0478(0x1e6)]),_0xa5c874(0x1,_0x4e0cc1[_0x5c0478(0x245)]),_0xa5c874(0x2,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4e0cc1[_0x5c0478(0x288)])),_0xa5c874(0x3,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x5c387d)),_0xa5c874(0x4,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x4941f9[_0x5c0478(0x27b)])),_0xa5c874(0x5,_0x4e0cc1['IMessageService']),_0xa5c874(0x6,(0x0,_0x4941f9['Inject'])(_0x56c2b9[_0x5c0478(0x18b)])),_0xa5c874(0x7,_0x56c2b9['ILocalCacheService']),_0xa5c874(0x8,(0x0,_0x4941f9[_0x5c0478(0x224)])(_0x56c2b9[_0x5c0478(0x19c)])),_0xa5c874(0x9,_0x4941f9['IUniverInstanceService']),_0xa5c874(0xa,_0x3678e9['IURLService'])],_0x5866ad);let _0x459b1a=class extends _0x4941f9[_0x5c0478(0x1a9)]{constructor(_0x5ceb54=_0x2ab2b7,_0x2d158e,_0x1ffc60){const _0x2949a5=_0x5c0478;super(),this[_0x2949a5(0x1c2)]=_0x5ceb54,this[_0x2949a5(0x2b6)]=_0x2d158e,this[_0x2949a5(0x230)]=_0x1ffc60;let {menu:_0x2bc127,..._0x2be782}=(0x0,_0x4941f9[_0x2949a5(0x2e7)])({},_0x2ab2b7,this[_0x2949a5(0x1c2)]);_0x2bc127&&this[_0x2949a5(0x230)]['setConfig'](_0x2949a5(0x1d3),_0x2bc127,{'merge':!0x0}),this[_0x2949a5(0x230)][_0x2949a5(0x1cf)](_0xf36b4,_0x2be782),this[_0x2949a5(0x1c2)][_0x2949a5(0x2cc)]&&this[_0x2949a5(0x230)][_0x2949a5(0x1cf)](_0xcb22c8,this[_0x2949a5(0x1c2)]['univerContainerId']);}[_0x5c0478(0x241)](){const _0x5c951b=_0x5c0478;[[_0x5c387d],[_0x5866ad]]['forEach'](_0x1dbd38=>this[_0x5c951b(0x2b6)]['add'](_0x1dbd38));}[_0x5c0478(0x236)](){const _0x176e44=_0x5c0478;this[_0x176e44(0x2b6)][_0x176e44(0x29d)](_0x5866ad);}};_0x4b0516(_0x459b1a,_0x5c0478(0x2d5),_0x4941f9[_0x5c0478(0x206)]['UNIVER_UNKNOWN']),_0x4b0516(_0x459b1a,_0x5c0478(0x1e7),_0x5c0478(0x2e0)),_0x4b0516(_0x459b1a,'packageName',_0x4b4513),_0x4b0516(_0x459b1a,_0x5c0478(0x1ec),_0x394f18),_0x459b1a=_0x12d3bc([(0x0,_0x4941f9['DependentOn'])(_0x21e068[_0x5c0478(0x295)]),_0xa5c874(0x1,(0x0,_0x4941f9['Inject'])(_0x4941f9[_0x5c0478(0x19e)])),_0xa5c874(0x2,_0x4941f9[_0x5c0478(0x27a)])],_0x459b1a),_0x57d9fe[_0x5c0478(0x225)]=_0xf36b4,Object[_0x5c0478(0x2ad)](_0x57d9fe,_0x5c0478(0x21d),{'enumerable':!0x0,'get':function(){return _0x5c387d;}}),Object['defineProperty'](_0x57d9fe,_0x5c0478(0x28d),{'enumerable':!0x0,'get':function(){return _0x53b120;}}),_0x57d9fe[_0x5c0478(0x192)]=_0x543923,_0x57d9fe['UNIVER_CONTAINER_ID_KEY']=_0xcb22c8,_0x57d9fe[_0x5c0478(0x290)]=_0x899ff9,Object['defineProperty'](_0x57d9fe,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return _0x51c5c7;}}),Object['defineProperty'](_0x57d9fe,_0x5c0478(0x273),{'enumerable':!0x0,'get':function(){return _0x459b1a;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,53 +46,52 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@univerjs/icons": "^1.1.1",
|
|
49
|
-
"@univerjs-pro/collaboration": "0.
|
|
50
|
-
"@univerjs-pro/collaboration
|
|
51
|
-
"@univerjs-pro/
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/sheets-chart": "0.
|
|
54
|
-
"@univerjs-pro/license": "0.
|
|
55
|
-
"@univerjs-pro/sheets-
|
|
56
|
-
"@univerjs-pro/sheets-
|
|
57
|
-
"@univerjs-pro/sheets-
|
|
58
|
-
"@univerjs-pro/sheets-
|
|
59
|
-
"@univerjs
|
|
60
|
-
"@univerjs-pro/sheets-
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/design": "0.
|
|
64
|
-
"@univerjs/docs-ui": "0.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/drawing-ui": "0.
|
|
68
|
-
"@univerjs/engine-render": "0.
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs/sheets": "0.
|
|
74
|
-
"@univerjs/sheets-conditional-formatting": "0.
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-data-validation": "0.
|
|
77
|
-
"@univerjs/sheets-drawing": "0.
|
|
78
|
-
"@univerjs/sheets-drawing
|
|
79
|
-
"@univerjs/sheets-filter": "0.
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/sheets-
|
|
82
|
-
"@univerjs/sheets-
|
|
83
|
-
"@univerjs/sheets-
|
|
84
|
-
"@univerjs/sheets-
|
|
85
|
-
"@univerjs/sheets-
|
|
86
|
-
"@univerjs/
|
|
87
|
-
"@univerjs/sheets-ui": "0.
|
|
88
|
-
"@univerjs/ui": "0.
|
|
89
|
-
"@univerjs/sheets-table": "0.20.1"
|
|
49
|
+
"@univerjs-pro/collaboration-client": "0.21.0",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.21.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client-ui": "0.21.0",
|
|
52
|
+
"@univerjs-pro/edit-history-viewer": "0.21.0",
|
|
53
|
+
"@univerjs-pro/sheets-chart": "0.21.0",
|
|
54
|
+
"@univerjs-pro/license": "0.21.0",
|
|
55
|
+
"@univerjs-pro/sheets-shape": "0.21.0",
|
|
56
|
+
"@univerjs-pro/sheets-sparkline": "0.21.0",
|
|
57
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.21.0",
|
|
58
|
+
"@univerjs-pro/sheets-pivot": "0.21.0",
|
|
59
|
+
"@univerjs/data-validation": "0.21.0",
|
|
60
|
+
"@univerjs-pro/sheets-chart-ui": "0.21.0",
|
|
61
|
+
"@univerjs/core": "0.21.0",
|
|
62
|
+
"@univerjs-pro/sheets-shape-ui": "0.21.0",
|
|
63
|
+
"@univerjs/design": "0.21.0",
|
|
64
|
+
"@univerjs/docs-ui": "0.21.0",
|
|
65
|
+
"@univerjs/drawing": "0.21.0",
|
|
66
|
+
"@univerjs/docs": "0.21.0",
|
|
67
|
+
"@univerjs/drawing-ui": "0.21.0",
|
|
68
|
+
"@univerjs/engine-render": "0.21.0",
|
|
69
|
+
"@univerjs/engine-formula": "0.21.0",
|
|
70
|
+
"@univerjs/network": "0.21.0",
|
|
71
|
+
"@univerjs/sheets": "0.21.0",
|
|
72
|
+
"@univerjs/rpc": "0.21.0",
|
|
73
|
+
"@univerjs/sheets-conditional-formatting": "0.21.0",
|
|
74
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.21.0",
|
|
75
|
+
"@univerjs/sheets-data-validation": "0.21.0",
|
|
76
|
+
"@univerjs/sheets-data-validation-ui": "0.21.0",
|
|
77
|
+
"@univerjs/sheets-drawing-ui": "0.21.0",
|
|
78
|
+
"@univerjs/sheets-drawing": "0.21.0",
|
|
79
|
+
"@univerjs/sheets-filter": "0.21.0",
|
|
80
|
+
"@univerjs/sheets-formula": "0.21.0",
|
|
81
|
+
"@univerjs/sheets-formula-ui": "0.21.0",
|
|
82
|
+
"@univerjs/sheets-hyper-link": "0.21.0",
|
|
83
|
+
"@univerjs/sheets-numfmt": "0.21.0",
|
|
84
|
+
"@univerjs/sheets-table": "0.21.0",
|
|
85
|
+
"@univerjs/sheets-ui": "0.21.0",
|
|
86
|
+
"@univerjs/ui": "0.21.0",
|
|
87
|
+
"@univerjs/sheets-hyper-link-ui": "0.21.0",
|
|
88
|
+
"@univerjs/sheets-filter-ui": "0.21.0"
|
|
90
89
|
},
|
|
91
90
|
"devDependencies": {
|
|
92
91
|
"rxjs": "7.8.2",
|
|
93
|
-
"typescript": "^6.0.
|
|
94
|
-
"vitest": "^4.1.
|
|
95
|
-
"@univerjs-infra/shared": "0.
|
|
92
|
+
"typescript": "^6.0.3",
|
|
93
|
+
"vitest": "^4.1.4",
|
|
94
|
+
"@univerjs-infra/shared": "0.21.0"
|
|
96
95
|
},
|
|
97
96
|
"scripts": {
|
|
98
97
|
"test": "vitest run",
|