@univerjs-pro/edit-history-loader 0.2.13 → 0.2.14
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/umd/index.js +1 -1
- package/package.json +57 -57
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1eec14=_0x3794;(function(_0x328b53,_0x28af39){var _0x93f28=_0x3794,_0x4973da=_0x328b53();while(!![]){try{var _0x17447c=-parseInt(_0x93f28(0x134))/0x1*(parseInt(_0x93f28(0xf6))/0x2)+parseInt(_0x93f28(0x182))/0x3+-parseInt(_0x93f28(0x171))/0x4+parseInt(_0x93f28(0x137))/0x5+-parseInt(_0x93f28(0x1c3))/0x6*(-parseInt(_0x93f28(0x10a))/0x7)+parseInt(_0x93f28(0x17c))/0x8+parseInt(_0x93f28(0x157))/0x9;if(_0x17447c===_0x28af39)break;else _0x4973da['push'](_0x4973da['shift']());}catch(_0x20f466){_0x4973da['push'](_0x4973da['shift']());}}}(_0x59cb,0xdf399));var D=Object[_0x1eec14(0x10b)],j=(_0x57700a,_0x14c158,_0xe7d638)=>_0x14c158 in _0x57700a?D(_0x57700a,_0x14c158,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe7d638}):_0x57700a[_0x14c158]=_0xe7d638,f=(_0xd548cc,_0x3ba21a,_0x366093)=>j(_0xd548cc,typeof _0x3ba21a!=_0x1eec14(0x15e)?_0x3ba21a+'':_0x3ba21a,_0x366093);Object[_0x1eec14(0x10b)](exports,Symbol[_0x1eec14(0xfe)],{'value':_0x1eec14(0x143)});const s=require(_0x1eec14(0x11e)),P=require(_0x1eec14(0x1ad)),q=require('@univerjs/docs'),x=require(_0x1eec14(0x14c)),k=require(_0x1eec14(0x111)),h=require(_0x1eec14(0x13b)),O=require(_0x1eec14(0x107)),v=require('@univerjs/ui'),S=require('@univerjs-pro/edit-history-viewer'),p=require('@univerjs-pro/collaboration'),F=require(_0x1eec14(0x12c)),V=require(_0x1eec14(0x18f)),A=require(_0x1eec14(0x180)),$=require(_0x1eec14(0x165)),W=require(_0x1eec14(0x19e)),Y=require(_0x1eec14(0x1a0)),B=require(_0x1eec14(0x1b6)),G=require(_0x1eec14(0x1b5)),K=require(_0x1eec14(0x16e)),z=require(_0x1eec14(0x139)),Z=require(_0x1eec14(0x1ae)),J=require('@univerjs/sheets-data-validation'),Q=require(_0x1eec14(0x152)),X=require(_0x1eec14(0x181)),ee=require('@univerjs/sheets-drawing'),H=require(_0x1eec14(0x102)),ie=require('@univerjs-pro/sheets-pivot'),E=require(_0x1eec14(0x151)),te=require(_0x1eec14(0x1aa)),C=require(_0x1eec14(0x1a7));var re=Object['defineProperty'],ne=Object[_0x1eec14(0x1c7)],oe=(_0x2e916a,_0x80649b,_0x572d91,_0x7618c3)=>{var _0x43b82e=_0x1eec14;for(var _0x241bb8=_0x7618c3>0x1?void 0x0:_0x7618c3?ne(_0x80649b,_0x572d91):_0x80649b,_0x297834=_0x2e916a[_0x43b82e(0x183)]-0x1,_0x4e151b;_0x297834>=0x0;_0x297834--)(_0x4e151b=_0x2e916a[_0x297834])&&(_0x241bb8=(_0x7618c3?_0x4e151b(_0x80649b,_0x572d91,_0x241bb8):_0x4e151b(_0x241bb8))||_0x241bb8);return _0x7618c3&&_0x241bb8&&re(_0x80649b,_0x572d91,_0x241bb8),_0x241bb8;},d=(_0x47366b,_0x5d05ab)=>(_0x143b55,_0x1808d5)=>_0x5d05ab(_0x143b55,_0x1808d5,_0x47366b);const se=_0x1eec14(0x118),U=_0x1eec14(0x1c6),y=_0x1eec14(0x1bb);exports[_0x1eec14(0x17d)]=class extends s[_0x1eec14(0x100)]{constructor(_0x37d34c,_0x2d9fe8,_0x213986,_0x200eca,_0x526a0e,_0x420de5,_0x210470,_0x3b6f4b,_0x51440e){var _0x197f8c=_0x1eec14;super(),f(this,_0x197f8c(0x192),null),f(this,_0x197f8c(0x1a3),new s[(_0x197f8c(0x1d5))]()),f(this,'_pluginMap',new Map()),(this[_0x197f8c(0x1c9)]=_0x37d34c,this['_univerInstanceService']=_0x2d9fe8,this[_0x197f8c(0x168)]=_0x213986,this[_0x197f8c(0x156)]=_0x200eca,this[_0x197f8c(0x1b0)]=_0x526a0e,this[_0x197f8c(0x145)]=_0x420de5,this[_0x197f8c(0x178)]=_0x210470,this['_dialogService']=_0x3b6f4b,this[_0x197f8c(0x185)]=_0x51440e,this[_0x197f8c(0xee)]());}['_init'](){var _0x5d386a=_0x1eec14;this[_0x5d386a(0xf4)](),this[_0x5d386a(0x1a4)]();}[_0x1eec14(0xf4)](){var _0x55d088=_0x1eec14,_0xe42a28;const _0x117240=(_0xe42a28=this['_configService'][_0x55d088(0x1e4)](U))!=null?_0xe42a28:se,_0x4c20cf=document[_0x55d088(0x142)](_0x117240);if(!_0x4c20cf)return;const _0x45e78a=document[_0x55d088(0x19c)](_0x55d088(0x176));_0x45e78a['id']=y,_0x45e78a[_0x55d088(0x16d)]['position']=_0x55d088(0x104),_0x45e78a[_0x55d088(0x16d)]['top']='0',_0x45e78a[_0x55d088(0x16d)]['left']='0',_0x45e78a[_0x55d088(0x16d)][_0x55d088(0x14f)]=_0x55d088(0x11a),_0x45e78a[_0x55d088(0x16d)][_0x55d088(0x103)]='100%',_0x45e78a['style']['zIndex']=_0x55d088(0x13f),_0x45e78a[_0x55d088(0x16d)][_0x55d088(0xf1)]='none',_0x4c20cf[_0x55d088(0x1db)](_0x45e78a);}[_0x1eec14(0x1a4)](){var _0x4432bf=_0x1eec14;[[H[_0x4432bf(0x170)],{'override':[[H[_0x4432bf(0x1a1)],null]]}],[q[_0x4432bf(0xfc)],{'hasScroll':!0x1}],[x[_0x4432bf(0x12a)]],[k[_0x4432bf(0x1d7)]],[v[_0x4432bf(0x17e)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[v['IDialogService'],null]]}],[h[_0x4432bf(0x154)],{'notExecuteFormula':!0x0}],[O[_0x4432bf(0x1c8)]],[p[_0x4432bf(0x141)]],[F[_0x4432bf(0xea)]],[V['UniverSheetsFilterUIPlugin']],[A['UniverSheetsConditionalFormattingPlugin']],[$[_0x4432bf(0x136)]],[W['UniverSheetsHyperLinkPlugin']],[Y[_0x4432bf(0x10d)]],[B['UniverDataValidationPlugin']],[J[_0x4432bf(0x1c1)]],[G[_0x4432bf(0x164)]],[z[_0x4432bf(0x194)],{'notExecuteFormula':!0x0}],[K['UniverSheetsFormulaPlugin']],[Z[_0x4432bf(0xef)],{'workerURL':_0x4432bf(0x1be)}],[Q[_0x4432bf(0x1bf)]],[ee[_0x4432bf(0x1ac)]],[X['UniverSheetsDrawingUIPlugin']],[ie[_0x4432bf(0x1dc)],{'notExecuteFormula':!0x0}],[S[_0x4432bf(0x1da)]]]['forEach'](([_0x5719c1,_0x10ad07])=>this[_0x4432bf(0x18e)](_0x5719c1,_0x10ad07));}[_0x1eec14(0x11d)](){var _0x32d1ff=_0x1eec14;super['dispose'](),this[_0x32d1ff(0xf5)](),this[_0x32d1ff(0xff)][_0x32d1ff(0x13a)]();}[_0x1eec14(0x18e)](_0x1f5007,_0x1ff1a6,_0x67707e){var _0xceed25=_0x1eec14;if(this[_0xceed25(0xff)][_0xceed25(0x1b3)](_0x1f5007[_0xceed25(0x1c4)])&&!_0x67707e)throw new Error(_0xceed25(0x19d)+_0x1f5007['pluginName']+_0xceed25(0x12e));this['_pluginMap'][_0xceed25(0x163)](_0x1f5007[_0xceed25(0x1c4)],[_0x1f5007,_0x1ff1a6]);}[_0x1eec14(0x173)](){var _0x586775=_0x1eec14;return Array['from'](this[_0x586775(0xff)][_0x586775(0x179)]());}[_0x1eec14(0x11c)](_0x5c925){var _0x5410d2=_0x1eec14;const _0x178849=document[_0x5410d2(0x142)](y);_0x178849&&(_0x178849[_0x5410d2(0x16d)][_0x5410d2(0xf1)]=_0x5410d2(0xf3),this[_0x5410d2(0x131)](_0x5c925,y));}[_0x1eec14(0xf5)](){var _0x20f8eb=_0x1eec14,_0x744d83;this['_disposableCollection'][_0x20f8eb(0x11d)](),(_0x744d83=this['_historyUniver'])==null||_0x744d83[_0x20f8eb(0x11d)](),this[_0x20f8eb(0x192)]=null;const _0x1b5d85=document[_0x20f8eb(0x142)](y);_0x1b5d85&&(_0x1b5d85[_0x20f8eb(0x16d)][_0x20f8eb(0xf1)]='none');}[_0x1eec14(0x131)](_0x2ab10c,_0x502823){var _0x3da272=_0x1eec14;if(this[_0x3da272(0x192)])return;const _0x340f36=new s['Univer']({'theme':P[_0x3da272(0x15a)],'locales':{[this[_0x3da272(0x1c9)][_0x3da272(0x14b)]()]:this['_localeService'][_0x3da272(0x19a)]()},'override':[[s[_0x3da272(0x110)],null]]});this['_historyUniver']=_0x340f36;const _0x1ed70d=_0x340f36[_0x3da272(0x126)]();_0x1ed70d[_0x3da272(0x1b4)](s[_0x3da272(0x1e7)])['setLocale'](this[_0x3da272(0x1c9)][_0x3da272(0x14b)]()),this['_pluginMap'][_0x3da272(0x114)](([_0x2ef683,_0x112ec9])=>{var _0x5ba777=_0x3da272;_0x340f36[_0x5ba777(0x18e)](_0x2ef683,_0x112ec9);}),_0x1ed70d[_0x3da272(0xe8)](_0x26482e=>{var _0x2214a2=_0x3da272;this[_0x2214a2(0x115)](_0x26482e,_0x2ab10c),this['_initMessageService'](_0x26482e,this[_0x2214a2(0x1b0)]);});const _0x4ecf41=_0x1ed70d[_0x3da272(0x1b4)](S[_0x3da272(0x144)]),_0x28ce4a=this[_0x3da272(0x133)](_0x2ab10c);_0x4ecf41[_0x3da272(0x1c0)](_0x2ab10c,_0x502823,_0x28ce4a);}['_initListener'](_0x5bdae4,_0x2fae2a){var _0x1e5d7e=_0x1eec14;const _0x31d3e7=_0x5bdae4[_0x1e5d7e(0x1b4)](S[_0x1e5d7e(0x144)]);this[_0x1e5d7e(0x1a3)][_0x1e5d7e(0x196)](_0x31d3e7[_0x1e5d7e(0x160)][_0x1e5d7e(0x16f)](_0x45c035=>{var _0x321ef5=_0x1e5d7e;switch(_0x45c035){case S[_0x321ef5(0x1a9)][_0x321ef5(0x18d)]:this[_0x321ef5(0x1a8)]['closeAll'](),this[_0x321ef5(0x185)][_0x321ef5(0x116)]();break;case S[_0x321ef5(0x1a9)][_0x321ef5(0x10f)]:this[_0x321ef5(0xf5)]();break;case S[_0x321ef5(0x1a9)][_0x321ef5(0x1cf)]:this[_0x321ef5(0xf5)](),this[_0x321ef5(0x1b0)]['show']({'content':this[_0x321ef5(0x1c9)]['t']('editHistory.panel.listFetchError'),'type':P['MessageType'][_0x321ef5(0x1cf)],'duration':0xbb8});break;}})),this['_disposableCollection']['add'](_0x31d3e7[_0x1e5d7e(0x128)]['subscribe'](async _0x2f3134=>{var _0x3541f1=_0x1e5d7e;_0x2f3134&&this[_0x3541f1(0x156)][_0x3541f1(0x1a6)](p[_0x3541f1(0x172)]['id'],{'unitId':_0x2fae2a,'revision':_0x2f3134});}));}[_0x1eec14(0x190)](_0x4613f0,_0x38d808){var _0x4d489d=_0x1eec14;const _0x1cc912=_0x4613f0['get'](v[_0x4d489d(0x158)]),_0x54d0bf=_0x38d808[_0x4d489d(0x123)]();_0x54d0bf&&_0x1cc912[_0x4d489d(0x1de)](_0x54d0bf);}[_0x1eec14(0x133)](_0x296b2f){var _0x11242e=_0x1eec14;const _0x3cf9c2=this[_0x11242e(0x1a5)][_0x11242e(0x18b)](_0x296b2f)['getSheets']()[_0x11242e(0x1dd)](_0x5abbb9=>_0x5abbb9[_0x11242e(0x121)]()),_0x3e2105=new h[(_0x11242e(0x1c5))](_0x296b2f)['id'],_0x58593d=_0x3cf9c2[_0x11242e(0x1dd)](_0x3204a7=>new h[(_0x11242e(0xeb))](_0x296b2f,_0x3204a7)['id']),_0x309897=_0x3cf9c2[_0x11242e(0x1dd)](_0x401793=>this[_0x11242e(0x178)][_0x11242e(0xfd)](_0x296b2f,_0x401793)['map'](_0x5022be=>new h[(_0x11242e(0xfb))](_0x296b2f,_0x401793,_0x5022be['permissionId'])['id']))['flat'](),_0xe57a8a=new h[(_0x11242e(0x161))](_0x296b2f)['id'];return this['_permissionService'][_0x11242e(0x15f)]([_0x3e2105,..._0x58593d,..._0x309897,_0xe57a8a])[_0x11242e(0x1bc)](_0x20221b=>!!_0x20221b[_0x11242e(0x120)]);}},exports['HistoryLoaderService']=oe([s['OnLifecycle'](s['LifecycleStages'][_0x1eec14(0x16a)],exports[_0x1eec14(0x17d)]),d(0x0,s[_0x1eec14(0x175)](s['LocaleService'])),d(0x1,s[_0x1eec14(0x15d)]),d(0x2,s['IConfigService']),d(0x3,s[_0x1eec14(0x109)]),d(0x4,v[_0x1eec14(0x158)]),d(0x5,s[_0x1eec14(0x1d9)]),d(0x6,s[_0x1eec14(0x175)](h[_0x1eec14(0xf0)])),d(0x7,s[_0x1eec14(0x175)](v[_0x1eec14(0x108)])),d(0x8,s['Inject'](v[_0x1eec14(0x1d4)]))],exports[_0x1eec14(0x17d)]);var u=function(){var _0x599d89=_0x1eec14;return u=Object['assign']||function(_0x5553ec){var _0xf2df08=_0x3794;for(var _0x6298dc,_0x3ab12b=0x1,_0x573478=arguments[_0xf2df08(0x183)];_0x3ab12b<_0x573478;_0x3ab12b++){_0x6298dc=arguments[_0x3ab12b];for(var _0x5e7851 in _0x6298dc)Object[_0xf2df08(0x1b2)][_0xf2df08(0x1b9)][_0xf2df08(0x138)](_0x6298dc,_0x5e7851)&&(_0x5553ec[_0x5e7851]=_0x6298dc[_0x5e7851]);}return _0x5553ec;},u[_0x599d89(0x10c)](this,arguments);},ae=function(_0x281f7f,_0x3a4688){var _0x59a202=_0x1eec14,_0x4cc5bb={};for(var _0x57c8a3 in _0x281f7f)Object[_0x59a202(0x1b2)]['hasOwnProperty']['call'](_0x281f7f,_0x57c8a3)&&_0x3a4688[_0x59a202(0x105)](_0x57c8a3)<0x0&&(_0x4cc5bb[_0x57c8a3]=_0x281f7f[_0x57c8a3]);if(_0x281f7f!=null&&typeof Object[_0x59a202(0x1a2)]==_0x59a202(0x13e)){for(var _0x50e65e=0x0,_0x57c8a3=Object[_0x59a202(0x1a2)](_0x281f7f);_0x50e65e<_0x57c8a3[_0x59a202(0x183)];_0x50e65e++)_0x3a4688[_0x59a202(0x105)](_0x57c8a3[_0x50e65e])<0x0&&Object[_0x59a202(0x1b2)][_0x59a202(0x1c2)][_0x59a202(0x138)](_0x281f7f,_0x57c8a3[_0x50e65e])&&(_0x4cc5bb[_0x57c8a3[_0x50e65e]]=_0x281f7f[_0x57c8a3[_0x50e65e]]);}return _0x4cc5bb;},w=C[_0x1eec14(0x1d0)](function(_0x59e58c,_0x5bec55){var _0x55d804=_0x1eec14,_0x916c7f=_0x59e58c['icon'],_0x167de7=_0x59e58c['id'],_0x56708c=_0x59e58c[_0x55d804(0xf9)],_0x1f5340=_0x59e58c['extend'],_0x3989de=ae(_0x59e58c,[_0x55d804(0xf2),'id',_0x55d804(0xf9),'extend']),_0x592cc9=_0x55d804(0x16b)['concat'](_0x167de7,'\x20')[_0x55d804(0xe9)](_0x56708c||'')[_0x55d804(0x1d3)](),_0x57e5e1=C[_0x55d804(0x101)]('_'[_0x55d804(0xe9)](ue()));return L(_0x916c7f,''[_0x55d804(0xe9)](_0x167de7),{'defIds':_0x916c7f['defIds'],'idSuffix':_0x57e5e1[_0x55d804(0x122)]},u({'ref':_0x5bec55,'className':_0x592cc9},_0x3989de),_0x1f5340);});function L(_0x141dbe,_0x357261,_0x463e9e,_0x569f6f,_0x499559){var _0x256d98=_0x1eec14;return C[_0x256d98(0x19c)](_0x141dbe['tag'],u(u({'key':_0x357261},ce(_0x141dbe,_0x463e9e,_0x499559)),_0x569f6f),(le(_0x141dbe,_0x463e9e)[_0x256d98(0x147)]||[])[_0x256d98(0x1dd)](function(_0xd35b05,_0x489bd7){var _0x5ee7cc=_0x256d98;return L(_0xd35b05,''[_0x5ee7cc(0xe9)](_0x357261,'-')[_0x5ee7cc(0xe9)](_0x141dbe[_0x5ee7cc(0x17b)],'-')['concat'](_0x489bd7),_0x463e9e,void 0x0,_0x499559);}));}function ce(_0x32159a,_0xb0f6c6,_0x40746b){var _0x44e050=_0x1eec14,_0x4c59e6=u({},_0x32159a['attrs']);_0x40746b!=null&&_0x40746b[_0x44e050(0x14e)]&&_0x4c59e6[_0x44e050(0x17a)]===_0x44e050(0x14e)&&(_0x4c59e6[_0x44e050(0x17a)]=_0x40746b[_0x44e050(0x14e)]);var _0x586e5b=_0xb0f6c6[_0x44e050(0xe6)];return!_0x586e5b||_0x586e5b[_0x44e050(0x183)]===0x0||(_0x32159a['tag']===_0x44e050(0x197)&&_0x4c59e6[_0x44e050(0x125)]&&(_0x4c59e6[_0x44e050(0x125)]=_0x4c59e6[_0x44e050(0x125)]+_0xb0f6c6['idSuffix']),Object[_0x44e050(0x19b)](_0x4c59e6)['forEach'](function(_0x452eb1){var _0x5b3750=_0x44e050,_0x46284d=_0x452eb1[0x0],_0x2a7132=_0x452eb1[0x1];typeof _0x2a7132==_0x5b3750(0x1e0)&&(_0x4c59e6[_0x46284d]=_0x2a7132[_0x5b3750(0x193)](/url\(#(.*)\)/,'url(#$1'[_0x5b3750(0xe9)](_0xb0f6c6['idSuffix'],')')));})),_0x4c59e6;}function le(_0x127521,_0x1e255f){var _0xc1a22f=_0x1eec14,_0x12c31a,_0x13ae01=_0x1e255f[_0xc1a22f(0xe6)];return!_0x13ae01||_0x13ae01['length']===0x0?_0x127521:_0x127521[_0xc1a22f(0x17b)]==='defs'&&(!((_0x12c31a=_0x127521[_0xc1a22f(0x147)])===null||_0x12c31a===void 0x0)&&_0x12c31a[_0xc1a22f(0x183)])?u(u({},_0x127521),{'children':_0x127521[_0xc1a22f(0x147)][_0xc1a22f(0x1dd)](function(_0x1757a0){var _0x537b9c=_0xc1a22f;return typeof _0x1757a0['attrs']['id']==_0x537b9c(0x1e0)&&_0x13ae01&&_0x13ae01[_0x537b9c(0x105)](_0x1757a0['attrs']['id'])>-0x1?u(u({},_0x1757a0),{'attrs':u(u({},_0x1757a0[_0x537b9c(0x169)]),{'id':_0x1757a0[_0x537b9c(0x169)]['id']+_0x1e255f[_0x537b9c(0x13d)]})}):_0x1757a0;})}):_0x127521;}function ue(){var _0x478dbe=_0x1eec14;return Math[_0x478dbe(0x1e1)]()[_0x478dbe(0xfa)](0x24)[_0x478dbe(0x1d6)](0x2,0x8);}w[_0x1eec14(0x1b1)]=_0x1eec14(0x191);var ve={'tag':'svg','attrs':{'fill':'none','viewBox':_0x1eec14(0x188),'width':_0x1eec14(0x18a),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x1eec14(0x113),'clipPath':'url(#history-single_clip0_907_281)'},'children':[{'tag':_0x1eec14(0xe5),'attrs':{'d':_0x1eec14(0xe7)}},{'tag':_0x1eec14(0xe5),'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':_0x1eec14(0xf8),'attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':_0x1eec14(0xe5),'attrs':{'fill':_0x1eec14(0x10e),'d':_0x1eec14(0x11b)}}]}]}],'defIds':[_0x1eec14(0x106)]},N=C[_0x1eec14(0x1d0)](function(_0x4581af,_0x2fd28c){var _0x580b79=_0x1eec14;return C[_0x580b79(0x19c)](w,Object[_0x580b79(0x17f)]({},_0x4581af,{'id':_0x580b79(0x112),'ref':_0x2fd28c,'icon':ve}));});N[_0x1eec14(0x1b1)]='HistorySingle';const M={'id':'univer.operation.toggle-edit-history','type':s[_0x1eec14(0x12b)][_0x1eec14(0x1df)],'handler':_0x2cf215=>{var _0x425bea=_0x1eec14;const _0x16fc6e=_0x2cf215[_0x425bea(0x1b4)](exports['HistoryLoaderService']),_0x47b7b2=_0x2cf215[_0x425bea(0x1b4)](s['IUniverInstanceService']),{unitId:_0x37436f}=h[_0x425bea(0x13c)](_0x47b7b2)||{};return _0x37436f?(_0x16fc6e[_0x425bea(0x11c)](_0x37436f),!0x0):!0x1;}},T=_0x1eec14(0x135);function ge(_0x2b5939){var _0x4f00bb=_0x1eec14;return{'id':M['id'],'type':v[_0x4f00bb(0x148)][_0x4f00bb(0x195)],'icon':T,'tooltip':_0x4f00bb(0x149),'hidden$':v[_0x4f00bb(0x153)](_0x2b5939,s[_0x4f00bb(0x119)][_0x4f00bb(0x150)]),'disabled$':O[_0x4f00bb(0x1d1)](_0x2b5939,{'workbookTypes':[h[_0x4f00bb(0x1c5)],h[_0x4f00bb(0x1af)]],'worksheetTypes':[],'rangeTypes':[]})};}function _0x3794(_0x5cf1c2,_0x18a655){var _0x59cb99=_0x59cb();return _0x3794=function(_0x37945d,_0x3d7eec){_0x37945d=_0x37945d-0xe5;var _0x17dc4f=_0x59cb99[_0x37945d];return _0x17dc4f;},_0x3794(_0x5cf1c2,_0x18a655);}const de={[v['RibbonStartGroup'][_0x1eec14(0x14a)]]:{[M['id']]:{'order':0x0,'menuItemFactory':ge}}};var he=Object[_0x1eec14(0x10b)],_e=Object['getOwnPropertyDescriptor'],fe=(_0xc3a671,_0x1b62c5,_0xee28ad,_0x2eb6de)=>{var _0x308674=_0x1eec14;for(var _0x185ea6=_0x2eb6de>0x1?void 0x0:_0x2eb6de?_e(_0x1b62c5,_0xee28ad):_0x1b62c5,_0x35cdd3=_0xc3a671[_0x308674(0x183)]-0x1,_0x1218ee;_0x35cdd3>=0x0;_0x35cdd3--)(_0x1218ee=_0xc3a671[_0x35cdd3])&&(_0x185ea6=(_0x2eb6de?_0x1218ee(_0x1b62c5,_0xee28ad,_0x185ea6):_0x1218ee(_0x185ea6))||_0x185ea6);return _0x2eb6de&&_0x185ea6&&he(_0x1b62c5,_0xee28ad,_0x185ea6),_0x185ea6;},_=(_0x3d6fe4,_0x3146b9)=>(_0x3e4809,_0x10365b)=>_0x3146b9(_0x3e4809,_0x10365b,_0x3d6fe4);let b=class extends s['RxDisposable']{constructor(_0x18e3de,_0x533101,_0x188fb6,_0x584b38,_0x3cf395,_0x2bffc7,_0x154222,_0xfc11a7){var _0x2a5103=_0x1eec14;super(),f(this,_0x2a5103(0x1e6),null),(this[_0x2a5103(0x156)]=_0x18e3de,this[_0x2a5103(0x199)]=_0x533101,this[_0x2a5103(0x11f)]=_0x188fb6,this['_historyManagerService']=_0x584b38,this[_0x2a5103(0x1c9)]=_0x3cf395,this[_0x2a5103(0x1b0)]=_0x2bffc7,this[_0x2a5103(0x184)]=_0x154222,this[_0x2a5103(0x18c)]=_0xfc11a7,this['_init']());}[_0x1eec14(0xee)](){var _0x9d3c3a=_0x1eec14;[M][_0x9d3c3a(0x114)](_0x1b917d=>this['disposeWithMe'](s[_0x9d3c3a(0x1ab)](this[_0x9d3c3a(0x156)][_0x9d3c3a(0x19f)](_0x1b917d)))),this['disposeWithMe'](this['_componentManager'][_0x9d3c3a(0x1ba)](T,N)),this[_0x9d3c3a(0x199)][_0x9d3c3a(0x162)](de),this[_0x9d3c3a(0x1ce)](this['_commandService'][_0x9d3c3a(0x167)](_0x308b44=>{var _0x3d043f=_0x9d3c3a;if(_0x308b44['id']===p['RevertRevisionMutation']['id']){this[_0x3d043f(0x1b0)][_0x3d043f(0x1e3)]({'content':this['_localeService']['t'](_0x3d043f(0x1ca)),'type':P[_0x3d043f(0x177)][_0x3d043f(0x187)],'duration':0x1388});const {unitId:_0x57c917}=_0x308b44[_0x3d043f(0x15b)],_0x5aa2f0=this[_0x3d043f(0x184)][_0x3d043f(0x15c)](_0x57c917),_0x813c98=te['combineLatest']([_0x5aa2f0['session'][_0x3d043f(0x1d2)],_0x5aa2f0[_0x3d043f(0x146)]])[_0x3d043f(0x16f)](async([_0x5f0da3,_0x337a2c])=>{var _0x1767e9=_0x3d043f;_0x5f0da3[_0x1767e9(0x127)]===p['CollaborationEvent'][_0x1767e9(0x1e2)]&&(_0x337a2c==null?void 0x0:_0x337a2c[_0x1767e9(0x1d8)])===E[_0x1767e9(0x155)][_0x1767e9(0x1b8)]&&_0x5f0da3[_0x1767e9(0x174)][_0x1767e9(0x159)][_0x1767e9(0x1cc)](_0x5be7e9=>_0x5be7e9['id']===p['RevertRevisionMutation']['id'])&&(this[_0x1767e9(0x117)][_0x1767e9(0xf5)](),_0x813c98[_0x1767e9(0xed)](),this[_0x1767e9(0x1e6)]&&clearTimeout(this[_0x1767e9(0x1e6)]),await this[_0x1767e9(0x18c)]['exhaustSavingTask'](),setTimeout(()=>window[_0x1767e9(0x12f)][_0x1767e9(0x16c)]()));});this[_0x3d043f(0x1e6)]=setTimeout(()=>{var _0x21c2f5=_0x3d043f;_0x813c98[_0x21c2f5(0xed)](),this[_0x21c2f5(0x1b0)][_0x21c2f5(0x1e3)]({'content':this[_0x21c2f5(0x1c9)]['t'](_0x21c2f5(0x166)),'type':P['MessageType']['Error'],'duration':0xbb8});},0x1388);}}));}};b=fe([s['OnLifecycle'](s[_0x1eec14(0x124)][_0x1eec14(0x16a)],b),_(0x0,s[_0x1eec14(0x109)]),_(0x1,v[_0x1eec14(0x189)]),_(0x2,s[_0x1eec14(0x175)](v[_0x1eec14(0x14d)])),_(0x3,s['Inject'](exports['HistoryLoaderService'])),_(0x4,s['Inject'](s[_0x1eec14(0x1e7)])),_(0x5,v[_0x1eec14(0x158)]),_(0x6,s[_0x1eec14(0x175)](E[_0x1eec14(0x129)])),_(0x7,s['Inject'](E[_0x1eec14(0x130)]))],b);const Se=_0x1eec14(0x1cd),ye={};var me=Object[_0x1eec14(0x10b)],pe=Object['getOwnPropertyDescriptor'],Ce=(_0x447e69,_0x283576,_0x36ae87,_0x19d881)=>{var _0x3993cb=_0x1eec14;for(var _0x27b6d2=_0x19d881>0x1?void 0x0:_0x19d881?pe(_0x283576,_0x36ae87):_0x283576,_0x34c5d3=_0x447e69[_0x3993cb(0x183)]-0x1,_0x3e1064;_0x34c5d3>=0x0;_0x34c5d3--)(_0x3e1064=_0x447e69[_0x34c5d3])&&(_0x27b6d2=(_0x19d881?_0x3e1064(_0x283576,_0x36ae87,_0x27b6d2):_0x3e1064(_0x27b6d2))||_0x27b6d2);return _0x19d881&&_0x27b6d2&&me(_0x283576,_0x36ae87,_0x27b6d2),_0x27b6d2;},R=(_0x4f7d0e,_0x2f0161)=>(_0x2596c5,_0x7bf10a)=>_0x2f0161(_0x2596c5,_0x7bf10a,_0x4f7d0e);const Ie='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var I;exports['UniverEditHistoryLoaderPlugin']=(I=class extends s[_0x1eec14(0x198)]{constructor(_0x1494aa=ye,_0x2a2ef0,_0x52815f){var _0x417917=_0x1eec14;super(),this[_0x417917(0x12d)]=_0x1494aa,this[_0x417917(0x132)]=_0x2a2ef0,this[_0x417917(0x168)]=_0x52815f;const {menu:_0x327754,..._0x36f589}=this['_config'];_0x327754&&this[_0x417917(0x168)][_0x417917(0x1e5)]('menu',_0x327754,{'merge':!0x0}),this[_0x417917(0x168)][_0x417917(0x1e5)](Se,_0x36f589),this[_0x417917(0x12d)][_0x417917(0x1cb)]&&this[_0x417917(0x168)][_0x417917(0x1e5)](U,this['_config'][_0x417917(0x1cb)]);}[_0x1eec14(0xec)](){var _0xada0f4=_0x1eec14;[[exports[_0xada0f4(0x17d)]],[b]][_0xada0f4(0x114)](_0x4278a3=>this[_0xada0f4(0x132)]['add'](_0x4278a3));}},f(I,_0x1eec14(0x1bd),s[_0x1eec14(0x119)][_0x1eec14(0x140)]),f(I,_0x1eec14(0x1c4),Ie),I),exports['UniverEditHistoryLoaderPlugin']=Ce([R(0x1,s[_0x1eec14(0x175)](s[_0x1eec14(0x186)])),R(0x2,s[_0x1eec14(0xf7)])],exports['UniverEditHistoryLoaderPlugin']),exports['UNIVER_CONTAINER_ID_KEY']=U,exports[_0x1eec14(0x1b7)]=y;function _0x59cb(){var _0x386f04=['393428MyCJNr','defineProperty','apply','UniverSheetsHyperLinkUIPlugin','#fff','Exited','IAuthzIoService','@univerjs/engine-render','history-single','currentColor','forEach','_initListener','close','_historyManagerService','univer-container','UniverInstanceType','100%','M0\x200H16V16H0z','mountHistoryContent','dispose','@univerjs/core','_componentManager','value','getSheetId','current','getContainer','LifecycleStages','xlink:href','__getInjector','eventID','revertRevision$','CollaborationController','UniverDocsUIPlugin','CommandType','@univerjs/sheets-filter','_config','\x20has\x20been\x20registered.','location','LocalCacheService','_initUniver','_injector','_checkCanRevert','770306jWENQw','HistorySingle','UniverSheetsConditionalFormattingUIPlugin','2103425EVyfAm','call','@univerjs/engine-formula','clear','@univerjs/sheets','getSheetCommandTarget','idSuffix','function','1000','UNIVER_UNKNOWN','UniverCollaborationPlugin','getElementById','Module','HistoryManagerService','_permissionService','state$','children','MenuItemType','editHistory.panel.title','OTHERS','getCurrentLocale','@univerjs/docs-ui','ComponentManager','colorChannel1','width','UNIVER_SHEET','@univerjs-pro/collaboration-client','@univerjs/drawing-ui','getMenuHiddenObservable','UniverSheetsPlugin','CollaborationStatus','_commandService','13129515KDHTfi','IMessageService','mutations','greenTheme','params','getCollabEntity','IUniverInstanceService','symbol','composePermission','status$','WorkbookRecoverHistoryPermission','mergeMenu','set','UniverSheetsNumfmtPlugin','@univerjs/sheets-conditional-formatting-ui','editHistory.panel.revertFailed','onCommandExecuted','_configService','attrs','Steady','univerjs-icon\x20univerjs-icon-','reload','style','@univerjs/sheets-formula','subscribe','UniverDrawingPlugin','6293432KDicAj','RevertRevisionMutation','getAllPlugins','data','Inject','div','MessageType','_selectionProtectionRuleModel','values','fill','tag','1894464cgPfXw','HistoryLoaderService','UniverUIPlugin','assign','@univerjs/sheets-conditional-formatting','@univerjs/sheets-drawing-ui','3543957zgFSsb','length','_collaborationController','_sidebarService','Injector','Loading','0\x200\x2016\x2016','IMenuManagerService','1em','getUnit','_localCacheService','Entered','registerPlugin','@univerjs/sheets-filter-ui','_initMessageService','UniverIcon','_historyUniver','replace','UniverFormulaEnginePlugin','BUTTON','add','use','Plugin','_menuManagerService','getLocales','entries','createElement','[HistoryLoaderService]:\x20Plugin\x20','@univerjs/sheets-hyper-link','registerCommand','@univerjs/sheets-hyper-link-ui','IImageIoService','getOwnPropertySymbols','_disposableCollection','_initPlugins','_univerInstanceService','executeCommand','react','_dialogService','HistoryModeStatus','rxjs','toDisposable','UniverSheetsDrawingPlugin','@univerjs/design','@univerjs/rpc','WorkbookViewHistoryPermission','_messageService','displayName','prototype','has','get','@univerjs/sheets-numfmt','@univerjs/data-validation','UNIVER_HISTORY_CONTAINER_ID','SYNCED','hasOwnProperty','register','univer-history-container','every','type','./worker.js','UniverDrawingUIPlugin','triggerLoadVersions','UniverSheetsDataValidationPlugin','propertyIsEnumerable','78vdOJJG','pluginName','WorkbookEditablePermission','UNIVER_CONTAINER_ID','getOwnPropertyDescriptor','UniverSheetsUIPlugin','_localeService','editHistory.panel.reverting','univerContainerId','some','edit-history-loader.config','disposeWithMe','Error','forwardRef','getCurrentRangeDisable$','event$','trim','ISidebarService','DisposableCollection','substring','UniverRenderEnginePlugin','status','IPermissionService','UniverEditHistoryViewerPlugin','appendChild','UniverSheetsPivotTablePlugin','map','setContainer','OPERATION','string','random','CHANGESET_ACK','show','getConfig','setConfig','_revertErrorTimer','LocaleService','path','defIds','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','invoke','concat','UniverSheetsFilterPlugin','WorksheetEditPermission','onStarting','unsubscribe','_init','UniverRPCMainThreadPlugin','RangeProtectionRuleModel','display','icon','block','_initContainer','unMountHistoryContent','4eqiZAd','IConfigService','clipPath','className','toString','RangeProtectionPermissionEditPoint','UniverDocsPlugin','getSubunitRuleList','toStringTag','_pluginMap','Disposable','useRef','@univerjs/drawing','height','absolute','indexOf','history-single_clip0_907_281','@univerjs/sheets-ui','IDialogService','ICommandService'];_0x59cb=function(){return _0x386f04;};return _0x59cb();}
|
|
1
|
+
'use strict';var _0x405d2f=_0x36a8;(function(_0x4bc6c0,_0x129d84){var _0x5c8589=_0x36a8,_0x3e767b=_0x4bc6c0();while(!![]){try{var _0x4f99e3=parseInt(_0x5c8589(0x14f))/0x1+-parseInt(_0x5c8589(0xac))/0x2+parseInt(_0x5c8589(0x94))/0x3+parseInt(_0x5c8589(0xeb))/0x4+-parseInt(_0x5c8589(0x76))/0x5+-parseInt(_0x5c8589(0x128))/0x6+-parseInt(_0x5c8589(0x131))/0x7*(-parseInt(_0x5c8589(0x13e))/0x8);if(_0x4f99e3===_0x129d84)break;else _0x3e767b['push'](_0x3e767b['shift']());}catch(_0x51f5d0){_0x3e767b['push'](_0x3e767b['shift']());}}}(_0x280b,0xd0577));var D=Object[_0x405d2f(0x8b)],j=(_0x5574ed,_0x438b05,_0x5b89e0)=>_0x438b05 in _0x5574ed?D(_0x5574ed,_0x438b05,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b89e0}):_0x5574ed[_0x438b05]=_0x5b89e0,f=(_0x2c1bda,_0x455c2c,_0x1d3402)=>j(_0x2c1bda,typeof _0x455c2c!=_0x405d2f(0xa1)?_0x455c2c+'':_0x455c2c,_0x1d3402);Object[_0x405d2f(0x8b)](exports,Symbol[_0x405d2f(0x101)],{'value':'Module'});const s=require(_0x405d2f(0x14c)),P=require(_0x405d2f(0xa4)),q=require('@univerjs/docs'),x=require('@univerjs/docs-ui'),k=require(_0x405d2f(0x108)),h=require(_0x405d2f(0x11b)),O=require(_0x405d2f(0x71)),v=require(_0x405d2f(0x136)),S=require(_0x405d2f(0xa5)),p=require(_0x405d2f(0xc1)),F=require('@univerjs/sheets-filter'),V=require(_0x405d2f(0xff)),A=require('@univerjs/sheets-conditional-formatting'),$=require('@univerjs/sheets-conditional-formatting-ui'),W=require(_0x405d2f(0xba)),Y=require(_0x405d2f(0x10d)),B=require(_0x405d2f(0xd0)),G=require(_0x405d2f(0xca)),K=require(_0x405d2f(0x145)),z=require('@univerjs/engine-formula'),Z=require(_0x405d2f(0x120)),J=require(_0x405d2f(0xbf)),Q=require(_0x405d2f(0xd9)),X=require(_0x405d2f(0x7e)),ee=require(_0x405d2f(0x14e)),H=require(_0x405d2f(0xed)),ie=require('@univerjs-pro/sheets-pivot'),E=require(_0x405d2f(0x6b)),te=require(_0x405d2f(0x9c)),C=require(_0x405d2f(0x7d));var re=Object[_0x405d2f(0x8b)],ne=Object[_0x405d2f(0x112)],oe=(_0x215804,_0x624ec3,_0x6ce6e1,_0x34dea2)=>{for(var _0x65a6f2=_0x34dea2>0x1?void 0x0:_0x34dea2?ne(_0x624ec3,_0x6ce6e1):_0x624ec3,_0xac0b67=_0x215804['length']-0x1,_0x463427;_0xac0b67>=0x0;_0xac0b67--)(_0x463427=_0x215804[_0xac0b67])&&(_0x65a6f2=(_0x34dea2?_0x463427(_0x624ec3,_0x6ce6e1,_0x65a6f2):_0x463427(_0x65a6f2))||_0x65a6f2);return _0x34dea2&&_0x65a6f2&&re(_0x624ec3,_0x6ce6e1,_0x65a6f2),_0x65a6f2;},d=(_0x4211f3,_0x5a889a)=>(_0x38b0e3,_0x1ae648)=>_0x5a889a(_0x38b0e3,_0x1ae648,_0x4211f3);const se='univer-container',U=_0x405d2f(0x103),y=_0x405d2f(0xd3);exports[_0x405d2f(0x88)]=class extends s[_0x405d2f(0x11c)]{constructor(_0xbf028d,_0x4e9b49,_0x1bf985,_0x5b0d31,_0x580011,_0x41152c,_0x159226,_0xcdea5b,_0x4cfacf){var _0x4989cb=_0x405d2f;super(),f(this,_0x4989cb(0xce),null),f(this,'_disposableCollection',new s[(_0x4989cb(0xf2))]()),f(this,_0x4989cb(0xea),new Map()),(this[_0x4989cb(0x121)]=_0xbf028d,this[_0x4989cb(0xbe)]=_0x4e9b49,this[_0x4989cb(0xcd)]=_0x1bf985,this['_commandService']=_0x5b0d31,this[_0x4989cb(0x118)]=_0x580011,this['_permissionService']=_0x41152c,this[_0x4989cb(0xb5)]=_0x159226,this['_dialogService']=_0xcdea5b,this[_0x4989cb(0xbd)]=_0x4cfacf,this['_init']());}['_init'](){var _0x5c138a=_0x405d2f;this[_0x5c138a(0x119)](),this[_0x5c138a(0x122)]();}[_0x405d2f(0x119)](){var _0x343425=_0x405d2f,_0x2bffc0;const _0xe05734=(_0x2bffc0=this[_0x343425(0xcd)]['getConfig'](U))!=null?_0x2bffc0:se,_0x82dd29=document[_0x343425(0xb8)](_0xe05734);if(!_0x82dd29)return;const _0x57a713=document[_0x343425(0x73)]('div');_0x57a713['id']=y,_0x57a713['style'][_0x343425(0xf8)]=_0x343425(0xa2),_0x57a713[_0x343425(0x95)]['top']='0',_0x57a713['style'][_0x343425(0xb4)]='0',_0x57a713[_0x343425(0x95)]['width']=_0x343425(0x8e),_0x57a713['style'][_0x343425(0xd5)]=_0x343425(0x8e),_0x57a713[_0x343425(0x95)][_0x343425(0x132)]=_0x343425(0xe1),_0x57a713[_0x343425(0x95)][_0x343425(0x7a)]=_0x343425(0x117),_0x82dd29[_0x343425(0x129)](_0x57a713);}['_initPlugins'](){var _0x4f5f57=_0x405d2f;[[H[_0x4f5f57(0x11a)],{'override':[[H[_0x4f5f57(0x104)],null]]}],[q['UniverDocsPlugin'],{'hasScroll':!0x1}],[x[_0x4f5f57(0x6e)]],[k['UniverRenderEnginePlugin']],[v[_0x4f5f57(0x98)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[v[_0x4f5f57(0xbc)],null]]}],[h[_0x4f5f57(0xe4)],{'notExecuteFormula':!0x0}],[O[_0x4f5f57(0xda)]],[p[_0x4f5f57(0xf7)]],[F[_0x4f5f57(0x75)]],[V[_0x4f5f57(0xa3)]],[A[_0x4f5f57(0x12b)]],[$['UniverSheetsConditionalFormattingUIPlugin']],[W[_0x4f5f57(0x85)]],[Y[_0x4f5f57(0x140)]],[B['UniverDataValidationPlugin']],[J[_0x4f5f57(0x67)]],[G[_0x4f5f57(0xae)]],[z[_0x4f5f57(0x82)],{'notExecuteFormula':!0x0}],[K[_0x4f5f57(0x12c)]],[Z[_0x4f5f57(0x144)],{'workerURL':_0x4f5f57(0x6d)}],[Q[_0x4f5f57(0xdf)]],[ee['UniverSheetsDrawingPlugin']],[X['UniverSheetsDrawingUIPlugin']],[ie[_0x4f5f57(0x127)],{'notExecuteFormula':!0x0}],[S[_0x4f5f57(0x77)]]][_0x4f5f57(0x10b)](([_0x58d236,_0x3d0e0c])=>this[_0x4f5f57(0xe0)](_0x58d236,_0x3d0e0c));}[_0x405d2f(0xa0)](){var _0x21bf1d=_0x405d2f;super[_0x21bf1d(0xa0)](),this[_0x21bf1d(0x9d)](),this[_0x21bf1d(0xea)][_0x21bf1d(0xc9)]();}[_0x405d2f(0xe0)](_0x59dd8d,_0x425835,_0x4b9575){var _0x29bbe1=_0x405d2f;if(this['_pluginMap'][_0x29bbe1(0x83)](_0x59dd8d[_0x29bbe1(0x155)])&&!_0x4b9575)throw new Error(_0x29bbe1(0x81)+_0x59dd8d['pluginName']+'\x20has\x20been\x20registered.');this[_0x29bbe1(0xea)][_0x29bbe1(0x12e)](_0x59dd8d[_0x29bbe1(0x155)],[_0x59dd8d,_0x425835]);}['getAllPlugins'](){var _0x1ef192=_0x405d2f;return Array[_0x1ef192(0x12a)](this[_0x1ef192(0xea)][_0x1ef192(0xad)]());}['mountHistoryContent'](_0x344f79){var _0xfe8081=_0x405d2f;const _0x3fd92b=document['getElementById'](y);_0x3fd92b&&(_0x3fd92b[_0xfe8081(0x95)][_0xfe8081(0x7a)]=_0xfe8081(0x6a),this[_0xfe8081(0x13a)](_0x344f79,y));}[_0x405d2f(0x9d)](){var _0x18f6e5=_0x405d2f,_0x22d244;this[_0x18f6e5(0x9f)][_0x18f6e5(0xa0)](),(_0x22d244=this[_0x18f6e5(0xce)])==null||_0x22d244[_0x18f6e5(0xa0)](),this[_0x18f6e5(0xce)]=null;const _0x2fe89c=document['getElementById'](y);_0x2fe89c&&(_0x2fe89c['style'][_0x18f6e5(0x7a)]='none');}[_0x405d2f(0x13a)](_0x33b7db,_0x101e01){var _0x191e6f=_0x405d2f;if(this[_0x191e6f(0xce)])return;const _0x25332b=new s[(_0x191e6f(0x8c))]({'theme':P['greenTheme'],'locales':{[this[_0x191e6f(0x121)][_0x191e6f(0xc4)]()]:this[_0x191e6f(0x121)][_0x191e6f(0x147)]()},'override':[[s[_0x191e6f(0x91)],null]]});this[_0x191e6f(0xce)]=_0x25332b;const _0x16f9dc=_0x25332b[_0x191e6f(0xcf)]();_0x16f9dc[_0x191e6f(0xb2)](s[_0x191e6f(0x12f)])[_0x191e6f(0x110)](this[_0x191e6f(0x121)][_0x191e6f(0xc4)]()),this[_0x191e6f(0xea)][_0x191e6f(0x10b)](([_0x1aeb59,_0x1e03c5])=>{var _0x55ab97=_0x191e6f;_0x25332b[_0x55ab97(0xe0)](_0x1aeb59,_0x1e03c5);}),_0x16f9dc[_0x191e6f(0x116)](_0x50aa4e=>{var _0x40148b=_0x191e6f;this[_0x40148b(0x89)](_0x50aa4e,_0x33b7db),this[_0x40148b(0x134)](_0x50aa4e,this['_messageService']);});const _0xdcf4c2=_0x16f9dc[_0x191e6f(0xb2)](S[_0x191e6f(0xc7)]),_0x3700c1=this[_0x191e6f(0xcb)](_0x33b7db);_0xdcf4c2[_0x191e6f(0xfc)](_0x33b7db,_0x101e01,_0x3700c1);}['_initListener'](_0x9f79b1,_0x5f315f){var _0x4a39dd=_0x405d2f;const _0x29d3ca=_0x9f79b1[_0x4a39dd(0xb2)](S[_0x4a39dd(0xc7)]);this[_0x4a39dd(0x9f)][_0x4a39dd(0xf9)](_0x29d3ca[_0x4a39dd(0xe7)][_0x4a39dd(0x11e)](_0x46ee61=>{var _0x3a82a7=_0x4a39dd;switch(_0x46ee61){case S['HistoryModeStatus'][_0x3a82a7(0x10f)]:this[_0x3a82a7(0x14d)][_0x3a82a7(0x79)](),this[_0x3a82a7(0xbd)][_0x3a82a7(0x14a)]();break;case S['HistoryModeStatus'][_0x3a82a7(0x157)]:this[_0x3a82a7(0x9d)]();break;case S[_0x3a82a7(0xcc)]['Error']:this[_0x3a82a7(0x9d)](),this[_0x3a82a7(0x118)][_0x3a82a7(0x113)]({'content':this[_0x3a82a7(0x121)]['t'](_0x3a82a7(0xdc)),'type':P[_0x3a82a7(0x130)]['Error'],'duration':0xbb8});break;}})),this[_0x4a39dd(0x9f)][_0x4a39dd(0xf9)](_0x29d3ca[_0x4a39dd(0x115)][_0x4a39dd(0x11e)](async _0x1cbfcc=>{var _0x33b582=_0x4a39dd;_0x1cbfcc&&this[_0x33b582(0x148)][_0x33b582(0xc0)](p[_0x33b582(0x159)]['id'],{'unitId':_0x5f315f,'revision':_0x1cbfcc});}));}[_0x405d2f(0x134)](_0x5ca7fd,_0xf8613b){var _0x467e3d=_0x405d2f;const _0x5e521a=_0x5ca7fd[_0x467e3d(0xb2)](v[_0x467e3d(0x9a)]),_0x3b19fc=_0xf8613b['getContainer']();_0x3b19fc&&_0x5e521a['setContainer'](_0x3b19fc);}[_0x405d2f(0xcb)](_0x2001f4){var _0xeb8ab1=_0x405d2f;const _0x6e189e=this[_0xeb8ab1(0xbe)][_0xeb8ab1(0x8d)](_0x2001f4)[_0xeb8ab1(0x141)]()[_0xeb8ab1(0x138)](_0xdebdbd=>_0xdebdbd[_0xeb8ab1(0x72)]()),_0x569488=new h[(_0xeb8ab1(0x114))](_0x2001f4)['id'],_0x3ca30e=_0x6e189e[_0xeb8ab1(0x138)](_0x2c963c=>new h[(_0xeb8ab1(0xde))](_0x2001f4,_0x2c963c)['id']),_0x461ee0=_0x6e189e[_0xeb8ab1(0x138)](_0xfe9a13=>this[_0xeb8ab1(0xb5)]['getSubunitRuleList'](_0x2001f4,_0xfe9a13)['map'](_0x1731b0=>new h[(_0xeb8ab1(0x11f))](_0x2001f4,_0xfe9a13,_0x1731b0['permissionId'])['id']))['flat'](),_0x22e5ff=new h['WorkbookRecoverHistoryPermission'](_0x2001f4)['id'];return this[_0xeb8ab1(0x124)][_0xeb8ab1(0xd7)]([_0x569488,..._0x3ca30e,..._0x461ee0,_0x22e5ff])[_0xeb8ab1(0xc5)](_0x37c197=>!!_0x37c197[_0xeb8ab1(0xe6)]);}},exports[_0x405d2f(0x88)]=oe([s['OnLifecycle'](s[_0x405d2f(0x142)]['Steady'],exports[_0x405d2f(0x88)]),d(0x0,s[_0x405d2f(0x92)](s[_0x405d2f(0x12f)])),d(0x1,s['IUniverInstanceService']),d(0x2,s[_0x405d2f(0xdd)]),d(0x3,s[_0x405d2f(0x6c)]),d(0x4,v['IMessageService']),d(0x5,s['IPermissionService']),d(0x6,s[_0x405d2f(0x92)](h[_0x405d2f(0xee)])),d(0x7,s[_0x405d2f(0x92)](v[_0x405d2f(0xbc)])),d(0x8,s[_0x405d2f(0x92)](v[_0x405d2f(0x154)]))],exports[_0x405d2f(0x88)]);function _0x280b(){var _0x37bdf1=['OTHERS','UniverSheetsHyperLinkPlugin','xlink:href','RxDisposable','HistoryLoaderService','_initListener','assign','defineProperty','Univer','getUnit','100%','random','_menuManagerService','IAuthzIoService','Inject','function','1518633KpFKxP','style','1em','attrs','UniverUIPlugin','event$','IMessageService','edit-history-loader.config','rxjs','unMountHistoryContent','getCurrentRangeDisable$','_disposableCollection','dispose','symbol','absolute','UniverSheetsFilterUIPlugin','@univerjs/design','@univerjs-pro/edit-history-viewer','_historyManagerService','MenuItemType','UNIVER_SHEET','onStarting','mergeMenu','length','3399280fVsJeV','values','UniverSheetsNumfmtPlugin','_collaborationController','status','current','get','defs','left','_selectionProtectionRuleModel','state$','useRef','getElementById','IMenuManagerService','@univerjs/sheets-hyper-link','getMenuHiddenObservable','IDialogService','_sidebarService','_univerInstanceService','@univerjs/sheets-data-validation','executeCommand','@univerjs-pro/collaboration','icon','editHistory.panel.revertFailed','getCurrentLocale','every','_componentManager','HistoryManagerService','clipPath','clear','@univerjs/sheets-numfmt','_checkCanRevert','HistoryModeStatus','_configService','_historyUniver','__getInjector','@univerjs/data-validation','_revertErrorTimer','CHANGESET_ACK','univer-history-container','Plugin','height','UniverEditHistoryLoaderPlugin','composePermission','substring','@univerjs/drawing-ui','UniverSheetsUIPlugin','trim','editHistory.panel.listFetchError','IConfigService','WorksheetEditPermission','UniverDrawingUIPlugin','registerPlugin','1000','combineLatest','CollaborationEvent','UniverSheetsPlugin','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','value','status$','HistorySingle','history-single_clip0_907_281','_pluginMap','1377228ugZFNh','_injector','@univerjs/drawing','RangeProtectionRuleModel','entries','call','univerjs-icon\x20univerjs-icon-','DisposableCollection','Injector','replace','type','indexOf','UniverCollaborationPlugin','position','add','hasOwnProperty','setConfig','triggerLoadVersions','children','url(#history-single_clip0_907_281)','@univerjs/sheets-filter-ui','path','toStringTag','toDisposable','UNIVER_CONTAINER_ID','IImageIoService','idSuffix','extend','displayName','@univerjs/engine-render','getCollabEntity','editHistory.panel.title','forEach','Loading','@univerjs/sheets-hyper-link-ui','_localCacheService','Entered','setLocale','tag','getOwnPropertyDescriptor','show','WorkbookEditablePermission','revertRevision$','invoke','none','_messageService','_initContainer','UniverDrawingPlugin','@univerjs/sheets','Disposable','BUTTON','subscribe','RangeProtectionPermissionEditPoint','@univerjs/rpc','_localeService','_initPlugins','history-single','_permissionService','apply','forwardRef','UniverSheetsPivotTablePlugin','415584dOqyqT','appendChild','from','UniverSheetsConditionalFormattingPlugin','UniverSheetsFormulaPlugin','data','set','LocaleService','MessageType','1099AZEQiJ','zIndex','disposeWithMe','_initMessageService','propertyIsEnumerable','@univerjs/ui','register','map','Steady','_initUniver','location','toString','colorChannel1','154768PgbVYU','_init','UniverSheetsHyperLinkUIPlugin','getSheets','LifecycleStages','reload','UniverRPCMainThreadPlugin','@univerjs/sheets-formula','_config','getLocales','_commandService','onCommandExecuted','close','fill','@univerjs/core','_dialogService','@univerjs/sheets-drawing','124203odoRne','UNIVER_HISTORY_CONTAINER_ID','0\x200\x2016\x2016','LocalCacheService','M0\x200H16V16H0z','ISidebarService','pluginName','className','Exited','params','RevertRevisionMutation','OPERATION','getOwnPropertySymbols','WorkbookViewHistoryPermission','OnLifecycle','UniverSheetsDataValidationPlugin','concat','editHistory.panel.reverting','block','@univerjs-pro/collaboration-client','ICommandService','./worker.js','UniverDocsUIPlugin','defIds','RibbonStartGroup','@univerjs/sheets-ui','getSheetId','createElement','prototype','UniverSheetsFilterPlugin','6948860IEchMs','UniverEditHistoryViewerPlugin','CollaborationStatus','closeAll','display','UNIVER_UNKNOWN','getSheetCommandTarget','react','@univerjs/sheets-drawing-ui','use','UniverIcon','[HistoryLoaderService]:\x20Plugin\x20','UniverFormulaEnginePlugin','has'];_0x280b=function(){return _0x37bdf1;};return _0x280b();}var u=function(){var _0x5ebef7=_0x405d2f;return u=Object['assign']||function(_0x326b04){var _0xc4ab8a=_0x36a8;for(var _0x19d9f5,_0x5c1db7=0x1,_0x223aa4=arguments[_0xc4ab8a(0xab)];_0x5c1db7<_0x223aa4;_0x5c1db7++){_0x19d9f5=arguments[_0x5c1db7];for(var _0x4a13f2 in _0x19d9f5)Object[_0xc4ab8a(0x74)][_0xc4ab8a(0xfa)]['call'](_0x19d9f5,_0x4a13f2)&&(_0x326b04[_0x4a13f2]=_0x19d9f5[_0x4a13f2]);}return _0x326b04;},u[_0x5ebef7(0x125)](this,arguments);},ae=function(_0x202f8d,_0x3e15b9){var _0x526fc4=_0x405d2f,_0x3357f1={};for(var _0x2f3b7d in _0x202f8d)Object[_0x526fc4(0x74)]['hasOwnProperty'][_0x526fc4(0xf0)](_0x202f8d,_0x2f3b7d)&&_0x3e15b9['indexOf'](_0x2f3b7d)<0x0&&(_0x3357f1[_0x2f3b7d]=_0x202f8d[_0x2f3b7d]);if(_0x202f8d!=null&&typeof Object[_0x526fc4(0x64)]==_0x526fc4(0x93)){for(var _0x406e92=0x0,_0x2f3b7d=Object['getOwnPropertySymbols'](_0x202f8d);_0x406e92<_0x2f3b7d[_0x526fc4(0xab)];_0x406e92++)_0x3e15b9[_0x526fc4(0xf6)](_0x2f3b7d[_0x406e92])<0x0&&Object['prototype'][_0x526fc4(0x135)][_0x526fc4(0xf0)](_0x202f8d,_0x2f3b7d[_0x406e92])&&(_0x3357f1[_0x2f3b7d[_0x406e92]]=_0x202f8d[_0x2f3b7d[_0x406e92]]);}return _0x3357f1;},w=C['forwardRef'](function(_0x104633,_0x2f4f84){var _0x3667cd=_0x405d2f,_0xa960fb=_0x104633[_0x3667cd(0xc2)],_0x52515b=_0x104633['id'],_0x3a8035=_0x104633[_0x3667cd(0x156)],_0x2e6ea0=_0x104633[_0x3667cd(0x106)],_0x4e7019=ae(_0x104633,[_0x3667cd(0xc2),'id',_0x3667cd(0x156),'extend']),_0x4049a5=_0x3667cd(0xf1)['concat'](_0x52515b,'\x20')[_0x3667cd(0x68)](_0x3a8035||'')[_0x3667cd(0xdb)](),_0x35e5f9=C[_0x3667cd(0xb7)]('_'['concat'](ue()));return L(_0xa960fb,''[_0x3667cd(0x68)](_0x52515b),{'defIds':_0xa960fb[_0x3667cd(0x6f)],'idSuffix':_0x35e5f9[_0x3667cd(0xb1)]},u({'ref':_0x2f4f84,'className':_0x4049a5},_0x4e7019),_0x2e6ea0);});function L(_0x1f7573,_0x3290f5,_0x9b9fb7,_0x2935b2,_0x27f00b){var _0x526947=_0x405d2f;return C[_0x526947(0x73)](_0x1f7573[_0x526947(0x111)],u(u({'key':_0x3290f5},ce(_0x1f7573,_0x9b9fb7,_0x27f00b)),_0x2935b2),(le(_0x1f7573,_0x9b9fb7)['children']||[])['map'](function(_0xf37283,_0x2ac2b8){var _0x3bd851=_0x526947;return L(_0xf37283,''['concat'](_0x3290f5,'-')[_0x3bd851(0x68)](_0x1f7573[_0x3bd851(0x111)],'-')['concat'](_0x2ac2b8),_0x9b9fb7,void 0x0,_0x27f00b);}));}function ce(_0x311553,_0x302e39,_0x24a3b9){var _0x391037=_0x405d2f,_0x1bbc6b=u({},_0x311553[_0x391037(0x97)]);_0x24a3b9!=null&&_0x24a3b9[_0x391037(0x13d)]&&_0x1bbc6b['fill']===_0x391037(0x13d)&&(_0x1bbc6b[_0x391037(0x14b)]=_0x24a3b9['colorChannel1']);var _0x5ecc09=_0x302e39[_0x391037(0x6f)];return!_0x5ecc09||_0x5ecc09[_0x391037(0xab)]===0x0||(_0x311553[_0x391037(0x111)]===_0x391037(0x7f)&&_0x1bbc6b[_0x391037(0x86)]&&(_0x1bbc6b[_0x391037(0x86)]=_0x1bbc6b[_0x391037(0x86)]+_0x302e39[_0x391037(0x105)]),Object[_0x391037(0xef)](_0x1bbc6b)[_0x391037(0x10b)](function(_0x4595f1){var _0x2b4678=_0x391037,_0x5e5737=_0x4595f1[0x0],_0x23f3aa=_0x4595f1[0x1];typeof _0x23f3aa=='string'&&(_0x1bbc6b[_0x5e5737]=_0x23f3aa[_0x2b4678(0xf4)](/url\(#(.*)\)/,'url(#$1'[_0x2b4678(0x68)](_0x302e39[_0x2b4678(0x105)],')')));})),_0x1bbc6b;}function le(_0x2ed987,_0x564600){var _0x294f81=_0x405d2f,_0x2fd2c8,_0x34fd13=_0x564600[_0x294f81(0x6f)];return!_0x34fd13||_0x34fd13[_0x294f81(0xab)]===0x0?_0x2ed987:_0x2ed987[_0x294f81(0x111)]===_0x294f81(0xb3)&&(!((_0x2fd2c8=_0x2ed987['children'])===null||_0x2fd2c8===void 0x0)&&_0x2fd2c8['length'])?u(u({},_0x2ed987),{'children':_0x2ed987[_0x294f81(0xfd)][_0x294f81(0x138)](function(_0x1c5206){var _0x4d7c56=_0x294f81;return typeof _0x1c5206[_0x4d7c56(0x97)]['id']=='string'&&_0x34fd13&&_0x34fd13[_0x4d7c56(0xf6)](_0x1c5206[_0x4d7c56(0x97)]['id'])>-0x1?u(u({},_0x1c5206),{'attrs':u(u({},_0x1c5206[_0x4d7c56(0x97)]),{'id':_0x1c5206[_0x4d7c56(0x97)]['id']+_0x564600['idSuffix']})}):_0x1c5206;})}):_0x2ed987;}function ue(){var _0x59e6c0=_0x405d2f;return Math[_0x59e6c0(0x8f)]()[_0x59e6c0(0x13c)](0x24)[_0x59e6c0(0xd8)](0x2,0x8);}w[_0x405d2f(0x107)]=_0x405d2f(0x80);var ve={'tag':'svg','attrs':{'fill':_0x405d2f(0x117),'viewBox':_0x405d2f(0x151),'width':'1em','height':_0x405d2f(0x96)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x405d2f(0xfe)},'children':[{'tag':_0x405d2f(0x100),'attrs':{'d':_0x405d2f(0xe5)}},{'tag':_0x405d2f(0x100),'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':_0x405d2f(0xb3),'attrs':{},'children':[{'tag':_0x405d2f(0xc8),'attrs':{'id':_0x405d2f(0xe9)},'children':[{'tag':_0x405d2f(0x100),'attrs':{'fill':'#fff','d':_0x405d2f(0x153)}}]}]}],'defIds':[_0x405d2f(0xe9)]},N=C[_0x405d2f(0x126)](function(_0x588e94,_0x510c15){var _0x42561d=_0x405d2f;return C[_0x42561d(0x73)](w,Object[_0x42561d(0x8a)]({},_0x588e94,{'id':_0x42561d(0x123),'ref':_0x510c15,'icon':ve}));});N[_0x405d2f(0x107)]=_0x405d2f(0xe8);const M={'id':'univer.operation.toggle-edit-history','type':s['CommandType'][_0x405d2f(0x15a)],'handler':_0x2f19a8=>{var _0x4bf8af=_0x405d2f;const _0x39b04f=_0x2f19a8[_0x4bf8af(0xb2)](exports[_0x4bf8af(0x88)]),_0x3b191b=_0x2f19a8[_0x4bf8af(0xb2)](s['IUniverInstanceService']),{unitId:_0x141704}=h[_0x4bf8af(0x7c)](_0x3b191b)||{};return _0x141704?(_0x39b04f['mountHistoryContent'](_0x141704),!0x0):!0x1;}},T=_0x405d2f(0xe8);function ge(_0x208c26){var _0x26b4b1=_0x405d2f;return{'id':M['id'],'type':v[_0x26b4b1(0xa7)][_0x26b4b1(0x11d)],'icon':T,'tooltip':_0x26b4b1(0x10a),'hidden$':v[_0x26b4b1(0xbb)](_0x208c26,s['UniverInstanceType'][_0x26b4b1(0xa8)]),'disabled$':O[_0x26b4b1(0x9e)](_0x208c26,{'workbookTypes':[h[_0x26b4b1(0x114)],h[_0x26b4b1(0x65)]],'worksheetTypes':[],'rangeTypes':[]})};}const de={[v[_0x405d2f(0x70)][_0x405d2f(0x84)]]:{[M['id']]:{'order':0x0,'menuItemFactory':ge}}};var he=Object[_0x405d2f(0x8b)],_e=Object[_0x405d2f(0x112)],fe=(_0x16d076,_0x39e1e7,_0x1a3356,_0x57816d)=>{for(var _0x41e29e=_0x57816d>0x1?void 0x0:_0x57816d?_e(_0x39e1e7,_0x1a3356):_0x39e1e7,_0x5822ca=_0x16d076['length']-0x1,_0x1b700c;_0x5822ca>=0x0;_0x5822ca--)(_0x1b700c=_0x16d076[_0x5822ca])&&(_0x41e29e=(_0x57816d?_0x1b700c(_0x39e1e7,_0x1a3356,_0x41e29e):_0x1b700c(_0x41e29e))||_0x41e29e);return _0x57816d&&_0x41e29e&&he(_0x39e1e7,_0x1a3356,_0x41e29e),_0x41e29e;},_=(_0x35a75b,_0x1f30ba)=>(_0xf3de78,_0x5b7f60)=>_0x1f30ba(_0xf3de78,_0x5b7f60,_0x35a75b);let b=class extends s[_0x405d2f(0x87)]{constructor(_0x471842,_0x1f0322,_0x4bb974,_0x1ca00e,_0x583f5b,_0x4dbaf2,_0x1f77b0,_0x23571c){var _0x5f08e=_0x405d2f;super(),f(this,_0x5f08e(0xd1),null),(this[_0x5f08e(0x148)]=_0x471842,this[_0x5f08e(0x90)]=_0x1f0322,this[_0x5f08e(0xc6)]=_0x4bb974,this[_0x5f08e(0xa6)]=_0x1ca00e,this[_0x5f08e(0x121)]=_0x583f5b,this[_0x5f08e(0x118)]=_0x4dbaf2,this[_0x5f08e(0xaf)]=_0x1f77b0,this[_0x5f08e(0x10e)]=_0x23571c,this[_0x5f08e(0x13f)]());}[_0x405d2f(0x13f)](){var _0x15f897=_0x405d2f;[M][_0x15f897(0x10b)](_0xb5dc62=>this['disposeWithMe'](s[_0x15f897(0x102)](this['_commandService']['registerCommand'](_0xb5dc62)))),this[_0x15f897(0x133)](this['_componentManager'][_0x15f897(0x137)](T,N)),this[_0x15f897(0x90)][_0x15f897(0xaa)](de),this[_0x15f897(0x133)](this[_0x15f897(0x148)][_0x15f897(0x149)](_0x74e182=>{var _0x11d930=_0x15f897;if(_0x74e182['id']===p[_0x11d930(0x159)]['id']){this[_0x11d930(0x118)]['show']({'content':this[_0x11d930(0x121)]['t'](_0x11d930(0x69)),'type':P[_0x11d930(0x130)][_0x11d930(0x10c)],'duration':0x1388});const {unitId:_0x220f10}=_0x74e182[_0x11d930(0x158)],_0x1ed065=this[_0x11d930(0xaf)][_0x11d930(0x109)](_0x220f10),_0x386e6b=te[_0x11d930(0xe2)]([_0x1ed065['session'][_0x11d930(0x99)],_0x1ed065[_0x11d930(0xb6)]])['subscribe'](async([_0x4ed49c,_0x4e8307])=>{var _0x67dd20=_0x11d930;_0x4ed49c['eventID']===p[_0x67dd20(0xe3)][_0x67dd20(0xd2)]&&(_0x4e8307==null?void 0x0:_0x4e8307[_0x67dd20(0xb0)])===E[_0x67dd20(0x78)]['SYNCED']&&_0x4ed49c[_0x67dd20(0x12d)]['mutations']['some'](_0x2d755e=>_0x2d755e['id']===p[_0x67dd20(0x159)]['id'])&&(this[_0x67dd20(0xa6)][_0x67dd20(0x9d)](),_0x386e6b['unsubscribe'](),this[_0x67dd20(0xd1)]&&clearTimeout(this['_revertErrorTimer']),await this[_0x67dd20(0x10e)]['exhaustSavingTask'](),setTimeout(()=>window[_0x67dd20(0x13b)][_0x67dd20(0x143)]()));});this[_0x11d930(0xd1)]=setTimeout(()=>{var _0x3afcab=_0x11d930;_0x386e6b['unsubscribe'](),this[_0x3afcab(0x118)]['show']({'content':this['_localeService']['t'](_0x3afcab(0xc3)),'type':P['MessageType']['Error'],'duration':0xbb8});},0x1388);}}));}};b=fe([s[_0x405d2f(0x66)](s[_0x405d2f(0x142)][_0x405d2f(0x139)],b),_(0x0,s[_0x405d2f(0x6c)]),_(0x1,v[_0x405d2f(0xb9)]),_(0x2,s[_0x405d2f(0x92)](v['ComponentManager'])),_(0x3,s[_0x405d2f(0x92)](exports[_0x405d2f(0x88)])),_(0x4,s[_0x405d2f(0x92)](s[_0x405d2f(0x12f)])),_(0x5,v[_0x405d2f(0x9a)]),_(0x6,s[_0x405d2f(0x92)](E['CollaborationController'])),_(0x7,s[_0x405d2f(0x92)](E[_0x405d2f(0x152)]))],b);const Se=_0x405d2f(0x9b),ye={};var me=Object['defineProperty'],pe=Object[_0x405d2f(0x112)],Ce=(_0x291c5d,_0x109ba2,_0x2ee9aa,_0x466eb7)=>{var _0x437869=_0x405d2f;for(var _0x1f8c22=_0x466eb7>0x1?void 0x0:_0x466eb7?pe(_0x109ba2,_0x2ee9aa):_0x109ba2,_0x2d4f7c=_0x291c5d[_0x437869(0xab)]-0x1,_0x3fc775;_0x2d4f7c>=0x0;_0x2d4f7c--)(_0x3fc775=_0x291c5d[_0x2d4f7c])&&(_0x1f8c22=(_0x466eb7?_0x3fc775(_0x109ba2,_0x2ee9aa,_0x1f8c22):_0x3fc775(_0x1f8c22))||_0x1f8c22);return _0x466eb7&&_0x1f8c22&&me(_0x109ba2,_0x2ee9aa,_0x1f8c22),_0x1f8c22;},R=(_0x349845,_0x3912e3)=>(_0x349508,_0x207bc3)=>_0x3912e3(_0x349508,_0x207bc3,_0x349845);const Ie='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';function _0x36a8(_0x1ef5bd,_0xa3ca39){var _0x280b9b=_0x280b();return _0x36a8=function(_0x36a899,_0x1ddb93){_0x36a899=_0x36a899-0x64;var _0x366b26=_0x280b9b[_0x36a899];return _0x366b26;},_0x36a8(_0x1ef5bd,_0xa3ca39);}var I;exports[_0x405d2f(0xd6)]=(I=class extends s[_0x405d2f(0xd4)]{constructor(_0x2da54f=ye,_0x36a1f6,_0x15c2da){var _0x4b1d64=_0x405d2f;super(),this[_0x4b1d64(0x146)]=_0x2da54f,this['_injector']=_0x36a1f6,this[_0x4b1d64(0xcd)]=_0x15c2da;const {menu:_0x4651d,..._0x595769}=this['_config'];_0x4651d&&this[_0x4b1d64(0xcd)][_0x4b1d64(0xfb)]('menu',_0x4651d,{'merge':!0x0}),this[_0x4b1d64(0xcd)]['setConfig'](Se,_0x595769),this['_config']['univerContainerId']&&this['_configService']['setConfig'](U,this['_config']['univerContainerId']);}[_0x405d2f(0xa9)](){var _0x1bfd7e=_0x405d2f;[[exports[_0x1bfd7e(0x88)]],[b]][_0x1bfd7e(0x10b)](_0x4d3051=>this[_0x1bfd7e(0xec)][_0x1bfd7e(0xf9)](_0x4d3051));}},f(I,_0x405d2f(0xf5),s['UniverInstanceType'][_0x405d2f(0x7b)]),f(I,_0x405d2f(0x155),Ie),I),exports[_0x405d2f(0xd6)]=Ce([R(0x1,s['Inject'](s[_0x405d2f(0xf3)])),R(0x2,s[_0x405d2f(0xdd)])],exports['UniverEditHistoryLoaderPlugin']),exports['UNIVER_CONTAINER_ID_KEY']=U,exports[_0x405d2f(0x150)]=y;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4970b7=_0x2cd9;(function(_0x5b314a,_0x1f0de6){var _0x3a0376=_0x2cd9,_0x16d944=_0x5b314a();while(!![]){try{var _0x6f21c3=parseInt(_0x3a0376(0x1be))/0x1+-parseInt(_0x3a0376(0x13d))/0x2*(-parseInt(_0x3a0376(0x1ae))/0x3)+parseInt(_0x3a0376(0x14d))/0x4*(parseInt(_0x3a0376(0x170))/0x5)+parseInt(_0x3a0376(0x1ce))/0x6+parseInt(_0x3a0376(0x1b7))/0x7*(parseInt(_0x3a0376(0x1ca))/0x8)+-parseInt(_0x3a0376(0x19a))/0x9+parseInt(_0x3a0376(0x188))/0xa*(-parseInt(_0x3a0376(0x1af))/0xb);if(_0x6f21c3===_0x1f0de6)break;else _0x16d944['push'](_0x16d944['shift']());}catch(_0x49bb7b){_0x16d944['push'](_0x16d944['shift']());}}}(_0x8c75,0x7b265));var W=Object['defineProperty'],B=(_0x4e497f,_0xc724f5,_0x59bfc4)=>_0xc724f5 in _0x4e497f?W(_0x4e497f,_0xc724f5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59bfc4}):_0x4e497f[_0xc724f5]=_0x59bfc4,h=(_0x1ecd97,_0x1e87c9,_0x17d5d4)=>B(_0x1ecd97,typeof _0x1e87c9!='symbol'?_0x1e87c9+'':_0x1e87c9,_0x17d5d4);import{Disposable as _0x1471bb,DisposableCollection as _0x432a57,Univer as _0x59fa74,IAuthzIoService as _0x31aedd,LocaleService as _0x3d1009,OnLifecycle as _0x460e8a,LifecycleStages as _0x23a0cc,Inject as _0x280249,IUniverInstanceService as _0x1937eb,IConfigService as _0x2c59bd,ICommandService as _0x27925d,IPermissionService as _0xce6c6c,CommandType as _0x4c9f51,UniverInstanceType as _0x5672fb,RxDisposable as _0x4f50f1,toDisposable as _0x194792,Plugin as _0x365bb3,Injector as _0x175cc7}from'@univerjs/core';import{greenTheme as _0x7d7b2b,MessageType as _0x5d78cc}from'@univerjs/design';import{UniverDocsPlugin as _0x45b195}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x441932}from'@univerjs/docs-ui';import{UniverRenderEnginePlugin as _0x10e72b}from'@univerjs/engine-render';import{WorkbookEditablePermission as _0x439433,WorksheetEditPermission as _0x3e8d65,RangeProtectionPermissionEditPoint as _0x56ba19,WorkbookRecoverHistoryPermission as _0x43e7a7,RangeProtectionRuleModel as _0x4bb93c,UniverSheetsPlugin as _0x2ccc31,getSheetCommandTarget as _0x586d83,WorkbookViewHistoryPermission as _0x3075cf}from'@univerjs/sheets';import{UniverSheetsUIPlugin as _0x29b21d,getCurrentRangeDisable$ as _0x54e7ff}from'@univerjs/sheets-ui';import{IMessageService as _0x599fbd,IDialogService as _0x577917,ISidebarService as _0x516ee7,UniverUIPlugin as _0x4ce0f9,MenuItemType as _0x43915f,getMenuHiddenObservable as _0x550f72,RibbonStartGroup as _0x141424,ComponentManager as _0x2fdb75,IMenuManagerService as _0x1d981e}from'@univerjs/ui';import{HistoryManagerService as _0x5e36f9,HistoryModeStatus as _0x2ff83b,UniverEditHistoryViewerPlugin as _0x5a163c}from'@univerjs-pro/edit-history-viewer';import{RevertRevisionMutation as _0xe4a3d3,UniverCollaborationPlugin as _0x4a4937,CollaborationEvent as _0x17b55e}from'@univerjs-pro/collaboration';import{UniverSheetsFilterPlugin as _0x3d8380}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1e082a}from'@univerjs/sheets-filter-ui';import{UniverSheetsConditionalFormattingPlugin as _0x478b98}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4eb6f5}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsHyperLinkPlugin as _0x1f0ff9}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x285d4c}from'@univerjs/sheets-hyper-link-ui';import{UniverDataValidationPlugin as _0x3d3d58}from'@univerjs/data-validation';import{UniverSheetsNumfmtPlugin as _0x4fabee}from'@univerjs/sheets-numfmt';import{UniverSheetsFormulaPlugin as _0x2b5c15}from'@univerjs/sheets-formula';import{UniverFormulaEnginePlugin as _0x417aa7}from'@univerjs/engine-formula';import{UniverRPCMainThreadPlugin as _0x3d7d1a}from'@univerjs/rpc';import{UniverSheetsDataValidationPlugin as _0x42794a}from'@univerjs/sheets-data-validation';import{UniverDrawingUIPlugin as _0x4140ed}from'@univerjs/drawing-ui';import{UniverSheetsDrawingUIPlugin as _0x12177b}from'@univerjs/sheets-drawing-ui';function _0x2cd9(_0x14275b,_0x16cf3c){var _0x8c7547=_0x8c75();return _0x2cd9=function(_0x2cd951,_0xb8e0c6){_0x2cd951=_0x2cd951-0x138;var _0x393218=_0x8c7547[_0x2cd951];return _0x393218;},_0x2cd9(_0x14275b,_0x16cf3c);}import{UniverSheetsDrawingPlugin as _0x303af0}from'@univerjs/sheets-drawing';import{UniverDrawingPlugin as _0xe1364f,IImageIoService as _0x5a01dc}from'@univerjs/drawing';import{UniverSheetsPivotTablePlugin as _0x5a6dc0}from'@univerjs-pro/sheets-pivot';import{CollaborationStatus as _0x48020b,CollaborationController as _0xe36b6e,LocalCacheService as _0x304175}from'@univerjs-pro/collaboration-client';import{combineLatest as _0x308004}from'rxjs';import{forwardRef as _0x491713,useRef as _0x3b5b75,createElement as _0x290907}from'react';var Ke=Object[_0x4970b7(0x15b)],ze=Object[_0x4970b7(0x161)],Ze=(_0x581f16,_0x5ad332,_0x537779,_0x516bce)=>{var _0x93bdc5=_0x4970b7;for(var _0xf80fa=_0x516bce>0x1?void 0x0:_0x516bce?ze(_0x5ad332,_0x537779):_0x5ad332,_0xd1594d=_0x581f16[_0x93bdc5(0x167)]-0x1,_0x545bb3;_0xd1594d>=0x0;_0xd1594d--)(_0x545bb3=_0x581f16[_0xd1594d])&&(_0xf80fa=(_0x516bce?_0x545bb3(_0x5ad332,_0x537779,_0xf80fa):_0x545bb3(_0xf80fa))||_0xf80fa);return _0x516bce&&_0xf80fa&&Ke(_0x5ad332,_0x537779,_0xf80fa),_0xf80fa;},g=(_0x1bbb9b,_0x4a4ca1)=>(_0xb19772,_0x53fed2)=>_0x4a4ca1(_0xb19772,_0x53fed2,_0x1bbb9b);const qe=_0x4970b7(0x1cb),k=_0x4970b7(0x164),f='univer-history-container';let d=class extends _0x1471bb{constructor(_0x2eb88f,_0x442c3a,_0x3414d2,_0x43411f,_0x46dd69,_0x44e164,_0x495a7c,_0x5ba3ab,_0x5d1019){var _0x5e69af=_0x4970b7;super(),h(this,'_historyUniver',null),h(this,'_disposableCollection',new _0x432a57()),h(this,'_pluginMap',new Map()),(this[_0x5e69af(0x1ab)]=_0x2eb88f,this[_0x5e69af(0x1cc)]=_0x442c3a,this[_0x5e69af(0x1c1)]=_0x3414d2,this[_0x5e69af(0x1d2)]=_0x43411f,this[_0x5e69af(0x173)]=_0x46dd69,this['_permissionService']=_0x44e164,this[_0x5e69af(0x1bb)]=_0x495a7c,this[_0x5e69af(0x157)]=_0x5ba3ab,this[_0x5e69af(0x15e)]=_0x5d1019,this['_init']());}['_init'](){var _0x3dc9cb=_0x4970b7;this[_0x3dc9cb(0x1ac)](),this['_initPlugins']();}['_initContainer'](){var _0x97c30f=_0x4970b7,_0x5ecb77;const _0x37f755=(_0x5ecb77=this[_0x97c30f(0x1c1)][_0x97c30f(0x16c)](k))!=null?_0x5ecb77:qe,_0x4097c5=document[_0x97c30f(0x181)](_0x37f755);if(!_0x4097c5)return;const _0x2d4b7f=document[_0x97c30f(0x15d)](_0x97c30f(0x1a5));_0x2d4b7f['id']=f,_0x2d4b7f[_0x97c30f(0x14a)]['position']=_0x97c30f(0x190),_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x1b3)]='0',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x1a9)]='0',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x142)]=_0x97c30f(0x189),_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x160)]='100%',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x144)]='1000',_0x2d4b7f['style'][_0x97c30f(0x151)]='none',_0x4097c5['appendChild'](_0x2d4b7f);}[_0x4970b7(0x1b5)](){var _0x40ed06=_0x4970b7;[[_0xe1364f,{'override':[[_0x5a01dc,null]]}],[_0x45b195,{'hasScroll':!0x1}],[_0x441932],[_0x10e72b],[_0x4ce0f9,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x577917,null]]}],[_0x2ccc31,{'notExecuteFormula':!0x0}],[_0x29b21d],[_0x4a4937],[_0x3d8380],[_0x1e082a],[_0x478b98],[_0x4eb6f5],[_0x1f0ff9],[_0x285d4c],[_0x3d3d58],[_0x42794a],[_0x4fabee],[_0x417aa7,{'notExecuteFormula':!0x0}],[_0x2b5c15],[_0x3d7d1a,{'workerURL':_0x40ed06(0x1b9)}],[_0x4140ed],[_0x303af0],[_0x12177b],[_0x5a6dc0,{'notExecuteFormula':!0x0}],[_0x5a163c]]['forEach'](([_0x1db85b,_0x2feec1])=>this['registerPlugin'](_0x1db85b,_0x2feec1));}[_0x4970b7(0x1a1)](){var _0x1e6b61=_0x4970b7;super[_0x1e6b61(0x1a1)](),this[_0x1e6b61(0x149)](),this[_0x1e6b61(0x1a3)]['clear']();}['registerPlugin'](_0x4dda2a,_0x2fcda4,_0x486511){var _0x2c9696=_0x4970b7;if(this['_pluginMap'][_0x2c9696(0x1a0)](_0x4dda2a[_0x2c9696(0x176)])&&!_0x486511)throw new Error(_0x2c9696(0x148)+_0x4dda2a[_0x2c9696(0x176)]+_0x2c9696(0x1b1));this['_pluginMap'][_0x2c9696(0x1c8)](_0x4dda2a[_0x2c9696(0x176)],[_0x4dda2a,_0x2fcda4]);}['getAllPlugins'](){var _0x128e83=_0x4970b7;return Array[_0x128e83(0x168)](this[_0x128e83(0x1a3)][_0x128e83(0x1c4)]());}[_0x4970b7(0x178)](_0xd4396){var _0x272b7d=_0x4970b7;const _0x6c0eb=document[_0x272b7d(0x181)](f);_0x6c0eb&&(_0x6c0eb[_0x272b7d(0x14a)][_0x272b7d(0x151)]=_0x272b7d(0x1a6),this[_0x272b7d(0x1b4)](_0xd4396,f));}['unMountHistoryContent'](){var _0x382771=_0x4970b7,_0x49428a;this[_0x382771(0x18d)][_0x382771(0x1a1)](),(_0x49428a=this[_0x382771(0x163)])==null||_0x49428a[_0x382771(0x1a1)](),this[_0x382771(0x163)]=null;const _0x5538ad=document[_0x382771(0x181)](f);_0x5538ad&&(_0x5538ad[_0x382771(0x14a)][_0x382771(0x151)]=_0x382771(0x145));}[_0x4970b7(0x1b4)](_0x53d08c,_0x36a7dc){var _0x3ff92f=_0x4970b7;if(this[_0x3ff92f(0x163)])return;const _0x2a6df9=new _0x59fa74({'theme':_0x7d7b2b,'locales':{[this['_localeService'][_0x3ff92f(0x139)]()]:this['_localeService'][_0x3ff92f(0x154)]()},'override':[[_0x31aedd,null]]});this[_0x3ff92f(0x163)]=_0x2a6df9;const _0x10958a=_0x2a6df9[_0x3ff92f(0x1cd)]();_0x10958a[_0x3ff92f(0x19e)](_0x3d1009)[_0x3ff92f(0x141)](this[_0x3ff92f(0x1ab)][_0x3ff92f(0x139)]()),this[_0x3ff92f(0x1a3)][_0x3ff92f(0x19c)](([_0x9518b7,_0x5928e2])=>{_0x2a6df9['registerPlugin'](_0x9518b7,_0x5928e2);}),_0x10958a[_0x3ff92f(0x196)](_0x8faa22=>{var _0x53d715=_0x3ff92f;this[_0x53d715(0x1a4)](_0x8faa22,_0x53d08c),this[_0x53d715(0x14b)](_0x8faa22,this[_0x53d715(0x173)]);});const _0x237fbd=_0x10958a[_0x3ff92f(0x19e)](_0x5e36f9),_0x34a9e5=this[_0x3ff92f(0x1d7)](_0x53d08c);_0x237fbd[_0x3ff92f(0x17b)](_0x53d08c,_0x36a7dc,_0x34a9e5);}[_0x4970b7(0x1a4)](_0x1b6d9d,_0x17b351){var _0x5e5e21=_0x4970b7;const _0x44c829=_0x1b6d9d[_0x5e5e21(0x19e)](_0x5e36f9);this['_disposableCollection'][_0x5e5e21(0x1b0)](_0x44c829['status$'][_0x5e5e21(0x14e)](_0x2ec5ae=>{var _0x12899f=_0x5e5e21;switch(_0x2ec5ae){case _0x2ff83b[_0x12899f(0x1ba)]:this[_0x12899f(0x157)][_0x12899f(0x198)](),this[_0x12899f(0x15e)]['close']();break;case _0x2ff83b[_0x12899f(0x158)]:this['unMountHistoryContent']();break;case _0x2ff83b[_0x12899f(0x1bd)]:this[_0x12899f(0x149)](),this[_0x12899f(0x173)][_0x12899f(0x19b)]({'content':this[_0x12899f(0x1ab)]['t']('editHistory.panel.listFetchError'),'type':_0x5d78cc[_0x12899f(0x1bd)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x5e5e21(0x1b0)](_0x44c829['revertRevision$'][_0x5e5e21(0x14e)](async _0x247be3=>{var _0x1e3b58=_0x5e5e21;_0x247be3&&this[_0x1e3b58(0x1d2)]['executeCommand'](_0xe4a3d3['id'],{'unitId':_0x17b351,'revision':_0x247be3});}));}[_0x4970b7(0x14b)](_0x14ebb8,_0x21cbb9){var _0x2df20e=_0x4970b7;const _0x1535ee=_0x14ebb8[_0x2df20e(0x19e)](_0x599fbd),_0x4210d8=_0x21cbb9['getContainer']();_0x4210d8&&_0x1535ee[_0x2df20e(0x150)](_0x4210d8);}[_0x4970b7(0x1d7)](_0x167a3d){var _0x4060af=_0x4970b7;const _0x57e0ed=this[_0x4060af(0x1cc)][_0x4060af(0x186)](_0x167a3d)[_0x4060af(0x171)]()[_0x4060af(0x1b6)](_0x4c04e8=>_0x4c04e8['getSheetId']()),_0x17d41b=new _0x439433(_0x167a3d)['id'],_0xdcf447=_0x57e0ed[_0x4060af(0x1b6)](_0xcf604d=>new _0x3e8d65(_0x167a3d,_0xcf604d)['id']),_0x559953=_0x57e0ed['map'](_0x4e769c=>this[_0x4060af(0x1bb)][_0x4060af(0x177)](_0x167a3d,_0x4e769c)[_0x4060af(0x1b6)](_0x65da59=>new _0x56ba19(_0x167a3d,_0x4e769c,_0x65da59[_0x4060af(0x13a)])['id']))[_0x4060af(0x197)](),_0x535c94=new _0x43e7a7(_0x167a3d)['id'];return this[_0x4060af(0x1bc)][_0x4060af(0x1c2)]([_0x17d41b,..._0xdcf447,..._0x559953,_0x535c94])[_0x4060af(0x1bf)](_0x31eec7=>!!_0x31eec7[_0x4060af(0x193)]);}};d=Ze([_0x460e8a(_0x23a0cc['Steady'],d),g(0x0,_0x280249(_0x3d1009)),g(0x1,_0x1937eb),g(0x2,_0x2c59bd),g(0x3,_0x27925d),g(0x4,_0x599fbd),g(0x5,_0xce6c6c),g(0x6,_0x280249(_0x4bb93c)),g(0x7,_0x280249(_0x577917)),g(0x8,_0x280249(_0x516ee7))],d);var l=function(){var _0x231275=_0x4970b7;return l=Object[_0x231275(0x1c9)]||function(_0xd05d3a){var _0x329041=_0x231275;for(var _0x3cef0a,_0x3b9aab=0x1,_0x457466=arguments['length'];_0x3b9aab<_0x457466;_0x3b9aab++){_0x3cef0a=arguments[_0x3b9aab];for(var _0x38c3e7 in _0x3cef0a)Object[_0x329041(0x1a2)][_0x329041(0x1d4)][_0x329041(0x146)](_0x3cef0a,_0x38c3e7)&&(_0xd05d3a[_0x38c3e7]=_0x3cef0a[_0x38c3e7]);}return _0xd05d3a;},l[_0x231275(0x18a)](this,arguments);},Je=function(_0x2a3065,_0x3a284b){var _0xa1840a=_0x4970b7,_0x9ef911={};for(var _0x2a5e43 in _0x2a3065)Object['prototype']['hasOwnProperty']['call'](_0x2a3065,_0x2a5e43)&&_0x3a284b[_0xa1840a(0x172)](_0x2a5e43)<0x0&&(_0x9ef911[_0x2a5e43]=_0x2a3065[_0x2a5e43]);if(_0x2a3065!=null&&typeof Object[_0xa1840a(0x147)]==_0xa1840a(0x1cf)){for(var _0x4a665a=0x0,_0x2a5e43=Object[_0xa1840a(0x147)](_0x2a3065);_0x4a665a<_0x2a5e43['length'];_0x4a665a++)_0x3a284b[_0xa1840a(0x172)](_0x2a5e43[_0x4a665a])<0x0&&Object['prototype'][_0xa1840a(0x175)]['call'](_0x2a3065,_0x2a5e43[_0x4a665a])&&(_0x9ef911[_0x2a5e43[_0x4a665a]]=_0x2a3065[_0x2a5e43[_0x4a665a]]);}return _0x9ef911;},$=_0x491713(function(_0x1b0459,_0x14af8e){var _0x1310a0=_0x4970b7,_0x2aa954=_0x1b0459[_0x1310a0(0x16b)],_0x5d4be7=_0x1b0459['id'],_0x2cb521=_0x1b0459['className'],_0xa31387=_0x1b0459[_0x1310a0(0x1b8)],_0x21ac0b=Je(_0x1b0459,[_0x1310a0(0x16b),'id',_0x1310a0(0x13f),_0x1310a0(0x1b8)]),_0x43d164=_0x1310a0(0x143)[_0x1310a0(0x14c)](_0x5d4be7,'\x20')[_0x1310a0(0x14c)](_0x2cb521||'')[_0x1310a0(0x15a)](),_0x4fb978=_0x3b5b75('_'[_0x1310a0(0x14c)](ei()));return A(_0x2aa954,''[_0x1310a0(0x14c)](_0x5d4be7),{'defIds':_0x2aa954['defIds'],'idSuffix':_0x4fb978[_0x1310a0(0x1d6)]},l({'ref':_0x14af8e,'className':_0x43d164},_0x21ac0b),_0xa31387);});function A(_0x44a7a7,_0x3d79b0,_0x4c8f51,_0x3a5a49,_0x5715e8){var _0x320a15=_0x4970b7;return _0x290907(_0x44a7a7[_0x320a15(0x199)],l(l({'key':_0x3d79b0},Qe(_0x44a7a7,_0x4c8f51,_0x5715e8)),_0x3a5a49),(Xe(_0x44a7a7,_0x4c8f51)['children']||[])['map'](function(_0x368016,_0x1b918d){var _0xfd2248=_0x320a15;return A(_0x368016,''[_0xfd2248(0x14c)](_0x3d79b0,'-')[_0xfd2248(0x14c)](_0x44a7a7['tag'],'-')['concat'](_0x1b918d),_0x4c8f51,void 0x0,_0x5715e8);}));}function Qe(_0x2d7c44,_0x4165fe,_0x52ed6a){var _0x5eaef4=_0x4970b7,_0xde3226=l({},_0x2d7c44[_0x5eaef4(0x1d3)]);_0x52ed6a!=null&&_0x52ed6a['colorChannel1']&&_0xde3226[_0x5eaef4(0x17a)]===_0x5eaef4(0x13c)&&(_0xde3226['fill']=_0x52ed6a[_0x5eaef4(0x13c)]);var _0x1d1106=_0x4165fe[_0x5eaef4(0x183)];return!_0x1d1106||_0x1d1106[_0x5eaef4(0x167)]===0x0||(_0x2d7c44[_0x5eaef4(0x199)]===_0x5eaef4(0x169)&&_0xde3226[_0x5eaef4(0x184)]&&(_0xde3226[_0x5eaef4(0x184)]=_0xde3226[_0x5eaef4(0x184)]+_0x4165fe[_0x5eaef4(0x18f)]),Object[_0x5eaef4(0x138)](_0xde3226)[_0x5eaef4(0x19c)](function(_0x451cfd){var _0x1247fe=_0x5eaef4,_0x2b0331=_0x451cfd[0x0],_0x11a99f=_0x451cfd[0x1];typeof _0x11a99f=='string'&&(_0xde3226[_0x2b0331]=_0x11a99f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1247fe(0x14c)](_0x4165fe[_0x1247fe(0x18f)],')')));})),_0xde3226;}function Xe(_0x2028dd,_0x53c028){var _0x3a8132=_0x4970b7,_0x8686aa,_0x1f8158=_0x53c028['defIds'];return!_0x1f8158||_0x1f8158[_0x3a8132(0x167)]===0x0?_0x2028dd:_0x2028dd[_0x3a8132(0x199)]===_0x3a8132(0x1c5)&&(!((_0x8686aa=_0x2028dd[_0x3a8132(0x15c)])===null||_0x8686aa===void 0x0)&&_0x8686aa[_0x3a8132(0x167)])?l(l({},_0x2028dd),{'children':_0x2028dd[_0x3a8132(0x15c)][_0x3a8132(0x1b6)](function(_0x1295ab){var _0x2293a9=_0x3a8132;return typeof _0x1295ab[_0x2293a9(0x1d3)]['id']==_0x2293a9(0x187)&&_0x1f8158&&_0x1f8158[_0x2293a9(0x172)](_0x1295ab[_0x2293a9(0x1d3)]['id'])>-0x1?l(l({},_0x1295ab),{'attrs':l(l({},_0x1295ab[_0x2293a9(0x1d3)]),{'id':_0x1295ab[_0x2293a9(0x1d3)]['id']+_0x53c028[_0x2293a9(0x18f)]})}):_0x1295ab;})}):_0x2028dd;}function ei(){var _0x49fe4a=_0x4970b7;return Math['random']()[_0x49fe4a(0x18b)](0x24)['substring'](0x2,0x8);}$['displayName']='UniverIcon';var ii={'tag':'svg','attrs':{'fill':'none','viewBox':_0x4970b7(0x185),'width':_0x4970b7(0x1aa),'height':_0x4970b7(0x1aa)},'children':[{'tag':'g','attrs':{'fill':_0x4970b7(0x16d),'clipPath':_0x4970b7(0x14f)},'children':[{'tag':_0x4970b7(0x182),'attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':_0x4970b7(0x182),'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':_0x4970b7(0x1c5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':_0x4970b7(0x182),'attrs':{'fill':_0x4970b7(0x1a7),'d':_0x4970b7(0x1c6)}}]}]}],'defIds':[_0x4970b7(0x19d)]},F=_0x491713(function(_0x32ab0d,_0x515489){return _0x290907($,Object['assign']({},_0x32ab0d,{'id':'history-single','ref':_0x515489,'icon':ii}));});F[_0x4970b7(0x156)]=_0x4970b7(0x13b);const P={'id':_0x4970b7(0x1d8),'type':_0x4c9f51['OPERATION'],'handler':_0x462f87=>{var _0x535622=_0x4970b7;const _0x320612=_0x462f87[_0x535622(0x19e)](d),_0x310cb5=_0x462f87[_0x535622(0x19e)](_0x1937eb),{unitId:_0x2af1ce}=_0x586d83(_0x310cb5)||{};return _0x2af1ce?(_0x320612['mountHistoryContent'](_0x2af1ce),!0x0):!0x1;}},V=_0x4970b7(0x13b);function _0x8c75(){var _0x10dd18=['_checkCanRevert','univer.operation.toggle-edit-history','entries','getCurrentLocale','permissionId','HistorySingle','colorChannel1','134IZoOmW','UNIVER_SHEET','className','SYNCED','setLocale','width','univerjs-icon\x20univerjs-icon-','zIndex','none','call','getOwnPropertySymbols','[HistoryLoaderService]:\x20Plugin\x20','unMountHistoryContent','style','_initMessageService','concat','137996VXeKlB','subscribe','url(#history-single_clip0_907_281)','setContainer','display','state$','exhaustSavingTask','getLocales','mutations','displayName','_dialogService','Exited','editHistory.panel.revertFailed','trim','defineProperty','children','createElement','_sidebarService','_historyManagerService','height','getOwnPropertyDescriptor','reload','_historyUniver','UNIVER_CONTAINER_ID','editHistory.panel.title','menu','length','from','use','_config','icon','getConfig','currentColor','params','_init','120lCzrKC','getSheets','indexOf','_messageService','BUTTON','propertyIsEnumerable','pluginName','getSubunitRuleList','mountHistoryContent','OTHERS','fill','triggerLoadVersions','univerContainerId','data','status','_componentManager','unsubscribe','getElementById','path','defIds','xlink:href','0\x200\x2016\x2016','getUnit','string','1090VBchgu','100%','apply','toString','location','_disposableCollection','onStarting','idSuffix','absolute','_localCacheService','setConfig','value','disposeWithMe','event$','invoke','flat','closeAll','tag','8228538NktLdf','show','forEach','history-single_clip0_907_281','get','some','has','dispose','prototype','_pluginMap','_initListener','div','block','#fff','edit-history-loader.config','left','1em','_localeService','_initContainer','session','7437gIKiNA','218548VXpkiS','add','\x20has\x20been\x20registered.','Steady','top','_initUniver','_initPlugins','map','7hRMKIG','extend','./worker.js','Entered','_selectionProtectionRuleModel','_permissionService','Error','827989ATADlD','every','_revertErrorTimer','_configService','composePermission','getCollabEntity','values','defs','M0\x200H16V16H0z','_injector','set','assign','7356088BvTcNR','univer-container','_univerInstanceService','__getInjector','5056476zXWjrg','function','_menuManagerService','_collaborationController','_commandService','attrs','hasOwnProperty','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','current'];_0x8c75=function(){return _0x10dd18;};return _0x8c75();}function ti(_0x5d56b9){var _0x436ae6=_0x4970b7;return{'id':P['id'],'type':_0x43915f[_0x436ae6(0x174)],'icon':V,'tooltip':_0x436ae6(0x165),'hidden$':_0x550f72(_0x5d56b9,_0x5672fb[_0x436ae6(0x13e)]),'disabled$':_0x54e7ff(_0x5d56b9,{'workbookTypes':[_0x439433,_0x3075cf],'worksheetTypes':[],'rangeTypes':[]})};}const ri={[_0x141424[_0x4970b7(0x179)]]:{[P['id']]:{'order':0x0,'menuItemFactory':ti}}};var ni=Object[_0x4970b7(0x15b)],oi=Object[_0x4970b7(0x161)],si=(_0x5380f2,_0x3d3f38,_0x461956,_0x4d78d4)=>{for(var _0x40d43a=_0x4d78d4>0x1?void 0x0:_0x4d78d4?oi(_0x3d3f38,_0x461956):_0x3d3f38,_0x537d8f=_0x5380f2['length']-0x1,_0x3652b4;_0x537d8f>=0x0;_0x537d8f--)(_0x3652b4=_0x5380f2[_0x537d8f])&&(_0x40d43a=(_0x4d78d4?_0x3652b4(_0x3d3f38,_0x461956,_0x40d43a):_0x3652b4(_0x40d43a))||_0x40d43a);return _0x4d78d4&&_0x40d43a&&ni(_0x3d3f38,_0x461956,_0x40d43a),_0x40d43a;},v=(_0x17b550,_0x2c26c4)=>(_0x4714bb,_0xd03363)=>_0x2c26c4(_0x4714bb,_0xd03363,_0x17b550);let p=class extends _0x4f50f1{constructor(_0x40c5bd,_0x1acfa0,_0x591b3f,_0x3178da,_0x513336,_0x60f8bc,_0x8d22fb,_0x2f5f29){var _0x5e6d80=_0x4970b7;super(),h(this,_0x5e6d80(0x1c0),null),(this[_0x5e6d80(0x1d2)]=_0x40c5bd,this[_0x5e6d80(0x1d0)]=_0x1acfa0,this[_0x5e6d80(0x17f)]=_0x591b3f,this[_0x5e6d80(0x15f)]=_0x3178da,this[_0x5e6d80(0x1ab)]=_0x513336,this[_0x5e6d80(0x173)]=_0x60f8bc,this[_0x5e6d80(0x1d1)]=_0x8d22fb,this[_0x5e6d80(0x191)]=_0x2f5f29,this['_init']());}[_0x4970b7(0x16f)](){var _0x507acf=_0x4970b7;[P][_0x507acf(0x19c)](_0x38ddd0=>this[_0x507acf(0x194)](_0x194792(this[_0x507acf(0x1d2)]['registerCommand'](_0x38ddd0)))),this[_0x507acf(0x194)](this[_0x507acf(0x17f)]['register'](V,F)),this[_0x507acf(0x1d0)]['mergeMenu'](ri),this[_0x507acf(0x194)](this[_0x507acf(0x1d2)]['onCommandExecuted'](_0x33c1df=>{var _0x346cfc=_0x507acf;if(_0x33c1df['id']===_0xe4a3d3['id']){this[_0x346cfc(0x173)]['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x5d78cc['Loading'],'duration':0x1388});const {unitId:_0x451c77}=_0x33c1df[_0x346cfc(0x16e)],_0x276a99=this[_0x346cfc(0x1d1)][_0x346cfc(0x1c3)](_0x451c77),_0x662d2f=_0x308004([_0x276a99[_0x346cfc(0x1ad)][_0x346cfc(0x195)],_0x276a99[_0x346cfc(0x152)]])[_0x346cfc(0x14e)](async([_0x10de73,_0x331c07])=>{var _0x3e3a99=_0x346cfc;_0x10de73['eventID']===_0x17b55e['CHANGESET_ACK']&&(_0x331c07==null?void 0x0:_0x331c07[_0x3e3a99(0x17e)])===_0x48020b[_0x3e3a99(0x140)]&&_0x10de73[_0x3e3a99(0x17d)][_0x3e3a99(0x155)][_0x3e3a99(0x19f)](_0x835d02=>_0x835d02['id']===_0xe4a3d3['id'])&&(this[_0x3e3a99(0x15f)][_0x3e3a99(0x149)](),_0x662d2f[_0x3e3a99(0x180)](),this[_0x3e3a99(0x1c0)]&&clearTimeout(this[_0x3e3a99(0x1c0)]),await this[_0x3e3a99(0x191)][_0x3e3a99(0x153)](),setTimeout(()=>window[_0x3e3a99(0x18c)][_0x3e3a99(0x162)]()));});this['_revertErrorTimer']=setTimeout(()=>{var _0x28b39e=_0x346cfc;_0x662d2f[_0x28b39e(0x180)](),this['_messageService']['show']({'content':this[_0x28b39e(0x1ab)]['t'](_0x28b39e(0x159)),'type':_0x5d78cc[_0x28b39e(0x1bd)],'duration':0xbb8});},0x1388);}}));}};p=si([_0x460e8a(_0x23a0cc[_0x4970b7(0x1b2)],p),v(0x0,_0x27925d),v(0x1,_0x1d981e),v(0x2,_0x280249(_0x2fdb75)),v(0x3,_0x280249(d)),v(0x4,_0x280249(_0x3d1009)),v(0x5,_0x599fbd),v(0x6,_0x280249(_0xe36b6e)),v(0x7,_0x280249(_0x304175))],p);const ai=_0x4970b7(0x1a8),ci={};var li=Object[_0x4970b7(0x15b)],ui=Object[_0x4970b7(0x161)],gi=(_0x32032e,_0x15664a,_0x499620,_0x50785e)=>{var _0x13d17b=_0x4970b7;for(var _0x2a2c8e=_0x50785e>0x1?void 0x0:_0x50785e?ui(_0x15664a,_0x499620):_0x15664a,_0x2ae49d=_0x32032e[_0x13d17b(0x167)]-0x1,_0x277266;_0x2ae49d>=0x0;_0x2ae49d--)(_0x277266=_0x32032e[_0x2ae49d])&&(_0x2a2c8e=(_0x50785e?_0x277266(_0x15664a,_0x499620,_0x2a2c8e):_0x277266(_0x2a2c8e))||_0x2a2c8e);return _0x50785e&&_0x2a2c8e&&li(_0x15664a,_0x499620,_0x2a2c8e),_0x2a2c8e;},U=(_0x1b5b01,_0xd9ddd8)=>(_0x1973a9,_0x40d9a3)=>_0xd9ddd8(_0x1973a9,_0x40d9a3,_0x1b5b01);const vi=_0x4970b7(0x1d5);var _;let M=(_=class extends _0x365bb3{constructor(_0x273a28=ci,_0x5e0369,_0x5328f0){var _0x1f94dd=_0x4970b7;super(),this[_0x1f94dd(0x16a)]=_0x273a28,this[_0x1f94dd(0x1c7)]=_0x5e0369,this[_0x1f94dd(0x1c1)]=_0x5328f0;const {menu:_0x39a5ee,..._0x15a817}=this['_config'];_0x39a5ee&&this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](_0x1f94dd(0x166),_0x39a5ee,{'merge':!0x0}),this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](ai,_0x15a817),this[_0x1f94dd(0x16a)]['univerContainerId']&&this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](k,this[_0x1f94dd(0x16a)][_0x1f94dd(0x17c)]);}[_0x4970b7(0x18e)](){var _0x501982=_0x4970b7;[[d],[p]]['forEach'](_0x1fa4c5=>this[_0x501982(0x1c7)]['add'](_0x1fa4c5));}},h(_,'type',_0x5672fb['UNIVER_UNKNOWN']),h(_,_0x4970b7(0x176),vi),_);M=gi([U(0x1,_0x280249(_0x175cc7)),U(0x2,_0x2c59bd)],M);export{d as HistoryLoaderService,k as UNIVER_CONTAINER_ID_KEY,f as UNIVER_HISTORY_CONTAINER_ID,M as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
var _0x17df95=_0x5ed3;(function(_0x1e0f90,_0x3c24b3){var _0x45fc92=_0x5ed3,_0x3a1554=_0x1e0f90();while(!![]){try{var _0x49e0ee=parseInt(_0x45fc92(0x17b))/0x1+parseInt(_0x45fc92(0x166))/0x2*(-parseInt(_0x45fc92(0x1c4))/0x3)+parseInt(_0x45fc92(0x1be))/0x4*(parseInt(_0x45fc92(0x157))/0x5)+-parseInt(_0x45fc92(0x1b9))/0x6+parseInt(_0x45fc92(0x1bd))/0x7*(-parseInt(_0x45fc92(0x1cb))/0x8)+-parseInt(_0x45fc92(0x19c))/0x9*(parseInt(_0x45fc92(0x1cf))/0xa)+parseInt(_0x45fc92(0x1fa))/0xb*(parseInt(_0x45fc92(0x1c6))/0xc);if(_0x49e0ee===_0x3c24b3)break;else _0x3a1554['push'](_0x3a1554['shift']());}catch(_0x42c4cb){_0x3a1554['push'](_0x3a1554['shift']());}}}(_0x8b8c,0x4f827));function _0x8b8c(){var _0x5df27f=['disposeWithMe','getAllPlugins','attrs','univerjs-icon\x20univerjs-icon-','xlink:href','mutations','_initMessageService','div','top','revertRevision$','get','UNIVER_UNKNOWN','_injector','colorChannel1','_menuManagerService','hasOwnProperty','setConfig','clear','_univerInstanceService','onStarting','values','_init','getCollabEntity','_localCacheService','_messageService','18YuxUdY','mountHistoryContent','session','set','history-single','[HistoryLoaderService]:\x20Plugin\x20','invoke','url(#history-single_clip0_907_281)','getOwnPropertyDescriptor','location','currentColor','univer.operation.toggle-edit-history','permissionId','mergeMenu','getContainer','reload','UniverIcon','display','Error','\x20has\x20been\x20registered.','assign','getSheetId','_initUniver','type','subscribe','OTHERS','__getInjector','random','BUTTON','1962132soCSXy','_checkCanRevert','_collaborationController','idSuffix','4046rcSRPi','512608odFUzv','registerPlugin','url(#$1','eventID','edit-history-loader.config','none','431793nzHByb','className','12BQnUiO','#fff','_historyManagerService','_selectionProtectionRuleModel','indexOf','3896tDImyU','entries','children','0\x200\x2016\x2016','1225930NGZwTl','value','OPERATION','executeCommand','map','fill','setLocale','width','block','toString','registerCommand','show','symbol','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_initPlugins','clipPath','menu','event$','_config','history-single_clip0_907_281','tag','apply','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','_configService','displayName','UNIVER_SHEET','closeAll','function','composePermission','position','_componentManager','extend','SYNCED','from','propertyIsEnumerable','state$','_historyUniver','_initContainer','style','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','Entered','editHistory.panel.revertFailed','4297326tdNtxW','appendChild','Exited','20YFzgbY','1em','pluginName','_permissionService','substring','_pluginMap','getCurrentLocale','dispose','_disposableCollection','_commandService','_revertErrorTimer','concat','unsubscribe','defineProperty','call','2trmlSp','HistorySingle','forEach','editHistory.panel.title','_sidebarService','unMountHistoryContent','getConfig','getElementById','icon','register','M0\x200H16V16H0z','_initListener','zIndex','absolute','100%','left','editHistory.panel.listFetchError','length','string','use','defIds','420022fMMiBY','triggerLoadVersions','univerContainerId','height','_localeService','univer-history-container','univer-container','_dialogService'];_0x8b8c=function(){return _0x5df27f;};return _0x8b8c();}var W=Object['defineProperty'],B=(_0x29d82f,_0x5883bd,_0x201ea)=>_0x5883bd in _0x29d82f?W(_0x29d82f,_0x5883bd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x201ea}):_0x29d82f[_0x5883bd]=_0x201ea,h=(_0x3e16f7,_0x88d871,_0x34d062)=>B(_0x3e16f7,typeof _0x88d871!=_0x17df95(0x1db)?_0x88d871+'':_0x88d871,_0x34d062);import{Disposable as _0x10624e,DisposableCollection as _0x3557bb,Univer as _0x476c7a,IAuthzIoService as _0x3c1c09,LocaleService as _0x155745,OnLifecycle as _0x4db300,LifecycleStages as _0x586a45,Inject as _0x39fe6c,IUniverInstanceService as _0x53a27f,IConfigService as _0x1c0a49,ICommandService as _0x45e3ea,IPermissionService as _0x11a629,CommandType as _0x3cef93,UniverInstanceType as _0x46b096,RxDisposable as _0x9613a7,toDisposable as _0x1ac6b4,Plugin as _0x16f515,Injector as _0x427ce7}from'@univerjs/core';import{greenTheme as _0x12e8b6,MessageType as _0x4bf5f3}from'@univerjs/design';import{UniverDocsPlugin as _0x440cae}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x5656c6}from'@univerjs/docs-ui';import{UniverRenderEnginePlugin as _0x5c1ed9}from'@univerjs/engine-render';import{WorkbookEditablePermission as _0x1b54c4,WorksheetEditPermission as _0x74ebbf,RangeProtectionPermissionEditPoint as _0x1cc6d5,WorkbookRecoverHistoryPermission as _0x3644ba,RangeProtectionRuleModel as _0xd2d9d5,UniverSheetsPlugin as _0x50f053,getSheetCommandTarget as _0x4c7f3d,WorkbookViewHistoryPermission as _0x2e6f37}from'@univerjs/sheets';import{UniverSheetsUIPlugin as _0x519b45,getCurrentRangeDisable$ as _0x1f1dbd}from'@univerjs/sheets-ui';function _0x5ed3(_0x36683a,_0x5543ca){var _0x8b8cd7=_0x8b8c();return _0x5ed3=function(_0x5ed3f2,_0x2bf5c5){_0x5ed3f2=_0x5ed3f2-0x157;var _0x2957e1=_0x8b8cd7[_0x5ed3f2];return _0x2957e1;},_0x5ed3(_0x36683a,_0x5543ca);}import{IMessageService as _0x546bfb,IDialogService as _0x1b55b6,ISidebarService as _0x38460b,UniverUIPlugin as _0x3a065e,MenuItemType as _0x52ac26,getMenuHiddenObservable as _0x39ff9d,RibbonStartGroup as _0x3096c7,ComponentManager as _0xe8bd9e,IMenuManagerService as _0x4f7200}from'@univerjs/ui';import{HistoryManagerService as _0x53f2a5,HistoryModeStatus as _0x4f8f11,UniverEditHistoryViewerPlugin as _0x229b80}from'@univerjs-pro/edit-history-viewer';import{RevertRevisionMutation as _0x3a9c9f,UniverCollaborationPlugin as _0x27c056,CollaborationEvent as _0x1a58be}from'@univerjs-pro/collaboration';import{UniverSheetsFilterPlugin as _0x2ac783}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x31df87}from'@univerjs/sheets-filter-ui';import{UniverSheetsConditionalFormattingPlugin as _0x3a3e3a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x479d0c}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsHyperLinkPlugin as _0x10a4f0}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xc5b4c6}from'@univerjs/sheets-hyper-link-ui';import{UniverDataValidationPlugin as _0xa1b391}from'@univerjs/data-validation';import{UniverSheetsNumfmtPlugin as _0xf54aeb}from'@univerjs/sheets-numfmt';import{UniverSheetsFormulaPlugin as _0x2ddc1e}from'@univerjs/sheets-formula';import{UniverFormulaEnginePlugin as _0x57d829}from'@univerjs/engine-formula';import{UniverRPCMainThreadPlugin as _0x49d651}from'@univerjs/rpc';import{UniverSheetsDataValidationPlugin as _0x1f559f}from'@univerjs/sheets-data-validation';import{UniverDrawingUIPlugin as _0x21cb64}from'@univerjs/drawing-ui';import{UniverSheetsDrawingUIPlugin as _0x374b5f}from'@univerjs/sheets-drawing-ui';import{UniverSheetsDrawingPlugin as _0x3eb8b7}from'@univerjs/sheets-drawing';import{UniverDrawingPlugin as _0x8e76ef,IImageIoService as _0x4a133d}from'@univerjs/drawing';import{UniverSheetsPivotTablePlugin as _0x4ef589}from'@univerjs-pro/sheets-pivot';import{CollaborationStatus as _0x1566e0,CollaborationController as _0x142acd,LocalCacheService as _0x4ec263}from'@univerjs-pro/collaboration-client';import{combineLatest as _0x2c97cb}from'rxjs';import{forwardRef as _0x3170d8,useRef as _0x3ac52b,createElement as _0x24b921}from'react';var Ke=Object[_0x17df95(0x164)],ze=Object[_0x17df95(0x1a4)],Ze=(_0x888b61,_0x47c566,_0x2e0994,_0x19de67)=>{var _0x60e3d=_0x17df95;for(var _0x4a7603=_0x19de67>0x1?void 0x0:_0x19de67?ze(_0x47c566,_0x2e0994):_0x47c566,_0x20fceb=_0x888b61[_0x60e3d(0x177)]-0x1,_0x6a8e47;_0x20fceb>=0x0;_0x20fceb--)(_0x6a8e47=_0x888b61[_0x20fceb])&&(_0x4a7603=(_0x19de67?_0x6a8e47(_0x47c566,_0x2e0994,_0x4a7603):_0x6a8e47(_0x4a7603))||_0x4a7603);return _0x19de67&&_0x4a7603&&Ke(_0x47c566,_0x2e0994,_0x4a7603),_0x4a7603;},g=(_0x4dbe1c,_0x4b5b9c)=>(_0x3fbaa7,_0x3bacc5)=>_0x4b5b9c(_0x3fbaa7,_0x3bacc5,_0x4dbe1c);const qe=_0x17df95(0x181),k='UNIVER_CONTAINER_ID',f=_0x17df95(0x180);let d=class extends _0x10624e{constructor(_0x445022,_0x573baa,_0x16a8d8,_0x2334ff,_0x178026,_0x90320b,_0x129a72,_0x21a914,_0x1465f3){var _0x2d24e1=_0x17df95;super(),h(this,_0x2d24e1(0x1f4),null),h(this,_0x2d24e1(0x15f),new _0x3557bb()),h(this,_0x2d24e1(0x15c),new Map()),(this[_0x2d24e1(0x17f)]=_0x445022,this[_0x2d24e1(0x195)]=_0x573baa,this[_0x2d24e1(0x1e7)]=_0x16a8d8,this[_0x2d24e1(0x160)]=_0x2334ff,this[_0x2d24e1(0x19b)]=_0x178026,this[_0x2d24e1(0x15a)]=_0x90320b,this[_0x2d24e1(0x1c9)]=_0x129a72,this[_0x2d24e1(0x182)]=_0x21a914,this[_0x2d24e1(0x16a)]=_0x1465f3,this[_0x2d24e1(0x198)]());}[_0x17df95(0x198)](){var _0x4abcee=_0x17df95;this['_initContainer'](),this[_0x4abcee(0x1dd)]();}[_0x17df95(0x1f5)](){var _0x4473a5=_0x17df95,_0x1791ce;const _0x57f6ae=(_0x1791ce=this[_0x4473a5(0x1e7)][_0x4473a5(0x16c)](k))!=null?_0x1791ce:qe,_0x374463=document['getElementById'](_0x57f6ae);if(!_0x374463)return;const _0x5c5077=document['createElement'](_0x4473a5(0x18a));_0x5c5077['id']=f,_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x1ed)]=_0x4473a5(0x173),_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x18b)]='0',_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x175)]='0',_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x1d6)]=_0x4473a5(0x174),_0x5c5077['style'][_0x4473a5(0x17e)]=_0x4473a5(0x174),_0x5c5077['style'][_0x4473a5(0x172)]='1000',_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x1ad)]=_0x4473a5(0x1c3),_0x374463[_0x4473a5(0x1fb)](_0x5c5077);}[_0x17df95(0x1dd)](){var _0x2bd70d=_0x17df95;[[_0x8e76ef,{'override':[[_0x4a133d,null]]}],[_0x440cae,{'hasScroll':!0x1}],[_0x5656c6],[_0x5c1ed9],[_0x3a065e,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1b55b6,null]]}],[_0x50f053,{'notExecuteFormula':!0x0}],[_0x519b45],[_0x27c056],[_0x2ac783],[_0x31df87],[_0x3a3e3a],[_0x479d0c],[_0x10a4f0],[_0xc5b4c6],[_0xa1b391],[_0x1f559f],[_0xf54aeb],[_0x57d829,{'notExecuteFormula':!0x0}],[_0x2ddc1e],[_0x49d651,{'workerURL':'./worker.js'}],[_0x21cb64],[_0x3eb8b7],[_0x374b5f],[_0x4ef589,{'notExecuteFormula':!0x0}],[_0x229b80]][_0x2bd70d(0x168)](([_0x17f813,_0x4009f7])=>this[_0x2bd70d(0x1bf)](_0x17f813,_0x4009f7));}[_0x17df95(0x15e)](){var _0x41e6db=_0x17df95;super['dispose'](),this['unMountHistoryContent'](),this[_0x41e6db(0x15c)][_0x41e6db(0x194)]();}[_0x17df95(0x1bf)](_0x2a881d,_0x2c6e45,_0x6525d5){var _0xbbaa56=_0x17df95;if(this['_pluginMap']['has'](_0x2a881d[_0xbbaa56(0x159)])&&!_0x6525d5)throw new Error(_0xbbaa56(0x1a1)+_0x2a881d['pluginName']+_0xbbaa56(0x1af));this[_0xbbaa56(0x15c)][_0xbbaa56(0x19f)](_0x2a881d[_0xbbaa56(0x159)],[_0x2a881d,_0x2c6e45]);}[_0x17df95(0x184)](){var _0x5251d4=_0x17df95;return Array[_0x5251d4(0x1f1)](this[_0x5251d4(0x15c)][_0x5251d4(0x197)]());}[_0x17df95(0x19d)](_0x3b6713){var _0x267bc7=_0x17df95;const _0x35d035=document[_0x267bc7(0x16d)](f);_0x35d035&&(_0x35d035['style'][_0x267bc7(0x1ad)]=_0x267bc7(0x1d7),this[_0x267bc7(0x1b2)](_0x3b6713,f));}[_0x17df95(0x16b)](){var _0x1479ec=_0x17df95,_0x5ce660;this[_0x1479ec(0x15f)][_0x1479ec(0x15e)](),(_0x5ce660=this['_historyUniver'])==null||_0x5ce660['dispose'](),this[_0x1479ec(0x1f4)]=null;const _0x318df4=document['getElementById'](f);_0x318df4&&(_0x318df4[_0x1479ec(0x1f6)][_0x1479ec(0x1ad)]='none');}[_0x17df95(0x1b2)](_0x1d1354,_0x5da8dc){var _0x3820a8=_0x17df95;if(this[_0x3820a8(0x1f4)])return;const _0x4f114a=new _0x476c7a({'theme':_0x12e8b6,'locales':{[this[_0x3820a8(0x17f)][_0x3820a8(0x15d)]()]:this[_0x3820a8(0x17f)]['getLocales']()},'override':[[_0x3c1c09,null]]});this[_0x3820a8(0x1f4)]=_0x4f114a;const _0x29d361=_0x4f114a[_0x3820a8(0x1b6)]();_0x29d361[_0x3820a8(0x18d)](_0x155745)[_0x3820a8(0x1d5)](this[_0x3820a8(0x17f)]['getCurrentLocale']()),this['_pluginMap']['forEach'](([_0xde1a13,_0xa97199])=>{_0x4f114a['registerPlugin'](_0xde1a13,_0xa97199);}),_0x29d361[_0x3820a8(0x1a2)](_0x5a7324=>{var _0x591ece=_0x3820a8;this[_0x591ece(0x171)](_0x5a7324,_0x1d1354),this[_0x591ece(0x189)](_0x5a7324,this['_messageService']);});const _0x4a7df0=_0x29d361[_0x3820a8(0x18d)](_0x53f2a5),_0x41e011=this[_0x3820a8(0x1ba)](_0x1d1354);_0x4a7df0[_0x3820a8(0x17c)](_0x1d1354,_0x5da8dc,_0x41e011);}[_0x17df95(0x171)](_0x3074fc,_0xbc0054){var _0x4f8d09=_0x17df95;const _0x2b1c7c=_0x3074fc[_0x4f8d09(0x18d)](_0x53f2a5);this['_disposableCollection'][_0x4f8d09(0x1e6)](_0x2b1c7c['status$']['subscribe'](_0x5501a6=>{var _0x25a132=_0x4f8d09;switch(_0x5501a6){case _0x4f8f11[_0x25a132(0x1f8)]:this[_0x25a132(0x182)][_0x25a132(0x1ea)](),this[_0x25a132(0x16a)]['close']();break;case _0x4f8f11[_0x25a132(0x1fc)]:this[_0x25a132(0x16b)]();break;case _0x4f8f11[_0x25a132(0x1ae)]:this[_0x25a132(0x16b)](),this[_0x25a132(0x19b)]['show']({'content':this[_0x25a132(0x17f)]['t'](_0x25a132(0x176)),'type':_0x4bf5f3['Error'],'duration':0xbb8});break;}})),this[_0x4f8d09(0x15f)]['add'](_0x2b1c7c[_0x4f8d09(0x18c)][_0x4f8d09(0x1b4)](async _0x36187b=>{var _0x562092=_0x4f8d09;_0x36187b&&this[_0x562092(0x160)][_0x562092(0x1d2)](_0x3a9c9f['id'],{'unitId':_0xbc0054,'revision':_0x36187b});}));}[_0x17df95(0x189)](_0x3fcbc2,_0x29a7d3){var _0x3da4ee=_0x17df95;const _0x562804=_0x3fcbc2[_0x3da4ee(0x18d)](_0x546bfb),_0x4ed68e=_0x29a7d3[_0x3da4ee(0x1aa)]();_0x4ed68e&&_0x562804['setContainer'](_0x4ed68e);}[_0x17df95(0x1ba)](_0x4635ab){var _0xe6e0f2=_0x17df95;const _0x4a51bb=this[_0xe6e0f2(0x195)]['getUnit'](_0x4635ab)['getSheets']()[_0xe6e0f2(0x1d3)](_0xec70ee=>_0xec70ee[_0xe6e0f2(0x1b1)]()),_0x3e77ca=new _0x1b54c4(_0x4635ab)['id'],_0x7058e4=_0x4a51bb['map'](_0x2b4949=>new _0x74ebbf(_0x4635ab,_0x2b4949)['id']),_0x21fd95=_0x4a51bb['map'](_0xd60a9f=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x4635ab,_0xd60a9f)['map'](_0x57e6c5=>new _0x1cc6d5(_0x4635ab,_0xd60a9f,_0x57e6c5[_0xe6e0f2(0x1a8)])['id']))['flat'](),_0x472c40=new _0x3644ba(_0x4635ab)['id'];return this['_permissionService'][_0xe6e0f2(0x1ec)]([_0x3e77ca,..._0x7058e4,..._0x21fd95,_0x472c40])['every'](_0x4dc212=>!!_0x4dc212[_0xe6e0f2(0x1d0)]);}};d=Ze([_0x4db300(_0x586a45['Steady'],d),g(0x0,_0x39fe6c(_0x155745)),g(0x1,_0x53a27f),g(0x2,_0x1c0a49),g(0x3,_0x45e3ea),g(0x4,_0x546bfb),g(0x5,_0x11a629),g(0x6,_0x39fe6c(_0xd2d9d5)),g(0x7,_0x39fe6c(_0x1b55b6)),g(0x8,_0x39fe6c(_0x38460b))],d);var l=function(){var _0x2f2ed4=_0x17df95;return l=Object[_0x2f2ed4(0x1b0)]||function(_0x41e454){var _0x41bffd=_0x2f2ed4;for(var _0x7dbce3,_0x2c55da=0x1,_0x1d5f35=arguments[_0x41bffd(0x177)];_0x2c55da<_0x1d5f35;_0x2c55da++){_0x7dbce3=arguments[_0x2c55da];for(var _0xa2fe87 in _0x7dbce3)Object['prototype'][_0x41bffd(0x192)]['call'](_0x7dbce3,_0xa2fe87)&&(_0x41e454[_0xa2fe87]=_0x7dbce3[_0xa2fe87]);}return _0x41e454;},l[_0x2f2ed4(0x1e4)](this,arguments);},Je=function(_0x29bb6a,_0x3e0d8c){var _0x35dafe=_0x17df95,_0x4f3474={};for(var _0x5da4a1 in _0x29bb6a)Object['prototype']['hasOwnProperty'][_0x35dafe(0x165)](_0x29bb6a,_0x5da4a1)&&_0x3e0d8c[_0x35dafe(0x1ca)](_0x5da4a1)<0x0&&(_0x4f3474[_0x5da4a1]=_0x29bb6a[_0x5da4a1]);if(_0x29bb6a!=null&&typeof Object['getOwnPropertySymbols']==_0x35dafe(0x1eb)){for(var _0x4a9a98=0x0,_0x5da4a1=Object['getOwnPropertySymbols'](_0x29bb6a);_0x4a9a98<_0x5da4a1[_0x35dafe(0x177)];_0x4a9a98++)_0x3e0d8c[_0x35dafe(0x1ca)](_0x5da4a1[_0x4a9a98])<0x0&&Object['prototype'][_0x35dafe(0x1f2)][_0x35dafe(0x165)](_0x29bb6a,_0x5da4a1[_0x4a9a98])&&(_0x4f3474[_0x5da4a1[_0x4a9a98]]=_0x29bb6a[_0x5da4a1[_0x4a9a98]]);}return _0x4f3474;},$=_0x3170d8(function(_0x49c839,_0x7b25cb){var _0x3bf48f=_0x17df95,_0x21eddf=_0x49c839[_0x3bf48f(0x16e)],_0x5e2dbe=_0x49c839['id'],_0xe29b0e=_0x49c839[_0x3bf48f(0x1c5)],_0x4ff7ad=_0x49c839[_0x3bf48f(0x1ef)],_0x748768=Je(_0x49c839,[_0x3bf48f(0x16e),'id',_0x3bf48f(0x1c5),_0x3bf48f(0x1ef)]),_0x557f32=_0x3bf48f(0x186)[_0x3bf48f(0x162)](_0x5e2dbe,'\x20')['concat'](_0xe29b0e||'')['trim'](),_0x52e801=_0x3ac52b('_'[_0x3bf48f(0x162)](ei()));return A(_0x21eddf,''['concat'](_0x5e2dbe),{'defIds':_0x21eddf[_0x3bf48f(0x17a)],'idSuffix':_0x52e801['current']},l({'ref':_0x7b25cb,'className':_0x557f32},_0x748768),_0x4ff7ad);});function A(_0x13f0c1,_0x51dce2,_0x470647,_0x3ea754,_0x5ba887){var _0x421270=_0x17df95;return _0x24b921(_0x13f0c1[_0x421270(0x1e3)],l(l({'key':_0x51dce2},Qe(_0x13f0c1,_0x470647,_0x5ba887)),_0x3ea754),(Xe(_0x13f0c1,_0x470647)[_0x421270(0x1cd)]||[])[_0x421270(0x1d3)](function(_0x33a802,_0x4a35be){var _0x5e2c2c=_0x421270;return A(_0x33a802,''[_0x5e2c2c(0x162)](_0x51dce2,'-')[_0x5e2c2c(0x162)](_0x13f0c1[_0x5e2c2c(0x1e3)],'-')[_0x5e2c2c(0x162)](_0x4a35be),_0x470647,void 0x0,_0x5ba887);}));}function Qe(_0x4079e0,_0x1c6c1d,_0x1fd201){var _0x501b76=_0x17df95,_0x3fe33a=l({},_0x4079e0[_0x501b76(0x185)]);_0x1fd201!=null&&_0x1fd201[_0x501b76(0x190)]&&_0x3fe33a[_0x501b76(0x1d4)]===_0x501b76(0x190)&&(_0x3fe33a[_0x501b76(0x1d4)]=_0x1fd201[_0x501b76(0x190)]);var _0x58d07a=_0x1c6c1d['defIds'];return!_0x58d07a||_0x58d07a[_0x501b76(0x177)]===0x0||(_0x4079e0[_0x501b76(0x1e3)]===_0x501b76(0x179)&&_0x3fe33a[_0x501b76(0x187)]&&(_0x3fe33a['xlink:href']=_0x3fe33a[_0x501b76(0x187)]+_0x1c6c1d[_0x501b76(0x1bc)]),Object[_0x501b76(0x1cc)](_0x3fe33a)[_0x501b76(0x168)](function(_0x2be083){var _0x39f462=_0x501b76,_0x4b9d40=_0x2be083[0x0],_0x2b0268=_0x2be083[0x1];typeof _0x2b0268==_0x39f462(0x178)&&(_0x3fe33a[_0x4b9d40]=_0x2b0268['replace'](/url\(#(.*)\)/,_0x39f462(0x1c0)[_0x39f462(0x162)](_0x1c6c1d[_0x39f462(0x1bc)],')')));})),_0x3fe33a;}function Xe(_0x27c193,_0x1c0982){var _0x5b28b5=_0x17df95,_0x2dc9b8,_0x3e2b81=_0x1c0982[_0x5b28b5(0x17a)];return!_0x3e2b81||_0x3e2b81[_0x5b28b5(0x177)]===0x0?_0x27c193:_0x27c193[_0x5b28b5(0x1e3)]==='defs'&&(!((_0x2dc9b8=_0x27c193[_0x5b28b5(0x1cd)])===null||_0x2dc9b8===void 0x0)&&_0x2dc9b8[_0x5b28b5(0x177)])?l(l({},_0x27c193),{'children':_0x27c193['children'][_0x5b28b5(0x1d3)](function(_0x467ada){var _0x22fb85=_0x5b28b5;return typeof _0x467ada[_0x22fb85(0x185)]['id']==_0x22fb85(0x178)&&_0x3e2b81&&_0x3e2b81[_0x22fb85(0x1ca)](_0x467ada[_0x22fb85(0x185)]['id'])>-0x1?l(l({},_0x467ada),{'attrs':l(l({},_0x467ada[_0x22fb85(0x185)]),{'id':_0x467ada[_0x22fb85(0x185)]['id']+_0x1c0982[_0x22fb85(0x1bc)]})}):_0x467ada;})}):_0x27c193;}function ei(){var _0x5ea5d5=_0x17df95;return Math[_0x5ea5d5(0x1b7)]()[_0x5ea5d5(0x1d8)](0x24)[_0x5ea5d5(0x15b)](0x2,0x8);}$[_0x17df95(0x1e8)]=_0x17df95(0x1ac);var ii={'tag':'svg','attrs':{'fill':'none','viewBox':_0x17df95(0x1ce),'width':_0x17df95(0x158),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x17df95(0x1a6),'clipPath':_0x17df95(0x1a3)},'children':[{'tag':'path','attrs':{'d':_0x17df95(0x1e5)}},{'tag':'path','attrs':{'d':_0x17df95(0x1f7)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x17df95(0x1de),'attrs':{'id':_0x17df95(0x1e2)},'children':[{'tag':'path','attrs':{'fill':_0x17df95(0x1c7),'d':_0x17df95(0x170)}}]}]}],'defIds':['history-single_clip0_907_281']},F=_0x3170d8(function(_0x4d016d,_0xb2ee8a){var _0x5cbc1b=_0x17df95;return _0x24b921($,Object[_0x5cbc1b(0x1b0)]({},_0x4d016d,{'id':_0x5cbc1b(0x1a0),'ref':_0xb2ee8a,'icon':ii}));});F[_0x17df95(0x1e8)]='HistorySingle';const P={'id':_0x17df95(0x1a7),'type':_0x3cef93[_0x17df95(0x1d1)],'handler':_0x11c478=>{var _0x3b2313=_0x17df95;const _0x40bd16=_0x11c478['get'](d),_0x3f6668=_0x11c478['get'](_0x53a27f),{unitId:_0xba6d98}=_0x4c7f3d(_0x3f6668)||{};return _0xba6d98?(_0x40bd16[_0x3b2313(0x19d)](_0xba6d98),!0x0):!0x1;}},V=_0x17df95(0x167);function ti(_0x4c47fd){var _0x578ada=_0x17df95;return{'id':P['id'],'type':_0x52ac26[_0x578ada(0x1b8)],'icon':V,'tooltip':_0x578ada(0x169),'hidden$':_0x39ff9d(_0x4c47fd,_0x46b096[_0x578ada(0x1e9)]),'disabled$':_0x1f1dbd(_0x4c47fd,{'workbookTypes':[_0x1b54c4,_0x2e6f37],'worksheetTypes':[],'rangeTypes':[]})};}const ri={[_0x3096c7[_0x17df95(0x1b5)]]:{[P['id']]:{'order':0x0,'menuItemFactory':ti}}};var ni=Object['defineProperty'],oi=Object[_0x17df95(0x1a4)],si=(_0x3fed37,_0x2546df,_0x557a19,_0x3cabe8)=>{var _0x54cb9d=_0x17df95;for(var _0x50e8bd=_0x3cabe8>0x1?void 0x0:_0x3cabe8?oi(_0x2546df,_0x557a19):_0x2546df,_0x25190e=_0x3fed37[_0x54cb9d(0x177)]-0x1,_0x54ec2b;_0x25190e>=0x0;_0x25190e--)(_0x54ec2b=_0x3fed37[_0x25190e])&&(_0x50e8bd=(_0x3cabe8?_0x54ec2b(_0x2546df,_0x557a19,_0x50e8bd):_0x54ec2b(_0x50e8bd))||_0x50e8bd);return _0x3cabe8&&_0x50e8bd&&ni(_0x2546df,_0x557a19,_0x50e8bd),_0x50e8bd;},v=(_0x392a69,_0x516b4d)=>(_0x1a35ff,_0x232d7b)=>_0x516b4d(_0x1a35ff,_0x232d7b,_0x392a69);let p=class extends _0x9613a7{constructor(_0x2142df,_0x3b3d88,_0x5b0bb8,_0x3b5957,_0x4612f0,_0xc00b2f,_0x1e5ab8,_0x2bb32f){var _0x26b257=_0x17df95;super(),h(this,_0x26b257(0x161),null),(this[_0x26b257(0x160)]=_0x2142df,this['_menuManagerService']=_0x3b3d88,this[_0x26b257(0x1ee)]=_0x5b0bb8,this[_0x26b257(0x1c8)]=_0x3b5957,this['_localeService']=_0x4612f0,this[_0x26b257(0x19b)]=_0xc00b2f,this[_0x26b257(0x1bb)]=_0x1e5ab8,this['_localCacheService']=_0x2bb32f,this[_0x26b257(0x198)]());}[_0x17df95(0x198)](){var _0x4aa640=_0x17df95;[P][_0x4aa640(0x168)](_0x4d20f5=>this[_0x4aa640(0x183)](_0x1ac6b4(this[_0x4aa640(0x160)][_0x4aa640(0x1d9)](_0x4d20f5)))),this[_0x4aa640(0x183)](this[_0x4aa640(0x1ee)][_0x4aa640(0x16f)](V,F)),this[_0x4aa640(0x191)][_0x4aa640(0x1a9)](ri),this[_0x4aa640(0x183)](this[_0x4aa640(0x160)]['onCommandExecuted'](_0x4043e5=>{var _0x26d760=_0x4aa640;if(_0x4043e5['id']===_0x3a9c9f['id']){this[_0x26d760(0x19b)][_0x26d760(0x1da)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x4bf5f3['Loading'],'duration':0x1388});const {unitId:_0x353b90}=_0x4043e5['params'],_0x54723f=this[_0x26d760(0x1bb)][_0x26d760(0x199)](_0x353b90),_0x1e7a5c=_0x2c97cb([_0x54723f[_0x26d760(0x19e)][_0x26d760(0x1e0)],_0x54723f[_0x26d760(0x1f3)]])[_0x26d760(0x1b4)](async([_0x3f872c,_0x490333])=>{var _0x331213=_0x26d760;_0x3f872c[_0x331213(0x1c1)]===_0x1a58be['CHANGESET_ACK']&&(_0x490333==null?void 0x0:_0x490333['status'])===_0x1566e0[_0x331213(0x1f0)]&&_0x3f872c['data'][_0x331213(0x188)]['some'](_0x5c3ba4=>_0x5c3ba4['id']===_0x3a9c9f['id'])&&(this[_0x331213(0x1c8)][_0x331213(0x16b)](),_0x1e7a5c[_0x331213(0x163)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await this[_0x331213(0x19a)]['exhaustSavingTask'](),setTimeout(()=>window[_0x331213(0x1a5)][_0x331213(0x1ab)]()));});this[_0x26d760(0x161)]=setTimeout(()=>{var _0x4eed82=_0x26d760;_0x1e7a5c[_0x4eed82(0x163)](),this[_0x4eed82(0x19b)][_0x4eed82(0x1da)]({'content':this[_0x4eed82(0x17f)]['t'](_0x4eed82(0x1f9)),'type':_0x4bf5f3[_0x4eed82(0x1ae)],'duration':0xbb8});},0x1388);}}));}};p=si([_0x4db300(_0x586a45['Steady'],p),v(0x0,_0x45e3ea),v(0x1,_0x4f7200),v(0x2,_0x39fe6c(_0xe8bd9e)),v(0x3,_0x39fe6c(d)),v(0x4,_0x39fe6c(_0x155745)),v(0x5,_0x546bfb),v(0x6,_0x39fe6c(_0x142acd)),v(0x7,_0x39fe6c(_0x4ec263))],p);const ai=_0x17df95(0x1c2),ci={};var li=Object[_0x17df95(0x164)],ui=Object[_0x17df95(0x1a4)],gi=(_0x51eeb1,_0x3eaaaf,_0x27fe81,_0x43c952)=>{var _0x15dd1d=_0x17df95;for(var _0x476112=_0x43c952>0x1?void 0x0:_0x43c952?ui(_0x3eaaaf,_0x27fe81):_0x3eaaaf,_0x3c9555=_0x51eeb1[_0x15dd1d(0x177)]-0x1,_0x383ce2;_0x3c9555>=0x0;_0x3c9555--)(_0x383ce2=_0x51eeb1[_0x3c9555])&&(_0x476112=(_0x43c952?_0x383ce2(_0x3eaaaf,_0x27fe81,_0x476112):_0x383ce2(_0x476112))||_0x476112);return _0x43c952&&_0x476112&&li(_0x3eaaaf,_0x27fe81,_0x476112),_0x476112;},U=(_0x20036b,_0x57a59a)=>(_0x10036c,_0x367feb)=>_0x57a59a(_0x10036c,_0x367feb,_0x20036b);const vi=_0x17df95(0x1dc);var _;let M=(_=class extends _0x16f515{constructor(_0x511e08=ci,_0xb0b7c,_0x4f4894){var _0x39efe5=_0x17df95;super(),this[_0x39efe5(0x1e1)]=_0x511e08,this[_0x39efe5(0x18f)]=_0xb0b7c,this[_0x39efe5(0x1e7)]=_0x4f4894;const {menu:_0x5c80c3,..._0xc9bb5d}=this['_config'];_0x5c80c3&&this[_0x39efe5(0x1e7)][_0x39efe5(0x193)](_0x39efe5(0x1df),_0x5c80c3,{'merge':!0x0}),this[_0x39efe5(0x1e7)][_0x39efe5(0x193)](ai,_0xc9bb5d),this[_0x39efe5(0x1e1)][_0x39efe5(0x17d)]&&this['_configService'][_0x39efe5(0x193)](k,this[_0x39efe5(0x1e1)][_0x39efe5(0x17d)]);}[_0x17df95(0x196)](){var _0x2ef3bc=_0x17df95;[[d],[p]][_0x2ef3bc(0x168)](_0x11144b=>this[_0x2ef3bc(0x18f)][_0x2ef3bc(0x1e6)](_0x11144b));}},h(_,_0x17df95(0x1b3),_0x46b096[_0x17df95(0x18e)]),h(_,'pluginName',vi),_);M=gi([U(0x1,_0x39fe6c(_0x427ce7)),U(0x2,_0x1c0a49)],M);export{d as HistoryLoaderService,k as UNIVER_CONTAINER_ID_KEY,f as UNIVER_HISTORY_CONTAINER_ID,M as UniverEditHistoryLoaderPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3196(){var _0x33c144=['@univerjs/core','close','permissionId','clipPath','concat','UniverSheetsConditionalFormattingUIPlugin','_init','_historyManagerService','@univerjs-pro/sheets-pivot','@univerjs/engine-formula','@univerjs/drawing-ui','_univerInstanceService','OPERATION','@univerjs/docs','6RxjZjo','substring','history-single_clip0_907_281','UNIVER_CONTAINER_ID','_injector','@univerjs/rpc','UNIVER_SHEET','url(#history-single_clip0_907_281)','getSheetCommandTarget','toString','defineProperty','position','unsubscribe','RangeProtectionRuleModel','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','mountHistoryContent','status$','@univerjs/sheets-conditional-formatting-ui','every','createElement','getContainer','HistoryModeStatus','UniverDocsUi','disposeWithMe','editHistory.panel.revertFailed','Steady','getLocales','svg','current','ComponentManager','object','getMenuHiddenObservable','_messageService','@univerjs/sheets-hyper-link','HistoryLoaderService','OnLifecycle','UniverSheetsFilterPlugin','from','location','UniverSheetsConditionalFormattingUi','Univer','UniverSheetsConditionalFormatting','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','@univerjs/sheets-numfmt','IPermissionService','@univerjs/sheets','some','_disposableCollection','register','UniverRpc','Error','@univerjs/docs-ui','@univerjs/sheets-drawing-ui','@univerjs/sheets-filter','@univerjs/sheets-data-validation','IDialogService','1388616jjUuPL','greenTheme','@univerjs/drawing','11glhvZT','15868nnkwua','CollaborationEvent','_checkCanRevert','@univerjs/sheets-hyper-link-ui','IMenuManagerService','LifecycleStages','state$','RevertRevisionMutation','flat','editHistory.panel.reverting','children','entries','UniverDataValidationPlugin','1653245GYWlds','_sidebarService','1959xLfbrd','UniverSheetsDrawing','onCommandExecuted','CollaborationController','UniverDocs','displayName','UniverDesign','path','552mMUAyQ','params','div','edit-history-loader.config','_pluginMap','923103WIDIql','_initMessageService','pluginName','string','getOwnPropertyDescriptor','fill','IUniverInstanceService','getSheetId','top','get','colorChannel1','getCurrentLocale','invoke','ICommandService','has','UNIVER_HISTORY_CONTAINER_ID','call','left','_configService','UniverSheetsDataValidation','toDisposable','UniverFormulaEnginePlugin','UniverSheetsDrawingPlugin','trim','type','registerPlugin','value','@univerjs/engine-render','getAllPlugins','M0\x200H16V16H0z','\x20has\x20been\x20registered.','currentColor','Inject','_localCacheService','CollaborationStatus','block','replace','UniverIcon','UniverSheetsDrawingUIPlugin','UniverSheetsHyperLinkUIPlugin','event$','UniverSheetsPlugin','hasOwnProperty','Module','Disposable','2573144yrALPS','UniverEngineFormula','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','closeAll','univer-history-container','1em','display','RibbonStartGroup','0\x200\x2016\x2016','@univerjs-pro/edit-history-viewer','forwardRef','UniverSheetsFilterUIPlugin','UniverDrawing','12eOYpuM','@univerjs-pro/collaboration-client','@univerjs-pro/collaboration','@univerjs/sheets-conditional-formatting','indexOf','editHistory.panel.listFetchError','url(#$1','registerCommand','UniverSheetsUIPlugin','rxjs','getElementById','WorksheetEditPermission','@univerjs/sheets-ui','Entered','Exited','_historyUniver','_initPlugins','use','data','UniverSheetsHyperLinkPlugin','React','univer-container','UniverDrawingUIPlugin','@univerjs/ui','setConfig','defs','UniverEditHistoryLoaderPlugin','assign','WorkbookEditablePermission','@univerjs/design','_dialogService','show','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','xlink:href','onStarting','BUTTON','getOwnPropertySymbols','IConfigService','map','function','IAuthzIoService','set','editHistory.panel.title','random','idSuffix','@univerjs/data-validation','_permissionService','defIds','menu','mutations','forEach','MessageType','getSubunitRuleList','length','_selectionProtectionRuleModel','subscribe','__getInjector','_commandService','IMessageService','unMountHistoryContent','UniverEditHistoryViewer','react','_initListener','triggerLoadVersions','@univerjs/sheets-filter-ui','univerContainerId','UniverUi','_config','_initUniver','ISidebarService','UniverDocsPlugin','./worker.js','UniverCore','UniverSheetsPivotTablePlugin','_revertErrorTimer','4949030MpEiUd','UniverInstanceType','amd','prototype','extend','UniverSheetsPivot','toStringTag','RangeProtectionPermissionEditPoint','_localeService','tag','style','UniverDocsUIPlugin','#fff','add','UniverSheetsFormula','_componentManager','SYNCED','Injector','LocaleService','_menuManagerService','@univerjs/sheets-formula','dispose','DisposableCollection','propertyIsEnumerable','@univerjs/sheets-drawing','history-single','getConfig','HistorySingle','getUnit','getCurrentRangeDisable$','_initContainer','UniverDrawingUi','attrs','none','getSheets','icon','className','getCollabEntity','UniverDataValidation','appendChild','100%'];_0x3196=function(){return _0x33c144;};return _0x3196();}function _0x116e(_0x1729bb,_0x3d83e3){var _0x319629=_0x3196();return _0x116e=function(_0x116ec7,_0x206008){_0x116ec7=_0x116ec7-0x1b4;var _0x3b1b7d=_0x319629[_0x116ec7];return _0x3b1b7d;},_0x116e(_0x1729bb,_0x3d83e3);}(function(_0x565712,_0x238b54){var _0x2249f1=_0x116e,_0x58c033=_0x565712();while(!![]){try{var _0x5ee110=-parseInt(_0x2249f1(0x263))/0x1*(-parseInt(_0x2249f1(0x2b9))/0x2)+-parseInt(_0x2249f1(0x272))/0x3*(-parseInt(_0x2249f1(0x27a))/0x4)+parseInt(_0x2249f1(0x270))/0x5*(parseInt(_0x2249f1(0x226))/0x6)+parseInt(_0x2249f1(0x2ac))/0x7+-parseInt(_0x2249f1(0x25f))/0x8+parseInt(_0x2249f1(0x27f))/0x9+parseInt(_0x2249f1(0x1ef))/0xa*(-parseInt(_0x2249f1(0x262))/0xb);if(_0x5ee110===_0x238b54)break;else _0x58c033['push'](_0x58c033['shift']());}catch(_0x650d3d){_0x58c033['push'](_0x58c033['shift']());}}}(_0x3196,0x4d8d2),function(_0x3c9559,_0x5730d7){var _0x390a7a=_0x116e;typeof exports==_0x390a7a(0x244)&&typeof module<'u'?_0x5730d7(exports,require('@univerjs/core'),require(_0x390a7a(0x1c1)),require(_0x390a7a(0x225)),require(_0x390a7a(0x25a)),require(_0x390a7a(0x29a)),require(_0x390a7a(0x254)),require('@univerjs/sheets-ui'),require(_0x390a7a(0x1bb)),require('@univerjs-pro/edit-history-viewer'),require(_0x390a7a(0x2bb)),require(_0x390a7a(0x25c)),require(_0x390a7a(0x1e4)),require(_0x390a7a(0x2bc)),require(_0x390a7a(0x237)),require(_0x390a7a(0x247)),require(_0x390a7a(0x266)),require(_0x390a7a(0x1d1)),require(_0x390a7a(0x252)),require(_0x390a7a(0x203)),require(_0x390a7a(0x221)),require(_0x390a7a(0x22b)),require(_0x390a7a(0x25d)),require(_0x390a7a(0x222)),require(_0x390a7a(0x25b)),require('@univerjs/sheets-drawing'),require(_0x390a7a(0x261)),require(_0x390a7a(0x220)),require(_0x390a7a(0x2ba)),require(_0x390a7a(0x2c2)),require('react')):typeof define=='function'&&define[_0x390a7a(0x1f1)]?define(['exports',_0x390a7a(0x218),_0x390a7a(0x1c1),'@univerjs/docs',_0x390a7a(0x25a),_0x390a7a(0x29a),_0x390a7a(0x254),_0x390a7a(0x2c5),_0x390a7a(0x1bb),_0x390a7a(0x2b5),_0x390a7a(0x2bb),_0x390a7a(0x25c),_0x390a7a(0x1e4),_0x390a7a(0x2bc),_0x390a7a(0x237),_0x390a7a(0x247),_0x390a7a(0x266),_0x390a7a(0x1d1),_0x390a7a(0x252),'@univerjs/sheets-formula',_0x390a7a(0x221),_0x390a7a(0x22b),_0x390a7a(0x25d),_0x390a7a(0x222),_0x390a7a(0x25b),_0x390a7a(0x207),'@univerjs/drawing',_0x390a7a(0x220),'@univerjs-pro/collaboration-client',_0x390a7a(0x2c2),_0x390a7a(0x1e1)],_0x5730d7):(_0x3c9559=typeof globalThis<'u'?globalThis:_0x3c9559||self,_0x5730d7(_0x3c9559['UniverEditHistoryLoader']={},_0x3c9559[_0x390a7a(0x1ec)],_0x3c9559[_0x390a7a(0x278)],_0x3c9559[_0x390a7a(0x276)],_0x3c9559[_0x390a7a(0x23c)],_0x3c9559['UniverEngineRender'],_0x3c9559['UniverSheets'],_0x3c9559['UniverSheetsUi'],_0x3c9559[_0x390a7a(0x1e6)],_0x3c9559[_0x390a7a(0x1e0)],_0x3c9559['UniverCollaboration'],_0x3c9559['UniverSheetsFilter'],_0x3c9559['UniverSheetsFilterUi'],_0x3c9559[_0x390a7a(0x24f)],_0x3c9559[_0x390a7a(0x24d)],_0x3c9559['UniverSheetsHyperLink'],_0x3c9559['UniverSheetsHyperLinkUi'],_0x3c9559[_0x390a7a(0x215)],_0x3c9559['UniverSheetsNumfmt'],_0x3c9559[_0x390a7a(0x1fd)],_0x3c9559[_0x390a7a(0x2ad)],_0x3c9559[_0x390a7a(0x258)],_0x3c9559[_0x390a7a(0x292)],_0x3c9559[_0x390a7a(0x20e)],_0x3c9559['UniverSheetsDrawingUi'],_0x3c9559[_0x390a7a(0x273)],_0x3c9559[_0x390a7a(0x2b8)],_0x3c9559[_0x390a7a(0x1f4)],_0x3c9559['UniverCollaborationClient'],_0x3c9559['rxjs'],_0x3c9559[_0x390a7a(0x1b8)]));}(this,function(_0x21e81b,_0x14f4a1,_0x45cf1a,_0x454fff,_0x38c3d5,_0x5ac3a7,_0x229b1b,_0x9d3c7e,_0x2c7b66,_0x2aabb2,_0x41bc8b,_0x3d62c9,_0xdc4841,_0x304f37,_0x30aafc,_0x3d0c61,_0x1d868e,_0xe60e46,_0x324636,_0x20165a,_0x1a91c1,_0x2b5aad,_0x483430,_0x207c4c,_0x474b5b,_0x4d7a94,_0x27cb0c,_0x1a7b70,_0x32757e,_0x3c3e06,_0x36dd65){'use strict';var _0x5c9f45=_0x116e;var _0x394a76=Object['defineProperty'],_0x4acae6=(_0x1b0bca,_0x40d1e7,_0x54e247)=>_0x40d1e7 in _0x1b0bca?_0x394a76(_0x1b0bca,_0x40d1e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54e247}):_0x1b0bca[_0x40d1e7]=_0x54e247,_0x3f91ca=(_0x119981,_0x3571e2,_0x42ad32)=>_0x4acae6(_0x119981,typeof _0x3571e2!='symbol'?_0x3571e2+'':_0x3571e2,_0x42ad32),_0x3d1118,_0x3af885=Object[_0x5c9f45(0x230)],_0x27f6fb=Object['getOwnPropertyDescriptor'],_0xf5d5f6=(_0x26986f,_0x3ff624,_0x251815,_0x311a56)=>{for(var _0x33dbd4=_0x311a56>0x1?void 0x0:_0x311a56?_0x27f6fb(_0x3ff624,_0x251815):_0x3ff624,_0x453f99=_0x26986f['length']-0x1,_0x1e2b3e;_0x453f99>=0x0;_0x453f99--)(_0x1e2b3e=_0x26986f[_0x453f99])&&(_0x33dbd4=(_0x311a56?_0x1e2b3e(_0x3ff624,_0x251815,_0x33dbd4):_0x1e2b3e(_0x33dbd4))||_0x33dbd4);return _0x311a56&&_0x33dbd4&&_0x3af885(_0x3ff624,_0x251815,_0x33dbd4),_0x33dbd4;},_0x360ab7=(_0x514573,_0x5b94ef)=>(_0x2e8923,_0x275094)=>_0x5b94ef(_0x2e8923,_0x275094,_0x514573);const _0x47938b=_0x5c9f45(0x1b9),_0x59ed65=_0x5c9f45(0x229),_0x200ecd=_0x5c9f45(0x2b0);_0x21e81b[_0x5c9f45(0x248)]=class extends _0x14f4a1[_0x5c9f45(0x2ab)]{constructor(_0x24d155,_0x5a7937,_0x5d0962,_0x129a11,_0x5f2b8c,_0x12443e,_0x4f74c7,_0x50b8fc,_0x63ab0){var _0x456e32=_0x5c9f45;super(),_0x3f91ca(this,'_historyUniver',null),_0x3f91ca(this,_0x456e32(0x256),new _0x14f4a1[(_0x456e32(0x205))]()),_0x3f91ca(this,'_pluginMap',new Map()),(this['_localeService']=_0x24d155,this[_0x456e32(0x223)]=_0x5a7937,this[_0x456e32(0x291)]=_0x5d0962,this[_0x456e32(0x1dd)]=_0x129a11,this[_0x456e32(0x246)]=_0x5f2b8c,this[_0x456e32(0x1d2)]=_0x12443e,this['_selectionProtectionRuleModel']=_0x4f74c7,this[_0x456e32(0x1c2)]=_0x50b8fc,this[_0x456e32(0x271)]=_0x63ab0,this[_0x456e32(0x21e)]());}['_init'](){var _0x3861aa=_0x5c9f45;this[_0x3861aa(0x20d)](),this['_initPlugins']();}[_0x5c9f45(0x20d)](){var _0x3e7a6d=_0x5c9f45,_0x13cbc3;const _0x530073=(_0x13cbc3=this[_0x3e7a6d(0x291)][_0x3e7a6d(0x209)](_0x59ed65))!=null?_0x13cbc3:_0x47938b,_0x51eb7b=document[_0x3e7a6d(0x2c3)](_0x530073);if(!_0x51eb7b)return;const _0x366496=document[_0x3e7a6d(0x239)](_0x3e7a6d(0x27c));_0x366496['id']=_0x200ecd,_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x231)]='absolute',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x287)]='0',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x290)]='0',_0x366496[_0x3e7a6d(0x1f9)]['width']=_0x3e7a6d(0x217),_0x366496['style']['height']='100%',_0x366496[_0x3e7a6d(0x1f9)]['zIndex']='1000',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x2b2)]=_0x3e7a6d(0x210),_0x51eb7b[_0x3e7a6d(0x216)](_0x366496);}[_0x5c9f45(0x1b4)](){var _0x209714=_0x5c9f45;[[_0x27cb0c['UniverDrawingPlugin'],{'override':[[_0x27cb0c['IImageIoService'],null]]}],[_0x454fff[_0x209714(0x1ea)],{'hasScroll':!0x1}],[_0x38c3d5[_0x209714(0x1fa)]],[_0x5ac3a7['UniverRenderEnginePlugin']],[_0x2c7b66['UniverUIPlugin'],{'container':_0x200ecd,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2c7b66[_0x209714(0x25e)],null]]}],[_0x229b1b[_0x209714(0x2a8)],{'notExecuteFormula':!0x0}],[_0x9d3c7e[_0x209714(0x2c1)]],[_0x41bc8b['UniverCollaborationPlugin']],[_0x3d62c9[_0x209714(0x24a)]],[_0xdc4841[_0x209714(0x2b7)]],[_0x304f37['UniverSheetsConditionalFormattingPlugin']],[_0x30aafc[_0x209714(0x21d)]],[_0x3d0c61[_0x209714(0x1b7)]],[_0x1d868e[_0x209714(0x2a6)]],[_0xe60e46[_0x209714(0x26f)]],[_0x483430['UniverSheetsDataValidationPlugin']],[_0x324636['UniverSheetsNumfmtPlugin']],[_0x1a91c1[_0x209714(0x294)],{'notExecuteFormula':!0x0}],[_0x20165a['UniverSheetsFormulaPlugin']],[_0x2b5aad['UniverRPCMainThreadPlugin'],{'workerURL':_0x209714(0x1eb)}],[_0x207c4c[_0x209714(0x1ba)]],[_0x4d7a94[_0x209714(0x295)]],[_0x474b5b[_0x209714(0x2a5)]],[_0x1a7b70[_0x209714(0x1ed)],{'notExecuteFormula':!0x0}],[_0x2aabb2['UniverEditHistoryViewerPlugin']]]['forEach'](([_0x5e7b92,_0x5efecc])=>this['registerPlugin'](_0x5e7b92,_0x5efecc));}[_0x5c9f45(0x204)](){var _0x229533=_0x5c9f45;super[_0x229533(0x204)](),this[_0x229533(0x1df)](),this[_0x229533(0x27e)]['clear']();}[_0x5c9f45(0x298)](_0x1002cc,_0x46509b,_0x2ecd26){var _0x447b1f=_0x5c9f45;if(this[_0x447b1f(0x27e)][_0x447b1f(0x28d)](_0x1002cc['pluginName'])&&!_0x2ecd26)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1002cc[_0x447b1f(0x281)]+_0x447b1f(0x29d));this[_0x447b1f(0x27e)][_0x447b1f(0x1cd)](_0x1002cc[_0x447b1f(0x281)],[_0x1002cc,_0x46509b]);}[_0x5c9f45(0x29b)](){var _0x1673ab=_0x5c9f45;return Array[_0x1673ab(0x24b)](this[_0x1673ab(0x27e)]['values']());}[_0x5c9f45(0x235)](_0x1f0a1c){var _0x17a2c9=_0x5c9f45;const _0x4f37e8=document[_0x17a2c9(0x2c3)](_0x200ecd);_0x4f37e8&&(_0x4f37e8[_0x17a2c9(0x1f9)]['display']=_0x17a2c9(0x2a2),this[_0x17a2c9(0x1e8)](_0x1f0a1c,_0x200ecd));}[_0x5c9f45(0x1df)](){var _0x13bcaf=_0x5c9f45,_0x4f131a;this[_0x13bcaf(0x256)][_0x13bcaf(0x204)](),(_0x4f131a=this[_0x13bcaf(0x2c8)])==null||_0x4f131a['dispose'](),this['_historyUniver']=null;const _0x522c1a=document['getElementById'](_0x200ecd);_0x522c1a&&(_0x522c1a[_0x13bcaf(0x1f9)][_0x13bcaf(0x2b2)]=_0x13bcaf(0x210));}[_0x5c9f45(0x1e8)](_0x339e47,_0x2da20b){var _0x23d056=_0x5c9f45;if(this['_historyUniver'])return;const _0x4edb2e=new _0x14f4a1[(_0x23d056(0x24e))]({'theme':_0x45cf1a[_0x23d056(0x260)],'locales':{[this[_0x23d056(0x1f7)][_0x23d056(0x28a)]()]:this[_0x23d056(0x1f7)][_0x23d056(0x240)]()},'override':[[_0x14f4a1[_0x23d056(0x1cc)],null]]});this[_0x23d056(0x2c8)]=_0x4edb2e;const _0x5e514f=_0x4edb2e[_0x23d056(0x1dc)]();_0x5e514f[_0x23d056(0x288)](_0x14f4a1[_0x23d056(0x201)])['setLocale'](this[_0x23d056(0x1f7)]['getCurrentLocale']()),this['_pluginMap'][_0x23d056(0x1d6)](([_0xb4fd2f,_0x5171fb])=>{var _0x1b7c66=_0x23d056;_0x4edb2e[_0x1b7c66(0x298)](_0xb4fd2f,_0x5171fb);}),_0x5e514f[_0x23d056(0x28b)](_0x34c86e=>{var _0x3739f9=_0x23d056;this[_0x3739f9(0x1e2)](_0x34c86e,_0x339e47),this[_0x3739f9(0x280)](_0x34c86e,this[_0x3739f9(0x246)]);});const _0x22f301=_0x5e514f[_0x23d056(0x288)](_0x2aabb2['HistoryManagerService']),_0x6de89b=this['_checkCanRevert'](_0x339e47);_0x22f301[_0x23d056(0x1e3)](_0x339e47,_0x2da20b,_0x6de89b);}['_initListener'](_0xdc8862,_0x182955){var _0x531c77=_0x5c9f45;const _0x343cbc=_0xdc8862[_0x531c77(0x288)](_0x2aabb2['HistoryManagerService']);this['_disposableCollection']['add'](_0x343cbc[_0x531c77(0x236)]['subscribe'](_0x8e95f0=>{var _0x15a8c4=_0x531c77;switch(_0x8e95f0){case _0x2aabb2['HistoryModeStatus'][_0x15a8c4(0x2c6)]:this[_0x15a8c4(0x1c2)][_0x15a8c4(0x2af)](),this['_sidebarService'][_0x15a8c4(0x219)]();break;case _0x2aabb2[_0x15a8c4(0x23b)][_0x15a8c4(0x2c7)]:this['unMountHistoryContent']();break;case _0x2aabb2[_0x15a8c4(0x23b)][_0x15a8c4(0x259)]:this['unMountHistoryContent'](),this['_messageService'][_0x15a8c4(0x1c3)]({'content':this[_0x15a8c4(0x1f7)]['t'](_0x15a8c4(0x2be)),'type':_0x45cf1a[_0x15a8c4(0x1d7)][_0x15a8c4(0x259)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x531c77(0x1fc)](_0x343cbc['revertRevision$'][_0x531c77(0x1db)](async _0x3bcdb5=>{var _0x3b11fe=_0x531c77;_0x3bcdb5&&this[_0x3b11fe(0x1dd)]['executeCommand'](_0x41bc8b[_0x3b11fe(0x26a)]['id'],{'unitId':_0x182955,'revision':_0x3bcdb5});}));}[_0x5c9f45(0x280)](_0x2d0b7f,_0x194b7e){var _0x3be16b=_0x5c9f45;const _0x13ec3f=_0x2d0b7f['get'](_0x2c7b66[_0x3be16b(0x1de)]),_0x14014f=_0x194b7e[_0x3be16b(0x23a)]();_0x14014f&&_0x13ec3f['setContainer'](_0x14014f);}[_0x5c9f45(0x265)](_0x3fb76e){var _0x3e007d=_0x5c9f45;const _0x4e36fb=this[_0x3e007d(0x223)][_0x3e007d(0x20b)](_0x3fb76e)[_0x3e007d(0x211)]()[_0x3e007d(0x1ca)](_0x12edda=>_0x12edda[_0x3e007d(0x286)]()),_0x724a4c=new _0x229b1b[(_0x3e007d(0x1c0))](_0x3fb76e)['id'],_0x1e3d91=_0x4e36fb[_0x3e007d(0x1ca)](_0x313d5e=>new _0x229b1b[(_0x3e007d(0x2c4))](_0x3fb76e,_0x313d5e)['id']),_0x259af8=_0x4e36fb[_0x3e007d(0x1ca)](_0x46f6ac=>this[_0x3e007d(0x1da)][_0x3e007d(0x1d8)](_0x3fb76e,_0x46f6ac)[_0x3e007d(0x1ca)](_0x3739f0=>new _0x229b1b[(_0x3e007d(0x1f6))](_0x3fb76e,_0x46f6ac,_0x3739f0[_0x3e007d(0x21a)])['id']))[_0x3e007d(0x26b)](),_0x3362e6=new _0x229b1b['WorkbookRecoverHistoryPermission'](_0x3fb76e)['id'];return this[_0x3e007d(0x1d2)]['composePermission']([_0x724a4c,..._0x1e3d91,..._0x259af8,_0x3362e6])[_0x3e007d(0x238)](_0x288fca=>!!_0x288fca[_0x3e007d(0x299)]);}},_0x21e81b[_0x5c9f45(0x248)]=_0xf5d5f6([_0x14f4a1[_0x5c9f45(0x249)](_0x14f4a1['LifecycleStages'][_0x5c9f45(0x23f)],_0x21e81b[_0x5c9f45(0x248)]),_0x360ab7(0x0,_0x14f4a1[_0x5c9f45(0x29f)](_0x14f4a1[_0x5c9f45(0x201)])),_0x360ab7(0x1,_0x14f4a1[_0x5c9f45(0x285)]),_0x360ab7(0x2,_0x14f4a1['IConfigService']),_0x360ab7(0x3,_0x14f4a1[_0x5c9f45(0x28c)]),_0x360ab7(0x4,_0x2c7b66[_0x5c9f45(0x1de)]),_0x360ab7(0x5,_0x14f4a1[_0x5c9f45(0x253)]),_0x360ab7(0x6,_0x14f4a1['Inject'](_0x229b1b[_0x5c9f45(0x233)])),_0x360ab7(0x7,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x25e)])),_0x360ab7(0x8,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x1e9)]))],_0x21e81b['HistoryLoaderService']);var _0x1e7edf=function(){var _0x5119be=_0x5c9f45;return _0x1e7edf=Object[_0x5119be(0x1bf)]||function(_0x5c396d){var _0x473c72=_0x5119be;for(var _0xe5581d,_0x98b8dd=0x1,_0x56b3db=arguments[_0x473c72(0x1d9)];_0x98b8dd<_0x56b3db;_0x98b8dd++){_0xe5581d=arguments[_0x98b8dd];for(var _0x1e9f20 in _0xe5581d)Object[_0x473c72(0x1f2)][_0x473c72(0x2a9)][_0x473c72(0x28f)](_0xe5581d,_0x1e9f20)&&(_0x5c396d[_0x1e9f20]=_0xe5581d[_0x1e9f20]);}return _0x5c396d;},_0x1e7edf['apply'](this,arguments);},_0x3bf354=function(_0x20961a,_0xc5c901){var _0x2f0b11=_0x5c9f45,_0x3bf290={};for(var _0x99cf5b in _0x20961a)Object[_0x2f0b11(0x1f2)][_0x2f0b11(0x2a9)][_0x2f0b11(0x28f)](_0x20961a,_0x99cf5b)&&_0xc5c901['indexOf'](_0x99cf5b)<0x0&&(_0x3bf290[_0x99cf5b]=_0x20961a[_0x99cf5b]);if(_0x20961a!=null&&typeof Object['getOwnPropertySymbols']==_0x2f0b11(0x1cb)){for(var _0x52e81f=0x0,_0x99cf5b=Object[_0x2f0b11(0x1c8)](_0x20961a);_0x52e81f<_0x99cf5b[_0x2f0b11(0x1d9)];_0x52e81f++)_0xc5c901[_0x2f0b11(0x2bd)](_0x99cf5b[_0x52e81f])<0x0&&Object['prototype'][_0x2f0b11(0x206)][_0x2f0b11(0x28f)](_0x20961a,_0x99cf5b[_0x52e81f])&&(_0x3bf290[_0x99cf5b[_0x52e81f]]=_0x20961a[_0x99cf5b[_0x52e81f]]);}return _0x3bf290;},_0x312453=_0x36dd65[_0x5c9f45(0x2b6)](function(_0x565b96,_0x3e3dbc){var _0x4e5096=_0x5c9f45,_0x34e07d=_0x565b96[_0x4e5096(0x212)],_0x51a001=_0x565b96['id'],_0x448e0d=_0x565b96[_0x4e5096(0x213)],_0x40c2ef=_0x565b96[_0x4e5096(0x1f3)],_0x24be18=_0x3bf354(_0x565b96,[_0x4e5096(0x212),'id',_0x4e5096(0x213),'extend']),_0x366f49=_0x4e5096(0x250)[_0x4e5096(0x21c)](_0x51a001,'\x20')[_0x4e5096(0x21c)](_0x448e0d||'')[_0x4e5096(0x296)](),_0x4b5414=_0x36dd65['useRef']('_'[_0x4e5096(0x21c)](_0x3b39e3()));return _0x4e04c5(_0x34e07d,''[_0x4e5096(0x21c)](_0x51a001),{'defIds':_0x34e07d[_0x4e5096(0x1d3)],'idSuffix':_0x4b5414[_0x4e5096(0x242)]},_0x1e7edf({'ref':_0x3e3dbc,'className':_0x366f49},_0x24be18),_0x40c2ef);});function _0x4e04c5(_0x135446,_0x2dc9d9,_0x5d26d2,_0x25e987,_0x30add7){var _0x4af8ab=_0x5c9f45;return _0x36dd65[_0x4af8ab(0x239)](_0x135446[_0x4af8ab(0x1f8)],_0x1e7edf(_0x1e7edf({'key':_0x2dc9d9},_0x5d21e1(_0x135446,_0x5d26d2,_0x30add7)),_0x25e987),(_0x250be3(_0x135446,_0x5d26d2)['children']||[])[_0x4af8ab(0x1ca)](function(_0xeff3cf,_0x552bae){var _0x456afe=_0x4af8ab;return _0x4e04c5(_0xeff3cf,''[_0x456afe(0x21c)](_0x2dc9d9,'-')[_0x456afe(0x21c)](_0x135446[_0x456afe(0x1f8)],'-')[_0x456afe(0x21c)](_0x552bae),_0x5d26d2,void 0x0,_0x30add7);}));}function _0x5d21e1(_0x46b800,_0x1fcf89,_0x348ccb){var _0x4ffdaa=_0x5c9f45,_0x5582a6=_0x1e7edf({},_0x46b800['attrs']);_0x348ccb!=null&&_0x348ccb[_0x4ffdaa(0x289)]&&_0x5582a6[_0x4ffdaa(0x284)]===_0x4ffdaa(0x289)&&(_0x5582a6[_0x4ffdaa(0x284)]=_0x348ccb[_0x4ffdaa(0x289)]);var _0x5f336a=_0x1fcf89[_0x4ffdaa(0x1d3)];return!_0x5f336a||_0x5f336a[_0x4ffdaa(0x1d9)]===0x0||(_0x46b800[_0x4ffdaa(0x1f8)]===_0x4ffdaa(0x1b5)&&_0x5582a6[_0x4ffdaa(0x1c5)]&&(_0x5582a6[_0x4ffdaa(0x1c5)]=_0x5582a6[_0x4ffdaa(0x1c5)]+_0x1fcf89[_0x4ffdaa(0x1d0)]),Object[_0x4ffdaa(0x26e)](_0x5582a6)[_0x4ffdaa(0x1d6)](function(_0x537db5){var _0x5a9b12=_0x4ffdaa,_0x200f08=_0x537db5[0x0],_0x242fff=_0x537db5[0x1];typeof _0x242fff==_0x5a9b12(0x282)&&(_0x5582a6[_0x200f08]=_0x242fff[_0x5a9b12(0x2a3)](/url\(#(.*)\)/,_0x5a9b12(0x2bf)[_0x5a9b12(0x21c)](_0x1fcf89[_0x5a9b12(0x1d0)],')')));})),_0x5582a6;}function _0x250be3(_0x2a6d44,_0x29ad8c){var _0x3bdc68=_0x5c9f45,_0x408831,_0x3393c9=_0x29ad8c['defIds'];return!_0x3393c9||_0x3393c9[_0x3bdc68(0x1d9)]===0x0?_0x2a6d44:_0x2a6d44[_0x3bdc68(0x1f8)]===_0x3bdc68(0x1bd)&&(!((_0x408831=_0x2a6d44[_0x3bdc68(0x26d)])===null||_0x408831===void 0x0)&&_0x408831[_0x3bdc68(0x1d9)])?_0x1e7edf(_0x1e7edf({},_0x2a6d44),{'children':_0x2a6d44[_0x3bdc68(0x26d)][_0x3bdc68(0x1ca)](function(_0x867bb5){var _0x5ac29e=_0x3bdc68;return typeof _0x867bb5[_0x5ac29e(0x20f)]['id']==_0x5ac29e(0x282)&&_0x3393c9&&_0x3393c9[_0x5ac29e(0x2bd)](_0x867bb5[_0x5ac29e(0x20f)]['id'])>-0x1?_0x1e7edf(_0x1e7edf({},_0x867bb5),{'attrs':_0x1e7edf(_0x1e7edf({},_0x867bb5['attrs']),{'id':_0x867bb5['attrs']['id']+_0x29ad8c[_0x5ac29e(0x1d0)]})}):_0x867bb5;})}):_0x2a6d44;}function _0x3b39e3(){var _0xedbd22=_0x5c9f45;return Math[_0xedbd22(0x1cf)]()[_0xedbd22(0x22f)](0x24)[_0xedbd22(0x227)](0x2,0x8);}_0x312453[_0x5c9f45(0x277)]=_0x5c9f45(0x2a4);var _0x464c32={'tag':_0x5c9f45(0x241),'attrs':{'fill':'none','viewBox':_0x5c9f45(0x2b4),'width':_0x5c9f45(0x2b1),'height':_0x5c9f45(0x2b1)},'children':[{'tag':'g','attrs':{'fill':_0x5c9f45(0x29e),'clipPath':_0x5c9f45(0x22d)},'children':[{'tag':_0x5c9f45(0x279),'attrs':{'d':_0x5c9f45(0x234)}},{'tag':_0x5c9f45(0x279),'attrs':{'d':_0x5c9f45(0x2ae)}}]},{'tag':_0x5c9f45(0x1bd),'attrs':{},'children':[{'tag':_0x5c9f45(0x21b),'attrs':{'id':_0x5c9f45(0x228)},'children':[{'tag':'path','attrs':{'fill':_0x5c9f45(0x1fb),'d':_0x5c9f45(0x29c)}}]}]}],'defIds':['history-single_clip0_907_281']},_0x292456=_0x36dd65[_0x5c9f45(0x2b6)](function(_0x285db7,_0x1c108b){var _0x56dc3c=_0x5c9f45;return _0x36dd65[_0x56dc3c(0x239)](_0x312453,Object[_0x56dc3c(0x1bf)]({},_0x285db7,{'id':_0x56dc3c(0x208),'ref':_0x1c108b,'icon':_0x464c32}));});_0x292456[_0x5c9f45(0x277)]=_0x5c9f45(0x20a);const _0x198998={'id':'univer.operation.toggle-edit-history','type':_0x14f4a1['CommandType'][_0x5c9f45(0x224)],'handler':_0x18e25f=>{var _0x3ccdba=_0x5c9f45;const _0x29c906=_0x18e25f[_0x3ccdba(0x288)](_0x21e81b['HistoryLoaderService']),_0x19db3e=_0x18e25f['get'](_0x14f4a1['IUniverInstanceService']),{unitId:_0x387b0b}=_0x229b1b[_0x3ccdba(0x22e)](_0x19db3e)||{};return _0x387b0b?(_0x29c906[_0x3ccdba(0x235)](_0x387b0b),!0x0):!0x1;}},_0x1eb6de=_0x5c9f45(0x20a);function _0x3c2cae(_0x342c2a){var _0x173f32=_0x5c9f45;return{'id':_0x198998['id'],'type':_0x2c7b66['MenuItemType'][_0x173f32(0x1c7)],'icon':_0x1eb6de,'tooltip':_0x173f32(0x1ce),'hidden$':_0x2c7b66[_0x173f32(0x245)](_0x342c2a,_0x14f4a1[_0x173f32(0x1f0)][_0x173f32(0x22c)]),'disabled$':_0x9d3c7e[_0x173f32(0x20c)](_0x342c2a,{'workbookTypes':[_0x229b1b['WorkbookEditablePermission'],_0x229b1b['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x418a53={[_0x2c7b66[_0x5c9f45(0x2b3)]['OTHERS']]:{[_0x198998['id']]:{'order':0x0,'menuItemFactory':_0x3c2cae}}};var _0x143e53=Object[_0x5c9f45(0x230)],_0x24d4cc=Object['getOwnPropertyDescriptor'],_0xe908ce=(_0x4115ba,_0x549289,_0x201188,_0x4c22d4)=>{var _0x2c6d17=_0x5c9f45;for(var _0x3e44d8=_0x4c22d4>0x1?void 0x0:_0x4c22d4?_0x24d4cc(_0x549289,_0x201188):_0x549289,_0x347d8d=_0x4115ba[_0x2c6d17(0x1d9)]-0x1,_0x22745a;_0x347d8d>=0x0;_0x347d8d--)(_0x22745a=_0x4115ba[_0x347d8d])&&(_0x3e44d8=(_0x4c22d4?_0x22745a(_0x549289,_0x201188,_0x3e44d8):_0x22745a(_0x3e44d8))||_0x3e44d8);return _0x4c22d4&&_0x3e44d8&&_0x143e53(_0x549289,_0x201188,_0x3e44d8),_0x3e44d8;},_0x539e2e=(_0x278fbd,_0x2d04f9)=>(_0x580097,_0x5df13a)=>_0x2d04f9(_0x580097,_0x5df13a,_0x278fbd);let _0x21935f=class extends _0x14f4a1['RxDisposable']{constructor(_0x495c51,_0x4e04f1,_0x26cf98,_0x596bc6,_0x2d28ec,_0x28e6e9,_0x3e8615,_0x4602d7){var _0x1b4243=_0x5c9f45;super(),_0x3f91ca(this,'_revertErrorTimer',null),(this[_0x1b4243(0x1dd)]=_0x495c51,this[_0x1b4243(0x202)]=_0x4e04f1,this[_0x1b4243(0x1fe)]=_0x26cf98,this[_0x1b4243(0x21f)]=_0x596bc6,this[_0x1b4243(0x1f7)]=_0x2d28ec,this[_0x1b4243(0x246)]=_0x28e6e9,this['_collaborationController']=_0x3e8615,this['_localCacheService']=_0x4602d7,this[_0x1b4243(0x21e)]());}[_0x5c9f45(0x21e)](){var _0x59915d=_0x5c9f45;[_0x198998][_0x59915d(0x1d6)](_0x1f56ff=>this[_0x59915d(0x23d)](_0x14f4a1[_0x59915d(0x293)](this[_0x59915d(0x1dd)][_0x59915d(0x2c0)](_0x1f56ff)))),this[_0x59915d(0x23d)](this[_0x59915d(0x1fe)][_0x59915d(0x257)](_0x1eb6de,_0x292456)),this['_menuManagerService']['mergeMenu'](_0x418a53),this['disposeWithMe'](this[_0x59915d(0x1dd)][_0x59915d(0x274)](_0x549cec=>{var _0x780019=_0x59915d;if(_0x549cec['id']===_0x41bc8b[_0x780019(0x26a)]['id']){this['_messageService'][_0x780019(0x1c3)]({'content':this[_0x780019(0x1f7)]['t'](_0x780019(0x26c)),'type':_0x45cf1a[_0x780019(0x1d7)]['Loading'],'duration':0x1388});const {unitId:_0x1e01ab}=_0x549cec[_0x780019(0x27b)],_0x537d15=this['_collaborationController'][_0x780019(0x214)](_0x1e01ab),_0x409610=_0x3c3e06['combineLatest']([_0x537d15['session'][_0x780019(0x2a7)],_0x537d15[_0x780019(0x269)]])[_0x780019(0x1db)](async([_0x4c2c49,_0x3d80ca])=>{var _0x24ad84=_0x780019;_0x4c2c49['eventID']===_0x41bc8b[_0x24ad84(0x264)]['CHANGESET_ACK']&&(_0x3d80ca==null?void 0x0:_0x3d80ca['status'])===_0x32757e[_0x24ad84(0x2a1)][_0x24ad84(0x1ff)]&&_0x4c2c49[_0x24ad84(0x1b6)][_0x24ad84(0x1d5)][_0x24ad84(0x255)](_0x4a87f6=>_0x4a87f6['id']===_0x41bc8b['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x24ad84(0x1df)](),_0x409610[_0x24ad84(0x232)](),this[_0x24ad84(0x1ee)]&&clearTimeout(this[_0x24ad84(0x1ee)]),await this[_0x24ad84(0x2a0)]['exhaustSavingTask'](),setTimeout(()=>window[_0x24ad84(0x24c)]['reload']()));});this[_0x780019(0x1ee)]=setTimeout(()=>{var _0x553975=_0x780019;_0x409610[_0x553975(0x232)](),this[_0x553975(0x246)][_0x553975(0x1c3)]({'content':this[_0x553975(0x1f7)]['t'](_0x553975(0x23e)),'type':_0x45cf1a[_0x553975(0x1d7)]['Error'],'duration':0xbb8});},0x1388);}}));}};_0x21935f=_0xe908ce([_0x14f4a1[_0x5c9f45(0x249)](_0x14f4a1[_0x5c9f45(0x268)]['Steady'],_0x21935f),_0x539e2e(0x0,_0x14f4a1[_0x5c9f45(0x28c)]),_0x539e2e(0x1,_0x2c7b66[_0x5c9f45(0x267)]),_0x539e2e(0x2,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x243)])),_0x539e2e(0x3,_0x14f4a1[_0x5c9f45(0x29f)](_0x21e81b[_0x5c9f45(0x248)])),_0x539e2e(0x4,_0x14f4a1['Inject'](_0x14f4a1[_0x5c9f45(0x201)])),_0x539e2e(0x5,_0x2c7b66[_0x5c9f45(0x1de)]),_0x539e2e(0x6,_0x14f4a1[_0x5c9f45(0x29f)](_0x32757e[_0x5c9f45(0x275)])),_0x539e2e(0x7,_0x14f4a1[_0x5c9f45(0x29f)](_0x32757e['LocalCacheService']))],_0x21935f);const _0x2c05d9=_0x5c9f45(0x27d),_0x450150={};var _0x147c7e=Object['defineProperty'],_0x2e3fc7=Object[_0x5c9f45(0x283)],_0x2414f6=(_0x5e2feb,_0x2f1832,_0x5d7919,_0x5e9c4c)=>{for(var _0xa5a914=_0x5e9c4c>0x1?void 0x0:_0x5e9c4c?_0x2e3fc7(_0x2f1832,_0x5d7919):_0x2f1832,_0x54efda=_0x5e2feb['length']-0x1,_0x5c6ba4;_0x54efda>=0x0;_0x54efda--)(_0x5c6ba4=_0x5e2feb[_0x54efda])&&(_0xa5a914=(_0x5e9c4c?_0x5c6ba4(_0x2f1832,_0x5d7919,_0xa5a914):_0x5c6ba4(_0xa5a914))||_0xa5a914);return _0x5e9c4c&&_0xa5a914&&_0x147c7e(_0x2f1832,_0x5d7919,_0xa5a914),_0xa5a914;},_0xeceecf=(_0x5cf4a1,_0x2d9086)=>(_0x1e868e,_0x58c823)=>_0x2d9086(_0x1e868e,_0x58c823,_0x5cf4a1);const _0x33e712=_0x5c9f45(0x1c4);_0x21e81b['UniverEditHistoryLoaderPlugin']=(_0x3d1118=class extends _0x14f4a1['Plugin']{constructor(_0x56c089=_0x450150,_0x30dcd1,_0xab2cc9){var _0x192a74=_0x5c9f45;super(),this[_0x192a74(0x1e7)]=_0x56c089,this['_injector']=_0x30dcd1,this[_0x192a74(0x291)]=_0xab2cc9;const {menu:_0x2e6a56,..._0x4e3311}=this[_0x192a74(0x1e7)];_0x2e6a56&&this[_0x192a74(0x291)][_0x192a74(0x1bc)](_0x192a74(0x1d4),_0x2e6a56,{'merge':!0x0}),this[_0x192a74(0x291)][_0x192a74(0x1bc)](_0x2c05d9,_0x4e3311),this[_0x192a74(0x1e7)][_0x192a74(0x1e5)]&&this[_0x192a74(0x291)]['setConfig'](_0x59ed65,this[_0x192a74(0x1e7)]['univerContainerId']);}[_0x5c9f45(0x1c6)](){var _0x1ed5e1=_0x5c9f45;[[_0x21e81b[_0x1ed5e1(0x248)]],[_0x21935f]][_0x1ed5e1(0x1d6)](_0x297aca=>this[_0x1ed5e1(0x22a)][_0x1ed5e1(0x1fc)](_0x297aca));}},_0x3f91ca(_0x3d1118,_0x5c9f45(0x297),_0x14f4a1[_0x5c9f45(0x1f0)][_0x5c9f45(0x251)]),_0x3f91ca(_0x3d1118,_0x5c9f45(0x281),_0x33e712),_0x3d1118),_0x21e81b[_0x5c9f45(0x1be)]=_0x2414f6([_0xeceecf(0x1,_0x14f4a1[_0x5c9f45(0x29f)](_0x14f4a1[_0x5c9f45(0x200)])),_0xeceecf(0x2,_0x14f4a1[_0x5c9f45(0x1c9)])],_0x21e81b['UniverEditHistoryLoaderPlugin']),_0x21e81b['UNIVER_CONTAINER_ID_KEY']=_0x59ed65,_0x21e81b[_0x5c9f45(0x28e)]=_0x200ecd,Object['defineProperty'](_0x21e81b,Symbol[_0x5c9f45(0x1f5)],{'value':_0x5c9f45(0x2aa)});}));
|
|
1
|
+
function _0x4056(_0x5b91cf,_0x1b2b84){var _0x2f4953=_0x2f49();return _0x4056=function(_0x4056cd,_0x2c9fd7){_0x4056cd=_0x4056cd-0x19e;var _0x3ec90a=_0x2f4953[_0x4056cd];return _0x3ec90a;},_0x4056(_0x5b91cf,_0x1b2b84);}(function(_0xd08730,_0x3caa51){var _0x1a5c2f=_0x4056,_0x19a0a3=_0xd08730();while(!![]){try{var _0x10bf34=parseInt(_0x1a5c2f(0x232))/0x1*(parseInt(_0x1a5c2f(0x221))/0x2)+parseInt(_0x1a5c2f(0x217))/0x3+-parseInt(_0x1a5c2f(0x293))/0x4+-parseInt(_0x1a5c2f(0x1fc))/0x5*(-parseInt(_0x1a5c2f(0x299))/0x6)+-parseInt(_0x1a5c2f(0x29c))/0x7+-parseInt(_0x1a5c2f(0x249))/0x8*(parseInt(_0x1a5c2f(0x24d))/0x9)+-parseInt(_0x1a5c2f(0x1c4))/0xa;if(_0x10bf34===_0x3caa51)break;else _0x19a0a3['push'](_0x19a0a3['shift']());}catch(_0x6803e){_0x19a0a3['push'](_0x19a0a3['shift']());}}}(_0x2f49,0x249bc),function(_0x4d5f6f,_0x5425ea){var _0x48e90b=_0x4056;typeof exports==_0x48e90b(0x2b3)&&typeof module<'u'?_0x5425ea(exports,require(_0x48e90b(0x23b)),require(_0x48e90b(0x1d8)),require(_0x48e90b(0x1da)),require('@univerjs/docs-ui'),require('@univerjs/engine-render'),require(_0x48e90b(0x1a1)),require(_0x48e90b(0x27a)),require(_0x48e90b(0x224)),require(_0x48e90b(0x1e6)),require('@univerjs-pro/collaboration'),require(_0x48e90b(0x291)),require(_0x48e90b(0x2a5)),require(_0x48e90b(0x207)),require('@univerjs/sheets-conditional-formatting-ui'),require(_0x48e90b(0x211)),require(_0x48e90b(0x208)),require(_0x48e90b(0x283)),require('@univerjs/sheets-numfmt'),require(_0x48e90b(0x214)),require(_0x48e90b(0x1a0)),require(_0x48e90b(0x26b)),require(_0x48e90b(0x1d2)),require(_0x48e90b(0x1c6)),require('@univerjs/sheets-drawing-ui'),require(_0x48e90b(0x202)),require(_0x48e90b(0x29b)),require(_0x48e90b(0x1ab)),require(_0x48e90b(0x22c)),require(_0x48e90b(0x220)),require(_0x48e90b(0x1c9))):typeof define==_0x48e90b(0x28e)&&define[_0x48e90b(0x2aa)]?define([_0x48e90b(0x274),_0x48e90b(0x23b),_0x48e90b(0x1d8),_0x48e90b(0x1da),_0x48e90b(0x1ac),_0x48e90b(0x23e),'@univerjs/sheets',_0x48e90b(0x27a),'@univerjs/ui','@univerjs-pro/edit-history-viewer',_0x48e90b(0x203),_0x48e90b(0x291),_0x48e90b(0x2a5),_0x48e90b(0x207),_0x48e90b(0x239),_0x48e90b(0x211),_0x48e90b(0x208),_0x48e90b(0x283),'@univerjs/sheets-numfmt',_0x48e90b(0x214),_0x48e90b(0x1a0),_0x48e90b(0x26b),'@univerjs/sheets-data-validation',_0x48e90b(0x1c6),'@univerjs/sheets-drawing-ui',_0x48e90b(0x202),_0x48e90b(0x29b),_0x48e90b(0x1ab),_0x48e90b(0x22c),_0x48e90b(0x220),_0x48e90b(0x1c9)],_0x5425ea):(_0x4d5f6f=typeof globalThis<'u'?globalThis:_0x4d5f6f||self,_0x5425ea(_0x4d5f6f[_0x48e90b(0x29f)]={},_0x4d5f6f['UniverCore'],_0x4d5f6f[_0x48e90b(0x227)],_0x4d5f6f[_0x48e90b(0x2a4)],_0x4d5f6f['UniverDocsUi'],_0x4d5f6f['UniverEngineRender'],_0x4d5f6f['UniverSheets'],_0x4d5f6f[_0x48e90b(0x29a)],_0x4d5f6f[_0x48e90b(0x269)],_0x4d5f6f[_0x48e90b(0x219)],_0x4d5f6f[_0x48e90b(0x20d)],_0x4d5f6f['UniverSheetsFilter'],_0x4d5f6f['UniverSheetsFilterUi'],_0x4d5f6f[_0x48e90b(0x27d)],_0x4d5f6f['UniverSheetsConditionalFormattingUi'],_0x4d5f6f[_0x48e90b(0x213)],_0x4d5f6f['UniverSheetsHyperLinkUi'],_0x4d5f6f['UniverDataValidation'],_0x4d5f6f[_0x48e90b(0x22f)],_0x4d5f6f[_0x48e90b(0x229)],_0x4d5f6f[_0x48e90b(0x216)],_0x4d5f6f[_0x48e90b(0x1ad)],_0x4d5f6f[_0x48e90b(0x26a)],_0x4d5f6f[_0x48e90b(0x1b6)],_0x4d5f6f['UniverSheetsDrawingUi'],_0x4d5f6f[_0x48e90b(0x1ee)],_0x4d5f6f[_0x48e90b(0x21b)],_0x4d5f6f[_0x48e90b(0x1dd)],_0x4d5f6f[_0x48e90b(0x279)],_0x4d5f6f[_0x48e90b(0x220)],_0x4d5f6f[_0x48e90b(0x215)]));}(this,function(_0x1833ae,_0x106d93,_0x14e98f,_0x55452f,_0x416b0f,_0x3e66b5,_0xfc61c,_0x46d2c2,_0x5a3703,_0x307a26,_0x355088,_0x1beee,_0x5720e2,_0x19d64b,_0x15d87e,_0x5a9880,_0x2469c4,_0x231992,_0x26179b,_0x2bb3ba,_0x3137bc,_0x1aa742,_0x522c18,_0x1e060b,_0x50cb3a,_0x18123b,_0xdf7107,_0x3119c3,_0x58430e,_0x5f12f9,_0x4a730e){'use strict';var _0x11567d=_0x4056;var _0x330293=Object[_0x11567d(0x1d0)],_0x2cb5c5=(_0x43e7d3,_0x1db6c0,_0x29ed3)=>_0x1db6c0 in _0x43e7d3?_0x330293(_0x43e7d3,_0x1db6c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29ed3}):_0x43e7d3[_0x1db6c0]=_0x29ed3,_0x1f6653=(_0x448bf0,_0x1e9966,_0x9993f7)=>_0x2cb5c5(_0x448bf0,typeof _0x1e9966!=_0x11567d(0x1f3)?_0x1e9966+'':_0x1e9966,_0x9993f7),_0x5b7285,_0x122f97=Object[_0x11567d(0x1d0)],_0x4438a9=Object[_0x11567d(0x23f)],_0x2adcc1=(_0x2a9270,_0x3b5a2b,_0xb4b2ac,_0x13754c)=>{var _0x49c886=_0x11567d;for(var _0x5d4d27=_0x13754c>0x1?void 0x0:_0x13754c?_0x4438a9(_0x3b5a2b,_0xb4b2ac):_0x3b5a2b,_0x2ea820=_0x2a9270[_0x49c886(0x26e)]-0x1,_0xf4f4ab;_0x2ea820>=0x0;_0x2ea820--)(_0xf4f4ab=_0x2a9270[_0x2ea820])&&(_0x5d4d27=(_0x13754c?_0xf4f4ab(_0x3b5a2b,_0xb4b2ac,_0x5d4d27):_0xf4f4ab(_0x5d4d27))||_0x5d4d27);return _0x13754c&&_0x5d4d27&&_0x122f97(_0x3b5a2b,_0xb4b2ac,_0x5d4d27),_0x5d4d27;},_0x1fb733=(_0x313a27,_0x466775)=>(_0x507d2,_0x3072da)=>_0x466775(_0x507d2,_0x3072da,_0x313a27);const _0x815a4a=_0x11567d(0x1e1),_0x2acb93=_0x11567d(0x21a),_0x53683a='univer-history-container';_0x1833ae['HistoryLoaderService']=class extends _0x106d93[_0x11567d(0x222)]{constructor(_0x4a906d,_0x539c35,_0xd23148,_0x1dff81,_0x9aeb7d,_0x2ff8a6,_0x218baf,_0x35279c,_0x5f3841){var _0x52a1e4=_0x11567d;super(),_0x1f6653(this,_0x52a1e4(0x1cc),null),_0x1f6653(this,_0x52a1e4(0x24b),new _0x106d93[(_0x52a1e4(0x1e5))]()),_0x1f6653(this,_0x52a1e4(0x1a6),new Map()),(this['_localeService']=_0x4a906d,this[_0x52a1e4(0x1f8)]=_0x539c35,this['_configService']=_0xd23148,this[_0x52a1e4(0x20e)]=_0x1dff81,this['_messageService']=_0x9aeb7d,this[_0x52a1e4(0x1bd)]=_0x2ff8a6,this[_0x52a1e4(0x2a6)]=_0x218baf,this[_0x52a1e4(0x19e)]=_0x35279c,this['_sidebarService']=_0x5f3841,this[_0x52a1e4(0x1cf)]());}[_0x11567d(0x1cf)](){var _0x476015=_0x11567d;this[_0x476015(0x1b5)](),this[_0x476015(0x1ce)]();}[_0x11567d(0x1b5)](){var _0x5dd169=_0x11567d,_0x456f01;const _0x1eba28=(_0x456f01=this['_configService'][_0x5dd169(0x234)](_0x2acb93))!=null?_0x456f01:_0x815a4a,_0x494eaa=document[_0x5dd169(0x253)](_0x1eba28);if(!_0x494eaa)return;const _0x1f1f2e=document[_0x5dd169(0x1c1)](_0x5dd169(0x2a9));_0x1f1f2e['id']=_0x53683a,_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x296)]=_0x5dd169(0x241),_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x270)]='0',_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x23a)]='0',_0x1f1f2e['style'][_0x5dd169(0x1f7)]=_0x5dd169(0x28b),_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x252)]=_0x5dd169(0x28b),_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x282)]=_0x5dd169(0x1e4),_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x206)]=_0x5dd169(0x1cd),_0x494eaa['appendChild'](_0x1f1f2e);}[_0x11567d(0x1ce)](){var _0x1c488e=_0x11567d;[[_0xdf7107['UniverDrawingPlugin'],{'override':[[_0xdf7107[_0x1c488e(0x27c)],null]]}],[_0x55452f['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x416b0f[_0x1c488e(0x1d7)]],[_0x3e66b5[_0x1c488e(0x1b1)]],[_0x5a3703[_0x1c488e(0x254)],{'container':_0x53683a,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5a3703[_0x1c488e(0x2a2)],null]]}],[_0xfc61c[_0x1c488e(0x257)],{'notExecuteFormula':!0x0}],[_0x46d2c2[_0x1c488e(0x25b)]],[_0x355088[_0x1c488e(0x1fd)]],[_0x1beee['UniverSheetsFilterPlugin']],[_0x5720e2['UniverSheetsFilterUIPlugin']],[_0x19d64b[_0x1c488e(0x276)]],[_0x15d87e['UniverSheetsConditionalFormattingUIPlugin']],[_0x5a9880[_0x1c488e(0x1c8)]],[_0x2469c4['UniverSheetsHyperLinkUIPlugin']],[_0x231992[_0x1c488e(0x24a)]],[_0x522c18[_0x1c488e(0x25c)]],[_0x26179b['UniverSheetsNumfmtPlugin']],[_0x3137bc[_0x1c488e(0x245)],{'notExecuteFormula':!0x0}],[_0x2bb3ba[_0x1c488e(0x20c)]],[_0x1aa742['UniverRPCMainThreadPlugin'],{'workerURL':'./worker.js'}],[_0x1e060b[_0x1c488e(0x237)]],[_0x18123b[_0x1c488e(0x28c)]],[_0x50cb3a[_0x1c488e(0x1be)]],[_0x3119c3['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x307a26[_0x1c488e(0x295)]]]['forEach'](([_0x2cfb44,_0x94b6bd])=>this[_0x1c488e(0x2b2)](_0x2cfb44,_0x94b6bd));}[_0x11567d(0x1f1)](){var _0x4d36fa=_0x11567d;super[_0x4d36fa(0x1f1)](),this[_0x4d36fa(0x231)](),this[_0x4d36fa(0x1a6)][_0x4d36fa(0x1d9)]();}[_0x11567d(0x2b2)](_0x16125d,_0x36dc06,_0x552464){var _0x14444b=_0x11567d;if(this[_0x14444b(0x1a6)][_0x14444b(0x259)](_0x16125d[_0x14444b(0x238)])&&!_0x552464)throw new Error(_0x14444b(0x20a)+_0x16125d[_0x14444b(0x238)]+'\x20has\x20been\x20registered.');this[_0x14444b(0x1a6)][_0x14444b(0x1b4)](_0x16125d[_0x14444b(0x238)],[_0x16125d,_0x36dc06]);}[_0x11567d(0x1f5)](){var _0x22f1be=_0x11567d;return Array[_0x22f1be(0x260)](this[_0x22f1be(0x1a6)][_0x22f1be(0x256)]());}[_0x11567d(0x2b5)](_0x27b51e){var _0x44941b=_0x11567d;const _0x4d268f=document[_0x44941b(0x253)](_0x53683a);_0x4d268f&&(_0x4d268f[_0x44941b(0x2b8)][_0x44941b(0x206)]=_0x44941b(0x23d),this[_0x44941b(0x271)](_0x27b51e,_0x53683a));}[_0x11567d(0x231)](){var _0xbcc9f6=_0x11567d,_0x1aa791;this[_0xbcc9f6(0x24b)]['dispose'](),(_0x1aa791=this[_0xbcc9f6(0x1cc)])==null||_0x1aa791[_0xbcc9f6(0x1f1)](),this[_0xbcc9f6(0x1cc)]=null;const _0x5c2fa8=document[_0xbcc9f6(0x253)](_0x53683a);_0x5c2fa8&&(_0x5c2fa8['style'][_0xbcc9f6(0x206)]=_0xbcc9f6(0x1cd));}[_0x11567d(0x271)](_0x29c2b1,_0x12ac19){var _0x192d0f=_0x11567d;if(this[_0x192d0f(0x1cc)])return;const _0x40b3c2=new _0x106d93['Univer']({'theme':_0x14e98f[_0x192d0f(0x1e2)],'locales':{[this['_localeService'][_0x192d0f(0x2a3)]()]:this['_localeService'][_0x192d0f(0x1ea)]()},'override':[[_0x106d93[_0x192d0f(0x226)],null]]});this[_0x192d0f(0x1cc)]=_0x40b3c2;const _0x46908b=_0x40b3c2[_0x192d0f(0x23c)]();_0x46908b['get'](_0x106d93[_0x192d0f(0x25e)])[_0x192d0f(0x1d6)](this[_0x192d0f(0x258)][_0x192d0f(0x2a3)]()),this['_pluginMap'][_0x192d0f(0x248)](([_0x407d95,_0x2b0e71])=>{var _0x42b2a8=_0x192d0f;_0x40b3c2[_0x42b2a8(0x2b2)](_0x407d95,_0x2b0e71);}),_0x46908b[_0x192d0f(0x297)](_0x547dfa=>{var _0x573b2b=_0x192d0f;this[_0x573b2b(0x1b0)](_0x547dfa,_0x29c2b1),this[_0x573b2b(0x265)](_0x547dfa,this['_messageService']);});const _0x5cd94c=_0x46908b[_0x192d0f(0x2a1)](_0x307a26[_0x192d0f(0x25f)]),_0x164ef4=this[_0x192d0f(0x210)](_0x29c2b1);_0x5cd94c[_0x192d0f(0x225)](_0x29c2b1,_0x12ac19,_0x164ef4);}[_0x11567d(0x1b0)](_0x1e71de,_0xc17a10){var _0x43ba29=_0x11567d;const _0x52c15a=_0x1e71de[_0x43ba29(0x2a1)](_0x307a26[_0x43ba29(0x25f)]);this['_disposableCollection']['add'](_0x52c15a[_0x43ba29(0x230)]['subscribe'](_0x4229c3=>{var _0x5aedbc=_0x43ba29;switch(_0x4229c3){case _0x307a26['HistoryModeStatus'][_0x5aedbc(0x1bc)]:this[_0x5aedbc(0x19e)][_0x5aedbc(0x285)](),this[_0x5aedbc(0x240)][_0x5aedbc(0x1ed)]();break;case _0x307a26[_0x5aedbc(0x2b0)]['Exited']:this[_0x5aedbc(0x231)]();break;case _0x307a26[_0x5aedbc(0x2b0)][_0x5aedbc(0x1b8)]:this[_0x5aedbc(0x231)](),this[_0x5aedbc(0x1d3)][_0x5aedbc(0x1a7)]({'content':this['_localeService']['t'](_0x5aedbc(0x2b7)),'type':_0x14e98f[_0x5aedbc(0x1d5)][_0x5aedbc(0x1b8)],'duration':0xbb8});break;}})),this[_0x43ba29(0x24b)][_0x43ba29(0x25a)](_0x52c15a[_0x43ba29(0x1a2)][_0x43ba29(0x2b1)](async _0x46742c=>{var _0xb08427=_0x43ba29;_0x46742c&&this[_0xb08427(0x20e)]['executeCommand'](_0x355088[_0xb08427(0x209)]['id'],{'unitId':_0xc17a10,'revision':_0x46742c});}));}[_0x11567d(0x265)](_0x352beb,_0x2ccce0){var _0x6217ff=_0x11567d;const _0x312901=_0x352beb[_0x6217ff(0x2a1)](_0x5a3703['IMessageService']),_0x5c4036=_0x2ccce0[_0x6217ff(0x267)]();_0x5c4036&&_0x312901[_0x6217ff(0x27b)](_0x5c4036);}[_0x11567d(0x210)](_0x2d4058){var _0xa1d271=_0x11567d;const _0x46f11d=this[_0xa1d271(0x1f8)][_0xa1d271(0x280)](_0x2d4058)[_0xa1d271(0x1ae)]()[_0xa1d271(0x2a8)](_0x277619=>_0x277619['getSheetId']()),_0x125afc=new _0xfc61c[(_0xa1d271(0x21d))](_0x2d4058)['id'],_0x510c57=_0x46f11d[_0xa1d271(0x2a8)](_0x354bff=>new _0xfc61c[(_0xa1d271(0x1a9))](_0x2d4058,_0x354bff)['id']),_0x3fe287=_0x46f11d[_0xa1d271(0x2a8)](_0x52c6ca=>this[_0xa1d271(0x2a6)][_0xa1d271(0x1c3)](_0x2d4058,_0x52c6ca)['map'](_0x21240e=>new _0xfc61c['RangeProtectionPermissionEditPoint'](_0x2d4058,_0x52c6ca,_0x21240e[_0xa1d271(0x1fb)])['id']))['flat'](),_0x23b4c3=new _0xfc61c[(_0xa1d271(0x205))](_0x2d4058)['id'];return this['_permissionService'][_0xa1d271(0x281)]([_0x125afc,..._0x510c57,..._0x3fe287,_0x23b4c3])[_0xa1d271(0x289)](_0x1b55b3=>!!_0x1b55b3[_0xa1d271(0x1db)]);}},_0x1833ae[_0x11567d(0x286)]=_0x2adcc1([_0x106d93[_0x11567d(0x236)](_0x106d93[_0x11567d(0x2ab)][_0x11567d(0x28a)],_0x1833ae['HistoryLoaderService']),_0x1fb733(0x0,_0x106d93[_0x11567d(0x292)](_0x106d93['LocaleService'])),_0x1fb733(0x1,_0x106d93['IUniverInstanceService']),_0x1fb733(0x2,_0x106d93['IConfigService']),_0x1fb733(0x3,_0x106d93[_0x11567d(0x26f)]),_0x1fb733(0x4,_0x5a3703[_0x11567d(0x287)]),_0x1fb733(0x5,_0x106d93[_0x11567d(0x264)]),_0x1fb733(0x6,_0x106d93[_0x11567d(0x292)](_0xfc61c['RangeProtectionRuleModel'])),_0x1fb733(0x7,_0x106d93[_0x11567d(0x292)](_0x5a3703[_0x11567d(0x2a2)])),_0x1fb733(0x8,_0x106d93[_0x11567d(0x292)](_0x5a3703[_0x11567d(0x1bb)]))],_0x1833ae['HistoryLoaderService']);var _0x3b36ae=function(){var _0x302113=_0x11567d;return _0x3b36ae=Object['assign']||function(_0x2a7eb4){var _0x382d19=_0x4056;for(var _0xe7870c,_0x2f3b43=0x1,_0x136109=arguments[_0x382d19(0x26e)];_0x2f3b43<_0x136109;_0x2f3b43++){_0xe7870c=arguments[_0x2f3b43];for(var _0x2110ba in _0xe7870c)Object['prototype'][_0x382d19(0x255)][_0x382d19(0x1e7)](_0xe7870c,_0x2110ba)&&(_0x2a7eb4[_0x2110ba]=_0xe7870c[_0x2110ba]);}return _0x2a7eb4;},_0x3b36ae[_0x302113(0x21c)](this,arguments);},_0x2bb718=function(_0x211dcd,_0x1824d1){var _0x2c8ce7=_0x11567d,_0x3fb316={};for(var _0x506ee7 in _0x211dcd)Object['prototype']['hasOwnProperty'][_0x2c8ce7(0x1e7)](_0x211dcd,_0x506ee7)&&_0x1824d1['indexOf'](_0x506ee7)<0x0&&(_0x3fb316[_0x506ee7]=_0x211dcd[_0x506ee7]);if(_0x211dcd!=null&&typeof Object[_0x2c8ce7(0x1e0)]=='function'){for(var _0x1b7f7c=0x0,_0x506ee7=Object[_0x2c8ce7(0x1e0)](_0x211dcd);_0x1b7f7c<_0x506ee7[_0x2c8ce7(0x26e)];_0x1b7f7c++)_0x1824d1[_0x2c8ce7(0x246)](_0x506ee7[_0x1b7f7c])<0x0&&Object[_0x2c8ce7(0x218)][_0x2c8ce7(0x200)][_0x2c8ce7(0x1e7)](_0x211dcd,_0x506ee7[_0x1b7f7c])&&(_0x3fb316[_0x506ee7[_0x1b7f7c]]=_0x211dcd[_0x506ee7[_0x1b7f7c]]);}return _0x3fb316;},_0x39e96b=_0x4a730e[_0x11567d(0x1e3)](function(_0x17cd57,_0x39cda3){var _0x1d2801=_0x11567d,_0x4c8fa1=_0x17cd57[_0x1d2801(0x1e8)],_0x49eea2=_0x17cd57['id'],_0x146a47=_0x17cd57[_0x1d2801(0x1c5)],_0x3c6418=_0x17cd57[_0x1d2801(0x1b9)],_0x16811d=_0x2bb718(_0x17cd57,['icon','id',_0x1d2801(0x1c5),_0x1d2801(0x1b9)]),_0x186f0a=_0x1d2801(0x1b3)[_0x1d2801(0x233)](_0x49eea2,'\x20')[_0x1d2801(0x233)](_0x146a47||'')[_0x1d2801(0x2ae)](),_0x1d81bf=_0x4a730e[_0x1d2801(0x26d)]('_'[_0x1d2801(0x233)](_0x2cd869()));return _0x35e6e1(_0x4c8fa1,''[_0x1d2801(0x233)](_0x49eea2),{'defIds':_0x4c8fa1[_0x1d2801(0x262)],'idSuffix':_0x1d81bf[_0x1d2801(0x290)]},_0x3b36ae({'ref':_0x39cda3,'className':_0x186f0a},_0x16811d),_0x3c6418);});function _0x35e6e1(_0x201379,_0x5ad3f6,_0x3c70da,_0x2c1f5c,_0x140ae8){var _0x1dfead=_0x11567d;return _0x4a730e[_0x1dfead(0x1c1)](_0x201379[_0x1dfead(0x2af)],_0x3b36ae(_0x3b36ae({'key':_0x5ad3f6},_0x2281a3(_0x201379,_0x3c70da,_0x140ae8)),_0x2c1f5c),(_0x3fcf7a(_0x201379,_0x3c70da)[_0x1dfead(0x22e)]||[])['map'](function(_0x207c9a,_0x477af2){var _0x3689f2=_0x1dfead;return _0x35e6e1(_0x207c9a,''[_0x3689f2(0x233)](_0x5ad3f6,'-')[_0x3689f2(0x233)](_0x201379[_0x3689f2(0x2af)],'-')[_0x3689f2(0x233)](_0x477af2),_0x3c70da,void 0x0,_0x140ae8);}));}function _0x2281a3(_0x15ed9b,_0x22cac9,_0x3fd5e9){var _0x513e45=_0x11567d,_0x273008=_0x3b36ae({},_0x15ed9b[_0x513e45(0x1f0)]);_0x3fd5e9!=null&&_0x3fd5e9[_0x513e45(0x1f9)]&&_0x273008[_0x513e45(0x275)]===_0x513e45(0x1f9)&&(_0x273008[_0x513e45(0x275)]=_0x3fd5e9['colorChannel1']);var _0x54201c=_0x22cac9[_0x513e45(0x262)];return!_0x54201c||_0x54201c[_0x513e45(0x26e)]===0x0||(_0x15ed9b[_0x513e45(0x2af)]===_0x513e45(0x1b2)&&_0x273008['xlink:href']&&(_0x273008['xlink:href']=_0x273008[_0x513e45(0x1bf)]+_0x22cac9[_0x513e45(0x2b6)]),Object[_0x513e45(0x242)](_0x273008)['forEach'](function(_0x358134){var _0x32e3ec=_0x513e45,_0x5158e3=_0x358134[0x0],_0x4d5210=_0x358134[0x1];typeof _0x4d5210==_0x32e3ec(0x2ac)&&(_0x273008[_0x5158e3]=_0x4d5210[_0x32e3ec(0x250)](/url\(#(.*)\)/,_0x32e3ec(0x288)[_0x32e3ec(0x233)](_0x22cac9[_0x32e3ec(0x2b6)],')')));})),_0x273008;}function _0x3fcf7a(_0x4bca11,_0x3676d1){var _0x4fdbd4=_0x11567d,_0x5c3360,_0x2a1d7f=_0x3676d1[_0x4fdbd4(0x262)];return!_0x2a1d7f||_0x2a1d7f[_0x4fdbd4(0x26e)]===0x0?_0x4bca11:_0x4bca11[_0x4fdbd4(0x2af)]===_0x4fdbd4(0x1e9)&&(!((_0x5c3360=_0x4bca11[_0x4fdbd4(0x22e)])===null||_0x5c3360===void 0x0)&&_0x5c3360[_0x4fdbd4(0x26e)])?_0x3b36ae(_0x3b36ae({},_0x4bca11),{'children':_0x4bca11[_0x4fdbd4(0x22e)][_0x4fdbd4(0x2a8)](function(_0x12c30b){var _0x5a6a94=_0x4fdbd4;return typeof _0x12c30b[_0x5a6a94(0x1f0)]['id']==_0x5a6a94(0x2ac)&&_0x2a1d7f&&_0x2a1d7f[_0x5a6a94(0x246)](_0x12c30b[_0x5a6a94(0x1f0)]['id'])>-0x1?_0x3b36ae(_0x3b36ae({},_0x12c30b),{'attrs':_0x3b36ae(_0x3b36ae({},_0x12c30b[_0x5a6a94(0x1f0)]),{'id':_0x12c30b[_0x5a6a94(0x1f0)]['id']+_0x3676d1['idSuffix']})}):_0x12c30b;})}):_0x4bca11;}function _0x2cd869(){var _0x26156e=_0x11567d;return Math[_0x26156e(0x22b)]()[_0x26156e(0x24f)](0x24)[_0x26156e(0x27e)](0x2,0x8);}_0x39e96b[_0x11567d(0x25d)]=_0x11567d(0x1af);var _0x5d79d9={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x11567d(0x1ff)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x11567d(0x22d)},'children':[{'tag':_0x11567d(0x261),'attrs':{'d':_0x11567d(0x26c)}},{'tag':'path','attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':_0x11567d(0x1e9),'attrs':{},'children':[{'tag':_0x11567d(0x272),'attrs':{'id':_0x11567d(0x19f)},'children':[{'tag':_0x11567d(0x261),'attrs':{'fill':_0x11567d(0x235),'d':_0x11567d(0x22a)}}]}]}],'defIds':[_0x11567d(0x19f)]},_0x5d10f4=_0x4a730e[_0x11567d(0x1e3)](function(_0x286736,_0x5dd3b0){var _0x10b899=_0x11567d;return _0x4a730e[_0x10b899(0x1c1)](_0x39e96b,Object[_0x10b899(0x228)]({},_0x286736,{'id':'history-single','ref':_0x5dd3b0,'icon':_0x5d79d9}));});_0x5d10f4['displayName']=_0x11567d(0x20f);const _0x3f846f={'id':'univer.operation.toggle-edit-history','type':_0x106d93['CommandType'][_0x11567d(0x27f)],'handler':_0x49baca=>{var _0x457e0d=_0x11567d;const _0x15ab91=_0x49baca['get'](_0x1833ae[_0x457e0d(0x286)]),_0x115cb2=_0x49baca[_0x457e0d(0x2a1)](_0x106d93[_0x457e0d(0x251)]),{unitId:_0x2550e8}=_0xfc61c['getSheetCommandTarget'](_0x115cb2)||{};return _0x2550e8?(_0x15ab91['mountHistoryContent'](_0x2550e8),!0x0):!0x1;}},_0x2aa867=_0x11567d(0x20f);function _0x2b1437(_0x4ba66d){var _0x420a52=_0x11567d;return{'id':_0x3f846f['id'],'type':_0x5a3703['MenuItemType']['BUTTON'],'icon':_0x2aa867,'tooltip':'editHistory.panel.title','hidden$':_0x5a3703[_0x420a52(0x1c2)](_0x4ba66d,_0x106d93['UniverInstanceType']['UNIVER_SHEET']),'disabled$':_0x46d2c2['getCurrentRangeDisable$'](_0x4ba66d,{'workbookTypes':[_0xfc61c[_0x420a52(0x21d)],_0xfc61c[_0x420a52(0x204)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x38e282={[_0x5a3703[_0x11567d(0x278)]['OTHERS']]:{[_0x3f846f['id']]:{'order':0x0,'menuItemFactory':_0x2b1437}}};var _0xf4ac76=Object[_0x11567d(0x1d0)],_0x2aa358=Object['getOwnPropertyDescriptor'],_0x11167a=(_0x1f79ac,_0x31ff72,_0x34d35d,_0x1d0af2)=>{var _0x205848=_0x11567d;for(var _0x83deda=_0x1d0af2>0x1?void 0x0:_0x1d0af2?_0x2aa358(_0x31ff72,_0x34d35d):_0x31ff72,_0x40fbbb=_0x1f79ac[_0x205848(0x26e)]-0x1,_0x14415b;_0x40fbbb>=0x0;_0x40fbbb--)(_0x14415b=_0x1f79ac[_0x40fbbb])&&(_0x83deda=(_0x1d0af2?_0x14415b(_0x31ff72,_0x34d35d,_0x83deda):_0x14415b(_0x83deda))||_0x83deda);return _0x1d0af2&&_0x83deda&&_0xf4ac76(_0x31ff72,_0x34d35d,_0x83deda),_0x83deda;},_0x531a93=(_0x76321c,_0x21cb6a)=>(_0x3a7987,_0x57ec2b)=>_0x21cb6a(_0x3a7987,_0x57ec2b,_0x76321c);let _0xcfdc8a=class extends _0x106d93[_0x11567d(0x1df)]{constructor(_0x11461c,_0x583e86,_0x32339c,_0x3dd27f,_0x39ae84,_0xd16449,_0xa8e72d,_0x4f96c1){var _0x22a801=_0x11567d;super(),_0x1f6653(this,_0x22a801(0x2b4),null),(this[_0x22a801(0x20e)]=_0x11461c,this[_0x22a801(0x28f)]=_0x583e86,this[_0x22a801(0x212)]=_0x32339c,this[_0x22a801(0x1a4)]=_0x3dd27f,this[_0x22a801(0x258)]=_0x39ae84,this[_0x22a801(0x1d3)]=_0xd16449,this[_0x22a801(0x1fe)]=_0xa8e72d,this[_0x22a801(0x2ad)]=_0x4f96c1,this[_0x22a801(0x1cf)]());}['_init'](){var _0x46f66d=_0x11567d;[_0x3f846f][_0x46f66d(0x248)](_0x40d020=>this[_0x46f66d(0x29d)](_0x106d93[_0x46f66d(0x273)](this[_0x46f66d(0x20e)][_0x46f66d(0x223)](_0x40d020)))),this['disposeWithMe'](this['_componentManager'][_0x46f66d(0x1f2)](_0x2aa867,_0x5d10f4)),this[_0x46f66d(0x28f)][_0x46f66d(0x277)](_0x38e282),this[_0x46f66d(0x29d)](this[_0x46f66d(0x20e)][_0x46f66d(0x2a0)](_0x2e4f32=>{var _0x3908d9=_0x46f66d;if(_0x2e4f32['id']===_0x355088[_0x3908d9(0x209)]['id']){this['_messageService'][_0x3908d9(0x1a7)]({'content':this[_0x3908d9(0x258)]['t'](_0x3908d9(0x268)),'type':_0x14e98f[_0x3908d9(0x1d5)][_0x3908d9(0x1a3)],'duration':0x1388});const {unitId:_0x331c5c}=_0x2e4f32[_0x3908d9(0x1c0)],_0x3cd5e4=this[_0x3908d9(0x1fe)][_0x3908d9(0x1dc)](_0x331c5c),_0x1db126=_0x5f12f9[_0x3908d9(0x247)]([_0x3cd5e4[_0x3908d9(0x1aa)]['event$'],_0x3cd5e4[_0x3908d9(0x244)]])[_0x3908d9(0x2b1)](async([_0x3ef9cf,_0x13979f])=>{var _0x4ce25c=_0x3908d9;_0x3ef9cf[_0x4ce25c(0x20b)]===_0x355088[_0x4ce25c(0x21e)][_0x4ce25c(0x266)]&&(_0x13979f==null?void 0x0:_0x13979f[_0x4ce25c(0x1f6)])===_0x58430e['CollaborationStatus'][_0x4ce25c(0x1fa)]&&_0x3ef9cf['data'][_0x4ce25c(0x284)][_0x4ce25c(0x1de)](_0x33b919=>_0x33b919['id']===_0x355088['RevertRevisionMutation']['id'])&&(this[_0x4ce25c(0x1a4)]['unMountHistoryContent'](),_0x1db126[_0x4ce25c(0x1ec)](),this[_0x4ce25c(0x2b4)]&&clearTimeout(this[_0x4ce25c(0x2b4)]),await this[_0x4ce25c(0x2ad)][_0x4ce25c(0x1c7)](),setTimeout(()=>window[_0x4ce25c(0x243)][_0x4ce25c(0x1d1)]()));});this[_0x3908d9(0x2b4)]=setTimeout(()=>{var _0x222b49=_0x3908d9;_0x1db126[_0x222b49(0x1ec)](),this['_messageService'][_0x222b49(0x1a7)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':_0x14e98f['MessageType']['Error'],'duration':0xbb8});},0x1388);}}));}};_0xcfdc8a=_0x11167a([_0x106d93[_0x11567d(0x236)](_0x106d93['LifecycleStages'][_0x11567d(0x28a)],_0xcfdc8a),_0x531a93(0x0,_0x106d93[_0x11567d(0x26f)]),_0x531a93(0x1,_0x5a3703[_0x11567d(0x29e)]),_0x531a93(0x2,_0x106d93['Inject'](_0x5a3703['ComponentManager'])),_0x531a93(0x3,_0x106d93[_0x11567d(0x292)](_0x1833ae['HistoryLoaderService'])),_0x531a93(0x4,_0x106d93[_0x11567d(0x292)](_0x106d93[_0x11567d(0x25e)])),_0x531a93(0x5,_0x5a3703[_0x11567d(0x287)]),_0x531a93(0x6,_0x106d93[_0x11567d(0x292)](_0x58430e[_0x11567d(0x28d)])),_0x531a93(0x7,_0x106d93[_0x11567d(0x292)](_0x58430e[_0x11567d(0x1cb)]))],_0xcfdc8a);const _0x350370='edit-history-loader.config',_0xb9a15f={};var _0x45f353=Object[_0x11567d(0x1d0)],_0x2798c8=Object['getOwnPropertyDescriptor'],_0x540037=(_0x52678b,_0x506c6a,_0x122281,_0x2bbaa6)=>{for(var _0x1d1a1d=_0x2bbaa6>0x1?void 0x0:_0x2bbaa6?_0x2798c8(_0x506c6a,_0x122281):_0x506c6a,_0x255a71=_0x52678b['length']-0x1,_0x2db382;_0x255a71>=0x0;_0x255a71--)(_0x2db382=_0x52678b[_0x255a71])&&(_0x1d1a1d=(_0x2bbaa6?_0x2db382(_0x506c6a,_0x122281,_0x1d1a1d):_0x2db382(_0x1d1a1d))||_0x1d1a1d);return _0x2bbaa6&&_0x1d1a1d&&_0x45f353(_0x506c6a,_0x122281,_0x1d1a1d),_0x1d1a1d;},_0x2ae9f2=(_0x4abb2e,_0x3f0af4)=>(_0xbac199,_0x23beca)=>_0x3f0af4(_0xbac199,_0x23beca,_0x4abb2e);const _0x1012b5='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';_0x1833ae['UniverEditHistoryLoaderPlugin']=(_0x5b7285=class extends _0x106d93[_0x11567d(0x21f)]{constructor(_0x2a8042=_0xb9a15f,_0x39e09c,_0x3bda4e){var _0x18e4fc=_0x11567d;super(),this[_0x18e4fc(0x1b7)]=_0x2a8042,this[_0x18e4fc(0x24e)]=_0x39e09c,this[_0x18e4fc(0x24c)]=_0x3bda4e;const {menu:_0x8d5344,..._0x4225c6}=this['_config'];_0x8d5344&&this[_0x18e4fc(0x24c)][_0x18e4fc(0x1eb)](_0x18e4fc(0x1ca),_0x8d5344,{'merge':!0x0}),this[_0x18e4fc(0x24c)][_0x18e4fc(0x1eb)](_0x350370,_0x4225c6),this[_0x18e4fc(0x1b7)][_0x18e4fc(0x201)]&&this[_0x18e4fc(0x24c)]['setConfig'](_0x2acb93,this[_0x18e4fc(0x1b7)][_0x18e4fc(0x201)]);}[_0x11567d(0x298)](){var _0x1fde4a=_0x11567d;[[_0x1833ae[_0x1fde4a(0x286)]],[_0xcfdc8a]]['forEach'](_0x5751c9=>this['_injector']['add'](_0x5751c9));}},_0x1f6653(_0x5b7285,_0x11567d(0x1a8),_0x106d93[_0x11567d(0x2a7)]['UNIVER_UNKNOWN']),_0x1f6653(_0x5b7285,_0x11567d(0x238),_0x1012b5),_0x5b7285),_0x1833ae[_0x11567d(0x1f4)]=_0x540037([_0x2ae9f2(0x1,_0x106d93[_0x11567d(0x292)](_0x106d93[_0x11567d(0x1ba)])),_0x2ae9f2(0x2,_0x106d93[_0x11567d(0x263)])],_0x1833ae[_0x11567d(0x1f4)]),_0x1833ae[_0x11567d(0x1ef)]=_0x2acb93,_0x1833ae[_0x11567d(0x294)]=_0x53683a,Object['defineProperty'](_0x1833ae,Symbol[_0x11567d(0x1d4)],{'value':_0x11567d(0x1a5)});}));function _0x2f49(){var _0x4e3f96=['xlink:href','params','createElement','getMenuHiddenObservable','getSubunitRuleList','292040MZPhPa','className','@univerjs/drawing-ui','exhaustSavingTask','UniverSheetsHyperLinkPlugin','react','menu','LocalCacheService','_historyUniver','none','_initPlugins','_init','defineProperty','reload','@univerjs/sheets-data-validation','_messageService','toStringTag','MessageType','setLocale','UniverDocsUIPlugin','@univerjs/design','clear','@univerjs/docs','value','getCollabEntity','UniverSheetsPivot','some','RxDisposable','getOwnPropertySymbols','univer-container','greenTheme','forwardRef','1000','DisposableCollection','@univerjs-pro/edit-history-viewer','call','icon','defs','getLocales','setConfig','unsubscribe','close','UniverSheetsDrawing','UNIVER_CONTAINER_ID_KEY','attrs','dispose','register','symbol','UniverEditHistoryLoaderPlugin','getAllPlugins','status','width','_univerInstanceService','colorChannel1','SYNCED','permissionId','32520kCOkyC','UniverCollaborationPlugin','_collaborationController','1em','propertyIsEnumerable','univerContainerId','@univerjs/sheets-drawing','@univerjs-pro/collaboration','WorkbookViewHistoryPermission','WorkbookRecoverHistoryPermission','display','@univerjs/sheets-conditional-formatting','@univerjs/sheets-hyper-link-ui','RevertRevisionMutation','[HistoryLoaderService]:\x20Plugin\x20','eventID','UniverSheetsFormulaPlugin','UniverCollaboration','_commandService','HistorySingle','_checkCanRevert','@univerjs/sheets-hyper-link','_componentManager','UniverSheetsHyperLink','@univerjs/sheets-formula','React','UniverEngineFormula','375603JGmGme','prototype','UniverEditHistoryViewer','UNIVER_CONTAINER_ID','UniverDrawing','apply','WorkbookEditablePermission','CollaborationEvent','Plugin','rxjs','403068FUvWBu','Disposable','registerCommand','@univerjs/ui','triggerLoadVersions','IAuthzIoService','UniverDesign','assign','UniverSheetsFormula','M0\x200H16V16H0z','random','@univerjs-pro/collaboration-client','url(#history-single_clip0_907_281)','children','UniverSheetsNumfmt','status$','unMountHistoryContent','1ufCKcI','concat','getConfig','#fff','OnLifecycle','UniverDrawingUIPlugin','pluginName','@univerjs/sheets-conditional-formatting-ui','left','@univerjs/core','__getInjector','block','@univerjs/engine-render','getOwnPropertyDescriptor','_sidebarService','absolute','entries','location','state$','UniverFormulaEnginePlugin','indexOf','combineLatest','forEach','1480ZLnlkY','UniverDataValidationPlugin','_disposableCollection','_configService','1197MGzwJk','_injector','toString','replace','IUniverInstanceService','height','getElementById','UniverUIPlugin','hasOwnProperty','values','UniverSheetsPlugin','_localeService','has','add','UniverSheetsUIPlugin','UniverSheetsDataValidationPlugin','displayName','LocaleService','HistoryManagerService','from','path','defIds','IConfigService','IPermissionService','_initMessageService','CHANGESET_ACK','getContainer','editHistory.panel.reverting','UniverUi','UniverSheetsDataValidation','@univerjs/rpc','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','useRef','length','ICommandService','top','_initUniver','clipPath','toDisposable','exports','fill','UniverSheetsConditionalFormattingPlugin','mergeMenu','RibbonStartGroup','UniverCollaborationClient','@univerjs/sheets-ui','setContainer','IImageIoService','UniverSheetsConditionalFormatting','substring','OPERATION','getUnit','composePermission','zIndex','@univerjs/data-validation','mutations','closeAll','HistoryLoaderService','IMessageService','url(#$1','every','Steady','100%','UniverSheetsDrawingPlugin','CollaborationController','function','_menuManagerService','current','@univerjs/sheets-filter','Inject','906436MhIeon','UNIVER_HISTORY_CONTAINER_ID','UniverEditHistoryViewerPlugin','position','invoke','onStarting','216cXAMSm','UniverSheetsUi','@univerjs/drawing','913591RaGklR','disposeWithMe','IMenuManagerService','UniverEditHistoryLoader','onCommandExecuted','get','IDialogService','getCurrentLocale','UniverDocs','@univerjs/sheets-filter-ui','_selectionProtectionRuleModel','UniverInstanceType','map','div','amd','LifecycleStages','string','_localCacheService','trim','tag','HistoryModeStatus','subscribe','registerPlugin','object','_revertErrorTimer','mountHistoryContent','idSuffix','editHistory.panel.listFetchError','style','_dialogService','history-single_clip0_907_281','@univerjs/engine-formula','@univerjs/sheets','revertRevision$','Loading','_historyManagerService','Module','_pluginMap','show','type','WorksheetEditPermission','session','@univerjs-pro/sheets-pivot','@univerjs/docs-ui','UniverRpc','getSheets','UniverIcon','_initListener','UniverRenderEnginePlugin','use','univerjs-icon\x20univerjs-icon-','set','_initContainer','UniverDrawingUi','_config','Error','extend','Injector','ISidebarService','Entered','_permissionService','UniverSheetsDrawingUIPlugin'];_0x2f49=function(){return _0x4e3f96;};return _0x2f49();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -48,65 +48,65 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
|
|
50
50
|
"rxjs": ">=7.0.0",
|
|
51
|
-
"@univerjs-pro/collaboration": "0.2.
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/
|
|
59
|
-
"@univerjs/
|
|
60
|
-
"@univerjs/drawing-ui": "0.2.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/engine-formula": "0.2.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/sheets-
|
|
67
|
-
"@univerjs/sheets": "0.2.
|
|
68
|
-
"@univerjs/sheets-
|
|
69
|
-
"@univerjs/sheets-
|
|
70
|
-
"@univerjs/sheets-drawing-ui": "0.2.
|
|
71
|
-
"@univerjs/sheets-filter": "0.2.
|
|
72
|
-
"@univerjs/sheets-
|
|
73
|
-
"@univerjs/sheets-
|
|
74
|
-
"@univerjs/sheets-hyper-link": "0.2.
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/
|
|
51
|
+
"@univerjs-pro/collaboration": "0.2.14",
|
|
52
|
+
"@univerjs-pro/sheets-pivot": "0.2.14",
|
|
53
|
+
"@univerjs-pro/collaboration-client": "0.2.14",
|
|
54
|
+
"@univerjs-pro/edit-history-viewer": "0.2.14",
|
|
55
|
+
"@univerjs/core": "0.2.14",
|
|
56
|
+
"@univerjs/design": "0.2.14",
|
|
57
|
+
"@univerjs/docs": "0.2.14",
|
|
58
|
+
"@univerjs/docs-ui": "0.2.14",
|
|
59
|
+
"@univerjs/data-validation": "0.2.14",
|
|
60
|
+
"@univerjs/drawing-ui": "0.2.14",
|
|
61
|
+
"@univerjs/drawing": "0.2.14",
|
|
62
|
+
"@univerjs/engine-formula": "0.2.14",
|
|
63
|
+
"@univerjs/rpc": "0.2.14",
|
|
64
|
+
"@univerjs/engine-render": "0.2.14",
|
|
65
|
+
"@univerjs/sheets": "0.2.14",
|
|
66
|
+
"@univerjs/sheets-drawing": "0.2.14",
|
|
67
|
+
"@univerjs/sheets-data-validation": "0.2.14",
|
|
68
|
+
"@univerjs/sheets-conditional-formatting": "0.2.14",
|
|
69
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.2.14",
|
|
70
|
+
"@univerjs/sheets-drawing-ui": "0.2.14",
|
|
71
|
+
"@univerjs/sheets-filter-ui": "0.2.14",
|
|
72
|
+
"@univerjs/sheets-formula": "0.2.14",
|
|
73
|
+
"@univerjs/sheets-hyper-link": "0.2.14",
|
|
74
|
+
"@univerjs/sheets-hyper-link-ui": "0.2.14",
|
|
75
|
+
"@univerjs/sheets-ui": "0.2.14",
|
|
76
|
+
"@univerjs/ui": "0.2.14",
|
|
77
|
+
"@univerjs/sheets-filter": "0.2.14",
|
|
78
|
+
"@univerjs/sheets-numfmt": "0.2.14"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@univerjs/icons": "^0.1.78",
|
|
82
|
-
"@univerjs-pro/collaboration
|
|
83
|
-
"@univerjs-pro/
|
|
84
|
-
"@univerjs-pro/
|
|
85
|
-
"@univerjs/
|
|
86
|
-
"@univerjs/
|
|
87
|
-
"@univerjs/
|
|
88
|
-
"@univerjs/
|
|
89
|
-
"@univerjs/docs
|
|
90
|
-
"@univerjs/
|
|
91
|
-
"@univerjs/drawing": "0.2.
|
|
82
|
+
"@univerjs-pro/collaboration": "0.2.14",
|
|
83
|
+
"@univerjs-pro/edit-history-viewer": "0.2.14",
|
|
84
|
+
"@univerjs-pro/collaboration-client": "0.2.14",
|
|
85
|
+
"@univerjs/design": "0.2.14",
|
|
86
|
+
"@univerjs/data-validation": "0.2.14",
|
|
87
|
+
"@univerjs/drawing": "0.2.14",
|
|
88
|
+
"@univerjs/docs-ui": "0.2.14",
|
|
89
|
+
"@univerjs/docs": "0.2.14",
|
|
90
|
+
"@univerjs/core": "0.2.14",
|
|
91
|
+
"@univerjs/drawing-ui": "0.2.14",
|
|
92
|
+
"@univerjs/engine-formula": "0.2.14",
|
|
92
93
|
"@univerjs/protocol": "0.1.39-alpha.15",
|
|
93
|
-
"@univerjs/
|
|
94
|
-
"@univerjs/
|
|
95
|
-
"@univerjs/sheets": "0.2.
|
|
96
|
-
"@univerjs/
|
|
97
|
-
"@univerjs/sheets
|
|
98
|
-
"@univerjs/sheets-data-validation": "0.2.
|
|
99
|
-
"@univerjs/sheets-drawing": "0.2.
|
|
100
|
-
"@univerjs/sheets-
|
|
101
|
-
"@univerjs/sheets-
|
|
102
|
-
"@univerjs/sheets-
|
|
103
|
-
"@univerjs/sheets-
|
|
104
|
-
"@univerjs/sheets-
|
|
105
|
-
"@univerjs/sheets-
|
|
106
|
-
"@univerjs/sheets-
|
|
107
|
-
"@univerjs/sheets-
|
|
108
|
-
"@univerjs/ui": "0.2.
|
|
109
|
-
"@univerjs/sheets-ui": "0.2.13"
|
|
94
|
+
"@univerjs/rpc": "0.2.14",
|
|
95
|
+
"@univerjs/engine-render": "0.2.14",
|
|
96
|
+
"@univerjs/sheets-conditional-formatting": "0.2.14",
|
|
97
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.2.14",
|
|
98
|
+
"@univerjs/sheets": "0.2.14",
|
|
99
|
+
"@univerjs/sheets-data-validation": "0.2.14",
|
|
100
|
+
"@univerjs/sheets-drawing": "0.2.14",
|
|
101
|
+
"@univerjs/sheets-drawing-ui": "0.2.14",
|
|
102
|
+
"@univerjs/sheets-formula": "0.2.14",
|
|
103
|
+
"@univerjs/sheets-filter": "0.2.14",
|
|
104
|
+
"@univerjs/sheets-filter-ui": "0.2.14",
|
|
105
|
+
"@univerjs/sheets-hyper-link-ui": "0.2.14",
|
|
106
|
+
"@univerjs/sheets-hyper-link": "0.2.14",
|
|
107
|
+
"@univerjs/sheets-numfmt": "0.2.14",
|
|
108
|
+
"@univerjs/sheets-ui": "0.2.14",
|
|
109
|
+
"@univerjs/ui": "0.2.14"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@types/react": "^18.3.5",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"typescript": "^5.6.2",
|
|
116
116
|
"vite": "^5.4.3",
|
|
117
117
|
"vitest": "^2.0.5",
|
|
118
|
-
"@univerjs-infra/shared": "0.2.
|
|
118
|
+
"@univerjs-infra/shared": "0.2.14"
|
|
119
119
|
},
|
|
120
120
|
"univerSpace": {
|
|
121
121
|
".": {
|