@univerjs-pro/collaboration-client-ui 0.8.0-beta.0 → 0.8.0-beta.1

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 _0x965377=_0x18ab;(function(_0x44c21c,_0xd5d218){const _0x18c3ea=_0x18ab,_0x13158d=_0x44c21c();while(!![]){try{const _0x28e2b4=-parseInt(_0x18c3ea(0x17d))/0x1+-parseInt(_0x18c3ea(0x174))/0x2+parseInt(_0x18c3ea(0x17c))/0x3*(-parseInt(_0x18c3ea(0x178))/0x4)+parseInt(_0x18c3ea(0x17b))/0x5*(parseInt(_0x18c3ea(0x171))/0x6)+-parseInt(_0x18c3ea(0x170))/0x7*(-parseInt(_0x18c3ea(0x172))/0x8)+-parseInt(_0x18c3ea(0x175))/0x9+parseInt(_0x18c3ea(0x176))/0xa;if(_0x28e2b4===_0xd5d218)break;else _0x13158d['push'](_0x13158d['shift']());}catch(_0x27c3d8){_0x13158d['push'](_0x13158d['shift']());}}}(_0x19cf,0x3bb03));function _0x18ab(_0x487a4d,_0x51a106){const _0x19cfe5=_0x19cf();return _0x18ab=function(_0x18aba6,_0x352130){_0x18aba6=_0x18aba6-0x170;let _0x2f456f=_0x19cfe5[_0x18aba6];return _0x2f456f;},_0x18ab(_0x487a4d,_0x51a106);}function _0x19cf(){const _0x5b4d07=['2024496VUiKtP','6246200MUCsha','extend','50928JDXTmP','FUniver','@univerjs-pro/collaboration-client-ui','886715ZEYPmj','3gcKoHV','243191GnhQnp','51947hChupe','6lMZQRy','440XrWVds','_injector','969536RQBdDC'];_0x19cf=function(){return _0x5b4d07;};return _0x19cf();}const t=require(_0x965377(0x17a)),e=require('@univerjs/core/facade');class c extends e['FUniver']{['runOnServer'](_0x4d8661,_0x4b3b8a,..._0x258199){const _0x383f24=_0x965377;return this[_0x383f24(0x173)]['get'](t['RemoteUniscriptService'])['runOnServer'](_0x4d8661,_0x4b3b8a,{},..._0x258199);}}e[_0x965377(0x179)][_0x965377(0x177)](c);
1
+ 'use strict';const _0x224109=_0x5348;(function(_0x264b2f,_0x53fa1b){const _0x22fae3=_0x5348,_0x245b7e=_0x264b2f();while(!![]){try{const _0x1e4613=-parseInt(_0x22fae3(0x96))/0x1*(-parseInt(_0x22fae3(0x90))/0x2)+parseInt(_0x22fae3(0xa0))/0x3+-parseInt(_0x22fae3(0x9e))/0x4*(-parseInt(_0x22fae3(0x9f))/0x5)+parseInt(_0x22fae3(0x9c))/0x6+parseInt(_0x22fae3(0x91))/0x7*(parseInt(_0x22fae3(0x9a))/0x8)+parseInt(_0x22fae3(0x9d))/0x9*(-parseInt(_0x22fae3(0x97))/0xa)+-parseInt(_0x22fae3(0x8f))/0xb;if(_0x1e4613===_0x53fa1b)break;else _0x245b7e['push'](_0x245b7e['shift']());}catch(_0x5a378f){_0x245b7e['push'](_0x245b7e['shift']());}}}(_0xed36,0x86028));const t=require(_0x224109(0x9b)),e=require(_0x224109(0x93));class c extends e[_0x224109(0x98)]{[_0x224109(0x92)](_0x272368,_0x1c74de,..._0x4b5de2){const _0x37f2f5=_0x224109;return this[_0x37f2f5(0x94)][_0x37f2f5(0x95)](t[_0x37f2f5(0x99)])[_0x37f2f5(0x92)](_0x272368,_0x1c74de,{},..._0x4b5de2);}}function _0x5348(_0x3d85a0,_0x5c1d51){const _0xed3604=_0xed36();return _0x5348=function(_0x534892,_0x50df80){_0x534892=_0x534892-0x8f;let _0x24f48f=_0xed3604[_0x534892];return _0x24f48f;},_0x5348(_0x3d85a0,_0x5c1d51);}function _0xed36(){const _0x381bd9=['@univerjs/core/facade','_injector','get','35rkceQt','490990unAcoY','FUniver','RemoteUniscriptService','501992lgLVFY','@univerjs-pro/collaboration-client-ui','3078060wfqnZn','189upDZIm','4hqkXXS','3318765kZpUqD','2527626HTEKsY','18698757iqRbPO','54104NheJbR','35aMIqZG','runOnServer'];_0xed36=function(){return _0x381bd9;};return _0xed36();}e['FUniver']['extend'](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x570aba=_0x1acb;(function(_0x37ed1,_0x112b33){const _0x572f7e=_0x1acb,_0x20b642=_0x37ed1();while(!![]){try{const _0x3c0d4e=-parseInt(_0x572f7e(0x34f))/0x1*(-parseInt(_0x572f7e(0x287))/0x2)+-parseInt(_0x572f7e(0x3d3))/0x3*(-parseInt(_0x572f7e(0x2ba))/0x4)+-parseInt(_0x572f7e(0x284))/0x5*(-parseInt(_0x572f7e(0x31d))/0x6)+-parseInt(_0x572f7e(0x1ff))/0x7+-parseInt(_0x572f7e(0x3a0))/0x8*(-parseInt(_0x572f7e(0x225))/0x9)+parseInt(_0x572f7e(0x267))/0xa+-parseInt(_0x572f7e(0x19f))/0xb;if(_0x3c0d4e===_0x112b33)break;else _0x20b642['push'](_0x20b642['shift']());}catch(_0x121519){_0x20b642['push'](_0x20b642['shift']());}}}(_0x25b5,0x961a7));var Ve=Object['defineProperty'],Xe=(_0x361a9b,_0x53a224,_0x228450)=>_0x53a224 in _0x361a9b?Ve(_0x361a9b,_0x53a224,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x228450}):_0x361a9b[_0x53a224]=_0x228450,h=(_0x3ee9b2,_0x50cb1a,_0x2aabf)=>Xe(_0x3ee9b2,typeof _0x50cb1a!='symbol'?_0x50cb1a+'':_0x50cb1a,_0x2aabf);Object['defineProperty'](exports,Symbol[_0x570aba(0x2c5)],{'value':_0x570aba(0x2a0)});const u=require(_0x570aba(0x217)),a=require(_0x570aba(0x3a7)),p=require('@univerjs/engine-render'),G=require(_0x570aba(0x19d)),b=require(_0x570aba(0x3bc)),Ge=require('@univerjs/drawing'),d=require(_0x570aba(0x242)),Y=require(_0x570aba(0x251)),m=require(_0x570aba(0x295)),Ee=require(_0x570aba(0x3ac)),g=require(_0x570aba(0x3ce)),$=require(_0x570aba(0x3ba)),X=require(_0x570aba(0x228)),P=require('react/jsx-runtime'),T=require(_0x570aba(0x24c)),D=require('@univerjs/design'),M=require(_0x570aba(0x1ea)),Ke=require(_0x570aba(0x240));var qe=Object[_0x570aba(0x31c)],ze=(_0x3d1df0,_0x11d486,_0x22c8dc,_0x42429d)=>{const _0x4ae200=_0x570aba;for(var _0x5ba949=_0x42429d>0x1?void 0x0:_0x42429d?qe(_0x11d486,_0x22c8dc):_0x11d486,_0x509180=_0x3d1df0[_0x4ae200(0x214)]-0x1,_0x44c64f;_0x509180>=0x0;_0x509180--)(_0x44c64f=_0x3d1df0[_0x509180])&&(_0x5ba949=_0x44c64f(_0x5ba949)||_0x5ba949);return _0x5ba949;},Te=(_0x258a02,_0x3e0797)=>(_0x4881e5,_0x57ec2c)=>_0x3e0797(_0x4881e5,_0x57ec2c,_0x258a02);let de=class extends a[_0x570aba(0x338)]{constructor(_0x318c76,_0xe3f64a){const _0x1061c9=_0x570aba;super(),this[_0x1061c9(0x374)]=_0x318c76,this[_0x1061c9(0x2db)]=_0xe3f64a,this[_0x1061c9(0x31e)]();}['_init'](){const _0xae34d2=_0x570aba,_0x2be8ef=this;this[_0xae34d2(0x2cc)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1ed6fb=>{const _0x3f1b47=_0xae34d2,_0x322e85=await _0x2be8ef['_imageIoService'][_0x3f1b47(0x370)](_0x1ed6fb);return _0x322e85?{'source':_0x322e85[_0x3f1b47(0x28e)],'imageSourceType':_0x322e85[_0x3f1b47(0x237)]}:null;}}));}};de=ze([Te(0x0,b[_0x570aba(0x3d1)]),Te(0x1,Ge[_0x570aba(0x2d4)])],de);const Oe=['purple.300','jiqing.500',_0x570aba(0x2c7),_0x570aba(0x2d5),_0x570aba(0x1ef),_0x570aba(0x3e2)];class me extends a[_0x570aba(0x283)]{constructor(){const _0x2473f9=_0x570aba;super(...arguments),h(this,_0x2473f9(0x333),new Map()),h(this,'_colorIndex',0x0);}[_0x570aba(0x292)](_0x45b8e5){const _0xe7d052=_0x570aba;if(this[_0xe7d052(0x333)][_0xe7d052(0x227)](_0x45b8e5))return this[_0xe7d052(0x333)][_0xe7d052(0x398)](_0x45b8e5);const _0x121452=Oe[this[_0xe7d052(0x362)]];return this[_0xe7d052(0x362)]=(this[_0xe7d052(0x362)]+0x1)%Oe[_0xe7d052(0x214)],this[_0xe7d052(0x333)][_0xe7d052(0x1a2)](_0x45b8e5,_0x121452),_0x121452;}}function Pe(_0x59d93a){const _0x483645=_0x570aba;let _0x1a9c9c='';for(const _0xeea57f of _0x59d93a){const {startOffset:_0x45dacb,endOffset:_0x12c2e3,isActive:_0x16f83e,rangeType:_0x15c0bc,segmentId:_0x51b9da,segmentPage:_0x4ccb1c}=_0xeea57f;_0x1a9c9c[_0x483645(0x214)]&&(_0x1a9c9c+=','),_0x1a9c9c+=_0x45dacb+':'+_0x12c2e3+':'+(_0x16f83e?'1':'0')+':'+_0x15c0bc+':'+_0x51b9da+':'+_0x4ccb1c;}return _0x1a9c9c;}function Je(_0x4928cd){const _0x6beec8=_0x570aba,_0x592af0=_0x4928cd[_0x6beec8(0x38c)](','),_0x2a12a7=[];for(const _0x69f21e of _0x592af0){const [_0x464283,_0x5f0ec0,_0x5d8100,_0x2149e7,_0x1b791c,_0x2a5243]=_0x69f21e[_0x6beec8(0x38c)](':');_0x2a12a7[_0x6beec8(0x293)]({'startOffset':Number(_0x464283),'endOffset':Number(_0x5f0ec0),'collapsed':_0x464283===_0x5f0ec0,'isActive':_0x5d8100==='1','rangeType':_0x2149e7===a[_0x6beec8(0x275)][_0x6beec8(0x25d)]?a[_0x6beec8(0x275)]['TEXT']:a[_0x6beec8(0x275)][_0x6beec8(0x1f3)],'segmentId':typeof _0x1b791c==_0x6beec8(0x28d)?String(_0x1b791c):'','segmentPage':Number(_0x2a5243!=null?_0x2a5243:-0x1)});}return _0x2a12a7[_0x6beec8(0x3f2)](_0x15eb9f=>_0x15eb9f['isActive'])||(_0x2a12a7[0x0][_0x6beec8(0x206)]=!0x0),_0x2a12a7;}class Ce extends a[_0x570aba(0x338)]{constructor(){const _0x2b3fa4=_0x570aba;super(...arguments),h(this,'_collabCursorState$',new d[(_0x2b3fa4(0x2bb))](null)),h(this,_0x2b3fa4(0x358),this[_0x2b3fa4(0x24b)][_0x2b3fa4(0x3a5)]());}[_0x570aba(0x3f5)](_0x3f4ddc){const _0x3ec0ac=_0x570aba,{unitID:_0x5a0452,memberID:_0x59ddb9,textRanges:_0x12a643}=_0x3f4ddc,_0x1a5aec=Pe(_0x12a643);if(_0x1a5aec==='')return;const _0x27fd05={'unitID':_0x5a0452,'memberID':_0x59ddb9,'selection':_0x1a5aec};this[_0x3ec0ac(0x24b)][_0x3ec0ac(0x325)](_0x27fd05);}}var Ze=Object[_0x570aba(0x31c)],Qe=(_0x20e15a,_0x8f3be0,_0x3df68f,_0x3dc027)=>{const _0x2e9bf2=_0x570aba;for(var _0x144d83=_0x3dc027>0x1?void 0x0:_0x3dc027?Ze(_0x8f3be0,_0x3df68f):_0x8f3be0,_0x8a6578=_0x20e15a[_0x2e9bf2(0x214)]-0x1,_0x1820ea;_0x8a6578>=0x0;_0x8a6578--)(_0x1820ea=_0x20e15a[_0x8a6578])&&(_0x144d83=_0x1820ea(_0x144d83)||_0x144d83);return _0x144d83;},L=(_0x3e7d16,_0x1001d0)=>(_0x5c0444,_0x5a020d)=>_0x1001d0(_0x5c0444,_0x5a020d,_0x3e7d16);const et=0x12c,tt=0x64;let fe=class extends a[_0x570aba(0x338)]{constructor(_0x4c28fb,_0x269ead,_0x234561,_0x5b39b0,_0x456b89,_0x23476c,_0x58bca4,_0xe37973,_0x7068b4){const _0x2575bd=_0x570aba;super(),h(this,_0x2575bd(0x37d),!0x1),h(this,'_init',!0x1),h(this,_0x2575bd(0x296),new d[(_0x2575bd(0x2bb))](new Map())),h(this,_0x2575bd(0x3fd),this[_0x2575bd(0x296)][_0x2575bd(0x3a5)]()),h(this,'_roomMembers$',new d[(_0x2575bd(0x2bb))]([])),h(this,_0x2575bd(0x19e),this[_0x2575bd(0x306)]['pipe'](d[_0x2575bd(0x265)](et))),h(this,_0x2575bd(0x24f),a['debounce'](_0x173f25=>{const _0x5ae1ca=_0x2575bd,_0x5a3d89={'eventID':m[_0x5ae1ca(0x22b)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x5ae1ca(0x3ff)](),'selection':Pe(_0x173f25)}};this[_0x5ae1ca(0x27e)][_0x5ae1ca(0x313)](_0x5a3d89,this[_0x5ae1ca(0x397)]);},tt)),(this[_0x2575bd(0x397)]=_0x4c28fb,this[_0x2575bd(0x27e)]=_0x269ead,this[_0x2575bd(0x1f7)]=_0x234561,this[_0x2575bd(0x310)]=_0x5b39b0,this[_0x2575bd(0x26d)]=_0x456b89,this[_0x2575bd(0x3f3)]=_0x23476c,this[_0x2575bd(0x23d)]=_0x58bca4,this[_0x2575bd(0x368)]=_0xe37973,this[_0x2575bd(0x204)]=_0x7068b4);}get[_0x570aba(0x3c7)](){const _0x2a7f4b=_0x570aba;return this[_0x2a7f4b(0x296)][_0x2a7f4b(0x2e3)]();}get['roomMembers'](){const _0x210fd8=_0x570aba;return this[_0x210fd8(0x306)][_0x210fd8(0x2e3)]();}['dispose'](){const _0x4d4abc=_0x570aba;super[_0x4d4abc(0x1d4)](),this['_cursorInfo$'][_0x4d4abc(0x325)](new Map()),this['_cursorInfo$'][_0x4d4abc(0x2da)](),this[_0x4d4abc(0x306)][_0x4d4abc(0x325)]([]),this['_roomMembers$']['complete']();}[_0x570aba(0x20f)](){const _0x59d1d1=_0x570aba;this[_0x59d1d1(0x31e)]||(this['_init']=!0x0,this[_0x59d1d1(0x27e)][_0x59d1d1(0x31a)][_0x59d1d1(0x18d)](d[_0x59d1d1(0x25a)](this[_0x59d1d1(0x2ad)]))[_0x59d1d1(0x1d9)](_0x29209c=>{const _0x3bc254=_0x59d1d1;_0x29209c===u[_0x3bc254(0x2b7)][_0x3bc254(0x2a6)]?this[_0x3bc254(0x3b9)]():this[_0x3bc254(0x1f0)]();}),this['_session'][_0x59d1d1(0x318)]['pipe'](d['takeUntil'](this[_0x59d1d1(0x2ad)]))[_0x59d1d1(0x1d9)](_0x52dc10=>{const _0xc0af8a=_0x59d1d1,_0x3460f7=_0x52dc10[_0xc0af8a(0x30e)];_0x3460f7===m[_0xc0af8a(0x22b)]['UPDATE_CURSOR']&&this[_0xc0af8a(0x384)](_0x52dc10),_0x3460f7===m[_0xc0af8a(0x22b)][_0xc0af8a(0x3b8)]&&this['_onCursorDelete'](_0x52dc10);}),this['disposeWithMe'](this[_0x59d1d1(0x204)][_0x59d1d1(0x381)](_0x9d0809=>{const _0x2c3f2f=_0x59d1d1,_0xdd5523=_0x9d0809[_0x2c3f2f(0x2de)];_0xdd5523!=null&&this[_0x2c3f2f(0x37d)]&&_0x9d0809['id']===Y[_0x2c3f2f(0x29b)]['id']&&_0xdd5523[_0x2c3f2f(0x276)]===this['unitID']&&_0xdd5523[_0x2c3f2f(0x2f1)]===!0x1&&_0xdd5523[_0x2c3f2f(0x256)]['length']>0x0&&this[_0x2c3f2f(0x24f)](_0xdd5523[_0x2c3f2f(0x256)]);})),this[_0x59d1d1(0x3f3)]['collabCursorState$'][_0x59d1d1(0x18d)](d[_0x59d1d1(0x25a)](this[_0x59d1d1(0x2ad)]))[_0x59d1d1(0x1d9)](_0x1d7f6e=>{const _0x130cec=_0x59d1d1;if((_0x1d7f6e==null?void 0x0:_0x1d7f6e[_0x130cec(0x397)])!==this[_0x130cec(0x397)])return;const _0x3e3d9e={'eventID':m['CollaborationEvent'][_0x130cec(0x2c8)],'data':_0x1d7f6e};this['_onCursorUpdate'](_0x3e3d9e);}),this['disposeWithMe'](this[_0x59d1d1(0x204)][_0x59d1d1(0x381)](_0x33a487=>{const _0x4907c0=_0x59d1d1;if(_0x33a487[_0x4907c0(0x2de)]==null)return;const _0x404e42=_0x33a487[_0x4907c0(0x2de)];if(_0x33a487['id']!==Y[_0x4907c0(0x3c2)]['id']||_0x404e42[_0x4907c0(0x276)]!==this[_0x4907c0(0x397)])return;const _0x2490b4={'id':_0x4907c0(0x401),'params':_0x404e42},_0x3aa12a=this[_0x4907c0(0x3c7)];for(const [_0x4f4a92,_0x21ce97]of _0x3aa12a){const _0x56711a={'id':_0x4907c0(0x401),'params':{'unitId':this[_0x4907c0(0x397)],'actions':null,'textRanges':_0x21ce97[_0x4907c0(0x256)]}},_0x11cf64=this[_0x4907c0(0x23d)]['transformMutation'](_0x2490b4,_0x56711a,!0x1);if(m[_0x4907c0(0x197)](_0x11cf64))throw _0x11cf64[_0x4907c0(0x2eb)];_0x3aa12a['set'](_0x4f4a92,{..._0x21ce97,'ranges':_0x11cf64[_0x4907c0(0x209)][_0x4907c0(0x2de)][_0x4907c0(0x3bd)]});}queueMicrotask(()=>{const _0x235f06=_0x4907c0;this[_0x235f06(0x296)][_0x235f06(0x325)](_0x3aa12a);});})));}[_0x570aba(0x384)](_0xbda618){const _0x26aae1=_0x570aba;var _0xd3960b,_0x250387;const {memberID:_0x36e643,selection:_0x5ae8a7}=_0xbda618[_0x26aae1(0x28b)],_0x300b10=Je(_0x5ae8a7),_0x2ce297=(_0x250387=(_0xd3960b=this[_0x26aae1(0x26d)][_0x26aae1(0x1bc)](this[_0x26aae1(0x397)],_0x36e643))==null?void 0x0:_0xd3960b[_0x26aae1(0x19b)])!=null?_0x250387:_0x26aae1(0x324),_0x1510a5={'color':this[_0x26aae1(0x310)][_0x26aae1(0x292)](_0x36e643),'name':_0x2ce297,'ranges':_0x300b10},_0x214189=this['cursorInfo'];_0x214189[_0x26aae1(0x1a2)](_0x36e643,_0x1510a5),this['_cursorInfo$'][_0x26aae1(0x325)](_0x214189);}[_0x570aba(0x188)](_0x4f8702){const _0x1d96dd=_0x570aba,{memberID:_0x3c7108}=_0x4f8702[_0x1d96dd(0x28b)],_0x19fa6c=this[_0x1d96dd(0x3c7)];_0x19fa6c[_0x1d96dd(0x28c)](_0x3c7108),this[_0x1d96dd(0x296)][_0x1d96dd(0x325)](_0x19fa6c);}[_0x570aba(0x3b9)](){const _0x24f7e5=_0x570aba;var _0x4c9b2d;if(this[_0x24f7e5(0x37d)]=!0x0,((_0x4c9b2d=this[_0x24f7e5(0x368)]['getFocusedUnit']())==null?void 0x0:_0x4c9b2d[_0x24f7e5(0x2ed)]())!==this[_0x24f7e5(0x397)])return;const _0x10ddf1=this[_0x24f7e5(0x1f7)][_0x24f7e5(0x398)](Y[_0x24f7e5(0x1b2)])[_0x24f7e5(0x200)]();Array[_0x24f7e5(0x18c)](_0x10ddf1)&&_0x10ddf1[_0x24f7e5(0x214)]>0x0&&this[_0x24f7e5(0x24f)](_0x10ddf1);}[_0x570aba(0x1f0)](){const _0x46fa92=_0x570aba;this[_0x46fa92(0x37d)]=!0x1;}};fe=Qe([L(0x2,a[_0x570aba(0x33e)](a['Injector'])),L(0x3,a[_0x570aba(0x33e)](me)),L(0x4,a[_0x570aba(0x33e)](u['MemberService'])),L(0x5,a['Inject'](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x570aba(0x1a5)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x570aba(0x31c)],it=(_0x4dad2e,_0x53cd82,_0x588ad2,_0xa2d883)=>{const _0x433741=_0x570aba;for(var _0x41e0be=_0xa2d883>0x1?void 0x0:_0xa2d883?st(_0x53cd82,_0x588ad2):_0x53cd82,_0x38da12=_0x4dad2e[_0x433741(0x214)]-0x1,_0x5c2feb;_0x38da12>=0x0;_0x38da12--)(_0x5c2feb=_0x4dad2e[_0x38da12])&&(_0x41e0be=_0x5c2feb(_0x41e0be)||_0x41e0be);return _0x41e0be;},w=(_0x2e990c,_0x9070b0)=>(_0x592bad,_0x3931b7)=>_0x9070b0(_0x592bad,_0x3931b7,_0x2e990c);const nt=0x12c,rt=0x64,ot=()=>{let _0x1e471c=[],_0x453210=!0x1;return _0x437fbd=>{const _0x29f088=_0x1acb;_0x1e471c[_0x29f088(0x293)](_0x437fbd),_0x453210||(_0x453210=!0x0,setTimeout(()=>{_0x1e471c['forEach'](_0xb963f3=>_0xb963f3()),_0x1e471c=[],_0x453210=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x1d0bf6,_0x56a57a,_0x496336,_0x265a24,_0x221ada,_0xca1145,_0x460ece,_0x3f996b){const _0x4f66c1=_0x570aba;super(),h(this,_0x4f66c1(0x37d),!0x1),h(this,_0x4f66c1(0x31e),!0x1),h(this,'_cursorInfo$',new d[(_0x4f66c1(0x2bb))](new Map())),h(this,'cursorInfo$',this[_0x4f66c1(0x296)]['asObservable']()),h(this,_0x4f66c1(0x306),new d[(_0x4f66c1(0x2bb))]([])),h(this,'roomMembers$',this[_0x4f66c1(0x306)][_0x4f66c1(0x18d)](d[_0x4f66c1(0x265)](nt))),h(this,_0x4f66c1(0x24f),a[_0x4f66c1(0x329)]((_0x38ddd4,_0x167ca0)=>{const _0x539897=_0x4f66c1,_0x88f28d={'eventID':m['CollaborationEvent'][_0x539897(0x2c8)],'data':{'unitID':this[_0x539897(0x397)],'memberID':this['_session'][_0x539897(0x3ff)](),'selection':Ee[_0x539897(0x25f)](_0x38ddd4,_0x167ca0['range'])}};this[_0x539897(0x27e)][_0x539897(0x313)](_0x88f28d,this[_0x539897(0x397)]);},rt)),(this['unitID']=_0x1d0bf6,this[_0x4f66c1(0x27e)]=_0x56a57a,this[_0x4f66c1(0x1f7)]=_0x496336,this[_0x4f66c1(0x310)]=_0x265a24,this['_memberService']=_0x221ada,this['_univerInstanceService']=_0xca1145,this[_0x4f66c1(0x204)]=_0x460ece,this[_0x4f66c1(0x2a7)]=_0x3f996b);}get[_0x570aba(0x3c7)](){const _0x431cfc=_0x570aba;return this['_cursorInfo$'][_0x431cfc(0x2e3)]();}get[_0x570aba(0x236)](){const _0x23c23f=_0x570aba;return this[_0x23c23f(0x306)][_0x23c23f(0x2e3)]();}[_0x570aba(0x1d4)](){const _0x3090b3=_0x570aba;super[_0x3090b3(0x1d4)](),this[_0x3090b3(0x296)]['next'](new Map()),this[_0x3090b3(0x296)][_0x3090b3(0x2da)](),this[_0x3090b3(0x306)][_0x3090b3(0x325)]([]),this['_roomMembers$'][_0x3090b3(0x2da)]();}[_0x570aba(0x20f)](){const _0x9851e=_0x570aba;this['_init']||(this[_0x9851e(0x31e)]=!0x0,this[_0x9851e(0x27e)][_0x9851e(0x31a)][_0x9851e(0x18d)](d[_0x9851e(0x25a)](this[_0x9851e(0x2ad)]))['subscribe'](_0x114cf8=>{const _0x3e2237=_0x9851e;_0x114cf8===u[_0x3e2237(0x2b7)][_0x3e2237(0x2a6)]?this['_toggleOnline']():this[_0x3e2237(0x1f0)]();}),this[_0x9851e(0x27e)][_0x9851e(0x318)][_0x9851e(0x18d)](d[_0x9851e(0x25a)](this[_0x9851e(0x2ad)]))[_0x9851e(0x1d9)](_0xf81831=>{const _0x1e7aa7=_0x9851e,_0x2b51b1=_0xf81831[_0x1e7aa7(0x30e)];_0x2b51b1===m[_0x1e7aa7(0x22b)][_0x1e7aa7(0x2c8)]&&this[_0x1e7aa7(0x384)](_0xf81831),_0x2b51b1===m[_0x1e7aa7(0x22b)][_0x1e7aa7(0x3b8)]&&this['_onCursorDelete'](_0xf81831);}),this[_0x9851e(0x1ec)](),this[_0x9851e(0x2cc)](this[_0x9851e(0x204)][_0x9851e(0x381)](_0x47952d=>{const _0x1f908f=_0x9851e;if(this[_0x1f908f(0x37d)]&&_0x47952d['id']===g[_0x1f908f(0x29c)]['id']&&_0x47952d[_0x1f908f(0x2de)][_0x1f908f(0x276)]===this['unitID']){const _0x3e4d57=_0x47952d[_0x1f908f(0x2de)];this['_updateLocalCursor'](_0x3e4d57[_0x1f908f(0x328)],_0x3e4d57[_0x1f908f(0x2b3)][0x0]);}})));}['_onCursorUpdate'](_0x40d20c){const _0x237286=_0x570aba;var _0x38afc9,_0x556339;const {memberID:_0x1b4635,selection:_0x5425c4}=_0x40d20c[_0x237286(0x28b)],{sheetName:_0xba15dd,range:_0x36771c}=Ee[_0x237286(0x394)](_0x5425c4),_0x55cfcd={'name':(_0x556339=(_0x38afc9=this['_memberService']['getMember'](this['unitID'],_0x1b4635))==null?void 0x0:_0x38afc9[_0x237286(0x19b)])!=null?_0x556339:_0x237286(0x324),'range':this['_getMergeRange'](_0xba15dd,_0x36771c),'sheetID':_0xba15dd,'color':this[_0x237286(0x310)]['assignAColorForMemberID'](_0x1b4635),'selection':_0x5425c4},_0x5cdb8f=this[_0x237286(0x3c7)];_0x5cdb8f[_0x237286(0x1a2)](_0x1b4635,_0x55cfcd),this[_0x237286(0x296)][_0x237286(0x325)](_0x5cdb8f);}['_onCursorDelete'](_0x5e787f){const _0xdaea6c=_0x570aba,{memberID:_0x352fd1}=_0x5e787f[_0xdaea6c(0x28b)],_0x3a7166=this[_0xdaea6c(0x3c7)];_0x3a7166[_0xdaea6c(0x28c)](_0x352fd1),this['_cursorInfo$'][_0xdaea6c(0x325)](_0x3a7166);}[_0x570aba(0x3d5)](_0x2e4f18,_0x2925cf){const _0x728551=_0x570aba;var _0x2975da,_0x200d80;const _0x46fb19=(_0x200d80=(_0x2975da=this[_0x728551(0x368)][_0x728551(0x408)](this[_0x728551(0x397)]))==null?void 0x0:_0x2975da[_0x728551(0x36d)](_0x2e4f18))==null?void 0x0:_0x200d80[_0x728551(0x298)]();return(_0x46fb19==null?void 0x0:_0x46fb19[_0x728551(0x3e6)](_0x224b64=>a[_0x728551(0x371)][_0x728551(0x248)](_0x224b64,_0x2925cf)))||_0x2925cf;}[_0x570aba(0x1ec)](){const _0x26163a=_0x570aba,_0x177e69=new a['DisposableCollection'](),_0x47d587=ot(),_0x2632af=()=>{const _0x37f241=_0x1acb;_0x177e69[_0x37f241(0x1d4)]();const _0xc0a1ab=(_0x3e9890,_0x5e41a2,_0x50a260,_0x510d33)=>{const _0x3a760f=_0x37f241;let _0x383ab9=[];switch(_0x3e9890['id']){case g[_0x3a760f(0x22f)][_0x3a760f(0x3d4)]:{_0x383ab9=g['handleDeleteRangeMoveLeft'](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)]['DeleteRangeMoveUpCommandId']:{_0x383ab9=g[_0x3a760f(0x21e)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x1c7)]:{_0x383ab9=g[_0x3a760f(0x1e2)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x21c)]:{_0x383ab9=g[_0x3a760f(0x2b4)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x1c9)]:{_0x383ab9=g[_0x3a760f(0x3dd)](_0x3e9890,_0x510d33);break;}case g['EffectRefRangId'][_0x3a760f(0x18e)]:{_0x383ab9=g[_0x3a760f(0x22e)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x221)]:{_0x383ab9=g['handleMoveRange'](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x17f)]:{_0x383ab9=g[_0x3a760f(0x407)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x383)]:{_0x383ab9=g[_0x3a760f(0x2f9)](_0x3e9890,_0x510d33);break;}}const _0x44efad=g[_0x3a760f(0x2bc)](_0x383ab9,_0x510d33),_0x29d73f=this[_0x3a760f(0x3c7)][_0x3a760f(0x398)](_0x5e41a2);if(_0x29d73f&&_0x44efad){const _0x5ef974={..._0x29d73f,'range':_0x44efad};this[_0x3a760f(0x3c7)]['set'](_0x5e41a2,_0x5ef974),_0x47d587(()=>{const _0x146711=_0x3a760f,_0x4c1e2b=this[_0x146711(0x2a7)][_0x146711(0x3b6)](_0x44efad,_0x489a47=>(_0x4c1e2b[_0x146711(0x1d4)](),_0xc0a1ab(_0x489a47,_0x5e41a2,_0x50a260,_0x44efad)));_0x177e69[_0x146711(0x25e)](_0x4c1e2b);});}return{'redos':[],'undos':[]};};this[_0x37f241(0x3c7)][_0x37f241(0x247)]((_0x38d36e,_0x5eb15d)=>{const _0x81b8e3=_0x37f241,{range:_0x463b91,sheetID:_0x10ab7b}=_0x38d36e,_0x4166c7=this[_0x81b8e3(0x2a7)][_0x81b8e3(0x3b6)](_0x463b91,_0x570db0=>(_0x4166c7[_0x81b8e3(0x1d4)](),_0xc0a1ab(_0x570db0,_0x5eb15d,_0x10ab7b,_0x463b91)));_0x177e69['add'](_0x4166c7);});};this[_0x26163a(0x2cc)](a[_0x26163a(0x3c5)](this[_0x26163a(0x296)][_0x26163a(0x1d9)](()=>{_0x2632af();})));}[_0x570aba(0x3b9)](){const _0x299f5e=_0x570aba;var _0x3f7ae6,_0x7df8fa;if(this[_0x299f5e(0x37d)]=!0x0,((_0x3f7ae6=this[_0x299f5e(0x368)][_0x299f5e(0x21d)]())==null?void 0x0:_0x3f7ae6[_0x299f5e(0x2ed)]())!==this[_0x299f5e(0x397)])return;const _0x495ac6=(_0x7df8fa=this['_injector'][_0x299f5e(0x398)](g[_0x299f5e(0x1fb)])[_0x299f5e(0x303)]())==null?void 0x0:_0x7df8fa[0x0],_0x580376=this[_0x299f5e(0x368)][_0x299f5e(0x189)](a[_0x299f5e(0x18f)]['UNIVER_SHEET'])[_0x299f5e(0x261)]();_0x495ac6&&_0x580376&&this[_0x299f5e(0x24f)](_0x580376[_0x299f5e(0x29a)](),_0x495ac6);}[_0x570aba(0x1f0)](){const _0x3b7d8c=_0x570aba;this[_0x3b7d8c(0x37d)]=!0x1;}};Se=it([w(0x2,a['Inject'](a[_0x570aba(0x39c)])),w(0x3,a[_0x570aba(0x33e)](me)),w(0x4,a[_0x570aba(0x33e)](u[_0x570aba(0x17b)])),w(0x5,a[_0x570aba(0x1a5)]),w(0x6,a[_0x570aba(0x3e4)]),w(0x7,a[_0x570aba(0x33e)](g[_0x570aba(0x224)]))],Se);var at=Object[_0x570aba(0x31c)],ct=(_0x133a6c,_0x464c52,_0x545213,_0xa4ba30)=>{for(var _0x4c179d=_0xa4ba30>0x1?void 0x0:_0xa4ba30?at(_0x464c52,_0x545213):_0x464c52,_0x1b0e07=_0x133a6c['length']-0x1,_0x10fc63;_0x1b0e07>=0x0;_0x1b0e07--)(_0x10fc63=_0x133a6c[_0x1b0e07])&&(_0x4c179d=_0x10fc63(_0x4c179d)||_0x4c179d);return _0x4c179d;},ie=(_0x403c55,_0x3cf51a)=>(_0x2fe5ef,_0x2f93d1)=>_0x3cf51a(_0x2fe5ef,_0x2f93d1,_0x403c55);let x=class extends a[_0x570aba(0x338)]{constructor(_0x135e86,_0x93ef36,_0x40c810){const _0x22a92d=_0x570aba;super(),h(this,_0x22a92d(0x2c0),new Map()),h(this,_0x22a92d(0x3b7),new d[(_0x22a92d(0x203))]()),(this[_0x22a92d(0x368)]=_0x135e86,this[_0x22a92d(0x1f7)]=_0x93ef36,this[_0x22a92d(0x277)]=_0x40c810,this[_0x22a92d(0x31e)]());}[_0x570aba(0x1d4)](){const _0x19e2e2=_0x570aba;super['dispose'](),this[_0x19e2e2(0x3b7)]['complete'](),this[_0x19e2e2(0x2c0)]['forEach'](_0xb58025=>_0xb58025[_0x19e2e2(0x1d4)]());}[_0x570aba(0x403)](_0x252d3e){const _0x140674=_0x570aba;return this['_entities'][_0x140674(0x227)](_0x252d3e)?this[_0x140674(0x2c0)][_0x140674(0x398)](_0x252d3e)[_0x140674(0x3fd)]:this[_0x140674(0x3b7)][_0x140674(0x18d)](d[_0x140674(0x1a9)](_0x18192e=>_0x18192e['unitID']===_0x252d3e),d['switchMap'](_0xfbe247=>_0xfbe247['cursorInfo$']));}[_0x570aba(0x31e)](){const _0x326a63=_0x570aba;this[_0x326a63(0x368)][_0x326a63(0x315)](a[_0x326a63(0x18f)][_0x326a63(0x363)])['pipe'](d[_0x326a63(0x25a)](this[_0x326a63(0x2ad)]))[_0x326a63(0x1d9)](async _0x986106=>{const _0x2d594b=_0x326a63,_0x346ac8=_0x986106[_0x2d594b(0x2ed)](),_0x23feef=await this[_0x2d594b(0x3fe)](_0x346ac8);this['_entityInit$'][_0x2d594b(0x325)](_0x23feef),this[_0x2d594b(0x2c0)][_0x2d594b(0x1a2)](_0x346ac8,_0x23feef);}),this[_0x326a63(0x368)][_0x326a63(0x315)](a[_0x326a63(0x18f)][_0x326a63(0x212)])[_0x326a63(0x18d)](d['takeUntil'](this['dispose$']))[_0x326a63(0x18d)](d[_0x326a63(0x1a9)](_0x1d3c03=>!_0x1d3c03['getUnitId']()[_0x326a63(0x3f1)]('__')))[_0x326a63(0x1d9)](async _0x46131f=>{const _0x1c08b3=_0x326a63,_0x25cc9d=_0x46131f[_0x1c08b3(0x2ed)](),_0x46c528=await this[_0x1c08b3(0x391)](_0x25cc9d);this[_0x1c08b3(0x3b7)][_0x1c08b3(0x325)](_0x46c528),this[_0x1c08b3(0x2c0)]['set'](_0x25cc9d,_0x46c528);}),d[_0x326a63(0x1a7)](this[_0x326a63(0x368)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x326a63(0x212)]),this[_0x326a63(0x368)]['getTypeOfUnitDisposed$'](a[_0x326a63(0x18f)][_0x326a63(0x363)]))['pipe'](d[_0x326a63(0x25a)](this[_0x326a63(0x2ad)]))[_0x326a63(0x1d9)](_0x314edb=>{const _0x1af233=_0x326a63,_0x32abd3=_0x314edb['getUnitId'](),_0x3f2e31=this[_0x1af233(0x2c0)][_0x1af233(0x398)](_0x32abd3);_0x3f2e31&&(_0x3f2e31[_0x1af233(0x1d4)](),this[_0x1af233(0x2c0)][_0x1af233(0x28c)](_0x32abd3));});}async[_0x570aba(0x3fe)](_0x476774){const _0x4332eb=_0x570aba,_0x5eed85=await this[_0x4332eb(0x277)][_0x4332eb(0x1b3)](_0x476774),_0x145067=this[_0x4332eb(0x1f7)]['createInstance'](Se,_0x476774,_0x5eed85);return _0x145067[_0x4332eb(0x20f)](),_0x145067;}async[_0x570aba(0x391)](_0x411f7a){const _0x48611b=_0x570aba,_0x5e000d=await this[_0x48611b(0x277)][_0x48611b(0x1b3)](_0x411f7a),_0xafd45b=this[_0x48611b(0x1f7)][_0x48611b(0x2a9)](fe,_0x411f7a,_0x5e000d);return _0xafd45b['init'](),_0xafd45b;}};x=ct([ie(0x0,a[_0x570aba(0x1a5)]),ie(0x1,a[_0x570aba(0x33e)](a[_0x570aba(0x39c)])),ie(0x2,a['Inject'](u[_0x570aba(0x29d)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x9c58fc,_0x266739){const _0x21bb98=_0x570aba;let {radius:_0x2d6278,width:_0x1dc138,height:_0xf87152}=_0x266739;_0x2d6278=_0x2d6278!=null?_0x2d6278:0x0,_0x1dc138=_0x1dc138!=null?_0x1dc138:0x1e,_0xf87152=_0xf87152!=null?_0xf87152:0x1e;let _0x4bdb17=0x0,_0x1a5a59=0x0,_0x5ce4cb=0x0;_0x4bdb17=_0x1a5a59=_0x5ce4cb=Math[_0x21bb98(0x36b)](_0x2d6278,_0x1dc138/0x2,_0xf87152/0x2),_0x9c58fc[_0x21bb98(0x355)](),_0x9c58fc[_0x21bb98(0x2b2)](_0x4bdb17,0x0),_0x9c58fc[_0x21bb98(0x26f)](_0x1dc138-_0x1a5a59,0x0),_0x9c58fc[_0x21bb98(0x1ad)](_0x1dc138-_0x1a5a59,_0x1a5a59,_0x1a5a59,Math['PI']*0x3/0x2,0x0,!0x1),_0x9c58fc[_0x21bb98(0x26f)](_0x1dc138,_0xf87152-_0x5ce4cb),_0x9c58fc[_0x21bb98(0x1ad)](_0x1dc138-_0x5ce4cb,_0xf87152-_0x5ce4cb,_0x5ce4cb,0x0,Math['PI']/0x2,!0x1),_0x9c58fc[_0x21bb98(0x26f)](0x0,_0xf87152),_0x9c58fc[_0x21bb98(0x26f)](0x0,_0x4bdb17),_0x9c58fc['arc'](_0x4bdb17,_0x4bdb17,_0x4bdb17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x9c58fc['closePath'](),_0x266739[_0x21bb98(0x40b)]&&(_0x9c58fc[_0x21bb98(0x380)](),_0x9c58fc['fillStyle']=_0x266739['fill'],_0x266739['fillRule']===_0x21bb98(0x342)?_0x9c58fc[_0x21bb98(0x40b)](_0x21bb98(0x342)):_0x9c58fc[_0x21bb98(0x40b)](),_0x9c58fc[_0x21bb98(0x35e)]());}class ee extends p[_0x570aba(0x36e)]{constructor(_0x254f3f,_0x40514c){const _0x5ada1e=_0x570aba;super(_0x254f3f,_0x40514c),h(this,_0x5ada1e(0x24d)),h(this,_0x5ada1e(0x250)),(this[_0x5ada1e(0x24d)]=_0x40514c==null?void 0x0:_0x40514c[_0x5ada1e(0x24d)],this['text']=_0x40514c==null?void 0x0:_0x40514c[_0x5ada1e(0x250)]);}static[_0x570aba(0x1d6)](_0x1c13f0,_0xfb8263){const _0x4c6c05=_0x570aba,{text:_0x580564,color:_0x47a219}=_0xfb8263;_0x1c13f0['save'](),_0x1c13f0[_0x4c6c05(0x3f6)]=_0x4c6c05(0x30c);const _0xd59ef2=_0x1c13f0[_0x4c6c05(0x201)](_0x580564)[_0x4c6c05(0x266)],_0x268fd6=Math[_0x4c6c05(0x36b)](_0xd59ef2+0x2*ne,Re);_t(_0x1c13f0,{'height':K,'radius':0x4,'width':_0x268fd6,'fill':_0x47a219}),_0x1c13f0[_0x4c6c05(0x3f0)]='#FFF';const _0x455f68=ne,_0x3a1c72=K-lt,_0x4979b4=Re-0x2*ne;if(_0xd59ef2>_0x4979b4){let _0xb5a358='',_0x189fa7=0x0;for(const _0x2a41be of _0x580564){const _0x3b5a51=_0x1c13f0[_0x4c6c05(0x201)](_0x2a41be)[_0x4c6c05(0x266)];if(_0x189fa7+_0x3b5a51<=_0x4979b4-_0x1c13f0[_0x4c6c05(0x201)](_0x4c6c05(0x1a4))[_0x4c6c05(0x266)])_0xb5a358+=_0x2a41be,_0x189fa7+=_0x3b5a51;else{_0xb5a358+=_0x4c6c05(0x1a4);break;}}_0x1c13f0['fillText'](_0xb5a358,_0x455f68,_0x3a1c72);}else _0x1c13f0[_0x4c6c05(0x3ea)](_0x580564,_0x455f68,_0x3a1c72);_0x1c13f0[_0x4c6c05(0x35e)]();}['_draw'](_0x52b1f5){const _0x435c2b=_0x570aba;ee[_0x435c2b(0x1d6)](_0x52b1f5,this);}}const re=_0x570aba(0x343),ht='collab-text-range-',ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x570aba(0x2fa);class De{constructor(_0x47f0a2,_0x4062c2,_0x11b276,_0x389d8c){const _0x5c7e11=_0x570aba;h(this,_0x5c7e11(0x2d0),[]),h(this,'_anchor',null),h(this,_0x5c7e11(0x1cb),null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,_0x5c7e11(0x2fd),null),(this[_0x5c7e11(0x1a6)]=_0x47f0a2,this[_0x5c7e11(0x183)]=_0x4062c2,this['_docSkeleton']=_0x11b276,this[_0x5c7e11(0x347)]=_0x389d8c,this['_render']());}set[_0x570aba(0x244)](_0x292f1d){const _0x5e36e9=_0x570aba;_0x292f1d?(this[_0x5e36e9(0x1a0)]&&this[_0x5e36e9(0x1a0)][_0x5e36e9(0x3a8)](),this[_0x5e36e9(0x1cb)]&&this[_0x5e36e9(0x1cb)][_0x5e36e9(0x335)]()):(this[_0x5e36e9(0x1a0)]&&this[_0x5e36e9(0x1a0)][_0x5e36e9(0x335)](),this[_0x5e36e9(0x1cb)]&&this[_0x5e36e9(0x1cb)][_0x5e36e9(0x3a8)]());}[_0x570aba(0x1d4)](){const _0x24ca96=_0x570aba;for(const _0x10c57f of this[_0x24ca96(0x2d0)])_0x10c57f[_0x24ca96(0x1d4)]();this['_textBubble']&&this[_0x24ca96(0x1cb)][_0x24ca96(0x1d4)](),this[_0x24ca96(0x1a0)]&&this[_0x24ca96(0x1a0)][_0x24ca96(0x1d4)](),this['_anchor']&&this[_0x24ca96(0x3bb)]['dispose'](),this[_0x24ca96(0x2fd)]&&this['_eventUnsubscribe']();}[_0x570aba(0x340)](){const _0x37fd47=_0x570aba;var _0x3943ea;const {_docSkeleton:_0x4d8007,_document:_0x440d77}=this,{color:_0x58c635,name:_0x413f1d,ranges:_0x15dd5b}=this[_0x37fd47(0x1a6)],_0x33ef37=_0x440d77[_0x37fd47(0x1bb)](),{docsLeft:_0xc337d1,docsTop:_0x53d018}=_0x33ef37,_0xbb69e0=new b[(_0x37fd47(0x1d2))](_0x33ef37,_0x4d8007);for(const {startOffset:_0x4d4bf4,endOffset:_0x1ccc2a,rangeType:_0x4a21bb,segmentId:_0x46bff6,segmentPage:_0x2af7ca,collapsed:_0x3b9722,isActive:_0xa3ff4}of _0x15dd5b){const _0x180ed4=_0x4d8007[_0x37fd47(0x319)](_0x4d4bf4,!0x0,_0x46bff6,_0x2af7ca);let _0x254d2f=_0x4d8007[_0x37fd47(0x319)](_0x1ccc2a,!0x0,_0x46bff6,_0x2af7ca);if(_0x254d2f==null&&(_0x254d2f=_0x4d8007[_0x37fd47(0x319)](_0x1ccc2a-0x1,!0x1,_0x46bff6,_0x2af7ca)),_0xa3ff4){const {contentBoxPointGroup:_0x5d9328}=_0xbb69e0[_0x37fd47(0x190)](_0x254d2f,_0x254d2f);if(_0x5d9328['length']===0x0)continue;this['_drawAnchor'](_0x58c635,_0x5d9328,_0xc337d1,_0x53d018,_0x413f1d),this[_0x37fd47(0x2fd)]=this[_0x37fd47(0x2c1)]();}if(_0x180ed4&&_0x254d2f){if(_0x4a21bb===a[_0x37fd47(0x275)][_0x37fd47(0x1f3)]){const _0x33420f=new b[(_0x37fd47(0x297))](_0x33ef37,_0x4d8007),{pointGroup:_0x17a6e7}=(_0x3943ea=_0x33420f[_0x37fd47(0x190)](_0x180ed4,_0x254d2f))!=null?_0x3943ea:{};if(_0x17a6e7==null||_0x17a6e7[_0x37fd47(0x214)]===0x0)continue;this[_0x37fd47(0x2dd)](_0x58c635,_0x17a6e7,_0xc337d1,_0x53d018);}else{if(!_0x3b9722){const {borderBoxPointGroup:_0x3e0bc1}=_0xbb69e0[_0x37fd47(0x190)](_0x180ed4,_0x254d2f);if(_0x3e0bc1['length']===0x0)continue;this[_0x37fd47(0x1d0)](_0x58c635,_0x3e0bc1,_0xc337d1,_0x53d018);}}}}}[_0x570aba(0x2dc)](_0x452665,_0x4b362e,_0x56fdfa,_0x37555c,_0x12bed0){const _0x4e91ac=_0x570aba,_0x2f3031=this['_getAnchorBounding'](_0x4b362e),{left:_0x390445,top:_0x40a7f4,height:_0x301d28}=_0x2f3031,_0x5c97aa=this[_0x4e91ac(0x2e7)](),_0x23fd02=ft/_0x5c97aa,_0x19122a=new p[(_0x4e91ac(0x344))](re+a[_0x4e91ac(0x274)][_0x4e91ac(0x2d3)](k),{'left':_0x390445+_0x56fdfa-_0x23fd02,'top':_0x40a7f4+_0x37555c,'height':_0x301d28,'width':dt,'fill':_0x452665||p['getColor'](a[_0x4e91ac(0x3f9)][_0x4e91ac(0x286)],0x0),'strokeWidth':_0x23fd02,'stroke':St,'evented':!0x0});this['_anchor']=_0x19122a,this[_0x4e91ac(0x183)][_0x4e91ac(0x3cb)](_0x19122a,b[_0x4e91ac(0x3a2)]);const _0x56bb6e=new p['Rect'](re+a[_0x4e91ac(0x274)][_0x4e91ac(0x2d3)](k),{'left':_0x390445+_0x56fdfa-_0x23fd02,'top':_0x40a7f4+_0x37555c-oe/0x2,'height':oe,'width':oe,'fill':_0x452665||p[_0x4e91ac(0x26c)](a[_0x4e91ac(0x3f9)][_0x4e91ac(0x286)],0x0),'strokeWidth':0x0,'stroke':_0x452665||p[_0x4e91ac(0x26c)](a[_0x4e91ac(0x3f9)][_0x4e91ac(0x286)],0x0),'evented':!0x1});this[_0x4e91ac(0x1a0)]=_0x56bb6e,this[_0x4e91ac(0x183)][_0x4e91ac(0x3cb)](_0x56bb6e,b[_0x4e91ac(0x3a2)]);const _0xd5ece9=new ee(re+a[_0x4e91ac(0x274)]['generateRandomId'](k),{'left':_0x390445+_0x56fdfa-_0x23fd02,'top':_0x40a7f4+_0x37555c-K,'text':_0x12bed0,'color':_0x452665});this['_textBubble']=_0xd5ece9,this[_0x4e91ac(0x183)][_0x4e91ac(0x3cb)](_0xd5ece9,b[_0x4e91ac(0x3a2)]),this[_0x4e91ac(0x244)]=!0x1;}['_handleHover'](){const _0x10f352=_0x570aba,_0x489932=this[_0x10f352(0x3bb)][_0x10f352(0x3db)][_0x10f352(0x2b8)](()=>{const _0x1142b3=_0x10f352;this[_0x1142b3(0x244)]=!0x0;}),_0x16e1fc=this[_0x10f352(0x3bb)][_0x10f352(0x406)]['subscribeEvent'](()=>{const _0x3a3afb=_0x10f352;this[_0x3a3afb(0x1a3)]&&clearTimeout(this[_0x3a3afb(0x1a3)]),this['_hideTimer']=setTimeout(()=>{const _0x50b5c8=_0x3a3afb;this[_0x50b5c8(0x244)]=!0x1;},0x7d0);});return()=>{const _0xca9826=_0x10f352;_0x489932[_0xca9826(0x3d2)](),_0x16e1fc[_0xca9826(0x3d2)]();};}[_0x570aba(0x1d0)](_0x4fd861,_0x55e8c7,_0x5094f8,_0x234371){const _0x2b5a41=_0x570aba,_0x25c06c=new a[(_0x2b5a41(0x33d))](_0x4fd861)[_0x2b5a41(0x243)](0.2)[_0x2b5a41(0x30f)](),_0x4a7f5f=new p['RegularPolygon'](ht+a['Tools'][_0x2b5a41(0x2d3)](k),{'pointsGroup':_0x55e8c7,'fill':_0x25c06c||p[_0x2b5a41(0x26c)](a[_0x2b5a41(0x3f9)][_0x2b5a41(0x286)],0.2),'left':_0x5094f8,'top':_0x234371,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2b5a41(0x2d0)]['push'](_0x4a7f5f),this[_0x2b5a41(0x183)][_0x2b5a41(0x3cb)](_0x4a7f5f,b['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x430982,_0x5c7b31,_0x4be411,_0x104a32){const _0x505a90=_0x570aba,_0x5ce8e3=new a[(_0x505a90(0x33d))](_0x430982)[_0x505a90(0x243)](0.2)['toRgbString'](),_0x447f01=new p['RegularPolygon'](ut+a['Tools'][_0x505a90(0x2d3)](k),{'pointsGroup':_0x5c7b31,'fill':_0x5ce8e3||p['getColor'](a[_0x505a90(0x3f9)][_0x505a90(0x286)],0.2),'left':_0x4be411,'top':_0x104a32,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x505a90(0x2d0)][_0x505a90(0x293)](_0x447f01),this[_0x505a90(0x183)][_0x505a90(0x3cb)](_0x447f01,b[_0x505a90(0x3a2)]);}[_0x570aba(0x314)](_0xe979e6){const _0x3ff180=_0xe979e6[0x0],_0x21bcca=_0x3ff180[0x0],_0x5b5590=_0x3ff180[0x2],{x:_0x4d140a,y:_0x16cb19}=_0x21bcca,{x:_0x273ff0,y:_0x3dcbba}=_0x5b5590;return{'left':_0x4d140a,'top':_0x16cb19,'width':_0x273ff0-_0x4d140a,'height':_0x3dcbba-_0x16cb19};}[_0x570aba(0x2e7)](){const _0x3ff370=_0x570aba,{scaleX:_0x1d1c5f,scaleY:_0x139735}=this['_scene'][_0x3ff370(0x3e1)]();return Math[_0x3ff370(0x337)](_0x1d1c5f,_0x139735);}}var It=Object[_0x570aba(0x31c)],vt=(_0x5580a3,_0x47f99c,_0xc9c669,_0x5874fd)=>{const _0x232a37=_0x570aba;for(var _0x4542fe=_0x5874fd>0x1?void 0x0:_0x5874fd?It(_0x47f99c,_0xc9c669):_0x47f99c,_0x1d61a0=_0x5580a3[_0x232a37(0x214)]-0x1,_0x5671f1;_0x1d61a0>=0x0;_0x1d61a0--)(_0x5671f1=_0x5580a3[_0x1d61a0])&&(_0x4542fe=_0x5671f1(_0x4542fe)||_0x4542fe);return _0x4542fe;},W=(_0x3f9ea2,_0x394c58)=>(_0x4c9806,_0x4f6a14)=>_0x394c58(_0x4c9806,_0x4f6a14,_0x3f9ea2);let Ie=class extends a[_0x570aba(0x338)]{constructor(_0x36dfc4,_0x186257,_0x340153,_0x2033b4,_0x939ec4){const _0x22b714=_0x570aba;super(),h(this,_0x22b714(0x366),[]),h(this,_0x22b714(0x285),[]),(this['_context']=_0x36dfc4,this['_docSkeletonManagerService']=_0x186257,this[_0x22b714(0x288)]=_0x340153,this[_0x22b714(0x204)]=_0x2033b4,this[_0x22b714(0x1b5)]=_0x939ec4,this[_0x22b714(0x31e)]());}[_0x570aba(0x31e)](){const _0x7e5477=_0x570aba,_0x54d9b7=this[_0x7e5477(0x2f7)][_0x7e5477(0x276)],_0x2d4528=this[_0x7e5477(0x32a)];this[_0x7e5477(0x2cc)](d[_0x7e5477(0x34d)]([this[_0x7e5477(0x288)][_0x7e5477(0x403)](_0x54d9b7),this['_themeService']['currentTheme$']])[_0x7e5477(0x18d)]($[_0x7e5477(0x2fb)](([_0x407380,_0x2852b1])=>({'skeleton':_0x2d4528[_0x7e5477(0x1f8)](),'cursors':[..._0x407380[_0x7e5477(0x279)]()][_0x7e5477(0x1df)](_0x31a38e=>({..._0x31a38e,'color':this[_0x7e5477(0x1b5)][_0x7e5477(0x3f4)](_0x31a38e[_0x7e5477(0x24d)])}))})))[_0x7e5477(0x1d9)](_0x439fca=>{const _0x27f17f=_0x7e5477;if(this[_0x27f17f(0x33c)](),_0x439fca){const {skeleton:_0x52bf18,cursors:_0x59fec9}=_0x439fca;this[_0x27f17f(0x20a)](_0x52bf18,_0x59fec9);}})),this[_0x7e5477(0x345)](),this[_0x7e5477(0x354)]();}[_0x570aba(0x20a)](_0xb9f520,_0x53458a){const _0x9f7ac0=_0x570aba,{scene:_0x2c6820,mainComponent:_0x959aa7}=this[_0x9f7ac0(0x2f7)],_0x915173=_0x53458a[_0x9f7ac0(0x2fb)](_0x511c45=>new De(_0x511c45,_0x2c6820,_0xb9f520,_0x959aa7));this[_0x9f7ac0(0x366)]=_0x915173,this[_0x9f7ac0(0x285)]=_0x53458a;}[_0x570aba(0x37a)](){const _0x30d690=_0x570aba;this[_0x30d690(0x33c)]();const {scene:_0x1c758b,mainComponent:_0x703a98}=this[_0x30d690(0x2f7)],_0x570fdc=this[_0x30d690(0x32a)][_0x30d690(0x1f8)](),_0x53957e=this[_0x30d690(0x285)][_0x30d690(0x2fb)](_0x1ac476=>new De(_0x1ac476,_0x1c758b,_0x570fdc,_0x703a98));this['_cursorShapes']=_0x53957e;}[_0x570aba(0x33c)](){const _0x261e9c=_0x570aba;this[_0x261e9c(0x366)][_0x261e9c(0x247)](_0x2b0aba=>_0x2b0aba[_0x261e9c(0x1d4)]()),this[_0x261e9c(0x366)]=[];}['_initCommandExecutedListener'](){const _0xa0550c=_0x570aba,_0x414c9d=[b[_0xa0550c(0x39e)]['id']];this[_0xa0550c(0x2cc)](this[_0xa0550c(0x204)]['onCommandExecuted'](_0x2c7e48=>{const _0xa32f03=_0xa0550c;_0x414c9d[_0xa32f03(0x34a)](_0x2c7e48['id'])&&_0x2c7e48[_0xa32f03(0x2de)]['unitId']===this[_0xa32f03(0x2f7)][_0xa32f03(0x276)]&&this[_0xa32f03(0x37a)]();}));}[_0x570aba(0x345)](){const _0x4c3b52=_0x570aba;this[_0x4c3b52(0x2cc)](a[_0x4c3b52(0x3af)](this[_0x4c3b52(0x2f7)][_0x4c3b52(0x17e)][_0x4c3b52(0x30a)])[_0x4c3b52(0x18d)]($[_0x4c3b52(0x1a9)](_0x71147b=>_0x71147b[_0x4c3b52(0x385)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x4c3b52(0x2ae)]),$[_0x4c3b52(0x3fa)](0x10))[_0x4c3b52(0x1d9)](()=>{const _0x17c87f=_0x4c3b52;this[_0x17c87f(0x37a)]();}));}};Ie=vt([W(0x1,a[_0x570aba(0x33e)](Y[_0x570aba(0x1dc)])),W(0x2,a[_0x570aba(0x33e)](x)),W(0x3,a[_0x570aba(0x3e4)]),W(0x4,a['Inject'](a[_0x570aba(0x1fc)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p['Shape']{constructor(_0x1e9d9c,_0x4571ce){const _0x4194a8=_0x570aba;super(_0x1e9d9c,_0x4571ce),h(this,_0x4194a8(0x1a1)),h(this,_0x4194a8(0x22d),!0x1),h(this,_0x4194a8(0x1c1)),h(this,'_name',''),h(this,_0x4194a8(0x1cf),'top'),h(this,_0x4194a8(0x2b6)),(_0x4571ce&&this[_0x4194a8(0x1f9)](_0x4571ce),this[_0x4194a8(0x3db)][_0x4194a8(0x2b8)](()=>this[_0x4194a8(0x1f9)]({'hovered':!0x0})),this[_0x4194a8(0x406)][_0x4194a8(0x2b8)](()=>this[_0x4194a8(0x1f9)]({'hovered':!0x1})));}[_0x570aba(0x1f9)](_0x53484d){const _0x302ff9=_0x570aba;var _0x55bf5d,_0x37e5a3,_0x4130b6,_0x40b34f,_0x126a1e,_0x22ef0f;this[_0x302ff9(0x1a1)]=(_0x55bf5d=_0x53484d[_0x302ff9(0x24d)])!=null?_0x55bf5d:this[_0x302ff9(0x1a1)],this[_0x302ff9(0x22d)]=(_0x37e5a3=_0x53484d[_0x302ff9(0x1bf)])!=null?_0x37e5a3:this[_0x302ff9(0x22d)],this['_range']=(_0x4130b6=_0x53484d[_0x302ff9(0x1c5)])!=null?_0x4130b6:this['_range'],this['_name']=(_0x40b34f=_0x53484d['name'])!=null?_0x40b34f:this[_0x302ff9(0x349)],this[_0x302ff9(0x1cf)]=(_0x126a1e=_0x53484d['labelPosition'])!=null?_0x126a1e:this[_0x302ff9(0x1cf)],this[_0x302ff9(0x2b6)]=(_0x22ef0f=_0x53484d['backgroundColor'])!=null?_0x22ef0f:this[_0x302ff9(0x2b6)],this[_0x302ff9(0x2c9)]({'width':_0x53484d[_0x302ff9(0x266)],'height':_0x53484d['height']});}[_0x570aba(0x389)](_0x3fb0bd){const _0x4efcf7=_0x570aba,{row:_0x48182e,column:_0x14bc9e}=_0x3fb0bd;if(_0x48182e>=this['_range'][_0x4efcf7(0x3f7)]&&_0x48182e<=this[_0x4efcf7(0x1c1)]['endRow']&&_0x14bc9e>=this[_0x4efcf7(0x1c1)]['startColumn']&&_0x14bc9e<=this[_0x4efcf7(0x1c1)]['endColumn']){this[_0x4efcf7(0x1f9)]({'hovered':!0x0});return;}this[_0x4efcf7(0x1f9)]({'hovered':!0x1});}[_0x570aba(0x1a8)](_0xf83195){return!0x1;}[_0x570aba(0x364)](_0x19b8a0){const _0x7b9b8e=_0x570aba;p[_0x7b9b8e(0x344)][_0x7b9b8e(0x1d6)](_0x19b8a0,{'width':this[_0x7b9b8e(0x266)],'height':this[_0x7b9b8e(0x36c)],'strokeWidth':mt,'stroke':this[_0x7b9b8e(0x1a1)],'evented':!0x1,'fill':this[_0x7b9b8e(0x2b6)]}),this[_0x7b9b8e(0x22d)]&&(_0x19b8a0[_0x7b9b8e(0x380)](),_0x19b8a0['transform'](0x1,0x0,0x0,0x1,this[_0x7b9b8e(0x266)],this[_0x7b9b8e(0x1cf)]===_0x7b9b8e(0x3ab)?0x0:-0x14),ee[_0x7b9b8e(0x1d6)](_0x19b8a0,{'text':this[_0x7b9b8e(0x349)],'color':this[_0x7b9b8e(0x1a1)]}),_0x19b8a0['restore']());}}var Ct=Object[_0x570aba(0x31c)],pt=(_0x2cc634,_0x54ecbb,_0x20bc91,_0xaf07a)=>{for(var _0x5b2b6b=_0xaf07a>0x1?void 0x0:_0xaf07a?Ct(_0x54ecbb,_0x20bc91):_0x54ecbb,_0x51b575=_0x2cc634['length']-0x1,_0x2d7e7c;_0x51b575>=0x0;_0x51b575--)(_0x2d7e7c=_0x2cc634[_0x51b575])&&(_0x5b2b6b=_0x2d7e7c(_0x5b2b6b)||_0x5b2b6b);return _0x5b2b6b;},ae=(_0x54ea3e,_0x125540)=>(_0x10ba05,_0x3cf1a9)=>_0x125540(_0x10ba05,_0x3cf1a9,_0x54ea3e);const bt=0x1389;let ve=class extends a[_0x570aba(0x338)]{constructor(_0x4caaa2,_0x4c2d58,_0x3784b7,_0xa7beda){const _0xe3d57b=_0x570aba;super(),h(this,'_cursors',new Set()),h(this,_0xe3d57b(0x2cb),null),(this[_0xe3d57b(0x2f7)]=_0x4caaa2,this[_0xe3d57b(0x181)]=_0x4c2d58,this[_0xe3d57b(0x288)]=_0x3784b7,this[_0xe3d57b(0x1b5)]=_0xa7beda,this['_init']());}['_init'](){const _0x64672b=_0x570aba;this[_0x64672b(0x181)][_0x64672b(0x37c)][_0x64672b(0x18d)]($[_0x64672b(0x25a)](this[_0x64672b(0x2ad)]),$[_0x64672b(0x1c2)](_0x1899e1=>{const _0x76ed63=_0x64672b;if(_0x1899e1){const _0x5ab0a7=_0x1899e1['sheetId'];return d[_0x76ed63(0x34d)](this['_collabCursorController']['getCollabCursors$'](this[_0x76ed63(0x2f7)]['unitId']),this[_0x76ed63(0x1b5)][_0x76ed63(0x3ee)])['pipe']($['map'](([_0x45be67,_0x5619db])=>{const _0x18f6ea=_0x76ed63,_0x3f05de=new Map();return _0x45be67[_0x18f6ea(0x247)]((_0x1947ce,_0x163568)=>{const _0x2743ba=_0x18f6ea;if(_0x1947ce['sheetID']===_0x5ab0a7){const _0x34141a={..._0x1947ce};_0x34141a[_0x2743ba(0x24d)]=this[_0x2743ba(0x1b5)][_0x2743ba(0x3f4)](_0x1947ce['color']),_0x3f05de['set'](_0x163568,_0x34141a);}}),{'skeleton':_0x1899e1,'cursors':_0x3f05de};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x58ceb4,cursors:_0x264151})=>{const _0x4a1dbc=_0x64672b;this[_0x4a1dbc(0x33c)](),_0x58ceb4&&this['_updateCollabCursors'](_0x58ceb4,_0x264151);}),this[_0x64672b(0x181)][_0x64672b(0x37c)][_0x64672b(0x1d9)](_0x5e92df=>{const _0x43b747=_0x64672b;if(_0x5e92df==null)return;const {skeleton:_0x507ff2}=_0x5e92df,{scene:_0x30f1fb}=this[_0x43b747(0x2f7)];_0x30f1fb[_0x43b747(0x263)][_0x43b747(0x2b8)](a[_0x43b747(0x329)](_0x4412be=>{const _0x3b4433=_0x43b747;var _0x2c153f,_0x5b9fc2;const {offsetX:_0x31943f,offsetY:_0x2c92dd}=_0x4412be,{x:_0x2420eb,y:_0xf9a405}=_0x30f1fb[_0x3b4433(0x2a1)](p[_0x3b4433(0x278)][_0x3b4433(0x26b)]([_0x31943f,_0x2c92dd])),{scaleX:_0x39f2cb,scaleY:_0x50c786}=_0x30f1fb['getAncestorScale'](),_0xa89b1e=_0x30f1fb[_0x3b4433(0x321)](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x261806=_0x30f1fb['getVpScrollXYInfoByPosToVp'](p[_0x3b4433(0x278)][_0x3b4433(0x26b)]([_0x2420eb,_0xf9a405]),_0xa89b1e),_0x4d6694=_0x507ff2['getCellPositionByOffset'](_0x31943f,_0x2c92dd,_0x39f2cb,_0x50c786,_0x261806);((_0x2c153f=this['_lastPointer'])==null?void 0x0:_0x2c153f[_0x3b4433(0x26e)])===_0x4d6694[_0x3b4433(0x26e)]&&((_0x5b9fc2=this[_0x3b4433(0x2cb)])==null?void 0x0:_0x5b9fc2[_0x3b4433(0x2f0)])===_0x4d6694[_0x3b4433(0x2f0)]||this[_0x3b4433(0x285)][_0x3b4433(0x247)](_0x826d6e=>{const _0x51640c=_0x3b4433;_0x826d6e[_0x51640c(0x389)](_0x4d6694);});},0x64));});}[_0x570aba(0x20a)](_0x29e0d2,_0x208b62){const _0x4ea1e9=_0x570aba;var _0x4fbda6;const _0x1f27a0=(_0x4fbda6=this[_0x4ea1e9(0x181)][_0x4ea1e9(0x3cc)]())==null?void 0x0:_0x4fbda6[_0x4ea1e9(0x27c)];if(!_0x1f27a0)return;const _0x2663a5=this[_0x4ea1e9(0x21f)]();if(!_0x2663a5)return;this['_cursors'][_0x4ea1e9(0x247)](_0x5f34ef=>{const _0x36bcf8=_0x4ea1e9;_0x5f34ef[_0x36bcf8(0x3f8)]();});const {scene:_0x1ad430}=_0x2663a5,_0x3e01db=Et(Array['from'](_0x208b62[_0x4ea1e9(0x279)]()))[_0x4ea1e9(0x2fb)](_0x5d65c0=>{const _0x57d11a=_0x4ea1e9,{color:_0xa4a39b,range:_0x1ec1d3,name:_0x241045,selection:_0x58b809,sheetID:_0x204ce7}=_0x5d65c0,{startColumn:_0x5b6ee8,startRow:_0x170422,endColumn:_0xbcd041,endRow:_0xa71976}=_0x1ec1d3,_0x20f7d2=X[_0x57d11a(0x1c3)](_0x170422,_0x5b6ee8,_0x1ad430,_0x1f27a0),_0x3a3bc7=X[_0x57d11a(0x1c3)](_0xa71976,_0xbcd041,_0x1ad430,_0x1f27a0),{columnHeaderHeightAndMarginTop:_0x250570}=_0x1f27a0,{startX:_0x348737,startY:_0x6cb742}=_0x20f7d2,{endX:_0x5b906a,endY:_0x2effaf}=_0x3a3bc7,_0x2a59ad=_0x5b906a-_0x348737,_0x28f684=_0x2effaf-_0x6cb742,_0xe2b983={'labelPosition':_0x6cb742-_0x250570>=K?_0x57d11a(0x40a):_0x57d11a(0x3ab),'sheetID':_0x204ce7,'range':_0x1ec1d3,'color':_0xa4a39b,'name':_0x241045,'selection':_0x58b809,'left':_0x348737,'top':_0x6cb742,'width':_0x2a59ad,'height':_0x28f684,'evented':!0x1,'zIndex':bt};return new Ae(_0x241045,_0xe2b983);});_0x1ad430[_0x4ea1e9(0x22c)](_0x3e01db,gt),this['_cursors']=new Set(_0x3e01db);}[_0x570aba(0x33c)](){const _0x2a7062=_0x570aba;var _0x139022;(_0x139022=this[_0x2a7062(0x285)])==null||_0x139022[_0x2a7062(0x247)](_0x1225b9=>_0x1225b9['dispose']());}[_0x570aba(0x21f)](){const _0x5611cd=_0x570aba;return X[_0x5611cd(0x32d)](this['_context'][_0x5611cd(0x356)],this[_0x5611cd(0x2f7)]);}};ve=pt([ae(0x1,a['Inject'](X[_0x570aba(0x305)])),ae(0x2,a[_0x570aba(0x33e)](x)),ae(0x3,a[_0x570aba(0x33e)](a[_0x570aba(0x1fc)]))],ve);function Et(_0x376719){const _0x30293f=_0x570aba,_0x29b8f0=new Map();return _0x376719[_0x30293f(0x247)](_0x80dafd=>{const _0x13ab43=_0x30293f;if(_0x29b8f0['has'](_0x80dafd[_0x13ab43(0x19c)])){const _0x397795=_0x29b8f0[_0x13ab43(0x398)](_0x80dafd[_0x13ab43(0x19c)]);_0x397795[_0x13ab43(0x19b)]+=',\x20'+_0x80dafd[_0x13ab43(0x19b)];}else _0x29b8f0[_0x13ab43(0x1a2)](_0x80dafd['selection'],_0x80dafd);}),Array[_0x30293f(0x320)](_0x29b8f0[_0x30293f(0x279)]());}var E=function(){const _0x44c8ca=_0x570aba;return E=Object[_0x44c8ca(0x219)]||function(_0x320518){const _0xf7bbdf=_0x44c8ca;for(var _0x48a711,_0x1b9f7b=0x1,_0x3abbd1=arguments[_0xf7bbdf(0x214)];_0x1b9f7b<_0x3abbd1;_0x1b9f7b++){_0x48a711=arguments[_0x1b9f7b];for(var _0x5a6027 in _0x48a711)Object[_0xf7bbdf(0x282)][_0xf7bbdf(0x246)][_0xf7bbdf(0x210)](_0x48a711,_0x5a6027)&&(_0x320518[_0x5a6027]=_0x48a711[_0x5a6027]);}return _0x320518;},E[_0x44c8ca(0x2e9)](this,arguments);},Tt=function(_0x57d7a5,_0x3dfc79){const _0x1995c2=_0x570aba;var _0x414b3f={};for(var _0x1ea616 in _0x57d7a5)Object[_0x1995c2(0x282)][_0x1995c2(0x246)]['call'](_0x57d7a5,_0x1ea616)&&_0x3dfc79[_0x1995c2(0x308)](_0x1ea616)<0x0&&(_0x414b3f[_0x1ea616]=_0x57d7a5[_0x1ea616]);if(_0x57d7a5!=null&&typeof Object['getOwnPropertySymbols']==_0x1995c2(0x249)){for(var _0x338bdd=0x0,_0x1ea616=Object[_0x1995c2(0x2b5)](_0x57d7a5);_0x338bdd<_0x1ea616['length'];_0x338bdd++)_0x3dfc79[_0x1995c2(0x308)](_0x1ea616[_0x338bdd])<0x0&&Object[_0x1995c2(0x282)][_0x1995c2(0x2e0)][_0x1995c2(0x210)](_0x57d7a5,_0x1ea616[_0x338bdd])&&(_0x414b3f[_0x1ea616[_0x338bdd]]=_0x57d7a5[_0x1ea616[_0x338bdd]]);}return _0x414b3f;},pe=M[_0x570aba(0x3d6)](function(_0x515195,_0x2fa4b3){const _0x3483ce=_0x570aba;var _0x414918=_0x515195[_0x3483ce(0x270)],_0x18380c=_0x515195['id'],_0x495b44=_0x515195[_0x3483ce(0x400)],_0x5442cf=_0x515195[_0x3483ce(0x2c3)],_0x5383f0=Tt(_0x515195,['icon','id',_0x3483ce(0x400),_0x3483ce(0x2c3)]),_0x5bddec=_0x3483ce(0x3ef)[_0x3483ce(0x294)](_0x18380c,'\x20')[_0x3483ce(0x294)](_0x495b44||'')[_0x3483ce(0x34b)](),_0x12748b=M[_0x3483ce(0x1db)]('_'[_0x3483ce(0x294)](Dt()));return we(_0x414918,''[_0x3483ce(0x294)](_0x18380c),{'defIds':_0x414918['defIds'],'idSuffix':_0x12748b['current']},E({'ref':_0x2fa4b3,'className':_0x5bddec},_0x5383f0),_0x5442cf);});function we(_0x3f8ae5,_0x54efee,_0x439355,_0x308b3d,_0x21a781){const _0x5366f1=_0x570aba;return M[_0x5366f1(0x272)](_0x3f8ae5[_0x5366f1(0x218)],E(E({'key':_0x54efee},Ot(_0x3f8ae5,_0x439355,_0x21a781)),_0x308b3d),(Rt(_0x3f8ae5,_0x439355)[_0x5366f1(0x399)]||[])[_0x5366f1(0x2fb)](function(_0x47fd33,_0x877f4b){const _0x531060=_0x5366f1;return we(_0x47fd33,''[_0x531060(0x294)](_0x54efee,'-')[_0x531060(0x294)](_0x3f8ae5[_0x531060(0x218)],'-')[_0x531060(0x294)](_0x877f4b),_0x439355,void 0x0,_0x21a781);}));}function Ot(_0x38ac40,_0x579267,_0x5bf1a9){const _0x528688=_0x570aba;var _0x20b1dc=E({},_0x38ac40[_0x528688(0x379)]);_0x5bf1a9!=null&&_0x5bf1a9[_0x528688(0x33b)]&&_0x20b1dc['fill']===_0x528688(0x33b)&&(_0x20b1dc['fill']=_0x5bf1a9['colorChannel1']),_0x38ac40[_0x528688(0x218)]===_0x528688(0x3c3)&&_0x20b1dc['id']&&(_0x20b1dc['id']=_0x20b1dc['id']+_0x579267[_0x528688(0x264)]),Object[_0x528688(0x208)](_0x20b1dc)[_0x528688(0x247)](function(_0x16d417){const _0x2e6be1=_0x528688;var _0x368d91=_0x16d417[0x0],_0x32af19=_0x16d417[0x1];_0x368d91===_0x2e6be1(0x3c3)&&typeof _0x32af19==_0x2e6be1(0x28d)&&(_0x20b1dc[_0x368d91]=_0x32af19[_0x2e6be1(0x2fc)](/url\(#(.*)\)/,_0x2e6be1(0x238)[_0x2e6be1(0x294)](_0x579267[_0x2e6be1(0x264)],')')));});var _0x1695f1=_0x579267['defIds'];return!_0x1695f1||_0x1695f1[_0x528688(0x214)]===0x0||(_0x38ac40[_0x528688(0x218)]===_0x528688(0x2f4)&&_0x20b1dc['xlink:href']&&(_0x20b1dc['xlink:href']=_0x20b1dc['xlink:href']+_0x579267[_0x528688(0x264)]),Object[_0x528688(0x208)](_0x20b1dc)[_0x528688(0x247)](function(_0x406d9c){const _0x4559d1=_0x528688;var _0x3fab1a=_0x406d9c[0x0],_0x3551b9=_0x406d9c[0x1];typeof _0x3551b9==_0x4559d1(0x28d)&&(_0x20b1dc[_0x3fab1a]=_0x3551b9['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x579267[_0x4559d1(0x264)],')')));})),_0x20b1dc;}function Rt(_0x4ba979,_0x5210a9){const _0x58d872=_0x570aba;var _0x482077,_0x511570=_0x5210a9[_0x58d872(0x1be)];return!_0x511570||_0x511570[_0x58d872(0x214)]===0x0?_0x4ba979:_0x4ba979[_0x58d872(0x218)]===_0x58d872(0x32f)&&(!((_0x482077=_0x4ba979['children'])===null||_0x482077===void 0x0)&&_0x482077[_0x58d872(0x214)])?E(E({},_0x4ba979),{'children':_0x4ba979['children'][_0x58d872(0x2fb)](function(_0x36558b){const _0x207a3b=_0x58d872;return typeof _0x36558b[_0x207a3b(0x379)]['id']==_0x207a3b(0x28d)&&_0x511570&&_0x511570[_0x207a3b(0x308)](_0x36558b[_0x207a3b(0x379)]['id'])>-0x1?E(E({},_0x36558b),{'attrs':E(E({},_0x36558b[_0x207a3b(0x379)]),{'id':_0x36558b[_0x207a3b(0x379)]['id']+_0x5210a9[_0x207a3b(0x264)]})}):_0x36558b;})}):_0x4ba979;}function Dt(){const _0x15cea2=_0x570aba;return Math[_0x15cea2(0x334)]()[_0x15cea2(0x1ac)](0x24)[_0x15cea2(0x36f)](0x2,0x8);}pe['displayName']=_0x570aba(0x300);var Ut={'tag':_0x570aba(0x24e),'attrs':{'fill':'none','viewBox':_0x570aba(0x2e1),'width':_0x570aba(0x1eb),'height':_0x570aba(0x1eb)},'children':[{'tag':'g','attrs':{'clipPath':_0x570aba(0x3e9)},'children':[{'tag':_0x570aba(0x24a),'attrs':{'stroke':_0x570aba(0x388),'d':_0x570aba(0x3de),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x570aba(0x32f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x570aba(0x327)},'children':[{'tag':_0x570aba(0x24a),'attrs':{'fill':_0x570aba(0x38d),'d':_0x570aba(0x2ec)}}]}]}],'defIds':[_0x570aba(0x327)]},ye=M[_0x570aba(0x3d6)](function(_0x55e03e,_0x5a5ed7){const _0x3281f9=_0x570aba;return M['createElement'](pe,Object[_0x3281f9(0x219)]({},_0x55e03e,{'id':_0x3281f9(0x25c),'ref':_0x5a5ed7,'icon':Ut}));});ye['displayName']=_0x570aba(0x1cc);var Nt={'tag':'svg','attrs':{'fill':_0x570aba(0x216),'viewBox':_0x570aba(0x2b1),'width':'1em','height':_0x570aba(0x1eb)},'children':[{'tag':'g','attrs':{'clipPath':_0x570aba(0x1b4)},'children':[{'tag':_0x570aba(0x24a),'attrs':{'stroke':_0x570aba(0x388),'d':_0x570aba(0x199),'strokeLinecap':_0x570aba(0x215),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x570aba(0x32f),'attrs':{},'children':[{'tag':_0x570aba(0x3c1),'attrs':{'id':_0x570aba(0x361)},'children':[{'tag':'path','attrs':{'fill':_0x570aba(0x38d),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x570aba(0x361)]},$e=M[_0x570aba(0x3d6)](function(_0x67e37f,_0x10fc43){const _0x4a60a1=_0x570aba;return M[_0x4a60a1(0x272)](pe,Object['assign']({},_0x67e37f,{'id':'on-line-single','ref':_0x10fc43,'icon':Nt}));});$e[_0x570aba(0x372)]=_0x570aba(0x409);function Mt(_0xf3b2fb){const _0x557a86=_0x570aba;switch(_0xf3b2fb){case u[_0x557a86(0x39d)][_0x557a86(0x1ca)]:return _0x557a86(0x1c6);case u['CollaborationStatus']['CONFLICT']:return _0x557a86(0x3e8);case u[_0x557a86(0x39d)][_0x557a86(0x1da)]:return _0x557a86(0x1de);case u[_0x557a86(0x39d)][_0x557a86(0x1e8)]:return _0x557a86(0x2ff);case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus'][_0x557a86(0x377)]:return _0x557a86(0x23e);case u[_0x557a86(0x39d)][_0x557a86(0x1c4)]:case u['CollaborationStatus']['PENDING']:return _0x557a86(0x39f);}}function _0x25b5(){const _0x1208cb=['_getSheetObject','actions','MoveRangeCommandId','with','saveOfflineData','RefRangeService','99HOXpOV','YUUMI_RATE_OVER_LIMIT','has','@univerjs/sheets-ui','DocStateChangeManagerService','INVALID_INVITE_CODE','CollaborationEvent','addObjects','_hovered','handleInsertRow','EffectRefRangId','COMPLETION_FINISHED','UNRECOGNIZED','all','_docTransformIMECacheService','RemoteUniscriptService','APPLY_NON_SEQUENTIAL_REVISION','roomMembers','imageSourceType','url(#$1','_getSaveTimeout','LOCAL_CACHE_INTERVAL','shareReplay','_cachedData','_transformService','collabStatus.syncing','INTERNAL_ERROR','@univerjs/rpc','_collaborationController','rxjs','setAlpha','_hover','setTimeout','hasOwnProperty','forEach','contains','function','path','_collabCursorState$','@univerjs/ui','color','svg','_updateLocalCursor','text','@univerjs/docs','body','_scheduleHeartbeat','_registerDependencies','_saveTaskMap','ranges','CollaborationUIEventId','_send','LICENSE_IMPORT_SIZE_EXCEEDED','takeUntil','distinctUntilChanged','off-line-single','TEXT','add','serializeRangeWithSheet','_messageService','getActiveSheet','_initEvent','onPointerMove$','idSuffix','debounceTime','width','10459630HUwana','useCallback','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_handleEvent','FromArray','getColor','_memberService','column','lineTo','icon','LICENSE_MAX_UNITS_EXCEEDED','createElement','OTHER_CLIENTS_EDITING','Tools','DOC_RANGE_TYPE','unitId','_collabSessionService','Vector2','values','div','_handleJoinEvent','skeleton','_instanceService','_session','CLOSE_ROOM','pluginName','unshift','prototype','Disposable','5171620QEydhD','_cursors','black','14dcvCCm','_collabCursorController','LOGIN_FAILED','redoState','data','delete','string','source','HTTPService','_registerRenderDependencies','deepClone','assignAColorForMemberID','push','concat','@univerjs-pro/collaboration','_cursorInfo$','NodePositionConvertToRectRange','getMergeData','invokeId','getSheetId','SetTextSelectionsOperation','SetSelectionsOperation','CollaborationSessionService','_unitOnClients','_collaborationUIEventService','Module','getRelativeToViewportCoord','_disabled','_selfUnitIDs','SOCKET_FAILED_RETRY','connectInjector','ONLINE','_refRangeService','LICENSE_DISTRO_REJECTED','createInstance','size','transformRemoteChangeset','then','dispose$','resize','transformMutationsWithChangeset','_transformUndoRedoStack','0\x200\x2017\x2016','moveTo','selections','handleInsertRangeMoveDown','getOwnPropertySymbols','_backgroundColor','SessionStatus','subscribeEvent','INVITE_CODE_REQUIRED','884IOdChC','BehaviorSubject','runRefRangeMutations','transformStateCache','getCurrentRevOfUnit','getRenderById','_entities','_handleHover','exhaustSavingTask','extend','JOIN_ROOM_FAILED','toStringTag','setConfig','green.600','UPDATE_CURSOR','transformByState','SUBMIT_CHANGESET_TIMEOUT','_lastPointer','disposeWithMe','Optional','CollaborationUIEventService','urlChange$','_shapes','INVITE_CODE_HAS_BEEN_UES','APPLY_PERMISSION_DENIED','generateRandomId','IImageIoService','red.300','getStateCache','WebSocketService','clearTimeout','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','complete','_imageIoService','_drawAnchor','_drawRectRange','params','_handleLeaveEvent','propertyIsEnumerable','0\x200\x2016\x2016','collaboration.single-unit.warning','getValue','clearInterval','isTransformMutationsWithChangesetSuccess','session.connection-failed','_getScale','searchParams','apply','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','error','M0\x200H16V16H0z','getUnitId','createIdentifier','MOBILE_HAS_BEEN_BOUND','row','isEditing','UniverCollaborationClientUIPlugin','defineProperty','use','href','mergeOverrideWithDependencies','_context','USER_NOT_INVITED_CODE','handleIRemoveRow','rgba(255,\x20255,\x20255,\x200.01)','map','replace','_eventUnsubscribe','_docStateChangeManagerService','collabStatus.notCollab','UniverIcon','DependentOn','_renderManagerService','getCurrentSelections','_urlService','SheetSkeletonManagerService','_roomMembers$','CollaborationDataLoaderController','indexOf','onRendered','onTransformChange$','_updateURLWithCurrentState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getUndoRedoMutationParamsCache','eventID','toRgbString','_colorAssignService','_saveCache','_initEntityListener','send','_getAnchorBounding','getTypeOfUnitAdded$','sessionTicket','IURLService','event$','findNodePositionByCharIndex','sessionStatus$','getParam','getOwnPropertyDescriptor','6lLHbdR','_init','univer-flex\x20univer-mr-2\x20univer-text-xl','from','getViewport','[CollaborationDataLoaderController]','APPLY_DUPLICATED','Unknown\x20user','next','LICENSE_EXPORT_SIZE_EXCEEDED','off-line-single_clip0_910_343','subUnitId','debounce','_docSkeletonManagerService','YUUMI_URL_COL_OUT_OF_RANGE','CHANGESET_REVISION_CONFILICT','getSheetObject','location','defs','[RemoteUniscriptService]:\x20no\x20focused\x20unit','activeSheet$','Tooltip','_assignedColors','random','show','CollaborationSocketService','max','RxDisposable','Failed','subunit','colorChannel1','_removeCollabCursors','ColorKit','Inject','YUUMI_SUBSCRIPTION_NOT_FOUND','_render','ACTIVE_UNIT_EVENT_CHANNEL','evenodd','collab-text-anchor-','Rect','_initResize','disposeUnit','_document','SetWorksheetActivateCommand','_name','includes','trim','WECHAT_HAS_BEEN_BOUND','combineLatest','m1Prime','118568gBaQUN','MUTATION','_status$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','INVALID_ARGUMENT','_initCommandExecutedListener','beginPath','unit','debug','collabCursorState$','replaceState','ISnapshotServerService','YUUMI_AI_RUN_FAILED','PERMISSION_DENIED','_transformHistoryAndStateStack','restore','IRenderManagerService','executeCommand','on-line-single_clip0_910_349','_colorIndex','UNIVER_SHEET','_draw','IRemoteInstanceService','_cursorShapes','_handleHeartbeatEvent','_univerInstanceService','_heartbeatTimer','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','min','height','getSheetBySheetId','Shape','substring','saveImage','Rectangle','displayName','origin','_docClipboardService','_getSessionTicket','addEventListener','AWAITING_WITH_PENDING','CollaborationController','attrs','_refreshCollabCursors','APPLY_REVISION_CONFILICT','currentSkeleton$','_online','_scheduleClearOtherTimer','NOT_FOUND','save','onCommandExecuted','MessageType','RemoveRowCommandId','_onCursorUpdate','type','_scheduleSaving','setItem','currentColor','onMouseMove','ISocketService','Plugin','split','#fff','CONFLICT','getItem','INotificationService','_startDocCollabCursor','CollaborationStatusDisplay','_localCacheService','deserializeRangeWithSheet','RevisionService','getConfig','unitID','get','children','YUUMI_ASYNCIO_CANCELLED','runId','Injector','CollaborationStatus','SetDocZoomRatioOperation','collabStatus.synced','328056VdlLtd','DocCollaborationEntity','TEXT_RANGE_LAYER_INDEX','permission.content','DEFAULT_WS_SESSION_TICKET_URL','asObservable','_ensureSubject','@univerjs/core','hide','IBeforeCloseService','UNDEFINED','bottom','@univerjs/engine-formula','history','_doCreateSocket','fromEventSubject','transformIMECache','ILocalCacheService','BrowserCollaborationSocketService','uni.network.url-service','editingUnit','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','registerRefRange','_entityInit$','USERS_LEAVE','_toggleOnline','rxjs/operators','_anchor','@univerjs/docs-ui','textRanges','LOCAL_CACHE_INTERVAL_KEY','_initStatusListener','setStateCache','clipPath','RichTextEditingMutation','mask','updateOfflineData','toDisposable','pushState','cursorInfo','removeParam','newValue','createSocket','addObject','getCurrent','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/sheets','LocaleService','YUUMI_UNABLE_LOAD_URL','IDocClipboardService','unsubscribe','7608tCiRDr','DeleteRangeMoveLeftCommandId','_getMergeRange','forwardRef','post','INVITE_CODE_ALREADY_BOUND','docStateChange$','SNAPSHOT_INVALID_SNAPSHOT','onPointerEnter$','_beforeCloseService','handleInsertRangeMoveRight','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','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_unitStatus','getAncestorScale','yellow.400','YUUMI_NO_CUBOID_FOR_QUESTION','ICommandService','mapTo','find','_transformPreviousActiveRange','collabStatus.conflict','url(#off-line-single_clip0_910_343)','fillText','session.collaboration-timeout','getActiveRange','parse','currentTheme$','univerjs-icon\x20univerjs-icon-','fillStyle','startsWith','some','_syncEditingCollabCursorService','getColorFromTheme','syncEditingCollabCursor','font','startRow','makeDirty','COLORS','throttleTime','_docTransformSelectionsService','transformSelections','cursorInfo$','_startSheetCollabCursor','getMemberID','className','doc.mutation.rich-text-editing','transformMutation','getCollabCursors$','_clearOtherTimers','IUIPartsService','onPointerLeave$','handleIRemoveCol','getUniverSheetInstance','OnLineSingle','top','fill','MemberService','useDependency','addHandlerCallback','engine','RemoveColCommandId','YUUMI_ALL_TABLES_IS_INVALID','_sheetSkeletonManagerService','code','_scene','ITransformService','registerRenderModule','_removeClearOtherTimer','setParam','_onCursorDelete','getCurrentUnitForType','SheetCollabCursorShape','search','isArray','pipe','InsertRowCommandId','UniverInstanceType','getRangePointData','ALREADY_EXISTS','wsSessionTicketUrl','ILogService','_setupBeforeClosingHandler','_createSocketURL','_dataLoaderService','isTransformMutationFailure','runOnServer','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','_localeService','name','selection','@univerjs/network','roomMembers$','25217313FqYbmp','_anchorDot','_color','set','_hideTimer','...','IUniverInstanceService','_cursor','merge','triggerDblclick','filter','APPLY_REJECT','_id','toString','arc','permission.title','result','popstate','UnitStatus','DocSelectionManagerService','requireSession','url(#on-line-single_clip0_910_349)','_themeService','_notificationService','saveTaskMap','executionId','ENSURE_SNAPSHOT_EXECUTION','_initDependencies','getOffsetConfig','getMember','override','defIds','hovered','loadOfflineData','_range','switchMap','getCoordByCell','SYNCED','range','collabStatus.offline','InsertColCommandId','_setupSubUnitSync','InsertRangeMoveRightCommandId','OFFLINE','_textBubble','OffLineSingle','EMAIL_HAS_BEEN_BOUND','Error','_labelPosition','_drawTextRange','_httpService','NodePositionConvertToCursor','DataLoaderService','dispose','collaboration.closeRoom','drawWith','CONNECTOR_DATA_TOO_LARGE','_revisionService','subscribe','FETCH_MISS','useRef','DocSkeletonManagerService','mutations','collabStatus.fetchMiss','flatMap','_initStatusComponent','registerDependencies','handleInsertCol','_updateSubUnitFromURLParams','_logService','UNAUTHENTICATED','DesktopCollaborationStatusDisplayController','_docSyncEditingCollabCursorService','NOT_COLLAB','collab-client.tooltip.reconnect','react','1em','_onRefRangeChange','getCollabEntity$','IMessageService','blue.400','_toggleOffline','getLocalCacheKey','jsx','RECT','setInterval','NO_OTHER_CLIENTS_EDITING','_config','_injector','getSkeleton','setShapeProps','entityInit$','SheetsSelectionsService','ThemeService','_configService','DocIMEInputManagerService','7101430JxmXXO','getDocRanges','measureText','_localStorageService','Subject','_commandService','IConfigService','isActive','_docTransformStateCacheService','entries','m2Prime','_updateCollabCursors','TOO_MANY_REQUESTS','key','PY_RUNTIME_SCRIPT_ERROR','stringify','init','call','Warning','UNIVER_DOC','SOCKET_FAILED','length','round','none','@univerjs-pro/collaboration-client','tag','assign','undoState','_uiPartsService','InsertRangeMoveDownCommandId','getFocusedUnit','handleDeleteRangeMoveUp'];_0x25b5=function(){return _0x1208cb;};return _0x25b5();}function xe(_0x54968b){const _0x3f9733=_0x570aba,{status$:_0x5ec8ef}=_0x54968b,_0x44273e=T['useObservable'](_0x5ec8ef,u[_0x3f9733(0x39d)][_0x3f9733(0x1e8)]),_0x4cb653=T[_0x3f9733(0x17c)](a['LocaleService']),_0x3f6916=T[_0x3f9733(0x17c)](u[_0x3f9733(0x29d)]),_0x4ba233=_0x44273e!==u[_0x3f9733(0x39d)][_0x3f9733(0x1ca)],_0xb21115=_0x4cb653['t'](Mt(_0x44273e)),_0xa55363=_0x4ba233?P[_0x3f9733(0x1f2)]($e,{}):P[_0x3f9733(0x1f2)](ye,{}),_0x14e954=M[_0x3f9733(0x268)](()=>{_0x4ba233||_0x3f6916['reconnect']();},[_0x4ba233,_0x3f6916]);function _0xf72760(){const _0x4011e9=_0x3f9733;return P['jsxs'](_0x4011e9(0x27a),{'className':'univer-flex\x20univer-items-center','onClick':_0x14e954,'children':[P[_0x4011e9(0x1f2)]('div',{'className':D['clsx'](_0x4011e9(0x31f),{'univer-text-green-500':_0x4ba233,'univer-text-red-500':!_0x4ba233}),'children':_0xa55363}),P['jsx']('div',{'className':_0x4011e9(0x352),'children':_0xb21115})]});}return _0x4ba233?_0xf72760():P[_0x3f9733(0x1f2)](D[_0x3f9733(0x332)],{'title':_0x4cb653['t'](_0x3f9733(0x1e9)),'children':_0xf72760()});}var Lt=Object[_0x570aba(0x31c)],Pt=(_0x3a5143,_0x4f52b5,_0x3725ae,_0x2debc9)=>{const _0x46e06c=_0x570aba;for(var _0xdb71d6=_0x2debc9>0x1?void 0x0:_0x2debc9?Lt(_0x4f52b5,_0x3725ae):_0x4f52b5,_0x5a123d=_0x3a5143[_0x46e06c(0x214)]-0x1,_0x3803c8;_0x5a123d>=0x0;_0x5a123d--)(_0x3803c8=_0x3a5143[_0x5a123d])&&(_0xdb71d6=_0x3803c8(_0xdb71d6)||_0xdb71d6);return _0xdb71d6;},V=(_0x4d35d8,_0x515dd5)=>(_0x5f114f,_0x3627d9)=>_0x515dd5(_0x5f114f,_0x3627d9,_0x4d35d8);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0xebe146,_0x44cdbf,_0x27e9cb,_0x12117b){const _0x23dc59=_0x570aba;super(),h(this,_0x23dc59(0x351),new d[(_0x23dc59(0x2bb))](u['CollaborationStatus'][_0x23dc59(0x1e8)])),(this[_0x23dc59(0x368)]=_0xebe146,this[_0x23dc59(0x1f7)]=_0x44cdbf,this[_0x23dc59(0x241)]=_0x27e9cb,this['_uiPartsService']=_0x12117b,this['_initStatusComponent'](),this[_0x23dc59(0x3bf)]());}[_0x570aba(0x3bf)](){const _0x2dff4b=_0x570aba;this[_0x2dff4b(0x2cc)](this[_0x2dff4b(0x368)]['focused$'][_0x2dff4b(0x18d)](d[_0x2dff4b(0x1c2)](()=>{const _0x2d84dc=_0x2dff4b,_0x1c78bc=this[_0x2d84dc(0x368)]['getFocusedUnit']();return _0x1c78bc?this['_collaborationController'][_0x2d84dc(0x1ed)](_0x1c78bc[_0x2d84dc(0x2ed)]()):d['of'](null);}),d[_0x2dff4b(0x1c2)](_0x15737e=>_0x15737e?_0x15737e['status$']:d['of'](u[_0x2dff4b(0x39d)]['NOT_COLLAB'])))[_0x2dff4b(0x1d9)](_0x5d11bd=>{this['_status$']['next'](_0x5d11bd);}));}[_0x570aba(0x1e0)](){const _0x156ef8=_0x570aba;this[_0x156ef8(0x2cc)](this[_0x156ef8(0x21b)]['registerComponent'](T['BuiltInUIPart']['HEADER_MENU'],()=>T[_0x156ef8(0x2a5)](At({'status$':this[_0x156ef8(0x351)][_0x156ef8(0x3a5)]()}),this[_0x156ef8(0x1f7)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x570aba(0x1a5)]),V(0x1,a['Inject'](a[_0x570aba(0x39c)])),V(0x2,a[_0x570aba(0x33e)](u[_0x570aba(0x378)])),V(0x3,T[_0x570aba(0x405)])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x3cd8b7){const {status$:_0x4e7b46}=_0x3cd8b7;return function(){return P['jsx'](xe,{'status$':_0x4e7b46});};}var wt=Object[_0x570aba(0x31c)],yt=(_0x4b4fc3,_0xb83c78,_0x4f847b,_0x2da540)=>{for(var _0x149d06=_0x2da540>0x1?void 0x0:_0x2da540?wt(_0xb83c78,_0x4f847b):_0xb83c78,_0x2e3ecd=_0x4b4fc3['length']-0x1,_0x31d074;_0x2e3ecd>=0x0;_0x2e3ecd--)(_0x31d074=_0x4b4fc3[_0x2e3ecd])&&(_0x149d06=_0x31d074(_0x149d06)||_0x149d06);return _0x149d06;},y=(_0x204519,_0xf234a2)=>(_0x10dfab,_0x1b3c16)=>_0xf234a2(_0x10dfab,_0x1b3c16,_0x204519);let q=class extends a[_0x570aba(0x283)]{constructor(_0x111159,_0x1c3181,_0xf6aea3,_0x266b5e,_0x2395a3,_0x758503){const _0x3c1ac3=_0x570aba;super(),this['_beforeCloseService']=_0x111159,this[_0x3c1ac3(0x393)]=_0x1c3181,this[_0x3c1ac3(0x29f)]=_0xf6aea3,this[_0x3c1ac3(0x260)]=_0x266b5e,this[_0x3c1ac3(0x1b6)]=_0x2395a3,this[_0x3c1ac3(0x19a)]=_0x758503,this[_0x3c1ac3(0x194)](),this[_0x3c1ac3(0x262)]();}[_0x570aba(0x194)](){const _0x507811=_0x570aba;this[_0x507811(0x2cc)](this[_0x507811(0x3dc)]['registerBeforeClose'](()=>{const _0x4aab06=_0x507811;if(this[_0x4aab06(0x393)]['saveTaskMap']['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x570aba(0x262)](){const _0x21a9a4=_0x570aba;this[_0x21a9a4(0x2cc)](this[_0x21a9a4(0x29f)][_0x21a9a4(0x318)][_0x21a9a4(0x1d9)](_0x105175=>{const _0x2e26f9=_0x21a9a4;_0x105175['id']===u[_0x2e26f9(0x257)]['OTHER_CLIENT_EDITING']&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)]['Warning'],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x2e2))}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x27f)]&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)][_0x2e26f9(0x211)],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x1d5))}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x35c)]&&this[_0x2e26f9(0x1b6)][_0x2e26f9(0x335)]({'title':this['_localeService']['t'](_0x2e26f9(0x1ae)),'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x3a3)),'type':_0x2e26f9(0x2eb),'duration':0x0}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x38e)]&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D['MessageType'][_0x2e26f9(0x1ce)],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x1d5))+'('+_0x105175[_0x2e26f9(0x28b)]+')'}),_0x105175['id']===u['CollaborationUIEventId'][_0x2e26f9(0x2c4)]&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)][_0x2e26f9(0x211)],'content':this[_0x2e26f9(0x19a)]['t'](_0x105175[_0x2e26f9(0x28b)]||'')}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x2a4)]&&this['_messageService']['show']({'type':D[_0x2e26f9(0x382)]['Warning'],'content':this[_0x2e26f9(0x19a)]['t']('session.will-retry')}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x213)]&&this['_messageService'][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)][_0x2e26f9(0x1ce)],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x2e6))}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x2ca)]&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)][_0x2e26f9(0x1ce)],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x3eb))});}));}};q=yt([y(0x0,T[_0x570aba(0x3a9)]),y(0x1,u[_0x570aba(0x3b1)]),y(0x2,a['Inject'](u[_0x570aba(0x2ce)])),y(0x3,T[_0x570aba(0x1ee)]),y(0x4,T[_0x570aba(0x390)]),y(0x5,a[_0x570aba(0x33e)](a[_0x570aba(0x3cf)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x570aba(0x2ee)](_0x570aba(0x3b3));var xt=Object[_0x570aba(0x31c)],jt=(_0x17dac4,_0x13cea0,_0x419c02,_0x3daa5b)=>{const _0x252a9a=_0x570aba;for(var _0x5bdb75=_0x3daa5b>0x1?void 0x0:_0x3daa5b?xt(_0x13cea0,_0x419c02):_0x13cea0,_0x446209=_0x17dac4[_0x252a9a(0x214)]-0x1,_0x523196;_0x446209>=0x0;_0x446209--)(_0x523196=_0x17dac4[_0x446209])&&(_0x5bdb75=_0x523196(_0x5bdb75)||_0x5bdb75);return _0x5bdb75;},H=(_0x1c68ba,_0x284dae)=>(_0x26316a,_0x1f780d)=>_0x284dae(_0x26316a,_0x1f780d,_0x1c68ba);exports['CollaborationDataLoaderController']=class extends a[_0x570aba(0x338)]{constructor(_0x467282,_0x2828b5,_0x2d63ff,_0x5941a9,_0x48790a){const _0xb85e6d=_0x570aba;super(),this['_urlService']=_0x467282,this['_logService']=_0x2828b5,this['_commandService']=_0x2d63ff,this[_0xb85e6d(0x196)]=_0x5941a9,_0x48790a?_0x48790a==null||_0x48790a['whenReady']()['then'](()=>this[_0xb85e6d(0x31e)]()):(this[_0xb85e6d(0x1e4)][_0xb85e6d(0x357)](_0xb85e6d(0x322),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xb85e6d(0x31e)]());}async[_0x570aba(0x31e)](){const _0x417c13=_0x570aba,_0x51101a=this[_0x417c13(0x304)][_0x417c13(0x31b)](_0x417c13(0x356)),_0x1455d6=this[_0x417c13(0x304)][_0x417c13(0x31b)](_0x417c13(0x385)),_0x4bd4fd=this[_0x417c13(0x304)]['getParam'](_0x417c13(0x33a));if(!_0x51101a||!_0x1455d6){this[_0x417c13(0x1e4)][_0x417c13(0x357)](_0x417c13(0x322),_0x417c13(0x36a));return;}const _0x8b2bfb=await this['_dataLoaderService']['loadUnit'](_0x51101a,Number(_0x1455d6),_0x4bd4fd);_0x8b2bfb&&_0x8b2bfb instanceof a['Workbook']&&this[_0x417c13(0x1c8)](_0x8b2bfb);}async['_setupSubUnitSync'](_0x2b44c9){const _0xb58471=_0x570aba;await this['_updateSubUnitFromURLParams'](_0x2b44c9),_0x2b44c9[_0xb58471(0x331)]['pipe'](d[_0xb58471(0x25a)](this[_0xb58471(0x2ad)]))['subscribe'](_0x59f804=>{const _0x4989c7=_0xb58471;_0x59f804&&this[_0x4989c7(0x30b)](_0x59f804);}),this[_0xb58471(0x304)][_0xb58471(0x2cf)][_0xb58471(0x18d)](d['takeUntil'](this[_0xb58471(0x2ad)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x2b44c9));}[_0x570aba(0x30b)](_0x52271a,_0x26a9da=!0x1){const _0x16ea76=_0x570aba,_0x287970=this[_0x16ea76(0x304)][_0x16ea76(0x31b)](_0x16ea76(0x33a));_0x52271a['getSheetId']()!==_0x287970&&this['_urlService']['setParam'](_0x16ea76(0x33a),_0x52271a[_0x16ea76(0x29a)](),_0x26a9da);}async[_0x570aba(0x1e3)](_0x504ec8){const _0x9684a4=_0x570aba;var _0x2509db;const _0x3994c7=this[_0x9684a4(0x304)][_0x9684a4(0x31b)](_0x9684a4(0x33a));if(!_0x3994c7||!_0x504ec8[_0x9684a4(0x36d)](_0x3994c7)){const _0x441983=_0x504ec8['getUnhiddenWorksheets']()[0x0],_0x5b9df9=_0x504ec8[_0x9684a4(0x36d)](_0x441983);if(!_0x5b9df9)return;this[_0x9684a4(0x30b)](_0x5b9df9,!0x0),await this[_0x9684a4(0x204)][_0x9684a4(0x360)](g[_0x9684a4(0x348)]['id'],{'unitId':_0x504ec8[_0x9684a4(0x2ed)](),'subUnitId':_0x441983});return;}((_0x2509db=_0x504ec8[_0x9684a4(0x261)]())==null?void 0x0:_0x2509db[_0x9684a4(0x29a)]())!==_0x3994c7&&await this[_0x9684a4(0x204)][_0x9684a4(0x360)](g[_0x9684a4(0x348)]['id'],{'unitId':_0x504ec8['getUnitId'](),'subUnitId':_0x3994c7});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x570aba(0x193)]),H(0x2,a[_0x570aba(0x3e4)]),H(0x3,a[_0x570aba(0x33e)](u[_0x570aba(0x1d3)])),H(0x4,a[_0x570aba(0x2cd)](Ke[_0x570aba(0x365)]))],exports[_0x570aba(0x307)]);var Bt=Object[_0x570aba(0x31c)],kt=(_0x4d3c03,_0xe0de56,_0x29caa6,_0x45f838)=>{const _0x414877=_0x570aba;for(var _0x1584b9=_0x45f838>0x1?void 0x0:_0x45f838?Bt(_0xe0de56,_0x29caa6):_0xe0de56,_0x39de79=_0x4d3c03[_0x414877(0x214)]-0x1,_0x4d4773;_0x39de79>=0x0;_0x39de79--)(_0x4d4773=_0x4d3c03[_0x39de79])&&(_0x1584b9=_0x4d4773(_0x1584b9)||_0x1584b9);return _0x1584b9;},ce=(_0x18c8d8,_0x157894)=>(_0x298a87,_0x6d0812)=>_0x157894(_0x298a87,_0x6d0812,_0x18c8d8);let z=class{constructor(_0x20cf7b,_0x4f9142,_0x13bd23){const _0x3bb3af=_0x570aba;this[_0x3bb3af(0x1f7)]=_0x20cf7b,this['_transformService']=_0x4f9142,this[_0x3bb3af(0x302)]=_0x13bd23;}[_0x570aba(0x3b0)](_0x1e7013){const _0x942445=_0x570aba;this[_0x942445(0x2b0)](_0x1e7013),this[_0x942445(0x3e7)](_0x1e7013);}[_0x570aba(0x2ab)](_0x406e7b){const _0x4276a3=_0x570aba,{unitID:_0x513037}=_0x406e7b,_0x952d8=this[_0x4276a3(0x302)]['getRenderById'](_0x513037)['with'](b[_0x4276a3(0x1fe)]),{redoCache:_0x4845e8}=_0x952d8[_0x4276a3(0x30d)]();if(_0x4845e8[_0x4276a3(0x214)]===0x0)return _0x406e7b;let _0xe8fe60=a[_0x4276a3(0x274)][_0x4276a3(0x291)](_0x406e7b[_0x4276a3(0x1dd)][0x0]);for(let _0x56be25=0x0;_0x56be25<_0x4845e8[_0x4276a3(0x214)];_0x56be25++){const _0x583ab0={'id':'doc.mutation.rich-text-editing','params':{..._0x4845e8[_0x56be25]}},_0x4e6b94=this['_transformService']['transformMutation'](_0xe8fe60,_0x583ab0,!0x1);if(m[_0x4276a3(0x197)](_0x4e6b94))throw _0x4e6b94['error'];_0xe8fe60=_0x4e6b94[_0x4276a3(0x34e)];}return{...a[_0x4276a3(0x274)][_0x4276a3(0x291)](_0x406e7b),'mutations':[_0xe8fe60]};}[_0x570aba(0x2b0)](_0x3ae709){const _0x1a9da6=_0x570aba,{unitID:_0x3a3091}=_0x3ae709,_0x3611c4=this[_0x1a9da6(0x302)]['getRenderById'](_0x3a3091)[_0x1a9da6(0x222)](b[_0x1a9da6(0x1fe)]),{undoCache:_0x377e84,redoCache:_0x4ab5b0}=_0x3611c4[_0x1a9da6(0x30d)]();if(_0x377e84[_0x1a9da6(0x214)]===0x0||_0x4ab5b0[_0x1a9da6(0x214)]===0x0)return;const _0x5ea2f0=[],_0x285a3b=[];let _0x13bedc=a[_0x1a9da6(0x274)][_0x1a9da6(0x291)](_0x3ae709['mutations'][0x0]),_0x138edb=a[_0x1a9da6(0x274)]['deepClone'](_0x3ae709[_0x1a9da6(0x1dd)][0x0]);for(let _0x422e49=_0x377e84[_0x1a9da6(0x214)]-0x1;_0x422e49>=0x0;_0x422e49--){const _0x5a8047={'id':'doc.mutation.rich-text-editing','params':{..._0x377e84[_0x422e49]}},_0x3ca4c9={'id':'doc.mutation.rich-text-editing','params':{..._0x4ab5b0[_0x422e49]}},_0x2d2a78=this[_0x1a9da6(0x23d)][_0x1a9da6(0x402)](_0x13bedc,_0x5a8047,!0x1),_0x545146=this['_transformService'][_0x1a9da6(0x402)](_0x138edb,_0x3ca4c9,!0x1);if(m[_0x1a9da6(0x197)](_0x2d2a78))throw _0x2d2a78[_0x1a9da6(0x2eb)];if(m[_0x1a9da6(0x197)](_0x545146))throw _0x545146[_0x1a9da6(0x2eb)];_0x5ea2f0['unshift'](_0x2d2a78[_0x1a9da6(0x209)]['params']),_0x285a3b['unshift'](_0x545146[_0x1a9da6(0x209)][_0x1a9da6(0x2de)]),_0x13bedc=_0x2d2a78[_0x1a9da6(0x34e)],_0x138edb=_0x545146[_0x1a9da6(0x34e)];}_0x3611c4['setUndoRedoMutationParamsCache']({'undoCache':_0x5ea2f0,'redoCache':_0x285a3b});}[_0x570aba(0x3e7)](_0x5acaab){const _0x1ee8cc=_0x570aba,{unitID:_0x28339e}=_0x5acaab,_0x4d0ee7=this[_0x1ee8cc(0x302)][_0x1ee8cc(0x2bf)](_0x28339e)[_0x1ee8cc(0x222)](b['DocIMEInputManagerService']),_0x2bf9b3=_0x4d0ee7[_0x1ee8cc(0x3ec)]();if(_0x2bf9b3==null)return;const _0x504e17=[{'id':_0x1ee8cc(0x401),'params':{'unitId':_0x5acaab[_0x1ee8cc(0x397)],'actions':null,'textRanges':[_0x2bf9b3]}}],_0x3c73c7=this['_transformService'][_0x1ee8cc(0x2af)](_0x5acaab,_0x504e17);if(!m[_0x1ee8cc(0x2e5)](_0x3c73c7))throw _0x3c73c7[_0x1ee8cc(0x2eb)];const _0x32cdd6=_0x3c73c7[_0x1ee8cc(0x209)][0x0][_0x1ee8cc(0x2de)][_0x1ee8cc(0x3bd)];Array['isArray'](_0x32cdd6)&&_0x32cdd6[_0x1ee8cc(0x214)]&&_0x4d0ee7['setActiveRange'](_0x32cdd6[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x570aba(0x39c)])),ce(0x1,m[_0x570aba(0x184)]),ce(0x2,p[_0x570aba(0x35f)])],z);var Ht=Object[_0x570aba(0x31c)],Ft=(_0x34fbdf,_0x26fa48,_0x358c8e,_0x4732f7)=>{for(var _0x17a7fd=_0x4732f7>0x1?void 0x0:_0x4732f7?Ht(_0x26fa48,_0x358c8e):_0x26fa48,_0x1a1075=_0x34fbdf['length']-0x1,_0x3ec8f5;_0x1a1075>=0x0;_0x1a1075--)(_0x3ec8f5=_0x34fbdf[_0x1a1075])&&(_0x17a7fd=_0x3ec8f5(_0x17a7fd)||_0x17a7fd);return _0x17a7fd;},le=(_0x577716,_0xe6cd6e)=>(_0x3463bd,_0x501913)=>_0xe6cd6e(_0x3463bd,_0x501913,_0x577716);let J=class{constructor(_0x18d6aa,_0x46391f,_0x43fc7b){const _0x4e1f40=_0x570aba;this[_0x4e1f40(0x1f7)]=_0x18d6aa,this[_0x4e1f40(0x23d)]=_0x46391f,this[_0x4e1f40(0x2fe)]=_0x43fc7b;}[_0x570aba(0x2bd)](_0x324ff4){this['_transformHistoryAndStateStack'](_0x324ff4);}[_0x570aba(0x2ab)](_0x2288bb){const _0x5aedfc=_0x570aba,{unitID:_0x1fb171}=_0x2288bb,{collaboration:_0x1e7767}=this[_0x5aedfc(0x2fe)][_0x5aedfc(0x2d6)](_0x1fb171);if(_0x1e7767['length']===0x0)return _0x2288bb;let _0xf75d2a=a[_0x5aedfc(0x274)][_0x5aedfc(0x291)](_0x2288bb[_0x5aedfc(0x1dd)][0x0]);for(let _0xa072e6=0x0;_0xa072e6<_0x1e7767['length'];_0xa072e6++){const _0x483927={'id':_0x5aedfc(0x401),'params':{'unitId':_0x1e7767[_0xa072e6][_0x5aedfc(0x276)],..._0x1e7767[_0xa072e6]['redoState']}},_0x267b33=this[_0x5aedfc(0x23d)][_0x5aedfc(0x402)](_0xf75d2a,_0x483927,!0x1);if(m[_0x5aedfc(0x197)](_0x267b33))throw _0x267b33[_0x5aedfc(0x2eb)];_0xf75d2a=_0x267b33[_0x5aedfc(0x34e)];}return{...a[_0x5aedfc(0x274)]['deepClone'](_0x2288bb),'mutations':[_0xf75d2a]};}[_0x570aba(0x35d)](_0x314b6a){const _0x365d02=_0x570aba,{unitID:_0x2051b3}=_0x314b6a,{history:_0x2e2751,collaboration:_0x48619c}=this[_0x365d02(0x2fe)]['getStateCache'](_0x2051b3);if(_0x2e2751[_0x365d02(0x214)]===0x0&&_0x48619c[_0x365d02(0x214)]===0x0)return;const _0x3f8685=[],_0x54a65a=[];let _0x530a01=a[_0x365d02(0x274)]['deepClone'](_0x314b6a[_0x365d02(0x1dd)][0x0]),_0x97c988=a[_0x365d02(0x274)]['deepClone'](_0x314b6a[_0x365d02(0x1dd)][0x0]);for(let _0x38d995=_0x2e2751[_0x365d02(0x214)]-0x1;_0x38d995>=0x0;_0x38d995--){const _0x3add2b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e2751[_0x38d995][_0x365d02(0x276)],..._0x2e2751[_0x38d995][_0x365d02(0x21a)]}},_0x32c100={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e2751[_0x38d995][_0x365d02(0x276)],..._0x2e2751[_0x38d995][_0x365d02(0x28a)]}},_0x5ee2eb=this['_transformService'][_0x365d02(0x402)](_0x530a01,_0x3add2b,!0x1),_0x2fedba=this[_0x365d02(0x23d)][_0x365d02(0x402)](_0x97c988,_0x32c100,!0x1);if(m[_0x365d02(0x197)](_0x5ee2eb))throw _0x5ee2eb[_0x365d02(0x2eb)];if(m[_0x365d02(0x197)](_0x2fedba))throw _0x2fedba[_0x365d02(0x2eb)];_0x3f8685[_0x365d02(0x281)]({..._0x2e2751[_0x38d995],'undoState':_0x5ee2eb[_0x365d02(0x209)][_0x365d02(0x2de)],'redoState':_0x2fedba[_0x365d02(0x209)]['params']}),_0x530a01=_0x5ee2eb[_0x365d02(0x34e)],_0x97c988=_0x2fedba[_0x365d02(0x34e)];}_0x530a01=a[_0x365d02(0x274)][_0x365d02(0x291)](_0x314b6a[_0x365d02(0x1dd)][0x0]),_0x97c988=a[_0x365d02(0x274)][_0x365d02(0x291)](_0x314b6a['mutations'][0x0]);for(let _0x277db9=_0x48619c[_0x365d02(0x214)]-0x1;_0x277db9>=0x0;_0x277db9--){const _0x1d3b3f={'id':_0x365d02(0x401),'params':{'unitId':_0x48619c[_0x277db9][_0x365d02(0x276)],..._0x48619c[_0x277db9][_0x365d02(0x21a)]}},_0x53b8b1={'id':_0x365d02(0x401),'params':{'unitId':_0x48619c[_0x277db9][_0x365d02(0x276)],..._0x48619c[_0x277db9][_0x365d02(0x28a)]}},_0x485eb0=this['_transformService']['transformMutation'](_0x530a01,_0x1d3b3f,!0x1),_0x3fce7e=this['_transformService'][_0x365d02(0x402)](_0x97c988,_0x53b8b1,!0x1);if(m[_0x365d02(0x197)](_0x485eb0))throw _0x485eb0[_0x365d02(0x2eb)];if(m[_0x365d02(0x197)](_0x3fce7e))throw _0x3fce7e[_0x365d02(0x2eb)];_0x54a65a['unshift']({..._0x48619c[_0x277db9],'undoState':_0x485eb0[_0x365d02(0x209)][_0x365d02(0x2de)],'redoState':_0x3fce7e['m2Prime'][_0x365d02(0x2de)]}),_0x530a01=_0x485eb0[_0x365d02(0x34e)],_0x97c988=_0x3fce7e[_0x365d02(0x34e)];}this[_0x365d02(0x2fe)][_0x365d02(0x3c0)](_0x2051b3,{'history':_0x3f8685,'collaboration':_0x54a65a});}};J=Ft([le(0x0,a[_0x570aba(0x33e)](a[_0x570aba(0x39c)])),le(0x1,m['ITransformService']),le(0x2,a[_0x570aba(0x33e)](b[_0x570aba(0x229)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0xebb006,_0xc65f45,_0x5489ae,_0x24c2ad)=>{const _0x3d4b80=_0x570aba;for(var _0xeebe2e=_0x24c2ad>0x1?void 0x0:_0x24c2ad?Yt(_0xc65f45,_0x5489ae):_0xc65f45,_0x422135=_0xebb006[_0x3d4b80(0x214)]-0x1,_0x13c4b4;_0x422135>=0x0;_0x422135--)(_0x13c4b4=_0xebb006[_0x422135])&&(_0xeebe2e=_0x13c4b4(_0xeebe2e)||_0xeebe2e);return _0xeebe2e;},Ne=(_0x1ba80f,_0x57da6a)=>(_0x5920f9,_0x1c7c0a)=>_0x57da6a(_0x5920f9,_0x1c7c0a,_0x1ba80f);let Z=class{constructor(_0x2f2fed,_0x26910d){const _0x162b03=_0x570aba;this[_0x162b03(0x1f7)]=_0x2f2fed,this[_0x162b03(0x23d)]=_0x26910d;}[_0x570aba(0x3fc)](_0x4d4841){const _0x1bb88a=_0x570aba;var _0x4ba4fc;const _0x5293ca=this['_injector'][_0x1bb88a(0x398)](Y[_0x1bb88a(0x1b2)]),_0x308972=(_0x4ba4fc=_0x5293ca[_0x1bb88a(0x200)]())!=null?_0x4ba4fc:[];if(_0x308972[_0x1bb88a(0x214)]===0x0)return;const _0x106d3f=_0x4d4841['unitID'],_0x340b3a=[{'id':_0x1bb88a(0x401),'params':{'unitId':_0x106d3f,'actions':null,'textRanges':_0x308972}}],_0x2ec4ba=this[_0x1bb88a(0x23d)][_0x1bb88a(0x2af)](_0x4d4841,_0x340b3a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2ec4ba))throw _0x2ec4ba[_0x1bb88a(0x2eb)];const _0x3f0d06=_0x2ec4ba[_0x1bb88a(0x209)][0x0][_0x1bb88a(0x2de)]['textRanges'];Array[_0x1bb88a(0x18c)](_0x3f0d06)&&_0x3f0d06[_0x1bb88a(0x214)]&&_0x5293ca['replaceDocRanges'](_0x3f0d06,{'unitId':_0x106d3f,'subUnitId':_0x106d3f},!0x1);}};Z=Wt([Ne(0x0,a[_0x570aba(0x33e)](a[_0x570aba(0x39c)])),Ne(0x1,m[_0x570aba(0x184)])],Z);var Vt=Object[_0x570aba(0x31c)],Xt=(_0x54b3b0,_0x2b613f,_0x51813a,_0x33d81d)=>{const _0x1c46f8=_0x570aba;for(var _0x200e92=_0x33d81d>0x1?void 0x0:_0x33d81d?Vt(_0x2b613f,_0x51813a):_0x2b613f,_0x197101=_0x54b3b0[_0x1c46f8(0x214)]-0x1,_0x831d59;_0x197101>=0x0;_0x197101--)(_0x831d59=_0x54b3b0[_0x197101])&&(_0x200e92=_0x831d59(_0x200e92)||_0x200e92);return _0x200e92;},N=(_0x1caf3d,_0x2289c8)=>(_0xffca16,_0x5e059e)=>_0x2289c8(_0xffca16,_0x5e059e,_0x1caf3d);let Q=class extends a[_0x570aba(0x283)]{constructor(_0x3ded34,_0x17c2d3,_0x4fc684,_0x2f6587,_0x278b7d,_0x248f02,_0x407205,_0x72fb8a){const _0x4280f4=_0x570aba;super(),h(this,_0x4280f4(0x351),new d['BehaviorSubject'](u[_0x4280f4(0x39d)]['NOT_COLLAB'])),(this[_0x4280f4(0x2fe)]=_0x3ded34,this['_collaborationController']=_0x17c2d3,this[_0x4280f4(0x233)]=_0x4fc684,this[_0x4280f4(0x207)]=_0x2f6587,this[_0x4280f4(0x3fb)]=_0x278b7d,this['_docSyncEditingCollabCursorService']=_0x248f02,this[_0x4280f4(0x260)]=_0x407205,this['_localeService']=_0x72fb8a,this[_0x4280f4(0x312)]());}[_0x570aba(0x312)](){const _0x46ec03=_0x570aba;this[_0x46ec03(0x2cc)](this['_collaborationController'][_0x46ec03(0x1fa)][_0x46ec03(0x1d9)](_0x56985e=>{const _0x39db6c=_0x46ec03,_0x250a26=this[_0x39db6c(0x2fe)][_0x39db6c(0x3d9)]['subscribe'](_0x51935d=>{const _0x178d4e=_0x39db6c;if(_0x51935d==null)return;const {unitId:_0x1e4b99,redoState:_0x1dd58e,commandId:_0x24aa23}=_0x51935d;if(_0x1e4b99!==_0x56985e[_0x178d4e(0x397)])return;const _0x41597c={'id':_0x24aa23,'type':a['CommandType'][_0x178d4e(0x350)],'params':{'unitId':_0x1e4b99,'actions':_0x1dd58e[_0x178d4e(0x220)],'textRanges':null}};_0x56985e['onLocalMutation'](_0x41597c);});if(_0x56985e[_0x39db6c(0x2cc)](_0x250a26),_0x56985e instanceof u[_0x39db6c(0x3a1)]){const _0x2ac7b8={'onTransformIME':_0x3df6cf=>this[_0x39db6c(0x233)]['transformIMECache'](_0x3df6cf),'onTransformState':_0x5bdde6=>this['_docTransformStateCacheService']['transformStateCache'](_0x5bdde6),'onTransformSelections':_0x5eccef=>this['_docTransformSelectionsService'][_0x39db6c(0x3fc)](_0x5eccef),'onSyncEditingCollabCursor':_0x4383e7=>this[_0x39db6c(0x1e7)][_0x39db6c(0x3f5)](_0x4383e7),'onTransformRemoteChangesetByIMECache':_0x2f0cc3=>this[_0x39db6c(0x233)][_0x39db6c(0x2ab)](_0x2f0cc3),'onTransformRemoteChangesetByStateCache':_0x2bea2c=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x2bea2c)};_0x56985e[_0x39db6c(0x17d)](_0x2ac7b8);}}));}};Q=Xt([N(0x0,a[_0x570aba(0x33e)](b['DocStateChangeManagerService'])),N(0x1,a[_0x570aba(0x33e)](u[_0x570aba(0x378)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x570aba(0x33e)](J)),N(0x4,a[_0x570aba(0x33e)](Z)),N(0x5,a[_0x570aba(0x33e)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x570aba(0x33e)](a[_0x570aba(0x3cf)]))],Q);function _0x1acb(_0x3cc1c8,_0x2a256d){const _0x25b5b7=_0x25b5();return _0x1acb=function(_0x1acb19,_0x1a6972){_0x1acb19=_0x1acb19-0x17b;let _0xabcb2c=_0x25b5b7[_0x1acb19];return _0xabcb2c;},_0x1acb(_0x3cc1c8,_0x2a256d);}var Gt=Object[_0x570aba(0x31c)],Kt=(_0x73f0cb,_0x210df,_0x1aacfa,_0x30bfd3)=>{const _0x5a14e0=_0x570aba;for(var _0x58f443=_0x30bfd3>0x1?void 0x0:_0x30bfd3?Gt(_0x210df,_0x1aacfa):_0x210df,_0xca264e=_0x73f0cb[_0x5a14e0(0x214)]-0x1,_0x55114a;_0xca264e>=0x0;_0xca264e--)(_0x55114a=_0x73f0cb[_0xca264e])&&(_0x58f443=_0x55114a(_0x58f443)||_0x58f443);return _0x58f443;},_e=(_0x43bd30,_0x48c308)=>(_0x1d31df,_0xefa229)=>_0x48c308(_0x1d31df,_0xefa229,_0x43bd30);let ge=class extends a['Disposable']{constructor(_0x45e307,_0x9907ab,_0x11133b){const _0x3269d2=_0x570aba;super(),h(this,_0x3269d2(0x23c),new Map()),h(this,_0x3269d2(0x255),new Map()),h(this,_0x3269d2(0x2a2),!0x1),(this[_0x3269d2(0x1fd)]=_0x45e307,this[_0x3269d2(0x202)]=_0x9907ab,this[_0x3269d2(0x1d8)]=_0x11133b);}['disableLocalCache'](){const _0x32b535=_0x570aba;this[_0x32b535(0x2a2)]=!0x0;}['enableLocalCache'](){const _0x5930e9=_0x570aba;this[_0x5930e9(0x2a2)]=!0x1;}get[_0x570aba(0x1b7)](){const _0x3a7977=_0x570aba;return this[_0x3a7977(0x255)];}['dispose'](){const _0x478bb4=_0x570aba;this[_0x478bb4(0x2c2)]()['then'](()=>super[_0x478bb4(0x1d4)]());}async[_0x570aba(0x1c0)](_0x39fb23){const _0xe0d697=_0x570aba;return this[_0xe0d697(0x2a2)]?null:this[_0xe0d697(0x202)][_0xe0d697(0x38f)](u[_0xe0d697(0x1f1)](_0x39fb23));}async[_0x570aba(0x223)](_0x3a3618,_0x5bed2f){const _0x284ab4=_0x570aba;return!!this[_0x284ab4(0x202)]['setItem'](_0x3a3618,_0x5bed2f);}[_0x570aba(0x3c4)](_0x317e9a,_0x3722cf,_0x252877,_0x534dfd){const _0x524115=_0x570aba,_0x478d89=this[_0x524115(0x1d8)][_0x524115(0x2be)](_0x317e9a);this['_cachedData'][_0x524115(0x1a2)](_0x317e9a,{'unitID':_0x317e9a,'type':_0x3722cf,'awaitingChangeset':_0x252877,'mutations':_0x534dfd,'rev':_0x478d89}),this[_0x524115(0x255)][_0x524115(0x227)](_0x317e9a)||this[_0x524115(0x386)](_0x317e9a);}[_0x570aba(0x386)](_0x2527f3){const _0x404039=_0x570aba,_0x4d32b9=this[_0x404039(0x239)]();_0x4d32b9===0x0?this[_0x404039(0x311)](_0x2527f3):this[_0x404039(0x255)][_0x404039(0x1a2)](_0x2527f3,setTimeout(()=>this[_0x404039(0x311)](_0x2527f3),_0x4d32b9));}[_0x570aba(0x239)](){const _0x39d576=_0x570aba;var _0x3e9828;return(_0x3e9828=this[_0x39d576(0x1fd)]['getConfig'](u[_0x39d576(0x3be)]))!=null?_0x3e9828:u[_0x39d576(0x23a)];}[_0x570aba(0x311)](_0x54559b){const _0xf94ecc=_0x570aba,_0x2902ab=this[_0xf94ecc(0x255)][_0xf94ecc(0x398)](_0x54559b);return _0x2902ab!==void 0x0&&window[_0xf94ecc(0x2d8)](_0x2902ab),this[_0xf94ecc(0x202)][_0xf94ecc(0x387)](u[_0xf94ecc(0x1f1)](_0x54559b),this['_cachedData'][_0xf94ecc(0x398)](_0x54559b))[_0xf94ecc(0x2ac)](()=>this[_0xf94ecc(0x255)][_0xf94ecc(0x28c)](_0x54559b));}async[_0x570aba(0x2c2)](){const _0x5af780=_0x570aba,_0x36fe8a=[];this[_0x5af780(0x255)][_0x5af780(0x247)]((_0x1d032e,_0x5143c1)=>{const _0x1921e3=_0x5af780;window['clearTimeout'](_0x1d032e),_0x36fe8a['push'](this[_0x1921e3(0x311)](_0x5143c1)[_0x1921e3(0x2ac)](()=>{const _0x3dbde4=_0x1921e3;this[_0x3dbde4(0x255)][_0x3dbde4(0x28c)](_0x5143c1);}));}),await Promise[_0x5af780(0x232)](_0x36fe8a);}};ge=Kt([_e(0x0,a[_0x570aba(0x205)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m[_0x570aba(0x395)]))],ge);class je extends a[_0x570aba(0x338)]{constructor(){const _0x2834e8=_0x570aba;super(),h(this,_0x2834e8(0x2cf)),this['urlChange$']=d['fromEvent'](window,_0x2834e8(0x1b0))[_0x2834e8(0x18d)](d[_0x2834e8(0x25a)](this[_0x2834e8(0x2ad)]),d[_0x2834e8(0x23b)](0x1),d[_0x2834e8(0x3e5)](void 0x0));}[_0x570aba(0x187)](_0x19d79e,_0x5735e1,_0x1da03d=!0x1){const _0x355305=_0x570aba,_0x9c1e6a=new URL(window[_0x355305(0x32e)][_0x355305(0x2f5)]);_0x9c1e6a[_0x355305(0x2e8)]['set'](_0x19d79e,_0x5735e1),_0x1da03d?window[_0x355305(0x3ad)][_0x355305(0x359)]('','',_0x9c1e6a['toString']()):window[_0x355305(0x3ad)][_0x355305(0x3c6)]('','',_0x9c1e6a[_0x355305(0x1ac)]());}[_0x570aba(0x3c8)](_0x1f2330,_0x4bd060=!0x1){const _0x500b9c=_0x570aba,_0x332e18=new URL(window[_0x500b9c(0x32e)][_0x500b9c(0x2f5)]);_0x332e18[_0x500b9c(0x2e8)]['delete'](_0x1f2330),_0x4bd060?window[_0x500b9c(0x3ad)][_0x500b9c(0x359)]('','',_0x332e18['toString']()):window[_0x500b9c(0x3ad)]['pushState']('','',_0x332e18['toString']());}[_0x570aba(0x31b)](_0x350ad2){const _0x39032c=_0x570aba;var _0x46c685;return(_0x46c685=new URL(window['location'][_0x39032c(0x2f5)])[_0x39032c(0x2e8)][_0x39032c(0x398)](_0x350ad2))!=null?_0x46c685:void 0x0;}}var qt=Object[_0x570aba(0x2f3)],zt=Object[_0x570aba(0x31c)],Jt=(_0x54e02c,_0x2c1bdb,_0x730615)=>_0x2c1bdb in _0x54e02c?qt(_0x54e02c,_0x2c1bdb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x730615}):_0x54e02c[_0x2c1bdb]=_0x730615,Zt=(_0x66512c,_0x2bbd98,_0x138383,_0x56cc4c)=>{const _0x2110be=_0x570aba;for(var _0x1acfb5=_0x56cc4c>0x1?void 0x0:_0x56cc4c?zt(_0x2bbd98,_0x138383):_0x2bbd98,_0x2bf86e=_0x66512c[_0x2110be(0x214)]-0x1,_0x15f096;_0x2bf86e>=0x0;_0x2bf86e--)(_0x15f096=_0x66512c[_0x2bf86e])&&(_0x1acfb5=_0x15f096(_0x1acfb5)||_0x1acfb5);return _0x1acfb5;},he=(_0x3d3b35,_0x105468)=>(_0x426b79,_0x439a37)=>_0x105468(_0x426b79,_0x439a37,_0x3d3b35),Qt=(_0x574850,_0x56d6a2,_0x11029b)=>Jt(_0x574850,_0x56d6a2+'',_0x11029b);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x570aba(0x2f2)]=class extends a[_0x570aba(0x38b)]{constructor(_0x412973=Ue,_0x165795,_0x4a98af,_0x2a5fa4){const _0x1f03c8=_0x570aba;super(),this[_0x1f03c8(0x1f6)]=_0x412973,this[_0x1f03c8(0x302)]=_0x165795,this['_injector']=_0x4a98af,this[_0x1f03c8(0x1fd)]=_0x2a5fa4;const {..._0x21e004}=a['merge']({},Ue,this[_0x1f03c8(0x1f6)]);this[_0x1f03c8(0x1fd)][_0x1f03c8(0x2c6)]($t,_0x21e004);}['onStarting'](){const _0x54dedc=_0x570aba;this[_0x54dedc(0x254)](),this['_initDependencies']();}[_0x570aba(0x309)](){const _0x2ecff9=_0x570aba;this[_0x2ecff9(0x290)]();}[_0x570aba(0x254)](){const _0x5dde55=_0x570aba;var _0x346647;const _0xecd96a=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5dde55(0x38a)],{'useClass':G[_0x5dde55(0x2d7)]}],[u[_0x5dde55(0x3b1)],{'useClass':ge}],[exports[_0x5dde55(0x1e6)]],[Q],[q],[x],[de],[exports[_0x5dde55(0x307)]]];a[_0x5dde55(0x1e1)](this['_injector'],a[_0x5dde55(0x2f6)](_0xecd96a,(_0x346647=this[_0x5dde55(0x1f6)])==null?void 0x0:_0x346647[_0x5dde55(0x1bd)]));}['_registerRenderDependencies'](){const _0x55eb27=_0x570aba;this[_0x55eb27(0x2cc)](this[_0x55eb27(0x302)][_0x55eb27(0x185)](a['UniverInstanceType'][_0x55eb27(0x212)],[Ie])),this[_0x55eb27(0x2cc)](this[_0x55eb27(0x302)][_0x55eb27(0x185)](a[_0x55eb27(0x18f)][_0x55eb27(0x363)],[ve]));}[_0x570aba(0x1ba)](){const _0x33de3c=_0x570aba;a['touchDependencies'](this[_0x33de3c(0x1f7)],[[x],[exports[_0x33de3c(0x1e6)]],[Q],[q],[exports[_0x33de3c(0x307)]]]);}},Qt(exports[_0x570aba(0x2f2)],_0x570aba(0x280),es),exports[_0x570aba(0x2f2)]=Zt([a[_0x570aba(0x301)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x570aba(0x35f)]),he(0x2,a[_0x570aba(0x33e)](a['Injector'])),he(0x3,a[_0x570aba(0x205)])],exports[_0x570aba(0x2f2)]);var ts=Object[_0x570aba(0x31c)],ss=(_0x49abf5,_0x158a9c,_0x27fd0a,_0x200a49)=>{const _0x19f97b=_0x570aba;for(var _0x4f03db=_0x200a49>0x1?void 0x0:_0x200a49?ts(_0x158a9c,_0x27fd0a):_0x158a9c,_0x169c16=_0x49abf5[_0x19f97b(0x214)]-0x1,_0x23145b;_0x169c16>=0x0;_0x169c16--)(_0x23145b=_0x49abf5[_0x169c16])&&(_0x4f03db=_0x23145b(_0x4f03db)||_0x4f03db);return _0x4f03db;},F=(_0x929678,_0x2d6177)=>(_0x61d0ef,_0xd8c452)=>_0x2d6177(_0x61d0ef,_0xd8c452,_0x929678);exports['BrowserCollaborationSocketService']=class extends u[_0x570aba(0x336)]{constructor(_0x2d107f,_0x102d39,_0x49b5ac,_0x4d9784,_0x50e983){super(_0x2d107f,_0x102d39,_0x49b5ac,_0x4d9784,_0x50e983);}async[_0x570aba(0x3ca)](_0x54d738){const _0x14d50d=_0x570aba,_0x14fa54=await this[_0x14d50d(0x375)](),_0x21feac=this['_createSocketURL'](_0x54d738,_0x14fa54);return this[_0x14d50d(0x3ae)](_0x21feac);}[_0x570aba(0x195)](_0x5a4ea1,_0x282e2e){const _0x589033=_0x570aba,_0x542ef9=typeof window>'u'?new URL(_0x5a4ea1):new URL(_0x5a4ea1,window[_0x589033(0x32e)][_0x589033(0x373)]);_0x542ef9['searchParams'][_0x589033(0x1a2)](_0x589033(0x316),_0x282e2e);const _0x55d7c0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x589033(0x32e)][_0x589033(0x18b)]);return _0x55d7c0[_0x589033(0x398)](_0x589033(0x39b))&&_0x542ef9['searchParams']['set'](_0x589033(0x39b),_0x55d7c0[_0x589033(0x398)](_0x589033(0x39b))),_0x542ef9[_0x589033(0x1ac)]();}async[_0x570aba(0x375)](){const _0x4492fa=_0x570aba;var _0x5d05f9,_0x52a3f4,_0xa6040;const _0xc46826=this[_0x4492fa(0x1fd)][_0x4492fa(0x396)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x327510=(_0x5d05f9=_0xc46826==null?void 0x0:_0xc46826[_0x4492fa(0x192)])!=null?_0x5d05f9:u[_0x4492fa(0x3a4)];return(_0xa6040=(_0x52a3f4=(await this['_httpService'][_0x4492fa(0x398)](_0x327510,{'headers':{'Content-Type':'application/json'}}))[_0x4492fa(0x252)])==null?void 0x0:_0x52a3f4['ticket'])!=null?_0xa6040:'';}},exports[_0x570aba(0x3b2)]=ss([F(0x0,a[_0x570aba(0x33e)](a['Injector'])),F(0x1,a['Inject'](G[_0x570aba(0x28f)])),F(0x2,a['IConfigService']),F(0x3,a[_0x570aba(0x193)]),F(0x4,m[_0x570aba(0x35a)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x570aba(0x341);class is extends a[_0x570aba(0x283)]{constructor(){const _0x47701b=_0x570aba;super(),h(this,_0x47701b(0x1ab),a[_0x47701b(0x2d3)]()),h(this,_0x47701b(0x2a3),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x47701b(0x369),null),h(this,_0x47701b(0x404),new Map()),h(this,'_unitStatus',new Map()),this[_0x47701b(0x31e)]();}[_0x570aba(0x1d4)](){const _0x20aca4=_0x570aba;super[_0x20aca4(0x1d4)](),this[_0x20aca4(0x404)]['forEach']((_0x4d2789,_0x934a57)=>this[_0x20aca4(0x186)](_0x934a57)),this[_0x20aca4(0x369)]&&window[_0x20aca4(0x2e4)](this[_0x20aca4(0x369)]);}['getUnitStatus$'](_0x30e70f){const _0x31103c=_0x570aba;return this[_0x31103c(0x3a6)](_0x30e70f)[_0x31103c(0x18d)](d[_0x31103c(0x25b)]());}[_0x570aba(0x3b4)](_0x31f0f2){const _0x53f0f4=_0x570aba;this[_0x53f0f4(0x2a3)][_0x53f0f4(0x2aa)]===0x0&&this[_0x53f0f4(0x253)](),this[_0x53f0f4(0x2a3)][_0x53f0f4(0x25e)](_0x31f0f2),this[_0x53f0f4(0x258)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x31f0f2],'isForwarded':!0x1});}[_0x570aba(0x346)](_0xec244d){const _0x11f13b=_0x570aba;this['_selfUnitIDs'][_0x11f13b(0x28c)](_0xec244d),this['_selfUnitIDs'][_0x11f13b(0x2aa)]===0x0&&this['_heartbeatTimer']&&window[_0x11f13b(0x2e4)](this[_0x11f13b(0x369)]);}[_0x570aba(0x31e)](){const _0x15c4cb=_0x570aba;this[_0x15c4cb(0x2cc)](a[_0x15c4cb(0x3c5)](d['fromEvent'](window,'storage')[_0x15c4cb(0x1d9)](_0x43515f=>{const _0x4fefed=_0x15c4cb;if(_0x43515f[_0x4fefed(0x20c)]!==Le||!_0x43515f[_0x4fefed(0x3c9)])return;const _0x454c47=JSON[_0x4fefed(0x3ed)](_0x43515f['newValue']);this[_0x4fefed(0x26a)](_0x454c47);}))),window[_0x15c4cb(0x376)]('unload',()=>this[_0x15c4cb(0x258)]({'type':0x1,'memberID':this[_0x15c4cb(0x1ab)],'unitIDs':Array[_0x15c4cb(0x320)](this[_0x15c4cb(0x2a3)])}));}['_handleEvent'](_0x4b191b){const _0x11eded=_0x570aba;switch(_0x4b191b[_0x11eded(0x385)]){case 0x0:this['_handleJoinEvent'](_0x4b191b);break;case 0x1:this[_0x11eded(0x2df)](_0x4b191b);break;case 0x2:this['_handleHeartbeatEvent'](_0x4b191b);break;}}[_0x570aba(0x27b)](_0x369df6){const _0x306c99=_0x570aba,{unitIDs:_0x35ab4e,memberID:_0x31949b,isForwarded:_0x535b2b}=_0x369df6;_0x35ab4e[_0x306c99(0x247)](_0xe8c95c=>{const _0x98b709=_0x306c99;if(!_0x535b2b&&this[_0x98b709(0x29e)][_0x98b709(0x227)](_0xe8c95c)&&this['_ensureSubject'](_0xe8c95c)[_0x98b709(0x325)](u[_0x98b709(0x1b1)][_0x98b709(0x273)]),!this[_0x98b709(0x29e)][_0x98b709(0x227)](_0xe8c95c)||!this[_0x98b709(0x29e)][_0x98b709(0x398)](_0xe8c95c)[_0x98b709(0x227)](_0x31949b)){const _0x56116b=this['_unitOnClients'][_0x98b709(0x398)](_0xe8c95c)||new Set();_0x56116b['add'](_0x31949b),this[_0x98b709(0x29e)][_0x98b709(0x1a2)](_0xe8c95c,_0x56116b),this[_0x98b709(0x37e)](_0x31949b);}}),_0x535b2b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x306c99(0x2a3)]],'isForwarded':!0x0});}[_0x570aba(0x37e)](_0x1bcdf6){const _0x340852=_0x570aba;this[_0x340852(0x186)](_0x1bcdf6);const _0x3e996f=window[_0x340852(0x245)](()=>{const _0x2f88ce=_0x340852;this[_0x2f88ce(0x29e)][_0x2f88ce(0x247)](_0x32994e=>{const _0x552a0c=_0x2f88ce;_0x32994e[_0x552a0c(0x28c)](_0x1bcdf6);});},Me*0x2);this[_0x340852(0x404)][_0x340852(0x1a2)](_0x1bcdf6,_0x3e996f);}[_0x570aba(0x186)](_0x27e4b0){const _0x946f51=_0x570aba;if(this[_0x946f51(0x404)][_0x946f51(0x227)](_0x27e4b0)){const _0xbb0941=this[_0x946f51(0x404)]['get'](_0x27e4b0);_0xbb0941&&window[_0x946f51(0x2d8)](_0xbb0941),this['_clearOtherTimers'][_0x946f51(0x1a2)](_0x27e4b0,null);}}[_0x570aba(0x2df)](_0x4eb1a8){const _0x4fed32=_0x570aba,{memberID:_0x361930,unitIDs:_0x2eb758}=_0x4eb1a8;_0x2eb758[_0x4fed32(0x247)](_0xc3f34c=>{const _0x2e001b=_0x4fed32;var _0x3a1015;const _0x3823b5=this['_unitOnClients'][_0x2e001b(0x398)](_0xc3f34c);_0x3823b5&&(_0x3823b5[_0x2e001b(0x28c)](_0x361930),(_0x3a1015=this[_0x2e001b(0x3a6)](_0xc3f34c))==null||_0x3a1015[_0x2e001b(0x325)](_0x3823b5[_0x2e001b(0x2aa)]===0x0?u[_0x2e001b(0x1b1)][_0x2e001b(0x1f5)]:u['UnitStatus'][_0x2e001b(0x273)]));}),this[_0x4fed32(0x186)](_0x361930);}[_0x570aba(0x367)](_0x4a3734){const _0x45ec82=_0x570aba;this[_0x45ec82(0x37e)](_0x4a3734['memberID']);}[_0x570aba(0x258)](_0xa18aa3){const _0x4206be=_0x570aba;localStorage[_0x4206be(0x387)](Le,JSON[_0x4206be(0x20e)](_0xa18aa3));}[_0x570aba(0x253)](){const _0x5edfe6=_0x570aba;this[_0x5edfe6(0x369)]=window[_0x5edfe6(0x1f4)](()=>{const _0x4cd018=_0x5edfe6;this[_0x4cd018(0x258)]({'type':0x2,'memberID':this[_0x4cd018(0x1ab)]});},Me);}[_0x570aba(0x3a6)](_0x5b792b){const _0x1d3a61=_0x570aba;return this['_unitStatus']['has'](_0x5b792b)||this[_0x1d3a61(0x3e0)][_0x1d3a61(0x1a2)](_0x5b792b,new d[(_0x1d3a61(0x2bb))](u[_0x1d3a61(0x1b1)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x1d3a61(0x3e0)][_0x1d3a61(0x398)](_0x5b792b);}}var Be=(_0x548fcc=>(_0x548fcc[_0x548fcc[_0x570aba(0x3aa)]=0x0]=_0x570aba(0x3aa),_0x548fcc[_0x548fcc['OK']=0x1]='OK',_0x548fcc[_0x548fcc[_0x570aba(0x23f)]=0x2]=_0x570aba(0x23f),_0x548fcc[_0x548fcc[_0x570aba(0x35c)]=0x3]=_0x570aba(0x35c),_0x548fcc[_0x548fcc[_0x570aba(0x37f)]=0x4]=_0x570aba(0x37f),_0x548fcc[_0x548fcc[_0x570aba(0x1e5)]=0x5]='UNAUTHENTICATED',_0x548fcc[_0x548fcc['ALREADY_EXISTS']=0x6]=_0x570aba(0x191),_0x548fcc[_0x548fcc[_0x570aba(0x353)]=0x7]=_0x570aba(0x353),_0x548fcc[_0x548fcc[_0x570aba(0x20b)]=0x8]=_0x570aba(0x20b),_0x548fcc[_0x548fcc[_0x570aba(0x230)]=0x9]='COMPLETION_FINISHED',_0x548fcc[_0x548fcc['LOGIN_FAILED']=0xa]=_0x570aba(0x289),_0x548fcc[_0x548fcc[_0x570aba(0x32c)]=0x1389]=_0x570aba(0x32c),_0x548fcc[_0x548fcc[_0x570aba(0x3da)]=0x1771]=_0x570aba(0x3da),_0x548fcc[_0x548fcc[_0x570aba(0x3cd)]=0x1772]=_0x570aba(0x3cd),_0x548fcc[_0x548fcc['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x570aba(0x1b9),_0x548fcc[_0x548fcc[_0x570aba(0x1aa)]=0x1b59]=_0x570aba(0x1aa),_0x548fcc[_0x548fcc[_0x570aba(0x235)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x548fcc[_0x548fcc[_0x570aba(0x37b)]=0x1b5b]=_0x570aba(0x37b),_0x548fcc[_0x548fcc[_0x570aba(0x2d2)]=0x1b5c]=_0x570aba(0x2d2),_0x548fcc[_0x548fcc[_0x570aba(0x323)]=0x1b5d]='APPLY_DUPLICATED',_0x548fcc[_0x548fcc[_0x570aba(0x1d7)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x548fcc[_0x548fcc[_0x570aba(0x271)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x548fcc[_0x548fcc[_0x570aba(0x3b5)]=0x232a]=_0x570aba(0x3b5),_0x548fcc[_0x548fcc[_0x570aba(0x259)]=0x232b]=_0x570aba(0x259),_0x548fcc[_0x548fcc['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x570aba(0x326),_0x548fcc[_0x548fcc[_0x570aba(0x2a8)]=0x232d]=_0x570aba(0x2a8),_0x548fcc[_0x548fcc[_0x570aba(0x3d0)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x548fcc[_0x548fcc[_0x570aba(0x32b)]=0x2712]=_0x570aba(0x32b),_0x548fcc[_0x548fcc[_0x570aba(0x226)]=0x2713]=_0x570aba(0x226),_0x548fcc[_0x548fcc[_0x570aba(0x33f)]=0x2714]=_0x570aba(0x33f),_0x548fcc[_0x548fcc[_0x570aba(0x3e3)]=0x271a]=_0x570aba(0x3e3),_0x548fcc[_0x548fcc[_0x570aba(0x39a)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x548fcc[_0x548fcc[_0x570aba(0x3df)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x548fcc[_0x548fcc[_0x570aba(0x180)]=0x271d]=_0x570aba(0x180),_0x548fcc[_0x548fcc[_0x570aba(0x2ea)]=0x271e]=_0x570aba(0x2ea),_0x548fcc[_0x548fcc[_0x570aba(0x35b)]=0x271f]=_0x570aba(0x35b),_0x548fcc[_0x548fcc['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x570aba(0x20d),_0x548fcc[_0x548fcc['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x570aba(0x2d1),_0x548fcc[_0x548fcc[_0x570aba(0x22a)]=0x2ee2]=_0x570aba(0x22a),_0x548fcc[_0x548fcc[_0x570aba(0x2b9)]=0x2ee3]=_0x570aba(0x2b9),_0x548fcc[_0x548fcc[_0x570aba(0x2f8)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x548fcc[_0x548fcc[_0x570aba(0x3d8)]=0x2ee5]=_0x570aba(0x3d8),_0x548fcc[_0x548fcc['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x570aba(0x34c),_0x548fcc[_0x548fcc[_0x570aba(0x2ef)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x548fcc[_0x548fcc[_0x570aba(0x1cd)]=0x32cb]=_0x570aba(0x1cd),_0x548fcc[_0x548fcc[_0x570aba(0x231)]=-0x1]='UNRECOGNIZED',_0x548fcc))(Be||{}),ns=Object[_0x570aba(0x31c)],rs=(_0x2657a9,_0x1f775f,_0x4e7d51,_0x4b1af0)=>{const _0x4e4ea8=_0x570aba;for(var _0x3fa838=_0x4b1af0>0x1?void 0x0:_0x4b1af0?ns(_0x1f775f,_0x4e7d51):_0x1f775f,_0x18e1a0=_0x2657a9[_0x4e4ea8(0x214)]-0x1,_0x3f2e7d;_0x18e1a0>=0x0;_0x18e1a0--)(_0x3f2e7d=_0x2657a9[_0x18e1a0])&&(_0x3fa838=_0x3f2e7d(_0x3fa838)||_0x3fa838);return _0x3fa838;},ue=(_0x290a40,_0x511021)=>(_0x38720e,_0x589ecb)=>_0x511021(_0x38720e,_0x589ecb,_0x290a40);exports[_0x570aba(0x234)]=class extends a[_0x570aba(0x283)]{constructor(_0x3c2f37,_0x5cf054,_0x27f172){const _0x106dcb=_0x570aba;super(),this[_0x106dcb(0x27d)]=_0x3c2f37,this['_httpService']=_0x5cf054,this[_0x106dcb(0x1fd)]=_0x27f172;}async[_0x570aba(0x198)](_0x29abcf,_0x590b84,_0x1e686b,..._0x1b66d9){const _0x4775c3=_0x570aba;var _0x49bf92,_0x1c44de,_0x2010cd,_0x2b23c7;const _0x1792f7=this[_0x4775c3(0x27d)]['getFocusedUnit']();if(!_0x1792f7)throw new Error(_0x4775c3(0x330));const _0x5b0e70=((_0x49bf92=this[_0x4775c3(0x1fd)]['getConfig'](u[_0x4775c3(0x269)]))!=null?_0x49bf92:u[_0x4775c3(0x2d9)])+'/'+_0x29abcf+'/run/'+_0x590b84,_0x1b8a5e=new URL(window['location'][_0x4775c3(0x2f5)]),_0x2d8017={'scriptId':_0x29abcf,'runId':(_0x1c44de=_0x1b8a5e[_0x4775c3(0x2e8)]['get'](_0x4775c3(0x39b)))!=null?_0x1c44de:'','function':_0x590b84,'unitId':_0x1792f7[_0x4775c3(0x2ed)](),'argsOfFunction':JSON[_0x4775c3(0x20e)](_0x1b66d9),'invokeId':(_0x2010cd=_0x1e686b[_0x4775c3(0x299)])!=null?_0x2010cd:'','executionId':(_0x2b23c7=_0x1e686b[_0x4775c3(0x1b8)])!=null?_0x2b23c7:''};try{const _0x1d6ce4=await this[_0x4775c3(0x1d1)][_0x4775c3(0x3d7)](_0x5b0e70,{'body':_0x2d8017});return _0x1d6ce4[_0x4775c3(0x252)][_0x4775c3(0x2eb)]&&_0x1d6ce4[_0x4775c3(0x252)][_0x4775c3(0x2eb)][_0x4775c3(0x182)]!==Be['OK']?_0x4775c3(0x339):_0x1d6ce4[_0x4775c3(0x252)][_0x4775c3(0x1af)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x570aba(0x1a5)]),ue(0x1,a[_0x570aba(0x33e)](G[_0x570aba(0x28f)])),ue(0x2,a[_0x570aba(0x205)])],exports[_0x570aba(0x234)]),exports[_0x570aba(0x392)]=xe,exports[_0x570aba(0x317)]=be,exports[_0x570aba(0x18a)]=Ae,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=je;
1
+ 'use strict';function _0x5424(_0x49a64b,_0x55b6b9){const _0x5a5467=_0x5a54();return _0x5424=function(_0x54243d,_0x2c5fe5){_0x54243d=_0x54243d-0x111;let _0x23ea3b=_0x5a5467[_0x54243d];return _0x23ea3b;},_0x5424(_0x49a64b,_0x55b6b9);}const _0x5c6688=_0x5424;(function(_0x4444c6,_0x153a37){const _0x5b4c97=_0x5424,_0x328661=_0x4444c6();while(!![]){try{const _0x263a6e=parseInt(_0x5b4c97(0x39e))/0x1*(-parseInt(_0x5b4c97(0x215))/0x2)+parseInt(_0x5b4c97(0x203))/0x3*(-parseInt(_0x5b4c97(0x225))/0x4)+parseInt(_0x5b4c97(0x224))/0x5+parseInt(_0x5b4c97(0x265))/0x6+parseInt(_0x5b4c97(0x1b9))/0x7+-parseInt(_0x5b4c97(0x36a))/0x8*(parseInt(_0x5b4c97(0x2ee))/0x9)+parseInt(_0x5b4c97(0x1b1))/0xa;if(_0x263a6e===_0x153a37)break;else _0x328661['push'](_0x328661['shift']());}catch(_0x2fc33d){_0x328661['push'](_0x328661['shift']());}}}(_0x5a54,0xe0920));var Ve=Object[_0x5c6688(0x1bb)],Xe=(_0x42de0a,_0x4a910a,_0x38285d)=>_0x4a910a in _0x42de0a?Ve(_0x42de0a,_0x4a910a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38285d}):_0x42de0a[_0x4a910a]=_0x38285d,h=(_0x10085b,_0x49da62,_0x18e16b)=>Xe(_0x10085b,typeof _0x49da62!='symbol'?_0x49da62+'':_0x49da62,_0x18e16b);Object[_0x5c6688(0x1bb)](exports,Symbol[_0x5c6688(0x311)],{'value':_0x5c6688(0x154)});const u=require(_0x5c6688(0x119)),a=require(_0x5c6688(0x2c2)),p=require(_0x5c6688(0x308)),G=require(_0x5c6688(0x227)),b=require('@univerjs/docs-ui'),Ge=require(_0x5c6688(0x199)),d=require('rxjs'),Y=require('@univerjs/docs'),m=require(_0x5c6688(0x2a9)),Ee=require(_0x5c6688(0x1e1)),g=require(_0x5c6688(0x137)),$=require('rxjs/operators'),X=require(_0x5c6688(0x2b3)),w=require(_0x5c6688(0x135)),T=require(_0x5c6688(0x307)),D=require('@univerjs/design'),M=require(_0x5c6688(0x1d8)),Ke=require(_0x5c6688(0x366));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x2d287b,_0x31c7bd,_0x3d0bcf,_0x564585)=>{const _0x19064a=_0x5c6688;for(var _0x4d8282=_0x564585>0x1?void 0x0:_0x564585?qe(_0x31c7bd,_0x3d0bcf):_0x31c7bd,_0x1559a0=_0x2d287b[_0x19064a(0x11b)]-0x1,_0x836e6b;_0x1559a0>=0x0;_0x1559a0--)(_0x836e6b=_0x2d287b[_0x1559a0])&&(_0x4d8282=_0x836e6b(_0x4d8282)||_0x4d8282);return _0x4d8282;},Te=(_0x2dfaf3,_0x3e348e)=>(_0x4d4a3c,_0x13b4b3)=>_0x3e348e(_0x4d4a3c,_0x13b4b3,_0x2dfaf3);let de=class extends a[_0x5c6688(0x142)]{constructor(_0x124a70,_0xa32d51){const _0x22ada3=_0x5c6688;super(),this[_0x22ada3(0x141)]=_0x124a70,this[_0x22ada3(0x1e6)]=_0xa32d51,this[_0x22ada3(0x16e)]();}[_0x5c6688(0x16e)](){const _0x635763=_0x5c6688,_0x1aee64=this;this[_0x635763(0x11a)](this['_docClipboardService'][_0x635763(0x2f4)]({'onBeforePasteImage':async _0x2b97f9=>{const _0x36527a=_0x635763,_0x125870=await _0x1aee64[_0x36527a(0x1e6)][_0x36527a(0x1a1)](_0x2b97f9);return _0x125870?{'source':_0x125870[_0x36527a(0x15e)],'imageSourceType':_0x125870[_0x36527a(0x26a)]}:null;}}));}};de=ze([Te(0x0,b[_0x5c6688(0x399)]),Te(0x1,Ge[_0x5c6688(0x125)])],de);const Oe=['purple.300',_0x5c6688(0x2d1),_0x5c6688(0x183),'red.300',_0x5c6688(0x39d),_0x5c6688(0x112)];class me extends a[_0x5c6688(0x222)]{constructor(){const _0x400b9a=_0x5c6688;super(...arguments),h(this,_0x400b9a(0x37c),new Map()),h(this,'_colorIndex',0x0);}[_0x5c6688(0x350)](_0x4006e1){const _0x53f91b=_0x5c6688;if(this[_0x53f91b(0x37c)][_0x53f91b(0x332)](_0x4006e1))return this[_0x53f91b(0x37c)][_0x53f91b(0x1d3)](_0x4006e1);const _0x2ccfb4=Oe[this[_0x53f91b(0x394)]];return this[_0x53f91b(0x394)]=(this[_0x53f91b(0x394)]+0x1)%Oe[_0x53f91b(0x11b)],this[_0x53f91b(0x37c)][_0x53f91b(0x292)](_0x4006e1,_0x2ccfb4),_0x2ccfb4;}}function we(_0x9da89e){let _0x56b7d0='';for(const _0xa0aa0e of _0x9da89e){const {startOffset:_0x287295,endOffset:_0x361d3f,isActive:_0x784f83,rangeType:_0x19d4f2,segmentId:_0x3562f9,segmentPage:_0x5dae11}=_0xa0aa0e;_0x56b7d0['length']&&(_0x56b7d0+=','),_0x56b7d0+=_0x287295+':'+_0x361d3f+':'+(_0x784f83?'1':'0')+':'+_0x19d4f2+':'+_0x3562f9+':'+_0x5dae11;}return _0x56b7d0;}function Je(_0x3b3102){const _0x53c028=_0x5c6688,_0x35aaf9=_0x3b3102[_0x53c028(0x1c0)](','),_0x2ab606=[];for(const _0x496454 of _0x35aaf9){const [_0x3db0a7,_0x5ec94f,_0xe68b44,_0xceb77a,_0x23f04a,_0x4e9204]=_0x496454[_0x53c028(0x1c0)](':');_0x2ab606[_0x53c028(0x126)]({'startOffset':Number(_0x3db0a7),'endOffset':Number(_0x5ec94f),'collapsed':_0x3db0a7===_0x5ec94f,'isActive':_0xe68b44==='1','rangeType':_0xceb77a===a[_0x53c028(0x381)][_0x53c028(0x23b)]?a['DOC_RANGE_TYPE'][_0x53c028(0x23b)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x23f04a==_0x53c028(0x2e7)?String(_0x23f04a):'','segmentPage':Number(_0x4e9204!=null?_0x4e9204:-0x1)});}return _0x2ab606[_0x53c028(0x303)](_0x2e64f7=>_0x2e64f7[_0x53c028(0x38a)])||(_0x2ab606[0x0][_0x53c028(0x38a)]=!0x0),_0x2ab606;}function _0x5a54(){const _0x431758=['filter','transformRemoteChangeset','popstate','INVITE_CODE_ALREADY_BOUND','mergeOverrideWithDependencies','Optional','Shape','connectInjector','ALREADY_EXISTS','getVpScrollXYInfoByPosToVp','YUUMI_TABLE_NOT_FOUND_IN_UNIT','collabStatus.syncing','TEXT','_messageService','LOGIN_FAILED','currentSkeleton$','getSkeleton','_themeService','Failed','IConfigService','INTERNAL_ERROR','width','WebBrowserSingleActiveUnitService','registerComponent','measureText','sessionStatus$','getCurrentSelections','deserializeRangeWithSheet','current','currentTheme$','createSocket','INVITE_CODE_HAS_BEEN_UES','unload','0\x200\x2017\x2016','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','DocStateChangeManagerService','RemoveRowCommandId','ISocketService','RemoteUniscriptService','runRefRangeMutations','subUnitId','_setupSubUnitSync','_backgroundColor','editingUnit','handleIRemoveRow','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SetSelectionsOperation','contains','APPLY_NON_SEQUENTIAL_REVISION','_unitStatus','labelPosition','pipe','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','610446VLAIzB','getOwnPropertySymbols','parse','_injector','APPLY_PERMISSION_DENIED','imageSourceType','NodePositionConvertToCursor','location','svg','getActiveRange','YUUMI_URL_COL_OUT_OF_RANGE','toRgbString','executeCommand','setShapeProps','InsertRowCommandId','next','_unitOnClients','_docTransformStateCacheService','toString','collaboration.closeRoom','collab-text-range-','idSuffix','switchMap','_eventUnsubscribe','UniverInstanceType','makeDirty','cursorInfo$','drawWith','_id','YUUMI_AI_RUN_FAILED','map','_toggleOnline','getOwnPropertyDescriptor','getCoordByCell','jsxs','selection','resize','_config','collabStatus.fetchMiss','concat','TEXT_RANGE_LAYER_INDEX','history','LOCAL_CACHE_INTERVAL_KEY','getMember','useObservable','set','SessionStatus','_docStateChangeManagerService','url(#$1','_hover','_refreshCollabCursors','dispose','setActiveRange','fillText','row','result','fillRule','_labelPosition','YUUMI_UNABLE_LOAD_URL','fillStyle','_render','newValue','add','SheetCollabCursorShape','_memberService','_updateLocalCursor','whenReady','_anchorDot','@univerjs-pro/collaboration','white','DataLoaderService','unshift','univerjs-icon\x20univerjs-icon-','CONNECTOR_DATA_TOO_LARGE','TRANSFORM_CHANGE_OBSERVABLE_TYPE','/run/','MoveRangeCommandId','propertyIsEnumerable','@univerjs/sheets-ui','_getSheetObject','VIEW_MAIN','handleInsertRangeMoveRight','fill','transformSelections','UNIVER_DOC','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','transformMutation','redoState','with','SOCKET_FAILED_RETRY','_handleHover','NOT_FOUND','NOT_COLLAB','@univerjs/core','skeleton','getCollabCursors$','getCurrent','subscribe','endRow','getConfig','_renderManagerService','executionId','_setupBeforeClosingHandler','SYNCED','useCallback','session.connection-failed','Unknown\x20user','children','jiqing.500','getUniverSheetInstance','transformIMECache','font','SNAPSHOT_INVALID_SNAPSHOT','show','debounceTime','_transformService','handleInsertRangeMoveDown','Rect','_anchor','WECHAT_HAS_BEEN_BOUND','body','event$','column','registerRefRange','createIdentifier','CollaborationSessionService','collabCursorState$','getColorFromTheme','collaboration-client.offline-data-not-saved','getCurrentRevOfUnit','string','PERMISSION_DENIED','addObjects','exhaustSavingTask','textRanges','getOffsetConfig','_hideTimer','3877317gaQsDR','_instanceService','_cursorInfo$','_colorAssignService','_registerRenderDependencies','UNIVER_SHEET','addClipboardHook','range','generateRandomId','getStateCache','cursorInfo','_scene','wsSessionTicketUrl','ISnapshotServerService','RefRangeService','_beforeCloseService','OFFLINE','CollaborationUIEventId','function','getCellPositionByOffset','1em','some','[CollaborationDataLoaderController]','_uiPartsService','UNRECOGNIZED','@univerjs/ui','@univerjs/engine-render','_drawAnchor','takeUntil','mapTo','APPLY_REJECT','name','_docTransformIMECacheService','SetWorksheetActivateCommand','getRelativeToViewportCoord','toStringTag','DesktopCollaborationStatusDisplayController','_docSyncEditingCollabCursorService','bottom','TOO_MANY_REQUESTS','OTHER_CLIENTS_EDITING','removeParam','ColorKit','IUIPartsService','CollaborationDataLoaderController','_session','from','INVALID_INVITE_CODE','_initStatusComponent','unitID','hide','unitId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entityInit$','CollaborationEvent','DeleteRangeMoveLeftCommandId','YUUMI_RATE_OVER_LIMIT','_context','USERS_LEAVE','assign','delete','Subject','session.collaboration-timeout','CollaborationUIEventService','save','hovered','_entityInit$','#FFF','has','onRendered','ranges','UniverCollaborationClientPlugin','SNAPSHOT_HAS_BEEN_REMOVED','unit','getSheetId','uni.network.url-service','_updateCollabCursors','UNAUTHENTICATED','_scheduleClearOtherTimer','includes','MemberService','ENSURE_SNAPSHOT_EXECUTION','handleMoveRange','addObject','replace','CollaborationStatus','getMergeData','url(#off-line-icon_clip0_910_343)','YUUMI_SUBSCRIPTION_NOT_FOUND','on-line-icon_clip0_910_349','_selfUnitIDs','post','mask','_cachedData','univer-flex\x20univer-items-center','getParam','lineTo','transformMutationsWithChangeset','assignAColorForMemberID','YUUMI_ALL_TABLES_IS_INVALID','send','EMAIL_HAS_BEEN_BOUND','ticket','_docTransformSelectionsService','findNodePositionByCharIndex','CommandType','LocaleService','collabStatus.conflict','stringify','collaboration-client-ui.config','_cursors','_status$','createElement','getUnhiddenWorksheets','_drawRectRange','getFocusedUnit','round','roomMembers','ACTIVE_UNIT_EVENT_CHANNEL','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','@univerjs/rpc','undoState','Error','onStarting','8YJCUAE','off-line-icon_clip0_910_343','collaboration.single-unit.warning','init','subscribeEvent','_removeCollabCursors','_startSheetCollabCursor','getLocalCacheKey','AWAITING','_handleLeaveEvent','_collabSessionService','complete','dispose$','entries','attrs','clipPath','collab-client.tooltip.reconnect','useDependency','_assignedColors','SHEET_VIEWPORT_KEY','LICENSE_DISTRO_REJECTED','CollaborationSocketService','isTransformMutationFailure','DOC_RANGE_TYPE','displayName','_roomMembers$','...','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','RichTextEditingMutation','indexOf','IBeforeCloseService','none','isActive','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','merge','Tooltip','flatMap','startsWith','_initEntityListener','on-line-icon','_initStatusListener','session.will-retry','_colorIndex','_toggleOffline','_localCacheService','COMPLETION_FINISHED','DocIMEInputManagerService','IDocClipboardService','defIds','getViewport','prototype','blue.400','295blesQB','CONFLICT','sheetId','UniverIcon','eventID','all','MOBILE_HAS_BEEN_BOUND','yellow.400','_send','_logService','mutations','black','_handleHeartbeatEvent','addEventListener','@univerjs-pro/collaboration-client','disposeWithMe','length','_docSkeletonManagerService','ILocalCacheService','_revisionService','handleInsertCol','InsertColCommandId','type','IURLService','_handleEvent','UNDEFINED','IImageIoService','push','DocCollaborationEntity','runId','application/json','_drawTextRange','onPointerEnter$','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','setParam','LICENSE_IMPORT_SIZE_EXCEEDED','WebURLService','extend','_onCursorDelete','loadOfflineData','UnitStatus','collabStatus.offline','react/jsx-runtime','throttleTime','@univerjs/sheets','_saveCache','getSheetBySheetId','_color','color','UPDATE_CURSOR','_localStorageService','transformStateCache','div','_name','_docClipboardService','RxDisposable','backgroundColor','forwardRef','InsertRangeMoveRightCommandId','then','getColor','closePath','_disabled','restore','_createSocketURL','setAlpha','storage','invokeId','replaceDocRanges','docStateChange$','Rectangle','_heartbeatTimer','_commandService','Module','_sheetSkeletonManagerService','_range','_httpService','getRenderById','SheetSkeletonManagerService','_refRangeService','_ensureSubject','_entities','getMemberID','source','Inject','http://www.w3.org/2000/svg','sheetID','top','onPointerLeave$','getUnitStatus$','_initEvent','data','getAncestorScale','colorChannel1','_getScale','searchParams','getCollabEntity$','_hovered','asObservable','_init','_collabCursorController','override','ICommandService','getActiveSheet','_transformUndoRedoStack','_docSkeleton','trim','getUnitId','_collaborationController','FromArray','_getAnchorBounding','createInstance','find','use','m1Prime','IUniverInstanceService','_getSaveTimeout','EffectRefRangId','random','handleInsertRow','green.600','registerRenderModule','m2Prime','Injector','LICENSE_MAX_UNITS_EXCEEDED','shareReplay','touchDependencies','key','height','hasOwnProperty','fromEvent','href','requireSession','_initResize','INVALID_ARGUMENT','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','RemoveColCommandId','registerDependencies','max','doc.mutation.rich-text-editing','_cursor','@univerjs/drawing','getCurrentUnitForType','setUndoRedoMutationParamsCache','_dataLoaderService','getUndoRedoMutationParamsCache','xlink:href','clearTimeout','arc','saveImage','_saveTaskMap','ONLINE','collab-text-anchor-','permission.title','_univerInstanceService','pushState','code','_updateSubUnitFromURLParams','Warning','setItem','onMouseMove','NodePositionConvertToRectRange','_onCursorUpdate','getSheetObject','UniverCollaborationClientUIPlugin','4362270tbypXW','_lastPointer','call','INotificationService','_initDependencies','permission.content','DocSelectionManagerService','DocSkeletonManagerService','6924260etAyVd','setConfig','defineProperty','params','_handleJoinEvent','error','saveTaskMap','split','_getMergeRange','_textBubble','COLORS','selections','BehaviorSubject','runOnServer','unsubscribe','tag','getValue','Vector2','USER_NOT_INVITED_CODE','_updateURLWithCurrentState','replaceState','_configService','BrowserCollaborationSocketService','CLOSE_ROOM','SheetsSelectionsService','forEach','get','collabStatus.synced','fromEventSubject','_localeService','debug','react','_removeClearOtherTimer','path','deepClone','onCommandExecuted','debounce','combineLatest','_startDocCollabCursor','getTypeOfUnitAdded$','@univerjs/engine-formula','Tools','AWAITING_WITH_PENDING','ILogService','HEADER_MENU','_imageIoService','min','saveOfflineData','beginPath','CollaborationController','APPLY_DUPLICATED','_getSessionTicket','_transformPreviousActiveRange','ITransformService','MessageType','_collaborationUIEventService','_onRefRangeChange','off-line-icon','_transformHistoryAndStateStack','defs','_initCommandExecutedListener','getItem','_shapes','FETCH_MISS','getRangePointData','subunit','toDisposable','NO_OTHER_CLIENTS_EDITING','syncEditingCollabCursor','icon','origin','size','useRef','_notificationService','87EThxNn','jsx','handleIRemoveCol','0\x200\x2016\x2016','enableLocalCache','setTimeout','distinctUntilChanged','isArray','_cursorShapes','PY_RUNTIME_SCRIPT_ERROR','IRenderManagerService','_clearOtherTimers','apply','getTypeOfUnitDisposed$','url(#on-line-icon_clip0_910_349)','actions','focused$','IMessageService','632PMewSu','memberID','_urlService','endColumn','BuiltInUIPart','YUUMI_ASYNCIO_CANCELLED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','roomMembers$','evenodd','ILocalStorageService','values','_scheduleHeartbeat','currentColor','Disposable','_registerDependencies','7330395pgXNON','213704dPMKhk','isTransformMutationsWithChangesetSuccess','@univerjs/network','_syncEditingCollabCursorService','APPLY_REVISION_CONFILICT','_online','updateOfflineData','clearInterval','ThemeService','getDocRanges'];_0x5a54=function(){return _0x431758;};return _0x5a54();}class Ce extends a['RxDisposable']{constructor(){const _0x4497a0=_0x5c6688;super(...arguments),h(this,_0x4497a0(0x193),new d[(_0x4497a0(0x1c5))](null)),h(this,_0x4497a0(0x2e3),this['_collabCursorState$']['asObservable']());}[_0x5c6688(0x1fd)](_0x45294a){const _0x4fb9f7=_0x5c6688,{unitID:_0x248d59,memberID:_0x14203d,textRanges:_0x29ebfa}=_0x45294a,_0x3be7cc=we(_0x29ebfa);if(_0x3be7cc==='')return;const _0x147838={'unitID':_0x248d59,'memberID':_0x14203d,'selection':_0x3be7cc};this[_0x4fb9f7(0x193)][_0x4fb9f7(0x274)](_0x147838);}}var Ze=Object[_0x5c6688(0x285)],Qe=(_0x270137,_0x49fc57,_0x49579b,_0x373c21)=>{for(var _0x3cbcb4=_0x373c21>0x1?void 0x0:_0x373c21?Ze(_0x49fc57,_0x49579b):_0x49fc57,_0x3e7a32=_0x270137['length']-0x1,_0x5428f5;_0x3e7a32>=0x0;_0x3e7a32--)(_0x5428f5=_0x270137[_0x3e7a32])&&(_0x3cbcb4=_0x5428f5(_0x3cbcb4)||_0x3cbcb4);return _0x3cbcb4;},L=(_0x10bd92,_0x211b45)=>(_0x31351a,_0x4812c4)=>_0x211b45(_0x31351a,_0x4812c4,_0x10bd92);const et=0x12c,tt=0x64;let fe=class extends a[_0x5c6688(0x142)]{constructor(_0x80075d,_0x2df170,_0x573c26,_0x34b77b,_0x38c735,_0x5d62c7,_0x3c96a9,_0x5e0af1,_0x4acfdc){const _0x150571=_0x5c6688;super(),h(this,_0x150571(0x22a),!0x1),h(this,_0x150571(0x16e),!0x1),h(this,_0x150571(0x2f0),new d[(_0x150571(0x1c5))](new Map())),h(this,_0x150571(0x27f),this[_0x150571(0x2f0)]['asObservable']()),h(this,_0x150571(0x383),new d['BehaviorSubject']([])),h(this,_0x150571(0x21c),this[_0x150571(0x383)][_0x150571(0x263)](d[_0x150571(0x2d7)](et))),h(this,_0x150571(0x2a6),a[_0x150571(0x1dd)](_0x153ce8=>{const _0x53fb7e=_0x150571,_0x515294={'eventID':m[_0x53fb7e(0x324)][_0x53fb7e(0x13c)],'data':{'unitID':this[_0x53fb7e(0x31f)],'memberID':this[_0x53fb7e(0x31b)][_0x53fb7e(0x15d)](),'selection':we(_0x153ce8)}};this['_session']['send'](_0x515294,this[_0x53fb7e(0x31f)]);},tt)),(this['unitID']=_0x80075d,this['_session']=_0x2df170,this['_injector']=_0x573c26,this[_0x150571(0x2f1)]=_0x34b77b,this[_0x150571(0x2a5)]=_0x38c735,this[_0x150571(0x228)]=_0x5d62c7,this[_0x150571(0x2d8)]=_0x3c96a9,this[_0x150571(0x1a6)]=_0x5e0af1,this[_0x150571(0x153)]=_0x4acfdc);}get[_0x5c6688(0x2f8)](){const _0xd36050=_0x5c6688;return this[_0xd36050(0x2f0)][_0xd36050(0x1c9)]();}get['roomMembers'](){const _0x360aba=_0x5c6688;return this[_0x360aba(0x383)][_0x360aba(0x1c9)]();}[_0x5c6688(0x298)](){const _0x39df5e=_0x5c6688;super[_0x39df5e(0x298)](),this['_cursorInfo$'][_0x39df5e(0x274)](new Map()),this['_cursorInfo$'][_0x39df5e(0x375)](),this[_0x39df5e(0x383)]['next']([]),this[_0x39df5e(0x383)][_0x39df5e(0x375)]();}['init'](){const _0x4c7b1c=_0x5c6688;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](d[_0x4c7b1c(0x30a)](this['dispose$']))[_0x4c7b1c(0x2c6)](_0x1066f1=>{const _0x221eee=_0x4c7b1c;_0x1066f1===u[_0x221eee(0x293)]['ONLINE']?this[_0x221eee(0x284)]():this['_toggleOffline']();}),this['_session'][_0x4c7b1c(0x2de)]['pipe'](d[_0x4c7b1c(0x30a)](this[_0x4c7b1c(0x376)]))[_0x4c7b1c(0x2c6)](_0x2ec7d0=>{const _0x4139e6=_0x4c7b1c,_0x2b281e=_0x2ec7d0[_0x4139e6(0x3a2)];_0x2b281e===m[_0x4139e6(0x324)][_0x4139e6(0x13c)]&&this['_onCursorUpdate'](_0x2ec7d0),_0x2b281e===m[_0x4139e6(0x324)][_0x4139e6(0x328)]&&this[_0x4139e6(0x131)](_0x2ec7d0);}),this[_0x4c7b1c(0x11a)](this[_0x4c7b1c(0x153)][_0x4c7b1c(0x1dc)](_0x459787=>{const _0x5271d2=_0x4c7b1c,_0x419df0=_0x459787[_0x5271d2(0x1bc)];_0x419df0!=null&&this[_0x5271d2(0x22a)]&&_0x459787['id']===Y['SetTextSelectionsOperation']['id']&&_0x419df0[_0x5271d2(0x321)]===this['unitID']&&_0x419df0['isEditing']===!0x1&&_0x419df0[_0x5271d2(0x334)][_0x5271d2(0x11b)]>0x0&&this[_0x5271d2(0x2a6)](_0x419df0[_0x5271d2(0x334)]);})),this['_syncEditingCollabCursorService'][_0x4c7b1c(0x2e3)][_0x4c7b1c(0x263)](d[_0x4c7b1c(0x30a)](this['dispose$']))['subscribe'](_0x2dbf79=>{const _0x1016ad=_0x4c7b1c;if((_0x2dbf79==null?void 0x0:_0x2dbf79[_0x1016ad(0x31f)])!==this['unitID'])return;const _0x3b6293={'eventID':m['CollaborationEvent'][_0x1016ad(0x13c)],'data':_0x2dbf79};this[_0x1016ad(0x1ae)](_0x3b6293);}),this[_0x4c7b1c(0x11a)](this['_commandService']['onCommandExecuted'](_0x120da1=>{const _0xad7829=_0x4c7b1c;if(_0x120da1['params']==null)return;const _0x40b296=_0x120da1[_0xad7829(0x1bc)];if(_0x120da1['id']!==Y[_0xad7829(0x386)]['id']||_0x40b296[_0xad7829(0x321)]!==this['unitID'])return;const _0x43fee0={'id':_0xad7829(0x197),'params':_0x40b296},_0x398aab=this[_0xad7829(0x2f8)];for(const [_0xfb2df9,_0x21500a]of _0x398aab){const _0x1e31ea={'id':_0xad7829(0x197),'params':{'unitId':this[_0xad7829(0x31f)],'actions':null,'textRanges':_0x21500a[_0xad7829(0x334)]}},_0x59ec73=this[_0xad7829(0x2d8)][_0xad7829(0x2bb)](_0x43fee0,_0x1e31ea,!0x1);if(m['isTransformMutationFailure'](_0x59ec73))throw _0x59ec73[_0xad7829(0x1be)];_0x398aab['set'](_0xfb2df9,{..._0x21500a,'ranges':_0x59ec73[_0xad7829(0x185)][_0xad7829(0x1bc)][_0xad7829(0x2eb)]});}queueMicrotask(()=>{const _0x2c5313=_0xad7829;this[_0x2c5313(0x2f0)][_0x2c5313(0x274)](_0x398aab);});})));}[_0x5c6688(0x1ae)](_0x2bbeeb){const _0x17093b=_0x5c6688;var _0x2a14cf,_0x37930f;const {memberID:_0x5f3091,selection:_0x14461e}=_0x2bbeeb[_0x17093b(0x166)],_0x5cc1c5=Je(_0x14461e),_0x355a40=(_0x37930f=(_0x2a14cf=this['_memberService'][_0x17093b(0x290)](this['unitID'],_0x5f3091))==null?void 0x0:_0x2a14cf['name'])!=null?_0x37930f:'Unknown\x20user',_0x18fa78={'color':this[_0x17093b(0x2f1)][_0x17093b(0x350)](_0x5f3091),'name':_0x355a40,'ranges':_0x5cc1c5},_0x462b40=this[_0x17093b(0x2f8)];_0x462b40[_0x17093b(0x292)](_0x5f3091,_0x18fa78),this[_0x17093b(0x2f0)][_0x17093b(0x274)](_0x462b40);}['_onCursorDelete'](_0x4517b0){const _0x20d797=_0x5c6688,{memberID:_0x5c90d3}=_0x4517b0[_0x20d797(0x166)],_0x2334dd=this[_0x20d797(0x2f8)];_0x2334dd[_0x20d797(0x32a)](_0x5c90d3),this[_0x20d797(0x2f0)][_0x20d797(0x274)](_0x2334dd);}[_0x5c6688(0x284)](){const _0x446991=_0x5c6688;var _0x422854;if(this[_0x446991(0x22a)]=!0x0,((_0x422854=this[_0x446991(0x1a6)][_0x446991(0x361)]())==null?void 0x0:_0x422854['getUnitId']())!==this[_0x446991(0x31f)])return;const _0x1cccaa=this[_0x446991(0x268)][_0x446991(0x1d3)](Y[_0x446991(0x1b7)])['getDocRanges']();Array[_0x446991(0x20a)](_0x1cccaa)&&_0x1cccaa['length']>0x0&&this['_updateLocalCursor'](_0x1cccaa);}['_toggleOffline'](){const _0x814fb9=_0x5c6688;this[_0x814fb9(0x22a)]=!0x1;}};fe=Qe([L(0x2,a[_0x5c6688(0x15f)](a[_0x5c6688(0x186)])),L(0x3,a[_0x5c6688(0x15f)](me)),L(0x4,a[_0x5c6688(0x15f)](u[_0x5c6688(0x33e)])),L(0x5,a['Inject'](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object[_0x5c6688(0x285)],it=(_0x25fafe,_0x9dc029,_0x2b504d,_0x59392c)=>{const _0x5e1cac=_0x5c6688;for(var _0x202fcf=_0x59392c>0x1?void 0x0:_0x59392c?st(_0x9dc029,_0x2b504d):_0x9dc029,_0x37fe73=_0x25fafe[_0x5e1cac(0x11b)]-0x1,_0x51f01b;_0x37fe73>=0x0;_0x37fe73--)(_0x51f01b=_0x25fafe[_0x37fe73])&&(_0x202fcf=_0x51f01b(_0x202fcf)||_0x202fcf);return _0x202fcf;},A=(_0x420ab4,_0x229d12)=>(_0x2fb7f8,_0x1a9e00)=>_0x229d12(_0x2fb7f8,_0x1a9e00,_0x420ab4);const nt=0x12c,rt=0x64,ot=()=>{let _0x1362e4=[],_0x40f6e8=!0x1;return _0x1a0f20=>{_0x1362e4['push'](_0x1a0f20),_0x40f6e8||(_0x40f6e8=!0x0,setTimeout(()=>{const _0x365b90=_0x5424;_0x1362e4[_0x365b90(0x1d2)](_0x349bdb=>_0x349bdb()),_0x1362e4=[],_0x40f6e8=!0x1;}));};};let Se=class extends a[_0x5c6688(0x142)]{constructor(_0x31baa8,_0x50c8ad,_0xda7689,_0x45baf5,_0x54fa52,_0x4ee6b0,_0x3f4323,_0x3e5329){const _0x24bd2c=_0x5c6688;super(),h(this,_0x24bd2c(0x22a),!0x1),h(this,_0x24bd2c(0x16e),!0x1),h(this,_0x24bd2c(0x2f0),new d[(_0x24bd2c(0x1c5))](new Map())),h(this,_0x24bd2c(0x27f),this[_0x24bd2c(0x2f0)][_0x24bd2c(0x16d)]()),h(this,_0x24bd2c(0x383),new d[(_0x24bd2c(0x1c5))]([])),h(this,_0x24bd2c(0x21c),this[_0x24bd2c(0x383)]['pipe'](d[_0x24bd2c(0x2d7)](nt))),h(this,_0x24bd2c(0x2a6),a[_0x24bd2c(0x1dd)]((_0x36f711,_0x26262d)=>{const _0x2d9132=_0x24bd2c,_0x4adc8e={'eventID':m[_0x2d9132(0x324)][_0x2d9132(0x13c)],'data':{'unitID':this[_0x2d9132(0x31f)],'memberID':this[_0x2d9132(0x31b)]['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x36f711,_0x26262d['range'])}};this[_0x2d9132(0x31b)][_0x2d9132(0x352)](_0x4adc8e,this[_0x2d9132(0x31f)]);},rt)),(this['unitID']=_0x31baa8,this['_session']=_0x50c8ad,this[_0x24bd2c(0x268)]=_0xda7689,this['_colorAssignService']=_0x45baf5,this[_0x24bd2c(0x2a5)]=_0x54fa52,this['_univerInstanceService']=_0x4ee6b0,this['_commandService']=_0x3f4323,this[_0x24bd2c(0x15a)]=_0x3e5329);}get[_0x5c6688(0x2f8)](){const _0x4a3c59=_0x5c6688;return this[_0x4a3c59(0x2f0)][_0x4a3c59(0x1c9)]();}get[_0x5c6688(0x363)](){const _0x1cb014=_0x5c6688;return this['_roomMembers$'][_0x1cb014(0x1c9)]();}['dispose'](){const _0x5d41b3=_0x5c6688;super[_0x5d41b3(0x298)](),this[_0x5d41b3(0x2f0)][_0x5d41b3(0x274)](new Map()),this[_0x5d41b3(0x2f0)][_0x5d41b3(0x375)](),this[_0x5d41b3(0x383)][_0x5d41b3(0x274)]([]),this[_0x5d41b3(0x383)][_0x5d41b3(0x375)]();}['init'](){const _0x2e4a40=_0x5c6688;this[_0x2e4a40(0x16e)]||(this[_0x2e4a40(0x16e)]=!0x0,this[_0x2e4a40(0x31b)][_0x2e4a40(0x248)][_0x2e4a40(0x263)](d[_0x2e4a40(0x30a)](this[_0x2e4a40(0x376)]))[_0x2e4a40(0x2c6)](_0x1cc4f9=>{const _0x4a759f=_0x2e4a40;_0x1cc4f9===u[_0x4a759f(0x293)][_0x4a759f(0x1a3)]?this[_0x4a759f(0x284)]():this['_toggleOffline']();}),this['_session']['event$'][_0x2e4a40(0x263)](d[_0x2e4a40(0x30a)](this[_0x2e4a40(0x376)]))['subscribe'](_0x3c420a=>{const _0x486071=_0x2e4a40,_0x244d96=_0x3c420a[_0x486071(0x3a2)];_0x244d96===m[_0x486071(0x324)][_0x486071(0x13c)]&&this[_0x486071(0x1ae)](_0x3c420a),_0x244d96===m[_0x486071(0x324)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x3c420a);}),this[_0x2e4a40(0x1f1)](),this['disposeWithMe'](this[_0x2e4a40(0x153)]['onCommandExecuted'](_0x4da356=>{const _0x5212b7=_0x2e4a40;if(this[_0x5212b7(0x22a)]&&_0x4da356['id']===g[_0x5212b7(0x25e)]['id']&&_0x4da356[_0x5212b7(0x1bc)][_0x5212b7(0x321)]===this['unitID']){const _0x3f80ce=_0x4da356[_0x5212b7(0x1bc)];this['_updateLocalCursor'](_0x3f80ce[_0x5212b7(0x257)],_0x3f80ce[_0x5212b7(0x1c4)][0x0]);}})));}[_0x5c6688(0x1ae)](_0x11bd9a){const _0x143513=_0x5c6688;var _0x409ba3,_0xfb3a1b;const {memberID:_0x44b92c,selection:_0xd918ca}=_0x11bd9a[_0x143513(0x166)],{sheetName:_0x28c2df,range:_0x3f82bb}=Ee[_0x143513(0x24a)](_0xd918ca),_0x2fc6b5={'name':(_0xfb3a1b=(_0x409ba3=this['_memberService']['getMember'](this['unitID'],_0x44b92c))==null?void 0x0:_0x409ba3[_0x143513(0x30d)])!=null?_0xfb3a1b:_0x143513(0x2cf),'range':this[_0x143513(0x1c1)](_0x28c2df,_0x3f82bb),'sheetID':_0x28c2df,'color':this['_colorAssignService'][_0x143513(0x350)](_0x44b92c),'selection':_0xd918ca},_0x21dcc9=this['cursorInfo'];_0x21dcc9[_0x143513(0x292)](_0x44b92c,_0x2fc6b5),this[_0x143513(0x2f0)]['next'](_0x21dcc9);}[_0x5c6688(0x131)](_0x319a06){const _0x3fdd0a=_0x5c6688,{memberID:_0x21c3dd}=_0x319a06[_0x3fdd0a(0x166)],_0x20206e=this['cursorInfo'];_0x20206e[_0x3fdd0a(0x32a)](_0x21c3dd),this[_0x3fdd0a(0x2f0)]['next'](_0x20206e);}[_0x5c6688(0x1c1)](_0x385984,_0x352b30){const _0x2f6372=_0x5c6688;var _0x2c448f,_0x34a772;const _0x227b6d=(_0x34a772=(_0x2c448f=this[_0x2f6372(0x1a6)][_0x2f6372(0x2d2)](this[_0x2f6372(0x31f)]))==null?void 0x0:_0x2c448f[_0x2f6372(0x139)](_0x385984))==null?void 0x0:_0x34a772[_0x2f6372(0x344)]();return(_0x227b6d==null?void 0x0:_0x227b6d[_0x2f6372(0x17b)](_0x5c19c8=>a[_0x2f6372(0x151)][_0x2f6372(0x25f)](_0x5c19c8,_0x352b30)))||_0x352b30;}[_0x5c6688(0x1f1)](){const _0x5a59b3=_0x5c6688,_0xf9d680=new a['DisposableCollection'](),_0x4429d4=ot(),_0x274fa2=()=>{const _0x2006e6=_0x5424;_0xf9d680[_0x2006e6(0x298)]();const _0x27302e=(_0x39448d,_0x8df7f,_0x36254a,_0x2f2b37)=>{const _0x59e652=_0x2006e6;let _0x4dd91d=[];switch(_0x39448d['id']){case g[_0x59e652(0x180)][_0x59e652(0x325)]:{_0x4dd91d=g['handleDeleteRangeMoveLeft'](_0x39448d,_0x2f2b37);break;}case g[_0x59e652(0x180)]['DeleteRangeMoveUpCommandId']:{_0x4dd91d=g['handleDeleteRangeMoveUp'](_0x39448d,_0x2f2b37);break;}case g[_0x59e652(0x180)][_0x59e652(0x120)]:{_0x4dd91d=g[_0x59e652(0x11f)](_0x39448d,_0x2f2b37);break;}case g[_0x59e652(0x180)]['InsertRangeMoveDownCommandId']:{_0x4dd91d=g[_0x59e652(0x2d9)](_0x39448d,_0x2f2b37);break;}case g[_0x59e652(0x180)][_0x59e652(0x145)]:{_0x4dd91d=g[_0x59e652(0x2b6)](_0x39448d,_0x2f2b37);break;}case g[_0x59e652(0x180)][_0x59e652(0x273)]:{_0x4dd91d=g[_0x59e652(0x182)](_0x39448d,_0x2f2b37);break;}case g[_0x59e652(0x180)][_0x59e652(0x2b1)]:{_0x4dd91d=g[_0x59e652(0x340)](_0x39448d,_0x2f2b37);break;}case g[_0x59e652(0x180)][_0x59e652(0x194)]:{_0x4dd91d=g[_0x59e652(0x205)](_0x39448d,_0x2f2b37);break;}case g[_0x59e652(0x180)][_0x59e652(0x253)]:{_0x4dd91d=g[_0x59e652(0x25b)](_0x39448d,_0x2f2b37);break;}}const _0x2ad804=g[_0x59e652(0x256)](_0x4dd91d,_0x2f2b37),_0x40b496=this[_0x59e652(0x2f8)][_0x59e652(0x1d3)](_0x8df7f);if(_0x40b496&&_0x2ad804){const _0x338ed5={..._0x40b496,'range':_0x2ad804};this['cursorInfo'][_0x59e652(0x292)](_0x8df7f,_0x338ed5),_0x4429d4(()=>{const _0x2fef3d=_0x59e652,_0x17f6db=this['_refRangeService'][_0x2fef3d(0x2e0)](_0x2ad804,_0x4a0c91=>(_0x17f6db[_0x2fef3d(0x298)](),_0x27302e(_0x4a0c91,_0x8df7f,_0x36254a,_0x2ad804)));_0xf9d680[_0x2fef3d(0x2a3)](_0x17f6db);});}return{'redos':[],'undos':[]};};this[_0x2006e6(0x2f8)][_0x2006e6(0x1d2)]((_0x5cd524,_0x214d61)=>{const _0x5319e2=_0x2006e6,{range:_0x103469,sheetID:_0x224714}=_0x5cd524,_0x3aeec7=this[_0x5319e2(0x15a)][_0x5319e2(0x2e0)](_0x103469,_0x460c78=>(_0x3aeec7['dispose'](),_0x27302e(_0x460c78,_0x214d61,_0x224714,_0x103469)));_0xf9d680[_0x5319e2(0x2a3)](_0x3aeec7);});};this[_0x5a59b3(0x11a)](a['toDisposable'](this['_cursorInfo$'][_0x5a59b3(0x2c6)](()=>{_0x274fa2();})));}[_0x5c6688(0x284)](){const _0x3fd933=_0x5c6688;var _0x1004f1,_0x5e96f4;if(this[_0x3fd933(0x22a)]=!0x0,((_0x1004f1=this[_0x3fd933(0x1a6)][_0x3fd933(0x361)]())==null?void 0x0:_0x1004f1[_0x3fd933(0x176)]())!==this[_0x3fd933(0x31f)])return;const _0x37b90b=(_0x5e96f4=this['_injector'][_0x3fd933(0x1d3)](g[_0x3fd933(0x1d1)])[_0x3fd933(0x249)]())==null?void 0x0:_0x5e96f4[0x0],_0x421559=this[_0x3fd933(0x1a6)][_0x3fd933(0x19a)](a[_0x3fd933(0x27d)]['UNIVER_SHEET'])[_0x3fd933(0x172)]();_0x37b90b&&_0x421559&&this[_0x3fd933(0x2a6)](_0x421559[_0x3fd933(0x338)](),_0x37b90b);}[_0x5c6688(0x395)](){const _0x182770=_0x5c6688;this[_0x182770(0x22a)]=!0x1;}};Se=it([A(0x2,a[_0x5c6688(0x15f)](a[_0x5c6688(0x186)])),A(0x3,a[_0x5c6688(0x15f)](me)),A(0x4,a[_0x5c6688(0x15f)](u[_0x5c6688(0x33e)])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g[_0x5c6688(0x2fc)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x1782a5,_0x95873e,_0x1c7a46,_0x17b36e)=>{const _0x1d7180=_0x5c6688;for(var _0x1adcdb=_0x17b36e>0x1?void 0x0:_0x17b36e?at(_0x95873e,_0x1c7a46):_0x95873e,_0x5463a8=_0x1782a5[_0x1d7180(0x11b)]-0x1,_0x215b7e;_0x5463a8>=0x0;_0x5463a8--)(_0x215b7e=_0x1782a5[_0x5463a8])&&(_0x1adcdb=_0x215b7e(_0x1adcdb)||_0x1adcdb);return _0x1adcdb;},ie=(_0x447990,_0xcdecf9)=>(_0x3a34f6,_0x344828)=>_0xcdecf9(_0x3a34f6,_0x344828,_0x447990);let x=class extends a['RxDisposable']{constructor(_0x4a5995,_0x3fb4a0,_0x383174){const _0x3cd510=_0x5c6688;super(),h(this,'_entities',new Map()),h(this,'_entityInit$',new d[(_0x3cd510(0x32b))]()),(this[_0x3cd510(0x1a6)]=_0x4a5995,this[_0x3cd510(0x268)]=_0x3fb4a0,this[_0x3cd510(0x374)]=_0x383174,this[_0x3cd510(0x16e)]());}[_0x5c6688(0x298)](){const _0x193974=_0x5c6688;super[_0x193974(0x298)](),this['_entityInit$'][_0x193974(0x375)](),this['_entities'][_0x193974(0x1d2)](_0x3cf980=>_0x3cf980[_0x193974(0x298)]());}['getCollabCursors$'](_0xa6c869){const _0xba8bfd=_0x5c6688;return this[_0xba8bfd(0x15c)][_0xba8bfd(0x332)](_0xa6c869)?this[_0xba8bfd(0x15c)]['get'](_0xa6c869)[_0xba8bfd(0x27f)]:this[_0xba8bfd(0x330)][_0xba8bfd(0x263)](d[_0xba8bfd(0x22f)](_0x2271ca=>_0x2271ca[_0xba8bfd(0x31f)]===_0xa6c869),d['switchMap'](_0x328bfe=>_0x328bfe[_0xba8bfd(0x27f)]));}[_0x5c6688(0x16e)](){const _0x4ddc88=_0x5c6688;this['_univerInstanceService'][_0x4ddc88(0x1e0)](a['UniverInstanceType'][_0x4ddc88(0x2f3)])[_0x4ddc88(0x263)](d['takeUntil'](this[_0x4ddc88(0x376)]))[_0x4ddc88(0x2c6)](async _0x2537ff=>{const _0x5a6597=_0x4ddc88,_0x1241e0=_0x2537ff[_0x5a6597(0x176)](),_0x3afe02=await this[_0x5a6597(0x370)](_0x1241e0);this[_0x5a6597(0x330)]['next'](_0x3afe02),this['_entities'][_0x5a6597(0x292)](_0x1241e0,_0x3afe02);}),this[_0x4ddc88(0x1a6)][_0x4ddc88(0x1e0)](a['UniverInstanceType'][_0x4ddc88(0x2b9)])[_0x4ddc88(0x263)](d['takeUntil'](this['dispose$']))['pipe'](d[_0x4ddc88(0x22f)](_0x295001=>!_0x295001[_0x4ddc88(0x176)]()[_0x4ddc88(0x38f)]('__')))[_0x4ddc88(0x2c6)](async _0x2676e3=>{const _0x43d5a7=_0x4ddc88,_0x4a865a=_0x2676e3[_0x43d5a7(0x176)](),_0x271f34=await this[_0x43d5a7(0x1df)](_0x4a865a);this['_entityInit$'][_0x43d5a7(0x274)](_0x271f34),this['_entities']['set'](_0x4a865a,_0x271f34);}),d['merge'](this[_0x4ddc88(0x1a6)][_0x4ddc88(0x210)](a[_0x4ddc88(0x27d)][_0x4ddc88(0x2b9)]),this[_0x4ddc88(0x1a6)][_0x4ddc88(0x210)](a[_0x4ddc88(0x27d)]['UNIVER_SHEET']))[_0x4ddc88(0x263)](d['takeUntil'](this[_0x4ddc88(0x376)]))[_0x4ddc88(0x2c6)](_0x43e452=>{const _0x83a634=_0x4ddc88,_0x393620=_0x43e452['getUnitId'](),_0x47bed1=this[_0x83a634(0x15c)][_0x83a634(0x1d3)](_0x393620);_0x47bed1&&(_0x47bed1[_0x83a634(0x298)](),this[_0x83a634(0x15c)][_0x83a634(0x32a)](_0x393620));});}async[_0x5c6688(0x370)](_0x58c89c){const _0x35825e=_0x5c6688,_0x50c79a=await this[_0x35825e(0x374)][_0x35825e(0x18f)](_0x58c89c),_0x4bedc0=this['_injector']['createInstance'](Se,_0x58c89c,_0x50c79a);return _0x4bedc0[_0x35825e(0x36d)](),_0x4bedc0;}async[_0x5c6688(0x1df)](_0x4f80c5){const _0x578b3a=_0x5c6688,_0x10d8c1=await this[_0x578b3a(0x374)]['requireSession'](_0x4f80c5),_0x402002=this[_0x578b3a(0x268)][_0x578b3a(0x17a)](fe,_0x4f80c5,_0x10d8c1);return _0x402002[_0x578b3a(0x36d)](),_0x402002;}};x=ct([ie(0x0,a[_0x5c6688(0x17e)]),ie(0x1,a[_0x5c6688(0x15f)](a[_0x5c6688(0x186)])),ie(0x2,a[_0x5c6688(0x15f)](u[_0x5c6688(0x2e2)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x17f0e3,_0x4b7b0e){const _0x473f0f=_0x5c6688;let {radius:_0x57705a,width:_0x30de95,height:_0x14ca19}=_0x4b7b0e;_0x57705a=_0x57705a!=null?_0x57705a:0x0,_0x30de95=_0x30de95!=null?_0x30de95:0x1e,_0x14ca19=_0x14ca19!=null?_0x14ca19:0x1e;let _0xe024fb=0x0,_0x3b2ab9=0x0,_0x118020=0x0;_0xe024fb=_0x3b2ab9=_0x118020=Math[_0x473f0f(0x1e7)](_0x57705a,_0x30de95/0x2,_0x14ca19/0x2),_0x17f0e3[_0x473f0f(0x1e9)](),_0x17f0e3['moveTo'](_0xe024fb,0x0),_0x17f0e3[_0x473f0f(0x34e)](_0x30de95-_0x3b2ab9,0x0),_0x17f0e3[_0x473f0f(0x1a0)](_0x30de95-_0x3b2ab9,_0x3b2ab9,_0x3b2ab9,Math['PI']*0x3/0x2,0x0,!0x1),_0x17f0e3[_0x473f0f(0x34e)](_0x30de95,_0x14ca19-_0x118020),_0x17f0e3[_0x473f0f(0x1a0)](_0x30de95-_0x118020,_0x14ca19-_0x118020,_0x118020,0x0,Math['PI']/0x2,!0x1),_0x17f0e3[_0x473f0f(0x34e)](0x0,_0x14ca19),_0x17f0e3[_0x473f0f(0x34e)](0x0,_0xe024fb),_0x17f0e3[_0x473f0f(0x1a0)](_0xe024fb,_0xe024fb,_0xe024fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x17f0e3[_0x473f0f(0x148)](),_0x4b7b0e[_0x473f0f(0x2b7)]&&(_0x17f0e3[_0x473f0f(0x32e)](),_0x17f0e3[_0x473f0f(0x2a0)]=_0x4b7b0e[_0x473f0f(0x2b7)],_0x4b7b0e[_0x473f0f(0x29d)]===_0x473f0f(0x21d)?_0x17f0e3['fill'](_0x473f0f(0x21d)):_0x17f0e3[_0x473f0f(0x2b7)](),_0x17f0e3[_0x473f0f(0x14a)]());}class ee extends p['Shape']{constructor(_0x301495,_0x1bcc27){const _0x28f707=_0x5c6688;super(_0x301495,_0x1bcc27),h(this,_0x28f707(0x13b)),h(this,'text'),(this[_0x28f707(0x13b)]=_0x1bcc27==null?void 0x0:_0x1bcc27['color'],this['text']=_0x1bcc27==null?void 0x0:_0x1bcc27['text']);}static[_0x5c6688(0x280)](_0x3e65c4,_0x329a53){const _0x5c100b=_0x5c6688,{text:_0xa3ee1e,color:_0x2b5059}=_0x329a53;_0x3e65c4[_0x5c100b(0x32e)](),_0x3e65c4[_0x5c100b(0x2d4)]=_0x5c100b(0x251);const _0x5dfb7e=_0x3e65c4[_0x5c100b(0x247)](_0xa3ee1e)['width'],_0x568e02=Math['min'](_0x5dfb7e+0x2*ne,Re);_t(_0x3e65c4,{'height':K,'radius':0x4,'width':_0x568e02,'fill':_0x2b5059}),_0x3e65c4[_0x5c100b(0x2a0)]=_0x5c100b(0x331);const _0x37f4cb=ne,_0x25d7b7=K-lt,_0x3836ba=Re-0x2*ne;if(_0x5dfb7e>_0x3836ba){let _0x2f4f00='',_0xbb1505=0x0;for(const _0x5dfb6b of _0xa3ee1e){const _0x51f1e2=_0x3e65c4[_0x5c100b(0x247)](_0x5dfb6b)[_0x5c100b(0x244)];if(_0xbb1505+_0x51f1e2<=_0x3836ba-_0x3e65c4[_0x5c100b(0x247)](_0x5c100b(0x384))[_0x5c100b(0x244)])_0x2f4f00+=_0x5dfb6b,_0xbb1505+=_0x51f1e2;else{_0x2f4f00+='...';break;}}_0x3e65c4[_0x5c100b(0x29a)](_0x2f4f00,_0x37f4cb,_0x25d7b7);}else _0x3e65c4[_0x5c100b(0x29a)](_0xa3ee1e,_0x37f4cb,_0x25d7b7);_0x3e65c4['restore']();}['_draw'](_0x15ccfd){const _0x2aabc6=_0x5c6688;ee[_0x2aabc6(0x280)](_0x15ccfd,this);}}const re=_0x5c6688(0x1a4),ht=_0x5c6688(0x279),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x1c89f1,_0x43c7a5,_0x575661,_0x2325ae){const _0x6b780c=_0x5c6688;h(this,_0x6b780c(0x1f7),[]),h(this,'_anchor',null),h(this,_0x6b780c(0x1c2),null),h(this,_0x6b780c(0x2a8),null),h(this,_0x6b780c(0x2ed),null),h(this,'_eventUnsubscribe',null),(this[_0x6b780c(0x198)]=_0x1c89f1,this[_0x6b780c(0x2f9)]=_0x43c7a5,this[_0x6b780c(0x174)]=_0x575661,this['_document']=_0x2325ae,this[_0x6b780c(0x2a1)]());}set[_0x5c6688(0x296)](_0x1a3b29){const _0x3e97f6=_0x5c6688;_0x1a3b29?(this[_0x3e97f6(0x2a8)]&&this[_0x3e97f6(0x2a8)][_0x3e97f6(0x320)](),this[_0x3e97f6(0x1c2)]&&this[_0x3e97f6(0x1c2)][_0x3e97f6(0x2d6)]()):(this['_anchorDot']&&this[_0x3e97f6(0x2a8)][_0x3e97f6(0x2d6)](),this[_0x3e97f6(0x1c2)]&&this[_0x3e97f6(0x1c2)][_0x3e97f6(0x320)]());}[_0x5c6688(0x298)](){const _0x78aa64=_0x5c6688;for(const _0x465122 of this[_0x78aa64(0x1f7)])_0x465122[_0x78aa64(0x298)]();this[_0x78aa64(0x1c2)]&&this[_0x78aa64(0x1c2)][_0x78aa64(0x298)](),this[_0x78aa64(0x2a8)]&&this[_0x78aa64(0x2a8)][_0x78aa64(0x298)](),this[_0x78aa64(0x2db)]&&this[_0x78aa64(0x2db)]['dispose'](),this['_eventUnsubscribe']&&this[_0x78aa64(0x27c)]();}[_0x5c6688(0x2a1)](){const _0x2b636e=_0x5c6688;var _0x4978a3;const {_docSkeleton:_0x191d80,_document:_0x3a8a9b}=this,{color:_0x5eff8d,name:_0x2bf588,ranges:_0x1f1cc6}=this[_0x2b636e(0x198)],_0x2aad56=_0x3a8a9b[_0x2b636e(0x2ec)](),{docsLeft:_0x2d516d,docsTop:_0x1b2398}=_0x2aad56,_0x496a1f=new b[(_0x2b636e(0x26b))](_0x2aad56,_0x191d80);for(const {startOffset:_0x1b690a,endOffset:_0x1649f2,rangeType:_0x4769b0,segmentId:_0xb21cf0,segmentPage:_0x2ca289,collapsed:_0x48fd96,isActive:_0x112753}of _0x1f1cc6){const _0x1167cd=_0x191d80['findNodePositionByCharIndex'](_0x1b690a,!0x0,_0xb21cf0,_0x2ca289);let _0x34003b=_0x191d80[_0x2b636e(0x356)](_0x1649f2,!0x0,_0xb21cf0,_0x2ca289);if(_0x34003b==null&&(_0x34003b=_0x191d80['findNodePositionByCharIndex'](_0x1649f2-0x1,!0x1,_0xb21cf0,_0x2ca289)),_0x112753){const {contentBoxPointGroup:_0x54b46d}=_0x496a1f['getRangePointData'](_0x34003b,_0x34003b);if(_0x54b46d['length']===0x0)continue;this[_0x2b636e(0x309)](_0x5eff8d,_0x54b46d,_0x2d516d,_0x1b2398,_0x2bf588),this[_0x2b636e(0x27c)]=this[_0x2b636e(0x2bf)]();}if(_0x1167cd&&_0x34003b){if(_0x4769b0===a[_0x2b636e(0x381)]['RECT']){const _0x22a972=new b[(_0x2b636e(0x1ad))](_0x2aad56,_0x191d80),{pointGroup:_0x3def9f}=(_0x4978a3=_0x22a972['getRangePointData'](_0x1167cd,_0x34003b))!=null?_0x4978a3:{};if(_0x3def9f==null||_0x3def9f[_0x2b636e(0x11b)]===0x0)continue;this[_0x2b636e(0x360)](_0x5eff8d,_0x3def9f,_0x2d516d,_0x1b2398);}else{if(!_0x48fd96){const {borderBoxPointGroup:_0x529e8d}=_0x496a1f[_0x2b636e(0x1f9)](_0x1167cd,_0x34003b);if(_0x529e8d[_0x2b636e(0x11b)]===0x0)continue;this[_0x2b636e(0x12a)](_0x5eff8d,_0x529e8d,_0x2d516d,_0x1b2398);}}}}}[_0x5c6688(0x309)](_0x4dcbbf,_0x52f459,_0x13dc78,_0x2df9b5,_0x505af2){const _0x3e1dba=_0x5c6688,_0x448541=this[_0x3e1dba(0x179)](_0x52f459),{left:_0x408cc1,top:_0x2bd4b5,height:_0x14c03c}=_0x448541,_0x59a3c9=this[_0x3e1dba(0x169)](),_0xedf0fd=ft/_0x59a3c9,_0x52ac3e=new p[(_0x3e1dba(0x2da))](re+a['Tools'][_0x3e1dba(0x2f6)](k),{'left':_0x408cc1+_0x13dc78-_0xedf0fd,'top':_0x2bd4b5+_0x2df9b5,'height':_0x14c03c,'width':dt,'fill':_0x4dcbbf||p[_0x3e1dba(0x147)](a[_0x3e1dba(0x1c3)][_0x3e1dba(0x116)],0x0),'strokeWidth':_0xedf0fd,'stroke':St,'evented':!0x0});this[_0x3e1dba(0x2db)]=_0x52ac3e,this[_0x3e1dba(0x2f9)][_0x3e1dba(0x341)](_0x52ac3e,b[_0x3e1dba(0x28d)]);const _0x342f76=new p[(_0x3e1dba(0x2da))](re+a[_0x3e1dba(0x1e2)][_0x3e1dba(0x2f6)](k),{'left':_0x408cc1+_0x13dc78-_0xedf0fd,'top':_0x2bd4b5+_0x2df9b5-oe/0x2,'height':oe,'width':oe,'fill':_0x4dcbbf||p[_0x3e1dba(0x147)](a[_0x3e1dba(0x1c3)][_0x3e1dba(0x116)],0x0),'strokeWidth':0x0,'stroke':_0x4dcbbf||p[_0x3e1dba(0x147)](a[_0x3e1dba(0x1c3)][_0x3e1dba(0x116)],0x0),'evented':!0x1});this[_0x3e1dba(0x2a8)]=_0x342f76,this['_scene'][_0x3e1dba(0x341)](_0x342f76,b[_0x3e1dba(0x28d)]);const _0x1177a6=new ee(re+a[_0x3e1dba(0x1e2)]['generateRandomId'](k),{'left':_0x408cc1+_0x13dc78-_0xedf0fd,'top':_0x2bd4b5+_0x2df9b5-K,'text':_0x505af2,'color':_0x4dcbbf});this[_0x3e1dba(0x1c2)]=_0x1177a6,this[_0x3e1dba(0x2f9)][_0x3e1dba(0x341)](_0x1177a6,b[_0x3e1dba(0x28d)]),this[_0x3e1dba(0x296)]=!0x1;}[_0x5c6688(0x2bf)](){const _0x2f0dbf=_0x5c6688,_0x10db7f=this[_0x2f0dbf(0x2db)][_0x2f0dbf(0x12b)][_0x2f0dbf(0x36e)](()=>{this['_hover']=!0x0;}),_0x5e80ce=this[_0x2f0dbf(0x2db)][_0x2f0dbf(0x163)][_0x2f0dbf(0x36e)](()=>{const _0x54d4ab=_0x2f0dbf;this['_hideTimer']&&clearTimeout(this[_0x54d4ab(0x2ed)]),this['_hideTimer']=setTimeout(()=>{const _0x2f83a6=_0x54d4ab;this[_0x2f83a6(0x296)]=!0x1;},0x7d0);});return()=>{const _0x2055ad=_0x2f0dbf;_0x10db7f[_0x2055ad(0x1c7)](),_0x5e80ce[_0x2055ad(0x1c7)]();};}[_0x5c6688(0x12a)](_0x3e3214,_0x3d9353,_0x10443e,_0x474b1d){const _0x40b716=_0x5c6688,_0x5d6587=new a[(_0x40b716(0x318))](_0x3e3214)['setAlpha'](0.2)[_0x40b716(0x270)](),_0x313bbc=new p['RegularPolygon'](ht+a[_0x40b716(0x1e2)]['generateRandomId'](k),{'pointsGroup':_0x3d9353,'fill':_0x5d6587||p['getColor'](a['COLORS'][_0x40b716(0x116)],0.2),'left':_0x10443e,'top':_0x474b1d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x40b716(0x1f7)]['push'](_0x313bbc),this['_scene'][_0x40b716(0x341)](_0x313bbc,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5c6688(0x360)](_0x227bb5,_0xfd958a,_0x6aef9c,_0x4dee2b){const _0xa9139e=_0x5c6688,_0x4b037f=new a[(_0xa9139e(0x318))](_0x227bb5)[_0xa9139e(0x14c)](0.2)[_0xa9139e(0x270)](),_0x1709a7=new p['RegularPolygon'](ut+a[_0xa9139e(0x1e2)][_0xa9139e(0x2f6)](k),{'pointsGroup':_0xfd958a,'fill':_0x4b037f||p['getColor'](a[_0xa9139e(0x1c3)][_0xa9139e(0x116)],0.2),'left':_0x6aef9c,'top':_0x4dee2b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1709a7),this[_0xa9139e(0x2f9)][_0xa9139e(0x341)](_0x1709a7,b[_0xa9139e(0x28d)]);}[_0x5c6688(0x179)](_0x17def8){const _0x217a58=_0x17def8[0x0],_0x2d1a1d=_0x217a58[0x0],_0x4a5e41=_0x217a58[0x2],{x:_0x2c3fac,y:_0x2a15ee}=_0x2d1a1d,{x:_0x3118ab,y:_0x4b0ad2}=_0x4a5e41;return{'left':_0x2c3fac,'top':_0x2a15ee,'width':_0x3118ab-_0x2c3fac,'height':_0x4b0ad2-_0x2a15ee};}[_0x5c6688(0x169)](){const _0x11a056=_0x5c6688,{scaleX:_0x3ca909,scaleY:_0x14fb23}=this[_0x11a056(0x2f9)]['getAncestorScale']();return Math[_0x11a056(0x196)](_0x3ca909,_0x14fb23);}}var It=Object[_0x5c6688(0x285)],vt=(_0x4cf66d,_0x14a372,_0x439d3c,_0xee57a1)=>{const _0x2ac60d=_0x5c6688;for(var _0x5d8b2d=_0xee57a1>0x1?void 0x0:_0xee57a1?It(_0x14a372,_0x439d3c):_0x14a372,_0x33f62e=_0x4cf66d[_0x2ac60d(0x11b)]-0x1,_0x2d19fa;_0x33f62e>=0x0;_0x33f62e--)(_0x2d19fa=_0x4cf66d[_0x33f62e])&&(_0x5d8b2d=_0x2d19fa(_0x5d8b2d)||_0x5d8b2d);return _0x5d8b2d;},W=(_0x25216f,_0x245f99)=>(_0x2c4e1e,_0x28486c)=>_0x245f99(_0x2c4e1e,_0x28486c,_0x25216f);let Ie=class extends a[_0x5c6688(0x142)]{constructor(_0x13fc0,_0x20ecc1,_0x7fead,_0x1ed904,_0x31c265){const _0x264357=_0x5c6688;super(),h(this,_0x264357(0x20b),[]),h(this,_0x264357(0x35c),[]),(this[_0x264357(0x327)]=_0x13fc0,this[_0x264357(0x11c)]=_0x20ecc1,this[_0x264357(0x16f)]=_0x7fead,this[_0x264357(0x153)]=_0x1ed904,this[_0x264357(0x240)]=_0x31c265,this[_0x264357(0x16e)]());}['_init'](){const _0x3edb1d=_0x5c6688,_0x571e33=this[_0x3edb1d(0x327)][_0x3edb1d(0x321)],_0x343a85=this[_0x3edb1d(0x11c)];this[_0x3edb1d(0x11a)](d[_0x3edb1d(0x1de)]([this[_0x3edb1d(0x16f)][_0x3edb1d(0x2c4)](_0x571e33),this['_themeService'][_0x3edb1d(0x24c)]])[_0x3edb1d(0x263)]($['map'](([_0x4b13e4,_0x1e8004])=>({'skeleton':_0x343a85[_0x3edb1d(0x23f)](),'cursors':[..._0x4b13e4[_0x3edb1d(0x21f)]()][_0x3edb1d(0x38e)](_0x4c1ec9=>({..._0x4c1ec9,'color':this[_0x3edb1d(0x240)][_0x3edb1d(0x2e4)](_0x4c1ec9[_0x3edb1d(0x13b)])}))})))['subscribe'](_0x3cef33=>{const _0x4ec401=_0x3edb1d;if(this[_0x4ec401(0x36f)](),_0x3cef33){const {skeleton:_0x40f26d,cursors:_0x24922b}=_0x3cef33;this['_updateCollabCursors'](_0x40f26d,_0x24922b);}})),this['_initResize'](),this[_0x3edb1d(0x1f5)]();}[_0x5c6688(0x33a)](_0xa6f3b9,_0x31baf7){const _0x5be14f=_0x5c6688,{scene:_0x35470b,mainComponent:_0x7a3dc}=this[_0x5be14f(0x327)],_0x5cc3ba=_0x31baf7[_0x5be14f(0x283)](_0x3b09b2=>new De(_0x3b09b2,_0x35470b,_0xa6f3b9,_0x7a3dc));this[_0x5be14f(0x20b)]=_0x5cc3ba,this[_0x5be14f(0x35c)]=_0x31baf7;}[_0x5c6688(0x297)](){const _0x4431f6=_0x5c6688;this[_0x4431f6(0x36f)]();const {scene:_0x4fc334,mainComponent:_0x5ddc4a}=this['_context'],_0xa913a6=this['_docSkeletonManagerService'][_0x4431f6(0x23f)](),_0x498b4e=this[_0x4431f6(0x35c)][_0x4431f6(0x283)](_0x1d283e=>new De(_0x1d283e,_0x4fc334,_0xa913a6,_0x5ddc4a));this[_0x4431f6(0x20b)]=_0x498b4e;}[_0x5c6688(0x36f)](){const _0x4cdf2d=_0x5c6688;this['_cursorShapes'][_0x4cdf2d(0x1d2)](_0x537ed1=>_0x537ed1[_0x4cdf2d(0x298)]()),this[_0x4cdf2d(0x20b)]=[];}['_initCommandExecutedListener'](){const _0x594b2e=_0x5c6688,_0x53740b=[b['SetDocZoomRatioOperation']['id']];this[_0x594b2e(0x11a)](this[_0x594b2e(0x153)][_0x594b2e(0x1dc)](_0x1534b4=>{const _0x3dd6b0=_0x594b2e;_0x53740b[_0x3dd6b0(0x33d)](_0x1534b4['id'])&&_0x1534b4[_0x3dd6b0(0x1bc)][_0x3dd6b0(0x321)]===this[_0x3dd6b0(0x327)][_0x3dd6b0(0x321)]&&this[_0x3dd6b0(0x297)]();}));}[_0x5c6688(0x190)](){const _0x3ce47f=_0x5c6688;this['disposeWithMe'](a[_0x3ce47f(0x1d5)](this[_0x3ce47f(0x327)]['engine']['onTransformChange$'])[_0x3ce47f(0x263)]($[_0x3ce47f(0x22f)](_0x1a565b=>_0x1a565b['type']===p[_0x3ce47f(0x2af)][_0x3ce47f(0x289)]),$[_0x3ce47f(0x136)](0x10))[_0x3ce47f(0x2c6)](()=>{const _0x3f9f29=_0x3ce47f;this[_0x3f9f29(0x297)]();}));}};Ie=vt([W(0x1,a[_0x5c6688(0x15f)](Y[_0x5c6688(0x1b8)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x5c6688(0x171)]),W(0x4,a['Inject'](a[_0x5c6688(0x22d)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x5c6688(0x235)]{constructor(_0xc52b2f,_0x5f5a0e){const _0x524b33=_0x5c6688;super(_0xc52b2f,_0x5f5a0e),h(this,_0x524b33(0x13a)),h(this,_0x524b33(0x16c),!0x1),h(this,_0x524b33(0x156)),h(this,_0x524b33(0x140),''),h(this,_0x524b33(0x29e),_0x524b33(0x162)),h(this,_0x524b33(0x259)),(_0x5f5a0e&&this[_0x524b33(0x272)](_0x5f5a0e),this[_0x524b33(0x12b)][_0x524b33(0x36e)](()=>this[_0x524b33(0x272)]({'hovered':!0x0})),this[_0x524b33(0x163)][_0x524b33(0x36e)](()=>this[_0x524b33(0x272)]({'hovered':!0x1})));}[_0x5c6688(0x272)](_0x3473b0){const _0x214066=_0x5c6688;var _0x4bcecd,_0x30130c,_0x8bbf44,_0x41698e,_0x568f25,_0x547905;this[_0x214066(0x13a)]=(_0x4bcecd=_0x3473b0[_0x214066(0x13b)])!=null?_0x4bcecd:this[_0x214066(0x13a)],this[_0x214066(0x16c)]=(_0x30130c=_0x3473b0[_0x214066(0x32f)])!=null?_0x30130c:this['_hovered'],this[_0x214066(0x156)]=(_0x8bbf44=_0x3473b0[_0x214066(0x2f5)])!=null?_0x8bbf44:this[_0x214066(0x156)],this[_0x214066(0x140)]=(_0x41698e=_0x3473b0[_0x214066(0x30d)])!=null?_0x41698e:this['_name'],this[_0x214066(0x29e)]=(_0x568f25=_0x3473b0[_0x214066(0x262)])!=null?_0x568f25:this[_0x214066(0x29e)],this['_backgroundColor']=(_0x547905=_0x3473b0[_0x214066(0x143)])!=null?_0x547905:this[_0x214066(0x259)],this['transformByState']({'width':_0x3473b0[_0x214066(0x244)],'height':_0x3473b0[_0x214066(0x18b)]});}['onMouseMove'](_0x43ffad){const _0x1f6300=_0x5c6688,{row:_0x5d5a23,column:_0x28b4c9}=_0x43ffad;if(_0x5d5a23>=this[_0x1f6300(0x156)]['startRow']&&_0x5d5a23<=this[_0x1f6300(0x156)][_0x1f6300(0x2c7)]&&_0x28b4c9>=this[_0x1f6300(0x156)]['startColumn']&&_0x28b4c9<=this[_0x1f6300(0x156)][_0x1f6300(0x218)]){this[_0x1f6300(0x272)]({'hovered':!0x0});return;}this[_0x1f6300(0x272)]({'hovered':!0x1});}['triggerDblclick'](_0x177844){return!0x1;}['_draw'](_0x2a7821){const _0x1da2a4=_0x5c6688;p[_0x1da2a4(0x2da)][_0x1da2a4(0x280)](_0x2a7821,{'width':this[_0x1da2a4(0x244)],'height':this[_0x1da2a4(0x18b)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x1da2a4(0x259)]}),this['_hovered']&&(_0x2a7821[_0x1da2a4(0x32e)](),_0x2a7821['transform'](0x1,0x0,0x0,0x1,this[_0x1da2a4(0x244)],this['_labelPosition']===_0x1da2a4(0x314)?0x0:-0x14),ee[_0x1da2a4(0x280)](_0x2a7821,{'text':this[_0x1da2a4(0x140)],'color':this[_0x1da2a4(0x13a)]}),_0x2a7821[_0x1da2a4(0x14a)]());}}var Ct=Object[_0x5c6688(0x285)],pt=(_0x163262,_0x22359e,_0x27e64d,_0x4b82bd)=>{for(var _0x42c5dc=_0x4b82bd>0x1?void 0x0:_0x4b82bd?Ct(_0x22359e,_0x27e64d):_0x22359e,_0x42b974=_0x163262['length']-0x1,_0x4549ed;_0x42b974>=0x0;_0x42b974--)(_0x4549ed=_0x163262[_0x42b974])&&(_0x42c5dc=_0x4549ed(_0x42c5dc)||_0x42c5dc);return _0x42c5dc;},ae=(_0x1b9937,_0x2babdf)=>(_0x2b2269,_0x148b70)=>_0x2babdf(_0x2b2269,_0x148b70,_0x1b9937);const bt=0x1389;let ve=class extends a[_0x5c6688(0x142)]{constructor(_0x47a605,_0x333b7a,_0x478fb3,_0x21e603){const _0x29feca=_0x5c6688;super(),h(this,'_cursors',new Set()),h(this,_0x29feca(0x1b2),null),(this[_0x29feca(0x327)]=_0x47a605,this[_0x29feca(0x155)]=_0x333b7a,this[_0x29feca(0x16f)]=_0x478fb3,this[_0x29feca(0x240)]=_0x21e603,this['_init']());}[_0x5c6688(0x16e)](){const _0x1572f6=_0x5c6688;this[_0x1572f6(0x155)][_0x1572f6(0x23e)]['pipe']($[_0x1572f6(0x30a)](this['dispose$']),$[_0x1572f6(0x27b)](_0x452e99=>{const _0x2a1e80=_0x1572f6;if(_0x452e99){const _0x143c5a=_0x452e99[_0x2a1e80(0x3a0)];return d[_0x2a1e80(0x1de)](this[_0x2a1e80(0x16f)]['getCollabCursors$'](this[_0x2a1e80(0x327)]['unitId']),this[_0x2a1e80(0x240)]['currentTheme$'])[_0x2a1e80(0x263)]($[_0x2a1e80(0x283)](([_0x5e23c7,_0x1c0050])=>{const _0x32c9d7=_0x2a1e80,_0x22b3da=new Map();return _0x5e23c7[_0x32c9d7(0x1d2)]((_0x246abe,_0x1572f2)=>{const _0x9f95ee=_0x32c9d7;if(_0x246abe[_0x9f95ee(0x161)]===_0x143c5a){const _0x3ceaee={..._0x246abe};_0x3ceaee[_0x9f95ee(0x13b)]=this[_0x9f95ee(0x240)][_0x9f95ee(0x2e4)](_0x246abe[_0x9f95ee(0x13b)]),_0x22b3da['set'](_0x1572f2,_0x3ceaee);}}),{'skeleton':_0x452e99,'cursors':_0x22b3da};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xa069e3,cursors:_0x57e5d1})=>{const _0xcbadad=_0x1572f6;this['_removeCollabCursors'](),_0xa069e3&&this[_0xcbadad(0x33a)](_0xa069e3,_0x57e5d1);}),this[_0x1572f6(0x155)][_0x1572f6(0x23e)][_0x1572f6(0x2c6)](_0x1415ff=>{const _0x38b543=_0x1572f6;if(_0x1415ff==null)return;const {skeleton:_0x27c216}=_0x1415ff,{scene:_0x24150b}=this[_0x38b543(0x327)];_0x24150b['onPointerMove$'][_0x38b543(0x36e)](a[_0x38b543(0x1dd)](_0x2b729d=>{const _0x1fbd92=_0x38b543;var _0x1f5019,_0x2df101;const {offsetX:_0x15aabe,offsetY:_0xb96fd8}=_0x2b729d,{x:_0xf9181d,y:_0x9e705}=_0x24150b[_0x1fbd92(0x310)](p['Vector2'][_0x1fbd92(0x178)]([_0x15aabe,_0xb96fd8])),{scaleX:_0x509be7,scaleY:_0x4885da}=_0x24150b[_0x1fbd92(0x167)](),_0x4eaa25=_0x24150b[_0x1fbd92(0x39b)](p[_0x1fbd92(0x37d)][_0x1fbd92(0x2b5)]),_0x425817=_0x24150b[_0x1fbd92(0x238)](p[_0x1fbd92(0x1ca)][_0x1fbd92(0x178)]([_0xf9181d,_0x9e705]),_0x4eaa25),_0x41d320=_0x27c216[_0x1fbd92(0x301)](_0x15aabe,_0xb96fd8,_0x509be7,_0x4885da,_0x425817);((_0x1f5019=this[_0x1fbd92(0x1b2)])==null?void 0x0:_0x1f5019[_0x1fbd92(0x2df)])===_0x41d320['column']&&((_0x2df101=this[_0x1fbd92(0x1b2)])==null?void 0x0:_0x2df101[_0x1fbd92(0x29b)])===_0x41d320[_0x1fbd92(0x29b)]||this[_0x1fbd92(0x35c)]['forEach'](_0x14c3d3=>{const _0x31a01d=_0x1fbd92;_0x14c3d3[_0x31a01d(0x1ac)](_0x41d320);});},0x64));});}[_0x5c6688(0x33a)](_0x588fc7,_0x12d659){const _0x18b9ea=_0x5c6688;var _0x14f4b3;const _0x106eca=(_0x14f4b3=this[_0x18b9ea(0x155)][_0x18b9ea(0x2c5)]())==null?void 0x0:_0x14f4b3[_0x18b9ea(0x2c3)];if(!_0x106eca)return;const _0x3bb5f1=this[_0x18b9ea(0x2b4)]();if(!_0x3bb5f1)return;this[_0x18b9ea(0x35c)][_0x18b9ea(0x1d2)](_0x173416=>{const _0x7ee841=_0x18b9ea;_0x173416[_0x7ee841(0x27e)]();});const {scene:_0x53fa9c}=_0x3bb5f1,_0x599a8a=Et(Array[_0x18b9ea(0x31c)](_0x12d659[_0x18b9ea(0x21f)]()))[_0x18b9ea(0x283)](_0x3a7bad=>{const _0x401dba=_0x18b9ea,{color:_0x2b4322,range:_0x56f07e,name:_0x51f58f,selection:_0x572704,sheetID:_0x4f580e}=_0x3a7bad,{startColumn:_0x32bec6,startRow:_0xc88539,endColumn:_0x3fd403,endRow:_0x2f8c7d}=_0x56f07e,_0xe7b4b2=X[_0x401dba(0x286)](_0xc88539,_0x32bec6,_0x53fa9c,_0x106eca),_0x57137d=X[_0x401dba(0x286)](_0x2f8c7d,_0x3fd403,_0x53fa9c,_0x106eca),{columnHeaderHeightAndMarginTop:_0x17c657}=_0x106eca,{startX:_0x37c72a,startY:_0xe09b3a}=_0xe7b4b2,{endX:_0x4525c5,endY:_0x2f744c}=_0x57137d,_0x948dd5=_0x4525c5-_0x37c72a,_0x50690e=_0x2f744c-_0xe09b3a,_0x8230ad={'labelPosition':_0xe09b3a-_0x17c657>=K?'top':_0x401dba(0x314),'sheetID':_0x4f580e,'range':_0x56f07e,'color':_0x2b4322,'name':_0x51f58f,'selection':_0x572704,'left':_0x37c72a,'top':_0xe09b3a,'width':_0x948dd5,'height':_0x50690e,'evented':!0x1,'zIndex':bt};return new Pe(_0x51f58f,_0x8230ad);});_0x53fa9c[_0x18b9ea(0x2e9)](_0x599a8a,gt),this[_0x18b9ea(0x35c)]=new Set(_0x599a8a);}['_removeCollabCursors'](){const _0x767234=_0x5c6688;var _0x277fe1;(_0x277fe1=this[_0x767234(0x35c)])==null||_0x277fe1[_0x767234(0x1d2)](_0x18aefa=>_0x18aefa['dispose']());}[_0x5c6688(0x2b4)](){const _0x105b40=_0x5c6688;return X[_0x105b40(0x1af)](this[_0x105b40(0x327)][_0x105b40(0x337)],this[_0x105b40(0x327)]);}};ve=pt([ae(0x1,a[_0x5c6688(0x15f)](X[_0x5c6688(0x159)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x5c6688(0x15f)](a['ThemeService']))],ve);function Et(_0x11d742){const _0x92d83=_0x5c6688,_0x56ec67=new Map();return _0x11d742['forEach'](_0x2e57f9=>{const _0x478ba5=_0x5424;if(_0x56ec67[_0x478ba5(0x332)](_0x2e57f9[_0x478ba5(0x288)])){const _0x30852c=_0x56ec67[_0x478ba5(0x1d3)](_0x2e57f9['selection']);_0x30852c['name']+=',\x20'+_0x2e57f9[_0x478ba5(0x30d)];}else _0x56ec67[_0x478ba5(0x292)](_0x2e57f9['selection'],_0x2e57f9);}),Array[_0x92d83(0x31c)](_0x56ec67[_0x92d83(0x21f)]());}var E=function(){const _0xf94897=_0x5c6688;return E=Object[_0xf94897(0x329)]||function(_0x54a2d4){const _0x3ff283=_0xf94897;for(var _0x5d658c,_0xc437da=0x1,_0x564cf6=arguments[_0x3ff283(0x11b)];_0xc437da<_0x564cf6;_0xc437da++){_0x5d658c=arguments[_0xc437da];for(var _0x128cba in _0x5d658c)Object[_0x3ff283(0x39c)][_0x3ff283(0x18c)][_0x3ff283(0x1b3)](_0x5d658c,_0x128cba)&&(_0x54a2d4[_0x128cba]=_0x5d658c[_0x128cba]);}return _0x54a2d4;},E[_0xf94897(0x20f)](this,arguments);},Tt=function(_0x1c20f9,_0xe90a8f){const _0x47c328=_0x5c6688;var _0xe94543={};for(var _0x514e85 in _0x1c20f9)Object[_0x47c328(0x39c)][_0x47c328(0x18c)][_0x47c328(0x1b3)](_0x1c20f9,_0x514e85)&&_0xe90a8f[_0x47c328(0x387)](_0x514e85)<0x0&&(_0xe94543[_0x514e85]=_0x1c20f9[_0x514e85]);if(_0x1c20f9!=null&&typeof Object['getOwnPropertySymbols']==_0x47c328(0x300)){for(var _0x548b78=0x0,_0x514e85=Object[_0x47c328(0x266)](_0x1c20f9);_0x548b78<_0x514e85['length'];_0x548b78++)_0xe90a8f[_0x47c328(0x387)](_0x514e85[_0x548b78])<0x0&&Object[_0x47c328(0x39c)][_0x47c328(0x2b2)][_0x47c328(0x1b3)](_0x1c20f9,_0x514e85[_0x548b78])&&(_0xe94543[_0x514e85[_0x548b78]]=_0x1c20f9[_0x514e85[_0x548b78]]);}return _0xe94543;},pe=M[_0x5c6688(0x144)](function(_0x1e2fb7,_0x9dc38a){const _0xbc04c5=_0x5c6688;var _0x1b7880=_0x1e2fb7[_0xbc04c5(0x1fe)],_0x34c1b7=_0x1e2fb7['id'],_0x44d987=_0x1e2fb7['className'],_0x18c596=_0x1e2fb7[_0xbc04c5(0x130)],_0x3a9313=Tt(_0x1e2fb7,[_0xbc04c5(0x1fe),'id','className','extend']),_0x2902e8=_0xbc04c5(0x2ad)[_0xbc04c5(0x28c)](_0x34c1b7,'\x20')[_0xbc04c5(0x28c)](_0x44d987||'')[_0xbc04c5(0x175)](),_0x4c5e15=M[_0xbc04c5(0x201)]('_'[_0xbc04c5(0x28c)](Dt()));return Ae(_0x1b7880,''[_0xbc04c5(0x28c)](_0x34c1b7),{'defIds':_0x1b7880[_0xbc04c5(0x39a)],'idSuffix':_0x4c5e15[_0xbc04c5(0x24b)]},E({'ref':_0x9dc38a,'className':_0x2902e8},_0x3a9313),_0x18c596);});function Ae(_0x2ae6b2,_0x308044,_0x2655b0,_0x61468e,_0x31f377){const _0x5918e4=_0x5c6688;return M[_0x5918e4(0x35e)](_0x2ae6b2[_0x5918e4(0x1c8)],E(E({'key':_0x308044},Ot(_0x2ae6b2,_0x2655b0,_0x31f377)),_0x61468e),(Rt(_0x2ae6b2,_0x2655b0)['children']||[])[_0x5918e4(0x283)](function(_0x369985,_0x5840a9){const _0x6704f9=_0x5918e4;return Ae(_0x369985,''['concat'](_0x308044,'-')[_0x6704f9(0x28c)](_0x2ae6b2[_0x6704f9(0x1c8)],'-')['concat'](_0x5840a9),_0x2655b0,void 0x0,_0x31f377);}));}function Ot(_0x55ad0f,_0x8b1f22,_0x12271c){const _0x30faef=_0x5c6688;var _0x5ad60b=E({},_0x55ad0f['attrs']);_0x12271c!=null&&_0x12271c[_0x30faef(0x168)]&&_0x5ad60b[_0x30faef(0x2b7)]===_0x30faef(0x168)&&(_0x5ad60b['fill']=_0x12271c[_0x30faef(0x168)]),_0x55ad0f[_0x30faef(0x1c8)]===_0x30faef(0x34a)&&_0x5ad60b['id']&&(_0x5ad60b['id']=_0x5ad60b['id']+_0x8b1f22[_0x30faef(0x27a)]),Object[_0x30faef(0x377)](_0x5ad60b)[_0x30faef(0x1d2)](function(_0x19ad8b){const _0x52fbeb=_0x30faef;var _0x146464=_0x19ad8b[0x0],_0xe44562=_0x19ad8b[0x1];_0x146464===_0x52fbeb(0x34a)&&typeof _0xe44562==_0x52fbeb(0x2e7)&&(_0x5ad60b[_0x146464]=_0xe44562[_0x52fbeb(0x342)](/url\(#(.*)\)/,_0x52fbeb(0x295)[_0x52fbeb(0x28c)](_0x8b1f22[_0x52fbeb(0x27a)],')')));});var _0x395317=_0x8b1f22[_0x30faef(0x39a)];return!_0x395317||_0x395317[_0x30faef(0x11b)]===0x0||(_0x55ad0f[_0x30faef(0x1c8)]===_0x30faef(0x17c)&&_0x5ad60b[_0x30faef(0x19e)]&&(_0x5ad60b['xlink:href']=_0x5ad60b[_0x30faef(0x19e)]+_0x8b1f22[_0x30faef(0x27a)]),Object[_0x30faef(0x377)](_0x5ad60b)['forEach'](function(_0x55cfab){const _0x2d53ae=_0x30faef;var _0x739462=_0x55cfab[0x0],_0x3475ab=_0x55cfab[0x1];typeof _0x3475ab=='string'&&(_0x5ad60b[_0x739462]=_0x3475ab[_0x2d53ae(0x342)](/url\(#(.*)\)/,_0x2d53ae(0x295)[_0x2d53ae(0x28c)](_0x8b1f22['idSuffix'],')')));})),_0x5ad60b;}function Rt(_0x26bff4,_0x186f90){const _0x2f4ebb=_0x5c6688;var _0x115d50,_0x3b1e93=_0x186f90[_0x2f4ebb(0x39a)];return!_0x3b1e93||_0x3b1e93[_0x2f4ebb(0x11b)]===0x0?_0x26bff4:_0x26bff4['tag']==='defs'&&(!((_0x115d50=_0x26bff4[_0x2f4ebb(0x2d0)])===null||_0x115d50===void 0x0)&&_0x115d50['length'])?E(E({},_0x26bff4),{'children':_0x26bff4['children']['map'](function(_0x4a2e69){const _0x21f4b1=_0x2f4ebb;return typeof _0x4a2e69['attrs']['id']==_0x21f4b1(0x2e7)&&_0x3b1e93&&_0x3b1e93[_0x21f4b1(0x33d)](_0x4a2e69['attrs']['id'])?E(E({},_0x4a2e69),{'attrs':E(E({},_0x4a2e69[_0x21f4b1(0x378)]),{'id':_0x4a2e69[_0x21f4b1(0x378)]['id']+_0x186f90[_0x21f4b1(0x27a)]})}):_0x4a2e69;})}):_0x26bff4;}function Dt(){const _0x2c3f16=_0x5c6688;return Math[_0x2c3f16(0x181)]()[_0x2c3f16(0x277)](0x24)['substring'](0x2,0x8);}pe[_0x5c6688(0x382)]=_0x5c6688(0x3a1);var Ut={'tag':_0x5c6688(0x26d),'attrs':{'xmlns':_0x5c6688(0x160),'fill':_0x5c6688(0x389),'viewBox':_0x5c6688(0x206),'width':_0x5c6688(0x302),'height':_0x5c6688(0x302)},'children':[{'tag':'g','attrs':{'clipPath':_0x5c6688(0x345)},'children':[{'tag':'path','attrs':{'stroke':_0x5c6688(0x221),'d':_0x5c6688(0x38b),'strokeLinecap':_0x5c6688(0x362),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5c6688(0x1f4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5c6688(0x36b)},'children':[{'tag':_0x5c6688(0x1da),'attrs':{'fill':_0x5c6688(0x2aa),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5c6688(0x36b)]},ye=M[_0x5c6688(0x144)](function(_0x1b01f6,_0x3763a4){const _0x138f77=_0x5c6688;return M[_0x138f77(0x35e)](pe,Object[_0x138f77(0x329)]({},_0x1b01f6,{'id':_0x138f77(0x1f2),'ref':_0x3763a4,'icon':Ut}));});ye[_0x5c6688(0x382)]='OffLineIcon';var Nt={'tag':_0x5c6688(0x26d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5c6688(0x389),'viewBox':_0x5c6688(0x250),'width':_0x5c6688(0x302),'height':_0x5c6688(0x302)},'children':[{'tag':'g','attrs':{'clipPath':_0x5c6688(0x211)},'children':[{'tag':_0x5c6688(0x1da),'attrs':{'stroke':_0x5c6688(0x221),'d':_0x5c6688(0x12c),'strokeLinecap':_0x5c6688(0x362),'strokeLinejoin':_0x5c6688(0x362),'strokeWidth':1.2}}]},{'tag':_0x5c6688(0x1f4),'attrs':{},'children':[{'tag':_0x5c6688(0x379),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x5c6688(0x1da),'attrs':{'fill':_0x5c6688(0x2aa),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x5c6688(0x347)]},$e=M['forwardRef'](function(_0xe7a687,_0x6e26e9){const _0x3f94f9=_0x5c6688;return M[_0x3f94f9(0x35e)](pe,Object[_0x3f94f9(0x329)]({},_0xe7a687,{'id':_0x3f94f9(0x391),'ref':_0x6e26e9,'icon':Nt}));});$e[_0x5c6688(0x382)]='OnLineIcon';function Mt(_0x135327){const _0x1ad8f1=_0x5c6688;switch(_0x135327){case u['CollaborationStatus'][_0x1ad8f1(0x2fe)]:return _0x1ad8f1(0x134);case u[_0x1ad8f1(0x343)][_0x1ad8f1(0x39f)]:return _0x1ad8f1(0x359);case u[_0x1ad8f1(0x343)][_0x1ad8f1(0x1f8)]:return _0x1ad8f1(0x28b);case u[_0x1ad8f1(0x343)][_0x1ad8f1(0x2c1)]:return'collabStatus.notCollab';case u[_0x1ad8f1(0x343)][_0x1ad8f1(0x372)]:case u[_0x1ad8f1(0x343)][_0x1ad8f1(0x1e3)]:return _0x1ad8f1(0x23a);case u[_0x1ad8f1(0x343)][_0x1ad8f1(0x2cc)]:case u[_0x1ad8f1(0x343)]['PENDING']:return _0x1ad8f1(0x1d4);}}function xe(_0x52086c){const _0x259737=_0x5c6688,{status$:_0x1ca3b9}=_0x52086c,_0x1db541=T[_0x259737(0x291)](_0x1ca3b9,u[_0x259737(0x343)][_0x259737(0x2c1)]),_0x2c67fa=T['useDependency'](a['LocaleService']),_0x474e0e=T[_0x259737(0x37b)](u[_0x259737(0x2e2)]),_0x5789e6=_0x1db541!==u[_0x259737(0x343)][_0x259737(0x2fe)],_0x45ac74=_0x2c67fa['t'](Mt(_0x1db541)),_0x37d277=_0x5789e6?w[_0x259737(0x204)]($e,{}):w[_0x259737(0x204)](ye,{}),_0x3c3590=M[_0x259737(0x2cd)](()=>{_0x5789e6||_0x474e0e['reconnect']();},[_0x5789e6,_0x474e0e]);function _0x58fec9(){const _0x872916=_0x259737;return w[_0x872916(0x287)](_0x872916(0x13f),{'className':_0x872916(0x34c),'onClick':_0x3c3590,'children':[w['jsx'](_0x872916(0x13f),{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x5789e6,'univer-text-red-500':!_0x5789e6}),'children':_0x37d277}),w[_0x872916(0x204)](_0x872916(0x13f),{'className':_0x872916(0x322),'children':_0x45ac74})]});}return _0x5789e6?_0x58fec9():w[_0x259737(0x204)](D[_0x259737(0x38d)],{'title':_0x2c67fa['t'](_0x259737(0x37a)),'children':_0x58fec9()});}var Lt=Object[_0x5c6688(0x285)],wt=(_0x169efd,_0x122835,_0x4741e4,_0x4d83bc)=>{const _0x40fd23=_0x5c6688;for(var _0x635b18=_0x4d83bc>0x1?void 0x0:_0x4d83bc?Lt(_0x122835,_0x4741e4):_0x122835,_0x588b25=_0x169efd[_0x40fd23(0x11b)]-0x1,_0x3403a0;_0x588b25>=0x0;_0x588b25--)(_0x3403a0=_0x169efd[_0x588b25])&&(_0x635b18=_0x3403a0(_0x635b18)||_0x635b18);return _0x635b18;},V=(_0x11c918,_0x4cfc67)=>(_0x8e3881,_0x40636a)=>_0x4cfc67(_0x8e3881,_0x40636a,_0x11c918);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x5c6688(0x222)]{constructor(_0x6209b5,_0x28a18e,_0x56ebeb,_0x30c993){const _0x40e5a4=_0x5c6688;super(),h(this,_0x40e5a4(0x35d),new d[(_0x40e5a4(0x1c5))](u[_0x40e5a4(0x343)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x6209b5,this[_0x40e5a4(0x268)]=_0x28a18e,this[_0x40e5a4(0x177)]=_0x56ebeb,this[_0x40e5a4(0x305)]=_0x30c993,this[_0x40e5a4(0x31e)](),this[_0x40e5a4(0x392)]());}[_0x5c6688(0x392)](){const _0x3597f0=_0x5c6688;this[_0x3597f0(0x11a)](this[_0x3597f0(0x1a6)][_0x3597f0(0x213)][_0x3597f0(0x263)](d['switchMap'](()=>{const _0x36a793=_0x3597f0,_0xfa3541=this[_0x36a793(0x1a6)][_0x36a793(0x361)]();return _0xfa3541?this[_0x36a793(0x177)][_0x36a793(0x16b)](_0xfa3541[_0x36a793(0x176)]()):d['of'](null);}),d[_0x3597f0(0x27b)](_0xeedf58=>_0xeedf58?_0xeedf58['status$']:d['of'](u['CollaborationStatus'][_0x3597f0(0x2c1)])))['subscribe'](_0x21b749=>{const _0x29b975=_0x3597f0;this[_0x29b975(0x35d)][_0x29b975(0x274)](_0x21b749);}));}[_0x5c6688(0x31e)](){const _0x3a67bc=_0x5c6688;this[_0x3a67bc(0x11a)](this[_0x3a67bc(0x305)][_0x3a67bc(0x246)](T[_0x3a67bc(0x219)][_0x3a67bc(0x1e5)],()=>T[_0x3a67bc(0x236)](Pt({'status$':this[_0x3a67bc(0x35d)][_0x3a67bc(0x16d)]()}),this[_0x3a67bc(0x268)])));}},exports[_0x5c6688(0x312)]=wt([V(0x0,a[_0x5c6688(0x17e)]),V(0x1,a[_0x5c6688(0x15f)](a[_0x5c6688(0x186)])),V(0x2,a[_0x5c6688(0x15f)](u[_0x5c6688(0x1ea)])),V(0x3,T[_0x5c6688(0x319)])],exports[_0x5c6688(0x312)]);function Pt(_0x204dcb){const {status$:_0x4c0252}=_0x204dcb;return function(){const _0x5bf0f7=_0x5424;return w[_0x5bf0f7(0x204)](xe,{'status$':_0x4c0252});};}var At=Object[_0x5c6688(0x285)],yt=(_0x573caf,_0x11f948,_0x25342e,_0x409122)=>{for(var _0x29fbcc=_0x409122>0x1?void 0x0:_0x409122?At(_0x11f948,_0x25342e):_0x11f948,_0x1d1b20=_0x573caf['length']-0x1,_0x191e5f;_0x1d1b20>=0x0;_0x1d1b20--)(_0x191e5f=_0x573caf[_0x1d1b20])&&(_0x29fbcc=_0x191e5f(_0x29fbcc)||_0x29fbcc);return _0x29fbcc;},y=(_0x44e222,_0x52eefa)=>(_0x451e70,_0x259ff9)=>_0x52eefa(_0x451e70,_0x259ff9,_0x44e222);let q=class extends a[_0x5c6688(0x222)]{constructor(_0x5e733d,_0x36c517,_0x3ff7a8,_0x2620ca,_0x21572a,_0x155c04){const _0x32566d=_0x5c6688;super(),this['_beforeCloseService']=_0x5e733d,this[_0x32566d(0x396)]=_0x36c517,this[_0x32566d(0x1f0)]=_0x3ff7a8,this[_0x32566d(0x23c)]=_0x2620ca,this[_0x32566d(0x202)]=_0x21572a,this[_0x32566d(0x1d6)]=_0x155c04,this[_0x32566d(0x2cb)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x4e3384=_0x5c6688;this[_0x4e3384(0x11a)](this[_0x4e3384(0x2fd)]['registerBeforeClose'](()=>{const _0x346ee1=_0x4e3384;if(this[_0x346ee1(0x396)]['saveTaskMap'][_0x346ee1(0x200)])return this[_0x346ee1(0x1d6)]['t'](_0x346ee1(0x2e5));}));}[_0x5c6688(0x165)](){const _0x12a9ca=_0x5c6688;this[_0x12a9ca(0x11a)](this['_collaborationUIEventService'][_0x12a9ca(0x2de)]['subscribe'](_0x577a25=>{const _0xb594da=_0x12a9ca;_0x577a25['id']===u[_0xb594da(0x2ff)]['OTHER_CLIENT_EDITING']&&this[_0xb594da(0x23c)]['show']({'type':D[_0xb594da(0x1ef)][_0xb594da(0x1aa)],'content':this[_0xb594da(0x1d6)]['t'](_0xb594da(0x36c))}),_0x577a25['id']===u[_0xb594da(0x2ff)][_0xb594da(0x1d0)]&&this[_0xb594da(0x23c)][_0xb594da(0x2d6)]({'type':D['MessageType'][_0xb594da(0x1aa)],'content':this[_0xb594da(0x1d6)]['t'](_0xb594da(0x278))}),_0x577a25['id']===u[_0xb594da(0x2ff)][_0xb594da(0x2e8)]&&this[_0xb594da(0x202)]['show']({'title':this[_0xb594da(0x1d6)]['t'](_0xb594da(0x1a5)),'content':this[_0xb594da(0x1d6)]['t'](_0xb594da(0x1b6)),'type':_0xb594da(0x1be),'duration':0x0}),_0x577a25['id']===u[_0xb594da(0x2ff)][_0xb594da(0x39f)]&&this[_0xb594da(0x23c)][_0xb594da(0x2d6)]({'type':D[_0xb594da(0x1ef)]['Error'],'content':this[_0xb594da(0x1d6)]['t'](_0xb594da(0x278))+'('+_0x577a25['data']+')'}),_0x577a25['id']===u[_0xb594da(0x2ff)]['JOIN_ROOM_FAILED']&&this[_0xb594da(0x23c)][_0xb594da(0x2d6)]({'type':D[_0xb594da(0x1ef)][_0xb594da(0x1aa)],'content':this[_0xb594da(0x1d6)]['t'](_0x577a25['data']||'')}),_0x577a25['id']===u['CollaborationUIEventId'][_0xb594da(0x2be)]&&this[_0xb594da(0x23c)][_0xb594da(0x2d6)]({'type':D['MessageType']['Warning'],'content':this[_0xb594da(0x1d6)]['t'](_0xb594da(0x393))}),_0x577a25['id']===u[_0xb594da(0x2ff)]['SOCKET_FAILED']&&this['_messageService'][_0xb594da(0x2d6)]({'type':D[_0xb594da(0x1ef)][_0xb594da(0x368)],'content':this[_0xb594da(0x1d6)]['t'](_0xb594da(0x2ce))}),_0x577a25['id']===u[_0xb594da(0x2ff)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xb594da(0x23c)][_0xb594da(0x2d6)]({'type':D[_0xb594da(0x1ef)][_0xb594da(0x368)],'content':this[_0xb594da(0x1d6)]['t'](_0xb594da(0x32c))});}));}};q=yt([y(0x0,T[_0x5c6688(0x388)]),y(0x1,u[_0x5c6688(0x11d)]),y(0x2,a[_0x5c6688(0x15f)](u[_0x5c6688(0x32d)])),y(0x3,T['IMessageService']),y(0x4,T[_0x5c6688(0x1b4)]),y(0x5,a['Inject'](a[_0x5c6688(0x358)]))],q);const $t=_0x5c6688(0x35b),Ue={},be=a[_0x5c6688(0x2e1)](_0x5c6688(0x339));var xt=Object[_0x5c6688(0x285)],jt=(_0x2fc2d4,_0x4bec31,_0x3127ea,_0xff2642)=>{for(var _0x379cd7=_0xff2642>0x1?void 0x0:_0xff2642?xt(_0x4bec31,_0x3127ea):_0x4bec31,_0x30b9cb=_0x2fc2d4['length']-0x1,_0x3d19f7;_0x30b9cb>=0x0;_0x30b9cb--)(_0x3d19f7=_0x2fc2d4[_0x30b9cb])&&(_0x379cd7=_0x3d19f7(_0x379cd7)||_0x379cd7);return _0x379cd7;},H=(_0x493365,_0x2323d3)=>(_0x4a0391,_0x199caf)=>_0x2323d3(_0x4a0391,_0x199caf,_0x493365);exports[_0x5c6688(0x31a)]=class extends a[_0x5c6688(0x142)]{constructor(_0x403313,_0x3fb8ca,_0x28229f,_0x4b0cad,_0x4fbedf){const _0x1afcae=_0x5c6688;super(),this[_0x1afcae(0x217)]=_0x403313,this['_logService']=_0x3fb8ca,this[_0x1afcae(0x153)]=_0x28229f,this[_0x1afcae(0x19c)]=_0x4b0cad,_0x4fbedf?_0x4fbedf==null||_0x4fbedf[_0x1afcae(0x2a7)]()[_0x1afcae(0x146)](()=>this['_init']()):(this[_0x1afcae(0x114)][_0x1afcae(0x1d7)](_0x1afcae(0x304),_0x1afcae(0x365)),this['_init']());}async[_0x5c6688(0x16e)](){const _0x3aaf3b=_0x5c6688,_0x53449f=this['_urlService']['getParam']('unit'),_0x5aa05c=this[_0x3aaf3b(0x217)][_0x3aaf3b(0x34d)](_0x3aaf3b(0x121)),_0xe8bf85=this['_urlService'][_0x3aaf3b(0x34d)]('subunit');if(!_0x53449f||!_0x5aa05c){this[_0x3aaf3b(0x114)][_0x3aaf3b(0x1d7)](_0x3aaf3b(0x304),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x272e60=await this['_dataLoaderService']['loadUnit'](_0x53449f,Number(_0x5aa05c),_0xe8bf85);_0x272e60&&_0x272e60 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x272e60);}async[_0x5c6688(0x258)](_0x3b711d){const _0x239fee=_0x5c6688;await this[_0x239fee(0x1a9)](_0x3b711d),_0x3b711d['activeSheet$']['pipe'](d[_0x239fee(0x30a)](this[_0x239fee(0x376)]))[_0x239fee(0x2c6)](_0x31260b=>{const _0x10c998=_0x239fee;_0x31260b&&this[_0x10c998(0x1cc)](_0x31260b);}),this['_urlService']['urlChange$'][_0x239fee(0x263)](d[_0x239fee(0x30a)](this[_0x239fee(0x376)]))[_0x239fee(0x2c6)](()=>this[_0x239fee(0x1a9)](_0x3b711d));}[_0x5c6688(0x1cc)](_0x526eb6,_0x25141d=!0x1){const _0x4e3544=_0x5c6688,_0x20962b=this[_0x4e3544(0x217)][_0x4e3544(0x34d)](_0x4e3544(0x1fa));_0x526eb6[_0x4e3544(0x338)]()!==_0x20962b&&this['_urlService'][_0x4e3544(0x12d)](_0x4e3544(0x1fa),_0x526eb6[_0x4e3544(0x338)](),_0x25141d);}async[_0x5c6688(0x1a9)](_0x3b6525){const _0x60a7b6=_0x5c6688;var _0x365047;const _0x66ddae=this[_0x60a7b6(0x217)][_0x60a7b6(0x34d)](_0x60a7b6(0x1fa));if(!_0x66ddae||!_0x3b6525[_0x60a7b6(0x139)](_0x66ddae)){const _0x197629=_0x3b6525[_0x60a7b6(0x35f)]()[0x0],_0xc03d40=_0x3b6525[_0x60a7b6(0x139)](_0x197629);if(!_0xc03d40)return;this[_0x60a7b6(0x1cc)](_0xc03d40,!0x0),await this['_commandService']['executeCommand'](g[_0x60a7b6(0x30f)]['id'],{'unitId':_0x3b6525[_0x60a7b6(0x176)](),'subUnitId':_0x197629});return;}((_0x365047=_0x3b6525[_0x60a7b6(0x172)]())==null?void 0x0:_0x365047[_0x60a7b6(0x338)]())!==_0x66ddae&&await this[_0x60a7b6(0x153)][_0x60a7b6(0x271)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3b6525[_0x60a7b6(0x176)](),'subUnitId':_0x66ddae});}},exports[_0x5c6688(0x31a)]=jt([H(0x0,be),H(0x1,a[_0x5c6688(0x1e4)]),H(0x2,a[_0x5c6688(0x171)]),H(0x3,a['Inject'](u[_0x5c6688(0x2ab)])),H(0x4,a[_0x5c6688(0x234)](Ke['IRemoteInstanceService']))],exports[_0x5c6688(0x31a)]);var Bt=Object[_0x5c6688(0x285)],kt=(_0x397e06,_0x3bbd73,_0x33ba6a,_0x590f95)=>{const _0x2e37eb=_0x5c6688;for(var _0x54fd44=_0x590f95>0x1?void 0x0:_0x590f95?Bt(_0x3bbd73,_0x33ba6a):_0x3bbd73,_0x31d7f0=_0x397e06[_0x2e37eb(0x11b)]-0x1,_0x5d49df;_0x31d7f0>=0x0;_0x31d7f0--)(_0x5d49df=_0x397e06[_0x31d7f0])&&(_0x54fd44=_0x5d49df(_0x54fd44)||_0x54fd44);return _0x54fd44;},ce=(_0x4cd932,_0x21827e)=>(_0x2cdd31,_0x53b678)=>_0x21827e(_0x2cdd31,_0x53b678,_0x4cd932);let z=class{constructor(_0x52e8e3,_0x3e03bc,_0x34a65c){const _0xc56df7=_0x5c6688;this[_0xc56df7(0x268)]=_0x52e8e3,this['_transformService']=_0x3e03bc,this[_0xc56df7(0x2c9)]=_0x34a65c;}[_0x5c6688(0x2d3)](_0x2245e5){const _0x5d87f1=_0x5c6688;this[_0x5d87f1(0x173)](_0x2245e5),this[_0x5d87f1(0x1ed)](_0x2245e5);}[_0x5c6688(0x230)](_0x5b63ca){const _0x37de31=_0x5c6688,{unitID:_0x48483d}=_0x5b63ca,_0x1befd5=this[_0x37de31(0x2c9)][_0x37de31(0x158)](_0x48483d)['with'](b[_0x37de31(0x398)]),{redoCache:_0x40d454}=_0x1befd5[_0x37de31(0x19d)]();if(_0x40d454[_0x37de31(0x11b)]===0x0)return _0x5b63ca;let _0x51d150=a[_0x37de31(0x1e2)][_0x37de31(0x1db)](_0x5b63ca[_0x37de31(0x115)][0x0]);for(let _0x24da19=0x0;_0x24da19<_0x40d454[_0x37de31(0x11b)];_0x24da19++){const _0x19d0b2={'id':'doc.mutation.rich-text-editing','params':{..._0x40d454[_0x24da19]}},_0x30e650=this['_transformService'][_0x37de31(0x2bb)](_0x51d150,_0x19d0b2,!0x1);if(m[_0x37de31(0x380)](_0x30e650))throw _0x30e650[_0x37de31(0x1be)];_0x51d150=_0x30e650[_0x37de31(0x17d)];}return{...a[_0x37de31(0x1e2)][_0x37de31(0x1db)](_0x5b63ca),'mutations':[_0x51d150]};}[_0x5c6688(0x173)](_0x597224){const _0x52d316=_0x5c6688,{unitID:_0x16fbea}=_0x597224,_0x3ea194=this[_0x52d316(0x2c9)][_0x52d316(0x158)](_0x16fbea)['with'](b[_0x52d316(0x398)]),{undoCache:_0x179ffe,redoCache:_0x49af70}=_0x3ea194[_0x52d316(0x19d)]();if(_0x179ffe[_0x52d316(0x11b)]===0x0||_0x49af70['length']===0x0)return;const _0x408a0d=[],_0x5832f4=[];let _0x5c6178=a['Tools'][_0x52d316(0x1db)](_0x597224[_0x52d316(0x115)][0x0]),_0x31abbb=a['Tools'][_0x52d316(0x1db)](_0x597224[_0x52d316(0x115)][0x0]);for(let _0x1671b6=_0x179ffe[_0x52d316(0x11b)]-0x1;_0x1671b6>=0x0;_0x1671b6--){const _0x4faf85={'id':'doc.mutation.rich-text-editing','params':{..._0x179ffe[_0x1671b6]}},_0x7600c3={'id':_0x52d316(0x197),'params':{..._0x49af70[_0x1671b6]}},_0x45805c=this[_0x52d316(0x2d8)][_0x52d316(0x2bb)](_0x5c6178,_0x4faf85,!0x1),_0x2aac42=this[_0x52d316(0x2d8)][_0x52d316(0x2bb)](_0x31abbb,_0x7600c3,!0x1);if(m[_0x52d316(0x380)](_0x45805c))throw _0x45805c[_0x52d316(0x1be)];if(m[_0x52d316(0x380)](_0x2aac42))throw _0x2aac42[_0x52d316(0x1be)];_0x408a0d[_0x52d316(0x2ac)](_0x45805c[_0x52d316(0x185)][_0x52d316(0x1bc)]),_0x5832f4[_0x52d316(0x2ac)](_0x2aac42[_0x52d316(0x185)][_0x52d316(0x1bc)]),_0x5c6178=_0x45805c['m1Prime'],_0x31abbb=_0x2aac42[_0x52d316(0x17d)];}_0x3ea194[_0x52d316(0x19b)]({'undoCache':_0x408a0d,'redoCache':_0x5832f4});}[_0x5c6688(0x1ed)](_0x1aa76){const _0x363945=_0x5c6688,{unitID:_0x22b55a}=_0x1aa76,_0x2615fc=this['_renderManagerService'][_0x363945(0x158)](_0x22b55a)[_0x363945(0x2bd)](b[_0x363945(0x398)]),_0x19c4ec=_0x2615fc[_0x363945(0x26e)]();if(_0x19c4ec==null)return;const _0x312b27=[{'id':_0x363945(0x197),'params':{'unitId':_0x1aa76[_0x363945(0x31f)],'actions':null,'textRanges':[_0x19c4ec]}}],_0x2c1c1d=this['_transformService'][_0x363945(0x34f)](_0x1aa76,_0x312b27);if(!m[_0x363945(0x226)](_0x2c1c1d))throw _0x2c1c1d[_0x363945(0x1be)];const _0x126387=_0x2c1c1d[_0x363945(0x185)][0x0]['params'][_0x363945(0x2eb)];Array['isArray'](_0x126387)&&_0x126387[_0x363945(0x11b)]&&_0x2615fc[_0x363945(0x299)](_0x126387[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x5c6688(0x186)])),ce(0x1,m[_0x5c6688(0x1ee)]),ce(0x2,p[_0x5c6688(0x20d)])],z);var Ht=Object[_0x5c6688(0x285)],Ft=(_0x17e421,_0xa855e6,_0x561906,_0x1cff20)=>{const _0x5daaca=_0x5c6688;for(var _0x34b481=_0x1cff20>0x1?void 0x0:_0x1cff20?Ht(_0xa855e6,_0x561906):_0xa855e6,_0x1dac7d=_0x17e421[_0x5daaca(0x11b)]-0x1,_0x14b1da;_0x1dac7d>=0x0;_0x1dac7d--)(_0x14b1da=_0x17e421[_0x1dac7d])&&(_0x34b481=_0x14b1da(_0x34b481)||_0x34b481);return _0x34b481;},le=(_0x7ce8a6,_0x364d88)=>(_0x2d098c,_0x44dfd3)=>_0x364d88(_0x2d098c,_0x44dfd3,_0x7ce8a6);let J=class{constructor(_0xba6e24,_0x1dc05c,_0x59464f){const _0x207291=_0x5c6688;this[_0x207291(0x268)]=_0xba6e24,this[_0x207291(0x2d8)]=_0x1dc05c,this[_0x207291(0x294)]=_0x59464f;}[_0x5c6688(0x13e)](_0x34c3a4){const _0x4a3a3b=_0x5c6688;this[_0x4a3a3b(0x1f3)](_0x34c3a4);}[_0x5c6688(0x230)](_0x40002b){const _0xc65641=_0x5c6688,{unitID:_0x2496da}=_0x40002b,{collaboration:_0x457f7b}=this[_0xc65641(0x294)][_0xc65641(0x2f7)](_0x2496da);if(_0x457f7b[_0xc65641(0x11b)]===0x0)return _0x40002b;let _0x4b90b3=a[_0xc65641(0x1e2)][_0xc65641(0x1db)](_0x40002b[_0xc65641(0x115)][0x0]);for(let _0x452aac=0x0;_0x452aac<_0x457f7b[_0xc65641(0x11b)];_0x452aac++){const _0x60cd28={'id':_0xc65641(0x197),'params':{'unitId':_0x457f7b[_0x452aac][_0xc65641(0x321)],..._0x457f7b[_0x452aac][_0xc65641(0x2bc)]}},_0x4dbe05=this['_transformService'][_0xc65641(0x2bb)](_0x4b90b3,_0x60cd28,!0x1);if(m[_0xc65641(0x380)](_0x4dbe05))throw _0x4dbe05[_0xc65641(0x1be)];_0x4b90b3=_0x4dbe05[_0xc65641(0x17d)];}return{...a['Tools'][_0xc65641(0x1db)](_0x40002b),'mutations':[_0x4b90b3]};}['_transformHistoryAndStateStack'](_0x4e3608){const _0x4b2a39=_0x5c6688,{unitID:_0x36cc44}=_0x4e3608,{history:_0xd505f3,collaboration:_0x4d0c16}=this[_0x4b2a39(0x294)][_0x4b2a39(0x2f7)](_0x36cc44);if(_0xd505f3['length']===0x0&&_0x4d0c16[_0x4b2a39(0x11b)]===0x0)return;const _0xbc4a97=[],_0x52a0f7=[];let _0x236837=a[_0x4b2a39(0x1e2)][_0x4b2a39(0x1db)](_0x4e3608['mutations'][0x0]),_0x4d8fe2=a[_0x4b2a39(0x1e2)][_0x4b2a39(0x1db)](_0x4e3608[_0x4b2a39(0x115)][0x0]);for(let _0x33245f=_0xd505f3[_0x4b2a39(0x11b)]-0x1;_0x33245f>=0x0;_0x33245f--){const _0x84ea3c={'id':_0x4b2a39(0x197),'params':{'unitId':_0xd505f3[_0x33245f][_0x4b2a39(0x321)],..._0xd505f3[_0x33245f]['undoState']}},_0x5ba5fc={'id':_0x4b2a39(0x197),'params':{'unitId':_0xd505f3[_0x33245f]['unitId'],..._0xd505f3[_0x33245f][_0x4b2a39(0x2bc)]}},_0x4556d3=this[_0x4b2a39(0x2d8)][_0x4b2a39(0x2bb)](_0x236837,_0x84ea3c,!0x1),_0x18bbaf=this[_0x4b2a39(0x2d8)][_0x4b2a39(0x2bb)](_0x4d8fe2,_0x5ba5fc,!0x1);if(m['isTransformMutationFailure'](_0x4556d3))throw _0x4556d3[_0x4b2a39(0x1be)];if(m[_0x4b2a39(0x380)](_0x18bbaf))throw _0x18bbaf[_0x4b2a39(0x1be)];_0xbc4a97['unshift']({..._0xd505f3[_0x33245f],'undoState':_0x4556d3[_0x4b2a39(0x185)][_0x4b2a39(0x1bc)],'redoState':_0x18bbaf[_0x4b2a39(0x185)][_0x4b2a39(0x1bc)]}),_0x236837=_0x4556d3['m1Prime'],_0x4d8fe2=_0x18bbaf['m1Prime'];}_0x236837=a[_0x4b2a39(0x1e2)][_0x4b2a39(0x1db)](_0x4e3608[_0x4b2a39(0x115)][0x0]),_0x4d8fe2=a[_0x4b2a39(0x1e2)][_0x4b2a39(0x1db)](_0x4e3608[_0x4b2a39(0x115)][0x0]);for(let _0x9336bc=_0x4d0c16[_0x4b2a39(0x11b)]-0x1;_0x9336bc>=0x0;_0x9336bc--){const _0xb3689d={'id':_0x4b2a39(0x197),'params':{'unitId':_0x4d0c16[_0x9336bc][_0x4b2a39(0x321)],..._0x4d0c16[_0x9336bc][_0x4b2a39(0x367)]}},_0x9c370a={'id':_0x4b2a39(0x197),'params':{'unitId':_0x4d0c16[_0x9336bc][_0x4b2a39(0x321)],..._0x4d0c16[_0x9336bc]['redoState']}},_0x3c591a=this[_0x4b2a39(0x2d8)][_0x4b2a39(0x2bb)](_0x236837,_0xb3689d,!0x1),_0x40d662=this[_0x4b2a39(0x2d8)][_0x4b2a39(0x2bb)](_0x4d8fe2,_0x9c370a,!0x1);if(m['isTransformMutationFailure'](_0x3c591a))throw _0x3c591a[_0x4b2a39(0x1be)];if(m[_0x4b2a39(0x380)](_0x40d662))throw _0x40d662[_0x4b2a39(0x1be)];_0x52a0f7[_0x4b2a39(0x2ac)]({..._0x4d0c16[_0x9336bc],'undoState':_0x3c591a[_0x4b2a39(0x185)][_0x4b2a39(0x1bc)],'redoState':_0x40d662['m2Prime'][_0x4b2a39(0x1bc)]}),_0x236837=_0x3c591a[_0x4b2a39(0x17d)],_0x4d8fe2=_0x40d662['m1Prime'];}this[_0x4b2a39(0x294)]['setStateCache'](_0x36cc44,{'history':_0xbc4a97,'collaboration':_0x52a0f7});}};J=Ft([le(0x0,a['Inject'](a[_0x5c6688(0x186)])),le(0x1,m[_0x5c6688(0x1ee)]),le(0x2,a[_0x5c6688(0x15f)](b[_0x5c6688(0x252)]))],J);var Yt=Object[_0x5c6688(0x285)],Wt=(_0x411d80,_0x126493,_0x30b118,_0x546f83)=>{const _0x57b2d1=_0x5c6688;for(var _0x5db2e4=_0x546f83>0x1?void 0x0:_0x546f83?Yt(_0x126493,_0x30b118):_0x126493,_0x271945=_0x411d80[_0x57b2d1(0x11b)]-0x1,_0x106e22;_0x271945>=0x0;_0x271945--)(_0x106e22=_0x411d80[_0x271945])&&(_0x5db2e4=_0x106e22(_0x5db2e4)||_0x5db2e4);return _0x5db2e4;},Ne=(_0x49cfd3,_0x546f81)=>(_0x29c5cd,_0xe0601b)=>_0x546f81(_0x29c5cd,_0xe0601b,_0x49cfd3);let Z=class{constructor(_0x31de69,_0x212bae){const _0x536d9e=_0x5c6688;this[_0x536d9e(0x268)]=_0x31de69,this['_transformService']=_0x212bae;}[_0x5c6688(0x2b8)](_0x4f5c69){const _0x205114=_0x5c6688;var _0x16f1fc;const _0x12835b=this[_0x205114(0x268)][_0x205114(0x1d3)](Y[_0x205114(0x1b7)]),_0x4388bc=(_0x16f1fc=_0x12835b[_0x205114(0x22e)]())!=null?_0x16f1fc:[];if(_0x4388bc[_0x205114(0x11b)]===0x0)return;const _0x4e283d=_0x4f5c69[_0x205114(0x31f)],_0x216116=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e283d,'actions':null,'textRanges':_0x4388bc}}],_0x3372ac=this[_0x205114(0x2d8)][_0x205114(0x34f)](_0x4f5c69,_0x216116);if(!m[_0x205114(0x226)](_0x3372ac))throw _0x3372ac['error'];const _0x3d48db=_0x3372ac[_0x205114(0x185)][0x0][_0x205114(0x1bc)][_0x205114(0x2eb)];Array[_0x205114(0x20a)](_0x3d48db)&&_0x3d48db['length']&&_0x12835b[_0x205114(0x14f)](_0x3d48db,{'unitId':_0x4e283d,'subUnitId':_0x4e283d},!0x1);}};Z=Wt([Ne(0x0,a[_0x5c6688(0x15f)](a[_0x5c6688(0x186)])),Ne(0x1,m[_0x5c6688(0x1ee)])],Z);var Vt=Object[_0x5c6688(0x285)],Xt=(_0xe7493d,_0x2aa30b,_0x52e8ff,_0x150072)=>{const _0x269b05=_0x5c6688;for(var _0x2c0d91=_0x150072>0x1?void 0x0:_0x150072?Vt(_0x2aa30b,_0x52e8ff):_0x2aa30b,_0x1bb3fb=_0xe7493d[_0x269b05(0x11b)]-0x1,_0x223531;_0x1bb3fb>=0x0;_0x1bb3fb--)(_0x223531=_0xe7493d[_0x1bb3fb])&&(_0x2c0d91=_0x223531(_0x2c0d91)||_0x2c0d91);return _0x2c0d91;},N=(_0x422226,_0x51498d)=>(_0x273522,_0x5794ca)=>_0x51498d(_0x273522,_0x5794ca,_0x422226);let Q=class extends a[_0x5c6688(0x222)]{constructor(_0x1794e1,_0x2b1c7f,_0x3c4ded,_0x5ef239,_0x2dc5a1,_0x3bf4d7,_0x134480,_0x3cdda2){const _0x2dfe94=_0x5c6688;super(),h(this,_0x2dfe94(0x35d),new d[(_0x2dfe94(0x1c5))](u[_0x2dfe94(0x343)]['NOT_COLLAB'])),(this[_0x2dfe94(0x294)]=_0x1794e1,this['_collaborationController']=_0x2b1c7f,this[_0x2dfe94(0x30e)]=_0x3c4ded,this['_docTransformStateCacheService']=_0x5ef239,this[_0x2dfe94(0x355)]=_0x2dc5a1,this[_0x2dfe94(0x313)]=_0x3bf4d7,this[_0x2dfe94(0x23c)]=_0x134480,this[_0x2dfe94(0x1d6)]=_0x3cdda2,this['_initEntityListener']());}[_0x5c6688(0x390)](){const _0x471c52=_0x5c6688;this[_0x471c52(0x11a)](this['_collaborationController'][_0x471c52(0x323)][_0x471c52(0x2c6)](_0x371f3b=>{const _0x7cbda5=_0x471c52,_0x3eca4c=this[_0x7cbda5(0x294)][_0x7cbda5(0x150)][_0x7cbda5(0x2c6)](_0x5157df=>{const _0x58764c=_0x7cbda5;if(_0x5157df==null)return;const {unitId:_0x55d7ed,redoState:_0x12ba8e,commandId:_0x33fcf7}=_0x5157df;if(_0x55d7ed!==_0x371f3b[_0x58764c(0x31f)])return;const _0x4e6b1d={'id':_0x33fcf7,'type':a[_0x58764c(0x357)]['MUTATION'],'params':{'unitId':_0x55d7ed,'actions':_0x12ba8e[_0x58764c(0x212)],'textRanges':null}};_0x371f3b['onLocalMutation'](_0x4e6b1d);});if(_0x371f3b[_0x7cbda5(0x11a)](_0x3eca4c),_0x371f3b instanceof u[_0x7cbda5(0x127)]){const _0x4962b3={'onTransformIME':_0x574b62=>this[_0x7cbda5(0x30e)][_0x7cbda5(0x2d3)](_0x574b62),'onTransformState':_0x3c8e5d=>this[_0x7cbda5(0x276)][_0x7cbda5(0x13e)](_0x3c8e5d),'onTransformSelections':_0x5d0513=>this[_0x7cbda5(0x355)][_0x7cbda5(0x2b8)](_0x5d0513),'onSyncEditingCollabCursor':_0x1dd748=>this['_docSyncEditingCollabCursorService'][_0x7cbda5(0x1fd)](_0x1dd748),'onTransformRemoteChangesetByIMECache':_0x505e48=>this[_0x7cbda5(0x30e)][_0x7cbda5(0x230)](_0x505e48),'onTransformRemoteChangesetByStateCache':_0x58761d=>this[_0x7cbda5(0x276)][_0x7cbda5(0x230)](_0x58761d)};_0x371f3b['addHandlerCallback'](_0x4962b3);}}));}};Q=Xt([N(0x0,a[_0x5c6688(0x15f)](b[_0x5c6688(0x252)])),N(0x1,a[_0x5c6688(0x15f)](u['CollaborationController'])),N(0x2,a['Inject'](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x5c6688(0x15f)](Z)),N(0x5,a[_0x5c6688(0x15f)](Ce)),N(0x6,T[_0x5c6688(0x214)]),N(0x7,a[_0x5c6688(0x15f)](a['LocaleService']))],Q);var Gt=Object[_0x5c6688(0x285)],Kt=(_0x15989b,_0x21be25,_0x4ea080,_0x4c6d06)=>{const _0x291ef8=_0x5c6688;for(var _0x2cf58c=_0x4c6d06>0x1?void 0x0:_0x4c6d06?Gt(_0x21be25,_0x4ea080):_0x21be25,_0x1831d5=_0x15989b[_0x291ef8(0x11b)]-0x1,_0xb3b448;_0x1831d5>=0x0;_0x1831d5--)(_0xb3b448=_0x15989b[_0x1831d5])&&(_0x2cf58c=_0xb3b448(_0x2cf58c)||_0x2cf58c);return _0x2cf58c;},_e=(_0x700540,_0x12fed9)=>(_0x461fa,_0x440e80)=>_0x12fed9(_0x461fa,_0x440e80,_0x700540);let ge=class extends a['Disposable']{constructor(_0xe5585b,_0x175d28,_0x47f7c1){const _0x55bfa2=_0x5c6688;super(),h(this,_0x55bfa2(0x34b),new Map()),h(this,_0x55bfa2(0x1a2),new Map()),h(this,_0x55bfa2(0x149),!0x1),(this['_configService']=_0xe5585b,this['_localStorageService']=_0x175d28,this[_0x55bfa2(0x11e)]=_0x47f7c1);}['disableLocalCache'](){const _0x53a11b=_0x5c6688;this[_0x53a11b(0x149)]=!0x0;}[_0x5c6688(0x207)](){const _0x39445d=_0x5c6688;this[_0x39445d(0x149)]=!0x1;}get[_0x5c6688(0x1bf)](){return this['_saveTaskMap'];}[_0x5c6688(0x298)](){const _0x3a2073=_0x5c6688;this[_0x3a2073(0x2ea)]()[_0x3a2073(0x146)](()=>super[_0x3a2073(0x298)]());}async[_0x5c6688(0x132)](_0x2fb304){const _0x2154bf=_0x5c6688;return this['_disabled']?null:this[_0x2154bf(0x13d)][_0x2154bf(0x1f6)](u['getLocalCacheKey'](_0x2fb304));}async[_0x5c6688(0x1e8)](_0x577f4e,_0x2a1527){const _0x431e31=_0x5c6688;return!!this[_0x431e31(0x13d)][_0x431e31(0x1ab)](_0x577f4e,_0x2a1527);}[_0x5c6688(0x22b)](_0x15c655,_0x58b0da,_0xe182ff,_0xca6432){const _0x367b56=_0x5c6688,_0x22d9ad=this[_0x367b56(0x11e)][_0x367b56(0x2e6)](_0x15c655);this[_0x367b56(0x34b)][_0x367b56(0x292)](_0x15c655,{'unitID':_0x15c655,'type':_0x58b0da,'awaitingChangeset':_0xe182ff,'mutations':_0xca6432,'rev':_0x22d9ad}),this[_0x367b56(0x1a2)][_0x367b56(0x332)](_0x15c655)||this['_scheduleSaving'](_0x15c655);}['_scheduleSaving'](_0x56ef97){const _0x357a80=_0x5c6688,_0x3f8d0a=this[_0x357a80(0x17f)]();_0x3f8d0a===0x0?this['_saveCache'](_0x56ef97):this[_0x357a80(0x1a2)]['set'](_0x56ef97,setTimeout(()=>this[_0x357a80(0x138)](_0x56ef97),_0x3f8d0a));}[_0x5c6688(0x17f)](){const _0x24ae6e=_0x5c6688;var _0x168673;return(_0x168673=this['_configService']['getConfig'](u[_0x24ae6e(0x28f)]))!=null?_0x168673:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x43dc3e){const _0x4c8a84=_0x5c6688,_0x2059ae=this[_0x4c8a84(0x1a2)][_0x4c8a84(0x1d3)](_0x43dc3e);return _0x2059ae!==void 0x0&&window[_0x4c8a84(0x19f)](_0x2059ae),this[_0x4c8a84(0x13d)]['setItem'](u[_0x4c8a84(0x371)](_0x43dc3e),this[_0x4c8a84(0x34b)][_0x4c8a84(0x1d3)](_0x43dc3e))[_0x4c8a84(0x146)](()=>this[_0x4c8a84(0x1a2)][_0x4c8a84(0x32a)](_0x43dc3e));}async[_0x5c6688(0x2ea)](){const _0x4e3460=_0x5c6688,_0x13548f=[];this[_0x4e3460(0x1a2)][_0x4e3460(0x1d2)]((_0x50068d,_0x453f46)=>{const _0x332182=_0x4e3460;window[_0x332182(0x19f)](_0x50068d),_0x13548f['push'](this[_0x332182(0x138)](_0x453f46)[_0x332182(0x146)](()=>{const _0x959b8c=_0x332182;this[_0x959b8c(0x1a2)][_0x959b8c(0x32a)](_0x453f46);}));}),await Promise[_0x4e3460(0x3a3)](_0x13548f);}};ge=Kt([_e(0x0,a[_0x5c6688(0x242)]),_e(0x1,a[_0x5c6688(0x21e)]),_e(0x2,a[_0x5c6688(0x15f)](m['RevisionService']))],ge);class je extends a[_0x5c6688(0x142)]{constructor(){const _0x1a774a=_0x5c6688;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x1a774a(0x18d)](window,_0x1a774a(0x231))[_0x1a774a(0x263)](d[_0x1a774a(0x30a)](this[_0x1a774a(0x376)]),d[_0x1a774a(0x188)](0x1),d[_0x1a774a(0x30b)](void 0x0));}[_0x5c6688(0x12d)](_0x1b6376,_0x5decbf,_0x5d9078=!0x1){const _0x389f38=_0x5c6688,_0x4fe6f2=new URL(window['location'][_0x389f38(0x18e)]);_0x4fe6f2[_0x389f38(0x16a)][_0x389f38(0x292)](_0x1b6376,_0x5decbf),_0x5d9078?window[_0x389f38(0x28e)][_0x389f38(0x1cd)]('','',_0x4fe6f2[_0x389f38(0x277)]()):window[_0x389f38(0x28e)][_0x389f38(0x1a7)]('','',_0x4fe6f2['toString']());}[_0x5c6688(0x317)](_0x1bcf07,_0x377c51=!0x1){const _0x89ea68=_0x5c6688,_0xe4ab99=new URL(window['location'][_0x89ea68(0x18e)]);_0xe4ab99[_0x89ea68(0x16a)][_0x89ea68(0x32a)](_0x1bcf07),_0x377c51?window[_0x89ea68(0x28e)][_0x89ea68(0x1cd)]('','',_0xe4ab99[_0x89ea68(0x277)]()):window[_0x89ea68(0x28e)][_0x89ea68(0x1a7)]('','',_0xe4ab99[_0x89ea68(0x277)]());}[_0x5c6688(0x34d)](_0x2ed30f){const _0x3d1bda=_0x5c6688;var _0x11fc05;return(_0x11fc05=new URL(window[_0x3d1bda(0x26c)][_0x3d1bda(0x18e)])[_0x3d1bda(0x16a)][_0x3d1bda(0x1d3)](_0x2ed30f))!=null?_0x11fc05:void 0x0;}}var qt=Object[_0x5c6688(0x1bb)],zt=Object[_0x5c6688(0x285)],Jt=(_0x1326c9,_0x47c0f3,_0xe2acfc)=>_0x47c0f3 in _0x1326c9?qt(_0x1326c9,_0x47c0f3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe2acfc}):_0x1326c9[_0x47c0f3]=_0xe2acfc,Zt=(_0x2f34b7,_0x46efcb,_0x12e14c,_0x40758c)=>{const _0x1248fc=_0x5c6688;for(var _0x167b9b=_0x40758c>0x1?void 0x0:_0x40758c?zt(_0x46efcb,_0x12e14c):_0x46efcb,_0x29902c=_0x2f34b7[_0x1248fc(0x11b)]-0x1,_0x2ba0d8;_0x29902c>=0x0;_0x29902c--)(_0x2ba0d8=_0x2f34b7[_0x29902c])&&(_0x167b9b=_0x2ba0d8(_0x167b9b)||_0x167b9b);return _0x167b9b;},he=(_0x1d389e,_0x3ce159)=>(_0x3b74bf,_0x333589)=>_0x3ce159(_0x3b74bf,_0x333589,_0x1d389e),Qt=(_0x17dd04,_0x23ac53,_0x1bd7db)=>Jt(_0x17dd04,_0x23ac53+'',_0x1bd7db);const es=_0x5c6688(0x25c);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x9b2b47=Ue,_0x3a6633,_0x1ed0ea,_0x5431a3){const _0x441adf=_0x5c6688;super(),this[_0x441adf(0x28a)]=_0x9b2b47,this[_0x441adf(0x2c9)]=_0x3a6633,this[_0x441adf(0x268)]=_0x1ed0ea,this[_0x441adf(0x1ce)]=_0x5431a3;const {..._0x49f28c}=a[_0x441adf(0x38c)]({},Ue,this[_0x441adf(0x28a)]);this[_0x441adf(0x1ce)][_0x441adf(0x1ba)]($t,_0x49f28c);}[_0x5c6688(0x369)](){const _0x433618=_0x5c6688;this['_registerDependencies'](),this[_0x433618(0x1b5)]();}[_0x5c6688(0x333)](){const _0x34e2a0=_0x5c6688;this[_0x34e2a0(0x2f2)]();}[_0x5c6688(0x223)](){const _0xdec148=_0x5c6688;var _0x299abc;const _0x1acc98=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0xdec148(0x254)],{'useClass':G['WebSocketService']}],[u[_0xdec148(0x11d)],{'useClass':ge}],[exports[_0xdec148(0x312)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0xdec148(0x195)](this[_0xdec148(0x268)],a[_0xdec148(0x233)](_0x1acc98,(_0x299abc=this[_0xdec148(0x28a)])==null?void 0x0:_0x299abc[_0xdec148(0x170)]));}[_0x5c6688(0x2f2)](){const _0x370a00=_0x5c6688;this[_0x370a00(0x11a)](this[_0x370a00(0x2c9)][_0x370a00(0x184)](a[_0x370a00(0x27d)][_0x370a00(0x2b9)],[Ie])),this[_0x370a00(0x11a)](this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType'][_0x370a00(0x2f3)],[ve]));}[_0x5c6688(0x1b5)](){const _0x31a8dc=_0x5c6688;a[_0x31a8dc(0x189)](this[_0x31a8dc(0x268)],[[x],[exports[_0x31a8dc(0x312)]],[Q],[q],[exports[_0x31a8dc(0x31a)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports[_0x5c6688(0x1b0)]=Zt([a['DependentOn'](u[_0x5c6688(0x335)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a['Injector'])),he(0x3,a[_0x5c6688(0x242)])],exports[_0x5c6688(0x1b0)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x86a581,_0x3c02ff,_0x3314f3,_0x4fac19)=>{const _0x3fd26a=_0x5c6688;for(var _0x3c2ea5=_0x4fac19>0x1?void 0x0:_0x4fac19?ts(_0x3c02ff,_0x3314f3):_0x3c02ff,_0x46bbb7=_0x86a581[_0x3fd26a(0x11b)]-0x1,_0x214765;_0x46bbb7>=0x0;_0x46bbb7--)(_0x214765=_0x86a581[_0x46bbb7])&&(_0x3c2ea5=_0x214765(_0x3c2ea5)||_0x3c2ea5);return _0x3c2ea5;},F=(_0x2b3c94,_0x1d0f60)=>(_0x5442ff,_0x147ebb)=>_0x1d0f60(_0x5442ff,_0x147ebb,_0x2b3c94);exports[_0x5c6688(0x1cf)]=class extends u[_0x5c6688(0x37f)]{constructor(_0x1659c3,_0x596321,_0x536c6d,_0x417797,_0x33997a){super(_0x1659c3,_0x596321,_0x536c6d,_0x417797,_0x33997a);}async[_0x5c6688(0x24d)](_0x5d036d){const _0x41d2e0=_0x5c6688,_0x79922b=await this[_0x41d2e0(0x1ec)](),_0x4718c5=this['_createSocketURL'](_0x5d036d,_0x79922b);return this['_doCreateSocket'](_0x4718c5);}[_0x5c6688(0x14b)](_0xae3dd2,_0x133406){const _0x321a98=_0x5c6688,_0x54dae5=typeof window>'u'?new URL(_0xae3dd2):new URL(_0xae3dd2,window[_0x321a98(0x26c)][_0x321a98(0x1ff)]);_0x54dae5[_0x321a98(0x16a)][_0x321a98(0x292)]('sessionTicket',_0x133406);const _0x1f188a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x1f188a['get'](_0x321a98(0x128))&&_0x54dae5[_0x321a98(0x16a)][_0x321a98(0x292)](_0x321a98(0x128),_0x1f188a['get']('runId')),_0x54dae5[_0x321a98(0x277)]();}async['_getSessionTicket'](){const _0x1c170e=_0x5c6688;var _0x1f5547,_0x1feb5f,_0x18f5b8;const _0x255d09=this[_0x1c170e(0x1ce)][_0x1c170e(0x2c8)](u[_0x1c170e(0x264)]),_0x264c7d=(_0x1f5547=_0x255d09==null?void 0x0:_0x255d09[_0x1c170e(0x2fa)])!=null?_0x1f5547:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x18f5b8=(_0x1feb5f=(await this[_0x1c170e(0x157)][_0x1c170e(0x1d3)](_0x264c7d,{'headers':{'Content-Type':_0x1c170e(0x129)}}))[_0x1c170e(0x2dd)])==null?void 0x0:_0x1feb5f[_0x1c170e(0x354)])!=null?_0x18f5b8:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x5c6688(0x15f)](a[_0x5c6688(0x186)])),F(0x1,a[_0x5c6688(0x15f)](G['HTTPService'])),F(0x2,a[_0x5c6688(0x242)]),F(0x3,a[_0x5c6688(0x1e4)]),F(0x4,m[_0x5c6688(0x2fb)])],exports[_0x5c6688(0x1cf)]);const Me=0x7530,Le=_0x5c6688(0x364);class is extends a['Disposable']{constructor(){const _0x56094=_0x5c6688;super(),h(this,_0x56094(0x281),a[_0x56094(0x2f6)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x56094(0x275),new Map()),h(this,_0x56094(0x152),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x56094(0x16e)]();}[_0x5c6688(0x298)](){const _0x11233d=_0x5c6688;super[_0x11233d(0x298)](),this['_clearOtherTimers']['forEach']((_0x4ef3c3,_0x41d115)=>this[_0x11233d(0x1d9)](_0x41d115)),this[_0x11233d(0x152)]&&window['clearInterval'](this[_0x11233d(0x152)]);}[_0x5c6688(0x164)](_0x5125ae){const _0x42bced=_0x5c6688;return this['_ensureSubject'](_0x5125ae)[_0x42bced(0x263)](d[_0x42bced(0x209)]());}[_0x5c6688(0x25a)](_0x22cf16){const _0x1b4ed0=_0x5c6688;this[_0x1b4ed0(0x348)][_0x1b4ed0(0x200)]===0x0&&this[_0x1b4ed0(0x220)](),this['_selfUnitIDs'][_0x1b4ed0(0x2a3)](_0x22cf16),this[_0x1b4ed0(0x113)]({'type':0x0,'memberID':this[_0x1b4ed0(0x281)],'unitIDs':[_0x22cf16],'isForwarded':!0x1});}['disposeUnit'](_0x4431d6){const _0xa13cb4=_0x5c6688;this[_0xa13cb4(0x348)][_0xa13cb4(0x32a)](_0x4431d6),this[_0xa13cb4(0x348)][_0xa13cb4(0x200)]===0x0&&this['_heartbeatTimer']&&window[_0xa13cb4(0x22c)](this['_heartbeatTimer']);}[_0x5c6688(0x16e)](){const _0x22f52e=_0x5c6688;this[_0x22f52e(0x11a)](a[_0x22f52e(0x1fb)](d[_0x22f52e(0x18d)](window,_0x22f52e(0x14d))[_0x22f52e(0x2c6)](_0x19da8a=>{const _0x9bbd23=_0x22f52e;if(_0x19da8a[_0x9bbd23(0x18a)]!==Le||!_0x19da8a[_0x9bbd23(0x2a2)])return;const _0x5621b3=JSON[_0x9bbd23(0x267)](_0x19da8a[_0x9bbd23(0x2a2)]);this[_0x9bbd23(0x123)](_0x5621b3);}))),window[_0x22f52e(0x118)](_0x22f52e(0x24f),()=>this['_send']({'type':0x1,'memberID':this[_0x22f52e(0x281)],'unitIDs':Array[_0x22f52e(0x31c)](this['_selfUnitIDs'])}));}[_0x5c6688(0x123)](_0x454a9e){const _0x2441c7=_0x5c6688;switch(_0x454a9e['type']){case 0x0:this[_0x2441c7(0x1bd)](_0x454a9e);break;case 0x1:this['_handleLeaveEvent'](_0x454a9e);break;case 0x2:this[_0x2441c7(0x117)](_0x454a9e);break;}}['_handleJoinEvent'](_0x2b8393){const _0x9a4f7c=_0x5c6688,{unitIDs:_0x34238a,memberID:_0x58055e,isForwarded:_0x21a253}=_0x2b8393;_0x34238a[_0x9a4f7c(0x1d2)](_0x5e41e9=>{const _0x4f1ce3=_0x9a4f7c;if(!_0x21a253&&this[_0x4f1ce3(0x275)][_0x4f1ce3(0x332)](_0x5e41e9)&&this[_0x4f1ce3(0x15b)](_0x5e41e9)[_0x4f1ce3(0x274)](u[_0x4f1ce3(0x133)][_0x4f1ce3(0x316)]),!this[_0x4f1ce3(0x275)][_0x4f1ce3(0x332)](_0x5e41e9)||!this[_0x4f1ce3(0x275)]['get'](_0x5e41e9)[_0x4f1ce3(0x332)](_0x58055e)){const _0x4b1fe8=this[_0x4f1ce3(0x275)][_0x4f1ce3(0x1d3)](_0x5e41e9)||new Set();_0x4b1fe8['add'](_0x58055e),this[_0x4f1ce3(0x275)]['set'](_0x5e41e9,_0x4b1fe8),this[_0x4f1ce3(0x33c)](_0x58055e);}}),_0x21a253||this[_0x9a4f7c(0x113)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5c6688(0x33c)](_0x2a4dff){const _0x3a08a1=_0x5c6688;this[_0x3a08a1(0x1d9)](_0x2a4dff);const _0x1c7a90=window[_0x3a08a1(0x208)](()=>{const _0x3f530a=_0x3a08a1;this[_0x3f530a(0x275)]['forEach'](_0x3a38eb=>{const _0xaa5564=_0x3f530a;_0x3a38eb[_0xaa5564(0x32a)](_0x2a4dff);});},Me*0x2);this[_0x3a08a1(0x20e)]['set'](_0x2a4dff,_0x1c7a90);}['_removeClearOtherTimer'](_0x4a1bad){const _0x580797=_0x5c6688;if(this[_0x580797(0x20e)][_0x580797(0x332)](_0x4a1bad)){const _0x9e45b1=this['_clearOtherTimers'][_0x580797(0x1d3)](_0x4a1bad);_0x9e45b1&&window[_0x580797(0x19f)](_0x9e45b1),this[_0x580797(0x20e)][_0x580797(0x292)](_0x4a1bad,null);}}[_0x5c6688(0x373)](_0x148822){const _0x28148f=_0x5c6688,{memberID:_0xaeec77,unitIDs:_0x5aa31e}=_0x148822;_0x5aa31e[_0x28148f(0x1d2)](_0x3a195c=>{const _0x3b61ad=_0x28148f;var _0xb0db24;const _0x174b9d=this[_0x3b61ad(0x275)][_0x3b61ad(0x1d3)](_0x3a195c);_0x174b9d&&(_0x174b9d['delete'](_0xaeec77),(_0xb0db24=this['_ensureSubject'](_0x3a195c))==null||_0xb0db24[_0x3b61ad(0x274)](_0x174b9d['size']===0x0?u['UnitStatus'][_0x3b61ad(0x1fc)]:u['UnitStatus'][_0x3b61ad(0x316)]));}),this['_removeClearOtherTimer'](_0xaeec77);}[_0x5c6688(0x117)](_0x483871){const _0x418a22=_0x5c6688;this[_0x418a22(0x33c)](_0x483871[_0x418a22(0x216)]);}[_0x5c6688(0x113)](_0xf1c2df){const _0x1c851f=_0x5c6688;localStorage[_0x1c851f(0x1ab)](Le,JSON[_0x1c851f(0x35a)](_0xf1c2df));}[_0x5c6688(0x220)](){const _0xf9d9c=_0x5c6688;this[_0xf9d9c(0x152)]=window['setInterval'](()=>{const _0x1bbb11=_0xf9d9c;this['_send']({'type':0x2,'memberID':this[_0x1bbb11(0x281)]});},Me);}['_ensureSubject'](_0x445bec){const _0x5cba87=_0x5c6688;return this[_0x5cba87(0x261)]['has'](_0x445bec)||this[_0x5cba87(0x261)][_0x5cba87(0x292)](_0x445bec,new d[(_0x5cba87(0x1c5))](u[_0x5cba87(0x133)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x5cba87(0x1d3)](_0x445bec);}}var Be=(_0x30a514=>(_0x30a514[_0x30a514[_0x5c6688(0x124)]=0x0]=_0x5c6688(0x124),_0x30a514[_0x30a514['OK']=0x1]='OK',_0x30a514[_0x30a514[_0x5c6688(0x243)]=0x2]=_0x5c6688(0x243),_0x30a514[_0x30a514['PERMISSION_DENIED']=0x3]=_0x5c6688(0x2e8),_0x30a514[_0x30a514[_0x5c6688(0x2c0)]=0x4]=_0x5c6688(0x2c0),_0x30a514[_0x30a514[_0x5c6688(0x33b)]=0x5]=_0x5c6688(0x33b),_0x30a514[_0x30a514[_0x5c6688(0x237)]=0x6]=_0x5c6688(0x237),_0x30a514[_0x30a514[_0x5c6688(0x191)]=0x7]='INVALID_ARGUMENT',_0x30a514[_0x30a514['TOO_MANY_REQUESTS']=0x8]=_0x5c6688(0x315),_0x30a514[_0x30a514[_0x5c6688(0x397)]=0x9]=_0x5c6688(0x397),_0x30a514[_0x30a514[_0x5c6688(0x23d)]=0xa]=_0x5c6688(0x23d),_0x30a514[_0x30a514['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x30a514[_0x30a514[_0x5c6688(0x2d5)]=0x1771]=_0x5c6688(0x2d5),_0x30a514[_0x30a514[_0x5c6688(0x336)]=0x1772]=_0x5c6688(0x336),_0x30a514[_0x30a514[_0x5c6688(0x33f)]=0x1773]=_0x5c6688(0x33f),_0x30a514[_0x30a514[_0x5c6688(0x30c)]=0x1b59]=_0x5c6688(0x30c),_0x30a514[_0x30a514[_0x5c6688(0x260)]=0x1b5a]=_0x5c6688(0x260),_0x30a514[_0x30a514[_0x5c6688(0x229)]=0x1b5b]=_0x5c6688(0x229),_0x30a514[_0x30a514['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5c6688(0x269),_0x30a514[_0x30a514[_0x5c6688(0x1eb)]=0x1b5d]=_0x5c6688(0x1eb),_0x30a514[_0x30a514[_0x5c6688(0x2ae)]=0x1f41]=_0x5c6688(0x2ae),_0x30a514[_0x30a514[_0x5c6688(0x187)]=0x2329]=_0x5c6688(0x187),_0x30a514[_0x30a514[_0x5c6688(0x21b)]=0x232a]=_0x5c6688(0x21b),_0x30a514[_0x30a514[_0x5c6688(0x12e)]=0x232b]=_0x5c6688(0x12e),_0x30a514[_0x30a514[_0x5c6688(0x192)]=0x232c]=_0x5c6688(0x192),_0x30a514[_0x30a514[_0x5c6688(0x37e)]=0x232d]=_0x5c6688(0x37e),_0x30a514[_0x30a514[_0x5c6688(0x29f)]=0x2711]=_0x5c6688(0x29f),_0x30a514[_0x30a514[_0x5c6688(0x26f)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x30a514[_0x30a514[_0x5c6688(0x326)]=0x2713]=_0x5c6688(0x326),_0x30a514[_0x30a514[_0x5c6688(0x346)]=0x2714]=_0x5c6688(0x346),_0x30a514[_0x30a514['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x30a514[_0x30a514[_0x5c6688(0x21a)]=0x271b]=_0x5c6688(0x21a),_0x30a514[_0x30a514[_0x5c6688(0x239)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x30a514[_0x30a514['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x5c6688(0x351),_0x30a514[_0x30a514['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x5c6688(0x25d),_0x30a514[_0x30a514[_0x5c6688(0x282)]=0x271f]=_0x5c6688(0x282),_0x30a514[_0x30a514[_0x5c6688(0x20c)]=0x2af9]=_0x5c6688(0x20c),_0x30a514[_0x30a514[_0x5c6688(0x24e)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x30a514[_0x30a514[_0x5c6688(0x31d)]=0x2ee2]=_0x5c6688(0x31d),_0x30a514[_0x30a514['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x30a514[_0x30a514['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5c6688(0x1cb),_0x30a514[_0x30a514[_0x5c6688(0x232)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x30a514[_0x30a514['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x5c6688(0x2dc),_0x30a514[_0x30a514['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x5c6688(0x111),_0x30a514[_0x30a514[_0x5c6688(0x353)]=0x32cb]=_0x5c6688(0x353),_0x30a514[_0x30a514[_0x5c6688(0x306)]=-0x1]='UNRECOGNIZED',_0x30a514))(Be||{}),ns=Object[_0x5c6688(0x285)],rs=(_0x3e8c7d,_0x22c80f,_0x16b0db,_0x35f647)=>{const _0x34f378=_0x5c6688;for(var _0x40b351=_0x35f647>0x1?void 0x0:_0x35f647?ns(_0x22c80f,_0x16b0db):_0x22c80f,_0x55404a=_0x3e8c7d[_0x34f378(0x11b)]-0x1,_0x82b674;_0x55404a>=0x0;_0x55404a--)(_0x82b674=_0x3e8c7d[_0x55404a])&&(_0x40b351=_0x82b674(_0x40b351)||_0x40b351);return _0x40b351;},ue=(_0x147df4,_0x1d4af0)=>(_0x3983b9,_0x3d7842)=>_0x1d4af0(_0x3983b9,_0x3d7842,_0x147df4);exports[_0x5c6688(0x255)]=class extends a['Disposable']{constructor(_0x3b5f6c,_0xc452ca,_0x410617){const _0x4ed896=_0x5c6688;super(),this['_instanceService']=_0x3b5f6c,this[_0x4ed896(0x157)]=_0xc452ca,this[_0x4ed896(0x1ce)]=_0x410617;}async[_0x5c6688(0x1c6)](_0x437763,_0x4e061f,_0x34c63d,..._0xef8d11){const _0x3d8077=_0x5c6688;var _0x23ff91,_0xf00bde,_0x86b5cd,_0x1b0d6a;const _0x3f6f22=this[_0x3d8077(0x2ef)][_0x3d8077(0x361)]();if(!_0x3f6f22)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x4a1d47=((_0x23ff91=this[_0x3d8077(0x1ce)][_0x3d8077(0x2c8)](u[_0x3d8077(0x2ba)]))!=null?_0x23ff91:u[_0x3d8077(0x385)])+'/'+_0x437763+_0x3d8077(0x2b0)+_0x4e061f,_0x1fc14e=new URL(window['location'][_0x3d8077(0x18e)]),_0xca45bc={'scriptId':_0x437763,'runId':(_0xf00bde=_0x1fc14e[_0x3d8077(0x16a)][_0x3d8077(0x1d3)](_0x3d8077(0x128)))!=null?_0xf00bde:'','function':_0x4e061f,'unitId':_0x3f6f22['getUnitId'](),'argsOfFunction':JSON['stringify'](_0xef8d11),'invokeId':(_0x86b5cd=_0x34c63d[_0x3d8077(0x14e)])!=null?_0x86b5cd:'','executionId':(_0x1b0d6a=_0x34c63d[_0x3d8077(0x2ca)])!=null?_0x1b0d6a:''};try{const _0xa4dcf9=await this[_0x3d8077(0x157)][_0x3d8077(0x349)](_0x4a1d47,{'body':_0xca45bc});return _0xa4dcf9['body']['error']&&_0xa4dcf9[_0x3d8077(0x2dd)]['error'][_0x3d8077(0x1a8)]!==Be['OK']?_0x3d8077(0x241):_0xa4dcf9[_0x3d8077(0x2dd)][_0x3d8077(0x29c)];}catch{return _0x3d8077(0x241);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x5c6688(0x17e)]),ue(0x1,a[_0x5c6688(0x15f)](G['HTTPService'])),ue(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=xe,exports[_0x5c6688(0x122)]=be,exports[_0x5c6688(0x2a4)]=Pe,exports[_0x5c6688(0x245)]=is,exports[_0x5c6688(0x12f)]=je;
@@ -1 +1 @@
1
- 'use strict';function _0x436a(_0x2c3591,_0x261845){const _0x35dce6=_0x35dc();return _0x436a=function(_0x436afd,_0x273b11){_0x436afd=_0x436afd-0x1d4;let _0x4ecd95=_0x35dce6[_0x436afd];return _0x4ecd95;},_0x436a(_0x2c3591,_0x261845);}function _0x35dc(){const _0x806137=['Edit\x20conflicts','Local\x20file','614UnWexW','30oahytQ','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20please\x20check\x20your\x20network.','2952216SLpEwU','55WXrtar','exports','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing\x20server\x20data...','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','155075dYipmv','90KpVJba','95096WlAnlw','67812UIBHXn','Syncing...','116nhukrZ','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','475NEVMnl','Collaboration\x20Conflict','2009931fKcGDR','6753690gHghoQ','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Synced'];_0x35dc=function(){return _0x806137;};return _0x35dc();}const _0x4fd294=_0x436a;(function(_0x29c3d7,_0x4c9fff){const _0x26dd83=_0x436a,_0xd4892f=_0x29c3d7();while(!![]){try{const _0x4c8396=-parseInt(_0x26dd83(0x1d6))/0x1*(-parseInt(_0x26dd83(0x1de))/0x2)+parseInt(_0x26dd83(0x1eb))/0x3*(parseInt(_0x26dd83(0x1ed))/0x4)+parseInt(_0x26dd83(0x1e8))/0x5*(-parseInt(_0x26dd83(0x1df))/0x6)+parseInt(_0x26dd83(0x1d8))/0x7+-parseInt(_0x26dd83(0x1ea))/0x8*(-parseInt(_0x26dd83(0x1e9))/0x9)+parseInt(_0x26dd83(0x1d9))/0xa+-parseInt(_0x26dd83(0x1e3))/0xb*(parseInt(_0x26dd83(0x1e2))/0xc);if(_0x4c8396===_0x4c9fff)break;else _0xd4892f['push'](_0xd4892f['shift']());}catch(_0x1d8751){_0xd4892f['push'](_0xd4892f['shift']());}}}(_0x35dc,0x7978c));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x4fd294(0x1e6),'conflict':_0x4fd294(0x1dc),'notCollab':_0x4fd294(0x1dd),'synced':_0x4fd294(0x1db),'syncing':_0x4fd294(0x1ec),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x4fd294(0x1e1),'will-retry':_0x4fd294(0x1e5),'room-full':_0x4fd294(0x1e0),'collaboration-timeout':_0x4fd294(0x1da)},'conflict':{'title':_0x4fd294(0x1d7),'content':'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.'},'permission':{'title':'Authentication\x20Error','content':_0x4fd294(0x1e7)},'collaboration':{'single-unit':{'warning':_0x4fd294(0x1d5)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x4fd294(0x1d4)}};module[_0x4fd294(0x1e4)]=e;
1
+ 'use strict';const _0x222994=_0x5a9f;(function(_0x24e32b,_0x5a34aa){const _0x4374a0=_0x5a9f,_0x3af4e2=_0x24e32b();while(!![]){try{const _0x3c9330=-parseInt(_0x4374a0(0x134))/0x1*(-parseInt(_0x4374a0(0x133))/0x2)+-parseInt(_0x4374a0(0x130))/0x3+-parseInt(_0x4374a0(0x13b))/0x4+parseInt(_0x4374a0(0x13c))/0x5*(-parseInt(_0x4374a0(0x12c))/0x6)+-parseInt(_0x4374a0(0x135))/0x7*(-parseInt(_0x4374a0(0x142))/0x8)+-parseInt(_0x4374a0(0x13f))/0x9+parseInt(_0x4374a0(0x13d))/0xa;if(_0x3c9330===_0x5a34aa)break;else _0x3af4e2['push'](_0x3af4e2['shift']());}catch(_0x3086e6){_0x3af4e2['push'](_0x3af4e2['shift']());}}}(_0x28d8,0x8d9b4));function _0x5a9f(_0xc45222,_0x164620){const _0x28d8ca=_0x28d8();return _0x5a9f=function(_0x5a9fce,_0x271297){_0x5a9fce=_0x5a9fce-0x12b;let _0x3c796a=_0x28d8ca[_0x5a9fce];return _0x3c796a;},_0x5a9f(_0xc45222,_0x164620);}function _0x28d8(){const _0x8e7ad1=['908345piaUye','6068790FjKezu','Syncing\x20server\x20data...','7807554oRXZJg','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','594584mmGFtn','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Click\x20to\x20Reconnect','6THsTzJ','Connection\x20failed,\x20please\x20check\x20your\x20network.','exports','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1089903JnPDXl','Collaboration\x20Conflict','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1584506DSqTBx','1QClQKE','77HwcxTy','Synced','Local\x20file','Edit\x20conflicts','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Authentication\x20Error','896756MFYhYG'];_0x28d8=function(){return _0x8e7ad1;};return _0x28d8();}const e={'collab-client':{'tooltip':{'reconnect':_0x222994(0x12b)}},'collabStatus':{'fetchMiss':_0x222994(0x13e),'conflict':_0x222994(0x138),'notCollab':_0x222994(0x137),'synced':_0x222994(0x136),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x222994(0x12d),'will-retry':_0x222994(0x12f),'room-full':_0x222994(0x141),'collaboration-timeout':_0x222994(0x144)},'conflict':{'title':_0x222994(0x131),'content':'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.'},'permission':{'title':_0x222994(0x13a),'content':_0x222994(0x143)},'collaboration':{'single-unit':{'warning':_0x222994(0x139)},'closeRoom':_0x222994(0x132)},'auth':{'needGotoLoginAlert':_0x222994(0x140)}};module[_0x222994(0x12e)]=e;