@univerjs-pro/edit-history-loader 0.21.0 → 0.21.1
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 +42 -42
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;}});
|
|
1
|
+
const _0x3f251d=_0x1af9;(function(_0x47d30d,_0x20ae45){const _0x2e5d96=_0x1af9,_0x15843b=_0x47d30d();while(!![]){try{const _0x52ce7f=parseInt(_0x2e5d96(0x1db))/0x1*(parseInt(_0x2e5d96(0x1cd))/0x2)+-parseInt(_0x2e5d96(0x278))/0x3+-parseInt(_0x2e5d96(0x244))/0x4+parseInt(_0x2e5d96(0x1ff))/0x5+parseInt(_0x2e5d96(0x1fa))/0x6+-parseInt(_0x2e5d96(0x1fd))/0x7+parseInt(_0x2e5d96(0x227))/0x8;if(_0x52ce7f===_0x20ae45)break;else _0x15843b['push'](_0x15843b['shift']());}catch(_0x1d6244){_0x15843b['push'](_0x15843b['shift']());}}}(_0x246a,0xb3096),Object[_0x3f251d(0x1cc)](exports,Symbol[_0x3f251d(0x1f9)],{'value':_0x3f251d(0x201)}));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=_0x3f251d(0x27c),configSymbol=Symbol(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x3bb067){'@babel/helpers - typeof';const _0x441da2=_0x3f251d;return _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol[_0x441da2(0x24d)]?function(_0x137db6){return typeof _0x137db6;}:function(_0x47a65c){const _0xf1f675=_0x441da2;return _0x47a65c&&_0xf1f675(0x252)==typeof Symbol&&_0x47a65c[_0xf1f675(0x280)]===Symbol&&_0x47a65c!==Symbol[_0xf1f675(0x2d7)]?_0xf1f675(0x1eb):typeof _0x47a65c;},_typeof(_0x3bb067);}function toPrimitive(_0x5db712,_0x5ef3b2){const _0x5df632=_0x3f251d;if(_0x5df632(0x232)!=_typeof(_0x5db712)||!_0x5db712)return _0x5db712;var _0x11abbe=_0x5db712[Symbol[_0x5df632(0x1fe)]];if(void 0x0!==_0x11abbe){var _0x2f4a1d=_0x11abbe[_0x5df632(0x26b)](_0x5db712,_0x5ef3b2||_0x5df632(0x2a3));if(_0x5df632(0x232)!=_typeof(_0x2f4a1d))return _0x2f4a1d;throw new TypeError(_0x5df632(0x268));}return(_0x5df632(0x27b)===_0x5ef3b2?String:Number)(_0x5db712);}function toPropertyKey(_0x30eeec){const _0x28b5de=_0x3f251d;var _0x136f0a=toPrimitive(_0x30eeec,_0x28b5de(0x27b));return _0x28b5de(0x1eb)==_typeof(_0x136f0a)?_0x136f0a:_0x136f0a+'';}function _defineProperty(_0x31ace6,_0x341306,_0x1b4ab1){const _0x13cd09=_0x3f251d;return(_0x341306=toPropertyKey(_0x341306))in _0x31ace6?Object[_0x13cd09(0x1cc)](_0x31ace6,_0x341306,{'value':_0x1b4ab1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x31ace6[_0x341306]=_0x1b4ab1,_0x31ace6;}function __decorateParam(_0x391e71,_0xa124d2){return function(_0x11ddec,_0x50c451){_0xa124d2(_0x11ddec,_0x50c451,_0x391e71);};}function __decorate(_0x159db1,_0x4cc4fc,_0x44dd14,_0x480ea2){const _0x3ca8dc=_0x3f251d;var _0x73514b=arguments[_0x3ca8dc(0x246)],_0x185034=_0x73514b<0x3?_0x4cc4fc:_0x480ea2===null?_0x480ea2=Object['getOwnPropertyDescriptor'](_0x4cc4fc,_0x44dd14):_0x480ea2,_0x5e6b4d;if(typeof Reflect===_0x3ca8dc(0x232)&&typeof Reflect[_0x3ca8dc(0x24a)]===_0x3ca8dc(0x252))_0x185034=Reflect[_0x3ca8dc(0x24a)](_0x159db1,_0x4cc4fc,_0x44dd14,_0x480ea2);else{for(var _0x2bd414=_0x159db1[_0x3ca8dc(0x246)]-0x1;_0x2bd414>=0x0;_0x2bd414--)if(_0x5e6b4d=_0x159db1[_0x2bd414])_0x185034=(_0x73514b<0x3?_0x5e6b4d(_0x185034):_0x73514b>0x3?_0x5e6b4d(_0x4cc4fc,_0x44dd14,_0x185034):_0x5e6b4d(_0x4cc4fc,_0x44dd14))||_0x185034;}return _0x73514b>0x3&&_0x185034&&Object[_0x3ca8dc(0x1cc)](_0x4cc4fc,_0x44dd14,_0x185034),_0x185034;}const DEFAULT_UNIVER_CONTAINER_ID$1=_0x3f251d(0x249),UNIVER_CONTAINER_ID_KEY=_0x3f251d(0x2ca),UNIVER_HISTORY_CONTAINER_ID=_0x3f251d(0x2ac);let HistoryLoaderService=class HistoryLoaderService extends _univerjs_core['Disposable']{constructor(_0x2791f7,_0x99f46a,_0x568232,_0x31091d,_0x45b49b,_0x174732,_0x5b5eb4,_0x35a543,_0x26349f,_0x29ff57){const _0x5e0372=_0x3f251d;super(),this[_0x5e0372(0x1cb)]=_0x2791f7,this[_0x5e0372(0x20f)]=_0x99f46a,this[_0x5e0372(0x240)]=_0x568232,this[_0x5e0372(0x209)]=_0x31091d,this['_messageService']=_0x45b49b,this['_permissionService']=_0x174732,this['_selectionProtectionRuleModel']=_0x5b5eb4,this[_0x5e0372(0x23e)]=_0x35a543,this['_sidebarService']=_0x26349f,this[_0x5e0372(0x1c8)]=_0x29ff57,_defineProperty(this,_0x5e0372(0x260),new rxjs[(_0x5e0372(0x20e))](null)),_defineProperty(this,_0x5e0372(0x25e),this[_0x5e0372(0x260)][_0x5e0372(0x26e)]()),_defineProperty(this,_0x5e0372(0x1da),new _univerjs_core['DisposableCollection']()),_defineProperty(this,_0x5e0372(0x257),new Map()),_defineProperty(this,_0x5e0372(0x22e),null),this[_0x5e0372(0x2bd)]();}get[_0x3f251d(0x2b6)](){const _0xf800e8=_0x3f251d;return this[_0xf800e8(0x260)][_0xf800e8(0x21a)];}['_init'](){const _0x52c2c4=_0x3f251d;this[_0x52c2c4(0x256)](),this[_0x52c2c4(0x218)]();}[_0x3f251d(0x256)](){const _0x1ed9e1=_0x3f251d;var _0x4e902b;const _0x48ded7=(_0x4e902b=this[_0x1ed9e1(0x240)]['getConfig'](_0x1ed9e1(0x2ca)))!==null&&_0x4e902b!==void 0x0?_0x4e902b:DEFAULT_UNIVER_CONTAINER_ID$1,_0xbfcd9f=document[_0x1ed9e1(0x2c4)](_0x48ded7);if(!_0xbfcd9f)return;const _0x490240=document[_0x1ed9e1(0x269)](_0x1ed9e1(0x287));_0x490240['id']=UNIVER_HISTORY_CONTAINER_ID,_0x490240['dataset'][_0x1ed9e1(0x20c)]=_0x1ed9e1(0x205),_0x490240[_0x1ed9e1(0x2cd)]['position']=_0x1ed9e1(0x23d),_0x490240[_0x1ed9e1(0x2cd)]['top']='0',_0x490240['style'][_0x1ed9e1(0x2d2)]='0',_0x490240[_0x1ed9e1(0x2cd)][_0x1ed9e1(0x27f)]='100%',_0x490240['style']['height']=_0x1ed9e1(0x27d),_0x490240[_0x1ed9e1(0x2cd)][_0x1ed9e1(0x294)]='49',_0x490240['style'][_0x1ed9e1(0x23f)]=_0x1ed9e1(0x293),_0xbfcd9f[_0x1ed9e1(0x251)](_0x490240);}[_0x3f251d(0x218)](){const _0x3ad268=_0x3f251d;[[_univerjs_engine_render['UniverRenderEnginePlugin']],[_univerjs_ui[_0x3ad268(0x223)],{'container':UNIVER_HISTORY_CONTAINER_ID,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[_univerjs_ui['IDialogService'],null]]}],[_univerjs_network[_0x3ad268(0x210)]],[_univerjs_drawing['UniverDrawingPlugin'],{'override':[[_univerjs_drawing[_0x3ad268(0x24c)],null]]}],[_univerjs_docs[_0x3ad268(0x1dc)],{'hasScroll':![]}],[_univerjs_docs_ui['UniverDocsUIPlugin']],[_univerjs_sheets_numfmt[_0x3ad268(0x2b9)]],[_univerjs_sheets[_0x3ad268(0x27a)],{'notExecuteFormula':!![]}],[_univerjs_sheets_ui[_0x3ad268(0x29f)]],[_univerjs_sheets_formula['UniverSheetsFormulaPlugin']],[_univerjs_sheets_formula_ui[_0x3ad268(0x283)]],[_univerjs_pro_collaboration['UniverCollaborationPlugin']],[_univerjs_sheets_filter[_0x3ad268(0x237)]],[_univerjs_sheets_filter_ui['UniverSheetsFilterUIPlugin']],[_univerjs_sheets_conditional_formatting[_0x3ad268(0x263)]],[_univerjs_sheets_conditional_formatting_ui[_0x3ad268(0x1c7)]],[_univerjs_sheets_hyper_link['UniverSheetsHyperLinkPlugin']],[_univerjs_sheets_hyper_link_ui[_0x3ad268(0x228)]],[_univerjs_data_validation[_0x3ad268(0x1e2)]],[_univerjs_sheets_data_validation['UniverSheetsDataValidationPlugin']],[_univerjs_sheets_data_validation_ui[_0x3ad268(0x25a)]],[_univerjs_engine_formula[_0x3ad268(0x273)],{'notExecuteFormula':!![]}],[_univerjs_drawing_ui['UniverDrawingUIPlugin']],[_univerjs_sheets_drawing[_0x3ad268(0x29e)]],[_univerjs_sheets_drawing_ui[_0x3ad268(0x1ed)]],[_univerjs_pro_sheets_sparkline[_0x3ad268(0x1f0)]],[_univerjs_pro_sheets_sparkline_ui[_0x3ad268(0x1dd)]],[_univerjs_pro_sheets_chart[_0x3ad268(0x2d0)]],[_univerjs_pro_sheets_chart_ui[_0x3ad268(0x22f)]],[_univerjs_pro_sheets_shape[_0x3ad268(0x26d)]],[_univerjs_pro_sheets_shape_ui[_0x3ad268(0x29c)]],[_univerjs_pro_sheets_pivot[_0x3ad268(0x1f5)],{'notExecuteFormula':!![]}],[_univerjs_sheets_table[_0x3ad268(0x2b0)]]][_0x3ad268(0x2b8)](([_0x45a16e,_0x557ad1])=>this[_0x3ad268(0x2a2)](_0x45a16e,_0x557ad1));}[_0x3f251d(0x2cf)](){const _0x339e9c=_0x3f251d;super[_0x339e9c(0x2cf)](),this[_0x339e9c(0x203)](),this[_0x339e9c(0x257)][_0x339e9c(0x1fc)]();}[_0x3f251d(0x2a2)](_0x3b72f2,_0x295ad5,_0x1976af){const _0x4a716a=_0x3f251d;if(this['_pluginMap'][_0x4a716a(0x281)](_0x3b72f2['pluginName'])&&!_0x1976af)throw new Error(_0x4a716a(0x2c6)+_0x3b72f2[_0x4a716a(0x20a)]+_0x4a716a(0x270));this[_0x4a716a(0x257)][_0x4a716a(0x2b5)](_0x3b72f2[_0x4a716a(0x20a)],[_0x3b72f2,_0x295ad5]);}[_0x3f251d(0x2d4)](){const _0x4d9f7d=_0x3f251d;return Array[_0x4d9f7d(0x2bb)](this[_0x4d9f7d(0x257)]['values']());}[_0x3f251d(0x2bc)](_0x1cc5b7,_0x43bb0a){const _0x5a0e33=_0x3f251d,_0x2e5b3d=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x2e5b3d)return;_0x2e5b3d['style']['display']='block',this[_0x5a0e33(0x2c9)](_0x1cc5b7,UNIVER_HISTORY_CONTAINER_ID,_0x43bb0a);}[_0x3f251d(0x203)](){const _0x3004e1=_0x3f251d;var _0x5bd980;this[_0x3004e1(0x1da)][_0x3004e1(0x2cf)](),(_0x5bd980=this[_0x3004e1(0x2b6)])===null||_0x5bd980===void 0x0||_0x5bd980['dispose'](),this['_historyUniver$'][_0x3004e1(0x1e0)](null);const _0x1ac2ed=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x1ac2ed)return;_0x1ac2ed['style']['display']=_0x3004e1(0x293),this[_0x3004e1(0x22e)]&&(this['_internalWebWorker'][_0x3004e1(0x21c)](),this['_internalWebWorker']=null);}[_0x3f251d(0x2c9)](_0x2c816a,_0x167a2c,_0x59f36d){const _0x4a3bca=_0x3f251d;var _0x1a7ec4,_0x39be7e,_0x2bcb91,_0x14b512,_0xbabf23;if(this[_0x4a3bca(0x2b6)])return;const _0x3783d3=new _univerjs_core['Univer']({'locales':{[this[_0x4a3bca(0x1cb)]['getCurrentLocale']()]:this[_0x4a3bca(0x1cb)][_0x4a3bca(0x20b)]()},'override':[[_univerjs_core[_0x4a3bca(0x22d)],{'useClass':_univerjs_pro_collaboration_client[_0x4a3bca(0x298)]}]]}),_0x201a73=_0x3783d3[_0x4a3bca(0x295)]();this['disposeWithMe'](this[_0x4a3bca(0x1c8)][_0x4a3bca(0x2cb)][_0x4a3bca(0x1d2)](_0x562268=>{const _0x4be50d=_0x4a3bca;_0x201a73[_0x4be50d(0x2c3)](_univerjs_core[_0x4be50d(0x200)])[_0x4be50d(0x296)](_0x562268);})),this[_0x4a3bca(0x236)](this[_0x4a3bca(0x1c8)]['currentTheme$'][_0x4a3bca(0x1d2)](_0x410f28=>{const _0x31ee0b=_0x4a3bca;_0x201a73[_0x31ee0b(0x2c3)](_univerjs_core[_0x31ee0b(0x200)])[_0x31ee0b(0x21d)](_0x410f28);})),_0x201a73[_0x4a3bca(0x2c3)](_univerjs_core['LocaleService'])[_0x4a3bca(0x285)](this[_0x4a3bca(0x1cb)][_0x4a3bca(0x282)]()),_0x201a73[_0x4a3bca(0x2c3)](_univerjs_core['IConfigService'])[_0x4a3bca(0x214)](_univerjs_pro_collaboration_client[_0x4a3bca(0x2a6)],this[_0x4a3bca(0x240)][_0x4a3bca(0x206)](_univerjs_pro_collaboration_client[_0x4a3bca(0x2a6)]));const _0x2abccc=this['_configService']['getConfig'](_univerjs_pro_license['LS_CONFIG_KEY']);if(_0x2abccc)_0x3783d3[_0x4a3bca(0x2a2)](_univerjs_pro_license[_0x4a3bca(0x23c)],{'license':_0x2abccc['ls']});const _0x1b9223=(_0x1a7ec4=this[_0x4a3bca(0x240)][_0x4a3bca(0x206)]('edit-history-loader.config'))===null||_0x1a7ec4===void 0x0?void 0x0:_0x1a7ec4['workerURL'],_0x304474=!!_0x1b9223;_0x304474&&(this[_0x4a3bca(0x22e)]=_0x1b9223 instanceof Worker?_0x1b9223:null,_0x3783d3[_0x4a3bca(0x2a2)](_univerjs_rpc[_0x4a3bca(0x1c0)],{'workerURL':_0x1b9223}));this[_0x4a3bca(0x257)][_0x4a3bca(0x2b8)](([_0x2aa6c6,_0xf041eb])=>{const _0x1518dc=_0x4a3bca;_0x3783d3[_0x1518dc(0x2a2)](_0x2aa6c6,_0xf041eb);}),_0x3783d3[_0x4a3bca(0x2a2)](_univerjs_pro_edit_history_viewer['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x39be7e=this[_0x4a3bca(0x240)][_0x4a3bca(0x206)]('edit-history-loader.config'))===null||_0x39be7e===void 0x0?void 0x0:_0x39be7e[_0x4a3bca(0x1cf)],'historyPanelComponentKey':(_0x2bcb91=this['_configService'][_0x4a3bca(0x206)]('edit-history-loader.config'))===null||_0x2bcb91===void 0x0?void 0x0:_0x2bcb91['historyPanelComponentKey'],'historyPanelHidden':(_0x14b512=this[_0x4a3bca(0x240)][_0x4a3bca(0x206)](_0x4a3bca(0x27c)))===null||_0x14b512===void 0x0?void 0x0:_0x14b512[_0x4a3bca(0x267)],'historyAIassistantEnabled':(_0xbabf23=this[_0x4a3bca(0x240)][_0x4a3bca(0x206)](_0x4a3bca(0x27c)))===null||_0xbabf23===void 0x0?void 0x0:_0xbabf23[_0x4a3bca(0x226)]}),_0x201a73[_0x4a3bca(0x2c1)](_0x11e67a=>{const _0x5d58ea=_0x4a3bca;this[_0x5d58ea(0x2da)](_0x11e67a,_0x2c816a);}),this[_0x4a3bca(0x260)]['next'](_0x3783d3);const _0x3b1e50=_0x201a73[_0x4a3bca(0x2c3)](_univerjs_pro_edit_history_viewer[_0x4a3bca(0x1be)]),_0x2a97be=this['_checkCanRevert'](_0x2c816a),_0x3c89a4=()=>{const _0x33eca1=_0x4a3bca;if(_0x59f36d)_0x3b1e50[_0x33eca1(0x1e4)](_0x2c816a,_0x167a2c,_0x2a97be,_0x59f36d);else _0x3b1e50[_0x33eca1(0x1d3)](_0x2c816a,_0x167a2c,_0x2a97be);};this[_0x4a3bca(0x1de)][_0x4a3bca(0x290)]({'content':this['_localeService']['t']('editHistory.info.initializing'),'type':_univerjs_design[_0x4a3bca(0x1bd)]['Loading']});if(_0x304474)try{_0x201a73['get'](_univerjs_rpc[_0x4a3bca(0x21f)])['whenReady']()['then'](()=>{_0x3c89a4();});}catch{_0x3c89a4();}else _0x3c89a4();}[_0x3f251d(0x2da)](_0x59a1d1,_0x4ce772){const _0x2f39f7=_0x3f251d,_0x4b46ed=_0x59a1d1[_0x2f39f7(0x2c3)](_univerjs_pro_edit_history_viewer[_0x2f39f7(0x1be)]);this[_0x2f39f7(0x1da)][_0x2f39f7(0x28c)](_0x4b46ed['status$'][_0x2f39f7(0x1d2)](_0x23e032=>{const _0x3f8554=_0x2f39f7;switch(_0x23e032){case _univerjs_pro_edit_history_viewer['HistoryModeStatus'][_0x3f8554(0x1ee)]:this['_dialogService'][_0x3f8554(0x276)](),this[_0x3f8554(0x255)][_0x3f8554(0x231)]();break;case _univerjs_pro_edit_history_viewer[_0x3f8554(0x1e6)][_0x3f8554(0x220)]:this[_0x3f8554(0x209)][_0x3f8554(0x2d8)](ExitEditHistoryOperation['id']),this['unMountHistoryContent']();break;case _univerjs_pro_edit_history_viewer['HistoryModeStatus']['Error']:this[_0x3f8554(0x203)](),this[_0x3f8554(0x1de)][_0x3f8554(0x290)]({'content':this[_0x3f8554(0x1cb)]['t'](_0x3f8554(0x25d)),'type':_univerjs_design[_0x3f8554(0x1bd)][_0x3f8554(0x21b)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x4b46ed[_0x2f39f7(0x234)][_0x2f39f7(0x1d2)](async _0x31b17c=>{const _0x7600e5=_0x2f39f7;if(_0x31b17c)this[_0x7600e5(0x209)][_0x7600e5(0x2d8)](_univerjs_pro_collaboration[_0x7600e5(0x2d6)]['id'],{'unitId':_0x4ce772,'revision':_0x31b17c});}));}[_0x3f251d(0x2d1)](_0x28b3c9){const _0x1cf2cd=_0x3f251d,_0x217304=this[_0x1cf2cd(0x20f)][_0x1cf2cd(0x259)](_0x28b3c9)['getSheets']()[_0x1cf2cd(0x297)](_0x5cdbc9=>_0x5cdbc9['getSheetId']()),_0x4bfb7c=new _univerjs_sheets[(_0x1cf2cd(0x1ef))](_0x28b3c9)['id'],_0xa59e58=_0x217304[_0x1cf2cd(0x297)](_0x150d8b=>new _univerjs_sheets[(_0x1cf2cd(0x1f2))](_0x28b3c9,_0x150d8b)['id']),_0x2aac90=_0x217304[_0x1cf2cd(0x297)](_0x214066=>this[_0x1cf2cd(0x2ba)][_0x1cf2cd(0x216)](_0x28b3c9,_0x214066)[_0x1cf2cd(0x297)](_0x2a3d89=>new _univerjs_sheets[(_0x1cf2cd(0x271))](_0x28b3c9,_0x214066,_0x2a3d89[_0x1cf2cd(0x277)])['id']))[_0x1cf2cd(0x1e9)](),_0x23e5c5=new _univerjs_sheets[(_0x1cf2cd(0x2af))](_0x28b3c9)['id'];return this[_0x1cf2cd(0x2cc)]['composePermission']([_0x4bfb7c,..._0xa59e58,..._0x2aac90,_0x23e5c5])[_0x1cf2cd(0x235)](_0x26e773=>!!_0x26e773[_0x1cf2cd(0x21a)]);}};HistoryLoaderService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x3f251d(0x1e1)])),__decorateParam(0x1,_univerjs_core[_0x3f251d(0x2c5)]),__decorateParam(0x2,_univerjs_core[_0x3f251d(0x299)]),__decorateParam(0x3,_univerjs_core[_0x3f251d(0x1d7)]),__decorateParam(0x4,_univerjs_ui[_0x3f251d(0x253)]),__decorateParam(0x5,_univerjs_core[_0x3f251d(0x1d4)]),__decorateParam(0x6,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_sheets[_0x3f251d(0x2c7)])),__decorateParam(0x7,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x3f251d(0x21e)])),__decorateParam(0x8,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_ui[_0x3f251d(0x254)])),__decorateParam(0x9,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_core[_0x3f251d(0x200)]))],HistoryLoaderService);const ToggleEditHistoryOperation={'id':_0x3f251d(0x2bf),'type':_univerjs_core['CommandType'][_0x3f251d(0x279)],'handler':_0x15b7b4=>{const _0x6a5eb5=_0x3f251d,_0x24498e=_0x15b7b4[_0x6a5eb5(0x2c3)](HistoryLoaderService),{unitId:_0x43ad70}=(0x0,_univerjs_sheets[_0x6a5eb5(0x202)])(_0x15b7b4[_0x6a5eb5(0x2c3)](_univerjs_core[_0x6a5eb5(0x2c5)]))||{};if(!_0x43ad70)return![];return _0x24498e[_0x6a5eb5(0x2bc)](_0x43ad70),!![];}},ExitEditHistoryOperation={'id':_0x3f251d(0x239),'type':_univerjs_core[_0x3f251d(0x28e)]['OPERATION'],'handler':()=>!![]};var name='@univerjs-pro/edit-history-loader',version=_0x3f251d(0x22a);function ToggleEditHistoryMenuFactory(_0x2782c8){const _0x2706a5=_0x3f251d;return{'id':ToggleEditHistoryOperation['id'],'type':_univerjs_ui[_0x2706a5(0x289)]['BUTTON'],'icon':_0x2706a5(0x247),'tooltip':_0x2706a5(0x2a5),'hidden$':(0x0,_univerjs_ui[_0x2706a5(0x23a)])(_0x2782c8,_univerjs_core[_0x2706a5(0x2c8)][_0x2706a5(0x2a8)]),'disabled$':(0x0,_univerjs_sheets_ui[_0x2706a5(0x27e)])(_0x2782c8,{'workbookTypes':[_univerjs_sheets[_0x2706a5(0x2a7)]],'worksheetTypes':[],'rangeTypes':[]})};}const menuSchema={[_univerjs_ui[_0x3f251d(0x22b)][_0x3f251d(0x211)]]:{[ToggleEditHistoryOperation['id']]:{'order':0.2,'menuItemFactory':ToggleEditHistoryMenuFactory}}};let MobileHistoryLoaderController=class MobileHistoryLoaderController extends _univerjs_core[_0x3f251d(0x291)]{constructor(_0x44804a,_0x59f0f9,_0x59a6d7,_0x5dd3f1,_0x2ac055,_0x292cf0,_0x2507a1,_0x821083,_0x38b3dc,_0xfa0bb3,_0x40870f){const _0x56f15c=_0x3f251d;super(),this['_commandService']=_0x44804a,this[_0x56f15c(0x1e7)]=_0x59f0f9,this['_componentManager']=_0x59a6d7,this[_0x56f15c(0x25c)]=_0x5dd3f1,this[_0x56f15c(0x1cb)]=_0x2ac055,this[_0x56f15c(0x1de)]=_0x292cf0,this[_0x56f15c(0x207)]=_0x2507a1,this['_localCacheService']=_0x821083,this[_0x56f15c(0x208)]=_0x38b3dc,this['_univerInstanceService']=_0xfa0bb3,this[_0x56f15c(0x265)]=_0x40870f,_defineProperty(this,'_revertErrorTimer',null),this[_0x56f15c(0x2bd)]();}[_0x3f251d(0x2bd)](){const _0x6259f0=_0x3f251d;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x6259f0(0x2b8)](_0x19d862=>this[_0x6259f0(0x236)]((0x0,_univerjs_core['toDisposable'])(this[_0x6259f0(0x209)][_0x6259f0(0x1f6)](_0x19d862)))),this[_0x6259f0(0x236)](this[_0x6259f0(0x286)]['register'](_0x6259f0(0x247),_univerjs_icons[_0x6259f0(0x247)])),this['_menuManagerService'][_0x6259f0(0x274)](menuSchema),this['disposeWithMe'](this[_0x6259f0(0x209)][_0x6259f0(0x2be)](async(_0x8997e1,_0x5356ac)=>{const _0x5df77c=_0x6259f0;if(_0x8997e1['id']===_univerjs_pro_collaboration[_0x5df77c(0x2d6)]['id']){const {unitId:_0x5c4b67}=_0x8997e1[_0x5df77c(0x1d9)];this['_messageService'][_0x5df77c(0x290)]({'content':this[_0x5df77c(0x1cb)]['t'](_0x5df77c(0x2ce)),'type':_univerjs_design[_0x5df77c(0x1bd)][_0x5df77c(0x28a)],'duration':0x1388});const _0x4a1d8f=this[_0x5df77c(0x207)][_0x5df77c(0x29a)](_0x5c4b67);if(!(_0x5356ac===null||_0x5356ac===void 0x0?void 0x0:_0x5356ac[_0x5df77c(0x28f)]))this[_0x5df77c(0x1d1)](_0x4a1d8f,async()=>{const _0x2a62be=_0x5df77c,_0x52788a=this['_univerInstanceService'][_0x2a62be(0x2ab)](_univerjs_core[_0x2a62be(0x2c8)][_0x2a62be(0x2a8)]),_0x4d6a15=_0x52788a===null||_0x52788a===void 0x0?void 0x0:_0x52788a['getActiveSheet']();if(!_0x4d6a15)return![];this[_0x2a62be(0x20f)][_0x2a62be(0x1df)](_0x5c4b67);const _0x23b394=await this[_0x2a62be(0x208)]['loadUnit'](_0x5c4b67,_univerjs_core[_0x2a62be(0x2c8)]['UNIVER_SHEET']);if(_0x23b394&&_0x23b394 instanceof _univerjs_core[_0x2a62be(0x25b)])return await this['_setupSubUnitSync'](_0x23b394,_0x4d6a15[_0x2a62be(0x26a)]()),!![];return![];});else this['_handleRevertAcknowledgement'](_0x4a1d8f,async()=>{return setTimeout(()=>window['location']['reload']()),!![];},!![]);}}));}[_0x3f251d(0x1d1)](_0x4eb4c3,_0x144d4e,_0x457b47=![]){const _0x475d89=_0x3f251d,_0xcc2ab3=(0x0,rxjs['combineLatest'])([_0x4eb4c3[_0x475d89(0x2b2)][_0x475d89(0x2a1)],_0x4eb4c3[_0x475d89(0x272)]])[_0x475d89(0x1d2)](async([_0xdad0a9,_0x57993b])=>{const _0x2a67b2=_0x475d89;if(_0xdad0a9[_0x2a67b2(0x2b4)]===_univerjs_pro_collaboration['CollaborationEvent'][_0x2a67b2(0x264)]&&(_0x57993b===null||_0x57993b===void 0x0?void 0x0:_0x57993b['status'])===_univerjs_pro_collaboration_client[_0x2a67b2(0x266)][_0x2a67b2(0x2aa)]){if(_0xdad0a9[_0x2a67b2(0x25f)][_0x2a67b2(0x2d5)][_0x2a67b2(0x217)](_0xd4016=>_0xd4016['id']===_univerjs_pro_collaboration[_0x2a67b2(0x2d6)]['id'])){if(await _0x144d4e()){var _0x50af75;this[_0x2a67b2(0x25c)][_0x2a67b2(0x203)](),_0xcc2ab3['unsubscribe'](),this[_0x2a67b2(0x22c)]&&clearTimeout(this[_0x2a67b2(0x22c)]),await((_0x50af75=this[_0x2a67b2(0x1e8)])===null||_0x50af75===void 0x0?void 0x0:_0x50af75[_0x2a67b2(0x229)]()),this['_messageService'][_0x2a67b2(0x1f7)]();}}}});if(_0x457b47)this[_0x475d89(0x22c)]=setTimeout(()=>{const _0x4e3caf=_0x475d89;_0xcc2ab3['unsubscribe'](),this[_0x4e3caf(0x1de)][_0x4e3caf(0x290)]({'content':this[_0x4e3caf(0x1cb)]['t']('editHistory.panel.revertFailed'),'type':_univerjs_design[_0x4e3caf(0x1bd)][_0x4e3caf(0x21b)],'duration':0xbb8});},0x1388);}async['_setupSubUnitSync'](_0x2cd6b3,_0x15ecac){const _0x22b883=_0x3f251d;await this[_0x22b883(0x1e3)](_0x2cd6b3,_0x15ecac),_0x2cd6b3['activeSheet$']['pipe']((0x0,rxjs[_0x22b883(0x1ce)])(this[_0x22b883(0x215)]))[_0x22b883(0x1d2)](_0x1b4f63=>{const _0x172204=_0x22b883;if(_0x1b4f63)this[_0x172204(0x241)](_0x1b4f63);}),this[_0x22b883(0x265)]['urlChange$'][_0x22b883(0x225)]((0x0,rxjs['takeUntil'])(this[_0x22b883(0x215)]))[_0x22b883(0x1d2)](()=>this[_0x22b883(0x1e3)](_0x2cd6b3,_0x15ecac));}[_0x3f251d(0x241)](_0x4dec50,_0x475b4f=![]){const _0x21f4d6=_0x3f251d,_0xf45cb7=this[_0x21f4d6(0x265)][_0x21f4d6(0x258)](_0x21f4d6(0x250));if(_0x4dec50[_0x21f4d6(0x26a)]()!==_0xf45cb7)this[_0x21f4d6(0x265)][_0x21f4d6(0x1c4)](_0x21f4d6(0x250),_0x4dec50[_0x21f4d6(0x26a)](),_0x475b4f);}async[_0x3f251d(0x1e3)](_0x2e5bf1,_0xcf3dd2){const _0x499ea9=_0x3f251d;var _0x53eb46;if(!_0xcf3dd2||!_0x2e5bf1['getSheetBySheetId'](_0xcf3dd2)){const _0x3db2a4=_0x2e5bf1[_0x499ea9(0x2d3)]()[0x0],_0x4b17fb=_0x2e5bf1[_0x499ea9(0x1d6)](_0x3db2a4);if(!_0x4b17fb)return;this[_0x499ea9(0x241)](_0x4b17fb,!![]),await this[_0x499ea9(0x209)]['executeCommand'](_univerjs_sheets[_0x499ea9(0x1ea)]['id'],{'unitId':_0x2e5bf1[_0x499ea9(0x230)](),'subUnitId':_0x3db2a4});return;}if(((_0x53eb46=_0x2e5bf1[_0x499ea9(0x222)]())===null||_0x53eb46===void 0x0?void 0x0:_0x53eb46[_0x499ea9(0x26a)]())===_0xcf3dd2)return;await this[_0x499ea9(0x209)][_0x499ea9(0x2d8)](_univerjs_sheets[_0x499ea9(0x1ea)]['id'],{'unitId':_0x2e5bf1[_0x499ea9(0x230)](),'subUnitId':_0xcf3dd2});}};MobileHistoryLoaderController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3f251d(0x1d7)]),__decorateParam(0x1,_univerjs_ui[_0x3f251d(0x2ae)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_ui[_0x3f251d(0x212)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3f251d(0x26f)])(HistoryLoaderService)),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x5,_univerjs_ui[_0x3f251d(0x253)]),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_pro_collaboration_client[_0x3f251d(0x248)])),__decorateParam(0x7,_univerjs_pro_collaboration_client[_0x3f251d(0x2b7)]),__decorateParam(0x8,(0x0,_univerjs_core['Inject'])(_univerjs_pro_collaboration_client[_0x3f251d(0x23b)])),__decorateParam(0x9,_univerjs_core['IUniverInstanceService']),__decorateParam(0xa,_univerjs_pro_collaboration_client_ui[_0x3f251d(0x29d)])],MobileHistoryLoaderController);const DEFAULT_UNIVER_CONTAINER_ID='univer-container',UNIVER_CONTAINER_ID_KEY$1=_0x3f251d(0x2ca),UNIVER_HISTORY_CONTAINER_ID$1=_0x3f251d(0x1ec);let MobileHistoryLoaderService=class MobileHistoryLoaderService extends _univerjs_core['Disposable']{constructor(_0x24da9e,_0x15ee3c,_0x3ab85a,_0x33a2b9,_0x4174f9,_0x72fc71,_0x491783,_0x26bb78,_0x2f9e75,_0x25188d){const _0x141462=_0x3f251d;super(),this[_0x141462(0x1cb)]=_0x24da9e,this['_univerInstanceService']=_0x15ee3c,this[_0x141462(0x240)]=_0x3ab85a,this['_commandService']=_0x33a2b9,this[_0x141462(0x1de)]=_0x4174f9,this['_permissionService']=_0x72fc71,this[_0x141462(0x2ba)]=_0x491783,this[_0x141462(0x23e)]=_0x26bb78,this[_0x141462(0x255)]=_0x2f9e75,this[_0x141462(0x1c8)]=_0x25188d,_defineProperty(this,_0x141462(0x260),new rxjs[(_0x141462(0x20e))](null)),_defineProperty(this,_0x141462(0x25e),this[_0x141462(0x260)][_0x141462(0x26e)]()),_defineProperty(this,_0x141462(0x1da),new _univerjs_core[(_0x141462(0x1fb))]()),_defineProperty(this,_0x141462(0x257),new Map()),_defineProperty(this,_0x141462(0x22e),null),this[_0x141462(0x2bd)]();}get[_0x3f251d(0x2b6)](){const _0x4dc357=_0x3f251d;return this[_0x4dc357(0x260)][_0x4dc357(0x21a)];}[_0x3f251d(0x2bd)](){const _0x29197a=_0x3f251d;this[_0x29197a(0x256)](),this['_initPlugins']();}[_0x3f251d(0x256)](){const _0x855d05=_0x3f251d;var _0x20e7b0;const _0xd075bf=(_0x20e7b0=this[_0x855d05(0x240)][_0x855d05(0x206)](_0x855d05(0x2ca)))!==null&&_0x20e7b0!==void 0x0?_0x20e7b0:DEFAULT_UNIVER_CONTAINER_ID,_0x433376=document['getElementById'](_0xd075bf);if(!_0x433376)return;const _0x61c5c6=document[_0x855d05(0x269)](_0x855d05(0x287));_0x61c5c6['id']=UNIVER_HISTORY_CONTAINER_ID$1,_0x61c5c6[_0x855d05(0x1d5)][_0x855d05(0x20c)]=_0x855d05(0x205),_0x61c5c6['style'][_0x855d05(0x1c6)]=_0x855d05(0x23d),_0x61c5c6[_0x855d05(0x2cd)][_0x855d05(0x224)]='0',_0x61c5c6[_0x855d05(0x2cd)]['left']='0',_0x61c5c6[_0x855d05(0x2cd)][_0x855d05(0x27f)]=_0x855d05(0x27d),_0x61c5c6[_0x855d05(0x2cd)][_0x855d05(0x1f1)]=_0x855d05(0x27d),_0x61c5c6[_0x855d05(0x2cd)][_0x855d05(0x294)]='49',_0x61c5c6['style']['display']='none',_0x433376[_0x855d05(0x251)](_0x61c5c6);}[_0x3f251d(0x218)](){const _0x1dec27=_0x3f251d;[[_univerjs_engine_render['UniverRenderEnginePlugin']],[_univerjs_ui[_0x1dec27(0x1c9)],{'container':UNIVER_HISTORY_CONTAINER_ID$1,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[_univerjs_ui[_0x1dec27(0x21e)],null]]}],[_univerjs_network[_0x1dec27(0x210)]],[_univerjs_drawing['UniverDrawingPlugin'],{'override':[[_univerjs_drawing[_0x1dec27(0x24c)],null]]}],[_univerjs_docs['UniverDocsPlugin'],{'hasScroll':![]}],[_univerjs_docs_ui[_0x1dec27(0x219)]],[_univerjs_sheets_numfmt['UniverSheetsNumfmtPlugin']],[_univerjs_sheets[_0x1dec27(0x27a)],{'notExecuteFormula':!![]}],[_univerjs_sheets_ui[_0x1dec27(0x1c2)]],[_univerjs_sheets_formula[_0x1dec27(0x1e5)]],[_univerjs_sheets_formula_ui[_0x1dec27(0x283)]],[_univerjs_pro_collaboration['UniverCollaborationPlugin']],[_univerjs_sheets_filter[_0x1dec27(0x237)]],[_univerjs_sheets_conditional_formatting[_0x1dec27(0x263)]],[_univerjs_sheets_hyper_link[_0x1dec27(0x1f3)]],[_univerjs_sheets_hyper_link_ui['UniverSheetsHyperLinkUIPlugin']],[_univerjs_data_validation[_0x1dec27(0x1e2)]],[_univerjs_sheets_data_validation['UniverSheetsDataValidationPlugin']],[_univerjs_sheets_data_validation_ui[_0x1dec27(0x2ad)]],[_univerjs_engine_formula['UniverFormulaEnginePlugin'],{'notExecuteFormula':!![]}],[_univerjs_drawing_ui[_0x1dec27(0x284)]],[_univerjs_sheets_drawing[_0x1dec27(0x29e)]],[_univerjs_sheets_drawing_ui['UniverSheetsDrawingUIPlugin']],[_univerjs_pro_sheets_sparkline['UniverSheetSparklinePlugin']],[_univerjs_pro_sheets_sparkline_ui['UniverSheetSparklineUIPlugin']],[_univerjs_pro_sheets_chart[_0x1dec27(0x2d0)]],[_univerjs_pro_sheets_chart_ui[_0x1dec27(0x22f)]],[_univerjs_pro_sheets_shape[_0x1dec27(0x26d)]],[_univerjs_pro_sheets_shape_ui['UniverSheetsShapeUIPlugin']],[_univerjs_pro_sheets_pivot[_0x1dec27(0x1f5)],{'notExecuteFormula':!![]}],[_univerjs_sheets_table['UniverSheetsTablePlugin']]][_0x1dec27(0x2b8)](([_0x4f5c82,_0x10f10c])=>this[_0x1dec27(0x2a2)](_0x4f5c82,_0x10f10c));}['dispose'](){const _0x8471c2=_0x3f251d;super[_0x8471c2(0x2cf)](),this[_0x8471c2(0x203)](),this[_0x8471c2(0x257)][_0x8471c2(0x1fc)]();}[_0x3f251d(0x2a2)](_0x515217,_0x32b5d1,_0x5bdf52){const _0x3800af=_0x3f251d;if(this['_pluginMap'][_0x3800af(0x281)](_0x515217['pluginName'])&&!_0x5bdf52)throw new Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x515217['pluginName']+'\x20has\x20been\x20registered.');this[_0x3800af(0x257)][_0x3800af(0x2b5)](_0x515217[_0x3800af(0x20a)],[_0x515217,_0x32b5d1]);}['getAllPlugins'](){const _0x2611e7=_0x3f251d;return Array[_0x2611e7(0x2bb)](this[_0x2611e7(0x257)][_0x2611e7(0x28b)]());}['mountHistoryContent'](_0x9fb4d8,_0x5a553b){const _0x372e85=_0x3f251d,_0x28ccfd=document[_0x372e85(0x2c4)](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x28ccfd)return;_0x28ccfd['style']['display']=_0x372e85(0x2a4),this[_0x372e85(0x2c9)](_0x9fb4d8,UNIVER_HISTORY_CONTAINER_ID$1,_0x5a553b);}[_0x3f251d(0x203)](){const _0x1db5d9=_0x3f251d;var _0x32b8fa;this[_0x1db5d9(0x1da)][_0x1db5d9(0x2cf)](),(_0x32b8fa=this[_0x1db5d9(0x2b6)])===null||_0x32b8fa===void 0x0||_0x32b8fa[_0x1db5d9(0x2cf)](),this['_historyUniver$'][_0x1db5d9(0x1e0)](null);const _0x3ddeec=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x3ddeec)return;_0x3ddeec[_0x1db5d9(0x2cd)]['display']=_0x1db5d9(0x293),this[_0x1db5d9(0x22e)]&&(this['_internalWebWorker'][_0x1db5d9(0x21c)](),this[_0x1db5d9(0x22e)]=null);}['_initUniver'](_0x4fa07d,_0x2a6200,_0x5c973a){const _0x212584=_0x3f251d;var _0x2a76d3,_0x250410,_0x29fb25,_0x538850;if(this[_0x212584(0x2b6)])return;const _0x4aed33=new _univerjs_core['Univer']({'locales':{[this['_localeService'][_0x212584(0x282)]()]:this[_0x212584(0x1cb)][_0x212584(0x20b)]()},'override':[[_univerjs_core[_0x212584(0x22d)],{'useClass':_univerjs_pro_collaboration_client[_0x212584(0x298)]}]]}),_0x3c98f8=_0x4aed33[_0x212584(0x295)]();this[_0x212584(0x236)](this[_0x212584(0x1c8)][_0x212584(0x2cb)][_0x212584(0x1d2)](_0x3de66c=>{const _0x36e196=_0x212584;_0x3c98f8[_0x36e196(0x2c3)](_univerjs_core[_0x36e196(0x200)])[_0x36e196(0x296)](_0x3de66c);})),this['disposeWithMe'](this[_0x212584(0x1c8)][_0x212584(0x29b)][_0x212584(0x1d2)](_0x34076e=>{const _0x582232=_0x212584;_0x3c98f8[_0x582232(0x2c3)](_univerjs_core[_0x582232(0x200)])[_0x582232(0x21d)](_0x34076e);})),_0x3c98f8['get'](_univerjs_core[_0x212584(0x1e1)])[_0x212584(0x285)](this[_0x212584(0x1cb)]['getCurrentLocale']()),_0x3c98f8['get'](_univerjs_core[_0x212584(0x299)])[_0x212584(0x214)](_univerjs_pro_collaboration_client[_0x212584(0x2a6)],this[_0x212584(0x240)][_0x212584(0x206)](_univerjs_pro_collaboration_client['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x2611ed=this['_configService'][_0x212584(0x206)](_univerjs_pro_license[_0x212584(0x2d9)]);if(_0x2611ed)_0x4aed33[_0x212584(0x2a2)](_univerjs_pro_license[_0x212584(0x23c)],{'license':_0x2611ed['ls']});const _0x564c41=(_0x2a76d3=this['_configService'][_0x212584(0x206)](_0x212584(0x27c)))===null||_0x2a76d3===void 0x0?void 0x0:_0x2a76d3[_0x212584(0x20d)],_0xfffca6=!!_0x564c41;_0xfffca6&&(this[_0x212584(0x22e)]=_0x564c41 instanceof Worker?_0x564c41:null,_0x4aed33[_0x212584(0x2a2)](_univerjs_rpc[_0x212584(0x1c0)],{'workerURL':_0x564c41}));this[_0x212584(0x257)][_0x212584(0x2b8)](([_0x5c8fac,_0x263645])=>{const _0xd42071=_0x212584;_0x4aed33[_0xd42071(0x2a2)](_0x5c8fac,_0x263645);}),_0x4aed33[_0x212584(0x2a2)](_univerjs_pro_edit_history_viewer['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x250410=this[_0x212584(0x240)]['getConfig'](_0x212584(0x27c)))===null||_0x250410===void 0x0?void 0x0:_0x250410['historyListServerUrl'],'historyPanelComponentKey':(_0x29fb25=this['_configService'][_0x212584(0x206)](_0x212584(0x27c)))===null||_0x29fb25===void 0x0?void 0x0:_0x29fb25['historyPanelComponentKey'],'historyPanelHidden':(_0x538850=this[_0x212584(0x240)][_0x212584(0x206)](_0x212584(0x27c)))===null||_0x538850===void 0x0?void 0x0:_0x538850[_0x212584(0x267)]}),_0x3c98f8['invoke'](_0x29837d=>{const _0xe45e78=_0x212584;this[_0xe45e78(0x2da)](_0x29837d,_0x4fa07d);}),this['_historyUniver$']['next'](_0x4aed33);const _0x50a294=_0x3c98f8[_0x212584(0x2c3)](_univerjs_pro_edit_history_viewer['HistoryManagerService']),_0x32fe40=this['_checkCanRevert'](_0x4fa07d),_0x4f6067=()=>{const _0x19d9e4=_0x212584;if(_0x5c973a)_0x50a294[_0x19d9e4(0x1e4)](_0x4fa07d,_0x2a6200,_0x32fe40,_0x5c973a);else _0x50a294[_0x19d9e4(0x1d3)](_0x4fa07d,_0x2a6200,_0x32fe40);};this['_messageService']['show']({'content':this[_0x212584(0x1cb)]['t']('editHistory.info.initializing'),'type':_univerjs_design['MessageType']['Loading']});if(_0xfffca6)try{_0x3c98f8[_0x212584(0x2c3)](_univerjs_rpc[_0x212584(0x21f)])[_0x212584(0x26c)]()[_0x212584(0x1c1)](()=>{_0x4f6067();});}catch{_0x4f6067();}else _0x4f6067();}[_0x3f251d(0x2da)](_0xa3ab38,_0x32d61e){const _0x42d5ad=_0x3f251d,_0x59cda7=_0xa3ab38[_0x42d5ad(0x2c3)](_univerjs_pro_edit_history_viewer[_0x42d5ad(0x1be)]);this[_0x42d5ad(0x1da)][_0x42d5ad(0x28c)](_0x59cda7[_0x42d5ad(0x261)][_0x42d5ad(0x1d2)](_0x4ef064=>{const _0x3af5f7=_0x42d5ad;switch(_0x4ef064){case _univerjs_pro_edit_history_viewer[_0x3af5f7(0x1e6)][_0x3af5f7(0x1ee)]:this[_0x3af5f7(0x23e)][_0x3af5f7(0x276)](),this[_0x3af5f7(0x255)][_0x3af5f7(0x231)]();break;case _univerjs_pro_edit_history_viewer[_0x3af5f7(0x1e6)][_0x3af5f7(0x220)]:this[_0x3af5f7(0x209)][_0x3af5f7(0x2d8)](ExitEditHistoryOperation['id']),this[_0x3af5f7(0x203)]();break;case _univerjs_pro_edit_history_viewer[_0x3af5f7(0x1e6)][_0x3af5f7(0x21b)]:this[_0x3af5f7(0x203)](),this[_0x3af5f7(0x1de)][_0x3af5f7(0x290)]({'content':this[_0x3af5f7(0x1cb)]['t'](_0x3af5f7(0x25d)),'type':_univerjs_design[_0x3af5f7(0x1bd)][_0x3af5f7(0x21b)],'duration':0xbb8});break;default:break;}})),this[_0x42d5ad(0x1da)]['add'](_0x59cda7[_0x42d5ad(0x234)][_0x42d5ad(0x1d2)](async _0x12d4d5=>{const _0x363f32=_0x42d5ad;if(_0x12d4d5)this[_0x363f32(0x209)]['executeCommand'](_univerjs_pro_collaboration[_0x363f32(0x2d6)]['id'],{'unitId':_0x32d61e,'revision':_0x12d4d5});}));}['_checkCanRevert'](_0x5007eb){const _0x1ffdf2=_0x3f251d,_0x4b2686=this['_univerInstanceService'][_0x1ffdf2(0x259)](_0x5007eb)[_0x1ffdf2(0x238)]()['map'](_0x37d0eb=>_0x37d0eb[_0x1ffdf2(0x26a)]()),_0x84835f=new _univerjs_sheets[(_0x1ffdf2(0x1ef))](_0x5007eb)['id'],_0xb0587=_0x4b2686[_0x1ffdf2(0x297)](_0x2ef764=>new _univerjs_sheets[(_0x1ffdf2(0x1f2))](_0x5007eb,_0x2ef764)['id']),_0x2cd20c=_0x4b2686[_0x1ffdf2(0x297)](_0xe04bdb=>this[_0x1ffdf2(0x2ba)][_0x1ffdf2(0x216)](_0x5007eb,_0xe04bdb)[_0x1ffdf2(0x297)](_0x4f3ccf=>new _univerjs_sheets['RangeProtectionPermissionEditPoint'](_0x5007eb,_0xe04bdb,_0x4f3ccf[_0x1ffdf2(0x277)])['id']))['flat'](),_0x5096e5=new _univerjs_sheets[(_0x1ffdf2(0x2af))](_0x5007eb)['id'];return this[_0x1ffdf2(0x2cc)][_0x1ffdf2(0x24f)]([_0x84835f,..._0xb0587,..._0x2cd20c,_0x5096e5])[_0x1ffdf2(0x235)](_0x55e40f=>!!_0x55e40f['value']);}};function _0x1af9(_0x452184,_0x1724c2){_0x452184=_0x452184-0x1bc;const _0x246a4c=_0x246a();let _0x1af9a6=_0x246a4c[_0x452184];return _0x1af9a6;}MobileHistoryLoaderService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_core[_0x3f251d(0x1e1)])),__decorateParam(0x1,_univerjs_core[_0x3f251d(0x2c5)]),__decorateParam(0x2,_univerjs_core['IConfigService']),__decorateParam(0x3,_univerjs_core[_0x3f251d(0x1d7)]),__decorateParam(0x4,_univerjs_ui[_0x3f251d(0x253)]),__decorateParam(0x5,_univerjs_core[_0x3f251d(0x1d4)]),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x3f251d(0x2c7)])),__decorateParam(0x7,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_ui[_0x3f251d(0x21e)])),__decorateParam(0x8,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_ui['ISidebarService'])),__decorateParam(0x9,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_core[_0x3f251d(0x200)]))],MobileHistoryLoaderService);function _0x246a(){const _0x3eb9b0=['UniverSheetsChartUIPlugin','getUnitId','close','object','unsubscribe','revertRevision$','every','disposeWithMe','UniverSheetsFilterPlugin','getSheets','univer.operation.exit-edit-history','getMenuHiddenObservable','DataLoaderService','UniverLicensePlugin','absolute','_dialogService','display','_configService','_updateURLWithCurrentState','combineLatest','urlChange$','176476KYSheE','onSteady','length','HistoryIcon','CollaborationController','univer-container','decorate','UNIVER_CONTAINER_ID_KEY','IImageIoService','iterator','menu','composePermission','subunit','appendChild','function','IMessageService','ISidebarService','_sidebarService','_initContainer','_pluginMap','getParam','getUnit','UniverSheetsDataValidationUIPlugin','Workbook','_historyManagerService','editHistory.panel.listFetchError','historyUniver$','data','_historyUniver$','status$','UNIVER_HISTORY_CONTAINER_ID','UniverSheetsConditionalFormattingPlugin','CHANGESET_ACK','_urlService','CollaborationStatus','historyPanelHidden','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createElement','getSheetId','call','whenReady','UniverSheetsShapePlugin','asObservable','Inject','\x20has\x20been\x20registered.','RangeProtectionPermissionEditPoint','state$','UniverFormulaEnginePlugin','mergeMenu','_injector','closeAll','permissionId','1466295yOfZxo','OPERATION','UniverSheetsPlugin','string','edit-history-loader.config','100%','getCurrentRangeDisable$','width','constructor','has','getCurrentLocale','UniverSheetsFormulaUIPlugin','UniverDrawingUIPlugin','setLocale','_componentManager','div','location','MenuItemType','Loading','values','add','univerContainerId','CommandType','fromCollab','show','RxDisposable','version','none','zIndex','__getInjector','setDarkMode','map','AuthzIoHttpService','IConfigService','getCollabEntity','currentTheme$','UniverSheetsShapeUIPlugin','IURLService','UniverSheetsDrawingPlugin','UniverSheetsUIPlugin','ToggleEditHistoryOperation','event$','registerPlugin','default','block','editHistory.panel.title','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','WorkbookViewHistoryPermission','UNIVER_SHEET','Plugin','SYNCED','getCurrentUnitOfType','univer-history-container','UniverSheetsDataValidationMobileUIPlugin','IMenuManagerService','WorkbookRecoverHistoryPermission','UniverSheetsTablePlugin','packageName','session','_config','eventID','set','historyUniver','ILocalCacheService','forEach','UniverSheetsNumfmtPlugin','_selectionProtectionRuleModel','from','mountHistoryContent','_init','onCommandExecuted','univer.operation.toggle-edit-history','onStarting','invoke','UniverEditHistoryLoaderPlugin','get','getElementById','IUniverInstanceService','[HistoryLoaderService]:\x20Plugin\x20','RangeProtectionRuleModel','UniverInstanceType','_initUniver','UNIVER_CONTAINER_ID','darkMode$','_permissionService','style','editHistory.panel.reverting','dispose','UniverSheetsChartPlugin','_checkCanRevert','left','getUnhiddenWorksheets','getAllPlugins','mutations','RevertRevisionMutation','prototype','executeCommand','LS_CONFIG_KEY','_initListener','editHistory.panel.revertFailed','MessageType','HistoryManagerService','activeSheet$','UniverRPCMainThreadPlugin','then','UniverSheetsMobileUIPlugin','UNIVER_UNKNOWN','setParam','_setupSubUnitSync','position','UniverSheetsConditionalFormattingUIPlugin','_themeService','UniverMobileUIPlugin','DependentOn','_localeService','defineProperty','1736394XmgMnR','takeUntil','historyListServerUrl','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','_handleRevertAcknowledgement','subscribe','triggerLoadVersions','IPermissionService','dataset','getSheetBySheetId','ICommandService','MobileHistoryLoaderService','params','_disposableCollection','1pUFauA','UniverDocsPlugin','UniverSheetSparklineUIPlugin','_messageService','disposeUnit','next','LocaleService','UniverDataValidationPlugin','_updateSubUnitFromURLParams','triggerCustomVersions','UniverSheetsFormulaPlugin','HistoryModeStatus','_menuManagerService','_localCacheService','flat','SetWorksheetActivateCommand','symbol','univer-history-container-mobile','UniverSheetsDrawingUIPlugin','Entered','WorkbookEditablePermission','UniverSheetSparklinePlugin','height','WorksheetEditPermission','UniverSheetsHyperLinkPlugin','loadUnit','UniverSheetsPivotTablePlugin','registerCommand','removeAll','Injector','toStringTag','4965966TwqRwL','DisposableCollection','clear','5088958MkjEmb','toPrimitive','1264735XmzIsm','ThemeService','Module','getSheetCommandTarget','unMountHistoryContent','status','history-container','getConfig','_collaborationController','_dataLoaderService','_commandService','pluginName','getLocales','uComp','workerURL','BehaviorSubject','_univerInstanceService','UniverNetworkPlugin','OTHERS','ComponentManager','type','setConfig','dispose$','getSubunitRuleList','some','_initPlugins','UniverDocsUIPlugin','value','Error','terminate','setTheme','IDialogService','IRemoteInstanceService','Exited','register','getActiveSheet','UniverUIPlugin','top','pipe','historyAIassistantEnabled','355256HuvPTn','UniverSheetsHyperLinkUIPlugin','exhaustSavingTask','0.21.1','RibbonStartGroup','_revertErrorTimer','IAuthzIoService','_internalWebWorker'];_0x246a=function(){return _0x3eb9b0;};return _0x246a();}let UniverEditHistoryLoaderMobilePlugin=class UniverEditHistoryLoaderMobilePlugin extends _univerjs_core[_0x3f251d(0x2a9)]{constructor(_0x241346=defaultPluginConfig,_0x2b82f9,_0x370c2e){const _0x436de7=_0x3f251d;super(),this[_0x436de7(0x2b3)]=_0x241346,this[_0x436de7(0x275)]=_0x2b82f9,this[_0x436de7(0x240)]=_0x370c2e;const {menu:_0x4b9b13,..._0x46f381}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this['_config']);if(_0x4b9b13)this[_0x436de7(0x240)][_0x436de7(0x214)](_0x436de7(0x24e),_0x4b9b13,{'merge':!![]});this['_configService'][_0x436de7(0x214)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x46f381);if(this[_0x436de7(0x2b3)][_0x436de7(0x28d)])this[_0x436de7(0x240)][_0x436de7(0x214)](UNIVER_CONTAINER_ID_KEY$1,this[_0x436de7(0x2b3)]['univerContainerId']);}[_0x3f251d(0x2c0)](){const _0x2511d4=_0x3f251d;[[HistoryLoaderService,{'useClass':MobileHistoryLoaderService}],[MobileHistoryLoaderController]]['forEach'](_0x168184=>this[_0x2511d4(0x275)][_0x2511d4(0x28c)](_0x168184));}[_0x3f251d(0x245)](){const _0x58b608=_0x3f251d;this[_0x58b608(0x275)]['get'](MobileHistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x3f251d(0x213),_univerjs_core[_0x3f251d(0x2c8)][_0x3f251d(0x1c3)]),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x3f251d(0x20a),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x3f251d(0x2b1),name),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x3f251d(0x292),version),UniverEditHistoryLoaderMobilePlugin=__decorate([(0x0,_univerjs_core[_0x3f251d(0x1ca)])(_univerjs_pro_license['UniverLicensePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x3f251d(0x299)])],UniverEditHistoryLoaderMobilePlugin);let HistoryLoaderController=class HistoryLoaderController extends _univerjs_core[_0x3f251d(0x291)]{constructor(_0x321c73,_0x5ab28b,_0x4877cf,_0x3cce21,_0x597a0c,_0x515aa5,_0x13db0b,_0x44c38a,_0xeff47b,_0x3d84ae,_0x2e27f6){const _0x58ebdf=_0x3f251d;super(),this['_commandService']=_0x321c73,this[_0x58ebdf(0x1e7)]=_0x5ab28b,this[_0x58ebdf(0x286)]=_0x4877cf,this['_historyManagerService']=_0x3cce21,this[_0x58ebdf(0x1cb)]=_0x597a0c,this[_0x58ebdf(0x1de)]=_0x515aa5,this[_0x58ebdf(0x207)]=_0x13db0b,this[_0x58ebdf(0x1e8)]=_0x44c38a,this[_0x58ebdf(0x208)]=_0xeff47b,this[_0x58ebdf(0x20f)]=_0x3d84ae,this[_0x58ebdf(0x265)]=_0x2e27f6,_defineProperty(this,_0x58ebdf(0x22c),null),this[_0x58ebdf(0x2bd)]();}[_0x3f251d(0x2bd)](){const _0x5cc157=_0x3f251d;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x5cc157(0x2b8)](_0x28ac8a=>this[_0x5cc157(0x236)]((0x0,_univerjs_core['toDisposable'])(this[_0x5cc157(0x209)][_0x5cc157(0x1f6)](_0x28ac8a)))),this['disposeWithMe'](this[_0x5cc157(0x286)][_0x5cc157(0x221)](_0x5cc157(0x247),_univerjs_icons[_0x5cc157(0x247)])),this['_menuManagerService'][_0x5cc157(0x274)](menuSchema),this['disposeWithMe'](this[_0x5cc157(0x209)]['onCommandExecuted'](async(_0x3dd932,_0x36bdf1)=>{const _0x3e6a68=_0x5cc157;if(_0x3dd932['id']===_univerjs_pro_collaboration[_0x3e6a68(0x2d6)]['id']){const {unitId:_0x3a36f9}=_0x3dd932['params'];this[_0x3e6a68(0x1de)]['show']({'content':this[_0x3e6a68(0x1cb)]['t'](_0x3e6a68(0x2ce)),'type':_univerjs_design[_0x3e6a68(0x1bd)][_0x3e6a68(0x28a)],'duration':0x1388});const _0x43d73d=this[_0x3e6a68(0x207)]['getCollabEntity'](_0x3a36f9);if(!(_0x36bdf1===null||_0x36bdf1===void 0x0?void 0x0:_0x36bdf1[_0x3e6a68(0x28f)]))this[_0x3e6a68(0x1d1)](_0x43d73d,async()=>{const _0x6859ae=_0x3e6a68,_0x2a5f4=this[_0x6859ae(0x20f)][_0x6859ae(0x2ab)](_univerjs_core[_0x6859ae(0x2c8)][_0x6859ae(0x2a8)]),_0x314da6=_0x2a5f4===null||_0x2a5f4===void 0x0?void 0x0:_0x2a5f4['getActiveSheet']();if(!_0x314da6)return![];this[_0x6859ae(0x20f)][_0x6859ae(0x1df)](_0x3a36f9);const _0x2daddd=await this[_0x6859ae(0x208)][_0x6859ae(0x1f4)](_0x3a36f9,_univerjs_core['UniverInstanceType'][_0x6859ae(0x2a8)]);if(_0x2daddd&&_0x2daddd instanceof _univerjs_core[_0x6859ae(0x25b)])return await this[_0x6859ae(0x1c5)](_0x2daddd,_0x314da6[_0x6859ae(0x26a)]()),!![];return![];});else this[_0x3e6a68(0x1d1)](_0x43d73d,async()=>{const _0x461eb0=_0x3e6a68;return setTimeout(()=>window[_0x461eb0(0x288)]['reload']()),!![];},!![]);}}));}[_0x3f251d(0x1d1)](_0x49066b,_0x4203d3,_0x431f57=![]){const _0x56e045=_0x3f251d,_0x30d1a7=(0x0,rxjs[_0x56e045(0x242)])([_0x49066b[_0x56e045(0x2b2)]['event$'],_0x49066b[_0x56e045(0x272)]])[_0x56e045(0x1d2)](async([_0x148529,_0x215d25])=>{const _0x345566=_0x56e045;if(_0x148529[_0x345566(0x2b4)]===_univerjs_pro_collaboration['CollaborationEvent'][_0x345566(0x264)]&&(_0x215d25===null||_0x215d25===void 0x0?void 0x0:_0x215d25[_0x345566(0x204)])===_univerjs_pro_collaboration_client[_0x345566(0x266)][_0x345566(0x2aa)]){if(_0x148529[_0x345566(0x25f)]['mutations'][_0x345566(0x217)](_0x4fe6b7=>_0x4fe6b7['id']===_univerjs_pro_collaboration[_0x345566(0x2d6)]['id'])){if(await _0x4203d3()){var _0x3d29a6;this[_0x345566(0x25c)][_0x345566(0x203)](),_0x30d1a7[_0x345566(0x233)](),this['_revertErrorTimer']&&clearTimeout(this[_0x345566(0x22c)]),await((_0x3d29a6=this[_0x345566(0x1e8)])===null||_0x3d29a6===void 0x0?void 0x0:_0x3d29a6[_0x345566(0x229)]());}}}});if(_0x431f57)this['_revertErrorTimer']=setTimeout(()=>{const _0x537d12=_0x56e045;_0x30d1a7['unsubscribe'](),this[_0x537d12(0x1de)][_0x537d12(0x290)]({'content':this[_0x537d12(0x1cb)]['t'](_0x537d12(0x1bc)),'type':_univerjs_design[_0x537d12(0x1bd)][_0x537d12(0x21b)],'duration':0xbb8});},0x1388);}async[_0x3f251d(0x1c5)](_0x3fdb4c,_0x2e1059){const _0x1c7773=_0x3f251d;await this[_0x1c7773(0x1e3)](_0x3fdb4c,_0x2e1059),_0x3fdb4c[_0x1c7773(0x1bf)]['pipe']((0x0,rxjs[_0x1c7773(0x1ce)])(this[_0x1c7773(0x215)]))[_0x1c7773(0x1d2)](_0x865a0c=>{const _0x43d17a=_0x1c7773;if(_0x865a0c)this[_0x43d17a(0x241)](_0x865a0c);}),this['_urlService'][_0x1c7773(0x243)][_0x1c7773(0x225)]((0x0,rxjs['takeUntil'])(this[_0x1c7773(0x215)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3fdb4c,_0x2e1059));}[_0x3f251d(0x241)](_0x51a1e7,_0x21f885=![]){const _0x3a71d7=_0x3f251d,_0x244c01=this[_0x3a71d7(0x265)][_0x3a71d7(0x258)](_0x3a71d7(0x250));if(_0x51a1e7['getSheetId']()!==_0x244c01)this['_urlService'][_0x3a71d7(0x1c4)]('subunit',_0x51a1e7[_0x3a71d7(0x26a)](),_0x21f885);}async['_updateSubUnitFromURLParams'](_0x91e9b1,_0xa730b1){const _0x318d88=_0x3f251d;var _0x58f48f;if(!_0xa730b1||!_0x91e9b1['getSheetBySheetId'](_0xa730b1)){const _0x503330=_0x91e9b1[_0x318d88(0x2d3)]()[0x0],_0x41c1d1=_0x91e9b1[_0x318d88(0x1d6)](_0x503330);if(!_0x41c1d1)return;this[_0x318d88(0x241)](_0x41c1d1,!![]),await this[_0x318d88(0x209)][_0x318d88(0x2d8)](_univerjs_sheets[_0x318d88(0x1ea)]['id'],{'unitId':_0x91e9b1['getUnitId'](),'subUnitId':_0x503330});return;}if(((_0x58f48f=_0x91e9b1[_0x318d88(0x222)]())===null||_0x58f48f===void 0x0?void 0x0:_0x58f48f[_0x318d88(0x26a)]())===_0xa730b1)return;await this[_0x318d88(0x209)][_0x318d88(0x2d8)](_univerjs_sheets[_0x318d88(0x1ea)]['id'],{'unitId':_0x91e9b1[_0x318d88(0x230)](),'subUnitId':_0xa730b1});}};HistoryLoaderController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3f251d(0x1d7)]),__decorateParam(0x1,_univerjs_ui['IMenuManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_ui[_0x3f251d(0x212)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3f251d(0x26f)])(HistoryLoaderService)),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x3f251d(0x1e1)])),__decorateParam(0x5,_univerjs_ui[_0x3f251d(0x253)]),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_pro_collaboration_client[_0x3f251d(0x248)])),__decorateParam(0x7,_univerjs_pro_collaboration_client[_0x3f251d(0x2b7)]),__decorateParam(0x8,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_pro_collaboration_client[_0x3f251d(0x23b)])),__decorateParam(0x9,_univerjs_core[_0x3f251d(0x2c5)]),__decorateParam(0xa,_univerjs_pro_collaboration_client_ui[_0x3f251d(0x29d)])],HistoryLoaderController);let UniverEditHistoryLoaderPlugin=class UniverEditHistoryLoaderPlugin extends _univerjs_core['Plugin']{constructor(_0x4f1338=defaultPluginConfig,_0x4bedc2,_0x211456){const _0x2d0f14=_0x3f251d;super(),this[_0x2d0f14(0x2b3)]=_0x4f1338,this[_0x2d0f14(0x275)]=_0x4bedc2,this[_0x2d0f14(0x240)]=_0x211456;const {menu:_0x370bb4,..._0x3162a5}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this[_0x2d0f14(0x2b3)]);if(_0x370bb4)this[_0x2d0f14(0x240)][_0x2d0f14(0x214)]('menu',_0x370bb4,{'merge':!![]});this[_0x2d0f14(0x240)]['setConfig'](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x3162a5);if(this[_0x2d0f14(0x2b3)][_0x2d0f14(0x28d)])this[_0x2d0f14(0x240)][_0x2d0f14(0x214)](UNIVER_CONTAINER_ID_KEY,this[_0x2d0f14(0x2b3)][_0x2d0f14(0x28d)]);}[_0x3f251d(0x2c0)](){const _0x4b045a=_0x3f251d;[[HistoryLoaderService],[HistoryLoaderController]][_0x4b045a(0x2b8)](_0x3c1b22=>this[_0x4b045a(0x275)]['add'](_0x3c1b22));}[_0x3f251d(0x245)](){const _0x42d498=_0x3f251d;this[_0x42d498(0x275)]['get'](HistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderPlugin,_0x3f251d(0x213),_univerjs_core[_0x3f251d(0x2c8)][_0x3f251d(0x1c3)]),_defineProperty(UniverEditHistoryLoaderPlugin,_0x3f251d(0x20a),'UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_defineProperty(UniverEditHistoryLoaderPlugin,_0x3f251d(0x2b1),name),_defineProperty(UniverEditHistoryLoaderPlugin,_0x3f251d(0x292),version),UniverEditHistoryLoaderPlugin=__decorate([(0x0,_univerjs_core[_0x3f251d(0x1ca)])(_univerjs_pro_license[_0x3f251d(0x23c)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x3f251d(0x26f)])(_univerjs_core[_0x3f251d(0x1f8)])),__decorateParam(0x2,_univerjs_core[_0x3f251d(0x299)])],UniverEditHistoryLoaderPlugin),exports[_0x3f251d(0x1d0)]=EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,Object['defineProperty'](exports,'HistoryLoaderService',{'enumerable':!![],'get':function(){return HistoryLoaderService;}}),Object[_0x3f251d(0x1cc)](exports,_0x3f251d(0x1d8),{'enumerable':!![],'get':function(){return MobileHistoryLoaderService;}}),exports[_0x3f251d(0x2a0)]=ToggleEditHistoryOperation,exports[_0x3f251d(0x24b)]=UNIVER_CONTAINER_ID_KEY,exports[_0x3f251d(0x262)]=UNIVER_HISTORY_CONTAINER_ID,Object[_0x3f251d(0x1cc)](exports,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!![],'get':function(){return UniverEditHistoryLoaderMobilePlugin;}}),Object[_0x3f251d(0x1cc)](exports,_0x3f251d(0x2c2),{'enumerable':!![],'get':function(){return UniverEditHistoryLoaderPlugin;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x1ea0aa=_0x4708;(function(_0x17bbac,_0x320fbe){const _0x1d8f0d=_0x4708,_0x240972=_0x17bbac();while(!![]){try{const _0x4adec0=parseInt(_0x1d8f0d(0x1fe))/0x1*(-parseInt(_0x1d8f0d(0x1ab))/0x2)+-parseInt(_0x1d8f0d(0x172))/0x3*(-parseInt(_0x1d8f0d(0x1eb))/0x4)+-parseInt(_0x1d8f0d(0x1d5))/0x5*(parseInt(_0x1d8f0d(0x1fb))/0x6)+parseInt(_0x1d8f0d(0x1a3))/0x7*(-parseInt(_0x1d8f0d(0x1e2))/0x8)+parseInt(_0x1d8f0d(0x186))/0x9+-parseInt(_0x1d8f0d(0x193))/0xa+parseInt(_0x1d8f0d(0x1ff))/0xb;if(_0x4adec0===_0x320fbe)break;else _0x240972['push'](_0x240972['shift']());}catch(_0x2883df){_0x240972['push'](_0x240972['shift']());}}}(_0x14cb,0x24566));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';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';function _0x4708(_0xde87eb,_0x3cdea1){_0xde87eb=_0xde87eb-0x16d;const _0x14cbaf=_0x14cb();let _0x470820=_0x14cbaf[_0xde87eb];return _0x470820;}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='edit-history-loader.config',configSymbol=Symbol(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x109ef8){'@babel/helpers - typeof';const _0x55b099=_0x4708;return _typeof=_0x55b099(0x1f2)==typeof Symbol&&_0x55b099(0x1cb)==typeof Symbol[_0x55b099(0x1e0)]?function(_0x5a0e95){return typeof _0x5a0e95;}:function(_0x226571){const _0x507747=_0x55b099;return _0x226571&&'function'==typeof Symbol&&_0x226571[_0x507747(0x1e8)]===Symbol&&_0x226571!==Symbol['prototype']?_0x507747(0x1cb):typeof _0x226571;},_typeof(_0x109ef8);}function toPrimitive(_0x5dfed0,_0x21b6e8){const _0x433fde=_0x4708;if(_0x433fde(0x195)!=_typeof(_0x5dfed0)||!_0x5dfed0)return _0x5dfed0;var _0x14afc3=_0x5dfed0[Symbol[_0x433fde(0x1d3)]];if(void 0x0!==_0x14afc3){var _0x3c12fa=_0x14afc3[_0x433fde(0x1d2)](_0x5dfed0,_0x21b6e8||_0x433fde(0x1cc));if('object'!=_typeof(_0x3c12fa))return _0x3c12fa;throw new TypeError(_0x433fde(0x1a1));}return(_0x433fde(0x216)===_0x21b6e8?String:Number)(_0x5dfed0);}function toPropertyKey(_0x40fd3a){const _0x44298c=_0x4708;var _0x6e6a5d=toPrimitive(_0x40fd3a,_0x44298c(0x216));return _0x44298c(0x1cb)==_typeof(_0x6e6a5d)?_0x6e6a5d:_0x6e6a5d+'';}function _defineProperty(_0x354e7b,_0x2e26e5,_0x3ea75b){const _0x649c4e=_0x4708;return(_0x2e26e5=toPropertyKey(_0x2e26e5))in _0x354e7b?Object[_0x649c4e(0x176)](_0x354e7b,_0x2e26e5,{'value':_0x3ea75b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x354e7b[_0x2e26e5]=_0x3ea75b,_0x354e7b;}function __decorateParam(_0x10fb6d,_0x30892b){return function(_0x308f53,_0x2d1c10){_0x30892b(_0x308f53,_0x2d1c10,_0x10fb6d);};}function __decorate(_0x24a819,_0x131aef,_0x2d010e,_0x236a62){const _0x5defbf=_0x4708;var _0x2a1fe6=arguments[_0x5defbf(0x20f)],_0xed24ad=_0x2a1fe6<0x3?_0x131aef:_0x236a62===null?_0x236a62=Object['getOwnPropertyDescriptor'](_0x131aef,_0x2d010e):_0x236a62,_0x149a8f;if(typeof Reflect==='object'&&typeof Reflect[_0x5defbf(0x19e)]===_0x5defbf(0x1f2))_0xed24ad=Reflect[_0x5defbf(0x19e)](_0x24a819,_0x131aef,_0x2d010e,_0x236a62);else{for(var _0x583d71=_0x24a819['length']-0x1;_0x583d71>=0x0;_0x583d71--)if(_0x149a8f=_0x24a819[_0x583d71])_0xed24ad=(_0x2a1fe6<0x3?_0x149a8f(_0xed24ad):_0x2a1fe6>0x3?_0x149a8f(_0x131aef,_0x2d010e,_0xed24ad):_0x149a8f(_0x131aef,_0x2d010e))||_0xed24ad;}return _0x2a1fe6>0x3&&_0xed24ad&&Object[_0x5defbf(0x176)](_0x131aef,_0x2d010e,_0xed24ad),_0xed24ad;}const DEFAULT_UNIVER_CONTAINER_ID$1=_0x1ea0aa(0x1de),UNIVER_CONTAINER_ID_KEY=_0x1ea0aa(0x1c6),UNIVER_HISTORY_CONTAINER_ID='univer-history-container';let HistoryLoaderService=class HistoryLoaderService extends Disposable{constructor(_0x2c958f,_0x3cfb4d,_0x5e0262,_0x47c679,_0x266b68,_0xea6073,_0x431045,_0x565d40,_0x52ff44,_0x163071){const _0x3e2556=_0x1ea0aa;super(),this[_0x3e2556(0x171)]=_0x2c958f,this['_univerInstanceService']=_0x3cfb4d,this[_0x3e2556(0x1a6)]=_0x5e0262,this[_0x3e2556(0x205)]=_0x47c679,this[_0x3e2556(0x197)]=_0x266b68,this[_0x3e2556(0x1df)]=_0xea6073,this['_selectionProtectionRuleModel']=_0x431045,this[_0x3e2556(0x1c5)]=_0x565d40,this[_0x3e2556(0x1c8)]=_0x52ff44,this[_0x3e2556(0x1fc)]=_0x163071,_defineProperty(this,_0x3e2556(0x212),new BehaviorSubject(null)),_defineProperty(this,_0x3e2556(0x1e9),this[_0x3e2556(0x212)][_0x3e2556(0x220)]()),_defineProperty(this,'_disposableCollection',new DisposableCollection()),_defineProperty(this,_0x3e2556(0x184),new Map()),_defineProperty(this,_0x3e2556(0x1ca),null),this[_0x3e2556(0x18d)]();}get[_0x1ea0aa(0x190)](){const _0x2d79f8=_0x1ea0aa;return this[_0x2d79f8(0x212)]['value'];}['_init'](){const _0x3e49ab=_0x1ea0aa;this['_initContainer'](),this[_0x3e49ab(0x22e)]();}[_0x1ea0aa(0x1ad)](){const _0xd33ffd=_0x1ea0aa;var _0x435297;const _0x3f622b=(_0x435297=this[_0xd33ffd(0x1a6)][_0xd33ffd(0x22c)](_0xd33ffd(0x1c6)))!==null&&_0x435297!==void 0x0?_0x435297:DEFAULT_UNIVER_CONTAINER_ID$1,_0x4305b4=document[_0xd33ffd(0x226)](_0x3f622b);if(!_0x4305b4)return;const _0x4ac13b=document[_0xd33ffd(0x224)](_0xd33ffd(0x1ac));_0x4ac13b['id']=UNIVER_HISTORY_CONTAINER_ID,_0x4ac13b[_0xd33ffd(0x1c2)]['uComp']=_0xd33ffd(0x185),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x223)]=_0xd33ffd(0x227),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x1e7)]='0',_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x173)]='0',_0x4ac13b[_0xd33ffd(0x1bd)]['width']=_0xd33ffd(0x1dc),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x213)]=_0xd33ffd(0x1dc),_0x4ac13b['style'][_0xd33ffd(0x20b)]='49',_0x4ac13b[_0xd33ffd(0x1bd)]['display']=_0xd33ffd(0x187),_0x4305b4[_0xd33ffd(0x1fa)](_0x4ac13b);}[_0x1ea0aa(0x22e)](){const _0x36806e=_0x1ea0aa;[[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]]['forEach'](([_0x13ad2c,_0x344784])=>this[_0x36806e(0x1bc)](_0x13ad2c,_0x344784));}[_0x1ea0aa(0x1e5)](){const _0x2143f8=_0x1ea0aa;super['dispose'](),this[_0x2143f8(0x1aa)](),this[_0x2143f8(0x184)]['clear']();}[_0x1ea0aa(0x1bc)](_0x36e25e,_0x5bec81,_0x11b6f2){const _0x527580=_0x1ea0aa;if(this['_pluginMap']['has'](_0x36e25e[_0x527580(0x1b4)])&&!_0x11b6f2)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x36e25e[_0x527580(0x1b4)]+_0x527580(0x17e));this['_pluginMap'][_0x527580(0x1f4)](_0x36e25e[_0x527580(0x1b4)],[_0x36e25e,_0x5bec81]);}[_0x1ea0aa(0x1e6)](){const _0x2a8f30=_0x1ea0aa;return Array['from'](this[_0x2a8f30(0x184)][_0x2a8f30(0x22d)]());}[_0x1ea0aa(0x1b0)](_0x3f332d,_0x1c2148){const _0x5e9630=_0x1ea0aa,_0x53b317=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x53b317)return;_0x53b317[_0x5e9630(0x1bd)][_0x5e9630(0x19a)]=_0x5e9630(0x170),this[_0x5e9630(0x1c3)](_0x3f332d,UNIVER_HISTORY_CONTAINER_ID,_0x1c2148);}[_0x1ea0aa(0x1aa)](){const _0x39e4ad=_0x1ea0aa;var _0x2498f9;this[_0x39e4ad(0x181)][_0x39e4ad(0x1e5)](),(_0x2498f9=this['historyUniver'])===null||_0x2498f9===void 0x0||_0x2498f9[_0x39e4ad(0x1e5)](),this[_0x39e4ad(0x212)][_0x39e4ad(0x182)](null);const _0x503d1e=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x503d1e)return;_0x503d1e[_0x39e4ad(0x1bd)][_0x39e4ad(0x19a)]=_0x39e4ad(0x187),this[_0x39e4ad(0x1ca)]&&(this[_0x39e4ad(0x1ca)]['terminate'](),this[_0x39e4ad(0x1ca)]=null);}[_0x1ea0aa(0x1c3)](_0x17d9e1,_0x1a649a,_0x5b33cb){const _0x2f3243=_0x1ea0aa;var _0x24b8c3,_0x3b1f24,_0x467d80,_0x15d2d5,_0x4c5909;if(this[_0x2f3243(0x190)])return;const _0x480aab=new Univer({'locales':{[this[_0x2f3243(0x171)]['getCurrentLocale']()]:this['_localeService'][_0x2f3243(0x1e4)]()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x13f741=_0x480aab['__getInjector']();this[_0x2f3243(0x1f9)](this['_themeService'][_0x2f3243(0x16e)][_0x2f3243(0x228)](_0x1be2bb=>{const _0x1cd330=_0x2f3243;_0x13f741[_0x1cd330(0x1b1)](ThemeService)['setDarkMode'](_0x1be2bb);})),this[_0x2f3243(0x1f9)](this['_themeService'][_0x2f3243(0x210)]['subscribe'](_0x1e788d=>{_0x13f741['get'](ThemeService)['setTheme'](_0x1e788d);})),_0x13f741['get'](LocaleService)['setLocale'](this['_localeService'][_0x2f3243(0x1ef)]()),_0x13f741[_0x2f3243(0x1b1)](IConfigService)[_0x2f3243(0x1a8)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x5692e7=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](LS_CONFIG_KEY);if(_0x5692e7)_0x480aab['registerPlugin'](UniverLicensePlugin,{'license':_0x5692e7['ls']});const _0x1715f1=(_0x24b8c3=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x24b8c3===void 0x0?void 0x0:_0x24b8c3[_0x2f3243(0x1c0)],_0x3f5081=!!_0x1715f1;_0x3f5081&&(this[_0x2f3243(0x1ca)]=_0x1715f1 instanceof Worker?_0x1715f1:null,_0x480aab[_0x2f3243(0x1bc)](UniverRPCMainThreadPlugin,{'workerURL':_0x1715f1}));this[_0x2f3243(0x184)]['forEach'](([_0x3f3c23,_0xfd64b7])=>{const _0x1b157d=_0x2f3243;_0x480aab[_0x1b157d(0x1bc)](_0x3f3c23,_0xfd64b7);}),_0x480aab[_0x2f3243(0x1bc)](UniverEditHistoryViewerPlugin,{'historyListServerUrl':(_0x3b1f24=this['_configService'][_0x2f3243(0x22c)]('edit-history-loader.config'))===null||_0x3b1f24===void 0x0?void 0x0:_0x3b1f24['historyListServerUrl'],'historyPanelComponentKey':(_0x467d80=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x467d80===void 0x0?void 0x0:_0x467d80[_0x2f3243(0x188)],'historyPanelHidden':(_0x15d2d5=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x15d2d5===void 0x0?void 0x0:_0x15d2d5[_0x2f3243(0x1ec)],'historyAIassistantEnabled':(_0x4c5909=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x4c5909===void 0x0?void 0x0:_0x4c5909[_0x2f3243(0x1cf)]}),_0x13f741[_0x2f3243(0x20a)](_0x5e78da=>{const _0x5bbbd6=_0x2f3243;this[_0x5bbbd6(0x218)](_0x5e78da,_0x17d9e1);}),this[_0x2f3243(0x212)][_0x2f3243(0x182)](_0x480aab);const _0x2a4cb1=_0x13f741[_0x2f3243(0x1b1)](HistoryManagerService),_0x53a491=this[_0x2f3243(0x21a)](_0x17d9e1),_0x318566=()=>{const _0x53d5cf=_0x2f3243;if(_0x5b33cb)_0x2a4cb1[_0x53d5cf(0x1a2)](_0x17d9e1,_0x1a649a,_0x53a491,_0x5b33cb);else _0x2a4cb1['triggerLoadVersions'](_0x17d9e1,_0x1a649a,_0x53a491);};this['_messageService']['show']({'content':this[_0x2f3243(0x171)]['t']('editHistory.info.initializing'),'type':MessageType[_0x2f3243(0x222)]});if(_0x3f5081)try{_0x13f741[_0x2f3243(0x1b1)](IRemoteInstanceService)[_0x2f3243(0x1ce)]()[_0x2f3243(0x1f3)](()=>{_0x318566();});}catch{_0x318566();}else _0x318566();}[_0x1ea0aa(0x218)](_0x2b9ab0,_0x29184e){const _0x439a29=_0x1ea0aa,_0x4d9904=_0x2b9ab0[_0x439a29(0x1b1)](HistoryManagerService);this['_disposableCollection'][_0x439a29(0x209)](_0x4d9904[_0x439a29(0x1d8)]['subscribe'](_0x1e9e0f=>{const _0xe46c4b=_0x439a29;switch(_0x1e9e0f){case HistoryModeStatus[_0xe46c4b(0x1b6)]:this['_dialogService'][_0xe46c4b(0x1f8)](),this['_sidebarService']['close']();break;case HistoryModeStatus['Exited']:this[_0xe46c4b(0x205)][_0xe46c4b(0x1b9)](ExitEditHistoryOperation['id']),this[_0xe46c4b(0x1aa)]();break;case HistoryModeStatus[_0xe46c4b(0x21c)]:this[_0xe46c4b(0x1aa)](),this[_0xe46c4b(0x197)][_0xe46c4b(0x21b)]({'content':this['_localeService']['t'](_0xe46c4b(0x21d)),'type':MessageType['Error'],'duration':0xbb8});break;default:break;}})),this[_0x439a29(0x181)][_0x439a29(0x209)](_0x4d9904[_0x439a29(0x219)]['subscribe'](async _0x27a1fb=>{const _0x312d62=_0x439a29;if(_0x27a1fb)this['_commandService'][_0x312d62(0x1b9)](RevertRevisionMutation['id'],{'unitId':_0x29184e,'revision':_0x27a1fb});}));}[_0x1ea0aa(0x21a)](_0x2687b8){const _0x16156e=_0x1ea0aa,_0x5877a3=this['_univerInstanceService'][_0x16156e(0x1a4)](_0x2687b8)[_0x16156e(0x17b)]()[_0x16156e(0x1d9)](_0x36518e=>_0x36518e['getSheetId']()),_0x2b17af=new WorkbookEditablePermission(_0x2687b8)['id'],_0x65b621=_0x5877a3[_0x16156e(0x1d9)](_0x1d37f3=>new WorksheetEditPermission(_0x2687b8,_0x1d37f3)['id']),_0x4a3b13=_0x5877a3['map'](_0x52b0b5=>this[_0x16156e(0x1b8)][_0x16156e(0x221)](_0x2687b8,_0x52b0b5)['map'](_0x33e18b=>new RangeProtectionPermissionEditPoint(_0x2687b8,_0x52b0b5,_0x33e18b['permissionId'])['id']))[_0x16156e(0x1b3)](),_0x31df2c=new WorkbookRecoverHistoryPermission(_0x2687b8)['id'];return this[_0x16156e(0x1df)][_0x16156e(0x179)]([_0x2b17af,..._0x65b621,..._0x4a3b13,_0x31df2c])['every'](_0x3b57bd=>!!_0x3b57bd[_0x16156e(0x18b)]);}};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);function _0x14cb(){const _0x1299f2=['_commandService','@univerjs-pro/edit-history-loader','_historyManagerService','dispose$','add','invoke','zIndex','HistoryIcon','BUTTON','editHistory.info.initializing','length','currentTheme$','univer.operation.toggle-edit-history','_historyUniver$','height','packageName','setParam','string','fromCollab','_initListener','revertRevision$','_checkCanRevert','show','Error','editHistory.panel.listFetchError','_localCacheService','getUnhiddenWorksheets','asObservable','getSubunitRuleList','Loading','position','createElement','getActiveSheet','getElementById','absolute','subscribe','getCurrentUnitOfType','clear','historyListServerUrl','getConfig','values','_initPlugins','UNIVER_UNKNOWN','onCommandExecuted','event$','darkMode$','onStarting','block','_localeService','129qZsexH','left','__getInjector','version','defineProperty','Exited','has','composePermission','unsubscribe','getSheets','mergeMenu','_componentManager','\x20has\x20been\x20registered.','width','location','_disposableCollection','next','_urlService','_pluginMap','history-container','178794PxXqlP','none','historyPanelComponentKey','editHistory.panel.title','edit-history-loader.config','value','_updateURLWithCurrentState','_init','state$','editHistory.panel.revertFailed','historyUniver','reload','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','2393010cjXIwX','_injector','object','loadUnit','_messageService','getSheetId','univer-history-container-mobile','display','OPERATION','setLocale','CHANGESET_ACK','decorate','_univerInstanceService','_dataLoaderService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','triggerCustomVersions','35OmXtxn','getUnit','SYNCED','_configService','onSteady','setConfig','getSheetBySheetId','unMountHistoryContent','2nUpXFR','div','_initContainer','0.21.1','[MobileHistoryLoaderService]:\x20Plugin\x20','mountHistoryContent','get','data','flat','pluginName','pipe','Entered','_handleRevertAcknowledgement','_selectionProtectionRuleModel','executeCommand','type','status','registerPlugin','style','_collaborationController','mutations','workerURL','getCollabEntity','dataset','_initUniver','triggerLoadVersions','_dialogService','UNIVER_CONTAINER_ID','uComp','_sidebarService','_menuManagerService','_internalWebWorker','symbol','default','_setupSubUnitSync','whenReady','historyAIassistantEnabled','forEach','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','call','toPrimitive','permissionId','4045tOlWuZ','registerCommand','subunit','status$','map','register','_updateSubUnitFromURLParams','100%','session','univer-container','_permissionService','iterator','setDarkMode','5552UoKEFK','setTheme','getLocales','dispose','getAllPlugins','top','constructor','historyUniver$','_config','23148ZHViSZ','historyPanelHidden','eventID','some','getCurrentLocale','from','every','function','then','set','menu','getUnitId','editHistory.panel.reverting','closeAll','disposeWithMe','appendChild','804eRHTrR','_themeService','UNIVER_SHEET','31366LbwVNQ','2889414QfVEir','univerContainerId','urlChange$','exhaustSavingTask','params','_revertErrorTimer'];_0x14cb=function(){return _0x1299f2;};return _0x14cb();}const ToggleEditHistoryOperation={'id':_0x1ea0aa(0x211),'type':CommandType[_0x1ea0aa(0x19b)],'handler':_0x52fcfc=>{const _0x1029de=_0x1ea0aa,_0x2a8636=_0x52fcfc['get'](HistoryLoaderService),{unitId:_0x59ea1d}=getSheetCommandTarget(_0x52fcfc[_0x1029de(0x1b1)](IUniverInstanceService))||{};if(!_0x59ea1d)return![];return _0x2a8636[_0x1029de(0x1b0)](_0x59ea1d),!![];}},ExitEditHistoryOperation={'id':'univer.operation.exit-edit-history','type':CommandType[_0x1ea0aa(0x19b)],'handler':()=>!![]};var name=_0x1ea0aa(0x206),version=_0x1ea0aa(0x1ae);function ToggleEditHistoryMenuFactory(_0x2dc09e){const _0x8ff1bb=_0x1ea0aa;return{'id':ToggleEditHistoryOperation['id'],'type':MenuItemType[_0x8ff1bb(0x20d)],'icon':'HistoryIcon','tooltip':_0x8ff1bb(0x189),'hidden$':getMenuHiddenObservable(_0x2dc09e,UniverInstanceType['UNIVER_SHEET']),'disabled$':getCurrentRangeDisable$(_0x2dc09e,{'workbookTypes':[WorkbookViewHistoryPermission],'worksheetTypes':[],'rangeTypes':[]})};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[ToggleEditHistoryOperation['id']]:{'order':0.2,'menuItemFactory':ToggleEditHistoryMenuFactory}}};let MobileHistoryLoaderController=class MobileHistoryLoaderController extends RxDisposable{constructor(_0x42793c,_0x1315e4,_0x14d44a,_0x9cd027,_0x1b8713,_0x4128a0,_0x4085c7,_0x298ac4,_0x389ec7,_0x4e2c3b,_0x1155ab){const _0x266500=_0x1ea0aa;super(),this[_0x266500(0x205)]=_0x42793c,this[_0x266500(0x1c9)]=_0x1315e4,this['_componentManager']=_0x14d44a,this[_0x266500(0x207)]=_0x9cd027,this[_0x266500(0x171)]=_0x1b8713,this[_0x266500(0x197)]=_0x4128a0,this[_0x266500(0x1be)]=_0x4085c7,this['_localCacheService']=_0x298ac4,this['_dataLoaderService']=_0x389ec7,this['_univerInstanceService']=_0x4e2c3b,this[_0x266500(0x183)]=_0x1155ab,_defineProperty(this,_0x266500(0x204),null),this[_0x266500(0x18d)]();}[_0x1ea0aa(0x18d)](){const _0x865a62=_0x1ea0aa;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x865a62(0x1d0)](_0x164e01=>this['disposeWithMe'](toDisposable(this[_0x865a62(0x205)][_0x865a62(0x1d6)](_0x164e01)))),this[_0x865a62(0x1f9)](this['_componentManager'][_0x865a62(0x1da)](_0x865a62(0x20c),HistoryIcon)),this[_0x865a62(0x1c9)][_0x865a62(0x17c)](menuSchema),this['disposeWithMe'](this[_0x865a62(0x205)][_0x865a62(0x230)](async(_0x28016b,_0xff8526)=>{const _0x4ed778=_0x865a62;if(_0x28016b['id']===RevertRevisionMutation['id']){const {unitId:_0x3e1ae5}=_0x28016b[_0x4ed778(0x203)];this[_0x4ed778(0x197)]['show']({'content':this[_0x4ed778(0x171)]['t'](_0x4ed778(0x1f7)),'type':MessageType['Loading'],'duration':0x1388});const _0x4b4838=this[_0x4ed778(0x1be)][_0x4ed778(0x1c1)](_0x3e1ae5);if(!(_0xff8526===null||_0xff8526===void 0x0?void 0x0:_0xff8526['fromCollab']))this[_0x4ed778(0x1b7)](_0x4b4838,async()=>{const _0x13fed3=_0x4ed778,_0x7c2aab=this['_univerInstanceService'][_0x13fed3(0x229)](UniverInstanceType['UNIVER_SHEET']),_0x31f8ba=_0x7c2aab===null||_0x7c2aab===void 0x0?void 0x0:_0x7c2aab['getActiveSheet']();if(!_0x31f8ba)return![];this[_0x13fed3(0x19f)]['disposeUnit'](_0x3e1ae5);const _0x138ef7=await this[_0x13fed3(0x1a0)][_0x13fed3(0x196)](_0x3e1ae5,UniverInstanceType[_0x13fed3(0x1fd)]);if(_0x138ef7&&_0x138ef7 instanceof Workbook)return await this[_0x13fed3(0x1cd)](_0x138ef7,_0x31f8ba[_0x13fed3(0x198)]()),!![];return![];});else this[_0x4ed778(0x1b7)](_0x4b4838,async()=>{const _0x3fc13a=_0x4ed778;return setTimeout(()=>window[_0x3fc13a(0x180)]['reload']()),!![];},!![]);}}));}['_handleRevertAcknowledgement'](_0x5622ad,_0x49963b,_0x3247a3=![]){const _0x1c29aa=_0x1ea0aa,_0x11641e=combineLatest([_0x5622ad[_0x1c29aa(0x1dd)][_0x1c29aa(0x16d)],_0x5622ad[_0x1c29aa(0x18e)]])[_0x1c29aa(0x228)](async([_0x42cc5c,_0x52c039])=>{const _0x337c14=_0x1c29aa;if(_0x42cc5c['eventID']===CollaborationEvent[_0x337c14(0x19d)]&&(_0x52c039===null||_0x52c039===void 0x0?void 0x0:_0x52c039[_0x337c14(0x1bb)])===CollaborationStatus[_0x337c14(0x1a5)]){if(_0x42cc5c[_0x337c14(0x1b2)][_0x337c14(0x1bf)][_0x337c14(0x1ee)](_0x160aef=>_0x160aef['id']===RevertRevisionMutation['id'])){if(await _0x49963b()){var _0x4fe65d;this[_0x337c14(0x207)][_0x337c14(0x1aa)](),_0x11641e['unsubscribe'](),this[_0x337c14(0x204)]&&clearTimeout(this[_0x337c14(0x204)]),await((_0x4fe65d=this['_localCacheService'])===null||_0x4fe65d===void 0x0?void 0x0:_0x4fe65d[_0x337c14(0x202)]()),this[_0x337c14(0x197)]['removeAll']();}}}});if(_0x3247a3)this['_revertErrorTimer']=setTimeout(()=>{const _0x24275f=_0x1c29aa;_0x11641e[_0x24275f(0x17a)](),this[_0x24275f(0x197)][_0x24275f(0x21b)]({'content':this[_0x24275f(0x171)]['t'](_0x24275f(0x18f)),'type':MessageType[_0x24275f(0x21c)],'duration':0xbb8});},0x1388);}async[_0x1ea0aa(0x1cd)](_0x6f12f2,_0x206405){const _0x3481e6=_0x1ea0aa;await this['_updateSubUnitFromURLParams'](_0x6f12f2,_0x206405),_0x6f12f2['activeSheet$'][_0x3481e6(0x1b5)](takeUntil(this[_0x3481e6(0x208)]))['subscribe'](_0x580d1e=>{const _0x44bae3=_0x3481e6;if(_0x580d1e)this[_0x44bae3(0x18c)](_0x580d1e);}),this['_urlService']['urlChange$'][_0x3481e6(0x1b5)](takeUntil(this[_0x3481e6(0x208)]))[_0x3481e6(0x228)](()=>this['_updateSubUnitFromURLParams'](_0x6f12f2,_0x206405));}['_updateURLWithCurrentState'](_0x4ccfcf,_0xcbdd43=![]){const _0x1a798d=_0x1ea0aa,_0x1c509b=this[_0x1a798d(0x183)]['getParam'](_0x1a798d(0x1d7));if(_0x4ccfcf['getSheetId']()!==_0x1c509b)this[_0x1a798d(0x183)][_0x1a798d(0x215)](_0x1a798d(0x1d7),_0x4ccfcf[_0x1a798d(0x198)](),_0xcbdd43);}async[_0x1ea0aa(0x1db)](_0x280e84,_0x39eec3){const _0x121de3=_0x1ea0aa;var _0x5a0a34;if(!_0x39eec3||!_0x280e84[_0x121de3(0x1a9)](_0x39eec3)){const _0x3bb48b=_0x280e84[_0x121de3(0x21f)]()[0x0],_0x3cc645=_0x280e84[_0x121de3(0x1a9)](_0x3bb48b);if(!_0x3cc645)return;this[_0x121de3(0x18c)](_0x3cc645,!![]),await this[_0x121de3(0x205)][_0x121de3(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x280e84[_0x121de3(0x1f6)](),'subUnitId':_0x3bb48b});return;}if(((_0x5a0a34=_0x280e84[_0x121de3(0x225)]())===null||_0x5a0a34===void 0x0?void 0x0:_0x5a0a34[_0x121de3(0x198)]())===_0x39eec3)return;await this['_commandService'][_0x121de3(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x280e84[_0x121de3(0x1f6)](),'subUnitId':_0x39eec3});}};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=_0x1ea0aa(0x1de),UNIVER_CONTAINER_ID_KEY$1='UNIVER_CONTAINER_ID',UNIVER_HISTORY_CONTAINER_ID$1=_0x1ea0aa(0x199);let MobileHistoryLoaderService=class MobileHistoryLoaderService extends Disposable{constructor(_0xd5a76a,_0x92a052,_0x33b82c,_0x4db9d2,_0x5e9d5d,_0x561b7b,_0x5a859d,_0x4a3e96,_0x502b0b,_0x3abec1){const _0x3f2923=_0x1ea0aa;super(),this[_0x3f2923(0x171)]=_0xd5a76a,this[_0x3f2923(0x19f)]=_0x92a052,this['_configService']=_0x33b82c,this[_0x3f2923(0x205)]=_0x4db9d2,this[_0x3f2923(0x197)]=_0x5e9d5d,this['_permissionService']=_0x561b7b,this[_0x3f2923(0x1b8)]=_0x5a859d,this[_0x3f2923(0x1c5)]=_0x4a3e96,this['_sidebarService']=_0x502b0b,this['_themeService']=_0x3abec1,_defineProperty(this,_0x3f2923(0x212),new BehaviorSubject(null)),_defineProperty(this,_0x3f2923(0x1e9),this[_0x3f2923(0x212)][_0x3f2923(0x220)]()),_defineProperty(this,_0x3f2923(0x181),new DisposableCollection()),_defineProperty(this,'_pluginMap',new Map()),_defineProperty(this,_0x3f2923(0x1ca),null),this[_0x3f2923(0x18d)]();}get[_0x1ea0aa(0x190)](){const _0x523328=_0x1ea0aa;return this[_0x523328(0x212)][_0x523328(0x18b)];}[_0x1ea0aa(0x18d)](){const _0x1c5560=_0x1ea0aa;this[_0x1c5560(0x1ad)](),this[_0x1c5560(0x22e)]();}[_0x1ea0aa(0x1ad)](){const _0x459b08=_0x1ea0aa;var _0x4058e1;const _0x2d2fd5=(_0x4058e1=this[_0x459b08(0x1a6)][_0x459b08(0x22c)](_0x459b08(0x1c6)))!==null&&_0x4058e1!==void 0x0?_0x4058e1:DEFAULT_UNIVER_CONTAINER_ID,_0x25ad4e=document['getElementById'](_0x2d2fd5);if(!_0x25ad4e)return;const _0x17bf05=document[_0x459b08(0x224)]('div');_0x17bf05['id']=UNIVER_HISTORY_CONTAINER_ID$1,_0x17bf05[_0x459b08(0x1c2)][_0x459b08(0x1c7)]=_0x459b08(0x185),_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x223)]='absolute',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x1e7)]='0',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x173)]='0',_0x17bf05['style'][_0x459b08(0x17f)]='100%',_0x17bf05['style'][_0x459b08(0x213)]=_0x459b08(0x1dc),_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x20b)]='49',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x19a)]='none',_0x25ad4e['appendChild'](_0x17bf05);}[_0x1ea0aa(0x22e)](){const _0xa87ead=_0x1ea0aa;[[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]][_0xa87ead(0x1d0)](([_0xfce5b5,_0x69ddb4])=>this[_0xa87ead(0x1bc)](_0xfce5b5,_0x69ddb4));}[_0x1ea0aa(0x1e5)](){const _0x191ff6=_0x1ea0aa;super['dispose'](),this[_0x191ff6(0x1aa)](),this[_0x191ff6(0x184)][_0x191ff6(0x22a)]();}[_0x1ea0aa(0x1bc)](_0x51bc2f,_0x1c1885,_0x116940){const _0x3740a4=_0x1ea0aa;if(this[_0x3740a4(0x184)][_0x3740a4(0x178)](_0x51bc2f[_0x3740a4(0x1b4)])&&!_0x116940)throw new Error(_0x3740a4(0x1af)+_0x51bc2f[_0x3740a4(0x1b4)]+'\x20has\x20been\x20registered.');this[_0x3740a4(0x184)][_0x3740a4(0x1f4)](_0x51bc2f['pluginName'],[_0x51bc2f,_0x1c1885]);}[_0x1ea0aa(0x1e6)](){const _0x57d63b=_0x1ea0aa;return Array[_0x57d63b(0x1f0)](this['_pluginMap'][_0x57d63b(0x22d)]());}['mountHistoryContent'](_0x56737e,_0xf4af5b){const _0xbf2694=_0x1ea0aa,_0x5738e5=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x5738e5)return;_0x5738e5['style'][_0xbf2694(0x19a)]='block',this[_0xbf2694(0x1c3)](_0x56737e,UNIVER_HISTORY_CONTAINER_ID$1,_0xf4af5b);}[_0x1ea0aa(0x1aa)](){const _0x47f153=_0x1ea0aa;var _0x222bdf;this['_disposableCollection'][_0x47f153(0x1e5)](),(_0x222bdf=this[_0x47f153(0x190)])===null||_0x222bdf===void 0x0||_0x222bdf[_0x47f153(0x1e5)](),this[_0x47f153(0x212)][_0x47f153(0x182)](null);const _0xc487aa=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0xc487aa)return;_0xc487aa[_0x47f153(0x1bd)]['display']=_0x47f153(0x187),this[_0x47f153(0x1ca)]&&(this[_0x47f153(0x1ca)]['terminate'](),this[_0x47f153(0x1ca)]=null);}[_0x1ea0aa(0x1c3)](_0x31c54e,_0x363ef2,_0x54d2e6){const _0x4ddc59=_0x1ea0aa;var _0x29c995,_0x10fb45,_0xc60341,_0x36b877;if(this[_0x4ddc59(0x190)])return;const _0x4ff71e=new Univer({'locales':{[this[_0x4ddc59(0x171)][_0x4ddc59(0x1ef)]()]:this[_0x4ddc59(0x171)][_0x4ddc59(0x1e4)]()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x1efbcd=_0x4ff71e[_0x4ddc59(0x174)]();this[_0x4ddc59(0x1f9)](this[_0x4ddc59(0x1fc)][_0x4ddc59(0x16e)][_0x4ddc59(0x228)](_0x28644b=>{const _0x4c211e=_0x4ddc59;_0x1efbcd['get'](ThemeService)[_0x4c211e(0x1e1)](_0x28644b);})),this['disposeWithMe'](this[_0x4ddc59(0x1fc)]['currentTheme$'][_0x4ddc59(0x228)](_0x1a4bde=>{const _0x78ab02=_0x4ddc59;_0x1efbcd['get'](ThemeService)[_0x78ab02(0x1e3)](_0x1a4bde);})),_0x1efbcd[_0x4ddc59(0x1b1)](LocaleService)[_0x4ddc59(0x19c)](this['_localeService'][_0x4ddc59(0x1ef)]()),_0x1efbcd[_0x4ddc59(0x1b1)](IConfigService)[_0x4ddc59(0x1a8)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this['_configService'][_0x4ddc59(0x22c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x5ce8c1=this[_0x4ddc59(0x1a6)]['getConfig'](LS_CONFIG_KEY);if(_0x5ce8c1)_0x4ff71e['registerPlugin'](UniverLicensePlugin,{'license':_0x5ce8c1['ls']});const _0x278038=(_0x29c995=this[_0x4ddc59(0x1a6)][_0x4ddc59(0x22c)](_0x4ddc59(0x18a)))===null||_0x29c995===void 0x0?void 0x0:_0x29c995[_0x4ddc59(0x1c0)],_0xa99c6a=!!_0x278038;_0xa99c6a&&(this[_0x4ddc59(0x1ca)]=_0x278038 instanceof Worker?_0x278038:null,_0x4ff71e[_0x4ddc59(0x1bc)](UniverRPCMainThreadPlugin,{'workerURL':_0x278038}));this[_0x4ddc59(0x184)]['forEach'](([_0x8a57a0,_0x5681d8])=>{const _0x3cce88=_0x4ddc59;_0x4ff71e[_0x3cce88(0x1bc)](_0x8a57a0,_0x5681d8);}),_0x4ff71e[_0x4ddc59(0x1bc)](UniverEditHistoryViewerMobilePlugin,{'historyListServerUrl':(_0x10fb45=this[_0x4ddc59(0x1a6)]['getConfig']('edit-history-loader.config'))===null||_0x10fb45===void 0x0?void 0x0:_0x10fb45[_0x4ddc59(0x22b)],'historyPanelComponentKey':(_0xc60341=this['_configService'][_0x4ddc59(0x22c)](_0x4ddc59(0x18a)))===null||_0xc60341===void 0x0?void 0x0:_0xc60341[_0x4ddc59(0x188)],'historyPanelHidden':(_0x36b877=this[_0x4ddc59(0x1a6)]['getConfig'](_0x4ddc59(0x18a)))===null||_0x36b877===void 0x0?void 0x0:_0x36b877[_0x4ddc59(0x1ec)]}),_0x1efbcd[_0x4ddc59(0x20a)](_0x5b4922=>{const _0x47f337=_0x4ddc59;this[_0x47f337(0x218)](_0x5b4922,_0x31c54e);}),this[_0x4ddc59(0x212)][_0x4ddc59(0x182)](_0x4ff71e);const _0x1c8031=_0x1efbcd[_0x4ddc59(0x1b1)](HistoryManagerService),_0x432354=this['_checkCanRevert'](_0x31c54e),_0x28a18e=()=>{const _0x263acb=_0x4ddc59;if(_0x54d2e6)_0x1c8031[_0x263acb(0x1a2)](_0x31c54e,_0x363ef2,_0x432354,_0x54d2e6);else _0x1c8031[_0x263acb(0x1c4)](_0x31c54e,_0x363ef2,_0x432354);};this[_0x4ddc59(0x197)][_0x4ddc59(0x21b)]({'content':this['_localeService']['t'](_0x4ddc59(0x20e)),'type':MessageType['Loading']});if(_0xa99c6a)try{_0x1efbcd['get'](IRemoteInstanceService)[_0x4ddc59(0x1ce)]()[_0x4ddc59(0x1f3)](()=>{_0x28a18e();});}catch{_0x28a18e();}else _0x28a18e();}['_initListener'](_0x749f5d,_0x1fb3a3){const _0x394505=_0x1ea0aa,_0x2633fc=_0x749f5d[_0x394505(0x1b1)](HistoryManagerService);this[_0x394505(0x181)]['add'](_0x2633fc['status$']['subscribe'](_0x4ea203=>{const _0x3c433d=_0x394505;switch(_0x4ea203){case HistoryModeStatus['Entered']:this[_0x3c433d(0x1c5)][_0x3c433d(0x1f8)](),this['_sidebarService']['close']();break;case HistoryModeStatus[_0x3c433d(0x177)]:this[_0x3c433d(0x205)][_0x3c433d(0x1b9)](ExitEditHistoryOperation['id']),this[_0x3c433d(0x1aa)]();break;case HistoryModeStatus[_0x3c433d(0x21c)]:this['unMountHistoryContent'](),this['_messageService']['show']({'content':this[_0x3c433d(0x171)]['t'](_0x3c433d(0x21d)),'type':MessageType[_0x3c433d(0x21c)],'duration':0xbb8});break;default:break;}})),this[_0x394505(0x181)][_0x394505(0x209)](_0x2633fc['revertRevision$']['subscribe'](async _0x4b400b=>{const _0x397e5b=_0x394505;if(_0x4b400b)this[_0x397e5b(0x205)][_0x397e5b(0x1b9)](RevertRevisionMutation['id'],{'unitId':_0x1fb3a3,'revision':_0x4b400b});}));}[_0x1ea0aa(0x21a)](_0x35eff9){const _0x552b5b=_0x1ea0aa,_0x264bc2=this[_0x552b5b(0x19f)]['getUnit'](_0x35eff9)[_0x552b5b(0x17b)]()[_0x552b5b(0x1d9)](_0x22c3e2=>_0x22c3e2[_0x552b5b(0x198)]()),_0x137dce=new WorkbookEditablePermission(_0x35eff9)['id'],_0x355c37=_0x264bc2['map'](_0x15f07e=>new WorksheetEditPermission(_0x35eff9,_0x15f07e)['id']),_0x51baed=_0x264bc2[_0x552b5b(0x1d9)](_0xcf0cb4=>this[_0x552b5b(0x1b8)][_0x552b5b(0x221)](_0x35eff9,_0xcf0cb4)['map'](_0x165054=>new RangeProtectionPermissionEditPoint(_0x35eff9,_0xcf0cb4,_0x165054[_0x552b5b(0x1d4)])['id']))['flat'](),_0x58c8ec=new WorkbookRecoverHistoryPermission(_0x35eff9)['id'];return this[_0x552b5b(0x1df)][_0x552b5b(0x179)]([_0x137dce,..._0x355c37,..._0x51baed,_0x58c8ec])[_0x552b5b(0x1f1)](_0x4d3be8=>!!_0x4d3be8[_0x552b5b(0x18b)]);}};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(_0x103d29=defaultPluginConfig,_0x1366fc,_0x3219dd){const _0x5c6813=_0x1ea0aa;super(),this['_config']=_0x103d29,this[_0x5c6813(0x194)]=_0x1366fc,this['_configService']=_0x3219dd;const {menu:_0x4f7413,..._0x468f41}=merge({},defaultPluginConfig,this[_0x5c6813(0x1ea)]);if(_0x4f7413)this[_0x5c6813(0x1a6)][_0x5c6813(0x1a8)](_0x5c6813(0x1f5),_0x4f7413,{'merge':!![]});this[_0x5c6813(0x1a6)][_0x5c6813(0x1a8)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x468f41);if(this[_0x5c6813(0x1ea)][_0x5c6813(0x200)])this['_configService'][_0x5c6813(0x1a8)](UNIVER_CONTAINER_ID_KEY$1,this[_0x5c6813(0x1ea)][_0x5c6813(0x200)]);}[_0x1ea0aa(0x16f)](){const _0x80169c=_0x1ea0aa;[[HistoryLoaderService,{'useClass':MobileHistoryLoaderService}],[MobileHistoryLoaderController]][_0x80169c(0x1d0)](_0x3b1a6d=>this[_0x80169c(0x194)][_0x80169c(0x209)](_0x3b1a6d));}[_0x1ea0aa(0x1a7)](){const _0x941be1=_0x1ea0aa;this[_0x941be1(0x194)][_0x941be1(0x1b1)](MobileHistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x1ba),UniverInstanceType[_0x1ea0aa(0x22f)]),_defineProperty(UniverEditHistoryLoaderMobilePlugin,'pluginName',_0x1ea0aa(0x192)),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x214),name),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x175),version),UniverEditHistoryLoaderMobilePlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderMobilePlugin);let HistoryLoaderController=class HistoryLoaderController extends RxDisposable{constructor(_0x4bc8a3,_0x2e7cce,_0x1687f9,_0x4b3857,_0x205710,_0x3c4de6,_0x518728,_0x549222,_0x100d77,_0x1336dd,_0x3374a1){const _0x3ac34f=_0x1ea0aa;super(),this[_0x3ac34f(0x205)]=_0x4bc8a3,this[_0x3ac34f(0x1c9)]=_0x2e7cce,this['_componentManager']=_0x1687f9,this[_0x3ac34f(0x207)]=_0x4b3857,this[_0x3ac34f(0x171)]=_0x205710,this[_0x3ac34f(0x197)]=_0x3c4de6,this[_0x3ac34f(0x1be)]=_0x518728,this[_0x3ac34f(0x21e)]=_0x549222,this[_0x3ac34f(0x1a0)]=_0x100d77,this[_0x3ac34f(0x19f)]=_0x1336dd,this[_0x3ac34f(0x183)]=_0x3374a1,_defineProperty(this,'_revertErrorTimer',null),this[_0x3ac34f(0x18d)]();}[_0x1ea0aa(0x18d)](){const _0x2e1319=_0x1ea0aa;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x2e1319(0x1d0)](_0x1db9df=>this[_0x2e1319(0x1f9)](toDisposable(this['_commandService']['registerCommand'](_0x1db9df)))),this[_0x2e1319(0x1f9)](this[_0x2e1319(0x17d)]['register'](_0x2e1319(0x20c),HistoryIcon)),this['_menuManagerService'][_0x2e1319(0x17c)](menuSchema),this[_0x2e1319(0x1f9)](this[_0x2e1319(0x205)][_0x2e1319(0x230)](async(_0x5d2a5b,_0x525a1e)=>{const _0x5ab07f=_0x2e1319;if(_0x5d2a5b['id']===RevertRevisionMutation['id']){const {unitId:_0x5cddce}=_0x5d2a5b['params'];this[_0x5ab07f(0x197)]['show']({'content':this[_0x5ab07f(0x171)]['t'](_0x5ab07f(0x1f7)),'type':MessageType[_0x5ab07f(0x222)],'duration':0x1388});const _0x242670=this[_0x5ab07f(0x1be)]['getCollabEntity'](_0x5cddce);if(!(_0x525a1e===null||_0x525a1e===void 0x0?void 0x0:_0x525a1e[_0x5ab07f(0x217)]))this[_0x5ab07f(0x1b7)](_0x242670,async()=>{const _0x16d898=_0x5ab07f,_0x20f172=this[_0x16d898(0x19f)][_0x16d898(0x229)](UniverInstanceType[_0x16d898(0x1fd)]),_0x58db71=_0x20f172===null||_0x20f172===void 0x0?void 0x0:_0x20f172[_0x16d898(0x225)]();if(!_0x58db71)return![];this[_0x16d898(0x19f)]['disposeUnit'](_0x5cddce);const _0x11c143=await this[_0x16d898(0x1a0)][_0x16d898(0x196)](_0x5cddce,UniverInstanceType['UNIVER_SHEET']);if(_0x11c143&&_0x11c143 instanceof Workbook)return await this['_setupSubUnitSync'](_0x11c143,_0x58db71[_0x16d898(0x198)]()),!![];return![];});else this[_0x5ab07f(0x1b7)](_0x242670,async()=>{const _0x1a9d91=_0x5ab07f;return setTimeout(()=>window['location'][_0x1a9d91(0x191)]()),!![];},!![]);}}));}['_handleRevertAcknowledgement'](_0x286f33,_0xbf41ee,_0x38f27e=![]){const _0x4ff292=_0x1ea0aa,_0x3308cd=combineLatest([_0x286f33[_0x4ff292(0x1dd)][_0x4ff292(0x16d)],_0x286f33[_0x4ff292(0x18e)]])[_0x4ff292(0x228)](async([_0x13971f,_0x32022c])=>{const _0x471303=_0x4ff292;if(_0x13971f[_0x471303(0x1ed)]===CollaborationEvent[_0x471303(0x19d)]&&(_0x32022c===null||_0x32022c===void 0x0?void 0x0:_0x32022c[_0x471303(0x1bb)])===CollaborationStatus[_0x471303(0x1a5)]){if(_0x13971f[_0x471303(0x1b2)][_0x471303(0x1bf)][_0x471303(0x1ee)](_0x519675=>_0x519675['id']===RevertRevisionMutation['id'])){if(await _0xbf41ee()){var _0x6a4b17;this[_0x471303(0x207)][_0x471303(0x1aa)](),_0x3308cd['unsubscribe'](),this[_0x471303(0x204)]&&clearTimeout(this[_0x471303(0x204)]),await((_0x6a4b17=this[_0x471303(0x21e)])===null||_0x6a4b17===void 0x0?void 0x0:_0x6a4b17[_0x471303(0x202)]());}}}});if(_0x38f27e)this[_0x4ff292(0x204)]=setTimeout(()=>{const _0x5d2018=_0x4ff292;_0x3308cd[_0x5d2018(0x17a)](),this[_0x5d2018(0x197)][_0x5d2018(0x21b)]({'content':this[_0x5d2018(0x171)]['t'](_0x5d2018(0x18f)),'type':MessageType['Error'],'duration':0xbb8});},0x1388);}async[_0x1ea0aa(0x1cd)](_0x38c0b8,_0x4dba3f){const _0xc7f611=_0x1ea0aa;await this[_0xc7f611(0x1db)](_0x38c0b8,_0x4dba3f),_0x38c0b8['activeSheet$'][_0xc7f611(0x1b5)](takeUntil(this[_0xc7f611(0x208)]))[_0xc7f611(0x228)](_0x37c5b0=>{if(_0x37c5b0)this['_updateURLWithCurrentState'](_0x37c5b0);}),this['_urlService'][_0xc7f611(0x201)][_0xc7f611(0x1b5)](takeUntil(this[_0xc7f611(0x208)]))[_0xc7f611(0x228)](()=>this[_0xc7f611(0x1db)](_0x38c0b8,_0x4dba3f));}[_0x1ea0aa(0x18c)](_0x4bcb8f,_0x3e03fe=![]){const _0x354adb=_0x1ea0aa,_0x1c2327=this[_0x354adb(0x183)]['getParam'](_0x354adb(0x1d7));if(_0x4bcb8f[_0x354adb(0x198)]()!==_0x1c2327)this[_0x354adb(0x183)][_0x354adb(0x215)](_0x354adb(0x1d7),_0x4bcb8f['getSheetId'](),_0x3e03fe);}async['_updateSubUnitFromURLParams'](_0x513eee,_0x43dc4e){const _0x56e242=_0x1ea0aa;var _0x5a59d8;if(!_0x43dc4e||!_0x513eee['getSheetBySheetId'](_0x43dc4e)){const _0x520ef7=_0x513eee['getUnhiddenWorksheets']()[0x0],_0x65a305=_0x513eee[_0x56e242(0x1a9)](_0x520ef7);if(!_0x65a305)return;this[_0x56e242(0x18c)](_0x65a305,!![]),await this[_0x56e242(0x205)][_0x56e242(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x513eee[_0x56e242(0x1f6)](),'subUnitId':_0x520ef7});return;}if(((_0x5a59d8=_0x513eee[_0x56e242(0x225)]())===null||_0x5a59d8===void 0x0?void 0x0:_0x5a59d8[_0x56e242(0x198)]())===_0x43dc4e)return;await this[_0x56e242(0x205)][_0x56e242(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x513eee[_0x56e242(0x1f6)](),'subUnitId':_0x43dc4e});}};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(_0x17dba0=defaultPluginConfig,_0x525750,_0x4af3ef){const _0x1ea9b1=_0x1ea0aa;super(),this[_0x1ea9b1(0x1ea)]=_0x17dba0,this[_0x1ea9b1(0x194)]=_0x525750,this['_configService']=_0x4af3ef;const {menu:_0x47d346,..._0x470866}=merge({},defaultPluginConfig,this[_0x1ea9b1(0x1ea)]);if(_0x47d346)this[_0x1ea9b1(0x1a6)][_0x1ea9b1(0x1a8)](_0x1ea9b1(0x1f5),_0x47d346,{'merge':!![]});this['_configService']['setConfig'](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x470866);if(this[_0x1ea9b1(0x1ea)][_0x1ea9b1(0x200)])this[_0x1ea9b1(0x1a6)][_0x1ea9b1(0x1a8)](UNIVER_CONTAINER_ID_KEY,this[_0x1ea9b1(0x1ea)][_0x1ea9b1(0x200)]);}['onStarting'](){const _0x15ef16=_0x1ea0aa;[[HistoryLoaderService],[HistoryLoaderController]][_0x15ef16(0x1d0)](_0x154583=>this[_0x15ef16(0x194)][_0x15ef16(0x209)](_0x154583));}[_0x1ea0aa(0x1a7)](){const _0x3bf4fd=_0x1ea0aa;this['_injector'][_0x3bf4fd(0x1b1)](HistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderPlugin,'type',UniverInstanceType[_0x1ea0aa(0x22f)]),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x1b4),_0x1ea0aa(0x1d1)),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x214),name),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x175),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 _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};
|
|
1
|
+
const _0x1ea0aa=_0x4708;(function(_0x17bbac,_0x320fbe){const _0x1d8f0d=_0x4708,_0x240972=_0x17bbac();while(!![]){try{const _0x4adec0=parseInt(_0x1d8f0d(0x1fe))/0x1*(-parseInt(_0x1d8f0d(0x1ab))/0x2)+-parseInt(_0x1d8f0d(0x172))/0x3*(-parseInt(_0x1d8f0d(0x1eb))/0x4)+-parseInt(_0x1d8f0d(0x1d5))/0x5*(parseInt(_0x1d8f0d(0x1fb))/0x6)+parseInt(_0x1d8f0d(0x1a3))/0x7*(-parseInt(_0x1d8f0d(0x1e2))/0x8)+parseInt(_0x1d8f0d(0x186))/0x9+-parseInt(_0x1d8f0d(0x193))/0xa+parseInt(_0x1d8f0d(0x1ff))/0xb;if(_0x4adec0===_0x320fbe)break;else _0x240972['push'](_0x240972['shift']());}catch(_0x2883df){_0x240972['push'](_0x240972['shift']());}}}(_0x14cb,0x24566));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';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';function _0x4708(_0xde87eb,_0x3cdea1){_0xde87eb=_0xde87eb-0x16d;const _0x14cbaf=_0x14cb();let _0x470820=_0x14cbaf[_0xde87eb];return _0x470820;}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='edit-history-loader.config',configSymbol=Symbol(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x109ef8){'@babel/helpers - typeof';const _0x55b099=_0x4708;return _typeof=_0x55b099(0x1f2)==typeof Symbol&&_0x55b099(0x1cb)==typeof Symbol[_0x55b099(0x1e0)]?function(_0x5a0e95){return typeof _0x5a0e95;}:function(_0x226571){const _0x507747=_0x55b099;return _0x226571&&'function'==typeof Symbol&&_0x226571[_0x507747(0x1e8)]===Symbol&&_0x226571!==Symbol['prototype']?_0x507747(0x1cb):typeof _0x226571;},_typeof(_0x109ef8);}function toPrimitive(_0x5dfed0,_0x21b6e8){const _0x433fde=_0x4708;if(_0x433fde(0x195)!=_typeof(_0x5dfed0)||!_0x5dfed0)return _0x5dfed0;var _0x14afc3=_0x5dfed0[Symbol[_0x433fde(0x1d3)]];if(void 0x0!==_0x14afc3){var _0x3c12fa=_0x14afc3[_0x433fde(0x1d2)](_0x5dfed0,_0x21b6e8||_0x433fde(0x1cc));if('object'!=_typeof(_0x3c12fa))return _0x3c12fa;throw new TypeError(_0x433fde(0x1a1));}return(_0x433fde(0x216)===_0x21b6e8?String:Number)(_0x5dfed0);}function toPropertyKey(_0x40fd3a){const _0x44298c=_0x4708;var _0x6e6a5d=toPrimitive(_0x40fd3a,_0x44298c(0x216));return _0x44298c(0x1cb)==_typeof(_0x6e6a5d)?_0x6e6a5d:_0x6e6a5d+'';}function _defineProperty(_0x354e7b,_0x2e26e5,_0x3ea75b){const _0x649c4e=_0x4708;return(_0x2e26e5=toPropertyKey(_0x2e26e5))in _0x354e7b?Object[_0x649c4e(0x176)](_0x354e7b,_0x2e26e5,{'value':_0x3ea75b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x354e7b[_0x2e26e5]=_0x3ea75b,_0x354e7b;}function __decorateParam(_0x10fb6d,_0x30892b){return function(_0x308f53,_0x2d1c10){_0x30892b(_0x308f53,_0x2d1c10,_0x10fb6d);};}function __decorate(_0x24a819,_0x131aef,_0x2d010e,_0x236a62){const _0x5defbf=_0x4708;var _0x2a1fe6=arguments[_0x5defbf(0x20f)],_0xed24ad=_0x2a1fe6<0x3?_0x131aef:_0x236a62===null?_0x236a62=Object['getOwnPropertyDescriptor'](_0x131aef,_0x2d010e):_0x236a62,_0x149a8f;if(typeof Reflect==='object'&&typeof Reflect[_0x5defbf(0x19e)]===_0x5defbf(0x1f2))_0xed24ad=Reflect[_0x5defbf(0x19e)](_0x24a819,_0x131aef,_0x2d010e,_0x236a62);else{for(var _0x583d71=_0x24a819['length']-0x1;_0x583d71>=0x0;_0x583d71--)if(_0x149a8f=_0x24a819[_0x583d71])_0xed24ad=(_0x2a1fe6<0x3?_0x149a8f(_0xed24ad):_0x2a1fe6>0x3?_0x149a8f(_0x131aef,_0x2d010e,_0xed24ad):_0x149a8f(_0x131aef,_0x2d010e))||_0xed24ad;}return _0x2a1fe6>0x3&&_0xed24ad&&Object[_0x5defbf(0x176)](_0x131aef,_0x2d010e,_0xed24ad),_0xed24ad;}const DEFAULT_UNIVER_CONTAINER_ID$1=_0x1ea0aa(0x1de),UNIVER_CONTAINER_ID_KEY=_0x1ea0aa(0x1c6),UNIVER_HISTORY_CONTAINER_ID='univer-history-container';let HistoryLoaderService=class HistoryLoaderService extends Disposable{constructor(_0x2c958f,_0x3cfb4d,_0x5e0262,_0x47c679,_0x266b68,_0xea6073,_0x431045,_0x565d40,_0x52ff44,_0x163071){const _0x3e2556=_0x1ea0aa;super(),this[_0x3e2556(0x171)]=_0x2c958f,this['_univerInstanceService']=_0x3cfb4d,this[_0x3e2556(0x1a6)]=_0x5e0262,this[_0x3e2556(0x205)]=_0x47c679,this[_0x3e2556(0x197)]=_0x266b68,this[_0x3e2556(0x1df)]=_0xea6073,this['_selectionProtectionRuleModel']=_0x431045,this[_0x3e2556(0x1c5)]=_0x565d40,this[_0x3e2556(0x1c8)]=_0x52ff44,this[_0x3e2556(0x1fc)]=_0x163071,_defineProperty(this,_0x3e2556(0x212),new BehaviorSubject(null)),_defineProperty(this,_0x3e2556(0x1e9),this[_0x3e2556(0x212)][_0x3e2556(0x220)]()),_defineProperty(this,'_disposableCollection',new DisposableCollection()),_defineProperty(this,_0x3e2556(0x184),new Map()),_defineProperty(this,_0x3e2556(0x1ca),null),this[_0x3e2556(0x18d)]();}get[_0x1ea0aa(0x190)](){const _0x2d79f8=_0x1ea0aa;return this[_0x2d79f8(0x212)]['value'];}['_init'](){const _0x3e49ab=_0x1ea0aa;this['_initContainer'](),this[_0x3e49ab(0x22e)]();}[_0x1ea0aa(0x1ad)](){const _0xd33ffd=_0x1ea0aa;var _0x435297;const _0x3f622b=(_0x435297=this[_0xd33ffd(0x1a6)][_0xd33ffd(0x22c)](_0xd33ffd(0x1c6)))!==null&&_0x435297!==void 0x0?_0x435297:DEFAULT_UNIVER_CONTAINER_ID$1,_0x4305b4=document[_0xd33ffd(0x226)](_0x3f622b);if(!_0x4305b4)return;const _0x4ac13b=document[_0xd33ffd(0x224)](_0xd33ffd(0x1ac));_0x4ac13b['id']=UNIVER_HISTORY_CONTAINER_ID,_0x4ac13b[_0xd33ffd(0x1c2)]['uComp']=_0xd33ffd(0x185),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x223)]=_0xd33ffd(0x227),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x1e7)]='0',_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x173)]='0',_0x4ac13b[_0xd33ffd(0x1bd)]['width']=_0xd33ffd(0x1dc),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x213)]=_0xd33ffd(0x1dc),_0x4ac13b['style'][_0xd33ffd(0x20b)]='49',_0x4ac13b[_0xd33ffd(0x1bd)]['display']=_0xd33ffd(0x187),_0x4305b4[_0xd33ffd(0x1fa)](_0x4ac13b);}[_0x1ea0aa(0x22e)](){const _0x36806e=_0x1ea0aa;[[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]]['forEach'](([_0x13ad2c,_0x344784])=>this[_0x36806e(0x1bc)](_0x13ad2c,_0x344784));}[_0x1ea0aa(0x1e5)](){const _0x2143f8=_0x1ea0aa;super['dispose'](),this[_0x2143f8(0x1aa)](),this[_0x2143f8(0x184)]['clear']();}[_0x1ea0aa(0x1bc)](_0x36e25e,_0x5bec81,_0x11b6f2){const _0x527580=_0x1ea0aa;if(this['_pluginMap']['has'](_0x36e25e[_0x527580(0x1b4)])&&!_0x11b6f2)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x36e25e[_0x527580(0x1b4)]+_0x527580(0x17e));this['_pluginMap'][_0x527580(0x1f4)](_0x36e25e[_0x527580(0x1b4)],[_0x36e25e,_0x5bec81]);}[_0x1ea0aa(0x1e6)](){const _0x2a8f30=_0x1ea0aa;return Array['from'](this[_0x2a8f30(0x184)][_0x2a8f30(0x22d)]());}[_0x1ea0aa(0x1b0)](_0x3f332d,_0x1c2148){const _0x5e9630=_0x1ea0aa,_0x53b317=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x53b317)return;_0x53b317[_0x5e9630(0x1bd)][_0x5e9630(0x19a)]=_0x5e9630(0x170),this[_0x5e9630(0x1c3)](_0x3f332d,UNIVER_HISTORY_CONTAINER_ID,_0x1c2148);}[_0x1ea0aa(0x1aa)](){const _0x39e4ad=_0x1ea0aa;var _0x2498f9;this[_0x39e4ad(0x181)][_0x39e4ad(0x1e5)](),(_0x2498f9=this['historyUniver'])===null||_0x2498f9===void 0x0||_0x2498f9[_0x39e4ad(0x1e5)](),this[_0x39e4ad(0x212)][_0x39e4ad(0x182)](null);const _0x503d1e=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x503d1e)return;_0x503d1e[_0x39e4ad(0x1bd)][_0x39e4ad(0x19a)]=_0x39e4ad(0x187),this[_0x39e4ad(0x1ca)]&&(this[_0x39e4ad(0x1ca)]['terminate'](),this[_0x39e4ad(0x1ca)]=null);}[_0x1ea0aa(0x1c3)](_0x17d9e1,_0x1a649a,_0x5b33cb){const _0x2f3243=_0x1ea0aa;var _0x24b8c3,_0x3b1f24,_0x467d80,_0x15d2d5,_0x4c5909;if(this[_0x2f3243(0x190)])return;const _0x480aab=new Univer({'locales':{[this[_0x2f3243(0x171)]['getCurrentLocale']()]:this['_localeService'][_0x2f3243(0x1e4)]()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x13f741=_0x480aab['__getInjector']();this[_0x2f3243(0x1f9)](this['_themeService'][_0x2f3243(0x16e)][_0x2f3243(0x228)](_0x1be2bb=>{const _0x1cd330=_0x2f3243;_0x13f741[_0x1cd330(0x1b1)](ThemeService)['setDarkMode'](_0x1be2bb);})),this[_0x2f3243(0x1f9)](this['_themeService'][_0x2f3243(0x210)]['subscribe'](_0x1e788d=>{_0x13f741['get'](ThemeService)['setTheme'](_0x1e788d);})),_0x13f741['get'](LocaleService)['setLocale'](this['_localeService'][_0x2f3243(0x1ef)]()),_0x13f741[_0x2f3243(0x1b1)](IConfigService)[_0x2f3243(0x1a8)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x5692e7=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](LS_CONFIG_KEY);if(_0x5692e7)_0x480aab['registerPlugin'](UniverLicensePlugin,{'license':_0x5692e7['ls']});const _0x1715f1=(_0x24b8c3=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x24b8c3===void 0x0?void 0x0:_0x24b8c3[_0x2f3243(0x1c0)],_0x3f5081=!!_0x1715f1;_0x3f5081&&(this[_0x2f3243(0x1ca)]=_0x1715f1 instanceof Worker?_0x1715f1:null,_0x480aab[_0x2f3243(0x1bc)](UniverRPCMainThreadPlugin,{'workerURL':_0x1715f1}));this[_0x2f3243(0x184)]['forEach'](([_0x3f3c23,_0xfd64b7])=>{const _0x1b157d=_0x2f3243;_0x480aab[_0x1b157d(0x1bc)](_0x3f3c23,_0xfd64b7);}),_0x480aab[_0x2f3243(0x1bc)](UniverEditHistoryViewerPlugin,{'historyListServerUrl':(_0x3b1f24=this['_configService'][_0x2f3243(0x22c)]('edit-history-loader.config'))===null||_0x3b1f24===void 0x0?void 0x0:_0x3b1f24['historyListServerUrl'],'historyPanelComponentKey':(_0x467d80=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x467d80===void 0x0?void 0x0:_0x467d80[_0x2f3243(0x188)],'historyPanelHidden':(_0x15d2d5=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x15d2d5===void 0x0?void 0x0:_0x15d2d5[_0x2f3243(0x1ec)],'historyAIassistantEnabled':(_0x4c5909=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x4c5909===void 0x0?void 0x0:_0x4c5909[_0x2f3243(0x1cf)]}),_0x13f741[_0x2f3243(0x20a)](_0x5e78da=>{const _0x5bbbd6=_0x2f3243;this[_0x5bbbd6(0x218)](_0x5e78da,_0x17d9e1);}),this[_0x2f3243(0x212)][_0x2f3243(0x182)](_0x480aab);const _0x2a4cb1=_0x13f741[_0x2f3243(0x1b1)](HistoryManagerService),_0x53a491=this[_0x2f3243(0x21a)](_0x17d9e1),_0x318566=()=>{const _0x53d5cf=_0x2f3243;if(_0x5b33cb)_0x2a4cb1[_0x53d5cf(0x1a2)](_0x17d9e1,_0x1a649a,_0x53a491,_0x5b33cb);else _0x2a4cb1['triggerLoadVersions'](_0x17d9e1,_0x1a649a,_0x53a491);};this['_messageService']['show']({'content':this[_0x2f3243(0x171)]['t']('editHistory.info.initializing'),'type':MessageType[_0x2f3243(0x222)]});if(_0x3f5081)try{_0x13f741[_0x2f3243(0x1b1)](IRemoteInstanceService)[_0x2f3243(0x1ce)]()[_0x2f3243(0x1f3)](()=>{_0x318566();});}catch{_0x318566();}else _0x318566();}[_0x1ea0aa(0x218)](_0x2b9ab0,_0x29184e){const _0x439a29=_0x1ea0aa,_0x4d9904=_0x2b9ab0[_0x439a29(0x1b1)](HistoryManagerService);this['_disposableCollection'][_0x439a29(0x209)](_0x4d9904[_0x439a29(0x1d8)]['subscribe'](_0x1e9e0f=>{const _0xe46c4b=_0x439a29;switch(_0x1e9e0f){case HistoryModeStatus[_0xe46c4b(0x1b6)]:this['_dialogService'][_0xe46c4b(0x1f8)](),this['_sidebarService']['close']();break;case HistoryModeStatus['Exited']:this[_0xe46c4b(0x205)][_0xe46c4b(0x1b9)](ExitEditHistoryOperation['id']),this[_0xe46c4b(0x1aa)]();break;case HistoryModeStatus[_0xe46c4b(0x21c)]:this[_0xe46c4b(0x1aa)](),this[_0xe46c4b(0x197)][_0xe46c4b(0x21b)]({'content':this['_localeService']['t'](_0xe46c4b(0x21d)),'type':MessageType['Error'],'duration':0xbb8});break;default:break;}})),this[_0x439a29(0x181)][_0x439a29(0x209)](_0x4d9904[_0x439a29(0x219)]['subscribe'](async _0x27a1fb=>{const _0x312d62=_0x439a29;if(_0x27a1fb)this['_commandService'][_0x312d62(0x1b9)](RevertRevisionMutation['id'],{'unitId':_0x29184e,'revision':_0x27a1fb});}));}[_0x1ea0aa(0x21a)](_0x2687b8){const _0x16156e=_0x1ea0aa,_0x5877a3=this['_univerInstanceService'][_0x16156e(0x1a4)](_0x2687b8)[_0x16156e(0x17b)]()[_0x16156e(0x1d9)](_0x36518e=>_0x36518e['getSheetId']()),_0x2b17af=new WorkbookEditablePermission(_0x2687b8)['id'],_0x65b621=_0x5877a3[_0x16156e(0x1d9)](_0x1d37f3=>new WorksheetEditPermission(_0x2687b8,_0x1d37f3)['id']),_0x4a3b13=_0x5877a3['map'](_0x52b0b5=>this[_0x16156e(0x1b8)][_0x16156e(0x221)](_0x2687b8,_0x52b0b5)['map'](_0x33e18b=>new RangeProtectionPermissionEditPoint(_0x2687b8,_0x52b0b5,_0x33e18b['permissionId'])['id']))[_0x16156e(0x1b3)](),_0x31df2c=new WorkbookRecoverHistoryPermission(_0x2687b8)['id'];return this[_0x16156e(0x1df)][_0x16156e(0x179)]([_0x2b17af,..._0x65b621,..._0x4a3b13,_0x31df2c])['every'](_0x3b57bd=>!!_0x3b57bd[_0x16156e(0x18b)]);}};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);function _0x14cb(){const _0x1299f2=['_commandService','@univerjs-pro/edit-history-loader','_historyManagerService','dispose$','add','invoke','zIndex','HistoryIcon','BUTTON','editHistory.info.initializing','length','currentTheme$','univer.operation.toggle-edit-history','_historyUniver$','height','packageName','setParam','string','fromCollab','_initListener','revertRevision$','_checkCanRevert','show','Error','editHistory.panel.listFetchError','_localCacheService','getUnhiddenWorksheets','asObservable','getSubunitRuleList','Loading','position','createElement','getActiveSheet','getElementById','absolute','subscribe','getCurrentUnitOfType','clear','historyListServerUrl','getConfig','values','_initPlugins','UNIVER_UNKNOWN','onCommandExecuted','event$','darkMode$','onStarting','block','_localeService','129qZsexH','left','__getInjector','version','defineProperty','Exited','has','composePermission','unsubscribe','getSheets','mergeMenu','_componentManager','\x20has\x20been\x20registered.','width','location','_disposableCollection','next','_urlService','_pluginMap','history-container','178794PxXqlP','none','historyPanelComponentKey','editHistory.panel.title','edit-history-loader.config','value','_updateURLWithCurrentState','_init','state$','editHistory.panel.revertFailed','historyUniver','reload','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','2393010cjXIwX','_injector','object','loadUnit','_messageService','getSheetId','univer-history-container-mobile','display','OPERATION','setLocale','CHANGESET_ACK','decorate','_univerInstanceService','_dataLoaderService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','triggerCustomVersions','35OmXtxn','getUnit','SYNCED','_configService','onSteady','setConfig','getSheetBySheetId','unMountHistoryContent','2nUpXFR','div','_initContainer','0.21.1','[MobileHistoryLoaderService]:\x20Plugin\x20','mountHistoryContent','get','data','flat','pluginName','pipe','Entered','_handleRevertAcknowledgement','_selectionProtectionRuleModel','executeCommand','type','status','registerPlugin','style','_collaborationController','mutations','workerURL','getCollabEntity','dataset','_initUniver','triggerLoadVersions','_dialogService','UNIVER_CONTAINER_ID','uComp','_sidebarService','_menuManagerService','_internalWebWorker','symbol','default','_setupSubUnitSync','whenReady','historyAIassistantEnabled','forEach','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','call','toPrimitive','permissionId','4045tOlWuZ','registerCommand','subunit','status$','map','register','_updateSubUnitFromURLParams','100%','session','univer-container','_permissionService','iterator','setDarkMode','5552UoKEFK','setTheme','getLocales','dispose','getAllPlugins','top','constructor','historyUniver$','_config','23148ZHViSZ','historyPanelHidden','eventID','some','getCurrentLocale','from','every','function','then','set','menu','getUnitId','editHistory.panel.reverting','closeAll','disposeWithMe','appendChild','804eRHTrR','_themeService','UNIVER_SHEET','31366LbwVNQ','2889414QfVEir','univerContainerId','urlChange$','exhaustSavingTask','params','_revertErrorTimer'];_0x14cb=function(){return _0x1299f2;};return _0x14cb();}const ToggleEditHistoryOperation={'id':_0x1ea0aa(0x211),'type':CommandType[_0x1ea0aa(0x19b)],'handler':_0x52fcfc=>{const _0x1029de=_0x1ea0aa,_0x2a8636=_0x52fcfc['get'](HistoryLoaderService),{unitId:_0x59ea1d}=getSheetCommandTarget(_0x52fcfc[_0x1029de(0x1b1)](IUniverInstanceService))||{};if(!_0x59ea1d)return![];return _0x2a8636[_0x1029de(0x1b0)](_0x59ea1d),!![];}},ExitEditHistoryOperation={'id':'univer.operation.exit-edit-history','type':CommandType[_0x1ea0aa(0x19b)],'handler':()=>!![]};var name=_0x1ea0aa(0x206),version=_0x1ea0aa(0x1ae);function ToggleEditHistoryMenuFactory(_0x2dc09e){const _0x8ff1bb=_0x1ea0aa;return{'id':ToggleEditHistoryOperation['id'],'type':MenuItemType[_0x8ff1bb(0x20d)],'icon':'HistoryIcon','tooltip':_0x8ff1bb(0x189),'hidden$':getMenuHiddenObservable(_0x2dc09e,UniverInstanceType['UNIVER_SHEET']),'disabled$':getCurrentRangeDisable$(_0x2dc09e,{'workbookTypes':[WorkbookViewHistoryPermission],'worksheetTypes':[],'rangeTypes':[]})};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[ToggleEditHistoryOperation['id']]:{'order':0.2,'menuItemFactory':ToggleEditHistoryMenuFactory}}};let MobileHistoryLoaderController=class MobileHistoryLoaderController extends RxDisposable{constructor(_0x42793c,_0x1315e4,_0x14d44a,_0x9cd027,_0x1b8713,_0x4128a0,_0x4085c7,_0x298ac4,_0x389ec7,_0x4e2c3b,_0x1155ab){const _0x266500=_0x1ea0aa;super(),this[_0x266500(0x205)]=_0x42793c,this[_0x266500(0x1c9)]=_0x1315e4,this['_componentManager']=_0x14d44a,this[_0x266500(0x207)]=_0x9cd027,this[_0x266500(0x171)]=_0x1b8713,this[_0x266500(0x197)]=_0x4128a0,this[_0x266500(0x1be)]=_0x4085c7,this['_localCacheService']=_0x298ac4,this['_dataLoaderService']=_0x389ec7,this['_univerInstanceService']=_0x4e2c3b,this[_0x266500(0x183)]=_0x1155ab,_defineProperty(this,_0x266500(0x204),null),this[_0x266500(0x18d)]();}[_0x1ea0aa(0x18d)](){const _0x865a62=_0x1ea0aa;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x865a62(0x1d0)](_0x164e01=>this['disposeWithMe'](toDisposable(this[_0x865a62(0x205)][_0x865a62(0x1d6)](_0x164e01)))),this[_0x865a62(0x1f9)](this['_componentManager'][_0x865a62(0x1da)](_0x865a62(0x20c),HistoryIcon)),this[_0x865a62(0x1c9)][_0x865a62(0x17c)](menuSchema),this['disposeWithMe'](this[_0x865a62(0x205)][_0x865a62(0x230)](async(_0x28016b,_0xff8526)=>{const _0x4ed778=_0x865a62;if(_0x28016b['id']===RevertRevisionMutation['id']){const {unitId:_0x3e1ae5}=_0x28016b[_0x4ed778(0x203)];this[_0x4ed778(0x197)]['show']({'content':this[_0x4ed778(0x171)]['t'](_0x4ed778(0x1f7)),'type':MessageType['Loading'],'duration':0x1388});const _0x4b4838=this[_0x4ed778(0x1be)][_0x4ed778(0x1c1)](_0x3e1ae5);if(!(_0xff8526===null||_0xff8526===void 0x0?void 0x0:_0xff8526['fromCollab']))this[_0x4ed778(0x1b7)](_0x4b4838,async()=>{const _0x13fed3=_0x4ed778,_0x7c2aab=this['_univerInstanceService'][_0x13fed3(0x229)](UniverInstanceType['UNIVER_SHEET']),_0x31f8ba=_0x7c2aab===null||_0x7c2aab===void 0x0?void 0x0:_0x7c2aab['getActiveSheet']();if(!_0x31f8ba)return![];this[_0x13fed3(0x19f)]['disposeUnit'](_0x3e1ae5);const _0x138ef7=await this[_0x13fed3(0x1a0)][_0x13fed3(0x196)](_0x3e1ae5,UniverInstanceType[_0x13fed3(0x1fd)]);if(_0x138ef7&&_0x138ef7 instanceof Workbook)return await this[_0x13fed3(0x1cd)](_0x138ef7,_0x31f8ba[_0x13fed3(0x198)]()),!![];return![];});else this[_0x4ed778(0x1b7)](_0x4b4838,async()=>{const _0x3fc13a=_0x4ed778;return setTimeout(()=>window[_0x3fc13a(0x180)]['reload']()),!![];},!![]);}}));}['_handleRevertAcknowledgement'](_0x5622ad,_0x49963b,_0x3247a3=![]){const _0x1c29aa=_0x1ea0aa,_0x11641e=combineLatest([_0x5622ad[_0x1c29aa(0x1dd)][_0x1c29aa(0x16d)],_0x5622ad[_0x1c29aa(0x18e)]])[_0x1c29aa(0x228)](async([_0x42cc5c,_0x52c039])=>{const _0x337c14=_0x1c29aa;if(_0x42cc5c['eventID']===CollaborationEvent[_0x337c14(0x19d)]&&(_0x52c039===null||_0x52c039===void 0x0?void 0x0:_0x52c039[_0x337c14(0x1bb)])===CollaborationStatus[_0x337c14(0x1a5)]){if(_0x42cc5c[_0x337c14(0x1b2)][_0x337c14(0x1bf)][_0x337c14(0x1ee)](_0x160aef=>_0x160aef['id']===RevertRevisionMutation['id'])){if(await _0x49963b()){var _0x4fe65d;this[_0x337c14(0x207)][_0x337c14(0x1aa)](),_0x11641e['unsubscribe'](),this[_0x337c14(0x204)]&&clearTimeout(this[_0x337c14(0x204)]),await((_0x4fe65d=this['_localCacheService'])===null||_0x4fe65d===void 0x0?void 0x0:_0x4fe65d[_0x337c14(0x202)]()),this[_0x337c14(0x197)]['removeAll']();}}}});if(_0x3247a3)this['_revertErrorTimer']=setTimeout(()=>{const _0x24275f=_0x1c29aa;_0x11641e[_0x24275f(0x17a)](),this[_0x24275f(0x197)][_0x24275f(0x21b)]({'content':this[_0x24275f(0x171)]['t'](_0x24275f(0x18f)),'type':MessageType[_0x24275f(0x21c)],'duration':0xbb8});},0x1388);}async[_0x1ea0aa(0x1cd)](_0x6f12f2,_0x206405){const _0x3481e6=_0x1ea0aa;await this['_updateSubUnitFromURLParams'](_0x6f12f2,_0x206405),_0x6f12f2['activeSheet$'][_0x3481e6(0x1b5)](takeUntil(this[_0x3481e6(0x208)]))['subscribe'](_0x580d1e=>{const _0x44bae3=_0x3481e6;if(_0x580d1e)this[_0x44bae3(0x18c)](_0x580d1e);}),this['_urlService']['urlChange$'][_0x3481e6(0x1b5)](takeUntil(this[_0x3481e6(0x208)]))[_0x3481e6(0x228)](()=>this['_updateSubUnitFromURLParams'](_0x6f12f2,_0x206405));}['_updateURLWithCurrentState'](_0x4ccfcf,_0xcbdd43=![]){const _0x1a798d=_0x1ea0aa,_0x1c509b=this[_0x1a798d(0x183)]['getParam'](_0x1a798d(0x1d7));if(_0x4ccfcf['getSheetId']()!==_0x1c509b)this[_0x1a798d(0x183)][_0x1a798d(0x215)](_0x1a798d(0x1d7),_0x4ccfcf[_0x1a798d(0x198)](),_0xcbdd43);}async[_0x1ea0aa(0x1db)](_0x280e84,_0x39eec3){const _0x121de3=_0x1ea0aa;var _0x5a0a34;if(!_0x39eec3||!_0x280e84[_0x121de3(0x1a9)](_0x39eec3)){const _0x3bb48b=_0x280e84[_0x121de3(0x21f)]()[0x0],_0x3cc645=_0x280e84[_0x121de3(0x1a9)](_0x3bb48b);if(!_0x3cc645)return;this[_0x121de3(0x18c)](_0x3cc645,!![]),await this[_0x121de3(0x205)][_0x121de3(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x280e84[_0x121de3(0x1f6)](),'subUnitId':_0x3bb48b});return;}if(((_0x5a0a34=_0x280e84[_0x121de3(0x225)]())===null||_0x5a0a34===void 0x0?void 0x0:_0x5a0a34[_0x121de3(0x198)]())===_0x39eec3)return;await this['_commandService'][_0x121de3(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x280e84[_0x121de3(0x1f6)](),'subUnitId':_0x39eec3});}};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=_0x1ea0aa(0x1de),UNIVER_CONTAINER_ID_KEY$1='UNIVER_CONTAINER_ID',UNIVER_HISTORY_CONTAINER_ID$1=_0x1ea0aa(0x199);let MobileHistoryLoaderService=class MobileHistoryLoaderService extends Disposable{constructor(_0xd5a76a,_0x92a052,_0x33b82c,_0x4db9d2,_0x5e9d5d,_0x561b7b,_0x5a859d,_0x4a3e96,_0x502b0b,_0x3abec1){const _0x3f2923=_0x1ea0aa;super(),this[_0x3f2923(0x171)]=_0xd5a76a,this[_0x3f2923(0x19f)]=_0x92a052,this['_configService']=_0x33b82c,this[_0x3f2923(0x205)]=_0x4db9d2,this[_0x3f2923(0x197)]=_0x5e9d5d,this['_permissionService']=_0x561b7b,this[_0x3f2923(0x1b8)]=_0x5a859d,this[_0x3f2923(0x1c5)]=_0x4a3e96,this['_sidebarService']=_0x502b0b,this['_themeService']=_0x3abec1,_defineProperty(this,_0x3f2923(0x212),new BehaviorSubject(null)),_defineProperty(this,_0x3f2923(0x1e9),this[_0x3f2923(0x212)][_0x3f2923(0x220)]()),_defineProperty(this,_0x3f2923(0x181),new DisposableCollection()),_defineProperty(this,'_pluginMap',new Map()),_defineProperty(this,_0x3f2923(0x1ca),null),this[_0x3f2923(0x18d)]();}get[_0x1ea0aa(0x190)](){const _0x523328=_0x1ea0aa;return this[_0x523328(0x212)][_0x523328(0x18b)];}[_0x1ea0aa(0x18d)](){const _0x1c5560=_0x1ea0aa;this[_0x1c5560(0x1ad)](),this[_0x1c5560(0x22e)]();}[_0x1ea0aa(0x1ad)](){const _0x459b08=_0x1ea0aa;var _0x4058e1;const _0x2d2fd5=(_0x4058e1=this[_0x459b08(0x1a6)][_0x459b08(0x22c)](_0x459b08(0x1c6)))!==null&&_0x4058e1!==void 0x0?_0x4058e1:DEFAULT_UNIVER_CONTAINER_ID,_0x25ad4e=document['getElementById'](_0x2d2fd5);if(!_0x25ad4e)return;const _0x17bf05=document[_0x459b08(0x224)]('div');_0x17bf05['id']=UNIVER_HISTORY_CONTAINER_ID$1,_0x17bf05[_0x459b08(0x1c2)][_0x459b08(0x1c7)]=_0x459b08(0x185),_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x223)]='absolute',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x1e7)]='0',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x173)]='0',_0x17bf05['style'][_0x459b08(0x17f)]='100%',_0x17bf05['style'][_0x459b08(0x213)]=_0x459b08(0x1dc),_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x20b)]='49',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x19a)]='none',_0x25ad4e['appendChild'](_0x17bf05);}[_0x1ea0aa(0x22e)](){const _0xa87ead=_0x1ea0aa;[[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]][_0xa87ead(0x1d0)](([_0xfce5b5,_0x69ddb4])=>this[_0xa87ead(0x1bc)](_0xfce5b5,_0x69ddb4));}[_0x1ea0aa(0x1e5)](){const _0x191ff6=_0x1ea0aa;super['dispose'](),this[_0x191ff6(0x1aa)](),this[_0x191ff6(0x184)][_0x191ff6(0x22a)]();}[_0x1ea0aa(0x1bc)](_0x51bc2f,_0x1c1885,_0x116940){const _0x3740a4=_0x1ea0aa;if(this[_0x3740a4(0x184)][_0x3740a4(0x178)](_0x51bc2f[_0x3740a4(0x1b4)])&&!_0x116940)throw new Error(_0x3740a4(0x1af)+_0x51bc2f[_0x3740a4(0x1b4)]+'\x20has\x20been\x20registered.');this[_0x3740a4(0x184)][_0x3740a4(0x1f4)](_0x51bc2f['pluginName'],[_0x51bc2f,_0x1c1885]);}[_0x1ea0aa(0x1e6)](){const _0x57d63b=_0x1ea0aa;return Array[_0x57d63b(0x1f0)](this['_pluginMap'][_0x57d63b(0x22d)]());}['mountHistoryContent'](_0x56737e,_0xf4af5b){const _0xbf2694=_0x1ea0aa,_0x5738e5=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x5738e5)return;_0x5738e5['style'][_0xbf2694(0x19a)]='block',this[_0xbf2694(0x1c3)](_0x56737e,UNIVER_HISTORY_CONTAINER_ID$1,_0xf4af5b);}[_0x1ea0aa(0x1aa)](){const _0x47f153=_0x1ea0aa;var _0x222bdf;this['_disposableCollection'][_0x47f153(0x1e5)](),(_0x222bdf=this[_0x47f153(0x190)])===null||_0x222bdf===void 0x0||_0x222bdf[_0x47f153(0x1e5)](),this[_0x47f153(0x212)][_0x47f153(0x182)](null);const _0xc487aa=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0xc487aa)return;_0xc487aa[_0x47f153(0x1bd)]['display']=_0x47f153(0x187),this[_0x47f153(0x1ca)]&&(this[_0x47f153(0x1ca)]['terminate'](),this[_0x47f153(0x1ca)]=null);}[_0x1ea0aa(0x1c3)](_0x31c54e,_0x363ef2,_0x54d2e6){const _0x4ddc59=_0x1ea0aa;var _0x29c995,_0x10fb45,_0xc60341,_0x36b877;if(this[_0x4ddc59(0x190)])return;const _0x4ff71e=new Univer({'locales':{[this[_0x4ddc59(0x171)][_0x4ddc59(0x1ef)]()]:this[_0x4ddc59(0x171)][_0x4ddc59(0x1e4)]()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x1efbcd=_0x4ff71e[_0x4ddc59(0x174)]();this[_0x4ddc59(0x1f9)](this[_0x4ddc59(0x1fc)][_0x4ddc59(0x16e)][_0x4ddc59(0x228)](_0x28644b=>{const _0x4c211e=_0x4ddc59;_0x1efbcd['get'](ThemeService)[_0x4c211e(0x1e1)](_0x28644b);})),this['disposeWithMe'](this[_0x4ddc59(0x1fc)]['currentTheme$'][_0x4ddc59(0x228)](_0x1a4bde=>{const _0x78ab02=_0x4ddc59;_0x1efbcd['get'](ThemeService)[_0x78ab02(0x1e3)](_0x1a4bde);})),_0x1efbcd[_0x4ddc59(0x1b1)](LocaleService)[_0x4ddc59(0x19c)](this['_localeService'][_0x4ddc59(0x1ef)]()),_0x1efbcd[_0x4ddc59(0x1b1)](IConfigService)[_0x4ddc59(0x1a8)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this['_configService'][_0x4ddc59(0x22c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x5ce8c1=this[_0x4ddc59(0x1a6)]['getConfig'](LS_CONFIG_KEY);if(_0x5ce8c1)_0x4ff71e['registerPlugin'](UniverLicensePlugin,{'license':_0x5ce8c1['ls']});const _0x278038=(_0x29c995=this[_0x4ddc59(0x1a6)][_0x4ddc59(0x22c)](_0x4ddc59(0x18a)))===null||_0x29c995===void 0x0?void 0x0:_0x29c995[_0x4ddc59(0x1c0)],_0xa99c6a=!!_0x278038;_0xa99c6a&&(this[_0x4ddc59(0x1ca)]=_0x278038 instanceof Worker?_0x278038:null,_0x4ff71e[_0x4ddc59(0x1bc)](UniverRPCMainThreadPlugin,{'workerURL':_0x278038}));this[_0x4ddc59(0x184)]['forEach'](([_0x8a57a0,_0x5681d8])=>{const _0x3cce88=_0x4ddc59;_0x4ff71e[_0x3cce88(0x1bc)](_0x8a57a0,_0x5681d8);}),_0x4ff71e[_0x4ddc59(0x1bc)](UniverEditHistoryViewerMobilePlugin,{'historyListServerUrl':(_0x10fb45=this[_0x4ddc59(0x1a6)]['getConfig']('edit-history-loader.config'))===null||_0x10fb45===void 0x0?void 0x0:_0x10fb45[_0x4ddc59(0x22b)],'historyPanelComponentKey':(_0xc60341=this['_configService'][_0x4ddc59(0x22c)](_0x4ddc59(0x18a)))===null||_0xc60341===void 0x0?void 0x0:_0xc60341[_0x4ddc59(0x188)],'historyPanelHidden':(_0x36b877=this[_0x4ddc59(0x1a6)]['getConfig'](_0x4ddc59(0x18a)))===null||_0x36b877===void 0x0?void 0x0:_0x36b877[_0x4ddc59(0x1ec)]}),_0x1efbcd[_0x4ddc59(0x20a)](_0x5b4922=>{const _0x47f337=_0x4ddc59;this[_0x47f337(0x218)](_0x5b4922,_0x31c54e);}),this[_0x4ddc59(0x212)][_0x4ddc59(0x182)](_0x4ff71e);const _0x1c8031=_0x1efbcd[_0x4ddc59(0x1b1)](HistoryManagerService),_0x432354=this['_checkCanRevert'](_0x31c54e),_0x28a18e=()=>{const _0x263acb=_0x4ddc59;if(_0x54d2e6)_0x1c8031[_0x263acb(0x1a2)](_0x31c54e,_0x363ef2,_0x432354,_0x54d2e6);else _0x1c8031[_0x263acb(0x1c4)](_0x31c54e,_0x363ef2,_0x432354);};this[_0x4ddc59(0x197)][_0x4ddc59(0x21b)]({'content':this['_localeService']['t'](_0x4ddc59(0x20e)),'type':MessageType['Loading']});if(_0xa99c6a)try{_0x1efbcd['get'](IRemoteInstanceService)[_0x4ddc59(0x1ce)]()[_0x4ddc59(0x1f3)](()=>{_0x28a18e();});}catch{_0x28a18e();}else _0x28a18e();}['_initListener'](_0x749f5d,_0x1fb3a3){const _0x394505=_0x1ea0aa,_0x2633fc=_0x749f5d[_0x394505(0x1b1)](HistoryManagerService);this[_0x394505(0x181)]['add'](_0x2633fc['status$']['subscribe'](_0x4ea203=>{const _0x3c433d=_0x394505;switch(_0x4ea203){case HistoryModeStatus['Entered']:this[_0x3c433d(0x1c5)][_0x3c433d(0x1f8)](),this['_sidebarService']['close']();break;case HistoryModeStatus[_0x3c433d(0x177)]:this[_0x3c433d(0x205)][_0x3c433d(0x1b9)](ExitEditHistoryOperation['id']),this[_0x3c433d(0x1aa)]();break;case HistoryModeStatus[_0x3c433d(0x21c)]:this['unMountHistoryContent'](),this['_messageService']['show']({'content':this[_0x3c433d(0x171)]['t'](_0x3c433d(0x21d)),'type':MessageType[_0x3c433d(0x21c)],'duration':0xbb8});break;default:break;}})),this[_0x394505(0x181)][_0x394505(0x209)](_0x2633fc['revertRevision$']['subscribe'](async _0x4b400b=>{const _0x397e5b=_0x394505;if(_0x4b400b)this[_0x397e5b(0x205)][_0x397e5b(0x1b9)](RevertRevisionMutation['id'],{'unitId':_0x1fb3a3,'revision':_0x4b400b});}));}[_0x1ea0aa(0x21a)](_0x35eff9){const _0x552b5b=_0x1ea0aa,_0x264bc2=this[_0x552b5b(0x19f)]['getUnit'](_0x35eff9)[_0x552b5b(0x17b)]()[_0x552b5b(0x1d9)](_0x22c3e2=>_0x22c3e2[_0x552b5b(0x198)]()),_0x137dce=new WorkbookEditablePermission(_0x35eff9)['id'],_0x355c37=_0x264bc2['map'](_0x15f07e=>new WorksheetEditPermission(_0x35eff9,_0x15f07e)['id']),_0x51baed=_0x264bc2[_0x552b5b(0x1d9)](_0xcf0cb4=>this[_0x552b5b(0x1b8)][_0x552b5b(0x221)](_0x35eff9,_0xcf0cb4)['map'](_0x165054=>new RangeProtectionPermissionEditPoint(_0x35eff9,_0xcf0cb4,_0x165054[_0x552b5b(0x1d4)])['id']))['flat'](),_0x58c8ec=new WorkbookRecoverHistoryPermission(_0x35eff9)['id'];return this[_0x552b5b(0x1df)][_0x552b5b(0x179)]([_0x137dce,..._0x355c37,..._0x51baed,_0x58c8ec])[_0x552b5b(0x1f1)](_0x4d3be8=>!!_0x4d3be8[_0x552b5b(0x18b)]);}};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(_0x103d29=defaultPluginConfig,_0x1366fc,_0x3219dd){const _0x5c6813=_0x1ea0aa;super(),this['_config']=_0x103d29,this[_0x5c6813(0x194)]=_0x1366fc,this['_configService']=_0x3219dd;const {menu:_0x4f7413,..._0x468f41}=merge({},defaultPluginConfig,this[_0x5c6813(0x1ea)]);if(_0x4f7413)this[_0x5c6813(0x1a6)][_0x5c6813(0x1a8)](_0x5c6813(0x1f5),_0x4f7413,{'merge':!![]});this[_0x5c6813(0x1a6)][_0x5c6813(0x1a8)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x468f41);if(this[_0x5c6813(0x1ea)][_0x5c6813(0x200)])this['_configService'][_0x5c6813(0x1a8)](UNIVER_CONTAINER_ID_KEY$1,this[_0x5c6813(0x1ea)][_0x5c6813(0x200)]);}[_0x1ea0aa(0x16f)](){const _0x80169c=_0x1ea0aa;[[HistoryLoaderService,{'useClass':MobileHistoryLoaderService}],[MobileHistoryLoaderController]][_0x80169c(0x1d0)](_0x3b1a6d=>this[_0x80169c(0x194)][_0x80169c(0x209)](_0x3b1a6d));}[_0x1ea0aa(0x1a7)](){const _0x941be1=_0x1ea0aa;this[_0x941be1(0x194)][_0x941be1(0x1b1)](MobileHistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x1ba),UniverInstanceType[_0x1ea0aa(0x22f)]),_defineProperty(UniverEditHistoryLoaderMobilePlugin,'pluginName',_0x1ea0aa(0x192)),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x214),name),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x175),version),UniverEditHistoryLoaderMobilePlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderMobilePlugin);let HistoryLoaderController=class HistoryLoaderController extends RxDisposable{constructor(_0x4bc8a3,_0x2e7cce,_0x1687f9,_0x4b3857,_0x205710,_0x3c4de6,_0x518728,_0x549222,_0x100d77,_0x1336dd,_0x3374a1){const _0x3ac34f=_0x1ea0aa;super(),this[_0x3ac34f(0x205)]=_0x4bc8a3,this[_0x3ac34f(0x1c9)]=_0x2e7cce,this['_componentManager']=_0x1687f9,this[_0x3ac34f(0x207)]=_0x4b3857,this[_0x3ac34f(0x171)]=_0x205710,this[_0x3ac34f(0x197)]=_0x3c4de6,this[_0x3ac34f(0x1be)]=_0x518728,this[_0x3ac34f(0x21e)]=_0x549222,this[_0x3ac34f(0x1a0)]=_0x100d77,this[_0x3ac34f(0x19f)]=_0x1336dd,this[_0x3ac34f(0x183)]=_0x3374a1,_defineProperty(this,'_revertErrorTimer',null),this[_0x3ac34f(0x18d)]();}[_0x1ea0aa(0x18d)](){const _0x2e1319=_0x1ea0aa;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x2e1319(0x1d0)](_0x1db9df=>this[_0x2e1319(0x1f9)](toDisposable(this['_commandService']['registerCommand'](_0x1db9df)))),this[_0x2e1319(0x1f9)](this[_0x2e1319(0x17d)]['register'](_0x2e1319(0x20c),HistoryIcon)),this['_menuManagerService'][_0x2e1319(0x17c)](menuSchema),this[_0x2e1319(0x1f9)](this[_0x2e1319(0x205)][_0x2e1319(0x230)](async(_0x5d2a5b,_0x525a1e)=>{const _0x5ab07f=_0x2e1319;if(_0x5d2a5b['id']===RevertRevisionMutation['id']){const {unitId:_0x5cddce}=_0x5d2a5b['params'];this[_0x5ab07f(0x197)]['show']({'content':this[_0x5ab07f(0x171)]['t'](_0x5ab07f(0x1f7)),'type':MessageType[_0x5ab07f(0x222)],'duration':0x1388});const _0x242670=this[_0x5ab07f(0x1be)]['getCollabEntity'](_0x5cddce);if(!(_0x525a1e===null||_0x525a1e===void 0x0?void 0x0:_0x525a1e[_0x5ab07f(0x217)]))this[_0x5ab07f(0x1b7)](_0x242670,async()=>{const _0x16d898=_0x5ab07f,_0x20f172=this[_0x16d898(0x19f)][_0x16d898(0x229)](UniverInstanceType[_0x16d898(0x1fd)]),_0x58db71=_0x20f172===null||_0x20f172===void 0x0?void 0x0:_0x20f172[_0x16d898(0x225)]();if(!_0x58db71)return![];this[_0x16d898(0x19f)]['disposeUnit'](_0x5cddce);const _0x11c143=await this[_0x16d898(0x1a0)][_0x16d898(0x196)](_0x5cddce,UniverInstanceType['UNIVER_SHEET']);if(_0x11c143&&_0x11c143 instanceof Workbook)return await this['_setupSubUnitSync'](_0x11c143,_0x58db71[_0x16d898(0x198)]()),!![];return![];});else this[_0x5ab07f(0x1b7)](_0x242670,async()=>{const _0x1a9d91=_0x5ab07f;return setTimeout(()=>window['location'][_0x1a9d91(0x191)]()),!![];},!![]);}}));}['_handleRevertAcknowledgement'](_0x286f33,_0xbf41ee,_0x38f27e=![]){const _0x4ff292=_0x1ea0aa,_0x3308cd=combineLatest([_0x286f33[_0x4ff292(0x1dd)][_0x4ff292(0x16d)],_0x286f33[_0x4ff292(0x18e)]])[_0x4ff292(0x228)](async([_0x13971f,_0x32022c])=>{const _0x471303=_0x4ff292;if(_0x13971f[_0x471303(0x1ed)]===CollaborationEvent[_0x471303(0x19d)]&&(_0x32022c===null||_0x32022c===void 0x0?void 0x0:_0x32022c[_0x471303(0x1bb)])===CollaborationStatus[_0x471303(0x1a5)]){if(_0x13971f[_0x471303(0x1b2)][_0x471303(0x1bf)][_0x471303(0x1ee)](_0x519675=>_0x519675['id']===RevertRevisionMutation['id'])){if(await _0xbf41ee()){var _0x6a4b17;this[_0x471303(0x207)][_0x471303(0x1aa)](),_0x3308cd['unsubscribe'](),this[_0x471303(0x204)]&&clearTimeout(this[_0x471303(0x204)]),await((_0x6a4b17=this[_0x471303(0x21e)])===null||_0x6a4b17===void 0x0?void 0x0:_0x6a4b17[_0x471303(0x202)]());}}}});if(_0x38f27e)this[_0x4ff292(0x204)]=setTimeout(()=>{const _0x5d2018=_0x4ff292;_0x3308cd[_0x5d2018(0x17a)](),this[_0x5d2018(0x197)][_0x5d2018(0x21b)]({'content':this[_0x5d2018(0x171)]['t'](_0x5d2018(0x18f)),'type':MessageType['Error'],'duration':0xbb8});},0x1388);}async[_0x1ea0aa(0x1cd)](_0x38c0b8,_0x4dba3f){const _0xc7f611=_0x1ea0aa;await this[_0xc7f611(0x1db)](_0x38c0b8,_0x4dba3f),_0x38c0b8['activeSheet$'][_0xc7f611(0x1b5)](takeUntil(this[_0xc7f611(0x208)]))[_0xc7f611(0x228)](_0x37c5b0=>{if(_0x37c5b0)this['_updateURLWithCurrentState'](_0x37c5b0);}),this['_urlService'][_0xc7f611(0x201)][_0xc7f611(0x1b5)](takeUntil(this[_0xc7f611(0x208)]))[_0xc7f611(0x228)](()=>this[_0xc7f611(0x1db)](_0x38c0b8,_0x4dba3f));}[_0x1ea0aa(0x18c)](_0x4bcb8f,_0x3e03fe=![]){const _0x354adb=_0x1ea0aa,_0x1c2327=this[_0x354adb(0x183)]['getParam'](_0x354adb(0x1d7));if(_0x4bcb8f[_0x354adb(0x198)]()!==_0x1c2327)this[_0x354adb(0x183)][_0x354adb(0x215)](_0x354adb(0x1d7),_0x4bcb8f['getSheetId'](),_0x3e03fe);}async['_updateSubUnitFromURLParams'](_0x513eee,_0x43dc4e){const _0x56e242=_0x1ea0aa;var _0x5a59d8;if(!_0x43dc4e||!_0x513eee['getSheetBySheetId'](_0x43dc4e)){const _0x520ef7=_0x513eee['getUnhiddenWorksheets']()[0x0],_0x65a305=_0x513eee[_0x56e242(0x1a9)](_0x520ef7);if(!_0x65a305)return;this[_0x56e242(0x18c)](_0x65a305,!![]),await this[_0x56e242(0x205)][_0x56e242(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x513eee[_0x56e242(0x1f6)](),'subUnitId':_0x520ef7});return;}if(((_0x5a59d8=_0x513eee[_0x56e242(0x225)]())===null||_0x5a59d8===void 0x0?void 0x0:_0x5a59d8[_0x56e242(0x198)]())===_0x43dc4e)return;await this[_0x56e242(0x205)][_0x56e242(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x513eee[_0x56e242(0x1f6)](),'subUnitId':_0x43dc4e});}};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(_0x17dba0=defaultPluginConfig,_0x525750,_0x4af3ef){const _0x1ea9b1=_0x1ea0aa;super(),this[_0x1ea9b1(0x1ea)]=_0x17dba0,this[_0x1ea9b1(0x194)]=_0x525750,this['_configService']=_0x4af3ef;const {menu:_0x47d346,..._0x470866}=merge({},defaultPluginConfig,this[_0x1ea9b1(0x1ea)]);if(_0x47d346)this[_0x1ea9b1(0x1a6)][_0x1ea9b1(0x1a8)](_0x1ea9b1(0x1f5),_0x47d346,{'merge':!![]});this['_configService']['setConfig'](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x470866);if(this[_0x1ea9b1(0x1ea)][_0x1ea9b1(0x200)])this[_0x1ea9b1(0x1a6)][_0x1ea9b1(0x1a8)](UNIVER_CONTAINER_ID_KEY,this[_0x1ea9b1(0x1ea)][_0x1ea9b1(0x200)]);}['onStarting'](){const _0x15ef16=_0x1ea0aa;[[HistoryLoaderService],[HistoryLoaderController]][_0x15ef16(0x1d0)](_0x154583=>this[_0x15ef16(0x194)][_0x15ef16(0x209)](_0x154583));}[_0x1ea0aa(0x1a7)](){const _0x3bf4fd=_0x1ea0aa;this['_injector'][_0x3bf4fd(0x1b1)](HistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderPlugin,'type',UniverInstanceType[_0x1ea0aa(0x22f)]),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x1b4),_0x1ea0aa(0x1d1)),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x214),name),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x175),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 _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;}});}));
|
|
1
|
+
function _0x3886(_0x1ba131,_0x16fa79){_0x1ba131=_0x1ba131-0x67;const _0x16d36f=_0x16d3();let _0x388655=_0x16d36f[_0x1ba131];return _0x388655;}function _0x16d3(){const _0x30af7b=['UniverSheetsTable','UniverSheetsDrawingUIPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','darkMode$','location','MenuItemType','UniverProEditHistoryViewer','_config','_sidebarService','getUnitId','getUnit','map','LS_CONFIG_KEY','_collaborationController','eventID','setConfig','subscribe','getCurrentLocale','_initContainer','ComponentManager','_localeService','Plugin','getCurrentUnitOfType','ThemeService','merge','whenReady','call','UniverSheetsDrawingPlugin','UniverSheetsChartPlugin','string','UniverSheetsTablePlugin','state$','editHistory.panel.reverting','_menuManagerService','848912fyVtlD','position','registerCommand','width','_messageService','UniverMobileUIPlugin','_updateSubUnitFromURLParams','add','every','mountHistoryContent','UniverSheetsDataValidationUi','defs','UniverEngineRender','AuthzIoHttpService','UniverSheetsUIPlugin','BehaviorSubject','http://www.w3.org/2000/svg','UniverCollaborationPlugin','UniverSheetSparklinePlugin','onSteady','UniverRpc','children','_injector','historyPanelHidden','MobileHistoryLoaderService','WorkbookEditablePermission','Inject','IMessageService','IAuthzIoService','appendChild','UniverSheetsShapePlugin','current','random','editHistory.panel.title','style','mask','UniverSheetsDataValidationPlugin','_pluginMap','has','7312CiawCq','pipe','display','entries','IURLService','absolute','UniverSheetsPlugin','fromCollab','ISidebarService','use','Exited','history-icon','14049flReXS','decorate','set','UniverSheetsShapeUIPlugin','trim','executeCommand','UniverSheetsHyperLinkPlugin','UniverDrawingPlugin','Injector','mergeMenu','zIndex','prototype','UniverSheetsFilter','getSubunitRuleList','removeAll','IPermissionService','historyListServerUrl','_historyManagerService','event$','UniverSheetsDrawingUi','UniverSheetsNumfmtPlugin','getMenuHiddenObservable','object','CollaborationEvent','disposeWithMe','revertRevision$','UniverSheetsNumfmt','UniverUi','status','path','subunit','uComp','CHANGESET_ACK','currentColor','UniverSheetsHyperLink','UniverLicensePlugin','_handleRevertAcknowledgement','attrs','_localCacheService','UniverSheetsHyperLinkUi','UniverSheetsFormula','React','idSuffix','toStringTag','UniverDataValidationPlugin','get','SYNCED','IUniverInstanceService','getSheetBySheetId','editHistory.info.initializing','HistoryIcon','getCollabEntity','__getInjector','Disposable','historyUniver$','DisposableCollection','xlink:href','function','UniverSheetsConditionalFormattingPlugin','UniverDocsUi','params','[HistoryLoaderService]:\x20Plugin\x20','UniverSheetsFormulaUIPlugin','UniverProSheetsShape','then','UniverDrawing','UniverSheetsFilterPlugin','UniverDesign','url(#history-icon_clip0_907_281)','top','invoke','block','assign','getConfig','_disposableCollection','terminate','UniverSheetsUi','7UTHxOy','ICommandService','UniverSheetSparklineUIPlugin','_revertErrorTimer','symbol','toDisposable','height','_univerInstanceService','DataLoaderService','register','ILocalCacheService','replace','univer.operation.exit-edit-history','unMountHistoryContent','ToggleEditHistoryOperation','UniverProSheetsShapeUi','triggerCustomVersions','fill','triggerLoadVersions','univer.operation.toggle-edit-history','permissionId','OTHERS','forEach','tag','SetWorksheetActivateCommand','toPrimitive','UNIVER_UNKNOWN','UniverProSheetsPivot','UniverProCollaboration','registerPlugin','clear','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','getSheetCommandTarget','Entered','RxDisposable','UniverSheetsFormulaPlugin','getParam','UniverSheetsFilterUIPlugin','toString','none','UniverEngineFormula','UniverSheetsChartUIPlugin','menu','historyPanelComponentKey','dispose$','MessageType','HistoryModeStatus','history-icon_clip0_907_281','UniverRPCMainThreadPlugin','default','UNIVER_HISTORY_CONTAINER_ID','next','DependentOn','UniverEditHistoryLoaderMobilePlugin','white','show','UniverIcon','UniverDrawingUi','UniverSheetsFilterUi','UniverSheetsDataValidationMobileUIPlugin','univerContainerId','RevertRevisionMutation','UniverSheets','historyUniver','values','edit-history-loader.config','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_historyUniver$','disposeUnit','UniverProSheetsChart','UniverUIPlugin','_initListener','WorkbookRecoverHistoryPermission','_componentManager','UniverNetworkPlugin','UniverSheetsHyperLinkUIPlugin','takeUntil','UniverProEditHistoryLoader','CollaborationStatus','Workbook','exhaustSavingTask','WorksheetEditPermission','IDialogService','_updateURLWithCurrentState','_urlService','Loading','status$','UniverSheetsConditionalFormattingUi','value','univer-history-container-mobile','RangeProtectionRuleModel','getElementById','BUTTON','univerjs-icon\x20univerjs-icon-','iterator','forwardRef','dataset','UniverRenderEnginePlugin','activeSheet$','currentTheme$','\x20has\x20been\x20registered.','data','1591624yIPsWw','3505230NtNyUN','_configService','pluginName','getLocales','urlChange$','reload','univer-history-container','createElement','dispose','@univerjs-pro/edit-history-loader','UniverEditHistoryViewerPlugin','UNIVER_CONTAINER_ID_KEY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','combineLatest','split','session','CollaborationController','UniverInstanceType','unsubscribe','CommandType','UniverCore','RibbonStartGroup','setDarkMode','WorkbookViewHistoryPermission','_setupSubUnitSync','UNIVER_SHEET','length','getAllPlugins','setTheme','composePermission','colorChannel1','LocaleService','_init','mutations','IMenuManagerService','HistoryLoaderService','537016VLYzcx','editHistory.panel.revertFailed','UniverProSheetsChartUi','_initUniver','displayName','onStarting','getSheets','_selectionProtectionRuleModel','_themeService','0\x200\x2016\x2016','IImageIoService','amd','UniverSheetsPivotTablePlugin','UNIVER_CONTAINER_ID','UniverProCollaborationClientUi','asObservable','setParam','491139TGUval','UniverFormulaEnginePlugin','IConfigService','UniverDocsPlugin','getCurrentRangeDisable$','left','flat','_internalWebWorker','close','packageName','from','100%','_initPlugins','Univer','_permissionService','onCommandExecuted','2598504CCAaKe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getActiveSheet','UniverDocsUIPlugin','Error','editHistory.panel.listFetchError','UniverProCollaborationClient','RangeProtectionPermissionEditPoint','_dialogService','UniverSheetsConditionalFormattingUIPlugin','_dataLoaderService','rxjs','constructor','defineProperty','history-container','_commandService','M0\x200H16V16H0z','setLocale','HistoryManagerService','loadUnit','closeAll','getUnhiddenWorksheets','some','UniverProLicense','_checkCanRevert','getSheetId'];_0x16d3=function(){return _0x30af7b;};return _0x16d3();}(function(_0x49a6e5,_0xcb0f57){const _0x46d8fc=_0x3886,_0xa08c4=_0x49a6e5();while(!![]){try{const _0x11b37b=-parseInt(_0x46d8fc(0xfa))/0x1+-parseInt(_0x46d8fc(0x157))/0x2+parseInt(_0x46d8fc(0x10b))/0x3+-parseInt(_0x46d8fc(0xd5))/0x4+parseInt(_0x46d8fc(0xd6))/0x5+parseInt(_0x46d8fc(0x11b))/0x6*(-parseInt(_0x46d8fc(0x6f))/0x7)+parseInt(_0x46d8fc(0x17e))/0x8*(parseInt(_0x46d8fc(0x18a))/0x9);if(_0x11b37b===_0xcb0f57)break;else _0xa08c4['push'](_0xa08c4['shift']());}catch(_0x4fe867){_0xa08c4['push'](_0xa08c4['shift']());}}}(_0x16d3,0x79d6b),function(_0x3ae8d8,_0x2858ca){const _0xf9704c=_0x3886;typeof exports==_0xf9704c(0x1a0)&&typeof module<'u'?_0x2858ca(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[_0xf9704c(0x105)]?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'[_0xf9704c(0xe4)]('.'),_0x2858ca):(_0x3ae8d8=typeof globalThis<'u'?globalThis:_0x3ae8d8||self,_0x2858ca(_0x3ae8d8[_0xf9704c(0xbc)]={},_0x3ae8d8[_0xf9704c(0xea)],_0x3ae8d8[_0xf9704c(0xad)],_0x3ae8d8[_0xf9704c(0x8b)],_0x3ae8d8[_0xf9704c(0x121)],_0x3ae8d8[_0xf9704c(0x13b)],_0x3ae8d8[_0xf9704c(0x132)],_0x3ae8d8[_0xf9704c(0xb4)],_0x3ae8d8[_0xf9704c(0xfc)],_0x3ae8d8[_0xf9704c(0x8a)],_0x3ae8d8[_0xf9704c(0x1c9)],_0x3ae8d8[_0xf9704c(0x7e)],_0x3ae8d8['UniverProSheetsSparkline'],_0x3ae8d8['UniverProSheetsSparklineUi'],_0x3ae8d8['UniverDataValidation'],_0x3ae8d8[_0xf9704c(0x1cd)],_0x3ae8d8['UniverDocs'],_0x3ae8d8[_0xf9704c(0x1c5)],_0x3ae8d8[_0xf9704c(0x1cb)],_0x3ae8d8[_0xf9704c(0xa8)],_0x3ae8d8[_0xf9704c(0x97)],_0x3ae8d8[_0xf9704c(0x163)],_0x3ae8d8['UniverNetwork'],_0x3ae8d8[_0xf9704c(0x16b)],_0x3ae8d8['UniverSheetsConditionalFormatting'],_0x3ae8d8[_0xf9704c(0xc6)],_0x3ae8d8['UniverSheetsDataValidation'],_0x3ae8d8[_0xf9704c(0x161)],_0x3ae8d8['UniverSheetsDrawing'],_0x3ae8d8[_0xf9704c(0x19d)],_0x3ae8d8[_0xf9704c(0x196)],_0x3ae8d8[_0xf9704c(0xa9)],_0x3ae8d8[_0xf9704c(0x1b2)],_0x3ae8d8['UniverSheetsFormulaUi'],_0x3ae8d8[_0xf9704c(0x1ac)],_0x3ae8d8[_0xf9704c(0x1b1)],_0x3ae8d8[_0xf9704c(0x1a4)],_0x3ae8d8[_0xf9704c(0x135)],_0x3ae8d8[_0xf9704c(0x6e)],_0x3ae8d8[_0xf9704c(0x1a5)],_0x3ae8d8[_0xf9704c(0x126)],_0x3ae8d8[_0xf9704c(0x108)],_0x3ae8d8[_0xf9704c(0x1b3)]));}(this,function(_0xdb52b,_0x412010,_0x136342,_0x597de7,_0x110681,_0xad21ce,_0xa92606,_0x13a5b7,_0x14cbfe,_0x574451,_0x4dccbb,_0x283344,_0x342fba,_0x394d70,_0x4f122e,_0x153d7c,_0x3a8973,_0x575f91,_0x58aeae,_0x1959e3,_0x2a0b4b,_0x54884c,_0x3b1006,_0x283f0d,_0x137584,_0xd473da,_0x3d8376,_0x24998c,_0x5b45f0,_0x27a0cb,_0x8d1937,_0x189537,_0xa1db9b,_0x2596de,_0x2f751c,_0x9f6010,_0x5790d8,_0x317470,_0x1f610d,_0x284ec3,_0x121a50,_0x2fda48,_0x30721f){const _0x45b811=_0x3886;Object[_0x45b811(0x128)](_0xdb52b,Symbol[_0x45b811(0x1b5)],{'value':'Module'});let _0x149075=_0x45b811(0xb0);Symbol(_0x149075);let _0x5df63e={};function _0x4b67f4(_0x21535d){'@babel/helpers - typeof';const _0x5cd6f7=_0x45b811;return _0x4b67f4=typeof Symbol==_0x5cd6f7(0x1c3)&&typeof Symbol[_0x5cd6f7(0xcd)]==_0x5cd6f7(0x73)?function(_0x5c0898){return typeof _0x5c0898;}:function(_0x3713ec){const _0x52cabc=_0x5cd6f7;return _0x3713ec&&typeof Symbol==_0x52cabc(0x1c3)&&_0x3713ec[_0x52cabc(0x127)]===Symbol&&_0x3713ec!==Symbol[_0x52cabc(0x195)]?'symbol':typeof _0x3713ec;},_0x4b67f4(_0x21535d);}function _0x492c3e(_0x215fe5,_0x5cf206){const _0x5677f9=_0x45b811;if(_0x4b67f4(_0x215fe5)!='object'||!_0x215fe5)return _0x215fe5;var _0x176a94=_0x215fe5[Symbol[_0x5677f9(0x88)]];if(_0x176a94!==void 0x0){var _0x33a391=_0x176a94[_0x5677f9(0x14f)](_0x215fe5,_0x5cf206||_0x5677f9(0xa0));if(_0x4b67f4(_0x33a391)!=_0x5677f9(0x1a0))return _0x33a391;throw TypeError(_0x5677f9(0x11c));}return(_0x5cf206===_0x5677f9(0x152)?String:Number)(_0x215fe5);}function _0xf5ee05(_0x2c051a){const _0x22b997=_0x45b811;var _0x44c3df=_0x492c3e(_0x2c051a,_0x22b997(0x152));return _0x4b67f4(_0x44c3df)==_0x22b997(0x73)?_0x44c3df:_0x44c3df+'';}function _0x57c8f2(_0x37b7e8,_0x1e54c1,_0x31a2fe){const _0x30c9b0=_0x45b811;return(_0x1e54c1=_0xf5ee05(_0x1e54c1))in _0x37b7e8?Object[_0x30c9b0(0x128)](_0x37b7e8,_0x1e54c1,{'value':_0x31a2fe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37b7e8[_0x1e54c1]=_0x31a2fe,_0x37b7e8;}function _0x132994(_0x24e5e5,_0x574b5f){return function(_0x55c1e1,_0x34b710){_0x574b5f(_0x55c1e1,_0x34b710,_0x24e5e5);};}function _0x58019a(_0x29a858,_0x10baf1,_0x2b2022,_0x42cb17){const _0x494c83=_0x45b811;var _0x51ab5d=arguments[_0x494c83(0xf0)],_0x224ab0=_0x51ab5d<0x3?_0x10baf1:_0x42cb17===null?_0x42cb17=Object['getOwnPropertyDescriptor'](_0x10baf1,_0x2b2022):_0x42cb17,_0x5e5fb3;if(typeof Reflect==_0x494c83(0x1a0)&&typeof Reflect['decorate']=='function')_0x224ab0=Reflect[_0x494c83(0x18b)](_0x29a858,_0x10baf1,_0x2b2022,_0x42cb17);else{for(var _0x1dafc4=_0x29a858['length']-0x1;_0x1dafc4>=0x0;_0x1dafc4--)(_0x5e5fb3=_0x29a858[_0x1dafc4])&&(_0x224ab0=(_0x51ab5d<0x3?_0x5e5fb3(_0x224ab0):_0x51ab5d>0x3?_0x5e5fb3(_0x10baf1,_0x2b2022,_0x224ab0):_0x5e5fb3(_0x10baf1,_0x2b2022))||_0x224ab0);}return _0x51ab5d>0x3&&_0x224ab0&&Object[_0x494c83(0x128)](_0x10baf1,_0x2b2022,_0x224ab0),_0x224ab0;}let _0x25fbf7='UNIVER_CONTAINER_ID',_0x40de2d=_0x45b811(0xdc),_0x595023=class extends _0x412010[_0x45b811(0x1bf)]{constructor(_0x54b22a,_0x132623,_0x5a9e7f,_0x4bba21,_0x10a837,_0x153fbd,_0xd226e,_0xb851d4,_0x19f025,_0x1a1e4b){const _0x522dd5=_0x45b811;super(),this['_localeService']=_0x54b22a,this[_0x522dd5(0x76)]=_0x132623,this[_0x522dd5(0xd7)]=_0x5a9e7f,this[_0x522dd5(0x12a)]=_0x4bba21,this[_0x522dd5(0x15b)]=_0x10a837,this['_permissionService']=_0x153fbd,this['_selectionProtectionRuleModel']=_0xd226e,this[_0x522dd5(0x123)]=_0xb851d4,this[_0x522dd5(0x13d)]=_0x19f025,this[_0x522dd5(0x102)]=_0x1a1e4b,_0x57c8f2(this,_0x522dd5(0xb2),new _0x121a50[(_0x522dd5(0x166))](null)),_0x57c8f2(this,'historyUniver$',this[_0x522dd5(0xb2)]['asObservable']()),_0x57c8f2(this,_0x522dd5(0x6c),new _0x412010[(_0x522dd5(0x1c1))]()),_0x57c8f2(this,_0x522dd5(0x17c),new Map()),_0x57c8f2(this,_0x522dd5(0x112),null),this['_init']();}get[_0x45b811(0xae)](){return this['_historyUniver$']['value'];}['_init'](){const _0x17a16b=_0x45b811;this[_0x17a16b(0x147)](),this['_initPlugins']();}[_0x45b811(0x147)](){const _0x320b47=_0x45b811;var _0x1132e2;let _0x53b544=(_0x1132e2=this[_0x320b47(0xd7)][_0x320b47(0x6b)](_0x320b47(0x107)))==null?'univer-container':_0x1132e2,_0x9b891d=document[_0x320b47(0xca)](_0x53b544);if(!_0x9b891d)return;let _0x16c1a7=document[_0x320b47(0xdd)]('div');_0x16c1a7['id']=_0x40de2d,_0x16c1a7[_0x320b47(0xcf)][_0x320b47(0x1a9)]=_0x320b47(0x129),_0x16c1a7[_0x320b47(0x179)][_0x320b47(0x158)]=_0x320b47(0x183),_0x16c1a7[_0x320b47(0x179)][_0x320b47(0x67)]='0',_0x16c1a7['style'][_0x320b47(0x110)]='0',_0x16c1a7['style'][_0x320b47(0x15a)]='100%',_0x16c1a7[_0x320b47(0x179)][_0x320b47(0x75)]=_0x320b47(0x116),_0x16c1a7['style'][_0x320b47(0x194)]='49',_0x16c1a7[_0x320b47(0x179)][_0x320b47(0x180)]=_0x320b47(0x96),_0x9b891d[_0x320b47(0x174)](_0x16c1a7);}[_0x45b811(0x117)](){const _0x46b3f8=_0x45b811;[[_0x54884c['UniverRenderEnginePlugin']],[_0x284ec3[_0x46b3f8(0xb5)],{'container':_0x40de2d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x284ec3[_0x46b3f8(0xc1)],null]]}],[_0x3b1006[_0x46b3f8(0xb9)]],[_0x58aeae[_0x46b3f8(0x191)],{'override':[[_0x58aeae[_0x46b3f8(0x104)],null]]}],[_0x3a8973[_0x46b3f8(0x10e)],{'hasScroll':!0x1}],[_0x575f91[_0x46b3f8(0x11e)]],[_0x5790d8[_0x46b3f8(0x19e)]],[_0x136342[_0x46b3f8(0x184)],{'notExecuteFormula':!0x0}],[_0x1f610d[_0x46b3f8(0x165)]],[_0xa1db9b[_0x46b3f8(0x92)]],[_0x2596de[_0x46b3f8(0x1c8)]],[_0x597de7[_0x46b3f8(0x168)]],[_0x8d1937['UniverSheetsFilterPlugin']],[_0x189537[_0x46b3f8(0x94)]],[_0x137584[_0x46b3f8(0x1c4)]],[_0xd473da[_0x46b3f8(0x124)]],[_0x2f751c[_0x46b3f8(0x190)]],[_0x9f6010[_0x46b3f8(0xba)]],[_0x4f122e[_0x46b3f8(0x1b6)]],[_0x3d8376[_0x46b3f8(0x17b)]],[_0x24998c['UniverSheetsDataValidationUIPlugin']],[_0x2a0b4b[_0x46b3f8(0x10c)],{'notExecuteFormula':!0x0}],[_0x1959e3['UniverDrawingUIPlugin']],[_0x5b45f0['UniverSheetsDrawingPlugin']],[_0x27a0cb[_0x46b3f8(0x136)]],[_0x342fba[_0x46b3f8(0x169)]],[_0x394d70[_0x46b3f8(0x71)]],[_0x13a5b7[_0x46b3f8(0x151)]],[_0x14cbfe['UniverSheetsChartUIPlugin']],[_0x4dccbb[_0x46b3f8(0x175)]],[_0x283344[_0x46b3f8(0x18d)]],[_0x574451['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x317470['UniverSheetsTablePlugin']]][_0x46b3f8(0x85)](([_0x2e1aa0,_0xa1165f])=>this[_0x46b3f8(0x8c)](_0x2e1aa0,_0xa1165f));}[_0x45b811(0xde)](){const _0x15eef8=_0x45b811;super['dispose'](),this['unMountHistoryContent'](),this[_0x15eef8(0x17c)][_0x15eef8(0x8d)]();}[_0x45b811(0x8c)](_0xebb6e7,_0x5949ef,_0x537d64){const _0x2494bd=_0x45b811;if(this[_0x2494bd(0x17c)][_0x2494bd(0x17d)](_0xebb6e7[_0x2494bd(0xd8)])&&!_0x537d64)throw Error(_0x2494bd(0x1c7)+_0xebb6e7[_0x2494bd(0xd8)]+_0x2494bd(0xd3));this['_pluginMap'][_0x2494bd(0x18c)](_0xebb6e7['pluginName'],[_0xebb6e7,_0x5949ef]);}[_0x45b811(0xf1)](){const _0x4ccd14=_0x45b811;return Array[_0x4ccd14(0x115)](this[_0x4ccd14(0x17c)][_0x4ccd14(0xaf)]());}[_0x45b811(0x160)](_0x4a2fe9,_0x1f4552){const _0x5f0e18=_0x45b811;let _0x467bdb=document['getElementById'](_0x40de2d);_0x467bdb&&(_0x467bdb[_0x5f0e18(0x179)]['display']=_0x5f0e18(0x69),this[_0x5f0e18(0xfd)](_0x4a2fe9,_0x40de2d,_0x1f4552));}[_0x45b811(0x7c)](){const _0x12c9f8=_0x45b811;var _0x35ba36;this[_0x12c9f8(0x6c)][_0x12c9f8(0xde)](),(_0x35ba36=this[_0x12c9f8(0xae)])==null||_0x35ba36['dispose'](),this[_0x12c9f8(0xb2)][_0x12c9f8(0xa2)](null);let _0x4ffac3=document[_0x12c9f8(0xca)](_0x40de2d);_0x4ffac3&&(_0x4ffac3['style'][_0x12c9f8(0x180)]='none',this[_0x12c9f8(0x112)]&&(this['_internalWebWorker'][_0x12c9f8(0x6d)](),this[_0x12c9f8(0x112)]=null));}[_0x45b811(0xfd)](_0x465881,_0x331dc7,_0x3726b0){const _0x17ff3b=_0x45b811;var _0xf9d917,_0xb1b528,_0x45c19e,_0x33b106,_0x4989e5;if(this[_0x17ff3b(0xae)])return;let _0x17caf4=new _0x412010[(_0x17ff3b(0x118))]({'locales':{[this[_0x17ff3b(0x149)][_0x17ff3b(0x146)]()]:this['_localeService']['getLocales']()},'override':[[_0x412010[_0x17ff3b(0x173)],{'useClass':_0x110681[_0x17ff3b(0x164)]}]]}),_0x2117ff=_0x17caf4['__getInjector']();this[_0x17ff3b(0x1a2)](this['_themeService'][_0x17ff3b(0x138)][_0x17ff3b(0x145)](_0x28c99b=>{const _0x5ed642=_0x17ff3b;_0x2117ff[_0x5ed642(0x1b7)](_0x412010[_0x5ed642(0x14c)])[_0x5ed642(0xec)](_0x28c99b);})),this[_0x17ff3b(0x1a2)](this[_0x17ff3b(0x102)][_0x17ff3b(0xd2)][_0x17ff3b(0x145)](_0xbce279=>{const _0x1baed6=_0x17ff3b;_0x2117ff['get'](_0x412010[_0x1baed6(0x14c)])[_0x1baed6(0xf2)](_0xbce279);})),_0x2117ff[_0x17ff3b(0x1b7)](_0x412010['LocaleService'])[_0x17ff3b(0x12c)](this[_0x17ff3b(0x149)]['getCurrentLocale']()),_0x2117ff[_0x17ff3b(0x1b7)](_0x412010[_0x17ff3b(0x10d)])['setConfig'](_0x110681[_0x17ff3b(0xe2)],this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)](_0x110681[_0x17ff3b(0xe2)]));let _0x2d1cb4=this[_0x17ff3b(0xd7)]['getConfig'](_0xa92606[_0x17ff3b(0x141)]);_0x2d1cb4&&_0x17caf4['registerPlugin'](_0xa92606[_0x17ff3b(0x1ad)],{'license':_0x2d1cb4['ls']});let _0x56c25a=(_0xf9d917=this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)](_0x17ff3b(0xb0)))==null?void 0x0:_0xf9d917['workerURL'],_0x2ba1ab=!!_0x56c25a;_0x2ba1ab&&(this[_0x17ff3b(0x112)]=_0x56c25a instanceof Worker?_0x56c25a:null,_0x17caf4['registerPlugin'](_0x283f0d[_0x17ff3b(0x9f)],{'workerURL':_0x56c25a})),this[_0x17ff3b(0x17c)][_0x17ff3b(0x85)](([_0x2c374a,_0x24f3ee])=>{const _0xe1e083=_0x17ff3b;_0x17caf4[_0xe1e083(0x8c)](_0x2c374a,_0x24f3ee);}),_0x17caf4['registerPlugin'](_0xad21ce[_0x17ff3b(0xe0)],{'historyListServerUrl':(_0xb1b528=this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)](_0x17ff3b(0xb0)))==null?void 0x0:_0xb1b528['historyListServerUrl'],'historyPanelComponentKey':(_0x45c19e=this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)](_0x17ff3b(0xb0)))==null?void 0x0:_0x45c19e[_0x17ff3b(0x9a)],'historyPanelHidden':(_0x33b106=this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)]('edit-history-loader.config'))==null?void 0x0:_0x33b106[_0x17ff3b(0x16e)],'historyAIassistantEnabled':(_0x4989e5=this[_0x17ff3b(0xd7)]['getConfig'](_0x17ff3b(0xb0)))==null?void 0x0:_0x4989e5['historyAIassistantEnabled']}),_0x2117ff['invoke'](_0x1c30f3=>{const _0x3ba60d=_0x17ff3b;this[_0x3ba60d(0xb6)](_0x1c30f3,_0x465881);}),this[_0x17ff3b(0xb2)][_0x17ff3b(0xa2)](_0x17caf4);let _0x314ad0=_0x2117ff[_0x17ff3b(0x1b7)](_0xad21ce[_0x17ff3b(0x12d)]),_0x574981=this[_0x17ff3b(0x133)](_0x465881),_0x241808=()=>{const _0x5a6eef=_0x17ff3b;_0x3726b0?_0x314ad0[_0x5a6eef(0x7f)](_0x465881,_0x331dc7,_0x574981,_0x3726b0):_0x314ad0['triggerLoadVersions'](_0x465881,_0x331dc7,_0x574981);};if(this['_messageService'][_0x17ff3b(0xa6)]({'content':this[_0x17ff3b(0x149)]['t'](_0x17ff3b(0x1bb)),'type':_0x153d7c[_0x17ff3b(0x9c)][_0x17ff3b(0xc4)]}),_0x2ba1ab)try{_0x2117ff['get'](_0x283f0d['IRemoteInstanceService'])['whenReady']()[_0x17ff3b(0x1ca)](()=>{_0x241808();});}catch{_0x241808();}else _0x241808();}[_0x45b811(0xb6)](_0x49f821,_0x4bf2aa){const _0x5d8942=_0x45b811;let _0x5cc265=_0x49f821[_0x5d8942(0x1b7)](_0xad21ce['HistoryManagerService']);this['_disposableCollection']['add'](_0x5cc265[_0x5d8942(0xc5)][_0x5d8942(0x145)](_0x50ac7f=>{const _0x1b83cc=_0x5d8942;switch(_0x50ac7f){case _0xad21ce[_0x1b83cc(0x9d)][_0x1b83cc(0x90)]:this[_0x1b83cc(0x123)][_0x1b83cc(0x12f)](),this[_0x1b83cc(0x13d)]['close']();break;case _0xad21ce[_0x1b83cc(0x9d)][_0x1b83cc(0x188)]:this[_0x1b83cc(0x12a)]['executeCommand'](_0x5cf7c7['id']),this[_0x1b83cc(0x7c)]();break;case _0xad21ce[_0x1b83cc(0x9d)][_0x1b83cc(0x11f)]:this['unMountHistoryContent'](),this[_0x1b83cc(0x15b)]['show']({'content':this[_0x1b83cc(0x149)]['t'](_0x1b83cc(0x120)),'type':_0x153d7c[_0x1b83cc(0x9c)]['Error'],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x5d8942(0x15e)](_0x5cc265[_0x5d8942(0x1a3)]['subscribe'](async _0x15902e=>{const _0x30ffe1=_0x5d8942;_0x15902e&&this[_0x30ffe1(0x12a)][_0x30ffe1(0x18f)](_0x597de7[_0x30ffe1(0xac)]['id'],{'unitId':_0x4bf2aa,'revision':_0x15902e});}));}[_0x45b811(0x133)](_0x4a4fc4){const _0x3057cb=_0x45b811;let _0x2189f8=this[_0x3057cb(0x76)][_0x3057cb(0x13f)](_0x4a4fc4)[_0x3057cb(0x100)]()[_0x3057cb(0x140)](_0x192139=>_0x192139['getSheetId']()),_0x225cd7=new _0x136342[(_0x3057cb(0x170))](_0x4a4fc4)['id'],_0xe8a78a=_0x2189f8[_0x3057cb(0x140)](_0x321f9f=>new _0x136342[(_0x3057cb(0xc0))](_0x4a4fc4,_0x321f9f)['id']),_0x342dbb=_0x2189f8[_0x3057cb(0x140)](_0x3b1293=>this['_selectionProtectionRuleModel'][_0x3057cb(0x197)](_0x4a4fc4,_0x3b1293)[_0x3057cb(0x140)](_0x2f1718=>new _0x136342[(_0x3057cb(0x122))](_0x4a4fc4,_0x3b1293,_0x2f1718[_0x3057cb(0x83)])['id']))[_0x3057cb(0x111)](),_0x5ec140=new _0x136342[(_0x3057cb(0xb7))](_0x4a4fc4)['id'];return this[_0x3057cb(0x119)][_0x3057cb(0xf3)]([_0x225cd7,..._0xe8a78a,..._0x342dbb,_0x5ec140])[_0x3057cb(0x15f)](_0xd1dba5=>!!_0xd1dba5['value']);}};_0x595023=_0x58019a([_0x132994(0x0,(0x0,_0x412010[_0x45b811(0x171)])(_0x412010[_0x45b811(0xf5)])),_0x132994(0x1,_0x412010[_0x45b811(0x1b9)]),_0x132994(0x2,_0x412010[_0x45b811(0x10d)]),_0x132994(0x3,_0x412010[_0x45b811(0x70)]),_0x132994(0x4,_0x284ec3['IMessageService']),_0x132994(0x5,_0x412010[_0x45b811(0x199)]),_0x132994(0x6,(0x0,_0x412010[_0x45b811(0x171)])(_0x136342['RangeProtectionRuleModel'])),_0x132994(0x7,(0x0,_0x412010['Inject'])(_0x284ec3['IDialogService'])),_0x132994(0x8,(0x0,_0x412010['Inject'])(_0x284ec3[_0x45b811(0x186)])),_0x132994(0x9,(0x0,_0x412010[_0x45b811(0x171)])(_0x412010['ThemeService']))],_0x595023);let _0x549959={'id':_0x45b811(0x82),'type':_0x412010[_0x45b811(0xe9)]['OPERATION'],'handler':_0x3495eb=>{const _0x3c8039=_0x45b811;let _0x14984c=_0x3495eb['get'](_0x595023),{unitId:_0x2a1b9d}=(0x0,_0x136342[_0x3c8039(0x8f)])(_0x3495eb[_0x3c8039(0x1b7)](_0x412010[_0x3c8039(0x1b9)]))||{};return _0x2a1b9d?(_0x14984c['mountHistoryContent'](_0x2a1b9d),!0x0):!0x1;}},_0x5cf7c7={'id':_0x45b811(0x7b),'type':_0x412010['CommandType']['OPERATION'],'handler':()=>!0x0};var _0x42d231=_0x45b811(0xdf),_0x108dc4='0.21.1';function _0x1d3024({ref:_0x4eb592,..._0x26c5a2}){const _0x462880=_0x45b811;let {icon:_0x314e16,id:_0x326534,className:_0x56023e,extend:_0x5c8f29,..._0xd8fcaa}=_0x26c5a2,_0x1ea202=(_0x462880(0xcc)+_0x326534+'\x20'+(_0x56023e||''))[_0x462880(0x18e)](),_0x1ece99=(0x0,_0x30721f['useRef'])('_'+_0x1bdc55());return _0x26975a(_0x314e16,''+_0x326534,{'defIds':_0x314e16['defIds'],'idSuffix':_0x1ece99[_0x462880(0x176)]},{'ref':_0x4eb592,'className':_0x1ea202,..._0xd8fcaa},_0x5c8f29);}function _0x26975a(_0x18725b,_0x404dbd,_0x216a2e,_0x352e3f,_0x34670e){const _0x433138=_0x45b811;return(0x0,_0x30721f['createElement'])(_0x18725b[_0x433138(0x86)],{'key':_0x404dbd,..._0x218b40(_0x18725b,_0x216a2e,_0x34670e),..._0x352e3f},(_0x121d35(_0x18725b,_0x216a2e)[_0x433138(0x16c)]||[])[_0x433138(0x140)]((_0xd9f6c4,_0x7df2b)=>_0x26975a(_0xd9f6c4,_0x404dbd+'-'+_0x18725b[_0x433138(0x86)]+'-'+_0x7df2b,_0x216a2e,void 0x0,_0x34670e)));}function _0x218b40(_0x749678,_0x59d5db,_0x3c0f78){const _0x5867e0=_0x45b811;let _0x364d7b={..._0x749678[_0x5867e0(0x1af)]};_0x3c0f78!=null&&_0x3c0f78[_0x5867e0(0xf4)]&&_0x364d7b[_0x5867e0(0x80)]===_0x5867e0(0xf4)&&(_0x364d7b[_0x5867e0(0x80)]=_0x3c0f78['colorChannel1']),_0x749678[_0x5867e0(0x86)]===_0x5867e0(0x17a)&&_0x364d7b['id']&&(_0x364d7b['id']+=_0x59d5db[_0x5867e0(0x1b4)]),Object[_0x5867e0(0x181)](_0x364d7b)['forEach'](([_0x3bdc57,_0x3c5bdb])=>{const _0xfe109c=_0x5867e0;_0x3bdc57===_0xfe109c(0x17a)&&typeof _0x3c5bdb==_0xfe109c(0x152)&&(_0x364d7b[_0x3bdc57]=_0x3c5bdb['replace'](/url\(#(.*)\)/,'url(#$1'+_0x59d5db[_0xfe109c(0x1b4)]+')'));});let {defIds:_0x10a978}=_0x59d5db;return!_0x10a978||_0x10a978[_0x5867e0(0xf0)]===0x0?_0x364d7b:(_0x749678[_0x5867e0(0x86)]===_0x5867e0(0x187)&&_0x364d7b['xlink:href']&&(_0x364d7b[_0x5867e0(0x1c2)]+=_0x59d5db[_0x5867e0(0x1b4)]),Object[_0x5867e0(0x181)](_0x364d7b)[_0x5867e0(0x85)](([_0x53c544,_0x541ec0])=>{const _0x178b66=_0x5867e0;typeof _0x541ec0=='string'&&(_0x364d7b[_0x53c544]=_0x541ec0[_0x178b66(0x7a)](/url\(#(.*)\)/,'url(#$1'+_0x59d5db['idSuffix']+')'));}),_0x364d7b);}function _0x121d35(_0x3adf68,_0x5c8103){const _0x3c8c95=_0x45b811;var _0x583d07;let {defIds:_0x1b6b33}=_0x5c8103;return!_0x1b6b33||_0x1b6b33[_0x3c8c95(0xf0)]===0x0?_0x3adf68:_0x3adf68[_0x3c8c95(0x86)]===_0x3c8c95(0x162)&&(_0x583d07=_0x3adf68[_0x3c8c95(0x16c)])!=null&&_0x583d07['length']?{..._0x3adf68,'children':_0x3adf68[_0x3c8c95(0x16c)][_0x3c8c95(0x140)](_0x31133b=>typeof _0x31133b['attrs']['id']==_0x3c8c95(0x152)&&_0x1b6b33&&_0x1b6b33['includes'](_0x31133b['attrs']['id'])?{..._0x31133b,'attrs':{..._0x31133b[_0x3c8c95(0x1af)],'id':_0x31133b[_0x3c8c95(0x1af)]['id']+_0x5c8103[_0x3c8c95(0x1b4)]}}:_0x31133b)}:_0x3adf68;}function _0x1bdc55(){const _0x4946ae=_0x45b811;return Math[_0x4946ae(0x177)]()[_0x4946ae(0x95)](0x24)['substring'](0x2,0x8);}_0x1d3024[_0x45b811(0xfe)]=_0x45b811(0xa7);let _0x10cbec={'tag':'svg','attrs':{'xmlns':_0x45b811(0x167),'fill':'none','viewBox':_0x45b811(0x103),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x45b811(0x1ab),'clipPath':_0x45b811(0x1ce)},'children':[{'tag':_0x45b811(0x1a7),'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':'path','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':_0x45b811(0x162),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x45b811(0x9e)},'children':[{'tag':_0x45b811(0x1a7),'attrs':{'fill':_0x45b811(0xa5),'d':_0x45b811(0x12b)}}]}]}],'defIds':[_0x45b811(0x9e)]},_0x1af6a6=(0x0,_0x30721f[_0x45b811(0xce)])(function(_0xda8154,_0x57c07f){const _0x3a3209=_0x45b811;return(0x0,_0x30721f[_0x3a3209(0xdd)])(_0x1d3024,Object[_0x3a3209(0x6a)]({},_0xda8154,{'id':_0x3a3209(0x189),'ref':_0x57c07f,'icon':_0x10cbec}));});_0x1af6a6[_0x45b811(0xfe)]=_0x45b811(0x1bc);function _0x3348d5(_0x49fbe3){const _0x33b0ae=_0x45b811;return{'id':_0x549959['id'],'type':_0x284ec3[_0x33b0ae(0x13a)][_0x33b0ae(0xcb)],'icon':_0x33b0ae(0x1bc),'tooltip':_0x33b0ae(0x178),'hidden$':(0x0,_0x284ec3[_0x33b0ae(0x19f)])(_0x49fbe3,_0x412010[_0x33b0ae(0xe7)]['UNIVER_SHEET']),'disabled$':(0x0,_0x1f610d[_0x33b0ae(0x10f)])(_0x49fbe3,{'workbookTypes':[_0x136342[_0x33b0ae(0xed)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x840e2f={[_0x284ec3[_0x45b811(0xeb)][_0x45b811(0x84)]]:{[_0x549959['id']]:{'order':0.2,'menuItemFactory':_0x3348d5}}},_0x4f2ef7=class extends _0x412010[_0x45b811(0x91)]{constructor(_0x374c08,_0x178590,_0x5262e1,_0x30eaf6,_0x110707,_0xb009f0,_0x298029,_0x59c512,_0x2f4d1c,_0x4be5e1,_0x421603){const _0x156e65=_0x45b811;super(),this['_commandService']=_0x374c08,this[_0x156e65(0x156)]=_0x178590,this[_0x156e65(0xb8)]=_0x5262e1,this['_historyManagerService']=_0x30eaf6,this[_0x156e65(0x149)]=_0x110707,this[_0x156e65(0x15b)]=_0xb009f0,this[_0x156e65(0x142)]=_0x298029,this[_0x156e65(0x1b0)]=_0x59c512,this[_0x156e65(0x125)]=_0x2f4d1c,this['_univerInstanceService']=_0x4be5e1,this[_0x156e65(0xc3)]=_0x421603,_0x57c8f2(this,_0x156e65(0x72),null),this[_0x156e65(0xf6)]();}['_init'](){const _0x36e203=_0x45b811;[_0x549959,_0x5cf7c7][_0x36e203(0x85)](_0x46d235=>this[_0x36e203(0x1a2)]((0x0,_0x412010['toDisposable'])(this[_0x36e203(0x12a)][_0x36e203(0x159)](_0x46d235)))),this[_0x36e203(0x1a2)](this['_componentManager']['register'](_0x36e203(0x1bc),_0x1af6a6)),this[_0x36e203(0x156)][_0x36e203(0x193)](_0x840e2f),this['disposeWithMe'](this['_commandService'][_0x36e203(0x11a)](async(_0x1922d6,_0x8b3d45)=>{const _0x2085d2=_0x36e203;if(_0x1922d6['id']===_0x597de7[_0x2085d2(0xac)]['id']){let {unitId:_0x45842d}=_0x1922d6[_0x2085d2(0x1c6)];this[_0x2085d2(0x15b)][_0x2085d2(0xa6)]({'content':this[_0x2085d2(0x149)]['t'](_0x2085d2(0x155)),'type':_0x153d7c['MessageType'][_0x2085d2(0xc4)],'duration':0x1388});let _0x4f070a=this[_0x2085d2(0x142)][_0x2085d2(0x1bd)](_0x45842d);_0x8b3d45!=null&&_0x8b3d45[_0x2085d2(0x185)]?this[_0x2085d2(0x1ae)](_0x4f070a,async()=>(setTimeout(()=>window['location'][_0x2085d2(0xdb)]()),!0x0),!0x0):this[_0x2085d2(0x1ae)](_0x4f070a,async()=>{const _0x5d6cf3=_0x2085d2;let _0x4b4971=this['_univerInstanceService'][_0x5d6cf3(0x14b)](_0x412010[_0x5d6cf3(0xe7)]['UNIVER_SHEET']),_0x1a6d76=_0x4b4971==null?void 0x0:_0x4b4971[_0x5d6cf3(0x11d)]();if(!_0x1a6d76)return!0x1;this[_0x5d6cf3(0x76)]['disposeUnit'](_0x45842d);let _0x289ae6=await this['_dataLoaderService'][_0x5d6cf3(0x12e)](_0x45842d,_0x412010[_0x5d6cf3(0xe7)][_0x5d6cf3(0xef)]);return _0x289ae6&&_0x289ae6 instanceof _0x412010[_0x5d6cf3(0xbe)]?(await this[_0x5d6cf3(0xee)](_0x289ae6,_0x1a6d76[_0x5d6cf3(0x134)]()),!0x0):!0x1;});}}));}[_0x45b811(0x1ae)](_0x1a177b,_0x1de96c,_0x371cde=!0x1){const _0xfbec09=_0x45b811;let _0x57a3c2=(0x0,_0x121a50[_0xfbec09(0xe3)])([_0x1a177b[_0xfbec09(0xe5)][_0xfbec09(0x19c)],_0x1a177b[_0xfbec09(0x154)]])[_0xfbec09(0x145)](async([_0x1eb53f,_0x4f89dc])=>{const _0x51b067=_0xfbec09;if(_0x1eb53f[_0x51b067(0x143)]===_0x597de7[_0x51b067(0x1a1)][_0x51b067(0x1aa)]&&(_0x4f89dc==null?void 0x0:_0x4f89dc[_0x51b067(0x1a6)])===_0x110681[_0x51b067(0xbd)][_0x51b067(0x1b8)]&&_0x1eb53f[_0x51b067(0xd4)]['mutations']['some'](_0x10ef4d=>_0x10ef4d['id']===_0x597de7[_0x51b067(0xac)]['id'])&&await _0x1de96c()){var _0x1db9fc;this[_0x51b067(0x19b)][_0x51b067(0x7c)](),_0x57a3c2[_0x51b067(0xe8)](),this['_revertErrorTimer']&&clearTimeout(this[_0x51b067(0x72)]),await((_0x1db9fc=this['_localCacheService'])==null?void 0x0:_0x1db9fc[_0x51b067(0xbf)]()),this['_messageService'][_0x51b067(0x198)]();}});_0x371cde&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x38da70=_0xfbec09;_0x57a3c2[_0x38da70(0xe8)](),this[_0x38da70(0x15b)][_0x38da70(0xa6)]({'content':this[_0x38da70(0x149)]['t'](_0x38da70(0xfb)),'type':_0x153d7c['MessageType'][_0x38da70(0x11f)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x3189f5,_0x5b347c){const _0x4405de=_0x45b811;await this[_0x4405de(0x15d)](_0x3189f5,_0x5b347c),_0x3189f5[_0x4405de(0xd1)][_0x4405de(0x17f)]((0x0,_0x121a50[_0x4405de(0xbb)])(this[_0x4405de(0x9b)]))[_0x4405de(0x145)](_0x478e88=>{const _0x558344=_0x4405de;_0x478e88&&this[_0x558344(0xc2)](_0x478e88);}),this['_urlService'][_0x4405de(0xda)][_0x4405de(0x17f)]((0x0,_0x121a50[_0x4405de(0xbb)])(this['dispose$']))[_0x4405de(0x145)](()=>this['_updateSubUnitFromURLParams'](_0x3189f5,_0x5b347c));}[_0x45b811(0xc2)](_0x3ea7b7,_0x1b0ab2=!0x1){const _0x4869e1=_0x45b811;let _0x1c2baa=this[_0x4869e1(0xc3)][_0x4869e1(0x93)](_0x4869e1(0x1a8));_0x3ea7b7['getSheetId']()!==_0x1c2baa&&this[_0x4869e1(0xc3)][_0x4869e1(0x10a)]('subunit',_0x3ea7b7[_0x4869e1(0x134)](),_0x1b0ab2);}async[_0x45b811(0x15d)](_0x49b585,_0x569bb9){const _0x324071=_0x45b811;var _0x583869;if(!_0x569bb9||!_0x49b585[_0x324071(0x1ba)](_0x569bb9)){let _0x5d8f1c=_0x49b585[_0x324071(0x130)]()[0x0],_0x2d5f02=_0x49b585[_0x324071(0x1ba)](_0x5d8f1c);if(!_0x2d5f02)return;this[_0x324071(0xc2)](_0x2d5f02,!0x0),await this['_commandService'][_0x324071(0x18f)](_0x136342[_0x324071(0x87)]['id'],{'unitId':_0x49b585[_0x324071(0x13e)](),'subUnitId':_0x5d8f1c});return;}((_0x583869=_0x49b585['getActiveSheet']())==null?void 0x0:_0x583869[_0x324071(0x134)]())!==_0x569bb9&&await this[_0x324071(0x12a)][_0x324071(0x18f)](_0x136342[_0x324071(0x87)]['id'],{'unitId':_0x49b585[_0x324071(0x13e)](),'subUnitId':_0x569bb9});}};_0x4f2ef7=_0x58019a([_0x132994(0x0,_0x412010[_0x45b811(0x70)]),_0x132994(0x1,_0x284ec3[_0x45b811(0xf8)]),_0x132994(0x2,(0x0,_0x412010['Inject'])(_0x284ec3['ComponentManager'])),_0x132994(0x3,(0x0,_0x412010[_0x45b811(0x171)])(_0x595023)),_0x132994(0x4,(0x0,_0x412010[_0x45b811(0x171)])(_0x412010[_0x45b811(0xf5)])),_0x132994(0x5,_0x284ec3[_0x45b811(0x172)]),_0x132994(0x6,(0x0,_0x412010[_0x45b811(0x171)])(_0x110681[_0x45b811(0xe6)])),_0x132994(0x7,_0x110681['ILocalCacheService']),_0x132994(0x8,(0x0,_0x412010[_0x45b811(0x171)])(_0x110681[_0x45b811(0x77)])),_0x132994(0x9,_0x412010['IUniverInstanceService']),_0x132994(0xa,_0x2fda48[_0x45b811(0x182)])],_0x4f2ef7);let _0xacbcd3=_0x45b811(0xc8),_0x2f2a1f=class extends _0x412010[_0x45b811(0x1bf)]{constructor(_0xc6d8fd,_0x54d7fd,_0x394c3e,_0x420506,_0x1894b5,_0x3a0d18,_0x45042a,_0x213d63,_0x17f7af,_0x1b2cbd){const _0x539cf6=_0x45b811;super(),this[_0x539cf6(0x149)]=_0xc6d8fd,this[_0x539cf6(0x76)]=_0x54d7fd,this['_configService']=_0x394c3e,this[_0x539cf6(0x12a)]=_0x420506,this[_0x539cf6(0x15b)]=_0x1894b5,this['_permissionService']=_0x3a0d18,this[_0x539cf6(0x101)]=_0x45042a,this[_0x539cf6(0x123)]=_0x213d63,this['_sidebarService']=_0x17f7af,this['_themeService']=_0x1b2cbd,_0x57c8f2(this,_0x539cf6(0xb2),new _0x121a50[(_0x539cf6(0x166))](null)),_0x57c8f2(this,_0x539cf6(0x1c0),this[_0x539cf6(0xb2)][_0x539cf6(0x109)]()),_0x57c8f2(this,_0x539cf6(0x6c),new _0x412010[(_0x539cf6(0x1c1))]()),_0x57c8f2(this,_0x539cf6(0x17c),new Map()),_0x57c8f2(this,_0x539cf6(0x112),null),this[_0x539cf6(0xf6)]();}get[_0x45b811(0xae)](){const _0x5c8516=_0x45b811;return this[_0x5c8516(0xb2)][_0x5c8516(0xc7)];}['_init'](){const _0x4a1a4a=_0x45b811;this[_0x4a1a4a(0x147)](),this[_0x4a1a4a(0x117)]();}[_0x45b811(0x147)](){const _0x77953f=_0x45b811;var _0x45f47c;let _0x5930ff=(_0x45f47c=this['_configService'][_0x77953f(0x6b)](_0x77953f(0x107)))==null?'univer-container':_0x45f47c,_0x2e71a8=document[_0x77953f(0xca)](_0x5930ff);if(!_0x2e71a8)return;let _0x54f400=document['createElement']('div');_0x54f400['id']=_0xacbcd3,_0x54f400[_0x77953f(0xcf)][_0x77953f(0x1a9)]='history-container',_0x54f400[_0x77953f(0x179)][_0x77953f(0x158)]=_0x77953f(0x183),_0x54f400[_0x77953f(0x179)]['top']='0',_0x54f400['style'][_0x77953f(0x110)]='0',_0x54f400[_0x77953f(0x179)][_0x77953f(0x15a)]=_0x77953f(0x116),_0x54f400[_0x77953f(0x179)][_0x77953f(0x75)]=_0x77953f(0x116),_0x54f400[_0x77953f(0x179)][_0x77953f(0x194)]='49',_0x54f400[_0x77953f(0x179)][_0x77953f(0x180)]=_0x77953f(0x96),_0x2e71a8[_0x77953f(0x174)](_0x54f400);}[_0x45b811(0x117)](){const _0x8c43c=_0x45b811;[[_0x54884c[_0x8c43c(0xd0)]],[_0x284ec3[_0x8c43c(0x15c)],{'container':_0xacbcd3,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x284ec3[_0x8c43c(0xc1)],null]]}],[_0x3b1006[_0x8c43c(0xb9)]],[_0x58aeae[_0x8c43c(0x191)],{'override':[[_0x58aeae[_0x8c43c(0x104)],null]]}],[_0x3a8973[_0x8c43c(0x10e)],{'hasScroll':!0x1}],[_0x575f91['UniverDocsUIPlugin']],[_0x5790d8[_0x8c43c(0x19e)]],[_0x136342[_0x8c43c(0x184)],{'notExecuteFormula':!0x0}],[_0x1f610d['UniverSheetsMobileUIPlugin']],[_0xa1db9b['UniverSheetsFormulaPlugin']],[_0x2596de['UniverSheetsFormulaUIPlugin']],[_0x597de7[_0x8c43c(0x168)]],[_0x8d1937[_0x8c43c(0x1cc)]],[_0x137584['UniverSheetsConditionalFormattingPlugin']],[_0x2f751c['UniverSheetsHyperLinkPlugin']],[_0x9f6010['UniverSheetsHyperLinkUIPlugin']],[_0x4f122e['UniverDataValidationPlugin']],[_0x3d8376[_0x8c43c(0x17b)]],[_0x24998c[_0x8c43c(0xaa)]],[_0x2a0b4b['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x1959e3['UniverDrawingUIPlugin']],[_0x5b45f0[_0x8c43c(0x150)]],[_0x27a0cb[_0x8c43c(0x136)]],[_0x342fba[_0x8c43c(0x169)]],[_0x394d70[_0x8c43c(0x71)]],[_0x13a5b7[_0x8c43c(0x151)]],[_0x14cbfe[_0x8c43c(0x98)]],[_0x4dccbb[_0x8c43c(0x175)]],[_0x283344['UniverSheetsShapeUIPlugin']],[_0x574451[_0x8c43c(0x106)],{'notExecuteFormula':!0x0}],[_0x317470[_0x8c43c(0x153)]]][_0x8c43c(0x85)](([_0xec195a,_0x14ae94])=>this['registerPlugin'](_0xec195a,_0x14ae94));}['dispose'](){const _0x331835=_0x45b811;super[_0x331835(0xde)](),this[_0x331835(0x7c)](),this[_0x331835(0x17c)][_0x331835(0x8d)]();}[_0x45b811(0x8c)](_0x3365f5,_0x2810a5,_0x13b7d3){const _0xa10c59=_0x45b811;if(this['_pluginMap'][_0xa10c59(0x17d)](_0x3365f5[_0xa10c59(0xd8)])&&!_0x13b7d3)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x3365f5[_0xa10c59(0xd8)]+'\x20has\x20been\x20registered.');this[_0xa10c59(0x17c)][_0xa10c59(0x18c)](_0x3365f5[_0xa10c59(0xd8)],[_0x3365f5,_0x2810a5]);}[_0x45b811(0xf1)](){const _0x6c437f=_0x45b811;return Array['from'](this[_0x6c437f(0x17c)][_0x6c437f(0xaf)]());}[_0x45b811(0x160)](_0x1b6ba2,_0x34cae0){const _0x34d096=_0x45b811;let _0x15c0a3=document['getElementById'](_0xacbcd3);_0x15c0a3&&(_0x15c0a3['style'][_0x34d096(0x180)]=_0x34d096(0x69),this[_0x34d096(0xfd)](_0x1b6ba2,_0xacbcd3,_0x34cae0));}[_0x45b811(0x7c)](){const _0x4f61aa=_0x45b811;var _0x5605a4;this[_0x4f61aa(0x6c)][_0x4f61aa(0xde)](),(_0x5605a4=this[_0x4f61aa(0xae)])==null||_0x5605a4[_0x4f61aa(0xde)](),this[_0x4f61aa(0xb2)][_0x4f61aa(0xa2)](null);let _0x44f595=document['getElementById'](_0xacbcd3);_0x44f595&&(_0x44f595[_0x4f61aa(0x179)]['display']=_0x4f61aa(0x96),this['_internalWebWorker']&&(this[_0x4f61aa(0x112)][_0x4f61aa(0x6d)](),this[_0x4f61aa(0x112)]=null));}[_0x45b811(0xfd)](_0x402aae,_0x5c0ac6,_0x37d674){const _0x49b9bd=_0x45b811;var _0x4c02c6,_0x236a61,_0x21c3ac,_0x2d49f5;if(this[_0x49b9bd(0xae)])return;let _0x47880d=new _0x412010[(_0x49b9bd(0x118))]({'locales':{[this[_0x49b9bd(0x149)][_0x49b9bd(0x146)]()]:this[_0x49b9bd(0x149)][_0x49b9bd(0xd9)]()},'override':[[_0x412010[_0x49b9bd(0x173)],{'useClass':_0x110681['AuthzIoHttpService']}]]}),_0x9ba10e=_0x47880d[_0x49b9bd(0x1be)]();this['disposeWithMe'](this[_0x49b9bd(0x102)][_0x49b9bd(0x138)][_0x49b9bd(0x145)](_0xd9ba60=>{const _0x40365b=_0x49b9bd;_0x9ba10e[_0x40365b(0x1b7)](_0x412010[_0x40365b(0x14c)])['setDarkMode'](_0xd9ba60);})),this[_0x49b9bd(0x1a2)](this[_0x49b9bd(0x102)][_0x49b9bd(0xd2)][_0x49b9bd(0x145)](_0x4f07a9=>{const _0x388346=_0x49b9bd;_0x9ba10e[_0x388346(0x1b7)](_0x412010[_0x388346(0x14c)])[_0x388346(0xf2)](_0x4f07a9);})),_0x9ba10e[_0x49b9bd(0x1b7)](_0x412010[_0x49b9bd(0xf5)])[_0x49b9bd(0x12c)](this[_0x49b9bd(0x149)][_0x49b9bd(0x146)]()),_0x9ba10e[_0x49b9bd(0x1b7)](_0x412010[_0x49b9bd(0x10d)])['setConfig'](_0x110681[_0x49b9bd(0xe2)],this[_0x49b9bd(0xd7)][_0x49b9bd(0x6b)](_0x110681['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x29d2e7=this[_0x49b9bd(0xd7)]['getConfig'](_0xa92606[_0x49b9bd(0x141)]);_0x29d2e7&&_0x47880d[_0x49b9bd(0x8c)](_0xa92606[_0x49b9bd(0x1ad)],{'license':_0x29d2e7['ls']});let _0x469ccc=(_0x4c02c6=this[_0x49b9bd(0xd7)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x4c02c6['workerURL'],_0x9f4d64=!!_0x469ccc;_0x9f4d64&&(this['_internalWebWorker']=_0x469ccc instanceof Worker?_0x469ccc:null,_0x47880d['registerPlugin'](_0x283f0d[_0x49b9bd(0x9f)],{'workerURL':_0x469ccc})),this[_0x49b9bd(0x17c)][_0x49b9bd(0x85)](([_0x5ec3dc,_0x2172dd])=>{const _0x30e6c3=_0x49b9bd;_0x47880d[_0x30e6c3(0x8c)](_0x5ec3dc,_0x2172dd);}),_0x47880d[_0x49b9bd(0x8c)](_0xad21ce['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x236a61=this['_configService'][_0x49b9bd(0x6b)](_0x49b9bd(0xb0)))==null?void 0x0:_0x236a61[_0x49b9bd(0x19a)],'historyPanelComponentKey':(_0x21c3ac=this[_0x49b9bd(0xd7)][_0x49b9bd(0x6b)]('edit-history-loader.config'))==null?void 0x0:_0x21c3ac[_0x49b9bd(0x9a)],'historyPanelHidden':(_0x2d49f5=this['_configService']['getConfig'](_0x49b9bd(0xb0)))==null?void 0x0:_0x2d49f5[_0x49b9bd(0x16e)]}),_0x9ba10e[_0x49b9bd(0x68)](_0x192f16=>{this['_initListener'](_0x192f16,_0x402aae);}),this['_historyUniver$']['next'](_0x47880d);let _0x247624=_0x9ba10e['get'](_0xad21ce[_0x49b9bd(0x12d)]),_0x51ea76=this['_checkCanRevert'](_0x402aae),_0x1911c7=()=>{const _0x413e9c=_0x49b9bd;_0x37d674?_0x247624[_0x413e9c(0x7f)](_0x402aae,_0x5c0ac6,_0x51ea76,_0x37d674):_0x247624[_0x413e9c(0x81)](_0x402aae,_0x5c0ac6,_0x51ea76);};if(this[_0x49b9bd(0x15b)][_0x49b9bd(0xa6)]({'content':this[_0x49b9bd(0x149)]['t'](_0x49b9bd(0x1bb)),'type':_0x153d7c[_0x49b9bd(0x9c)][_0x49b9bd(0xc4)]}),_0x9f4d64)try{_0x9ba10e[_0x49b9bd(0x1b7)](_0x283f0d['IRemoteInstanceService'])[_0x49b9bd(0x14e)]()[_0x49b9bd(0x1ca)](()=>{_0x1911c7();});}catch{_0x1911c7();}else _0x1911c7();}[_0x45b811(0xb6)](_0x333e06,_0x5da4ab){const _0x2c9a04=_0x45b811;let _0x46577f=_0x333e06[_0x2c9a04(0x1b7)](_0xad21ce[_0x2c9a04(0x12d)]);this[_0x2c9a04(0x6c)]['add'](_0x46577f[_0x2c9a04(0xc5)]['subscribe'](_0x522492=>{const _0x28e415=_0x2c9a04;switch(_0x522492){case _0xad21ce[_0x28e415(0x9d)]['Entered']:this['_dialogService'][_0x28e415(0x12f)](),this[_0x28e415(0x13d)][_0x28e415(0x113)]();break;case _0xad21ce[_0x28e415(0x9d)][_0x28e415(0x188)]:this[_0x28e415(0x12a)][_0x28e415(0x18f)](_0x5cf7c7['id']),this['unMountHistoryContent']();break;case _0xad21ce['HistoryModeStatus'][_0x28e415(0x11f)]:this[_0x28e415(0x7c)](),this['_messageService'][_0x28e415(0xa6)]({'content':this[_0x28e415(0x149)]['t'](_0x28e415(0x120)),'type':_0x153d7c[_0x28e415(0x9c)][_0x28e415(0x11f)],'duration':0xbb8});break;default:break;}})),this[_0x2c9a04(0x6c)][_0x2c9a04(0x15e)](_0x46577f[_0x2c9a04(0x1a3)][_0x2c9a04(0x145)](async _0xc6542=>{const _0x4e0b8f=_0x2c9a04;_0xc6542&&this[_0x4e0b8f(0x12a)]['executeCommand'](_0x597de7[_0x4e0b8f(0xac)]['id'],{'unitId':_0x5da4ab,'revision':_0xc6542});}));}[_0x45b811(0x133)](_0x191837){const _0x1680ed=_0x45b811;let _0x35ba73=this[_0x1680ed(0x76)][_0x1680ed(0x13f)](_0x191837)['getSheets']()[_0x1680ed(0x140)](_0x10a0b3=>_0x10a0b3[_0x1680ed(0x134)]()),_0x2db0a8=new _0x136342[(_0x1680ed(0x170))](_0x191837)['id'],_0x3c512b=_0x35ba73[_0x1680ed(0x140)](_0x2d883b=>new _0x136342[(_0x1680ed(0xc0))](_0x191837,_0x2d883b)['id']),_0x244a67=_0x35ba73[_0x1680ed(0x140)](_0x49ed5b=>this[_0x1680ed(0x101)][_0x1680ed(0x197)](_0x191837,_0x49ed5b)[_0x1680ed(0x140)](_0x2d3f51=>new _0x136342[(_0x1680ed(0x122))](_0x191837,_0x49ed5b,_0x2d3f51['permissionId'])['id']))[_0x1680ed(0x111)](),_0x4f35f6=new _0x136342[(_0x1680ed(0xb7))](_0x191837)['id'];return this['_permissionService'][_0x1680ed(0xf3)]([_0x2db0a8,..._0x3c512b,..._0x244a67,_0x4f35f6])[_0x1680ed(0x15f)](_0xdb8ecc=>!!_0xdb8ecc[_0x1680ed(0xc7)]);}};_0x2f2a1f=_0x58019a([_0x132994(0x0,(0x0,_0x412010['Inject'])(_0x412010[_0x45b811(0xf5)])),_0x132994(0x1,_0x412010[_0x45b811(0x1b9)]),_0x132994(0x2,_0x412010[_0x45b811(0x10d)]),_0x132994(0x3,_0x412010['ICommandService']),_0x132994(0x4,_0x284ec3[_0x45b811(0x172)]),_0x132994(0x5,_0x412010['IPermissionService']),_0x132994(0x6,(0x0,_0x412010['Inject'])(_0x136342[_0x45b811(0xc9)])),_0x132994(0x7,(0x0,_0x412010[_0x45b811(0x171)])(_0x284ec3['IDialogService'])),_0x132994(0x8,(0x0,_0x412010[_0x45b811(0x171)])(_0x284ec3[_0x45b811(0x186)])),_0x132994(0x9,(0x0,_0x412010['Inject'])(_0x412010[_0x45b811(0x14c)]))],_0x2f2a1f);let _0x39d9f0=class extends _0x412010['Plugin']{constructor(_0x19017b=_0x5df63e,_0x30cd89,_0x40757f){const _0x4152ab=_0x45b811;super(),this['_config']=_0x19017b,this[_0x4152ab(0x16d)]=_0x30cd89,this[_0x4152ab(0xd7)]=_0x40757f;let {menu:_0x376857,..._0x558cef}=(0x0,_0x412010[_0x4152ab(0x14d)])({},_0x5df63e,this[_0x4152ab(0x13c)]);_0x376857&&this[_0x4152ab(0xd7)][_0x4152ab(0x144)]('menu',_0x376857,{'merge':!0x0}),this['_configService'][_0x4152ab(0x144)](_0x149075,_0x558cef),this[_0x4152ab(0x13c)][_0x4152ab(0xab)]&&this[_0x4152ab(0xd7)]['setConfig'](_0x4152ab(0x107),this[_0x4152ab(0x13c)]['univerContainerId']);}[_0x45b811(0xff)](){const _0x467d7e=_0x45b811;[[_0x595023,{'useClass':_0x2f2a1f}],[_0x4f2ef7]][_0x467d7e(0x85)](_0x11b695=>this[_0x467d7e(0x16d)][_0x467d7e(0x15e)](_0x11b695));}[_0x45b811(0x16a)](){const _0x585fd1=_0x45b811;this[_0x585fd1(0x16d)][_0x585fd1(0x1b7)](_0x4f2ef7);}};_0x57c8f2(_0x39d9f0,'type',_0x412010['UniverInstanceType'][_0x45b811(0x89)]),_0x57c8f2(_0x39d9f0,_0x45b811(0xd8),_0x45b811(0x137)),_0x57c8f2(_0x39d9f0,_0x45b811(0x114),_0x42d231),_0x57c8f2(_0x39d9f0,'version',_0x108dc4),_0x39d9f0=_0x58019a([(0x0,_0x412010['DependentOn'])(_0xa92606[_0x45b811(0x1ad)]),_0x132994(0x1,(0x0,_0x412010[_0x45b811(0x171)])(_0x412010[_0x45b811(0x192)])),_0x132994(0x2,_0x412010[_0x45b811(0x10d)])],_0x39d9f0);let _0x3b00ac=class extends _0x412010[_0x45b811(0x91)]{constructor(_0x18e26e,_0x183ce7,_0x3eee6f,_0x1dbacf,_0x4bc9ff,_0x115127,_0x37d972,_0x40daf7,_0x52bd6d,_0xd21d7b,_0x39ce7a){const _0x5112e5=_0x45b811;super(),this[_0x5112e5(0x12a)]=_0x18e26e,this[_0x5112e5(0x156)]=_0x183ce7,this[_0x5112e5(0xb8)]=_0x3eee6f,this['_historyManagerService']=_0x1dbacf,this[_0x5112e5(0x149)]=_0x4bc9ff,this['_messageService']=_0x115127,this['_collaborationController']=_0x37d972,this[_0x5112e5(0x1b0)]=_0x40daf7,this[_0x5112e5(0x125)]=_0x52bd6d,this[_0x5112e5(0x76)]=_0xd21d7b,this['_urlService']=_0x39ce7a,_0x57c8f2(this,_0x5112e5(0x72),null),this[_0x5112e5(0xf6)]();}['_init'](){const _0x552eff=_0x45b811;[_0x549959,_0x5cf7c7][_0x552eff(0x85)](_0x76637=>this[_0x552eff(0x1a2)]((0x0,_0x412010[_0x552eff(0x74)])(this[_0x552eff(0x12a)][_0x552eff(0x159)](_0x76637)))),this[_0x552eff(0x1a2)](this[_0x552eff(0xb8)][_0x552eff(0x78)](_0x552eff(0x1bc),_0x1af6a6)),this[_0x552eff(0x156)][_0x552eff(0x193)](_0x840e2f),this[_0x552eff(0x1a2)](this[_0x552eff(0x12a)]['onCommandExecuted'](async(_0x6ed01d,_0x40d04a)=>{const _0x1524ab=_0x552eff;if(_0x6ed01d['id']===_0x597de7[_0x1524ab(0xac)]['id']){let {unitId:_0x201e00}=_0x6ed01d[_0x1524ab(0x1c6)];this[_0x1524ab(0x15b)][_0x1524ab(0xa6)]({'content':this[_0x1524ab(0x149)]['t'](_0x1524ab(0x155)),'type':_0x153d7c[_0x1524ab(0x9c)][_0x1524ab(0xc4)],'duration':0x1388});let _0x544c60=this[_0x1524ab(0x142)]['getCollabEntity'](_0x201e00);_0x40d04a!=null&&_0x40d04a[_0x1524ab(0x185)]?this[_0x1524ab(0x1ae)](_0x544c60,async()=>(setTimeout(()=>window[_0x1524ab(0x139)]['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x544c60,async()=>{const _0x31d33a=_0x1524ab;let _0x13b19f=this[_0x31d33a(0x76)][_0x31d33a(0x14b)](_0x412010[_0x31d33a(0xe7)]['UNIVER_SHEET']),_0x400c60=_0x13b19f==null?void 0x0:_0x13b19f[_0x31d33a(0x11d)]();if(!_0x400c60)return!0x1;this['_univerInstanceService'][_0x31d33a(0xb3)](_0x201e00);let _0x1e9335=await this['_dataLoaderService'][_0x31d33a(0x12e)](_0x201e00,_0x412010[_0x31d33a(0xe7)][_0x31d33a(0xef)]);return _0x1e9335&&_0x1e9335 instanceof _0x412010[_0x31d33a(0xbe)]?(await this[_0x31d33a(0xee)](_0x1e9335,_0x400c60[_0x31d33a(0x134)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x3437e9,_0x5e57ef,_0x50f483=!0x1){const _0x4aab07=_0x45b811;let _0x5b9701=(0x0,_0x121a50['combineLatest'])([_0x3437e9[_0x4aab07(0xe5)]['event$'],_0x3437e9['state$']])[_0x4aab07(0x145)](async([_0x3e8d5f,_0x34d741])=>{const _0x4be059=_0x4aab07;if(_0x3e8d5f[_0x4be059(0x143)]===_0x597de7[_0x4be059(0x1a1)]['CHANGESET_ACK']&&(_0x34d741==null?void 0x0:_0x34d741['status'])===_0x110681[_0x4be059(0xbd)][_0x4be059(0x1b8)]&&_0x3e8d5f['data'][_0x4be059(0xf7)][_0x4be059(0x131)](_0x3fd30b=>_0x3fd30b['id']===_0x597de7[_0x4be059(0xac)]['id'])&&await _0x5e57ef()){var _0xb344d;this[_0x4be059(0x19b)][_0x4be059(0x7c)](),_0x5b9701['unsubscribe'](),this[_0x4be059(0x72)]&&clearTimeout(this[_0x4be059(0x72)]),await((_0xb344d=this[_0x4be059(0x1b0)])==null?void 0x0:_0xb344d[_0x4be059(0xbf)]());}});_0x50f483&&(this[_0x4aab07(0x72)]=setTimeout(()=>{const _0xb81276=_0x4aab07;_0x5b9701[_0xb81276(0xe8)](),this['_messageService'][_0xb81276(0xa6)]({'content':this[_0xb81276(0x149)]['t'](_0xb81276(0xfb)),'type':_0x153d7c[_0xb81276(0x9c)][_0xb81276(0x11f)],'duration':0xbb8});},0x1388));}async[_0x45b811(0xee)](_0x517967,_0x4498ac){const _0x52e73d=_0x45b811;await this[_0x52e73d(0x15d)](_0x517967,_0x4498ac),_0x517967[_0x52e73d(0xd1)][_0x52e73d(0x17f)]((0x0,_0x121a50[_0x52e73d(0xbb)])(this[_0x52e73d(0x9b)]))[_0x52e73d(0x145)](_0x5a4b3a=>{const _0x3761bc=_0x52e73d;_0x5a4b3a&&this[_0x3761bc(0xc2)](_0x5a4b3a);}),this[_0x52e73d(0xc3)][_0x52e73d(0xda)]['pipe']((0x0,_0x121a50[_0x52e73d(0xbb)])(this['dispose$']))['subscribe'](()=>this[_0x52e73d(0x15d)](_0x517967,_0x4498ac));}['_updateURLWithCurrentState'](_0x12b85f,_0xda826a=!0x1){const _0x37fa8d=_0x45b811;let _0x2f4dad=this[_0x37fa8d(0xc3)][_0x37fa8d(0x93)](_0x37fa8d(0x1a8));_0x12b85f[_0x37fa8d(0x134)]()!==_0x2f4dad&&this['_urlService'][_0x37fa8d(0x10a)](_0x37fa8d(0x1a8),_0x12b85f[_0x37fa8d(0x134)](),_0xda826a);}async['_updateSubUnitFromURLParams'](_0x2ff22f,_0x4afc0e){const _0x15e1af=_0x45b811;var _0x4bff17;if(!_0x4afc0e||!_0x2ff22f[_0x15e1af(0x1ba)](_0x4afc0e)){let _0x1f040c=_0x2ff22f['getUnhiddenWorksheets']()[0x0],_0x420c8f=_0x2ff22f[_0x15e1af(0x1ba)](_0x1f040c);if(!_0x420c8f)return;this['_updateURLWithCurrentState'](_0x420c8f,!0x0),await this[_0x15e1af(0x12a)][_0x15e1af(0x18f)](_0x136342['SetWorksheetActivateCommand']['id'],{'unitId':_0x2ff22f['getUnitId'](),'subUnitId':_0x1f040c});return;}((_0x4bff17=_0x2ff22f[_0x15e1af(0x11d)]())==null?void 0x0:_0x4bff17[_0x15e1af(0x134)]())!==_0x4afc0e&&await this[_0x15e1af(0x12a)][_0x15e1af(0x18f)](_0x136342[_0x15e1af(0x87)]['id'],{'unitId':_0x2ff22f[_0x15e1af(0x13e)](),'subUnitId':_0x4afc0e});}};_0x3b00ac=_0x58019a([_0x132994(0x0,_0x412010['ICommandService']),_0x132994(0x1,_0x284ec3[_0x45b811(0xf8)]),_0x132994(0x2,(0x0,_0x412010[_0x45b811(0x171)])(_0x284ec3[_0x45b811(0x148)])),_0x132994(0x3,(0x0,_0x412010[_0x45b811(0x171)])(_0x595023)),_0x132994(0x4,(0x0,_0x412010['Inject'])(_0x412010['LocaleService'])),_0x132994(0x5,_0x284ec3[_0x45b811(0x172)]),_0x132994(0x6,(0x0,_0x412010[_0x45b811(0x171)])(_0x110681['CollaborationController'])),_0x132994(0x7,_0x110681[_0x45b811(0x79)]),_0x132994(0x8,(0x0,_0x412010[_0x45b811(0x171)])(_0x110681[_0x45b811(0x77)])),_0x132994(0x9,_0x412010[_0x45b811(0x1b9)]),_0x132994(0xa,_0x2fda48[_0x45b811(0x182)])],_0x3b00ac);let _0x1f97de=class extends _0x412010[_0x45b811(0x14a)]{constructor(_0x25adf6=_0x5df63e,_0x5645d7,_0x2892e1){const _0x34fe32=_0x45b811;super(),this[_0x34fe32(0x13c)]=_0x25adf6,this[_0x34fe32(0x16d)]=_0x5645d7,this['_configService']=_0x2892e1;let {menu:_0x22c6a7,..._0x35fa08}=(0x0,_0x412010[_0x34fe32(0x14d)])({},_0x5df63e,this['_config']);_0x22c6a7&&this[_0x34fe32(0xd7)]['setConfig'](_0x34fe32(0x99),_0x22c6a7,{'merge':!0x0}),this['_configService'][_0x34fe32(0x144)](_0x149075,_0x35fa08),this[_0x34fe32(0x13c)][_0x34fe32(0xab)]&&this['_configService']['setConfig'](_0x25fbf7,this[_0x34fe32(0x13c)][_0x34fe32(0xab)]);}['onStarting'](){const _0x554ff7=_0x45b811;[[_0x595023],[_0x3b00ac]][_0x554ff7(0x85)](_0x350de7=>this[_0x554ff7(0x16d)]['add'](_0x350de7));}[_0x45b811(0x16a)](){const _0x40d4ce=_0x45b811;this[_0x40d4ce(0x16d)]['get'](_0x3b00ac);}};_0x57c8f2(_0x1f97de,'type',_0x412010[_0x45b811(0xe7)][_0x45b811(0x89)]),_0x57c8f2(_0x1f97de,_0x45b811(0xd8),_0x45b811(0xb1)),_0x57c8f2(_0x1f97de,_0x45b811(0x114),_0x42d231),_0x57c8f2(_0x1f97de,'version',_0x108dc4),_0x1f97de=_0x58019a([(0x0,_0x412010[_0x45b811(0xa3)])(_0xa92606['UniverLicensePlugin']),_0x132994(0x1,(0x0,_0x412010['Inject'])(_0x412010[_0x45b811(0x192)])),_0x132994(0x2,_0x412010['IConfigService'])],_0x1f97de),_0xdb52b[_0x45b811(0x8e)]=_0x149075,Object[_0x45b811(0x128)](_0xdb52b,_0x45b811(0xf9),{'enumerable':!0x0,'get':function(){return _0x595023;}}),Object[_0x45b811(0x128)](_0xdb52b,_0x45b811(0x16f),{'enumerable':!0x0,'get':function(){return _0x2f2a1f;}}),_0xdb52b[_0x45b811(0x7d)]=_0x549959,_0xdb52b[_0x45b811(0xe1)]=_0x25fbf7,_0xdb52b[_0x45b811(0xa1)]=_0x40de2d,Object[_0x45b811(0x128)](_0xdb52b,_0x45b811(0xa4),{'enumerable':!0x0,'get':function(){return _0x39d9f0;}}),Object['defineProperty'](_0xdb52b,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return _0x1f97de;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,52 +46,52 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@univerjs/icons": "^1.1.1",
|
|
49
|
-
"@univerjs-pro/collaboration-client": "0.21.
|
|
50
|
-
"@univerjs-pro/
|
|
51
|
-
"@univerjs-pro/collaboration
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/
|
|
54
|
-
"@univerjs-pro/
|
|
55
|
-
"@univerjs-pro/sheets-
|
|
56
|
-
"@univerjs-pro/sheets-
|
|
57
|
-
"@univerjs-pro/sheets-
|
|
58
|
-
"@univerjs-pro/sheets-
|
|
59
|
-
"@univerjs/data-validation": "0.21.
|
|
60
|
-
"@univerjs
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs-pro/sheets-shape
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/drawing
|
|
68
|
-
"@univerjs/engine-render": "0.21.
|
|
69
|
-
"@univerjs/engine-formula": "0.21.
|
|
70
|
-
"@univerjs/network": "0.21.
|
|
71
|
-
"@univerjs/sheets": "0.21.
|
|
72
|
-
"@univerjs/rpc": "0.21.
|
|
73
|
-
"@univerjs/sheets-conditional-formatting": "0.21.
|
|
74
|
-
"@univerjs/sheets-conditional-formatting-ui": "0.21.
|
|
75
|
-
"@univerjs/sheets-data-validation": "0.21.
|
|
76
|
-
"@univerjs/sheets-
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/sheets-
|
|
79
|
-
"@univerjs/sheets-filter": "0.21.
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/sheets-formula-ui": "0.21.
|
|
82
|
-
"@univerjs/sheets-hyper-link": "0.21.
|
|
83
|
-
"@univerjs/sheets-numfmt": "0.21.
|
|
84
|
-
"@univerjs/sheets-table": "0.21.
|
|
85
|
-
"@univerjs/sheets-ui": "0.21.
|
|
86
|
-
"@univerjs/ui": "0.21.
|
|
87
|
-
"@univerjs/sheets-
|
|
88
|
-
"@univerjs/
|
|
49
|
+
"@univerjs-pro/collaboration-client": "0.21.1",
|
|
50
|
+
"@univerjs-pro/edit-history-viewer": "0.21.1",
|
|
51
|
+
"@univerjs-pro/collaboration": "0.21.1",
|
|
52
|
+
"@univerjs-pro/license": "0.21.1",
|
|
53
|
+
"@univerjs-pro/collaboration-client-ui": "0.21.1",
|
|
54
|
+
"@univerjs-pro/sheets-chart": "0.21.1",
|
|
55
|
+
"@univerjs-pro/sheets-chart-ui": "0.21.1",
|
|
56
|
+
"@univerjs-pro/sheets-pivot": "0.21.1",
|
|
57
|
+
"@univerjs-pro/sheets-shape-ui": "0.21.1",
|
|
58
|
+
"@univerjs-pro/sheets-sparkline": "0.21.1",
|
|
59
|
+
"@univerjs/data-validation": "0.21.1",
|
|
60
|
+
"@univerjs/core": "0.21.1",
|
|
61
|
+
"@univerjs/design": "0.21.1",
|
|
62
|
+
"@univerjs-pro/sheets-shape": "0.21.1",
|
|
63
|
+
"@univerjs/docs": "0.21.1",
|
|
64
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.21.1",
|
|
65
|
+
"@univerjs/docs-ui": "0.21.1",
|
|
66
|
+
"@univerjs/drawing-ui": "0.21.1",
|
|
67
|
+
"@univerjs/drawing": "0.21.1",
|
|
68
|
+
"@univerjs/engine-render": "0.21.1",
|
|
69
|
+
"@univerjs/engine-formula": "0.21.1",
|
|
70
|
+
"@univerjs/network": "0.21.1",
|
|
71
|
+
"@univerjs/sheets": "0.21.1",
|
|
72
|
+
"@univerjs/rpc": "0.21.1",
|
|
73
|
+
"@univerjs/sheets-conditional-formatting": "0.21.1",
|
|
74
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.21.1",
|
|
75
|
+
"@univerjs/sheets-data-validation": "0.21.1",
|
|
76
|
+
"@univerjs/sheets-drawing": "0.21.1",
|
|
77
|
+
"@univerjs/sheets-data-validation-ui": "0.21.1",
|
|
78
|
+
"@univerjs/sheets-filter": "0.21.1",
|
|
79
|
+
"@univerjs/sheets-filter-ui": "0.21.1",
|
|
80
|
+
"@univerjs/sheets-drawing-ui": "0.21.1",
|
|
81
|
+
"@univerjs/sheets-formula-ui": "0.21.1",
|
|
82
|
+
"@univerjs/sheets-hyper-link": "0.21.1",
|
|
83
|
+
"@univerjs/sheets-numfmt": "0.21.1",
|
|
84
|
+
"@univerjs/sheets-table": "0.21.1",
|
|
85
|
+
"@univerjs/sheets-hyper-link-ui": "0.21.1",
|
|
86
|
+
"@univerjs/sheets-ui": "0.21.1",
|
|
87
|
+
"@univerjs/sheets-formula": "0.21.1",
|
|
88
|
+
"@univerjs/ui": "0.21.1"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"rxjs": "7.8.2",
|
|
92
92
|
"typescript": "^6.0.3",
|
|
93
93
|
"vitest": "^4.1.4",
|
|
94
|
-
"@univerjs-infra/shared": "0.21.
|
|
94
|
+
"@univerjs-infra/shared": "0.21.1"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"test": "vitest run",
|