@univerjs-pro/edit-history-loader 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/command/history.operate.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -1
- package/lib/types/controllers/history-menu.d.ts +2 -2
- package/lib/types/controllers/menu.schema.d.ts +1 -1
- package/lib/types/controllers/mobile-history-loader.controller.d.ts +25 -0
- package/lib/types/index.d.ts +3 -2
- package/lib/types/mobile-plugin.d.ts +14 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/history-loader.service.d.ts +3 -2
- package/lib/types/services/mobile-history-loader.service.d.ts +37 -0
- package/lib/umd/index.js +1 -1
- package/package.json +46 -47
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x44f9d9=_0x4d41;(function(_0x45cc59,_0xf6b433){const _0x34c504=_0x4d41,_0x62579f=_0x45cc59();while(!![]){try{const _0x20e9df=-parseInt(_0x34c504(0x25c))/0x1+-parseInt(_0x34c504(0x2a9))/0x2*(parseInt(_0x34c504(0x261))/0x3)+-parseInt(_0x34c504(0x254))/0x4+-parseInt(_0x34c504(0x28c))/0x5+-parseInt(_0x34c504(0x27d))/0x6+parseInt(_0x34c504(0x2c5))/0x7+parseInt(_0x34c504(0x2a0))/0x8*(parseInt(_0x34c504(0x235))/0x9);if(_0x20e9df===_0xf6b433)break;else _0x62579f['push'](_0x62579f['shift']());}catch(_0x164389){_0x62579f['push'](_0x62579f['shift']());}}}(_0xddd6,0x2adf7));var Q=Object[_0x44f9d9(0x2b6)],X=(_0x3a733d,_0x4f56b0,_0x208c14)=>_0x4f56b0 in _0x3a733d?Q(_0x3a733d,_0x4f56b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208c14}):_0x3a733d[_0x4f56b0]=_0x208c14,m=(_0x1fecc0,_0x48b1ff,_0x40c2d2)=>X(_0x1fecc0,typeof _0x48b1ff!=_0x44f9d9(0x248)?_0x48b1ff+'':_0x48b1ff,_0x40c2d2);Object[_0x44f9d9(0x2b6)](exports,Symbol[_0x44f9d9(0x2c2)],{'value':_0x44f9d9(0x208)});const o=require('@univerjs/core'),g=require('@univerjs/sheets'),U=require('@univerjs-pro/collaboration'),I=require('@univerjs-pro/collaboration-client'),p=require('@univerjs-pro/edit-history-viewer'),O=require('@univerjs-pro/license'),ee=require('@univerjs-pro/sheets-chart'),ie=require('@univerjs-pro/sheets-chart-ui'),te=require('@univerjs-pro/sheets-pivot'),re=require('@univerjs-pro/sheets-shape'),ne=require('@univerjs-pro/sheets-shape-ui'),se=require('@univerjs-pro/sheets-sparkline'),oe=require('@univerjs-pro/sheets-sparkline-ui'),ae=require('@univerjs/data-validation'),P=require('@univerjs/design'),ce=require('@univerjs/docs'),le=require('@univerjs/docs-ui'),F=require('@univerjs/drawing'),ue=require('@univerjs/drawing-ui'),he=require('@univerjs/engine-formula'),ge=require('@univerjs/engine-render'),de=require('@univerjs/network'),W=require('@univerjs/rpc'),ve=require('@univerjs/sheets-conditional-formatting'),_e=require('@univerjs/sheets-conditional-formatting-ui'),Se=require('@univerjs/sheets-data-validation'),me=require('@univerjs/sheets-data-validation-ui'),fe=require('@univerjs/sheets-drawing'),Ie=require('@univerjs/sheets-drawing-ui'),Ce=require('@univerjs/sheets-filter'),pe=require('@univerjs/sheets-filter-ui'),ye=require('@univerjs/sheets-formula'),Ue=require('@univerjs/sheets-formula-ui'),Ee=require('@univerjs/sheets-hyper-link'),Pe=require('@univerjs/sheets-hyper-link-ui'),be=require('@univerjs/sheets-numfmt'),Re=require('@univerjs/sheets-table'),G=require('@univerjs/sheets-ui'),d=require('@univerjs/ui'),E=require('rxjs'),Ne=require('@univerjs-pro/collaboration-client-ui'),b=require('react'),f=_0x44f9d9(0x1ed),x={};var Le=Object[_0x44f9d9(0x27c)],He=(_0x1b8a10,_0x52b3c2,_0x3849dd,_0x174d18)=>{for(var _0x2d597a=_0x174d18>0x1?void 0x0:_0x174d18?Le(_0x52b3c2,_0x3849dd):_0x52b3c2,_0x3e1d76=_0x1b8a10['length']-0x1,_0x12483e;_0x3e1d76>=0x0;_0x3e1d76--)(_0x12483e=_0x1b8a10[_0x3e1d76])&&(_0x2d597a=_0x12483e(_0x2d597a)||_0x2d597a);return _0x2d597a;},_=(_0x292460,_0x402b90)=>(_0x137f5a,_0x4d84b3)=>_0x402b90(_0x137f5a,_0x4d84b3,_0x292460);const Oe=_0x44f9d9(0x2c9),T='UNIVER_CONTAINER_ID',y='univer-history-container';exports[_0x44f9d9(0x2b0)]=class extends o[_0x44f9d9(0x202)]{constructor(_0x405637,_0x2d5d3e,_0x46718a,_0x232c51,_0x28cc7c,_0x58c06e,_0xcd91d9,_0x27a9e5,_0x4b40de,_0x1e93ed){const _0x354622=_0x44f9d9;super(),m(this,_0x354622(0x252),new E[(_0x354622(0x1f5))](null)),m(this,'historyUniver$',this[_0x354622(0x252)][_0x354622(0x21c)]()),m(this,_0x354622(0x2bd),new o[(_0x354622(0x25f))]()),m(this,_0x354622(0x29e),new Map()),m(this,'_internalWebWorker',null),(this['_localeService']=_0x405637,this[_0x354622(0x1ea)]=_0x2d5d3e,this['_configService']=_0x46718a,this[_0x354622(0x27a)]=_0x232c51,this[_0x354622(0x29a)]=_0x28cc7c,this[_0x354622(0x1fe)]=_0x58c06e,this[_0x354622(0x1dc)]=_0xcd91d9,this[_0x354622(0x269)]=_0x27a9e5,this['_sidebarService']=_0x4b40de,this[_0x354622(0x292)]=_0x1e93ed,this[_0x354622(0x28f)]());}get[_0x44f9d9(0x298)](){const _0x489ccc=_0x44f9d9;return this[_0x489ccc(0x252)][_0x489ccc(0x262)];}[_0x44f9d9(0x28f)](){const _0x330136=_0x44f9d9;this[_0x330136(0x23e)](),this[_0x330136(0x22f)]();}[_0x44f9d9(0x23e)](){const _0xd70edf=_0x44f9d9;var _0x499847;const _0x57a715=(_0x499847=this[_0xd70edf(0x1cf)][_0xd70edf(0x24a)](T))!=null?_0x499847:Oe,_0x24e120=document[_0xd70edf(0x277)](_0x57a715);if(!_0x24e120)return;const _0x1ac18f=document['createElement'](_0xd70edf(0x2a5));_0x1ac18f['id']=y,_0x1ac18f[_0xd70edf(0x1c8)][_0xd70edf(0x20c)]=_0xd70edf(0x274),_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x2a1)]=_0xd70edf(0x234),_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x25d)]='0',_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x20f)]='0',_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x215)]=_0xd70edf(0x25a),_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x1e2)]=_0xd70edf(0x25a),_0x1ac18f[_0xd70edf(0x279)][_0xd70edf(0x22a)]='49',_0x1ac18f['style'][_0xd70edf(0x1c4)]=_0xd70edf(0x1ff),_0x24e120[_0xd70edf(0x1bd)](_0x1ac18f);}[_0x44f9d9(0x22f)](){const _0x4071a8=_0x44f9d9;[[ge['UniverRenderEnginePlugin']],[d[_0x4071a8(0x21e)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[d[_0x4071a8(0x2cb)],null]]}],[de[_0x4071a8(0x224)]],[F['UniverDrawingPlugin'],{'override':[[F[_0x4071a8(0x1e6)],null]]}],[ce[_0x4071a8(0x256)],{'hasScroll':!0x1}],[le[_0x4071a8(0x253)]],[be[_0x4071a8(0x2b1)]],[g[_0x4071a8(0x299)],{'notExecuteFormula':!0x0}],[G[_0x4071a8(0x2ce)]],[ye[_0x4071a8(0x23a)]],[Ue[_0x4071a8(0x205)]],[U[_0x4071a8(0x247)]],[Ce[_0x4071a8(0x2d4)]],[pe['UniverSheetsFilterUIPlugin']],[ve[_0x4071a8(0x1f7)]],[_e[_0x4071a8(0x1c2)]],[Ee[_0x4071a8(0x2d7)]],[Pe[_0x4071a8(0x296)]],[ae[_0x4071a8(0x1f1)]],[Se['UniverSheetsDataValidationPlugin']],[me[_0x4071a8(0x2c0)]],[he[_0x4071a8(0x22b)],{'notExecuteFormula':!0x0}],[ue[_0x4071a8(0x251)]],[fe[_0x4071a8(0x290)]],[Ie[_0x4071a8(0x1f0)]],[se[_0x4071a8(0x1db)]],[oe[_0x4071a8(0x28d)]],[ee['UniverSheetsChartPlugin']],[ie['UniverSheetsChartUIPlugin']],[re[_0x4071a8(0x2de)]],[ne[_0x4071a8(0x1d4)]],[te[_0x4071a8(0x257)],{'notExecuteFormula':!0x0}],[Re['UniverSheetsTablePlugin']]]['forEach'](([_0xf0d728,_0x1a94a3])=>this[_0x4071a8(0x27e)](_0xf0d728,_0x1a94a3));}[_0x44f9d9(0x2b7)](){const _0x478c00=_0x44f9d9;super['dispose'](),this[_0x478c00(0x288)](),this[_0x478c00(0x29e)]['clear']();}['registerPlugin'](_0x13549e,_0x3a8db0,_0x3abb0f){const _0x122e91=_0x44f9d9;if(this[_0x122e91(0x29e)]['has'](_0x13549e[_0x122e91(0x289)])&&!_0x3abb0f)throw new Error(_0x122e91(0x21d)+_0x13549e[_0x122e91(0x289)]+_0x122e91(0x22c));this['_pluginMap']['set'](_0x13549e[_0x122e91(0x289)],[_0x13549e,_0x3a8db0]);}[_0x44f9d9(0x285)](){const _0x5f265d=_0x44f9d9;return Array[_0x5f265d(0x259)](this[_0x5f265d(0x29e)][_0x5f265d(0x1d3)]());}[_0x44f9d9(0x29c)](_0x469a28,_0x3eda02){const _0x5f552f=_0x44f9d9,_0xb208ba=document[_0x5f552f(0x277)](y);_0xb208ba&&(_0xb208ba[_0x5f552f(0x279)][_0x5f552f(0x1c4)]=_0x5f552f(0x1fc),this[_0x5f552f(0x266)](_0x469a28,y,_0x3eda02));}['unMountHistoryContent'](){const _0x3fd60e=_0x44f9d9;var _0x4c78f8;this[_0x3fd60e(0x2bd)][_0x3fd60e(0x2b7)](),(_0x4c78f8=this[_0x3fd60e(0x298)])==null||_0x4c78f8[_0x3fd60e(0x2b7)](),this[_0x3fd60e(0x252)][_0x3fd60e(0x2cd)](null);const _0x48e599=document[_0x3fd60e(0x277)](y);_0x48e599&&(_0x48e599[_0x3fd60e(0x279)][_0x3fd60e(0x1c4)]=_0x3fd60e(0x1ff),this[_0x3fd60e(0x27b)]&&(this[_0x3fd60e(0x27b)][_0x3fd60e(0x24e)](),this[_0x3fd60e(0x27b)]=null));}[_0x44f9d9(0x266)](_0x55aaa5,_0x5abb30,_0x791a9){const _0x51dc9b=_0x44f9d9;var _0x255a3f,_0x53902c,_0x5418f5,_0x59db0a,_0x5259c7;if(this[_0x51dc9b(0x298)])return;const _0x58a3d2=new o[(_0x51dc9b(0x1c9))]({'locales':{[this[_0x51dc9b(0x287)][_0x51dc9b(0x286)]()]:this[_0x51dc9b(0x287)][_0x51dc9b(0x1ef)]()},'override':[[o[_0x51dc9b(0x23c)],{'useClass':I[_0x51dc9b(0x295)]}]]}),_0x36af74=_0x58a3d2[_0x51dc9b(0x23d)]();this['disposeWithMe'](this[_0x51dc9b(0x292)][_0x51dc9b(0x2d0)]['subscribe'](_0x16d305=>{const _0x3af869=_0x51dc9b;_0x36af74[_0x3af869(0x232)](o[_0x3af869(0x218)])['setDarkMode'](_0x16d305);})),this[_0x51dc9b(0x270)](this[_0x51dc9b(0x292)][_0x51dc9b(0x1fb)]['subscribe'](_0x47f6eb=>{const _0x3ee24e=_0x51dc9b;_0x36af74['get'](o[_0x3ee24e(0x218)])[_0x3ee24e(0x2a4)](_0x47f6eb);})),_0x36af74['get'](o[_0x51dc9b(0x2aa)])[_0x51dc9b(0x24d)](this[_0x51dc9b(0x287)][_0x51dc9b(0x286)]()),_0x36af74[_0x51dc9b(0x232)](o[_0x51dc9b(0x20d)])[_0x51dc9b(0x24b)](I[_0x51dc9b(0x2d8)],this[_0x51dc9b(0x1cf)][_0x51dc9b(0x24a)](I[_0x51dc9b(0x2d8)]));const _0x32306d=this['_configService']['getConfig'](O[_0x51dc9b(0x268)]);_0x32306d&&_0x58a3d2[_0x51dc9b(0x27e)](O[_0x51dc9b(0x210)],{'license':_0x32306d['ls']});const _0x5ae51a=(_0x255a3f=this[_0x51dc9b(0x1cf)][_0x51dc9b(0x24a)](f))==null?void 0x0:_0x255a3f[_0x51dc9b(0x1d8)],_0xfeb7a6=!!_0x5ae51a;_0xfeb7a6&&(this[_0x51dc9b(0x27b)]=_0x5ae51a instanceof Worker?_0x5ae51a:null,_0x58a3d2[_0x51dc9b(0x27e)](W[_0x51dc9b(0x209)],{'workerURL':_0x5ae51a})),this[_0x51dc9b(0x29e)][_0x51dc9b(0x265)](([_0x5b85b8,_0x459551])=>{const _0x29b11d=_0x51dc9b;_0x58a3d2[_0x29b11d(0x27e)](_0x5b85b8,_0x459551);}),_0x58a3d2[_0x51dc9b(0x27e)](p[_0x51dc9b(0x2c3)],{'historyListServerUrl':(_0x53902c=this[_0x51dc9b(0x1cf)]['getConfig'](f))==null?void 0x0:_0x53902c['historyListServerUrl'],'historyPanelComponentKey':(_0x5418f5=this['_configService'][_0x51dc9b(0x24a)](f))==null?void 0x0:_0x5418f5[_0x51dc9b(0x2bb)],'historyPanelHidden':(_0x59db0a=this[_0x51dc9b(0x1cf)][_0x51dc9b(0x24a)](f))==null?void 0x0:_0x59db0a[_0x51dc9b(0x221)],'historyAIassistantEnabled':(_0x5259c7=this[_0x51dc9b(0x1cf)][_0x51dc9b(0x24a)](f))==null?void 0x0:_0x5259c7[_0x51dc9b(0x200)]}),_0x36af74[_0x51dc9b(0x28b)](_0x671e4a=>{const _0x2c7de4=_0x51dc9b;this[_0x2c7de4(0x226)](_0x671e4a,_0x55aaa5);}),this['_historyUniver$'][_0x51dc9b(0x2cd)](_0x58a3d2);const _0x24e3bf=_0x36af74[_0x51dc9b(0x232)](p[_0x51dc9b(0x2cf)]),_0x4c7092=this[_0x51dc9b(0x2bf)](_0x55aaa5),_0x32f24e=()=>{const _0x4845b5=_0x51dc9b;_0x791a9?_0x24e3bf[_0x4845b5(0x1e3)](_0x55aaa5,_0x5abb30,_0x4c7092,_0x791a9):_0x24e3bf[_0x4845b5(0x21b)](_0x55aaa5,_0x5abb30,_0x4c7092);};if(this[_0x51dc9b(0x29a)][_0x51dc9b(0x246)]({'content':this[_0x51dc9b(0x287)]['t'](_0x51dc9b(0x1f9)),'type':P['MessageType'][_0x51dc9b(0x1c1)]}),_0xfeb7a6)try{_0x36af74[_0x51dc9b(0x232)](W['IRemoteInstanceService'])[_0x51dc9b(0x2bc)]()[_0x51dc9b(0x2af)](()=>{_0x32f24e();});}catch{_0x32f24e();}else _0x32f24e();}[_0x44f9d9(0x226)](_0x32bdff,_0x173335){const _0x2e5f32=_0x44f9d9,_0x554892=_0x32bdff[_0x2e5f32(0x232)](p[_0x2e5f32(0x2cf)]);this['_disposableCollection'][_0x2e5f32(0x276)](_0x554892[_0x2e5f32(0x273)][_0x2e5f32(0x29d)](_0x201b3c=>{const _0x2ebc2f=_0x2e5f32;switch(_0x201b3c){case p[_0x2ebc2f(0x2d2)]['Entered']:this[_0x2ebc2f(0x269)][_0x2ebc2f(0x231)](),this['_sidebarService'][_0x2ebc2f(0x25b)]();break;case p[_0x2ebc2f(0x2d2)]['Exited']:this[_0x2ebc2f(0x27a)]['executeCommand'](K['id']),this['unMountHistoryContent']();break;case p[_0x2ebc2f(0x2d2)][_0x2ebc2f(0x1d5)]:this['unMountHistoryContent'](),this[_0x2ebc2f(0x29a)][_0x2ebc2f(0x246)]({'content':this['_localeService']['t'](_0x2ebc2f(0x206)),'type':P[_0x2ebc2f(0x2d9)]['Error'],'duration':0xbb8});break;}})),this['_disposableCollection']['add'](_0x554892[_0x2e5f32(0x25e)]['subscribe'](async _0x3a161c=>{const _0x31e321=_0x2e5f32;_0x3a161c&&this[_0x31e321(0x27a)][_0x31e321(0x2dc)](U[_0x31e321(0x1e7)]['id'],{'unitId':_0x173335,'revision':_0x3a161c});}));}[_0x44f9d9(0x2bf)](_0x513c38){const _0x239713=_0x44f9d9,_0x2f8934=this[_0x239713(0x1ea)][_0x239713(0x282)](_0x513c38)[_0x239713(0x1de)]()[_0x239713(0x2b3)](_0x289bab=>_0x289bab['getSheetId']()),_0x2e3a73=new g[(_0x239713(0x2ae))](_0x513c38)['id'],_0x19e5c3=_0x2f8934[_0x239713(0x2b3)](_0xff4da7=>new g[(_0x239713(0x2ad))](_0x513c38,_0xff4da7)['id']),_0x1acb2d=_0x2f8934['map'](_0x14b0b3=>this[_0x239713(0x1dc)][_0x239713(0x204)](_0x513c38,_0x14b0b3)[_0x239713(0x2b3)](_0x2b07e0=>new g[(_0x239713(0x1c3))](_0x513c38,_0x14b0b3,_0x2b07e0['permissionId'])['id']))[_0x239713(0x293)](),_0x1c1392=new g[(_0x239713(0x211))](_0x513c38)['id'];return this[_0x239713(0x1fe)][_0x239713(0x2c1)]([_0x2e3a73,..._0x19e5c3,..._0x1acb2d,_0x1c1392])[_0x239713(0x2ab)](_0x5e86c6=>!!_0x5e86c6['value']);}},exports[_0x44f9d9(0x2b0)]=He([_(0x0,o[_0x44f9d9(0x263)](o[_0x44f9d9(0x2aa)])),_(0x1,o[_0x44f9d9(0x267)]),_(0x2,o[_0x44f9d9(0x20d)]),_(0x3,o[_0x44f9d9(0x1e8)]),_(0x4,d[_0x44f9d9(0x249)]),_(0x5,o[_0x44f9d9(0x297)]),_(0x6,o[_0x44f9d9(0x263)](g['RangeProtectionRuleModel'])),_(0x7,o['Inject'](d[_0x44f9d9(0x2cb)])),_(0x8,o[_0x44f9d9(0x263)](d[_0x44f9d9(0x2b9)])),_(0x9,o['Inject'](o['ThemeService']))],exports['HistoryLoaderService']);const N={'id':_0x44f9d9(0x1ee),'type':o['CommandType'][_0x44f9d9(0x201)],'handler':_0x211d60=>{const _0x26be9b=_0x44f9d9,_0x30e242=_0x211d60[_0x26be9b(0x232)](exports[_0x26be9b(0x2b0)]),_0x1efe59=_0x211d60['get'](o[_0x26be9b(0x267)]),{unitId:_0x1517c0}=g[_0x26be9b(0x283)](_0x1efe59)||{};return _0x1517c0?(_0x30e242['mountHistoryContent'](_0x1517c0),!0x0):!0x1;}},K={'id':_0x44f9d9(0x241),'type':o[_0x44f9d9(0x258)][_0x44f9d9(0x201)],'handler':()=>!0x0},Me=_0x44f9d9(0x1fd),Te=_0x44f9d9(0x245),Y={'name':Me,'version':Te};function B({ref:_0x134dcc,..._0x1def7e}){const _0x1578f1=_0x44f9d9,{icon:_0x52b153,id:_0x5d2406,className:_0x4950c2,extend:_0x4a3f78,..._0x5bafa3}=_0x1def7e,_0x5bd5b6=(_0x1578f1(0x240)+_0x5d2406+'\x20'+(_0x4950c2||''))['trim'](),_0x46648e=b[_0x1578f1(0x1d7)]('_'+qe());return z(_0x52b153,''+_0x5d2406,{'defIds':_0x52b153[_0x1578f1(0x1c5)],'idSuffix':_0x46648e[_0x1578f1(0x2df)]},{'ref':_0x134dcc,'className':_0x5bd5b6,..._0x5bafa3},_0x4a3f78);}function z(_0x33b108,_0x52ed32,_0x2fed92,_0x5101b5,_0x4d4277){const _0x44f556=_0x44f9d9;return b['createElement'](_0x33b108[_0x44f556(0x2b8)],{'key':_0x52ed32,...we(_0x33b108,_0x2fed92,_0x4d4277),..._0x5101b5},(De(_0x33b108,_0x2fed92)[_0x44f556(0x2da)]||[])[_0x44f556(0x2b3)]((_0x344cfe,_0x6965d4)=>z(_0x344cfe,_0x52ed32+'-'+_0x33b108[_0x44f556(0x2b8)]+'-'+_0x6965d4,_0x2fed92,void 0x0,_0x4d4277)));}function we(_0x3dd537,_0x49fd02,_0x3522a2){const _0x2d9655=_0x44f9d9,_0x4889e0={..._0x3dd537[_0x2d9655(0x29f)]};_0x3522a2!=null&&_0x3522a2['colorChannel1']&&_0x4889e0[_0x2d9655(0x255)]==='colorChannel1'&&(_0x4889e0[_0x2d9655(0x255)]=_0x3522a2['colorChannel1']),_0x3dd537['tag']===_0x2d9655(0x22e)&&_0x4889e0['id']&&(_0x4889e0['id']=_0x4889e0['id']+_0x49fd02[_0x2d9655(0x1e4)]),Object[_0x2d9655(0x1e9)](_0x4889e0)[_0x2d9655(0x265)](([_0x55288c,_0x310128])=>{const _0x5d8d6d=_0x2d9655;_0x55288c===_0x5d8d6d(0x22e)&&typeof _0x310128=='string'&&(_0x4889e0[_0x55288c]=_0x310128[_0x5d8d6d(0x1e5)](/url\(#(.*)\)/,_0x5d8d6d(0x281)+_0x49fd02[_0x5d8d6d(0x1e4)]+')'));});const {defIds:_0x18e46f}=_0x49fd02;return!_0x18e46f||_0x18e46f[_0x2d9655(0x1fa)]===0x0||(_0x3dd537[_0x2d9655(0x2b8)]===_0x2d9655(0x1d0)&&_0x4889e0[_0x2d9655(0x1f3)]&&(_0x4889e0[_0x2d9655(0x1f3)]=_0x4889e0[_0x2d9655(0x1f3)]+_0x49fd02['idSuffix']),Object[_0x2d9655(0x1e9)](_0x4889e0)[_0x2d9655(0x265)](([_0x1059a6,_0x3f5b87])=>{const _0xe7db92=_0x2d9655;typeof _0x3f5b87==_0xe7db92(0x220)&&(_0x4889e0[_0x1059a6]=_0x3f5b87[_0xe7db92(0x1e5)](/url\(#(.*)\)/,_0xe7db92(0x281)+_0x49fd02[_0xe7db92(0x1e4)]+')'));})),_0x4889e0;}function De(_0x59b8c4,_0x2996de){const _0x125b16=_0x44f9d9;var _0x456cd3;const {defIds:_0x1f3adc}=_0x2996de;return!_0x1f3adc||_0x1f3adc[_0x125b16(0x1fa)]===0x0?_0x59b8c4:_0x59b8c4[_0x125b16(0x2b8)]==='defs'&&((_0x456cd3=_0x59b8c4['children'])!=null&&_0x456cd3['length'])?{..._0x59b8c4,'children':_0x59b8c4[_0x125b16(0x2da)]['map'](_0x580019=>typeof _0x580019[_0x125b16(0x29f)]['id']==_0x125b16(0x220)&&_0x1f3adc&&_0x1f3adc[_0x125b16(0x2dd)](_0x580019['attrs']['id'])?{..._0x580019,'attrs':{..._0x580019[_0x125b16(0x29f)],'id':_0x580019['attrs']['id']+_0x2996de[_0x125b16(0x1e4)]}}:_0x580019)}:_0x59b8c4;}function qe(){const _0x263b55=_0x44f9d9;return Math[_0x263b55(0x225)]()[_0x263b55(0x20e)](0x24)[_0x263b55(0x280)](0x2,0x8);}B[_0x44f9d9(0x28e)]=_0x44f9d9(0x26b);const ke={'tag':_0x44f9d9(0x227),'attrs':{'xmlns':_0x44f9d9(0x1ce),'fill':_0x44f9d9(0x1ff),'viewBox':'0\x200\x2016\x2016','width':_0x44f9d9(0x24c),'height':_0x44f9d9(0x24c)},'children':[{'tag':'g','attrs':{'fill':_0x44f9d9(0x2db),'clipPath':_0x44f9d9(0x229)},'children':[{'tag':_0x44f9d9(0x28a),'attrs':{'d':_0x44f9d9(0x275)}},{'tag':_0x44f9d9(0x28a),'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':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x44f9d9(0x1bf)},'children':[{'tag':_0x44f9d9(0x28a),'attrs':{'fill':'white','d':_0x44f9d9(0x1f4)}}]}]}],'defIds':[_0x44f9d9(0x1bf)]},Z=b['forwardRef'](function(_0x1afc5a,_0x302baf){const _0x237d43=_0x44f9d9;return b[_0x237d43(0x278)](B,Object[_0x237d43(0x207)]({},_0x1afc5a,{'id':_0x237d43(0x1e1),'ref':_0x302baf,'icon':ke}));});function _0xddd6(){const _0x352776=['data','Loading','UniverSheetsConditionalFormattingUIPlugin','RangeProtectionPermissionEditPoint','display','defIds','_setupSubUnitSync','UNIVER_SLIDE','dataset','Univer','_componentManager','_config','_updateSubUnitFromURLParams','dispose$','http://www.w3.org/2000/svg','_configService','use','ComponentManager','_historyManagerService','values','UniverSheetsShapeUIPlugin','Error','event$','useRef','workerURL','UNIVER_CONTAINER_ID_KEY','Injector','UniverSheetSparklinePlugin','_selectionProtectionRuleModel','ILocalCacheService','getSheets','location','version','history-icon','height','triggerCustomVersions','idSuffix','replace','IImageIoService','RevertRevisionMutation','ICommandService','entries','_univerInstanceService','Plugin','takeUntil','edit-history-loader.config','univer.operation.toggle-edit-history','getLocales','UniverSheetsDrawingUIPlugin','UniverDataValidationPlugin','UNIVER_PROJECT','xlink:href','M0\x200H16V16H0z','BehaviorSubject','_localCacheService','UniverSheetsConditionalFormattingPlugin','getSheetBySheetId','editHistory.info.initializing','length','currentTheme$','block','@univerjs-pro/edit-history-loader','_permissionService','none','historyAIassistantEnabled','OPERATION','Disposable','_injector','getSubunitRuleList','UniverSheetsFormulaUIPlugin','editHistory.panel.listFetchError','assign','Module','UniverRPCMainThreadPlugin','reload','pipe','uComp','IConfigService','toString','left','UniverLicensePlugin','WorkbookRecoverHistoryPermission','register','CHANGESET_ACK','editHistory.panel.title','width','editHistory.panel.reverting','unsubscribe','ThemeService','state$','IMenuManagerService','triggerLoadVersions','asObservable','[HistoryLoaderService]:\x20Plugin\x20','UniverUIPlugin','editHistory.panel.revertFailed','string','historyPanelHidden','univerContainerId','_handleRevertAcknowledgement','UniverNetworkPlugin','random','_initListener','svg','SYNCED','url(#history-icon_clip0_907_281)','zIndex','UniverFormulaEnginePlugin','\x20has\x20been\x20registered.','CollaborationEvent','mask','_initPlugins','name','closeAll','get','disposeUnit','absolute','54YAnuen','_revertErrorTimer','fromCollab','params','getCurrentRangeDisable$','UniverSheetsFormulaPlugin','CollaborationController','IAuthzIoService','__getInjector','_initContainer','type','univerjs-icon\x20univerjs-icon-','univer.operation.exit-edit-history','_menuManagerService','RibbonStartGroup','_dataLoaderService','0.17.0','show','UniverCollaborationPlugin','symbol','IMessageService','getConfig','setConfig','1em','setLocale','terminate','UNIVER_UNKNOWN','getUnitId','UniverDrawingUIPlugin','_historyUniver$','UniverDocsUIPlugin','1337076NKuRjS','fill','UniverDocsPlugin','UniverSheetsPivotTablePlugin','CommandType','from','100%','close','235288gwXbKk','top','revertRevision$','DisposableCollection','CollaborationStatus','711dvVeSa','value','Inject','packageName','forEach','_initUniver','IUniverInstanceService','LS_CONFIG_KEY','_dialogService','UNIVER_HISTORY_CONTAINER_ID','UniverIcon','MenuItemType','getCollabEntity','loadUnit','OTHERS','disposeWithMe','eventID','HistoryIcon','status$','history-container','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','add','getElementById','createElement','style','_commandService','_internalWebWorker','getOwnPropertyDescriptor','1082604LeZFSI','registerPlugin','WorkbookViewHistoryPermission','substring','url(#$1','getUnit','getSheetCommandTarget','activeSheet$','getAllPlugins','getCurrentLocale','_localeService','unMountHistoryContent','pluginName','path','invoke','430195sGgCWw','UniverSheetSparklineUIPlugin','displayName','_init','UniverSheetsDrawingPlugin','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_themeService','flat','onSteady','AuthzIoHttpService','UniverSheetsHyperLinkUIPlugin','IPermissionService','historyUniver','UniverSheetsPlugin','_messageService','UNRECOGNIZED','mountHistoryContent','subscribe','_pluginMap','attrs','1311392vCMOvf','position','getSheetId','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','setTheme','div','getActiveSheet','getCurrentUnitOfType','SetWorksheetActivateCommand','74eyaFHQ','LocaleService','every','menu','WorksheetEditPermission','WorkbookEditablePermission','then','HistoryLoaderService','UniverSheetsNumfmtPlugin','_collaborationController','map','registerCommand','IURLService','defineProperty','dispose','tag','ISidebarService','UNIVER_DOC','historyPanelComponentKey','whenReady','_disposableCollection','_urlService','_checkCanRevert','UniverSheetsDataValidationUIPlugin','composePermission','toStringTag','UniverEditHistoryViewerPlugin','status','258034PaGOOA','exhaustSavingTask','subunit','UNIVER_SHEET','univer-container','UniverEditHistoryLoaderPlugin','IDialogService','BUTTON','next','UniverSheetsUIPlugin','HistoryManagerService','darkMode$','RxDisposable','HistoryModeStatus','mergeMenu','UniverSheetsFilterPlugin','onStarting','mutations','UniverSheetsHyperLinkPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','MessageType','children','currentColor','executeCommand','includes','UniverSheetsShapePlugin','current','urlChange$','session','onCommandExecuted','_updateURLWithCurrentState','toDisposable','appendChild','UniverInstanceType','history-icon_clip0_907_281'];_0xddd6=function(){return _0x352776;};return _0xddd6();}Z[_0x44f9d9(0x28e)]=_0x44f9d9(0x272);var M=(_0x35fd68=>(_0x35fd68[_0x35fd68[_0x44f9d9(0x24f)]=0x0]=_0x44f9d9(0x24f),_0x35fd68[_0x35fd68[_0x44f9d9(0x2ba)]=0x1]=_0x44f9d9(0x2ba),_0x35fd68[_0x35fd68['UNIVER_SHEET']=0x2]=_0x44f9d9(0x2c8),_0x35fd68[_0x35fd68[_0x44f9d9(0x1c7)]=0x3]=_0x44f9d9(0x1c7),_0x35fd68[_0x35fd68[_0x44f9d9(0x1f2)]=0x4]=_0x44f9d9(0x1f2),_0x35fd68[_0x35fd68[_0x44f9d9(0x29b)]=-0x1]=_0x44f9d9(0x29b),_0x35fd68))(M||{});function $e(_0x21c243){const _0x2c2b07=_0x44f9d9;return{'id':N['id'],'type':d[_0x2c2b07(0x26c)][_0x2c2b07(0x2cc)],'icon':'HistoryIcon','tooltip':_0x2c2b07(0x214),'hidden$':d['getMenuHiddenObservable'](_0x21c243,o[_0x2c2b07(0x1be)]['UNIVER_SHEET']),'disabled$':G[_0x2c2b07(0x239)](_0x21c243,{'workbookTypes':[g['WorkbookEditablePermission'],g[_0x2c2b07(0x27f)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ve={[d[_0x44f9d9(0x243)][_0x44f9d9(0x26f)]]:{[N['id']]:{'order':0.2,'menuItemFactory':$e}}};function _0x4d41(_0x2fb306,_0xa11454){_0x2fb306=_0x2fb306-0x1ba;const _0xddd6bc=_0xddd6();let _0x4d4150=_0xddd6bc[_0x2fb306];return _0x4d4150;}var Ae=Object[_0x44f9d9(0x27c)],Fe=(_0x396f2f,_0x452bcc,_0x232b1f,_0x1e9884)=>{const _0x258c23=_0x44f9d9;for(var _0xe0010c=_0x1e9884>0x1?void 0x0:_0x1e9884?Ae(_0x452bcc,_0x232b1f):_0x452bcc,_0x3d66b4=_0x396f2f[_0x258c23(0x1fa)]-0x1,_0x2c5c60;_0x3d66b4>=0x0;_0x3d66b4--)(_0x2c5c60=_0x396f2f[_0x3d66b4])&&(_0xe0010c=_0x2c5c60(_0xe0010c)||_0xe0010c);return _0xe0010c;},h=(_0x425870,_0x40a2e8)=>(_0x25b930,_0x154320)=>_0x40a2e8(_0x25b930,_0x154320,_0x425870);let R=class extends o[_0x44f9d9(0x2d1)]{constructor(_0x5172e4,_0x187b80,_0x4b2821,_0x1d1f0b,_0x255c49,_0x49ae0e,_0x2ac08c,_0x30f596,_0xb2018e,_0x37be15,_0x3cb42b){const _0x5935f6=_0x44f9d9;super(),m(this,_0x5935f6(0x236),null),(this[_0x5935f6(0x27a)]=_0x5172e4,this[_0x5935f6(0x242)]=_0x187b80,this[_0x5935f6(0x1ca)]=_0x4b2821,this[_0x5935f6(0x1d2)]=_0x1d1f0b,this[_0x5935f6(0x287)]=_0x255c49,this[_0x5935f6(0x29a)]=_0x49ae0e,this[_0x5935f6(0x2b2)]=_0x2ac08c,this[_0x5935f6(0x1f6)]=_0x30f596,this[_0x5935f6(0x244)]=_0xb2018e,this[_0x5935f6(0x1ea)]=_0x37be15,this[_0x5935f6(0x2be)]=_0x3cb42b,this[_0x5935f6(0x28f)]());}['_init'](){const _0x1fa3a6=_0x44f9d9;[N,K]['forEach'](_0x49eeba=>this[_0x1fa3a6(0x270)](o[_0x1fa3a6(0x1bc)](this['_commandService'][_0x1fa3a6(0x2b4)](_0x49eeba)))),this[_0x1fa3a6(0x270)](this[_0x1fa3a6(0x1ca)][_0x1fa3a6(0x212)]('HistoryIcon',Z)),this['_menuManagerService'][_0x1fa3a6(0x2d3)](Ve),this[_0x1fa3a6(0x270)](this[_0x1fa3a6(0x27a)][_0x1fa3a6(0x1ba)](async(_0x54732a,_0xbb8b51)=>{const _0x1f6571=_0x1fa3a6;if(_0x54732a['id']===U[_0x1f6571(0x1e7)]['id']){const {unitId:_0x532dbf}=_0x54732a[_0x1f6571(0x238)];this[_0x1f6571(0x29a)]['show']({'content':this[_0x1f6571(0x287)]['t'](_0x1f6571(0x216)),'type':P[_0x1f6571(0x2d9)]['Loading'],'duration':0x1388});const _0x3f0cc8=this[_0x1f6571(0x2b2)][_0x1f6571(0x26d)](_0x532dbf);(_0xbb8b51==null?void 0x0:_0xbb8b51[_0x1f6571(0x237)])?this['_handleRevertAcknowledgement'](_0x3f0cc8,async()=>(setTimeout(()=>window[_0x1f6571(0x1df)][_0x1f6571(0x20a)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x3f0cc8,async()=>{const _0xee58cd=_0x1f6571,_0x3eae2e=this['_univerInstanceService'][_0xee58cd(0x2a7)](M[_0xee58cd(0x2c8)]),_0x805ac0=_0x3eae2e==null?void 0x0:_0x3eae2e[_0xee58cd(0x2a6)]();if(!_0x805ac0)return!0x1;this[_0xee58cd(0x1ea)][_0xee58cd(0x233)](_0x532dbf);const _0xb96889=await this[_0xee58cd(0x244)][_0xee58cd(0x26e)](_0x532dbf,M[_0xee58cd(0x2c8)]);return _0xb96889&&_0xb96889 instanceof o['Workbook']?(await this['_setupSubUnitSync'](_0xb96889,_0x805ac0[_0xee58cd(0x2a2)]()),!0x0):!0x1;});}}));}[_0x44f9d9(0x223)](_0x506967,_0x524bd8,_0x2e98a6=!0x1){const _0x373767=_0x44f9d9,_0x3bc13e=E['combineLatest']([_0x506967[_0x373767(0x2e1)][_0x373767(0x1d6)],_0x506967[_0x373767(0x219)]])[_0x373767(0x29d)](async([_0x1ca5a5,_0x59d098])=>{const _0x8e6369=_0x373767;var _0xe4c9d2;_0x1ca5a5[_0x8e6369(0x271)]===U[_0x8e6369(0x22d)][_0x8e6369(0x213)]&&(_0x59d098==null?void 0x0:_0x59d098[_0x8e6369(0x2c4)])===I[_0x8e6369(0x260)][_0x8e6369(0x228)]&&_0x1ca5a5[_0x8e6369(0x1c0)][_0x8e6369(0x2d6)]['some'](_0x419076=>_0x419076['id']===U[_0x8e6369(0x1e7)]['id'])&&await _0x524bd8()&&(this[_0x8e6369(0x1d2)]['unMountHistoryContent'](),_0x3bc13e[_0x8e6369(0x217)](),this[_0x8e6369(0x236)]&&clearTimeout(this[_0x8e6369(0x236)]),await((_0xe4c9d2=this['_localCacheService'])==null?void 0x0:_0xe4c9d2[_0x8e6369(0x2c6)]()));});_0x2e98a6&&(this[_0x373767(0x236)]=setTimeout(()=>{const _0x143def=_0x373767;_0x3bc13e['unsubscribe'](),this[_0x143def(0x29a)][_0x143def(0x246)]({'content':this[_0x143def(0x287)]['t'](_0x143def(0x21f)),'type':P[_0x143def(0x2d9)][_0x143def(0x1d5)],'duration':0xbb8});},0x1388));}async[_0x44f9d9(0x1c6)](_0x485db1,_0x4558f3){const _0x19780b=_0x44f9d9;await this[_0x19780b(0x1cc)](_0x485db1,_0x4558f3),_0x485db1[_0x19780b(0x284)][_0x19780b(0x20b)](E[_0x19780b(0x1ec)](this[_0x19780b(0x1cd)]))[_0x19780b(0x29d)](_0xd68295=>{const _0x2906f8=_0x19780b;_0xd68295&&this[_0x2906f8(0x1bb)](_0xd68295);}),this[_0x19780b(0x2be)][_0x19780b(0x2e0)][_0x19780b(0x20b)](E['takeUntil'](this[_0x19780b(0x1cd)]))[_0x19780b(0x29d)](()=>this[_0x19780b(0x1cc)](_0x485db1,_0x4558f3));}['_updateURLWithCurrentState'](_0x537129,_0x7979b9=!0x1){const _0x279615=_0x44f9d9,_0x13ef56=this['_urlService']['getParam'](_0x279615(0x2c7));_0x537129[_0x279615(0x2a2)]()!==_0x13ef56&&this[_0x279615(0x2be)]['setParam'](_0x279615(0x2c7),_0x537129[_0x279615(0x2a2)](),_0x7979b9);}async[_0x44f9d9(0x1cc)](_0x50c4ec,_0x7bda53){const _0x27a85f=_0x44f9d9;var _0x141879;if(!_0x7bda53||!_0x50c4ec['getSheetBySheetId'](_0x7bda53)){const _0xa34a49=_0x50c4ec['getUnhiddenWorksheets']()[0x0],_0xe85bf=_0x50c4ec[_0x27a85f(0x1f8)](_0xa34a49);if(!_0xe85bf)return;this[_0x27a85f(0x1bb)](_0xe85bf,!0x0),await this[_0x27a85f(0x27a)][_0x27a85f(0x2dc)](g[_0x27a85f(0x2a8)]['id'],{'unitId':_0x50c4ec[_0x27a85f(0x250)](),'subUnitId':_0xa34a49});return;}((_0x141879=_0x50c4ec['getActiveSheet']())==null?void 0x0:_0x141879[_0x27a85f(0x2a2)]())!==_0x7bda53&&await this[_0x27a85f(0x27a)][_0x27a85f(0x2dc)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x50c4ec[_0x27a85f(0x250)](),'subUnitId':_0x7bda53});}};R=Fe([h(0x0,o[_0x44f9d9(0x1e8)]),h(0x1,d[_0x44f9d9(0x21a)]),h(0x2,o[_0x44f9d9(0x263)](d[_0x44f9d9(0x1d1)])),h(0x3,o['Inject'](exports[_0x44f9d9(0x2b0)])),h(0x4,o[_0x44f9d9(0x263)](o[_0x44f9d9(0x2aa)])),h(0x5,d[_0x44f9d9(0x249)]),h(0x6,o[_0x44f9d9(0x263)](I[_0x44f9d9(0x23b)])),h(0x7,I[_0x44f9d9(0x1dd)]),h(0x8,o[_0x44f9d9(0x263)](I['DataLoaderService'])),h(0x9,o[_0x44f9d9(0x267)]),h(0xa,Ne[_0x44f9d9(0x2b5)])],R);var We=Object[_0x44f9d9(0x2b6)],xe=Object[_0x44f9d9(0x27c)],je=(_0xb6d856,_0x1aec57,_0x10b68e)=>_0x1aec57 in _0xb6d856?We(_0xb6d856,_0x1aec57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10b68e}):_0xb6d856[_0x1aec57]=_0x10b68e,Ge=(_0x451d74,_0x3cb79b,_0x5a5241,_0x562333)=>{const _0x39c72f=_0x44f9d9;for(var _0x2178f0=_0x562333>0x1?void 0x0:_0x562333?xe(_0x3cb79b,_0x5a5241):_0x3cb79b,_0x5a7137=_0x451d74[_0x39c72f(0x1fa)]-0x1,_0x3b0469;_0x5a7137>=0x0;_0x5a7137--)(_0x3b0469=_0x451d74[_0x5a7137])&&(_0x2178f0=_0x3b0469(_0x2178f0)||_0x2178f0);return _0x2178f0;},j=(_0x3726cf,_0x212e3a)=>(_0x2ba633,_0x1fee13)=>_0x212e3a(_0x2ba633,_0x1fee13,_0x3726cf),L=(_0xfe84a5,_0x44f22f,_0x712428)=>je(_0xfe84a5,typeof _0x44f22f!=_0x44f9d9(0x248)?_0x44f22f+'':_0x44f22f,_0x712428);exports['UniverEditHistoryLoaderPlugin']=class extends o[_0x44f9d9(0x1eb)]{constructor(_0x2a1d4e=x,_0x2d76b8,_0x4e0b60){const _0x39bfae=_0x44f9d9;super(),this[_0x39bfae(0x1cb)]=_0x2a1d4e,this[_0x39bfae(0x203)]=_0x2d76b8,this['_configService']=_0x4e0b60;const {menu:_0x1d093a,..._0x2a7136}=o['merge']({},x,this[_0x39bfae(0x1cb)]);_0x1d093a&&this[_0x39bfae(0x1cf)][_0x39bfae(0x24b)](_0x39bfae(0x2ac),_0x1d093a,{'merge':!0x0}),this[_0x39bfae(0x1cf)][_0x39bfae(0x24b)](f,_0x2a7136),this[_0x39bfae(0x1cb)][_0x39bfae(0x222)]&&this[_0x39bfae(0x1cf)][_0x39bfae(0x24b)](T,this[_0x39bfae(0x1cb)][_0x39bfae(0x222)]);}[_0x44f9d9(0x2d5)](){const _0x3d4380=_0x44f9d9;[[exports[_0x3d4380(0x2b0)]],[R]][_0x3d4380(0x265)](_0x4bd1b5=>this[_0x3d4380(0x203)][_0x3d4380(0x276)](_0x4bd1b5));}[_0x44f9d9(0x294)](){const _0x5019ff=_0x44f9d9;this[_0x5019ff(0x203)]['get'](R);}},L(exports[_0x44f9d9(0x2ca)],_0x44f9d9(0x23f),o[_0x44f9d9(0x1be)][_0x44f9d9(0x24f)]),L(exports[_0x44f9d9(0x2ca)],'pluginName',_0x44f9d9(0x291)),L(exports[_0x44f9d9(0x2ca)],_0x44f9d9(0x264),Y[_0x44f9d9(0x230)]),L(exports['UniverEditHistoryLoaderPlugin'],_0x44f9d9(0x1e0),Y[_0x44f9d9(0x1e0)]),exports[_0x44f9d9(0x2ca)]=Ge([o['DependentOn'](O[_0x44f9d9(0x210)]),j(0x1,o[_0x44f9d9(0x263)](o[_0x44f9d9(0x1da)])),j(0x2,o[_0x44f9d9(0x20d)])],exports['UniverEditHistoryLoaderPlugin']),exports[_0x44f9d9(0x2a3)]=f,exports['ToggleEditHistoryOperation']=N,exports[_0x44f9d9(0x1d9)]=T,exports[_0x44f9d9(0x26a)]=y;
|
|
1
|
+
const _0x576e68=_0xb79f;(function(_0x2d0abd,_0x4b18a2){const _0xe81944=_0xb79f,_0x71562b=_0x2d0abd();while(!![]){try{const _0x450dad=-parseInt(_0xe81944(0x2c9))/0x1+parseInt(_0xe81944(0x204))/0x2+-parseInt(_0xe81944(0x2a3))/0x3*(-parseInt(_0xe81944(0x2f6))/0x4)+parseInt(_0xe81944(0x2d0))/0x5+parseInt(_0xe81944(0x2f5))/0x6+parseInt(_0xe81944(0x244))/0x7+-parseInt(_0xe81944(0x29f))/0x8;if(_0x450dad===_0x4b18a2)break;else _0x71562b['push'](_0x71562b['shift']());}catch(_0x28fe72){_0x71562b['push'](_0x71562b['shift']());}}}(_0x2d5f,0xc45d2),Object[_0x576e68(0x2f7)](exports,Symbol[_0x576e68(0x2d8)],{'value':_0x576e68(0x2de)}));let e=require(`@univerjs/core`),t=require(`@univerjs/sheets`),n=require(`@univerjs-pro/collaboration`),r=require(`@univerjs-pro/collaboration-client`),i=require(`@univerjs-pro/edit-history-viewer`),a=require(`@univerjs-pro/license`),o=require(`@univerjs-pro/sheets-chart`),s=require(`@univerjs-pro/sheets-chart-ui`),c=require(`@univerjs-pro/sheets-pivot`),l=require(`@univerjs-pro/sheets-shape`),u=require(`@univerjs-pro/sheets-shape-ui`),d=require(`@univerjs-pro/sheets-sparkline`),f=require(`@univerjs-pro/sheets-sparkline-ui`),p=require(`@univerjs/data-validation`),m=require(`@univerjs/design`),h=require(`@univerjs/docs`),g=require(`@univerjs/docs-ui`),_=require(`@univerjs/drawing`),v=require(`@univerjs/drawing-ui`),y=require(`@univerjs/engine-formula`),b=require(`@univerjs/engine-render`),x=require(`@univerjs/network`),S=require(`@univerjs/rpc`),C=require(`@univerjs/sheets-conditional-formatting`),ee=require(`@univerjs/sheets-conditional-formatting-ui`),w=require(`@univerjs/sheets-data-validation`),T=require(`@univerjs/sheets-data-validation-ui`),E=require(`@univerjs/sheets-drawing`),D=require(`@univerjs/sheets-drawing-ui`),te=require(`@univerjs/sheets-filter`),ne=require(`@univerjs/sheets-filter-ui`),re=require(`@univerjs/sheets-formula`),ie=require(`@univerjs/sheets-formula-ui`),ae=require(`@univerjs/sheets-hyper-link`),O=require(`@univerjs/sheets-hyper-link-ui`),k=require(`@univerjs/sheets-numfmt`),A=require(`@univerjs/sheets-table`),j=require(`@univerjs/sheets-ui`),M=require(`@univerjs/ui`),N=require(`rxjs`),P=require(`@univerjs-pro/collaboration-client-ui`),F=require(`@univerjs/icons`),I=require(`@univerjs/protocol`);const L=_0x576e68(0x2ee);Symbol(L);const R={};function z(_0x5e2575){'@babel/helpers - typeof';const _0x12a912=_0x576e68;return z=typeof Symbol=='function'&&typeof Symbol[_0x12a912(0x292)]==_0x12a912(0x1f9)?function(_0x4aa312){return typeof _0x4aa312;}:function(_0x515003){const _0x80b339=_0x12a912;return _0x515003&&typeof Symbol=='function'&&_0x515003[_0x80b339(0x28a)]===Symbol&&_0x515003!==Symbol[_0x80b339(0x21d)]?_0x80b339(0x1f9):typeof _0x515003;},z(_0x5e2575);}function oe(_0x4b2158,_0x3c6e21){const _0x38fd66=_0x576e68;if(z(_0x4b2158)!=_0x38fd66(0x215)||!_0x4b2158)return _0x4b2158;var _0x1c739b=_0x4b2158[Symbol[_0x38fd66(0x299)]];if(_0x1c739b!==void 0x0){var _0x4d62d5=_0x1c739b['call'](_0x4b2158,_0x3c6e21||'default');if(z(_0x4d62d5)!=_0x38fd66(0x215))return _0x4d62d5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3c6e21==='string'?String:Number)(_0x4b2158);}function se(_0x52cc96){const _0x3b52dd=_0x576e68;var _0x4e92b8=oe(_0x52cc96,'string');return z(_0x4e92b8)==_0x3b52dd(0x1f9)?_0x4e92b8:_0x4e92b8+'';}function B(_0x53ed67,_0x543c6c,_0x3100a3){const _0x405453=_0x576e68;return(_0x543c6c=se(_0x543c6c))in _0x53ed67?Object[_0x405453(0x2f7)](_0x53ed67,_0x543c6c,{'value':_0x3100a3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53ed67[_0x543c6c]=_0x3100a3,_0x53ed67;}function V(_0x119318,_0x185b1b){return function(_0x426c5d,_0x273b5e){_0x185b1b(_0x426c5d,_0x273b5e,_0x119318);};}function _0xb79f(_0x51a5db,_0x2bc677){_0x51a5db=_0x51a5db-0x1eb;const _0x2d5f92=_0x2d5f();let _0xb79fa9=_0x2d5f92[_0x51a5db];return _0xb79fa9;}function H(_0x260b2e,_0x2f4407,_0x95cdc8,_0x24f5c5){const _0x278345=_0x576e68;var _0x36ddd0=arguments[_0x278345(0x219)],_0x69bc23=_0x36ddd0<0x3?_0x2f4407:_0x24f5c5===null?_0x24f5c5=Object[_0x278345(0x223)](_0x2f4407,_0x95cdc8):_0x24f5c5,_0x89f0e;if(typeof Reflect==_0x278345(0x215)&&typeof Reflect[_0x278345(0x217)]==_0x278345(0x258))_0x69bc23=Reflect[_0x278345(0x217)](_0x260b2e,_0x2f4407,_0x95cdc8,_0x24f5c5);else{for(var _0x138bc9=_0x260b2e['length']-0x1;_0x138bc9>=0x0;_0x138bc9--)(_0x89f0e=_0x260b2e[_0x138bc9])&&(_0x69bc23=(_0x36ddd0<0x3?_0x89f0e(_0x69bc23):_0x36ddd0>0x3?_0x89f0e(_0x2f4407,_0x95cdc8,_0x69bc23):_0x89f0e(_0x2f4407,_0x95cdc8))||_0x69bc23);}return _0x36ddd0>0x3&&_0x69bc23&&Object[_0x278345(0x2f7)](_0x2f4407,_0x95cdc8,_0x69bc23),_0x69bc23;}const U=_0x576e68(0x22c),W=_0x576e68(0x282);let G=class extends e[_0x576e68(0x1ee)]{constructor(_0x1d1468,_0x514bc9,_0x1ac90b,_0x3c6060,_0x840a3d,_0x361681,_0x39cb32,_0x398084,_0x4b7490,_0x4557db){const _0x565bb0=_0x576e68;super(),this[_0x565bb0(0x2c0)]=_0x1d1468,this['_univerInstanceService']=_0x514bc9,this['_configService']=_0x1ac90b,this[_0x565bb0(0x2e4)]=_0x3c6060,this[_0x565bb0(0x2e7)]=_0x840a3d,this['_permissionService']=_0x361681,this[_0x565bb0(0x2a2)]=_0x39cb32,this['_dialogService']=_0x398084,this[_0x565bb0(0x234)]=_0x4b7490,this['_themeService']=_0x4557db,B(this,'_historyUniver$',new N[(_0x565bb0(0x20b))](null)),B(this,'historyUniver$',this[_0x565bb0(0x2b5)][_0x565bb0(0x278)]()),B(this,_0x565bb0(0x260),new e[(_0x565bb0(0x25e))]()),B(this,'_pluginMap',new Map()),B(this,_0x565bb0(0x2f8),null),this[_0x565bb0(0x27c)]();}get[_0x576e68(0x25c)](){const _0x348cde=_0x576e68;return this['_historyUniver$'][_0x348cde(0x27d)];}[_0x576e68(0x27c)](){const _0x40b262=_0x576e68;this[_0x40b262(0x2f1)](),this[_0x40b262(0x2b4)]();}[_0x576e68(0x2f1)](){const _0xacd15b=_0x576e68;var _0x2f1360;let _0x29d10f=(_0x2f1360=this[_0xacd15b(0x237)]['getConfig'](_0xacd15b(0x22c)))==null?_0xacd15b(0x216):_0x2f1360,_0x550608=document[_0xacd15b(0x2d3)](_0x29d10f);if(!_0x550608)return;let _0x844a49=document[_0xacd15b(0x2a8)]('div');_0x844a49['id']=W,_0x844a49['dataset']['uComp']='history-container',_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x289)]=_0xacd15b(0x301),_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x247)]='0',_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x238)]='0',_0x844a49['style'][_0xacd15b(0x281)]='100%',_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x29b)]=_0xacd15b(0x2b1),_0x844a49['style'][_0xacd15b(0x222)]='49',_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x2e1)]=_0xacd15b(0x1eb),_0x550608[_0xacd15b(0x2f0)](_0x844a49);}[_0x576e68(0x2b4)](){const _0x409a83=_0x576e68;[[b[_0x409a83(0x27e)]],[M[_0x409a83(0x263)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x409a83(0x277)],null]]}],[x[_0x409a83(0x272)]],[_['UniverDrawingPlugin'],{'override':[[_[_0x409a83(0x24b)],null]]}],[h[_0x409a83(0x2f4)],{'hasScroll':!0x1}],[g[_0x409a83(0x24f)]],[k['UniverSheetsNumfmtPlugin']],[t[_0x409a83(0x224)],{'notExecuteFormula':!0x0}],[j[_0x409a83(0x1ef)]],[re[_0x409a83(0x28c)]],[ie[_0x409a83(0x2d2)]],[n[_0x409a83(0x276)]],[te[_0x409a83(0x1f3)]],[ne[_0x409a83(0x201)]],[C['UniverSheetsConditionalFormattingPlugin']],[ee[_0x409a83(0x2b9)]],[ae[_0x409a83(0x2b7)]],[O[_0x409a83(0x29e)]],[p[_0x409a83(0x251)]],[w['UniverSheetsDataValidationPlugin']],[T[_0x409a83(0x274)]],[y[_0x409a83(0x209)],{'notExecuteFormula':!0x0}],[v['UniverDrawingUIPlugin']],[E[_0x409a83(0x275)]],[D[_0x409a83(0x262)]],[d[_0x409a83(0x28d)]],[f['UniverSheetSparklineUIPlugin']],[o[_0x409a83(0x2ff)]],[s['UniverSheetsChartUIPlugin']],[l[_0x409a83(0x240)]],[u[_0x409a83(0x270)]],[c[_0x409a83(0x207)],{'notExecuteFormula':!0x0}],[A[_0x409a83(0x249)]]][_0x409a83(0x2ae)](([_0x2d40f3,_0x284577])=>this['registerPlugin'](_0x2d40f3,_0x284577));}[_0x576e68(0x2ed)](){const _0x55fd81=_0x576e68;super['dispose'](),this[_0x55fd81(0x2dc)](),this[_0x55fd81(0x273)][_0x55fd81(0x27f)]();}[_0x576e68(0x200)](_0x25b30b,_0x3ef3b3,_0x4d50e5){const _0x4553a2=_0x576e68;if(this['_pluginMap'][_0x4553a2(0x265)](_0x25b30b[_0x4553a2(0x2bd)])&&!_0x4d50e5)throw Error(_0x4553a2(0x242)+_0x25b30b[_0x4553a2(0x2bd)]+_0x4553a2(0x232));this[_0x4553a2(0x273)][_0x4553a2(0x304)](_0x25b30b[_0x4553a2(0x2bd)],[_0x25b30b,_0x3ef3b3]);}[_0x576e68(0x202)](){const _0xfdb82f=_0x576e68;return Array[_0xfdb82f(0x1ec)](this[_0xfdb82f(0x273)][_0xfdb82f(0x2a4)]());}['mountHistoryContent'](_0x48ae18,_0x26195b){const _0x4d1064=_0x576e68;let _0x154e97=document[_0x4d1064(0x2d3)](W);_0x154e97&&(_0x154e97[_0x4d1064(0x2b3)][_0x4d1064(0x2e1)]=_0x4d1064(0x214),this['_initUniver'](_0x48ae18,W,_0x26195b));}['unMountHistoryContent'](){const _0x394e26=_0x576e68;var _0x5ae453;this[_0x394e26(0x260)][_0x394e26(0x2ed)](),(_0x5ae453=this[_0x394e26(0x25c)])==null||_0x5ae453[_0x394e26(0x2ed)](),this[_0x394e26(0x2b5)][_0x394e26(0x2f3)](null);let _0x55da52=document['getElementById'](W);_0x55da52&&(_0x55da52[_0x394e26(0x2b3)][_0x394e26(0x2e1)]=_0x394e26(0x1eb),this['_internalWebWorker']&&(this[_0x394e26(0x2f8)][_0x394e26(0x25f)](),this[_0x394e26(0x2f8)]=null));}[_0x576e68(0x2bb)](_0x5d8a9e,_0x581ad6,_0x5882c0){const _0x2dc3dc=_0x576e68;var _0x32a624,_0x1446e9,_0x5a79ba,_0x4c6852,_0x484926;if(this[_0x2dc3dc(0x25c)])return;let _0x1a5835=new e[(_0x2dc3dc(0x218))]({'locales':{[this[_0x2dc3dc(0x2c0)]['getCurrentLocale']()]:this[_0x2dc3dc(0x2c0)][_0x2dc3dc(0x286)]()},'override':[[e[_0x2dc3dc(0x2b2)],{'useClass':r[_0x2dc3dc(0x20c)]}]]}),_0x1a4853=_0x1a5835[_0x2dc3dc(0x26d)]();this[_0x2dc3dc(0x25b)](this[_0x2dc3dc(0x2b6)]['darkMode$']['subscribe'](_0x53be67=>{const _0x25bdaf=_0x2dc3dc;_0x1a4853[_0x25bdaf(0x23a)](e[_0x25bdaf(0x1f6)])['setDarkMode'](_0x53be67);})),this[_0x2dc3dc(0x25b)](this[_0x2dc3dc(0x2b6)][_0x2dc3dc(0x241)][_0x2dc3dc(0x300)](_0x280d5d=>{const _0x38bf1e=_0x2dc3dc;_0x1a4853[_0x38bf1e(0x23a)](e[_0x38bf1e(0x1f6)])[_0x38bf1e(0x2e2)](_0x280d5d);})),_0x1a4853[_0x2dc3dc(0x23a)](e[_0x2dc3dc(0x227)])[_0x2dc3dc(0x235)](this[_0x2dc3dc(0x2c0)][_0x2dc3dc(0x22b)]()),_0x1a4853[_0x2dc3dc(0x23a)](e[_0x2dc3dc(0x23c)])[_0x2dc3dc(0x203)](r[_0x2dc3dc(0x2d6)],this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)](r[_0x2dc3dc(0x2d6)]));let _0x3f9dfc=this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)](a[_0x2dc3dc(0x306)]);_0x3f9dfc&&_0x1a5835[_0x2dc3dc(0x200)](a[_0x2dc3dc(0x28f)],{'license':_0x3f9dfc['ls']});let _0x2c77d3=(_0x32a624=this['_configService'][_0x2dc3dc(0x29d)](_0x2dc3dc(0x2ee)))==null?void 0x0:_0x32a624['workerURL'],_0x27633e=!!_0x2c77d3;_0x27633e&&(this['_internalWebWorker']=_0x2c77d3 instanceof Worker?_0x2c77d3:null,_0x1a5835[_0x2dc3dc(0x200)](S[_0x2dc3dc(0x26e)],{'workerURL':_0x2c77d3})),this['_pluginMap']['forEach'](([_0x175b4b,_0x17356a])=>{_0x1a5835['registerPlugin'](_0x175b4b,_0x17356a);}),_0x1a5835[_0x2dc3dc(0x200)](i[_0x2dc3dc(0x21f)],{'historyListServerUrl':(_0x1446e9=this['_configService']['getConfig'](_0x2dc3dc(0x2ee)))==null?void 0x0:_0x1446e9[_0x2dc3dc(0x1ff)],'historyPanelComponentKey':(_0x5a79ba=this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)](_0x2dc3dc(0x2ee)))==null?void 0x0:_0x5a79ba[_0x2dc3dc(0x212)],'historyPanelHidden':(_0x4c6852=this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)](_0x2dc3dc(0x2ee)))==null?void 0x0:_0x4c6852[_0x2dc3dc(0x1f1)],'historyAIassistantEnabled':(_0x484926=this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)]('edit-history-loader.config'))==null?void 0x0:_0x484926[_0x2dc3dc(0x259)]}),_0x1a4853[_0x2dc3dc(0x1fb)](_0x5f56de=>{this['_initListener'](_0x5f56de,_0x5d8a9e);}),this[_0x2dc3dc(0x2b5)][_0x2dc3dc(0x2f3)](_0x1a5835);let _0x528b65=_0x1a4853[_0x2dc3dc(0x23a)](i[_0x2dc3dc(0x2d7)]),_0x57a8b6=this[_0x2dc3dc(0x2ad)](_0x5d8a9e),_0x1823fa=()=>{const _0x53e26c=_0x2dc3dc;_0x5882c0?_0x528b65[_0x53e26c(0x22a)](_0x5d8a9e,_0x581ad6,_0x57a8b6,_0x5882c0):_0x528b65[_0x53e26c(0x2a5)](_0x5d8a9e,_0x581ad6,_0x57a8b6);};if(this[_0x2dc3dc(0x2e7)][_0x2dc3dc(0x2e5)]({'content':this[_0x2dc3dc(0x2c0)]['t'](_0x2dc3dc(0x255)),'type':m['MessageType'][_0x2dc3dc(0x2ab)]}),_0x27633e)try{_0x1a4853[_0x2dc3dc(0x23a)](S[_0x2dc3dc(0x2c2)])[_0x2dc3dc(0x243)]()[_0x2dc3dc(0x2e8)](()=>{_0x1823fa();});}catch{_0x1823fa();}else _0x1823fa();}[_0x576e68(0x2a6)](_0x250a2e,_0x36faa8){const _0x33fe1e=_0x576e68;let _0x287193=_0x250a2e[_0x33fe1e(0x23a)](i[_0x33fe1e(0x2d7)]);this['_disposableCollection'][_0x33fe1e(0x2d4)](_0x287193[_0x33fe1e(0x261)]['subscribe'](_0x329faf=>{const _0xfabfcf=_0x33fe1e;switch(_0x329faf){case i[_0xfabfcf(0x2bc)][_0xfabfcf(0x2f2)]:this[_0xfabfcf(0x2fd)][_0xfabfcf(0x211)](),this[_0xfabfcf(0x234)]['close']();break;case i[_0xfabfcf(0x2bc)][_0xfabfcf(0x309)]:this[_0xfabfcf(0x2e4)][_0xfabfcf(0x268)](q['id']),this[_0xfabfcf(0x2dc)]();break;case i[_0xfabfcf(0x2bc)][_0xfabfcf(0x2ac)]:this[_0xfabfcf(0x2dc)](),this[_0xfabfcf(0x2e7)][_0xfabfcf(0x2e5)]({'content':this[_0xfabfcf(0x2c0)]['t'](_0xfabfcf(0x2c7)),'type':m[_0xfabfcf(0x230)][_0xfabfcf(0x2ac)],'duration':0xbb8});break;default:break;}})),this[_0x33fe1e(0x260)]['add'](_0x287193[_0x33fe1e(0x24a)][_0x33fe1e(0x300)](async _0x10050d=>{const _0x18bc8e=_0x33fe1e;_0x10050d&&this[_0x18bc8e(0x2e4)][_0x18bc8e(0x268)](n['RevertRevisionMutation']['id'],{'unitId':_0x36faa8,'revision':_0x10050d});}));}[_0x576e68(0x2ad)](_0x3c17b3){const _0x2c5083=_0x576e68;let _0x971277=this[_0x2c5083(0x229)]['getUnit'](_0x3c17b3)[_0x2c5083(0x308)]()['map'](_0xa65e71=>_0xa65e71[_0x2c5083(0x1f7)]()),_0x5ca8bb=new t[(_0x2c5083(0x23b))](_0x3c17b3)['id'],_0x35801d=_0x971277[_0x2c5083(0x25d)](_0xd1a571=>new t[(_0x2c5083(0x23e))](_0x3c17b3,_0xd1a571)['id']),_0x5a81ab=_0x971277[_0x2c5083(0x25d)](_0x5ef2de=>this[_0x2c5083(0x2a2)]['getSubunitRuleList'](_0x3c17b3,_0x5ef2de)[_0x2c5083(0x25d)](_0x7883db=>new t[(_0x2c5083(0x2e6))](_0x3c17b3,_0x5ef2de,_0x7883db[_0x2c5083(0x297)])['id']))[_0x2c5083(0x302)](),_0x4fbacc=new t[(_0x2c5083(0x2fc))](_0x3c17b3)['id'];return this['_permissionService'][_0x2c5083(0x20e)]([_0x5ca8bb,..._0x35801d,..._0x5a81ab,_0x4fbacc])[_0x2c5083(0x236)](_0x5b439c=>!!_0x5b439c[_0x2c5083(0x27d)]);}};function _0x2d5f(){const _0x123c5e=['UniverEditHistoryViewerMobilePlugin','top','getUnitId','UniverSheetsTablePlugin','revertRevision$','IImageIoService','DataLoaderService','takeUntil','darkMode$','UniverDocsUIPlugin','BUTTON','UniverDataValidationPlugin','getUnhiddenWorksheets','_menuManagerService','MobileHistoryLoaderService','editHistory.info.initializing','Inject','UNIVER_SHEET','function','historyAIassistantEnabled','editHistory.panel.reverting','disposeWithMe','historyUniver','map','DisposableCollection','terminate','_disposableCollection','status$','UniverSheetsDrawingUIPlugin','UniverUIPlugin','session','has','reload','workerURL','executeCommand','UNIVER_CONTAINER_ID_KEY','getCurrentUnitOfType','getParam','ComponentManager','__getInjector','UniverRPCMainThreadPlugin','editHistory.panel.title','UniverSheetsShapeUIPlugin','eventID','UniverNetworkPlugin','_pluginMap','UniverSheetsDataValidationUIPlugin','UniverSheetsDrawingPlugin','UniverCollaborationPlugin','IDialogService','asObservable','UNIVER_UNKNOWN','UniverInstanceType','_componentManager','_init','value','UniverRenderEnginePlugin','clear','type','width','univer-history-container','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','UniverSheetsConditionalFormattingPlugin','UniverType','getLocales','fromCollab','CollaborationController','position','constructor','Plugin','UniverSheetsFormulaPlugin','UniverSheetSparklinePlugin','0.18.0','UniverLicensePlugin','HistoryIcon','mutations','iterator','menu','SetWorksheetActivateCommand','CollaborationStatus','DependentOn','permissionId','_revertErrorTimer','toPrimitive','IPermissionService','height','some','getConfig','UniverSheetsHyperLinkUIPlugin','26425816hgxjYb','_setupSubUnitSync','dataset','_selectionProtectionRuleModel','3QCIsnU','values','triggerLoadVersions','_initListener','pipe','createElement','history-container','RevertRevisionMutation','Loading','Error','_checkCanRevert','forEach','mountHistoryContent','getCollabEntity','100%','IAuthzIoService','style','_initPlugins','_historyUniver$','_themeService','UniverSheetsHyperLinkPlugin','IMessageService','UniverSheetsConditionalFormattingUIPlugin','disposeUnit','_initUniver','HistoryModeStatus','pluginName','mergeMenu','Workbook','_localeService','unsubscribe','IRemoteInstanceService','UniverEditHistoryLoaderMobilePlugin','RibbonStartGroup','state$','removeAll','editHistory.panel.listFetchError','onCommandExecuted','351723KIIVul','IURLService','UniverSheetSparklineUIPlugin','urlChange$','data','_permissionService','_historyManagerService','3334440ENjbsw','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverSheetsFormulaUIPlugin','getElementById','add','exhaustSavingTask','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','HistoryManagerService','toStringTag','UniverMobileUIPlugin','loadUnit','UniverSheetsDataValidationMobileUIPlugin','unMountHistoryContent','combineLatest','Module','_urlService','_updateSubUnitFromURLParams','display','setTheme','div','_commandService','show','RangeProtectionPermissionEditPoint','_messageService','then','UniverSheetsChartUIPlugin','packageName','ICommandService','_injector','dispose','edit-history-loader.config','univerContainerId','appendChild','_initContainer','Entered','next','UniverDocsPlugin','3385434fNlVxZ','5647196BZcXHu','defineProperty','_internalWebWorker','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','status','setDarkMode','WorkbookRecoverHistoryPermission','_dialogService','CollaborationEvent','UniverSheetsChartPlugin','subscribe','absolute','flat','merge','set','subunit','LS_CONFIG_KEY','getSheetBySheetId','getSheets','Exited','none','from','RxDisposable','Disposable','UniverSheetsUIPlugin','editHistory.panel.revertFailed','historyPanelHidden','UniverSheetsNumfmtPlugin','UniverSheetsFilterPlugin','OPERATION','_localCacheService','ThemeService','getSheetId','dispose$','symbol','univer.operation.exit-edit-history','invoke','[MobileHistoryLoaderService]:\x20Plugin\x20','getSubunitRuleList','IUniverInstanceService','historyListServerUrl','registerPlugin','UniverSheetsFilterUIPlugin','getAllPlugins','setConfig','840314ZYeTeJ','ISidebarService','ToggleEditHistoryOperation','UniverSheetsPivotTablePlugin','getActiveSheet','UniverFormulaEnginePlugin','_updateURLWithCurrentState','BehaviorSubject','AuthzIoHttpService','register','composePermission','HistoryLoaderService','activeSheet$','closeAll','historyPanelComponentKey','SYNCED','block','object','univer-container','decorate','Univer','length','location','@univerjs-pro/edit-history-loader','_config','prototype','CommandType','UniverEditHistoryViewerPlugin','event$','_collaborationController','zIndex','getOwnPropertyDescriptor','UniverSheetsPlugin','params','univer-history-container-mobile','LocaleService','IMenuManagerService','_univerInstanceService','triggerCustomVersions','getCurrentLocale','UNIVER_CONTAINER_ID','onStarting','Injector','onSteady','MessageType','WorkbookViewHistoryPermission','\x20has\x20been\x20registered.','OTHERS','_sidebarService','setLocale','every','_configService','left','_handleRevertAcknowledgement','get','WorkbookEditablePermission','IConfigService','UniverSheetsDataValidationPlugin','WorksheetEditPermission','version','UniverSheetsShapePlugin','currentTheme$','[HistoryLoaderService]:\x20Plugin\x20','whenReady','9773211MFZWuc','_dataLoaderService'];_0x2d5f=function(){return _0x123c5e;};return _0x2d5f();}G=H([V(0x0,(0x0,e[_0x576e68(0x256)])(e['LocaleService'])),V(0x1,e[_0x576e68(0x1fe)]),V(0x2,e[_0x576e68(0x23c)]),V(0x3,e[_0x576e68(0x2eb)]),V(0x4,M[_0x576e68(0x2b8)]),V(0x5,e[_0x576e68(0x29a)]),V(0x6,(0x0,e[_0x576e68(0x256)])(t['RangeProtectionRuleModel'])),V(0x7,(0x0,e[_0x576e68(0x256)])(M['IDialogService'])),V(0x8,(0x0,e[_0x576e68(0x256)])(M['ISidebarService'])),V(0x9,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x1f6)]))],G);const K={'id':'univer.operation.toggle-edit-history','type':e[_0x576e68(0x21e)][_0x576e68(0x1f4)],'handler':_0x51db42=>{const _0x53a54e=_0x576e68;let _0x201145=_0x51db42[_0x53a54e(0x23a)](G),{unitId:_0x53c6d6}=(0x0,t['getSheetCommandTarget'])(_0x51db42[_0x53a54e(0x23a)](e[_0x53a54e(0x1fe)]))||{};return _0x53c6d6?(_0x201145[_0x53a54e(0x2af)](_0x53c6d6),!0x0):!0x1;}},q={'id':_0x576e68(0x1fa),'type':e[_0x576e68(0x21e)]['OPERATION'],'handler':()=>!0x0};var ce=_0x576e68(0x21b),le=_0x576e68(0x28e);function ue(_0x57ea37){const _0x3e1b1b=_0x576e68;return{'id':K['id'],'type':M['MenuItemType'][_0x3e1b1b(0x250)],'icon':_0x3e1b1b(0x290),'tooltip':_0x3e1b1b(0x26f),'hidden$':(0x0,M['getMenuHiddenObservable'])(_0x57ea37,e[_0x3e1b1b(0x27a)][_0x3e1b1b(0x257)]),'disabled$':(0x0,j['getCurrentRangeDisable$'])(_0x57ea37,{'workbookTypes':[t[_0x3e1b1b(0x23b)],t[_0x3e1b1b(0x231)]],'worksheetTypes':[],'rangeTypes':[]})};}const de={[M[_0x576e68(0x2c4)][_0x576e68(0x233)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ue}}};let J=class extends e['RxDisposable']{constructor(_0x1451fb,_0x5532fd,_0x6e2e33,_0x3d9ab4,_0x36521c,_0x4df1e3,_0x5ac86f,_0x363573,_0x36a133,_0x4f9ff2,_0x5138e7){const _0x10787c=_0x576e68;super(),this[_0x10787c(0x2e4)]=_0x1451fb,this[_0x10787c(0x253)]=_0x5532fd,this[_0x10787c(0x27b)]=_0x6e2e33,this[_0x10787c(0x2cf)]=_0x3d9ab4,this['_localeService']=_0x36521c,this[_0x10787c(0x2e7)]=_0x4df1e3,this[_0x10787c(0x221)]=_0x5ac86f,this['_localCacheService']=_0x363573,this[_0x10787c(0x245)]=_0x36a133,this[_0x10787c(0x229)]=_0x4f9ff2,this[_0x10787c(0x2df)]=_0x5138e7,B(this,_0x10787c(0x298),null),this['_init']();}[_0x576e68(0x27c)](){const _0x33ae9c=_0x576e68;[K,q][_0x33ae9c(0x2ae)](_0x2b7442=>this['disposeWithMe']((0x0,e['toDisposable'])(this[_0x33ae9c(0x2e4)]['registerCommand'](_0x2b7442)))),this[_0x33ae9c(0x25b)](this[_0x33ae9c(0x27b)][_0x33ae9c(0x20d)]('HistoryIcon',F[_0x33ae9c(0x290)])),this[_0x33ae9c(0x253)][_0x33ae9c(0x2be)](de),this[_0x33ae9c(0x25b)](this[_0x33ae9c(0x2e4)][_0x33ae9c(0x2c8)](async(_0x1457b4,_0x4842d9)=>{const _0x373f41=_0x33ae9c;if(_0x1457b4['id']===n[_0x373f41(0x2aa)]['id']){let {unitId:_0x3a3781}=_0x1457b4[_0x373f41(0x225)];this[_0x373f41(0x2e7)]['show']({'content':this[_0x373f41(0x2c0)]['t'](_0x373f41(0x25a)),'type':m[_0x373f41(0x230)][_0x373f41(0x2ab)],'duration':0x1388});let _0x2b392e=this[_0x373f41(0x221)][_0x373f41(0x2b0)](_0x3a3781);_0x4842d9!=null&&_0x4842d9['fromCollab']?this[_0x373f41(0x239)](_0x2b392e,async()=>(setTimeout(()=>window['location'][_0x373f41(0x266)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x2b392e,async()=>{const _0x299d83=_0x373f41;let _0x5b2026=this[_0x299d83(0x229)]['getCurrentUnitOfType'](I['UniverType'][_0x299d83(0x257)]),_0x447de3=_0x5b2026==null?void 0x0:_0x5b2026['getActiveSheet']();if(!_0x447de3)return!0x1;this['_univerInstanceService'][_0x299d83(0x2ba)](_0x3a3781);let _0x35f7ff=await this[_0x299d83(0x245)][_0x299d83(0x2da)](_0x3a3781,I[_0x299d83(0x285)][_0x299d83(0x257)]);return _0x35f7ff&&_0x35f7ff instanceof e['Workbook']?(await this[_0x299d83(0x2a0)](_0x35f7ff,_0x447de3['getSheetId']()),!0x0):!0x1;});}}));}[_0x576e68(0x239)](_0x4e7d26,_0x14a1cf,_0x44db63=!0x1){const _0x53d320=_0x576e68;let _0x39645d=(0x0,N[_0x53d320(0x2dd)])([_0x4e7d26[_0x53d320(0x264)][_0x53d320(0x220)],_0x4e7d26['state$']])['subscribe'](async([_0xcd478f,_0x1d6f5f])=>{const _0x983de1=_0x53d320;if(_0xcd478f[_0x983de1(0x271)]===n[_0x983de1(0x2fe)]['CHANGESET_ACK']&&(_0x1d6f5f==null?void 0x0:_0x1d6f5f[_0x983de1(0x2fa)])===r[_0x983de1(0x295)]['SYNCED']&&_0xcd478f[_0x983de1(0x2cd)][_0x983de1(0x291)][_0x983de1(0x29c)](_0x33e047=>_0x33e047['id']===n[_0x983de1(0x2aa)]['id'])&&await _0x14a1cf()){var _0x162cd7;this[_0x983de1(0x2cf)][_0x983de1(0x2dc)](),_0x39645d[_0x983de1(0x2c1)](),this[_0x983de1(0x298)]&&clearTimeout(this['_revertErrorTimer']),await((_0x162cd7=this[_0x983de1(0x1f5)])==null?void 0x0:_0x162cd7['exhaustSavingTask']()),this[_0x983de1(0x2e7)][_0x983de1(0x2c6)]();}});_0x44db63&&(this[_0x53d320(0x298)]=setTimeout(()=>{const _0x4cee61=_0x53d320;_0x39645d[_0x4cee61(0x2c1)](),this[_0x4cee61(0x2e7)][_0x4cee61(0x2e5)]({'content':this[_0x4cee61(0x2c0)]['t']('editHistory.panel.revertFailed'),'type':m[_0x4cee61(0x230)][_0x4cee61(0x2ac)],'duration':0xbb8});},0x1388));}async[_0x576e68(0x2a0)](_0x319f0a,_0x3f3c2c){const _0x451796=_0x576e68;await this[_0x451796(0x2e0)](_0x319f0a,_0x3f3c2c),_0x319f0a[_0x451796(0x210)]['pipe']((0x0,N[_0x451796(0x24d)])(this[_0x451796(0x1f8)]))['subscribe'](_0x49578e=>{_0x49578e&&this['_updateURLWithCurrentState'](_0x49578e);}),this[_0x451796(0x2df)][_0x451796(0x2cc)][_0x451796(0x2a7)]((0x0,N['takeUntil'])(this[_0x451796(0x1f8)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x319f0a,_0x3f3c2c));}[_0x576e68(0x20a)](_0x818484,_0x16c092=!0x1){const _0x38c8fb=_0x576e68;let _0x5c39c6=this['_urlService'][_0x38c8fb(0x26b)](_0x38c8fb(0x305));_0x818484[_0x38c8fb(0x1f7)]()!==_0x5c39c6&&this[_0x38c8fb(0x2df)]['setParam'](_0x38c8fb(0x305),_0x818484[_0x38c8fb(0x1f7)](),_0x16c092);}async[_0x576e68(0x2e0)](_0x581e91,_0x1c1cd8){const _0x5827e9=_0x576e68;var _0x349f8e;if(!_0x1c1cd8||!_0x581e91['getSheetBySheetId'](_0x1c1cd8)){let _0x530560=_0x581e91['getUnhiddenWorksheets']()[0x0],_0x4b777e=_0x581e91[_0x5827e9(0x307)](_0x530560);if(!_0x4b777e)return;this['_updateURLWithCurrentState'](_0x4b777e,!0x0),await this[_0x5827e9(0x2e4)]['executeCommand'](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x581e91[_0x5827e9(0x248)](),'subUnitId':_0x530560});return;}((_0x349f8e=_0x581e91[_0x5827e9(0x208)]())==null?void 0x0:_0x349f8e[_0x5827e9(0x1f7)]())!==_0x1c1cd8&&await this[_0x5827e9(0x2e4)][_0x5827e9(0x268)](t[_0x5827e9(0x294)]['id'],{'unitId':_0x581e91[_0x5827e9(0x248)](),'subUnitId':_0x1c1cd8});}};J=H([V(0x0,e['ICommandService']),V(0x1,M[_0x576e68(0x228)]),V(0x2,(0x0,e[_0x576e68(0x256)])(M[_0x576e68(0x26c)])),V(0x3,(0x0,e[_0x576e68(0x256)])(G)),V(0x4,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x227)])),V(0x5,M[_0x576e68(0x2b8)]),V(0x6,(0x0,e[_0x576e68(0x256)])(r[_0x576e68(0x288)])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e[_0x576e68(0x256)])(r['DataLoaderService'])),V(0x9,e[_0x576e68(0x1fe)]),V(0xa,P[_0x576e68(0x2ca)])],J);const Y=_0x576e68(0x226);let X=class extends e[_0x576e68(0x1ee)]{constructor(_0x481c7e,_0x1d223e,_0x4705b0,_0x49cfda,_0x6712ee,_0x325691,_0x25c739,_0x4abf4b,_0x27dfe7,_0x502456){const _0x584d3a=_0x576e68;super(),this[_0x584d3a(0x2c0)]=_0x481c7e,this[_0x584d3a(0x229)]=_0x1d223e,this[_0x584d3a(0x237)]=_0x4705b0,this[_0x584d3a(0x2e4)]=_0x49cfda,this['_messageService']=_0x6712ee,this[_0x584d3a(0x2ce)]=_0x325691,this['_selectionProtectionRuleModel']=_0x25c739,this[_0x584d3a(0x2fd)]=_0x4abf4b,this['_sidebarService']=_0x27dfe7,this[_0x584d3a(0x2b6)]=_0x502456,B(this,'_historyUniver$',new N['BehaviorSubject'](null)),B(this,'historyUniver$',this[_0x584d3a(0x2b5)][_0x584d3a(0x278)]()),B(this,_0x584d3a(0x260),new e['DisposableCollection']()),B(this,_0x584d3a(0x273),new Map()),B(this,_0x584d3a(0x2f8),null),this['_init']();}get[_0x576e68(0x25c)](){const _0x236758=_0x576e68;return this['_historyUniver$'][_0x236758(0x27d)];}[_0x576e68(0x27c)](){const _0x853633=_0x576e68;this[_0x853633(0x2f1)](),this[_0x853633(0x2b4)]();}[_0x576e68(0x2f1)](){const _0x132947=_0x576e68;var _0x34a39a;let _0x31fea9=(_0x34a39a=this[_0x132947(0x237)]['getConfig'](_0x132947(0x22c)))==null?_0x132947(0x216):_0x34a39a,_0x26dfca=document[_0x132947(0x2d3)](_0x31fea9);if(!_0x26dfca)return;let _0x1593ab=document['createElement'](_0x132947(0x2e3));_0x1593ab['id']=Y,_0x1593ab[_0x132947(0x2a1)]['uComp']=_0x132947(0x2a9),_0x1593ab['style'][_0x132947(0x289)]=_0x132947(0x301),_0x1593ab[_0x132947(0x2b3)][_0x132947(0x247)]='0',_0x1593ab[_0x132947(0x2b3)][_0x132947(0x238)]='0',_0x1593ab['style'][_0x132947(0x281)]=_0x132947(0x2b1),_0x1593ab[_0x132947(0x2b3)][_0x132947(0x29b)]=_0x132947(0x2b1),_0x1593ab[_0x132947(0x2b3)][_0x132947(0x222)]='49',_0x1593ab['style']['display']=_0x132947(0x1eb),_0x26dfca[_0x132947(0x2f0)](_0x1593ab);}['_initPlugins'](){const _0x18af68=_0x576e68;[[b[_0x18af68(0x27e)]],[M[_0x18af68(0x2d9)],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M['IDialogService'],null]]}],[x[_0x18af68(0x272)]],[_['UniverDrawingPlugin'],{'override':[[_[_0x18af68(0x24b)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g[_0x18af68(0x24f)]],[k[_0x18af68(0x1f2)]],[t[_0x18af68(0x224)],{'notExecuteFormula':!0x0}],[j['UniverSheetsMobileUIPlugin']],[re[_0x18af68(0x28c)]],[ie[_0x18af68(0x2d2)]],[n[_0x18af68(0x276)]],[te['UniverSheetsFilterPlugin']],[C[_0x18af68(0x284)]],[ae[_0x18af68(0x2b7)]],[O[_0x18af68(0x29e)]],[p['UniverDataValidationPlugin']],[w[_0x18af68(0x23d)]],[T[_0x18af68(0x2db)]],[y[_0x18af68(0x209)],{'notExecuteFormula':!0x0}],[v['UniverDrawingUIPlugin']],[E[_0x18af68(0x275)]],[D['UniverSheetsDrawingUIPlugin']],[d[_0x18af68(0x28d)]],[f[_0x18af68(0x2cb)]],[o[_0x18af68(0x2ff)]],[s[_0x18af68(0x2e9)]],[l[_0x18af68(0x240)]],[u[_0x18af68(0x270)]],[c['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[A['UniverSheetsTablePlugin']]][_0x18af68(0x2ae)](([_0x152cf7,_0x4981f4])=>this['registerPlugin'](_0x152cf7,_0x4981f4));}[_0x576e68(0x2ed)](){const _0x3016e4=_0x576e68;super[_0x3016e4(0x2ed)](),this['unMountHistoryContent'](),this[_0x3016e4(0x273)][_0x3016e4(0x27f)]();}['registerPlugin'](_0x981d3a,_0x30e5ff,_0x277caf){const _0x1a86f9=_0x576e68;if(this[_0x1a86f9(0x273)][_0x1a86f9(0x265)](_0x981d3a[_0x1a86f9(0x2bd)])&&!_0x277caf)throw Error(_0x1a86f9(0x1fc)+_0x981d3a[_0x1a86f9(0x2bd)]+_0x1a86f9(0x232));this[_0x1a86f9(0x273)][_0x1a86f9(0x304)](_0x981d3a['pluginName'],[_0x981d3a,_0x30e5ff]);}[_0x576e68(0x202)](){const _0x53f160=_0x576e68;return Array[_0x53f160(0x1ec)](this[_0x53f160(0x273)][_0x53f160(0x2a4)]());}[_0x576e68(0x2af)](_0x1818a1,_0x5a4e8d){const _0x4e7845=_0x576e68;let _0x5b7daa=document[_0x4e7845(0x2d3)](Y);_0x5b7daa&&(_0x5b7daa[_0x4e7845(0x2b3)][_0x4e7845(0x2e1)]=_0x4e7845(0x214),this[_0x4e7845(0x2bb)](_0x1818a1,Y,_0x5a4e8d));}[_0x576e68(0x2dc)](){const _0x54664b=_0x576e68;var _0x1685c1;this[_0x54664b(0x260)]['dispose'](),(_0x1685c1=this[_0x54664b(0x25c)])==null||_0x1685c1['dispose'](),this[_0x54664b(0x2b5)][_0x54664b(0x2f3)](null);let _0x577ccf=document[_0x54664b(0x2d3)](Y);_0x577ccf&&(_0x577ccf[_0x54664b(0x2b3)]['display']=_0x54664b(0x1eb),this[_0x54664b(0x2f8)]&&(this[_0x54664b(0x2f8)][_0x54664b(0x25f)](),this[_0x54664b(0x2f8)]=null));}['_initUniver'](_0x39d68c,_0x4b45c7,_0x1d3903){const _0x5d7628=_0x576e68;var _0x21f4ed,_0x243861,_0xe9a655,_0x17141c;if(this['historyUniver'])return;let _0x11c97a=new e[(_0x5d7628(0x218))]({'locales':{[this['_localeService'][_0x5d7628(0x22b)]()]:this['_localeService']['getLocales']()},'override':[[e[_0x5d7628(0x2b2)],{'useClass':r[_0x5d7628(0x20c)]}]]}),_0x1c8371=_0x11c97a[_0x5d7628(0x26d)]();this[_0x5d7628(0x25b)](this['_themeService'][_0x5d7628(0x24e)][_0x5d7628(0x300)](_0x5e939c=>{const _0x17ca29=_0x5d7628;_0x1c8371['get'](e['ThemeService'])[_0x17ca29(0x2fb)](_0x5e939c);})),this['disposeWithMe'](this[_0x5d7628(0x2b6)][_0x5d7628(0x241)][_0x5d7628(0x300)](_0x41a771=>{const _0x2599cf=_0x5d7628;_0x1c8371[_0x2599cf(0x23a)](e[_0x2599cf(0x1f6)])[_0x2599cf(0x2e2)](_0x41a771);})),_0x1c8371[_0x5d7628(0x23a)](e[_0x5d7628(0x227)])[_0x5d7628(0x235)](this[_0x5d7628(0x2c0)][_0x5d7628(0x22b)]()),_0x1c8371['get'](e[_0x5d7628(0x23c)])[_0x5d7628(0x203)](r[_0x5d7628(0x2d6)],this[_0x5d7628(0x237)][_0x5d7628(0x29d)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0xf2a12b=this['_configService'][_0x5d7628(0x29d)](a[_0x5d7628(0x306)]);_0xf2a12b&&_0x11c97a[_0x5d7628(0x200)](a[_0x5d7628(0x28f)],{'license':_0xf2a12b['ls']});let _0x392fff=(_0x21f4ed=this[_0x5d7628(0x237)]['getConfig'](_0x5d7628(0x2ee)))==null?void 0x0:_0x21f4ed[_0x5d7628(0x267)],_0x32c046=!!_0x392fff;_0x32c046&&(this[_0x5d7628(0x2f8)]=_0x392fff instanceof Worker?_0x392fff:null,_0x11c97a['registerPlugin'](S['UniverRPCMainThreadPlugin'],{'workerURL':_0x392fff})),this['_pluginMap'][_0x5d7628(0x2ae)](([_0x16c91f,_0x3c0372])=>{const _0x1050f7=_0x5d7628;_0x11c97a[_0x1050f7(0x200)](_0x16c91f,_0x3c0372);}),_0x11c97a[_0x5d7628(0x200)](i[_0x5d7628(0x246)],{'historyListServerUrl':(_0x243861=this[_0x5d7628(0x237)][_0x5d7628(0x29d)](_0x5d7628(0x2ee)))==null?void 0x0:_0x243861[_0x5d7628(0x1ff)],'historyPanelComponentKey':(_0xe9a655=this[_0x5d7628(0x237)][_0x5d7628(0x29d)]('edit-history-loader.config'))==null?void 0x0:_0xe9a655[_0x5d7628(0x212)],'historyPanelHidden':(_0x17141c=this[_0x5d7628(0x237)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x17141c[_0x5d7628(0x1f1)]}),_0x1c8371[_0x5d7628(0x1fb)](_0x469711=>{const _0x2aa787=_0x5d7628;this[_0x2aa787(0x2a6)](_0x469711,_0x39d68c);}),this['_historyUniver$'][_0x5d7628(0x2f3)](_0x11c97a);let _0x5eb235=_0x1c8371[_0x5d7628(0x23a)](i[_0x5d7628(0x2d7)]),_0x2bc3bb=this['_checkCanRevert'](_0x39d68c),_0x4394da=()=>{const _0x23afb2=_0x5d7628;_0x1d3903?_0x5eb235[_0x23afb2(0x22a)](_0x39d68c,_0x4b45c7,_0x2bc3bb,_0x1d3903):_0x5eb235['triggerLoadVersions'](_0x39d68c,_0x4b45c7,_0x2bc3bb);};if(this['_messageService'][_0x5d7628(0x2e5)]({'content':this[_0x5d7628(0x2c0)]['t']('editHistory.info.initializing'),'type':m['MessageType']['Loading']}),_0x32c046)try{_0x1c8371['get'](S[_0x5d7628(0x2c2)])[_0x5d7628(0x243)]()['then'](()=>{_0x4394da();});}catch{_0x4394da();}else _0x4394da();}['_initListener'](_0x14daf2,_0x11b02e){const _0x317bfa=_0x576e68;let _0x54c9c4=_0x14daf2['get'](i[_0x317bfa(0x2d7)]);this[_0x317bfa(0x260)][_0x317bfa(0x2d4)](_0x54c9c4[_0x317bfa(0x261)][_0x317bfa(0x300)](_0x39fa87=>{const _0x53cd19=_0x317bfa;switch(_0x39fa87){case i[_0x53cd19(0x2bc)][_0x53cd19(0x2f2)]:this[_0x53cd19(0x2fd)][_0x53cd19(0x211)](),this[_0x53cd19(0x234)]['close']();break;case i[_0x53cd19(0x2bc)]['Exited']:this[_0x53cd19(0x2e4)][_0x53cd19(0x268)](q['id']),this[_0x53cd19(0x2dc)]();break;case i[_0x53cd19(0x2bc)][_0x53cd19(0x2ac)]:this['unMountHistoryContent'](),this[_0x53cd19(0x2e7)][_0x53cd19(0x2e5)]({'content':this[_0x53cd19(0x2c0)]['t'](_0x53cd19(0x2c7)),'type':m[_0x53cd19(0x230)]['Error'],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x54c9c4['revertRevision$'][_0x317bfa(0x300)](async _0x39baaa=>{const _0x1aa595=_0x317bfa;_0x39baaa&&this[_0x1aa595(0x2e4)][_0x1aa595(0x268)](n[_0x1aa595(0x2aa)]['id'],{'unitId':_0x11b02e,'revision':_0x39baaa});}));}[_0x576e68(0x2ad)](_0x18353f){const _0x5cfc82=_0x576e68;let _0x230e2a=this[_0x5cfc82(0x229)]['getUnit'](_0x18353f)['getSheets']()[_0x5cfc82(0x25d)](_0xde6d7f=>_0xde6d7f[_0x5cfc82(0x1f7)]()),_0x25d295=new t[(_0x5cfc82(0x23b))](_0x18353f)['id'],_0x350a09=_0x230e2a['map'](_0x598c9d=>new t[(_0x5cfc82(0x23e))](_0x18353f,_0x598c9d)['id']),_0x366bd4=_0x230e2a[_0x5cfc82(0x25d)](_0x5b7cb0=>this['_selectionProtectionRuleModel'][_0x5cfc82(0x1fd)](_0x18353f,_0x5b7cb0)[_0x5cfc82(0x25d)](_0x48d870=>new t['RangeProtectionPermissionEditPoint'](_0x18353f,_0x5b7cb0,_0x48d870['permissionId'])['id']))[_0x5cfc82(0x302)](),_0x368afb=new t[(_0x5cfc82(0x2fc))](_0x18353f)['id'];return this['_permissionService'][_0x5cfc82(0x20e)]([_0x25d295,..._0x350a09,..._0x366bd4,_0x368afb])[_0x5cfc82(0x236)](_0x1f1568=>!!_0x1f1568['value']);}};X=H([V(0x0,(0x0,e['Inject'])(e[_0x576e68(0x227)])),V(0x1,e[_0x576e68(0x1fe)]),V(0x2,e['IConfigService']),V(0x3,e[_0x576e68(0x2eb)]),V(0x4,M[_0x576e68(0x2b8)]),V(0x5,e[_0x576e68(0x29a)]),V(0x6,(0x0,e[_0x576e68(0x256)])(t['RangeProtectionRuleModel'])),V(0x7,(0x0,e['Inject'])(M['IDialogService'])),V(0x8,(0x0,e['Inject'])(M[_0x576e68(0x205)])),V(0x9,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x1f6)]))],X);let Z=class extends e[_0x576e68(0x28b)]{constructor(_0x5c83fb=R,_0x496ee5,_0x2496bd){const _0x4131b9=_0x576e68;super(),this[_0x4131b9(0x21c)]=_0x5c83fb,this['_injector']=_0x496ee5,this[_0x4131b9(0x237)]=_0x2496bd;let {menu:_0x53fcc9,..._0x9a4164}=(0x0,e[_0x4131b9(0x303)])({},R,this[_0x4131b9(0x21c)]);_0x53fcc9&&this['_configService']['setConfig'](_0x4131b9(0x293),_0x53fcc9,{'merge':!0x0}),this[_0x4131b9(0x237)][_0x4131b9(0x203)](L,_0x9a4164),this[_0x4131b9(0x21c)][_0x4131b9(0x2ef)]&&this['_configService'][_0x4131b9(0x203)](_0x4131b9(0x22c),this[_0x4131b9(0x21c)]['univerContainerId']);}[_0x576e68(0x22d)](){const _0x4d7dc2=_0x576e68;[[G,{'useClass':X}],[J]][_0x4d7dc2(0x2ae)](_0x4cd002=>this[_0x4d7dc2(0x2ec)]['add'](_0x4cd002));}[_0x576e68(0x22f)](){const _0x391eef=_0x576e68;this[_0x391eef(0x2ec)][_0x391eef(0x23a)](J);}};B(Z,_0x576e68(0x280),e['UniverInstanceType'][_0x576e68(0x279)]),B(Z,_0x576e68(0x2bd),_0x576e68(0x283)),B(Z,_0x576e68(0x2ea),ce),B(Z,_0x576e68(0x23f),le),Z=H([(0x0,e['DependentOn'])(a[_0x576e68(0x28f)]),V(0x1,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x22e)])),V(0x2,e[_0x576e68(0x23c)])],Z);let Q=class extends e[_0x576e68(0x1ed)]{constructor(_0xdd4f37,_0x17a6d3,_0x1fcd7f,_0x2d3b1b,_0x4471c4,_0x2da489,_0x145e87,_0x555904,_0x1f73dd,_0x5492f4,_0x5763dc){const _0x48ad2f=_0x576e68;super(),this[_0x48ad2f(0x2e4)]=_0xdd4f37,this[_0x48ad2f(0x253)]=_0x17a6d3,this[_0x48ad2f(0x27b)]=_0x1fcd7f,this[_0x48ad2f(0x2cf)]=_0x2d3b1b,this['_localeService']=_0x4471c4,this['_messageService']=_0x2da489,this[_0x48ad2f(0x221)]=_0x145e87,this[_0x48ad2f(0x1f5)]=_0x555904,this[_0x48ad2f(0x245)]=_0x1f73dd,this[_0x48ad2f(0x229)]=_0x5492f4,this[_0x48ad2f(0x2df)]=_0x5763dc,B(this,'_revertErrorTimer',null),this['_init']();}[_0x576e68(0x27c)](){const _0x137009=_0x576e68;[K,q][_0x137009(0x2ae)](_0x311eb5=>this[_0x137009(0x25b)]((0x0,e['toDisposable'])(this[_0x137009(0x2e4)]['registerCommand'](_0x311eb5)))),this[_0x137009(0x25b)](this[_0x137009(0x27b)]['register'](_0x137009(0x290),F[_0x137009(0x290)])),this[_0x137009(0x253)][_0x137009(0x2be)](de),this[_0x137009(0x25b)](this['_commandService']['onCommandExecuted'](async(_0x2161ca,_0x10f803)=>{const _0x3cc53a=_0x137009;if(_0x2161ca['id']===n[_0x3cc53a(0x2aa)]['id']){let {unitId:_0x26e31e}=_0x2161ca[_0x3cc53a(0x225)];this[_0x3cc53a(0x2e7)][_0x3cc53a(0x2e5)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':m[_0x3cc53a(0x230)][_0x3cc53a(0x2ab)],'duration':0x1388});let _0x110a65=this[_0x3cc53a(0x221)]['getCollabEntity'](_0x26e31e);_0x10f803!=null&&_0x10f803[_0x3cc53a(0x287)]?this['_handleRevertAcknowledgement'](_0x110a65,async()=>(setTimeout(()=>window[_0x3cc53a(0x21a)]['reload']()),!0x0),!0x0):this[_0x3cc53a(0x239)](_0x110a65,async()=>{const _0x156681=_0x3cc53a;let _0x5ccfb3=this['_univerInstanceService'][_0x156681(0x26a)](I[_0x156681(0x285)][_0x156681(0x257)]),_0x2099ff=_0x5ccfb3==null?void 0x0:_0x5ccfb3['getActiveSheet']();if(!_0x2099ff)return!0x1;this[_0x156681(0x229)]['disposeUnit'](_0x26e31e);let _0x3b0bc8=await this[_0x156681(0x245)][_0x156681(0x2da)](_0x26e31e,I[_0x156681(0x285)][_0x156681(0x257)]);return _0x3b0bc8&&_0x3b0bc8 instanceof e[_0x156681(0x2bf)]?(await this[_0x156681(0x2a0)](_0x3b0bc8,_0x2099ff[_0x156681(0x1f7)]()),!0x0):!0x1;});}}));}[_0x576e68(0x239)](_0x47afb4,_0x5b3954,_0x4f20af=!0x1){const _0x457d77=_0x576e68;let _0x437d76=(0x0,N[_0x457d77(0x2dd)])([_0x47afb4[_0x457d77(0x264)]['event$'],_0x47afb4[_0x457d77(0x2c5)]])['subscribe'](async([_0x4d1c0c,_0xb573c6])=>{const _0x176139=_0x457d77;if(_0x4d1c0c[_0x176139(0x271)]===n['CollaborationEvent']['CHANGESET_ACK']&&(_0xb573c6==null?void 0x0:_0xb573c6[_0x176139(0x2fa)])===r[_0x176139(0x295)][_0x176139(0x213)]&&_0x4d1c0c[_0x176139(0x2cd)]['mutations'][_0x176139(0x29c)](_0x3329fb=>_0x3329fb['id']===n[_0x176139(0x2aa)]['id'])&&await _0x5b3954()){var _0x401a76;this[_0x176139(0x2cf)][_0x176139(0x2dc)](),_0x437d76['unsubscribe'](),this[_0x176139(0x298)]&&clearTimeout(this['_revertErrorTimer']),await((_0x401a76=this[_0x176139(0x1f5)])==null?void 0x0:_0x401a76[_0x176139(0x2d5)]());}});_0x4f20af&&(this[_0x457d77(0x298)]=setTimeout(()=>{const _0x48a271=_0x457d77;_0x437d76[_0x48a271(0x2c1)](),this[_0x48a271(0x2e7)][_0x48a271(0x2e5)]({'content':this['_localeService']['t'](_0x48a271(0x1f0)),'type':m['MessageType'][_0x48a271(0x2ac)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x5560f5,_0x5bd579){const _0x22c764=_0x576e68;await this[_0x22c764(0x2e0)](_0x5560f5,_0x5bd579),_0x5560f5[_0x22c764(0x210)][_0x22c764(0x2a7)]((0x0,N[_0x22c764(0x24d)])(this[_0x22c764(0x1f8)]))[_0x22c764(0x300)](_0x973d78=>{const _0x16fcb1=_0x22c764;_0x973d78&&this[_0x16fcb1(0x20a)](_0x973d78);}),this[_0x22c764(0x2df)][_0x22c764(0x2cc)][_0x22c764(0x2a7)]((0x0,N[_0x22c764(0x24d)])(this[_0x22c764(0x1f8)]))[_0x22c764(0x300)](()=>this[_0x22c764(0x2e0)](_0x5560f5,_0x5bd579));}[_0x576e68(0x20a)](_0x41c883,_0x1989b7=!0x1){const _0x1700b8=_0x576e68;let _0x1b8c06=this[_0x1700b8(0x2df)][_0x1700b8(0x26b)](_0x1700b8(0x305));_0x41c883[_0x1700b8(0x1f7)]()!==_0x1b8c06&&this[_0x1700b8(0x2df)]['setParam'](_0x1700b8(0x305),_0x41c883[_0x1700b8(0x1f7)](),_0x1989b7);}async[_0x576e68(0x2e0)](_0x439eff,_0x45a808){const _0x40ca00=_0x576e68;var _0xba233a;if(!_0x45a808||!_0x439eff[_0x40ca00(0x307)](_0x45a808)){let _0x53df21=_0x439eff[_0x40ca00(0x252)]()[0x0],_0x30c035=_0x439eff[_0x40ca00(0x307)](_0x53df21);if(!_0x30c035)return;this[_0x40ca00(0x20a)](_0x30c035,!0x0),await this[_0x40ca00(0x2e4)]['executeCommand'](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x439eff[_0x40ca00(0x248)](),'subUnitId':_0x53df21});return;}((_0xba233a=_0x439eff[_0x40ca00(0x208)]())==null?void 0x0:_0xba233a[_0x40ca00(0x1f7)]())!==_0x45a808&&await this[_0x40ca00(0x2e4)][_0x40ca00(0x268)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x439eff[_0x40ca00(0x248)](),'subUnitId':_0x45a808});}};Q=H([V(0x0,e[_0x576e68(0x2eb)]),V(0x1,M[_0x576e68(0x228)]),V(0x2,(0x0,e['Inject'])(M[_0x576e68(0x26c)])),V(0x3,(0x0,e[_0x576e68(0x256)])(G)),V(0x4,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x227)])),V(0x5,M[_0x576e68(0x2b8)]),V(0x6,(0x0,e[_0x576e68(0x256)])(r[_0x576e68(0x288)])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e[_0x576e68(0x256)])(r[_0x576e68(0x24c)])),V(0x9,e[_0x576e68(0x1fe)]),V(0xa,P[_0x576e68(0x2ca)])],Q);let $=class extends e['Plugin']{constructor(_0xb8224a=R,_0x5042af,_0x11c415){const _0x108a42=_0x576e68;super(),this[_0x108a42(0x21c)]=_0xb8224a,this['_injector']=_0x5042af,this[_0x108a42(0x237)]=_0x11c415;let {menu:_0x568f7d,..._0x4a5af0}=(0x0,e[_0x108a42(0x303)])({},R,this[_0x108a42(0x21c)]);_0x568f7d&&this[_0x108a42(0x237)][_0x108a42(0x203)](_0x108a42(0x293),_0x568f7d,{'merge':!0x0}),this[_0x108a42(0x237)][_0x108a42(0x203)](L,_0x4a5af0),this[_0x108a42(0x21c)][_0x108a42(0x2ef)]&&this[_0x108a42(0x237)]['setConfig'](U,this[_0x108a42(0x21c)][_0x108a42(0x2ef)]);}[_0x576e68(0x22d)](){const _0x5e22f1=_0x576e68;[[G],[Q]][_0x5e22f1(0x2ae)](_0x14f8d6=>this['_injector'][_0x5e22f1(0x2d4)](_0x14f8d6));}[_0x576e68(0x22f)](){const _0x438622=_0x576e68;this[_0x438622(0x2ec)][_0x438622(0x23a)](Q);}};B($,_0x576e68(0x280),e[_0x576e68(0x27a)][_0x576e68(0x279)]),B($,_0x576e68(0x2bd),_0x576e68(0x2f9)),B($,_0x576e68(0x2ea),ce),B($,'version',le),$=H([(0x0,e[_0x576e68(0x296)])(a[_0x576e68(0x28f)]),V(0x1,(0x0,e[_0x576e68(0x256)])(e['Injector'])),V(0x2,e['IConfigService'])],$),exports[_0x576e68(0x2d1)]=L,Object[_0x576e68(0x2f7)](exports,_0x576e68(0x20f),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x576e68(0x254),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x576e68(0x206)]=K,exports[_0x576e68(0x269)]=U,exports['UNIVER_HISTORY_CONTAINER_ID']=W,Object[_0x576e68(0x2f7)](exports,_0x576e68(0x2c3),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x576e68(0x2f7)](exports,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2fc7b3=_0x3e8e;(function(_0x39663d,_0x26b573){const _0x569312=_0x3e8e,_0x515cba=_0x39663d();while(!![]){try{const _0x209e36=-parseInt(_0x569312(0x257))/0x1*(parseInt(_0x569312(0x21e))/0x2)+-parseInt(_0x569312(0x220))/0x3+parseInt(_0x569312(0x230))/0x4*(-parseInt(_0x569312(0x1ec))/0x5)+parseInt(_0x569312(0x27e))/0x6+-parseInt(_0x569312(0x246))/0x7+parseInt(_0x569312(0x27f))/0x8*(parseInt(_0x569312(0x1d3))/0x9)+-parseInt(_0x569312(0x279))/0xa*(-parseInt(_0x569312(0x1c8))/0xb);if(_0x209e36===_0x26b573)break;else _0x515cba['push'](_0x515cba['shift']());}catch(_0x4f3458){_0x515cba['push'](_0x515cba['shift']());}}}(_0xd9da,0x276a8));var se=Object[_0x2fc7b3(0x1dd)],ae=(_0x1385ce,_0x16515f,_0x4d053d)=>_0x16515f in _0x1385ce?se(_0x1385ce,_0x16515f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d053d}):_0x1385ce[_0x16515f]=_0x4d053d,d=(_0x33b70c,_0x2c84dc,_0x353c0f)=>ae(_0x33b70c,typeof _0x2c84dc!=_0x2fc7b3(0x261)?_0x2c84dc+'':_0x2c84dc,_0x353c0f);import{Inject as _0x3e7270,LocaleService as _0x184cc8,ThemeService as _0x1127f9,Disposable as _0x34eb73,DisposableCollection as _0x1685de,Univer as _0x5e0599,IAuthzIoService as _0x5c2ef6,IConfigService as _0x23d28a,IUniverInstanceService as _0x4ed486,ICommandService as _0x28c1d1,IPermissionService as _0x488a25,CommandType as _0x500d88,UniverInstanceType as _0x3d874e,RxDisposable as _0x2d9b8d,toDisposable as _0x3b05ce,Workbook as _0x37e8a8,DependentOn as _0x4a3855,Injector as _0x2e410e,Plugin as _0x4097a3,merge as _0xf24e08}from'@univerjs/core';import{RangeProtectionRuleModel as _0x50d464,UniverSheetsPlugin as _0x5b498d,WorkbookEditablePermission as _0x26ccb0,WorksheetEditPermission as _0x3ee8b6,RangeProtectionPermissionEditPoint as _0x3e6ac1,WorkbookRecoverHistoryPermission as _0x56f8be,getSheetCommandTarget as _0x6cdcaa,WorkbookViewHistoryPermission as _0x4b9d57,SetWorksheetActivateCommand as _0x306b09}from'@univerjs/sheets';import{UniverCollaborationPlugin as _0x560b85,RevertRevisionMutation as _0x161d46,CollaborationEvent as _0x5d6708}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5851a5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x87210a,CollaborationController as _0x542228,DataLoaderService as _0xae6654,CollaborationStatus as _0x181bf6,ILocalCacheService as _0x33c52e}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x34a908,HistoryManagerService as _0x18b099,HistoryModeStatus as _0x466ec0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x425d58,UniverLicensePlugin as _0x4b6169}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x140db0}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x53b902}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x5320ea}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xdef9b7}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x5be6c1}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x31c6ca}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x391d8c}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3ea405}from'@univerjs/data-validation';import{MessageType as _0x34ba39}from'@univerjs/design';import{UniverDocsPlugin as _0x335d73}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x273ca7}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x16441d,IImageIoService as _0x4010ef}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x3b762d}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x1bf488}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x57cf7e}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x55580b}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x471191,IRemoteInstanceService as _0x50c86c}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0xbe5f41}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x15e06e}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x311142}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x505a92}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5071b5}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x50d60f}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x455047}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x2d1d84}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xded503}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x3e06cb}from'@univerjs/sheets-formula-ui';function _0xd9da(){const _0x166d51=['getParam','CHANGESET_ACK','string','add','82mafFQq','_internalWebWorker','367185rjbzUo','_initPlugins','some','status$','reload','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','menu','getElementById','urlChange$','_themeService','from','uComp','trim','zIndex','packageName','asObservable','33868iqrcPD','fill','display','none','univer.operation.toggle-edit-history','subscribe','_updateURLWithCurrentState','_commandService','_urlService','data','_permissionService','getLocales','_historyUniver$','exhaustSavingTask','__getInjector','_localeService','UNIVER_PROJECT','permissionId','forEach','version','_selectionProtectionRuleModel','map','2176475TUElUe','univer-history-container','historyUniver','top','assign','_init','history-icon_clip0_907_281','type','Exited','Entered','defIds','close','1em','editHistory.panel.title','clipPath','unsubscribe','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','4999mHeuzb','setTheme','_collaborationController','OTHERS','value','getAllPlugins','triggerLoadVersions','loadUnit','getSubunitRuleList','edit-history-loader.config','symbol','current','dispose','_dialogService','_configService','_initUniver','_pluginMap','status','setLocale','editHistory.info.initializing','toString','includes','100%','_initListener','OPERATION','_handleRevertAcknowledgement','setParam','_checkCanRevert','UniverIcon','style','pluginName','width','show','xlink:href','10URuzkB','subunit','getCurrentLocale','M0\x200H16V16H0z','UNIVER_DOC','1666308vOETcd','808OZclCM','get','currentColor','name','_componentManager','getActiveSheet','tag','_messageService','getConfig','6777529zrgMZQ','triggerCustomVersions','_revertErrorTimer','HistoryIcon','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','fromCollab','getSheetBySheetId','dispose$','location','_initContainer','eventID','666tBmfEf','onCommandExecuted','every','Error','clear','registerPlugin','historyAIassistantEnabled','createElement','_updateSubUnitFromURLParams','defs','defineProperty','_historyManagerService','getSheets','executeCommand','disposeWithMe','dataset','editHistory.panel.listFetchError','replace','idSuffix','composePermission','white','editHistory.panel.reverting','path','getUnit','univerjs-icon\x20univerjs-icon-','60gFtecd','appendChild','position','_disposableCollection','has','history-container','mountHistoryContent','getCollabEntity','attrs','BUTTON','_setupSubUnitSync','_injector','univer.operation.exit-edit-history','UNIVER_SLIDE','substring','getUnitId','UNRECOGNIZED','terminate','editHistory.panel.revertFailed','[HistoryLoaderService]:\x20Plugin\x20','values','_univerInstanceService','colorChannel1','length','setConfig','UNIVER_UNKNOWN','children','getOwnPropertyDescriptor','_dataLoaderService','random','session','pipe','entries','getCurrentUnitOfType','UNIVER_SHEET','Loading','flat','getSheetId','historyPanelHidden','historyListServerUrl','url(#$1','currentTheme$','displayName','div','unMountHistoryContent','_config'];_0xd9da=function(){return _0x166d51;};return _0xd9da();}import{UniverSheetsHyperLinkPlugin as _0x23cd79}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x980711}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x559200}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x2fc1a6}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x7caa0c,getCurrentRangeDisable$ as _0x17195d}from'@univerjs/sheets-ui';import{IDialogService as _0x182d6c,ISidebarService as _0x2aaed0,UniverUIPlugin as _0x2a944f,IMessageService as _0x27fe79,MenuItemType as _0x492789,getMenuHiddenObservable as _0x541ae0,RibbonStartGroup as _0x478a30,ComponentManager as _0x5855de,IMenuManagerService as _0x5bc567}from'@univerjs/ui';import{BehaviorSubject as _0x26d00b,combineLatest as _0x384456,takeUntil as _0x4891b1}from'rxjs';import{IURLService as _0x2e5a36}from'@univerjs-pro/collaboration-client-ui';import{useRef as _0x4ecb78,createElement as _0x2a7b0e,forwardRef as _0x35d8e4}from'react';const _=_0x2fc7b3(0x260),j={};var Nt=Object[_0x2fc7b3(0x207)],Lt=(_0xebec81,_0xfe92f1,_0x1e4521,_0x218fc4)=>{const _0x27bc6e=_0x2fc7b3;for(var _0x1f9e00=_0x218fc4>0x1?void 0x0:_0x218fc4?Nt(_0xfe92f1,_0x1e4521):_0xfe92f1,_0x214b1d=_0xebec81[_0x27bc6e(0x203)]-0x1,_0x31c892;_0x214b1d>=0x0;_0x214b1d--)(_0x31c892=_0xebec81[_0x214b1d])&&(_0x1f9e00=_0x31c892(_0x1f9e00)||_0x1f9e00);return _0x1f9e00;},g=(_0x4af4a6,_0x476d17)=>(_0x5beeaf,_0x308cbb)=>_0x476d17(_0x5beeaf,_0x308cbb,_0x4af4a6);const Ht='univer-container',X='UNIVER_CONTAINER_ID',S=_0x2fc7b3(0x247);let p=class extends _0x34eb73{constructor(_0x431296,_0xec5e2c,_0x15a15,_0x3eddde,_0x5b6568,_0x20e01b,_0x1f17de,_0x27b547,_0x26d247,_0xc5ee89){const _0x2c1118=_0x2fc7b3;super(),d(this,'_historyUniver$',new _0x26d00b(null)),d(this,'historyUniver$',this[_0x2c1118(0x23c)][_0x2c1118(0x22f)]()),d(this,_0x2c1118(0x1ef),new _0x1685de()),d(this,_0x2c1118(0x267),new Map()),d(this,_0x2c1118(0x21f),null),(this[_0x2c1118(0x23f)]=_0x431296,this[_0x2c1118(0x201)]=_0xec5e2c,this[_0x2c1118(0x265)]=_0x15a15,this[_0x2c1118(0x237)]=_0x3eddde,this[_0x2c1118(0x1c6)]=_0x5b6568,this[_0x2c1118(0x23a)]=_0x20e01b,this[_0x2c1118(0x244)]=_0x1f17de,this[_0x2c1118(0x264)]=_0x27b547,this['_sidebarService']=_0x26d247,this[_0x2c1118(0x229)]=_0xc5ee89,this[_0x2c1118(0x24b)]());}get['historyUniver'](){const _0x13bc33=_0x2fc7b3;return this[_0x13bc33(0x23c)][_0x13bc33(0x25b)];}[_0x2fc7b3(0x24b)](){this['_initContainer'](),this['_initPlugins']();}[_0x2fc7b3(0x1d1)](){const _0x2eb594=_0x2fc7b3;var _0x4d0f33;const _0xefad3e=(_0x4d0f33=this[_0x2eb594(0x265)]['getConfig'](X))!=null?_0x4d0f33:Ht,_0xf78fcc=document[_0x2eb594(0x227)](_0xefad3e);if(!_0xf78fcc)return;const _0x3001f7=document[_0x2eb594(0x1da)](_0x2eb594(0x217));_0x3001f7['id']=S,_0x3001f7[_0x2eb594(0x1e2)][_0x2eb594(0x22b)]=_0x2eb594(0x1f1),_0x3001f7['style'][_0x2eb594(0x1ee)]='absolute',_0x3001f7['style'][_0x2eb594(0x249)]='0',_0x3001f7[_0x2eb594(0x274)]['left']='0',_0x3001f7['style'][_0x2eb594(0x276)]=_0x2eb594(0x26d),_0x3001f7[_0x2eb594(0x274)]['height']=_0x2eb594(0x26d),_0x3001f7['style'][_0x2eb594(0x22d)]='49',_0x3001f7[_0x2eb594(0x274)][_0x2eb594(0x232)]=_0x2eb594(0x233),_0xf78fcc[_0x2eb594(0x1ed)](_0x3001f7);}[_0x2fc7b3(0x221)](){const _0x56494e=_0x2fc7b3;[[_0x57cf7e],[_0x2a944f,{'container':S,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x182d6c,null]]}],[_0x55580b],[_0x16441d,{'override':[[_0x4010ef,null]]}],[_0x335d73,{'hasScroll':!0x1}],[_0x273ca7],[_0x559200],[_0x5b498d,{'notExecuteFormula':!0x0}],[_0x7caa0c],[_0xded503],[_0x3e06cb],[_0x560b85],[_0x455047],[_0x2d1d84],[_0xbe5f41],[_0x15e06e],[_0x23cd79],[_0x980711],[_0x3ea405],[_0x311142],[_0x505a92],[_0x1bf488,{'notExecuteFormula':!0x0}],[_0x3b762d],[_0x5071b5],[_0x50d60f],[_0x31c6ca],[_0x391d8c],[_0x140db0],[_0x53b902],[_0xdef9b7],[_0x5be6c1],[_0x5320ea,{'notExecuteFormula':!0x0}],[_0x2fc1a6]][_0x56494e(0x242)](([_0x47202d,_0xdc66e8])=>this[_0x56494e(0x1d8)](_0x47202d,_0xdc66e8));}[_0x2fc7b3(0x263)](){const _0x300dce=_0x2fc7b3;super[_0x300dce(0x263)](),this[_0x300dce(0x218)](),this[_0x300dce(0x267)][_0x300dce(0x1d7)]();}[_0x2fc7b3(0x1d8)](_0x1f66d9,_0x2bec44,_0x350491){const _0x161484=_0x2fc7b3;if(this[_0x161484(0x267)][_0x161484(0x1f0)](_0x1f66d9['pluginName'])&&!_0x350491)throw new Error(_0x161484(0x1ff)+_0x1f66d9['pluginName']+'\x20has\x20been\x20registered.');this[_0x161484(0x267)]['set'](_0x1f66d9[_0x161484(0x275)],[_0x1f66d9,_0x2bec44]);}[_0x2fc7b3(0x25c)](){const _0x53a1c4=_0x2fc7b3;return Array[_0x53a1c4(0x22a)](this[_0x53a1c4(0x267)][_0x53a1c4(0x200)]());}[_0x2fc7b3(0x1f2)](_0x7824d1,_0x2ca46d){const _0x3c3cff=_0x2fc7b3,_0x56cabd=document[_0x3c3cff(0x227)](S);_0x56cabd&&(_0x56cabd[_0x3c3cff(0x274)][_0x3c3cff(0x232)]='block',this[_0x3c3cff(0x266)](_0x7824d1,S,_0x2ca46d));}[_0x2fc7b3(0x218)](){const _0x4704b3=_0x2fc7b3;var _0x4afbe1;this[_0x4704b3(0x1ef)][_0x4704b3(0x263)](),(_0x4afbe1=this[_0x4704b3(0x248)])==null||_0x4afbe1[_0x4704b3(0x263)](),this[_0x4704b3(0x23c)]['next'](null);const _0xe731bc=document[_0x4704b3(0x227)](S);_0xe731bc&&(_0xe731bc[_0x4704b3(0x274)][_0x4704b3(0x232)]=_0x4704b3(0x233),this['_internalWebWorker']&&(this[_0x4704b3(0x21f)][_0x4704b3(0x1fd)](),this[_0x4704b3(0x21f)]=null));}[_0x2fc7b3(0x266)](_0x3ff990,_0x12df54,_0x51142a){const _0x5f4ba2=_0x2fc7b3;var _0x39136e,_0x362142,_0x5dc3ab,_0x545d42,_0x58e17a;if(this[_0x5f4ba2(0x248)])return;const _0x5db6ee=new _0x5e0599({'locales':{[this[_0x5f4ba2(0x23f)][_0x5f4ba2(0x27b)]()]:this[_0x5f4ba2(0x23f)][_0x5f4ba2(0x23b)]()},'override':[[_0x5c2ef6,{'useClass':_0x5851a5}]]}),_0x5eb7a4=_0x5db6ee[_0x5f4ba2(0x23e)]();this[_0x5f4ba2(0x1e1)](this['_themeService']['darkMode$'][_0x5f4ba2(0x235)](_0x2b9c25=>{const _0x4b6ebf=_0x5f4ba2;_0x5eb7a4[_0x4b6ebf(0x1c0)](_0x1127f9)['setDarkMode'](_0x2b9c25);})),this[_0x5f4ba2(0x1e1)](this[_0x5f4ba2(0x229)][_0x5f4ba2(0x215)]['subscribe'](_0x52963c=>{const _0x2ea4d7=_0x5f4ba2;_0x5eb7a4[_0x2ea4d7(0x1c0)](_0x1127f9)[_0x2ea4d7(0x258)](_0x52963c);})),_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x184cc8)[_0x5f4ba2(0x269)](this['_localeService'][_0x5f4ba2(0x27b)]()),_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x23d28a)['setConfig'](_0x87210a,this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_0x87210a));const _0x105cc2=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_0x425d58);_0x105cc2&&_0x5db6ee[_0x5f4ba2(0x1d8)](_0x4b6169,{'license':_0x105cc2['ls']});const _0xfca89d=(_0x39136e=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x39136e['workerURL'],_0x40c21b=!!_0xfca89d;_0x40c21b&&(this[_0x5f4ba2(0x21f)]=_0xfca89d instanceof Worker?_0xfca89d:null,_0x5db6ee[_0x5f4ba2(0x1d8)](_0x471191,{'workerURL':_0xfca89d})),this['_pluginMap'][_0x5f4ba2(0x242)](([_0x2c9703,_0x296d00])=>{const _0x3fa2fb=_0x5f4ba2;_0x5db6ee[_0x3fa2fb(0x1d8)](_0x2c9703,_0x296d00);}),_0x5db6ee[_0x5f4ba2(0x1d8)](_0x34a908,{'historyListServerUrl':(_0x362142=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x362142[_0x5f4ba2(0x213)],'historyPanelComponentKey':(_0x5dc3ab=this[_0x5f4ba2(0x265)]['getConfig'](_))==null?void 0x0:_0x5dc3ab['historyPanelComponentKey'],'historyPanelHidden':(_0x545d42=this[_0x5f4ba2(0x265)]['getConfig'](_))==null?void 0x0:_0x545d42[_0x5f4ba2(0x212)],'historyAIassistantEnabled':(_0x58e17a=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x58e17a[_0x5f4ba2(0x1d9)]}),_0x5eb7a4['invoke'](_0x15f6da=>{const _0x3120f7=_0x5f4ba2;this[_0x3120f7(0x26e)](_0x15f6da,_0x3ff990);}),this['_historyUniver$']['next'](_0x5db6ee);const _0x13a282=_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x18b099),_0x2f4ce9=this[_0x5f4ba2(0x272)](_0x3ff990),_0x4d447c=()=>{const _0x12ed3c=_0x5f4ba2;_0x51142a?_0x13a282[_0x12ed3c(0x1c9)](_0x3ff990,_0x12df54,_0x2f4ce9,_0x51142a):_0x13a282[_0x12ed3c(0x25d)](_0x3ff990,_0x12df54,_0x2f4ce9);};if(this[_0x5f4ba2(0x1c6)][_0x5f4ba2(0x277)]({'content':this[_0x5f4ba2(0x23f)]['t'](_0x5f4ba2(0x26a)),'type':_0x34ba39[_0x5f4ba2(0x20f)]}),_0x40c21b)try{_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x50c86c)['whenReady']()['then'](()=>{_0x4d447c();});}catch{_0x4d447c();}else _0x4d447c();}[_0x2fc7b3(0x26e)](_0x52950f,_0x2f392a){const _0xfbe1dd=_0x2fc7b3,_0x2b7707=_0x52950f[_0xfbe1dd(0x1c0)](_0x18b099);this['_disposableCollection'][_0xfbe1dd(0x21d)](_0x2b7707[_0xfbe1dd(0x223)][_0xfbe1dd(0x235)](_0x254b63=>{const _0x4d3a66=_0xfbe1dd;switch(_0x254b63){case _0x466ec0[_0x4d3a66(0x24f)]:this[_0x4d3a66(0x264)]['closeAll'](),this['_sidebarService'][_0x4d3a66(0x251)]();break;case _0x466ec0[_0x4d3a66(0x24e)]:this[_0x4d3a66(0x237)][_0x4d3a66(0x1e0)](ee['id']),this[_0x4d3a66(0x218)]();break;case _0x466ec0[_0x4d3a66(0x1d6)]:this[_0x4d3a66(0x218)](),this[_0x4d3a66(0x1c6)][_0x4d3a66(0x277)]({'content':this[_0x4d3a66(0x23f)]['t'](_0x4d3a66(0x1e3)),'type':_0x34ba39['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0xfbe1dd(0x21d)](_0x2b7707['revertRevision$'][_0xfbe1dd(0x235)](async _0x935b1e=>{const _0x564453=_0xfbe1dd;_0x935b1e&&this[_0x564453(0x237)][_0x564453(0x1e0)](_0x161d46['id'],{'unitId':_0x2f392a,'revision':_0x935b1e});}));}[_0x2fc7b3(0x272)](_0x2427a0){const _0x3b3ede=_0x2fc7b3,_0x548c48=this[_0x3b3ede(0x201)][_0x3b3ede(0x1ea)](_0x2427a0)[_0x3b3ede(0x1df)]()['map'](_0x4a2a13=>_0x4a2a13[_0x3b3ede(0x211)]()),_0x43278d=new _0x26ccb0(_0x2427a0)['id'],_0x5177fd=_0x548c48['map'](_0x48abc3=>new _0x3ee8b6(_0x2427a0,_0x48abc3)['id']),_0x5be2cc=_0x548c48[_0x3b3ede(0x245)](_0x253cba=>this[_0x3b3ede(0x244)][_0x3b3ede(0x25f)](_0x2427a0,_0x253cba)[_0x3b3ede(0x245)](_0x207db1=>new _0x3e6ac1(_0x2427a0,_0x253cba,_0x207db1[_0x3b3ede(0x241)])['id']))[_0x3b3ede(0x210)](),_0x1f28b2=new _0x56f8be(_0x2427a0)['id'];return this[_0x3b3ede(0x23a)][_0x3b3ede(0x1e6)]([_0x43278d,..._0x5177fd,..._0x5be2cc,_0x1f28b2])[_0x3b3ede(0x1d5)](_0x3d0e47=>!!_0x3d0e47[_0x3b3ede(0x25b)]);}};p=Lt([g(0x0,_0x3e7270(_0x184cc8)),g(0x1,_0x4ed486),g(0x2,_0x23d28a),g(0x3,_0x28c1d1),g(0x4,_0x27fe79),g(0x5,_0x488a25),g(0x6,_0x3e7270(_0x50d464)),g(0x7,_0x3e7270(_0x182d6c)),g(0x8,_0x3e7270(_0x2aaed0)),g(0x9,_0x3e7270(_0x1127f9))],p);const w={'id':_0x2fc7b3(0x234),'type':_0x500d88['OPERATION'],'handler':_0x172cd7=>{const _0x4f5da6=_0x2fc7b3,_0x632697=_0x172cd7[_0x4f5da6(0x1c0)](p),_0x377c1a=_0x172cd7[_0x4f5da6(0x1c0)](_0x4ed486),{unitId:_0x443012}=_0x6cdcaa(_0x377c1a)||{};return _0x443012?(_0x632697[_0x4f5da6(0x1f2)](_0x443012),!0x0):!0x1;}},ee={'id':_0x2fc7b3(0x1f8),'type':_0x500d88[_0x2fc7b3(0x26f)],'handler':()=>!0x0},Ot='@univerjs-pro/edit-history-loader',wt='0.17.0',te={'name':Ot,'version':wt};function ie({ref:_0x4a3a8a,..._0x27a491}){const _0x4f3d26=_0x2fc7b3,{icon:_0x38777f,id:_0x4f95cd,className:_0x3e84c6,extend:_0x24af1d,..._0xf5c395}=_0x27a491,_0x5154a8=(_0x4f3d26(0x1eb)+_0x4f95cd+'\x20'+(_0x3e84c6||''))[_0x4f3d26(0x22c)](),_0x2bb510=_0x4ecb78('_'+Tt());return re(_0x38777f,''+_0x4f95cd,{'defIds':_0x38777f[_0x4f3d26(0x250)],'idSuffix':_0x2bb510[_0x4f3d26(0x262)]},{'ref':_0x4a3a8a,'className':_0x5154a8,..._0xf5c395},_0x24af1d);}function re(_0x3d0489,_0x1383bd,_0x9ce76b,_0x3c1092,_0x4db7f6){const _0x23cdfa=_0x2fc7b3;return _0x2a7b0e(_0x3d0489[_0x23cdfa(0x1c5)],{'key':_0x1383bd,...Mt(_0x3d0489,_0x9ce76b,_0x4db7f6),..._0x3c1092},(Dt(_0x3d0489,_0x9ce76b)['children']||[])[_0x23cdfa(0x245)]((_0x36fc8f,_0xe1b8e2)=>re(_0x36fc8f,_0x1383bd+'-'+_0x3d0489[_0x23cdfa(0x1c5)]+'-'+_0xe1b8e2,_0x9ce76b,void 0x0,_0x4db7f6)));}function Mt(_0x3cd6a3,_0x3a5c94,_0x3d6917){const _0x429f42=_0x2fc7b3,_0x19d0d4={..._0x3cd6a3['attrs']};_0x3d6917!=null&&_0x3d6917[_0x429f42(0x202)]&&_0x19d0d4[_0x429f42(0x231)]===_0x429f42(0x202)&&(_0x19d0d4['fill']=_0x3d6917[_0x429f42(0x202)]),_0x3cd6a3['tag']==='mask'&&_0x19d0d4['id']&&(_0x19d0d4['id']=_0x19d0d4['id']+_0x3a5c94[_0x429f42(0x1e5)]),Object['entries'](_0x19d0d4)[_0x429f42(0x242)](([_0x42553d,_0x462dac])=>{const _0x162945=_0x429f42;_0x42553d==='mask'&&typeof _0x462dac==_0x162945(0x21c)&&(_0x19d0d4[_0x42553d]=_0x462dac[_0x162945(0x1e4)](/url\(#(.*)\)/,_0x162945(0x214)+_0x3a5c94[_0x162945(0x1e5)]+')'));});const {defIds:_0x265016}=_0x3a5c94;return!_0x265016||_0x265016[_0x429f42(0x203)]===0x0||(_0x3cd6a3['tag']==='use'&&_0x19d0d4[_0x429f42(0x278)]&&(_0x19d0d4[_0x429f42(0x278)]=_0x19d0d4[_0x429f42(0x278)]+_0x3a5c94[_0x429f42(0x1e5)]),Object[_0x429f42(0x20c)](_0x19d0d4)[_0x429f42(0x242)](([_0x38c4cb,_0x141634])=>{const _0x3229e8=_0x429f42;typeof _0x141634==_0x3229e8(0x21c)&&(_0x19d0d4[_0x38c4cb]=_0x141634[_0x3229e8(0x1e4)](/url\(#(.*)\)/,_0x3229e8(0x214)+_0x3a5c94[_0x3229e8(0x1e5)]+')'));})),_0x19d0d4;}function Dt(_0x4a7d1e,_0x3cf10a){const _0x5eabb2=_0x2fc7b3;var _0xd42df6;const {defIds:_0x188985}=_0x3cf10a;return!_0x188985||_0x188985[_0x5eabb2(0x203)]===0x0?_0x4a7d1e:_0x4a7d1e[_0x5eabb2(0x1c5)]===_0x5eabb2(0x1dc)&&((_0xd42df6=_0x4a7d1e[_0x5eabb2(0x206)])!=null&&_0xd42df6[_0x5eabb2(0x203)])?{..._0x4a7d1e,'children':_0x4a7d1e[_0x5eabb2(0x206)][_0x5eabb2(0x245)](_0x391fdb=>typeof _0x391fdb[_0x5eabb2(0x1f4)]['id']=='string'&&_0x188985&&_0x188985[_0x5eabb2(0x26c)](_0x391fdb[_0x5eabb2(0x1f4)]['id'])?{..._0x391fdb,'attrs':{..._0x391fdb[_0x5eabb2(0x1f4)],'id':_0x391fdb[_0x5eabb2(0x1f4)]['id']+_0x3cf10a['idSuffix']}}:_0x391fdb)}:_0x4a7d1e;}function Tt(){const _0x57dfd3=_0x2fc7b3;return Math[_0x57dfd3(0x209)]()[_0x57dfd3(0x26b)](0x24)[_0x57dfd3(0x1fa)](0x2,0x8);}ie[_0x2fc7b3(0x216)]=_0x2fc7b3(0x273);const $t={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2fc7b3(0x252),'height':_0x2fc7b3(0x252)},'children':[{'tag':'g','attrs':{'fill':_0x2fc7b3(0x1c1),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x2fc7b3(0x1e9),'attrs':{'d':_0x2fc7b3(0x256)}},{'tag':_0x2fc7b3(0x1e9),'attrs':{'d':_0x2fc7b3(0x1cc)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2fc7b3(0x254),'attrs':{'id':_0x2fc7b3(0x24c)},'children':[{'tag':_0x2fc7b3(0x1e9),'attrs':{'fill':_0x2fc7b3(0x1e7),'d':_0x2fc7b3(0x27c)}}]}]}],'defIds':[_0x2fc7b3(0x24c)]},ne=_0x35d8e4(function(_0x1a37d9,_0x537c94){const _0x44696f=_0x2fc7b3;return _0x2a7b0e(ie,Object[_0x44696f(0x24a)]({},_0x1a37d9,{'id':'history-icon','ref':_0x537c94,'icon':$t}));});ne[_0x2fc7b3(0x216)]=_0x2fc7b3(0x1cb);var N=(_0x1bf683=>(_0x1bf683[_0x1bf683['UNIVER_UNKNOWN']=0x0]=_0x2fc7b3(0x205),_0x1bf683[_0x1bf683['UNIVER_DOC']=0x1]=_0x2fc7b3(0x27d),_0x1bf683[_0x1bf683[_0x2fc7b3(0x20e)]=0x2]='UNIVER_SHEET',_0x1bf683[_0x1bf683[_0x2fc7b3(0x1f9)]=0x3]=_0x2fc7b3(0x1f9),_0x1bf683[_0x1bf683[_0x2fc7b3(0x240)]=0x4]=_0x2fc7b3(0x240),_0x1bf683[_0x1bf683[_0x2fc7b3(0x1fc)]=-0x1]='UNRECOGNIZED',_0x1bf683))(N||{});function kt(_0x29f021){const _0x5f131f=_0x2fc7b3;return{'id':w['id'],'type':_0x492789[_0x5f131f(0x1f5)],'icon':_0x5f131f(0x1cb),'tooltip':_0x5f131f(0x253),'hidden$':_0x541ae0(_0x29f021,_0x3d874e['UNIVER_SHEET']),'disabled$':_0x17195d(_0x29f021,{'workbookTypes':[_0x26ccb0,_0x4b9d57],'worksheetTypes':[],'rangeTypes':[]})};}function _0x3e8e(_0x10da54,_0x40abe7){_0x10da54=_0x10da54-0x1c0;const _0xd9da89=_0xd9da();let _0x3e8e3a=_0xd9da89[_0x10da54];return _0x3e8e3a;}const xt={[_0x478a30[_0x2fc7b3(0x25a)]]:{[w['id']]:{'order':0.2,'menuItemFactory':kt}}};var Vt=Object['getOwnPropertyDescriptor'],Wt=(_0x5620ed,_0x373ca4,_0x319261,_0x1e7a6e)=>{const _0x484da2=_0x2fc7b3;for(var _0x3c2b9d=_0x1e7a6e>0x1?void 0x0:_0x1e7a6e?Vt(_0x373ca4,_0x319261):_0x373ca4,_0x3e0f9a=_0x5620ed[_0x484da2(0x203)]-0x1,_0x178f98;_0x3e0f9a>=0x0;_0x3e0f9a--)(_0x178f98=_0x5620ed[_0x3e0f9a])&&(_0x3c2b9d=_0x178f98(_0x3c2b9d)||_0x3c2b9d);return _0x3c2b9d;},h=(_0x3ed86b,_0x387c6d)=>(_0x4da281,_0x494f6a)=>_0x387c6d(_0x4da281,_0x494f6a,_0x3ed86b);let y=class extends _0x2d9b8d{constructor(_0x46218c,_0x2ad584,_0x9e7dd1,_0x22214e,_0x4a473c,_0x26204f,_0x4ec20d,_0x3f53e4,_0xeb3d55,_0x164c0d,_0x160e09){const _0x166b56=_0x2fc7b3;super(),d(this,_0x166b56(0x1ca),null),(this[_0x166b56(0x237)]=_0x46218c,this['_menuManagerService']=_0x2ad584,this['_componentManager']=_0x9e7dd1,this[_0x166b56(0x1de)]=_0x22214e,this[_0x166b56(0x23f)]=_0x4a473c,this[_0x166b56(0x1c6)]=_0x26204f,this['_collaborationController']=_0x4ec20d,this['_localCacheService']=_0x3f53e4,this[_0x166b56(0x208)]=_0xeb3d55,this[_0x166b56(0x201)]=_0x164c0d,this[_0x166b56(0x238)]=_0x160e09,this[_0x166b56(0x24b)]());}[_0x2fc7b3(0x24b)](){const _0x37836f=_0x2fc7b3;[w,ee][_0x37836f(0x242)](_0x281bb2=>this[_0x37836f(0x1e1)](_0x3b05ce(this[_0x37836f(0x237)]['registerCommand'](_0x281bb2)))),this['disposeWithMe'](this[_0x37836f(0x1c3)]['register'](_0x37836f(0x1cb),ne)),this['_menuManagerService']['mergeMenu'](xt),this[_0x37836f(0x1e1)](this[_0x37836f(0x237)][_0x37836f(0x1d4)](async(_0x2323e1,_0x58962f)=>{const _0x12b25d=_0x37836f;if(_0x2323e1['id']===_0x161d46['id']){const {unitId:_0x4fc345}=_0x2323e1['params'];this[_0x12b25d(0x1c6)][_0x12b25d(0x277)]({'content':this[_0x12b25d(0x23f)]['t'](_0x12b25d(0x1e8)),'type':_0x34ba39['Loading'],'duration':0x1388});const _0x38540a=this[_0x12b25d(0x259)][_0x12b25d(0x1f3)](_0x4fc345);(_0x58962f==null?void 0x0:_0x58962f[_0x12b25d(0x1cd)])?this['_handleRevertAcknowledgement'](_0x38540a,async()=>(setTimeout(()=>window[_0x12b25d(0x1d0)][_0x12b25d(0x224)]()),!0x0),!0x0):this[_0x12b25d(0x270)](_0x38540a,async()=>{const _0x4e9202=_0x12b25d,_0x1b2437=this[_0x4e9202(0x201)][_0x4e9202(0x20d)](N[_0x4e9202(0x20e)]),_0x2107cb=_0x1b2437==null?void 0x0:_0x1b2437['getActiveSheet']();if(!_0x2107cb)return!0x1;this['_univerInstanceService']['disposeUnit'](_0x4fc345);const _0x128f22=await this[_0x4e9202(0x208)][_0x4e9202(0x25e)](_0x4fc345,N[_0x4e9202(0x20e)]);return _0x128f22&&_0x128f22 instanceof _0x37e8a8?(await this[_0x4e9202(0x1f6)](_0x128f22,_0x2107cb[_0x4e9202(0x211)]()),!0x0):!0x1;});}}));}[_0x2fc7b3(0x270)](_0x5edb2e,_0x2211e5,_0xa272d4=!0x1){const _0x52804f=_0x2fc7b3,_0x3c4942=_0x384456([_0x5edb2e[_0x52804f(0x20a)]['event$'],_0x5edb2e['state$']])[_0x52804f(0x235)](async([_0x552dd8,_0x3982b1])=>{const _0x16d0ee=_0x52804f;var _0x12b9a0;_0x552dd8[_0x16d0ee(0x1d2)]===_0x5d6708[_0x16d0ee(0x21b)]&&(_0x3982b1==null?void 0x0:_0x3982b1[_0x16d0ee(0x268)])===_0x181bf6['SYNCED']&&_0x552dd8[_0x16d0ee(0x239)]['mutations'][_0x16d0ee(0x222)](_0x5ab688=>_0x5ab688['id']===_0x161d46['id'])&&await _0x2211e5()&&(this['_historyManagerService'][_0x16d0ee(0x218)](),_0x3c4942['unsubscribe'](),this[_0x16d0ee(0x1ca)]&&clearTimeout(this[_0x16d0ee(0x1ca)]),await((_0x12b9a0=this['_localCacheService'])==null?void 0x0:_0x12b9a0[_0x16d0ee(0x23d)]()));});_0xa272d4&&(this[_0x52804f(0x1ca)]=setTimeout(()=>{const _0x5d77b5=_0x52804f;_0x3c4942[_0x5d77b5(0x255)](),this[_0x5d77b5(0x1c6)]['show']({'content':this[_0x5d77b5(0x23f)]['t'](_0x5d77b5(0x1fe)),'type':_0x34ba39[_0x5d77b5(0x1d6)],'duration':0xbb8});},0x1388));}async[_0x2fc7b3(0x1f6)](_0x475972,_0x454e89){const _0x14c2cc=_0x2fc7b3;await this[_0x14c2cc(0x1db)](_0x475972,_0x454e89),_0x475972['activeSheet$'][_0x14c2cc(0x20b)](_0x4891b1(this[_0x14c2cc(0x1cf)]))[_0x14c2cc(0x235)](_0x2515c5=>{const _0x3e27f1=_0x14c2cc;_0x2515c5&&this[_0x3e27f1(0x236)](_0x2515c5);}),this[_0x14c2cc(0x238)][_0x14c2cc(0x228)][_0x14c2cc(0x20b)](_0x4891b1(this[_0x14c2cc(0x1cf)]))[_0x14c2cc(0x235)](()=>this['_updateSubUnitFromURLParams'](_0x475972,_0x454e89));}['_updateURLWithCurrentState'](_0x18afde,_0x336877=!0x1){const _0x5123d6=_0x2fc7b3,_0x4bc7d8=this[_0x5123d6(0x238)][_0x5123d6(0x21a)](_0x5123d6(0x27a));_0x18afde[_0x5123d6(0x211)]()!==_0x4bc7d8&&this[_0x5123d6(0x238)][_0x5123d6(0x271)](_0x5123d6(0x27a),_0x18afde[_0x5123d6(0x211)](),_0x336877);}async[_0x2fc7b3(0x1db)](_0x986350,_0x1f23b5){const _0x18aae6=_0x2fc7b3;var _0x27093a;if(!_0x1f23b5||!_0x986350['getSheetBySheetId'](_0x1f23b5)){const _0x169ce0=_0x986350['getUnhiddenWorksheets']()[0x0],_0x5e7524=_0x986350[_0x18aae6(0x1ce)](_0x169ce0);if(!_0x5e7524)return;this[_0x18aae6(0x236)](_0x5e7524,!0x0),await this[_0x18aae6(0x237)][_0x18aae6(0x1e0)](_0x306b09['id'],{'unitId':_0x986350['getUnitId'](),'subUnitId':_0x169ce0});return;}((_0x27093a=_0x986350[_0x18aae6(0x1c4)]())==null?void 0x0:_0x27093a[_0x18aae6(0x211)]())!==_0x1f23b5&&await this['_commandService'][_0x18aae6(0x1e0)](_0x306b09['id'],{'unitId':_0x986350[_0x18aae6(0x1fb)](),'subUnitId':_0x1f23b5});}};y=Wt([h(0x0,_0x28c1d1),h(0x1,_0x5bc567),h(0x2,_0x3e7270(_0x5855de)),h(0x3,_0x3e7270(p)),h(0x4,_0x3e7270(_0x184cc8)),h(0x5,_0x27fe79),h(0x6,_0x3e7270(_0x542228)),h(0x7,_0x33c52e),h(0x8,_0x3e7270(_0xae6654)),h(0x9,_0x4ed486),h(0xa,_0x2e5a36)],y);var At=Object[_0x2fc7b3(0x1dd)],Ft=Object['getOwnPropertyDescriptor'],jt=(_0x5c3567,_0x36f328,_0x3d7873)=>_0x36f328 in _0x5c3567?At(_0x5c3567,_0x36f328,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d7873}):_0x5c3567[_0x36f328]=_0x3d7873,Bt=(_0x1690eb,_0x15b08b,_0x39affa,_0x4fd98f)=>{for(var _0x42f340=_0x4fd98f>0x1?void 0x0:_0x4fd98f?Ft(_0x15b08b,_0x39affa):_0x15b08b,_0x16d45f=_0x1690eb['length']-0x1,_0x31337c;_0x16d45f>=0x0;_0x16d45f--)(_0x31337c=_0x1690eb[_0x16d45f])&&(_0x42f340=_0x31337c(_0x42f340)||_0x42f340);return _0x42f340;},B=(_0x2fa047,_0xb7f219)=>(_0x36dac8,_0x17ee8e)=>_0xb7f219(_0x36dac8,_0x17ee8e,_0x2fa047),U=(_0x972ce8,_0x2d82f7,_0x4994b7)=>jt(_0x972ce8,typeof _0x2d82f7!=_0x2fc7b3(0x261)?_0x2d82f7+'':_0x2d82f7,_0x4994b7);let f=class extends _0x4097a3{constructor(_0x48a789=j,_0x36b8db,_0x5eb42b){const _0x1e3114=_0x2fc7b3;super(),this[_0x1e3114(0x219)]=_0x48a789,this[_0x1e3114(0x1f7)]=_0x36b8db,this[_0x1e3114(0x265)]=_0x5eb42b;const {menu:_0xe61acf,..._0x2e5d13}=_0xf24e08({},j,this[_0x1e3114(0x219)]);_0xe61acf&&this[_0x1e3114(0x265)]['setConfig'](_0x1e3114(0x226),_0xe61acf,{'merge':!0x0}),this[_0x1e3114(0x265)][_0x1e3114(0x204)](_,_0x2e5d13),this[_0x1e3114(0x219)]['univerContainerId']&&this['_configService']['setConfig'](X,this[_0x1e3114(0x219)]['univerContainerId']);}['onStarting'](){const _0x5d1f8e=_0x2fc7b3;[[p],[y]][_0x5d1f8e(0x242)](_0x5b952b=>this[_0x5d1f8e(0x1f7)][_0x5d1f8e(0x21d)](_0x5b952b));}['onSteady'](){const _0x167a4e=_0x2fc7b3;this['_injector'][_0x167a4e(0x1c0)](y);}};U(f,_0x2fc7b3(0x24d),_0x3d874e[_0x2fc7b3(0x205)]),U(f,_0x2fc7b3(0x275),_0x2fc7b3(0x225)),U(f,_0x2fc7b3(0x22e),te[_0x2fc7b3(0x1c2)]),U(f,_0x2fc7b3(0x243),te[_0x2fc7b3(0x243)]),f=Bt([_0x4a3855(_0x4b6169),B(0x1,_0x3e7270(_0x2e410e)),B(0x2,_0x23d28a)],f);export{_ as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,p as HistoryLoaderService,w as ToggleEditHistoryOperation,X as UNIVER_CONTAINER_ID_KEY,S as UNIVER_HISTORY_CONTAINER_ID,f as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0xcdc2b4=_0x576c;(function(_0x112ec6,_0x31eebe){const _0x10075a=_0x576c,_0xb387ed=_0x112ec6();while(!![]){try{const _0x39b6bb=-parseInt(_0x10075a(0x17c))/0x1+-parseInt(_0x10075a(0xf2))/0x2+parseInt(_0x10075a(0x194))/0x3+-parseInt(_0x10075a(0x16a))/0x4*(-parseInt(_0x10075a(0x150))/0x5)+parseInt(_0x10075a(0x153))/0x6+-parseInt(_0x10075a(0x117))/0x7+parseInt(_0x10075a(0x166))/0x8;if(_0x39b6bb===_0x31eebe)break;else _0xb387ed['push'](_0xb387ed['shift']());}catch(_0x57cc29){_0xb387ed['push'](_0xb387ed['shift']());}}}(_0x3a80,0xbffd4));import{CommandType as _0x2d66d6,DependentOn as _0x299295,Disposable as _0x2fbf81,DisposableCollection as _0xdf8958,IAuthzIoService as _0x580551,ICommandService as _0xc4feca,IConfigService as _0x2bc188,IPermissionService as _0x32b568,IUniverInstanceService as _0x5d2eb8,Inject as _0x501869,Injector as _0x39260c,LocaleService as _0x5146f1,Plugin as _0x5d4f75,RxDisposable as _0x1ddce9,ThemeService as _0x3616cc,Univer as _0x1792d9,UniverInstanceType as _0x2286ef,Workbook as _0x4fb4cf,merge as _0x462db5,toDisposable as _0x158d14}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x24d965,RangeProtectionRuleModel as _0x152aea,SetWorksheetActivateCommand as _0x551a6e,UniverSheetsPlugin as _0x378801,WorkbookEditablePermission as _0x131768,WorkbookRecoverHistoryPermission as _0x41ee57,WorkbookViewHistoryPermission as _0x1b94b8,WorksheetEditPermission as _0x51fdf5,getSheetCommandTarget as _0x12470b}from'@univerjs/sheets';import{CollaborationEvent as _0x430f66,RevertRevisionMutation as _0x5069ca,UniverCollaborationPlugin as _0x5da1ee}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x25c273,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d4dca,CollaborationController as _0x3f3fcc,CollaborationStatus as _0x38b07e,DataLoaderService as _0x200401,ILocalCacheService as _0x15191f}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x3f326a,HistoryModeStatus as _0x509d16,UniverEditHistoryViewerMobilePlugin as _0xa47d47,UniverEditHistoryViewerPlugin as _0x16af9f}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4df753,UniverLicensePlugin as _0x13b78b}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x443143}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xa87e1e}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x564745}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x580e7a}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x1e4282}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x213647}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x306685}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x120848}from'@univerjs/data-validation';import{MessageType as _0x5c4b9d}from'@univerjs/design';import{UniverDocsPlugin as _0x4207ab}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x2f1d3c}from'@univerjs/docs-ui';import{IImageIoService as _0x2c5d90,UniverDrawingPlugin as _0x31cee7}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xc4d22}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3062e1}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x5ca134}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x5d653c}from'@univerjs/network';import{IRemoteInstanceService as _0x1f2f8c,UniverRPCMainThreadPlugin as _0x55c6e8}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x340c42}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x1e1912}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x23e1f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x5de188,UniverSheetsDataValidationUIPlugin as _0x58d9d5}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x4c2ce8}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x358df3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x23d63a}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x48df9e}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xfa733f}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x259d1d}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x11d274}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xf41737}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3a9855}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0xe59839}from'@univerjs/sheets-table';function _0x3a80(){const _0x3362f4=['location','from','univer.operation.exit-edit-history','urlChange$','length','edit-history-loader.config','getConfig','_sidebarService','top','_init','editHistory.info.initializing','history-container','packageName','Error','subunit','_themeService','historyUniver','decorate','loadUnit','getActiveSheet','iterator','type','getCurrentLocale','next','clear','pipe','_commandService','_dialogService','Exited','_config','some','registerCommand','univer-history-container-mobile','editHistory.panel.reverting','getSheetId','getUnhiddenWorksheets','295obBSbH','div','left','4989990XjWcaq','uComp','forEach','style','session','OPERATION','event$','_dataLoaderService','OTHERS','register','show','exhaustSavingTask','constructor','prototype','mountHistoryContent','set','zIndex','every','__getInjector','7076168sFJHLg','createElement','HistoryIcon','disposeWithMe','36364bNrorE','get','map','height','historyPanelHidden','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onSteady','add','_pluginMap','close','closeAll','setParam','status','status$','_componentManager','function','univer-history-container','version','1276606syROio','_historyUniver$','pluginName','getUnitId','setTheme','toPrimitive','setConfig','subscribe','editHistory.panel.revertFailed','permissionId','getAllPlugins','values','UNIVER_CONTAINER_ID','getOwnPropertyDescriptor','reload','dataset','_internalWebWorker','workerURL','executeCommand','_permissionService','UNIVER_UNKNOWN','getCurrentUnitOfType','CHANGESET_ACK','display','4173099euvcCu','_localCacheService','_configService','_localeService','then','unMountHistoryContent','object','_initUniver','disposeUnit','UNIVER_SHEET','currentTheme$','univer-container','has','none','value','100%','getElementById','_messageService','state$','editHistory.panel.title','appendChild','_injector','dispose$','string','_selectionProtectionRuleModel','invoke','width','registerPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','_menuManagerService','fromCollab','univerContainerId','2141874DYVGIi','[HistoryLoaderService]:\x20Plugin\x20','absolute','triggerLoadVersions','_setupSubUnitSync','getLocales','_initContainer','_historyManagerService','_urlService','SYNCED','_updateURLWithCurrentState','flat','historyAIassistantEnabled','getCollabEntity','_initListener','historyUniver$','mergeMenu','getSubunitRuleList','activeSheet$','historyPanelComponentKey','_disposableCollection','setDarkMode','dispose','onStarting','_univerInstanceService','editHistory.panel.listFetchError','@univerjs-pro/edit-history-loader','_revertErrorTimer','menu','getSheets','_handleRevertAcknowledgement','historyListServerUrl','_initPlugins','Entered','getParam','triggerCustomVersions','getSheetBySheetId','3567599xIcZar','position','composePermission','eventID','revertRevision$','[MobileHistoryLoaderService]:\x20Plugin\x20','params','mutations','_collaborationController','asObservable','terminate','_updateSubUnitFromURLParams','darkMode$','_checkCanRevert','symbol','getUnit','defineProperty','univer.operation.toggle-edit-history','unsubscribe','Loading','\x20has\x20been\x20registered.'];_0x3a80=function(){return _0x3362f4;};return _0x3a80();}import{UniverSheetsMobileUIPlugin as _0x25859c,UniverSheetsUIPlugin as _0xcbda01,getCurrentRangeDisable$ as _0x5971c4}from'@univerjs/sheets-ui';import{ComponentManager as _0x5e54c4,IDialogService as _0x3a5ccb,IMenuManagerService as _0x5c69e0,IMessageService as _0x578fd8,ISidebarService as _0xef72e6,MenuItemType as _0xdd9b57,RibbonStartGroup as _0x37f545,UniverMobileUIPlugin as _0x4bfa13,UniverUIPlugin as _0xcdede4,getMenuHiddenObservable as _0x6e3619}from'@univerjs/ui';import{BehaviorSubject as _0x4e9a7e,combineLatest as _0x1ff757,takeUntil as _0x118b8c}from'rxjs';import{IURLService as _0xc78038}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x1c442a}from'@univerjs/icons';import{UniverType as _0x526e34}from'@univerjs/protocol';const L=_0xcdc2b4(0x131);Symbol(L);const R={};function z(_0x5f0c5c){'@babel/helpers - typeof';const _0x2924d1=_0xcdc2b4;return z=typeof Symbol==_0x2924d1(0x179)&&typeof Symbol[_0x2924d1(0x140)]==_0x2924d1(0x125)?function(_0x50fb4f){return typeof _0x50fb4f;}:function(_0x301129){const _0x210a9d=_0x2924d1;return _0x301129&&typeof Symbol==_0x210a9d(0x179)&&_0x301129[_0x210a9d(0x15f)]===Symbol&&_0x301129!==Symbol[_0x210a9d(0x160)]?_0x210a9d(0x125):typeof _0x301129;},z(_0x5f0c5c);}function ot(_0x168c18,_0x5990f9){const _0x3fe0cb=_0xcdc2b4;if(z(_0x168c18)!=_0x3fe0cb(0x19a)||!_0x168c18)return _0x168c18;var _0x5f0025=_0x168c18[Symbol[_0x3fe0cb(0x181)]];if(_0x5f0025!==void 0x0){var _0x295acb=_0x5f0025['call'](_0x168c18,_0x5990f9||'default');if(z(_0x295acb)!=_0x3fe0cb(0x19a))return _0x295acb;throw TypeError(_0x3fe0cb(0x16f));}return(_0x5990f9===_0x3fe0cb(0xe9)?String:Number)(_0x168c18);}function st(_0x4a7ca6){const _0xfad314=_0xcdc2b4;var _0x109462=ot(_0x4a7ca6,_0xfad314(0xe9));return z(_0x109462)==_0xfad314(0x125)?_0x109462:_0x109462+'';}function B(_0x110769,_0x5320b6,_0x46135a){const _0x2b2010=_0xcdc2b4;return(_0x5320b6=st(_0x5320b6))in _0x110769?Object[_0x2b2010(0x127)](_0x110769,_0x5320b6,{'value':_0x46135a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x110769[_0x5320b6]=_0x46135a,_0x110769;}function V(_0x4106ee,_0x15b32b){return function(_0x54729e,_0x2f006a){_0x15b32b(_0x54729e,_0x2f006a,_0x4106ee);};}function H(_0x30dbeb,_0x42d2ac,_0x5f5211,_0x3bbfb6){const _0x105ac9=_0xcdc2b4;var _0x5505f9=arguments[_0x105ac9(0x130)],_0x3ae434=_0x5505f9<0x3?_0x42d2ac:_0x3bbfb6===null?_0x3bbfb6=Object[_0x105ac9(0x189)](_0x42d2ac,_0x5f5211):_0x3bbfb6,_0x52b731;if(typeof Reflect==_0x105ac9(0x19a)&&typeof Reflect[_0x105ac9(0x13d)]=='function')_0x3ae434=Reflect['decorate'](_0x30dbeb,_0x42d2ac,_0x5f5211,_0x3bbfb6);else{for(var _0x54f2e3=_0x30dbeb[_0x105ac9(0x130)]-0x1;_0x54f2e3>=0x0;_0x54f2e3--)(_0x52b731=_0x30dbeb[_0x54f2e3])&&(_0x3ae434=(_0x5505f9<0x3?_0x52b731(_0x3ae434):_0x5505f9>0x3?_0x52b731(_0x42d2ac,_0x5f5211,_0x3ae434):_0x52b731(_0x42d2ac,_0x5f5211))||_0x3ae434);}return _0x5505f9>0x3&&_0x3ae434&&Object[_0x105ac9(0x127)](_0x42d2ac,_0x5f5211,_0x3ae434),_0x3ae434;}const U=_0xcdc2b4(0x188),W=_0xcdc2b4(0x17a);let G=class extends _0x2fbf81{constructor(_0x5c127a,_0x7de8bc,_0x139347,_0x53b736,_0x18a131,_0x5e1db5,_0x1d7de1,_0x572496,_0x5eb394,_0x38161a){const _0x4c3caf=_0xcdc2b4;super(),this[_0x4c3caf(0x197)]=_0x5c127a,this[_0x4c3caf(0x10a)]=_0x7de8bc,this['_configService']=_0x139347,this['_commandService']=_0x53b736,this[_0x4c3caf(0xe3)]=_0x18a131,this['_permissionService']=_0x5e1db5,this[_0x4c3caf(0xea)]=_0x1d7de1,this[_0x4c3caf(0x147)]=_0x572496,this[_0x4c3caf(0x133)]=_0x5eb394,this['_themeService']=_0x38161a,B(this,_0x4c3caf(0x17d),new _0x4e9a7e(null)),B(this,_0x4c3caf(0x101),this[_0x4c3caf(0x17d)][_0x4c3caf(0x120)]()),B(this,_0x4c3caf(0x106),new _0xdf8958()),B(this,'_pluginMap',new Map()),B(this,'_internalWebWorker',null),this['_init']();}get[_0xcdc2b4(0x13c)](){const _0x2753ad=_0xcdc2b4;return this['_historyUniver$'][_0x2753ad(0xe0)];}[_0xcdc2b4(0x135)](){const _0x34dfc0=_0xcdc2b4;this[_0x34dfc0(0xf8)](),this['_initPlugins']();}[_0xcdc2b4(0xf8)](){const _0x3ecb2b=_0xcdc2b4;var _0x5630ac;let _0x2b715d=(_0x5630ac=this[_0x3ecb2b(0x196)][_0x3ecb2b(0x132)](_0x3ecb2b(0x188)))==null?_0x3ecb2b(0xdd):_0x5630ac,_0x20ff09=document[_0x3ecb2b(0xe2)](_0x2b715d);if(!_0x20ff09)return;let _0x1e1da8=document[_0x3ecb2b(0x167)](_0x3ecb2b(0x151));_0x1e1da8['id']=W,_0x1e1da8[_0x3ecb2b(0x18b)]['uComp']=_0x3ecb2b(0x137),_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x118)]=_0x3ecb2b(0xf4),_0x1e1da8[_0x3ecb2b(0x156)]['top']='0',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x152)]='0',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0xec)]=_0x3ecb2b(0xe1),_0x1e1da8['style'][_0x3ecb2b(0x16d)]=_0x3ecb2b(0xe1),_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x163)]='49',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x193)]='none',_0x20ff09[_0x3ecb2b(0xe6)](_0x1e1da8);}['_initPlugins'](){const _0x2f7899=_0xcdc2b4;[[_0x5ca134],[_0xcdede4,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a5ccb,null]]}],[_0x5d653c],[_0x31cee7,{'override':[[_0x2c5d90,null]]}],[_0x4207ab,{'hasScroll':!0x1}],[_0x2f1d3c],[_0x3a9855],[_0x378801,{'notExecuteFormula':!0x0}],[_0xcbda01],[_0xfa733f],[_0x259d1d],[_0x5da1ee],[_0x23d63a],[_0x48df9e],[_0x340c42],[_0x1e1912],[_0x11d274],[_0xf41737],[_0x120848],[_0x23e1f],[_0x58d9d5],[_0x3062e1,{'notExecuteFormula':!0x0}],[_0xc4d22],[_0x4c2ce8],[_0x358df3],[_0x213647],[_0x306685],[_0x443143],[_0xa87e1e],[_0x580e7a],[_0x1e4282],[_0x564745,{'notExecuteFormula':!0x0}],[_0xe59839]][_0x2f7899(0x155)](([_0x2d67e3,_0x2dc3b3])=>this['registerPlugin'](_0x2d67e3,_0x2dc3b3));}[_0xcdc2b4(0x108)](){const _0x1f84f3=_0xcdc2b4;super['dispose'](),this[_0x1f84f3(0x199)](),this[_0x1f84f3(0x172)][_0x1f84f3(0x144)]();}[_0xcdc2b4(0xed)](_0x25cf73,_0xc4efb8,_0x6ffcd0){const _0x330dc7=_0xcdc2b4;if(this['_pluginMap'][_0x330dc7(0xde)](_0x25cf73[_0x330dc7(0x17e)])&&!_0x6ffcd0)throw Error(_0x330dc7(0xf3)+_0x25cf73['pluginName']+_0x330dc7(0x12b));this['_pluginMap'][_0x330dc7(0x162)](_0x25cf73['pluginName'],[_0x25cf73,_0xc4efb8]);}[_0xcdc2b4(0x186)](){return Array['from'](this['_pluginMap']['values']());}['mountHistoryContent'](_0x27a638,_0x4a0771){const _0x41f623=_0xcdc2b4;let _0x3da387=document[_0x41f623(0xe2)](W);_0x3da387&&(_0x3da387[_0x41f623(0x156)][_0x41f623(0x193)]='block',this[_0x41f623(0x19b)](_0x27a638,W,_0x4a0771));}[_0xcdc2b4(0x199)](){const _0x534da6=_0xcdc2b4;var _0x510b66;this['_disposableCollection'][_0x534da6(0x108)](),(_0x510b66=this[_0x534da6(0x13c)])==null||_0x510b66[_0x534da6(0x108)](),this[_0x534da6(0x17d)][_0x534da6(0x143)](null);let _0x2e1f86=document[_0x534da6(0xe2)](W);_0x2e1f86&&(_0x2e1f86['style'][_0x534da6(0x193)]='none',this[_0x534da6(0x18c)]&&(this[_0x534da6(0x18c)]['terminate'](),this[_0x534da6(0x18c)]=null));}['_initUniver'](_0x37e744,_0x394ca2,_0x1e5a87){const _0x18fd9a=_0xcdc2b4;var _0x22e419,_0x17031e,_0x4dbe79,_0x4c3a5e,_0x4320c2;if(this[_0x18fd9a(0x13c)])return;let _0xec05d1=new _0x1792d9({'locales':{[this[_0x18fd9a(0x197)]['getCurrentLocale']()]:this[_0x18fd9a(0x197)][_0x18fd9a(0xf7)]()},'override':[[_0x580551,{'useClass':_0x25c273}]]}),_0x44573c=_0xec05d1['__getInjector']();this['disposeWithMe'](this[_0x18fd9a(0x13b)]['darkMode$']['subscribe'](_0x568338=>{const _0x462444=_0x18fd9a;_0x44573c['get'](_0x3616cc)[_0x462444(0x107)](_0x568338);})),this[_0x18fd9a(0x169)](this[_0x18fd9a(0x13b)]['currentTheme$'][_0x18fd9a(0x183)](_0x30b876=>{const _0x1c953b=_0x18fd9a;_0x44573c[_0x1c953b(0x16b)](_0x3616cc)['setTheme'](_0x30b876);})),_0x44573c[_0x18fd9a(0x16b)](_0x5146f1)['setLocale'](this[_0x18fd9a(0x197)][_0x18fd9a(0x142)]()),_0x44573c[_0x18fd9a(0x16b)](_0x2bc188)[_0x18fd9a(0x182)](_0x1d4dca,this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x1d4dca));let _0x5c0f66=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x4df753);_0x5c0f66&&_0xec05d1[_0x18fd9a(0xed)](_0x13b78b,{'license':_0x5c0f66['ls']});let _0x51da79=(_0x22e419=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x22e419['workerURL'],_0x5b22e6=!!_0x51da79;_0x5b22e6&&(this[_0x18fd9a(0x18c)]=_0x51da79 instanceof Worker?_0x51da79:null,_0xec05d1[_0x18fd9a(0xed)](_0x55c6e8,{'workerURL':_0x51da79})),this[_0x18fd9a(0x172)][_0x18fd9a(0x155)](([_0x577c94,_0x3ba033])=>{const _0x165266=_0x18fd9a;_0xec05d1[_0x165266(0xed)](_0x577c94,_0x3ba033);}),_0xec05d1[_0x18fd9a(0xed)](_0x16af9f,{'historyListServerUrl':(_0x17031e=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)]('edit-history-loader.config'))==null?void 0x0:_0x17031e[_0x18fd9a(0x111)],'historyPanelComponentKey':(_0x4dbe79=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4dbe79[_0x18fd9a(0x105)],'historyPanelHidden':(_0x4c3a5e=this['_configService'][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4c3a5e[_0x18fd9a(0x16e)],'historyAIassistantEnabled':(_0x4320c2=this['_configService'][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4320c2[_0x18fd9a(0xfe)]}),_0x44573c[_0x18fd9a(0xeb)](_0x2c9120=>{const _0x23a3e=_0x18fd9a;this[_0x23a3e(0x100)](_0x2c9120,_0x37e744);}),this[_0x18fd9a(0x17d)][_0x18fd9a(0x143)](_0xec05d1);let _0x14b570=_0x44573c['get'](_0x3f326a),_0x5afa41=this[_0x18fd9a(0x124)](_0x37e744),_0xd225b7=()=>{_0x1e5a87?_0x14b570['triggerCustomVersions'](_0x37e744,_0x394ca2,_0x5afa41,_0x1e5a87):_0x14b570['triggerLoadVersions'](_0x37e744,_0x394ca2,_0x5afa41);};if(this[_0x18fd9a(0xe3)]['show']({'content':this[_0x18fd9a(0x197)]['t'](_0x18fd9a(0x136)),'type':_0x5c4b9d['Loading']}),_0x5b22e6)try{_0x44573c[_0x18fd9a(0x16b)](_0x1f2f8c)['whenReady']()[_0x18fd9a(0x198)](()=>{_0xd225b7();});}catch{_0xd225b7();}else _0xd225b7();}[_0xcdc2b4(0x100)](_0x3c861c,_0x2cb854){const _0x16fa02=_0xcdc2b4;let _0x45da8e=_0x3c861c['get'](_0x3f326a);this[_0x16fa02(0x106)]['add'](_0x45da8e[_0x16fa02(0x177)][_0x16fa02(0x183)](_0x2ce6d6=>{const _0x7dcbef=_0x16fa02;switch(_0x2ce6d6){case _0x509d16[_0x7dcbef(0x113)]:this[_0x7dcbef(0x147)][_0x7dcbef(0x174)](),this[_0x7dcbef(0x133)][_0x7dcbef(0x173)]();break;case _0x509d16[_0x7dcbef(0x148)]:this['_commandService'][_0x7dcbef(0x18e)](q['id']),this[_0x7dcbef(0x199)]();break;case _0x509d16[_0x7dcbef(0x139)]:this[_0x7dcbef(0x199)](),this[_0x7dcbef(0xe3)][_0x7dcbef(0x15d)]({'content':this[_0x7dcbef(0x197)]['t'](_0x7dcbef(0x10b)),'type':_0x5c4b9d[_0x7dcbef(0x139)],'duration':0xbb8});break;default:break;}})),this[_0x16fa02(0x106)][_0x16fa02(0x171)](_0x45da8e[_0x16fa02(0x11b)]['subscribe'](async _0x4fe14b=>{const _0x151495=_0x16fa02;_0x4fe14b&&this[_0x151495(0x146)]['executeCommand'](_0x5069ca['id'],{'unitId':_0x2cb854,'revision':_0x4fe14b});}));}['_checkCanRevert'](_0x34f91b){const _0x2079ef=_0xcdc2b4;let _0x204c33=this[_0x2079ef(0x10a)][_0x2079ef(0x126)](_0x34f91b)[_0x2079ef(0x10f)]()['map'](_0x4a70de=>_0x4a70de[_0x2079ef(0x14e)]()),_0x294ea1=new _0x131768(_0x34f91b)['id'],_0x41778e=_0x204c33[_0x2079ef(0x16c)](_0x3841f9=>new _0x51fdf5(_0x34f91b,_0x3841f9)['id']),_0x55d06e=_0x204c33[_0x2079ef(0x16c)](_0x492464=>this[_0x2079ef(0xea)][_0x2079ef(0x103)](_0x34f91b,_0x492464)['map'](_0x1277c9=>new _0x24d965(_0x34f91b,_0x492464,_0x1277c9[_0x2079ef(0x185)])['id']))[_0x2079ef(0xfd)](),_0x49155b=new _0x41ee57(_0x34f91b)['id'];return this['_permissionService'][_0x2079ef(0x119)]([_0x294ea1,..._0x41778e,..._0x55d06e,_0x49155b])['every'](_0x11090b=>!!_0x11090b[_0x2079ef(0xe0)]);}};G=H([V(0x0,_0x501869(_0x5146f1)),V(0x1,_0x5d2eb8),V(0x2,_0x2bc188),V(0x3,_0xc4feca),V(0x4,_0x578fd8),V(0x5,_0x32b568),V(0x6,_0x501869(_0x152aea)),V(0x7,_0x501869(_0x3a5ccb)),V(0x8,_0x501869(_0xef72e6)),V(0x9,_0x501869(_0x3616cc))],G);const K={'id':_0xcdc2b4(0x128),'type':_0x2d66d6[_0xcdc2b4(0x158)],'handler':_0x1aa51b=>{const _0x2110bb=_0xcdc2b4;let _0x28a583=_0x1aa51b[_0x2110bb(0x16b)](G),{unitId:_0x5b6c9d}=_0x12470b(_0x1aa51b[_0x2110bb(0x16b)](_0x5d2eb8))||{};return _0x5b6c9d?(_0x28a583[_0x2110bb(0x161)](_0x5b6c9d),!0x0):!0x1;}},q={'id':_0xcdc2b4(0x12e),'type':_0x2d66d6['OPERATION'],'handler':()=>!0x0};var ct=_0xcdc2b4(0x10c),lt='0.18.0';function ut(_0x2baa05){const _0x3cfa87=_0xcdc2b4;return{'id':K['id'],'type':_0xdd9b57['BUTTON'],'icon':'HistoryIcon','tooltip':_0x3cfa87(0xe5),'hidden$':_0x6e3619(_0x2baa05,_0x2286ef[_0x3cfa87(0xdb)]),'disabled$':_0x5971c4(_0x2baa05,{'workbookTypes':[_0x131768,_0x1b94b8],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x37f545[_0xcdc2b4(0x15b)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x1ddce9{constructor(_0x208949,_0x50286a,_0x454ce5,_0x43a472,_0xd39a08,_0x5dcd9a,_0x2f1a41,_0x4f3b3e,_0x49130f,_0x4f88f8,_0x194a80){const _0x5def78=_0xcdc2b4;super(),this[_0x5def78(0x146)]=_0x208949,this[_0x5def78(0xef)]=_0x50286a,this[_0x5def78(0x178)]=_0x454ce5,this['_historyManagerService']=_0x43a472,this[_0x5def78(0x197)]=_0xd39a08,this['_messageService']=_0x5dcd9a,this[_0x5def78(0x11f)]=_0x2f1a41,this[_0x5def78(0x195)]=_0x4f3b3e,this['_dataLoaderService']=_0x49130f,this[_0x5def78(0x10a)]=_0x4f88f8,this['_urlService']=_0x194a80,B(this,_0x5def78(0x10d),null),this[_0x5def78(0x135)]();}[_0xcdc2b4(0x135)](){const _0x235007=_0xcdc2b4;[K,q][_0x235007(0x155)](_0x614245=>this['disposeWithMe'](_0x158d14(this[_0x235007(0x146)][_0x235007(0x14b)](_0x614245)))),this[_0x235007(0x169)](this['_componentManager'][_0x235007(0x15c)](_0x235007(0x168),_0x1c442a)),this[_0x235007(0xef)][_0x235007(0x102)](dt),this[_0x235007(0x169)](this['_commandService']['onCommandExecuted'](async(_0x10a041,_0x10e518)=>{const _0x4e9340=_0x235007;if(_0x10a041['id']===_0x5069ca['id']){let {unitId:_0x3552e5}=_0x10a041[_0x4e9340(0x11d)];this[_0x4e9340(0xe3)][_0x4e9340(0x15d)]({'content':this[_0x4e9340(0x197)]['t'](_0x4e9340(0x14d)),'type':_0x5c4b9d['Loading'],'duration':0x1388});let _0x31537e=this['_collaborationController']['getCollabEntity'](_0x3552e5);_0x10e518!=null&&_0x10e518[_0x4e9340(0xf0)]?this['_handleRevertAcknowledgement'](_0x31537e,async()=>(setTimeout(()=>window['location'][_0x4e9340(0x18a)]()),!0x0),!0x0):this[_0x4e9340(0x110)](_0x31537e,async()=>{const _0x2735c7=_0x4e9340;let _0x48dab9=this[_0x2735c7(0x10a)][_0x2735c7(0x191)](_0x526e34[_0x2735c7(0xdb)]),_0x568e8a=_0x48dab9==null?void 0x0:_0x48dab9[_0x2735c7(0x13f)]();if(!_0x568e8a)return!0x1;this[_0x2735c7(0x10a)][_0x2735c7(0x19c)](_0x3552e5);let _0x2ad4e4=await this['_dataLoaderService'][_0x2735c7(0x13e)](_0x3552e5,_0x526e34[_0x2735c7(0xdb)]);return _0x2ad4e4&&_0x2ad4e4 instanceof _0x4fb4cf?(await this['_setupSubUnitSync'](_0x2ad4e4,_0x568e8a[_0x2735c7(0x14e)]()),!0x0):!0x1;});}}));}[_0xcdc2b4(0x110)](_0x307983,_0x4cc53f,_0xccd829=!0x1){const _0x59e25d=_0xcdc2b4;let _0x202645=_0x1ff757([_0x307983[_0x59e25d(0x157)][_0x59e25d(0x159)],_0x307983[_0x59e25d(0xe4)]])[_0x59e25d(0x183)](async([_0x590efd,_0x5b66d4])=>{const _0x26e138=_0x59e25d;if(_0x590efd[_0x26e138(0x11a)]===_0x430f66[_0x26e138(0x192)]&&(_0x5b66d4==null?void 0x0:_0x5b66d4['status'])===_0x38b07e[_0x26e138(0xfb)]&&_0x590efd['data'][_0x26e138(0x11e)]['some'](_0x4746f4=>_0x4746f4['id']===_0x5069ca['id'])&&await _0x4cc53f()){var _0x1b16c8;this[_0x26e138(0xf9)][_0x26e138(0x199)](),_0x202645[_0x26e138(0x129)](),this['_revertErrorTimer']&&clearTimeout(this[_0x26e138(0x10d)]),await((_0x1b16c8=this['_localCacheService'])==null?void 0x0:_0x1b16c8[_0x26e138(0x15e)]()),this[_0x26e138(0xe3)]['removeAll']();}});_0xccd829&&(this[_0x59e25d(0x10d)]=setTimeout(()=>{const _0x1cae4e=_0x59e25d;_0x202645[_0x1cae4e(0x129)](),this['_messageService'][_0x1cae4e(0x15d)]({'content':this[_0x1cae4e(0x197)]['t'](_0x1cae4e(0x184)),'type':_0x5c4b9d[_0x1cae4e(0x139)],'duration':0xbb8});},0x1388));}async[_0xcdc2b4(0xf6)](_0x345ff2,_0x274046){const _0x5e71fe=_0xcdc2b4;await this['_updateSubUnitFromURLParams'](_0x345ff2,_0x274046),_0x345ff2[_0x5e71fe(0x104)][_0x5e71fe(0x145)](_0x118b8c(this[_0x5e71fe(0xe8)]))[_0x5e71fe(0x183)](_0x495054=>{const _0x283764=_0x5e71fe;_0x495054&&this[_0x283764(0xfc)](_0x495054);}),this[_0x5e71fe(0xfa)][_0x5e71fe(0x12f)][_0x5e71fe(0x145)](_0x118b8c(this[_0x5e71fe(0xe8)]))[_0x5e71fe(0x183)](()=>this[_0x5e71fe(0x122)](_0x345ff2,_0x274046));}[_0xcdc2b4(0xfc)](_0x298ba0,_0x5d054f=!0x1){const _0x1b8bf7=_0xcdc2b4;let _0x9a5ad8=this[_0x1b8bf7(0xfa)][_0x1b8bf7(0x114)](_0x1b8bf7(0x13a));_0x298ba0[_0x1b8bf7(0x14e)]()!==_0x9a5ad8&&this[_0x1b8bf7(0xfa)]['setParam'](_0x1b8bf7(0x13a),_0x298ba0[_0x1b8bf7(0x14e)](),_0x5d054f);}async[_0xcdc2b4(0x122)](_0x1cbc45,_0x21b980){const _0x5c19ca=_0xcdc2b4;var _0x2622ac;if(!_0x21b980||!_0x1cbc45['getSheetBySheetId'](_0x21b980)){let _0x2eca78=_0x1cbc45[_0x5c19ca(0x14f)]()[0x0],_0x7d9a21=_0x1cbc45['getSheetBySheetId'](_0x2eca78);if(!_0x7d9a21)return;this[_0x5c19ca(0xfc)](_0x7d9a21,!0x0),await this['_commandService'][_0x5c19ca(0x18e)](_0x551a6e['id'],{'unitId':_0x1cbc45[_0x5c19ca(0x17f)](),'subUnitId':_0x2eca78});return;}((_0x2622ac=_0x1cbc45[_0x5c19ca(0x13f)]())==null?void 0x0:_0x2622ac[_0x5c19ca(0x14e)]())!==_0x21b980&&await this[_0x5c19ca(0x146)][_0x5c19ca(0x18e)](_0x551a6e['id'],{'unitId':_0x1cbc45[_0x5c19ca(0x17f)](),'subUnitId':_0x21b980});}};function _0x576c(_0x16a0e7,_0x4ef57b){_0x16a0e7=_0x16a0e7-0xdb;const _0x3a8074=_0x3a80();let _0x576cce=_0x3a8074[_0x16a0e7];return _0x576cce;}J=H([V(0x0,_0xc4feca),V(0x1,_0x5c69e0),V(0x2,_0x501869(_0x5e54c4)),V(0x3,_0x501869(G)),V(0x4,_0x501869(_0x5146f1)),V(0x5,_0x578fd8),V(0x6,_0x501869(_0x3f3fcc)),V(0x7,_0x15191f),V(0x8,_0x501869(_0x200401)),V(0x9,_0x5d2eb8),V(0xa,_0xc78038)],J);const Y=_0xcdc2b4(0x14c);let X=class extends _0x2fbf81{constructor(_0x4e0033,_0x91d1de,_0x1cd060,_0x58606f,_0x2c6738,_0x594168,_0x48b44e,_0xd43cd9,_0x504550,_0x689f63){const _0x380b6f=_0xcdc2b4;super(),this[_0x380b6f(0x197)]=_0x4e0033,this[_0x380b6f(0x10a)]=_0x91d1de,this['_configService']=_0x1cd060,this[_0x380b6f(0x146)]=_0x58606f,this[_0x380b6f(0xe3)]=_0x2c6738,this['_permissionService']=_0x594168,this[_0x380b6f(0xea)]=_0x48b44e,this[_0x380b6f(0x147)]=_0xd43cd9,this[_0x380b6f(0x133)]=_0x504550,this[_0x380b6f(0x13b)]=_0x689f63,B(this,'_historyUniver$',new _0x4e9a7e(null)),B(this,_0x380b6f(0x101),this[_0x380b6f(0x17d)][_0x380b6f(0x120)]()),B(this,_0x380b6f(0x106),new _0xdf8958()),B(this,'_pluginMap',new Map()),B(this,'_internalWebWorker',null),this[_0x380b6f(0x135)]();}get[_0xcdc2b4(0x13c)](){const _0x1fd52e=_0xcdc2b4;return this[_0x1fd52e(0x17d)][_0x1fd52e(0xe0)];}['_init'](){const _0x39714f=_0xcdc2b4;this['_initContainer'](),this[_0x39714f(0x112)]();}['_initContainer'](){const _0x10aaa4=_0xcdc2b4;var _0x3f3abe;let _0x30e662=(_0x3f3abe=this['_configService'][_0x10aaa4(0x132)](_0x10aaa4(0x188)))==null?_0x10aaa4(0xdd):_0x3f3abe,_0x1c074f=document[_0x10aaa4(0xe2)](_0x30e662);if(!_0x1c074f)return;let _0x90f691=document[_0x10aaa4(0x167)](_0x10aaa4(0x151));_0x90f691['id']=Y,_0x90f691[_0x10aaa4(0x18b)][_0x10aaa4(0x154)]=_0x10aaa4(0x137),_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x118)]=_0x10aaa4(0xf4),_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x134)]='0',_0x90f691['style'][_0x10aaa4(0x152)]='0',_0x90f691[_0x10aaa4(0x156)]['width']='100%',_0x90f691[_0x10aaa4(0x156)]['height']=_0x10aaa4(0xe1),_0x90f691['style'][_0x10aaa4(0x163)]='49',_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x193)]=_0x10aaa4(0xdf),_0x1c074f[_0x10aaa4(0xe6)](_0x90f691);}[_0xcdc2b4(0x112)](){const _0x4586b4=_0xcdc2b4;[[_0x5ca134],[_0x4bfa13,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a5ccb,null]]}],[_0x5d653c],[_0x31cee7,{'override':[[_0x2c5d90,null]]}],[_0x4207ab,{'hasScroll':!0x1}],[_0x2f1d3c],[_0x3a9855],[_0x378801,{'notExecuteFormula':!0x0}],[_0x25859c],[_0xfa733f],[_0x259d1d],[_0x5da1ee],[_0x23d63a],[_0x340c42],[_0x11d274],[_0xf41737],[_0x120848],[_0x23e1f],[_0x5de188],[_0x3062e1,{'notExecuteFormula':!0x0}],[_0xc4d22],[_0x4c2ce8],[_0x358df3],[_0x213647],[_0x306685],[_0x443143],[_0xa87e1e],[_0x580e7a],[_0x1e4282],[_0x564745,{'notExecuteFormula':!0x0}],[_0xe59839]][_0x4586b4(0x155)](([_0x4ef21c,_0x1cf992])=>this[_0x4586b4(0xed)](_0x4ef21c,_0x1cf992));}[_0xcdc2b4(0x108)](){const _0xdc119b=_0xcdc2b4;super[_0xdc119b(0x108)](),this[_0xdc119b(0x199)](),this[_0xdc119b(0x172)][_0xdc119b(0x144)]();}['registerPlugin'](_0x148daa,_0x28bb54,_0x3e49a7){const _0x4833c3=_0xcdc2b4;if(this['_pluginMap'][_0x4833c3(0xde)](_0x148daa[_0x4833c3(0x17e)])&&!_0x3e49a7)throw Error(_0x4833c3(0x11c)+_0x148daa[_0x4833c3(0x17e)]+_0x4833c3(0x12b));this[_0x4833c3(0x172)][_0x4833c3(0x162)](_0x148daa[_0x4833c3(0x17e)],[_0x148daa,_0x28bb54]);}[_0xcdc2b4(0x186)](){const _0xe90430=_0xcdc2b4;return Array[_0xe90430(0x12d)](this[_0xe90430(0x172)][_0xe90430(0x187)]());}[_0xcdc2b4(0x161)](_0xd35454,_0x148e97){const _0x56764a=_0xcdc2b4;let _0x57a5e6=document['getElementById'](Y);_0x57a5e6&&(_0x57a5e6['style'][_0x56764a(0x193)]='block',this['_initUniver'](_0xd35454,Y,_0x148e97));}['unMountHistoryContent'](){const _0x5ad560=_0xcdc2b4;var _0x17bf73;this['_disposableCollection'][_0x5ad560(0x108)](),(_0x17bf73=this[_0x5ad560(0x13c)])==null||_0x17bf73[_0x5ad560(0x108)](),this[_0x5ad560(0x17d)][_0x5ad560(0x143)](null);let _0xcfa96f=document[_0x5ad560(0xe2)](Y);_0xcfa96f&&(_0xcfa96f[_0x5ad560(0x156)][_0x5ad560(0x193)]=_0x5ad560(0xdf),this['_internalWebWorker']&&(this[_0x5ad560(0x18c)][_0x5ad560(0x121)](),this[_0x5ad560(0x18c)]=null));}[_0xcdc2b4(0x19b)](_0x12174d,_0x49f086,_0x105b81){const _0x1fa3ef=_0xcdc2b4;var _0x3ac14d,_0x1a60de,_0x728ba0,_0x38eb80;if(this[_0x1fa3ef(0x13c)])return;let _0x273226=new _0x1792d9({'locales':{[this[_0x1fa3ef(0x197)][_0x1fa3ef(0x142)]()]:this[_0x1fa3ef(0x197)][_0x1fa3ef(0xf7)]()},'override':[[_0x580551,{'useClass':_0x25c273}]]}),_0x51e8e1=_0x273226[_0x1fa3ef(0x165)]();this['disposeWithMe'](this[_0x1fa3ef(0x13b)][_0x1fa3ef(0x123)][_0x1fa3ef(0x183)](_0x154bbe=>{const _0x2c1822=_0x1fa3ef;_0x51e8e1['get'](_0x3616cc)[_0x2c1822(0x107)](_0x154bbe);})),this[_0x1fa3ef(0x169)](this['_themeService'][_0x1fa3ef(0xdc)][_0x1fa3ef(0x183)](_0x393642=>{const _0x5c7ecb=_0x1fa3ef;_0x51e8e1[_0x5c7ecb(0x16b)](_0x3616cc)[_0x5c7ecb(0x180)](_0x393642);})),_0x51e8e1[_0x1fa3ef(0x16b)](_0x5146f1)['setLocale'](this[_0x1fa3ef(0x197)]['getCurrentLocale']()),_0x51e8e1[_0x1fa3ef(0x16b)](_0x2bc188)['setConfig'](_0x1d4dca,this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x1d4dca));let _0x31672b=this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x4df753);_0x31672b&&_0x273226['registerPlugin'](_0x13b78b,{'license':_0x31672b['ls']});let _0x40cf32=(_0x3ac14d=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3ac14d[_0x1fa3ef(0x18d)],_0x29ea60=!!_0x40cf32;_0x29ea60&&(this[_0x1fa3ef(0x18c)]=_0x40cf32 instanceof Worker?_0x40cf32:null,_0x273226[_0x1fa3ef(0xed)](_0x55c6e8,{'workerURL':_0x40cf32})),this[_0x1fa3ef(0x172)]['forEach'](([_0x34343e,_0xd50e05])=>{_0x273226['registerPlugin'](_0x34343e,_0xd50e05);}),_0x273226[_0x1fa3ef(0xed)](_0xa47d47,{'historyListServerUrl':(_0x1a60de=this[_0x1fa3ef(0x196)]['getConfig'](_0x1fa3ef(0x131)))==null?void 0x0:_0x1a60de['historyListServerUrl'],'historyPanelComponentKey':(_0x728ba0=this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x1fa3ef(0x131)))==null?void 0x0:_0x728ba0[_0x1fa3ef(0x105)],'historyPanelHidden':(_0x38eb80=this[_0x1fa3ef(0x196)]['getConfig'](_0x1fa3ef(0x131)))==null?void 0x0:_0x38eb80[_0x1fa3ef(0x16e)]}),_0x51e8e1['invoke'](_0x2a32a3=>{const _0x1f3349=_0x1fa3ef;this[_0x1f3349(0x100)](_0x2a32a3,_0x12174d);}),this[_0x1fa3ef(0x17d)][_0x1fa3ef(0x143)](_0x273226);let _0x38eed9=_0x51e8e1[_0x1fa3ef(0x16b)](_0x3f326a),_0x36719a=this[_0x1fa3ef(0x124)](_0x12174d),_0x2f650c=()=>{const _0x51e462=_0x1fa3ef;_0x105b81?_0x38eed9[_0x51e462(0x115)](_0x12174d,_0x49f086,_0x36719a,_0x105b81):_0x38eed9[_0x51e462(0xf5)](_0x12174d,_0x49f086,_0x36719a);};if(this[_0x1fa3ef(0xe3)]['show']({'content':this[_0x1fa3ef(0x197)]['t'](_0x1fa3ef(0x136)),'type':_0x5c4b9d[_0x1fa3ef(0x12a)]}),_0x29ea60)try{_0x51e8e1[_0x1fa3ef(0x16b)](_0x1f2f8c)['whenReady']()[_0x1fa3ef(0x198)](()=>{_0x2f650c();});}catch{_0x2f650c();}else _0x2f650c();}[_0xcdc2b4(0x100)](_0x2667df,_0x42febb){const _0x254802=_0xcdc2b4;let _0xa1a8ec=_0x2667df[_0x254802(0x16b)](_0x3f326a);this[_0x254802(0x106)][_0x254802(0x171)](_0xa1a8ec[_0x254802(0x177)][_0x254802(0x183)](_0x562ec1=>{const _0x53cee0=_0x254802;switch(_0x562ec1){case _0x509d16[_0x53cee0(0x113)]:this[_0x53cee0(0x147)][_0x53cee0(0x174)](),this[_0x53cee0(0x133)][_0x53cee0(0x173)]();break;case _0x509d16[_0x53cee0(0x148)]:this[_0x53cee0(0x146)]['executeCommand'](q['id']),this[_0x53cee0(0x199)]();break;case _0x509d16['Error']:this[_0x53cee0(0x199)](),this[_0x53cee0(0xe3)][_0x53cee0(0x15d)]({'content':this[_0x53cee0(0x197)]['t'](_0x53cee0(0x10b)),'type':_0x5c4b9d[_0x53cee0(0x139)],'duration':0xbb8});break;default:break;}})),this[_0x254802(0x106)][_0x254802(0x171)](_0xa1a8ec[_0x254802(0x11b)][_0x254802(0x183)](async _0x1c7021=>{const _0xb97c38=_0x254802;_0x1c7021&&this[_0xb97c38(0x146)]['executeCommand'](_0x5069ca['id'],{'unitId':_0x42febb,'revision':_0x1c7021});}));}[_0xcdc2b4(0x124)](_0x405178){const _0x5e3dd7=_0xcdc2b4;let _0x1e7fc3=this['_univerInstanceService'][_0x5e3dd7(0x126)](_0x405178)[_0x5e3dd7(0x10f)]()[_0x5e3dd7(0x16c)](_0x83bfbd=>_0x83bfbd[_0x5e3dd7(0x14e)]()),_0x5e63f2=new _0x131768(_0x405178)['id'],_0xfc9c9c=_0x1e7fc3['map'](_0x3fd35e=>new _0x51fdf5(_0x405178,_0x3fd35e)['id']),_0x574b1a=_0x1e7fc3[_0x5e3dd7(0x16c)](_0x5e8aa5=>this[_0x5e3dd7(0xea)][_0x5e3dd7(0x103)](_0x405178,_0x5e8aa5)[_0x5e3dd7(0x16c)](_0x3c04de=>new _0x24d965(_0x405178,_0x5e8aa5,_0x3c04de[_0x5e3dd7(0x185)])['id']))['flat'](),_0x2205f0=new _0x41ee57(_0x405178)['id'];return this[_0x5e3dd7(0x18f)][_0x5e3dd7(0x119)]([_0x5e63f2,..._0xfc9c9c,..._0x574b1a,_0x2205f0])[_0x5e3dd7(0x164)](_0x322628=>!!_0x322628[_0x5e3dd7(0xe0)]);}};X=H([V(0x0,_0x501869(_0x5146f1)),V(0x1,_0x5d2eb8),V(0x2,_0x2bc188),V(0x3,_0xc4feca),V(0x4,_0x578fd8),V(0x5,_0x32b568),V(0x6,_0x501869(_0x152aea)),V(0x7,_0x501869(_0x3a5ccb)),V(0x8,_0x501869(_0xef72e6)),V(0x9,_0x501869(_0x3616cc))],X);let Z=class extends _0x5d4f75{constructor(_0xe06082=R,_0xec05a,_0x355176){const _0x33df08=_0xcdc2b4;super(),this['_config']=_0xe06082,this['_injector']=_0xec05a,this[_0x33df08(0x196)]=_0x355176;let {menu:_0x2e5fed,..._0x429e86}=_0x462db5({},R,this[_0x33df08(0x149)]);_0x2e5fed&&this[_0x33df08(0x196)][_0x33df08(0x182)](_0x33df08(0x10e),_0x2e5fed,{'merge':!0x0}),this[_0x33df08(0x196)][_0x33df08(0x182)](L,_0x429e86),this[_0x33df08(0x149)]['univerContainerId']&&this[_0x33df08(0x196)][_0x33df08(0x182)](_0x33df08(0x188),this[_0x33df08(0x149)][_0x33df08(0xf1)]);}['onStarting'](){const _0x3d6424=_0xcdc2b4;[[G,{'useClass':X}],[J]][_0x3d6424(0x155)](_0x53c94d=>this[_0x3d6424(0xe7)]['add'](_0x53c94d));}[_0xcdc2b4(0x170)](){const _0x5f257c=_0xcdc2b4;this[_0x5f257c(0xe7)]['get'](J);}};B(Z,_0xcdc2b4(0x141),_0x2286ef[_0xcdc2b4(0x190)]),B(Z,_0xcdc2b4(0x17e),_0xcdc2b4(0xee)),B(Z,_0xcdc2b4(0x138),ct),B(Z,_0xcdc2b4(0x17b),lt),Z=H([_0x299295(_0x13b78b),V(0x1,_0x501869(_0x39260c)),V(0x2,_0x2bc188)],Z);let Q=class extends _0x1ddce9{constructor(_0x545eeb,_0x40aaf4,_0x28a1a6,_0x2e910d,_0x4ca0cc,_0x585b3f,_0x55a707,_0x15e9d7,_0x46984f,_0x741175,_0x5728d5){const _0x2c2633=_0xcdc2b4;super(),this[_0x2c2633(0x146)]=_0x545eeb,this[_0x2c2633(0xef)]=_0x40aaf4,this[_0x2c2633(0x178)]=_0x28a1a6,this['_historyManagerService']=_0x2e910d,this['_localeService']=_0x4ca0cc,this[_0x2c2633(0xe3)]=_0x585b3f,this[_0x2c2633(0x11f)]=_0x55a707,this['_localCacheService']=_0x15e9d7,this[_0x2c2633(0x15a)]=_0x46984f,this['_univerInstanceService']=_0x741175,this[_0x2c2633(0xfa)]=_0x5728d5,B(this,_0x2c2633(0x10d),null),this[_0x2c2633(0x135)]();}['_init'](){const _0x47a832=_0xcdc2b4;[K,q]['forEach'](_0xb8c6a3=>this[_0x47a832(0x169)](_0x158d14(this[_0x47a832(0x146)][_0x47a832(0x14b)](_0xb8c6a3)))),this[_0x47a832(0x169)](this['_componentManager'][_0x47a832(0x15c)](_0x47a832(0x168),_0x1c442a)),this['_menuManagerService']['mergeMenu'](dt),this['disposeWithMe'](this[_0x47a832(0x146)]['onCommandExecuted'](async(_0x5650ed,_0x5b3f86)=>{const _0x3e4e6b=_0x47a832;if(_0x5650ed['id']===_0x5069ca['id']){let {unitId:_0x1070a8}=_0x5650ed[_0x3e4e6b(0x11d)];this[_0x3e4e6b(0xe3)][_0x3e4e6b(0x15d)]({'content':this[_0x3e4e6b(0x197)]['t'](_0x3e4e6b(0x14d)),'type':_0x5c4b9d[_0x3e4e6b(0x12a)],'duration':0x1388});let _0x171430=this['_collaborationController'][_0x3e4e6b(0xff)](_0x1070a8);_0x5b3f86!=null&&_0x5b3f86[_0x3e4e6b(0xf0)]?this[_0x3e4e6b(0x110)](_0x171430,async()=>(setTimeout(()=>window[_0x3e4e6b(0x12c)][_0x3e4e6b(0x18a)]()),!0x0),!0x0):this[_0x3e4e6b(0x110)](_0x171430,async()=>{const _0x1a8cf9=_0x3e4e6b;let _0x206c37=this[_0x1a8cf9(0x10a)][_0x1a8cf9(0x191)](_0x526e34['UNIVER_SHEET']),_0x28ae7d=_0x206c37==null?void 0x0:_0x206c37[_0x1a8cf9(0x13f)]();if(!_0x28ae7d)return!0x1;this[_0x1a8cf9(0x10a)][_0x1a8cf9(0x19c)](_0x1070a8);let _0x1bf1bc=await this[_0x1a8cf9(0x15a)][_0x1a8cf9(0x13e)](_0x1070a8,_0x526e34['UNIVER_SHEET']);return _0x1bf1bc&&_0x1bf1bc instanceof _0x4fb4cf?(await this[_0x1a8cf9(0xf6)](_0x1bf1bc,_0x28ae7d[_0x1a8cf9(0x14e)]()),!0x0):!0x1;});}}));}[_0xcdc2b4(0x110)](_0x4fdcf3,_0x3beb2a,_0x2214b3=!0x1){const _0x56e5c7=_0xcdc2b4;let _0x104c63=_0x1ff757([_0x4fdcf3[_0x56e5c7(0x157)][_0x56e5c7(0x159)],_0x4fdcf3[_0x56e5c7(0xe4)]])[_0x56e5c7(0x183)](async([_0x694a0b,_0x8d93ee])=>{const _0x1ad04d=_0x56e5c7;if(_0x694a0b[_0x1ad04d(0x11a)]===_0x430f66[_0x1ad04d(0x192)]&&(_0x8d93ee==null?void 0x0:_0x8d93ee[_0x1ad04d(0x176)])===_0x38b07e['SYNCED']&&_0x694a0b['data']['mutations'][_0x1ad04d(0x14a)](_0xb805f=>_0xb805f['id']===_0x5069ca['id'])&&await _0x3beb2a()){var _0x11f87c;this[_0x1ad04d(0xf9)]['unMountHistoryContent'](),_0x104c63[_0x1ad04d(0x129)](),this[_0x1ad04d(0x10d)]&&clearTimeout(this['_revertErrorTimer']),await((_0x11f87c=this[_0x1ad04d(0x195)])==null?void 0x0:_0x11f87c['exhaustSavingTask']());}});_0x2214b3&&(this[_0x56e5c7(0x10d)]=setTimeout(()=>{const _0x552be6=_0x56e5c7;_0x104c63['unsubscribe'](),this[_0x552be6(0xe3)]['show']({'content':this[_0x552be6(0x197)]['t']('editHistory.panel.revertFailed'),'type':_0x5c4b9d[_0x552be6(0x139)],'duration':0xbb8});},0x1388));}async[_0xcdc2b4(0xf6)](_0x4b3188,_0x308750){const _0xfd97ce=_0xcdc2b4;await this['_updateSubUnitFromURLParams'](_0x4b3188,_0x308750),_0x4b3188['activeSheet$'][_0xfd97ce(0x145)](_0x118b8c(this[_0xfd97ce(0xe8)]))[_0xfd97ce(0x183)](_0xe39264=>{const _0x96855=_0xfd97ce;_0xe39264&&this[_0x96855(0xfc)](_0xe39264);}),this['_urlService'][_0xfd97ce(0x12f)]['pipe'](_0x118b8c(this[_0xfd97ce(0xe8)]))[_0xfd97ce(0x183)](()=>this['_updateSubUnitFromURLParams'](_0x4b3188,_0x308750));}['_updateURLWithCurrentState'](_0x327196,_0xd3c7dc=!0x1){const _0x317c3e=_0xcdc2b4;let _0x553f42=this['_urlService'][_0x317c3e(0x114)](_0x317c3e(0x13a));_0x327196[_0x317c3e(0x14e)]()!==_0x553f42&&this['_urlService'][_0x317c3e(0x175)]('subunit',_0x327196[_0x317c3e(0x14e)](),_0xd3c7dc);}async['_updateSubUnitFromURLParams'](_0x332d76,_0x1b07ca){const _0x6d942e=_0xcdc2b4;var _0x1dc14c;if(!_0x1b07ca||!_0x332d76[_0x6d942e(0x116)](_0x1b07ca)){let _0x22797d=_0x332d76['getUnhiddenWorksheets']()[0x0],_0x1c34e5=_0x332d76[_0x6d942e(0x116)](_0x22797d);if(!_0x1c34e5)return;this[_0x6d942e(0xfc)](_0x1c34e5,!0x0),await this[_0x6d942e(0x146)]['executeCommand'](_0x551a6e['id'],{'unitId':_0x332d76[_0x6d942e(0x17f)](),'subUnitId':_0x22797d});return;}((_0x1dc14c=_0x332d76[_0x6d942e(0x13f)]())==null?void 0x0:_0x1dc14c['getSheetId']())!==_0x1b07ca&&await this[_0x6d942e(0x146)][_0x6d942e(0x18e)](_0x551a6e['id'],{'unitId':_0x332d76[_0x6d942e(0x17f)](),'subUnitId':_0x1b07ca});}};Q=H([V(0x0,_0xc4feca),V(0x1,_0x5c69e0),V(0x2,_0x501869(_0x5e54c4)),V(0x3,_0x501869(G)),V(0x4,_0x501869(_0x5146f1)),V(0x5,_0x578fd8),V(0x6,_0x501869(_0x3f3fcc)),V(0x7,_0x15191f),V(0x8,_0x501869(_0x200401)),V(0x9,_0x5d2eb8),V(0xa,_0xc78038)],Q);let $=class extends _0x5d4f75{constructor(_0x2a6b70=R,_0x301b46,_0x539ca2){const _0x331eb1=_0xcdc2b4;super(),this['_config']=_0x2a6b70,this[_0x331eb1(0xe7)]=_0x301b46,this[_0x331eb1(0x196)]=_0x539ca2;let {menu:_0xf038cd,..._0x301c82}=_0x462db5({},R,this[_0x331eb1(0x149)]);_0xf038cd&&this[_0x331eb1(0x196)]['setConfig'](_0x331eb1(0x10e),_0xf038cd,{'merge':!0x0}),this[_0x331eb1(0x196)]['setConfig'](L,_0x301c82),this['_config'][_0x331eb1(0xf1)]&&this['_configService'][_0x331eb1(0x182)](U,this[_0x331eb1(0x149)][_0x331eb1(0xf1)]);}[_0xcdc2b4(0x109)](){const _0x2ea886=_0xcdc2b4;[[G],[Q]]['forEach'](_0x150556=>this[_0x2ea886(0xe7)][_0x2ea886(0x171)](_0x150556));}[_0xcdc2b4(0x170)](){const _0x10d906=_0xcdc2b4;this[_0x10d906(0xe7)]['get'](Q);}};B($,_0xcdc2b4(0x141),_0x2286ef[_0xcdc2b4(0x190)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,_0xcdc2b4(0x138),ct),B($,'version',lt),$=H([_0x299295(_0x13b78b),V(0x1,_0x501869(_0x39260c)),V(0x2,_0x2bc188)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2fc7b3=_0x3e8e;(function(_0x39663d,_0x26b573){const _0x569312=_0x3e8e,_0x515cba=_0x39663d();while(!![]){try{const _0x209e36=-parseInt(_0x569312(0x257))/0x1*(parseInt(_0x569312(0x21e))/0x2)+-parseInt(_0x569312(0x220))/0x3+parseInt(_0x569312(0x230))/0x4*(-parseInt(_0x569312(0x1ec))/0x5)+parseInt(_0x569312(0x27e))/0x6+-parseInt(_0x569312(0x246))/0x7+parseInt(_0x569312(0x27f))/0x8*(parseInt(_0x569312(0x1d3))/0x9)+-parseInt(_0x569312(0x279))/0xa*(-parseInt(_0x569312(0x1c8))/0xb);if(_0x209e36===_0x26b573)break;else _0x515cba['push'](_0x515cba['shift']());}catch(_0x4f3458){_0x515cba['push'](_0x515cba['shift']());}}}(_0xd9da,0x276a8));var se=Object[_0x2fc7b3(0x1dd)],ae=(_0x1385ce,_0x16515f,_0x4d053d)=>_0x16515f in _0x1385ce?se(_0x1385ce,_0x16515f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d053d}):_0x1385ce[_0x16515f]=_0x4d053d,d=(_0x33b70c,_0x2c84dc,_0x353c0f)=>ae(_0x33b70c,typeof _0x2c84dc!=_0x2fc7b3(0x261)?_0x2c84dc+'':_0x2c84dc,_0x353c0f);import{Inject as _0x3e7270,LocaleService as _0x184cc8,ThemeService as _0x1127f9,Disposable as _0x34eb73,DisposableCollection as _0x1685de,Univer as _0x5e0599,IAuthzIoService as _0x5c2ef6,IConfigService as _0x23d28a,IUniverInstanceService as _0x4ed486,ICommandService as _0x28c1d1,IPermissionService as _0x488a25,CommandType as _0x500d88,UniverInstanceType as _0x3d874e,RxDisposable as _0x2d9b8d,toDisposable as _0x3b05ce,Workbook as _0x37e8a8,DependentOn as _0x4a3855,Injector as _0x2e410e,Plugin as _0x4097a3,merge as _0xf24e08}from'@univerjs/core';import{RangeProtectionRuleModel as _0x50d464,UniverSheetsPlugin as _0x5b498d,WorkbookEditablePermission as _0x26ccb0,WorksheetEditPermission as _0x3ee8b6,RangeProtectionPermissionEditPoint as _0x3e6ac1,WorkbookRecoverHistoryPermission as _0x56f8be,getSheetCommandTarget as _0x6cdcaa,WorkbookViewHistoryPermission as _0x4b9d57,SetWorksheetActivateCommand as _0x306b09}from'@univerjs/sheets';import{UniverCollaborationPlugin as _0x560b85,RevertRevisionMutation as _0x161d46,CollaborationEvent as _0x5d6708}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5851a5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x87210a,CollaborationController as _0x542228,DataLoaderService as _0xae6654,CollaborationStatus as _0x181bf6,ILocalCacheService as _0x33c52e}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x34a908,HistoryManagerService as _0x18b099,HistoryModeStatus as _0x466ec0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x425d58,UniverLicensePlugin as _0x4b6169}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x140db0}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x53b902}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x5320ea}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xdef9b7}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x5be6c1}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x31c6ca}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x391d8c}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3ea405}from'@univerjs/data-validation';import{MessageType as _0x34ba39}from'@univerjs/design';import{UniverDocsPlugin as _0x335d73}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x273ca7}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x16441d,IImageIoService as _0x4010ef}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x3b762d}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x1bf488}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x57cf7e}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x55580b}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x471191,IRemoteInstanceService as _0x50c86c}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0xbe5f41}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x15e06e}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x311142}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x505a92}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5071b5}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x50d60f}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x455047}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x2d1d84}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xded503}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x3e06cb}from'@univerjs/sheets-formula-ui';function _0xd9da(){const _0x166d51=['getParam','CHANGESET_ACK','string','add','82mafFQq','_internalWebWorker','367185rjbzUo','_initPlugins','some','status$','reload','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','menu','getElementById','urlChange$','_themeService','from','uComp','trim','zIndex','packageName','asObservable','33868iqrcPD','fill','display','none','univer.operation.toggle-edit-history','subscribe','_updateURLWithCurrentState','_commandService','_urlService','data','_permissionService','getLocales','_historyUniver$','exhaustSavingTask','__getInjector','_localeService','UNIVER_PROJECT','permissionId','forEach','version','_selectionProtectionRuleModel','map','2176475TUElUe','univer-history-container','historyUniver','top','assign','_init','history-icon_clip0_907_281','type','Exited','Entered','defIds','close','1em','editHistory.panel.title','clipPath','unsubscribe','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','4999mHeuzb','setTheme','_collaborationController','OTHERS','value','getAllPlugins','triggerLoadVersions','loadUnit','getSubunitRuleList','edit-history-loader.config','symbol','current','dispose','_dialogService','_configService','_initUniver','_pluginMap','status','setLocale','editHistory.info.initializing','toString','includes','100%','_initListener','OPERATION','_handleRevertAcknowledgement','setParam','_checkCanRevert','UniverIcon','style','pluginName','width','show','xlink:href','10URuzkB','subunit','getCurrentLocale','M0\x200H16V16H0z','UNIVER_DOC','1666308vOETcd','808OZclCM','get','currentColor','name','_componentManager','getActiveSheet','tag','_messageService','getConfig','6777529zrgMZQ','triggerCustomVersions','_revertErrorTimer','HistoryIcon','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','fromCollab','getSheetBySheetId','dispose$','location','_initContainer','eventID','666tBmfEf','onCommandExecuted','every','Error','clear','registerPlugin','historyAIassistantEnabled','createElement','_updateSubUnitFromURLParams','defs','defineProperty','_historyManagerService','getSheets','executeCommand','disposeWithMe','dataset','editHistory.panel.listFetchError','replace','idSuffix','composePermission','white','editHistory.panel.reverting','path','getUnit','univerjs-icon\x20univerjs-icon-','60gFtecd','appendChild','position','_disposableCollection','has','history-container','mountHistoryContent','getCollabEntity','attrs','BUTTON','_setupSubUnitSync','_injector','univer.operation.exit-edit-history','UNIVER_SLIDE','substring','getUnitId','UNRECOGNIZED','terminate','editHistory.panel.revertFailed','[HistoryLoaderService]:\x20Plugin\x20','values','_univerInstanceService','colorChannel1','length','setConfig','UNIVER_UNKNOWN','children','getOwnPropertyDescriptor','_dataLoaderService','random','session','pipe','entries','getCurrentUnitOfType','UNIVER_SHEET','Loading','flat','getSheetId','historyPanelHidden','historyListServerUrl','url(#$1','currentTheme$','displayName','div','unMountHistoryContent','_config'];_0xd9da=function(){return _0x166d51;};return _0xd9da();}import{UniverSheetsHyperLinkPlugin as _0x23cd79}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x980711}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x559200}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x2fc1a6}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x7caa0c,getCurrentRangeDisable$ as _0x17195d}from'@univerjs/sheets-ui';import{IDialogService as _0x182d6c,ISidebarService as _0x2aaed0,UniverUIPlugin as _0x2a944f,IMessageService as _0x27fe79,MenuItemType as _0x492789,getMenuHiddenObservable as _0x541ae0,RibbonStartGroup as _0x478a30,ComponentManager as _0x5855de,IMenuManagerService as _0x5bc567}from'@univerjs/ui';import{BehaviorSubject as _0x26d00b,combineLatest as _0x384456,takeUntil as _0x4891b1}from'rxjs';import{IURLService as _0x2e5a36}from'@univerjs-pro/collaboration-client-ui';import{useRef as _0x4ecb78,createElement as _0x2a7b0e,forwardRef as _0x35d8e4}from'react';const _=_0x2fc7b3(0x260),j={};var Nt=Object[_0x2fc7b3(0x207)],Lt=(_0xebec81,_0xfe92f1,_0x1e4521,_0x218fc4)=>{const _0x27bc6e=_0x2fc7b3;for(var _0x1f9e00=_0x218fc4>0x1?void 0x0:_0x218fc4?Nt(_0xfe92f1,_0x1e4521):_0xfe92f1,_0x214b1d=_0xebec81[_0x27bc6e(0x203)]-0x1,_0x31c892;_0x214b1d>=0x0;_0x214b1d--)(_0x31c892=_0xebec81[_0x214b1d])&&(_0x1f9e00=_0x31c892(_0x1f9e00)||_0x1f9e00);return _0x1f9e00;},g=(_0x4af4a6,_0x476d17)=>(_0x5beeaf,_0x308cbb)=>_0x476d17(_0x5beeaf,_0x308cbb,_0x4af4a6);const Ht='univer-container',X='UNIVER_CONTAINER_ID',S=_0x2fc7b3(0x247);let p=class extends _0x34eb73{constructor(_0x431296,_0xec5e2c,_0x15a15,_0x3eddde,_0x5b6568,_0x20e01b,_0x1f17de,_0x27b547,_0x26d247,_0xc5ee89){const _0x2c1118=_0x2fc7b3;super(),d(this,'_historyUniver$',new _0x26d00b(null)),d(this,'historyUniver$',this[_0x2c1118(0x23c)][_0x2c1118(0x22f)]()),d(this,_0x2c1118(0x1ef),new _0x1685de()),d(this,_0x2c1118(0x267),new Map()),d(this,_0x2c1118(0x21f),null),(this[_0x2c1118(0x23f)]=_0x431296,this[_0x2c1118(0x201)]=_0xec5e2c,this[_0x2c1118(0x265)]=_0x15a15,this[_0x2c1118(0x237)]=_0x3eddde,this[_0x2c1118(0x1c6)]=_0x5b6568,this[_0x2c1118(0x23a)]=_0x20e01b,this[_0x2c1118(0x244)]=_0x1f17de,this[_0x2c1118(0x264)]=_0x27b547,this['_sidebarService']=_0x26d247,this[_0x2c1118(0x229)]=_0xc5ee89,this[_0x2c1118(0x24b)]());}get['historyUniver'](){const _0x13bc33=_0x2fc7b3;return this[_0x13bc33(0x23c)][_0x13bc33(0x25b)];}[_0x2fc7b3(0x24b)](){this['_initContainer'](),this['_initPlugins']();}[_0x2fc7b3(0x1d1)](){const _0x2eb594=_0x2fc7b3;var _0x4d0f33;const _0xefad3e=(_0x4d0f33=this[_0x2eb594(0x265)]['getConfig'](X))!=null?_0x4d0f33:Ht,_0xf78fcc=document[_0x2eb594(0x227)](_0xefad3e);if(!_0xf78fcc)return;const _0x3001f7=document[_0x2eb594(0x1da)](_0x2eb594(0x217));_0x3001f7['id']=S,_0x3001f7[_0x2eb594(0x1e2)][_0x2eb594(0x22b)]=_0x2eb594(0x1f1),_0x3001f7['style'][_0x2eb594(0x1ee)]='absolute',_0x3001f7['style'][_0x2eb594(0x249)]='0',_0x3001f7[_0x2eb594(0x274)]['left']='0',_0x3001f7['style'][_0x2eb594(0x276)]=_0x2eb594(0x26d),_0x3001f7[_0x2eb594(0x274)]['height']=_0x2eb594(0x26d),_0x3001f7['style'][_0x2eb594(0x22d)]='49',_0x3001f7[_0x2eb594(0x274)][_0x2eb594(0x232)]=_0x2eb594(0x233),_0xf78fcc[_0x2eb594(0x1ed)](_0x3001f7);}[_0x2fc7b3(0x221)](){const _0x56494e=_0x2fc7b3;[[_0x57cf7e],[_0x2a944f,{'container':S,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x182d6c,null]]}],[_0x55580b],[_0x16441d,{'override':[[_0x4010ef,null]]}],[_0x335d73,{'hasScroll':!0x1}],[_0x273ca7],[_0x559200],[_0x5b498d,{'notExecuteFormula':!0x0}],[_0x7caa0c],[_0xded503],[_0x3e06cb],[_0x560b85],[_0x455047],[_0x2d1d84],[_0xbe5f41],[_0x15e06e],[_0x23cd79],[_0x980711],[_0x3ea405],[_0x311142],[_0x505a92],[_0x1bf488,{'notExecuteFormula':!0x0}],[_0x3b762d],[_0x5071b5],[_0x50d60f],[_0x31c6ca],[_0x391d8c],[_0x140db0],[_0x53b902],[_0xdef9b7],[_0x5be6c1],[_0x5320ea,{'notExecuteFormula':!0x0}],[_0x2fc1a6]][_0x56494e(0x242)](([_0x47202d,_0xdc66e8])=>this[_0x56494e(0x1d8)](_0x47202d,_0xdc66e8));}[_0x2fc7b3(0x263)](){const _0x300dce=_0x2fc7b3;super[_0x300dce(0x263)](),this[_0x300dce(0x218)](),this[_0x300dce(0x267)][_0x300dce(0x1d7)]();}[_0x2fc7b3(0x1d8)](_0x1f66d9,_0x2bec44,_0x350491){const _0x161484=_0x2fc7b3;if(this[_0x161484(0x267)][_0x161484(0x1f0)](_0x1f66d9['pluginName'])&&!_0x350491)throw new Error(_0x161484(0x1ff)+_0x1f66d9['pluginName']+'\x20has\x20been\x20registered.');this[_0x161484(0x267)]['set'](_0x1f66d9[_0x161484(0x275)],[_0x1f66d9,_0x2bec44]);}[_0x2fc7b3(0x25c)](){const _0x53a1c4=_0x2fc7b3;return Array[_0x53a1c4(0x22a)](this[_0x53a1c4(0x267)][_0x53a1c4(0x200)]());}[_0x2fc7b3(0x1f2)](_0x7824d1,_0x2ca46d){const _0x3c3cff=_0x2fc7b3,_0x56cabd=document[_0x3c3cff(0x227)](S);_0x56cabd&&(_0x56cabd[_0x3c3cff(0x274)][_0x3c3cff(0x232)]='block',this[_0x3c3cff(0x266)](_0x7824d1,S,_0x2ca46d));}[_0x2fc7b3(0x218)](){const _0x4704b3=_0x2fc7b3;var _0x4afbe1;this[_0x4704b3(0x1ef)][_0x4704b3(0x263)](),(_0x4afbe1=this[_0x4704b3(0x248)])==null||_0x4afbe1[_0x4704b3(0x263)](),this[_0x4704b3(0x23c)]['next'](null);const _0xe731bc=document[_0x4704b3(0x227)](S);_0xe731bc&&(_0xe731bc[_0x4704b3(0x274)][_0x4704b3(0x232)]=_0x4704b3(0x233),this['_internalWebWorker']&&(this[_0x4704b3(0x21f)][_0x4704b3(0x1fd)](),this[_0x4704b3(0x21f)]=null));}[_0x2fc7b3(0x266)](_0x3ff990,_0x12df54,_0x51142a){const _0x5f4ba2=_0x2fc7b3;var _0x39136e,_0x362142,_0x5dc3ab,_0x545d42,_0x58e17a;if(this[_0x5f4ba2(0x248)])return;const _0x5db6ee=new _0x5e0599({'locales':{[this[_0x5f4ba2(0x23f)][_0x5f4ba2(0x27b)]()]:this[_0x5f4ba2(0x23f)][_0x5f4ba2(0x23b)]()},'override':[[_0x5c2ef6,{'useClass':_0x5851a5}]]}),_0x5eb7a4=_0x5db6ee[_0x5f4ba2(0x23e)]();this[_0x5f4ba2(0x1e1)](this['_themeService']['darkMode$'][_0x5f4ba2(0x235)](_0x2b9c25=>{const _0x4b6ebf=_0x5f4ba2;_0x5eb7a4[_0x4b6ebf(0x1c0)](_0x1127f9)['setDarkMode'](_0x2b9c25);})),this[_0x5f4ba2(0x1e1)](this[_0x5f4ba2(0x229)][_0x5f4ba2(0x215)]['subscribe'](_0x52963c=>{const _0x2ea4d7=_0x5f4ba2;_0x5eb7a4[_0x2ea4d7(0x1c0)](_0x1127f9)[_0x2ea4d7(0x258)](_0x52963c);})),_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x184cc8)[_0x5f4ba2(0x269)](this['_localeService'][_0x5f4ba2(0x27b)]()),_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x23d28a)['setConfig'](_0x87210a,this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_0x87210a));const _0x105cc2=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_0x425d58);_0x105cc2&&_0x5db6ee[_0x5f4ba2(0x1d8)](_0x4b6169,{'license':_0x105cc2['ls']});const _0xfca89d=(_0x39136e=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x39136e['workerURL'],_0x40c21b=!!_0xfca89d;_0x40c21b&&(this[_0x5f4ba2(0x21f)]=_0xfca89d instanceof Worker?_0xfca89d:null,_0x5db6ee[_0x5f4ba2(0x1d8)](_0x471191,{'workerURL':_0xfca89d})),this['_pluginMap'][_0x5f4ba2(0x242)](([_0x2c9703,_0x296d00])=>{const _0x3fa2fb=_0x5f4ba2;_0x5db6ee[_0x3fa2fb(0x1d8)](_0x2c9703,_0x296d00);}),_0x5db6ee[_0x5f4ba2(0x1d8)](_0x34a908,{'historyListServerUrl':(_0x362142=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x362142[_0x5f4ba2(0x213)],'historyPanelComponentKey':(_0x5dc3ab=this[_0x5f4ba2(0x265)]['getConfig'](_))==null?void 0x0:_0x5dc3ab['historyPanelComponentKey'],'historyPanelHidden':(_0x545d42=this[_0x5f4ba2(0x265)]['getConfig'](_))==null?void 0x0:_0x545d42[_0x5f4ba2(0x212)],'historyAIassistantEnabled':(_0x58e17a=this[_0x5f4ba2(0x265)][_0x5f4ba2(0x1c7)](_))==null?void 0x0:_0x58e17a[_0x5f4ba2(0x1d9)]}),_0x5eb7a4['invoke'](_0x15f6da=>{const _0x3120f7=_0x5f4ba2;this[_0x3120f7(0x26e)](_0x15f6da,_0x3ff990);}),this['_historyUniver$']['next'](_0x5db6ee);const _0x13a282=_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x18b099),_0x2f4ce9=this[_0x5f4ba2(0x272)](_0x3ff990),_0x4d447c=()=>{const _0x12ed3c=_0x5f4ba2;_0x51142a?_0x13a282[_0x12ed3c(0x1c9)](_0x3ff990,_0x12df54,_0x2f4ce9,_0x51142a):_0x13a282[_0x12ed3c(0x25d)](_0x3ff990,_0x12df54,_0x2f4ce9);};if(this[_0x5f4ba2(0x1c6)][_0x5f4ba2(0x277)]({'content':this[_0x5f4ba2(0x23f)]['t'](_0x5f4ba2(0x26a)),'type':_0x34ba39[_0x5f4ba2(0x20f)]}),_0x40c21b)try{_0x5eb7a4[_0x5f4ba2(0x1c0)](_0x50c86c)['whenReady']()['then'](()=>{_0x4d447c();});}catch{_0x4d447c();}else _0x4d447c();}[_0x2fc7b3(0x26e)](_0x52950f,_0x2f392a){const _0xfbe1dd=_0x2fc7b3,_0x2b7707=_0x52950f[_0xfbe1dd(0x1c0)](_0x18b099);this['_disposableCollection'][_0xfbe1dd(0x21d)](_0x2b7707[_0xfbe1dd(0x223)][_0xfbe1dd(0x235)](_0x254b63=>{const _0x4d3a66=_0xfbe1dd;switch(_0x254b63){case _0x466ec0[_0x4d3a66(0x24f)]:this[_0x4d3a66(0x264)]['closeAll'](),this['_sidebarService'][_0x4d3a66(0x251)]();break;case _0x466ec0[_0x4d3a66(0x24e)]:this[_0x4d3a66(0x237)][_0x4d3a66(0x1e0)](ee['id']),this[_0x4d3a66(0x218)]();break;case _0x466ec0[_0x4d3a66(0x1d6)]:this[_0x4d3a66(0x218)](),this[_0x4d3a66(0x1c6)][_0x4d3a66(0x277)]({'content':this[_0x4d3a66(0x23f)]['t'](_0x4d3a66(0x1e3)),'type':_0x34ba39['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0xfbe1dd(0x21d)](_0x2b7707['revertRevision$'][_0xfbe1dd(0x235)](async _0x935b1e=>{const _0x564453=_0xfbe1dd;_0x935b1e&&this[_0x564453(0x237)][_0x564453(0x1e0)](_0x161d46['id'],{'unitId':_0x2f392a,'revision':_0x935b1e});}));}[_0x2fc7b3(0x272)](_0x2427a0){const _0x3b3ede=_0x2fc7b3,_0x548c48=this[_0x3b3ede(0x201)][_0x3b3ede(0x1ea)](_0x2427a0)[_0x3b3ede(0x1df)]()['map'](_0x4a2a13=>_0x4a2a13[_0x3b3ede(0x211)]()),_0x43278d=new _0x26ccb0(_0x2427a0)['id'],_0x5177fd=_0x548c48['map'](_0x48abc3=>new _0x3ee8b6(_0x2427a0,_0x48abc3)['id']),_0x5be2cc=_0x548c48[_0x3b3ede(0x245)](_0x253cba=>this[_0x3b3ede(0x244)][_0x3b3ede(0x25f)](_0x2427a0,_0x253cba)[_0x3b3ede(0x245)](_0x207db1=>new _0x3e6ac1(_0x2427a0,_0x253cba,_0x207db1[_0x3b3ede(0x241)])['id']))[_0x3b3ede(0x210)](),_0x1f28b2=new _0x56f8be(_0x2427a0)['id'];return this[_0x3b3ede(0x23a)][_0x3b3ede(0x1e6)]([_0x43278d,..._0x5177fd,..._0x5be2cc,_0x1f28b2])[_0x3b3ede(0x1d5)](_0x3d0e47=>!!_0x3d0e47[_0x3b3ede(0x25b)]);}};p=Lt([g(0x0,_0x3e7270(_0x184cc8)),g(0x1,_0x4ed486),g(0x2,_0x23d28a),g(0x3,_0x28c1d1),g(0x4,_0x27fe79),g(0x5,_0x488a25),g(0x6,_0x3e7270(_0x50d464)),g(0x7,_0x3e7270(_0x182d6c)),g(0x8,_0x3e7270(_0x2aaed0)),g(0x9,_0x3e7270(_0x1127f9))],p);const w={'id':_0x2fc7b3(0x234),'type':_0x500d88['OPERATION'],'handler':_0x172cd7=>{const _0x4f5da6=_0x2fc7b3,_0x632697=_0x172cd7[_0x4f5da6(0x1c0)](p),_0x377c1a=_0x172cd7[_0x4f5da6(0x1c0)](_0x4ed486),{unitId:_0x443012}=_0x6cdcaa(_0x377c1a)||{};return _0x443012?(_0x632697[_0x4f5da6(0x1f2)](_0x443012),!0x0):!0x1;}},ee={'id':_0x2fc7b3(0x1f8),'type':_0x500d88[_0x2fc7b3(0x26f)],'handler':()=>!0x0},Ot='@univerjs-pro/edit-history-loader',wt='0.17.0',te={'name':Ot,'version':wt};function ie({ref:_0x4a3a8a,..._0x27a491}){const _0x4f3d26=_0x2fc7b3,{icon:_0x38777f,id:_0x4f95cd,className:_0x3e84c6,extend:_0x24af1d,..._0xf5c395}=_0x27a491,_0x5154a8=(_0x4f3d26(0x1eb)+_0x4f95cd+'\x20'+(_0x3e84c6||''))[_0x4f3d26(0x22c)](),_0x2bb510=_0x4ecb78('_'+Tt());return re(_0x38777f,''+_0x4f95cd,{'defIds':_0x38777f[_0x4f3d26(0x250)],'idSuffix':_0x2bb510[_0x4f3d26(0x262)]},{'ref':_0x4a3a8a,'className':_0x5154a8,..._0xf5c395},_0x24af1d);}function re(_0x3d0489,_0x1383bd,_0x9ce76b,_0x3c1092,_0x4db7f6){const _0x23cdfa=_0x2fc7b3;return _0x2a7b0e(_0x3d0489[_0x23cdfa(0x1c5)],{'key':_0x1383bd,...Mt(_0x3d0489,_0x9ce76b,_0x4db7f6),..._0x3c1092},(Dt(_0x3d0489,_0x9ce76b)['children']||[])[_0x23cdfa(0x245)]((_0x36fc8f,_0xe1b8e2)=>re(_0x36fc8f,_0x1383bd+'-'+_0x3d0489[_0x23cdfa(0x1c5)]+'-'+_0xe1b8e2,_0x9ce76b,void 0x0,_0x4db7f6)));}function Mt(_0x3cd6a3,_0x3a5c94,_0x3d6917){const _0x429f42=_0x2fc7b3,_0x19d0d4={..._0x3cd6a3['attrs']};_0x3d6917!=null&&_0x3d6917[_0x429f42(0x202)]&&_0x19d0d4[_0x429f42(0x231)]===_0x429f42(0x202)&&(_0x19d0d4['fill']=_0x3d6917[_0x429f42(0x202)]),_0x3cd6a3['tag']==='mask'&&_0x19d0d4['id']&&(_0x19d0d4['id']=_0x19d0d4['id']+_0x3a5c94[_0x429f42(0x1e5)]),Object['entries'](_0x19d0d4)[_0x429f42(0x242)](([_0x42553d,_0x462dac])=>{const _0x162945=_0x429f42;_0x42553d==='mask'&&typeof _0x462dac==_0x162945(0x21c)&&(_0x19d0d4[_0x42553d]=_0x462dac[_0x162945(0x1e4)](/url\(#(.*)\)/,_0x162945(0x214)+_0x3a5c94[_0x162945(0x1e5)]+')'));});const {defIds:_0x265016}=_0x3a5c94;return!_0x265016||_0x265016[_0x429f42(0x203)]===0x0||(_0x3cd6a3['tag']==='use'&&_0x19d0d4[_0x429f42(0x278)]&&(_0x19d0d4[_0x429f42(0x278)]=_0x19d0d4[_0x429f42(0x278)]+_0x3a5c94[_0x429f42(0x1e5)]),Object[_0x429f42(0x20c)](_0x19d0d4)[_0x429f42(0x242)](([_0x38c4cb,_0x141634])=>{const _0x3229e8=_0x429f42;typeof _0x141634==_0x3229e8(0x21c)&&(_0x19d0d4[_0x38c4cb]=_0x141634[_0x3229e8(0x1e4)](/url\(#(.*)\)/,_0x3229e8(0x214)+_0x3a5c94[_0x3229e8(0x1e5)]+')'));})),_0x19d0d4;}function Dt(_0x4a7d1e,_0x3cf10a){const _0x5eabb2=_0x2fc7b3;var _0xd42df6;const {defIds:_0x188985}=_0x3cf10a;return!_0x188985||_0x188985[_0x5eabb2(0x203)]===0x0?_0x4a7d1e:_0x4a7d1e[_0x5eabb2(0x1c5)]===_0x5eabb2(0x1dc)&&((_0xd42df6=_0x4a7d1e[_0x5eabb2(0x206)])!=null&&_0xd42df6[_0x5eabb2(0x203)])?{..._0x4a7d1e,'children':_0x4a7d1e[_0x5eabb2(0x206)][_0x5eabb2(0x245)](_0x391fdb=>typeof _0x391fdb[_0x5eabb2(0x1f4)]['id']=='string'&&_0x188985&&_0x188985[_0x5eabb2(0x26c)](_0x391fdb[_0x5eabb2(0x1f4)]['id'])?{..._0x391fdb,'attrs':{..._0x391fdb[_0x5eabb2(0x1f4)],'id':_0x391fdb[_0x5eabb2(0x1f4)]['id']+_0x3cf10a['idSuffix']}}:_0x391fdb)}:_0x4a7d1e;}function Tt(){const _0x57dfd3=_0x2fc7b3;return Math[_0x57dfd3(0x209)]()[_0x57dfd3(0x26b)](0x24)[_0x57dfd3(0x1fa)](0x2,0x8);}ie[_0x2fc7b3(0x216)]=_0x2fc7b3(0x273);const $t={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2fc7b3(0x252),'height':_0x2fc7b3(0x252)},'children':[{'tag':'g','attrs':{'fill':_0x2fc7b3(0x1c1),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x2fc7b3(0x1e9),'attrs':{'d':_0x2fc7b3(0x256)}},{'tag':_0x2fc7b3(0x1e9),'attrs':{'d':_0x2fc7b3(0x1cc)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2fc7b3(0x254),'attrs':{'id':_0x2fc7b3(0x24c)},'children':[{'tag':_0x2fc7b3(0x1e9),'attrs':{'fill':_0x2fc7b3(0x1e7),'d':_0x2fc7b3(0x27c)}}]}]}],'defIds':[_0x2fc7b3(0x24c)]},ne=_0x35d8e4(function(_0x1a37d9,_0x537c94){const _0x44696f=_0x2fc7b3;return _0x2a7b0e(ie,Object[_0x44696f(0x24a)]({},_0x1a37d9,{'id':'history-icon','ref':_0x537c94,'icon':$t}));});ne[_0x2fc7b3(0x216)]=_0x2fc7b3(0x1cb);var N=(_0x1bf683=>(_0x1bf683[_0x1bf683['UNIVER_UNKNOWN']=0x0]=_0x2fc7b3(0x205),_0x1bf683[_0x1bf683['UNIVER_DOC']=0x1]=_0x2fc7b3(0x27d),_0x1bf683[_0x1bf683[_0x2fc7b3(0x20e)]=0x2]='UNIVER_SHEET',_0x1bf683[_0x1bf683[_0x2fc7b3(0x1f9)]=0x3]=_0x2fc7b3(0x1f9),_0x1bf683[_0x1bf683[_0x2fc7b3(0x240)]=0x4]=_0x2fc7b3(0x240),_0x1bf683[_0x1bf683[_0x2fc7b3(0x1fc)]=-0x1]='UNRECOGNIZED',_0x1bf683))(N||{});function kt(_0x29f021){const _0x5f131f=_0x2fc7b3;return{'id':w['id'],'type':_0x492789[_0x5f131f(0x1f5)],'icon':_0x5f131f(0x1cb),'tooltip':_0x5f131f(0x253),'hidden$':_0x541ae0(_0x29f021,_0x3d874e['UNIVER_SHEET']),'disabled$':_0x17195d(_0x29f021,{'workbookTypes':[_0x26ccb0,_0x4b9d57],'worksheetTypes':[],'rangeTypes':[]})};}function _0x3e8e(_0x10da54,_0x40abe7){_0x10da54=_0x10da54-0x1c0;const _0xd9da89=_0xd9da();let _0x3e8e3a=_0xd9da89[_0x10da54];return _0x3e8e3a;}const xt={[_0x478a30[_0x2fc7b3(0x25a)]]:{[w['id']]:{'order':0.2,'menuItemFactory':kt}}};var Vt=Object['getOwnPropertyDescriptor'],Wt=(_0x5620ed,_0x373ca4,_0x319261,_0x1e7a6e)=>{const _0x484da2=_0x2fc7b3;for(var _0x3c2b9d=_0x1e7a6e>0x1?void 0x0:_0x1e7a6e?Vt(_0x373ca4,_0x319261):_0x373ca4,_0x3e0f9a=_0x5620ed[_0x484da2(0x203)]-0x1,_0x178f98;_0x3e0f9a>=0x0;_0x3e0f9a--)(_0x178f98=_0x5620ed[_0x3e0f9a])&&(_0x3c2b9d=_0x178f98(_0x3c2b9d)||_0x3c2b9d);return _0x3c2b9d;},h=(_0x3ed86b,_0x387c6d)=>(_0x4da281,_0x494f6a)=>_0x387c6d(_0x4da281,_0x494f6a,_0x3ed86b);let y=class extends _0x2d9b8d{constructor(_0x46218c,_0x2ad584,_0x9e7dd1,_0x22214e,_0x4a473c,_0x26204f,_0x4ec20d,_0x3f53e4,_0xeb3d55,_0x164c0d,_0x160e09){const _0x166b56=_0x2fc7b3;super(),d(this,_0x166b56(0x1ca),null),(this[_0x166b56(0x237)]=_0x46218c,this['_menuManagerService']=_0x2ad584,this['_componentManager']=_0x9e7dd1,this[_0x166b56(0x1de)]=_0x22214e,this[_0x166b56(0x23f)]=_0x4a473c,this[_0x166b56(0x1c6)]=_0x26204f,this['_collaborationController']=_0x4ec20d,this['_localCacheService']=_0x3f53e4,this[_0x166b56(0x208)]=_0xeb3d55,this[_0x166b56(0x201)]=_0x164c0d,this[_0x166b56(0x238)]=_0x160e09,this[_0x166b56(0x24b)]());}[_0x2fc7b3(0x24b)](){const _0x37836f=_0x2fc7b3;[w,ee][_0x37836f(0x242)](_0x281bb2=>this[_0x37836f(0x1e1)](_0x3b05ce(this[_0x37836f(0x237)]['registerCommand'](_0x281bb2)))),this['disposeWithMe'](this[_0x37836f(0x1c3)]['register'](_0x37836f(0x1cb),ne)),this['_menuManagerService']['mergeMenu'](xt),this[_0x37836f(0x1e1)](this[_0x37836f(0x237)][_0x37836f(0x1d4)](async(_0x2323e1,_0x58962f)=>{const _0x12b25d=_0x37836f;if(_0x2323e1['id']===_0x161d46['id']){const {unitId:_0x4fc345}=_0x2323e1['params'];this[_0x12b25d(0x1c6)][_0x12b25d(0x277)]({'content':this[_0x12b25d(0x23f)]['t'](_0x12b25d(0x1e8)),'type':_0x34ba39['Loading'],'duration':0x1388});const _0x38540a=this[_0x12b25d(0x259)][_0x12b25d(0x1f3)](_0x4fc345);(_0x58962f==null?void 0x0:_0x58962f[_0x12b25d(0x1cd)])?this['_handleRevertAcknowledgement'](_0x38540a,async()=>(setTimeout(()=>window[_0x12b25d(0x1d0)][_0x12b25d(0x224)]()),!0x0),!0x0):this[_0x12b25d(0x270)](_0x38540a,async()=>{const _0x4e9202=_0x12b25d,_0x1b2437=this[_0x4e9202(0x201)][_0x4e9202(0x20d)](N[_0x4e9202(0x20e)]),_0x2107cb=_0x1b2437==null?void 0x0:_0x1b2437['getActiveSheet']();if(!_0x2107cb)return!0x1;this['_univerInstanceService']['disposeUnit'](_0x4fc345);const _0x128f22=await this[_0x4e9202(0x208)][_0x4e9202(0x25e)](_0x4fc345,N[_0x4e9202(0x20e)]);return _0x128f22&&_0x128f22 instanceof _0x37e8a8?(await this[_0x4e9202(0x1f6)](_0x128f22,_0x2107cb[_0x4e9202(0x211)]()),!0x0):!0x1;});}}));}[_0x2fc7b3(0x270)](_0x5edb2e,_0x2211e5,_0xa272d4=!0x1){const _0x52804f=_0x2fc7b3,_0x3c4942=_0x384456([_0x5edb2e[_0x52804f(0x20a)]['event$'],_0x5edb2e['state$']])[_0x52804f(0x235)](async([_0x552dd8,_0x3982b1])=>{const _0x16d0ee=_0x52804f;var _0x12b9a0;_0x552dd8[_0x16d0ee(0x1d2)]===_0x5d6708[_0x16d0ee(0x21b)]&&(_0x3982b1==null?void 0x0:_0x3982b1[_0x16d0ee(0x268)])===_0x181bf6['SYNCED']&&_0x552dd8[_0x16d0ee(0x239)]['mutations'][_0x16d0ee(0x222)](_0x5ab688=>_0x5ab688['id']===_0x161d46['id'])&&await _0x2211e5()&&(this['_historyManagerService'][_0x16d0ee(0x218)](),_0x3c4942['unsubscribe'](),this[_0x16d0ee(0x1ca)]&&clearTimeout(this[_0x16d0ee(0x1ca)]),await((_0x12b9a0=this['_localCacheService'])==null?void 0x0:_0x12b9a0[_0x16d0ee(0x23d)]()));});_0xa272d4&&(this[_0x52804f(0x1ca)]=setTimeout(()=>{const _0x5d77b5=_0x52804f;_0x3c4942[_0x5d77b5(0x255)](),this[_0x5d77b5(0x1c6)]['show']({'content':this[_0x5d77b5(0x23f)]['t'](_0x5d77b5(0x1fe)),'type':_0x34ba39[_0x5d77b5(0x1d6)],'duration':0xbb8});},0x1388));}async[_0x2fc7b3(0x1f6)](_0x475972,_0x454e89){const _0x14c2cc=_0x2fc7b3;await this[_0x14c2cc(0x1db)](_0x475972,_0x454e89),_0x475972['activeSheet$'][_0x14c2cc(0x20b)](_0x4891b1(this[_0x14c2cc(0x1cf)]))[_0x14c2cc(0x235)](_0x2515c5=>{const _0x3e27f1=_0x14c2cc;_0x2515c5&&this[_0x3e27f1(0x236)](_0x2515c5);}),this[_0x14c2cc(0x238)][_0x14c2cc(0x228)][_0x14c2cc(0x20b)](_0x4891b1(this[_0x14c2cc(0x1cf)]))[_0x14c2cc(0x235)](()=>this['_updateSubUnitFromURLParams'](_0x475972,_0x454e89));}['_updateURLWithCurrentState'](_0x18afde,_0x336877=!0x1){const _0x5123d6=_0x2fc7b3,_0x4bc7d8=this[_0x5123d6(0x238)][_0x5123d6(0x21a)](_0x5123d6(0x27a));_0x18afde[_0x5123d6(0x211)]()!==_0x4bc7d8&&this[_0x5123d6(0x238)][_0x5123d6(0x271)](_0x5123d6(0x27a),_0x18afde[_0x5123d6(0x211)](),_0x336877);}async[_0x2fc7b3(0x1db)](_0x986350,_0x1f23b5){const _0x18aae6=_0x2fc7b3;var _0x27093a;if(!_0x1f23b5||!_0x986350['getSheetBySheetId'](_0x1f23b5)){const _0x169ce0=_0x986350['getUnhiddenWorksheets']()[0x0],_0x5e7524=_0x986350[_0x18aae6(0x1ce)](_0x169ce0);if(!_0x5e7524)return;this[_0x18aae6(0x236)](_0x5e7524,!0x0),await this[_0x18aae6(0x237)][_0x18aae6(0x1e0)](_0x306b09['id'],{'unitId':_0x986350['getUnitId'](),'subUnitId':_0x169ce0});return;}((_0x27093a=_0x986350[_0x18aae6(0x1c4)]())==null?void 0x0:_0x27093a[_0x18aae6(0x211)]())!==_0x1f23b5&&await this['_commandService'][_0x18aae6(0x1e0)](_0x306b09['id'],{'unitId':_0x986350[_0x18aae6(0x1fb)](),'subUnitId':_0x1f23b5});}};y=Wt([h(0x0,_0x28c1d1),h(0x1,_0x5bc567),h(0x2,_0x3e7270(_0x5855de)),h(0x3,_0x3e7270(p)),h(0x4,_0x3e7270(_0x184cc8)),h(0x5,_0x27fe79),h(0x6,_0x3e7270(_0x542228)),h(0x7,_0x33c52e),h(0x8,_0x3e7270(_0xae6654)),h(0x9,_0x4ed486),h(0xa,_0x2e5a36)],y);var At=Object[_0x2fc7b3(0x1dd)],Ft=Object['getOwnPropertyDescriptor'],jt=(_0x5c3567,_0x36f328,_0x3d7873)=>_0x36f328 in _0x5c3567?At(_0x5c3567,_0x36f328,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d7873}):_0x5c3567[_0x36f328]=_0x3d7873,Bt=(_0x1690eb,_0x15b08b,_0x39affa,_0x4fd98f)=>{for(var _0x42f340=_0x4fd98f>0x1?void 0x0:_0x4fd98f?Ft(_0x15b08b,_0x39affa):_0x15b08b,_0x16d45f=_0x1690eb['length']-0x1,_0x31337c;_0x16d45f>=0x0;_0x16d45f--)(_0x31337c=_0x1690eb[_0x16d45f])&&(_0x42f340=_0x31337c(_0x42f340)||_0x42f340);return _0x42f340;},B=(_0x2fa047,_0xb7f219)=>(_0x36dac8,_0x17ee8e)=>_0xb7f219(_0x36dac8,_0x17ee8e,_0x2fa047),U=(_0x972ce8,_0x2d82f7,_0x4994b7)=>jt(_0x972ce8,typeof _0x2d82f7!=_0x2fc7b3(0x261)?_0x2d82f7+'':_0x2d82f7,_0x4994b7);let f=class extends _0x4097a3{constructor(_0x48a789=j,_0x36b8db,_0x5eb42b){const _0x1e3114=_0x2fc7b3;super(),this[_0x1e3114(0x219)]=_0x48a789,this[_0x1e3114(0x1f7)]=_0x36b8db,this[_0x1e3114(0x265)]=_0x5eb42b;const {menu:_0xe61acf,..._0x2e5d13}=_0xf24e08({},j,this[_0x1e3114(0x219)]);_0xe61acf&&this[_0x1e3114(0x265)]['setConfig'](_0x1e3114(0x226),_0xe61acf,{'merge':!0x0}),this[_0x1e3114(0x265)][_0x1e3114(0x204)](_,_0x2e5d13),this[_0x1e3114(0x219)]['univerContainerId']&&this['_configService']['setConfig'](X,this[_0x1e3114(0x219)]['univerContainerId']);}['onStarting'](){const _0x5d1f8e=_0x2fc7b3;[[p],[y]][_0x5d1f8e(0x242)](_0x5b952b=>this[_0x5d1f8e(0x1f7)][_0x5d1f8e(0x21d)](_0x5b952b));}['onSteady'](){const _0x167a4e=_0x2fc7b3;this['_injector'][_0x167a4e(0x1c0)](y);}};U(f,_0x2fc7b3(0x24d),_0x3d874e[_0x2fc7b3(0x205)]),U(f,_0x2fc7b3(0x275),_0x2fc7b3(0x225)),U(f,_0x2fc7b3(0x22e),te[_0x2fc7b3(0x1c2)]),U(f,_0x2fc7b3(0x243),te[_0x2fc7b3(0x243)]),f=Bt([_0x4a3855(_0x4b6169),B(0x1,_0x3e7270(_0x2e410e)),B(0x2,_0x23d28a)],f);export{_ as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,p as HistoryLoaderService,w as ToggleEditHistoryOperation,X as UNIVER_CONTAINER_ID_KEY,S as UNIVER_HISTORY_CONTAINER_ID,f as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0xcdc2b4=_0x576c;(function(_0x112ec6,_0x31eebe){const _0x10075a=_0x576c,_0xb387ed=_0x112ec6();while(!![]){try{const _0x39b6bb=-parseInt(_0x10075a(0x17c))/0x1+-parseInt(_0x10075a(0xf2))/0x2+parseInt(_0x10075a(0x194))/0x3+-parseInt(_0x10075a(0x16a))/0x4*(-parseInt(_0x10075a(0x150))/0x5)+parseInt(_0x10075a(0x153))/0x6+-parseInt(_0x10075a(0x117))/0x7+parseInt(_0x10075a(0x166))/0x8;if(_0x39b6bb===_0x31eebe)break;else _0xb387ed['push'](_0xb387ed['shift']());}catch(_0x57cc29){_0xb387ed['push'](_0xb387ed['shift']());}}}(_0x3a80,0xbffd4));import{CommandType as _0x2d66d6,DependentOn as _0x299295,Disposable as _0x2fbf81,DisposableCollection as _0xdf8958,IAuthzIoService as _0x580551,ICommandService as _0xc4feca,IConfigService as _0x2bc188,IPermissionService as _0x32b568,IUniverInstanceService as _0x5d2eb8,Inject as _0x501869,Injector as _0x39260c,LocaleService as _0x5146f1,Plugin as _0x5d4f75,RxDisposable as _0x1ddce9,ThemeService as _0x3616cc,Univer as _0x1792d9,UniverInstanceType as _0x2286ef,Workbook as _0x4fb4cf,merge as _0x462db5,toDisposable as _0x158d14}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x24d965,RangeProtectionRuleModel as _0x152aea,SetWorksheetActivateCommand as _0x551a6e,UniverSheetsPlugin as _0x378801,WorkbookEditablePermission as _0x131768,WorkbookRecoverHistoryPermission as _0x41ee57,WorkbookViewHistoryPermission as _0x1b94b8,WorksheetEditPermission as _0x51fdf5,getSheetCommandTarget as _0x12470b}from'@univerjs/sheets';import{CollaborationEvent as _0x430f66,RevertRevisionMutation as _0x5069ca,UniverCollaborationPlugin as _0x5da1ee}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x25c273,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d4dca,CollaborationController as _0x3f3fcc,CollaborationStatus as _0x38b07e,DataLoaderService as _0x200401,ILocalCacheService as _0x15191f}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x3f326a,HistoryModeStatus as _0x509d16,UniverEditHistoryViewerMobilePlugin as _0xa47d47,UniverEditHistoryViewerPlugin as _0x16af9f}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4df753,UniverLicensePlugin as _0x13b78b}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x443143}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xa87e1e}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x564745}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x580e7a}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x1e4282}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x213647}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x306685}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x120848}from'@univerjs/data-validation';import{MessageType as _0x5c4b9d}from'@univerjs/design';import{UniverDocsPlugin as _0x4207ab}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x2f1d3c}from'@univerjs/docs-ui';import{IImageIoService as _0x2c5d90,UniverDrawingPlugin as _0x31cee7}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xc4d22}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3062e1}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x5ca134}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x5d653c}from'@univerjs/network';import{IRemoteInstanceService as _0x1f2f8c,UniverRPCMainThreadPlugin as _0x55c6e8}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x340c42}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x1e1912}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x23e1f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x5de188,UniverSheetsDataValidationUIPlugin as _0x58d9d5}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x4c2ce8}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x358df3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x23d63a}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x48df9e}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xfa733f}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x259d1d}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x11d274}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xf41737}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3a9855}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0xe59839}from'@univerjs/sheets-table';function _0x3a80(){const _0x3362f4=['location','from','univer.operation.exit-edit-history','urlChange$','length','edit-history-loader.config','getConfig','_sidebarService','top','_init','editHistory.info.initializing','history-container','packageName','Error','subunit','_themeService','historyUniver','decorate','loadUnit','getActiveSheet','iterator','type','getCurrentLocale','next','clear','pipe','_commandService','_dialogService','Exited','_config','some','registerCommand','univer-history-container-mobile','editHistory.panel.reverting','getSheetId','getUnhiddenWorksheets','295obBSbH','div','left','4989990XjWcaq','uComp','forEach','style','session','OPERATION','event$','_dataLoaderService','OTHERS','register','show','exhaustSavingTask','constructor','prototype','mountHistoryContent','set','zIndex','every','__getInjector','7076168sFJHLg','createElement','HistoryIcon','disposeWithMe','36364bNrorE','get','map','height','historyPanelHidden','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onSteady','add','_pluginMap','close','closeAll','setParam','status','status$','_componentManager','function','univer-history-container','version','1276606syROio','_historyUniver$','pluginName','getUnitId','setTheme','toPrimitive','setConfig','subscribe','editHistory.panel.revertFailed','permissionId','getAllPlugins','values','UNIVER_CONTAINER_ID','getOwnPropertyDescriptor','reload','dataset','_internalWebWorker','workerURL','executeCommand','_permissionService','UNIVER_UNKNOWN','getCurrentUnitOfType','CHANGESET_ACK','display','4173099euvcCu','_localCacheService','_configService','_localeService','then','unMountHistoryContent','object','_initUniver','disposeUnit','UNIVER_SHEET','currentTheme$','univer-container','has','none','value','100%','getElementById','_messageService','state$','editHistory.panel.title','appendChild','_injector','dispose$','string','_selectionProtectionRuleModel','invoke','width','registerPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','_menuManagerService','fromCollab','univerContainerId','2141874DYVGIi','[HistoryLoaderService]:\x20Plugin\x20','absolute','triggerLoadVersions','_setupSubUnitSync','getLocales','_initContainer','_historyManagerService','_urlService','SYNCED','_updateURLWithCurrentState','flat','historyAIassistantEnabled','getCollabEntity','_initListener','historyUniver$','mergeMenu','getSubunitRuleList','activeSheet$','historyPanelComponentKey','_disposableCollection','setDarkMode','dispose','onStarting','_univerInstanceService','editHistory.panel.listFetchError','@univerjs-pro/edit-history-loader','_revertErrorTimer','menu','getSheets','_handleRevertAcknowledgement','historyListServerUrl','_initPlugins','Entered','getParam','triggerCustomVersions','getSheetBySheetId','3567599xIcZar','position','composePermission','eventID','revertRevision$','[MobileHistoryLoaderService]:\x20Plugin\x20','params','mutations','_collaborationController','asObservable','terminate','_updateSubUnitFromURLParams','darkMode$','_checkCanRevert','symbol','getUnit','defineProperty','univer.operation.toggle-edit-history','unsubscribe','Loading','\x20has\x20been\x20registered.'];_0x3a80=function(){return _0x3362f4;};return _0x3a80();}import{UniverSheetsMobileUIPlugin as _0x25859c,UniverSheetsUIPlugin as _0xcbda01,getCurrentRangeDisable$ as _0x5971c4}from'@univerjs/sheets-ui';import{ComponentManager as _0x5e54c4,IDialogService as _0x3a5ccb,IMenuManagerService as _0x5c69e0,IMessageService as _0x578fd8,ISidebarService as _0xef72e6,MenuItemType as _0xdd9b57,RibbonStartGroup as _0x37f545,UniverMobileUIPlugin as _0x4bfa13,UniverUIPlugin as _0xcdede4,getMenuHiddenObservable as _0x6e3619}from'@univerjs/ui';import{BehaviorSubject as _0x4e9a7e,combineLatest as _0x1ff757,takeUntil as _0x118b8c}from'rxjs';import{IURLService as _0xc78038}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x1c442a}from'@univerjs/icons';import{UniverType as _0x526e34}from'@univerjs/protocol';const L=_0xcdc2b4(0x131);Symbol(L);const R={};function z(_0x5f0c5c){'@babel/helpers - typeof';const _0x2924d1=_0xcdc2b4;return z=typeof Symbol==_0x2924d1(0x179)&&typeof Symbol[_0x2924d1(0x140)]==_0x2924d1(0x125)?function(_0x50fb4f){return typeof _0x50fb4f;}:function(_0x301129){const _0x210a9d=_0x2924d1;return _0x301129&&typeof Symbol==_0x210a9d(0x179)&&_0x301129[_0x210a9d(0x15f)]===Symbol&&_0x301129!==Symbol[_0x210a9d(0x160)]?_0x210a9d(0x125):typeof _0x301129;},z(_0x5f0c5c);}function ot(_0x168c18,_0x5990f9){const _0x3fe0cb=_0xcdc2b4;if(z(_0x168c18)!=_0x3fe0cb(0x19a)||!_0x168c18)return _0x168c18;var _0x5f0025=_0x168c18[Symbol[_0x3fe0cb(0x181)]];if(_0x5f0025!==void 0x0){var _0x295acb=_0x5f0025['call'](_0x168c18,_0x5990f9||'default');if(z(_0x295acb)!=_0x3fe0cb(0x19a))return _0x295acb;throw TypeError(_0x3fe0cb(0x16f));}return(_0x5990f9===_0x3fe0cb(0xe9)?String:Number)(_0x168c18);}function st(_0x4a7ca6){const _0xfad314=_0xcdc2b4;var _0x109462=ot(_0x4a7ca6,_0xfad314(0xe9));return z(_0x109462)==_0xfad314(0x125)?_0x109462:_0x109462+'';}function B(_0x110769,_0x5320b6,_0x46135a){const _0x2b2010=_0xcdc2b4;return(_0x5320b6=st(_0x5320b6))in _0x110769?Object[_0x2b2010(0x127)](_0x110769,_0x5320b6,{'value':_0x46135a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x110769[_0x5320b6]=_0x46135a,_0x110769;}function V(_0x4106ee,_0x15b32b){return function(_0x54729e,_0x2f006a){_0x15b32b(_0x54729e,_0x2f006a,_0x4106ee);};}function H(_0x30dbeb,_0x42d2ac,_0x5f5211,_0x3bbfb6){const _0x105ac9=_0xcdc2b4;var _0x5505f9=arguments[_0x105ac9(0x130)],_0x3ae434=_0x5505f9<0x3?_0x42d2ac:_0x3bbfb6===null?_0x3bbfb6=Object[_0x105ac9(0x189)](_0x42d2ac,_0x5f5211):_0x3bbfb6,_0x52b731;if(typeof Reflect==_0x105ac9(0x19a)&&typeof Reflect[_0x105ac9(0x13d)]=='function')_0x3ae434=Reflect['decorate'](_0x30dbeb,_0x42d2ac,_0x5f5211,_0x3bbfb6);else{for(var _0x54f2e3=_0x30dbeb[_0x105ac9(0x130)]-0x1;_0x54f2e3>=0x0;_0x54f2e3--)(_0x52b731=_0x30dbeb[_0x54f2e3])&&(_0x3ae434=(_0x5505f9<0x3?_0x52b731(_0x3ae434):_0x5505f9>0x3?_0x52b731(_0x42d2ac,_0x5f5211,_0x3ae434):_0x52b731(_0x42d2ac,_0x5f5211))||_0x3ae434);}return _0x5505f9>0x3&&_0x3ae434&&Object[_0x105ac9(0x127)](_0x42d2ac,_0x5f5211,_0x3ae434),_0x3ae434;}const U=_0xcdc2b4(0x188),W=_0xcdc2b4(0x17a);let G=class extends _0x2fbf81{constructor(_0x5c127a,_0x7de8bc,_0x139347,_0x53b736,_0x18a131,_0x5e1db5,_0x1d7de1,_0x572496,_0x5eb394,_0x38161a){const _0x4c3caf=_0xcdc2b4;super(),this[_0x4c3caf(0x197)]=_0x5c127a,this[_0x4c3caf(0x10a)]=_0x7de8bc,this['_configService']=_0x139347,this['_commandService']=_0x53b736,this[_0x4c3caf(0xe3)]=_0x18a131,this['_permissionService']=_0x5e1db5,this[_0x4c3caf(0xea)]=_0x1d7de1,this[_0x4c3caf(0x147)]=_0x572496,this[_0x4c3caf(0x133)]=_0x5eb394,this['_themeService']=_0x38161a,B(this,_0x4c3caf(0x17d),new _0x4e9a7e(null)),B(this,_0x4c3caf(0x101),this[_0x4c3caf(0x17d)][_0x4c3caf(0x120)]()),B(this,_0x4c3caf(0x106),new _0xdf8958()),B(this,'_pluginMap',new Map()),B(this,'_internalWebWorker',null),this['_init']();}get[_0xcdc2b4(0x13c)](){const _0x2753ad=_0xcdc2b4;return this['_historyUniver$'][_0x2753ad(0xe0)];}[_0xcdc2b4(0x135)](){const _0x34dfc0=_0xcdc2b4;this[_0x34dfc0(0xf8)](),this['_initPlugins']();}[_0xcdc2b4(0xf8)](){const _0x3ecb2b=_0xcdc2b4;var _0x5630ac;let _0x2b715d=(_0x5630ac=this[_0x3ecb2b(0x196)][_0x3ecb2b(0x132)](_0x3ecb2b(0x188)))==null?_0x3ecb2b(0xdd):_0x5630ac,_0x20ff09=document[_0x3ecb2b(0xe2)](_0x2b715d);if(!_0x20ff09)return;let _0x1e1da8=document[_0x3ecb2b(0x167)](_0x3ecb2b(0x151));_0x1e1da8['id']=W,_0x1e1da8[_0x3ecb2b(0x18b)]['uComp']=_0x3ecb2b(0x137),_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x118)]=_0x3ecb2b(0xf4),_0x1e1da8[_0x3ecb2b(0x156)]['top']='0',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x152)]='0',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0xec)]=_0x3ecb2b(0xe1),_0x1e1da8['style'][_0x3ecb2b(0x16d)]=_0x3ecb2b(0xe1),_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x163)]='49',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x193)]='none',_0x20ff09[_0x3ecb2b(0xe6)](_0x1e1da8);}['_initPlugins'](){const _0x2f7899=_0xcdc2b4;[[_0x5ca134],[_0xcdede4,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a5ccb,null]]}],[_0x5d653c],[_0x31cee7,{'override':[[_0x2c5d90,null]]}],[_0x4207ab,{'hasScroll':!0x1}],[_0x2f1d3c],[_0x3a9855],[_0x378801,{'notExecuteFormula':!0x0}],[_0xcbda01],[_0xfa733f],[_0x259d1d],[_0x5da1ee],[_0x23d63a],[_0x48df9e],[_0x340c42],[_0x1e1912],[_0x11d274],[_0xf41737],[_0x120848],[_0x23e1f],[_0x58d9d5],[_0x3062e1,{'notExecuteFormula':!0x0}],[_0xc4d22],[_0x4c2ce8],[_0x358df3],[_0x213647],[_0x306685],[_0x443143],[_0xa87e1e],[_0x580e7a],[_0x1e4282],[_0x564745,{'notExecuteFormula':!0x0}],[_0xe59839]][_0x2f7899(0x155)](([_0x2d67e3,_0x2dc3b3])=>this['registerPlugin'](_0x2d67e3,_0x2dc3b3));}[_0xcdc2b4(0x108)](){const _0x1f84f3=_0xcdc2b4;super['dispose'](),this[_0x1f84f3(0x199)](),this[_0x1f84f3(0x172)][_0x1f84f3(0x144)]();}[_0xcdc2b4(0xed)](_0x25cf73,_0xc4efb8,_0x6ffcd0){const _0x330dc7=_0xcdc2b4;if(this['_pluginMap'][_0x330dc7(0xde)](_0x25cf73[_0x330dc7(0x17e)])&&!_0x6ffcd0)throw Error(_0x330dc7(0xf3)+_0x25cf73['pluginName']+_0x330dc7(0x12b));this['_pluginMap'][_0x330dc7(0x162)](_0x25cf73['pluginName'],[_0x25cf73,_0xc4efb8]);}[_0xcdc2b4(0x186)](){return Array['from'](this['_pluginMap']['values']());}['mountHistoryContent'](_0x27a638,_0x4a0771){const _0x41f623=_0xcdc2b4;let _0x3da387=document[_0x41f623(0xe2)](W);_0x3da387&&(_0x3da387[_0x41f623(0x156)][_0x41f623(0x193)]='block',this[_0x41f623(0x19b)](_0x27a638,W,_0x4a0771));}[_0xcdc2b4(0x199)](){const _0x534da6=_0xcdc2b4;var _0x510b66;this['_disposableCollection'][_0x534da6(0x108)](),(_0x510b66=this[_0x534da6(0x13c)])==null||_0x510b66[_0x534da6(0x108)](),this[_0x534da6(0x17d)][_0x534da6(0x143)](null);let _0x2e1f86=document[_0x534da6(0xe2)](W);_0x2e1f86&&(_0x2e1f86['style'][_0x534da6(0x193)]='none',this[_0x534da6(0x18c)]&&(this[_0x534da6(0x18c)]['terminate'](),this[_0x534da6(0x18c)]=null));}['_initUniver'](_0x37e744,_0x394ca2,_0x1e5a87){const _0x18fd9a=_0xcdc2b4;var _0x22e419,_0x17031e,_0x4dbe79,_0x4c3a5e,_0x4320c2;if(this[_0x18fd9a(0x13c)])return;let _0xec05d1=new _0x1792d9({'locales':{[this[_0x18fd9a(0x197)]['getCurrentLocale']()]:this[_0x18fd9a(0x197)][_0x18fd9a(0xf7)]()},'override':[[_0x580551,{'useClass':_0x25c273}]]}),_0x44573c=_0xec05d1['__getInjector']();this['disposeWithMe'](this[_0x18fd9a(0x13b)]['darkMode$']['subscribe'](_0x568338=>{const _0x462444=_0x18fd9a;_0x44573c['get'](_0x3616cc)[_0x462444(0x107)](_0x568338);})),this[_0x18fd9a(0x169)](this[_0x18fd9a(0x13b)]['currentTheme$'][_0x18fd9a(0x183)](_0x30b876=>{const _0x1c953b=_0x18fd9a;_0x44573c[_0x1c953b(0x16b)](_0x3616cc)['setTheme'](_0x30b876);})),_0x44573c[_0x18fd9a(0x16b)](_0x5146f1)['setLocale'](this[_0x18fd9a(0x197)][_0x18fd9a(0x142)]()),_0x44573c[_0x18fd9a(0x16b)](_0x2bc188)[_0x18fd9a(0x182)](_0x1d4dca,this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x1d4dca));let _0x5c0f66=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x4df753);_0x5c0f66&&_0xec05d1[_0x18fd9a(0xed)](_0x13b78b,{'license':_0x5c0f66['ls']});let _0x51da79=(_0x22e419=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x22e419['workerURL'],_0x5b22e6=!!_0x51da79;_0x5b22e6&&(this[_0x18fd9a(0x18c)]=_0x51da79 instanceof Worker?_0x51da79:null,_0xec05d1[_0x18fd9a(0xed)](_0x55c6e8,{'workerURL':_0x51da79})),this[_0x18fd9a(0x172)][_0x18fd9a(0x155)](([_0x577c94,_0x3ba033])=>{const _0x165266=_0x18fd9a;_0xec05d1[_0x165266(0xed)](_0x577c94,_0x3ba033);}),_0xec05d1[_0x18fd9a(0xed)](_0x16af9f,{'historyListServerUrl':(_0x17031e=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)]('edit-history-loader.config'))==null?void 0x0:_0x17031e[_0x18fd9a(0x111)],'historyPanelComponentKey':(_0x4dbe79=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4dbe79[_0x18fd9a(0x105)],'historyPanelHidden':(_0x4c3a5e=this['_configService'][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4c3a5e[_0x18fd9a(0x16e)],'historyAIassistantEnabled':(_0x4320c2=this['_configService'][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4320c2[_0x18fd9a(0xfe)]}),_0x44573c[_0x18fd9a(0xeb)](_0x2c9120=>{const _0x23a3e=_0x18fd9a;this[_0x23a3e(0x100)](_0x2c9120,_0x37e744);}),this[_0x18fd9a(0x17d)][_0x18fd9a(0x143)](_0xec05d1);let _0x14b570=_0x44573c['get'](_0x3f326a),_0x5afa41=this[_0x18fd9a(0x124)](_0x37e744),_0xd225b7=()=>{_0x1e5a87?_0x14b570['triggerCustomVersions'](_0x37e744,_0x394ca2,_0x5afa41,_0x1e5a87):_0x14b570['triggerLoadVersions'](_0x37e744,_0x394ca2,_0x5afa41);};if(this[_0x18fd9a(0xe3)]['show']({'content':this[_0x18fd9a(0x197)]['t'](_0x18fd9a(0x136)),'type':_0x5c4b9d['Loading']}),_0x5b22e6)try{_0x44573c[_0x18fd9a(0x16b)](_0x1f2f8c)['whenReady']()[_0x18fd9a(0x198)](()=>{_0xd225b7();});}catch{_0xd225b7();}else _0xd225b7();}[_0xcdc2b4(0x100)](_0x3c861c,_0x2cb854){const _0x16fa02=_0xcdc2b4;let _0x45da8e=_0x3c861c['get'](_0x3f326a);this[_0x16fa02(0x106)]['add'](_0x45da8e[_0x16fa02(0x177)][_0x16fa02(0x183)](_0x2ce6d6=>{const _0x7dcbef=_0x16fa02;switch(_0x2ce6d6){case _0x509d16[_0x7dcbef(0x113)]:this[_0x7dcbef(0x147)][_0x7dcbef(0x174)](),this[_0x7dcbef(0x133)][_0x7dcbef(0x173)]();break;case _0x509d16[_0x7dcbef(0x148)]:this['_commandService'][_0x7dcbef(0x18e)](q['id']),this[_0x7dcbef(0x199)]();break;case _0x509d16[_0x7dcbef(0x139)]:this[_0x7dcbef(0x199)](),this[_0x7dcbef(0xe3)][_0x7dcbef(0x15d)]({'content':this[_0x7dcbef(0x197)]['t'](_0x7dcbef(0x10b)),'type':_0x5c4b9d[_0x7dcbef(0x139)],'duration':0xbb8});break;default:break;}})),this[_0x16fa02(0x106)][_0x16fa02(0x171)](_0x45da8e[_0x16fa02(0x11b)]['subscribe'](async _0x4fe14b=>{const _0x151495=_0x16fa02;_0x4fe14b&&this[_0x151495(0x146)]['executeCommand'](_0x5069ca['id'],{'unitId':_0x2cb854,'revision':_0x4fe14b});}));}['_checkCanRevert'](_0x34f91b){const _0x2079ef=_0xcdc2b4;let _0x204c33=this[_0x2079ef(0x10a)][_0x2079ef(0x126)](_0x34f91b)[_0x2079ef(0x10f)]()['map'](_0x4a70de=>_0x4a70de[_0x2079ef(0x14e)]()),_0x294ea1=new _0x131768(_0x34f91b)['id'],_0x41778e=_0x204c33[_0x2079ef(0x16c)](_0x3841f9=>new _0x51fdf5(_0x34f91b,_0x3841f9)['id']),_0x55d06e=_0x204c33[_0x2079ef(0x16c)](_0x492464=>this[_0x2079ef(0xea)][_0x2079ef(0x103)](_0x34f91b,_0x492464)['map'](_0x1277c9=>new _0x24d965(_0x34f91b,_0x492464,_0x1277c9[_0x2079ef(0x185)])['id']))[_0x2079ef(0xfd)](),_0x49155b=new _0x41ee57(_0x34f91b)['id'];return this['_permissionService'][_0x2079ef(0x119)]([_0x294ea1,..._0x41778e,..._0x55d06e,_0x49155b])['every'](_0x11090b=>!!_0x11090b[_0x2079ef(0xe0)]);}};G=H([V(0x0,_0x501869(_0x5146f1)),V(0x1,_0x5d2eb8),V(0x2,_0x2bc188),V(0x3,_0xc4feca),V(0x4,_0x578fd8),V(0x5,_0x32b568),V(0x6,_0x501869(_0x152aea)),V(0x7,_0x501869(_0x3a5ccb)),V(0x8,_0x501869(_0xef72e6)),V(0x9,_0x501869(_0x3616cc))],G);const K={'id':_0xcdc2b4(0x128),'type':_0x2d66d6[_0xcdc2b4(0x158)],'handler':_0x1aa51b=>{const _0x2110bb=_0xcdc2b4;let _0x28a583=_0x1aa51b[_0x2110bb(0x16b)](G),{unitId:_0x5b6c9d}=_0x12470b(_0x1aa51b[_0x2110bb(0x16b)](_0x5d2eb8))||{};return _0x5b6c9d?(_0x28a583[_0x2110bb(0x161)](_0x5b6c9d),!0x0):!0x1;}},q={'id':_0xcdc2b4(0x12e),'type':_0x2d66d6['OPERATION'],'handler':()=>!0x0};var ct=_0xcdc2b4(0x10c),lt='0.18.0';function ut(_0x2baa05){const _0x3cfa87=_0xcdc2b4;return{'id':K['id'],'type':_0xdd9b57['BUTTON'],'icon':'HistoryIcon','tooltip':_0x3cfa87(0xe5),'hidden$':_0x6e3619(_0x2baa05,_0x2286ef[_0x3cfa87(0xdb)]),'disabled$':_0x5971c4(_0x2baa05,{'workbookTypes':[_0x131768,_0x1b94b8],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x37f545[_0xcdc2b4(0x15b)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x1ddce9{constructor(_0x208949,_0x50286a,_0x454ce5,_0x43a472,_0xd39a08,_0x5dcd9a,_0x2f1a41,_0x4f3b3e,_0x49130f,_0x4f88f8,_0x194a80){const _0x5def78=_0xcdc2b4;super(),this[_0x5def78(0x146)]=_0x208949,this[_0x5def78(0xef)]=_0x50286a,this[_0x5def78(0x178)]=_0x454ce5,this['_historyManagerService']=_0x43a472,this[_0x5def78(0x197)]=_0xd39a08,this['_messageService']=_0x5dcd9a,this[_0x5def78(0x11f)]=_0x2f1a41,this[_0x5def78(0x195)]=_0x4f3b3e,this['_dataLoaderService']=_0x49130f,this[_0x5def78(0x10a)]=_0x4f88f8,this['_urlService']=_0x194a80,B(this,_0x5def78(0x10d),null),this[_0x5def78(0x135)]();}[_0xcdc2b4(0x135)](){const _0x235007=_0xcdc2b4;[K,q][_0x235007(0x155)](_0x614245=>this['disposeWithMe'](_0x158d14(this[_0x235007(0x146)][_0x235007(0x14b)](_0x614245)))),this[_0x235007(0x169)](this['_componentManager'][_0x235007(0x15c)](_0x235007(0x168),_0x1c442a)),this[_0x235007(0xef)][_0x235007(0x102)](dt),this[_0x235007(0x169)](this['_commandService']['onCommandExecuted'](async(_0x10a041,_0x10e518)=>{const _0x4e9340=_0x235007;if(_0x10a041['id']===_0x5069ca['id']){let {unitId:_0x3552e5}=_0x10a041[_0x4e9340(0x11d)];this[_0x4e9340(0xe3)][_0x4e9340(0x15d)]({'content':this[_0x4e9340(0x197)]['t'](_0x4e9340(0x14d)),'type':_0x5c4b9d['Loading'],'duration':0x1388});let _0x31537e=this['_collaborationController']['getCollabEntity'](_0x3552e5);_0x10e518!=null&&_0x10e518[_0x4e9340(0xf0)]?this['_handleRevertAcknowledgement'](_0x31537e,async()=>(setTimeout(()=>window['location'][_0x4e9340(0x18a)]()),!0x0),!0x0):this[_0x4e9340(0x110)](_0x31537e,async()=>{const _0x2735c7=_0x4e9340;let _0x48dab9=this[_0x2735c7(0x10a)][_0x2735c7(0x191)](_0x526e34[_0x2735c7(0xdb)]),_0x568e8a=_0x48dab9==null?void 0x0:_0x48dab9[_0x2735c7(0x13f)]();if(!_0x568e8a)return!0x1;this[_0x2735c7(0x10a)][_0x2735c7(0x19c)](_0x3552e5);let _0x2ad4e4=await this['_dataLoaderService'][_0x2735c7(0x13e)](_0x3552e5,_0x526e34[_0x2735c7(0xdb)]);return _0x2ad4e4&&_0x2ad4e4 instanceof _0x4fb4cf?(await this['_setupSubUnitSync'](_0x2ad4e4,_0x568e8a[_0x2735c7(0x14e)]()),!0x0):!0x1;});}}));}[_0xcdc2b4(0x110)](_0x307983,_0x4cc53f,_0xccd829=!0x1){const _0x59e25d=_0xcdc2b4;let _0x202645=_0x1ff757([_0x307983[_0x59e25d(0x157)][_0x59e25d(0x159)],_0x307983[_0x59e25d(0xe4)]])[_0x59e25d(0x183)](async([_0x590efd,_0x5b66d4])=>{const _0x26e138=_0x59e25d;if(_0x590efd[_0x26e138(0x11a)]===_0x430f66[_0x26e138(0x192)]&&(_0x5b66d4==null?void 0x0:_0x5b66d4['status'])===_0x38b07e[_0x26e138(0xfb)]&&_0x590efd['data'][_0x26e138(0x11e)]['some'](_0x4746f4=>_0x4746f4['id']===_0x5069ca['id'])&&await _0x4cc53f()){var _0x1b16c8;this[_0x26e138(0xf9)][_0x26e138(0x199)](),_0x202645[_0x26e138(0x129)](),this['_revertErrorTimer']&&clearTimeout(this[_0x26e138(0x10d)]),await((_0x1b16c8=this['_localCacheService'])==null?void 0x0:_0x1b16c8[_0x26e138(0x15e)]()),this[_0x26e138(0xe3)]['removeAll']();}});_0xccd829&&(this[_0x59e25d(0x10d)]=setTimeout(()=>{const _0x1cae4e=_0x59e25d;_0x202645[_0x1cae4e(0x129)](),this['_messageService'][_0x1cae4e(0x15d)]({'content':this[_0x1cae4e(0x197)]['t'](_0x1cae4e(0x184)),'type':_0x5c4b9d[_0x1cae4e(0x139)],'duration':0xbb8});},0x1388));}async[_0xcdc2b4(0xf6)](_0x345ff2,_0x274046){const _0x5e71fe=_0xcdc2b4;await this['_updateSubUnitFromURLParams'](_0x345ff2,_0x274046),_0x345ff2[_0x5e71fe(0x104)][_0x5e71fe(0x145)](_0x118b8c(this[_0x5e71fe(0xe8)]))[_0x5e71fe(0x183)](_0x495054=>{const _0x283764=_0x5e71fe;_0x495054&&this[_0x283764(0xfc)](_0x495054);}),this[_0x5e71fe(0xfa)][_0x5e71fe(0x12f)][_0x5e71fe(0x145)](_0x118b8c(this[_0x5e71fe(0xe8)]))[_0x5e71fe(0x183)](()=>this[_0x5e71fe(0x122)](_0x345ff2,_0x274046));}[_0xcdc2b4(0xfc)](_0x298ba0,_0x5d054f=!0x1){const _0x1b8bf7=_0xcdc2b4;let _0x9a5ad8=this[_0x1b8bf7(0xfa)][_0x1b8bf7(0x114)](_0x1b8bf7(0x13a));_0x298ba0[_0x1b8bf7(0x14e)]()!==_0x9a5ad8&&this[_0x1b8bf7(0xfa)]['setParam'](_0x1b8bf7(0x13a),_0x298ba0[_0x1b8bf7(0x14e)](),_0x5d054f);}async[_0xcdc2b4(0x122)](_0x1cbc45,_0x21b980){const _0x5c19ca=_0xcdc2b4;var _0x2622ac;if(!_0x21b980||!_0x1cbc45['getSheetBySheetId'](_0x21b980)){let _0x2eca78=_0x1cbc45[_0x5c19ca(0x14f)]()[0x0],_0x7d9a21=_0x1cbc45['getSheetBySheetId'](_0x2eca78);if(!_0x7d9a21)return;this[_0x5c19ca(0xfc)](_0x7d9a21,!0x0),await this['_commandService'][_0x5c19ca(0x18e)](_0x551a6e['id'],{'unitId':_0x1cbc45[_0x5c19ca(0x17f)](),'subUnitId':_0x2eca78});return;}((_0x2622ac=_0x1cbc45[_0x5c19ca(0x13f)]())==null?void 0x0:_0x2622ac[_0x5c19ca(0x14e)]())!==_0x21b980&&await this[_0x5c19ca(0x146)][_0x5c19ca(0x18e)](_0x551a6e['id'],{'unitId':_0x1cbc45[_0x5c19ca(0x17f)](),'subUnitId':_0x21b980});}};function _0x576c(_0x16a0e7,_0x4ef57b){_0x16a0e7=_0x16a0e7-0xdb;const _0x3a8074=_0x3a80();let _0x576cce=_0x3a8074[_0x16a0e7];return _0x576cce;}J=H([V(0x0,_0xc4feca),V(0x1,_0x5c69e0),V(0x2,_0x501869(_0x5e54c4)),V(0x3,_0x501869(G)),V(0x4,_0x501869(_0x5146f1)),V(0x5,_0x578fd8),V(0x6,_0x501869(_0x3f3fcc)),V(0x7,_0x15191f),V(0x8,_0x501869(_0x200401)),V(0x9,_0x5d2eb8),V(0xa,_0xc78038)],J);const Y=_0xcdc2b4(0x14c);let X=class extends _0x2fbf81{constructor(_0x4e0033,_0x91d1de,_0x1cd060,_0x58606f,_0x2c6738,_0x594168,_0x48b44e,_0xd43cd9,_0x504550,_0x689f63){const _0x380b6f=_0xcdc2b4;super(),this[_0x380b6f(0x197)]=_0x4e0033,this[_0x380b6f(0x10a)]=_0x91d1de,this['_configService']=_0x1cd060,this[_0x380b6f(0x146)]=_0x58606f,this[_0x380b6f(0xe3)]=_0x2c6738,this['_permissionService']=_0x594168,this[_0x380b6f(0xea)]=_0x48b44e,this[_0x380b6f(0x147)]=_0xd43cd9,this[_0x380b6f(0x133)]=_0x504550,this[_0x380b6f(0x13b)]=_0x689f63,B(this,'_historyUniver$',new _0x4e9a7e(null)),B(this,_0x380b6f(0x101),this[_0x380b6f(0x17d)][_0x380b6f(0x120)]()),B(this,_0x380b6f(0x106),new _0xdf8958()),B(this,'_pluginMap',new Map()),B(this,'_internalWebWorker',null),this[_0x380b6f(0x135)]();}get[_0xcdc2b4(0x13c)](){const _0x1fd52e=_0xcdc2b4;return this[_0x1fd52e(0x17d)][_0x1fd52e(0xe0)];}['_init'](){const _0x39714f=_0xcdc2b4;this['_initContainer'](),this[_0x39714f(0x112)]();}['_initContainer'](){const _0x10aaa4=_0xcdc2b4;var _0x3f3abe;let _0x30e662=(_0x3f3abe=this['_configService'][_0x10aaa4(0x132)](_0x10aaa4(0x188)))==null?_0x10aaa4(0xdd):_0x3f3abe,_0x1c074f=document[_0x10aaa4(0xe2)](_0x30e662);if(!_0x1c074f)return;let _0x90f691=document[_0x10aaa4(0x167)](_0x10aaa4(0x151));_0x90f691['id']=Y,_0x90f691[_0x10aaa4(0x18b)][_0x10aaa4(0x154)]=_0x10aaa4(0x137),_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x118)]=_0x10aaa4(0xf4),_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x134)]='0',_0x90f691['style'][_0x10aaa4(0x152)]='0',_0x90f691[_0x10aaa4(0x156)]['width']='100%',_0x90f691[_0x10aaa4(0x156)]['height']=_0x10aaa4(0xe1),_0x90f691['style'][_0x10aaa4(0x163)]='49',_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x193)]=_0x10aaa4(0xdf),_0x1c074f[_0x10aaa4(0xe6)](_0x90f691);}[_0xcdc2b4(0x112)](){const _0x4586b4=_0xcdc2b4;[[_0x5ca134],[_0x4bfa13,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a5ccb,null]]}],[_0x5d653c],[_0x31cee7,{'override':[[_0x2c5d90,null]]}],[_0x4207ab,{'hasScroll':!0x1}],[_0x2f1d3c],[_0x3a9855],[_0x378801,{'notExecuteFormula':!0x0}],[_0x25859c],[_0xfa733f],[_0x259d1d],[_0x5da1ee],[_0x23d63a],[_0x340c42],[_0x11d274],[_0xf41737],[_0x120848],[_0x23e1f],[_0x5de188],[_0x3062e1,{'notExecuteFormula':!0x0}],[_0xc4d22],[_0x4c2ce8],[_0x358df3],[_0x213647],[_0x306685],[_0x443143],[_0xa87e1e],[_0x580e7a],[_0x1e4282],[_0x564745,{'notExecuteFormula':!0x0}],[_0xe59839]][_0x4586b4(0x155)](([_0x4ef21c,_0x1cf992])=>this[_0x4586b4(0xed)](_0x4ef21c,_0x1cf992));}[_0xcdc2b4(0x108)](){const _0xdc119b=_0xcdc2b4;super[_0xdc119b(0x108)](),this[_0xdc119b(0x199)](),this[_0xdc119b(0x172)][_0xdc119b(0x144)]();}['registerPlugin'](_0x148daa,_0x28bb54,_0x3e49a7){const _0x4833c3=_0xcdc2b4;if(this['_pluginMap'][_0x4833c3(0xde)](_0x148daa[_0x4833c3(0x17e)])&&!_0x3e49a7)throw Error(_0x4833c3(0x11c)+_0x148daa[_0x4833c3(0x17e)]+_0x4833c3(0x12b));this[_0x4833c3(0x172)][_0x4833c3(0x162)](_0x148daa[_0x4833c3(0x17e)],[_0x148daa,_0x28bb54]);}[_0xcdc2b4(0x186)](){const _0xe90430=_0xcdc2b4;return Array[_0xe90430(0x12d)](this[_0xe90430(0x172)][_0xe90430(0x187)]());}[_0xcdc2b4(0x161)](_0xd35454,_0x148e97){const _0x56764a=_0xcdc2b4;let _0x57a5e6=document['getElementById'](Y);_0x57a5e6&&(_0x57a5e6['style'][_0x56764a(0x193)]='block',this['_initUniver'](_0xd35454,Y,_0x148e97));}['unMountHistoryContent'](){const _0x5ad560=_0xcdc2b4;var _0x17bf73;this['_disposableCollection'][_0x5ad560(0x108)](),(_0x17bf73=this[_0x5ad560(0x13c)])==null||_0x17bf73[_0x5ad560(0x108)](),this[_0x5ad560(0x17d)][_0x5ad560(0x143)](null);let _0xcfa96f=document[_0x5ad560(0xe2)](Y);_0xcfa96f&&(_0xcfa96f[_0x5ad560(0x156)][_0x5ad560(0x193)]=_0x5ad560(0xdf),this['_internalWebWorker']&&(this[_0x5ad560(0x18c)][_0x5ad560(0x121)](),this[_0x5ad560(0x18c)]=null));}[_0xcdc2b4(0x19b)](_0x12174d,_0x49f086,_0x105b81){const _0x1fa3ef=_0xcdc2b4;var _0x3ac14d,_0x1a60de,_0x728ba0,_0x38eb80;if(this[_0x1fa3ef(0x13c)])return;let _0x273226=new _0x1792d9({'locales':{[this[_0x1fa3ef(0x197)][_0x1fa3ef(0x142)]()]:this[_0x1fa3ef(0x197)][_0x1fa3ef(0xf7)]()},'override':[[_0x580551,{'useClass':_0x25c273}]]}),_0x51e8e1=_0x273226[_0x1fa3ef(0x165)]();this['disposeWithMe'](this[_0x1fa3ef(0x13b)][_0x1fa3ef(0x123)][_0x1fa3ef(0x183)](_0x154bbe=>{const _0x2c1822=_0x1fa3ef;_0x51e8e1['get'](_0x3616cc)[_0x2c1822(0x107)](_0x154bbe);})),this[_0x1fa3ef(0x169)](this['_themeService'][_0x1fa3ef(0xdc)][_0x1fa3ef(0x183)](_0x393642=>{const _0x5c7ecb=_0x1fa3ef;_0x51e8e1[_0x5c7ecb(0x16b)](_0x3616cc)[_0x5c7ecb(0x180)](_0x393642);})),_0x51e8e1[_0x1fa3ef(0x16b)](_0x5146f1)['setLocale'](this[_0x1fa3ef(0x197)]['getCurrentLocale']()),_0x51e8e1[_0x1fa3ef(0x16b)](_0x2bc188)['setConfig'](_0x1d4dca,this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x1d4dca));let _0x31672b=this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x4df753);_0x31672b&&_0x273226['registerPlugin'](_0x13b78b,{'license':_0x31672b['ls']});let _0x40cf32=(_0x3ac14d=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3ac14d[_0x1fa3ef(0x18d)],_0x29ea60=!!_0x40cf32;_0x29ea60&&(this[_0x1fa3ef(0x18c)]=_0x40cf32 instanceof Worker?_0x40cf32:null,_0x273226[_0x1fa3ef(0xed)](_0x55c6e8,{'workerURL':_0x40cf32})),this[_0x1fa3ef(0x172)]['forEach'](([_0x34343e,_0xd50e05])=>{_0x273226['registerPlugin'](_0x34343e,_0xd50e05);}),_0x273226[_0x1fa3ef(0xed)](_0xa47d47,{'historyListServerUrl':(_0x1a60de=this[_0x1fa3ef(0x196)]['getConfig'](_0x1fa3ef(0x131)))==null?void 0x0:_0x1a60de['historyListServerUrl'],'historyPanelComponentKey':(_0x728ba0=this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x1fa3ef(0x131)))==null?void 0x0:_0x728ba0[_0x1fa3ef(0x105)],'historyPanelHidden':(_0x38eb80=this[_0x1fa3ef(0x196)]['getConfig'](_0x1fa3ef(0x131)))==null?void 0x0:_0x38eb80[_0x1fa3ef(0x16e)]}),_0x51e8e1['invoke'](_0x2a32a3=>{const _0x1f3349=_0x1fa3ef;this[_0x1f3349(0x100)](_0x2a32a3,_0x12174d);}),this[_0x1fa3ef(0x17d)][_0x1fa3ef(0x143)](_0x273226);let _0x38eed9=_0x51e8e1[_0x1fa3ef(0x16b)](_0x3f326a),_0x36719a=this[_0x1fa3ef(0x124)](_0x12174d),_0x2f650c=()=>{const _0x51e462=_0x1fa3ef;_0x105b81?_0x38eed9[_0x51e462(0x115)](_0x12174d,_0x49f086,_0x36719a,_0x105b81):_0x38eed9[_0x51e462(0xf5)](_0x12174d,_0x49f086,_0x36719a);};if(this[_0x1fa3ef(0xe3)]['show']({'content':this[_0x1fa3ef(0x197)]['t'](_0x1fa3ef(0x136)),'type':_0x5c4b9d[_0x1fa3ef(0x12a)]}),_0x29ea60)try{_0x51e8e1[_0x1fa3ef(0x16b)](_0x1f2f8c)['whenReady']()[_0x1fa3ef(0x198)](()=>{_0x2f650c();});}catch{_0x2f650c();}else _0x2f650c();}[_0xcdc2b4(0x100)](_0x2667df,_0x42febb){const _0x254802=_0xcdc2b4;let _0xa1a8ec=_0x2667df[_0x254802(0x16b)](_0x3f326a);this[_0x254802(0x106)][_0x254802(0x171)](_0xa1a8ec[_0x254802(0x177)][_0x254802(0x183)](_0x562ec1=>{const _0x53cee0=_0x254802;switch(_0x562ec1){case _0x509d16[_0x53cee0(0x113)]:this[_0x53cee0(0x147)][_0x53cee0(0x174)](),this[_0x53cee0(0x133)][_0x53cee0(0x173)]();break;case _0x509d16[_0x53cee0(0x148)]:this[_0x53cee0(0x146)]['executeCommand'](q['id']),this[_0x53cee0(0x199)]();break;case _0x509d16['Error']:this[_0x53cee0(0x199)](),this[_0x53cee0(0xe3)][_0x53cee0(0x15d)]({'content':this[_0x53cee0(0x197)]['t'](_0x53cee0(0x10b)),'type':_0x5c4b9d[_0x53cee0(0x139)],'duration':0xbb8});break;default:break;}})),this[_0x254802(0x106)][_0x254802(0x171)](_0xa1a8ec[_0x254802(0x11b)][_0x254802(0x183)](async _0x1c7021=>{const _0xb97c38=_0x254802;_0x1c7021&&this[_0xb97c38(0x146)]['executeCommand'](_0x5069ca['id'],{'unitId':_0x42febb,'revision':_0x1c7021});}));}[_0xcdc2b4(0x124)](_0x405178){const _0x5e3dd7=_0xcdc2b4;let _0x1e7fc3=this['_univerInstanceService'][_0x5e3dd7(0x126)](_0x405178)[_0x5e3dd7(0x10f)]()[_0x5e3dd7(0x16c)](_0x83bfbd=>_0x83bfbd[_0x5e3dd7(0x14e)]()),_0x5e63f2=new _0x131768(_0x405178)['id'],_0xfc9c9c=_0x1e7fc3['map'](_0x3fd35e=>new _0x51fdf5(_0x405178,_0x3fd35e)['id']),_0x574b1a=_0x1e7fc3[_0x5e3dd7(0x16c)](_0x5e8aa5=>this[_0x5e3dd7(0xea)][_0x5e3dd7(0x103)](_0x405178,_0x5e8aa5)[_0x5e3dd7(0x16c)](_0x3c04de=>new _0x24d965(_0x405178,_0x5e8aa5,_0x3c04de[_0x5e3dd7(0x185)])['id']))['flat'](),_0x2205f0=new _0x41ee57(_0x405178)['id'];return this[_0x5e3dd7(0x18f)][_0x5e3dd7(0x119)]([_0x5e63f2,..._0xfc9c9c,..._0x574b1a,_0x2205f0])[_0x5e3dd7(0x164)](_0x322628=>!!_0x322628[_0x5e3dd7(0xe0)]);}};X=H([V(0x0,_0x501869(_0x5146f1)),V(0x1,_0x5d2eb8),V(0x2,_0x2bc188),V(0x3,_0xc4feca),V(0x4,_0x578fd8),V(0x5,_0x32b568),V(0x6,_0x501869(_0x152aea)),V(0x7,_0x501869(_0x3a5ccb)),V(0x8,_0x501869(_0xef72e6)),V(0x9,_0x501869(_0x3616cc))],X);let Z=class extends _0x5d4f75{constructor(_0xe06082=R,_0xec05a,_0x355176){const _0x33df08=_0xcdc2b4;super(),this['_config']=_0xe06082,this['_injector']=_0xec05a,this[_0x33df08(0x196)]=_0x355176;let {menu:_0x2e5fed,..._0x429e86}=_0x462db5({},R,this[_0x33df08(0x149)]);_0x2e5fed&&this[_0x33df08(0x196)][_0x33df08(0x182)](_0x33df08(0x10e),_0x2e5fed,{'merge':!0x0}),this[_0x33df08(0x196)][_0x33df08(0x182)](L,_0x429e86),this[_0x33df08(0x149)]['univerContainerId']&&this[_0x33df08(0x196)][_0x33df08(0x182)](_0x33df08(0x188),this[_0x33df08(0x149)][_0x33df08(0xf1)]);}['onStarting'](){const _0x3d6424=_0xcdc2b4;[[G,{'useClass':X}],[J]][_0x3d6424(0x155)](_0x53c94d=>this[_0x3d6424(0xe7)]['add'](_0x53c94d));}[_0xcdc2b4(0x170)](){const _0x5f257c=_0xcdc2b4;this[_0x5f257c(0xe7)]['get'](J);}};B(Z,_0xcdc2b4(0x141),_0x2286ef[_0xcdc2b4(0x190)]),B(Z,_0xcdc2b4(0x17e),_0xcdc2b4(0xee)),B(Z,_0xcdc2b4(0x138),ct),B(Z,_0xcdc2b4(0x17b),lt),Z=H([_0x299295(_0x13b78b),V(0x1,_0x501869(_0x39260c)),V(0x2,_0x2bc188)],Z);let Q=class extends _0x1ddce9{constructor(_0x545eeb,_0x40aaf4,_0x28a1a6,_0x2e910d,_0x4ca0cc,_0x585b3f,_0x55a707,_0x15e9d7,_0x46984f,_0x741175,_0x5728d5){const _0x2c2633=_0xcdc2b4;super(),this[_0x2c2633(0x146)]=_0x545eeb,this[_0x2c2633(0xef)]=_0x40aaf4,this[_0x2c2633(0x178)]=_0x28a1a6,this['_historyManagerService']=_0x2e910d,this['_localeService']=_0x4ca0cc,this[_0x2c2633(0xe3)]=_0x585b3f,this[_0x2c2633(0x11f)]=_0x55a707,this['_localCacheService']=_0x15e9d7,this[_0x2c2633(0x15a)]=_0x46984f,this['_univerInstanceService']=_0x741175,this[_0x2c2633(0xfa)]=_0x5728d5,B(this,_0x2c2633(0x10d),null),this[_0x2c2633(0x135)]();}['_init'](){const _0x47a832=_0xcdc2b4;[K,q]['forEach'](_0xb8c6a3=>this[_0x47a832(0x169)](_0x158d14(this[_0x47a832(0x146)][_0x47a832(0x14b)](_0xb8c6a3)))),this[_0x47a832(0x169)](this['_componentManager'][_0x47a832(0x15c)](_0x47a832(0x168),_0x1c442a)),this['_menuManagerService']['mergeMenu'](dt),this['disposeWithMe'](this[_0x47a832(0x146)]['onCommandExecuted'](async(_0x5650ed,_0x5b3f86)=>{const _0x3e4e6b=_0x47a832;if(_0x5650ed['id']===_0x5069ca['id']){let {unitId:_0x1070a8}=_0x5650ed[_0x3e4e6b(0x11d)];this[_0x3e4e6b(0xe3)][_0x3e4e6b(0x15d)]({'content':this[_0x3e4e6b(0x197)]['t'](_0x3e4e6b(0x14d)),'type':_0x5c4b9d[_0x3e4e6b(0x12a)],'duration':0x1388});let _0x171430=this['_collaborationController'][_0x3e4e6b(0xff)](_0x1070a8);_0x5b3f86!=null&&_0x5b3f86[_0x3e4e6b(0xf0)]?this[_0x3e4e6b(0x110)](_0x171430,async()=>(setTimeout(()=>window[_0x3e4e6b(0x12c)][_0x3e4e6b(0x18a)]()),!0x0),!0x0):this[_0x3e4e6b(0x110)](_0x171430,async()=>{const _0x1a8cf9=_0x3e4e6b;let _0x206c37=this[_0x1a8cf9(0x10a)][_0x1a8cf9(0x191)](_0x526e34['UNIVER_SHEET']),_0x28ae7d=_0x206c37==null?void 0x0:_0x206c37[_0x1a8cf9(0x13f)]();if(!_0x28ae7d)return!0x1;this[_0x1a8cf9(0x10a)][_0x1a8cf9(0x19c)](_0x1070a8);let _0x1bf1bc=await this[_0x1a8cf9(0x15a)][_0x1a8cf9(0x13e)](_0x1070a8,_0x526e34['UNIVER_SHEET']);return _0x1bf1bc&&_0x1bf1bc instanceof _0x4fb4cf?(await this[_0x1a8cf9(0xf6)](_0x1bf1bc,_0x28ae7d[_0x1a8cf9(0x14e)]()),!0x0):!0x1;});}}));}[_0xcdc2b4(0x110)](_0x4fdcf3,_0x3beb2a,_0x2214b3=!0x1){const _0x56e5c7=_0xcdc2b4;let _0x104c63=_0x1ff757([_0x4fdcf3[_0x56e5c7(0x157)][_0x56e5c7(0x159)],_0x4fdcf3[_0x56e5c7(0xe4)]])[_0x56e5c7(0x183)](async([_0x694a0b,_0x8d93ee])=>{const _0x1ad04d=_0x56e5c7;if(_0x694a0b[_0x1ad04d(0x11a)]===_0x430f66[_0x1ad04d(0x192)]&&(_0x8d93ee==null?void 0x0:_0x8d93ee[_0x1ad04d(0x176)])===_0x38b07e['SYNCED']&&_0x694a0b['data']['mutations'][_0x1ad04d(0x14a)](_0xb805f=>_0xb805f['id']===_0x5069ca['id'])&&await _0x3beb2a()){var _0x11f87c;this[_0x1ad04d(0xf9)]['unMountHistoryContent'](),_0x104c63[_0x1ad04d(0x129)](),this[_0x1ad04d(0x10d)]&&clearTimeout(this['_revertErrorTimer']),await((_0x11f87c=this[_0x1ad04d(0x195)])==null?void 0x0:_0x11f87c['exhaustSavingTask']());}});_0x2214b3&&(this[_0x56e5c7(0x10d)]=setTimeout(()=>{const _0x552be6=_0x56e5c7;_0x104c63['unsubscribe'](),this[_0x552be6(0xe3)]['show']({'content':this[_0x552be6(0x197)]['t']('editHistory.panel.revertFailed'),'type':_0x5c4b9d[_0x552be6(0x139)],'duration':0xbb8});},0x1388));}async[_0xcdc2b4(0xf6)](_0x4b3188,_0x308750){const _0xfd97ce=_0xcdc2b4;await this['_updateSubUnitFromURLParams'](_0x4b3188,_0x308750),_0x4b3188['activeSheet$'][_0xfd97ce(0x145)](_0x118b8c(this[_0xfd97ce(0xe8)]))[_0xfd97ce(0x183)](_0xe39264=>{const _0x96855=_0xfd97ce;_0xe39264&&this[_0x96855(0xfc)](_0xe39264);}),this['_urlService'][_0xfd97ce(0x12f)]['pipe'](_0x118b8c(this[_0xfd97ce(0xe8)]))[_0xfd97ce(0x183)](()=>this['_updateSubUnitFromURLParams'](_0x4b3188,_0x308750));}['_updateURLWithCurrentState'](_0x327196,_0xd3c7dc=!0x1){const _0x317c3e=_0xcdc2b4;let _0x553f42=this['_urlService'][_0x317c3e(0x114)](_0x317c3e(0x13a));_0x327196[_0x317c3e(0x14e)]()!==_0x553f42&&this['_urlService'][_0x317c3e(0x175)]('subunit',_0x327196[_0x317c3e(0x14e)](),_0xd3c7dc);}async['_updateSubUnitFromURLParams'](_0x332d76,_0x1b07ca){const _0x6d942e=_0xcdc2b4;var _0x1dc14c;if(!_0x1b07ca||!_0x332d76[_0x6d942e(0x116)](_0x1b07ca)){let _0x22797d=_0x332d76['getUnhiddenWorksheets']()[0x0],_0x1c34e5=_0x332d76[_0x6d942e(0x116)](_0x22797d);if(!_0x1c34e5)return;this[_0x6d942e(0xfc)](_0x1c34e5,!0x0),await this[_0x6d942e(0x146)]['executeCommand'](_0x551a6e['id'],{'unitId':_0x332d76[_0x6d942e(0x17f)](),'subUnitId':_0x22797d});return;}((_0x1dc14c=_0x332d76[_0x6d942e(0x13f)]())==null?void 0x0:_0x1dc14c['getSheetId']())!==_0x1b07ca&&await this[_0x6d942e(0x146)][_0x6d942e(0x18e)](_0x551a6e['id'],{'unitId':_0x332d76[_0x6d942e(0x17f)](),'subUnitId':_0x1b07ca});}};Q=H([V(0x0,_0xc4feca),V(0x1,_0x5c69e0),V(0x2,_0x501869(_0x5e54c4)),V(0x3,_0x501869(G)),V(0x4,_0x501869(_0x5146f1)),V(0x5,_0x578fd8),V(0x6,_0x501869(_0x3f3fcc)),V(0x7,_0x15191f),V(0x8,_0x501869(_0x200401)),V(0x9,_0x5d2eb8),V(0xa,_0xc78038)],Q);let $=class extends _0x5d4f75{constructor(_0x2a6b70=R,_0x301b46,_0x539ca2){const _0x331eb1=_0xcdc2b4;super(),this['_config']=_0x2a6b70,this[_0x331eb1(0xe7)]=_0x301b46,this[_0x331eb1(0x196)]=_0x539ca2;let {menu:_0xf038cd,..._0x301c82}=_0x462db5({},R,this[_0x331eb1(0x149)]);_0xf038cd&&this[_0x331eb1(0x196)]['setConfig'](_0x331eb1(0x10e),_0xf038cd,{'merge':!0x0}),this[_0x331eb1(0x196)]['setConfig'](L,_0x301c82),this['_config'][_0x331eb1(0xf1)]&&this['_configService'][_0x331eb1(0x182)](U,this[_0x331eb1(0x149)][_0x331eb1(0xf1)]);}[_0xcdc2b4(0x109)](){const _0x2ea886=_0xcdc2b4;[[G],[Q]]['forEach'](_0x150556=>this[_0x2ea886(0xe7)][_0x2ea886(0x171)](_0x150556));}[_0xcdc2b4(0x170)](){const _0x10d906=_0xcdc2b4;this[_0x10d906(0xe7)]['get'](Q);}};B($,_0xcdc2b4(0x141),_0x2286ef[_0xcdc2b4(0x190)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,_0xcdc2b4(0x138),ct),B($,'version',lt),$=H([_0x299295(_0x13b78b),V(0x1,_0x501869(_0x39260c)),V(0x2,_0x2bc188)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuConfig } from '@univerjs/ui';
|
|
1
|
+
import type { MenuConfig } from '@univerjs/ui';
|
|
2
2
|
export declare const EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY = "edit-history-loader.config";
|
|
3
3
|
export declare const configSymbol: unique symbol;
|
|
4
4
|
export interface IUniverEditHistoryLoaderConfig {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IAccessor } from '@univerjs/core';
|
|
2
|
-
import { IMenuItem } from '@univerjs/ui';
|
|
1
|
+
import type { IAccessor } from '@univerjs/core';
|
|
2
|
+
import type { IMenuItem } from '@univerjs/ui';
|
|
3
3
|
export declare function ToggleEditHistoryMenuFactory(accessor: IAccessor): IMenuItem;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MenuSchemaType } from '@univerjs/ui';
|
|
1
|
+
import type { MenuSchemaType } from '@univerjs/ui';
|
|
2
2
|
export declare const menuSchema: MenuSchemaType;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CollaborationController, DataLoaderService, ILocalCacheService } from '@univerjs-pro/collaboration-client';
|
|
2
|
+
import { IURLService } from '@univerjs-pro/collaboration-client-ui';
|
|
3
|
+
import { ICommandService, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
4
|
+
import { ComponentManager, IMenuManagerService, IMessageService } from '@univerjs/ui';
|
|
5
|
+
import { HistoryLoaderService } from '../services/history-loader.service';
|
|
6
|
+
export declare class MobileHistoryLoaderController extends RxDisposable {
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
protected readonly _menuManagerService: IMenuManagerService;
|
|
9
|
+
private readonly _componentManager;
|
|
10
|
+
private readonly _historyManagerService;
|
|
11
|
+
private readonly _localeService;
|
|
12
|
+
private readonly _messageService;
|
|
13
|
+
private readonly _collaborationController;
|
|
14
|
+
private readonly _localCacheService;
|
|
15
|
+
private readonly _dataLoaderService;
|
|
16
|
+
private readonly _univerInstanceService;
|
|
17
|
+
private readonly _urlService;
|
|
18
|
+
private _revertErrorTimer;
|
|
19
|
+
constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService, _componentManager: ComponentManager, _historyManagerService: HistoryLoaderService, _localeService: LocaleService, _messageService: IMessageService, _collaborationController: CollaborationController, _localCacheService: ILocalCacheService, _dataLoaderService: DataLoaderService, _univerInstanceService: IUniverInstanceService, _urlService: IURLService);
|
|
20
|
+
private _init;
|
|
21
|
+
private _handleRevertAcknowledgement;
|
|
22
|
+
private _setupSubUnitSync;
|
|
23
|
+
private _updateURLWithCurrentState;
|
|
24
|
+
private _updateSubUnitFromURLParams;
|
|
25
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { ToggleEditHistoryOperation } from './command/history.operate';
|
|
2
2
|
export type { IUniverEditHistoryLoaderConfig } from './controllers/config.schema';
|
|
3
3
|
export { EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
|
|
4
|
+
export { UniverEditHistoryLoaderMobilePlugin } from './mobile-plugin';
|
|
4
5
|
export { UniverEditHistoryLoaderPlugin } from './plugin';
|
|
5
|
-
export { HistoryLoaderService } from './services/history-loader.service';
|
|
6
|
-
export {
|
|
6
|
+
export { HistoryLoaderService, UNIVER_CONTAINER_ID_KEY, UNIVER_HISTORY_CONTAINER_ID } from './services/history-loader.service';
|
|
7
|
+
export { MobileHistoryLoaderService } from './services/mobile-history-loader.service';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IUniverEditHistoryLoaderConfig } from './controllers/config.schema';
|
|
2
|
+
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
|
+
export declare class UniverEditHistoryLoaderMobilePlugin extends Plugin {
|
|
4
|
+
private readonly _config;
|
|
5
|
+
protected _injector: Injector;
|
|
6
|
+
private readonly _configService;
|
|
7
|
+
static type: UniverInstanceType;
|
|
8
|
+
static pluginName: string;
|
|
9
|
+
static packageName: string;
|
|
10
|
+
static version: string;
|
|
11
|
+
constructor(_config: Partial<IUniverEditHistoryLoaderConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
12
|
+
onStarting(): void;
|
|
13
|
+
onSteady(): void;
|
|
14
|
+
}
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUniverEditHistoryLoaderConfig } from './controllers/config.schema';
|
|
1
|
+
import type { IUniverEditHistoryLoaderConfig } from './controllers/config.schema';
|
|
2
2
|
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverEditHistoryLoaderPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PluginCtor
|
|
1
|
+
import type { PluginCtor } from '@univerjs/core';
|
|
2
|
+
import { Disposable, ICommandService, IConfigService, IPermissionService, IUniverInstanceService, LocaleService, ThemeService, Univer } from '@univerjs/core';
|
|
2
3
|
import { RangeProtectionRuleModel } from '@univerjs/sheets';
|
|
3
4
|
import { IDialogService, IMessageService, ISidebarService } from '@univerjs/ui';
|
|
4
5
|
export declare const DEFAULT_UNIVER_CONTAINER_ID = "univer-container";
|
|
@@ -16,7 +17,7 @@ export declare class HistoryLoaderService extends Disposable {
|
|
|
16
17
|
private readonly _sidebarService;
|
|
17
18
|
private readonly _themeService;
|
|
18
19
|
private _historyUniver$;
|
|
19
|
-
readonly historyUniver$: import(
|
|
20
|
+
readonly historyUniver$: import("rxjs").Observable<Univer | null>;
|
|
20
21
|
private _disposableCollection;
|
|
21
22
|
private _pluginMap;
|
|
22
23
|
private _internalWebWorker;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { PluginCtor } from '@univerjs/core';
|
|
2
|
+
import { Disposable, ICommandService, IConfigService, IPermissionService, IUniverInstanceService, LocaleService, ThemeService, Univer } from '@univerjs/core';
|
|
3
|
+
import { RangeProtectionRuleModel } from '@univerjs/sheets';
|
|
4
|
+
import { IDialogService, IMessageService, ISidebarService } from '@univerjs/ui';
|
|
5
|
+
export declare const DEFAULT_UNIVER_CONTAINER_ID = "univer-container";
|
|
6
|
+
export declare const UNIVER_CONTAINER_ID_KEY = "UNIVER_CONTAINER_ID";
|
|
7
|
+
export declare const UNIVER_HISTORY_CONTAINER_ID = "univer-history-container-mobile";
|
|
8
|
+
export declare class MobileHistoryLoaderService extends Disposable {
|
|
9
|
+
private readonly _localeService;
|
|
10
|
+
private readonly _univerInstanceService;
|
|
11
|
+
private readonly _configService;
|
|
12
|
+
private readonly _commandService;
|
|
13
|
+
private readonly _messageService;
|
|
14
|
+
private readonly _permissionService;
|
|
15
|
+
private _selectionProtectionRuleModel;
|
|
16
|
+
private readonly _dialogService;
|
|
17
|
+
private readonly _sidebarService;
|
|
18
|
+
private readonly _themeService;
|
|
19
|
+
private _historyUniver$;
|
|
20
|
+
readonly historyUniver$: import("rxjs").Observable<Univer | null>;
|
|
21
|
+
private _disposableCollection;
|
|
22
|
+
private _pluginMap;
|
|
23
|
+
private _internalWebWorker;
|
|
24
|
+
constructor(_localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _commandService: ICommandService, _messageService: IMessageService, _permissionService: IPermissionService, _selectionProtectionRuleModel: RangeProtectionRuleModel, _dialogService: IDialogService, _sidebarService: ISidebarService, _themeService: ThemeService);
|
|
25
|
+
get historyUniver(): Univer | null;
|
|
26
|
+
private _init;
|
|
27
|
+
private _initContainer;
|
|
28
|
+
private _initPlugins;
|
|
29
|
+
dispose(): void;
|
|
30
|
+
registerPlugin<T extends PluginCtor>(ctor: T, config?: ConstructorParameters<T>[0], override?: false): void;
|
|
31
|
+
getAllPlugins(): [ctor: PluginCtor, config: object | undefined][];
|
|
32
|
+
mountHistoryContent(unitId: string, param?: unknown): void;
|
|
33
|
+
unMountHistoryContent(): void;
|
|
34
|
+
private _initUniver;
|
|
35
|
+
private _initListener;
|
|
36
|
+
private _checkCanRevert;
|
|
37
|
+
}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5dd6(_0x20ef87,_0xc6e42b){_0x20ef87=_0x20ef87-0x99;const _0x1b70f0=_0x1b70();let _0x5dd647=_0x1b70f0[_0x20ef87];return _0x5dd647;}(function(_0x38b293,_0x4382a1){const _0x5ae647=_0x5dd6,_0x182703=_0x38b293();while(!![]){try{const _0x3e8647=-parseInt(_0x5ae647(0x1b3))/0x1*(parseInt(_0x5ae647(0x1e2))/0x2)+parseInt(_0x5ae647(0xd3))/0x3*(parseInt(_0x5ae647(0x1b5))/0x4)+parseInt(_0x5ae647(0xd4))/0x5+-parseInt(_0x5ae647(0x12f))/0x6*(-parseInt(_0x5ae647(0xca))/0x7)+parseInt(_0x5ae647(0x116))/0x8*(parseInt(_0x5ae647(0x1e1))/0x9)+-parseInt(_0x5ae647(0xb9))/0xa*(-parseInt(_0x5ae647(0x1cf))/0xb)+-parseInt(_0x5ae647(0x9c))/0xc;if(_0x3e8647===_0x4382a1)break;else _0x182703['push'](_0x182703['shift']());}catch(_0x3bda03){_0x182703['push'](_0x182703['shift']());}}}(_0x1b70,0xce700),function(_0xbcdf46,_0x5a892c){const _0x5b4549=_0x5dd6;typeof exports=='object'&&typeof module<'u'?_0x5a892c(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==_0x5b4549(0x10c)&&define[_0x5b4549(0x145)]?define([_0x5b4549(0x14f),'@univerjs/core','@univerjs/sheets',_0x5b4549(0x12b),_0x5b4549(0x158),_0x5b4549(0xf4),_0x5b4549(0xed),_0x5b4549(0x1b2),_0x5b4549(0x124),_0x5b4549(0xc1),'@univerjs-pro/sheets-shape',_0x5b4549(0x172),_0x5b4549(0x142),_0x5b4549(0x1d9),_0x5b4549(0x121),_0x5b4549(0xd6),_0x5b4549(0x180),'@univerjs/docs-ui',_0x5b4549(0x1d2),_0x5b4549(0x192),'@univerjs/engine-formula',_0x5b4549(0x14b),_0x5b4549(0x167),'@univerjs/rpc',_0x5b4549(0xae),_0x5b4549(0xc2),_0x5b4549(0x117),_0x5b4549(0x122),_0x5b4549(0x9b),_0x5b4549(0x101),_0x5b4549(0xbc),_0x5b4549(0xa2),'@univerjs/sheets-formula','@univerjs/sheets-formula-ui',_0x5b4549(0x13b),'@univerjs/sheets-hyper-link-ui',_0x5b4549(0x1b1),_0x5b4549(0x16c),'@univerjs/sheets-ui',_0x5b4549(0x151),_0x5b4549(0xd2),_0x5b4549(0x194),_0x5b4549(0x1ae)],_0x5a892c):(_0xbcdf46=typeof globalThis<'u'?globalThis:_0xbcdf46||self,_0x5a892c(_0xbcdf46[_0x5b4549(0x1aa)]={},_0xbcdf46[_0x5b4549(0x1e6)],_0xbcdf46[_0x5b4549(0xcd)],_0xbcdf46[_0x5b4549(0x126)],_0xbcdf46['UniverProCollaborationClient'],_0xbcdf46[_0x5b4549(0x1be)],_0xbcdf46[_0x5b4549(0x1e5)],_0xbcdf46['UniverProSheetsChart'],_0xbcdf46[_0x5b4549(0x14e)],_0xbcdf46['UniverProSheetsPivot'],_0xbcdf46['UniverProSheetsShape'],_0xbcdf46[_0x5b4549(0xc5)],_0xbcdf46[_0x5b4549(0x1a4)],_0xbcdf46[_0x5b4549(0xe5)],_0xbcdf46[_0x5b4549(0x9d)],_0xbcdf46[_0x5b4549(0x15b)],_0xbcdf46[_0x5b4549(0x147)],_0xbcdf46['UniverDocsUi'],_0xbcdf46[_0x5b4549(0x137)],_0xbcdf46['UniverDrawingUi'],_0xbcdf46[_0x5b4549(0xa4)],_0xbcdf46[_0x5b4549(0xfb)],_0xbcdf46['UniverNetwork'],_0xbcdf46[_0x5b4549(0x19b)],_0xbcdf46[_0x5b4549(0xf1)],_0xbcdf46[_0x5b4549(0x146)],_0xbcdf46[_0x5b4549(0x168)],_0xbcdf46[_0x5b4549(0xd5)],_0xbcdf46[_0x5b4549(0xa0)],_0xbcdf46['UniverSheetsDrawingUi'],_0xbcdf46[_0x5b4549(0x1dd)],_0xbcdf46[_0x5b4549(0x162)],_0xbcdf46['UniverSheetsFormula'],_0xbcdf46['UniverSheetsFormulaUi'],_0xbcdf46[_0x5b4549(0x1af)],_0xbcdf46[_0x5b4549(0x166)],_0xbcdf46[_0x5b4549(0x1d1)],_0xbcdf46['UniverSheetsTable'],_0xbcdf46['UniverSheetsUi'],_0xbcdf46[_0x5b4549(0x169)],_0xbcdf46[_0x5b4549(0xd2)],_0xbcdf46[_0x5b4549(0x11b)],_0xbcdf46[_0x5b4549(0x174)]));}(this,function(_0x4b548d,_0x420e0b,_0x57ccac,_0x373b71,_0xfabf9a,_0x23bed2,_0x157100,_0x28b033,_0x2899ee,_0x5a3378,_0x40ffd6,_0x2287e1,_0x353dd7,_0xf70474,_0xd07290,_0x4cba39,_0x2189cf,_0x32d65f,_0x4eeee4,_0x2aaf43,_0x350e6c,_0x332659,_0x4e8de9,_0x93c578,_0x3c308e,_0x17c37a,_0x466b4a,_0x5f25ed,_0x311963,_0x3681ac,_0x39c631,_0x3c2f97,_0xcbc3f9,_0x321798,_0x1a9b32,_0x349add,_0x4fc11b,_0xcf7c55,_0x51277a,_0x36e10f,_0x287a0d,_0x22a96b,_0x34be3b){'use strict';const _0x306e06=_0x5dd6;var _0x37ed03=Object[_0x306e06(0x1df)],_0x4322e3=(_0x27c3b1,_0x366bc6,_0x2a191a)=>_0x366bc6 in _0x27c3b1?_0x37ed03(_0x27c3b1,_0x366bc6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a191a}):_0x27c3b1[_0x366bc6]=_0x2a191a,_0x2d4563=(_0x1cd75e,_0xb76755,_0x5ea3fa)=>_0x4322e3(_0x1cd75e,typeof _0xb76755!='symbol'?_0xb76755+'':_0xb76755,_0x5ea3fa);const _0xacb774=_0x306e06(0x1b0),_0x5d7af5={};var _0x14d50f=Object[_0x306e06(0xa6)],_0x1d45d1=(_0x46d222,_0x3b7906,_0x5b906b,_0x52812a)=>{const _0x54c1ec=_0x306e06;for(var _0x54e113=_0x52812a>0x1?void 0x0:_0x52812a?_0x14d50f(_0x3b7906,_0x5b906b):_0x3b7906,_0x33b63e=_0x46d222[_0x54c1ec(0xf9)]-0x1,_0x4a0f07;_0x33b63e>=0x0;_0x33b63e--)(_0x4a0f07=_0x46d222[_0x33b63e])&&(_0x54e113=_0x4a0f07(_0x54e113)||_0x54e113);return _0x54e113;},_0x185226=(_0x2eb9da,_0x369342)=>(_0x4fd02e,_0x253d76)=>_0x369342(_0x4fd02e,_0x253d76,_0x2eb9da);const _0x1bdcb5='univer-container',_0x3a1430=_0x306e06(0x191),_0x2c0412=_0x306e06(0x17d);_0x4b548d[_0x306e06(0x154)]=class extends _0x420e0b[_0x306e06(0xd1)]{constructor(_0x57a11b,_0x208285,_0x44a90a,_0x3cc4bf,_0x1edc46,_0x3f7c33,_0x511b02,_0x68ed9d,_0x170156,_0x1aaeee){const _0x3ac42b=_0x306e06;super(),_0x2d4563(this,_0x3ac42b(0xbf),new _0x287a0d[(_0x3ac42b(0xfe))](null)),_0x2d4563(this,_0x3ac42b(0xbb),this[_0x3ac42b(0xbf)][_0x3ac42b(0xf7)]()),_0x2d4563(this,_0x3ac42b(0xbe),new _0x420e0b[(_0x3ac42b(0x179))]()),_0x2d4563(this,_0x3ac42b(0x181),new Map()),_0x2d4563(this,_0x3ac42b(0xe2),null),(this[_0x3ac42b(0x1c1)]=_0x57a11b,this[_0x3ac42b(0x16a)]=_0x208285,this[_0x3ac42b(0x1a5)]=_0x44a90a,this[_0x3ac42b(0x1a2)]=_0x3cc4bf,this[_0x3ac42b(0x111)]=_0x1edc46,this[_0x3ac42b(0x114)]=_0x3f7c33,this[_0x3ac42b(0x171)]=_0x511b02,this[_0x3ac42b(0x125)]=_0x68ed9d,this[_0x3ac42b(0x18c)]=_0x170156,this[_0x3ac42b(0x14a)]=_0x1aaeee,this['_init']());}get[_0x306e06(0x1c5)](){const _0x4fb9c6=_0x306e06;return this['_historyUniver$'][_0x4fb9c6(0xe4)];}['_init'](){const _0x42a37e=_0x306e06;this[_0x42a37e(0x161)](),this[_0x42a37e(0x199)]();}[_0x306e06(0x161)](){const _0x3499a1=_0x306e06;var _0x12d823;const _0x5c1fe6=(_0x12d823=this['_configService'][_0x3499a1(0xba)](_0x3a1430))!=null?_0x12d823:_0x1bdcb5,_0x28bab2=document['getElementById'](_0x5c1fe6);if(!_0x28bab2)return;const _0x4d5bb6=document['createElement']('div');_0x4d5bb6['id']=_0x2c0412,_0x4d5bb6['dataset']['uComp']=_0x3499a1(0x143),_0x4d5bb6[_0x3499a1(0x128)][_0x3499a1(0x11e)]=_0x3499a1(0x17a),_0x4d5bb6['style'][_0x3499a1(0x113)]='0',_0x4d5bb6[_0x3499a1(0x128)]['left']='0',_0x4d5bb6[_0x3499a1(0x128)][_0x3499a1(0xaf)]=_0x3499a1(0xfc),_0x4d5bb6[_0x3499a1(0x128)]['height']='100%',_0x4d5bb6[_0x3499a1(0x128)][_0x3499a1(0x17b)]='49',_0x4d5bb6[_0x3499a1(0x128)][_0x3499a1(0x1bb)]='none',_0x28bab2[_0x3499a1(0xdf)](_0x4d5bb6);}[_0x306e06(0x199)](){const _0x225d40=_0x306e06;[[_0x332659[_0x225d40(0xb0)]],[_0x36e10f['UniverUIPlugin'],{'container':_0x2c0412,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x36e10f['IDialogService'],null]]}],[_0x4e8de9['UniverNetworkPlugin']],[_0x4eeee4[_0x225d40(0x12d)],{'override':[[_0x4eeee4[_0x225d40(0x9f)],null]]}],[_0x2189cf[_0x225d40(0x1e0)],{'hasScroll':!0x1}],[_0x32d65f['UniverDocsUIPlugin']],[_0x4fc11b[_0x225d40(0x1dc)]],[_0x57ccac[_0x225d40(0x197)],{'notExecuteFormula':!0x0}],[_0x51277a[_0x225d40(0x134)]],[_0xcbc3f9[_0x225d40(0x196)]],[_0x321798[_0x225d40(0x129)]],[_0x373b71[_0x225d40(0x131)]],[_0x39c631[_0x225d40(0x1e3)]],[_0x3c2f97[_0x225d40(0xd8)]],[_0x3c308e[_0x225d40(0x1cc)]],[_0x17c37a['UniverSheetsConditionalFormattingUIPlugin']],[_0x1a9b32[_0x225d40(0xe1)]],[_0x349add[_0x225d40(0xb1)]],[_0xd07290['UniverDataValidationPlugin']],[_0x466b4a['UniverSheetsDataValidationPlugin']],[_0x5f25ed[_0x225d40(0x107)]],[_0x350e6c[_0x225d40(0xb7)],{'notExecuteFormula':!0x0}],[_0x2aaf43['UniverDrawingUIPlugin']],[_0x311963[_0x225d40(0xe3)]],[_0x3681ac[_0x225d40(0xb6)]],[_0x353dd7[_0x225d40(0x19c)]],[_0xf70474[_0x225d40(0x14d)]],[_0x28b033['UniverSheetsChartPlugin']],[_0x2899ee[_0x225d40(0x1d7)]],[_0x40ffd6[_0x225d40(0x12c)]],[_0x2287e1[_0x225d40(0x165)]],[_0x5a3378[_0x225d40(0x164)],{'notExecuteFormula':!0x0}],[_0xcf7c55[_0x225d40(0x140)]]][_0x225d40(0x9a)](([_0x16da5e,_0x12c801])=>this[_0x225d40(0x186)](_0x16da5e,_0x12c801));}[_0x306e06(0xa8)](){const _0x1f3099=_0x306e06;super[_0x1f3099(0xa8)](),this[_0x1f3099(0xf3)](),this[_0x1f3099(0x181)][_0x1f3099(0x157)]();}[_0x306e06(0x186)](_0x4932b6,_0x51f4f0,_0x38c6af){const _0x27fe2d=_0x306e06;if(this[_0x27fe2d(0x181)][_0x27fe2d(0xec)](_0x4932b6['pluginName'])&&!_0x38c6af)throw new Error(_0x27fe2d(0x1d8)+_0x4932b6[_0x27fe2d(0x112)]+_0x27fe2d(0x149));this[_0x27fe2d(0x181)][_0x27fe2d(0xef)](_0x4932b6[_0x27fe2d(0x112)],[_0x4932b6,_0x51f4f0]);}[_0x306e06(0xd9)](){const _0x4fe4ac=_0x306e06;return Array[_0x4fe4ac(0x108)](this[_0x4fe4ac(0x181)][_0x4fe4ac(0xc6)]());}[_0x306e06(0x1bf)](_0x4985dc,_0xd8afea){const _0xa0e20b=_0x306e06,_0x548001=document['getElementById'](_0x2c0412);_0x548001&&(_0x548001['style'][_0xa0e20b(0x1bb)]=_0xa0e20b(0x10e),this['_initUniver'](_0x4985dc,_0x2c0412,_0xd8afea));}[_0x306e06(0xf3)](){const _0xa105b5=_0x306e06;var _0x74830f;this[_0xa105b5(0xbe)]['dispose'](),(_0x74830f=this[_0xa105b5(0x1c5)])==null||_0x74830f[_0xa105b5(0xa8)](),this[_0xa105b5(0xbf)][_0xa105b5(0x10b)](null);const _0x29417d=document[_0xa105b5(0x141)](_0x2c0412);_0x29417d&&(_0x29417d['style']['display']=_0xa105b5(0x170),this[_0xa105b5(0xe2)]&&(this[_0xa105b5(0xe2)][_0xa105b5(0x16f)](),this[_0xa105b5(0xe2)]=null));}[_0x306e06(0x183)](_0x4fa444,_0x1c73f1,_0x12d313){const _0x122d4a=_0x306e06;var _0x4dc413,_0x5cc0ad,_0x353591,_0x122c31,_0x5f167b;if(this[_0x122d4a(0x1c5)])return;const _0x5dcb7d=new _0x420e0b[(_0x122d4a(0x1a1))]({'locales':{[this[_0x122d4a(0x1c1)][_0x122d4a(0xc9)]()]:this[_0x122d4a(0x1c1)][_0x122d4a(0xff)]()},'override':[[_0x420e0b[_0x122d4a(0xdd)],{'useClass':_0xfabf9a['AuthzIoHttpService']}]]}),_0x3712ff=_0x5dcb7d['__getInjector']();this[_0x122d4a(0x132)](this[_0x122d4a(0x14a)][_0x122d4a(0x163)][_0x122d4a(0xbd)](_0x19534b=>{const _0x3fa18f=_0x122d4a;_0x3712ff[_0x3fa18f(0x18e)](_0x420e0b[_0x3fa18f(0xc0)])[_0x3fa18f(0x110)](_0x19534b);})),this[_0x122d4a(0x132)](this['_themeService'][_0x122d4a(0x15f)][_0x122d4a(0xbd)](_0xda3066=>{const _0x5d9b66=_0x122d4a;_0x3712ff[_0x5d9b66(0x18e)](_0x420e0b[_0x5d9b66(0xc0)])[_0x5d9b66(0x118)](_0xda3066);})),_0x3712ff[_0x122d4a(0x18e)](_0x420e0b[_0x122d4a(0xe9)])[_0x122d4a(0x1cd)](this[_0x122d4a(0x1c1)][_0x122d4a(0xc9)]()),_0x3712ff[_0x122d4a(0x18e)](_0x420e0b[_0x122d4a(0x160)])[_0x122d4a(0x139)](_0xfabf9a[_0x122d4a(0x1de)],this[_0x122d4a(0x1a5)][_0x122d4a(0xba)](_0xfabf9a['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x45c197=this[_0x122d4a(0x1a5)][_0x122d4a(0xba)](_0x157100[_0x122d4a(0x15c)]);_0x45c197&&_0x5dcb7d[_0x122d4a(0x186)](_0x157100[_0x122d4a(0xcf)],{'license':_0x45c197['ls']});const _0x20ec27=(_0x4dc413=this['_configService'][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x4dc413[_0x122d4a(0x1bc)],_0x32584c=!!_0x20ec27;_0x32584c&&(this[_0x122d4a(0xe2)]=_0x20ec27 instanceof Worker?_0x20ec27:null,_0x5dcb7d['registerPlugin'](_0x93c578['UniverRPCMainThreadPlugin'],{'workerURL':_0x20ec27})),this[_0x122d4a(0x181)][_0x122d4a(0x9a)](([_0x157165,_0x5d0251])=>{const _0xb249ad=_0x122d4a;_0x5dcb7d[_0xb249ad(0x186)](_0x157165,_0x5d0251);}),_0x5dcb7d[_0x122d4a(0x186)](_0x23bed2['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x5cc0ad=this[_0x122d4a(0x1a5)][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x5cc0ad['historyListServerUrl'],'historyPanelComponentKey':(_0x353591=this[_0x122d4a(0x1a5)][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x353591['historyPanelComponentKey'],'historyPanelHidden':(_0x122c31=this['_configService'][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x122c31[_0x122d4a(0xaa)],'historyAIassistantEnabled':(_0x5f167b=this['_configService'][_0x122d4a(0xba)](_0xacb774))==null?void 0x0:_0x5f167b['historyAIassistantEnabled']}),_0x3712ff['invoke'](_0x657f9f=>{const _0x5195a2=_0x122d4a;this[_0x5195a2(0x1a9)](_0x657f9f,_0x4fa444);}),this['_historyUniver$']['next'](_0x5dcb7d);const _0x4b27ab=_0x3712ff[_0x122d4a(0x18e)](_0x23bed2[_0x122d4a(0x182)]),_0x3b7d72=this['_checkCanRevert'](_0x4fa444),_0x3b6d80=()=>{const _0xd7b98=_0x122d4a;_0x12d313?_0x4b27ab[_0xd7b98(0x130)](_0x4fa444,_0x1c73f1,_0x3b7d72,_0x12d313):_0x4b27ab['triggerLoadVersions'](_0x4fa444,_0x1c73f1,_0x3b7d72);};if(this[_0x122d4a(0x111)][_0x122d4a(0x1ad)]({'content':this[_0x122d4a(0x1c1)]['t'](_0x122d4a(0x18b)),'type':_0x4cba39['MessageType'][_0x122d4a(0x99)]}),_0x32584c)try{_0x3712ff[_0x122d4a(0x18e)](_0x93c578['IRemoteInstanceService'])[_0x122d4a(0x1b7)]()[_0x122d4a(0x1ac)](()=>{_0x3b6d80();});}catch{_0x3b6d80();}else _0x3b6d80();}[_0x306e06(0x1a9)](_0x20320d,_0x3ef87b){const _0x4a7da5=_0x306e06,_0x3b7db4=_0x20320d[_0x4a7da5(0x18e)](_0x23bed2[_0x4a7da5(0x182)]);this[_0x4a7da5(0xbe)][_0x4a7da5(0x1e7)](_0x3b7db4[_0x4a7da5(0x144)][_0x4a7da5(0xbd)](_0x1ecc94=>{const _0x3f5435=_0x4a7da5;switch(_0x1ecc94){case _0x23bed2[_0x3f5435(0x13a)][_0x3f5435(0x1c8)]:this[_0x3f5435(0x125)][_0x3f5435(0xe6)](),this[_0x3f5435(0x18c)][_0x3f5435(0x12e)]();break;case _0x23bed2[_0x3f5435(0x13a)][_0x3f5435(0xcc)]:this[_0x3f5435(0x1a2)]['executeCommand'](_0x14026b['id']),this[_0x3f5435(0xf3)]();break;case _0x23bed2[_0x3f5435(0x13a)][_0x3f5435(0x193)]:this[_0x3f5435(0xf3)](),this[_0x3f5435(0x111)]['show']({'content':this[_0x3f5435(0x1c1)]['t']('editHistory.panel.listFetchError'),'type':_0x4cba39[_0x3f5435(0x13e)][_0x3f5435(0x193)],'duration':0xbb8});break;}})),this[_0x4a7da5(0xbe)][_0x4a7da5(0x1e7)](_0x3b7db4['revertRevision$'][_0x4a7da5(0xbd)](async _0x421150=>{const _0x4f3ecd=_0x4a7da5;_0x421150&&this[_0x4f3ecd(0x1a2)]['executeCommand'](_0x373b71[_0x4f3ecd(0x1b9)]['id'],{'unitId':_0x3ef87b,'revision':_0x421150});}));}[_0x306e06(0x189)](_0x32a047){const _0x5d058a=_0x306e06,_0x81d29e=this[_0x5d058a(0x16a)][_0x5d058a(0x11a)](_0x32a047)[_0x5d058a(0x12a)]()['map'](_0x41cfd4=>_0x41cfd4['getSheetId']()),_0x2b054a=new _0x57ccac[(_0x5d058a(0xf0))](_0x32a047)['id'],_0x4834d1=_0x81d29e['map'](_0x59564d=>new _0x57ccac[(_0x5d058a(0xce))](_0x32a047,_0x59564d)['id']),_0x5d9316=_0x81d29e[_0x5d058a(0x119)](_0x2d7070=>this[_0x5d058a(0x171)][_0x5d058a(0xda)](_0x32a047,_0x2d7070)[_0x5d058a(0x119)](_0x36d916=>new _0x57ccac[(_0x5d058a(0x1e8))](_0x32a047,_0x2d7070,_0x36d916['permissionId'])['id']))[_0x5d058a(0x188)](),_0x4ba8c3=new _0x57ccac[(_0x5d058a(0x10f))](_0x32a047)['id'];return this[_0x5d058a(0x114)][_0x5d058a(0x1c4)]([_0x2b054a,..._0x4834d1,..._0x5d9316,_0x4ba8c3])[_0x5d058a(0x198)](_0x10df67=>!!_0x10df67[_0x5d058a(0xe4)]);}},_0x4b548d['HistoryLoaderService']=_0x1d45d1([_0x185226(0x0,_0x420e0b[_0x306e06(0xe0)](_0x420e0b[_0x306e06(0xe9)])),_0x185226(0x1,_0x420e0b[_0x306e06(0x103)]),_0x185226(0x2,_0x420e0b[_0x306e06(0x160)]),_0x185226(0x3,_0x420e0b['ICommandService']),_0x185226(0x4,_0x36e10f[_0x306e06(0x1ba)]),_0x185226(0x5,_0x420e0b[_0x306e06(0x19e)]),_0x185226(0x6,_0x420e0b['Inject'](_0x57ccac[_0x306e06(0x1ce)])),_0x185226(0x7,_0x420e0b[_0x306e06(0xe0)](_0x36e10f['IDialogService'])),_0x185226(0x8,_0x420e0b[_0x306e06(0xe0)](_0x36e10f['ISidebarService'])),_0x185226(0x9,_0x420e0b[_0x306e06(0xe0)](_0x420e0b[_0x306e06(0xc0)]))],_0x4b548d[_0x306e06(0x154)]);const _0x351c97={'id':'univer.operation.toggle-edit-history','type':_0x420e0b[_0x306e06(0x17f)][_0x306e06(0x1a3)],'handler':_0x544da0=>{const _0x1763a1=_0x306e06,_0x27b44=_0x544da0['get'](_0x4b548d[_0x1763a1(0x154)]),_0x3d97a5=_0x544da0['get'](_0x420e0b[_0x1763a1(0x103)]),{unitId:_0x5382ef}=_0x57ccac[_0x1763a1(0x18f)](_0x3d97a5)||{};return _0x5382ef?(_0x27b44['mountHistoryContent'](_0x5382ef),!0x0):!0x1;}},_0x14026b={'id':'univer.operation.exit-edit-history','type':_0x420e0b['CommandType']['OPERATION'],'handler':()=>!0x0},_0x4c65c9={'name':_0x306e06(0xd7),'version':_0x306e06(0x1da)};function _0x54636c({ref:_0xe83a0,..._0x17f739}){const _0x480bd7=_0x306e06,{icon:_0xeb4fe8,id:_0x598307,className:_0x21793a,extend:_0x2a2f56,..._0x514610}=_0x17f739,_0x530c85=('univerjs-icon\x20univerjs-icon-'+_0x598307+'\x20'+(_0x21793a||''))[_0x480bd7(0x1ab)](),_0x26f572=_0x34be3b[_0x480bd7(0x13d)]('_'+_0x1f552e());return _0x26f213(_0xeb4fe8,''+_0x598307,{'defIds':_0xeb4fe8[_0x480bd7(0xad)],'idSuffix':_0x26f572[_0x480bd7(0xac)]},{'ref':_0xe83a0,'className':_0x530c85,..._0x514610},_0x2a2f56);}function _0x26f213(_0x16a360,_0x960c42,_0x45088e,_0x2dc4cf,_0x5eaea6){const _0x2cb837=_0x306e06;return _0x34be3b[_0x2cb837(0x1c6)](_0x16a360[_0x2cb837(0xc4)],{'key':_0x960c42,..._0x4fdf8b(_0x16a360,_0x45088e,_0x5eaea6),..._0x2dc4cf},(_0x19bfbb(_0x16a360,_0x45088e)['children']||[])[_0x2cb837(0x119)]((_0x35c08d,_0x559541)=>_0x26f213(_0x35c08d,_0x960c42+'-'+_0x16a360[_0x2cb837(0xc4)]+'-'+_0x559541,_0x45088e,void 0x0,_0x5eaea6)));}function _0x4fdf8b(_0x584213,_0x3bad7a,_0x3bb825){const _0x1168db=_0x306e06,_0x306d18={..._0x584213[_0x1168db(0x10a)]};_0x3bb825!=null&&_0x3bb825[_0x1168db(0x195)]&&_0x306d18[_0x1168db(0x135)]===_0x1168db(0x195)&&(_0x306d18[_0x1168db(0x135)]=_0x3bb825['colorChannel1']),_0x584213[_0x1168db(0xc4)]==='mask'&&_0x306d18['id']&&(_0x306d18['id']=_0x306d18['id']+_0x3bad7a[_0x1168db(0xea)]),Object['entries'](_0x306d18)[_0x1168db(0x9a)](([_0x803387,_0xc6e1e])=>{const _0x3fcfc6=_0x1168db;_0x803387==='mask'&&typeof _0xc6e1e==_0x3fcfc6(0x11f)&&(_0x306d18[_0x803387]=_0xc6e1e[_0x3fcfc6(0x105)](/url\(#(.*)\)/,_0x3fcfc6(0x19d)+_0x3bad7a[_0x3fcfc6(0xea)]+')'));});const {defIds:_0x4f192c}=_0x3bad7a;return!_0x4f192c||_0x4f192c['length']===0x0||(_0x584213[_0x1168db(0xc4)]===_0x1168db(0x1ea)&&_0x306d18[_0x1168db(0x1d5)]&&(_0x306d18['xlink:href']=_0x306d18[_0x1168db(0x1d5)]+_0x3bad7a[_0x1168db(0xea)]),Object[_0x1168db(0x175)](_0x306d18)[_0x1168db(0x9a)](([_0x2626c7,_0x2f1162])=>{const _0xa8ecd8=_0x1168db;typeof _0x2f1162==_0xa8ecd8(0x11f)&&(_0x306d18[_0x2626c7]=_0x2f1162[_0xa8ecd8(0x105)](/url\(#(.*)\)/,'url(#$1'+_0x3bad7a[_0xa8ecd8(0xea)]+')'));})),_0x306d18;}function _0x19bfbb(_0x324fc7,_0x2f46c0){const _0x5c9a4a=_0x306e06;var _0xc3e812;const {defIds:_0x1e003d}=_0x2f46c0;return!_0x1e003d||_0x1e003d[_0x5c9a4a(0xf9)]===0x0?_0x324fc7:_0x324fc7[_0x5c9a4a(0xc4)]===_0x5c9a4a(0xc3)&&((_0xc3e812=_0x324fc7[_0x5c9a4a(0x1e4)])!=null&&_0xc3e812['length'])?{..._0x324fc7,'children':_0x324fc7[_0x5c9a4a(0x1e4)][_0x5c9a4a(0x119)](_0x3128f3=>typeof _0x3128f3[_0x5c9a4a(0x10a)]['id']=='string'&&_0x1e003d&&_0x1e003d[_0x5c9a4a(0x14c)](_0x3128f3[_0x5c9a4a(0x10a)]['id'])?{..._0x3128f3,'attrs':{..._0x3128f3[_0x5c9a4a(0x10a)],'id':_0x3128f3['attrs']['id']+_0x2f46c0[_0x5c9a4a(0xea)]}}:_0x3128f3)}:_0x324fc7;}function _0x1f552e(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x54636c['displayName']=_0x306e06(0x150);const _0x2ee805={'tag':_0x306e06(0xb2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x306e06(0x170),'viewBox':_0x306e06(0xdb),'width':_0x306e06(0x120),'height':_0x306e06(0x120)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x306e06(0xb8)},'children':[{'tag':_0x306e06(0x133),'attrs':{'d':_0x306e06(0x106)}},{'tag':_0x306e06(0x133),'attrs':{'d':_0x306e06(0x15d)}}]},{'tag':_0x306e06(0xc3),'attrs':{},'children':[{'tag':_0x306e06(0x13f),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x306e06(0x133),'attrs':{'fill':_0x306e06(0x13c),'d':_0x306e06(0x123)}}]}]}],'defIds':[_0x306e06(0x15a)]},_0x4f915b=_0x34be3b[_0x306e06(0x1c9)](function(_0x45fc06,_0x339a89){const _0xc0af53=_0x306e06;return _0x34be3b['createElement'](_0x54636c,Object[_0xc0af53(0xb5)]({},_0x45fc06,{'id':_0xc0af53(0x109),'ref':_0x339a89,'icon':_0x2ee805}));});_0x4f915b[_0x306e06(0x1d6)]='HistoryIcon';var _0x35b62a=(_0x5eec90=>(_0x5eec90[_0x5eec90[_0x306e06(0x1d4)]=0x0]=_0x306e06(0x1d4),_0x5eec90[_0x5eec90['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x5eec90[_0x5eec90[_0x306e06(0xc8)]=0x2]=_0x306e06(0xc8),_0x5eec90[_0x5eec90[_0x306e06(0xcb)]=0x3]=_0x306e06(0xcb),_0x5eec90[_0x5eec90[_0x306e06(0x16e)]=0x4]='UNIVER_PROJECT',_0x5eec90[_0x5eec90[_0x306e06(0x115)]=-0x1]=_0x306e06(0x115),_0x5eec90))(_0x35b62a||{});function _0x4f1569(_0x4dcf1f){const _0x56590a=_0x306e06;return{'id':_0x351c97['id'],'type':_0x36e10f[_0x56590a(0x153)][_0x56590a(0x17e)],'icon':'HistoryIcon','tooltip':'editHistory.panel.title','hidden$':_0x36e10f[_0x56590a(0x1e9)](_0x4dcf1f,_0x420e0b['UniverInstanceType'][_0x56590a(0xc8)]),'disabled$':_0x51277a[_0x56590a(0x1cb)](_0x4dcf1f,{'workbookTypes':[_0x57ccac[_0x56590a(0xf0)],_0x57ccac[_0x56590a(0x11c)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x3c80e4={[_0x36e10f[_0x306e06(0xe8)][_0x306e06(0xa9)]]:{[_0x351c97['id']]:{'order':0.2,'menuItemFactory':_0x4f1569}}};var _0x1ee3af=Object[_0x306e06(0xa6)],_0x22ea45=(_0x3b1b67,_0x41ee19,_0x2bcbda,_0x53a4cd)=>{const _0x51b0d7=_0x306e06;for(var _0x319903=_0x53a4cd>0x1?void 0x0:_0x53a4cd?_0x1ee3af(_0x41ee19,_0x2bcbda):_0x41ee19,_0x57d452=_0x3b1b67[_0x51b0d7(0xf9)]-0x1,_0x5d3b26;_0x57d452>=0x0;_0x57d452--)(_0x5d3b26=_0x3b1b67[_0x57d452])&&(_0x319903=_0x5d3b26(_0x319903)||_0x319903);return _0x319903;},_0x2a95e0=(_0x44d55f,_0xe6a017)=>(_0x1223e6,_0x5a9b5b)=>_0xe6a017(_0x1223e6,_0x5a9b5b,_0x44d55f);let _0x347682=class extends _0x420e0b[_0x306e06(0x152)]{constructor(_0x2523fd,_0x5727a6,_0x1aabca,_0x32bddf,_0x4617e1,_0x1a8713,_0x3aea8a,_0x1844be,_0x59504f,_0x203fe9,_0x132260){const _0xf124b5=_0x306e06;super(),_0x2d4563(this,_0xf124b5(0xa5),null),(this[_0xf124b5(0x1a2)]=_0x2523fd,this['_menuManagerService']=_0x5727a6,this['_componentManager']=_0x1aabca,this[_0xf124b5(0xa3)]=_0x32bddf,this[_0xf124b5(0x1c1)]=_0x4617e1,this[_0xf124b5(0x111)]=_0x1a8713,this[_0xf124b5(0x177)]=_0x3aea8a,this[_0xf124b5(0x1c2)]=_0x1844be,this[_0xf124b5(0xfa)]=_0x59504f,this[_0xf124b5(0x16a)]=_0x203fe9,this[_0xf124b5(0x138)]=_0x132260,this[_0xf124b5(0xdc)]());}['_init'](){const _0x35cecb=_0x306e06;[_0x351c97,_0x14026b][_0x35cecb(0x9a)](_0x222da9=>this['disposeWithMe'](_0x420e0b[_0x35cecb(0x1c3)](this['_commandService'][_0x35cecb(0x1c7)](_0x222da9)))),this['disposeWithMe'](this[_0x35cecb(0xde)]['register'](_0x35cecb(0x176),_0x4f915b)),this['_menuManagerService'][_0x35cecb(0x155)](_0x3c80e4),this[_0x35cecb(0x132)](this[_0x35cecb(0x1a2)]['onCommandExecuted'](async(_0x1a5217,_0x188f32)=>{const _0x23e988=_0x35cecb;if(_0x1a5217['id']===_0x373b71[_0x23e988(0x1b9)]['id']){const {unitId:_0x26000b}=_0x1a5217[_0x23e988(0x190)];this[_0x23e988(0x111)][_0x23e988(0x1ad)]({'content':this[_0x23e988(0x1c1)]['t'](_0x23e988(0x16d)),'type':_0x4cba39[_0x23e988(0x13e)][_0x23e988(0x99)],'duration':0x1388});const _0x2cf072=this[_0x23e988(0x177)]['getCollabEntity'](_0x26000b);(_0x188f32==null?void 0x0:_0x188f32['fromCollab'])?this[_0x23e988(0xd0)](_0x2cf072,async()=>(setTimeout(()=>window[_0x23e988(0x136)]['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x2cf072,async()=>{const _0x121c17=_0x23e988,_0xa0e650=this[_0x121c17(0x16a)][_0x121c17(0xb4)](_0x35b62a['UNIVER_SHEET']),_0x361e6f=_0xa0e650==null?void 0x0:_0xa0e650['getActiveSheet']();if(!_0x361e6f)return!0x1;this[_0x121c17(0x16a)]['disposeUnit'](_0x26000b);const _0x28c19c=await this['_dataLoaderService'][_0x121c17(0x9e)](_0x26000b,_0x35b62a[_0x121c17(0xc8)]);return _0x28c19c&&_0x28c19c instanceof _0x420e0b[_0x121c17(0x1ca)]?(await this[_0x121c17(0xe7)](_0x28c19c,_0x361e6f[_0x121c17(0xa7)]()),!0x0):!0x1;});}}));}[_0x306e06(0xd0)](_0x259837,_0x5b7538,_0x52a054=!0x1){const _0x3f118f=_0x306e06,_0x56295e=_0x287a0d[_0x3f118f(0x148)]([_0x259837[_0x3f118f(0x127)][_0x3f118f(0x1ec)],_0x259837['state$']])['subscribe'](async([_0xbaaeff,_0x184f64])=>{const _0x4e2ad5=_0x3f118f;var _0x37d603;_0xbaaeff[_0x4e2ad5(0x159)]===_0x373b71['CollaborationEvent'][_0x4e2ad5(0x11d)]&&(_0x184f64==null?void 0x0:_0x184f64[_0x4e2ad5(0xee)])===_0xfabf9a[_0x4e2ad5(0x1b6)]['SYNCED']&&_0xbaaeff[_0x4e2ad5(0xf6)]['mutations'][_0x4e2ad5(0xf2)](_0x3342be=>_0x3342be['id']===_0x373b71['RevertRevisionMutation']['id'])&&await _0x5b7538()&&(this[_0x4e2ad5(0xa3)]['unMountHistoryContent'](),_0x56295e[_0x4e2ad5(0x18a)](),this[_0x4e2ad5(0xa5)]&&clearTimeout(this['_revertErrorTimer']),await((_0x37d603=this[_0x4e2ad5(0x1c2)])==null?void 0x0:_0x37d603[_0x4e2ad5(0x17c)]()));});_0x52a054&&(this[_0x3f118f(0xa5)]=setTimeout(()=>{const _0x5866df=_0x3f118f;_0x56295e[_0x5866df(0x18a)](),this[_0x5866df(0x111)][_0x5866df(0x1ad)]({'content':this[_0x5866df(0x1c1)]['t'](_0x5866df(0x16b)),'type':_0x4cba39[_0x5866df(0x13e)][_0x5866df(0x193)],'duration':0xbb8});},0x1388));}async[_0x306e06(0xe7)](_0x7c2c2c,_0x2d862c){const _0x361c1e=_0x306e06;await this[_0x361c1e(0x1d0)](_0x7c2c2c,_0x2d862c),_0x7c2c2c[_0x361c1e(0x1c0)][_0x361c1e(0x156)](_0x287a0d['takeUntil'](this[_0x361c1e(0x1a8)]))['subscribe'](_0x1900e7=>{const _0x58c762=_0x361c1e;_0x1900e7&&this[_0x58c762(0xeb)](_0x1900e7);}),this['_urlService']['urlChange$'][_0x361c1e(0x156)](_0x287a0d[_0x361c1e(0x1a7)](this[_0x361c1e(0x1a8)]))[_0x361c1e(0xbd)](()=>this[_0x361c1e(0x1d0)](_0x7c2c2c,_0x2d862c));}[_0x306e06(0xeb)](_0x176f01,_0xeb354b=!0x1){const _0x49b4f9=_0x306e06,_0x319456=this[_0x49b4f9(0x138)][_0x49b4f9(0x1b4)](_0x49b4f9(0x1db));_0x176f01[_0x49b4f9(0xa7)]()!==_0x319456&&this['_urlService'][_0x49b4f9(0x1eb)](_0x49b4f9(0x1db),_0x176f01[_0x49b4f9(0xa7)](),_0xeb354b);}async['_updateSubUnitFromURLParams'](_0x1ccaae,_0x273c2c){const _0x556f65=_0x306e06;var _0x248717;if(!_0x273c2c||!_0x1ccaae['getSheetBySheetId'](_0x273c2c)){const _0x385d9e=_0x1ccaae[_0x556f65(0x15e)]()[0x0],_0x5a9fa5=_0x1ccaae[_0x556f65(0x10d)](_0x385d9e);if(!_0x5a9fa5)return;this[_0x556f65(0xeb)](_0x5a9fa5,!0x0),await this[_0x556f65(0x1a2)][_0x556f65(0x104)](_0x57ccac['SetWorksheetActivateCommand']['id'],{'unitId':_0x1ccaae['getUnitId'](),'subUnitId':_0x385d9e});return;}((_0x248717=_0x1ccaae[_0x556f65(0xa1)]())==null?void 0x0:_0x248717['getSheetId']())!==_0x273c2c&&await this['_commandService'][_0x556f65(0x104)](_0x57ccac['SetWorksheetActivateCommand']['id'],{'unitId':_0x1ccaae['getUnitId'](),'subUnitId':_0x273c2c});}};_0x347682=_0x22ea45([_0x2a95e0(0x0,_0x420e0b['ICommandService']),_0x2a95e0(0x1,_0x36e10f[_0x306e06(0x1b8)]),_0x2a95e0(0x2,_0x420e0b[_0x306e06(0xe0)](_0x36e10f['ComponentManager'])),_0x2a95e0(0x3,_0x420e0b[_0x306e06(0xe0)](_0x4b548d[_0x306e06(0x154)])),_0x2a95e0(0x4,_0x420e0b['Inject'](_0x420e0b['LocaleService'])),_0x2a95e0(0x5,_0x36e10f[_0x306e06(0x1ba)]),_0x2a95e0(0x6,_0x420e0b[_0x306e06(0xe0)](_0xfabf9a[_0x306e06(0x19f)])),_0x2a95e0(0x7,_0xfabf9a[_0x306e06(0x19a)]),_0x2a95e0(0x8,_0x420e0b[_0x306e06(0xe0)](_0xfabf9a[_0x306e06(0xf5)])),_0x2a95e0(0x9,_0x420e0b[_0x306e06(0x103)]),_0x2a95e0(0xa,_0x22a96b['IURLService'])],_0x347682);var _0x1a96ce=Object[_0x306e06(0x1df)],_0x2729e2=Object[_0x306e06(0xa6)],_0x1317aa=(_0x558b11,_0x52224d,_0x3ae367)=>_0x52224d in _0x558b11?_0x1a96ce(_0x558b11,_0x52224d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ae367}):_0x558b11[_0x52224d]=_0x3ae367,_0x42e893=(_0x1bdce3,_0x489027,_0x224907,_0x2365da)=>{const _0x68eaf4=_0x306e06;for(var _0x376ab5=_0x2365da>0x1?void 0x0:_0x2365da?_0x2729e2(_0x489027,_0x224907):_0x489027,_0x5b0468=_0x1bdce3[_0x68eaf4(0xf9)]-0x1,_0x49c47a;_0x5b0468>=0x0;_0x5b0468--)(_0x49c47a=_0x1bdce3[_0x5b0468])&&(_0x376ab5=_0x49c47a(_0x376ab5)||_0x376ab5);return _0x376ab5;},_0x3b6fd8=(_0x2d8978,_0x372562)=>(_0x22678c,_0x3c0df8)=>_0x372562(_0x22678c,_0x3c0df8,_0x2d8978),_0x3da276=(_0x3087bf,_0x19637a,_0x808961)=>_0x1317aa(_0x3087bf,typeof _0x19637a!=_0x306e06(0x1a0)?_0x19637a+'':_0x19637a,_0x808961);_0x4b548d[_0x306e06(0x1d3)]=class extends _0x420e0b['Plugin']{constructor(_0x168102=_0x5d7af5,_0x555d6f,_0x551f7c){const _0x1c5983=_0x306e06;super(),this[_0x1c5983(0x1a6)]=_0x168102,this[_0x1c5983(0x173)]=_0x555d6f,this[_0x1c5983(0x1a5)]=_0x551f7c;const {menu:_0xdccec4,..._0x167c90}=_0x420e0b[_0x1c5983(0x178)]({},_0x5d7af5,this[_0x1c5983(0x1a6)]);_0xdccec4&&this[_0x1c5983(0x1a5)][_0x1c5983(0x139)](_0x1c5983(0xab),_0xdccec4,{'merge':!0x0}),this[_0x1c5983(0x1a5)][_0x1c5983(0x139)](_0xacb774,_0x167c90),this['_config'][_0x1c5983(0x184)]&&this[_0x1c5983(0x1a5)]['setConfig'](_0x3a1430,this[_0x1c5983(0x1a6)][_0x1c5983(0x184)]);}['onStarting'](){const _0x4ba773=_0x306e06;[[_0x4b548d[_0x4ba773(0x154)]],[_0x347682]][_0x4ba773(0x9a)](_0x8292e6=>this['_injector'][_0x4ba773(0x1e7)](_0x8292e6));}[_0x306e06(0xfd)](){const _0x8d2c1c=_0x306e06;this[_0x8d2c1c(0x173)][_0x8d2c1c(0x18e)](_0x347682);}},_0x3da276(_0x4b548d['UniverEditHistoryLoaderPlugin'],_0x306e06(0x102),_0x420e0b[_0x306e06(0x185)]['UNIVER_UNKNOWN']),_0x3da276(_0x4b548d[_0x306e06(0x1d3)],_0x306e06(0x112),'UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_0x3da276(_0x4b548d['UniverEditHistoryLoaderPlugin'],'packageName',_0x4c65c9['name']),_0x3da276(_0x4b548d[_0x306e06(0x1d3)],_0x306e06(0xc7),_0x4c65c9[_0x306e06(0xc7)]),_0x4b548d[_0x306e06(0x1d3)]=_0x42e893([_0x420e0b[_0x306e06(0x18d)](_0x157100[_0x306e06(0xcf)]),_0x3b6fd8(0x1,_0x420e0b[_0x306e06(0xe0)](_0x420e0b[_0x306e06(0x187)])),_0x3b6fd8(0x2,_0x420e0b[_0x306e06(0x160)])],_0x4b548d[_0x306e06(0x1d3)]),_0x4b548d[_0x306e06(0xb3)]=_0xacb774,_0x4b548d[_0x306e06(0xf8)]=_0x351c97,_0x4b548d[_0x306e06(0x100)]=_0x3a1430,_0x4b548d['UNIVER_HISTORY_CONTAINER_ID']=_0x2c0412,Object[_0x306e06(0x1df)](_0x4b548d,Symbol['toStringTag'],{'value':_0x306e06(0x1bd)});}));function _0x1b70(){const _0x40a07b=['6438635nbMICf','UniverSheetsDataValidationUi','@univerjs/design','@univerjs-pro/edit-history-loader','UniverSheetsFilterUIPlugin','getAllPlugins','getSubunitRuleList','0\x200\x2016\x2016','_init','IAuthzIoService','_componentManager','appendChild','Inject','UniverSheetsHyperLinkPlugin','_internalWebWorker','UniverSheetsDrawingPlugin','value','UniverProSheetsSparklineUi','closeAll','_setupSubUnitSync','RibbonStartGroup','LocaleService','idSuffix','_updateURLWithCurrentState','has','@univerjs-pro/license','status','set','WorkbookEditablePermission','UniverSheetsConditionalFormatting','some','unMountHistoryContent','@univerjs-pro/edit-history-viewer','DataLoaderService','data','asObservable','ToggleEditHistoryOperation','length','_dataLoaderService','UniverEngineRender','100%','onSteady','BehaviorSubject','getLocales','UNIVER_CONTAINER_ID_KEY','@univerjs/sheets-drawing-ui','type','IUniverInstanceService','executeCommand','replace','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','UniverSheetsDataValidationUIPlugin','from','history-icon','attrs','next','function','getSheetBySheetId','block','WorkbookRecoverHistoryPermission','setDarkMode','_messageService','pluginName','top','_permissionService','UNRECOGNIZED','24WXusbv','@univerjs/sheets-data-validation','setTheme','map','getUnit','UniverProCollaborationClientUi','WorkbookViewHistoryPermission','CHANGESET_ACK','position','string','1em','@univerjs/data-validation','@univerjs/sheets-data-validation-ui','M0\x200H16V16H0z','@univerjs-pro/sheets-chart-ui','_dialogService','UniverProCollaboration','session','style','UniverSheetsFormulaUIPlugin','getSheets','@univerjs-pro/collaboration','UniverSheetsShapePlugin','UniverDrawingPlugin','close','114ymBZyP','triggerCustomVersions','UniverCollaborationPlugin','disposeWithMe','path','UniverSheetsUIPlugin','fill','location','UniverDrawing','_urlService','setConfig','HistoryModeStatus','@univerjs/sheets-hyper-link','white','useRef','MessageType','clipPath','UniverSheetsTablePlugin','getElementById','@univerjs-pro/sheets-sparkline','history-container','status$','amd','UniverSheetsConditionalFormattingUi','UniverDocs','combineLatest','\x20has\x20been\x20registered.','_themeService','@univerjs/engine-render','includes','UniverSheetSparklineUIPlugin','UniverProSheetsChartUi','exports','UniverIcon','@univerjs/ui','RxDisposable','MenuItemType','HistoryLoaderService','mergeMenu','pipe','clear','@univerjs-pro/collaboration-client','eventID','history-icon_clip0_907_281','UniverDesign','LS_CONFIG_KEY','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','getUnhiddenWorksheets','currentTheme$','IConfigService','_initContainer','UniverSheetsFilterUi','darkMode$','UniverSheetsPivotTablePlugin','UniverSheetsShapeUIPlugin','UniverSheetsHyperLinkUi','@univerjs/network','UniverSheetsDataValidation','UniverUi','_univerInstanceService','editHistory.panel.revertFailed','@univerjs/sheets-table','editHistory.panel.reverting','UNIVER_PROJECT','terminate','none','_selectionProtectionRuleModel','@univerjs-pro/sheets-shape-ui','_injector','React','entries','HistoryIcon','_collaborationController','merge','DisposableCollection','absolute','zIndex','exhaustSavingTask','univer-history-container','BUTTON','CommandType','@univerjs/docs','_pluginMap','HistoryManagerService','_initUniver','univerContainerId','UniverInstanceType','registerPlugin','Injector','flat','_checkCanRevert','unsubscribe','editHistory.info.initializing','_sidebarService','DependentOn','get','getSheetCommandTarget','params','UNIVER_CONTAINER_ID','@univerjs/drawing-ui','Error','@univerjs-pro/collaboration-client-ui','colorChannel1','UniverSheetsFormulaPlugin','UniverSheetsPlugin','every','_initPlugins','ILocalCacheService','UniverRpc','UniverSheetSparklinePlugin','url(#$1','IPermissionService','CollaborationController','symbol','Univer','_commandService','OPERATION','UniverProSheetsSparkline','_configService','_config','takeUntil','dispose$','_initListener','UniverProEditHistoryLoader','trim','then','show','react','UniverSheetsHyperLink','edit-history-loader.config','@univerjs/sheets-numfmt','@univerjs-pro/sheets-chart','1763Lsggre','getParam','1071736AsknSR','CollaborationStatus','whenReady','IMenuManagerService','RevertRevisionMutation','IMessageService','display','workerURL','Module','UniverProEditHistoryViewer','mountHistoryContent','activeSheet$','_localeService','_localCacheService','toDisposable','composePermission','historyUniver','createElement','registerCommand','Entered','forwardRef','Workbook','getCurrentRangeDisable$','UniverSheetsConditionalFormattingPlugin','setLocale','RangeProtectionRuleModel','11xZmVQj','_updateSubUnitFromURLParams','UniverSheetsNumfmt','@univerjs/drawing','UniverEditHistoryLoaderPlugin','UNIVER_UNKNOWN','xlink:href','displayName','UniverSheetsChartUIPlugin','[HistoryLoaderService]:\x20Plugin\x20','@univerjs-pro/sheets-sparkline-ui','0.17.0','subunit','UniverSheetsNumfmtPlugin','UniverSheetsFilter','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','defineProperty','UniverDocsPlugin','2001078vtpvWc','838DgzKSr','UniverSheetsFilterPlugin','children','UniverProLicense','UniverCore','add','RangeProtectionPermissionEditPoint','getMenuHiddenObservable','use','setParam','event$','Loading','forEach','@univerjs/sheets-drawing','36671448nExAaU','UniverDataValidation','loadUnit','IImageIoService','UniverSheetsDrawing','getActiveSheet','@univerjs/sheets-filter-ui','_historyManagerService','UniverEngineFormula','_revertErrorTimer','getOwnPropertyDescriptor','getSheetId','dispose','OTHERS','historyPanelHidden','menu','current','defIds','@univerjs/sheets-conditional-formatting','width','UniverRenderEnginePlugin','UniverSheetsHyperLinkUIPlugin','svg','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','getCurrentUnitOfType','assign','UniverSheetsDrawingUIPlugin','UniverFormulaEnginePlugin','url(#history-icon_clip0_907_281)','10252700BhclDe','getConfig','historyUniver$','@univerjs/sheets-filter','subscribe','_disposableCollection','_historyUniver$','ThemeService','@univerjs-pro/sheets-pivot','@univerjs/sheets-conditional-formatting-ui','defs','tag','UniverProSheetsShapeUi','values','version','UNIVER_SHEET','getCurrentLocale','19376gwbCDg','UNIVER_SLIDE','Exited','UniverSheets','WorksheetEditPermission','UniverLicensePlugin','_handleRevertAcknowledgement','Disposable','rxjs','18lwzkJJ'];_0x1b70=function(){return _0x40a07b;};return _0x1b70();}
|
|
1
|
+
function _0x344a(){const _0x33699b=['getConfig','getCurrentRangeDisable$','DataLoaderService','Inject','_univerInstanceService','mask','UniverInstanceType','_injector','getCurrentLocale','fromCollab','RangeProtectionPermissionEditPoint','UNIVER_SLIDE','UniverCollaborationPlugin','uComp','WorksheetEditPermission','show','terminate','UniverEngineRender','ComponentManager','_permissionService','history-icon_clip0_907_281','historyListServerUrl','IURLService','setTheme','value','historyUniver','_localeService','from','DependentOn','_updateSubUnitFromURLParams','prototype','subunit','RangeProtectionRuleModel','_initListener','mountHistoryContent','session','getUnhiddenWorksheets','UNIVER_CONTAINER_ID','getParam','clear','UniverLicensePlugin','IDialogService','historyPanelComponentKey','constructor','absolute','9wBMUAp','setDarkMode','UniverSheetsConditionalFormattingUi','UniverSheetsFormula','_collaborationController','@univerjs-pro/edit-history-loader','UniverSheetsFilter','ICommandService','Univer','toDisposable','replace','add','CollaborationStatus','symbol','takeUntil','exhaustSavingTask','mergeMenu','svg','has','0.18.0','UniverRenderEnginePlugin','dispose$','WorkbookEditablePermission','url(#$1','UniverSheetsHyperLinkUIPlugin','subscribe','UniverSheetsDrawing','UniverProEditHistoryLoader','UniverSheetsFilterPlugin','dispose','every','549888AEOFPX','UniverProSheetsSparkline','UniverDocs','path','top','UniverProSheetsShape','_pluginMap','IMenuManagerService','_updateURLWithCurrentState','100%','history-container','BehaviorSubject','getAllPlugins','1736010wdUBgc','data','UniverSheetSparklineUIPlugin','pluginName','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','UniverUIPlugin','139456IIeEPs','assign','HistoryManagerService','entries','UniverDrawingUIPlugin','toStringTag','HistoryModeStatus','_componentManager','univerjs-icon\x20univerjs-icon-','state$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','IPermissionService','fill','onStarting','location','4217910QBlxFe','setConfig','editHistory.panel.revertFailed','UniverSheetsChartUIPlugin','reload','Module','UniverSheetsDataValidationMobileUIPlugin','revertRevision$','UniverNetwork','getSheetBySheetId','height','UniverSheetsNumfmt','menu','UniverProCollaborationClientUi','split','M0\x200H16V16H0z','trim','_initPlugins','LS_CONFIG_KEY','_themeService','UniverSheetsHyperLinkPlugin','attrs','SetWorksheetActivateCommand','toPrimitive','UniverSheetsShapePlugin','_urlService','_dialogService','UniverSheetsFilterUIPlugin','UniverRpc','IMessageService','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','_commandService','use','WorkbookRecoverHistoryPermission','version','__getInjector','UniverSheetsUi','DisposableCollection','Plugin','composePermission','CollaborationController','getCollabEntity','getUnitId','getLocales','params','zIndex','BUTTON','UniverProSheetsChart','UniverProCollaboration','UniverProLicense','_setupSubUnitSync','univerContainerId','ILocalCacheService','React','Exited','CommandType','onCommandExecuted','79530rLITOG','ThemeService','UniverRPCMainThreadPlugin','UniverProSheetsSparklineUi','display','UniverSheetsFilterUi','getUnit','invoke','packageName','defs','rxjs','UNIVER_HISTORY_CONTAINER_ID','IConfigService','_historyManagerService','forEach','UniverSheets','combineLatest','UniverSheetsDataValidationPlugin','univer.operation.toggle-edit-history','Workbook','decorate','triggerLoadVersions','disposeUnit','toString','getSheets','function','asObservable','_configService','defineProperty','registerCommand','position','UNIVER_SHEET','Error','tag','7uHlirK','pipe','UniverSheetsNumfmtPlugin','[HistoryLoaderService]:\x20Plugin\x20','MobileHistoryLoaderService','UNIVER_UNKNOWN','whenReady','width','style','close','UniverSheetsDrawingPlugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_revertErrorTimer','UniverSheetsPlugin','MessageType','UniverSheetSparklinePlugin','UniverEngineFormula','next','WorkbookViewHistoryPermission','UNIVER_CONTAINER_ID_KEY','UniverSheetsShapeUIPlugin','_initUniver','unsubscribe','univer-history-container-mobile','setLocale','createElement','onSteady','disposeWithMe','UniverSheetsMobileUIPlugin','editHistory.panel.listFetchError','ISidebarService','_historyUniver$','closeAll','OPERATION','getActiveSheet','getSubunitRuleList','253206fYdxhJ','UNRECOGNIZED','IAuthzIoService','idSuffix','_internalWebWorker','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','UniverDocsUIPlugin','unMountHistoryContent','UniverSheetsDrawingUIPlugin','defIds','univer.operation.exit-edit-history','getSheetCommandTarget','darkMode$','_init','get','UniverSheetsPivotTablePlugin','some','UniverSheetsTablePlugin','IImageIoService','UniverSheetsConditionalFormattingPlugin','colorChannel1','length','UniverFormulaEnginePlugin','Disposable','IUniverInstanceService','xlink:href','CHANGESET_ACK','getElementById','UniverSheetsConditionalFormatting','_sidebarService','default','div','_messageService','triggerCustomVersions','0\x200\x2016\x2016','705546qIuSyn','_localCacheService','permissionId','merge','editHistory.panel.title','string','currentTheme$','setParam','Loading','displayName','UniverDataValidation','edit-history-loader.config','_dataLoaderService','UniverProSheetsPivot','UniverCore','activeSheet$','Injector','UniverProCollaborationClient','_config','left','includes','set','status','_selectionProtectionRuleModel','registerPlugin','_disposableCollection','UniverDataValidationPlugin','UniverDrawingPlugin','object','loadUnit','UniverIcon','getSheetId','_checkCanRevert','ToggleEditHistoryOperation','map','register','getOwnPropertyDescriptor','UniverSheetsDataValidationUi','UniverSheetsFormulaUIPlugin','32PVHBTT','_initContainer','UniverDesign','UNIVER_DOC','OTHERS','then','type','editHistory.info.initializing','UniverSheetsChartPlugin','RevertRevisionMutation','http://www.w3.org/2000/svg','Entered','useRef','UniverDocsUi','1em','urlChange$','_menuManagerService','IRemoteInstanceService','UniverDocsPlugin','amd','workerURL','HistoryIcon','LocaleService','RxDisposable','iterator','values','_handleRevertAcknowledgement','univer-container','UniverUi','CollaborationEvent','executeCommand','block','UniverNetworkPlugin','UniverProEditHistoryViewer','none','children','\x20has\x20been\x20registered.','dataset','flat','UniverSheetsFormulaUi','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','getCurrentUnitOfType'];_0x344a=function(){return _0x33699b;};return _0x344a();}function _0x295b(_0x37dae8,_0x20b1da){_0x37dae8=_0x37dae8-0x188;const _0x344a62=_0x344a();let _0x295b20=_0x344a62[_0x37dae8];return _0x295b20;}(function(_0x3a2be0,_0x6b5568){const _0x17a972=_0x295b,_0x18d452=_0x3a2be0();while(!![]){try{const _0x4c09e9=-parseInt(_0x17a972(0x249))/0x1*(-parseInt(_0x17a972(0x2c3))/0x2)+parseInt(_0x17a972(0x268))/0x3+-parseInt(_0x17a972(0x27b))/0x4+-parseInt(_0x17a972(0x275))/0x5+-parseInt(_0x17a972(0x1a8))/0x6*(parseInt(_0x17a972(0x2e5))/0x7)+parseInt(_0x17a972(0x1f2))/0x8*(-parseInt(_0x17a972(0x1cb))/0x9)+parseInt(_0x17a972(0x28a))/0xa;if(_0x4c09e9===_0x6b5568)break;else _0x18d452['push'](_0x18d452['shift']());}catch(_0x3b3cf8){_0x18d452['push'](_0x18d452['shift']());}}}(_0x344a,0x36f69),function(_0x349429,_0x372e28){const _0x48d982=_0x295b;typeof exports==_0x48d982(0x1e7)&&typeof module<'u'?_0x372e28(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==_0x48d982(0x2dc)&&define[_0x48d982(0x205)]?define(_0x48d982(0x2a8)[_0x48d982(0x298)]('.'),_0x372e28):(_0x349429=typeof globalThis<'u'?globalThis:_0x349429||self,_0x372e28(_0x349429[_0x48d982(0x264)]={},_0x349429[_0x48d982(0x1d9)],_0x349429[_0x48d982(0x2d2)],_0x349429[_0x48d982(0x2ba)],_0x349429[_0x48d982(0x1dc)],_0x349429[_0x48d982(0x213)],_0x349429[_0x48d982(0x2bb)],_0x349429[_0x48d982(0x2b9)],_0x349429['UniverProSheetsChartUi'],_0x349429[_0x48d982(0x1d8)],_0x349429[_0x48d982(0x26d)],_0x349429['UniverProSheetsShapeUi'],_0x349429[_0x48d982(0x269)],_0x349429[_0x48d982(0x2c6)],_0x349429[_0x48d982(0x1d5)],_0x349429[_0x48d982(0x1f4)],_0x349429[_0x48d982(0x26a)],_0x349429[_0x48d982(0x1ff)],_0x349429['UniverDrawing'],_0x349429['UniverDrawingUi'],_0x349429[_0x48d982(0x194)],_0x349429[_0x48d982(0x22d)],_0x349429[_0x48d982(0x292)],_0x349429[_0x48d982(0x2a6)],_0x349429[_0x48d982(0x1c4)],_0x349429[_0x48d982(0x24b)],_0x349429['UniverSheetsDataValidation'],_0x349429[_0x48d982(0x1f0)],_0x349429[_0x48d982(0x263)],_0x349429['UniverSheetsDrawingUi'],_0x349429[_0x48d982(0x24f)],_0x349429[_0x48d982(0x2c8)],_0x349429[_0x48d982(0x24c)],_0x349429[_0x48d982(0x219)],_0x349429['UniverSheetsHyperLink'],_0x349429['UniverSheetsHyperLinkUi'],_0x349429[_0x48d982(0x295)],_0x349429['UniverSheetsTable'],_0x349429[_0x48d982(0x2ae)],_0x349429[_0x48d982(0x20e)],_0x349429[_0x48d982(0x2cd)],_0x349429[_0x48d982(0x297)],_0x349429[_0x48d982(0x2bf)]));}(this,function(_0x5768db,_0x3e2e2e,_0xca06c9,_0x13b251,_0x5803d8,_0x335bbd,_0x2ee31a,_0x133915,_0x5d0f2c,_0x314dc2,_0x2e1b6d,_0x139710,_0x5b1054,_0x1ef61f,_0x41c8ef,_0x3845ae,_0x2bfaaa,_0xe42b4c,_0x44b2d2,_0x371330,_0x407dbd,_0x517b15,_0x269397,_0x29f076,_0x545a89,_0xa8139b,_0x22225a,_0x1b3eb5,_0x1ca531,_0x5102e5,_0x526e63,_0x4b230b,_0x461ff2,_0x543631,_0xc3bffb,_0x54f247,_0x2eab93,_0x4a170,_0x282b5e,_0x391796,_0x4620fb,_0x393b7d,_0x3237fc){const _0x1b6d6f=_0x295b;Object[_0x1b6d6f(0x2df)](_0x5768db,Symbol[_0x1b6d6f(0x280)],{'value':_0x1b6d6f(0x28f)});let _0x2e83c1=_0x1b6d6f(0x1d6);Symbol(_0x2e83c1);let _0x19d3f5={};function _0x2c4d3f(_0x2b513b){'@babel/helpers - typeof';const _0x35cc41=_0x1b6d6f;return _0x2c4d3f=typeof Symbol=='function'&&typeof Symbol[_0x35cc41(0x20a)]==_0x35cc41(0x256)?function(_0xba180f){return typeof _0xba180f;}:function(_0x327693){const _0x458f4b=_0x35cc41;return _0x327693&&typeof Symbol=='function'&&_0x327693[_0x458f4b(0x247)]===Symbol&&_0x327693!==Symbol[_0x458f4b(0x23a)]?_0x458f4b(0x256):typeof _0x327693;},_0x2c4d3f(_0x2b513b);}function _0x1a9427(_0x574afa,_0x4d43e0){const _0x9be0c7=_0x1b6d6f;if(_0x2c4d3f(_0x574afa)!=_0x9be0c7(0x1e7)||!_0x574afa)return _0x574afa;var _0x28759d=_0x574afa[Symbol[_0x9be0c7(0x2a1)]];if(_0x28759d!==void 0x0){var _0x1085a4=_0x28759d['call'](_0x574afa,_0x4d43e0||_0x9be0c7(0x1c6));if(_0x2c4d3f(_0x1085a4)!=_0x9be0c7(0x1e7))return _0x1085a4;throw TypeError(_0x9be0c7(0x18f));}return(_0x4d43e0===_0x9be0c7(0x1d0)?String:Number)(_0x574afa);}function _0x2a2432(_0x1f3b9){const _0x547eaa=_0x1b6d6f;var _0x292bdf=_0x1a9427(_0x1f3b9,_0x547eaa(0x1d0));return _0x2c4d3f(_0x292bdf)==_0x547eaa(0x256)?_0x292bdf:_0x292bdf+'';}function _0x5d6976(_0x3ad5e3,_0x2f3363,_0x313240){const _0x374a00=_0x1b6d6f;return(_0x2f3363=_0x2a2432(_0x2f3363))in _0x3ad5e3?Object[_0x374a00(0x2df)](_0x3ad5e3,_0x2f3363,{'value':_0x313240,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ad5e3[_0x2f3363]=_0x313240,_0x3ad5e3;}function _0x1c7dd1(_0x23563e,_0x5c710c){return function(_0x50b80f,_0x19ca32){_0x5c710c(_0x50b80f,_0x19ca32,_0x23563e);};}function _0x1ad602(_0x4390e0,_0x2b5e49,_0x45b69d,_0x364bc2){const _0x32ddb6=_0x1b6d6f;var _0x426e65=arguments[_0x32ddb6(0x1bd)],_0x33dcbf=_0x426e65<0x3?_0x2b5e49:_0x364bc2===null?_0x364bc2=Object[_0x32ddb6(0x1ef)](_0x2b5e49,_0x45b69d):_0x364bc2,_0x530f59;if(typeof Reflect==_0x32ddb6(0x1e7)&&typeof Reflect[_0x32ddb6(0x2d7)]==_0x32ddb6(0x2dc))_0x33dcbf=Reflect[_0x32ddb6(0x2d7)](_0x4390e0,_0x2b5e49,_0x45b69d,_0x364bc2);else{for(var _0x5c510c=_0x4390e0[_0x32ddb6(0x1bd)]-0x1;_0x5c510c>=0x0;_0x5c510c--)(_0x530f59=_0x4390e0[_0x5c510c])&&(_0x33dcbf=(_0x426e65<0x3?_0x530f59(_0x33dcbf):_0x426e65>0x3?_0x530f59(_0x2b5e49,_0x45b69d,_0x33dcbf):_0x530f59(_0x2b5e49,_0x45b69d))||_0x33dcbf);}return _0x426e65>0x3&&_0x33dcbf&&Object['defineProperty'](_0x2b5e49,_0x45b69d,_0x33dcbf),_0x33dcbf;}let _0x410ed1=_0x1b6d6f(0x241),_0x4282a9='univer-history-container',_0x36017f=class extends _0x3e2e2e[_0x1b6d6f(0x1bf)]{constructor(_0xdc1e5e,_0x5b8509,_0x40edca,_0x94bd05,_0x46c002,_0x15482f,_0x771fb8,_0xf4ccd6,_0x55e2b2,_0x124a7b){const _0x3f0aa6=_0x1b6d6f;super(),this[_0x3f0aa6(0x236)]=_0xdc1e5e,this[_0x3f0aa6(0x220)]=_0x5b8509,this[_0x3f0aa6(0x2de)]=_0x40edca,this['_commandService']=_0x94bd05,this['_messageService']=_0x46c002,this['_permissionService']=_0x15482f,this[_0x3f0aa6(0x1e2)]=_0x771fb8,this['_dialogService']=_0xf4ccd6,this['_sidebarService']=_0x55e2b2,this[_0x3f0aa6(0x29d)]=_0x124a7b,_0x5d6976(this,'_historyUniver$',new _0x4620fb['BehaviorSubject'](null)),_0x5d6976(this,'historyUniver$',this[_0x3f0aa6(0x1a3)][_0x3f0aa6(0x2dd)]()),_0x5d6976(this,'_disposableCollection',new _0x3e2e2e[(_0x3f0aa6(0x2af))]()),_0x5d6976(this,'_pluginMap',new Map()),_0x5d6976(this,_0x3f0aa6(0x1ac),null),this['_init']();}get[_0x1b6d6f(0x235)](){const _0x192554=_0x1b6d6f;return this[_0x192554(0x1a3)][_0x192554(0x234)];}[_0x1b6d6f(0x1b5)](){const _0x5e7cc1=_0x1b6d6f;this[_0x5e7cc1(0x1f3)](),this[_0x5e7cc1(0x29b)]();}[_0x1b6d6f(0x1f3)](){const _0xa924e9=_0x1b6d6f;var _0x43d3e7;let _0x206074=(_0x43d3e7=this[_0xa924e9(0x2de)][_0xa924e9(0x21c)](_0xa924e9(0x241)))==null?_0xa924e9(0x20d):_0x43d3e7,_0xd29a75=document[_0xa924e9(0x1c3)](_0x206074);if(!_0xd29a75)return;let _0x350d50=document[_0xa924e9(0x19d)](_0xa924e9(0x1c7));_0x350d50['id']=_0x4282a9,_0x350d50[_0xa924e9(0x217)][_0xa924e9(0x229)]=_0xa924e9(0x272),_0x350d50[_0xa924e9(0x18c)][_0xa924e9(0x2e1)]=_0xa924e9(0x248),_0x350d50[_0xa924e9(0x18c)][_0xa924e9(0x26c)]='0',_0x350d50[_0xa924e9(0x18c)]['left']='0',_0x350d50[_0xa924e9(0x18c)][_0xa924e9(0x18b)]=_0xa924e9(0x271),_0x350d50[_0xa924e9(0x18c)][_0xa924e9(0x294)]=_0xa924e9(0x271),_0x350d50[_0xa924e9(0x18c)]['zIndex']='49',_0x350d50[_0xa924e9(0x18c)]['display']='none',_0xd29a75['appendChild'](_0x350d50);}[_0x1b6d6f(0x29b)](){const _0xa8e1e3=_0x1b6d6f;[[_0x517b15['UniverRenderEnginePlugin']],[_0x391796[_0xa8e1e3(0x27a)],{'container':_0x4282a9,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x391796[_0xa8e1e3(0x245)],null]]}],[_0x269397['UniverNetworkPlugin']],[_0x44b2d2[_0xa8e1e3(0x1e6)],{'override':[[_0x44b2d2[_0xa8e1e3(0x1ba)],null]]}],[_0x2bfaaa[_0xa8e1e3(0x204)],{'hasScroll':!0x1}],[_0xe42b4c[_0xa8e1e3(0x1ae)]],[_0x2eab93['UniverSheetsNumfmtPlugin']],[_0xca06c9['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x282b5e['UniverSheetsUIPlugin']],[_0x461ff2['UniverSheetsFormulaPlugin']],[_0x543631[_0xa8e1e3(0x1f1)]],[_0x13b251['UniverCollaborationPlugin']],[_0x526e63['UniverSheetsFilterPlugin']],[_0x4b230b[_0xa8e1e3(0x2a5)]],[_0x545a89[_0xa8e1e3(0x1bb)]],[_0xa8139b['UniverSheetsConditionalFormattingUIPlugin']],[_0xc3bffb[_0xa8e1e3(0x29e)]],[_0x54f247[_0xa8e1e3(0x261)]],[_0x41c8ef['UniverDataValidationPlugin']],[_0x22225a[_0xa8e1e3(0x2d4)]],[_0x1b3eb5['UniverSheetsDataValidationUIPlugin']],[_0x407dbd[_0xa8e1e3(0x1be)],{'notExecuteFormula':!0x0}],[_0x371330[_0xa8e1e3(0x27f)]],[_0x1ca531[_0xa8e1e3(0x18e)]],[_0x5102e5[_0xa8e1e3(0x1b0)]],[_0x5b1054[_0xa8e1e3(0x193)]],[_0x1ef61f['UniverSheetSparklineUIPlugin']],[_0x133915[_0xa8e1e3(0x1fa)]],[_0x5d0f2c[_0xa8e1e3(0x28d)]],[_0x2e1b6d[_0xa8e1e3(0x2a2)]],[_0x139710['UniverSheetsShapeUIPlugin']],[_0x314dc2[_0xa8e1e3(0x1b7)],{'notExecuteFormula':!0x0}],[_0x4a170[_0xa8e1e3(0x1b9)]]][_0xa8e1e3(0x2d1)](([_0x19330f,_0x1640b7])=>this['registerPlugin'](_0x19330f,_0x1640b7));}[_0x1b6d6f(0x266)](){const _0x214e78=_0x1b6d6f;super[_0x214e78(0x266)](),this[_0x214e78(0x1af)](),this['_pluginMap'][_0x214e78(0x243)]();}[_0x1b6d6f(0x1e3)](_0x4a085b,_0x5d77cc,_0x1ea04d){const _0x1c721d=_0x1b6d6f;if(this[_0x1c721d(0x26e)][_0x1c721d(0x25b)](_0x4a085b[_0x1c721d(0x278)])&&!_0x1ea04d)throw Error(_0x1c721d(0x2e8)+_0x4a085b[_0x1c721d(0x278)]+_0x1c721d(0x216));this[_0x1c721d(0x26e)]['set'](_0x4a085b[_0x1c721d(0x278)],[_0x4a085b,_0x5d77cc]);}[_0x1b6d6f(0x274)](){const _0x4a2a84=_0x1b6d6f;return Array['from'](this[_0x4a2a84(0x26e)][_0x4a2a84(0x20b)]());}[_0x1b6d6f(0x23e)](_0x1e9a78,_0x370ca7){const _0x5df7e3=_0x1b6d6f;let _0x4b7601=document[_0x5df7e3(0x1c3)](_0x4282a9);_0x4b7601&&(_0x4b7601[_0x5df7e3(0x18c)]['display']='block',this[_0x5df7e3(0x199)](_0x1e9a78,_0x4282a9,_0x370ca7));}[_0x1b6d6f(0x1af)](){const _0x4f074a=_0x1b6d6f;var _0x3b9054;this[_0x4f074a(0x1e4)][_0x4f074a(0x266)](),(_0x3b9054=this[_0x4f074a(0x235)])==null||_0x3b9054[_0x4f074a(0x266)](),this[_0x4f074a(0x1a3)][_0x4f074a(0x195)](null);let _0x4b07c3=document[_0x4f074a(0x1c3)](_0x4282a9);_0x4b07c3&&(_0x4b07c3[_0x4f074a(0x18c)][_0x4f074a(0x2c7)]=_0x4f074a(0x214),this[_0x4f074a(0x1ac)]&&(this['_internalWebWorker'][_0x4f074a(0x22c)](),this['_internalWebWorker']=null));}[_0x1b6d6f(0x199)](_0x2aaaa3,_0x86b0a9,_0x3340b2){const _0x1c3fda=_0x1b6d6f;var _0x53c05f,_0x201dc6,_0x345d81,_0x1b98ad,_0x212b59;if(this['historyUniver'])return;let _0x80c5c5=new _0x3e2e2e[(_0x1c3fda(0x251))]({'locales':{[this[_0x1c3fda(0x236)][_0x1c3fda(0x224)]()]:this[_0x1c3fda(0x236)][_0x1c3fda(0x2b5)]()},'override':[[_0x3e2e2e['IAuthzIoService'],{'useClass':_0x5803d8['AuthzIoHttpService']}]]}),_0x3f4e0b=_0x80c5c5[_0x1c3fda(0x2ad)]();this[_0x1c3fda(0x19f)](this[_0x1c3fda(0x29d)]['darkMode$'][_0x1c3fda(0x262)](_0x9aea84=>{const _0xba97e6=_0x1c3fda;_0x3f4e0b['get'](_0x3e2e2e[_0xba97e6(0x2c4)])[_0xba97e6(0x24a)](_0x9aea84);})),this[_0x1c3fda(0x19f)](this[_0x1c3fda(0x29d)]['currentTheme$']['subscribe'](_0x32e50c=>{const _0x15b86c=_0x1c3fda;_0x3f4e0b['get'](_0x3e2e2e[_0x15b86c(0x2c4)])[_0x15b86c(0x233)](_0x32e50c);})),_0x3f4e0b[_0x1c3fda(0x1b6)](_0x3e2e2e[_0x1c3fda(0x208)])[_0x1c3fda(0x19c)](this[_0x1c3fda(0x236)]['getCurrentLocale']()),_0x3f4e0b[_0x1c3fda(0x1b6)](_0x3e2e2e[_0x1c3fda(0x2cf)])[_0x1c3fda(0x28b)](_0x5803d8[_0x1c3fda(0x285)],this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x5803d8[_0x1c3fda(0x285)]));let _0x47a6e7=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x2ee31a[_0x1c3fda(0x29c)]);_0x47a6e7&&_0x80c5c5[_0x1c3fda(0x1e3)](_0x2ee31a['UniverLicensePlugin'],{'license':_0x47a6e7['ls']});let _0x557ac9=(_0x53c05f=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)]('edit-history-loader.config'))==null?void 0x0:_0x53c05f[_0x1c3fda(0x206)],_0x130a14=!!_0x557ac9;_0x130a14&&(this[_0x1c3fda(0x1ac)]=_0x557ac9 instanceof Worker?_0x557ac9:null,_0x80c5c5[_0x1c3fda(0x1e3)](_0x29f076[_0x1c3fda(0x2c5)],{'workerURL':_0x557ac9})),this['_pluginMap'][_0x1c3fda(0x2d1)](([_0x4bd071,_0xc1b84d])=>{const _0x2505bf=_0x1c3fda;_0x80c5c5[_0x2505bf(0x1e3)](_0x4bd071,_0xc1b84d);}),_0x80c5c5[_0x1c3fda(0x1e3)](_0x335bbd['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x201dc6=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x1c3fda(0x1d6)))==null?void 0x0:_0x201dc6['historyListServerUrl'],'historyPanelComponentKey':(_0x345d81=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x1c3fda(0x1d6)))==null?void 0x0:_0x345d81[_0x1c3fda(0x246)],'historyPanelHidden':(_0x1b98ad=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x1c3fda(0x1d6)))==null?void 0x0:_0x1b98ad['historyPanelHidden'],'historyAIassistantEnabled':(_0x212b59=this['_configService'][_0x1c3fda(0x21c)](_0x1c3fda(0x1d6)))==null?void 0x0:_0x212b59['historyAIassistantEnabled']}),_0x3f4e0b[_0x1c3fda(0x2ca)](_0x1917f6=>{this['_initListener'](_0x1917f6,_0x2aaaa3);}),this[_0x1c3fda(0x1a3)][_0x1c3fda(0x195)](_0x80c5c5);let _0x1c952d=_0x3f4e0b[_0x1c3fda(0x1b6)](_0x335bbd[_0x1c3fda(0x27d)]),_0x478f04=this[_0x1c3fda(0x1eb)](_0x2aaaa3),_0x507e51=()=>{const _0x30f427=_0x1c3fda;_0x3340b2?_0x1c952d[_0x30f427(0x1c9)](_0x2aaaa3,_0x86b0a9,_0x478f04,_0x3340b2):_0x1c952d[_0x30f427(0x2d8)](_0x2aaaa3,_0x86b0a9,_0x478f04);};if(this[_0x1c3fda(0x1c8)][_0x1c3fda(0x22b)]({'content':this[_0x1c3fda(0x236)]['t'](_0x1c3fda(0x1f9)),'type':_0x3845ae['MessageType']['Loading']}),_0x130a14)try{_0x3f4e0b[_0x1c3fda(0x1b6)](_0x29f076['IRemoteInstanceService'])[_0x1c3fda(0x18a)]()[_0x1c3fda(0x1f7)](()=>{_0x507e51();});}catch{_0x507e51();}else _0x507e51();}['_initListener'](_0x1b520f,_0xe7eba6){const _0x38507f=_0x1b6d6f;let _0x5083da=_0x1b520f[_0x38507f(0x1b6)](_0x335bbd['HistoryManagerService']);this[_0x38507f(0x1e4)][_0x38507f(0x254)](_0x5083da['status$'][_0x38507f(0x262)](_0x57c915=>{const _0x4379d0=_0x38507f;switch(_0x57c915){case _0x335bbd[_0x4379d0(0x281)][_0x4379d0(0x1fd)]:this[_0x4379d0(0x2a4)][_0x4379d0(0x1a4)](),this[_0x4379d0(0x1c5)][_0x4379d0(0x18d)]();break;case _0x335bbd[_0x4379d0(0x281)][_0x4379d0(0x2c0)]:this[_0x4379d0(0x2a9)]['executeCommand'](_0x314063['id']),this[_0x4379d0(0x1af)]();break;case _0x335bbd['HistoryModeStatus'][_0x4379d0(0x2e3)]:this[_0x4379d0(0x1af)](),this['_messageService'][_0x4379d0(0x22b)]({'content':this[_0x4379d0(0x236)]['t'](_0x4379d0(0x1a1)),'type':_0x3845ae[_0x4379d0(0x192)][_0x4379d0(0x2e3)],'duration':0xbb8});break;default:break;}})),this[_0x38507f(0x1e4)][_0x38507f(0x254)](_0x5083da[_0x38507f(0x291)][_0x38507f(0x262)](async _0x253153=>{const _0xd0ec9e=_0x38507f;_0x253153&&this['_commandService'][_0xd0ec9e(0x210)](_0x13b251[_0xd0ec9e(0x1fb)]['id'],{'unitId':_0xe7eba6,'revision':_0x253153});}));}[_0x1b6d6f(0x1eb)](_0x21aab7){const _0x13fe8b=_0x1b6d6f;let _0x5a61e6=this[_0x13fe8b(0x220)][_0x13fe8b(0x2c9)](_0x21aab7)[_0x13fe8b(0x2db)]()[_0x13fe8b(0x1ed)](_0x987ae8=>_0x987ae8[_0x13fe8b(0x1ea)]()),_0x436a12=new _0xca06c9[(_0x13fe8b(0x25f))](_0x21aab7)['id'],_0x204177=_0x5a61e6[_0x13fe8b(0x1ed)](_0x24242f=>new _0xca06c9['WorksheetEditPermission'](_0x21aab7,_0x24242f)['id']),_0x2f9255=_0x5a61e6['map'](_0x3a1fbc=>this[_0x13fe8b(0x1e2)][_0x13fe8b(0x1a7)](_0x21aab7,_0x3a1fbc)[_0x13fe8b(0x1ed)](_0x2ecfc7=>new _0xca06c9[(_0x13fe8b(0x226))](_0x21aab7,_0x3a1fbc,_0x2ecfc7[_0x13fe8b(0x1cd)])['id']))[_0x13fe8b(0x218)](),_0xe62f1c=new _0xca06c9[(_0x13fe8b(0x2ab))](_0x21aab7)['id'];return this[_0x13fe8b(0x22f)][_0x13fe8b(0x2b1)]([_0x436a12,..._0x204177,..._0x2f9255,_0xe62f1c])[_0x13fe8b(0x267)](_0x84b012=>!!_0x84b012[_0x13fe8b(0x234)]);}};_0x36017f=_0x1ad602([_0x1c7dd1(0x0,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e[_0x1b6d6f(0x208)])),_0x1c7dd1(0x1,_0x3e2e2e[_0x1b6d6f(0x1c0)]),_0x1c7dd1(0x2,_0x3e2e2e[_0x1b6d6f(0x2cf)]),_0x1c7dd1(0x3,_0x3e2e2e['ICommandService']),_0x1c7dd1(0x4,_0x391796['IMessageService']),_0x1c7dd1(0x5,_0x3e2e2e['IPermissionService']),_0x1c7dd1(0x6,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0xca06c9[_0x1b6d6f(0x23c)])),_0x1c7dd1(0x7,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x391796[_0x1b6d6f(0x245)])),_0x1c7dd1(0x8,(0x0,_0x3e2e2e['Inject'])(_0x391796[_0x1b6d6f(0x1a2)])),_0x1c7dd1(0x9,(0x0,_0x3e2e2e['Inject'])(_0x3e2e2e[_0x1b6d6f(0x2c4)]))],_0x36017f);let _0x3a01bc={'id':_0x1b6d6f(0x2d5),'type':_0x3e2e2e[_0x1b6d6f(0x2c1)]['OPERATION'],'handler':_0x7826e4=>{const _0x488071=_0x1b6d6f;let _0x11b966=_0x7826e4[_0x488071(0x1b6)](_0x36017f),{unitId:_0x228ea8}=(0x0,_0xca06c9[_0x488071(0x1b3)])(_0x7826e4[_0x488071(0x1b6)](_0x3e2e2e[_0x488071(0x1c0)]))||{};return _0x228ea8?(_0x11b966[_0x488071(0x23e)](_0x228ea8),!0x0):!0x1;}},_0x314063={'id':_0x1b6d6f(0x1b2),'type':_0x3e2e2e[_0x1b6d6f(0x2c1)][_0x1b6d6f(0x1a5)],'handler':()=>!0x0};var _0x2a5dc3=_0x1b6d6f(0x24e),_0x32fba2=_0x1b6d6f(0x25c);function _0x352ec7({ref:_0xe97e22,..._0x4671c1}){const _0x528144=_0x1b6d6f;let {icon:_0x452628,id:_0x136c0b,className:_0x463b00,extend:_0x3160c6,..._0x5c20b8}=_0x4671c1,_0x232b0e=(_0x528144(0x283)+_0x136c0b+'\x20'+(_0x463b00||''))[_0x528144(0x29a)](),_0x102227=(0x0,_0x3237fc[_0x528144(0x1fe)])('_'+_0x5c2bd4());return _0x1b568a(_0x452628,''+_0x136c0b,{'defIds':_0x452628[_0x528144(0x1b1)],'idSuffix':_0x102227['current']},{'ref':_0xe97e22,'className':_0x232b0e,..._0x5c20b8},_0x3160c6);}function _0x1b568a(_0x59bb4d,_0x3739d3,_0x4a1b69,_0x330b06,_0x1daa84){const _0x1dd866=_0x1b6d6f;return(0x0,_0x3237fc[_0x1dd866(0x19d)])(_0x59bb4d['tag'],{'key':_0x3739d3,..._0x598d7d(_0x59bb4d,_0x4a1b69,_0x1daa84),..._0x330b06},(_0x4a28c0(_0x59bb4d,_0x4a1b69)[_0x1dd866(0x215)]||[])['map']((_0xce19a6,_0x7bc21d)=>_0x1b568a(_0xce19a6,_0x3739d3+'-'+_0x59bb4d['tag']+'-'+_0x7bc21d,_0x4a1b69,void 0x0,_0x1daa84)));}function _0x598d7d(_0x1bd939,_0x110546,_0x1ea108){const _0x174b15=_0x1b6d6f;let _0x2e8daa={..._0x1bd939[_0x174b15(0x29f)]};_0x1ea108!=null&&_0x1ea108['colorChannel1']&&_0x2e8daa[_0x174b15(0x287)]==='colorChannel1'&&(_0x2e8daa[_0x174b15(0x287)]=_0x1ea108[_0x174b15(0x1bc)]),_0x1bd939['tag']==='mask'&&_0x2e8daa['id']&&(_0x2e8daa['id']+=_0x110546[_0x174b15(0x1ab)]),Object['entries'](_0x2e8daa)['forEach'](([_0x306f19,_0x2639a2])=>{const _0x1579ad=_0x174b15;_0x306f19===_0x1579ad(0x221)&&typeof _0x2639a2=='string'&&(_0x2e8daa[_0x306f19]=_0x2639a2[_0x1579ad(0x253)](/url\(#(.*)\)/,_0x1579ad(0x260)+_0x110546[_0x1579ad(0x1ab)]+')'));});let {defIds:_0x190dc8}=_0x110546;return!_0x190dc8||_0x190dc8['length']===0x0?_0x2e8daa:(_0x1bd939[_0x174b15(0x2e4)]===_0x174b15(0x2aa)&&_0x2e8daa[_0x174b15(0x1c1)]&&(_0x2e8daa[_0x174b15(0x1c1)]+=_0x110546[_0x174b15(0x1ab)]),Object[_0x174b15(0x27e)](_0x2e8daa)[_0x174b15(0x2d1)](([_0x520110,_0x1655db])=>{const _0x951be2=_0x174b15;typeof _0x1655db==_0x951be2(0x1d0)&&(_0x2e8daa[_0x520110]=_0x1655db[_0x951be2(0x253)](/url\(#(.*)\)/,_0x951be2(0x260)+_0x110546[_0x951be2(0x1ab)]+')'));}),_0x2e8daa);}function _0x4a28c0(_0x1923c3,_0x292ecd){const _0x5a0434=_0x1b6d6f;var _0xd3d2a3;let {defIds:_0x805907}=_0x292ecd;return!_0x805907||_0x805907[_0x5a0434(0x1bd)]===0x0?_0x1923c3:_0x1923c3[_0x5a0434(0x2e4)]===_0x5a0434(0x2cc)&&(_0xd3d2a3=_0x1923c3[_0x5a0434(0x215)])!=null&&_0xd3d2a3['length']?{..._0x1923c3,'children':_0x1923c3[_0x5a0434(0x215)]['map'](_0x2d5f77=>typeof _0x2d5f77[_0x5a0434(0x29f)]['id']==_0x5a0434(0x1d0)&&_0x805907&&_0x805907[_0x5a0434(0x1df)](_0x2d5f77['attrs']['id'])?{..._0x2d5f77,'attrs':{..._0x2d5f77['attrs'],'id':_0x2d5f77[_0x5a0434(0x29f)]['id']+_0x292ecd[_0x5a0434(0x1ab)]}}:_0x2d5f77)}:_0x1923c3;}function _0x5c2bd4(){const _0x411cec=_0x1b6d6f;return Math['random']()[_0x411cec(0x2da)](0x24)['substring'](0x2,0x8);}_0x352ec7['displayName']=_0x1b6d6f(0x1e9);let _0x39c788={'tag':_0x1b6d6f(0x25a),'attrs':{'xmlns':_0x1b6d6f(0x1fc),'fill':_0x1b6d6f(0x214),'viewBox':_0x1b6d6f(0x1ca),'width':_0x1b6d6f(0x200),'height':_0x1b6d6f(0x200)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x1b6d6f(0x26b),'attrs':{'d':_0x1b6d6f(0x21a)}},{'tag':_0x1b6d6f(0x26b),'attrs':{'d':_0x1b6d6f(0x279)}}]},{'tag':_0x1b6d6f(0x2cc),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1b6d6f(0x230)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x1b6d6f(0x299)}}]}]}],'defIds':[_0x1b6d6f(0x230)]},_0x272b5a=(0x0,_0x3237fc['forwardRef'])(function(_0x24fe72,_0x18c1b3){const _0x15569b=_0x1b6d6f;return(0x0,_0x3237fc[_0x15569b(0x19d)])(_0x352ec7,Object[_0x15569b(0x27c)]({},_0x24fe72,{'id':'history-icon','ref':_0x18c1b3,'icon':_0x39c788}));});_0x272b5a[_0x1b6d6f(0x1d4)]=_0x1b6d6f(0x207);let _0xbe6f10=function(_0x42cc92){const _0x1e070=_0x1b6d6f;return _0x42cc92[_0x42cc92['UNIVER_UNKNOWN']=0x0]=_0x1e070(0x189),_0x42cc92[_0x42cc92['UNIVER_DOC']=0x1]=_0x1e070(0x1f5),_0x42cc92[_0x42cc92[_0x1e070(0x2e2)]=0x2]='UNIVER_SHEET',_0x42cc92[_0x42cc92['UNIVER_SLIDE']=0x3]=_0x1e070(0x227),_0x42cc92[_0x42cc92['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x42cc92[_0x42cc92['UNRECOGNIZED']=-0x1]=_0x1e070(0x1a9),_0x42cc92;}({});function _0x55b275(_0x8458eb){const _0x2d6926=_0x1b6d6f;return{'id':_0x3a01bc['id'],'type':_0x391796['MenuItemType'][_0x2d6926(0x2b8)],'icon':_0x2d6926(0x207),'tooltip':_0x2d6926(0x1cf),'hidden$':(0x0,_0x391796['getMenuHiddenObservable'])(_0x8458eb,_0x3e2e2e[_0x2d6926(0x222)][_0x2d6926(0x2e2)]),'disabled$':(0x0,_0x282b5e[_0x2d6926(0x21d)])(_0x8458eb,{'workbookTypes':[_0xca06c9['WorkbookEditablePermission'],_0xca06c9[_0x2d6926(0x196)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x2f76e9={[_0x391796['RibbonStartGroup'][_0x1b6d6f(0x1f6)]]:{[_0x3a01bc['id']]:{'order':0.2,'menuItemFactory':_0x55b275}}},_0x353e40=class extends _0x3e2e2e[_0x1b6d6f(0x209)]{constructor(_0xafabad,_0x55fed1,_0xb33699,_0x575931,_0x288772,_0x36f7b0,_0x5e5d74,_0xa0b620,_0x4528bc,_0x4f38a1,_0x2be2b3){const _0x9c0485=_0x1b6d6f;super(),this[_0x9c0485(0x2a9)]=_0xafabad,this[_0x9c0485(0x202)]=_0x55fed1,this[_0x9c0485(0x282)]=_0xb33699,this['_historyManagerService']=_0x575931,this['_localeService']=_0x288772,this[_0x9c0485(0x1c8)]=_0x36f7b0,this[_0x9c0485(0x24d)]=_0x5e5d74,this[_0x9c0485(0x1cc)]=_0xa0b620,this[_0x9c0485(0x1d7)]=_0x4528bc,this[_0x9c0485(0x220)]=_0x4f38a1,this['_urlService']=_0x2be2b3,_0x5d6976(this,_0x9c0485(0x190),null),this[_0x9c0485(0x1b5)]();}[_0x1b6d6f(0x1b5)](){const _0x220b71=_0x1b6d6f;[_0x3a01bc,_0x314063][_0x220b71(0x2d1)](_0x4330b8=>this['disposeWithMe']((0x0,_0x3e2e2e[_0x220b71(0x252)])(this[_0x220b71(0x2a9)][_0x220b71(0x2e0)](_0x4330b8)))),this[_0x220b71(0x19f)](this[_0x220b71(0x282)]['register'](_0x220b71(0x207),_0x272b5a)),this['_menuManagerService'][_0x220b71(0x259)](_0x2f76e9),this[_0x220b71(0x19f)](this[_0x220b71(0x2a9)][_0x220b71(0x2c2)](async(_0x370baf,_0x47e4cc)=>{const _0x4b9f06=_0x220b71;if(_0x370baf['id']===_0x13b251[_0x4b9f06(0x1fb)]['id']){let {unitId:_0x1bdc46}=_0x370baf[_0x4b9f06(0x2b6)];this['_messageService']['show']({'content':this[_0x4b9f06(0x236)]['t']('editHistory.panel.reverting'),'type':_0x3845ae[_0x4b9f06(0x192)][_0x4b9f06(0x1d3)],'duration':0x1388});let _0x2855a2=this[_0x4b9f06(0x24d)][_0x4b9f06(0x2b3)](_0x1bdc46);_0x47e4cc!=null&&_0x47e4cc[_0x4b9f06(0x225)]?this['_handleRevertAcknowledgement'](_0x2855a2,async()=>(setTimeout(()=>window[_0x4b9f06(0x289)][_0x4b9f06(0x28e)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x2855a2,async()=>{const _0x55c577=_0x4b9f06;let _0x4b8fb5=this['_univerInstanceService'][_0x55c577(0x21b)](_0xbe6f10[_0x55c577(0x2e2)]),_0x47ad46=_0x4b8fb5==null?void 0x0:_0x4b8fb5[_0x55c577(0x1a6)]();if(!_0x47ad46)return!0x1;this[_0x55c577(0x220)][_0x55c577(0x2d9)](_0x1bdc46);let _0x223e1d=await this['_dataLoaderService'][_0x55c577(0x1e8)](_0x1bdc46,_0xbe6f10[_0x55c577(0x2e2)]);return _0x223e1d&&_0x223e1d instanceof _0x3e2e2e['Workbook']?(await this[_0x55c577(0x2bc)](_0x223e1d,_0x47ad46[_0x55c577(0x1ea)]()),!0x0):!0x1;});}}));}[_0x1b6d6f(0x20c)](_0x5e4d6b,_0x1261b4,_0x58d63d=!0x1){const _0x4af007=_0x1b6d6f;let _0x1fe09a=(0x0,_0x4620fb[_0x4af007(0x2d3)])([_0x5e4d6b[_0x4af007(0x23f)]['event$'],_0x5e4d6b['state$']])[_0x4af007(0x262)](async([_0x136820,_0x5fd802])=>{const _0x23bc70=_0x4af007;if(_0x136820['eventID']===_0x13b251['CollaborationEvent'][_0x23bc70(0x1c2)]&&(_0x5fd802==null?void 0x0:_0x5fd802[_0x23bc70(0x1e1)])===_0x5803d8[_0x23bc70(0x255)]['SYNCED']&&_0x136820[_0x23bc70(0x276)]['mutations'][_0x23bc70(0x1b8)](_0x5d40c2=>_0x5d40c2['id']===_0x13b251['RevertRevisionMutation']['id'])&&await _0x1261b4()){var _0x6ee206;this[_0x23bc70(0x2d0)][_0x23bc70(0x1af)](),_0x1fe09a[_0x23bc70(0x19a)](),this[_0x23bc70(0x190)]&&clearTimeout(this[_0x23bc70(0x190)]),await((_0x6ee206=this[_0x23bc70(0x1cc)])==null?void 0x0:_0x6ee206['exhaustSavingTask']()),this[_0x23bc70(0x1c8)]['removeAll']();}});_0x58d63d&&(this[_0x4af007(0x190)]=setTimeout(()=>{const _0xa0edc5=_0x4af007;_0x1fe09a['unsubscribe'](),this[_0xa0edc5(0x1c8)][_0xa0edc5(0x22b)]({'content':this[_0xa0edc5(0x236)]['t'](_0xa0edc5(0x28c)),'type':_0x3845ae[_0xa0edc5(0x192)][_0xa0edc5(0x2e3)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x1ee5ba,_0x1ea39c){const _0x36ebef=_0x1b6d6f;await this[_0x36ebef(0x239)](_0x1ee5ba,_0x1ea39c),_0x1ee5ba[_0x36ebef(0x1da)][_0x36ebef(0x2e6)]((0x0,_0x4620fb['takeUntil'])(this['dispose$']))['subscribe'](_0x126aa6=>{const _0x3de387=_0x36ebef;_0x126aa6&&this[_0x3de387(0x270)](_0x126aa6);}),this['_urlService'][_0x36ebef(0x201)][_0x36ebef(0x2e6)]((0x0,_0x4620fb[_0x36ebef(0x257)])(this['dispose$']))[_0x36ebef(0x262)](()=>this['_updateSubUnitFromURLParams'](_0x1ee5ba,_0x1ea39c));}[_0x1b6d6f(0x270)](_0x258076,_0x26c2a3=!0x1){const _0x4a195e=_0x1b6d6f;let _0x17f97a=this[_0x4a195e(0x2a3)][_0x4a195e(0x242)](_0x4a195e(0x23b));_0x258076['getSheetId']()!==_0x17f97a&&this['_urlService'][_0x4a195e(0x1d2)]('subunit',_0x258076['getSheetId'](),_0x26c2a3);}async['_updateSubUnitFromURLParams'](_0x40b187,_0x5abd08){const _0x5e897a=_0x1b6d6f;var _0xb67486;if(!_0x5abd08||!_0x40b187[_0x5e897a(0x293)](_0x5abd08)){let _0x14dfc4=_0x40b187[_0x5e897a(0x240)]()[0x0],_0x4f7271=_0x40b187[_0x5e897a(0x293)](_0x14dfc4);if(!_0x4f7271)return;this[_0x5e897a(0x270)](_0x4f7271,!0x0),await this[_0x5e897a(0x2a9)][_0x5e897a(0x210)](_0xca06c9[_0x5e897a(0x2a0)]['id'],{'unitId':_0x40b187['getUnitId'](),'subUnitId':_0x14dfc4});return;}((_0xb67486=_0x40b187['getActiveSheet']())==null?void 0x0:_0xb67486[_0x5e897a(0x1ea)]())!==_0x5abd08&&await this[_0x5e897a(0x2a9)][_0x5e897a(0x210)](_0xca06c9[_0x5e897a(0x2a0)]['id'],{'unitId':_0x40b187['getUnitId'](),'subUnitId':_0x5abd08});}};_0x353e40=_0x1ad602([_0x1c7dd1(0x0,_0x3e2e2e[_0x1b6d6f(0x250)]),_0x1c7dd1(0x1,_0x391796[_0x1b6d6f(0x26f)]),_0x1c7dd1(0x2,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x391796[_0x1b6d6f(0x22e)])),_0x1c7dd1(0x3,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x36017f)),_0x1c7dd1(0x4,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e[_0x1b6d6f(0x208)])),_0x1c7dd1(0x5,_0x391796[_0x1b6d6f(0x2a7)]),_0x1c7dd1(0x6,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x5803d8[_0x1b6d6f(0x2b2)])),_0x1c7dd1(0x7,_0x5803d8['ILocalCacheService']),_0x1c7dd1(0x8,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x5803d8[_0x1b6d6f(0x21e)])),_0x1c7dd1(0x9,_0x3e2e2e[_0x1b6d6f(0x1c0)]),_0x1c7dd1(0xa,_0x393b7d[_0x1b6d6f(0x232)])],_0x353e40);let _0xc7efee=_0x1b6d6f(0x19b),_0x406d8d=class extends _0x3e2e2e[_0x1b6d6f(0x1bf)]{constructor(_0x293625,_0x440555,_0x24e8dd,_0x5062d6,_0x373569,_0x95e229,_0x2a0cac,_0x1c7d0d,_0x44e127,_0xdd54ef){const _0x84ec0f=_0x1b6d6f;super(),this['_localeService']=_0x293625,this[_0x84ec0f(0x220)]=_0x440555,this[_0x84ec0f(0x2de)]=_0x24e8dd,this[_0x84ec0f(0x2a9)]=_0x5062d6,this[_0x84ec0f(0x1c8)]=_0x373569,this['_permissionService']=_0x95e229,this[_0x84ec0f(0x1e2)]=_0x2a0cac,this[_0x84ec0f(0x2a4)]=_0x1c7d0d,this[_0x84ec0f(0x1c5)]=_0x44e127,this['_themeService']=_0xdd54ef,_0x5d6976(this,_0x84ec0f(0x1a3),new _0x4620fb[(_0x84ec0f(0x273))](null)),_0x5d6976(this,'historyUniver$',this[_0x84ec0f(0x1a3)]['asObservable']()),_0x5d6976(this,'_disposableCollection',new _0x3e2e2e['DisposableCollection']()),_0x5d6976(this,_0x84ec0f(0x26e),new Map()),_0x5d6976(this,'_internalWebWorker',null),this[_0x84ec0f(0x1b5)]();}get[_0x1b6d6f(0x235)](){const _0x168f45=_0x1b6d6f;return this['_historyUniver$'][_0x168f45(0x234)];}['_init'](){const _0x237d26=_0x1b6d6f;this[_0x237d26(0x1f3)](),this[_0x237d26(0x29b)]();}[_0x1b6d6f(0x1f3)](){const _0xd38a6=_0x1b6d6f;var _0x293aed;let _0x3bcfda=(_0x293aed=this['_configService'][_0xd38a6(0x21c)](_0xd38a6(0x241)))==null?_0xd38a6(0x20d):_0x293aed,_0x3bb231=document[_0xd38a6(0x1c3)](_0x3bcfda);if(!_0x3bb231)return;let _0x37e405=document[_0xd38a6(0x19d)](_0xd38a6(0x1c7));_0x37e405['id']=_0xc7efee,_0x37e405[_0xd38a6(0x217)][_0xd38a6(0x229)]=_0xd38a6(0x272),_0x37e405['style'][_0xd38a6(0x2e1)]=_0xd38a6(0x248),_0x37e405['style'][_0xd38a6(0x26c)]='0',_0x37e405[_0xd38a6(0x18c)][_0xd38a6(0x1de)]='0',_0x37e405[_0xd38a6(0x18c)]['width']=_0xd38a6(0x271),_0x37e405[_0xd38a6(0x18c)][_0xd38a6(0x294)]=_0xd38a6(0x271),_0x37e405['style'][_0xd38a6(0x2b7)]='49',_0x37e405[_0xd38a6(0x18c)][_0xd38a6(0x2c7)]=_0xd38a6(0x214),_0x3bb231['appendChild'](_0x37e405);}[_0x1b6d6f(0x29b)](){const _0x390b32=_0x1b6d6f;[[_0x517b15[_0x390b32(0x25d)]],[_0x391796['UniverMobileUIPlugin'],{'container':_0xc7efee,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x391796[_0x390b32(0x245)],null]]}],[_0x269397[_0x390b32(0x212)]],[_0x44b2d2['UniverDrawingPlugin'],{'override':[[_0x44b2d2[_0x390b32(0x1ba)],null]]}],[_0x2bfaaa[_0x390b32(0x204)],{'hasScroll':!0x1}],[_0xe42b4c[_0x390b32(0x1ae)]],[_0x2eab93[_0x390b32(0x2e7)]],[_0xca06c9[_0x390b32(0x191)],{'notExecuteFormula':!0x0}],[_0x282b5e[_0x390b32(0x1a0)]],[_0x461ff2['UniverSheetsFormulaPlugin']],[_0x543631[_0x390b32(0x1f1)]],[_0x13b251[_0x390b32(0x228)]],[_0x526e63[_0x390b32(0x265)]],[_0x545a89['UniverSheetsConditionalFormattingPlugin']],[_0xc3bffb[_0x390b32(0x29e)]],[_0x54f247[_0x390b32(0x261)]],[_0x41c8ef[_0x390b32(0x1e5)]],[_0x22225a[_0x390b32(0x2d4)]],[_0x1b3eb5[_0x390b32(0x290)]],[_0x407dbd[_0x390b32(0x1be)],{'notExecuteFormula':!0x0}],[_0x371330[_0x390b32(0x27f)]],[_0x1ca531[_0x390b32(0x18e)]],[_0x5102e5[_0x390b32(0x1b0)]],[_0x5b1054['UniverSheetSparklinePlugin']],[_0x1ef61f[_0x390b32(0x277)]],[_0x133915[_0x390b32(0x1fa)]],[_0x5d0f2c['UniverSheetsChartUIPlugin']],[_0x2e1b6d[_0x390b32(0x2a2)]],[_0x139710[_0x390b32(0x198)]],[_0x314dc2['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x4a170[_0x390b32(0x1b9)]]][_0x390b32(0x2d1)](([_0x3d75a5,_0x476955])=>this['registerPlugin'](_0x3d75a5,_0x476955));}[_0x1b6d6f(0x266)](){const _0x4c3a9e=_0x1b6d6f;super[_0x4c3a9e(0x266)](),this[_0x4c3a9e(0x1af)](),this[_0x4c3a9e(0x26e)][_0x4c3a9e(0x243)]();}[_0x1b6d6f(0x1e3)](_0x2e734a,_0x7e5b9b,_0x2e2ded){const _0x387355=_0x1b6d6f;if(this['_pluginMap'][_0x387355(0x25b)](_0x2e734a[_0x387355(0x278)])&&!_0x2e2ded)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x2e734a[_0x387355(0x278)]+'\x20has\x20been\x20registered.');this[_0x387355(0x26e)][_0x387355(0x1e0)](_0x2e734a[_0x387355(0x278)],[_0x2e734a,_0x7e5b9b]);}['getAllPlugins'](){const _0x18e5cd=_0x1b6d6f;return Array[_0x18e5cd(0x237)](this[_0x18e5cd(0x26e)][_0x18e5cd(0x20b)]());}[_0x1b6d6f(0x23e)](_0x369888,_0x4c9ed8){const _0x22d1a1=_0x1b6d6f;let _0x4a3d3f=document['getElementById'](_0xc7efee);_0x4a3d3f&&(_0x4a3d3f[_0x22d1a1(0x18c)][_0x22d1a1(0x2c7)]=_0x22d1a1(0x211),this[_0x22d1a1(0x199)](_0x369888,_0xc7efee,_0x4c9ed8));}[_0x1b6d6f(0x1af)](){const _0x5a9d6d=_0x1b6d6f;var _0x2ce27c;this['_disposableCollection'][_0x5a9d6d(0x266)](),(_0x2ce27c=this[_0x5a9d6d(0x235)])==null||_0x2ce27c[_0x5a9d6d(0x266)](),this[_0x5a9d6d(0x1a3)][_0x5a9d6d(0x195)](null);let _0x425abf=document[_0x5a9d6d(0x1c3)](_0xc7efee);_0x425abf&&(_0x425abf['style'][_0x5a9d6d(0x2c7)]=_0x5a9d6d(0x214),this['_internalWebWorker']&&(this['_internalWebWorker']['terminate'](),this['_internalWebWorker']=null));}['_initUniver'](_0x2856c4,_0x4bf00d,_0x2b3f1c){const _0xff5b70=_0x1b6d6f;var _0x6c73b,_0x4b0548,_0x423c33,_0x53461b;if(this[_0xff5b70(0x235)])return;let _0x525228=new _0x3e2e2e[(_0xff5b70(0x251))]({'locales':{[this[_0xff5b70(0x236)][_0xff5b70(0x224)]()]:this[_0xff5b70(0x236)][_0xff5b70(0x2b5)]()},'override':[[_0x3e2e2e[_0xff5b70(0x1aa)],{'useClass':_0x5803d8['AuthzIoHttpService']}]]}),_0xa012f0=_0x525228['__getInjector']();this[_0xff5b70(0x19f)](this['_themeService'][_0xff5b70(0x1b4)][_0xff5b70(0x262)](_0x33f98f=>{const _0xeb1e11=_0xff5b70;_0xa012f0[_0xeb1e11(0x1b6)](_0x3e2e2e['ThemeService'])[_0xeb1e11(0x24a)](_0x33f98f);})),this[_0xff5b70(0x19f)](this['_themeService'][_0xff5b70(0x1d1)][_0xff5b70(0x262)](_0x58733e=>{const _0x2d789a=_0xff5b70;_0xa012f0[_0x2d789a(0x1b6)](_0x3e2e2e[_0x2d789a(0x2c4)])[_0x2d789a(0x233)](_0x58733e);})),_0xa012f0['get'](_0x3e2e2e[_0xff5b70(0x208)])[_0xff5b70(0x19c)](this[_0xff5b70(0x236)][_0xff5b70(0x224)]()),_0xa012f0[_0xff5b70(0x1b6)](_0x3e2e2e[_0xff5b70(0x2cf)])['setConfig'](_0x5803d8[_0xff5b70(0x285)],this[_0xff5b70(0x2de)][_0xff5b70(0x21c)](_0x5803d8['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x448dac=this[_0xff5b70(0x2de)][_0xff5b70(0x21c)](_0x2ee31a[_0xff5b70(0x29c)]);_0x448dac&&_0x525228['registerPlugin'](_0x2ee31a[_0xff5b70(0x244)],{'license':_0x448dac['ls']});let _0x1e1507=(_0x6c73b=this['_configService'][_0xff5b70(0x21c)](_0xff5b70(0x1d6)))==null?void 0x0:_0x6c73b['workerURL'],_0x29dcf5=!!_0x1e1507;_0x29dcf5&&(this[_0xff5b70(0x1ac)]=_0x1e1507 instanceof Worker?_0x1e1507:null,_0x525228[_0xff5b70(0x1e3)](_0x29f076[_0xff5b70(0x2c5)],{'workerURL':_0x1e1507})),this[_0xff5b70(0x26e)][_0xff5b70(0x2d1)](([_0xfb4075,_0x4e7d2c])=>{const _0x4a8821=_0xff5b70;_0x525228[_0x4a8821(0x1e3)](_0xfb4075,_0x4e7d2c);}),_0x525228[_0xff5b70(0x1e3)](_0x335bbd['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x4b0548=this[_0xff5b70(0x2de)][_0xff5b70(0x21c)]('edit-history-loader.config'))==null?void 0x0:_0x4b0548[_0xff5b70(0x231)],'historyPanelComponentKey':(_0x423c33=this[_0xff5b70(0x2de)][_0xff5b70(0x21c)](_0xff5b70(0x1d6)))==null?void 0x0:_0x423c33[_0xff5b70(0x246)],'historyPanelHidden':(_0x53461b=this[_0xff5b70(0x2de)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x53461b['historyPanelHidden']}),_0xa012f0['invoke'](_0x4e546d=>{const _0x396b0=_0xff5b70;this[_0x396b0(0x23d)](_0x4e546d,_0x2856c4);}),this[_0xff5b70(0x1a3)][_0xff5b70(0x195)](_0x525228);let _0x1c943b=_0xa012f0[_0xff5b70(0x1b6)](_0x335bbd[_0xff5b70(0x27d)]),_0x2e5b9c=this[_0xff5b70(0x1eb)](_0x2856c4),_0x195c2a=()=>{const _0x450aec=_0xff5b70;_0x2b3f1c?_0x1c943b[_0x450aec(0x1c9)](_0x2856c4,_0x4bf00d,_0x2e5b9c,_0x2b3f1c):_0x1c943b[_0x450aec(0x2d8)](_0x2856c4,_0x4bf00d,_0x2e5b9c);};if(this[_0xff5b70(0x1c8)][_0xff5b70(0x22b)]({'content':this[_0xff5b70(0x236)]['t'](_0xff5b70(0x1f9)),'type':_0x3845ae['MessageType'][_0xff5b70(0x1d3)]}),_0x29dcf5)try{_0xa012f0[_0xff5b70(0x1b6)](_0x29f076[_0xff5b70(0x203)])[_0xff5b70(0x18a)]()[_0xff5b70(0x1f7)](()=>{_0x195c2a();});}catch{_0x195c2a();}else _0x195c2a();}['_initListener'](_0x368b01,_0x157ac5){const _0x47e51e=_0x1b6d6f;let _0x574ae1=_0x368b01['get'](_0x335bbd[_0x47e51e(0x27d)]);this['_disposableCollection'][_0x47e51e(0x254)](_0x574ae1['status$'][_0x47e51e(0x262)](_0x1db695=>{const _0xf0957b=_0x47e51e;switch(_0x1db695){case _0x335bbd[_0xf0957b(0x281)][_0xf0957b(0x1fd)]:this[_0xf0957b(0x2a4)][_0xf0957b(0x1a4)](),this[_0xf0957b(0x1c5)]['close']();break;case _0x335bbd['HistoryModeStatus']['Exited']:this[_0xf0957b(0x2a9)][_0xf0957b(0x210)](_0x314063['id']),this[_0xf0957b(0x1af)]();break;case _0x335bbd['HistoryModeStatus']['Error']:this['unMountHistoryContent'](),this[_0xf0957b(0x1c8)][_0xf0957b(0x22b)]({'content':this['_localeService']['t']('editHistory.panel.listFetchError'),'type':_0x3845ae['MessageType'][_0xf0957b(0x2e3)],'duration':0xbb8});break;default:break;}})),this[_0x47e51e(0x1e4)][_0x47e51e(0x254)](_0x574ae1[_0x47e51e(0x291)][_0x47e51e(0x262)](async _0x6e3669=>{const _0x2a8777=_0x47e51e;_0x6e3669&&this[_0x2a8777(0x2a9)][_0x2a8777(0x210)](_0x13b251[_0x2a8777(0x1fb)]['id'],{'unitId':_0x157ac5,'revision':_0x6e3669});}));}[_0x1b6d6f(0x1eb)](_0x523127){const _0xc8c493=_0x1b6d6f;let _0x228b5f=this[_0xc8c493(0x220)][_0xc8c493(0x2c9)](_0x523127)[_0xc8c493(0x2db)]()[_0xc8c493(0x1ed)](_0x4f62a0=>_0x4f62a0['getSheetId']()),_0x3c3f90=new _0xca06c9[(_0xc8c493(0x25f))](_0x523127)['id'],_0x4301f7=_0x228b5f[_0xc8c493(0x1ed)](_0x4c8a5a=>new _0xca06c9[(_0xc8c493(0x22a))](_0x523127,_0x4c8a5a)['id']),_0x4f5a5e=_0x228b5f[_0xc8c493(0x1ed)](_0x477f50=>this[_0xc8c493(0x1e2)]['getSubunitRuleList'](_0x523127,_0x477f50)['map'](_0x5de61e=>new _0xca06c9[(_0xc8c493(0x226))](_0x523127,_0x477f50,_0x5de61e[_0xc8c493(0x1cd)])['id']))[_0xc8c493(0x218)](),_0x4f1897=new _0xca06c9[(_0xc8c493(0x2ab))](_0x523127)['id'];return this[_0xc8c493(0x22f)][_0xc8c493(0x2b1)]([_0x3c3f90,..._0x4301f7,..._0x4f5a5e,_0x4f1897])['every'](_0x375a87=>!!_0x375a87[_0xc8c493(0x234)]);}};_0x406d8d=_0x1ad602([_0x1c7dd1(0x0,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e['LocaleService'])),_0x1c7dd1(0x1,_0x3e2e2e['IUniverInstanceService']),_0x1c7dd1(0x2,_0x3e2e2e['IConfigService']),_0x1c7dd1(0x3,_0x3e2e2e[_0x1b6d6f(0x250)]),_0x1c7dd1(0x4,_0x391796[_0x1b6d6f(0x2a7)]),_0x1c7dd1(0x5,_0x3e2e2e[_0x1b6d6f(0x286)]),_0x1c7dd1(0x6,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0xca06c9[_0x1b6d6f(0x23c)])),_0x1c7dd1(0x7,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x391796[_0x1b6d6f(0x245)])),_0x1c7dd1(0x8,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x391796[_0x1b6d6f(0x1a2)])),_0x1c7dd1(0x9,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e[_0x1b6d6f(0x2c4)]))],_0x406d8d);let _0x88c9c8=class extends _0x3e2e2e[_0x1b6d6f(0x2b0)]{constructor(_0x17ad31=_0x19d3f5,_0x1cbadd,_0x14038e){const _0x307769=_0x1b6d6f;super(),this[_0x307769(0x1dd)]=_0x17ad31,this[_0x307769(0x223)]=_0x1cbadd,this[_0x307769(0x2de)]=_0x14038e;let {menu:_0x1c5678,..._0x410c1a}=(0x0,_0x3e2e2e[_0x307769(0x1ce)])({},_0x19d3f5,this[_0x307769(0x1dd)]);_0x1c5678&&this[_0x307769(0x2de)]['setConfig'](_0x307769(0x296),_0x1c5678,{'merge':!0x0}),this['_configService'][_0x307769(0x28b)](_0x2e83c1,_0x410c1a),this[_0x307769(0x1dd)]['univerContainerId']&&this[_0x307769(0x2de)][_0x307769(0x28b)](_0x307769(0x241),this[_0x307769(0x1dd)]['univerContainerId']);}[_0x1b6d6f(0x288)](){const _0x37f4a4=_0x1b6d6f;[[_0x36017f,{'useClass':_0x406d8d}],[_0x353e40]][_0x37f4a4(0x2d1)](_0x18e029=>this[_0x37f4a4(0x223)][_0x37f4a4(0x254)](_0x18e029));}[_0x1b6d6f(0x19e)](){const _0x256a19=_0x1b6d6f;this[_0x256a19(0x223)]['get'](_0x353e40);}};_0x5d6976(_0x88c9c8,_0x1b6d6f(0x1f8),_0x3e2e2e[_0x1b6d6f(0x222)]['UNIVER_UNKNOWN']),_0x5d6976(_0x88c9c8,_0x1b6d6f(0x278),_0x1b6d6f(0x1ad)),_0x5d6976(_0x88c9c8,_0x1b6d6f(0x2cb),_0x2a5dc3),_0x5d6976(_0x88c9c8,'version',_0x32fba2),_0x88c9c8=_0x1ad602([(0x0,_0x3e2e2e[_0x1b6d6f(0x238)])(_0x2ee31a[_0x1b6d6f(0x244)]),_0x1c7dd1(0x1,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e[_0x1b6d6f(0x1db)])),_0x1c7dd1(0x2,_0x3e2e2e[_0x1b6d6f(0x2cf)])],_0x88c9c8);let _0x361134=class extends _0x3e2e2e[_0x1b6d6f(0x209)]{constructor(_0xeb788b,_0x84ef06,_0x2c5ddf,_0x345e4f,_0xc0e80b,_0x283ac8,_0x20ab35,_0x1b75b0,_0x5e0ff5,_0x38a91c,_0x121756){const _0x315833=_0x1b6d6f;super(),this[_0x315833(0x2a9)]=_0xeb788b,this[_0x315833(0x202)]=_0x84ef06,this[_0x315833(0x282)]=_0x2c5ddf,this[_0x315833(0x2d0)]=_0x345e4f,this[_0x315833(0x236)]=_0xc0e80b,this['_messageService']=_0x283ac8,this[_0x315833(0x24d)]=_0x20ab35,this[_0x315833(0x1cc)]=_0x1b75b0,this[_0x315833(0x1d7)]=_0x5e0ff5,this['_univerInstanceService']=_0x38a91c,this[_0x315833(0x2a3)]=_0x121756,_0x5d6976(this,_0x315833(0x190),null),this[_0x315833(0x1b5)]();}['_init'](){const _0x8b0ccb=_0x1b6d6f;[_0x3a01bc,_0x314063][_0x8b0ccb(0x2d1)](_0x48286e=>this[_0x8b0ccb(0x19f)]((0x0,_0x3e2e2e[_0x8b0ccb(0x252)])(this[_0x8b0ccb(0x2a9)][_0x8b0ccb(0x2e0)](_0x48286e)))),this['disposeWithMe'](this[_0x8b0ccb(0x282)][_0x8b0ccb(0x1ee)]('HistoryIcon',_0x272b5a)),this[_0x8b0ccb(0x202)][_0x8b0ccb(0x259)](_0x2f76e9),this[_0x8b0ccb(0x19f)](this[_0x8b0ccb(0x2a9)][_0x8b0ccb(0x2c2)](async(_0x278f9b,_0x10e1da)=>{const _0x51be66=_0x8b0ccb;if(_0x278f9b['id']===_0x13b251[_0x51be66(0x1fb)]['id']){let {unitId:_0x1b6781}=_0x278f9b['params'];this['_messageService']['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x3845ae[_0x51be66(0x192)][_0x51be66(0x1d3)],'duration':0x1388});let _0x327ab7=this[_0x51be66(0x24d)][_0x51be66(0x2b3)](_0x1b6781);_0x10e1da!=null&&_0x10e1da[_0x51be66(0x225)]?this['_handleRevertAcknowledgement'](_0x327ab7,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this[_0x51be66(0x20c)](_0x327ab7,async()=>{const _0x127929=_0x51be66;let _0x177741=this[_0x127929(0x220)]['getCurrentUnitOfType'](_0xbe6f10[_0x127929(0x2e2)]),_0x4466b0=_0x177741==null?void 0x0:_0x177741['getActiveSheet']();if(!_0x4466b0)return!0x1;this[_0x127929(0x220)][_0x127929(0x2d9)](_0x1b6781);let _0x5d8fc2=await this[_0x127929(0x1d7)]['loadUnit'](_0x1b6781,_0xbe6f10[_0x127929(0x2e2)]);return _0x5d8fc2&&_0x5d8fc2 instanceof _0x3e2e2e[_0x127929(0x2d6)]?(await this[_0x127929(0x2bc)](_0x5d8fc2,_0x4466b0[_0x127929(0x1ea)]()),!0x0):!0x1;});}}));}[_0x1b6d6f(0x20c)](_0x529041,_0x6c72cd,_0x11531a=!0x1){const _0x3ee62a=_0x1b6d6f;let _0x42ce92=(0x0,_0x4620fb[_0x3ee62a(0x2d3)])([_0x529041[_0x3ee62a(0x23f)]['event$'],_0x529041[_0x3ee62a(0x284)]])[_0x3ee62a(0x262)](async([_0x5de66e,_0x1ae4ae])=>{const _0x2cade6=_0x3ee62a;if(_0x5de66e['eventID']===_0x13b251[_0x2cade6(0x20f)][_0x2cade6(0x1c2)]&&(_0x1ae4ae==null?void 0x0:_0x1ae4ae['status'])===_0x5803d8[_0x2cade6(0x255)]['SYNCED']&&_0x5de66e[_0x2cade6(0x276)]['mutations']['some'](_0x347585=>_0x347585['id']===_0x13b251[_0x2cade6(0x1fb)]['id'])&&await _0x6c72cd()){var _0x1a382e;this[_0x2cade6(0x2d0)][_0x2cade6(0x1af)](),_0x42ce92[_0x2cade6(0x19a)](),this[_0x2cade6(0x190)]&&clearTimeout(this['_revertErrorTimer']),await((_0x1a382e=this[_0x2cade6(0x1cc)])==null?void 0x0:_0x1a382e[_0x2cade6(0x258)]());}});_0x11531a&&(this[_0x3ee62a(0x190)]=setTimeout(()=>{const _0x1d83bc=_0x3ee62a;_0x42ce92['unsubscribe'](),this[_0x1d83bc(0x1c8)][_0x1d83bc(0x22b)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':_0x3845ae[_0x1d83bc(0x192)][_0x1d83bc(0x2e3)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x99f82e,_0x3704e0){const _0xe9992e=_0x1b6d6f;await this[_0xe9992e(0x239)](_0x99f82e,_0x3704e0),_0x99f82e[_0xe9992e(0x1da)]['pipe']((0x0,_0x4620fb[_0xe9992e(0x257)])(this[_0xe9992e(0x25e)]))[_0xe9992e(0x262)](_0x29ac47=>{const _0x48243a=_0xe9992e;_0x29ac47&&this[_0x48243a(0x270)](_0x29ac47);}),this[_0xe9992e(0x2a3)][_0xe9992e(0x201)]['pipe']((0x0,_0x4620fb['takeUntil'])(this['dispose$']))[_0xe9992e(0x262)](()=>this['_updateSubUnitFromURLParams'](_0x99f82e,_0x3704e0));}[_0x1b6d6f(0x270)](_0x4e0cbd,_0x14599f=!0x1){const _0x8709fa=_0x1b6d6f;let _0x1fc195=this[_0x8709fa(0x2a3)][_0x8709fa(0x242)](_0x8709fa(0x23b));_0x4e0cbd[_0x8709fa(0x1ea)]()!==_0x1fc195&&this[_0x8709fa(0x2a3)]['setParam']('subunit',_0x4e0cbd[_0x8709fa(0x1ea)](),_0x14599f);}async[_0x1b6d6f(0x239)](_0x81b163,_0x3b0bc9){const _0x44e876=_0x1b6d6f;var _0x552f62;if(!_0x3b0bc9||!_0x81b163[_0x44e876(0x293)](_0x3b0bc9)){let _0x2b1191=_0x81b163[_0x44e876(0x240)]()[0x0],_0x2af907=_0x81b163[_0x44e876(0x293)](_0x2b1191);if(!_0x2af907)return;this['_updateURLWithCurrentState'](_0x2af907,!0x0),await this['_commandService'][_0x44e876(0x210)](_0xca06c9[_0x44e876(0x2a0)]['id'],{'unitId':_0x81b163[_0x44e876(0x2b4)](),'subUnitId':_0x2b1191});return;}((_0x552f62=_0x81b163[_0x44e876(0x1a6)]())==null?void 0x0:_0x552f62['getSheetId']())!==_0x3b0bc9&&await this[_0x44e876(0x2a9)][_0x44e876(0x210)](_0xca06c9['SetWorksheetActivateCommand']['id'],{'unitId':_0x81b163[_0x44e876(0x2b4)](),'subUnitId':_0x3b0bc9});}};_0x361134=_0x1ad602([_0x1c7dd1(0x0,_0x3e2e2e[_0x1b6d6f(0x250)]),_0x1c7dd1(0x1,_0x391796[_0x1b6d6f(0x26f)]),_0x1c7dd1(0x2,(0x0,_0x3e2e2e['Inject'])(_0x391796[_0x1b6d6f(0x22e)])),_0x1c7dd1(0x3,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x36017f)),_0x1c7dd1(0x4,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e['LocaleService'])),_0x1c7dd1(0x5,_0x391796[_0x1b6d6f(0x2a7)]),_0x1c7dd1(0x6,(0x0,_0x3e2e2e['Inject'])(_0x5803d8[_0x1b6d6f(0x2b2)])),_0x1c7dd1(0x7,_0x5803d8[_0x1b6d6f(0x2be)]),_0x1c7dd1(0x8,(0x0,_0x3e2e2e['Inject'])(_0x5803d8[_0x1b6d6f(0x21e)])),_0x1c7dd1(0x9,_0x3e2e2e['IUniverInstanceService']),_0x1c7dd1(0xa,_0x393b7d[_0x1b6d6f(0x232)])],_0x361134);let _0x5c3017=class extends _0x3e2e2e[_0x1b6d6f(0x2b0)]{constructor(_0xbc52e=_0x19d3f5,_0x31a1fd,_0x450a58){const _0x56b935=_0x1b6d6f;super(),this[_0x56b935(0x1dd)]=_0xbc52e,this[_0x56b935(0x223)]=_0x31a1fd,this[_0x56b935(0x2de)]=_0x450a58;let {menu:_0x58c147,..._0x51807f}=(0x0,_0x3e2e2e[_0x56b935(0x1ce)])({},_0x19d3f5,this[_0x56b935(0x1dd)]);_0x58c147&&this[_0x56b935(0x2de)]['setConfig'](_0x56b935(0x296),_0x58c147,{'merge':!0x0}),this[_0x56b935(0x2de)]['setConfig'](_0x2e83c1,_0x51807f),this[_0x56b935(0x1dd)][_0x56b935(0x2bd)]&&this[_0x56b935(0x2de)][_0x56b935(0x28b)](_0x410ed1,this['_config'][_0x56b935(0x2bd)]);}[_0x1b6d6f(0x288)](){const _0x51eefd=_0x1b6d6f;[[_0x36017f],[_0x361134]]['forEach'](_0x24e5c9=>this[_0x51eefd(0x223)][_0x51eefd(0x254)](_0x24e5c9));}[_0x1b6d6f(0x19e)](){const _0x3e17dc=_0x1b6d6f;this['_injector'][_0x3e17dc(0x1b6)](_0x361134);}};_0x5d6976(_0x5c3017,'type',_0x3e2e2e[_0x1b6d6f(0x222)]['UNIVER_UNKNOWN']),_0x5d6976(_0x5c3017,_0x1b6d6f(0x278),'UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_0x5d6976(_0x5c3017,_0x1b6d6f(0x2cb),_0x2a5dc3),_0x5d6976(_0x5c3017,_0x1b6d6f(0x2ac),_0x32fba2),_0x5c3017=_0x1ad602([(0x0,_0x3e2e2e['DependentOn'])(_0x2ee31a[_0x1b6d6f(0x244)]),_0x1c7dd1(0x1,(0x0,_0x3e2e2e['Inject'])(_0x3e2e2e['Injector'])),_0x1c7dd1(0x2,_0x3e2e2e[_0x1b6d6f(0x2cf)])],_0x5c3017),_0x5768db['EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY']=_0x2e83c1,Object[_0x1b6d6f(0x2df)](_0x5768db,'HistoryLoaderService',{'enumerable':!0x0,'get':function(){return _0x36017f;}}),Object[_0x1b6d6f(0x2df)](_0x5768db,_0x1b6d6f(0x188),{'enumerable':!0x0,'get':function(){return _0x406d8d;}}),_0x5768db[_0x1b6d6f(0x1ec)]=_0x3a01bc,_0x5768db[_0x1b6d6f(0x197)]=_0x410ed1,_0x5768db[_0x1b6d6f(0x2ce)]=_0x4282a9,Object[_0x1b6d6f(0x2df)](_0x5768db,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return _0x88c9c8;}}),Object[_0x1b6d6f(0x2df)](_0x5768db,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return _0x5c3017;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,67 +42,66 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
46
45
|
"rxjs": ">=7.0.0"
|
|
47
46
|
},
|
|
48
47
|
"dependencies": {
|
|
49
48
|
"@univerjs/icons": "^1.1.1",
|
|
50
|
-
"@univerjs-pro/collaboration
|
|
51
|
-
"@univerjs-pro/collaboration-client-ui": "0.
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/edit-history-viewer": "0.
|
|
54
|
-
"@univerjs-pro/
|
|
55
|
-
"@univerjs-pro/sheets-chart": "0.
|
|
56
|
-
"@univerjs-pro/sheets-
|
|
57
|
-
"@univerjs-pro/sheets-
|
|
58
|
-
"@univerjs-pro/sheets-
|
|
59
|
-
"@univerjs-pro/
|
|
60
|
-
"@univerjs-pro/sheets-
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/docs": "0.
|
|
66
|
-
"@univerjs/docs-ui": "0.
|
|
67
|
-
"@univerjs/drawing-ui": "0.
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/
|
|
49
|
+
"@univerjs-pro/collaboration": "0.18.0",
|
|
50
|
+
"@univerjs-pro/collaboration-client-ui": "0.18.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.18.0",
|
|
52
|
+
"@univerjs-pro/edit-history-viewer": "0.18.0",
|
|
53
|
+
"@univerjs-pro/license": "0.18.0",
|
|
54
|
+
"@univerjs-pro/sheets-chart": "0.18.0",
|
|
55
|
+
"@univerjs-pro/sheets-chart-ui": "0.18.0",
|
|
56
|
+
"@univerjs-pro/sheets-pivot": "0.18.0",
|
|
57
|
+
"@univerjs-pro/sheets-shape": "0.18.0",
|
|
58
|
+
"@univerjs-pro/sheets-sparkline": "0.18.0",
|
|
59
|
+
"@univerjs-pro/sheets-shape-ui": "0.18.0",
|
|
60
|
+
"@univerjs/core": "0.18.0",
|
|
61
|
+
"@univerjs/data-validation": "0.18.0",
|
|
62
|
+
"@univerjs/design": "0.18.0",
|
|
63
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.18.0",
|
|
64
|
+
"@univerjs/docs": "0.18.0",
|
|
65
|
+
"@univerjs/docs-ui": "0.18.0",
|
|
66
|
+
"@univerjs/drawing-ui": "0.18.0",
|
|
67
|
+
"@univerjs/engine-formula": "0.18.0",
|
|
68
|
+
"@univerjs/network": "0.18.0",
|
|
69
|
+
"@univerjs/drawing": "0.18.0",
|
|
70
70
|
"@univerjs/protocol": "0.1.48",
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/engine-render": "0.
|
|
73
|
-
"@univerjs/
|
|
74
|
-
"@univerjs/sheets": "0.
|
|
75
|
-
"@univerjs/sheets-conditional-formatting": "0.
|
|
76
|
-
"@univerjs/sheets-data-validation": "0.
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/sheets-data-validation-ui": "0.
|
|
79
|
-
"@univerjs/sheets-
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/sheets-
|
|
82
|
-
"@univerjs/sheets-
|
|
83
|
-
"@univerjs/sheets-formula": "0.
|
|
84
|
-
"@univerjs/sheets-
|
|
85
|
-
"@univerjs/sheets-hyper-link": "0.
|
|
86
|
-
"@univerjs/sheets-numfmt": "0.
|
|
87
|
-
"@univerjs/sheets-table": "0.
|
|
88
|
-
"@univerjs/
|
|
89
|
-
"@univerjs/sheets-
|
|
90
|
-
"@univerjs/ui": "0.17.0"
|
|
71
|
+
"@univerjs/rpc": "0.18.0",
|
|
72
|
+
"@univerjs/engine-render": "0.18.0",
|
|
73
|
+
"@univerjs/sheets": "0.18.0",
|
|
74
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.18.0",
|
|
75
|
+
"@univerjs/sheets-conditional-formatting": "0.18.0",
|
|
76
|
+
"@univerjs/sheets-data-validation": "0.18.0",
|
|
77
|
+
"@univerjs/sheets-drawing": "0.18.0",
|
|
78
|
+
"@univerjs/sheets-data-validation-ui": "0.18.0",
|
|
79
|
+
"@univerjs/sheets-filter": "0.18.0",
|
|
80
|
+
"@univerjs/sheets-filter-ui": "0.18.0",
|
|
81
|
+
"@univerjs/sheets-formula": "0.18.0",
|
|
82
|
+
"@univerjs/sheets-drawing-ui": "0.18.0",
|
|
83
|
+
"@univerjs/sheets-formula-ui": "0.18.0",
|
|
84
|
+
"@univerjs/sheets-hyper-link": "0.18.0",
|
|
85
|
+
"@univerjs/sheets-hyper-link-ui": "0.18.0",
|
|
86
|
+
"@univerjs/sheets-numfmt": "0.18.0",
|
|
87
|
+
"@univerjs/sheets-table": "0.18.0",
|
|
88
|
+
"@univerjs/ui": "0.18.0",
|
|
89
|
+
"@univerjs/sheets-ui": "0.18.0"
|
|
91
90
|
},
|
|
92
91
|
"devDependencies": {
|
|
93
|
-
"react": "18.3.1",
|
|
94
92
|
"rxjs": "7.8.2",
|
|
95
93
|
"typescript": "^5.9.3",
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"@univerjs-infra/shared": "0.17.0"
|
|
94
|
+
"vitest": "^4.1.0",
|
|
95
|
+
"@univerjs-infra/shared": "0.18.0"
|
|
99
96
|
},
|
|
100
97
|
"scripts": {
|
|
101
98
|
"test": "vitest run",
|
|
102
99
|
"test:watch": "vitest",
|
|
103
100
|
"coverage": "vitest run --coverage",
|
|
104
101
|
"typecheck": "tsc --noEmit",
|
|
105
|
-
"build": "univer-cli build"
|
|
102
|
+
"build:bundle": "univer-cli build",
|
|
103
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
104
|
+
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
106
105
|
},
|
|
107
106
|
"module": "./lib/es/index.js"
|
|
108
107
|
}
|