@univerjs-pro/sheets-history-ui 1.0.2 → 1.0.4
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/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/loader/commands/history.operate.d.ts +3 -0
- package/lib/types/loader/controllers/history-loader.controller.d.ts +26 -0
- package/lib/types/loader/controllers/history-menu.d.ts +4 -0
- package/lib/types/loader/controllers/mobile-history-loader.controller.d.ts +26 -0
- package/lib/types/loader/controllers/revert-acknowledgement.d.ts +3 -0
- package/lib/types/loader/menu/schema.d.ts +2 -0
- package/lib/types/loader/mobile-plugin.d.ts +14 -0
- package/lib/types/loader/plugin.d.ts +14 -0
- package/lib/types/loader/services/history-loader.service.d.ts +39 -0
- package/lib/types/loader/services/history-locale.d.ts +5 -0
- package/lib/types/loader/services/history-version-param.d.ts +3 -0
- package/lib/types/loader/services/mobile-history-loader.service.d.ts +38 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +44 -44
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x31d253=_0x4c20;(function(_0x2cd3cd,_0x40b259){const _0x59697c=_0x4c20,_0x1b4dca=_0x2cd3cd();while(!![]){try{const _0x5dd17b=-parseInt(_0x59697c(0x452))/0x1+parseInt(_0x59697c(0x521))/0x2+-parseInt(_0x59697c(0x25e))/0x3+-parseInt(_0x59697c(0x1a0))/0x4+parseInt(_0x59697c(0x1ff))/0x5*(parseInt(_0x59697c(0x3f3))/0x6)+parseInt(_0x59697c(0x1e7))/0x7*(-parseInt(_0x59697c(0x34f))/0x8)+-parseInt(_0x59697c(0x4d0))/0x9*(-parseInt(_0x59697c(0x48a))/0xa);if(_0x5dd17b===_0x40b259)break;else _0x1b4dca['push'](_0x1b4dca['shift']());}catch(_0x155100){_0x1b4dca['push'](_0x1b4dca['shift']());}}}(_0xa753,0x2cf8f),Object[_0x31d253(0x478)](exports,Symbol[_0x31d253(0x3bd)],{'value':_0x31d253(0x4af)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('@univerjs-pro/collaboration'),r=require('@univerjs-pro/collaboration-client'),i=require('@univerjs-pro/engine-formula'),a=require('@univerjs-pro/license'),o=require('@univerjs-pro/sheets-chart'),s=require('@univerjs-pro/sheets-chart-ui'),c=require('@univerjs-pro/sheets-pivot'),l=require('@univerjs-pro/sheets-shape'),u=require('@univerjs-pro/sheets-shape-ui'),d=require('@univerjs-pro/sheets-sparkline'),f=require('@univerjs-pro/sheets-sparkline-ui'),p=require('@univerjs/data-validation'),m=require('@univerjs/design'),h=require('@univerjs/docs'),g=require('@univerjs/docs-ui'),_=require('@univerjs/drawing'),v=require('@univerjs/drawing-ui'),y=require('@univerjs/engine-render'),b=require('@univerjs/network'),x=require('@univerjs/rpc'),S=require('@univerjs/sheets-conditional-formatting'),C=require('@univerjs/sheets-conditional-formatting-ui'),w=require('@univerjs/sheets-data-validation'),T=require('@univerjs/sheets-data-validation-ui'),E=require('@univerjs/sheets-drawing'),D=require('@univerjs/sheets-drawing-ui'),O=require('@univerjs/sheets-filter'),k=require('@univerjs/sheets-filter-ui'),A=require('@univerjs/sheets-formula'),ee=require('@univerjs/sheets-formula-ui'),te=require('@univerjs/sheets-hyper-link'),ne=require('@univerjs/sheets-hyper-link-ui'),re=require('@univerjs/sheets-numfmt'),j=require('@univerjs/sheets-table'),M=require('@univerjs/sheets-ui'),N=require('@univerjs/ui'),P=require('rxjs'),F=require('@univerjs/icons'),I=require('react'),L=require('@univerjs/protocol'),R=require('react/jsx-runtime'),z=require('@univerjs-pro/collaboration-client-ui'),ie=require('@univerjs-pro/sheets-history');const B='sheets-history-ui.config',ae='history-panel',V={'historyPanelComponentKey':ae};function oe(_0x44b93d){return(_0x44b93d==null?void 0x0:_0x44b93d['historyServerUrl'])??'/universer-api/history';}var se='@univerjs-pro/sheets-history-ui',ce=_0x31d253(0x33c);function le(_0x584a4f){'@babel/helpers - typeof';const _0x197153=_0x31d253;return le=typeof Symbol==_0x197153(0x2ff)&&typeof Symbol[_0x197153(0x3e7)]==_0x197153(0x36d)?function(_0x52b80f){return typeof _0x52b80f;}:function(_0x4fcc66){const _0x3db684=_0x197153;return _0x4fcc66&&typeof Symbol==_0x3db684(0x2ff)&&_0x4fcc66[_0x3db684(0x530)]===Symbol&&_0x4fcc66!==Symbol[_0x3db684(0x32f)]?_0x3db684(0x36d):typeof _0x4fcc66;},le(_0x584a4f);}function ue(_0x4981b3,_0x560155){const _0x177a19=_0x31d253;if(le(_0x4981b3)!=_0x177a19(0x4f2)||!_0x4981b3)return _0x4981b3;var _0x524626=_0x4981b3[Symbol[_0x177a19(0x539)]];if(_0x524626!==void 0x0){var _0x5de4c7=_0x524626[_0x177a19(0x291)](_0x4981b3,_0x560155||_0x177a19(0x1bf));if(le(_0x5de4c7)!=_0x177a19(0x4f2))return _0x5de4c7;throw TypeError(_0x177a19(0x303));}return(_0x560155===_0x177a19(0x1af)?String:Number)(_0x4981b3);}function de(_0x15ed7c){const _0x49a4f3=_0x31d253;var _0x34bbc8=ue(_0x15ed7c,_0x49a4f3(0x1af));return le(_0x34bbc8)=='symbol'?_0x34bbc8:_0x34bbc8+'';}function H(_0x35acc7,_0x140682,_0x487477){const _0xa7631d=_0x31d253;return(_0x140682=de(_0x140682))in _0x35acc7?Object[_0xa7631d(0x478)](_0x35acc7,_0x140682,{'value':_0x487477,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35acc7[_0x140682]=_0x487477,_0x35acc7;}function U(_0x483758,_0x1aa059){return function(_0x257508,_0x209afb){_0x1aa059(_0x257508,_0x209afb,_0x483758);};}function W(_0x5ba694,_0x29e852,_0x457b39,_0x39892a){const _0x5a036e=_0x31d253;var _0x23536d=arguments[_0x5a036e(0x4f5)],_0x3d7604=_0x23536d<0x3?_0x29e852:_0x39892a===null?_0x39892a=Object[_0x5a036e(0x442)](_0x29e852,_0x457b39):_0x39892a,_0x242f82;if(typeof Reflect==_0x5a036e(0x4f2)&&typeof Reflect[_0x5a036e(0x55c)]=='function')_0x3d7604=Reflect[_0x5a036e(0x55c)](_0x5ba694,_0x29e852,_0x457b39,_0x39892a);else{for(var _0x226564=_0x5ba694[_0x5a036e(0x4f5)]-0x1;_0x226564>=0x0;_0x226564--)(_0x242f82=_0x5ba694[_0x226564])&&(_0x3d7604=(_0x23536d<0x3?_0x242f82(_0x3d7604):_0x23536d>0x3?_0x242f82(_0x29e852,_0x457b39,_0x3d7604):_0x242f82(_0x29e852,_0x457b39))||_0x3d7604);}return _0x23536d>0x3&&_0x3d7604&&Object[_0x5a036e(0x478)](_0x29e852,_0x457b39,_0x3d7604),_0x3d7604;}let G=class extends e[_0x31d253(0x352)]{constructor(_0x3752e2,_0x42bfba,_0x24c0cd,_0xf99d67,_0x1d3c41,_0x45ed23,_0x30fe74,_0x5080b9,_0x48b719){const _0x1f94fd=_0x31d253;super(),this[_0x1f94fd(0x4e5)]=_0x3752e2,this[_0x1f94fd(0x4c8)]=_0x42bfba,this[_0x1f94fd(0x4ef)]=_0x24c0cd,this[_0x1f94fd(0x451)]=_0xf99d67,this['_drawingManagerService']=_0x1d3c41,this[_0x1f94fd(0x3c1)]=_0x45ed23,this['_httpService']=_0x30fe74,this[_0x1f94fd(0x369)]=_0x5080b9,this[_0x1f94fd(0x32c)]=_0x48b719,H(this,_0x1f94fd(0x532),void 0x0),this[_0x1f94fd(0x532)]=new e['LRUMap'](0x3c);}['dispose'](){const _0x3afd84=_0x31d253;this[_0x3afd84(0x532)][_0x3afd84(0x2e5)](),super[_0x3afd84(0x33a)]();}async[_0x31d253(0x441)](_0x25b541){const _0x456429=_0x31d253;try{let _0x46fefa=(await this['_httpService'][_0x456429(0x361)](this['_getAPIPrefix']()+'/'+_0x25b541+_0x456429(0x493)))[_0x456429(0x4c9)];if(_0x46fefa&&_0x46fefa[_0x456429(0x3c6)]&&_0x46fefa[_0x456429(0x3c6)]['code']===L[_0x456429(0x47e)]['OK'])return _0x46fefa['creators']??[];}catch(_0x5bdbdb){console['error'](_0x5bdbdb);}return[];}async[_0x31d253(0x3c9)](_0x2f3f28,_0x295099){const _0xacf209=_0x31d253;let {userIds:_0x16089a,lastLabel:_0x8096e9,origin:_0x3ef835}=_0x295099??{},_0x481c85=new URLSearchParams();_0x481c85[_0xacf209(0x3b5)]('length','20'),_0x8096e9&&_0x481c85[_0xacf209(0x3b5)](_0xacf209(0x312),_0x8096e9),_0x16089a==null||_0x16089a[_0xacf209(0x345)](_0x460001=>{const _0x273792=_0xacf209;_0x481c85[_0x273792(0x4f7)](_0x273792(0x32e),_0x460001);}),_0x3ef835&&_0x481c85[_0xacf209(0x3b5)]('origin',_0x3ef835[_0xacf209(0x3e0)]());let _0x508c1c=this[_0xacf209(0x1a4)]()+'/'+_0x2f3f28+_0xacf209(0x27f)+_0x481c85['toString']();try{let _0x5f091f=(await this[_0xacf209(0x3a3)][_0xacf209(0x361)](_0x508c1c))[_0xacf209(0x4c9)];if(_0x5f091f&&_0x5f091f[_0xacf209(0x3c6)]&&_0x5f091f[_0xacf209(0x3c6)]['code']===L['ErrorCode']['OK']){let {hasMore:_0x3d84b1,lastLabel:_0x5f42cf}=_0x5f091f;return{'hasMore':_0x3d84b1,'lastLabel':_0x5f42cf,'versions':pe(_0x5f091f),'members':_0x5f091f[_0xacf209(0x4c6)][_0xacf209(0x2e8)]};}}catch(_0x267d91){console[_0xacf209(0x3c6)](_0x267d91);}return null;}async[_0x31d253(0x1b7)](_0x5b97ba,_0x4a7fed){const _0x24e82b=_0x31d253;let {unitId:_0x378a7e,startRevision:_0x2ec493,endRevision:_0x32cde1}=_0x4a7fed,_0x29a349=this['_getAPIPrefix']()+'/'+_0x378a7e+'/cs?startRevision='+_0x2ec493+_0x24e82b(0x3d5)+_0x32cde1;return(await this['_httpService']['get'](_0x29a349))[_0x24e82b(0x4c9)];}[_0x31d253(0x1a4)](){const _0x3e33e0=_0x31d253;return oe(this[_0x3e33e0(0x3c1)]['getConfig'](B));}[_0x31d253(0x1c3)](_0x555b5d,_0x5420ca){return _0x555b5d+':'+_0x5420ca;}async[_0x31d253(0x37c)](_0x159224,_0x290aa0,_0x18a309={}){const _0x30202f=_0x31d253;let _0x539174=this[_0x30202f(0x1c3)](_0x159224,_0x290aa0),_0x2bd6ae=this[_0x30202f(0x532)]['get'](_0x539174);if(_0x2bd6ae){let {workbookData:_0x42785e,changesets:_0x4a1799}=_0x2bd6ae;return await this[_0x30202f(0x309)](_0x42785e,_0x4a1799),!0x0;}let {snapshot:_0x5a3101,changesets:_0x1c44b2,error:_0x35e7cf}=await this['_snapshotServerService'][_0x30202f(0x1ea)](_0x18a309,{'unitID':_0x159224,'type':e['UniverInstanceType'][_0x30202f(0x379)],'revision':_0x290aa0});if((0x0,L[_0x30202f(0x20d)])(_0x35e7cf)||!_0x5a3101||!_0x5a3101[_0x30202f(0x37f)])throw Error(_0x30202f(0x4a3));let _0x13516d=(_0x1c44b2==null?void 0x0:_0x1c44b2[_0x30202f(0x4f5)])??0x0;if(_0x290aa0!==0x0&&_0x5a3101['rev']+_0x13516d!==_0x290aa0)throw Error(_0x30202f(0x245));let {workbook:_0x447ba0}=_0x5a3101,_0x1f9ac1=_0x447ba0[_0x30202f(0x375)]?Object[_0x30202f(0x389)](_0x447ba0[_0x30202f(0x375)])['flatMap'](_0x2abaa1=>_0x2abaa1[_0x30202f(0x44b)]??[]):[],_0x5c503=(await Promise['all'](_0x1f9ac1[_0x30202f(0x403)](_0x18c66e=>this[_0x30202f(0x4e5)][_0x30202f(0x240)](_0x18a309,{'unitID':_0x159224,'type':e[_0x30202f(0x1d2)][_0x30202f(0x379)],'blockID':_0x18c66e})[_0x30202f(0x4e2)](_0x264b06=>_0x264b06[_0x30202f(0x374)]))))[_0x30202f(0x350)](Boolean),_0x5199bf=await(0x0,n[_0x30202f(0x1ba)])(_0x5a3101,_0x5c503,_0x18a309);return this[_0x30202f(0x532)][_0x30202f(0x3b5)](_0x539174,{'workbookData':_0x5199bf,'changesets':_0x1c44b2}),await this['_applyWorkbookData'](_0x5199bf,_0x1c44b2),!0x0;}async[_0x31d253(0x309)](_0x330667,_0x1c8c1b){const _0x184f49=_0x31d253;let _0x40f5a8=this[_0x184f49(0x4c8)][_0x184f49(0x33f)](e['UniverInstanceType'][_0x184f49(0x379)]);_0x40f5a8&&(this['_univerInstanceService']['disposeUnit'](_0x40f5a8['getUnitId']()),await Promise['resolve']());let _0x193e6b=JSON['parse'](JSON[_0x184f49(0x297)](_0x330667));this['_drawingManagerService']['setDrawingEditable'](!0x1);let _0x2675e9=this[_0x184f49(0x2ed)](_0x193e6b,_0x1c8c1b);fe(this[_0x184f49(0x451)],this[_0x184f49(0x30a)],_0x2675e9),this[_0x184f49(0x32c)]['refreshRangeProtectPermission']();}['_createUnit'](_0x69c3d3,_0xf1a514){const _0x22d636=_0x31d253;let _0x277fdf=this[_0x22d636(0x4c8)][_0x22d636(0x4cf)](e['UniverInstanceType'][_0x22d636(0x379)],_0x69c3d3);this[_0x22d636(0x4c8)][_0x22d636(0x32d)](_0x277fdf[_0x22d636(0x25d)]());let _0x23e9bc=this[_0x22d636(0x369)][_0x22d636(0x24c)][_0x22d636(0x29f)](this[_0x22d636(0x369)]['interceptor'][_0x22d636(0x40c)]()[_0x22d636(0x1c7)]);return _0xf1a514==null||_0xf1a514[_0x22d636(0x345)](_0x49994c=>{const _0x2965fe=_0x22d636;let _0x34f3bc=_0x49994c[_0x2965fe(0x2f3)]['map'](_0x24d583=>({'id':_0x24d583['id'],'params':JSON[_0x2965fe(0x27e)](_0x24d583['data'])}));(_0x23e9bc(_0x34f3bc,null)||_0x34f3bc)[_0x2965fe(0x345)](_0x190049=>{const _0x1591ff=_0x2965fe;this['_commandService'][_0x1591ff(0x504)](_0x190049['id'])&&this[_0x1591ff(0x4ef)][_0x1591ff(0x382)](_0x190049['id'],_0x190049[_0x1591ff(0x400)],{'fromChangeset':!0x0});});}),_0x277fdf;}};G=W([U(0x0,n[_0x31d253(0x209)]),U(0x1,e[_0x31d253(0x1f7)]),U(0x2,e[_0x31d253(0x43b)]),U(0x3,e[_0x31d253(0x2b9)]),U(0x4,_[_0x31d253(0x1dc)]),U(0x5,e[_0x31d253(0x285)]),U(0x6,(0x0,e[_0x31d253(0x570)])(b[_0x31d253(0x2a0)])),U(0x7,(0x0,e[_0x31d253(0x570)])(n[_0x31d253(0x51f)])),U(0x8,(0x0,e[_0x31d253(0x570)])(t[_0x31d253(0x19d)]))],G);function fe(_0x303c6b,_0x35bc01,_0x20d7c5){const _0x24a028=_0x31d253;let _0x5ce68d=_0x20d7c5[_0x24a028(0x25d)]();_0x35bc01[_0x24a028(0x29d)](!0x1),_0x303c6b[_0x24a028(0x269)](new t[(_0x24a028(0x56e))](_0x5ce68d)['id'],!0x1),_0x20d7c5[_0x24a028(0x328)]()[_0x24a028(0x345)](_0x37484f=>{const _0x102f1a=_0x24a028;_0x303c6b[_0x102f1a(0x269)](new t[(_0x102f1a(0x299))](_0x5ce68d,_0x37484f[_0x102f1a(0x271)]())['id'],!0x1);});}function pe(_0x3e3a8f){const _0x5d7bb8=_0x31d253;let _0x51e58a=[],{entities:_0x339fd6,historyIds:_0x5492dd}=_0x3e3a8f,{datas:_0x2055a0,users:_0x309740}=_0x339fd6;for(let _0x17f520 of _0x5492dd){let _0x44cbcb=_0x2055a0[_0x17f520];if(_0x44cbcb){var _0x8d157f,_0x5a9dbb;let _0x3dc094=!!((_0x8d157f=_0x309740[_0x44cbcb['userId']])!=null&&_0x8d157f[_0x5d7bb8(0x458)]);_0x51e58a['push']({'unitId':_0x44cbcb['unitId'],'user':_0x3dc094?'':(_0x309740==null||(_0x5a9dbb=_0x309740[_0x44cbcb['userId']])==null?void 0x0:_0x5a9dbb[_0x5d7bb8(0x56d)])||'','users':_0x44cbcb[_0x5d7bb8(0x32e)][_0x5d7bb8(0x403)](_0x168267=>{const _0x56350d=_0x5d7bb8;var _0x30fec4;return(_0x309740==null||(_0x30fec4=_0x309740[_0x168267])==null?void 0x0:_0x30fec4[_0x56350d(0x56d)])||'';})['filter'](_0x44d363=>_0x44d363),'isAnonymous':_0x3dc094,'id':_0x17f520,'time':_0x44cbcb[_0x5d7bb8(0x4f0)]?Number(_0x44cbcb['createTime']):void 0x0,'commands':_0x44cbcb['command'],'startRev':Number(_0x44cbcb[_0x5d7bb8(0x41c)]),'endRev':Number(_0x44cbcb['endRevision']),'recoverTime':_0x44cbcb[_0x5d7bb8(0x2c0)]?Number(_0x44cbcb[_0x5d7bb8(0x2c0)]):void 0x0,'additionalFields':_0x44cbcb[_0x5d7bb8(0x327)],'startRevCreateTime':_0x44cbcb[_0x5d7bb8(0x448)]?Number(_0x44cbcb['startRevCreateTime']):void 0x0,'endRevCreateTime':_0x44cbcb[_0x5d7bb8(0x48b)]?Number(_0x44cbcb[_0x5d7bb8(0x48b)]):void 0x0});}}return _0x51e58a;}function me(_0x4865b0=_0x31d253(0x2ba)){const _0x335a40=_0x31d253;return{'collaboration':[{'id':n[_0x335a40(0x381)]['id'],'action':_0x4865b0+'createSheet'},{'id':n[_0x335a40(0x276)]['id'],'action':_0x4865b0+_0x335a40(0x4d8)}],'sheets':[{'id':t[_0x335a40(0x502)]['id'],'action':_0x4865b0+'insertSheet'},{'id':t[_0x335a40(0x220)]['id'],'action':_0x4865b0+'removeSheet'},{'id':t[_0x335a40(0x22a)]['id'],'action':_0x4865b0+_0x335a40(0x1ad)},{'id':t[_0x335a40(0x378)]['id'],'action':_0x4865b0+_0x335a40(0x4b6)},{'id':t[_0x335a40(0x4e7)]['id'],'action':_0x4865b0+_0x335a40(0x30f)},{'id':t[_0x335a40(0x410)]['id'],'action':_0x4865b0+_0x335a40(0x4a4)},{'id':t['SetTabColorMutation']['id'],'action':_0x4865b0+_0x335a40(0x341)},{'id':t[_0x335a40(0x1ca)]['id'],'action':_0x4865b0+_0x335a40(0x52b)},{'id':t['InsertRowMutation']['id'],'action':_0x4865b0+_0x335a40(0x3fa)},{'id':t['InsertColMutation']['id'],'action':_0x4865b0+_0x335a40(0x38c)},{'id':t['RemoveRowMutation']['id'],'action':_0x4865b0+_0x335a40(0x49c)},{'id':t[_0x335a40(0x368)]['id'],'action':_0x4865b0+_0x335a40(0x1c6)},{'id':t[_0x335a40(0x3b4)]['id'],'action':_0x4865b0+_0x335a40(0x49b)},{'id':t[_0x335a40(0x1fc)]['id'],'action':_0x4865b0+_0x335a40(0x3b2)},{'id':t['SetRowVisibleMutation']['id'],'action':_0x4865b0+'showRow'},{'id':t[_0x335a40(0x370)]['id'],'action':_0x4865b0+'hideRow'},{'id':t['SetColVisibleMutation']['id'],'action':_0x4865b0+'showCol'},{'id':t[_0x335a40(0x513)]['id'],'action':_0x4865b0+_0x335a40(0x450)},{'id':t[_0x335a40(0x42f)]['id'],'action':_0x4865b0+_0x335a40(0x54a)},{'id':t['SetWorksheetColWidthMutation']['id'],'action':_0x4865b0+_0x335a40(0x22f)},{'id':t[_0x335a40(0x219)]['id'],'action':_0x4865b0+_0x335a40(0x428)},{'id':t[_0x335a40(0x259)]['id'],'action':_0x4865b0+_0x335a40(0x190)},{'id':t['SetRowDataMutation']['id'],'action':_0x4865b0+'setRowData'},{'id':t['SetColDataMutation']['id'],'action':_0x4865b0+'setColData'},{'id':t[_0x335a40(0x2c5)]['id'],'action':_0x4865b0+'setRowCount'},{'id':t[_0x335a40(0x37a)]['id'],'action':_0x4865b0+'setColCount'},{'id':t[_0x335a40(0x1b1)]['id'],'action':_0x4865b0+_0x335a40(0x1a8)},{'id':t[_0x335a40(0x24b)]['id'],'action':_0x4865b0+_0x335a40(0x55e)},{'id':t[_0x335a40(0x254)]['id'],'action':_0x4865b0+'reorderRange'},{'id':t[_0x335a40(0x2c6)]['id'],'action':_0x4865b0+_0x335a40(0x4c1)},{'id':t['RemoveWorksheetMergeMutation']['id'],'action':_0x4865b0+_0x335a40(0x4eb)},{'id':t['SetFrozenMutation']['id'],'action':_0x4865b0+'setFrozen'},{'id':t[_0x335a40(0x295)]['id'],'action':_0x4865b0+_0x335a40(0x519)},{'id':t['SetGridlinesColorMutation']['id'],'action':_0x4865b0+_0x335a40(0x2d9)},{'id':t[_0x335a40(0x2c1)]['id'],'action':_0x4865b0+_0x335a40(0x1ed)},{'id':t['SetWorksheetDefaultStyleMutation']['id'],'action':_0x4865b0+_0x335a40(0x3de)},{'id':t['AddWorksheetProtectionMutation']['id'],'action':_0x4865b0+'addProtection'},{'id':t['SetWorksheetProtectionMutation']['id'],'action':_0x4865b0+'setProtection'},{'id':t['DeleteWorksheetProtectionMutation']['id'],'action':_0x4865b0+'deleteProtection'},{'id':t['AddRangeProtectionMutation']['id'],'action':_0x4865b0+_0x335a40(0x435)},{'id':t['SetRangeProtectionMutation']['id'],'action':_0x4865b0+_0x335a40(0x3d8)},{'id':t['DeleteRangeProtectionMutation']['id'],'action':_0x4865b0+_0x335a40(0x54f)},{'id':t[_0x335a40(0x4f4)]['id'],'action':_0x4865b0+_0x335a40(0x2d8)},{'id':t[_0x335a40(0x260)]['id'],'action':_0x4865b0+_0x335a40(0x2e9)},{'id':t[_0x335a40(0x3ee)]['id'],'action':_0x4865b0+_0x335a40(0x23a)},{'id':t['AddRangeThemeMutation']['id'],'action':_0x4865b0+_0x335a40(0x194)},{'id':t[_0x335a40(0x4a7)]['id'],'action':_0x4865b0+'setRangeTheme'},{'id':t['RemoveRangeThemeMutation']['id'],'action':_0x4865b0+_0x335a40(0x239)},{'id':t['SetWorksheetRangeThemeStyleMutation']['id'],'action':_0x4865b0+_0x335a40(0x36b)},{'id':t[_0x335a40(0x567)]['id'],'action':_0x4865b0+_0x335a40(0x528)}],'sheetsConditionalFormatting':[{'id':S[_0x335a40(0x42d)]['id'],'action':_0x4865b0+_0x335a40(0x408)},{'id':S[_0x335a40(0x25a)]['id'],'action':_0x4865b0+_0x335a40(0x408)},{'id':S[_0x335a40(0x25b)]['id'],'action':_0x4865b0+_0x335a40(0x243)},{'id':S['MoveConditionalRuleMutation']['id'],'action':_0x4865b0+_0x335a40(0x4ff)}],'sheetsFilter':[{'id':O['SetSheetsFilterRangeMutation']['id'],'action':_0x4865b0+_0x335a40(0x222)},{'id':O[_0x335a40(0x3f4)]['id'],'action':_0x4865b0+_0x335a40(0x531)},{'id':O[_0x335a40(0x396)]['id'],'action':_0x4865b0+_0x335a40(0x1f2)},{'id':O[_0x335a40(0x3b3)]['id'],'action':_0x4865b0+_0x335a40(0x31a)}],'dataValidation':[{'id':p[_0x335a40(0x53e)]['id'],'action':_0x4865b0+'setDV'},{'id':p[_0x335a40(0x19c)]['id'],'action':_0x4865b0+'setDV'},{'id':p[_0x335a40(0x28b)]['id'],'action':_0x4865b0+_0x335a40(0x3cf)}],'sheetsChart':[{'id':o[_0x335a40(0x4dd)]['id'],'action':_0x4865b0+_0x335a40(0x4df)},{'id':o[_0x335a40(0x1ec)]['id'],'action':_0x4865b0+_0x335a40(0x277)},{'id':o[_0x335a40(0x468)]['id'],'action':_0x4865b0+_0x335a40(0x23c)},{'id':o[_0x335a40(0x518)]['id'],'action':_0x4865b0+_0x335a40(0x545)}],'sheetsSparkline':[{'id':d[_0x335a40(0x34b)]['id'],'action':_0x4865b0+_0x335a40(0x51e)},{'id':d['SetSheetSparklineMutation']['id'],'action':_0x4865b0+'setSparkline'},{'id':d[_0x335a40(0x28f)]['id'],'action':_0x4865b0+'removeSparkline'}],'sheetsPivot':[{'id':c[_0x335a40(0x2d5)]['id'],'action':_0x4865b0+_0x335a40(0x1c5)},{'id':c['RemovePivotTableMutation']['id'],'action':_0x4865b0+_0x335a40(0x3ff)},{'id':c[_0x335a40(0x37b)]['id'],'action':_0x4865b0+_0x335a40(0x353)},{'id':c['SetPivotPositionMutation']['id'],'action':_0x4865b0+_0x335a40(0x2fe)},{'id':c[_0x335a40(0x282)]['id'],'action':_0x4865b0+_0x335a40(0x1a1)},{'id':c[_0x335a40(0x1e5)]['id'],'action':_0x4865b0+'addPivotField'},{'id':c['RemovePivotFieldMutation']['id'],'action':_0x4865b0+'removePivotField'},{'id':c[_0x335a40(0x360)]['id'],'action':_0x4865b0+'renamePivotField'},{'id':c[_0x335a40(0x28d)]['id'],'action':_0x4865b0+_0x335a40(0x27c)},{'id':c['UpdateValuePositionMutation']['id'],'action':_0x4865b0+'updateValuePosition'},{'id':c[_0x335a40(0x3ac)]['id'],'action':_0x4865b0+'updatePivotFieldSource'},{'id':c[_0x335a40(0x444)]['id'],'action':_0x4865b0+_0x335a40(0x461)},{'id':c['SetPivotFilterMutation']['id'],'action':_0x4865b0+'setPivotFilter'},{'id':c[_0x335a40(0x236)]['id'],'action':_0x4865b0+_0x335a40(0x3da)},{'id':c[_0x335a40(0x488)]['id'],'action':_0x4865b0+_0x335a40(0x39d)},{'id':c[_0x335a40(0x349)]['id'],'action':_0x4865b0+_0x335a40(0x3ce)},{'id':c[_0x335a40(0x35b)]['id'],'action':_0x4865b0+_0x335a40(0x18f)}],'sheetsShape':[{'id':l[_0x335a40(0x4de)]['id'],'action':_0x4865b0+_0x335a40(0x1c0)},{'id':l[_0x335a40(0x216)]['id'],'action':_0x4865b0+_0x335a40(0x306)},{'id':l[_0x335a40(0x49e)]['id'],'action':_0x4865b0+_0x335a40(0x4a0)},{'id':l['UpdateSheetsShapeTypeMutation']['id'],'action':_0x4865b0+_0x335a40(0x563)}],'sheetsTable':[{'id':j[_0x335a40(0x4a5)]['id'],'action':_0x4865b0+_0x335a40(0x405)},{'id':j[_0x335a40(0x4a9)]['id'],'action':_0x4865b0+_0x335a40(0x4ca)},{'id':j[_0x335a40(0x221)]['id'],'action':_0x4865b0+_0x335a40(0x554)},{'id':j[_0x335a40(0x367)]['id'],'action':_0x4865b0+_0x335a40(0x46c)}],'sheetsDrawing':[{'id':E['SetDrawingApplyMutation']['id'],'action':_0x4865b0+_0x335a40(0x3c5)}]};}function he(_0x5a7d49='sheets-history-ui.viewer.action.'){const _0x53fa26=_0x31d253;let _0x14c47e=me(_0x5a7d49);return Object[_0x53fa26(0x389)](_0x14c47e)[_0x53fa26(0x1b2)]();}function ge(_0x3cc657){const _0xd800b7=_0x31d253;let _0x4d47a8=_0x3cc657[_0xd800b7(0x210)]();return e[_0xd800b7(0x55a)][_0x4d47a8]['tag'];}const K=(_0x1485c5,_0x672b54)=>{const _0x3cef92=_0x31d253;if(!_0x1485c5)return{'date':'','time':''};let _0xe1ebb5=(0x0,e[_0x3cef92(0x35d)])(_0x1485c5);return{'date':ye(_0xe1ebb5['format'](_0x3cef92(0x471)),_0x672b54),'time':_0xe1ebb5['formatIntl'](ge(_0x672b54),{'hour':_0x3cef92(0x26b),'minute':'2-digit','second':_0x3cef92(0x26b),'hour12':!0x1})};},_e=(_0x1ab014,_0x230b78)=>{const _0x1882b7=_0x31d253;if(_0x1ab014[_0x1882b7(0x1da)][_0x1882b7(0x34a)](_0x529866=>_0x529866===n[_0x1882b7(0x276)]['id'])&&_0x1ab014[_0x1882b7(0x2c0)]){let _0x51bd10=K(_0x1ab014['recoverTime'],_0x230b78),_0x7b50d=_0x51bd10['date']+'\x20'+_0x51bd10[_0x1882b7(0x288)];return _0x230b78['t'](_0x1882b7(0x463))+'\x20'+_0x7b50d+'\x20'+_0x230b78['t']('sheets-history-ui.viewer.action.revertSheetSuffix');}let _0x2d000e=ve(_0x1ab014),_0x3ddeaa=Array[_0x1882b7(0x357)](new Set(_0x2d000e)),_0x50c236;if(_0x3ddeaa[_0x1882b7(0x4f5)]===0x1)_0x50c236=_0x230b78['t'](_0x3ddeaa[0x0]);else{let _0xc6fe19=_0x3ddeaa[_0x1882b7(0x1a6)](0x0,0x5)[_0x1882b7(0x403)](_0x292328=>_0x230b78['t'](_0x292328))[_0x1882b7(0x4bd)](',\x20');_0x50c236=_0x3ddeaa['length']>0x5?''+_0xc6fe19+_0x230b78['t'](_0x1882b7(0x44a)):_0xc6fe19;}return''+_0x50c236;};function ve(_0x4f37af){const _0x577885=_0x31d253;if(_0x4f37af[_0x577885(0x1da)][_0x577885(0x4f5)]===0x0)return[''];let _0x5af63f=_0x577885(0x2ba),_0x46dc69=_0x5af63f+'editSheet',_0x5336d2=he(_0x5af63f)['filter'](_0x1cda78=>_0x4f37af[_0x577885(0x1da)][_0x577885(0x499)](_0x1cda78['id']));return _0x5336d2!=null&&_0x5336d2[_0x577885(0x4f5)]?_0x5336d2[_0x577885(0x403)](_0x487648=>_0x487648[_0x577885(0x1a5)]):[_0x46dc69];}function ye(_0x19d2dc,_0x210b0e){const _0x108051=_0x31d253;let [_0x59fb50,_0x23e6df,_0x55e28f]=(0x0,e[_0x108051(0x35d)])()[_0x108051(0x462)](_0x108051(0x471))['split']('-'),[_0xd0c8f0,_0x537a59,_0x2c0e2d]=_0x19d2dc['split']('-');if(_0x59fb50===_0xd0c8f0&&_0x23e6df===_0x537a59&&_0x55e28f===_0x2c0e2d)return _0x210b0e['t'](_0x108051(0x1ce));let _0x45e5c9=ge(_0x210b0e);return _0x59fb50===_0xd0c8f0?(0x0,e[_0x108051(0x35d)])(_0x19d2dc)[_0x108051(0x571)](_0x45e5c9,{'month':_0x108051(0x23e),'day':'numeric'}):(0x0,e[_0x108051(0x35d)])(_0x19d2dc)[_0x108051(0x571)](_0x45e5c9,{'year':_0x108051(0x23e),'month':_0x108051(0x23e),'day':'numeric'});}function be(_0x144d5c){const _0x5b76cb=_0x31d253;return _0x144d5c?_0x144d5c[_0x5b76cb(0x411)]((_0x2e4de4,_0x24943b)=>{const _0x401935=_0x5b76cb;let _0x41a7da=(0x0,e[_0x401935(0x35d)])(_0x24943b[_0x401935(0x288)]??Date['now']())[_0x401935(0x462)]('YYYY-MM-DD'),_0x3f929c=_0x24943b[_0x401935(0x448)]?(0x0,e['dateKit'])(_0x24943b[_0x401935(0x448)])[_0x401935(0x462)]('YYYY-MM-DD'):_0x41a7da,_0x404f8d=_0x24943b[_0x401935(0x48b)]?(0x0,e[_0x401935(0x35d)])(_0x24943b[_0x401935(0x48b)])[_0x401935(0x462)](_0x401935(0x471)):_0x41a7da;return _0x2e4de4[_0x401935(0x4f5)]>0x0&&_0x2e4de4[_0x2e4de4['length']-0x1][_0x401935(0x4b4)]===_0x3f929c?_0x2e4de4[_0x2e4de4[_0x401935(0x4f5)]-0x1][_0x401935(0x26c)][_0x401935(0x53b)](_0x24943b):_0x2e4de4['push']({'dateString':_0x41a7da,'startDateString':_0x3f929c,'endDateString':_0x404f8d,'versions':[_0x24943b]}),_0x2e4de4;},[]):[];}const xe=_0x31d253(0x308);let q=class extends e['Disposable']{['_setFetching'](_0x285d56){const _0x2302f5=_0x31d253;this['_fetching$'][_0x2302f5(0x22c)](_0x285d56);}get[_0x31d253(0x460)](){const _0x574eac=_0x31d253;return this[_0x574eac(0x27a)][_0x574eac(0x39b)];}constructor(_0x29e37a,_0x4bb467,_0x47b69d,_0x5d2f2c,_0x2d07b0){const _0x48a5ab=_0x31d253;super(),this[_0x48a5ab(0x542)]=_0x29e37a,this[_0x48a5ab(0x2f4)]=_0x4bb467,this['_logService']=_0x47b69d,this[_0x48a5ab(0x4fb)]=_0x5d2f2c,this[_0x48a5ab(0x1a9)]=_0x2d07b0,H(this,_0x48a5ab(0x241),new P[(_0x48a5ab(0x344))]([])),H(this,_0x48a5ab(0x4cb),this[_0x48a5ab(0x241)][_0x48a5ab(0x3af)]()),H(this,'_currentVersion$',new P[(_0x48a5ab(0x344))]('')),H(this,'currentVersion$',this['_currentVersion$']['asObservable']()),H(this,'_status$',new P[(_0x48a5ab(0x344))]('entered')),H(this,_0x48a5ab(0x4d6),this[_0x48a5ab(0x1fa)]['asObservable']()),H(this,_0x48a5ab(0x3ba),new P[(_0x48a5ab(0x344))](0x0)),H(this,'revertRevision$',this[_0x48a5ab(0x3ba)][_0x48a5ab(0x3af)]()),H(this,'_unitId$',new P[(_0x48a5ab(0x344))]('')),H(this,'unitId$',this['_unitId$'][_0x48a5ab(0x3af)]()),H(this,'_fetching$',new P[(_0x48a5ab(0x344))](!0x1)),H(this,_0x48a5ab(0x48d),this['_fetching$'][_0x48a5ab(0x3af)]()),H(this,'_creators$',new P[(_0x48a5ab(0x344))]([])),H(this,'creators$',this['_creators$']['asObservable']()),H(this,_0x48a5ab(0x29b),new P[(_0x48a5ab(0x344))](!0x1)),H(this,_0x48a5ab(0x2a4),this[_0x48a5ab(0x29b)][_0x48a5ab(0x3af)]()),H(this,_0x48a5ab(0x253),new Map()),H(this,_0x48a5ab(0x2d6),new P[(_0x48a5ab(0x344))](_0x48a5ab(0x46b))),H(this,'loadingState$',this[_0x48a5ab(0x2d6)][_0x48a5ab(0x3af)]()),H(this,_0x48a5ab(0x4f8),null),H(this,_0x48a5ab(0x2ac),!0x0),H(this,_0x48a5ab(0x3dd),new Map()),H(this,_0x48a5ab(0x517),!0x1),H(this,'_loadParams',null),H(this,_0x48a5ab(0x52e),new Map());}async[_0x31d253(0x322)](_0x643995,_0x270d14){const _0x2d7c7d=_0x31d253;this[_0x2d7c7d(0x517)]=_0x270d14,this['_openPanel$'][_0x2d7c7d(0x22c)](!0x0),await this[_0x2d7c7d(0x2a5)](_0x643995);}[_0x31d253(0x25f)](_0x2e25ef,_0x3e8923,_0x3396b9){const _0x2967d7=_0x31d253;let {versions:_0x2c6e5c,hasMore:_0x193a47,lastLabel:_0x48f73e,members:_0x2dacea}=_0x3396b9,_0x4120ba=_0x2c6e5c[_0x2967d7(0x4f5)]>0x0?_0x2c6e5c:[{'unitId':_0x2e25ef,'id':xe,'startRev':0x1,'endRev':0x0,'time':Date['now'](),'user':this[_0x2967d7(0x4fb)]['t'](_0x2967d7(0x3b7)),'users':[this[_0x2967d7(0x4fb)]['t'](_0x2967d7(0x3b7))],'commands':[],'isAnonymous':!0x1}];this[_0x2967d7(0x517)]=_0x3e8923,this[_0x2967d7(0x214)][_0x2967d7(0x22c)](_0x2e25ef),this[_0x2967d7(0x315)](_0x4120ba,_0x193a47,_0x48f73e,!0x1,_0x2dacea),this[_0x2967d7(0x395)][_0x2967d7(0x22c)](_0x4120ba[0x0]['id']);}async[_0x31d253(0x2a5)](_0x7a06e,_0x519c5c){const _0x5e0367=_0x31d253;this[_0x5e0367(0x214)][_0x5e0367(0x22c)](_0x7a06e),this[_0x5e0367(0x4f6)]=_0x519c5c??null,this[_0x5e0367(0x426)](!0x0);let _0x4639fe=await this['_historyFetchService']['getVersions'](_0x7a06e,_0x519c5c);if(this[_0x5e0367(0x426)](!0x1),_0x4639fe){let {versions:_0x1050f2,lastLabel:_0x1128df,hasMore:_0x4f5d71,members:_0x5474a7}=_0x4639fe;_0x1050f2[_0x5e0367(0x4f5)]===0x0&&_0x1050f2[_0x5e0367(0x53b)]({'unitId':_0x7a06e,'id':xe,'startRev':0x1,'endRev':0x0,'time':Date['now'](),'user':this['_localeService']['t'](_0x5e0367(0x3b7)),'users':[this[_0x5e0367(0x4fb)]['t'](_0x5e0367(0x3b7))],'commands':[],'isAnonymous':!0x1}),this[_0x5e0367(0x315)](_0x1050f2,_0x4f5d71,_0x1128df,!0x1,_0x5474a7),this[_0x5e0367(0x395)][_0x5e0367(0x22c)](_0x1050f2[0x0]['id']),this[_0x5e0367(0x52e)][_0x5e0367(0x3b5)](_0x7a06e,_0x1050f2[0x0][_0x5e0367(0x262)]);}else this[_0x5e0367(0x1fa)]['next'](_0x5e0367(0x3c6));}async[_0x31d253(0x3e4)](){const _0x27e15e=_0x31d253;if(!this['_lastLabel']||!this[_0x27e15e(0x2ac)]||this[_0x27e15e(0x460)])return!0x1;this[_0x27e15e(0x426)](!0x0);let _0x138408=await this[_0x27e15e(0x1a9)][_0x27e15e(0x3c9)](this[_0x27e15e(0x1eb)],{'lastLabel':this[_0x27e15e(0x4f8)],...this[_0x27e15e(0x4f6)]});if(this[_0x27e15e(0x426)](!0x1),_0x138408){let {versions:_0x2e1f7b,lastLabel:_0x3e676f,hasMore:_0x404b47,members:_0x545973}=_0x138408;this[_0x27e15e(0x315)](_0x2e1f7b,_0x404b47,_0x3e676f,!0x0,_0x545973);}else this[_0x27e15e(0x542)][_0x27e15e(0x3d2)]({'content':this['_localeService']['t'](_0x27e15e(0x4cc)),'type':m[_0x27e15e(0x365)][_0x27e15e(0x24d)],'duration':0xbb8});return!0x0;}async[_0x31d253(0x1cc)](){const _0x113a38=_0x31d253;let {unitId:_0x4224ed}=this;if(!_0x4224ed)return;let _0x32e7d1=await this[_0x113a38(0x1a9)]['fetchCreatorList'](_0x4224ed);_0x32e7d1&&this[_0x113a38(0x41b)][_0x113a38(0x22c)](_0x32e7d1);}async[_0x31d253(0x4b5)](_0x5082f6){const _0x343a90=_0x31d253;let {endRev:_0x1e2e45}=this[_0x343a90(0x301)](_0x5082f6)||{};if(_0x1e2e45||_0x1e2e45===0x0){this['_loadingState$']['next'](_0x343a90(0x3a5));try{await this[_0x343a90(0x1a9)]['loadSheet'](this[_0x343a90(0x1eb)],_0x1e2e45),this['_loadingState$'][_0x343a90(0x22c)]('loaded');}catch(_0xdb715){this[_0x343a90(0x4e4)][_0x343a90(0x3c6)]('[HistoryManagerService]:\x20Failed\x20to\x20load\x20history\x20revision.',_0xdb715),this['_loadingState$']['next'](_0x343a90(0x3c6)),this[_0x343a90(0x1fa)][_0x343a90(0x22c)](_0x343a90(0x3c6));}}else this[_0x343a90(0x1fa)][_0x343a90(0x22c)](_0x343a90(0x3c6));}async['triggerRevert'](_0x144fca){const _0x41916d=_0x31d253;let _0x4de84c=_0x144fca?this[_0x41916d(0x301)](_0x144fca):this[_0x41916d(0x3a2)]();if(!_0x4de84c)return;let _0xc67af3=_0x4de84c['endRev'],_0x41a1e0=K(_0x4de84c[_0x41916d(0x288)],this[_0x41916d(0x4fb)]);await this[_0x41916d(0x2f4)][_0x41916d(0x20e)]({'id':_0x41916d(0x456),'title':{'title':this[_0x41916d(0x4fb)]['t'](_0x41916d(0x33b))},'children':{'title':this[_0x41916d(0x4fb)]['t'](_0x41916d(0x533),_0x41a1e0[_0x41916d(0x229)],_0x41a1e0[_0x41916d(0x288)])},'cancelText':this[_0x41916d(0x4fb)]['t'](_0x41916d(0x1d9)),'confirmText':this['_localeService']['t'](_0x41916d(0x377))})&&this['_revertRevision$'][_0x41916d(0x22c)](_0xc67af3);}[_0x31d253(0x315)](_0x309be0,_0x4cc55a,_0x5f3457,_0xf5fa7a,_0x1bea03){const _0x74c1a3=_0x31d253;this[_0x74c1a3(0x250)](_0xf5fa7a?this[_0x74c1a3(0x241)]['value'][_0x74c1a3(0x29c)](_0x309be0):_0x309be0),this[_0x74c1a3(0x2ac)]=_0x4cc55a,this[_0x74c1a3(0x4f8)]=_0x5f3457,_0x1bea03&&Object[_0x74c1a3(0x1f4)](_0x1bea03)[_0x74c1a3(0x345)](_0x179733=>this[_0x74c1a3(0x3dd)][_0x74c1a3(0x3b5)](_0x179733,_0x1bea03[_0x179733]));}['getCurrentVersion'](){const _0x3aa098=_0x31d253;return this['getVersion'](this[_0x3aa098(0x395)][_0x3aa098(0x39b)]);}[_0x31d253(0x250)](_0xc49b4e){const _0xbfbd5c=_0x31d253;this[_0xbfbd5c(0x241)][_0xbfbd5c(0x22c)](_0xc49b4e);}[_0x31d253(0x301)](_0x53f13d){const _0x52b907=_0x31d253;var _0x2ce45b;return((_0x2ce45b=this[_0x52b907(0x241)][_0x52b907(0x39b)])==null?void 0x0:_0x2ce45b[_0x52b907(0x213)](_0x57e29b=>_0x57e29b['id']===_0x53f13d))||this['_detailVersionsMap']['get'](_0x53f13d);}[_0x31d253(0x2ad)](_0x49417b){const _0x39bfc6=_0x31d253;this[_0x39bfc6(0x253)][_0x39bfc6(0x3b5)](_0x49417b['id'],_0x49417b);}[_0x31d253(0x494)](){const _0x59e9eb=_0x31d253;if(this[_0x59e9eb(0x1eb)])return this['_unitCurrentVersionMap'][_0x59e9eb(0x361)](this[_0x59e9eb(0x1eb)]);}[_0x31d253(0x35f)](){const _0x309e69=_0x31d253;var _0xe5bdab;return((_0xe5bdab=this[_0x309e69(0x3a2)]())==null?void 0x0:_0xe5bdab[_0x309e69(0x262)])===this['getCurrentUnitCurrentVersion']();}[_0x31d253(0x1f5)](){const _0x18201d=_0x31d253;return!this[_0x18201d(0x35f)]()&&this[_0x18201d(0x4ac)];}[_0x31d253(0x29e)](_0x46e18f){const _0x35f154=_0x31d253;return this[_0x35f154(0x3dd)][_0x35f154(0x361)](_0x46e18f);}[_0x31d253(0x3e2)](){const _0x435145=_0x31d253;this['_status$'][_0x435145(0x22c)]('exited');}set[_0x31d253(0x3ae)](_0x315023){const _0x4387f5=_0x31d253;this[_0x4387f5(0x1fa)][_0x4387f5(0x22c)](_0x315023);}get['status'](){const _0x15843b=_0x31d253;return this['_status$'][_0x15843b(0x39b)];}[_0x31d253(0x3ca)](_0x12d1c3){const _0x130b2b=_0x31d253;_0x12d1c3!==this['_currentVersion$'][_0x130b2b(0x39b)]&&this[_0x130b2b(0x395)][_0x130b2b(0x22c)](_0x12d1c3);}get[_0x31d253(0x246)](){const _0x8a149a=_0x31d253;return this['_currentVersion$'][_0x8a149a(0x39b)];}set[_0x31d253(0x1eb)](_0x34dcc9){const _0x49a705=_0x31d253;this[_0x49a705(0x214)]['next'](_0x34dcc9);}get['unitId'](){const _0x295ee9=_0x31d253;return this[_0x295ee9(0x214)][_0x295ee9(0x39b)];}get[_0x31d253(0x4ac)](){return this['_canRevert'];}get['loadingState'](){const _0x36094e=_0x31d253;return this['_loadingState$'][_0x36094e(0x39b)];}};q=W([U(0x0,N[_0x31d253(0x4e3)]),U(0x1,e[_0x31d253(0x394)]),U(0x2,e[_0x31d253(0x52c)]),U(0x3,(0x0,e['Inject'])(e[_0x31d253(0x31c)])),U(0x4,(0x0,e[_0x31d253(0x570)])(G))],q);let J=class extends e[_0x31d253(0x352)]{constructor(_0x33e1bb,_0xf43077,_0x5a72f8,_0x36bc8e,_0x111cbe,_0x5a8d27,_0x3f4aee,_0x46e5ed,_0x3b2cc1,_0xd37899,_0x320c47,_0xe2ecf1,_0x545e46,_0x149209){const _0x3ae8e0=_0x31d253;super(),this[_0x3ae8e0(0x4fa)]=_0x33e1bb,this['_transformService']=_0xf43077,this[_0x3ae8e0(0x4e5)]=_0x5a72f8,this['_rangeProtectionRuleModel']=_0x36bc8e,this[_0x3ae8e0(0x208)]=_0x111cbe,this[_0x3ae8e0(0x2de)]=_0x5a8d27,this['_sheetsFilterService']=_0x3f4aee,this[_0x3ae8e0(0x2a3)]=_0x46e5ed,this[_0x3ae8e0(0x2f1)]=_0x3b2cc1,this['_sheetTableService']=_0xd37899,this['_localeService']=_0x320c47,this['_sheetsChartService']=_0xe2ecf1,this['_historyFetchService']=_0x545e46,this[_0x3ae8e0(0x4e4)]=_0x149209,H(this,_0x3ae8e0(0x3f8),new Map()),H(this,_0x3ae8e0(0x2cf),new P[(_0x3ae8e0(0x344))]({'ranges':new Map(),'active':null,'subUnitIds':[]})),H(this,_0x3ae8e0(0x212),this[_0x3ae8e0(0x2cf)]['asObservable']()),this[_0x3ae8e0(0x56f)]();}[_0x31d253(0x33a)](){const _0x3a26fb=_0x31d253;super[_0x3a26fb(0x33a)](),this[_0x3a26fb(0x3f8)]['clear'](),this[_0x3a26fb(0x2cf)][_0x3a26fb(0x205)]();}[_0x31d253(0x56f)](){const _0x110df8=_0x31d253;this[_0x110df8(0x3f8)]=new Map(),this['disposeWithMe'](this['_historyManagerService'][_0x110df8(0x230)]['subscribe'](_0x1d85ab=>{const _0x2f3cd1=_0x110df8;_0x1d85ab&&!this[_0x2f3cd1(0x3f8)][_0x2f3cd1(0x4be)](_0x1d85ab)&&this[_0x2f3cd1(0x3f8)][_0x2f3cd1(0x3b5)](_0x1d85ab,new Map());})),this[_0x110df8(0x38d)](this[_0x110df8(0x4fa)]['currentVersion$']['subscribe'](_0xd88c5d=>{_0xd88c5d&&this['_ensureCurrentVersion'](_0xd88c5d);}));}async['ensureVersion'](_0xbb5c0d){const _0x34a47c=_0x31d253;var _0x8444d;if(this[_0x34a47c(0x1de)])return;let _0x727eda=this[_0x34a47c(0x4fa)][_0x34a47c(0x301)](_0xbb5c0d),_0x1b32a7=this['_historyManagerService']['unitId'];if(!_0x727eda||!_0x1b32a7)return;let _0x39d7a0=this[_0x34a47c(0x3f8)][_0x34a47c(0x361)](_0x1b32a7);if(_0x39d7a0||(_0x39d7a0=new Map(),this[_0x34a47c(0x3f8)][_0x34a47c(0x3b5)](_0x1b32a7,_0x39d7a0)),_0x39d7a0[_0x34a47c(0x4be)](_0x727eda['id']))return;let {startRev:_0x4067d6,endRev:_0x4ffcf6}=_0x727eda;if(_0x4067d6===0x1){_0x39d7a0[_0x34a47c(0x3b5)](_0x727eda['id'],{'ranges':new Map(),'active':null,'subUnitIds':[]});return;}let _0x231735=_0x4067d6,_0xefdc1b=_0x4ffcf6,_0x5d9083=await this[_0x34a47c(0x1a9)][_0x34a47c(0x1b7)]({},{'unitId':_0x1b32a7,'startRevision':_0x231735,'endRevision':_0xefdc1b});if(!this[_0x34a47c(0x1de)]&&((_0x8444d=_0x5d9083[_0x34a47c(0x3c6)])==null?void 0x0:_0x8444d['code'])===L['ErrorCode']['OK']){let _0x123c84=_0x5d9083[_0x34a47c(0x2c4)][_0x34a47c(0x403)](_0x3401f5=>((_0x3401f5[_0x34a47c(0x2f3)]===null||_0x3401f5[_0x34a47c(0x2f3)]===void 0x0)&&(_0x3401f5['mutations']=[]),(0x0,n[_0x34a47c(0x326)])(_0x3401f5)))[_0x34a47c(0x403)](_0x596b80=>_0x596b80[_0x34a47c(0x2f3)][_0x34a47c(0x403)](_0x295412=>({..._0x295412,'params':{..._0x295412[_0x34a47c(0x400)],'memberId':_0x596b80[_0x34a47c(0x54b)]||_0x34a47c(0x261)}})))[_0x34a47c(0x1b2)](),_0x24622d=await this[_0x34a47c(0x3e8)](_0x123c84);if(this[_0x34a47c(0x1de)])return;let _0x14c44f=this[_0x34a47c(0x3c8)](_0x123c84),_0x27a3ba=this[_0x34a47c(0x3a9)](_0x24622d);_0x39d7a0[_0x34a47c(0x3b5)](_0x727eda['id'],{..._0x27a3ba,'active':_0x14c44f});}}[_0x31d253(0x362)](_0x222d4e){const _0x5d1e52=_0x31d253;this['ensureVersion'](_0x222d4e)[_0x5d1e52(0x4e2)](()=>{const _0x3ef5fd=_0x5d1e52;var _0x5dcc3b;if(this[_0x3ef5fd(0x1de)]||this[_0x3ef5fd(0x4fa)][_0x3ef5fd(0x246)]!==_0x222d4e)return;let _0x9793b4=(_0x5dcc3b=this['_diffRangesMap'][_0x3ef5fd(0x361)](this[_0x3ef5fd(0x4fa)][_0x3ef5fd(0x1eb)]))==null?void 0x0:_0x5dcc3b[_0x3ef5fd(0x361)](_0x222d4e);this[_0x3ef5fd(0x2cf)][_0x3ef5fd(0x22c)](_0x9793b4||{'ranges':new Map(),'active':null,'subUnitIds':[]});})[_0x5d1e52(0x314)](_0x5bca76=>{const _0x4c2427=_0x5d1e52;this[_0x4c2427(0x1de)]||this['_logService'][_0x4c2427(0x3c6)](_0x4c2427(0x48c),_0x5bca76);});}[_0x31d253(0x2eb)](){const _0x62564=_0x31d253;let _0x14f616=me(_0x62564(0x2ba)),_0x4645a3=new Map();return Object['values'](_0x14f616)['flat']()[_0x62564(0x345)](_0x2a2754=>{const _0x4af420=_0x62564;_0x4645a3['set'](_0x2a2754['id'],_0x2a2754[_0x4af420(0x1a5)]);}),_0x4645a3;}[_0x31d253(0x1d0)](_0xde764f,_0x126c5e){const _0x140bdd=_0x31d253;return this[_0x140bdd(0x198)](_0xde764f,_0x126c5e);}async[_0x31d253(0x3e8)](_0x523539){const _0xa57a89=_0x31d253;let _0xb3a02d=[];for(let _0x49c045=0x0;_0x49c045<_0x523539['length'];_0x49c045++){if(this['_disposed'])return[];let _0x51f1eb=_0x523539[_0x49c045];if(_0xb3a02d[_0xa57a89(0x53b)](_0x51f1eb),_0x49c045!==_0x523539[_0xa57a89(0x4f5)]-0x1){let _0x496ac5=_0x523539[_0x49c045+0x1],_0xbab475=this[_0xa57a89(0x3cb)][_0xa57a89(0x201)](_0xb3a02d,[_0x496ac5]);_0xb3a02d=(0x0,n[_0xa57a89(0x310)])(_0xbab475)?_0xbab475[_0xa57a89(0x1cd)]:[];}_0x49c045%0xa==0x0&&_0x49c045>0x0&&await this['_yieldToMain']();}return _0xb3a02d;}[_0x31d253(0x39c)](){return new Promise(_0x44e493=>{const _0x390af5=_0x4c20;typeof requestIdleCallback==_0x390af5(0x2ff)?requestIdleCallback(()=>_0x44e493(),{'timeout':0x64}):setTimeout(_0x44e493,0x0);});}[_0x31d253(0x3c8)](_0x2d9aaa){const _0xf0b3cb=_0x31d253;let _0x4427f1=[];return _0x2d9aaa[_0xf0b3cb(0x345)](_0x81673d=>{const _0x47175b=_0xf0b3cb;if(_0x81673d['id']===t[_0x47175b(0x502)]['id']){let _0x5acb30=_0x81673d[_0x47175b(0x400)];_0x4427f1[_0x47175b(0x53b)](_0x5acb30[_0x47175b(0x501)]['id']);}else{if(_0x81673d['id']===t[_0x47175b(0x220)]['id']){let _0x5a2b0e=_0x81673d['params'];_0x4427f1[_0x47175b(0x4f5)]>0x0&&(_0x4427f1=_0x4427f1['filter'](_0x5f251d=>_0x5f251d!==_0x5a2b0e['subUnitId']));}else{if(_0x81673d['id']===t[_0x47175b(0x4e7)]['id']){let _0xf8d9ae=_0x81673d[_0x47175b(0x400)];_0xf8d9ae[_0x47175b(0x23b)]?_0x4427f1=_0x4427f1[_0x47175b(0x350)](_0x3ce9be=>_0x3ce9be!==_0xf8d9ae[_0x47175b(0x2f0)]):_0x4427f1[_0x47175b(0x53b)](_0xf8d9ae[_0x47175b(0x2f0)]);}else{let _0x276f20=_0x81673d[_0x47175b(0x400)];_0x276f20[_0x47175b(0x2f0)]&&_0x4427f1[_0x47175b(0x53b)](_0x276f20['subUnitId']);}}}}),_0x4427f1[_0xf0b3cb(0x4f5)]>0x0?_0x4427f1[_0x4427f1['length']-0x1]:null;}[_0x31d253(0x3a9)](_0x30bd4e){const _0x2c2b7c=_0x31d253;let _0x1c3f55=new Map(),_0x52f62f=new Map(),_0xe77a0a=new Map(),_0x1774fa=new Map(),_0xc1d2fa=new Map(),_0x1a9e16=new Map(),_0x423fc2=new Map(),_0x32534b=new Map(),_0xc381d2=new Map(),_0x37a1c3=new Map(),_0x233f21=new Map(),_0x5b36c8=new Map(),_0x2aae9f=new Set(),_0x4f565e=this[_0x2c2b7c(0x2eb)]();return _0x30bd4e[_0x2c2b7c(0x345)](_0xfae801=>{const _0x39636e=_0x2c2b7c;var _0x1b9209,_0xebfe8c,_0x9c7734,_0x18c234,_0x1f7327,_0x51944f,_0x55321f,_0x58ff19,_0x2676a7,_0x42ad7e,_0x12b8ef,_0x180733,_0x1cd0e5;let _0x438c0b=(_0x1b9209=_0xfae801[_0x39636e(0x400)])==null?void 0x0:_0x1b9209['memberId'];if(!_0x438c0b)return;_0x1c3f55['has'](_0x438c0b)||(_0x1c3f55['set'](_0x438c0b,[]),_0x52f62f[_0x39636e(0x3b5)](_0x438c0b,[]),_0xe77a0a[_0x39636e(0x3b5)](_0x438c0b,[]),_0x1774fa[_0x39636e(0x3b5)](_0x438c0b,[]),_0xc1d2fa[_0x39636e(0x3b5)](_0x438c0b,[]),_0x1a9e16['set'](_0x438c0b,[]),_0x423fc2[_0x39636e(0x3b5)](_0x438c0b,[]),_0x32534b[_0x39636e(0x3b5)](_0x438c0b,[]),_0xc381d2[_0x39636e(0x3b5)](_0x438c0b,[]),_0x37a1c3[_0x39636e(0x3b5)](_0x438c0b,[]),_0x233f21[_0x39636e(0x3b5)](_0x438c0b,[]),_0x5b36c8[_0x39636e(0x3b5)](_0x438c0b,[]));let _0x356dfb=this[_0x39636e(0x198)](_0xfae801,_0x4f565e);_0x356dfb[_0x39636e(0x4c2)][_0x39636e(0x345)](_0x1542bd=>_0x2aae9f[_0x39636e(0x445)](_0x1542bd)),(_0xebfe8c=_0x1c3f55[_0x39636e(0x361)](_0x438c0b))==null||_0xebfe8c[_0x39636e(0x53b)](..._0x356dfb[_0x39636e(0x40b)]),(_0x9c7734=_0x52f62f[_0x39636e(0x361)](_0x438c0b))==null||_0x9c7734['push'](..._0x356dfb[_0x39636e(0x419)]),(_0x18c234=_0xe77a0a[_0x39636e(0x361)](_0x438c0b))==null||_0x18c234[_0x39636e(0x53b)](..._0x356dfb[_0x39636e(0x4d9)]),(_0x1f7327=_0x1774fa[_0x39636e(0x361)](_0x438c0b))==null||_0x1f7327[_0x39636e(0x53b)](..._0x356dfb[_0x39636e(0x35c)]),(_0x51944f=_0xc1d2fa[_0x39636e(0x361)](_0x438c0b))==null||_0x51944f[_0x39636e(0x53b)](..._0x356dfb['insertBorderRanges']),(_0x55321f=_0x1a9e16[_0x39636e(0x361)](_0x438c0b))==null||_0x55321f[_0x39636e(0x53b)](..._0x356dfb[_0x39636e(0x2f7)]),(_0x58ff19=_0x423fc2[_0x39636e(0x361)](_0x438c0b))==null||_0x58ff19[_0x39636e(0x53b)](..._0x356dfb[_0x39636e(0x2b7)]),(_0x2676a7=_0x32534b[_0x39636e(0x361)](_0x438c0b))==null||_0x2676a7[_0x39636e(0x53b)](..._0x356dfb['arrowRowRanges']),(_0x42ad7e=_0xc381d2[_0x39636e(0x361)](_0x438c0b))==null||_0x42ad7e[_0x39636e(0x53b)](..._0x356dfb[_0x39636e(0x289)]),(_0x12b8ef=_0x233f21[_0x39636e(0x361)](_0x438c0b))==null||_0x12b8ef[_0x39636e(0x53b)](..._0x356dfb[_0x39636e(0x294)]),(_0x180733=_0x5b36c8[_0x39636e(0x361)](_0x438c0b))==null||_0x180733[_0x39636e(0x53b)](..._0x356dfb['deleteDrawings']),(_0x1cd0e5=_0x37a1c3[_0x39636e(0x361)](_0x438c0b))==null||_0x1cd0e5['push'](..._0x356dfb[_0x39636e(0x227)]);}),_0x1c3f55['forEach']((_0x202f39,_0x478eb1)=>{const _0x5c1caa=_0x2c2b7c;_0x1c3f55['set'](_0x478eb1,this[_0x5c1caa(0x3c7)](_0x202f39)),_0x52f62f[_0x5c1caa(0x3b5)](_0x478eb1,this[_0x5c1caa(0x3c7)](_0x52f62f['get'](_0x478eb1)||[])),_0xe77a0a[_0x5c1caa(0x3b5)](_0x478eb1,this[_0x5c1caa(0x3c7)](_0xe77a0a[_0x5c1caa(0x361)](_0x478eb1)||[])),_0x1774fa[_0x5c1caa(0x3b5)](_0x478eb1,this[_0x5c1caa(0x3c7)](_0x1774fa['get'](_0x478eb1)||[])),_0xc1d2fa[_0x5c1caa(0x3b5)](_0x478eb1,this['_combineRanges'](_0xc1d2fa['get'](_0x478eb1)||[])),_0x1a9e16['set'](_0x478eb1,this[_0x5c1caa(0x3c7)](_0x1a9e16[_0x5c1caa(0x361)](_0x478eb1)||[])),_0x423fc2[_0x5c1caa(0x3b5)](_0x478eb1,this[_0x5c1caa(0x3c7)](_0x423fc2[_0x5c1caa(0x361)](_0x478eb1)||[])),_0x32534b['set'](_0x478eb1,this[_0x5c1caa(0x3c7)](_0x32534b[_0x5c1caa(0x361)](_0x478eb1)||[])),_0xc381d2[_0x5c1caa(0x3b5)](_0x478eb1,this['_combineRanges'](_0xc381d2[_0x5c1caa(0x361)](_0x478eb1)||[]));}),{'ranges':_0x1c3f55,'insertCellRanges':_0x52f62f,'deleteCellRanges':_0xe77a0a,'updateCellRanges':_0x1774fa,'insertBorderRanges':_0xc1d2fa,'deleteBorderRanges':_0x1a9e16,'updateBorderRanges':_0x423fc2,'arrowRowRanges':_0x32534b,'arrowColumnRanges':_0xc381d2,'insertDrawings':_0x233f21,'deleteDrawings':_0x5b36c8,'updateDrawings':_0x37a1c3,'subUnitIds':Array[_0x2c2b7c(0x357)](_0x2aae9f)};}[_0x31d253(0x198)](_0x2fc697,_0x20c3f9){const _0xfa0028=_0x31d253;let _0x3be96e={'allRanges':[],'insertCellRanges':[],'deleteCellRanges':[],'updateCellRanges':[],'insertBorderRanges':[],'deleteBorderRanges':[],'updateBorderRanges':[],'arrowRowRanges':[],'arrowColumnRanges':[],'insertDrawings':[],'deleteDrawings':[],'updateDrawings':[],'subUnitIds':[]},_0x390bda=_0x2fc697['id'],_0x37a310=_0x2fc697[_0xfa0028(0x400)],_0x98bbde=_0x20c3f9[_0xfa0028(0x361)](_0x390bda),_0x13f419=_0x98bbde?this[_0xfa0028(0x4fb)]['t'](_0x98bbde):'';_0x37a310[_0xfa0028(0x2f0)]&&_0x3be96e['subUnitIds'][_0xfa0028(0x53b)](_0x37a310[_0xfa0028(0x2f0)]);let _0x4b301c=(_0x5d3997,_0x3f5b9a)=>{const _0xfbe7a5=_0xfa0028;let _0x136339=_0x5d3997[_0xfbe7a5(0x403)](_0xd450cc=>({..._0xd450cc,'showText':_0x13f419}));switch(_0x3be96e[_0xfbe7a5(0x40b)][_0xfbe7a5(0x53b)](..._0x136339),_0x3f5b9a){case'insert':_0x3be96e[_0xfbe7a5(0x419)][_0xfbe7a5(0x53b)](..._0x136339);break;case _0xfbe7a5(0x454):_0x3be96e[_0xfbe7a5(0x4d9)]['push'](..._0x136339);break;case'update':_0x3be96e['updateCellRanges'][_0xfbe7a5(0x53b)](..._0x136339);break;case _0xfbe7a5(0x4b2):_0x3be96e[_0xfbe7a5(0x3a8)][_0xfbe7a5(0x53b)](..._0x136339);break;case _0xfbe7a5(0x20b):_0x3be96e[_0xfbe7a5(0x2f7)][_0xfbe7a5(0x53b)](..._0x136339);break;case _0xfbe7a5(0x569):_0x3be96e[_0xfbe7a5(0x2b7)]['push'](..._0x136339);break;case _0xfbe7a5(0x2ec):_0x3be96e['arrowRowRanges'][_0xfbe7a5(0x53b)](..._0x136339);break;case _0xfbe7a5(0x41e):_0x3be96e[_0xfbe7a5(0x289)][_0xfbe7a5(0x53b)](..._0x136339);}};switch(_0x390bda){case t[_0xfa0028(0x2fa)]['id']:{let _0x49566e=_0x37a310;_0x4b301c([{'range':{..._0x49566e[_0xfa0028(0x4db)],'rangeType':e[_0xfa0028(0x44d)][_0xfa0028(0x498)]},'unitId':_0x49566e[_0xfa0028(0x1eb)],'subUnitId':_0x49566e[_0xfa0028(0x2f0)],'showText':'insertRow','highlightRow':!0x0}],_0xfa0028(0x1ac));break;}case t[_0xfa0028(0x425)]['id']:{let _0x145054=_0x37a310;_0x4b301c([{'range':{..._0x145054['range'],'rangeType':e[_0xfa0028(0x44d)]['COLUMN']},'unitId':_0x145054[_0xfa0028(0x1eb)],'subUnitId':_0x145054[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x38c),'highlightColumn':!0x0}],_0xfa0028(0x1ac));break;}case t[_0xfa0028(0x2c6)]['id']:{let _0xb1447c=_0x37a310;_0x4b301c(_0xb1447c[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x176a64=>({'range':_0x176a64,'unitId':_0xb1447c[_0xfa0028(0x1eb)],'subUnitId':_0xb1447c[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x4c1)})),_0xfa0028(0x1ac));break;}case t['SetNumfmtMutation']['id']:{let _0x1484ca=_0x37a310;_0x4b301c(Object[_0xfa0028(0x389)](_0x1484ca['values'])[_0xfa0028(0x403)](_0x389f7f=>_0x389f7f[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x447b5c=>({'range':_0x447b5c,'unitId':_0x1484ca[_0xfa0028(0x1eb)],'subUnitId':_0x1484ca[_0xfa0028(0x2f0)],'showText':'setNumfmt'})))[_0xfa0028(0x1b2)](),_0xfa0028(0x1ac));break;}case t[_0xfa0028(0x36a)]['id']:{let _0x3e943e=_0x37a310;_0x4b301c(_0x3e943e[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x5b5d54=>({'range':_0x5b5d54,'unitId':_0x3e943e[_0xfa0028(0x1eb)],'subUnitId':_0x3e943e[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x4eb)})),_0xfa0028(0x454));break;}case t['RemoveNumfmtMutation']['id']:{let _0x53024c=_0x37a310;_0x4b301c(_0x53024c[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x481c31=>({'range':_0x481c31,'unitId':_0x53024c['unitId'],'subUnitId':_0x53024c['subUnitId'],'showText':_0xfa0028(0x23a)})),_0xfa0028(0x454));break;}case t[_0xfa0028(0x3b4)]['id']:{let _0x2b145d=_0x37a310;_0x4b301c([{'range':{..._0x2b145d[_0xfa0028(0x1f9)],'rangeType':e['RANGE_TYPE'][_0xfa0028(0x498)]},'unitId':_0x2b145d[_0xfa0028(0x1eb)],'subUnitId':_0x2b145d[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x49b)}],'delete'),_0x4b301c([{'range':{..._0x2b145d[_0xfa0028(0x20c)],'rangeType':e[_0xfa0028(0x44d)][_0xfa0028(0x498)]},'unitId':_0x2b145d[_0xfa0028(0x1eb)],'subUnitId':_0x2b145d[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x49b)}],_0xfa0028(0x1ac));break;}case t[_0xfa0028(0x1fc)]['id']:{let _0x39a49f=_0x37a310;_0x4b301c([{'range':{..._0x39a49f[_0xfa0028(0x1f9)],'rangeType':e[_0xfa0028(0x44d)][_0xfa0028(0x4fd)]},'unitId':_0x39a49f[_0xfa0028(0x1eb)],'subUnitId':_0x39a49f[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x3b2)}],_0xfa0028(0x454)),_0x4b301c([{'range':{..._0x39a49f[_0xfa0028(0x20c)],'rangeType':e[_0xfa0028(0x44d)][_0xfa0028(0x4fd)]},'unitId':_0x39a49f[_0xfa0028(0x1eb)],'subUnitId':_0x39a49f['subUnitId'],'showText':_0xfa0028(0x3b2)}],_0xfa0028(0x1ac));break;}case t[_0xfa0028(0x469)]['id']:{let _0x5bac32=_0x37a310;_0x4b301c(_0x5bac32[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0xe922dd=>({'range':{..._0xe922dd,'rangeType':e[_0xfa0028(0x44d)][_0xfa0028(0x498)]},'unitId':_0x5bac32[_0xfa0028(0x1eb)],'subUnitId':_0x5bac32[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x466),'highlightRow':!0x0})),_0xfa0028(0x2a8));break;}case t[_0xfa0028(0x41f)]['id']:{let _0x40fc32=_0x37a310;_0x40fc32[_0xfa0028(0x45e)]&&_0x40fc32[_0xfa0028(0x2f0)]&&Object[_0xfa0028(0x1f4)](_0x40fc32['rowData'])[_0xfa0028(0x403)](Number)[_0xfa0028(0x345)](_0x2396b2=>{const _0x34e1fb=_0xfa0028;_0x4b301c([{'range':{'startRow':_0x2396b2,'endRow':_0x2396b2,'startColumn':NaN,'endColumn':NaN,'rangeType':e[_0x34e1fb(0x44d)][_0x34e1fb(0x498)]},'unitId':_0x40fc32[_0x34e1fb(0x1eb)],'subUnitId':_0x40fc32[_0x34e1fb(0x2f0)],'showText':_0x34e1fb(0x427),'highlightRow':!0x0}],_0x34e1fb(0x2a8));});break;}case t[_0xfa0028(0x3bb)]['id']:{let _0x4e682e=_0x37a310;_0x4b301c(_0x4e682e['ranges']['map'](_0x2ecf3a=>({'range':{..._0x2ecf3a,'rangeType':e[_0xfa0028(0x44d)][_0xfa0028(0x4fd)]},'unitId':_0x4e682e[_0xfa0028(0x1eb)],'subUnitId':_0x4e682e['subUnitId'],'showText':_0xfa0028(0x510),'highlightColumn':!0x0})),'update');break;}case t[_0xfa0028(0x42a)]['id']:{let _0x3aa670=_0x37a310;_0x3aa670[_0xfa0028(0x36f)]&&_0x3aa670[_0xfa0028(0x2f0)]&&Object[_0xfa0028(0x1f4)](_0x3aa670[_0xfa0028(0x36f)])[_0xfa0028(0x403)](Number)[_0xfa0028(0x345)](_0x13e22a=>{const _0x29dfec=_0xfa0028;_0x4b301c([{'range':{'startRow':NaN,'endRow':NaN,'startColumn':_0x13e22a,'endColumn':_0x13e22a,'rangeType':e[_0x29dfec(0x44d)][_0x29dfec(0x4fd)]},'unitId':_0x3aa670[_0x29dfec(0x1eb)],'subUnitId':_0x3aa670[_0x29dfec(0x2f0)],'showText':_0x29dfec(0x275),'highlightColumn':!0x0}],_0x29dfec(0x2a8));});break;}case t['SetRangeValuesMutation']['id']:{let _0xd35cf4=_0x37a310;_0x4b301c(_0xd35cf4[_0xfa0028(0x234)]?Ce(_0xd35cf4['cellValue'])[_0xfa0028(0x403)](_0x426d05=>({'range':_0x426d05,'unitId':_0xd35cf4['unitId'],'subUnitId':_0xd35cf4[_0xfa0028(0x2f0)],'showText':'setRangeValues'})):[],_0xfa0028(0x2a8));break;}case t['MoveRangeMutation']['id']:{let _0x2ec7f3=_0x2fc697[_0xfa0028(0x400)];_0x4b301c([{'range':Se(_0x2ec7f3[_0xfa0028(0x357)][_0xfa0028(0x39b)]),'unitId':_0x2ec7f3[_0xfa0028(0x1eb)],'subUnitId':_0x2ec7f3[_0xfa0028(0x357)]['subUnitId'],'showText':_0xfa0028(0x55e)}],_0xfa0028(0x454)),_0x4b301c([{'range':Se(_0x2ec7f3['to'][_0xfa0028(0x39b)]),'unitId':_0x2ec7f3['unitId'],'subUnitId':_0x2ec7f3['to'][_0xfa0028(0x2f0)],'showText':_0xfa0028(0x55e)}],_0xfa0028(0x1ac));break;}case t[_0xfa0028(0x254)]['id']:{let _0x511c1e=_0x37a310;_0x4b301c([{'range':_0x511c1e[_0xfa0028(0x4db)],'unitId':_0x511c1e[_0xfa0028(0x1eb)],'subUnitId':_0x511c1e[_0xfa0028(0x2f0)]}],_0xfa0028(0x2a8));break;}case t[_0xfa0028(0x42f)]['id']:{let _0x3143b1=_0x37a310;_0x3143b1[_0xfa0028(0x4ec)]&&_0x3143b1[_0xfa0028(0x4ec)][_0xfa0028(0x4f5)]>0x0&&_0x3143b1[_0xfa0028(0x2f0)]&&_0x4b301c(_0x3143b1[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x11c612=>({'range':_0x11c612,'unitId':_0x3143b1[_0xfa0028(0x1eb)],'subUnitId':_0x3143b1['subUnitId'],'showText':'setRowHeight'})),_0xfa0028(0x2ec));break;}case t[_0xfa0028(0x480)]['id']:{let _0x4c5457=_0x37a310;_0x4c5457[_0xfa0028(0x4ec)]&&_0x4c5457['ranges'][_0xfa0028(0x4f5)]>0x0&&_0x4c5457['subUnitId']&&_0x4b301c(_0x4c5457[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x38f0c4=>({'range':_0x38f0c4,'unitId':_0x4c5457['unitId'],'subUnitId':_0x4c5457[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x22f)})),_0xfa0028(0x41e));break;}case t['AddRangeProtectionMutation']['id']:{let _0x49e661=_0x37a310;_0x4b301c(_0x49e661[_0xfa0028(0x3f0)]['map'](_0x467735=>_0x467735['ranges'][_0xfa0028(0x403)](_0x5fa524=>({'range':_0x5fa524,'unitId':_0x49e661[_0xfa0028(0x1eb)],'subUnitId':_0x49e661[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x435)})))[_0xfa0028(0x1b2)](),'insertBorder');break;}case S[_0xfa0028(0x42d)]['id']:{let _0xa641c6=_0x37a310;_0x4b301c(_0xa641c6['rule'][_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x2a263e=>({'range':_0x2a263e,'unitId':_0xa641c6[_0xfa0028(0x1eb)],'subUnitId':_0xa641c6[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x408)})),_0xfa0028(0x4b2));break;}case p[_0xfa0028(0x53e)]['id']:{let _0x593cf9=_0x37a310;_0x4b301c((Array[_0xfa0028(0x42c)](_0x593cf9['rule'])?_0x593cf9[_0xfa0028(0x3cd)]:[_0x593cf9[_0xfa0028(0x3cd)]])[_0xfa0028(0x403)](_0x413bb3=>_0x413bb3[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0xa56380=>({'range':_0xa56380,'unitId':_0x593cf9[_0xfa0028(0x1eb)],'subUnitId':_0x593cf9[_0xfa0028(0x2f0)],'showText':'setDV'})))[_0xfa0028(0x1b2)](),_0xfa0028(0x4b2));break;}case t['DeleteRangeProtectionMutation']['id']:{let _0x58dddf=_0x37a310,_0x238930=_0x58dddf[_0xfa0028(0x1eb)],_0x41bb95=_0x58dddf[_0xfa0028(0x2f0)];_0x58dddf['ruleIds']&&_0x58dddf[_0xfa0028(0x524)]['length']>0x0&&_0x58dddf[_0xfa0028(0x2f0)]&&_0x58dddf[_0xfa0028(0x524)][_0xfa0028(0x345)](_0x100a69=>{const _0x166819=_0xfa0028;let _0x4339d6=this[_0x166819(0x561)][_0x166819(0x1b9)](_0x238930,_0x41bb95,_0x100a69),_0x5f4e2f=(_0x4339d6==null?void 0x0:_0x4339d6[_0x166819(0x4ec)][_0x166819(0x403)](_0x763205=>({'range':_0x763205,'unitId':_0x238930,'subUnitId':_0x41bb95,'showText':_0x166819(0x54f)})))||[];_0x5f4e2f['length']>0x0&&_0x4b301c(_0x5f4e2f,_0x166819(0x20b));});break;}case S[_0xfa0028(0x25b)]['id']:{let _0x1aea59=_0x37a310;if(_0x1aea59['cfId']&&_0x1aea59['subUnitId']){let _0x9059a6=this[_0xfa0028(0x208)]['getRule'](_0x1aea59[_0xfa0028(0x1eb)],_0x1aea59[_0xfa0028(0x2f0)],_0x1aea59[_0xfa0028(0x2ce)]);if(_0x9059a6){let _0x7ac7b0=_0x9059a6[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x41d1e7=>({'range':_0x41d1e7,'unitId':_0x1aea59[_0xfa0028(0x1eb)],'subUnitId':_0x1aea59['subUnitId'],'showText':_0xfa0028(0x243)}));_0x7ac7b0[_0xfa0028(0x4f5)]>0x0&&_0x4b301c(_0x7ac7b0,_0xfa0028(0x20b));}}break;}case p[_0xfa0028(0x28b)]['id']:{let _0x16db95=_0x37a310,_0x37522e=Array[_0xfa0028(0x42c)](_0x16db95[_0xfa0028(0x46f)])?_0x16db95[_0xfa0028(0x46f)]:[_0x16db95[_0xfa0028(0x46f)]];_0x37522e[_0xfa0028(0x4f5)]>0x0&&_0x16db95[_0xfa0028(0x2f0)]&&_0x37522e[_0xfa0028(0x345)](_0x382391=>{const _0x254ae6=_0xfa0028;let _0x38c126=this['_dataValidationModel'][_0x254ae6(0x333)](_0x16db95[_0x254ae6(0x1eb)],_0x16db95[_0x254ae6(0x2f0)],_0x382391),_0x5a5daa=(_0x38c126==null?void 0x0:_0x38c126['ranges'][_0x254ae6(0x403)](_0x147c37=>({'range':_0x147c37,'unitId':_0x16db95[_0x254ae6(0x1eb)],'subUnitId':_0x16db95['subUnitId'],'showText':_0x254ae6(0x3cf)})))||[];_0x5a5daa[_0x254ae6(0x4f5)]>0x0&&_0x4b301c(_0x5a5daa,'deleteBorder');});break;}case t['SetRangeProtectionMutation']['id']:{let _0x37d699=_0x37a310;_0x4b301c(_0x37d699[_0xfa0028(0x3cd)][_0xfa0028(0x4ec)]['map'](_0x4e4eea=>({'range':_0x4e4eea,'unitId':_0x37d699['unitId'],'subUnitId':_0x37d699[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x3d8)})),_0xfa0028(0x569));break;}case t[_0xfa0028(0x316)]['id']:{let _0x28dd28=_0x37a310;_0x4b301c([{'range':_0x28dd28['range'],'unitId':_0x28dd28[_0xfa0028(0x1eb)],'subUnitId':_0x28dd28[_0xfa0028(0x2f0)],'showText':'setWorksheetRangeTheme'}],_0xfa0028(0x569));break;}case t['DeleteWorksheetRangeThemeStyleMutation']['id']:{let _0x1f03f0=_0x37a310;_0x4b301c([{'range':_0x1f03f0[_0xfa0028(0x4db)],'unitId':_0x1f03f0[_0xfa0028(0x1eb)],'subUnitId':_0x1f03f0[_0xfa0028(0x2f0)],'showText':'deleteWorksheetRangeTheme'}],_0xfa0028(0x569));break;}case S[_0xfa0028(0x25a)]['id']:{let _0x27a6aa=_0x37a310;_0x4b301c(_0x27a6aa[_0xfa0028(0x3cd)][_0xfa0028(0x4ec)]['map'](_0x1bfff8=>({'range':_0x1bfff8,'unitId':_0x27a6aa[_0xfa0028(0x1eb)],'subUnitId':_0x27a6aa[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x408)})),'updateBorder');break;}case S[_0xfa0028(0x25c)]['id']:{let _0x51578b=_0x37a310,_0x53f453=this[_0xfa0028(0x208)][_0xfa0028(0x1b9)](_0x51578b['unitId'],_0x51578b[_0xfa0028(0x2f0)],_0x51578b[_0xfa0028(0x30d)]['id']),_0x16e98f=this['_conditionalFormattingRuleModel']['getRule'](_0x51578b['unitId'],_0x51578b[_0xfa0028(0x2f0)],_0x51578b[_0xfa0028(0x244)]['id']);_0x53f453&&_0x4b301c(_0x53f453[_0xfa0028(0x4ec)]['map'](_0x26fe7c=>({'range':_0x26fe7c,'unitId':_0x51578b[_0xfa0028(0x1eb)],'subUnitId':_0x51578b[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x4ff)})),_0xfa0028(0x20b)),_0x16e98f&&_0x4b301c(_0x16e98f[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x293298=>({'range':_0x293298,'unitId':_0x51578b[_0xfa0028(0x1eb)],'subUnitId':_0x51578b[_0xfa0028(0x2f0)],'showText':'moveCF'})),_0xfa0028(0x4b2));break;}case O[_0xfa0028(0x3d3)]['id']:{let _0x2b1af8=_0x37a310;_0x4b301c([{'range':_0x2b1af8[_0xfa0028(0x4db)],'unitId':_0x2b1af8[_0xfa0028(0x1eb)],'subUnitId':_0x2b1af8[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x222)}],_0xfa0028(0x569));break;}case O[_0xfa0028(0x3f4)]['id']:{let _0x509cbd=_0x37a310,_0x79bd1e=this['_sheetsFilterService'][_0xfa0028(0x20a)](_0x509cbd['unitId'],_0x509cbd[_0xfa0028(0x2f0)]);if(_0x79bd1e){let _0xeccc9b=_0x79bd1e[_0xfa0028(0x45c)]();_0x4b301c(_0xeccc9b?[{'range':_0xeccc9b,'unitId':_0x509cbd[_0xfa0028(0x1eb)],'subUnitId':_0x509cbd[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x531)}]:[],_0xfa0028(0x569));}break;}case O['RemoveSheetsFilterMutation']['id']:{let _0x25f317=_0x37a310,_0x422ace=this[_0xfa0028(0x4c5)][_0xfa0028(0x20a)](_0x25f317[_0xfa0028(0x1eb)],_0x25f317[_0xfa0028(0x2f0)]);if(_0x422ace){let _0x142469=_0x422ace[_0xfa0028(0x45c)]();_0x4b301c(_0x142469?[{'range':_0x142469,'unitId':_0x25f317[_0xfa0028(0x1eb)],'subUnitId':_0x25f317['subUnitId'],'showText':_0xfa0028(0x1f2)}]:[],'updateBorder');}break;}case O[_0xfa0028(0x3b3)]['id']:{let _0x39ce8c=_0x37a310,_0x455319=this[_0xfa0028(0x4c5)][_0xfa0028(0x20a)](_0x39ce8c['unitId'],_0x39ce8c[_0xfa0028(0x2f0)]);if(_0x455319){let _0x13fd27=_0x455319['getRange']();_0x4b301c(_0x13fd27?[{'range':_0x13fd27,'unitId':_0x39ce8c[_0xfa0028(0x1eb)],'subUnitId':_0x39ce8c['subUnitId'],'showText':_0xfa0028(0x1f2)}]:[],_0xfa0028(0x569));}break;}case p[_0xfa0028(0x19c)]['id']:{let _0x34a5e9=_0x37a310,_0x40ca7e=this[_0xfa0028(0x2de)][_0xfa0028(0x333)](_0x34a5e9[_0xfa0028(0x1eb)],_0x34a5e9[_0xfa0028(0x2f0)],_0x34a5e9['ruleId']);_0x40ca7e&&_0x4b301c(_0x40ca7e[_0xfa0028(0x4ec)][_0xfa0028(0x403)](_0x4ce73e=>({'range':_0x4ce73e,'unitId':_0x34a5e9[_0xfa0028(0x1eb)],'subUnitId':_0x34a5e9[_0xfa0028(0x2f0)],'showText':'setDV'})),'updateBorder');break;}case d['AddSheetSparklineMutation']['id']:{let _0x50f79f=_0x37a310,_0x5eecc2=_0x50f79f[_0xfa0028(0x1eb)],_0x10cbaa=_0x50f79f[_0xfa0028(0x2f0)],_0x14dfc9=_0x50f79f[_0xfa0028(0x422)];_0x50f79f['sparklineConfigMap']&&_0x10cbaa&&Object['keys'](_0x50f79f[_0xfa0028(0x422)])[_0xfa0028(0x345)](_0x2d9f98=>{const _0x2644eb=_0xfa0028;let _0x42108e=_0x14dfc9[_0x2d9f98],_0x55e9fd=Ce(_0x42108e[_0x2644eb(0x487)])['map'](_0x5a8887=>({'range':_0x5a8887,'unitId':_0x5eecc2,'subUnitId':_0x10cbaa,'showText':_0x2644eb(0x51e)}));_0x4b301c(_0x55e9fd,_0x2644eb(0x1ac));});break;}case d[_0xfa0028(0x3d0)]['id']:{let _0x925411=_0x37a310;_0x925411[_0xfa0028(0x2bc)]&&_0x925411[_0xfa0028(0x2bc)][_0xfa0028(0x4f5)]>0x0&&_0x925411['subUnitId']&&_0x925411[_0xfa0028(0x2bc)][_0xfa0028(0x345)](_0x4a9c20=>{const _0x3a5e5c=_0xfa0028;let _0x2eed83=this['_sparklineDataSourceModel'][_0x3a5e5c(0x506)](_0x925411[_0x3a5e5c(0x1eb)],_0x925411[_0x3a5e5c(0x2f0)],_0x4a9c20);if(_0x2eed83){let _0x1bd0ed=Ce(_0x2eed83[_0x3a5e5c(0x487)][_0x3a5e5c(0x23f)]())['map'](_0x542ad5=>({'range':_0x542ad5,'unitId':_0x925411['unitId'],'subUnitId':_0x925411['subUnitId'],'showText':_0x3a5e5c(0x2f6)}));_0x4b301c(_0x1bd0ed,_0x3a5e5c(0x2a8));}});break;}case d['RemoveSheetSparklineMutation']['id']:{let _0x12b164=_0x37a310;_0x12b164[_0xfa0028(0x2bc)]&&_0x12b164[_0xfa0028(0x2bc)][_0xfa0028(0x4f5)]>0x0&&_0x12b164['subUnitId']&&_0x12b164[_0xfa0028(0x2bc)][_0xfa0028(0x345)](_0x5f39e9=>{const _0x1350ac=_0xfa0028;let _0x5712ec=this[_0x1350ac(0x2a3)][_0x1350ac(0x506)](_0x12b164[_0x1350ac(0x1eb)],_0x12b164[_0x1350ac(0x2f0)],_0x5f39e9);if(_0x5712ec){let _0x33379f=Ce(_0x5712ec[_0x1350ac(0x487)][_0x1350ac(0x23f)]())[_0x1350ac(0x403)](_0x4f37e5=>({'range':_0x4f37e5,'unitId':_0x12b164['unitId'],'subUnitId':_0x12b164[_0x1350ac(0x2f0)],'showText':_0x1350ac(0x281)}));_0x4b301c(_0x33379f,'delete');}});break;}case j['AddSheetTableMutation']['id']:{let _0x1f1400=_0x37a310;_0x1f1400[_0xfa0028(0x2c2)]&&_0x1f1400[_0xfa0028(0x2f0)]&&_0x4b301c([{'range':_0x1f1400[_0xfa0028(0x4db)],'unitId':_0x1f1400[_0xfa0028(0x1eb)],'subUnitId':_0x1f1400[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x405)}],_0xfa0028(0x1ac));break;}case j[_0xfa0028(0x4a9)]['id']:{let _0x267172=_0x37a310;if(_0x267172[_0xfa0028(0x2c2)]&&_0x267172[_0xfa0028(0x2f0)]){var _0x3e55bc;let _0x4ef5da=(_0x3e55bc=this[_0xfa0028(0x1ab)][_0xfa0028(0x383)](_0x267172[_0xfa0028(0x1eb)],_0x267172[_0xfa0028(0x2c2)]))==null?void 0x0:_0x3e55bc['range'];_0x4ef5da&&_0x4b301c([{'range':_0x4ef5da,'unitId':_0x267172[_0xfa0028(0x1eb)],'subUnitId':_0x267172[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x4ca)}],'delete');}break;}case j[_0xfa0028(0x367)]['id']:{let _0x1db2fc=_0x2fc697[_0xfa0028(0x400)];if(_0x1db2fc[_0xfa0028(0x2c2)]){let _0x5de824=this[_0xfa0028(0x1ab)][_0xfa0028(0x383)](_0x1db2fc[_0xfa0028(0x1eb)],_0x1db2fc[_0xfa0028(0x2c2)]);_0x5de824&&_0x5de824[_0xfa0028(0x4db)]&&_0x5de824[_0xfa0028(0x2f0)]&&(_0x3be96e[_0xfa0028(0x4c2)][_0xfa0028(0x53b)](_0x5de824[_0xfa0028(0x2f0)]),_0x4b301c([{'range':_0x5de824[_0xfa0028(0x4db)],'unitId':_0x1db2fc[_0xfa0028(0x1eb)],'subUnitId':_0x5de824[_0xfa0028(0x2f0)],'showText':_0xfa0028(0x46c)}],_0xfa0028(0x2a8)));}break;}case j[_0xfa0028(0x221)]['id']:{let _0xe78c17=_0x37a310;if(_0xe78c17['tableId']&&_0xe78c17[_0xfa0028(0x2f0)]){var _0x40b9fd;let _0x510773=(_0x40b9fd=this[_0xfa0028(0x1ab)][_0xfa0028(0x383)](_0xe78c17['unitId'],_0xe78c17[_0xfa0028(0x2c2)]))==null?void 0x0:_0x40b9fd['range'];_0x510773&&_0x4b301c([{'range':_0x510773,'unitId':_0xe78c17['unitId'],'subUnitId':_0xe78c17['subUnitId'],'showText':_0xfa0028(0x554)}],_0xfa0028(0x2a8));}break;}case c[_0xfa0028(0x2d5)]['id']:{let _0x27e69d=_0x37a310;if(_0x27e69d['pivotTableId']&&_0x27e69d[_0xfa0028(0x2f0)]){var _0x2c52d0;let _0x1ebea2=(_0x2c52d0=this[_0xfa0028(0x2f1)][_0xfa0028(0x21a)](_0x27e69d[_0xfa0028(0x1eb)],_0x27e69d[_0xfa0028(0x2f0)],_0x27e69d['pivotTableId']))==null?void 0x0:_0x2c52d0[_0xfa0028(0x46e)];_0x1ebea2&&_0x4b301c((0x0,c[_0xfa0028(0x19f)])(_0x1ebea2)[_0xfa0028(0x403)](_0x22fd91=>({'range':_0x22fd91,'unitId':_0x27e69d[_0xfa0028(0x1eb)],'subUnitId':_0x27e69d['subUnitId'],'showText':_0xfa0028(0x1c5)})),_0xfa0028(0x1ac));}break;}case c[_0xfa0028(0x223)]['id']:{let _0x160b06=_0x37a310;if(_0x160b06[_0xfa0028(0x355)]&&_0x160b06['subUnitId']){var _0x35e807;let _0x5dd587=(_0x35e807=this[_0xfa0028(0x2f1)][_0xfa0028(0x21a)](_0x160b06['unitId'],_0x160b06[_0xfa0028(0x2f0)],_0x160b06[_0xfa0028(0x355)]))==null?void 0x0:_0x35e807[_0xfa0028(0x46e)];_0x5dd587&&_0x4b301c((0x0,c[_0xfa0028(0x19f)])(_0x5dd587)[_0xfa0028(0x403)](_0x35b809=>({'range':_0x35b809,'unitId':_0x160b06['unitId'],'subUnitId':_0x160b06['subUnitId'],'showText':'removePivotTable'})),_0xfa0028(0x454));}break;}case c['SetPivotOptionMutation']['id']:case c['SetPivotPositionMutation']['id']:case c['UpdatePivotTableSourceRangeMutation']['id']:case c[_0xfa0028(0x1e5)]['id']:case c[_0xfa0028(0x3d9)]['id']:case c[_0xfa0028(0x360)]['id']:case c[_0xfa0028(0x28d)]['id']:case c['UpdateValuePositionMutation']['id']:case c[_0xfa0028(0x3ac)]['id']:case c[_0xfa0028(0x553)]['id']:case c['SetPivotValueFilterMutation']['id']:case c[_0xfa0028(0x488)]['id']:case c['SetPivotCollapseMutation']['id']:case c[_0xfa0028(0x444)]['id']:case c[_0xfa0028(0x35b)]['id']:{let _0x26eb36=_0x37a310,_0x53d210=_0xfa0028(0x353);if(_0x390bda===c[_0xfa0028(0x37b)]['id']?_0x53d210=_0xfa0028(0x353):_0x390bda===c[_0xfa0028(0x30c)]['id']?_0x53d210='setPivotPosition':_0x390bda===c[_0xfa0028(0x282)]['id']?_0x53d210=_0xfa0028(0x1a1):_0x390bda===c[_0xfa0028(0x1e5)]['id']?_0x53d210=_0xfa0028(0x2b4):_0x390bda===c[_0xfa0028(0x3d9)]['id']?_0x53d210=_0xfa0028(0x538):_0x390bda===c[_0xfa0028(0x360)]['id']?_0x53d210=_0xfa0028(0x364):_0x390bda===c[_0xfa0028(0x28d)]['id']?_0x53d210=_0xfa0028(0x27c):_0x390bda===c[_0xfa0028(0x4ba)]['id']?_0x53d210=_0xfa0028(0x39f):_0x390bda===c[_0xfa0028(0x3ac)]['id']?_0x53d210=_0xfa0028(0x1bd):_0x390bda===c[_0xfa0028(0x553)]['id']?_0x53d210=_0xfa0028(0x248):_0x390bda===c[_0xfa0028(0x236)]['id']?_0x53d210=_0xfa0028(0x3da):_0x390bda===c[_0xfa0028(0x488)]['id']?_0x53d210='setPivotSort':_0x390bda===c[_0xfa0028(0x349)]['id']?_0x53d210=_0xfa0028(0x3ce):_0x390bda===c[_0xfa0028(0x35b)]['id']?_0x53d210=_0xfa0028(0x18f):_0x390bda===c[_0xfa0028(0x444)]['id']&&(_0x53d210='setPivotFieldFormat'),_0x26eb36[_0xfa0028(0x355)]&&_0x26eb36['subUnitId']){var _0x374a55;let _0x5e3582=(_0x374a55=this[_0xfa0028(0x2f1)][_0xfa0028(0x21a)](_0x26eb36[_0xfa0028(0x1eb)],_0x26eb36[_0xfa0028(0x2f0)],_0x26eb36[_0xfa0028(0x355)]))==null?void 0x0:_0x374a55[_0xfa0028(0x46e)];_0x5e3582&&_0x4b301c((0x0,c[_0xfa0028(0x19f)])(_0x5e3582)[_0xfa0028(0x403)](_0x30eecf=>({'range':_0x30eecf,'unitId':_0x26eb36[_0xfa0028(0x1eb)],'subUnitId':_0x26eb36[_0xfa0028(0x2f0)],'showText':_0x53d210})),_0xfa0028(0x2a8));}break;}case o[_0xfa0028(0x4dd)]['id']:{let _0x1504f8=_0x37a310;_0x1504f8[_0xfa0028(0x516)]&&_0x3be96e['insertDrawings'][_0xfa0028(0x53b)]({'drawingId':_0x1504f8[_0xfa0028(0x516)],'unitId':_0x1504f8[_0xfa0028(0x1eb)],'subUnitId':_0x1504f8[_0xfa0028(0x2f0)],'showText':_0x13f419});break;}case o[_0xfa0028(0x1ec)]['id']:{let _0x350341=_0x37a310;_0x350341['chartId']&&_0x3be96e[_0xfa0028(0x4aa)][_0xfa0028(0x53b)]({'drawingId':_0x350341['chartId'],'unitId':_0x350341[_0xfa0028(0x1eb)],'subUnitId':_0x350341[_0xfa0028(0x2f0)],'showText':_0x13f419});break;}case o[_0xfa0028(0x468)]['id']:{let _0x53e331=_0x2fc697[_0xfa0028(0x400)];if(_0x53e331[_0xfa0028(0x302)]){let _0x3f161e=this[_0xfa0028(0x249)][_0xfa0028(0x50b)](_0x53e331[_0xfa0028(0x1eb)],_0x53e331[_0xfa0028(0x302)]);_0x3f161e&&(_0x3be96e[_0xfa0028(0x4c2)][_0xfa0028(0x53b)](_0x3f161e),_0x3be96e['updateDrawings'][_0xfa0028(0x53b)]({'drawingId':_0x53e331[_0xfa0028(0x302)],'unitId':_0x53e331[_0xfa0028(0x1eb)],'subUnitId':_0x3f161e,'showText':_0x13f419}));}break;}case o[_0xfa0028(0x518)]['id']:{let _0x478713=_0x2fc697[_0xfa0028(0x400)];if(_0x478713[_0xfa0028(0x302)]){let _0x42bc90=this[_0xfa0028(0x249)][_0xfa0028(0x50b)](_0x478713[_0xfa0028(0x1eb)],_0x478713[_0xfa0028(0x302)]);_0x42bc90&&(_0x3be96e[_0xfa0028(0x4c2)][_0xfa0028(0x53b)](_0x42bc90),_0x3be96e[_0xfa0028(0x227)][_0xfa0028(0x53b)]({'drawingId':_0x478713[_0xfa0028(0x302)],'unitId':_0x478713[_0xfa0028(0x1eb)],'subUnitId':_0x42bc90,'showText':_0x13f419}));}break;}case l[_0xfa0028(0x4de)]['id']:{let _0xdf2ada=_0x37a310;_0xdf2ada[_0xfa0028(0x3c0)]&&_0x3be96e[_0xfa0028(0x294)][_0xfa0028(0x53b)]({'drawingId':_0xdf2ada[_0xfa0028(0x3c0)],'unitId':_0xdf2ada[_0xfa0028(0x1eb)],'subUnitId':_0xdf2ada[_0xfa0028(0x2f0)],'showText':_0x13f419});break;}case l[_0xfa0028(0x216)]['id']:{let _0x26c233=_0x37a310;_0x26c233[_0xfa0028(0x3c0)]&&_0x3be96e[_0xfa0028(0x4aa)]['push']({'drawingId':_0x26c233['shapeId'],'unitId':_0x26c233[_0xfa0028(0x1eb)],'subUnitId':_0x26c233[_0xfa0028(0x2f0)],'showText':_0x13f419});break;}case l[_0xfa0028(0x49e)]['id']:case l[_0xfa0028(0x514)]['id']:{let _0x3e5742=_0x37a310;_0x3e5742[_0xfa0028(0x3c0)]&&_0x3be96e[_0xfa0028(0x227)][_0xfa0028(0x53b)]({'drawingId':_0x3e5742['shapeId'],'unitId':_0x3e5742[_0xfa0028(0x1eb)],'subUnitId':_0x3e5742['subUnitId'],'showText':_0x13f419});break;}case E[_0xfa0028(0x207)]['id']:{let _0x5f53ab=_0x37a310,_0x194fdc=_0x5f53ab[_0xfa0028(0x2e1)],_0xb50d86=_0x5f53ab['type'],_0x4773f5=_0xb50d86!==E['DrawingApplyType'][_0xfa0028(0x484)]&&_0xb50d86!==E[_0xfa0028(0x1b0)][_0xfa0028(0x24f)],_0x571787=_0xb50d86===E['DrawingApplyType']['INSERT'],_0x22e1c6=_0xb50d86===E[_0xfa0028(0x1b0)][_0xfa0028(0x24f)],_0x367259=_0x13f419;if(_0xb50d86===E['DrawingApplyType'][_0xfa0028(0x484)]?_0x367259=this[_0xfa0028(0x4fb)]['t'](_0xfa0028(0x1b6)):_0xb50d86===E[_0xfa0028(0x1b0)][_0xfa0028(0x24f)]&&(_0x367259=this[_0xfa0028(0x4fb)]['t']('sheets-history-ui.viewer.action.removeDrawing')),Array['isArray'](_0x194fdc))_0x194fdc[_0xfa0028(0x345)](_0x5937f8=>{const _0x8a3404=_0xfa0028;if(_0x8a3404(0x266)in _0x5937f8&&_0x5937f8['drawingId'])_0x4773f5?_0x3be96e[_0x8a3404(0x227)][_0x8a3404(0x53b)]({'drawingId':_0x5937f8[_0x8a3404(0x266)],'unitId':_0x5f53ab['unitId'],'subUnitId':_0x5f53ab[_0x8a3404(0x2f0)],'showText':_0x367259}):_0x571787?_0x3be96e[_0x8a3404(0x294)][_0x8a3404(0x53b)]({'drawingId':_0x5937f8['drawingId'],'unitId':_0x5f53ab[_0x8a3404(0x1eb)],'subUnitId':_0x5f53ab[_0x8a3404(0x2f0)],'showText':_0x367259}):_0x22e1c6&&_0x3be96e[_0x8a3404(0x4aa)][_0x8a3404(0x53b)]({'drawingId':_0x5937f8[_0x8a3404(0x266)],'unitId':_0x5f53ab[_0x8a3404(0x1eb)],'subUnitId':_0x5f53ab[_0x8a3404(0x2f0)],'showText':_0x367259});else{if('parent'in _0x5937f8&&'children'in _0x5937f8){var _0x40f177,_0xbfbcb1;(_0x40f177=_0x5937f8[_0x8a3404(0x2d3)])!=null&&_0x40f177[_0x8a3404(0x266)]&&(_0x4773f5?_0x3be96e[_0x8a3404(0x227)][_0x8a3404(0x53b)]({'drawingId':_0x5937f8[_0x8a3404(0x2d3)][_0x8a3404(0x266)],'unitId':_0x5f53ab['unitId'],'subUnitId':_0x5f53ab[_0x8a3404(0x2f0)],'showText':_0x367259}):_0x571787?_0x3be96e[_0x8a3404(0x294)]['push']({'drawingId':_0x5937f8[_0x8a3404(0x2d3)][_0x8a3404(0x266)],'unitId':_0x5f53ab[_0x8a3404(0x1eb)],'subUnitId':_0x5f53ab['subUnitId'],'showText':_0x367259}):_0x22e1c6&&_0x3be96e[_0x8a3404(0x4aa)][_0x8a3404(0x53b)]({'drawingId':_0x5937f8['parent'][_0x8a3404(0x266)],'unitId':_0x5f53ab[_0x8a3404(0x1eb)],'subUnitId':_0x5f53ab[_0x8a3404(0x2f0)],'showText':_0x367259})),(_0xbfbcb1=_0x5937f8[_0x8a3404(0x3b8)])==null||_0xbfbcb1[_0x8a3404(0x345)](_0x3bc8c7=>{const _0x34e20e=_0x8a3404;_0x3bc8c7[_0x34e20e(0x266)]&&(_0x4773f5?_0x3be96e['updateDrawings'][_0x34e20e(0x53b)]({'drawingId':_0x3bc8c7[_0x34e20e(0x266)],'unitId':_0x5f53ab[_0x34e20e(0x1eb)],'subUnitId':_0x5f53ab[_0x34e20e(0x2f0)],'showText':_0x367259}):_0x571787?_0x3be96e['insertDrawings'][_0x34e20e(0x53b)]({'drawingId':_0x3bc8c7[_0x34e20e(0x266)],'unitId':_0x5f53ab[_0x34e20e(0x1eb)],'subUnitId':_0x5f53ab['subUnitId'],'showText':_0x367259}):_0x22e1c6&&_0x3be96e[_0x34e20e(0x4aa)][_0x34e20e(0x53b)]({'drawingId':_0x3bc8c7[_0x34e20e(0x266)],'unitId':_0x5f53ab[_0x34e20e(0x1eb)],'subUnitId':_0x5f53ab[_0x34e20e(0x2f0)],'showText':_0x367259}));});}}});else{if(_0x194fdc&&typeof _0x194fdc==_0xfa0028(0x4f2)){if('drawingIds'in _0x194fdc&&Array[_0xfa0028(0x42c)](_0x194fdc['drawingIds']))_0x194fdc['drawingIds']['forEach'](_0x448279=>{const _0x2a7ede=_0xfa0028;_0x4773f5?_0x3be96e[_0x2a7ede(0x227)][_0x2a7ede(0x53b)]({'drawingId':_0x448279,'unitId':_0x5f53ab['unitId'],'subUnitId':_0x5f53ab['subUnitId'],'showText':_0x367259}):_0x571787?_0x3be96e[_0x2a7ede(0x294)]['push']({'drawingId':_0x448279,'unitId':_0x5f53ab['unitId'],'subUnitId':_0x5f53ab[_0x2a7ede(0x2f0)],'showText':_0x367259}):_0x22e1c6&&_0x3be96e[_0x2a7ede(0x4aa)]['push']({'drawingId':_0x448279,'unitId':_0x5f53ab[_0x2a7ede(0x1eb)],'subUnitId':_0x5f53ab[_0x2a7ede(0x2f0)],'showText':_0x367259});});else{if('parent'in _0x194fdc&&_0xfa0028(0x3b8)in _0x194fdc){var _0x56e6c1,_0x3af8c1;(_0x56e6c1=_0x194fdc[_0xfa0028(0x2d3)])!=null&&_0x56e6c1[_0xfa0028(0x266)]&&(_0x4773f5?_0x3be96e['updateDrawings'][_0xfa0028(0x53b)]({'drawingId':_0x194fdc[_0xfa0028(0x2d3)]['drawingId'],'unitId':_0x5f53ab[_0xfa0028(0x1eb)],'subUnitId':_0x5f53ab[_0xfa0028(0x2f0)],'showText':_0x367259}):_0x571787?_0x3be96e['insertDrawings'][_0xfa0028(0x53b)]({'drawingId':_0x194fdc[_0xfa0028(0x2d3)][_0xfa0028(0x266)],'unitId':_0x5f53ab[_0xfa0028(0x1eb)],'subUnitId':_0x5f53ab[_0xfa0028(0x2f0)],'showText':_0x367259}):_0x22e1c6&&_0x3be96e[_0xfa0028(0x4aa)][_0xfa0028(0x53b)]({'drawingId':_0x194fdc['parent'][_0xfa0028(0x266)],'unitId':_0x5f53ab[_0xfa0028(0x1eb)],'subUnitId':_0x5f53ab[_0xfa0028(0x2f0)],'showText':_0x367259})),(_0x3af8c1=_0x194fdc[_0xfa0028(0x3b8)])==null||_0x3af8c1[_0xfa0028(0x345)](_0x34ea3e=>{const _0x18bb66=_0xfa0028;_0x34ea3e[_0x18bb66(0x266)]&&(_0x4773f5?_0x3be96e[_0x18bb66(0x227)]['push']({'drawingId':_0x34ea3e[_0x18bb66(0x266)],'unitId':_0x5f53ab[_0x18bb66(0x1eb)],'subUnitId':_0x5f53ab[_0x18bb66(0x2f0)],'showText':_0x367259}):_0x571787?_0x3be96e['insertDrawings']['push']({'drawingId':_0x34ea3e['drawingId'],'unitId':_0x5f53ab[_0x18bb66(0x1eb)],'subUnitId':_0x5f53ab[_0x18bb66(0x2f0)],'showText':_0x367259}):_0x22e1c6&&_0x3be96e[_0x18bb66(0x4aa)][_0x18bb66(0x53b)]({'drawingId':_0x34ea3e[_0x18bb66(0x266)],'unitId':_0x5f53ab[_0x18bb66(0x1eb)],'subUnitId':_0x5f53ab['subUnitId'],'showText':_0x367259}));});}}}}break;}}return _0x3be96e;}[_0x31d253(0x3c7)](_0x23f300){const _0x1da6ac=_0x31d253;if(_0x23f300[_0x1da6ac(0x4f5)]<=0x1)return _0x23f300;let _0x2bd958=new Map();return _0x23f300[_0x1da6ac(0x345)](_0x20bd01=>{const _0x2ff436=_0x1da6ac;let {unitId:_0x43e0ec,subUnitId:_0x5cb82c}=_0x20bd01,_0x288a8b=_0x43e0ec+'-'+_0x5cb82c;if(!_0x2bd958[_0x2ff436(0x4be)](_0x288a8b))_0x2bd958['set'](_0x288a8b,[_0x20bd01]);else{var _0x95cc32;(_0x95cc32=_0x2bd958['get'](_0x288a8b))==null||_0x95cc32[_0x2ff436(0x53b)](_0x20bd01);}}),Array[_0x1da6ac(0x357)](_0x2bd958[_0x1da6ac(0x389)]())[_0x1da6ac(0x403)](_0x33a43e=>new t[(_0x1da6ac(0x336))]()[_0x1da6ac(0x445)](..._0x33a43e[_0x1da6ac(0x403)](_0x50220e=>_0x50220e[_0x1da6ac(0x4db)]))['merge']()[_0x1da6ac(0x403)](_0x3545a3=>({'range':_0x3545a3,'unitId':_0x33a43e[0x0][_0x1da6ac(0x1eb)],'subUnitId':_0x33a43e[0x0]['subUnitId'],'showText':_0x33a43e[0x0][_0x1da6ac(0x3ec)],'highlightRow':_0x33a43e[0x0]['highlightRow'],'highlightColumn':_0x33a43e[0x0]['highlightColumn']})))[_0x1da6ac(0x1b2)]();}};J=W([U(0x0,(0x0,e[_0x31d253(0x570)])(q)),U(0x1,n[_0x31d253(0x3fd)]),U(0x2,n[_0x31d253(0x209)]),U(0x3,(0x0,e[_0x31d253(0x570)])(t[_0x31d253(0x423)])),U(0x4,(0x0,e['Inject'])(S[_0x31d253(0x20f)])),U(0x5,(0x0,e[_0x31d253(0x570)])(w['SheetDataValidationModel'])),U(0x6,(0x0,e[_0x31d253(0x570)])(O[_0x31d253(0x1d4)])),U(0x7,(0x0,e[_0x31d253(0x570)])(d['SparklineDataSourceModel'])),U(0x8,(0x0,e[_0x31d253(0x570)])(c['SheetsPivotTableConfigModel'])),U(0x9,(0x0,e[_0x31d253(0x570)])(j['SheetTableService'])),U(0xa,(0x0,e['Inject'])(e[_0x31d253(0x31c)])),U(0xb,(0x0,e['Inject'])(o['SheetsChartService'])),U(0xc,(0x0,e[_0x31d253(0x570)])(G)),U(0xd,e['ILogService'])],J);function Se(_0x35aed8){const _0x521347=_0x31d253;return new e['ObjectMatrix'](_0x35aed8)[_0x521347(0x47b)]();}function Ce(_0x76436f){const _0x1b083e=_0x31d253;let _0x576525=new e[(_0x1b083e(0x31d))](_0x76436f),_0x51c769=new e[(_0x1b083e(0x31d))]();return _0x576525[_0x1b083e(0x45b)]((_0x5c9a49,_0x26294b)=>{const _0x4133bb=_0x1b083e;_0x51c769[_0x4133bb(0x482)](_0x5c9a49,_0x26294b,0x1);}),(0x0,t['findAllRectangle'])(_0x51c769);}const we=[{'key':0x0,'labelKey':_0x31d253(0x22b)},{'key':0x1,'labelKey':_0x31d253(0x2d0)},{'key':0x2,'labelKey':_0x31d253(0x4a8)}];function Te(_0x2ed825){const _0x2a82c2=_0x31d253;let {value:_0x451e4b,onChange:_0x5e674d}=_0x2ed825,_0x506822=(0x0,N[_0x2a82c2(0x2da)])(e[_0x2a82c2(0x31c)]),_0x325362=we[_0x2a82c2(0x403)](_0x2e9f31=>({'label':_0x506822['t'](_0x2e9f31[_0x2a82c2(0x1c9)]),'value':_0x2e9f31['key']}));return(0x0,R[_0x2a82c2(0x2e4)])('div',{'className':'univer-relative\x20univer-h-8','children':(0x0,R[_0x2a82c2(0x2e4)])(m[_0x2a82c2(0x265)],{'items':_0x325362,'value':_0x451e4b,'onChange':_0x5e674d})});}function Ee(){const _0x397664=_0x31d253;var _0x593ca3;let _0x2be92e=(0x0,N['useDependency'])(q),_0x55cc28=(0x0,N[_0x397664(0x2da)])(G),_0x5f4234=(0x0,N[_0x397664(0x2da)])(J),_0x1e49d6=(0x0,N[_0x397664(0x2da)])(e['IConfigService']),_0x54371e=(0x0,N[_0x397664(0x53f)])(_0x2be92e[_0x397664(0x4cb)]),_0xc4cd83=(0x0,N[_0x397664(0x53f)])(_0x2be92e[_0x397664(0x2c3)],[]),[_0x32b86f,_0x27434c]=(0x0,I[_0x397664(0x203)])(()=>new Set()),[_0x263555,_0xd6db45]=(0x0,I[_0x397664(0x203)])(()=>new Map()),[_0x906fe6,_0x5cf31a]=(0x0,I['useState'])(()=>new Set()),[_0x557b02,_0x313935]=(0x0,I[_0x397664(0x203)])(0x0),_0xc9d957=(0x0,N['useDependency'])(e[_0x397664(0x31c)]),_0x1edb28=(0x0,I['useRef'])(null),[_0x896864,_0x86fb73]=(0x0,I[_0x397664(0x203)])(!0x1),[_0x36f684,_0x58a142]=(0x0,I[_0x397664(0x203)])([]),_0x4f42fc=((_0x593ca3=_0x1e49d6['getConfig'](_0x397664(0x1d5)))==null?void 0x0:_0x593ca3[_0x397664(0x21c)])??!0x1,_0x5d8716=be(_0x54371e),[_0x45da7f,_0x21c98f]=(0x0,I[_0x397664(0x203)])([]),_0x5d5e09=(0x0,I[_0x397664(0x507)])(()=>_0xc4cd83[_0x397664(0x403)](_0x19bd41=>({'key':_0x19bd41[_0x397664(0x46a)],'label':_0x19bd41[_0x397664(0x56d)]})),[_0xc4cd83]);(0x0,I[_0x397664(0x26a)])(()=>{const _0x32d946=_0x397664;_0x2be92e[_0x32d946(0x1cc)]()[_0x32d946(0x314)](()=>void 0x0);},[_0x2be92e]);let _0x88679e=(0x0,I[_0x397664(0x1db)])(_0x26b2d0=>{const _0x3dea85=_0x397664;_0x21c98f([]),_0x313935(_0x26b2d0),_0x2be92e[_0x3dea85(0x1eb)]&&_0x2be92e[_0x3dea85(0x2a5)](_0x2be92e[_0x3dea85(0x1eb)],{'origin':_0x26b2d0})['catch'](()=>void 0x0);},[_0x2be92e]);(0x0,I['useEffect'])(()=>{const _0x4cb88a=_0x397664;let _0x23e77e=_0x1edb28[_0x4cb88a(0x46d)];if(!_0x23e77e)return;let _0x275de8,_0x2c3d94=()=>{clearTimeout(_0x275de8),_0x275de8=setTimeout(()=>{const _0x2e0712=_0x4c20;let {scrollTop:_0x489c4a,scrollHeight:_0x34667b,clientHeight:_0x5882ec}=_0x23e77e;_0x489c4a+_0x5882ec>=_0x34667b-0x5&&_0x2be92e['loadMoreVersions']()[_0x2e0712(0x314)](()=>void 0x0);},0x64);};return _0x23e77e[_0x4cb88a(0x278)]('scroll',_0x2c3d94),()=>{const _0xcd1f3=_0x4cb88a;clearTimeout(_0x275de8),_0x23e77e[_0xcd1f3(0x4da)]('scroll',_0x2c3d94);};},[_0x2be92e]);let _0x537ab6=(0x0,I[_0x397664(0x1db)])(async _0xba4147=>{const _0x1b016f=_0x397664;let _0x1224b5=_0xba4147['id'];if(_0x32b86f[_0x1b016f(0x4be)](_0x1224b5)){_0x27434c(_0x2d0669=>{const _0x48148b=_0x1b016f;let _0x11b70a=new Set(_0x2d0669);return _0x11b70a[_0x48148b(0x454)](_0x1224b5),_0x11b70a;});return;}if(_0x263555[_0x1b016f(0x4be)](_0x1224b5)){_0x27434c(_0x4f5c3e=>new Set(_0x4f5c3e)['add'](_0x1224b5));return;}_0x5cf31a(_0x4a93de=>new Set(_0x4a93de)[_0x1b016f(0x445)](_0x1224b5));try{var _0x4d75ce;let _0x1396df=_0x2be92e[_0x1b016f(0x1eb)];if(!_0x1396df)return;let _0x5b9a22=await _0x55cc28['getHistoryChangesets']({},{'unitId':_0x1396df,'startRevision':_0xba4147['startRev'],'endRevision':_0xba4147[_0x1b016f(0x262)]});if(((_0x4d75ce=_0x5b9a22[_0x1b016f(0x3c6)])==null?void 0x0:_0x4d75ce[_0x1b016f(0x4d3)])===0x1&&_0x5b9a22[_0x1b016f(0x2c4)]){let _0x1bb7aa=_0x5b9a22[_0x1b016f(0x2c4)][_0x1b016f(0x476)]()[_0x1b016f(0x403)](_0x40ebc2=>{const _0x10e018=_0x1b016f;var _0x5f594f,_0x33f7c6;let _0x4438c6=(0x0,n[_0x10e018(0x326)])(_0x40ebc2),_0x16ab86=_0x40ebc2[_0x10e018(0x54b)]||_0x4438c6['userID'],_0x48ace5=(_0x5f594f=_0x5b9a22[_0x10e018(0x2e8)])==null?void 0x0:_0x5f594f[_0x16ab86],_0x114b85=((_0x33f7c6=_0x40ebc2['mutations'])==null?void 0x0:_0x33f7c6['map'](_0x297080=>_0x297080['id']))||[];return{'id':_0x1224b5+_0x10e018(0x491)+_0x40ebc2['revision'],'unitId':_0x40ebc2[_0x10e018(0x385)],'startRev':_0x40ebc2[_0x10e018(0x22d)],'endRev':_0x40ebc2[_0x10e018(0x22d)],'time':_0x40ebc2['createTime']?_0x40ebc2['createTime']*0x3e8:void 0x0,'user':(_0x48ace5==null?void 0x0:_0x48ace5[_0x10e018(0x56d)])||'','users':[(_0x48ace5==null?void 0x0:_0x48ace5['name'])||''],'commands':_0x114b85,'isAnonymous':!0x1,'isDetail':!0x0,'parentId':_0x1224b5,'additionalFields':_0x40ebc2['additionalFields']};});_0xd6db45(_0x4eef2d=>new Map(_0x4eef2d)[_0x1b016f(0x3b5)](_0x1224b5,_0x1bb7aa)),_0x1bb7aa[_0x1b016f(0x345)](_0x3e345b=>{const _0x46062c=_0x1b016f;_0x2be92e[_0x46062c(0x2ad)](_0x3e345b);});for(let _0x408459 of _0x1bb7aa)await _0x5f4234['ensureVersion'](_0x408459['id']);_0x27434c(_0x339d1b=>new Set(_0x339d1b)[_0x1b016f(0x445)](_0x1224b5));}}catch(_0x1a7444){console['error'](_0x1b016f(0x412),_0x1a7444);}finally{_0x5cf31a(_0x127dcd=>{const _0xfbbbed=_0x1b016f;let _0x318521=new Set(_0x127dcd);return _0x318521[_0xfbbbed(0x454)](_0x1224b5),_0x318521;});}},[_0x32b86f,_0x263555,_0x2be92e,_0x55cc28,_0x5f4234]);return _0x54371e?(0x0,R[_0x397664(0x3e6)])(_0x397664(0x1e9),{'ref':_0x1edb28,'className':_0x397664(0x551),'children':[_0x4f42fc&&(0x0,R[_0x397664(0x3e6)])('div',{'className':'univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-bg-gray-0\x20dark:!univer-bg-gray-200','children':[(0x0,R[_0x397664(0x2e4)])(_0x397664(0x1e9),{'className':_0x397664(0x3f5),'children':(0x0,R[_0x397664(0x2e4)])(Te,{'value':_0x557b02,'onChange':_0x88679e})}),(0x0,R[_0x397664(0x2e4)])(m[_0x397664(0x2c9)],{'align':_0x397664(0x244),'open':_0x896864,'onOpenChange':_0x41410b=>{_0x86fb73(_0x41410b),_0x41410b&&_0x58a142(_0x45da7f);},'overlay':(0x0,R[_0x397664(0x3e6)])(_0x397664(0x1e9),{'className':'univer-min-w-[240px]','children':[(0x0,R[_0x397664(0x2e4)])(_0x397664(0x1e9),{'className':_0x397664(0x560),'children':_0xc9d957['t'](_0x397664(0x2bd))}),(0x0,R[_0x397664(0x2e4)])(_0x397664(0x1e9),{'className':_0x397664(0x305)}),(0x0,R[_0x397664(0x2e4)])(_0x397664(0x1e9),{'className':_0x397664(0x1e1),'children':_0x5d5e09[_0x397664(0x403)](_0x64170=>{const _0x573727=_0x397664;let _0x1e5e68=_0x36f684[_0x573727(0x499)](_0x64170[_0x573727(0x35e)]);return(0x0,R[_0x573727(0x3e6)])(_0x573727(0x1e9),{'className':_0x573727(0x543),'onClick':()=>{const _0x4158d4=_0x573727;let _0x2070b7=_0x1e5e68?_0x36f684[_0x4158d4(0x350)](_0x1569a3=>_0x1569a3!==_0x64170[_0x4158d4(0x35e)]):[..._0x36f684,_0x64170['key']];_0x58a142(_0x2070b7);},'children':[(0x0,R[_0x573727(0x2e4)])(m[_0x573727(0x40d)],{'checked':_0x1e5e68}),(0x0,R[_0x573727(0x2e4)])(_0x573727(0x4f1),{'className':_0x573727(0x34e),'children':_0x64170[_0x573727(0x4ee)]})]},_0x64170[_0x573727(0x35e)]);})}),(0x0,R['jsx'])(_0x397664(0x1e9),{'className':_0x397664(0x305)}),(0x0,R[_0x397664(0x3e6)])(_0x397664(0x1e9),{'className':_0x397664(0x323),'children':[(0x0,R['jsx'])(m[_0x397664(0x566)],{'variant':_0x397664(0x2b1),'onClick':()=>{_0x58a142(_0x45da7f),_0x86fb73(!0x1);},'children':_0xc9d957['t']('sheets-history-ui.viewer.panel.filterCollaboratorCancel')}),(0x0,R[_0x397664(0x2e4)])(m['Button'],{'onClick':()=>{const _0xd2b8df=_0x397664;_0x21c98f(_0x36f684),_0x2be92e[_0xd2b8df(0x1eb)]&&_0x2be92e[_0xd2b8df(0x2a5)](_0x2be92e[_0xd2b8df(0x1eb)],{'origin':_0x557b02,'userIds':_0x36f684})[_0xd2b8df(0x314)](()=>void 0x0),_0x86fb73(!0x1);},'children':_0xc9d957['t'](_0x397664(0x2a1))})]})]}),'children':(0x0,R['jsx'])(m[_0x397664(0x566)],{'variant':_0x397664(0x2b1),'children':(0x0,R[_0x397664(0x2e4)])(F['FunnelIcon'],{'className':(0x0,m['clsx'])(_0x397664(0x52d),{'univer-text-blue-600\x20dark:!univer-text-blue-400':_0x45da7f['length']>0x0})})})})]}),(0x0,R['jsx'])('div',{'className':_0x397664(0x354),'children':_0x5d8716['map'](_0x326be0=>(0x0,R['jsxs'])(I[_0x397664(0x1bc)],{'children':[(0x0,R['jsx'])(Oe,{'date':_0x326be0[_0x397664(0x392)],'startDate':_0x326be0[_0x397664(0x4b4)],'endDate':_0x326be0[_0x397664(0x3cc)]}),_0x326be0[_0x397664(0x26c)][_0x397664(0x403)](_0x2fd48a=>{const _0x5005a7=_0x397664;let _0x21a740=_0x32b86f[_0x5005a7(0x4be)](_0x2fd48a['id']),_0x19fd75=_0x906fe6['has'](_0x2fd48a['id']),_0x596e1b=_0x263555[_0x5005a7(0x361)](_0x2fd48a['id'])||[];return(0x0,R[_0x5005a7(0x3e6)])(I[_0x5005a7(0x1bc)],{'children':[(0x0,R[_0x5005a7(0x2e4)])(ke,{'item':_0x2fd48a,'onToggleExpand':_0x537ab6,'isExpanded':_0x21a740,'isLoadingDetail':_0x19fd75}),_0x21a740&&_0x596e1b[_0x5005a7(0x403)]((_0x508e9e,_0x1d4ffb)=>(0x0,R[_0x5005a7(0x3e6)])(_0x5005a7(0x1e9),{'className':_0x5005a7(0x3a0),'children':[(0x0,R['jsxs'])(_0x5005a7(0x1e9),{'className':_0x5005a7(0x380),'children':[_0x1d4ffb<_0x596e1b[_0x5005a7(0x4f5)]-0x1&&(0x0,R[_0x5005a7(0x2e4)])(_0x5005a7(0x1e9),{'className':_0x5005a7(0x404)}),_0x1d4ffb===_0x596e1b[_0x5005a7(0x4f5)]-0x1&&(0x0,R[_0x5005a7(0x2e4)])(_0x5005a7(0x1e9),{'className':'univer-absolute\x20univer-left-0\x20univer-top-0\x20univer-h-1/2\x20univer-w-px\x20univer-bg-gray-100\x20rtl:univer-left-auto\x20rtl:univer-right-0\x20dark:!univer-bg-gray-800'}),(0x0,R[_0x5005a7(0x2e4)])(_0x5005a7(0x1e9),{'className':'univer-absolute\x20univer-left-0\x20univer-top-1/2\x20univer-h-px\x20univer-w-2.5\x20-univer-translate-y-1/2\x20univer-bg-gray-100\x20rtl:univer-left-auto\x20rtl:univer-right-0\x20dark:!univer-bg-gray-800'})]}),(0x0,R[_0x5005a7(0x2e4)])(ke,{'item':_0x508e9e,'isDetail':!0x0})]},_0x2fd48a['id']+_0x5005a7(0x491)+_0x508e9e['id']))]},_0x2fd48a['id']);})]},_0x326be0[_0x397664(0x392)]))})]}):(0x0,R[_0x397664(0x2e4)])(De,{});}function De(){const _0x2b2275=_0x31d253;return(0x0,R[_0x2b2275(0x2e4)])(_0x2b2275(0x1e9),{'className':'univer-flex\x20univer-items-center\x20univer-justify-center','children':(0x0,R[_0x2b2275(0x2e4)])('span',{'className':_0x2b2275(0x4ed),'children':(0x0,R[_0x2b2275(0x2e4)])(F[_0x2b2275(0x3a6)],{'className':_0x2b2275(0x39e)})})});}function Oe(_0x3a0e83){const _0x4512e9=_0x31d253;let _0x3b8b54=(0x0,N[_0x4512e9(0x2da)])(e['LocaleService']),{date:_0x28546b,startDate:_0x1b71fc=_0x28546b}=_0x3a0e83;return(0x0,R['jsx'])(_0x4512e9(0x1e9),{'className':_0x4512e9(0x235),'children':ye(_0x1b71fc,_0x3b8b54)});}function ke(_0x5c506c){const _0x5a7a98=_0x31d253;let {item:_0x489deb,onToggleExpand:_0x1d7c3e,isExpanded:_0x2f8cf8,isLoadingDetail:_0x5bb9c5,isDetail:_0x55110a}=_0x5c506c,{time:_0x36aa3c,user:_0xd22596,startRevCreateTime:_0x30a2f4,endRevCreateTime:_0x551dc1,users:_0x5bb0dd}=_0x489deb,_0x3e9175=(0x0,N[_0x5a7a98(0x2da)])(q),_0x2475f7=(0x0,N[_0x5a7a98(0x2da)])(J),_0x25291d=(0x0,N['useObservable'])(_0x3e9175[_0x5a7a98(0x53c)],'',!0x0)===_0x489deb['id'],_0x1e01cc=_0x3e9175[_0x5a7a98(0x494)]()===_0x489deb['endRev'],_0x4bb62c=!_0x1e01cc&&_0x3e9175[_0x5a7a98(0x4ac)],_0x2086fc=(0x0,N['useDependency'])(e[_0x5a7a98(0x31c)]),_0x22c0a9=K(_0x36aa3c,_0x2086fc),_0x127162=K(_0x30a2f4,_0x2086fc),_0x21d2a7=K(_0x551dc1,_0x2086fc),_0x19d597=_0x2086fc['t'](_0x5a7a98(0x372)),_0x5a8733=_0x489deb[_0x5a7a98(0x1a2)]!==_0x489deb[_0x5a7a98(0x262)],_0x4f981e=!!_0x489deb[_0x5a7a98(0x327)],_0x58a7f5=(0x0,I[_0x5a7a98(0x507)])(()=>{const _0x153725=_0x5a7a98;let _0x6ab80b=_0xd22596||_0x2086fc['t']('sheets-history-ui.viewer.panel.unknownUser');return _0x5bb0dd&&_0x5bb0dd[_0x153725(0x350)](_0x2a9f44=>_0x2a9f44)[_0x153725(0x4f5)]>0x0&&(_0x6ab80b=_0x5bb0dd[_0x153725(0x350)](_0x20b6c4=>_0x20b6c4)[_0x153725(0x4bd)](',\x20')),_0x4f981e?''+_0x2086fc['t'](_0x153725(0x28c))+(_0x6ab80b?'\x20('+_0x6ab80b+')':''):_0x6ab80b;},[_0x4f981e,_0xd22596,_0x5bb0dd,_0x2086fc]),_0x1810e8=(0x0,I['useCallback'])(async _0x5dbd53=>{const _0x1bdc23=_0x5a7a98;_0x3e9175[_0x1bdc23(0x2a9)]!==_0x1bdc23(0x3a5)&&(_0x3e9175['selectVersion'](_0x5dbd53),_0x55110a&&(await _0x2475f7[_0x1bdc23(0x481)](_0x5dbd53),await _0x3e9175['triggerLoadSheet'](_0x5dbd53)));},[_0x3e9175,_0x2475f7,_0x55110a]),_0xf4449a=(0x0,I['useCallback'])(_0x59dc25=>{const _0x20cc60=_0x5a7a98;_0x3e9175[_0x20cc60(0x38b)](_0x59dc25)['catch'](()=>void 0x0);},[_0x3e9175]),_0x4ba1bd=(0x0,I['useCallback'])(_0x40b20d=>{const _0x17a25a=_0x5a7a98;_0x40b20d['stopPropagation'](),_0x1d7c3e&&!_0x5bb9c5&&_0x1d7c3e(_0x489deb)[_0x17a25a(0x314)](()=>void 0x0);},[_0x1d7c3e,_0x489deb,_0x5bb9c5]),_0x12d1db=(0x0,R[_0x5a7a98(0x2e4)])(F[_0x5a7a98(0x550)],{'className':_0x5a7a98(0x2b3)});_0x5bb9c5?_0x12d1db=(0x0,R[_0x5a7a98(0x2e4)])(F[_0x5a7a98(0x3a6)],{'className':_0x5a7a98(0x4e9)}):_0x2f8cf8&&(_0x12d1db=(0x0,R[_0x5a7a98(0x2e4)])(F['MoreDownIcon'],{'className':'univer-size-8\x20univer-text-gray-400'}));let _0x21fe71=_0x127162[_0x5a7a98(0x288)];return _0x55110a?_0x21fe71=_0x22c0a9[_0x5a7a98(0x288)]:_0x30a2f4!==_0x551dc1&&(_0x21fe71=_0x127162['time']+_0x5a7a98(0x1a7)+_0x21d2a7[_0x5a7a98(0x288)]),(0x0,R['jsxs'])('div',{'className':(0x0,m['clsx'])(_0x5a7a98(0x562),{'univer-bg-gray-50\x20dark:!univer-bg-gray-900':_0x25291d,'univer-ml-6\x20rtl:univer-ml-0\x20rtl:univer-mr-6':_0x55110a}),'onClick':()=>_0x1810e8(_0x489deb['id'])[_0x5a7a98(0x314)](()=>void 0x0),'children':[(0x0,R['jsx'])('div',{'className':_0x5a7a98(0x31e),'children':_0x5a8733&&!_0x55110a&&(0x0,R[_0x5a7a98(0x2e4)])(_0x5a7a98(0x1e9),{'onClick':_0x4ba1bd,'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x12d1db})}),(0x0,R['jsxs'])('div',{'className':_0x5a7a98(0x3e3),'children':[(0x0,R[_0x5a7a98(0x3e6)])('div',{'className':_0x5a7a98(0x31f),'children':[(0x0,R[_0x5a7a98(0x3e6)])(_0x5a7a98(0x1e9),{'className':_0x5a7a98(0x192),'children':[_0x4f981e&&(0x0,R[_0x5a7a98(0x2e4)])(F['AiAssistantMultiIcon'],{'className':_0x5a7a98(0x431)}),(0x0,R[_0x5a7a98(0x2e4)])(_0x5a7a98(0x4f1),{'className':'univer-break-all\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x58a7f5}),(0x0,R[_0x5a7a98(0x2e4)])('span',{'className':_0x5a7a98(0x51b),'children':_0x21fe71}),_0x1e01cc&&(0x0,R[_0x5a7a98(0x2e4)])(_0x5a7a98(0x4f1),{'className':_0x5a7a98(0x4a6),'children':_0x19d597})]}),(0x0,R[_0x5a7a98(0x2e4)])(_0x5a7a98(0x1e9),{'children':_0x4bb62c&&(0x0,R[_0x5a7a98(0x2e4)])(m[_0x5a7a98(0x4ab)],{'title':_0x2086fc['t']('sheets-history-ui.viewer.panel.revertDesc'),'children':(0x0,R[_0x5a7a98(0x2e4)])('div',{'onClick':_0x2970c4=>{const _0xa58607=_0x5a7a98;_0x2970c4[_0xa58607(0x2d2)](),_0xf4449a(_0x489deb['id']);},'className':_0x5a7a98(0x21b),'children':(0x0,R['jsx'])(F[_0x5a7a98(0x4d7)],{})})})})]}),(0x0,R['jsx'])(_0x5a7a98(0x1e9),{'className':_0x5a7a98(0x3ad),'children':_e(_0x489deb,_0x2086fc)})]})]});}let Y=class extends e[_0x31d253(0x352)]{constructor(_0x6cec,_0xa6965d){const _0x2e13d6=_0x31d253;super(),this[_0x2e13d6(0x38d)](_0x6cec[_0x2e13d6(0x440)](ae,Ee)),this[_0x2e13d6(0x38d)](_0xa6965d[_0x2e13d6(0x440)]({'HistoryIcon':F['HistoryIcon']}));}};Y=W([U(0x0,(0x0,e[_0x31d253(0x570)])(N['ComponentManager'])),U(0x1,(0x0,e[_0x31d253(0x570)])(N[_0x31d253(0x2fd)]))],Y);let X=class extends e['Disposable']{constructor(_0x50db49){const _0x431613=_0x31d253;super(),this[_0x431613(0x40a)]=_0x50db49,this['_init']();}[_0x31d253(0x56f)](){const _0x4a85c1=_0x31d253;this[_0x4a85c1(0x38d)](this[_0x4a85c1(0x40a)][_0x4a85c1(0x1b3)][_0x4a85c1(0x331)](_0x21c4c3=>{const _0x1f191c=_0x4a85c1;_0x21c4c3!=null&&_0x21c4c3[_0x1f191c(0x3d2)]&&this[_0x1f191c(0x40a)][_0x1f191c(0x439)]({'show':!0x1});}));}};X=W([U(0x0,M['ICellEditorManagerService'])],X);function Ae(){const _0x1c3a4e=_0x31d253;let _0x1bb2f7=(0x0,N[_0x1c3a4e(0x2da)])(q),_0x2d7250=(0x0,N[_0x1c3a4e(0x2da)])(e[_0x1c3a4e(0x31c)]);if((0x0,N['useObservable'])(_0x1bb2f7[_0x1c3a4e(0x4bc)],_0x1c3a4e(0x46b))!=='loading')return null;let _0x27894c=_0x2d7250['t'](_0x1c3a4e(0x2dc));return(0x0,R['jsx'])(_0x1c3a4e(0x1e9),{'aria-busy':_0x1c3a4e(0x193),'aria-label':_0x27894c,'className':_0x1c3a4e(0x3a4),'children':(0x0,R['jsxs'])('div',{'role':_0x1c3a4e(0x3ae),'aria-live':_0x1c3a4e(0x3aa),'className':_0x1c3a4e(0x4c7),'children':[(0x0,R[_0x1c3a4e(0x2e4)])(F[_0x1c3a4e(0x3a6)],{'className':_0x1c3a4e(0x30e)}),(0x0,R[_0x1c3a4e(0x2e4)])('span',{'children':_0x27894c})]})});}function je(){const _0x37b674=_0x31d253;let _0x40901d=(0x0,N[_0x37b674(0x2da)])(q),_0x2f7a40=(0x0,N['useDependency'])(e['LocaleService']),_0x47d588=(0x0,N[_0x37b674(0x53f)])(_0x40901d['currentVersion$']),_0x5deb36=(0x0,I[_0x37b674(0x507)])(()=>_0x47d588?_0x40901d[_0x37b674(0x1f5)]():!0x1,[_0x40901d,_0x47d588]),_0xf08ca6=(0x0,I[_0x37b674(0x1db)])(()=>{const _0x1ae5af=_0x37b674;_0x40901d[_0x1ae5af(0x3e2)]();},[_0x40901d]),_0x1cc2ca=(0x0,I[_0x37b674(0x1db)])(()=>{const _0x525c1f=_0x37b674;_0x40901d[_0x525c1f(0x38b)]();},[_0x40901d]);return(0x0,R[_0x37b674(0x3e6)])(_0x37b674(0x1e9),{'className':(0x0,m[_0x37b674(0x486)])(_0x37b674(0x217),m[_0x37b674(0x52f)]),'children':[(0x0,R[_0x37b674(0x3e6)])(m[_0x37b674(0x566)],{'onClick':_0xf08ca6,'children':[(0x0,R[_0x37b674(0x2e4)])(F[_0x37b674(0x1b5)],{'className':_0x37b674(0x52d)}),_0x2f7a40['t'](_0x37b674(0x4c0))]}),(0x0,R[_0x37b674(0x2e4)])(m[_0x37b674(0x566)],{'variant':_0x37b674(0x2d1),'disabled':!_0x5deb36,'onClick':_0x1cc2ca,'children':_0x2f7a40['t'](_0x37b674(0x19a))})]});}let Me=class extends e[_0x31d253(0x352)]{constructor(_0x2f694a,_0x1ad589,_0x5082fb,_0x2b7a37,_0x24ef90,_0x15c7ce,_0x4b7ddf){const _0x57630d=_0x31d253;super(),this[_0x57630d(0x451)]=_0x2f694a,this[_0x57630d(0x3ab)]=_0x1ad589,this['_messageService']=_0x5082fb,this[_0x57630d(0x4fb)]=_0x2b7a37,this[_0x57630d(0x4fa)]=_0x24ef90,this[_0x57630d(0x196)]=_0x15c7ce,this[_0x57630d(0x3c1)]=_0x4b7ddf,this[_0x57630d(0x56f)]();}[_0x31d253(0x56f)](){const _0x245f90=_0x31d253;this['disposeWithMe'](this['_historyManagerService'][_0x245f90(0x53c)][_0x245f90(0x331)](_0x3a4225=>{const _0x1e291d=_0x245f90;_0x3a4225&&this[_0x1e291d(0x4fa)][_0x1e291d(0x4b5)](_0x3a4225);})),this['disposeWithMe'](this[_0x245f90(0x451)]['permissionPointUpdate$']['subscribe'](_0x3ac5cd=>{const _0x447a82=_0x245f90;let _0x4e5c59=this[_0x447a82(0x4fa)][_0x447a82(0x1eb)];_0x4e5c59&&(_0x3ac5cd[_0x447a82(0x1dd)]===L['UnitAction'][_0x447a82(0x191)]&&_0x3ac5cd[_0x447a82(0x39b)]===!0x0&&this['_permissionService'][_0x447a82(0x269)](new t[(_0x447a82(0x56e))](_0x4e5c59)['id'],!0x1),_0x3ac5cd[_0x447a82(0x1dd)]===L[_0x447a82(0x558)][_0x447a82(0x495)]&&_0x3ac5cd['value']===!0x0&&this[_0x447a82(0x451)][_0x447a82(0x269)](new t[(_0x447a82(0x409))](_0x4e5c59)['id'],!0x1),_0x3ac5cd['subType']===L[_0x447a82(0x558)][_0x447a82(0x44e)]&&_0x3ac5cd[_0x447a82(0x39b)]===!0x0&&this[_0x447a82(0x451)][_0x447a82(0x269)](new t[(_0x447a82(0x28e))](_0x4e5c59)['id'],!0x1),_0x3ac5cd[_0x447a82(0x1dd)]===L[_0x447a82(0x558)][_0x447a82(0x4a1)]&&_0x3ac5cd[_0x447a82(0x39b)]===!0x0&&this['_permissionService'][_0x447a82(0x269)](new t[(_0x447a82(0x317))](_0x4e5c59)['id'],!0x1),_0x3ac5cd[_0x447a82(0x1dd)]===L[_0x447a82(0x558)][_0x447a82(0x1e6)]&&_0x3ac5cd['value']===!0x0&&this['_permissionService']['updatePermissionPoint'](new t['WorkbookEditablePermission'](_0x4e5c59)['id'],!0x1),_0x3ac5cd[_0x447a82(0x1dd)]===L[_0x447a82(0x558)][_0x447a82(0x4d1)]&&_0x3ac5cd[_0x447a82(0x39b)]===!0x0&&this[_0x447a82(0x451)][_0x447a82(0x269)](new t[(_0x447a82(0x56e))](_0x4e5c59)['id'],!0x1));})),this[_0x245f90(0x541)](),this['_registerLoadingMask']();let _0x200c91=null;this['disposeWithMe']((0x0,e[_0x245f90(0x218)])(()=>_0x200c91==null?void 0x0:_0x200c91[_0x245f90(0x33a)]())),this[_0x245f90(0x38d)](this['_historyManagerService'][_0x245f90(0x4bc)][_0x245f90(0x331)](_0x48636f=>{const _0x216a16=_0x245f90;_0x200c91==null||_0x200c91[_0x216a16(0x33a)](),_0x200c91=null,_0x48636f==='loading'&&(_0x200c91=this[_0x216a16(0x542)][_0x216a16(0x3d2)]({'type':m[_0x216a16(0x365)][_0x216a16(0x2e3)],'content':this[_0x216a16(0x4fb)]['t'](_0x216a16(0x2dc)),'duration':0x3e8}));}));}['_registerHeader'](){const _0x313a35=_0x31d253;var _0x33899c;(_0x33899c=this[_0x313a35(0x3c1)][_0x313a35(0x398)](_0x313a35(0x1d5)))!=null&&_0x33899c['historyPanelHidden']||this['disposeWithMe'](this[_0x313a35(0x3ab)]['registerComponent'](N[_0x313a35(0x38f)]['HEADER'],()=>(0x0,N[_0x313a35(0x429)])(je,this[_0x313a35(0x196)])));}['_registerLoadingMask'](){const _0x32df49=_0x31d253;this[_0x32df49(0x38d)](this[_0x32df49(0x3ab)]['registerComponent'](N[_0x32df49(0x38f)]['GLOBAL'],()=>(0x0,N['connectInjector'])(Ae,this[_0x32df49(0x196)])));}};Me=W([U(0x0,e[_0x31d253(0x2b9)]),U(0x1,N['IUIPartsService']),U(0x2,N[_0x31d253(0x4e3)]),U(0x3,(0x0,e[_0x31d253(0x570)])(e[_0x31d253(0x31c)])),U(0x4,(0x0,e[_0x31d253(0x570)])(q)),U(0x5,(0x0,e['Inject'])(e[_0x31d253(0x2f2)])),U(0x6,e['IConfigService'])],Me);const Ne={'insert':_0x31d253(0x535),'delete':_0x31d253(0x2a6),'update':_0x31d253(0x232)};let Pe=class extends e[_0x31d253(0x352)]{constructor(_0x265b42){const _0x352661=_0x31d253;super(),this[_0x352661(0x544)]=_0x265b42,H(this,_0x352661(0x4cd),void 0x0),H(this,_0x352661(0x453),void 0x0),this['_palette$']=new P[(_0x352661(0x344))](this['_createPalette']()),this[_0x352661(0x453)]=this[_0x352661(0x4cd)][_0x352661(0x3af)](),this['disposeWithMe'](this[_0x352661(0x544)][_0x352661(0x211)]['pipe']((0x0,P[_0x352661(0x21d)])(0x1))[_0x352661(0x331)](()=>{const _0x1d105c=_0x352661;this[_0x1d105c(0x4cd)]['next'](this[_0x1d105c(0x433)]());})),this[_0x352661(0x38d)]((0x0,e[_0x352661(0x218)])(()=>this[_0x352661(0x4cd)]['complete']()));}['_createPalette'](){const _0x35809f=_0x31d253;return{'insert':this[_0x35809f(0x287)]('insert'),'delete':this[_0x35809f(0x287)](_0x35809f(0x454)),'update':this[_0x35809f(0x287)](_0x35809f(0x2a8))};}[_0x31d253(0x287)](_0x219979){const _0x2447b5=_0x31d253;let _0x18bcf2=this['_themeService']['getColorFromTheme'](Ne[_0x219979]);return{'fill':new e[(_0x2447b5(0x2ea))](_0x18bcf2)[_0x2447b5(0x1fb)](0.5)[_0x2447b5(0x40e)](),'stroke':new e[(_0x2447b5(0x2ea))](_0x18bcf2)[_0x2447b5(0x1fb)](0.9)[_0x2447b5(0x40e)]()};}};Pe=W([U(0x0,(0x0,e['Inject'])(e[_0x31d253(0x508)]))],Pe);var Fe=class extends y[_0x31d253(0x534)]{constructor(_0x28e179,_0x44cb7c){const _0x26f738=_0x31d253;super(_0x28e179,_0x44cb7c),H(this,_0x26f738(0x402),void 0x0),H(this,'_direction',void 0x0),H(this,_0x26f738(0x1c1),!0x1),H(this,_0x26f738(0x47a),0x4),H(this,_0x26f738(0x43e),void 0x0),H(this,'_blinkIntervalTimer',void 0x0),H(this,_0x26f738(0x3e5),!0x0),this[_0x26f738(0x402)]=_0x44cb7c[_0x26f738(0x564)],this[_0x26f738(0x3c3)]=_0x44cb7c[_0x26f738(0x2ca)],this[_0x26f738(0x1f8)](_0x44cb7c),_0x44cb7c[_0x26f738(0x557)]&&this['_startBlinking'](_0x44cb7c[_0x26f738(0x3f7)]??this[_0x26f738(0x47a)]);}[_0x31d253(0x1f8)](_0x44f1a5){const _0x5073d6=_0x31d253;this[_0x5073d6(0x402)]=_0x44f1a5[_0x5073d6(0x564)]??this['_color'],this[_0x5073d6(0x3c3)]=_0x44f1a5['direction']??this[_0x5073d6(0x3c3)],this[_0x5073d6(0x1c1)]=_0x44f1a5['highlight']??this['_highlight'],this[_0x5073d6(0x47a)]=_0x44f1a5['highlightSecond']??this['_highlightSecond'],this[_0x5073d6(0x3b6)]({'width':_0x44f1a5['width']??this[_0x5073d6(0x492)],'height':_0x44f1a5[_0x5073d6(0x274)]??this['height']});}[_0x31d253(0x2be)](_0x271070){return!0x1;}[_0x31d253(0x33a)](){const _0x5c3ce0=_0x31d253;this[_0x5c3ce0(0x335)](),super[_0x5c3ce0(0x33a)]();}[_0x31d253(0x2ee)](_0x14f155){const _0x8236e2=_0x31d253;_0x14f155['save'](),_0x14f155[_0x8236e2(0x34d)]=this[_0x8236e2(0x1c1)]&&!this[_0x8236e2(0x3e5)]?0.25:0x1,_0x14f155[_0x8236e2(0x313)]=this[_0x8236e2(0x402)],_0x14f155[_0x8236e2(0x1df)]=this[_0x8236e2(0x402)],_0x14f155[_0x8236e2(0x197)]=0x4,this[_0x8236e2(0x3c3)]===_0x8236e2(0x503)?this[_0x8236e2(0x1ee)](_0x14f155):this[_0x8236e2(0x4ea)](_0x14f155),_0x14f155['restore']();}[_0x31d253(0x537)](_0x53678d){const _0x492eaf=_0x31d253;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x492eaf(0x424)]=window[_0x492eaf(0x2e6)](()=>{const _0x18d760=_0x492eaf;this[_0x18d760(0x3e5)]=!this[_0x18d760(0x3e5)],this[_0x18d760(0x3eb)](!0x0);},0x1f4),this[_0x492eaf(0x43e)]=window[_0x492eaf(0x47c)](()=>{const _0x324937=_0x492eaf;this[_0x324937(0x335)](),this['_isBlinkVisible']=!0x0,this[_0x324937(0x3eb)](!0x0);},_0x53678d*0x3e8);}[_0x31d253(0x335)](){const _0x4f4301=_0x31d253;this['_blinkIntervalTimer']!==void 0x0&&(window[_0x4f4301(0x228)](this[_0x4f4301(0x424)]),this[_0x4f4301(0x424)]=void 0x0),this[_0x4f4301(0x43e)]!==void 0x0&&(window[_0x4f4301(0x34c)](this[_0x4f4301(0x43e)]),this['_blinkTimer']=void 0x0);}[_0x31d253(0x1ee)](_0x1b42e1){const _0x1e0210=_0x31d253;let _0x56ad4e=this[_0x1e0210(0x274)]/0x2;_0x1b42e1[_0x1e0210(0x4fe)](),_0x1b42e1[_0x1e0210(0x293)](0xc,_0x56ad4e),_0x1b42e1[_0x1e0210(0x48e)](this[_0x1e0210(0x492)]-0xc,_0x56ad4e),_0x1b42e1['stroke'](),_0x1b42e1[_0x1e0210(0x4fe)](),_0x1b42e1[_0x1e0210(0x293)](0x0,_0x56ad4e),_0x1b42e1[_0x1e0210(0x48e)](0xc,_0x56ad4e-0x6),_0x1b42e1[_0x1e0210(0x48e)](0xc,_0x56ad4e+0x6),_0x1b42e1[_0x1e0210(0x416)](),_0x1b42e1['fill'](),_0x1b42e1['beginPath'](),_0x1b42e1['moveTo'](this[_0x1e0210(0x492)],_0x56ad4e),_0x1b42e1[_0x1e0210(0x48e)](this[_0x1e0210(0x492)]-0xc,_0x56ad4e-0x6),_0x1b42e1[_0x1e0210(0x48e)](this[_0x1e0210(0x492)]-0xc,_0x56ad4e+0x6),_0x1b42e1[_0x1e0210(0x416)](),_0x1b42e1[_0x1e0210(0x351)]();}[_0x31d253(0x4ea)](_0x158e5a){const _0xa9f614=_0x31d253;let _0x92c58=this[_0xa9f614(0x492)]/0x2;_0x158e5a[_0xa9f614(0x4fe)](),_0x158e5a['moveTo'](_0x92c58,0xc),_0x158e5a[_0xa9f614(0x48e)](_0x92c58,this[_0xa9f614(0x274)]-0xc),_0x158e5a['stroke'](),_0x158e5a[_0xa9f614(0x4fe)](),_0x158e5a['moveTo'](_0x92c58,0x0),_0x158e5a[_0xa9f614(0x48e)](_0x92c58-0x6,0xc),_0x158e5a['lineTo'](_0x92c58+0x6,0xc),_0x158e5a[_0xa9f614(0x416)](),_0x158e5a[_0xa9f614(0x351)](),_0x158e5a[_0xa9f614(0x4fe)](),_0x158e5a['moveTo'](_0x92c58,this['height']),_0x158e5a[_0xa9f614(0x48e)](_0x92c58-0x6,this['height']-0xc),_0x158e5a[_0xa9f614(0x48e)](_0x92c58+0x6,this[_0xa9f614(0x274)]-0xc),_0x158e5a[_0xa9f614(0x416)](),_0x158e5a[_0xa9f614(0x351)]();}};let Ie=class extends e['Disposable']{constructor(_0x4fe2c7,_0x3ec64f,_0x5d3c56,_0x462b75,_0x19f319,_0x909568,_0x3e389b,_0x472dfd,_0x1ebf82,_0x475b60){const _0x1db22f=_0x31d253;super(),this['_context']=_0x4fe2c7,this[_0x1db22f(0x4fa)]=_0x3ec64f,this[_0x1db22f(0x1ae)]=_0x5d3c56,this[_0x1db22f(0x4c8)]=_0x462b75,this[_0x1db22f(0x337)]=_0x19f319,this['_sheetSkeletonManagerService']=_0x909568,this[_0x1db22f(0x4ef)]=_0x3e389b,this['_drawingManagerService']=_0x472dfd,this[_0x1db22f(0x4fb)]=_0x1ebf82,this[_0x1db22f(0x388)]=_0x475b60,H(this,_0x1db22f(0x2df),new Set()),H(this,_0x1db22f(0x1e0),new Set()),H(this,'_arrowDiffs',new Set()),H(this,_0x1db22f(0x224),null),H(this,_0x1db22f(0x2a7),null),this['_init']();}[_0x31d253(0x56f)](){const _0x106b1c=_0x31d253;this['_initRender'](),this[_0x106b1c(0x547)]();}[_0x31d253(0x238)](){const _0x488b9d=_0x31d253;this[_0x488b9d(0x2ab)](),this[_0x488b9d(0x258)]();}[_0x31d253(0x2ab)](){const _0x13561f=_0x31d253;this[_0x13561f(0x38d)]((0x0,P[_0x13561f(0x283)])([this[_0x13561f(0x4fa)][_0x13561f(0x4bc)],this[_0x13561f(0x407)][_0x13561f(0x319)],this['_diffColorService'][_0x13561f(0x453)]])[_0x13561f(0x4d4)]((0x0,P[_0x13561f(0x4dc)])(([_0x4d1160,_0x483edc,_0x4c40f3])=>{const _0x8ef3c1=_0x13561f;if(_0x4d1160==='loaded'&&_0x483edc){let _0x3c01c8=_0x483edc[_0x8ef3c1(0x3ea)];return this[_0x8ef3c1(0x1ae)][_0x8ef3c1(0x212)]['pipe']((0x0,P[_0x8ef3c1(0x403)])(_0x1d5275=>_0x1d5275['subUnitIds'][_0x8ef3c1(0x4f5)]===0x0||_0x1d5275[_0x8ef3c1(0x4c2)][_0x8ef3c1(0x499)](_0x3c01c8)?{'skeleton':_0x483edc,'versionDiff':_0x1d5275,'sheetID':_0x3c01c8,'palette':_0x4c40f3}:{'skeleton':_0x483edc,'versionDiff':null,'palette':_0x4c40f3}));}return(0x0,P['of'])({'skeleton':null,'versionDiff':null,'sheetID':null,'palette':_0x4c40f3});}))[_0x13561f(0x331)](({skeleton:_0x485228,versionDiff:_0x5ec294,sheetID:_0x12f4fc,palette:_0x1e15fa})=>{const _0x4884dc=_0x13561f;this[_0x4884dc(0x43d)](),_0x485228&&_0x5ec294&&_0x12f4fc&&this['_updateDiffMarks'](_0x485228,_0x5ec294,_0x12f4fc,_0x1e15fa);}));}['_initPointerEvents'](){const _0x2258ce=_0x31d253;this[_0x2258ce(0x38d)](this['_sheetSkeletonManagerService'][_0x2258ce(0x319)][_0x2258ce(0x331)](_0x3e0289=>{const _0x4ccf68=_0x2258ce;var _0x43d878;if((_0x43d878=this[_0x4ccf68(0x2a7)])==null||_0x43d878[_0x4ccf68(0x47d)](),this[_0x4ccf68(0x2a7)]=null,this[_0x4ccf68(0x224)]=null,_0x3e0289==null)return;let {skeleton:_0x37f472}=_0x3e0289,{scene:_0x3bc0d5}=this[_0x4ccf68(0x2a2)];this[_0x4ccf68(0x2a7)]=_0x3bc0d5['onPointerMove$'][_0x4ccf68(0x40f)]((0x0,e[_0x4ccf68(0x1d1)])(_0xe37f5e=>{const _0x3e20ac=_0x4ccf68;var _0x67fb09,_0x3c9259;let {offsetX:_0x469dfd,offsetY:_0x540688}=_0xe37f5e,{x:_0x11b440,y:_0x4bcbb0}=_0x3bc0d5[_0x3e20ac(0x31b)](y['Vector2']['FromArray']([_0x469dfd,_0x540688])),{scaleX:_0x5adfc,scaleY:_0xc57c87}=_0x3bc0d5['getAncestorScale'](),_0x1ad0df=_0x3bc0d5[_0x3e20ac(0x2f8)](y['SHEET_VIEWPORT_KEY'][_0x3e20ac(0x467)]),_0x3f6703=_0x3bc0d5['getScrollXYInfoByViewport'](y['Vector2'][_0x3e20ac(0x50f)]([_0x11b440,_0x4bcbb0]),_0x1ad0df),_0x26ff81=_0x37f472['getCellIndexByOffset'](_0x469dfd,_0x540688,_0x5adfc,_0xc57c87,_0x3f6703);(((_0x67fb09=this['_lastPointer'])==null?void 0x0:_0x67fb09['column'])!==_0x26ff81[_0x3e20ac(0x3f2)]||((_0x3c9259=this[_0x3e20ac(0x224)])==null?void 0x0:_0x3c9259['row'])!==_0x26ff81['row'])&&(this[_0x3e20ac(0x224)]=_0x26ff81,this[_0x3e20ac(0x2df)][_0x3e20ac(0x345)](_0x273f3a=>{const _0x40667c=_0x3e20ac;_0x273f3a[_0x40667c(0x200)]||_0x273f3a[_0x40667c(0x279)](_0x26ff81);}));},0x64));}));}[_0x31d253(0x547)](){const _0x3c440e=_0x31d253;this['disposeWithMe']((0x0,P[_0x3c440e(0x283)])([this[_0x3c440e(0x4fa)][_0x3c440e(0x4bc)],this[_0x3c440e(0x1ae)][_0x3c440e(0x212)]])['subscribe'](([_0x92b839,_0x3d4030])=>{const _0x2fb9e0=_0x3c440e;_0x92b839===_0x2fb9e0(0x22e)&&(this[_0x2fb9e0(0x195)](_0x3d4030[_0x2fb9e0(0x4c2)]),_0x3d4030[_0x2fb9e0(0x226)]&&this[_0x2fb9e0(0x4ef)]['syncExecuteCommand'](t[_0x2fb9e0(0x1d3)]['id'],{'unitId':this[_0x2fb9e0(0x2a2)][_0x2fb9e0(0x1eb)],'subUnitId':_0x3d4030[_0x2fb9e0(0x226)]}));}));}[_0x31d253(0x195)](_0x3b0ba6){const _0x1a069c=_0x31d253;let _0x110faf=this[_0x1a069c(0x4c8)][_0x1a069c(0x464)](this[_0x1a069c(0x2a2)]['unitId'],e[_0x1a069c(0x1d2)][_0x1a069c(0x379)]);if(!_0x110faf)return;let _0x110fc3=_0x110faf[_0x1a069c(0x328)]();if(_0x3b0ba6['length']===0x0){_0x110fc3[_0x1a069c(0x345)](_0x1e222f=>{const _0x4a7a31=_0x1a069c;_0x1e222f[_0x4a7a31(0x2cb)]()&&this[_0x4a7a31(0x41d)](_0x1e222f[_0x4a7a31(0x271)](),e[_0x4a7a31(0x3b9)][_0x4a7a31(0x247)]);});return;}_0x110fc3[_0x1a069c(0x345)](_0x14effe=>{const _0x17ff5a=_0x1a069c;let _0x58d4a1=_0x14effe[_0x17ff5a(0x271)](),_0x40d036=_0x3b0ba6[_0x17ff5a(0x499)](_0x58d4a1),_0x38963b=_0x14effe[_0x17ff5a(0x2cb)]();_0x40d036&&_0x38963b?this[_0x17ff5a(0x41d)](_0x58d4a1,e['BooleanNumber'][_0x17ff5a(0x247)]):!_0x40d036&&!_0x38963b&&this[_0x17ff5a(0x41d)](_0x58d4a1,e[_0x17ff5a(0x3b9)][_0x17ff5a(0x54e)]);});}['_setWorksheetVisibility'](_0x4d81c2,_0x487c5b){const _0x8c6e10=_0x31d253;this[_0x8c6e10(0x4ef)][_0x8c6e10(0x382)](t[_0x8c6e10(0x4e7)]['id'],{'unitId':this[_0x8c6e10(0x2a2)][_0x8c6e10(0x1eb)],'subUnitId':_0x4d81c2,'hidden':_0x487c5b});}[_0x31d253(0x434)](){const _0x2cbf30=_0x31d253;return this['_localeService'][_0x2cbf30(0x432)]()===_0x2cbf30(0x280)?'left':_0x2cbf30(0x3e9);}[_0x31d253(0x387)](_0x1d4f5c,_0xae3d1f,_0x50e403,_0x2ca70d){const _0x57701c=_0x31d253;this[_0x57701c(0x2df)][_0x57701c(0x345)](_0xfd0db6=>{_0xfd0db6['makeDirty']();});let _0x4c3c6d=this[_0x57701c(0x4c4)](_0xae3d1f,_0x50e403,_0x2ca70d);this['_diffs']=new Set(_0x4c3c6d[_0x57701c(0x350)](_0x4b7efb=>_0x4b7efb instanceof z[_0x57701c(0x35a)])),this[_0x57701c(0x1e0)]=new Set(_0x4c3c6d['filter'](_0x43fe54=>_0x43fe54 instanceof y['Rect'])),this[_0x57701c(0x286)]=new Set(_0x4c3c6d[_0x57701c(0x350)](_0x2b43f2=>_0x2b43f2 instanceof Fe)),_0x4c3c6d[_0x57701c(0x4f5)]>0x0&&this[_0x57701c(0x3d1)](_0x4c3c6d[0x0],this[_0x57701c(0x2a2)][_0x57701c(0x4ae)]);}[_0x31d253(0x4c4)](_0x289dfe,_0x12100a,_0x3b4139){const _0x5634c4=_0x31d253;let _0xcbc7fa=this[_0x5634c4(0x407)]['getCurrentSkeleton']();if(!_0xcbc7fa)return[];let {scene:_0x424ebd}=this[_0x5634c4(0x2a2)],_0x4113fc=[],_0x1766df=_0x1083ad=>{const _0x4bc294=_0x5634c4;if(!_0x1083ad)return new Map();let _0x4534e8=new Map();return _0x1083ad[_0x4bc294(0x345)]((_0x480c33,_0x1574dd)=>{const _0x1753dd=_0x4bc294;let _0x4e00db=_0x480c33[_0x1753dd(0x350)](_0x39cf03=>_0x39cf03[_0x1753dd(0x2f0)]===_0x12100a);_0x4e00db[_0x1753dd(0x4f5)]>0x0&&_0x4534e8[_0x1753dd(0x3b5)](_0x1574dd,_0x4e00db);}),_0x4534e8;};return this['_renderCellRanges'](_0x424ebd,_0xcbc7fa,_0x1766df(_0x289dfe[_0x5634c4(0x419)]),_0x3b4139[_0x5634c4(0x1ac)][_0x5634c4(0x351)],_0x4113fc),this[_0x5634c4(0x50e)](_0x424ebd,_0xcbc7fa,_0x1766df(_0x289dfe['deleteCellRanges']),_0x3b4139[_0x5634c4(0x454)][_0x5634c4(0x351)],_0x4113fc),this[_0x5634c4(0x50e)](_0x424ebd,_0xcbc7fa,_0x1766df(_0x289dfe[_0x5634c4(0x35c)]),_0x3b4139[_0x5634c4(0x2a8)][_0x5634c4(0x351)],_0x4113fc),this['_renderBorderRanges'](_0x424ebd,_0xcbc7fa,_0x1766df(_0x289dfe[_0x5634c4(0x3a8)]),_0x3b4139[_0x5634c4(0x1ac)]['stroke'],_0x4113fc),this[_0x5634c4(0x38e)](_0x424ebd,_0xcbc7fa,_0x1766df(_0x289dfe[_0x5634c4(0x2f7)]),_0x3b4139['delete'][_0x5634c4(0x397)],_0x4113fc),this[_0x5634c4(0x38e)](_0x424ebd,_0xcbc7fa,_0x1766df(_0x289dfe[_0x5634c4(0x2b7)]),_0x3b4139[_0x5634c4(0x2a8)]['stroke'],_0x4113fc),this[_0x5634c4(0x483)](_0x424ebd,_0xcbc7fa,_0x1766df(_0x289dfe[_0x5634c4(0x2f9)]),_0x3b4139['update']['fill'],_0x5634c4(0x43a),_0x4113fc),this[_0x5634c4(0x483)](_0x424ebd,_0xcbc7fa,_0x1766df(_0x289dfe[_0x5634c4(0x289)]),_0x3b4139[_0x5634c4(0x2a8)][_0x5634c4(0x351)],_0x5634c4(0x503),_0x4113fc),_0x289dfe[_0x5634c4(0x294)]&&this[_0x5634c4(0x53d)](_0x424ebd,_0x289dfe['insertDrawings'],_0x3b4139[_0x5634c4(0x1ac)][_0x5634c4(0x397)],_0x4113fc),_0x289dfe[_0x5634c4(0x4aa)]&&this[_0x5634c4(0x53d)](_0x424ebd,_0x289dfe['deleteDrawings'],_0x3b4139[_0x5634c4(0x454)][_0x5634c4(0x397)],_0x4113fc),_0x289dfe['updateDrawings']&&this[_0x5634c4(0x53d)](_0x424ebd,_0x289dfe[_0x5634c4(0x227)],_0x3b4139[_0x5634c4(0x2a8)][_0x5634c4(0x397)],_0x4113fc),this[_0x5634c4(0x1c4)](_0x4113fc),_0x424ebd[_0x5634c4(0x3bf)](_0x4113fc,0x14),_0x4113fc;}[_0x31d253(0x3a7)](){const _0x3dfba1=_0x31d253;this[_0x3dfba1(0x2df)]['forEach'](_0x488c6=>{const _0x349f62=_0x3dfba1;_0x488c6[_0x349f62(0x2ef)]();}),this[_0x3dfba1(0x1e0)][_0x3dfba1(0x345)](_0x16da55=>{const _0x21bcbb=_0x3dfba1;_0x16da55[_0x21bcbb(0x2ef)]();}),this[_0x3dfba1(0x286)][_0x3dfba1(0x345)](_0xc95dbf=>{_0xc95dbf['hide']();});}['showDiffMarks'](){const _0x5a0670=_0x31d253;this[_0x5a0670(0x2df)]['forEach'](_0x17cf82=>{_0x17cf82['show']();}),this[_0x5a0670(0x1e0)][_0x5a0670(0x345)](_0x580693=>{const _0x193a4c=_0x5a0670;_0x580693[_0x193a4c(0x3d2)]();}),this[_0x5a0670(0x286)][_0x5a0670(0x345)](_0x9b55fa=>{const _0x2e520b=_0x5a0670;_0x9b55fa[_0x2e520b(0x3d2)]();});}[_0x31d253(0x459)](){const _0x11a5d8=_0x31d253;this[_0x11a5d8(0x43d)]();}[_0x31d253(0x363)](_0x180a67,_0x54473b){this['_scrollToShape'](_0x180a67,_0x54473b);}[_0x31d253(0x50e)](_0x1b6b0e,_0x266f02,_0x13fa38,_0x2d72a9,_0x4d1633){const _0xd9b0c3=_0x31d253;_0x13fa38[_0xd9b0c3(0x345)]((_0x26c094,_0x3580e8)=>{const _0x1bfe4f=_0xd9b0c3;_0x26c094[_0x1bfe4f(0x345)](_0x404796=>{const _0x43f88a=_0x1bfe4f;var _0x573cc5;let {range:_0x3209d2,subUnitId:_0x177d49,unitId:_0x1cfe79,showText:_0x56ccc1='',highlightColumn:_0x42f7de,highlightRow:_0x1a229f}=_0x404796,{startColumn:_0x41cd77,startRow:_0x32bf64,endColumn:_0x1d282f,endRow:_0x19fe15}=_0x3209d2,_0x18a6bc=(0x0,M[_0x43f88a(0x559)])(_0x32bf64,_0x41cd77,_0x1b6b0e,_0x266f02),_0x4e89d7=(0x0,M['getCoordByCell'])(_0x19fe15,_0x1d282f,_0x1b6b0e,_0x266f02),{columnHeaderHeightAndMarginTop:_0x73d1c5}=_0x266f02,{startX:_0x448858,startY:_0x470c2b}=_0x18a6bc,{endX:_0x5124fc,endY:_0x438504}=_0x4e89d7,_0x3d9ca1=_0x266f02[_0x43f88a(0x540)],_0x13ab96=_0x266f02[_0x43f88a(0x436)];_0x1a229f&&(_0x448858-=_0x3d9ca1),_0x42f7de&&(_0x470c2b-=_0x13ab96);let _0x32d093=_0x5124fc-_0x448858,_0x350569=_0x438504-_0x470c2b,_0x509e11={'labelPosition':_0x470c2b-_0x73d1c5>=0x14?_0x43f88a(0x252):_0x43f88a(0x3fe),'sheetID':_0x177d49,'range':_0x3209d2,'color':_0x2d72a9,'fillAfterStrokeEnabled':!0x0,'backgroundColor':_0x2d72a9,'name':((_0x573cc5=this[_0x43f88a(0x4fa)][_0x43f88a(0x29e)](_0x3580e8))==null?void 0x0:_0x573cc5[_0x43f88a(0x56d)])+'\x20'+_0x56ccc1||_0x56ccc1,'labelHorizontalPosition':this[_0x43f88a(0x434)](),'selection':_0x1cfe79+'-'+_0x177d49+'-'+_0x3209d2[_0x43f88a(0x41a)]+'-'+_0x3209d2[_0x43f88a(0x4b8)]+'-'+_0x3209d2[_0x43f88a(0x51d)]+'-'+_0x3209d2[_0x43f88a(0x225)],'left':_0x448858,'top':_0x470c2b,'width':_0x32d093,'height':_0x350569,'evented':!0x1,'zIndex':0x3e8,'highlight':!0x0};_0x4d1633[_0x43f88a(0x53b)](new z['SheetCollabCursorShape']('',_0x509e11));});});}[_0x31d253(0x38e)](_0x440648,_0x4fc447,_0xeba1f7,_0x24eca3,_0x33a15a){_0xeba1f7['forEach']((_0x55d3c8,_0xaebb)=>{const _0x30be39=_0x4c20;_0x55d3c8[_0x30be39(0x345)](_0x2ef716=>{const _0x547d8b=_0x30be39;var _0xfe4868;let {range:_0x28ab4a,subUnitId:_0x3c4584,unitId:_0x190a93,showText:_0x53b899=''}=_0x2ef716,{startColumn:_0x10bd2e,startRow:_0x3347d0,endColumn:_0xe3995d,endRow:_0x90a802}=_0x28ab4a,_0x5a4f53=(0x0,M[_0x547d8b(0x559)])(_0x3347d0,_0x10bd2e,_0x440648,_0x4fc447),_0x292732=(0x0,M[_0x547d8b(0x559)])(_0x90a802,_0xe3995d,_0x440648,_0x4fc447),{columnHeaderHeightAndMarginTop:_0x21df1e}=_0x4fc447,{startX:_0x34141d,startY:_0x552200}=_0x5a4f53,{endX:_0x59eacd,endY:_0x2fac90}=_0x292732,_0x24b566=_0x59eacd-_0x34141d,_0x1dff2a=_0x2fac90-_0x552200,_0x1b67ea={'labelPosition':_0x552200-_0x21df1e>=0x14?_0x547d8b(0x252):'bottom','sheetID':_0x3c4584,'range':_0x28ab4a,'color':_0x24eca3,'fillAfterStrokeEnabled':!0x1,'backgroundColor':_0x547d8b(0x373),'name':((_0xfe4868=this[_0x547d8b(0x4fa)][_0x547d8b(0x29e)](_0xaebb))==null?void 0x0:_0xfe4868[_0x547d8b(0x56d)])+'\x20'+_0x53b899||_0x53b899,'labelHorizontalPosition':this['_getLabelHorizontalPosition'](),'selection':_0x190a93+'-'+_0x3c4584+'-'+_0x28ab4a[_0x547d8b(0x41a)]+'-'+_0x28ab4a[_0x547d8b(0x4b8)]+'-'+_0x28ab4a[_0x547d8b(0x51d)]+'-'+_0x28ab4a[_0x547d8b(0x225)],'left':_0x34141d-0x6,'top':_0x552200-0x6,'width':_0x24b566,'height':_0x1dff2a,'evented':!0x1,'zIndex':0x3e8,'strokeWidth':0xc,'highlight':!0x0};_0x33a15a['push'](new z['SheetCollabCursorShape']('',_0x1b67ea));});});}[_0x31d253(0x483)](_0x6df6c6,_0x2e4651,_0x2db62e,_0x476482,_0x1d1fd4,_0x47d124){const _0x30ff75=_0x31d253;let _0x4085b9=_0x2e4651[_0x30ff75(0x540)],_0x4eb55f=_0x2e4651[_0x30ff75(0x436)];_0x2db62e[_0x30ff75(0x345)](_0x560089=>{const _0x285512=_0x30ff75;_0x560089[_0x285512(0x345)](_0x48dff4=>{const _0x4fd4be=_0x285512;let {range:_0x2f8b84}=_0x48dff4,{startColumn:_0x2109fb,startRow:_0x7a383a,endColumn:_0x2ce435,endRow:_0x199791}=_0x2f8b84,_0x1cfacc=(0x0,M[_0x4fd4be(0x559)])(_0x7a383a,_0x2109fb,_0x6df6c6,_0x2e4651),_0x44ac0c=(0x0,M[_0x4fd4be(0x559)])(_0x199791,_0x2ce435,_0x6df6c6,_0x2e4651),{startX:_0x469b25,startY:_0x2c4e19}=_0x1cfacc,{endX:_0x3c06f9,endY:_0x59d4b9}=_0x44ac0c,_0x451d48;if(_0x1d1fd4===_0x4fd4be(0x503))_0x451d48=new Fe('',{'color':_0x476482,'direction':_0x4fd4be(0x503),'left':_0x469b25,'top':0x2,'width':_0x3c06f9-_0x469b25,'height':_0x4eb55f-0x4,'evented':!0x1,'zIndex':0x3e9,'highlight':!0x0,'highlightSecond':0x4}),_0x47d124['push'](_0x451d48);else{let _0x5cf459=_0x59d4b9-_0x2c4e19;_0x451d48=new Fe('',{'color':_0x476482,'direction':_0x4fd4be(0x43a),'left':0x2,'top':_0x2c4e19,'width':_0x4085b9-0x4,'height':_0x5cf459,'evented':!0x1,'zIndex':0x3e9,'highlight':!0x0,'highlightSecond':0x4}),_0x47d124[_0x4fd4be(0x53b)](_0x451d48);}});});}[_0x31d253(0x53d)](_0x146947,_0x2bbca1,_0x295146,_0x5f5b8f){const _0x303f8e=_0x31d253;let _0x34da35=this[_0x303f8e(0x407)]['getCurrentSkeleton']();if(!_0x34da35)return;let {columnHeaderHeightAndMarginTop:_0x3b3128}=_0x34da35;_0x2bbca1['forEach']((_0xf6868f,_0x1f0a75)=>{const _0x3af07d=_0x303f8e;_0xf6868f[_0x3af07d(0x345)](_0x59acb4=>{const _0x4a8348=_0x3af07d;let _0x34bd99=this['_createDrawingHighlight'](_0x59acb4,_0x1f0a75,_0x295146,_0x3b3128,0xc,_0x5f5b8f);_0x34bd99&&_0x5f5b8f[_0x4a8348(0x53b)](_0x34bd99);});});}[_0x31d253(0x39a)](_0x2e5790,_0x14232b,_0x4cff0d,_0x159717,_0x1e9ce8,_0x2c5a5a){const _0x57ba11=_0x31d253;var _0x2e7e99;let {drawingId:_0xab38fc,unitId:_0x8d64fa,subUnitId:_0x4dc414,showText:_0x56bf5b=''}=_0x2e5790,_0x345bc1=this[_0x57ba11(0x30a)]['getDrawingByParam']({'unitId':_0x8d64fa,'subUnitId':_0x4dc414,'drawingId':_0xab38fc});if(!(_0x345bc1!=null&&_0x345bc1[_0x57ba11(0x26e)]))return null;let {left:_0x397d56=0x0,top:_0x37d4b9=0x0,width:_0x2303cf,height:_0x192d55}=_0x345bc1[_0x57ba11(0x26e)],_0x267034=new z[(_0x57ba11(0x35a))]('',{'labelPosition':_0x37d4b9-_0x159717>=0x14?_0x57ba11(0x252):_0x57ba11(0x3fe),'sheetID':_0x4dc414,'range':{'startRow':0x0,'startColumn':0x0,'endRow':0x0,'endColumn':0x0},'color':_0x4cff0d,'fillAfterStrokeEnabled':!0x1,'backgroundColor':_0x57ba11(0x373),'name':((_0x2e7e99=this['_historyManagerService'][_0x57ba11(0x29e)](_0x14232b))==null?void 0x0:_0x2e7e99[_0x57ba11(0x56d)])+'\x20'+_0x56bf5b||_0x56bf5b,'labelHorizontalPosition':this[_0x57ba11(0x434)](),'selection':_0x8d64fa+'-'+_0x4dc414+_0x57ba11(0x4a2)+_0xab38fc,'left':_0x397d56-_0x1e9ce8/0x2,'top':_0x37d4b9-_0x1e9ce8/0x2,'width':_0x2303cf,'height':_0x192d55,'evented':!0x0,'zIndex':0x3e8,'strokeWidth':_0x1e9ce8,'highlight':!0x0});return this[_0x57ba11(0x490)](_0x267034,_0x2c5a5a),_0x267034;}['_bindDrawingHighlightHover'](_0x2d2082,_0x536377){const _0x26f9bf=_0x31d253;_0x2d2082[_0x26f9bf(0x26d)][_0x26f9bf(0x40f)](()=>this[_0x26f9bf(0x44c)](_0x2d2082,_0x536377,!0x0)),_0x2d2082[_0x26f9bf(0x304)][_0x26f9bf(0x40f)](()=>this['_setOverlappingShapesHovered'](_0x2d2082,_0x536377,!0x1));}[_0x31d253(0x44c)](_0x3cbb29,_0x422952,_0x2ffc6f){const _0x33c59e=_0x31d253;this[_0x33c59e(0x3d7)](_0x3cbb29,_0x422952)['forEach'](_0x541bfd=>{const _0x3182e8=_0x33c59e;_0x541bfd instanceof z['SheetCollabCursorShape']&&_0x541bfd[_0x3182e8(0x1f8)]({'hovered':_0x2ffc6f});});}[_0x31d253(0x43d)](){const _0x564565=_0x31d253;this[_0x564565(0x2df)]['forEach'](_0x26bacb=>_0x26bacb[_0x564565(0x33a)]()),this[_0x564565(0x1e0)][_0x564565(0x345)](_0x41c39f=>_0x41c39f[_0x564565(0x33a)]()),this['_arrowDiffs'][_0x564565(0x345)](_0x3b33d6=>_0x3b33d6[_0x564565(0x33a)]()),this[_0x564565(0x2df)]['clear'](),this[_0x564565(0x1e0)][_0x564565(0x2e5)](),this[_0x564565(0x286)]['clear']();}[_0x31d253(0x1c4)](_0x2035f0){const _0x52d740=_0x31d253;let _0x339f6c=_0x2035f0['filter'](_0x7b3d97=>_0x7b3d97 instanceof z[_0x52d740(0x35a)]);if(_0x339f6c[_0x52d740(0x4f5)]===0x0)return;let _0x171e43=[],_0x4978ce=new Set();_0x339f6c[_0x52d740(0x345)](_0x4887fd=>{const _0x3525b1=_0x52d740;if(_0x4978ce[_0x3525b1(0x4be)](_0x4887fd))return;let _0xdd07b4=_0x4887fd[_0x3525b1(0x3c2)]||0x0,_0x86c25e=_0x4887fd[_0x3525b1(0x252)]||0x0,_0x30903a=_0xdd07b4+(_0x4887fd[_0x3525b1(0x492)]||0x0),_0x1d4e9a=_0x86c25e,_0x17e5c8=[_0x4887fd];_0x4978ce['add'](_0x4887fd),_0x339f6c[_0x3525b1(0x345)](_0x7e9707=>{const _0x152e9a=_0x3525b1;if(_0x4978ce['has'](_0x7e9707))return;let _0x19cb45=_0x7e9707[_0x152e9a(0x3c2)]||0x0,_0x447777=_0x7e9707[_0x152e9a(0x252)]||0x0,_0x397463=_0x19cb45+(_0x7e9707[_0x152e9a(0x492)]||0x0),_0x23b7bb=_0x447777;Math['abs'](_0x30903a-_0x397463)<=0xa&&Math[_0x152e9a(0x4d5)](_0x1d4e9a-_0x23b7bb)<=0xa&&(_0x17e5c8[_0x152e9a(0x53b)](_0x7e9707),_0x4978ce['add'](_0x7e9707));}),_0x17e5c8[_0x3525b1(0x4f5)]>0x1&&_0x171e43['push'](_0x17e5c8);}),_0x171e43[_0x52d740(0x345)](_0x55ec13=>{const _0x1bbd35=_0x52d740;_0x55ec13[_0x1bbd35(0x449)]((_0x158ab6,_0x46e639)=>(_0x158ab6['top']||0x0)-(_0x46e639[_0x1bbd35(0x252)]||0x0)),_0x55ec13['forEach']((_0x47d235,_0x9d5e72)=>{const _0x474543=_0x1bbd35;let _0x1e69a6=_0x9d5e72*0x16;_0x47d235[_0x474543(0x552)](_0x1e69a6);});});}[_0x31d253(0x3d7)](_0x4e08d4,_0x23d7dd){const _0x4e5c7f=_0x31d253;let _0x30bf0b=_0x4e08d4[_0x4e5c7f(0x3c2)]||0x0,_0x193909=_0x4e08d4[_0x4e5c7f(0x252)]||0x0,_0x2e8689=_0x4e08d4[_0x4e5c7f(0x492)]||0x0,_0x31887b=_0x4e08d4[_0x4e5c7f(0x274)]||0x0,_0x5f491d=_0x30bf0b+_0x2e8689,_0x259009=_0x193909+_0x31887b;return _0x23d7dd[_0x4e5c7f(0x350)](_0x42e4bf=>{const _0x5eae83=_0x4e5c7f;let _0xbd48fb=_0x42e4bf['left']||0x0,_0x564e8a=_0x42e4bf[_0x5eae83(0x252)]||0x0,_0x40e326=_0x42e4bf[_0x5eae83(0x492)]||0x0,_0x4a23f3=_0x42e4bf[_0x5eae83(0x274)]||0x0,_0x4abc42=_0xbd48fb+_0x40e326,_0x2545a5=_0x564e8a+_0x4a23f3;return!(_0x5f491d<=_0xbd48fb||_0x30bf0b>=_0x4abc42||_0x259009<=_0x564e8a||_0x193909>=_0x2545a5);});}[_0x31d253(0x3d1)](_0x32f129,_0x40dc17){const _0x35982e=_0x31d253;let _0x175a7b=_0x40dc17[_0x35982e(0x2f8)](y['SHEET_VIEWPORT_KEY'][_0x35982e(0x467)]);if(!_0x175a7b)return;let _0x5ca237=_0x32f129[_0x35982e(0x3c2)]||0x0,_0x5f0e9d=_0x32f129[_0x35982e(0x252)]||0x0,_0x58b991=_0x32f129[_0x35982e(0x492)]||0x0,_0x516ee5=_0x32f129['height']||0x0,_0x563395=_0x175a7b[_0x35982e(0x492)]||0x0,_0x4a94c4=_0x175a7b['height']||0x0,_0x124d00=_0x175a7b[_0x35982e(0x489)]||0x0,_0x2ad826=_0x175a7b[_0x35982e(0x4bb)]||0x0,_0x3cce57=_0x124d00,_0x25a690=_0x2ad826,_0x1ee8f4=_0x124d00+_0x563395,_0x45926f=_0x2ad826+_0x4a94c4;if(_0x5ca237>=_0x3cce57&&_0x5f0e9d>=_0x25a690&&_0x5ca237+_0x58b991<=_0x1ee8f4&&_0x5f0e9d+_0x516ee5<=_0x45926f)return;let _0x491b99=Math[_0x35982e(0x2aa)](0x0,_0x5ca237-_0x563395/0x2+_0x58b991/0x2),_0x53f716=Math['max'](0x0,_0x5f0e9d-_0x4a94c4/0x2+_0x516ee5/0x2);_0x175a7b[_0x35982e(0x413)]({'viewportScrollX':_0x491b99,'viewportScrollY':_0x53f716});}[_0x31d253(0x3e1)](){const _0x93d2a9=_0x31d253;return(0x0,M['getSheetObject'])(this[_0x93d2a9(0x4c8)],this[_0x93d2a9(0x337)]);}[_0x31d253(0x33a)](){const _0x21a5c7=_0x31d253;var _0x173880;(_0x173880=this[_0x21a5c7(0x2a7)])==null||_0x173880[_0x21a5c7(0x47d)](),this[_0x21a5c7(0x2a7)]=null,this[_0x21a5c7(0x43d)](),super[_0x21a5c7(0x33a)]();}};Ie=W([U(0x1,(0x0,e['Inject'])(q)),U(0x2,(0x0,e['Inject'])(J)),U(0x3,e['IUniverInstanceService']),U(0x4,y[_0x31d253(0x3bc)]),U(0x5,(0x0,e['Inject'])(M[_0x31d253(0x52a)])),U(0x6,e[_0x31d253(0x43b)]),U(0x7,_[_0x31d253(0x1dc)]),U(0x8,(0x0,e['Inject'])(e[_0x31d253(0x31c)])),U(0x9,(0x0,e[_0x31d253(0x570)])(Pe))],Ie);let Le=class extends e[_0x31d253(0x352)]{constructor(_0x2da5ed,_0x58e44e,_0xb041dd,_0x5d3f1d){const _0x2d33c7=_0x31d253;super(),this[_0x2d33c7(0x329)]=_0x2da5ed,this[_0x2d33c7(0x4fb)]=_0x58e44e,this[_0x2d33c7(0x4fa)]=_0xb041dd,this['_configService']=_0x5d3f1d,H(this,_0x2d33c7(0x1e3),null),this[_0x2d33c7(0x56f)]();}[_0x31d253(0x56f)](){const _0x707884=_0x31d253;this[_0x707884(0x2b0)]();}[_0x31d253(0x391)](){const _0x424fe5=_0x31d253;var _0x47b831;if(this[_0x424fe5(0x1e3)])return;let _0xaac48d=(_0x47b831=this[_0x424fe5(0x3c1)][_0x424fe5(0x398)](_0x424fe5(0x1d5)))==null?void 0x0:_0x47b831['historyPanelComponentKey'],_0x47e508={'header':{'title':this[_0x424fe5(0x4fb)]['t'](_0x424fe5(0x3fb))},'children':{'label':_0xaac48d},'onClose':()=>{const _0x5e9765=_0x424fe5;this[_0x5e9765(0x1e3)]=null,this[_0x5e9765(0x4fa)][_0x5e9765(0x3e2)]();}};this[_0x424fe5(0x1e3)]=this['_sidebarService'][_0x424fe5(0x2af)]({..._0x47e508});}[_0x31d253(0x2b0)](){const _0x3628d3=_0x31d253;this[_0x3628d3(0x38d)](this[_0x3628d3(0x4fa)][_0x3628d3(0x2a4)][_0x3628d3(0x331)](_0x38209b=>{_0x38209b&&this['_openPanel']();}));}};function _0x4c20(_0x5d1c08,_0x253932){_0x5d1c08=_0x5d1c08-0x18e;const _0xa7536a=_0xa753();let _0x4c20f4=_0xa7536a[_0x5d1c08];return _0x4c20f4;}Le=W([U(0x0,N[_0x31d253(0x215)]),U(0x1,(0x0,e[_0x31d253(0x570)])(e['LocaleService'])),U(0x2,(0x0,e[_0x31d253(0x570)])(q)),U(0x3,e[_0x31d253(0x285)])],Le);var Re=class extends e[_0x31d253(0x352)]{constructor(){const _0x28188a=_0x31d253;super(),H(this,'_dialogOptions$',new P[(_0x28188a(0x4e6))]());}[_0x31d253(0x2af)](){const _0x2742df=_0x31d253;return(0x0,e[_0x2742df(0x218)])(()=>{});}[_0x31d253(0x23d)](){}[_0x31d253(0x24e)](_0x27d200){}['getDialogs$'](){const _0x43e3de=_0x31d253;return this[_0x43e3de(0x45a)][_0x43e3de(0x3af)]();}};let ze=class extends e[_0x31d253(0x4f3)]{constructor(_0x4d61a4=V,_0x285cda,_0x484be8,_0xaf7b0e){const _0x3a7fc9=_0x31d253;super(),this[_0x3a7fc9(0x511)]=_0x4d61a4,this[_0x3a7fc9(0x196)]=_0x285cda,this[_0x3a7fc9(0x337)]=_0x484be8,this[_0x3a7fc9(0x3c1)]=_0xaf7b0e;let {..._0x3b9e44}=(0x0,e[_0x3a7fc9(0x438)])({},V,this[_0x3a7fc9(0x511)]);this[_0x3a7fc9(0x3c1)][_0x3a7fc9(0x572)](B,_0x3b9e44);}[_0x31d253(0x204)](){const _0x34f59a=_0x31d253;[[Y],[q],[Me],[J],[Pe],[G],[Le],[X],[n['ISnapshotServerService'],{'useClass':r['SnapshotServerOverHTTPService']}],[N[_0x34f59a(0x338)],{'useClass':Re}],[e[_0x34f59a(0x342)],{'useClass':r[_0x34f59a(0x55b)]}]][_0x34f59a(0x345)](_0x45ff15=>this['_injector'][_0x34f59a(0x445)](_0x45ff15)),this['_injector']['get'](Me),this[_0x34f59a(0x196)][_0x34f59a(0x361)](Y);}['onRendered'](){const _0xc4dc5=_0x31d253;[[Ie]][_0xc4dc5(0x345)](_0x579c8e=>{const _0x153daa=_0xc4dc5;this[_0x153daa(0x38d)](this[_0x153daa(0x337)][_0x153daa(0x1d6)](e[_0x153daa(0x1d2)][_0x153daa(0x379)],_0x579c8e));}),this[_0xc4dc5(0x196)][_0xc4dc5(0x361)](X),this[_0xc4dc5(0x196)]['get'](Le);}[_0x31d253(0x2c7)](){const _0x50c385=_0x31d253;this[_0x50c385(0x196)][_0x50c385(0x361)](J);}};H(ze,'pluginName',_0x31d253(0x50a)),H(ze,_0x31d253(0x257),se),H(ze,_0x31d253(0x33e),ce),ze=W([(0x0,e[_0x31d253(0x415)])(a[_0x31d253(0x2cc)],_[_0x31d253(0x202)],y['UniverRenderEnginePlugin'],b[_0x31d253(0x1c8)],O[_0x31d253(0x1f0)],j[_0x31d253(0x4e8)],t[_0x31d253(0x393)],n[_0x31d253(0x421)],S[_0x31d253(0x264)],o[_0x31d253(0x42b)],c[_0x31d253(0x268)],d['UniverSheetSparklinePlugin'],M[_0x31d253(0x358)],w[_0x31d253(0x1fe)]),U(0x1,(0x0,e['Inject'])(e['Injector'])),U(0x2,y[_0x31d253(0x3bc)]),U(0x3,e[_0x31d253(0x285)])],ze);function Be(_0x2a1dbf){const _0x6ca76e=_0x31d253;let _0x4d02a3=_0x2a1dbf[_0x6ca76e(0x210)]();return{'locale':_0x4d02a3,'locales':{[_0x4d02a3]:_0x2a1dbf[_0x6ca76e(0x4e0)]()},'direction':_0x2a1dbf['getDirection']()};}function Ve(_0x19fc6a,_0x58e185){const _0x57a51e=_0x31d253;let _0x3850d4=_0x58e185[_0x57a51e(0x432)]();_0x19fc6a['dir']=_0x3850d4,_0x19fc6a[_0x57a51e(0x339)]['direction']=_0x3850d4;}function He(_0x37336d){const _0x20b256=_0x31d253;return Ue(_0x37336d)?typeof _0x37336d[_0x20b256(0x45d)]==_0x20b256(0x1d8)&&typeof _0x37336d[_0x20b256(0x312)]==_0x20b256(0x1af)&&Array[_0x20b256(0x42c)](_0x37336d[_0x20b256(0x26c)])&&Ue(_0x37336d[_0x20b256(0x3d6)]):!0x1;}function _0xa753(){const _0x3fa9b2=['makeDirty','showText','_updateURLWithCurrentState','RemoveNumfmtMutation','darkMode$','rules','getSheetBySheetId','column','36MQCHmM','SetSheetsFilterCriteriaMutation','univer-flex-1','setLocale','highlightSecond','_diffRangesMap','_initUniver','insertRow','sheets-history-ui.viewer.panel.title','none','ITransformService','bottom','removePivotTable','params','univer-flex\x20univer-items-center\x20univer-gap-2','_color','map','univer-absolute\x20univer-left-0\x20univer-top-0\x20univer-h-full\x20univer-w-px\x20univer-bg-gray-100\x20rtl:univer-left-auto\x20rtl:univer-right-0\x20dark:!univer-bg-gray-800','addTable','fromCollab','_sheetSkeletonManagerService','setCF','WorkbookRenameSheetPermission','_cellEditorManagerService','allRanges','getInterceptPoints','Checkbox','toRgbString','subscribeEvent','CopyWorksheetEndMutation','reduce','Failed\x20to\x20fetch\x20version\x20details:','scrollToViewportPos','IAuthzIoService','DependentOn','closePath','_setupSubUnitSync','historyUniver$','insertCellRanges','startColumn','_creators$','startRevision','_setWorksheetVisibility','arrowColumn','SetRowDataMutation','setTheme','UniverCollaborationPlugin','sparklineConfigMap','RangeProtectionRuleModel','_blinkIntervalTimer','InsertColMutation','_setFetching','setRowData','setRowAutoHeight','connectInjector','SetColDataMutation','UniverSheetsChartPlugin','isArray','AddConditionalRuleMutation','Univer','SetWorksheetRowHeightMutation','UniverDataValidationPlugin','univer-size-4\x20univer-shrink-0','getDirection','_createPalette','_getLabelHorizontalPosition','addRangeProtection','columnHeaderHeight','UniverSheetsDrawingUIPlugin','merge','setState','vertical','ICommandService','UniverSheetsConditionalFormattingUIPlugin','_removeDiffMarks','_blinkTimer','MenuItemType','register','fetchCreatorList','getOwnPropertyDescriptor','univer-h-12','SetPivotFieldFormatMutation','add','appendChild','urlChange$','startRevCreateTime','sort','sheets-history-ui.viewer.action.etc','blocks','_setOverlappingShapesHovered','RANGE_TYPE','MoveSheet','registerPlugin','hideCol','_permissionService','302334VgdpDp','palette$','delete','UniverUIPlugin','confirm-revert-revision','terminate','anonymous','removeDiffMarks','_dialogOptions$','forValue','getRange','hasMore','rowData','[MobileHistoryLoaderService]:\x20Plugin\x20','fetching','setPivotFieldFormat','format','sheets-history-ui.viewer.action.revertSheetPrefix','getUnit','sheets-history-ui.loader.panel.listFetchError','showRow','VIEW_MAIN','ChartUpdateConfigMutation','SetRowVisibleMutation','userId','init','setTableFilter','current','rangeInfo','ruleId','\x20has\x20been\x20registered.','YYYY-MM-DD','getActiveSheet','eventID','UniverSheetsHyperLinkPlugin','getElementById','reverse','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20univer-px-4\x20univer-py-2\x20univer-text-xs\x20univer-font-semibold\x20univer-text-gray-500\x20dark:!univer-bg-gray-900','defineProperty','_showRevertFailed','_highlightSecond','getDataRange','setTimeout','unsubscribe','ErrorCode','getUnhiddenWorksheets','SetWorksheetColWidthMutation','ensureVersion','setValue','_renderArrowRanges','INSERT','CollaborationStatus','clsx','sparklines','SetPivotSortMutation','viewportScrollX','2730VwakAw','endRevCreateTime','[VersionDiffService]:\x20Failed\x20to\x20calculate\x20version\x20differences.','fetching$','lineTo','currentLocale$','_bindDrawingHighlightHover','-detail-','width','/creators','getCurrentUnitCurrentVersion','RenameSheet','HistoryIcon','UniverProFormulaEnginePlugin','ROW','includes','UniverCollaborationClientUIPlugin','moveRows','removeRow','type','UpdateSheetsShapeDataMutation','SHEETS_HISTORY_UI_PLUGIN_CONFIG_KEY','updateShapeData','HideSheet','-drawing-','[HistoryFetchService]:\x20request\x20snapshot\x20error!','copySheet','AddSheetTableMutation','univer-ml-1\x20univer-flex\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border\x20univer-border-primary-600\x20univer-bg-primary-50\x20univer-px-1.5\x20univer-text-xs\x20univer-text-primary-600','SetRangeThemeMutation','sheets-history-ui.viewer.panel.filterAi','DeleteSheetTableMutation','deleteDrawings','Tooltip','canRevert','_dialogService','scene','Module','RangeProtectionPermissionEditPoint','UniverRenderEnginePlugin','insertBorder','setDirection','startDateString','triggerLoadSheet','reorderSheet','CollaborationEvent','startRow','univer-mt-1\x20univer-text-xs\x20univer-text-gray-500','UpdateValuePositionMutation','viewportScrollY','loadingState$','join','has','UniverDocsPlugin','sheets-history-ui.viewer.header.back','mergeCells','subUnitIds','univer-flex\x20univer-items-center\x20univer-justify-center\x20univer-py-4','_generateDiffMarks','_sheetsFilterService','entities','univer-flex\x20univer-items-center\x20univer-gap-3\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-5\x20univer-py-4\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','_univerInstanceService','body','removeTable','versions$','sheets-history-ui.viewer.panel.listFetchError','_palette$','__getInjector','createUnit','24777nskbhD','FloatImg','historyUniver','code','pipe','abs','status$','RestoreIcon','revertSheet','deleteCellRanges','removeEventListener','range','switchMap','InsertSheetsChartMutation','InsertSheetsShapeMutation','insertChart','getLocales','setParam','then','IMessageService','_logService','_snapshotServerService','Subject','SetWorksheetHideMutation','UniverSheetsTablePlugin','univer-animate-spin','_drawVerticalArrow','unmergeCells','ranges','univer-text-gray-500','label','_commandService','createTime','span','object','Plugin','SetWorksheetPermissionPointsMutation','length','_loadParams','append','_lastLabel','removeAll','_historyManagerService','_localeService','WorkbookRecoverHistoryPermission','COLUMN','beginPath','moveCF','univer-shrink-0\x20univer-rounded\x20univer-border\x20univer-border-primary-600\x20univer-bg-primary-50\x20univer-px-1.5\x20univer-py-0.5\x20univer-text-xs\x20univer-text-primary-600\x20dark:!univer-bg-transparent','sheet','InsertSheetMutation','horizontal','hasCommand','_internalWebWorker','getSparklineById','useMemo','ThemeService','UniverSheetsDataValidationUIPlugin','UNIVER_SHEETS_HISTORY_VIEWER_PLUGIN','getSubUnitId','UniverSheetsHistoryUIPlugin','UniverSheetsHyperLinkMobileUIPlugin','_renderCellRanges','FromArray','showCol','_config','_urlService','SetColHiddenMutation','UpdateSheetsShapeTypeMutation','_dataLoaderService','chartId','_canRevert','ChartUpdateSourceConfigMutation','toggleGridlines','entered','univer-text-center\x20univer-text-gray-500\x20dark:!univer-text-gray-400','UNIVER_SHEETS_HISTORY_UI_PLUGIN','endColumn','addSparkline','CompressMutationService','sheets-history-ui.loader.panel.reverting','672410ksjvzc','getAllPlugins','univerContainerId','ruleIds','pluginName','UniverSheetsDrawingMobileUIPlugin','_initListener','deleteWorksheetRangeTheme','_revertAcknowledgementSubscription','SheetSkeletonManagerService','renameWorkbook','ILogService','univer-size-4','_unitCurrentVersionMap','borderBottomClassName','constructor','setFilterCriteria','_workbookDataCache','sheets-history-ui.viewer.panel.revertConfirmText','Shape','green.800','BUTTON','_startBlinking','removePivotField','toPrimitive','UniverSheetsHistoryPlugin','push','currentVersion$','_renderDrawingHighlights','AddDataValidationMutation','useObservable','rowHeaderWidth','_registerHeader','_messageService','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-px-3\x20univer-py-2\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-800','_themeService','updateChartSource','UniverMobileUIPlugin','_initActiveSwitch','_checkCanRevert','univer.operation.toggle-edit-history','setRowHeight','userID','univer-pointer-events-auto\x20univer-flex\x20univer-flex-col\x20univer-rounded-t-2xl\x20univer-bg-gray-0\x20univer-shadow-lg\x20univer-transition-[height]\x20univer-duration-300\x20dark:!univer-bg-gray-950','UNIVER_SHEETS_HISTORY_VIEWER_MOBILE_PLUGIN','TRUE','deleteRangeProtection','MoreRightIcon','univer-absolute\x20univer-flex\x20univer-h-[calc(100%-32px)]\x20univer-w-[calc(100%-16px)]\x20univer-flex-col\x20univer-overflow-auto','setOffsetY','SetPivotFilterMutation','updateTable','SYNCED','SetWorksheetActivateCommand','highlight','UnitAction','getCoordByCell','LOCALE_META','CollaborationImageIoService','decorate','OPERATION','moveRange','DataLoaderService','univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-font-semibold','_rangeProtectionRuleModel','univer-min-h-15\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20univer-py-1.5\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-800','updateShapeType','color','getSubunitRuleList','Button','DeleteWorksheetRangeThemeStyleMutation','exhaustSavingTask','updateBorder','_initContainer','UniverSheetsNumfmtPlugin','UniverSheetsFilterUIPlugin','name','WorkbookEditablePermission','_init','Inject','formatIntl','setConfig','session','setPivotSubtotalType','setRowIsAutoHeight','Edit','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-gap-1.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','true','addRangeTheme','_updateWorksheetVisibility','_injector','lineWidth','_categorizeMutationRanges','UniverSheetSparklinePlugin','sheets-history-ui.viewer.header.revert','position','UpdateDataValidationMutation','SheetPermissionInitController','UniverSheetsMobileUIPlugin','unionPivotViewRange','1262936UjJBBA','updatePivotSource','startRev','unMountHistoryContent','_getAPIPrefix','action','slice','\x20-\x20','setRangeValues','_historyFetchService','UniverDocsUIPlugin','_sheetTableService','insert','renameSheet','_versionDiffService','string','DrawingApplyType','SetRangeValuesMutation','flat','state$','useRef','ArrowLeftIcon','sheets-history-ui.viewer.action.insertDrawing','getHistoryChangesets','HEADER','getRule','transformSnapshotToWorkbookData','data','Fragment','updatePivotFieldSource','UniverSheetsShapeUIPlugin','default','insertShape','_highlight','menu','_cacheKey','_handleOverlappingShapes','addPivotTable','removeCol','COMPRESS_MUTATION_APPLY','UniverNetworkPlugin','labelKey','SetWorkbookNameMutation','[MobileHistoryLoaderService]:\x20Configure\x20a\x20valid\x20Univer\x20container\x20before\x20opening\x20history.','loadHistoryCreatorList','m1Prime','sheets-history-ui.viewer.panel.today','link','categorizeMutationRanges','debounce','UniverInstanceType','SetWorksheetActiveOperation','SheetsFilterService','sheets-history-ui.config','registerRenderModule','AuthzIoHttpService','boolean','sheets-history-ui.viewer.panel.cancel','commands','useCallback','IDrawingManagerService','subType','_disposed','fillStyle','_borderDiffs','univer-max-h-[300px]\x20univer-overflow-y-auto\x20univer-py-1','univer-w-10','_sidebarDisposable','UniverSheetSparklineMobileUIPlugin','AddPivotFieldMutation','Comment','14273jzCdTk','_clearRevertAcknowledgement','div','getUnitOnRev','unitId','RemoveSheetsChartMutation','setRightToLeft','_drawHorizontalArrow','LS_CONFIG_KEY','UniverSheetsFilterPlugin','_localCacheService','removeFilter','display','keys','getSelectedVersionCanRevert','ILocalCacheService','IUniverInstanceService','setShapeProps','sourceRange','_status$','setAlpha','MoveColsMutation','mergeMenu','UniverSheetsDataValidationPlugin','52840dZjToE','evented','transformMutations','UniverDrawingPlugin','useState','onStarting','complete','_updateSubUnitFromURLParams','SetDrawingApplyMutation','_conditionalFormattingRuleModel','ISnapshotServerService','getFilterModel','deleteBorder','targetRange','isError','confirm','ConditionalFormattingRuleModel','getCurrentLocale','currentTheme$','currentVersionDiff$','find','_unitId$','ISidebarService','RemoveSheetsShapeMutation','univer-flex\x20univer-h-12\x20univer-cursor-default\x20univer-items-center\x20univer-justify-between\x20univer-px-3','toDisposable','SetWorksheetRowAutoHeightMutation','getPivotTableRangeInfo','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-text-gray-400\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','historyAIassistantEnabled','skip','getMenuHiddenObservable','sheets-history-ui.viewer.panel.unknownUser','RemoveSheetMutation','SetSheetTableMutation','setFilter','RemovePivotTableMutation','_lastPointer','endRow','active','updateDrawings','clearInterval','date','SetWorksheetNameMutation','sheets-history-ui.viewer.panel.filterAll','next','revision','loaded','setColWidth','unitId$','registerComponent','blue.800','activeSheet$','cellValue','univer-flex\x20univer-items-center\x20univer-gap-2.5\x20univer-pt-1.5\x20univer-text-sm\x20univer-font-medium','SetPivotValueFilterMutation','takeUntil','_initRender','removeRangeTheme','removeNumfmt','hidden','updateChartConfig','close','numeric','getMatrix','getDeserializedSheetBlock','_versions$','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center','deleteCF','end','[HistoryFetchService]:\x20wrong\x20rev\x20from\x20the\x20server!','currentVersion','FALSE','setPivotFilter','_sheetsChartService','Workbook','MoveRangeMutation','interceptor','Error','closeAll','REMOVE','_setVersions','permissionId','top','_detailVersionsMap','ReorderRangeMutation','_handleRevertAcknowledgement','getCollabEntity','packageName','_initPointerEvents','SetWorksheetRowIsAutoHeightMutation','SetConditionalRuleMutation','DeleteConditionalRuleMutation','MoveConditionalRuleMutation','getUnitId','80235BQqyEH','triggerCustomVersions','SetNumfmtMutation','unknownUser','endRev','subunit','UniverSheetsConditionalFormattingPlugin','Segmented','drawingId','_selectionProtectionRuleModel','UniverSheetsPivotTablePlugin','updatePermissionPoint','useEffect','2-digit','versions','onPointerEnter$','transform','UniverSheetsFormulaPlugin','exited','getSheetId','univer-flex\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-100\x20univer-px-4\x20univer-py-3\x20dark:!univer-border-gray-800','zIndex','height','setColData','RevertRevisionMutation','removeChart','addEventListener','onMouseMove','_fetching$','direction$','updateFieldPosition','workerURL','parse','/list?','rtl','removeSparkline','UpdatePivotTableSourceRangeMutation','combineLatest','scroll','IConfigService','_arrowDiffs','_createStyle','time','arrowColumnRanges','dispose$','RemoveDataValidationMutation','sheets-history-ui.viewer.panel.aiAssistant','UpdateFieldPositionMutation','WorkbookMoveSheetPermission','RemoveSheetSparklineMutation','UniverDrawingMobileUIPlugin','call','take','moveTo','insertDrawings','ToggleGridlinesMutation','dir','stringify','WorkbookViewHistoryPermission','WorksheetEditPermission','[HistoryLoaderService]:\x20Plugin\x20','_openPanel$','concat','setDrawingEditable','getMember','fetchThroughInterceptors','HTTPService','sheets-history-ui.viewer.panel.filterCollaboratorConfirm','_context','_sparklineDataSourceModel','openPanel$','loadInitialVersions','red.800','_pointerMoveSubscription','update','loadingState','max','_initDiffRender','_hasMore','registerDetailVersion','RibbonStartGroup','open','_initPanel','ghost','disposeUnit','univer-size-8\x20univer-text-gray-400\x20rtl:univer-rotate-180','addPivotField','container','DisposableCollection','updateBorderRanges','_disposableCollection','IPermissionService','sheets-history-ui.viewer.action.','IMenuManagerService','groupIds','sheets-history-ui.viewer.panel.filterCollaborator','triggerDblclick','timeout','recoverTime','SetWorksheetRightToLeftMutation','tableId','creators$','changesets','SetWorksheetRowCountMutation','AddWorksheetMergeMutation','onSteady','composePermission','Dropdown','direction','isSheetHidden','UniverLicensePlugin','getParam','cfId','_currentVersionDiff$','sheets-history-ui.viewer.panel.filterUser','primary','stopPropagation','parent','univer-truncate\x20univer-text-xs\x20univer-text-gray-500\x20dark:!univer-text-gray-400','AddPivotTableMutation','_loadingState$','UI_PLUGIN_CONFIG_KEY','setPermissionPoints','setGridlinesColor','useDependency','GLOBAL','sheets-history-ui.viewer.info.loading','univer-text-xs\x20univer-text-gray-400','_dataValidationModel','_diffs','IUIPartsService','objects','executeCommand','Info','jsx','clear','setInterval','UniverSheetsDataValidationMobileUIPlugin','users','setNumfmt','ColorKit','getMutationActionMap','arrowRow','_createUnit','_draw','hide','subUnitId','_sheetsPivotTableConfigModel','Injector','mutations','_confirmService','_pluginMap','setSparkline','deleteBorderRanges','getViewport','arrowRowRanges','InsertRowMutation','univer-bg-blue-50\x20dark:!univer-bg-gray-900','_historyUniver$','IconManager','setPivotPosition','function','onRendered','getVersion','chartModelId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onPointerLeave$','univer-border-t\x20univer-border-gray-200\x20dark:!univer-border-gray-700','removeShape','historyPanelHidden','VIRTUAL_VERSION_NOW','_applyWorkbookData','_drawingManagerService','location','SetPivotPositionMutation','start','univer-size-6\x20univer-animate-spin\x20univer-text-gray-500','hideSheet','isTransformMutationsSuccess','_menuManagerService','lastLabel','strokeStyle','catch','_updateVersions','SetWorksheetRangeThemeStyleMutation','WorkbookHideSheetPermission','univer-flex-1\x20univer-overflow-y-auto','currentSkeleton$','recalcFilter','getCoordRelativeToViewport','LocaleService','ObjectMatrix','univer-flex\x20univer-w-3\x20univer-items-center\x20univer-justify-center','univer-flex\x20univer-min-h-6\x20univer-w-full\x20univer-items-center\x20univer-justify-between','univer-h-[60%]','event$','triggerLoadVersions','univer-flex\x20univer-items-center\x20univer-justify-end\x20univer-gap-2\x20univer-p-2','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_syncViewerServices','parseProtocolChangeset','additionalFields','getSheets','_sidebarService','_registerLoadingMask','ToggleEditHistoryOperation','_sheetPermissionInitController','focusUnit','userIds','prototype','UniverSheetSparklineUIPlugin','subscribe','absolute','getRuleById','univer.operation.exit-edit-history','_stopBlinking','RangeMergeUtil','_renderManagerService','IDialogService','style','dispose','sheets-history-ui.viewer.panel.revertConfirm','1.0.2','invoke','version','getCurrentUnitOfType','100%','setTabColor','IImageIoService','UniverSheetsShapeMobileUIPlugin','BehaviorSubject','forEach','Loading','createElement','setDarkMode','SetPivotCollapseMutation','some','AddSheetSparklineMutation','clearTimeout','globalAlpha','univer-text-sm','1264BClipV','filter','fill','Disposable','setPivotOption','univer-relative\x20univer-flex-1\x20univer-space-y-2\x20univer-pb-4','pivotTableId','IURLService','from','UniverSheetsUIPlugin','UniverSheetsShapePlugin','SheetCollabCursorShape','SetPivotSubtotalTypeMutation','updateCellRanges','dateKit','key','getSelectedVersionIsCurrentVersion','RenamePivotFieldMutation','get','_ensureCurrentVersion','scrollToShape','renamePivotField','MessageType','UniverSheetsDrawingPlugin','SetSheetTableFilterMutation','RemoveColMutation','_compressMutationService','RemoveWorksheetMergeMutation','setWorksheetRangeTheme','univer-animate-spin\x20univer-text-gray-400','symbol','univer-flex\x20univer-shrink-0\x20univer-cursor-pointer\x20univer-flex-col\x20univer-items-center\x20univer-py-2','columnData','SetRowHiddenMutation','SnapshotServerOverHTTPService','sheets-history-ui.viewer.panel.currentVersion','transparent','block','blockMeta','sheets-history-ui.loader.panel.revertFailed','sheets-history-ui.viewer.panel.confirm','SetWorksheetOrderMutation','UNIVER_SHEET','SetWorksheetColumnCountMutation','SetPivotOptionMutation','loadSheet','UniverSheetsHyperLinkUIPlugin','reload','workbook','univer-absolute\x20univer-left-[30px]\x20univer-top-0\x20univer-h-full\x20univer-w-2.5\x20rtl:univer-left-auto\x20rtl:univer-right-[30px]','CreateUnitMutation','syncExecuteCommand','getTableInfo','permissionPointUpdate$','unitID','CollaborationController','_updateDiffMarks','_diffColorService','values','user','triggerRevert','insertCol','disposeWithMe','_renderBorderRanges','BuiltInUIPart','registerCommand','_openPanel','dateString','UniverSheetsPlugin','IConfirmService','_currentVersion$','RemoveSheetsFilterMutation','stroke','getConfig','mountHistoryContent','_createDrawingHighlight','value','_yieldToMain','setPivotSort','univer-m-auto\x20univer-animate-spin','updateValuePosition','univer-relative\x20!univer-mb-0\x20!univer-mt-0','univer-mb-0.5\x20univer-flex\x20univer-items-center\x20univer-gap-2','getCurrentVersion','_httpService','univer-bg-gray-0/70\x20dark:!univer-bg-gray-900/70\x20univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-flex\x20univer-cursor-wait\x20univer-items-center\x20univer-justify-center\x20univer-backdrop-blur-sm','loading','LoadingMultiIcon','hideDiffMarks','insertBorderRanges','_extractRanges','polite','_uiPartsService','UpdatePivotFieldSourceInfoMutation','univer-text-sm\x20univer-leading-5\x20univer-text-gray-500\x20dark:!univer-text-gray-300','status','asObservable','UniverDrawingUIPlugin','_collaborationController','moveCols','ReCalcSheetsFilterMutation','MoveRowsMutation','set','transformByState','sheets-history-ui.viewer.panel.currentUser','children','BooleanNumber','_revertRevision$','SetColVisibleMutation','IRenderManagerService','toStringTag','CHANGESET_ACK','addObjects','shapeId','_configService','left','_direction','sheets-history-ui.loader.panel.title','updateDrawing','error','_combineRanges','_getActiveSubUnitId','getVersions','selectVersion','_transformService','endDateString','rule','setPivotCollapse','removeDV','SetSheetSparklineMutation','_scrollToShape','show','SetSheetsFilterRangeMutation','_initPlugins','&endRevision=','members','_findOverlappingShapes','setRangeProtection','RemovePivotFieldMutation','setPivotValueFilter','loadUnit','OTHERS','_members','setDefaultStyle','historyPanelComponentKey','toString','_getSheetObject','exitHistoryMode','univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-gap-1','loadMoreVersions','_isBlinkVisible','jsxs','iterator','_transformMutationByOrder','right','sheetId'];_0xa753=function(){return _0x3fa9b2;};return _0xa753();}function Ue(_0x327f4c){const _0x13e65f=_0x31d253;return typeof _0x327f4c==_0x13e65f(0x4f2)&&!!_0x327f4c;}const We='univer-history-container';let Z=class extends e['Disposable']{constructor(_0x3f7c95,_0x9fafe,_0x3ee175,_0x44d70f,_0x5437f6,_0xa039ce,_0x459433,_0x28e414,_0x2c1a45,_0x4dc022){const _0x36b7f5=_0x31d253;super(),this[_0x36b7f5(0x4fb)]=_0x3f7c95,this[_0x36b7f5(0x4c8)]=_0x9fafe,this[_0x36b7f5(0x3c1)]=_0x3ee175,this[_0x36b7f5(0x4ef)]=_0x44d70f,this[_0x36b7f5(0x542)]=_0x5437f6,this[_0x36b7f5(0x451)]=_0xa039ce,this['_selectionProtectionRuleModel']=_0x459433,this['_dialogService']=_0x28e414,this[_0x36b7f5(0x329)]=_0x2c1a45,this[_0x36b7f5(0x544)]=_0x4dc022,H(this,'_historyUniver$',new P['BehaviorSubject'](null)),H(this,_0x36b7f5(0x418),this[_0x36b7f5(0x2fc)][_0x36b7f5(0x3af)]()),H(this,_0x36b7f5(0x2b8),new e[(_0x36b7f5(0x2b6))]()),H(this,_0x36b7f5(0x2f5),new Map()),H(this,_0x36b7f5(0x505),null),this[_0x36b7f5(0x56f)]();}get[_0x31d253(0x4d2)](){const _0xe1f7cb=_0x31d253;return this[_0xe1f7cb(0x2fc)][_0xe1f7cb(0x39b)];}[_0x31d253(0x56f)](){const _0x230a40=_0x31d253;this[_0x230a40(0x56a)](),this[_0x230a40(0x3d4)]();}[_0x31d253(0x56a)](){const _0x31cf85=_0x31d253;var _0x19932f;let _0x10791e=this['_configService'][_0x31cf85(0x398)](B),_0x51fd91=(_0x19932f=this['_configService']['getConfig'](N[_0x31cf85(0x2d7)]))==null?void 0x0:_0x19932f[_0x31cf85(0x2b5)],_0x87d71b=(_0x10791e==null?void 0x0:_0x10791e[_0x31cf85(0x523)])??_0x51fd91,_0x3db3e3=typeof _0x87d71b==_0x31cf85(0x1af)?document[_0x31cf85(0x475)](_0x87d71b):_0x87d71b;if(!_0x3db3e3)throw Error('[HistoryLoaderService]:\x20Configure\x20a\x20valid\x20Univer\x20container\x20before\x20opening\x20history.');let _0x3e3b4b=document[_0x31cf85(0x347)](_0x31cf85(0x1e9));_0x3e3b4b['id']=We,_0x3e3b4b['style'][_0x31cf85(0x19b)]=_0x31cf85(0x332),_0x3e3b4b[_0x31cf85(0x339)]['top']='0',_0x3e3b4b[_0x31cf85(0x339)][_0x31cf85(0x3c2)]='0',_0x3e3b4b[_0x31cf85(0x339)]['width']='100%',_0x3e3b4b[_0x31cf85(0x339)]['height']=_0x31cf85(0x340),_0x3e3b4b[_0x31cf85(0x339)][_0x31cf85(0x273)]='49',_0x3e3b4b[_0x31cf85(0x339)][_0x31cf85(0x1f3)]=_0x31cf85(0x3fc),Ve(_0x3e3b4b,this[_0x31cf85(0x4fb)]),_0x3db3e3[_0x31cf85(0x446)](_0x3e3b4b);}[_0x31d253(0x3d4)](){const _0x50aeae=_0x31d253;[[y[_0x50aeae(0x4b1)]],[N[_0x50aeae(0x455)],{'container':We,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[N[_0x50aeae(0x338)],null]]}],[b[_0x50aeae(0x1c8)]],[_[_0x50aeae(0x202)],{'override':[[e['IImageIoService'],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g[_0x50aeae(0x1aa)]],[re[_0x50aeae(0x56b)]],[t['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[M[_0x50aeae(0x358)]],[A[_0x50aeae(0x26f)]],[ee['UniverSheetsFormulaUIPlugin']],[n[_0x50aeae(0x421)]],[O[_0x50aeae(0x1f0)]],[k[_0x50aeae(0x56c)]],[S['UniverSheetsConditionalFormattingPlugin']],[C[_0x50aeae(0x43c)]],[te[_0x50aeae(0x474)]],[ne[_0x50aeae(0x37d)]],[p['UniverDataValidationPlugin']],[w['UniverSheetsDataValidationPlugin']],[T[_0x50aeae(0x509)]],[i[_0x50aeae(0x497)],{'notExecuteFormula':!0x0}],[v[_0x50aeae(0x3b0)]],[E[_0x50aeae(0x366)]],[D[_0x50aeae(0x437)]],[d['UniverSheetSparklinePlugin']],[f[_0x50aeae(0x330)]],[o[_0x50aeae(0x42b)]],[s['UniverSheetsChartUIPlugin']],[l[_0x50aeae(0x359)]],[u[_0x50aeae(0x1be)]],[c[_0x50aeae(0x268)],{'notExecuteFormula':!0x0}],[j[_0x50aeae(0x4e8)]]][_0x50aeae(0x345)](([_0x3d5ed8,_0x3d3444])=>this[_0x50aeae(0x44f)](_0x3d5ed8,_0x3d3444));}['dispose'](){const _0x3e289a=_0x31d253;super[_0x3e289a(0x33a)](),this['unMountHistoryContent'](),this[_0x3e289a(0x2f5)][_0x3e289a(0x2e5)]();}[_0x31d253(0x44f)](_0xc31aae,_0xe285df,_0x273da9){const _0x50a1ca=_0x31d253;if(this['_pluginMap']['has'](_0xc31aae[_0x50a1ca(0x525)])&&!_0x273da9)throw Error(_0x50a1ca(0x29a)+_0xc31aae['pluginName']+_0x50a1ca(0x470));this['_pluginMap'][_0x50a1ca(0x3b5)](_0xc31aae['pluginName'],[_0xc31aae,_0xe285df]);}[_0x31d253(0x522)](){const _0xeb1684=_0x31d253;return Array['from'](this[_0xeb1684(0x2f5)][_0xeb1684(0x389)]());}[_0x31d253(0x399)](_0x433439,_0x5756d5){const _0x3be184=_0x31d253;let _0x13e8a2=document['getElementById'](We);_0x13e8a2&&(_0x13e8a2[_0x3be184(0x339)][_0x3be184(0x1f3)]=_0x3be184(0x374),this[_0x3be184(0x3f9)](_0x433439,We,_0x5756d5));}[_0x31d253(0x1a3)](){const _0x329495=_0x31d253;var _0x2cc6cb;this[_0x329495(0x2b8)][_0x329495(0x33a)](),(_0x2cc6cb=this['historyUniver'])==null||_0x2cc6cb[_0x329495(0x33a)](),this[_0x329495(0x2fc)]['next'](null);let _0x583993=document[_0x329495(0x475)](We);_0x583993&&(_0x583993['style'][_0x329495(0x1f3)]=_0x329495(0x3fc),this[_0x329495(0x505)]&&=(this[_0x329495(0x505)][_0x329495(0x457)](),null));}[_0x31d253(0x3f9)](_0x59b966,_0x4bf719,_0x30a97a){const _0x490933=_0x31d253;var _0xd50bf6,_0x4edf12,_0x3eb43c,_0x537676;if(this[_0x490933(0x4d2)])return;let _0x74600f=new e['Univer']({...Be(this[_0x490933(0x4fb)]),'override':[[e[_0x490933(0x414)],{'useClass':r[_0x490933(0x1d7)]}]]}),_0x45c91f=_0x74600f[_0x490933(0x4ce)]();this[_0x490933(0x325)](_0x45c91f,_0x4bf719),_0x45c91f[_0x490933(0x361)](e[_0x490933(0x285)])[_0x490933(0x572)](r[_0x490933(0x324)],this[_0x490933(0x3c1)][_0x490933(0x398)](r[_0x490933(0x324)]));let _0x3e59ad=this[_0x490933(0x3c1)][_0x490933(0x398)](a[_0x490933(0x1ef)]);_0x3e59ad&&_0x74600f[_0x490933(0x44f)](a[_0x490933(0x2cc)],{'license':_0x3e59ad['ls']});let _0x132b2f=(_0xd50bf6=this[_0x490933(0x3c1)][_0x490933(0x398)]('sheets-history-ui.config'))==null?void 0x0:_0xd50bf6['workerURL'];_0x132b2f&&(this['_internalWebWorker']=_0x132b2f instanceof Worker?_0x132b2f:null,_0x74600f[_0x490933(0x44f)](x['UniverRPCMainThreadPlugin'],{'workerURL':_0x132b2f})),this[_0x490933(0x2f5)][_0x490933(0x345)](([_0x4845f7,_0x47f686])=>{const _0x2e2db9=_0x490933;_0x74600f[_0x2e2db9(0x44f)](_0x4845f7,_0x47f686);}),_0x74600f['registerPlugin'](ze,{'historyServerUrl':oe(this[_0x490933(0x3c1)]['getConfig'](B)),'historyPanelComponentKey':(_0x4edf12=this[_0x490933(0x3c1)]['getConfig'](_0x490933(0x1d5)))==null?void 0x0:_0x4edf12[_0x490933(0x3df)],'historyPanelHidden':(_0x3eb43c=this['_configService'][_0x490933(0x398)](_0x490933(0x1d5)))==null?void 0x0:_0x3eb43c[_0x490933(0x307)],'historyAIassistantEnabled':(_0x537676=this[_0x490933(0x3c1)][_0x490933(0x398)]('sheets-history-ui.config'))==null?void 0x0:_0x537676[_0x490933(0x21c)]}),_0x45c91f[_0x490933(0x33d)](_0x289a4e=>{const _0x37a4c2=_0x490933;this[_0x37a4c2(0x527)](_0x289a4e,_0x59b966);}),this[_0x490933(0x2fc)]['next'](_0x74600f);let _0x5dfbeb=_0x45c91f[_0x490933(0x361)](q),_0x4ff0fd=this[_0x490933(0x548)](_0x59b966);He(_0x30a97a)?_0x5dfbeb[_0x490933(0x25f)](_0x59b966,_0x4ff0fd,_0x30a97a):_0x5dfbeb[_0x490933(0x322)](_0x59b966,_0x4ff0fd)[_0x490933(0x314)](()=>void 0x0);}['_syncViewerServices'](_0x4c9bc9,_0x2b3002){const _0x3c0e40=_0x31d253;let _0x5a3bd5=_0x4c9bc9[_0x3c0e40(0x361)](e[_0x3c0e40(0x508)]);this[_0x3c0e40(0x2b8)]['add'](this[_0x3c0e40(0x544)][_0x3c0e40(0x3ef)][_0x3c0e40(0x331)](_0x5540f7=>{_0x5a3bd5['setDarkMode'](_0x5540f7);})),this[_0x3c0e40(0x2b8)][_0x3c0e40(0x445)](this[_0x3c0e40(0x544)][_0x3c0e40(0x211)]['subscribe'](_0x38866d=>{const _0xfee3ea=_0x3c0e40;_0x5a3bd5[_0xfee3ea(0x420)](_0x38866d);}));let _0x5dfeed=_0x4c9bc9[_0x3c0e40(0x361)](e[_0x3c0e40(0x31c)]);this[_0x3c0e40(0x2b8)][_0x3c0e40(0x445)](this[_0x3c0e40(0x4fb)][_0x3c0e40(0x48f)]['subscribe'](_0x153cb1=>{const _0x54d4b5=_0x3c0e40;let _0x4da5ab=this['_localeService'][_0x54d4b5(0x4e0)]();_0x4da5ab&&_0x5dfeed['load']({[_0x153cb1]:_0x4da5ab}),_0x5dfeed[_0x54d4b5(0x3f6)](_0x153cb1);})),this[_0x3c0e40(0x2b8)][_0x3c0e40(0x445)](this[_0x3c0e40(0x4fb)][_0x3c0e40(0x27b)][_0x3c0e40(0x331)](_0x2e2d1d=>{const _0x387e5f=_0x3c0e40;_0x5dfeed[_0x387e5f(0x4b3)](_0x2e2d1d);let _0x54d3e4=document[_0x387e5f(0x475)](_0x2b3002);_0x54d3e4&&(_0x54d3e4[_0x387e5f(0x296)]=_0x2e2d1d,_0x54d3e4[_0x387e5f(0x339)][_0x387e5f(0x2ca)]=_0x2e2d1d);}));}[_0x31d253(0x527)](_0x3590b9,_0x1c8be7){const _0x5c9f41=_0x31d253;let _0x5e4293=_0x3590b9[_0x5c9f41(0x361)](q);this[_0x5c9f41(0x2b8)][_0x5c9f41(0x445)](_0x5e4293[_0x5c9f41(0x4d6)]['subscribe'](_0x364113=>{const _0x3cb8a7=_0x5c9f41;switch(_0x364113){case _0x3cb8a7(0x51a):this[_0x3cb8a7(0x4ad)]['closeAll'](),this[_0x3cb8a7(0x329)]['close']();break;case'exited':this[_0x3cb8a7(0x4ef)]['executeCommand'](Ke['id']),this[_0x3cb8a7(0x1a3)]();break;case _0x3cb8a7(0x3c6):this[_0x3cb8a7(0x1a3)](),this[_0x3cb8a7(0x542)]['show']({'content':this[_0x3cb8a7(0x4fb)]['t'](_0x3cb8a7(0x465)),'type':m[_0x3cb8a7(0x365)][_0x3cb8a7(0x24d)],'duration':0xbb8});}})),this[_0x5c9f41(0x2b8)][_0x5c9f41(0x445)](_0x5e4293['revertRevision$'][_0x5c9f41(0x331)](_0x5a67a3=>{const _0x2dfcac=_0x5c9f41;if(_0x5a67a3){let _0xcde4b9={'unitId':_0x1c8be7,'revision':_0x5a67a3};this[_0x2dfcac(0x4ef)][_0x2dfcac(0x2e2)](n[_0x2dfcac(0x276)]['id'],_0xcde4b9)['catch'](()=>{const _0x302233=_0x2dfcac;_0x5e4293[_0x302233(0x3ae)]=_0x302233(0x3c6);});}}));}['_checkCanRevert'](_0x2470bc){const _0x1baeed=_0x31d253;let _0x40c530=this[_0x1baeed(0x4c8)][_0x1baeed(0x464)](_0x2470bc);if(!_0x40c530)return!0x1;let _0x54804f=_0x40c530['getSheets']()['map'](_0x2e731d=>_0x2e731d[_0x1baeed(0x271)]()),_0xb69564=new t[(_0x1baeed(0x56e))](_0x2470bc)['id'],_0x3c6a21=_0x54804f['map'](_0x3ffe9d=>new t[(_0x1baeed(0x299))](_0x2470bc,_0x3ffe9d)['id']),_0x3e3f7f=_0x54804f[_0x1baeed(0x403)](_0x51bd11=>this[_0x1baeed(0x267)][_0x1baeed(0x565)](_0x2470bc,_0x51bd11)['map'](_0x5bf54c=>new t[(_0x1baeed(0x4b0))](_0x2470bc,_0x51bd11,_0x5bf54c[_0x1baeed(0x251)])['id']))[_0x1baeed(0x1b2)](),_0x475043=new t[(_0x1baeed(0x4fc))](_0x2470bc)['id'];return this[_0x1baeed(0x451)][_0x1baeed(0x2c8)]([_0xb69564,..._0x3c6a21,..._0x3e3f7f,_0x475043])['every'](_0x59b1a4=>!!_0x59b1a4['value']);}};Z=W([U(0x0,(0x0,e[_0x31d253(0x570)])(e[_0x31d253(0x31c)])),U(0x1,e[_0x31d253(0x1f7)]),U(0x2,e['IConfigService']),U(0x3,e['ICommandService']),U(0x4,N[_0x31d253(0x4e3)]),U(0x5,e[_0x31d253(0x2b9)]),U(0x6,(0x0,e[_0x31d253(0x570)])(t[_0x31d253(0x423)])),U(0x7,(0x0,e[_0x31d253(0x570)])(N[_0x31d253(0x338)])),U(0x8,(0x0,e[_0x31d253(0x570)])(N[_0x31d253(0x215)])),U(0x9,(0x0,e['Inject'])(e['ThemeService']))],Z);const Ge={'id':_0x31d253(0x549),'type':e['CommandType'][_0x31d253(0x55d)],'handler':_0x4f7f16=>{const _0x110de7=_0x31d253;let _0xdcf2ba=_0x4f7f16[_0x110de7(0x361)](Z),_0xc73c7a=_0x4f7f16[_0x110de7(0x361)](e[_0x110de7(0x1f7)]),{unitId:_0x3f7e47}=(0x0,t['getSheetCommandTarget'])(_0xc73c7a)||{};return _0x3f7e47?(_0xdcf2ba[_0x110de7(0x399)](_0x3f7e47),!0x0):!0x1;}},Ke={'id':_0x31d253(0x334),'type':e['CommandType'][_0x31d253(0x55d)],'handler':()=>!0x0};function qe(_0x325c31){const _0x205274=_0x31d253;return{'id':Ge['id'],'type':N[_0x205274(0x43f)][_0x205274(0x536)],'icon':_0x205274(0x496),'title':_0x205274(0x3c4),'tooltip':_0x205274(0x3c4),'hidden$':(0x0,N[_0x205274(0x21e)])(_0x325c31,e[_0x205274(0x1d2)][_0x205274(0x379)]),'disabled$':(0x0,M['getCurrentRangeDisable$'])(_0x325c31,{'workbookTypes':[t[_0x205274(0x298)]],'worksheetTypes':[],'rangeTypes':[]})};}const Je={[N[_0x31d253(0x2ae)][_0x31d253(0x3dc)]]:{[Ge['id']]:{'order':0x64,'menuItemFactory':qe}}};function Ye(_0x1dc7b2){const _0x548937=_0x31d253;return!!(_0x1dc7b2&&_0x548937(0x1eb)in _0x1dc7b2&&typeof _0x1dc7b2[_0x548937(0x1eb)]==_0x548937(0x1af)&&'revision'in _0x1dc7b2&&typeof _0x1dc7b2[_0x548937(0x22d)]=='number');}function Xe(_0xb63f1e,_0x53765f){const _0xc1f266=_0x31d253;return _0xb63f1e[_0xc1f266(0x473)]===n[_0xc1f266(0x4b7)][_0xc1f266(0x3be)]&&(0x0,n[_0xc1f266(0x326)])(_0xb63f1e[_0xc1f266(0x1bb)])[_0xc1f266(0x2f3)]['some'](_0x2d519a=>_0x2d519a['id']===n[_0xc1f266(0x276)]['id']&&Ye(_0x2d519a['params'])&&_0x2d519a[_0xc1f266(0x400)][_0xc1f266(0x1eb)]===_0x53765f[_0xc1f266(0x1eb)]&&_0x2d519a['params'][_0xc1f266(0x22d)]===_0x53765f[_0xc1f266(0x22d)]);}let Ze=class extends e['RxDisposable']{constructor(_0x27f888,_0xed4b86,_0x4fcc2f,_0x424e94,_0x5cebc5,_0x34a8fb,_0x52ce81,_0x39788d,_0x3bc88d,_0x2308bb){const _0x8d710=_0x31d253;super(),this[_0x8d710(0x4ef)]=_0x27f888,this['_menuManagerService']=_0xed4b86,this[_0x8d710(0x4fa)]=_0x4fcc2f,this['_localeService']=_0x424e94,this[_0x8d710(0x542)]=_0x5cebc5,this['_collaborationController']=_0x34a8fb,this[_0x8d710(0x1f1)]=_0x52ce81,this[_0x8d710(0x515)]=_0x39788d,this[_0x8d710(0x4c8)]=_0x3bc88d,this[_0x8d710(0x512)]=_0x2308bb,H(this,'_revertAcknowledgementSubscription',null),this[_0x8d710(0x38d)]((0x0,e[_0x8d710(0x218)])(()=>this[_0x8d710(0x1e8)]())),this[_0x8d710(0x56f)]();}[_0x31d253(0x56f)](){const _0x3dac26=_0x31d253;[Ge,Ke][_0x3dac26(0x345)](_0x3ca93a=>this['disposeWithMe']((0x0,e[_0x3dac26(0x218)])(this[_0x3dac26(0x4ef)][_0x3dac26(0x390)](_0x3ca93a)))),this['_menuManagerService'][_0x3dac26(0x1fd)](Je),this[_0x3dac26(0x38d)](this[_0x3dac26(0x4ef)]['onCommandExecuted']((_0x1ead1e,_0x3d1dfa)=>{const _0x401d79=_0x3dac26;if(_0x1ead1e['id']===n[_0x401d79(0x276)]['id']&&Ye(_0x1ead1e[_0x401d79(0x400)])){let {revision:_0x16b6a1,unitId:_0x45f25d}=_0x1ead1e['params'];this[_0x401d79(0x542)][_0x401d79(0x3d2)]({'content':this[_0x401d79(0x4fb)]['t'](_0x401d79(0x520)),'type':m[_0x401d79(0x365)][_0x401d79(0x346)],'duration':0x1388});let _0x11925d=this['_collaborationController']['getCollabEntity'](_0x45f25d);if(!_0x11925d){this[_0x401d79(0x479)]();return;}_0x3d1dfa!=null&&_0x3d1dfa[_0x401d79(0x406)]?this[_0x401d79(0x255)](_0x11925d,{'revision':_0x16b6a1,'unitId':_0x45f25d},async()=>(setTimeout(()=>window['location'][_0x401d79(0x37e)]()),!0x0),!0x0):this[_0x401d79(0x255)](_0x11925d,{'revision':_0x16b6a1,'unitId':_0x45f25d},async()=>{const _0x7f0424=_0x401d79;let _0x906cfc=this[_0x7f0424(0x4c8)][_0x7f0424(0x33f)](e[_0x7f0424(0x1d2)][_0x7f0424(0x379)]),_0x12ef69=_0x906cfc==null?void 0x0:_0x906cfc[_0x7f0424(0x472)]();if(!_0x12ef69)return!0x1;this[_0x7f0424(0x4c8)][_0x7f0424(0x2b2)](_0x45f25d);let _0x220d90=await this['_dataLoaderService'][_0x7f0424(0x3db)](_0x45f25d,e[_0x7f0424(0x1d2)][_0x7f0424(0x379)]);return _0x220d90&&_0x220d90 instanceof e['Workbook']?(await this[_0x7f0424(0x417)](_0x220d90,_0x12ef69['getSheetId']()),!0x0):!0x1;});}}));}[_0x31d253(0x255)](_0x3876ff,_0x550de8,_0x1449f7,_0x3abd3e=!0x1){const _0x14a4ae=_0x31d253;this[_0x14a4ae(0x1e8)]();let _0x12470a=(0x0,P[_0x14a4ae(0x283)])([_0x3876ff[_0x14a4ae(0x18e)][_0x14a4ae(0x321)],_0x3876ff[_0x14a4ae(0x1b3)]])['pipe']((0x0,P[_0x14a4ae(0x350)])(([_0x56d518,_0x3b13d6])=>Xe(_0x56d518,_0x550de8)&&(_0x3b13d6==null?void 0x0:_0x3b13d6[_0x14a4ae(0x3ae)])===r[_0x14a4ae(0x485)]['SYNCED']),(0x0,P[_0x14a4ae(0x292)])(0x1)),_0xc7ca02=_0x12470a;_0x3abd3e&&(_0xc7ca02=_0x12470a[_0x14a4ae(0x4d4)]((0x0,P[_0x14a4ae(0x2bf)])({'first':0x1388}))),this[_0x14a4ae(0x529)]=_0xc7ca02[_0x14a4ae(0x4d4)]((0x0,P[_0x14a4ae(0x4dc)])(async()=>{const _0x49767d=_0x14a4ae;let _0x3e177f=await _0x1449f7();return _0x3e177f&&(this[_0x49767d(0x4fa)][_0x49767d(0x1a3)](),await this['_localCacheService'][_0x49767d(0x568)]()),_0x3e177f;}),(0x0,P[_0x14a4ae(0x237)])(this[_0x14a4ae(0x28a)]))[_0x14a4ae(0x331)]({'next':_0x37ccac=>{const _0x32415e=_0x14a4ae;this[_0x32415e(0x1e8)](),_0x37ccac?this['_messageService'][_0x32415e(0x4f9)]():this['_showRevertFailed']();},'error':()=>{const _0xac6e5e=_0x14a4ae;this[_0xac6e5e(0x1e8)](),this[_0xac6e5e(0x479)]();}});}['_clearRevertAcknowledgement'](){const _0x335c3b=_0x31d253;var _0x173b5e;(_0x173b5e=this[_0x335c3b(0x529)])==null||_0x173b5e[_0x335c3b(0x47d)](),this[_0x335c3b(0x529)]=null;}[_0x31d253(0x479)](){const _0xeb79b4=_0x31d253;this['_messageService'][_0xeb79b4(0x3d2)]({'content':this[_0xeb79b4(0x4fb)]['t'](_0xeb79b4(0x376)),'type':m['MessageType'][_0xeb79b4(0x24d)],'duration':0xbb8});}async[_0x31d253(0x417)](_0x40b993,_0x4975b7){const _0x292dfb=_0x31d253;await this[_0x292dfb(0x206)](_0x40b993,_0x4975b7),_0x40b993[_0x292dfb(0x233)][_0x292dfb(0x4d4)]((0x0,P[_0x292dfb(0x237)])(this['dispose$']))[_0x292dfb(0x331)](_0x396110=>{const _0x120f17=_0x292dfb;_0x396110&&this[_0x120f17(0x3ed)](_0x396110);}),this[_0x292dfb(0x512)][_0x292dfb(0x447)][_0x292dfb(0x4d4)]((0x0,P['takeUntil'])(this['dispose$']))[_0x292dfb(0x331)](()=>this[_0x292dfb(0x206)](_0x40b993,_0x4975b7));}[_0x31d253(0x3ed)](_0x2e6494,_0x2b6524=!0x1){const _0x408b37=_0x31d253;let _0x1961cd=this[_0x408b37(0x512)]['getParam'](_0x408b37(0x263));_0x2e6494['getSheetId']()!==_0x1961cd&&this[_0x408b37(0x512)][_0x408b37(0x4e1)](_0x408b37(0x263),_0x2e6494[_0x408b37(0x271)](),_0x2b6524);}async['_updateSubUnitFromURLParams'](_0x302064,_0x2cbf83){const _0x250ca0=_0x31d253;var _0x12f85a;if(!_0x2cbf83||!_0x302064['getSheetBySheetId'](_0x2cbf83)){let _0x5876ea=_0x302064[_0x250ca0(0x47f)]()[0x0],_0x169ad7=_0x302064[_0x250ca0(0x3f1)](_0x5876ea);if(!_0x169ad7)return;this[_0x250ca0(0x3ed)](_0x169ad7,!0x0),await this[_0x250ca0(0x4ef)][_0x250ca0(0x2e2)](t[_0x250ca0(0x556)]['id'],{'unitId':_0x302064[_0x250ca0(0x25d)](),'subUnitId':_0x5876ea});return;}((_0x12f85a=_0x302064['getActiveSheet']())==null?void 0x0:_0x12f85a[_0x250ca0(0x271)]())!==_0x2cbf83&&await this[_0x250ca0(0x4ef)][_0x250ca0(0x2e2)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x302064['getUnitId'](),'subUnitId':_0x2cbf83});}};Ze=W([U(0x0,e['ICommandService']),U(0x1,N[_0x31d253(0x2bb)]),U(0x2,(0x0,e[_0x31d253(0x570)])(Z)),U(0x3,(0x0,e['Inject'])(e[_0x31d253(0x31c)])),U(0x4,N['IMessageService']),U(0x5,(0x0,e[_0x31d253(0x570)])(r['CollaborationController'])),U(0x6,r[_0x31d253(0x1f6)]),U(0x7,(0x0,e[_0x31d253(0x570)])(r[_0x31d253(0x55f)])),U(0x8,e[_0x31d253(0x1f7)]),U(0x9,z[_0x31d253(0x356)])],Ze);let Qe=class extends e[_0x31d253(0x352)]{constructor(_0x7f2fde){const _0x3fe6bc=_0x31d253;super(),this[_0x3fe6bc(0x38d)](_0x7f2fde[_0x3fe6bc(0x440)]({'HistoryIcon':F[_0x3fe6bc(0x496)]}));}};Qe=W([U(0x0,(0x0,e[_0x31d253(0x570)])(N[_0x31d253(0x2fd)]))],Qe);function $e(){const _0x11b8c5=_0x31d253;let _0x1e171b=(0x0,N['useDependency'])(q),_0x51e10a=(0x0,N['useDependency'])(e[_0x11b8c5(0x31c)]),_0x2c4ba7=(0x0,N[_0x11b8c5(0x53f)])(_0x1e171b[_0x11b8c5(0x53c)]),_0x241c36=(0x0,I['useMemo'])(()=>_0x2c4ba7?_0x1e171b[_0x11b8c5(0x1f5)]():!0x1,[_0x1e171b,_0x2c4ba7]),_0x5a7496=(0x0,I[_0x11b8c5(0x1db)])(()=>{const _0x44b2bb=_0x11b8c5;_0x1e171b[_0x44b2bb(0x3e2)]();},[_0x1e171b]),_0x3e3df5=(0x0,I[_0x11b8c5(0x1db)])(()=>{const _0x684625=_0x11b8c5;_0x1e171b[_0x684625(0x38b)]();},[_0x1e171b]);return(0x0,R['jsxs'])('div',{'className':'univer-flex\x20univer-h-12\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-950','children':[(0x0,R[_0x11b8c5(0x2e4)])(m[_0x11b8c5(0x566)],{'variant':'link','onClick':_0x5a7496,'children':_0x51e10a['t'](_0x11b8c5(0x4c0))}),_0x241c36?(0x0,R['jsx'])(m[_0x11b8c5(0x566)],{'variant':_0x11b8c5(0x1cf),'onClick':_0x3e3df5,'children':_0x51e10a['t'](_0x11b8c5(0x19a))}):(0x0,R[_0x11b8c5(0x2e4)])('div',{'className':_0x11b8c5(0x1e2)})]});}let et=class extends e[_0x31d253(0x352)]{constructor(_0x52b25a,_0x14ae29,_0x5136a7,_0x33976b,_0x4106b7,_0x3c251e,_0x19b42a){const _0x59e7e0=_0x31d253;super(),this[_0x59e7e0(0x451)]=_0x52b25a,this[_0x59e7e0(0x3ab)]=_0x14ae29,this[_0x59e7e0(0x542)]=_0x5136a7,this[_0x59e7e0(0x4fb)]=_0x33976b,this['_historyManagerService']=_0x4106b7,this[_0x59e7e0(0x196)]=_0x3c251e,this[_0x59e7e0(0x3c1)]=_0x19b42a,this[_0x59e7e0(0x56f)]();}[_0x31d253(0x56f)](){const _0x57c4b7=_0x31d253;this[_0x57c4b7(0x38d)](this[_0x57c4b7(0x4fa)]['currentVersion$']['subscribe'](_0x41ffef=>{const _0x21a21d=_0x57c4b7;_0x41ffef&&this[_0x21a21d(0x4fa)]['triggerLoadSheet'](_0x41ffef);})),this[_0x57c4b7(0x38d)](this['_permissionService'][_0x57c4b7(0x384)]['subscribe'](_0x245265=>{const _0x3de292=_0x57c4b7;let _0x2967d1=this[_0x3de292(0x4fa)][_0x3de292(0x1eb)];_0x2967d1&&(_0x245265['subType']===L[_0x3de292(0x558)][_0x3de292(0x191)]&&_0x245265[_0x3de292(0x39b)]===!0x0&&this[_0x3de292(0x451)][_0x3de292(0x269)](new t[(_0x3de292(0x56e))](_0x2967d1)['id'],!0x1),_0x245265[_0x3de292(0x1dd)]===L[_0x3de292(0x558)][_0x3de292(0x495)]&&_0x245265[_0x3de292(0x39b)]===!0x0&&this[_0x3de292(0x451)][_0x3de292(0x269)](new t[(_0x3de292(0x409))](_0x2967d1)['id'],!0x1),_0x245265['subType']===L[_0x3de292(0x558)]['MoveSheet']&&_0x245265[_0x3de292(0x39b)]===!0x0&&this[_0x3de292(0x451)]['updatePermissionPoint'](new t[(_0x3de292(0x28e))](_0x2967d1)['id'],!0x1),_0x245265[_0x3de292(0x1dd)]===L[_0x3de292(0x558)][_0x3de292(0x4a1)]&&_0x245265[_0x3de292(0x39b)]===!0x0&&this[_0x3de292(0x451)][_0x3de292(0x269)](new t[(_0x3de292(0x317))](_0x2967d1)['id'],!0x1),_0x245265['subType']===L[_0x3de292(0x558)][_0x3de292(0x1e6)]&&_0x245265[_0x3de292(0x39b)]===!0x0&&this['_permissionService'][_0x3de292(0x269)](new t[(_0x3de292(0x56e))](_0x2967d1)['id'],!0x1),_0x245265[_0x3de292(0x1dd)]===L[_0x3de292(0x558)]['FloatImg']&&_0x245265[_0x3de292(0x39b)]===!0x0&&this[_0x3de292(0x451)][_0x3de292(0x269)](new t[(_0x3de292(0x56e))](_0x2967d1)['id'],!0x1));})),this[_0x57c4b7(0x541)](),this['_registerLoadingMask']();let _0x16a0ce=null;this[_0x57c4b7(0x38d)]((0x0,e[_0x57c4b7(0x218)])(()=>_0x16a0ce==null?void 0x0:_0x16a0ce[_0x57c4b7(0x33a)]())),this[_0x57c4b7(0x38d)](this['_historyManagerService']['loadingState$'][_0x57c4b7(0x331)](_0x5e0e72=>{const _0x4e3093=_0x57c4b7;_0x16a0ce==null||_0x16a0ce[_0x4e3093(0x33a)](),_0x16a0ce=null,_0x5e0e72==='loading'&&(_0x16a0ce=this[_0x4e3093(0x542)][_0x4e3093(0x3d2)]({'type':m[_0x4e3093(0x365)]['Info'],'content':this['_localeService']['t'](_0x4e3093(0x2dc)),'duration':0x3e8}));}));}[_0x31d253(0x541)](){const _0x508b7c=_0x31d253;var _0x3df206;(_0x3df206=this[_0x508b7c(0x3c1)][_0x508b7c(0x398)](_0x508b7c(0x1d5)))!=null&&_0x3df206[_0x508b7c(0x307)]||this[_0x508b7c(0x38d)](this['_uiPartsService'][_0x508b7c(0x231)](N[_0x508b7c(0x38f)][_0x508b7c(0x1b8)],()=>(0x0,N[_0x508b7c(0x429)])($e,this[_0x508b7c(0x196)])));}[_0x31d253(0x32a)](){const _0x595c01=_0x31d253;this['disposeWithMe'](this['_uiPartsService'][_0x595c01(0x231)](N[_0x595c01(0x38f)][_0x595c01(0x2db)],()=>(0x0,N[_0x595c01(0x429)])(Ae,this[_0x595c01(0x196)])));}};et=W([U(0x0,e[_0x31d253(0x2b9)]),U(0x1,N[_0x31d253(0x2e0)]),U(0x2,N[_0x31d253(0x4e3)]),U(0x3,(0x0,e['Inject'])(e['LocaleService'])),U(0x4,(0x0,e['Inject'])(q)),U(0x5,(0x0,e[_0x31d253(0x570)])(e[_0x31d253(0x2f2)])),U(0x6,e[_0x31d253(0x285)])],et);function tt(_0xcfb1aa){const _0x298a61=_0x31d253;var _0x31da85;let {item:_0x343b83,isNewest:_0x50bd4c}=_0xcfb1aa,_0x2e8810=(0x0,N[_0x298a61(0x2da)])(q),_0x456faa=(0x0,N['useDependency'])(J),_0x13a33c=(0x0,N['useDependency'])(e[_0x298a61(0x31c)]),_0x20cb11=(0x0,N[_0x298a61(0x53f)])(_0x2e8810[_0x298a61(0x53c)],'',!0x0)===_0x343b83['id'],_0x2b666c=K(_0x343b83[_0x298a61(0x288)],_0x13a33c),_0x471eab=!_0x50bd4c&&_0x2e8810[_0x298a61(0x4ac)],_0x5abca6=(0x0,I[_0x298a61(0x1db)])(async()=>{const _0x793eb7=_0x298a61;_0x2e8810[_0x793eb7(0x2a9)]!==_0x793eb7(0x3a5)&&(_0x2e8810[_0x793eb7(0x3ca)](_0x343b83['id']),await _0x456faa['ensureVersion'](_0x343b83['id']));},[_0x2e8810,_0x456faa,_0x343b83['id']]),_0x52c467=(0x0,I[_0x298a61(0x1db)])(_0x542432=>{const _0x4eafd7=_0x298a61;_0x542432[_0x4eafd7(0x2d2)](),_0x2e8810['triggerRevert'](_0x343b83['id']);},[_0x2e8810,_0x343b83['id']]),_0x38a182=((_0x31da85=_0x343b83[_0x298a61(0x2e8)])==null?void 0x0:_0x31da85[_0x298a61(0x350)](Boolean)['join'](',\x20'))||_0x343b83[_0x298a61(0x38a)]||_0x13a33c['t'](_0x298a61(0x21f));return(0x0,R[_0x298a61(0x3e6)])(_0x298a61(0x1e9),{'className':(0x0,m[_0x298a61(0x486)])(_0x298a61(0x272),_0x20cb11&&_0x298a61(0x2fb)),'onClick':_0x5abca6,'children':[(0x0,R['jsxs'])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,R[_0x298a61(0x3e6)])(_0x298a61(0x1e9),{'className':_0x298a61(0x3a1),'children':[(0x0,R[_0x298a61(0x2e4)])(_0x298a61(0x4f1),{'className':'univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-800\x20dark:!univer-text-gray-200','children':_0x38a182}),_0x50bd4c&&(0x0,R[_0x298a61(0x2e4)])(_0x298a61(0x4f1),{'className':_0x298a61(0x500),'children':_0x13a33c['t']('sheets-history-ui.viewer.panel.currentVersion')})]}),(0x0,R[_0x298a61(0x3e6)])(_0x298a61(0x1e9),{'className':_0x298a61(0x401),'children':[(0x0,R[_0x298a61(0x2e4)])(_0x298a61(0x4f1),{'className':_0x298a61(0x2dd),'children':_0x2b666c[_0x298a61(0x288)]}),(0x0,R[_0x298a61(0x2e4)])(_0x298a61(0x4f1),{'className':_0x298a61(0x2d4),'children':_e(_0x343b83,_0x13a33c)})]})]}),_0x471eab&&(0x0,R[_0x298a61(0x2e4)])(m[_0x298a61(0x566)],{'size':'small','variant':'primary','onClick':_0x52c467,'children':_0x13a33c['t'](_0x298a61(0x19a))})]});}function nt(){const _0x52c60b=_0x31d253;let _0x66131c=(0x0,N[_0x52c60b(0x2da)])(q),_0xcfb4a7=(0x0,N[_0x52c60b(0x2da)])(e[_0x52c60b(0x31c)]),_0x50d788=(0x0,N[_0x52c60b(0x53f)])(_0x66131c[_0x52c60b(0x4cb)]),_0x469510=(0x0,N[_0x52c60b(0x53f)])(_0x66131c[_0x52c60b(0x48d)]),_0x5c63a2=(0x0,I[_0x52c60b(0x1b4)])(null),[_0x438523,_0x5c2cd1]=(0x0,I[_0x52c60b(0x203)])(!0x0);(0x0,I[_0x52c60b(0x26a)])(()=>{const _0x5e3db4=_0x52c60b;let _0xf3b780=_0x5c63a2['current'];if(!_0xf3b780||!_0x438523)return;let _0x285d39,_0xcef414=()=>{clearTimeout(_0x285d39),_0x285d39=setTimeout(()=>{const _0x4fd4fc=_0x4c20;let {scrollTop:_0x367567,scrollHeight:_0x4edfbe,clientHeight:_0xd07183}=_0xf3b780;_0x367567+_0xd07183>=_0x4edfbe-0xa&&_0x66131c[_0x4fd4fc(0x3e4)]()[_0x4fd4fc(0x314)](()=>void 0x0);},0x64);};return _0xf3b780['addEventListener'](_0x5e3db4(0x284),_0xcef414),()=>{const _0x5788c5=_0x5e3db4;clearTimeout(_0x285d39),_0xf3b780[_0x5788c5(0x4da)](_0x5788c5(0x284),_0xcef414);};},[_0x66131c,_0x438523]);let _0x1cc51e=be(_0x50d788??[]);return(0x0,R[_0x52c60b(0x2e4)])('div',{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-10\x20univer-flex\x20univer-flex-col\x20univer-justify-end','children':(0x0,R[_0x52c60b(0x3e6)])(_0x52c60b(0x1e9),{'className':(0x0,m['clsx'])(_0x52c60b(0x54c),_0x438523?_0x52c60b(0x320):_0x52c60b(0x443)),'children':[(0x0,R[_0x52c60b(0x3e6)])(_0x52c60b(0x1e9),{'className':_0x52c60b(0x36e),'onClick':()=>_0x5c2cd1(_0x24d7b5=>!_0x24d7b5),'children':[(0x0,R['jsx'])('div',{'className':'univer-h-1\x20univer-w-10\x20univer-rounded-full\x20univer-bg-gray-300\x20dark:!univer-bg-gray-600'}),!_0x438523&&(0x0,R[_0x52c60b(0x2e4)])(_0x52c60b(0x4f1),{'className':_0x52c60b(0x4b9),'children':_0xcfb4a7['t'](_0x52c60b(0x3fb))})]}),_0x438523&&(0x0,R[_0x52c60b(0x2e4)])(R[_0x52c60b(0x1bc)],{'children':_0x50d788?(0x0,R[_0x52c60b(0x3e6)])('div',{'ref':_0x5c63a2,'className':_0x52c60b(0x318),'children':[_0x1cc51e[_0x52c60b(0x403)](_0x489171=>(0x0,R[_0x52c60b(0x3e6)])(_0x52c60b(0x1e9),{'children':[(0x0,R[_0x52c60b(0x2e4)])(_0x52c60b(0x1e9),{'className':_0x52c60b(0x477),'children':ye(_0x489171['startDateString'],_0xcfb4a7)}),_0x489171[_0x52c60b(0x26c)]['map']((_0x70e49b,_0x44ec1d)=>(0x0,R['jsx'])(tt,{'item':_0x70e49b,'isNewest':_0x1cc51e[0x0]===_0x489171&&_0x44ec1d===0x0},_0x70e49b['id']))]},_0x489171[_0x52c60b(0x392)])),_0x469510&&(0x0,R[_0x52c60b(0x2e4)])(_0x52c60b(0x1e9),{'className':_0x52c60b(0x4c3),'children':(0x0,R[_0x52c60b(0x2e4)])(F[_0x52c60b(0x3a6)],{'className':_0x52c60b(0x36c)})})]}):(0x0,R[_0x52c60b(0x2e4)])('div',{'className':_0x52c60b(0x242),'children':(0x0,R['jsx'])(F['LoadingMultiIcon'],{'className':'univer-animate-spin\x20univer-text-gray-400'})})})]})});}let rt=class extends e[_0x31d253(0x352)]{constructor(_0x1e0b26,_0x4511da){const _0x56ade6=_0x31d253;super(),this[_0x56ade6(0x3ab)]=_0x1e0b26,this['_injector']=_0x4511da,this[_0x56ade6(0x38d)](this[_0x56ade6(0x3ab)][_0x56ade6(0x231)](N['BuiltInUIPart']['CONTENT'],()=>(0x0,N[_0x56ade6(0x429)])(nt,this[_0x56ade6(0x196)])));}};rt=W([U(0x0,N['IUIPartsService']),U(0x1,(0x0,e[_0x31d253(0x570)])(e['Injector']))],rt);let it=class extends e[_0x31d253(0x4f3)]{constructor(_0x126c4c=V,_0x4796f6,_0x5b2810,_0xb35a9c){const _0x3f5ceb=_0x31d253;super(),this[_0x3f5ceb(0x511)]=_0x126c4c,this[_0x3f5ceb(0x196)]=_0x4796f6,this['_renderManagerService']=_0x5b2810,this[_0x3f5ceb(0x3c1)]=_0xb35a9c;let {..._0x2ccd3f}=(0x0,e[_0x3f5ceb(0x438)])({},V,this[_0x3f5ceb(0x511)]);this['_configService']['setConfig'](B,_0x2ccd3f);}[_0x31d253(0x204)](){const _0x1ff2d2=_0x31d253;[[Qe],[q],[et],[J],[Pe],[G],[rt],[X],[n['ISnapshotServerService'],{'useClass':r[_0x1ff2d2(0x371)]}],[N[_0x1ff2d2(0x338)],{'useClass':Re}],[e[_0x1ff2d2(0x342)],{'useClass':r[_0x1ff2d2(0x55b)]}]][_0x1ff2d2(0x345)](_0x52da65=>this[_0x1ff2d2(0x196)][_0x1ff2d2(0x445)](_0x52da65)),this[_0x1ff2d2(0x196)][_0x1ff2d2(0x361)](et),this[_0x1ff2d2(0x196)][_0x1ff2d2(0x361)](Qe);}[_0x31d253(0x300)](){const _0x179893=_0x31d253;[[Ie]][_0x179893(0x345)](_0xd01264=>{const _0xbc92e=_0x179893;this[_0xbc92e(0x38d)](this[_0xbc92e(0x337)]['registerRenderModule'](e[_0xbc92e(0x1d2)]['UNIVER_SHEET'],_0xd01264));}),this[_0x179893(0x196)][_0x179893(0x361)](X),this[_0x179893(0x196)]['get'](rt);}['onSteady'](){const _0x4a094e=_0x31d253;this[_0x4a094e(0x196)][_0x4a094e(0x361)](J);}};H(it,_0x31d253(0x525),_0x31d253(0x54d)),H(it,_0x31d253(0x257),se),H(it,'version',ce),it=W([(0x0,e[_0x31d253(0x415)])(a['UniverLicensePlugin'],_[_0x31d253(0x202)],y['UniverRenderEnginePlugin'],b['UniverNetworkPlugin'],O[_0x31d253(0x1f0)],j[_0x31d253(0x4e8)],t['UniverSheetsPlugin'],N[_0x31d253(0x546)],n[_0x31d253(0x421)],S[_0x31d253(0x264)],o[_0x31d253(0x42b)],c['UniverSheetsPivotTablePlugin'],d[_0x31d253(0x199)],M[_0x31d253(0x19e)],w['UniverSheetsDataValidationPlugin']),U(0x1,(0x0,e[_0x31d253(0x570)])(e[_0x31d253(0x2f2)])),U(0x2,y[_0x31d253(0x3bc)]),U(0x3,e[_0x31d253(0x285)])],it);const at='univer-history-container-mobile';let ot=class extends e['Disposable']{constructor(_0x4de95a,_0x7769c1,_0xb4182e,_0x27f7a1,_0x189dbe,_0x3ec4f7,_0x469efc,_0x35491a,_0x19cee8,_0x183cc9){const _0x3c92a0=_0x31d253;super(),this[_0x3c92a0(0x4fb)]=_0x4de95a,this['_univerInstanceService']=_0x7769c1,this[_0x3c92a0(0x3c1)]=_0xb4182e,this[_0x3c92a0(0x4ef)]=_0x27f7a1,this['_messageService']=_0x189dbe,this['_permissionService']=_0x3ec4f7,this[_0x3c92a0(0x267)]=_0x469efc,this['_dialogService']=_0x35491a,this[_0x3c92a0(0x329)]=_0x19cee8,this[_0x3c92a0(0x544)]=_0x183cc9,H(this,_0x3c92a0(0x2fc),new P['BehaviorSubject'](null)),H(this,_0x3c92a0(0x418),this['_historyUniver$'][_0x3c92a0(0x3af)]()),H(this,_0x3c92a0(0x2b8),new e['DisposableCollection']()),H(this,_0x3c92a0(0x2f5),new Map()),H(this,_0x3c92a0(0x505),null),this['_init']();}get[_0x31d253(0x4d2)](){const _0x1ae8e0=_0x31d253;return this[_0x1ae8e0(0x2fc)][_0x1ae8e0(0x39b)];}[_0x31d253(0x56f)](){const _0x46606f=_0x31d253;this[_0x46606f(0x56a)](),this[_0x46606f(0x3d4)]();}[_0x31d253(0x56a)](){const _0x597875=_0x31d253;var _0xbff42c;let _0x1aa78f=this[_0x597875(0x3c1)][_0x597875(0x398)](B),_0x3f329a=(_0xbff42c=this['_configService']['getConfig'](N[_0x597875(0x2d7)]))==null?void 0x0:_0xbff42c[_0x597875(0x2b5)],_0x5a1ebd=(_0x1aa78f==null?void 0x0:_0x1aa78f[_0x597875(0x523)])??_0x3f329a,_0x4af21f=typeof _0x5a1ebd==_0x597875(0x1af)?document['getElementById'](_0x5a1ebd):_0x5a1ebd;if(!_0x4af21f)throw Error(_0x597875(0x1cb));let _0x570592=document[_0x597875(0x347)](_0x597875(0x1e9));_0x570592['id']=at,_0x570592[_0x597875(0x339)][_0x597875(0x19b)]='absolute',_0x570592[_0x597875(0x339)]['top']='0',_0x570592[_0x597875(0x339)][_0x597875(0x3c2)]='0',_0x570592[_0x597875(0x339)][_0x597875(0x492)]=_0x597875(0x340),_0x570592['style'][_0x597875(0x274)]=_0x597875(0x340),_0x570592[_0x597875(0x339)][_0x597875(0x273)]='49',_0x570592[_0x597875(0x339)]['display']=_0x597875(0x3fc),Ve(_0x570592,this[_0x597875(0x4fb)]),_0x4af21f[_0x597875(0x446)](_0x570592);}['_initPlugins'](){const _0xaaebe1=_0x31d253;[[y[_0xaaebe1(0x4b1)]],[N[_0xaaebe1(0x546)],{'container':at,'header':!0x0,'toolbar':!0x1,'footer':!0x1,'contextMenu':!0x1,'override':[[N[_0xaaebe1(0x338)],null]]}],[b[_0xaaebe1(0x1c8)]],[_[_0xaaebe1(0x202)],{'override':[[e['IImageIoService'],null]]}],[h[_0xaaebe1(0x4bf)],{'hasScroll':!0x1}],[g[_0xaaebe1(0x1aa)]],[re[_0xaaebe1(0x56b)]],[t[_0xaaebe1(0x393)],{'notExecuteFormula':!0x0}],[M['UniverSheetsMobileUIPlugin'],{'footer':{'addSheetButtonConfig':{'show':!0x1}}}],[A['UniverSheetsFormulaPlugin']],[ee['UniverSheetsFormulaMobileUIPlugin']],[n[_0xaaebe1(0x421)]],[O[_0xaaebe1(0x1f0)]],[S[_0xaaebe1(0x264)]],[te[_0xaaebe1(0x474)]],[ne[_0xaaebe1(0x50d)]],[p[_0xaaebe1(0x430)]],[w['UniverSheetsDataValidationPlugin']],[T[_0xaaebe1(0x2e7)]],[i[_0xaaebe1(0x497)],{'notExecuteFormula':!0x0}],[v[_0xaaebe1(0x290)]],[E[_0xaaebe1(0x366)]],[D[_0xaaebe1(0x526)]],[d['UniverSheetSparklinePlugin']],[f[_0xaaebe1(0x1e4)]],[o[_0xaaebe1(0x42b)]],[s['UniverSheetsChartMobileUIPlugin']],[l['UniverSheetsShapePlugin']],[u[_0xaaebe1(0x343)]],[c[_0xaaebe1(0x268)],{'notExecuteFormula':!0x0}],[j[_0xaaebe1(0x4e8)]]]['forEach'](([_0xb566b5,_0x46b620])=>this['registerPlugin'](_0xb566b5,_0x46b620));}['dispose'](){const _0x4d4232=_0x31d253;super[_0x4d4232(0x33a)](),this['unMountHistoryContent'](),this[_0x4d4232(0x2f5)][_0x4d4232(0x2e5)]();}['registerPlugin'](_0x266c26,_0x1b88df,_0x5ccc88){const _0x32da50=_0x31d253;if(this['_pluginMap']['has'](_0x266c26[_0x32da50(0x525)])&&!_0x5ccc88)throw Error(_0x32da50(0x45f)+_0x266c26[_0x32da50(0x525)]+_0x32da50(0x470));this[_0x32da50(0x2f5)]['set'](_0x266c26[_0x32da50(0x525)],[_0x266c26,_0x1b88df]);}[_0x31d253(0x522)](){const _0x42f182=_0x31d253;return Array[_0x42f182(0x357)](this['_pluginMap'][_0x42f182(0x389)]());}[_0x31d253(0x399)](_0xa340e6,_0x13ea25){const _0x542604=_0x31d253;let _0x2160f2=document[_0x542604(0x475)](at);_0x2160f2&&(_0x2160f2[_0x542604(0x339)][_0x542604(0x1f3)]=_0x542604(0x374),this['_initUniver'](_0xa340e6,_0x13ea25));}['unMountHistoryContent'](){const _0x4889af=_0x31d253;var _0x6911f7;this['_disposableCollection']['dispose'](),(_0x6911f7=this[_0x4889af(0x4d2)])==null||_0x6911f7[_0x4889af(0x33a)](),this[_0x4889af(0x2fc)][_0x4889af(0x22c)](null);let _0x3dc61a=document[_0x4889af(0x475)](at);_0x3dc61a&&(_0x3dc61a[_0x4889af(0x339)][_0x4889af(0x1f3)]=_0x4889af(0x3fc),this[_0x4889af(0x505)]&&=(this[_0x4889af(0x505)]['terminate'](),null));}['_initUniver'](_0x10b3fd,_0x2c0816){const _0x2f5d83=_0x31d253;var _0x2880ec,_0x2b6243,_0x5c361a;if(this['historyUniver'])return;let _0x448a2c=new e[(_0x2f5d83(0x42e))]({...Be(this[_0x2f5d83(0x4fb)]),'override':[[e[_0x2f5d83(0x414)],{'useClass':r['AuthzIoHttpService']}]]}),_0x7fd16a=_0x448a2c[_0x2f5d83(0x4ce)](),_0x226ca7=_0x7fd16a[_0x2f5d83(0x361)](e[_0x2f5d83(0x508)]);this[_0x2f5d83(0x2b8)][_0x2f5d83(0x445)](this[_0x2f5d83(0x544)][_0x2f5d83(0x3ef)][_0x2f5d83(0x331)](_0x2fd5b1=>{const _0x4350be=_0x2f5d83;_0x226ca7[_0x4350be(0x348)](_0x2fd5b1);})),this['_disposableCollection'][_0x2f5d83(0x445)](this['_themeService'][_0x2f5d83(0x211)][_0x2f5d83(0x331)](_0x5c92b7=>{const _0x33ace0=_0x2f5d83;_0x226ca7[_0x33ace0(0x420)](_0x5c92b7);}));let _0x4a96df=_0x7fd16a['get'](e[_0x2f5d83(0x31c)]);_0x4a96df[_0x2f5d83(0x3f6)](this['_localeService'][_0x2f5d83(0x210)]()),_0x4a96df[_0x2f5d83(0x4b3)](this[_0x2f5d83(0x4fb)][_0x2f5d83(0x432)]()),_0x7fd16a[_0x2f5d83(0x361)](e[_0x2f5d83(0x285)])[_0x2f5d83(0x572)](r[_0x2f5d83(0x324)],this[_0x2f5d83(0x3c1)][_0x2f5d83(0x398)](r[_0x2f5d83(0x324)]));let _0x4a811f=this[_0x2f5d83(0x3c1)][_0x2f5d83(0x398)](a[_0x2f5d83(0x1ef)]);_0x4a811f&&_0x448a2c['registerPlugin'](a[_0x2f5d83(0x2cc)],{'license':_0x4a811f['ls']});let _0x8d1642=(_0x2880ec=this[_0x2f5d83(0x3c1)][_0x2f5d83(0x398)](_0x2f5d83(0x1d5)))==null?void 0x0:_0x2880ec[_0x2f5d83(0x27d)];_0x8d1642&&(this[_0x2f5d83(0x505)]=_0x8d1642 instanceof Worker?_0x8d1642:null,_0x448a2c[_0x2f5d83(0x44f)](x['UniverRPCMainThreadPlugin'],{'workerURL':_0x8d1642})),this[_0x2f5d83(0x2f5)][_0x2f5d83(0x345)](([_0x2fbb08,_0x376a6c])=>{_0x448a2c['registerPlugin'](_0x2fbb08,_0x376a6c);}),_0x448a2c[_0x2f5d83(0x44f)](it,{'historyServerUrl':oe(this[_0x2f5d83(0x3c1)][_0x2f5d83(0x398)](B)),'historyPanelComponentKey':(_0x2b6243=this[_0x2f5d83(0x3c1)][_0x2f5d83(0x398)]('sheets-history-ui.config'))==null?void 0x0:_0x2b6243[_0x2f5d83(0x3df)],'historyPanelHidden':(_0x5c361a=this[_0x2f5d83(0x3c1)][_0x2f5d83(0x398)](_0x2f5d83(0x1d5)))==null?void 0x0:_0x5c361a['historyPanelHidden']}),_0x7fd16a[_0x2f5d83(0x33d)](_0x3941d5=>this['_initListener'](_0x3941d5,_0x10b3fd)),this[_0x2f5d83(0x2fc)][_0x2f5d83(0x22c)](_0x448a2c);let _0x17c1f9=_0x7fd16a[_0x2f5d83(0x361)](q),_0x289641=this[_0x2f5d83(0x548)](_0x10b3fd);He(_0x2c0816)?_0x17c1f9['triggerCustomVersions'](_0x10b3fd,_0x289641,_0x2c0816):_0x17c1f9[_0x2f5d83(0x322)](_0x10b3fd,_0x289641)[_0x2f5d83(0x314)](()=>{const _0x5ab897=_0x2f5d83;_0x17c1f9[_0x5ab897(0x3ae)]='error';});}['_initListener'](_0x5c4475,_0xf7025){const _0x182ba9=_0x31d253;let _0x5433cd=_0x5c4475[_0x182ba9(0x361)](q);this[_0x182ba9(0x2b8)][_0x182ba9(0x445)](_0x5433cd[_0x182ba9(0x4d6)][_0x182ba9(0x331)](_0x3a5c69=>{const _0x251eec=_0x182ba9;switch(_0x3a5c69){case _0x251eec(0x51a):this[_0x251eec(0x4ad)][_0x251eec(0x24e)](),this[_0x251eec(0x329)][_0x251eec(0x23d)]();break;case _0x251eec(0x270):this[_0x251eec(0x4ef)]['executeCommand'](Ke['id']),this[_0x251eec(0x1a3)]();break;case _0x251eec(0x3c6):this[_0x251eec(0x1a3)](),this[_0x251eec(0x542)][_0x251eec(0x3d2)]({'content':this[_0x251eec(0x4fb)]['t'](_0x251eec(0x465)),'type':m[_0x251eec(0x365)]['Error'],'duration':0xbb8});}})),this['_disposableCollection'][_0x182ba9(0x445)](_0x5433cd['revertRevision$'][_0x182ba9(0x331)](_0x3476bc=>{const _0x2adeec=_0x182ba9;if(_0x3476bc){let _0x19a148={'unitId':_0xf7025,'revision':_0x3476bc};this[_0x2adeec(0x4ef)]['executeCommand'](n[_0x2adeec(0x276)]['id'],_0x19a148)[_0x2adeec(0x314)](()=>{const _0x19e915=_0x2adeec;_0x5433cd[_0x19e915(0x3ae)]=_0x19e915(0x3c6);});}}));}[_0x31d253(0x548)](_0x43310d){const _0x22f33d=_0x31d253;let _0x155172=this[_0x22f33d(0x4c8)][_0x22f33d(0x464)](_0x43310d);if(!_0x155172)return!0x1;let _0x59015b=_0x155172['getSheets']()[_0x22f33d(0x403)](_0x595a19=>_0x595a19[_0x22f33d(0x271)]()),_0x150f49=new t[(_0x22f33d(0x56e))](_0x43310d)['id'],_0x7f9eaf=_0x59015b['map'](_0x3b9207=>new t[(_0x22f33d(0x299))](_0x43310d,_0x3b9207)['id']),_0x137830=_0x59015b['map'](_0x1d365c=>this[_0x22f33d(0x267)][_0x22f33d(0x565)](_0x43310d,_0x1d365c)[_0x22f33d(0x403)](_0x30ddd5=>new t['RangeProtectionPermissionEditPoint'](_0x43310d,_0x1d365c,_0x30ddd5[_0x22f33d(0x251)])['id']))[_0x22f33d(0x1b2)](),_0xe216e5=new t[(_0x22f33d(0x4fc))](_0x43310d)['id'];return this['_permissionService'][_0x22f33d(0x2c8)]([_0x150f49,..._0x7f9eaf,..._0x137830,_0xe216e5])['every'](_0x2aaaae=>!!_0x2aaaae[_0x22f33d(0x39b)]);}};ot=W([U(0x0,(0x0,e[_0x31d253(0x570)])(e['LocaleService'])),U(0x1,e['IUniverInstanceService']),U(0x2,e[_0x31d253(0x285)]),U(0x3,e[_0x31d253(0x43b)]),U(0x4,N[_0x31d253(0x4e3)]),U(0x5,e[_0x31d253(0x2b9)]),U(0x6,(0x0,e['Inject'])(t[_0x31d253(0x423)])),U(0x7,(0x0,e[_0x31d253(0x570)])(N[_0x31d253(0x338)])),U(0x8,(0x0,e['Inject'])(N[_0x31d253(0x215)])),U(0x9,(0x0,e[_0x31d253(0x570)])(e[_0x31d253(0x508)]))],ot);let Q=class extends e[_0x31d253(0x4f3)]{constructor(_0x528c00=V,_0x4e8923,_0x2252e0){const _0x1c64e3=_0x31d253;super(),this[_0x1c64e3(0x511)]=_0x528c00,this[_0x1c64e3(0x196)]=_0x4e8923,this[_0x1c64e3(0x3c1)]=_0x2252e0;let {menu:_0x30c56,..._0x44c911}=(0x0,e[_0x1c64e3(0x438)])({},V,this[_0x1c64e3(0x511)]);_0x30c56&&this[_0x1c64e3(0x3c1)][_0x1c64e3(0x572)]('menu',_0x30c56,{'merge':!0x0}),this[_0x1c64e3(0x3c1)][_0x1c64e3(0x572)](B,_0x44c911);}[_0x31d253(0x204)](){const _0x2eaca1=_0x31d253;this[_0x2eaca1(0x196)][_0x2eaca1(0x445)]([Qe]),this['_injector'][_0x2eaca1(0x361)](Qe),[[Z,{'useClass':ot}],[Ze]][_0x2eaca1(0x345)](_0x26be3c=>this[_0x2eaca1(0x196)][_0x2eaca1(0x445)](_0x26be3c));}['onSteady'](){const _0x9b40ba=_0x31d253;this[_0x9b40ba(0x196)]['get'](Ze);}};H(Q,_0x31d253(0x49d),e[_0x31d253(0x1d2)]['UNIVER_SHEET']),H(Q,_0x31d253(0x525),'UNIVER_SHEETS_HISTORY_MOBILE_UI_PLUGIN'),H(Q,_0x31d253(0x257),se),H(Q,_0x31d253(0x33e),ce),Q=W([(0x0,e[_0x31d253(0x415)])(a['UniverLicensePlugin'],t[_0x31d253(0x393)],ie['UniverSheetsHistoryPlugin'],N[_0x31d253(0x546)],r['UniverCollaborationClientPlugin'],z[_0x31d253(0x49a)]),U(0x1,(0x0,e[_0x31d253(0x570)])(e[_0x31d253(0x2f2)])),U(0x2,e[_0x31d253(0x285)])],Q);const st={[N[_0x31d253(0x2ae)][_0x31d253(0x3dc)]]:{[Ge['id']]:{'order':0x64,'gridLayout':{'row':0x1,'column':0x5,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':qe}}};let ct=class extends e['RxDisposable']{constructor(_0x5b9f0a,_0x5760ca,_0x1c8a54,_0x5d78de,_0x326a1c,_0x345e83,_0xe0f7fd,_0x452408,_0x14e30f,_0x4821f9){const _0x39c2ff=_0x31d253;super(),this[_0x39c2ff(0x4ef)]=_0x5b9f0a,this[_0x39c2ff(0x311)]=_0x5760ca,this[_0x39c2ff(0x4fa)]=_0x1c8a54,this['_localeService']=_0x5d78de,this[_0x39c2ff(0x542)]=_0x326a1c,this['_collaborationController']=_0x345e83,this['_localCacheService']=_0xe0f7fd,this['_dataLoaderService']=_0x452408,this['_univerInstanceService']=_0x14e30f,this[_0x39c2ff(0x512)]=_0x4821f9,H(this,_0x39c2ff(0x529),null),this[_0x39c2ff(0x38d)]((0x0,e[_0x39c2ff(0x218)])(()=>this[_0x39c2ff(0x1e8)]())),this[_0x39c2ff(0x56f)]();}[_0x31d253(0x56f)](){const _0x2daee6=_0x31d253;[Ge,Ke][_0x2daee6(0x345)](_0x547073=>this[_0x2daee6(0x38d)]((0x0,e[_0x2daee6(0x218)])(this[_0x2daee6(0x4ef)][_0x2daee6(0x390)](_0x547073)))),this[_0x2daee6(0x311)][_0x2daee6(0x1fd)](st),this[_0x2daee6(0x38d)](this[_0x2daee6(0x4ef)]['onCommandExecuted']((_0xb77dff,_0x1aef48)=>{const _0x1e4ad5=_0x2daee6;if(_0xb77dff['id']===n[_0x1e4ad5(0x276)]['id']&&Ye(_0xb77dff[_0x1e4ad5(0x400)])){let {revision:_0x568fec,unitId:_0xf73b5a}=_0xb77dff['params'];this['_messageService'][_0x1e4ad5(0x3d2)]({'content':this[_0x1e4ad5(0x4fb)]['t'](_0x1e4ad5(0x520)),'type':m[_0x1e4ad5(0x365)]['Loading'],'duration':0x1388});let _0x2d16c0=this[_0x1e4ad5(0x3b1)][_0x1e4ad5(0x256)](_0xf73b5a);if(!_0x2d16c0){this[_0x1e4ad5(0x479)]();return;}_0x1aef48!=null&&_0x1aef48['fromCollab']?this[_0x1e4ad5(0x255)](_0x2d16c0,{'revision':_0x568fec,'unitId':_0xf73b5a},async()=>(setTimeout(()=>window[_0x1e4ad5(0x30b)][_0x1e4ad5(0x37e)]()),!0x0),!0x0):this[_0x1e4ad5(0x255)](_0x2d16c0,{'revision':_0x568fec,'unitId':_0xf73b5a},async()=>{const _0x34e2ae=_0x1e4ad5;let _0x3caca7=this[_0x34e2ae(0x4c8)][_0x34e2ae(0x33f)](e[_0x34e2ae(0x1d2)][_0x34e2ae(0x379)]),_0x18ac73=_0x3caca7==null?void 0x0:_0x3caca7[_0x34e2ae(0x472)]();if(!_0x18ac73)return!0x1;this[_0x34e2ae(0x4c8)][_0x34e2ae(0x2b2)](_0xf73b5a);let _0x2ea843=await this[_0x34e2ae(0x515)][_0x34e2ae(0x3db)](_0xf73b5a,e[_0x34e2ae(0x1d2)][_0x34e2ae(0x379)]);return _0x2ea843&&_0x2ea843 instanceof e[_0x34e2ae(0x24a)]?(await this['_setupSubUnitSync'](_0x2ea843,_0x18ac73[_0x34e2ae(0x271)]()),!0x0):!0x1;});}}));}[_0x31d253(0x255)](_0x5a88a2,_0x35ceb4,_0x43f830,_0x1390bf=!0x1){const _0x1b7581=_0x31d253;this['_clearRevertAcknowledgement']();let _0x4ce1ca=(0x0,P[_0x1b7581(0x283)])([_0x5a88a2['session'][_0x1b7581(0x321)],_0x5a88a2['state$']])[_0x1b7581(0x4d4)]((0x0,P[_0x1b7581(0x350)])(([_0x281bec,_0x2d4ec8])=>Xe(_0x281bec,_0x35ceb4)&&(_0x2d4ec8==null?void 0x0:_0x2d4ec8[_0x1b7581(0x3ae)])===r[_0x1b7581(0x485)][_0x1b7581(0x555)]),(0x0,P[_0x1b7581(0x292)])(0x1)),_0x451bac=_0x4ce1ca;_0x1390bf&&(_0x451bac=_0x4ce1ca['pipe']((0x0,P[_0x1b7581(0x2bf)])({'first':0x1388}))),this[_0x1b7581(0x529)]=_0x451bac[_0x1b7581(0x4d4)]((0x0,P[_0x1b7581(0x4dc)])(async()=>{const _0xfc0d07=_0x1b7581;let _0x29108f=await _0x43f830();return _0x29108f&&(this['_historyManagerService'][_0xfc0d07(0x1a3)](),await this[_0xfc0d07(0x1f1)][_0xfc0d07(0x568)]()),_0x29108f;}),(0x0,P[_0x1b7581(0x237)])(this['dispose$']))['subscribe']({'next':_0x33d387=>{const _0x4c51e4=_0x1b7581;this[_0x4c51e4(0x1e8)](),_0x33d387||this[_0x4c51e4(0x479)]();},'error':()=>{const _0x103698=_0x1b7581;this[_0x103698(0x1e8)](),this[_0x103698(0x479)]();}});}['_clearRevertAcknowledgement'](){const _0x42ec6c=_0x31d253;var _0x2f724c;(_0x2f724c=this[_0x42ec6c(0x529)])==null||_0x2f724c[_0x42ec6c(0x47d)](),this[_0x42ec6c(0x529)]=null;}[_0x31d253(0x479)](){const _0xbcc66d=_0x31d253;this[_0xbcc66d(0x542)][_0xbcc66d(0x3d2)]({'content':this[_0xbcc66d(0x4fb)]['t'](_0xbcc66d(0x376)),'type':m[_0xbcc66d(0x365)][_0xbcc66d(0x24d)],'duration':0xbb8});}async[_0x31d253(0x417)](_0x55ead7,_0x23f09a){const _0x122ff8=_0x31d253;await this[_0x122ff8(0x206)](_0x55ead7,_0x23f09a),_0x55ead7[_0x122ff8(0x233)][_0x122ff8(0x4d4)]((0x0,P[_0x122ff8(0x237)])(this['dispose$']))[_0x122ff8(0x331)](_0x5d7f45=>{const _0x569a07=_0x122ff8;_0x5d7f45&&this[_0x569a07(0x3ed)](_0x5d7f45);}),this[_0x122ff8(0x512)][_0x122ff8(0x447)][_0x122ff8(0x4d4)]((0x0,P[_0x122ff8(0x237)])(this[_0x122ff8(0x28a)]))[_0x122ff8(0x331)](()=>this['_updateSubUnitFromURLParams'](_0x55ead7,_0x23f09a));}['_updateURLWithCurrentState'](_0x26944d,_0x41f408=!0x1){const _0x5ee90d=_0x31d253;let _0x34651a=this[_0x5ee90d(0x512)][_0x5ee90d(0x2cd)](_0x5ee90d(0x263));_0x26944d[_0x5ee90d(0x271)]()!==_0x34651a&&this[_0x5ee90d(0x512)][_0x5ee90d(0x4e1)](_0x5ee90d(0x263),_0x26944d[_0x5ee90d(0x271)](),_0x41f408);}async[_0x31d253(0x206)](_0x231d72,_0x20239d){const _0x22e046=_0x31d253;var _0x3f808d;if(!_0x20239d||!_0x231d72[_0x22e046(0x3f1)](_0x20239d)){let _0x50e01f=_0x231d72[_0x22e046(0x47f)]()[0x0],_0x29ad11=_0x231d72['getSheetBySheetId'](_0x50e01f);if(!_0x29ad11)return;this[_0x22e046(0x3ed)](_0x29ad11,!0x0),await this[_0x22e046(0x4ef)][_0x22e046(0x2e2)](t[_0x22e046(0x556)]['id'],{'unitId':_0x231d72['getUnitId'](),'subUnitId':_0x50e01f});return;}((_0x3f808d=_0x231d72[_0x22e046(0x472)]())==null?void 0x0:_0x3f808d[_0x22e046(0x271)]())!==_0x20239d&&await this[_0x22e046(0x4ef)][_0x22e046(0x2e2)](t[_0x22e046(0x556)]['id'],{'unitId':_0x231d72[_0x22e046(0x25d)](),'subUnitId':_0x20239d});}};ct=W([U(0x0,e[_0x31d253(0x43b)]),U(0x1,N[_0x31d253(0x2bb)]),U(0x2,(0x0,e[_0x31d253(0x570)])(Z)),U(0x3,(0x0,e[_0x31d253(0x570)])(e[_0x31d253(0x31c)])),U(0x4,N[_0x31d253(0x4e3)]),U(0x5,(0x0,e[_0x31d253(0x570)])(r[_0x31d253(0x386)])),U(0x6,r[_0x31d253(0x1f6)]),U(0x7,(0x0,e[_0x31d253(0x570)])(r['DataLoaderService'])),U(0x8,e['IUniverInstanceService']),U(0x9,z[_0x31d253(0x356)])],ct);let $=class extends e[_0x31d253(0x4f3)]{constructor(_0x3eac6e=V,_0x4dc28b,_0x5cbcd9){const _0x2569d2=_0x31d253;super(),this['_config']=_0x3eac6e,this['_injector']=_0x4dc28b,this[_0x2569d2(0x3c1)]=_0x5cbcd9;let {menu:_0x33553c,..._0x57d645}=(0x0,e['merge'])({},V,this[_0x2569d2(0x511)]);_0x33553c&&this[_0x2569d2(0x3c1)][_0x2569d2(0x572)](_0x2569d2(0x1c2),_0x33553c,{'merge':!0x0}),this[_0x2569d2(0x3c1)][_0x2569d2(0x572)](B,_0x57d645);}[_0x31d253(0x204)](){const _0x5bea56=_0x31d253;this[_0x5bea56(0x196)][_0x5bea56(0x445)]([Y]),this[_0x5bea56(0x196)][_0x5bea56(0x361)](Y),[[Z],[ct]][_0x5bea56(0x345)](_0x57d195=>this[_0x5bea56(0x196)][_0x5bea56(0x445)](_0x57d195));}[_0x31d253(0x2c7)](){const _0x2d5523=_0x31d253;this[_0x2d5523(0x196)][_0x2d5523(0x361)](ct);}};H($,_0x31d253(0x525),_0x31d253(0x51c)),H($,_0x31d253(0x257),se),H($,_0x31d253(0x33e),ce),H($,_0x31d253(0x49d),e[_0x31d253(0x1d2)][_0x31d253(0x379)]),$=W([(0x0,e[_0x31d253(0x415)])(a[_0x31d253(0x2cc)],t[_0x31d253(0x393)],ie[_0x31d253(0x53a)],r['UniverCollaborationClientPlugin'],z['UniverCollaborationClientUIPlugin']),U(0x1,(0x0,e[_0x31d253(0x570)])(e[_0x31d253(0x2f2)])),U(0x2,e[_0x31d253(0x285)])],$),exports[_0x31d253(0x49f)]=B,exports[_0x31d253(0x32b)]=Ge,Object['defineProperty'](exports,'UniverSheetsHistoryMobileUIPlugin',{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x31d253(0x478)](exports,_0x31d253(0x50c),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x1f0caa=_0x1a9f;(function(_0x47aac8,_0xdfad6e){const _0x30b3b8=_0x1a9f,_0x54f500=_0x47aac8();while(!![]){try{const _0x58f912=parseInt(_0x30b3b8(0x1d3))/0x1+parseInt(_0x30b3b8(0x4a2))/0x2+parseInt(_0x30b3b8(0x21e))/0x3*(parseInt(_0x30b3b8(0x3e1))/0x4)+parseInt(_0x30b3b8(0x257))/0x5+parseInt(_0x30b3b8(0x2df))/0x6+parseInt(_0x30b3b8(0x1b4))/0x7+-parseInt(_0x30b3b8(0x31a))/0x8;if(_0x58f912===_0xdfad6e)break;else _0x54f500['push'](_0x54f500['shift']());}catch(_0x4406f4){_0x54f500['push'](_0x54f500['shift']());}}}(_0x5973,0x3d151),Object[_0x1f0caa(0x28b)](exports,Symbol[_0x1f0caa(0x281)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('@univerjs-pro/collaboration'),r=require('@univerjs-pro/collaboration-client'),i=require('@univerjs-pro/engine-formula'),a=require('@univerjs-pro/license'),o=require('@univerjs-pro/sheets-chart'),s=require('@univerjs-pro/sheets-chart-ui'),c=require('@univerjs-pro/sheets-pivot'),l=require('@univerjs-pro/sheets-shape'),u=require('@univerjs-pro/sheets-shape-ui'),d=require('@univerjs-pro/sheets-sparkline'),f=require('@univerjs-pro/sheets-sparkline-ui'),p=require('@univerjs/data-validation'),m=require('@univerjs/design'),h=require('@univerjs/docs'),g=require('@univerjs/docs-ui'),_=require('@univerjs/drawing'),v=require('@univerjs/drawing-ui'),y=require('@univerjs/engine-render'),b=require('@univerjs/network'),x=require('@univerjs/rpc'),S=require('@univerjs/sheets-conditional-formatting'),C=require('@univerjs/sheets-conditional-formatting-ui'),w=require('@univerjs/sheets-data-validation'),T=require('@univerjs/sheets-data-validation-ui'),E=require('@univerjs/sheets-drawing'),D=require('@univerjs/sheets-drawing-ui'),O=require('@univerjs/sheets-filter'),k=require('@univerjs/sheets-filter-ui'),A=require('@univerjs/sheets-formula'),ee=require('@univerjs/sheets-formula-ui'),te=require('@univerjs/sheets-hyper-link'),ne=require('@univerjs/sheets-hyper-link-ui'),re=require('@univerjs/sheets-numfmt'),j=require('@univerjs/sheets-table'),M=require('@univerjs/sheets-ui'),N=require('@univerjs/ui'),P=require('rxjs'),F=require('@univerjs/icons'),I=require('react'),L=require('@univerjs/protocol'),R=require('react/jsx-runtime'),z=require('@univerjs-pro/collaboration-client-ui'),ie=require('@univerjs-pro/sheets-history');const B='sheets-history-ui.config',ae=_0x1f0caa(0x2dd),V={'historyPanelComponentKey':ae};function oe(_0x1a7959){const _0x523163=_0x1f0caa;return(_0x1a7959==null?void 0x0:_0x1a7959[_0x523163(0x32a)])??'/universer-api/history';}var se=_0x1f0caa(0x2e5),ce=_0x1f0caa(0x52c);function le(_0x5f4bef){'@babel/helpers - typeof';const _0x4608f8=_0x1f0caa;return le=typeof Symbol==_0x4608f8(0x372)&&typeof Symbol[_0x4608f8(0x3db)]==_0x4608f8(0x1ba)?function(_0x2dac1c){return typeof _0x2dac1c;}:function(_0x3a0511){const _0x4ac1ac=_0x4608f8;return _0x3a0511&&typeof Symbol=='function'&&_0x3a0511[_0x4ac1ac(0x416)]===Symbol&&_0x3a0511!==Symbol['prototype']?'symbol':typeof _0x3a0511;},le(_0x5f4bef);}function ue(_0x288b2b,_0x1b10c9){const _0x27e55e=_0x1f0caa;if(le(_0x288b2b)!=_0x27e55e(0x3ee)||!_0x288b2b)return _0x288b2b;var _0x152f99=_0x288b2b[Symbol[_0x27e55e(0x384)]];if(_0x152f99!==void 0x0){var _0x12d78e=_0x152f99[_0x27e55e(0x298)](_0x288b2b,_0x1b10c9||'default');if(le(_0x12d78e)!=_0x27e55e(0x3ee))return _0x12d78e;throw TypeError(_0x27e55e(0x426));}return(_0x1b10c9===_0x27e55e(0x4c8)?String:Number)(_0x288b2b);}function de(_0x21c2c0){const _0xd39d82=_0x1f0caa;var _0x40b545=ue(_0x21c2c0,_0xd39d82(0x4c8));return le(_0x40b545)=='symbol'?_0x40b545:_0x40b545+'';}function H(_0xb1cca9,_0x108638,_0x378680){const _0x1d242e=_0x1f0caa;return(_0x108638=de(_0x108638))in _0xb1cca9?Object[_0x1d242e(0x28b)](_0xb1cca9,_0x108638,{'value':_0x378680,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb1cca9[_0x108638]=_0x378680,_0xb1cca9;}function U(_0x437af6,_0x2a761c){return function(_0x5de798,_0x3df0bb){_0x2a761c(_0x5de798,_0x3df0bb,_0x437af6);};}function W(_0x44aa84,_0x33a716,_0x38dd57,_0x21f010){const _0x10f514=_0x1f0caa;var _0xd40157=arguments[_0x10f514(0x446)],_0x2c0d82=_0xd40157<0x3?_0x33a716:_0x21f010===null?_0x21f010=Object[_0x10f514(0x442)](_0x33a716,_0x38dd57):_0x21f010,_0x3daeb8;if(typeof Reflect=='object'&&typeof Reflect[_0x10f514(0x351)]==_0x10f514(0x372))_0x2c0d82=Reflect[_0x10f514(0x351)](_0x44aa84,_0x33a716,_0x38dd57,_0x21f010);else{for(var _0x36eac0=_0x44aa84[_0x10f514(0x446)]-0x1;_0x36eac0>=0x0;_0x36eac0--)(_0x3daeb8=_0x44aa84[_0x36eac0])&&(_0x2c0d82=(_0xd40157<0x3?_0x3daeb8(_0x2c0d82):_0xd40157>0x3?_0x3daeb8(_0x33a716,_0x38dd57,_0x2c0d82):_0x3daeb8(_0x33a716,_0x38dd57))||_0x2c0d82);}return _0xd40157>0x3&&_0x2c0d82&&Object[_0x10f514(0x28b)](_0x33a716,_0x38dd57,_0x2c0d82),_0x2c0d82;}let G=class extends e[_0x1f0caa(0x3d8)]{constructor(_0x583576,_0xe22a18,_0x40039f,_0x5f3738,_0x4a4a2a,_0x3fd053,_0x575182,_0xa27674,_0x587488){const _0xdcb168=_0x1f0caa;super(),this[_0xdcb168(0x4c1)]=_0x583576,this[_0xdcb168(0x39b)]=_0xe22a18,this[_0xdcb168(0x211)]=_0x40039f,this[_0xdcb168(0x193)]=_0x5f3738,this['_drawingManagerService']=_0x4a4a2a,this[_0xdcb168(0x536)]=_0x3fd053,this['_httpService']=_0x575182,this[_0xdcb168(0x17e)]=_0xa27674,this['_sheetPermissionInitController']=_0x587488,H(this,_0xdcb168(0x203),void 0x0),this[_0xdcb168(0x203)]=new e[(_0xdcb168(0x4be))](0x3c);}['dispose'](){const _0x3957af=_0x1f0caa;this[_0x3957af(0x203)]['clear'](),super[_0x3957af(0x521)]();}async[_0x1f0caa(0x3c8)](_0x38b941){const _0x857cd9=_0x1f0caa;try{let _0x5e726d=(await this[_0x857cd9(0x2a9)]['get'](this[_0x857cd9(0x467)]()+'/'+_0x38b941+_0x857cd9(0x47e)))[_0x857cd9(0x3d6)];if(_0x5e726d&&_0x5e726d[_0x857cd9(0x42d)]&&_0x5e726d[_0x857cd9(0x42d)][_0x857cd9(0x3f1)]===L[_0x857cd9(0x200)]['OK'])return _0x5e726d[_0x857cd9(0x24c)]??[];}catch(_0x219198){console[_0x857cd9(0x42d)](_0x219198);}return[];}async[_0x1f0caa(0x423)](_0x422100,_0x10dc79){const _0x53503b=_0x1f0caa;let {userIds:_0x1741ef,lastLabel:_0x1fd37b,origin:_0x35ff11}=_0x10dc79??{},_0x19089f=new URLSearchParams();_0x19089f['set'](_0x53503b(0x446),'20'),_0x1fd37b&&_0x19089f[_0x53503b(0x520)](_0x53503b(0x52b),_0x1fd37b),_0x1741ef==null||_0x1741ef['forEach'](_0x278821=>{const _0x50172e=_0x53503b;_0x19089f[_0x50172e(0x18e)]('userIds',_0x278821);}),_0x35ff11&&_0x19089f[_0x53503b(0x520)](_0x53503b(0x161),_0x35ff11[_0x53503b(0x3fc)]());let _0x981dcd=this['_getAPIPrefix']()+'/'+_0x422100+_0x53503b(0x2c4)+_0x19089f[_0x53503b(0x3fc)]();try{let _0x58d981=(await this[_0x53503b(0x2a9)]['get'](_0x981dcd))['body'];if(_0x58d981&&_0x58d981[_0x53503b(0x42d)]&&_0x58d981[_0x53503b(0x42d)][_0x53503b(0x3f1)]===L['ErrorCode']['OK']){let {hasMore:_0x531e12,lastLabel:_0xd65af7}=_0x58d981;return{'hasMore':_0x531e12,'lastLabel':_0xd65af7,'versions':pe(_0x58d981),'members':_0x58d981['entities']['users']};}}catch(_0x423dfc){console['error'](_0x423dfc);}return null;}async[_0x1f0caa(0x37d)](_0x54f62b,_0x2687de){const _0x41f73c=_0x1f0caa;let {unitId:_0x2b6d5e,startRevision:_0x118dfd,endRevision:_0x3f50ba}=_0x2687de,_0xd59c2e=this[_0x41f73c(0x467)]()+'/'+_0x2b6d5e+_0x41f73c(0x2b5)+_0x118dfd+_0x41f73c(0x4e6)+_0x3f50ba;return(await this[_0x41f73c(0x2a9)][_0x41f73c(0x167)](_0xd59c2e))[_0x41f73c(0x3d6)];}[_0x1f0caa(0x467)](){const _0x57086d=_0x1f0caa;return oe(this[_0x57086d(0x536)]['getConfig'](B));}[_0x1f0caa(0x4c7)](_0x270723,_0x46b24b){return _0x270723+':'+_0x46b24b;}async['loadSheet'](_0x157618,_0x3edde3,_0x17896c={}){const _0x4c5eec=_0x1f0caa;let _0x345ba3=this[_0x4c5eec(0x4c7)](_0x157618,_0x3edde3),_0x302536=this['_workbookDataCache'][_0x4c5eec(0x167)](_0x345ba3);if(_0x302536){let {workbookData:_0x532337,changesets:_0x20bfbe}=_0x302536;return await this[_0x4c5eec(0x42e)](_0x532337,_0x20bfbe),!0x0;}let {snapshot:_0x5dada1,changesets:_0x19aeba,error:_0x46daf4}=await this[_0x4c5eec(0x4c1)][_0x4c5eec(0x226)](_0x17896c,{'unitID':_0x157618,'type':e[_0x4c5eec(0x502)]['UNIVER_SHEET'],'revision':_0x3edde3});if((0x0,L[_0x4c5eec(0x2c2)])(_0x46daf4)||!_0x5dada1||!_0x5dada1[_0x4c5eec(0x531)])throw Error('[HistoryFetchService]:\x20request\x20snapshot\x20error!');let _0x2e327d=(_0x19aeba==null?void 0x0:_0x19aeba[_0x4c5eec(0x446)])??0x0;if(_0x3edde3!==0x0&&_0x5dada1[_0x4c5eec(0x3fb)]+_0x2e327d!==_0x3edde3)throw Error(_0x4c5eec(0x159));let {workbook:_0x5846da}=_0x5dada1,_0x18feba=_0x5846da['blockMeta']?Object[_0x4c5eec(0x402)](_0x5846da['blockMeta'])[_0x4c5eec(0x2c8)](_0x2175cf=>_0x2175cf[_0x4c5eec(0x510)]??[]):[],_0x4ad1e0=(await Promise[_0x4c5eec(0x21b)](_0x18feba[_0x4c5eec(0x4f3)](_0x1fe67a=>this[_0x4c5eec(0x4c1)][_0x4c5eec(0x2f6)](_0x17896c,{'unitID':_0x157618,'type':e[_0x4c5eec(0x502)][_0x4c5eec(0x1dc)],'blockID':_0x1fe67a})['then'](_0x46dacc=>_0x46dacc[_0x4c5eec(0x26b)]))))[_0x4c5eec(0x463)](Boolean),_0x1be90d=await(0x0,n[_0x4c5eec(0x496)])(_0x5dada1,_0x4ad1e0,_0x17896c);return this[_0x4c5eec(0x203)][_0x4c5eec(0x520)](_0x345ba3,{'workbookData':_0x1be90d,'changesets':_0x19aeba}),await this['_applyWorkbookData'](_0x1be90d,_0x19aeba),!0x0;}async['_applyWorkbookData'](_0x108cdf,_0x2701e8){const _0x421df2=_0x1f0caa;let _0x4cdef9=this[_0x421df2(0x39b)][_0x421df2(0x4e2)](e[_0x421df2(0x502)][_0x421df2(0x1dc)]);_0x4cdef9&&(this['_univerInstanceService'][_0x421df2(0x491)](_0x4cdef9[_0x421df2(0x29e)]()),await Promise[_0x421df2(0x3c3)]());let _0x5e9a66=JSON[_0x421df2(0x26a)](JSON['stringify'](_0x108cdf));this[_0x421df2(0x235)][_0x421df2(0x3d4)](!0x1);let _0x2de850=this[_0x421df2(0x51f)](_0x5e9a66,_0x2701e8);fe(this['_permissionService'],this[_0x421df2(0x235)],_0x2de850),this[_0x421df2(0x1e4)][_0x421df2(0x3bf)]();}[_0x1f0caa(0x51f)](_0x1c4dee,_0x421c33){const _0x51599e=_0x1f0caa;let _0x3935cb=this[_0x51599e(0x39b)][_0x51599e(0x512)](e['UniverInstanceType'][_0x51599e(0x1dc)],_0x1c4dee);this[_0x51599e(0x39b)]['focusUnit'](_0x3935cb[_0x51599e(0x29e)]());let _0x247132=this[_0x51599e(0x17e)][_0x51599e(0x357)]['fetchThroughInterceptors'](this[_0x51599e(0x17e)][_0x51599e(0x357)][_0x51599e(0x39c)]()[_0x51599e(0x2ae)]);return _0x421c33==null||_0x421c33[_0x51599e(0x30e)](_0x4a9039=>{const _0x354591=_0x51599e;let _0x1aa885=_0x4a9039[_0x354591(0x3e0)][_0x354591(0x4f3)](_0x456459=>({'id':_0x456459['id'],'params':JSON[_0x354591(0x26a)](_0x456459[_0x354591(0x3cd)])}));(_0x247132(_0x1aa885,null)||_0x1aa885)[_0x354591(0x30e)](_0x4c2480=>{const _0x2e4077=_0x354591;this[_0x2e4077(0x211)][_0x2e4077(0x371)](_0x4c2480['id'])&&this['_commandService'][_0x2e4077(0x3ce)](_0x4c2480['id'],_0x4c2480['params'],{'fromChangeset':!0x0});});}),_0x3935cb;}};G=W([U(0x0,n[_0x1f0caa(0x381)]),U(0x1,e['IUniverInstanceService']),U(0x2,e['ICommandService']),U(0x3,e['IPermissionService']),U(0x4,_[_0x1f0caa(0x230)]),U(0x5,e[_0x1f0caa(0x41d)]),U(0x6,(0x0,e[_0x1f0caa(0x44b)])(b[_0x1f0caa(0x542)])),U(0x7,(0x0,e[_0x1f0caa(0x44b)])(n[_0x1f0caa(0x248)])),U(0x8,(0x0,e[_0x1f0caa(0x44b)])(t[_0x1f0caa(0x1c9)]))],G);function fe(_0x5b20ed,_0x2bb4c2,_0x56ac3d){const _0x16fa11=_0x1f0caa;let _0x142e3a=_0x56ac3d[_0x16fa11(0x29e)]();_0x2bb4c2[_0x16fa11(0x3d4)](!0x1),_0x5b20ed['updatePermissionPoint'](new t[(_0x16fa11(0x4b4))](_0x142e3a)['id'],!0x1),_0x56ac3d[_0x16fa11(0x1e8)]()[_0x16fa11(0x30e)](_0xd9b198=>{const _0x2f61b3=_0x16fa11;_0x5b20ed['updatePermissionPoint'](new t[(_0x2f61b3(0x425))](_0x142e3a,_0xd9b198[_0x2f61b3(0x3af)]())['id'],!0x1);});}function pe(_0x323f9d){const _0xe73d0=_0x1f0caa;let _0x567456=[],{entities:_0x2545f2,historyIds:_0x4414ce}=_0x323f9d,{datas:_0x5a2f94,users:_0x503905}=_0x2545f2;for(let _0x296aec of _0x4414ce){let _0x2a116b=_0x5a2f94[_0x296aec];if(_0x2a116b){var _0x209a4d,_0x337928;let _0x597d1f=!!((_0x209a4d=_0x503905[_0x2a116b['userId']])!=null&&_0x209a4d[_0xe73d0(0x3b0)]);_0x567456[_0xe73d0(0x33a)]({'unitId':_0x2a116b['unitId'],'user':_0x597d1f?'':(_0x503905==null||(_0x337928=_0x503905[_0x2a116b[_0xe73d0(0x295)]])==null?void 0x0:_0x337928[_0xe73d0(0x187)])||'','users':_0x2a116b[_0xe73d0(0x2cf)][_0xe73d0(0x4f3)](_0x99868f=>{var _0x210280;return(_0x503905==null||(_0x210280=_0x503905[_0x99868f])==null?void 0x0:_0x210280['name'])||'';})['filter'](_0x17a79e=>_0x17a79e),'isAnonymous':_0x597d1f,'id':_0x296aec,'time':_0x2a116b[_0xe73d0(0x4f9)]?Number(_0x2a116b['createTime']):void 0x0,'commands':_0x2a116b['command'],'startRev':Number(_0x2a116b['startRevision']),'endRev':Number(_0x2a116b[_0xe73d0(0x408)]),'recoverTime':_0x2a116b['recoverTime']?Number(_0x2a116b[_0xe73d0(0x4d9)]):void 0x0,'additionalFields':_0x2a116b['additionalFields'],'startRevCreateTime':_0x2a116b[_0xe73d0(0x4f1)]?Number(_0x2a116b[_0xe73d0(0x4f1)]):void 0x0,'endRevCreateTime':_0x2a116b[_0xe73d0(0x34c)]?Number(_0x2a116b['endRevCreateTime']):void 0x0});}}return _0x567456;}function me(_0x2f009a='sheets-history-ui.viewer.action.'){const _0x5170ea=_0x1f0caa;return{'collaboration':[{'id':n[_0x5170ea(0x435)]['id'],'action':_0x2f009a+_0x5170ea(0x24a)},{'id':n['RevertRevisionMutation']['id'],'action':_0x2f009a+_0x5170ea(0x1be)}],'sheets':[{'id':t[_0x5170ea(0x1ab)]['id'],'action':_0x2f009a+_0x5170ea(0x412)},{'id':t[_0x5170ea(0x392)]['id'],'action':_0x2f009a+_0x5170ea(0x4bb)},{'id':t[_0x5170ea(0x4ac)]['id'],'action':_0x2f009a+_0x5170ea(0x1bc)},{'id':t[_0x5170ea(0x3c6)]['id'],'action':_0x2f009a+_0x5170ea(0x4fb)},{'id':t['SetWorksheetHideMutation']['id'],'action':_0x2f009a+_0x5170ea(0x210)},{'id':t['CopyWorksheetEndMutation']['id'],'action':_0x2f009a+_0x5170ea(0x1df)},{'id':t[_0x5170ea(0x3f4)]['id'],'action':_0x2f009a+_0x5170ea(0x1e7)},{'id':t['SetWorkbookNameMutation']['id'],'action':_0x2f009a+_0x5170ea(0x2ed)},{'id':t[_0x5170ea(0x1cb)]['id'],'action':_0x2f009a+_0x5170ea(0x24e)},{'id':t[_0x5170ea(0x350)]['id'],'action':_0x2f009a+_0x5170ea(0x2db)},{'id':t[_0x5170ea(0x4b3)]['id'],'action':_0x2f009a+'removeRow'},{'id':t[_0x5170ea(0x1ed)]['id'],'action':_0x2f009a+_0x5170ea(0x3a7)},{'id':t[_0x5170ea(0x33c)]['id'],'action':_0x2f009a+_0x5170ea(0x215)},{'id':t['MoveColsMutation']['id'],'action':_0x2f009a+_0x5170ea(0x1e9)},{'id':t[_0x5170ea(0x451)]['id'],'action':_0x2f009a+_0x5170ea(0x279)},{'id':t[_0x5170ea(0x4ba)]['id'],'action':_0x2f009a+_0x5170ea(0x220)},{'id':t['SetColVisibleMutation']['id'],'action':_0x2f009a+_0x5170ea(0x456)},{'id':t[_0x5170ea(0x2ee)]['id'],'action':_0x2f009a+'hideCol'},{'id':t['SetWorksheetRowHeightMutation']['id'],'action':_0x2f009a+_0x5170ea(0x25b)},{'id':t[_0x5170ea(0x3f0)]['id'],'action':_0x2f009a+'setColWidth'},{'id':t[_0x5170ea(0x400)]['id'],'action':_0x2f009a+_0x5170ea(0x3c4)},{'id':t['SetWorksheetRowIsAutoHeightMutation']['id'],'action':_0x2f009a+_0x5170ea(0x3a2)},{'id':t['SetRowDataMutation']['id'],'action':_0x2f009a+_0x5170ea(0x21a)},{'id':t[_0x5170ea(0x444)]['id'],'action':_0x2f009a+_0x5170ea(0x448)},{'id':t[_0x5170ea(0x35f)]['id'],'action':_0x2f009a+_0x5170ea(0x48b)},{'id':t[_0x5170ea(0x297)]['id'],'action':_0x2f009a+_0x5170ea(0x4a0)},{'id':t[_0x5170ea(0x3e9)]['id'],'action':_0x2f009a+'setRangeValues'},{'id':t[_0x5170ea(0x4c9)]['id'],'action':_0x2f009a+_0x5170ea(0x19d)},{'id':t[_0x5170ea(0x465)]['id'],'action':_0x2f009a+'reorderRange'},{'id':t['AddWorksheetMergeMutation']['id'],'action':_0x2f009a+'mergeCells'},{'id':t[_0x5170ea(0x240)]['id'],'action':_0x2f009a+_0x5170ea(0x2de)},{'id':t[_0x5170ea(0x21c)]['id'],'action':_0x2f009a+_0x5170ea(0x51a)},{'id':t[_0x5170ea(0x1b6)]['id'],'action':_0x2f009a+'toggleGridlines'},{'id':t[_0x5170ea(0x27a)]['id'],'action':_0x2f009a+_0x5170ea(0x4db)},{'id':t[_0x5170ea(0x30d)]['id'],'action':_0x2f009a+_0x5170ea(0x355)},{'id':t[_0x5170ea(0x2b6)]['id'],'action':_0x2f009a+_0x5170ea(0x47c)},{'id':t[_0x5170ea(0x414)]['id'],'action':_0x2f009a+_0x5170ea(0x468)},{'id':t[_0x5170ea(0x166)]['id'],'action':_0x2f009a+_0x5170ea(0x38d)},{'id':t[_0x5170ea(0x1c0)]['id'],'action':_0x2f009a+_0x5170ea(0x480)},{'id':t[_0x5170ea(0x3d7)]['id'],'action':_0x2f009a+_0x5170ea(0x45a)},{'id':t[_0x5170ea(0x419)]['id'],'action':_0x2f009a+_0x5170ea(0x40c)},{'id':t[_0x5170ea(0x4b7)]['id'],'action':_0x2f009a+'deleteRangeProtection'},{'id':t[_0x5170ea(0x188)]['id'],'action':_0x2f009a+_0x5170ea(0x519)},{'id':t[_0x5170ea(0x179)]['id'],'action':_0x2f009a+'setNumfmt'},{'id':t[_0x5170ea(0x3f7)]['id'],'action':_0x2f009a+_0x5170ea(0x304)},{'id':t[_0x5170ea(0x3eb)]['id'],'action':_0x2f009a+_0x5170ea(0x329)},{'id':t['SetRangeThemeMutation']['id'],'action':_0x2f009a+_0x5170ea(0x472)},{'id':t[_0x5170ea(0x19c)]['id'],'action':_0x2f009a+_0x5170ea(0x1f2)},{'id':t[_0x5170ea(0x410)]['id'],'action':_0x2f009a+_0x5170ea(0x3ed)},{'id':t[_0x5170ea(0x206)]['id'],'action':_0x2f009a+_0x5170ea(0x481)}],'sheetsConditionalFormatting':[{'id':S[_0x5170ea(0x222)]['id'],'action':_0x2f009a+'setCF'},{'id':S[_0x5170ea(0x3cb)]['id'],'action':_0x2f009a+_0x5170ea(0x20e)},{'id':S['DeleteConditionalRuleMutation']['id'],'action':_0x2f009a+'deleteCF'},{'id':S['MoveConditionalRuleMutation']['id'],'action':_0x2f009a+_0x5170ea(0x3d9)}],'sheetsFilter':[{'id':O[_0x5170ea(0x3ad)]['id'],'action':_0x2f009a+_0x5170ea(0x29b)},{'id':O[_0x5170ea(0x165)]['id'],'action':_0x2f009a+_0x5170ea(0x17c)},{'id':O[_0x5170ea(0x318)]['id'],'action':_0x2f009a+'removeFilter'},{'id':O[_0x5170ea(0x1e5)]['id'],'action':_0x2f009a+_0x5170ea(0x20c)}],'dataValidation':[{'id':p['AddDataValidationMutation']['id'],'action':_0x2f009a+'setDV'},{'id':p[_0x5170ea(0x4ae)]['id'],'action':_0x2f009a+_0x5170ea(0x3b4)},{'id':p['RemoveDataValidationMutation']['id'],'action':_0x2f009a+_0x5170ea(0x300)}],'sheetsChart':[{'id':o['InsertSheetsChartMutation']['id'],'action':_0x2f009a+_0x5170ea(0x227)},{'id':o[_0x5170ea(0x341)]['id'],'action':_0x2f009a+_0x5170ea(0x223)},{'id':o[_0x5170ea(0x29f)]['id'],'action':_0x2f009a+_0x5170ea(0x399)},{'id':o['ChartUpdateSourceConfigMutation']['id'],'action':_0x2f009a+_0x5170ea(0x2ca)}],'sheetsSparkline':[{'id':d[_0x5170ea(0x22e)]['id'],'action':_0x2f009a+_0x5170ea(0x2c0)},{'id':d['SetSheetSparklineMutation']['id'],'action':_0x2f009a+_0x5170ea(0x158)},{'id':d[_0x5170ea(0x3d3)]['id'],'action':_0x2f009a+'removeSparkline'}],'sheetsPivot':[{'id':c[_0x5170ea(0x339)]['id'],'action':_0x2f009a+_0x5170ea(0x50b)},{'id':c['RemovePivotTableMutation']['id'],'action':_0x2f009a+_0x5170ea(0x264)},{'id':c[_0x5170ea(0x522)]['id'],'action':_0x2f009a+_0x5170ea(0x383)},{'id':c[_0x5170ea(0x429)]['id'],'action':_0x2f009a+_0x5170ea(0x3d5)},{'id':c[_0x5170ea(0x4b6)]['id'],'action':_0x2f009a+_0x5170ea(0x323)},{'id':c[_0x5170ea(0x4f0)]['id'],'action':_0x2f009a+_0x5170ea(0x218)},{'id':c['RemovePivotFieldMutation']['id'],'action':_0x2f009a+'removePivotField'},{'id':c[_0x5170ea(0x3a6)]['id'],'action':_0x2f009a+_0x5170ea(0x2fb)},{'id':c['UpdateFieldPositionMutation']['id'],'action':_0x2f009a+_0x5170ea(0x305)},{'id':c[_0x5170ea(0x239)]['id'],'action':_0x2f009a+'updateValuePosition'},{'id':c['UpdatePivotFieldSourceInfoMutation']['id'],'action':_0x2f009a+_0x5170ea(0x301)},{'id':c[_0x5170ea(0x2fc)]['id'],'action':_0x2f009a+_0x5170ea(0x3e8)},{'id':c['SetPivotFilterMutation']['id'],'action':_0x2f009a+'setPivotFilter'},{'id':c['SetPivotValueFilterMutation']['id'],'action':_0x2f009a+_0x5170ea(0x251)},{'id':c['SetPivotSortMutation']['id'],'action':_0x2f009a+_0x5170ea(0x1b0)},{'id':c[_0x5170ea(0x4bf)]['id'],'action':_0x2f009a+_0x5170ea(0x343)},{'id':c[_0x5170ea(0x260)]['id'],'action':_0x2f009a+'setPivotSubtotalType'}],'sheetsShape':[{'id':l[_0x5170ea(0x311)]['id'],'action':_0x2f009a+_0x5170ea(0x17a)},{'id':l[_0x5170ea(0x3b2)]['id'],'action':_0x2f009a+_0x5170ea(0x532)},{'id':l[_0x5170ea(0x3df)]['id'],'action':_0x2f009a+'updateShapeData'},{'id':l['UpdateSheetsShapeTypeMutation']['id'],'action':_0x2f009a+_0x5170ea(0x40f)}],'sheetsTable':[{'id':j['AddSheetTableMutation']['id'],'action':_0x2f009a+_0x5170ea(0x1ea)},{'id':j['DeleteSheetTableMutation']['id'],'action':_0x2f009a+'removeTable'},{'id':j[_0x5170ea(0x4a5)]['id'],'action':_0x2f009a+_0x5170ea(0x501)},{'id':j[_0x5170ea(0x2f0)]['id'],'action':_0x2f009a+_0x5170ea(0x258)}],'sheetsDrawing':[{'id':E['SetDrawingApplyMutation']['id'],'action':_0x2f009a+_0x5170ea(0x315)}]};}function he(_0xfc71bb=_0x1f0caa(0x40e)){const _0x241196=_0x1f0caa;let _0x34575f=me(_0xfc71bb);return Object[_0x241196(0x402)](_0x34575f)[_0x241196(0x514)]();}function ge(_0x141b81){const _0x6c77be=_0x1f0caa;let _0x408a6a=_0x141b81[_0x6c77be(0x529)]();return e[_0x6c77be(0x15b)][_0x408a6a][_0x6c77be(0x2f4)];}const K=(_0x7c8398,_0x480ab5)=>{const _0x1d0bdc=_0x1f0caa;if(!_0x7c8398)return{'date':'','time':''};let _0xf1d5f8=(0x0,e[_0x1d0bdc(0x4fe)])(_0x7c8398);return{'date':ye(_0xf1d5f8[_0x1d0bdc(0x4dd)](_0x1d0bdc(0x16f)),_0x480ab5),'time':_0xf1d5f8[_0x1d0bdc(0x4b8)](ge(_0x480ab5),{'hour':_0x1d0bdc(0x2e2),'minute':_0x1d0bdc(0x2e2),'second':_0x1d0bdc(0x2e2),'hour12':!0x1})};},_e=(_0x3dcb40,_0x2d4d85)=>{const _0x120a1d=_0x1f0caa;if(_0x3dcb40[_0x120a1d(0x3bc)][_0x120a1d(0x23c)](_0x3b0f5c=>_0x3b0f5c===n[_0x120a1d(0x276)]['id'])&&_0x3dcb40[_0x120a1d(0x4d9)]){let _0x2f4500=K(_0x3dcb40['recoverTime'],_0x2d4d85),_0x313b17=_0x2f4500['date']+'\x20'+_0x2f4500['time'];return _0x2d4d85['t'](_0x120a1d(0x32f))+'\x20'+_0x313b17+'\x20'+_0x2d4d85['t']('sheets-history-ui.viewer.action.revertSheetSuffix');}let _0x1bb67e=ve(_0x3dcb40),_0x4657ae=Array[_0x120a1d(0x1de)](new Set(_0x1bb67e)),_0x5178af;if(_0x4657ae['length']===0x1)_0x5178af=_0x2d4d85['t'](_0x4657ae[0x0]);else{let _0xdbb04e=_0x4657ae[_0x120a1d(0x515)](0x0,0x5)[_0x120a1d(0x4f3)](_0xfd169a=>_0x2d4d85['t'](_0xfd169a))[_0x120a1d(0x443)](',\x20');_0x5178af=_0x4657ae['length']>0x5?''+_0xdbb04e+_0x2d4d85['t'](_0x120a1d(0x4f5)):_0xdbb04e;}return''+_0x5178af;};function ve(_0x56cc8e){const _0x2d5a05=_0x1f0caa;if(_0x56cc8e[_0x2d5a05(0x3bc)][_0x2d5a05(0x446)]===0x0)return[''];let _0x2295d6=_0x2d5a05(0x40e),_0x5b42f8=_0x2295d6+_0x2d5a05(0x50e),_0x33131d=he(_0x2295d6)[_0x2d5a05(0x463)](_0x41901e=>_0x56cc8e[_0x2d5a05(0x3bc)]['includes'](_0x41901e['id']));return _0x33131d!=null&&_0x33131d[_0x2d5a05(0x446)]?_0x33131d['map'](_0x2390ca=>_0x2390ca[_0x2d5a05(0x198)]):[_0x5b42f8];}function ye(_0x2c940b,_0x10b83d){const _0x530b71=_0x1f0caa;let [_0x31fa4e,_0x5e5d45,_0xef3cc6]=(0x0,e[_0x530b71(0x4fe)])()[_0x530b71(0x4dd)](_0x530b71(0x16f))['split']('-'),[_0x4d00b5,_0x1af135,_0x33fec1]=_0x2c940b[_0x530b71(0x185)]('-');if(_0x31fa4e===_0x4d00b5&&_0x5e5d45===_0x1af135&&_0xef3cc6===_0x33fec1)return _0x10b83d['t'](_0x530b71(0x3fe));let _0x40466c=ge(_0x10b83d);return _0x31fa4e===_0x4d00b5?(0x0,e[_0x530b71(0x4fe)])(_0x2c940b)[_0x530b71(0x4b8)](_0x40466c,{'month':_0x530b71(0x266),'day':_0x530b71(0x266)}):(0x0,e[_0x530b71(0x4fe)])(_0x2c940b)[_0x530b71(0x4b8)](_0x40466c,{'year':_0x530b71(0x266),'month':_0x530b71(0x266),'day':_0x530b71(0x266)});}function be(_0x8f7ca9){const _0x43eb0e=_0x1f0caa;return _0x8f7ca9?_0x8f7ca9[_0x43eb0e(0x33f)]((_0x54f7fe,_0x144ceb)=>{const _0x3459a6=_0x43eb0e;let _0x26ad1e=(0x0,e[_0x3459a6(0x4fe)])(_0x144ceb[_0x3459a6(0x523)]??Date['now']())[_0x3459a6(0x4dd)](_0x3459a6(0x16f)),_0xef41ff=_0x144ceb[_0x3459a6(0x4f1)]?(0x0,e[_0x3459a6(0x4fe)])(_0x144ceb['startRevCreateTime'])[_0x3459a6(0x4dd)](_0x3459a6(0x16f)):_0x26ad1e,_0x1ae4c3=_0x144ceb['endRevCreateTime']?(0x0,e['dateKit'])(_0x144ceb[_0x3459a6(0x34c)])[_0x3459a6(0x4dd)](_0x3459a6(0x16f)):_0x26ad1e;return _0x54f7fe['length']>0x0&&_0x54f7fe[_0x54f7fe[_0x3459a6(0x446)]-0x1][_0x3459a6(0x3b9)]===_0xef41ff?_0x54f7fe[_0x54f7fe['length']-0x1]['versions'][_0x3459a6(0x33a)](_0x144ceb):_0x54f7fe['push']({'dateString':_0x26ad1e,'startDateString':_0xef41ff,'endDateString':_0x1ae4c3,'versions':[_0x144ceb]}),_0x54f7fe;},[]):[];}const xe='VIRTUAL_VERSION_NOW';let q=class extends e[_0x1f0caa(0x3d8)]{[_0x1f0caa(0x469)](_0x256d2d){const _0x2b4f85=_0x1f0caa;this[_0x2b4f85(0x3c1)][_0x2b4f85(0x1d0)](_0x256d2d);}get[_0x1f0caa(0x43f)](){const _0x180489=_0x1f0caa;return this[_0x180489(0x3c1)][_0x180489(0x2a0)];}constructor(_0x55cdb5,_0x431e6d,_0x4656aa,_0x34dfc8,_0x4db8e3){const _0x3b3fb2=_0x1f0caa;super(),this[_0x3b3fb2(0x498)]=_0x55cdb5,this[_0x3b3fb2(0x48c)]=_0x431e6d,this[_0x3b3fb2(0x1ac)]=_0x4656aa,this[_0x3b3fb2(0x268)]=_0x34dfc8,this[_0x3b3fb2(0x2f3)]=_0x4db8e3,H(this,_0x3b3fb2(0x3d1),new P[(_0x3b3fb2(0x1fa))]([])),H(this,_0x3b3fb2(0x3e7),this[_0x3b3fb2(0x3d1)][_0x3b3fb2(0x42f)]()),H(this,_0x3b3fb2(0x16d),new P[(_0x3b3fb2(0x1fa))]('')),H(this,_0x3b3fb2(0x3bb),this[_0x3b3fb2(0x16d)][_0x3b3fb2(0x42f)]()),H(this,_0x3b3fb2(0x353),new P[(_0x3b3fb2(0x1fa))](_0x3b3fb2(0x2e0))),H(this,'status$',this[_0x3b3fb2(0x353)][_0x3b3fb2(0x42f)]()),H(this,'_revertRevision$',new P[(_0x3b3fb2(0x1fa))](0x0)),H(this,'revertRevision$',this[_0x3b3fb2(0x539)][_0x3b3fb2(0x42f)]()),H(this,_0x3b3fb2(0x3c7),new P['BehaviorSubject']('')),H(this,_0x3b3fb2(0x236),this[_0x3b3fb2(0x3c7)][_0x3b3fb2(0x42f)]()),H(this,_0x3b3fb2(0x3c1),new P[(_0x3b3fb2(0x1fa))](!0x1)),H(this,_0x3b3fb2(0x19a),this[_0x3b3fb2(0x3c1)]['asObservable']()),H(this,_0x3b3fb2(0x53e),new P[(_0x3b3fb2(0x1fa))]([])),H(this,_0x3b3fb2(0x389),this[_0x3b3fb2(0x53e)][_0x3b3fb2(0x42f)]()),H(this,'_openPanel$',new P['BehaviorSubject'](!0x1)),H(this,_0x3b3fb2(0x2e7),this[_0x3b3fb2(0x21f)][_0x3b3fb2(0x42f)]()),H(this,_0x3b3fb2(0x332),new Map()),H(this,_0x3b3fb2(0x499),new P['BehaviorSubject'](_0x3b3fb2(0x327))),H(this,_0x3b3fb2(0x427),this[_0x3b3fb2(0x499)][_0x3b3fb2(0x42f)]()),H(this,_0x3b3fb2(0x2cd),null),H(this,_0x3b3fb2(0x15d),!0x0),H(this,_0x3b3fb2(0x506),new Map()),H(this,'_canRevert',!0x1),H(this,'_loadParams',null),H(this,'_unitCurrentVersionMap',new Map());}async[_0x1f0caa(0x238)](_0x5ee459,_0x50316b){const _0x200beb=_0x1f0caa;this[_0x200beb(0x53c)]=_0x50316b,this[_0x200beb(0x21f)][_0x200beb(0x1d0)](!0x0),await this['loadInitialVersions'](_0x5ee459);}[_0x1f0caa(0x2da)](_0x360d3d,_0x405542,_0x2d1395){const _0x4fab68=_0x1f0caa;let {versions:_0x2b4e7b,hasMore:_0x49f7ad,lastLabel:_0x20b3a5,members:_0x5527ad}=_0x2d1395,_0x2f48f4=_0x2b4e7b[_0x4fab68(0x446)]>0x0?_0x2b4e7b:[{'unitId':_0x360d3d,'id':xe,'startRev':0x1,'endRev':0x0,'time':Date['now'](),'user':this[_0x4fab68(0x268)]['t']('sheets-history-ui.viewer.panel.currentUser'),'users':[this['_localeService']['t'](_0x4fab68(0x2c7))],'commands':[],'isAnonymous':!0x1}];this[_0x4fab68(0x53c)]=_0x405542,this['_unitId$'][_0x4fab68(0x1d0)](_0x360d3d),this['_updateVersions'](_0x2f48f4,_0x49f7ad,_0x20b3a5,!0x1,_0x5527ad),this[_0x4fab68(0x16d)][_0x4fab68(0x1d0)](_0x2f48f4[0x0]['id']);}async[_0x1f0caa(0x1c7)](_0x2ebb70,_0x252379){const _0xf60b9f=_0x1f0caa;this[_0xf60b9f(0x3c7)][_0xf60b9f(0x1d0)](_0x2ebb70),this[_0xf60b9f(0x3ac)]=_0x252379??null,this[_0xf60b9f(0x469)](!0x0);let _0x515a35=await this[_0xf60b9f(0x2f3)][_0xf60b9f(0x423)](_0x2ebb70,_0x252379);if(this[_0xf60b9f(0x469)](!0x1),_0x515a35){let {versions:_0x51f878,lastLabel:_0x2825ce,hasMore:_0x9022fd,members:_0x1c3548}=_0x515a35;_0x51f878[_0xf60b9f(0x446)]===0x0&&_0x51f878[_0xf60b9f(0x33a)]({'unitId':_0x2ebb70,'id':xe,'startRev':0x1,'endRev':0x0,'time':Date[_0xf60b9f(0x4c5)](),'user':this[_0xf60b9f(0x268)]['t'](_0xf60b9f(0x2c7)),'users':[this[_0xf60b9f(0x268)]['t']('sheets-history-ui.viewer.panel.currentUser')],'commands':[],'isAnonymous':!0x1}),this[_0xf60b9f(0x405)](_0x51f878,_0x9022fd,_0x2825ce,!0x1,_0x1c3548),this[_0xf60b9f(0x16d)][_0xf60b9f(0x1d0)](_0x51f878[0x0]['id']),this[_0xf60b9f(0x459)]['set'](_0x2ebb70,_0x51f878[0x0][_0xf60b9f(0x388)]);}else this[_0xf60b9f(0x353)][_0xf60b9f(0x1d0)](_0xf60b9f(0x42d));}async['loadMoreVersions'](){const _0x56ca7c=_0x1f0caa;if(!this[_0x56ca7c(0x2cd)]||!this[_0x56ca7c(0x15d)]||this['fetching'])return!0x1;this[_0x56ca7c(0x469)](!0x0);let _0x58e96e=await this[_0x56ca7c(0x2f3)][_0x56ca7c(0x423)](this[_0x56ca7c(0x53f)],{'lastLabel':this[_0x56ca7c(0x2cd)],...this[_0x56ca7c(0x3ac)]});if(this['_setFetching'](!0x1),_0x58e96e){let {versions:_0x53ceee,lastLabel:_0x3e07bf,hasMore:_0x3b4e17,members:_0x1dcfeb}=_0x58e96e;this[_0x56ca7c(0x405)](_0x53ceee,_0x3b4e17,_0x3e07bf,!0x0,_0x1dcfeb);}else this[_0x56ca7c(0x498)][_0x56ca7c(0x2ec)]({'content':this[_0x56ca7c(0x268)]['t']('sheets-history-ui.viewer.panel.listFetchError'),'type':m['MessageType'][_0x56ca7c(0x390)],'duration':0xbb8});return!0x0;}async[_0x1f0caa(0x245)](){const _0x1d2210=_0x1f0caa;let {unitId:_0x35d9cf}=this;if(!_0x35d9cf)return;let _0x40f99a=await this[_0x1d2210(0x2f3)][_0x1d2210(0x3c8)](_0x35d9cf);_0x40f99a&&this[_0x1d2210(0x53e)][_0x1d2210(0x1d0)](_0x40f99a);}async[_0x1f0caa(0x47f)](_0x1066a6){const _0x229b4e=_0x1f0caa;let {endRev:_0x2018fb}=this[_0x229b4e(0x174)](_0x1066a6)||{};if(_0x2018fb||_0x2018fb===0x0){this[_0x229b4e(0x499)]['next'](_0x229b4e(0x386));try{await this['_historyFetchService']['loadSheet'](this[_0x229b4e(0x53f)],_0x2018fb),this[_0x229b4e(0x499)][_0x229b4e(0x1d0)]('loaded');}catch(_0x4e8879){this['_logService'][_0x229b4e(0x42d)]('[HistoryManagerService]:\x20Failed\x20to\x20load\x20history\x20revision.',_0x4e8879),this[_0x229b4e(0x499)][_0x229b4e(0x1d0)](_0x229b4e(0x42d)),this[_0x229b4e(0x353)][_0x229b4e(0x1d0)](_0x229b4e(0x42d));}}else this['_status$'][_0x229b4e(0x1d0)]('error');}async[_0x1f0caa(0x4ad)](_0xf0cc9){const _0x2caaba=_0x1f0caa;let _0x382c21=_0xf0cc9?this['getVersion'](_0xf0cc9):this[_0x2caaba(0x2f8)]();if(!_0x382c21)return;let _0x311313=_0x382c21['endRev'],_0x44a19d=K(_0x382c21[_0x2caaba(0x523)],this['_localeService']);await this[_0x2caaba(0x48c)][_0x2caaba(0x1fd)]({'id':_0x2caaba(0x503),'title':{'title':this['_localeService']['t']('sheets-history-ui.viewer.panel.revertConfirm')},'children':{'title':this[_0x2caaba(0x268)]['t']('sheets-history-ui.viewer.panel.revertConfirmText',_0x44a19d[_0x2caaba(0x2d0)],_0x44a19d[_0x2caaba(0x523)])},'cancelText':this['_localeService']['t']('sheets-history-ui.viewer.panel.cancel'),'confirmText':this['_localeService']['t'](_0x2caaba(0x45b))})&&this[_0x2caaba(0x539)][_0x2caaba(0x1d0)](_0x311313);}[_0x1f0caa(0x405)](_0x1f9d1e,_0x8d8d83,_0x992085,_0x339cc3,_0x1e553d){const _0x1e6e1f=_0x1f0caa;this[_0x1e6e1f(0x2d7)](_0x339cc3?this[_0x1e6e1f(0x3d1)][_0x1e6e1f(0x2a0)][_0x1e6e1f(0x26f)](_0x1f9d1e):_0x1f9d1e),this[_0x1e6e1f(0x15d)]=_0x8d8d83,this[_0x1e6e1f(0x2cd)]=_0x992085,_0x1e553d&&Object[_0x1e6e1f(0x1ca)](_0x1e553d)['forEach'](_0x1f7aed=>this[_0x1e6e1f(0x506)][_0x1e6e1f(0x520)](_0x1f7aed,_0x1e553d[_0x1f7aed]));}[_0x1f0caa(0x2f8)](){const _0x1075ab=_0x1f0caa;return this['getVersion'](this[_0x1075ab(0x16d)]['value']);}[_0x1f0caa(0x2d7)](_0x140e0e){const _0x4e7d3b=_0x1f0caa;this[_0x4e7d3b(0x3d1)][_0x4e7d3b(0x1d0)](_0x140e0e);}[_0x1f0caa(0x174)](_0x145806){const _0xe296e=_0x1f0caa;var _0x4eb9f1;return((_0x4eb9f1=this[_0xe296e(0x3d1)]['value'])==null?void 0x0:_0x4eb9f1[_0xe296e(0x1f8)](_0x5c6ed0=>_0x5c6ed0['id']===_0x145806))||this[_0xe296e(0x332)]['get'](_0x145806);}[_0x1f0caa(0x41a)](_0x47859f){const _0x3f2732=_0x1f0caa;this[_0x3f2732(0x332)][_0x3f2732(0x520)](_0x47859f['id'],_0x47859f);}[_0x1f0caa(0x1af)](){const _0x11a83d=_0x1f0caa;if(this[_0x11a83d(0x53f)])return this[_0x11a83d(0x459)]['get'](this[_0x11a83d(0x53f)]);}[_0x1f0caa(0x309)](){const _0x170210=_0x1f0caa;var _0x14d896;return((_0x14d896=this[_0x170210(0x2f8)]())==null?void 0x0:_0x14d896[_0x170210(0x388)])===this['getCurrentUnitCurrentVersion']();}[_0x1f0caa(0x50c)](){const _0x7bdd7a=_0x1f0caa;return!this[_0x7bdd7a(0x309)]()&&this[_0x7bdd7a(0x370)];}[_0x1f0caa(0x2dc)](_0x434b67){const _0x3e467a=_0x1f0caa;return this[_0x3e467a(0x506)][_0x3e467a(0x167)](_0x434b67);}['exitHistoryMode'](){const _0x4d9a9a=_0x1f0caa;this[_0x4d9a9a(0x353)][_0x4d9a9a(0x1d0)](_0x4d9a9a(0x39e));}set[_0x1f0caa(0x2bf)](_0x3900b6){const _0x5d2142=_0x1f0caa;this[_0x5d2142(0x353)][_0x5d2142(0x1d0)](_0x3900b6);}get['status'](){const _0xb79c57=_0x1f0caa;return this[_0xb79c57(0x353)][_0xb79c57(0x2a0)];}[_0x1f0caa(0x189)](_0x15c8b4){const _0x5c2121=_0x1f0caa;_0x15c8b4!==this[_0x5c2121(0x16d)][_0x5c2121(0x2a0)]&&this[_0x5c2121(0x16d)][_0x5c2121(0x1d0)](_0x15c8b4);}get[_0x1f0caa(0x186)](){const _0x579c01=_0x1f0caa;return this['_currentVersion$'][_0x579c01(0x2a0)];}set[_0x1f0caa(0x53f)](_0x47559f){const _0x28ed6b=_0x1f0caa;this[_0x28ed6b(0x3c7)]['next'](_0x47559f);}get[_0x1f0caa(0x53f)](){const _0x5d796d=_0x1f0caa;return this[_0x5d796d(0x3c7)][_0x5d796d(0x2a0)];}get[_0x1f0caa(0x370)](){return this['_canRevert'];}get[_0x1f0caa(0x3b7)](){const _0x425649=_0x1f0caa;return this[_0x425649(0x499)][_0x425649(0x2a0)];}};q=W([U(0x0,N[_0x1f0caa(0x454)]),U(0x1,e[_0x1f0caa(0x47a)]),U(0x2,e[_0x1f0caa(0x4ce)]),U(0x3,(0x0,e['Inject'])(e[_0x1f0caa(0x470)])),U(0x4,(0x0,e['Inject'])(G))],q);let J=class extends e[_0x1f0caa(0x3d8)]{constructor(_0x321021,_0x138fa8,_0xf47aeb,_0x63dea0,_0x2ebbe1,_0x32fd98,_0x323557,_0x7c0dc6,_0x2b6d45,_0x460a38,_0x429357,_0x58d944,_0x9996a5,_0x2bc597){const _0x50d73f=_0x1f0caa;super(),this['_historyManagerService']=_0x321021,this[_0x50d73f(0x45d)]=_0x138fa8,this[_0x50d73f(0x4c1)]=_0xf47aeb,this[_0x50d73f(0x415)]=_0x63dea0,this[_0x50d73f(0x29a)]=_0x2ebbe1,this[_0x50d73f(0x4b0)]=_0x32fd98,this[_0x50d73f(0x24b)]=_0x323557,this[_0x50d73f(0x252)]=_0x7c0dc6,this[_0x50d73f(0x51e)]=_0x2b6d45,this[_0x50d73f(0x1c5)]=_0x460a38,this[_0x50d73f(0x268)]=_0x429357,this[_0x50d73f(0x27b)]=_0x58d944,this['_historyFetchService']=_0x9996a5,this[_0x50d73f(0x1ac)]=_0x2bc597,H(this,_0x50d73f(0x3dc),new Map()),H(this,_0x50d73f(0x320),new P['BehaviorSubject']({'ranges':new Map(),'active':null,'subUnitIds':[]})),H(this,'currentVersionDiff$',this[_0x50d73f(0x320)]['asObservable']()),this[_0x50d73f(0x3b8)]();}[_0x1f0caa(0x521)](){const _0x2ce43e=_0x1f0caa;super[_0x2ce43e(0x521)](),this[_0x2ce43e(0x3dc)][_0x2ce43e(0x42c)](),this[_0x2ce43e(0x320)][_0x2ce43e(0x4cb)]();}['_init'](){const _0x547975=_0x1f0caa;this[_0x547975(0x3dc)]=new Map(),this[_0x547975(0x2e1)](this['_historyManagerService'][_0x547975(0x236)][_0x547975(0x205)](_0x15168e=>{const _0x5bf952=_0x547975;_0x15168e&&!this[_0x5bf952(0x3dc)][_0x5bf952(0x35c)](_0x15168e)&&this[_0x5bf952(0x3dc)]['set'](_0x15168e,new Map());})),this[_0x547975(0x2e1)](this['_historyManagerService'][_0x547975(0x3bb)][_0x547975(0x205)](_0x2e657c=>{const _0xc5a6b8=_0x547975;_0x2e657c&&this[_0xc5a6b8(0x505)](_0x2e657c);}));}async[_0x1f0caa(0x180)](_0x220351){const _0xcbdd71=_0x1f0caa;var _0x4e0d88;if(this['_disposed'])return;let _0x10c280=this[_0xcbdd71(0x337)][_0xcbdd71(0x174)](_0x220351),_0x5c72a9=this[_0xcbdd71(0x337)][_0xcbdd71(0x53f)];if(!_0x10c280||!_0x5c72a9)return;let _0x404ad5=this[_0xcbdd71(0x3dc)][_0xcbdd71(0x167)](_0x5c72a9);if(_0x404ad5||(_0x404ad5=new Map(),this['_diffRangesMap'][_0xcbdd71(0x520)](_0x5c72a9,_0x404ad5)),_0x404ad5[_0xcbdd71(0x35c)](_0x10c280['id']))return;let {startRev:_0x206100,endRev:_0x4abb9c}=_0x10c280;if(_0x206100===0x1){_0x404ad5[_0xcbdd71(0x520)](_0x10c280['id'],{'ranges':new Map(),'active':null,'subUnitIds':[]});return;}let _0x3bc4e2=_0x206100,_0x4a4384=_0x4abb9c,_0x4fae75=await this['_historyFetchService'][_0xcbdd71(0x37d)]({},{'unitId':_0x5c72a9,'startRevision':_0x3bc4e2,'endRevision':_0x4a4384});if(!this[_0xcbdd71(0x48f)]&&((_0x4e0d88=_0x4fae75['error'])==null?void 0x0:_0x4e0d88['code'])===L[_0xcbdd71(0x200)]['OK']){let _0x4730f3=_0x4fae75[_0xcbdd71(0x1b1)]['map'](_0x56384a=>((_0x56384a[_0xcbdd71(0x3e0)]===null||_0x56384a[_0xcbdd71(0x3e0)]===void 0x0)&&(_0x56384a[_0xcbdd71(0x3e0)]=[]),(0x0,n['parseProtocolChangeset'])(_0x56384a)))[_0xcbdd71(0x4f3)](_0x5cf23a=>_0x5cf23a[_0xcbdd71(0x3e0)][_0xcbdd71(0x4f3)](_0x4f419f=>({..._0x4f419f,'params':{..._0x4f419f[_0xcbdd71(0x490)],'memberId':_0x5cf23a[_0xcbdd71(0x32d)]||_0xcbdd71(0x538)}})))[_0xcbdd71(0x514)](),_0x60172d=await this[_0xcbdd71(0x1d5)](_0x4730f3);if(this[_0xcbdd71(0x48f)])return;let _0x5758a2=this[_0xcbdd71(0x272)](_0x4730f3),_0x3bd5d5=this[_0xcbdd71(0x4f7)](_0x60172d);_0x404ad5['set'](_0x10c280['id'],{..._0x3bd5d5,'active':_0x5758a2});}}[_0x1f0caa(0x505)](_0x2d3e00){const _0x22aa35=_0x1f0caa;this[_0x22aa35(0x180)](_0x2d3e00)[_0x22aa35(0x1aa)](()=>{const _0x108cd6=_0x22aa35;var _0x49703c;if(this[_0x108cd6(0x48f)]||this[_0x108cd6(0x337)][_0x108cd6(0x186)]!==_0x2d3e00)return;let _0x43ac73=(_0x49703c=this['_diffRangesMap'][_0x108cd6(0x167)](this[_0x108cd6(0x337)][_0x108cd6(0x53f)]))==null?void 0x0:_0x49703c[_0x108cd6(0x167)](_0x2d3e00);this[_0x108cd6(0x320)][_0x108cd6(0x1d0)](_0x43ac73||{'ranges':new Map(),'active':null,'subUnitIds':[]});})[_0x22aa35(0x3e2)](_0x405492=>{const _0x539777=_0x22aa35;this[_0x539777(0x48f)]||this['_logService'][_0x539777(0x42d)](_0x539777(0x51c),_0x405492);});}[_0x1f0caa(0x4de)](){const _0x69e0ad=_0x1f0caa;let _0x341d8b=me(_0x69e0ad(0x40e)),_0x5a9665=new Map();return Object[_0x69e0ad(0x402)](_0x341d8b)['flat']()[_0x69e0ad(0x30e)](_0x154dbe=>{_0x5a9665['set'](_0x154dbe['id'],_0x154dbe['action']);}),_0x5a9665;}['categorizeMutationRanges'](_0x120fc7,_0xd6165d){const _0x40eba2=_0x1f0caa;return this[_0x40eba2(0x3f8)](_0x120fc7,_0xd6165d);}async[_0x1f0caa(0x1d5)](_0x241e9e){const _0x5595dc=_0x1f0caa;let _0x691112=[];for(let _0x27c7f8=0x0;_0x27c7f8<_0x241e9e[_0x5595dc(0x446)];_0x27c7f8++){if(this[_0x5595dc(0x48f)])return[];let _0x41465b=_0x241e9e[_0x27c7f8];if(_0x691112[_0x5595dc(0x33a)](_0x41465b),_0x27c7f8!==_0x241e9e[_0x5595dc(0x446)]-0x1){let _0x5a0efd=_0x241e9e[_0x27c7f8+0x1],_0xc4cdd8=this['_transformService'][_0x5595dc(0x1b5)](_0x691112,[_0x5a0efd]);_0x691112=(0x0,n['isTransformMutationsSuccess'])(_0xc4cdd8)?_0xc4cdd8[_0x5595dc(0x2fe)]:[];}_0x27c7f8%0xa==0x0&&_0x27c7f8>0x0&&await this[_0x5595dc(0x422)]();}return _0x691112;}[_0x1f0caa(0x422)](){return new Promise(_0x22230b=>{typeof requestIdleCallback=='function'?requestIdleCallback(()=>_0x22230b(),{'timeout':0x64}):setTimeout(_0x22230b,0x0);});}[_0x1f0caa(0x272)](_0x54850a){const _0x278abc=_0x1f0caa;let _0x2c17dc=[];return _0x54850a['forEach'](_0x161dd0=>{const _0x3784e2=_0x1a9f;if(_0x161dd0['id']===t[_0x3784e2(0x1ab)]['id']){let _0x28ac3f=_0x161dd0[_0x3784e2(0x490)];_0x2c17dc[_0x3784e2(0x33a)](_0x28ac3f[_0x3784e2(0x30c)]['id']);}else{if(_0x161dd0['id']===t[_0x3784e2(0x392)]['id']){let _0x2d808f=_0x161dd0[_0x3784e2(0x490)];_0x2c17dc[_0x3784e2(0x446)]>0x0&&(_0x2c17dc=_0x2c17dc[_0x3784e2(0x463)](_0x49dc9d=>_0x49dc9d!==_0x2d808f[_0x3784e2(0x38a)]));}else{if(_0x161dd0['id']===t[_0x3784e2(0x4d7)]['id']){let _0x306086=_0x161dd0[_0x3784e2(0x490)];_0x306086[_0x3784e2(0x493)]?_0x2c17dc=_0x2c17dc[_0x3784e2(0x463)](_0x5658e2=>_0x5658e2!==_0x306086[_0x3784e2(0x38a)]):_0x2c17dc['push'](_0x306086['subUnitId']);}else{let _0x3566bd=_0x161dd0[_0x3784e2(0x490)];_0x3566bd[_0x3784e2(0x38a)]&&_0x2c17dc[_0x3784e2(0x33a)](_0x3566bd[_0x3784e2(0x38a)]);}}}}),_0x2c17dc[_0x278abc(0x446)]>0x0?_0x2c17dc[_0x2c17dc[_0x278abc(0x446)]-0x1]:null;}['_extractRanges'](_0xd4cb15){const _0x145e13=_0x1f0caa;let _0x505907=new Map(),_0x162ac2=new Map(),_0x522c35=new Map(),_0x1a32f6=new Map(),_0x30eb19=new Map(),_0x2adbe3=new Map(),_0x39b47b=new Map(),_0x5f3081=new Map(),_0x73c264=new Map(),_0x5138fa=new Map(),_0x365fcb=new Map(),_0x5ee423=new Map(),_0x31a396=new Set(),_0x12e44e=this[_0x145e13(0x4de)]();return _0xd4cb15['forEach'](_0x37352e=>{const _0x2a5f63=_0x145e13;var _0x3721a0,_0x45e9a4,_0xb120ae,_0x1af3ce,_0x4fcde6,_0x27782d,_0x455e0c,_0x11ec38,_0x24ed17,_0x50d57b,_0x9e4e2d,_0x1950e2,_0x39b207;let _0x55bca4=(_0x3721a0=_0x37352e['params'])==null?void 0x0:_0x3721a0[_0x2a5f63(0x3e6)];if(!_0x55bca4)return;_0x505907[_0x2a5f63(0x35c)](_0x55bca4)||(_0x505907[_0x2a5f63(0x520)](_0x55bca4,[]),_0x162ac2[_0x2a5f63(0x520)](_0x55bca4,[]),_0x522c35[_0x2a5f63(0x520)](_0x55bca4,[]),_0x1a32f6[_0x2a5f63(0x520)](_0x55bca4,[]),_0x30eb19[_0x2a5f63(0x520)](_0x55bca4,[]),_0x2adbe3[_0x2a5f63(0x520)](_0x55bca4,[]),_0x39b47b['set'](_0x55bca4,[]),_0x5f3081[_0x2a5f63(0x520)](_0x55bca4,[]),_0x73c264[_0x2a5f63(0x520)](_0x55bca4,[]),_0x5138fa[_0x2a5f63(0x520)](_0x55bca4,[]),_0x365fcb[_0x2a5f63(0x520)](_0x55bca4,[]),_0x5ee423[_0x2a5f63(0x520)](_0x55bca4,[]));let _0x5b96bd=this[_0x2a5f63(0x3f8)](_0x37352e,_0x12e44e);_0x5b96bd[_0x2a5f63(0x20f)][_0x2a5f63(0x30e)](_0x2464e7=>_0x31a396[_0x2a5f63(0x32b)](_0x2464e7)),(_0x45e9a4=_0x505907['get'](_0x55bca4))==null||_0x45e9a4[_0x2a5f63(0x33a)](..._0x5b96bd['allRanges']),(_0xb120ae=_0x162ac2['get'](_0x55bca4))==null||_0xb120ae[_0x2a5f63(0x33a)](..._0x5b96bd[_0x2a5f63(0x4af)]),(_0x1af3ce=_0x522c35[_0x2a5f63(0x167)](_0x55bca4))==null||_0x1af3ce[_0x2a5f63(0x33a)](..._0x5b96bd[_0x2a5f63(0x361)]),(_0x4fcde6=_0x1a32f6[_0x2a5f63(0x167)](_0x55bca4))==null||_0x4fcde6[_0x2a5f63(0x33a)](..._0x5b96bd[_0x2a5f63(0x382)]),(_0x27782d=_0x30eb19[_0x2a5f63(0x167)](_0x55bca4))==null||_0x27782d[_0x2a5f63(0x33a)](..._0x5b96bd[_0x2a5f63(0x1f7)]),(_0x455e0c=_0x2adbe3[_0x2a5f63(0x167)](_0x55bca4))==null||_0x455e0c[_0x2a5f63(0x33a)](..._0x5b96bd[_0x2a5f63(0x4f2)]),(_0x11ec38=_0x39b47b['get'](_0x55bca4))==null||_0x11ec38[_0x2a5f63(0x33a)](..._0x5b96bd['updateBorderRanges']),(_0x24ed17=_0x5f3081[_0x2a5f63(0x167)](_0x55bca4))==null||_0x24ed17[_0x2a5f63(0x33a)](..._0x5b96bd['arrowRowRanges']),(_0x50d57b=_0x73c264['get'](_0x55bca4))==null||_0x50d57b[_0x2a5f63(0x33a)](..._0x5b96bd[_0x2a5f63(0x4e8)]),(_0x9e4e2d=_0x365fcb[_0x2a5f63(0x167)](_0x55bca4))==null||_0x9e4e2d[_0x2a5f63(0x33a)](..._0x5b96bd[_0x2a5f63(0x176)]),(_0x1950e2=_0x5ee423[_0x2a5f63(0x167)](_0x55bca4))==null||_0x1950e2[_0x2a5f63(0x33a)](..._0x5b96bd[_0x2a5f63(0x45c)]),(_0x39b207=_0x5138fa['get'](_0x55bca4))==null||_0x39b207['push'](..._0x5b96bd[_0x2a5f63(0x213)]);}),_0x505907['forEach']((_0x34154d,_0x58ddba)=>{const _0x3d5067=_0x145e13;_0x505907[_0x3d5067(0x520)](_0x58ddba,this[_0x3d5067(0x344)](_0x34154d)),_0x162ac2[_0x3d5067(0x520)](_0x58ddba,this[_0x3d5067(0x344)](_0x162ac2[_0x3d5067(0x167)](_0x58ddba)||[])),_0x522c35['set'](_0x58ddba,this[_0x3d5067(0x344)](_0x522c35['get'](_0x58ddba)||[])),_0x1a32f6[_0x3d5067(0x520)](_0x58ddba,this[_0x3d5067(0x344)](_0x1a32f6[_0x3d5067(0x167)](_0x58ddba)||[])),_0x30eb19[_0x3d5067(0x520)](_0x58ddba,this[_0x3d5067(0x344)](_0x30eb19[_0x3d5067(0x167)](_0x58ddba)||[])),_0x2adbe3['set'](_0x58ddba,this[_0x3d5067(0x344)](_0x2adbe3[_0x3d5067(0x167)](_0x58ddba)||[])),_0x39b47b['set'](_0x58ddba,this[_0x3d5067(0x344)](_0x39b47b[_0x3d5067(0x167)](_0x58ddba)||[])),_0x5f3081[_0x3d5067(0x520)](_0x58ddba,this[_0x3d5067(0x344)](_0x5f3081[_0x3d5067(0x167)](_0x58ddba)||[])),_0x73c264[_0x3d5067(0x520)](_0x58ddba,this['_combineRanges'](_0x73c264['get'](_0x58ddba)||[]));}),{'ranges':_0x505907,'insertCellRanges':_0x162ac2,'deleteCellRanges':_0x522c35,'updateCellRanges':_0x1a32f6,'insertBorderRanges':_0x30eb19,'deleteBorderRanges':_0x2adbe3,'updateBorderRanges':_0x39b47b,'arrowRowRanges':_0x5f3081,'arrowColumnRanges':_0x73c264,'insertDrawings':_0x365fcb,'deleteDrawings':_0x5ee423,'updateDrawings':_0x5138fa,'subUnitIds':Array[_0x145e13(0x1de)](_0x31a396)};}[_0x1f0caa(0x3f8)](_0x1805cc,_0xee225f){const _0x5d91aa=_0x1f0caa;let _0x1d26b0={'allRanges':[],'insertCellRanges':[],'deleteCellRanges':[],'updateCellRanges':[],'insertBorderRanges':[],'deleteBorderRanges':[],'updateBorderRanges':[],'arrowRowRanges':[],'arrowColumnRanges':[],'insertDrawings':[],'deleteDrawings':[],'updateDrawings':[],'subUnitIds':[]},_0x581e3a=_0x1805cc['id'],_0x5d279b=_0x1805cc[_0x5d91aa(0x490)],_0x315fa5=_0xee225f[_0x5d91aa(0x167)](_0x581e3a),_0x4606e7=_0x315fa5?this['_localeService']['t'](_0x315fa5):'';_0x5d279b[_0x5d91aa(0x38a)]&&_0x1d26b0['subUnitIds'][_0x5d91aa(0x33a)](_0x5d279b[_0x5d91aa(0x38a)]);let _0x42f559=(_0x29f0b7,_0x2f2d5b)=>{const _0x50f311=_0x5d91aa;let _0x350987=_0x29f0b7[_0x50f311(0x4f3)](_0x5ddd3f=>({..._0x5ddd3f,'showText':_0x4606e7}));switch(_0x1d26b0[_0x50f311(0x244)][_0x50f311(0x33a)](..._0x350987),_0x2f2d5b){case'insert':_0x1d26b0['insertCellRanges'][_0x50f311(0x33a)](..._0x350987);break;case _0x50f311(0x4b5):_0x1d26b0['deleteCellRanges'][_0x50f311(0x33a)](..._0x350987);break;case'update':_0x1d26b0['updateCellRanges'][_0x50f311(0x33a)](..._0x350987);break;case _0x50f311(0x39d):_0x1d26b0[_0x50f311(0x1f7)][_0x50f311(0x33a)](..._0x350987);break;case _0x50f311(0x43b):_0x1d26b0['deleteBorderRanges'][_0x50f311(0x33a)](..._0x350987);break;case _0x50f311(0x256):_0x1d26b0[_0x50f311(0x314)][_0x50f311(0x33a)](..._0x350987);break;case'arrowRow':_0x1d26b0[_0x50f311(0x511)][_0x50f311(0x33a)](..._0x350987);break;case _0x50f311(0x267):_0x1d26b0['arrowColumnRanges'][_0x50f311(0x33a)](..._0x350987);}};switch(_0x581e3a){case t[_0x5d91aa(0x1cb)]['id']:{let _0x484f33=_0x5d279b;_0x42f559([{'range':{..._0x484f33[_0x5d91aa(0x335)],'rangeType':e['RANGE_TYPE']['ROW']},'unitId':_0x484f33[_0x5d91aa(0x53f)],'subUnitId':_0x484f33[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x24e),'highlightRow':!0x0}],_0x5d91aa(0x1eb));break;}case t[_0x5d91aa(0x350)]['id']:{let _0x4c73b5=_0x5d279b;_0x42f559([{'range':{..._0x4c73b5[_0x5d91aa(0x335)],'rangeType':e[_0x5d91aa(0x478)][_0x5d91aa(0x2d9)]},'unitId':_0x4c73b5[_0x5d91aa(0x53f)],'subUnitId':_0x4c73b5['subUnitId'],'showText':'insertCol','highlightColumn':!0x0}],_0x5d91aa(0x1eb));break;}case t[_0x5d91aa(0x3ec)]['id']:{let _0x1f1fac=_0x5d279b;_0x42f559(_0x1f1fac[_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x1d59a1=>({'range':_0x1d59a1,'unitId':_0x1f1fac[_0x5d91aa(0x53f)],'subUnitId':_0x1f1fac[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x1b8)})),_0x5d91aa(0x1eb));break;}case t['SetNumfmtMutation']['id']:{let _0x5381d8=_0x5d279b;_0x42f559(Object[_0x5d91aa(0x402)](_0x5381d8['values'])['map'](_0x553473=>_0x553473[_0x5d91aa(0x362)]['map'](_0x364a9d=>({'range':_0x364a9d,'unitId':_0x5381d8['unitId'],'subUnitId':_0x5381d8['subUnitId'],'showText':_0x5d91aa(0x53a)})))[_0x5d91aa(0x514)](),_0x5d91aa(0x1eb));break;}case t['RemoveWorksheetMergeMutation']['id']:{let _0x50d9c7=_0x5d279b;_0x42f559(_0x50d9c7[_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x36d354=>({'range':_0x36d354,'unitId':_0x50d9c7[_0x5d91aa(0x53f)],'subUnitId':_0x50d9c7[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x2de)})),'delete');break;}case t[_0x5d91aa(0x3f7)]['id']:{let _0x3f3b3f=_0x5d279b;_0x42f559(_0x3f3b3f[_0x5d91aa(0x362)]['map'](_0x22b77e=>({'range':_0x22b77e,'unitId':_0x3f3b3f[_0x5d91aa(0x53f)],'subUnitId':_0x3f3b3f['subUnitId'],'showText':_0x5d91aa(0x304)})),_0x5d91aa(0x4b5));break;}case t['MoveRowsMutation']['id']:{let _0x1a7e33=_0x5d279b;_0x42f559([{'range':{..._0x1a7e33[_0x5d91aa(0x2b1)],'rangeType':e['RANGE_TYPE'][_0x5d91aa(0x27f)]},'unitId':_0x1a7e33[_0x5d91aa(0x53f)],'subUnitId':_0x1a7e33['subUnitId'],'showText':_0x5d91aa(0x215)}],_0x5d91aa(0x4b5)),_0x42f559([{'range':{..._0x1a7e33[_0x5d91aa(0x4d5)],'rangeType':e['RANGE_TYPE'][_0x5d91aa(0x27f)]},'unitId':_0x1a7e33[_0x5d91aa(0x53f)],'subUnitId':_0x1a7e33[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x215)}],_0x5d91aa(0x1eb));break;}case t[_0x5d91aa(0x1a4)]['id']:{let _0x34c20c=_0x5d279b;_0x42f559([{'range':{..._0x34c20c[_0x5d91aa(0x2b1)],'rangeType':e['RANGE_TYPE'][_0x5d91aa(0x2d9)]},'unitId':_0x34c20c['unitId'],'subUnitId':_0x34c20c[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x1e9)}],_0x5d91aa(0x4b5)),_0x42f559([{'range':{..._0x34c20c[_0x5d91aa(0x4d5)],'rangeType':e[_0x5d91aa(0x478)][_0x5d91aa(0x2d9)]},'unitId':_0x34c20c[_0x5d91aa(0x53f)],'subUnitId':_0x34c20c[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x1e9)}],'insert');break;}case t[_0x5d91aa(0x451)]['id']:{let _0x2b3f57=_0x5d279b;_0x42f559(_0x2b3f57[_0x5d91aa(0x362)]['map'](_0x2b547c=>({'range':{..._0x2b547c,'rangeType':e[_0x5d91aa(0x478)][_0x5d91aa(0x27f)]},'unitId':_0x2b3f57[_0x5d91aa(0x53f)],'subUnitId':_0x2b3f57[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x279),'highlightRow':!0x0})),_0x5d91aa(0x1cd));break;}case t['SetRowDataMutation']['id']:{let _0x4a0093=_0x5d279b;_0x4a0093[_0x5d91aa(0x4ed)]&&_0x4a0093[_0x5d91aa(0x38a)]&&Object['keys'](_0x4a0093[_0x5d91aa(0x4ed)])['map'](Number)[_0x5d91aa(0x30e)](_0x49c08d=>{const _0x299823=_0x5d91aa;_0x42f559([{'range':{'startRow':_0x49c08d,'endRow':_0x49c08d,'startColumn':NaN,'endColumn':NaN,'rangeType':e[_0x299823(0x478)][_0x299823(0x27f)]},'unitId':_0x4a0093['unitId'],'subUnitId':_0x4a0093[_0x299823(0x38a)],'showText':_0x299823(0x21a),'highlightRow':!0x0}],_0x299823(0x1cd));});break;}case t[_0x5d91aa(0x287)]['id']:{let _0x4fed4e=_0x5d279b;_0x42f559(_0x4fed4e[_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x201b58=>({'range':{..._0x201b58,'rangeType':e[_0x5d91aa(0x478)][_0x5d91aa(0x2d9)]},'unitId':_0x4fed4e[_0x5d91aa(0x53f)],'subUnitId':_0x4fed4e[_0x5d91aa(0x38a)],'showText':'showCol','highlightColumn':!0x0})),_0x5d91aa(0x1cd));break;}case t[_0x5d91aa(0x444)]['id']:{let _0x2ffd1e=_0x5d279b;_0x2ffd1e[_0x5d91aa(0x2ad)]&&_0x2ffd1e[_0x5d91aa(0x38a)]&&Object[_0x5d91aa(0x1ca)](_0x2ffd1e['columnData'])['map'](Number)[_0x5d91aa(0x30e)](_0x25369d=>{const _0x15eff5=_0x5d91aa;_0x42f559([{'range':{'startRow':NaN,'endRow':NaN,'startColumn':_0x25369d,'endColumn':_0x25369d,'rangeType':e['RANGE_TYPE'][_0x15eff5(0x2d9)]},'unitId':_0x2ffd1e[_0x15eff5(0x53f)],'subUnitId':_0x2ffd1e[_0x15eff5(0x38a)],'showText':_0x15eff5(0x448),'highlightColumn':!0x0}],_0x15eff5(0x1cd));});break;}case t['SetRangeValuesMutation']['id']:{let _0x50dfad=_0x5d279b;_0x42f559(_0x50dfad[_0x5d91aa(0x4e5)]?Ce(_0x50dfad[_0x5d91aa(0x4e5)])[_0x5d91aa(0x4f3)](_0x158238=>({'range':_0x158238,'unitId':_0x50dfad['unitId'],'subUnitId':_0x50dfad[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x3c0)})):[],_0x5d91aa(0x1cd));break;}case t['MoveRangeMutation']['id']:{let _0xfb5af2=_0x1805cc['params'];_0x42f559([{'range':Se(_0xfb5af2[_0x5d91aa(0x1de)][_0x5d91aa(0x2a0)]),'unitId':_0xfb5af2[_0x5d91aa(0x53f)],'subUnitId':_0xfb5af2['from'][_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x19d)}],_0x5d91aa(0x4b5)),_0x42f559([{'range':Se(_0xfb5af2['to'][_0x5d91aa(0x2a0)]),'unitId':_0xfb5af2['unitId'],'subUnitId':_0xfb5af2['to'][_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x19d)}],_0x5d91aa(0x1eb));break;}case t[_0x5d91aa(0x465)]['id']:{let _0x4c5266=_0x5d279b;_0x42f559([{'range':_0x4c5266[_0x5d91aa(0x335)],'unitId':_0x4c5266[_0x5d91aa(0x53f)],'subUnitId':_0x4c5266[_0x5d91aa(0x38a)]}],_0x5d91aa(0x1cd));break;}case t[_0x5d91aa(0x331)]['id']:{let _0x14ce77=_0x5d279b;_0x14ce77[_0x5d91aa(0x362)]&&_0x14ce77['ranges'][_0x5d91aa(0x446)]>0x0&&_0x14ce77[_0x5d91aa(0x38a)]&&_0x42f559(_0x14ce77[_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x286e0a=>({'range':_0x286e0a,'unitId':_0x14ce77[_0x5d91aa(0x53f)],'subUnitId':_0x14ce77[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x25b)})),_0x5d91aa(0x4e7));break;}case t['SetWorksheetColWidthMutation']['id']:{let _0x5d1720=_0x5d279b;_0x5d1720[_0x5d91aa(0x362)]&&_0x5d1720[_0x5d91aa(0x362)][_0x5d91aa(0x446)]>0x0&&_0x5d1720['subUnitId']&&_0x42f559(_0x5d1720[_0x5d91aa(0x362)]['map'](_0x314d01=>({'range':_0x314d01,'unitId':_0x5d1720['unitId'],'subUnitId':_0x5d1720[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x25e)})),'arrowColumn');break;}case t[_0x5d91aa(0x3d7)]['id']:{let _0x2df9dc=_0x5d279b;_0x42f559(_0x2df9dc[_0x5d91aa(0x2b0)][_0x5d91aa(0x4f3)](_0x9ffd5f=>_0x9ffd5f[_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x2b2e3d=>({'range':_0x2b2e3d,'unitId':_0x2df9dc[_0x5d91aa(0x53f)],'subUnitId':_0x2df9dc[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x45a)})))['flat'](),'insertBorder');break;}case S[_0x5d91aa(0x222)]['id']:{let _0x2633f9=_0x5d279b;_0x42f559(_0x2633f9['rule'][_0x5d91aa(0x362)]['map'](_0x5f3436=>({'range':_0x5f3436,'unitId':_0x2633f9[_0x5d91aa(0x53f)],'subUnitId':_0x2633f9[_0x5d91aa(0x38a)],'showText':'setCF'})),_0x5d91aa(0x39d));break;}case p['AddDataValidationMutation']['id']:{let _0x311567=_0x5d279b;_0x42f559((Array[_0x5d91aa(0x48a)](_0x311567[_0x5d91aa(0x458)])?_0x311567[_0x5d91aa(0x458)]:[_0x311567[_0x5d91aa(0x458)]])['map'](_0xd25144=>_0xd25144['ranges'][_0x5d91aa(0x4f3)](_0x114401=>({'range':_0x114401,'unitId':_0x311567['unitId'],'subUnitId':_0x311567[_0x5d91aa(0x38a)],'showText':'setDV'})))['flat'](),_0x5d91aa(0x39d));break;}case t[_0x5d91aa(0x4b7)]['id']:{let _0x218e79=_0x5d279b,_0x3b73a5=_0x218e79[_0x5d91aa(0x53f)],_0x27dafe=_0x218e79[_0x5d91aa(0x38a)];_0x218e79[_0x5d91aa(0x4ca)]&&_0x218e79[_0x5d91aa(0x4ca)]['length']>0x0&&_0x218e79[_0x5d91aa(0x38a)]&&_0x218e79['ruleIds']['forEach'](_0x1346cd=>{const _0x548455=_0x5d91aa;let _0x15cd33=this[_0x548455(0x415)][_0x548455(0x2f5)](_0x3b73a5,_0x27dafe,_0x1346cd),_0x241042=(_0x15cd33==null?void 0x0:_0x15cd33['ranges'][_0x548455(0x4f3)](_0x22c495=>({'range':_0x22c495,'unitId':_0x3b73a5,'subUnitId':_0x27dafe,'showText':_0x548455(0x3b1)})))||[];_0x241042['length']>0x0&&_0x42f559(_0x241042,'deleteBorder');});break;}case S[_0x5d91aa(0x308)]['id']:{let _0x4adea9=_0x5d279b;if(_0x4adea9[_0x5d91aa(0x342)]&&_0x4adea9[_0x5d91aa(0x38a)]){let _0x382ccb=this[_0x5d91aa(0x29a)][_0x5d91aa(0x2f5)](_0x4adea9[_0x5d91aa(0x53f)],_0x4adea9[_0x5d91aa(0x38a)],_0x4adea9[_0x5d91aa(0x342)]);if(_0x382ccb){let _0x4770ab=_0x382ccb[_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x2e6307=>({'range':_0x2e6307,'unitId':_0x4adea9[_0x5d91aa(0x53f)],'subUnitId':_0x4adea9[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x23a)}));_0x4770ab[_0x5d91aa(0x446)]>0x0&&_0x42f559(_0x4770ab,_0x5d91aa(0x43b));}}break;}case p[_0x5d91aa(0x31b)]['id']:{let _0x50bd16=_0x5d279b,_0x3f0c12=Array[_0x5d91aa(0x48a)](_0x50bd16[_0x5d91aa(0x338)])?_0x50bd16[_0x5d91aa(0x338)]:[_0x50bd16['ruleId']];_0x3f0c12[_0x5d91aa(0x446)]>0x0&&_0x50bd16['subUnitId']&&_0x3f0c12[_0x5d91aa(0x30e)](_0x10a08a=>{const _0x52c27=_0x5d91aa;let _0x3997a7=this[_0x52c27(0x4b0)]['getRuleById'](_0x50bd16[_0x52c27(0x53f)],_0x50bd16[_0x52c27(0x38a)],_0x10a08a),_0x1180e7=(_0x3997a7==null?void 0x0:_0x3997a7[_0x52c27(0x362)][_0x52c27(0x4f3)](_0xdc6735=>({'range':_0xdc6735,'unitId':_0x50bd16[_0x52c27(0x53f)],'subUnitId':_0x50bd16['subUnitId'],'showText':_0x52c27(0x300)})))||[];_0x1180e7['length']>0x0&&_0x42f559(_0x1180e7,_0x52c27(0x43b));});break;}case t[_0x5d91aa(0x419)]['id']:{let _0x21a5dd=_0x5d279b;_0x42f559(_0x21a5dd[_0x5d91aa(0x458)][_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x56a99e=>({'range':_0x56a99e,'unitId':_0x21a5dd[_0x5d91aa(0x53f)],'subUnitId':_0x21a5dd[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x40c)})),_0x5d91aa(0x256));break;}case t[_0x5d91aa(0x410)]['id']:{let _0x4396c4=_0x5d279b;_0x42f559([{'range':_0x4396c4[_0x5d91aa(0x335)],'unitId':_0x4396c4[_0x5d91aa(0x53f)],'subUnitId':_0x4396c4[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x3ed)}],'updateBorder');break;}case t[_0x5d91aa(0x206)]['id']:{let _0x3c1053=_0x5d279b;_0x42f559([{'range':_0x3c1053['range'],'unitId':_0x3c1053[_0x5d91aa(0x53f)],'subUnitId':_0x3c1053[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x481)}],_0x5d91aa(0x256));break;}case S['SetConditionalRuleMutation']['id']:{let _0x526cc3=_0x5d279b;_0x42f559(_0x526cc3['rule'][_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x295610=>({'range':_0x295610,'unitId':_0x526cc3[_0x5d91aa(0x53f)],'subUnitId':_0x526cc3[_0x5d91aa(0x38a)],'showText':'setCF'})),_0x5d91aa(0x256));break;}case S[_0x5d91aa(0x34d)]['id']:{let _0x47f240=_0x5d279b,_0x4e4771=this['_conditionalFormattingRuleModel'][_0x5d91aa(0x2f5)](_0x47f240[_0x5d91aa(0x53f)],_0x47f240[_0x5d91aa(0x38a)],_0x47f240[_0x5d91aa(0x313)]['id']),_0xed1b90=this[_0x5d91aa(0x29a)][_0x5d91aa(0x2f5)](_0x47f240[_0x5d91aa(0x53f)],_0x47f240[_0x5d91aa(0x38a)],_0x47f240[_0x5d91aa(0x28d)]['id']);_0x4e4771&&_0x42f559(_0x4e4771[_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x1fa4c5=>({'range':_0x1fa4c5,'unitId':_0x47f240['unitId'],'subUnitId':_0x47f240[_0x5d91aa(0x38a)],'showText':'moveCF'})),'deleteBorder'),_0xed1b90&&_0x42f559(_0xed1b90[_0x5d91aa(0x362)]['map'](_0x256957=>({'range':_0x256957,'unitId':_0x47f240[_0x5d91aa(0x53f)],'subUnitId':_0x47f240[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x3d9)})),_0x5d91aa(0x39d));break;}case O[_0x5d91aa(0x3ad)]['id']:{let _0x408a91=_0x5d279b;_0x42f559([{'range':_0x408a91[_0x5d91aa(0x335)],'unitId':_0x408a91[_0x5d91aa(0x53f)],'subUnitId':_0x408a91[_0x5d91aa(0x38a)],'showText':'setFilter'}],_0x5d91aa(0x256));break;}case O[_0x5d91aa(0x165)]['id']:{let _0xe2dde4=_0x5d279b,_0x303d4a=this[_0x5d91aa(0x24b)][_0x5d91aa(0x36b)](_0xe2dde4['unitId'],_0xe2dde4[_0x5d91aa(0x38a)]);if(_0x303d4a){let _0x5af3a7=_0x303d4a[_0x5d91aa(0x455)]();_0x42f559(_0x5af3a7?[{'range':_0x5af3a7,'unitId':_0xe2dde4[_0x5d91aa(0x53f)],'subUnitId':_0xe2dde4['subUnitId'],'showText':_0x5d91aa(0x17c)}]:[],_0x5d91aa(0x256));}break;}case O[_0x5d91aa(0x318)]['id']:{let _0x118a2e=_0x5d279b,_0x3d9b4b=this[_0x5d91aa(0x24b)][_0x5d91aa(0x36b)](_0x118a2e[_0x5d91aa(0x53f)],_0x118a2e[_0x5d91aa(0x38a)]);if(_0x3d9b4b){let _0x2af05b=_0x3d9b4b[_0x5d91aa(0x455)]();_0x42f559(_0x2af05b?[{'range':_0x2af05b,'unitId':_0x118a2e['unitId'],'subUnitId':_0x118a2e[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x1da)}]:[],'updateBorder');}break;}case O['ReCalcSheetsFilterMutation']['id']:{let _0x49ffbf=_0x5d279b,_0x2f6098=this[_0x5d91aa(0x24b)][_0x5d91aa(0x36b)](_0x49ffbf[_0x5d91aa(0x53f)],_0x49ffbf['subUnitId']);if(_0x2f6098){let _0x2459cf=_0x2f6098[_0x5d91aa(0x455)]();_0x42f559(_0x2459cf?[{'range':_0x2459cf,'unitId':_0x49ffbf[_0x5d91aa(0x53f)],'subUnitId':_0x49ffbf[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x1da)}]:[],_0x5d91aa(0x256));}break;}case p[_0x5d91aa(0x4ae)]['id']:{let _0x51d1ca=_0x5d279b,_0x1645f2=this[_0x5d91aa(0x4b0)]['getRuleById'](_0x51d1ca['unitId'],_0x51d1ca[_0x5d91aa(0x38a)],_0x51d1ca[_0x5d91aa(0x338)]);_0x1645f2&&_0x42f559(_0x1645f2[_0x5d91aa(0x362)][_0x5d91aa(0x4f3)](_0x2c91fe=>({'range':_0x2c91fe,'unitId':_0x51d1ca['unitId'],'subUnitId':_0x51d1ca[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x3b4)})),_0x5d91aa(0x256));break;}case d[_0x5d91aa(0x22e)]['id']:{let _0x5cc644=_0x5d279b,_0x1b452b=_0x5cc644[_0x5d91aa(0x53f)],_0x8bc62d=_0x5cc644['subUnitId'],_0x4cc1bf=_0x5cc644[_0x5d91aa(0x292)];_0x5cc644[_0x5d91aa(0x292)]&&_0x8bc62d&&Object['keys'](_0x5cc644[_0x5d91aa(0x292)])['forEach'](_0x96ba96=>{const _0x1bcff6=_0x5d91aa;let _0x54504f=_0x4cc1bf[_0x96ba96],_0x296cab=Ce(_0x54504f[_0x1bcff6(0x1f5)])[_0x1bcff6(0x4f3)](_0x58e373=>({'range':_0x58e373,'unitId':_0x1b452b,'subUnitId':_0x8bc62d,'showText':_0x1bcff6(0x2c0)}));_0x42f559(_0x296cab,_0x1bcff6(0x1eb));});break;}case d[_0x5d91aa(0x334)]['id']:{let _0x588a9f=_0x5d279b;_0x588a9f[_0x5d91aa(0x247)]&&_0x588a9f[_0x5d91aa(0x247)][_0x5d91aa(0x446)]>0x0&&_0x588a9f[_0x5d91aa(0x38a)]&&_0x588a9f[_0x5d91aa(0x247)][_0x5d91aa(0x30e)](_0x1e7078=>{const _0x3c1a19=_0x5d91aa;let _0x473f04=this['_sparklineDataSourceModel'][_0x3c1a19(0x22a)](_0x588a9f['unitId'],_0x588a9f[_0x3c1a19(0x38a)],_0x1e7078);if(_0x473f04){let _0xfe5977=Ce(_0x473f04[_0x3c1a19(0x1f5)][_0x3c1a19(0x1b9)]())[_0x3c1a19(0x4f3)](_0x332ed7=>({'range':_0x332ed7,'unitId':_0x588a9f[_0x3c1a19(0x53f)],'subUnitId':_0x588a9f[_0x3c1a19(0x38a)],'showText':_0x3c1a19(0x158)}));_0x42f559(_0xfe5977,'update');}});break;}case d[_0x5d91aa(0x3d3)]['id']:{let _0x477ab2=_0x5d279b;_0x477ab2[_0x5d91aa(0x247)]&&_0x477ab2[_0x5d91aa(0x247)][_0x5d91aa(0x446)]>0x0&&_0x477ab2['subUnitId']&&_0x477ab2[_0x5d91aa(0x247)][_0x5d91aa(0x30e)](_0x1bbf53=>{const _0x4c7062=_0x5d91aa;let _0x55ac10=this['_sparklineDataSourceModel']['getSparklineById'](_0x477ab2[_0x4c7062(0x53f)],_0x477ab2['subUnitId'],_0x1bbf53);if(_0x55ac10){let _0x5837c0=Ce(_0x55ac10[_0x4c7062(0x1f5)][_0x4c7062(0x1b9)]())['map'](_0x130b50=>({'range':_0x130b50,'unitId':_0x477ab2[_0x4c7062(0x53f)],'subUnitId':_0x477ab2['subUnitId'],'showText':_0x4c7062(0x1bd)}));_0x42f559(_0x5837c0,_0x4c7062(0x4b5));}});break;}case j['AddSheetTableMutation']['id']:{let _0x1711bd=_0x5d279b;_0x1711bd[_0x5d91aa(0x2d5)]&&_0x1711bd['subUnitId']&&_0x42f559([{'range':_0x1711bd[_0x5d91aa(0x335)],'unitId':_0x1711bd[_0x5d91aa(0x53f)],'subUnitId':_0x1711bd[_0x5d91aa(0x38a)],'showText':'addTable'}],_0x5d91aa(0x1eb));break;}case j[_0x5d91aa(0x2b4)]['id']:{let _0x3a00e7=_0x5d279b;if(_0x3a00e7['tableId']&&_0x3a00e7['subUnitId']){var _0x25c809;let _0x59bb12=(_0x25c809=this['_sheetTableService'][_0x5d91aa(0x1f0)](_0x3a00e7['unitId'],_0x3a00e7[_0x5d91aa(0x2d5)]))==null?void 0x0:_0x25c809['range'];_0x59bb12&&_0x42f559([{'range':_0x59bb12,'unitId':_0x3a00e7[_0x5d91aa(0x53f)],'subUnitId':_0x3a00e7[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x3ea)}],'delete');}break;}case j['SetSheetTableFilterMutation']['id']:{let _0x26c2ed=_0x1805cc['params'];if(_0x26c2ed[_0x5d91aa(0x2d5)]){let _0x140b9a=this[_0x5d91aa(0x1c5)]['getTableInfo'](_0x26c2ed['unitId'],_0x26c2ed[_0x5d91aa(0x2d5)]);_0x140b9a&&_0x140b9a['range']&&_0x140b9a[_0x5d91aa(0x38a)]&&(_0x1d26b0['subUnitIds'][_0x5d91aa(0x33a)](_0x140b9a[_0x5d91aa(0x38a)]),_0x42f559([{'range':_0x140b9a[_0x5d91aa(0x335)],'unitId':_0x26c2ed['unitId'],'subUnitId':_0x140b9a['subUnitId'],'showText':_0x5d91aa(0x258)}],_0x5d91aa(0x1cd)));}break;}case j[_0x5d91aa(0x4a5)]['id']:{let _0x44167f=_0x5d279b;if(_0x44167f[_0x5d91aa(0x2d5)]&&_0x44167f[_0x5d91aa(0x38a)]){var _0xe9681d;let _0x2d82f3=(_0xe9681d=this[_0x5d91aa(0x1c5)]['getTableInfo'](_0x44167f[_0x5d91aa(0x53f)],_0x44167f['tableId']))==null?void 0x0:_0xe9681d[_0x5d91aa(0x335)];_0x2d82f3&&_0x42f559([{'range':_0x2d82f3,'unitId':_0x44167f[_0x5d91aa(0x53f)],'subUnitId':_0x44167f[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x501)}],_0x5d91aa(0x1cd));}break;}case c['AddPivotTableMutation']['id']:{let _0x1d7035=_0x5d279b;if(_0x1d7035[_0x5d91aa(0x37f)]&&_0x1d7035['subUnitId']){var _0x43c080;let _0x437ad0=(_0x43c080=this[_0x5d91aa(0x51e)]['getPivotTableRangeInfo'](_0x1d7035[_0x5d91aa(0x53f)],_0x1d7035['subUnitId'],_0x1d7035[_0x5d91aa(0x37f)]))==null?void 0x0:_0x43c080[_0x5d91aa(0x42a)];_0x437ad0&&_0x42f559((0x0,c[_0x5d91aa(0x495)])(_0x437ad0)[_0x5d91aa(0x4f3)](_0x137e80=>({'range':_0x137e80,'unitId':_0x1d7035['unitId'],'subUnitId':_0x1d7035[_0x5d91aa(0x38a)],'showText':_0x5d91aa(0x50b)})),_0x5d91aa(0x1eb));}break;}case c[_0x5d91aa(0x32c)]['id']:{let _0x51fff4=_0x5d279b;if(_0x51fff4[_0x5d91aa(0x37f)]&&_0x51fff4[_0x5d91aa(0x38a)]){var _0x376117;let _0x37c1f7=(_0x376117=this[_0x5d91aa(0x51e)]['getPivotTableRangeInfo'](_0x51fff4[_0x5d91aa(0x53f)],_0x51fff4['subUnitId'],_0x51fff4[_0x5d91aa(0x37f)]))==null?void 0x0:_0x376117[_0x5d91aa(0x42a)];_0x37c1f7&&_0x42f559((0x0,c[_0x5d91aa(0x495)])(_0x37c1f7)[_0x5d91aa(0x4f3)](_0x5e6bb9=>({'range':_0x5e6bb9,'unitId':_0x51fff4[_0x5d91aa(0x53f)],'subUnitId':_0x51fff4['subUnitId'],'showText':_0x5d91aa(0x264)})),'delete');}break;}case c['SetPivotOptionMutation']['id']:case c['SetPivotPositionMutation']['id']:case c[_0x5d91aa(0x4b6)]['id']:case c[_0x5d91aa(0x4f0)]['id']:case c[_0x5d91aa(0x34e)]['id']:case c['RenamePivotFieldMutation']['id']:case c[_0x5d91aa(0x27d)]['id']:case c[_0x5d91aa(0x239)]['id']:case c[_0x5d91aa(0x380)]['id']:case c[_0x5d91aa(0x359)]['id']:case c['SetPivotValueFilterMutation']['id']:case c[_0x5d91aa(0x4a8)]['id']:case c[_0x5d91aa(0x4bf)]['id']:case c[_0x5d91aa(0x2fc)]['id']:case c['SetPivotSubtotalTypeMutation']['id']:{let _0x205990=_0x5d279b,_0x5e780d=_0x5d91aa(0x383);if(_0x581e3a===c[_0x5d91aa(0x522)]['id']?_0x5e780d='setPivotOption':_0x581e3a===c[_0x5d91aa(0x429)]['id']?_0x5e780d='setPivotPosition':_0x581e3a===c[_0x5d91aa(0x4b6)]['id']?_0x5e780d=_0x5d91aa(0x323):_0x581e3a===c[_0x5d91aa(0x4f0)]['id']?_0x5e780d=_0x5d91aa(0x218):_0x581e3a===c[_0x5d91aa(0x34e)]['id']?_0x5e780d=_0x5d91aa(0x2c3):_0x581e3a===c[_0x5d91aa(0x3a6)]['id']?_0x5e780d='renamePivotField':_0x581e3a===c[_0x5d91aa(0x27d)]['id']?_0x5e780d=_0x5d91aa(0x305):_0x581e3a===c[_0x5d91aa(0x239)]['id']?_0x5e780d=_0x5d91aa(0x259):_0x581e3a===c[_0x5d91aa(0x380)]['id']?_0x5e780d=_0x5d91aa(0x301):_0x581e3a===c[_0x5d91aa(0x359)]['id']?_0x5e780d=_0x5d91aa(0x44f):_0x581e3a===c['SetPivotValueFilterMutation']['id']?_0x5e780d='setPivotValueFilter':_0x581e3a===c[_0x5d91aa(0x4a8)]['id']?_0x5e780d=_0x5d91aa(0x1b0):_0x581e3a===c[_0x5d91aa(0x4bf)]['id']?_0x5e780d=_0x5d91aa(0x343):_0x581e3a===c[_0x5d91aa(0x260)]['id']?_0x5e780d=_0x5d91aa(0x254):_0x581e3a===c['SetPivotFieldFormatMutation']['id']&&(_0x5e780d=_0x5d91aa(0x3e8)),_0x205990[_0x5d91aa(0x37f)]&&_0x205990[_0x5d91aa(0x38a)]){var _0xd5505b;let _0xffb457=(_0xd5505b=this[_0x5d91aa(0x51e)][_0x5d91aa(0x255)](_0x205990['unitId'],_0x205990[_0x5d91aa(0x38a)],_0x205990['pivotTableId']))==null?void 0x0:_0xd5505b[_0x5d91aa(0x42a)];_0xffb457&&_0x42f559((0x0,c[_0x5d91aa(0x495)])(_0xffb457)[_0x5d91aa(0x4f3)](_0x5381e4=>({'range':_0x5381e4,'unitId':_0x205990[_0x5d91aa(0x53f)],'subUnitId':_0x205990['subUnitId'],'showText':_0x5e780d})),'update');}break;}case o[_0x5d91aa(0x354)]['id']:{let _0xf32097=_0x5d279b;_0xf32097[_0x5d91aa(0x373)]&&_0x1d26b0['insertDrawings'][_0x5d91aa(0x33a)]({'drawingId':_0xf32097[_0x5d91aa(0x373)],'unitId':_0xf32097['unitId'],'subUnitId':_0xf32097[_0x5d91aa(0x38a)],'showText':_0x4606e7});break;}case o['RemoveSheetsChartMutation']['id']:{let _0x6c2c74=_0x5d279b;_0x6c2c74[_0x5d91aa(0x373)]&&_0x1d26b0['deleteDrawings'][_0x5d91aa(0x33a)]({'drawingId':_0x6c2c74[_0x5d91aa(0x373)],'unitId':_0x6c2c74['unitId'],'subUnitId':_0x6c2c74[_0x5d91aa(0x38a)],'showText':_0x4606e7});break;}case o[_0x5d91aa(0x29f)]['id']:{let _0x57045a=_0x1805cc[_0x5d91aa(0x490)];if(_0x57045a[_0x5d91aa(0x253)]){let _0x29506b=this[_0x5d91aa(0x27b)][_0x5d91aa(0x40b)](_0x57045a['unitId'],_0x57045a['chartModelId']);_0x29506b&&(_0x1d26b0[_0x5d91aa(0x20f)][_0x5d91aa(0x33a)](_0x29506b),_0x1d26b0[_0x5d91aa(0x213)][_0x5d91aa(0x33a)]({'drawingId':_0x57045a[_0x5d91aa(0x253)],'unitId':_0x57045a[_0x5d91aa(0x53f)],'subUnitId':_0x29506b,'showText':_0x4606e7}));}break;}case o[_0x5d91aa(0x4a1)]['id']:{let _0x37e2a8=_0x1805cc[_0x5d91aa(0x490)];if(_0x37e2a8['chartModelId']){let _0x2bc862=this['_sheetsChartService']['getSubUnitId'](_0x37e2a8['unitId'],_0x37e2a8[_0x5d91aa(0x253)]);_0x2bc862&&(_0x1d26b0[_0x5d91aa(0x20f)][_0x5d91aa(0x33a)](_0x2bc862),_0x1d26b0[_0x5d91aa(0x213)][_0x5d91aa(0x33a)]({'drawingId':_0x37e2a8[_0x5d91aa(0x253)],'unitId':_0x37e2a8[_0x5d91aa(0x53f)],'subUnitId':_0x2bc862,'showText':_0x4606e7}));}break;}case l['InsertSheetsShapeMutation']['id']:{let _0x29ca14=_0x5d279b;_0x29ca14['shapeId']&&_0x1d26b0['insertDrawings'][_0x5d91aa(0x33a)]({'drawingId':_0x29ca14[_0x5d91aa(0x181)],'unitId':_0x29ca14['unitId'],'subUnitId':_0x29ca14[_0x5d91aa(0x38a)],'showText':_0x4606e7});break;}case l[_0x5d91aa(0x3b2)]['id']:{let _0x93dbe4=_0x5d279b;_0x93dbe4['shapeId']&&_0x1d26b0[_0x5d91aa(0x45c)][_0x5d91aa(0x33a)]({'drawingId':_0x93dbe4['shapeId'],'unitId':_0x93dbe4['unitId'],'subUnitId':_0x93dbe4[_0x5d91aa(0x38a)],'showText':_0x4606e7});break;}case l[_0x5d91aa(0x3df)]['id']:case l[_0x5d91aa(0x36f)]['id']:{let _0x2b8a85=_0x5d279b;_0x2b8a85[_0x5d91aa(0x181)]&&_0x1d26b0[_0x5d91aa(0x213)][_0x5d91aa(0x33a)]({'drawingId':_0x2b8a85[_0x5d91aa(0x181)],'unitId':_0x2b8a85[_0x5d91aa(0x53f)],'subUnitId':_0x2b8a85[_0x5d91aa(0x38a)],'showText':_0x4606e7});break;}case E['SetDrawingApplyMutation']['id']:{let _0x589e8b=_0x5d279b,_0x30d558=_0x589e8b[_0x5d91aa(0x3e3)],_0x2a5690=_0x589e8b[_0x5d91aa(0x3e4)],_0x386130=_0x2a5690!==E['DrawingApplyType']['INSERT']&&_0x2a5690!==E[_0x5d91aa(0x34b)][_0x5d91aa(0x299)],_0x4b73ce=_0x2a5690===E[_0x5d91aa(0x34b)][_0x5d91aa(0x367)],_0x409dc8=_0x2a5690===E[_0x5d91aa(0x34b)][_0x5d91aa(0x299)],_0x5e596d=_0x4606e7;if(_0x2a5690===E['DrawingApplyType'][_0x5d91aa(0x367)]?_0x5e596d=this['_localeService']['t'](_0x5d91aa(0x1ad)):_0x2a5690===E['DrawingApplyType'][_0x5d91aa(0x299)]&&(_0x5e596d=this[_0x5d91aa(0x268)]['t'](_0x5d91aa(0x1e2))),Array[_0x5d91aa(0x48a)](_0x30d558))_0x30d558['forEach'](_0x2c12da=>{const _0x42527a=_0x5d91aa;if(_0x42527a(0x1a1)in _0x2c12da&&_0x2c12da['drawingId'])_0x386130?_0x1d26b0[_0x42527a(0x213)]['push']({'drawingId':_0x2c12da[_0x42527a(0x1a1)],'unitId':_0x589e8b[_0x42527a(0x53f)],'subUnitId':_0x589e8b[_0x42527a(0x38a)],'showText':_0x5e596d}):_0x4b73ce?_0x1d26b0[_0x42527a(0x176)][_0x42527a(0x33a)]({'drawingId':_0x2c12da[_0x42527a(0x1a1)],'unitId':_0x589e8b[_0x42527a(0x53f)],'subUnitId':_0x589e8b[_0x42527a(0x38a)],'showText':_0x5e596d}):_0x409dc8&&_0x1d26b0[_0x42527a(0x45c)][_0x42527a(0x33a)]({'drawingId':_0x2c12da['drawingId'],'unitId':_0x589e8b[_0x42527a(0x53f)],'subUnitId':_0x589e8b[_0x42527a(0x38a)],'showText':_0x5e596d});else{if(_0x42527a(0x457)in _0x2c12da&&'children'in _0x2c12da){var _0x18681d,_0x45e8e4;(_0x18681d=_0x2c12da[_0x42527a(0x457)])!=null&&_0x18681d[_0x42527a(0x1a1)]&&(_0x386130?_0x1d26b0[_0x42527a(0x213)]['push']({'drawingId':_0x2c12da['parent'][_0x42527a(0x1a1)],'unitId':_0x589e8b[_0x42527a(0x53f)],'subUnitId':_0x589e8b[_0x42527a(0x38a)],'showText':_0x5e596d}):_0x4b73ce?_0x1d26b0['insertDrawings'][_0x42527a(0x33a)]({'drawingId':_0x2c12da[_0x42527a(0x457)][_0x42527a(0x1a1)],'unitId':_0x589e8b[_0x42527a(0x53f)],'subUnitId':_0x589e8b[_0x42527a(0x38a)],'showText':_0x5e596d}):_0x409dc8&&_0x1d26b0[_0x42527a(0x45c)]['push']({'drawingId':_0x2c12da['parent'][_0x42527a(0x1a1)],'unitId':_0x589e8b[_0x42527a(0x53f)],'subUnitId':_0x589e8b['subUnitId'],'showText':_0x5e596d})),(_0x45e8e4=_0x2c12da[_0x42527a(0x1d6)])==null||_0x45e8e4[_0x42527a(0x30e)](_0x374181=>{const _0x38b2a2=_0x42527a;_0x374181['drawingId']&&(_0x386130?_0x1d26b0[_0x38b2a2(0x213)][_0x38b2a2(0x33a)]({'drawingId':_0x374181[_0x38b2a2(0x1a1)],'unitId':_0x589e8b[_0x38b2a2(0x53f)],'subUnitId':_0x589e8b[_0x38b2a2(0x38a)],'showText':_0x5e596d}):_0x4b73ce?_0x1d26b0['insertDrawings'][_0x38b2a2(0x33a)]({'drawingId':_0x374181[_0x38b2a2(0x1a1)],'unitId':_0x589e8b[_0x38b2a2(0x53f)],'subUnitId':_0x589e8b[_0x38b2a2(0x38a)],'showText':_0x5e596d}):_0x409dc8&&_0x1d26b0['deleteDrawings'][_0x38b2a2(0x33a)]({'drawingId':_0x374181['drawingId'],'unitId':_0x589e8b[_0x38b2a2(0x53f)],'subUnitId':_0x589e8b[_0x38b2a2(0x38a)],'showText':_0x5e596d}));});}}});else{if(_0x30d558&&typeof _0x30d558=='object'){if(_0x5d91aa(0x31c)in _0x30d558&&Array[_0x5d91aa(0x48a)](_0x30d558['drawingIds']))_0x30d558[_0x5d91aa(0x31c)][_0x5d91aa(0x30e)](_0x1139fc=>{const _0x54672d=_0x5d91aa;_0x386130?_0x1d26b0[_0x54672d(0x213)][_0x54672d(0x33a)]({'drawingId':_0x1139fc,'unitId':_0x589e8b[_0x54672d(0x53f)],'subUnitId':_0x589e8b[_0x54672d(0x38a)],'showText':_0x5e596d}):_0x4b73ce?_0x1d26b0[_0x54672d(0x176)]['push']({'drawingId':_0x1139fc,'unitId':_0x589e8b['unitId'],'subUnitId':_0x589e8b[_0x54672d(0x38a)],'showText':_0x5e596d}):_0x409dc8&&_0x1d26b0[_0x54672d(0x45c)]['push']({'drawingId':_0x1139fc,'unitId':_0x589e8b[_0x54672d(0x53f)],'subUnitId':_0x589e8b[_0x54672d(0x38a)],'showText':_0x5e596d});});else{if(_0x5d91aa(0x457)in _0x30d558&&_0x5d91aa(0x1d6)in _0x30d558){var _0x169ffb,_0x59530a;(_0x169ffb=_0x30d558['parent'])!=null&&_0x169ffb[_0x5d91aa(0x1a1)]&&(_0x386130?_0x1d26b0[_0x5d91aa(0x213)][_0x5d91aa(0x33a)]({'drawingId':_0x30d558['parent'][_0x5d91aa(0x1a1)],'unitId':_0x589e8b[_0x5d91aa(0x53f)],'subUnitId':_0x589e8b[_0x5d91aa(0x38a)],'showText':_0x5e596d}):_0x4b73ce?_0x1d26b0[_0x5d91aa(0x176)][_0x5d91aa(0x33a)]({'drawingId':_0x30d558[_0x5d91aa(0x457)][_0x5d91aa(0x1a1)],'unitId':_0x589e8b[_0x5d91aa(0x53f)],'subUnitId':_0x589e8b[_0x5d91aa(0x38a)],'showText':_0x5e596d}):_0x409dc8&&_0x1d26b0[_0x5d91aa(0x45c)][_0x5d91aa(0x33a)]({'drawingId':_0x30d558[_0x5d91aa(0x457)][_0x5d91aa(0x1a1)],'unitId':_0x589e8b[_0x5d91aa(0x53f)],'subUnitId':_0x589e8b[_0x5d91aa(0x38a)],'showText':_0x5e596d})),(_0x59530a=_0x30d558[_0x5d91aa(0x1d6)])==null||_0x59530a[_0x5d91aa(0x30e)](_0x2d0937=>{const _0xc2f661=_0x5d91aa;_0x2d0937[_0xc2f661(0x1a1)]&&(_0x386130?_0x1d26b0[_0xc2f661(0x213)][_0xc2f661(0x33a)]({'drawingId':_0x2d0937[_0xc2f661(0x1a1)],'unitId':_0x589e8b[_0xc2f661(0x53f)],'subUnitId':_0x589e8b[_0xc2f661(0x38a)],'showText':_0x5e596d}):_0x4b73ce?_0x1d26b0['insertDrawings'][_0xc2f661(0x33a)]({'drawingId':_0x2d0937['drawingId'],'unitId':_0x589e8b[_0xc2f661(0x53f)],'subUnitId':_0x589e8b[_0xc2f661(0x38a)],'showText':_0x5e596d}):_0x409dc8&&_0x1d26b0['deleteDrawings']['push']({'drawingId':_0x2d0937[_0xc2f661(0x1a1)],'unitId':_0x589e8b[_0xc2f661(0x53f)],'subUnitId':_0x589e8b['subUnitId'],'showText':_0x5e596d}));});}}}}break;}}return _0x1d26b0;}[_0x1f0caa(0x344)](_0x3528ec){const _0x406978=_0x1f0caa;if(_0x3528ec['length']<=0x1)return _0x3528ec;let _0x4d1cc7=new Map();return _0x3528ec[_0x406978(0x30e)](_0x4668b0=>{const _0xfe6a9b=_0x406978;let {unitId:_0x211c63,subUnitId:_0x3d7a98}=_0x4668b0,_0x14a673=_0x211c63+'-'+_0x3d7a98;if(!_0x4d1cc7[_0xfe6a9b(0x35c)](_0x14a673))_0x4d1cc7[_0xfe6a9b(0x520)](_0x14a673,[_0x4668b0]);else{var _0xb6f54b;(_0xb6f54b=_0x4d1cc7['get'](_0x14a673))==null||_0xb6f54b[_0xfe6a9b(0x33a)](_0x4668b0);}}),Array[_0x406978(0x1de)](_0x4d1cc7['values']())[_0x406978(0x4f3)](_0x2b2775=>new t[(_0x406978(0x52e))]()[_0x406978(0x32b)](..._0x2b2775[_0x406978(0x4f3)](_0x129be9=>_0x129be9[_0x406978(0x335)]))[_0x406978(0x345)]()[_0x406978(0x4f3)](_0x22ef1f=>({'range':_0x22ef1f,'unitId':_0x2b2775[0x0][_0x406978(0x53f)],'subUnitId':_0x2b2775[0x0]['subUnitId'],'showText':_0x2b2775[0x0][_0x406978(0x164)],'highlightRow':_0x2b2775[0x0][_0x406978(0x3b5)],'highlightColumn':_0x2b2775[0x0][_0x406978(0x17d)]})))[_0x406978(0x514)]();}};J=W([U(0x0,(0x0,e[_0x1f0caa(0x44b)])(q)),U(0x1,n[_0x1f0caa(0x22d)]),U(0x2,n[_0x1f0caa(0x381)]),U(0x3,(0x0,e['Inject'])(t[_0x1f0caa(0x192)])),U(0x4,(0x0,e[_0x1f0caa(0x44b)])(S['ConditionalFormattingRuleModel'])),U(0x5,(0x0,e['Inject'])(w['SheetDataValidationModel'])),U(0x6,(0x0,e[_0x1f0caa(0x44b)])(O[_0x1f0caa(0x18d)])),U(0x7,(0x0,e[_0x1f0caa(0x44b)])(d['SparklineDataSourceModel'])),U(0x8,(0x0,e[_0x1f0caa(0x44b)])(c[_0x1f0caa(0x4eb)])),U(0x9,(0x0,e[_0x1f0caa(0x44b)])(j[_0x1f0caa(0x3f9)])),U(0xa,(0x0,e['Inject'])(e[_0x1f0caa(0x470)])),U(0xb,(0x0,e[_0x1f0caa(0x44b)])(o[_0x1f0caa(0x453)])),U(0xc,(0x0,e[_0x1f0caa(0x44b)])(G)),U(0xd,e[_0x1f0caa(0x4ce)])],J);function Se(_0x5e6e37){const _0x542030=_0x1f0caa;return new e[(_0x542030(0x18a))](_0x5e6e37)[_0x542030(0x494)]();}function Ce(_0xa221e4){const _0x224290=_0x1f0caa;let _0x91ad4e=new e['ObjectMatrix'](_0xa221e4),_0x32fd25=new e[(_0x224290(0x18a))]();return _0x91ad4e['forValue']((_0x32c0ff,_0x98e94f)=>{const _0x5ec0f0=_0x224290;_0x32fd25[_0x5ec0f0(0x4d4)](_0x32c0ff,_0x98e94f,0x1);}),(0x0,t['findAllRectangle'])(_0x32fd25);}const we=[{'key':0x0,'labelKey':'sheets-history-ui.viewer.panel.filterAll'},{'key':0x1,'labelKey':'sheets-history-ui.viewer.panel.filterUser'},{'key':0x2,'labelKey':_0x1f0caa(0x4d0)}];function Te(_0x1a95ba){const _0x2b6302=_0x1f0caa;let {value:_0x570572,onChange:_0x272714}=_0x1a95ba,_0x4476da=(0x0,N[_0x2b6302(0x4cc)])(e[_0x2b6302(0x470)]),_0x272171=we[_0x2b6302(0x4f3)](_0x3508c5=>({'label':_0x4476da['t'](_0x3508c5[_0x2b6302(0x527)]),'value':_0x3508c5[_0x2b6302(0x393)]}));return(0x0,R[_0x2b6302(0x328)])(_0x2b6302(0x30b),{'className':_0x2b6302(0x504),'children':(0x0,R[_0x2b6302(0x328)])(m['Segmented'],{'items':_0x272171,'value':_0x570572,'onChange':_0x272714})});}function Ee(){const _0x2ba6cb=_0x1f0caa;var _0x32ba01;let _0xb19ee4=(0x0,N[_0x2ba6cb(0x4cc)])(q),_0x458c82=(0x0,N[_0x2ba6cb(0x4cc)])(G),_0x2d8f6f=(0x0,N[_0x2ba6cb(0x4cc)])(J),_0x23fb3e=(0x0,N['useDependency'])(e[_0x2ba6cb(0x41d)]),_0x1a210f=(0x0,N[_0x2ba6cb(0x212)])(_0xb19ee4['versions$']),_0x242613=(0x0,N['useObservable'])(_0xb19ee4[_0x2ba6cb(0x389)],[]),[_0x585960,_0x554508]=(0x0,I[_0x2ba6cb(0x20b)])(()=>new Set()),[_0x4d5782,_0x451551]=(0x0,I[_0x2ba6cb(0x20b)])(()=>new Map()),[_0x57f5e6,_0xc543eb]=(0x0,I['useState'])(()=>new Set()),[_0x3bb75f,_0x5b3f75]=(0x0,I[_0x2ba6cb(0x20b)])(0x0),_0x266105=(0x0,N[_0x2ba6cb(0x4cc)])(e['LocaleService']),_0x299b74=(0x0,I[_0x2ba6cb(0x533)])(null),[_0x3b3a3a,_0xeae8cf]=(0x0,I[_0x2ba6cb(0x20b)])(!0x1),[_0x1aa5a6,_0xe45c03]=(0x0,I[_0x2ba6cb(0x20b)])([]),_0x27ab0d=((_0x32ba01=_0x23fb3e[_0x2ba6cb(0x41e)](_0x2ba6cb(0x4fd)))==null?void 0x0:_0x32ba01[_0x2ba6cb(0x2f1)])??!0x1,_0x22b1e4=be(_0x1a210f),[_0x553a78,_0x5b4dca]=(0x0,I[_0x2ba6cb(0x20b)])([]),_0x54261d=(0x0,I[_0x2ba6cb(0x336)])(()=>_0x242613[_0x2ba6cb(0x4f3)](_0x4bc277=>({'key':_0x4bc277[_0x2ba6cb(0x295)],'label':_0x4bc277[_0x2ba6cb(0x187)]})),[_0x242613]);(0x0,I[_0x2ba6cb(0x348)])(()=>{const _0x38ca63=_0x2ba6cb;_0xb19ee4[_0x38ca63(0x245)]()[_0x38ca63(0x3e2)](()=>void 0x0);},[_0xb19ee4]);let _0x44f900=(0x0,I[_0x2ba6cb(0x394)])(_0x4c5736=>{const _0x21c937=_0x2ba6cb;_0x5b4dca([]),_0x5b3f75(_0x4c5736),_0xb19ee4[_0x21c937(0x53f)]&&_0xb19ee4[_0x21c937(0x1c7)](_0xb19ee4[_0x21c937(0x53f)],{'origin':_0x4c5736})[_0x21c937(0x3e2)](()=>void 0x0);},[_0xb19ee4]);(0x0,I[_0x2ba6cb(0x348)])(()=>{const _0x191167=_0x2ba6cb;let _0x439823=_0x299b74['current'];if(!_0x439823)return;let _0x54a6fa,_0x5e7d49=()=>{clearTimeout(_0x54a6fa),_0x54a6fa=setTimeout(()=>{const _0xe2b5a1=_0x1a9f;let {scrollTop:_0x481b17,scrollHeight:_0x1151a4,clientHeight:_0x53a387}=_0x439823;_0x481b17+_0x53a387>=_0x1151a4-0x5&&_0xb19ee4['loadMoreVersions']()[_0xe2b5a1(0x3e2)](()=>void 0x0);},0x64);};return _0x439823[_0x191167(0x36a)](_0x191167(0x1ce),_0x5e7d49),()=>{const _0x5c4e9b=_0x191167;clearTimeout(_0x54a6fa),_0x439823['removeEventListener'](_0x5c4e9b(0x1ce),_0x5e7d49);};},[_0xb19ee4]);let _0x2084c5=(0x0,I[_0x2ba6cb(0x394)])(async _0x46cdc8=>{const _0x5bf26d=_0x2ba6cb;let _0x34090a=_0x46cdc8['id'];if(_0x585960['has'](_0x34090a)){_0x554508(_0x8c1755=>{const _0x4d27c9=_0x1a9f;let _0x22b0c=new Set(_0x8c1755);return _0x22b0c[_0x4d27c9(0x4b5)](_0x34090a),_0x22b0c;});return;}if(_0x4d5782[_0x5bf26d(0x35c)](_0x34090a)){_0x554508(_0x588e54=>new Set(_0x588e54)[_0x5bf26d(0x32b)](_0x34090a));return;}_0xc543eb(_0x361050=>new Set(_0x361050)[_0x5bf26d(0x32b)](_0x34090a));try{var _0x526e05;let _0xe73e65=_0xb19ee4[_0x5bf26d(0x53f)];if(!_0xe73e65)return;let _0xda058d=await _0x458c82[_0x5bf26d(0x37d)]({},{'unitId':_0xe73e65,'startRevision':_0x46cdc8[_0x5bf26d(0x4e0)],'endRevision':_0x46cdc8[_0x5bf26d(0x388)]});if(((_0x526e05=_0xda058d[_0x5bf26d(0x42d)])==null?void 0x0:_0x526e05['code'])===0x1&&_0xda058d['changesets']){let _0x57464d=_0xda058d[_0x5bf26d(0x1b1)][_0x5bf26d(0x360)]()[_0x5bf26d(0x4f3)](_0x51096d=>{const _0x29ace9=_0x5bf26d;var _0x274c69,_0x58b5e6;let _0x41da02=(0x0,n[_0x29ace9(0x534)])(_0x51096d),_0x23f546=_0x51096d[_0x29ace9(0x32d)]||_0x41da02[_0x29ace9(0x32d)],_0x5f429c=(_0x274c69=_0xda058d[_0x29ace9(0x461)])==null?void 0x0:_0x274c69[_0x23f546],_0x3f83e0=((_0x58b5e6=_0x51096d[_0x29ace9(0x3e0)])==null?void 0x0:_0x58b5e6[_0x29ace9(0x4f3)](_0x437eea=>_0x437eea['id']))||[];return{'id':_0x34090a+_0x29ace9(0x385)+_0x51096d[_0x29ace9(0x487)],'unitId':_0x51096d[_0x29ace9(0x449)],'startRev':_0x51096d[_0x29ace9(0x487)],'endRev':_0x51096d[_0x29ace9(0x487)],'time':_0x51096d[_0x29ace9(0x4f9)]?_0x51096d['createTime']*0x3e8:void 0x0,'user':(_0x5f429c==null?void 0x0:_0x5f429c[_0x29ace9(0x187)])||'','users':[(_0x5f429c==null?void 0x0:_0x5f429c[_0x29ace9(0x187)])||''],'commands':_0x3f83e0,'isAnonymous':!0x1,'isDetail':!0x0,'parentId':_0x34090a,'additionalFields':_0x51096d[_0x29ace9(0x49c)]};});_0x451551(_0x11bdff=>new Map(_0x11bdff)[_0x5bf26d(0x520)](_0x34090a,_0x57464d)),_0x57464d['forEach'](_0xe1ad85=>{const _0x18702b=_0x5bf26d;_0xb19ee4[_0x18702b(0x41a)](_0xe1ad85);});for(let _0x18b2d3 of _0x57464d)await _0x2d8f6f[_0x5bf26d(0x180)](_0x18b2d3['id']);_0x554508(_0x3cc6ab=>new Set(_0x3cc6ab)[_0x5bf26d(0x32b)](_0x34090a));}}catch(_0x5b475e){console[_0x5bf26d(0x42d)](_0x5bf26d(0x1f1),_0x5b475e);}finally{_0xc543eb(_0x357347=>{const _0x2fc662=_0x5bf26d;let _0x4f2299=new Set(_0x357347);return _0x4f2299[_0x2fc662(0x4b5)](_0x34090a),_0x4f2299;});}},[_0x585960,_0x4d5782,_0xb19ee4,_0x458c82,_0x2d8f6f]);return _0x1a210f?(0x0,R['jsxs'])(_0x2ba6cb(0x30b),{'ref':_0x299b74,'className':_0x2ba6cb(0x4b9),'children':[_0x27ab0d&&(0x0,R['jsxs'])(_0x2ba6cb(0x30b),{'className':'univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-bg-gray-0\x20dark:!univer-bg-gray-200','children':[(0x0,R[_0x2ba6cb(0x328)])(_0x2ba6cb(0x30b),{'className':_0x2ba6cb(0x4a9),'children':(0x0,R[_0x2ba6cb(0x328)])(Te,{'value':_0x3bb75f,'onChange':_0x44f900})}),(0x0,R[_0x2ba6cb(0x328)])(m[_0x2ba6cb(0x237)],{'align':_0x2ba6cb(0x28d),'open':_0x3b3a3a,'onOpenChange':_0x1a09ff=>{_0xeae8cf(_0x1a09ff),_0x1a09ff&&_0xe45c03(_0x553a78);},'overlay':(0x0,R['jsxs'])(_0x2ba6cb(0x30b),{'className':_0x2ba6cb(0x4cf),'children':[(0x0,R[_0x2ba6cb(0x328)])('div',{'className':'univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-font-semibold','children':_0x266105['t'](_0x2ba6cb(0x356))}),(0x0,R[_0x2ba6cb(0x328)])(_0x2ba6cb(0x30b),{'className':'univer-border-t\x20univer-border-gray-200\x20dark:!univer-border-gray-700'}),(0x0,R[_0x2ba6cb(0x328)])('div',{'className':_0x2ba6cb(0x525),'children':_0x54261d[_0x2ba6cb(0x4f3)](_0x1c2696=>{const _0x3ce1ab=_0x2ba6cb;let _0x473607=_0x1aa5a6['includes'](_0x1c2696[_0x3ce1ab(0x393)]);return(0x0,R[_0x3ce1ab(0x28e)])(_0x3ce1ab(0x30b),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-px-3\x20univer-py-2\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-800','onClick':()=>{const _0x2e8b9c=_0x3ce1ab;let _0x42b074=_0x473607?_0x1aa5a6[_0x2e8b9c(0x463)](_0x2caa63=>_0x2caa63!==_0x1c2696[_0x2e8b9c(0x393)]):[..._0x1aa5a6,_0x1c2696['key']];_0xe45c03(_0x42b074);},'children':[(0x0,R['jsx'])(m[_0x3ce1ab(0x403)],{'checked':_0x473607}),(0x0,R[_0x3ce1ab(0x328)])(_0x3ce1ab(0x2bc),{'className':_0x3ce1ab(0x378),'children':_0x1c2696[_0x3ce1ab(0x1b3)]})]},_0x1c2696['key']);})}),(0x0,R['jsx'])(_0x2ba6cb(0x30b),{'className':_0x2ba6cb(0x30f)}),(0x0,R[_0x2ba6cb(0x28e)])(_0x2ba6cb(0x30b),{'className':_0x2ba6cb(0x2eb),'children':[(0x0,R[_0x2ba6cb(0x328)])(m[_0x2ba6cb(0x43d)],{'variant':_0x2ba6cb(0x16b),'onClick':()=>{_0xe45c03(_0x553a78),_0xeae8cf(!0x1);},'children':_0x266105['t']('sheets-history-ui.viewer.panel.filterCollaboratorCancel')}),(0x0,R['jsx'])(m[_0x2ba6cb(0x43d)],{'onClick':()=>{const _0x5461b3=_0x2ba6cb;_0x5b4dca(_0x1aa5a6),_0xb19ee4['unitId']&&_0xb19ee4[_0x5461b3(0x1c7)](_0xb19ee4['unitId'],{'origin':_0x3bb75f,'userIds':_0x1aa5a6})[_0x5461b3(0x3e2)](()=>void 0x0),_0xeae8cf(!0x1);},'children':_0x266105['t'](_0x2ba6cb(0x24d))})]})]}),'children':(0x0,R['jsx'])(m[_0x2ba6cb(0x43d)],{'variant':'ghost','children':(0x0,R[_0x2ba6cb(0x328)])(F[_0x2ba6cb(0x2e6)],{'className':(0x0,m[_0x2ba6cb(0x333)])('univer-size-4',{'univer-text-blue-600\x20dark:!univer-text-blue-400':_0x553a78[_0x2ba6cb(0x446)]>0x0})})})})]}),(0x0,R[_0x2ba6cb(0x328)])('div',{'className':'univer-relative\x20univer-flex-1\x20univer-space-y-2\x20univer-pb-4','children':_0x22b1e4['map'](_0x54ad60=>(0x0,R[_0x2ba6cb(0x28e)])(I[_0x2ba6cb(0x290)],{'children':[(0x0,R[_0x2ba6cb(0x328)])(Oe,{'date':_0x54ad60[_0x2ba6cb(0x286)],'startDate':_0x54ad60[_0x2ba6cb(0x3b9)],'endDate':_0x54ad60[_0x2ba6cb(0x35e)]}),_0x54ad60[_0x2ba6cb(0x526)][_0x2ba6cb(0x4f3)](_0x4daec6=>{const _0x469e6f=_0x2ba6cb;let _0xbea724=_0x585960[_0x469e6f(0x35c)](_0x4daec6['id']),_0x3bb03c=_0x57f5e6[_0x469e6f(0x35c)](_0x4daec6['id']),_0x42f28c=_0x4d5782[_0x469e6f(0x167)](_0x4daec6['id'])||[];return(0x0,R['jsxs'])(I[_0x469e6f(0x290)],{'children':[(0x0,R[_0x469e6f(0x328)])(ke,{'item':_0x4daec6,'onToggleExpand':_0x2084c5,'isExpanded':_0xbea724,'isLoadingDetail':_0x3bb03c}),_0xbea724&&_0x42f28c[_0x469e6f(0x4f3)]((_0x1ce0f7,_0x288e37)=>(0x0,R[_0x469e6f(0x28e)])('div',{'className':_0x469e6f(0x3a0),'children':[(0x0,R['jsxs'])(_0x469e6f(0x30b),{'className':_0x469e6f(0x50f),'children':[_0x288e37<_0x42f28c[_0x469e6f(0x446)]-0x1&&(0x0,R['jsx'])(_0x469e6f(0x30b),{'className':_0x469e6f(0x1d9)}),_0x288e37===_0x42f28c[_0x469e6f(0x446)]-0x1&&(0x0,R[_0x469e6f(0x328)])(_0x469e6f(0x30b),{'className':'univer-absolute\x20univer-left-0\x20univer-top-0\x20univer-h-1/2\x20univer-w-px\x20univer-bg-gray-100\x20rtl:univer-left-auto\x20rtl:univer-right-0\x20dark:!univer-bg-gray-800'}),(0x0,R[_0x469e6f(0x328)])(_0x469e6f(0x30b),{'className':_0x469e6f(0x36d)})]}),(0x0,R[_0x469e6f(0x328)])(ke,{'item':_0x1ce0f7,'isDetail':!0x0})]},_0x4daec6['id']+_0x469e6f(0x385)+_0x1ce0f7['id']))]},_0x4daec6['id']);})]},_0x54ad60[_0x2ba6cb(0x286)]))})]}):(0x0,R[_0x2ba6cb(0x328)])(De,{});}function De(){const _0x48c360=_0x1f0caa;return(0x0,R[_0x48c360(0x328)])(_0x48c360(0x30b),{'className':'univer-flex\x20univer-items-center\x20univer-justify-center','children':(0x0,R[_0x48c360(0x328)])('span',{'className':_0x48c360(0x170),'children':(0x0,R[_0x48c360(0x328)])(F[_0x48c360(0x221)],{'className':_0x48c360(0x517)})})});}function Oe(_0x3b6295){const _0x14b37f=_0x1f0caa;let _0x455ea5=(0x0,N['useDependency'])(e['LocaleService']),{date:_0x28e180,startDate:_0x279625=_0x28e180}=_0x3b6295;return(0x0,R['jsx'])(_0x14b37f(0x30b),{'className':_0x14b37f(0x46f),'children':ye(_0x279625,_0x455ea5)});}function ke(_0x212ee6){const _0x5dc2f0=_0x1f0caa;let {item:_0x274abe,onToggleExpand:_0x19e574,isExpanded:_0xa73bf6,isLoadingDetail:_0x4a96a8,isDetail:_0x317e32}=_0x212ee6,{time:_0x22e14d,user:_0x35b269,startRevCreateTime:_0x1a1af7,endRevCreateTime:_0x9c4462,users:_0x41590a}=_0x274abe,_0x543656=(0x0,N[_0x5dc2f0(0x4cc)])(q),_0x173881=(0x0,N[_0x5dc2f0(0x4cc)])(J),_0xf249ab=(0x0,N[_0x5dc2f0(0x212)])(_0x543656['currentVersion$'],'',!0x0)===_0x274abe['id'],_0x40655c=_0x543656['getCurrentUnitCurrentVersion']()===_0x274abe[_0x5dc2f0(0x388)],_0x30e472=!_0x40655c&&_0x543656[_0x5dc2f0(0x370)],_0x430947=(0x0,N[_0x5dc2f0(0x4cc)])(e[_0x5dc2f0(0x470)]),_0x468adf=K(_0x22e14d,_0x430947),_0x1b7508=K(_0x1a1af7,_0x430947),_0x46c4ab=K(_0x9c4462,_0x430947),_0x4ddf9d=_0x430947['t']('sheets-history-ui.viewer.panel.currentVersion'),_0x1a9cb7=_0x274abe['startRev']!==_0x274abe['endRev'],_0x152593=!!_0x274abe[_0x5dc2f0(0x49c)],_0x20889a=(0x0,I[_0x5dc2f0(0x336)])(()=>{const _0x28cca0=_0x5dc2f0;let _0x4d61c5=_0x35b269||_0x430947['t'](_0x28cca0(0x246));return _0x41590a&&_0x41590a[_0x28cca0(0x463)](_0x463368=>_0x463368)[_0x28cca0(0x446)]>0x0&&(_0x4d61c5=_0x41590a[_0x28cca0(0x463)](_0x2e4b0a=>_0x2e4b0a)[_0x28cca0(0x443)](',\x20')),_0x152593?''+_0x430947['t'](_0x28cca0(0x27c))+(_0x4d61c5?'\x20('+_0x4d61c5+')':''):_0x4d61c5;},[_0x152593,_0x35b269,_0x41590a,_0x430947]),_0x1a76d8=(0x0,I[_0x5dc2f0(0x394)])(async _0x23bc56=>{const _0x45e691=_0x5dc2f0;_0x543656['loadingState']!==_0x45e691(0x386)&&(_0x543656[_0x45e691(0x189)](_0x23bc56),_0x317e32&&(await _0x173881['ensureVersion'](_0x23bc56),await _0x543656[_0x45e691(0x47f)](_0x23bc56)));},[_0x543656,_0x173881,_0x317e32]),_0x3a2357=(0x0,I[_0x5dc2f0(0x394)])(_0x520587=>{const _0x446841=_0x5dc2f0;_0x543656[_0x446841(0x4ad)](_0x520587)[_0x446841(0x3e2)](()=>void 0x0);},[_0x543656]),_0x3e6880=(0x0,I[_0x5dc2f0(0x394)])(_0x46243b=>{const _0xea77ad=_0x5dc2f0;_0x46243b['stopPropagation'](),_0x19e574&&!_0x4a96a8&&_0x19e574(_0x274abe)[_0xea77ad(0x3e2)](()=>void 0x0);},[_0x19e574,_0x274abe,_0x4a96a8]),_0x38c6ef=(0x0,R[_0x5dc2f0(0x328)])(F['MoreRightIcon'],{'className':_0x5dc2f0(0x162)});_0x4a96a8?_0x38c6ef=(0x0,R['jsx'])(F['LoadingMultiIcon'],{'className':_0x5dc2f0(0x37e)}):_0xa73bf6&&(_0x38c6ef=(0x0,R[_0x5dc2f0(0x328)])(F[_0x5dc2f0(0x3cf)],{'className':_0x5dc2f0(0x163)}));let _0x3cd04e=_0x1b7508[_0x5dc2f0(0x523)];return _0x317e32?_0x3cd04e=_0x468adf[_0x5dc2f0(0x523)]:_0x1a1af7!==_0x9c4462&&(_0x3cd04e=_0x1b7508['time']+_0x5dc2f0(0x50d)+_0x46c4ab[_0x5dc2f0(0x523)]),(0x0,R[_0x5dc2f0(0x28e)])(_0x5dc2f0(0x30b),{'className':(0x0,m[_0x5dc2f0(0x333)])(_0x5dc2f0(0x407),{'univer-bg-gray-50\x20dark:!univer-bg-gray-900':_0xf249ab,'univer-ml-6\x20rtl:univer-ml-0\x20rtl:univer-mr-6':_0x317e32}),'onClick':()=>_0x1a76d8(_0x274abe['id'])[_0x5dc2f0(0x3e2)](()=>void 0x0),'children':[(0x0,R[_0x5dc2f0(0x328)])(_0x5dc2f0(0x30b),{'className':_0x5dc2f0(0x249),'children':_0x1a9cb7&&!_0x317e32&&(0x0,R[_0x5dc2f0(0x328)])('div',{'onClick':_0x3e6880,'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x38c6ef})}),(0x0,R['jsxs'])('div',{'className':'univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-gap-1','children':[(0x0,R[_0x5dc2f0(0x28e)])(_0x5dc2f0(0x30b),{'className':_0x5dc2f0(0x413),'children':[(0x0,R['jsxs'])(_0x5dc2f0(0x30b),{'className':_0x5dc2f0(0x214),'children':[_0x152593&&(0x0,R[_0x5dc2f0(0x328)])(F[_0x5dc2f0(0x1ee)],{'className':_0x5dc2f0(0x274)}),(0x0,R['jsx'])(_0x5dc2f0(0x2bc),{'className':_0x5dc2f0(0x3f5),'children':_0x20889a}),(0x0,R['jsx'])(_0x5dc2f0(0x2bc),{'className':_0x5dc2f0(0x2f2),'children':_0x3cd04e}),_0x40655c&&(0x0,R['jsx'])(_0x5dc2f0(0x2bc),{'className':'univer-ml-1\x20univer-flex\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border\x20univer-border-primary-600\x20univer-bg-primary-50\x20univer-px-1.5\x20univer-text-xs\x20univer-text-primary-600','children':_0x4ddf9d})]}),(0x0,R['jsx'])(_0x5dc2f0(0x30b),{'children':_0x30e472&&(0x0,R[_0x5dc2f0(0x328)])(m['Tooltip'],{'title':_0x430947['t'](_0x5dc2f0(0x462)),'children':(0x0,R[_0x5dc2f0(0x328)])('div',{'onClick':_0x63b527=>{const _0x6f1d82=_0x5dc2f0;_0x63b527[_0x6f1d82(0x530)](),_0x3a2357(_0x274abe['id']);},'className':_0x5dc2f0(0x2a5),'children':(0x0,R[_0x5dc2f0(0x328)])(F['RestoreIcon'],{})})})})]}),(0x0,R[_0x5dc2f0(0x328)])(_0x5dc2f0(0x30b),{'className':_0x5dc2f0(0x3dd),'children':_e(_0x274abe,_0x430947)})]})]});}let Y=class extends e[_0x1f0caa(0x3d8)]{constructor(_0x5adcd0,_0x5b2780){const _0x38c3d0=_0x1f0caa;super(),this[_0x38c3d0(0x2e1)](_0x5adcd0['register'](ae,Ee)),this[_0x38c3d0(0x2e1)](_0x5b2780[_0x38c3d0(0x428)]({'HistoryIcon':F[_0x38c3d0(0x26d)]}));}};Y=W([U(0x0,(0x0,e[_0x1f0caa(0x44b)])(N[_0x1f0caa(0x1db)])),U(0x1,(0x0,e[_0x1f0caa(0x44b)])(N[_0x1f0caa(0x277)]))],Y);let X=class extends e['Disposable']{constructor(_0x42cf7b){const _0x9f3e10=_0x1f0caa;super(),this[_0x9f3e10(0x25a)]=_0x42cf7b,this[_0x9f3e10(0x3b8)]();}['_init'](){const _0xd96ced=_0x1f0caa;this[_0xd96ced(0x2e1)](this[_0xd96ced(0x25a)][_0xd96ced(0x1dd)][_0xd96ced(0x205)](_0x5d9d7a=>{const _0x39f04f=_0xd96ced;_0x5d9d7a!=null&&_0x5d9d7a[_0x39f04f(0x2ec)]&&this['_cellEditorManagerService'][_0x39f04f(0x365)]({'show':!0x1});}));}};X=W([U(0x0,M[_0x1f0caa(0x1d7)])],X);function Ae(){const _0x5d1e91=_0x1f0caa;let _0x6b1464=(0x0,N[_0x5d1e91(0x4cc)])(q),_0x881729=(0x0,N['useDependency'])(e[_0x5d1e91(0x470)]);if((0x0,N['useObservable'])(_0x6b1464['loadingState$'],'init')!==_0x5d1e91(0x386))return null;let _0x393718=_0x881729['t'](_0x5d1e91(0x2f7));return(0x0,R[_0x5d1e91(0x328)])(_0x5d1e91(0x30b),{'aria-busy':_0x5d1e91(0x375),'aria-label':_0x393718,'className':'univer-bg-gray-0/70\x20dark:!univer-bg-gray-900/70\x20univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-flex\x20univer-cursor-wait\x20univer-items-center\x20univer-justify-center\x20univer-backdrop-blur-sm','children':(0x0,R['jsxs'])('div',{'role':_0x5d1e91(0x2bf),'aria-live':_0x5d1e91(0x17b),'className':_0x5d1e91(0x217),'children':[(0x0,R[_0x5d1e91(0x328)])(F[_0x5d1e91(0x221)],{'className':'univer-size-6\x20univer-animate-spin\x20univer-text-gray-500'}),(0x0,R['jsx'])('span',{'children':_0x393718})]})});}function je(){const _0x37e7cd=_0x1f0caa;let _0x42e86c=(0x0,N['useDependency'])(q),_0x123452=(0x0,N['useDependency'])(e['LocaleService']),_0x2687b2=(0x0,N['useObservable'])(_0x42e86c['currentVersion$']),_0x17c8f1=(0x0,I['useMemo'])(()=>_0x2687b2?_0x42e86c[_0x37e7cd(0x50c)]():!0x1,[_0x42e86c,_0x2687b2]),_0x22e555=(0x0,I[_0x37e7cd(0x394)])(()=>{const _0x1f8421=_0x37e7cd;_0x42e86c[_0x1f8421(0x293)]();},[_0x42e86c]),_0x10dc35=(0x0,I[_0x37e7cd(0x394)])(()=>{const _0x3648c3=_0x37e7cd;_0x42e86c[_0x3648c3(0x4ad)]();},[_0x42e86c]);return(0x0,R['jsxs'])(_0x37e7cd(0x30b),{'className':(0x0,m[_0x37e7cd(0x333)])('univer-flex\x20univer-h-12\x20univer-cursor-default\x20univer-items-center\x20univer-justify-between\x20univer-px-3',m[_0x37e7cd(0x4bc)]),'children':[(0x0,R[_0x37e7cd(0x28e)])(m[_0x37e7cd(0x43d)],{'onClick':_0x22e555,'children':[(0x0,R[_0x37e7cd(0x328)])(F[_0x37e7cd(0x4bd)],{'className':_0x37e7cd(0x23e)}),_0x123452['t'](_0x37e7cd(0x466))]}),(0x0,R[_0x37e7cd(0x328)])(m[_0x37e7cd(0x43d)],{'variant':_0x37e7cd(0x3c2),'disabled':!_0x17c8f1,'onClick':_0x10dc35,'children':_0x123452['t'](_0x37e7cd(0x250))})]});}let Me=class extends e['Disposable']{constructor(_0xadaa3e,_0x3edd8d,_0x45f377,_0x4c7cd2,_0x23630f,_0x1ce6fc,_0x2416b1){const _0x56f98f=_0x1f0caa;super(),this[_0x56f98f(0x193)]=_0xadaa3e,this['_uiPartsService']=_0x3edd8d,this[_0x56f98f(0x498)]=_0x45f377,this['_localeService']=_0x4c7cd2,this[_0x56f98f(0x337)]=_0x23630f,this['_injector']=_0x1ce6fc,this[_0x56f98f(0x536)]=_0x2416b1,this[_0x56f98f(0x3b8)]();}[_0x1f0caa(0x3b8)](){const _0x3cf87b=_0x1f0caa;this[_0x3cf87b(0x2e1)](this[_0x3cf87b(0x337)][_0x3cf87b(0x3bb)]['subscribe'](_0x4bbafe=>{const _0x46aa26=_0x3cf87b;_0x4bbafe&&this[_0x46aa26(0x337)][_0x46aa26(0x47f)](_0x4bbafe);})),this[_0x3cf87b(0x2e1)](this[_0x3cf87b(0x193)][_0x3cf87b(0x1f4)]['subscribe'](_0x36f765=>{const _0x29ae00=_0x3cf87b;let _0x51321a=this[_0x29ae00(0x337)][_0x29ae00(0x53f)];_0x51321a&&(_0x36f765['subType']===L[_0x29ae00(0x183)][_0x29ae00(0x346)]&&_0x36f765[_0x29ae00(0x2a0)]===!0x0&&this[_0x29ae00(0x193)][_0x29ae00(0x307)](new t[(_0x29ae00(0x4b4))](_0x51321a)['id'],!0x1),_0x36f765['subType']===L[_0x29ae00(0x183)][_0x29ae00(0x49b)]&&_0x36f765['value']===!0x0&&this[_0x29ae00(0x193)][_0x29ae00(0x307)](new t[(_0x29ae00(0x194))](_0x51321a)['id'],!0x1),_0x36f765[_0x29ae00(0x26e)]===L[_0x29ae00(0x183)][_0x29ae00(0x3be)]&&_0x36f765['value']===!0x0&&this[_0x29ae00(0x193)][_0x29ae00(0x307)](new t[(_0x29ae00(0x4a3))](_0x51321a)['id'],!0x1),_0x36f765['subType']===L[_0x29ae00(0x183)][_0x29ae00(0x15f)]&&_0x36f765[_0x29ae00(0x2a0)]===!0x0&&this['_permissionService']['updatePermissionPoint'](new t[(_0x29ae00(0x3e5))](_0x51321a)['id'],!0x1),_0x36f765[_0x29ae00(0x26e)]===L[_0x29ae00(0x183)][_0x29ae00(0x1f3)]&&_0x36f765['value']===!0x0&&this[_0x29ae00(0x193)][_0x29ae00(0x307)](new t[(_0x29ae00(0x4b4))](_0x51321a)['id'],!0x1),_0x36f765[_0x29ae00(0x26e)]===L[_0x29ae00(0x183)][_0x29ae00(0x51d)]&&_0x36f765[_0x29ae00(0x2a0)]===!0x0&&this['_permissionService'][_0x29ae00(0x307)](new t[(_0x29ae00(0x4b4))](_0x51321a)['id'],!0x1));})),this[_0x3cf87b(0x26c)](),this[_0x3cf87b(0x4f8)]();let _0x2e47a7=null;this[_0x3cf87b(0x2e1)]((0x0,e[_0x3cf87b(0x241)])(()=>_0x2e47a7==null?void 0x0:_0x2e47a7['dispose']())),this[_0x3cf87b(0x2e1)](this[_0x3cf87b(0x337)][_0x3cf87b(0x427)][_0x3cf87b(0x205)](_0x1cd611=>{const _0xbdf982=_0x3cf87b;_0x2e47a7==null||_0x2e47a7[_0xbdf982(0x521)](),_0x2e47a7=null,_0x1cd611===_0xbdf982(0x386)&&(_0x2e47a7=this[_0xbdf982(0x498)]['show']({'type':m[_0xbdf982(0x40a)][_0xbdf982(0x3b6)],'content':this[_0xbdf982(0x268)]['t'](_0xbdf982(0x2f7)),'duration':0x3e8}));}));}[_0x1f0caa(0x26c)](){const _0x3cb526=_0x1f0caa;var _0x14540c;(_0x14540c=this[_0x3cb526(0x536)]['getConfig'](_0x3cb526(0x4fd)))!=null&&_0x14540c[_0x3cb526(0x540)]||this[_0x3cb526(0x2e1)](this[_0x3cb526(0x283)][_0x3cb526(0x28c)](N[_0x3cb526(0x36c)]['HEADER'],()=>(0x0,N['connectInjector'])(je,this[_0x3cb526(0x20d)])));}[_0x1f0caa(0x4f8)](){const _0x37be2f=_0x1f0caa;this[_0x37be2f(0x2e1)](this[_0x37be2f(0x283)][_0x37be2f(0x28c)](N[_0x37be2f(0x36c)][_0x37be2f(0x518)],()=>(0x0,N[_0x37be2f(0x40d)])(Ae,this[_0x37be2f(0x20d)])));}};Me=W([U(0x0,e['IPermissionService']),U(0x1,N[_0x1f0caa(0x44a)]),U(0x2,N[_0x1f0caa(0x454)]),U(0x3,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x470)])),U(0x4,(0x0,e['Inject'])(q)),U(0x5,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x404)])),U(0x6,e[_0x1f0caa(0x41d)])],Me);const Ne={'insert':_0x1f0caa(0x4d6),'delete':_0x1f0caa(0x49f),'update':_0x1f0caa(0x4c4)};let Pe=class extends e['Disposable']{constructor(_0xb2a4ea){const _0x25f8d6=_0x1f0caa;super(),this[_0x25f8d6(0x447)]=_0xb2a4ea,H(this,_0x25f8d6(0x37c),void 0x0),H(this,'palette$',void 0x0),this[_0x25f8d6(0x37c)]=new P[(_0x25f8d6(0x1fa))](this['_createPalette']()),this[_0x25f8d6(0x1ae)]=this['_palette$']['asObservable'](),this[_0x25f8d6(0x2e1)](this[_0x25f8d6(0x447)][_0x25f8d6(0x25f)][_0x25f8d6(0x387)]((0x0,P[_0x25f8d6(0x21d)])(0x1))[_0x25f8d6(0x205)](()=>{const _0x456150=_0x25f8d6;this[_0x456150(0x37c)][_0x456150(0x1d0)](this[_0x456150(0x3ff)]());})),this[_0x25f8d6(0x2e1)]((0x0,e[_0x25f8d6(0x241)])(()=>this['_palette$'][_0x25f8d6(0x4cb)]()));}[_0x1f0caa(0x3ff)](){const _0x3dcac5=_0x1f0caa;return{'insert':this['_createStyle'](_0x3dcac5(0x1eb)),'delete':this[_0x3dcac5(0x15e)](_0x3dcac5(0x4b5)),'update':this[_0x3dcac5(0x15e)](_0x3dcac5(0x1cd))};}[_0x1f0caa(0x15e)](_0x1cf752){const _0x51eed6=_0x1f0caa;let _0x4d0689=this['_themeService'][_0x51eed6(0x16a)](Ne[_0x1cf752]);return{'fill':new e[(_0x51eed6(0x33e))](_0x4d0689)['setAlpha'](0.5)['toRgbString'](),'stroke':new e[(_0x51eed6(0x33e))](_0x4d0689)[_0x51eed6(0x322)](0.9)['toRgbString']()};}};Pe=W([U(0x0,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x434)]))],Pe);var Fe=class extends y[_0x1f0caa(0x1ec)]{constructor(_0x207157,_0x542abd){const _0x2e9cf9=_0x1f0caa;super(_0x207157,_0x542abd),H(this,_0x2e9cf9(0x2e9),void 0x0),H(this,'_direction',void 0x0),H(this,_0x2e9cf9(0x312),!0x1),H(this,_0x2e9cf9(0x1c8),0x4),H(this,'_blinkTimer',void 0x0),H(this,'_blinkIntervalTimer',void 0x0),H(this,'_isBlinkVisible',!0x0),this[_0x2e9cf9(0x2e9)]=_0x542abd[_0x2e9cf9(0x208)],this[_0x2e9cf9(0x19f)]=_0x542abd['direction'],this[_0x2e9cf9(0x2b2)](_0x542abd),_0x542abd[_0x2e9cf9(0x369)]&&this[_0x2e9cf9(0x302)](_0x542abd['highlightSecond']??this[_0x2e9cf9(0x1c8)]);}['setShapeProps'](_0x50d278){const _0x3ed9cc=_0x1f0caa;this[_0x3ed9cc(0x2e9)]=_0x50d278[_0x3ed9cc(0x208)]??this[_0x3ed9cc(0x2e9)],this['_direction']=_0x50d278[_0x3ed9cc(0x4c3)]??this['_direction'],this[_0x3ed9cc(0x312)]=_0x50d278[_0x3ed9cc(0x369)]??this[_0x3ed9cc(0x312)],this[_0x3ed9cc(0x1c8)]=_0x50d278['highlightSecond']??this['_highlightSecond'],this[_0x3ed9cc(0x23b)]({'width':_0x50d278[_0x3ed9cc(0x263)]??this[_0x3ed9cc(0x263)],'height':_0x50d278[_0x3ed9cc(0x43a)]??this[_0x3ed9cc(0x43a)]});}[_0x1f0caa(0x46b)](_0x218cfe){return!0x1;}[_0x1f0caa(0x521)](){const _0x30bec9=_0x1f0caa;this[_0x30bec9(0x1fb)](),super[_0x30bec9(0x521)]();}[_0x1f0caa(0x471)](_0xbdbf53){const _0x5d64e5=_0x1f0caa;_0xbdbf53[_0x5d64e5(0x1b2)](),_0xbdbf53[_0x5d64e5(0x173)]=this['_highlight']&&!this[_0x5d64e5(0x184)]?0.25:0x1,_0xbdbf53['strokeStyle']=this[_0x5d64e5(0x2e9)],_0xbdbf53[_0x5d64e5(0x1fe)]=this[_0x5d64e5(0x2e9)],_0xbdbf53[_0x5d64e5(0x377)]=0x4,this['_direction']===_0x5d64e5(0x199)?this[_0x5d64e5(0x4ab)](_0xbdbf53):this[_0x5d64e5(0x424)](_0xbdbf53),_0xbdbf53[_0x5d64e5(0x4e3)]();}['_startBlinking'](_0x1451e8){const _0x50fb29=_0x1f0caa;this[_0x50fb29(0x1fb)](),this['_isBlinkVisible']=!0x0,this[_0x50fb29(0x1a7)]=window['setInterval'](()=>{const _0x3b8c55=_0x50fb29;this['_isBlinkVisible']=!this[_0x3b8c55(0x184)],this[_0x3b8c55(0x204)](!0x0);},0x1f4),this[_0x50fb29(0x324)]=window[_0x50fb29(0x243)](()=>{const _0x37fabb=_0x50fb29;this[_0x37fabb(0x1fb)](),this['_isBlinkVisible']=!0x0,this[_0x37fabb(0x204)](!0x0);},_0x1451e8*0x3e8);}[_0x1f0caa(0x1fb)](){const _0x89ffe=_0x1f0caa;this[_0x89ffe(0x1a7)]!==void 0x0&&(window[_0x89ffe(0x439)](this[_0x89ffe(0x1a7)]),this[_0x89ffe(0x1a7)]=void 0x0),this[_0x89ffe(0x324)]!==void 0x0&&(window[_0x89ffe(0x49e)](this[_0x89ffe(0x324)]),this[_0x89ffe(0x324)]=void 0x0);}[_0x1f0caa(0x4ab)](_0xcab842){const _0x89d0d0=_0x1f0caa;let _0x5a6102=this[_0x89d0d0(0x43a)]/0x2;_0xcab842[_0x89d0d0(0x4a6)](),_0xcab842[_0x89d0d0(0x445)](0xc,_0x5a6102),_0xcab842[_0x89d0d0(0x4d2)](this[_0x89d0d0(0x263)]-0xc,_0x5a6102),_0xcab842['stroke'](),_0xcab842[_0x89d0d0(0x4a6)](),_0xcab842[_0x89d0d0(0x445)](0x0,_0x5a6102),_0xcab842[_0x89d0d0(0x4d2)](0xc,_0x5a6102-0x6),_0xcab842[_0x89d0d0(0x4d2)](0xc,_0x5a6102+0x6),_0xcab842['closePath'](),_0xcab842['fill'](),_0xcab842[_0x89d0d0(0x4a6)](),_0xcab842['moveTo'](this[_0x89d0d0(0x263)],_0x5a6102),_0xcab842[_0x89d0d0(0x4d2)](this[_0x89d0d0(0x263)]-0xc,_0x5a6102-0x6),_0xcab842[_0x89d0d0(0x4d2)](this[_0x89d0d0(0x263)]-0xc,_0x5a6102+0x6),_0xcab842[_0x89d0d0(0x35d)](),_0xcab842[_0x89d0d0(0x2cc)]();}['_drawVerticalArrow'](_0x272bfb){const _0x18091c=_0x1f0caa;let _0x3c847e=this['width']/0x2;_0x272bfb[_0x18091c(0x4a6)](),_0x272bfb[_0x18091c(0x445)](_0x3c847e,0xc),_0x272bfb['lineTo'](_0x3c847e,this[_0x18091c(0x43a)]-0xc),_0x272bfb['stroke'](),_0x272bfb[_0x18091c(0x4a6)](),_0x272bfb[_0x18091c(0x445)](_0x3c847e,0x0),_0x272bfb['lineTo'](_0x3c847e-0x6,0xc),_0x272bfb['lineTo'](_0x3c847e+0x6,0xc),_0x272bfb[_0x18091c(0x35d)](),_0x272bfb['fill'](),_0x272bfb[_0x18091c(0x4a6)](),_0x272bfb[_0x18091c(0x445)](_0x3c847e,this[_0x18091c(0x43a)]),_0x272bfb['lineTo'](_0x3c847e-0x6,this[_0x18091c(0x43a)]-0xc),_0x272bfb['lineTo'](_0x3c847e+0x6,this[_0x18091c(0x43a)]-0xc),_0x272bfb[_0x18091c(0x35d)](),_0x272bfb[_0x18091c(0x2cc)]();}};function _0x5973(){const _0x25b983=['data','syncExecuteCommand','MoreDownIcon','_scrollToShape','_versions$','MenuItemType','RemoveSheetSparklineMutation','setDrawingEditable','setPivotPosition','body','AddRangeProtectionMutation','Disposable','moveCF','transform','iterator','_diffRangesMap','univer-text-sm\x20univer-leading-5\x20univer-text-gray-500\x20dark:!univer-text-gray-300','terminate','UpdateSheetsShapeDataMutation','mutations','4zahQXT','catch','objects','type','WorkbookHideSheetPermission','memberId','versions$','setPivotFieldFormat','SetRangeValuesMutation','removeTable','AddRangeThemeMutation','AddWorksheetMergeMutation','setWorksheetRangeTheme','object','univer.operation.exit-edit-history','SetWorksheetColWidthMutation','code','packageName','UniverSheetsPlugin','SetTabColorMutation','univer-break-all\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','reload','RemoveNumfmtMutation','_categorizeMutationRanges','SheetTableService','_openPanel','rev','toString','_localCacheService','sheets-history-ui.viewer.panel.today','_createPalette','SetWorksheetRowAutoHeightMutation','_syncViewerServices','values','Checkbox','Injector','_updateVersions','boolean','univer-min-h-15\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20univer-py-1.5\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-800','endRevision','invoke','MessageType','getSubUnitId','setRangeProtection','connectInjector','sheets-history-ui.viewer.action.','updateShapeType','SetWorksheetRangeThemeStyleMutation','bottom','insertSheet','univer-flex\x20univer-min-h-6\x20univer-w-full\x20univer-items-center\x20univer-justify-between','AddWorksheetProtectionMutation','_rangeProtectionRuleModel','constructor','UniverSheetsDataValidationMobileUIPlugin','HEADER','SetRangeProtectionMutation','registerDetailVersion','historyUniver','_arrowDiffs','IConfigService','getConfig','column','direction$','includes','_yieldToMain','getVersions','_drawVerticalArrow','WorksheetEditPermission','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','loadingState$','register','SetPivotPositionMutation','rangeInfo','_internalWebWorker','clear','error','_applyWorkbookData','asObservable','sheets-history-ui.loader.panel.listFetchError','univer-text-xs\x20univer-text-gray-400','univer-animate-spin\x20univer-text-gray-400','_setWorksheetVisibility','ThemeService','CreateUnitMutation','_initPointerEvents','historyUniver$','OTHERS','clearInterval','height','deleteBorder','revertRevision$','Button','loadUnit','fetching','UniverSheetsFilterUIPlugin','getElementById','getOwnPropertyDescriptor','join','SetColDataMutation','moveTo','length','_themeService','setColData','unitID','IUIPartsService','Inject','100%','hasMore','takeUntil','setPivotFilter','current','SetRowVisibleMutation','FromArray','SheetsChartService','IMessageService','getRange','showCol','parent','rule','_unitCurrentVersionMap','addRangeProtection','sheets-history-ui.viewer.panel.confirm','deleteDrawings','_transformService','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center','onStarting','CollaborationStatus','users','sheets-history-ui.viewer.panel.revertDesc','filter','_initPanel','ReorderRangeMutation','sheets-history-ui.viewer.header.back','_getAPIPrefix','addProtection','_setFetching','getSheetBySheetId','triggerDblclick','UniverSheetsHistoryUIPlugin','UniverSheetsShapePlugin','getDirection','univer-flex\x20univer-items-center\x20univer-gap-2.5\x20univer-pt-1.5\x20univer-text-sm\x20univer-font-medium','LocaleService','_draw','setRangeTheme','UniverSheetSparklinePlugin','_findOverlappingShapes','abs','_initListener','_sidebarDisposable','RANGE_TYPE','_createDrawingHighlight','IConfirmService','historyPanelComponentKey','setDefaultStyle','UniverSheetsHyperLinkPlugin','/creators','triggerLoadSheet','deleteProtection','deleteWorksheetRangeTheme','exhaustSavingTask','_handleRevertAcknowledgement','_initContainer','left','user','revision','getAllPlugins','univer-bg-blue-50\x20dark:!univer-bg-gray-900','isArray','setRowCount','_confirmService','UNIVER_SHEETS_HISTORY_MOBILE_UI_PLUGIN','_menuManagerService','_disposed','params','disposeUnit','getSubunitRuleList','hidden','getDataRange','unionPivotViewRange','transformSnapshotToWorkbookData','currentVersionDiff$','_messageService','_loadingState$','switchMap','RenameSheet','additionalFields','univer-flex-1\x20univer-overflow-y-auto','clearTimeout','red.800','setColCount','ChartUpdateSourceConfigMutation','993476AvNbmD','WorkbookMoveSheetPermission','getViewport','SetSheetTableMutation','beginPath','sheets-history-ui.viewer.panel.currentVersion','SetPivotSortMutation','univer-flex-1','DependentOn','_drawHorizontalArrow','SetWorksheetNameMutation','triggerRevert','UpdateDataValidationMutation','insertCellRanges','_dataValidationModel','position','getCurrentSkeleton','RemoveRowMutation','WorkbookEditablePermission','delete','UpdatePivotTableSourceRangeMutation','DeleteRangeProtectionMutation','formatIntl','univer-absolute\x20univer-flex\x20univer-h-[calc(100%-32px)]\x20univer-w-[calc(100%-16px)]\x20univer-flex-col\x20univer-overflow-auto','SetRowHiddenMutation','removeSheet','borderBottomClassName','ArrowLeftIcon','LRUMap','SetPivotCollapseMutation','_updateSubUnitFromURLParams','_snapshotServerService','subscribeEvent','direction','blue.800','now','pluginName','_cacheKey','string','MoveRangeMutation','ruleIds','complete','useDependency','sheets-history-ui.loader.panel.reverting','ILogService','univer-min-w-[240px]','sheets-history-ui.viewer.panel.filterAi','active','lineTo','UniverSheetsChartMobileUIPlugin','setValue','targetRange','green.800','SetWorksheetHideMutation','load','recoverTime','onSteady','setGridlinesColor','IAuthzIoService','format','getMutationActionMap','CommandType','startRev','univer-history-container','getCurrentUnitOfType','restore','_getSheetObject','cellValue','&endRevision=','arrowRow','arrowColumnRanges','hide','urlChange$','SheetsPivotTableConfigModel','setDirection','rowData','univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-800\x20dark:!univer-text-gray-200','UniverSheetsUIPlugin','AddPivotFieldMutation','startRevCreateTime','deleteBorderRanges','map','UI_PLUGIN_CONFIG_KEY','sheets-history-ui.viewer.action.etc','getUnhiddenWorksheets','_extractRanges','_registerLoadingMask','createTime','composePermission','reorderSheet','session','sheets-history-ui.config','dateKit','UniverCollaborationClientPlugin','DataLoaderService','updateTable','UniverInstanceType','confirm-revert-revision','univer-relative\x20univer-h-8','_ensureCurrentVersion','_members','ISidebarService','UniverSheetsDrawingPlugin','addObjects','CollaborationEvent','addPivotTable','getSelectedVersionCanRevert','\x20-\x20','editSheet','univer-absolute\x20univer-left-[30px]\x20univer-top-0\x20univer-h-full\x20univer-w-2.5\x20rtl:univer-left-auto\x20rtl:univer-right-[30px]','blocks','arrowRowRanges','createUnit','removeEventListener','flat','slice','univer.operation.toggle-edit-history','univer-m-auto\x20univer-animate-spin','GLOBAL','setPermissionPoints','setFrozen','startRow','[VersionDiffService]:\x20Failed\x20to\x20calculate\x20version\x20differences.','FloatImg','_sheetsPivotTableConfigModel','_createUnit','set','dispose','SetPivotOptionMutation','time','setParam','univer-max-h-[300px]\x20univer-overflow-y-auto\x20univer-py-1','versions','labelKey','getCellIndexByOffset','getCurrentLocale','_initDiffRender','lastLabel','1.0.4','Loading','RangeMergeUtil','IDialogService','stopPropagation','workbook','removeShape','useRef','parseProtocolChangeset','_updateDiffMarks','_configService','max','unknownUser','_revertRevision$','setNumfmt','FALSE','_canRevert','_removeDiffMarks','_creators$','unitId','historyPanelHidden','executeCommand','HTTPService','_clearRevertAcknowledgement','univer-shrink-0\x20univer-rounded\x20univer-border\x20univer-border-primary-600\x20univer-bg-primary-50\x20univer-px-1.5\x20univer-py-0.5\x20univer-text-xs\x20univer-text-primary-600\x20dark:!univer-bg-transparent','setSparkline','[HistoryFetchService]:\x20wrong\x20rev\x20from\x20the\x20server!','style','LOCALE_META','_sheetSkeletonManagerService','_hasMore','_createStyle','HideSheet','transparent','origin','univer-size-8\x20univer-text-gray-400\x20rtl:univer-rotate-180','univer-size-8\x20univer-text-gray-400','showText','SetSheetsFilterCriteriaMutation','SetWorksheetProtectionMutation','get','_diffColorService','[MobileHistoryLoaderService]:\x20Configure\x20a\x20valid\x20Univer\x20container\x20before\x20opening\x20history.','getColorFromTheme','ghost','_generateDiffMarks','_currentVersion$','_bindDrawingHighlightHover','YYYY-MM-DD','univer-text-gray-500','getUnit','univer-mt-1\x20univer-text-xs\x20univer-text-gray-500','globalAlpha','getVersion','UniverSheetsMobileUIPlugin','insertDrawings','IUniverInstanceService','_selectionProtectionRuleModel','SetNumfmtMutation','insertShape','polite','setFilterCriteria','highlightColumn','_compressMutationService','_initUniver','ensureVersion','shapeId','_urlService','UnitAction','_isBlinkVisible','split','currentVersion','name','SetWorksheetPermissionPointsMutation','selectVersion','ObjectMatrix','getCollabEntity','CollaborationController','SheetsFilterService','append','UniverSheetsTablePlugin','UniverRenderEnginePlugin','UniverSheetSparklineUIPlugin','RangeProtectionRuleModel','_permissionService','WorkbookRenameSheetPermission','registerCommand','registerPlugin','CollaborationImageIoService','action','horizontal','fetching$','setConfig','RemoveRangeThemeMutation','moveRange','top','_direction','rtl','drawingId','IImageIoService','AuthzIoHttpService','MoveColsMutation','registerRenderModule','_checkCanRevert','_blinkIntervalTimer','_renderCellRanges','loadMoreVersions','then','InsertSheetMutation','_logService','sheets-history-ui.viewer.action.insertDrawing','palette$','getCurrentUnitCurrentVersion','setPivotSort','changesets','save','label','2259271ygUEQt','transformMutations','ToggleGridlinesMutation','sheets-history-ui.loader.panel.revertFailed','mergeCells','getMatrix','symbol','getParam','renameSheet','removeSparkline','revertSheet','link','DeleteWorksheetProtectionMutation','UniverSheetsDrawingMobileUIPlugin','UniverSheetsNumfmtPlugin','UniverSheetsChartUIPlugin','rowHeaderWidth','_sheetTableService','removeDiffMarks','loadInitialVersions','_highlightSecond','SheetPermissionInitController','keys','InsertRowMutation','unsubscribe','update','scroll','none','next','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20univer-px-4\x20univer-py-2\x20univer-text-xs\x20univer-font-semibold\x20univer-text-gray-500\x20dark:!univer-bg-gray-900','number','150696xtwrgh','currentSkeleton$','_transformMutationByOrder','children','ICellEditorManagerService','container','univer-absolute\x20univer-left-0\x20univer-top-0\x20univer-h-full\x20univer-w-px\x20univer-bg-gray-100\x20rtl:univer-left-auto\x20rtl:univer-right-0\x20dark:!univer-bg-gray-800','removeFilter','ComponentManager','UNIVER_SHEET','state$','from','copySheet','vertical','startColumn','sheets-history-ui.viewer.action.removeDrawing','RibbonStartGroup','_sheetPermissionInitController','ReCalcSheetsFilterMutation','UniverProFormulaEnginePlugin','setTabColor','getSheets','moveCols','addTable','insert','Shape','RemoveColMutation','AiAssistantMultiIcon','OPERATION','getTableInfo','Failed\x20to\x20fetch\x20version\x20details:','removeRangeTheme','Comment','permissionPointUpdate$','sparklines','onRendered','insertBorderRanges','find','fromCollab','BehaviorSubject','_stopBlinking','getLocales','confirm','fillStyle','_setOverlappingShapesHovered','ErrorCode','onPointerMove$','SnapshotServerOverHTTPService','_workbookDataCache','makeDirty','subscribe','DeleteWorksheetRangeThemeStyleMutation','eventID','color','_borderDiffs','unMountHistoryContent','useState','recalcFilter','_injector','setCF','subUnitIds','hideSheet','_commandService','useObservable','updateDrawings','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-gap-1.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','moveRows','UniverDrawingPlugin','univer-flex\x20univer-items-center\x20univer-gap-3\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-5\x20univer-py-4\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','addPivotField','RangeProtectionPermissionEditPoint','setRowData','all','SetFrozenMutation','skip','850191GlipIm','_openPanel$','hideRow','LoadingMultiIcon','AddConditionalRuleMutation','removeChart','showDiffMarks','UniverUIPlugin','getUnitOnRev','insertChart','_lastPointer','loaded','getSparklineById','univer-h-12','UniverCollaborationPlugin','ITransformService','AddSheetSparklineMutation','dispose$','IDrawingManagerService','ICommandService','SetWorksheetActiveOperation','activeSheet$','version','_drawingManagerService','unitId$','Dropdown','triggerLoadVersions','UpdateValuePositionMutation','deleteCF','transformByState','some','_updateWorksheetVisibility','univer-size-4','viewportScrollY','RemoveWorksheetMergeMutation','toDisposable','[HistoryLoaderService]:\x20Plugin\x20','setTimeout','allRanges','loadHistoryCreatorList','sheets-history-ui.viewer.panel.unknownUser','groupIds','CompressMutationService','univer-flex\x20univer-w-3\x20univer-items-center\x20univer-justify-center','createSheet','_sheetsFilterService','creators','sheets-history-ui.viewer.panel.filterCollaboratorConfirm','insertRow','_pluginMap','sheets-history-ui.viewer.header.revert','setPivotValueFilter','_sparklineDataSourceModel','chartModelId','setPivotSubtotalType','getPivotTableRangeInfo','updateBorder','1822040lmYYUj','setTableFilter','updateValuePosition','_cellEditorManagerService','setRowHeight','_showRevertFailed','scrollToViewportPos','setColWidth','currentTheme$','SetPivotSubtotalTypeMutation','status$','UNIVER_SHEETS_HISTORY_VIEWER_PLUGIN','width','removePivotTable','univer-history-container-mobile','numeric','arrowColumn','_localeService','UniverSheetsConditionalFormattingPlugin','parse','block','_registerHeader','HistoryIcon','subType','concat','UniverSheetsFormulaMobileUIPlugin','_context','_getActiveSubUnitId','mountHistoryContent','univer-size-4\x20univer-shrink-0','columnHeaderHeight','RevertRevisionMutation','IconManager','getCurrentRangeDisable$','showRow','SetGridlinesColorMutation','_sheetsChartService','sheets-history-ui.viewer.panel.aiAssistant','UpdateFieldPositionMutation','LS_CONFIG_KEY','ROW','dir','toStringTag','currentLocale$','_uiPartsService','sheets-history-ui.viewer.panel.title','[HistoryLoaderService]:\x20Configure\x20a\x20valid\x20Univer\x20container\x20before\x20opening\x20history.','dateString','SetColVisibleMutation','Subject','_setupSubUnitSync','onCommandExecuted','defineProperty','registerComponent','end','jsxs','UniverSheetsFilterPlugin','Fragment','_renderBorderRanges','sparklineConfigMap','exitHistoryMode','UniverSheetsShapeMobileUIPlugin','userId','getCoordRelativeToViewport','SetWorksheetColumnCountMutation','call','REMOVE','_conditionalFormattingRuleModel','setFilter','SHEET_VIEWPORT_KEY','UniverSheetsFormulaPlugin','getUnitId','ChartUpdateConfigMutation','value','getAncestorScale','_revertAcknowledgementSubscription','scrollToShape','createElement','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-text-gray-400\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','removeAll','RxDisposable','UniverDocsUIPlugin','_httpService','setTheme','zIndex','workerURL','columnData','COMPRESS_MUTATION_APPLY','_renderManagerService','rules','sourceRange','setShapeProps','_renderDrawingHighlights','DeleteSheetTableMutation','/cs?startRevision=','SetWorksheetDefaultStyleMutation','every','_collaborationController','univer-flex\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-100\x20univer-px-4\x20univer-py-3\x20dark:!univer-border-gray-800','_dataLoaderService','UniverSheetSparklineMobileUIPlugin','span','[MobileHistoryLoaderService]:\x20Plugin\x20','Vector2','status','addSparkline','IRenderManagerService','isError','removePivotField','/list?','_dialogService','TRUE','sheets-history-ui.viewer.panel.currentUser','flatMap','UniverSheetsDrawingUIPlugin','updateChartSource','UniverCollaborationClientUIPlugin','fill','_lastLabel','setDarkMode','userIds','date','_renderArrowRanges','darkMode$','_config','univer-truncate\x20univer-text-xs\x20univer-text-gray-500\x20dark:!univer-text-gray-400','tableId','_initPlugins','_setVersions','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','COLUMN','triggerCustomVersions','insertCol','getMember','history-panel','unmergeCells','1355334iSuXEg','entered','disposeWithMe','2-digit','UniverNetworkPlugin','UniverSheetsShapeUIPlugin','@univerjs-pro/sheets-history-ui','FunnelIcon','openPanel$','Plugin','_color','UniverSheetsPivotTablePlugin','univer-flex\x20univer-items-center\x20univer-justify-end\x20univer-gap-2\x20univer-p-2','show','renameWorkbook','SetColHiddenMutation','SheetCollabCursorShape','SetSheetTableFilterMutation','historyAIassistantEnabled','univer-text-center\x20univer-text-gray-500\x20dark:!univer-text-gray-400','_historyFetchService','tag','getRule','getDeserializedSheetBlock','sheets-history-ui.viewer.info.loading','getCurrentVersion','univer-flex\x20univer-shrink-0\x20univer-cursor-pointer\x20univer-flex-col\x20univer-items-center\x20univer-py-2','_handleOverlappingShapes','renamePivotField','SetPivotFieldFormatMutation','UniverSheetsHyperLinkUIPlugin','m1Prime','_sidebarService','removeDV','updatePivotFieldSource','_startBlinking','sheets-history-ui.loader.panel.title','removeNumfmt','updateFieldPosition','_disposableCollection','updatePermissionPoint','DeleteConditionalRuleMutation','getSelectedVersionIsCurrentVersion','UniverRPCMainThreadPlugin','div','sheet','SetWorksheetRightToLeftMutation','forEach','univer-border-t\x20univer-border-gray-200\x20dark:!univer-border-gray-700','getMenuHiddenObservable','InsertSheetsShapeMutation','_highlight','start','updateBorderRanges','updateDrawing','_updateURLWithCurrentState','evented','RemoveSheetsFilterMutation','IMenuManagerService','12749504ATaXgc','RemoveDataValidationMutation','drawingIds','BooleanNumber','getDrawingByParam','IPermissionService','_currentVersionDiff$','ILocalCacheService','setAlpha','updatePivotSource','_blinkTimer','UniverSheetsHistoryPlugin','__getInjector','init','jsx','addRangeTheme','historyServerUrl','add','RemovePivotTableMutation','userID','permissionId','sheets-history-ui.viewer.action.revertSheetPrefix','onMouseMove','SetWorksheetRowHeightMutation','_detailVersionsMap','clsx','SetSheetSparklineMutation','range','useMemo','_historyManagerService','ruleId','AddPivotTableMutation','push','row','MoveRowsMutation','appendChild','ColorKit','reduce','take','RemoveSheetsChartMutation','cfId','setPivotCollapse','_combineRanges','merge','Edit','_getLabelHorizontalPosition','useEffect','display','UniverDrawingMobileUIPlugin','DrawingApplyType','endRevCreateTime','MoveConditionalRuleMutation','RemovePivotFieldMutation','_versionDiffService','InsertColMutation','decorate','_historyUniver$','_status$','InsertSheetsChartMutation','setRightToLeft','sheets-history-ui.viewer.panel.filterCollaborator','interceptor','ToggleEditHistoryOperation','SetPivotFilterMutation','_diffs','UniverSheetsDataValidationPlugin','has','closePath','endDateString','SetWorksheetRowCountMutation','reverse','deleteCellRanges','ranges','members','\x20has\x20been\x20registered.','setState','stroke','INSERT','SYNCED','highlight','addEventListener','getFilterModel','BuiltInUIPart','univer-absolute\x20univer-left-0\x20univer-top-1/2\x20univer-h-px\x20univer-w-2.5\x20-univer-translate-y-1/2\x20univer-bg-gray-100\x20rtl:univer-left-auto\x20rtl:univer-right-0\x20dark:!univer-bg-gray-800','UniverDrawingUIPlugin','UpdateSheetsShapeTypeMutation','canRevert','hasCommand','function','chartId','_dialogOptions$','true','VIEW_MAIN','lineWidth','univer-text-sm','endColumn','closeAll','mergeMenu','_palette$','getHistoryChangesets','univer-animate-spin','pivotTableId','UpdatePivotFieldSourceInfoMutation','ISnapshotServerService','updateCellRanges','setPivotOption','toPrimitive','-detail-','loading','pipe','endRev','creators$','subUnitId','univer-flex\x20univer-h-12\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-950','Workbook','setProtection','onPointerLeave$','subunit','Error','WorkbookRecoverHistoryPermission','RemoveSheetMutation','key','useCallback','combineLatest','UniverLicensePlugin','_pointerMoveSubscription','CONTENT','updateChartConfig','SetWorksheetActivateCommand','_univerInstanceService','getInterceptPoints','insertBorder','exited','getCoordByCell','univer-relative\x20!univer-mb-0\x20!univer-mt-0','timeout','setRowIsAutoHeight','DisposableCollection','UniverSheetsChartPlugin','close','RenamePivotFieldMutation','removeCol','BUTTON','univerContainerId','location','event$','_loadParams','SetSheetsFilterRangeMutation','UniverMobileUIPlugin','getSheetId','anonymous','deleteRangeProtection','RemoveSheetsShapeMutation','getActiveSheet','setDV','highlightRow','Info','loadingState','_init','startDateString','univer-pointer-events-auto\x20univer-flex\x20univer-flex-col\x20univer-rounded-t-2xl\x20univer-bg-gray-0\x20univer-shadow-lg\x20univer-transition-[height]\x20univer-duration-300\x20dark:!univer-bg-gray-950','currentVersion$','commands','endRow','MoveSheet','refreshRangeProtectPermission','setRangeValues','_fetching$','primary','resolve','setRowAutoHeight','UniverDataValidationPlugin','SetWorksheetOrderMutation','_unitId$','fetchCreatorList','Univer','Rect','SetConditionalRuleMutation','UniverSheetsHistoryMobileUIPlugin'];_0x5973=function(){return _0x25b983;};return _0x5973();}let Ie=class extends e[_0x1f0caa(0x3d8)]{constructor(_0x479326,_0x39268a,_0x56a44a,_0x3749bb,_0x388098,_0x3a12f3,_0x2ab6b4,_0x2de192,_0x194757,_0x319292){const _0x550cb7=_0x1f0caa;super(),this[_0x550cb7(0x271)]=_0x479326,this['_historyManagerService']=_0x39268a,this['_versionDiffService']=_0x56a44a,this[_0x550cb7(0x39b)]=_0x3749bb,this[_0x550cb7(0x2af)]=_0x388098,this[_0x550cb7(0x15c)]=_0x3a12f3,this[_0x550cb7(0x211)]=_0x2ab6b4,this[_0x550cb7(0x235)]=_0x2de192,this['_localeService']=_0x194757,this[_0x550cb7(0x168)]=_0x319292,H(this,'_diffs',new Set()),H(this,_0x550cb7(0x209),new Set()),H(this,_0x550cb7(0x41c),new Set()),H(this,_0x550cb7(0x228),null),H(this,_0x550cb7(0x397),null),this[_0x550cb7(0x3b8)]();}[_0x1f0caa(0x3b8)](){this['_initRender'](),this['_initActiveSwitch']();}['_initRender'](){const _0x2c05f6=_0x1f0caa;this[_0x2c05f6(0x52a)](),this[_0x2c05f6(0x436)]();}[_0x1f0caa(0x52a)](){const _0x129a4d=_0x1f0caa;this[_0x129a4d(0x2e1)]((0x0,P['combineLatest'])([this[_0x129a4d(0x337)][_0x129a4d(0x427)],this['_sheetSkeletonManagerService'][_0x129a4d(0x1d4)],this[_0x129a4d(0x168)][_0x129a4d(0x1ae)]])[_0x129a4d(0x387)]((0x0,P[_0x129a4d(0x49a)])(([_0x433f4c,_0x49e2e9,_0x3f1288])=>{const _0x2b42b2=_0x129a4d;if(_0x433f4c===_0x2b42b2(0x229)&&_0x49e2e9){let _0x2f6bcd=_0x49e2e9['sheetId'];return this[_0x2b42b2(0x34f)]['currentVersionDiff$']['pipe']((0x0,P[_0x2b42b2(0x4f3)])(_0x57e5d5=>_0x57e5d5[_0x2b42b2(0x20f)]['length']===0x0||_0x57e5d5[_0x2b42b2(0x20f)][_0x2b42b2(0x421)](_0x2f6bcd)?{'skeleton':_0x49e2e9,'versionDiff':_0x57e5d5,'sheetID':_0x2f6bcd,'palette':_0x3f1288}:{'skeleton':_0x49e2e9,'versionDiff':null,'palette':_0x3f1288}));}return(0x0,P['of'])({'skeleton':null,'versionDiff':null,'sheetID':null,'palette':_0x3f1288});}))[_0x129a4d(0x205)](({skeleton:_0x30cc74,versionDiff:_0x590846,sheetID:_0x4e791c,palette:_0x32b03b})=>{this['_removeDiffMarks'](),_0x30cc74&&_0x590846&&_0x4e791c&&this['_updateDiffMarks'](_0x30cc74,_0x590846,_0x4e791c,_0x32b03b);}));}[_0x1f0caa(0x436)](){const _0x34a5b1=_0x1f0caa;this['disposeWithMe'](this[_0x34a5b1(0x15c)][_0x34a5b1(0x1d4)][_0x34a5b1(0x205)](_0x236ef9=>{const _0x489f9f=_0x34a5b1;var _0x43fea5;if((_0x43fea5=this['_pointerMoveSubscription'])==null||_0x43fea5['unsubscribe'](),this[_0x489f9f(0x397)]=null,this[_0x489f9f(0x228)]=null,_0x236ef9==null)return;let {skeleton:_0x547943}=_0x236ef9,{scene:_0x303fa9}=this[_0x489f9f(0x271)];this[_0x489f9f(0x397)]=_0x303fa9[_0x489f9f(0x201)][_0x489f9f(0x4c2)]((0x0,e['debounce'])(_0x192eab=>{const _0x1fd068=_0x489f9f;var _0x226766,_0x40b4f0;let {offsetX:_0x296401,offsetY:_0x5a7bc7}=_0x192eab,{x:_0x38896a,y:_0x2df686}=_0x303fa9[_0x1fd068(0x296)](y[_0x1fd068(0x2be)]['FromArray']([_0x296401,_0x5a7bc7])),{scaleX:_0x405cb1,scaleY:_0x2651dd}=_0x303fa9[_0x1fd068(0x2a1)](),_0x33344b=_0x303fa9['getViewport'](y['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x32f3c6=_0x303fa9['getScrollXYInfoByViewport'](y[_0x1fd068(0x2be)][_0x1fd068(0x452)]([_0x38896a,_0x2df686]),_0x33344b),_0x211904=_0x547943[_0x1fd068(0x528)](_0x296401,_0x5a7bc7,_0x405cb1,_0x2651dd,_0x32f3c6);(((_0x226766=this[_0x1fd068(0x228)])==null?void 0x0:_0x226766[_0x1fd068(0x41f)])!==_0x211904[_0x1fd068(0x41f)]||((_0x40b4f0=this[_0x1fd068(0x228)])==null?void 0x0:_0x40b4f0[_0x1fd068(0x33b)])!==_0x211904[_0x1fd068(0x33b)])&&(this[_0x1fd068(0x228)]=_0x211904,this[_0x1fd068(0x35a)][_0x1fd068(0x30e)](_0x2ce290=>{const _0xff5752=_0x1fd068;_0x2ce290[_0xff5752(0x317)]||_0x2ce290[_0xff5752(0x330)](_0x211904);}));},0x64));}));}['_initActiveSwitch'](){const _0x419a15=_0x1f0caa;this[_0x419a15(0x2e1)]((0x0,P[_0x419a15(0x395)])([this[_0x419a15(0x337)][_0x419a15(0x427)],this[_0x419a15(0x34f)][_0x419a15(0x497)]])['subscribe'](([_0x57af4b,_0x238635])=>{const _0x1816f0=_0x419a15;_0x57af4b===_0x1816f0(0x229)&&(this[_0x1816f0(0x23d)](_0x238635[_0x1816f0(0x20f)]),_0x238635[_0x1816f0(0x4d1)]&&this['_commandService'][_0x1816f0(0x3ce)](t[_0x1816f0(0x232)]['id'],{'unitId':this[_0x1816f0(0x271)][_0x1816f0(0x53f)],'subUnitId':_0x238635[_0x1816f0(0x4d1)]}));}));}[_0x1f0caa(0x23d)](_0x252fff){const _0x5c632a=_0x1f0caa;let _0x558dc8=this[_0x5c632a(0x39b)][_0x5c632a(0x171)](this[_0x5c632a(0x271)][_0x5c632a(0x53f)],e[_0x5c632a(0x502)][_0x5c632a(0x1dc)]);if(!_0x558dc8)return;let _0x425c56=_0x558dc8[_0x5c632a(0x1e8)]();if(_0x252fff[_0x5c632a(0x446)]===0x0){_0x425c56[_0x5c632a(0x30e)](_0x153492=>{const _0x4a850b=_0x5c632a;_0x153492['isSheetHidden']()&&this[_0x4a850b(0x433)](_0x153492[_0x4a850b(0x3af)](),e['BooleanNumber'][_0x4a850b(0x53b)]);});return;}_0x425c56[_0x5c632a(0x30e)](_0x4e4d95=>{const _0x24b9e7=_0x5c632a;let _0x35171f=_0x4e4d95[_0x24b9e7(0x3af)](),_0x3d1cae=_0x252fff[_0x24b9e7(0x421)](_0x35171f),_0x3e3cb5=_0x4e4d95['isSheetHidden']();_0x3d1cae&&_0x3e3cb5?this[_0x24b9e7(0x433)](_0x35171f,e[_0x24b9e7(0x31d)][_0x24b9e7(0x53b)]):!_0x3d1cae&&!_0x3e3cb5&&this[_0x24b9e7(0x433)](_0x35171f,e[_0x24b9e7(0x31d)][_0x24b9e7(0x2c6)]);});}[_0x1f0caa(0x433)](_0x582000,_0xc30638){const _0x1e125e=_0x1f0caa;this[_0x1e125e(0x211)][_0x1e125e(0x3ce)](t[_0x1e125e(0x4d7)]['id'],{'unitId':this[_0x1e125e(0x271)]['unitId'],'subUnitId':_0x582000,'hidden':_0xc30638});}['_getLabelHorizontalPosition'](){const _0x14b8b7=_0x1f0caa;return this[_0x14b8b7(0x268)]['getDirection']()===_0x14b8b7(0x1a0)?_0x14b8b7(0x485):'right';}[_0x1f0caa(0x535)](_0x5ae232,_0x5292ed,_0x2400e2,_0x591a36){const _0x301a0b=_0x1f0caa;this[_0x301a0b(0x35a)][_0x301a0b(0x30e)](_0x4ec54d=>{const _0x33d088=_0x301a0b;_0x4ec54d[_0x33d088(0x204)]();});let _0x34f1d7=this[_0x301a0b(0x16c)](_0x5292ed,_0x2400e2,_0x591a36);this[_0x301a0b(0x35a)]=new Set(_0x34f1d7[_0x301a0b(0x463)](_0x452d2a=>_0x452d2a instanceof z['SheetCollabCursorShape'])),this[_0x301a0b(0x209)]=new Set(_0x34f1d7[_0x301a0b(0x463)](_0x94434b=>_0x94434b instanceof y[_0x301a0b(0x3ca)])),this['_arrowDiffs']=new Set(_0x34f1d7[_0x301a0b(0x463)](_0x3b95e3=>_0x3b95e3 instanceof Fe)),_0x34f1d7[_0x301a0b(0x446)]>0x0&&this[_0x301a0b(0x3d0)](_0x34f1d7[0x0],this[_0x301a0b(0x271)]['scene']);}[_0x1f0caa(0x16c)](_0x42b4d3,_0x3f9610,_0x2638f2){const _0x237987=_0x1f0caa;let _0x4682d9=this['_sheetSkeletonManagerService'][_0x237987(0x4b2)]();if(!_0x4682d9)return[];let {scene:_0x54117c}=this['_context'],_0x474b0d=[],_0x2439d9=_0x1b75c3=>{const _0x519128=_0x237987;if(!_0x1b75c3)return new Map();let _0x2dd273=new Map();return _0x1b75c3[_0x519128(0x30e)]((_0x2196f8,_0x3efe01)=>{const _0x20c2de=_0x519128;let _0x31c08f=_0x2196f8[_0x20c2de(0x463)](_0x352174=>_0x352174[_0x20c2de(0x38a)]===_0x3f9610);_0x31c08f[_0x20c2de(0x446)]>0x0&&_0x2dd273['set'](_0x3efe01,_0x31c08f);}),_0x2dd273;};return this['_renderCellRanges'](_0x54117c,_0x4682d9,_0x2439d9(_0x42b4d3[_0x237987(0x4af)]),_0x2638f2['insert'][_0x237987(0x2cc)],_0x474b0d),this['_renderCellRanges'](_0x54117c,_0x4682d9,_0x2439d9(_0x42b4d3[_0x237987(0x361)]),_0x2638f2[_0x237987(0x4b5)][_0x237987(0x2cc)],_0x474b0d),this[_0x237987(0x1a8)](_0x54117c,_0x4682d9,_0x2439d9(_0x42b4d3[_0x237987(0x382)]),_0x2638f2[_0x237987(0x1cd)][_0x237987(0x2cc)],_0x474b0d),this[_0x237987(0x291)](_0x54117c,_0x4682d9,_0x2439d9(_0x42b4d3[_0x237987(0x1f7)]),_0x2638f2[_0x237987(0x1eb)][_0x237987(0x366)],_0x474b0d),this[_0x237987(0x291)](_0x54117c,_0x4682d9,_0x2439d9(_0x42b4d3[_0x237987(0x4f2)]),_0x2638f2['delete']['stroke'],_0x474b0d),this[_0x237987(0x291)](_0x54117c,_0x4682d9,_0x2439d9(_0x42b4d3[_0x237987(0x314)]),_0x2638f2[_0x237987(0x1cd)][_0x237987(0x366)],_0x474b0d),this[_0x237987(0x2d1)](_0x54117c,_0x4682d9,_0x2439d9(_0x42b4d3['arrowRowRanges']),_0x2638f2[_0x237987(0x1cd)]['fill'],_0x237987(0x1e0),_0x474b0d),this[_0x237987(0x2d1)](_0x54117c,_0x4682d9,_0x2439d9(_0x42b4d3[_0x237987(0x4e8)]),_0x2638f2[_0x237987(0x1cd)][_0x237987(0x2cc)],_0x237987(0x199),_0x474b0d),_0x42b4d3[_0x237987(0x176)]&&this[_0x237987(0x2b3)](_0x54117c,_0x42b4d3[_0x237987(0x176)],_0x2638f2[_0x237987(0x1eb)]['stroke'],_0x474b0d),_0x42b4d3['deleteDrawings']&&this[_0x237987(0x2b3)](_0x54117c,_0x42b4d3[_0x237987(0x45c)],_0x2638f2['delete'][_0x237987(0x366)],_0x474b0d),_0x42b4d3['updateDrawings']&&this['_renderDrawingHighlights'](_0x54117c,_0x42b4d3[_0x237987(0x213)],_0x2638f2[_0x237987(0x1cd)][_0x237987(0x366)],_0x474b0d),this[_0x237987(0x2fa)](_0x474b0d),_0x54117c[_0x237987(0x509)](_0x474b0d,0x14),_0x474b0d;}['hideDiffMarks'](){const _0x204f51=_0x1f0caa;this['_diffs'][_0x204f51(0x30e)](_0x359d0d=>{const _0x1f15ec=_0x204f51;_0x359d0d[_0x1f15ec(0x4e9)]();}),this[_0x204f51(0x209)][_0x204f51(0x30e)](_0x4eb533=>{const _0x58c139=_0x204f51;_0x4eb533[_0x58c139(0x4e9)]();}),this[_0x204f51(0x41c)][_0x204f51(0x30e)](_0x14a34c=>{_0x14a34c['hide']();});}[_0x1f0caa(0x224)](){const _0x362d00=_0x1f0caa;this[_0x362d00(0x35a)][_0x362d00(0x30e)](_0xe7569=>{const _0x276d9d=_0x362d00;_0xe7569[_0x276d9d(0x2ec)]();}),this[_0x362d00(0x209)][_0x362d00(0x30e)](_0x5b19ed=>{const _0x447d5f=_0x362d00;_0x5b19ed[_0x447d5f(0x2ec)]();}),this['_arrowDiffs'][_0x362d00(0x30e)](_0x408b44=>{_0x408b44['show']();});}[_0x1f0caa(0x1c6)](){this['_removeDiffMarks']();}[_0x1f0caa(0x2a3)](_0xd77005,_0x547c04){this['_scrollToShape'](_0xd77005,_0x547c04);}['_renderCellRanges'](_0x2cc0da,_0x280652,_0x339776,_0x1687ee,_0x561c2c){_0x339776['forEach']((_0x43aac0,_0x4192ed)=>{const _0x30c8d8=_0x1a9f;_0x43aac0[_0x30c8d8(0x30e)](_0x4bad40=>{const _0x3e81bc=_0x30c8d8;var _0x140d20;let {range:_0x545981,subUnitId:_0x279312,unitId:_0x43a42c,showText:_0x2b4253='',highlightColumn:_0x1085f4,highlightRow:_0x2a9ad0}=_0x4bad40,{startColumn:_0x2b272e,startRow:_0x1e4797,endColumn:_0x19d5b4,endRow:_0x2302bd}=_0x545981,_0x25790b=(0x0,M['getCoordByCell'])(_0x1e4797,_0x2b272e,_0x2cc0da,_0x280652),_0x229856=(0x0,M[_0x3e81bc(0x39f)])(_0x2302bd,_0x19d5b4,_0x2cc0da,_0x280652),{columnHeaderHeightAndMarginTop:_0x5c0668}=_0x280652,{startX:_0x2de532,startY:_0x491091}=_0x25790b,{endX:_0x128c13,endY:_0x365e70}=_0x229856,_0x12cf5a=_0x280652[_0x3e81bc(0x1c4)],_0x508e54=_0x280652['columnHeaderHeight'];_0x2a9ad0&&(_0x2de532-=_0x12cf5a),_0x1085f4&&(_0x491091-=_0x508e54);let _0x2bf4ad=_0x128c13-_0x2de532,_0x1ec672=_0x365e70-_0x491091,_0x170125={'labelPosition':_0x491091-_0x5c0668>=0x14?_0x3e81bc(0x19e):_0x3e81bc(0x411),'sheetID':_0x279312,'range':_0x545981,'color':_0x1687ee,'fillAfterStrokeEnabled':!0x0,'backgroundColor':_0x1687ee,'name':((_0x140d20=this[_0x3e81bc(0x337)][_0x3e81bc(0x2dc)](_0x4192ed))==null?void 0x0:_0x140d20['name'])+'\x20'+_0x2b4253||_0x2b4253,'labelHorizontalPosition':this[_0x3e81bc(0x347)](),'selection':_0x43a42c+'-'+_0x279312+'-'+_0x545981[_0x3e81bc(0x1e1)]+'-'+_0x545981[_0x3e81bc(0x51b)]+'-'+_0x545981[_0x3e81bc(0x379)]+'-'+_0x545981[_0x3e81bc(0x3bd)],'left':_0x2de532,'top':_0x491091,'width':_0x2bf4ad,'height':_0x1ec672,'evented':!0x1,'zIndex':0x3e8,'highlight':!0x0};_0x561c2c['push'](new z[(_0x3e81bc(0x2ef))]('',_0x170125));});});}[_0x1f0caa(0x291)](_0x1a1034,_0x2935b7,_0x28ae6c,_0x2e0f2e,_0x14eb7f){const _0x16b7ec=_0x1f0caa;_0x28ae6c[_0x16b7ec(0x30e)]((_0x49fb0d,_0x55b072)=>{const _0x30b2d5=_0x16b7ec;_0x49fb0d[_0x30b2d5(0x30e)](_0x4eafa8=>{const _0x4aafda=_0x30b2d5;var _0x238947;let {range:_0x1a5dfc,subUnitId:_0xdc9be4,unitId:_0x19e49a,showText:_0x240846=''}=_0x4eafa8,{startColumn:_0x148362,startRow:_0x160541,endColumn:_0x4eb994,endRow:_0x24de94}=_0x1a5dfc,_0x367145=(0x0,M[_0x4aafda(0x39f)])(_0x160541,_0x148362,_0x1a1034,_0x2935b7),_0x508741=(0x0,M[_0x4aafda(0x39f)])(_0x24de94,_0x4eb994,_0x1a1034,_0x2935b7),{columnHeaderHeightAndMarginTop:_0x277a4e}=_0x2935b7,{startX:_0x30564a,startY:_0x2521d8}=_0x367145,{endX:_0x1a3582,endY:_0x93125f}=_0x508741,_0x23325b=_0x1a3582-_0x30564a,_0x50f30f=_0x93125f-_0x2521d8,_0x31f09b={'labelPosition':_0x2521d8-_0x277a4e>=0x14?_0x4aafda(0x19e):_0x4aafda(0x411),'sheetID':_0xdc9be4,'range':_0x1a5dfc,'color':_0x2e0f2e,'fillAfterStrokeEnabled':!0x1,'backgroundColor':_0x4aafda(0x160),'name':((_0x238947=this[_0x4aafda(0x337)][_0x4aafda(0x2dc)](_0x55b072))==null?void 0x0:_0x238947['name'])+'\x20'+_0x240846||_0x240846,'labelHorizontalPosition':this['_getLabelHorizontalPosition'](),'selection':_0x19e49a+'-'+_0xdc9be4+'-'+_0x1a5dfc[_0x4aafda(0x1e1)]+'-'+_0x1a5dfc[_0x4aafda(0x51b)]+'-'+_0x1a5dfc[_0x4aafda(0x379)]+'-'+_0x1a5dfc['endRow'],'left':_0x30564a-0x6,'top':_0x2521d8-0x6,'width':_0x23325b,'height':_0x50f30f,'evented':!0x1,'zIndex':0x3e8,'strokeWidth':0xc,'highlight':!0x0};_0x14eb7f['push'](new z[(_0x4aafda(0x2ef))]('',_0x31f09b));});});}[_0x1f0caa(0x2d1)](_0x4441ba,_0x5a5b16,_0x407ad0,_0x53585b,_0x3c4bd9,_0x59b9ec){const _0x2a8ed3=_0x1f0caa;let _0x382b90=_0x5a5b16[_0x2a8ed3(0x1c4)],_0x3bc6f4=_0x5a5b16[_0x2a8ed3(0x275)];_0x407ad0[_0x2a8ed3(0x30e)](_0x12f6bf=>{_0x12f6bf['forEach'](_0x2e979a=>{const _0x1a2fab=_0x1a9f;let {range:_0x5cd922}=_0x2e979a,{startColumn:_0xd51142,startRow:_0xbd2a98,endColumn:_0xf813a7,endRow:_0x1a9c40}=_0x5cd922,_0x5ce2cb=(0x0,M[_0x1a2fab(0x39f)])(_0xbd2a98,_0xd51142,_0x4441ba,_0x5a5b16),_0x80938f=(0x0,M['getCoordByCell'])(_0x1a9c40,_0xf813a7,_0x4441ba,_0x5a5b16),{startX:_0x4d3516,startY:_0x249a78}=_0x5ce2cb,{endX:_0x1be467,endY:_0x4a0064}=_0x80938f,_0x2e3578;if(_0x3c4bd9==='horizontal')_0x2e3578=new Fe('',{'color':_0x53585b,'direction':_0x1a2fab(0x199),'left':_0x4d3516,'top':0x2,'width':_0x1be467-_0x4d3516,'height':_0x3bc6f4-0x4,'evented':!0x1,'zIndex':0x3e9,'highlight':!0x0,'highlightSecond':0x4}),_0x59b9ec['push'](_0x2e3578);else{let _0x55df9e=_0x4a0064-_0x249a78;_0x2e3578=new Fe('',{'color':_0x53585b,'direction':'vertical','left':0x2,'top':_0x249a78,'width':_0x382b90-0x4,'height':_0x55df9e,'evented':!0x1,'zIndex':0x3e9,'highlight':!0x0,'highlightSecond':0x4}),_0x59b9ec['push'](_0x2e3578);}});});}[_0x1f0caa(0x2b3)](_0x2fcdd3,_0x4b2a6c,_0x30d741,_0x11a3c6){const _0x40dac0=_0x1f0caa;let _0x4f3fb3=this[_0x40dac0(0x15c)][_0x40dac0(0x4b2)]();if(!_0x4f3fb3)return;let {columnHeaderHeightAndMarginTop:_0xd78a6b}=_0x4f3fb3;_0x4b2a6c[_0x40dac0(0x30e)]((_0xdb4042,_0x43c106)=>{const _0x4a6cff=_0x40dac0;_0xdb4042[_0x4a6cff(0x30e)](_0x234072=>{const _0x1f9400=_0x4a6cff;let _0x326d98=this[_0x1f9400(0x479)](_0x234072,_0x43c106,_0x30d741,_0xd78a6b,0xc,_0x11a3c6);_0x326d98&&_0x11a3c6[_0x1f9400(0x33a)](_0x326d98);});});}[_0x1f0caa(0x479)](_0x3c8d28,_0x14e3d5,_0x2b7062,_0x540820,_0x484782,_0x22c18e){const _0x8e6724=_0x1f0caa;var _0x2c4c9e;let {drawingId:_0x5a924b,unitId:_0x59d043,subUnitId:_0x9daa08,showText:_0x4b35e0=''}=_0x3c8d28,_0x2608ad=this[_0x8e6724(0x235)][_0x8e6724(0x31e)]({'unitId':_0x59d043,'subUnitId':_0x9daa08,'drawingId':_0x5a924b});if(!(_0x2608ad!=null&&_0x2608ad[_0x8e6724(0x3da)]))return null;let {left:_0x15689d=0x0,top:_0x4a5eff=0x0,width:_0x41cb20,height:_0x35570e}=_0x2608ad[_0x8e6724(0x3da)],_0x2741ce=new z[(_0x8e6724(0x2ef))]('',{'labelPosition':_0x4a5eff-_0x540820>=0x14?'top':_0x8e6724(0x411),'sheetID':_0x9daa08,'range':{'startRow':0x0,'startColumn':0x0,'endRow':0x0,'endColumn':0x0},'color':_0x2b7062,'fillAfterStrokeEnabled':!0x1,'backgroundColor':_0x8e6724(0x160),'name':((_0x2c4c9e=this[_0x8e6724(0x337)]['getMember'](_0x14e3d5))==null?void 0x0:_0x2c4c9e[_0x8e6724(0x187)])+'\x20'+_0x4b35e0||_0x4b35e0,'labelHorizontalPosition':this['_getLabelHorizontalPosition'](),'selection':_0x59d043+'-'+_0x9daa08+'-drawing-'+_0x5a924b,'left':_0x15689d-_0x484782/0x2,'top':_0x4a5eff-_0x484782/0x2,'width':_0x41cb20,'height':_0x35570e,'evented':!0x0,'zIndex':0x3e8,'strokeWidth':_0x484782,'highlight':!0x0});return this[_0x8e6724(0x16e)](_0x2741ce,_0x22c18e),_0x2741ce;}[_0x1f0caa(0x16e)](_0x4cbbac,_0x4b3715){const _0x24d57b=_0x1f0caa;_0x4cbbac['onPointerEnter$'][_0x24d57b(0x4c2)](()=>this[_0x24d57b(0x1ff)](_0x4cbbac,_0x4b3715,!0x0)),_0x4cbbac[_0x24d57b(0x38e)][_0x24d57b(0x4c2)](()=>this[_0x24d57b(0x1ff)](_0x4cbbac,_0x4b3715,!0x1));}['_setOverlappingShapesHovered'](_0x585ed4,_0xed38f9,_0x3b338b){const _0x300561=_0x1f0caa;this[_0x300561(0x474)](_0x585ed4,_0xed38f9)[_0x300561(0x30e)](_0x391c0b=>{const _0x329fb1=_0x300561;_0x391c0b instanceof z[_0x329fb1(0x2ef)]&&_0x391c0b[_0x329fb1(0x2b2)]({'hovered':_0x3b338b});});}[_0x1f0caa(0x53d)](){const _0x200d84=_0x1f0caa;this[_0x200d84(0x35a)][_0x200d84(0x30e)](_0x188029=>_0x188029[_0x200d84(0x521)]()),this[_0x200d84(0x209)]['forEach'](_0x34c6fe=>_0x34c6fe[_0x200d84(0x521)]()),this[_0x200d84(0x41c)][_0x200d84(0x30e)](_0x3951e8=>_0x3951e8[_0x200d84(0x521)]()),this[_0x200d84(0x35a)][_0x200d84(0x42c)](),this[_0x200d84(0x209)][_0x200d84(0x42c)](),this[_0x200d84(0x41c)][_0x200d84(0x42c)]();}['_handleOverlappingShapes'](_0xdd556d){const _0x1647ec=_0x1f0caa;let _0x444010=_0xdd556d[_0x1647ec(0x463)](_0x2c62c7=>_0x2c62c7 instanceof z[_0x1647ec(0x2ef)]);if(_0x444010['length']===0x0)return;let _0x4d89af=[],_0x442005=new Set();_0x444010[_0x1647ec(0x30e)](_0x355506=>{const _0x11934b=_0x1647ec;if(_0x442005[_0x11934b(0x35c)](_0x355506))return;let _0x2cdd42=_0x355506[_0x11934b(0x485)]||0x0,_0x1ce3d6=_0x355506[_0x11934b(0x19e)]||0x0,_0xd9b04f=_0x2cdd42+(_0x355506['width']||0x0),_0x146505=_0x1ce3d6,_0x3b5f46=[_0x355506];_0x442005['add'](_0x355506),_0x444010['forEach'](_0x2acb6d=>{const _0x540cd8=_0x11934b;if(_0x442005[_0x540cd8(0x35c)](_0x2acb6d))return;let _0x2d0428=_0x2acb6d['left']||0x0,_0x598176=_0x2acb6d[_0x540cd8(0x19e)]||0x0,_0x3a5a96=_0x2d0428+(_0x2acb6d[_0x540cd8(0x263)]||0x0),_0x180d9c=_0x598176;Math['abs'](_0xd9b04f-_0x3a5a96)<=0xa&&Math[_0x540cd8(0x475)](_0x146505-_0x180d9c)<=0xa&&(_0x3b5f46[_0x540cd8(0x33a)](_0x2acb6d),_0x442005[_0x540cd8(0x32b)](_0x2acb6d));}),_0x3b5f46[_0x11934b(0x446)]>0x1&&_0x4d89af['push'](_0x3b5f46);}),_0x4d89af[_0x1647ec(0x30e)](_0x1c87b2=>{const _0x2024f3=_0x1647ec;_0x1c87b2['sort']((_0x4fe3f2,_0x5bdbcb)=>(_0x4fe3f2[_0x2024f3(0x19e)]||0x0)-(_0x5bdbcb[_0x2024f3(0x19e)]||0x0)),_0x1c87b2[_0x2024f3(0x30e)]((_0x32d078,_0xebaa1)=>{let _0xcbd7dd=_0xebaa1*0x16;_0x32d078['setOffsetY'](_0xcbd7dd);});});}['_findOverlappingShapes'](_0x2822b3,_0x283015){const _0x2d1c3f=_0x1f0caa;let _0x1aa85d=_0x2822b3['left']||0x0,_0x1e126b=_0x2822b3[_0x2d1c3f(0x19e)]||0x0,_0x419d3a=_0x2822b3[_0x2d1c3f(0x263)]||0x0,_0x1083d3=_0x2822b3['height']||0x0,_0x2a87a2=_0x1aa85d+_0x419d3a,_0x1d7b1d=_0x1e126b+_0x1083d3;return _0x283015['filter'](_0x16dbcc=>{const _0x10a6d0=_0x2d1c3f;let _0x1e59c0=_0x16dbcc['left']||0x0,_0xfec798=_0x16dbcc['top']||0x0,_0x2facc9=_0x16dbcc[_0x10a6d0(0x263)]||0x0,_0x39dab4=_0x16dbcc[_0x10a6d0(0x43a)]||0x0,_0x1cb2b4=_0x1e59c0+_0x2facc9,_0x1184fd=_0xfec798+_0x39dab4;return!(_0x2a87a2<=_0x1e59c0||_0x1aa85d>=_0x1cb2b4||_0x1d7b1d<=_0xfec798||_0x1e126b>=_0x1184fd);});}[_0x1f0caa(0x3d0)](_0x503c3c,_0x1db97f){const _0x3bf23e=_0x1f0caa;let _0x134808=_0x1db97f[_0x3bf23e(0x4a4)](y[_0x3bf23e(0x29c)][_0x3bf23e(0x376)]);if(!_0x134808)return;let _0x21f17a=_0x503c3c['left']||0x0,_0x992a46=_0x503c3c['top']||0x0,_0x2b40fa=_0x503c3c[_0x3bf23e(0x263)]||0x0,_0x510a1c=_0x503c3c['height']||0x0,_0x445fe6=_0x134808[_0x3bf23e(0x263)]||0x0,_0x47e203=_0x134808[_0x3bf23e(0x43a)]||0x0,_0xc1b4a6=_0x134808['viewportScrollX']||0x0,_0x3cda57=_0x134808[_0x3bf23e(0x23f)]||0x0,_0x4e1ec3=_0xc1b4a6,_0x323275=_0x3cda57,_0x324d34=_0xc1b4a6+_0x445fe6,_0x1a1c69=_0x3cda57+_0x47e203;if(_0x21f17a>=_0x4e1ec3&&_0x992a46>=_0x323275&&_0x21f17a+_0x2b40fa<=_0x324d34&&_0x992a46+_0x510a1c<=_0x1a1c69)return;let _0x55cb40=Math['max'](0x0,_0x21f17a-_0x445fe6/0x2+_0x2b40fa/0x2),_0xa912f6=Math[_0x3bf23e(0x537)](0x0,_0x992a46-_0x47e203/0x2+_0x510a1c/0x2);_0x134808[_0x3bf23e(0x25d)]({'viewportScrollX':_0x55cb40,'viewportScrollY':_0xa912f6});}[_0x1f0caa(0x4e4)](){const _0x558ee3=_0x1f0caa;return(0x0,M['getSheetObject'])(this[_0x558ee3(0x39b)],this['_renderManagerService']);}[_0x1f0caa(0x521)](){const _0x57d41e=_0x1f0caa;var _0xbe8481;(_0xbe8481=this['_pointerMoveSubscription'])==null||_0xbe8481[_0x57d41e(0x1cc)](),this[_0x57d41e(0x397)]=null,this[_0x57d41e(0x53d)](),super['dispose']();}};Ie=W([U(0x1,(0x0,e[_0x1f0caa(0x44b)])(q)),U(0x2,(0x0,e['Inject'])(J)),U(0x3,e['IUniverInstanceService']),U(0x4,y[_0x1f0caa(0x2c1)]),U(0x5,(0x0,e[_0x1f0caa(0x44b)])(M['SheetSkeletonManagerService'])),U(0x6,e[_0x1f0caa(0x231)]),U(0x7,_['IDrawingManagerService']),U(0x8,(0x0,e[_0x1f0caa(0x44b)])(e['LocaleService'])),U(0x9,(0x0,e[_0x1f0caa(0x44b)])(Pe))],Ie);let Le=class extends e['Disposable']{constructor(_0xfe1857,_0x14f235,_0x374fa4,_0x44ccad){const _0x14e667=_0x1f0caa;super(),this[_0x14e667(0x2ff)]=_0xfe1857,this[_0x14e667(0x268)]=_0x14f235,this['_historyManagerService']=_0x374fa4,this[_0x14e667(0x536)]=_0x44ccad,H(this,_0x14e667(0x477),null),this['_init']();}[_0x1f0caa(0x3b8)](){this['_initPanel']();}['_openPanel'](){const _0x396993=_0x1f0caa;var _0x555550;if(this[_0x396993(0x477)])return;let _0x5d59d0=(_0x555550=this[_0x396993(0x536)][_0x396993(0x41e)]('sheets-history-ui.config'))==null?void 0x0:_0x555550[_0x396993(0x47b)],_0x3787d4={'header':{'title':this['_localeService']['t'](_0x396993(0x284))},'children':{'label':_0x5d59d0},'onClose':()=>{const _0x4bd0b7=_0x396993;this['_sidebarDisposable']=null,this[_0x4bd0b7(0x337)][_0x4bd0b7(0x293)]();}};this[_0x396993(0x477)]=this['_sidebarService']['open']({..._0x3787d4});}[_0x1f0caa(0x464)](){const _0x117299=_0x1f0caa;this['disposeWithMe'](this[_0x117299(0x337)][_0x117299(0x2e7)][_0x117299(0x205)](_0x3cb16f=>{const _0x15a072=_0x117299;_0x3cb16f&&this[_0x15a072(0x3fa)]();}));}};Le=W([U(0x0,N[_0x1f0caa(0x507)]),U(0x1,(0x0,e['Inject'])(e[_0x1f0caa(0x470)])),U(0x2,(0x0,e['Inject'])(q)),U(0x3,e['IConfigService'])],Le);var Re=class extends e[_0x1f0caa(0x3d8)]{constructor(){const _0x51749c=_0x1f0caa;super(),H(this,_0x51749c(0x374),new P[(_0x51749c(0x288))]());}['open'](){const _0xe3c416=_0x1f0caa;return(0x0,e[_0xe3c416(0x241)])(()=>{});}[_0x1f0caa(0x3a5)](){}[_0x1f0caa(0x37a)](_0x163596){}['getDialogs$'](){const _0x5afb40=_0x1f0caa;return this[_0x5afb40(0x374)][_0x5afb40(0x42f)]();}};let ze=class extends e['Plugin']{constructor(_0x5264e0=V,_0x90e138,_0x394cf9,_0x5eda34){const _0x335d07=_0x1f0caa;super(),this[_0x335d07(0x2d3)]=_0x5264e0,this[_0x335d07(0x20d)]=_0x90e138,this['_renderManagerService']=_0x394cf9,this['_configService']=_0x5eda34;let {..._0x33d354}=(0x0,e[_0x335d07(0x345)])({},V,this['_config']);this[_0x335d07(0x536)][_0x335d07(0x19b)](B,_0x33d354);}[_0x1f0caa(0x45f)](){const _0x53c87d=_0x1f0caa;[[Y],[q],[Me],[J],[Pe],[G],[Le],[X],[n[_0x53c87d(0x381)],{'useClass':r[_0x53c87d(0x202)]}],[N[_0x53c87d(0x52f)],{'useClass':Re}],[e['IImageIoService'],{'useClass':r[_0x53c87d(0x197)]}]]['forEach'](_0x5366d7=>this[_0x53c87d(0x20d)][_0x53c87d(0x32b)](_0x5366d7)),this[_0x53c87d(0x20d)]['get'](Me),this[_0x53c87d(0x20d)][_0x53c87d(0x167)](Y);}[_0x1f0caa(0x1f6)](){const _0x316ad6=_0x1f0caa;[[Ie]][_0x316ad6(0x30e)](_0x3c81=>{const _0x3fa49b=_0x316ad6;this[_0x3fa49b(0x2e1)](this[_0x3fa49b(0x2af)]['registerRenderModule'](e['UniverInstanceType']['UNIVER_SHEET'],_0x3c81));}),this[_0x316ad6(0x20d)][_0x316ad6(0x167)](X),this[_0x316ad6(0x20d)][_0x316ad6(0x167)](Le);}[_0x1f0caa(0x4da)](){const _0x158fc4=_0x1f0caa;this[_0x158fc4(0x20d)][_0x158fc4(0x167)](J);}};H(ze,_0x1f0caa(0x4c6),_0x1f0caa(0x262)),H(ze,_0x1f0caa(0x3f2),se),H(ze,_0x1f0caa(0x234),ce),ze=W([(0x0,e[_0x1f0caa(0x4aa)])(a[_0x1f0caa(0x396)],_[_0x1f0caa(0x216)],y['UniverRenderEnginePlugin'],b[_0x1f0caa(0x2e3)],O[_0x1f0caa(0x28f)],j[_0x1f0caa(0x18f)],t[_0x1f0caa(0x3f3)],n[_0x1f0caa(0x22c)],S[_0x1f0caa(0x269)],o[_0x1f0caa(0x3a4)],c[_0x1f0caa(0x2ea)],d[_0x1f0caa(0x473)],M[_0x1f0caa(0x4ef)],w[_0x1f0caa(0x35b)]),U(0x1,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x404)])),U(0x2,y[_0x1f0caa(0x2c1)]),U(0x3,e[_0x1f0caa(0x41d)])],ze);function Be(_0x371960){const _0x113092=_0x1f0caa;let _0xc23a02=_0x371960[_0x113092(0x529)]();return{'locale':_0xc23a02,'locales':{[_0xc23a02]:_0x371960['getLocales']()},'direction':_0x371960['getDirection']()};}function Ve(_0x58da2d,_0x129879){const _0x30143d=_0x1f0caa;let _0x15769c=_0x129879['getDirection']();_0x58da2d[_0x30143d(0x280)]=_0x15769c,_0x58da2d[_0x30143d(0x15a)][_0x30143d(0x4c3)]=_0x15769c;}function He(_0x2b32f2){const _0x2b4fa4=_0x1f0caa;return Ue(_0x2b32f2)?typeof _0x2b32f2[_0x2b4fa4(0x44d)]==_0x2b4fa4(0x406)&&typeof _0x2b32f2[_0x2b4fa4(0x52b)]==_0x2b4fa4(0x4c8)&&Array[_0x2b4fa4(0x48a)](_0x2b32f2[_0x2b4fa4(0x526)])&&Ue(_0x2b32f2[_0x2b4fa4(0x363)]):!0x1;}function Ue(_0xa44a8b){return typeof _0xa44a8b=='object'&&!!_0xa44a8b;}const We=_0x1f0caa(0x4e1);let Z=class extends e[_0x1f0caa(0x3d8)]{constructor(_0x715dad,_0x1fe907,_0x37f10b,_0x103d68,_0x1dab8f,_0x284a95,_0x2e1490,_0x5847c8,_0x1e75e3,_0x3b2540){const _0x1897da=_0x1f0caa;super(),this['_localeService']=_0x715dad,this[_0x1897da(0x39b)]=_0x1fe907,this[_0x1897da(0x536)]=_0x37f10b,this[_0x1897da(0x211)]=_0x103d68,this[_0x1897da(0x498)]=_0x1dab8f,this[_0x1897da(0x193)]=_0x284a95,this['_selectionProtectionRuleModel']=_0x2e1490,this[_0x1897da(0x2c5)]=_0x5847c8,this[_0x1897da(0x2ff)]=_0x1e75e3,this[_0x1897da(0x447)]=_0x3b2540,H(this,_0x1897da(0x352),new P['BehaviorSubject'](null)),H(this,_0x1897da(0x437),this[_0x1897da(0x352)][_0x1897da(0x42f)]()),H(this,_0x1897da(0x306),new e[(_0x1897da(0x3a3))]()),H(this,'_pluginMap',new Map()),H(this,_0x1897da(0x42b),null),this[_0x1897da(0x3b8)]();}get[_0x1f0caa(0x41b)](){const _0x8fb183=_0x1f0caa;return this['_historyUniver$'][_0x8fb183(0x2a0)];}[_0x1f0caa(0x3b8)](){const _0x38c318=_0x1f0caa;this[_0x38c318(0x484)](),this[_0x38c318(0x2d6)]();}['_initContainer'](){const _0x3e5a34=_0x1f0caa;var _0x10f60c;let _0x588104=this[_0x3e5a34(0x536)][_0x3e5a34(0x41e)](B),_0x2e0c29=(_0x10f60c=this[_0x3e5a34(0x536)][_0x3e5a34(0x41e)](N[_0x3e5a34(0x4f4)]))==null?void 0x0:_0x10f60c[_0x3e5a34(0x1d8)],_0x8fe720=(_0x588104==null?void 0x0:_0x588104['univerContainerId'])??_0x2e0c29,_0x13724a=typeof _0x8fe720==_0x3e5a34(0x4c8)?document['getElementById'](_0x8fe720):_0x8fe720;if(!_0x13724a)throw Error(_0x3e5a34(0x285));let _0x4d2ced=document[_0x3e5a34(0x2a4)]('div');_0x4d2ced['id']=We,_0x4d2ced[_0x3e5a34(0x15a)][_0x3e5a34(0x4b1)]='absolute',_0x4d2ced[_0x3e5a34(0x15a)][_0x3e5a34(0x19e)]='0',_0x4d2ced[_0x3e5a34(0x15a)][_0x3e5a34(0x485)]='0',_0x4d2ced['style'][_0x3e5a34(0x263)]='100%',_0x4d2ced[_0x3e5a34(0x15a)][_0x3e5a34(0x43a)]=_0x3e5a34(0x44c),_0x4d2ced[_0x3e5a34(0x15a)][_0x3e5a34(0x2ab)]='49',_0x4d2ced[_0x3e5a34(0x15a)][_0x3e5a34(0x349)]=_0x3e5a34(0x1cf),Ve(_0x4d2ced,this[_0x3e5a34(0x268)]),_0x13724a['appendChild'](_0x4d2ced);}['_initPlugins'](){const _0x552a23=_0x1f0caa;[[y[_0x552a23(0x190)]],[N[_0x552a23(0x225)],{'container':We,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[N[_0x552a23(0x52f)],null]]}],[b[_0x552a23(0x2e3)]],[_[_0x552a23(0x216)],{'override':[[e[_0x552a23(0x1a2)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g[_0x552a23(0x2a8)]],[re[_0x552a23(0x1c2)]],[t[_0x552a23(0x3f3)],{'notExecuteFormula':!0x0}],[M[_0x552a23(0x4ef)]],[A[_0x552a23(0x29d)]],[ee['UniverSheetsFormulaUIPlugin']],[n[_0x552a23(0x22c)]],[O[_0x552a23(0x28f)]],[k[_0x552a23(0x440)]],[S['UniverSheetsConditionalFormattingPlugin']],[C['UniverSheetsConditionalFormattingUIPlugin']],[te[_0x552a23(0x47d)]],[ne[_0x552a23(0x2fd)]],[p['UniverDataValidationPlugin']],[w[_0x552a23(0x35b)]],[T['UniverSheetsDataValidationUIPlugin']],[i[_0x552a23(0x1e6)],{'notExecuteFormula':!0x0}],[v[_0x552a23(0x36e)]],[E['UniverSheetsDrawingPlugin']],[D[_0x552a23(0x2c9)]],[d[_0x552a23(0x473)]],[f[_0x552a23(0x191)]],[o[_0x552a23(0x3a4)]],[s[_0x552a23(0x1c3)]],[l[_0x552a23(0x46d)]],[u[_0x552a23(0x2e4)]],[c[_0x552a23(0x2ea)],{'notExecuteFormula':!0x0}],[j[_0x552a23(0x18f)]]]['forEach'](([_0x3d8212,_0x167d5f])=>this['registerPlugin'](_0x3d8212,_0x167d5f));}[_0x1f0caa(0x521)](){const _0x371ed1=_0x1f0caa;super[_0x371ed1(0x521)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x371ed1(0x42c)]();}['registerPlugin'](_0x73445,_0xd3065c,_0x3126b9){const _0x42b5f5=_0x1f0caa;if(this[_0x42b5f5(0x24f)][_0x42b5f5(0x35c)](_0x73445[_0x42b5f5(0x4c6)])&&!_0x3126b9)throw Error(_0x42b5f5(0x242)+_0x73445[_0x42b5f5(0x4c6)]+_0x42b5f5(0x364));this[_0x42b5f5(0x24f)][_0x42b5f5(0x520)](_0x73445['pluginName'],[_0x73445,_0xd3065c]);}[_0x1f0caa(0x488)](){const _0x4cfe30=_0x1f0caa;return Array[_0x4cfe30(0x1de)](this['_pluginMap'][_0x4cfe30(0x402)]());}['mountHistoryContent'](_0x2dfdcc,_0x180fbc){const _0x1ac5e5=_0x1f0caa;let _0x234aae=document[_0x1ac5e5(0x441)](We);_0x234aae&&(_0x234aae[_0x1ac5e5(0x15a)][_0x1ac5e5(0x349)]=_0x1ac5e5(0x26b),this['_initUniver'](_0x2dfdcc,We,_0x180fbc));}[_0x1f0caa(0x20a)](){const _0x9107e1=_0x1f0caa;var _0x4eda48;this[_0x9107e1(0x306)][_0x9107e1(0x521)](),(_0x4eda48=this[_0x9107e1(0x41b)])==null||_0x4eda48[_0x9107e1(0x521)](),this['_historyUniver$']['next'](null);let _0xa0433e=document['getElementById'](We);_0xa0433e&&(_0xa0433e[_0x9107e1(0x15a)][_0x9107e1(0x349)]=_0x9107e1(0x1cf),this[_0x9107e1(0x42b)]&&=(this[_0x9107e1(0x42b)]['terminate'](),null));}[_0x1f0caa(0x17f)](_0x45913f,_0x242512,_0x2794cb){const _0x2309a9=_0x1f0caa;var _0x2b0a3c,_0x577715,_0x2e40d4,_0x3dab01;if(this[_0x2309a9(0x41b)])return;let _0x2c8093=new e[(_0x2309a9(0x3c9))]({...Be(this['_localeService']),'override':[[e[_0x2309a9(0x4dc)],{'useClass':r[_0x2309a9(0x1a3)]}]]}),_0x577412=_0x2c8093[_0x2309a9(0x326)]();this['_syncViewerServices'](_0x577412,_0x242512),_0x577412['get'](e[_0x2309a9(0x41d)])['setConfig'](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x2309a9(0x536)][_0x2309a9(0x41e)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0xc97e6f=this['_configService'][_0x2309a9(0x41e)](a[_0x2309a9(0x27e)]);_0xc97e6f&&_0x2c8093['registerPlugin'](a[_0x2309a9(0x396)],{'license':_0xc97e6f['ls']});let _0x43fc55=(_0x2b0a3c=this['_configService'][_0x2309a9(0x41e)](_0x2309a9(0x4fd)))==null?void 0x0:_0x2b0a3c[_0x2309a9(0x2ac)];_0x43fc55&&(this[_0x2309a9(0x42b)]=_0x43fc55 instanceof Worker?_0x43fc55:null,_0x2c8093[_0x2309a9(0x196)](x[_0x2309a9(0x30a)],{'workerURL':_0x43fc55})),this[_0x2309a9(0x24f)][_0x2309a9(0x30e)](([_0x4b9ac6,_0xed854e])=>{const _0x5d99ee=_0x2309a9;_0x2c8093[_0x5d99ee(0x196)](_0x4b9ac6,_0xed854e);}),_0x2c8093[_0x2309a9(0x196)](ze,{'historyServerUrl':oe(this[_0x2309a9(0x536)]['getConfig'](B)),'historyPanelComponentKey':(_0x577715=this[_0x2309a9(0x536)][_0x2309a9(0x41e)](_0x2309a9(0x4fd)))==null?void 0x0:_0x577715['historyPanelComponentKey'],'historyPanelHidden':(_0x2e40d4=this[_0x2309a9(0x536)]['getConfig'](_0x2309a9(0x4fd)))==null?void 0x0:_0x2e40d4['historyPanelHidden'],'historyAIassistantEnabled':(_0x3dab01=this[_0x2309a9(0x536)][_0x2309a9(0x41e)]('sheets-history-ui.config'))==null?void 0x0:_0x3dab01[_0x2309a9(0x2f1)]}),_0x577412[_0x2309a9(0x409)](_0x57db72=>{const _0x285a4a=_0x2309a9;this[_0x285a4a(0x476)](_0x57db72,_0x45913f);}),this['_historyUniver$'][_0x2309a9(0x1d0)](_0x2c8093);let _0x34d632=_0x577412['get'](q),_0x4c0cab=this['_checkCanRevert'](_0x45913f);He(_0x2794cb)?_0x34d632['triggerCustomVersions'](_0x45913f,_0x4c0cab,_0x2794cb):_0x34d632['triggerLoadVersions'](_0x45913f,_0x4c0cab)['catch'](()=>void 0x0);}[_0x1f0caa(0x401)](_0x141193,_0x30e3cb){const _0x2a9844=_0x1f0caa;let _0x2796eb=_0x141193[_0x2a9844(0x167)](e['ThemeService']);this['_disposableCollection']['add'](this[_0x2a9844(0x447)][_0x2a9844(0x2d2)][_0x2a9844(0x205)](_0x2b6c5b=>{const _0x404032=_0x2a9844;_0x2796eb[_0x404032(0x2ce)](_0x2b6c5b);})),this['_disposableCollection'][_0x2a9844(0x32b)](this[_0x2a9844(0x447)][_0x2a9844(0x25f)][_0x2a9844(0x205)](_0x25d590=>{_0x2796eb['setTheme'](_0x25d590);}));let _0x5b2505=_0x141193['get'](e[_0x2a9844(0x470)]);this[_0x2a9844(0x306)][_0x2a9844(0x32b)](this[_0x2a9844(0x268)][_0x2a9844(0x282)][_0x2a9844(0x205)](_0x5e26ea=>{const _0x258c85=_0x2a9844;let _0x30f4fe=this[_0x258c85(0x268)][_0x258c85(0x1fc)]();_0x30f4fe&&_0x5b2505[_0x258c85(0x4d8)]({[_0x5e26ea]:_0x30f4fe}),_0x5b2505['setLocale'](_0x5e26ea);})),this['_disposableCollection'][_0x2a9844(0x32b)](this['_localeService'][_0x2a9844(0x420)]['subscribe'](_0x3d909d=>{const _0x308646=_0x2a9844;_0x5b2505[_0x308646(0x4ec)](_0x3d909d);let _0x1d6668=document[_0x308646(0x441)](_0x30e3cb);_0x1d6668&&(_0x1d6668[_0x308646(0x280)]=_0x3d909d,_0x1d6668[_0x308646(0x15a)][_0x308646(0x4c3)]=_0x3d909d);}));}[_0x1f0caa(0x476)](_0xc1729b,_0x15d024){const _0x3cdc7d=_0x1f0caa;let _0x4d3ae0=_0xc1729b[_0x3cdc7d(0x167)](q);this[_0x3cdc7d(0x306)]['add'](_0x4d3ae0[_0x3cdc7d(0x261)][_0x3cdc7d(0x205)](_0x206186=>{const _0xe60959=_0x3cdc7d;switch(_0x206186){case _0xe60959(0x2e0):this[_0xe60959(0x2c5)][_0xe60959(0x37a)](),this['_sidebarService'][_0xe60959(0x3a5)]();break;case _0xe60959(0x39e):this[_0xe60959(0x211)][_0xe60959(0x541)](Ke['id']),this['unMountHistoryContent']();break;case _0xe60959(0x42d):this['unMountHistoryContent'](),this[_0xe60959(0x498)]['show']({'content':this[_0xe60959(0x268)]['t']('sheets-history-ui.loader.panel.listFetchError'),'type':m[_0xe60959(0x40a)]['Error'],'duration':0xbb8});}})),this[_0x3cdc7d(0x306)][_0x3cdc7d(0x32b)](_0x4d3ae0[_0x3cdc7d(0x43c)][_0x3cdc7d(0x205)](_0x119a26=>{const _0x14953e=_0x3cdc7d;if(_0x119a26){let _0x155f19={'unitId':_0x15d024,'revision':_0x119a26};this[_0x14953e(0x211)][_0x14953e(0x541)](n[_0x14953e(0x276)]['id'],_0x155f19)[_0x14953e(0x3e2)](()=>{_0x4d3ae0['status']='error';});}}));}[_0x1f0caa(0x1a6)](_0x3d9eaf){const _0x3cf5c6=_0x1f0caa;let _0x54a8b6=this[_0x3cf5c6(0x39b)][_0x3cf5c6(0x171)](_0x3d9eaf);if(!_0x54a8b6)return!0x1;let _0x4f52b0=_0x54a8b6[_0x3cf5c6(0x1e8)]()[_0x3cf5c6(0x4f3)](_0x3ac3c2=>_0x3ac3c2['getSheetId']()),_0x128025=new t[(_0x3cf5c6(0x4b4))](_0x3d9eaf)['id'],_0x2051a2=_0x4f52b0[_0x3cf5c6(0x4f3)](_0x364213=>new t[(_0x3cf5c6(0x425))](_0x3d9eaf,_0x364213)['id']),_0x16355b=_0x4f52b0[_0x3cf5c6(0x4f3)](_0x4be934=>this[_0x3cf5c6(0x178)][_0x3cf5c6(0x492)](_0x3d9eaf,_0x4be934)['map'](_0xccc6=>new t[(_0x3cf5c6(0x219))](_0x3d9eaf,_0x4be934,_0xccc6[_0x3cf5c6(0x32e)])['id']))[_0x3cf5c6(0x514)](),_0x9c8e6=new t[(_0x3cf5c6(0x391))](_0x3d9eaf)['id'];return this[_0x3cf5c6(0x193)][_0x3cf5c6(0x4fa)]([_0x128025,..._0x2051a2,..._0x16355b,_0x9c8e6])[_0x3cf5c6(0x2b7)](_0x2b0fc8=>!!_0x2b0fc8[_0x3cf5c6(0x2a0)]);}};Z=W([U(0x0,(0x0,e['Inject'])(e[_0x1f0caa(0x470)])),U(0x1,e['IUniverInstanceService']),U(0x2,e[_0x1f0caa(0x41d)]),U(0x3,e[_0x1f0caa(0x231)]),U(0x4,N['IMessageService']),U(0x5,e[_0x1f0caa(0x31f)]),U(0x6,(0x0,e[_0x1f0caa(0x44b)])(t[_0x1f0caa(0x192)])),U(0x7,(0x0,e[_0x1f0caa(0x44b)])(N[_0x1f0caa(0x52f)])),U(0x8,(0x0,e[_0x1f0caa(0x44b)])(N[_0x1f0caa(0x507)])),U(0x9,(0x0,e[_0x1f0caa(0x44b)])(e['ThemeService']))],Z);const Ge={'id':_0x1f0caa(0x516),'type':e[_0x1f0caa(0x4df)][_0x1f0caa(0x1ef)],'handler':_0x31c00d=>{const _0x49a23f=_0x1f0caa;let _0x234889=_0x31c00d['get'](Z),_0x565ffa=_0x31c00d[_0x49a23f(0x167)](e['IUniverInstanceService']),{unitId:_0x19658f}=(0x0,t['getSheetCommandTarget'])(_0x565ffa)||{};return _0x19658f?(_0x234889[_0x49a23f(0x273)](_0x19658f),!0x0):!0x1;}},Ke={'id':_0x1f0caa(0x3ef),'type':e[_0x1f0caa(0x4df)][_0x1f0caa(0x1ef)],'handler':()=>!0x0};function qe(_0xe9a49f){const _0x2cd32e=_0x1f0caa;return{'id':Ge['id'],'type':N[_0x2cd32e(0x3d2)][_0x2cd32e(0x3a8)],'icon':_0x2cd32e(0x26d),'title':_0x2cd32e(0x303),'tooltip':'sheets-history-ui.loader.panel.title','hidden$':(0x0,N[_0x2cd32e(0x310)])(_0xe9a49f,e[_0x2cd32e(0x502)][_0x2cd32e(0x1dc)]),'disabled$':(0x0,M[_0x2cd32e(0x278)])(_0xe9a49f,{'workbookTypes':[t['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const Je={[N[_0x1f0caa(0x1e3)][_0x1f0caa(0x438)]]:{[Ge['id']]:{'order':0x64,'menuItemFactory':qe}}};function Ye(_0x1685f9){const _0x5ee639=_0x1f0caa;return!!(_0x1685f9&&_0x5ee639(0x53f)in _0x1685f9&&typeof _0x1685f9[_0x5ee639(0x53f)]==_0x5ee639(0x4c8)&&_0x5ee639(0x487)in _0x1685f9&&typeof _0x1685f9[_0x5ee639(0x487)]==_0x5ee639(0x1d2));}function Xe(_0x30fe6d,_0x36d8eb){const _0x4f6dd9=_0x1f0caa;return _0x30fe6d[_0x4f6dd9(0x207)]===n[_0x4f6dd9(0x50a)]['CHANGESET_ACK']&&(0x0,n['parseProtocolChangeset'])(_0x30fe6d['data'])['mutations']['some'](_0x48343e=>_0x48343e['id']===n[_0x4f6dd9(0x276)]['id']&&Ye(_0x48343e[_0x4f6dd9(0x490)])&&_0x48343e[_0x4f6dd9(0x490)][_0x4f6dd9(0x53f)]===_0x36d8eb[_0x4f6dd9(0x53f)]&&_0x48343e[_0x4f6dd9(0x490)][_0x4f6dd9(0x487)]===_0x36d8eb[_0x4f6dd9(0x487)]);}let Ze=class extends e[_0x1f0caa(0x2a7)]{constructor(_0x1e3b7b,_0x5b1072,_0x12c59f,_0x155b35,_0x25b7d5,_0x4dcf97,_0x124ccc,_0x136ee3,_0x45fc3f,_0x2c3849){const _0x166c75=_0x1f0caa;super(),this[_0x166c75(0x211)]=_0x1e3b7b,this['_menuManagerService']=_0x5b1072,this[_0x166c75(0x337)]=_0x12c59f,this[_0x166c75(0x268)]=_0x155b35,this['_messageService']=_0x25b7d5,this[_0x166c75(0x2b8)]=_0x4dcf97,this['_localCacheService']=_0x124ccc,this[_0x166c75(0x2ba)]=_0x136ee3,this[_0x166c75(0x39b)]=_0x45fc3f,this[_0x166c75(0x182)]=_0x2c3849,H(this,'_revertAcknowledgementSubscription',null),this[_0x166c75(0x2e1)]((0x0,e[_0x166c75(0x241)])(()=>this['_clearRevertAcknowledgement']())),this['_init']();}[_0x1f0caa(0x3b8)](){const _0x411ab8=_0x1f0caa;[Ge,Ke]['forEach'](_0x2e9cea=>this['disposeWithMe']((0x0,e[_0x411ab8(0x241)])(this['_commandService'][_0x411ab8(0x195)](_0x2e9cea)))),this['_menuManagerService'][_0x411ab8(0x37b)](Je),this[_0x411ab8(0x2e1)](this['_commandService'][_0x411ab8(0x28a)]((_0x14eaec,_0x25ff70)=>{const _0xb30362=_0x411ab8;if(_0x14eaec['id']===n[_0xb30362(0x276)]['id']&&Ye(_0x14eaec[_0xb30362(0x490)])){let {revision:_0x3adb3a,unitId:_0x3497da}=_0x14eaec[_0xb30362(0x490)];this[_0xb30362(0x498)][_0xb30362(0x2ec)]({'content':this['_localeService']['t'](_0xb30362(0x4cd)),'type':m[_0xb30362(0x40a)][_0xb30362(0x52d)],'duration':0x1388});let _0x20017d=this[_0xb30362(0x2b8)]['getCollabEntity'](_0x3497da);if(!_0x20017d){this['_showRevertFailed']();return;}_0x25ff70!=null&&_0x25ff70[_0xb30362(0x1f9)]?this[_0xb30362(0x483)](_0x20017d,{'revision':_0x3adb3a,'unitId':_0x3497da},async()=>(setTimeout(()=>window['location'][_0xb30362(0x3f6)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x20017d,{'revision':_0x3adb3a,'unitId':_0x3497da},async()=>{const _0x4cd06c=_0xb30362;let _0x5262c2=this[_0x4cd06c(0x39b)][_0x4cd06c(0x4e2)](e[_0x4cd06c(0x502)]['UNIVER_SHEET']),_0x4d7c7a=_0x5262c2==null?void 0x0:_0x5262c2[_0x4cd06c(0x3b3)]();if(!_0x4d7c7a)return!0x1;this[_0x4cd06c(0x39b)][_0x4cd06c(0x491)](_0x3497da);let _0x380e05=await this[_0x4cd06c(0x2ba)][_0x4cd06c(0x43e)](_0x3497da,e[_0x4cd06c(0x502)][_0x4cd06c(0x1dc)]);return _0x380e05&&_0x380e05 instanceof e[_0x4cd06c(0x38c)]?(await this[_0x4cd06c(0x289)](_0x380e05,_0x4d7c7a[_0x4cd06c(0x3af)]()),!0x0):!0x1;});}}));}[_0x1f0caa(0x483)](_0x59a67e,_0x1d65ac,_0x14bfef,_0x397f2c=!0x1){const _0x570fda=_0x1f0caa;this[_0x570fda(0x543)]();let _0x4dcc38=(0x0,P['combineLatest'])([_0x59a67e[_0x570fda(0x4fc)][_0x570fda(0x3ab)],_0x59a67e[_0x570fda(0x1dd)]])[_0x570fda(0x387)]((0x0,P['filter'])(([_0x28c77d,_0x4cb4ba])=>Xe(_0x28c77d,_0x1d65ac)&&(_0x4cb4ba==null?void 0x0:_0x4cb4ba[_0x570fda(0x2bf)])===r[_0x570fda(0x460)]['SYNCED']),(0x0,P[_0x570fda(0x340)])(0x1)),_0x2f9b8a=_0x4dcc38;_0x397f2c&&(_0x2f9b8a=_0x4dcc38[_0x570fda(0x387)]((0x0,P[_0x570fda(0x3a1)])({'first':0x1388}))),this[_0x570fda(0x2a2)]=_0x2f9b8a['pipe']((0x0,P['switchMap'])(async()=>{const _0x4c6962=_0x570fda;let _0x5e0625=await _0x14bfef();return _0x5e0625&&(this['_historyManagerService'][_0x4c6962(0x20a)](),await this[_0x4c6962(0x3fd)][_0x4c6962(0x482)]()),_0x5e0625;}),(0x0,P[_0x570fda(0x44e)])(this[_0x570fda(0x22f)]))['subscribe']({'next':_0x185c06=>{const _0x34a3cc=_0x570fda;this[_0x34a3cc(0x543)](),_0x185c06?this[_0x34a3cc(0x498)][_0x34a3cc(0x2a6)]():this['_showRevertFailed']();},'error':()=>{const _0x186d6f=_0x570fda;this[_0x186d6f(0x543)](),this['_showRevertFailed']();}});}[_0x1f0caa(0x543)](){const _0x554583=_0x1f0caa;var _0x2fbaf2;(_0x2fbaf2=this[_0x554583(0x2a2)])==null||_0x2fbaf2[_0x554583(0x1cc)](),this['_revertAcknowledgementSubscription']=null;}[_0x1f0caa(0x25c)](){const _0xb04b31=_0x1f0caa;this[_0xb04b31(0x498)][_0xb04b31(0x2ec)]({'content':this[_0xb04b31(0x268)]['t'](_0xb04b31(0x1b7)),'type':m[_0xb04b31(0x40a)]['Error'],'duration':0xbb8});}async[_0x1f0caa(0x289)](_0x3ee0bc,_0x57559c){const _0x5d1e0c=_0x1f0caa;await this[_0x5d1e0c(0x4c0)](_0x3ee0bc,_0x57559c),_0x3ee0bc['activeSheet$'][_0x5d1e0c(0x387)]((0x0,P[_0x5d1e0c(0x44e)])(this[_0x5d1e0c(0x22f)]))['subscribe'](_0x1c528d=>{const _0x33520f=_0x5d1e0c;_0x1c528d&&this[_0x33520f(0x316)](_0x1c528d);}),this[_0x5d1e0c(0x182)]['urlChange$']['pipe']((0x0,P['takeUntil'])(this[_0x5d1e0c(0x22f)]))[_0x5d1e0c(0x205)](()=>this[_0x5d1e0c(0x4c0)](_0x3ee0bc,_0x57559c));}[_0x1f0caa(0x316)](_0x3efa18,_0x5722f9=!0x1){const _0x3caac5=_0x1f0caa;let _0x21358d=this[_0x3caac5(0x182)][_0x3caac5(0x1bb)](_0x3caac5(0x38f));_0x3efa18[_0x3caac5(0x3af)]()!==_0x21358d&&this[_0x3caac5(0x182)][_0x3caac5(0x524)](_0x3caac5(0x38f),_0x3efa18['getSheetId'](),_0x5722f9);}async[_0x1f0caa(0x4c0)](_0x254856,_0x1fa2d8){const _0x4adee6=_0x1f0caa;var _0x50e172;if(!_0x1fa2d8||!_0x254856[_0x4adee6(0x46a)](_0x1fa2d8)){let _0x1cf9e6=_0x254856[_0x4adee6(0x4f6)]()[0x0],_0x268924=_0x254856['getSheetBySheetId'](_0x1cf9e6);if(!_0x268924)return;this[_0x4adee6(0x316)](_0x268924,!0x0),await this[_0x4adee6(0x211)][_0x4adee6(0x541)](t[_0x4adee6(0x39a)]['id'],{'unitId':_0x254856[_0x4adee6(0x29e)](),'subUnitId':_0x1cf9e6});return;}((_0x50e172=_0x254856['getActiveSheet']())==null?void 0x0:_0x50e172[_0x4adee6(0x3af)]())!==_0x1fa2d8&&await this[_0x4adee6(0x211)][_0x4adee6(0x541)](t[_0x4adee6(0x39a)]['id'],{'unitId':_0x254856['getUnitId'](),'subUnitId':_0x1fa2d8});}};Ze=W([U(0x0,e[_0x1f0caa(0x231)]),U(0x1,N['IMenuManagerService']),U(0x2,(0x0,e['Inject'])(Z)),U(0x3,(0x0,e['Inject'])(e[_0x1f0caa(0x470)])),U(0x4,N[_0x1f0caa(0x454)]),U(0x5,(0x0,e[_0x1f0caa(0x44b)])(r['CollaborationController'])),U(0x6,r[_0x1f0caa(0x321)]),U(0x7,(0x0,e[_0x1f0caa(0x44b)])(r[_0x1f0caa(0x500)])),U(0x8,e[_0x1f0caa(0x177)]),U(0x9,z['IURLService'])],Ze);let Qe=class extends e[_0x1f0caa(0x3d8)]{constructor(_0x2c1a21){const _0x4c4a79=_0x1f0caa;super(),this['disposeWithMe'](_0x2c1a21['register']({'HistoryIcon':F[_0x4c4a79(0x26d)]}));}};Qe=W([U(0x0,(0x0,e[_0x1f0caa(0x44b)])(N[_0x1f0caa(0x277)]))],Qe);function $e(){const _0x22846b=_0x1f0caa;let _0x2f7e16=(0x0,N[_0x22846b(0x4cc)])(q),_0xd08d1=(0x0,N[_0x22846b(0x4cc)])(e['LocaleService']),_0x44f3a4=(0x0,N[_0x22846b(0x212)])(_0x2f7e16[_0x22846b(0x3bb)]),_0x436c8b=(0x0,I[_0x22846b(0x336)])(()=>_0x44f3a4?_0x2f7e16[_0x22846b(0x50c)]():!0x1,[_0x2f7e16,_0x44f3a4]),_0x5e203a=(0x0,I[_0x22846b(0x394)])(()=>{const _0x8a5965=_0x22846b;_0x2f7e16[_0x8a5965(0x293)]();},[_0x2f7e16]),_0x2c4492=(0x0,I[_0x22846b(0x394)])(()=>{const _0x881394=_0x22846b;_0x2f7e16[_0x881394(0x4ad)]();},[_0x2f7e16]);return(0x0,R['jsxs'])(_0x22846b(0x30b),{'className':_0x22846b(0x38b),'children':[(0x0,R[_0x22846b(0x328)])(m['Button'],{'variant':_0x22846b(0x1bf),'onClick':_0x5e203a,'children':_0xd08d1['t'](_0x22846b(0x466))}),_0x436c8b?(0x0,R[_0x22846b(0x328)])(m[_0x22846b(0x43d)],{'variant':_0x22846b(0x1bf),'onClick':_0x2c4492,'children':_0xd08d1['t'](_0x22846b(0x250))}):(0x0,R[_0x22846b(0x328)])(_0x22846b(0x30b),{'className':'univer-w-10'})]});}let et=class extends e[_0x1f0caa(0x3d8)]{constructor(_0x2d0296,_0x436c3f,_0x4c75b1,_0x512ba4,_0x52b24c,_0x1dc94a,_0x3fff10){const _0x49072a=_0x1f0caa;super(),this['_permissionService']=_0x2d0296,this[_0x49072a(0x283)]=_0x436c3f,this[_0x49072a(0x498)]=_0x4c75b1,this[_0x49072a(0x268)]=_0x512ba4,this[_0x49072a(0x337)]=_0x52b24c,this['_injector']=_0x1dc94a,this[_0x49072a(0x536)]=_0x3fff10,this[_0x49072a(0x3b8)]();}[_0x1f0caa(0x3b8)](){const _0x3f8b84=_0x1f0caa;this[_0x3f8b84(0x2e1)](this[_0x3f8b84(0x337)][_0x3f8b84(0x3bb)][_0x3f8b84(0x205)](_0x6025dd=>{const _0x57c2b6=_0x3f8b84;_0x6025dd&&this[_0x57c2b6(0x337)][_0x57c2b6(0x47f)](_0x6025dd);})),this['disposeWithMe'](this[_0x3f8b84(0x193)][_0x3f8b84(0x1f4)][_0x3f8b84(0x205)](_0x3694f9=>{const _0x39b008=_0x3f8b84;let _0x2f251b=this[_0x39b008(0x337)][_0x39b008(0x53f)];_0x2f251b&&(_0x3694f9[_0x39b008(0x26e)]===L[_0x39b008(0x183)][_0x39b008(0x346)]&&_0x3694f9[_0x39b008(0x2a0)]===!0x0&&this[_0x39b008(0x193)][_0x39b008(0x307)](new t[(_0x39b008(0x4b4))](_0x2f251b)['id'],!0x1),_0x3694f9['subType']===L[_0x39b008(0x183)]['RenameSheet']&&_0x3694f9['value']===!0x0&&this['_permissionService'][_0x39b008(0x307)](new t[(_0x39b008(0x194))](_0x2f251b)['id'],!0x1),_0x3694f9[_0x39b008(0x26e)]===L[_0x39b008(0x183)]['MoveSheet']&&_0x3694f9[_0x39b008(0x2a0)]===!0x0&&this[_0x39b008(0x193)]['updatePermissionPoint'](new t[(_0x39b008(0x4a3))](_0x2f251b)['id'],!0x1),_0x3694f9[_0x39b008(0x26e)]===L[_0x39b008(0x183)][_0x39b008(0x15f)]&&_0x3694f9[_0x39b008(0x2a0)]===!0x0&&this[_0x39b008(0x193)][_0x39b008(0x307)](new t[(_0x39b008(0x3e5))](_0x2f251b)['id'],!0x1),_0x3694f9[_0x39b008(0x26e)]===L['UnitAction'][_0x39b008(0x1f3)]&&_0x3694f9[_0x39b008(0x2a0)]===!0x0&&this[_0x39b008(0x193)]['updatePermissionPoint'](new t['WorkbookEditablePermission'](_0x2f251b)['id'],!0x1),_0x3694f9[_0x39b008(0x26e)]===L[_0x39b008(0x183)]['FloatImg']&&_0x3694f9[_0x39b008(0x2a0)]===!0x0&&this[_0x39b008(0x193)][_0x39b008(0x307)](new t[(_0x39b008(0x4b4))](_0x2f251b)['id'],!0x1));})),this[_0x3f8b84(0x26c)](),this[_0x3f8b84(0x4f8)]();let _0x4d3b6a=null;this[_0x3f8b84(0x2e1)]((0x0,e[_0x3f8b84(0x241)])(()=>_0x4d3b6a==null?void 0x0:_0x4d3b6a[_0x3f8b84(0x521)]())),this[_0x3f8b84(0x2e1)](this[_0x3f8b84(0x337)]['loadingState$'][_0x3f8b84(0x205)](_0x46ba47=>{const _0x1efd0b=_0x3f8b84;_0x4d3b6a==null||_0x4d3b6a[_0x1efd0b(0x521)](),_0x4d3b6a=null,_0x46ba47===_0x1efd0b(0x386)&&(_0x4d3b6a=this[_0x1efd0b(0x498)][_0x1efd0b(0x2ec)]({'type':m['MessageType'][_0x1efd0b(0x3b6)],'content':this[_0x1efd0b(0x268)]['t'](_0x1efd0b(0x2f7)),'duration':0x3e8}));}));}[_0x1f0caa(0x26c)](){const _0x15296c=_0x1f0caa;var _0x209ff0;(_0x209ff0=this['_configService'][_0x15296c(0x41e)](_0x15296c(0x4fd)))!=null&&_0x209ff0[_0x15296c(0x540)]||this[_0x15296c(0x2e1)](this['_uiPartsService'][_0x15296c(0x28c)](N['BuiltInUIPart'][_0x15296c(0x418)],()=>(0x0,N['connectInjector'])($e,this[_0x15296c(0x20d)])));}[_0x1f0caa(0x4f8)](){const _0x46c09f=_0x1f0caa;this['disposeWithMe'](this[_0x46c09f(0x283)][_0x46c09f(0x28c)](N[_0x46c09f(0x36c)]['GLOBAL'],()=>(0x0,N[_0x46c09f(0x40d)])(Ae,this[_0x46c09f(0x20d)])));}};et=W([U(0x0,e[_0x1f0caa(0x31f)]),U(0x1,N['IUIPartsService']),U(0x2,N[_0x1f0caa(0x454)]),U(0x3,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x470)])),U(0x4,(0x0,e[_0x1f0caa(0x44b)])(q)),U(0x5,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x404)])),U(0x6,e[_0x1f0caa(0x41d)])],et);function tt(_0x855bf1){const _0x404681=_0x1f0caa;var _0x1ff6da;let {item:_0x58956b,isNewest:_0x1cfe36}=_0x855bf1,_0x185890=(0x0,N[_0x404681(0x4cc)])(q),_0x581072=(0x0,N[_0x404681(0x4cc)])(J),_0x306b30=(0x0,N[_0x404681(0x4cc)])(e[_0x404681(0x470)]),_0x1914d8=(0x0,N['useObservable'])(_0x185890[_0x404681(0x3bb)],'',!0x0)===_0x58956b['id'],_0x57cdf9=K(_0x58956b['time'],_0x306b30),_0x113607=!_0x1cfe36&&_0x185890[_0x404681(0x370)],_0x3e9ea6=(0x0,I[_0x404681(0x394)])(async()=>{const _0x19562c=_0x404681;_0x185890['loadingState']!==_0x19562c(0x386)&&(_0x185890[_0x19562c(0x189)](_0x58956b['id']),await _0x581072[_0x19562c(0x180)](_0x58956b['id']));},[_0x185890,_0x581072,_0x58956b['id']]),_0x502e84=(0x0,I['useCallback'])(_0xdf214c=>{_0xdf214c['stopPropagation'](),_0x185890['triggerRevert'](_0x58956b['id']);},[_0x185890,_0x58956b['id']]),_0x4b7c23=((_0x1ff6da=_0x58956b[_0x404681(0x461)])==null?void 0x0:_0x1ff6da[_0x404681(0x463)](Boolean)[_0x404681(0x443)](',\x20'))||_0x58956b[_0x404681(0x486)]||_0x306b30['t'](_0x404681(0x246));return(0x0,R['jsxs'])(_0x404681(0x30b),{'className':(0x0,m[_0x404681(0x333)])(_0x404681(0x2b9),_0x1914d8&&_0x404681(0x489)),'onClick':_0x3e9ea6,'children':[(0x0,R[_0x404681(0x28e)])(_0x404681(0x30b),{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,R['jsxs'])(_0x404681(0x30b),{'className':'univer-mb-0.5\x20univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,R['jsx'])(_0x404681(0x2bc),{'className':_0x404681(0x4ee),'children':_0x4b7c23}),_0x1cfe36&&(0x0,R['jsx'])('span',{'className':_0x404681(0x157),'children':_0x306b30['t'](_0x404681(0x4a7))})]}),(0x0,R['jsxs'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,R[_0x404681(0x328)])(_0x404681(0x2bc),{'className':_0x404681(0x431),'children':_0x57cdf9[_0x404681(0x523)]}),(0x0,R['jsx'])(_0x404681(0x2bc),{'className':_0x404681(0x2d4),'children':_e(_0x58956b,_0x306b30)})]})]}),_0x113607&&(0x0,R[_0x404681(0x328)])(m[_0x404681(0x43d)],{'size':'small','variant':_0x404681(0x3c2),'onClick':_0x502e84,'children':_0x306b30['t'](_0x404681(0x250))})]});}function nt(){const _0x5e95f6=_0x1f0caa;let _0x37ece0=(0x0,N[_0x5e95f6(0x4cc)])(q),_0x51f715=(0x0,N[_0x5e95f6(0x4cc)])(e['LocaleService']),_0xce13f9=(0x0,N[_0x5e95f6(0x212)])(_0x37ece0[_0x5e95f6(0x3e7)]),_0x46885a=(0x0,N[_0x5e95f6(0x212)])(_0x37ece0[_0x5e95f6(0x19a)]),_0x49bff9=(0x0,I[_0x5e95f6(0x533)])(null),[_0xa30f3b,_0x36c41e]=(0x0,I[_0x5e95f6(0x20b)])(!0x0);(0x0,I[_0x5e95f6(0x348)])(()=>{const _0xc534b8=_0x5e95f6;let _0x8b0f21=_0x49bff9[_0xc534b8(0x450)];if(!_0x8b0f21||!_0xa30f3b)return;let _0x35576e,_0x41ecce=()=>{clearTimeout(_0x35576e),_0x35576e=setTimeout(()=>{const _0x2da446=_0x1a9f;let {scrollTop:_0x34aa13,scrollHeight:_0xf60e10,clientHeight:_0x174cd1}=_0x8b0f21;_0x34aa13+_0x174cd1>=_0xf60e10-0xa&&_0x37ece0[_0x2da446(0x1a9)]()[_0x2da446(0x3e2)](()=>void 0x0);},0x64);};return _0x8b0f21[_0xc534b8(0x36a)](_0xc534b8(0x1ce),_0x41ecce),()=>{const _0x428d9c=_0xc534b8;clearTimeout(_0x35576e),_0x8b0f21[_0x428d9c(0x513)](_0x428d9c(0x1ce),_0x41ecce);};},[_0x37ece0,_0xa30f3b]);let _0x2cd071=be(_0xce13f9??[]);return(0x0,R[_0x5e95f6(0x328)])('div',{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-10\x20univer-flex\x20univer-flex-col\x20univer-justify-end','children':(0x0,R[_0x5e95f6(0x28e)])(_0x5e95f6(0x30b),{'className':(0x0,m[_0x5e95f6(0x333)])(_0x5e95f6(0x3ba),_0xa30f3b?'univer-h-[60%]':_0x5e95f6(0x22b)),'children':[(0x0,R[_0x5e95f6(0x28e)])(_0x5e95f6(0x30b),{'className':_0x5e95f6(0x2f9),'onClick':()=>_0x36c41e(_0x1460e2=>!_0x1460e2),'children':[(0x0,R[_0x5e95f6(0x328)])(_0x5e95f6(0x30b),{'className':'univer-h-1\x20univer-w-10\x20univer-rounded-full\x20univer-bg-gray-300\x20dark:!univer-bg-gray-600'}),!_0xa30f3b&&(0x0,R[_0x5e95f6(0x328)])(_0x5e95f6(0x2bc),{'className':_0x5e95f6(0x172),'children':_0x51f715['t'](_0x5e95f6(0x284))})]}),_0xa30f3b&&(0x0,R[_0x5e95f6(0x328)])(R[_0x5e95f6(0x290)],{'children':_0xce13f9?(0x0,R[_0x5e95f6(0x28e)])(_0x5e95f6(0x30b),{'ref':_0x49bff9,'className':_0x5e95f6(0x49d),'children':[_0x2cd071[_0x5e95f6(0x4f3)](_0x4e138b=>(0x0,R['jsxs'])(_0x5e95f6(0x30b),{'children':[(0x0,R[_0x5e95f6(0x328)])('div',{'className':_0x5e95f6(0x1d1),'children':ye(_0x4e138b[_0x5e95f6(0x3b9)],_0x51f715)}),_0x4e138b[_0x5e95f6(0x526)][_0x5e95f6(0x4f3)]((_0x3915e1,_0x468c39)=>(0x0,R[_0x5e95f6(0x328)])(tt,{'item':_0x3915e1,'isNewest':_0x2cd071[0x0]===_0x4e138b&&_0x468c39===0x0},_0x3915e1['id']))]},_0x4e138b[_0x5e95f6(0x286)])),_0x46885a&&(0x0,R[_0x5e95f6(0x328)])(_0x5e95f6(0x30b),{'className':'univer-flex\x20univer-items-center\x20univer-justify-center\x20univer-py-4','children':(0x0,R[_0x5e95f6(0x328)])(F[_0x5e95f6(0x221)],{'className':_0x5e95f6(0x432)})})]}):(0x0,R[_0x5e95f6(0x328)])(_0x5e95f6(0x30b),{'className':_0x5e95f6(0x45e),'children':(0x0,R[_0x5e95f6(0x328)])(F[_0x5e95f6(0x221)],{'className':_0x5e95f6(0x432)})})})]})});}let rt=class extends e[_0x1f0caa(0x3d8)]{constructor(_0xc3561b,_0x109bd0){const _0x36614e=_0x1f0caa;super(),this[_0x36614e(0x283)]=_0xc3561b,this[_0x36614e(0x20d)]=_0x109bd0,this['disposeWithMe'](this[_0x36614e(0x283)][_0x36614e(0x28c)](N[_0x36614e(0x36c)][_0x36614e(0x398)],()=>(0x0,N['connectInjector'])(nt,this[_0x36614e(0x20d)])));}};rt=W([U(0x0,N[_0x1f0caa(0x44a)]),U(0x1,(0x0,e['Inject'])(e[_0x1f0caa(0x404)]))],rt);let it=class extends e[_0x1f0caa(0x2e8)]{constructor(_0x1dbacd=V,_0x2a2d07,_0x5398d3,_0x1f7e03){const _0x376ce8=_0x1f0caa;super(),this[_0x376ce8(0x2d3)]=_0x1dbacd,this[_0x376ce8(0x20d)]=_0x2a2d07,this[_0x376ce8(0x2af)]=_0x5398d3,this['_configService']=_0x1f7e03;let {..._0x33518f}=(0x0,e[_0x376ce8(0x345)])({},V,this['_config']);this[_0x376ce8(0x536)][_0x376ce8(0x19b)](B,_0x33518f);}[_0x1f0caa(0x45f)](){const _0x1e4694=_0x1f0caa;[[Qe],[q],[et],[J],[Pe],[G],[rt],[X],[n[_0x1e4694(0x381)],{'useClass':r[_0x1e4694(0x202)]}],[N[_0x1e4694(0x52f)],{'useClass':Re}],[e[_0x1e4694(0x1a2)],{'useClass':r[_0x1e4694(0x197)]}]][_0x1e4694(0x30e)](_0x57817=>this[_0x1e4694(0x20d)]['add'](_0x57817)),this['_injector'][_0x1e4694(0x167)](et),this[_0x1e4694(0x20d)]['get'](Qe);}[_0x1f0caa(0x1f6)](){const _0x490402=_0x1f0caa;[[Ie]][_0x490402(0x30e)](_0x4db90f=>{const _0x40fe49=_0x490402;this[_0x40fe49(0x2e1)](this[_0x40fe49(0x2af)][_0x40fe49(0x1a5)](e[_0x40fe49(0x502)][_0x40fe49(0x1dc)],_0x4db90f));}),this[_0x490402(0x20d)][_0x490402(0x167)](X),this['_injector']['get'](rt);}[_0x1f0caa(0x4da)](){const _0x2d62a2=_0x1f0caa;this['_injector'][_0x2d62a2(0x167)](J);}};H(it,'pluginName','UNIVER_SHEETS_HISTORY_VIEWER_MOBILE_PLUGIN'),H(it,_0x1f0caa(0x3f2),se),H(it,_0x1f0caa(0x234),ce),it=W([(0x0,e['DependentOn'])(a[_0x1f0caa(0x396)],_[_0x1f0caa(0x216)],y['UniverRenderEnginePlugin'],b['UniverNetworkPlugin'],O[_0x1f0caa(0x28f)],j[_0x1f0caa(0x18f)],t[_0x1f0caa(0x3f3)],N['UniverMobileUIPlugin'],n[_0x1f0caa(0x22c)],S[_0x1f0caa(0x269)],o['UniverSheetsChartPlugin'],c[_0x1f0caa(0x2ea)],d['UniverSheetSparklinePlugin'],M[_0x1f0caa(0x175)],w[_0x1f0caa(0x35b)]),U(0x1,(0x0,e[_0x1f0caa(0x44b)])(e['Injector'])),U(0x2,y[_0x1f0caa(0x2c1)]),U(0x3,e[_0x1f0caa(0x41d)])],it);const at=_0x1f0caa(0x265);let ot=class extends e[_0x1f0caa(0x3d8)]{constructor(_0x4c4b86,_0x4af836,_0x498136,_0x2f8f1a,_0x2c793b,_0x59b576,_0x13b7dc,_0x1bb22d,_0x999dbe,_0x1d7fc0){const _0x4cd451=_0x1f0caa;super(),this[_0x4cd451(0x268)]=_0x4c4b86,this[_0x4cd451(0x39b)]=_0x4af836,this[_0x4cd451(0x536)]=_0x498136,this[_0x4cd451(0x211)]=_0x2f8f1a,this[_0x4cd451(0x498)]=_0x2c793b,this[_0x4cd451(0x193)]=_0x59b576,this['_selectionProtectionRuleModel']=_0x13b7dc,this[_0x4cd451(0x2c5)]=_0x1bb22d,this[_0x4cd451(0x2ff)]=_0x999dbe,this[_0x4cd451(0x447)]=_0x1d7fc0,H(this,_0x4cd451(0x352),new P[(_0x4cd451(0x1fa))](null)),H(this,'historyUniver$',this['_historyUniver$'][_0x4cd451(0x42f)]()),H(this,'_disposableCollection',new e[(_0x4cd451(0x3a3))]()),H(this,_0x4cd451(0x24f),new Map()),H(this,_0x4cd451(0x42b),null),this[_0x4cd451(0x3b8)]();}get[_0x1f0caa(0x41b)](){const _0x2cb355=_0x1f0caa;return this[_0x2cb355(0x352)][_0x2cb355(0x2a0)];}[_0x1f0caa(0x3b8)](){const _0x4481e0=_0x1f0caa;this[_0x4481e0(0x484)](),this[_0x4481e0(0x2d6)]();}[_0x1f0caa(0x484)](){const _0x46cdbe=_0x1f0caa;var _0x49d82c;let _0xc45373=this[_0x46cdbe(0x536)][_0x46cdbe(0x41e)](B),_0xbea2e1=(_0x49d82c=this[_0x46cdbe(0x536)][_0x46cdbe(0x41e)](N[_0x46cdbe(0x4f4)]))==null?void 0x0:_0x49d82c[_0x46cdbe(0x1d8)],_0x3a5a95=(_0xc45373==null?void 0x0:_0xc45373[_0x46cdbe(0x3a9)])??_0xbea2e1,_0x24324e=typeof _0x3a5a95==_0x46cdbe(0x4c8)?document[_0x46cdbe(0x441)](_0x3a5a95):_0x3a5a95;if(!_0x24324e)throw Error(_0x46cdbe(0x169));let _0x12c9f6=document['createElement']('div');_0x12c9f6['id']=at,_0x12c9f6[_0x46cdbe(0x15a)]['position']='absolute',_0x12c9f6['style'][_0x46cdbe(0x19e)]='0',_0x12c9f6['style']['left']='0',_0x12c9f6['style']['width']='100%',_0x12c9f6[_0x46cdbe(0x15a)][_0x46cdbe(0x43a)]='100%',_0x12c9f6[_0x46cdbe(0x15a)]['zIndex']='49',_0x12c9f6[_0x46cdbe(0x15a)][_0x46cdbe(0x349)]=_0x46cdbe(0x1cf),Ve(_0x12c9f6,this[_0x46cdbe(0x268)]),_0x24324e[_0x46cdbe(0x33d)](_0x12c9f6);}[_0x1f0caa(0x2d6)](){const _0x5227f7=_0x1f0caa;[[y[_0x5227f7(0x190)]],[N[_0x5227f7(0x3ae)],{'container':at,'header':!0x0,'toolbar':!0x1,'footer':!0x1,'contextMenu':!0x1,'override':[[N[_0x5227f7(0x52f)],null]]}],[b[_0x5227f7(0x2e3)]],[_[_0x5227f7(0x216)],{'override':[[e[_0x5227f7(0x1a2)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g[_0x5227f7(0x2a8)]],[re[_0x5227f7(0x1c2)]],[t[_0x5227f7(0x3f3)],{'notExecuteFormula':!0x0}],[M[_0x5227f7(0x175)],{'footer':{'addSheetButtonConfig':{'show':!0x1}}}],[A[_0x5227f7(0x29d)]],[ee[_0x5227f7(0x270)]],[n['UniverCollaborationPlugin']],[O[_0x5227f7(0x28f)]],[S[_0x5227f7(0x269)]],[te[_0x5227f7(0x47d)]],[ne['UniverSheetsHyperLinkMobileUIPlugin']],[p[_0x5227f7(0x3c5)]],[w[_0x5227f7(0x35b)]],[T[_0x5227f7(0x417)]],[i[_0x5227f7(0x1e6)],{'notExecuteFormula':!0x0}],[v[_0x5227f7(0x34a)]],[E[_0x5227f7(0x508)]],[D[_0x5227f7(0x1c1)]],[d[_0x5227f7(0x473)]],[f[_0x5227f7(0x2bb)]],[o[_0x5227f7(0x3a4)]],[s[_0x5227f7(0x4d3)]],[l['UniverSheetsShapePlugin']],[u[_0x5227f7(0x294)]],[c[_0x5227f7(0x2ea)],{'notExecuteFormula':!0x0}],[j[_0x5227f7(0x18f)]]][_0x5227f7(0x30e)](([_0x4c50c5,_0x2c9442])=>this[_0x5227f7(0x196)](_0x4c50c5,_0x2c9442));}[_0x1f0caa(0x521)](){const _0x47a2cd=_0x1f0caa;super[_0x47a2cd(0x521)](),this[_0x47a2cd(0x20a)](),this[_0x47a2cd(0x24f)]['clear']();}[_0x1f0caa(0x196)](_0x307297,_0x3e769e,_0x3073d4){const _0x120539=_0x1f0caa;if(this[_0x120539(0x24f)][_0x120539(0x35c)](_0x307297[_0x120539(0x4c6)])&&!_0x3073d4)throw Error(_0x120539(0x2bd)+_0x307297[_0x120539(0x4c6)]+_0x120539(0x364));this[_0x120539(0x24f)]['set'](_0x307297[_0x120539(0x4c6)],[_0x307297,_0x3e769e]);}[_0x1f0caa(0x488)](){const _0x509b8d=_0x1f0caa;return Array[_0x509b8d(0x1de)](this['_pluginMap'][_0x509b8d(0x402)]());}[_0x1f0caa(0x273)](_0x5434d,_0x30130b){const _0xcc6693=_0x1f0caa;let _0x43ceb4=document[_0xcc6693(0x441)](at);_0x43ceb4&&(_0x43ceb4['style'][_0xcc6693(0x349)]=_0xcc6693(0x26b),this[_0xcc6693(0x17f)](_0x5434d,_0x30130b));}[_0x1f0caa(0x20a)](){const _0x97f9a6=_0x1f0caa;var _0x517c5a;this[_0x97f9a6(0x306)]['dispose'](),(_0x517c5a=this[_0x97f9a6(0x41b)])==null||_0x517c5a['dispose'](),this[_0x97f9a6(0x352)][_0x97f9a6(0x1d0)](null);let _0x184b2b=document[_0x97f9a6(0x441)](at);_0x184b2b&&(_0x184b2b[_0x97f9a6(0x15a)]['display']=_0x97f9a6(0x1cf),this[_0x97f9a6(0x42b)]&&=(this[_0x97f9a6(0x42b)][_0x97f9a6(0x3de)](),null));}[_0x1f0caa(0x17f)](_0x34e578,_0x9d3088){const _0x55650f=_0x1f0caa;var _0x58e993,_0x39119e,_0x38e22c;if(this[_0x55650f(0x41b)])return;let _0x697bbc=new e['Univer']({...Be(this[_0x55650f(0x268)]),'override':[[e['IAuthzIoService'],{'useClass':r['AuthzIoHttpService']}]]}),_0x237810=_0x697bbc['__getInjector'](),_0x51bdbc=_0x237810[_0x55650f(0x167)](e[_0x55650f(0x434)]);this[_0x55650f(0x306)][_0x55650f(0x32b)](this[_0x55650f(0x447)][_0x55650f(0x2d2)][_0x55650f(0x205)](_0x5e07b0=>{const _0x564107=_0x55650f;_0x51bdbc[_0x564107(0x2ce)](_0x5e07b0);})),this[_0x55650f(0x306)][_0x55650f(0x32b)](this[_0x55650f(0x447)][_0x55650f(0x25f)][_0x55650f(0x205)](_0x131b3c=>{const _0x9f600=_0x55650f;_0x51bdbc[_0x9f600(0x2aa)](_0x131b3c);}));let _0x10ccc3=_0x237810['get'](e[_0x55650f(0x470)]);_0x10ccc3['setLocale'](this[_0x55650f(0x268)][_0x55650f(0x529)]()),_0x10ccc3[_0x55650f(0x4ec)](this['_localeService'][_0x55650f(0x46e)]()),_0x237810['get'](e[_0x55650f(0x41d)])[_0x55650f(0x19b)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x55650f(0x536)][_0x55650f(0x41e)](r[_0x55650f(0x2d8)]));let _0x4e15dc=this[_0x55650f(0x536)]['getConfig'](a[_0x55650f(0x27e)]);_0x4e15dc&&_0x697bbc['registerPlugin'](a[_0x55650f(0x396)],{'license':_0x4e15dc['ls']});let _0x29d237=(_0x58e993=this[_0x55650f(0x536)][_0x55650f(0x41e)](_0x55650f(0x4fd)))==null?void 0x0:_0x58e993['workerURL'];_0x29d237&&(this[_0x55650f(0x42b)]=_0x29d237 instanceof Worker?_0x29d237:null,_0x697bbc[_0x55650f(0x196)](x['UniverRPCMainThreadPlugin'],{'workerURL':_0x29d237})),this['_pluginMap'][_0x55650f(0x30e)](([_0x3bc938,_0x2b46fb])=>{const _0x892570=_0x55650f;_0x697bbc[_0x892570(0x196)](_0x3bc938,_0x2b46fb);}),_0x697bbc['registerPlugin'](it,{'historyServerUrl':oe(this[_0x55650f(0x536)][_0x55650f(0x41e)](B)),'historyPanelComponentKey':(_0x39119e=this['_configService'][_0x55650f(0x41e)](_0x55650f(0x4fd)))==null?void 0x0:_0x39119e[_0x55650f(0x47b)],'historyPanelHidden':(_0x38e22c=this[_0x55650f(0x536)][_0x55650f(0x41e)]('sheets-history-ui.config'))==null?void 0x0:_0x38e22c[_0x55650f(0x540)]}),_0x237810[_0x55650f(0x409)](_0x28c52b=>this[_0x55650f(0x476)](_0x28c52b,_0x34e578)),this['_historyUniver$'][_0x55650f(0x1d0)](_0x697bbc);let _0x16ae13=_0x237810[_0x55650f(0x167)](q),_0x5065ec=this[_0x55650f(0x1a6)](_0x34e578);He(_0x9d3088)?_0x16ae13[_0x55650f(0x2da)](_0x34e578,_0x5065ec,_0x9d3088):_0x16ae13[_0x55650f(0x238)](_0x34e578,_0x5065ec)[_0x55650f(0x3e2)](()=>{const _0x35f78f=_0x55650f;_0x16ae13[_0x35f78f(0x2bf)]='error';});}[_0x1f0caa(0x476)](_0x318aab,_0x106950){const _0x575f70=_0x1f0caa;let _0x1771fe=_0x318aab[_0x575f70(0x167)](q);this[_0x575f70(0x306)][_0x575f70(0x32b)](_0x1771fe['status$'][_0x575f70(0x205)](_0x156379=>{const _0x4d8be3=_0x575f70;switch(_0x156379){case'entered':this['_dialogService'][_0x4d8be3(0x37a)](),this[_0x4d8be3(0x2ff)]['close']();break;case _0x4d8be3(0x39e):this['_commandService'][_0x4d8be3(0x541)](Ke['id']),this[_0x4d8be3(0x20a)]();break;case'error':this[_0x4d8be3(0x20a)](),this['_messageService'][_0x4d8be3(0x2ec)]({'content':this[_0x4d8be3(0x268)]['t'](_0x4d8be3(0x430)),'type':m[_0x4d8be3(0x40a)][_0x4d8be3(0x390)],'duration':0xbb8});}})),this[_0x575f70(0x306)][_0x575f70(0x32b)](_0x1771fe['revertRevision$'][_0x575f70(0x205)](_0x32719c=>{const _0x5522e5=_0x575f70;if(_0x32719c){let _0x5db510={'unitId':_0x106950,'revision':_0x32719c};this[_0x5522e5(0x211)][_0x5522e5(0x541)](n[_0x5522e5(0x276)]['id'],_0x5db510)[_0x5522e5(0x3e2)](()=>{const _0x1a3af3=_0x5522e5;_0x1771fe[_0x1a3af3(0x2bf)]=_0x1a3af3(0x42d);});}}));}[_0x1f0caa(0x1a6)](_0x48168e){const _0x3d9fb8=_0x1f0caa;let _0x55aecf=this[_0x3d9fb8(0x39b)][_0x3d9fb8(0x171)](_0x48168e);if(!_0x55aecf)return!0x1;let _0x3637e7=_0x55aecf['getSheets']()[_0x3d9fb8(0x4f3)](_0x1c1b3d=>_0x1c1b3d['getSheetId']()),_0x455416=new t[(_0x3d9fb8(0x4b4))](_0x48168e)['id'],_0x2a9fdf=_0x3637e7[_0x3d9fb8(0x4f3)](_0x29b14a=>new t[(_0x3d9fb8(0x425))](_0x48168e,_0x29b14a)['id']),_0x11ddeb=_0x3637e7[_0x3d9fb8(0x4f3)](_0x355560=>this[_0x3d9fb8(0x178)][_0x3d9fb8(0x492)](_0x48168e,_0x355560)[_0x3d9fb8(0x4f3)](_0x296b83=>new t[(_0x3d9fb8(0x219))](_0x48168e,_0x355560,_0x296b83[_0x3d9fb8(0x32e)])['id']))['flat'](),_0x1a49a5=new t[(_0x3d9fb8(0x391))](_0x48168e)['id'];return this['_permissionService'][_0x3d9fb8(0x4fa)]([_0x455416,..._0x2a9fdf,..._0x11ddeb,_0x1a49a5])[_0x3d9fb8(0x2b7)](_0xd1049c=>!!_0xd1049c[_0x3d9fb8(0x2a0)]);}};ot=W([U(0x0,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x470)])),U(0x1,e[_0x1f0caa(0x177)]),U(0x2,e[_0x1f0caa(0x41d)]),U(0x3,e[_0x1f0caa(0x231)]),U(0x4,N['IMessageService']),U(0x5,e[_0x1f0caa(0x31f)]),U(0x6,(0x0,e['Inject'])(t[_0x1f0caa(0x192)])),U(0x7,(0x0,e[_0x1f0caa(0x44b)])(N['IDialogService'])),U(0x8,(0x0,e[_0x1f0caa(0x44b)])(N['ISidebarService'])),U(0x9,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x434)]))],ot);let Q=class extends e[_0x1f0caa(0x2e8)]{constructor(_0xdc6521=V,_0x57b133,_0x38611e){const _0x298dee=_0x1f0caa;super(),this[_0x298dee(0x2d3)]=_0xdc6521,this[_0x298dee(0x20d)]=_0x57b133,this['_configService']=_0x38611e;let {menu:_0x181b59,..._0x5d9a}=(0x0,e[_0x298dee(0x345)])({},V,this[_0x298dee(0x2d3)]);_0x181b59&&this[_0x298dee(0x536)][_0x298dee(0x19b)]('menu',_0x181b59,{'merge':!0x0}),this[_0x298dee(0x536)][_0x298dee(0x19b)](B,_0x5d9a);}[_0x1f0caa(0x45f)](){const _0xc27f67=_0x1f0caa;this[_0xc27f67(0x20d)][_0xc27f67(0x32b)]([Qe]),this[_0xc27f67(0x20d)][_0xc27f67(0x167)](Qe),[[Z,{'useClass':ot}],[Ze]][_0xc27f67(0x30e)](_0x134f15=>this[_0xc27f67(0x20d)][_0xc27f67(0x32b)](_0x134f15));}['onSteady'](){const _0x1237f0=_0x1f0caa;this[_0x1237f0(0x20d)][_0x1237f0(0x167)](Ze);}};function _0x1a9f(_0x45ed7d,_0x23b1dc){_0x45ed7d=_0x45ed7d-0x157;const _0x5973b5=_0x5973();let _0x1a9f83=_0x5973b5[_0x45ed7d];return _0x1a9f83;}H(Q,_0x1f0caa(0x3e4),e[_0x1f0caa(0x502)][_0x1f0caa(0x1dc)]),H(Q,_0x1f0caa(0x4c6),_0x1f0caa(0x48d)),H(Q,_0x1f0caa(0x3f2),se),H(Q,_0x1f0caa(0x234),ce),Q=W([(0x0,e['DependentOn'])(a[_0x1f0caa(0x396)],t[_0x1f0caa(0x3f3)],ie[_0x1f0caa(0x325)],N[_0x1f0caa(0x3ae)],r[_0x1f0caa(0x4ff)],z[_0x1f0caa(0x2cb)]),U(0x1,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x404)])),U(0x2,e[_0x1f0caa(0x41d)])],Q);const st={[N[_0x1f0caa(0x1e3)][_0x1f0caa(0x438)]]:{[Ge['id']]:{'order':0x64,'gridLayout':{'row':0x1,'column':0x5,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':qe}}};let ct=class extends e[_0x1f0caa(0x2a7)]{constructor(_0x2c5d57,_0x3b4978,_0x2ddeb4,_0x4373c3,_0x417e87,_0x3824ab,_0x3f26b6,_0x1c2ce8,_0x35378e,_0x47881e){const _0x5e8edd=_0x1f0caa;super(),this['_commandService']=_0x2c5d57,this[_0x5e8edd(0x48e)]=_0x3b4978,this[_0x5e8edd(0x337)]=_0x2ddeb4,this[_0x5e8edd(0x268)]=_0x4373c3,this['_messageService']=_0x417e87,this[_0x5e8edd(0x2b8)]=_0x3824ab,this['_localCacheService']=_0x3f26b6,this[_0x5e8edd(0x2ba)]=_0x1c2ce8,this[_0x5e8edd(0x39b)]=_0x35378e,this['_urlService']=_0x47881e,H(this,'_revertAcknowledgementSubscription',null),this[_0x5e8edd(0x2e1)]((0x0,e[_0x5e8edd(0x241)])(()=>this[_0x5e8edd(0x543)]())),this[_0x5e8edd(0x3b8)]();}[_0x1f0caa(0x3b8)](){const _0x193a64=_0x1f0caa;[Ge,Ke][_0x193a64(0x30e)](_0x2f1924=>this[_0x193a64(0x2e1)]((0x0,e[_0x193a64(0x241)])(this[_0x193a64(0x211)]['registerCommand'](_0x2f1924)))),this['_menuManagerService']['mergeMenu'](st),this[_0x193a64(0x2e1)](this['_commandService'][_0x193a64(0x28a)]((_0x1ee0ed,_0x19f4fa)=>{const _0x4c1bdb=_0x193a64;if(_0x1ee0ed['id']===n[_0x4c1bdb(0x276)]['id']&&Ye(_0x1ee0ed['params'])){let {revision:_0x125f24,unitId:_0x50c6c0}=_0x1ee0ed[_0x4c1bdb(0x490)];this[_0x4c1bdb(0x498)][_0x4c1bdb(0x2ec)]({'content':this['_localeService']['t'](_0x4c1bdb(0x4cd)),'type':m[_0x4c1bdb(0x40a)][_0x4c1bdb(0x52d)],'duration':0x1388});let _0x6f6549=this[_0x4c1bdb(0x2b8)][_0x4c1bdb(0x18b)](_0x50c6c0);if(!_0x6f6549){this[_0x4c1bdb(0x25c)]();return;}_0x19f4fa!=null&&_0x19f4fa[_0x4c1bdb(0x1f9)]?this[_0x4c1bdb(0x483)](_0x6f6549,{'revision':_0x125f24,'unitId':_0x50c6c0},async()=>(setTimeout(()=>window[_0x4c1bdb(0x3aa)]['reload']()),!0x0),!0x0):this[_0x4c1bdb(0x483)](_0x6f6549,{'revision':_0x125f24,'unitId':_0x50c6c0},async()=>{const _0x5c973f=_0x4c1bdb;let _0x41f870=this[_0x5c973f(0x39b)][_0x5c973f(0x4e2)](e[_0x5c973f(0x502)]['UNIVER_SHEET']),_0x2b771f=_0x41f870==null?void 0x0:_0x41f870[_0x5c973f(0x3b3)]();if(!_0x2b771f)return!0x1;this[_0x5c973f(0x39b)][_0x5c973f(0x491)](_0x50c6c0);let _0x34f694=await this[_0x5c973f(0x2ba)][_0x5c973f(0x43e)](_0x50c6c0,e[_0x5c973f(0x502)]['UNIVER_SHEET']);return _0x34f694&&_0x34f694 instanceof e[_0x5c973f(0x38c)]?(await this[_0x5c973f(0x289)](_0x34f694,_0x2b771f[_0x5c973f(0x3af)]()),!0x0):!0x1;});}}));}[_0x1f0caa(0x483)](_0x4850e0,_0x5e1eee,_0x3db554,_0x2e29f8=!0x1){const _0x52108e=_0x1f0caa;this[_0x52108e(0x543)]();let _0x2228bd=(0x0,P[_0x52108e(0x395)])([_0x4850e0[_0x52108e(0x4fc)][_0x52108e(0x3ab)],_0x4850e0[_0x52108e(0x1dd)]])['pipe']((0x0,P[_0x52108e(0x463)])(([_0xf5424,_0x59cd40])=>Xe(_0xf5424,_0x5e1eee)&&(_0x59cd40==null?void 0x0:_0x59cd40['status'])===r['CollaborationStatus'][_0x52108e(0x368)]),(0x0,P[_0x52108e(0x340)])(0x1)),_0x2862d7=_0x2228bd;_0x2e29f8&&(_0x2862d7=_0x2228bd[_0x52108e(0x387)]((0x0,P['timeout'])({'first':0x1388}))),this[_0x52108e(0x2a2)]=_0x2862d7[_0x52108e(0x387)]((0x0,P[_0x52108e(0x49a)])(async()=>{const _0x4651fd=_0x52108e;let _0x307403=await _0x3db554();return _0x307403&&(this['_historyManagerService']['unMountHistoryContent'](),await this[_0x4651fd(0x3fd)][_0x4651fd(0x482)]()),_0x307403;}),(0x0,P[_0x52108e(0x44e)])(this[_0x52108e(0x22f)]))['subscribe']({'next':_0x14f547=>{const _0x2a28d9=_0x52108e;this[_0x2a28d9(0x543)](),_0x14f547||this[_0x2a28d9(0x25c)]();},'error':()=>{const _0x2e865e=_0x52108e;this[_0x2e865e(0x543)](),this['_showRevertFailed']();}});}['_clearRevertAcknowledgement'](){const _0x52f454=_0x1f0caa;var _0x33ae1b;(_0x33ae1b=this[_0x52f454(0x2a2)])==null||_0x33ae1b['unsubscribe'](),this[_0x52f454(0x2a2)]=null;}[_0x1f0caa(0x25c)](){const _0x44fdf2=_0x1f0caa;this['_messageService'][_0x44fdf2(0x2ec)]({'content':this[_0x44fdf2(0x268)]['t'](_0x44fdf2(0x1b7)),'type':m[_0x44fdf2(0x40a)][_0x44fdf2(0x390)],'duration':0xbb8});}async[_0x1f0caa(0x289)](_0xdb3454,_0xa87ee1){const _0x4e804e=_0x1f0caa;await this['_updateSubUnitFromURLParams'](_0xdb3454,_0xa87ee1),_0xdb3454[_0x4e804e(0x233)][_0x4e804e(0x387)]((0x0,P[_0x4e804e(0x44e)])(this[_0x4e804e(0x22f)]))['subscribe'](_0x11d92e=>{const _0x13edb2=_0x4e804e;_0x11d92e&&this[_0x13edb2(0x316)](_0x11d92e);}),this['_urlService'][_0x4e804e(0x4ea)][_0x4e804e(0x387)]((0x0,P[_0x4e804e(0x44e)])(this[_0x4e804e(0x22f)]))[_0x4e804e(0x205)](()=>this['_updateSubUnitFromURLParams'](_0xdb3454,_0xa87ee1));}[_0x1f0caa(0x316)](_0x4cb370,_0xef0cd=!0x1){const _0x4c26fd=_0x1f0caa;let _0x1459e4=this[_0x4c26fd(0x182)]['getParam'](_0x4c26fd(0x38f));_0x4cb370[_0x4c26fd(0x3af)]()!==_0x1459e4&&this['_urlService'][_0x4c26fd(0x524)](_0x4c26fd(0x38f),_0x4cb370[_0x4c26fd(0x3af)](),_0xef0cd);}async[_0x1f0caa(0x4c0)](_0x5c8a09,_0x32651e){const _0x2ba389=_0x1f0caa;var _0x49bb9b;if(!_0x32651e||!_0x5c8a09[_0x2ba389(0x46a)](_0x32651e)){let _0x4c8ce5=_0x5c8a09[_0x2ba389(0x4f6)]()[0x0],_0x3b13f2=_0x5c8a09[_0x2ba389(0x46a)](_0x4c8ce5);if(!_0x3b13f2)return;this['_updateURLWithCurrentState'](_0x3b13f2,!0x0),await this[_0x2ba389(0x211)][_0x2ba389(0x541)](t[_0x2ba389(0x39a)]['id'],{'unitId':_0x5c8a09[_0x2ba389(0x29e)](),'subUnitId':_0x4c8ce5});return;}((_0x49bb9b=_0x5c8a09[_0x2ba389(0x3b3)]())==null?void 0x0:_0x49bb9b[_0x2ba389(0x3af)]())!==_0x32651e&&await this['_commandService']['executeCommand'](t[_0x2ba389(0x39a)]['id'],{'unitId':_0x5c8a09[_0x2ba389(0x29e)](),'subUnitId':_0x32651e});}};ct=W([U(0x0,e[_0x1f0caa(0x231)]),U(0x1,N[_0x1f0caa(0x319)]),U(0x2,(0x0,e[_0x1f0caa(0x44b)])(Z)),U(0x3,(0x0,e['Inject'])(e[_0x1f0caa(0x470)])),U(0x4,N[_0x1f0caa(0x454)]),U(0x5,(0x0,e[_0x1f0caa(0x44b)])(r[_0x1f0caa(0x18c)])),U(0x6,r[_0x1f0caa(0x321)]),U(0x7,(0x0,e[_0x1f0caa(0x44b)])(r[_0x1f0caa(0x500)])),U(0x8,e[_0x1f0caa(0x177)]),U(0x9,z['IURLService'])],ct);let $=class extends e[_0x1f0caa(0x2e8)]{constructor(_0x2cb319=V,_0x23a318,_0x38fdfd){const _0x55afae=_0x1f0caa;super(),this[_0x55afae(0x2d3)]=_0x2cb319,this[_0x55afae(0x20d)]=_0x23a318,this[_0x55afae(0x536)]=_0x38fdfd;let {menu:_0x4b0941,..._0x5407bf}=(0x0,e['merge'])({},V,this[_0x55afae(0x2d3)]);_0x4b0941&&this['_configService']['setConfig']('menu',_0x4b0941,{'merge':!0x0}),this[_0x55afae(0x536)][_0x55afae(0x19b)](B,_0x5407bf);}[_0x1f0caa(0x45f)](){const _0x3aae83=_0x1f0caa;this[_0x3aae83(0x20d)][_0x3aae83(0x32b)]([Y]),this['_injector']['get'](Y),[[Z],[ct]][_0x3aae83(0x30e)](_0x33ef6e=>this[_0x3aae83(0x20d)][_0x3aae83(0x32b)](_0x33ef6e));}['onSteady'](){const _0x19d677=_0x1f0caa;this[_0x19d677(0x20d)][_0x19d677(0x167)](ct);}};H($,_0x1f0caa(0x4c6),'UNIVER_SHEETS_HISTORY_UI_PLUGIN'),H($,'packageName',se),H($,_0x1f0caa(0x234),ce),H($,'type',e[_0x1f0caa(0x502)]['UNIVER_SHEET']),$=W([(0x0,e[_0x1f0caa(0x4aa)])(a['UniverLicensePlugin'],t[_0x1f0caa(0x3f3)],ie[_0x1f0caa(0x325)],r[_0x1f0caa(0x4ff)],z[_0x1f0caa(0x2cb)]),U(0x1,(0x0,e[_0x1f0caa(0x44b)])(e[_0x1f0caa(0x404)])),U(0x2,e[_0x1f0caa(0x41d)])],$),exports['SHEETS_HISTORY_UI_PLUGIN_CONFIG_KEY']=B,exports[_0x1f0caa(0x358)]=Ge,Object[_0x1f0caa(0x28b)](exports,_0x1f0caa(0x3cc),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x1f0caa(0x28b)](exports,_0x1f0caa(0x46c),{'enumerable':!0x0,'get':function(){return $;}});
|