@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505131607 → 0.7.0-nightly.202505151607

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/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x52b89c=_0x231c;(function(_0x4820d2,_0x5e191b){const _0x55803b=_0x231c,_0x162484=_0x4820d2();while(!![]){try{const _0x2613ea=-parseInt(_0x55803b(0x143))/0x1+parseInt(_0x55803b(0x145))/0x2*(-parseInt(_0x55803b(0x13b))/0x3)+parseInt(_0x55803b(0x139))/0x4+-parseInt(_0x55803b(0x13e))/0x5*(parseInt(_0x55803b(0x13c))/0x6)+-parseInt(_0x55803b(0x147))/0x7*(-parseInt(_0x55803b(0x146))/0x8)+-parseInt(_0x55803b(0x140))/0x9*(-parseInt(_0x55803b(0x144))/0xa)+-parseInt(_0x55803b(0x13a))/0xb*(-parseInt(_0x55803b(0x142))/0xc);if(_0x2613ea===_0x5e191b)break;else _0x162484['push'](_0x162484['shift']());}catch(_0x46c922){_0x162484['push'](_0x162484['shift']());}}}(_0x217f,0xa96cd));function _0x231c(_0x219de1,_0x1f3d24){const _0x217f42=_0x217f();return _0x231c=function(_0x231cfa,_0x4b1693){_0x231cfa=_0x231cfa-0x138;let _0x5a3ea1=_0x217f42[_0x231cfa];return _0x5a3ea1;},_0x231c(_0x219de1,_0x1f3d24);}function _0x217f(){const _0x53e06e=['_injector','843324ESkeAJ','640290zIJTuT','10140JASdXX','2pzxNfd','8iNatHz','5129628mzpNrU','FUniver','4135156EUgPkl','55gfJrrK','3485301xTVIIX','204AFPtIi','runOnServer','130355zspruV','@univerjs-pro/collaboration-client-ui','11223bGOIca'];_0x217f=function(){return _0x53e06e;};return _0x217f();}const t=require(_0x52b89c(0x13f)),e=require('@univerjs/core/facade');class c extends e[_0x52b89c(0x138)]{[_0x52b89c(0x13d)](_0x404325,_0x5805ee,..._0x12b064){const _0x2c5ad4=_0x52b89c;return this[_0x2c5ad4(0x141)]['get'](t['RemoteUniscriptService'])['runOnServer'](_0x404325,_0x5805ee,{},..._0x12b064);}}e[_0x52b89c(0x138)]['extend'](c);
1
+ 'use strict';const _0x5e5083=_0x883d;(function(_0x35db53,_0x37467a){const _0x28ffd0=_0x883d,_0x1e8fc5=_0x35db53();while(!![]){try{const _0x3d1deb=-parseInt(_0x28ffd0(0x1d5))/0x1*(-parseInt(_0x28ffd0(0x1d8))/0x2)+-parseInt(_0x28ffd0(0x1d0))/0x3*(parseInt(_0x28ffd0(0x1dd))/0x4)+-parseInt(_0x28ffd0(0x1d3))/0x5+-parseInt(_0x28ffd0(0x1db))/0x6+-parseInt(_0x28ffd0(0x1ce))/0x7+-parseInt(_0x28ffd0(0x1de))/0x8+parseInt(_0x28ffd0(0x1d1))/0x9*(parseInt(_0x28ffd0(0x1df))/0xa);if(_0x3d1deb===_0x37467a)break;else _0x1e8fc5['push'](_0x1e8fc5['shift']());}catch(_0x1b01e9){_0x1e8fc5['push'](_0x1e8fc5['shift']());}}}(_0x5b9f,0x3eab7));const t=require(_0x5e5083(0x1d4)),e=require(_0x5e5083(0x1d6));function _0x883d(_0x3cd2fc,_0x570c4b){const _0x5b9fe0=_0x5b9f();return _0x883d=function(_0x883d63,_0x26ad79){_0x883d63=_0x883d63-0x1ce;let _0x564c09=_0x5b9fe0[_0x883d63];return _0x564c09;},_0x883d(_0x3cd2fc,_0x570c4b);}class c extends e[_0x5e5083(0x1da)]{['runOnServer'](_0xcc2c09,_0x297a91,..._0x213f29){const _0x367f9d=_0x5e5083;return this[_0x367f9d(0x1dc)][_0x367f9d(0x1d9)](t[_0x367f9d(0x1d2)])[_0x367f9d(0x1d7)](_0xcc2c09,_0x297a91,{},..._0x213f29);}}e[_0x5e5083(0x1da)][_0x5e5083(0x1cf)](c);function _0x5b9f(){const _0x132c39=['runOnServer','200698ntxVck','get','FUniver','2299074lOeRsb','_injector','16dAXUqQ','1991376zOIXdx','130euhLEU','2673706eMJQzh','extend','199908deBzrh','819909cDajmK','RemoteUniscriptService','743800NlUwdB','@univerjs-pro/collaboration-client-ui','5EjQTvr','@univerjs/core/facade'];_0x5b9f=function(){return _0x132c39;};return _0x5b9f();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x57a25a=_0x1cac;(function(_0x56d9d8,_0x26bc1e){const _0x529a2b=_0x1cac,_0x3081c4=_0x56d9d8();while(!![]){try{const _0x4f1897=parseInt(_0x529a2b(0x213))/0x1*(-parseInt(_0x529a2b(0x1e7))/0x2)+parseInt(_0x529a2b(0x281))/0x3+parseInt(_0x529a2b(0x2bf))/0x4+parseInt(_0x529a2b(0x116))/0x5*(parseInt(_0x529a2b(0x152))/0x6)+parseInt(_0x529a2b(0x2d2))/0x7*(parseInt(_0x529a2b(0x271))/0x8)+-parseInt(_0x529a2b(0x2ad))/0x9*(parseInt(_0x529a2b(0x2e7))/0xa)+parseInt(_0x529a2b(0xe2))/0xb;if(_0x4f1897===_0x26bc1e)break;else _0x3081c4['push'](_0x3081c4['shift']());}catch(_0xcc4580){_0x3081c4['push'](_0x3081c4['shift']());}}}(_0x475f,0xa66cc));var Ve=Object['defineProperty'],Xe=(_0x47f5b9,_0x502aae,_0x14a1b8)=>_0x502aae in _0x47f5b9?Ve(_0x47f5b9,_0x502aae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14a1b8}):_0x47f5b9[_0x502aae]=_0x14a1b8,h=(_0x371be2,_0x5c40a0,_0x2293ee)=>Xe(_0x371be2,typeof _0x5c40a0!='symbol'?_0x5c40a0+'':_0x5c40a0,_0x2293ee);Object[_0x57a25a(0x106)](exports,Symbol['toStringTag'],{'value':_0x57a25a(0x113)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x57a25a(0x1ec)),p=require(_0x57a25a(0x10a)),G=require(_0x57a25a(0x223)),b=require(_0x57a25a(0x246)),Ge=require(_0x57a25a(0x191)),d=require(_0x57a25a(0x244)),Y=require('@univerjs/docs'),m=require(_0x57a25a(0xc1)),Ee=require(_0x57a25a(0x144)),g=require(_0x57a25a(0xc6)),$=require('rxjs/operators'),X=require(_0x57a25a(0x283)),P=require(_0x57a25a(0x270)),T=require(_0x57a25a(0x326)),D=require('@univerjs/design'),M=require(_0x57a25a(0x186)),Ke=require('@univerjs/rpc');var qe=Object[_0x57a25a(0xbe)],ze=(_0xdadee,_0x313a03,_0x2b148e,_0x533dc1)=>{const _0x3b2e64=_0x57a25a;for(var _0x56cf56=_0x533dc1>0x1?void 0x0:_0x533dc1?qe(_0x313a03,_0x2b148e):_0x313a03,_0xe46ef8=_0xdadee[_0x3b2e64(0x25f)]-0x1,_0x3a9b2b;_0xe46ef8>=0x0;_0xe46ef8--)(_0x3a9b2b=_0xdadee[_0xe46ef8])&&(_0x56cf56=_0x3a9b2b(_0x56cf56)||_0x56cf56);return _0x56cf56;},Te=(_0x4ba3bc,_0x53b79d)=>(_0x563998,_0x1e2e4d)=>_0x53b79d(_0x563998,_0x1e2e4d,_0x4ba3bc);let de=class extends a[_0x57a25a(0x1c0)]{constructor(_0x35b61f,_0x32b62d){const _0x501938=_0x57a25a;super(),this['_docClipboardService']=_0x35b61f,this[_0x501938(0x325)]=_0x32b62d,this[_0x501938(0x170)]();}[_0x57a25a(0x170)](){const _0x9146a8=_0x57a25a,_0x2bd4ee=this;this[_0x9146a8(0x293)](this['_docClipboardService'][_0x9146a8(0x267)]({'onBeforePasteImage':async _0x176729=>{const _0x1a5c45=_0x9146a8,_0x2ce67b=await _0x2bd4ee[_0x1a5c45(0x325)][_0x1a5c45(0x2c2)](_0x176729);return _0x2ce67b?{'source':_0x2ce67b['source'],'imageSourceType':_0x2ce67b[_0x1a5c45(0x1ea)]}:null;}}));}};de=ze([Te(0x0,b[_0x57a25a(0x2ae)]),Te(0x1,Ge[_0x57a25a(0x23c)])],de);const Oe=[_0x57a25a(0x25d),_0x57a25a(0x30c),_0x57a25a(0xe0),_0x57a25a(0x1f8),_0x57a25a(0x307),_0x57a25a(0x31a)];class me extends a[_0x57a25a(0xe9)]{constructor(){const _0x68308e=_0x57a25a;super(...arguments),h(this,_0x68308e(0x1ac),new Map()),h(this,_0x68308e(0x2b8),0x0);}[_0x57a25a(0x119)](_0x55d4fc){const _0x298dce=_0x57a25a;if(this[_0x298dce(0x1ac)]['has'](_0x55d4fc))return this[_0x298dce(0x1ac)]['get'](_0x55d4fc);const _0x4ede57=Oe[this[_0x298dce(0x2b8)]];return this[_0x298dce(0x2b8)]=(this['_colorIndex']+0x1)%Oe['length'],this[_0x298dce(0x1ac)][_0x298dce(0xb9)](_0x55d4fc,_0x4ede57),_0x4ede57;}}function Pe(_0x1e11e6){const _0x54ef15=_0x57a25a;let _0x1195b5='';for(const _0x5e394f of _0x1e11e6){const {startOffset:_0x54c85f,endOffset:_0x53d102,isActive:_0x5102f9,rangeType:_0x710f03,segmentId:_0x56283a,segmentPage:_0x1b62aa}=_0x5e394f;_0x1195b5[_0x54ef15(0x25f)]&&(_0x1195b5+=','),_0x1195b5+=_0x54c85f+':'+_0x53d102+':'+(_0x5102f9?'1':'0')+':'+_0x710f03+':'+_0x56283a+':'+_0x1b62aa;}return _0x1195b5;}function Je(_0x49df4f){const _0x35bb7d=_0x57a25a,_0x44c9a6=_0x49df4f[_0x35bb7d(0x1d6)](','),_0xfe44f3=[];for(const _0x499dff of _0x44c9a6){const [_0x458662,_0x37073e,_0x305fc8,_0x526dc0,_0x954898,_0x5832da]=_0x499dff[_0x35bb7d(0x1d6)](':');_0xfe44f3[_0x35bb7d(0x11f)]({'startOffset':Number(_0x458662),'endOffset':Number(_0x37073e),'collapsed':_0x458662===_0x37073e,'isActive':_0x305fc8==='1','rangeType':_0x526dc0===a[_0x35bb7d(0x20f)]['TEXT']?a[_0x35bb7d(0x20f)][_0x35bb7d(0x126)]:a['DOC_RANGE_TYPE'][_0x35bb7d(0x272)],'segmentId':typeof _0x954898==_0x35bb7d(0x320)?String(_0x954898):'','segmentPage':Number(_0x5832da!=null?_0x5832da:-0x1)});}return _0xfe44f3[_0x35bb7d(0x142)](_0x354ddf=>_0x354ddf[_0x35bb7d(0x18e)])||(_0xfe44f3[0x0][_0x35bb7d(0x18e)]=!0x0),_0xfe44f3;}class Ce extends a[_0x57a25a(0x1c0)]{constructor(){const _0x1ca13c=_0x57a25a;super(...arguments),h(this,_0x1ca13c(0x2fa),new d['BehaviorSubject'](null)),h(this,_0x1ca13c(0x2f2),this[_0x1ca13c(0x2fa)][_0x1ca13c(0x13f)]());}['syncEditingCollabCursor'](_0x2df52a){const _0x5d0482=_0x57a25a,{unitID:_0x555652,memberID:_0x3f720b,textRanges:_0x386020}=_0x2df52a,_0x362f66=Pe(_0x386020);if(_0x362f66==='')return;const _0x5ad329={'unitID':_0x555652,'memberID':_0x3f720b,'selection':_0x362f66};this[_0x5d0482(0x2fa)][_0x5d0482(0x28d)](_0x5ad329);}}function _0x1cac(_0x26b665,_0x8b7cbd){const _0x475f51=_0x475f();return _0x1cac=function(_0x1caccb,_0x2ec98a){_0x1caccb=_0x1caccb-0xb0;let _0x1473a2=_0x475f51[_0x1caccb];return _0x1473a2;},_0x1cac(_0x26b665,_0x8b7cbd);}var Ze=Object[_0x57a25a(0xbe)],Qe=(_0x59af1b,_0x14953c,_0x47919f,_0x38638a)=>{for(var _0x3070f4=_0x38638a>0x1?void 0x0:_0x38638a?Ze(_0x14953c,_0x47919f):_0x14953c,_0x8700e6=_0x59af1b['length']-0x1,_0x118fc2;_0x8700e6>=0x0;_0x8700e6--)(_0x118fc2=_0x59af1b[_0x8700e6])&&(_0x3070f4=_0x118fc2(_0x3070f4)||_0x3070f4);return _0x3070f4;},L=(_0x57c89c,_0x5e4e54)=>(_0x20cea5,_0xbb4fda)=>_0x5e4e54(_0x20cea5,_0xbb4fda,_0x57c89c);const et=0x12c,tt=0x64;let fe=class extends a[_0x57a25a(0x1c0)]{constructor(_0x3bc2b5,_0x3a034b,_0x451162,_0x132c1a,_0x3f19aa,_0x368a73,_0x54bf87,_0x5dcd77,_0x24fdd3){const _0x3b1940=_0x57a25a;super(),h(this,_0x3b1940(0xdf),!0x1),h(this,'_init',!0x1),h(this,_0x3b1940(0x12c),new d[(_0x3b1940(0x290))](new Map())),h(this,_0x3b1940(0x313),this[_0x3b1940(0x12c)][_0x3b1940(0x13f)]()),h(this,_0x3b1940(0x14e),new d['BehaviorSubject']([])),h(this,_0x3b1940(0x2c4),this[_0x3b1940(0x14e)][_0x3b1940(0x25e)](d[_0x3b1940(0x27d)](et))),h(this,'_updateLocalCursor',a[_0x3b1940(0x2fc)](_0x462b8a=>{const _0x899a04=_0x3b1940,_0x12f90b={'eventID':m[_0x899a04(0x1db)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x899a04(0x230)],'memberID':this[_0x899a04(0x287)][_0x899a04(0x2a2)](),'selection':Pe(_0x462b8a)}};this[_0x899a04(0x287)][_0x899a04(0x1f4)](_0x12f90b,this[_0x899a04(0x230)]);},tt)),(this[_0x3b1940(0x230)]=_0x3bc2b5,this[_0x3b1940(0x287)]=_0x3a034b,this[_0x3b1940(0x24d)]=_0x451162,this[_0x3b1940(0x2c6)]=_0x132c1a,this[_0x3b1940(0x1fb)]=_0x3f19aa,this[_0x3b1940(0xf6)]=_0x368a73,this[_0x3b1940(0xf1)]=_0x54bf87,this[_0x3b1940(0x265)]=_0x5dcd77,this[_0x3b1940(0x2d0)]=_0x24fdd3);}get['cursorInfo'](){const _0x204ed0=_0x57a25a;return this[_0x204ed0(0x12c)]['getValue']();}get['roomMembers'](){const _0x275518=_0x57a25a;return this[_0x275518(0x14e)]['getValue']();}[_0x57a25a(0x1eb)](){const _0xa00743=_0x57a25a;super[_0xa00743(0x1eb)](),this[_0xa00743(0x12c)][_0xa00743(0x28d)](new Map()),this['_cursorInfo$'][_0xa00743(0xec)](),this['_roomMembers$'][_0xa00743(0x28d)]([]),this[_0xa00743(0x14e)][_0xa00743(0xec)]();}[_0x57a25a(0x23d)](){const _0x995346=_0x57a25a;this[_0x995346(0x170)]||(this[_0x995346(0x170)]=!0x0,this[_0x995346(0x287)][_0x995346(0x23e)]['pipe'](d['takeUntil'](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x2f1d6d=>{const _0x58ecec=_0x995346;_0x2f1d6d===u['SessionStatus'][_0x58ecec(0x14a)]?this[_0x58ecec(0x2c1)]():this['_toggleOffline']();}),this[_0x995346(0x287)]['event$'][_0x995346(0x25e)](d[_0x995346(0x13c)](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x43fe0f=>{const _0x455e4f=_0x995346,_0x2c3f81=_0x43fe0f[_0x455e4f(0x31c)];_0x2c3f81===m[_0x455e4f(0x1db)][_0x455e4f(0x217)]&&this[_0x455e4f(0x165)](_0x43fe0f),_0x2c3f81===m[_0x455e4f(0x1db)][_0x455e4f(0x1aa)]&&this[_0x455e4f(0x2e0)](_0x43fe0f);}),this[_0x995346(0x293)](this[_0x995346(0x2d0)]['onCommandExecuted'](_0x1fab2f=>{const _0x334cc2=_0x995346,_0x250b7c=_0x1fab2f[_0x334cc2(0x310)];_0x250b7c!=null&&this[_0x334cc2(0xdf)]&&_0x1fab2f['id']===Y[_0x334cc2(0x2a1)]['id']&&_0x250b7c[_0x334cc2(0x110)]===this[_0x334cc2(0x230)]&&_0x250b7c['isEditing']===!0x1&&_0x250b7c[_0x334cc2(0x1b6)][_0x334cc2(0x25f)]>0x0&&this[_0x334cc2(0x304)](_0x250b7c[_0x334cc2(0x1b6)]);})),this[_0x995346(0xf6)][_0x995346(0x2f2)]['pipe'](d[_0x995346(0x13c)](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x1c84eb=>{const _0x5c710d=_0x995346;if((_0x1c84eb==null?void 0x0:_0x1c84eb[_0x5c710d(0x230)])!==this[_0x5c710d(0x230)])return;const _0x14a587={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1c84eb};this[_0x5c710d(0x165)](_0x14a587);}),this[_0x995346(0x293)](this['_commandService']['onCommandExecuted'](_0x4df000=>{const _0x3d6c86=_0x995346;if(_0x4df000[_0x3d6c86(0x310)]==null)return;const _0x4ef657=_0x4df000['params'];if(_0x4df000['id']!==Y['RichTextEditingMutation']['id']||_0x4ef657[_0x3d6c86(0x110)]!==this[_0x3d6c86(0x230)])return;const _0x2c3048={'id':_0x3d6c86(0x190),'params':_0x4ef657},_0x167b58=this[_0x3d6c86(0xeb)];for(const [_0x228f15,_0x133065]of _0x167b58){const _0x1fab5d={'id':_0x3d6c86(0x190),'params':{'unitId':this[_0x3d6c86(0x230)],'actions':null,'textRanges':_0x133065[_0x3d6c86(0x1b6)]}},_0x510d0f=this[_0x3d6c86(0xf1)]['transformMutation'](_0x2c3048,_0x1fab5d,!0x1);if(m[_0x3d6c86(0x251)](_0x510d0f))throw _0x510d0f[_0x3d6c86(0x201)];_0x167b58[_0x3d6c86(0xb9)](_0x228f15,{..._0x133065,'ranges':_0x510d0f[_0x3d6c86(0x2e9)][_0x3d6c86(0x310)][_0x3d6c86(0x185)]});}queueMicrotask(()=>{const _0x9964f0=_0x3d6c86;this[_0x9964f0(0x12c)][_0x9964f0(0x28d)](_0x167b58);});})));}[_0x57a25a(0x165)](_0x466571){const _0x2c661=_0x57a25a;var _0x2094f,_0x4e0650;const {memberID:_0x218068,selection:_0x30c590}=_0x466571['data'],_0x2e460c=Je(_0x30c590),_0xd87643=(_0x4e0650=(_0x2094f=this[_0x2c661(0x1fb)][_0x2c661(0x1de)](this[_0x2c661(0x230)],_0x218068))==null?void 0x0:_0x2094f[_0x2c661(0x21e)])!=null?_0x4e0650:_0x2c661(0x26c),_0x86161c={'color':this[_0x2c661(0x2c6)][_0x2c661(0x119)](_0x218068),'name':_0xd87643,'ranges':_0x2e460c},_0x637b52=this[_0x2c661(0xeb)];_0x637b52[_0x2c661(0xb9)](_0x218068,_0x86161c),this[_0x2c661(0x12c)][_0x2c661(0x28d)](_0x637b52);}['_onCursorDelete'](_0x39e066){const _0x360469=_0x57a25a,{memberID:_0x161fda}=_0x39e066[_0x360469(0xe5)],_0x3f9194=this[_0x360469(0xeb)];_0x3f9194[_0x360469(0x234)](_0x161fda),this['_cursorInfo$'][_0x360469(0x28d)](_0x3f9194);}['_toggleOnline'](){const _0x3aaf3e=_0x57a25a;var _0x547ffa;if(this[_0x3aaf3e(0xdf)]=!0x0,((_0x547ffa=this['_univerInstanceService'][_0x3aaf3e(0x171)]())==null?void 0x0:_0x547ffa[_0x3aaf3e(0x15c)]())!==this[_0x3aaf3e(0x230)])return;const _0x22d73e=this['_injector'][_0x3aaf3e(0x1dd)](Y[_0x3aaf3e(0x241)])[_0x3aaf3e(0x289)]();Array[_0x3aaf3e(0x20a)](_0x22d73e)&&_0x22d73e[_0x3aaf3e(0x25f)]>0x0&&this['_updateLocalCursor'](_0x22d73e);}[_0x57a25a(0x323)](){const _0x46ae86=_0x57a25a;this[_0x46ae86(0xdf)]=!0x1;}};fe=Qe([L(0x2,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),L(0x3,a[_0x57a25a(0x17f)](me)),L(0x4,a[_0x57a25a(0x17f)](u[_0x57a25a(0x114)])),L(0x5,a[_0x57a25a(0x17f)](Ce)),L(0x6,m[_0x57a25a(0x26e)]),L(0x7,a[_0x57a25a(0x2d5)]),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x2f1df3,_0x56700b,_0x432ac4,_0x2de6f1)=>{const _0x59be52=_0x57a25a;for(var _0x5a43d5=_0x2de6f1>0x1?void 0x0:_0x2de6f1?st(_0x56700b,_0x432ac4):_0x56700b,_0xfefe52=_0x2f1df3[_0x59be52(0x25f)]-0x1,_0x404cc9;_0xfefe52>=0x0;_0xfefe52--)(_0x404cc9=_0x2f1df3[_0xfefe52])&&(_0x5a43d5=_0x404cc9(_0x5a43d5)||_0x5a43d5);return _0x5a43d5;},w=(_0xcfbe5e,_0x44c93f)=>(_0x122071,_0x540e0d)=>_0x44c93f(_0x122071,_0x540e0d,_0xcfbe5e);const nt=0x12c,rt=0x64,ot=()=>{let _0x1d784a=[],_0x29e2fc=!0x1;return _0xea47ba=>{const _0x58d29f=_0x1cac;_0x1d784a[_0x58d29f(0x11f)](_0xea47ba),_0x29e2fc||(_0x29e2fc=!0x0,setTimeout(()=>{const _0x34fda5=_0x58d29f;_0x1d784a[_0x34fda5(0x2ef)](_0x2b0f0f=>_0x2b0f0f()),_0x1d784a=[],_0x29e2fc=!0x1;}));};};function _0x475f(){const _0x329b7f=['registerRefRange','CollaborationSocketService','_drawTextRange','YUUMI_RATE_OVER_LIMIT','YUUMI_SUBSCRIPTION_NOT_FOUND','addObject','_entities','isArray','getCoordByCell','executeCommand','_initResize','INVITE_CODE_REQUIRED','DOC_RANGE_TYPE','LICENSE_DISTRO_REJECTED','ENSURE_SNAPSHOT_EXECUTION','transformIMECache','382216qJqwzw','fromEvent','tag','_initDependencies','UPDATE_CURSOR','_configService','_collabCursorController','_color','PY_RUNTIME_SCRIPT_ERROR','CLOSE_ROOM','merge','name','triggerDblclick','collab-rect-range-','url(#off-line-single_clip0_910_343)','InsertRangeMoveRightCommandId','@univerjs/network','row','Tools','createIdentifier','_initEvent','location','toString','collab-text-range-','rgba(255,\x20255,\x20255,\x200.01)','prototype','_handleHeartbeatEvent','INVALID_INVITE_CODE','OTHER_CLIENTS_EDITING','unitID','WECHAT_HAS_BEEN_BOUND','_unitStatus','RefRangeService','delete','COMPLETION_FINISHED','ISocketService','_onRefRangeChange','IRenderManagerService','_dataLoaderService','bottom','_themeService','IImageIoService','init','sessionStatus$','runRefRangeMutations','extend','DocSelectionManagerService','ILogService','Rectangle','rxjs','runOnServer','@univerjs/docs-ui','_saveTaskMap','UNIVER_SHEET','setTimeout','startRow','collabStatus.offline','setStateCache','_injector','fillStyle','startsWith','_drawAnchor','isTransformMutationFailure','_anchorDot','getAncestorScale','_send','assign','useCallback','SOCKET_FAILED','type','height','addHandlerCallback','icon','getCollabEntity$','purple.300','pipe','length','subunit','focused$','_updateSubUnitFromURLParams','values','IUIPartsService','_univerInstanceService','drawWith','addClipboardHook','setShapeProps','currentSkeleton$','DocCollaborationEntity','getMergeData','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','ITransformService','handleInsertRangeMoveRight','react/jsx-runtime','1096VdQTet','RECT','replaceDocRanges','CollaborationController','_startDocCollabCursor','wsSessionTicketUrl','onPointerLeave$','permission.title','session.collaboration-timeout','defIds','DependentOn','onLocalMutation','debounceTime','createSocket','_cursors','CollaborationDataLoaderController','1259703UgtYVG','getViewport','@univerjs/sheets-ui','transform','ILocalCacheService','setItem','_session','INTERNAL_ERROR','getDocRanges','getCellPositionByOffset','onRendered','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','next','registerRenderModule','black','BehaviorSubject','collaboration.closeRoom','m1Prime','disposeWithMe','_transformPreviousActiveRange','getOwnPropertySymbols','range','APPLY_REJECT','_sheetSkeletonManagerService','_localStorageService','undoState','_render','off-line-single_clip0_910_343','NOT_COLLAB','_renderManagerService','throttleTime','pushState','SetTextSelectionsOperation','getMemberID','_instanceService','_setupSubUnitSync','size','_initStatusComponent','lineTo','mergeOverrideWithDependencies','UniverInstanceType','_logService','SetSelectionsOperation','top','1409571UoXqfj','IDocClipboardService','_getSaveTimeout','path','_docTransformSelectionsService','_docTransformStateCacheService','InsertColCommandId','#fff','FETCH_MISS','AWAITING_WITH_PENDING','_handleEvent','_colorIndex','CollaborationUIEventService','_getSessionTicket','_revisionService','all','hide','_eventUnsubscribe','3446036aOihqL','CollaborationUIEventId','_toggleOnline','saveImage','_cachedData','roomMembers$','LICENSE_IMPORT_SIZE_EXCEEDED','_colorAssignService','_selfUnitIDs','endRow','_notificationService','post','_collaborationUIEventService','_labelPosition','origin','isTransformMutationsWithChangesetSuccess','translate(.97)','_commandService','find','5677wjeVtJ','LocaleService','_setupBeforeClosingHandler','IUniverInstanceService','backgroundColor','_removeClearOtherTimer','map','getSheetBySheetId','on-line-single_clip0_910_349','ISnapshotServerService','startColumn','_localCacheService','onCommandExecuted','handleMoveRange','_onCursorDelete','displayName','save','Error','OnLineSingle','CONNECTOR_DATA_TOO_LARGE','from','10jeOUIO','parse','m2Prime','handleIRemoveCol','_getScale','PENDING','dispose$','url(#$1','forEach','APPLY_NON_SEQUENTIAL_REVISION','_disabled','collabCursorState$','session.connection-failed','_transformHistoryAndStateStack','getActiveRange','getColorFromTheme','_uiPartsService','clearInterval','indexOf','_collabCursorState$','1em','debounce','collabStatus.synced','selection','AWAITING','collaboration-client.offline-data-not-saved','show','MessageType','filter','_updateLocalCursor','subscribe','sessionTicket','blue.400','_hover','getCurrentSelections','getTypeOfUnitAdded$','editingUnit','jiqing.500','DeleteRangeMoveLeftCommandId','forwardRef','DocStateChangeManagerService','params','NO_OTHER_CLIENTS_EDITING','random','cursorInfo$','_initStatusListener','DeleteRangeMoveUpCommandId','SOCKET_FAILED_RETRY','mask','_entityInit$','IURLService','yellow.400','onMouseMove','eventID','sheetID','fill','MoveRangeCommandId','string','NOT_FOUND','transformByState','_toggleOffline','transformSelections','_imageIoService','@univerjs/ui','shareReplay','_initCommandExecutedListener','substring','IBeforeCloseService','toDisposable','collabStatus.notCollab','Injector','UnitStatus','_updateURLWithCurrentState','closePath','_handleLeaveEvent','getRangePointData','idSuffix','width','set','executionId','result','findNodePositionByCharIndex','_range','getOwnPropertyDescriptor','_document','apply','@univerjs-pro/collaboration','UNIVER_DOC','serializeRangeWithSheet','EffectRefRangId','DocIMEInputManagerService','@univerjs/sheets','setActiveRange','text','handleInsertRow','arc','jsx','endColumn','M0\x200H16V16H0z','generateRandomId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getParam','_drawRectRange','replaceState','collabStatus.syncing','collab-text-anchor-','INVITE_CODE_HAS_BEEN_UES','with','onTransformChange$','0\x200\x2016\x2016','getStateCache','InsertRangeMoveDownCommandId','add','createInstance','[CollaborationDataLoaderController]','APPLY_PERMISSION_DENIED','_online','green.600','_getAnchorBounding','50578PmEOnJ','/run/','_draw','data','DocSkeletonManagerService','_docSkeleton','getVpScrollXYInfoByPosToVp','Disposable','attrs','cursorInfo','complete','SetDocZoomRatioOperation','getSkeleton','RevisionService','getOffsetConfig','_transformService','INVALID_ARGUMENT','YUUMI_URL_COL_OUT_OF_RANGE','INVITE_CODE_ALREADY_BOUND','_saveCache','_syncEditingCollabCursorService','entries','_status$','color','getValue','entityInit$','DesktopCollaborationStatusDisplayController','_scene','restore','getSheetId','Tooltip','Rect','Warning','application/json','_textBubble','_registerRenderDependencies','defineProperty','then','getCurrentUnitForType','transformStateCache','@univerjs/engine-render','hasOwnProperty','DisposableCollection','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:univer-text-gray-200','actions','enableLocalCache','unitId','collaboration.single-unit.warning','touchDependencies','Module','MemberService','handleInsertRangeMoveDown','13180iDvEzX','OFFLINE','min','assignAColorForMemberID','getRelativeToViewportCoord','TOO_MANY_REQUESTS','concat','colorChannel1','fromEventSubject','push','SUBMIT_CHANGESET_TIMEOUT','includes','univer-flex\x20univer-mr-2\x20univer-text-xl','UniverCollaborationClientPlugin','LOCAL_CACHE_INTERVAL','_scheduleHeartbeat','TEXT','LOGIN_FAILED','LICENSE_EXPORT_SIZE_EXCEEDED','override','urlChange$','ThemeService','_cursorInfo$','_httpService','event$','deepClone','NodePositionConvertToRectRange','PERMISSION_DENIED','clipPath','_collaborationController','SNAPSHOT_INVALID_SNAPSHOT','_localeService','_initEntityListener','saveTaskMap','_shapes','_getMergeRange','SNAPSHOT_HAS_BEEN_REMOVED','evenodd','takeUntil','href','IRemoteInstanceService','asObservable','reconnect','APPLY_DUPLICATED','some','transformMutation','@univerjs/engine-formula','createElement','SetWorksheetActivateCommand','loadUnit','defs','beginPath','ONLINE','_transformUndoRedoStack','docStateChange$','CHANGESET_REVISION_CONFILICT','_roomMembers$','redoState','combineLatest','_anchor','1338ESuWUx','COLORS','ILocalStorageService','ACTIVE_UNIT_EVENT_CHANNEL','MUTATION','_handleHover','addEventListener','syncEditingCollabCursor','RemoteUniscriptService','_heartbeatTimer','getUnitId','getUndoRedoMutationParamsCache','getCollabCursors$','_docTransformIMECacheService','Failed','_docSkeletonManagerService','exhaustSavingTask','unsubscribe','xlink:href','_onCursorUpdate','call','clsx','handleInsertCol','ColorKit','...','_scheduleClearOtherTimer','BrowserCollaborationSocketService','Optional','setParam','RegularPolygon','_init','getFocusedUnit','_backgroundColor','Shape','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UniverCollaborationClientUIPlugin','getTypeOfUnitDisposed$','has','onPointerEnter$','runId','YUUMI_AI_RUN_FAILED','RemoveRowCommandId','getColor','makeDirty','svg','Inject','_docStateChangeManagerService','UNDEFINED','subscribeEvent','setConfig','_hovered','textRanges','react','univer-flex\x20univer-items-center','UNRECOGNIZED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','session.will-retry','IConfigService','Workbook','fillText','isActive','_refRangeService','doc.mutation.rich-text-editing','@univerjs/drawing','trim','resize','invokeId','_cursorShapes','useDependency','JOIN_ROOM_FAILED','searchParams','_scheduleSaving','0\x200\x2017\x2016','_updateCollabCursors','setUndoRedoMutationParamsCache','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','pluginName','getRenderById','_id','_messageService','ICommandService','CONFLICT','_name','WebBrowserSingleActiveUnitService','url(#on-line-single_clip0_910_349)','_cursor','EMAIL_HAS_BEEN_BOUND','_createSocketURL','USERS_LEAVE','measureText','_assignedColors','getLocalCacheKey','_unitOnClients','status$','CollaborationStatus','transformMutationsWithChangeset','YUUMI_ASYNCIO_CANCELLED','BuiltInUIPart','distinctUntilChanged','SheetSkeletonManagerService','ranges','RemoveColCommandId','mutations','body','_lastPointer','unit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ALREADY_EXISTS','max','unshift','RxDisposable','_refreshCollabCursors','_ensureSubject','APPLY_REVISION_CONFILICT','DataLoaderService','YUUMI_UNABLE_LOAD_URL','getItem','_config','SYNCED','HTTPService','_context','activeSheet$','skeleton','none','replace','_hideTimer','_startSheetCollabCursor','_getSheetObject','clearTimeout','YUUMI_TABLE_NOT_FOUND_IN_UNIT','stringify','toRgbString','split','currentTheme$','DEFAULT_WS_SESSION_TICKET_URL','CommandType','handleDeleteRangeMoveLeft','CollaborationEvent','font','get','getMember','permission.content','_removeCollabCursors','_collabSessionService','saveOfflineData','IMessageService','round','loadOfflineData','selections','6umOKYB','addObjects','TEXT_RANGE_LAYER_INDEX','imageSourceType','dispose','@univerjs/core','CollaborationSessionService','SHEET_VIEWPORT_KEY','_clearOtherTimers','history','switchMap','OffLineSingle','transformRemoteChangeset','send','children','requireSession','_beforeCloseService','red.300','_docSyncEditingCollabCursorService','getConfig','_memberService','div','collabStatus.fetchMiss','Subject','className','univerjs-icon\x20univerjs-icon-','error','_urlService'];_0x475f=function(){return _0x329b7f;};return _0x475f();}let Se=class extends a[_0x57a25a(0x1c0)]{constructor(_0xe337e3,_0x177239,_0x4b3b69,_0x238935,_0x2c6c6e,_0x468662,_0x25ac88,_0x4eec0b){const _0x78f553=_0x57a25a;super(),h(this,_0x78f553(0xdf),!0x1),h(this,_0x78f553(0x170),!0x1),h(this,_0x78f553(0x12c),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x78f553(0x12c)]['asObservable']()),h(this,_0x78f553(0x14e),new d[(_0x78f553(0x290))]([])),h(this,_0x78f553(0x2c4),this[_0x78f553(0x14e)]['pipe'](d[_0x78f553(0x27d)](nt))),h(this,_0x78f553(0x304),a['debounce']((_0x29dae7,_0x4d9bff)=>{const _0x5f563c=_0x78f553,_0xd36a33={'eventID':m[_0x5f563c(0x1db)][_0x5f563c(0x217)],'data':{'unitID':this[_0x5f563c(0x230)],'memberID':this[_0x5f563c(0x287)]['getMemberID'](),'selection':Ee[_0x5f563c(0xc3)](_0x29dae7,_0x4d9bff['range'])}};this[_0x5f563c(0x287)][_0x5f563c(0x1f4)](_0xd36a33,this['unitID']);},rt)),(this['unitID']=_0xe337e3,this[_0x78f553(0x287)]=_0x177239,this[_0x78f553(0x24d)]=_0x4b3b69,this[_0x78f553(0x2c6)]=_0x238935,this[_0x78f553(0x1fb)]=_0x2c6c6e,this[_0x78f553(0x265)]=_0x468662,this[_0x78f553(0x2d0)]=_0x25ac88,this[_0x78f553(0x18f)]=_0x4eec0b);}get[_0x57a25a(0xeb)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5b4be1=_0x57a25a;return this[_0x5b4be1(0x14e)][_0x5b4be1(0xfa)]();}[_0x57a25a(0x1eb)](){const _0x59a63f=_0x57a25a;super[_0x59a63f(0x1eb)](),this[_0x59a63f(0x12c)]['next'](new Map()),this['_cursorInfo$'][_0x59a63f(0xec)](),this[_0x59a63f(0x14e)][_0x59a63f(0x28d)]([]),this[_0x59a63f(0x14e)][_0x59a63f(0xec)]();}[_0x57a25a(0x23d)](){const _0x627817=_0x57a25a;this[_0x627817(0x170)]||(this[_0x627817(0x170)]=!0x0,this[_0x627817(0x287)][_0x627817(0x23e)][_0x627817(0x25e)](d[_0x627817(0x13c)](this[_0x627817(0x2ed)]))[_0x627817(0x305)](_0x54af8e=>{const _0x21f081=_0x627817;_0x54af8e===u['SessionStatus'][_0x21f081(0x14a)]?this['_toggleOnline']():this[_0x21f081(0x323)]();}),this['_session']['event$'][_0x627817(0x25e)](d[_0x627817(0x13c)](this[_0x627817(0x2ed)]))[_0x627817(0x305)](_0x1db538=>{const _0x407350=_0x627817,_0x135c5f=_0x1db538[_0x407350(0x31c)];_0x135c5f===m['CollaborationEvent'][_0x407350(0x217)]&&this[_0x407350(0x165)](_0x1db538),_0x135c5f===m['CollaborationEvent'][_0x407350(0x1aa)]&&this[_0x407350(0x2e0)](_0x1db538);}),this[_0x627817(0x237)](),this[_0x627817(0x293)](this[_0x627817(0x2d0)][_0x627817(0x2de)](_0xd941d2=>{const _0x2ecd34=_0x627817;if(this[_0x2ecd34(0xdf)]&&_0xd941d2['id']===g[_0x2ecd34(0x2ab)]['id']&&_0xd941d2['params']['unitId']===this[_0x2ecd34(0x230)]){const _0x45ce0b=_0xd941d2[_0x2ecd34(0x310)];this[_0x2ecd34(0x304)](_0x45ce0b['subUnitId'],_0x45ce0b[_0x2ecd34(0x1e6)][0x0]);}})));}[_0x57a25a(0x165)](_0x207292){const _0x206b6d=_0x57a25a;var _0x133411,_0x40d3c3;const {memberID:_0x18e0ca,selection:_0x4c33ba}=_0x207292[_0x206b6d(0xe5)],{sheetName:_0x27be45,range:_0x312596}=Ee['deserializeRangeWithSheet'](_0x4c33ba),_0x13bbe3={'name':(_0x40d3c3=(_0x133411=this[_0x206b6d(0x1fb)]['getMember'](this[_0x206b6d(0x230)],_0x18e0ca))==null?void 0x0:_0x133411[_0x206b6d(0x21e)])!=null?_0x40d3c3:_0x206b6d(0x26c),'range':this[_0x206b6d(0x139)](_0x27be45,_0x312596),'sheetID':_0x27be45,'color':this[_0x206b6d(0x2c6)][_0x206b6d(0x119)](_0x18e0ca),'selection':_0x4c33ba},_0x5f39f5=this['cursorInfo'];_0x5f39f5[_0x206b6d(0xb9)](_0x18e0ca,_0x13bbe3),this['_cursorInfo$'][_0x206b6d(0x28d)](_0x5f39f5);}[_0x57a25a(0x2e0)](_0x356e7f){const _0x2b60f7=_0x57a25a,{memberID:_0x21dbc2}=_0x356e7f[_0x2b60f7(0xe5)],_0x432cb1=this['cursorInfo'];_0x432cb1[_0x2b60f7(0x234)](_0x21dbc2),this[_0x2b60f7(0x12c)][_0x2b60f7(0x28d)](_0x432cb1);}[_0x57a25a(0x139)](_0xb05c60,_0x213dd2){const _0x59a894=_0x57a25a;var _0x5cb04d,_0x59679d;const _0x856125=(_0x59679d=(_0x5cb04d=this[_0x59a894(0x265)]['getUniverSheetInstance'](this[_0x59a894(0x230)]))==null?void 0x0:_0x5cb04d[_0x59a894(0x2d9)](_0xb05c60))==null?void 0x0:_0x59679d[_0x59a894(0x26b)]();return(_0x856125==null?void 0x0:_0x856125[_0x59a894(0x2d1)](_0x51fdba=>a[_0x59a894(0x243)]['contains'](_0x51fdba,_0x213dd2)))||_0x213dd2;}['_onRefRangeChange'](){const _0x1f2523=_0x57a25a,_0x45562b=new a[(_0x1f2523(0x10c))](),_0xe255c7=ot(),_0x10a9be=()=>{const _0x86e577=_0x1f2523;_0x45562b[_0x86e577(0x1eb)]();const _0x5d96ef=(_0x43080b,_0x3cb672,_0x3ec416,_0x7293a2)=>{const _0x5258cd=_0x86e577;let _0x7096c7=[];switch(_0x43080b['id']){case g[_0x5258cd(0xc4)][_0x5258cd(0x30d)]:{_0x7096c7=g[_0x5258cd(0x1da)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x315)]:{_0x7096c7=g['handleDeleteRangeMoveUp'](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x2b3)]:{_0x7096c7=g[_0x5258cd(0x168)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0xda)]:{_0x7096c7=g[_0x5258cd(0x115)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x222)]:{_0x7096c7=g[_0x5258cd(0x26f)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)]['InsertRowCommandId']:{_0x7096c7=g[_0x5258cd(0xc9)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x31f)]:{_0x7096c7=g[_0x5258cd(0x2df)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x1b7)]:{_0x7096c7=g[_0x5258cd(0x2ea)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x17b)]:{_0x7096c7=g['handleIRemoveRow'](_0x43080b,_0x7293a2);break;}}const _0x4c5210=g[_0x5258cd(0x23f)](_0x7096c7,_0x7293a2),_0x35c267=this['cursorInfo'][_0x5258cd(0x1dd)](_0x3cb672);if(_0x35c267&&_0x4c5210){const _0x470583={..._0x35c267,'range':_0x4c5210};this[_0x5258cd(0xeb)][_0x5258cd(0xb9)](_0x3cb672,_0x470583),_0xe255c7(()=>{const _0x1b2210=_0x5258cd,_0x59168a=this[_0x1b2210(0x18f)][_0x1b2210(0x203)](_0x4c5210,_0x220529=>(_0x59168a[_0x1b2210(0x1eb)](),_0x5d96ef(_0x220529,_0x3cb672,_0x3ec416,_0x4c5210)));_0x45562b[_0x1b2210(0xdb)](_0x59168a);});}return{'redos':[],'undos':[]};};this[_0x86e577(0xeb)][_0x86e577(0x2ef)]((_0x9dd3f1,_0x2827fe)=>{const _0xa8bc46=_0x86e577,{range:_0x31a87c,sheetID:_0x107181}=_0x9dd3f1,_0x1b52b4=this[_0xa8bc46(0x18f)][_0xa8bc46(0x203)](_0x31a87c,_0x3c5327=>(_0x1b52b4[_0xa8bc46(0x1eb)](),_0x5d96ef(_0x3c5327,_0x2827fe,_0x107181,_0x31a87c)));_0x45562b['add'](_0x1b52b4);});};this[_0x1f2523(0x293)](a[_0x1f2523(0x32b)](this[_0x1f2523(0x12c)][_0x1f2523(0x305)](()=>{_0x10a9be();})));}[_0x57a25a(0x2c1)](){const _0x1f021f=_0x57a25a;var _0x2f9133,_0x272ad4;if(this[_0x1f021f(0xdf)]=!0x0,((_0x2f9133=this[_0x1f021f(0x265)][_0x1f021f(0x171)]())==null?void 0x0:_0x2f9133[_0x1f021f(0x15c)]())!==this[_0x1f021f(0x230)])return;const _0x4c0bf8=(_0x272ad4=this['_injector'][_0x1f021f(0x1dd)](g['SheetsSelectionsService'])[_0x1f021f(0x309)]())==null?void 0x0:_0x272ad4[0x0],_0x5919c5=this['_univerInstanceService'][_0x1f021f(0x108)](a[_0x1f021f(0x2a9)][_0x1f021f(0x248)])['getActiveSheet']();_0x4c0bf8&&_0x5919c5&&this[_0x1f021f(0x304)](_0x5919c5[_0x1f021f(0xff)](),_0x4c0bf8);}[_0x57a25a(0x323)](){const _0x4547b7=_0x57a25a;this[_0x4547b7(0xdf)]=!0x1;}};Se=it([w(0x2,a[_0x57a25a(0x17f)](a['Injector'])),w(0x3,a['Inject'](me)),w(0x4,a[_0x57a25a(0x17f)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x57a25a(0x1a2)]),w(0x7,a['Inject'](g[_0x57a25a(0x233)]))],Se);var at=Object[_0x57a25a(0xbe)],ct=(_0x57e5ea,_0x37aa9e,_0x4fdc1a,_0x21f23d)=>{const _0x59359d=_0x57a25a;for(var _0x718f1e=_0x21f23d>0x1?void 0x0:_0x21f23d?at(_0x37aa9e,_0x4fdc1a):_0x37aa9e,_0x1b9b61=_0x57e5ea[_0x59359d(0x25f)]-0x1,_0x4e563e;_0x1b9b61>=0x0;_0x1b9b61--)(_0x4e563e=_0x57e5ea[_0x1b9b61])&&(_0x718f1e=_0x4e563e(_0x718f1e)||_0x718f1e);return _0x718f1e;},ie=(_0x596a42,_0x2a103c)=>(_0x2f0b91,_0x4582a4)=>_0x2a103c(_0x2f0b91,_0x4582a4,_0x596a42);let x=class extends a[_0x57a25a(0x1c0)]{constructor(_0x149480,_0x1bc814,_0x29c8f0){const _0x1cc7c9=_0x57a25a;super(),h(this,_0x1cc7c9(0x209),new Map()),h(this,_0x1cc7c9(0x318),new d[(_0x1cc7c9(0x1fe))]()),(this[_0x1cc7c9(0x265)]=_0x149480,this[_0x1cc7c9(0x24d)]=_0x1bc814,this[_0x1cc7c9(0x1e1)]=_0x29c8f0,this['_init']());}['dispose'](){const _0x379de6=_0x57a25a;super[_0x379de6(0x1eb)](),this[_0x379de6(0x318)][_0x379de6(0xec)](),this[_0x379de6(0x209)][_0x379de6(0x2ef)](_0x500de4=>_0x500de4['dispose']());}[_0x57a25a(0x15e)](_0x2c662b){const _0x158b70=_0x57a25a;return this['_entities'][_0x158b70(0x177)](_0x2c662b)?this[_0x158b70(0x209)]['get'](_0x2c662b)[_0x158b70(0x313)]:this[_0x158b70(0x318)][_0x158b70(0x25e)](d[_0x158b70(0x303)](_0x494d4d=>_0x494d4d[_0x158b70(0x230)]===_0x2c662b),d[_0x158b70(0x1f1)](_0x171ec8=>_0x171ec8[_0x158b70(0x313)]));}[_0x57a25a(0x170)](){const _0x50711e=_0x57a25a;this[_0x50711e(0x265)][_0x50711e(0x30a)](a[_0x50711e(0x2a9)][_0x50711e(0x248)])['pipe'](d['takeUntil'](this[_0x50711e(0x2ed)]))['subscribe'](async _0x2109fb=>{const _0x58550d=_0x50711e,_0x605b30=_0x2109fb[_0x58550d(0x15c)](),_0x5d2e2b=await this['_startSheetCollabCursor'](_0x605b30);this['_entityInit$'][_0x58550d(0x28d)](_0x5d2e2b),this['_entities'][_0x58550d(0xb9)](_0x605b30,_0x5d2e2b);}),this['_univerInstanceService'][_0x50711e(0x30a)](a[_0x50711e(0x2a9)][_0x50711e(0xc2)])[_0x50711e(0x25e)](d[_0x50711e(0x13c)](this[_0x50711e(0x2ed)]))['pipe'](d[_0x50711e(0x303)](_0x214dba=>!_0x214dba[_0x50711e(0x15c)]()[_0x50711e(0x24f)]('__')))[_0x50711e(0x305)](async _0x4ddf01=>{const _0xb562d1=_0x50711e,_0xd53a0c=_0x4ddf01[_0xb562d1(0x15c)](),_0x2db99a=await this[_0xb562d1(0x275)](_0xd53a0c);this['_entityInit$'][_0xb562d1(0x28d)](_0x2db99a),this['_entities'][_0xb562d1(0xb9)](_0xd53a0c,_0x2db99a);}),d[_0x50711e(0x21d)](this[_0x50711e(0x265)][_0x50711e(0x176)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x50711e(0x265)][_0x50711e(0x176)](a[_0x50711e(0x2a9)][_0x50711e(0x248)]))['pipe'](d[_0x50711e(0x13c)](this[_0x50711e(0x2ed)]))['subscribe'](_0x58b719=>{const _0xd7f5df=_0x50711e,_0x25c040=_0x58b719[_0xd7f5df(0x15c)](),_0x2b41e6=this['_entities'][_0xd7f5df(0x1dd)](_0x25c040);_0x2b41e6&&(_0x2b41e6[_0xd7f5df(0x1eb)](),this[_0xd7f5df(0x209)]['delete'](_0x25c040));});}async[_0x57a25a(0x1d0)](_0x4c22d9){const _0x15e3c3=_0x57a25a,_0x1a95d7=await this['_collabSessionService'][_0x15e3c3(0x1f6)](_0x4c22d9),_0x2492b4=this[_0x15e3c3(0x24d)][_0x15e3c3(0xdc)](Se,_0x4c22d9,_0x1a95d7);return _0x2492b4[_0x15e3c3(0x23d)](),_0x2492b4;}async[_0x57a25a(0x275)](_0xd1c7fe){const _0x3a0ffb=_0x57a25a,_0x2ddad8=await this[_0x3a0ffb(0x1e1)][_0x3a0ffb(0x1f6)](_0xd1c7fe),_0x1ac51b=this[_0x3a0ffb(0x24d)][_0x3a0ffb(0xdc)](fe,_0xd1c7fe,_0x2ddad8);return _0x1ac51b[_0x3a0ffb(0x23d)](),_0x1ac51b;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),ie(0x2,a[_0x57a25a(0x17f)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x459bcd,_0xb1b0dc){const _0x105209=_0x57a25a;let {radius:_0x2145a8,width:_0x18ce71,height:_0x42843a}=_0xb1b0dc;_0x2145a8=_0x2145a8!=null?_0x2145a8:0x0,_0x18ce71=_0x18ce71!=null?_0x18ce71:0x1e,_0x42843a=_0x42843a!=null?_0x42843a:0x1e;let _0x2c3d0b=0x0,_0x4055c1=0x0,_0x1f4dc3=0x0;_0x2c3d0b=_0x4055c1=_0x1f4dc3=Math[_0x105209(0x118)](_0x2145a8,_0x18ce71/0x2,_0x42843a/0x2),_0x459bcd[_0x105209(0x149)](),_0x459bcd['moveTo'](_0x2c3d0b,0x0),_0x459bcd['lineTo'](_0x18ce71-_0x4055c1,0x0),_0x459bcd['arc'](_0x18ce71-_0x4055c1,_0x4055c1,_0x4055c1,Math['PI']*0x3/0x2,0x0,!0x1),_0x459bcd['lineTo'](_0x18ce71,_0x42843a-_0x1f4dc3),_0x459bcd[_0x105209(0xca)](_0x18ce71-_0x1f4dc3,_0x42843a-_0x1f4dc3,_0x1f4dc3,0x0,Math['PI']/0x2,!0x1),_0x459bcd[_0x105209(0x2a7)](0x0,_0x42843a),_0x459bcd['lineTo'](0x0,_0x2c3d0b),_0x459bcd['arc'](_0x2c3d0b,_0x2c3d0b,_0x2c3d0b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x459bcd[_0x105209(0xb4)](),_0xb1b0dc[_0x105209(0x31e)]&&(_0x459bcd[_0x105209(0x2e2)](),_0x459bcd['fillStyle']=_0xb1b0dc['fill'],_0xb1b0dc['fillRule']===_0x105209(0x13b)?_0x459bcd[_0x105209(0x31e)](_0x105209(0x13b)):_0x459bcd['fill'](),_0x459bcd[_0x105209(0xfe)]());}class ee extends p[_0x57a25a(0x173)]{constructor(_0x850197,_0x5d65ee){const _0x3ea12e=_0x57a25a;super(_0x850197,_0x5d65ee),h(this,'color'),h(this,_0x3ea12e(0xc8)),(this[_0x3ea12e(0xf9)]=_0x5d65ee==null?void 0x0:_0x5d65ee['color'],this['text']=_0x5d65ee==null?void 0x0:_0x5d65ee[_0x3ea12e(0xc8)]);}static[_0x57a25a(0x266)](_0x3066ca,_0x158dd9){const _0x17d799=_0x57a25a,{text:_0x4d14d8,color:_0x48181d}=_0x158dd9;_0x3066ca[_0x17d799(0x2e2)](),_0x3066ca[_0x17d799(0x1dc)]=_0x17d799(0x1bc);const _0x4b91b9=_0x3066ca[_0x17d799(0x1ab)](_0x4d14d8)['width'],_0x2700ef=Math[_0x17d799(0x118)](_0x4b91b9+0x2*ne,Re);_t(_0x3066ca,{'height':K,'radius':0x4,'width':_0x2700ef,'fill':_0x48181d}),_0x3066ca[_0x17d799(0x24e)]='#FFF';const _0x13a585=ne,_0x1b0224=K-lt,_0x87f8e0=Re-0x2*ne;if(_0x4b91b9>_0x87f8e0){let _0x4d576f='',_0x437513=0x0;for(const _0x47abe1 of _0x4d14d8){const _0x24437f=_0x3066ca['measureText'](_0x47abe1)['width'];if(_0x437513+_0x24437f<=_0x87f8e0-_0x3066ca[_0x17d799(0x1ab)](_0x17d799(0x16a))['width'])_0x4d576f+=_0x47abe1,_0x437513+=_0x24437f;else{_0x4d576f+='...';break;}}_0x3066ca[_0x17d799(0x18d)](_0x4d576f,_0x13a585,_0x1b0224);}else _0x3066ca[_0x17d799(0x18d)](_0x4d14d8,_0x13a585,_0x1b0224);_0x3066ca['restore']();}[_0x57a25a(0xe4)](_0x868b6c){const _0x57e810=_0x57a25a;ee[_0x57e810(0x266)](_0x868b6c,this);}}const re=_0x57a25a(0xd4),ht=_0x57a25a(0x22a),ut=_0x57a25a(0x220),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x57a25a(0x22b);class De{constructor(_0x4e6f95,_0x1f8b37,_0x5abf19,_0xcfd34b){const _0x4ac802=_0x57a25a;h(this,_0x4ac802(0x138),[]),h(this,'_anchor',null),h(this,_0x4ac802(0x104),null),h(this,'_anchorDot',null),h(this,_0x4ac802(0x1cf),null),h(this,'_eventUnsubscribe',null),(this[_0x4ac802(0x1a7)]=_0x4e6f95,this['_scene']=_0x1f8b37,this[_0x4ac802(0xe7)]=_0x5abf19,this[_0x4ac802(0xbf)]=_0xcfd34b,this[_0x4ac802(0x29b)]());}set[_0x57a25a(0x308)](_0x222495){const _0xf57b61=_0x57a25a;_0x222495?(this[_0xf57b61(0x252)]&&this['_anchorDot']['hide'](),this[_0xf57b61(0x104)]&&this[_0xf57b61(0x104)][_0xf57b61(0x301)]()):(this['_anchorDot']&&this['_anchorDot'][_0xf57b61(0x301)](),this[_0xf57b61(0x104)]&&this['_textBubble'][_0xf57b61(0x2bd)]());}[_0x57a25a(0x1eb)](){const _0x507016=_0x57a25a;for(const _0x4ba8cd of this[_0x507016(0x138)])_0x4ba8cd[_0x507016(0x1eb)]();this[_0x507016(0x104)]&&this[_0x507016(0x104)]['dispose'](),this[_0x507016(0x252)]&&this['_anchorDot']['dispose'](),this[_0x507016(0x151)]&&this[_0x507016(0x151)][_0x507016(0x1eb)](),this['_eventUnsubscribe']&&this[_0x507016(0x2be)]();}[_0x57a25a(0x29b)](){const _0x1e01b9=_0x57a25a;var _0x4d9880;const {_docSkeleton:_0x353495,_document:_0x6a2835}=this,{color:_0x1bb0aa,name:_0x322b1d,ranges:_0x4087e7}=this[_0x1e01b9(0x1a7)],_0x2fcd85=_0x6a2835[_0x1e01b9(0xf0)](),{docsLeft:_0x3df21b,docsTop:_0x2fb3c4}=_0x2fcd85,_0x337ad3=new b['NodePositionConvertToCursor'](_0x2fcd85,_0x353495);for(const {startOffset:_0x52d012,endOffset:_0x10e1c6,rangeType:_0x1f90db,segmentId:_0x58320a,segmentPage:_0x238a75,collapsed:_0x5a90ff,isActive:_0x1f4f2b}of _0x4087e7){const _0x349ec5=_0x353495[_0x1e01b9(0xbc)](_0x52d012,!0x0,_0x58320a,_0x238a75);let _0x126c0e=_0x353495[_0x1e01b9(0xbc)](_0x10e1c6,!0x0,_0x58320a,_0x238a75);if(_0x126c0e==null&&(_0x126c0e=_0x353495['findNodePositionByCharIndex'](_0x10e1c6-0x1,!0x1,_0x58320a,_0x238a75)),_0x1f4f2b){const {contentBoxPointGroup:_0x1f260e}=_0x337ad3['getRangePointData'](_0x126c0e,_0x126c0e);if(_0x1f260e[_0x1e01b9(0x25f)]===0x0)continue;this[_0x1e01b9(0x250)](_0x1bb0aa,_0x1f260e,_0x3df21b,_0x2fb3c4,_0x322b1d),this['_eventUnsubscribe']=this[_0x1e01b9(0x157)]();}if(_0x349ec5&&_0x126c0e){if(_0x1f90db===a[_0x1e01b9(0x20f)][_0x1e01b9(0x272)]){const _0x3ca4d7=new b[(_0x1e01b9(0x130))](_0x2fcd85,_0x353495),{pointGroup:_0x1cf106}=(_0x4d9880=_0x3ca4d7[_0x1e01b9(0xb6)](_0x349ec5,_0x126c0e))!=null?_0x4d9880:{};if(_0x1cf106==null||_0x1cf106['length']===0x0)continue;this['_drawRectRange'](_0x1bb0aa,_0x1cf106,_0x3df21b,_0x2fb3c4);}else{if(!_0x5a90ff){const {borderBoxPointGroup:_0x11cb01}=_0x337ad3['getRangePointData'](_0x349ec5,_0x126c0e);if(_0x11cb01[_0x1e01b9(0x25f)]===0x0)continue;this[_0x1e01b9(0x205)](_0x1bb0aa,_0x11cb01,_0x3df21b,_0x2fb3c4);}}}}}[_0x57a25a(0x250)](_0x445553,_0x5ad1ef,_0x45d215,_0x1ffeed,_0x3da4b6){const _0x55af02=_0x57a25a,_0x41716e=this[_0x55af02(0xe1)](_0x5ad1ef),{left:_0x57babf,top:_0x13bfaf,height:_0x425fa0}=_0x41716e,_0x409f34=this['_getScale'](),_0x2ad22c=ft/_0x409f34,_0x3704ae=new p[(_0x55af02(0x101))](re+a['Tools']['generateRandomId'](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed,'height':_0x425fa0,'width':dt,'fill':_0x445553||p['getColor'](a[_0x55af02(0x153)][_0x55af02(0x28f)],0x0),'strokeWidth':_0x2ad22c,'stroke':St,'evented':!0x0});this[_0x55af02(0x151)]=_0x3704ae,this[_0x55af02(0xfd)][_0x55af02(0x208)](_0x3704ae,b[_0x55af02(0x1e9)]);const _0x37ad0b=new p[(_0x55af02(0x101))](re+a[_0x55af02(0x225)][_0x55af02(0xce)](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed-oe/0x2,'height':oe,'width':oe,'fill':_0x445553||p[_0x55af02(0x17c)](a[_0x55af02(0x153)][_0x55af02(0x28f)],0x0),'strokeWidth':0x0,'stroke':_0x445553||p[_0x55af02(0x17c)](a[_0x55af02(0x153)]['black'],0x0),'evented':!0x1});this[_0x55af02(0x252)]=_0x37ad0b,this['_scene']['addObject'](_0x37ad0b,b[_0x55af02(0x1e9)]);const _0x2f3c2a=new ee(re+a[_0x55af02(0x225)]['generateRandomId'](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed-K,'text':_0x3da4b6,'color':_0x445553});this[_0x55af02(0x104)]=_0x2f3c2a,this['_scene'][_0x55af02(0x208)](_0x2f3c2a,b[_0x55af02(0x1e9)]),this['_hover']=!0x1;}[_0x57a25a(0x157)](){const _0x176120=_0x57a25a,_0x477472=this['_anchor'][_0x176120(0x178)][_0x176120(0x182)](()=>{const _0x19134b=_0x176120;this[_0x19134b(0x308)]=!0x0;}),_0x18485d=this['_anchor'][_0x176120(0x277)]['subscribeEvent'](()=>{const _0x4f216b=_0x176120;this[_0x4f216b(0x1cf)]&&clearTimeout(this[_0x4f216b(0x1cf)]),this[_0x4f216b(0x1cf)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4c6a90=_0x176120;_0x477472[_0x4c6a90(0x163)](),_0x18485d[_0x4c6a90(0x163)]();};}[_0x57a25a(0x205)](_0x5755b7,_0x3d2dcf,_0x24cda3,_0x25349f){const _0x535d74=_0x57a25a,_0x5425a0=new a[(_0x535d74(0x169))](_0x5755b7)['setAlpha'](0.2)[_0x535d74(0x1d5)](),_0x1247a3=new p[(_0x535d74(0x16f))](ht+a['Tools'][_0x535d74(0xce)](k),{'pointsGroup':_0x3d2dcf,'fill':_0x5425a0||p[_0x535d74(0x17c)](a[_0x535d74(0x153)][_0x535d74(0x28f)],0.2),'left':_0x24cda3,'top':_0x25349f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x535d74(0x138)][_0x535d74(0x11f)](_0x1247a3),this['_scene'][_0x535d74(0x208)](_0x1247a3,b['TEXT_RANGE_LAYER_INDEX']);}[_0x57a25a(0xd1)](_0x39a210,_0xfd5fe3,_0x3713c6,_0x4fccd6){const _0x26186e=_0x57a25a,_0x406f04=new a['ColorKit'](_0x39a210)['setAlpha'](0.2)['toRgbString'](),_0x50efe1=new p[(_0x26186e(0x16f))](ut+a[_0x26186e(0x225)][_0x26186e(0xce)](k),{'pointsGroup':_0xfd5fe3,'fill':_0x406f04||p[_0x26186e(0x17c)](a[_0x26186e(0x153)]['black'],0.2),'left':_0x3713c6,'top':_0x4fccd6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26186e(0x138)][_0x26186e(0x11f)](_0x50efe1),this[_0x26186e(0xfd)]['addObject'](_0x50efe1,b['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x5b718d){const _0x39e078=_0x5b718d[0x0],_0x4c28c4=_0x39e078[0x0],_0x701e0b=_0x39e078[0x2],{x:_0x4e697b,y:_0x2a84a6}=_0x4c28c4,{x:_0x3db5b8,y:_0x532a80}=_0x701e0b;return{'left':_0x4e697b,'top':_0x2a84a6,'width':_0x3db5b8-_0x4e697b,'height':_0x532a80-_0x2a84a6};}[_0x57a25a(0x2eb)](){const _0x3a0e5b=_0x57a25a,{scaleX:_0x2af1e1,scaleY:_0x458715}=this[_0x3a0e5b(0xfd)][_0x3a0e5b(0x253)]();return Math[_0x3a0e5b(0x1be)](_0x2af1e1,_0x458715);}}var It=Object[_0x57a25a(0xbe)],vt=(_0x1b4b32,_0x509524,_0x315bf8,_0x39de0d)=>{const _0x3836fa=_0x57a25a;for(var _0x24dab0=_0x39de0d>0x1?void 0x0:_0x39de0d?It(_0x509524,_0x315bf8):_0x509524,_0x504402=_0x1b4b32[_0x3836fa(0x25f)]-0x1,_0x2f6848;_0x504402>=0x0;_0x504402--)(_0x2f6848=_0x1b4b32[_0x504402])&&(_0x24dab0=_0x2f6848(_0x24dab0)||_0x24dab0);return _0x24dab0;},W=(_0x4d4529,_0x18525d)=>(_0x13a1df,_0x3eca29)=>_0x18525d(_0x13a1df,_0x3eca29,_0x4d4529);let Ie=class extends a[_0x57a25a(0x1c0)]{constructor(_0x5caa19,_0x52d953,_0x10ec18,_0x398570,_0x90c76a){const _0x2291e6=_0x57a25a;super(),h(this,_0x2291e6(0x195),[]),h(this,_0x2291e6(0x27f),[]),(this['_context']=_0x5caa19,this[_0x2291e6(0x161)]=_0x52d953,this['_collabCursorController']=_0x10ec18,this[_0x2291e6(0x2d0)]=_0x398570,this[_0x2291e6(0x23b)]=_0x90c76a,this[_0x2291e6(0x170)]());}[_0x57a25a(0x170)](){const _0x47324f=_0x57a25a,_0x516ffd=this[_0x47324f(0x1ca)][_0x47324f(0x110)],_0x5ac198=this[_0x47324f(0x161)];this[_0x47324f(0x293)](d[_0x47324f(0x150)]([this[_0x47324f(0x219)][_0x47324f(0x15e)](_0x516ffd),this[_0x47324f(0x23b)]['currentTheme$']])[_0x47324f(0x25e)]($[_0x47324f(0x2d8)](([_0x552573,_0x450532])=>({'skeleton':_0x5ac198[_0x47324f(0xee)](),'cursors':[..._0x552573[_0x47324f(0x263)]()]['flatMap'](_0x43a367=>({..._0x43a367,'color':this[_0x47324f(0x23b)][_0x47324f(0x2f6)](_0x43a367[_0x47324f(0xf9)])}))})))[_0x47324f(0x305)](_0x5793fe=>{const _0x54e442=_0x47324f;if(this[_0x54e442(0x1e0)](),_0x5793fe){const {skeleton:_0x437a0f,cursors:_0x1c96e0}=_0x5793fe;this[_0x54e442(0x19b)](_0x437a0f,_0x1c96e0);}})),this[_0x47324f(0x20d)](),this[_0x47324f(0x328)]();}[_0x57a25a(0x19b)](_0x5d03c3,_0x2d70d2){const _0x1facdb=_0x57a25a,{scene:_0x1ca724,mainComponent:_0xb53f6b}=this[_0x1facdb(0x1ca)],_0x2aa86b=_0x2d70d2[_0x1facdb(0x2d8)](_0x29a0b8=>new De(_0x29a0b8,_0x1ca724,_0x5d03c3,_0xb53f6b));this[_0x1facdb(0x195)]=_0x2aa86b,this[_0x1facdb(0x27f)]=_0x2d70d2;}[_0x57a25a(0x1c1)](){const _0x338726=_0x57a25a;this[_0x338726(0x1e0)]();const {scene:_0x54cd7b,mainComponent:_0x472458}=this[_0x338726(0x1ca)],_0x5b8dab=this[_0x338726(0x161)][_0x338726(0xee)](),_0x29de17=this[_0x338726(0x27f)]['map'](_0x5c15b2=>new De(_0x5c15b2,_0x54cd7b,_0x5b8dab,_0x472458));this['_cursorShapes']=_0x29de17;}[_0x57a25a(0x1e0)](){const _0x3f42c6=_0x57a25a;this['_cursorShapes'][_0x3f42c6(0x2ef)](_0x11d83d=>_0x11d83d[_0x3f42c6(0x1eb)]()),this[_0x3f42c6(0x195)]=[];}[_0x57a25a(0x328)](){const _0x44d865=_0x57a25a,_0x470555=[b[_0x44d865(0xed)]['id']];this[_0x44d865(0x293)](this[_0x44d865(0x2d0)][_0x44d865(0x2de)](_0x2785c0=>{const _0x47e86e=_0x44d865;_0x470555[_0x47e86e(0x121)](_0x2785c0['id'])&&_0x2785c0[_0x47e86e(0x310)][_0x47e86e(0x110)]===this[_0x47e86e(0x1ca)][_0x47e86e(0x110)]&&this['_refreshCollabCursors']();}));}[_0x57a25a(0x20d)](){const _0x3f6bd3=_0x57a25a;this['disposeWithMe'](a[_0x3f6bd3(0x11e)](this[_0x3f6bd3(0x1ca)]['engine'][_0x3f6bd3(0xd7)])['pipe']($['filter'](_0x3cb86d=>_0x3cb86d[_0x3f6bd3(0x258)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3f6bd3(0x193)]),$[_0x3f6bd3(0x29f)](0x10))['subscribe'](()=>{const _0x8b4ed6=_0x3f6bd3;this[_0x8b4ed6(0x1c1)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x57a25a(0xe6)])),W(0x2,a[_0x57a25a(0x17f)](x)),W(0x3,a[_0x57a25a(0x1a2)]),W(0x4,a[_0x57a25a(0x17f)](a[_0x57a25a(0x12b)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x57a25a(0x173)]{constructor(_0x9df7e,_0x41e3eb){const _0x56165e=_0x57a25a;super(_0x9df7e,_0x41e3eb),h(this,_0x56165e(0x21a)),h(this,_0x56165e(0x184),!0x1),h(this,_0x56165e(0xbd)),h(this,'_name',''),h(this,'_labelPosition',_0x56165e(0x2ac)),h(this,'_backgroundColor'),(_0x41e3eb&&this[_0x56165e(0x268)](_0x41e3eb),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x56165e(0x268)]({'hovered':!0x0})),this[_0x56165e(0x277)][_0x56165e(0x182)](()=>this[_0x56165e(0x268)]({'hovered':!0x1})));}[_0x57a25a(0x268)](_0x29f6f1){const _0x50fdee=_0x57a25a;var _0xa91adf,_0x9951d9,_0xcbf3aa,_0x5d9eec,_0x14db93,_0x18cbc7;this[_0x50fdee(0x21a)]=(_0xa91adf=_0x29f6f1['color'])!=null?_0xa91adf:this[_0x50fdee(0x21a)],this['_hovered']=(_0x9951d9=_0x29f6f1['hovered'])!=null?_0x9951d9:this[_0x50fdee(0x184)],this[_0x50fdee(0xbd)]=(_0xcbf3aa=_0x29f6f1[_0x50fdee(0x296)])!=null?_0xcbf3aa:this[_0x50fdee(0xbd)],this[_0x50fdee(0x1a4)]=(_0x5d9eec=_0x29f6f1[_0x50fdee(0x21e)])!=null?_0x5d9eec:this[_0x50fdee(0x1a4)],this['_labelPosition']=(_0x14db93=_0x29f6f1['labelPosition'])!=null?_0x14db93:this[_0x50fdee(0x2cc)],this['_backgroundColor']=(_0x18cbc7=_0x29f6f1[_0x50fdee(0x2d6)])!=null?_0x18cbc7:this['_backgroundColor'],this[_0x50fdee(0x322)]({'width':_0x29f6f1[_0x50fdee(0xb8)],'height':_0x29f6f1[_0x50fdee(0x259)]});}[_0x57a25a(0x31b)](_0x4b69cd){const _0x33b1eb=_0x57a25a,{row:_0x15cfba,column:_0x4274e5}=_0x4b69cd;if(_0x15cfba>=this[_0x33b1eb(0xbd)][_0x33b1eb(0x24a)]&&_0x15cfba<=this[_0x33b1eb(0xbd)][_0x33b1eb(0x2c8)]&&_0x4274e5>=this[_0x33b1eb(0xbd)][_0x33b1eb(0x2dc)]&&_0x4274e5<=this[_0x33b1eb(0xbd)][_0x33b1eb(0xcc)]){this[_0x33b1eb(0x268)]({'hovered':!0x0});return;}this[_0x33b1eb(0x268)]({'hovered':!0x1});}[_0x57a25a(0x21f)](_0x497bd8){return!0x1;}[_0x57a25a(0xe4)](_0x59fe6f){const _0xd952c2=_0x57a25a;p[_0xd952c2(0x101)]['drawWith'](_0x59fe6f,{'width':this[_0xd952c2(0xb8)],'height':this[_0xd952c2(0x259)],'strokeWidth':mt,'stroke':this[_0xd952c2(0x21a)],'evented':!0x1,'fill':this[_0xd952c2(0x172)]}),this[_0xd952c2(0x184)]&&(_0x59fe6f[_0xd952c2(0x2e2)](),_0x59fe6f[_0xd952c2(0x284)](0x1,0x0,0x0,0x1,this[_0xd952c2(0xb8)],this[_0xd952c2(0x2cc)]===_0xd952c2(0x23a)?0x0:-0x14),ee['drawWith'](_0x59fe6f,{'text':this[_0xd952c2(0x1a4)],'color':this[_0xd952c2(0x21a)]}),_0x59fe6f[_0xd952c2(0xfe)]());}}var Ct=Object[_0x57a25a(0xbe)],pt=(_0x38269a,_0x6b7814,_0x24ed23,_0x3225ba)=>{const _0xc7b2c4=_0x57a25a;for(var _0x24fbd9=_0x3225ba>0x1?void 0x0:_0x3225ba?Ct(_0x6b7814,_0x24ed23):_0x6b7814,_0x9bfec0=_0x38269a[_0xc7b2c4(0x25f)]-0x1,_0x272d5a;_0x9bfec0>=0x0;_0x9bfec0--)(_0x272d5a=_0x38269a[_0x9bfec0])&&(_0x24fbd9=_0x272d5a(_0x24fbd9)||_0x24fbd9);return _0x24fbd9;},ae=(_0x3d973f,_0x28601d)=>(_0x44993b,_0x31e8fc)=>_0x28601d(_0x44993b,_0x31e8fc,_0x3d973f);const bt=0x1389;let ve=class extends a[_0x57a25a(0x1c0)]{constructor(_0x5ce1e0,_0x3fc6f2,_0x15f4a6,_0x398864){const _0x521a1a=_0x57a25a;super(),h(this,'_cursors',new Set()),h(this,_0x521a1a(0x1ba),null),(this[_0x521a1a(0x1ca)]=_0x5ce1e0,this[_0x521a1a(0x298)]=_0x3fc6f2,this['_collabCursorController']=_0x15f4a6,this[_0x521a1a(0x23b)]=_0x398864,this[_0x521a1a(0x170)]());}[_0x57a25a(0x170)](){const _0x304ba2=_0x57a25a;this[_0x304ba2(0x298)]['currentSkeleton$'][_0x304ba2(0x25e)]($[_0x304ba2(0x13c)](this[_0x304ba2(0x2ed)]),$[_0x304ba2(0x1f1)](_0x2c2c0b=>{const _0x18d36c=_0x304ba2;if(_0x2c2c0b){const _0x6be78e=_0x2c2c0b['sheetId'];return d[_0x18d36c(0x150)](this[_0x18d36c(0x219)][_0x18d36c(0x15e)](this[_0x18d36c(0x1ca)][_0x18d36c(0x110)]),this[_0x18d36c(0x23b)][_0x18d36c(0x1d7)])[_0x18d36c(0x25e)]($['map'](([_0x464685,_0x1f9c0e])=>{const _0x3a305f=_0x18d36c,_0x34e901=new Map();return _0x464685[_0x3a305f(0x2ef)]((_0x24a907,_0x5398a1)=>{const _0x532637=_0x3a305f;if(_0x24a907[_0x532637(0x31d)]===_0x6be78e){const _0x462abb={..._0x24a907};_0x462abb[_0x532637(0xf9)]=this[_0x532637(0x23b)]['getColorFromTheme'](_0x24a907['color']),_0x34e901[_0x532637(0xb9)](_0x5398a1,_0x462abb);}}),{'skeleton':_0x2c2c0b,'cursors':_0x34e901};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x304ba2(0x305)](({skeleton:_0x16fb5f,cursors:_0x4eb1f4})=>{const _0xf6e9db=_0x304ba2;this[_0xf6e9db(0x1e0)](),_0x16fb5f&&this['_updateCollabCursors'](_0x16fb5f,_0x4eb1f4);}),this[_0x304ba2(0x298)][_0x304ba2(0x269)][_0x304ba2(0x305)](_0x296df1=>{const _0x3e10fc=_0x304ba2;if(_0x296df1==null)return;const {skeleton:_0x3f15b7}=_0x296df1,{scene:_0x1d7bf8}=this['_context'];_0x1d7bf8['onPointerMove$']['subscribeEvent'](a[_0x3e10fc(0x2fc)](_0x1fca10=>{const _0x48a423=_0x3e10fc;var _0x50a045,_0x105063;const {offsetX:_0x373dab,offsetY:_0x5d2d6f}=_0x1fca10,{x:_0x55b955,y:_0x5e9979}=_0x1d7bf8[_0x48a423(0x11a)](p['Vector2']['FromArray']([_0x373dab,_0x5d2d6f])),{scaleX:_0x376280,scaleY:_0x14b2d6}=_0x1d7bf8[_0x48a423(0x253)](),_0x7b5694=_0x1d7bf8[_0x48a423(0x282)](p[_0x48a423(0x1ee)]['VIEW_MAIN']),_0x2ed601=_0x1d7bf8[_0x48a423(0xe8)](p['Vector2']['FromArray']([_0x55b955,_0x5e9979]),_0x7b5694),_0x196368=_0x3f15b7[_0x48a423(0x28a)](_0x373dab,_0x5d2d6f,_0x376280,_0x14b2d6,_0x2ed601);((_0x50a045=this[_0x48a423(0x1ba)])==null?void 0x0:_0x50a045['column'])===_0x196368['column']&&((_0x105063=this[_0x48a423(0x1ba)])==null?void 0x0:_0x105063[_0x48a423(0x224)])===_0x196368['row']||this['_cursors'][_0x48a423(0x2ef)](_0x118ba3=>{_0x118ba3['onMouseMove'](_0x196368);});},0x64));});}[_0x57a25a(0x19b)](_0xc931d4,_0x5360a9){const _0x34828a=_0x57a25a;var _0x22245b;const _0x984c65=(_0x22245b=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x22245b[_0x34828a(0x1cc)];if(!_0x984c65)return;const _0x2b9cea=this[_0x34828a(0x1d1)]();if(!_0x2b9cea)return;this[_0x34828a(0x27f)][_0x34828a(0x2ef)](_0x2ef058=>{const _0xca3fe2=_0x34828a;_0x2ef058[_0xca3fe2(0x17d)]();});const {scene:_0x4ff70d}=_0x2b9cea,_0x3e302b=Et(Array[_0x34828a(0x2e6)](_0x5360a9[_0x34828a(0x263)]()))[_0x34828a(0x2d8)](_0x3847a8=>{const _0x34ac50=_0x34828a,{color:_0x162203,range:_0x1f925e,name:_0x3d48ae,selection:_0x434e81,sheetID:_0x39dd13}=_0x3847a8,{startColumn:_0x1aa7b6,startRow:_0x140094,endColumn:_0x10aa6c,endRow:_0x5479aa}=_0x1f925e,_0x58727c=X[_0x34ac50(0x20b)](_0x140094,_0x1aa7b6,_0x4ff70d,_0x984c65),_0x2dc002=X[_0x34ac50(0x20b)](_0x5479aa,_0x10aa6c,_0x4ff70d,_0x984c65),{columnHeaderHeightAndMarginTop:_0x5282dc}=_0x984c65,{startX:_0x2ac7c0,startY:_0x677e5c}=_0x58727c,{endX:_0x483447,endY:_0xba244c}=_0x2dc002,_0x4cb6bc=_0x483447-_0x2ac7c0,_0x46fdd8=_0xba244c-_0x677e5c,_0x43427a={'labelPosition':_0x677e5c-_0x5282dc>=K?_0x34ac50(0x2ac):_0x34ac50(0x23a),'sheetID':_0x39dd13,'range':_0x1f925e,'color':_0x162203,'name':_0x3d48ae,'selection':_0x434e81,'left':_0x2ac7c0,'top':_0x677e5c,'width':_0x4cb6bc,'height':_0x46fdd8,'evented':!0x1,'zIndex':bt};return new Ae(_0x3d48ae,_0x43427a);});_0x4ff70d[_0x34828a(0x1e8)](_0x3e302b,gt),this[_0x34828a(0x27f)]=new Set(_0x3e302b);}[_0x57a25a(0x1e0)](){const _0x38a2ee=_0x57a25a;var _0x14605f;(_0x14605f=this[_0x38a2ee(0x27f)])==null||_0x14605f[_0x38a2ee(0x2ef)](_0x4bb5b4=>_0x4bb5b4[_0x38a2ee(0x1eb)]());}[_0x57a25a(0x1d1)](){const _0x41a391=_0x57a25a;return X['getSheetObject'](this[_0x41a391(0x1ca)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x57a25a(0x17f)](X[_0x57a25a(0x1b5)])),ae(0x2,a[_0x57a25a(0x17f)](x)),ae(0x3,a[_0x57a25a(0x17f)](a[_0x57a25a(0x12b)]))],ve);function Et(_0x2c14ea){const _0x2e1c53=_0x57a25a,_0x3b3789=new Map();return _0x2c14ea[_0x2e1c53(0x2ef)](_0x2f8f9d=>{const _0x112f89=_0x2e1c53;if(_0x3b3789[_0x112f89(0x177)](_0x2f8f9d[_0x112f89(0x2fe)])){const _0xe2e4c8=_0x3b3789[_0x112f89(0x1dd)](_0x2f8f9d[_0x112f89(0x2fe)]);_0xe2e4c8[_0x112f89(0x21e)]+=',\x20'+_0x2f8f9d[_0x112f89(0x21e)];}else _0x3b3789[_0x112f89(0xb9)](_0x2f8f9d['selection'],_0x2f8f9d);}),Array['from'](_0x3b3789[_0x2e1c53(0x263)]());}var E=function(){const _0x2bf30c=_0x57a25a;return E=Object[_0x2bf30c(0x255)]||function(_0x29b6f2){const _0x43d0fd=_0x2bf30c;for(var _0x212bf4,_0xf77d94=0x1,_0x5373fb=arguments[_0x43d0fd(0x25f)];_0xf77d94<_0x5373fb;_0xf77d94++){_0x212bf4=arguments[_0xf77d94];for(var _0x2ebb4e in _0x212bf4)Object[_0x43d0fd(0x22c)][_0x43d0fd(0x10b)][_0x43d0fd(0x166)](_0x212bf4,_0x2ebb4e)&&(_0x29b6f2[_0x2ebb4e]=_0x212bf4[_0x2ebb4e]);}return _0x29b6f2;},E[_0x2bf30c(0xc0)](this,arguments);},Tt=function(_0x2e6554,_0x4d17){const _0x66e914=_0x57a25a;var _0x465279={};for(var _0x1af260 in _0x2e6554)Object[_0x66e914(0x22c)][_0x66e914(0x10b)]['call'](_0x2e6554,_0x1af260)&&_0x4d17['indexOf'](_0x1af260)<0x0&&(_0x465279[_0x1af260]=_0x2e6554[_0x1af260]);if(_0x2e6554!=null&&typeof Object[_0x66e914(0x295)]=='function'){for(var _0x1426f6=0x0,_0x1af260=Object['getOwnPropertySymbols'](_0x2e6554);_0x1426f6<_0x1af260[_0x66e914(0x25f)];_0x1426f6++)_0x4d17[_0x66e914(0x2f9)](_0x1af260[_0x1426f6])<0x0&&Object[_0x66e914(0x22c)]['propertyIsEnumerable'][_0x66e914(0x166)](_0x2e6554,_0x1af260[_0x1426f6])&&(_0x465279[_0x1af260[_0x1426f6]]=_0x2e6554[_0x1af260[_0x1426f6]]);}return _0x465279;},pe=M[_0x57a25a(0x30e)](function(_0x3afd06,_0x22aff1){const _0x2d76b0=_0x57a25a;var _0x3d40c6=_0x3afd06['icon'],_0x907bf2=_0x3afd06['id'],_0x18bde0=_0x3afd06[_0x2d76b0(0x1ff)],_0x5023f8=_0x3afd06[_0x2d76b0(0x240)],_0xdf27d1=Tt(_0x3afd06,[_0x2d76b0(0x25b),'id',_0x2d76b0(0x1ff),'extend']),_0x38e923=_0x2d76b0(0x200)[_0x2d76b0(0x11c)](_0x907bf2,'\x20')[_0x2d76b0(0x11c)](_0x18bde0||'')[_0x2d76b0(0x192)](),_0x3bca07=M['useRef']('_'[_0x2d76b0(0x11c)](Dt()));return we(_0x3d40c6,''[_0x2d76b0(0x11c)](_0x907bf2),{'defIds':_0x3d40c6[_0x2d76b0(0x27a)],'idSuffix':_0x3bca07['current']},E({'ref':_0x22aff1,'className':_0x38e923},_0xdf27d1),_0x5023f8);});function we(_0x2aeeec,_0x5c3b92,_0x4ed4ad,_0x2bf199,_0x18b270){const _0x1d7f55=_0x57a25a;return M['createElement'](_0x2aeeec[_0x1d7f55(0x215)],E(E({'key':_0x5c3b92},Ot(_0x2aeeec,_0x4ed4ad,_0x18b270)),_0x2bf199),(Rt(_0x2aeeec,_0x4ed4ad)[_0x1d7f55(0x1f5)]||[])[_0x1d7f55(0x2d8)](function(_0x54a9e3,_0x51677b){const _0x6c3621=_0x1d7f55;return we(_0x54a9e3,''[_0x6c3621(0x11c)](_0x5c3b92,'-')[_0x6c3621(0x11c)](_0x2aeeec[_0x6c3621(0x215)],'-')[_0x6c3621(0x11c)](_0x51677b),_0x4ed4ad,void 0x0,_0x18b270);}));}function Ot(_0x573e64,_0xacf61f,_0xa74557){const _0x299320=_0x57a25a;var _0x166781=E({},_0x573e64[_0x299320(0xea)]);_0xa74557!=null&&_0xa74557['colorChannel1']&&_0x166781['fill']===_0x299320(0x11d)&&(_0x166781[_0x299320(0x31e)]=_0xa74557['colorChannel1']),_0x573e64[_0x299320(0x215)]===_0x299320(0x317)&&_0x166781['id']&&(_0x166781['id']=_0x166781['id']+_0xacf61f[_0x299320(0xb7)]),Object['entries'](_0x166781)[_0x299320(0x2ef)](function(_0x2719a7){const _0x4cc43e=_0x299320;var _0xcb70d1=_0x2719a7[0x0],_0x5b952c=_0x2719a7[0x1];_0xcb70d1===_0x4cc43e(0x317)&&typeof _0x5b952c==_0x4cc43e(0x320)&&(_0x166781[_0xcb70d1]=_0x5b952c[_0x4cc43e(0x1ce)](/url\(#(.*)\)/,_0x4cc43e(0x2ee)[_0x4cc43e(0x11c)](_0xacf61f['idSuffix'],')')));});var _0x43c6ba=_0xacf61f[_0x299320(0x27a)];return!_0x43c6ba||_0x43c6ba[_0x299320(0x25f)]===0x0||(_0x573e64[_0x299320(0x215)]==='use'&&_0x166781[_0x299320(0x164)]&&(_0x166781[_0x299320(0x164)]=_0x166781[_0x299320(0x164)]+_0xacf61f[_0x299320(0xb7)]),Object[_0x299320(0xf7)](_0x166781)[_0x299320(0x2ef)](function(_0x2af2b6){const _0x1e7044=_0x299320;var _0x1c8955=_0x2af2b6[0x0],_0x1f0eec=_0x2af2b6[0x1];typeof _0x1f0eec==_0x1e7044(0x320)&&(_0x166781[_0x1c8955]=_0x1f0eec[_0x1e7044(0x1ce)](/url\(#(.*)\)/,_0x1e7044(0x2ee)[_0x1e7044(0x11c)](_0xacf61f[_0x1e7044(0xb7)],')')));})),_0x166781;}function Rt(_0x446c80,_0x5d248d){const _0x5ad819=_0x57a25a;var _0x119bf8,_0x1ffa05=_0x5d248d[_0x5ad819(0x27a)];return!_0x1ffa05||_0x1ffa05[_0x5ad819(0x25f)]===0x0?_0x446c80:_0x446c80[_0x5ad819(0x215)]===_0x5ad819(0x148)&&(!((_0x119bf8=_0x446c80[_0x5ad819(0x1f5)])===null||_0x119bf8===void 0x0)&&_0x119bf8[_0x5ad819(0x25f)])?E(E({},_0x446c80),{'children':_0x446c80[_0x5ad819(0x1f5)]['map'](function(_0x2d92c5){const _0x477d46=_0x5ad819;return typeof _0x2d92c5[_0x477d46(0xea)]['id']==_0x477d46(0x320)&&_0x1ffa05&&_0x1ffa05[_0x477d46(0x2f9)](_0x2d92c5[_0x477d46(0xea)]['id'])>-0x1?E(E({},_0x2d92c5),{'attrs':E(E({},_0x2d92c5[_0x477d46(0xea)]),{'id':_0x2d92c5[_0x477d46(0xea)]['id']+_0x5d248d['idSuffix']})}):_0x2d92c5;})}):_0x446c80;}function Dt(){const _0x196678=_0x57a25a;return Math[_0x196678(0x312)]()[_0x196678(0x229)](0x24)[_0x196678(0x329)](0x2,0x8);}pe[_0x57a25a(0x2e1)]='UniverIcon';var Ut={'tag':_0x57a25a(0x17e),'attrs':{'fill':_0x57a25a(0x1cd),'viewBox':_0x57a25a(0xd8),'width':_0x57a25a(0x2fb),'height':_0x57a25a(0x2fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a25a(0x221)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x57a25a(0x1e4),'strokeWidth':1.2}}]},{'tag':_0x57a25a(0x148),'attrs':{},'children':[{'tag':_0x57a25a(0x132),'attrs':{'id':_0x57a25a(0x29c)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'fill':_0x57a25a(0x2b4),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x57a25a(0x29c)]},ye=M[_0x57a25a(0x30e)](function(_0x29795e,_0x113859){const _0x42ab1d=_0x57a25a;return M['createElement'](pe,Object[_0x42ab1d(0x255)]({},_0x29795e,{'id':'off-line-single','ref':_0x113859,'icon':Ut}));});ye[_0x57a25a(0x2e1)]=_0x57a25a(0x1f2);var Nt={'tag':'svg','attrs':{'fill':_0x57a25a(0x1cd),'viewBox':_0x57a25a(0x19a),'width':_0x57a25a(0x2fb),'height':_0x57a25a(0x2fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a25a(0x1a6)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'stroke':'currentColor','d':_0x57a25a(0x19d),'strokeLinecap':_0x57a25a(0x1e4),'strokeLinejoin':_0x57a25a(0x1e4),'strokeWidth':1.2}}]},{'tag':_0x57a25a(0x148),'attrs':{},'children':[{'tag':_0x57a25a(0x132),'attrs':{'id':_0x57a25a(0x2da)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'fill':_0x57a25a(0x2b4),'d':_0x57a25a(0xcd),'transform':_0x57a25a(0x2cf)}}]}]}],'defIds':[_0x57a25a(0x2da)]},$e=M[_0x57a25a(0x30e)](function(_0x4062a7,_0x5a0b70){const _0x30a69e=_0x57a25a;return M[_0x30a69e(0x145)](pe,Object[_0x30a69e(0x255)]({},_0x4062a7,{'id':'on-line-single','ref':_0x5a0b70,'icon':Nt}));});$e[_0x57a25a(0x2e1)]=_0x57a25a(0x2e4);function Mt(_0x125883){const _0x40cad5=_0x57a25a;switch(_0x125883){case u[_0x40cad5(0x1b0)][_0x40cad5(0x117)]:return _0x40cad5(0x24b);case u['CollaborationStatus'][_0x40cad5(0x1a3)]:return'collabStatus.conflict';case u[_0x40cad5(0x1b0)][_0x40cad5(0x2b5)]:return _0x40cad5(0x1fd);case u[_0x40cad5(0x1b0)][_0x40cad5(0x29d)]:return _0x40cad5(0xb0);case u[_0x40cad5(0x1b0)][_0x40cad5(0x2ff)]:case u[_0x40cad5(0x1b0)][_0x40cad5(0x2b6)]:return _0x40cad5(0xd3);case u['CollaborationStatus'][_0x40cad5(0x1c8)]:case u['CollaborationStatus'][_0x40cad5(0x2ec)]:return _0x40cad5(0x2fd);}}function xe(_0x5aae25){const _0x146846=_0x57a25a,{status$:_0x4115b9}=_0x5aae25,_0x3c33d2=T['useObservable'](_0x4115b9,u['CollaborationStatus'][_0x146846(0x29d)]),_0x1b269c=T['useDependency'](a['LocaleService']),_0x1f151a=T[_0x146846(0x196)](u[_0x146846(0x1ed)]),_0x4fc8d6=_0x3c33d2!==u[_0x146846(0x1b0)][_0x146846(0x117)],_0xc25ad5=_0x1b269c['t'](Mt(_0x3c33d2)),_0x1e99b8=_0x4fc8d6?P[_0x146846(0xcb)]($e,{}):P[_0x146846(0xcb)](ye,{}),_0x570b2e=M[_0x146846(0x256)](()=>{const _0x42347f=_0x146846;_0x4fc8d6||_0x1f151a[_0x42347f(0x140)]();},[_0x4fc8d6,_0x1f151a]);function _0x59debc(){const _0x923feb=_0x146846;return P['jsxs'](_0x923feb(0x1fc),{'className':_0x923feb(0x187),'onClick':_0x570b2e,'children':[P[_0x923feb(0xcb)](_0x923feb(0x1fc),{'className':D[_0x923feb(0x167)](_0x923feb(0x122),{'univer-text-green-500':_0x4fc8d6,'univer-text-red-500':!_0x4fc8d6}),'children':_0x1e99b8}),P[_0x923feb(0xcb)](_0x923feb(0x1fc),{'className':_0x923feb(0x10d),'children':_0xc25ad5})]});}return _0x4fc8d6?_0x59debc():P[_0x146846(0xcb)](D[_0x146846(0x100)],{'title':_0x1b269c['t']('collab-client.tooltip.reconnect'),'children':_0x59debc()});}var Lt=Object[_0x57a25a(0xbe)],Pt=(_0x2cbc60,_0x1e91e0,_0x49f1cc,_0x493646)=>{for(var _0x1d9f17=_0x493646>0x1?void 0x0:_0x493646?Lt(_0x1e91e0,_0x49f1cc):_0x1e91e0,_0x4e62e1=_0x2cbc60['length']-0x1,_0x5ee241;_0x4e62e1>=0x0;_0x4e62e1--)(_0x5ee241=_0x2cbc60[_0x4e62e1])&&(_0x1d9f17=_0x5ee241(_0x1d9f17)||_0x1d9f17);return _0x1d9f17;},V=(_0x424176,_0x21ca09)=>(_0x570d8c,_0x292ed9)=>_0x21ca09(_0x570d8c,_0x292ed9,_0x424176);exports[_0x57a25a(0xfc)]=class extends a[_0x57a25a(0xe9)]{constructor(_0x46a622,_0x5d43a2,_0x243c10,_0x1b668f){const _0x194e89=_0x57a25a;super(),h(this,_0x194e89(0xf8),new d[(_0x194e89(0x290))](u[_0x194e89(0x1b0)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x46a622,this['_injector']=_0x5d43a2,this['_collaborationController']=_0x243c10,this[_0x194e89(0x2f7)]=_0x1b668f,this['_initStatusComponent'](),this[_0x194e89(0x314)]());}[_0x57a25a(0x314)](){const _0x4d0d46=_0x57a25a;this['disposeWithMe'](this[_0x4d0d46(0x265)][_0x4d0d46(0x261)][_0x4d0d46(0x25e)](d[_0x4d0d46(0x1f1)](()=>{const _0x181d38=_0x4d0d46,_0x2f377d=this[_0x181d38(0x265)][_0x181d38(0x171)]();return _0x2f377d?this[_0x181d38(0x133)][_0x181d38(0x25c)](_0x2f377d['getUnitId']()):d['of'](null);}),d['switchMap'](_0x2e18da=>_0x2e18da?_0x2e18da[_0x4d0d46(0x1af)]:d['of'](u[_0x4d0d46(0x1b0)][_0x4d0d46(0x29d)])))['subscribe'](_0x3901f6=>{const _0x4dc035=_0x4d0d46;this['_status$'][_0x4dc035(0x28d)](_0x3901f6);}));}[_0x57a25a(0x2a6)](){const _0x2fb2fb=_0x57a25a;this[_0x2fb2fb(0x293)](this['_uiPartsService']['registerComponent'](T[_0x2fb2fb(0x1b3)]['HEADER_MENU'],()=>T['connectInjector'](At({'status$':this[_0x2fb2fb(0xf8)][_0x2fb2fb(0x13f)]()}),this[_0x2fb2fb(0x24d)])));}},exports[_0x57a25a(0xfc)]=Pt([V(0x0,a[_0x57a25a(0x2d5)]),V(0x1,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),V(0x2,a['Inject'](u[_0x57a25a(0x274)])),V(0x3,T[_0x57a25a(0x264)])],exports[_0x57a25a(0xfc)]);function At(_0x242d22){const {status$:_0xad70af}=_0x242d22;return function(){const _0xa43cda=_0x1cac;return P[_0xa43cda(0xcb)](xe,{'status$':_0xad70af});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x37aa6f,_0xc05eb2,_0x3db5d0,_0x52f45a)=>{const _0x1448df=_0x57a25a;for(var _0x20382c=_0x52f45a>0x1?void 0x0:_0x52f45a?wt(_0xc05eb2,_0x3db5d0):_0xc05eb2,_0xa2ccb3=_0x37aa6f[_0x1448df(0x25f)]-0x1,_0x2c786f;_0xa2ccb3>=0x0;_0xa2ccb3--)(_0x2c786f=_0x37aa6f[_0xa2ccb3])&&(_0x20382c=_0x2c786f(_0x20382c)||_0x20382c);return _0x20382c;},y=(_0x51ee4f,_0x5c9866)=>(_0x43b781,_0x68ab1b)=>_0x5c9866(_0x43b781,_0x68ab1b,_0x51ee4f);let q=class extends a[_0x57a25a(0xe9)]{constructor(_0x38294a,_0x26806f,_0x185e72,_0x3a7f5e,_0x5ba51e,_0x2ccacd){const _0x40b9ec=_0x57a25a;super(),this[_0x40b9ec(0x1f7)]=_0x38294a,this[_0x40b9ec(0x2dd)]=_0x26806f,this['_collaborationUIEventService']=_0x185e72,this[_0x40b9ec(0x1a1)]=_0x3a7f5e,this[_0x40b9ec(0x2c9)]=_0x5ba51e,this['_localeService']=_0x2ccacd,this[_0x40b9ec(0x2d4)](),this[_0x40b9ec(0x227)]();}['_setupBeforeClosingHandler'](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0xcd0928=_0x1cac;if(this['_localCacheService']['saveTaskMap'][_0xcd0928(0x2a5)])return this['_localeService']['t'](_0xcd0928(0x300));}));}[_0x57a25a(0x227)](){const _0x4d21b3=_0x57a25a;this[_0x4d21b3(0x293)](this[_0x4d21b3(0x2cb)][_0x4d21b3(0x12e)][_0x4d21b3(0x305)](_0x52b121=>{const _0x10d976=_0x4d21b3;_0x52b121['id']===u[_0x10d976(0x2c0)]['OTHER_CLIENT_EDITING']&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this['_localeService']['t'](_0x10d976(0x111))}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x21c)]&&this['_messageService'][_0x10d976(0x301)]({'type':D['MessageType'][_0x10d976(0x102)],'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x291))}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x131)]&&this[_0x10d976(0x2c9)][_0x10d976(0x301)]({'title':this[_0x10d976(0x135)]['t'](_0x10d976(0x278)),'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x1df)),'type':_0x10d976(0x201),'duration':0x0}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x1a3)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this[_0x10d976(0x135)]['t']('collaboration.closeRoom')+'('+_0x52b121[_0x10d976(0xe5)]+')'}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x197)]&&this['_messageService'][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this[_0x10d976(0x135)]['t'](_0x52b121[_0x10d976(0xe5)]||'')}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x316)]&&this['_messageService'][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this['_localeService']['t'](_0x10d976(0x18a))}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x257)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x2f3))}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x120)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this['_localeService']['t'](_0x10d976(0x279))});}));}};q=yt([y(0x0,T[_0x57a25a(0x32a)]),y(0x1,u[_0x57a25a(0x285)]),y(0x2,a[_0x57a25a(0x17f)](u[_0x57a25a(0x2b9)])),y(0x3,T[_0x57a25a(0x1e3)]),y(0x4,T['INotificationService']),y(0x5,a[_0x57a25a(0x17f)](a['LocaleService']))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x57a25a(0x226)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x2c4f1a,_0x5dcbb5,_0x46e238,_0x1c68f6)=>{const _0x342a6d=_0x57a25a;for(var _0x356428=_0x1c68f6>0x1?void 0x0:_0x1c68f6?xt(_0x5dcbb5,_0x46e238):_0x5dcbb5,_0x8bb421=_0x2c4f1a[_0x342a6d(0x25f)]-0x1,_0x2cf6a3;_0x8bb421>=0x0;_0x8bb421--)(_0x2cf6a3=_0x2c4f1a[_0x8bb421])&&(_0x356428=_0x2cf6a3(_0x356428)||_0x356428);return _0x356428;},H=(_0x408d3c,_0x5bbe01)=>(_0x5a1018,_0x1b1cc8)=>_0x5bbe01(_0x5a1018,_0x1b1cc8,_0x408d3c);exports[_0x57a25a(0x280)]=class extends a[_0x57a25a(0x1c0)]{constructor(_0x21c7c6,_0x2978f7,_0x1c5d6a,_0x9e7920,_0x509463){const _0xcad19a=_0x57a25a;super(),this[_0xcad19a(0x202)]=_0x21c7c6,this['_logService']=_0x2978f7,this[_0xcad19a(0x2d0)]=_0x1c5d6a,this[_0xcad19a(0x239)]=_0x9e7920,_0x509463?_0x509463==null||_0x509463['whenReady']()[_0xcad19a(0x107)](()=>this['_init']()):(this[_0xcad19a(0x2aa)]['debug'](_0xcad19a(0xdd),_0xcad19a(0xcf)),this[_0xcad19a(0x170)]());}async[_0x57a25a(0x170)](){const _0x4c2480=_0x57a25a,_0xddd5b4=this[_0x4c2480(0x202)][_0x4c2480(0xd0)](_0x4c2480(0x1bb)),_0x24da11=this[_0x4c2480(0x202)][_0x4c2480(0xd0)]('type'),_0x23b70a=this['_urlService'][_0x4c2480(0xd0)](_0x4c2480(0x260));if(!_0xddd5b4||!_0x24da11){this['_logService']['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x42845e=await this[_0x4c2480(0x239)][_0x4c2480(0x147)](_0xddd5b4,Number(_0x24da11),_0x23b70a);_0x42845e&&_0x42845e instanceof a[_0x4c2480(0x18c)]&&this['_setupSubUnitSync'](_0x42845e);}async[_0x57a25a(0x2a4)](_0x500088){const _0xafa122=_0x57a25a;await this[_0xafa122(0x262)](_0x500088),_0x500088[_0xafa122(0x1cb)][_0xafa122(0x25e)](d[_0xafa122(0x13c)](this[_0xafa122(0x2ed)]))[_0xafa122(0x305)](_0x2446f2=>{_0x2446f2&&this['_updateURLWithCurrentState'](_0x2446f2);}),this[_0xafa122(0x202)][_0xafa122(0x12a)]['pipe'](d['takeUntil'](this[_0xafa122(0x2ed)]))[_0xafa122(0x305)](()=>this['_updateSubUnitFromURLParams'](_0x500088));}[_0x57a25a(0xb3)](_0x39431d,_0x3cb14a=!0x1){const _0x5c748f=_0x57a25a,_0x25877a=this[_0x5c748f(0x202)][_0x5c748f(0xd0)](_0x5c748f(0x260));_0x39431d[_0x5c748f(0xff)]()!==_0x25877a&&this['_urlService'][_0x5c748f(0x16e)](_0x5c748f(0x260),_0x39431d[_0x5c748f(0xff)](),_0x3cb14a);}async[_0x57a25a(0x262)](_0x543a22){const _0x3100bb=_0x57a25a;var _0x1dc73e;const _0x2ec23c=this['_urlService'][_0x3100bb(0xd0)]('subunit');if(!_0x2ec23c||!_0x543a22[_0x3100bb(0x2d9)](_0x2ec23c)){const _0x8721ef=_0x543a22['getUnhiddenWorksheets']()[0x0],_0xb7509d=_0x543a22[_0x3100bb(0x2d9)](_0x8721ef);if(!_0xb7509d)return;this[_0x3100bb(0xb3)](_0xb7509d,!0x0),await this[_0x3100bb(0x2d0)]['executeCommand'](g[_0x3100bb(0x146)]['id'],{'unitId':_0x543a22['getUnitId'](),'subUnitId':_0x8721ef});return;}((_0x1dc73e=_0x543a22['getActiveSheet']())==null?void 0x0:_0x1dc73e[_0x3100bb(0xff)]())!==_0x2ec23c&&await this[_0x3100bb(0x2d0)][_0x3100bb(0x20c)](g[_0x3100bb(0x146)]['id'],{'unitId':_0x543a22['getUnitId'](),'subUnitId':_0x2ec23c});}},exports[_0x57a25a(0x280)]=jt([H(0x0,be),H(0x1,a[_0x57a25a(0x242)]),H(0x2,a[_0x57a25a(0x1a2)]),H(0x3,a[_0x57a25a(0x17f)](u[_0x57a25a(0x1c4)])),H(0x4,a[_0x57a25a(0x16d)](Ke[_0x57a25a(0x13e)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x57a25a(0xbe)],kt=(_0xe0490a,_0x39b083,_0x19e814,_0x5b904a)=>{const _0x3fee43=_0x57a25a;for(var _0x20afa2=_0x5b904a>0x1?void 0x0:_0x5b904a?Bt(_0x39b083,_0x19e814):_0x39b083,_0x4edc7c=_0xe0490a[_0x3fee43(0x25f)]-0x1,_0x7e6ee3;_0x4edc7c>=0x0;_0x4edc7c--)(_0x7e6ee3=_0xe0490a[_0x4edc7c])&&(_0x20afa2=_0x7e6ee3(_0x20afa2)||_0x20afa2);return _0x20afa2;},ce=(_0x200183,_0x20d8dc)=>(_0x5653ab,_0x348265)=>_0x20d8dc(_0x5653ab,_0x348265,_0x200183);let z=class{constructor(_0x2e616b,_0x1e976c,_0x4d3e1c){const _0x386e3a=_0x57a25a;this[_0x386e3a(0x24d)]=_0x2e616b,this[_0x386e3a(0xf1)]=_0x1e976c,this['_renderManagerService']=_0x4d3e1c;}[_0x57a25a(0x212)](_0x3ec157){const _0x261bb5=_0x57a25a;this[_0x261bb5(0x14b)](_0x3ec157),this[_0x261bb5(0x294)](_0x3ec157);}[_0x57a25a(0x1f3)](_0x54e719){const _0x3ae3cd=_0x57a25a,{unitID:_0x49836e}=_0x54e719,_0x3185dc=this['_renderManagerService'][_0x3ae3cd(0x19f)](_0x49836e)[_0x3ae3cd(0xd6)](b[_0x3ae3cd(0xc5)]),{redoCache:_0x272af6}=_0x3185dc[_0x3ae3cd(0x15d)]();if(_0x272af6[_0x3ae3cd(0x25f)]===0x0)return _0x54e719;let _0x343207=a['Tools']['deepClone'](_0x54e719[_0x3ae3cd(0x1b8)][0x0]);for(let _0x163096=0x0;_0x163096<_0x272af6[_0x3ae3cd(0x25f)];_0x163096++){const _0x4cafe2={'id':_0x3ae3cd(0x190),'params':{..._0x272af6[_0x163096]}},_0x31aeca=this[_0x3ae3cd(0xf1)][_0x3ae3cd(0x143)](_0x343207,_0x4cafe2,!0x1);if(m[_0x3ae3cd(0x251)](_0x31aeca))throw _0x31aeca[_0x3ae3cd(0x201)];_0x343207=_0x31aeca[_0x3ae3cd(0x292)];}return{...a[_0x3ae3cd(0x225)][_0x3ae3cd(0x12f)](_0x54e719),'mutations':[_0x343207]};}[_0x57a25a(0x14b)](_0x2c6b47){const _0xa22775=_0x57a25a,{unitID:_0x305860}=_0x2c6b47,_0x17553f=this[_0xa22775(0x29e)][_0xa22775(0x19f)](_0x305860)['with'](b[_0xa22775(0xc5)]),{undoCache:_0x463d32,redoCache:_0x42a6b6}=_0x17553f['getUndoRedoMutationParamsCache']();if(_0x463d32[_0xa22775(0x25f)]===0x0||_0x42a6b6[_0xa22775(0x25f)]===0x0)return;const _0x58e570=[],_0x2ad999=[];let _0x2ec350=a['Tools'][_0xa22775(0x12f)](_0x2c6b47[_0xa22775(0x1b8)][0x0]),_0xf36e9e=a['Tools'][_0xa22775(0x12f)](_0x2c6b47[_0xa22775(0x1b8)][0x0]);for(let _0x1dff31=_0x463d32[_0xa22775(0x25f)]-0x1;_0x1dff31>=0x0;_0x1dff31--){const _0xe67aed={'id':_0xa22775(0x190),'params':{..._0x463d32[_0x1dff31]}},_0x1aacdd={'id':_0xa22775(0x190),'params':{..._0x42a6b6[_0x1dff31]}},_0xd15f5f=this[_0xa22775(0xf1)][_0xa22775(0x143)](_0x2ec350,_0xe67aed,!0x1),_0x49460f=this[_0xa22775(0xf1)]['transformMutation'](_0xf36e9e,_0x1aacdd,!0x1);if(m[_0xa22775(0x251)](_0xd15f5f))throw _0xd15f5f[_0xa22775(0x201)];if(m[_0xa22775(0x251)](_0x49460f))throw _0x49460f[_0xa22775(0x201)];_0x58e570[_0xa22775(0x1bf)](_0xd15f5f['m2Prime'][_0xa22775(0x310)]),_0x2ad999[_0xa22775(0x1bf)](_0x49460f[_0xa22775(0x2e9)]['params']),_0x2ec350=_0xd15f5f[_0xa22775(0x292)],_0xf36e9e=_0x49460f[_0xa22775(0x292)];}_0x17553f[_0xa22775(0x19c)]({'undoCache':_0x58e570,'redoCache':_0x2ad999});}['_transformPreviousActiveRange'](_0x55a697){const _0x3de47c=_0x57a25a,{unitID:_0x26a138}=_0x55a697,_0x17aa3e=this[_0x3de47c(0x29e)][_0x3de47c(0x19f)](_0x26a138)[_0x3de47c(0xd6)](b['DocIMEInputManagerService']),_0x24d686=_0x17aa3e[_0x3de47c(0x2f5)]();if(_0x24d686==null)return;const _0x46d9fa=[{'id':_0x3de47c(0x190),'params':{'unitId':_0x55a697['unitID'],'actions':null,'textRanges':[_0x24d686]}}],_0x1242a3=this[_0x3de47c(0xf1)][_0x3de47c(0x1b1)](_0x55a697,_0x46d9fa);if(!m[_0x3de47c(0x2ce)](_0x1242a3))throw _0x1242a3[_0x3de47c(0x201)];const _0x194483=_0x1242a3['m2Prime'][0x0][_0x3de47c(0x310)][_0x3de47c(0x185)];Array[_0x3de47c(0x20a)](_0x194483)&&_0x194483[_0x3de47c(0x25f)]&&_0x17aa3e[_0x3de47c(0xc7)](_0x194483[0x0]);}};z=kt([ce(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),ce(0x1,m[_0x57a25a(0x26e)]),ce(0x2,p[_0x57a25a(0x238)])],z);var Ht=Object[_0x57a25a(0xbe)],Ft=(_0x520ddf,_0x213a3e,_0x3b1534,_0x5412af)=>{const _0x5a29a9=_0x57a25a;for(var _0xa155a2=_0x5412af>0x1?void 0x0:_0x5412af?Ht(_0x213a3e,_0x3b1534):_0x213a3e,_0x35ff4b=_0x520ddf[_0x5a29a9(0x25f)]-0x1,_0x3f5c75;_0x35ff4b>=0x0;_0x35ff4b--)(_0x3f5c75=_0x520ddf[_0x35ff4b])&&(_0xa155a2=_0x3f5c75(_0xa155a2)||_0xa155a2);return _0xa155a2;},le=(_0x304503,_0x13930f)=>(_0x17fe64,_0x43a44c)=>_0x13930f(_0x17fe64,_0x43a44c,_0x304503);let J=class{constructor(_0x137ec6,_0x18c935,_0x260c52){const _0x3c16e9=_0x57a25a;this[_0x3c16e9(0x24d)]=_0x137ec6,this[_0x3c16e9(0xf1)]=_0x18c935,this[_0x3c16e9(0x180)]=_0x260c52;}[_0x57a25a(0x109)](_0x165aab){const _0x3a46d6=_0x57a25a;this[_0x3a46d6(0x2f4)](_0x165aab);}['transformRemoteChangeset'](_0x2b743d){const _0x395a22=_0x57a25a,{unitID:_0x11b9e6}=_0x2b743d,{collaboration:_0x332b50}=this[_0x395a22(0x180)][_0x395a22(0xd9)](_0x11b9e6);if(_0x332b50[_0x395a22(0x25f)]===0x0)return _0x2b743d;let _0x3e9949=a[_0x395a22(0x225)][_0x395a22(0x12f)](_0x2b743d[_0x395a22(0x1b8)][0x0]);for(let _0x2d97fa=0x0;_0x2d97fa<_0x332b50['length'];_0x2d97fa++){const _0x55eac1={'id':_0x395a22(0x190),'params':{'unitId':_0x332b50[_0x2d97fa][_0x395a22(0x110)],..._0x332b50[_0x2d97fa][_0x395a22(0x14f)]}},_0x11e326=this[_0x395a22(0xf1)][_0x395a22(0x143)](_0x3e9949,_0x55eac1,!0x1);if(m[_0x395a22(0x251)](_0x11e326))throw _0x11e326[_0x395a22(0x201)];_0x3e9949=_0x11e326[_0x395a22(0x292)];}return{...a[_0x395a22(0x225)]['deepClone'](_0x2b743d),'mutations':[_0x3e9949]};}[_0x57a25a(0x2f4)](_0x5eda15){const _0x3f61fd=_0x57a25a,{unitID:_0x5d014f}=_0x5eda15,{history:_0x44ede3,collaboration:_0x4d7cac}=this['_docStateChangeManagerService'][_0x3f61fd(0xd9)](_0x5d014f);if(_0x44ede3[_0x3f61fd(0x25f)]===0x0&&_0x4d7cac['length']===0x0)return;const _0x2a85ee=[],_0x1fc795=[];let _0x188cc7=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15['mutations'][0x0]),_0x3fa276=a['Tools']['deepClone'](_0x5eda15[_0x3f61fd(0x1b8)][0x0]);for(let _0x327bbc=_0x44ede3['length']-0x1;_0x327bbc>=0x0;_0x327bbc--){const _0x514915={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44ede3[_0x327bbc][_0x3f61fd(0x110)],..._0x44ede3[_0x327bbc][_0x3f61fd(0x29a)]}},_0x3b0a19={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44ede3[_0x327bbc][_0x3f61fd(0x110)],..._0x44ede3[_0x327bbc]['redoState']}},_0x19be7c=this[_0x3f61fd(0xf1)][_0x3f61fd(0x143)](_0x188cc7,_0x514915,!0x1),_0x2659d6=this[_0x3f61fd(0xf1)][_0x3f61fd(0x143)](_0x3fa276,_0x3b0a19,!0x1);if(m['isTransformMutationFailure'](_0x19be7c))throw _0x19be7c['error'];if(m[_0x3f61fd(0x251)](_0x2659d6))throw _0x2659d6[_0x3f61fd(0x201)];_0x2a85ee[_0x3f61fd(0x1bf)]({..._0x44ede3[_0x327bbc],'undoState':_0x19be7c['m2Prime']['params'],'redoState':_0x2659d6[_0x3f61fd(0x2e9)][_0x3f61fd(0x310)]}),_0x188cc7=_0x19be7c['m1Prime'],_0x3fa276=_0x2659d6[_0x3f61fd(0x292)];}_0x188cc7=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15[_0x3f61fd(0x1b8)][0x0]),_0x3fa276=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15[_0x3f61fd(0x1b8)][0x0]);for(let _0x2df0fa=_0x4d7cac[_0x3f61fd(0x25f)]-0x1;_0x2df0fa>=0x0;_0x2df0fa--){const _0x15bc29={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d7cac[_0x2df0fa]['unitId'],..._0x4d7cac[_0x2df0fa]['undoState']}},_0x2d7012={'id':_0x3f61fd(0x190),'params':{'unitId':_0x4d7cac[_0x2df0fa][_0x3f61fd(0x110)],..._0x4d7cac[_0x2df0fa][_0x3f61fd(0x14f)]}},_0x1b456d=this[_0x3f61fd(0xf1)]['transformMutation'](_0x188cc7,_0x15bc29,!0x1),_0x485e98=this[_0x3f61fd(0xf1)]['transformMutation'](_0x3fa276,_0x2d7012,!0x1);if(m[_0x3f61fd(0x251)](_0x1b456d))throw _0x1b456d['error'];if(m[_0x3f61fd(0x251)](_0x485e98))throw _0x485e98[_0x3f61fd(0x201)];_0x1fc795[_0x3f61fd(0x1bf)]({..._0x4d7cac[_0x2df0fa],'undoState':_0x1b456d[_0x3f61fd(0x2e9)]['params'],'redoState':_0x485e98['m2Prime'][_0x3f61fd(0x310)]}),_0x188cc7=_0x1b456d[_0x3f61fd(0x292)],_0x3fa276=_0x485e98[_0x3f61fd(0x292)];}this[_0x3f61fd(0x180)][_0x3f61fd(0x24c)](_0x5d014f,{'history':_0x2a85ee,'collaboration':_0x1fc795});}};J=Ft([le(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),le(0x1,m['ITransformService']),le(0x2,a[_0x57a25a(0x17f)](b[_0x57a25a(0x30f)]))],J);var Yt=Object[_0x57a25a(0xbe)],Wt=(_0x2abd09,_0x4df005,_0x864a11,_0x5e08fb)=>{for(var _0x3078c2=_0x5e08fb>0x1?void 0x0:_0x5e08fb?Yt(_0x4df005,_0x864a11):_0x4df005,_0x2bb61a=_0x2abd09['length']-0x1,_0x585145;_0x2bb61a>=0x0;_0x2bb61a--)(_0x585145=_0x2abd09[_0x2bb61a])&&(_0x3078c2=_0x585145(_0x3078c2)||_0x3078c2);return _0x3078c2;},Ne=(_0xed5638,_0x595f7b)=>(_0x57dbf5,_0x2c4d10)=>_0x595f7b(_0x57dbf5,_0x2c4d10,_0xed5638);let Z=class{constructor(_0x213cb6,_0x36f05c){const _0x244b6d=_0x57a25a;this[_0x244b6d(0x24d)]=_0x213cb6,this[_0x244b6d(0xf1)]=_0x36f05c;}['transformSelections'](_0x415aed){const _0x5051f8=_0x57a25a;var _0x12678c;const _0xc8205b=this[_0x5051f8(0x24d)][_0x5051f8(0x1dd)](Y['DocSelectionManagerService']),_0x35b308=(_0x12678c=_0xc8205b['getDocRanges']())!=null?_0x12678c:[];if(_0x35b308['length']===0x0)return;const _0x380ce4=_0x415aed[_0x5051f8(0x230)],_0x2323d6=[{'id':_0x5051f8(0x190),'params':{'unitId':_0x380ce4,'actions':null,'textRanges':_0x35b308}}],_0x2897cb=this[_0x5051f8(0xf1)][_0x5051f8(0x1b1)](_0x415aed,_0x2323d6);if(!m[_0x5051f8(0x2ce)](_0x2897cb))throw _0x2897cb[_0x5051f8(0x201)];const _0x18d822=_0x2897cb[_0x5051f8(0x2e9)][0x0][_0x5051f8(0x310)][_0x5051f8(0x185)];Array[_0x5051f8(0x20a)](_0x18d822)&&_0x18d822[_0x5051f8(0x25f)]&&_0xc8205b[_0x5051f8(0x273)](_0x18d822,{'unitId':_0x380ce4,'subUnitId':_0x380ce4},!0x1);}};Z=Wt([Ne(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),Ne(0x1,m[_0x57a25a(0x26e)])],Z);var Vt=Object[_0x57a25a(0xbe)],Xt=(_0x5ab375,_0x2e8ceb,_0x45f1f1,_0x186b51)=>{const _0x705cbf=_0x57a25a;for(var _0x23fcc6=_0x186b51>0x1?void 0x0:_0x186b51?Vt(_0x2e8ceb,_0x45f1f1):_0x2e8ceb,_0x24eabf=_0x5ab375[_0x705cbf(0x25f)]-0x1,_0x5203e6;_0x24eabf>=0x0;_0x24eabf--)(_0x5203e6=_0x5ab375[_0x24eabf])&&(_0x23fcc6=_0x5203e6(_0x23fcc6)||_0x23fcc6);return _0x23fcc6;},N=(_0x3e514e,_0x4573ac)=>(_0x5690c9,_0x4aecec)=>_0x4573ac(_0x5690c9,_0x4aecec,_0x3e514e);let Q=class extends a[_0x57a25a(0xe9)]{constructor(_0x32f907,_0x1b18c2,_0x1be965,_0xc728b6,_0x3874cb,_0x443489,_0x170bbd,_0x2e7ec5){const _0x48c0b7=_0x57a25a;super(),h(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus']['NOT_COLLAB'])),(this[_0x48c0b7(0x180)]=_0x32f907,this['_collaborationController']=_0x1b18c2,this[_0x48c0b7(0x15f)]=_0x1be965,this[_0x48c0b7(0x2b2)]=_0xc728b6,this[_0x48c0b7(0x2b1)]=_0x3874cb,this[_0x48c0b7(0x1f9)]=_0x443489,this[_0x48c0b7(0x1a1)]=_0x170bbd,this['_localeService']=_0x2e7ec5,this[_0x48c0b7(0x136)]());}[_0x57a25a(0x136)](){const _0x11528d=_0x57a25a;this[_0x11528d(0x293)](this[_0x11528d(0x133)][_0x11528d(0xfb)][_0x11528d(0x305)](_0x1cb526=>{const _0x52eb7b=_0x11528d,_0x1aad05=this[_0x52eb7b(0x180)][_0x52eb7b(0x14c)][_0x52eb7b(0x305)](_0x19408d=>{const _0x15d3d2=_0x52eb7b;if(_0x19408d==null)return;const {unitId:_0x24bdd1,redoState:_0x54757d,commandId:_0x3001c4}=_0x19408d;if(_0x24bdd1!==_0x1cb526[_0x15d3d2(0x230)])return;const _0x3f134={'id':_0x3001c4,'type':a[_0x15d3d2(0x1d9)][_0x15d3d2(0x156)],'params':{'unitId':_0x24bdd1,'actions':_0x54757d[_0x15d3d2(0x10e)],'textRanges':null}};_0x1cb526[_0x15d3d2(0x27c)](_0x3f134);});if(_0x1cb526[_0x52eb7b(0x293)](_0x1aad05),_0x1cb526 instanceof u[_0x52eb7b(0x26a)]){const _0x5d60e5={'onTransformIME':_0x531c42=>this['_docTransformIMECacheService'][_0x52eb7b(0x212)](_0x531c42),'onTransformState':_0x58b8cd=>this[_0x52eb7b(0x2b2)][_0x52eb7b(0x109)](_0x58b8cd),'onTransformSelections':_0x8d34f5=>this[_0x52eb7b(0x2b1)][_0x52eb7b(0x324)](_0x8d34f5),'onSyncEditingCollabCursor':_0x25e249=>this['_docSyncEditingCollabCursorService'][_0x52eb7b(0x159)](_0x25e249),'onTransformRemoteChangesetByIMECache':_0x144c10=>this[_0x52eb7b(0x15f)][_0x52eb7b(0x1f3)](_0x144c10),'onTransformRemoteChangesetByStateCache':_0x2d0784=>this[_0x52eb7b(0x2b2)][_0x52eb7b(0x1f3)](_0x2d0784)};_0x1cb526[_0x52eb7b(0x25a)](_0x5d60e5);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x57a25a(0x30f)])),N(0x1,a[_0x57a25a(0x17f)](u[_0x57a25a(0x274)])),N(0x2,a[_0x57a25a(0x17f)](z)),N(0x3,a[_0x57a25a(0x17f)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x57a25a(0x17f)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x57a25a(0x17f)](a[_0x57a25a(0x2d3)]))],Q);var Gt=Object[_0x57a25a(0xbe)],Kt=(_0x5704e0,_0x4f35b3,_0x237374,_0x231c4d)=>{for(var _0x196a2a=_0x231c4d>0x1?void 0x0:_0x231c4d?Gt(_0x4f35b3,_0x237374):_0x4f35b3,_0x5a3cf9=_0x5704e0['length']-0x1,_0x267cd3;_0x5a3cf9>=0x0;_0x5a3cf9--)(_0x267cd3=_0x5704e0[_0x5a3cf9])&&(_0x196a2a=_0x267cd3(_0x196a2a)||_0x196a2a);return _0x196a2a;},_e=(_0x2a053a,_0x4654e8)=>(_0xd5c2b,_0x4e40da)=>_0x4654e8(_0xd5c2b,_0x4e40da,_0x2a053a);let ge=class extends a[_0x57a25a(0xe9)]{constructor(_0x19dbf0,_0xd44c70,_0x36c586){const _0x2ef1b2=_0x57a25a;super(),h(this,_0x2ef1b2(0x2c3),new Map()),h(this,_0x2ef1b2(0x247),new Map()),h(this,'_disabled',!0x1),(this[_0x2ef1b2(0x218)]=_0x19dbf0,this[_0x2ef1b2(0x299)]=_0xd44c70,this[_0x2ef1b2(0x2bb)]=_0x36c586);}['disableLocalCache'](){const _0x26a1f0=_0x57a25a;this[_0x26a1f0(0x2f1)]=!0x0;}[_0x57a25a(0x10f)](){const _0x1cea46=_0x57a25a;this[_0x1cea46(0x2f1)]=!0x1;}get[_0x57a25a(0x137)](){const _0x262b72=_0x57a25a;return this[_0x262b72(0x247)];}[_0x57a25a(0x1eb)](){const _0x32029f=_0x57a25a;this[_0x32029f(0x162)]()[_0x32029f(0x107)](()=>super[_0x32029f(0x1eb)]());}async[_0x57a25a(0x1e5)](_0x441f1c){const _0x3ee456=_0x57a25a;return this[_0x3ee456(0x2f1)]?null:this['_localStorageService'][_0x3ee456(0x1c6)](u[_0x3ee456(0x1ad)](_0x441f1c));}async[_0x57a25a(0x1e2)](_0x534ba2,_0x3800cc){const _0x14c03e=_0x57a25a;return!!this[_0x14c03e(0x299)][_0x14c03e(0x286)](_0x534ba2,_0x3800cc);}['updateOfflineData'](_0x591553,_0x350a7f,_0x1fa5c7,_0x18f5c4){const _0x155be7=_0x57a25a,_0x212136=this[_0x155be7(0x2bb)]['getCurrentRevOfUnit'](_0x591553);this['_cachedData'][_0x155be7(0xb9)](_0x591553,{'unitID':_0x591553,'type':_0x350a7f,'awaitingChangeset':_0x1fa5c7,'mutations':_0x18f5c4,'rev':_0x212136}),this[_0x155be7(0x247)][_0x155be7(0x177)](_0x591553)||this[_0x155be7(0x199)](_0x591553);}[_0x57a25a(0x199)](_0x909dd4){const _0x2bd1ca=_0x57a25a,_0x4843c8=this[_0x2bd1ca(0x2af)]();_0x4843c8===0x0?this[_0x2bd1ca(0xf5)](_0x909dd4):this['_saveTaskMap'][_0x2bd1ca(0xb9)](_0x909dd4,setTimeout(()=>this[_0x2bd1ca(0xf5)](_0x909dd4),_0x4843c8));}[_0x57a25a(0x2af)](){const _0x3311ab=_0x57a25a;var _0x1571aa;return(_0x1571aa=this[_0x3311ab(0x218)][_0x3311ab(0x1fa)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x1571aa:u[_0x3311ab(0x124)];}[_0x57a25a(0xf5)](_0x48a84a){const _0x1203b8=_0x57a25a,_0x29f658=this[_0x1203b8(0x247)][_0x1203b8(0x1dd)](_0x48a84a);return _0x29f658!==void 0x0&&window[_0x1203b8(0x1d2)](_0x29f658),this[_0x1203b8(0x299)][_0x1203b8(0x286)](u[_0x1203b8(0x1ad)](_0x48a84a),this['_cachedData'][_0x1203b8(0x1dd)](_0x48a84a))[_0x1203b8(0x107)](()=>this[_0x1203b8(0x247)][_0x1203b8(0x234)](_0x48a84a));}async[_0x57a25a(0x162)](){const _0x1eccbe=_0x57a25a,_0x107dd4=[];this[_0x1eccbe(0x247)][_0x1eccbe(0x2ef)]((_0x27f944,_0x43b7d5)=>{const _0x1768cd=_0x1eccbe;window[_0x1768cd(0x1d2)](_0x27f944),_0x107dd4[_0x1768cd(0x11f)](this[_0x1768cd(0xf5)](_0x43b7d5)[_0x1768cd(0x107)](()=>{const _0x4e9f25=_0x1768cd;this[_0x4e9f25(0x247)]['delete'](_0x43b7d5);}));}),await Promise[_0x1eccbe(0x2bc)](_0x107dd4);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x57a25a(0x154)]),_e(0x2,a[_0x57a25a(0x17f)](m[_0x57a25a(0xef)]))],ge);class je extends a[_0x57a25a(0x1c0)]{constructor(){const _0x55988c=_0x57a25a;super(),h(this,_0x55988c(0x12a)),this[_0x55988c(0x12a)]=d[_0x55988c(0x214)](window,'popstate')[_0x55988c(0x25e)](d['takeUntil'](this[_0x55988c(0x2ed)]),d[_0x55988c(0x327)](0x1),d['mapTo'](void 0x0));}[_0x57a25a(0x16e)](_0x4fdb01,_0x4d67e4,_0x5d6057=!0x1){const _0x47f882=_0x57a25a,_0x5ce939=new URL(window['location'][_0x47f882(0x13d)]);_0x5ce939[_0x47f882(0x198)][_0x47f882(0xb9)](_0x4fdb01,_0x4d67e4),_0x5d6057?window['history'][_0x47f882(0xd2)]('','',_0x5ce939['toString']()):window[_0x47f882(0x1f0)][_0x47f882(0x2a0)]('','',_0x5ce939[_0x47f882(0x229)]());}['removeParam'](_0x393107,_0x634fc4=!0x1){const _0x11f7c5=_0x57a25a,_0x210ea4=new URL(window[_0x11f7c5(0x228)]['href']);_0x210ea4[_0x11f7c5(0x198)][_0x11f7c5(0x234)](_0x393107),_0x634fc4?window['history'][_0x11f7c5(0xd2)]('','',_0x210ea4[_0x11f7c5(0x229)]()):window[_0x11f7c5(0x1f0)][_0x11f7c5(0x2a0)]('','',_0x210ea4['toString']());}[_0x57a25a(0xd0)](_0x3b9950){const _0x31d621=_0x57a25a;var _0x5d665b;return(_0x5d665b=new URL(window['location'][_0x31d621(0x13d)])[_0x31d621(0x198)]['get'](_0x3b9950))!=null?_0x5d665b:void 0x0;}}var qt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x1be4f9,_0x57fd2f,_0x1e6c80)=>_0x57fd2f in _0x1be4f9?qt(_0x1be4f9,_0x57fd2f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e6c80}):_0x1be4f9[_0x57fd2f]=_0x1e6c80,Zt=(_0x9cb9dc,_0x5684f1,_0x394a14,_0x1d7991)=>{const _0x240bb5=_0x57a25a;for(var _0x431723=_0x1d7991>0x1?void 0x0:_0x1d7991?zt(_0x5684f1,_0x394a14):_0x5684f1,_0x2c8f6f=_0x9cb9dc[_0x240bb5(0x25f)]-0x1,_0x47aa9e;_0x2c8f6f>=0x0;_0x2c8f6f--)(_0x47aa9e=_0x9cb9dc[_0x2c8f6f])&&(_0x431723=_0x47aa9e(_0x431723)||_0x431723);return _0x431723;},he=(_0x34302f,_0x392594)=>(_0x12ec1d,_0x26a6f3)=>_0x392594(_0x12ec1d,_0x26a6f3,_0x34302f),Qt=(_0x5ce339,_0x395eb0,_0x5d4e0e)=>Jt(_0x5ce339,_0x395eb0+'',_0x5d4e0e);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0xea1e1=Ue,_0x30411d,_0x352fbf,_0x4684d6){const _0x57efa6=_0x57a25a;super(),this[_0x57efa6(0x1c7)]=_0xea1e1,this[_0x57efa6(0x29e)]=_0x30411d,this[_0x57efa6(0x24d)]=_0x352fbf,this[_0x57efa6(0x218)]=_0x4684d6;const {..._0x4992e4}=a[_0x57efa6(0x21d)]({},Ue,this[_0x57efa6(0x1c7)]);this['_configService'][_0x57efa6(0x183)]($t,_0x4992e4);}['onStarting'](){const _0x42a53a=_0x57a25a;this['_registerDependencies'](),this[_0x42a53a(0x216)]();}[_0x57a25a(0x28b)](){const _0x2700fa=_0x57a25a;this[_0x2700fa(0x105)]();}['_registerDependencies'](){const _0x329a88=_0x57a25a;var _0x49e606;const _0x5f44b1=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x329a88(0x236)],{'useClass':G['WebSocketService']}],[u[_0x329a88(0x285)],{'useClass':ge}],[exports[_0x329a88(0xfc)]],[Q],[q],[x],[de],[exports[_0x329a88(0x280)]]];a['registerDependencies'](this[_0x329a88(0x24d)],a[_0x329a88(0x2a8)](_0x5f44b1,(_0x49e606=this['_config'])==null?void 0x0:_0x49e606[_0x329a88(0x129)]));}[_0x57a25a(0x105)](){const _0x37c00e=_0x57a25a;this['disposeWithMe'](this[_0x37c00e(0x29e)][_0x37c00e(0x28e)](a[_0x37c00e(0x2a9)]['UNIVER_DOC'],[Ie])),this[_0x37c00e(0x293)](this[_0x37c00e(0x29e)][_0x37c00e(0x28e)](a[_0x37c00e(0x2a9)][_0x37c00e(0x248)],[ve]));}[_0x57a25a(0x216)](){const _0x565756=_0x57a25a;a[_0x565756(0x112)](this['_injector'],[[x],[exports[_0x565756(0xfc)]],[Q],[q],[exports[_0x565756(0x280)]]]);}},Qt(exports[_0x57a25a(0x175)],_0x57a25a(0x19e),es),exports[_0x57a25a(0x175)]=Zt([a[_0x57a25a(0x27b)](u[_0x57a25a(0x123)]),he(0x1,p[_0x57a25a(0x238)]),he(0x2,a[_0x57a25a(0x17f)](a['Injector'])),he(0x3,a[_0x57a25a(0x18b)])],exports[_0x57a25a(0x175)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x53934e,_0x29473c,_0x1cdf6b,_0x1a6737)=>{for(var _0x5a6a73=_0x1a6737>0x1?void 0x0:_0x1a6737?ts(_0x29473c,_0x1cdf6b):_0x29473c,_0x1bf35e=_0x53934e['length']-0x1,_0x28b770;_0x1bf35e>=0x0;_0x1bf35e--)(_0x28b770=_0x53934e[_0x1bf35e])&&(_0x5a6a73=_0x28b770(_0x5a6a73)||_0x5a6a73);return _0x5a6a73;},F=(_0x17c36b,_0x3ad579)=>(_0x551b2d,_0x347525)=>_0x3ad579(_0x551b2d,_0x347525,_0x17c36b);exports[_0x57a25a(0x16c)]=class extends u[_0x57a25a(0x204)]{constructor(_0x15a44d,_0x37ae0c,_0x50c056,_0x1f5247,_0x1efb57){super(_0x15a44d,_0x37ae0c,_0x50c056,_0x1f5247,_0x1efb57);}async[_0x57a25a(0x27e)](_0x23ac61){const _0x282aaf=await this['_getSessionTicket'](),_0x4a4e3d=this['_createSocketURL'](_0x23ac61,_0x282aaf);return this['_doCreateSocket'](_0x4a4e3d);}[_0x57a25a(0x1a9)](_0x228ab3,_0x44cd8b){const _0x200693=_0x57a25a,_0x16e49f=typeof window>'u'?new URL(_0x228ab3):new URL(_0x228ab3,window['location'][_0x200693(0x2cd)]);_0x16e49f[_0x200693(0x198)][_0x200693(0xb9)](_0x200693(0x306),_0x44cd8b);const _0x13119c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x13119c[_0x200693(0x1dd)](_0x200693(0x179))&&_0x16e49f[_0x200693(0x198)]['set'](_0x200693(0x179),_0x13119c['get']('runId')),_0x16e49f[_0x200693(0x229)]();}async[_0x57a25a(0x2ba)](){const _0x3d7a40=_0x57a25a;var _0x2c9287,_0x20a308,_0x47d59d;const _0x3a7dac=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x8defca=(_0x2c9287=_0x3a7dac==null?void 0x0:_0x3a7dac[_0x3d7a40(0x276)])!=null?_0x2c9287:u[_0x3d7a40(0x1d8)];return(_0x47d59d=(_0x20a308=(await this['_httpService'][_0x3d7a40(0x1dd)](_0x8defca,{'headers':{'Content-Type':_0x3d7a40(0x103)}}))['body'])==null?void 0x0:_0x20a308['ticket'])!=null?_0x47d59d:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),F(0x1,a[_0x57a25a(0x17f)](G[_0x57a25a(0x1c9)])),F(0x2,a[_0x57a25a(0x18b)]),F(0x3,a[_0x57a25a(0x242)]),F(0x4,m[_0x57a25a(0x2db)])],exports[_0x57a25a(0x16c)]);const Me=0x7530,Le=_0x57a25a(0x155);class is extends a[_0x57a25a(0xe9)]{constructor(){const _0xec45d9=_0x57a25a;super(),h(this,'_id',a[_0xec45d9(0xce)]()),h(this,_0xec45d9(0x2c7),new Set()),h(this,_0xec45d9(0x1ae),new Map()),h(this,'_heartbeatTimer',null),h(this,_0xec45d9(0x1ef),new Map()),h(this,_0xec45d9(0x232),new Map()),this['_init']();}['dispose'](){const _0x5c87cf=_0x57a25a;super[_0x5c87cf(0x1eb)](),this[_0x5c87cf(0x1ef)][_0x5c87cf(0x2ef)]((_0x26e197,_0x296330)=>this[_0x5c87cf(0x2d7)](_0x296330)),this[_0x5c87cf(0x15b)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x12b766){const _0x2b8629=_0x57a25a;return this[_0x2b8629(0x1c2)](_0x12b766)['pipe'](d[_0x2b8629(0x1b4)]());}[_0x57a25a(0x30b)](_0x1f55d8){const _0x2e19ec=_0x57a25a;this[_0x2e19ec(0x2c7)][_0x2e19ec(0x2a5)]===0x0&&this[_0x2e19ec(0x125)](),this['_selfUnitIDs'][_0x2e19ec(0xdb)](_0x1f55d8),this[_0x2e19ec(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1f55d8],'isForwarded':!0x1});}['disposeUnit'](_0x36e692){const _0x20e4fb=_0x57a25a;this[_0x20e4fb(0x2c7)][_0x20e4fb(0x234)](_0x36e692),this[_0x20e4fb(0x2c7)]['size']===0x0&&this[_0x20e4fb(0x15b)]&&window[_0x20e4fb(0x2f8)](this[_0x20e4fb(0x15b)]);}[_0x57a25a(0x170)](){const _0x5ca928=_0x57a25a;this[_0x5ca928(0x293)](a[_0x5ca928(0x32b)](d['fromEvent'](window,'storage')['subscribe'](_0xa34e7f=>{const _0x5c053d=_0x5ca928;if(_0xa34e7f['key']!==Le||!_0xa34e7f['newValue'])return;const _0x2ccb61=JSON[_0x5c053d(0x2e8)](_0xa34e7f['newValue']);this[_0x5c053d(0x2b7)](_0x2ccb61);}))),window[_0x5ca928(0x158)]('unload',()=>this[_0x5ca928(0x254)]({'type':0x1,'memberID':this[_0x5ca928(0x1a0)],'unitIDs':Array[_0x5ca928(0x2e6)](this[_0x5ca928(0x2c7)])}));}[_0x57a25a(0x2b7)](_0xa404f8){const _0x277b0f=_0x57a25a;switch(_0xa404f8[_0x277b0f(0x258)]){case 0x0:this['_handleJoinEvent'](_0xa404f8);break;case 0x1:this['_handleLeaveEvent'](_0xa404f8);break;case 0x2:this[_0x277b0f(0x22d)](_0xa404f8);break;}}['_handleJoinEvent'](_0x44b703){const _0xac5d2b=_0x57a25a,{unitIDs:_0x5bc339,memberID:_0x1d0b1a,isForwarded:_0xad8e51}=_0x44b703;_0x5bc339[_0xac5d2b(0x2ef)](_0x4c69a6=>{const _0x8a8059=_0xac5d2b;if(!_0xad8e51&&this[_0x8a8059(0x1ae)]['has'](_0x4c69a6)&&this[_0x8a8059(0x1c2)](_0x4c69a6)[_0x8a8059(0x28d)](u[_0x8a8059(0xb2)][_0x8a8059(0x22f)]),!this[_0x8a8059(0x1ae)][_0x8a8059(0x177)](_0x4c69a6)||!this[_0x8a8059(0x1ae)][_0x8a8059(0x1dd)](_0x4c69a6)[_0x8a8059(0x177)](_0x1d0b1a)){const _0x3f3a37=this[_0x8a8059(0x1ae)][_0x8a8059(0x1dd)](_0x4c69a6)||new Set();_0x3f3a37[_0x8a8059(0xdb)](_0x1d0b1a),this[_0x8a8059(0x1ae)]['set'](_0x4c69a6,_0x3f3a37),this['_scheduleClearOtherTimer'](_0x1d0b1a);}}),_0xad8e51||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xac5d2b(0x2c7)]],'isForwarded':!0x0});}[_0x57a25a(0x16b)](_0x5094b2){const _0x249c20=_0x57a25a;this['_removeClearOtherTimer'](_0x5094b2);const _0x13a64c=window[_0x249c20(0x249)](()=>{const _0x3616ea=_0x249c20;this[_0x3616ea(0x1ae)]['forEach'](_0x5ac47b=>{const _0x52ae08=_0x3616ea;_0x5ac47b[_0x52ae08(0x234)](_0x5094b2);});},Me*0x2);this['_clearOtherTimers'][_0x249c20(0xb9)](_0x5094b2,_0x13a64c);}['_removeClearOtherTimer'](_0x4e6792){const _0x2dd9c1=_0x57a25a;if(this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0x177)](_0x4e6792)){const _0x59af9b=this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0x1dd)](_0x4e6792);_0x59af9b&&window[_0x2dd9c1(0x1d2)](_0x59af9b),this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0xb9)](_0x4e6792,null);}}[_0x57a25a(0xb5)](_0xae0203){const _0x219e28=_0x57a25a,{memberID:_0x14fb4d,unitIDs:_0x2f6487}=_0xae0203;_0x2f6487[_0x219e28(0x2ef)](_0x2d7c1e=>{const _0x2248af=_0x219e28;var _0x3a6146;const _0x160ba0=this[_0x2248af(0x1ae)][_0x2248af(0x1dd)](_0x2d7c1e);_0x160ba0&&(_0x160ba0[_0x2248af(0x234)](_0x14fb4d),(_0x3a6146=this[_0x2248af(0x1c2)](_0x2d7c1e))==null||_0x3a6146[_0x2248af(0x28d)](_0x160ba0[_0x2248af(0x2a5)]===0x0?u[_0x2248af(0xb2)][_0x2248af(0x311)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x219e28(0x2d7)](_0x14fb4d);}['_handleHeartbeatEvent'](_0x265b0f){const _0x3e8eb2=_0x57a25a;this[_0x3e8eb2(0x16b)](_0x265b0f['memberID']);}[_0x57a25a(0x254)](_0x33af4c){const _0x13653f=_0x57a25a;localStorage[_0x13653f(0x286)](Le,JSON[_0x13653f(0x1d4)](_0x33af4c));}[_0x57a25a(0x125)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x14f0ba=_0x1cac;this[_0x14f0ba(0x254)]({'type':0x2,'memberID':this[_0x14f0ba(0x1a0)]});},Me);}['_ensureSubject'](_0x43e1f0){const _0x4cd701=_0x57a25a;return this[_0x4cd701(0x232)][_0x4cd701(0x177)](_0x43e1f0)||this['_unitStatus'][_0x4cd701(0xb9)](_0x43e1f0,new d[(_0x4cd701(0x290))](u[_0x4cd701(0xb2)][_0x4cd701(0x311)])),this['_unitStatus'][_0x4cd701(0x1dd)](_0x43e1f0);}}var Be=(_0x843785=>(_0x843785[_0x843785[_0x57a25a(0x181)]=0x0]=_0x57a25a(0x181),_0x843785[_0x843785['OK']=0x1]='OK',_0x843785[_0x843785['INTERNAL_ERROR']=0x2]=_0x57a25a(0x288),_0x843785[_0x843785[_0x57a25a(0x131)]=0x3]=_0x57a25a(0x131),_0x843785[_0x843785[_0x57a25a(0x321)]=0x4]='NOT_FOUND',_0x843785[_0x843785['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x843785[_0x843785[_0x57a25a(0x1bd)]=0x6]=_0x57a25a(0x1bd),_0x843785[_0x843785[_0x57a25a(0xf2)]=0x7]=_0x57a25a(0xf2),_0x843785[_0x843785[_0x57a25a(0x11b)]=0x8]=_0x57a25a(0x11b),_0x843785[_0x843785[_0x57a25a(0x235)]=0x9]=_0x57a25a(0x235),_0x843785[_0x843785[_0x57a25a(0x127)]=0xa]='LOGIN_FAILED',_0x843785[_0x843785[_0x57a25a(0x14d)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x843785[_0x843785['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x57a25a(0x134),_0x843785[_0x843785[_0x57a25a(0x13a)]=0x1772]=_0x57a25a(0x13a),_0x843785[_0x843785[_0x57a25a(0x211)]=0x1773]=_0x57a25a(0x211),_0x843785[_0x843785[_0x57a25a(0x297)]=0x1b59]=_0x57a25a(0x297),_0x843785[_0x843785[_0x57a25a(0x2f0)]=0x1b5a]=_0x57a25a(0x2f0),_0x843785[_0x843785['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x57a25a(0x1c3),_0x843785[_0x843785[_0x57a25a(0xde)]=0x1b5c]=_0x57a25a(0xde),_0x843785[_0x843785[_0x57a25a(0x141)]=0x1b5d]=_0x57a25a(0x141),_0x843785[_0x843785[_0x57a25a(0x2e5)]=0x1f41]=_0x57a25a(0x2e5),_0x843785[_0x843785[_0x57a25a(0x26d)]=0x2329]=_0x57a25a(0x26d),_0x843785[_0x843785[_0x57a25a(0x28c)]=0x232a]=_0x57a25a(0x28c),_0x843785[_0x843785[_0x57a25a(0x2c5)]=0x232b]=_0x57a25a(0x2c5),_0x843785[_0x843785['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x57a25a(0x128),_0x843785[_0x843785[_0x57a25a(0x210)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x843785[_0x843785[_0x57a25a(0x1c5)]=0x2711]=_0x57a25a(0x1c5),_0x843785[_0x843785[_0x57a25a(0xf3)]=0x2712]=_0x57a25a(0xf3),_0x843785[_0x843785[_0x57a25a(0x206)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x843785[_0x843785[_0x57a25a(0x207)]=0x2714]=_0x57a25a(0x207),_0x843785[_0x843785['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x843785[_0x843785[_0x57a25a(0x1b2)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x843785[_0x843785['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x57a25a(0x1d3),_0x843785[_0x843785['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x843785[_0x843785['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x57a25a(0x189),_0x843785[_0x843785[_0x57a25a(0x17a)]=0x271f]=_0x57a25a(0x17a),_0x843785[_0x843785[_0x57a25a(0x21b)]=0x2af9]=_0x57a25a(0x21b),_0x843785[_0x843785[_0x57a25a(0xd5)]=0x2ee1]=_0x57a25a(0xd5),_0x843785[_0x843785[_0x57a25a(0x22e)]=0x2ee2]=_0x57a25a(0x22e),_0x843785[_0x843785[_0x57a25a(0x20e)]=0x2ee3]=_0x57a25a(0x20e),_0x843785[_0x843785['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x843785[_0x843785[_0x57a25a(0xf4)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x843785[_0x843785[_0x57a25a(0x231)]=0x32c9]=_0x57a25a(0x231),_0x843785[_0x843785['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x843785[_0x843785['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x57a25a(0x1a8),_0x843785[_0x843785[_0x57a25a(0x188)]=-0x1]=_0x57a25a(0x188),_0x843785))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x196172,_0x82f832,_0x17a598,_0x281e57)=>{const _0x239889=_0x57a25a;for(var _0x29150f=_0x281e57>0x1?void 0x0:_0x281e57?ns(_0x82f832,_0x17a598):_0x82f832,_0x135c0a=_0x196172[_0x239889(0x25f)]-0x1,_0x2eac87;_0x135c0a>=0x0;_0x135c0a--)(_0x2eac87=_0x196172[_0x135c0a])&&(_0x29150f=_0x2eac87(_0x29150f)||_0x29150f);return _0x29150f;},ue=(_0x2e8faa,_0x2ca760)=>(_0x2718a9,_0x58a66b)=>_0x2ca760(_0x2718a9,_0x58a66b,_0x2e8faa);exports['RemoteUniscriptService']=class extends a[_0x57a25a(0xe9)]{constructor(_0x26ca84,_0x3eae87,_0x37296b){const _0x13f91b=_0x57a25a;super(),this['_instanceService']=_0x26ca84,this[_0x13f91b(0x12d)]=_0x3eae87,this[_0x13f91b(0x218)]=_0x37296b;}async[_0x57a25a(0x245)](_0x37a283,_0x4c4cd3,_0x31749c,..._0x87c2f7){const _0x4c1da5=_0x57a25a;var _0x19f9ad,_0x5d3b27,_0x3c142f,_0x50f68d;const _0x5ab5cf=this[_0x4c1da5(0x2a3)][_0x4c1da5(0x171)]();if(!_0x5ab5cf)throw new Error(_0x4c1da5(0x174));const _0x540557=((_0x19f9ad=this['_configService'][_0x4c1da5(0x1fa)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x19f9ad:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x37a283+_0x4c1da5(0xe3)+_0x4c4cd3,_0x25ae01=new URL(window[_0x4c1da5(0x228)]['href']),_0x53819b={'scriptId':_0x37a283,'runId':(_0x5d3b27=_0x25ae01[_0x4c1da5(0x198)][_0x4c1da5(0x1dd)](_0x4c1da5(0x179)))!=null?_0x5d3b27:'','function':_0x4c4cd3,'unitId':_0x5ab5cf[_0x4c1da5(0x15c)](),'argsOfFunction':JSON[_0x4c1da5(0x1d4)](_0x87c2f7),'invokeId':(_0x3c142f=_0x31749c[_0x4c1da5(0x194)])!=null?_0x3c142f:'','executionId':(_0x50f68d=_0x31749c[_0x4c1da5(0xba)])!=null?_0x50f68d:''};try{const _0x1548ea=await this[_0x4c1da5(0x12d)][_0x4c1da5(0x2ca)](_0x540557,{'body':_0x53819b});return _0x1548ea['body'][_0x4c1da5(0x201)]&&_0x1548ea[_0x4c1da5(0x1b9)][_0x4c1da5(0x201)]['code']!==Be['OK']?_0x4c1da5(0x160):_0x1548ea['body'][_0x4c1da5(0xbb)];}catch{return _0x4c1da5(0x160);}}},exports[_0x57a25a(0x15a)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x57a25a(0x17f)](G[_0x57a25a(0x1c9)])),ue(0x2,a[_0x57a25a(0x18b)])],exports[_0x57a25a(0x15a)]),exports['CollaborationStatusDisplay']=xe,exports[_0x57a25a(0x319)]=be,exports['SheetCollabCursorShape']=Ae,exports[_0x57a25a(0x1a5)]=is,exports['WebURLService']=je;
1
+ 'use strict';function _0x1c95(_0x3b3dba,_0x3b4abf){const _0x475544=_0x4755();return _0x1c95=function(_0x1c957e,_0x1ec18e){_0x1c957e=_0x1c957e-0x64;let _0x936238=_0x475544[_0x1c957e];return _0x936238;},_0x1c95(_0x3b3dba,_0x3b4abf);}const _0x40b53b=_0x1c95;(function(_0x2843a7,_0x4c1de8){const _0x49c75a=_0x1c95,_0x12e20e=_0x2843a7();while(!![]){try{const _0x50dbb9=-parseInt(_0x49c75a(0x18a))/0x1+-parseInt(_0x49c75a(0x280))/0x2+parseInt(_0x49c75a(0x169))/0x3*(-parseInt(_0x49c75a(0xcb))/0x4)+parseInt(_0x49c75a(0x15e))/0x5*(-parseInt(_0x49c75a(0x75))/0x6)+-parseInt(_0x49c75a(0x2cd))/0x7+-parseInt(_0x49c75a(0x120))/0x8*(-parseInt(_0x49c75a(0xf0))/0x9)+parseInt(_0x49c75a(0x25e))/0xa;if(_0x50dbb9===_0x4c1de8)break;else _0x12e20e['push'](_0x12e20e['shift']());}catch(_0x132d01){_0x12e20e['push'](_0x12e20e['shift']());}}}(_0x4755,0x23ca6));var Ve=Object[_0x40b53b(0xfa)],Xe=(_0x4d2939,_0x375bbd,_0x5309f7)=>_0x375bbd in _0x4d2939?Ve(_0x4d2939,_0x375bbd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5309f7}):_0x4d2939[_0x375bbd]=_0x5309f7,h=(_0x3ffcf6,_0x3d74b9,_0x518981)=>Xe(_0x3ffcf6,typeof _0x3d74b9!=_0x40b53b(0xfe)?_0x3d74b9+'':_0x3d74b9,_0x518981);Object[_0x40b53b(0xfa)](exports,Symbol[_0x40b53b(0x2e1)],{'value':_0x40b53b(0x1bb)});const u=require(_0x40b53b(0x2e6)),a=require(_0x40b53b(0x1fe)),p=require(_0x40b53b(0x292)),G=require(_0x40b53b(0x1e1)),b=require(_0x40b53b(0x1d4)),Ge=require('@univerjs/drawing'),d=require(_0x40b53b(0x262)),Y=require('@univerjs/docs'),m=require(_0x40b53b(0x1f0)),Ee=require(_0x40b53b(0x236)),g=require(_0x40b53b(0x244)),$=require(_0x40b53b(0x2b6)),X=require('@univerjs/sheets-ui'),P=require(_0x40b53b(0x1f6)),T=require(_0x40b53b(0x123)),D=require(_0x40b53b(0xac)),M=require(_0x40b53b(0x167)),Ke=require(_0x40b53b(0x2c8));var qe=Object[_0x40b53b(0x107)],ze=(_0x519c2a,_0x13816c,_0x2ffc04,_0x444c30)=>{const _0x586afe=_0x40b53b;for(var _0x4a99dc=_0x444c30>0x1?void 0x0:_0x444c30?qe(_0x13816c,_0x2ffc04):_0x13816c,_0x39238a=_0x519c2a[_0x586afe(0x90)]-0x1,_0x107c9a;_0x39238a>=0x0;_0x39238a--)(_0x107c9a=_0x519c2a[_0x39238a])&&(_0x4a99dc=_0x107c9a(_0x4a99dc)||_0x4a99dc);return _0x4a99dc;},Te=(_0x1a34f5,_0x547839)=>(_0x35f7e8,_0x2c2b4d)=>_0x547839(_0x35f7e8,_0x2c2b4d,_0x1a34f5);let de=class extends a[_0x40b53b(0x2dd)]{constructor(_0x3d3bfe,_0x2788f7){const _0x5d3f18=_0x40b53b;super(),this[_0x5d3f18(0x8c)]=_0x3d3bfe,this[_0x5d3f18(0x22a)]=_0x2788f7,this[_0x5d3f18(0xa0)]();}[_0x40b53b(0xa0)](){const _0x9f7769=_0x40b53b,_0x21393b=this;this['disposeWithMe'](this[_0x9f7769(0x8c)][_0x9f7769(0x2ab)]({'onBeforePasteImage':async _0x5bae4c=>{const _0x52c398=_0x9f7769,_0xb6a144=await _0x21393b[_0x52c398(0x22a)][_0x52c398(0xf3)](_0x5bae4c);return _0xb6a144?{'source':_0xb6a144['source'],'imageSourceType':_0xb6a144['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x40b53b(0x240)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x40b53b(0xea),_0x40b53b(0x2c0),'green.600',_0x40b53b(0xe5),_0x40b53b(0x14c),'yellow.400'];class me extends a[_0x40b53b(0x174)]{constructor(){const _0x857bc3=_0x40b53b;super(...arguments),h(this,_0x857bc3(0x27f),new Map()),h(this,_0x857bc3(0x110),0x0);}[_0x40b53b(0x29c)](_0x2ea3bd){const _0x27bae7=_0x40b53b;if(this[_0x27bae7(0x27f)][_0x27bae7(0xe6)](_0x2ea3bd))return this[_0x27bae7(0x27f)][_0x27bae7(0x2ee)](_0x2ea3bd);const _0x22fed4=Oe[this[_0x27bae7(0x110)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Oe[_0x27bae7(0x90)],this[_0x27bae7(0x27f)][_0x27bae7(0x82)](_0x2ea3bd,_0x22fed4),_0x22fed4;}}function Pe(_0x50becd){const _0xe7411c=_0x40b53b;let _0x3afd7f='';for(const _0x105d60 of _0x50becd){const {startOffset:_0x27fc59,endOffset:_0x60083b,isActive:_0x4834b5,rangeType:_0x39d01e,segmentId:_0x5a2986,segmentPage:_0x544996}=_0x105d60;_0x3afd7f[_0xe7411c(0x90)]&&(_0x3afd7f+=','),_0x3afd7f+=_0x27fc59+':'+_0x60083b+':'+(_0x4834b5?'1':'0')+':'+_0x39d01e+':'+_0x5a2986+':'+_0x544996;}return _0x3afd7f;}function Je(_0x1d8212){const _0x2444c4=_0x40b53b,_0x5b125d=_0x1d8212[_0x2444c4(0xc4)](','),_0x56535a=[];for(const _0x143264 of _0x5b125d){const [_0x48d5d6,_0x1777a9,_0x4d6b49,_0xeb7549,_0x32a6f5,_0x3f8bfd]=_0x143264[_0x2444c4(0xc4)](':');_0x56535a[_0x2444c4(0xb2)]({'startOffset':Number(_0x48d5d6),'endOffset':Number(_0x1777a9),'collapsed':_0x48d5d6===_0x1777a9,'isActive':_0x4d6b49==='1','rangeType':_0xeb7549===a[_0x2444c4(0xa1)][_0x2444c4(0x269)]?a[_0x2444c4(0xa1)][_0x2444c4(0x269)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x32a6f5==_0x2444c4(0x208)?String(_0x32a6f5):'','segmentPage':Number(_0x3f8bfd!=null?_0x3f8bfd:-0x1)});}return _0x56535a['some'](_0x5321b8=>_0x5321b8[_0x2444c4(0x246)])||(_0x56535a[0x0]['isActive']=!0x0),_0x56535a;}class Ce extends a[_0x40b53b(0x2dd)]{constructor(){const _0x4202cb=_0x40b53b;super(...arguments),h(this,_0x4202cb(0x1c6),new d[(_0x4202cb(0x263))](null)),h(this,'collabCursorState$',this[_0x4202cb(0x1c6)][_0x4202cb(0x267)]());}['syncEditingCollabCursor'](_0x12f1ed){const _0x5b3807=_0x40b53b,{unitID:_0x499970,memberID:_0x22b6dc,textRanges:_0x2dcdf7}=_0x12f1ed,_0x5a7e5a=Pe(_0x2dcdf7);if(_0x5a7e5a==='')return;const _0x4418f0={'unitID':_0x499970,'memberID':_0x22b6dc,'selection':_0x5a7e5a};this[_0x5b3807(0x1c6)][_0x5b3807(0x15b)](_0x4418f0);}}var Ze=Object[_0x40b53b(0x107)],Qe=(_0x298f97,_0x254b05,_0x58e7b7,_0x4ddd7a)=>{const _0x9745f7=_0x40b53b;for(var _0xea7194=_0x4ddd7a>0x1?void 0x0:_0x4ddd7a?Ze(_0x254b05,_0x58e7b7):_0x254b05,_0x1005b3=_0x298f97[_0x9745f7(0x90)]-0x1,_0x13c21a;_0x1005b3>=0x0;_0x1005b3--)(_0x13c21a=_0x298f97[_0x1005b3])&&(_0xea7194=_0x13c21a(_0xea7194)||_0xea7194);return _0xea7194;},L=(_0x249c0c,_0x325264)=>(_0x18ab2e,_0x250c83)=>_0x325264(_0x18ab2e,_0x250c83,_0x249c0c);const et=0x12c,tt=0x64;let fe=class extends a[_0x40b53b(0x2dd)]{constructor(_0x32e5b3,_0x41eb18,_0x426c58,_0x18f57b,_0x4e8f89,_0x48f1f6,_0x32f79c,_0x29ff85,_0x24c269){const _0x34ee49=_0x40b53b;super(),h(this,_0x34ee49(0x157),!0x1),h(this,_0x34ee49(0xa0),!0x1),h(this,_0x34ee49(0x1f9),new d['BehaviorSubject'](new Map())),h(this,_0x34ee49(0x192),this[_0x34ee49(0x1f9)][_0x34ee49(0x267)]()),h(this,_0x34ee49(0x1a7),new d[(_0x34ee49(0x263))]([])),h(this,_0x34ee49(0x209),this[_0x34ee49(0x1a7)]['pipe'](d[_0x34ee49(0x2d3)](et))),h(this,_0x34ee49(0xd5),a[_0x34ee49(0x8e)](_0x23326a=>{const _0x1adbd0=_0x34ee49,_0x3cf143={'eventID':m[_0x1adbd0(0x130)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1adbd0(0x216)],'memberID':this[_0x1adbd0(0x2c2)][_0x1adbd0(0x1b9)](),'selection':Pe(_0x23326a)}};this[_0x1adbd0(0x2c2)]['send'](_0x3cf143,this[_0x1adbd0(0x216)]);},tt)),(this[_0x34ee49(0x216)]=_0x32e5b3,this[_0x34ee49(0x2c2)]=_0x41eb18,this[_0x34ee49(0x2ef)]=_0x426c58,this[_0x34ee49(0x137)]=_0x18f57b,this['_memberService']=_0x4e8f89,this['_syncEditingCollabCursorService']=_0x48f1f6,this['_transformService']=_0x32f79c,this['_univerInstanceService']=_0x29ff85,this[_0x34ee49(0x241)]=_0x24c269);}get['cursorInfo'](){const _0x38be5a=_0x40b53b;return this[_0x38be5a(0x1f9)][_0x38be5a(0x261)]();}get[_0x40b53b(0x1e6)](){const _0x1b24d0=_0x40b53b;return this[_0x1b24d0(0x1a7)]['getValue']();}[_0x40b53b(0x234)](){const _0x270785=_0x40b53b;super[_0x270785(0x234)](),this[_0x270785(0x1f9)][_0x270785(0x15b)](new Map()),this['_cursorInfo$'][_0x270785(0x27a)](),this['_roomMembers$'][_0x270785(0x15b)]([]),this[_0x270785(0x1a7)]['complete']();}[_0x40b53b(0xee)](){const _0xe1c7ba=_0x40b53b;this[_0xe1c7ba(0xa0)]||(this[_0xe1c7ba(0xa0)]=!0x0,this[_0xe1c7ba(0x2c2)][_0xe1c7ba(0xae)]['pipe'](d[_0xe1c7ba(0x158)](this[_0xe1c7ba(0x1b0)]))['subscribe'](_0x3e3d58=>{const _0x30e66e=_0xe1c7ba;_0x3e3d58===u[_0x30e66e(0xd3)][_0x30e66e(0x2bb)]?this[_0x30e66e(0x97)]():this[_0x30e66e(0xb8)]();}),this[_0xe1c7ba(0x2c2)][_0xe1c7ba(0x12c)]['pipe'](d[_0xe1c7ba(0x158)](this[_0xe1c7ba(0x1b0)]))[_0xe1c7ba(0x1a1)](_0x1d3493=>{const _0x43557a=_0xe1c7ba,_0xf5e37f=_0x1d3493[_0x43557a(0x19f)];_0xf5e37f===m[_0x43557a(0x130)][_0x43557a(0xca)]&&this['_onCursorUpdate'](_0x1d3493),_0xf5e37f===m[_0x43557a(0x130)][_0x43557a(0x22c)]&&this[_0x43557a(0x188)](_0x1d3493);}),this[_0xe1c7ba(0x21a)](this[_0xe1c7ba(0x241)][_0xe1c7ba(0x14a)](_0x130c60=>{const _0x59aad9=_0xe1c7ba,_0x3392da=_0x130c60[_0x59aad9(0x2d1)];_0x3392da!=null&&this[_0x59aad9(0x157)]&&_0x130c60['id']===Y[_0x59aad9(0x88)]['id']&&_0x3392da[_0x59aad9(0x245)]===this[_0x59aad9(0x216)]&&_0x3392da[_0x59aad9(0xda)]===!0x1&&_0x3392da[_0x59aad9(0x84)]['length']>0x0&&this[_0x59aad9(0xd5)](_0x3392da[_0x59aad9(0x84)]);})),this[_0xe1c7ba(0x26c)]['collabCursorState$'][_0xe1c7ba(0x1d5)](d[_0xe1c7ba(0x158)](this[_0xe1c7ba(0x1b0)]))[_0xe1c7ba(0x1a1)](_0x23d91a=>{const _0x3777cd=_0xe1c7ba;if((_0x23d91a==null?void 0x0:_0x23d91a[_0x3777cd(0x216)])!==this['unitID'])return;const _0x407eb3={'eventID':m[_0x3777cd(0x130)][_0x3777cd(0xca)],'data':_0x23d91a};this['_onCursorUpdate'](_0x407eb3);}),this[_0xe1c7ba(0x21a)](this['_commandService'][_0xe1c7ba(0x14a)](_0x329b81=>{const _0x16dd88=_0xe1c7ba;if(_0x329b81[_0x16dd88(0x2d1)]==null)return;const _0x51d452=_0x329b81[_0x16dd88(0x2d1)];if(_0x329b81['id']!==Y[_0x16dd88(0x12f)]['id']||_0x51d452[_0x16dd88(0x245)]!==this[_0x16dd88(0x216)])return;const _0x4fa902={'id':_0x16dd88(0x16c),'params':_0x51d452},_0x2ecf58=this[_0x16dd88(0x2af)];for(const [_0x5969a5,_0x1a8d45]of _0x2ecf58){const _0x5209fe={'id':_0x16dd88(0x16c),'params':{'unitId':this[_0x16dd88(0x216)],'actions':null,'textRanges':_0x1a8d45['ranges']}},_0x2a7217=this[_0x16dd88(0x2a7)]['transformMutation'](_0x4fa902,_0x5209fe,!0x1);if(m[_0x16dd88(0x203)](_0x2a7217))throw _0x2a7217[_0x16dd88(0x25c)];_0x2ecf58[_0x16dd88(0x82)](_0x5969a5,{..._0x1a8d45,'ranges':_0x2a7217[_0x16dd88(0x282)][_0x16dd88(0x2d1)]['textRanges']});}queueMicrotask(()=>{const _0x482c37=_0x16dd88;this[_0x482c37(0x1f9)][_0x482c37(0x15b)](_0x2ecf58);});})));}[_0x40b53b(0x279)](_0x1dea5f){const _0x273c09=_0x40b53b;var _0x3a586c,_0x1eadbb;const {memberID:_0x56cb63,selection:_0x2b9653}=_0x1dea5f[_0x273c09(0x226)],_0x97734f=Je(_0x2b9653),_0x2f20d5=(_0x1eadbb=(_0x3a586c=this[_0x273c09(0xc8)]['getMember'](this[_0x273c09(0x216)],_0x56cb63))==null?void 0x0:_0x3a586c[_0x273c09(0x7a)])!=null?_0x1eadbb:_0x273c09(0x197),_0xc6a4b7={'color':this[_0x273c09(0x137)][_0x273c09(0x29c)](_0x56cb63),'name':_0x2f20d5,'ranges':_0x97734f},_0x462564=this['cursorInfo'];_0x462564[_0x273c09(0x82)](_0x56cb63,_0xc6a4b7),this[_0x273c09(0x1f9)][_0x273c09(0x15b)](_0x462564);}[_0x40b53b(0x188)](_0x529b1a){const _0x284f5e=_0x40b53b,{memberID:_0x27468f}=_0x529b1a[_0x284f5e(0x226)],_0x4a9871=this[_0x284f5e(0x2af)];_0x4a9871[_0x284f5e(0x2da)](_0x27468f),this[_0x284f5e(0x1f9)][_0x284f5e(0x15b)](_0x4a9871);}[_0x40b53b(0x97)](){const _0x2f3b2e=_0x40b53b;var _0x5051ce;if(this[_0x2f3b2e(0x157)]=!0x0,((_0x5051ce=this[_0x2f3b2e(0x11b)][_0x2f3b2e(0x1f1)]())==null?void 0x0:_0x5051ce['getUnitId']())!==this[_0x2f3b2e(0x216)])return;const _0x5a5091=this['_injector'][_0x2f3b2e(0x2ee)](Y['DocSelectionManagerService'])['getDocRanges']();Array['isArray'](_0x5a5091)&&_0x5a5091[_0x2f3b2e(0x90)]>0x0&&this['_updateLocalCursor'](_0x5a5091);}[_0x40b53b(0xb8)](){const _0x23fe78=_0x40b53b;this[_0x23fe78(0x157)]=!0x1;}};fe=Qe([L(0x2,a[_0x40b53b(0x163)](a[_0x40b53b(0x184)])),L(0x3,a[_0x40b53b(0x163)](me)),L(0x4,a[_0x40b53b(0x163)](u[_0x40b53b(0x22f)])),L(0x5,a[_0x40b53b(0x163)](Ce)),L(0x6,m[_0x40b53b(0x1fc)]),L(0x7,a[_0x40b53b(0x64)]),L(0x8,a[_0x40b53b(0x287)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x411424,_0x190192,_0x40361d,_0x1065fd)=>{for(var _0x3be283=_0x1065fd>0x1?void 0x0:_0x1065fd?st(_0x190192,_0x40361d):_0x190192,_0x10dc07=_0x411424['length']-0x1,_0x5b253b;_0x10dc07>=0x0;_0x10dc07--)(_0x5b253b=_0x411424[_0x10dc07])&&(_0x3be283=_0x5b253b(_0x3be283)||_0x3be283);return _0x3be283;},w=(_0x2faf7b,_0x36779b)=>(_0x3da939,_0x4ff22e)=>_0x36779b(_0x3da939,_0x4ff22e,_0x2faf7b);const nt=0x12c,rt=0x64,ot=()=>{let _0x891e98=[],_0x5e1a9d=!0x1;return _0x50bf29=>{_0x891e98['push'](_0x50bf29),_0x5e1a9d||(_0x5e1a9d=!0x0,setTimeout(()=>{const _0x55e976=_0x1c95;_0x891e98[_0x55e976(0x7d)](_0x327c66=>_0x327c66()),_0x891e98=[],_0x5e1a9d=!0x1;}));};};let Se=class extends a[_0x40b53b(0x2dd)]{constructor(_0x5146ba,_0x395d97,_0x5cad8a,_0x1ddb5c,_0x1dd8d6,_0x5e4884,_0x3ba100,_0x45697f){const _0x407771=_0x40b53b;super(),h(this,_0x407771(0x157),!0x1),h(this,_0x407771(0xa0),!0x1),h(this,'_cursorInfo$',new d[(_0x407771(0x263))](new Map())),h(this,_0x407771(0x192),this['_cursorInfo$']['asObservable']()),h(this,'_roomMembers$',new d[(_0x407771(0x263))]([])),h(this,_0x407771(0x209),this[_0x407771(0x1a7)][_0x407771(0x1d5)](d[_0x407771(0x2d3)](nt))),h(this,_0x407771(0xd5),a['debounce']((_0x31e24c,_0x4a2ade)=>{const _0x597032=_0x407771,_0x2216bf={'eventID':m['CollaborationEvent'][_0x597032(0xca)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x597032(0x1b9)](),'selection':Ee[_0x597032(0x2ea)](_0x31e24c,_0x4a2ade[_0x597032(0xb4)])}};this[_0x597032(0x2c2)][_0x597032(0xcc)](_0x2216bf,this[_0x597032(0x216)]);},rt)),(this[_0x407771(0x216)]=_0x5146ba,this[_0x407771(0x2c2)]=_0x395d97,this[_0x407771(0x2ef)]=_0x5cad8a,this[_0x407771(0x137)]=_0x1ddb5c,this[_0x407771(0xc8)]=_0x1dd8d6,this[_0x407771(0x11b)]=_0x5e4884,this[_0x407771(0x241)]=_0x3ba100,this[_0x407771(0x100)]=_0x45697f);}get['cursorInfo'](){const _0x3fb614=_0x40b53b;return this[_0x3fb614(0x1f9)][_0x3fb614(0x261)]();}get[_0x40b53b(0x1e6)](){const _0x2df167=_0x40b53b;return this['_roomMembers$'][_0x2df167(0x261)]();}[_0x40b53b(0x234)](){const _0x1a488e=_0x40b53b;super['dispose'](),this['_cursorInfo$'][_0x1a488e(0x15b)](new Map()),this['_cursorInfo$'][_0x1a488e(0x27a)](),this[_0x1a488e(0x1a7)][_0x1a488e(0x15b)]([]),this[_0x1a488e(0x1a7)][_0x1a488e(0x27a)]();}[_0x40b53b(0xee)](){const _0x509e2d=_0x40b53b;this[_0x509e2d(0xa0)]||(this[_0x509e2d(0xa0)]=!0x0,this[_0x509e2d(0x2c2)][_0x509e2d(0xae)]['pipe'](d[_0x509e2d(0x158)](this[_0x509e2d(0x1b0)]))['subscribe'](_0x9fb3c0=>{const _0x4da297=_0x509e2d;_0x9fb3c0===u[_0x4da297(0xd3)][_0x4da297(0x2bb)]?this[_0x4da297(0x97)]():this[_0x4da297(0xb8)]();}),this[_0x509e2d(0x2c2)][_0x509e2d(0x12c)][_0x509e2d(0x1d5)](d[_0x509e2d(0x158)](this['dispose$']))[_0x509e2d(0x1a1)](_0x2d6501=>{const _0x49e971=_0x509e2d,_0x52f8ab=_0x2d6501['eventID'];_0x52f8ab===m[_0x49e971(0x130)][_0x49e971(0xca)]&&this['_onCursorUpdate'](_0x2d6501),_0x52f8ab===m[_0x49e971(0x130)]['USERS_LEAVE']&&this[_0x49e971(0x188)](_0x2d6501);}),this[_0x509e2d(0x9e)](),this[_0x509e2d(0x21a)](this[_0x509e2d(0x241)][_0x509e2d(0x14a)](_0x15708f=>{const _0x5fcc86=_0x509e2d;if(this['_online']&&_0x15708f['id']===g[_0x5fcc86(0x11f)]['id']&&_0x15708f[_0x5fcc86(0x2d1)][_0x5fcc86(0x245)]===this['unitID']){const _0x4004f6=_0x15708f[_0x5fcc86(0x2d1)];this[_0x5fcc86(0xd5)](_0x4004f6['subUnitId'],_0x4004f6[_0x5fcc86(0x124)][0x0]);}})));}[_0x40b53b(0x279)](_0x43473d){const _0x5d366f=_0x40b53b;var _0x550432,_0x4585ce;const {memberID:_0x12b1ae,selection:_0x3ca84a}=_0x43473d[_0x5d366f(0x226)],{sheetName:_0x34b67d,range:_0x293f6a}=Ee[_0x5d366f(0x70)](_0x3ca84a),_0x4e7002={'name':(_0x4585ce=(_0x550432=this[_0x5d366f(0xc8)]['getMember'](this[_0x5d366f(0x216)],_0x12b1ae))==null?void 0x0:_0x550432[_0x5d366f(0x7a)])!=null?_0x4585ce:_0x5d366f(0x197),'range':this[_0x5d366f(0x2b4)](_0x34b67d,_0x293f6a),'sheetID':_0x34b67d,'color':this[_0x5d366f(0x137)]['assignAColorForMemberID'](_0x12b1ae),'selection':_0x3ca84a},_0x2b0f99=this[_0x5d366f(0x2af)];_0x2b0f99[_0x5d366f(0x82)](_0x12b1ae,_0x4e7002),this['_cursorInfo$'][_0x5d366f(0x15b)](_0x2b0f99);}[_0x40b53b(0x188)](_0x186fec){const _0x336af5=_0x40b53b,{memberID:_0x2709c0}=_0x186fec[_0x336af5(0x226)],_0x2efab8=this['cursorInfo'];_0x2efab8[_0x336af5(0x2da)](_0x2709c0),this[_0x336af5(0x1f9)][_0x336af5(0x15b)](_0x2efab8);}[_0x40b53b(0x2b4)](_0x1e9f1b,_0x129276){const _0xcd605b=_0x40b53b;var _0x2c47a1,_0x1956d2;const _0x2c4475=(_0x1956d2=(_0x2c47a1=this[_0xcd605b(0x11b)][_0xcd605b(0x160)](this['unitID']))==null?void 0x0:_0x2c47a1['getSheetBySheetId'](_0x1e9f1b))==null?void 0x0:_0x1956d2['getMergeData']();return(_0x2c4475==null?void 0x0:_0x2c4475[_0xcd605b(0x24e)](_0x5ea9a1=>a[_0xcd605b(0x1dc)][_0xcd605b(0x1a5)](_0x5ea9a1,_0x129276)))||_0x129276;}[_0x40b53b(0x9e)](){const _0x58e8f7=_0x40b53b,_0x38e0b4=new a['DisposableCollection'](),_0x44e323=ot(),_0x5f5537=()=>{const _0x403315=_0x1c95;_0x38e0b4[_0x403315(0x234)]();const _0xf1a026=(_0x534339,_0xee213,_0x4ffc84,_0xc5c691)=>{const _0x526b60=_0x403315;let _0x241b78=[];switch(_0x534339['id']){case g[_0x526b60(0x67)][_0x526b60(0x29e)]:{_0x241b78=g[_0x526b60(0x147)](_0x534339,_0xc5c691);break;}case g[_0x526b60(0x67)][_0x526b60(0x2db)]:{_0x241b78=g[_0x526b60(0x25f)](_0x534339,_0xc5c691);break;}case g[_0x526b60(0x67)][_0x526b60(0xef)]:{_0x241b78=g['handleInsertCol'](_0x534339,_0xc5c691);break;}case g['EffectRefRangId'][_0x526b60(0x26f)]:{_0x241b78=g[_0x526b60(0x1c8)](_0x534339,_0xc5c691);break;}case g[_0x526b60(0x67)][_0x526b60(0x232)]:{_0x241b78=g['handleInsertRangeMoveRight'](_0x534339,_0xc5c691);break;}case g[_0x526b60(0x67)][_0x526b60(0x1b2)]:{_0x241b78=g[_0x526b60(0x16b)](_0x534339,_0xc5c691);break;}case g['EffectRefRangId'][_0x526b60(0x1c3)]:{_0x241b78=g[_0x526b60(0x1c5)](_0x534339,_0xc5c691);break;}case g[_0x526b60(0x67)][_0x526b60(0x189)]:{_0x241b78=g[_0x526b60(0x2c6)](_0x534339,_0xc5c691);break;}case g[_0x526b60(0x67)]['RemoveRowCommandId']:{_0x241b78=g[_0x526b60(0x2ac)](_0x534339,_0xc5c691);break;}}const _0x2525e9=g[_0x526b60(0x24f)](_0x241b78,_0xc5c691),_0x323a6a=this['cursorInfo'][_0x526b60(0x2ee)](_0xee213);if(_0x323a6a&&_0x2525e9){const _0x15de22={..._0x323a6a,'range':_0x2525e9};this[_0x526b60(0x2af)][_0x526b60(0x82)](_0xee213,_0x15de22),_0x44e323(()=>{const _0x2164f9=_0x526b60,_0x241414=this[_0x2164f9(0x100)][_0x2164f9(0x200)](_0x2525e9,_0x37c95a=>(_0x241414[_0x2164f9(0x234)](),_0xf1a026(_0x37c95a,_0xee213,_0x4ffc84,_0x2525e9)));_0x38e0b4[_0x2164f9(0x2d6)](_0x241414);});}return{'redos':[],'undos':[]};};this[_0x403315(0x2af)][_0x403315(0x7d)]((_0x3957cc,_0x2fa987)=>{const _0x4a9f78=_0x403315,{range:_0x2df2db,sheetID:_0x2d07d5}=_0x3957cc,_0x34a53b=this[_0x4a9f78(0x100)][_0x4a9f78(0x200)](_0x2df2db,_0x393d03=>(_0x34a53b[_0x4a9f78(0x234)](),_0xf1a026(_0x393d03,_0x2fa987,_0x2d07d5,_0x2df2db)));_0x38e0b4['add'](_0x34a53b);});};this['disposeWithMe'](a[_0x58e8f7(0x104)](this[_0x58e8f7(0x1f9)]['subscribe'](()=>{_0x5f5537();})));}[_0x40b53b(0x97)](){const _0x282dd3=_0x40b53b;var _0x29bb62,_0x9b1c99;if(this[_0x282dd3(0x157)]=!0x0,((_0x29bb62=this['_univerInstanceService'][_0x282dd3(0x1f1)]())==null?void 0x0:_0x29bb62[_0x282dd3(0x134)]())!==this[_0x282dd3(0x216)])return;const _0x510369=(_0x9b1c99=this['_injector'][_0x282dd3(0x2ee)](g[_0x282dd3(0xd2)])[_0x282dd3(0x1e8)]())==null?void 0x0:_0x9b1c99[0x0],_0x101fcc=this[_0x282dd3(0x11b)][_0x282dd3(0x20f)](a[_0x282dd3(0x1d9)][_0x282dd3(0x243)])[_0x282dd3(0x168)]();_0x510369&&_0x101fcc&&this[_0x282dd3(0xd5)](_0x101fcc[_0x282dd3(0x25a)](),_0x510369);}[_0x40b53b(0xb8)](){const _0x15976d=_0x40b53b;this[_0x15976d(0x157)]=!0x1;}};Se=it([w(0x2,a[_0x40b53b(0x163)](a['Injector'])),w(0x3,a[_0x40b53b(0x163)](me)),w(0x4,a[_0x40b53b(0x163)](u[_0x40b53b(0x22f)])),w(0x5,a[_0x40b53b(0x64)]),w(0x6,a[_0x40b53b(0x287)]),w(0x7,a[_0x40b53b(0x163)](g[_0x40b53b(0xf6)]))],Se);var at=Object[_0x40b53b(0x107)],ct=(_0x31e307,_0x508fd2,_0x1c37f0,_0x1712aa)=>{for(var _0x20a117=_0x1712aa>0x1?void 0x0:_0x1712aa?at(_0x508fd2,_0x1c37f0):_0x508fd2,_0x5e670b=_0x31e307['length']-0x1,_0x38d197;_0x5e670b>=0x0;_0x5e670b--)(_0x38d197=_0x31e307[_0x5e670b])&&(_0x20a117=_0x38d197(_0x20a117)||_0x20a117);return _0x20a117;},ie=(_0x3e2f94,_0x57bb3a)=>(_0x1379b7,_0x188867)=>_0x57bb3a(_0x1379b7,_0x188867,_0x3e2f94);let x=class extends a[_0x40b53b(0x2dd)]{constructor(_0x32344b,_0x27e01c,_0x3b279c){const _0x73b1ab=_0x40b53b;super(),h(this,'_entities',new Map()),h(this,_0x73b1ab(0x1db),new d[(_0x73b1ab(0x13c))]()),(this['_univerInstanceService']=_0x32344b,this[_0x73b1ab(0x2ef)]=_0x27e01c,this[_0x73b1ab(0x19a)]=_0x3b279c,this['_init']());}[_0x40b53b(0x234)](){const _0x224382=_0x40b53b;super[_0x224382(0x234)](),this[_0x224382(0x1db)][_0x224382(0x27a)](),this[_0x224382(0x249)][_0x224382(0x7d)](_0xd4deba=>_0xd4deba[_0x224382(0x234)]());}[_0x40b53b(0x20b)](_0x50d9fc){const _0x416c30=_0x40b53b;return this[_0x416c30(0x249)]['has'](_0x50d9fc)?this[_0x416c30(0x249)][_0x416c30(0x2ee)](_0x50d9fc)[_0x416c30(0x192)]:this[_0x416c30(0x1db)][_0x416c30(0x1d5)](d['filter'](_0x5526cb=>_0x5526cb[_0x416c30(0x216)]===_0x50d9fc),d[_0x416c30(0x291)](_0x164a88=>_0x164a88[_0x416c30(0x192)]));}[_0x40b53b(0xa0)](){const _0x12c12d=_0x40b53b;this['_univerInstanceService'][_0x12c12d(0x228)](a[_0x12c12d(0x1d9)]['UNIVER_SHEET'])[_0x12c12d(0x1d5)](d['takeUntil'](this['dispose$']))[_0x12c12d(0x1a1)](async _0x3cba92=>{const _0x4e4099=_0x12c12d,_0x36049e=_0x3cba92[_0x4e4099(0x134)](),_0x84878c=await this[_0x4e4099(0x195)](_0x36049e);this[_0x4e4099(0x1db)]['next'](_0x84878c),this[_0x4e4099(0x249)][_0x4e4099(0x82)](_0x36049e,_0x84878c);}),this['_univerInstanceService'][_0x12c12d(0x228)](a[_0x12c12d(0x1d9)][_0x12c12d(0x2a5)])[_0x12c12d(0x1d5)](d[_0x12c12d(0x158)](this[_0x12c12d(0x1b0)]))[_0x12c12d(0x1d5)](d[_0x12c12d(0x1ba)](_0x328b2a=>!_0x328b2a['getUnitId']()[_0x12c12d(0x272)]('__')))[_0x12c12d(0x1a1)](async _0x207cb5=>{const _0x22010b=_0x12c12d,_0x1cfb70=_0x207cb5['getUnitId'](),_0xc812b1=await this['_startDocCollabCursor'](_0x1cfb70);this[_0x22010b(0x1db)][_0x22010b(0x15b)](_0xc812b1),this[_0x22010b(0x249)][_0x22010b(0x82)](_0x1cfb70,_0xc812b1);}),d[_0x12c12d(0x29b)](this[_0x12c12d(0x11b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x12c12d(0x2a5)]),this['_univerInstanceService'][_0x12c12d(0x2b8)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](d[_0x12c12d(0x158)](this[_0x12c12d(0x1b0)]))['subscribe'](_0x53c006=>{const _0x46ff1d=_0x12c12d,_0x544c22=_0x53c006['getUnitId'](),_0x15e003=this['_entities'][_0x46ff1d(0x2ee)](_0x544c22);_0x15e003&&(_0x15e003['dispose'](),this[_0x46ff1d(0x249)][_0x46ff1d(0x2da)](_0x544c22));});}async['_startSheetCollabCursor'](_0x44930a){const _0x51290e=_0x40b53b,_0x557d53=await this[_0x51290e(0x19a)][_0x51290e(0x2d0)](_0x44930a),_0x1814ca=this[_0x51290e(0x2ef)]['createInstance'](Se,_0x44930a,_0x557d53);return _0x1814ca[_0x51290e(0xee)](),_0x1814ca;}async[_0x40b53b(0x1eb)](_0x5df3a2){const _0x2f75bb=_0x40b53b,_0x1b83a4=await this[_0x2f75bb(0x19a)]['requireSession'](_0x5df3a2),_0x249040=this[_0x2f75bb(0x2ef)]['createInstance'](fe,_0x5df3a2,_0x1b83a4);return _0x249040[_0x2f75bb(0xee)](),_0x249040;}};x=ct([ie(0x0,a[_0x40b53b(0x64)]),ie(0x1,a[_0x40b53b(0x163)](a['Injector'])),ie(0x2,a[_0x40b53b(0x163)](u[_0x40b53b(0x28e)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x383393,_0x5133ba){const _0x132798=_0x40b53b;let {radius:_0x25e197,width:_0x2da106,height:_0x3d9d98}=_0x5133ba;_0x25e197=_0x25e197!=null?_0x25e197:0x0,_0x2da106=_0x2da106!=null?_0x2da106:0x1e,_0x3d9d98=_0x3d9d98!=null?_0x3d9d98:0x1e;let _0x4ca840=0x0,_0x29706c=0x0,_0x6ee7e8=0x0;_0x4ca840=_0x29706c=_0x6ee7e8=Math[_0x132798(0x74)](_0x25e197,_0x2da106/0x2,_0x3d9d98/0x2),_0x383393['beginPath'](),_0x383393[_0x132798(0x19e)](_0x4ca840,0x0),_0x383393[_0x132798(0x1e4)](_0x2da106-_0x29706c,0x0),_0x383393[_0x132798(0x164)](_0x2da106-_0x29706c,_0x29706c,_0x29706c,Math['PI']*0x3/0x2,0x0,!0x1),_0x383393[_0x132798(0x1e4)](_0x2da106,_0x3d9d98-_0x6ee7e8),_0x383393[_0x132798(0x164)](_0x2da106-_0x6ee7e8,_0x3d9d98-_0x6ee7e8,_0x6ee7e8,0x0,Math['PI']/0x2,!0x1),_0x383393[_0x132798(0x1e4)](0x0,_0x3d9d98),_0x383393[_0x132798(0x1e4)](0x0,_0x4ca840),_0x383393['arc'](_0x4ca840,_0x4ca840,_0x4ca840,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x383393[_0x132798(0x207)](),_0x5133ba[_0x132798(0x1c1)]&&(_0x383393[_0x132798(0x225)](),_0x383393[_0x132798(0xb1)]=_0x5133ba[_0x132798(0x1c1)],_0x5133ba['fillRule']===_0x132798(0xf9)?_0x383393['fill'](_0x132798(0xf9)):_0x383393['fill'](),_0x383393[_0x132798(0x2b9)]());}class ee extends p['Shape']{constructor(_0x24bca1,_0x56cb18){const _0x107731=_0x40b53b;super(_0x24bca1,_0x56cb18),h(this,_0x107731(0x17d)),h(this,'text'),(this[_0x107731(0x17d)]=_0x56cb18==null?void 0x0:_0x56cb18[_0x107731(0x17d)],this[_0x107731(0x1e2)]=_0x56cb18==null?void 0x0:_0x56cb18['text']);}static[_0x40b53b(0x1ec)](_0x285f10,_0x4bee65){const _0x36a4c3=_0x40b53b,{text:_0x31bc8a,color:_0x1ca277}=_0x4bee65;_0x285f10['save'](),_0x285f10[_0x36a4c3(0x29d)]=_0x36a4c3(0xab);const _0x26a813=_0x285f10['measureText'](_0x31bc8a)[_0x36a4c3(0x265)],_0x4891d5=Math[_0x36a4c3(0x74)](_0x26a813+0x2*ne,Re);_t(_0x285f10,{'height':K,'radius':0x4,'width':_0x4891d5,'fill':_0x1ca277}),_0x285f10['fillStyle']='#FFF';const _0x353534=ne,_0x39fa83=K-lt,_0x4de3a2=Re-0x2*ne;if(_0x26a813>_0x4de3a2){let _0x9ab1c4='',_0x2680fc=0x0;for(const _0x58a0a7 of _0x31bc8a){const _0x4b07d3=_0x285f10[_0x36a4c3(0x1b1)](_0x58a0a7)[_0x36a4c3(0x265)];if(_0x2680fc+_0x4b07d3<=_0x4de3a2-_0x285f10[_0x36a4c3(0x1b1)](_0x36a4c3(0x1d2))[_0x36a4c3(0x265)])_0x9ab1c4+=_0x58a0a7,_0x2680fc+=_0x4b07d3;else{_0x9ab1c4+=_0x36a4c3(0x1d2);break;}}_0x285f10['fillText'](_0x9ab1c4,_0x353534,_0x39fa83);}else _0x285f10['fillText'](_0x31bc8a,_0x353534,_0x39fa83);_0x285f10['restore']();}[_0x40b53b(0x1c7)](_0x42321c){ee['drawWith'](_0x42321c,this);}}const re=_0x40b53b(0x68),ht=_0x40b53b(0x177),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x40b53b(0x1cc);class De{constructor(_0x56600e,_0xd0907a,_0x5bfa14,_0x2c3b43){const _0xd1f721=_0x40b53b;h(this,'_shapes',[]),h(this,_0xd1f721(0x1df),null),h(this,_0xd1f721(0x14e),null),h(this,_0xd1f721(0x23a),null),h(this,_0xd1f721(0x213),null),h(this,'_eventUnsubscribe',null),(this[_0xd1f721(0x17e)]=_0x56600e,this[_0xd1f721(0x93)]=_0xd0907a,this[_0xd1f721(0x254)]=_0x5bfa14,this[_0xd1f721(0x26d)]=_0x2c3b43,this[_0xd1f721(0x221)]());}set[_0x40b53b(0x27d)](_0x16956a){const _0x54cb63=_0x40b53b;_0x16956a?(this[_0x54cb63(0x23a)]&&this['_anchorDot'][_0x54cb63(0x108)](),this['_textBubble']&&this['_textBubble'][_0x54cb63(0x27c)]()):(this['_anchorDot']&&this[_0x54cb63(0x23a)]['show'](),this['_textBubble']&&this[_0x54cb63(0x14e)][_0x54cb63(0x108)]());}[_0x40b53b(0x234)](){const _0x118e0a=_0x40b53b;for(const _0x14adf0 of this[_0x118e0a(0x15a)])_0x14adf0['dispose']();this[_0x118e0a(0x14e)]&&this[_0x118e0a(0x14e)]['dispose'](),this[_0x118e0a(0x23a)]&&this[_0x118e0a(0x23a)][_0x118e0a(0x234)](),this[_0x118e0a(0x1df)]&&this[_0x118e0a(0x1df)][_0x118e0a(0x234)](),this[_0x118e0a(0xf4)]&&this[_0x118e0a(0xf4)]();}[_0x40b53b(0x221)](){const _0xc13465=_0x40b53b;var _0x2fc272;const {_docSkeleton:_0x7ccad,_document:_0x1505a8}=this,{color:_0x51adf4,name:_0x5340fb,ranges:_0x4a385c}=this[_0xc13465(0x17e)],_0x101390=_0x1505a8[_0xc13465(0x13e)](),{docsLeft:_0x42fff3,docsTop:_0x376529}=_0x101390,_0x4e2b7b=new b[(_0xc13465(0x76))](_0x101390,_0x7ccad);for(const {startOffset:_0x4f1302,endOffset:_0x40dd0c,rangeType:_0x3e9117,segmentId:_0x57170d,segmentPage:_0x2d3451,collapsed:_0x5f37b5,isActive:_0x133aee}of _0x4a385c){const _0x3dc3c1=_0x7ccad['findNodePositionByCharIndex'](_0x4f1302,!0x0,_0x57170d,_0x2d3451);let _0x37bb5e=_0x7ccad[_0xc13465(0xd7)](_0x40dd0c,!0x0,_0x57170d,_0x2d3451);if(_0x37bb5e==null&&(_0x37bb5e=_0x7ccad[_0xc13465(0xd7)](_0x40dd0c-0x1,!0x1,_0x57170d,_0x2d3451)),_0x133aee){const {contentBoxPointGroup:_0x1e40c5}=_0x4e2b7b['getRangePointData'](_0x37bb5e,_0x37bb5e);if(_0x1e40c5[_0xc13465(0x90)]===0x0)continue;this[_0xc13465(0x1b5)](_0x51adf4,_0x1e40c5,_0x42fff3,_0x376529,_0x5340fb),this[_0xc13465(0xf4)]=this[_0xc13465(0x2eb)]();}if(_0x3dc3c1&&_0x37bb5e){if(_0x3e9117===a[_0xc13465(0xa1)][_0xc13465(0xbb)]){const _0x264536=new b[(_0xc13465(0x132))](_0x101390,_0x7ccad),{pointGroup:_0x365a58}=(_0x2fc272=_0x264536[_0xc13465(0xa5)](_0x3dc3c1,_0x37bb5e))!=null?_0x2fc272:{};if(_0x365a58==null||_0x365a58[_0xc13465(0x90)]===0x0)continue;this['_drawRectRange'](_0x51adf4,_0x365a58,_0x42fff3,_0x376529);}else{if(!_0x5f37b5){const {borderBoxPointGroup:_0x1aff81}=_0x4e2b7b['getRangePointData'](_0x3dc3c1,_0x37bb5e);if(_0x1aff81[_0xc13465(0x90)]===0x0)continue;this['_drawTextRange'](_0x51adf4,_0x1aff81,_0x42fff3,_0x376529);}}}}}['_drawAnchor'](_0x12c012,_0x62e3ef,_0xf3e491,_0x16b3a8,_0x2f62bd){const _0x43e35d=_0x40b53b,_0x5282e9=this[_0x43e35d(0x180)](_0x62e3ef),{left:_0x12fa42,top:_0x492ce6,height:_0x53cbff}=_0x5282e9,_0x37acf2=this['_getScale'](),_0x4da132=ft/_0x37acf2,_0x2aaea6=new p[(_0x43e35d(0x1ca))](re+a[_0x43e35d(0x2c3)][_0x43e35d(0x2ad)](k),{'left':_0x12fa42+_0xf3e491-_0x4da132,'top':_0x492ce6+_0x16b3a8,'height':_0x53cbff,'width':dt,'fill':_0x12c012||p[_0x43e35d(0x235)](a[_0x43e35d(0xde)][_0x43e35d(0x257)],0x0),'strokeWidth':_0x4da132,'stroke':St,'evented':!0x0});this[_0x43e35d(0x1df)]=_0x2aaea6,this[_0x43e35d(0x93)][_0x43e35d(0x11e)](_0x2aaea6,b[_0x43e35d(0x1f3)]);const _0x237cd6=new p[(_0x43e35d(0x1ca))](re+a[_0x43e35d(0x2c3)]['generateRandomId'](k),{'left':_0x12fa42+_0xf3e491-_0x4da132,'top':_0x492ce6+_0x16b3a8-oe/0x2,'height':oe,'width':oe,'fill':_0x12c012||p[_0x43e35d(0x235)](a[_0x43e35d(0xde)][_0x43e35d(0x257)],0x0),'strokeWidth':0x0,'stroke':_0x12c012||p['getColor'](a[_0x43e35d(0xde)][_0x43e35d(0x257)],0x0),'evented':!0x1});this[_0x43e35d(0x23a)]=_0x237cd6,this[_0x43e35d(0x93)][_0x43e35d(0x11e)](_0x237cd6,b[_0x43e35d(0x1f3)]);const _0x2c7ae7=new ee(re+a[_0x43e35d(0x2c3)][_0x43e35d(0x2ad)](k),{'left':_0x12fa42+_0xf3e491-_0x4da132,'top':_0x492ce6+_0x16b3a8-K,'text':_0x2f62bd,'color':_0x12c012});this['_textBubble']=_0x2c7ae7,this[_0x43e35d(0x93)]['addObject'](_0x2c7ae7,b[_0x43e35d(0x1f3)]),this[_0x43e35d(0x27d)]=!0x1;}[_0x40b53b(0x2eb)](){const _0x3bd97b=_0x40b53b,_0x5e8e93=this[_0x3bd97b(0x1df)][_0x3bd97b(0x98)][_0x3bd97b(0x1cf)](()=>{const _0x327c62=_0x3bd97b;this[_0x327c62(0x27d)]=!0x0;}),_0x58e76f=this[_0x3bd97b(0x1df)][_0x3bd97b(0xe9)][_0x3bd97b(0x1cf)](()=>{const _0x142509=_0x3bd97b;this[_0x142509(0x213)]&&clearTimeout(this['_hideTimer']),this[_0x142509(0x213)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x53a09b=_0x3bd97b;_0x5e8e93['unsubscribe'](),_0x58e76f[_0x53a09b(0x238)]();};}[_0x40b53b(0x1c0)](_0x801e6d,_0x30294d,_0x52d3bc,_0x87a935){const _0x407498=_0x40b53b,_0x3d6804=new a[(_0x407498(0x29f))](_0x801e6d)[_0x407498(0x150)](0.2)[_0x407498(0x166)](),_0x1b1c68=new p[(_0x407498(0x15f))](ht+a[_0x407498(0x2c3)]['generateRandomId'](k),{'pointsGroup':_0x30294d,'fill':_0x3d6804||p['getColor'](a[_0x407498(0xde)][_0x407498(0x257)],0.2),'left':_0x52d3bc,'top':_0x87a935,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x407498(0x15a)]['push'](_0x1b1c68),this[_0x407498(0x93)][_0x407498(0x11e)](_0x1b1c68,b[_0x407498(0x1f3)]);}['_drawRectRange'](_0x18483b,_0x667959,_0x577fb9,_0x3e7f6c){const _0x2eafe1=_0x40b53b,_0x4a588e=new a[(_0x2eafe1(0x29f))](_0x18483b)[_0x2eafe1(0x150)](0.2)[_0x2eafe1(0x166)](),_0x2fa5d6=new p[(_0x2eafe1(0x15f))](ut+a[_0x2eafe1(0x2c3)]['generateRandomId'](k),{'pointsGroup':_0x667959,'fill':_0x4a588e||p[_0x2eafe1(0x235)](a['COLORS'][_0x2eafe1(0x257)],0.2),'left':_0x577fb9,'top':_0x3e7f6c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2eafe1(0x15a)][_0x2eafe1(0xb2)](_0x2fa5d6),this[_0x2eafe1(0x93)]['addObject'](_0x2fa5d6,b[_0x2eafe1(0x1f3)]);}['_getAnchorBounding'](_0x138829){const _0x220668=_0x138829[0x0],_0x2e8a3f=_0x220668[0x0],_0x6e06f4=_0x220668[0x2],{x:_0x4d1b1f,y:_0x361b69}=_0x2e8a3f,{x:_0xac41d3,y:_0x390dbf}=_0x6e06f4;return{'left':_0x4d1b1f,'top':_0x361b69,'width':_0xac41d3-_0x4d1b1f,'height':_0x390dbf-_0x361b69};}[_0x40b53b(0x215)](){const _0x53609e=_0x40b53b,{scaleX:_0x258754,scaleY:_0x4a9a9e}=this['_scene'][_0x53609e(0x2dc)]();return Math[_0x53609e(0x1a2)](_0x258754,_0x4a9a9e);}}var It=Object[_0x40b53b(0x107)],vt=(_0x3b3d84,_0x265d89,_0x3245bf,_0x1cde88)=>{for(var _0x212d07=_0x1cde88>0x1?void 0x0:_0x1cde88?It(_0x265d89,_0x3245bf):_0x265d89,_0xdbc7f3=_0x3b3d84['length']-0x1,_0x21f55;_0xdbc7f3>=0x0;_0xdbc7f3--)(_0x21f55=_0x3b3d84[_0xdbc7f3])&&(_0x212d07=_0x21f55(_0x212d07)||_0x212d07);return _0x212d07;},W=(_0x5efcf4,_0x3c539b)=>(_0x5a9e33,_0x1b4fcf)=>_0x3c539b(_0x5a9e33,_0x1b4fcf,_0x5efcf4);let Ie=class extends a[_0x40b53b(0x2dd)]{constructor(_0x1c71b2,_0x3ac9f2,_0x82d9f3,_0x316710,_0x3b39d5){const _0x2d5a6f=_0x40b53b;super(),h(this,'_cursorShapes',[]),h(this,_0x2d5a6f(0x1cb),[]),(this[_0x2d5a6f(0x185)]=_0x1c71b2,this[_0x2d5a6f(0x253)]=_0x3ac9f2,this['_collabCursorController']=_0x82d9f3,this[_0x2d5a6f(0x241)]=_0x316710,this[_0x2d5a6f(0x190)]=_0x3b39d5,this[_0x2d5a6f(0xa0)]());}[_0x40b53b(0xa0)](){const _0xfeb34c=_0x40b53b,_0x370380=this['_context'][_0xfeb34c(0x245)],_0x3a6b89=this[_0xfeb34c(0x253)];this[_0xfeb34c(0x21a)](d[_0xfeb34c(0x6f)]([this[_0xfeb34c(0x2c9)][_0xfeb34c(0x20b)](_0x370380),this['_themeService'][_0xfeb34c(0x179)]])[_0xfeb34c(0x1d5)]($[_0xfeb34c(0x12b)](([_0x172595,_0xcf975a])=>({'skeleton':_0x3a6b89[_0xfeb34c(0x227)](),'cursors':[..._0x172595[_0xfeb34c(0x113)]()][_0xfeb34c(0x1e7)](_0x279a04=>({..._0x279a04,'color':this[_0xfeb34c(0x190)]['getColorFromTheme'](_0x279a04[_0xfeb34c(0x17d)])}))})))[_0xfeb34c(0x1a1)](_0x3a33d2=>{const _0x4e56c8=_0xfeb34c;if(this[_0x4e56c8(0x65)](),_0x3a33d2){const {skeleton:_0xa25ace,cursors:_0x267592}=_0x3a33d2;this[_0x4e56c8(0x187)](_0xa25ace,_0x267592);}})),this[_0xfeb34c(0x251)](),this[_0xfeb34c(0x145)]();}[_0x40b53b(0x187)](_0x446f9c,_0x3d1386){const _0x9e3fcb=_0x40b53b,{scene:_0x3ac073,mainComponent:_0x5dcdf2}=this[_0x9e3fcb(0x185)],_0xd751ec=_0x3d1386[_0x9e3fcb(0x12b)](_0x1533b8=>new De(_0x1533b8,_0x3ac073,_0x446f9c,_0x5dcdf2));this[_0x9e3fcb(0x16e)]=_0xd751ec,this[_0x9e3fcb(0x1cb)]=_0x3d1386;}[_0x40b53b(0x16d)](){const _0xb51da0=_0x40b53b;this[_0xb51da0(0x65)]();const {scene:_0x46c1b5,mainComponent:_0x11e245}=this['_context'],_0x5eba6b=this[_0xb51da0(0x253)]['getSkeleton'](),_0x6a2919=this[_0xb51da0(0x1cb)][_0xb51da0(0x12b)](_0x5001c5=>new De(_0x5001c5,_0x46c1b5,_0x5eba6b,_0x11e245));this['_cursorShapes']=_0x6a2919;}[_0x40b53b(0x65)](){const _0x270326=_0x40b53b;this[_0x270326(0x16e)][_0x270326(0x7d)](_0x41df06=>_0x41df06[_0x270326(0x234)]()),this['_cursorShapes']=[];}[_0x40b53b(0x145)](){const _0x3548c5=_0x40b53b,_0x50f7b5=[b[_0x3548c5(0xc9)]['id']];this[_0x3548c5(0x21a)](this[_0x3548c5(0x241)][_0x3548c5(0x14a)](_0x32d4e5=>{const _0x2937da=_0x3548c5;_0x50f7b5[_0x2937da(0xf7)](_0x32d4e5['id'])&&_0x32d4e5[_0x2937da(0x2d1)][_0x2937da(0x245)]===this['_context']['unitId']&&this[_0x2937da(0x16d)]();}));}[_0x40b53b(0x251)](){const _0x5e6dc8=_0x40b53b;this[_0x5e6dc8(0x21a)](a['fromEventSubject'](this[_0x5e6dc8(0x185)][_0x5e6dc8(0xbe)][_0x5e6dc8(0x9b)])['pipe']($[_0x5e6dc8(0x1ba)](_0xef7011=>_0xef7011[_0x5e6dc8(0x118)]===p[_0x5e6dc8(0x2bd)][_0x5e6dc8(0x24b)]),$[_0x5e6dc8(0xb0)](0x10))[_0x5e6dc8(0x1a1)](()=>{const _0xc39dae=_0x5e6dc8;this[_0xc39dae(0x16d)]();}));}};Ie=vt([W(0x1,a[_0x40b53b(0x163)](Y[_0x40b53b(0x148)])),W(0x2,a[_0x40b53b(0x163)](x)),W(0x3,a[_0x40b53b(0x287)]),W(0x4,a[_0x40b53b(0x163)](a[_0x40b53b(0xfc)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x40b53b(0x151)]{constructor(_0x1b64d8,_0x4beb01){const _0x4e2d49=_0x40b53b;super(_0x1b64d8,_0x4beb01),h(this,'_color'),h(this,_0x4e2d49(0x21e),!0x1),h(this,_0x4e2d49(0x12a)),h(this,_0x4e2d49(0x11d),''),h(this,_0x4e2d49(0xa6),'top'),h(this,_0x4e2d49(0x136)),(_0x4beb01&&this[_0x4e2d49(0x299)](_0x4beb01),this[_0x4e2d49(0x98)][_0x4e2d49(0x1cf)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4e2d49(0xe9)][_0x4e2d49(0x1cf)](()=>this[_0x4e2d49(0x299)]({'hovered':!0x1})));}[_0x40b53b(0x299)](_0x294e8c){const _0x316c5e=_0x40b53b;var _0x1cb509,_0x915f0c,_0x19bef3,_0xc5de15,_0x344ac3,_0x2a01a5;this['_color']=(_0x1cb509=_0x294e8c[_0x316c5e(0x17d)])!=null?_0x1cb509:this['_color'],this[_0x316c5e(0x21e)]=(_0x915f0c=_0x294e8c[_0x316c5e(0x294)])!=null?_0x915f0c:this[_0x316c5e(0x21e)],this[_0x316c5e(0x12a)]=(_0x19bef3=_0x294e8c[_0x316c5e(0xb4)])!=null?_0x19bef3:this['_range'],this[_0x316c5e(0x11d)]=(_0xc5de15=_0x294e8c[_0x316c5e(0x7a)])!=null?_0xc5de15:this['_name'],this['_labelPosition']=(_0x344ac3=_0x294e8c[_0x316c5e(0x13d)])!=null?_0x344ac3:this[_0x316c5e(0xa6)],this[_0x316c5e(0x136)]=(_0x2a01a5=_0x294e8c[_0x316c5e(0x193)])!=null?_0x2a01a5:this[_0x316c5e(0x136)],this['transformByState']({'width':_0x294e8c['width'],'height':_0x294e8c[_0x316c5e(0x281)]});}[_0x40b53b(0x162)](_0x1ac1a7){const _0x2fd17e=_0x40b53b,{row:_0x133180,column:_0x469663}=_0x1ac1a7;if(_0x133180>=this['_range'][_0x2fd17e(0x22e)]&&_0x133180<=this[_0x2fd17e(0x12a)][_0x2fd17e(0x2e8)]&&_0x469663>=this[_0x2fd17e(0x12a)][_0x2fd17e(0x2ca)]&&_0x469663<=this[_0x2fd17e(0x12a)]['endColumn']){this[_0x2fd17e(0x299)]({'hovered':!0x0});return;}this[_0x2fd17e(0x299)]({'hovered':!0x1});}['triggerDblclick'](_0xe044d5){return!0x1;}[_0x40b53b(0x1c7)](_0x2450d1){const _0x208580=_0x40b53b;p[_0x208580(0x1ca)]['drawWith'](_0x2450d1,{'width':this['width'],'height':this[_0x208580(0x281)],'strokeWidth':mt,'stroke':this[_0x208580(0x83)],'evented':!0x1,'fill':this[_0x208580(0x136)]}),this['_hovered']&&(_0x2450d1[_0x208580(0x225)](),_0x2450d1[_0x208580(0x223)](0x1,0x0,0x0,0x1,this[_0x208580(0x265)],this['_labelPosition']===_0x208580(0x15d)?0x0:-0x14),ee[_0x208580(0x1ec)](_0x2450d1,{'text':this[_0x208580(0x11d)],'color':this['_color']}),_0x2450d1[_0x208580(0x2b9)]());}}var Ct=Object[_0x40b53b(0x107)],pt=(_0x1e668f,_0x558623,_0xffa73f,_0x296d94)=>{const _0x385465=_0x40b53b;for(var _0x247f98=_0x296d94>0x1?void 0x0:_0x296d94?Ct(_0x558623,_0xffa73f):_0x558623,_0x7bb3b4=_0x1e668f[_0x385465(0x90)]-0x1,_0x4a0a20;_0x7bb3b4>=0x0;_0x7bb3b4--)(_0x4a0a20=_0x1e668f[_0x7bb3b4])&&(_0x247f98=_0x4a0a20(_0x247f98)||_0x247f98);return _0x247f98;},ae=(_0x482e4a,_0x1bf1e0)=>(_0x5cc545,_0x596427)=>_0x1bf1e0(_0x5cc545,_0x596427,_0x482e4a);const bt=0x1389;let ve=class extends a[_0x40b53b(0x2dd)]{constructor(_0x1898c5,_0x1773db,_0x198c7f,_0x1162e3){const _0x1ca2f1=_0x40b53b;super(),h(this,_0x1ca2f1(0x1cb),new Set()),h(this,_0x1ca2f1(0x273),null),(this[_0x1ca2f1(0x185)]=_0x1898c5,this[_0x1ca2f1(0x237)]=_0x1773db,this[_0x1ca2f1(0x2c9)]=_0x198c7f,this['_themeService']=_0x1162e3,this[_0x1ca2f1(0xa0)]());}[_0x40b53b(0xa0)](){const _0x1b9500=_0x40b53b;this[_0x1b9500(0x237)][_0x1b9500(0x8d)]['pipe']($[_0x1b9500(0x158)](this[_0x1b9500(0x1b0)]),$['switchMap'](_0x54a5a6=>{const _0x4dfc79=_0x1b9500;if(_0x54a5a6){const _0x418187=_0x54a5a6[_0x4dfc79(0xe1)];return d['combineLatest'](this['_collabCursorController'][_0x4dfc79(0x20b)](this['_context'][_0x4dfc79(0x245)]),this[_0x4dfc79(0x190)]['currentTheme$'])[_0x4dfc79(0x1d5)]($[_0x4dfc79(0x12b)](([_0x29dd15,_0x4a8c03])=>{const _0x270ed3=_0x4dfc79,_0x586213=new Map();return _0x29dd15[_0x270ed3(0x7d)]((_0x39d549,_0x3fc95d)=>{const _0x1fef48=_0x270ed3;if(_0x39d549['sheetID']===_0x418187){const _0x44a63a={..._0x39d549};_0x44a63a[_0x1fef48(0x17d)]=this[_0x1fef48(0x190)]['getColorFromTheme'](_0x39d549[_0x1fef48(0x17d)]),_0x586213['set'](_0x3fc95d,_0x44a63a);}}),{'skeleton':_0x54a5a6,'cursors':_0x586213};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1b9500(0x1a1)](({skeleton:_0x2c28e7,cursors:_0x212d5a})=>{const _0x369340=_0x1b9500;this['_removeCollabCursors'](),_0x2c28e7&&this[_0x369340(0x187)](_0x2c28e7,_0x212d5a);}),this[_0x1b9500(0x237)][_0x1b9500(0x8d)][_0x1b9500(0x1a1)](_0x5eaf97=>{const _0xb09dc2=_0x1b9500;if(_0x5eaf97==null)return;const {skeleton:_0x39900d}=_0x5eaf97,{scene:_0x22ecef}=this['_context'];_0x22ecef['onPointerMove$']['subscribeEvent'](a[_0xb09dc2(0x8e)](_0x1e0e05=>{const _0x2e3cee=_0xb09dc2;var _0x2e3adb,_0xda97dd;const {offsetX:_0x4fe248,offsetY:_0x449c27}=_0x1e0e05,{x:_0xcc30ad,y:_0x1da80a}=_0x22ecef['getRelativeToViewportCoord'](p['Vector2'][_0x2e3cee(0x2e5)]([_0x4fe248,_0x449c27])),{scaleX:_0x55a3f6,scaleY:_0x5e83b8}=_0x22ecef[_0x2e3cee(0x2dc)](),_0x2e68c0=_0x22ecef[_0x2e3cee(0x26a)](p[_0x2e3cee(0x7c)]['VIEW_MAIN']),_0x188f0f=_0x22ecef['getVpScrollXYInfoByPosToVp'](p[_0x2e3cee(0xb3)][_0x2e3cee(0x2e5)]([_0xcc30ad,_0x1da80a]),_0x2e68c0),_0x2a498d=_0x39900d['getCellPositionByOffset'](_0x4fe248,_0x449c27,_0x55a3f6,_0x5e83b8,_0x188f0f);((_0x2e3adb=this['_lastPointer'])==null?void 0x0:_0x2e3adb[_0x2e3cee(0x102)])===_0x2a498d['column']&&((_0xda97dd=this[_0x2e3cee(0x273)])==null?void 0x0:_0xda97dd[_0x2e3cee(0x2a6)])===_0x2a498d[_0x2e3cee(0x2a6)]||this['_cursors']['forEach'](_0x2c4420=>{_0x2c4420['onMouseMove'](_0x2a498d);});},0x64));});}[_0x40b53b(0x187)](_0x2e853f,_0x254625){const _0xd86bc9=_0x40b53b;var _0x5b7170;const _0x95c07=(_0x5b7170=this[_0xd86bc9(0x237)][_0xd86bc9(0x155)]())==null?void 0x0:_0x5b7170[_0xd86bc9(0x16f)];if(!_0x95c07)return;const _0x115764=this['_getSheetObject']();if(!_0x115764)return;this[_0xd86bc9(0x1cb)][_0xd86bc9(0x7d)](_0x48f2e5=>{const _0xfc4acf=_0xd86bc9;_0x48f2e5[_0xfc4acf(0x13a)]();});const {scene:_0x3a17ef}=_0x115764,_0x27d007=Et(Array[_0xd86bc9(0x201)](_0x254625[_0xd86bc9(0x113)]()))[_0xd86bc9(0x12b)](_0x46b661=>{const _0x5c88b9=_0xd86bc9,{color:_0x545286,range:_0x79470c,name:_0x28839e,selection:_0x4cbf64,sheetID:_0x7379b7}=_0x46b661,{startColumn:_0x30c824,startRow:_0x5f4ab3,endColumn:_0x319ce5,endRow:_0x234821}=_0x79470c,_0x24ea57=X[_0x5c88b9(0xe2)](_0x5f4ab3,_0x30c824,_0x3a17ef,_0x95c07),_0x1414f0=X[_0x5c88b9(0xe2)](_0x234821,_0x319ce5,_0x3a17ef,_0x95c07),{columnHeaderHeightAndMarginTop:_0x5f09c1}=_0x95c07,{startX:_0x43af3,startY:_0x4fff54}=_0x24ea57,{endX:_0x45f7d3,endY:_0x10e60e}=_0x1414f0,_0x4aba11=_0x45f7d3-_0x43af3,_0x3ddc57=_0x10e60e-_0x4fff54,_0x58b64c={'labelPosition':_0x4fff54-_0x5f09c1>=K?'top':_0x5c88b9(0x15d),'sheetID':_0x7379b7,'range':_0x79470c,'color':_0x545286,'name':_0x28839e,'selection':_0x4cbf64,'left':_0x43af3,'top':_0x4fff54,'width':_0x4aba11,'height':_0x3ddc57,'evented':!0x1,'zIndex':bt};return new Ae(_0x28839e,_0x58b64c);});_0x3a17ef['addObjects'](_0x27d007,gt),this[_0xd86bc9(0x1cb)]=new Set(_0x27d007);}[_0x40b53b(0x65)](){const _0x564303=_0x40b53b;var _0x3e7916;(_0x3e7916=this['_cursors'])==null||_0x3e7916[_0x564303(0x7d)](_0x104fd4=>_0x104fd4[_0x564303(0x234)]());}[_0x40b53b(0x15c)](){const _0x27c6d0=_0x40b53b;return X[_0x27c6d0(0x18b)](this['_context'][_0x27c6d0(0x1ef)],this[_0x27c6d0(0x185)]);}};ve=pt([ae(0x1,a[_0x40b53b(0x163)](X[_0x40b53b(0x1de)])),ae(0x2,a[_0x40b53b(0x163)](x)),ae(0x3,a[_0x40b53b(0x163)](a['ThemeService']))],ve);function Et(_0x2d9794){const _0x3eff70=_0x40b53b,_0xfcdd14=new Map();return _0x2d9794[_0x3eff70(0x7d)](_0x3011a5=>{const _0x4e6a22=_0x3eff70;if(_0xfcdd14[_0x4e6a22(0xe6)](_0x3011a5[_0x4e6a22(0x13f)])){const _0x5bdd3d=_0xfcdd14[_0x4e6a22(0x2ee)](_0x3011a5[_0x4e6a22(0x13f)]);_0x5bdd3d[_0x4e6a22(0x7a)]+=',\x20'+_0x3011a5['name'];}else _0xfcdd14['set'](_0x3011a5['selection'],_0x3011a5);}),Array[_0x3eff70(0x201)](_0xfcdd14[_0x3eff70(0x113)]());}var E=function(){const _0x4fdbfb=_0x40b53b;return E=Object[_0x4fdbfb(0x1e0)]||function(_0x5847df){const _0x248924=_0x4fdbfb;for(var _0x38da95,_0x3c2d85=0x1,_0x2976c3=arguments['length'];_0x3c2d85<_0x2976c3;_0x3c2d85++){_0x38da95=arguments[_0x3c2d85];for(var _0x3ac099 in _0x38da95)Object[_0x248924(0x79)][_0x248924(0x9d)][_0x248924(0x1a6)](_0x38da95,_0x3ac099)&&(_0x5847df[_0x3ac099]=_0x38da95[_0x3ac099]);}return _0x5847df;},E[_0x4fdbfb(0xed)](this,arguments);},Tt=function(_0x534aa6,_0x48ede3){const _0x46ae32=_0x40b53b;var _0x37c6ae={};for(var _0x85749 in _0x534aa6)Object['prototype'][_0x46ae32(0x9d)]['call'](_0x534aa6,_0x85749)&&_0x48ede3[_0x46ae32(0x2a4)](_0x85749)<0x0&&(_0x37c6ae[_0x85749]=_0x534aa6[_0x85749]);if(_0x534aa6!=null&&typeof Object[_0x46ae32(0x2d7)]==_0x46ae32(0x23f)){for(var _0x3f1d69=0x0,_0x85749=Object[_0x46ae32(0x2d7)](_0x534aa6);_0x3f1d69<_0x85749['length'];_0x3f1d69++)_0x48ede3[_0x46ae32(0x2a4)](_0x85749[_0x3f1d69])<0x0&&Object[_0x46ae32(0x79)][_0x46ae32(0x288)][_0x46ae32(0x1a6)](_0x534aa6,_0x85749[_0x3f1d69])&&(_0x37c6ae[_0x85749[_0x3f1d69]]=_0x534aa6[_0x85749[_0x3f1d69]]);}return _0x37c6ae;},pe=M['forwardRef'](function(_0x5f18e0,_0x41fa48){const _0x5dd53c=_0x40b53b;var _0x50bbbf=_0x5f18e0[_0x5dd53c(0xc5)],_0x29f74a=_0x5f18e0['id'],_0x161aa1=_0x5f18e0['className'],_0x2dce79=_0x5f18e0[_0x5dd53c(0x161)],_0x5a3e4d=Tt(_0x5f18e0,[_0x5dd53c(0xc5),'id',_0x5dd53c(0x86),_0x5dd53c(0x161)]),_0x25943e=_0x5dd53c(0xe4)[_0x5dd53c(0x285)](_0x29f74a,'\x20')['concat'](_0x161aa1||'')['trim'](),_0x1e5028=M['useRef']('_'['concat'](Dt()));return we(_0x50bbbf,''['concat'](_0x29f74a),{'defIds':_0x50bbbf['defIds'],'idSuffix':_0x1e5028[_0x5dd53c(0x94)]},E({'ref':_0x41fa48,'className':_0x25943e},_0x5a3e4d),_0x2dce79);});function we(_0x1b9e55,_0x38f045,_0x388e59,_0x425c5e,_0x1615ae){const _0x3a7ec6=_0x40b53b;return M[_0x3a7ec6(0x1ea)](_0x1b9e55[_0x3a7ec6(0x105)],E(E({'key':_0x38f045},Ot(_0x1b9e55,_0x388e59,_0x1615ae)),_0x425c5e),(Rt(_0x1b9e55,_0x388e59)[_0x3a7ec6(0xeb)]||[])[_0x3a7ec6(0x12b)](function(_0x1c1cba,_0x1c5738){const _0xc24a18=_0x3a7ec6;return we(_0x1c1cba,''[_0xc24a18(0x285)](_0x38f045,'-')[_0xc24a18(0x285)](_0x1b9e55[_0xc24a18(0x105)],'-')[_0xc24a18(0x285)](_0x1c5738),_0x388e59,void 0x0,_0x1615ae);}));}function Ot(_0x480488,_0x4b3995,_0x17735b){const _0x5a5c03=_0x40b53b;var _0x2a5696=E({},_0x480488['attrs']);_0x17735b!=null&&_0x17735b['colorChannel1']&&_0x2a5696[_0x5a5c03(0x1c1)]==='colorChannel1'&&(_0x2a5696[_0x5a5c03(0x1c1)]=_0x17735b[_0x5a5c03(0x20d)]),_0x480488['tag']===_0x5a5c03(0xf8)&&_0x2a5696['id']&&(_0x2a5696['id']=_0x2a5696['id']+_0x4b3995[_0x5a5c03(0x140)]),Object[_0x5a5c03(0x9c)](_0x2a5696)[_0x5a5c03(0x7d)](function(_0x49205c){const _0x426fa2=_0x5a5c03;var _0x1327b2=_0x49205c[0x0],_0x21be08=_0x49205c[0x1];_0x1327b2===_0x426fa2(0xf8)&&typeof _0x21be08=='string'&&(_0x2a5696[_0x1327b2]=_0x21be08['replace'](/url\(#(.*)\)/,_0x426fa2(0x10e)[_0x426fa2(0x285)](_0x4b3995[_0x426fa2(0x140)],')')));});var _0x1418e0=_0x4b3995[_0x5a5c03(0x1ff)];return!_0x1418e0||_0x1418e0[_0x5a5c03(0x90)]===0x0||(_0x480488[_0x5a5c03(0x105)]===_0x5a5c03(0xa4)&&_0x2a5696[_0x5a5c03(0x296)]&&(_0x2a5696[_0x5a5c03(0x296)]=_0x2a5696['xlink:href']+_0x4b3995[_0x5a5c03(0x140)]),Object['entries'](_0x2a5696)[_0x5a5c03(0x7d)](function(_0x3ea73a){const _0x421382=_0x5a5c03;var _0x5837ec=_0x3ea73a[0x0],_0x290f96=_0x3ea73a[0x1];typeof _0x290f96==_0x421382(0x208)&&(_0x2a5696[_0x5837ec]=_0x290f96[_0x421382(0x204)](/url\(#(.*)\)/,_0x421382(0x10e)[_0x421382(0x285)](_0x4b3995['idSuffix'],')')));})),_0x2a5696;}function Rt(_0x295d00,_0xea25d3){const _0x3ac8dc=_0x40b53b;var _0xf8310d,_0x27eb08=_0xea25d3[_0x3ac8dc(0x1ff)];return!_0x27eb08||_0x27eb08['length']===0x0?_0x295d00:_0x295d00[_0x3ac8dc(0x105)]===_0x3ac8dc(0x28a)&&(!((_0xf8310d=_0x295d00[_0x3ac8dc(0xeb)])===null||_0xf8310d===void 0x0)&&_0xf8310d[_0x3ac8dc(0x90)])?E(E({},_0x295d00),{'children':_0x295d00[_0x3ac8dc(0xeb)][_0x3ac8dc(0x12b)](function(_0x533924){const _0x3ec4b2=_0x3ac8dc;return typeof _0x533924['attrs']['id']==_0x3ec4b2(0x208)&&_0x27eb08&&_0x27eb08[_0x3ec4b2(0x2a4)](_0x533924[_0x3ec4b2(0x149)]['id'])>-0x1?E(E({},_0x533924),{'attrs':E(E({},_0x533924[_0x3ec4b2(0x149)]),{'id':_0x533924[_0x3ec4b2(0x149)]['id']+_0xea25d3[_0x3ec4b2(0x140)]})}):_0x533924;})}):_0x295d00;}function Dt(){const _0x145548=_0x40b53b;return Math[_0x145548(0x28b)]()['toString'](0x24)[_0x145548(0x2e9)](0x2,0x8);}pe[_0x40b53b(0x2b2)]=_0x40b53b(0x255);var Ut={'tag':_0x40b53b(0x173),'attrs':{'fill':_0x40b53b(0x176),'viewBox':_0x40b53b(0x1f4),'width':_0x40b53b(0x6b),'height':_0x40b53b(0x6b)},'children':[{'tag':'g','attrs':{'clipPath':_0x40b53b(0xc1)},'children':[{'tag':_0x40b53b(0x2ed),'attrs':{'stroke':'currentColor','d':_0x40b53b(0x7b),'strokeLinecap':_0x40b53b(0x18d),'strokeLinejoin':_0x40b53b(0x18d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x40b53b(0x156),'attrs':{'id':_0x40b53b(0x1d8)},'children':[{'tag':_0x40b53b(0x2ed),'attrs':{'fill':_0x40b53b(0x182),'d':_0x40b53b(0x2d4)}}]}]}],'defIds':[_0x40b53b(0x1d8)]},ye=M[_0x40b53b(0x2a1)](function(_0x9f3a01,_0xc61924){const _0x115097=_0x40b53b;return M['createElement'](pe,Object['assign']({},_0x9f3a01,{'id':_0x115097(0x95),'ref':_0xc61924,'icon':Ut}));});ye[_0x40b53b(0x2b2)]=_0x40b53b(0x2b1);var Nt={'tag':'svg','attrs':{'fill':_0x40b53b(0x176),'viewBox':_0x40b53b(0x19b),'width':_0x40b53b(0x6b),'height':_0x40b53b(0x6b)},'children':[{'tag':'g','attrs':{'clipPath':_0x40b53b(0x290)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x40b53b(0x10d),'strokeLinecap':_0x40b53b(0x18d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x40b53b(0x28a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x40b53b(0x69)},'children':[{'tag':'path','attrs':{'fill':_0x40b53b(0x182),'d':_0x40b53b(0x2d4),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M['forwardRef'](function(_0x27f8de,_0x2bc480){const _0x4346c5=_0x40b53b;return M[_0x4346c5(0x1ea)](pe,Object['assign']({},_0x27f8de,{'id':'on-line-single','ref':_0x2bc480,'icon':Nt}));});$e[_0x40b53b(0x2b2)]=_0x40b53b(0x2b7);function Mt(_0x326b65){const _0x237bc1=_0x40b53b;switch(_0x326b65){case u['CollaborationStatus'][_0x237bc1(0x2e7)]:return _0x237bc1(0x259);case u[_0x237bc1(0x211)][_0x237bc1(0xa8)]:return _0x237bc1(0x135);case u[_0x237bc1(0x211)][_0x237bc1(0x2ce)]:return _0x237bc1(0x153);case u[_0x237bc1(0x211)][_0x237bc1(0xaf)]:return'collabStatus.notCollab';case u[_0x237bc1(0x211)][_0x237bc1(0x17a)]:case u['CollaborationStatus'][_0x237bc1(0xbc)]:return _0x237bc1(0x101);case u[_0x237bc1(0x211)][_0x237bc1(0x2df)]:case u[_0x237bc1(0x211)][_0x237bc1(0x18f)]:return _0x237bc1(0xc2);}}function xe(_0x428b12){const _0x56f7d5=_0x40b53b,{status$:_0x23806c}=_0x428b12,_0x2730b2=T[_0x56f7d5(0x14f)](_0x23806c,u[_0x56f7d5(0x211)][_0x56f7d5(0xaf)]),_0xcdff3b=T['useDependency'](a[_0x56f7d5(0x247)]),_0x1b423c=T['useDependency'](u[_0x56f7d5(0x28e)]),_0x4cf956=_0x2730b2!==u[_0x56f7d5(0x211)][_0x56f7d5(0x2e7)],_0x45c12d=_0xcdff3b['t'](Mt(_0x2730b2)),_0x4ec49e=_0x4cf956?P[_0x56f7d5(0x1d0)]($e,{}):P[_0x56f7d5(0x1d0)](ye,{}),_0x5e00c5=M[_0x56f7d5(0x2ec)](()=>{_0x4cf956||_0x1b423c['reconnect']();},[_0x4cf956,_0x1b423c]);function _0x43bb04(){const _0x1f45ba=_0x56f7d5;return P[_0x1f45ba(0x260)]('div',{'className':_0x1f45ba(0xdc),'onClick':_0x5e00c5,'children':[P[_0x1f45ba(0x1d0)](_0x1f45ba(0x1a4),{'className':D[_0x1f45ba(0x85)](_0x1f45ba(0x1fd),{'univer-text-green-500':_0x4cf956,'univer-text-red-500':!_0x4cf956}),'children':_0x4ec49e}),P[_0x1f45ba(0x1d0)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x45c12d})]});}return _0x4cf956?_0x43bb04():P['jsx'](D[_0x56f7d5(0x219)],{'title':_0xcdff3b['t'](_0x56f7d5(0x23b)),'children':_0x43bb04()});}var Lt=Object[_0x40b53b(0x107)],Pt=(_0x1d09ba,_0x11a614,_0x21c9e3,_0x1ef9d0)=>{const _0x2fd53e=_0x40b53b;for(var _0x5d3d78=_0x1ef9d0>0x1?void 0x0:_0x1ef9d0?Lt(_0x11a614,_0x21c9e3):_0x11a614,_0x5ed7b8=_0x1d09ba[_0x2fd53e(0x90)]-0x1,_0x56bece;_0x5ed7b8>=0x0;_0x5ed7b8--)(_0x56bece=_0x1d09ba[_0x5ed7b8])&&(_0x5d3d78=_0x56bece(_0x5d3d78)||_0x5d3d78);return _0x5d3d78;},V=(_0x588940,_0x262464)=>(_0x3df204,_0x326cb1)=>_0x262464(_0x3df204,_0x326cb1,_0x588940);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x40b53b(0x174)]{constructor(_0x4af253,_0x1caa89,_0x45d938,_0x30dec2){const _0x241da0=_0x40b53b;super(),h(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus']['NOT_COLLAB'])),(this['_univerInstanceService']=_0x4af253,this['_injector']=_0x1caa89,this[_0x241da0(0x271)]=_0x45d938,this[_0x241da0(0x1f7)]=_0x30dec2,this[_0x241da0(0x114)](),this[_0x241da0(0x1ce)]());}['_initStatusListener'](){const _0x14f3ae=_0x40b53b;this['disposeWithMe'](this[_0x14f3ae(0x11b)][_0x14f3ae(0xba)]['pipe'](d[_0x14f3ae(0x291)](()=>{const _0x46b4a7=_0x14f3ae,_0x9cb319=this[_0x46b4a7(0x11b)]['getFocusedUnit']();return _0x9cb319?this[_0x46b4a7(0x271)][_0x46b4a7(0x224)](_0x9cb319[_0x46b4a7(0x134)]()):d['of'](null);}),d['switchMap'](_0x38fd9b=>_0x38fd9b?_0x38fd9b[_0x14f3ae(0x1b4)]:d['of'](u[_0x14f3ae(0x211)][_0x14f3ae(0xaf)])))[_0x14f3ae(0x1a1)](_0x2bfa7b=>{const _0x101fd6=_0x14f3ae;this['_status$'][_0x101fd6(0x15b)](_0x2bfa7b);}));}[_0x40b53b(0x114)](){const _0x143bad=_0x40b53b;this['disposeWithMe'](this[_0x143bad(0x1f7)][_0x143bad(0x21c)](T[_0x143bad(0x231)][_0x143bad(0x242)],()=>T[_0x143bad(0x17b)](At({'status$':this[_0x143bad(0x165)]['asObservable']()}),this[_0x143bad(0x2ef)])));}},exports[_0x40b53b(0x28d)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x40b53b(0x163)](a['Injector'])),V(0x2,a[_0x40b53b(0x163)](u[_0x40b53b(0xb5)])),V(0x3,T[_0x40b53b(0x1bd)])],exports[_0x40b53b(0x28d)]);function At(_0x425429){const {status$:_0x234960}=_0x425429;return function(){const _0x653664=_0x1c95;return P[_0x653664(0x1d0)](xe,{'status$':_0x234960});};}var wt=Object[_0x40b53b(0x107)],yt=(_0x522653,_0xaa6ecd,_0x5c2dcb,_0x577638)=>{const _0x336235=_0x40b53b;for(var _0x492fe2=_0x577638>0x1?void 0x0:_0x577638?wt(_0xaa6ecd,_0x5c2dcb):_0xaa6ecd,_0x13371d=_0x522653[_0x336235(0x90)]-0x1,_0x4fdbc6;_0x13371d>=0x0;_0x13371d--)(_0x4fdbc6=_0x522653[_0x13371d])&&(_0x492fe2=_0x4fdbc6(_0x492fe2)||_0x492fe2);return _0x492fe2;},y=(_0x2a7329,_0xa707d4)=>(_0x1ca185,_0x3d1e6f)=>_0xa707d4(_0x1ca185,_0x3d1e6f,_0x2a7329);let q=class extends a[_0x40b53b(0x174)]{constructor(_0x38b5cc,_0x16f3bc,_0xc8366f,_0x19c5c3,_0x442701,_0x5bb64e){const _0x340463=_0x40b53b;super(),this[_0x340463(0x2bc)]=_0x38b5cc,this['_localCacheService']=_0x16f3bc,this[_0x340463(0x2d5)]=_0xc8366f,this['_messageService']=_0x19c5c3,this[_0x340463(0x23d)]=_0x442701,this[_0x340463(0x144)]=_0x5bb64e,this[_0x340463(0x23e)](),this['_initEvent']();}[_0x40b53b(0x23e)](){const _0x59999a=_0x40b53b;this['disposeWithMe'](this[_0x59999a(0x2bc)][_0x59999a(0x18e)](()=>{const _0x1f8d1d=_0x59999a;if(this[_0x1f8d1d(0x92)]['saveTaskMap'][_0x1f8d1d(0x115)])return this[_0x1f8d1d(0x144)]['t'](_0x1f8d1d(0x139));}));}[_0x40b53b(0x181)](){const _0x12ebf6=_0x40b53b;this[_0x12ebf6(0x21a)](this[_0x12ebf6(0x2d5)]['event$']['subscribe'](_0x10b235=>{const _0x22f2a2=_0x12ebf6;_0x10b235['id']===u[_0x22f2a2(0xcd)][_0x22f2a2(0x1da)]&&this[_0x22f2a2(0x1ad)][_0x22f2a2(0x27c)]({'type':D[_0x22f2a2(0xb6)]['Warning'],'content':this[_0x22f2a2(0x144)]['t'](_0x22f2a2(0x127))}),_0x10b235['id']===u[_0x22f2a2(0xcd)][_0x22f2a2(0x172)]&&this[_0x22f2a2(0x1ad)][_0x22f2a2(0x27c)]({'type':D[_0x22f2a2(0xb6)][_0x22f2a2(0x1f8)],'content':this[_0x22f2a2(0x144)]['t'](_0x22f2a2(0x99))}),_0x10b235['id']===u['CollaborationUIEventId'][_0x22f2a2(0x28f)]&&this['_notificationService'][_0x22f2a2(0x27c)]({'title':this[_0x22f2a2(0x144)]['t'](_0x22f2a2(0x133)),'content':this[_0x22f2a2(0x144)]['t']('permission.content'),'type':_0x22f2a2(0x25c),'duration':0x0}),_0x10b235['id']===u[_0x22f2a2(0xcd)][_0x22f2a2(0xa8)]&&this[_0x22f2a2(0x1ad)]['show']({'type':D[_0x22f2a2(0xb6)][_0x22f2a2(0x26b)],'content':this[_0x22f2a2(0x144)]['t'](_0x22f2a2(0x99))+'('+_0x10b235[_0x22f2a2(0x226)]+')'}),_0x10b235['id']===u['CollaborationUIEventId'][_0x22f2a2(0xfd)]&&this['_messageService']['show']({'type':D[_0x22f2a2(0xb6)]['Warning'],'content':this[_0x22f2a2(0x144)]['t'](_0x10b235[_0x22f2a2(0x226)]||'')}),_0x10b235['id']===u['CollaborationUIEventId'][_0x22f2a2(0x17c)]&&this['_messageService']['show']({'type':D[_0x22f2a2(0xb6)][_0x22f2a2(0x1f8)],'content':this[_0x22f2a2(0x144)]['t'](_0x22f2a2(0x72))}),_0x10b235['id']===u[_0x22f2a2(0xcd)][_0x22f2a2(0x159)]&&this[_0x22f2a2(0x1ad)][_0x22f2a2(0x27c)]({'type':D[_0x22f2a2(0xb6)][_0x22f2a2(0x26b)],'content':this['_localeService']['t'](_0x22f2a2(0x2c5))}),_0x10b235['id']===u[_0x22f2a2(0xcd)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x22f2a2(0x1ad)][_0x22f2a2(0x27c)]({'type':D[_0x22f2a2(0xb6)][_0x22f2a2(0x26b)],'content':this[_0x22f2a2(0x144)]['t'](_0x22f2a2(0xaa))});}));}};q=yt([y(0x0,T[_0x40b53b(0x1b7)]),y(0x1,u[_0x40b53b(0x6a)]),y(0x2,a[_0x40b53b(0x163)](u[_0x40b53b(0x2c4)])),y(0x3,T[_0x40b53b(0xc3)]),y(0x4,T[_0x40b53b(0x1bf)]),y(0x5,a[_0x40b53b(0x163)](a[_0x40b53b(0x247)]))],q);const $t=_0x40b53b(0xc7),Ue={},be=a[_0x40b53b(0x138)](_0x40b53b(0x250));var xt=Object[_0x40b53b(0x107)],jt=(_0x32c7fa,_0x5b062e,_0x6dda4e,_0xb19e53)=>{const _0x3477fe=_0x40b53b;for(var _0x320649=_0xb19e53>0x1?void 0x0:_0xb19e53?xt(_0x5b062e,_0x6dda4e):_0x5b062e,_0x5bb310=_0x32c7fa[_0x3477fe(0x90)]-0x1,_0x378183;_0x5bb310>=0x0;_0x5bb310--)(_0x378183=_0x32c7fa[_0x5bb310])&&(_0x320649=_0x378183(_0x320649)||_0x320649);return _0x320649;},H=(_0x50cc5a,_0x466dcb)=>(_0x5dc38c,_0x3fce38)=>_0x466dcb(_0x5dc38c,_0x3fce38,_0x50cc5a);exports['CollaborationDataLoaderController']=class extends a[_0x40b53b(0x2dd)]{constructor(_0x37129e,_0x33bfa0,_0x5ccc3a,_0x104ab8,_0x469498){const _0x24667a=_0x40b53b;super(),this[_0x24667a(0xd6)]=_0x37129e,this['_logService']=_0x33bfa0,this[_0x24667a(0x241)]=_0x5ccc3a,this[_0x24667a(0x16a)]=_0x104ab8,_0x469498?_0x469498==null||_0x469498['whenReady']()[_0x24667a(0x117)](()=>this[_0x24667a(0xa0)]()):(this[_0x24667a(0x96)][_0x24667a(0x1af)](_0x24667a(0x2a0),_0x24667a(0xbd)),this['_init']());}async['_init'](){const _0x2f992a=_0x40b53b,_0xe93300=this[_0x2f992a(0xd6)]['getParam'](_0x2f992a(0x1ef)),_0x262db5=this[_0x2f992a(0xd6)][_0x2f992a(0x14b)](_0x2f992a(0x118)),_0x484895=this[_0x2f992a(0xd6)]['getParam'](_0x2f992a(0xdd));if(!_0xe93300||!_0x262db5){this[_0x2f992a(0x96)]['debug'](_0x2f992a(0x2a0),_0x2f992a(0x1d3));return;}const _0x41dada=await this[_0x2f992a(0x16a)][_0x2f992a(0x2c7)](_0xe93300,Number(_0x262db5),_0x484895);_0x41dada&&_0x41dada instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x41dada);}async['_setupSubUnitSync'](_0x51f335){const _0x5a8805=_0x40b53b;await this[_0x5a8805(0x196)](_0x51f335),_0x51f335[_0x5a8805(0xa2)][_0x5a8805(0x1d5)](d[_0x5a8805(0x158)](this['dispose$']))[_0x5a8805(0x1a1)](_0x19c432=>{_0x19c432&&this['_updateURLWithCurrentState'](_0x19c432);}),this[_0x5a8805(0xd6)][_0x5a8805(0x2be)]['pipe'](d['takeUntil'](this['dispose$']))[_0x5a8805(0x1a1)](()=>this['_updateSubUnitFromURLParams'](_0x51f335));}[_0x40b53b(0x21d)](_0x29bcfe,_0x624827=!0x1){const _0x510c7b=_0x40b53b,_0x19f912=this['_urlService'][_0x510c7b(0x14b)](_0x510c7b(0xdd));_0x29bcfe[_0x510c7b(0x25a)]()!==_0x19f912&&this[_0x510c7b(0xd6)]['setParam'](_0x510c7b(0xdd),_0x29bcfe[_0x510c7b(0x25a)](),_0x624827);}async[_0x40b53b(0x196)](_0x4fa4cd){const _0x1f4adc=_0x40b53b;var _0xa27620;const _0x31856b=this[_0x1f4adc(0xd6)]['getParam']('subunit');if(!_0x31856b||!_0x4fa4cd['getSheetBySheetId'](_0x31856b)){const _0x38d632=_0x4fa4cd['getUnhiddenWorksheets']()[0x0],_0xbd0c63=_0x4fa4cd['getSheetBySheetId'](_0x38d632);if(!_0xbd0c63)return;this[_0x1f4adc(0x21d)](_0xbd0c63,!0x0),await this['_commandService']['executeCommand'](g[_0x1f4adc(0x2a9)]['id'],{'unitId':_0x4fa4cd[_0x1f4adc(0x134)](),'subUnitId':_0x38d632});return;}((_0xa27620=_0x4fa4cd[_0x1f4adc(0x168)]())==null?void 0x0:_0xa27620[_0x1f4adc(0x25a)]())!==_0x31856b&&await this[_0x1f4adc(0x241)]['executeCommand'](g[_0x1f4adc(0x2a9)]['id'],{'unitId':_0x4fa4cd[_0x1f4adc(0x134)](),'subUnitId':_0x31856b});}},exports[_0x40b53b(0x1ee)]=jt([H(0x0,be),H(0x1,a[_0x40b53b(0x12e)]),H(0x2,a[_0x40b53b(0x287)]),H(0x3,a['Inject'](u[_0x40b53b(0x10a)])),H(0x4,a[_0x40b53b(0xc0)](Ke[_0x40b53b(0x2c1)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x40b53b(0x107)],kt=(_0x36fd00,_0x19241d,_0x51cc46,_0x3363e9)=>{const _0x3adddb=_0x40b53b;for(var _0x1ea891=_0x3363e9>0x1?void 0x0:_0x3363e9?Bt(_0x19241d,_0x51cc46):_0x19241d,_0x457bfa=_0x36fd00[_0x3adddb(0x90)]-0x1,_0x42b894;_0x457bfa>=0x0;_0x457bfa--)(_0x42b894=_0x36fd00[_0x457bfa])&&(_0x1ea891=_0x42b894(_0x1ea891)||_0x1ea891);return _0x1ea891;},ce=(_0x2f0473,_0x16ce7c)=>(_0x107e00,_0x3dcad7)=>_0x16ce7c(_0x107e00,_0x3dcad7,_0x2f0473);let z=class{constructor(_0x23ff2f,_0x6eb7d2,_0x1eed59){const _0x2956c3=_0x40b53b;this[_0x2956c3(0x2ef)]=_0x23ff2f,this[_0x2956c3(0x2a7)]=_0x6eb7d2,this['_renderManagerService']=_0x1eed59;}[_0x40b53b(0x28c)](_0x2b02ed){const _0x1df5f2=_0x40b53b;this[_0x1df5f2(0x220)](_0x2b02ed),this[_0x1df5f2(0xa3)](_0x2b02ed);}[_0x40b53b(0x1fa)](_0x379be4){const _0x3d1904=_0x40b53b,{unitID:_0x30c6ca}=_0x379be4,_0x20caf4=this[_0x3d1904(0x2b5)][_0x3d1904(0x103)](_0x30c6ca)[_0x3d1904(0xad)](b['DocIMEInputManagerService']),{redoCache:_0x5a60f2}=_0x20caf4[_0x3d1904(0x122)]();if(_0x5a60f2['length']===0x0)return _0x379be4;let _0xbd31a8=a[_0x3d1904(0x2c3)]['deepClone'](_0x379be4[_0x3d1904(0x25d)][0x0]);for(let _0x3836ca=0x0;_0x3836ca<_0x5a60f2[_0x3d1904(0x90)];_0x3836ca++){const _0x2663fe={'id':_0x3d1904(0x16c),'params':{..._0x5a60f2[_0x3836ca]}},_0x5a569b=this[_0x3d1904(0x2a7)][_0x3d1904(0x20e)](_0xbd31a8,_0x2663fe,!0x1);if(m[_0x3d1904(0x203)](_0x5a569b))throw _0x5a569b[_0x3d1904(0x25c)];_0xbd31a8=_0x5a569b[_0x3d1904(0x2aa)];}return{...a[_0x3d1904(0x2c3)][_0x3d1904(0x284)](_0x379be4),'mutations':[_0xbd31a8]};}[_0x40b53b(0x220)](_0x2b7f96){const _0x2162a3=_0x40b53b,{unitID:_0x44c51f}=_0x2b7f96,_0x4c4f20=this['_renderManagerService'][_0x2162a3(0x103)](_0x44c51f)[_0x2162a3(0xad)](b[_0x2162a3(0x264)]),{undoCache:_0x5c3f5a,redoCache:_0x5be5e2}=_0x4c4f20[_0x2162a3(0x122)]();if(_0x5c3f5a[_0x2162a3(0x90)]===0x0||_0x5be5e2['length']===0x0)return;const _0x4550f0=[],_0x2b7c27=[];let _0x2deb47=a[_0x2162a3(0x2c3)][_0x2162a3(0x284)](_0x2b7f96[_0x2162a3(0x25d)][0x0]),_0x3f991f=a[_0x2162a3(0x2c3)][_0x2162a3(0x284)](_0x2b7f96[_0x2162a3(0x25d)][0x0]);for(let _0x56f2cd=_0x5c3f5a[_0x2162a3(0x90)]-0x1;_0x56f2cd>=0x0;_0x56f2cd--){const _0x1c6011={'id':_0x2162a3(0x16c),'params':{..._0x5c3f5a[_0x56f2cd]}},_0x4d5652={'id':_0x2162a3(0x16c),'params':{..._0x5be5e2[_0x56f2cd]}},_0x1cc1ea=this[_0x2162a3(0x2a7)][_0x2162a3(0x20e)](_0x2deb47,_0x1c6011,!0x1),_0x3a7161=this[_0x2162a3(0x2a7)][_0x2162a3(0x20e)](_0x3f991f,_0x4d5652,!0x1);if(m[_0x2162a3(0x203)](_0x1cc1ea))throw _0x1cc1ea[_0x2162a3(0x25c)];if(m[_0x2162a3(0x203)](_0x3a7161))throw _0x3a7161[_0x2162a3(0x25c)];_0x4550f0[_0x2162a3(0x19d)](_0x1cc1ea['m2Prime'][_0x2162a3(0x2d1)]),_0x2b7c27[_0x2162a3(0x19d)](_0x3a7161[_0x2162a3(0x282)][_0x2162a3(0x2d1)]),_0x2deb47=_0x1cc1ea[_0x2162a3(0x2aa)],_0x3f991f=_0x3a7161['m1Prime'];}_0x4c4f20[_0x2162a3(0x2cb)]({'undoCache':_0x4550f0,'redoCache':_0x2b7c27});}[_0x40b53b(0xa3)](_0x3899c7){const _0x72b943=_0x40b53b,{unitID:_0x4a93c9}=_0x3899c7,_0x46478e=this['_renderManagerService'][_0x72b943(0x103)](_0x4a93c9)[_0x72b943(0xad)](b[_0x72b943(0x264)]),_0x3f9221=_0x46478e['getActiveRange']();if(_0x3f9221==null)return;const _0x29269a=[{'id':_0x72b943(0x16c),'params':{'unitId':_0x3899c7['unitID'],'actions':null,'textRanges':[_0x3f9221]}}],_0x3f7fc3=this[_0x72b943(0x2a7)][_0x72b943(0x8f)](_0x3899c7,_0x29269a);if(!m[_0x72b943(0x6e)](_0x3f7fc3))throw _0x3f7fc3[_0x72b943(0x25c)];const _0x382ed6=_0x3f7fc3[_0x72b943(0x282)][0x0][_0x72b943(0x2d1)]['textRanges'];Array[_0x72b943(0x116)](_0x382ed6)&&_0x382ed6[_0x72b943(0x90)]&&_0x46478e[_0x72b943(0x1c2)](_0x382ed6[0x0]);}};z=kt([ce(0x0,a[_0x40b53b(0x163)](a[_0x40b53b(0x184)])),ce(0x1,m[_0x40b53b(0x1fc)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x40b53b(0x107)],Ft=(_0x194deb,_0x47c7f7,_0x30efa6,_0x5d9e05)=>{const _0x3d7340=_0x40b53b;for(var _0x46a584=_0x5d9e05>0x1?void 0x0:_0x5d9e05?Ht(_0x47c7f7,_0x30efa6):_0x47c7f7,_0x4884e4=_0x194deb[_0x3d7340(0x90)]-0x1,_0x21af7e;_0x4884e4>=0x0;_0x4884e4--)(_0x21af7e=_0x194deb[_0x4884e4])&&(_0x46a584=_0x21af7e(_0x46a584)||_0x46a584);return _0x46a584;},le=(_0x16ba70,_0x7dd6ea)=>(_0x1d2c29,_0x4d1cb4)=>_0x7dd6ea(_0x1d2c29,_0x4d1cb4,_0x16ba70);let J=class{constructor(_0x2e8840,_0x3a4577,_0x41bc28){const _0x3855b7=_0x40b53b;this[_0x3855b7(0x2ef)]=_0x2e8840,this[_0x3855b7(0x2a7)]=_0x3a4577,this[_0x3855b7(0x1a8)]=_0x41bc28;}[_0x40b53b(0x2b3)](_0x4bdea8){this['_transformHistoryAndStateStack'](_0x4bdea8);}[_0x40b53b(0x1fa)](_0x5572c7){const _0x1ac8c2=_0x40b53b,{unitID:_0x3d48b9}=_0x5572c7,{collaboration:_0x51c489}=this[_0x1ac8c2(0x1a8)]['getStateCache'](_0x3d48b9);if(_0x51c489['length']===0x0)return _0x5572c7;let _0x7d3042=a[_0x1ac8c2(0x2c3)][_0x1ac8c2(0x284)](_0x5572c7['mutations'][0x0]);for(let _0x4f09ab=0x0;_0x4f09ab<_0x51c489[_0x1ac8c2(0x90)];_0x4f09ab++){const _0x335aba={'id':_0x1ac8c2(0x16c),'params':{'unitId':_0x51c489[_0x4f09ab]['unitId'],..._0x51c489[_0x4f09ab][_0x1ac8c2(0x1d6)]}},_0x135657=this[_0x1ac8c2(0x2a7)]['transformMutation'](_0x7d3042,_0x335aba,!0x1);if(m[_0x1ac8c2(0x203)](_0x135657))throw _0x135657[_0x1ac8c2(0x25c)];_0x7d3042=_0x135657['m1Prime'];}return{...a[_0x1ac8c2(0x2c3)][_0x1ac8c2(0x284)](_0x5572c7),'mutations':[_0x7d3042]};}[_0x40b53b(0x268)](_0xf09156){const _0x585152=_0x40b53b,{unitID:_0x2fad59}=_0xf09156,{history:_0x343db4,collaboration:_0x3f3e4c}=this[_0x585152(0x1a8)][_0x585152(0x87)](_0x2fad59);if(_0x343db4[_0x585152(0x90)]===0x0&&_0x3f3e4c['length']===0x0)return;const _0x252234=[],_0x24e5f2=[];let _0x3a591b=a[_0x585152(0x2c3)][_0x585152(0x284)](_0xf09156[_0x585152(0x25d)][0x0]),_0x5bb4fb=a[_0x585152(0x2c3)][_0x585152(0x284)](_0xf09156['mutations'][0x0]);for(let _0x75ea41=_0x343db4[_0x585152(0x90)]-0x1;_0x75ea41>=0x0;_0x75ea41--){const _0x381af0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x343db4[_0x75ea41][_0x585152(0x245)],..._0x343db4[_0x75ea41][_0x585152(0x26e)]}},_0xeb0618={'id':_0x585152(0x16c),'params':{'unitId':_0x343db4[_0x75ea41]['unitId'],..._0x343db4[_0x75ea41][_0x585152(0x1d6)]}},_0x3d2596=this[_0x585152(0x2a7)][_0x585152(0x20e)](_0x3a591b,_0x381af0,!0x1),_0x17ede7=this[_0x585152(0x2a7)]['transformMutation'](_0x5bb4fb,_0xeb0618,!0x1);if(m['isTransformMutationFailure'](_0x3d2596))throw _0x3d2596[_0x585152(0x25c)];if(m[_0x585152(0x203)](_0x17ede7))throw _0x17ede7[_0x585152(0x25c)];_0x252234[_0x585152(0x19d)]({..._0x343db4[_0x75ea41],'undoState':_0x3d2596['m2Prime'][_0x585152(0x2d1)],'redoState':_0x17ede7['m2Prime']['params']}),_0x3a591b=_0x3d2596[_0x585152(0x2aa)],_0x5bb4fb=_0x17ede7[_0x585152(0x2aa)];}_0x3a591b=a[_0x585152(0x2c3)][_0x585152(0x284)](_0xf09156[_0x585152(0x25d)][0x0]),_0x5bb4fb=a[_0x585152(0x2c3)][_0x585152(0x284)](_0xf09156[_0x585152(0x25d)][0x0]);for(let _0x1fe3cd=_0x3f3e4c['length']-0x1;_0x1fe3cd>=0x0;_0x1fe3cd--){const _0x37001a={'id':_0x585152(0x16c),'params':{'unitId':_0x3f3e4c[_0x1fe3cd]['unitId'],..._0x3f3e4c[_0x1fe3cd][_0x585152(0x26e)]}},_0x47b7be={'id':_0x585152(0x16c),'params':{'unitId':_0x3f3e4c[_0x1fe3cd][_0x585152(0x245)],..._0x3f3e4c[_0x1fe3cd]['redoState']}},_0x578f95=this[_0x585152(0x2a7)][_0x585152(0x20e)](_0x3a591b,_0x37001a,!0x1),_0x4d3319=this[_0x585152(0x2a7)][_0x585152(0x20e)](_0x5bb4fb,_0x47b7be,!0x1);if(m[_0x585152(0x203)](_0x578f95))throw _0x578f95[_0x585152(0x25c)];if(m['isTransformMutationFailure'](_0x4d3319))throw _0x4d3319[_0x585152(0x25c)];_0x24e5f2[_0x585152(0x19d)]({..._0x3f3e4c[_0x1fe3cd],'undoState':_0x578f95[_0x585152(0x282)][_0x585152(0x2d1)],'redoState':_0x4d3319[_0x585152(0x282)][_0x585152(0x2d1)]}),_0x3a591b=_0x578f95[_0x585152(0x2aa)],_0x5bb4fb=_0x4d3319[_0x585152(0x2aa)];}this['_docStateChangeManagerService'][_0x585152(0xbf)](_0x2fad59,{'history':_0x252234,'collaboration':_0x24e5f2});}};J=Ft([le(0x0,a[_0x40b53b(0x163)](a[_0x40b53b(0x184)])),le(0x1,m[_0x40b53b(0x1fc)]),le(0x2,a[_0x40b53b(0x163)](b[_0x40b53b(0xdb)]))],J);function _0x4755(){const _0x425c05=['useObservable','setAlpha','Shape','SNAPSHOT_HAS_BEEN_REMOVED','collabStatus.fetchMiss','_send','getCurrent','clipPath','_online','takeUntil','SOCKET_FAILED','_shapes','next','_getSheetObject','bottom','55YwcKiP','RegularPolygon','getUniverSheetInstance','extend','onMouseMove','Inject','arc','_status$','toRgbString','react','getActiveSheet','469107hGBCiX','_dataLoaderService','handleInsertRow','doc.mutation.rich-text-editing','_refreshCollabCursors','_cursorShapes','skeleton','entityInit$','YUUMI_AI_RUN_FAILED','CLOSE_ROOM','svg','Disposable','getLocalCacheKey','none','collab-text-range-','disableLocalCache','currentTheme$','AWAITING','connectInjector','SOCKET_FAILED_RETRY','color','_cursor','runOnServer','_getAnchorBounding','_initEvent','#fff','getConfig','Injector','_context','clearTimeout','_updateCollabCursors','_onCursorDelete','RemoveColCommandId','165549YewnxK','getSheetObject','ACTIVE_UNIT_EVENT_CHANNEL','round','registerBeforeClose','PENDING','_themeService','_scheduleHeartbeat','cursorInfo$','backgroundColor','getUnitStatus$','_startSheetCollabCursor','_updateSubUnitFromURLParams','Unknown\x20user','setInterval','onRendered','_collabSessionService','0\x200\x2017\x2016','all','unshift','moveTo','eventID','body','subscribe','max','toString','div','contains','call','_roomMembers$','_docStateChangeManagerService','ENSURE_SNAPSHOT_EXECUTION','INTERNAL_ERROR','WebURLService','LICENSE_EXPORT_SIZE_EXCEEDED','_messageService','NO_OTHER_CLIENTS_EDITING','debug','dispose$','measureText','InsertRowCommandId','YUUMI_NO_CUBOID_FOR_QUESTION','status$','_drawAnchor','docStateChange$','IBeforeCloseService','code','getMemberID','filter','Module','shareReplay','IUIPartsService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INotificationService','_drawTextRange','fill','setActiveRange','MoveRangeCommandId','OTHER_CLIENTS_EDITING','handleMoveRange','_collabCursorState$','_draw','handleInsertRangeMoveDown','UnitStatus','Rect','_cursors','rgba(255,\x20255,\x20255,\x200.01)','YUUMI_ASYNCIO_CANCELLED','_initStatusListener','subscribeEvent','jsx','memberID','...','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','@univerjs/docs-ui','pipe','redoState','CollaborationStatusDisplay','off-line-single_clip0_910_343','UniverInstanceType','OTHER_CLIENT_EDITING','_entityInit$','Rectangle','Plugin','SheetSkeletonManagerService','_anchor','assign','@univerjs/network','text','_saveCache','lineTo','SheetCollabCursorShape','roomMembers','flatMap','getCurrentSelections','unload','createElement','_startDocCollabCursor','drawWith','_docTransformSelectionsService','CollaborationDataLoaderController','unit','@univerjs-pro/collaboration','getFocusedUnit','NOT_FOUND','TEXT_RANGE_LAYER_INDEX','0\x200\x2016\x2016','INVITE_CODE_HAS_BEEN_UES','react/jsx-runtime','_uiPartsService','Warning','_cursorInfo$','transformRemoteChangeset','history','ITransformService','univer-flex\x20univer-mr-2\x20univer-text-xl','@univerjs/core','defIds','registerRefRange','from','addEventListener','isTransformMutationFailure','replace','textRanges','result','closePath','string','roomMembers$','ticket','getCollabCursors$','registerDependencies','colorChannel1','transformMutation','getCurrentUnitForType','_registerDependencies','CollaborationStatus','wsSessionTicketUrl','_hideTimer','invokeId','_getScale','unitID','UNDEFINED','_createSocketURL','Tooltip','disposeWithMe','_heartbeatTimer','registerComponent','_updateURLWithCurrentState','_hovered','_revisionService','_transformUndoRedoStack','_render','_initDependencies','transform','getCollabEntity$','save','data','getSkeleton','getTypeOfUnitAdded$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_imageIoService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','USERS_LEAVE','INVITE_CODE_REQUIRED','startRow','MemberService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','BuiltInUIPart','InsertRangeMoveRightCommandId','location','dispose','getColor','@univerjs/engine-formula','_sheetSkeletonManagerService','unsubscribe','YUUMI_UNABLE_LOAD_URL','_anchorDot','collab-client.tooltip.reconnect','_clearOtherTimers','_notificationService','_setupBeforeClosingHandler','function','IDocClipboardService','_commandService','HEADER_MENU','UNIVER_SHEET','@univerjs/sheets','unitId','isActive','LocaleService','_configService','_entities','USER_NOT_INVITED_CODE','resize','_handleLeaveEvent','_getSaveTimeout','find','runRefRangeMutations','uni.network.url-service','_initResize','parse','_docSkeletonManagerService','_docSkeleton','UniverIcon','APPLY_PERMISSION_DENIED','black','setConfig','collabStatus.offline','getSheetId','distinctUntilChanged','error','mutations','6270370pbdaGu','handleDeleteRangeMoveUp','jsxs','getValue','rxjs','BehaviorSubject','DocIMEInputManagerService','width','DocCollaborationEntity','asObservable','_transformHistoryAndStateStack','TEXT','getViewport','Error','_syncEditingCollabCursorService','_document','undoState','InsertRangeMoveDownCommandId','RevisionService','_collaborationController','startsWith','_lastPointer','_registerRenderDependencies','ISocketService','INVALID_INVITE_CODE','saveOfflineData','_selfUnitIDs','_onCursorUpdate','complete','runId','show','_hover','UNRECOGNIZED','_assignedColors','59194XmsVIx','height','m2Prime','replaceDocRanges','deepClone','concat','_id','ICommandService','propertyIsEnumerable','YUUMI_SUBSCRIPTION_NOT_FOUND','defs','random','transformIMECache','DesktopCollaborationStatusDisplayController','CollaborationSessionService','PERMISSION_DENIED','url(#on-line-single_clip0_910_349)','switchMap','@univerjs/engine-render','DEFAULT_WS_SESSION_TICKET_URL','hovered','_scheduleSaving','xlink:href','href','CommandType','setShapeProps','_handleHeartbeatEvent','merge','assignAColorForMemberID','font','DeleteRangeMoveLeftCommandId','ColorKit','[CollaborationDataLoaderController]','forwardRef','WECHAT_HAS_BEEN_BOUND','disposeUnit','indexOf','UNIVER_DOC','row','_transformService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','SetWorksheetActivateCommand','m1Prime','addClipboardHook','handleIRemoveRow','generateRandomId','mapTo','cursorInfo','application/json','OffLineSingle','displayName','transformStateCache','_getMergeRange','_renderManagerService','rxjs/operators','OnLineSingle','getTypeOfUnitDisposed$','restore','CONNECTOR_DATA_TOO_LARGE','ONLINE','_beforeCloseService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','urlChange$','syncEditingCollabCursor','jiqing.500','IRemoteInstanceService','_session','Tools','CollaborationUIEventService','session.connection-failed','handleIRemoveCol','loadUnit','@univerjs/rpc','_collabCursorController','startColumn','setUndoRedoMutationParamsCache','_saveTaskMap','437773BxZjna','FETCH_MISS','YUUMI_ALL_TABLES_IS_INVALID','requireSession','params','enableLocalCache','debounceTime','M0\x200H16V16H0z','_collaborationUIEventService','add','getOwnPropertySymbols','APPLY_NON_SEQUENTIAL_REVISION','UNAUTHENTICATED','delete','DeleteRangeMoveUpCommandId','getAncestorScale','RxDisposable','updateOfflineData','SYNCED','INVITE_CODE_ALREADY_BOUND','toStringTag','MOBILE_HAS_BEEN_BOUND','YUUMI_RATE_OVER_LIMIT','createSocket','FromArray','@univerjs-pro/collaboration-client','OFFLINE','endRow','substring','serializeRangeWithSheet','_handleHover','useCallback','path','get','_injector','YUUMI_URL_COL_OUT_OF_RANGE','IUniverInstanceService','_removeCollabCursors','registerRenderModule','EffectRefRangId','collab-text-anchor-','on-line-single_clip0_910_349','ILocalCacheService','1em','_cachedData','_initEntityListener','isTransformMutationsWithChangesetSuccess','combineLatest','deserializeRangeWithSheet','_ensureSubject','session.will-retry','_instanceService','min','132816umaxRh','NodePositionConvertToCursor','APPLY_REJECT','storage','prototype','name','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','SHEET_VIEWPORT_KEY','forEach','LICENSE_MAX_UNITS_EXCEEDED','IRenderManagerService','touchDependencies','PY_RUNTIME_SCRIPT_ERROR','set','_color','ranges','clsx','className','getStateCache','SetTextSelectionsOperation','transformSelections','CHANGESET_REVISION_CONFILICT','MUTATION','_docClipboardService','currentSkeleton$','debounce','transformMutationsWithChangeset','length','_httpService','_localCacheService','_scene','current','off-line-single','_logService','_toggleOnline','onPointerEnter$','collaboration.closeRoom','pushState','onTransformChange$','entries','hasOwnProperty','_onRefRangeChange','_removeClearOtherTimer','_init','DOC_RANGE_TYPE','activeSheet$','_transformPreviousActiveRange','use','getRangePointData','_labelPosition','actions','CONFLICT','_disabled','session.collaboration-timeout','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','@univerjs/design','with','sessionStatus$','NOT_COLLAB','throttleTime','fillStyle','push','Vector2','range','CollaborationController','MessageType','_getSessionTicket','_toggleOffline','HTTPService','focused$','RECT','AWAITING_WITH_PENDING','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','engine','setStateCache','Optional','url(#off-line-single_clip0_910_343)','collabStatus.synced','IMessageService','split','icon','INVALID_ARGUMENT','collaboration-client-ui.config','_memberService','SetDocZoomRatioOperation','UPDATE_CURSOR','4jAraqx','send','CollaborationUIEventId','fromEvent','removeParam','LOGIN_FAILED','stringify','SheetsSelectionsService','SessionStatus','_scheduleClearOtherTimer','_updateLocalCursor','_urlService','findNodePositionByCharIndex','IConfigService','_localStorageService','isEditing','DocStateChangeManagerService','univer-flex\x20univer-items-center','subunit','COLORS','APPLY_REVISION_CONFILICT','_docTransformStateCacheService','sheetId','getCoordByCell','_unitOnClients','univerjs-icon\x20univerjs-icon-','red.300','has','Failed','_handleJoinEvent','onPointerLeave$','purple.300','children','newValue','apply','init','InsertColCommandId','27iLkjZB','BrowserCollaborationSocketService','ILocalStorageService','saveImage','_eventUnsubscribe','loadOfflineData','RefRangeService','includes','mask','evenodd','defineProperty','EMAIL_HAS_BEEN_BOUND','ThemeService','JOIN_ROOM_FAILED','symbol','RemoteUniscriptService','_refRangeService','collabStatus.syncing','column','getRenderById','toDisposable','tag','LOCAL_CACHE_INTERVAL','getOwnPropertyDescriptor','hide','searchParams','DataLoaderService','UniverCollaborationClientPlugin','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','url(#$1','COMPLETION_FINISHED','_colorIndex','_docTransformIMECacheService','sessionTicket','values','_initStatusComponent','size','isArray','then','type','/run/','DocSelectionManagerService','_univerInstanceService','DependentOn','_name','addObject','SetSelectionsOperation','472296WLDkvT','_handleEvent','getUndoRedoMutationParamsCache','@univerjs/ui','selections','LICENSE_DISTRO_REJECTED','UniverCollaborationClientUIPlugin','collaboration.single-unit.warning','setItem','ALREADY_EXISTS','_range','map','event$','_unitStatus','ILogService','RichTextEditingMutation','CollaborationEvent','_config','NodePositionConvertToRectRange','permission.title','getUnitId','collabStatus.conflict','_backgroundColor','_colorAssignService','createIdentifier','collaboration-client.offline-data-not-saved','makeDirty','SNAPSHOT_INVALID_SNAPSHOT','Subject','labelPosition','getOffsetConfig','selection','idSuffix','exhaustSavingTask','origin','replaceState','_localeService','_initCommandExecutedListener','TOO_MANY_REQUESTS','handleDeleteRangeMoveLeft','DocSkeletonManagerService','attrs','onCommandExecuted','getParam','blue.400','addHandlerCallback','_textBubble'];_0x4755=function(){return _0x425c05;};return _0x4755();}var Yt=Object[_0x40b53b(0x107)],Wt=(_0xa0262e,_0x14a7d6,_0x4d9ece,_0x22890e)=>{for(var _0x5358ba=_0x22890e>0x1?void 0x0:_0x22890e?Yt(_0x14a7d6,_0x4d9ece):_0x14a7d6,_0x9e9628=_0xa0262e['length']-0x1,_0x111111;_0x9e9628>=0x0;_0x9e9628--)(_0x111111=_0xa0262e[_0x9e9628])&&(_0x5358ba=_0x111111(_0x5358ba)||_0x5358ba);return _0x5358ba;},Ne=(_0x2df53e,_0x4bf09b)=>(_0x496cfa,_0x3b6e6c)=>_0x4bf09b(_0x496cfa,_0x3b6e6c,_0x2df53e);let Z=class{constructor(_0x2be818,_0x37b905){this['_injector']=_0x2be818,this['_transformService']=_0x37b905;}[_0x40b53b(0x89)](_0x38c65a){const _0x4a2ab9=_0x40b53b;var _0x44bc43;const _0x2bd5dc=this[_0x4a2ab9(0x2ef)][_0x4a2ab9(0x2ee)](Y[_0x4a2ab9(0x11a)]),_0x4cece6=(_0x44bc43=_0x2bd5dc['getDocRanges']())!=null?_0x44bc43:[];if(_0x4cece6[_0x4a2ab9(0x90)]===0x0)return;const _0x104a0e=_0x38c65a[_0x4a2ab9(0x216)],_0x1c16b2=[{'id':_0x4a2ab9(0x16c),'params':{'unitId':_0x104a0e,'actions':null,'textRanges':_0x4cece6}}],_0x7b9642=this['_transformService'][_0x4a2ab9(0x8f)](_0x38c65a,_0x1c16b2);if(!m[_0x4a2ab9(0x6e)](_0x7b9642))throw _0x7b9642['error'];const _0x39bb4d=_0x7b9642['m2Prime'][0x0][_0x4a2ab9(0x2d1)][_0x4a2ab9(0x205)];Array[_0x4a2ab9(0x116)](_0x39bb4d)&&_0x39bb4d[_0x4a2ab9(0x90)]&&_0x2bd5dc[_0x4a2ab9(0x283)](_0x39bb4d,{'unitId':_0x104a0e,'subUnitId':_0x104a0e},!0x1);}};Z=Wt([Ne(0x0,a[_0x40b53b(0x163)](a['Injector'])),Ne(0x1,m[_0x40b53b(0x1fc)])],Z);var Vt=Object[_0x40b53b(0x107)],Xt=(_0x59522c,_0x46e048,_0x6f89a5,_0xb9ff3d)=>{for(var _0x3dba64=_0xb9ff3d>0x1?void 0x0:_0xb9ff3d?Vt(_0x46e048,_0x6f89a5):_0x46e048,_0x5986a6=_0x59522c['length']-0x1,_0xa7c5a7;_0x5986a6>=0x0;_0x5986a6--)(_0xa7c5a7=_0x59522c[_0x5986a6])&&(_0x3dba64=_0xa7c5a7(_0x3dba64)||_0x3dba64);return _0x3dba64;},N=(_0xa27673,_0x427e9e)=>(_0x76c8e0,_0xcfbdb8)=>_0x427e9e(_0x76c8e0,_0xcfbdb8,_0xa27673);let Q=class extends a[_0x40b53b(0x174)]{constructor(_0x2e5b6d,_0x4a8837,_0x1b24c3,_0x5ce66a,_0x39104b,_0x17d835,_0x3f3089,_0x12a4fd){const _0x38aab6=_0x40b53b;super(),h(this,_0x38aab6(0x165),new d['BehaviorSubject'](u[_0x38aab6(0x211)][_0x38aab6(0xaf)])),(this[_0x38aab6(0x1a8)]=_0x2e5b6d,this[_0x38aab6(0x271)]=_0x4a8837,this['_docTransformIMECacheService']=_0x1b24c3,this['_docTransformStateCacheService']=_0x5ce66a,this[_0x38aab6(0x1ed)]=_0x39104b,this['_docSyncEditingCollabCursorService']=_0x17d835,this['_messageService']=_0x3f3089,this[_0x38aab6(0x144)]=_0x12a4fd,this['_initEntityListener']());}[_0x40b53b(0x6d)](){const _0x3865f5=_0x40b53b;this[_0x3865f5(0x21a)](this[_0x3865f5(0x271)][_0x3865f5(0x170)][_0x3865f5(0x1a1)](_0x1092ed=>{const _0x159b64=_0x3865f5,_0xc5f541=this['_docStateChangeManagerService'][_0x159b64(0x1b6)][_0x159b64(0x1a1)](_0x5e32e5=>{const _0x58b386=_0x159b64;if(_0x5e32e5==null)return;const {unitId:_0x1d587c,redoState:_0x35eb7e,commandId:_0x2bf64b}=_0x5e32e5;if(_0x1d587c!==_0x1092ed['unitID'])return;const _0x4589b9={'id':_0x2bf64b,'type':a[_0x58b386(0x298)][_0x58b386(0x8b)],'params':{'unitId':_0x1d587c,'actions':_0x35eb7e[_0x58b386(0xa7)],'textRanges':null}};_0x1092ed['onLocalMutation'](_0x4589b9);});if(_0x1092ed[_0x159b64(0x21a)](_0xc5f541),_0x1092ed instanceof u[_0x159b64(0x266)]){const _0x4242a7={'onTransformIME':_0x5c2b8b=>this[_0x159b64(0x111)][_0x159b64(0x28c)](_0x5c2b8b),'onTransformState':_0x1e08f2=>this[_0x159b64(0xe0)]['transformStateCache'](_0x1e08f2),'onTransformSelections':_0x3a39da=>this[_0x159b64(0x1ed)][_0x159b64(0x89)](_0x3a39da),'onSyncEditingCollabCursor':_0x5addd8=>this['_docSyncEditingCollabCursorService'][_0x159b64(0x2bf)](_0x5addd8),'onTransformRemoteChangesetByIMECache':_0x10a3f3=>this[_0x159b64(0x111)][_0x159b64(0x1fa)](_0x10a3f3),'onTransformRemoteChangesetByStateCache':_0x17a672=>this['_docTransformStateCacheService'][_0x159b64(0x1fa)](_0x17a672)};_0x1092ed[_0x159b64(0x14d)](_0x4242a7);}}));}};Q=Xt([N(0x0,a[_0x40b53b(0x163)](b[_0x40b53b(0xdb)])),N(0x1,a[_0x40b53b(0x163)](u[_0x40b53b(0xb5)])),N(0x2,a[_0x40b53b(0x163)](z)),N(0x3,a[_0x40b53b(0x163)](J)),N(0x4,a[_0x40b53b(0x163)](Z)),N(0x5,a[_0x40b53b(0x163)](Ce)),N(0x6,T[_0x40b53b(0xc3)]),N(0x7,a[_0x40b53b(0x163)](a[_0x40b53b(0x247)]))],Q);var Gt=Object[_0x40b53b(0x107)],Kt=(_0x3e8d55,_0x36829f,_0x4934fd,_0x1709e5)=>{const _0x9466a2=_0x40b53b;for(var _0x45ad7d=_0x1709e5>0x1?void 0x0:_0x1709e5?Gt(_0x36829f,_0x4934fd):_0x36829f,_0x2e7924=_0x3e8d55[_0x9466a2(0x90)]-0x1,_0x2346e9;_0x2e7924>=0x0;_0x2e7924--)(_0x2346e9=_0x3e8d55[_0x2e7924])&&(_0x45ad7d=_0x2346e9(_0x45ad7d)||_0x45ad7d);return _0x45ad7d;},_e=(_0x5a41f6,_0x47b7ee)=>(_0xfc15b,_0x5b43de)=>_0x47b7ee(_0xfc15b,_0x5b43de,_0x5a41f6);let ge=class extends a[_0x40b53b(0x174)]{constructor(_0x294005,_0xbfd40d,_0xe64a36){const _0x5943da=_0x40b53b;super(),h(this,_0x5943da(0x6c),new Map()),h(this,_0x5943da(0x2cc),new Map()),h(this,_0x5943da(0xa9),!0x1),(this[_0x5943da(0x248)]=_0x294005,this['_localStorageService']=_0xbfd40d,this[_0x5943da(0x21f)]=_0xe64a36);}[_0x40b53b(0x178)](){const _0x26a638=_0x40b53b;this[_0x26a638(0xa9)]=!0x0;}[_0x40b53b(0x2d2)](){const _0x10472a=_0x40b53b;this[_0x10472a(0xa9)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x40b53b(0x234)](){const _0x52af89=_0x40b53b;this['exhaustSavingTask']()[_0x52af89(0x117)](()=>super[_0x52af89(0x234)]());}async[_0x40b53b(0xf5)](_0x55f2b8){const _0x365438=_0x40b53b;return this[_0x365438(0xa9)]?null:this['_localStorageService']['getItem'](u[_0x365438(0x175)](_0x55f2b8));}async[_0x40b53b(0x277)](_0x24cf3a,_0x447c51){const _0x1ddf3e=_0x40b53b;return!!this[_0x1ddf3e(0xd9)][_0x1ddf3e(0x128)](_0x24cf3a,_0x447c51);}[_0x40b53b(0x2de)](_0x45d779,_0xe1713f,_0x555de5,_0x4d3394){const _0x34810a=_0x40b53b,_0xb6599a=this[_0x34810a(0x21f)]['getCurrentRevOfUnit'](_0x45d779);this['_cachedData'][_0x34810a(0x82)](_0x45d779,{'unitID':_0x45d779,'type':_0xe1713f,'awaitingChangeset':_0x555de5,'mutations':_0x4d3394,'rev':_0xb6599a}),this[_0x34810a(0x2cc)][_0x34810a(0xe6)](_0x45d779)||this[_0x34810a(0x295)](_0x45d779);}['_scheduleSaving'](_0x51c471){const _0x5756d2=_0x40b53b,_0x5dafb6=this[_0x5756d2(0x24d)]();_0x5dafb6===0x0?this[_0x5756d2(0x1e3)](_0x51c471):this['_saveTaskMap'][_0x5756d2(0x82)](_0x51c471,setTimeout(()=>this['_saveCache'](_0x51c471),_0x5dafb6));}[_0x40b53b(0x24d)](){const _0x2f7c07=_0x40b53b;var _0x5ad7a5;return(_0x5ad7a5=this['_configService'][_0x2f7c07(0x183)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x5ad7a5:u[_0x2f7c07(0x106)];}['_saveCache'](_0x45f18c){const _0x3fc0e3=_0x40b53b,_0x2cc472=this[_0x3fc0e3(0x2cc)][_0x3fc0e3(0x2ee)](_0x45f18c);return _0x2cc472!==void 0x0&&window['clearTimeout'](_0x2cc472),this[_0x3fc0e3(0xd9)][_0x3fc0e3(0x128)](u[_0x3fc0e3(0x175)](_0x45f18c),this[_0x3fc0e3(0x6c)][_0x3fc0e3(0x2ee)](_0x45f18c))['then'](()=>this['_saveTaskMap']['delete'](_0x45f18c));}async[_0x40b53b(0x141)](){const _0x16d904=_0x40b53b,_0x112de7=[];this[_0x16d904(0x2cc)][_0x16d904(0x7d)]((_0xf8a17,_0x5162cd)=>{const _0x5e6b0a=_0x16d904;window[_0x5e6b0a(0x186)](_0xf8a17),_0x112de7['push'](this['_saveCache'](_0x5162cd)[_0x5e6b0a(0x117)](()=>{const _0x5531b6=_0x5e6b0a;this[_0x5531b6(0x2cc)]['delete'](_0x5162cd);}));}),await Promise[_0x16d904(0x19c)](_0x112de7);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x40b53b(0xf2)]),_e(0x2,a[_0x40b53b(0x163)](m[_0x40b53b(0x270)]))],ge);class je extends a['RxDisposable']{constructor(){const _0xc94778=_0x40b53b;super(),h(this,_0xc94778(0x2be)),this[_0xc94778(0x2be)]=d[_0xc94778(0xce)](window,'popstate')[_0xc94778(0x1d5)](d['takeUntil'](this[_0xc94778(0x1b0)]),d[_0xc94778(0x1bc)](0x1),d[_0xc94778(0x2ae)](void 0x0));}['setParam'](_0x3d8de7,_0x3593c5,_0xddb2ec=!0x1){const _0x5af071=_0x40b53b,_0x3da18e=new URL(window['location'][_0x5af071(0x297)]);_0x3da18e[_0x5af071(0x109)][_0x5af071(0x82)](_0x3d8de7,_0x3593c5),_0xddb2ec?window[_0x5af071(0x1fb)][_0x5af071(0x143)]('','',_0x3da18e[_0x5af071(0x1a3)]()):window['history'][_0x5af071(0x9a)]('','',_0x3da18e[_0x5af071(0x1a3)]());}[_0x40b53b(0xcf)](_0x178566,_0x3fb14a=!0x1){const _0x3a044a=_0x40b53b,_0xe2a913=new URL(window[_0x3a044a(0x233)][_0x3a044a(0x297)]);_0xe2a913['searchParams'][_0x3a044a(0x2da)](_0x178566),_0x3fb14a?window[_0x3a044a(0x1fb)]['replaceState']('','',_0xe2a913[_0x3a044a(0x1a3)]()):window[_0x3a044a(0x1fb)]['pushState']('','',_0xe2a913[_0x3a044a(0x1a3)]());}['getParam'](_0x2697b7){const _0x5f4302=_0x40b53b;var _0x42f2ed;return(_0x42f2ed=new URL(window[_0x5f4302(0x233)][_0x5f4302(0x297)])[_0x5f4302(0x109)][_0x5f4302(0x2ee)](_0x2697b7))!=null?_0x42f2ed:void 0x0;}}var qt=Object[_0x40b53b(0xfa)],zt=Object[_0x40b53b(0x107)],Jt=(_0x322cb5,_0x4b9753,_0x4f48dc)=>_0x4b9753 in _0x322cb5?qt(_0x322cb5,_0x4b9753,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f48dc}):_0x322cb5[_0x4b9753]=_0x4f48dc,Zt=(_0x12058e,_0x179c2f,_0x48fd99,_0x18e2c0)=>{const _0x4d2c01=_0x40b53b;for(var _0x581e1b=_0x18e2c0>0x1?void 0x0:_0x18e2c0?zt(_0x179c2f,_0x48fd99):_0x179c2f,_0x3d371=_0x12058e[_0x4d2c01(0x90)]-0x1,_0x5279e0;_0x3d371>=0x0;_0x3d371--)(_0x5279e0=_0x12058e[_0x3d371])&&(_0x581e1b=_0x5279e0(_0x581e1b)||_0x581e1b);return _0x581e1b;},he=(_0xcf9b4f,_0x4f4c06)=>(_0x5198e6,_0x221cd1)=>_0x4f4c06(_0x5198e6,_0x221cd1,_0xcf9b4f),Qt=(_0x3ecdcb,_0x4e1708,_0x3188a)=>Jt(_0x3ecdcb,_0x4e1708+'',_0x3188a);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x40b53b(0x126)]=class extends a[_0x40b53b(0x1dd)]{constructor(_0x2b11f1=Ue,_0x3beb3f,_0x1c204b,_0x5166be){const _0x186edb=_0x40b53b;super(),this['_config']=_0x2b11f1,this[_0x186edb(0x2b5)]=_0x3beb3f,this[_0x186edb(0x2ef)]=_0x1c204b,this[_0x186edb(0x248)]=_0x5166be;const {..._0x183b41}=a[_0x186edb(0x29b)]({},Ue,this['_config']);this[_0x186edb(0x248)][_0x186edb(0x258)]($t,_0x183b41);}['onStarting'](){const _0x2994d8=_0x40b53b;this[_0x2994d8(0x210)](),this[_0x2994d8(0x222)]();}[_0x40b53b(0x199)](){const _0x134270=_0x40b53b;this[_0x134270(0x274)]();}[_0x40b53b(0x210)](){const _0x43d20f=_0x40b53b;var _0x1ad38f;const _0x148705=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x43d20f(0x275)],{'useClass':G['WebSocketService']}],[u[_0x43d20f(0x6a)],{'useClass':ge}],[exports[_0x43d20f(0x28d)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x43d20f(0x20c)](this[_0x43d20f(0x2ef)],a['mergeOverrideWithDependencies'](_0x148705,(_0x1ad38f=this[_0x43d20f(0x131)])==null?void 0x0:_0x1ad38f['override']));}[_0x40b53b(0x274)](){const _0x34a5a2=_0x40b53b;this['disposeWithMe'](this[_0x34a5a2(0x2b5)][_0x34a5a2(0x66)](a['UniverInstanceType'][_0x34a5a2(0x2a5)],[Ie])),this['disposeWithMe'](this[_0x34a5a2(0x2b5)][_0x34a5a2(0x66)](a[_0x34a5a2(0x1d9)]['UNIVER_SHEET'],[ve]));}[_0x40b53b(0x222)](){const _0x2d51ff=_0x40b53b;a[_0x2d51ff(0x80)](this[_0x2d51ff(0x2ef)],[[x],[exports[_0x2d51ff(0x28d)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x40b53b(0x126)],'pluginName',es),exports[_0x40b53b(0x126)]=Zt([a[_0x40b53b(0x11c)](u[_0x40b53b(0x10b)]),he(0x1,p[_0x40b53b(0x7f)]),he(0x2,a[_0x40b53b(0x163)](a[_0x40b53b(0x184)])),he(0x3,a[_0x40b53b(0xd8)])],exports[_0x40b53b(0x126)]);var ts=Object[_0x40b53b(0x107)],ss=(_0x4e4b8c,_0x5b7666,_0x23cbdb,_0x4d9c58)=>{const _0x4439de=_0x40b53b;for(var _0xbdc9d6=_0x4d9c58>0x1?void 0x0:_0x4d9c58?ts(_0x5b7666,_0x23cbdb):_0x5b7666,_0x401da3=_0x4e4b8c[_0x4439de(0x90)]-0x1,_0x24bef1;_0x401da3>=0x0;_0x401da3--)(_0x24bef1=_0x4e4b8c[_0x401da3])&&(_0xbdc9d6=_0x24bef1(_0xbdc9d6)||_0xbdc9d6);return _0xbdc9d6;},F=(_0x2a82a2,_0x5eaf18)=>(_0x4462ae,_0x17dde1)=>_0x5eaf18(_0x4462ae,_0x17dde1,_0x2a82a2);exports[_0x40b53b(0xf1)]=class extends u['CollaborationSocketService']{constructor(_0x270899,_0x3a0e55,_0x130cec,_0x3ba3ab,_0x473102){super(_0x270899,_0x3a0e55,_0x130cec,_0x3ba3ab,_0x473102);}async[_0x40b53b(0x2e4)](_0x305c16){const _0x376728=await this['_getSessionTicket'](),_0x4eb20c=this['_createSocketURL'](_0x305c16,_0x376728);return this['_doCreateSocket'](_0x4eb20c);}[_0x40b53b(0x218)](_0x53592a,_0x10ab13){const _0x44c476=_0x40b53b,_0x3827de=typeof window>'u'?new URL(_0x53592a):new URL(_0x53592a,window[_0x44c476(0x233)][_0x44c476(0x142)]);_0x3827de[_0x44c476(0x109)]['set'](_0x44c476(0x112),_0x10ab13);const _0x951873=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x44c476(0x233)]['search']);return _0x951873[_0x44c476(0x2ee)]('runId')&&_0x3827de['searchParams'][_0x44c476(0x82)](_0x44c476(0x27b),_0x951873[_0x44c476(0x2ee)](_0x44c476(0x27b))),_0x3827de[_0x44c476(0x1a3)]();}async[_0x40b53b(0xb7)](){const _0x7a7b=_0x40b53b;var _0x42993d,_0x1f65d6,_0x572337;const _0x2e110f=this[_0x7a7b(0x248)][_0x7a7b(0x183)](u[_0x7a7b(0x230)]),_0x72a35c=(_0x42993d=_0x2e110f==null?void 0x0:_0x2e110f[_0x7a7b(0x212)])!=null?_0x42993d:u[_0x7a7b(0x293)];return(_0x572337=(_0x1f65d6=(await this[_0x7a7b(0x91)][_0x7a7b(0x2ee)](_0x72a35c,{'headers':{'Content-Type':_0x7a7b(0x2b0)}}))[_0x7a7b(0x1a0)])==null?void 0x0:_0x1f65d6[_0x7a7b(0x20a)])!=null?_0x572337:'';}},exports[_0x40b53b(0xf1)]=ss([F(0x0,a[_0x40b53b(0x163)](a[_0x40b53b(0x184)])),F(0x1,a[_0x40b53b(0x163)](G[_0x40b53b(0xb9)])),F(0x2,a[_0x40b53b(0xd8)]),F(0x3,a[_0x40b53b(0x12e)]),F(0x4,m['ISnapshotServerService'])],exports[_0x40b53b(0xf1)]);const Me=0x7530,Le=_0x40b53b(0x18c);class is extends a[_0x40b53b(0x174)]{constructor(){const _0x2c009b=_0x40b53b;super(),h(this,_0x2c009b(0x286),a[_0x2c009b(0x2ad)]()),h(this,_0x2c009b(0x278),new Set()),h(this,_0x2c009b(0xe3),new Map()),h(this,_0x2c009b(0x21b),null),h(this,_0x2c009b(0x23c),new Map()),h(this,'_unitStatus',new Map()),this[_0x2c009b(0xa0)]();}[_0x40b53b(0x234)](){const _0x25d2c7=_0x40b53b;super['dispose'](),this[_0x25d2c7(0x23c)][_0x25d2c7(0x7d)]((_0x3e425e,_0x588c88)=>this[_0x25d2c7(0x9f)](_0x588c88)),this[_0x25d2c7(0x21b)]&&window['clearInterval'](this[_0x25d2c7(0x21b)]);}[_0x40b53b(0x194)](_0x49dddd){const _0x38aa51=_0x40b53b;return this[_0x38aa51(0x71)](_0x49dddd)[_0x38aa51(0x1d5)](d[_0x38aa51(0x25b)]());}['editingUnit'](_0xe40231){const _0x14606d=_0x40b53b;this[_0x14606d(0x278)][_0x14606d(0x115)]===0x0&&this[_0x14606d(0x191)](),this['_selfUnitIDs'][_0x14606d(0x2d6)](_0xe40231),this[_0x14606d(0x154)]({'type':0x0,'memberID':this[_0x14606d(0x286)],'unitIDs':[_0xe40231],'isForwarded':!0x1});}[_0x40b53b(0x2a3)](_0x46b382){const _0x2fac14=_0x40b53b;this[_0x2fac14(0x278)][_0x2fac14(0x2da)](_0x46b382),this['_selfUnitIDs'][_0x2fac14(0x115)]===0x0&&this[_0x2fac14(0x21b)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x40b53b(0xa0)](){const _0x56ff01=_0x40b53b;this['disposeWithMe'](a[_0x56ff01(0x104)](d[_0x56ff01(0xce)](window,_0x56ff01(0x78))['subscribe'](_0x46ece0=>{const _0x19f19d=_0x56ff01;if(_0x46ece0['key']!==Le||!_0x46ece0['newValue'])return;const _0x46528f=JSON[_0x19f19d(0x252)](_0x46ece0[_0x19f19d(0xec)]);this[_0x19f19d(0x121)](_0x46528f);}))),window[_0x56ff01(0x202)](_0x56ff01(0x1e9),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x56ff01(0x201)](this[_0x56ff01(0x278)])}));}['_handleEvent'](_0x30232f){const _0x5a8a4d=_0x40b53b;switch(_0x30232f[_0x5a8a4d(0x118)]){case 0x0:this['_handleJoinEvent'](_0x30232f);break;case 0x1:this['_handleLeaveEvent'](_0x30232f);break;case 0x2:this[_0x5a8a4d(0x29a)](_0x30232f);break;}}[_0x40b53b(0xe8)](_0x542f15){const _0x595e46=_0x40b53b,{unitIDs:_0x569db0,memberID:_0x4f38fe,isForwarded:_0x3696d9}=_0x542f15;_0x569db0['forEach'](_0x2a5aa2=>{const _0x9681db=_0x1c95;if(!_0x3696d9&&this['_unitOnClients'][_0x9681db(0xe6)](_0x2a5aa2)&&this[_0x9681db(0x71)](_0x2a5aa2)[_0x9681db(0x15b)](u[_0x9681db(0x1c9)][_0x9681db(0x1c4)]),!this['_unitOnClients'][_0x9681db(0xe6)](_0x2a5aa2)||!this[_0x9681db(0xe3)][_0x9681db(0x2ee)](_0x2a5aa2)[_0x9681db(0xe6)](_0x4f38fe)){const _0x1ae81b=this[_0x9681db(0xe3)]['get'](_0x2a5aa2)||new Set();_0x1ae81b[_0x9681db(0x2d6)](_0x4f38fe),this[_0x9681db(0xe3)][_0x9681db(0x82)](_0x2a5aa2,_0x1ae81b),this['_scheduleClearOtherTimer'](_0x4f38fe);}}),_0x3696d9||this['_send']({'type':0x0,'memberID':this[_0x595e46(0x286)],'unitIDs':[...this[_0x595e46(0x278)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x39ee01){const _0x18d624=_0x40b53b;this['_removeClearOtherTimer'](_0x39ee01);const _0x7f8cc5=window['setTimeout'](()=>{const _0x325637=_0x1c95;this[_0x325637(0xe3)]['forEach'](_0x2d6608=>{const _0x1eff45=_0x325637;_0x2d6608[_0x1eff45(0x2da)](_0x39ee01);});},Me*0x2);this['_clearOtherTimers'][_0x18d624(0x82)](_0x39ee01,_0x7f8cc5);}[_0x40b53b(0x9f)](_0x36ea52){const _0x26ab40=_0x40b53b;if(this['_clearOtherTimers'][_0x26ab40(0xe6)](_0x36ea52)){const _0x3ee771=this['_clearOtherTimers'][_0x26ab40(0x2ee)](_0x36ea52);_0x3ee771&&window[_0x26ab40(0x186)](_0x3ee771),this['_clearOtherTimers'][_0x26ab40(0x82)](_0x36ea52,null);}}[_0x40b53b(0x24c)](_0x1141d0){const _0x1aae30=_0x40b53b,{memberID:_0x12c4e5,unitIDs:_0x592b63}=_0x1141d0;_0x592b63[_0x1aae30(0x7d)](_0x499936=>{const _0x4b1559=_0x1aae30;var _0x29eded;const _0x533a59=this['_unitOnClients'][_0x4b1559(0x2ee)](_0x499936);_0x533a59&&(_0x533a59[_0x4b1559(0x2da)](_0x12c4e5),(_0x29eded=this['_ensureSubject'](_0x499936))==null||_0x29eded['next'](_0x533a59[_0x4b1559(0x115)]===0x0?u[_0x4b1559(0x1c9)][_0x4b1559(0x1ae)]:u['UnitStatus'][_0x4b1559(0x1c4)]));}),this[_0x1aae30(0x9f)](_0x12c4e5);}[_0x40b53b(0x29a)](_0x1e82b6){const _0x25d3c0=_0x40b53b;this[_0x25d3c0(0xd4)](_0x1e82b6[_0x25d3c0(0x1d1)]);}[_0x40b53b(0x154)](_0x532498){const _0x12af74=_0x40b53b;localStorage[_0x12af74(0x128)](Le,JSON[_0x12af74(0xd1)](_0x532498));}[_0x40b53b(0x191)](){const _0x49080e=_0x40b53b;this['_heartbeatTimer']=window[_0x49080e(0x198)](()=>{const _0x27cc57=_0x49080e;this['_send']({'type':0x2,'memberID':this[_0x27cc57(0x286)]});},Me);}['_ensureSubject'](_0xe38f64){const _0x21a4b1=_0x40b53b;return this[_0x21a4b1(0x12d)]['has'](_0xe38f64)||this[_0x21a4b1(0x12d)]['set'](_0xe38f64,new d['BehaviorSubject'](u[_0x21a4b1(0x1c9)][_0x21a4b1(0x1ae)])),this[_0x21a4b1(0x12d)][_0x21a4b1(0x2ee)](_0xe38f64);}}var Be=(_0x2fbc19=>(_0x2fbc19[_0x2fbc19[_0x40b53b(0x217)]=0x0]=_0x40b53b(0x217),_0x2fbc19[_0x2fbc19['OK']=0x1]='OK',_0x2fbc19[_0x2fbc19['INTERNAL_ERROR']=0x2]=_0x40b53b(0x1aa),_0x2fbc19[_0x2fbc19['PERMISSION_DENIED']=0x3]=_0x40b53b(0x28f),_0x2fbc19[_0x2fbc19[_0x40b53b(0x1f2)]=0x4]=_0x40b53b(0x1f2),_0x2fbc19[_0x2fbc19['UNAUTHENTICATED']=0x5]=_0x40b53b(0x2d9),_0x2fbc19[_0x2fbc19['ALREADY_EXISTS']=0x6]=_0x40b53b(0x129),_0x2fbc19[_0x2fbc19[_0x40b53b(0xc6)]=0x7]='INVALID_ARGUMENT',_0x2fbc19[_0x2fbc19[_0x40b53b(0x146)]=0x8]='TOO_MANY_REQUESTS',_0x2fbc19[_0x2fbc19[_0x40b53b(0x10f)]=0x9]=_0x40b53b(0x10f),_0x2fbc19[_0x2fbc19[_0x40b53b(0xd0)]=0xa]='LOGIN_FAILED',_0x2fbc19[_0x2fbc19['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x40b53b(0x8a),_0x2fbc19[_0x2fbc19[_0x40b53b(0x13b)]=0x1771]=_0x40b53b(0x13b),_0x2fbc19[_0x2fbc19['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x40b53b(0x152),_0x2fbc19[_0x2fbc19[_0x40b53b(0x1a9)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2fbc19[_0x2fbc19['APPLY_REJECT']=0x1b59]=_0x40b53b(0x77),_0x2fbc19[_0x2fbc19[_0x40b53b(0x2d8)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2fbc19[_0x2fbc19[_0x40b53b(0xdf)]=0x1b5b]=_0x40b53b(0xdf),_0x2fbc19[_0x2fbc19[_0x40b53b(0x256)]=0x1b5c]=_0x40b53b(0x256),_0x2fbc19[_0x2fbc19['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2fbc19[_0x2fbc19[_0x40b53b(0x2ba)]=0x1f41]=_0x40b53b(0x2ba),_0x2fbc19[_0x2fbc19[_0x40b53b(0x7e)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2fbc19[_0x2fbc19[_0x40b53b(0x10c)]=0x232a]=_0x40b53b(0x10c),_0x2fbc19[_0x2fbc19['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2fbc19[_0x2fbc19['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x40b53b(0x1ac),_0x2fbc19[_0x2fbc19[_0x40b53b(0x125)]=0x232d]=_0x40b53b(0x125),_0x2fbc19[_0x2fbc19[_0x40b53b(0x239)]=0x2711]=_0x40b53b(0x239),_0x2fbc19[_0x2fbc19[_0x40b53b(0x2f0)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2fbc19[_0x2fbc19['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x40b53b(0x2e3),_0x2fbc19[_0x2fbc19['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x40b53b(0x289),_0x2fbc19[_0x2fbc19[_0x40b53b(0x1b3)]=0x271a]=_0x40b53b(0x1b3),_0x2fbc19[_0x2fbc19[_0x40b53b(0x1cd)]=0x271b]=_0x40b53b(0x1cd),_0x2fbc19[_0x2fbc19['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2fbc19[_0x2fbc19[_0x40b53b(0x2cf)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2fbc19[_0x2fbc19[_0x40b53b(0x22b)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2fbc19[_0x2fbc19['YUUMI_AI_RUN_FAILED']=0x271f]=_0x40b53b(0x171),_0x2fbc19[_0x2fbc19[_0x40b53b(0x81)]=0x2af9]=_0x40b53b(0x81),_0x2fbc19[_0x2fbc19[_0x40b53b(0x1f5)]=0x2ee1]=_0x40b53b(0x1f5),_0x2fbc19[_0x2fbc19['INVALID_INVITE_CODE']=0x2ee2]=_0x40b53b(0x276),_0x2fbc19[_0x2fbc19['INVITE_CODE_REQUIRED']=0x2ee3]=_0x40b53b(0x22d),_0x2fbc19[_0x2fbc19[_0x40b53b(0x24a)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x2fbc19[_0x2fbc19['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x40b53b(0x2e0),_0x2fbc19[_0x2fbc19[_0x40b53b(0x2a2)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2fbc19[_0x2fbc19[_0x40b53b(0x2e2)]=0x32ca]=_0x40b53b(0x2e2),_0x2fbc19[_0x2fbc19[_0x40b53b(0xfb)]=0x32cb]=_0x40b53b(0xfb),_0x2fbc19[_0x2fbc19[_0x40b53b(0x27e)]=-0x1]=_0x40b53b(0x27e),_0x2fbc19))(Be||{}),ns=Object[_0x40b53b(0x107)],rs=(_0x567c59,_0x18cf3c,_0x66ba72,_0x5c6518)=>{const _0x12df2e=_0x40b53b;for(var _0x4f83de=_0x5c6518>0x1?void 0x0:_0x5c6518?ns(_0x18cf3c,_0x66ba72):_0x18cf3c,_0x29d84e=_0x567c59[_0x12df2e(0x90)]-0x1,_0x1ac8e6;_0x29d84e>=0x0;_0x29d84e--)(_0x1ac8e6=_0x567c59[_0x29d84e])&&(_0x4f83de=_0x1ac8e6(_0x4f83de)||_0x4f83de);return _0x4f83de;},ue=(_0x4050a9,_0x58f6a5)=>(_0x5aba17,_0x196a99)=>_0x58f6a5(_0x5aba17,_0x196a99,_0x4050a9);exports['RemoteUniscriptService']=class extends a[_0x40b53b(0x174)]{constructor(_0x1e1355,_0x1183b9,_0xffb6b7){const _0x3ab48b=_0x40b53b;super(),this[_0x3ab48b(0x73)]=_0x1e1355,this[_0x3ab48b(0x91)]=_0x1183b9,this[_0x3ab48b(0x248)]=_0xffb6b7;}async[_0x40b53b(0x17f)](_0x7f126e,_0x4e66be,_0x115b77,..._0x4efc8c){const _0x367a96=_0x40b53b;var _0xc7f760,_0x9c3cad,_0x136b01,_0x530df0;const _0x3150c4=this[_0x367a96(0x73)]['getFocusedUnit']();if(!_0x3150c4)throw new Error(_0x367a96(0x2a8));const _0x44a4c7=((_0xc7f760=this[_0x367a96(0x248)]['getConfig'](u[_0x367a96(0x229)]))!=null?_0xc7f760:u[_0x367a96(0x1be)])+'/'+_0x7f126e+_0x367a96(0x119)+_0x4e66be,_0x35be09=new URL(window[_0x367a96(0x233)][_0x367a96(0x297)]),_0x3d1e2b={'scriptId':_0x7f126e,'runId':(_0x9c3cad=_0x35be09[_0x367a96(0x109)]['get'](_0x367a96(0x27b)))!=null?_0x9c3cad:'','function':_0x4e66be,'unitId':_0x3150c4[_0x367a96(0x134)](),'argsOfFunction':JSON[_0x367a96(0xd1)](_0x4efc8c),'invokeId':(_0x136b01=_0x115b77[_0x367a96(0x214)])!=null?_0x136b01:'','executionId':(_0x530df0=_0x115b77['executionId'])!=null?_0x530df0:''};try{const _0x13c896=await this[_0x367a96(0x91)]['post'](_0x44a4c7,{'body':_0x3d1e2b});return _0x13c896['body'][_0x367a96(0x25c)]&&_0x13c896[_0x367a96(0x1a0)][_0x367a96(0x25c)][_0x367a96(0x1b8)]!==Be['OK']?'Failed':_0x13c896[_0x367a96(0x1a0)][_0x367a96(0x206)];}catch{return _0x367a96(0xe7);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x40b53b(0x64)]),ue(0x1,a[_0x40b53b(0x163)](G[_0x40b53b(0xb9)])),ue(0x2,a[_0x40b53b(0xd8)])],exports[_0x40b53b(0xff)]),exports[_0x40b53b(0x1d7)]=xe,exports['IURLService']=be,exports[_0x40b53b(0x1e5)]=Ae,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x40b53b(0x1ab)]=je;
@@ -1 +1 @@
1
- 'use strict';const _0x6320f2=_0x3773;function _0x1a66(){const _0x150fdc=['42ZDxazE','Edit\x20conflicts','479772PyMrpU','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing\x20server\x20data...','Connection\x20failed,\x20please\x20check\x20your\x20network.','1328610EAEtKf','1469598kMMxIk','Authentication\x20Error','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1571886oENKNe','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','exports','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Collaboration\x20Conflict','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Synced','Syncing...','Click\x20to\x20Reconnect','1168rJFYol','1344144CCXqsa','768maXRJT','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','77sUovVe','135975ezbnBS','12aVdkDb'];_0x1a66=function(){return _0x150fdc;};return _0x1a66();}(function(_0x5bb7c6,_0x998607){const _0x719aed=_0x3773,_0x41a8de=_0x5bb7c6();while(!![]){try{const _0x50949c=parseInt(_0x719aed(0x195))/0x1*(-parseInt(_0x719aed(0x197))/0x2)+parseInt(_0x719aed(0x1a4))/0x3+parseInt(_0x719aed(0x19c))/0x4*(-parseInt(_0x719aed(0x19b))/0x5)+-parseInt(_0x719aed(0x19f))/0x6*(parseInt(_0x719aed(0x19d))/0x7)+parseInt(_0x719aed(0x196))/0x8+-parseInt(_0x719aed(0x1a7))/0x9+parseInt(_0x719aed(0x1a3))/0xa*(parseInt(_0x719aed(0x19a))/0xb);if(_0x50949c===_0x998607)break;else _0x41a8de['push'](_0x41a8de['shift']());}catch(_0x237d3f){_0x41a8de['push'](_0x41a8de['shift']());}}}(_0x1a66,0x627bc));function _0x3773(_0x170567,_0x39e2c1){const _0x1a664a=_0x1a66();return _0x3773=function(_0x377314,_0x5aa171){_0x377314=_0x377314-0x18f;let _0x381b10=_0x1a664a[_0x377314];return _0x381b10;},_0x3773(_0x170567,_0x39e2c1);}const e={'collab-client':{'tooltip':{'reconnect':_0x6320f2(0x194)}},'collabStatus':{'fetchMiss':_0x6320f2(0x1a1),'conflict':_0x6320f2(0x19e),'notCollab':_0x6320f2(0x1aa),'synced':_0x6320f2(0x192),'syncing':_0x6320f2(0x193),'offline':_0x6320f2(0x191)},'session':{'connection-failed':_0x6320f2(0x1a2),'will-retry':_0x6320f2(0x1a0),'room-full':_0x6320f2(0x199),'collaboration-timeout':_0x6320f2(0x18f)},'conflict':{'title':_0x6320f2(0x190),'content':_0x6320f2(0x198)},'permission':{'title':_0x6320f2(0x1a5),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x6320f2(0x1a6)},'auth':{'needGotoLoginAlert':_0x6320f2(0x1a8)}};module[_0x6320f2(0x1a9)]=e;
1
+ 'use strict';const _0x259da4=_0x47cd;(function(_0x3ecf38,_0xf96cc){const _0x4a933c=_0x47cd,_0x3a4a1c=_0x3ecf38();while(!![]){try{const _0x1abf42=parseInt(_0x4a933c(0x174))/0x1*(parseInt(_0x4a933c(0x17c))/0x2)+-parseInt(_0x4a933c(0x183))/0x3*(-parseInt(_0x4a933c(0x185))/0x4)+-parseInt(_0x4a933c(0x181))/0x5+-parseInt(_0x4a933c(0x187))/0x6+parseInt(_0x4a933c(0x17b))/0x7*(parseInt(_0x4a933c(0x184))/0x8)+-parseInt(_0x4a933c(0x18a))/0x9*(-parseInt(_0x4a933c(0x17f))/0xa)+parseInt(_0x4a933c(0x179))/0xb*(-parseInt(_0x4a933c(0x177))/0xc);if(_0x1abf42===_0xf96cc)break;else _0x3a4a1c['push'](_0x3a4a1c['shift']());}catch(_0x304b56){_0x3a4a1c['push'](_0x3a4a1c['shift']());}}}(_0x31fa,0x3711c));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x259da4(0x17e),'notCollab':_0x259da4(0x188),'synced':_0x259da4(0x17d),'syncing':_0x259da4(0x17a),'offline':_0x259da4(0x176)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x259da4(0x189),'collaboration-timeout':_0x259da4(0x180)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x259da4(0x178)},'permission':{'title':'Authentication\x20Error','content':_0x259da4(0x175)},'collaboration':{'single-unit':{'warning':_0x259da4(0x173)},'closeRoom':_0x259da4(0x186)},'auth':{'needGotoLoginAlert':_0x259da4(0x182)}};function _0x31fa(){const _0x25fe0a=['You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','14DzcPsH','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1524UJITcG','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','44077CVPJda','Syncing...','140FXpJHG','44294PwsMfl','Synced','Edit\x20conflicts','10XatpuQ','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','676755vaHaqK','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','29424aOPYWa','76528rCwOxz','88LXVvLC','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','122574dheWCy','Local\x20file','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','1557711gptLPI'];_0x31fa=function(){return _0x25fe0a;};return _0x31fa();}function _0x47cd(_0x4bd654,_0x24834c){const _0x31fa7c=_0x31fa();return _0x47cd=function(_0x47cd81,_0x95d7f2){_0x47cd81=_0x47cd81-0x173;let _0x27c35a=_0x31fa7c[_0x47cd81];return _0x27c35a;},_0x47cd(_0x4bd654,_0x24834c);}module['exports']=e;