@univerjs-pro/edit-history-loader 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x22adcb=_0x2b19;(function(_0x3aa658,_0x138e89){const _0x3e480b=_0x2b19,_0x30111d=_0x3aa658();while(!![]){try{const _0x5ab156=parseInt(_0x3e480b(0x149))/0x1*(-parseInt(_0x3e480b(0x1a5))/0x2)+parseInt(_0x3e480b(0x14b))/0x3+-parseInt(_0x3e480b(0x128))/0x4+-parseInt(_0x3e480b(0x1ba))/0x5+-parseInt(_0x3e480b(0x1bb))/0x6+parseInt(_0x3e480b(0x223))/0x7*(-parseInt(_0x3e480b(0x1c3))/0x8)+parseInt(_0x3e480b(0x1fc))/0x9*(parseInt(_0x3e480b(0x1a2))/0xa);if(_0x5ab156===_0x138e89)break;else _0x30111d['push'](_0x30111d['shift']());}catch(_0x4fd82b){_0x30111d['push'](_0x30111d['shift']());}}}(_0x427b,0xe912b),Object['defineProperty'](exports,Symbol[_0x22adcb(0x18f)],{'value':_0x22adcb(0x14f)}));let e=require(`@univerjs/core`),t=require(`@univerjs/sheets`),n=require(`@univerjs-pro/collaboration`),r=require(`@univerjs-pro/collaboration-client`),i=require(`@univerjs-pro/edit-history-viewer`),a=require(`@univerjs-pro/license`),o=require(`@univerjs-pro/sheets-chart`),s=require(`@univerjs-pro/sheets-chart-ui`),c=require(`@univerjs-pro/sheets-pivot`),l=require(`@univerjs-pro/sheets-shape`),u=require(`@univerjs-pro/sheets-shape-ui`),d=require(`@univerjs-pro/sheets-sparkline`),f=require(`@univerjs-pro/sheets-sparkline-ui`),p=require(`@univerjs/data-validation`),m=require(`@univerjs/design`),h=require(`@univerjs/docs`),g=require(`@univerjs/docs-ui`),_=require(`@univerjs/drawing`),v=require(`@univerjs/drawing-ui`),y=require(`@univerjs/engine-formula`),b=require(`@univerjs/engine-render`),x=require(`@univerjs/network`),S=require(`@univerjs/rpc`),C=require(`@univerjs/sheets-conditional-formatting`),ee=require(`@univerjs/sheets-conditional-formatting-ui`),w=require(`@univerjs/sheets-data-validation`),T=require(`@univerjs/sheets-data-validation-ui`),E=require(`@univerjs/sheets-drawing`),D=require(`@univerjs/sheets-drawing-ui`),O=require(`@univerjs/sheets-filter`),te=require(`@univerjs/sheets-filter-ui`),ne=require(`@univerjs/sheets-formula`),re=require(`@univerjs/sheets-formula-ui`),ie=require(`@univerjs/sheets-hyper-link`),k=require(`@univerjs/sheets-hyper-link-ui`),A=require(`@univerjs/sheets-numfmt`),j=require(`@univerjs/sheets-table`),M=require(`@univerjs/sheets-ui`),N=require(`@univerjs/ui`),P=require(`rxjs`),F=require(`@univerjs-pro/collaboration-client-ui`),I=require(`@univerjs/icons`);const L=_0x22adcb(0x193);Symbol(L);const R={};function _0x2b19(_0x13ea07,_0x362d1e){_0x13ea07=_0x13ea07-0x119;const _0x427b90=_0x427b();let _0x2b1963=_0x427b90[_0x13ea07];return _0x2b1963;}function z(_0x50910d){'@babel/helpers - typeof';const _0x974d19=_0x22adcb;return z=typeof Symbol==_0x974d19(0x1d6)&&typeof Symbol['iterator']==_0x974d19(0x1ce)?function(_0x1b9171){return typeof _0x1b9171;}:function(_0x1dfaa0){const _0x1762de=_0x974d19;return _0x1dfaa0&&typeof Symbol==_0x1762de(0x1d6)&&_0x1dfaa0[_0x1762de(0x165)]===Symbol&&_0x1dfaa0!==Symbol[_0x1762de(0x1fa)]?_0x1762de(0x1ce):typeof _0x1dfaa0;},z(_0x50910d);}function ae(_0x2adac1,_0x24d995){const _0x1d7e75=_0x22adcb;if(z(_0x2adac1)!=_0x1d7e75(0x228)||!_0x2adac1)return _0x2adac1;var _0x1fe650=_0x2adac1[Symbol[_0x1d7e75(0x166)]];if(_0x1fe650!==void 0x0){var _0x23cde4=_0x1fe650[_0x1d7e75(0x1dc)](_0x2adac1,_0x24d995||_0x1d7e75(0x188));if(z(_0x23cde4)!='object')return _0x23cde4;throw TypeError(_0x1d7e75(0x124));}return(_0x24d995==='string'?String:Number)(_0x2adac1);}function oe(_0x417b92){const _0x493800=_0x22adcb;var _0x440e31=ae(_0x417b92,_0x493800(0x12c));return z(_0x440e31)==_0x493800(0x1ce)?_0x440e31:_0x440e31+'';}function B(_0x1caad4,_0x4d52f1,_0x31f4e3){const _0x56c270=_0x22adcb;return(_0x4d52f1=oe(_0x4d52f1))in _0x1caad4?Object[_0x56c270(0x12a)](_0x1caad4,_0x4d52f1,{'value':_0x31f4e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1caad4[_0x4d52f1]=_0x31f4e3,_0x1caad4;}function V(_0x3c7729,_0x4c0321){return function(_0x39e251,_0x157b2b){_0x4c0321(_0x39e251,_0x157b2b,_0x3c7729);};}function H(_0x1c8036,_0x9f054b,_0x2dabe3,_0x2768c4){const _0x1936f1=_0x22adcb;var _0x5ea868=arguments[_0x1936f1(0x1dd)],_0x5d0a70=_0x5ea868<0x3?_0x9f054b:_0x2768c4===null?_0x2768c4=Object['getOwnPropertyDescriptor'](_0x9f054b,_0x2dabe3):_0x2768c4,_0x16f848;if(typeof Reflect==_0x1936f1(0x228)&&typeof Reflect['decorate']==_0x1936f1(0x1d6))_0x5d0a70=Reflect[_0x1936f1(0x213)](_0x1c8036,_0x9f054b,_0x2dabe3,_0x2768c4);else{for(var _0x404edf=_0x1c8036[_0x1936f1(0x1dd)]-0x1;_0x404edf>=0x0;_0x404edf--)(_0x16f848=_0x1c8036[_0x404edf])&&(_0x5d0a70=(_0x5ea868<0x3?_0x16f848(_0x5d0a70):_0x5ea868>0x3?_0x16f848(_0x9f054b,_0x2dabe3,_0x5d0a70):_0x16f848(_0x9f054b,_0x2dabe3))||_0x5d0a70);}return _0x5ea868>0x3&&_0x5d0a70&&Object['defineProperty'](_0x9f054b,_0x2dabe3,_0x5d0a70),_0x5d0a70;}const U=_0x22adcb(0x204),W='univer-history-container';let G=class extends e[_0x22adcb(0x201)]{constructor(_0x283d63,_0x2f681f,_0x4c2d0a,_0x4f0ff5,_0x5cedc4,_0x523a60,_0x1e1cb6,_0x5dd80d,_0x4704d7,_0x5e08be){const _0x2a2656=_0x22adcb;super(),this[_0x2a2656(0x234)]=_0x283d63,this[_0x2a2656(0x16b)]=_0x2f681f,this[_0x2a2656(0x232)]=_0x4c2d0a,this[_0x2a2656(0x17b)]=_0x4f0ff5,this[_0x2a2656(0x195)]=_0x5cedc4,this[_0x2a2656(0x230)]=_0x523a60,this[_0x2a2656(0x1f3)]=_0x1e1cb6,this[_0x2a2656(0x172)]=_0x5dd80d,this['_sidebarService']=_0x4704d7,this[_0x2a2656(0x229)]=_0x5e08be,B(this,_0x2a2656(0x207),new P[(_0x2a2656(0x1f9))](null)),B(this,_0x2a2656(0x119),this[_0x2a2656(0x207)]['asObservable']()),B(this,_0x2a2656(0x13a),new e[(_0x2a2656(0x1af))]()),B(this,_0x2a2656(0x18d),new Map()),B(this,_0x2a2656(0x16a),null),this['_init']();}get[_0x22adcb(0x148)](){const _0x12b179=_0x22adcb;return this[_0x12b179(0x207)][_0x12b179(0x144)];}['_init'](){const _0x51a5f6=_0x22adcb;this['_initContainer'](),this[_0x51a5f6(0x151)]();}[_0x22adcb(0x236)](){const _0x358525=_0x22adcb;var _0x4f6e3e;let _0xdaeac9=(_0x4f6e3e=this['_configService'][_0x358525(0x12e)]('UNIVER_CONTAINER_ID'))==null?_0x358525(0x13f):_0x4f6e3e,_0x50dbd6=document[_0x358525(0x1bc)](_0xdaeac9);if(!_0x50dbd6)return;let _0x11e732=document[_0x358525(0x15c)](_0x358525(0x1c9));_0x11e732['id']=W,_0x11e732[_0x358525(0x1a0)][_0x358525(0x20b)]='history-container',_0x11e732[_0x358525(0x129)][_0x358525(0x1e7)]='absolute',_0x11e732[_0x358525(0x129)]['top']='0',_0x11e732['style'][_0x358525(0x15d)]='0',_0x11e732[_0x358525(0x129)][_0x358525(0x167)]=_0x358525(0x1b9),_0x11e732[_0x358525(0x129)][_0x358525(0x1b1)]=_0x358525(0x1b9),_0x11e732[_0x358525(0x129)][_0x358525(0x1be)]='49',_0x11e732[_0x358525(0x129)]['display']=_0x358525(0x11f),_0x50dbd6[_0x358525(0x12b)](_0x11e732);}[_0x22adcb(0x151)](){const _0x56f96d=_0x22adcb;[[b[_0x56f96d(0x1d9)]],[N[_0x56f96d(0x1d0)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[N[_0x56f96d(0x20c)],null]]}],[x['UniverNetworkPlugin']],[_['UniverDrawingPlugin'],{'override':[[_[_0x56f96d(0x1c1)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g[_0x56f96d(0x1ef)]],[A[_0x56f96d(0x21a)]],[t[_0x56f96d(0x238)],{'notExecuteFormula':!0x0}],[M[_0x56f96d(0x215)]],[ne[_0x56f96d(0x20f)]],[re[_0x56f96d(0x1d3)]],[n[_0x56f96d(0x19f)]],[O[_0x56f96d(0x160)]],[te[_0x56f96d(0x18b)]],[C['UniverSheetsConditionalFormattingPlugin']],[ee[_0x56f96d(0x153)]],[ie[_0x56f96d(0x202)]],[k[_0x56f96d(0x179)]],[p['UniverDataValidationPlugin']],[w['UniverSheetsDataValidationPlugin']],[T[_0x56f96d(0x182)]],[y['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[v[_0x56f96d(0x194)]],[E[_0x56f96d(0x1f2)]],[D[_0x56f96d(0x1e8)]],[d[_0x56f96d(0x1c5)]],[f[_0x56f96d(0x208)]],[o['UniverSheetsChartPlugin']],[s[_0x56f96d(0x122)]],[l[_0x56f96d(0x19b)]],[u[_0x56f96d(0x14e)]],[c[_0x56f96d(0x18a)],{'notExecuteFormula':!0x0}],[j[_0x56f96d(0x186)]]][_0x56f96d(0x136)](([_0x339bd0,_0x279506])=>this[_0x56f96d(0x217)](_0x339bd0,_0x279506));}[_0x22adcb(0x145)](){const _0x27132d=_0x22adcb;super[_0x27132d(0x145)](),this['unMountHistoryContent'](),this[_0x27132d(0x18d)][_0x27132d(0x143)]();}[_0x22adcb(0x217)](_0x5f50d0,_0x8a7bc8,_0x4a249e){const _0x153141=_0x22adcb;if(this[_0x153141(0x18d)][_0x153141(0x183)](_0x5f50d0[_0x153141(0x17d)])&&!_0x4a249e)throw Error(_0x153141(0x181)+_0x5f50d0[_0x153141(0x17d)]+_0x153141(0x11d));this[_0x153141(0x18d)][_0x153141(0x227)](_0x5f50d0['pluginName'],[_0x5f50d0,_0x8a7bc8]);}[_0x22adcb(0x197)](){const _0x3b8ba7=_0x22adcb;return Array[_0x3b8ba7(0x1cc)](this[_0x3b8ba7(0x18d)]['values']());}[_0x22adcb(0x13b)](_0x4d1014,_0x1a1e60){const _0x12ecff=_0x22adcb;let _0x14aa7e=document[_0x12ecff(0x1bc)](W);_0x14aa7e&&(_0x14aa7e[_0x12ecff(0x129)][_0x12ecff(0x1f6)]=_0x12ecff(0x159),this['_initUniver'](_0x4d1014,W,_0x1a1e60));}[_0x22adcb(0x1bf)](){const _0x171ee9=_0x22adcb;var _0x58cde1;this[_0x171ee9(0x13a)][_0x171ee9(0x145)](),(_0x58cde1=this[_0x171ee9(0x148)])==null||_0x58cde1[_0x171ee9(0x145)](),this[_0x171ee9(0x207)][_0x171ee9(0x206)](null);let _0x3e168c=document[_0x171ee9(0x1bc)](W);_0x3e168c&&(_0x3e168c[_0x171ee9(0x129)][_0x171ee9(0x1f6)]='none',this[_0x171ee9(0x16a)]&&(this[_0x171ee9(0x16a)][_0x171ee9(0x1cf)](),this['_internalWebWorker']=null));}[_0x22adcb(0x156)](_0x1da18d,_0x4a37b9,_0x1d97bc){const _0x4544da=_0x22adcb;var _0x326f06,_0x3d83be,_0x304044,_0x549699,_0x1c9095;if(this[_0x4544da(0x148)])return;let _0x1cf35c=new e[(_0x4544da(0x134))]({'locales':{[this[_0x4544da(0x234)][_0x4544da(0x1e6)]()]:this[_0x4544da(0x234)][_0x4544da(0x17e)]()},'override':[[e[_0x4544da(0x21d)],{'useClass':r[_0x4544da(0x15a)]}]]}),_0xacd676=_0x1cf35c[_0x4544da(0x1a1)]();this['disposeWithMe'](this[_0x4544da(0x229)]['darkMode$'][_0x4544da(0x1ca)](_0x21c688=>{const _0x267846=_0x4544da;_0xacd676[_0x267846(0x200)](e[_0x267846(0x1e0)])[_0x267846(0x11c)](_0x21c688);})),this[_0x4544da(0x1cd)](this[_0x4544da(0x229)][_0x4544da(0x1f1)]['subscribe'](_0x3a835b=>{const _0x139302=_0x4544da;_0xacd676[_0x139302(0x200)](e[_0x139302(0x1e0)])['setTheme'](_0x3a835b);})),_0xacd676[_0x4544da(0x200)](e[_0x4544da(0x190)])[_0x4544da(0x22e)](this[_0x4544da(0x234)][_0x4544da(0x1e6)]()),_0xacd676[_0x4544da(0x200)](e[_0x4544da(0x15f)])[_0x4544da(0x19e)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x4544da(0x232)][_0x4544da(0x12e)](r[_0x4544da(0x1da)]));let _0x11820c=this[_0x4544da(0x232)][_0x4544da(0x12e)](a[_0x4544da(0x1b5)]);_0x11820c&&_0x1cf35c[_0x4544da(0x217)](a['UniverLicensePlugin'],{'license':_0x11820c['ls']});let _0x3eb93c=(_0x326f06=this[_0x4544da(0x232)][_0x4544da(0x12e)](_0x4544da(0x193)))==null?void 0x0:_0x326f06[_0x4544da(0x132)],_0x56e344=!!_0x3eb93c;_0x56e344&&(this[_0x4544da(0x16a)]=_0x3eb93c instanceof Worker?_0x3eb93c:null,_0x1cf35c[_0x4544da(0x217)](S[_0x4544da(0x1b7)],{'workerURL':_0x3eb93c})),this['_pluginMap'][_0x4544da(0x136)](([_0x271eb8,_0x12677b])=>{_0x1cf35c['registerPlugin'](_0x271eb8,_0x12677b);}),_0x1cf35c['registerPlugin'](i[_0x4544da(0x1e4)],{'historyListServerUrl':(_0x3d83be=this[_0x4544da(0x232)]['getConfig'](_0x4544da(0x193)))==null?void 0x0:_0x3d83be['historyListServerUrl'],'historyPanelComponentKey':(_0x304044=this['_configService']['getConfig'](_0x4544da(0x193)))==null?void 0x0:_0x304044[_0x4544da(0x1de)],'historyPanelHidden':(_0x549699=this[_0x4544da(0x232)][_0x4544da(0x12e)](_0x4544da(0x193)))==null?void 0x0:_0x549699[_0x4544da(0x1b3)],'historyAIassistantEnabled':(_0x1c9095=this[_0x4544da(0x232)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x1c9095[_0x4544da(0x163)]}),_0xacd676[_0x4544da(0x1a4)](_0x59453d=>{const _0x2fdf1a=_0x4544da;this[_0x2fdf1a(0x141)](_0x59453d,_0x1da18d);}),this[_0x4544da(0x207)][_0x4544da(0x206)](_0x1cf35c);let _0x981f70=_0xacd676['get'](i[_0x4544da(0x1db)]),_0x3a88e2=this[_0x4544da(0x131)](_0x1da18d),_0x42014b=()=>{const _0x4fcb6d=_0x4544da;_0x1d97bc?_0x981f70['triggerCustomVersions'](_0x1da18d,_0x4a37b9,_0x3a88e2,_0x1d97bc):_0x981f70[_0x4fcb6d(0x121)](_0x1da18d,_0x4a37b9,_0x3a88e2);};if(this[_0x4544da(0x195)][_0x4544da(0x224)]({'content':this[_0x4544da(0x234)]['t']('editHistory.info.initializing'),'type':m[_0x4544da(0x1c2)][_0x4544da(0x174)]}),_0x56e344)try{_0xacd676[_0x4544da(0x200)](S[_0x4544da(0x1c7)])[_0x4544da(0x22c)]()[_0x4544da(0x21e)](()=>{_0x42014b();});}catch{_0x42014b();}else _0x42014b();}[_0x22adcb(0x141)](_0x2cbe22,_0x4beb1c){const _0x351a23=_0x22adcb;let _0x44a3cf=_0x2cbe22['get'](i['HistoryManagerService']);this[_0x351a23(0x13a)][_0x351a23(0x1e5)](_0x44a3cf[_0x351a23(0x18c)][_0x351a23(0x1ca)](_0x313433=>{const _0x4c6574=_0x351a23;switch(_0x313433){case i[_0x4c6574(0x189)][_0x4c6574(0x22a)]:this[_0x4c6574(0x172)]['closeAll'](),this[_0x4c6574(0x137)][_0x4c6574(0x177)]();break;case i[_0x4c6574(0x189)][_0x4c6574(0x154)]:this[_0x4c6574(0x17b)][_0x4c6574(0x1fe)](q['id']),this[_0x4c6574(0x1bf)]();break;case i[_0x4c6574(0x189)][_0x4c6574(0x158)]:this['unMountHistoryContent'](),this[_0x4c6574(0x195)][_0x4c6574(0x224)]({'content':this[_0x4c6574(0x234)]['t']('editHistory.panel.listFetchError'),'type':m[_0x4c6574(0x1c2)][_0x4c6574(0x158)],'duration':0xbb8});break;default:break;}})),this[_0x351a23(0x13a)][_0x351a23(0x1e5)](_0x44a3cf[_0x351a23(0x1d4)][_0x351a23(0x1ca)](async _0x8853aa=>{const _0x1155d9=_0x351a23;_0x8853aa&&this[_0x1155d9(0x17b)][_0x1155d9(0x1fe)](n['RevertRevisionMutation']['id'],{'unitId':_0x4beb1c,'revision':_0x8853aa});}));}['_checkCanRevert'](_0x7e71a9){const _0xa186d4=_0x22adcb;let _0x29f508=this[_0xa186d4(0x16b)]['getUnit'](_0x7e71a9)['getSheets']()[_0xa186d4(0x1c6)](_0x40a55d=>_0x40a55d[_0xa186d4(0x16f)]()),_0x1ab93e=new t[(_0xa186d4(0x170))](_0x7e71a9)['id'],_0x1a5300=_0x29f508[_0xa186d4(0x1c6)](_0x362ece=>new t[(_0xa186d4(0x1f7))](_0x7e71a9,_0x362ece)['id']),_0x42f014=_0x29f508['map'](_0x3186f6=>this[_0xa186d4(0x1f3)][_0xa186d4(0x14d)](_0x7e71a9,_0x3186f6)['map'](_0x5e1a62=>new t[(_0xa186d4(0x1b6))](_0x7e71a9,_0x3186f6,_0x5e1a62['permissionId'])['id']))[_0xa186d4(0x17a)](),_0x51b272=new t['WorkbookRecoverHistoryPermission'](_0x7e71a9)['id'];return this[_0xa186d4(0x230)][_0xa186d4(0x15e)]([_0x1ab93e,..._0x1a5300,..._0x42f014,_0x51b272])['every'](_0x73b5c5=>!!_0x73b5c5['value']);}};G=H([V(0x0,(0x0,e[_0x22adcb(0x198)])(e[_0x22adcb(0x190)])),V(0x1,e[_0x22adcb(0x22b)]),V(0x2,e[_0x22adcb(0x15f)]),V(0x3,e[_0x22adcb(0x1ee)]),V(0x4,N[_0x22adcb(0x1f5)]),V(0x5,e[_0x22adcb(0x1a6)]),V(0x6,(0x0,e[_0x22adcb(0x198)])(t['RangeProtectionRuleModel'])),V(0x7,(0x0,e['Inject'])(N['IDialogService'])),V(0x8,(0x0,e[_0x22adcb(0x198)])(N[_0x22adcb(0x17f)])),V(0x9,(0x0,e[_0x22adcb(0x198)])(e['ThemeService']))],G);const K={'id':_0x22adcb(0x157),'type':e[_0x22adcb(0x13d)][_0x22adcb(0x1ec)],'handler':_0x51a86a=>{const _0x2b6300=_0x22adcb;let _0x5f0d14=_0x51a86a[_0x2b6300(0x200)](G),{unitId:_0x14eee4}=(0x0,t[_0x2b6300(0x212)])(_0x51a86a['get'](e[_0x2b6300(0x22b)]))||{};return _0x14eee4?(_0x5f0d14['mountHistoryContent'](_0x14eee4),!0x0):!0x1;}},q={'id':'univer.operation.exit-edit-history','type':e[_0x22adcb(0x13d)][_0x22adcb(0x1ec)],'handler':()=>!0x0};var se=_0x22adcb(0x199),ce=_0x22adcb(0x140);function le(_0x500626){const _0x144d03=_0x22adcb;return{'id':K['id'],'type':N[_0x144d03(0x1d5)][_0x144d03(0x161)],'icon':_0x144d03(0x139),'tooltip':_0x144d03(0x1ff),'hidden$':(0x0,N[_0x144d03(0x14c)])(_0x500626,e[_0x144d03(0x1b2)][_0x144d03(0x155)]),'disabled$':(0x0,M[_0x144d03(0x1b8)])(_0x500626,{'workbookTypes':[t[_0x144d03(0x162)]],'worksheetTypes':[],'rangeTypes':[]})};}const ue={[N[_0x22adcb(0x1fd)][_0x22adcb(0x125)]]:{[K['id']]:{'order':0.2,'menuItemFactory':le}}};let J=class extends e[_0x22adcb(0x164)]{constructor(_0x1343a1,_0x1b5440,_0x1c7122,_0x5ea8b7,_0x2ea3f9,_0x3e24fc,_0x1ad58b,_0x490b8a,_0x3c3c73,_0x4419b9,_0x5d4847){const _0x5773dd=_0x22adcb;super(),this[_0x5773dd(0x17b)]=_0x1343a1,this[_0x5773dd(0x209)]=_0x1b5440,this['_componentManager']=_0x1c7122,this[_0x5773dd(0x1a8)]=_0x5ea8b7,this[_0x5773dd(0x234)]=_0x2ea3f9,this[_0x5773dd(0x195)]=_0x3e24fc,this[_0x5773dd(0x11a)]=_0x1ad58b,this[_0x5773dd(0x126)]=_0x490b8a,this[_0x5773dd(0x1e9)]=_0x3c3c73,this[_0x5773dd(0x16b)]=_0x4419b9,this[_0x5773dd(0x19c)]=_0x5d4847,B(this,_0x5773dd(0x21c),null),this[_0x5773dd(0x185)]();}[_0x22adcb(0x185)](){const _0x19e8f0=_0x22adcb;[K,q][_0x19e8f0(0x136)](_0x168d1c=>this[_0x19e8f0(0x1cd)]((0x0,e[_0x19e8f0(0x1eb)])(this['_commandService'][_0x19e8f0(0x127)](_0x168d1c)))),this[_0x19e8f0(0x1cd)](this[_0x19e8f0(0x176)][_0x19e8f0(0x1ab)](_0x19e8f0(0x139),I['HistoryIcon'])),this[_0x19e8f0(0x209)][_0x19e8f0(0x138)](ue),this['disposeWithMe'](this[_0x19e8f0(0x17b)][_0x19e8f0(0x15b)](async(_0xcc0402,_0x40292e)=>{const _0x1c8240=_0x19e8f0;if(_0xcc0402['id']===n[_0x1c8240(0x16e)]['id']){let {unitId:_0x36b14e}=_0xcc0402[_0x1c8240(0x130)];this[_0x1c8240(0x195)][_0x1c8240(0x224)]({'content':this[_0x1c8240(0x234)]['t']('editHistory.panel.reverting'),'type':m['MessageType'][_0x1c8240(0x174)],'duration':0x1388});let _0x5875bf=this['_collaborationController']['getCollabEntity'](_0x36b14e);_0x40292e!=null&&_0x40292e[_0x1c8240(0x1f4)]?this[_0x1c8240(0x171)](_0x5875bf,async()=>(setTimeout(()=>window[_0x1c8240(0x231)]['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x5875bf,async()=>{const _0x5a13bd=_0x1c8240;let _0x3313eb=this[_0x5a13bd(0x16b)]['getCurrentUnitOfType'](e['UniverInstanceType'][_0x5a13bd(0x155)]),_0x1833ee=_0x3313eb==null?void 0x0:_0x3313eb[_0x5a13bd(0x237)]();if(!_0x1833ee)return!0x1;this[_0x5a13bd(0x16b)][_0x5a13bd(0x21f)](_0x36b14e);let _0x3aed6f=await this[_0x5a13bd(0x1e9)]['loadUnit'](_0x36b14e,e['UniverInstanceType'][_0x5a13bd(0x155)]);return _0x3aed6f&&_0x3aed6f instanceof e[_0x5a13bd(0x152)]?(await this[_0x5a13bd(0x187)](_0x3aed6f,_0x1833ee['getSheetId']()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x246f9a,_0x48e7bf,_0x9e496c=!0x1){const _0x1f05c3=_0x22adcb;let _0xcec212=(0x0,P['combineLatest'])([_0x246f9a[_0x1f05c3(0x14a)][_0x1f05c3(0x1df)],_0x246f9a[_0x1f05c3(0x17c)]])[_0x1f05c3(0x1ca)](async([_0x423fc4,_0x54f39d])=>{const _0x4fc6ab=_0x1f05c3;if(_0x423fc4['eventID']===n[_0x4fc6ab(0x1f0)][_0x4fc6ab(0x11e)]&&(_0x54f39d==null?void 0x0:_0x54f39d['status'])===r[_0x4fc6ab(0x218)][_0x4fc6ab(0x184)]&&_0x423fc4[_0x4fc6ab(0x1ac)][_0x4fc6ab(0x1bd)][_0x4fc6ab(0x22d)](_0x189049=>_0x189049['id']===n[_0x4fc6ab(0x16e)]['id'])&&await _0x48e7bf()){var _0x4b4d45;this[_0x4fc6ab(0x1a8)][_0x4fc6ab(0x1bf)](),_0xcec212['unsubscribe'](),this[_0x4fc6ab(0x21c)]&&clearTimeout(this[_0x4fc6ab(0x21c)]),await((_0x4b4d45=this[_0x4fc6ab(0x126)])==null?void 0x0:_0x4b4d45[_0x4fc6ab(0x123)]()),this[_0x4fc6ab(0x195)][_0x4fc6ab(0x1a9)]();}});_0x9e496c&&(this[_0x1f05c3(0x21c)]=setTimeout(()=>{const _0x50ed2e=_0x1f05c3;_0xcec212[_0x50ed2e(0x1ad)](),this[_0x50ed2e(0x195)][_0x50ed2e(0x224)]({'content':this['_localeService']['t'](_0x50ed2e(0x1aa)),'type':m['MessageType']['Error'],'duration':0xbb8});},0x1388));}async[_0x22adcb(0x187)](_0x4a40ed,_0x2180a4){const _0x54e384=_0x22adcb;await this[_0x54e384(0x1e3)](_0x4a40ed,_0x2180a4),_0x4a40ed[_0x54e384(0x226)][_0x54e384(0x19d)]((0x0,P[_0x54e384(0x146)])(this[_0x54e384(0x18e)]))['subscribe'](_0x5c9d5f=>{const _0x24b27c=_0x54e384;_0x5c9d5f&&this[_0x24b27c(0x211)](_0x5c9d5f);}),this[_0x54e384(0x19c)][_0x54e384(0x1c0)][_0x54e384(0x19d)]((0x0,P[_0x54e384(0x146)])(this['dispose$']))[_0x54e384(0x1ca)](()=>this[_0x54e384(0x1e3)](_0x4a40ed,_0x2180a4));}[_0x22adcb(0x211)](_0xd41950,_0x42739a=!0x1){const _0x550c49=_0x22adcb;let _0x48dc37=this[_0x550c49(0x19c)][_0x550c49(0x12d)](_0x550c49(0x1f8));_0xd41950[_0x550c49(0x16f)]()!==_0x48dc37&&this[_0x550c49(0x19c)][_0x550c49(0x219)](_0x550c49(0x1f8),_0xd41950[_0x550c49(0x16f)](),_0x42739a);}async[_0x22adcb(0x1e3)](_0xb55e5,_0x29865d){const _0xa60aca=_0x22adcb;var _0x36656c;if(!_0x29865d||!_0xb55e5[_0xa60aca(0x142)](_0x29865d)){let _0x3f5eaf=_0xb55e5[_0xa60aca(0x150)]()[0x0],_0xa1e243=_0xb55e5[_0xa60aca(0x142)](_0x3f5eaf);if(!_0xa1e243)return;this[_0xa60aca(0x211)](_0xa1e243,!0x0),await this[_0xa60aca(0x17b)][_0xa60aca(0x1fe)](t[_0xa60aca(0x12f)]['id'],{'unitId':_0xb55e5[_0xa60aca(0x191)](),'subUnitId':_0x3f5eaf});return;}((_0x36656c=_0xb55e5[_0xa60aca(0x237)]())==null?void 0x0:_0x36656c[_0xa60aca(0x16f)]())!==_0x29865d&&await this['_commandService'][_0xa60aca(0x1fe)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0xb55e5[_0xa60aca(0x191)](),'subUnitId':_0x29865d});}};J=H([V(0x0,e[_0x22adcb(0x1ee)]),V(0x1,N[_0x22adcb(0x16c)]),V(0x2,(0x0,e['Inject'])(N[_0x22adcb(0x20d)])),V(0x3,(0x0,e['Inject'])(G)),V(0x4,(0x0,e[_0x22adcb(0x198)])(e[_0x22adcb(0x190)])),V(0x5,N['IMessageService']),V(0x6,(0x0,e[_0x22adcb(0x198)])(r[_0x22adcb(0x168)])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e[_0x22adcb(0x198)])(r[_0x22adcb(0x169)])),V(0x9,e[_0x22adcb(0x22b)]),V(0xa,F[_0x22adcb(0x1d8)])],J);const Y=_0x22adcb(0x235);let X=class extends e[_0x22adcb(0x201)]{constructor(_0x9e52c0,_0x234914,_0x656c18,_0x370041,_0x416a48,_0x31ae6c,_0x4ed912,_0x384fb1,_0x5eb90c,_0x49e909){const _0x97a2f2=_0x22adcb;super(),this[_0x97a2f2(0x234)]=_0x9e52c0,this['_univerInstanceService']=_0x234914,this['_configService']=_0x656c18,this[_0x97a2f2(0x17b)]=_0x370041,this[_0x97a2f2(0x195)]=_0x416a48,this['_permissionService']=_0x31ae6c,this[_0x97a2f2(0x1f3)]=_0x4ed912,this[_0x97a2f2(0x172)]=_0x384fb1,this[_0x97a2f2(0x137)]=_0x5eb90c,this[_0x97a2f2(0x229)]=_0x49e909,B(this,_0x97a2f2(0x207),new P[(_0x97a2f2(0x1f9))](null)),B(this,'historyUniver$',this[_0x97a2f2(0x207)]['asObservable']()),B(this,_0x97a2f2(0x13a),new e[(_0x97a2f2(0x1af))]()),B(this,'_pluginMap',new Map()),B(this,_0x97a2f2(0x16a),null),this[_0x97a2f2(0x185)]();}get[_0x22adcb(0x148)](){const _0x1075a3=_0x22adcb;return this[_0x1075a3(0x207)]['value'];}[_0x22adcb(0x185)](){const _0x1fa3e6=_0x22adcb;this[_0x1fa3e6(0x236)](),this['_initPlugins']();}['_initContainer'](){const _0x26de24=_0x22adcb;var _0x42d4a3;let _0x4662e7=(_0x42d4a3=this[_0x26de24(0x232)][_0x26de24(0x12e)](_0x26de24(0x204)))==null?_0x26de24(0x13f):_0x42d4a3,_0x5cfdb3=document[_0x26de24(0x1bc)](_0x4662e7);if(!_0x5cfdb3)return;let _0x2b1a15=document[_0x26de24(0x15c)](_0x26de24(0x1c9));_0x2b1a15['id']=Y,_0x2b1a15[_0x26de24(0x1a0)][_0x26de24(0x20b)]='history-container',_0x2b1a15[_0x26de24(0x129)]['position']=_0x26de24(0x13e),_0x2b1a15[_0x26de24(0x129)][_0x26de24(0x1c8)]='0',_0x2b1a15['style'][_0x26de24(0x15d)]='0',_0x2b1a15[_0x26de24(0x129)][_0x26de24(0x167)]=_0x26de24(0x1b9),_0x2b1a15[_0x26de24(0x129)][_0x26de24(0x1b1)]=_0x26de24(0x1b9),_0x2b1a15['style'][_0x26de24(0x1be)]='49',_0x2b1a15[_0x26de24(0x129)]['display']=_0x26de24(0x11f),_0x5cfdb3['appendChild'](_0x2b1a15);}[_0x22adcb(0x151)](){const _0x2cfcf6=_0x22adcb;[[b[_0x2cfcf6(0x1d9)]],[N['UniverMobileUIPlugin'],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[N[_0x2cfcf6(0x20c)],null]]}],[x['UniverNetworkPlugin']],[_['UniverDrawingPlugin'],{'override':[[_['IImageIoService'],null]]}],[h[_0x2cfcf6(0x13c)],{'hasScroll':!0x1}],[g[_0x2cfcf6(0x1ef)]],[A['UniverSheetsNumfmtPlugin']],[t['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[M['UniverSheetsMobileUIPlugin']],[ne[_0x2cfcf6(0x20f)]],[re[_0x2cfcf6(0x1d3)]],[n[_0x2cfcf6(0x19f)]],[O[_0x2cfcf6(0x160)]],[C[_0x2cfcf6(0x178)]],[ie['UniverSheetsHyperLinkPlugin']],[k[_0x2cfcf6(0x179)]],[p['UniverDataValidationPlugin']],[w[_0x2cfcf6(0x1c4)]],[T[_0x2cfcf6(0x192)]],[y['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[v[_0x2cfcf6(0x194)]],[E['UniverSheetsDrawingPlugin']],[D[_0x2cfcf6(0x1e8)]],[d[_0x2cfcf6(0x1c5)]],[f[_0x2cfcf6(0x208)]],[o['UniverSheetsChartPlugin']],[s['UniverSheetsChartUIPlugin']],[l[_0x2cfcf6(0x19b)]],[u[_0x2cfcf6(0x14e)]],[c[_0x2cfcf6(0x18a)],{'notExecuteFormula':!0x0}],[j[_0x2cfcf6(0x186)]]]['forEach'](([_0x2e3356,_0x5d6cf2])=>this[_0x2cfcf6(0x217)](_0x2e3356,_0x5d6cf2));}[_0x22adcb(0x145)](){const _0x53d764=_0x22adcb;super[_0x53d764(0x145)](),this[_0x53d764(0x1bf)](),this[_0x53d764(0x18d)][_0x53d764(0x143)]();}['registerPlugin'](_0x37ca78,_0x3ea06e,_0x5967d4){const _0x2d79bb=_0x22adcb;if(this[_0x2d79bb(0x18d)][_0x2d79bb(0x183)](_0x37ca78['pluginName'])&&!_0x5967d4)throw Error(_0x2d79bb(0x1fb)+_0x37ca78[_0x2d79bb(0x17d)]+_0x2d79bb(0x11d));this[_0x2d79bb(0x18d)][_0x2d79bb(0x227)](_0x37ca78['pluginName'],[_0x37ca78,_0x3ea06e]);}['getAllPlugins'](){const _0x1ba3a0=_0x22adcb;return Array[_0x1ba3a0(0x1cc)](this['_pluginMap'][_0x1ba3a0(0x225)]());}['mountHistoryContent'](_0x4a14f0,_0x15f124){const _0x3bd66b=_0x22adcb;let _0x3e52a0=document[_0x3bd66b(0x1bc)](Y);_0x3e52a0&&(_0x3e52a0[_0x3bd66b(0x129)][_0x3bd66b(0x1f6)]=_0x3bd66b(0x159),this[_0x3bd66b(0x156)](_0x4a14f0,Y,_0x15f124));}['unMountHistoryContent'](){const _0x3d4af1=_0x22adcb;var _0x2b1ee0;this[_0x3d4af1(0x13a)][_0x3d4af1(0x145)](),(_0x2b1ee0=this['historyUniver'])==null||_0x2b1ee0['dispose'](),this[_0x3d4af1(0x207)]['next'](null);let _0x5db5f3=document[_0x3d4af1(0x1bc)](Y);_0x5db5f3&&(_0x5db5f3[_0x3d4af1(0x129)][_0x3d4af1(0x1f6)]='none',this[_0x3d4af1(0x16a)]&&(this[_0x3d4af1(0x16a)]['terminate'](),this[_0x3d4af1(0x16a)]=null));}[_0x22adcb(0x156)](_0x2f2e7e,_0x22add1,_0x8f63c){const _0x56217d=_0x22adcb;var _0xf5356,_0x467627,_0x50599d,_0x26409f;if(this['historyUniver'])return;let _0x532c00=new e[(_0x56217d(0x134))]({'locales':{[this[_0x56217d(0x234)]['getCurrentLocale']()]:this[_0x56217d(0x234)][_0x56217d(0x17e)]()},'override':[[e[_0x56217d(0x21d)],{'useClass':r[_0x56217d(0x15a)]}]]}),_0x7998c3=_0x532c00['__getInjector']();this[_0x56217d(0x1cd)](this[_0x56217d(0x229)][_0x56217d(0x1ae)][_0x56217d(0x1ca)](_0x430201=>{const _0x292a98=_0x56217d;_0x7998c3[_0x292a98(0x200)](e['ThemeService'])[_0x292a98(0x11c)](_0x430201);})),this['disposeWithMe'](this['_themeService'][_0x56217d(0x1f1)][_0x56217d(0x1ca)](_0x31a51b=>{const _0x5eaae2=_0x56217d;_0x7998c3[_0x5eaae2(0x200)](e[_0x5eaae2(0x1e0)])[_0x5eaae2(0x221)](_0x31a51b);})),_0x7998c3[_0x56217d(0x200)](e['LocaleService'])[_0x56217d(0x22e)](this['_localeService'][_0x56217d(0x1e6)]()),_0x7998c3[_0x56217d(0x200)](e[_0x56217d(0x15f)])[_0x56217d(0x19e)](r[_0x56217d(0x1da)],this[_0x56217d(0x232)][_0x56217d(0x12e)](r[_0x56217d(0x1da)]));let _0x350ae6=this[_0x56217d(0x232)][_0x56217d(0x12e)](a[_0x56217d(0x1b5)]);_0x350ae6&&_0x532c00['registerPlugin'](a[_0x56217d(0x1ed)],{'license':_0x350ae6['ls']});let _0x516062=(_0xf5356=this[_0x56217d(0x232)]['getConfig'](_0x56217d(0x193)))==null?void 0x0:_0xf5356[_0x56217d(0x132)],_0x3e4e54=!!_0x516062;_0x3e4e54&&(this[_0x56217d(0x16a)]=_0x516062 instanceof Worker?_0x516062:null,_0x532c00['registerPlugin'](S[_0x56217d(0x1b7)],{'workerURL':_0x516062})),this[_0x56217d(0x18d)][_0x56217d(0x136)](([_0x2eb47c,_0x267164])=>{_0x532c00['registerPlugin'](_0x2eb47c,_0x267164);}),_0x532c00[_0x56217d(0x217)](i[_0x56217d(0x1b4)],{'historyListServerUrl':(_0x467627=this[_0x56217d(0x232)]['getConfig'](_0x56217d(0x193)))==null?void 0x0:_0x467627[_0x56217d(0x1d1)],'historyPanelComponentKey':(_0x50599d=this[_0x56217d(0x232)][_0x56217d(0x12e)](_0x56217d(0x193)))==null?void 0x0:_0x50599d[_0x56217d(0x1de)],'historyPanelHidden':(_0x26409f=this[_0x56217d(0x232)][_0x56217d(0x12e)]('edit-history-loader.config'))==null?void 0x0:_0x26409f[_0x56217d(0x1b3)]}),_0x7998c3['invoke'](_0x4d4f57=>{const _0x1e29af=_0x56217d;this[_0x1e29af(0x141)](_0x4d4f57,_0x2f2e7e);}),this[_0x56217d(0x207)][_0x56217d(0x206)](_0x532c00);let _0x58a037=_0x7998c3[_0x56217d(0x200)](i[_0x56217d(0x1db)]),_0x39fc7e=this[_0x56217d(0x131)](_0x2f2e7e),_0x337903=()=>{const _0x172042=_0x56217d;_0x8f63c?_0x58a037[_0x172042(0x11b)](_0x2f2e7e,_0x22add1,_0x39fc7e,_0x8f63c):_0x58a037[_0x172042(0x121)](_0x2f2e7e,_0x22add1,_0x39fc7e);};if(this[_0x56217d(0x195)][_0x56217d(0x224)]({'content':this[_0x56217d(0x234)]['t'](_0x56217d(0x133)),'type':m[_0x56217d(0x1c2)]['Loading']}),_0x3e4e54)try{_0x7998c3[_0x56217d(0x200)](S['IRemoteInstanceService'])[_0x56217d(0x22c)]()[_0x56217d(0x21e)](()=>{_0x337903();});}catch{_0x337903();}else _0x337903();}[_0x22adcb(0x141)](_0x15a4c1,_0x38944a){const _0x1cd0e8=_0x22adcb;let _0x3a8749=_0x15a4c1[_0x1cd0e8(0x200)](i[_0x1cd0e8(0x1db)]);this[_0x1cd0e8(0x13a)][_0x1cd0e8(0x1e5)](_0x3a8749[_0x1cd0e8(0x18c)]['subscribe'](_0x15ce09=>{const _0x557980=_0x1cd0e8;switch(_0x15ce09){case i[_0x557980(0x189)][_0x557980(0x22a)]:this[_0x557980(0x172)][_0x557980(0x21b)](),this[_0x557980(0x137)]['close']();break;case i[_0x557980(0x189)][_0x557980(0x154)]:this[_0x557980(0x17b)][_0x557980(0x1fe)](q['id']),this[_0x557980(0x1bf)]();break;case i[_0x557980(0x189)][_0x557980(0x158)]:this['unMountHistoryContent'](),this[_0x557980(0x195)]['show']({'content':this[_0x557980(0x234)]['t'](_0x557980(0x1e2)),'type':m[_0x557980(0x1c2)][_0x557980(0x158)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x3a8749[_0x1cd0e8(0x1d4)][_0x1cd0e8(0x1ca)](async _0x581b25=>{const _0x133298=_0x1cd0e8;_0x581b25&&this[_0x133298(0x17b)][_0x133298(0x1fe)](n[_0x133298(0x16e)]['id'],{'unitId':_0x38944a,'revision':_0x581b25});}));}['_checkCanRevert'](_0x514d2b){const _0x2574a9=_0x22adcb;let _0x778978=this[_0x2574a9(0x16b)][_0x2574a9(0x22f)](_0x514d2b)[_0x2574a9(0x220)]()[_0x2574a9(0x1c6)](_0x82732b=>_0x82732b[_0x2574a9(0x16f)]()),_0x2b5fa0=new t['WorkbookEditablePermission'](_0x514d2b)['id'],_0x5642f7=_0x778978[_0x2574a9(0x1c6)](_0x598d97=>new t[(_0x2574a9(0x1f7))](_0x514d2b,_0x598d97)['id']),_0x342e00=_0x778978[_0x2574a9(0x1c6)](_0xf8bf57=>this['_selectionProtectionRuleModel'][_0x2574a9(0x14d)](_0x514d2b,_0xf8bf57)['map'](_0x2ddb0b=>new t[(_0x2574a9(0x1b6))](_0x514d2b,_0xf8bf57,_0x2ddb0b[_0x2574a9(0x1b0)])['id']))[_0x2574a9(0x17a)](),_0x3f3e95=new t['WorkbookRecoverHistoryPermission'](_0x514d2b)['id'];return this[_0x2574a9(0x230)][_0x2574a9(0x15e)]([_0x2b5fa0,..._0x5642f7,..._0x342e00,_0x3f3e95])['every'](_0x5d6a08=>!!_0x5d6a08[_0x2574a9(0x144)]);}};X=H([V(0x0,(0x0,e[_0x22adcb(0x198)])(e[_0x22adcb(0x190)])),V(0x1,e[_0x22adcb(0x22b)]),V(0x2,e[_0x22adcb(0x15f)]),V(0x3,e[_0x22adcb(0x1ee)]),V(0x4,N['IMessageService']),V(0x5,e['IPermissionService']),V(0x6,(0x0,e[_0x22adcb(0x198)])(t['RangeProtectionRuleModel'])),V(0x7,(0x0,e[_0x22adcb(0x198)])(N[_0x22adcb(0x20c)])),V(0x8,(0x0,e[_0x22adcb(0x198)])(N[_0x22adcb(0x17f)])),V(0x9,(0x0,e[_0x22adcb(0x198)])(e[_0x22adcb(0x1e0)]))],X);let Z=class extends e['Plugin']{constructor(_0x3461b3=R,_0x30bce5,_0x4176c4){const _0x35ec18=_0x22adcb;super(),this[_0x35ec18(0x1cb)]=_0x3461b3,this[_0x35ec18(0x16d)]=_0x30bce5,this[_0x35ec18(0x232)]=_0x4176c4;let {menu:_0x14cedb,..._0x4307df}=(0x0,e[_0x35ec18(0x135)])({},R,this['_config']);_0x14cedb&&this[_0x35ec18(0x232)][_0x35ec18(0x19e)]('menu',_0x14cedb,{'merge':!0x0}),this[_0x35ec18(0x232)][_0x35ec18(0x19e)](L,_0x4307df),this[_0x35ec18(0x1cb)][_0x35ec18(0x147)]&&this[_0x35ec18(0x232)]['setConfig'](_0x35ec18(0x204),this['_config'][_0x35ec18(0x147)]);}[_0x22adcb(0x205)](){const _0xc598=_0x22adcb;[[G,{'useClass':X}],[J]]['forEach'](_0x13da63=>this[_0xc598(0x16d)]['add'](_0x13da63));}[_0x22adcb(0x222)](){const _0x2edec5=_0x22adcb;this[_0x2edec5(0x16d)][_0x2edec5(0x200)](J);}};function _0x427b(){const _0x2ee117=['editHistory.panel.revertFailed','register','data','unsubscribe','darkMode$','DisposableCollection','permissionId','height','UniverInstanceType','historyPanelHidden','UniverEditHistoryViewerMobilePlugin','LS_CONFIG_KEY','RangeProtectionPermissionEditPoint','UniverRPCMainThreadPlugin','getCurrentRangeDisable$','100%','8920355SIfUjL','3979128rVzvlz','getElementById','mutations','zIndex','unMountHistoryContent','urlChange$','IImageIoService','MessageType','303016kAXlOj','UniverSheetsDataValidationPlugin','UniverSheetSparklinePlugin','map','IRemoteInstanceService','top','div','subscribe','_config','from','disposeWithMe','symbol','terminate','UniverUIPlugin','historyListServerUrl','reload','UniverSheetsFormulaUIPlugin','revertRevision$','MenuItemType','function','Plugin','IURLService','UniverRenderEnginePlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','HistoryManagerService','call','length','historyPanelComponentKey','event$','ThemeService','UNIVER_UNKNOWN','editHistory.panel.listFetchError','_updateSubUnitFromURLParams','UniverEditHistoryViewerPlugin','add','getCurrentLocale','position','UniverSheetsDrawingUIPlugin','_dataLoaderService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','toDisposable','OPERATION','UniverLicensePlugin','ICommandService','UniverDocsUIPlugin','CollaborationEvent','currentTheme$','UniverSheetsDrawingPlugin','_selectionProtectionRuleModel','fromCollab','IMessageService','display','WorksheetEditPermission','subunit','BehaviorSubject','prototype','[MobileHistoryLoaderService]:\x20Plugin\x20','18vkLxuE','RibbonStartGroup','executeCommand','editHistory.panel.title','get','Disposable','UniverSheetsHyperLinkPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','UNIVER_CONTAINER_ID','onStarting','next','_historyUniver$','UniverSheetSparklineUIPlugin','_menuManagerService','version','uComp','IDialogService','ComponentManager','HistoryLoaderService','UniverSheetsFormulaPlugin','getCollabEntity','_updateURLWithCurrentState','getSheetCommandTarget','decorate','packageName','UniverSheetsUIPlugin','DependentOn','registerPlugin','CollaborationStatus','setParam','UniverSheetsNumfmtPlugin','closeAll','_revertErrorTimer','IAuthzIoService','then','disposeUnit','getSheets','setTheme','onSteady','133NIrtzK','show','values','activeSheet$','set','object','_themeService','Entered','IUniverInstanceService','whenReady','some','setLocale','getUnit','_permissionService','location','_configService','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','_localeService','univer-history-container-mobile','_initContainer','getActiveSheet','UniverSheetsPlugin','historyUniver$','_collaborationController','triggerCustomVersions','setDarkMode','\x20has\x20been\x20registered.','CHANGESET_ACK','none','type','triggerLoadVersions','UniverSheetsChartUIPlugin','exhaustSavingTask','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','OTHERS','_localCacheService','registerCommand','6424784PefJkU','style','defineProperty','appendChild','string','getParam','getConfig','SetWorksheetActivateCommand','params','_checkCanRevert','workerURL','editHistory.info.initializing','Univer','merge','forEach','_sidebarService','mergeMenu','HistoryIcon','_disposableCollection','mountHistoryContent','UniverDocsPlugin','CommandType','absolute','univer-container','0.23.0','_initListener','getSheetBySheetId','clear','value','dispose','takeUntil','univerContainerId','historyUniver','4fUlQYY','session','2372631tTsFGk','getMenuHiddenObservable','getSubunitRuleList','UniverSheetsShapeUIPlugin','Module','getUnhiddenWorksheets','_initPlugins','Workbook','UniverSheetsConditionalFormattingUIPlugin','Exited','UNIVER_SHEET','_initUniver','univer.operation.toggle-edit-history','Error','block','AuthzIoHttpService','onCommandExecuted','createElement','left','composePermission','IConfigService','UniverSheetsFilterPlugin','BUTTON','WorkbookViewHistoryPermission','historyAIassistantEnabled','RxDisposable','constructor','toPrimitive','width','CollaborationController','DataLoaderService','_internalWebWorker','_univerInstanceService','IMenuManagerService','_injector','RevertRevisionMutation','getSheetId','WorkbookEditablePermission','_handleRevertAcknowledgement','_dialogService','UNIVER_CONTAINER_ID_KEY','Loading','Injector','_componentManager','close','UniverSheetsConditionalFormattingPlugin','UniverSheetsHyperLinkUIPlugin','flat','_commandService','state$','pluginName','getLocales','ISidebarService','UniverEditHistoryLoaderMobilePlugin','[HistoryLoaderService]:\x20Plugin\x20','UniverSheetsDataValidationUIPlugin','has','SYNCED','_init','UniverSheetsTablePlugin','_setupSubUnitSync','default','HistoryModeStatus','UniverSheetsPivotTablePlugin','UniverSheetsFilterUIPlugin','status$','_pluginMap','dispose$','toStringTag','LocaleService','getUnitId','UniverSheetsDataValidationMobileUIPlugin','edit-history-loader.config','UniverDrawingUIPlugin','_messageService','editHistory.panel.reverting','getAllPlugins','Inject','@univerjs-pro/edit-history-loader','status','UniverSheetsShapePlugin','_urlService','pipe','setConfig','UniverCollaborationPlugin','dataset','__getInjector','28682080OqNaUS','loadUnit','invoke','399754Biyfxc','IPermissionService','ILocalCacheService','_historyManagerService','removeAll'];_0x427b=function(){return _0x2ee117;};return _0x427b();}B(Z,_0x22adcb(0x120),e[_0x22adcb(0x1b2)][_0x22adcb(0x1e1)]),B(Z,_0x22adcb(0x17d),_0x22adcb(0x203)),B(Z,_0x22adcb(0x214),se),B(Z,_0x22adcb(0x20a),ce),Z=H([(0x0,e[_0x22adcb(0x216)])(a[_0x22adcb(0x1ed)]),V(0x1,(0x0,e['Inject'])(e[_0x22adcb(0x175)])),V(0x2,e[_0x22adcb(0x15f)])],Z);let Q=class extends e[_0x22adcb(0x164)]{constructor(_0x5fbdf9,_0xcbe88b,_0xd4eb4,_0x24eb9d,_0x47ee33,_0xf026e0,_0x1174d6,_0x383643,_0x5d9150,_0x2e2c2a,_0x380544){const _0x6be0ab=_0x22adcb;super(),this[_0x6be0ab(0x17b)]=_0x5fbdf9,this[_0x6be0ab(0x209)]=_0xcbe88b,this[_0x6be0ab(0x176)]=_0xd4eb4,this[_0x6be0ab(0x1a8)]=_0x24eb9d,this[_0x6be0ab(0x234)]=_0x47ee33,this[_0x6be0ab(0x195)]=_0xf026e0,this[_0x6be0ab(0x11a)]=_0x1174d6,this[_0x6be0ab(0x126)]=_0x383643,this['_dataLoaderService']=_0x5d9150,this[_0x6be0ab(0x16b)]=_0x2e2c2a,this[_0x6be0ab(0x19c)]=_0x380544,B(this,_0x6be0ab(0x21c),null),this['_init']();}[_0x22adcb(0x185)](){const _0x33b16a=_0x22adcb;[K,q][_0x33b16a(0x136)](_0x919e06=>this[_0x33b16a(0x1cd)]((0x0,e['toDisposable'])(this[_0x33b16a(0x17b)][_0x33b16a(0x127)](_0x919e06)))),this['disposeWithMe'](this[_0x33b16a(0x176)][_0x33b16a(0x1ab)](_0x33b16a(0x139),I[_0x33b16a(0x139)])),this['_menuManagerService'][_0x33b16a(0x138)](ue),this[_0x33b16a(0x1cd)](this[_0x33b16a(0x17b)]['onCommandExecuted'](async(_0x562d1a,_0x48fdad)=>{const _0x3f21af=_0x33b16a;if(_0x562d1a['id']===n['RevertRevisionMutation']['id']){let {unitId:_0x585324}=_0x562d1a[_0x3f21af(0x130)];this['_messageService'][_0x3f21af(0x224)]({'content':this['_localeService']['t'](_0x3f21af(0x196)),'type':m[_0x3f21af(0x1c2)][_0x3f21af(0x174)],'duration':0x1388});let _0x1d215f=this['_collaborationController'][_0x3f21af(0x210)](_0x585324);_0x48fdad!=null&&_0x48fdad[_0x3f21af(0x1f4)]?this['_handleRevertAcknowledgement'](_0x1d215f,async()=>(setTimeout(()=>window[_0x3f21af(0x231)][_0x3f21af(0x1d2)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x1d215f,async()=>{const _0x54d022=_0x3f21af;let _0x195770=this[_0x54d022(0x16b)]['getCurrentUnitOfType'](e[_0x54d022(0x1b2)][_0x54d022(0x155)]),_0x50bfb7=_0x195770==null?void 0x0:_0x195770[_0x54d022(0x237)]();if(!_0x50bfb7)return!0x1;this[_0x54d022(0x16b)][_0x54d022(0x21f)](_0x585324);let _0x5bc7a8=await this[_0x54d022(0x1e9)][_0x54d022(0x1a3)](_0x585324,e[_0x54d022(0x1b2)]['UNIVER_SHEET']);return _0x5bc7a8&&_0x5bc7a8 instanceof e[_0x54d022(0x152)]?(await this['_setupSubUnitSync'](_0x5bc7a8,_0x50bfb7[_0x54d022(0x16f)]()),!0x0):!0x1;});}}));}[_0x22adcb(0x171)](_0x52922f,_0x19a98e,_0x361198=!0x1){const _0x26844c=_0x22adcb;let _0x311db0=(0x0,P['combineLatest'])([_0x52922f['session']['event$'],_0x52922f[_0x26844c(0x17c)]])['subscribe'](async([_0x6c7938,_0x48a11d])=>{const _0x1d073b=_0x26844c;if(_0x6c7938['eventID']===n[_0x1d073b(0x1f0)][_0x1d073b(0x11e)]&&(_0x48a11d==null?void 0x0:_0x48a11d[_0x1d073b(0x19a)])===r[_0x1d073b(0x218)][_0x1d073b(0x184)]&&_0x6c7938[_0x1d073b(0x1ac)][_0x1d073b(0x1bd)][_0x1d073b(0x22d)](_0x94d0d2=>_0x94d0d2['id']===n[_0x1d073b(0x16e)]['id'])&&await _0x19a98e()){var _0x3470dc;this[_0x1d073b(0x1a8)]['unMountHistoryContent'](),_0x311db0[_0x1d073b(0x1ad)](),this[_0x1d073b(0x21c)]&&clearTimeout(this[_0x1d073b(0x21c)]),await((_0x3470dc=this[_0x1d073b(0x126)])==null?void 0x0:_0x3470dc[_0x1d073b(0x123)]());}});_0x361198&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x14070d=_0x26844c;_0x311db0[_0x14070d(0x1ad)](),this[_0x14070d(0x195)][_0x14070d(0x224)]({'content':this[_0x14070d(0x234)]['t'](_0x14070d(0x1aa)),'type':m['MessageType'][_0x14070d(0x158)],'duration':0xbb8});},0x1388));}async[_0x22adcb(0x187)](_0x3a1307,_0x5a2e39){const _0x24746d=_0x22adcb;await this['_updateSubUnitFromURLParams'](_0x3a1307,_0x5a2e39),_0x3a1307['activeSheet$'][_0x24746d(0x19d)]((0x0,P[_0x24746d(0x146)])(this['dispose$']))[_0x24746d(0x1ca)](_0x120f02=>{const _0x3c1bcb=_0x24746d;_0x120f02&&this[_0x3c1bcb(0x211)](_0x120f02);}),this[_0x24746d(0x19c)][_0x24746d(0x1c0)][_0x24746d(0x19d)]((0x0,P[_0x24746d(0x146)])(this['dispose$']))[_0x24746d(0x1ca)](()=>this[_0x24746d(0x1e3)](_0x3a1307,_0x5a2e39));}[_0x22adcb(0x211)](_0x157e60,_0x15f835=!0x1){const _0x20187d=_0x22adcb;let _0x34da52=this['_urlService']['getParam'](_0x20187d(0x1f8));_0x157e60['getSheetId']()!==_0x34da52&&this[_0x20187d(0x19c)][_0x20187d(0x219)](_0x20187d(0x1f8),_0x157e60['getSheetId'](),_0x15f835);}async[_0x22adcb(0x1e3)](_0x2b14cd,_0x119b8a){const _0x4e1860=_0x22adcb;var _0x2032e2;if(!_0x119b8a||!_0x2b14cd[_0x4e1860(0x142)](_0x119b8a)){let _0x5e5c68=_0x2b14cd[_0x4e1860(0x150)]()[0x0],_0x40f39b=_0x2b14cd['getSheetBySheetId'](_0x5e5c68);if(!_0x40f39b)return;this[_0x4e1860(0x211)](_0x40f39b,!0x0),await this[_0x4e1860(0x17b)][_0x4e1860(0x1fe)](t[_0x4e1860(0x12f)]['id'],{'unitId':_0x2b14cd['getUnitId'](),'subUnitId':_0x5e5c68});return;}((_0x2032e2=_0x2b14cd[_0x4e1860(0x237)]())==null?void 0x0:_0x2032e2['getSheetId']())!==_0x119b8a&&await this['_commandService'][_0x4e1860(0x1fe)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x2b14cd[_0x4e1860(0x191)](),'subUnitId':_0x119b8a});}};Q=H([V(0x0,e[_0x22adcb(0x1ee)]),V(0x1,N[_0x22adcb(0x16c)]),V(0x2,(0x0,e[_0x22adcb(0x198)])(N[_0x22adcb(0x20d)])),V(0x3,(0x0,e['Inject'])(G)),V(0x4,(0x0,e[_0x22adcb(0x198)])(e[_0x22adcb(0x190)])),V(0x5,N[_0x22adcb(0x1f5)]),V(0x6,(0x0,e['Inject'])(r['CollaborationController'])),V(0x7,r[_0x22adcb(0x1a7)]),V(0x8,(0x0,e['Inject'])(r[_0x22adcb(0x169)])),V(0x9,e[_0x22adcb(0x22b)]),V(0xa,F[_0x22adcb(0x1d8)])],Q);let $=class extends e[_0x22adcb(0x1d7)]{constructor(_0xf7a276=R,_0xc39d74,_0x2e706e){const _0x232fcf=_0x22adcb;super(),this[_0x232fcf(0x1cb)]=_0xf7a276,this['_injector']=_0xc39d74,this[_0x232fcf(0x232)]=_0x2e706e;let {menu:_0x3ac7b1,..._0x568b6f}=(0x0,e['merge'])({},R,this[_0x232fcf(0x1cb)]);_0x3ac7b1&&this[_0x232fcf(0x232)]['setConfig']('menu',_0x3ac7b1,{'merge':!0x0}),this[_0x232fcf(0x232)][_0x232fcf(0x19e)](L,_0x568b6f),this['_config'][_0x232fcf(0x147)]&&this[_0x232fcf(0x232)][_0x232fcf(0x19e)](U,this['_config'][_0x232fcf(0x147)]);}[_0x22adcb(0x205)](){const _0x5e1706=_0x22adcb;[[G],[Q]][_0x5e1706(0x136)](_0x1c3801=>this[_0x5e1706(0x16d)]['add'](_0x1c3801));}[_0x22adcb(0x222)](){const _0x2d0d34=_0x22adcb;this[_0x2d0d34(0x16d)][_0x2d0d34(0x200)](Q);}};B($,_0x22adcb(0x120),e[_0x22adcb(0x1b2)][_0x22adcb(0x1e1)]),B($,_0x22adcb(0x17d),_0x22adcb(0x1ea)),B($,_0x22adcb(0x214),se),B($,_0x22adcb(0x20a),ce),$=H([(0x0,e[_0x22adcb(0x216)])(a[_0x22adcb(0x1ed)]),V(0x1,(0x0,e[_0x22adcb(0x198)])(e[_0x22adcb(0x175)])),V(0x2,e[_0x22adcb(0x15f)])],$),exports[_0x22adcb(0x233)]=L,Object[_0x22adcb(0x12a)](exports,_0x22adcb(0x20e),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x22adcb(0x12a)](exports,'MobileHistoryLoaderService',{'enumerable':!0x0,'get':function(){return X;}}),exports['ToggleEditHistoryOperation']=K,exports[_0x22adcb(0x173)]=U,exports['UNIVER_HISTORY_CONTAINER_ID']=W,Object['defineProperty'](exports,_0x22adcb(0x180),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x22adcb(0x12a)](exports,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return $;}});
1
+ const _0x4b636c=_0x57d2;(function(_0x342808,_0x2ed4b6){const _0xd3e359=_0x57d2,_0x59a4fd=_0x342808();while(!![]){try{const _0x25dd19=parseInt(_0xd3e359(0x232))/0x1+parseInt(_0xd3e359(0x25e))/0x2+-parseInt(_0xd3e359(0x27e))/0x3+-parseInt(_0xd3e359(0x2b6))/0x4+parseInt(_0xd3e359(0x210))/0x5*(parseInt(_0xd3e359(0x21f))/0x6)+-parseInt(_0xd3e359(0x2c1))/0x7*(parseInt(_0xd3e359(0x278))/0x8)+parseInt(_0xd3e359(0x1e3))/0x9;if(_0x25dd19===_0x2ed4b6)break;else _0x59a4fd['push'](_0x59a4fd['shift']());}catch(_0x37fb58){_0x59a4fd['push'](_0x59a4fd['shift']());}}}(_0x25a1,0xc6506),Object[_0x4b636c(0x1e1)](exports,Symbol['toStringTag'],{'value':_0x4b636c(0x298)}));let e=require(`@univerjs/core`),t=require(`@univerjs/sheets`),n=require(`@univerjs-pro/collaboration`),r=require(`@univerjs-pro/collaboration-client`),i=require(`@univerjs-pro/edit-history-viewer`),a=require(`@univerjs-pro/license`),o=require(`@univerjs-pro/sheets-chart`),s=require(`@univerjs-pro/sheets-chart-ui`),c=require(`@univerjs-pro/sheets-pivot`),l=require(`@univerjs-pro/sheets-shape`),u=require(`@univerjs-pro/sheets-shape-ui`),d=require(`@univerjs-pro/sheets-sparkline`),f=require(`@univerjs-pro/sheets-sparkline-ui`),p=require(`@univerjs/data-validation`),m=require(`@univerjs/design`),h=require(`@univerjs/docs`),g=require(`@univerjs/docs-ui`),_=require(`@univerjs/drawing`),v=require(`@univerjs/drawing-ui`),y=require(`@univerjs/engine-formula`),b=require(`@univerjs/engine-render`),x=require(`@univerjs/network`),S=require(`@univerjs/rpc`),C=require(`@univerjs/sheets-conditional-formatting`),ee=require(`@univerjs/sheets-conditional-formatting-ui`),w=require(`@univerjs/sheets-data-validation`),T=require(`@univerjs/sheets-data-validation-ui`),E=require(`@univerjs/sheets-drawing`),D=require(`@univerjs/sheets-drawing-ui`),O=require(`@univerjs/sheets-filter`),te=require(`@univerjs/sheets-filter-ui`),ne=require(`@univerjs/sheets-formula`),re=require(`@univerjs/sheets-formula-ui`),ie=require(`@univerjs/sheets-hyper-link`),k=require(`@univerjs/sheets-hyper-link-ui`),A=require(`@univerjs/sheets-numfmt`),j=require(`@univerjs/sheets-table`),M=require(`@univerjs/sheets-ui`),N=require(`@univerjs/ui`),P=require(`rxjs`),F=require(`@univerjs-pro/collaboration-client-ui`),I=require(`@univerjs/icons`);const L=_0x4b636c(0x246);Symbol(L);const R={};function z(_0x454da9){'@babel/helpers - typeof';const _0x2f2285=_0x4b636c;return z=typeof Symbol=='function'&&typeof Symbol[_0x2f2285(0x27a)]=='symbol'?function(_0x16be26){return typeof _0x16be26;}:function(_0x53dd65){const _0x3eaf10=_0x2f2285;return _0x53dd65&&typeof Symbol=='function'&&_0x53dd65['constructor']===Symbol&&_0x53dd65!==Symbol[_0x3eaf10(0x281)]?'symbol':typeof _0x53dd65;},z(_0x454da9);}function ae(_0x1b38d4,_0xd9c070){const _0x5c0d80=_0x4b636c;if(z(_0x1b38d4)!=_0x5c0d80(0x2be)||!_0x1b38d4)return _0x1b38d4;var _0x1c80be=_0x1b38d4[Symbol[_0x5c0d80(0x280)]];if(_0x1c80be!==void 0x0){var _0x13bffe=_0x1c80be['call'](_0x1b38d4,_0xd9c070||'default');if(z(_0x13bffe)!=_0x5c0d80(0x2be))return _0x13bffe;throw TypeError(_0x5c0d80(0x1f4));}return(_0xd9c070===_0x5c0d80(0x261)?String:Number)(_0x1b38d4);}function oe(_0x37e5e2){const _0x49f9f4=_0x4b636c;var _0xa77be5=ae(_0x37e5e2,_0x49f9f4(0x261));return z(_0xa77be5)=='symbol'?_0xa77be5:_0xa77be5+'';}function B(_0x5d9234,_0xa7601d,_0x147c83){const _0xa3ed23=_0x4b636c;return(_0xa7601d=oe(_0xa7601d))in _0x5d9234?Object[_0xa3ed23(0x1e1)](_0x5d9234,_0xa7601d,{'value':_0x147c83,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d9234[_0xa7601d]=_0x147c83,_0x5d9234;}function V(_0x263564,_0x5047e7){return function(_0x57d832,_0x41561b){_0x5047e7(_0x57d832,_0x41561b,_0x263564);};}function H(_0xcd051c,_0x3534ba,_0x40c897,_0x5e3760){const _0x1923a1=_0x4b636c;var _0xb4a849=arguments[_0x1923a1(0x26f)],_0x21f8d0=_0xb4a849<0x3?_0x3534ba:_0x5e3760===null?_0x5e3760=Object[_0x1923a1(0x2b4)](_0x3534ba,_0x40c897):_0x5e3760,_0x7fa2f3;if(typeof Reflect=='object'&&typeof Reflect[_0x1923a1(0x230)]==_0x1923a1(0x241))_0x21f8d0=Reflect[_0x1923a1(0x230)](_0xcd051c,_0x3534ba,_0x40c897,_0x5e3760);else{for(var _0x2684de=_0xcd051c['length']-0x1;_0x2684de>=0x0;_0x2684de--)(_0x7fa2f3=_0xcd051c[_0x2684de])&&(_0x21f8d0=(_0xb4a849<0x3?_0x7fa2f3(_0x21f8d0):_0xb4a849>0x3?_0x7fa2f3(_0x3534ba,_0x40c897,_0x21f8d0):_0x7fa2f3(_0x3534ba,_0x40c897))||_0x21f8d0);}return _0xb4a849>0x3&&_0x21f8d0&&Object[_0x1923a1(0x1e1)](_0x3534ba,_0x40c897,_0x21f8d0),_0x21f8d0;}const U=_0x4b636c(0x2bd),W=_0x4b636c(0x274);let G=class extends e[_0x4b636c(0x227)]{constructor(_0x10cf01,_0x18645f,_0x5dcb96,_0xe7369a,_0x4d7738,_0x584569,_0x8e1d95,_0xb55086,_0x45d5b4,_0x3fb1ec){const _0x70cf32=_0x4b636c;super(),this[_0x70cf32(0x1c6)]=_0x10cf01,this['_univerInstanceService']=_0x18645f,this[_0x70cf32(0x292)]=_0x5dcb96,this[_0x70cf32(0x217)]=_0xe7369a,this[_0x70cf32(0x2bc)]=_0x4d7738,this['_permissionService']=_0x584569,this[_0x70cf32(0x1db)]=_0x8e1d95,this[_0x70cf32(0x1fa)]=_0xb55086,this[_0x70cf32(0x228)]=_0x45d5b4,this[_0x70cf32(0x2a7)]=_0x3fb1ec,B(this,_0x70cf32(0x1df),new P['BehaviorSubject'](null)),B(this,_0x70cf32(0x2b8),this['_historyUniver$'][_0x70cf32(0x1ba)]()),B(this,_0x70cf32(0x2b1),new e['DisposableCollection']()),B(this,_0x70cf32(0x273),new Map()),B(this,_0x70cf32(0x1da),null),this[_0x70cf32(0x297)]();}get[_0x4b636c(0x284)](){const _0x6cdddf=_0x4b636c;return this['_historyUniver$'][_0x6cdddf(0x254)];}[_0x4b636c(0x297)](){const _0xc62e2c=_0x4b636c;this[_0xc62e2c(0x257)](),this['_initPlugins']();}[_0x4b636c(0x257)](){const _0xa075e1=_0x4b636c;var _0x40a1b7;let _0x5f198b=(_0x40a1b7=this[_0xa075e1(0x292)][_0xa075e1(0x212)]('UNIVER_CONTAINER_ID'))==null?_0xa075e1(0x1d3):_0x40a1b7,_0x38751a=document[_0xa075e1(0x1c2)](_0x5f198b);if(!_0x38751a)return;let _0x2c9cfd=document['createElement'](_0xa075e1(0x1cb));_0x2c9cfd['id']=W,_0x2c9cfd[_0xa075e1(0x29f)]['uComp']=_0xa075e1(0x269),_0x2c9cfd[_0xa075e1(0x2ae)][_0xa075e1(0x2c5)]=_0xa075e1(0x2a4),_0x2c9cfd[_0xa075e1(0x2ae)][_0xa075e1(0x215)]='0',_0x2c9cfd[_0xa075e1(0x2ae)]['left']='0',_0x2c9cfd[_0xa075e1(0x2ae)][_0xa075e1(0x28c)]=_0xa075e1(0x294),_0x2c9cfd[_0xa075e1(0x2ae)][_0xa075e1(0x2ab)]=_0xa075e1(0x294),_0x2c9cfd['style']['zIndex']='49',_0x2c9cfd[_0xa075e1(0x2ae)][_0xa075e1(0x233)]='none',_0x38751a['appendChild'](_0x2c9cfd);}[_0x4b636c(0x1fb)](){const _0x2354bf=_0x4b636c;[[b[_0x2354bf(0x1ca)]],[N[_0x2354bf(0x24b)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[N['IDialogService'],null]]}],[x[_0x2354bf(0x252)]],[_[_0x2354bf(0x1d2)],{'override':[[_['IImageIoService'],null]]}],[h[_0x2354bf(0x224)],{'hasScroll':!0x1}],[g[_0x2354bf(0x293)]],[A[_0x2354bf(0x1d0)]],[t['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[M[_0x2354bf(0x28a)]],[ne[_0x2354bf(0x1ac)]],[re[_0x2354bf(0x219)]],[n[_0x2354bf(0x2aa)]],[O[_0x2354bf(0x20c)]],[te[_0x2354bf(0x1b6)]],[C['UniverSheetsConditionalFormattingPlugin']],[ee['UniverSheetsConditionalFormattingUIPlugin']],[ie[_0x2354bf(0x1e2)]],[k['UniverSheetsHyperLinkUIPlugin']],[p['UniverDataValidationPlugin']],[w[_0x2354bf(0x1fc)]],[T[_0x2354bf(0x1ce)]],[y[_0x2354bf(0x266)],{'notExecuteFormula':!0x0}],[v[_0x2354bf(0x29b)]],[E['UniverSheetsDrawingPlugin']],[D[_0x2354bf(0x1d9)]],[d[_0x2354bf(0x1ab)]],[f[_0x2354bf(0x1f9)]],[o['UniverSheetsChartPlugin']],[s['UniverSheetsChartUIPlugin']],[l['UniverSheetsShapePlugin']],[u[_0x2354bf(0x2c6)]],[c[_0x2354bf(0x2bb)],{'notExecuteFormula':!0x0}],[j[_0x2354bf(0x1f2)]]][_0x2354bf(0x260)](([_0x541300,_0x4878ba])=>this[_0x2354bf(0x1f7)](_0x541300,_0x4878ba));}[_0x4b636c(0x1f8)](){const _0x203d96=_0x4b636c;super[_0x203d96(0x1f8)](),this['unMountHistoryContent'](),this[_0x203d96(0x273)][_0x203d96(0x1cd)]();}[_0x4b636c(0x1f7)](_0x3f69f6,_0x160050,_0x4cc851){const _0x54f8d8=_0x4b636c;if(this[_0x54f8d8(0x273)][_0x54f8d8(0x2a6)](_0x3f69f6[_0x54f8d8(0x21d)])&&!_0x4cc851)throw Error(_0x54f8d8(0x205)+_0x3f69f6[_0x54f8d8(0x21d)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x54f8d8(0x26b)](_0x3f69f6[_0x54f8d8(0x21d)],[_0x3f69f6,_0x160050]);}[_0x4b636c(0x253)](){const _0x7ade1c=_0x4b636c;return Array[_0x7ade1c(0x239)](this['_pluginMap'][_0x7ade1c(0x222)]());}[_0x4b636c(0x29d)](_0x53eaa7,_0x3ffc75){const _0x191def=_0x4b636c;let _0x3dc009=document[_0x191def(0x1c2)](W);_0x3dc009&&(_0x3dc009[_0x191def(0x2ae)][_0x191def(0x233)]=_0x191def(0x1ee),this[_0x191def(0x1d4)](_0x53eaa7,W,_0x3ffc75));}[_0x4b636c(0x203)](){const _0x268c35=_0x4b636c;var _0x21c923;this[_0x268c35(0x2b1)][_0x268c35(0x1f8)](),(_0x21c923=this[_0x268c35(0x284)])==null||_0x21c923[_0x268c35(0x1f8)](),this[_0x268c35(0x1df)]['next'](null);let _0x347bfa=document[_0x268c35(0x1c2)](W);_0x347bfa&&(_0x347bfa[_0x268c35(0x2ae)]['display']=_0x268c35(0x25f),this[_0x268c35(0x1da)]&&(this['_internalWebWorker'][_0x268c35(0x1ec)](),this['_internalWebWorker']=null));}[_0x4b636c(0x1d4)](_0xc5ee95,_0x10adf4,_0x297e9e){const _0x40b5e4=_0x4b636c;var _0x10badd,_0x582adc,_0x3a29fc,_0x1aed0e,_0x45c787;if(this['historyUniver'])return;let _0x5afd21=new e['Univer']({'locales':{[this[_0x40b5e4(0x1c6)][_0x40b5e4(0x289)]()]:this[_0x40b5e4(0x1c6)]['getLocales']()},'override':[[e[_0x40b5e4(0x24e)],{'useClass':r['AuthzIoHttpService']}]]}),_0x501de8=_0x5afd21[_0x40b5e4(0x225)]();this[_0x40b5e4(0x231)](this[_0x40b5e4(0x2a7)][_0x40b5e4(0x22d)][_0x40b5e4(0x1b1)](_0x544c62=>{const _0x24b56d=_0x40b5e4;_0x501de8[_0x24b56d(0x234)](e[_0x24b56d(0x299)])['setDarkMode'](_0x544c62);})),this[_0x40b5e4(0x231)](this[_0x40b5e4(0x2a7)][_0x40b5e4(0x1e0)][_0x40b5e4(0x1b1)](_0x563778=>{const _0x5b0a19=_0x40b5e4;_0x501de8['get'](e[_0x5b0a19(0x299)])['setTheme'](_0x563778);})),_0x501de8[_0x40b5e4(0x234)](e[_0x40b5e4(0x24f)])[_0x40b5e4(0x1d7)](this['_localeService'][_0x40b5e4(0x289)]()),_0x501de8[_0x40b5e4(0x234)](e[_0x40b5e4(0x2b9)])[_0x40b5e4(0x1ed)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x40b5e4(0x292)][_0x40b5e4(0x212)](r[_0x40b5e4(0x236)]));let _0x17d430=this['_configService'][_0x40b5e4(0x212)](a['LS_CONFIG_KEY']);_0x17d430&&_0x5afd21[_0x40b5e4(0x1f7)](a[_0x40b5e4(0x249)],{'license':_0x17d430['ls']});let _0x50dff3=(_0x10badd=this[_0x40b5e4(0x292)][_0x40b5e4(0x212)](_0x40b5e4(0x246)))==null?void 0x0:_0x10badd[_0x40b5e4(0x2a3)],_0x119470=!!_0x50dff3;_0x119470&&(this[_0x40b5e4(0x1da)]=_0x50dff3 instanceof Worker?_0x50dff3:null,_0x5afd21[_0x40b5e4(0x1f7)](S['UniverRPCMainThreadPlugin'],{'workerURL':_0x50dff3})),this['_pluginMap'][_0x40b5e4(0x260)](([_0x4cb96b,_0x2bb3b3])=>{const _0x5e6714=_0x40b5e4;_0x5afd21[_0x5e6714(0x1f7)](_0x4cb96b,_0x2bb3b3);}),_0x5afd21[_0x40b5e4(0x1f7)](i[_0x40b5e4(0x1c9)],{'historyListServerUrl':(_0x582adc=this[_0x40b5e4(0x292)]['getConfig'](_0x40b5e4(0x246)))==null?void 0x0:_0x582adc[_0x40b5e4(0x1ad)],'historyPanelComponentKey':(_0x3a29fc=this['_configService'][_0x40b5e4(0x212)](_0x40b5e4(0x246)))==null?void 0x0:_0x3a29fc[_0x40b5e4(0x1fe)],'historyPanelHidden':(_0x1aed0e=this[_0x40b5e4(0x292)][_0x40b5e4(0x212)](_0x40b5e4(0x246)))==null?void 0x0:_0x1aed0e[_0x40b5e4(0x235)],'historyAIassistantEnabled':(_0x45c787=this[_0x40b5e4(0x292)][_0x40b5e4(0x212)](_0x40b5e4(0x246)))==null?void 0x0:_0x45c787[_0x40b5e4(0x1bc)]}),_0x501de8[_0x40b5e4(0x1ea)](_0x35933e=>{const _0x2fe374=_0x40b5e4;this[_0x2fe374(0x2c4)](_0x35933e,_0xc5ee95);}),this[_0x40b5e4(0x1df)][_0x40b5e4(0x263)](_0x5afd21);let _0x4eedf9=_0x501de8[_0x40b5e4(0x234)](i['HistoryManagerService']),_0x37306b=this['_checkCanRevert'](_0xc5ee95),_0x47db32=()=>{const _0x25023c=_0x40b5e4;_0x297e9e?_0x4eedf9[_0x25023c(0x220)](_0xc5ee95,_0x10adf4,_0x37306b,_0x297e9e):_0x4eedf9[_0x25023c(0x264)](_0xc5ee95,_0x10adf4,_0x37306b);};if(this['_messageService']['show']({'content':this[_0x40b5e4(0x1c6)]['t'](_0x40b5e4(0x22f)),'type':m[_0x40b5e4(0x26d)][_0x40b5e4(0x1bd)]}),_0x119470)try{_0x501de8[_0x40b5e4(0x234)](S[_0x40b5e4(0x1c0)])[_0x40b5e4(0x1fd)]()[_0x40b5e4(0x2ba)](()=>{_0x47db32();});}catch{_0x47db32();}else _0x47db32();}[_0x4b636c(0x2c4)](_0x3f5457,_0xc4a622){const _0x422e02=_0x4b636c;let _0x10370a=_0x3f5457[_0x422e02(0x234)](i[_0x422e02(0x288)]);this[_0x422e02(0x2b1)][_0x422e02(0x20f)](_0x10370a[_0x422e02(0x24d)][_0x422e02(0x1b1)](_0xf2f68a=>{const _0x4c2d51=_0x422e02;switch(_0xf2f68a){case i[_0x4c2d51(0x1dd)][_0x4c2d51(0x1c4)]:this[_0x4c2d51(0x1fa)][_0x4c2d51(0x25d)](),this[_0x4c2d51(0x228)][_0x4c2d51(0x26e)]();break;case i[_0x4c2d51(0x1dd)]['Exited']:this[_0x4c2d51(0x217)][_0x4c2d51(0x21b)](q['id']),this[_0x4c2d51(0x203)]();break;case i[_0x4c2d51(0x1dd)]['Error']:this[_0x4c2d51(0x203)](),this[_0x4c2d51(0x2bc)]['show']({'content':this[_0x4c2d51(0x1c6)]['t'](_0x4c2d51(0x1b9)),'type':m[_0x4c2d51(0x26d)]['Error'],'duration':0xbb8});break;default:break;}})),this[_0x422e02(0x2b1)]['add'](_0x10370a[_0x422e02(0x2a2)][_0x422e02(0x1b1)](async _0xfea3dd=>{const _0x76d210=_0x422e02;_0xfea3dd&&this['_commandService']['executeCommand'](n[_0x76d210(0x258)]['id'],{'unitId':_0xc4a622,'revision':_0xfea3dd});}));}[_0x4b636c(0x1e7)](_0x2dd2af){const _0x13f43a=_0x4b636c;let _0x2e5c85=this[_0x13f43a(0x27b)][_0x13f43a(0x28b)](_0x2dd2af)[_0x13f43a(0x1ff)]()[_0x13f43a(0x1cc)](_0x3483aa=>_0x3483aa[_0x13f43a(0x1c3)]()),_0x1f84b1=new t[(_0x13f43a(0x216))](_0x2dd2af)['id'],_0x515119=_0x2e5c85[_0x13f43a(0x1cc)](_0xd346e=>new t[(_0x13f43a(0x1b0))](_0x2dd2af,_0xd346e)['id']),_0x48c58c=_0x2e5c85['map'](_0x425f47=>this[_0x13f43a(0x1db)]['getSubunitRuleList'](_0x2dd2af,_0x425f47)['map'](_0x486732=>new t[(_0x13f43a(0x1aa))](_0x2dd2af,_0x425f47,_0x486732[_0x13f43a(0x1b7)])['id']))[_0x13f43a(0x247)](),_0x2524ad=new t[(_0x13f43a(0x2c7))](_0x2dd2af)['id'];return this['_permissionService'][_0x13f43a(0x2a9)]([_0x1f84b1,..._0x515119,..._0x48c58c,_0x2524ad])[_0x13f43a(0x238)](_0x12a1d2=>!!_0x12a1d2['value']);}};G=H([V(0x0,(0x0,e[_0x4b636c(0x22e)])(e[_0x4b636c(0x24f)])),V(0x1,e[_0x4b636c(0x21c)]),V(0x2,e[_0x4b636c(0x2b9)]),V(0x3,e[_0x4b636c(0x1b3)]),V(0x4,N[_0x4b636c(0x200)]),V(0x5,e[_0x4b636c(0x27f)]),V(0x6,(0x0,e[_0x4b636c(0x22e)])(t[_0x4b636c(0x291)])),V(0x7,(0x0,e[_0x4b636c(0x22e)])(N[_0x4b636c(0x242)])),V(0x8,(0x0,e[_0x4b636c(0x22e)])(N[_0x4b636c(0x28d)])),V(0x9,(0x0,e['Inject'])(e[_0x4b636c(0x299)]))],G);const K={'id':'univer.operation.toggle-edit-history','type':e['CommandType']['OPERATION'],'handler':_0x516564=>{const _0x5f585f=_0x4b636c;let _0x23de9c=_0x516564[_0x5f585f(0x234)](G),{unitId:_0x3d35b2}=(0x0,t[_0x5f585f(0x23e)])(_0x516564[_0x5f585f(0x234)](e[_0x5f585f(0x21c)]))||{};return _0x3d35b2?(_0x23de9c[_0x5f585f(0x29d)](_0x3d35b2),!0x0):!0x1;}},q={'id':'univer.operation.exit-edit-history','type':e[_0x4b636c(0x1f3)][_0x4b636c(0x2a8)],'handler':()=>!0x0};var se=_0x4b636c(0x209),ce='0.24.0';function le(_0x347f21){const _0x479e44=_0x4b636c;return{'id':K['id'],'type':N[_0x479e44(0x29a)]['BUTTON'],'icon':_0x479e44(0x1af),'tooltip':_0x479e44(0x1e4),'hidden$':(0x0,N[_0x479e44(0x22c)])(_0x347f21,e[_0x479e44(0x21e)][_0x479e44(0x2b3)]),'disabled$':(0x0,M[_0x479e44(0x268)])(_0x347f21,{'workbookTypes':[t[_0x479e44(0x282)]],'worksheetTypes':[],'rangeTypes':[]})};}const ue={[N[_0x4b636c(0x2c9)][_0x4b636c(0x1bf)]]:{[K['id']]:{'order':0.2,'menuItemFactory':le}}};let J=class extends e[_0x4b636c(0x1d5)]{constructor(_0x29bd1f,_0xc6c2dc,_0x16906f,_0x3dc6dc,_0xc369e7,_0x243b18,_0x2c3c85,_0x402cf1,_0x2712c2,_0x3704e9,_0x279141){const _0xb23367=_0x4b636c;super(),this['_commandService']=_0x29bd1f,this[_0xb23367(0x20d)]=_0xc6c2dc,this[_0xb23367(0x23b)]=_0x16906f,this[_0xb23367(0x23f)]=_0x3dc6dc,this[_0xb23367(0x1c6)]=_0xc369e7,this['_messageService']=_0x243b18,this[_0xb23367(0x2ca)]=_0x2c3c85,this[_0xb23367(0x207)]=_0x402cf1,this[_0xb23367(0x244)]=_0x2712c2,this[_0xb23367(0x27b)]=_0x3704e9,this[_0xb23367(0x248)]=_0x279141,B(this,_0xb23367(0x1b4),null),this[_0xb23367(0x297)]();}[_0x4b636c(0x297)](){const _0x2499b9=_0x4b636c;[K,q][_0x2499b9(0x260)](_0x5f3824=>this[_0x2499b9(0x231)]((0x0,e['toDisposable'])(this[_0x2499b9(0x217)][_0x2499b9(0x1e9)](_0x5f3824)))),this[_0x2499b9(0x231)](this[_0x2499b9(0x23b)][_0x2499b9(0x1b2)](_0x2499b9(0x1af),I[_0x2499b9(0x1af)])),this[_0x2499b9(0x20d)][_0x2499b9(0x24a)](ue),this['disposeWithMe'](this[_0x2499b9(0x217)][_0x2499b9(0x1d6)](async(_0x33d7e8,_0x2dde04)=>{const _0x1f0a5c=_0x2499b9;if(_0x33d7e8['id']===n[_0x1f0a5c(0x258)]['id']){let {unitId:_0x12dc60}=_0x33d7e8[_0x1f0a5c(0x243)];this[_0x1f0a5c(0x2bc)][_0x1f0a5c(0x2af)]({'content':this[_0x1f0a5c(0x1c6)]['t'](_0x1f0a5c(0x1d8)),'type':m['MessageType'][_0x1f0a5c(0x1bd)],'duration':0x1388});let _0x1c96f9=this[_0x1f0a5c(0x2ca)]['getCollabEntity'](_0x12dc60);_0x2dde04!=null&&_0x2dde04[_0x1f0a5c(0x2c3)]?this[_0x1f0a5c(0x2a0)](_0x1c96f9,async()=>(setTimeout(()=>window[_0x1f0a5c(0x2a5)][_0x1f0a5c(0x1e8)]()),!0x0),!0x0):this[_0x1f0a5c(0x2a0)](_0x1c96f9,async()=>{const _0x4665a8=_0x1f0a5c;let _0x4734cf=this[_0x4665a8(0x27b)][_0x4665a8(0x1ae)](e['UniverInstanceType'][_0x4665a8(0x2b3)]),_0xe64f36=_0x4734cf==null?void 0x0:_0x4734cf[_0x4665a8(0x23c)]();if(!_0xe64f36)return!0x1;this['_univerInstanceService'][_0x4665a8(0x26c)](_0x12dc60);let _0x4b3261=await this['_dataLoaderService']['loadUnit'](_0x12dc60,e[_0x4665a8(0x21e)][_0x4665a8(0x2b3)]);return _0x4b3261&&_0x4b3261 instanceof e[_0x4665a8(0x22b)]?(await this[_0x4665a8(0x20e)](_0x4b3261,_0xe64f36[_0x4665a8(0x1c3)]()),!0x0):!0x1;});}}));}[_0x4b636c(0x2a0)](_0x326572,_0x3c849c,_0x2626dc=!0x1){const _0x25bbf0=_0x4b636c;let _0x2f612c=(0x0,P[_0x25bbf0(0x223)])([_0x326572[_0x25bbf0(0x23d)][_0x25bbf0(0x1bb)],_0x326572[_0x25bbf0(0x283)]])[_0x25bbf0(0x1b1)](async([_0x2b9440,_0xb976e7])=>{const _0x13117b=_0x25bbf0;if(_0x2b9440[_0x13117b(0x245)]===n[_0x13117b(0x27d)][_0x13117b(0x259)]&&(_0xb976e7==null?void 0x0:_0xb976e7[_0x13117b(0x221)])===r[_0x13117b(0x262)]['SYNCED']&&_0x2b9440['data'][_0x13117b(0x1c7)]['some'](_0x46ecc4=>_0x46ecc4['id']===n['RevertRevisionMutation']['id'])&&await _0x3c849c()){var _0x3fb4a1;this[_0x13117b(0x23f)][_0x13117b(0x203)](),_0x2f612c[_0x13117b(0x28e)](),this[_0x13117b(0x1b4)]&&clearTimeout(this['_revertErrorTimer']),await((_0x3fb4a1=this['_localCacheService'])==null?void 0x0:_0x3fb4a1['exhaustSavingTask']()),this[_0x13117b(0x2bc)][_0x13117b(0x226)]();}});_0x2626dc&&(this[_0x25bbf0(0x1b4)]=setTimeout(()=>{const _0x4d7ee2=_0x25bbf0;_0x2f612c[_0x4d7ee2(0x28e)](),this[_0x4d7ee2(0x2bc)][_0x4d7ee2(0x2af)]({'content':this[_0x4d7ee2(0x1c6)]['t'](_0x4d7ee2(0x1eb)),'type':m['MessageType'][_0x4d7ee2(0x204)],'duration':0xbb8});},0x1388));}async[_0x4b636c(0x20e)](_0x5cda6c,_0xc58211){const _0x56ffd7=_0x4b636c;await this['_updateSubUnitFromURLParams'](_0x5cda6c,_0xc58211),_0x5cda6c[_0x56ffd7(0x251)][_0x56ffd7(0x218)]((0x0,P[_0x56ffd7(0x229)])(this['dispose$']))[_0x56ffd7(0x1b1)](_0x78db37=>{_0x78db37&&this['_updateURLWithCurrentState'](_0x78db37);}),this['_urlService'][_0x56ffd7(0x276)][_0x56ffd7(0x218)]((0x0,P[_0x56ffd7(0x229)])(this[_0x56ffd7(0x1c8)]))[_0x56ffd7(0x1b1)](()=>this[_0x56ffd7(0x1de)](_0x5cda6c,_0xc58211));}[_0x4b636c(0x1b5)](_0x37561d,_0x5e5d47=!0x1){const _0x4f33a2=_0x4b636c;let _0x533e26=this[_0x4f33a2(0x248)][_0x4f33a2(0x1e5)](_0x4f33a2(0x202));_0x37561d[_0x4f33a2(0x1c3)]()!==_0x533e26&&this[_0x4f33a2(0x248)][_0x4f33a2(0x1dc)](_0x4f33a2(0x202),_0x37561d[_0x4f33a2(0x1c3)](),_0x5e5d47);}async[_0x4b636c(0x1de)](_0x3ef730,_0x6060e0){const _0x24f102=_0x4b636c;var _0x3c5c13;if(!_0x6060e0||!_0x3ef730['getSheetBySheetId'](_0x6060e0)){let _0x1042cb=_0x3ef730[_0x24f102(0x256)]()[0x0],_0xb52a7c=_0x3ef730[_0x24f102(0x1ef)](_0x1042cb);if(!_0xb52a7c)return;this[_0x24f102(0x1b5)](_0xb52a7c,!0x0),await this[_0x24f102(0x217)]['executeCommand'](t[_0x24f102(0x290)]['id'],{'unitId':_0x3ef730[_0x24f102(0x2a1)](),'subUnitId':_0x1042cb});return;}((_0x3c5c13=_0x3ef730[_0x24f102(0x23c)]())==null?void 0x0:_0x3c5c13[_0x24f102(0x1c3)]())!==_0x6060e0&&await this[_0x24f102(0x217)]['executeCommand'](t[_0x24f102(0x290)]['id'],{'unitId':_0x3ef730[_0x24f102(0x2a1)](),'subUnitId':_0x6060e0});}};J=H([V(0x0,e[_0x4b636c(0x1b3)]),V(0x1,N[_0x4b636c(0x27c)]),V(0x2,(0x0,e[_0x4b636c(0x22e)])(N[_0x4b636c(0x267)])),V(0x3,(0x0,e[_0x4b636c(0x22e)])(G)),V(0x4,(0x0,e['Inject'])(e[_0x4b636c(0x24f)])),V(0x5,N['IMessageService']),V(0x6,(0x0,e[_0x4b636c(0x22e)])(r[_0x4b636c(0x1cf)])),V(0x7,r[_0x4b636c(0x250)]),V(0x8,(0x0,e[_0x4b636c(0x22e)])(r[_0x4b636c(0x22a)])),V(0x9,e[_0x4b636c(0x21c)]),V(0xa,F[_0x4b636c(0x1f0)])],J);function _0x25a1(){const _0x3ec203=['decorate','disposeWithMe','536095PhOohH','display','get','historyPanelHidden','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','BehaviorSubject','every','from','loadUnit','_componentManager','getActiveSheet','session','getSheetCommandTarget','_historyManagerService','_injector','function','IDialogService','params','_dataLoaderService','eventID','edit-history-loader.config','flat','_urlService','UniverLicensePlugin','mergeMenu','UniverUIPlugin','_config','status$','IAuthzIoService','LocaleService','ILocalCacheService','activeSheet$','UniverNetworkPlugin','getAllPlugins','value','UniverRPCMainThreadPlugin','getUnhiddenWorksheets','_initContainer','RevertRevisionMutation','CHANGESET_ACK','univerContainerId','UniverEditHistoryLoaderMobilePlugin','UNIVER_HISTORY_CONTAINER_ID','closeAll','2313564qpYAlH','none','forEach','string','CollaborationStatus','next','triggerLoadVersions','menu','UniverFormulaEnginePlugin','ComponentManager','getCurrentRangeDisable$','history-container','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','set','disposeUnit','MessageType','close','length','UniverSheetsDrawingPlugin','merge','DependentOn','_pluginMap','univer-history-container','some','urlChange$','univer-history-container-mobile','8wqYgmA','onStarting','iterator','_univerInstanceService','IMenuManagerService','CollaborationEvent','1270464ptowgh','IPermissionService','toPrimitive','prototype','WorkbookViewHistoryPermission','state$','historyUniver','UniverSheetsDataValidationMobileUIPlugin','createElement','HistoryLoaderService','HistoryManagerService','getCurrentLocale','UniverSheetsUIPlugin','getUnit','width','ISidebarService','unsubscribe','UniverDataValidationPlugin','SetWorksheetActivateCommand','RangeProtectionRuleModel','_configService','UniverDocsUIPlugin','100%','DisposableCollection','LS_CONFIG_KEY','_init','Module','ThemeService','MenuItemType','UniverDrawingUIPlugin','UniverSheetsChartPlugin','mountHistoryContent','_permissionService','dataset','_handleRevertAcknowledgement','getUnitId','revertRevision$','workerURL','absolute','location','has','_themeService','OPERATION','composePermission','UniverCollaborationPlugin','height','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','toDisposable','style','show','setTheme','_disposableCollection','UniverSheetsPlugin','UNIVER_SHEET','getOwnPropertyDescriptor','exhaustSavingTask','5766828QBJMxs','ToggleEditHistoryOperation','historyUniver$','IConfigService','then','UniverSheetsPivotTablePlugin','_messageService','UNIVER_CONTAINER_ID','object','SYNCED','\x20has\x20been\x20registered.','8090866FhAGCM','type','fromCollab','_initListener','position','UniverSheetsShapeUIPlugin','WorkbookRecoverHistoryPermission','uComp','RibbonStartGroup','_collaborationController','RangeProtectionPermissionEditPoint','UniverSheetSparklinePlugin','UniverSheetsFormulaPlugin','historyListServerUrl','getCurrentUnitOfType','HistoryIcon','WorksheetEditPermission','subscribe','register','ICommandService','_revertErrorTimer','_updateURLWithCurrentState','UniverSheetsFilterUIPlugin','permissionId','[MobileHistoryLoaderService]:\x20Plugin\x20','editHistory.panel.listFetchError','asObservable','event$','historyAIassistantEnabled','Loading','appendChild','OTHERS','IRemoteInstanceService','Injector','getElementById','getSheetId','Entered','version','_localeService','mutations','dispose$','UniverEditHistoryViewerPlugin','UniverRenderEnginePlugin','div','map','clear','UniverSheetsDataValidationUIPlugin','CollaborationController','UniverSheetsNumfmtPlugin','getCollabEntity','UniverDrawingPlugin','univer-container','_initUniver','RxDisposable','onCommandExecuted','setLocale','editHistory.panel.reverting','UniverSheetsDrawingUIPlugin','_internalWebWorker','_selectionProtectionRuleModel','setParam','HistoryModeStatus','_updateSubUnitFromURLParams','_historyUniver$','currentTheme$','defineProperty','UniverSheetsHyperLinkPlugin','17084979TTSJvt','editHistory.panel.title','getParam','setDarkMode','_checkCanRevert','reload','registerCommand','invoke','editHistory.panel.revertFailed','terminate','setConfig','block','getSheetBySheetId','IURLService','Plugin','UniverSheetsTablePlugin','CommandType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IImageIoService','Univer','registerPlugin','dispose','UniverSheetSparklineUIPlugin','_dialogService','_initPlugins','UniverSheetsDataValidationPlugin','whenReady','historyPanelComponentKey','getSheets','IMessageService','packageName','subunit','unMountHistoryContent','Error','[HistoryLoaderService]:\x20Plugin\x20','data','_localCacheService','UniverSheetsConditionalFormattingPlugin','@univerjs-pro/edit-history-loader','UniverSheetsMobileUIPlugin','getSubunitRuleList','UniverSheetsFilterPlugin','_menuManagerService','_setupSubUnitSync','add','5yGBvuI','UniverSheetsChartUIPlugin','getConfig','left','MobileHistoryLoaderService','top','WorkbookEditablePermission','_commandService','pipe','UniverSheetsFormulaUIPlugin','UNIVER_UNKNOWN','executeCommand','IUniverInstanceService','pluginName','UniverInstanceType','1452714IHUJNF','triggerCustomVersions','status','values','combineLatest','UniverDocsPlugin','__getInjector','removeAll','Disposable','_sidebarService','takeUntil','DataLoaderService','Workbook','getMenuHiddenObservable','darkMode$','Inject','editHistory.info.initializing'];_0x25a1=function(){return _0x3ec203;};return _0x25a1();}const Y=_0x4b636c(0x277);let X=class extends e[_0x4b636c(0x227)]{constructor(_0x1024ce,_0x58a265,_0x171f46,_0x9e1509,_0x32e980,_0xbc21e4,_0x5163ef,_0x1ac0f9,_0x3edae3,_0x25eaac){const _0xbafae2=_0x4b636c;super(),this[_0xbafae2(0x1c6)]=_0x1024ce,this[_0xbafae2(0x27b)]=_0x58a265,this[_0xbafae2(0x292)]=_0x171f46,this['_commandService']=_0x9e1509,this[_0xbafae2(0x2bc)]=_0x32e980,this[_0xbafae2(0x29e)]=_0xbc21e4,this['_selectionProtectionRuleModel']=_0x5163ef,this[_0xbafae2(0x1fa)]=_0x1ac0f9,this[_0xbafae2(0x228)]=_0x3edae3,this['_themeService']=_0x25eaac,B(this,_0xbafae2(0x1df),new P[(_0xbafae2(0x237))](null)),B(this,_0xbafae2(0x2b8),this[_0xbafae2(0x1df)][_0xbafae2(0x1ba)]()),B(this,_0xbafae2(0x2b1),new e[(_0xbafae2(0x295))]()),B(this,_0xbafae2(0x273),new Map()),B(this,_0xbafae2(0x1da),null),this[_0xbafae2(0x297)]();}get[_0x4b636c(0x284)](){const _0x4313c0=_0x4b636c;return this[_0x4313c0(0x1df)][_0x4313c0(0x254)];}[_0x4b636c(0x297)](){this['_initContainer'](),this['_initPlugins']();}['_initContainer'](){const _0x207c90=_0x4b636c;var _0x1479ab;let _0x1b58c9=(_0x1479ab=this[_0x207c90(0x292)]['getConfig'](_0x207c90(0x2bd)))==null?_0x207c90(0x1d3):_0x1479ab,_0x340b31=document[_0x207c90(0x1c2)](_0x1b58c9);if(!_0x340b31)return;let _0x27ba84=document[_0x207c90(0x286)](_0x207c90(0x1cb));_0x27ba84['id']=Y,_0x27ba84['dataset'][_0x207c90(0x2c8)]=_0x207c90(0x269),_0x27ba84['style'][_0x207c90(0x2c5)]='absolute',_0x27ba84['style'][_0x207c90(0x215)]='0',_0x27ba84[_0x207c90(0x2ae)][_0x207c90(0x213)]='0',_0x27ba84[_0x207c90(0x2ae)][_0x207c90(0x28c)]='100%',_0x27ba84[_0x207c90(0x2ae)]['height']=_0x207c90(0x294),_0x27ba84[_0x207c90(0x2ae)]['zIndex']='49',_0x27ba84[_0x207c90(0x2ae)]['display']=_0x207c90(0x25f),_0x340b31[_0x207c90(0x1be)](_0x27ba84);}[_0x4b636c(0x1fb)](){const _0x5116ac=_0x4b636c;[[b[_0x5116ac(0x1ca)]],[N['UniverMobileUIPlugin'],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[N['IDialogService'],null]]}],[x[_0x5116ac(0x252)]],[_[_0x5116ac(0x1d2)],{'override':[[_[_0x5116ac(0x1f5)],null]]}],[h[_0x5116ac(0x224)],{'hasScroll':!0x1}],[g[_0x5116ac(0x293)]],[A[_0x5116ac(0x1d0)]],[t[_0x5116ac(0x2b2)],{'notExecuteFormula':!0x0}],[M[_0x5116ac(0x20a)]],[ne[_0x5116ac(0x1ac)]],[re[_0x5116ac(0x219)]],[n[_0x5116ac(0x2aa)]],[O[_0x5116ac(0x20c)]],[C[_0x5116ac(0x208)]],[ie[_0x5116ac(0x1e2)]],[k['UniverSheetsHyperLinkUIPlugin']],[p[_0x5116ac(0x28f)]],[w[_0x5116ac(0x1fc)]],[T[_0x5116ac(0x285)]],[y[_0x5116ac(0x266)],{'notExecuteFormula':!0x0}],[v[_0x5116ac(0x29b)]],[E[_0x5116ac(0x270)]],[D[_0x5116ac(0x1d9)]],[d['UniverSheetSparklinePlugin']],[f[_0x5116ac(0x1f9)]],[o[_0x5116ac(0x29c)]],[s[_0x5116ac(0x211)]],[l['UniverSheetsShapePlugin']],[u[_0x5116ac(0x2c6)]],[c[_0x5116ac(0x2bb)],{'notExecuteFormula':!0x0}],[j[_0x5116ac(0x1f2)]]][_0x5116ac(0x260)](([_0x430011,_0x2f0822])=>this[_0x5116ac(0x1f7)](_0x430011,_0x2f0822));}[_0x4b636c(0x1f8)](){const _0x211b93=_0x4b636c;super['dispose'](),this[_0x211b93(0x203)](),this[_0x211b93(0x273)]['clear']();}['registerPlugin'](_0x4d21e5,_0x329620,_0x1d5381){const _0x5399d2=_0x4b636c;if(this[_0x5399d2(0x273)][_0x5399d2(0x2a6)](_0x4d21e5[_0x5399d2(0x21d)])&&!_0x1d5381)throw Error(_0x5399d2(0x1b8)+_0x4d21e5[_0x5399d2(0x21d)]+_0x5399d2(0x2c0));this['_pluginMap'][_0x5399d2(0x26b)](_0x4d21e5['pluginName'],[_0x4d21e5,_0x329620]);}[_0x4b636c(0x253)](){const _0x24b6eb=_0x4b636c;return Array['from'](this['_pluginMap'][_0x24b6eb(0x222)]());}[_0x4b636c(0x29d)](_0x445534,_0x400c26){const _0x1c7932=_0x4b636c;let _0x575671=document[_0x1c7932(0x1c2)](Y);_0x575671&&(_0x575671[_0x1c7932(0x2ae)][_0x1c7932(0x233)]=_0x1c7932(0x1ee),this['_initUniver'](_0x445534,Y,_0x400c26));}['unMountHistoryContent'](){const _0x364957=_0x4b636c;var _0x2fa827;this['_disposableCollection'][_0x364957(0x1f8)](),(_0x2fa827=this['historyUniver'])==null||_0x2fa827[_0x364957(0x1f8)](),this[_0x364957(0x1df)][_0x364957(0x263)](null);let _0xccb688=document[_0x364957(0x1c2)](Y);_0xccb688&&(_0xccb688[_0x364957(0x2ae)][_0x364957(0x233)]=_0x364957(0x25f),this[_0x364957(0x1da)]&&(this['_internalWebWorker']['terminate'](),this['_internalWebWorker']=null));}[_0x4b636c(0x1d4)](_0xd141f2,_0x1ca408,_0x3b3e14){const _0x1daaeb=_0x4b636c;var _0x29f7fc,_0x3b86a9,_0xd07dc1,_0x4150c1;if(this[_0x1daaeb(0x284)])return;let _0x39c92f=new e[(_0x1daaeb(0x1f6))]({'locales':{[this['_localeService'][_0x1daaeb(0x289)]()]:this[_0x1daaeb(0x1c6)]['getLocales']()},'override':[[e[_0x1daaeb(0x24e)],{'useClass':r['AuthzIoHttpService']}]]}),_0x19a7e8=_0x39c92f[_0x1daaeb(0x225)]();this[_0x1daaeb(0x231)](this[_0x1daaeb(0x2a7)]['darkMode$'][_0x1daaeb(0x1b1)](_0x3904f6=>{const _0x401f39=_0x1daaeb;_0x19a7e8[_0x401f39(0x234)](e[_0x401f39(0x299)])[_0x401f39(0x1e6)](_0x3904f6);})),this['disposeWithMe'](this[_0x1daaeb(0x2a7)][_0x1daaeb(0x1e0)][_0x1daaeb(0x1b1)](_0x45f120=>{const _0x5f291c=_0x1daaeb;_0x19a7e8[_0x5f291c(0x234)](e[_0x5f291c(0x299)])[_0x5f291c(0x2b0)](_0x45f120);})),_0x19a7e8['get'](e[_0x1daaeb(0x24f)])[_0x1daaeb(0x1d7)](this[_0x1daaeb(0x1c6)][_0x1daaeb(0x289)]()),_0x19a7e8[_0x1daaeb(0x234)](e[_0x1daaeb(0x2b9)])[_0x1daaeb(0x1ed)](r[_0x1daaeb(0x236)],this[_0x1daaeb(0x292)][_0x1daaeb(0x212)](r[_0x1daaeb(0x236)]));let _0x41f4cc=this[_0x1daaeb(0x292)]['getConfig'](a[_0x1daaeb(0x296)]);_0x41f4cc&&_0x39c92f[_0x1daaeb(0x1f7)](a['UniverLicensePlugin'],{'license':_0x41f4cc['ls']});let _0x51395b=(_0x29f7fc=this[_0x1daaeb(0x292)][_0x1daaeb(0x212)]('edit-history-loader.config'))==null?void 0x0:_0x29f7fc[_0x1daaeb(0x2a3)],_0x343187=!!_0x51395b;_0x343187&&(this[_0x1daaeb(0x1da)]=_0x51395b instanceof Worker?_0x51395b:null,_0x39c92f[_0x1daaeb(0x1f7)](S[_0x1daaeb(0x255)],{'workerURL':_0x51395b})),this['_pluginMap']['forEach'](([_0x52e2df,_0x3e6ab8])=>{_0x39c92f['registerPlugin'](_0x52e2df,_0x3e6ab8);}),_0x39c92f[_0x1daaeb(0x1f7)](i['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x3b86a9=this[_0x1daaeb(0x292)][_0x1daaeb(0x212)]('edit-history-loader.config'))==null?void 0x0:_0x3b86a9['historyListServerUrl'],'historyPanelComponentKey':(_0xd07dc1=this[_0x1daaeb(0x292)][_0x1daaeb(0x212)](_0x1daaeb(0x246)))==null?void 0x0:_0xd07dc1[_0x1daaeb(0x1fe)],'historyPanelHidden':(_0x4150c1=this['_configService'][_0x1daaeb(0x212)]('edit-history-loader.config'))==null?void 0x0:_0x4150c1['historyPanelHidden']}),_0x19a7e8['invoke'](_0x185d30=>{const _0xc55ae0=_0x1daaeb;this[_0xc55ae0(0x2c4)](_0x185d30,_0xd141f2);}),this['_historyUniver$']['next'](_0x39c92f);let _0x3357a9=_0x19a7e8[_0x1daaeb(0x234)](i[_0x1daaeb(0x288)]),_0x4b0b2=this[_0x1daaeb(0x1e7)](_0xd141f2),_0x142803=()=>{const _0x3e6eb7=_0x1daaeb;_0x3b3e14?_0x3357a9[_0x3e6eb7(0x220)](_0xd141f2,_0x1ca408,_0x4b0b2,_0x3b3e14):_0x3357a9[_0x3e6eb7(0x264)](_0xd141f2,_0x1ca408,_0x4b0b2);};if(this['_messageService'][_0x1daaeb(0x2af)]({'content':this['_localeService']['t'](_0x1daaeb(0x22f)),'type':m[_0x1daaeb(0x26d)][_0x1daaeb(0x1bd)]}),_0x343187)try{_0x19a7e8[_0x1daaeb(0x234)](S[_0x1daaeb(0x1c0)])[_0x1daaeb(0x1fd)]()[_0x1daaeb(0x2ba)](()=>{_0x142803();});}catch{_0x142803();}else _0x142803();}[_0x4b636c(0x2c4)](_0x505e4b,_0x238c0a){const _0x3780bb=_0x4b636c;let _0x211b82=_0x505e4b[_0x3780bb(0x234)](i['HistoryManagerService']);this[_0x3780bb(0x2b1)][_0x3780bb(0x20f)](_0x211b82[_0x3780bb(0x24d)][_0x3780bb(0x1b1)](_0x5a6578=>{const _0x11adc1=_0x3780bb;switch(_0x5a6578){case i[_0x11adc1(0x1dd)][_0x11adc1(0x1c4)]:this[_0x11adc1(0x1fa)][_0x11adc1(0x25d)](),this['_sidebarService'][_0x11adc1(0x26e)]();break;case i[_0x11adc1(0x1dd)]['Exited']:this['_commandService'][_0x11adc1(0x21b)](q['id']),this[_0x11adc1(0x203)]();break;case i[_0x11adc1(0x1dd)][_0x11adc1(0x204)]:this[_0x11adc1(0x203)](),this[_0x11adc1(0x2bc)]['show']({'content':this[_0x11adc1(0x1c6)]['t']('editHistory.panel.listFetchError'),'type':m[_0x11adc1(0x26d)][_0x11adc1(0x204)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x3780bb(0x20f)](_0x211b82[_0x3780bb(0x2a2)][_0x3780bb(0x1b1)](async _0x15c151=>{const _0x8b3b71=_0x3780bb;_0x15c151&&this[_0x8b3b71(0x217)][_0x8b3b71(0x21b)](n[_0x8b3b71(0x258)]['id'],{'unitId':_0x238c0a,'revision':_0x15c151});}));}[_0x4b636c(0x1e7)](_0x84be63){const _0x2e9a1a=_0x4b636c;let _0x503c3e=this[_0x2e9a1a(0x27b)][_0x2e9a1a(0x28b)](_0x84be63)[_0x2e9a1a(0x1ff)]()[_0x2e9a1a(0x1cc)](_0x4d7c61=>_0x4d7c61['getSheetId']()),_0x4fd257=new t[(_0x2e9a1a(0x216))](_0x84be63)['id'],_0x3621a3=_0x503c3e[_0x2e9a1a(0x1cc)](_0x3e2244=>new t['WorksheetEditPermission'](_0x84be63,_0x3e2244)['id']),_0x594281=_0x503c3e[_0x2e9a1a(0x1cc)](_0x2248ed=>this[_0x2e9a1a(0x1db)][_0x2e9a1a(0x20b)](_0x84be63,_0x2248ed)[_0x2e9a1a(0x1cc)](_0x421bd6=>new t[(_0x2e9a1a(0x1aa))](_0x84be63,_0x2248ed,_0x421bd6[_0x2e9a1a(0x1b7)])['id']))[_0x2e9a1a(0x247)](),_0x16a26f=new t[(_0x2e9a1a(0x2c7))](_0x84be63)['id'];return this[_0x2e9a1a(0x29e)]['composePermission']([_0x4fd257,..._0x3621a3,..._0x594281,_0x16a26f])[_0x2e9a1a(0x238)](_0x50d504=>!!_0x50d504['value']);}};X=H([V(0x0,(0x0,e['Inject'])(e[_0x4b636c(0x24f)])),V(0x1,e[_0x4b636c(0x21c)]),V(0x2,e[_0x4b636c(0x2b9)]),V(0x3,e[_0x4b636c(0x1b3)]),V(0x4,N[_0x4b636c(0x200)]),V(0x5,e[_0x4b636c(0x27f)]),V(0x6,(0x0,e[_0x4b636c(0x22e)])(t['RangeProtectionRuleModel'])),V(0x7,(0x0,e[_0x4b636c(0x22e)])(N[_0x4b636c(0x242)])),V(0x8,(0x0,e[_0x4b636c(0x22e)])(N[_0x4b636c(0x28d)])),V(0x9,(0x0,e['Inject'])(e[_0x4b636c(0x299)]))],X);let Z=class extends e[_0x4b636c(0x1f1)]{constructor(_0x1a6b9d=R,_0x2464c1,_0x4458fa){const _0x481a79=_0x4b636c;super(),this['_config']=_0x1a6b9d,this[_0x481a79(0x240)]=_0x2464c1,this[_0x481a79(0x292)]=_0x4458fa;let {menu:_0x4cfa7b,..._0xbb7dfd}=(0x0,e[_0x481a79(0x271)])({},R,this[_0x481a79(0x24c)]);_0x4cfa7b&&this[_0x481a79(0x292)]['setConfig'](_0x481a79(0x265),_0x4cfa7b,{'merge':!0x0}),this[_0x481a79(0x292)]['setConfig'](L,_0xbb7dfd),this[_0x481a79(0x24c)]['univerContainerId']&&this['_configService'][_0x481a79(0x1ed)]('UNIVER_CONTAINER_ID',this[_0x481a79(0x24c)]['univerContainerId']);}[_0x4b636c(0x279)](){const _0x5eefe2=_0x4b636c;[[G,{'useClass':X}],[J]][_0x5eefe2(0x260)](_0x272477=>this[_0x5eefe2(0x240)][_0x5eefe2(0x20f)](_0x272477));}['onSteady'](){const _0x2f0ecb=_0x4b636c;this[_0x2f0ecb(0x240)]['get'](J);}};B(Z,_0x4b636c(0x2c2),e[_0x4b636c(0x21e)]['UNIVER_UNKNOWN']),B(Z,_0x4b636c(0x21d),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x4b636c(0x201),se),B(Z,_0x4b636c(0x1c5),ce),Z=H([(0x0,e[_0x4b636c(0x272)])(a[_0x4b636c(0x249)]),V(0x1,(0x0,e[_0x4b636c(0x22e)])(e[_0x4b636c(0x1c1)])),V(0x2,e['IConfigService'])],Z);let Q=class extends e[_0x4b636c(0x1d5)]{constructor(_0x31e0d0,_0xdbe530,_0x161e70,_0x1e9d5d,_0x19d217,_0x4b13bd,_0xab2f65,_0x231004,_0xf924e5,_0x663267,_0x49a62d){const _0x115393=_0x4b636c;super(),this[_0x115393(0x217)]=_0x31e0d0,this[_0x115393(0x20d)]=_0xdbe530,this['_componentManager']=_0x161e70,this['_historyManagerService']=_0x1e9d5d,this['_localeService']=_0x19d217,this['_messageService']=_0x4b13bd,this['_collaborationController']=_0xab2f65,this[_0x115393(0x207)]=_0x231004,this[_0x115393(0x244)]=_0xf924e5,this[_0x115393(0x27b)]=_0x663267,this[_0x115393(0x248)]=_0x49a62d,B(this,'_revertErrorTimer',null),this[_0x115393(0x297)]();}[_0x4b636c(0x297)](){const _0x2accfc=_0x4b636c;[K,q][_0x2accfc(0x260)](_0x7e1661=>this[_0x2accfc(0x231)]((0x0,e[_0x2accfc(0x2ad)])(this[_0x2accfc(0x217)]['registerCommand'](_0x7e1661)))),this[_0x2accfc(0x231)](this[_0x2accfc(0x23b)]['register'](_0x2accfc(0x1af),I[_0x2accfc(0x1af)])),this[_0x2accfc(0x20d)][_0x2accfc(0x24a)](ue),this[_0x2accfc(0x231)](this[_0x2accfc(0x217)][_0x2accfc(0x1d6)](async(_0x41ef9d,_0x1226bc)=>{const _0x1927e6=_0x2accfc;if(_0x41ef9d['id']===n['RevertRevisionMutation']['id']){let {unitId:_0x15c6ab}=_0x41ef9d[_0x1927e6(0x243)];this[_0x1927e6(0x2bc)][_0x1927e6(0x2af)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':m[_0x1927e6(0x26d)][_0x1927e6(0x1bd)],'duration':0x1388});let _0x3a2c47=this['_collaborationController'][_0x1927e6(0x1d1)](_0x15c6ab);_0x1226bc!=null&&_0x1226bc[_0x1927e6(0x2c3)]?this[_0x1927e6(0x2a0)](_0x3a2c47,async()=>(setTimeout(()=>window[_0x1927e6(0x2a5)][_0x1927e6(0x1e8)]()),!0x0),!0x0):this[_0x1927e6(0x2a0)](_0x3a2c47,async()=>{const _0x4216d9=_0x1927e6;let _0x3bca57=this[_0x4216d9(0x27b)]['getCurrentUnitOfType'](e[_0x4216d9(0x21e)][_0x4216d9(0x2b3)]),_0x22fd30=_0x3bca57==null?void 0x0:_0x3bca57[_0x4216d9(0x23c)]();if(!_0x22fd30)return!0x1;this[_0x4216d9(0x27b)][_0x4216d9(0x26c)](_0x15c6ab);let _0x44c206=await this[_0x4216d9(0x244)][_0x4216d9(0x23a)](_0x15c6ab,e[_0x4216d9(0x21e)][_0x4216d9(0x2b3)]);return _0x44c206&&_0x44c206 instanceof e[_0x4216d9(0x22b)]?(await this[_0x4216d9(0x20e)](_0x44c206,_0x22fd30[_0x4216d9(0x1c3)]()),!0x0):!0x1;});}}));}[_0x4b636c(0x2a0)](_0x2870ef,_0x515f4b,_0x1baba3=!0x1){const _0x122602=_0x4b636c;let _0x2840c8=(0x0,P[_0x122602(0x223)])([_0x2870ef[_0x122602(0x23d)]['event$'],_0x2870ef[_0x122602(0x283)]])[_0x122602(0x1b1)](async([_0xef4ab1,_0x2f96f6])=>{const _0x1bd025=_0x122602;if(_0xef4ab1[_0x1bd025(0x245)]===n['CollaborationEvent'][_0x1bd025(0x259)]&&(_0x2f96f6==null?void 0x0:_0x2f96f6[_0x1bd025(0x221)])===r[_0x1bd025(0x262)][_0x1bd025(0x2bf)]&&_0xef4ab1[_0x1bd025(0x206)][_0x1bd025(0x1c7)][_0x1bd025(0x275)](_0x5b615b=>_0x5b615b['id']===n[_0x1bd025(0x258)]['id'])&&await _0x515f4b()){var _0x47d549;this[_0x1bd025(0x23f)][_0x1bd025(0x203)](),_0x2840c8[_0x1bd025(0x28e)](),this[_0x1bd025(0x1b4)]&&clearTimeout(this[_0x1bd025(0x1b4)]),await((_0x47d549=this[_0x1bd025(0x207)])==null?void 0x0:_0x47d549[_0x1bd025(0x2b5)]());}});_0x1baba3&&(this[_0x122602(0x1b4)]=setTimeout(()=>{const _0x391a7f=_0x122602;_0x2840c8[_0x391a7f(0x28e)](),this[_0x391a7f(0x2bc)][_0x391a7f(0x2af)]({'content':this[_0x391a7f(0x1c6)]['t'](_0x391a7f(0x1eb)),'type':m['MessageType'][_0x391a7f(0x204)],'duration':0xbb8});},0x1388));}async[_0x4b636c(0x20e)](_0x4e9a7d,_0xec9f){const _0x2d9acc=_0x4b636c;await this[_0x2d9acc(0x1de)](_0x4e9a7d,_0xec9f),_0x4e9a7d[_0x2d9acc(0x251)][_0x2d9acc(0x218)]((0x0,P[_0x2d9acc(0x229)])(this[_0x2d9acc(0x1c8)]))[_0x2d9acc(0x1b1)](_0x445186=>{const _0xd6af5=_0x2d9acc;_0x445186&&this[_0xd6af5(0x1b5)](_0x445186);}),this[_0x2d9acc(0x248)][_0x2d9acc(0x276)]['pipe']((0x0,P['takeUntil'])(this[_0x2d9acc(0x1c8)]))[_0x2d9acc(0x1b1)](()=>this[_0x2d9acc(0x1de)](_0x4e9a7d,_0xec9f));}[_0x4b636c(0x1b5)](_0x29ce23,_0x5d3fa4=!0x1){const _0x327a65=_0x4b636c;let _0x2b2348=this[_0x327a65(0x248)][_0x327a65(0x1e5)]('subunit');_0x29ce23[_0x327a65(0x1c3)]()!==_0x2b2348&&this['_urlService'][_0x327a65(0x1dc)](_0x327a65(0x202),_0x29ce23['getSheetId'](),_0x5d3fa4);}async[_0x4b636c(0x1de)](_0x339c94,_0x5bd906){const _0x46e3fd=_0x4b636c;var _0x3797e4;if(!_0x5bd906||!_0x339c94[_0x46e3fd(0x1ef)](_0x5bd906)){let _0x589b4b=_0x339c94[_0x46e3fd(0x256)]()[0x0],_0x4d52cf=_0x339c94[_0x46e3fd(0x1ef)](_0x589b4b);if(!_0x4d52cf)return;this['_updateURLWithCurrentState'](_0x4d52cf,!0x0),await this[_0x46e3fd(0x217)]['executeCommand'](t[_0x46e3fd(0x290)]['id'],{'unitId':_0x339c94[_0x46e3fd(0x2a1)](),'subUnitId':_0x589b4b});return;}((_0x3797e4=_0x339c94['getActiveSheet']())==null?void 0x0:_0x3797e4['getSheetId']())!==_0x5bd906&&await this[_0x46e3fd(0x217)][_0x46e3fd(0x21b)](t[_0x46e3fd(0x290)]['id'],{'unitId':_0x339c94[_0x46e3fd(0x2a1)](),'subUnitId':_0x5bd906});}};Q=H([V(0x0,e[_0x4b636c(0x1b3)]),V(0x1,N[_0x4b636c(0x27c)]),V(0x2,(0x0,e[_0x4b636c(0x22e)])(N[_0x4b636c(0x267)])),V(0x3,(0x0,e[_0x4b636c(0x22e)])(G)),V(0x4,(0x0,e[_0x4b636c(0x22e)])(e[_0x4b636c(0x24f)])),V(0x5,N[_0x4b636c(0x200)]),V(0x6,(0x0,e['Inject'])(r['CollaborationController'])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e[_0x4b636c(0x22e)])(r[_0x4b636c(0x22a)])),V(0x9,e[_0x4b636c(0x21c)]),V(0xa,F[_0x4b636c(0x1f0)])],Q);function _0x57d2(_0xff5779,_0x51a285){_0xff5779=_0xff5779-0x1aa;const _0x25a143=_0x25a1();let _0x57d2af=_0x25a143[_0xff5779];return _0x57d2af;}let $=class extends e[_0x4b636c(0x1f1)]{constructor(_0x19d1d6=R,_0x39cabf,_0x59a36e){const _0x55c0a5=_0x4b636c;super(),this[_0x55c0a5(0x24c)]=_0x19d1d6,this[_0x55c0a5(0x240)]=_0x39cabf,this[_0x55c0a5(0x292)]=_0x59a36e;let {menu:_0x5e1c9d,..._0x496263}=(0x0,e[_0x55c0a5(0x271)])({},R,this[_0x55c0a5(0x24c)]);_0x5e1c9d&&this[_0x55c0a5(0x292)][_0x55c0a5(0x1ed)](_0x55c0a5(0x265),_0x5e1c9d,{'merge':!0x0}),this[_0x55c0a5(0x292)]['setConfig'](L,_0x496263),this['_config'][_0x55c0a5(0x25a)]&&this['_configService'][_0x55c0a5(0x1ed)](U,this[_0x55c0a5(0x24c)][_0x55c0a5(0x25a)]);}[_0x4b636c(0x279)](){const _0xc7ec86=_0x4b636c;[[G],[Q]][_0xc7ec86(0x260)](_0x162b98=>this['_injector'][_0xc7ec86(0x20f)](_0x162b98));}['onSteady'](){const _0x5e0c33=_0x4b636c;this[_0x5e0c33(0x240)][_0x5e0c33(0x234)](Q);}};B($,_0x4b636c(0x2c2),e[_0x4b636c(0x21e)][_0x4b636c(0x21a)]),B($,_0x4b636c(0x21d),_0x4b636c(0x2ac)),B($,_0x4b636c(0x201),se),B($,_0x4b636c(0x1c5),ce),$=H([(0x0,e[_0x4b636c(0x272)])(a[_0x4b636c(0x249)]),V(0x1,(0x0,e[_0x4b636c(0x22e)])(e[_0x4b636c(0x1c1)])),V(0x2,e['IConfigService'])],$),exports[_0x4b636c(0x26a)]=L,Object[_0x4b636c(0x1e1)](exports,_0x4b636c(0x287),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x4b636c(0x214),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x4b636c(0x2b7)]=K,exports['UNIVER_CONTAINER_ID_KEY']=U,exports[_0x4b636c(0x25c)]=W,Object[_0x4b636c(0x1e1)](exports,_0x4b636c(0x25b),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return $;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3cdcf4=_0x2791;(function(_0x4543b5,_0x1cc6fa){const _0x2bf5fe=_0x2791,_0xd4802d=_0x4543b5();while(!![]){try{const _0x931880=parseInt(_0x2bf5fe(0xf4))/0x1+-parseInt(_0x2bf5fe(0xec))/0x2*(-parseInt(_0x2bf5fe(0x123))/0x3)+-parseInt(_0x2bf5fe(0x150))/0x4+parseInt(_0x2bf5fe(0x104))/0x5*(parseInt(_0x2bf5fe(0x163))/0x6)+-parseInt(_0x2bf5fe(0xd0))/0x7*(-parseInt(_0x2bf5fe(0x13a))/0x8)+-parseInt(_0x2bf5fe(0x166))/0x9+parseInt(_0x2bf5fe(0x186))/0xa*(parseInt(_0x2bf5fe(0x14d))/0xb);if(_0x931880===_0x1cc6fa)break;else _0xd4802d['push'](_0xd4802d['shift']());}catch(_0x142920){_0xd4802d['push'](_0xd4802d['shift']());}}}(_0x3343,0x54372));import{CommandType as _0x44ea18,DependentOn as _0x55ff80,Disposable as _0x2029d3,DisposableCollection as _0x2faec9,IAuthzIoService as _0x584edc,ICommandService as _0x5a387f,IConfigService as _0x387412,IPermissionService as _0xe16a20,IUniverInstanceService as _0x4b1f14,Inject as _0x15eedd,Injector as _0x2317a3,LocaleService as _0x32d2bc,Plugin as _0x23d642,RxDisposable as _0x19ac1f,ThemeService as _0xe3d040,Univer as _0x265527,UniverInstanceType as _0x269057,Workbook as _0x18329b,merge as _0x59b6b6,toDisposable as _0x4cee92}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x31f1e2,RangeProtectionRuleModel as _0xb32d55,SetWorksheetActivateCommand as _0x551c9c,UniverSheetsPlugin as _0x3c229c,WorkbookEditablePermission as _0x5a33cd,WorkbookRecoverHistoryPermission as _0xc7b820,WorkbookViewHistoryPermission as _0x38ef1d,WorksheetEditPermission as _0x2ef5d7,getSheetCommandTarget as _0xa1e813}from'@univerjs/sheets';import{CollaborationEvent as _0x2731f4,RevertRevisionMutation as _0x3d6029,UniverCollaborationPlugin as _0x2c8c9c}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5c318a,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x572102,CollaborationController as _0x3e5faf,CollaborationStatus as _0x4ea0a1,DataLoaderService as _0x3705ae,ILocalCacheService as _0x3fb8d5}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x5a8601,HistoryModeStatus as _0x190d8d,UniverEditHistoryViewerMobilePlugin as _0x1cc397,UniverEditHistoryViewerPlugin as _0x47e4d5}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x7be96a,UniverLicensePlugin as _0x56a3f2}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x4d4628}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x163c98}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0xb2aea8}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x4168e0}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x11393a}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x2dbafb}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x7fa849}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x529313}from'@univerjs/data-validation';import{MessageType as _0x1defa2}from'@univerjs/design';import{UniverDocsPlugin as _0x538f12}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x46fc83}from'@univerjs/docs-ui';import{IImageIoService as _0x10d7c3,UniverDrawingPlugin as _0x3d9324}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x53481a}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x13fe5f}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x2d73f1}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x37c922}from'@univerjs/network';import{IRemoteInstanceService as _0x14b6ea,UniverRPCMainThreadPlugin as _0x4918e1}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x3afe8a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x3768f0}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x5ae02d}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x282b82,UniverSheetsDataValidationUIPlugin as _0x329b5b}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x16e557}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x36e547}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x42c3c6}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1c0489}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x4db3f2}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x4a2df2}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x292f9e}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x514839}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x5044ec}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x644fe7}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x50b046,UniverSheetsUIPlugin as _0x45fe6d,getCurrentRangeDisable$ as _0x10942f}from'@univerjs/sheets-ui';import{ComponentManager as _0x21eed6,IDialogService as _0x5648a0,IMenuManagerService as _0x479c58,IMessageService as _0x3b1b42,ISidebarService as _0x58d46f,MenuItemType as _0x34eb6e,RibbonStartGroup as _0x3d75fa,UniverMobileUIPlugin as _0x5702c4,UniverUIPlugin as _0x5f0c3f,getMenuHiddenObservable as _0xb5796a}from'@univerjs/ui';import{BehaviorSubject as _0x56cf2c,combineLatest as _0x2ca74c,takeUntil as _0x53de42}from'rxjs';import{IURLService as _0x49a8dc}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x577669}from'@univerjs/icons';const R=_0x3cdcf4(0x12a);Symbol(R);const z={};function B(_0x3a5cb6){'@babel/helpers - typeof';const _0x54a3c6=_0x3cdcf4;return B=typeof Symbol==_0x54a3c6(0x17f)&&typeof Symbol[_0x54a3c6(0x129)]==_0x54a3c6(0x175)?function(_0x59f8d2){return typeof _0x59f8d2;}:function(_0xdd7b98){const _0x1281db=_0x54a3c6;return _0xdd7b98&&typeof Symbol==_0x1281db(0x17f)&&_0xdd7b98[_0x1281db(0xee)]===Symbol&&_0xdd7b98!==Symbol[_0x1281db(0x13f)]?_0x1281db(0x175):typeof _0xdd7b98;},B(_0x3a5cb6);}function it(_0xcf2a4,_0x5a9262){const _0x5dc89b=_0x3cdcf4;if(B(_0xcf2a4)!=_0x5dc89b(0x133)||!_0xcf2a4)return _0xcf2a4;var _0x41c8e5=_0xcf2a4[Symbol[_0x5dc89b(0x125)]];if(_0x41c8e5!==void 0x0){var _0x311d3a=_0x41c8e5[_0x5dc89b(0xd5)](_0xcf2a4,_0x5a9262||_0x5dc89b(0xe7));if(B(_0x311d3a)!=_0x5dc89b(0x133))return _0x311d3a;throw TypeError(_0x5dc89b(0xf8));}return(_0x5a9262==='string'?String:Number)(_0xcf2a4);}function at(_0x2d63fd){const _0x52bb8d=_0x3cdcf4;var _0x42e912=it(_0x2d63fd,_0x52bb8d(0x18f));return B(_0x42e912)==_0x52bb8d(0x175)?_0x42e912:_0x42e912+'';}function V(_0x22c2c3,_0x3d2e1b,_0x2d2b66){const _0x1d22f9=_0x3cdcf4;return(_0x3d2e1b=at(_0x3d2e1b))in _0x22c2c3?Object[_0x1d22f9(0x122)](_0x22c2c3,_0x3d2e1b,{'value':_0x2d2b66,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22c2c3[_0x3d2e1b]=_0x2d2b66,_0x22c2c3;}function H(_0x39b986,_0x261124){return function(_0x356c08,_0x1df332){_0x261124(_0x356c08,_0x1df332,_0x39b986);};}function U(_0x18b692,_0x331047,_0x4c6628,_0x383634){const _0x3fd003=_0x3cdcf4;var _0xf03aa1=arguments[_0x3fd003(0xe3)],_0x168baa=_0xf03aa1<0x3?_0x331047:_0x383634===null?_0x383634=Object['getOwnPropertyDescriptor'](_0x331047,_0x4c6628):_0x383634,_0xe49835;if(typeof Reflect==_0x3fd003(0x133)&&typeof Reflect[_0x3fd003(0x17a)]=='function')_0x168baa=Reflect['decorate'](_0x18b692,_0x331047,_0x4c6628,_0x383634);else{for(var _0x45b4c1=_0x18b692[_0x3fd003(0xe3)]-0x1;_0x45b4c1>=0x0;_0x45b4c1--)(_0xe49835=_0x18b692[_0x45b4c1])&&(_0x168baa=(_0xf03aa1<0x3?_0xe49835(_0x168baa):_0xf03aa1>0x3?_0xe49835(_0x331047,_0x4c6628,_0x168baa):_0xe49835(_0x331047,_0x4c6628))||_0x168baa);}return _0xf03aa1>0x3&&_0x168baa&&Object[_0x3fd003(0x122)](_0x331047,_0x4c6628,_0x168baa),_0x168baa;}const ot=_0x3cdcf4(0xf0),W=_0x3cdcf4(0xde);function _0x3343(){const _0x5c4d2f=['_dataLoaderService','add','2300232PSnrkH','OPERATION','style','menu','_localeService','dataset','has','permissionId','getUnit','univer.operation.exit-edit-history','historyAIassistantEnabled','whenReady','_initUniver','getActiveSheet','absolute','univerContainerId','position','HistoryIcon','forEach','6UsEWGu','params','_revertErrorTimer','4138218wSWBaK','univer-history-container-mobile','values','dispose$','div','register','_sidebarService','editHistory.panel.revertFailed','_setupSubUnitSync','closeAll','eventID','UNIVER_UNKNOWN','block','getCollabEntity','_handleRevertAcknowledgement','symbol','registerPlugin','mutations','getUnitId','_initPlugins','decorate','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','getCurrentLocale','packageName','composePermission','function','currentTheme$','onStarting','subscribe','urlChange$','_checkCanRevert','_pluginMap','141060wGDMdQ','setParam','close','unsubscribe','_config','mergeMenu','event$','getElementById','getUnhiddenWorksheets','string','zIndex','__getInjector','getSheets','top','_componentManager','loadUnit','1687DDFnTi','version','triggerLoadVersions','darkMode$','clear','call','_internalWebWorker','mountHistoryContent','CHANGESET_ACK','show','editHistory.panel.title','univer-container','value','onCommandExecuted','univer-history-container','_localCacheService','get','appendChild','Error','length','from','invoke','location','default','executeCommand','some','revertRevision$','getAllPlugins','895382Xknnui','_updateSubUnitFromURLParams','constructor','none','UNIVER_CONTAINER_ID','_initListener','historyUniver$','next','231384nLbEsT','_updateURLWithCurrentState','\x20has\x20been\x20registered.','fromCollab','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','then','historyListServerUrl','setLocale','map','workerURL','disposeUnit','display','state$','getSheetBySheetId','onSteady','Exited','111700fWwAGI','_configService','dispose','disposeWithMe','_dialogService','flat','_init','activeSheet$','status$','Entered','0.23.0','_initContainer','exhaustSavingTask','getCurrentUnitOfType','pipe','editHistory.info.initializing','setDarkMode','history-container','getConfig','_commandService','height','editHistory.panel.listFetchError','SYNCED','data','unMountHistoryContent','100%','_historyUniver$','registerCommand','triggerCustomVersions','status','defineProperty','3mpdZoh','_urlService','toPrimitive','getSubunitRuleList','_disposableCollection','univer.operation.toggle-edit-history','iterator','edit-history-loader.config','subunit','_injector','UNIVER_SHEET','session','_themeService','pluginName','left','historyPanelComponentKey','object','getParam','_collaborationController','_messageService','historyPanelHidden','_univerInstanceService','historyUniver','1448dNlicE','uComp','setTheme','Loading','removeAll','prototype','getSheetId','@univerjs-pro/edit-history-loader','_menuManagerService','_selectionProtectionRuleModel','_permissionService','setConfig','getLocales','width','editHistory.panel.reverting','terminate','reload','_historyManagerService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','495tbZihJ'];_0x3343=function(){return _0x5c4d2f;};return _0x3343();}let G=class extends _0x2029d3{constructor(_0x3554ed,_0x1d8a13,_0x5e8ced,_0x2e7f96,_0x38d6f5,_0x177d83,_0x54e837,_0x5e9bf1,_0x109739,_0xd9b8a4){const _0x2e9f3b=_0x3cdcf4;super(),this[_0x2e9f3b(0x154)]=_0x3554ed,this[_0x2e9f3b(0x138)]=_0x1d8a13,this['_configService']=_0x5e8ced,this['_commandService']=_0x2e7f96,this['_messageService']=_0x38d6f5,this['_permissionService']=_0x177d83,this[_0x2e9f3b(0x143)]=_0x54e837,this[_0x2e9f3b(0x108)]=_0x5e9bf1,this[_0x2e9f3b(0x16c)]=_0x109739,this[_0x2e9f3b(0x12f)]=_0xd9b8a4,V(this,_0x2e9f3b(0x11e),new _0x56cf2c(null)),V(this,'historyUniver$',this[_0x2e9f3b(0x11e)]['asObservable']()),V(this,_0x2e9f3b(0x127),new _0x2faec9()),V(this,_0x2e9f3b(0x185),new Map()),V(this,_0x2e9f3b(0xd6),null),this[_0x2e9f3b(0x10a)]();}get[_0x3cdcf4(0x139)](){const _0x214b42=_0x3cdcf4;return this[_0x214b42(0x11e)][_0x214b42(0xdc)];}['_init'](){const _0x44e9af=_0x3cdcf4;this[_0x44e9af(0x10f)](),this['_initPlugins']();}['_initContainer'](){const _0x9c27c7=_0x3cdcf4;var _0x197223;let _0x27df11=(_0x197223=this[_0x9c27c7(0x105)][_0x9c27c7(0x116)](_0x9c27c7(0xf0)))==null?_0x9c27c7(0xdb):_0x197223,_0x592fef=document[_0x9c27c7(0x18d)](_0x27df11);if(!_0x592fef)return;let _0x1ca6dd=document['createElement'](_0x9c27c7(0x16a));_0x1ca6dd['id']=W,_0x1ca6dd[_0x9c27c7(0x155)][_0x9c27c7(0x13b)]='history-container',_0x1ca6dd['style'][_0x9c27c7(0x160)]=_0x9c27c7(0x15e),_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0x193)]='0',_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0x131)]='0',_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0x147)]='100%',_0x1ca6dd['style'][_0x9c27c7(0x118)]=_0x9c27c7(0x11d),_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0x190)]='49',_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0xff)]=_0x9c27c7(0xef),_0x592fef[_0x9c27c7(0xe1)](_0x1ca6dd);}[_0x3cdcf4(0x179)](){const _0x3700a2=_0x3cdcf4;[[_0x2d73f1],[_0x5f0c3f,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5648a0,null]]}],[_0x37c922],[_0x3d9324,{'override':[[_0x10d7c3,null]]}],[_0x538f12,{'hasScroll':!0x1}],[_0x46fc83],[_0x5044ec],[_0x3c229c,{'notExecuteFormula':!0x0}],[_0x45fe6d],[_0x4db3f2],[_0x4a2df2],[_0x2c8c9c],[_0x42c3c6],[_0x1c0489],[_0x3afe8a],[_0x3768f0],[_0x292f9e],[_0x514839],[_0x529313],[_0x5ae02d],[_0x329b5b],[_0x13fe5f,{'notExecuteFormula':!0x0}],[_0x53481a],[_0x16e557],[_0x36e547],[_0x2dbafb],[_0x7fa849],[_0x4d4628],[_0x163c98],[_0x4168e0],[_0x11393a],[_0xb2aea8,{'notExecuteFormula':!0x0}],[_0x644fe7]][_0x3700a2(0x162)](([_0x26b65b,_0x363cab])=>this['registerPlugin'](_0x26b65b,_0x363cab));}[_0x3cdcf4(0x106)](){const _0x305027=_0x3cdcf4;super[_0x305027(0x106)](),this[_0x305027(0x11c)](),this[_0x305027(0x185)][_0x305027(0xd4)]();}['registerPlugin'](_0x1778e8,_0x33e122,_0x1b1ed7){const _0x358010=_0x3cdcf4;if(this[_0x358010(0x185)][_0x358010(0x156)](_0x1778e8[_0x358010(0x130)])&&!_0x1b1ed7)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1778e8['pluginName']+_0x358010(0xf6));this['_pluginMap']['set'](_0x1778e8[_0x358010(0x130)],[_0x1778e8,_0x33e122]);}[_0x3cdcf4(0xeb)](){const _0x48bf5c=_0x3cdcf4;return Array[_0x48bf5c(0xe4)](this[_0x48bf5c(0x185)][_0x48bf5c(0x168)]());}['mountHistoryContent'](_0x278c66,_0x378d25){const _0x512418=_0x3cdcf4;let _0x4b3473=document[_0x512418(0x18d)](W);_0x4b3473&&(_0x4b3473[_0x512418(0x152)][_0x512418(0xff)]='block',this[_0x512418(0x15c)](_0x278c66,W,_0x378d25));}[_0x3cdcf4(0x11c)](){const _0x3a2149=_0x3cdcf4;var _0xf46628;this[_0x3a2149(0x127)][_0x3a2149(0x106)](),(_0xf46628=this[_0x3a2149(0x139)])==null||_0xf46628[_0x3a2149(0x106)](),this[_0x3a2149(0x11e)][_0x3a2149(0xf3)](null);let _0x278691=document[_0x3a2149(0x18d)](W);_0x278691&&(_0x278691[_0x3a2149(0x152)][_0x3a2149(0xff)]=_0x3a2149(0xef),this['_internalWebWorker']&&(this[_0x3a2149(0xd6)][_0x3a2149(0x149)](),this[_0x3a2149(0xd6)]=null));}[_0x3cdcf4(0x15c)](_0x9da4ec,_0x1fe6f8,_0x540239){const _0x459796=_0x3cdcf4;var _0x254802,_0x446868,_0x4c5e18,_0x36e73f,_0x5d54a7;if(this[_0x459796(0x139)])return;let _0x448d8c=new _0x265527({'locales':{[this[_0x459796(0x154)][_0x459796(0x17c)]()]:this[_0x459796(0x154)][_0x459796(0x146)]()},'override':[[_0x584edc,{'useClass':_0x5c318a}]]}),_0x1d7b1f=_0x448d8c[_0x459796(0x191)]();this['disposeWithMe'](this['_themeService'][_0x459796(0xd3)][_0x459796(0x182)](_0x20af4c=>{const _0x4970bb=_0x459796;_0x1d7b1f['get'](_0xe3d040)[_0x4970bb(0x114)](_0x20af4c);})),this['disposeWithMe'](this['_themeService'][_0x459796(0x180)][_0x459796(0x182)](_0x2cec30=>{const _0x538697=_0x459796;_0x1d7b1f[_0x538697(0xe0)](_0xe3d040)[_0x538697(0x13c)](_0x2cec30);})),_0x1d7b1f[_0x459796(0xe0)](_0x32d2bc)[_0x459796(0xfb)](this[_0x459796(0x154)]['getCurrentLocale']()),_0x1d7b1f[_0x459796(0xe0)](_0x387412)['setConfig'](_0x572102,this[_0x459796(0x105)][_0x459796(0x116)](_0x572102));let _0x78a009=this[_0x459796(0x105)][_0x459796(0x116)](_0x7be96a);_0x78a009&&_0x448d8c[_0x459796(0x176)](_0x56a3f2,{'license':_0x78a009['ls']});let _0x54b5d0=(_0x254802=this[_0x459796(0x105)][_0x459796(0x116)](_0x459796(0x12a)))==null?void 0x0:_0x254802[_0x459796(0xfd)],_0x594721=!!_0x54b5d0;_0x594721&&(this['_internalWebWorker']=_0x54b5d0 instanceof Worker?_0x54b5d0:null,_0x448d8c[_0x459796(0x176)](_0x4918e1,{'workerURL':_0x54b5d0})),this['_pluginMap'][_0x459796(0x162)](([_0x1898d3,_0x474379])=>{const _0x221c61=_0x459796;_0x448d8c[_0x221c61(0x176)](_0x1898d3,_0x474379);}),_0x448d8c[_0x459796(0x176)](_0x47e4d5,{'historyListServerUrl':(_0x446868=this[_0x459796(0x105)][_0x459796(0x116)](_0x459796(0x12a)))==null?void 0x0:_0x446868[_0x459796(0xfa)],'historyPanelComponentKey':(_0x4c5e18=this[_0x459796(0x105)][_0x459796(0x116)]('edit-history-loader.config'))==null?void 0x0:_0x4c5e18['historyPanelComponentKey'],'historyPanelHidden':(_0x36e73f=this['_configService'][_0x459796(0x116)](_0x459796(0x12a)))==null?void 0x0:_0x36e73f[_0x459796(0x137)],'historyAIassistantEnabled':(_0x5d54a7=this['_configService'][_0x459796(0x116)](_0x459796(0x12a)))==null?void 0x0:_0x5d54a7[_0x459796(0x15a)]}),_0x1d7b1f['invoke'](_0x14a0a4=>{const _0x418382=_0x459796;this[_0x418382(0xf1)](_0x14a0a4,_0x9da4ec);}),this['_historyUniver$'][_0x459796(0xf3)](_0x448d8c);let _0x35f571=_0x1d7b1f['get'](_0x5a8601),_0x5e0db7=this[_0x459796(0x184)](_0x9da4ec),_0x417c01=()=>{const _0x3a7186=_0x459796;_0x540239?_0x35f571[_0x3a7186(0x120)](_0x9da4ec,_0x1fe6f8,_0x5e0db7,_0x540239):_0x35f571[_0x3a7186(0xd2)](_0x9da4ec,_0x1fe6f8,_0x5e0db7);};if(this[_0x459796(0x136)][_0x459796(0xd9)]({'content':this[_0x459796(0x154)]['t'](_0x459796(0x113)),'type':_0x1defa2[_0x459796(0x13d)]}),_0x594721)try{_0x1d7b1f[_0x459796(0xe0)](_0x14b6ea)[_0x459796(0x15b)]()[_0x459796(0xf9)](()=>{_0x417c01();});}catch{_0x417c01();}else _0x417c01();}[_0x3cdcf4(0xf1)](_0x17a255,_0xcfe916){const _0x3a053a=_0x3cdcf4;let _0x413ea2=_0x17a255[_0x3a053a(0xe0)](_0x5a8601);this[_0x3a053a(0x127)][_0x3a053a(0x14f)](_0x413ea2[_0x3a053a(0x10c)]['subscribe'](_0xfe0514=>{const _0x27292d=_0x3a053a;switch(_0xfe0514){case _0x190d8d[_0x27292d(0x10d)]:this[_0x27292d(0x108)]['closeAll'](),this[_0x27292d(0x16c)][_0x27292d(0x188)]();break;case _0x190d8d[_0x27292d(0x103)]:this[_0x27292d(0x117)][_0x27292d(0xe8)](q['id']),this[_0x27292d(0x11c)]();break;case _0x190d8d[_0x27292d(0xe2)]:this[_0x27292d(0x11c)](),this[_0x27292d(0x136)][_0x27292d(0xd9)]({'content':this[_0x27292d(0x154)]['t'](_0x27292d(0x119)),'type':_0x1defa2['Error'],'duration':0xbb8});break;default:break;}})),this[_0x3a053a(0x127)][_0x3a053a(0x14f)](_0x413ea2['revertRevision$'][_0x3a053a(0x182)](async _0xaed1eb=>{const _0x48cac6=_0x3a053a;_0xaed1eb&&this[_0x48cac6(0x117)]['executeCommand'](_0x3d6029['id'],{'unitId':_0xcfe916,'revision':_0xaed1eb});}));}['_checkCanRevert'](_0x5b3b0a){const _0x3ea338=_0x3cdcf4;let _0xbce262=this[_0x3ea338(0x138)][_0x3ea338(0x158)](_0x5b3b0a)[_0x3ea338(0x192)]()[_0x3ea338(0xfc)](_0x1b6a3e=>_0x1b6a3e[_0x3ea338(0x140)]()),_0x388f28=new _0x5a33cd(_0x5b3b0a)['id'],_0x46adb0=_0xbce262[_0x3ea338(0xfc)](_0x3dda90=>new _0x2ef5d7(_0x5b3b0a,_0x3dda90)['id']),_0x30deb6=_0xbce262['map'](_0x5626b7=>this[_0x3ea338(0x143)][_0x3ea338(0x126)](_0x5b3b0a,_0x5626b7)['map'](_0xf89f8c=>new _0x31f1e2(_0x5b3b0a,_0x5626b7,_0xf89f8c[_0x3ea338(0x157)])['id']))[_0x3ea338(0x109)](),_0x42dfe8=new _0xc7b820(_0x5b3b0a)['id'];return this['_permissionService'][_0x3ea338(0x17e)]([_0x388f28,..._0x46adb0,..._0x30deb6,_0x42dfe8])['every'](_0x242865=>!!_0x242865['value']);}};G=U([H(0x0,_0x15eedd(_0x32d2bc)),H(0x1,_0x4b1f14),H(0x2,_0x387412),H(0x3,_0x5a387f),H(0x4,_0x3b1b42),H(0x5,_0xe16a20),H(0x6,_0x15eedd(_0xb32d55)),H(0x7,_0x15eedd(_0x5648a0)),H(0x8,_0x15eedd(_0x58d46f)),H(0x9,_0x15eedd(_0xe3d040))],G);const K={'id':_0x3cdcf4(0x128),'type':_0x44ea18[_0x3cdcf4(0x151)],'handler':_0x4948b5=>{const _0x4a5f9c=_0x3cdcf4;let _0x5df5b5=_0x4948b5['get'](G),{unitId:_0x4699d8}=_0xa1e813(_0x4948b5[_0x4a5f9c(0xe0)](_0x4b1f14))||{};return _0x4699d8?(_0x5df5b5[_0x4a5f9c(0xd7)](_0x4699d8),!0x0):!0x1;}},q={'id':_0x3cdcf4(0x159),'type':_0x44ea18[_0x3cdcf4(0x151)],'handler':()=>!0x0};var st=_0x3cdcf4(0x141),ct=_0x3cdcf4(0x10e);function lt(_0x301aca){const _0x191708=_0x3cdcf4;return{'id':K['id'],'type':_0x34eb6e['BUTTON'],'icon':'HistoryIcon','tooltip':_0x191708(0xda),'hidden$':_0xb5796a(_0x301aca,_0x269057[_0x191708(0x12d)]),'disabled$':_0x10942f(_0x301aca,{'workbookTypes':[_0x38ef1d],'worksheetTypes':[],'rangeTypes':[]})};}const ut={[_0x3d75fa['OTHERS']]:{[K['id']]:{'order':0.2,'menuItemFactory':lt}}};let J=class extends _0x19ac1f{constructor(_0x130f3d,_0xa01a03,_0x8f2ac1,_0x4bc59e,_0x5645a1,_0x105014,_0x4a3e4e,_0x3be2aa,_0x2ccfe1,_0x4ef1a9,_0x341d96){const _0x341ccc=_0x3cdcf4;super(),this[_0x341ccc(0x117)]=_0x130f3d,this[_0x341ccc(0x142)]=_0xa01a03,this[_0x341ccc(0x194)]=_0x8f2ac1,this[_0x341ccc(0x14b)]=_0x4bc59e,this['_localeService']=_0x5645a1,this['_messageService']=_0x105014,this[_0x341ccc(0x135)]=_0x4a3e4e,this[_0x341ccc(0xdf)]=_0x3be2aa,this['_dataLoaderService']=_0x2ccfe1,this[_0x341ccc(0x138)]=_0x4ef1a9,this[_0x341ccc(0x124)]=_0x341d96,V(this,'_revertErrorTimer',null),this[_0x341ccc(0x10a)]();}[_0x3cdcf4(0x10a)](){const _0x1a7e3a=_0x3cdcf4;[K,q][_0x1a7e3a(0x162)](_0x9087b=>this['disposeWithMe'](_0x4cee92(this[_0x1a7e3a(0x117)][_0x1a7e3a(0x11f)](_0x9087b)))),this[_0x1a7e3a(0x107)](this[_0x1a7e3a(0x194)]['register'](_0x1a7e3a(0x161),_0x577669)),this['_menuManagerService'][_0x1a7e3a(0x18b)](ut),this[_0x1a7e3a(0x107)](this[_0x1a7e3a(0x117)]['onCommandExecuted'](async(_0x49618f,_0x502753)=>{const _0x2bca1b=_0x1a7e3a;if(_0x49618f['id']===_0x3d6029['id']){let {unitId:_0x2c4522}=_0x49618f[_0x2bca1b(0x164)];this[_0x2bca1b(0x136)][_0x2bca1b(0xd9)]({'content':this['_localeService']['t'](_0x2bca1b(0x148)),'type':_0x1defa2[_0x2bca1b(0x13d)],'duration':0x1388});let _0x5308f1=this[_0x2bca1b(0x135)][_0x2bca1b(0x173)](_0x2c4522);_0x502753!=null&&_0x502753[_0x2bca1b(0xf7)]?this[_0x2bca1b(0x174)](_0x5308f1,async()=>(setTimeout(()=>window[_0x2bca1b(0xe6)][_0x2bca1b(0x14a)]()),!0x0),!0x0):this[_0x2bca1b(0x174)](_0x5308f1,async()=>{const _0x4b267b=_0x2bca1b;let _0x4d0736=this[_0x4b267b(0x138)][_0x4b267b(0x111)](_0x269057[_0x4b267b(0x12d)]),_0x1d18c0=_0x4d0736==null?void 0x0:_0x4d0736[_0x4b267b(0x15d)]();if(!_0x1d18c0)return!0x1;this['_univerInstanceService'][_0x4b267b(0xfe)](_0x2c4522);let _0x570f9e=await this[_0x4b267b(0x14e)][_0x4b267b(0x195)](_0x2c4522,_0x269057[_0x4b267b(0x12d)]);return _0x570f9e&&_0x570f9e instanceof _0x18329b?(await this[_0x4b267b(0x16e)](_0x570f9e,_0x1d18c0[_0x4b267b(0x140)]()),!0x0):!0x1;});}}));}[_0x3cdcf4(0x174)](_0x37a44d,_0x2912d9,_0x43ddcf=!0x1){const _0x3f1dc2=_0x3cdcf4;let _0x2cb776=_0x2ca74c([_0x37a44d[_0x3f1dc2(0x12e)][_0x3f1dc2(0x18c)],_0x37a44d[_0x3f1dc2(0x100)]])[_0x3f1dc2(0x182)](async([_0x3f3bce,_0x269594])=>{const _0x1380f8=_0x3f1dc2;if(_0x3f3bce[_0x1380f8(0x170)]===_0x2731f4[_0x1380f8(0xd8)]&&(_0x269594==null?void 0x0:_0x269594['status'])===_0x4ea0a1[_0x1380f8(0x11a)]&&_0x3f3bce[_0x1380f8(0x11b)][_0x1380f8(0x177)]['some'](_0x1b04b9=>_0x1b04b9['id']===_0x3d6029['id'])&&await _0x2912d9()){var _0x590b2b;this[_0x1380f8(0x14b)][_0x1380f8(0x11c)](),_0x2cb776['unsubscribe'](),this[_0x1380f8(0x165)]&&clearTimeout(this[_0x1380f8(0x165)]),await((_0x590b2b=this[_0x1380f8(0xdf)])==null?void 0x0:_0x590b2b['exhaustSavingTask']()),this[_0x1380f8(0x136)][_0x1380f8(0x13e)]();}});_0x43ddcf&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x550dcd=_0x3f1dc2;_0x2cb776[_0x550dcd(0x189)](),this[_0x550dcd(0x136)][_0x550dcd(0xd9)]({'content':this[_0x550dcd(0x154)]['t'](_0x550dcd(0x16d)),'type':_0x1defa2['Error'],'duration':0xbb8});},0x1388));}async[_0x3cdcf4(0x16e)](_0x156ea2,_0x52bc00){const _0x52b6e7=_0x3cdcf4;await this[_0x52b6e7(0xed)](_0x156ea2,_0x52bc00),_0x156ea2[_0x52b6e7(0x10b)][_0x52b6e7(0x112)](_0x53de42(this['dispose$']))[_0x52b6e7(0x182)](_0x2a97b0=>{const _0x74299b=_0x52b6e7;_0x2a97b0&&this[_0x74299b(0xf5)](_0x2a97b0);}),this[_0x52b6e7(0x124)][_0x52b6e7(0x183)][_0x52b6e7(0x112)](_0x53de42(this['dispose$']))[_0x52b6e7(0x182)](()=>this[_0x52b6e7(0xed)](_0x156ea2,_0x52bc00));}[_0x3cdcf4(0xf5)](_0xd799c7,_0x4c93a0=!0x1){const _0x3b4035=_0x3cdcf4;let _0x2ced42=this['_urlService'][_0x3b4035(0x134)]('subunit');_0xd799c7[_0x3b4035(0x140)]()!==_0x2ced42&&this[_0x3b4035(0x124)][_0x3b4035(0x187)](_0x3b4035(0x12b),_0xd799c7['getSheetId'](),_0x4c93a0);}async[_0x3cdcf4(0xed)](_0x26aa7c,_0xdedaa1){const _0x26efbe=_0x3cdcf4;var _0x1aa361;if(!_0xdedaa1||!_0x26aa7c[_0x26efbe(0x101)](_0xdedaa1)){let _0xe03fbe=_0x26aa7c[_0x26efbe(0x18e)]()[0x0],_0x103f5d=_0x26aa7c[_0x26efbe(0x101)](_0xe03fbe);if(!_0x103f5d)return;this[_0x26efbe(0xf5)](_0x103f5d,!0x0),await this[_0x26efbe(0x117)]['executeCommand'](_0x551c9c['id'],{'unitId':_0x26aa7c[_0x26efbe(0x178)](),'subUnitId':_0xe03fbe});return;}((_0x1aa361=_0x26aa7c[_0x26efbe(0x15d)]())==null?void 0x0:_0x1aa361[_0x26efbe(0x140)]())!==_0xdedaa1&&await this['_commandService'][_0x26efbe(0xe8)](_0x551c9c['id'],{'unitId':_0x26aa7c[_0x26efbe(0x178)](),'subUnitId':_0xdedaa1});}};J=U([H(0x0,_0x5a387f),H(0x1,_0x479c58),H(0x2,_0x15eedd(_0x21eed6)),H(0x3,_0x15eedd(G)),H(0x4,_0x15eedd(_0x32d2bc)),H(0x5,_0x3b1b42),H(0x6,_0x15eedd(_0x3e5faf)),H(0x7,_0x3fb8d5),H(0x8,_0x15eedd(_0x3705ae)),H(0x9,_0x4b1f14),H(0xa,_0x49a8dc)],J);const Y=_0x3cdcf4(0x167);let X=class extends _0x2029d3{constructor(_0xc99bd5,_0x3227bb,_0x2b695e,_0x5983fa,_0x4ef471,_0x56b31b,_0x54d7da,_0x373eb6,_0x2dd8fc,_0x17c36e){const _0x41f089=_0x3cdcf4;super(),this[_0x41f089(0x154)]=_0xc99bd5,this[_0x41f089(0x138)]=_0x3227bb,this[_0x41f089(0x105)]=_0x2b695e,this['_commandService']=_0x5983fa,this[_0x41f089(0x136)]=_0x4ef471,this[_0x41f089(0x144)]=_0x56b31b,this['_selectionProtectionRuleModel']=_0x54d7da,this[_0x41f089(0x108)]=_0x373eb6,this[_0x41f089(0x16c)]=_0x2dd8fc,this[_0x41f089(0x12f)]=_0x17c36e,V(this,_0x41f089(0x11e),new _0x56cf2c(null)),V(this,_0x41f089(0xf2),this[_0x41f089(0x11e)]['asObservable']()),V(this,_0x41f089(0x127),new _0x2faec9()),V(this,_0x41f089(0x185),new Map()),V(this,_0x41f089(0xd6),null),this[_0x41f089(0x10a)]();}get[_0x3cdcf4(0x139)](){const _0x373e2e=_0x3cdcf4;return this['_historyUniver$'][_0x373e2e(0xdc)];}['_init'](){const _0x59ea31=_0x3cdcf4;this[_0x59ea31(0x10f)](),this[_0x59ea31(0x179)]();}[_0x3cdcf4(0x10f)](){const _0x5568a1=_0x3cdcf4;var _0x5cf867;let _0x175afa=(_0x5cf867=this[_0x5568a1(0x105)][_0x5568a1(0x116)]('UNIVER_CONTAINER_ID'))==null?_0x5568a1(0xdb):_0x5cf867,_0x443ca1=document['getElementById'](_0x175afa);if(!_0x443ca1)return;let _0x22a903=document['createElement'](_0x5568a1(0x16a));_0x22a903['id']=Y,_0x22a903[_0x5568a1(0x155)][_0x5568a1(0x13b)]=_0x5568a1(0x115),_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x160)]=_0x5568a1(0x15e),_0x22a903['style'][_0x5568a1(0x193)]='0',_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x131)]='0',_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x147)]='100%',_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x118)]=_0x5568a1(0x11d),_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x190)]='49',_0x22a903['style']['display']=_0x5568a1(0xef),_0x443ca1[_0x5568a1(0xe1)](_0x22a903);}[_0x3cdcf4(0x179)](){const _0x4767d7=_0x3cdcf4;[[_0x2d73f1],[_0x5702c4,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5648a0,null]]}],[_0x37c922],[_0x3d9324,{'override':[[_0x10d7c3,null]]}],[_0x538f12,{'hasScroll':!0x1}],[_0x46fc83],[_0x5044ec],[_0x3c229c,{'notExecuteFormula':!0x0}],[_0x50b046],[_0x4db3f2],[_0x4a2df2],[_0x2c8c9c],[_0x42c3c6],[_0x3afe8a],[_0x292f9e],[_0x514839],[_0x529313],[_0x5ae02d],[_0x282b82],[_0x13fe5f,{'notExecuteFormula':!0x0}],[_0x53481a],[_0x16e557],[_0x36e547],[_0x2dbafb],[_0x7fa849],[_0x4d4628],[_0x163c98],[_0x4168e0],[_0x11393a],[_0xb2aea8,{'notExecuteFormula':!0x0}],[_0x644fe7]][_0x4767d7(0x162)](([_0x1a8c02,_0x1cd548])=>this['registerPlugin'](_0x1a8c02,_0x1cd548));}['dispose'](){const _0x514872=_0x3cdcf4;super[_0x514872(0x106)](),this[_0x514872(0x11c)](),this[_0x514872(0x185)][_0x514872(0xd4)]();}[_0x3cdcf4(0x176)](_0x18b2db,_0x1565b6,_0x2a9cc2){const _0x416788=_0x3cdcf4;if(this[_0x416788(0x185)][_0x416788(0x156)](_0x18b2db[_0x416788(0x130)])&&!_0x2a9cc2)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x18b2db[_0x416788(0x130)]+_0x416788(0xf6));this[_0x416788(0x185)]['set'](_0x18b2db[_0x416788(0x130)],[_0x18b2db,_0x1565b6]);}[_0x3cdcf4(0xeb)](){const _0x15f1db=_0x3cdcf4;return Array[_0x15f1db(0xe4)](this['_pluginMap'][_0x15f1db(0x168)]());}['mountHistoryContent'](_0x32f8aa,_0x17dab9){const _0x1bea9d=_0x3cdcf4;let _0x319c1a=document[_0x1bea9d(0x18d)](Y);_0x319c1a&&(_0x319c1a[_0x1bea9d(0x152)][_0x1bea9d(0xff)]=_0x1bea9d(0x172),this[_0x1bea9d(0x15c)](_0x32f8aa,Y,_0x17dab9));}['unMountHistoryContent'](){const _0x45ca52=_0x3cdcf4;var _0x424305;this[_0x45ca52(0x127)][_0x45ca52(0x106)](),(_0x424305=this[_0x45ca52(0x139)])==null||_0x424305[_0x45ca52(0x106)](),this['_historyUniver$']['next'](null);let _0x23e434=document[_0x45ca52(0x18d)](Y);_0x23e434&&(_0x23e434[_0x45ca52(0x152)][_0x45ca52(0xff)]=_0x45ca52(0xef),this[_0x45ca52(0xd6)]&&(this['_internalWebWorker'][_0x45ca52(0x149)](),this[_0x45ca52(0xd6)]=null));}['_initUniver'](_0x1f9833,_0x4d51ed,_0x113809){const _0x134f0b=_0x3cdcf4;var _0x2ae299,_0x1f007d,_0x417dba,_0xcfadfa;if(this[_0x134f0b(0x139)])return;let _0xd047f9=new _0x265527({'locales':{[this[_0x134f0b(0x154)][_0x134f0b(0x17c)]()]:this[_0x134f0b(0x154)][_0x134f0b(0x146)]()},'override':[[_0x584edc,{'useClass':_0x5c318a}]]}),_0x25376b=_0xd047f9[_0x134f0b(0x191)]();this['disposeWithMe'](this[_0x134f0b(0x12f)]['darkMode$'][_0x134f0b(0x182)](_0x9a0630=>{const _0x25e325=_0x134f0b;_0x25376b['get'](_0xe3d040)[_0x25e325(0x114)](_0x9a0630);})),this[_0x134f0b(0x107)](this[_0x134f0b(0x12f)][_0x134f0b(0x180)][_0x134f0b(0x182)](_0x4b92a0=>{const _0x53b07e=_0x134f0b;_0x25376b[_0x53b07e(0xe0)](_0xe3d040)[_0x53b07e(0x13c)](_0x4b92a0);})),_0x25376b['get'](_0x32d2bc)[_0x134f0b(0xfb)](this[_0x134f0b(0x154)][_0x134f0b(0x17c)]()),_0x25376b[_0x134f0b(0xe0)](_0x387412)['setConfig'](_0x572102,this[_0x134f0b(0x105)][_0x134f0b(0x116)](_0x572102));let _0x45cb06=this[_0x134f0b(0x105)][_0x134f0b(0x116)](_0x7be96a);_0x45cb06&&_0xd047f9[_0x134f0b(0x176)](_0x56a3f2,{'license':_0x45cb06['ls']});let _0x1aba4c=(_0x2ae299=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x2ae299['workerURL'],_0x4e7c12=!!_0x1aba4c;_0x4e7c12&&(this[_0x134f0b(0xd6)]=_0x1aba4c instanceof Worker?_0x1aba4c:null,_0xd047f9[_0x134f0b(0x176)](_0x4918e1,{'workerURL':_0x1aba4c})),this[_0x134f0b(0x185)]['forEach'](([_0x29074d,_0x1986d4])=>{const _0x3843a1=_0x134f0b;_0xd047f9[_0x3843a1(0x176)](_0x29074d,_0x1986d4);}),_0xd047f9[_0x134f0b(0x176)](_0x1cc397,{'historyListServerUrl':(_0x1f007d=this[_0x134f0b(0x105)][_0x134f0b(0x116)](_0x134f0b(0x12a)))==null?void 0x0:_0x1f007d[_0x134f0b(0xfa)],'historyPanelComponentKey':(_0x417dba=this[_0x134f0b(0x105)][_0x134f0b(0x116)]('edit-history-loader.config'))==null?void 0x0:_0x417dba[_0x134f0b(0x132)],'historyPanelHidden':(_0xcfadfa=this[_0x134f0b(0x105)]['getConfig'](_0x134f0b(0x12a)))==null?void 0x0:_0xcfadfa[_0x134f0b(0x137)]}),_0x25376b[_0x134f0b(0xe5)](_0xf4a2b7=>{this['_initListener'](_0xf4a2b7,_0x1f9833);}),this['_historyUniver$']['next'](_0xd047f9);let _0x4e6325=_0x25376b[_0x134f0b(0xe0)](_0x5a8601),_0x4c26cc=this[_0x134f0b(0x184)](_0x1f9833),_0x4580ef=()=>{const _0x384432=_0x134f0b;_0x113809?_0x4e6325['triggerCustomVersions'](_0x1f9833,_0x4d51ed,_0x4c26cc,_0x113809):_0x4e6325[_0x384432(0xd2)](_0x1f9833,_0x4d51ed,_0x4c26cc);};if(this['_messageService'][_0x134f0b(0xd9)]({'content':this[_0x134f0b(0x154)]['t'](_0x134f0b(0x113)),'type':_0x1defa2['Loading']}),_0x4e7c12)try{_0x25376b[_0x134f0b(0xe0)](_0x14b6ea)[_0x134f0b(0x15b)]()[_0x134f0b(0xf9)](()=>{_0x4580ef();});}catch{_0x4580ef();}else _0x4580ef();}[_0x3cdcf4(0xf1)](_0xb9ced,_0x29b352){const _0xa7a072=_0x3cdcf4;let _0x5a8def=_0xb9ced[_0xa7a072(0xe0)](_0x5a8601);this[_0xa7a072(0x127)][_0xa7a072(0x14f)](_0x5a8def[_0xa7a072(0x10c)][_0xa7a072(0x182)](_0x31915f=>{const _0x3ff760=_0xa7a072;switch(_0x31915f){case _0x190d8d[_0x3ff760(0x10d)]:this[_0x3ff760(0x108)][_0x3ff760(0x16f)](),this[_0x3ff760(0x16c)]['close']();break;case _0x190d8d[_0x3ff760(0x103)]:this[_0x3ff760(0x117)][_0x3ff760(0xe8)](q['id']),this[_0x3ff760(0x11c)]();break;case _0x190d8d[_0x3ff760(0xe2)]:this[_0x3ff760(0x11c)](),this[_0x3ff760(0x136)]['show']({'content':this[_0x3ff760(0x154)]['t']('editHistory.panel.listFetchError'),'type':_0x1defa2[_0x3ff760(0xe2)],'duration':0xbb8});break;default:break;}})),this[_0xa7a072(0x127)][_0xa7a072(0x14f)](_0x5a8def[_0xa7a072(0xea)][_0xa7a072(0x182)](async _0x1f70fb=>{const _0x20cd40=_0xa7a072;_0x1f70fb&&this[_0x20cd40(0x117)][_0x20cd40(0xe8)](_0x3d6029['id'],{'unitId':_0x29b352,'revision':_0x1f70fb});}));}[_0x3cdcf4(0x184)](_0x3608a0){const _0x35e816=_0x3cdcf4;let _0x48f052=this[_0x35e816(0x138)][_0x35e816(0x158)](_0x3608a0)[_0x35e816(0x192)]()[_0x35e816(0xfc)](_0x296829=>_0x296829['getSheetId']()),_0x2f536c=new _0x5a33cd(_0x3608a0)['id'],_0x3728fa=_0x48f052[_0x35e816(0xfc)](_0x1d75e0=>new _0x2ef5d7(_0x3608a0,_0x1d75e0)['id']),_0xaaa451=_0x48f052[_0x35e816(0xfc)](_0x2cbc43=>this[_0x35e816(0x143)]['getSubunitRuleList'](_0x3608a0,_0x2cbc43)['map'](_0x1a43e3=>new _0x31f1e2(_0x3608a0,_0x2cbc43,_0x1a43e3[_0x35e816(0x157)])['id']))[_0x35e816(0x109)](),_0x53f6f7=new _0xc7b820(_0x3608a0)['id'];return this[_0x35e816(0x144)][_0x35e816(0x17e)]([_0x2f536c,..._0x3728fa,..._0xaaa451,_0x53f6f7])['every'](_0x40631a=>!!_0x40631a[_0x35e816(0xdc)]);}};X=U([H(0x0,_0x15eedd(_0x32d2bc)),H(0x1,_0x4b1f14),H(0x2,_0x387412),H(0x3,_0x5a387f),H(0x4,_0x3b1b42),H(0x5,_0xe16a20),H(0x6,_0x15eedd(_0xb32d55)),H(0x7,_0x15eedd(_0x5648a0)),H(0x8,_0x15eedd(_0x58d46f)),H(0x9,_0x15eedd(_0xe3d040))],X);let Z=class extends _0x23d642{constructor(_0x53669c=z,_0x468c3c,_0x91752){const _0x284179=_0x3cdcf4;super(),this['_config']=_0x53669c,this[_0x284179(0x12c)]=_0x468c3c,this[_0x284179(0x105)]=_0x91752;let {menu:_0x2f4c57,..._0x382b66}=_0x59b6b6({},z,this[_0x284179(0x18a)]);_0x2f4c57&&this[_0x284179(0x105)][_0x284179(0x145)](_0x284179(0x153),_0x2f4c57,{'merge':!0x0}),this[_0x284179(0x105)][_0x284179(0x145)](R,_0x382b66),this[_0x284179(0x18a)]['univerContainerId']&&this[_0x284179(0x105)][_0x284179(0x145)](_0x284179(0xf0),this[_0x284179(0x18a)][_0x284179(0x15f)]);}[_0x3cdcf4(0x181)](){[[G,{'useClass':X}],[J]]['forEach'](_0x3cc1b1=>this['_injector']['add'](_0x3cc1b1));}[_0x3cdcf4(0x102)](){const _0x49a1c4=_0x3cdcf4;this[_0x49a1c4(0x12c)]['get'](J);}};V(Z,'type',_0x269057[_0x3cdcf4(0x171)]),V(Z,_0x3cdcf4(0x130),_0x3cdcf4(0x17b)),V(Z,_0x3cdcf4(0x17d),st),V(Z,_0x3cdcf4(0xd1),ct),Z=U([_0x55ff80(_0x56a3f2),H(0x1,_0x15eedd(_0x2317a3)),H(0x2,_0x387412)],Z);let Q=class extends _0x19ac1f{constructor(_0x4b3b7c,_0x1d2cf5,_0xe8472f,_0x3a96b2,_0x39a260,_0x1b570c,_0x5cf3ce,_0x2c51db,_0x46051b,_0xa5464c,_0x187713){const _0x3a1393=_0x3cdcf4;super(),this[_0x3a1393(0x117)]=_0x4b3b7c,this['_menuManagerService']=_0x1d2cf5,this[_0x3a1393(0x194)]=_0xe8472f,this[_0x3a1393(0x14b)]=_0x3a96b2,this[_0x3a1393(0x154)]=_0x39a260,this['_messageService']=_0x1b570c,this[_0x3a1393(0x135)]=_0x5cf3ce,this['_localCacheService']=_0x2c51db,this[_0x3a1393(0x14e)]=_0x46051b,this[_0x3a1393(0x138)]=_0xa5464c,this[_0x3a1393(0x124)]=_0x187713,V(this,_0x3a1393(0x165),null),this[_0x3a1393(0x10a)]();}['_init'](){const _0x4000ee=_0x3cdcf4;[K,q][_0x4000ee(0x162)](_0x1fd0c7=>this[_0x4000ee(0x107)](_0x4cee92(this[_0x4000ee(0x117)]['registerCommand'](_0x1fd0c7)))),this[_0x4000ee(0x107)](this[_0x4000ee(0x194)][_0x4000ee(0x16b)](_0x4000ee(0x161),_0x577669)),this[_0x4000ee(0x142)][_0x4000ee(0x18b)](ut),this['disposeWithMe'](this[_0x4000ee(0x117)][_0x4000ee(0xdd)](async(_0x29ff9f,_0x15240f)=>{const _0x3076b2=_0x4000ee;if(_0x29ff9f['id']===_0x3d6029['id']){let {unitId:_0x241f58}=_0x29ff9f['params'];this[_0x3076b2(0x136)][_0x3076b2(0xd9)]({'content':this['_localeService']['t'](_0x3076b2(0x148)),'type':_0x1defa2[_0x3076b2(0x13d)],'duration':0x1388});let _0x329a8e=this[_0x3076b2(0x135)][_0x3076b2(0x173)](_0x241f58);_0x15240f!=null&&_0x15240f['fromCollab']?this['_handleRevertAcknowledgement'](_0x329a8e,async()=>(setTimeout(()=>window[_0x3076b2(0xe6)][_0x3076b2(0x14a)]()),!0x0),!0x0):this[_0x3076b2(0x174)](_0x329a8e,async()=>{const _0x19cc23=_0x3076b2;let _0x2b8e6c=this[_0x19cc23(0x138)][_0x19cc23(0x111)](_0x269057[_0x19cc23(0x12d)]),_0x5c1825=_0x2b8e6c==null?void 0x0:_0x2b8e6c['getActiveSheet']();if(!_0x5c1825)return!0x1;this[_0x19cc23(0x138)][_0x19cc23(0xfe)](_0x241f58);let _0x5416d6=await this[_0x19cc23(0x14e)][_0x19cc23(0x195)](_0x241f58,_0x269057[_0x19cc23(0x12d)]);return _0x5416d6&&_0x5416d6 instanceof _0x18329b?(await this[_0x19cc23(0x16e)](_0x5416d6,_0x5c1825[_0x19cc23(0x140)]()),!0x0):!0x1;});}}));}[_0x3cdcf4(0x174)](_0x2e2a5b,_0x1673ac,_0x56e672=!0x1){const _0x482d10=_0x3cdcf4;let _0x28d193=_0x2ca74c([_0x2e2a5b[_0x482d10(0x12e)][_0x482d10(0x18c)],_0x2e2a5b['state$']])[_0x482d10(0x182)](async([_0xaf9f40,_0x3cd8fe])=>{const _0x20da74=_0x482d10;if(_0xaf9f40['eventID']===_0x2731f4['CHANGESET_ACK']&&(_0x3cd8fe==null?void 0x0:_0x3cd8fe[_0x20da74(0x121)])===_0x4ea0a1[_0x20da74(0x11a)]&&_0xaf9f40[_0x20da74(0x11b)][_0x20da74(0x177)][_0x20da74(0xe9)](_0x8546f8=>_0x8546f8['id']===_0x3d6029['id'])&&await _0x1673ac()){var _0x34b3e7;this[_0x20da74(0x14b)][_0x20da74(0x11c)](),_0x28d193[_0x20da74(0x189)](),this[_0x20da74(0x165)]&&clearTimeout(this['_revertErrorTimer']),await((_0x34b3e7=this['_localCacheService'])==null?void 0x0:_0x34b3e7[_0x20da74(0x110)]());}});_0x56e672&&(this[_0x482d10(0x165)]=setTimeout(()=>{const _0x250679=_0x482d10;_0x28d193[_0x250679(0x189)](),this['_messageService'][_0x250679(0xd9)]({'content':this['_localeService']['t'](_0x250679(0x16d)),'type':_0x1defa2[_0x250679(0xe2)],'duration':0xbb8});},0x1388));}async[_0x3cdcf4(0x16e)](_0x5cd9b8,_0x316c7f){const _0x1f4a20=_0x3cdcf4;await this[_0x1f4a20(0xed)](_0x5cd9b8,_0x316c7f),_0x5cd9b8['activeSheet$'][_0x1f4a20(0x112)](_0x53de42(this[_0x1f4a20(0x169)]))[_0x1f4a20(0x182)](_0x18fbde=>{const _0x568c17=_0x1f4a20;_0x18fbde&&this[_0x568c17(0xf5)](_0x18fbde);}),this[_0x1f4a20(0x124)][_0x1f4a20(0x183)][_0x1f4a20(0x112)](_0x53de42(this[_0x1f4a20(0x169)]))['subscribe'](()=>this[_0x1f4a20(0xed)](_0x5cd9b8,_0x316c7f));}['_updateURLWithCurrentState'](_0x58acc1,_0x5ce8f3=!0x1){const _0x293a1d=_0x3cdcf4;let _0x4e40d4=this[_0x293a1d(0x124)][_0x293a1d(0x134)](_0x293a1d(0x12b));_0x58acc1[_0x293a1d(0x140)]()!==_0x4e40d4&&this[_0x293a1d(0x124)][_0x293a1d(0x187)](_0x293a1d(0x12b),_0x58acc1[_0x293a1d(0x140)](),_0x5ce8f3);}async[_0x3cdcf4(0xed)](_0x26de6a,_0x7f84df){const _0x1c379b=_0x3cdcf4;var _0xe9cea2;if(!_0x7f84df||!_0x26de6a[_0x1c379b(0x101)](_0x7f84df)){let _0x42c2cb=_0x26de6a[_0x1c379b(0x18e)]()[0x0],_0x1930a5=_0x26de6a[_0x1c379b(0x101)](_0x42c2cb);if(!_0x1930a5)return;this['_updateURLWithCurrentState'](_0x1930a5,!0x0),await this[_0x1c379b(0x117)][_0x1c379b(0xe8)](_0x551c9c['id'],{'unitId':_0x26de6a[_0x1c379b(0x178)](),'subUnitId':_0x42c2cb});return;}((_0xe9cea2=_0x26de6a[_0x1c379b(0x15d)]())==null?void 0x0:_0xe9cea2[_0x1c379b(0x140)]())!==_0x7f84df&&await this[_0x1c379b(0x117)]['executeCommand'](_0x551c9c['id'],{'unitId':_0x26de6a[_0x1c379b(0x178)](),'subUnitId':_0x7f84df});}};function _0x2791(_0x1688d3,_0x5ec134){_0x1688d3=_0x1688d3-0xd0;const _0x3343be=_0x3343();let _0x2791c0=_0x3343be[_0x1688d3];return _0x2791c0;}Q=U([H(0x0,_0x5a387f),H(0x1,_0x479c58),H(0x2,_0x15eedd(_0x21eed6)),H(0x3,_0x15eedd(G)),H(0x4,_0x15eedd(_0x32d2bc)),H(0x5,_0x3b1b42),H(0x6,_0x15eedd(_0x3e5faf)),H(0x7,_0x3fb8d5),H(0x8,_0x15eedd(_0x3705ae)),H(0x9,_0x4b1f14),H(0xa,_0x49a8dc)],Q);let $=class extends _0x23d642{constructor(_0x518310=z,_0x1808ee,_0x374bbb){const _0xcc93cd=_0x3cdcf4;super(),this[_0xcc93cd(0x18a)]=_0x518310,this[_0xcc93cd(0x12c)]=_0x1808ee,this[_0xcc93cd(0x105)]=_0x374bbb;let {menu:_0x562f9e,..._0x25f507}=_0x59b6b6({},z,this[_0xcc93cd(0x18a)]);_0x562f9e&&this[_0xcc93cd(0x105)]['setConfig']('menu',_0x562f9e,{'merge':!0x0}),this[_0xcc93cd(0x105)]['setConfig'](R,_0x25f507),this['_config']['univerContainerId']&&this[_0xcc93cd(0x105)]['setConfig'](ot,this[_0xcc93cd(0x18a)]['univerContainerId']);}['onStarting'](){const _0x16e875=_0x3cdcf4;[[G],[Q]]['forEach'](_0xb354f=>this[_0x16e875(0x12c)]['add'](_0xb354f));}[_0x3cdcf4(0x102)](){const _0x3ca6ba=_0x3cdcf4;this[_0x3ca6ba(0x12c)][_0x3ca6ba(0xe0)](Q);}};V($,'type',_0x269057['UNIVER_UNKNOWN']),V($,'pluginName',_0x3cdcf4(0x14c)),V($,'packageName',st),V($,_0x3cdcf4(0xd1),ct),$=U([_0x55ff80(_0x56a3f2),H(0x1,_0x15eedd(_0x2317a3)),H(0x2,_0x387412)],$);export{R as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,ot as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
1
+ const _0xd3747d=_0xe99c;(function(_0x538946,_0x504149){const _0x49730c=_0xe99c,_0x2636df=_0x538946();while(!![]){try{const _0x3d31a2=-parseInt(_0x49730c(0x2af))/0x1+parseInt(_0x49730c(0x1f4))/0x2+-parseInt(_0x49730c(0x1fd))/0x3*(parseInt(_0x49730c(0x242))/0x4)+parseInt(_0x49730c(0x20d))/0x5+parseInt(_0x49730c(0x240))/0x6*(parseInt(_0x49730c(0x296))/0x7)+-parseInt(_0x49730c(0x22f))/0x8*(parseInt(_0x49730c(0x278))/0x9)+parseInt(_0x49730c(0x210))/0xa;if(_0x3d31a2===_0x504149)break;else _0x2636df['push'](_0x2636df['shift']());}catch(_0x94d5f){_0x2636df['push'](_0x2636df['shift']());}}}(_0x545a,0x89959));import{CommandType as _0x46f158,DependentOn as _0xeab6e0,Disposable as _0x6c5d76,DisposableCollection as _0x58b672,IAuthzIoService as _0x25a20c,ICommandService as _0x57aba4,IConfigService as _0x550417,IPermissionService as _0x5dc172,IUniverInstanceService as _0x1bbbcc,Inject as _0x506b77,Injector as _0x11bf60,LocaleService as _0x2fd53d,Plugin as _0x545f8f,RxDisposable as _0x23822b,ThemeService as _0x56c0a0,Univer as _0x33c36b,UniverInstanceType as _0x31ee75,Workbook as _0x2a7488,merge as _0x33300f,toDisposable as _0x3e40d9}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x15136c,RangeProtectionRuleModel as _0x34e08b,SetWorksheetActivateCommand as _0x5ddf17,UniverSheetsPlugin as _0x33c86b,WorkbookEditablePermission as _0x210132,WorkbookRecoverHistoryPermission as _0x56ae1e,WorkbookViewHistoryPermission as _0x4de8e1,WorksheetEditPermission as _0x1c1e44,getSheetCommandTarget as _0x4eed07}from'@univerjs/sheets';import{CollaborationEvent as _0x473a70,RevertRevisionMutation as _0x4a9cc0,UniverCollaborationPlugin as _0x540b93}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x328722,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x249dd6,CollaborationController as _0x403598,CollaborationStatus as _0x1c0ec0,DataLoaderService as _0x297f87,ILocalCacheService as _0x4cecb8}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x39e9ab,HistoryModeStatus as _0x3033a5,UniverEditHistoryViewerMobilePlugin as _0x55a3ef,UniverEditHistoryViewerPlugin as _0x4ad7ee}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x1ae143,UniverLicensePlugin as _0x42940f}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x3ab737}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xc6fc17}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x41cc6c}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xd239}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x5310aa}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x4eb0a1}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xf3b184}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x318883}from'@univerjs/data-validation';import{MessageType as _0x235979}from'@univerjs/design';import{UniverDocsPlugin as _0x56f869}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1b9c79}from'@univerjs/docs-ui';import{IImageIoService as _0x5bff47,UniverDrawingPlugin as _0x798726}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x4abb8b}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x1d50f9}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x270392}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x458233}from'@univerjs/network';import{IRemoteInstanceService as _0x197e95,UniverRPCMainThreadPlugin as _0x14cb3e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x8742fa}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x153c52}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x3dd0c9}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0xd9d82f,UniverSheetsDataValidationUIPlugin as _0x1a32b2}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5b59e6}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x363dea}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x50dd11}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x379bf4}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xfe84d7}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x562138}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x332a69}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x15240e}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x48f874}from'@univerjs/sheets-numfmt';function _0x545a(){const _0x4f09ac=['getOwnPropertyDescriptor','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','onStarting','subscribe','workerURL','BUTTON','_pluginMap','_internalWebWorker','fromCollab','@univerjs-pro/edit-history-loader','editHistory.panel.listFetchError','type','1602636VAzogd','Exited','2528ODitPx','clear','location','registerCommand','dispose','_updateSubUnitFromURLParams','_permissionService','version','Entered','univer.operation.toggle-edit-history','activeSheet$','show','history-container','set','_commandService','from','params','onCommandExecuted','iterator','defineProperty','exhaustSavingTask','getSheetBySheetId','left','unMountHistoryContent','getSubunitRuleList','style','composePermission','_historyManagerService','every','setParam','historyUniver$','pipe','urlChange$','some','flat','top','mutations','Error','getElementById','100%','closeAll','menu','univer-history-container-mobile','symbol','mountHistoryContent','setLocale','UNIVER_UNKNOWN','getParam','getCurrentUnitOfType','block','_handleRevertAcknowledgement','univerContainerId','_config','univer.operation.exit-edit-history','12213genBfA','mergeMenu','CHANGESET_ACK','historyUniver','values','call','UNIVER_SHEET','appendChild','status$','div','_localeService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_componentManager','absolute','close','Loading','decorate','_initListener','createElement','getAllPlugins','_localCacheService','zIndex','getSheets','_dialogService','value','HistoryIcon','uComp','pluginName','string','_menuManagerService','21CTUomH','_historyUniver$','_injector','_dataLoaderService','packageName','function','_configService','then','revertRevision$','height','editHistory.panel.revertFailed','edit-history-loader.config','_themeService','getUnit','state$','default','_setupSubUnitSync','SYNCED','length','getUnhiddenWorksheets','none','forEach','disposeUnit','loadUnit','register','689368NgqdEL','triggerLoadVersions','historyPanelHidden','historyListServerUrl','univer-container','reload','getActiveSheet','\x20has\x20been\x20registered.','registerPlugin','object','getCollabEntity','session','OPERATION','unsubscribe','681720UBprhf','_init','_selectionProtectionRuleModel','prototype','eventID','permissionId','executeCommand','getSheetId','dataset','3909zMfVZP','_collaborationController','_initContainer','terminate','whenReady','add','event$','UNIVER_CONTAINER_ID','asObservable','setConfig','display','editHistory.panel.reverting','map','editHistory.info.initializing','getConfig','triggerCustomVersions','2035980cSQhFo','has','_revertErrorTimer','7509400mhvAHf','onSteady','_initPlugins','setTheme','historyPanelComponentKey','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','invoke','darkMode$','get','setDarkMode','historyAIassistantEnabled','_messageService','getUnitId','data','toPrimitive','OTHERS','_checkCanRevert','[MobileHistoryLoaderService]:\x20Plugin\x20','getCurrentLocale','disposeWithMe','_urlService','position','subunit','_disposableCollection','_sidebarService','_univerInstanceService','width','_updateURLWithCurrentState','next','currentTheme$','_initUniver','1320wtBgqq','__getInjector','dispose$','status','[HistoryLoaderService]:\x20Plugin\x20'];_0x545a=function(){return _0x4f09ac;};return _0x545a();}import{UniverSheetsTablePlugin as _0x1ffac4}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x4307c2,UniverSheetsUIPlugin as _0x2c3c9f,getCurrentRangeDisable$ as _0x565f31}from'@univerjs/sheets-ui';import{ComponentManager as _0x579cf7,IDialogService as _0x4cc893,IMenuManagerService as _0x7ea17b,IMessageService as _0x388624,ISidebarService as _0x376338,MenuItemType as _0x5aba48,RibbonStartGroup as _0x37854d,UniverMobileUIPlugin as _0x3b5660,UniverUIPlugin as _0x924848,getMenuHiddenObservable as _0x3be5a3}from'@univerjs/ui';import{BehaviorSubject as _0xf7d34,combineLatest as _0x3fef9b,takeUntil as _0x181a1c}from'rxjs';import{IURLService as _0x43f444}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x357cc1}from'@univerjs/icons';const R=_0xd3747d(0x2a1);Symbol(R);const z={};function B(_0x5b8664){'@babel/helpers - typeof';const _0x27bf9d=_0xd3747d;return B=typeof Symbol=='function'&&typeof Symbol[_0x27bf9d(0x254)]=='symbol'?function(_0x4e01d4){return typeof _0x4e01d4;}:function(_0x31f228){const _0x563695=_0x27bf9d;return _0x31f228&&typeof Symbol==_0x563695(0x29b)&&_0x31f228['constructor']===Symbol&&_0x31f228!==Symbol[_0x563695(0x1f7)]?'symbol':typeof _0x31f228;},B(_0x5b8664);}function it(_0x193bdd,_0x55604f){const _0x11df31=_0xd3747d;if(B(_0x193bdd)!=_0x11df31(0x1ef)||!_0x193bdd)return _0x193bdd;var _0x580b46=_0x193bdd[Symbol[_0x11df31(0x21e)]];if(_0x580b46!==void 0x0){var _0xf50c2=_0x580b46[_0x11df31(0x27d)](_0x193bdd,_0x55604f||_0x11df31(0x2a5));if(B(_0xf50c2)!='object')return _0xf50c2;throw TypeError(_0x11df31(0x283));}return(_0x55604f===_0x11df31(0x294)?String:Number)(_0x193bdd);}function at(_0x86057b){const _0x33220=_0xd3747d;var _0x380322=it(_0x86057b,_0x33220(0x294));return B(_0x380322)==_0x33220(0x26d)?_0x380322:_0x380322+'';}function V(_0x3a8e98,_0x24cfda,_0x205287){const _0x43255f=_0xd3747d;return(_0x24cfda=at(_0x24cfda))in _0x3a8e98?Object[_0x43255f(0x255)](_0x3a8e98,_0x24cfda,{'value':_0x205287,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a8e98[_0x24cfda]=_0x205287,_0x3a8e98;}function H(_0x333488,_0x508d0f){return function(_0x180fee,_0x412174){_0x508d0f(_0x180fee,_0x412174,_0x333488);};}function U(_0x270678,_0x5e727b,_0x268f1b,_0x1163a6){const _0x4444f6=_0xd3747d;var _0x42b0c2=arguments[_0x4444f6(0x2a8)],_0x42a2ac=_0x42b0c2<0x3?_0x5e727b:_0x1163a6===null?_0x1163a6=Object[_0x4444f6(0x234)](_0x5e727b,_0x268f1b):_0x1163a6,_0x2c82f6;if(typeof Reflect==_0x4444f6(0x1ef)&&typeof Reflect[_0x4444f6(0x288)]==_0x4444f6(0x29b))_0x42a2ac=Reflect[_0x4444f6(0x288)](_0x270678,_0x5e727b,_0x268f1b,_0x1163a6);else{for(var _0x453580=_0x270678[_0x4444f6(0x2a8)]-0x1;_0x453580>=0x0;_0x453580--)(_0x2c82f6=_0x270678[_0x453580])&&(_0x42a2ac=(_0x42b0c2<0x3?_0x2c82f6(_0x42a2ac):_0x42b0c2>0x3?_0x2c82f6(_0x5e727b,_0x268f1b,_0x42a2ac):_0x2c82f6(_0x5e727b,_0x268f1b))||_0x42a2ac);}return _0x42b0c2>0x3&&_0x42a2ac&&Object[_0x4444f6(0x255)](_0x5e727b,_0x268f1b,_0x42a2ac),_0x42a2ac;}const ot=_0xd3747d(0x204),W='univer-history-container';function _0xe99c(_0x709a08,_0x5a92f){_0x709a08=_0x709a08-0x1e8;const _0x545adb=_0x545a();let _0xe99c77=_0x545adb[_0x709a08];return _0xe99c77;}let G=class extends _0x6c5d76{constructor(_0x31db47,_0x27c903,_0x342859,_0x38c1f5,_0xcd4c6f,_0x22a7fc,_0x23f63f,_0x40431d,_0x4bc512,_0x59bf8f){const _0x1a577f=_0xd3747d;super(),this[_0x1a577f(0x282)]=_0x31db47,this['_univerInstanceService']=_0x27c903,this[_0x1a577f(0x29c)]=_0x342859,this[_0x1a577f(0x250)]=_0x38c1f5,this[_0x1a577f(0x21b)]=_0xcd4c6f,this['_permissionService']=_0x22a7fc,this['_selectionProtectionRuleModel']=_0x23f63f,this[_0x1a577f(0x28f)]=_0x40431d,this['_sidebarService']=_0x4bc512,this[_0x1a577f(0x2a2)]=_0x59bf8f,V(this,_0x1a577f(0x297),new _0xf7d34(null)),V(this,_0x1a577f(0x260),this['_historyUniver$']['asObservable']()),V(this,_0x1a577f(0x227),new _0x58b672()),V(this,_0x1a577f(0x23a),new Map()),V(this,_0x1a577f(0x23b),null),this[_0x1a577f(0x1f5)]();}get['historyUniver'](){return this['_historyUniver$']['value'];}[_0xd3747d(0x1f5)](){const _0x27d666=_0xd3747d;this[_0x27d666(0x1ff)](),this[_0x27d666(0x212)]();}[_0xd3747d(0x1ff)](){const _0x200008=_0xd3747d;var _0x566262;let _0x3b0b14=(_0x566262=this[_0x200008(0x29c)][_0x200008(0x20b)]('UNIVER_CONTAINER_ID'))==null?_0x200008(0x1ea):_0x566262,_0x74b3a6=document['getElementById'](_0x3b0b14);if(!_0x74b3a6)return;let _0x5a4aea=document[_0x200008(0x28a)](_0x200008(0x281));_0x5a4aea['id']=W,_0x5a4aea[_0x200008(0x1fc)][_0x200008(0x292)]=_0x200008(0x24e),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x225)]=_0x200008(0x285),_0x5a4aea['style'][_0x200008(0x265)]='0',_0x5a4aea[_0x200008(0x25b)][_0x200008(0x258)]='0',_0x5a4aea['style'][_0x200008(0x22a)]=_0x200008(0x269),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x29f)]=_0x200008(0x269),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x28d)]='49',_0x5a4aea['style'][_0x200008(0x207)]=_0x200008(0x2aa),_0x74b3a6[_0x200008(0x27f)](_0x5a4aea);}[_0xd3747d(0x212)](){const _0x4cd34c=_0xd3747d;[[_0x270392],[_0x924848,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cc893,null]]}],[_0x458233],[_0x798726,{'override':[[_0x5bff47,null]]}],[_0x56f869,{'hasScroll':!0x1}],[_0x1b9c79],[_0x48f874],[_0x33c86b,{'notExecuteFormula':!0x0}],[_0x2c3c9f],[_0xfe84d7],[_0x562138],[_0x540b93],[_0x50dd11],[_0x379bf4],[_0x8742fa],[_0x153c52],[_0x332a69],[_0x15240e],[_0x318883],[_0x3dd0c9],[_0x1a32b2],[_0x1d50f9,{'notExecuteFormula':!0x0}],[_0x4abb8b],[_0x5b59e6],[_0x363dea],[_0x4eb0a1],[_0xf3b184],[_0x3ab737],[_0xc6fc17],[_0xd239],[_0x5310aa],[_0x41cc6c,{'notExecuteFormula':!0x0}],[_0x1ffac4]]['forEach'](([_0x4fd77b,_0x4f4bad])=>this[_0x4cd34c(0x1ee)](_0x4fd77b,_0x4f4bad));}[_0xd3747d(0x246)](){const _0x17c434=_0xd3747d;super[_0x17c434(0x246)](),this[_0x17c434(0x259)](),this[_0x17c434(0x23a)]['clear']();}['registerPlugin'](_0x10ef51,_0x78dc0,_0x1acae1){const _0xb9ebee=_0xd3747d;if(this[_0xb9ebee(0x23a)][_0xb9ebee(0x20e)](_0x10ef51[_0xb9ebee(0x293)])&&!_0x1acae1)throw Error(_0xb9ebee(0x233)+_0x10ef51[_0xb9ebee(0x293)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0xb9ebee(0x24f)](_0x10ef51[_0xb9ebee(0x293)],[_0x10ef51,_0x78dc0]);}['getAllPlugins'](){const _0x4bdcbb=_0xd3747d;return Array[_0x4bdcbb(0x251)](this[_0x4bdcbb(0x23a)][_0x4bdcbb(0x27c)]());}[_0xd3747d(0x26e)](_0x432104,_0x19ab33){const _0x58eb82=_0xd3747d;let _0x5c3776=document[_0x58eb82(0x268)](W);_0x5c3776&&(_0x5c3776[_0x58eb82(0x25b)][_0x58eb82(0x207)]=_0x58eb82(0x273),this[_0x58eb82(0x22e)](_0x432104,W,_0x19ab33));}['unMountHistoryContent'](){const _0x280731=_0xd3747d;var _0x57df33;this[_0x280731(0x227)][_0x280731(0x246)](),(_0x57df33=this[_0x280731(0x27b)])==null||_0x57df33[_0x280731(0x246)](),this[_0x280731(0x297)][_0x280731(0x22c)](null);let _0x1cf1fa=document[_0x280731(0x268)](W);_0x1cf1fa&&(_0x1cf1fa[_0x280731(0x25b)]['display']=_0x280731(0x2aa),this[_0x280731(0x23b)]&&(this['_internalWebWorker'][_0x280731(0x200)](),this[_0x280731(0x23b)]=null));}[_0xd3747d(0x22e)](_0x5462e2,_0x1afac1,_0x94e86e){const _0x578619=_0xd3747d;var _0x22b970,_0x56e7c4,_0x2802e2,_0x1fe362,_0x5359e0;if(this[_0x578619(0x27b)])return;let _0x2b32b9=new _0x33c36b({'locales':{[this['_localeService'][_0x578619(0x222)]()]:this[_0x578619(0x282)]['getLocales']()},'override':[[_0x25a20c,{'useClass':_0x328722}]]}),_0x301b87=_0x2b32b9[_0x578619(0x230)]();this[_0x578619(0x223)](this[_0x578619(0x2a2)]['darkMode$'][_0x578619(0x237)](_0x39718b=>{const _0x48704f=_0x578619;_0x301b87['get'](_0x56c0a0)[_0x48704f(0x219)](_0x39718b);})),this[_0x578619(0x223)](this[_0x578619(0x2a2)]['currentTheme$'][_0x578619(0x237)](_0x3f6588=>{const _0x3ee75b=_0x578619;_0x301b87[_0x3ee75b(0x218)](_0x56c0a0)[_0x3ee75b(0x213)](_0x3f6588);})),_0x301b87['get'](_0x2fd53d)[_0x578619(0x26f)](this[_0x578619(0x282)][_0x578619(0x222)]()),_0x301b87[_0x578619(0x218)](_0x550417)[_0x578619(0x206)](_0x249dd6,this[_0x578619(0x29c)][_0x578619(0x20b)](_0x249dd6));let _0x46e3c3=this[_0x578619(0x29c)]['getConfig'](_0x1ae143);_0x46e3c3&&_0x2b32b9['registerPlugin'](_0x42940f,{'license':_0x46e3c3['ls']});let _0x3cadc1=(_0x22b970=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x22b970[_0x578619(0x238)],_0x3d5c10=!!_0x3cadc1;_0x3d5c10&&(this['_internalWebWorker']=_0x3cadc1 instanceof Worker?_0x3cadc1:null,_0x2b32b9[_0x578619(0x1ee)](_0x14cb3e,{'workerURL':_0x3cadc1})),this[_0x578619(0x23a)][_0x578619(0x2ab)](([_0x556ce7,_0x32906e])=>{const _0x1ac3c6=_0x578619;_0x2b32b9[_0x1ac3c6(0x1ee)](_0x556ce7,_0x32906e);}),_0x2b32b9[_0x578619(0x1ee)](_0x4ad7ee,{'historyListServerUrl':(_0x56e7c4=this['_configService'][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x56e7c4[_0x578619(0x1e9)],'historyPanelComponentKey':(_0x2802e2=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x2802e2[_0x578619(0x214)],'historyPanelHidden':(_0x1fe362=this[_0x578619(0x29c)]['getConfig'](_0x578619(0x2a1)))==null?void 0x0:_0x1fe362[_0x578619(0x1e8)],'historyAIassistantEnabled':(_0x5359e0=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x5359e0[_0x578619(0x21a)]}),_0x301b87[_0x578619(0x216)](_0x41c9b7=>{const _0x54f38c=_0x578619;this[_0x54f38c(0x289)](_0x41c9b7,_0x5462e2);}),this[_0x578619(0x297)][_0x578619(0x22c)](_0x2b32b9);let _0x52f621=_0x301b87[_0x578619(0x218)](_0x39e9ab),_0x7919bc=this[_0x578619(0x220)](_0x5462e2),_0x5e4eaf=()=>{const _0x5e857f=_0x578619;_0x94e86e?_0x52f621['triggerCustomVersions'](_0x5462e2,_0x1afac1,_0x7919bc,_0x94e86e):_0x52f621[_0x5e857f(0x2b0)](_0x5462e2,_0x1afac1,_0x7919bc);};if(this[_0x578619(0x21b)]['show']({'content':this[_0x578619(0x282)]['t'](_0x578619(0x20a)),'type':_0x235979[_0x578619(0x287)]}),_0x3d5c10)try{_0x301b87['get'](_0x197e95)[_0x578619(0x201)]()[_0x578619(0x29d)](()=>{_0x5e4eaf();});}catch{_0x5e4eaf();}else _0x5e4eaf();}[_0xd3747d(0x289)](_0x4fcaa6,_0x55ca4d){const _0x6c1645=_0xd3747d;let _0x3d0820=_0x4fcaa6[_0x6c1645(0x218)](_0x39e9ab);this[_0x6c1645(0x227)][_0x6c1645(0x202)](_0x3d0820[_0x6c1645(0x280)][_0x6c1645(0x237)](_0x14434f=>{const _0x4fc1e7=_0x6c1645;switch(_0x14434f){case _0x3033a5[_0x4fc1e7(0x24a)]:this[_0x4fc1e7(0x28f)][_0x4fc1e7(0x26a)](),this[_0x4fc1e7(0x228)]['close']();break;case _0x3033a5[_0x4fc1e7(0x241)]:this[_0x4fc1e7(0x250)]['executeCommand'](q['id']),this[_0x4fc1e7(0x259)]();break;case _0x3033a5[_0x4fc1e7(0x267)]:this[_0x4fc1e7(0x259)](),this[_0x4fc1e7(0x21b)][_0x4fc1e7(0x24d)]({'content':this[_0x4fc1e7(0x282)]['t']('editHistory.panel.listFetchError'),'type':_0x235979[_0x4fc1e7(0x267)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x6c1645(0x202)](_0x3d0820[_0x6c1645(0x29e)][_0x6c1645(0x237)](async _0x48c774=>{const _0x53cd92=_0x6c1645;_0x48c774&&this['_commandService'][_0x53cd92(0x1fa)](_0x4a9cc0['id'],{'unitId':_0x55ca4d,'revision':_0x48c774});}));}[_0xd3747d(0x220)](_0x41ad54){const _0x4d8b71=_0xd3747d;let _0x5e2035=this[_0x4d8b71(0x229)][_0x4d8b71(0x2a3)](_0x41ad54)[_0x4d8b71(0x28e)]()[_0x4d8b71(0x209)](_0x2685c6=>_0x2685c6[_0x4d8b71(0x1fb)]()),_0x2d9f8c=new _0x210132(_0x41ad54)['id'],_0x5d8839=_0x5e2035[_0x4d8b71(0x209)](_0x467583=>new _0x1c1e44(_0x41ad54,_0x467583)['id']),_0x460820=_0x5e2035[_0x4d8b71(0x209)](_0x5eccb7=>this[_0x4d8b71(0x1f6)][_0x4d8b71(0x25a)](_0x41ad54,_0x5eccb7)['map'](_0x50f2c6=>new _0x15136c(_0x41ad54,_0x5eccb7,_0x50f2c6[_0x4d8b71(0x1f9)])['id']))[_0x4d8b71(0x264)](),_0x213824=new _0x56ae1e(_0x41ad54)['id'];return this[_0x4d8b71(0x248)][_0x4d8b71(0x25c)]([_0x2d9f8c,..._0x5d8839,..._0x460820,_0x213824])[_0x4d8b71(0x25e)](_0x1955e2=>!!_0x1955e2['value']);}};G=U([H(0x0,_0x506b77(_0x2fd53d)),H(0x1,_0x1bbbcc),H(0x2,_0x550417),H(0x3,_0x57aba4),H(0x4,_0x388624),H(0x5,_0x5dc172),H(0x6,_0x506b77(_0x34e08b)),H(0x7,_0x506b77(_0x4cc893)),H(0x8,_0x506b77(_0x376338)),H(0x9,_0x506b77(_0x56c0a0))],G);const K={'id':_0xd3747d(0x24b),'type':_0x46f158[_0xd3747d(0x1f2)],'handler':_0x523c34=>{const _0x309aea=_0xd3747d;let _0x2dd09b=_0x523c34[_0x309aea(0x218)](G),{unitId:_0x37586b}=_0x4eed07(_0x523c34[_0x309aea(0x218)](_0x1bbbcc))||{};return _0x37586b?(_0x2dd09b['mountHistoryContent'](_0x37586b),!0x0):!0x1;}},q={'id':_0xd3747d(0x277),'type':_0x46f158[_0xd3747d(0x1f2)],'handler':()=>!0x0};var st=_0xd3747d(0x23d),ct='0.24.0';function lt(_0x5dc746){const _0x5cc6a0=_0xd3747d;return{'id':K['id'],'type':_0x5aba48[_0x5cc6a0(0x239)],'icon':_0x5cc6a0(0x291),'tooltip':'editHistory.panel.title','hidden$':_0x3be5a3(_0x5dc746,_0x31ee75[_0x5cc6a0(0x27e)]),'disabled$':_0x565f31(_0x5dc746,{'workbookTypes':[_0x4de8e1],'worksheetTypes':[],'rangeTypes':[]})};}const ut={[_0x37854d[_0xd3747d(0x21f)]]:{[K['id']]:{'order':0.2,'menuItemFactory':lt}}};let J=class extends _0x23822b{constructor(_0x44a944,_0x44ae36,_0xf175e,_0x198901,_0x3a228e,_0x2942ed,_0xfd0988,_0x2f92de,_0x4d79f4,_0x4a2bad,_0x2b8630){const _0x3c58dc=_0xd3747d;super(),this[_0x3c58dc(0x250)]=_0x44a944,this[_0x3c58dc(0x295)]=_0x44ae36,this[_0x3c58dc(0x284)]=_0xf175e,this[_0x3c58dc(0x25d)]=_0x198901,this[_0x3c58dc(0x282)]=_0x3a228e,this[_0x3c58dc(0x21b)]=_0x2942ed,this[_0x3c58dc(0x1fe)]=_0xfd0988,this[_0x3c58dc(0x28c)]=_0x2f92de,this[_0x3c58dc(0x299)]=_0x4d79f4,this[_0x3c58dc(0x229)]=_0x4a2bad,this[_0x3c58dc(0x224)]=_0x2b8630,V(this,_0x3c58dc(0x20f),null),this[_0x3c58dc(0x1f5)]();}[_0xd3747d(0x1f5)](){const _0x359ffd=_0xd3747d;[K,q]['forEach'](_0x54bafd=>this[_0x359ffd(0x223)](_0x3e40d9(this[_0x359ffd(0x250)]['registerCommand'](_0x54bafd)))),this['disposeWithMe'](this[_0x359ffd(0x284)][_0x359ffd(0x2ae)]('HistoryIcon',_0x357cc1)),this[_0x359ffd(0x295)][_0x359ffd(0x279)](ut),this[_0x359ffd(0x223)](this['_commandService'][_0x359ffd(0x253)](async(_0x7bf22e,_0xe85134)=>{const _0x28f9cb=_0x359ffd;if(_0x7bf22e['id']===_0x4a9cc0['id']){let {unitId:_0x2fc530}=_0x7bf22e[_0x28f9cb(0x252)];this['_messageService']['show']({'content':this[_0x28f9cb(0x282)]['t'](_0x28f9cb(0x208)),'type':_0x235979[_0x28f9cb(0x287)],'duration':0x1388});let _0x5d9446=this['_collaborationController'][_0x28f9cb(0x1f0)](_0x2fc530);_0xe85134!=null&&_0xe85134[_0x28f9cb(0x23c)]?this[_0x28f9cb(0x274)](_0x5d9446,async()=>(setTimeout(()=>window[_0x28f9cb(0x244)][_0x28f9cb(0x1eb)]()),!0x0),!0x0):this[_0x28f9cb(0x274)](_0x5d9446,async()=>{const _0x48ff35=_0x28f9cb;let _0x4250ac=this[_0x48ff35(0x229)][_0x48ff35(0x272)](_0x31ee75[_0x48ff35(0x27e)]),_0x1d3004=_0x4250ac==null?void 0x0:_0x4250ac[_0x48ff35(0x1ec)]();if(!_0x1d3004)return!0x1;this['_univerInstanceService'][_0x48ff35(0x2ac)](_0x2fc530);let _0x6e38a8=await this[_0x48ff35(0x299)][_0x48ff35(0x2ad)](_0x2fc530,_0x31ee75['UNIVER_SHEET']);return _0x6e38a8&&_0x6e38a8 instanceof _0x2a7488?(await this[_0x48ff35(0x2a6)](_0x6e38a8,_0x1d3004['getSheetId']()),!0x0):!0x1;});}}));}[_0xd3747d(0x274)](_0x28b756,_0x7d8d01,_0x430d19=!0x1){const _0x55ad57=_0xd3747d;let _0x9f78bb=_0x3fef9b([_0x28b756[_0x55ad57(0x1f1)][_0x55ad57(0x203)],_0x28b756['state$']])[_0x55ad57(0x237)](async([_0x4e3ca6,_0x261f54])=>{const _0x2563a7=_0x55ad57;if(_0x4e3ca6[_0x2563a7(0x1f8)]===_0x473a70[_0x2563a7(0x27a)]&&(_0x261f54==null?void 0x0:_0x261f54['status'])===_0x1c0ec0[_0x2563a7(0x2a7)]&&_0x4e3ca6[_0x2563a7(0x21d)][_0x2563a7(0x266)][_0x2563a7(0x263)](_0xe399ce=>_0xe399ce['id']===_0x4a9cc0['id'])&&await _0x7d8d01()){var _0x550163;this[_0x2563a7(0x25d)][_0x2563a7(0x259)](),_0x9f78bb[_0x2563a7(0x1f3)](),this[_0x2563a7(0x20f)]&&clearTimeout(this[_0x2563a7(0x20f)]),await((_0x550163=this[_0x2563a7(0x28c)])==null?void 0x0:_0x550163[_0x2563a7(0x256)]()),this['_messageService']['removeAll']();}});_0x430d19&&(this[_0x55ad57(0x20f)]=setTimeout(()=>{const _0x1d9751=_0x55ad57;_0x9f78bb[_0x1d9751(0x1f3)](),this['_messageService'][_0x1d9751(0x24d)]({'content':this[_0x1d9751(0x282)]['t'](_0x1d9751(0x2a0)),'type':_0x235979['Error'],'duration':0xbb8});},0x1388));}async[_0xd3747d(0x2a6)](_0x3628fe,_0xf81a26){const _0x27dbed=_0xd3747d;await this[_0x27dbed(0x247)](_0x3628fe,_0xf81a26),_0x3628fe['activeSheet$'][_0x27dbed(0x261)](_0x181a1c(this[_0x27dbed(0x231)]))[_0x27dbed(0x237)](_0x3a3978=>{const _0x4f1e04=_0x27dbed;_0x3a3978&&this[_0x4f1e04(0x22b)](_0x3a3978);}),this[_0x27dbed(0x224)][_0x27dbed(0x262)][_0x27dbed(0x261)](_0x181a1c(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3628fe,_0xf81a26));}[_0xd3747d(0x22b)](_0x209b16,_0x3864ab=!0x1){const _0x7a48f3=_0xd3747d;let _0x2350bb=this['_urlService'][_0x7a48f3(0x271)]('subunit');_0x209b16[_0x7a48f3(0x1fb)]()!==_0x2350bb&&this['_urlService']['setParam'](_0x7a48f3(0x226),_0x209b16[_0x7a48f3(0x1fb)](),_0x3864ab);}async[_0xd3747d(0x247)](_0x554f73,_0x2c4c39){const _0x49b1c6=_0xd3747d;var _0x378e81;if(!_0x2c4c39||!_0x554f73['getSheetBySheetId'](_0x2c4c39)){let _0x3903a0=_0x554f73[_0x49b1c6(0x2a9)]()[0x0],_0x23b7c8=_0x554f73[_0x49b1c6(0x257)](_0x3903a0);if(!_0x23b7c8)return;this[_0x49b1c6(0x22b)](_0x23b7c8,!0x0),await this['_commandService'][_0x49b1c6(0x1fa)](_0x5ddf17['id'],{'unitId':_0x554f73[_0x49b1c6(0x21c)](),'subUnitId':_0x3903a0});return;}((_0x378e81=_0x554f73['getActiveSheet']())==null?void 0x0:_0x378e81[_0x49b1c6(0x1fb)]())!==_0x2c4c39&&await this[_0x49b1c6(0x250)]['executeCommand'](_0x5ddf17['id'],{'unitId':_0x554f73['getUnitId'](),'subUnitId':_0x2c4c39});}};J=U([H(0x0,_0x57aba4),H(0x1,_0x7ea17b),H(0x2,_0x506b77(_0x579cf7)),H(0x3,_0x506b77(G)),H(0x4,_0x506b77(_0x2fd53d)),H(0x5,_0x388624),H(0x6,_0x506b77(_0x403598)),H(0x7,_0x4cecb8),H(0x8,_0x506b77(_0x297f87)),H(0x9,_0x1bbbcc),H(0xa,_0x43f444)],J);const Y=_0xd3747d(0x26c);let X=class extends _0x6c5d76{constructor(_0x5734c8,_0x570db8,_0x574e00,_0x3063b5,_0xe05beb,_0x56e59b,_0x22bf3e,_0x2b852d,_0x4872b1,_0x15ff97){const _0x41d24d=_0xd3747d;super(),this[_0x41d24d(0x282)]=_0x5734c8,this[_0x41d24d(0x229)]=_0x570db8,this['_configService']=_0x574e00,this[_0x41d24d(0x250)]=_0x3063b5,this[_0x41d24d(0x21b)]=_0xe05beb,this[_0x41d24d(0x248)]=_0x56e59b,this[_0x41d24d(0x1f6)]=_0x22bf3e,this[_0x41d24d(0x28f)]=_0x2b852d,this[_0x41d24d(0x228)]=_0x4872b1,this[_0x41d24d(0x2a2)]=_0x15ff97,V(this,_0x41d24d(0x297),new _0xf7d34(null)),V(this,_0x41d24d(0x260),this[_0x41d24d(0x297)][_0x41d24d(0x205)]()),V(this,'_disposableCollection',new _0x58b672()),V(this,_0x41d24d(0x23a),new Map()),V(this,_0x41d24d(0x23b),null),this[_0x41d24d(0x1f5)]();}get[_0xd3747d(0x27b)](){const _0x3405cf=_0xd3747d;return this[_0x3405cf(0x297)][_0x3405cf(0x290)];}[_0xd3747d(0x1f5)](){const _0x1d5728=_0xd3747d;this[_0x1d5728(0x1ff)](),this['_initPlugins']();}['_initContainer'](){const _0x1f326f=_0xd3747d;var _0x2e3972;let _0x2cba4e=(_0x2e3972=this[_0x1f326f(0x29c)][_0x1f326f(0x20b)](_0x1f326f(0x204)))==null?_0x1f326f(0x1ea):_0x2e3972,_0x223f83=document[_0x1f326f(0x268)](_0x2cba4e);if(!_0x223f83)return;let _0x3ded1b=document['createElement'](_0x1f326f(0x281));_0x3ded1b['id']=Y,_0x3ded1b[_0x1f326f(0x1fc)][_0x1f326f(0x292)]=_0x1f326f(0x24e),_0x3ded1b['style'][_0x1f326f(0x225)]='absolute',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x265)]='0',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x258)]='0',_0x3ded1b[_0x1f326f(0x25b)]['width']='100%',_0x3ded1b[_0x1f326f(0x25b)]['height']=_0x1f326f(0x269),_0x3ded1b[_0x1f326f(0x25b)]['zIndex']='49',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x207)]=_0x1f326f(0x2aa),_0x223f83[_0x1f326f(0x27f)](_0x3ded1b);}['_initPlugins'](){const _0x12477f=_0xd3747d;[[_0x270392],[_0x3b5660,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cc893,null]]}],[_0x458233],[_0x798726,{'override':[[_0x5bff47,null]]}],[_0x56f869,{'hasScroll':!0x1}],[_0x1b9c79],[_0x48f874],[_0x33c86b,{'notExecuteFormula':!0x0}],[_0x4307c2],[_0xfe84d7],[_0x562138],[_0x540b93],[_0x50dd11],[_0x8742fa],[_0x332a69],[_0x15240e],[_0x318883],[_0x3dd0c9],[_0xd9d82f],[_0x1d50f9,{'notExecuteFormula':!0x0}],[_0x4abb8b],[_0x5b59e6],[_0x363dea],[_0x4eb0a1],[_0xf3b184],[_0x3ab737],[_0xc6fc17],[_0xd239],[_0x5310aa],[_0x41cc6c,{'notExecuteFormula':!0x0}],[_0x1ffac4]][_0x12477f(0x2ab)](([_0x5cf5b1,_0xaf3d7])=>this[_0x12477f(0x1ee)](_0x5cf5b1,_0xaf3d7));}[_0xd3747d(0x246)](){const _0x34110f=_0xd3747d;super[_0x34110f(0x246)](),this[_0x34110f(0x259)](),this['_pluginMap'][_0x34110f(0x243)]();}[_0xd3747d(0x1ee)](_0x11c668,_0x226afe,_0x287987){const _0x2b1935=_0xd3747d;if(this[_0x2b1935(0x23a)][_0x2b1935(0x20e)](_0x11c668['pluginName'])&&!_0x287987)throw Error(_0x2b1935(0x221)+_0x11c668[_0x2b1935(0x293)]+_0x2b1935(0x1ed));this[_0x2b1935(0x23a)][_0x2b1935(0x24f)](_0x11c668[_0x2b1935(0x293)],[_0x11c668,_0x226afe]);}[_0xd3747d(0x28b)](){const _0x10f2eb=_0xd3747d;return Array[_0x10f2eb(0x251)](this[_0x10f2eb(0x23a)]['values']());}[_0xd3747d(0x26e)](_0x37845b,_0x26efa9){const _0x247df5=_0xd3747d;let _0x1ccbcb=document[_0x247df5(0x268)](Y);_0x1ccbcb&&(_0x1ccbcb[_0x247df5(0x25b)][_0x247df5(0x207)]='block',this[_0x247df5(0x22e)](_0x37845b,Y,_0x26efa9));}[_0xd3747d(0x259)](){const _0x27d942=_0xd3747d;var _0x21ef22;this[_0x27d942(0x227)]['dispose'](),(_0x21ef22=this[_0x27d942(0x27b)])==null||_0x21ef22[_0x27d942(0x246)](),this[_0x27d942(0x297)]['next'](null);let _0x43f433=document[_0x27d942(0x268)](Y);_0x43f433&&(_0x43f433['style']['display']=_0x27d942(0x2aa),this[_0x27d942(0x23b)]&&(this['_internalWebWorker'][_0x27d942(0x200)](),this[_0x27d942(0x23b)]=null));}[_0xd3747d(0x22e)](_0x36fd80,_0x171a0a,_0x5bcf25){const _0x481bb6=_0xd3747d;var _0xdd4788,_0x13e453,_0x48effa,_0xba84c8;if(this['historyUniver'])return;let _0xb8e56c=new _0x33c36b({'locales':{[this[_0x481bb6(0x282)][_0x481bb6(0x222)]()]:this['_localeService']['getLocales']()},'override':[[_0x25a20c,{'useClass':_0x328722}]]}),_0x244bb1=_0xb8e56c['__getInjector']();this[_0x481bb6(0x223)](this[_0x481bb6(0x2a2)][_0x481bb6(0x217)]['subscribe'](_0x2bd20c=>{const _0x58c342=_0x481bb6;_0x244bb1[_0x58c342(0x218)](_0x56c0a0)[_0x58c342(0x219)](_0x2bd20c);})),this[_0x481bb6(0x223)](this[_0x481bb6(0x2a2)][_0x481bb6(0x22d)][_0x481bb6(0x237)](_0x492bf6=>{const _0x2936f2=_0x481bb6;_0x244bb1[_0x2936f2(0x218)](_0x56c0a0)[_0x2936f2(0x213)](_0x492bf6);})),_0x244bb1[_0x481bb6(0x218)](_0x2fd53d)[_0x481bb6(0x26f)](this[_0x481bb6(0x282)][_0x481bb6(0x222)]()),_0x244bb1['get'](_0x550417)[_0x481bb6(0x206)](_0x249dd6,this[_0x481bb6(0x29c)][_0x481bb6(0x20b)](_0x249dd6));let _0x31d198=this['_configService'][_0x481bb6(0x20b)](_0x1ae143);_0x31d198&&_0xb8e56c[_0x481bb6(0x1ee)](_0x42940f,{'license':_0x31d198['ls']});let _0x4d7fee=(_0xdd4788=this[_0x481bb6(0x29c)][_0x481bb6(0x20b)](_0x481bb6(0x2a1)))==null?void 0x0:_0xdd4788[_0x481bb6(0x238)],_0x7c6541=!!_0x4d7fee;_0x7c6541&&(this[_0x481bb6(0x23b)]=_0x4d7fee instanceof Worker?_0x4d7fee:null,_0xb8e56c[_0x481bb6(0x1ee)](_0x14cb3e,{'workerURL':_0x4d7fee})),this['_pluginMap']['forEach'](([_0x53566e,_0x5bf69b])=>{const _0x32eb17=_0x481bb6;_0xb8e56c[_0x32eb17(0x1ee)](_0x53566e,_0x5bf69b);}),_0xb8e56c['registerPlugin'](_0x55a3ef,{'historyListServerUrl':(_0x13e453=this[_0x481bb6(0x29c)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x13e453[_0x481bb6(0x1e9)],'historyPanelComponentKey':(_0x48effa=this['_configService']['getConfig'](_0x481bb6(0x2a1)))==null?void 0x0:_0x48effa['historyPanelComponentKey'],'historyPanelHidden':(_0xba84c8=this[_0x481bb6(0x29c)]['getConfig'](_0x481bb6(0x2a1)))==null?void 0x0:_0xba84c8[_0x481bb6(0x1e8)]}),_0x244bb1['invoke'](_0x149a83=>{const _0x7269a9=_0x481bb6;this[_0x7269a9(0x289)](_0x149a83,_0x36fd80);}),this[_0x481bb6(0x297)][_0x481bb6(0x22c)](_0xb8e56c);let _0x3eb7e0=_0x244bb1['get'](_0x39e9ab),_0x4f2b0c=this[_0x481bb6(0x220)](_0x36fd80),_0x5e2fb2=()=>{const _0x3ad07e=_0x481bb6;_0x5bcf25?_0x3eb7e0[_0x3ad07e(0x20c)](_0x36fd80,_0x171a0a,_0x4f2b0c,_0x5bcf25):_0x3eb7e0[_0x3ad07e(0x2b0)](_0x36fd80,_0x171a0a,_0x4f2b0c);};if(this[_0x481bb6(0x21b)][_0x481bb6(0x24d)]({'content':this[_0x481bb6(0x282)]['t'](_0x481bb6(0x20a)),'type':_0x235979[_0x481bb6(0x287)]}),_0x7c6541)try{_0x244bb1[_0x481bb6(0x218)](_0x197e95)[_0x481bb6(0x201)]()[_0x481bb6(0x29d)](()=>{_0x5e2fb2();});}catch{_0x5e2fb2();}else _0x5e2fb2();}['_initListener'](_0x3e7ef7,_0x307407){const _0x51fd56=_0xd3747d;let _0x28ef2a=_0x3e7ef7['get'](_0x39e9ab);this[_0x51fd56(0x227)][_0x51fd56(0x202)](_0x28ef2a[_0x51fd56(0x280)][_0x51fd56(0x237)](_0x234251=>{const _0x32cb03=_0x51fd56;switch(_0x234251){case _0x3033a5[_0x32cb03(0x24a)]:this[_0x32cb03(0x28f)][_0x32cb03(0x26a)](),this[_0x32cb03(0x228)][_0x32cb03(0x286)]();break;case _0x3033a5[_0x32cb03(0x241)]:this['_commandService'][_0x32cb03(0x1fa)](q['id']),this[_0x32cb03(0x259)]();break;case _0x3033a5['Error']:this[_0x32cb03(0x259)](),this[_0x32cb03(0x21b)][_0x32cb03(0x24d)]({'content':this[_0x32cb03(0x282)]['t'](_0x32cb03(0x23e)),'type':_0x235979['Error'],'duration':0xbb8});break;default:break;}})),this[_0x51fd56(0x227)][_0x51fd56(0x202)](_0x28ef2a[_0x51fd56(0x29e)][_0x51fd56(0x237)](async _0x48c42a=>{_0x48c42a&&this['_commandService']['executeCommand'](_0x4a9cc0['id'],{'unitId':_0x307407,'revision':_0x48c42a});}));}[_0xd3747d(0x220)](_0x807a0d){const _0x217da1=_0xd3747d;let _0x72c9d5=this[_0x217da1(0x229)][_0x217da1(0x2a3)](_0x807a0d)[_0x217da1(0x28e)]()['map'](_0x996447=>_0x996447[_0x217da1(0x1fb)]()),_0x5bcc7d=new _0x210132(_0x807a0d)['id'],_0x25c279=_0x72c9d5[_0x217da1(0x209)](_0xf1500e=>new _0x1c1e44(_0x807a0d,_0xf1500e)['id']),_0x3da1b6=_0x72c9d5[_0x217da1(0x209)](_0x3b01c4=>this[_0x217da1(0x1f6)][_0x217da1(0x25a)](_0x807a0d,_0x3b01c4)['map'](_0x502801=>new _0x15136c(_0x807a0d,_0x3b01c4,_0x502801['permissionId'])['id']))[_0x217da1(0x264)](),_0x2e8a69=new _0x56ae1e(_0x807a0d)['id'];return this[_0x217da1(0x248)][_0x217da1(0x25c)]([_0x5bcc7d,..._0x25c279,..._0x3da1b6,_0x2e8a69])[_0x217da1(0x25e)](_0x1771c0=>!!_0x1771c0[_0x217da1(0x290)]);}};X=U([H(0x0,_0x506b77(_0x2fd53d)),H(0x1,_0x1bbbcc),H(0x2,_0x550417),H(0x3,_0x57aba4),H(0x4,_0x388624),H(0x5,_0x5dc172),H(0x6,_0x506b77(_0x34e08b)),H(0x7,_0x506b77(_0x4cc893)),H(0x8,_0x506b77(_0x376338)),H(0x9,_0x506b77(_0x56c0a0))],X);let Z=class extends _0x545f8f{constructor(_0xad6b19=z,_0x4b8c2b,_0x39ed14){const _0x16339b=_0xd3747d;super(),this[_0x16339b(0x276)]=_0xad6b19,this[_0x16339b(0x298)]=_0x4b8c2b,this[_0x16339b(0x29c)]=_0x39ed14;let {menu:_0x1053b4,..._0x67b106}=_0x33300f({},z,this[_0x16339b(0x276)]);_0x1053b4&&this[_0x16339b(0x29c)]['setConfig'](_0x16339b(0x26b),_0x1053b4,{'merge':!0x0}),this[_0x16339b(0x29c)][_0x16339b(0x206)](R,_0x67b106),this[_0x16339b(0x276)][_0x16339b(0x275)]&&this[_0x16339b(0x29c)][_0x16339b(0x206)](_0x16339b(0x204),this[_0x16339b(0x276)]['univerContainerId']);}[_0xd3747d(0x236)](){const _0x312513=_0xd3747d;[[G,{'useClass':X}],[J]][_0x312513(0x2ab)](_0x1abbb2=>this[_0x312513(0x298)][_0x312513(0x202)](_0x1abbb2));}['onSteady'](){const _0x25615b=_0xd3747d;this[_0x25615b(0x298)][_0x25615b(0x218)](J);}};V(Z,'type',_0x31ee75[_0xd3747d(0x270)]),V(Z,_0xd3747d(0x293),_0xd3747d(0x235)),V(Z,_0xd3747d(0x29a),st),V(Z,_0xd3747d(0x249),ct),Z=U([_0xeab6e0(_0x42940f),H(0x1,_0x506b77(_0x11bf60)),H(0x2,_0x550417)],Z);let Q=class extends _0x23822b{constructor(_0x2fce87,_0x3ce960,_0x200965,_0x328b0d,_0x28da8c,_0xb81b75,_0x1ecccb,_0x508032,_0x2678b0,_0x5967bd,_0x35c0b8){const _0x2ad92b=_0xd3747d;super(),this[_0x2ad92b(0x250)]=_0x2fce87,this[_0x2ad92b(0x295)]=_0x3ce960,this[_0x2ad92b(0x284)]=_0x200965,this[_0x2ad92b(0x25d)]=_0x328b0d,this[_0x2ad92b(0x282)]=_0x28da8c,this[_0x2ad92b(0x21b)]=_0xb81b75,this[_0x2ad92b(0x1fe)]=_0x1ecccb,this[_0x2ad92b(0x28c)]=_0x508032,this[_0x2ad92b(0x299)]=_0x2678b0,this['_univerInstanceService']=_0x5967bd,this[_0x2ad92b(0x224)]=_0x35c0b8,V(this,_0x2ad92b(0x20f),null),this[_0x2ad92b(0x1f5)]();}[_0xd3747d(0x1f5)](){const _0x312fa5=_0xd3747d;[K,q][_0x312fa5(0x2ab)](_0x5725be=>this[_0x312fa5(0x223)](_0x3e40d9(this[_0x312fa5(0x250)][_0x312fa5(0x245)](_0x5725be)))),this[_0x312fa5(0x223)](this[_0x312fa5(0x284)][_0x312fa5(0x2ae)]('HistoryIcon',_0x357cc1)),this[_0x312fa5(0x295)][_0x312fa5(0x279)](ut),this[_0x312fa5(0x223)](this[_0x312fa5(0x250)][_0x312fa5(0x253)](async(_0xfef9a9,_0x2e6d03)=>{const _0x35cfcb=_0x312fa5;if(_0xfef9a9['id']===_0x4a9cc0['id']){let {unitId:_0x599738}=_0xfef9a9[_0x35cfcb(0x252)];this['_messageService'][_0x35cfcb(0x24d)]({'content':this[_0x35cfcb(0x282)]['t']('editHistory.panel.reverting'),'type':_0x235979[_0x35cfcb(0x287)],'duration':0x1388});let _0x536ca8=this[_0x35cfcb(0x1fe)][_0x35cfcb(0x1f0)](_0x599738);_0x2e6d03!=null&&_0x2e6d03['fromCollab']?this[_0x35cfcb(0x274)](_0x536ca8,async()=>(setTimeout(()=>window[_0x35cfcb(0x244)]['reload']()),!0x0),!0x0):this[_0x35cfcb(0x274)](_0x536ca8,async()=>{const _0x3bd65b=_0x35cfcb;let _0x312b03=this[_0x3bd65b(0x229)][_0x3bd65b(0x272)](_0x31ee75['UNIVER_SHEET']),_0x87f72=_0x312b03==null?void 0x0:_0x312b03['getActiveSheet']();if(!_0x87f72)return!0x1;this['_univerInstanceService'][_0x3bd65b(0x2ac)](_0x599738);let _0x5e6000=await this[_0x3bd65b(0x299)][_0x3bd65b(0x2ad)](_0x599738,_0x31ee75['UNIVER_SHEET']);return _0x5e6000&&_0x5e6000 instanceof _0x2a7488?(await this['_setupSubUnitSync'](_0x5e6000,_0x87f72['getSheetId']()),!0x0):!0x1;});}}));}[_0xd3747d(0x274)](_0x1279eb,_0x22db95,_0x27355f=!0x1){const _0x522a5a=_0xd3747d;let _0x49dd69=_0x3fef9b([_0x1279eb[_0x522a5a(0x1f1)][_0x522a5a(0x203)],_0x1279eb[_0x522a5a(0x2a4)]])[_0x522a5a(0x237)](async([_0x40d65e,_0x1d951a])=>{const _0x51ca58=_0x522a5a;if(_0x40d65e[_0x51ca58(0x1f8)]===_0x473a70[_0x51ca58(0x27a)]&&(_0x1d951a==null?void 0x0:_0x1d951a[_0x51ca58(0x232)])===_0x1c0ec0[_0x51ca58(0x2a7)]&&_0x40d65e[_0x51ca58(0x21d)][_0x51ca58(0x266)][_0x51ca58(0x263)](_0x3e1e32=>_0x3e1e32['id']===_0x4a9cc0['id'])&&await _0x22db95()){var _0x2b1443;this[_0x51ca58(0x25d)][_0x51ca58(0x259)](),_0x49dd69['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x51ca58(0x20f)]),await((_0x2b1443=this[_0x51ca58(0x28c)])==null?void 0x0:_0x2b1443[_0x51ca58(0x256)]());}});_0x27355f&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x11b05a=_0x522a5a;_0x49dd69[_0x11b05a(0x1f3)](),this[_0x11b05a(0x21b)][_0x11b05a(0x24d)]({'content':this['_localeService']['t'](_0x11b05a(0x2a0)),'type':_0x235979['Error'],'duration':0xbb8});},0x1388));}async[_0xd3747d(0x2a6)](_0xfbf23d,_0x1a2eb2){const _0x2d1810=_0xd3747d;await this[_0x2d1810(0x247)](_0xfbf23d,_0x1a2eb2),_0xfbf23d[_0x2d1810(0x24c)][_0x2d1810(0x261)](_0x181a1c(this['dispose$']))[_0x2d1810(0x237)](_0x237358=>{_0x237358&&this['_updateURLWithCurrentState'](_0x237358);}),this[_0x2d1810(0x224)][_0x2d1810(0x262)][_0x2d1810(0x261)](_0x181a1c(this[_0x2d1810(0x231)]))[_0x2d1810(0x237)](()=>this[_0x2d1810(0x247)](_0xfbf23d,_0x1a2eb2));}[_0xd3747d(0x22b)](_0x501bfd,_0x4ad9fa=!0x1){const _0x376bef=_0xd3747d;let _0x4d553c=this['_urlService']['getParam']('subunit');_0x501bfd[_0x376bef(0x1fb)]()!==_0x4d553c&&this[_0x376bef(0x224)][_0x376bef(0x25f)]('subunit',_0x501bfd['getSheetId'](),_0x4ad9fa);}async[_0xd3747d(0x247)](_0x52f74c,_0x4cbf34){const _0x54938e=_0xd3747d;var _0x1c9828;if(!_0x4cbf34||!_0x52f74c[_0x54938e(0x257)](_0x4cbf34)){let _0x34336e=_0x52f74c[_0x54938e(0x2a9)]()[0x0],_0x494b17=_0x52f74c['getSheetBySheetId'](_0x34336e);if(!_0x494b17)return;this[_0x54938e(0x22b)](_0x494b17,!0x0),await this[_0x54938e(0x250)][_0x54938e(0x1fa)](_0x5ddf17['id'],{'unitId':_0x52f74c[_0x54938e(0x21c)](),'subUnitId':_0x34336e});return;}((_0x1c9828=_0x52f74c[_0x54938e(0x1ec)]())==null?void 0x0:_0x1c9828[_0x54938e(0x1fb)]())!==_0x4cbf34&&await this[_0x54938e(0x250)][_0x54938e(0x1fa)](_0x5ddf17['id'],{'unitId':_0x52f74c[_0x54938e(0x21c)](),'subUnitId':_0x4cbf34});}};Q=U([H(0x0,_0x57aba4),H(0x1,_0x7ea17b),H(0x2,_0x506b77(_0x579cf7)),H(0x3,_0x506b77(G)),H(0x4,_0x506b77(_0x2fd53d)),H(0x5,_0x388624),H(0x6,_0x506b77(_0x403598)),H(0x7,_0x4cecb8),H(0x8,_0x506b77(_0x297f87)),H(0x9,_0x1bbbcc),H(0xa,_0x43f444)],Q);let $=class extends _0x545f8f{constructor(_0x5ab643=z,_0x31e475,_0x2bd815){const _0x2d9a4a=_0xd3747d;super(),this[_0x2d9a4a(0x276)]=_0x5ab643,this['_injector']=_0x31e475,this[_0x2d9a4a(0x29c)]=_0x2bd815;let {menu:_0xa082c6,..._0x45529b}=_0x33300f({},z,this[_0x2d9a4a(0x276)]);_0xa082c6&&this['_configService'][_0x2d9a4a(0x206)]('menu',_0xa082c6,{'merge':!0x0}),this['_configService']['setConfig'](R,_0x45529b),this['_config'][_0x2d9a4a(0x275)]&&this[_0x2d9a4a(0x29c)][_0x2d9a4a(0x206)](ot,this[_0x2d9a4a(0x276)][_0x2d9a4a(0x275)]);}[_0xd3747d(0x236)](){const _0x2b8bd4=_0xd3747d;[[G],[Q]][_0x2b8bd4(0x2ab)](_0x1f9e66=>this[_0x2b8bd4(0x298)][_0x2b8bd4(0x202)](_0x1f9e66));}[_0xd3747d(0x211)](){const _0x2cd489=_0xd3747d;this[_0x2cd489(0x298)]['get'](Q);}};V($,_0xd3747d(0x23f),_0x31ee75[_0xd3747d(0x270)]),V($,_0xd3747d(0x293),_0xd3747d(0x215)),V($,_0xd3747d(0x29a),st),V($,_0xd3747d(0x249),ct),$=U([_0xeab6e0(_0x42940f),H(0x1,_0x506b77(_0x11bf60)),H(0x2,_0x550417)],$);export{R as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,ot as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3cdcf4=_0x2791;(function(_0x4543b5,_0x1cc6fa){const _0x2bf5fe=_0x2791,_0xd4802d=_0x4543b5();while(!![]){try{const _0x931880=parseInt(_0x2bf5fe(0xf4))/0x1+-parseInt(_0x2bf5fe(0xec))/0x2*(-parseInt(_0x2bf5fe(0x123))/0x3)+-parseInt(_0x2bf5fe(0x150))/0x4+parseInt(_0x2bf5fe(0x104))/0x5*(parseInt(_0x2bf5fe(0x163))/0x6)+-parseInt(_0x2bf5fe(0xd0))/0x7*(-parseInt(_0x2bf5fe(0x13a))/0x8)+-parseInt(_0x2bf5fe(0x166))/0x9+parseInt(_0x2bf5fe(0x186))/0xa*(parseInt(_0x2bf5fe(0x14d))/0xb);if(_0x931880===_0x1cc6fa)break;else _0xd4802d['push'](_0xd4802d['shift']());}catch(_0x142920){_0xd4802d['push'](_0xd4802d['shift']());}}}(_0x3343,0x54372));import{CommandType as _0x44ea18,DependentOn as _0x55ff80,Disposable as _0x2029d3,DisposableCollection as _0x2faec9,IAuthzIoService as _0x584edc,ICommandService as _0x5a387f,IConfigService as _0x387412,IPermissionService as _0xe16a20,IUniverInstanceService as _0x4b1f14,Inject as _0x15eedd,Injector as _0x2317a3,LocaleService as _0x32d2bc,Plugin as _0x23d642,RxDisposable as _0x19ac1f,ThemeService as _0xe3d040,Univer as _0x265527,UniverInstanceType as _0x269057,Workbook as _0x18329b,merge as _0x59b6b6,toDisposable as _0x4cee92}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x31f1e2,RangeProtectionRuleModel as _0xb32d55,SetWorksheetActivateCommand as _0x551c9c,UniverSheetsPlugin as _0x3c229c,WorkbookEditablePermission as _0x5a33cd,WorkbookRecoverHistoryPermission as _0xc7b820,WorkbookViewHistoryPermission as _0x38ef1d,WorksheetEditPermission as _0x2ef5d7,getSheetCommandTarget as _0xa1e813}from'@univerjs/sheets';import{CollaborationEvent as _0x2731f4,RevertRevisionMutation as _0x3d6029,UniverCollaborationPlugin as _0x2c8c9c}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5c318a,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x572102,CollaborationController as _0x3e5faf,CollaborationStatus as _0x4ea0a1,DataLoaderService as _0x3705ae,ILocalCacheService as _0x3fb8d5}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x5a8601,HistoryModeStatus as _0x190d8d,UniverEditHistoryViewerMobilePlugin as _0x1cc397,UniverEditHistoryViewerPlugin as _0x47e4d5}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x7be96a,UniverLicensePlugin as _0x56a3f2}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x4d4628}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x163c98}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0xb2aea8}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x4168e0}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x11393a}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x2dbafb}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x7fa849}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x529313}from'@univerjs/data-validation';import{MessageType as _0x1defa2}from'@univerjs/design';import{UniverDocsPlugin as _0x538f12}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x46fc83}from'@univerjs/docs-ui';import{IImageIoService as _0x10d7c3,UniverDrawingPlugin as _0x3d9324}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x53481a}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x13fe5f}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x2d73f1}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x37c922}from'@univerjs/network';import{IRemoteInstanceService as _0x14b6ea,UniverRPCMainThreadPlugin as _0x4918e1}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x3afe8a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x3768f0}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x5ae02d}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x282b82,UniverSheetsDataValidationUIPlugin as _0x329b5b}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x16e557}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x36e547}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x42c3c6}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1c0489}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x4db3f2}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x4a2df2}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x292f9e}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x514839}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x5044ec}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x644fe7}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x50b046,UniverSheetsUIPlugin as _0x45fe6d,getCurrentRangeDisable$ as _0x10942f}from'@univerjs/sheets-ui';import{ComponentManager as _0x21eed6,IDialogService as _0x5648a0,IMenuManagerService as _0x479c58,IMessageService as _0x3b1b42,ISidebarService as _0x58d46f,MenuItemType as _0x34eb6e,RibbonStartGroup as _0x3d75fa,UniverMobileUIPlugin as _0x5702c4,UniverUIPlugin as _0x5f0c3f,getMenuHiddenObservable as _0xb5796a}from'@univerjs/ui';import{BehaviorSubject as _0x56cf2c,combineLatest as _0x2ca74c,takeUntil as _0x53de42}from'rxjs';import{IURLService as _0x49a8dc}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x577669}from'@univerjs/icons';const R=_0x3cdcf4(0x12a);Symbol(R);const z={};function B(_0x3a5cb6){'@babel/helpers - typeof';const _0x54a3c6=_0x3cdcf4;return B=typeof Symbol==_0x54a3c6(0x17f)&&typeof Symbol[_0x54a3c6(0x129)]==_0x54a3c6(0x175)?function(_0x59f8d2){return typeof _0x59f8d2;}:function(_0xdd7b98){const _0x1281db=_0x54a3c6;return _0xdd7b98&&typeof Symbol==_0x1281db(0x17f)&&_0xdd7b98[_0x1281db(0xee)]===Symbol&&_0xdd7b98!==Symbol[_0x1281db(0x13f)]?_0x1281db(0x175):typeof _0xdd7b98;},B(_0x3a5cb6);}function it(_0xcf2a4,_0x5a9262){const _0x5dc89b=_0x3cdcf4;if(B(_0xcf2a4)!=_0x5dc89b(0x133)||!_0xcf2a4)return _0xcf2a4;var _0x41c8e5=_0xcf2a4[Symbol[_0x5dc89b(0x125)]];if(_0x41c8e5!==void 0x0){var _0x311d3a=_0x41c8e5[_0x5dc89b(0xd5)](_0xcf2a4,_0x5a9262||_0x5dc89b(0xe7));if(B(_0x311d3a)!=_0x5dc89b(0x133))return _0x311d3a;throw TypeError(_0x5dc89b(0xf8));}return(_0x5a9262==='string'?String:Number)(_0xcf2a4);}function at(_0x2d63fd){const _0x52bb8d=_0x3cdcf4;var _0x42e912=it(_0x2d63fd,_0x52bb8d(0x18f));return B(_0x42e912)==_0x52bb8d(0x175)?_0x42e912:_0x42e912+'';}function V(_0x22c2c3,_0x3d2e1b,_0x2d2b66){const _0x1d22f9=_0x3cdcf4;return(_0x3d2e1b=at(_0x3d2e1b))in _0x22c2c3?Object[_0x1d22f9(0x122)](_0x22c2c3,_0x3d2e1b,{'value':_0x2d2b66,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22c2c3[_0x3d2e1b]=_0x2d2b66,_0x22c2c3;}function H(_0x39b986,_0x261124){return function(_0x356c08,_0x1df332){_0x261124(_0x356c08,_0x1df332,_0x39b986);};}function U(_0x18b692,_0x331047,_0x4c6628,_0x383634){const _0x3fd003=_0x3cdcf4;var _0xf03aa1=arguments[_0x3fd003(0xe3)],_0x168baa=_0xf03aa1<0x3?_0x331047:_0x383634===null?_0x383634=Object['getOwnPropertyDescriptor'](_0x331047,_0x4c6628):_0x383634,_0xe49835;if(typeof Reflect==_0x3fd003(0x133)&&typeof Reflect[_0x3fd003(0x17a)]=='function')_0x168baa=Reflect['decorate'](_0x18b692,_0x331047,_0x4c6628,_0x383634);else{for(var _0x45b4c1=_0x18b692[_0x3fd003(0xe3)]-0x1;_0x45b4c1>=0x0;_0x45b4c1--)(_0xe49835=_0x18b692[_0x45b4c1])&&(_0x168baa=(_0xf03aa1<0x3?_0xe49835(_0x168baa):_0xf03aa1>0x3?_0xe49835(_0x331047,_0x4c6628,_0x168baa):_0xe49835(_0x331047,_0x4c6628))||_0x168baa);}return _0xf03aa1>0x3&&_0x168baa&&Object[_0x3fd003(0x122)](_0x331047,_0x4c6628,_0x168baa),_0x168baa;}const ot=_0x3cdcf4(0xf0),W=_0x3cdcf4(0xde);function _0x3343(){const _0x5c4d2f=['_dataLoaderService','add','2300232PSnrkH','OPERATION','style','menu','_localeService','dataset','has','permissionId','getUnit','univer.operation.exit-edit-history','historyAIassistantEnabled','whenReady','_initUniver','getActiveSheet','absolute','univerContainerId','position','HistoryIcon','forEach','6UsEWGu','params','_revertErrorTimer','4138218wSWBaK','univer-history-container-mobile','values','dispose$','div','register','_sidebarService','editHistory.panel.revertFailed','_setupSubUnitSync','closeAll','eventID','UNIVER_UNKNOWN','block','getCollabEntity','_handleRevertAcknowledgement','symbol','registerPlugin','mutations','getUnitId','_initPlugins','decorate','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','getCurrentLocale','packageName','composePermission','function','currentTheme$','onStarting','subscribe','urlChange$','_checkCanRevert','_pluginMap','141060wGDMdQ','setParam','close','unsubscribe','_config','mergeMenu','event$','getElementById','getUnhiddenWorksheets','string','zIndex','__getInjector','getSheets','top','_componentManager','loadUnit','1687DDFnTi','version','triggerLoadVersions','darkMode$','clear','call','_internalWebWorker','mountHistoryContent','CHANGESET_ACK','show','editHistory.panel.title','univer-container','value','onCommandExecuted','univer-history-container','_localCacheService','get','appendChild','Error','length','from','invoke','location','default','executeCommand','some','revertRevision$','getAllPlugins','895382Xknnui','_updateSubUnitFromURLParams','constructor','none','UNIVER_CONTAINER_ID','_initListener','historyUniver$','next','231384nLbEsT','_updateURLWithCurrentState','\x20has\x20been\x20registered.','fromCollab','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','then','historyListServerUrl','setLocale','map','workerURL','disposeUnit','display','state$','getSheetBySheetId','onSteady','Exited','111700fWwAGI','_configService','dispose','disposeWithMe','_dialogService','flat','_init','activeSheet$','status$','Entered','0.23.0','_initContainer','exhaustSavingTask','getCurrentUnitOfType','pipe','editHistory.info.initializing','setDarkMode','history-container','getConfig','_commandService','height','editHistory.panel.listFetchError','SYNCED','data','unMountHistoryContent','100%','_historyUniver$','registerCommand','triggerCustomVersions','status','defineProperty','3mpdZoh','_urlService','toPrimitive','getSubunitRuleList','_disposableCollection','univer.operation.toggle-edit-history','iterator','edit-history-loader.config','subunit','_injector','UNIVER_SHEET','session','_themeService','pluginName','left','historyPanelComponentKey','object','getParam','_collaborationController','_messageService','historyPanelHidden','_univerInstanceService','historyUniver','1448dNlicE','uComp','setTheme','Loading','removeAll','prototype','getSheetId','@univerjs-pro/edit-history-loader','_menuManagerService','_selectionProtectionRuleModel','_permissionService','setConfig','getLocales','width','editHistory.panel.reverting','terminate','reload','_historyManagerService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','495tbZihJ'];_0x3343=function(){return _0x5c4d2f;};return _0x3343();}let G=class extends _0x2029d3{constructor(_0x3554ed,_0x1d8a13,_0x5e8ced,_0x2e7f96,_0x38d6f5,_0x177d83,_0x54e837,_0x5e9bf1,_0x109739,_0xd9b8a4){const _0x2e9f3b=_0x3cdcf4;super(),this[_0x2e9f3b(0x154)]=_0x3554ed,this[_0x2e9f3b(0x138)]=_0x1d8a13,this['_configService']=_0x5e8ced,this['_commandService']=_0x2e7f96,this['_messageService']=_0x38d6f5,this['_permissionService']=_0x177d83,this[_0x2e9f3b(0x143)]=_0x54e837,this[_0x2e9f3b(0x108)]=_0x5e9bf1,this[_0x2e9f3b(0x16c)]=_0x109739,this[_0x2e9f3b(0x12f)]=_0xd9b8a4,V(this,_0x2e9f3b(0x11e),new _0x56cf2c(null)),V(this,'historyUniver$',this[_0x2e9f3b(0x11e)]['asObservable']()),V(this,_0x2e9f3b(0x127),new _0x2faec9()),V(this,_0x2e9f3b(0x185),new Map()),V(this,_0x2e9f3b(0xd6),null),this[_0x2e9f3b(0x10a)]();}get[_0x3cdcf4(0x139)](){const _0x214b42=_0x3cdcf4;return this[_0x214b42(0x11e)][_0x214b42(0xdc)];}['_init'](){const _0x44e9af=_0x3cdcf4;this[_0x44e9af(0x10f)](),this['_initPlugins']();}['_initContainer'](){const _0x9c27c7=_0x3cdcf4;var _0x197223;let _0x27df11=(_0x197223=this[_0x9c27c7(0x105)][_0x9c27c7(0x116)](_0x9c27c7(0xf0)))==null?_0x9c27c7(0xdb):_0x197223,_0x592fef=document[_0x9c27c7(0x18d)](_0x27df11);if(!_0x592fef)return;let _0x1ca6dd=document['createElement'](_0x9c27c7(0x16a));_0x1ca6dd['id']=W,_0x1ca6dd[_0x9c27c7(0x155)][_0x9c27c7(0x13b)]='history-container',_0x1ca6dd['style'][_0x9c27c7(0x160)]=_0x9c27c7(0x15e),_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0x193)]='0',_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0x131)]='0',_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0x147)]='100%',_0x1ca6dd['style'][_0x9c27c7(0x118)]=_0x9c27c7(0x11d),_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0x190)]='49',_0x1ca6dd[_0x9c27c7(0x152)][_0x9c27c7(0xff)]=_0x9c27c7(0xef),_0x592fef[_0x9c27c7(0xe1)](_0x1ca6dd);}[_0x3cdcf4(0x179)](){const _0x3700a2=_0x3cdcf4;[[_0x2d73f1],[_0x5f0c3f,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5648a0,null]]}],[_0x37c922],[_0x3d9324,{'override':[[_0x10d7c3,null]]}],[_0x538f12,{'hasScroll':!0x1}],[_0x46fc83],[_0x5044ec],[_0x3c229c,{'notExecuteFormula':!0x0}],[_0x45fe6d],[_0x4db3f2],[_0x4a2df2],[_0x2c8c9c],[_0x42c3c6],[_0x1c0489],[_0x3afe8a],[_0x3768f0],[_0x292f9e],[_0x514839],[_0x529313],[_0x5ae02d],[_0x329b5b],[_0x13fe5f,{'notExecuteFormula':!0x0}],[_0x53481a],[_0x16e557],[_0x36e547],[_0x2dbafb],[_0x7fa849],[_0x4d4628],[_0x163c98],[_0x4168e0],[_0x11393a],[_0xb2aea8,{'notExecuteFormula':!0x0}],[_0x644fe7]][_0x3700a2(0x162)](([_0x26b65b,_0x363cab])=>this['registerPlugin'](_0x26b65b,_0x363cab));}[_0x3cdcf4(0x106)](){const _0x305027=_0x3cdcf4;super[_0x305027(0x106)](),this[_0x305027(0x11c)](),this[_0x305027(0x185)][_0x305027(0xd4)]();}['registerPlugin'](_0x1778e8,_0x33e122,_0x1b1ed7){const _0x358010=_0x3cdcf4;if(this[_0x358010(0x185)][_0x358010(0x156)](_0x1778e8[_0x358010(0x130)])&&!_0x1b1ed7)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1778e8['pluginName']+_0x358010(0xf6));this['_pluginMap']['set'](_0x1778e8[_0x358010(0x130)],[_0x1778e8,_0x33e122]);}[_0x3cdcf4(0xeb)](){const _0x48bf5c=_0x3cdcf4;return Array[_0x48bf5c(0xe4)](this[_0x48bf5c(0x185)][_0x48bf5c(0x168)]());}['mountHistoryContent'](_0x278c66,_0x378d25){const _0x512418=_0x3cdcf4;let _0x4b3473=document[_0x512418(0x18d)](W);_0x4b3473&&(_0x4b3473[_0x512418(0x152)][_0x512418(0xff)]='block',this[_0x512418(0x15c)](_0x278c66,W,_0x378d25));}[_0x3cdcf4(0x11c)](){const _0x3a2149=_0x3cdcf4;var _0xf46628;this[_0x3a2149(0x127)][_0x3a2149(0x106)](),(_0xf46628=this[_0x3a2149(0x139)])==null||_0xf46628[_0x3a2149(0x106)](),this[_0x3a2149(0x11e)][_0x3a2149(0xf3)](null);let _0x278691=document[_0x3a2149(0x18d)](W);_0x278691&&(_0x278691[_0x3a2149(0x152)][_0x3a2149(0xff)]=_0x3a2149(0xef),this['_internalWebWorker']&&(this[_0x3a2149(0xd6)][_0x3a2149(0x149)](),this[_0x3a2149(0xd6)]=null));}[_0x3cdcf4(0x15c)](_0x9da4ec,_0x1fe6f8,_0x540239){const _0x459796=_0x3cdcf4;var _0x254802,_0x446868,_0x4c5e18,_0x36e73f,_0x5d54a7;if(this[_0x459796(0x139)])return;let _0x448d8c=new _0x265527({'locales':{[this[_0x459796(0x154)][_0x459796(0x17c)]()]:this[_0x459796(0x154)][_0x459796(0x146)]()},'override':[[_0x584edc,{'useClass':_0x5c318a}]]}),_0x1d7b1f=_0x448d8c[_0x459796(0x191)]();this['disposeWithMe'](this['_themeService'][_0x459796(0xd3)][_0x459796(0x182)](_0x20af4c=>{const _0x4970bb=_0x459796;_0x1d7b1f['get'](_0xe3d040)[_0x4970bb(0x114)](_0x20af4c);})),this['disposeWithMe'](this['_themeService'][_0x459796(0x180)][_0x459796(0x182)](_0x2cec30=>{const _0x538697=_0x459796;_0x1d7b1f[_0x538697(0xe0)](_0xe3d040)[_0x538697(0x13c)](_0x2cec30);})),_0x1d7b1f[_0x459796(0xe0)](_0x32d2bc)[_0x459796(0xfb)](this[_0x459796(0x154)]['getCurrentLocale']()),_0x1d7b1f[_0x459796(0xe0)](_0x387412)['setConfig'](_0x572102,this[_0x459796(0x105)][_0x459796(0x116)](_0x572102));let _0x78a009=this[_0x459796(0x105)][_0x459796(0x116)](_0x7be96a);_0x78a009&&_0x448d8c[_0x459796(0x176)](_0x56a3f2,{'license':_0x78a009['ls']});let _0x54b5d0=(_0x254802=this[_0x459796(0x105)][_0x459796(0x116)](_0x459796(0x12a)))==null?void 0x0:_0x254802[_0x459796(0xfd)],_0x594721=!!_0x54b5d0;_0x594721&&(this['_internalWebWorker']=_0x54b5d0 instanceof Worker?_0x54b5d0:null,_0x448d8c[_0x459796(0x176)](_0x4918e1,{'workerURL':_0x54b5d0})),this['_pluginMap'][_0x459796(0x162)](([_0x1898d3,_0x474379])=>{const _0x221c61=_0x459796;_0x448d8c[_0x221c61(0x176)](_0x1898d3,_0x474379);}),_0x448d8c[_0x459796(0x176)](_0x47e4d5,{'historyListServerUrl':(_0x446868=this[_0x459796(0x105)][_0x459796(0x116)](_0x459796(0x12a)))==null?void 0x0:_0x446868[_0x459796(0xfa)],'historyPanelComponentKey':(_0x4c5e18=this[_0x459796(0x105)][_0x459796(0x116)]('edit-history-loader.config'))==null?void 0x0:_0x4c5e18['historyPanelComponentKey'],'historyPanelHidden':(_0x36e73f=this['_configService'][_0x459796(0x116)](_0x459796(0x12a)))==null?void 0x0:_0x36e73f[_0x459796(0x137)],'historyAIassistantEnabled':(_0x5d54a7=this['_configService'][_0x459796(0x116)](_0x459796(0x12a)))==null?void 0x0:_0x5d54a7[_0x459796(0x15a)]}),_0x1d7b1f['invoke'](_0x14a0a4=>{const _0x418382=_0x459796;this[_0x418382(0xf1)](_0x14a0a4,_0x9da4ec);}),this['_historyUniver$'][_0x459796(0xf3)](_0x448d8c);let _0x35f571=_0x1d7b1f['get'](_0x5a8601),_0x5e0db7=this[_0x459796(0x184)](_0x9da4ec),_0x417c01=()=>{const _0x3a7186=_0x459796;_0x540239?_0x35f571[_0x3a7186(0x120)](_0x9da4ec,_0x1fe6f8,_0x5e0db7,_0x540239):_0x35f571[_0x3a7186(0xd2)](_0x9da4ec,_0x1fe6f8,_0x5e0db7);};if(this[_0x459796(0x136)][_0x459796(0xd9)]({'content':this[_0x459796(0x154)]['t'](_0x459796(0x113)),'type':_0x1defa2[_0x459796(0x13d)]}),_0x594721)try{_0x1d7b1f[_0x459796(0xe0)](_0x14b6ea)[_0x459796(0x15b)]()[_0x459796(0xf9)](()=>{_0x417c01();});}catch{_0x417c01();}else _0x417c01();}[_0x3cdcf4(0xf1)](_0x17a255,_0xcfe916){const _0x3a053a=_0x3cdcf4;let _0x413ea2=_0x17a255[_0x3a053a(0xe0)](_0x5a8601);this[_0x3a053a(0x127)][_0x3a053a(0x14f)](_0x413ea2[_0x3a053a(0x10c)]['subscribe'](_0xfe0514=>{const _0x27292d=_0x3a053a;switch(_0xfe0514){case _0x190d8d[_0x27292d(0x10d)]:this[_0x27292d(0x108)]['closeAll'](),this[_0x27292d(0x16c)][_0x27292d(0x188)]();break;case _0x190d8d[_0x27292d(0x103)]:this[_0x27292d(0x117)][_0x27292d(0xe8)](q['id']),this[_0x27292d(0x11c)]();break;case _0x190d8d[_0x27292d(0xe2)]:this[_0x27292d(0x11c)](),this[_0x27292d(0x136)][_0x27292d(0xd9)]({'content':this[_0x27292d(0x154)]['t'](_0x27292d(0x119)),'type':_0x1defa2['Error'],'duration':0xbb8});break;default:break;}})),this[_0x3a053a(0x127)][_0x3a053a(0x14f)](_0x413ea2['revertRevision$'][_0x3a053a(0x182)](async _0xaed1eb=>{const _0x48cac6=_0x3a053a;_0xaed1eb&&this[_0x48cac6(0x117)]['executeCommand'](_0x3d6029['id'],{'unitId':_0xcfe916,'revision':_0xaed1eb});}));}['_checkCanRevert'](_0x5b3b0a){const _0x3ea338=_0x3cdcf4;let _0xbce262=this[_0x3ea338(0x138)][_0x3ea338(0x158)](_0x5b3b0a)[_0x3ea338(0x192)]()[_0x3ea338(0xfc)](_0x1b6a3e=>_0x1b6a3e[_0x3ea338(0x140)]()),_0x388f28=new _0x5a33cd(_0x5b3b0a)['id'],_0x46adb0=_0xbce262[_0x3ea338(0xfc)](_0x3dda90=>new _0x2ef5d7(_0x5b3b0a,_0x3dda90)['id']),_0x30deb6=_0xbce262['map'](_0x5626b7=>this[_0x3ea338(0x143)][_0x3ea338(0x126)](_0x5b3b0a,_0x5626b7)['map'](_0xf89f8c=>new _0x31f1e2(_0x5b3b0a,_0x5626b7,_0xf89f8c[_0x3ea338(0x157)])['id']))[_0x3ea338(0x109)](),_0x42dfe8=new _0xc7b820(_0x5b3b0a)['id'];return this['_permissionService'][_0x3ea338(0x17e)]([_0x388f28,..._0x46adb0,..._0x30deb6,_0x42dfe8])['every'](_0x242865=>!!_0x242865['value']);}};G=U([H(0x0,_0x15eedd(_0x32d2bc)),H(0x1,_0x4b1f14),H(0x2,_0x387412),H(0x3,_0x5a387f),H(0x4,_0x3b1b42),H(0x5,_0xe16a20),H(0x6,_0x15eedd(_0xb32d55)),H(0x7,_0x15eedd(_0x5648a0)),H(0x8,_0x15eedd(_0x58d46f)),H(0x9,_0x15eedd(_0xe3d040))],G);const K={'id':_0x3cdcf4(0x128),'type':_0x44ea18[_0x3cdcf4(0x151)],'handler':_0x4948b5=>{const _0x4a5f9c=_0x3cdcf4;let _0x5df5b5=_0x4948b5['get'](G),{unitId:_0x4699d8}=_0xa1e813(_0x4948b5[_0x4a5f9c(0xe0)](_0x4b1f14))||{};return _0x4699d8?(_0x5df5b5[_0x4a5f9c(0xd7)](_0x4699d8),!0x0):!0x1;}},q={'id':_0x3cdcf4(0x159),'type':_0x44ea18[_0x3cdcf4(0x151)],'handler':()=>!0x0};var st=_0x3cdcf4(0x141),ct=_0x3cdcf4(0x10e);function lt(_0x301aca){const _0x191708=_0x3cdcf4;return{'id':K['id'],'type':_0x34eb6e['BUTTON'],'icon':'HistoryIcon','tooltip':_0x191708(0xda),'hidden$':_0xb5796a(_0x301aca,_0x269057[_0x191708(0x12d)]),'disabled$':_0x10942f(_0x301aca,{'workbookTypes':[_0x38ef1d],'worksheetTypes':[],'rangeTypes':[]})};}const ut={[_0x3d75fa['OTHERS']]:{[K['id']]:{'order':0.2,'menuItemFactory':lt}}};let J=class extends _0x19ac1f{constructor(_0x130f3d,_0xa01a03,_0x8f2ac1,_0x4bc59e,_0x5645a1,_0x105014,_0x4a3e4e,_0x3be2aa,_0x2ccfe1,_0x4ef1a9,_0x341d96){const _0x341ccc=_0x3cdcf4;super(),this[_0x341ccc(0x117)]=_0x130f3d,this[_0x341ccc(0x142)]=_0xa01a03,this[_0x341ccc(0x194)]=_0x8f2ac1,this[_0x341ccc(0x14b)]=_0x4bc59e,this['_localeService']=_0x5645a1,this['_messageService']=_0x105014,this[_0x341ccc(0x135)]=_0x4a3e4e,this[_0x341ccc(0xdf)]=_0x3be2aa,this['_dataLoaderService']=_0x2ccfe1,this[_0x341ccc(0x138)]=_0x4ef1a9,this[_0x341ccc(0x124)]=_0x341d96,V(this,'_revertErrorTimer',null),this[_0x341ccc(0x10a)]();}[_0x3cdcf4(0x10a)](){const _0x1a7e3a=_0x3cdcf4;[K,q][_0x1a7e3a(0x162)](_0x9087b=>this['disposeWithMe'](_0x4cee92(this[_0x1a7e3a(0x117)][_0x1a7e3a(0x11f)](_0x9087b)))),this[_0x1a7e3a(0x107)](this[_0x1a7e3a(0x194)]['register'](_0x1a7e3a(0x161),_0x577669)),this['_menuManagerService'][_0x1a7e3a(0x18b)](ut),this[_0x1a7e3a(0x107)](this[_0x1a7e3a(0x117)]['onCommandExecuted'](async(_0x49618f,_0x502753)=>{const _0x2bca1b=_0x1a7e3a;if(_0x49618f['id']===_0x3d6029['id']){let {unitId:_0x2c4522}=_0x49618f[_0x2bca1b(0x164)];this[_0x2bca1b(0x136)][_0x2bca1b(0xd9)]({'content':this['_localeService']['t'](_0x2bca1b(0x148)),'type':_0x1defa2[_0x2bca1b(0x13d)],'duration':0x1388});let _0x5308f1=this[_0x2bca1b(0x135)][_0x2bca1b(0x173)](_0x2c4522);_0x502753!=null&&_0x502753[_0x2bca1b(0xf7)]?this[_0x2bca1b(0x174)](_0x5308f1,async()=>(setTimeout(()=>window[_0x2bca1b(0xe6)][_0x2bca1b(0x14a)]()),!0x0),!0x0):this[_0x2bca1b(0x174)](_0x5308f1,async()=>{const _0x4b267b=_0x2bca1b;let _0x4d0736=this[_0x4b267b(0x138)][_0x4b267b(0x111)](_0x269057[_0x4b267b(0x12d)]),_0x1d18c0=_0x4d0736==null?void 0x0:_0x4d0736[_0x4b267b(0x15d)]();if(!_0x1d18c0)return!0x1;this['_univerInstanceService'][_0x4b267b(0xfe)](_0x2c4522);let _0x570f9e=await this[_0x4b267b(0x14e)][_0x4b267b(0x195)](_0x2c4522,_0x269057[_0x4b267b(0x12d)]);return _0x570f9e&&_0x570f9e instanceof _0x18329b?(await this[_0x4b267b(0x16e)](_0x570f9e,_0x1d18c0[_0x4b267b(0x140)]()),!0x0):!0x1;});}}));}[_0x3cdcf4(0x174)](_0x37a44d,_0x2912d9,_0x43ddcf=!0x1){const _0x3f1dc2=_0x3cdcf4;let _0x2cb776=_0x2ca74c([_0x37a44d[_0x3f1dc2(0x12e)][_0x3f1dc2(0x18c)],_0x37a44d[_0x3f1dc2(0x100)]])[_0x3f1dc2(0x182)](async([_0x3f3bce,_0x269594])=>{const _0x1380f8=_0x3f1dc2;if(_0x3f3bce[_0x1380f8(0x170)]===_0x2731f4[_0x1380f8(0xd8)]&&(_0x269594==null?void 0x0:_0x269594['status'])===_0x4ea0a1[_0x1380f8(0x11a)]&&_0x3f3bce[_0x1380f8(0x11b)][_0x1380f8(0x177)]['some'](_0x1b04b9=>_0x1b04b9['id']===_0x3d6029['id'])&&await _0x2912d9()){var _0x590b2b;this[_0x1380f8(0x14b)][_0x1380f8(0x11c)](),_0x2cb776['unsubscribe'](),this[_0x1380f8(0x165)]&&clearTimeout(this[_0x1380f8(0x165)]),await((_0x590b2b=this[_0x1380f8(0xdf)])==null?void 0x0:_0x590b2b['exhaustSavingTask']()),this[_0x1380f8(0x136)][_0x1380f8(0x13e)]();}});_0x43ddcf&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x550dcd=_0x3f1dc2;_0x2cb776[_0x550dcd(0x189)](),this[_0x550dcd(0x136)][_0x550dcd(0xd9)]({'content':this[_0x550dcd(0x154)]['t'](_0x550dcd(0x16d)),'type':_0x1defa2['Error'],'duration':0xbb8});},0x1388));}async[_0x3cdcf4(0x16e)](_0x156ea2,_0x52bc00){const _0x52b6e7=_0x3cdcf4;await this[_0x52b6e7(0xed)](_0x156ea2,_0x52bc00),_0x156ea2[_0x52b6e7(0x10b)][_0x52b6e7(0x112)](_0x53de42(this['dispose$']))[_0x52b6e7(0x182)](_0x2a97b0=>{const _0x74299b=_0x52b6e7;_0x2a97b0&&this[_0x74299b(0xf5)](_0x2a97b0);}),this[_0x52b6e7(0x124)][_0x52b6e7(0x183)][_0x52b6e7(0x112)](_0x53de42(this['dispose$']))[_0x52b6e7(0x182)](()=>this[_0x52b6e7(0xed)](_0x156ea2,_0x52bc00));}[_0x3cdcf4(0xf5)](_0xd799c7,_0x4c93a0=!0x1){const _0x3b4035=_0x3cdcf4;let _0x2ced42=this['_urlService'][_0x3b4035(0x134)]('subunit');_0xd799c7[_0x3b4035(0x140)]()!==_0x2ced42&&this[_0x3b4035(0x124)][_0x3b4035(0x187)](_0x3b4035(0x12b),_0xd799c7['getSheetId'](),_0x4c93a0);}async[_0x3cdcf4(0xed)](_0x26aa7c,_0xdedaa1){const _0x26efbe=_0x3cdcf4;var _0x1aa361;if(!_0xdedaa1||!_0x26aa7c[_0x26efbe(0x101)](_0xdedaa1)){let _0xe03fbe=_0x26aa7c[_0x26efbe(0x18e)]()[0x0],_0x103f5d=_0x26aa7c[_0x26efbe(0x101)](_0xe03fbe);if(!_0x103f5d)return;this[_0x26efbe(0xf5)](_0x103f5d,!0x0),await this[_0x26efbe(0x117)]['executeCommand'](_0x551c9c['id'],{'unitId':_0x26aa7c[_0x26efbe(0x178)](),'subUnitId':_0xe03fbe});return;}((_0x1aa361=_0x26aa7c[_0x26efbe(0x15d)]())==null?void 0x0:_0x1aa361[_0x26efbe(0x140)]())!==_0xdedaa1&&await this['_commandService'][_0x26efbe(0xe8)](_0x551c9c['id'],{'unitId':_0x26aa7c[_0x26efbe(0x178)](),'subUnitId':_0xdedaa1});}};J=U([H(0x0,_0x5a387f),H(0x1,_0x479c58),H(0x2,_0x15eedd(_0x21eed6)),H(0x3,_0x15eedd(G)),H(0x4,_0x15eedd(_0x32d2bc)),H(0x5,_0x3b1b42),H(0x6,_0x15eedd(_0x3e5faf)),H(0x7,_0x3fb8d5),H(0x8,_0x15eedd(_0x3705ae)),H(0x9,_0x4b1f14),H(0xa,_0x49a8dc)],J);const Y=_0x3cdcf4(0x167);let X=class extends _0x2029d3{constructor(_0xc99bd5,_0x3227bb,_0x2b695e,_0x5983fa,_0x4ef471,_0x56b31b,_0x54d7da,_0x373eb6,_0x2dd8fc,_0x17c36e){const _0x41f089=_0x3cdcf4;super(),this[_0x41f089(0x154)]=_0xc99bd5,this[_0x41f089(0x138)]=_0x3227bb,this[_0x41f089(0x105)]=_0x2b695e,this['_commandService']=_0x5983fa,this[_0x41f089(0x136)]=_0x4ef471,this[_0x41f089(0x144)]=_0x56b31b,this['_selectionProtectionRuleModel']=_0x54d7da,this[_0x41f089(0x108)]=_0x373eb6,this[_0x41f089(0x16c)]=_0x2dd8fc,this[_0x41f089(0x12f)]=_0x17c36e,V(this,_0x41f089(0x11e),new _0x56cf2c(null)),V(this,_0x41f089(0xf2),this[_0x41f089(0x11e)]['asObservable']()),V(this,_0x41f089(0x127),new _0x2faec9()),V(this,_0x41f089(0x185),new Map()),V(this,_0x41f089(0xd6),null),this[_0x41f089(0x10a)]();}get[_0x3cdcf4(0x139)](){const _0x373e2e=_0x3cdcf4;return this['_historyUniver$'][_0x373e2e(0xdc)];}['_init'](){const _0x59ea31=_0x3cdcf4;this[_0x59ea31(0x10f)](),this[_0x59ea31(0x179)]();}[_0x3cdcf4(0x10f)](){const _0x5568a1=_0x3cdcf4;var _0x5cf867;let _0x175afa=(_0x5cf867=this[_0x5568a1(0x105)][_0x5568a1(0x116)]('UNIVER_CONTAINER_ID'))==null?_0x5568a1(0xdb):_0x5cf867,_0x443ca1=document['getElementById'](_0x175afa);if(!_0x443ca1)return;let _0x22a903=document['createElement'](_0x5568a1(0x16a));_0x22a903['id']=Y,_0x22a903[_0x5568a1(0x155)][_0x5568a1(0x13b)]=_0x5568a1(0x115),_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x160)]=_0x5568a1(0x15e),_0x22a903['style'][_0x5568a1(0x193)]='0',_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x131)]='0',_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x147)]='100%',_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x118)]=_0x5568a1(0x11d),_0x22a903[_0x5568a1(0x152)][_0x5568a1(0x190)]='49',_0x22a903['style']['display']=_0x5568a1(0xef),_0x443ca1[_0x5568a1(0xe1)](_0x22a903);}[_0x3cdcf4(0x179)](){const _0x4767d7=_0x3cdcf4;[[_0x2d73f1],[_0x5702c4,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5648a0,null]]}],[_0x37c922],[_0x3d9324,{'override':[[_0x10d7c3,null]]}],[_0x538f12,{'hasScroll':!0x1}],[_0x46fc83],[_0x5044ec],[_0x3c229c,{'notExecuteFormula':!0x0}],[_0x50b046],[_0x4db3f2],[_0x4a2df2],[_0x2c8c9c],[_0x42c3c6],[_0x3afe8a],[_0x292f9e],[_0x514839],[_0x529313],[_0x5ae02d],[_0x282b82],[_0x13fe5f,{'notExecuteFormula':!0x0}],[_0x53481a],[_0x16e557],[_0x36e547],[_0x2dbafb],[_0x7fa849],[_0x4d4628],[_0x163c98],[_0x4168e0],[_0x11393a],[_0xb2aea8,{'notExecuteFormula':!0x0}],[_0x644fe7]][_0x4767d7(0x162)](([_0x1a8c02,_0x1cd548])=>this['registerPlugin'](_0x1a8c02,_0x1cd548));}['dispose'](){const _0x514872=_0x3cdcf4;super[_0x514872(0x106)](),this[_0x514872(0x11c)](),this[_0x514872(0x185)][_0x514872(0xd4)]();}[_0x3cdcf4(0x176)](_0x18b2db,_0x1565b6,_0x2a9cc2){const _0x416788=_0x3cdcf4;if(this[_0x416788(0x185)][_0x416788(0x156)](_0x18b2db[_0x416788(0x130)])&&!_0x2a9cc2)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x18b2db[_0x416788(0x130)]+_0x416788(0xf6));this[_0x416788(0x185)]['set'](_0x18b2db[_0x416788(0x130)],[_0x18b2db,_0x1565b6]);}[_0x3cdcf4(0xeb)](){const _0x15f1db=_0x3cdcf4;return Array[_0x15f1db(0xe4)](this['_pluginMap'][_0x15f1db(0x168)]());}['mountHistoryContent'](_0x32f8aa,_0x17dab9){const _0x1bea9d=_0x3cdcf4;let _0x319c1a=document[_0x1bea9d(0x18d)](Y);_0x319c1a&&(_0x319c1a[_0x1bea9d(0x152)][_0x1bea9d(0xff)]=_0x1bea9d(0x172),this[_0x1bea9d(0x15c)](_0x32f8aa,Y,_0x17dab9));}['unMountHistoryContent'](){const _0x45ca52=_0x3cdcf4;var _0x424305;this[_0x45ca52(0x127)][_0x45ca52(0x106)](),(_0x424305=this[_0x45ca52(0x139)])==null||_0x424305[_0x45ca52(0x106)](),this['_historyUniver$']['next'](null);let _0x23e434=document[_0x45ca52(0x18d)](Y);_0x23e434&&(_0x23e434[_0x45ca52(0x152)][_0x45ca52(0xff)]=_0x45ca52(0xef),this[_0x45ca52(0xd6)]&&(this['_internalWebWorker'][_0x45ca52(0x149)](),this[_0x45ca52(0xd6)]=null));}['_initUniver'](_0x1f9833,_0x4d51ed,_0x113809){const _0x134f0b=_0x3cdcf4;var _0x2ae299,_0x1f007d,_0x417dba,_0xcfadfa;if(this[_0x134f0b(0x139)])return;let _0xd047f9=new _0x265527({'locales':{[this[_0x134f0b(0x154)][_0x134f0b(0x17c)]()]:this[_0x134f0b(0x154)][_0x134f0b(0x146)]()},'override':[[_0x584edc,{'useClass':_0x5c318a}]]}),_0x25376b=_0xd047f9[_0x134f0b(0x191)]();this['disposeWithMe'](this[_0x134f0b(0x12f)]['darkMode$'][_0x134f0b(0x182)](_0x9a0630=>{const _0x25e325=_0x134f0b;_0x25376b['get'](_0xe3d040)[_0x25e325(0x114)](_0x9a0630);})),this[_0x134f0b(0x107)](this[_0x134f0b(0x12f)][_0x134f0b(0x180)][_0x134f0b(0x182)](_0x4b92a0=>{const _0x53b07e=_0x134f0b;_0x25376b[_0x53b07e(0xe0)](_0xe3d040)[_0x53b07e(0x13c)](_0x4b92a0);})),_0x25376b['get'](_0x32d2bc)[_0x134f0b(0xfb)](this[_0x134f0b(0x154)][_0x134f0b(0x17c)]()),_0x25376b[_0x134f0b(0xe0)](_0x387412)['setConfig'](_0x572102,this[_0x134f0b(0x105)][_0x134f0b(0x116)](_0x572102));let _0x45cb06=this[_0x134f0b(0x105)][_0x134f0b(0x116)](_0x7be96a);_0x45cb06&&_0xd047f9[_0x134f0b(0x176)](_0x56a3f2,{'license':_0x45cb06['ls']});let _0x1aba4c=(_0x2ae299=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x2ae299['workerURL'],_0x4e7c12=!!_0x1aba4c;_0x4e7c12&&(this[_0x134f0b(0xd6)]=_0x1aba4c instanceof Worker?_0x1aba4c:null,_0xd047f9[_0x134f0b(0x176)](_0x4918e1,{'workerURL':_0x1aba4c})),this[_0x134f0b(0x185)]['forEach'](([_0x29074d,_0x1986d4])=>{const _0x3843a1=_0x134f0b;_0xd047f9[_0x3843a1(0x176)](_0x29074d,_0x1986d4);}),_0xd047f9[_0x134f0b(0x176)](_0x1cc397,{'historyListServerUrl':(_0x1f007d=this[_0x134f0b(0x105)][_0x134f0b(0x116)](_0x134f0b(0x12a)))==null?void 0x0:_0x1f007d[_0x134f0b(0xfa)],'historyPanelComponentKey':(_0x417dba=this[_0x134f0b(0x105)][_0x134f0b(0x116)]('edit-history-loader.config'))==null?void 0x0:_0x417dba[_0x134f0b(0x132)],'historyPanelHidden':(_0xcfadfa=this[_0x134f0b(0x105)]['getConfig'](_0x134f0b(0x12a)))==null?void 0x0:_0xcfadfa[_0x134f0b(0x137)]}),_0x25376b[_0x134f0b(0xe5)](_0xf4a2b7=>{this['_initListener'](_0xf4a2b7,_0x1f9833);}),this['_historyUniver$']['next'](_0xd047f9);let _0x4e6325=_0x25376b[_0x134f0b(0xe0)](_0x5a8601),_0x4c26cc=this[_0x134f0b(0x184)](_0x1f9833),_0x4580ef=()=>{const _0x384432=_0x134f0b;_0x113809?_0x4e6325['triggerCustomVersions'](_0x1f9833,_0x4d51ed,_0x4c26cc,_0x113809):_0x4e6325[_0x384432(0xd2)](_0x1f9833,_0x4d51ed,_0x4c26cc);};if(this['_messageService'][_0x134f0b(0xd9)]({'content':this[_0x134f0b(0x154)]['t'](_0x134f0b(0x113)),'type':_0x1defa2['Loading']}),_0x4e7c12)try{_0x25376b[_0x134f0b(0xe0)](_0x14b6ea)[_0x134f0b(0x15b)]()[_0x134f0b(0xf9)](()=>{_0x4580ef();});}catch{_0x4580ef();}else _0x4580ef();}[_0x3cdcf4(0xf1)](_0xb9ced,_0x29b352){const _0xa7a072=_0x3cdcf4;let _0x5a8def=_0xb9ced[_0xa7a072(0xe0)](_0x5a8601);this[_0xa7a072(0x127)][_0xa7a072(0x14f)](_0x5a8def[_0xa7a072(0x10c)][_0xa7a072(0x182)](_0x31915f=>{const _0x3ff760=_0xa7a072;switch(_0x31915f){case _0x190d8d[_0x3ff760(0x10d)]:this[_0x3ff760(0x108)][_0x3ff760(0x16f)](),this[_0x3ff760(0x16c)]['close']();break;case _0x190d8d[_0x3ff760(0x103)]:this[_0x3ff760(0x117)][_0x3ff760(0xe8)](q['id']),this[_0x3ff760(0x11c)]();break;case _0x190d8d[_0x3ff760(0xe2)]:this[_0x3ff760(0x11c)](),this[_0x3ff760(0x136)]['show']({'content':this[_0x3ff760(0x154)]['t']('editHistory.panel.listFetchError'),'type':_0x1defa2[_0x3ff760(0xe2)],'duration':0xbb8});break;default:break;}})),this[_0xa7a072(0x127)][_0xa7a072(0x14f)](_0x5a8def[_0xa7a072(0xea)][_0xa7a072(0x182)](async _0x1f70fb=>{const _0x20cd40=_0xa7a072;_0x1f70fb&&this[_0x20cd40(0x117)][_0x20cd40(0xe8)](_0x3d6029['id'],{'unitId':_0x29b352,'revision':_0x1f70fb});}));}[_0x3cdcf4(0x184)](_0x3608a0){const _0x35e816=_0x3cdcf4;let _0x48f052=this[_0x35e816(0x138)][_0x35e816(0x158)](_0x3608a0)[_0x35e816(0x192)]()[_0x35e816(0xfc)](_0x296829=>_0x296829['getSheetId']()),_0x2f536c=new _0x5a33cd(_0x3608a0)['id'],_0x3728fa=_0x48f052[_0x35e816(0xfc)](_0x1d75e0=>new _0x2ef5d7(_0x3608a0,_0x1d75e0)['id']),_0xaaa451=_0x48f052[_0x35e816(0xfc)](_0x2cbc43=>this[_0x35e816(0x143)]['getSubunitRuleList'](_0x3608a0,_0x2cbc43)['map'](_0x1a43e3=>new _0x31f1e2(_0x3608a0,_0x2cbc43,_0x1a43e3[_0x35e816(0x157)])['id']))[_0x35e816(0x109)](),_0x53f6f7=new _0xc7b820(_0x3608a0)['id'];return this[_0x35e816(0x144)][_0x35e816(0x17e)]([_0x2f536c,..._0x3728fa,..._0xaaa451,_0x53f6f7])['every'](_0x40631a=>!!_0x40631a[_0x35e816(0xdc)]);}};X=U([H(0x0,_0x15eedd(_0x32d2bc)),H(0x1,_0x4b1f14),H(0x2,_0x387412),H(0x3,_0x5a387f),H(0x4,_0x3b1b42),H(0x5,_0xe16a20),H(0x6,_0x15eedd(_0xb32d55)),H(0x7,_0x15eedd(_0x5648a0)),H(0x8,_0x15eedd(_0x58d46f)),H(0x9,_0x15eedd(_0xe3d040))],X);let Z=class extends _0x23d642{constructor(_0x53669c=z,_0x468c3c,_0x91752){const _0x284179=_0x3cdcf4;super(),this['_config']=_0x53669c,this[_0x284179(0x12c)]=_0x468c3c,this[_0x284179(0x105)]=_0x91752;let {menu:_0x2f4c57,..._0x382b66}=_0x59b6b6({},z,this[_0x284179(0x18a)]);_0x2f4c57&&this[_0x284179(0x105)][_0x284179(0x145)](_0x284179(0x153),_0x2f4c57,{'merge':!0x0}),this[_0x284179(0x105)][_0x284179(0x145)](R,_0x382b66),this[_0x284179(0x18a)]['univerContainerId']&&this[_0x284179(0x105)][_0x284179(0x145)](_0x284179(0xf0),this[_0x284179(0x18a)][_0x284179(0x15f)]);}[_0x3cdcf4(0x181)](){[[G,{'useClass':X}],[J]]['forEach'](_0x3cc1b1=>this['_injector']['add'](_0x3cc1b1));}[_0x3cdcf4(0x102)](){const _0x49a1c4=_0x3cdcf4;this[_0x49a1c4(0x12c)]['get'](J);}};V(Z,'type',_0x269057[_0x3cdcf4(0x171)]),V(Z,_0x3cdcf4(0x130),_0x3cdcf4(0x17b)),V(Z,_0x3cdcf4(0x17d),st),V(Z,_0x3cdcf4(0xd1),ct),Z=U([_0x55ff80(_0x56a3f2),H(0x1,_0x15eedd(_0x2317a3)),H(0x2,_0x387412)],Z);let Q=class extends _0x19ac1f{constructor(_0x4b3b7c,_0x1d2cf5,_0xe8472f,_0x3a96b2,_0x39a260,_0x1b570c,_0x5cf3ce,_0x2c51db,_0x46051b,_0xa5464c,_0x187713){const _0x3a1393=_0x3cdcf4;super(),this[_0x3a1393(0x117)]=_0x4b3b7c,this['_menuManagerService']=_0x1d2cf5,this[_0x3a1393(0x194)]=_0xe8472f,this[_0x3a1393(0x14b)]=_0x3a96b2,this[_0x3a1393(0x154)]=_0x39a260,this['_messageService']=_0x1b570c,this[_0x3a1393(0x135)]=_0x5cf3ce,this['_localCacheService']=_0x2c51db,this[_0x3a1393(0x14e)]=_0x46051b,this[_0x3a1393(0x138)]=_0xa5464c,this[_0x3a1393(0x124)]=_0x187713,V(this,_0x3a1393(0x165),null),this[_0x3a1393(0x10a)]();}['_init'](){const _0x4000ee=_0x3cdcf4;[K,q][_0x4000ee(0x162)](_0x1fd0c7=>this[_0x4000ee(0x107)](_0x4cee92(this[_0x4000ee(0x117)]['registerCommand'](_0x1fd0c7)))),this[_0x4000ee(0x107)](this[_0x4000ee(0x194)][_0x4000ee(0x16b)](_0x4000ee(0x161),_0x577669)),this[_0x4000ee(0x142)][_0x4000ee(0x18b)](ut),this['disposeWithMe'](this[_0x4000ee(0x117)][_0x4000ee(0xdd)](async(_0x29ff9f,_0x15240f)=>{const _0x3076b2=_0x4000ee;if(_0x29ff9f['id']===_0x3d6029['id']){let {unitId:_0x241f58}=_0x29ff9f['params'];this[_0x3076b2(0x136)][_0x3076b2(0xd9)]({'content':this['_localeService']['t'](_0x3076b2(0x148)),'type':_0x1defa2[_0x3076b2(0x13d)],'duration':0x1388});let _0x329a8e=this[_0x3076b2(0x135)][_0x3076b2(0x173)](_0x241f58);_0x15240f!=null&&_0x15240f['fromCollab']?this['_handleRevertAcknowledgement'](_0x329a8e,async()=>(setTimeout(()=>window[_0x3076b2(0xe6)][_0x3076b2(0x14a)]()),!0x0),!0x0):this[_0x3076b2(0x174)](_0x329a8e,async()=>{const _0x19cc23=_0x3076b2;let _0x2b8e6c=this[_0x19cc23(0x138)][_0x19cc23(0x111)](_0x269057[_0x19cc23(0x12d)]),_0x5c1825=_0x2b8e6c==null?void 0x0:_0x2b8e6c['getActiveSheet']();if(!_0x5c1825)return!0x1;this[_0x19cc23(0x138)][_0x19cc23(0xfe)](_0x241f58);let _0x5416d6=await this[_0x19cc23(0x14e)][_0x19cc23(0x195)](_0x241f58,_0x269057[_0x19cc23(0x12d)]);return _0x5416d6&&_0x5416d6 instanceof _0x18329b?(await this[_0x19cc23(0x16e)](_0x5416d6,_0x5c1825[_0x19cc23(0x140)]()),!0x0):!0x1;});}}));}[_0x3cdcf4(0x174)](_0x2e2a5b,_0x1673ac,_0x56e672=!0x1){const _0x482d10=_0x3cdcf4;let _0x28d193=_0x2ca74c([_0x2e2a5b[_0x482d10(0x12e)][_0x482d10(0x18c)],_0x2e2a5b['state$']])[_0x482d10(0x182)](async([_0xaf9f40,_0x3cd8fe])=>{const _0x20da74=_0x482d10;if(_0xaf9f40['eventID']===_0x2731f4['CHANGESET_ACK']&&(_0x3cd8fe==null?void 0x0:_0x3cd8fe[_0x20da74(0x121)])===_0x4ea0a1[_0x20da74(0x11a)]&&_0xaf9f40[_0x20da74(0x11b)][_0x20da74(0x177)][_0x20da74(0xe9)](_0x8546f8=>_0x8546f8['id']===_0x3d6029['id'])&&await _0x1673ac()){var _0x34b3e7;this[_0x20da74(0x14b)][_0x20da74(0x11c)](),_0x28d193[_0x20da74(0x189)](),this[_0x20da74(0x165)]&&clearTimeout(this['_revertErrorTimer']),await((_0x34b3e7=this['_localCacheService'])==null?void 0x0:_0x34b3e7[_0x20da74(0x110)]());}});_0x56e672&&(this[_0x482d10(0x165)]=setTimeout(()=>{const _0x250679=_0x482d10;_0x28d193[_0x250679(0x189)](),this['_messageService'][_0x250679(0xd9)]({'content':this['_localeService']['t'](_0x250679(0x16d)),'type':_0x1defa2[_0x250679(0xe2)],'duration':0xbb8});},0x1388));}async[_0x3cdcf4(0x16e)](_0x5cd9b8,_0x316c7f){const _0x1f4a20=_0x3cdcf4;await this[_0x1f4a20(0xed)](_0x5cd9b8,_0x316c7f),_0x5cd9b8['activeSheet$'][_0x1f4a20(0x112)](_0x53de42(this[_0x1f4a20(0x169)]))[_0x1f4a20(0x182)](_0x18fbde=>{const _0x568c17=_0x1f4a20;_0x18fbde&&this[_0x568c17(0xf5)](_0x18fbde);}),this[_0x1f4a20(0x124)][_0x1f4a20(0x183)][_0x1f4a20(0x112)](_0x53de42(this[_0x1f4a20(0x169)]))['subscribe'](()=>this[_0x1f4a20(0xed)](_0x5cd9b8,_0x316c7f));}['_updateURLWithCurrentState'](_0x58acc1,_0x5ce8f3=!0x1){const _0x293a1d=_0x3cdcf4;let _0x4e40d4=this[_0x293a1d(0x124)][_0x293a1d(0x134)](_0x293a1d(0x12b));_0x58acc1[_0x293a1d(0x140)]()!==_0x4e40d4&&this[_0x293a1d(0x124)][_0x293a1d(0x187)](_0x293a1d(0x12b),_0x58acc1[_0x293a1d(0x140)](),_0x5ce8f3);}async[_0x3cdcf4(0xed)](_0x26de6a,_0x7f84df){const _0x1c379b=_0x3cdcf4;var _0xe9cea2;if(!_0x7f84df||!_0x26de6a[_0x1c379b(0x101)](_0x7f84df)){let _0x42c2cb=_0x26de6a[_0x1c379b(0x18e)]()[0x0],_0x1930a5=_0x26de6a[_0x1c379b(0x101)](_0x42c2cb);if(!_0x1930a5)return;this['_updateURLWithCurrentState'](_0x1930a5,!0x0),await this[_0x1c379b(0x117)][_0x1c379b(0xe8)](_0x551c9c['id'],{'unitId':_0x26de6a[_0x1c379b(0x178)](),'subUnitId':_0x42c2cb});return;}((_0xe9cea2=_0x26de6a[_0x1c379b(0x15d)]())==null?void 0x0:_0xe9cea2[_0x1c379b(0x140)]())!==_0x7f84df&&await this[_0x1c379b(0x117)]['executeCommand'](_0x551c9c['id'],{'unitId':_0x26de6a[_0x1c379b(0x178)](),'subUnitId':_0x7f84df});}};function _0x2791(_0x1688d3,_0x5ec134){_0x1688d3=_0x1688d3-0xd0;const _0x3343be=_0x3343();let _0x2791c0=_0x3343be[_0x1688d3];return _0x2791c0;}Q=U([H(0x0,_0x5a387f),H(0x1,_0x479c58),H(0x2,_0x15eedd(_0x21eed6)),H(0x3,_0x15eedd(G)),H(0x4,_0x15eedd(_0x32d2bc)),H(0x5,_0x3b1b42),H(0x6,_0x15eedd(_0x3e5faf)),H(0x7,_0x3fb8d5),H(0x8,_0x15eedd(_0x3705ae)),H(0x9,_0x4b1f14),H(0xa,_0x49a8dc)],Q);let $=class extends _0x23d642{constructor(_0x518310=z,_0x1808ee,_0x374bbb){const _0xcc93cd=_0x3cdcf4;super(),this[_0xcc93cd(0x18a)]=_0x518310,this[_0xcc93cd(0x12c)]=_0x1808ee,this[_0xcc93cd(0x105)]=_0x374bbb;let {menu:_0x562f9e,..._0x25f507}=_0x59b6b6({},z,this[_0xcc93cd(0x18a)]);_0x562f9e&&this[_0xcc93cd(0x105)]['setConfig']('menu',_0x562f9e,{'merge':!0x0}),this[_0xcc93cd(0x105)]['setConfig'](R,_0x25f507),this['_config']['univerContainerId']&&this[_0xcc93cd(0x105)]['setConfig'](ot,this[_0xcc93cd(0x18a)]['univerContainerId']);}['onStarting'](){const _0x16e875=_0x3cdcf4;[[G],[Q]]['forEach'](_0xb354f=>this[_0x16e875(0x12c)]['add'](_0xb354f));}[_0x3cdcf4(0x102)](){const _0x3ca6ba=_0x3cdcf4;this[_0x3ca6ba(0x12c)][_0x3ca6ba(0xe0)](Q);}};V($,'type',_0x269057['UNIVER_UNKNOWN']),V($,'pluginName',_0x3cdcf4(0x14c)),V($,'packageName',st),V($,_0x3cdcf4(0xd1),ct),$=U([_0x55ff80(_0x56a3f2),H(0x1,_0x15eedd(_0x2317a3)),H(0x2,_0x387412)],$);export{R as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,ot as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
1
+ const _0xd3747d=_0xe99c;(function(_0x538946,_0x504149){const _0x49730c=_0xe99c,_0x2636df=_0x538946();while(!![]){try{const _0x3d31a2=-parseInt(_0x49730c(0x2af))/0x1+parseInt(_0x49730c(0x1f4))/0x2+-parseInt(_0x49730c(0x1fd))/0x3*(parseInt(_0x49730c(0x242))/0x4)+parseInt(_0x49730c(0x20d))/0x5+parseInt(_0x49730c(0x240))/0x6*(parseInt(_0x49730c(0x296))/0x7)+-parseInt(_0x49730c(0x22f))/0x8*(parseInt(_0x49730c(0x278))/0x9)+parseInt(_0x49730c(0x210))/0xa;if(_0x3d31a2===_0x504149)break;else _0x2636df['push'](_0x2636df['shift']());}catch(_0x94d5f){_0x2636df['push'](_0x2636df['shift']());}}}(_0x545a,0x89959));import{CommandType as _0x46f158,DependentOn as _0xeab6e0,Disposable as _0x6c5d76,DisposableCollection as _0x58b672,IAuthzIoService as _0x25a20c,ICommandService as _0x57aba4,IConfigService as _0x550417,IPermissionService as _0x5dc172,IUniverInstanceService as _0x1bbbcc,Inject as _0x506b77,Injector as _0x11bf60,LocaleService as _0x2fd53d,Plugin as _0x545f8f,RxDisposable as _0x23822b,ThemeService as _0x56c0a0,Univer as _0x33c36b,UniverInstanceType as _0x31ee75,Workbook as _0x2a7488,merge as _0x33300f,toDisposable as _0x3e40d9}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x15136c,RangeProtectionRuleModel as _0x34e08b,SetWorksheetActivateCommand as _0x5ddf17,UniverSheetsPlugin as _0x33c86b,WorkbookEditablePermission as _0x210132,WorkbookRecoverHistoryPermission as _0x56ae1e,WorkbookViewHistoryPermission as _0x4de8e1,WorksheetEditPermission as _0x1c1e44,getSheetCommandTarget as _0x4eed07}from'@univerjs/sheets';import{CollaborationEvent as _0x473a70,RevertRevisionMutation as _0x4a9cc0,UniverCollaborationPlugin as _0x540b93}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x328722,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x249dd6,CollaborationController as _0x403598,CollaborationStatus as _0x1c0ec0,DataLoaderService as _0x297f87,ILocalCacheService as _0x4cecb8}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x39e9ab,HistoryModeStatus as _0x3033a5,UniverEditHistoryViewerMobilePlugin as _0x55a3ef,UniverEditHistoryViewerPlugin as _0x4ad7ee}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x1ae143,UniverLicensePlugin as _0x42940f}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x3ab737}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xc6fc17}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x41cc6c}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xd239}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x5310aa}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x4eb0a1}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xf3b184}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x318883}from'@univerjs/data-validation';import{MessageType as _0x235979}from'@univerjs/design';import{UniverDocsPlugin as _0x56f869}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1b9c79}from'@univerjs/docs-ui';import{IImageIoService as _0x5bff47,UniverDrawingPlugin as _0x798726}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x4abb8b}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x1d50f9}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x270392}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x458233}from'@univerjs/network';import{IRemoteInstanceService as _0x197e95,UniverRPCMainThreadPlugin as _0x14cb3e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x8742fa}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x153c52}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x3dd0c9}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0xd9d82f,UniverSheetsDataValidationUIPlugin as _0x1a32b2}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5b59e6}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x363dea}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x50dd11}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x379bf4}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xfe84d7}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x562138}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x332a69}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x15240e}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x48f874}from'@univerjs/sheets-numfmt';function _0x545a(){const _0x4f09ac=['getOwnPropertyDescriptor','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','onStarting','subscribe','workerURL','BUTTON','_pluginMap','_internalWebWorker','fromCollab','@univerjs-pro/edit-history-loader','editHistory.panel.listFetchError','type','1602636VAzogd','Exited','2528ODitPx','clear','location','registerCommand','dispose','_updateSubUnitFromURLParams','_permissionService','version','Entered','univer.operation.toggle-edit-history','activeSheet$','show','history-container','set','_commandService','from','params','onCommandExecuted','iterator','defineProperty','exhaustSavingTask','getSheetBySheetId','left','unMountHistoryContent','getSubunitRuleList','style','composePermission','_historyManagerService','every','setParam','historyUniver$','pipe','urlChange$','some','flat','top','mutations','Error','getElementById','100%','closeAll','menu','univer-history-container-mobile','symbol','mountHistoryContent','setLocale','UNIVER_UNKNOWN','getParam','getCurrentUnitOfType','block','_handleRevertAcknowledgement','univerContainerId','_config','univer.operation.exit-edit-history','12213genBfA','mergeMenu','CHANGESET_ACK','historyUniver','values','call','UNIVER_SHEET','appendChild','status$','div','_localeService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_componentManager','absolute','close','Loading','decorate','_initListener','createElement','getAllPlugins','_localCacheService','zIndex','getSheets','_dialogService','value','HistoryIcon','uComp','pluginName','string','_menuManagerService','21CTUomH','_historyUniver$','_injector','_dataLoaderService','packageName','function','_configService','then','revertRevision$','height','editHistory.panel.revertFailed','edit-history-loader.config','_themeService','getUnit','state$','default','_setupSubUnitSync','SYNCED','length','getUnhiddenWorksheets','none','forEach','disposeUnit','loadUnit','register','689368NgqdEL','triggerLoadVersions','historyPanelHidden','historyListServerUrl','univer-container','reload','getActiveSheet','\x20has\x20been\x20registered.','registerPlugin','object','getCollabEntity','session','OPERATION','unsubscribe','681720UBprhf','_init','_selectionProtectionRuleModel','prototype','eventID','permissionId','executeCommand','getSheetId','dataset','3909zMfVZP','_collaborationController','_initContainer','terminate','whenReady','add','event$','UNIVER_CONTAINER_ID','asObservable','setConfig','display','editHistory.panel.reverting','map','editHistory.info.initializing','getConfig','triggerCustomVersions','2035980cSQhFo','has','_revertErrorTimer','7509400mhvAHf','onSteady','_initPlugins','setTheme','historyPanelComponentKey','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','invoke','darkMode$','get','setDarkMode','historyAIassistantEnabled','_messageService','getUnitId','data','toPrimitive','OTHERS','_checkCanRevert','[MobileHistoryLoaderService]:\x20Plugin\x20','getCurrentLocale','disposeWithMe','_urlService','position','subunit','_disposableCollection','_sidebarService','_univerInstanceService','width','_updateURLWithCurrentState','next','currentTheme$','_initUniver','1320wtBgqq','__getInjector','dispose$','status','[HistoryLoaderService]:\x20Plugin\x20'];_0x545a=function(){return _0x4f09ac;};return _0x545a();}import{UniverSheetsTablePlugin as _0x1ffac4}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x4307c2,UniverSheetsUIPlugin as _0x2c3c9f,getCurrentRangeDisable$ as _0x565f31}from'@univerjs/sheets-ui';import{ComponentManager as _0x579cf7,IDialogService as _0x4cc893,IMenuManagerService as _0x7ea17b,IMessageService as _0x388624,ISidebarService as _0x376338,MenuItemType as _0x5aba48,RibbonStartGroup as _0x37854d,UniverMobileUIPlugin as _0x3b5660,UniverUIPlugin as _0x924848,getMenuHiddenObservable as _0x3be5a3}from'@univerjs/ui';import{BehaviorSubject as _0xf7d34,combineLatest as _0x3fef9b,takeUntil as _0x181a1c}from'rxjs';import{IURLService as _0x43f444}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x357cc1}from'@univerjs/icons';const R=_0xd3747d(0x2a1);Symbol(R);const z={};function B(_0x5b8664){'@babel/helpers - typeof';const _0x27bf9d=_0xd3747d;return B=typeof Symbol=='function'&&typeof Symbol[_0x27bf9d(0x254)]=='symbol'?function(_0x4e01d4){return typeof _0x4e01d4;}:function(_0x31f228){const _0x563695=_0x27bf9d;return _0x31f228&&typeof Symbol==_0x563695(0x29b)&&_0x31f228['constructor']===Symbol&&_0x31f228!==Symbol[_0x563695(0x1f7)]?'symbol':typeof _0x31f228;},B(_0x5b8664);}function it(_0x193bdd,_0x55604f){const _0x11df31=_0xd3747d;if(B(_0x193bdd)!=_0x11df31(0x1ef)||!_0x193bdd)return _0x193bdd;var _0x580b46=_0x193bdd[Symbol[_0x11df31(0x21e)]];if(_0x580b46!==void 0x0){var _0xf50c2=_0x580b46[_0x11df31(0x27d)](_0x193bdd,_0x55604f||_0x11df31(0x2a5));if(B(_0xf50c2)!='object')return _0xf50c2;throw TypeError(_0x11df31(0x283));}return(_0x55604f===_0x11df31(0x294)?String:Number)(_0x193bdd);}function at(_0x86057b){const _0x33220=_0xd3747d;var _0x380322=it(_0x86057b,_0x33220(0x294));return B(_0x380322)==_0x33220(0x26d)?_0x380322:_0x380322+'';}function V(_0x3a8e98,_0x24cfda,_0x205287){const _0x43255f=_0xd3747d;return(_0x24cfda=at(_0x24cfda))in _0x3a8e98?Object[_0x43255f(0x255)](_0x3a8e98,_0x24cfda,{'value':_0x205287,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a8e98[_0x24cfda]=_0x205287,_0x3a8e98;}function H(_0x333488,_0x508d0f){return function(_0x180fee,_0x412174){_0x508d0f(_0x180fee,_0x412174,_0x333488);};}function U(_0x270678,_0x5e727b,_0x268f1b,_0x1163a6){const _0x4444f6=_0xd3747d;var _0x42b0c2=arguments[_0x4444f6(0x2a8)],_0x42a2ac=_0x42b0c2<0x3?_0x5e727b:_0x1163a6===null?_0x1163a6=Object[_0x4444f6(0x234)](_0x5e727b,_0x268f1b):_0x1163a6,_0x2c82f6;if(typeof Reflect==_0x4444f6(0x1ef)&&typeof Reflect[_0x4444f6(0x288)]==_0x4444f6(0x29b))_0x42a2ac=Reflect[_0x4444f6(0x288)](_0x270678,_0x5e727b,_0x268f1b,_0x1163a6);else{for(var _0x453580=_0x270678[_0x4444f6(0x2a8)]-0x1;_0x453580>=0x0;_0x453580--)(_0x2c82f6=_0x270678[_0x453580])&&(_0x42a2ac=(_0x42b0c2<0x3?_0x2c82f6(_0x42a2ac):_0x42b0c2>0x3?_0x2c82f6(_0x5e727b,_0x268f1b,_0x42a2ac):_0x2c82f6(_0x5e727b,_0x268f1b))||_0x42a2ac);}return _0x42b0c2>0x3&&_0x42a2ac&&Object[_0x4444f6(0x255)](_0x5e727b,_0x268f1b,_0x42a2ac),_0x42a2ac;}const ot=_0xd3747d(0x204),W='univer-history-container';function _0xe99c(_0x709a08,_0x5a92f){_0x709a08=_0x709a08-0x1e8;const _0x545adb=_0x545a();let _0xe99c77=_0x545adb[_0x709a08];return _0xe99c77;}let G=class extends _0x6c5d76{constructor(_0x31db47,_0x27c903,_0x342859,_0x38c1f5,_0xcd4c6f,_0x22a7fc,_0x23f63f,_0x40431d,_0x4bc512,_0x59bf8f){const _0x1a577f=_0xd3747d;super(),this[_0x1a577f(0x282)]=_0x31db47,this['_univerInstanceService']=_0x27c903,this[_0x1a577f(0x29c)]=_0x342859,this[_0x1a577f(0x250)]=_0x38c1f5,this[_0x1a577f(0x21b)]=_0xcd4c6f,this['_permissionService']=_0x22a7fc,this['_selectionProtectionRuleModel']=_0x23f63f,this[_0x1a577f(0x28f)]=_0x40431d,this['_sidebarService']=_0x4bc512,this[_0x1a577f(0x2a2)]=_0x59bf8f,V(this,_0x1a577f(0x297),new _0xf7d34(null)),V(this,_0x1a577f(0x260),this['_historyUniver$']['asObservable']()),V(this,_0x1a577f(0x227),new _0x58b672()),V(this,_0x1a577f(0x23a),new Map()),V(this,_0x1a577f(0x23b),null),this[_0x1a577f(0x1f5)]();}get['historyUniver'](){return this['_historyUniver$']['value'];}[_0xd3747d(0x1f5)](){const _0x27d666=_0xd3747d;this[_0x27d666(0x1ff)](),this[_0x27d666(0x212)]();}[_0xd3747d(0x1ff)](){const _0x200008=_0xd3747d;var _0x566262;let _0x3b0b14=(_0x566262=this[_0x200008(0x29c)][_0x200008(0x20b)]('UNIVER_CONTAINER_ID'))==null?_0x200008(0x1ea):_0x566262,_0x74b3a6=document['getElementById'](_0x3b0b14);if(!_0x74b3a6)return;let _0x5a4aea=document[_0x200008(0x28a)](_0x200008(0x281));_0x5a4aea['id']=W,_0x5a4aea[_0x200008(0x1fc)][_0x200008(0x292)]=_0x200008(0x24e),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x225)]=_0x200008(0x285),_0x5a4aea['style'][_0x200008(0x265)]='0',_0x5a4aea[_0x200008(0x25b)][_0x200008(0x258)]='0',_0x5a4aea['style'][_0x200008(0x22a)]=_0x200008(0x269),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x29f)]=_0x200008(0x269),_0x5a4aea[_0x200008(0x25b)][_0x200008(0x28d)]='49',_0x5a4aea['style'][_0x200008(0x207)]=_0x200008(0x2aa),_0x74b3a6[_0x200008(0x27f)](_0x5a4aea);}[_0xd3747d(0x212)](){const _0x4cd34c=_0xd3747d;[[_0x270392],[_0x924848,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cc893,null]]}],[_0x458233],[_0x798726,{'override':[[_0x5bff47,null]]}],[_0x56f869,{'hasScroll':!0x1}],[_0x1b9c79],[_0x48f874],[_0x33c86b,{'notExecuteFormula':!0x0}],[_0x2c3c9f],[_0xfe84d7],[_0x562138],[_0x540b93],[_0x50dd11],[_0x379bf4],[_0x8742fa],[_0x153c52],[_0x332a69],[_0x15240e],[_0x318883],[_0x3dd0c9],[_0x1a32b2],[_0x1d50f9,{'notExecuteFormula':!0x0}],[_0x4abb8b],[_0x5b59e6],[_0x363dea],[_0x4eb0a1],[_0xf3b184],[_0x3ab737],[_0xc6fc17],[_0xd239],[_0x5310aa],[_0x41cc6c,{'notExecuteFormula':!0x0}],[_0x1ffac4]]['forEach'](([_0x4fd77b,_0x4f4bad])=>this[_0x4cd34c(0x1ee)](_0x4fd77b,_0x4f4bad));}[_0xd3747d(0x246)](){const _0x17c434=_0xd3747d;super[_0x17c434(0x246)](),this[_0x17c434(0x259)](),this[_0x17c434(0x23a)]['clear']();}['registerPlugin'](_0x10ef51,_0x78dc0,_0x1acae1){const _0xb9ebee=_0xd3747d;if(this[_0xb9ebee(0x23a)][_0xb9ebee(0x20e)](_0x10ef51[_0xb9ebee(0x293)])&&!_0x1acae1)throw Error(_0xb9ebee(0x233)+_0x10ef51[_0xb9ebee(0x293)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0xb9ebee(0x24f)](_0x10ef51[_0xb9ebee(0x293)],[_0x10ef51,_0x78dc0]);}['getAllPlugins'](){const _0x4bdcbb=_0xd3747d;return Array[_0x4bdcbb(0x251)](this[_0x4bdcbb(0x23a)][_0x4bdcbb(0x27c)]());}[_0xd3747d(0x26e)](_0x432104,_0x19ab33){const _0x58eb82=_0xd3747d;let _0x5c3776=document[_0x58eb82(0x268)](W);_0x5c3776&&(_0x5c3776[_0x58eb82(0x25b)][_0x58eb82(0x207)]=_0x58eb82(0x273),this[_0x58eb82(0x22e)](_0x432104,W,_0x19ab33));}['unMountHistoryContent'](){const _0x280731=_0xd3747d;var _0x57df33;this[_0x280731(0x227)][_0x280731(0x246)](),(_0x57df33=this[_0x280731(0x27b)])==null||_0x57df33[_0x280731(0x246)](),this[_0x280731(0x297)][_0x280731(0x22c)](null);let _0x1cf1fa=document[_0x280731(0x268)](W);_0x1cf1fa&&(_0x1cf1fa[_0x280731(0x25b)]['display']=_0x280731(0x2aa),this[_0x280731(0x23b)]&&(this['_internalWebWorker'][_0x280731(0x200)](),this[_0x280731(0x23b)]=null));}[_0xd3747d(0x22e)](_0x5462e2,_0x1afac1,_0x94e86e){const _0x578619=_0xd3747d;var _0x22b970,_0x56e7c4,_0x2802e2,_0x1fe362,_0x5359e0;if(this[_0x578619(0x27b)])return;let _0x2b32b9=new _0x33c36b({'locales':{[this['_localeService'][_0x578619(0x222)]()]:this[_0x578619(0x282)]['getLocales']()},'override':[[_0x25a20c,{'useClass':_0x328722}]]}),_0x301b87=_0x2b32b9[_0x578619(0x230)]();this[_0x578619(0x223)](this[_0x578619(0x2a2)]['darkMode$'][_0x578619(0x237)](_0x39718b=>{const _0x48704f=_0x578619;_0x301b87['get'](_0x56c0a0)[_0x48704f(0x219)](_0x39718b);})),this[_0x578619(0x223)](this[_0x578619(0x2a2)]['currentTheme$'][_0x578619(0x237)](_0x3f6588=>{const _0x3ee75b=_0x578619;_0x301b87[_0x3ee75b(0x218)](_0x56c0a0)[_0x3ee75b(0x213)](_0x3f6588);})),_0x301b87['get'](_0x2fd53d)[_0x578619(0x26f)](this[_0x578619(0x282)][_0x578619(0x222)]()),_0x301b87[_0x578619(0x218)](_0x550417)[_0x578619(0x206)](_0x249dd6,this[_0x578619(0x29c)][_0x578619(0x20b)](_0x249dd6));let _0x46e3c3=this[_0x578619(0x29c)]['getConfig'](_0x1ae143);_0x46e3c3&&_0x2b32b9['registerPlugin'](_0x42940f,{'license':_0x46e3c3['ls']});let _0x3cadc1=(_0x22b970=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x22b970[_0x578619(0x238)],_0x3d5c10=!!_0x3cadc1;_0x3d5c10&&(this['_internalWebWorker']=_0x3cadc1 instanceof Worker?_0x3cadc1:null,_0x2b32b9[_0x578619(0x1ee)](_0x14cb3e,{'workerURL':_0x3cadc1})),this[_0x578619(0x23a)][_0x578619(0x2ab)](([_0x556ce7,_0x32906e])=>{const _0x1ac3c6=_0x578619;_0x2b32b9[_0x1ac3c6(0x1ee)](_0x556ce7,_0x32906e);}),_0x2b32b9[_0x578619(0x1ee)](_0x4ad7ee,{'historyListServerUrl':(_0x56e7c4=this['_configService'][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x56e7c4[_0x578619(0x1e9)],'historyPanelComponentKey':(_0x2802e2=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x2802e2[_0x578619(0x214)],'historyPanelHidden':(_0x1fe362=this[_0x578619(0x29c)]['getConfig'](_0x578619(0x2a1)))==null?void 0x0:_0x1fe362[_0x578619(0x1e8)],'historyAIassistantEnabled':(_0x5359e0=this[_0x578619(0x29c)][_0x578619(0x20b)](_0x578619(0x2a1)))==null?void 0x0:_0x5359e0[_0x578619(0x21a)]}),_0x301b87[_0x578619(0x216)](_0x41c9b7=>{const _0x54f38c=_0x578619;this[_0x54f38c(0x289)](_0x41c9b7,_0x5462e2);}),this[_0x578619(0x297)][_0x578619(0x22c)](_0x2b32b9);let _0x52f621=_0x301b87[_0x578619(0x218)](_0x39e9ab),_0x7919bc=this[_0x578619(0x220)](_0x5462e2),_0x5e4eaf=()=>{const _0x5e857f=_0x578619;_0x94e86e?_0x52f621['triggerCustomVersions'](_0x5462e2,_0x1afac1,_0x7919bc,_0x94e86e):_0x52f621[_0x5e857f(0x2b0)](_0x5462e2,_0x1afac1,_0x7919bc);};if(this[_0x578619(0x21b)]['show']({'content':this[_0x578619(0x282)]['t'](_0x578619(0x20a)),'type':_0x235979[_0x578619(0x287)]}),_0x3d5c10)try{_0x301b87['get'](_0x197e95)[_0x578619(0x201)]()[_0x578619(0x29d)](()=>{_0x5e4eaf();});}catch{_0x5e4eaf();}else _0x5e4eaf();}[_0xd3747d(0x289)](_0x4fcaa6,_0x55ca4d){const _0x6c1645=_0xd3747d;let _0x3d0820=_0x4fcaa6[_0x6c1645(0x218)](_0x39e9ab);this[_0x6c1645(0x227)][_0x6c1645(0x202)](_0x3d0820[_0x6c1645(0x280)][_0x6c1645(0x237)](_0x14434f=>{const _0x4fc1e7=_0x6c1645;switch(_0x14434f){case _0x3033a5[_0x4fc1e7(0x24a)]:this[_0x4fc1e7(0x28f)][_0x4fc1e7(0x26a)](),this[_0x4fc1e7(0x228)]['close']();break;case _0x3033a5[_0x4fc1e7(0x241)]:this[_0x4fc1e7(0x250)]['executeCommand'](q['id']),this[_0x4fc1e7(0x259)]();break;case _0x3033a5[_0x4fc1e7(0x267)]:this[_0x4fc1e7(0x259)](),this[_0x4fc1e7(0x21b)][_0x4fc1e7(0x24d)]({'content':this[_0x4fc1e7(0x282)]['t']('editHistory.panel.listFetchError'),'type':_0x235979[_0x4fc1e7(0x267)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x6c1645(0x202)](_0x3d0820[_0x6c1645(0x29e)][_0x6c1645(0x237)](async _0x48c774=>{const _0x53cd92=_0x6c1645;_0x48c774&&this['_commandService'][_0x53cd92(0x1fa)](_0x4a9cc0['id'],{'unitId':_0x55ca4d,'revision':_0x48c774});}));}[_0xd3747d(0x220)](_0x41ad54){const _0x4d8b71=_0xd3747d;let _0x5e2035=this[_0x4d8b71(0x229)][_0x4d8b71(0x2a3)](_0x41ad54)[_0x4d8b71(0x28e)]()[_0x4d8b71(0x209)](_0x2685c6=>_0x2685c6[_0x4d8b71(0x1fb)]()),_0x2d9f8c=new _0x210132(_0x41ad54)['id'],_0x5d8839=_0x5e2035[_0x4d8b71(0x209)](_0x467583=>new _0x1c1e44(_0x41ad54,_0x467583)['id']),_0x460820=_0x5e2035[_0x4d8b71(0x209)](_0x5eccb7=>this[_0x4d8b71(0x1f6)][_0x4d8b71(0x25a)](_0x41ad54,_0x5eccb7)['map'](_0x50f2c6=>new _0x15136c(_0x41ad54,_0x5eccb7,_0x50f2c6[_0x4d8b71(0x1f9)])['id']))[_0x4d8b71(0x264)](),_0x213824=new _0x56ae1e(_0x41ad54)['id'];return this[_0x4d8b71(0x248)][_0x4d8b71(0x25c)]([_0x2d9f8c,..._0x5d8839,..._0x460820,_0x213824])[_0x4d8b71(0x25e)](_0x1955e2=>!!_0x1955e2['value']);}};G=U([H(0x0,_0x506b77(_0x2fd53d)),H(0x1,_0x1bbbcc),H(0x2,_0x550417),H(0x3,_0x57aba4),H(0x4,_0x388624),H(0x5,_0x5dc172),H(0x6,_0x506b77(_0x34e08b)),H(0x7,_0x506b77(_0x4cc893)),H(0x8,_0x506b77(_0x376338)),H(0x9,_0x506b77(_0x56c0a0))],G);const K={'id':_0xd3747d(0x24b),'type':_0x46f158[_0xd3747d(0x1f2)],'handler':_0x523c34=>{const _0x309aea=_0xd3747d;let _0x2dd09b=_0x523c34[_0x309aea(0x218)](G),{unitId:_0x37586b}=_0x4eed07(_0x523c34[_0x309aea(0x218)](_0x1bbbcc))||{};return _0x37586b?(_0x2dd09b['mountHistoryContent'](_0x37586b),!0x0):!0x1;}},q={'id':_0xd3747d(0x277),'type':_0x46f158[_0xd3747d(0x1f2)],'handler':()=>!0x0};var st=_0xd3747d(0x23d),ct='0.24.0';function lt(_0x5dc746){const _0x5cc6a0=_0xd3747d;return{'id':K['id'],'type':_0x5aba48[_0x5cc6a0(0x239)],'icon':_0x5cc6a0(0x291),'tooltip':'editHistory.panel.title','hidden$':_0x3be5a3(_0x5dc746,_0x31ee75[_0x5cc6a0(0x27e)]),'disabled$':_0x565f31(_0x5dc746,{'workbookTypes':[_0x4de8e1],'worksheetTypes':[],'rangeTypes':[]})};}const ut={[_0x37854d[_0xd3747d(0x21f)]]:{[K['id']]:{'order':0.2,'menuItemFactory':lt}}};let J=class extends _0x23822b{constructor(_0x44a944,_0x44ae36,_0xf175e,_0x198901,_0x3a228e,_0x2942ed,_0xfd0988,_0x2f92de,_0x4d79f4,_0x4a2bad,_0x2b8630){const _0x3c58dc=_0xd3747d;super(),this[_0x3c58dc(0x250)]=_0x44a944,this[_0x3c58dc(0x295)]=_0x44ae36,this[_0x3c58dc(0x284)]=_0xf175e,this[_0x3c58dc(0x25d)]=_0x198901,this[_0x3c58dc(0x282)]=_0x3a228e,this[_0x3c58dc(0x21b)]=_0x2942ed,this[_0x3c58dc(0x1fe)]=_0xfd0988,this[_0x3c58dc(0x28c)]=_0x2f92de,this[_0x3c58dc(0x299)]=_0x4d79f4,this[_0x3c58dc(0x229)]=_0x4a2bad,this[_0x3c58dc(0x224)]=_0x2b8630,V(this,_0x3c58dc(0x20f),null),this[_0x3c58dc(0x1f5)]();}[_0xd3747d(0x1f5)](){const _0x359ffd=_0xd3747d;[K,q]['forEach'](_0x54bafd=>this[_0x359ffd(0x223)](_0x3e40d9(this[_0x359ffd(0x250)]['registerCommand'](_0x54bafd)))),this['disposeWithMe'](this[_0x359ffd(0x284)][_0x359ffd(0x2ae)]('HistoryIcon',_0x357cc1)),this[_0x359ffd(0x295)][_0x359ffd(0x279)](ut),this[_0x359ffd(0x223)](this['_commandService'][_0x359ffd(0x253)](async(_0x7bf22e,_0xe85134)=>{const _0x28f9cb=_0x359ffd;if(_0x7bf22e['id']===_0x4a9cc0['id']){let {unitId:_0x2fc530}=_0x7bf22e[_0x28f9cb(0x252)];this['_messageService']['show']({'content':this[_0x28f9cb(0x282)]['t'](_0x28f9cb(0x208)),'type':_0x235979[_0x28f9cb(0x287)],'duration':0x1388});let _0x5d9446=this['_collaborationController'][_0x28f9cb(0x1f0)](_0x2fc530);_0xe85134!=null&&_0xe85134[_0x28f9cb(0x23c)]?this[_0x28f9cb(0x274)](_0x5d9446,async()=>(setTimeout(()=>window[_0x28f9cb(0x244)][_0x28f9cb(0x1eb)]()),!0x0),!0x0):this[_0x28f9cb(0x274)](_0x5d9446,async()=>{const _0x48ff35=_0x28f9cb;let _0x4250ac=this[_0x48ff35(0x229)][_0x48ff35(0x272)](_0x31ee75[_0x48ff35(0x27e)]),_0x1d3004=_0x4250ac==null?void 0x0:_0x4250ac[_0x48ff35(0x1ec)]();if(!_0x1d3004)return!0x1;this['_univerInstanceService'][_0x48ff35(0x2ac)](_0x2fc530);let _0x6e38a8=await this[_0x48ff35(0x299)][_0x48ff35(0x2ad)](_0x2fc530,_0x31ee75['UNIVER_SHEET']);return _0x6e38a8&&_0x6e38a8 instanceof _0x2a7488?(await this[_0x48ff35(0x2a6)](_0x6e38a8,_0x1d3004['getSheetId']()),!0x0):!0x1;});}}));}[_0xd3747d(0x274)](_0x28b756,_0x7d8d01,_0x430d19=!0x1){const _0x55ad57=_0xd3747d;let _0x9f78bb=_0x3fef9b([_0x28b756[_0x55ad57(0x1f1)][_0x55ad57(0x203)],_0x28b756['state$']])[_0x55ad57(0x237)](async([_0x4e3ca6,_0x261f54])=>{const _0x2563a7=_0x55ad57;if(_0x4e3ca6[_0x2563a7(0x1f8)]===_0x473a70[_0x2563a7(0x27a)]&&(_0x261f54==null?void 0x0:_0x261f54['status'])===_0x1c0ec0[_0x2563a7(0x2a7)]&&_0x4e3ca6[_0x2563a7(0x21d)][_0x2563a7(0x266)][_0x2563a7(0x263)](_0xe399ce=>_0xe399ce['id']===_0x4a9cc0['id'])&&await _0x7d8d01()){var _0x550163;this[_0x2563a7(0x25d)][_0x2563a7(0x259)](),_0x9f78bb[_0x2563a7(0x1f3)](),this[_0x2563a7(0x20f)]&&clearTimeout(this[_0x2563a7(0x20f)]),await((_0x550163=this[_0x2563a7(0x28c)])==null?void 0x0:_0x550163[_0x2563a7(0x256)]()),this['_messageService']['removeAll']();}});_0x430d19&&(this[_0x55ad57(0x20f)]=setTimeout(()=>{const _0x1d9751=_0x55ad57;_0x9f78bb[_0x1d9751(0x1f3)](),this['_messageService'][_0x1d9751(0x24d)]({'content':this[_0x1d9751(0x282)]['t'](_0x1d9751(0x2a0)),'type':_0x235979['Error'],'duration':0xbb8});},0x1388));}async[_0xd3747d(0x2a6)](_0x3628fe,_0xf81a26){const _0x27dbed=_0xd3747d;await this[_0x27dbed(0x247)](_0x3628fe,_0xf81a26),_0x3628fe['activeSheet$'][_0x27dbed(0x261)](_0x181a1c(this[_0x27dbed(0x231)]))[_0x27dbed(0x237)](_0x3a3978=>{const _0x4f1e04=_0x27dbed;_0x3a3978&&this[_0x4f1e04(0x22b)](_0x3a3978);}),this[_0x27dbed(0x224)][_0x27dbed(0x262)][_0x27dbed(0x261)](_0x181a1c(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3628fe,_0xf81a26));}[_0xd3747d(0x22b)](_0x209b16,_0x3864ab=!0x1){const _0x7a48f3=_0xd3747d;let _0x2350bb=this['_urlService'][_0x7a48f3(0x271)]('subunit');_0x209b16[_0x7a48f3(0x1fb)]()!==_0x2350bb&&this['_urlService']['setParam'](_0x7a48f3(0x226),_0x209b16[_0x7a48f3(0x1fb)](),_0x3864ab);}async[_0xd3747d(0x247)](_0x554f73,_0x2c4c39){const _0x49b1c6=_0xd3747d;var _0x378e81;if(!_0x2c4c39||!_0x554f73['getSheetBySheetId'](_0x2c4c39)){let _0x3903a0=_0x554f73[_0x49b1c6(0x2a9)]()[0x0],_0x23b7c8=_0x554f73[_0x49b1c6(0x257)](_0x3903a0);if(!_0x23b7c8)return;this[_0x49b1c6(0x22b)](_0x23b7c8,!0x0),await this['_commandService'][_0x49b1c6(0x1fa)](_0x5ddf17['id'],{'unitId':_0x554f73[_0x49b1c6(0x21c)](),'subUnitId':_0x3903a0});return;}((_0x378e81=_0x554f73['getActiveSheet']())==null?void 0x0:_0x378e81[_0x49b1c6(0x1fb)]())!==_0x2c4c39&&await this[_0x49b1c6(0x250)]['executeCommand'](_0x5ddf17['id'],{'unitId':_0x554f73['getUnitId'](),'subUnitId':_0x2c4c39});}};J=U([H(0x0,_0x57aba4),H(0x1,_0x7ea17b),H(0x2,_0x506b77(_0x579cf7)),H(0x3,_0x506b77(G)),H(0x4,_0x506b77(_0x2fd53d)),H(0x5,_0x388624),H(0x6,_0x506b77(_0x403598)),H(0x7,_0x4cecb8),H(0x8,_0x506b77(_0x297f87)),H(0x9,_0x1bbbcc),H(0xa,_0x43f444)],J);const Y=_0xd3747d(0x26c);let X=class extends _0x6c5d76{constructor(_0x5734c8,_0x570db8,_0x574e00,_0x3063b5,_0xe05beb,_0x56e59b,_0x22bf3e,_0x2b852d,_0x4872b1,_0x15ff97){const _0x41d24d=_0xd3747d;super(),this[_0x41d24d(0x282)]=_0x5734c8,this[_0x41d24d(0x229)]=_0x570db8,this['_configService']=_0x574e00,this[_0x41d24d(0x250)]=_0x3063b5,this[_0x41d24d(0x21b)]=_0xe05beb,this[_0x41d24d(0x248)]=_0x56e59b,this[_0x41d24d(0x1f6)]=_0x22bf3e,this[_0x41d24d(0x28f)]=_0x2b852d,this[_0x41d24d(0x228)]=_0x4872b1,this[_0x41d24d(0x2a2)]=_0x15ff97,V(this,_0x41d24d(0x297),new _0xf7d34(null)),V(this,_0x41d24d(0x260),this[_0x41d24d(0x297)][_0x41d24d(0x205)]()),V(this,'_disposableCollection',new _0x58b672()),V(this,_0x41d24d(0x23a),new Map()),V(this,_0x41d24d(0x23b),null),this[_0x41d24d(0x1f5)]();}get[_0xd3747d(0x27b)](){const _0x3405cf=_0xd3747d;return this[_0x3405cf(0x297)][_0x3405cf(0x290)];}[_0xd3747d(0x1f5)](){const _0x1d5728=_0xd3747d;this[_0x1d5728(0x1ff)](),this['_initPlugins']();}['_initContainer'](){const _0x1f326f=_0xd3747d;var _0x2e3972;let _0x2cba4e=(_0x2e3972=this[_0x1f326f(0x29c)][_0x1f326f(0x20b)](_0x1f326f(0x204)))==null?_0x1f326f(0x1ea):_0x2e3972,_0x223f83=document[_0x1f326f(0x268)](_0x2cba4e);if(!_0x223f83)return;let _0x3ded1b=document['createElement'](_0x1f326f(0x281));_0x3ded1b['id']=Y,_0x3ded1b[_0x1f326f(0x1fc)][_0x1f326f(0x292)]=_0x1f326f(0x24e),_0x3ded1b['style'][_0x1f326f(0x225)]='absolute',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x265)]='0',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x258)]='0',_0x3ded1b[_0x1f326f(0x25b)]['width']='100%',_0x3ded1b[_0x1f326f(0x25b)]['height']=_0x1f326f(0x269),_0x3ded1b[_0x1f326f(0x25b)]['zIndex']='49',_0x3ded1b[_0x1f326f(0x25b)][_0x1f326f(0x207)]=_0x1f326f(0x2aa),_0x223f83[_0x1f326f(0x27f)](_0x3ded1b);}['_initPlugins'](){const _0x12477f=_0xd3747d;[[_0x270392],[_0x3b5660,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cc893,null]]}],[_0x458233],[_0x798726,{'override':[[_0x5bff47,null]]}],[_0x56f869,{'hasScroll':!0x1}],[_0x1b9c79],[_0x48f874],[_0x33c86b,{'notExecuteFormula':!0x0}],[_0x4307c2],[_0xfe84d7],[_0x562138],[_0x540b93],[_0x50dd11],[_0x8742fa],[_0x332a69],[_0x15240e],[_0x318883],[_0x3dd0c9],[_0xd9d82f],[_0x1d50f9,{'notExecuteFormula':!0x0}],[_0x4abb8b],[_0x5b59e6],[_0x363dea],[_0x4eb0a1],[_0xf3b184],[_0x3ab737],[_0xc6fc17],[_0xd239],[_0x5310aa],[_0x41cc6c,{'notExecuteFormula':!0x0}],[_0x1ffac4]][_0x12477f(0x2ab)](([_0x5cf5b1,_0xaf3d7])=>this[_0x12477f(0x1ee)](_0x5cf5b1,_0xaf3d7));}[_0xd3747d(0x246)](){const _0x34110f=_0xd3747d;super[_0x34110f(0x246)](),this[_0x34110f(0x259)](),this['_pluginMap'][_0x34110f(0x243)]();}[_0xd3747d(0x1ee)](_0x11c668,_0x226afe,_0x287987){const _0x2b1935=_0xd3747d;if(this[_0x2b1935(0x23a)][_0x2b1935(0x20e)](_0x11c668['pluginName'])&&!_0x287987)throw Error(_0x2b1935(0x221)+_0x11c668[_0x2b1935(0x293)]+_0x2b1935(0x1ed));this[_0x2b1935(0x23a)][_0x2b1935(0x24f)](_0x11c668[_0x2b1935(0x293)],[_0x11c668,_0x226afe]);}[_0xd3747d(0x28b)](){const _0x10f2eb=_0xd3747d;return Array[_0x10f2eb(0x251)](this[_0x10f2eb(0x23a)]['values']());}[_0xd3747d(0x26e)](_0x37845b,_0x26efa9){const _0x247df5=_0xd3747d;let _0x1ccbcb=document[_0x247df5(0x268)](Y);_0x1ccbcb&&(_0x1ccbcb[_0x247df5(0x25b)][_0x247df5(0x207)]='block',this[_0x247df5(0x22e)](_0x37845b,Y,_0x26efa9));}[_0xd3747d(0x259)](){const _0x27d942=_0xd3747d;var _0x21ef22;this[_0x27d942(0x227)]['dispose'](),(_0x21ef22=this[_0x27d942(0x27b)])==null||_0x21ef22[_0x27d942(0x246)](),this[_0x27d942(0x297)]['next'](null);let _0x43f433=document[_0x27d942(0x268)](Y);_0x43f433&&(_0x43f433['style']['display']=_0x27d942(0x2aa),this[_0x27d942(0x23b)]&&(this['_internalWebWorker'][_0x27d942(0x200)](),this[_0x27d942(0x23b)]=null));}[_0xd3747d(0x22e)](_0x36fd80,_0x171a0a,_0x5bcf25){const _0x481bb6=_0xd3747d;var _0xdd4788,_0x13e453,_0x48effa,_0xba84c8;if(this['historyUniver'])return;let _0xb8e56c=new _0x33c36b({'locales':{[this[_0x481bb6(0x282)][_0x481bb6(0x222)]()]:this['_localeService']['getLocales']()},'override':[[_0x25a20c,{'useClass':_0x328722}]]}),_0x244bb1=_0xb8e56c['__getInjector']();this[_0x481bb6(0x223)](this[_0x481bb6(0x2a2)][_0x481bb6(0x217)]['subscribe'](_0x2bd20c=>{const _0x58c342=_0x481bb6;_0x244bb1[_0x58c342(0x218)](_0x56c0a0)[_0x58c342(0x219)](_0x2bd20c);})),this[_0x481bb6(0x223)](this[_0x481bb6(0x2a2)][_0x481bb6(0x22d)][_0x481bb6(0x237)](_0x492bf6=>{const _0x2936f2=_0x481bb6;_0x244bb1[_0x2936f2(0x218)](_0x56c0a0)[_0x2936f2(0x213)](_0x492bf6);})),_0x244bb1[_0x481bb6(0x218)](_0x2fd53d)[_0x481bb6(0x26f)](this[_0x481bb6(0x282)][_0x481bb6(0x222)]()),_0x244bb1['get'](_0x550417)[_0x481bb6(0x206)](_0x249dd6,this[_0x481bb6(0x29c)][_0x481bb6(0x20b)](_0x249dd6));let _0x31d198=this['_configService'][_0x481bb6(0x20b)](_0x1ae143);_0x31d198&&_0xb8e56c[_0x481bb6(0x1ee)](_0x42940f,{'license':_0x31d198['ls']});let _0x4d7fee=(_0xdd4788=this[_0x481bb6(0x29c)][_0x481bb6(0x20b)](_0x481bb6(0x2a1)))==null?void 0x0:_0xdd4788[_0x481bb6(0x238)],_0x7c6541=!!_0x4d7fee;_0x7c6541&&(this[_0x481bb6(0x23b)]=_0x4d7fee instanceof Worker?_0x4d7fee:null,_0xb8e56c[_0x481bb6(0x1ee)](_0x14cb3e,{'workerURL':_0x4d7fee})),this['_pluginMap']['forEach'](([_0x53566e,_0x5bf69b])=>{const _0x32eb17=_0x481bb6;_0xb8e56c[_0x32eb17(0x1ee)](_0x53566e,_0x5bf69b);}),_0xb8e56c['registerPlugin'](_0x55a3ef,{'historyListServerUrl':(_0x13e453=this[_0x481bb6(0x29c)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x13e453[_0x481bb6(0x1e9)],'historyPanelComponentKey':(_0x48effa=this['_configService']['getConfig'](_0x481bb6(0x2a1)))==null?void 0x0:_0x48effa['historyPanelComponentKey'],'historyPanelHidden':(_0xba84c8=this[_0x481bb6(0x29c)]['getConfig'](_0x481bb6(0x2a1)))==null?void 0x0:_0xba84c8[_0x481bb6(0x1e8)]}),_0x244bb1['invoke'](_0x149a83=>{const _0x7269a9=_0x481bb6;this[_0x7269a9(0x289)](_0x149a83,_0x36fd80);}),this[_0x481bb6(0x297)][_0x481bb6(0x22c)](_0xb8e56c);let _0x3eb7e0=_0x244bb1['get'](_0x39e9ab),_0x4f2b0c=this[_0x481bb6(0x220)](_0x36fd80),_0x5e2fb2=()=>{const _0x3ad07e=_0x481bb6;_0x5bcf25?_0x3eb7e0[_0x3ad07e(0x20c)](_0x36fd80,_0x171a0a,_0x4f2b0c,_0x5bcf25):_0x3eb7e0[_0x3ad07e(0x2b0)](_0x36fd80,_0x171a0a,_0x4f2b0c);};if(this[_0x481bb6(0x21b)][_0x481bb6(0x24d)]({'content':this[_0x481bb6(0x282)]['t'](_0x481bb6(0x20a)),'type':_0x235979[_0x481bb6(0x287)]}),_0x7c6541)try{_0x244bb1[_0x481bb6(0x218)](_0x197e95)[_0x481bb6(0x201)]()[_0x481bb6(0x29d)](()=>{_0x5e2fb2();});}catch{_0x5e2fb2();}else _0x5e2fb2();}['_initListener'](_0x3e7ef7,_0x307407){const _0x51fd56=_0xd3747d;let _0x28ef2a=_0x3e7ef7['get'](_0x39e9ab);this[_0x51fd56(0x227)][_0x51fd56(0x202)](_0x28ef2a[_0x51fd56(0x280)][_0x51fd56(0x237)](_0x234251=>{const _0x32cb03=_0x51fd56;switch(_0x234251){case _0x3033a5[_0x32cb03(0x24a)]:this[_0x32cb03(0x28f)][_0x32cb03(0x26a)](),this[_0x32cb03(0x228)][_0x32cb03(0x286)]();break;case _0x3033a5[_0x32cb03(0x241)]:this['_commandService'][_0x32cb03(0x1fa)](q['id']),this[_0x32cb03(0x259)]();break;case _0x3033a5['Error']:this[_0x32cb03(0x259)](),this[_0x32cb03(0x21b)][_0x32cb03(0x24d)]({'content':this[_0x32cb03(0x282)]['t'](_0x32cb03(0x23e)),'type':_0x235979['Error'],'duration':0xbb8});break;default:break;}})),this[_0x51fd56(0x227)][_0x51fd56(0x202)](_0x28ef2a[_0x51fd56(0x29e)][_0x51fd56(0x237)](async _0x48c42a=>{_0x48c42a&&this['_commandService']['executeCommand'](_0x4a9cc0['id'],{'unitId':_0x307407,'revision':_0x48c42a});}));}[_0xd3747d(0x220)](_0x807a0d){const _0x217da1=_0xd3747d;let _0x72c9d5=this[_0x217da1(0x229)][_0x217da1(0x2a3)](_0x807a0d)[_0x217da1(0x28e)]()['map'](_0x996447=>_0x996447[_0x217da1(0x1fb)]()),_0x5bcc7d=new _0x210132(_0x807a0d)['id'],_0x25c279=_0x72c9d5[_0x217da1(0x209)](_0xf1500e=>new _0x1c1e44(_0x807a0d,_0xf1500e)['id']),_0x3da1b6=_0x72c9d5[_0x217da1(0x209)](_0x3b01c4=>this[_0x217da1(0x1f6)][_0x217da1(0x25a)](_0x807a0d,_0x3b01c4)['map'](_0x502801=>new _0x15136c(_0x807a0d,_0x3b01c4,_0x502801['permissionId'])['id']))[_0x217da1(0x264)](),_0x2e8a69=new _0x56ae1e(_0x807a0d)['id'];return this[_0x217da1(0x248)][_0x217da1(0x25c)]([_0x5bcc7d,..._0x25c279,..._0x3da1b6,_0x2e8a69])[_0x217da1(0x25e)](_0x1771c0=>!!_0x1771c0[_0x217da1(0x290)]);}};X=U([H(0x0,_0x506b77(_0x2fd53d)),H(0x1,_0x1bbbcc),H(0x2,_0x550417),H(0x3,_0x57aba4),H(0x4,_0x388624),H(0x5,_0x5dc172),H(0x6,_0x506b77(_0x34e08b)),H(0x7,_0x506b77(_0x4cc893)),H(0x8,_0x506b77(_0x376338)),H(0x9,_0x506b77(_0x56c0a0))],X);let Z=class extends _0x545f8f{constructor(_0xad6b19=z,_0x4b8c2b,_0x39ed14){const _0x16339b=_0xd3747d;super(),this[_0x16339b(0x276)]=_0xad6b19,this[_0x16339b(0x298)]=_0x4b8c2b,this[_0x16339b(0x29c)]=_0x39ed14;let {menu:_0x1053b4,..._0x67b106}=_0x33300f({},z,this[_0x16339b(0x276)]);_0x1053b4&&this[_0x16339b(0x29c)]['setConfig'](_0x16339b(0x26b),_0x1053b4,{'merge':!0x0}),this[_0x16339b(0x29c)][_0x16339b(0x206)](R,_0x67b106),this[_0x16339b(0x276)][_0x16339b(0x275)]&&this[_0x16339b(0x29c)][_0x16339b(0x206)](_0x16339b(0x204),this[_0x16339b(0x276)]['univerContainerId']);}[_0xd3747d(0x236)](){const _0x312513=_0xd3747d;[[G,{'useClass':X}],[J]][_0x312513(0x2ab)](_0x1abbb2=>this[_0x312513(0x298)][_0x312513(0x202)](_0x1abbb2));}['onSteady'](){const _0x25615b=_0xd3747d;this[_0x25615b(0x298)][_0x25615b(0x218)](J);}};V(Z,'type',_0x31ee75[_0xd3747d(0x270)]),V(Z,_0xd3747d(0x293),_0xd3747d(0x235)),V(Z,_0xd3747d(0x29a),st),V(Z,_0xd3747d(0x249),ct),Z=U([_0xeab6e0(_0x42940f),H(0x1,_0x506b77(_0x11bf60)),H(0x2,_0x550417)],Z);let Q=class extends _0x23822b{constructor(_0x2fce87,_0x3ce960,_0x200965,_0x328b0d,_0x28da8c,_0xb81b75,_0x1ecccb,_0x508032,_0x2678b0,_0x5967bd,_0x35c0b8){const _0x2ad92b=_0xd3747d;super(),this[_0x2ad92b(0x250)]=_0x2fce87,this[_0x2ad92b(0x295)]=_0x3ce960,this[_0x2ad92b(0x284)]=_0x200965,this[_0x2ad92b(0x25d)]=_0x328b0d,this[_0x2ad92b(0x282)]=_0x28da8c,this[_0x2ad92b(0x21b)]=_0xb81b75,this[_0x2ad92b(0x1fe)]=_0x1ecccb,this[_0x2ad92b(0x28c)]=_0x508032,this[_0x2ad92b(0x299)]=_0x2678b0,this['_univerInstanceService']=_0x5967bd,this[_0x2ad92b(0x224)]=_0x35c0b8,V(this,_0x2ad92b(0x20f),null),this[_0x2ad92b(0x1f5)]();}[_0xd3747d(0x1f5)](){const _0x312fa5=_0xd3747d;[K,q][_0x312fa5(0x2ab)](_0x5725be=>this[_0x312fa5(0x223)](_0x3e40d9(this[_0x312fa5(0x250)][_0x312fa5(0x245)](_0x5725be)))),this[_0x312fa5(0x223)](this[_0x312fa5(0x284)][_0x312fa5(0x2ae)]('HistoryIcon',_0x357cc1)),this[_0x312fa5(0x295)][_0x312fa5(0x279)](ut),this[_0x312fa5(0x223)](this[_0x312fa5(0x250)][_0x312fa5(0x253)](async(_0xfef9a9,_0x2e6d03)=>{const _0x35cfcb=_0x312fa5;if(_0xfef9a9['id']===_0x4a9cc0['id']){let {unitId:_0x599738}=_0xfef9a9[_0x35cfcb(0x252)];this['_messageService'][_0x35cfcb(0x24d)]({'content':this[_0x35cfcb(0x282)]['t']('editHistory.panel.reverting'),'type':_0x235979[_0x35cfcb(0x287)],'duration':0x1388});let _0x536ca8=this[_0x35cfcb(0x1fe)][_0x35cfcb(0x1f0)](_0x599738);_0x2e6d03!=null&&_0x2e6d03['fromCollab']?this[_0x35cfcb(0x274)](_0x536ca8,async()=>(setTimeout(()=>window[_0x35cfcb(0x244)]['reload']()),!0x0),!0x0):this[_0x35cfcb(0x274)](_0x536ca8,async()=>{const _0x3bd65b=_0x35cfcb;let _0x312b03=this[_0x3bd65b(0x229)][_0x3bd65b(0x272)](_0x31ee75['UNIVER_SHEET']),_0x87f72=_0x312b03==null?void 0x0:_0x312b03['getActiveSheet']();if(!_0x87f72)return!0x1;this['_univerInstanceService'][_0x3bd65b(0x2ac)](_0x599738);let _0x5e6000=await this[_0x3bd65b(0x299)][_0x3bd65b(0x2ad)](_0x599738,_0x31ee75['UNIVER_SHEET']);return _0x5e6000&&_0x5e6000 instanceof _0x2a7488?(await this['_setupSubUnitSync'](_0x5e6000,_0x87f72['getSheetId']()),!0x0):!0x1;});}}));}[_0xd3747d(0x274)](_0x1279eb,_0x22db95,_0x27355f=!0x1){const _0x522a5a=_0xd3747d;let _0x49dd69=_0x3fef9b([_0x1279eb[_0x522a5a(0x1f1)][_0x522a5a(0x203)],_0x1279eb[_0x522a5a(0x2a4)]])[_0x522a5a(0x237)](async([_0x40d65e,_0x1d951a])=>{const _0x51ca58=_0x522a5a;if(_0x40d65e[_0x51ca58(0x1f8)]===_0x473a70[_0x51ca58(0x27a)]&&(_0x1d951a==null?void 0x0:_0x1d951a[_0x51ca58(0x232)])===_0x1c0ec0[_0x51ca58(0x2a7)]&&_0x40d65e[_0x51ca58(0x21d)][_0x51ca58(0x266)][_0x51ca58(0x263)](_0x3e1e32=>_0x3e1e32['id']===_0x4a9cc0['id'])&&await _0x22db95()){var _0x2b1443;this[_0x51ca58(0x25d)][_0x51ca58(0x259)](),_0x49dd69['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x51ca58(0x20f)]),await((_0x2b1443=this[_0x51ca58(0x28c)])==null?void 0x0:_0x2b1443[_0x51ca58(0x256)]());}});_0x27355f&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x11b05a=_0x522a5a;_0x49dd69[_0x11b05a(0x1f3)](),this[_0x11b05a(0x21b)][_0x11b05a(0x24d)]({'content':this['_localeService']['t'](_0x11b05a(0x2a0)),'type':_0x235979['Error'],'duration':0xbb8});},0x1388));}async[_0xd3747d(0x2a6)](_0xfbf23d,_0x1a2eb2){const _0x2d1810=_0xd3747d;await this[_0x2d1810(0x247)](_0xfbf23d,_0x1a2eb2),_0xfbf23d[_0x2d1810(0x24c)][_0x2d1810(0x261)](_0x181a1c(this['dispose$']))[_0x2d1810(0x237)](_0x237358=>{_0x237358&&this['_updateURLWithCurrentState'](_0x237358);}),this[_0x2d1810(0x224)][_0x2d1810(0x262)][_0x2d1810(0x261)](_0x181a1c(this[_0x2d1810(0x231)]))[_0x2d1810(0x237)](()=>this[_0x2d1810(0x247)](_0xfbf23d,_0x1a2eb2));}[_0xd3747d(0x22b)](_0x501bfd,_0x4ad9fa=!0x1){const _0x376bef=_0xd3747d;let _0x4d553c=this['_urlService']['getParam']('subunit');_0x501bfd[_0x376bef(0x1fb)]()!==_0x4d553c&&this[_0x376bef(0x224)][_0x376bef(0x25f)]('subunit',_0x501bfd['getSheetId'](),_0x4ad9fa);}async[_0xd3747d(0x247)](_0x52f74c,_0x4cbf34){const _0x54938e=_0xd3747d;var _0x1c9828;if(!_0x4cbf34||!_0x52f74c[_0x54938e(0x257)](_0x4cbf34)){let _0x34336e=_0x52f74c[_0x54938e(0x2a9)]()[0x0],_0x494b17=_0x52f74c['getSheetBySheetId'](_0x34336e);if(!_0x494b17)return;this[_0x54938e(0x22b)](_0x494b17,!0x0),await this[_0x54938e(0x250)][_0x54938e(0x1fa)](_0x5ddf17['id'],{'unitId':_0x52f74c[_0x54938e(0x21c)](),'subUnitId':_0x34336e});return;}((_0x1c9828=_0x52f74c[_0x54938e(0x1ec)]())==null?void 0x0:_0x1c9828[_0x54938e(0x1fb)]())!==_0x4cbf34&&await this[_0x54938e(0x250)][_0x54938e(0x1fa)](_0x5ddf17['id'],{'unitId':_0x52f74c[_0x54938e(0x21c)](),'subUnitId':_0x4cbf34});}};Q=U([H(0x0,_0x57aba4),H(0x1,_0x7ea17b),H(0x2,_0x506b77(_0x579cf7)),H(0x3,_0x506b77(G)),H(0x4,_0x506b77(_0x2fd53d)),H(0x5,_0x388624),H(0x6,_0x506b77(_0x403598)),H(0x7,_0x4cecb8),H(0x8,_0x506b77(_0x297f87)),H(0x9,_0x1bbbcc),H(0xa,_0x43f444)],Q);let $=class extends _0x545f8f{constructor(_0x5ab643=z,_0x31e475,_0x2bd815){const _0x2d9a4a=_0xd3747d;super(),this[_0x2d9a4a(0x276)]=_0x5ab643,this['_injector']=_0x31e475,this[_0x2d9a4a(0x29c)]=_0x2bd815;let {menu:_0xa082c6,..._0x45529b}=_0x33300f({},z,this[_0x2d9a4a(0x276)]);_0xa082c6&&this['_configService'][_0x2d9a4a(0x206)]('menu',_0xa082c6,{'merge':!0x0}),this['_configService']['setConfig'](R,_0x45529b),this['_config'][_0x2d9a4a(0x275)]&&this[_0x2d9a4a(0x29c)][_0x2d9a4a(0x206)](ot,this[_0x2d9a4a(0x276)][_0x2d9a4a(0x275)]);}[_0xd3747d(0x236)](){const _0x2b8bd4=_0xd3747d;[[G],[Q]][_0x2b8bd4(0x2ab)](_0x1f9e66=>this[_0x2b8bd4(0x298)][_0x2b8bd4(0x202)](_0x1f9e66));}[_0xd3747d(0x211)](){const _0x2cd489=_0xd3747d;this[_0x2cd489(0x298)]['get'](Q);}};V($,_0xd3747d(0x23f),_0x31ee75[_0xd3747d(0x270)]),V($,_0xd3747d(0x293),_0xd3747d(0x215)),V($,_0xd3747d(0x29a),st),V($,_0xd3747d(0x249),ct),$=U([_0xeab6e0(_0x42940f),H(0x1,_0x506b77(_0x11bf60)),H(0x2,_0x550417)],$);export{R as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,ot as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x51e6(_0xcc35e5,_0x35a96d){_0xcc35e5=_0xcc35e5-0x151;const _0x5358a3=_0x5358();let _0x51e6df=_0x5358a3[_0xcc35e5];return _0x51e6df;}function _0x5358(){const _0x520a7e=['UniverProSheetsSparkline','UniverSheetsDataValidationUIPlugin','eventID','current','HistoryLoaderService','univer-history-container','prototype','_menuManagerService','set','_initContainer','_disposableCollection','path','UniverDocsUi','UNIVER_HISTORY_CONTAINER_ID','CollaborationEvent','_localeService','clipPath','UniverSheetsHyperLinkPlugin','symbol','ISidebarService','UniverSheetsShapeUIPlugin','idSuffix','revertRevision$','UniverSheetsMobileUIPlugin','uComp','url(#$1','LocaleService','show','useRef','UniverSheetsFormulaUi','UniverRenderEnginePlugin','setParam','Inject','values','registerPlugin','getMenuHiddenObservable','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_historyUniver$','dispose','clear','getActiveSheet','BUTTON','_localCacheService','_initPlugins','historyUniver$','UniverSheetsNumfmt','reload','triggerLoadVersions','UniverSheetsNumfmtPlugin','WorkbookRecoverHistoryPermission','UniverSheetsPivotTablePlugin','loadUnit','next','UniverEditHistoryViewerMobilePlugin','WorksheetEditPermission','HistoryManagerService','split','UniverDrawingUi','toStringTag','UniverProSheetsShape','_dialogService','Error','171940JJMRkc','IMessageService','AuthzIoHttpService','_init','Injector','state$','UniverFormulaEnginePlugin','100%','UniverSheetsDataValidation','UniverSheetSparklineUIPlugin','1843731gXkJLT','display','@univerjs-pro/edit-history-loader','UNIVER_CONTAINER_ID_KEY','SYNCED','value','univerContainerId','UniverEditHistoryLoaderMobilePlugin','UNIVER_SHEET','UniverSheetsPlugin','terminate','history-icon_clip0_907_281','[HistoryLoaderService]:\x20Plugin\x20','_dataLoaderService','UniverSheetsConditionalFormattingUi','M0\x200H16V16H0z','UniverDrawingPlugin','UniverSheetsFormulaPlugin','CollaborationController','toString','setTheme','_themeService','registerCommand','params','UniverSheetsShapePlugin','onSteady','_urlService','forEach','Disposable','unMountHistoryContent','UniverProSheetsChart','IRemoteInstanceService','assign','top','get','IConfigService','currentColor','onCommandExecuted','UniverSheetsChartPlugin','getCurrentUnitOfType','call','_univerInstanceService','permissionId','edit-history-loader.config','UniverSheetsTable','1261224PuodKg','univerjs-icon\x20univerjs-icon-','getUnitId','UniverSheetsHyperLink','UniverDrawing','_updateURLWithCurrentState','ICommandService','_messageService','getSheetBySheetId','getElementById','triggerCustomVersions','UNIVER_CONTAINER_ID','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverSheetsHyperLinkUIPlugin','style','darkMode$','_setupSubUnitSync','type','closeAll','replace','attrs','zIndex','ThemeService','mergeMenu','getCollabEntity','UniverSheetsDataValidationPlugin','status$','UniverSheetsUIPlugin','_handleRevertAcknowledgement','getCurrentRangeDisable$','Entered','history-icon','getSheetCommandTarget','UniverCore','CollaborationStatus','setDarkMode','createElement','IURLService','RibbonStartGroup','historyListServerUrl','_updateSubUnitFromURLParams','exhaustSavingTask','invoke','UniverProSheetsSparklineUi','event$','fill','univer-container','DataLoaderService','UniverRPCMainThreadPlugin','onStarting','UniverSheetsDrawing','React','DependentOn','http://www.w3.org/2000/svg','UniverSheetsDrawingUIPlugin','RangeProtectionRuleModel','disposeUnit','iterator','editHistory.panel.title','UniverSheets','_injector','toPrimitive','WorkbookViewHistoryPermission','DisposableCollection','UniverSheetsConditionalFormatting','_checkCanRevert','height','UniverDataValidation','\x20has\x20been\x20registered.','add','OPERATION','then','absolute','svg','combineLatest','_configService','_selectionProtectionRuleModel','UniverProEditHistoryLoader','UniverDataValidationPlugin','status','random','IDialogService','use','executeCommand','getUnhiddenWorksheets','RangeProtectionPermissionEditPoint','UNIVER_UNKNOWN','takeUntil','univer-history-container-mobile','__getInjector','decorate','240989enxger','dispose$','UniverDrawingUIPlugin','amd','0\x200\x2016\x2016','editHistory.panel.listFetchError','UniverIcon','UniverSheetsFilterUi','map','object','UniverLicensePlugin','168mgPokw','pluginName','univer.operation.toggle-edit-history','Exited','width','packageName','UniverSheetsDrawingUi','334BxvInL','mutations','RxDisposable','unsubscribe','register','flat','_pluginMap','_commandService','WorkbookEditablePermission','MobileHistoryLoaderService','editHistory.panel.revertFailed','MessageType','UniverSheetSparklinePlugin','activeSheet$','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','Loading','IMenuManagerService','HistoryIcon','urlChange$','Module','CommandType','UniverProSheetsPivot','white','getSubunitRuleList','432016MVSPeW','getAllPlugins','close','UniverNetworkPlugin','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','getConfig','BehaviorSubject','UniverDesign','data','_permissionService','_sidebarService','fromCollab','every','subscribe','UniverSheetsFormulaUIPlugin','displayName','UniverInstanceType','HistoryModeStatus','getCurrentLocale','length','trim','getParam','version','setConfig','session','editHistory.info.initializing','currentTheme$','none','UniverNetwork','substring','left','UniverDocsPlugin','_initListener','_collaborationController','asObservable','entries','_internalWebWorker','_componentManager','UniverSheetsConditionalFormattingPlugin','merge','composePermission','CHANGESET_ACK','tag','UniverEditHistoryLoaderPlugin','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','UniverProCollaborationClient','children','UniverSheetsChartUIPlugin','removeAll','location','1em','UniverCollaborationPlugin','MenuItemType','colorChannel1','from','_config','2743548UQMLLR','setLocale','disposeWithMe','defs','_initUniver','pipe','UniverSheetsDataValidationUi','mask','url(#history-icon_clip0_907_281)','univer.operation.exit-edit-history','position','UniverProSheetsShapeUi','RevertRevisionMutation','UniverEditHistoryViewerPlugin','function','8634GZoOqP','dataset','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','mountHistoryContent','UniverProSheetsChartUi','getSheets','div','forwardRef','UniverSheetsFormula','SetWorksheetActivateCommand','UniverUi','string','getUnit','UniverSheetsTablePlugin','whenReady','IUniverInstanceService','some','LS_CONFIG_KEY','has','defineProperty','history-container','historyPanelComponentKey','UniverSheetsFilterUIPlugin','_revertErrorTimer','historyAIassistantEnabled','getSheetId','UniverUIPlugin','UniverSheetsFilterPlugin','_historyManagerService','UniverSheetsHyperLinkUi','UniverDocsUIPlugin','ILocalCacheService','Plugin','subunit','historyUniver','Workbook','default','Univer','UniverEngineRender'];_0x5358=function(){return _0x520a7e;};return _0x5358();}(function(_0x45736b,_0x2e65c7){const _0x5b65bb=_0x51e6,_0x518510=_0x45736b();while(!![]){try{const _0x2f0908=-parseInt(_0x5b65bb(0x24c))/0x1+-parseInt(_0x5b65bb(0x234))/0x2*(-parseInt(_0x5b65bb(0x293))/0x3)+parseInt(_0x5b65bb(0x284))/0x4+parseInt(_0x5b65bb(0x190))/0x5+parseInt(_0x5b65bb(0x1c7))/0x6+-parseInt(_0x5b65bb(0x222))/0x7*(parseInt(_0x5b65bb(0x22d))/0x8)+parseInt(_0x5b65bb(0x19a))/0x9;if(_0x2f0908===_0x2e65c7)break;else _0x518510['push'](_0x518510['shift']());}catch(_0x55110d){_0x518510['push'](_0x518510['shift']());}}}(_0x5358,0x708b5),function(_0x1ef50f,_0xf2135b){const _0x2f922c=_0x51e6;typeof exports==_0x2f922c(0x22b)&&typeof module<'u'?_0xf2135b(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==_0x2f922c(0x292)&&define[_0x2f922c(0x225)]?define(_0x2f922c(0x250)[_0x2f922c(0x18a)]('.'),_0xf2135b):(_0x1ef50f=typeof globalThis<'u'?globalThis:_0x1ef50f||self,_0xf2135b(_0x1ef50f[_0x2f922c(0x214)]={},_0x1ef50f[_0x2f922c(0x1e8)],_0x1ef50f[_0x2f922c(0x202)],_0x1ef50f['UniverProCollaboration'],_0x1ef50f[_0x2f922c(0x279)],_0x1ef50f['UniverProEditHistoryViewer'],_0x1ef50f['UniverProLicense'],_0x1ef50f[_0x2f922c(0x1b8)],_0x1ef50f[_0x2f922c(0x297)],_0x1ef50f[_0x2f922c(0x249)],_0x1ef50f[_0x2f922c(0x18d)],_0x1ef50f[_0x2f922c(0x28f)],_0x1ef50f[_0x2f922c(0x152)],_0x1ef50f[_0x2f922c(0x1f2)],_0x1ef50f[_0x2f922c(0x20a)],_0x1ef50f[_0x2f922c(0x253)],_0x1ef50f['UniverDocs'],_0x1ef50f[_0x2f922c(0x15e)],_0x1ef50f[_0x2f922c(0x1cb)],_0x1ef50f[_0x2f922c(0x18b)],_0x1ef50f['UniverEngineFormula'],_0x1ef50f[_0x2f922c(0x151)],_0x1ef50f[_0x2f922c(0x268)],_0x1ef50f['UniverRpc'],_0x1ef50f[_0x2f922c(0x207)],_0x1ef50f[_0x2f922c(0x1a8)],_0x1ef50f[_0x2f922c(0x198)],_0x1ef50f[_0x2f922c(0x28a)],_0x1ef50f[_0x2f922c(0x1f9)],_0x1ef50f[_0x2f922c(0x233)],_0x1ef50f['UniverSheetsFilter'],_0x1ef50f[_0x2f922c(0x229)],_0x1ef50f[_0x2f922c(0x29b)],_0x1ef50f[_0x2f922c(0x16f)],_0x1ef50f[_0x2f922c(0x1ca)],_0x1ef50f[_0x2f922c(0x2b0)],_0x1ef50f[_0x2f922c(0x17f)],_0x1ef50f[_0x2f922c(0x1c6)],_0x1ef50f['UniverSheetsUi'],_0x1ef50f[_0x2f922c(0x29d)],_0x1ef50f['rxjs'],_0x1ef50f['UniverProCollaborationClientUi'],_0x1ef50f[_0x2f922c(0x1fa)]));}(this,function(_0x599ba0,_0x180e52,_0x4312ea,_0x3a6ac9,_0x4bc981,_0x3352b4,_0x4e23fa,_0x553827,_0x4682bd,_0x2dd7d2,_0x9209ea,_0x202b2b,_0x21a66c,_0x5ba28e,_0x23732b,_0x21c4b8,_0x501d88,_0x34b124,_0x51bbe3,_0x1f769d,_0x15b9f5,_0x428760,_0xedc498,_0x2879fc,_0x3981f9,_0x55b145,_0x350b1c,_0x5c8651,_0x13190c,_0x409da3,_0x47eb46,_0xb26acd,_0x1a0396,_0x2e4dad,_0x4fc741,_0x1384b3,_0x2c5ed4,_0xdb662c,_0x44ffac,_0x2d553a,_0x58a366,_0x4fdfa1,_0x132c25){const _0xc53b5c=_0x51e6;Object[_0xc53b5c(0x2a6)](_0x599ba0,Symbol[_0xc53b5c(0x18c)],{'value':_0xc53b5c(0x247)});let _0x8ece11=_0xc53b5c(0x1c5);Symbol(_0x8ece11);let _0x54a957={};function _0x3fd026(_0x3b5519){'@babel/helpers - typeof';const _0x5374fd=_0xc53b5c;return _0x3fd026=typeof Symbol==_0x5374fd(0x292)&&typeof Symbol[_0x5374fd(0x200)]==_0x5374fd(0x164)?function(_0x4101f6){return typeof _0x4101f6;}:function(_0x1aafaa){const _0x622c56=_0x5374fd;return _0x1aafaa&&typeof Symbol==_0x622c56(0x292)&&_0x1aafaa['constructor']===Symbol&&_0x1aafaa!==Symbol[_0x622c56(0x158)]?_0x622c56(0x164):typeof _0x1aafaa;},_0x3fd026(_0x3b5519);}function _0x2f6a17(_0x488813,_0x4e2eff){const _0x28da5f=_0xc53b5c;if(_0x3fd026(_0x488813)!=_0x28da5f(0x22b)||!_0x488813)return _0x488813;var _0x2a976d=_0x488813[Symbol[_0x28da5f(0x204)]];if(_0x2a976d!==void 0x0){var _0x14c6ea=_0x2a976d[_0x28da5f(0x1c2)](_0x488813,_0x4e2eff||_0x28da5f(0x2b7));if(_0x3fd026(_0x14c6ea)!=_0x28da5f(0x22b))return _0x14c6ea;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4e2eff===_0x28da5f(0x29e)?String:Number)(_0x488813);}function _0x2f7141(_0x25137e){var _0x55be51=_0x2f6a17(_0x25137e,'string');return _0x3fd026(_0x55be51)=='symbol'?_0x55be51:_0x55be51+'';}function _0x4b7861(_0x185157,_0x4b3b83,_0x3c9e53){const _0x32c269=_0xc53b5c;return(_0x4b3b83=_0x2f7141(_0x4b3b83))in _0x185157?Object[_0x32c269(0x2a6)](_0x185157,_0x4b3b83,{'value':_0x3c9e53,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x185157[_0x4b3b83]=_0x3c9e53,_0x185157;}function _0x5f10e5(_0x1beb86,_0xdc64d6){return function(_0x320f44,_0x21fc02){_0xdc64d6(_0x320f44,_0x21fc02,_0x1beb86);};}function _0x13dd99(_0x1152a2,_0x381f67,_0x4d9754,_0x29f8de){const _0x49c9ae=_0xc53b5c;var _0x109a07=arguments[_0x49c9ae(0x25f)],_0x6a201b=_0x109a07<0x3?_0x381f67:_0x29f8de===null?_0x29f8de=Object['getOwnPropertyDescriptor'](_0x381f67,_0x4d9754):_0x29f8de,_0x355abb;if(typeof Reflect==_0x49c9ae(0x22b)&&typeof Reflect[_0x49c9ae(0x221)]==_0x49c9ae(0x292))_0x6a201b=Reflect[_0x49c9ae(0x221)](_0x1152a2,_0x381f67,_0x4d9754,_0x29f8de);else{for(var _0x44c7de=_0x1152a2[_0x49c9ae(0x25f)]-0x1;_0x44c7de>=0x0;_0x44c7de--)(_0x355abb=_0x1152a2[_0x44c7de])&&(_0x6a201b=(_0x109a07<0x3?_0x355abb(_0x6a201b):_0x109a07>0x3?_0x355abb(_0x381f67,_0x4d9754,_0x6a201b):_0x355abb(_0x381f67,_0x4d9754))||_0x6a201b);}return _0x109a07>0x3&&_0x6a201b&&Object[_0x49c9ae(0x2a6)](_0x381f67,_0x4d9754,_0x6a201b),_0x6a201b;}let _0x5eb995=_0xc53b5c(0x1d2),_0x3dd095=_0xc53b5c(0x157),_0x2e5a75=class extends _0x180e52[_0xc53b5c(0x1b6)]{constructor(_0x376394,_0x9391ab,_0x41ce50,_0x3c8820,_0x3ee6b4,_0x15999d,_0x570d1e,_0x4256c2,_0x4c5451,_0x563b7d){const _0x4bc140=_0xc53b5c;super(),this['_localeService']=_0x376394,this[_0x4bc140(0x1c3)]=_0x9391ab,this[_0x4bc140(0x212)]=_0x41ce50,this['_commandService']=_0x3c8820,this[_0x4bc140(0x1ce)]=_0x3ee6b4,this[_0x4bc140(0x255)]=_0x15999d,this['_selectionProtectionRuleModel']=_0x570d1e,this['_dialogService']=_0x4256c2,this[_0x4bc140(0x256)]=_0x4c5451,this[_0x4bc140(0x1af)]=_0x563b7d,_0x4b7861(this,_0x4bc140(0x177),new _0x58a366[(_0x4bc140(0x252))](null)),_0x4b7861(this,_0x4bc140(0x17e),this['_historyUniver$']['asObservable']()),_0x4b7861(this,_0x4bc140(0x15c),new _0x180e52[(_0x4bc140(0x206))]()),_0x4b7861(this,_0x4bc140(0x23a),new Map()),_0x4b7861(this,_0x4bc140(0x270),null),this['_init']();}get[_0xc53b5c(0x2b5)](){const _0x1caa8c=_0xc53b5c;return this[_0x1caa8c(0x177)][_0x1caa8c(0x19f)];}[_0xc53b5c(0x193)](){const _0x3d2a35=_0xc53b5c;this['_initContainer'](),this[_0x3d2a35(0x17d)]();}[_0xc53b5c(0x15b)](){const _0xa09e2e=_0xc53b5c;var _0x181515;let _0x344d8c=(_0x181515=this[_0xa09e2e(0x212)][_0xa09e2e(0x251)]('UNIVER_CONTAINER_ID'))==null?_0xa09e2e(0x1f5):_0x181515,_0x59a73a=document[_0xa09e2e(0x1d0)](_0x344d8c);if(!_0x59a73a)return;let _0x28ef97=document['createElement'](_0xa09e2e(0x299));_0x28ef97['id']=_0x3dd095,_0x28ef97[_0xa09e2e(0x294)][_0xa09e2e(0x16a)]='history-container',_0x28ef97[_0xa09e2e(0x1d5)][_0xa09e2e(0x28e)]=_0xa09e2e(0x20f),_0x28ef97['style'][_0xa09e2e(0x1bb)]='0',_0x28ef97['style']['left']='0',_0x28ef97[_0xa09e2e(0x1d5)][_0xa09e2e(0x231)]=_0xa09e2e(0x197),_0x28ef97[_0xa09e2e(0x1d5)][_0xa09e2e(0x209)]=_0xa09e2e(0x197),_0x28ef97[_0xa09e2e(0x1d5)]['zIndex']='49',_0x28ef97[_0xa09e2e(0x1d5)][_0xa09e2e(0x19b)]=_0xa09e2e(0x267),_0x59a73a['appendChild'](_0x28ef97);}[_0xc53b5c(0x17d)](){const _0xb2adb5=_0xc53b5c;[[_0x428760[_0xb2adb5(0x170)]],[_0x2d553a[_0xb2adb5(0x2ad)],{'container':_0x3dd095,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2d553a[_0xb2adb5(0x218)],null]]}],[_0xedc498[_0xb2adb5(0x24f)]],[_0x51bbe3['UniverDrawingPlugin'],{'override':[[_0x51bbe3['IImageIoService'],null]]}],[_0x501d88['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x34b124['UniverDocsUIPlugin']],[_0x2c5ed4[_0xb2adb5(0x182)]],[_0x4312ea[_0xb2adb5(0x1a3)],{'notExecuteFormula':!0x0}],[_0x44ffac[_0xb2adb5(0x1e2)]],[_0x1a0396[_0xb2adb5(0x1ab)]],[_0x2e4dad[_0xb2adb5(0x25a)]],[_0x3a6ac9[_0xb2adb5(0x27f)]],[_0x47eb46[_0xb2adb5(0x2ae)]],[_0xb26acd[_0xb2adb5(0x2a9)]],[_0x3981f9['UniverSheetsConditionalFormattingPlugin']],[_0x55b145['UniverSheetsConditionalFormattingUIPlugin']],[_0x4fc741[_0xb2adb5(0x163)]],[_0x1384b3[_0xb2adb5(0x1d4)]],[_0x23732b[_0xb2adb5(0x215)]],[_0x350b1c[_0xb2adb5(0x1e0)]],[_0x5c8651[_0xb2adb5(0x153)]],[_0x15b9f5[_0xb2adb5(0x196)],{'notExecuteFormula':!0x0}],[_0x1f769d[_0xb2adb5(0x224)]],[_0x13190c['UniverSheetsDrawingPlugin']],[_0x409da3[_0xb2adb5(0x1fd)]],[_0x21a66c[_0xb2adb5(0x240)]],[_0x5ba28e[_0xb2adb5(0x199)]],[_0x553827[_0xb2adb5(0x1c0)]],[_0x4682bd[_0xb2adb5(0x27b)]],[_0x9209ea[_0xb2adb5(0x1b2)]],[_0x202b2b[_0xb2adb5(0x166)]],[_0x2dd7d2[_0xb2adb5(0x184)],{'notExecuteFormula':!0x0}],[_0xdb662c[_0xb2adb5(0x2a0)]]][_0xb2adb5(0x1b5)](([_0xb16828,_0x27e61b])=>this[_0xb2adb5(0x174)](_0xb16828,_0x27e61b));}[_0xc53b5c(0x178)](){const _0x5acb2b=_0xc53b5c;super[_0x5acb2b(0x178)](),this[_0x5acb2b(0x1b7)](),this[_0x5acb2b(0x23a)][_0x5acb2b(0x179)]();}[_0xc53b5c(0x174)](_0x5512a1,_0x3439ee,_0x492c88){const _0xc4f415=_0xc53b5c;if(this['_pluginMap'][_0xc4f415(0x2a5)](_0x5512a1['pluginName'])&&!_0x492c88)throw Error(_0xc4f415(0x1a6)+_0x5512a1[_0xc4f415(0x22e)]+_0xc4f415(0x20b));this[_0xc4f415(0x23a)]['set'](_0x5512a1[_0xc4f415(0x22e)],[_0x5512a1,_0x3439ee]);}['getAllPlugins'](){const _0x109846=_0xc53b5c;return Array[_0x109846(0x282)](this[_0x109846(0x23a)]['values']());}[_0xc53b5c(0x296)](_0x3b3eb0,_0x265bb4){const _0x1b7c36=_0xc53b5c;let _0x20e098=document[_0x1b7c36(0x1d0)](_0x3dd095);_0x20e098&&(_0x20e098[_0x1b7c36(0x1d5)][_0x1b7c36(0x19b)]='block',this[_0x1b7c36(0x288)](_0x3b3eb0,_0x3dd095,_0x265bb4));}[_0xc53b5c(0x1b7)](){const _0x2c382e=_0xc53b5c;var _0x75f8b0;this[_0x2c382e(0x15c)]['dispose'](),(_0x75f8b0=this[_0x2c382e(0x2b5)])==null||_0x75f8b0[_0x2c382e(0x178)](),this[_0x2c382e(0x177)][_0x2c382e(0x186)](null);let _0x22e5ab=document[_0x2c382e(0x1d0)](_0x3dd095);_0x22e5ab&&(_0x22e5ab[_0x2c382e(0x1d5)]['display']=_0x2c382e(0x267),this[_0x2c382e(0x270)]&&(this[_0x2c382e(0x270)]['terminate'](),this[_0x2c382e(0x270)]=null));}[_0xc53b5c(0x288)](_0x25bcbb,_0x2731c4,_0x28d1c8){const _0x1da40c=_0xc53b5c;var _0x447327,_0x491912,_0x5025a9,_0x513b33,_0x5efa3e;if(this['historyUniver'])return;let _0x2c171e=new _0x180e52[(_0x1da40c(0x2b8))]({'locales':{[this[_0x1da40c(0x161)]['getCurrentLocale']()]:this[_0x1da40c(0x161)]['getLocales']()},'override':[[_0x180e52['IAuthzIoService'],{'useClass':_0x4bc981[_0x1da40c(0x192)]}]]}),_0x551735=_0x2c171e[_0x1da40c(0x220)]();this[_0x1da40c(0x286)](this['_themeService'][_0x1da40c(0x1d6)]['subscribe'](_0x4fa3f5=>{const _0x2ffe9e=_0x1da40c;_0x551735[_0x2ffe9e(0x1bc)](_0x180e52[_0x2ffe9e(0x1dd)])[_0x2ffe9e(0x1ea)](_0x4fa3f5);})),this[_0x1da40c(0x286)](this['_themeService'][_0x1da40c(0x266)][_0x1da40c(0x259)](_0x832db6=>{const _0x229715=_0x1da40c;_0x551735[_0x229715(0x1bc)](_0x180e52[_0x229715(0x1dd)])[_0x229715(0x1ae)](_0x832db6);})),_0x551735[_0x1da40c(0x1bc)](_0x180e52['LocaleService'])[_0x1da40c(0x285)](this[_0x1da40c(0x161)][_0x1da40c(0x25e)]()),_0x551735['get'](_0x180e52[_0x1da40c(0x1bd)])[_0x1da40c(0x263)](_0x4bc981[_0x1da40c(0x176)],this[_0x1da40c(0x212)][_0x1da40c(0x251)](_0x4bc981[_0x1da40c(0x176)]));let _0x4d74ff=this[_0x1da40c(0x212)][_0x1da40c(0x251)](_0x4e23fa[_0x1da40c(0x2a4)]);_0x4d74ff&&_0x2c171e[_0x1da40c(0x174)](_0x4e23fa[_0x1da40c(0x22c)],{'license':_0x4d74ff['ls']});let _0x304c7b=(_0x447327=this['_configService']['getConfig'](_0x1da40c(0x1c5)))==null?void 0x0:_0x447327['workerURL'],_0x1bb228=!!_0x304c7b;_0x1bb228&&(this[_0x1da40c(0x270)]=_0x304c7b instanceof Worker?_0x304c7b:null,_0x2c171e[_0x1da40c(0x174)](_0x2879fc[_0x1da40c(0x1f7)],{'workerURL':_0x304c7b})),this[_0x1da40c(0x23a)][_0x1da40c(0x1b5)](([_0x2aa089,_0x109cf1])=>{_0x2c171e['registerPlugin'](_0x2aa089,_0x109cf1);}),_0x2c171e['registerPlugin'](_0x3352b4[_0x1da40c(0x291)],{'historyListServerUrl':(_0x491912=this[_0x1da40c(0x212)][_0x1da40c(0x251)](_0x1da40c(0x1c5)))==null?void 0x0:_0x491912['historyListServerUrl'],'historyPanelComponentKey':(_0x5025a9=this['_configService'][_0x1da40c(0x251)](_0x1da40c(0x1c5)))==null?void 0x0:_0x5025a9[_0x1da40c(0x2a8)],'historyPanelHidden':(_0x513b33=this[_0x1da40c(0x212)]['getConfig'](_0x1da40c(0x1c5)))==null?void 0x0:_0x513b33['historyPanelHidden'],'historyAIassistantEnabled':(_0x5efa3e=this[_0x1da40c(0x212)][_0x1da40c(0x251)](_0x1da40c(0x1c5)))==null?void 0x0:_0x5efa3e[_0x1da40c(0x2ab)]}),_0x551735[_0x1da40c(0x1f1)](_0xaeb08d=>{this['_initListener'](_0xaeb08d,_0x25bcbb);}),this['_historyUniver$'][_0x1da40c(0x186)](_0x2c171e);let _0x9aa8cc=_0x551735[_0x1da40c(0x1bc)](_0x3352b4['HistoryManagerService']),_0x3a7cce=this[_0x1da40c(0x208)](_0x25bcbb),_0x25aea0=()=>{const _0x361201=_0x1da40c;_0x28d1c8?_0x9aa8cc[_0x361201(0x1d1)](_0x25bcbb,_0x2731c4,_0x3a7cce,_0x28d1c8):_0x9aa8cc[_0x361201(0x181)](_0x25bcbb,_0x2731c4,_0x3a7cce);};if(this[_0x1da40c(0x1ce)][_0x1da40c(0x16d)]({'content':this['_localeService']['t'](_0x1da40c(0x265)),'type':_0x21c4b8[_0x1da40c(0x23f)][_0x1da40c(0x243)]}),_0x1bb228)try{_0x551735[_0x1da40c(0x1bc)](_0x2879fc[_0x1da40c(0x1b9)])['whenReady']()['then'](()=>{_0x25aea0();});}catch{_0x25aea0();}else _0x25aea0();}[_0xc53b5c(0x26c)](_0x158cda,_0x29f508){const _0x2b5560=_0xc53b5c;let _0x337652=_0x158cda[_0x2b5560(0x1bc)](_0x3352b4[_0x2b5560(0x189)]);this[_0x2b5560(0x15c)][_0x2b5560(0x20c)](_0x337652[_0x2b5560(0x1e1)][_0x2b5560(0x259)](_0x57425f=>{const _0x522259=_0x2b5560;switch(_0x57425f){case _0x3352b4['HistoryModeStatus'][_0x522259(0x1e5)]:this['_dialogService'][_0x522259(0x1d9)](),this[_0x522259(0x256)][_0x522259(0x24e)]();break;case _0x3352b4[_0x522259(0x25d)][_0x522259(0x230)]:this[_0x522259(0x23b)]['executeCommand'](_0x46d9bc['id']),this[_0x522259(0x1b7)]();break;case _0x3352b4[_0x522259(0x25d)][_0x522259(0x18f)]:this['unMountHistoryContent'](),this[_0x522259(0x1ce)][_0x522259(0x16d)]({'content':this['_localeService']['t']('editHistory.panel.listFetchError'),'type':_0x21c4b8[_0x522259(0x23f)][_0x522259(0x18f)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x2b5560(0x20c)](_0x337652['revertRevision$']['subscribe'](async _0x1df5fd=>{const _0x2f9564=_0x2b5560;_0x1df5fd&&this[_0x2f9564(0x23b)][_0x2f9564(0x21a)](_0x3a6ac9['RevertRevisionMutation']['id'],{'unitId':_0x29f508,'revision':_0x1df5fd});}));}['_checkCanRevert'](_0xd1b92e){const _0x39bb28=_0xc53b5c;let _0x378c53=this[_0x39bb28(0x1c3)][_0x39bb28(0x29f)](_0xd1b92e)[_0x39bb28(0x298)]()[_0x39bb28(0x22a)](_0x5a67be=>_0x5a67be[_0x39bb28(0x2ac)]()),_0xd6f87f=new _0x4312ea[(_0x39bb28(0x23c))](_0xd1b92e)['id'],_0x348e94=_0x378c53['map'](_0x3afce4=>new _0x4312ea[(_0x39bb28(0x188))](_0xd1b92e,_0x3afce4)['id']),_0x2de5b0=_0x378c53[_0x39bb28(0x22a)](_0x3067b7=>this[_0x39bb28(0x213)][_0x39bb28(0x24b)](_0xd1b92e,_0x3067b7)[_0x39bb28(0x22a)](_0x1cf07c=>new _0x4312ea[(_0x39bb28(0x21c))](_0xd1b92e,_0x3067b7,_0x1cf07c[_0x39bb28(0x1c4)])['id']))[_0x39bb28(0x239)](),_0x516694=new _0x4312ea[(_0x39bb28(0x183))](_0xd1b92e)['id'];return this[_0x39bb28(0x255)][_0x39bb28(0x274)]([_0xd6f87f,..._0x348e94,..._0x2de5b0,_0x516694])[_0x39bb28(0x258)](_0x101342=>!!_0x101342[_0x39bb28(0x19f)]);}};_0x2e5a75=_0x13dd99([_0x5f10e5(0x0,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x180e52['LocaleService'])),_0x5f10e5(0x1,_0x180e52[_0xc53b5c(0x2a2)]),_0x5f10e5(0x2,_0x180e52[_0xc53b5c(0x1bd)]),_0x5f10e5(0x3,_0x180e52['ICommandService']),_0x5f10e5(0x4,_0x2d553a[_0xc53b5c(0x191)]),_0x5f10e5(0x5,_0x180e52['IPermissionService']),_0x5f10e5(0x6,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x4312ea[_0xc53b5c(0x1fe)])),_0x5f10e5(0x7,(0x0,_0x180e52['Inject'])(_0x2d553a[_0xc53b5c(0x218)])),_0x5f10e5(0x8,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x2d553a[_0xc53b5c(0x165)])),_0x5f10e5(0x9,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x180e52[_0xc53b5c(0x1dd)]))],_0x2e5a75);let _0x2e6e0e={'id':_0xc53b5c(0x22f),'type':_0x180e52['CommandType'][_0xc53b5c(0x20d)],'handler':_0xbaffa2=>{const _0x13378d=_0xc53b5c;let _0x1280a9=_0xbaffa2[_0x13378d(0x1bc)](_0x2e5a75),{unitId:_0x5e67d5}=(0x0,_0x4312ea[_0x13378d(0x1e7)])(_0xbaffa2[_0x13378d(0x1bc)](_0x180e52['IUniverInstanceService']))||{};return _0x5e67d5?(_0x1280a9[_0x13378d(0x296)](_0x5e67d5),!0x0):!0x1;}},_0x46d9bc={'id':_0xc53b5c(0x28d),'type':_0x180e52[_0xc53b5c(0x248)][_0xc53b5c(0x20d)],'handler':()=>!0x0};var _0x58ec6a=_0xc53b5c(0x19c),_0x33d019='0.23.0';function _0x3b3075({ref:_0x30bf9c,..._0x537ca8}){const _0x9f7794=_0xc53b5c;let {icon:_0x5b8cb4,id:_0x505c57,className:_0x4cd28c,extend:_0x3897ed,..._0x22f965}=_0x537ca8,_0x338655=(_0x9f7794(0x1c8)+_0x505c57+'\x20'+(_0x4cd28c||''))[_0x9f7794(0x260)](),_0x4ff518=(0x0,_0x132c25[_0x9f7794(0x16e)])('_'+_0x4b7a47());return _0x369a61(_0x5b8cb4,''+_0x505c57,{'defIds':_0x5b8cb4['defIds'],'idSuffix':_0x4ff518[_0x9f7794(0x155)]},{'ref':_0x30bf9c,'className':_0x338655,..._0x22f965},_0x3897ed);}function _0x369a61(_0x19776a,_0x5dcde5,_0x5b809e,_0x30ce15,_0x3acab6){const _0x2ecffd=_0xc53b5c;return(0x0,_0x132c25[_0x2ecffd(0x1eb)])(_0x19776a[_0x2ecffd(0x276)],{'key':_0x5dcde5,..._0x5edd6d(_0x19776a,_0x5b809e,_0x3acab6),..._0x30ce15},(_0x3dbd33(_0x19776a,_0x5b809e)[_0x2ecffd(0x27a)]||[])[_0x2ecffd(0x22a)]((_0x3aa2a2,_0x2ca472)=>_0x369a61(_0x3aa2a2,_0x5dcde5+'-'+_0x19776a[_0x2ecffd(0x276)]+'-'+_0x2ca472,_0x5b809e,void 0x0,_0x3acab6)));}function _0x5edd6d(_0x16d49d,_0x10da38,_0x508696){const _0x1deccc=_0xc53b5c;let _0x9d6ca={..._0x16d49d[_0x1deccc(0x1db)]};_0x508696!=null&&_0x508696[_0x1deccc(0x281)]&&_0x9d6ca[_0x1deccc(0x1f4)]===_0x1deccc(0x281)&&(_0x9d6ca[_0x1deccc(0x1f4)]=_0x508696[_0x1deccc(0x281)]),_0x16d49d[_0x1deccc(0x276)]===_0x1deccc(0x28b)&&_0x9d6ca['id']&&(_0x9d6ca['id']+=_0x10da38[_0x1deccc(0x167)]),Object[_0x1deccc(0x26f)](_0x9d6ca)['forEach'](([_0x58a88c,_0x46d1dc])=>{const _0x4f6b97=_0x1deccc;_0x58a88c===_0x4f6b97(0x28b)&&typeof _0x46d1dc=='string'&&(_0x9d6ca[_0x58a88c]=_0x46d1dc['replace'](/url\(#(.*)\)/,'url(#$1'+_0x10da38[_0x4f6b97(0x167)]+')'));});let {defIds:_0x548b08}=_0x10da38;return!_0x548b08||_0x548b08[_0x1deccc(0x25f)]===0x0?_0x9d6ca:(_0x16d49d[_0x1deccc(0x276)]===_0x1deccc(0x219)&&_0x9d6ca['xlink:href']&&(_0x9d6ca['xlink:href']+=_0x10da38[_0x1deccc(0x167)]),Object['entries'](_0x9d6ca)[_0x1deccc(0x1b5)](([_0x23700e,_0x5d9bc9])=>{const _0x480cfd=_0x1deccc;typeof _0x5d9bc9=='string'&&(_0x9d6ca[_0x23700e]=_0x5d9bc9[_0x480cfd(0x1da)](/url\(#(.*)\)/,_0x480cfd(0x16b)+_0x10da38[_0x480cfd(0x167)]+')'));}),_0x9d6ca);}function _0x3dbd33(_0x274354,_0x40e27c){const _0x14f607=_0xc53b5c;var _0xd5ac09;let {defIds:_0xebe6fe}=_0x40e27c;return!_0xebe6fe||_0xebe6fe[_0x14f607(0x25f)]===0x0?_0x274354:_0x274354['tag']===_0x14f607(0x287)&&(_0xd5ac09=_0x274354['children'])!=null&&_0xd5ac09['length']?{..._0x274354,'children':_0x274354[_0x14f607(0x27a)]['map'](_0x3ba209=>typeof _0x3ba209[_0x14f607(0x1db)]['id']==_0x14f607(0x29e)&&_0xebe6fe&&_0xebe6fe['includes'](_0x3ba209[_0x14f607(0x1db)]['id'])?{..._0x3ba209,'attrs':{..._0x3ba209[_0x14f607(0x1db)],'id':_0x3ba209[_0x14f607(0x1db)]['id']+_0x40e27c[_0x14f607(0x167)]}}:_0x3ba209)}:_0x274354;}function _0x4b7a47(){const _0x5e9184=_0xc53b5c;return Math[_0x5e9184(0x217)]()[_0x5e9184(0x1ad)](0x24)[_0x5e9184(0x269)](0x2,0x8);}_0x3b3075[_0xc53b5c(0x25b)]=_0xc53b5c(0x228);let _0x30eb9f={'tag':_0xc53b5c(0x210),'attrs':{'xmlns':_0xc53b5c(0x1fc),'fill':'none','viewBox':_0xc53b5c(0x226),'width':'1em','height':_0xc53b5c(0x27e)},'children':[{'tag':'g','attrs':{'fill':_0xc53b5c(0x1be),'clipPath':_0xc53b5c(0x28c)},'children':[{'tag':_0xc53b5c(0x15d),'attrs':{'d':_0xc53b5c(0x278)}},{'tag':_0xc53b5c(0x15d),'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':_0xc53b5c(0x287),'attrs':{},'children':[{'tag':_0xc53b5c(0x162),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0xc53b5c(0x15d),'attrs':{'fill':_0xc53b5c(0x24a),'d':_0xc53b5c(0x1a9)}}]}]}],'defIds':[_0xc53b5c(0x1a5)]},_0x3dbc2b=(0x0,_0x132c25[_0xc53b5c(0x29a)])(function(_0x309f51,_0x4d2b88){const _0x389527=_0xc53b5c;return(0x0,_0x132c25[_0x389527(0x1eb)])(_0x3b3075,Object[_0x389527(0x1ba)]({},_0x309f51,{'id':_0x389527(0x1e6),'ref':_0x4d2b88,'icon':_0x30eb9f}));});_0x3dbc2b[_0xc53b5c(0x25b)]='HistoryIcon';function _0x138a0d(_0x442af0){const _0x56b085=_0xc53b5c;return{'id':_0x2e6e0e['id'],'type':_0x2d553a[_0x56b085(0x280)][_0x56b085(0x17b)],'icon':_0x56b085(0x245),'tooltip':_0x56b085(0x201),'hidden$':(0x0,_0x2d553a[_0x56b085(0x175)])(_0x442af0,_0x180e52['UniverInstanceType']['UNIVER_SHEET']),'disabled$':(0x0,_0x44ffac[_0x56b085(0x1e4)])(_0x442af0,{'workbookTypes':[_0x4312ea[_0x56b085(0x205)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x4345d5={[_0x2d553a[_0xc53b5c(0x1ed)]['OTHERS']]:{[_0x2e6e0e['id']]:{'order':0.2,'menuItemFactory':_0x138a0d}}},_0x59dd35=class extends _0x180e52['RxDisposable']{constructor(_0x5f1703,_0x5961ea,_0x1f8bdb,_0x21cf65,_0x550542,_0x322694,_0x34de45,_0x5f28ff,_0x250867,_0x2e203b,_0x3c0f1c){const _0x1c34b8=_0xc53b5c;super(),this[_0x1c34b8(0x23b)]=_0x5f1703,this[_0x1c34b8(0x159)]=_0x5961ea,this['_componentManager']=_0x1f8bdb,this['_historyManagerService']=_0x21cf65,this[_0x1c34b8(0x161)]=_0x550542,this[_0x1c34b8(0x1ce)]=_0x322694,this[_0x1c34b8(0x26d)]=_0x34de45,this['_localCacheService']=_0x5f28ff,this[_0x1c34b8(0x1a7)]=_0x250867,this[_0x1c34b8(0x1c3)]=_0x2e203b,this[_0x1c34b8(0x1b4)]=_0x3c0f1c,_0x4b7861(this,'_revertErrorTimer',null),this[_0x1c34b8(0x193)]();}['_init'](){const _0x3b3f0e=_0xc53b5c;[_0x2e6e0e,_0x46d9bc][_0x3b3f0e(0x1b5)](_0x4ac5f5=>this[_0x3b3f0e(0x286)]((0x0,_0x180e52['toDisposable'])(this[_0x3b3f0e(0x23b)][_0x3b3f0e(0x1b0)](_0x4ac5f5)))),this['disposeWithMe'](this['_componentManager'][_0x3b3f0e(0x238)](_0x3b3f0e(0x245),_0x3dbc2b)),this[_0x3b3f0e(0x159)][_0x3b3f0e(0x1de)](_0x4345d5),this[_0x3b3f0e(0x286)](this[_0x3b3f0e(0x23b)][_0x3b3f0e(0x1bf)](async(_0x2dbe50,_0x39e44e)=>{const _0x36c9a5=_0x3b3f0e;if(_0x2dbe50['id']===_0x3a6ac9[_0x36c9a5(0x290)]['id']){let {unitId:_0x299991}=_0x2dbe50[_0x36c9a5(0x1b1)];this[_0x36c9a5(0x1ce)][_0x36c9a5(0x16d)]({'content':this[_0x36c9a5(0x161)]['t']('editHistory.panel.reverting'),'type':_0x21c4b8['MessageType'][_0x36c9a5(0x243)],'duration':0x1388});let _0x4011a1=this['_collaborationController'][_0x36c9a5(0x1df)](_0x299991);_0x39e44e!=null&&_0x39e44e[_0x36c9a5(0x257)]?this[_0x36c9a5(0x1e3)](_0x4011a1,async()=>(setTimeout(()=>window[_0x36c9a5(0x27d)][_0x36c9a5(0x180)]()),!0x0),!0x0):this[_0x36c9a5(0x1e3)](_0x4011a1,async()=>{const _0x2308b0=_0x36c9a5;let _0x848c56=this[_0x2308b0(0x1c3)]['getCurrentUnitOfType'](_0x180e52['UniverInstanceType'][_0x2308b0(0x1a2)]),_0x116ad1=_0x848c56==null?void 0x0:_0x848c56[_0x2308b0(0x17a)]();if(!_0x116ad1)return!0x1;this[_0x2308b0(0x1c3)][_0x2308b0(0x1ff)](_0x299991);let _0x7cfda8=await this['_dataLoaderService'][_0x2308b0(0x185)](_0x299991,_0x180e52[_0x2308b0(0x25c)]['UNIVER_SHEET']);return _0x7cfda8&&_0x7cfda8 instanceof _0x180e52['Workbook']?(await this[_0x2308b0(0x1d7)](_0x7cfda8,_0x116ad1['getSheetId']()),!0x0):!0x1;});}}));}[_0xc53b5c(0x1e3)](_0x2a3fef,_0x421109,_0x1167a4=!0x1){const _0x1e4c90=_0xc53b5c;let _0x1ff42d=(0x0,_0x58a366[_0x1e4c90(0x211)])([_0x2a3fef['session'][_0x1e4c90(0x1f3)],_0x2a3fef['state$']])[_0x1e4c90(0x259)](async([_0xb4a0ac,_0x36f0cc])=>{const _0x40fcc4=_0x1e4c90;if(_0xb4a0ac['eventID']===_0x3a6ac9[_0x40fcc4(0x160)][_0x40fcc4(0x275)]&&(_0x36f0cc==null?void 0x0:_0x36f0cc[_0x40fcc4(0x216)])===_0x4bc981[_0x40fcc4(0x1e9)][_0x40fcc4(0x19e)]&&_0xb4a0ac[_0x40fcc4(0x254)][_0x40fcc4(0x235)][_0x40fcc4(0x2a3)](_0x5ea7d8=>_0x5ea7d8['id']===_0x3a6ac9[_0x40fcc4(0x290)]['id'])&&await _0x421109()){var _0x39fe75;this[_0x40fcc4(0x2af)][_0x40fcc4(0x1b7)](),_0x1ff42d[_0x40fcc4(0x237)](),this[_0x40fcc4(0x2aa)]&&clearTimeout(this['_revertErrorTimer']),await((_0x39fe75=this[_0x40fcc4(0x17c)])==null?void 0x0:_0x39fe75['exhaustSavingTask']()),this[_0x40fcc4(0x1ce)][_0x40fcc4(0x27c)]();}});_0x1167a4&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x16bafb=_0x1e4c90;_0x1ff42d['unsubscribe'](),this[_0x16bafb(0x1ce)][_0x16bafb(0x16d)]({'content':this[_0x16bafb(0x161)]['t'](_0x16bafb(0x23e)),'type':_0x21c4b8[_0x16bafb(0x23f)][_0x16bafb(0x18f)],'duration':0xbb8});},0x1388));}async[_0xc53b5c(0x1d7)](_0xfc3b49,_0x2c837f){const _0x52ad93=_0xc53b5c;await this[_0x52ad93(0x1ef)](_0xfc3b49,_0x2c837f),_0xfc3b49[_0x52ad93(0x241)][_0x52ad93(0x289)]((0x0,_0x58a366['takeUntil'])(this['dispose$']))[_0x52ad93(0x259)](_0x45b403=>{_0x45b403&&this['_updateURLWithCurrentState'](_0x45b403);}),this[_0x52ad93(0x1b4)][_0x52ad93(0x246)][_0x52ad93(0x289)]((0x0,_0x58a366[_0x52ad93(0x21e)])(this[_0x52ad93(0x223)]))[_0x52ad93(0x259)](()=>this[_0x52ad93(0x1ef)](_0xfc3b49,_0x2c837f));}[_0xc53b5c(0x1cc)](_0x4e4cbd,_0x54243a=!0x1){const _0x242ea8=_0xc53b5c;let _0x593776=this['_urlService'][_0x242ea8(0x261)]('subunit');_0x4e4cbd[_0x242ea8(0x2ac)]()!==_0x593776&&this[_0x242ea8(0x1b4)]['setParam'](_0x242ea8(0x2b4),_0x4e4cbd[_0x242ea8(0x2ac)](),_0x54243a);}async[_0xc53b5c(0x1ef)](_0x68c06f,_0x435d42){const _0x5d06a4=_0xc53b5c;var _0x422eea;if(!_0x435d42||!_0x68c06f['getSheetBySheetId'](_0x435d42)){let _0x537349=_0x68c06f[_0x5d06a4(0x21b)]()[0x0],_0x5dbfbd=_0x68c06f[_0x5d06a4(0x1cf)](_0x537349);if(!_0x5dbfbd)return;this[_0x5d06a4(0x1cc)](_0x5dbfbd,!0x0),await this[_0x5d06a4(0x23b)][_0x5d06a4(0x21a)](_0x4312ea[_0x5d06a4(0x29c)]['id'],{'unitId':_0x68c06f['getUnitId'](),'subUnitId':_0x537349});return;}((_0x422eea=_0x68c06f[_0x5d06a4(0x17a)]())==null?void 0x0:_0x422eea[_0x5d06a4(0x2ac)]())!==_0x435d42&&await this[_0x5d06a4(0x23b)][_0x5d06a4(0x21a)](_0x4312ea['SetWorksheetActivateCommand']['id'],{'unitId':_0x68c06f['getUnitId'](),'subUnitId':_0x435d42});}};_0x59dd35=_0x13dd99([_0x5f10e5(0x0,_0x180e52[_0xc53b5c(0x1cd)]),_0x5f10e5(0x1,_0x2d553a['IMenuManagerService']),_0x5f10e5(0x2,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x2d553a['ComponentManager'])),_0x5f10e5(0x3,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x2e5a75)),_0x5f10e5(0x4,(0x0,_0x180e52['Inject'])(_0x180e52[_0xc53b5c(0x16c)])),_0x5f10e5(0x5,_0x2d553a[_0xc53b5c(0x191)]),_0x5f10e5(0x6,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x4bc981[_0xc53b5c(0x1ac)])),_0x5f10e5(0x7,_0x4bc981['ILocalCacheService']),_0x5f10e5(0x8,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x4bc981[_0xc53b5c(0x1f6)])),_0x5f10e5(0x9,_0x180e52[_0xc53b5c(0x2a2)]),_0x5f10e5(0xa,_0x4fdfa1[_0xc53b5c(0x1ec)])],_0x59dd35);let _0x304d62=_0xc53b5c(0x21f),_0xbbdb2e=class extends _0x180e52[_0xc53b5c(0x1b6)]{constructor(_0x35e7c6,_0x1c8656,_0x48398b,_0x36ad4b,_0x30f7e4,_0x827caa,_0x4383ee,_0x340734,_0x454013,_0x338f96){const _0x230dd9=_0xc53b5c;super(),this[_0x230dd9(0x161)]=_0x35e7c6,this['_univerInstanceService']=_0x1c8656,this['_configService']=_0x48398b,this[_0x230dd9(0x23b)]=_0x36ad4b,this[_0x230dd9(0x1ce)]=_0x30f7e4,this[_0x230dd9(0x255)]=_0x827caa,this['_selectionProtectionRuleModel']=_0x4383ee,this[_0x230dd9(0x18e)]=_0x340734,this[_0x230dd9(0x256)]=_0x454013,this[_0x230dd9(0x1af)]=_0x338f96,_0x4b7861(this,'_historyUniver$',new _0x58a366[(_0x230dd9(0x252))](null)),_0x4b7861(this,_0x230dd9(0x17e),this['_historyUniver$'][_0x230dd9(0x26e)]()),_0x4b7861(this,'_disposableCollection',new _0x180e52[(_0x230dd9(0x206))]()),_0x4b7861(this,_0x230dd9(0x23a),new Map()),_0x4b7861(this,'_internalWebWorker',null),this[_0x230dd9(0x193)]();}get['historyUniver'](){const _0x4a3aff=_0xc53b5c;return this[_0x4a3aff(0x177)][_0x4a3aff(0x19f)];}[_0xc53b5c(0x193)](){const _0x242a06=_0xc53b5c;this[_0x242a06(0x15b)](),this[_0x242a06(0x17d)]();}[_0xc53b5c(0x15b)](){const _0x2a2d96=_0xc53b5c;var _0x36aa7d;let _0x5ee25f=(_0x36aa7d=this[_0x2a2d96(0x212)][_0x2a2d96(0x251)](_0x2a2d96(0x1d2)))==null?_0x2a2d96(0x1f5):_0x36aa7d,_0x25f1b4=document[_0x2a2d96(0x1d0)](_0x5ee25f);if(!_0x25f1b4)return;let _0x6f99b3=document['createElement'](_0x2a2d96(0x299));_0x6f99b3['id']=_0x304d62,_0x6f99b3[_0x2a2d96(0x294)][_0x2a2d96(0x16a)]=_0x2a2d96(0x2a7),_0x6f99b3[_0x2a2d96(0x1d5)][_0x2a2d96(0x28e)]='absolute',_0x6f99b3[_0x2a2d96(0x1d5)][_0x2a2d96(0x1bb)]='0',_0x6f99b3['style'][_0x2a2d96(0x26a)]='0',_0x6f99b3[_0x2a2d96(0x1d5)]['width']=_0x2a2d96(0x197),_0x6f99b3[_0x2a2d96(0x1d5)][_0x2a2d96(0x209)]=_0x2a2d96(0x197),_0x6f99b3['style'][_0x2a2d96(0x1dc)]='49',_0x6f99b3[_0x2a2d96(0x1d5)][_0x2a2d96(0x19b)]=_0x2a2d96(0x267),_0x25f1b4['appendChild'](_0x6f99b3);}[_0xc53b5c(0x17d)](){const _0x1fda22=_0xc53b5c;[[_0x428760[_0x1fda22(0x170)]],[_0x2d553a['UniverMobileUIPlugin'],{'container':_0x304d62,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2d553a[_0x1fda22(0x218)],null]]}],[_0xedc498[_0x1fda22(0x24f)]],[_0x51bbe3[_0x1fda22(0x1aa)],{'override':[[_0x51bbe3['IImageIoService'],null]]}],[_0x501d88[_0x1fda22(0x26b)],{'hasScroll':!0x1}],[_0x34b124[_0x1fda22(0x2b1)]],[_0x2c5ed4[_0x1fda22(0x182)]],[_0x4312ea[_0x1fda22(0x1a3)],{'notExecuteFormula':!0x0}],[_0x44ffac[_0x1fda22(0x169)]],[_0x1a0396[_0x1fda22(0x1ab)]],[_0x2e4dad['UniverSheetsFormulaUIPlugin']],[_0x3a6ac9[_0x1fda22(0x27f)]],[_0x47eb46[_0x1fda22(0x2ae)]],[_0x3981f9[_0x1fda22(0x272)]],[_0x4fc741[_0x1fda22(0x163)]],[_0x1384b3[_0x1fda22(0x1d4)]],[_0x23732b[_0x1fda22(0x215)]],[_0x350b1c[_0x1fda22(0x1e0)]],[_0x5c8651['UniverSheetsDataValidationMobileUIPlugin']],[_0x15b9f5[_0x1fda22(0x196)],{'notExecuteFormula':!0x0}],[_0x1f769d[_0x1fda22(0x224)]],[_0x13190c['UniverSheetsDrawingPlugin']],[_0x409da3[_0x1fda22(0x1fd)]],[_0x21a66c[_0x1fda22(0x240)]],[_0x5ba28e['UniverSheetSparklineUIPlugin']],[_0x553827['UniverSheetsChartPlugin']],[_0x4682bd['UniverSheetsChartUIPlugin']],[_0x9209ea[_0x1fda22(0x1b2)]],[_0x202b2b[_0x1fda22(0x166)]],[_0x2dd7d2[_0x1fda22(0x184)],{'notExecuteFormula':!0x0}],[_0xdb662c[_0x1fda22(0x2a0)]]][_0x1fda22(0x1b5)](([_0x40b2c0,_0x150128])=>this[_0x1fda22(0x174)](_0x40b2c0,_0x150128));}[_0xc53b5c(0x178)](){const _0x5f4565=_0xc53b5c;super['dispose'](),this[_0x5f4565(0x1b7)](),this[_0x5f4565(0x23a)][_0x5f4565(0x179)]();}[_0xc53b5c(0x174)](_0x149e90,_0x4e9c98,_0x359d80){const _0x160215=_0xc53b5c;if(this[_0x160215(0x23a)]['has'](_0x149e90[_0x160215(0x22e)])&&!_0x359d80)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x149e90['pluginName']+'\x20has\x20been\x20registered.');this[_0x160215(0x23a)][_0x160215(0x15a)](_0x149e90[_0x160215(0x22e)],[_0x149e90,_0x4e9c98]);}[_0xc53b5c(0x24d)](){const _0x1512c8=_0xc53b5c;return Array[_0x1512c8(0x282)](this['_pluginMap'][_0x1512c8(0x173)]());}[_0xc53b5c(0x296)](_0x75bb45,_0x2b7fb8){const _0x2cad8a=_0xc53b5c;let _0x1a8064=document['getElementById'](_0x304d62);_0x1a8064&&(_0x1a8064[_0x2cad8a(0x1d5)][_0x2cad8a(0x19b)]='block',this['_initUniver'](_0x75bb45,_0x304d62,_0x2b7fb8));}[_0xc53b5c(0x1b7)](){const _0x22f97f=_0xc53b5c;var _0x4b3bc6;this[_0x22f97f(0x15c)][_0x22f97f(0x178)](),(_0x4b3bc6=this['historyUniver'])==null||_0x4b3bc6[_0x22f97f(0x178)](),this[_0x22f97f(0x177)][_0x22f97f(0x186)](null);let _0x4a9b34=document[_0x22f97f(0x1d0)](_0x304d62);_0x4a9b34&&(_0x4a9b34[_0x22f97f(0x1d5)][_0x22f97f(0x19b)]=_0x22f97f(0x267),this[_0x22f97f(0x270)]&&(this[_0x22f97f(0x270)][_0x22f97f(0x1a4)](),this[_0x22f97f(0x270)]=null));}['_initUniver'](_0x3261cc,_0xd11bb9,_0x1abc3e){const _0x38a6dc=_0xc53b5c;var _0x51025d,_0x25070e,_0x35817e,_0xbe9df;if(this[_0x38a6dc(0x2b5)])return;let _0x3218dc=new _0x180e52['Univer']({'locales':{[this[_0x38a6dc(0x161)][_0x38a6dc(0x25e)]()]:this['_localeService']['getLocales']()},'override':[[_0x180e52['IAuthzIoService'],{'useClass':_0x4bc981[_0x38a6dc(0x192)]}]]}),_0x51ea42=_0x3218dc[_0x38a6dc(0x220)]();this[_0x38a6dc(0x286)](this[_0x38a6dc(0x1af)][_0x38a6dc(0x1d6)][_0x38a6dc(0x259)](_0x295553=>{const _0x1b8deb=_0x38a6dc;_0x51ea42['get'](_0x180e52['ThemeService'])[_0x1b8deb(0x1ea)](_0x295553);})),this[_0x38a6dc(0x286)](this[_0x38a6dc(0x1af)][_0x38a6dc(0x266)][_0x38a6dc(0x259)](_0x36d971=>{const _0x4d8c10=_0x38a6dc;_0x51ea42[_0x4d8c10(0x1bc)](_0x180e52[_0x4d8c10(0x1dd)])[_0x4d8c10(0x1ae)](_0x36d971);})),_0x51ea42['get'](_0x180e52[_0x38a6dc(0x16c)])[_0x38a6dc(0x285)](this[_0x38a6dc(0x161)][_0x38a6dc(0x25e)]()),_0x51ea42[_0x38a6dc(0x1bc)](_0x180e52[_0x38a6dc(0x1bd)])[_0x38a6dc(0x263)](_0x4bc981[_0x38a6dc(0x176)],this[_0x38a6dc(0x212)][_0x38a6dc(0x251)](_0x4bc981[_0x38a6dc(0x176)]));let _0x2d82ca=this[_0x38a6dc(0x212)]['getConfig'](_0x4e23fa[_0x38a6dc(0x2a4)]);_0x2d82ca&&_0x3218dc[_0x38a6dc(0x174)](_0x4e23fa[_0x38a6dc(0x22c)],{'license':_0x2d82ca['ls']});let _0x5bb046=(_0x51025d=this[_0x38a6dc(0x212)][_0x38a6dc(0x251)](_0x38a6dc(0x1c5)))==null?void 0x0:_0x51025d['workerURL'],_0x32259f=!!_0x5bb046;_0x32259f&&(this[_0x38a6dc(0x270)]=_0x5bb046 instanceof Worker?_0x5bb046:null,_0x3218dc[_0x38a6dc(0x174)](_0x2879fc['UniverRPCMainThreadPlugin'],{'workerURL':_0x5bb046})),this['_pluginMap'][_0x38a6dc(0x1b5)](([_0x39cea7,_0x3dd6e0])=>{const _0x26a287=_0x38a6dc;_0x3218dc[_0x26a287(0x174)](_0x39cea7,_0x3dd6e0);}),_0x3218dc[_0x38a6dc(0x174)](_0x3352b4[_0x38a6dc(0x187)],{'historyListServerUrl':(_0x25070e=this[_0x38a6dc(0x212)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x25070e[_0x38a6dc(0x1ee)],'historyPanelComponentKey':(_0x35817e=this[_0x38a6dc(0x212)]['getConfig'](_0x38a6dc(0x1c5)))==null?void 0x0:_0x35817e[_0x38a6dc(0x2a8)],'historyPanelHidden':(_0xbe9df=this[_0x38a6dc(0x212)][_0x38a6dc(0x251)](_0x38a6dc(0x1c5)))==null?void 0x0:_0xbe9df['historyPanelHidden']}),_0x51ea42[_0x38a6dc(0x1f1)](_0x5bec70=>{const _0x1b0be5=_0x38a6dc;this[_0x1b0be5(0x26c)](_0x5bec70,_0x3261cc);}),this[_0x38a6dc(0x177)]['next'](_0x3218dc);let _0x5d567e=_0x51ea42['get'](_0x3352b4[_0x38a6dc(0x189)]),_0x147738=this['_checkCanRevert'](_0x3261cc),_0x2f8180=()=>{const _0xef967c=_0x38a6dc;_0x1abc3e?_0x5d567e[_0xef967c(0x1d1)](_0x3261cc,_0xd11bb9,_0x147738,_0x1abc3e):_0x5d567e[_0xef967c(0x181)](_0x3261cc,_0xd11bb9,_0x147738);};if(this[_0x38a6dc(0x1ce)][_0x38a6dc(0x16d)]({'content':this[_0x38a6dc(0x161)]['t'](_0x38a6dc(0x265)),'type':_0x21c4b8[_0x38a6dc(0x23f)]['Loading']}),_0x32259f)try{_0x51ea42[_0x38a6dc(0x1bc)](_0x2879fc[_0x38a6dc(0x1b9)])[_0x38a6dc(0x2a1)]()[_0x38a6dc(0x20e)](()=>{_0x2f8180();});}catch{_0x2f8180();}else _0x2f8180();}['_initListener'](_0x7b9453,_0x2d81f4){const _0x58d19c=_0xc53b5c;let _0x174501=_0x7b9453[_0x58d19c(0x1bc)](_0x3352b4[_0x58d19c(0x189)]);this['_disposableCollection'][_0x58d19c(0x20c)](_0x174501[_0x58d19c(0x1e1)][_0x58d19c(0x259)](_0x2d15d4=>{const _0x34dd89=_0x58d19c;switch(_0x2d15d4){case _0x3352b4[_0x34dd89(0x25d)][_0x34dd89(0x1e5)]:this[_0x34dd89(0x18e)][_0x34dd89(0x1d9)](),this[_0x34dd89(0x256)][_0x34dd89(0x24e)]();break;case _0x3352b4[_0x34dd89(0x25d)]['Exited']:this[_0x34dd89(0x23b)][_0x34dd89(0x21a)](_0x46d9bc['id']),this[_0x34dd89(0x1b7)]();break;case _0x3352b4[_0x34dd89(0x25d)][_0x34dd89(0x18f)]:this[_0x34dd89(0x1b7)](),this[_0x34dd89(0x1ce)][_0x34dd89(0x16d)]({'content':this['_localeService']['t'](_0x34dd89(0x227)),'type':_0x21c4b8[_0x34dd89(0x23f)]['Error'],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x58d19c(0x20c)](_0x174501[_0x58d19c(0x168)]['subscribe'](async _0xf8e3da=>{const _0x444f01=_0x58d19c;_0xf8e3da&&this[_0x444f01(0x23b)]['executeCommand'](_0x3a6ac9[_0x444f01(0x290)]['id'],{'unitId':_0x2d81f4,'revision':_0xf8e3da});}));}[_0xc53b5c(0x208)](_0x1e7c43){const _0x5722cd=_0xc53b5c;let _0x34cd12=this['_univerInstanceService'][_0x5722cd(0x29f)](_0x1e7c43)[_0x5722cd(0x298)]()[_0x5722cd(0x22a)](_0x512c1c=>_0x512c1c['getSheetId']()),_0x41fcf3=new _0x4312ea[(_0x5722cd(0x23c))](_0x1e7c43)['id'],_0x4b9902=_0x34cd12[_0x5722cd(0x22a)](_0x3c2dfe=>new _0x4312ea[(_0x5722cd(0x188))](_0x1e7c43,_0x3c2dfe)['id']),_0x5c5e6c=_0x34cd12[_0x5722cd(0x22a)](_0xc664fa=>this[_0x5722cd(0x213)][_0x5722cd(0x24b)](_0x1e7c43,_0xc664fa)[_0x5722cd(0x22a)](_0x1af84b=>new _0x4312ea[(_0x5722cd(0x21c))](_0x1e7c43,_0xc664fa,_0x1af84b[_0x5722cd(0x1c4)])['id']))[_0x5722cd(0x239)](),_0x2d42da=new _0x4312ea['WorkbookRecoverHistoryPermission'](_0x1e7c43)['id'];return this[_0x5722cd(0x255)][_0x5722cd(0x274)]([_0x41fcf3,..._0x4b9902,..._0x5c5e6c,_0x2d42da])[_0x5722cd(0x258)](_0x21dd45=>!!_0x21dd45['value']);}};_0xbbdb2e=_0x13dd99([_0x5f10e5(0x0,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x180e52[_0xc53b5c(0x16c)])),_0x5f10e5(0x1,_0x180e52[_0xc53b5c(0x2a2)]),_0x5f10e5(0x2,_0x180e52[_0xc53b5c(0x1bd)]),_0x5f10e5(0x3,_0x180e52[_0xc53b5c(0x1cd)]),_0x5f10e5(0x4,_0x2d553a[_0xc53b5c(0x191)]),_0x5f10e5(0x5,_0x180e52['IPermissionService']),_0x5f10e5(0x6,(0x0,_0x180e52['Inject'])(_0x4312ea[_0xc53b5c(0x1fe)])),_0x5f10e5(0x7,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x2d553a[_0xc53b5c(0x218)])),_0x5f10e5(0x8,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x2d553a[_0xc53b5c(0x165)])),_0x5f10e5(0x9,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x180e52[_0xc53b5c(0x1dd)]))],_0xbbdb2e);let _0x49f97a=class extends _0x180e52['Plugin']{constructor(_0x418e4d=_0x54a957,_0x40a81a,_0x4e7cff){const _0x3e57a0=_0xc53b5c;super(),this[_0x3e57a0(0x283)]=_0x418e4d,this[_0x3e57a0(0x203)]=_0x40a81a,this[_0x3e57a0(0x212)]=_0x4e7cff;let {menu:_0x35da60,..._0x2dbdbc}=(0x0,_0x180e52[_0x3e57a0(0x273)])({},_0x54a957,this[_0x3e57a0(0x283)]);_0x35da60&&this[_0x3e57a0(0x212)][_0x3e57a0(0x263)]('menu',_0x35da60,{'merge':!0x0}),this[_0x3e57a0(0x212)]['setConfig'](_0x8ece11,_0x2dbdbc),this['_config'][_0x3e57a0(0x1a0)]&&this[_0x3e57a0(0x212)]['setConfig'](_0x3e57a0(0x1d2),this[_0x3e57a0(0x283)][_0x3e57a0(0x1a0)]);}[_0xc53b5c(0x1f8)](){const _0x504ded=_0xc53b5c;[[_0x2e5a75,{'useClass':_0xbbdb2e}],[_0x59dd35]][_0x504ded(0x1b5)](_0x2a56cb=>this[_0x504ded(0x203)][_0x504ded(0x20c)](_0x2a56cb));}[_0xc53b5c(0x1b3)](){const _0x689534=_0xc53b5c;this[_0x689534(0x203)][_0x689534(0x1bc)](_0x59dd35);}};_0x4b7861(_0x49f97a,_0xc53b5c(0x1d8),_0x180e52[_0xc53b5c(0x25c)][_0xc53b5c(0x21d)]),_0x4b7861(_0x49f97a,_0xc53b5c(0x22e),_0xc53b5c(0x295)),_0x4b7861(_0x49f97a,_0xc53b5c(0x232),_0x58ec6a),_0x4b7861(_0x49f97a,_0xc53b5c(0x262),_0x33d019),_0x49f97a=_0x13dd99([(0x0,_0x180e52[_0xc53b5c(0x1fb)])(_0x4e23fa[_0xc53b5c(0x22c)]),_0x5f10e5(0x1,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x180e52[_0xc53b5c(0x194)])),_0x5f10e5(0x2,_0x180e52[_0xc53b5c(0x1bd)])],_0x49f97a);let _0x193546=class extends _0x180e52[_0xc53b5c(0x236)]{constructor(_0x89af7,_0x439203,_0x585099,_0x9f56e,_0x34cd1e,_0x324d7d,_0x559373,_0x1cff14,_0x202574,_0x4bb7be,_0x1cf941){const _0x642d20=_0xc53b5c;super(),this[_0x642d20(0x23b)]=_0x89af7,this['_menuManagerService']=_0x439203,this[_0x642d20(0x271)]=_0x585099,this[_0x642d20(0x2af)]=_0x9f56e,this[_0x642d20(0x161)]=_0x34cd1e,this[_0x642d20(0x1ce)]=_0x324d7d,this[_0x642d20(0x26d)]=_0x559373,this['_localCacheService']=_0x1cff14,this['_dataLoaderService']=_0x202574,this['_univerInstanceService']=_0x4bb7be,this[_0x642d20(0x1b4)]=_0x1cf941,_0x4b7861(this,_0x642d20(0x2aa),null),this[_0x642d20(0x193)]();}[_0xc53b5c(0x193)](){const _0x116200=_0xc53b5c;[_0x2e6e0e,_0x46d9bc][_0x116200(0x1b5)](_0x243ad1=>this[_0x116200(0x286)]((0x0,_0x180e52['toDisposable'])(this['_commandService'][_0x116200(0x1b0)](_0x243ad1)))),this[_0x116200(0x286)](this[_0x116200(0x271)][_0x116200(0x238)]('HistoryIcon',_0x3dbc2b)),this[_0x116200(0x159)]['mergeMenu'](_0x4345d5),this[_0x116200(0x286)](this[_0x116200(0x23b)][_0x116200(0x1bf)](async(_0x4d1077,_0x54617b)=>{const _0x176ef8=_0x116200;if(_0x4d1077['id']===_0x3a6ac9[_0x176ef8(0x290)]['id']){let {unitId:_0x37d7b2}=_0x4d1077[_0x176ef8(0x1b1)];this['_messageService'][_0x176ef8(0x16d)]({'content':this[_0x176ef8(0x161)]['t']('editHistory.panel.reverting'),'type':_0x21c4b8[_0x176ef8(0x23f)][_0x176ef8(0x243)],'duration':0x1388});let _0x57c140=this['_collaborationController']['getCollabEntity'](_0x37d7b2);_0x54617b!=null&&_0x54617b[_0x176ef8(0x257)]?this[_0x176ef8(0x1e3)](_0x57c140,async()=>(setTimeout(()=>window['location'][_0x176ef8(0x180)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x57c140,async()=>{const _0x3e005d=_0x176ef8;let _0x2f3918=this['_univerInstanceService'][_0x3e005d(0x1c1)](_0x180e52[_0x3e005d(0x25c)]['UNIVER_SHEET']),_0x3f6f8a=_0x2f3918==null?void 0x0:_0x2f3918['getActiveSheet']();if(!_0x3f6f8a)return!0x1;this[_0x3e005d(0x1c3)][_0x3e005d(0x1ff)](_0x37d7b2);let _0x8a8a6e=await this[_0x3e005d(0x1a7)][_0x3e005d(0x185)](_0x37d7b2,_0x180e52[_0x3e005d(0x25c)][_0x3e005d(0x1a2)]);return _0x8a8a6e&&_0x8a8a6e instanceof _0x180e52[_0x3e005d(0x2b6)]?(await this['_setupSubUnitSync'](_0x8a8a6e,_0x3f6f8a[_0x3e005d(0x2ac)]()),!0x0):!0x1;});}}));}[_0xc53b5c(0x1e3)](_0x280e46,_0x264b65,_0x57afbf=!0x1){const _0x2c4e9d=_0xc53b5c;let _0x8206f=(0x0,_0x58a366[_0x2c4e9d(0x211)])([_0x280e46[_0x2c4e9d(0x264)][_0x2c4e9d(0x1f3)],_0x280e46[_0x2c4e9d(0x195)]])['subscribe'](async([_0x17c0f2,_0x3ea3c4])=>{const _0xf675a=_0x2c4e9d;if(_0x17c0f2[_0xf675a(0x154)]===_0x3a6ac9['CollaborationEvent']['CHANGESET_ACK']&&(_0x3ea3c4==null?void 0x0:_0x3ea3c4[_0xf675a(0x216)])===_0x4bc981[_0xf675a(0x1e9)][_0xf675a(0x19e)]&&_0x17c0f2[_0xf675a(0x254)]['mutations'][_0xf675a(0x2a3)](_0x4ccd98=>_0x4ccd98['id']===_0x3a6ac9[_0xf675a(0x290)]['id'])&&await _0x264b65()){var _0x917aa6;this[_0xf675a(0x2af)][_0xf675a(0x1b7)](),_0x8206f[_0xf675a(0x237)](),this[_0xf675a(0x2aa)]&&clearTimeout(this[_0xf675a(0x2aa)]),await((_0x917aa6=this[_0xf675a(0x17c)])==null?void 0x0:_0x917aa6[_0xf675a(0x1f0)]());}});_0x57afbf&&(this[_0x2c4e9d(0x2aa)]=setTimeout(()=>{const _0xdfec69=_0x2c4e9d;_0x8206f[_0xdfec69(0x237)](),this[_0xdfec69(0x1ce)]['show']({'content':this[_0xdfec69(0x161)]['t'](_0xdfec69(0x23e)),'type':_0x21c4b8[_0xdfec69(0x23f)]['Error'],'duration':0xbb8});},0x1388));}async[_0xc53b5c(0x1d7)](_0x129a27,_0x30dfdb){const _0x140ae0=_0xc53b5c;await this[_0x140ae0(0x1ef)](_0x129a27,_0x30dfdb),_0x129a27[_0x140ae0(0x241)][_0x140ae0(0x289)]((0x0,_0x58a366[_0x140ae0(0x21e)])(this[_0x140ae0(0x223)]))[_0x140ae0(0x259)](_0x5a949c=>{const _0x235c4a=_0x140ae0;_0x5a949c&&this[_0x235c4a(0x1cc)](_0x5a949c);}),this[_0x140ae0(0x1b4)]['urlChange$']['pipe']((0x0,_0x58a366[_0x140ae0(0x21e)])(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x129a27,_0x30dfdb));}[_0xc53b5c(0x1cc)](_0x55c6e1,_0x432144=!0x1){const _0x2d775e=_0xc53b5c;let _0x2be3aa=this['_urlService'][_0x2d775e(0x261)](_0x2d775e(0x2b4));_0x55c6e1[_0x2d775e(0x2ac)]()!==_0x2be3aa&&this['_urlService'][_0x2d775e(0x171)]('subunit',_0x55c6e1[_0x2d775e(0x2ac)](),_0x432144);}async[_0xc53b5c(0x1ef)](_0x4ef895,_0x2b5a4c){const _0x2fc8c4=_0xc53b5c;var _0x10171b;if(!_0x2b5a4c||!_0x4ef895[_0x2fc8c4(0x1cf)](_0x2b5a4c)){let _0x26dae0=_0x4ef895[_0x2fc8c4(0x21b)]()[0x0],_0x1bed99=_0x4ef895[_0x2fc8c4(0x1cf)](_0x26dae0);if(!_0x1bed99)return;this[_0x2fc8c4(0x1cc)](_0x1bed99,!0x0),await this['_commandService']['executeCommand'](_0x4312ea[_0x2fc8c4(0x29c)]['id'],{'unitId':_0x4ef895[_0x2fc8c4(0x1c9)](),'subUnitId':_0x26dae0});return;}((_0x10171b=_0x4ef895[_0x2fc8c4(0x17a)]())==null?void 0x0:_0x10171b[_0x2fc8c4(0x2ac)]())!==_0x2b5a4c&&await this['_commandService'][_0x2fc8c4(0x21a)](_0x4312ea[_0x2fc8c4(0x29c)]['id'],{'unitId':_0x4ef895[_0x2fc8c4(0x1c9)](),'subUnitId':_0x2b5a4c});}};_0x193546=_0x13dd99([_0x5f10e5(0x0,_0x180e52[_0xc53b5c(0x1cd)]),_0x5f10e5(0x1,_0x2d553a[_0xc53b5c(0x244)]),_0x5f10e5(0x2,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x2d553a['ComponentManager'])),_0x5f10e5(0x3,(0x0,_0x180e52['Inject'])(_0x2e5a75)),_0x5f10e5(0x4,(0x0,_0x180e52['Inject'])(_0x180e52[_0xc53b5c(0x16c)])),_0x5f10e5(0x5,_0x2d553a['IMessageService']),_0x5f10e5(0x6,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x4bc981['CollaborationController'])),_0x5f10e5(0x7,_0x4bc981[_0xc53b5c(0x2b2)]),_0x5f10e5(0x8,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x4bc981[_0xc53b5c(0x1f6)])),_0x5f10e5(0x9,_0x180e52[_0xc53b5c(0x2a2)]),_0x5f10e5(0xa,_0x4fdfa1[_0xc53b5c(0x1ec)])],_0x193546);let _0xe27075=class extends _0x180e52[_0xc53b5c(0x2b3)]{constructor(_0x283fba=_0x54a957,_0x45bf22,_0x1a0400){const _0x40becb=_0xc53b5c;super(),this['_config']=_0x283fba,this[_0x40becb(0x203)]=_0x45bf22,this[_0x40becb(0x212)]=_0x1a0400;let {menu:_0x548ffb,..._0x4c285e}=(0x0,_0x180e52[_0x40becb(0x273)])({},_0x54a957,this[_0x40becb(0x283)]);_0x548ffb&&this[_0x40becb(0x212)]['setConfig']('menu',_0x548ffb,{'merge':!0x0}),this[_0x40becb(0x212)][_0x40becb(0x263)](_0x8ece11,_0x4c285e),this[_0x40becb(0x283)][_0x40becb(0x1a0)]&&this[_0x40becb(0x212)][_0x40becb(0x263)](_0x5eb995,this[_0x40becb(0x283)][_0x40becb(0x1a0)]);}[_0xc53b5c(0x1f8)](){const _0x43d7b8=_0xc53b5c;[[_0x2e5a75],[_0x193546]][_0x43d7b8(0x1b5)](_0x1939ea=>this[_0x43d7b8(0x203)]['add'](_0x1939ea));}['onSteady'](){const _0x5b17c8=_0xc53b5c;this[_0x5b17c8(0x203)][_0x5b17c8(0x1bc)](_0x193546);}};_0x4b7861(_0xe27075,_0xc53b5c(0x1d8),_0x180e52[_0xc53b5c(0x25c)][_0xc53b5c(0x21d)]),_0x4b7861(_0xe27075,_0xc53b5c(0x22e),_0xc53b5c(0x242)),_0x4b7861(_0xe27075,_0xc53b5c(0x232),_0x58ec6a),_0x4b7861(_0xe27075,_0xc53b5c(0x262),_0x33d019),_0xe27075=_0x13dd99([(0x0,_0x180e52['DependentOn'])(_0x4e23fa[_0xc53b5c(0x22c)]),_0x5f10e5(0x1,(0x0,_0x180e52[_0xc53b5c(0x172)])(_0x180e52['Injector'])),_0x5f10e5(0x2,_0x180e52[_0xc53b5c(0x1bd)])],_0xe27075),_0x599ba0[_0xc53b5c(0x1d3)]=_0x8ece11,Object[_0xc53b5c(0x2a6)](_0x599ba0,_0xc53b5c(0x156),{'enumerable':!0x0,'get':function(){return _0x2e5a75;}}),Object[_0xc53b5c(0x2a6)](_0x599ba0,_0xc53b5c(0x23d),{'enumerable':!0x0,'get':function(){return _0xbbdb2e;}}),_0x599ba0['ToggleEditHistoryOperation']=_0x2e6e0e,_0x599ba0[_0xc53b5c(0x19d)]=_0x5eb995,_0x599ba0[_0xc53b5c(0x15f)]=_0x3dd095,Object[_0xc53b5c(0x2a6)](_0x599ba0,_0xc53b5c(0x1a1),{'enumerable':!0x0,'get':function(){return _0x49f97a;}}),Object[_0xc53b5c(0x2a6)](_0x599ba0,_0xc53b5c(0x277),{'enumerable':!0x0,'get':function(){return _0xe27075;}});}));
1
+ function _0x5603(_0x1e0553,_0xd4ffab){_0x1e0553=_0x1e0553-0xe3;const _0xc421a8=_0xc421();let _0x5603fd=_0xc421a8[_0x1e0553];return _0x5603fd;}function _0xc421(){const _0x1b4107=['WorkbookRecoverHistoryPermission','version','CollaborationEvent','UniverSheetsHyperLinkUIPlugin','Disposable','MobileHistoryLoaderService','IPermissionService','1em','UniverNetwork','_selectionProtectionRuleModel','uComp','UniverProEditHistoryViewer','idSuffix','amd','UniverDataValidationPlugin','UNIVER_SHEET','colorChannel1','0.24.0','_injector','Exited','UniverCore','UniverInstanceType','RxDisposable','_historyUniver$','setConfig','tag','use','pipe','getSheetCommandTarget','position','show','historyPanelHidden','Error','UniverDrawing','value','BehaviorSubject','HistoryManagerService','permissionId','UNIVER_HISTORY_CONTAINER_ID','IAuthzIoService','top','_updateSubUnitFromURLParams','ILocalCacheService','onSteady','register','merge','forEach','\x20has\x20been\x20registered.','loadUnit','UniverProSheetsPivot','348848ZirLVK','_themeService','UniverProSheetsSparklineUi','registerPlugin','UniverSheetsFormulaPlugin','call','_revertErrorTimer','split','event$','packageName','SYNCED','status$','LS_CONFIG_KEY','5850564olrwbr','HistoryIcon','mergeMenu','getSheetBySheetId','subscribe','UniverProSheetsSparkline','_collaborationController','data','getSheetId','[HistoryLoaderService]:\x20Plugin\x20','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','eventID','height','http://www.w3.org/2000/svg','status','iterator','getAllPlugins','_handleRevertAcknowledgement','url(#history-icon_clip0_907_281)','none','_initListener','univer.operation.exit-edit-history','UniverSheetsChartUIPlugin','IMessageService','UniverSheetsFormula','UniverEngineFormula','_localCacheService','path','UniverProSheetsChartUi','ISidebarService','_componentManager','function','UniverProLicense','getSheets','IMenuManagerService','0\x200\x2016\x2016','darkMode$','_initContainer','_init','32HMCsgn','100%','getCollabEntity','unsubscribe','WorkbookViewHistoryPermission','WorksheetEditPermission','historyUniver','UNIVER_CONTAINER_ID','UniverDrawingUIPlugin','closeAll','UniverProSheetsShape','getParam','UniverSheetsDataValidation','UniverDocsUIPlugin','UniverSheetSparklineUIPlugin','combineLatest','executeCommand','_messageService','getUnit','getMenuHiddenObservable','UNIVER_UNKNOWN','UniverSheetsConditionalFormattingUi','UniverSheetsFormulaUIPlugin','Loading','getLocales','zIndex','UniverSheetsConditionalFormatting','React','ComponentManager','UniverCollaborationPlugin','CommandType','editHistory.info.initializing','_internalWebWorker','history-icon_clip0_907_281','setLocale','getActiveSheet','UniverSheets','UniverMobileUIPlugin','historyPanelComponentKey','invoke','univer.operation.toggle-edit-history','mutations','_checkCanRevert','includes','menu','constructor','triggerCustomVersions','then','toDisposable','object','width','some','UniverSheetsConditionalFormattingPlugin','registerCommand','UniverSheetsPivotTablePlugin','_menuManagerService','__getInjector','_dataLoaderService','displayName','disposeUnit','LocaleService','triggerLoadVersions','Plugin','svg','getElementById','UniverEditHistoryViewerPlugin','UniverSheetsTable','left','decorate','exhaustSavingTask','edit-history-loader.config','UniverUIPlugin','set','UniverDocsUi','appendChild','UniverRenderEnginePlugin','_dialogService','style','currentTheme$','HistoryModeStatus','state$','disposeWithMe','UniverDesign','activeSheet$','symbol','reload','trim','setDarkMode','dataset','UniverSheetsUi','UniverProCollaboration','UNIVER_CONTAINER_ID_KEY','substring','editHistory.panel.reverting','url(#$1','Inject','RevertRevisionMutation','white','flat','editHistory.panel.title','UniverProCollaborationClient','univer-history-container-mobile','length','editHistory.panel.listFetchError','map','clear','mask','Univer','_historyManagerService','_setupSubUnitSync','Entered','DataLoaderService','setParam','MenuItemType','OPERATION','UniverSheetsDrawingUIPlugin','_sidebarService','_localeService','has','next','_initPlugins','clipPath','IImageIoService','UniverSheetsDrawingPlugin','IUniverInstanceService','632qZFqvE','asObservable','UniverProCollaborationClientUi','session','UniverSheetsHyperLink','whenReady','DependentOn','_pluginMap','_univerInstanceService','ToggleEditHistoryOperation','20qDWyYv','UniverSheetsTablePlugin','UniverSheetsFilterUi','UniverSheetsFilterUIPlugin','getCurrentUnitOfType','IConfigService','UniverSheetsShapeUIPlugin','createElement','close','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','removeAll','114378kYHVTo','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','forwardRef','IDialogService','unMountHistoryContent','BUTTON','WorkbookEditablePermission','CHANGESET_ACK','UniverSheetsChartPlugin','ICommandService','attrs','CollaborationController','getUnhiddenWorksheets','UniverSheetsNumfmtPlugin','UniverSheetSparklinePlugin','UniverSheetsMobileUIPlugin','onCommandExecuted','_configService','pluginName','RangeProtectionPermissionEditPoint','xlink:href','UniverDrawingUi','UniverDocsPlugin','workerURL','UniverSheetsShapePlugin','UniverFormulaEnginePlugin','prototype','UniverSheetsNumfmt','composePermission','_commandService','setTheme','getOwnPropertyDescriptor','_urlService','UniverDrawingPlugin','string','location','IRemoteInstanceService','@univerjs-pro/edit-history-loader','absolute','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','defs','_config','dispose','history-container','UniverSheetsDataValidationUIPlugin','UniverEditHistoryLoaderPlugin','mountHistoryContent','toPrimitive','from','UniverEditHistoryViewerMobilePlugin','MessageType','children','UniverDocs','historyUniver$','8384634PmSHfv','display','[MobileHistoryLoaderService]:\x20Plugin\x20','IURLService','onStarting','AuthzIoHttpService','get','type','ThemeService','add','UniverLicensePlugin','UniverSheetsDrawing','dispose$','getConfig','UniverSheetsDrawingUi','Workbook','CollaborationStatus','UniverSheetsUIPlugin','DisposableCollection','_updateURLWithCurrentState','fill','defineProperty','params','fromCollab','M0\x200H16V16H0z','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','terminate','18813650RXgowF','subunit','every','UniverSheetsHyperLinkPlugin','RangeProtectionRuleModel','UniverProSheetsChart','current','_initUniver','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','historyAIassistantEnabled','getUnitId','urlChange$','HistoryLoaderService','UniverSheetsDataValidationMobileUIPlugin','91833PNGGcI','_permissionService','div','takeUntil','getCurrentLocale','384859vehGRd','_disposableCollection','univerContainerId'];_0xc421=function(){return _0x1b4107;};return _0xc421();}(function(_0x456e23,_0xbd1bdc){const _0x43745e=_0x5603,_0x170a84=_0x456e23();while(!![]){try{const _0x549310=-parseInt(_0x43745e(0x1b8))/0x1+parseInt(_0x43745e(0x221))/0x2*(parseInt(_0x43745e(0x154))/0x3)+parseInt(_0x43745e(0x1ed))/0x4*(-parseInt(_0x43745e(0x149))/0x5)+-parseInt(_0x43745e(0x1fa))/0x6+parseInt(_0x43745e(0x1b3))/0x7*(-parseInt(_0x43745e(0x13f))/0x8)+parseInt(_0x43745e(0x18a))/0x9+parseInt(_0x43745e(0x1a5))/0xa;if(_0x549310===_0xbd1bdc)break;else _0x170a84['push'](_0x170a84['shift']());}catch(_0x57be7b){_0x170a84['push'](_0x170a84['shift']());}}}(_0xc421,0xa57ad),function(_0x4b5030,_0x392da7){const _0x377fc3=_0x5603;typeof exports==_0x377fc3(0xf3)&&typeof module<'u'?_0x392da7(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==_0x377fc3(0x219)&&define[_0x377fc3(0x1c8)]?define(_0x377fc3(0x1ad)[_0x377fc3(0x1f4)]('.'),_0x392da7):(_0x4b5030=typeof globalThis<'u'?globalThis:_0x4b5030||self,_0x392da7(_0x4b5030['UniverProEditHistoryLoader']={},_0x4b5030[_0x377fc3(0x1cf)],_0x4b5030[_0x377fc3(0xe6)],_0x4b5030[_0x377fc3(0x11c)],_0x4b5030[_0x377fc3(0x126)],_0x4b5030[_0x377fc3(0x1c6)],_0x4b5030[_0x377fc3(0x21a)],_0x4b5030[_0x377fc3(0x1aa)],_0x4b5030[_0x377fc3(0x216)],_0x4b5030[_0x377fc3(0x1ec)],_0x4b5030[_0x377fc3(0x22b)],_0x4b5030['UniverProSheetsShapeUi'],_0x4b5030[_0x377fc3(0x1ff)],_0x4b5030[_0x377fc3(0x1ef)],_0x4b5030['UniverDataValidation'],_0x4b5030[_0x377fc3(0x114)],_0x4b5030[_0x377fc3(0x188)],_0x4b5030[_0x377fc3(0x10b)],_0x4b5030[_0x377fc3(0x1dc)],_0x4b5030[_0x377fc3(0x169)],_0x4b5030[_0x377fc3(0x213)],_0x4b5030['UniverEngineRender'],_0x4b5030[_0x377fc3(0x1c3)],_0x4b5030['UniverRpc'],_0x4b5030[_0x377fc3(0x23b)],_0x4b5030[_0x377fc3(0x236)],_0x4b5030[_0x377fc3(0x22d)],_0x4b5030['UniverSheetsDataValidationUi'],_0x4b5030[_0x377fc3(0x195)],_0x4b5030[_0x377fc3(0x198)],_0x4b5030['UniverSheetsFilter'],_0x4b5030[_0x377fc3(0x14b)],_0x4b5030[_0x377fc3(0x212)],_0x4b5030['UniverSheetsFormulaUi'],_0x4b5030[_0x377fc3(0x143)],_0x4b5030['UniverSheetsHyperLinkUi'],_0x4b5030[_0x377fc3(0x16f)],_0x4b5030[_0x377fc3(0x104)],_0x4b5030[_0x377fc3(0x11b)],_0x4b5030['UniverUi'],_0x4b5030['rxjs'],_0x4b5030[_0x377fc3(0x141)],_0x4b5030[_0x377fc3(0x23c)]));}(this,function(_0x13809c,_0x33e503,_0x35661c,_0x587e83,_0x2d073d,_0x2cd9b2,_0x20dc7b,_0x537529,_0xfa2353,_0x59d915,_0x50c1d0,_0x4ebd30,_0x471932,_0x117d6c,_0x5e6771,_0x1e7111,_0x374f29,_0x21656f,_0x4ec52e,_0x562dae,_0x151834,_0x211ebb,_0x421909,_0x41a677,_0x61163e,_0xe96762,_0x37178a,_0xf2e32a,_0x3485dd,_0x571f78,_0x1cca9d,_0x35fb58,_0x706278,_0x6fa4b,_0xa5722f,_0x4ca489,_0x596208,_0x4c8959,_0x593aa7,_0x2ccfb5,_0x3f702b,_0x3407da,_0x57eb24){const _0x729e61=_0x5603;Object[_0x729e61(0x19f)](_0x13809c,Symbol['toStringTag'],{'value':'Module'});let _0x40521f=_0x729e61(0x108);Symbol(_0x40521f);let _0x44638a={};function _0x4c22f9(_0x1e89bc){'@babel/helpers - typeof';const _0x581014=_0x729e61;return _0x4c22f9=typeof Symbol==_0x581014(0x219)&&typeof Symbol[_0x581014(0x209)]==_0x581014(0x116)?function(_0x3e9a48){return typeof _0x3e9a48;}:function(_0x3e1d97){const _0x375cdb=_0x581014;return _0x3e1d97&&typeof Symbol==_0x375cdb(0x219)&&_0x3e1d97[_0x375cdb(0xef)]===Symbol&&_0x3e1d97!==Symbol[_0x375cdb(0x16e)]?'symbol':typeof _0x3e1d97;},_0x4c22f9(_0x1e89bc);}function _0x3f645d(_0x4cfa03,_0x58ec70){const _0x4e863e=_0x729e61;if(_0x4c22f9(_0x4cfa03)!=_0x4e863e(0xf3)||!_0x4cfa03)return _0x4cfa03;var _0x1d2c3c=_0x4cfa03[Symbol[_0x4e863e(0x183)]];if(_0x1d2c3c!==void 0x0){var _0xd7f9ff=_0x1d2c3c[_0x4e863e(0x1f2)](_0x4cfa03,_0x58ec70||'default');if(_0x4c22f9(_0xd7f9ff)!='object')return _0xd7f9ff;throw TypeError(_0x4e863e(0x1a3));}return(_0x58ec70===_0x4e863e(0x176)?String:Number)(_0x4cfa03);}function _0xced3c9(_0x198e9f){const _0x411839=_0x729e61;var _0x5d0797=_0x3f645d(_0x198e9f,'string');return _0x4c22f9(_0x5d0797)==_0x411839(0x116)?_0x5d0797:_0x5d0797+'';}function _0x3335cf(_0x3470ea,_0x22539a,_0x2a7b3a){return(_0x22539a=_0xced3c9(_0x22539a))in _0x3470ea?Object['defineProperty'](_0x3470ea,_0x22539a,{'value':_0x2a7b3a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3470ea[_0x22539a]=_0x2a7b3a,_0x3470ea;}function _0x3570da(_0x25da8c,_0x1ec68d){return function(_0x7feab1,_0xe35a91){_0x1ec68d(_0x7feab1,_0xe35a91,_0x25da8c);};}function _0x1ed2b5(_0x4daff6,_0x21c88f,_0x51bd05,_0x3410eb){const _0x78f938=_0x729e61;var _0x561527=arguments[_0x78f938(0x128)],_0x21e692=_0x561527<0x3?_0x21c88f:_0x3410eb===null?_0x3410eb=Object[_0x78f938(0x173)](_0x21c88f,_0x51bd05):_0x3410eb,_0x19b466;if(typeof Reflect=='object'&&typeof Reflect[_0x78f938(0x106)]==_0x78f938(0x219))_0x21e692=Reflect['decorate'](_0x4daff6,_0x21c88f,_0x51bd05,_0x3410eb);else{for(var _0xb525e6=_0x4daff6[_0x78f938(0x128)]-0x1;_0xb525e6>=0x0;_0xb525e6--)(_0x19b466=_0x4daff6[_0xb525e6])&&(_0x21e692=(_0x561527<0x3?_0x19b466(_0x21e692):_0x561527>0x3?_0x19b466(_0x21c88f,_0x51bd05,_0x21e692):_0x19b466(_0x21c88f,_0x51bd05))||_0x21e692);}return _0x561527>0x3&&_0x21e692&&Object[_0x78f938(0x19f)](_0x21c88f,_0x51bd05,_0x21e692),_0x21e692;}let _0x1834e9=_0x729e61(0x228),_0x4ef970='univer-history-container',_0x498d99=class extends _0x33e503['Disposable']{constructor(_0x312740,_0x407c17,_0x3786df,_0x10e4a4,_0x354cd0,_0x141d08,_0xc430c1,_0x1da464,_0x5c3774,_0x2f11aa){const _0x2ef84e=_0x729e61;super(),this[_0x2ef84e(0x137)]=_0x312740,this['_univerInstanceService']=_0x407c17,this[_0x2ef84e(0x165)]=_0x3786df,this[_0x2ef84e(0x171)]=_0x10e4a4,this['_messageService']=_0x354cd0,this['_permissionService']=_0x141d08,this[_0x2ef84e(0x1c4)]=_0xc430c1,this[_0x2ef84e(0x10e)]=_0x1da464,this[_0x2ef84e(0x136)]=_0x5c3774,this[_0x2ef84e(0x1ee)]=_0x2f11aa,_0x3335cf(this,_0x2ef84e(0x1d2),new _0x3f702b[(_0x2ef84e(0x1de))](null)),_0x3335cf(this,_0x2ef84e(0x189),this['_historyUniver$']['asObservable']()),_0x3335cf(this,_0x2ef84e(0x1b9),new _0x33e503[(_0x2ef84e(0x19c))]()),_0x3335cf(this,'_pluginMap',new Map()),_0x3335cf(this,_0x2ef84e(0x241),null),this['_init']();}get[_0x729e61(0x227)](){const _0x341e1c=_0x729e61;return this[_0x341e1c(0x1d2)][_0x341e1c(0x1dd)];}[_0x729e61(0x220)](){const _0x401689=_0x729e61;this[_0x401689(0x21f)](),this[_0x401689(0x13a)]();}['_initContainer'](){const _0x36dc1e=_0x729e61;var _0x1ef426;let _0x20ee5b=(_0x1ef426=this[_0x36dc1e(0x165)][_0x36dc1e(0x197)](_0x36dc1e(0x228)))==null?'univer-container':_0x1ef426,_0x2ab138=document['getElementById'](_0x20ee5b);if(!_0x2ab138)return;let _0x490eac=document['createElement']('div');_0x490eac['id']=_0x4ef970,_0x490eac[_0x36dc1e(0x11a)]['uComp']=_0x36dc1e(0x17f),_0x490eac[_0x36dc1e(0x10f)][_0x36dc1e(0x1d8)]=_0x36dc1e(0x17a),_0x490eac[_0x36dc1e(0x10f)]['top']='0',_0x490eac[_0x36dc1e(0x10f)][_0x36dc1e(0x105)]='0',_0x490eac[_0x36dc1e(0x10f)][_0x36dc1e(0xf4)]=_0x36dc1e(0x222),_0x490eac['style'][_0x36dc1e(0x206)]=_0x36dc1e(0x222),_0x490eac['style'][_0x36dc1e(0x23a)]='49',_0x490eac['style']['display']=_0x36dc1e(0x20d),_0x2ab138[_0x36dc1e(0x10c)](_0x490eac);}[_0x729e61(0x13a)](){const _0x318ee6=_0x729e61;[[_0x211ebb[_0x318ee6(0x10d)]],[_0x2ccfb5[_0x318ee6(0x109)],{'container':_0x4ef970,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2ccfb5[_0x318ee6(0x157)],null]]}],[_0x421909['UniverNetworkPlugin']],[_0x4ec52e[_0x318ee6(0x175)],{'override':[[_0x4ec52e[_0x318ee6(0x13c)],null]]}],[_0x374f29[_0x318ee6(0x16a)],{'hasScroll':!0x1}],[_0x21656f['UniverDocsUIPlugin']],[_0x596208['UniverSheetsNumfmtPlugin']],[_0x35661c['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x593aa7[_0x318ee6(0x19b)]],[_0x706278[_0x318ee6(0x1f1)]],[_0x6fa4b[_0x318ee6(0x237)]],[_0x587e83[_0x318ee6(0x23e)]],[_0x1cca9d['UniverSheetsFilterPlugin']],[_0x35fb58[_0x318ee6(0x14c)]],[_0x61163e[_0x318ee6(0xf6)]],[_0xe96762['UniverSheetsConditionalFormattingUIPlugin']],[_0xa5722f[_0x318ee6(0x1a8)]],[_0x4ca489[_0x318ee6(0x1be)]],[_0x5e6771[_0x318ee6(0x1c9)]],[_0x37178a['UniverSheetsDataValidationPlugin']],[_0xf2e32a[_0x318ee6(0x180)]],[_0x151834[_0x318ee6(0x16d)],{'notExecuteFormula':!0x0}],[_0x562dae['UniverDrawingUIPlugin']],[_0x3485dd[_0x318ee6(0x13d)]],[_0x571f78[_0x318ee6(0x135)]],[_0x471932[_0x318ee6(0x162)]],[_0x117d6c['UniverSheetSparklineUIPlugin']],[_0x537529[_0x318ee6(0x15c)]],[_0xfa2353[_0x318ee6(0x210)]],[_0x50c1d0['UniverSheetsShapePlugin']],[_0x4ebd30[_0x318ee6(0x14f)]],[_0x59d915['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x4c8959[_0x318ee6(0x14a)]]][_0x318ee6(0x1e9)](([_0x15976c,_0xac7ca])=>this[_0x318ee6(0x1f0)](_0x15976c,_0xac7ca));}['dispose'](){const _0x4e8d79=_0x729e61;super['dispose'](),this['unMountHistoryContent'](),this[_0x4e8d79(0x146)][_0x4e8d79(0x12b)]();}[_0x729e61(0x1f0)](_0x16d031,_0x46a68a,_0xcf7376){const _0xd02b04=_0x729e61;if(this['_pluginMap']['has'](_0x16d031[_0xd02b04(0x166)])&&!_0xcf7376)throw Error(_0xd02b04(0x203)+_0x16d031[_0xd02b04(0x166)]+_0xd02b04(0x1ea));this[_0xd02b04(0x146)][_0xd02b04(0x10a)](_0x16d031['pluginName'],[_0x16d031,_0x46a68a]);}[_0x729e61(0x20a)](){const _0x765513=_0x729e61;return Array['from'](this[_0x765513(0x146)]['values']());}[_0x729e61(0x182)](_0xfc6b50,_0x3b5b80){const _0x7cc806=_0x729e61;let _0x53eba1=document[_0x7cc806(0x102)](_0x4ef970);_0x53eba1&&(_0x53eba1[_0x7cc806(0x10f)]['display']='block',this[_0x7cc806(0x1ac)](_0xfc6b50,_0x4ef970,_0x3b5b80));}[_0x729e61(0x158)](){const _0x4c9e13=_0x729e61;var _0x30ef6b;this[_0x4c9e13(0x1b9)][_0x4c9e13(0x17e)](),(_0x30ef6b=this[_0x4c9e13(0x227)])==null||_0x30ef6b['dispose'](),this[_0x4c9e13(0x1d2)][_0x4c9e13(0x139)](null);let _0x34563e=document[_0x4c9e13(0x102)](_0x4ef970);_0x34563e&&(_0x34563e[_0x4c9e13(0x10f)]['display']=_0x4c9e13(0x20d),this[_0x4c9e13(0x241)]&&(this[_0x4c9e13(0x241)][_0x4c9e13(0x1a4)](),this[_0x4c9e13(0x241)]=null));}[_0x729e61(0x1ac)](_0x3316fe,_0x145e5c,_0x185a07){const _0x538e53=_0x729e61;var _0xfb4700,_0x14d737,_0x2f010a,_0x2d3ff5,_0x2ad61d;if(this['historyUniver'])return;let _0x46f667=new _0x33e503['Univer']({'locales':{[this[_0x538e53(0x137)][_0x538e53(0x1b7)]()]:this['_localeService'][_0x538e53(0x239)]()},'override':[[_0x33e503[_0x538e53(0x1e2)],{'useClass':_0x2d073d[_0x538e53(0x18f)]}]]}),_0x272b2e=_0x46f667[_0x538e53(0xfa)]();this[_0x538e53(0x113)](this[_0x538e53(0x1ee)][_0x538e53(0x21e)][_0x538e53(0x1fe)](_0x5bb935=>{const _0x474d45=_0x538e53;_0x272b2e[_0x474d45(0x190)](_0x33e503['ThemeService'])[_0x474d45(0x119)](_0x5bb935);})),this[_0x538e53(0x113)](this['_themeService'][_0x538e53(0x110)][_0x538e53(0x1fe)](_0x2aff6a=>{const _0x54a422=_0x538e53;_0x272b2e[_0x54a422(0x190)](_0x33e503[_0x54a422(0x192)])[_0x54a422(0x172)](_0x2aff6a);})),_0x272b2e[_0x538e53(0x190)](_0x33e503[_0x538e53(0xfe)])[_0x538e53(0xe4)](this['_localeService'][_0x538e53(0x1b7)]()),_0x272b2e['get'](_0x33e503[_0x538e53(0x14e)])['setConfig'](_0x2d073d[_0x538e53(0x17b)],this[_0x538e53(0x165)][_0x538e53(0x197)](_0x2d073d[_0x538e53(0x17b)]));let _0x262552=this[_0x538e53(0x165)][_0x538e53(0x197)](_0x20dc7b[_0x538e53(0x1f9)]);_0x262552&&_0x46f667[_0x538e53(0x1f0)](_0x20dc7b[_0x538e53(0x194)],{'license':_0x262552['ls']});let _0x403a70=(_0xfb4700=this[_0x538e53(0x165)][_0x538e53(0x197)]('edit-history-loader.config'))==null?void 0x0:_0xfb4700[_0x538e53(0x16b)],_0x53ab46=!!_0x403a70;_0x53ab46&&(this[_0x538e53(0x241)]=_0x403a70 instanceof Worker?_0x403a70:null,_0x46f667[_0x538e53(0x1f0)](_0x41a677['UniverRPCMainThreadPlugin'],{'workerURL':_0x403a70})),this[_0x538e53(0x146)][_0x538e53(0x1e9)](([_0x4a5a3d,_0x41d51e])=>{const _0x28ba38=_0x538e53;_0x46f667[_0x28ba38(0x1f0)](_0x4a5a3d,_0x41d51e);}),_0x46f667['registerPlugin'](_0x2cd9b2[_0x538e53(0x103)],{'historyListServerUrl':(_0x14d737=this[_0x538e53(0x165)][_0x538e53(0x197)](_0x538e53(0x108)))==null?void 0x0:_0x14d737['historyListServerUrl'],'historyPanelComponentKey':(_0x2f010a=this[_0x538e53(0x165)]['getConfig'](_0x538e53(0x108)))==null?void 0x0:_0x2f010a[_0x538e53(0xe8)],'historyPanelHidden':(_0x2d3ff5=this[_0x538e53(0x165)][_0x538e53(0x197)]('edit-history-loader.config'))==null?void 0x0:_0x2d3ff5['historyPanelHidden'],'historyAIassistantEnabled':(_0x2ad61d=this['_configService'][_0x538e53(0x197)](_0x538e53(0x108)))==null?void 0x0:_0x2ad61d[_0x538e53(0x1ae)]}),_0x272b2e[_0x538e53(0xe9)](_0x39fda5=>{const _0x528dd4=_0x538e53;this[_0x528dd4(0x20e)](_0x39fda5,_0x3316fe);}),this[_0x538e53(0x1d2)][_0x538e53(0x139)](_0x46f667);let _0x2632d1=_0x272b2e['get'](_0x2cd9b2[_0x538e53(0x1df)]),_0x53a4fa=this[_0x538e53(0xec)](_0x3316fe),_0x6ad293=()=>{const _0x5cc1d1=_0x538e53;_0x185a07?_0x2632d1[_0x5cc1d1(0xf0)](_0x3316fe,_0x145e5c,_0x53a4fa,_0x185a07):_0x2632d1['triggerLoadVersions'](_0x3316fe,_0x145e5c,_0x53a4fa);};if(this[_0x538e53(0x232)][_0x538e53(0x1d9)]({'content':this[_0x538e53(0x137)]['t'](_0x538e53(0x240)),'type':_0x1e7111['MessageType'][_0x538e53(0x238)]}),_0x53ab46)try{_0x272b2e[_0x538e53(0x190)](_0x41a677[_0x538e53(0x178)])[_0x538e53(0x144)]()[_0x538e53(0xf1)](()=>{_0x6ad293();});}catch{_0x6ad293();}else _0x6ad293();}['_initListener'](_0x5f2969,_0x1c7b6e){const _0x4e7807=_0x729e61;let _0x5670f2=_0x5f2969[_0x4e7807(0x190)](_0x2cd9b2[_0x4e7807(0x1df)]);this[_0x4e7807(0x1b9)][_0x4e7807(0x193)](_0x5670f2['status$'][_0x4e7807(0x1fe)](_0x5365f2=>{const _0x4b6f25=_0x4e7807;switch(_0x5365f2){case _0x2cd9b2['HistoryModeStatus'][_0x4b6f25(0x130)]:this['_dialogService'][_0x4b6f25(0x22a)](),this[_0x4b6f25(0x136)][_0x4b6f25(0x151)]();break;case _0x2cd9b2[_0x4b6f25(0x111)][_0x4b6f25(0x1ce)]:this['_commandService'][_0x4b6f25(0x231)](_0x346519['id']),this[_0x4b6f25(0x158)]();break;case _0x2cd9b2['HistoryModeStatus'][_0x4b6f25(0x1db)]:this[_0x4b6f25(0x158)](),this['_messageService'][_0x4b6f25(0x1d9)]({'content':this['_localeService']['t'](_0x4b6f25(0x129)),'type':_0x1e7111[_0x4b6f25(0x186)][_0x4b6f25(0x1db)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x4e7807(0x193)](_0x5670f2['revertRevision$'][_0x4e7807(0x1fe)](async _0xbafe64=>{const _0x5535f3=_0x4e7807;_0xbafe64&&this[_0x5535f3(0x171)][_0x5535f3(0x231)](_0x587e83[_0x5535f3(0x122)]['id'],{'unitId':_0x1c7b6e,'revision':_0xbafe64});}));}[_0x729e61(0xec)](_0x3da86f){const _0x44c4ba=_0x729e61;let _0x4e9956=this['_univerInstanceService'][_0x44c4ba(0x233)](_0x3da86f)[_0x44c4ba(0x21b)]()[_0x44c4ba(0x12a)](_0x5f263d=>_0x5f263d['getSheetId']()),_0xa673cf=new _0x35661c[(_0x44c4ba(0x15a))](_0x3da86f)['id'],_0x3364f3=_0x4e9956[_0x44c4ba(0x12a)](_0xde9e69=>new _0x35661c['WorksheetEditPermission'](_0x3da86f,_0xde9e69)['id']),_0x303b86=_0x4e9956[_0x44c4ba(0x12a)](_0x5415db=>this[_0x44c4ba(0x1c4)]['getSubunitRuleList'](_0x3da86f,_0x5415db)[_0x44c4ba(0x12a)](_0x510e94=>new _0x35661c[(_0x44c4ba(0x167))](_0x3da86f,_0x5415db,_0x510e94[_0x44c4ba(0x1e0)])['id']))[_0x44c4ba(0x124)](),_0x29090b=new _0x35661c[(_0x44c4ba(0x1bb))](_0x3da86f)['id'];return this[_0x44c4ba(0x1b4)][_0x44c4ba(0x170)]([_0xa673cf,..._0x3364f3,..._0x303b86,_0x29090b])[_0x44c4ba(0x1a7)](_0xc3a11d=>!!_0xc3a11d[_0x44c4ba(0x1dd)]);}};_0x498d99=_0x1ed2b5([_0x3570da(0x0,(0x0,_0x33e503[_0x729e61(0x121)])(_0x33e503[_0x729e61(0xfe)])),_0x3570da(0x1,_0x33e503[_0x729e61(0x13e)]),_0x3570da(0x2,_0x33e503[_0x729e61(0x14e)]),_0x3570da(0x3,_0x33e503['ICommandService']),_0x3570da(0x4,_0x2ccfb5['IMessageService']),_0x3570da(0x5,_0x33e503['IPermissionService']),_0x3570da(0x6,(0x0,_0x33e503[_0x729e61(0x121)])(_0x35661c['RangeProtectionRuleModel'])),_0x3570da(0x7,(0x0,_0x33e503[_0x729e61(0x121)])(_0x2ccfb5[_0x729e61(0x157)])),_0x3570da(0x8,(0x0,_0x33e503[_0x729e61(0x121)])(_0x2ccfb5['ISidebarService'])),_0x3570da(0x9,(0x0,_0x33e503[_0x729e61(0x121)])(_0x33e503['ThemeService']))],_0x498d99);let _0x5b6e1e={'id':_0x729e61(0xea),'type':_0x33e503['CommandType'][_0x729e61(0x134)],'handler':_0x2fcef9=>{const _0x4f20e2=_0x729e61;let _0xba13cd=_0x2fcef9[_0x4f20e2(0x190)](_0x498d99),{unitId:_0x141d44}=(0x0,_0x35661c[_0x4f20e2(0x1d7)])(_0x2fcef9[_0x4f20e2(0x190)](_0x33e503[_0x4f20e2(0x13e)]))||{};return _0x141d44?(_0xba13cd['mountHistoryContent'](_0x141d44),!0x0):!0x1;}},_0x346519={'id':_0x729e61(0x20f),'type':_0x33e503[_0x729e61(0x23f)][_0x729e61(0x134)],'handler':()=>!0x0};var _0x4eb0cf=_0x729e61(0x179),_0x100201=_0x729e61(0x1cc);function _0x960638({ref:_0x3bcda8,..._0x11f0e6}){const _0x5b1d0c=_0x729e61;let {icon:_0x8713a1,id:_0x1625bb,className:_0x387f27,extend:_0x467649,..._0x48ca44}=_0x11f0e6,_0x4420ce=('univerjs-icon\x20univerjs-icon-'+_0x1625bb+'\x20'+(_0x387f27||''))[_0x5b1d0c(0x118)](),_0x5df9d7=(0x0,_0x57eb24['useRef'])('_'+_0x74e732());return _0xa2b2fb(_0x8713a1,''+_0x1625bb,{'defIds':_0x8713a1['defIds'],'idSuffix':_0x5df9d7[_0x5b1d0c(0x1ab)]},{'ref':_0x3bcda8,'className':_0x4420ce,..._0x48ca44},_0x467649);}function _0xa2b2fb(_0xf3ef04,_0x26e5dc,_0x24d6a8,_0x2031c1,_0x8a1183){const _0x3e8dd0=_0x729e61;return(0x0,_0x57eb24[_0x3e8dd0(0x150)])(_0xf3ef04[_0x3e8dd0(0x1d4)],{'key':_0x26e5dc,..._0x4aefc3(_0xf3ef04,_0x24d6a8,_0x8a1183),..._0x2031c1},(_0x139020(_0xf3ef04,_0x24d6a8)[_0x3e8dd0(0x187)]||[])['map']((_0x1bbe37,_0x5730b0)=>_0xa2b2fb(_0x1bbe37,_0x26e5dc+'-'+_0xf3ef04[_0x3e8dd0(0x1d4)]+'-'+_0x5730b0,_0x24d6a8,void 0x0,_0x8a1183)));}function _0x4aefc3(_0x3e00e6,_0x249b45,_0x4aee18){const _0x21148e=_0x729e61;let _0x3ddad4={..._0x3e00e6[_0x21148e(0x15e)]};_0x4aee18!=null&&_0x4aee18[_0x21148e(0x1cb)]&&_0x3ddad4[_0x21148e(0x19e)]===_0x21148e(0x1cb)&&(_0x3ddad4[_0x21148e(0x19e)]=_0x4aee18[_0x21148e(0x1cb)]),_0x3e00e6[_0x21148e(0x1d4)]==='mask'&&_0x3ddad4['id']&&(_0x3ddad4['id']+=_0x249b45['idSuffix']),Object['entries'](_0x3ddad4)[_0x21148e(0x1e9)](([_0x4af37b,_0x597f59])=>{const _0x4504ae=_0x21148e;_0x4af37b===_0x4504ae(0x12c)&&typeof _0x597f59==_0x4504ae(0x176)&&(_0x3ddad4[_0x4af37b]=_0x597f59['replace'](/url\(#(.*)\)/,_0x4504ae(0x120)+_0x249b45[_0x4504ae(0x1c7)]+')'));});let {defIds:_0x547b88}=_0x249b45;return!_0x547b88||_0x547b88[_0x21148e(0x128)]===0x0?_0x3ddad4:(_0x3e00e6['tag']===_0x21148e(0x1d5)&&_0x3ddad4[_0x21148e(0x168)]&&(_0x3ddad4['xlink:href']+=_0x249b45['idSuffix']),Object['entries'](_0x3ddad4)['forEach'](([_0x27f2ff,_0x48d5fa])=>{const _0x5b64e5=_0x21148e;typeof _0x48d5fa==_0x5b64e5(0x176)&&(_0x3ddad4[_0x27f2ff]=_0x48d5fa['replace'](/url\(#(.*)\)/,'url(#$1'+_0x249b45[_0x5b64e5(0x1c7)]+')'));}),_0x3ddad4);}function _0x139020(_0x1c890b,_0x10c14a){const _0x5a3736=_0x729e61;var _0x281048;let {defIds:_0xc142e3}=_0x10c14a;return!_0xc142e3||_0xc142e3[_0x5a3736(0x128)]===0x0?_0x1c890b:_0x1c890b[_0x5a3736(0x1d4)]==='defs'&&(_0x281048=_0x1c890b[_0x5a3736(0x187)])!=null&&_0x281048['length']?{..._0x1c890b,'children':_0x1c890b[_0x5a3736(0x187)][_0x5a3736(0x12a)](_0x1f1766=>typeof _0x1f1766['attrs']['id']==_0x5a3736(0x176)&&_0xc142e3&&_0xc142e3[_0x5a3736(0xed)](_0x1f1766[_0x5a3736(0x15e)]['id'])?{..._0x1f1766,'attrs':{..._0x1f1766['attrs'],'id':_0x1f1766['attrs']['id']+_0x10c14a[_0x5a3736(0x1c7)]}}:_0x1f1766)}:_0x1c890b;}function _0x74e732(){const _0x512b90=_0x729e61;return Math['random']()['toString'](0x24)[_0x512b90(0x11e)](0x2,0x8);}_0x960638[_0x729e61(0xfc)]='UniverIcon';let _0x32f0b7={'tag':_0x729e61(0x101),'attrs':{'xmlns':_0x729e61(0x207),'fill':'none','viewBox':_0x729e61(0x21d),'width':_0x729e61(0x1c2),'height':_0x729e61(0x1c2)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x729e61(0x20c)},'children':[{'tag':'path','attrs':{'d':_0x729e61(0x204)}},{'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':_0x729e61(0x17c),'attrs':{},'children':[{'tag':_0x729e61(0x13b),'attrs':{'id':_0x729e61(0xe3)},'children':[{'tag':_0x729e61(0x215),'attrs':{'fill':_0x729e61(0x123),'d':_0x729e61(0x1a2)}}]}]}],'defIds':[_0x729e61(0xe3)]},_0x2658fe=(0x0,_0x57eb24[_0x729e61(0x156)])(function(_0x273df1,_0x539670){const _0x52cf7e=_0x729e61;return(0x0,_0x57eb24[_0x52cf7e(0x150)])(_0x960638,Object['assign']({},_0x273df1,{'id':'history-icon','ref':_0x539670,'icon':_0x32f0b7}));});_0x2658fe[_0x729e61(0xfc)]='HistoryIcon';function _0x2d8a9b(_0x8b78cf){const _0x51182f=_0x729e61;return{'id':_0x5b6e1e['id'],'type':_0x2ccfb5[_0x51182f(0x133)][_0x51182f(0x159)],'icon':_0x51182f(0x1fb),'tooltip':_0x51182f(0x125),'hidden$':(0x0,_0x2ccfb5[_0x51182f(0x234)])(_0x8b78cf,_0x33e503[_0x51182f(0x1d0)][_0x51182f(0x1ca)]),'disabled$':(0x0,_0x593aa7['getCurrentRangeDisable$'])(_0x8b78cf,{'workbookTypes':[_0x35661c[_0x51182f(0x225)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x313b4d={[_0x2ccfb5['RibbonStartGroup']['OTHERS']]:{[_0x5b6e1e['id']]:{'order':0.2,'menuItemFactory':_0x2d8a9b}}},_0x86f62=class extends _0x33e503[_0x729e61(0x1d1)]{constructor(_0x122d06,_0x7bb402,_0x301942,_0x43a8a7,_0x1922cc,_0x5c0823,_0x51c252,_0x48122c,_0x4f7c59,_0x3407d8,_0x36951a){const _0x2a7e9e=_0x729e61;super(),this[_0x2a7e9e(0x171)]=_0x122d06,this['_menuManagerService']=_0x7bb402,this[_0x2a7e9e(0x218)]=_0x301942,this[_0x2a7e9e(0x12e)]=_0x43a8a7,this['_localeService']=_0x1922cc,this[_0x2a7e9e(0x232)]=_0x5c0823,this[_0x2a7e9e(0x200)]=_0x51c252,this['_localCacheService']=_0x48122c,this[_0x2a7e9e(0xfb)]=_0x4f7c59,this[_0x2a7e9e(0x147)]=_0x3407d8,this['_urlService']=_0x36951a,_0x3335cf(this,_0x2a7e9e(0x1f3),null),this[_0x2a7e9e(0x220)]();}[_0x729e61(0x220)](){const _0x260035=_0x729e61;[_0x5b6e1e,_0x346519][_0x260035(0x1e9)](_0x313f80=>this[_0x260035(0x113)]((0x0,_0x33e503[_0x260035(0xf2)])(this[_0x260035(0x171)][_0x260035(0xf7)](_0x313f80)))),this[_0x260035(0x113)](this[_0x260035(0x218)][_0x260035(0x1e7)](_0x260035(0x1fb),_0x2658fe)),this[_0x260035(0xf9)][_0x260035(0x1fc)](_0x313b4d),this[_0x260035(0x113)](this[_0x260035(0x171)][_0x260035(0x164)](async(_0x561a3d,_0x11e5b3)=>{const _0x25ed61=_0x260035;if(_0x561a3d['id']===_0x587e83[_0x25ed61(0x122)]['id']){let {unitId:_0x452c5f}=_0x561a3d[_0x25ed61(0x1a0)];this[_0x25ed61(0x232)]['show']({'content':this[_0x25ed61(0x137)]['t'](_0x25ed61(0x11f)),'type':_0x1e7111[_0x25ed61(0x186)][_0x25ed61(0x238)],'duration':0x1388});let _0x1d3e4e=this['_collaborationController'][_0x25ed61(0x223)](_0x452c5f);_0x11e5b3!=null&&_0x11e5b3['fromCollab']?this[_0x25ed61(0x20b)](_0x1d3e4e,async()=>(setTimeout(()=>window[_0x25ed61(0x177)]['reload']()),!0x0),!0x0):this[_0x25ed61(0x20b)](_0x1d3e4e,async()=>{const _0x44db2c=_0x25ed61;let _0x45060c=this[_0x44db2c(0x147)][_0x44db2c(0x14d)](_0x33e503[_0x44db2c(0x1d0)][_0x44db2c(0x1ca)]),_0x34f2c1=_0x45060c==null?void 0x0:_0x45060c[_0x44db2c(0xe5)]();if(!_0x34f2c1)return!0x1;this[_0x44db2c(0x147)][_0x44db2c(0xfd)](_0x452c5f);let _0x48a930=await this[_0x44db2c(0xfb)]['loadUnit'](_0x452c5f,_0x33e503[_0x44db2c(0x1d0)]['UNIVER_SHEET']);return _0x48a930&&_0x48a930 instanceof _0x33e503[_0x44db2c(0x199)]?(await this[_0x44db2c(0x12f)](_0x48a930,_0x34f2c1['getSheetId']()),!0x0):!0x1;});}}));}[_0x729e61(0x20b)](_0x1f701f,_0x5a32d6,_0x2a2369=!0x1){const _0x33b8cf=_0x729e61;let _0x13fa6f=(0x0,_0x3f702b[_0x33b8cf(0x230)])([_0x1f701f[_0x33b8cf(0x142)][_0x33b8cf(0x1f5)],_0x1f701f['state$']])['subscribe'](async([_0x2d3f4c,_0x330fc6])=>{const _0x2ca7e9=_0x33b8cf;if(_0x2d3f4c['eventID']===_0x587e83[_0x2ca7e9(0x1bd)][_0x2ca7e9(0x15b)]&&(_0x330fc6==null?void 0x0:_0x330fc6[_0x2ca7e9(0x208)])===_0x2d073d[_0x2ca7e9(0x19a)][_0x2ca7e9(0x1f7)]&&_0x2d3f4c[_0x2ca7e9(0x201)][_0x2ca7e9(0xeb)][_0x2ca7e9(0xf5)](_0x43daac=>_0x43daac['id']===_0x587e83[_0x2ca7e9(0x122)]['id'])&&await _0x5a32d6()){var _0x483e93;this[_0x2ca7e9(0x12e)][_0x2ca7e9(0x158)](),_0x13fa6f[_0x2ca7e9(0x224)](),this['_revertErrorTimer']&&clearTimeout(this[_0x2ca7e9(0x1f3)]),await((_0x483e93=this[_0x2ca7e9(0x214)])==null?void 0x0:_0x483e93[_0x2ca7e9(0x107)]()),this['_messageService'][_0x2ca7e9(0x153)]();}});_0x2a2369&&(this[_0x33b8cf(0x1f3)]=setTimeout(()=>{const _0x49e82e=_0x33b8cf;_0x13fa6f[_0x49e82e(0x224)](),this[_0x49e82e(0x232)][_0x49e82e(0x1d9)]({'content':this[_0x49e82e(0x137)]['t']('editHistory.panel.revertFailed'),'type':_0x1e7111[_0x49e82e(0x186)]['Error'],'duration':0xbb8});},0x1388));}async[_0x729e61(0x12f)](_0x3cd8ee,_0x29c488){const _0x2c6eb6=_0x729e61;await this[_0x2c6eb6(0x1e4)](_0x3cd8ee,_0x29c488),_0x3cd8ee[_0x2c6eb6(0x115)]['pipe']((0x0,_0x3f702b[_0x2c6eb6(0x1b6)])(this[_0x2c6eb6(0x196)]))[_0x2c6eb6(0x1fe)](_0x535b5c=>{const _0x3cc3ed=_0x2c6eb6;_0x535b5c&&this[_0x3cc3ed(0x19d)](_0x535b5c);}),this[_0x2c6eb6(0x174)][_0x2c6eb6(0x1b0)]['pipe']((0x0,_0x3f702b['takeUntil'])(this[_0x2c6eb6(0x196)]))[_0x2c6eb6(0x1fe)](()=>this[_0x2c6eb6(0x1e4)](_0x3cd8ee,_0x29c488));}[_0x729e61(0x19d)](_0xd614c7,_0x5bce8c=!0x1){const _0x408ec5=_0x729e61;let _0x41eeb5=this[_0x408ec5(0x174)][_0x408ec5(0x22c)](_0x408ec5(0x1a6));_0xd614c7[_0x408ec5(0x202)]()!==_0x41eeb5&&this['_urlService'][_0x408ec5(0x132)]('subunit',_0xd614c7[_0x408ec5(0x202)](),_0x5bce8c);}async[_0x729e61(0x1e4)](_0x226a38,_0x392eae){const _0x44c2a4=_0x729e61;var _0x3916f8;if(!_0x392eae||!_0x226a38['getSheetBySheetId'](_0x392eae)){let _0x3b8119=_0x226a38['getUnhiddenWorksheets']()[0x0],_0x452817=_0x226a38['getSheetBySheetId'](_0x3b8119);if(!_0x452817)return;this[_0x44c2a4(0x19d)](_0x452817,!0x0),await this[_0x44c2a4(0x171)][_0x44c2a4(0x231)](_0x35661c['SetWorksheetActivateCommand']['id'],{'unitId':_0x226a38[_0x44c2a4(0x1af)](),'subUnitId':_0x3b8119});return;}((_0x3916f8=_0x226a38[_0x44c2a4(0xe5)]())==null?void 0x0:_0x3916f8[_0x44c2a4(0x202)]())!==_0x392eae&&await this[_0x44c2a4(0x171)][_0x44c2a4(0x231)](_0x35661c['SetWorksheetActivateCommand']['id'],{'unitId':_0x226a38[_0x44c2a4(0x1af)](),'subUnitId':_0x392eae});}};_0x86f62=_0x1ed2b5([_0x3570da(0x0,_0x33e503[_0x729e61(0x15d)]),_0x3570da(0x1,_0x2ccfb5[_0x729e61(0x21c)]),_0x3570da(0x2,(0x0,_0x33e503[_0x729e61(0x121)])(_0x2ccfb5[_0x729e61(0x23d)])),_0x3570da(0x3,(0x0,_0x33e503[_0x729e61(0x121)])(_0x498d99)),_0x3570da(0x4,(0x0,_0x33e503[_0x729e61(0x121)])(_0x33e503[_0x729e61(0xfe)])),_0x3570da(0x5,_0x2ccfb5[_0x729e61(0x211)]),_0x3570da(0x6,(0x0,_0x33e503['Inject'])(_0x2d073d[_0x729e61(0x15f)])),_0x3570da(0x7,_0x2d073d[_0x729e61(0x1e5)]),_0x3570da(0x8,(0x0,_0x33e503[_0x729e61(0x121)])(_0x2d073d[_0x729e61(0x131)])),_0x3570da(0x9,_0x33e503[_0x729e61(0x13e)]),_0x3570da(0xa,_0x3407da[_0x729e61(0x18d)])],_0x86f62);let _0x5eec79=_0x729e61(0x127),_0x2b9908=class extends _0x33e503[_0x729e61(0x1bf)]{constructor(_0x3bf24a,_0x258492,_0xde8044,_0x32e3d3,_0x28ccfc,_0x14d333,_0x426e85,_0x2d86f3,_0x25300e,_0x4d00e7){const _0x41f2d5=_0x729e61;super(),this[_0x41f2d5(0x137)]=_0x3bf24a,this[_0x41f2d5(0x147)]=_0x258492,this[_0x41f2d5(0x165)]=_0xde8044,this[_0x41f2d5(0x171)]=_0x32e3d3,this[_0x41f2d5(0x232)]=_0x28ccfc,this[_0x41f2d5(0x1b4)]=_0x14d333,this[_0x41f2d5(0x1c4)]=_0x426e85,this[_0x41f2d5(0x10e)]=_0x2d86f3,this['_sidebarService']=_0x25300e,this[_0x41f2d5(0x1ee)]=_0x4d00e7,_0x3335cf(this,'_historyUniver$',new _0x3f702b[(_0x41f2d5(0x1de))](null)),_0x3335cf(this,_0x41f2d5(0x189),this['_historyUniver$'][_0x41f2d5(0x140)]()),_0x3335cf(this,_0x41f2d5(0x1b9),new _0x33e503[(_0x41f2d5(0x19c))]()),_0x3335cf(this,'_pluginMap',new Map()),_0x3335cf(this,_0x41f2d5(0x241),null),this['_init']();}get[_0x729e61(0x227)](){const _0x10c5fd=_0x729e61;return this[_0x10c5fd(0x1d2)][_0x10c5fd(0x1dd)];}[_0x729e61(0x220)](){const _0xff64cb=_0x729e61;this[_0xff64cb(0x21f)](),this[_0xff64cb(0x13a)]();}['_initContainer'](){const _0x190ce6=_0x729e61;var _0x2e789a;let _0x3d5d1f=(_0x2e789a=this['_configService'][_0x190ce6(0x197)]('UNIVER_CONTAINER_ID'))==null?'univer-container':_0x2e789a,_0x48bc7b=document['getElementById'](_0x3d5d1f);if(!_0x48bc7b)return;let _0x415cd0=document[_0x190ce6(0x150)](_0x190ce6(0x1b5));_0x415cd0['id']=_0x5eec79,_0x415cd0['dataset'][_0x190ce6(0x1c5)]=_0x190ce6(0x17f),_0x415cd0[_0x190ce6(0x10f)][_0x190ce6(0x1d8)]=_0x190ce6(0x17a),_0x415cd0[_0x190ce6(0x10f)][_0x190ce6(0x1e3)]='0',_0x415cd0[_0x190ce6(0x10f)][_0x190ce6(0x105)]='0',_0x415cd0[_0x190ce6(0x10f)][_0x190ce6(0xf4)]=_0x190ce6(0x222),_0x415cd0[_0x190ce6(0x10f)]['height']=_0x190ce6(0x222),_0x415cd0[_0x190ce6(0x10f)][_0x190ce6(0x23a)]='49',_0x415cd0[_0x190ce6(0x10f)][_0x190ce6(0x18b)]=_0x190ce6(0x20d),_0x48bc7b['appendChild'](_0x415cd0);}['_initPlugins'](){const _0x290f3e=_0x729e61;[[_0x211ebb[_0x290f3e(0x10d)]],[_0x2ccfb5[_0x290f3e(0xe7)],{'container':_0x5eec79,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2ccfb5['IDialogService'],null]]}],[_0x421909['UniverNetworkPlugin']],[_0x4ec52e['UniverDrawingPlugin'],{'override':[[_0x4ec52e[_0x290f3e(0x13c)],null]]}],[_0x374f29[_0x290f3e(0x16a)],{'hasScroll':!0x1}],[_0x21656f[_0x290f3e(0x22e)]],[_0x596208[_0x290f3e(0x161)]],[_0x35661c['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x593aa7[_0x290f3e(0x163)]],[_0x706278[_0x290f3e(0x1f1)]],[_0x6fa4b[_0x290f3e(0x237)]],[_0x587e83[_0x290f3e(0x23e)]],[_0x1cca9d['UniverSheetsFilterPlugin']],[_0x61163e['UniverSheetsConditionalFormattingPlugin']],[_0xa5722f[_0x290f3e(0x1a8)]],[_0x4ca489[_0x290f3e(0x1be)]],[_0x5e6771[_0x290f3e(0x1c9)]],[_0x37178a['UniverSheetsDataValidationPlugin']],[_0xf2e32a[_0x290f3e(0x1b2)]],[_0x151834['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x562dae[_0x290f3e(0x229)]],[_0x3485dd[_0x290f3e(0x13d)]],[_0x571f78['UniverSheetsDrawingUIPlugin']],[_0x471932[_0x290f3e(0x162)]],[_0x117d6c[_0x290f3e(0x22f)]],[_0x537529[_0x290f3e(0x15c)]],[_0xfa2353[_0x290f3e(0x210)]],[_0x50c1d0[_0x290f3e(0x16c)]],[_0x4ebd30[_0x290f3e(0x14f)]],[_0x59d915[_0x290f3e(0xf8)],{'notExecuteFormula':!0x0}],[_0x4c8959[_0x290f3e(0x14a)]]][_0x290f3e(0x1e9)](([_0x7ad7bd,_0x5669c9])=>this[_0x290f3e(0x1f0)](_0x7ad7bd,_0x5669c9));}[_0x729e61(0x17e)](){const _0x468ee7=_0x729e61;super[_0x468ee7(0x17e)](),this[_0x468ee7(0x158)](),this[_0x468ee7(0x146)][_0x468ee7(0x12b)]();}['registerPlugin'](_0x2ee6ff,_0x30c711,_0x23baf9){const _0x3e05eb=_0x729e61;if(this[_0x3e05eb(0x146)][_0x3e05eb(0x138)](_0x2ee6ff[_0x3e05eb(0x166)])&&!_0x23baf9)throw Error(_0x3e05eb(0x18c)+_0x2ee6ff[_0x3e05eb(0x166)]+_0x3e05eb(0x1ea));this['_pluginMap'][_0x3e05eb(0x10a)](_0x2ee6ff[_0x3e05eb(0x166)],[_0x2ee6ff,_0x30c711]);}[_0x729e61(0x20a)](){const _0x238fcb=_0x729e61;return Array[_0x238fcb(0x184)](this[_0x238fcb(0x146)]['values']());}[_0x729e61(0x182)](_0x2a746b,_0x330e45){const _0x407d40=_0x729e61;let _0x291713=document[_0x407d40(0x102)](_0x5eec79);_0x291713&&(_0x291713['style']['display']='block',this['_initUniver'](_0x2a746b,_0x5eec79,_0x330e45));}['unMountHistoryContent'](){const _0x5b02fb=_0x729e61;var _0xf47955;this['_disposableCollection'][_0x5b02fb(0x17e)](),(_0xf47955=this[_0x5b02fb(0x227)])==null||_0xf47955[_0x5b02fb(0x17e)](),this[_0x5b02fb(0x1d2)][_0x5b02fb(0x139)](null);let _0x19bead=document['getElementById'](_0x5eec79);_0x19bead&&(_0x19bead[_0x5b02fb(0x10f)][_0x5b02fb(0x18b)]=_0x5b02fb(0x20d),this[_0x5b02fb(0x241)]&&(this['_internalWebWorker'][_0x5b02fb(0x1a4)](),this[_0x5b02fb(0x241)]=null));}[_0x729e61(0x1ac)](_0x38024a,_0x49ad81,_0x196242){const _0x2964e6=_0x729e61;var _0x3403d2,_0x364bbe,_0x2d2f86,_0x81c22b;if(this[_0x2964e6(0x227)])return;let _0x3bb341=new _0x33e503[(_0x2964e6(0x12d))]({'locales':{[this[_0x2964e6(0x137)]['getCurrentLocale']()]:this[_0x2964e6(0x137)]['getLocales']()},'override':[[_0x33e503['IAuthzIoService'],{'useClass':_0x2d073d[_0x2964e6(0x18f)]}]]}),_0x345390=_0x3bb341[_0x2964e6(0xfa)]();this['disposeWithMe'](this[_0x2964e6(0x1ee)][_0x2964e6(0x21e)][_0x2964e6(0x1fe)](_0x50a5fe=>{const _0xe2fd2d=_0x2964e6;_0x345390[_0xe2fd2d(0x190)](_0x33e503[_0xe2fd2d(0x192)])[_0xe2fd2d(0x119)](_0x50a5fe);})),this[_0x2964e6(0x113)](this['_themeService'][_0x2964e6(0x110)][_0x2964e6(0x1fe)](_0x16cc68=>{const _0x2bb869=_0x2964e6;_0x345390[_0x2bb869(0x190)](_0x33e503['ThemeService'])[_0x2bb869(0x172)](_0x16cc68);})),_0x345390[_0x2964e6(0x190)](_0x33e503[_0x2964e6(0xfe)])[_0x2964e6(0xe4)](this[_0x2964e6(0x137)][_0x2964e6(0x1b7)]()),_0x345390[_0x2964e6(0x190)](_0x33e503[_0x2964e6(0x14e)])[_0x2964e6(0x1d3)](_0x2d073d[_0x2964e6(0x17b)],this[_0x2964e6(0x165)][_0x2964e6(0x197)](_0x2d073d[_0x2964e6(0x17b)]));let _0x30b295=this[_0x2964e6(0x165)][_0x2964e6(0x197)](_0x20dc7b[_0x2964e6(0x1f9)]);_0x30b295&&_0x3bb341[_0x2964e6(0x1f0)](_0x20dc7b[_0x2964e6(0x194)],{'license':_0x30b295['ls']});let _0x3abd1d=(_0x3403d2=this['_configService']['getConfig'](_0x2964e6(0x108)))==null?void 0x0:_0x3403d2[_0x2964e6(0x16b)],_0x3c9977=!!_0x3abd1d;_0x3c9977&&(this[_0x2964e6(0x241)]=_0x3abd1d instanceof Worker?_0x3abd1d:null,_0x3bb341['registerPlugin'](_0x41a677['UniverRPCMainThreadPlugin'],{'workerURL':_0x3abd1d})),this[_0x2964e6(0x146)][_0x2964e6(0x1e9)](([_0x474808,_0x3336b4])=>{const _0x4d977f=_0x2964e6;_0x3bb341[_0x4d977f(0x1f0)](_0x474808,_0x3336b4);}),_0x3bb341[_0x2964e6(0x1f0)](_0x2cd9b2[_0x2964e6(0x185)],{'historyListServerUrl':(_0x364bbe=this[_0x2964e6(0x165)][_0x2964e6(0x197)](_0x2964e6(0x108)))==null?void 0x0:_0x364bbe['historyListServerUrl'],'historyPanelComponentKey':(_0x2d2f86=this[_0x2964e6(0x165)][_0x2964e6(0x197)]('edit-history-loader.config'))==null?void 0x0:_0x2d2f86['historyPanelComponentKey'],'historyPanelHidden':(_0x81c22b=this[_0x2964e6(0x165)][_0x2964e6(0x197)](_0x2964e6(0x108)))==null?void 0x0:_0x81c22b[_0x2964e6(0x1da)]}),_0x345390[_0x2964e6(0xe9)](_0x5889c0=>{const _0x32e818=_0x2964e6;this[_0x32e818(0x20e)](_0x5889c0,_0x38024a);}),this[_0x2964e6(0x1d2)][_0x2964e6(0x139)](_0x3bb341);let _0x5b6c96=_0x345390['get'](_0x2cd9b2[_0x2964e6(0x1df)]),_0x54c0df=this[_0x2964e6(0xec)](_0x38024a),_0x411590=()=>{const _0x50fe76=_0x2964e6;_0x196242?_0x5b6c96[_0x50fe76(0xf0)](_0x38024a,_0x49ad81,_0x54c0df,_0x196242):_0x5b6c96[_0x50fe76(0xff)](_0x38024a,_0x49ad81,_0x54c0df);};if(this[_0x2964e6(0x232)][_0x2964e6(0x1d9)]({'content':this[_0x2964e6(0x137)]['t']('editHistory.info.initializing'),'type':_0x1e7111[_0x2964e6(0x186)][_0x2964e6(0x238)]}),_0x3c9977)try{_0x345390['get'](_0x41a677['IRemoteInstanceService'])[_0x2964e6(0x144)]()[_0x2964e6(0xf1)](()=>{_0x411590();});}catch{_0x411590();}else _0x411590();}[_0x729e61(0x20e)](_0x4f9203,_0x1690bb){const _0x5143c2=_0x729e61;let _0x52536e=_0x4f9203[_0x5143c2(0x190)](_0x2cd9b2[_0x5143c2(0x1df)]);this[_0x5143c2(0x1b9)][_0x5143c2(0x193)](_0x52536e[_0x5143c2(0x1f8)][_0x5143c2(0x1fe)](_0x3ff021=>{const _0x4683ae=_0x5143c2;switch(_0x3ff021){case _0x2cd9b2[_0x4683ae(0x111)][_0x4683ae(0x130)]:this[_0x4683ae(0x10e)]['closeAll'](),this['_sidebarService'][_0x4683ae(0x151)]();break;case _0x2cd9b2[_0x4683ae(0x111)][_0x4683ae(0x1ce)]:this['_commandService'][_0x4683ae(0x231)](_0x346519['id']),this[_0x4683ae(0x158)]();break;case _0x2cd9b2['HistoryModeStatus'][_0x4683ae(0x1db)]:this[_0x4683ae(0x158)](),this['_messageService'][_0x4683ae(0x1d9)]({'content':this[_0x4683ae(0x137)]['t'](_0x4683ae(0x129)),'type':_0x1e7111[_0x4683ae(0x186)][_0x4683ae(0x1db)],'duration':0xbb8});break;default:break;}})),this[_0x5143c2(0x1b9)][_0x5143c2(0x193)](_0x52536e['revertRevision$']['subscribe'](async _0x304a93=>{const _0x421195=_0x5143c2;_0x304a93&&this[_0x421195(0x171)][_0x421195(0x231)](_0x587e83[_0x421195(0x122)]['id'],{'unitId':_0x1690bb,'revision':_0x304a93});}));}[_0x729e61(0xec)](_0x24507f){const _0xc13654=_0x729e61;let _0x2c0277=this[_0xc13654(0x147)][_0xc13654(0x233)](_0x24507f)['getSheets']()[_0xc13654(0x12a)](_0x59a340=>_0x59a340[_0xc13654(0x202)]()),_0x30e764=new _0x35661c[(_0xc13654(0x15a))](_0x24507f)['id'],_0x57a72c=_0x2c0277[_0xc13654(0x12a)](_0x2ebdc6=>new _0x35661c[(_0xc13654(0x226))](_0x24507f,_0x2ebdc6)['id']),_0x51d906=_0x2c0277[_0xc13654(0x12a)](_0x5352b5=>this[_0xc13654(0x1c4)]['getSubunitRuleList'](_0x24507f,_0x5352b5)[_0xc13654(0x12a)](_0x5267a1=>new _0x35661c[(_0xc13654(0x167))](_0x24507f,_0x5352b5,_0x5267a1[_0xc13654(0x1e0)])['id']))[_0xc13654(0x124)](),_0x5608d2=new _0x35661c[(_0xc13654(0x1bb))](_0x24507f)['id'];return this[_0xc13654(0x1b4)][_0xc13654(0x170)]([_0x30e764,..._0x57a72c,..._0x51d906,_0x5608d2])['every'](_0xbe16ad=>!!_0xbe16ad[_0xc13654(0x1dd)]);}};_0x2b9908=_0x1ed2b5([_0x3570da(0x0,(0x0,_0x33e503[_0x729e61(0x121)])(_0x33e503[_0x729e61(0xfe)])),_0x3570da(0x1,_0x33e503[_0x729e61(0x13e)]),_0x3570da(0x2,_0x33e503[_0x729e61(0x14e)]),_0x3570da(0x3,_0x33e503['ICommandService']),_0x3570da(0x4,_0x2ccfb5[_0x729e61(0x211)]),_0x3570da(0x5,_0x33e503[_0x729e61(0x1c1)]),_0x3570da(0x6,(0x0,_0x33e503[_0x729e61(0x121)])(_0x35661c[_0x729e61(0x1a9)])),_0x3570da(0x7,(0x0,_0x33e503[_0x729e61(0x121)])(_0x2ccfb5[_0x729e61(0x157)])),_0x3570da(0x8,(0x0,_0x33e503['Inject'])(_0x2ccfb5[_0x729e61(0x217)])),_0x3570da(0x9,(0x0,_0x33e503[_0x729e61(0x121)])(_0x33e503[_0x729e61(0x192)]))],_0x2b9908);let _0xa53a63=class extends _0x33e503[_0x729e61(0x100)]{constructor(_0x5f4faa=_0x44638a,_0x2194fe,_0x55632a){const _0x20d19d=_0x729e61;super(),this[_0x20d19d(0x17d)]=_0x5f4faa,this[_0x20d19d(0x1cd)]=_0x2194fe,this[_0x20d19d(0x165)]=_0x55632a;let {menu:_0x3042f5,..._0x3dab8b}=(0x0,_0x33e503[_0x20d19d(0x1e8)])({},_0x44638a,this['_config']);_0x3042f5&&this[_0x20d19d(0x165)]['setConfig'](_0x20d19d(0xee),_0x3042f5,{'merge':!0x0}),this[_0x20d19d(0x165)][_0x20d19d(0x1d3)](_0x40521f,_0x3dab8b),this[_0x20d19d(0x17d)][_0x20d19d(0x1ba)]&&this[_0x20d19d(0x165)][_0x20d19d(0x1d3)](_0x20d19d(0x228),this[_0x20d19d(0x17d)][_0x20d19d(0x1ba)]);}[_0x729e61(0x18e)](){const _0x30995b=_0x729e61;[[_0x498d99,{'useClass':_0x2b9908}],[_0x86f62]]['forEach'](_0x4d9b02=>this[_0x30995b(0x1cd)][_0x30995b(0x193)](_0x4d9b02));}[_0x729e61(0x1e6)](){const _0x1fd826=_0x729e61;this[_0x1fd826(0x1cd)][_0x1fd826(0x190)](_0x86f62);}};_0x3335cf(_0xa53a63,_0x729e61(0x191),_0x33e503[_0x729e61(0x1d0)][_0x729e61(0x235)]),_0x3335cf(_0xa53a63,_0x729e61(0x166),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),_0x3335cf(_0xa53a63,_0x729e61(0x1f6),_0x4eb0cf),_0x3335cf(_0xa53a63,_0x729e61(0x1bc),_0x100201),_0xa53a63=_0x1ed2b5([(0x0,_0x33e503['DependentOn'])(_0x20dc7b[_0x729e61(0x194)]),_0x3570da(0x1,(0x0,_0x33e503[_0x729e61(0x121)])(_0x33e503['Injector'])),_0x3570da(0x2,_0x33e503[_0x729e61(0x14e)])],_0xa53a63);let _0x48c3fb=class extends _0x33e503[_0x729e61(0x1d1)]{constructor(_0x11434e,_0x24922b,_0x3e0590,_0x46898f,_0x37beb0,_0x47a442,_0x1344b7,_0x3a32a2,_0x328c6b,_0x2e1a1f,_0x4587a6){const _0x135f5d=_0x729e61;super(),this['_commandService']=_0x11434e,this['_menuManagerService']=_0x24922b,this[_0x135f5d(0x218)]=_0x3e0590,this['_historyManagerService']=_0x46898f,this['_localeService']=_0x37beb0,this[_0x135f5d(0x232)]=_0x47a442,this[_0x135f5d(0x200)]=_0x1344b7,this[_0x135f5d(0x214)]=_0x3a32a2,this[_0x135f5d(0xfb)]=_0x328c6b,this['_univerInstanceService']=_0x2e1a1f,this[_0x135f5d(0x174)]=_0x4587a6,_0x3335cf(this,_0x135f5d(0x1f3),null),this['_init']();}[_0x729e61(0x220)](){const _0x48ad9e=_0x729e61;[_0x5b6e1e,_0x346519][_0x48ad9e(0x1e9)](_0x4c5b69=>this[_0x48ad9e(0x113)]((0x0,_0x33e503[_0x48ad9e(0xf2)])(this['_commandService'][_0x48ad9e(0xf7)](_0x4c5b69)))),this[_0x48ad9e(0x113)](this['_componentManager']['register']('HistoryIcon',_0x2658fe)),this[_0x48ad9e(0xf9)][_0x48ad9e(0x1fc)](_0x313b4d),this[_0x48ad9e(0x113)](this[_0x48ad9e(0x171)][_0x48ad9e(0x164)](async(_0x2eb768,_0xbbaee)=>{const _0x109d20=_0x48ad9e;if(_0x2eb768['id']===_0x587e83[_0x109d20(0x122)]['id']){let {unitId:_0x3559e9}=_0x2eb768['params'];this['_messageService'][_0x109d20(0x1d9)]({'content':this[_0x109d20(0x137)]['t'](_0x109d20(0x11f)),'type':_0x1e7111['MessageType'][_0x109d20(0x238)],'duration':0x1388});let _0x4499cc=this['_collaborationController'][_0x109d20(0x223)](_0x3559e9);_0xbbaee!=null&&_0xbbaee[_0x109d20(0x1a1)]?this[_0x109d20(0x20b)](_0x4499cc,async()=>(setTimeout(()=>window[_0x109d20(0x177)][_0x109d20(0x117)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x4499cc,async()=>{const _0x565993=_0x109d20;let _0x37dbed=this['_univerInstanceService'][_0x565993(0x14d)](_0x33e503[_0x565993(0x1d0)][_0x565993(0x1ca)]),_0xa11abd=_0x37dbed==null?void 0x0:_0x37dbed[_0x565993(0xe5)]();if(!_0xa11abd)return!0x1;this[_0x565993(0x147)][_0x565993(0xfd)](_0x3559e9);let _0x212bad=await this['_dataLoaderService'][_0x565993(0x1eb)](_0x3559e9,_0x33e503[_0x565993(0x1d0)][_0x565993(0x1ca)]);return _0x212bad&&_0x212bad instanceof _0x33e503[_0x565993(0x199)]?(await this['_setupSubUnitSync'](_0x212bad,_0xa11abd[_0x565993(0x202)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x6fafa9,_0x503e71,_0x3efa21=!0x1){const _0x22f930=_0x729e61;let _0x45d759=(0x0,_0x3f702b[_0x22f930(0x230)])([_0x6fafa9[_0x22f930(0x142)][_0x22f930(0x1f5)],_0x6fafa9[_0x22f930(0x112)]])[_0x22f930(0x1fe)](async([_0x2d5bfc,_0x49c7fe])=>{const _0x4d7728=_0x22f930;if(_0x2d5bfc[_0x4d7728(0x205)]===_0x587e83[_0x4d7728(0x1bd)][_0x4d7728(0x15b)]&&(_0x49c7fe==null?void 0x0:_0x49c7fe['status'])===_0x2d073d[_0x4d7728(0x19a)][_0x4d7728(0x1f7)]&&_0x2d5bfc[_0x4d7728(0x201)][_0x4d7728(0xeb)][_0x4d7728(0xf5)](_0x460f24=>_0x460f24['id']===_0x587e83[_0x4d7728(0x122)]['id'])&&await _0x503e71()){var _0x4547b6;this[_0x4d7728(0x12e)][_0x4d7728(0x158)](),_0x45d759['unsubscribe'](),this[_0x4d7728(0x1f3)]&&clearTimeout(this['_revertErrorTimer']),await((_0x4547b6=this['_localCacheService'])==null?void 0x0:_0x4547b6[_0x4d7728(0x107)]());}});_0x3efa21&&(this[_0x22f930(0x1f3)]=setTimeout(()=>{const _0x25e86b=_0x22f930;_0x45d759[_0x25e86b(0x224)](),this['_messageService'][_0x25e86b(0x1d9)]({'content':this[_0x25e86b(0x137)]['t']('editHistory.panel.revertFailed'),'type':_0x1e7111['MessageType'][_0x25e86b(0x1db)],'duration':0xbb8});},0x1388));}async[_0x729e61(0x12f)](_0x381886,_0x3091ec){const _0x332186=_0x729e61;await this[_0x332186(0x1e4)](_0x381886,_0x3091ec),_0x381886[_0x332186(0x115)][_0x332186(0x1d6)]((0x0,_0x3f702b[_0x332186(0x1b6)])(this[_0x332186(0x196)]))[_0x332186(0x1fe)](_0x1432a5=>{const _0x1beb60=_0x332186;_0x1432a5&&this[_0x1beb60(0x19d)](_0x1432a5);}),this[_0x332186(0x174)][_0x332186(0x1b0)][_0x332186(0x1d6)]((0x0,_0x3f702b[_0x332186(0x1b6)])(this['dispose$']))[_0x332186(0x1fe)](()=>this['_updateSubUnitFromURLParams'](_0x381886,_0x3091ec));}[_0x729e61(0x19d)](_0x653766,_0x1bd178=!0x1){const _0x2658f2=_0x729e61;let _0x4e1ff2=this['_urlService'][_0x2658f2(0x22c)]('subunit');_0x653766[_0x2658f2(0x202)]()!==_0x4e1ff2&&this[_0x2658f2(0x174)]['setParam'](_0x2658f2(0x1a6),_0x653766['getSheetId'](),_0x1bd178);}async[_0x729e61(0x1e4)](_0x5c6e94,_0xaf006e){const _0x31334e=_0x729e61;var _0x306e11;if(!_0xaf006e||!_0x5c6e94[_0x31334e(0x1fd)](_0xaf006e)){let _0x2463d7=_0x5c6e94[_0x31334e(0x160)]()[0x0],_0x1b33ad=_0x5c6e94[_0x31334e(0x1fd)](_0x2463d7);if(!_0x1b33ad)return;this[_0x31334e(0x19d)](_0x1b33ad,!0x0),await this[_0x31334e(0x171)][_0x31334e(0x231)](_0x35661c['SetWorksheetActivateCommand']['id'],{'unitId':_0x5c6e94[_0x31334e(0x1af)](),'subUnitId':_0x2463d7});return;}((_0x306e11=_0x5c6e94['getActiveSheet']())==null?void 0x0:_0x306e11['getSheetId']())!==_0xaf006e&&await this[_0x31334e(0x171)][_0x31334e(0x231)](_0x35661c['SetWorksheetActivateCommand']['id'],{'unitId':_0x5c6e94['getUnitId'](),'subUnitId':_0xaf006e});}};_0x48c3fb=_0x1ed2b5([_0x3570da(0x0,_0x33e503[_0x729e61(0x15d)]),_0x3570da(0x1,_0x2ccfb5['IMenuManagerService']),_0x3570da(0x2,(0x0,_0x33e503[_0x729e61(0x121)])(_0x2ccfb5[_0x729e61(0x23d)])),_0x3570da(0x3,(0x0,_0x33e503[_0x729e61(0x121)])(_0x498d99)),_0x3570da(0x4,(0x0,_0x33e503[_0x729e61(0x121)])(_0x33e503[_0x729e61(0xfe)])),_0x3570da(0x5,_0x2ccfb5[_0x729e61(0x211)]),_0x3570da(0x6,(0x0,_0x33e503[_0x729e61(0x121)])(_0x2d073d[_0x729e61(0x15f)])),_0x3570da(0x7,_0x2d073d[_0x729e61(0x1e5)]),_0x3570da(0x8,(0x0,_0x33e503['Inject'])(_0x2d073d[_0x729e61(0x131)])),_0x3570da(0x9,_0x33e503[_0x729e61(0x13e)]),_0x3570da(0xa,_0x3407da[_0x729e61(0x18d)])],_0x48c3fb);let _0x1e25ca=class extends _0x33e503['Plugin']{constructor(_0x1ad356=_0x44638a,_0x369906,_0x410e54){const _0x48863c=_0x729e61;super(),this[_0x48863c(0x17d)]=_0x1ad356,this[_0x48863c(0x1cd)]=_0x369906,this[_0x48863c(0x165)]=_0x410e54;let {menu:_0x3d8e8c,..._0x464b1c}=(0x0,_0x33e503['merge'])({},_0x44638a,this[_0x48863c(0x17d)]);_0x3d8e8c&&this[_0x48863c(0x165)][_0x48863c(0x1d3)](_0x48863c(0xee),_0x3d8e8c,{'merge':!0x0}),this[_0x48863c(0x165)][_0x48863c(0x1d3)](_0x40521f,_0x464b1c),this['_config'][_0x48863c(0x1ba)]&&this['_configService'][_0x48863c(0x1d3)](_0x1834e9,this[_0x48863c(0x17d)][_0x48863c(0x1ba)]);}[_0x729e61(0x18e)](){const _0x6ff21f=_0x729e61;[[_0x498d99],[_0x48c3fb]][_0x6ff21f(0x1e9)](_0x292f62=>this[_0x6ff21f(0x1cd)]['add'](_0x292f62));}[_0x729e61(0x1e6)](){const _0x19eb00=_0x729e61;this[_0x19eb00(0x1cd)]['get'](_0x48c3fb);}};_0x3335cf(_0x1e25ca,_0x729e61(0x191),_0x33e503[_0x729e61(0x1d0)]['UNIVER_UNKNOWN']),_0x3335cf(_0x1e25ca,_0x729e61(0x166),_0x729e61(0x155)),_0x3335cf(_0x1e25ca,_0x729e61(0x1f6),_0x4eb0cf),_0x3335cf(_0x1e25ca,'version',_0x100201),_0x1e25ca=_0x1ed2b5([(0x0,_0x33e503[_0x729e61(0x145)])(_0x20dc7b['UniverLicensePlugin']),_0x3570da(0x1,(0x0,_0x33e503[_0x729e61(0x121)])(_0x33e503['Injector'])),_0x3570da(0x2,_0x33e503['IConfigService'])],_0x1e25ca),_0x13809c[_0x729e61(0x152)]=_0x40521f,Object[_0x729e61(0x19f)](_0x13809c,_0x729e61(0x1b1),{'enumerable':!0x0,'get':function(){return _0x498d99;}}),Object[_0x729e61(0x19f)](_0x13809c,_0x729e61(0x1c0),{'enumerable':!0x0,'get':function(){return _0x2b9908;}}),_0x13809c[_0x729e61(0x148)]=_0x5b6e1e,_0x13809c[_0x729e61(0x11d)]=_0x1834e9,_0x13809c[_0x729e61(0x1e1)]=_0x4ef970,Object[_0x729e61(0x19f)](_0x13809c,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return _0xa53a63;}}),Object['defineProperty'](_0x13809c,_0x729e61(0x181),{'enumerable':!0x0,'get':function(){return _0x1e25ca;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/edit-history-loader",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "private": false,
5
5
  "description": "Edit history loading integration for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -51,53 +51,53 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs/icons": "^1.1.1",
55
- "@univerjs-pro/collaboration": "0.23.0",
56
- "@univerjs-pro/collaboration-client": "0.23.0",
57
- "@univerjs-pro/collaboration-client-ui": "0.23.0",
58
- "@univerjs-pro/license": "0.23.0",
59
- "@univerjs-pro/edit-history-viewer": "0.23.0",
60
- "@univerjs-pro/sheets-chart-ui": "0.23.0",
61
- "@univerjs-pro/sheets-chart": "0.23.0",
62
- "@univerjs-pro/sheets-pivot": "0.23.0",
63
- "@univerjs-pro/sheets-shape-ui": "0.23.0",
64
- "@univerjs-pro/sheets-sparkline": "0.23.0",
65
- "@univerjs/core": "0.23.0",
66
- "@univerjs/data-validation": "0.23.0",
67
- "@univerjs-pro/sheets-shape": "0.23.0",
68
- "@univerjs/design": "0.23.0",
69
- "@univerjs/docs": "0.23.0",
70
- "@univerjs-pro/sheets-sparkline-ui": "0.23.0",
71
- "@univerjs/drawing": "0.23.0",
72
- "@univerjs/docs-ui": "0.23.0",
73
- "@univerjs/drawing-ui": "0.23.0",
74
- "@univerjs/engine-render": "0.23.0",
75
- "@univerjs/engine-formula": "0.23.0",
76
- "@univerjs/network": "0.23.0",
77
- "@univerjs/rpc": "0.23.0",
78
- "@univerjs/sheets": "0.23.0",
79
- "@univerjs/sheets-conditional-formatting-ui": "0.23.0",
80
- "@univerjs/sheets-conditional-formatting": "0.23.0",
81
- "@univerjs/sheets-data-validation": "0.23.0",
82
- "@univerjs/sheets-data-validation-ui": "0.23.0",
83
- "@univerjs/sheets-drawing-ui": "0.23.0",
84
- "@univerjs/sheets-filter": "0.23.0",
85
- "@univerjs/sheets-drawing": "0.23.0",
86
- "@univerjs/sheets-formula": "0.23.0",
87
- "@univerjs/sheets-filter-ui": "0.23.0",
88
- "@univerjs/sheets-hyper-link-ui": "0.23.0",
89
- "@univerjs/sheets-hyper-link": "0.23.0",
90
- "@univerjs/sheets-formula-ui": "0.23.0",
91
- "@univerjs/sheets-numfmt": "0.23.0",
92
- "@univerjs/sheets-table": "0.23.0",
93
- "@univerjs/ui": "0.23.0",
94
- "@univerjs/sheets-ui": "0.23.0"
54
+ "@univerjs/icons": "1.4.0",
55
+ "@univerjs-pro/collaboration": "0.24.0",
56
+ "@univerjs-pro/collaboration-client-ui": "0.24.0",
57
+ "@univerjs-pro/edit-history-viewer": "0.24.0",
58
+ "@univerjs-pro/collaboration-client": "0.24.0",
59
+ "@univerjs-pro/license": "0.24.0",
60
+ "@univerjs-pro/sheets-chart-ui": "0.24.0",
61
+ "@univerjs-pro/sheets-chart": "0.24.0",
62
+ "@univerjs-pro/sheets-pivot": "0.24.0",
63
+ "@univerjs-pro/sheets-sparkline": "0.24.0",
64
+ "@univerjs-pro/sheets-shape-ui": "0.24.0",
65
+ "@univerjs-pro/sheets-sparkline-ui": "0.24.0",
66
+ "@univerjs/core": "0.24.0",
67
+ "@univerjs-pro/sheets-shape": "0.24.0",
68
+ "@univerjs/design": "0.24.0",
69
+ "@univerjs/docs": "0.24.0",
70
+ "@univerjs/data-validation": "0.24.0",
71
+ "@univerjs/drawing": "0.24.0",
72
+ "@univerjs/drawing-ui": "0.24.0",
73
+ "@univerjs/docs-ui": "0.24.0",
74
+ "@univerjs/engine-formula": "0.24.0",
75
+ "@univerjs/engine-render": "0.24.0",
76
+ "@univerjs/network": "0.24.0",
77
+ "@univerjs/rpc": "0.24.0",
78
+ "@univerjs/sheets-conditional-formatting": "0.24.0",
79
+ "@univerjs/sheets-conditional-formatting-ui": "0.24.0",
80
+ "@univerjs/sheets": "0.24.0",
81
+ "@univerjs/sheets-data-validation": "0.24.0",
82
+ "@univerjs/sheets-data-validation-ui": "0.24.0",
83
+ "@univerjs/sheets-drawing": "0.24.0",
84
+ "@univerjs/sheets-drawing-ui": "0.24.0",
85
+ "@univerjs/sheets-filter": "0.24.0",
86
+ "@univerjs/sheets-formula": "0.24.0",
87
+ "@univerjs/sheets-filter-ui": "0.24.0",
88
+ "@univerjs/sheets-hyper-link": "0.24.0",
89
+ "@univerjs/sheets-formula-ui": "0.24.0",
90
+ "@univerjs/sheets-numfmt": "0.24.0",
91
+ "@univerjs/sheets-hyper-link-ui": "0.24.0",
92
+ "@univerjs/sheets-table": "0.24.0",
93
+ "@univerjs/sheets-ui": "0.24.0",
94
+ "@univerjs/ui": "0.24.0"
95
95
  },
96
96
  "devDependencies": {
97
97
  "rxjs": "7.8.2",
98
98
  "typescript": "^6.0.3",
99
- "vitest": "^4.1.4",
100
- "@univerjs-infra/shared": "0.23.0"
99
+ "vitest": "^4.1.6",
100
+ "@univerjs-infra/shared": "0.24.0"
101
101
  },
102
102
  "scripts": {
103
103
  "test": "vitest run",