@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504201606 → 0.6.10-nightly.202504221607

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 _0x64ade9=_0x5795;(function(_0x3c88ca,_0x746fef){const _0x4aa34e=_0x5795,_0x4fcd5b=_0x3c88ca();while(!![]){try{const _0xf20154=-parseInt(_0x4aa34e(0x1cb))/0x1+parseInt(_0x4aa34e(0x1ca))/0x2*(-parseInt(_0x4aa34e(0x1d3))/0x3)+-parseInt(_0x4aa34e(0x1cd))/0x4*(parseInt(_0x4aa34e(0x1d8))/0x5)+parseInt(_0x4aa34e(0x1d1))/0x6+-parseInt(_0x4aa34e(0x1d6))/0x7+-parseInt(_0x4aa34e(0x1d2))/0x8*(parseInt(_0x4aa34e(0x1cf))/0x9)+parseInt(_0x4aa34e(0x1d9))/0xa*(parseInt(_0x4aa34e(0x1d5))/0xb);if(_0xf20154===_0x746fef)break;else _0x4fcd5b['push'](_0x4fcd5b['shift']());}catch(_0x19230b){_0x4fcd5b['push'](_0x4fcd5b['shift']());}}}(_0x8d11,0xd841e));function _0x5795(_0x13713a,_0x52eedb){const _0x8d11d6=_0x8d11();return _0x5795=function(_0x5795ca,_0x32b12e){_0x5795ca=_0x5795ca-0x1c8;let _0x5eb9a3=_0x8d11d6[_0x5795ca];return _0x5eb9a3;},_0x5795(_0x13713a,_0x52eedb);}function _0x8d11(){const _0x2dd450=['8nexopo','extend','12783249wZDBDa','_injector','10400586ppZnBH','8EIOUTr','57465YagKjr','FUniver','6589ofdlBI','11691624CdYpAk','runOnServer','2116945kxXmVG','94370ipvzVE','@univerjs/core/facade','@univerjs-pro/collaboration-client-ui','170yQCpLT','934858LdwmHQ','get'];_0x8d11=function(){return _0x2dd450;};return _0x8d11();}const t=require(_0x64ade9(0x1c9)),e=require(_0x64ade9(0x1c8));class c extends e['FUniver']{[_0x64ade9(0x1d7)](_0x3b0d6a,_0x5a7cb7,..._0x2fd52a){const _0x2c0c0d=_0x64ade9;return this[_0x2c0c0d(0x1d0)][_0x2c0c0d(0x1cc)](t['RemoteUniscriptService'])[_0x2c0c0d(0x1d7)](_0x3b0d6a,_0x5a7cb7,{},..._0x2fd52a);}}e[_0x64ade9(0x1d4)][_0x64ade9(0x1ce)](c);
1
+ 'use strict';function _0x3371(_0x1aec23,_0x3af3ac){const _0x475d7f=_0x475d();return _0x3371=function(_0x3371d5,_0x35f44b){_0x3371d5=_0x3371d5-0xec;let _0x1f0131=_0x475d7f[_0x3371d5];return _0x1f0131;},_0x3371(_0x1aec23,_0x3af3ac);}const _0x31865e=_0x3371;(function(_0x3ca62a,_0x47c5e2){const _0x21b6f3=_0x3371,_0x3ee744=_0x3ca62a();while(!![]){try{const _0x2d3d40=parseInt(_0x21b6f3(0xee))/0x1*(parseInt(_0x21b6f3(0xf2))/0x2)+parseInt(_0x21b6f3(0xf4))/0x3+-parseInt(_0x21b6f3(0xf9))/0x4*(-parseInt(_0x21b6f3(0xfa))/0x5)+-parseInt(_0x21b6f3(0xf5))/0x6+-parseInt(_0x21b6f3(0xfb))/0x7+-parseInt(_0x21b6f3(0xf8))/0x8+parseInt(_0x21b6f3(0xec))/0x9*(-parseInt(_0x21b6f3(0xed))/0xa);if(_0x2d3d40===_0x47c5e2)break;else _0x3ee744['push'](_0x3ee744['shift']());}catch(_0x89a22c){_0x3ee744['push'](_0x3ee744['shift']());}}}(_0x475d,0xe12ff));const t=require(_0x31865e(0xfc)),e=require(_0x31865e(0xf7));class c extends e[_0x31865e(0xf3)]{[_0x31865e(0xf6)](_0x299117,_0x204057,..._0x45891c){const _0x263e62=_0x31865e;return this[_0x263e62(0xf1)][_0x263e62(0xef)](t['RemoteUniscriptService'])['runOnServer'](_0x299117,_0x204057,{},..._0x45891c);}}e[_0x31865e(0xf3)][_0x31865e(0xf0)](c);function _0x475d(){const _0x190a1c=['4LPzZuC','8541285gUXEuB','11780643pwaasl','@univerjs-pro/collaboration-client-ui','205677slBorz','190FeEFKj','1lKLIkl','get','extend','_injector','3523004nulgvI','FUniver','4577634AowoEq','3427182TORwcn','runOnServer','@univerjs/core/facade','11079336HNItjF'];_0x475d=function(){return _0x190a1c;};return _0x475d();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x151a7c=_0x2459;(function(_0x438915,_0x51a419){const _0x42bf29=_0x2459,_0x14cab5=_0x438915();while(!![]){try{const _0x3a201b=parseInt(_0x42bf29(0x334))/0x1*(parseInt(_0x42bf29(0x340))/0x2)+-parseInt(_0x42bf29(0x40d))/0x3+-parseInt(_0x42bf29(0x238))/0x4+parseInt(_0x42bf29(0x270))/0x5+parseInt(_0x42bf29(0x1c1))/0x6+parseInt(_0x42bf29(0x383))/0x7+-parseInt(_0x42bf29(0x2b9))/0x8;if(_0x3a201b===_0x51a419)break;else _0x14cab5['push'](_0x14cab5['shift']());}catch(_0x3468d5){_0x14cab5['push'](_0x14cab5['shift']());}}}(_0x448a,0x7e4bc));var Xe=Object[_0x151a7c(0x209)],Ge=(_0x12bd8e,_0x495464,_0x50ea8f)=>_0x495464 in _0x12bd8e?Xe(_0x12bd8e,_0x495464,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50ea8f}):_0x12bd8e[_0x495464]=_0x50ea8f,_=(_0x2a42e8,_0x59d789,_0x53656f)=>Ge(_0x2a42e8,typeof _0x59d789!=_0x151a7c(0x41e)?_0x59d789+'':_0x59d789,_0x53656f);Object[_0x151a7c(0x209)](exports,Symbol[_0x151a7c(0x1ef)],{'value':_0x151a7c(0x2c7)});const u=require(_0x151a7c(0x1fb)),a=require('@univerjs/core'),p=require(_0x151a7c(0x2f9)),q=require(_0x151a7c(0x37a)),b=require(_0x151a7c(0x3ae)),qe=require('@univerjs/drawing'),d=require(_0x151a7c(0x398)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Te=require(_0x151a7c(0x3de)),g=require(_0x151a7c(0x239)),$=require(_0x151a7c(0x330)),G=require(_0x151a7c(0x1a3)),P=require(_0x151a7c(0x30e)),O=require(_0x151a7c(0x25f)),T=require(_0x151a7c(0x1c6)),M=require(_0x151a7c(0x1b1)),Ke=require('@univerjs/rpc');var ze=Object['getOwnPropertyDescriptor'],Je=(_0x24e6e1,_0x51b53f,_0x54d605,_0xb4e4a5)=>{const _0x31ae3c=_0x151a7c;for(var _0x526a1b=_0xb4e4a5>0x1?void 0x0:_0xb4e4a5?ze(_0x51b53f,_0x54d605):_0x51b53f,_0x1291d5=_0x24e6e1[_0x31ae3c(0x3b3)]-0x1,_0x48f98b;_0x1291d5>=0x0;_0x1291d5--)(_0x48f98b=_0x24e6e1[_0x1291d5])&&(_0x526a1b=_0x48f98b(_0x526a1b)||_0x526a1b);return _0x526a1b;},Oe=(_0xd890d3,_0x197f11)=>(_0x3f3d8a,_0x1a8436)=>_0x197f11(_0x3f3d8a,_0x1a8436,_0xd890d3);let fe=class extends a[_0x151a7c(0x2c2)]{constructor(_0x461e82,_0x134388){const _0x3e94cf=_0x151a7c;super(),this[_0x3e94cf(0x276)]=_0x461e82,this['_imageIoService']=_0x134388,this[_0x3e94cf(0x1c8)]();}[_0x151a7c(0x1c8)](){const _0x5f001e=_0x151a7c,_0xb8872a=this;this[_0x5f001e(0x2f6)](this[_0x5f001e(0x276)][_0x5f001e(0x2da)]({'onBeforePasteImage':async _0x2421cb=>{const _0x38582d=_0x5f001e,_0x17521a=await _0xb8872a[_0x38582d(0x3a0)]['saveImage'](_0x2421cb);return _0x17521a?{'source':_0x17521a[_0x38582d(0x261)],'imageSourceType':_0x17521a[_0x38582d(0x2ba)]}:null;}}));}};fe=Je([Oe(0x0,b[_0x151a7c(0x3eb)]),Oe(0x1,qe[_0x151a7c(0x284)])],fe);const Re=['purple300',_0x151a7c(0x3a1),_0x151a7c(0x1d4),_0x151a7c(0x27a),_0x151a7c(0x318),_0x151a7c(0x1c7)];function _0x2459(_0x5d9cd1,_0x336af7){const _0x448ab5=_0x448a();return _0x2459=function(_0x2459b9,_0x45346f){_0x2459b9=_0x2459b9-0x197;let _0x463363=_0x448ab5[_0x2459b9];return _0x463363;},_0x2459(_0x5d9cd1,_0x336af7);}class Ce extends a[_0x151a7c(0x38f)]{constructor(){const _0x4306bd=_0x151a7c;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x4306bd(0x3ef),0x0);}[_0x151a7c(0x28c)](_0x470957){const _0x47ac2d=_0x151a7c;if(this[_0x47ac2d(0x26d)][_0x47ac2d(0x3ff)](_0x470957))return this[_0x47ac2d(0x26d)][_0x47ac2d(0x35b)](_0x470957);const _0x36e185=Re[this[_0x47ac2d(0x3ef)]];return this[_0x47ac2d(0x3ef)]=(this[_0x47ac2d(0x3ef)]+0x1)%Re[_0x47ac2d(0x3b3)],this['_assignedColors']['set'](_0x470957,_0x36e185),_0x36e185;}}function we(_0x568a45){const _0x2efd58=_0x151a7c;let _0x35c16d='';for(const _0x41d4e9 of _0x568a45){const {startOffset:_0x2b9ab6,endOffset:_0x43f48e,isActive:_0x5896dd,rangeType:_0x32a1ff,segmentId:_0xa2e5f6,segmentPage:_0xaa5dab}=_0x41d4e9;_0x35c16d[_0x2efd58(0x3b3)]&&(_0x35c16d+=','),_0x35c16d+=_0x2b9ab6+':'+_0x43f48e+':'+(_0x5896dd?'1':'0')+':'+_0x32a1ff+':'+_0xa2e5f6+':'+_0xaa5dab;}return _0x35c16d;}function Ze(_0x28e6c9){const _0x5df5b5=_0x151a7c,_0x246243=_0x28e6c9[_0x5df5b5(0x1f5)](','),_0x46a7c9=[];for(const _0x1f2112 of _0x246243){const [_0x307a42,_0x1b687d,_0x384489,_0x3f9a84,_0x1cc1e7,_0x2c990c]=_0x1f2112[_0x5df5b5(0x1f5)](':');_0x46a7c9[_0x5df5b5(0x264)]({'startOffset':Number(_0x307a42),'endOffset':Number(_0x1b687d),'collapsed':_0x307a42===_0x1b687d,'isActive':_0x384489==='1','rangeType':_0x3f9a84===a[_0x5df5b5(0x216)]['TEXT']?a[_0x5df5b5(0x216)][_0x5df5b5(0x394)]:a[_0x5df5b5(0x216)]['RECT'],'segmentId':typeof _0x1cc1e7==_0x5df5b5(0x20f)?String(_0x1cc1e7):'','segmentPage':Number(_0x2c990c!=null?_0x2c990c:-0x1)});}return _0x46a7c9[_0x5df5b5(0x325)](_0x45084d=>_0x45084d[_0x5df5b5(0x3bc)])||(_0x46a7c9[0x0][_0x5df5b5(0x3bc)]=!0x0),_0x46a7c9;}class pe extends a[_0x151a7c(0x2c2)]{constructor(){const _0x4fe524=_0x151a7c;super(...arguments),_(this,_0x4fe524(0x262),new d['BehaviorSubject'](null)),_(this,'collabCursorState$',this[_0x4fe524(0x262)][_0x4fe524(0x33c)]());}[_0x151a7c(0x399)](_0x227c57){const _0x5a762d=_0x151a7c,{unitID:_0x278db8,memberID:_0x3d85a0,textRanges:_0x4b3023}=_0x227c57,_0x520f20=we(_0x4b3023);if(_0x520f20==='')return;const _0x216cab={'unitID':_0x278db8,'memberID':_0x3d85a0,'selection':_0x520f20};this[_0x5a762d(0x262)][_0x5a762d(0x336)](_0x216cab);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x1128ea,_0x33b58e,_0x584f5b,_0x33fb57)=>{for(var _0x107f24=_0x33fb57>0x1?void 0x0:_0x33fb57?Qe(_0x33b58e,_0x584f5b):_0x33b58e,_0x345be9=_0x1128ea['length']-0x1,_0x4df22b;_0x345be9>=0x0;_0x345be9--)(_0x4df22b=_0x1128ea[_0x345be9])&&(_0x107f24=_0x4df22b(_0x107f24)||_0x107f24);return _0x107f24;},L=(_0x2625da,_0x305fe2)=>(_0x2139ed,_0x5e5777)=>_0x305fe2(_0x2139ed,_0x5e5777,_0x2625da);const tt=0x12c,st=0x64;let Se=class extends a[_0x151a7c(0x2c2)]{constructor(_0x1525e9,_0x3841e3,_0x20efb3,_0x56602d,_0x17f329,_0x124951,_0x3abafa,_0x119a01,_0x602baf){const _0x5cbc83=_0x151a7c;super(),_(this,_0x5cbc83(0x3e2),!0x1),_(this,'_init',!0x1),_(this,_0x5cbc83(0x390),new d[(_0x5cbc83(0x1dd))](new Map())),_(this,_0x5cbc83(0x3ea),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new d[(_0x5cbc83(0x1dd))]([])),_(this,_0x5cbc83(0x321),this['_roomMembers$'][_0x5cbc83(0x271)](d[_0x5cbc83(0x2b4)](tt))),_(this,_0x5cbc83(0x2aa),a[_0x5cbc83(0x36c)](_0x38c72f=>{const _0x4691ed=_0x5cbc83,_0x2d4573={'eventID':m[_0x4691ed(0x372)][_0x4691ed(0x258)],'data':{'unitID':this[_0x4691ed(0x328)],'memberID':this['_session']['getMemberID'](),'selection':we(_0x38c72f)}};this[_0x4691ed(0x375)][_0x4691ed(0x220)](_0x2d4573,this[_0x4691ed(0x328)]);},st)),(this[_0x5cbc83(0x328)]=_0x1525e9,this['_session']=_0x3841e3,this[_0x5cbc83(0x388)]=_0x20efb3,this[_0x5cbc83(0x1b7)]=_0x56602d,this[_0x5cbc83(0x3f9)]=_0x17f329,this[_0x5cbc83(0x219)]=_0x124951,this[_0x5cbc83(0x21b)]=_0x3abafa,this[_0x5cbc83(0x344)]=_0x119a01,this['_commandService']=_0x602baf);}get[_0x151a7c(0x2ac)](){const _0x2ab020=_0x151a7c;return this[_0x2ab020(0x390)]['getValue']();}get['roomMembers'](){const _0x324996=_0x151a7c;return this[_0x324996(0x376)][_0x324996(0x1ae)]();}[_0x151a7c(0x3a3)](){const _0x596e35=_0x151a7c;super['dispose'](),this[_0x596e35(0x390)]['next'](new Map()),this['_cursorInfo$'][_0x596e35(0x3ed)](),this[_0x596e35(0x376)][_0x596e35(0x336)]([]),this[_0x596e35(0x376)][_0x596e35(0x3ed)]();}[_0x151a7c(0x256)](){const _0x557e18=_0x151a7c;this[_0x557e18(0x1c8)]||(this['_init']=!0x0,this[_0x557e18(0x375)][_0x557e18(0x36d)]['pipe'](d[_0x557e18(0x407)](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x3f119e=>{const _0x2e431c=_0x557e18;_0x3f119e===u[_0x2e431c(0x3be)][_0x2e431c(0x3b5)]?this[_0x2e431c(0x3f6)]():this[_0x2e431c(0x2a7)]();}),this[_0x557e18(0x375)][_0x557e18(0x322)][_0x557e18(0x271)](d[_0x557e18(0x407)](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x3f5061=>{const _0x34e550=_0x557e18,_0x3f9574=_0x3f5061['eventID'];_0x3f9574===m[_0x34e550(0x372)][_0x34e550(0x258)]&&this[_0x34e550(0x28d)](_0x3f5061),_0x3f9574===m['CollaborationEvent'][_0x34e550(0x1e0)]&&this[_0x34e550(0x217)](_0x3f5061);}),this[_0x557e18(0x2f6)](this[_0x557e18(0x357)][_0x557e18(0x3c9)](_0x725c4b=>{const _0xdd05f2=_0x557e18,_0x293cbf=_0x725c4b[_0xdd05f2(0x28e)];_0x293cbf!=null&&this[_0xdd05f2(0x3e2)]&&_0x725c4b['id']===Y[_0xdd05f2(0x223)]['id']&&_0x293cbf['unitId']===this[_0xdd05f2(0x328)]&&_0x293cbf[_0xdd05f2(0x36b)]===!0x1&&_0x293cbf['ranges']['length']>0x0&&this[_0xdd05f2(0x2aa)](_0x293cbf['ranges']);})),this['_syncEditingCollabCursorService'][_0x557e18(0x224)]['pipe'](d['takeUntil'](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x58ab30=>{const _0x3134a0=_0x557e18;if((_0x58ab30==null?void 0x0:_0x58ab30[_0x3134a0(0x328)])!==this[_0x3134a0(0x328)])return;const _0x300506={'eventID':m[_0x3134a0(0x372)][_0x3134a0(0x258)],'data':_0x58ab30};this[_0x3134a0(0x28d)](_0x300506);}),this[_0x557e18(0x2f6)](this[_0x557e18(0x357)][_0x557e18(0x3c9)](_0x11e879=>{const _0x5c5d4d=_0x557e18;if(_0x11e879['params']==null)return;const _0x3aad92=_0x11e879[_0x5c5d4d(0x28e)];if(_0x11e879['id']!==Y['RichTextEditingMutation']['id']||_0x3aad92[_0x5c5d4d(0x1de)]!==this['unitID'])return;const _0x4aa314={'id':_0x5c5d4d(0x1d3),'params':_0x3aad92},_0x37369a=this['cursorInfo'];for(const [_0x51aea3,_0x453078]of _0x37369a){const _0x10c74b={'id':_0x5c5d4d(0x1d3),'params':{'unitId':this[_0x5c5d4d(0x328)],'actions':null,'textRanges':_0x453078[_0x5c5d4d(0x3d4)]}},_0x36feec=this[_0x5c5d4d(0x21b)][_0x5c5d4d(0x350)](_0x4aa314,_0x10c74b,!0x1);if(m[_0x5c5d4d(0x2e1)](_0x36feec))throw _0x36feec['error'];_0x37369a[_0x5c5d4d(0x2a4)](_0x51aea3,{..._0x453078,'ranges':_0x36feec[_0x5c5d4d(0x293)][_0x5c5d4d(0x28e)][_0x5c5d4d(0x31e)]});}queueMicrotask(()=>{const _0x495e79=_0x5c5d4d;this[_0x495e79(0x390)][_0x495e79(0x336)](_0x37369a);});})));}[_0x151a7c(0x28d)](_0x4679d0){const _0xd59dd4=_0x151a7c;var _0x2b81fe,_0x21c1b5;const {memberID:_0x2f4d19,selection:_0x4ea73a}=_0x4679d0['data'],_0xe3eaf8=Ze(_0x4ea73a),_0x336e17=(_0x21c1b5=(_0x2b81fe=this['_memberService'][_0xd59dd4(0x3af)](this[_0xd59dd4(0x328)],_0x2f4d19))==null?void 0x0:_0x2b81fe['name'])!=null?_0x21c1b5:_0xd59dd4(0x40f),_0x2926af={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x2f4d19),'name':_0x336e17,'ranges':_0xe3eaf8},_0x1f6086=this['cursorInfo'];_0x1f6086['set'](_0x2f4d19,_0x2926af),this[_0xd59dd4(0x390)][_0xd59dd4(0x336)](_0x1f6086);}[_0x151a7c(0x217)](_0x54198a){const _0xea2887=_0x151a7c,{memberID:_0x2a12d9}=_0x54198a[_0xea2887(0x2eb)],_0x4ef1fc=this[_0xea2887(0x2ac)];_0x4ef1fc['delete'](_0x2a12d9),this[_0xea2887(0x390)][_0xea2887(0x336)](_0x4ef1fc);}[_0x151a7c(0x3f6)](){const _0x2b501d=_0x151a7c;var _0x1fc73f;if(this['_online']=!0x0,((_0x1fc73f=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1fc73f[_0x2b501d(0x27f)]())!==this['unitID'])return;const _0xe9a96d=this[_0x2b501d(0x388)]['get'](Y['DocSelectionManagerService'])[_0x2b501d(0x417)]();Array[_0x2b501d(0x2d3)](_0xe9a96d)&&_0xe9a96d[_0x2b501d(0x3b3)]>0x0&&this[_0x2b501d(0x2aa)](_0xe9a96d);}['_toggleOffline'](){const _0xb5ebe9=_0x151a7c;this[_0xb5ebe9(0x3e2)]=!0x1;}};Se=et([L(0x2,a[_0x151a7c(0x2db)](a['Injector'])),L(0x3,a['Inject'](Ce)),L(0x4,a[_0x151a7c(0x2db)](u['MemberService'])),L(0x5,a['Inject'](pe)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],Se);var nt=Object[_0x151a7c(0x300)],it=(_0x141b79,_0x1dd05d,_0x3a750f,_0x17e097)=>{const _0x8d33=_0x151a7c;for(var _0x5bec42=_0x17e097>0x1?void 0x0:_0x17e097?nt(_0x1dd05d,_0x3a750f):_0x1dd05d,_0x29de05=_0x141b79[_0x8d33(0x3b3)]-0x1,_0x11f286;_0x29de05>=0x0;_0x29de05--)(_0x11f286=_0x141b79[_0x29de05])&&(_0x5bec42=_0x11f286(_0x5bec42)||_0x5bec42);return _0x5bec42;},A=(_0x2ad6fa,_0x348561)=>(_0x45f3a5,_0xbfd77e)=>_0x348561(_0x45f3a5,_0xbfd77e,_0x2ad6fa);const rt=0x12c,ot=0x64,at=()=>{let _0x519874=[],_0x303615=!0x1;return _0x2fa49f=>{const _0x4aa2d9=_0x2459;_0x519874[_0x4aa2d9(0x264)](_0x2fa49f),_0x303615||(_0x303615=!0x0,setTimeout(()=>{_0x519874['forEach'](_0x400299=>_0x400299()),_0x519874=[],_0x303615=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x4ae759,_0x1a05ed,_0x431e66,_0xb1945c,_0x52473a,_0x220014,_0x46d237,_0x32127b){const _0x2c326f=_0x151a7c;super(),_(this,'_online',!0x1),_(this,_0x2c326f(0x1c8),!0x1),_(this,'_cursorInfo$',new d[(_0x2c326f(0x1dd))](new Map())),_(this,_0x2c326f(0x3ea),this[_0x2c326f(0x390)][_0x2c326f(0x33c)]()),_(this,'_roomMembers$',new d[(_0x2c326f(0x1dd))]([])),_(this,_0x2c326f(0x321),this['_roomMembers$'][_0x2c326f(0x271)](d['debounceTime'](rt))),_(this,_0x2c326f(0x2aa),a[_0x2c326f(0x36c)]((_0x478256,_0x76fb7f)=>{const _0x1806ce=_0x2c326f,_0x562137={'eventID':m[_0x1806ce(0x372)][_0x1806ce(0x258)],'data':{'unitID':this[_0x1806ce(0x328)],'memberID':this[_0x1806ce(0x375)][_0x1806ce(0x211)](),'selection':Te['serializeRangeWithSheet'](_0x478256,_0x76fb7f[_0x1806ce(0x416)])}};this[_0x1806ce(0x375)][_0x1806ce(0x220)](_0x562137,this[_0x1806ce(0x328)]);},ot)),(this[_0x2c326f(0x328)]=_0x4ae759,this[_0x2c326f(0x375)]=_0x1a05ed,this[_0x2c326f(0x388)]=_0x431e66,this['_colorAssignService']=_0xb1945c,this[_0x2c326f(0x3f9)]=_0x52473a,this[_0x2c326f(0x344)]=_0x220014,this[_0x2c326f(0x357)]=_0x46d237,this[_0x2c326f(0x215)]=_0x32127b);}get['cursorInfo'](){const _0x4d9e8f=_0x151a7c;return this[_0x4d9e8f(0x390)]['getValue']();}get[_0x151a7c(0x3c1)](){const _0x5ea00c=_0x151a7c;return this[_0x5ea00c(0x376)][_0x5ea00c(0x1ae)]();}['dispose'](){const _0x26da31=_0x151a7c;super['dispose'](),this['_cursorInfo$'][_0x26da31(0x336)](new Map()),this[_0x26da31(0x390)][_0x26da31(0x3ed)](),this['_roomMembers$'][_0x26da31(0x336)]([]),this[_0x26da31(0x376)][_0x26da31(0x3ed)]();}[_0x151a7c(0x256)](){const _0x2693b1=_0x151a7c;this[_0x2693b1(0x1c8)]||(this['_init']=!0x0,this[_0x2693b1(0x375)]['sessionStatus$'][_0x2693b1(0x271)](d[_0x2693b1(0x407)](this[_0x2693b1(0x326)]))['subscribe'](_0x15e385=>{const _0x4e7567=_0x2693b1;_0x15e385===u[_0x4e7567(0x3be)][_0x4e7567(0x3b5)]?this[_0x4e7567(0x3f6)]():this['_toggleOffline']();}),this[_0x2693b1(0x375)]['event$'][_0x2693b1(0x271)](d[_0x2693b1(0x407)](this[_0x2693b1(0x326)]))[_0x2693b1(0x22b)](_0x23eba7=>{const _0x222e14=_0x2693b1,_0x4cfcac=_0x23eba7[_0x222e14(0x31b)];_0x4cfcac===m[_0x222e14(0x372)][_0x222e14(0x258)]&&this[_0x222e14(0x28d)](_0x23eba7),_0x4cfcac===m[_0x222e14(0x372)][_0x222e14(0x1e0)]&&this['_onCursorDelete'](_0x23eba7);}),this['_onRefRangeChange'](),this[_0x2693b1(0x2f6)](this[_0x2693b1(0x357)][_0x2693b1(0x3c9)](_0xcb9eba=>{const _0x43418e=_0x2693b1;if(this['_online']&&_0xcb9eba['id']===g[_0x43418e(0x246)]['id']&&_0xcb9eba['params'][_0x43418e(0x1de)]===this['unitID']){const _0x5b4144=_0xcb9eba[_0x43418e(0x28e)];this[_0x43418e(0x2aa)](_0x5b4144[_0x43418e(0x210)],_0x5b4144[_0x43418e(0x402)][0x0]);}})));}['_onCursorUpdate'](_0x4036d4){const _0x179a9a=_0x151a7c;var _0x56def6,_0x3b8249;const {memberID:_0x353444,selection:_0x2fc5b4}=_0x4036d4['data'],{sheetName:_0x4249d0,range:_0x323946}=Te[_0x179a9a(0x3d7)](_0x2fc5b4),_0x6f358b={'name':(_0x3b8249=(_0x56def6=this['_memberService'][_0x179a9a(0x3af)](this[_0x179a9a(0x328)],_0x353444))==null?void 0x0:_0x56def6['name'])!=null?_0x3b8249:'Unknown\x20user','range':this[_0x179a9a(0x315)](_0x4249d0,_0x323946),'sheetID':_0x4249d0,'color':this[_0x179a9a(0x1b7)][_0x179a9a(0x28c)](_0x353444),'selection':_0x2fc5b4},_0x3c345e=this[_0x179a9a(0x2ac)];_0x3c345e['set'](_0x353444,_0x6f358b),this[_0x179a9a(0x390)][_0x179a9a(0x336)](_0x3c345e);}[_0x151a7c(0x217)](_0x54909f){const _0x4ed2e1=_0x151a7c,{memberID:_0x39ef69}=_0x54909f['data'],_0x24151d=this['cursorInfo'];_0x24151d['delete'](_0x39ef69),this['_cursorInfo$'][_0x4ed2e1(0x336)](_0x24151d);}[_0x151a7c(0x315)](_0x1107ab,_0x5199d1){const _0x58ae37=_0x151a7c;var _0x26cca4,_0x625634;const _0x316142=(_0x625634=(_0x26cca4=this[_0x58ae37(0x344)]['getUniverSheetInstance'](this[_0x58ae37(0x328)]))==null?void 0x0:_0x26cca4[_0x58ae37(0x331)](_0x1107ab))==null?void 0x0:_0x625634[_0x58ae37(0x247)]();return(_0x316142==null?void 0x0:_0x316142[_0x58ae37(0x2a5)](_0x523dfc=>a[_0x58ae37(0x30c)][_0x58ae37(0x21a)](_0x523dfc,_0x5199d1)))||_0x5199d1;}[_0x151a7c(0x3f2)](){const _0x53cbbd=_0x151a7c,_0x185a80=new a[(_0x53cbbd(0x39a))](),_0xa04540=at(),_0x47ffcb=()=>{const _0x39c682=_0x53cbbd;_0x185a80[_0x39c682(0x3a3)]();const _0x36b153=(_0x3ec865,_0x285ce7,_0x9e39f0,_0x1bde78)=>{const _0x18a6fd=_0x39c682;let _0x51be70=[];switch(_0x3ec865['id']){case g[_0x18a6fd(0x379)][_0x18a6fd(0x400)]:{_0x51be70=g[_0x18a6fd(0x360)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x51be70=g['handleDeleteRangeMoveUp'](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x51be70=g[_0x18a6fd(0x30d)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x20c)]:{_0x51be70=g[_0x18a6fd(0x333)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x411)]:{_0x51be70=g[_0x18a6fd(0x33a)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x1d2)]:{_0x51be70=g[_0x18a6fd(0x232)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId'][_0x18a6fd(0x385)]:{_0x51be70=g[_0x18a6fd(0x1aa)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId'][_0x18a6fd(0x3a9)]:{_0x51be70=g['handleIRemoveCol'](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)]['RemoveRowCommandId']:{_0x51be70=g[_0x18a6fd(0x23a)](_0x3ec865,_0x1bde78);break;}}const _0x50b593=g[_0x18a6fd(0x35d)](_0x51be70,_0x1bde78),_0x3edf5c=this[_0x18a6fd(0x2ac)]['get'](_0x285ce7);if(_0x3edf5c&&_0x50b593){const _0x21f87d={..._0x3edf5c,'range':_0x50b593};this[_0x18a6fd(0x2ac)]['set'](_0x285ce7,_0x21f87d),_0xa04540(()=>{const _0x35c597=_0x18a6fd,_0x4b12dc=this['_refRangeService'][_0x35c597(0x272)](_0x50b593,_0x43df33=>(_0x4b12dc[_0x35c597(0x3a3)](),_0x36b153(_0x43df33,_0x285ce7,_0x9e39f0,_0x50b593)));_0x185a80[_0x35c597(0x2ec)](_0x4b12dc);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x39c682(0x2bd)]((_0x569f28,_0x69812f)=>{const _0x3cc4ea=_0x39c682,{range:_0x4b7c14,sheetID:_0xf3a777}=_0x569f28,_0xe2d48a=this[_0x3cc4ea(0x215)][_0x3cc4ea(0x272)](_0x4b7c14,_0x21541a=>(_0xe2d48a['dispose'](),_0x36b153(_0x21541a,_0x69812f,_0xf3a777,_0x4b7c14)));_0x185a80['add'](_0xe2d48a);});};this[_0x53cbbd(0x2f6)](a[_0x53cbbd(0x2c0)](this[_0x53cbbd(0x390)][_0x53cbbd(0x22b)](()=>{_0x47ffcb();})));}[_0x151a7c(0x3f6)](){const _0x5853bd=_0x151a7c;var _0x14479c,_0x86ba68;if(this['_online']=!0x0,((_0x14479c=this[_0x5853bd(0x344)][_0x5853bd(0x34c)]())==null?void 0x0:_0x14479c['getUnitId']())!==this[_0x5853bd(0x328)])return;const _0x378306=(_0x86ba68=this[_0x5853bd(0x388)][_0x5853bd(0x35b)](g[_0x5853bd(0x226)])[_0x5853bd(0x290)]())==null?void 0x0:_0x86ba68[0x0],_0x40cfb8=this['_univerInstanceService'][_0x5853bd(0x201)](a['UniverInstanceType'][_0x5853bd(0x3c5)])['getActiveSheet']();_0x378306&&_0x40cfb8&&this[_0x5853bd(0x2aa)](_0x40cfb8[_0x5853bd(0x358)](),_0x378306);}['_toggleOffline'](){const _0x2a8837=_0x151a7c;this[_0x2a8837(0x3e2)]=!0x1;}};Ie=it([A(0x2,a['Inject'](a[_0x151a7c(0x34d)])),A(0x3,a[_0x151a7c(0x2db)](Ce)),A(0x4,a[_0x151a7c(0x2db)](u['MemberService'])),A(0x5,a[_0x151a7c(0x1e8)]),A(0x6,a[_0x151a7c(0x39e)]),A(0x7,a[_0x151a7c(0x2db)](g[_0x151a7c(0x410)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x1c73ab,_0x1a305a,_0x184270,_0x4251d8)=>{for(var _0x1e4333=_0x4251d8>0x1?void 0x0:_0x4251d8?ct(_0x1a305a,_0x184270):_0x1a305a,_0x2bc2ba=_0x1c73ab['length']-0x1,_0x5ea2b8;_0x2bc2ba>=0x0;_0x2bc2ba--)(_0x5ea2b8=_0x1c73ab[_0x2bc2ba])&&(_0x1e4333=_0x5ea2b8(_0x1e4333)||_0x1e4333);return _0x1e4333;},ie=(_0x305ca8,_0x310fb8)=>(_0x31c461,_0x3ec033)=>_0x310fb8(_0x31c461,_0x3ec033,_0x305ca8);let x=class extends a['RxDisposable']{constructor(_0x3b119b,_0x3f45d3,_0x2e8bf3){const _0x16bcfe=_0x151a7c;super(),_(this,_0x16bcfe(0x3a2),new Map()),_(this,_0x16bcfe(0x289),new d[(_0x16bcfe(0x368))]()),(this[_0x16bcfe(0x344)]=_0x3b119b,this['_injector']=_0x3f45d3,this[_0x16bcfe(0x2ee)]=_0x2e8bf3,this[_0x16bcfe(0x1c8)]());}[_0x151a7c(0x3a3)](){const _0x1f44d5=_0x151a7c;super[_0x1f44d5(0x3a3)](),this[_0x1f44d5(0x289)]['complete'](),this[_0x1f44d5(0x3a2)][_0x1f44d5(0x2bd)](_0x315270=>_0x315270[_0x1f44d5(0x3a3)]());}[_0x151a7c(0x1fa)](_0x21bd1b){const _0x15aa94=_0x151a7c;return this['_entities'][_0x15aa94(0x3ff)](_0x21bd1b)?this[_0x15aa94(0x3a2)]['get'](_0x21bd1b)[_0x15aa94(0x3ea)]:this[_0x15aa94(0x289)][_0x15aa94(0x271)](d['filter'](_0x557790=>_0x557790[_0x15aa94(0x328)]===_0x21bd1b),d[_0x15aa94(0x39d)](_0x43b471=>_0x43b471[_0x15aa94(0x3ea)]));}[_0x151a7c(0x1c8)](){const _0x13227a=_0x151a7c;this[_0x13227a(0x344)][_0x13227a(0x2ed)](a['UniverInstanceType'][_0x13227a(0x3c5)])[_0x13227a(0x271)](d[_0x13227a(0x407)](this['dispose$']))[_0x13227a(0x22b)](async _0x4308bc=>{const _0x35e1b1=_0x13227a,_0x1050dd=_0x4308bc['getUnitId'](),_0x4d98d7=await this[_0x35e1b1(0x35c)](_0x1050dd);this[_0x35e1b1(0x289)][_0x35e1b1(0x336)](_0x4d98d7),this[_0x35e1b1(0x3a2)]['set'](_0x1050dd,_0x4d98d7);}),this[_0x13227a(0x344)][_0x13227a(0x2ed)](a[_0x13227a(0x319)][_0x13227a(0x378)])[_0x13227a(0x271)](d[_0x13227a(0x407)](this[_0x13227a(0x326)]))[_0x13227a(0x271)](d[_0x13227a(0x296)](_0x319452=>!_0x319452[_0x13227a(0x27f)]()[_0x13227a(0x327)]('__')))[_0x13227a(0x22b)](async _0x54940a=>{const _0x168f26=_0x13227a,_0x41e214=_0x54940a[_0x168f26(0x27f)](),_0x32f4df=await this[_0x168f26(0x31c)](_0x41e214);this[_0x168f26(0x289)][_0x168f26(0x336)](_0x32f4df),this[_0x168f26(0x3a2)][_0x168f26(0x2a4)](_0x41e214,_0x32f4df);}),d[_0x13227a(0x22d)](this[_0x13227a(0x344)]['getTypeOfUnitDisposed$'](a[_0x13227a(0x319)]['UNIVER_DOC']),this[_0x13227a(0x344)][_0x13227a(0x1c0)](a[_0x13227a(0x319)][_0x13227a(0x3c5)]))['pipe'](d[_0x13227a(0x407)](this['dispose$']))['subscribe'](_0x17f144=>{const _0x38eee6=_0x13227a,_0x336616=_0x17f144['getUnitId'](),_0x20ed69=this[_0x38eee6(0x3a2)][_0x38eee6(0x35b)](_0x336616);_0x20ed69&&(_0x20ed69[_0x38eee6(0x3a3)](),this['_entities']['delete'](_0x336616));});}async['_startSheetCollabCursor'](_0x1d82d9){const _0x152625=_0x151a7c,_0x5227b6=await this[_0x152625(0x2ee)][_0x152625(0x21d)](_0x1d82d9),_0x3117e5=this['_injector'][_0x152625(0x24f)](Ie,_0x1d82d9,_0x5227b6);return _0x3117e5[_0x152625(0x256)](),_0x3117e5;}async[_0x151a7c(0x31c)](_0x31af0a){const _0x291ae5=_0x151a7c,_0x1da679=await this[_0x291ae5(0x2ee)][_0x291ae5(0x21d)](_0x31af0a),_0x3db6f6=this[_0x291ae5(0x388)]['createInstance'](Se,_0x31af0a,_0x1da679);return _0x3db6f6[_0x291ae5(0x256)](),_0x3db6f6;}};x=lt([ie(0x0,a[_0x151a7c(0x1e8)]),ie(0x1,a['Inject'](a[_0x151a7c(0x34d)])),ie(0x2,a['Inject'](u[_0x151a7c(0x3dd)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x41e529,_0x3cb198){const _0x37a7b2=_0x151a7c;let {radius:_0x144cf4,width:_0x4e8068,height:_0x590fdd}=_0x3cb198;_0x144cf4=_0x144cf4!=null?_0x144cf4:0x0,_0x4e8068=_0x4e8068!=null?_0x4e8068:0x1e,_0x590fdd=_0x590fdd!=null?_0x590fdd:0x1e;let _0x52868e=0x0,_0x517d0c=0x0,_0x368f3a=0x0;_0x52868e=_0x517d0c=_0x368f3a=Math[_0x37a7b2(0x3a5)](_0x144cf4,_0x4e8068/0x2,_0x590fdd/0x2),_0x41e529[_0x37a7b2(0x41a)](),_0x41e529[_0x37a7b2(0x287)](_0x52868e,0x0),_0x41e529['lineTo'](_0x4e8068-_0x517d0c,0x0),_0x41e529[_0x37a7b2(0x2e9)](_0x4e8068-_0x517d0c,_0x517d0c,_0x517d0c,Math['PI']*0x3/0x2,0x0,!0x1),_0x41e529['lineTo'](_0x4e8068,_0x590fdd-_0x368f3a),_0x41e529[_0x37a7b2(0x2e9)](_0x4e8068-_0x368f3a,_0x590fdd-_0x368f3a,_0x368f3a,0x0,Math['PI']/0x2,!0x1),_0x41e529[_0x37a7b2(0x341)](0x0,_0x590fdd),_0x41e529['lineTo'](0x0,_0x52868e),_0x41e529[_0x37a7b2(0x2e9)](_0x52868e,_0x52868e,_0x52868e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x41e529['closePath'](),_0x3cb198[_0x37a7b2(0x36a)]&&(_0x41e529[_0x37a7b2(0x1b6)](),_0x41e529[_0x37a7b2(0x229)]=_0x3cb198[_0x37a7b2(0x36a)],_0x3cb198['fillRule']==='evenodd'?_0x41e529[_0x37a7b2(0x36a)](_0x37a7b2(0x311)):_0x41e529[_0x37a7b2(0x36a)](),_0x41e529[_0x37a7b2(0x41b)]());}class te extends p[_0x151a7c(0x297)]{constructor(_0x51d6f9,_0x539d38){const _0x1e421b=_0x151a7c;super(_0x51d6f9,_0x539d38),_(this,_0x1e421b(0x203)),_(this,_0x1e421b(0x2bb)),(this[_0x1e421b(0x203)]=_0x539d38==null?void 0x0:_0x539d38[_0x1e421b(0x203)],this[_0x1e421b(0x2bb)]=_0x539d38==null?void 0x0:_0x539d38[_0x1e421b(0x2bb)]);}static[_0x151a7c(0x3f3)](_0x3caf37,_0x184355){const _0x2b8248=_0x151a7c,{text:_0x257c28,color:_0x223cf2}=_0x184355;_0x3caf37[_0x2b8248(0x1b6)](),_0x3caf37[_0x2b8248(0x3b8)]=_0x2b8248(0x3f5);const _0x570133=_0x3caf37[_0x2b8248(0x2c6)](_0x257c28)[_0x2b8248(0x386)],_0x6c22cb=Math[_0x2b8248(0x3a5)](_0x570133+0x2*re,De);ht(_0x3caf37,{'height':K,'radius':0x4,'width':_0x6c22cb,'fill':_0x223cf2}),_0x3caf37[_0x2b8248(0x229)]='#FFF';const _0xdcc60b=re,_0x5c934f=K-_t,_0x31f076=De-0x2*re;if(_0x570133>_0x31f076){let _0x34ac4e='',_0x222a3d=0x0;for(const _0x3befb6 of _0x257c28){const _0xf1e70=_0x3caf37[_0x2b8248(0x2c6)](_0x3befb6)['width'];if(_0x222a3d+_0xf1e70<=_0x31f076-_0x3caf37['measureText']('...')[_0x2b8248(0x386)])_0x34ac4e+=_0x3befb6,_0x222a3d+=_0xf1e70;else{_0x34ac4e+=_0x2b8248(0x324);break;}}_0x3caf37['fillText'](_0x34ac4e,_0xdcc60b,_0x5c934f);}else _0x3caf37[_0x2b8248(0x1ec)](_0x257c28,_0xdcc60b,_0x5c934f);_0x3caf37[_0x2b8248(0x41b)]();}[_0x151a7c(0x1a5)](_0x448a5c){const _0x5a262e=_0x151a7c;te[_0x5a262e(0x3f3)](_0x448a5c,this);}}const oe=_0x151a7c(0x3ca),ut=_0x151a7c(0x382),dt=_0x151a7c(0x28a),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x151a7c(0x36e);class Ue{constructor(_0xd21ee2,_0x1d178a,_0x69eb3e,_0x3be158){const _0x410ca7=_0x151a7c;_(this,_0x410ca7(0x202),[]),_(this,_0x410ca7(0x1b3),null),_(this,_0x410ca7(0x32c),null),_(this,_0x410ca7(0x2d4),null),_(this,_0x410ca7(0x1cd),null),_(this,'_eventUnsubscribe',null),(this[_0x410ca7(0x35e)]=_0xd21ee2,this[_0x410ca7(0x1e4)]=_0x1d178a,this[_0x410ca7(0x406)]=_0x69eb3e,this[_0x410ca7(0x359)]=_0x3be158,this[_0x410ca7(0x1c2)]());}set[_0x151a7c(0x329)](_0x200e0b){const _0x4f41c2=_0x151a7c;_0x200e0b?(this['_anchorDot']&&this['_anchorDot'][_0x4f41c2(0x1d6)](),this[_0x4f41c2(0x32c)]&&this[_0x4f41c2(0x32c)][_0x4f41c2(0x1f4)]()):(this['_anchorDot']&&this[_0x4f41c2(0x2d4)][_0x4f41c2(0x1f4)](),this[_0x4f41c2(0x32c)]&&this['_textBubble'][_0x4f41c2(0x1d6)]());}[_0x151a7c(0x3a3)](){const _0x48a878=_0x151a7c;for(const _0x5cb6f7 of this[_0x48a878(0x202)])_0x5cb6f7[_0x48a878(0x3a3)]();this[_0x48a878(0x32c)]&&this['_textBubble'][_0x48a878(0x3a3)](),this[_0x48a878(0x2d4)]&&this[_0x48a878(0x2d4)][_0x48a878(0x3a3)](),this[_0x48a878(0x1b3)]&&this[_0x48a878(0x1b3)]['dispose'](),this[_0x48a878(0x2e8)]&&this[_0x48a878(0x2e8)]();}[_0x151a7c(0x1c2)](){const _0x2eb61f=_0x151a7c;var _0x3a3f35;const {_docSkeleton:_0x33be5d,_document:_0x296765}=this,{color:_0x49a28d,name:_0x701e85,ranges:_0x18c988}=this[_0x2eb61f(0x35e)],_0x37d91c=_0x296765[_0x2eb61f(0x19a)](),{docsLeft:_0x468ce2,docsTop:_0x4aa0f7}=_0x37d91c,_0x4a55d7=new b[(_0x2eb61f(0x37b))](_0x37d91c,_0x33be5d);for(const {startOffset:_0x1a5096,endOffset:_0x51ad63,rangeType:_0x2db4b7,segmentId:_0x5e590a,segmentPage:_0x4bbe00,collapsed:_0x363310,isActive:_0x5acd87}of _0x18c988){const _0x520192=_0x33be5d[_0x2eb61f(0x19b)](_0x1a5096,!0x0,_0x5e590a,_0x4bbe00);let _0x4cceb9=_0x33be5d['findNodePositionByCharIndex'](_0x51ad63,!0x0,_0x5e590a,_0x4bbe00);if(_0x4cceb9==null&&(_0x4cceb9=_0x33be5d['findNodePositionByCharIndex'](_0x51ad63-0x1,!0x1,_0x5e590a,_0x4bbe00)),_0x5acd87){const {contentBoxPointGroup:_0x1c3ff7}=_0x4a55d7['getRangePointData'](_0x4cceb9,_0x4cceb9);if(_0x1c3ff7[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x351)](_0x49a28d,_0x1c3ff7,_0x468ce2,_0x4aa0f7,_0x701e85),this['_eventUnsubscribe']=this[_0x2eb61f(0x3ad)]();}if(_0x520192&&_0x4cceb9){if(_0x2db4b7===a[_0x2eb61f(0x216)][_0x2eb61f(0x31a)]){const _0x28a6b8=new b[(_0x2eb61f(0x337))](_0x37d91c,_0x33be5d),{pointGroup:_0x4ac459}=(_0x3a3f35=_0x28a6b8[_0x2eb61f(0x2d1)](_0x520192,_0x4cceb9))!=null?_0x3a3f35:{};if(_0x4ac459==null||_0x4ac459[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x3ab)](_0x49a28d,_0x4ac459,_0x468ce2,_0x4aa0f7);}else{if(!_0x363310){const {borderBoxPointGroup:_0x29d4dc}=_0x4a55d7['getRangePointData'](_0x520192,_0x4cceb9);if(_0x29d4dc[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x3c6)](_0x49a28d,_0x29d4dc,_0x468ce2,_0x4aa0f7);}}}}}[_0x151a7c(0x351)](_0x2ef2b8,_0x4b3527,_0x5297ce,_0x572526,_0x3e73a0){const _0x2234d5=_0x151a7c,_0x216aa6=this['_getAnchorBounding'](_0x4b3527),{left:_0x3f4bce,top:_0x255116,height:_0x775695}=_0x216aa6,_0x443f39=this['_getScale'](),_0x571171=St/_0x443f39,_0x3b3581=new p[(_0x2234d5(0x27c))](oe+a['Tools']['generateRandomId'](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526,'height':_0x775695,'width':ft,'fill':_0x2ef2b8||p['getColor'](a[_0x2234d5(0x3f1)][_0x2234d5(0x392)],0x0),'strokeWidth':_0x571171,'stroke':It,'evented':!0x0});this['_anchor']=_0x3b3581,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x3b3581,b[_0x2234d5(0x1f1)]);const _0x2745d8=new p['Rect'](oe+a[_0x2234d5(0x2f1)][_0x2234d5(0x1a8)](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526-ae/0x2,'height':ae,'width':ae,'fill':_0x2ef2b8||p[_0x2234d5(0x41c)](a[_0x2234d5(0x3f1)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2ef2b8||p['getColor'](a[_0x2234d5(0x3f1)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x2745d8,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x2745d8,b[_0x2234d5(0x1f1)]);const _0x3d39f4=new te(oe+a[_0x2234d5(0x2f1)][_0x2234d5(0x1a8)](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526-K,'text':_0x3e73a0,'color':_0x2ef2b8});this['_textBubble']=_0x3d39f4,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x3d39f4,b[_0x2234d5(0x1f1)]),this['_hover']=!0x1;}[_0x151a7c(0x3ad)](){const _0x34755c=_0x151a7c,_0xf2875a=this[_0x34755c(0x1b3)][_0x34755c(0x2b8)][_0x34755c(0x1df)](()=>{const _0x3193aa=_0x34755c;this[_0x3193aa(0x329)]=!0x0;}),_0x374fab=this[_0x34755c(0x1b3)][_0x34755c(0x1f6)][_0x34755c(0x1df)](()=>{const _0x257304=_0x34755c;this[_0x257304(0x1cd)]&&clearTimeout(this['_hideTimer']),this[_0x257304(0x1cd)]=setTimeout(()=>{const _0x323d80=_0x257304;this[_0x323d80(0x329)]=!0x1;},0x7d0);});return()=>{const _0x3b213e=_0x34755c;_0xf2875a['unsubscribe'](),_0x374fab[_0x3b213e(0x3f4)]();};}[_0x151a7c(0x3c6)](_0x4c1ef5,_0xf8fc09,_0x2cbbc7,_0x14f248){const _0x3f1bf4=_0x151a7c,_0x50c4bb=new a[(_0x3f1bf4(0x412))](_0x4c1ef5)[_0x3f1bf4(0x323)](0.2)[_0x3f1bf4(0x3d9)](),_0x574ebb=new p[(_0x3f1bf4(0x3d0))](ut+a[_0x3f1bf4(0x2f1)][_0x3f1bf4(0x1a8)](k),{'pointsGroup':_0xf8fc09,'fill':_0x50c4bb||p[_0x3f1bf4(0x41c)](a['COLORS'][_0x3f1bf4(0x392)],0.2),'left':_0x2cbbc7,'top':_0x14f248,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f1bf4(0x202)][_0x3f1bf4(0x264)](_0x574ebb),this[_0x3f1bf4(0x1e4)][_0x3f1bf4(0x2a3)](_0x574ebb,b['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x3f4a1d,_0x17ffd6,_0x254cb1,_0x101465){const _0x4aa4e1=_0x151a7c,_0x988e97=new a['ColorKit'](_0x3f4a1d)[_0x4aa4e1(0x323)](0.2)['toRgbString'](),_0x202fd5=new p[(_0x4aa4e1(0x3d0))](dt+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x17ffd6,'fill':_0x988e97||p['getColor'](a[_0x4aa4e1(0x3f1)]['black'],0.2),'left':_0x254cb1,'top':_0x101465,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x202fd5),this['_scene']['addObject'](_0x202fd5,b[_0x4aa4e1(0x1f1)]);}[_0x151a7c(0x241)](_0x2d6894){const _0x37b776=_0x2d6894[0x0],_0x42726a=_0x37b776[0x0],_0x49b0ee=_0x37b776[0x2],{x:_0x4cd480,y:_0x517ed5}=_0x42726a,{x:_0x285182,y:_0x4539c7}=_0x49b0ee;return{'left':_0x4cd480,'top':_0x517ed5,'width':_0x285182-_0x4cd480,'height':_0x4539c7-_0x517ed5};}['_getScale'](){const _0x134a96=_0x151a7c,{scaleX:_0x354b9e,scaleY:_0x432049}=this[_0x134a96(0x1e4)]['getAncestorScale']();return Math['max'](_0x354b9e,_0x432049);}}var vt=Object[_0x151a7c(0x300)],gt=(_0x586eb0,_0x2be8ed,_0x1c66f8,_0xd44e58)=>{const _0xc2109b=_0x151a7c;for(var _0x133a62=_0xd44e58>0x1?void 0x0:_0xd44e58?vt(_0x2be8ed,_0x1c66f8):_0x2be8ed,_0x1545f2=_0x586eb0[_0xc2109b(0x3b3)]-0x1,_0x580002;_0x1545f2>=0x0;_0x1545f2--)(_0x580002=_0x586eb0[_0x1545f2])&&(_0x133a62=_0x580002(_0x133a62)||_0x133a62);return _0x133a62;},V=(_0x382d30,_0x128d1b)=>(_0x217dd5,_0x446858)=>_0x128d1b(_0x217dd5,_0x446858,_0x382d30);let ve=class extends a[_0x151a7c(0x2c2)]{constructor(_0x29d85c,_0x17a7df,_0x1a2876,_0x1420c3,_0x20f02b){const _0x430eec=_0x151a7c;super(),_(this,_0x430eec(0x1cc),[]),_(this,_0x430eec(0x415),[]),(this[_0x430eec(0x1a7)]=_0x29d85c,this[_0x430eec(0x2a0)]=_0x17a7df,this[_0x430eec(0x404)]=_0x1a2876,this[_0x430eec(0x357)]=_0x1420c3,this['_themeService']=_0x20f02b,this[_0x430eec(0x1c8)]());}[_0x151a7c(0x1c8)](){const _0x5494d5=_0x151a7c,_0x2b4a6c=this[_0x5494d5(0x1a7)]['unitId'],_0x148c6a=this['_docSkeletonManagerService'];this[_0x5494d5(0x2f6)](d[_0x5494d5(0x342)]([this[_0x5494d5(0x404)][_0x5494d5(0x1fa)](_0x2b4a6c),this['_themeService'][_0x5494d5(0x1d1)]])[_0x5494d5(0x271)]($['map'](([_0x57dab1,_0xfd4bde])=>({'skeleton':_0x148c6a[_0x5494d5(0x338)](),'cursors':[..._0x57dab1[_0x5494d5(0x2cd)]()][_0x5494d5(0x3a6)](_0x14a95d=>({..._0x14a95d,'color':_0xfd4bde[_0x14a95d['color']]}))})))[_0x5494d5(0x22b)](_0x197968=>{const _0x168490=_0x5494d5;if(this['_removeCollabCursors'](),_0x197968){const {skeleton:_0x7d459d,cursors:_0x514243}=_0x197968;this[_0x168490(0x395)](_0x7d459d,_0x514243);}})),this[_0x5494d5(0x21c)](),this['_initCommandExecutedListener']();}[_0x151a7c(0x395)](_0x1c30b9,_0x1c3c3a){const _0x825d62=_0x151a7c,{scene:_0x17f30f,mainComponent:_0x2bae90}=this[_0x825d62(0x1a7)],_0x3cc548=_0x1c3c3a[_0x825d62(0x33d)](_0x268213=>new Ue(_0x268213,_0x17f30f,_0x1c30b9,_0x2bae90));this[_0x825d62(0x1cc)]=_0x3cc548,this[_0x825d62(0x415)]=_0x1c3c3a;}[_0x151a7c(0x1e1)](){const _0x12fdb4=_0x151a7c;this[_0x12fdb4(0x2fb)]();const {scene:_0x129b5d,mainComponent:_0x190949}=this['_context'],_0x7b08be=this['_docSkeletonManagerService']['getSkeleton'](),_0x4a8259=this[_0x12fdb4(0x415)][_0x12fdb4(0x33d)](_0x1a94fe=>new Ue(_0x1a94fe,_0x129b5d,_0x7b08be,_0x190949));this[_0x12fdb4(0x1cc)]=_0x4a8259;}['_removeCollabCursors'](){const _0x3a9c6e=_0x151a7c;this[_0x3a9c6e(0x1cc)][_0x3a9c6e(0x2bd)](_0x4918e7=>_0x4918e7[_0x3a9c6e(0x3a3)]()),this[_0x3a9c6e(0x1cc)]=[];}[_0x151a7c(0x2cc)](){const _0x4f4a1e=_0x151a7c,_0x36d6df=[b[_0x4f4a1e(0x25b)]['id']];this[_0x4f4a1e(0x2f6)](this[_0x4f4a1e(0x357)]['onCommandExecuted'](_0x1b5deb=>{const _0x3f80bf=_0x4f4a1e;_0x36d6df[_0x3f80bf(0x2ab)](_0x1b5deb['id'])&&_0x1b5deb[_0x3f80bf(0x28e)][_0x3f80bf(0x1de)]===this[_0x3f80bf(0x1a7)][_0x3f80bf(0x1de)]&&this[_0x3f80bf(0x1e1)]();}));}[_0x151a7c(0x21c)](){const _0x10d2fc=_0x151a7c;this['disposeWithMe'](a['fromEventSubject'](this[_0x10d2fc(0x1a7)][_0x10d2fc(0x309)]['onTransformChange$'])[_0x10d2fc(0x271)]($[_0x10d2fc(0x296)](_0x347b14=>_0x347b14[_0x10d2fc(0x3fa)]===p[_0x10d2fc(0x1ed)][_0x10d2fc(0x1da)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x151a7c(0x2db)](Y[_0x151a7c(0x37e)])),V(0x2,a[_0x151a7c(0x2db)](x)),V(0x3,a['ICommandService']),V(0x4,a[_0x151a7c(0x2db)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x151a7c(0x297)]{constructor(_0x291203,_0x2dfd14){const _0x3aa7f9=_0x151a7c;super(_0x291203,_0x2dfd14),_(this,'_color'),_(this,_0x3aa7f9(0x339),!0x1),_(this,_0x3aa7f9(0x31d)),_(this,_0x3aa7f9(0x414),''),_(this,'_labelPosition',_0x3aa7f9(0x1fc)),_(this,_0x3aa7f9(0x280)),(_0x2dfd14&&this['setShapeProps'](_0x2dfd14),this[_0x3aa7f9(0x2b8)][_0x3aa7f9(0x1df)](()=>this[_0x3aa7f9(0x2ef)]({'hovered':!0x0})),this[_0x3aa7f9(0x1f6)][_0x3aa7f9(0x1df)](()=>this[_0x3aa7f9(0x2ef)]({'hovered':!0x1})));}[_0x151a7c(0x2ef)](_0x15a753){const _0x1b079d=_0x151a7c;var _0x2a805e,_0x3751c4,_0x547f6c,_0x7df6b7,_0x2a9e1d,_0x1a8f3b;this['_color']=(_0x2a805e=_0x15a753[_0x1b079d(0x203)])!=null?_0x2a805e:this[_0x1b079d(0x3d3)],this[_0x1b079d(0x339)]=(_0x3751c4=_0x15a753[_0x1b079d(0x2b1)])!=null?_0x3751c4:this[_0x1b079d(0x339)],this[_0x1b079d(0x31d)]=(_0x547f6c=_0x15a753[_0x1b079d(0x416)])!=null?_0x547f6c:this[_0x1b079d(0x31d)],this[_0x1b079d(0x414)]=(_0x7df6b7=_0x15a753['name'])!=null?_0x7df6b7:this[_0x1b079d(0x414)],this[_0x1b079d(0x292)]=(_0x2a9e1d=_0x15a753[_0x1b079d(0x2c3)])!=null?_0x2a9e1d:this[_0x1b079d(0x292)],this['_backgroundColor']=(_0x1a8f3b=_0x15a753[_0x1b079d(0x1b5)])!=null?_0x1a8f3b:this[_0x1b079d(0x280)],this[_0x1b079d(0x353)]({'width':_0x15a753[_0x1b079d(0x386)],'height':_0x15a753['height']});}[_0x151a7c(0x244)](_0x3ac218){const _0x3ec6d2=_0x151a7c,{row:_0xf3b5ab,column:_0x338a59}=_0x3ac218;if(_0xf3b5ab>=this['_range'][_0x3ec6d2(0x2c8)]&&_0xf3b5ab<=this[_0x3ec6d2(0x31d)]['endRow']&&_0x338a59>=this['_range'][_0x3ec6d2(0x26f)]&&_0x338a59<=this['_range'][_0x3ec6d2(0x2f7)]){this[_0x3ec6d2(0x2ef)]({'hovered':!0x0});return;}this[_0x3ec6d2(0x2ef)]({'hovered':!0x1});}[_0x151a7c(0x371)](_0x13dd1a){return!0x1;}[_0x151a7c(0x1a5)](_0x51bfd8){const _0x4eb7d6=_0x151a7c;p[_0x4eb7d6(0x27c)][_0x4eb7d6(0x3f3)](_0x51bfd8,{'width':this[_0x4eb7d6(0x386)],'height':this[_0x4eb7d6(0x233)],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4eb7d6(0x280)]}),this[_0x4eb7d6(0x339)]&&(_0x51bfd8['save'](),_0x51bfd8[_0x4eb7d6(0x281)](0x1,0x0,0x0,0x1,this['width'],this[_0x4eb7d6(0x292)]==='bottom'?0x0:-0x14),te[_0x4eb7d6(0x3f3)](_0x51bfd8,{'text':this['_name'],'color':this[_0x4eb7d6(0x3d3)]}),_0x51bfd8[_0x4eb7d6(0x41b)]());}}var pt=Object[_0x151a7c(0x300)],bt=(_0x4e57e3,_0x2657bc,_0x680df5,_0x2b21d2)=>{const _0x489b64=_0x151a7c;for(var _0x496524=_0x2b21d2>0x1?void 0x0:_0x2b21d2?pt(_0x2657bc,_0x680df5):_0x2657bc,_0xda89a8=_0x4e57e3[_0x489b64(0x3b3)]-0x1,_0x136575;_0xda89a8>=0x0;_0xda89a8--)(_0x136575=_0x4e57e3[_0xda89a8])&&(_0x496524=_0x136575(_0x496524)||_0x496524);return _0x496524;},ce=(_0xbebc09,_0x2f80cd)=>(_0x5589e2,_0x16b1df)=>_0x2f80cd(_0x5589e2,_0x16b1df,_0xbebc09);const Et=0x1389;let ge=class extends a[_0x151a7c(0x2c2)]{constructor(_0x120cd8,_0x3fc2de,_0x25995f,_0x2e412b){const _0x4e45fb=_0x151a7c;super(),_(this,_0x4e45fb(0x415),new Set()),_(this,_0x4e45fb(0x218),null),(this[_0x4e45fb(0x1a7)]=_0x120cd8,this[_0x4e45fb(0x313)]=_0x3fc2de,this['_collabCursorController']=_0x25995f,this[_0x4e45fb(0x26e)]=_0x2e412b,this['_init']());}[_0x151a7c(0x1c8)](){const _0x3179d1=_0x151a7c;this[_0x3179d1(0x313)]['currentSkeleton$']['pipe']($[_0x3179d1(0x407)](this['dispose$']),$[_0x3179d1(0x39d)](_0x385170=>{const _0x5bb755=_0x3179d1;if(_0x385170){const _0x257017=_0x385170[_0x5bb755(0x273)];return d[_0x5bb755(0x342)](this[_0x5bb755(0x404)][_0x5bb755(0x1fa)](this[_0x5bb755(0x1a7)][_0x5bb755(0x1de)]),this[_0x5bb755(0x26e)][_0x5bb755(0x1d1)])[_0x5bb755(0x271)]($['map'](([_0x48d1db,_0x20f3f7])=>{const _0x835768=_0x5bb755,_0xe69e3e=new Map();return _0x48d1db[_0x835768(0x2bd)]((_0xabc206,_0x457458)=>{const _0x58eede=_0x835768;if(_0xabc206[_0x58eede(0x1b8)]===_0x257017){const _0x56f064={..._0xabc206};_0x56f064[_0x58eede(0x203)]=_0x20f3f7[_0xabc206[_0x58eede(0x203)]],_0xe69e3e[_0x58eede(0x2a4)](_0x457458,_0x56f064);}}),{'skeleton':_0x385170,'cursors':_0xe69e3e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3179d1(0x22b)](({skeleton:_0x788dd9,cursors:_0x54a71f})=>{const _0x195862=_0x3179d1;this[_0x195862(0x2fb)](),_0x788dd9&&this[_0x195862(0x395)](_0x788dd9,_0x54a71f);}),this['_sheetSkeletonManagerService'][_0x3179d1(0x1d9)][_0x3179d1(0x22b)](_0x3d5d65=>{const _0x3467c8=_0x3179d1;if(_0x3d5d65==null)return;const {skeleton:_0x5d9464}=_0x3d5d65,{scene:_0x47471c}=this[_0x3467c8(0x1a7)];_0x47471c['onPointerMove$'][_0x3467c8(0x1df)](a[_0x3467c8(0x36c)](_0x26e9e5=>{const _0x24e06d=_0x3467c8;var _0x5dcffb,_0x586d9a;const {offsetX:_0x61e906,offsetY:_0x33cbde}=_0x26e9e5,{x:_0x3b04eb,y:_0x4fb6fb}=_0x47471c[_0x24e06d(0x2c4)](p[_0x24e06d(0x2df)][_0x24e06d(0x1c9)]([_0x61e906,_0x33cbde])),{scaleX:_0x56690d,scaleY:_0x404687}=_0x47471c[_0x24e06d(0x2e3)](),_0x5bc46d=_0x47471c[_0x24e06d(0x349)](p[_0x24e06d(0x23d)][_0x24e06d(0x380)]),_0x49f4c9=_0x47471c['getVpScrollXYInfoByPosToVp'](p[_0x24e06d(0x2df)]['FromArray']([_0x3b04eb,_0x4fb6fb]),_0x5bc46d),_0x13b85c=_0x5d9464[_0x24e06d(0x3d6)](_0x61e906,_0x33cbde,_0x56690d,_0x404687,_0x49f4c9);((_0x5dcffb=this[_0x24e06d(0x218)])==null?void 0x0:_0x5dcffb[_0x24e06d(0x348)])===_0x13b85c[_0x24e06d(0x348)]&&((_0x586d9a=this['_lastPointer'])==null?void 0x0:_0x586d9a['row'])===_0x13b85c['row']||this[_0x24e06d(0x415)][_0x24e06d(0x2bd)](_0x4a762a=>{const _0x236146=_0x24e06d;_0x4a762a[_0x236146(0x244)](_0x13b85c);});},0x64));});}[_0x151a7c(0x395)](_0x48ef07,_0x3385b6){const _0x1f8792=_0x151a7c;var _0x333eb3;const _0x3eacdc=(_0x333eb3=this[_0x1f8792(0x313)][_0x1f8792(0x200)]())==null?void 0x0:_0x333eb3[_0x1f8792(0x29d)];if(!_0x3eacdc)return;const _0x5f3bdd=this[_0x1f8792(0x199)]();if(!_0x5f3bdd)return;this[_0x1f8792(0x415)][_0x1f8792(0x2bd)](_0x4648a9=>{const _0x2e61ea=_0x1f8792;_0x4648a9[_0x2e61ea(0x257)]();});const {scene:_0x344878}=_0x5f3bdd,_0x5423fe=Tt(Array['from'](_0x3385b6[_0x1f8792(0x2cd)]()))[_0x1f8792(0x33d)](_0x2c0558=>{const _0x1ff08e=_0x1f8792,{color:_0x192ac8,range:_0x41028d,name:_0x497cbb,selection:_0x2d1be3,sheetID:_0x565ac7}=_0x2c0558,{startColumn:_0x7b24ff,startRow:_0x335510,endColumn:_0x3772dd,endRow:_0x291672}=_0x41028d,_0x3acf8e=G[_0x1ff08e(0x20d)](_0x335510,_0x7b24ff,_0x344878,_0x3eacdc),_0x2e7464=G[_0x1ff08e(0x20d)](_0x291672,_0x3772dd,_0x344878,_0x3eacdc),{columnHeaderHeightAndMarginTop:_0x1af5ed}=_0x3eacdc,{startX:_0x35f7f6,startY:_0x10c0cf}=_0x3acf8e,{endX:_0x5dba4e,endY:_0x30830d}=_0x2e7464,_0x5c624f=_0x5dba4e-_0x35f7f6,_0x315920=_0x30830d-_0x10c0cf,_0x333dd1={'labelPosition':_0x10c0cf-_0x1af5ed>=K?_0x1ff08e(0x1fc):'bottom','sheetID':_0x565ac7,'range':_0x41028d,'color':_0x192ac8,'name':_0x497cbb,'selection':_0x2d1be3,'left':_0x35f7f6,'top':_0x10c0cf,'width':_0x5c624f,'height':_0x315920,'evented':!0x1,'zIndex':Et};return new Ae(_0x497cbb,_0x333dd1);});_0x344878[_0x1f8792(0x1cb)](_0x5423fe,mt),this[_0x1f8792(0x415)]=new Set(_0x5423fe);}[_0x151a7c(0x2fb)](){const _0x86ab57=_0x151a7c;var _0x2ac5f4;(_0x2ac5f4=this[_0x86ab57(0x415)])==null||_0x2ac5f4['forEach'](_0x229ec6=>_0x229ec6[_0x86ab57(0x3a3)]());}[_0x151a7c(0x199)](){const _0x1e014a=_0x151a7c;return G[_0x1e014a(0x283)](this['_context'][_0x1e014a(0x2f4)],this['_context']);}};ge=bt([ce(0x1,a[_0x151a7c(0x2db)](G[_0x151a7c(0x391)])),ce(0x2,a[_0x151a7c(0x2db)](x)),ce(0x3,a[_0x151a7c(0x2db)](a[_0x151a7c(0x312)]))],ge);function Tt(_0x272928){const _0x3aa976=_0x151a7c,_0x2738f9=new Map();return _0x272928[_0x3aa976(0x2bd)](_0x1b3a05=>{const _0x51c237=_0x3aa976;if(_0x2738f9['has'](_0x1b3a05['selection'])){const _0x5520c0=_0x2738f9[_0x51c237(0x35b)](_0x1b3a05[_0x51c237(0x206)]);_0x5520c0[_0x51c237(0x2b5)]+=',\x20'+_0x1b3a05[_0x51c237(0x2b5)];}else _0x2738f9[_0x51c237(0x2a4)](_0x1b3a05['selection'],_0x1b3a05);}),Array[_0x3aa976(0x38e)](_0x2738f9['values']());}var E=function(){const _0x3c97dd=_0x151a7c;return E=Object['assign']||function(_0x5512ca){const _0x27dbb4=_0x2459;for(var _0x333f71,_0x3bcd3d=0x1,_0x4fddfe=arguments[_0x27dbb4(0x3b3)];_0x3bcd3d<_0x4fddfe;_0x3bcd3d++){_0x333f71=arguments[_0x3bcd3d];for(var _0x47b4f5 in _0x333f71)Object[_0x27dbb4(0x1ff)][_0x27dbb4(0x3c0)][_0x27dbb4(0x3fc)](_0x333f71,_0x47b4f5)&&(_0x5512ca[_0x47b4f5]=_0x333f71[_0x47b4f5]);}return _0x5512ca;},E[_0x3c97dd(0x24a)](this,arguments);},Ot=function(_0x172db2,_0x549aca){const _0x4552c9=_0x151a7c;var _0x367c3b={};for(var _0x2a3d77 in _0x172db2)Object[_0x4552c9(0x1ff)][_0x4552c9(0x3c0)][_0x4552c9(0x3fc)](_0x172db2,_0x2a3d77)&&_0x549aca[_0x4552c9(0x3e7)](_0x2a3d77)<0x0&&(_0x367c3b[_0x2a3d77]=_0x172db2[_0x2a3d77]);if(_0x172db2!=null&&typeof Object[_0x4552c9(0x2ad)]==_0x4552c9(0x314)){for(var _0x342109=0x0,_0x2a3d77=Object[_0x4552c9(0x2ad)](_0x172db2);_0x342109<_0x2a3d77[_0x4552c9(0x3b3)];_0x342109++)_0x549aca[_0x4552c9(0x3e7)](_0x2a3d77[_0x342109])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x4552c9(0x3fc)](_0x172db2,_0x2a3d77[_0x342109])&&(_0x367c3b[_0x2a3d77[_0x342109]]=_0x172db2[_0x2a3d77[_0x342109]]);}return _0x367c3b;},be=M[_0x151a7c(0x1b2)](function(_0x38b368,_0x23fbbd){const _0x8310f9=_0x151a7c;var _0x2e6685=_0x38b368[_0x8310f9(0x2d5)],_0x570bf6=_0x38b368['id'],_0x303134=_0x38b368[_0x8310f9(0x367)],_0x45beba=_0x38b368['extend'],_0xb1be25=Ot(_0x38b368,[_0x8310f9(0x2d5),'id','className','extend']),_0x4018b9=_0x8310f9(0x1be)[_0x8310f9(0x20e)](_0x570bf6,'\x20')[_0x8310f9(0x20e)](_0x303134||'')[_0x8310f9(0x3e0)](),_0x35bb32=M[_0x8310f9(0x1af)]('_'[_0x8310f9(0x20e)](Ut()));return ye(_0x2e6685,''[_0x8310f9(0x20e)](_0x570bf6),{'defIds':_0x2e6685[_0x8310f9(0x286)],'idSuffix':_0x35bb32[_0x8310f9(0x25d)]},E({'ref':_0x23fbbd,'className':_0x4018b9},_0xb1be25),_0x45beba);});function ye(_0x59334c,_0x44b164,_0x495286,_0x67ff46,_0x402ee2){const _0x1bd2b9=_0x151a7c;return M['createElement'](_0x59334c['tag'],E(E({'key':_0x44b164},Rt(_0x59334c,_0x495286,_0x402ee2)),_0x67ff46),(Dt(_0x59334c,_0x495286)['children']||[])[_0x1bd2b9(0x33d)](function(_0x26cc73,_0x48d51b){const _0x532848=_0x1bd2b9;return ye(_0x26cc73,''[_0x532848(0x20e)](_0x44b164,'-')[_0x532848(0x20e)](_0x59334c[_0x532848(0x346)],'-')[_0x532848(0x20e)](_0x48d51b),_0x495286,void 0x0,_0x402ee2);}));}function Rt(_0xec290d,_0x1955b2,_0x8c9768){const _0x4f4f7b=_0x151a7c;var _0x1e79a9=E({},_0xec290d['attrs']);_0x8c9768!=null&&_0x8c9768[_0x4f4f7b(0x356)]&&_0x1e79a9[_0x4f4f7b(0x36a)]==='colorChannel1'&&(_0x1e79a9[_0x4f4f7b(0x36a)]=_0x8c9768[_0x4f4f7b(0x356)]),_0xec290d['tag']===_0x4f4f7b(0x23f)&&_0x1e79a9['id']&&(_0x1e79a9['id']=_0x1e79a9['id']+_0x1955b2[_0x4f4f7b(0x225)]),Object['entries'](_0x1e79a9)[_0x4f4f7b(0x2bd)](function(_0x683803){const _0x14385d=_0x4f4f7b;var _0x4f026f=_0x683803[0x0],_0x5d9a20=_0x683803[0x1];_0x4f026f===_0x14385d(0x23f)&&typeof _0x5d9a20==_0x14385d(0x20f)&&(_0x1e79a9[_0x4f026f]=_0x5d9a20['replace'](/url\(#(.*)\)/,_0x14385d(0x2a1)['concat'](_0x1955b2[_0x14385d(0x225)],')')));});var _0x334404=_0x1955b2[_0x4f4f7b(0x286)];return!_0x334404||_0x334404[_0x4f4f7b(0x3b3)]===0x0||(_0xec290d['tag']==='use'&&_0x1e79a9[_0x4f4f7b(0x1dc)]&&(_0x1e79a9['xlink:href']=_0x1e79a9['xlink:href']+_0x1955b2[_0x4f4f7b(0x225)]),Object[_0x4f4f7b(0x1e9)](_0x1e79a9)['forEach'](function(_0x3d548b){const _0x4b3db8=_0x4f4f7b;var _0x40bc75=_0x3d548b[0x0],_0x4fba8d=_0x3d548b[0x1];typeof _0x4fba8d==_0x4b3db8(0x20f)&&(_0x1e79a9[_0x40bc75]=_0x4fba8d['replace'](/url\(#(.*)\)/,_0x4b3db8(0x2a1)[_0x4b3db8(0x20e)](_0x1955b2[_0x4b3db8(0x225)],')')));})),_0x1e79a9;}function Dt(_0xc1c3e6,_0x5c750e){const _0x535541=_0x151a7c;var _0x8c3b69,_0x173fdf=_0x5c750e[_0x535541(0x286)];return!_0x173fdf||_0x173fdf[_0x535541(0x3b3)]===0x0?_0xc1c3e6:_0xc1c3e6[_0x535541(0x346)]===_0x535541(0x298)&&(!((_0x8c3b69=_0xc1c3e6['children'])===null||_0x8c3b69===void 0x0)&&_0x8c3b69[_0x535541(0x3b3)])?E(E({},_0xc1c3e6),{'children':_0xc1c3e6[_0x535541(0x231)][_0x535541(0x33d)](function(_0x158bdb){const _0x3847d2=_0x535541;return typeof _0x158bdb[_0x3847d2(0x1eb)]['id']==_0x3847d2(0x20f)&&_0x173fdf&&_0x173fdf[_0x3847d2(0x3e7)](_0x158bdb[_0x3847d2(0x1eb)]['id'])>-0x1?E(E({},_0x158bdb),{'attrs':E(E({},_0x158bdb[_0x3847d2(0x1eb)]),{'id':_0x158bdb[_0x3847d2(0x1eb)]['id']+_0x5c750e[_0x3847d2(0x225)]})}):_0x158bdb;})}):_0xc1c3e6;}function Ut(){const _0x5d2980=_0x151a7c;return Math[_0x5d2980(0x1d5)]()[_0x5d2980(0x208)](0x24)[_0x5d2980(0x3cf)](0x2,0x8);}be[_0x151a7c(0x291)]='UniverIcon';var Nt={'tag':_0x151a7c(0x260),'attrs':{'fill':'none','viewBox':_0x151a7c(0x248),'width':_0x151a7c(0x22e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x151a7c(0x303)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'stroke':_0x151a7c(0x2ce),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x151a7c(0x3e8),'strokeWidth':1.2}}]},{'tag':_0x151a7c(0x298),'attrs':{},'children':[{'tag':_0x151a7c(0x3fe),'attrs':{'id':_0x151a7c(0x2ca)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'fill':_0x151a7c(0x27b),'d':_0x151a7c(0x32e)}}]}]}],'defIds':[_0x151a7c(0x2ca)]},$e=M['forwardRef'](function(_0x51ce39,_0x1e8ba0){const _0xb69a8b=_0x151a7c;return M['createElement'](be,Object[_0xb69a8b(0x1f2)]({},_0x51ce39,{'id':_0xb69a8b(0x26a),'ref':_0x1e8ba0,'icon':Nt}));});$e['displayName']='OffLineSingle';var Mt={'tag':_0x151a7c(0x260),'attrs':{'fill':_0x151a7c(0x24d),'viewBox':_0x151a7c(0x1d7),'width':_0x151a7c(0x22e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x151a7c(0x228),'attrs':{'stroke':_0x151a7c(0x2ce),'d':_0x151a7c(0x397),'strokeLinecap':_0x151a7c(0x3e8),'strokeLinejoin':_0x151a7c(0x3e8),'strokeWidth':1.2}}]},{'tag':_0x151a7c(0x298),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x151a7c(0x320)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'fill':_0x151a7c(0x27b),'d':'M0\x200H16V16H0z','transform':_0x151a7c(0x361)}}]}]}],'defIds':[_0x151a7c(0x320)]},xe=M[_0x151a7c(0x1b2)](function(_0x191a8d,_0x8ad816){const _0x5cf6df=_0x151a7c;return M[_0x5cf6df(0x409)](be,Object[_0x5cf6df(0x1f2)]({},_0x191a8d,{'id':_0x5cf6df(0x2cf),'ref':_0x8ad816,'icon':Mt}));});xe[_0x151a7c(0x291)]=_0x151a7c(0x37d);const Lt=_0x151a7c(0x3f0),Pt=_0x151a7c(0x373),wt=_0x151a7c(0x259),At='univer-online',yt=_0x151a7c(0x32f),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x7bd5){const _0x15af3b=_0x151a7c;switch(_0x7bd5){case u[_0x15af3b(0x354)]['OFFLINE']:return'collabStatus.offline';case u[_0x15af3b(0x354)][_0x15af3b(0x252)]:return'collabStatus.conflict';case u[_0x15af3b(0x354)][_0x15af3b(0x242)]:return _0x15af3b(0x268);case u['CollaborationStatus'][_0x15af3b(0x19e)]:return'collabStatus.notCollab';case u[_0x15af3b(0x354)][_0x15af3b(0x30a)]:case u[_0x15af3b(0x354)][_0x15af3b(0x2af)]:return'collabStatus.syncing';case u[_0x15af3b(0x354)]['SYNCED']:case u[_0x15af3b(0x354)][_0x15af3b(0x3d8)]:return'collabStatus.synced';}}function je(_0x54bfe4){const _0x5cf939=_0x151a7c,{status$:_0x4d7b0a}=_0x54bfe4,_0x4d9163=O[_0x5cf939(0x3aa)](_0x4d7b0a,u[_0x5cf939(0x354)][_0x5cf939(0x19e)]),_0x3d9a5d=O['useDependency'](a[_0x5cf939(0x1ea)]),_0x51f260=O['useDependency'](u[_0x5cf939(0x3dd)]),_0x299a56=_0x4d9163!==u['CollaborationStatus'][_0x5cf939(0x370)],_0x507e62=_0x3d9a5d['t']($t(_0x4d9163)),_0x3093d3=T[_0x5cf939(0x27e)](H['onlineStatus'],{[H[_0x5cf939(0x307)]]:_0x299a56,[H['offline']]:!_0x299a56}),_0x4c3d0e=_0x299a56?P[_0x5cf939(0x2fd)](xe,{}):P[_0x5cf939(0x2fd)]($e,{}),_0xfccba8=M[_0x5cf939(0x1bf)](()=>{_0x299a56||_0x51f260['reconnect']();},[_0x299a56,_0x51f260]);function _0x2ed29d(){const _0x2070a2=_0x5cf939;return P[_0x2070a2(0x374)](_0x2070a2(0x3c3),{'className':T[_0x2070a2(0x27e)](_0x3093d3,_0x2070a2(0x39b)),'onClick':_0xfccba8,'children':[P['jsx']('div',{'className':H[_0x2070a2(0x3a4)],'children':_0x4c3d0e}),P[_0x2070a2(0x2fd)](_0x2070a2(0x3c3),{'className':H[_0x2070a2(0x1b0)],'children':_0x507e62})]});}return _0x299a56?_0x2ed29d():P[_0x5cf939(0x2fd)](T['Tooltip'],{'title':_0x3d9a5d['t'](_0x5cf939(0x304)),'children':_0x2ed29d()});}var xt=Object[_0x151a7c(0x300)],jt=(_0x3d785f,_0x9e2d0b,_0x2b1315,_0x3488aa)=>{const _0x5d4cc9=_0x151a7c;for(var _0x500212=_0x3488aa>0x1?void 0x0:_0x3488aa?xt(_0x9e2d0b,_0x2b1315):_0x9e2d0b,_0xd45593=_0x3d785f[_0x5d4cc9(0x3b3)]-0x1,_0x3888ca;_0xd45593>=0x0;_0xd45593--)(_0x3888ca=_0x3d785f[_0xd45593])&&(_0x500212=_0x3888ca(_0x500212)||_0x500212);return _0x500212;},X=(_0x833d25,_0x7134a8)=>(_0x17cdae,_0x192c8c)=>_0x7134a8(_0x17cdae,_0x192c8c,_0x833d25);exports[_0x151a7c(0x3b6)]=class extends a['Disposable']{constructor(_0x288161,_0x989683,_0x4cd516,_0x3886e3){const _0x38450b=_0x151a7c;super(),_(this,'_status$',new d[(_0x38450b(0x1dd))](u[_0x38450b(0x354)][_0x38450b(0x19e)])),(this['_univerInstanceService']=_0x288161,this[_0x38450b(0x388)]=_0x989683,this[_0x38450b(0x343)]=_0x4cd516,this['_uiPartsService']=_0x3886e3,this['_initStatusComponent'](),this[_0x38450b(0x3db)]());}[_0x151a7c(0x3db)](){const _0x5a1da3=_0x151a7c;this[_0x5a1da3(0x2f6)](this['_univerInstanceService'][_0x5a1da3(0x245)][_0x5a1da3(0x271)](d[_0x5a1da3(0x39d)](()=>{const _0xbc6bd4=_0x5a1da3,_0x11c253=this['_univerInstanceService'][_0xbc6bd4(0x34c)]();return _0x11c253?this[_0xbc6bd4(0x343)]['getCollabEntity$'](_0x11c253['getUnitId']()):d['of'](null);}),d[_0x5a1da3(0x39d)](_0x1c69c4=>_0x1c69c4?_0x1c69c4[_0x5a1da3(0x2a8)]:d['of'](u[_0x5a1da3(0x354)][_0x5a1da3(0x19e)])))[_0x5a1da3(0x22b)](_0xfee4a9=>{const _0x335290=_0x5a1da3;this[_0x335290(0x253)]['next'](_0xfee4a9);}));}[_0x151a7c(0x230)](){const _0x1c5465=_0x151a7c;this[_0x1c5465(0x2f6)](this[_0x1c5465(0x1e2)][_0x1c5465(0x3bf)](O['BuiltInUIPart']['HEADER_MENU'],()=>O['connectInjector'](Bt({'status$':this[_0x1c5465(0x253)][_0x1c5465(0x33c)]()}),this['_injector'])));}},exports[_0x151a7c(0x3b6)]=jt([X(0x0,a[_0x151a7c(0x1e8)]),X(0x1,a['Inject'](a[_0x151a7c(0x34d)])),X(0x2,a[_0x151a7c(0x2db)](u[_0x151a7c(0x19d)])),X(0x3,O['IUIPartsService'])],exports[_0x151a7c(0x3b6)]);function _0x448a(){const _0x40c311=['getSheetId','_document','CollaborationSocketService','get','_startSheetCollabCursor','runRefRangeMutations','_cursor','_dataLoaderService','handleDeleteRangeMoveLeft','translate(.97)','distinctUntilChanged','_id','UniverCollaborationClientUIPlugin','getParam','UniverCollaborationClientPlugin','className','Subject','_unitOnClients','fill','isEditing','debounce','sessionStatus$','rgba(255,\x20255,\x20255,\x200.01)','SUBMIT_CHANGESET_TIMEOUT','OFFLINE','triggerDblclick','CollaborationEvent','univer-online-status-title','jsxs','_session','_roomMembers$','addHandlerCallback','UNIVER_DOC','EffectRefRangId','@univerjs/network','NodePositionConvertToCursor','fromEvent','OnLineSingle','DocSkeletonManagerService','searchParams','VIEW_MAIN','setStateCache','collab-text-range-','4908792FzGNqT','m1Prime','MoveRangeCommandId','width','_scheduleHeartbeat','_injector','error','CollaborationStatusDisplay','_clearOtherTimers','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','undoState','from','Disposable','_cursorInfo$','SheetSkeletonManagerService','black','_doCreateSocket','TEXT','_updateCollabCursors','getCurrentRevOfUnit','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','rxjs','syncEditingCollabCursor','DisposableCollection','univer-flex\x20univer-items-center','WebSocketService','switchMap','ICommandService','_docTransformSelectionsService','_imageIoService','jiqing500','_entities','dispose','onlineStatusIcon','min','flatMap','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_IMPORT_SIZE_EXCEEDED','RemoveColCommandId','useObservable','_drawRectRange','getItem','_handleHover','@univerjs/docs-ui','getMember','_notificationService','HTTPService','runId','length','SOCKET_FAILED_RETRY','ONLINE','DesktopCollaborationStatusDisplayController','DataLoaderService','font','getUnitStatus$','DocCollaborationEntity','with','isActive','deepClone','SessionStatus','registerComponent','hasOwnProperty','roomMembers','removeParam','div','storage','UNIVER_SHEET','_drawTextRange','_transformUndoRedoStack','Failed','onCommandExecuted','collab-text-anchor-','getLocalCacheKey','subunit','_renderManagerService','MUTATION','substring','RegularPolygon','mapTo','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_color','ranges','shareReplay','getCellPositionByOffset','deserializeRangeWithSheet','PENDING','toRgbString','OTHER_CLIENT_EDITING','_initStatusListener','CollaborationDataLoaderController','CollaborationSessionService','@univerjs/engine-formula','getUndoRedoMutationParamsCache','trim','WebBrowserSingleActiveUnitService','_online','YUUMI_RATE_OVER_LIMIT','_configService','Error','_disabled','indexOf','round','LICENSE_EXPORT_SIZE_EXCEEDED','cursorInfo$','IDocClipboardService','_handleHeartbeatEvent','complete','OTHER_CLIENTS_EDITING','_colorIndex','univer-online-status-icon','COLORS','_onRefRangeChange','drawWith','unsubscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_toggleOnline','_ensureSubject','_send','_memberService','type','stringify','call','session.connection-failed','clipPath','has','DeleteRangeMoveLeftCommandId','_getSessionTicket','selections','_revisionService','_collabCursorController','_instanceService','_docSkeleton','takeUntil','onStarting','createElement','IRenderManagerService','editingUnit','INVALID_ARGUMENT','427497JxVwRZ','executeCommand','Unknown\x20user','RefRangeService','InsertRangeMoveRightCommandId','ColorKit','search','_name','_cursors','range','getDocRanges','DocIMEInputManagerService','SetWorksheetActivateCommand','beginPath','restore','getColor','transformRemoteChangeset','symbol','Optional','getConfig','_getSheetObject','getOffsetConfig','findNodePositionByCharIndex','YUUMI_UNABLE_LOAD_URL','CollaborationController','NOT_COLLAB','_httpService','_registerRenderDependencies','_scheduleSaving','createSocket','@univerjs/sheets-ui','WebURLService','_draw','_removeClearOtherTimer','_context','generateRandomId','onRendered','handleMoveRange','_docStateChangeManagerService','loadOfflineData','APPLY_REJECT','getValue','useRef','onlineStatusTitle','react','forwardRef','_anchor','IMessageService','backgroundColor','save','_colorAssignService','sheetID','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unshift','ILocalStorageService','_cachedData','UnitStatus','univerjs-icon\x20univerjs-icon-','useCallback','getTypeOfUnitDisposed$','2402598DIEXRf','_render','DEFAULT_WS_SESSION_TICKET_URL','SNAPSHOT_INVALID_SNAPSHOT','saveOfflineData','@univerjs/design','gold400','_init','FromArray','MessageType','addObjects','_cursorShapes','_hideTimer','LOCAL_CACHE_INTERVAL_KEY','_updateURLWithCurrentState','transformSelections','currentTheme$','InsertRowCommandId','doc.mutation.rich-text-editing','verdancy600','random','hide','0\x200\x2017\x2016','_saveTaskMap','currentSkeleton$','resize','invokeId','xlink:href','BehaviorSubject','unitId','subscribeEvent','USERS_LEAVE','_refreshCollabCursors','_uiPartsService','memberID','_scene','transformMutationsWithChangeset','size','_logService','IUniverInstanceService','entries','LocaleService','attrs','fillText','TRANSFORM_CHANGE_OBSERVABLE_TYPE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','toStringTag','_urlService','TEXT_RANGE_LAYER_INDEX','assign','PY_RUNTIME_SCRIPT_ERROR','show','split','onPointerLeave$','ILogService','CONNECTOR_DATA_TOO_LARGE','CollaborationUIEventService','getCollabCursors$','@univerjs-pro/collaboration-client','top','APPLY_PERMISSION_DENIED','CHANGESET_REVISION_CONFILICT','prototype','getCurrent','getCurrentUnitForType','_shapes','color','COMPLETION_FINISHED','IRemoteInstanceService','selection','collaboration.closeRoom','toString','defineProperty','_transformHistoryAndStateStack','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','InsertRangeMoveDownCommandId','getCoordByCell','concat','string','subUnitId','getMemberID','YUUMI_URL_COL_OUT_OF_RANGE','clearInterval','_getSaveTimeout','_refRangeService','DOC_RANGE_TYPE','_onCursorDelete','_lastPointer','_syncEditingCollabCursorService','contains','_transformService','_initResize','requireSession','enableLocalCache','_saveCache','send','exhaustSavingTask','_initDependencies','SetTextSelectionsOperation','collabCursorState$','idSuffix','SheetsSelectionsService','_scheduleClearOtherTimer','path','fillStyle','INVITE_CODE_REQUIRED','subscribe','disposeUnit','merge','1em','_heartbeatTimer','_initStatusComponent','children','handleInsertRow','height','entityInit$','INTERNAL_ERROR','setTimeout','_config','1912412hEpUIA','@univerjs/sheets','handleIRemoveRow','_unitStatus','[CollaborationDataLoaderController]','SHEET_VIEWPORT_KEY','delete','mask','APPLY_DUPLICATED','_getAnchorBounding','FETCH_MISS','APPLY_REVISION_CONFILICT','onMouseMove','focused$','SetSelectionsOperation','getMergeData','0\x200\x2016\x2016','_collaborationUIEventService','apply','Plugin','_initEvent','none','LOGIN_FAILED','createInstance','newValue','INVALID_INVITE_CODE','CONFLICT','_status$','APPLY_NON_SEQUENTIAL_REVISION','docStateChange$','init','makeDirty','UPDATE_CURSOR','univer-online-status','setActiveRange','SetDocZoomRatioOperation','isTransformMutationsWithChangesetSuccess','current','pushState','@univerjs/ui','svg','source','_collabCursorState$','registerRenderModule','push','IURLService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','registerBeforeClose','collabStatus.fetchMiss','INVITE_CODE_ALREADY_BOUND','off-line-single','debug','updateOfflineData','_assignedColors','_themeService','startColumn','2483165kSEGmR','pipe','registerRefRange','sheetId','location','body','_docClipboardService','permission.content','NOT_FOUND','runOnServer','red300','#fff','Rect','ISocketService','clsx','getUnitId','_backgroundColor','transform','saveTaskMap','getSheetObject','IImageIoService','CollaborationUIEventId','defIds','moveTo','transformStateCache','_entityInit$','collab-rect-range-','EMAIL_HAS_BEEN_BOUND','assignAColorForMemberID','_onCursorUpdate','params','WECHAT_HAS_BEEN_BOUND','getCurrentSelections','displayName','_labelPosition','m2Prime','redoState','getStateCache','filter','Shape','defs','disableLocalCache','_handleJoinEvent','_updateSubUnitFromURLParams','INVITE_CODE_HAS_BEEN_UES','skeleton','result','_handleLeaveEvent','_docSkeletonManagerService','url(#$1','_messageService','addObject','set','find','UNDEFINED','_toggleOffline','status$','IConfigService','_updateLocalCursor','includes','cursorInfo','getOwnPropertySymbols','_setupBeforeClosingHandler','AWAITING_WITH_PENDING','setInterval','hovered','addEventListener','parse','debounceTime','name','_docSyncEditingCollabCursorService','ALREADY_EXISTS','onPointerEnter$','8116608NnggXS','imageSourceType','text','setItem','forEach','MOBILE_HAS_BEEN_BOUND','_initEntityListener','toDisposable','YUUMI_SUBSCRIPTION_NOT_FOUND','RxDisposable','labelPosition','getRelativeToViewportCoord','_localCacheService','measureText','Module','startRow','LICENSE_MAX_UNITS_EXCEEDED','off-line-single_clip0_910_343','ITransformService','_initCommandExecutedListener','values','currentColor','on-line-single','setConfig','getRangePointData','popstate','isArray','_anchorDot','icon','sessionTicket','CLOSE_ROOM','collaboration.single-unit.warning','unload','addClipboardHook','Inject','urlChange$','transformIMECache','pluginName','Vector2','application/json','isTransformMutationFailure','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getAncestorScale','JOIN_ROOM_FAILED','_handleEvent','SheetCollabCursorShape','clearTimeout','_eventUnsubscribe','arc','_createSocketURL','data','add','getTypeOfUnitAdded$','_collabSessionService','setShapeProps','_selfUnitIDs','Tools','LOCAL_CACHE_INTERVAL','ILocalCacheService','unit','getRenderById','disposeWithMe','endColumn','UNRECOGNIZED','@univerjs/engine-render','_transformPreviousActiveRange','_removeCollabCursors','executionId','jsx','USER_NOT_INVITED_CODE','history','getOwnPropertyDescriptor','_setupSubUnitSync','CommandType','url(#off-line-single_clip0_910_343)','collab-client.tooltip.reconnect','replaceState','ENSURE_SNAPSHOT_EXECUTION','online','_localStorageService','engine','AWAITING','NO_OTHER_CLIENTS_EDITING','Rectangle','handleInsertCol','react/jsx-runtime','permission.title','then','evenodd','ThemeService','_sheetSkeletonManagerService','function','_getMergeRange','activeSheet$','_localeService','blue400','UniverInstanceType','RECT','eventID','_startDocCollabCursor','_range','textRanges','key','on-line-single_clip0_910_349','roomMembers$','event$','setAlpha','...','some','dispose$','startsWith','unitID','_hover','PERMISSION_DENIED','Warning','_textBubble','_registerDependencies','M0\x200H16V16H0z','univer-offline','rxjs/operators','getSheetBySheetId','mutations','handleInsertRangeMoveDown','52NCrNgM','uni.network.url-service','next','NodePositionConvertToRectRange','getSkeleton','_hovered','handleInsertRangeMoveRight','UNAUTHENTICATED','asObservable','map','_docTransformIMECacheService','loadUnit','21314CVEJXl','lineTo','combineLatest','_collaborationController','_univerInstanceService','DocStateChangeManagerService','tag','YUUMI_NO_CUBOID_FOR_QUESTION','column','getViewport','YUUMI_ASYNCIO_CANCELLED','href','getFocusedUnit','Injector','BrowserCollaborationSocketService','LICENSE_DISTRO_REJECTED','transformMutation','_drawAnchor','code','transformByState','CollaborationStatus','_docTransformStateCacheService','colorChannel1','_commandService'];_0x448a=function(){return _0x40c311;};return _0x448a();}function Bt(_0x40b411){const {status$:_0x2909ac}=_0x40b411;return function(){return P['jsx'](je,{'status$':_0x2909ac});};}var kt=Object[_0x151a7c(0x300)],Ht=(_0x30d12c,_0x4c3c35,_0x2117c8,_0x298084)=>{for(var _0x453fdf=_0x298084>0x1?void 0x0:_0x298084?kt(_0x4c3c35,_0x2117c8):_0x4c3c35,_0x4e078b=_0x30d12c['length']-0x1,_0x21fe98;_0x4e078b>=0x0;_0x4e078b--)(_0x21fe98=_0x30d12c[_0x4e078b])&&(_0x453fdf=_0x21fe98(_0x453fdf)||_0x453fdf);return _0x453fdf;},y=(_0xd19a24,_0x40977d)=>(_0x70a3d1,_0x5efd91)=>_0x40977d(_0x70a3d1,_0x5efd91,_0xd19a24);let z=class extends a['Disposable']{constructor(_0x5b7d3f,_0x3fa014,_0x43ba6f,_0x4161ca,_0x1c9a85,_0x54b231){const _0x4f13cb=_0x151a7c;super(),this['_beforeCloseService']=_0x5b7d3f,this[_0x4f13cb(0x2c5)]=_0x3fa014,this[_0x4f13cb(0x249)]=_0x43ba6f,this[_0x4f13cb(0x2a2)]=_0x4161ca,this[_0x4f13cb(0x3b0)]=_0x1c9a85,this[_0x4f13cb(0x317)]=_0x54b231,this[_0x4f13cb(0x2ae)](),this[_0x4f13cb(0x24c)]();}[_0x151a7c(0x2ae)](){const _0x3f725f=_0x151a7c;this[_0x3f725f(0x2f6)](this['_beforeCloseService'][_0x3f725f(0x267)](()=>{const _0x1dbb9a=_0x3f725f;if(this[_0x1dbb9a(0x2c5)][_0x1dbb9a(0x282)][_0x1dbb9a(0x1e6)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x151a7c(0x24c)](){const _0x13616d=_0x151a7c;this[_0x13616d(0x2f6)](this[_0x13616d(0x249)]['event$'][_0x13616d(0x22b)](_0x304d2a=>{const _0x5e9b57=_0x13616d;_0x304d2a['id']===u['CollaborationUIEventId'][_0x5e9b57(0x3da)]&&this['_messageService']['show']({'type':T['MessageType']['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x2d8))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x2d7)]&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)]['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x207))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x32a)]&&this[_0x5e9b57(0x3b0)][_0x5e9b57(0x1f4)]({'title':this['_localeService']['t'](_0x5e9b57(0x30f)),'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x277)),'type':_0x5e9b57(0x389),'duration':0x0}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x252)]&&this[_0x5e9b57(0x2a2)]['show']({'type':T['MessageType'][_0x5e9b57(0x3e5)],'content':this[_0x5e9b57(0x317)]['t']('collaboration.closeRoom')+'('+_0x304d2a['data']+')'}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x2e4)]&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)]['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x304d2a['data']||'')}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x3b4)]&&this['_messageService'][_0x5e9b57(0x1f4)]({'type':T['MessageType'][_0x5e9b57(0x32b)],'content':this[_0x5e9b57(0x317)]['t']('session.will-retry')}),_0x304d2a['id']===u[_0x5e9b57(0x285)]['SOCKET_FAILED']&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)][_0x5e9b57(0x3e5)],'content':this['_localeService']['t'](_0x5e9b57(0x3fd))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x36f)]&&this['_messageService'][_0x5e9b57(0x1f4)]({'type':T['MessageType']['Error'],'content':this[_0x5e9b57(0x317)]['t']('session.collaboration-timeout')});}));}};z=Ht([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x151a7c(0x2f3)]),y(0x2,a['Inject'](u[_0x151a7c(0x1f9)])),y(0x3,O[_0x151a7c(0x1b4)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x151a7c(0x1ea)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a['createIdentifier'](_0x151a7c(0x335));var Wt=Object[_0x151a7c(0x300)],Yt=(_0x5df7d5,_0x1f00f0,_0x50cc47,_0x386586)=>{const _0x127f2d=_0x151a7c;for(var _0x4f411b=_0x386586>0x1?void 0x0:_0x386586?Wt(_0x1f00f0,_0x50cc47):_0x1f00f0,_0x4aa2f3=_0x5df7d5[_0x127f2d(0x3b3)]-0x1,_0xba1a22;_0x4aa2f3>=0x0;_0x4aa2f3--)(_0xba1a22=_0x5df7d5[_0x4aa2f3])&&(_0x4f411b=_0xba1a22(_0x4f411b)||_0x4f411b);return _0x4f411b;},F=(_0x342764,_0x2ff37f)=>(_0x289618,_0x26c7cd)=>_0x2ff37f(_0x289618,_0x26c7cd,_0x342764);exports['CollaborationDataLoaderController']=class extends a[_0x151a7c(0x2c2)]{constructor(_0x5d6446,_0x3f4d88,_0x105548,_0x8cc5ea,_0x2ae25e){const _0x1de37c=_0x151a7c;super(),this['_urlService']=_0x5d6446,this[_0x1de37c(0x1e7)]=_0x3f4d88,this[_0x1de37c(0x357)]=_0x105548,this[_0x1de37c(0x35f)]=_0x8cc5ea,_0x2ae25e?_0x2ae25e==null||_0x2ae25e['whenReady']()[_0x1de37c(0x310)](()=>this[_0x1de37c(0x1c8)]()):(this[_0x1de37c(0x1e7)][_0x1de37c(0x26b)](_0x1de37c(0x23c),_0x1de37c(0x1ee)),this[_0x1de37c(0x1c8)]());}async[_0x151a7c(0x1c8)](){const _0x5e8edf=_0x151a7c,_0x153a6f=this[_0x5e8edf(0x1f0)][_0x5e8edf(0x365)](_0x5e8edf(0x2f4)),_0xa2b009=this[_0x5e8edf(0x1f0)]['getParam'](_0x5e8edf(0x3fa)),_0x5a07e0=this['_urlService'][_0x5e8edf(0x365)]('subunit');if(!_0x153a6f||!_0xa2b009){this[_0x5e8edf(0x1e7)][_0x5e8edf(0x26b)](_0x5e8edf(0x23c),_0x5e8edf(0x1b9));return;}const _0x160442=await this[_0x5e8edf(0x35f)][_0x5e8edf(0x33f)](_0x153a6f,Number(_0xa2b009),_0x5a07e0);_0x160442&&_0x160442 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x160442);}async[_0x151a7c(0x301)](_0x1c744b){const _0xb13933=_0x151a7c;await this['_updateSubUnitFromURLParams'](_0x1c744b),_0x1c744b[_0xb13933(0x316)][_0xb13933(0x271)](d[_0xb13933(0x407)](this[_0xb13933(0x326)]))[_0xb13933(0x22b)](_0x32f3f5=>{const _0x449d0e=_0xb13933;_0x32f3f5&&this[_0x449d0e(0x1cf)](_0x32f3f5);}),this[_0xb13933(0x1f0)][_0xb13933(0x2dc)][_0xb13933(0x271)](d[_0xb13933(0x407)](this[_0xb13933(0x326)]))[_0xb13933(0x22b)](()=>this['_updateSubUnitFromURLParams'](_0x1c744b));}[_0x151a7c(0x1cf)](_0x228fc5,_0x5dfcd9=!0x1){const _0x7760c5=_0x151a7c,_0x28dcc9=this['_urlService']['getParam']('subunit');_0x228fc5[_0x7760c5(0x358)]()!==_0x28dcc9&&this[_0x7760c5(0x1f0)]['setParam']('subunit',_0x228fc5[_0x7760c5(0x358)](),_0x5dfcd9);}async[_0x151a7c(0x29b)](_0x5a9086){const _0x324c4f=_0x151a7c;var _0x45f586;const _0x4060ea=this[_0x324c4f(0x1f0)][_0x324c4f(0x365)](_0x324c4f(0x3cc));if(!_0x4060ea||!_0x5a9086[_0x324c4f(0x331)](_0x4060ea)){const _0x21c581=_0x5a9086['getUnhiddenWorksheets']()[0x0],_0x19049d=_0x5a9086[_0x324c4f(0x331)](_0x21c581);if(!_0x19049d)return;this[_0x324c4f(0x1cf)](_0x19049d,!0x0),await this[_0x324c4f(0x357)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5a9086[_0x324c4f(0x27f)](),'subUnitId':_0x21c581});return;}((_0x45f586=_0x5a9086['getActiveSheet']())==null?void 0x0:_0x45f586[_0x324c4f(0x358)]())!==_0x4060ea&&await this[_0x324c4f(0x357)][_0x324c4f(0x40e)](g[_0x324c4f(0x419)]['id'],{'unitId':_0x5a9086[_0x324c4f(0x27f)](),'subUnitId':_0x4060ea});}},exports[_0x151a7c(0x3dc)]=Yt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a['ICommandService']),F(0x3,a[_0x151a7c(0x2db)](u[_0x151a7c(0x3b7)])),F(0x4,a[_0x151a7c(0x197)](Ke[_0x151a7c(0x205)]))],exports['CollaborationDataLoaderController']);var Vt=Object[_0x151a7c(0x300)],Xt=(_0x580b92,_0x3a33c7,_0x543952,_0x35cb93)=>{const _0x5de058=_0x151a7c;for(var _0x1f656=_0x35cb93>0x1?void 0x0:_0x35cb93?Vt(_0x3a33c7,_0x543952):_0x3a33c7,_0x3fe6f9=_0x580b92[_0x5de058(0x3b3)]-0x1,_0x5574a2;_0x3fe6f9>=0x0;_0x3fe6f9--)(_0x5574a2=_0x580b92[_0x3fe6f9])&&(_0x1f656=_0x5574a2(_0x1f656)||_0x1f656);return _0x1f656;},le=(_0xb8019b,_0x53ae31)=>(_0x206b44,_0x584b66)=>_0x53ae31(_0x206b44,_0x584b66,_0xb8019b);let J=class{constructor(_0x3e4038,_0x4c9674,_0x2e6bc5){const _0xd2f6ab=_0x151a7c;this[_0xd2f6ab(0x388)]=_0x3e4038,this['_transformService']=_0x4c9674,this[_0xd2f6ab(0x3cd)]=_0x2e6bc5;}[_0x151a7c(0x2dd)](_0x1bd23e){const _0xe67f6a=_0x151a7c;this[_0xe67f6a(0x3c7)](_0x1bd23e),this[_0xe67f6a(0x2fa)](_0x1bd23e);}['transformRemoteChangeset'](_0x4e3802){const _0xb80fd2=_0x151a7c,{unitID:_0x4008fb}=_0x4e3802,_0x44800a=this[_0xb80fd2(0x3cd)][_0xb80fd2(0x2f5)](_0x4008fb)[_0xb80fd2(0x3bb)](b[_0xb80fd2(0x418)]),{redoCache:_0x32d893}=_0x44800a[_0xb80fd2(0x3df)]();if(_0x32d893[_0xb80fd2(0x3b3)]===0x0)return _0x4e3802;let _0x3f1da0=a[_0xb80fd2(0x2f1)]['deepClone'](_0x4e3802[_0xb80fd2(0x332)][0x0]);for(let _0x5f26f7=0x0;_0x5f26f7<_0x32d893['length'];_0x5f26f7++){const _0x73e38f={'id':_0xb80fd2(0x1d3),'params':{..._0x32d893[_0x5f26f7]}},_0x38c5db=this[_0xb80fd2(0x21b)][_0xb80fd2(0x350)](_0x3f1da0,_0x73e38f,!0x1);if(m[_0xb80fd2(0x2e1)](_0x38c5db))throw _0x38c5db['error'];_0x3f1da0=_0x38c5db[_0xb80fd2(0x384)];}return{...a[_0xb80fd2(0x2f1)][_0xb80fd2(0x3bd)](_0x4e3802),'mutations':[_0x3f1da0]};}['_transformUndoRedoStack'](_0x227f9b){const _0x3779ea=_0x151a7c,{unitID:_0x5d0ab7}=_0x227f9b,_0x182b2f=this[_0x3779ea(0x3cd)][_0x3779ea(0x2f5)](_0x5d0ab7)[_0x3779ea(0x3bb)](b[_0x3779ea(0x418)]),{undoCache:_0x224908,redoCache:_0x6abb4a}=_0x182b2f['getUndoRedoMutationParamsCache']();if(_0x224908['length']===0x0||_0x6abb4a[_0x3779ea(0x3b3)]===0x0)return;const _0x122fec=[],_0x967445=[];let _0x5b3037=a[_0x3779ea(0x2f1)][_0x3779ea(0x3bd)](_0x227f9b['mutations'][0x0]),_0x5e3223=a[_0x3779ea(0x2f1)][_0x3779ea(0x3bd)](_0x227f9b[_0x3779ea(0x332)][0x0]);for(let _0x5c812b=_0x224908[_0x3779ea(0x3b3)]-0x1;_0x5c812b>=0x0;_0x5c812b--){const _0x2a0bfc={'id':'doc.mutation.rich-text-editing','params':{..._0x224908[_0x5c812b]}},_0x533d41={'id':_0x3779ea(0x1d3),'params':{..._0x6abb4a[_0x5c812b]}},_0x36c8d=this[_0x3779ea(0x21b)]['transformMutation'](_0x5b3037,_0x2a0bfc,!0x1),_0x8569db=this[_0x3779ea(0x21b)][_0x3779ea(0x350)](_0x5e3223,_0x533d41,!0x1);if(m['isTransformMutationFailure'](_0x36c8d))throw _0x36c8d['error'];if(m[_0x3779ea(0x2e1)](_0x8569db))throw _0x8569db['error'];_0x122fec[_0x3779ea(0x1ba)](_0x36c8d[_0x3779ea(0x293)][_0x3779ea(0x28e)]),_0x967445['unshift'](_0x8569db[_0x3779ea(0x293)][_0x3779ea(0x28e)]),_0x5b3037=_0x36c8d[_0x3779ea(0x384)],_0x5e3223=_0x8569db[_0x3779ea(0x384)];}_0x182b2f['setUndoRedoMutationParamsCache']({'undoCache':_0x122fec,'redoCache':_0x967445});}[_0x151a7c(0x2fa)](_0x3b9949){const _0x63990=_0x151a7c,{unitID:_0x412bb7}=_0x3b9949,_0x4870a7=this[_0x63990(0x3cd)][_0x63990(0x2f5)](_0x412bb7)['with'](b[_0x63990(0x418)]),_0x502ddc=_0x4870a7['getActiveRange']();if(_0x502ddc==null)return;const _0x1ff83a=[{'id':_0x63990(0x1d3),'params':{'unitId':_0x3b9949['unitID'],'actions':null,'textRanges':[_0x502ddc]}}],_0x3fe9be=this[_0x63990(0x21b)][_0x63990(0x1e5)](_0x3b9949,_0x1ff83a);if(!m[_0x63990(0x25c)](_0x3fe9be))throw _0x3fe9be['error'];const _0x29bd29=_0x3fe9be['m2Prime'][0x0][_0x63990(0x28e)][_0x63990(0x31e)];Array[_0x63990(0x2d3)](_0x29bd29)&&_0x29bd29[_0x63990(0x3b3)]&&_0x4870a7[_0x63990(0x25a)](_0x29bd29[0x0]);}};J=Xt([le(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),le(0x1,m['ITransformService']),le(0x2,p[_0x151a7c(0x40a)])],J);var Gt=Object[_0x151a7c(0x300)],qt=(_0x5cf5f9,_0x4f062e,_0x4fddec,_0x401017)=>{for(var _0x1713b3=_0x401017>0x1?void 0x0:_0x401017?Gt(_0x4f062e,_0x4fddec):_0x4f062e,_0x5401c9=_0x5cf5f9['length']-0x1,_0x5efb44;_0x5401c9>=0x0;_0x5401c9--)(_0x5efb44=_0x5cf5f9[_0x5401c9])&&(_0x1713b3=_0x5efb44(_0x1713b3)||_0x1713b3);return _0x1713b3;},_e=(_0x47b6a3,_0x3e05d0)=>(_0x3d142c,_0x27dc3b)=>_0x3e05d0(_0x3d142c,_0x27dc3b,_0x47b6a3);let Z=class{constructor(_0x3d54c5,_0x3293ce,_0xf33489){const _0xc3c319=_0x151a7c;this[_0xc3c319(0x388)]=_0x3d54c5,this[_0xc3c319(0x21b)]=_0x3293ce,this['_docStateChangeManagerService']=_0xf33489;}[_0x151a7c(0x288)](_0x57aa7e){this['_transformHistoryAndStateStack'](_0x57aa7e);}[_0x151a7c(0x41d)](_0x1545ec){const _0x55b5de=_0x151a7c,{unitID:_0x4bffea}=_0x1545ec,{collaboration:_0x1c7682}=this['_docStateChangeManagerService'][_0x55b5de(0x295)](_0x4bffea);if(_0x1c7682['length']===0x0)return _0x1545ec;let _0x5c59a5=a[_0x55b5de(0x2f1)]['deepClone'](_0x1545ec[_0x55b5de(0x332)][0x0]);for(let _0x4416e5=0x0;_0x4416e5<_0x1c7682['length'];_0x4416e5++){const _0x1ba36a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1c7682[_0x4416e5][_0x55b5de(0x1de)],..._0x1c7682[_0x4416e5]['redoState']}},_0x386410=this[_0x55b5de(0x21b)]['transformMutation'](_0x5c59a5,_0x1ba36a,!0x1);if(m[_0x55b5de(0x2e1)](_0x386410))throw _0x386410[_0x55b5de(0x389)];_0x5c59a5=_0x386410[_0x55b5de(0x384)];}return{...a[_0x55b5de(0x2f1)][_0x55b5de(0x3bd)](_0x1545ec),'mutations':[_0x5c59a5]};}[_0x151a7c(0x20a)](_0x5bd0e9){const _0x5b2db0=_0x151a7c,{unitID:_0x2a51c4}=_0x5bd0e9,{history:_0x80011d,collaboration:_0x312e37}=this[_0x5b2db0(0x1ab)]['getStateCache'](_0x2a51c4);if(_0x80011d['length']===0x0&&_0x312e37[_0x5b2db0(0x3b3)]===0x0)return;const _0x12989a=[],_0x142d50=[];let _0x3f2c20=a[_0x5b2db0(0x2f1)][_0x5b2db0(0x3bd)](_0x5bd0e9['mutations'][0x0]),_0x2f17e4=a[_0x5b2db0(0x2f1)]['deepClone'](_0x5bd0e9[_0x5b2db0(0x332)][0x0]);for(let _0x6cf208=_0x80011d[_0x5b2db0(0x3b3)]-0x1;_0x6cf208>=0x0;_0x6cf208--){const _0x532613={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x80011d[_0x6cf208][_0x5b2db0(0x1de)],..._0x80011d[_0x6cf208][_0x5b2db0(0x38d)]}},_0x269e5f={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x80011d[_0x6cf208][_0x5b2db0(0x1de)],..._0x80011d[_0x6cf208][_0x5b2db0(0x294)]}},_0x5801a5=this[_0x5b2db0(0x21b)]['transformMutation'](_0x3f2c20,_0x532613,!0x1),_0xc9a729=this[_0x5b2db0(0x21b)]['transformMutation'](_0x2f17e4,_0x269e5f,!0x1);if(m[_0x5b2db0(0x2e1)](_0x5801a5))throw _0x5801a5[_0x5b2db0(0x389)];if(m[_0x5b2db0(0x2e1)](_0xc9a729))throw _0xc9a729[_0x5b2db0(0x389)];_0x12989a['unshift']({..._0x80011d[_0x6cf208],'undoState':_0x5801a5[_0x5b2db0(0x293)][_0x5b2db0(0x28e)],'redoState':_0xc9a729[_0x5b2db0(0x293)][_0x5b2db0(0x28e)]}),_0x3f2c20=_0x5801a5[_0x5b2db0(0x384)],_0x2f17e4=_0xc9a729['m1Prime'];}_0x3f2c20=a[_0x5b2db0(0x2f1)][_0x5b2db0(0x3bd)](_0x5bd0e9[_0x5b2db0(0x332)][0x0]),_0x2f17e4=a[_0x5b2db0(0x2f1)]['deepClone'](_0x5bd0e9['mutations'][0x0]);for(let _0x280327=_0x312e37[_0x5b2db0(0x3b3)]-0x1;_0x280327>=0x0;_0x280327--){const _0x59f244={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x312e37[_0x280327][_0x5b2db0(0x1de)],..._0x312e37[_0x280327][_0x5b2db0(0x38d)]}},_0x2a134e={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x312e37[_0x280327]['unitId'],..._0x312e37[_0x280327][_0x5b2db0(0x294)]}},_0x1002dc=this['_transformService']['transformMutation'](_0x3f2c20,_0x59f244,!0x1),_0x4c2548=this['_transformService']['transformMutation'](_0x2f17e4,_0x2a134e,!0x1);if(m['isTransformMutationFailure'](_0x1002dc))throw _0x1002dc[_0x5b2db0(0x389)];if(m[_0x5b2db0(0x2e1)](_0x4c2548))throw _0x4c2548['error'];_0x142d50[_0x5b2db0(0x1ba)]({..._0x312e37[_0x280327],'undoState':_0x1002dc[_0x5b2db0(0x293)][_0x5b2db0(0x28e)],'redoState':_0x4c2548['m2Prime']['params']}),_0x3f2c20=_0x1002dc[_0x5b2db0(0x384)],_0x2f17e4=_0x4c2548[_0x5b2db0(0x384)];}this[_0x5b2db0(0x1ab)][_0x5b2db0(0x381)](_0x2a51c4,{'history':_0x12989a,'collaboration':_0x142d50});}};Z=qt([_e(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),_e(0x1,m[_0x151a7c(0x2cb)]),_e(0x2,a[_0x151a7c(0x2db)](b[_0x151a7c(0x345)]))],Z);var Kt=Object[_0x151a7c(0x300)],zt=(_0x419203,_0x1e6892,_0x285f35,_0x518e58)=>{const _0x40ba59=_0x151a7c;for(var _0x4654c=_0x518e58>0x1?void 0x0:_0x518e58?Kt(_0x1e6892,_0x285f35):_0x1e6892,_0x5b7057=_0x419203[_0x40ba59(0x3b3)]-0x1,_0x51a60f;_0x5b7057>=0x0;_0x5b7057--)(_0x51a60f=_0x419203[_0x5b7057])&&(_0x4654c=_0x51a60f(_0x4654c)||_0x4654c);return _0x4654c;},Me=(_0xaada60,_0x1fa6e4)=>(_0xe39989,_0x46df9c)=>_0x1fa6e4(_0xe39989,_0x46df9c,_0xaada60);let Q=class{constructor(_0x2b06b4,_0x3087f2){const _0x5a29ae=_0x151a7c;this[_0x5a29ae(0x388)]=_0x2b06b4,this[_0x5a29ae(0x21b)]=_0x3087f2;}[_0x151a7c(0x1d0)](_0x24a075){const _0x2e9c18=_0x151a7c;var _0x27abe7;const _0x9c09b4=this[_0x2e9c18(0x388)][_0x2e9c18(0x35b)](Y['DocSelectionManagerService']),_0x26e986=(_0x27abe7=_0x9c09b4[_0x2e9c18(0x417)]())!=null?_0x27abe7:[];if(_0x26e986[_0x2e9c18(0x3b3)]===0x0)return;const _0x181497=_0x24a075[_0x2e9c18(0x328)],_0x377f74=[{'id':_0x2e9c18(0x1d3),'params':{'unitId':_0x181497,'actions':null,'textRanges':_0x26e986}}],_0x365a12=this['_transformService'][_0x2e9c18(0x1e5)](_0x24a075,_0x377f74);if(!m[_0x2e9c18(0x25c)](_0x365a12))throw _0x365a12['error'];const _0x54bb8d=_0x365a12[_0x2e9c18(0x293)][0x0][_0x2e9c18(0x28e)][_0x2e9c18(0x31e)];Array[_0x2e9c18(0x2d3)](_0x54bb8d)&&_0x54bb8d['length']&&_0x9c09b4['replaceDocRanges'](_0x54bb8d,{'unitId':_0x181497,'subUnitId':_0x181497},!0x1);}};Q=zt([Me(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x151a7c(0x300)],Zt=(_0x16384d,_0x53780f,_0x4ce0fa,_0x4aea6d)=>{for(var _0x1f09ba=_0x4aea6d>0x1?void 0x0:_0x4aea6d?Jt(_0x53780f,_0x4ce0fa):_0x53780f,_0x352a05=_0x16384d['length']-0x1,_0x38d778;_0x352a05>=0x0;_0x352a05--)(_0x38d778=_0x16384d[_0x352a05])&&(_0x1f09ba=_0x38d778(_0x1f09ba)||_0x1f09ba);return _0x1f09ba;},N=(_0x38d15c,_0x3de968)=>(_0xbed3ef,_0xb400dc)=>_0x3de968(_0xbed3ef,_0xb400dc,_0x38d15c);let ee=class extends a['Disposable']{constructor(_0x57b377,_0x1a98c0,_0x35c8c5,_0x23d844,_0x1b9e6e,_0x39b189,_0x4b89d8,_0x338775){const _0x34a402=_0x151a7c;super(),_(this,'_status$',new d[(_0x34a402(0x1dd))](u[_0x34a402(0x354)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x57b377,this[_0x34a402(0x343)]=_0x1a98c0,this[_0x34a402(0x33e)]=_0x35c8c5,this[_0x34a402(0x355)]=_0x23d844,this[_0x34a402(0x39f)]=_0x1b9e6e,this[_0x34a402(0x2b6)]=_0x39b189,this[_0x34a402(0x2a2)]=_0x4b89d8,this[_0x34a402(0x317)]=_0x338775,this[_0x34a402(0x2bf)]());}[_0x151a7c(0x2bf)](){const _0x13ae5b=_0x151a7c;this['disposeWithMe'](this[_0x13ae5b(0x343)][_0x13ae5b(0x234)][_0x13ae5b(0x22b)](_0x419cd1=>{const _0x278b14=_0x13ae5b,_0x1f6c33=this[_0x278b14(0x1ab)][_0x278b14(0x255)][_0x278b14(0x22b)](_0x46e136=>{const _0x43fbd5=_0x278b14;if(_0x46e136==null)return;const {unitId:_0x1d1cc0,redoState:_0x399936,commandId:_0x1e8d19}=_0x46e136;if(_0x1d1cc0!==_0x419cd1[_0x43fbd5(0x328)])return;const _0xc15b03={'id':_0x1e8d19,'type':a[_0x43fbd5(0x302)][_0x43fbd5(0x3ce)],'params':{'unitId':_0x1d1cc0,'actions':_0x399936['actions'],'textRanges':null}};_0x419cd1['onLocalMutation'](_0xc15b03);});if(_0x419cd1[_0x278b14(0x2f6)](_0x1f6c33),_0x419cd1 instanceof u[_0x278b14(0x3ba)]){const _0x245b33={'onTransformIME':_0xf9c3f9=>this[_0x278b14(0x33e)][_0x278b14(0x2dd)](_0xf9c3f9),'onTransformState':_0x3aa3a4=>this[_0x278b14(0x355)]['transformStateCache'](_0x3aa3a4),'onTransformSelections':_0x14456c=>this[_0x278b14(0x39f)]['transformSelections'](_0x14456c),'onSyncEditingCollabCursor':_0x3a84a1=>this[_0x278b14(0x2b6)]['syncEditingCollabCursor'](_0x3a84a1),'onTransformRemoteChangesetByIMECache':_0x3fdefc=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3fdefc),'onTransformRemoteChangesetByStateCache':_0x182954=>this[_0x278b14(0x355)][_0x278b14(0x41d)](_0x182954)};_0x419cd1[_0x278b14(0x377)](_0x245b33);}}));}};ee=Zt([N(0x0,a[_0x151a7c(0x2db)](b['DocStateChangeManagerService'])),N(0x1,a[_0x151a7c(0x2db)](u[_0x151a7c(0x19d)])),N(0x2,a[_0x151a7c(0x2db)](J)),N(0x3,a[_0x151a7c(0x2db)](Z)),N(0x4,a['Inject'](Q)),N(0x5,a[_0x151a7c(0x2db)](pe)),N(0x6,O[_0x151a7c(0x1b4)]),N(0x7,a['Inject'](a[_0x151a7c(0x1ea)]))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x1cc134,_0x198360,_0x206ad2,_0x181e58)=>{const _0x27aa71=_0x151a7c;for(var _0x2d87e0=_0x181e58>0x1?void 0x0:_0x181e58?Qt(_0x198360,_0x206ad2):_0x198360,_0x325cc0=_0x1cc134[_0x27aa71(0x3b3)]-0x1,_0x5eed21;_0x325cc0>=0x0;_0x325cc0--)(_0x5eed21=_0x1cc134[_0x325cc0])&&(_0x2d87e0=_0x5eed21(_0x2d87e0)||_0x2d87e0);return _0x2d87e0;},he=(_0x10e649,_0x2c5cc2)=>(_0xa6b55f,_0x34ce69)=>_0x2c5cc2(_0xa6b55f,_0x34ce69,_0x10e649);let me=class extends a[_0x151a7c(0x38f)]{constructor(_0x312a6f,_0x585fd7,_0x3d2563){const _0x213b1b=_0x151a7c;super(),_(this,'_cachedData',new Map()),_(this,_0x213b1b(0x1d8),new Map()),_(this,_0x213b1b(0x3e6),!0x1),(this['_configService']=_0x312a6f,this[_0x213b1b(0x308)]=_0x585fd7,this[_0x213b1b(0x403)]=_0x3d2563);}[_0x151a7c(0x299)](){const _0x2ad8db=_0x151a7c;this[_0x2ad8db(0x3e6)]=!0x0;}[_0x151a7c(0x21e)](){this['_disabled']=!0x1;}get[_0x151a7c(0x282)](){const _0x32feab=_0x151a7c;return this[_0x32feab(0x1d8)];}['dispose'](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x151a7c(0x1ac)](_0x220884){const _0x46b7af=_0x151a7c;return this[_0x46b7af(0x3e6)]?null:this[_0x46b7af(0x308)][_0x46b7af(0x3ac)](u[_0x46b7af(0x3cb)](_0x220884));}async[_0x151a7c(0x1c5)](_0x1e0f07,_0x178c58){const _0x2bdf96=_0x151a7c;return!!this[_0x2bdf96(0x308)][_0x2bdf96(0x2bc)](_0x1e0f07,_0x178c58);}[_0x151a7c(0x26c)](_0x9b0a2c,_0x3555cc,_0x1e3679,_0x3b2603){const _0x17f236=_0x151a7c,_0x2e19a9=this[_0x17f236(0x403)][_0x17f236(0x396)](_0x9b0a2c);this['_cachedData'][_0x17f236(0x2a4)](_0x9b0a2c,{'unitID':_0x9b0a2c,'type':_0x3555cc,'awaitingChangeset':_0x1e3679,'mutations':_0x3b2603,'rev':_0x2e19a9}),this['_saveTaskMap']['has'](_0x9b0a2c)||this[_0x17f236(0x1a1)](_0x9b0a2c);}[_0x151a7c(0x1a1)](_0x217c3d){const _0x1f5727=_0x151a7c,_0x4c2877=this['_getSaveTimeout']();_0x4c2877===0x0?this[_0x1f5727(0x21f)](_0x217c3d):this[_0x1f5727(0x1d8)][_0x1f5727(0x2a4)](_0x217c3d,setTimeout(()=>this['_saveCache'](_0x217c3d),_0x4c2877));}[_0x151a7c(0x214)](){const _0xae3a10=_0x151a7c;var _0x40e642;return(_0x40e642=this['_configService'][_0xae3a10(0x198)](u[_0xae3a10(0x1ce)]))!=null?_0x40e642:u[_0xae3a10(0x2f2)];}[_0x151a7c(0x21f)](_0x5c0dd6){const _0x2fb083=_0x151a7c,_0x5e0dca=this[_0x2fb083(0x1d8)][_0x2fb083(0x35b)](_0x5c0dd6);return _0x5e0dca!==void 0x0&&window[_0x2fb083(0x2e7)](_0x5e0dca),this[_0x2fb083(0x308)][_0x2fb083(0x2bc)](u[_0x2fb083(0x3cb)](_0x5c0dd6),this[_0x2fb083(0x1bc)]['get'](_0x5c0dd6))['then'](()=>this['_saveTaskMap'][_0x2fb083(0x23e)](_0x5c0dd6));}async[_0x151a7c(0x221)](){const _0x551a72=_0x151a7c,_0x370684=[];this[_0x551a72(0x1d8)][_0x551a72(0x2bd)]((_0x12b8b1,_0x5399cd)=>{const _0x330ad0=_0x551a72;window[_0x330ad0(0x2e7)](_0x12b8b1),_0x370684[_0x330ad0(0x264)](this[_0x330ad0(0x21f)](_0x5399cd)[_0x330ad0(0x310)](()=>{this['_saveTaskMap']['delete'](_0x5399cd);}));}),await Promise['all'](_0x370684);}};me=es([he(0x0,a[_0x151a7c(0x2a9)]),he(0x1,a[_0x151a7c(0x1bb)]),he(0x2,a['Inject'](m['RevisionService']))],me);class Be extends a['RxDisposable']{constructor(){const _0x291ab2=_0x151a7c;super(),_(this,'urlChange$'),this[_0x291ab2(0x2dc)]=d[_0x291ab2(0x37c)](window,_0x291ab2(0x2d2))[_0x291ab2(0x271)](d[_0x291ab2(0x407)](this['dispose$']),d[_0x291ab2(0x3d5)](0x1),d[_0x291ab2(0x3d1)](void 0x0));}['setParam'](_0x52be02,_0x4c8d43,_0x1f4fbc=!0x1){const _0x5d381b=_0x151a7c,_0xf56e1=new URL(window[_0x5d381b(0x274)][_0x5d381b(0x34b)]);_0xf56e1[_0x5d381b(0x37f)][_0x5d381b(0x2a4)](_0x52be02,_0x4c8d43),_0x1f4fbc?window[_0x5d381b(0x2ff)][_0x5d381b(0x305)]('','',_0xf56e1['toString']()):window[_0x5d381b(0x2ff)][_0x5d381b(0x25e)]('','',_0xf56e1[_0x5d381b(0x208)]());}[_0x151a7c(0x3c2)](_0x49b301,_0x3111fd=!0x1){const _0x235b60=_0x151a7c,_0x278253=new URL(window[_0x235b60(0x274)]['href']);_0x278253[_0x235b60(0x37f)][_0x235b60(0x23e)](_0x49b301),_0x3111fd?window[_0x235b60(0x2ff)][_0x235b60(0x305)]('','',_0x278253[_0x235b60(0x208)]()):window[_0x235b60(0x2ff)][_0x235b60(0x25e)]('','',_0x278253[_0x235b60(0x208)]());}['getParam'](_0xa2f79e){const _0x4cb578=_0x151a7c;var _0x34af2c;return(_0x34af2c=new URL(window[_0x4cb578(0x274)][_0x4cb578(0x34b)])[_0x4cb578(0x37f)][_0x4cb578(0x35b)](_0xa2f79e))!=null?_0x34af2c:void 0x0;}}var ts=Object[_0x151a7c(0x209)],ss=Object['getOwnPropertyDescriptor'],ns=(_0x49a86e,_0x4a6887,_0x449435)=>_0x4a6887 in _0x49a86e?ts(_0x49a86e,_0x4a6887,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x449435}):_0x49a86e[_0x4a6887]=_0x449435,is=(_0x288c90,_0x753819,_0xdc80d,_0x554c29)=>{const _0x38c93d=_0x151a7c;for(var _0x1df130=_0x554c29>0x1?void 0x0:_0x554c29?ss(_0x753819,_0xdc80d):_0x753819,_0x283e55=_0x288c90[_0x38c93d(0x3b3)]-0x1,_0x3395d7;_0x283e55>=0x0;_0x283e55--)(_0x3395d7=_0x288c90[_0x283e55])&&(_0x1df130=_0x3395d7(_0x1df130)||_0x1df130);return _0x1df130;},ue=(_0x1568f5,_0x544d61)=>(_0x3cada9,_0x1c8e1f)=>_0x544d61(_0x3cada9,_0x1c8e1f,_0x1568f5),rs=(_0x36d0a3,_0x245148,_0x172e2a)=>ns(_0x36d0a3,_0x245148+'',_0x172e2a);const os=_0x151a7c(0x2e2);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x151a7c(0x24b)]{constructor(_0xdb98c2=Ne,_0x3b0b9e,_0x39dcda,_0x1a69fa){const _0xb2e978=_0x151a7c;super(),this[_0xb2e978(0x237)]=_0xdb98c2,this[_0xb2e978(0x3cd)]=_0x3b0b9e,this[_0xb2e978(0x388)]=_0x39dcda,this[_0xb2e978(0x3e4)]=_0x1a69fa;const {..._0x17f159}=a[_0xb2e978(0x22d)]({},Ne,this[_0xb2e978(0x237)]);this[_0xb2e978(0x3e4)][_0xb2e978(0x2d0)](Ft,_0x17f159);}[_0x151a7c(0x408)](){const _0x2e1ab9=_0x151a7c;this[_0x2e1ab9(0x32d)](),this[_0x2e1ab9(0x222)]();}[_0x151a7c(0x1a9)](){const _0x10bfac=_0x151a7c;this[_0x10bfac(0x1a0)]();}[_0x151a7c(0x32d)](){const _0x2b0740=_0x151a7c;var _0x2252bc;const _0x1492a9=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x2b0740(0x27d)],{'useClass':q[_0x2b0740(0x39c)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x2b0740(0x3b6)]],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x2b0740(0x388)],a['mergeOverrideWithDependencies'](_0x1492a9,(_0x2252bc=this[_0x2b0740(0x237)])==null?void 0x0:_0x2252bc['override']));}[_0x151a7c(0x1a0)](){const _0x21be4c=_0x151a7c;this[_0x21be4c(0x2f6)](this[_0x21be4c(0x3cd)][_0x21be4c(0x263)](a['UniverInstanceType'][_0x21be4c(0x378)],[ve])),this[_0x21be4c(0x2f6)](this[_0x21be4c(0x3cd)][_0x21be4c(0x263)](a[_0x21be4c(0x319)]['UNIVER_SHEET'],[ge]));}[_0x151a7c(0x222)](){const _0x51a896=_0x151a7c;a['touchDependencies'](this[_0x51a896(0x388)],[[x],[exports[_0x51a896(0x3b6)]],[ee],[z],[exports['CollaborationDataLoaderController']]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x151a7c(0x2de),os),exports[_0x151a7c(0x364)]=is([a['DependentOn'](u[_0x151a7c(0x366)]),ue(0x1,p[_0x151a7c(0x40a)]),ue(0x2,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),ue(0x3,a['IConfigService'])],exports[_0x151a7c(0x364)]);var as=Object[_0x151a7c(0x300)],cs=(_0x1346b9,_0x42ec4f,_0x14570a,_0x588cff)=>{for(var _0x581957=_0x588cff>0x1?void 0x0:_0x588cff?as(_0x42ec4f,_0x14570a):_0x42ec4f,_0x3b1bb1=_0x1346b9['length']-0x1,_0x27b504;_0x3b1bb1>=0x0;_0x3b1bb1--)(_0x27b504=_0x1346b9[_0x3b1bb1])&&(_0x581957=_0x27b504(_0x581957)||_0x581957);return _0x581957;},W=(_0x3ac5de,_0x1f6829)=>(_0x57141c,_0x5efadf)=>_0x1f6829(_0x57141c,_0x5efadf,_0x3ac5de);exports[_0x151a7c(0x34e)]=class extends u[_0x151a7c(0x35a)]{constructor(_0x1d7023,_0x545671,_0x59140f,_0x1560e9,_0x338dd5){super(_0x1d7023,_0x545671,_0x59140f,_0x1560e9,_0x338dd5);}async[_0x151a7c(0x1a2)](_0x507eb3){const _0x3e9992=_0x151a7c,_0x3faaf2=await this[_0x3e9992(0x401)](),_0xc8d0c0=this[_0x3e9992(0x2ea)](_0x507eb3,_0x3faaf2);return this[_0x3e9992(0x393)](_0xc8d0c0);}[_0x151a7c(0x2ea)](_0x4c8ff8,_0x41cddb){const _0x1708f4=_0x151a7c,_0x4c8586=typeof window>'u'?new URL(_0x4c8ff8):new URL(_0x4c8ff8,window[_0x1708f4(0x274)]['origin']);_0x4c8586['searchParams'][_0x1708f4(0x2a4)](_0x1708f4(0x2d6),_0x41cddb);const _0x570b48=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1708f4(0x274)][_0x1708f4(0x413)]);return _0x570b48['get']('runId')&&_0x4c8586['searchParams'][_0x1708f4(0x2a4)](_0x1708f4(0x3b2),_0x570b48['get']('runId')),_0x4c8586[_0x1708f4(0x208)]();}async['_getSessionTicket'](){const _0x274cd6=_0x151a7c;var _0x338ccf,_0x51b43d,_0x1ec05e;const _0x361e3e=this['_configService'][_0x274cd6(0x198)](u[_0x274cd6(0x38c)]),_0x209f84=(_0x338ccf=_0x361e3e==null?void 0x0:_0x361e3e['wsSessionTicketUrl'])!=null?_0x338ccf:u[_0x274cd6(0x1c3)];return(_0x1ec05e=(_0x51b43d=(await this[_0x274cd6(0x19f)][_0x274cd6(0x35b)](_0x209f84,{'headers':{'Content-Type':_0x274cd6(0x2e0)}}))[_0x274cd6(0x275)])==null?void 0x0:_0x51b43d['ticket'])!=null?_0x1ec05e:'';}},exports[_0x151a7c(0x34e)]=cs([W(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),W(0x1,a[_0x151a7c(0x2db)](q['HTTPService'])),W(0x2,a[_0x151a7c(0x2a9)]),W(0x3,a[_0x151a7c(0x1f7)]),W(0x4,m['ISnapshotServerService'])],exports[_0x151a7c(0x34e)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a['Disposable']{constructor(){const _0x1bf179=_0x151a7c;super(),_(this,_0x1bf179(0x363),a[_0x1bf179(0x1a8)]()),_(this,_0x1bf179(0x2f0),new Set()),_(this,_0x1bf179(0x369),new Map()),_(this,_0x1bf179(0x22f),null),_(this,_0x1bf179(0x38b),new Map()),_(this,_0x1bf179(0x23b),new Map()),this['_init']();}[_0x151a7c(0x3a3)](){const _0x53e07a=_0x151a7c;super[_0x53e07a(0x3a3)](),this[_0x53e07a(0x38b)][_0x53e07a(0x2bd)]((_0x4d43d7,_0x3ae137)=>this[_0x53e07a(0x1a6)](_0x3ae137)),this[_0x53e07a(0x22f)]&&window[_0x53e07a(0x213)](this[_0x53e07a(0x22f)]);}[_0x151a7c(0x3b9)](_0x1495ec){const _0x39c588=_0x151a7c;return this[_0x39c588(0x3f7)](_0x1495ec)[_0x39c588(0x271)](d[_0x39c588(0x362)]());}[_0x151a7c(0x40b)](_0x2e1e89){const _0x3bdec9=_0x151a7c;this[_0x3bdec9(0x2f0)][_0x3bdec9(0x1e6)]===0x0&&this[_0x3bdec9(0x387)](),this['_selfUnitIDs'][_0x3bdec9(0x2ec)](_0x2e1e89),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2e1e89],'isForwarded':!0x1});}[_0x151a7c(0x22c)](_0x59ff09){const _0x1f1bd6=_0x151a7c;this['_selfUnitIDs'][_0x1f1bd6(0x23e)](_0x59ff09),this[_0x1f1bd6(0x2f0)][_0x1f1bd6(0x1e6)]===0x0&&this[_0x1f1bd6(0x22f)]&&window['clearInterval'](this[_0x1f1bd6(0x22f)]);}[_0x151a7c(0x1c8)](){const _0x649067=_0x151a7c;this[_0x649067(0x2f6)](a[_0x649067(0x2c0)](d[_0x649067(0x37c)](window,_0x649067(0x3c4))[_0x649067(0x22b)](_0x1222f0=>{const _0x4c4e55=_0x649067;if(_0x1222f0[_0x4c4e55(0x31f)]!==Pe||!_0x1222f0[_0x4c4e55(0x250)])return;const _0x40a0cb=JSON[_0x4c4e55(0x2b3)](_0x1222f0[_0x4c4e55(0x250)]);this[_0x4c4e55(0x2e5)](_0x40a0cb);}))),window[_0x649067(0x2b2)](_0x649067(0x2d9),()=>this[_0x649067(0x3f8)]({'type':0x1,'memberID':this[_0x649067(0x363)],'unitIDs':Array[_0x649067(0x38e)](this[_0x649067(0x2f0)])}));}['_handleEvent'](_0x5e44e2){const _0x4f75eb=_0x151a7c;switch(_0x5e44e2[_0x4f75eb(0x3fa)]){case 0x0:this[_0x4f75eb(0x29a)](_0x5e44e2);break;case 0x1:this[_0x4f75eb(0x29f)](_0x5e44e2);break;case 0x2:this[_0x4f75eb(0x3ec)](_0x5e44e2);break;}}[_0x151a7c(0x29a)](_0x2e632e){const _0x1358a7=_0x151a7c,{unitIDs:_0x14276d,memberID:_0x5df078,isForwarded:_0x4b787d}=_0x2e632e;_0x14276d[_0x1358a7(0x2bd)](_0x418044=>{const _0x3c52a2=_0x1358a7;if(!_0x4b787d&&this['_unitOnClients'][_0x3c52a2(0x3ff)](_0x418044)&&this[_0x3c52a2(0x3f7)](_0x418044)[_0x3c52a2(0x336)](u[_0x3c52a2(0x1bd)][_0x3c52a2(0x3ee)]),!this[_0x3c52a2(0x369)][_0x3c52a2(0x3ff)](_0x418044)||!this[_0x3c52a2(0x369)][_0x3c52a2(0x35b)](_0x418044)['has'](_0x5df078)){const _0x287241=this[_0x3c52a2(0x369)]['get'](_0x418044)||new Set();_0x287241['add'](_0x5df078),this[_0x3c52a2(0x369)][_0x3c52a2(0x2a4)](_0x418044,_0x287241),this[_0x3c52a2(0x227)](_0x5df078);}}),_0x4b787d||this['_send']({'type':0x0,'memberID':this[_0x1358a7(0x363)],'unitIDs':[...this[_0x1358a7(0x2f0)]],'isForwarded':!0x0});}[_0x151a7c(0x227)](_0x3bf4de){const _0x5e6196=_0x151a7c;this['_removeClearOtherTimer'](_0x3bf4de);const _0x38feac=window[_0x5e6196(0x236)](()=>{const _0x197f95=_0x5e6196;this[_0x197f95(0x369)][_0x197f95(0x2bd)](_0x250999=>{const _0x49c0fd=_0x197f95;_0x250999[_0x49c0fd(0x23e)](_0x3bf4de);});},Le*0x2);this[_0x5e6196(0x38b)][_0x5e6196(0x2a4)](_0x3bf4de,_0x38feac);}[_0x151a7c(0x1a6)](_0x886221){const _0x5b2103=_0x151a7c;if(this[_0x5b2103(0x38b)][_0x5b2103(0x3ff)](_0x886221)){const _0x4dbf06=this[_0x5b2103(0x38b)][_0x5b2103(0x35b)](_0x886221);_0x4dbf06&&window[_0x5b2103(0x2e7)](_0x4dbf06),this['_clearOtherTimers'][_0x5b2103(0x2a4)](_0x886221,null);}}[_0x151a7c(0x29f)](_0x322d1e){const _0x1f4a68=_0x151a7c,{memberID:_0x1a07cd,unitIDs:_0x231a3a}=_0x322d1e;_0x231a3a['forEach'](_0x1a7e86=>{const _0x26d8d5=_0x2459;var _0xac7b09;const _0x39401a=this['_unitOnClients'][_0x26d8d5(0x35b)](_0x1a7e86);_0x39401a&&(_0x39401a[_0x26d8d5(0x23e)](_0x1a07cd),(_0xac7b09=this[_0x26d8d5(0x3f7)](_0x1a7e86))==null||_0xac7b09['next'](_0x39401a[_0x26d8d5(0x1e6)]===0x0?u['UnitStatus'][_0x26d8d5(0x30b)]:u[_0x26d8d5(0x1bd)]['OTHER_CLIENTS_EDITING']));}),this[_0x1f4a68(0x1a6)](_0x1a07cd);}[_0x151a7c(0x3ec)](_0x18ce84){const _0x491ce3=_0x151a7c;this['_scheduleClearOtherTimer'](_0x18ce84[_0x491ce3(0x1e3)]);}[_0x151a7c(0x3f8)](_0x29415e){const _0x2f2572=_0x151a7c;localStorage[_0x2f2572(0x2bc)](Pe,JSON[_0x2f2572(0x3fb)](_0x29415e));}[_0x151a7c(0x387)](){const _0x2acaf0=_0x151a7c;this[_0x2acaf0(0x22f)]=window[_0x2acaf0(0x2b0)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Le);}[_0x151a7c(0x3f7)](_0x5579c4){const _0x1d74a2=_0x151a7c;return this[_0x1d74a2(0x23b)][_0x1d74a2(0x3ff)](_0x5579c4)||this['_unitStatus']['set'](_0x5579c4,new d[(_0x1d74a2(0x1dd))](u['UnitStatus'][_0x1d74a2(0x30b)])),this[_0x1d74a2(0x23b)]['get'](_0x5579c4);}}var ke=(_0x32ffd0=>(_0x32ffd0[_0x32ffd0[_0x151a7c(0x2a6)]=0x0]='UNDEFINED',_0x32ffd0[_0x32ffd0['OK']=0x1]='OK',_0x32ffd0[_0x32ffd0[_0x151a7c(0x235)]=0x2]=_0x151a7c(0x235),_0x32ffd0[_0x32ffd0[_0x151a7c(0x32a)]=0x3]=_0x151a7c(0x32a),_0x32ffd0[_0x32ffd0['NOT_FOUND']=0x4]=_0x151a7c(0x278),_0x32ffd0[_0x32ffd0[_0x151a7c(0x33b)]=0x5]=_0x151a7c(0x33b),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2b7)]=0x6]='ALREADY_EXISTS',_0x32ffd0[_0x32ffd0[_0x151a7c(0x40c)]=0x7]=_0x151a7c(0x40c),_0x32ffd0[_0x32ffd0['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x32ffd0[_0x32ffd0[_0x151a7c(0x204)]=0x9]=_0x151a7c(0x204),_0x32ffd0[_0x32ffd0['LOGIN_FAILED']=0xa]=_0x151a7c(0x24e),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1fe)]=0x1389]=_0x151a7c(0x1fe),_0x32ffd0[_0x32ffd0['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x151a7c(0x1c4),_0x32ffd0[_0x32ffd0['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x151a7c(0x3a7),_0x32ffd0[_0x32ffd0[_0x151a7c(0x306)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x32ffd0[_0x32ffd0[_0x151a7c(0x1ad)]=0x1b59]=_0x151a7c(0x1ad),_0x32ffd0[_0x32ffd0[_0x151a7c(0x254)]=0x1b5a]=_0x151a7c(0x254),_0x32ffd0[_0x32ffd0[_0x151a7c(0x243)]=0x1b5b]=_0x151a7c(0x243),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1fd)]=0x1b5c]=_0x151a7c(0x1fd),_0x32ffd0[_0x32ffd0[_0x151a7c(0x240)]=0x1b5d]=_0x151a7c(0x240),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1f8)]=0x1f41]=_0x151a7c(0x1f8),_0x32ffd0[_0x32ffd0['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x151a7c(0x2c9),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3d2)]=0x232a]=_0x151a7c(0x3d2),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3a8)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x32ffd0[_0x32ffd0[_0x151a7c(0x3e9)]=0x232c]=_0x151a7c(0x3e9),_0x32ffd0[_0x32ffd0[_0x151a7c(0x34f)]=0x232d]=_0x151a7c(0x34f),_0x32ffd0[_0x32ffd0[_0x151a7c(0x19c)]=0x2711]=_0x151a7c(0x19c),_0x32ffd0[_0x32ffd0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x151a7c(0x212),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3e3)]=0x2713]=_0x151a7c(0x3e3),_0x32ffd0[_0x32ffd0['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x151a7c(0x2c1),_0x32ffd0[_0x32ffd0[_0x151a7c(0x347)]=0x271a]=_0x151a7c(0x347),_0x32ffd0[_0x32ffd0[_0x151a7c(0x34a)]=0x271b]=_0x151a7c(0x34a),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1f3)]=0x2af9]=_0x151a7c(0x1f3),_0x32ffd0[_0x32ffd0[_0x151a7c(0x29c)]=0x2ee1]=_0x151a7c(0x29c),_0x32ffd0[_0x32ffd0[_0x151a7c(0x251)]=0x2ee2]=_0x151a7c(0x251),_0x32ffd0[_0x32ffd0['INVITE_CODE_REQUIRED']=0x2ee3]=_0x151a7c(0x22a),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2fe)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x32ffd0[_0x32ffd0['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x151a7c(0x269),_0x32ffd0[_0x32ffd0[_0x151a7c(0x28f)]=0x32c9]=_0x151a7c(0x28f),_0x32ffd0[_0x32ffd0['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x151a7c(0x2be),_0x32ffd0[_0x32ffd0[_0x151a7c(0x28b)]=0x32cb]=_0x151a7c(0x28b),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2f8)]=-0x1]='UNRECOGNIZED',_0x32ffd0))(ke||{}),_s=Object[_0x151a7c(0x300)],hs=(_0x39d4a0,_0xb4e74d,_0x4f0400,_0x44450b)=>{const _0x413403=_0x151a7c;for(var _0x13bfd6=_0x44450b>0x1?void 0x0:_0x44450b?_s(_0xb4e74d,_0x4f0400):_0xb4e74d,_0x17a785=_0x39d4a0[_0x413403(0x3b3)]-0x1,_0x4cb13f;_0x17a785>=0x0;_0x17a785--)(_0x4cb13f=_0x39d4a0[_0x17a785])&&(_0x13bfd6=_0x4cb13f(_0x13bfd6)||_0x13bfd6);return _0x13bfd6;},de=(_0x298000,_0x33b490)=>(_0x16b777,_0x44109d)=>_0x33b490(_0x16b777,_0x44109d,_0x298000);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x3edd54,_0x1a7fec,_0x18d04d){const _0xfb0e03=_0x151a7c;super(),this[_0xfb0e03(0x405)]=_0x3edd54,this[_0xfb0e03(0x19f)]=_0x1a7fec,this['_configService']=_0x18d04d;}async[_0x151a7c(0x279)](_0x187e95,_0x1b37b5,_0x25df05,..._0xc5cfac){const _0x3bb337=_0x151a7c;var _0x2361cf,_0x1936a0,_0x29c2a6,_0x36eb7c;const _0x437802=this[_0x3bb337(0x405)][_0x3bb337(0x34c)]();if(!_0x437802)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x596703=((_0x2361cf=this[_0x3bb337(0x3e4)]['getConfig'](u[_0x3bb337(0x266)]))!=null?_0x2361cf:u[_0x3bb337(0x20b)])+'/'+_0x187e95+'/run/'+_0x1b37b5,_0x1974d0=new URL(window[_0x3bb337(0x274)][_0x3bb337(0x34b)]),_0x1f6b43={'scriptId':_0x187e95,'runId':(_0x1936a0=_0x1974d0['searchParams'][_0x3bb337(0x35b)](_0x3bb337(0x3b2)))!=null?_0x1936a0:'','function':_0x1b37b5,'unitId':_0x437802[_0x3bb337(0x27f)](),'argsOfFunction':JSON[_0x3bb337(0x3fb)](_0xc5cfac),'invokeId':(_0x29c2a6=_0x25df05[_0x3bb337(0x1db)])!=null?_0x29c2a6:'','executionId':(_0x36eb7c=_0x25df05[_0x3bb337(0x2fc)])!=null?_0x36eb7c:''};try{const _0xd4da7=await this['_httpService']['post'](_0x596703,{'body':_0x1f6b43});return _0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x389)]&&_0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x389)][_0x3bb337(0x352)]!==ke['OK']?'Failed':_0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x29e)];}catch{return _0x3bb337(0x3c8);}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x151a7c(0x1e8)]),de(0x1,a['Inject'](q[_0x151a7c(0x3b1)])),de(0x2,a[_0x151a7c(0x2a9)])],exports['RemoteUniscriptService']),exports[_0x151a7c(0x38a)]=je,exports[_0x151a7c(0x265)]=Ee,exports[_0x151a7c(0x2e6)]=Ae,exports[_0x151a7c(0x3e1)]=ls,exports[_0x151a7c(0x1a4)]=Be;
1
+ 'use strict';const _0x5f41c4=_0x5234;(function(_0x3a84a4,_0x52f711){const _0x3e7a6c=_0x5234,_0x37d581=_0x3a84a4();while(!![]){try{const _0x3e7c3c=-parseInt(_0x3e7a6c(0x16c))/0x1*(-parseInt(_0x3e7a6c(0x324))/0x2)+-parseInt(_0x3e7a6c(0x163))/0x3+parseInt(_0x3e7a6c(0x277))/0x4+-parseInt(_0x3e7a6c(0x30a))/0x5*(parseInt(_0x3e7a6c(0x2f4))/0x6)+-parseInt(_0x3e7a6c(0x1ac))/0x7+-parseInt(_0x3e7a6c(0x34d))/0x8*(parseInt(_0x3e7a6c(0x2a4))/0x9)+-parseInt(_0x3e7a6c(0x254))/0xa*(-parseInt(_0x3e7a6c(0x22a))/0xb);if(_0x3e7c3c===_0x52f711)break;else _0x37d581['push'](_0x37d581['shift']());}catch(_0xb16a3b){_0x37d581['push'](_0x37d581['shift']());}}}(_0x94aa,0xe1f00));var Xe=Object[_0x5f41c4(0x310)],Ge=(_0x23d342,_0x3a3982,_0x39d0d7)=>_0x3a3982 in _0x23d342?Xe(_0x23d342,_0x3a3982,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39d0d7}):_0x23d342[_0x3a3982]=_0x39d0d7,_=(_0x28885d,_0x3340bf,_0x1bd681)=>Ge(_0x28885d,typeof _0x3340bf!=_0x5f41c4(0x282)?_0x3340bf+'':_0x3340bf,_0x1bd681);Object[_0x5f41c4(0x310)](exports,Symbol['toStringTag'],{'value':_0x5f41c4(0x1d4)});const u=require(_0x5f41c4(0x2de)),a=require(_0x5f41c4(0x329)),p=require(_0x5f41c4(0x198)),q=require('@univerjs/network'),b=require(_0x5f41c4(0x2fc)),qe=require(_0x5f41c4(0x15a)),d=require('rxjs'),Y=require(_0x5f41c4(0x211)),m=require(_0x5f41c4(0x2dd)),Te=require(_0x5f41c4(0x144)),g=require(_0x5f41c4(0x2a0)),$=require(_0x5f41c4(0x273)),G=require(_0x5f41c4(0x2e9)),P=require('react/jsx-runtime'),O=require(_0x5f41c4(0x177)),T=require(_0x5f41c4(0x35d)),M=require(_0x5f41c4(0x30e)),Ke=require(_0x5f41c4(0x11b));var ze=Object[_0x5f41c4(0x16f)],Je=(_0x38840a,_0xfe5fc8,_0x87d8c6,_0x3dd024)=>{const _0x469f7b=_0x5f41c4;for(var _0x2860a1=_0x3dd024>0x1?void 0x0:_0x3dd024?ze(_0xfe5fc8,_0x87d8c6):_0xfe5fc8,_0xb5c072=_0x38840a[_0x469f7b(0x1c8)]-0x1,_0x597eef;_0xb5c072>=0x0;_0xb5c072--)(_0x597eef=_0x38840a[_0xb5c072])&&(_0x2860a1=_0x597eef(_0x2860a1)||_0x2860a1);return _0x2860a1;},Oe=(_0x4516c7,_0x36f0d6)=>(_0x4400db,_0x284b95)=>_0x36f0d6(_0x4400db,_0x284b95,_0x4516c7);let fe=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x328d27,_0xeb41a4){const _0x7a5bf3=_0x5f41c4;super(),this[_0x7a5bf3(0x33a)]=_0x328d27,this[_0x7a5bf3(0x36f)]=_0xeb41a4,this[_0x7a5bf3(0x185)]();}[_0x5f41c4(0x185)](){const _0x3341a8=_0x5f41c4,_0xefd278=this;this['disposeWithMe'](this[_0x3341a8(0x33a)]['addClipboardHook']({'onBeforePasteImage':async _0x75d922=>{const _0x5bb290=_0x3341a8,_0x571285=await _0xefd278[_0x5bb290(0x36f)][_0x5bb290(0x267)](_0x75d922);return _0x571285?{'source':_0x571285[_0x5bb290(0x2f8)],'imageSourceType':_0x571285[_0x5bb290(0x323)]}:null;}}));}};fe=Je([Oe(0x0,b['IDocClipboardService']),Oe(0x1,qe[_0x5f41c4(0x2ff)])],fe);const Re=[_0x5f41c4(0x1a7),_0x5f41c4(0x2cb),_0x5f41c4(0x265),_0x5f41c4(0x2a2),_0x5f41c4(0x11c),_0x5f41c4(0x2a5)];class Ce extends a[_0x5f41c4(0x153)]{constructor(){const _0x1a6fb0=_0x5f41c4;super(...arguments),_(this,_0x1a6fb0(0x132),new Map()),_(this,_0x1a6fb0(0x118),0x0);}[_0x5f41c4(0x114)](_0x1c45ff){const _0x1d7608=_0x5f41c4;if(this['_assignedColors'][_0x1d7608(0x287)](_0x1c45ff))return this[_0x1d7608(0x132)]['get'](_0x1c45ff);const _0x630e02=Re[this[_0x1d7608(0x118)]];return this[_0x1d7608(0x118)]=(this[_0x1d7608(0x118)]+0x1)%Re['length'],this[_0x1d7608(0x132)][_0x1d7608(0x28c)](_0x1c45ff,_0x630e02),_0x630e02;}}function we(_0x71720){const _0x2f0b92=_0x5f41c4;let _0x4f4fc8='';for(const _0x23210a of _0x71720){const {startOffset:_0xd6f1ef,endOffset:_0x9da337,isActive:_0x499401,rangeType:_0x320873,segmentId:_0x44d00c,segmentPage:_0x4d7751}=_0x23210a;_0x4f4fc8[_0x2f0b92(0x1c8)]&&(_0x4f4fc8+=','),_0x4f4fc8+=_0xd6f1ef+':'+_0x9da337+':'+(_0x499401?'1':'0')+':'+_0x320873+':'+_0x44d00c+':'+_0x4d7751;}return _0x4f4fc8;}function Ze(_0x267fa4){const _0x246e42=_0x5f41c4,_0x1bfd1b=_0x267fa4[_0x246e42(0x17e)](','),_0x406711=[];for(const _0x1755ad of _0x1bfd1b){const [_0x5cf5cc,_0x56b712,_0xe691ae,_0x533d92,_0x1bd6ed,_0x5bdb4c]=_0x1755ad['split'](':');_0x406711['push']({'startOffset':Number(_0x5cf5cc),'endOffset':Number(_0x56b712),'collapsed':_0x5cf5cc===_0x56b712,'isActive':_0xe691ae==='1','rangeType':_0x533d92===a[_0x246e42(0x266)][_0x246e42(0x1b4)]?a['DOC_RANGE_TYPE'][_0x246e42(0x1b4)]:a['DOC_RANGE_TYPE'][_0x246e42(0x216)],'segmentId':typeof _0x1bd6ed==_0x246e42(0x344)?String(_0x1bd6ed):'','segmentPage':Number(_0x5bdb4c!=null?_0x5bdb4c:-0x1)});}return _0x406711[_0x246e42(0x143)](_0x4a47c3=>_0x4a47c3['isActive'])||(_0x406711[0x0][_0x246e42(0xff)]=!0x0),_0x406711;}class pe extends a[_0x5f41c4(0x2ef)]{constructor(){const _0x15e570=_0x5f41c4;super(...arguments),_(this,_0x15e570(0x375),new d[(_0x15e570(0x359))](null)),_(this,_0x15e570(0x27b),this[_0x15e570(0x375)][_0x15e570(0x174)]());}[_0x5f41c4(0x1aa)](_0x1576c5){const _0x99e891=_0x5f41c4,{unitID:_0xb635a2,memberID:_0x4a220a,textRanges:_0x200ee6}=_0x1576c5,_0x47c942=we(_0x200ee6);if(_0x47c942==='')return;const _0x1e0067={'unitID':_0xb635a2,'memberID':_0x4a220a,'selection':_0x47c942};this[_0x99e891(0x375)][_0x99e891(0x226)](_0x1e0067);}}var Qe=Object[_0x5f41c4(0x16f)],et=(_0x703dc8,_0x15e806,_0x9905e1,_0x10d16a)=>{const _0x2c832b=_0x5f41c4;for(var _0x133408=_0x10d16a>0x1?void 0x0:_0x10d16a?Qe(_0x15e806,_0x9905e1):_0x15e806,_0x3114e0=_0x703dc8[_0x2c832b(0x1c8)]-0x1,_0x5ea83d;_0x3114e0>=0x0;_0x3114e0--)(_0x5ea83d=_0x703dc8[_0x3114e0])&&(_0x133408=_0x5ea83d(_0x133408)||_0x133408);return _0x133408;},L=(_0x5ab9c1,_0x37a583)=>(_0x52023d,_0x3d89e4)=>_0x37a583(_0x52023d,_0x3d89e4,_0x5ab9c1);const tt=0x12c,st=0x64;let Se=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x528dd3,_0x78c8ab,_0x3e8e2a,_0x3e0a44,_0xb6aac4,_0x576307,_0x5940dc,_0xfa8369,_0x27e579){const _0x14a075=_0x5f41c4;super(),_(this,_0x14a075(0x2bf),!0x1),_(this,_0x14a075(0x185),!0x1),_(this,_0x14a075(0x25a),new d['BehaviorSubject'](new Map())),_(this,_0x14a075(0x2eb),this[_0x14a075(0x25a)][_0x14a075(0x174)]()),_(this,'_roomMembers$',new d[(_0x14a075(0x359))]([])),_(this,_0x14a075(0x264),this[_0x14a075(0xfb)]['pipe'](d['debounceTime'](tt))),_(this,_0x14a075(0x131),a[_0x14a075(0x24c)](_0x51ca22=>{const _0x4e67d5=_0x14a075,_0x46c878={'eventID':m['CollaborationEvent'][_0x4e67d5(0x129)],'data':{'unitID':this[_0x4e67d5(0x2e6)],'memberID':this[_0x4e67d5(0x2f6)][_0x4e67d5(0x24b)](),'selection':we(_0x51ca22)}};this[_0x4e67d5(0x2f6)][_0x4e67d5(0x2b8)](_0x46c878,this[_0x4e67d5(0x2e6)]);},st)),(this['unitID']=_0x528dd3,this['_session']=_0x78c8ab,this['_injector']=_0x3e8e2a,this[_0x14a075(0x146)]=_0x3e0a44,this[_0x14a075(0x166)]=_0xb6aac4,this[_0x14a075(0x27e)]=_0x576307,this[_0x14a075(0x368)]=_0x5940dc,this['_univerInstanceService']=_0xfa8369,this[_0x14a075(0x15e)]=_0x27e579);}get[_0x5f41c4(0x2c3)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x4d0277=_0x5f41c4;return this['_roomMembers$'][_0x4d0277(0x224)]();}[_0x5f41c4(0x2c9)](){const _0x45df9d=_0x5f41c4;super[_0x45df9d(0x2c9)](),this[_0x45df9d(0x25a)]['next'](new Map()),this[_0x45df9d(0x25a)][_0x45df9d(0x33f)](),this[_0x45df9d(0xfb)]['next']([]),this[_0x45df9d(0xfb)][_0x45df9d(0x33f)]();}[_0x5f41c4(0x308)](){const _0x26efc0=_0x5f41c4;this['_init']||(this[_0x26efc0(0x185)]=!0x0,this[_0x26efc0(0x2f6)][_0x26efc0(0x35a)][_0x26efc0(0x1ce)](d['takeUntil'](this[_0x26efc0(0x18a)]))[_0x26efc0(0x309)](_0x3829fd=>{const _0x4afcb1=_0x26efc0;_0x3829fd===u[_0x4afcb1(0x1c0)][_0x4afcb1(0x184)]?this['_toggleOnline']():this[_0x4afcb1(0x233)]();}),this[_0x26efc0(0x2f6)]['event$']['pipe'](d[_0x26efc0(0x172)](this[_0x26efc0(0x18a)]))[_0x26efc0(0x309)](_0x11713b=>{const _0x43d3fe=_0x26efc0,_0x5c25dd=_0x11713b[_0x43d3fe(0x112)];_0x5c25dd===m[_0x43d3fe(0x231)][_0x43d3fe(0x129)]&&this[_0x43d3fe(0x363)](_0x11713b),_0x5c25dd===m[_0x43d3fe(0x231)][_0x43d3fe(0x108)]&&this['_onCursorDelete'](_0x11713b);}),this['disposeWithMe'](this[_0x26efc0(0x15e)][_0x26efc0(0x356)](_0xd1d6be=>{const _0x1a7358=_0x26efc0,_0x496de4=_0xd1d6be[_0x1a7358(0x22e)];_0x496de4!=null&&this['_online']&&_0xd1d6be['id']===Y['SetTextSelectionsOperation']['id']&&_0x496de4[_0x1a7358(0x1ed)]===this[_0x1a7358(0x2e6)]&&_0x496de4[_0x1a7358(0x286)]===!0x1&&_0x496de4[_0x1a7358(0x202)][_0x1a7358(0x1c8)]>0x0&&this[_0x1a7358(0x131)](_0x496de4[_0x1a7358(0x202)]);})),this['_syncEditingCollabCursorService'][_0x26efc0(0x27b)][_0x26efc0(0x1ce)](d['takeUntil'](this[_0x26efc0(0x18a)]))[_0x26efc0(0x309)](_0x41c8d9=>{const _0x5004f9=_0x26efc0;if((_0x41c8d9==null?void 0x0:_0x41c8d9[_0x5004f9(0x2e6)])!==this[_0x5004f9(0x2e6)])return;const _0x190174={'eventID':m['CollaborationEvent'][_0x5004f9(0x129)],'data':_0x41c8d9};this[_0x5004f9(0x363)](_0x190174);}),this[_0x26efc0(0x30b)](this[_0x26efc0(0x15e)][_0x26efc0(0x356)](_0x35f7e5=>{const _0x2b3d2a=_0x26efc0;if(_0x35f7e5['params']==null)return;const _0x1ed89c=_0x35f7e5[_0x2b3d2a(0x22e)];if(_0x35f7e5['id']!==Y[_0x2b3d2a(0x1f6)]['id']||_0x1ed89c['unitId']!==this[_0x2b3d2a(0x2e6)])return;const _0x1ea395={'id':_0x2b3d2a(0x1bb),'params':_0x1ed89c},_0x3e28df=this['cursorInfo'];for(const [_0x4cf29a,_0x18ae67]of _0x3e28df){const _0x5b042b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2b3d2a(0x2e6)],'actions':null,'textRanges':_0x18ae67[_0x2b3d2a(0x202)]}},_0x373dfe=this[_0x2b3d2a(0x368)][_0x2b3d2a(0x2a8)](_0x1ea395,_0x5b042b,!0x1);if(m[_0x2b3d2a(0x305)](_0x373dfe))throw _0x373dfe[_0x2b3d2a(0x189)];_0x3e28df['set'](_0x4cf29a,{..._0x18ae67,'ranges':_0x373dfe['m2Prime'][_0x2b3d2a(0x22e)][_0x2b3d2a(0x33d)]});}queueMicrotask(()=>{const _0x4a0eae=_0x2b3d2a;this['_cursorInfo$'][_0x4a0eae(0x226)](_0x3e28df);});})));}['_onCursorUpdate'](_0x16e725){const _0x15413c=_0x5f41c4;var _0x15cb67,_0x4bbbda;const {memberID:_0x54e393,selection:_0x4cd6c4}=_0x16e725[_0x15413c(0xfd)],_0x4e7b7f=Ze(_0x4cd6c4),_0x48f7b6=(_0x4bbbda=(_0x15cb67=this[_0x15413c(0x166)][_0x15413c(0x336)](this['unitID'],_0x54e393))==null?void 0x0:_0x15cb67[_0x15413c(0x347)])!=null?_0x4bbbda:_0x15413c(0x281),_0x3c21f4={'color':this[_0x15413c(0x146)][_0x15413c(0x114)](_0x54e393),'name':_0x48f7b6,'ranges':_0x4e7b7f},_0x50a932=this[_0x15413c(0x2c3)];_0x50a932['set'](_0x54e393,_0x3c21f4),this[_0x15413c(0x25a)][_0x15413c(0x226)](_0x50a932);}['_onCursorDelete'](_0xe044df){const _0x2e2ebd=_0x5f41c4,{memberID:_0x39c57d}=_0xe044df[_0x2e2ebd(0xfd)],_0x2c90a1=this['cursorInfo'];_0x2c90a1[_0x2e2ebd(0x1d1)](_0x39c57d),this[_0x2e2ebd(0x25a)][_0x2e2ebd(0x226)](_0x2c90a1);}[_0x5f41c4(0x27f)](){const _0x5b6a07=_0x5f41c4;var _0x5a4a4f;if(this[_0x5b6a07(0x2bf)]=!0x0,((_0x5a4a4f=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x5a4a4f[_0x5b6a07(0x2da)]())!==this[_0x5b6a07(0x2e6)])return;const _0x408998=this[_0x5b6a07(0x2b3)][_0x5b6a07(0x1f5)](Y[_0x5b6a07(0x28e)])['getDocRanges']();Array[_0x5b6a07(0x1c5)](_0x408998)&&_0x408998[_0x5b6a07(0x1c8)]>0x0&&this[_0x5b6a07(0x131)](_0x408998);}[_0x5f41c4(0x233)](){const _0x2a6377=_0x5f41c4;this[_0x2a6377(0x2bf)]=!0x1;}};Se=et([L(0x2,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),L(0x3,a['Inject'](Ce)),L(0x4,a['Inject'](u[_0x5f41c4(0x1bc)])),L(0x5,a[_0x5f41c4(0x180)](pe)),L(0x6,m[_0x5f41c4(0x2d3)]),L(0x7,a[_0x5f41c4(0x164)]),L(0x8,a['ICommandService'])],Se);var nt=Object[_0x5f41c4(0x16f)],it=(_0x321292,_0x55bbeb,_0x299dde,_0xe32d5)=>{const _0x1283da=_0x5f41c4;for(var _0x5aae65=_0xe32d5>0x1?void 0x0:_0xe32d5?nt(_0x55bbeb,_0x299dde):_0x55bbeb,_0x52cd1c=_0x321292[_0x1283da(0x1c8)]-0x1,_0x5353f4;_0x52cd1c>=0x0;_0x52cd1c--)(_0x5353f4=_0x321292[_0x52cd1c])&&(_0x5aae65=_0x5353f4(_0x5aae65)||_0x5aae65);return _0x5aae65;},A=(_0xa5d188,_0xd2f27c)=>(_0x145981,_0x3d79b0)=>_0xd2f27c(_0x145981,_0x3d79b0,_0xa5d188);const rt=0x12c,ot=0x64,at=()=>{let _0x5f17e6=[],_0x2313d2=!0x1;return _0x5e4b65=>{const _0x247611=_0x5234;_0x5f17e6[_0x247611(0x27d)](_0x5e4b65),_0x2313d2||(_0x2313d2=!0x0,setTimeout(()=>{const _0x3bb395=_0x247611;_0x5f17e6[_0x3bb395(0x334)](_0x36c450=>_0x36c450()),_0x5f17e6=[],_0x2313d2=!0x1;}));};};let Ie=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x454c51,_0x4db908,_0x4fbf5,_0x55247b,_0x4e226c,_0x23cb92,_0x1c0135,_0x360f75){const _0x5e1f4d=_0x5f41c4;super(),_(this,_0x5e1f4d(0x2bf),!0x1),_(this,_0x5e1f4d(0x185),!0x1),_(this,_0x5e1f4d(0x25a),new d['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x5e1f4d(0x25a)][_0x5e1f4d(0x174)]()),_(this,_0x5e1f4d(0xfb),new d['BehaviorSubject']([])),_(this,_0x5e1f4d(0x264),this[_0x5e1f4d(0xfb)][_0x5e1f4d(0x1ce)](d['debounceTime'](rt))),_(this,_0x5e1f4d(0x131),a['debounce']((_0x6a77de,_0x3b2d4b)=>{const _0x26acfc=_0x5e1f4d,_0x49abbf={'eventID':m[_0x26acfc(0x231)][_0x26acfc(0x129)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Te[_0x26acfc(0x208)](_0x6a77de,_0x3b2d4b['range'])}};this[_0x26acfc(0x2f6)][_0x26acfc(0x2b8)](_0x49abbf,this[_0x26acfc(0x2e6)]);},ot)),(this['unitID']=_0x454c51,this[_0x5e1f4d(0x2f6)]=_0x4db908,this[_0x5e1f4d(0x2b3)]=_0x4fbf5,this[_0x5e1f4d(0x146)]=_0x55247b,this[_0x5e1f4d(0x166)]=_0x4e226c,this[_0x5e1f4d(0x1dd)]=_0x23cb92,this['_commandService']=_0x1c0135,this[_0x5e1f4d(0x187)]=_0x360f75);}get['cursorInfo'](){const _0x1fc7cd=_0x5f41c4;return this[_0x1fc7cd(0x25a)][_0x1fc7cd(0x224)]();}get['roomMembers'](){const _0x16d314=_0x5f41c4;return this[_0x16d314(0xfb)][_0x16d314(0x224)]();}['dispose'](){const _0x20c258=_0x5f41c4;super[_0x20c258(0x2c9)](),this[_0x20c258(0x25a)]['next'](new Map()),this[_0x20c258(0x25a)][_0x20c258(0x33f)](),this[_0x20c258(0xfb)][_0x20c258(0x226)]([]),this['_roomMembers$'][_0x20c258(0x33f)]();}[_0x5f41c4(0x308)](){const _0x1ffc89=_0x5f41c4;this[_0x1ffc89(0x185)]||(this[_0x1ffc89(0x185)]=!0x0,this[_0x1ffc89(0x2f6)][_0x1ffc89(0x35a)][_0x1ffc89(0x1ce)](d[_0x1ffc89(0x172)](this['dispose$']))[_0x1ffc89(0x309)](_0x16f300=>{const _0x47169e=_0x1ffc89;_0x16f300===u[_0x47169e(0x1c0)][_0x47169e(0x184)]?this[_0x47169e(0x27f)]():this[_0x47169e(0x233)]();}),this[_0x1ffc89(0x2f6)][_0x1ffc89(0x191)][_0x1ffc89(0x1ce)](d[_0x1ffc89(0x172)](this[_0x1ffc89(0x18a)]))[_0x1ffc89(0x309)](_0x4d0c4f=>{const _0x30e08c=_0x1ffc89,_0x1bf67e=_0x4d0c4f[_0x30e08c(0x112)];_0x1bf67e===m[_0x30e08c(0x231)][_0x30e08c(0x129)]&&this[_0x30e08c(0x363)](_0x4d0c4f),_0x1bf67e===m[_0x30e08c(0x231)][_0x30e08c(0x108)]&&this[_0x30e08c(0x1af)](_0x4d0c4f);}),this[_0x1ffc89(0x101)](),this[_0x1ffc89(0x30b)](this[_0x1ffc89(0x15e)]['onCommandExecuted'](_0x23cc7d=>{const _0x43534f=_0x1ffc89;if(this[_0x43534f(0x2bf)]&&_0x23cc7d['id']===g[_0x43534f(0x130)]['id']&&_0x23cc7d[_0x43534f(0x22e)]['unitId']===this[_0x43534f(0x2e6)]){const _0x3c3bf0=_0x23cc7d[_0x43534f(0x22e)];this['_updateLocalCursor'](_0x3c3bf0[_0x43534f(0x235)],_0x3c3bf0['selections'][0x0]);}})));}[_0x5f41c4(0x363)](_0x273567){const _0x3b2fc1=_0x5f41c4;var _0x172fe6,_0xe82daa;const {memberID:_0x10a854,selection:_0x6b8e91}=_0x273567[_0x3b2fc1(0xfd)],{sheetName:_0x569365,range:_0x5c7937}=Te[_0x3b2fc1(0x283)](_0x6b8e91),_0x26795d={'name':(_0xe82daa=(_0x172fe6=this[_0x3b2fc1(0x166)][_0x3b2fc1(0x336)](this[_0x3b2fc1(0x2e6)],_0x10a854))==null?void 0x0:_0x172fe6['name'])!=null?_0xe82daa:_0x3b2fc1(0x281),'range':this['_getMergeRange'](_0x569365,_0x5c7937),'sheetID':_0x569365,'color':this['_colorAssignService'][_0x3b2fc1(0x114)](_0x10a854),'selection':_0x6b8e91},_0x1f7da6=this[_0x3b2fc1(0x2c3)];_0x1f7da6[_0x3b2fc1(0x28c)](_0x10a854,_0x26795d),this[_0x3b2fc1(0x25a)][_0x3b2fc1(0x226)](_0x1f7da6);}[_0x5f41c4(0x1af)](_0x17f765){const _0xbf75e9=_0x5f41c4,{memberID:_0x895f72}=_0x17f765[_0xbf75e9(0xfd)],_0x5e611=this[_0xbf75e9(0x2c3)];_0x5e611[_0xbf75e9(0x1d1)](_0x895f72),this[_0xbf75e9(0x25a)][_0xbf75e9(0x226)](_0x5e611);}[_0x5f41c4(0x300)](_0x4ee0b4,_0x57f5d8){const _0x4328f6=_0x5f41c4;var _0x3b31fa,_0x7ab4b0;const _0x3a1699=(_0x7ab4b0=(_0x3b31fa=this[_0x4328f6(0x1dd)][_0x4328f6(0x252)](this['unitID']))==null?void 0x0:_0x3b31fa[_0x4328f6(0x123)](_0x4ee0b4))==null?void 0x0:_0x7ab4b0[_0x4328f6(0x2f2)]();return(_0x3a1699==null?void 0x0:_0x3a1699[_0x4328f6(0x1fb)](_0x46b8c1=>a['Rectangle'][_0x4328f6(0x1e6)](_0x46b8c1,_0x57f5d8)))||_0x57f5d8;}[_0x5f41c4(0x101)](){const _0x2aa03d=_0x5f41c4,_0x5a7b06=new a[(_0x2aa03d(0x1ee))](),_0x3cf8cd=at(),_0xa62138=()=>{const _0x21527f=_0x2aa03d;_0x5a7b06[_0x21527f(0x2c9)]();const _0x4ee5d6=(_0x27f187,_0x599425,_0x4f0bea,_0x4034c2)=>{const _0x26a00a=_0x21527f;let _0x347d68=[];switch(_0x27f187['id']){case g[_0x26a00a(0x360)]['DeleteRangeMoveLeftCommandId']:{_0x347d68=g[_0x26a00a(0x263)](_0x27f187,_0x4034c2);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x347d68=g[_0x26a00a(0x1b0)](_0x27f187,_0x4034c2);break;}case g[_0x26a00a(0x360)][_0x26a00a(0x24a)]:{_0x347d68=g['handleInsertCol'](_0x27f187,_0x4034c2);break;}case g[_0x26a00a(0x360)]['InsertRangeMoveDownCommandId']:{_0x347d68=g['handleInsertRangeMoveDown'](_0x27f187,_0x4034c2);break;}case g[_0x26a00a(0x360)][_0x26a00a(0x299)]:{_0x347d68=g[_0x26a00a(0x1e9)](_0x27f187,_0x4034c2);break;}case g['EffectRefRangId'][_0x26a00a(0x307)]:{_0x347d68=g[_0x26a00a(0x1a4)](_0x27f187,_0x4034c2);break;}case g['EffectRefRangId'][_0x26a00a(0x2b2)]:{_0x347d68=g[_0x26a00a(0x32e)](_0x27f187,_0x4034c2);break;}case g['EffectRefRangId']['RemoveColCommandId']:{_0x347d68=g['handleIRemoveCol'](_0x27f187,_0x4034c2);break;}case g[_0x26a00a(0x360)]['RemoveRowCommandId']:{_0x347d68=g[_0x26a00a(0x121)](_0x27f187,_0x4034c2);break;}}const _0x2a170a=g[_0x26a00a(0x253)](_0x347d68,_0x4034c2),_0x260590=this['cursorInfo']['get'](_0x599425);if(_0x260590&&_0x2a170a){const _0x3ab378={..._0x260590,'range':_0x2a170a};this[_0x26a00a(0x2c3)]['set'](_0x599425,_0x3ab378),_0x3cf8cd(()=>{const _0x5aae88=_0x26a00a,_0x5baa25=this[_0x5aae88(0x187)][_0x5aae88(0x171)](_0x2a170a,_0x5afe00=>(_0x5baa25['dispose'](),_0x4ee5d6(_0x5afe00,_0x599425,_0x4f0bea,_0x2a170a)));_0x5a7b06[_0x5aae88(0x20b)](_0x5baa25);});}return{'redos':[],'undos':[]};};this[_0x21527f(0x2c3)][_0x21527f(0x334)]((_0x54b178,_0x2075ab)=>{const _0x25f4ec=_0x21527f,{range:_0x513e0d,sheetID:_0x2b6ef2}=_0x54b178,_0x448674=this[_0x25f4ec(0x187)][_0x25f4ec(0x171)](_0x513e0d,_0x4b6648=>(_0x448674['dispose'](),_0x4ee5d6(_0x4b6648,_0x2075ab,_0x2b6ef2,_0x513e0d)));_0x5a7b06[_0x25f4ec(0x20b)](_0x448674);});};this[_0x2aa03d(0x30b)](a[_0x2aa03d(0x289)](this['_cursorInfo$']['subscribe'](()=>{_0xa62138();})));}[_0x5f41c4(0x27f)](){const _0x17c623=_0x5f41c4;var _0x4487ae,_0x5b6b98;if(this[_0x17c623(0x2bf)]=!0x0,((_0x4487ae=this[_0x17c623(0x1dd)][_0x17c623(0x2d5)]())==null?void 0x0:_0x4487ae[_0x17c623(0x2da)]())!==this[_0x17c623(0x2e6)])return;const _0xa16585=(_0x5b6b98=this['_injector'][_0x17c623(0x1f5)](g[_0x17c623(0x28f)])['getCurrentSelections']())==null?void 0x0:_0x5b6b98[0x0],_0x4c2bca=this[_0x17c623(0x1dd)][_0x17c623(0x35e)](a[_0x17c623(0x372)]['UNIVER_SHEET'])['getActiveSheet']();_0xa16585&&_0x4c2bca&&this[_0x17c623(0x131)](_0x4c2bca[_0x17c623(0x28b)](),_0xa16585);}[_0x5f41c4(0x233)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x5f41c4(0x180)](a['Injector'])),A(0x3,a[_0x5f41c4(0x180)](Ce)),A(0x4,a[_0x5f41c4(0x180)](u[_0x5f41c4(0x1bc)])),A(0x5,a[_0x5f41c4(0x164)]),A(0x6,a[_0x5f41c4(0x12a)]),A(0x7,a['Inject'](g[_0x5f41c4(0x1da)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x301731,_0x24c898,_0x503c71,_0x2f9557)=>{const _0x41d358=_0x5f41c4;for(var _0x28b1f4=_0x2f9557>0x1?void 0x0:_0x2f9557?ct(_0x24c898,_0x503c71):_0x24c898,_0xef6843=_0x301731[_0x41d358(0x1c8)]-0x1,_0xc3ef98;_0xef6843>=0x0;_0xef6843--)(_0xc3ef98=_0x301731[_0xef6843])&&(_0x28b1f4=_0xc3ef98(_0x28b1f4)||_0x28b1f4);return _0x28b1f4;},ie=(_0x240ba9,_0x4834c1)=>(_0x3aabc2,_0x199827)=>_0x4834c1(_0x3aabc2,_0x199827,_0x240ba9);let x=class extends a['RxDisposable']{constructor(_0x5c0e5a,_0x387119,_0xae8e80){const _0x350cb1=_0x5f41c4;super(),_(this,_0x350cb1(0x341),new Map()),_(this,_0x350cb1(0x1cd),new d[(_0x350cb1(0x221))]()),(this[_0x350cb1(0x1dd)]=_0x5c0e5a,this['_injector']=_0x387119,this[_0x350cb1(0x238)]=_0xae8e80,this[_0x350cb1(0x185)]());}[_0x5f41c4(0x2c9)](){const _0x4847b0=_0x5f41c4;super[_0x4847b0(0x2c9)](),this[_0x4847b0(0x1cd)]['complete'](),this[_0x4847b0(0x341)][_0x4847b0(0x334)](_0xac49ca=>_0xac49ca[_0x4847b0(0x2c9)]());}[_0x5f41c4(0x10e)](_0x3da838){const _0x3d7019=_0x5f41c4;return this['_entities']['has'](_0x3da838)?this[_0x3d7019(0x341)][_0x3d7019(0x1f5)](_0x3da838)[_0x3d7019(0x2eb)]:this['_entityInit$'][_0x3d7019(0x1ce)](d[_0x3d7019(0x10d)](_0x2c5458=>_0x2c5458['unitID']===_0x3da838),d['switchMap'](_0x2511b8=>_0x2511b8['cursorInfo$']));}[_0x5f41c4(0x185)](){const _0x3e3da8=_0x5f41c4;this[_0x3e3da8(0x1dd)][_0x3e3da8(0x194)](a[_0x3e3da8(0x372)]['UNIVER_SHEET'])['pipe'](d['takeUntil'](this[_0x3e3da8(0x18a)]))[_0x3e3da8(0x309)](async _0x55f2d1=>{const _0x1c177e=_0x3e3da8,_0x53ce7f=_0x55f2d1[_0x1c177e(0x2da)](),_0xfbe0b8=await this[_0x1c177e(0x377)](_0x53ce7f);this['_entityInit$'][_0x1c177e(0x226)](_0xfbe0b8),this[_0x1c177e(0x341)]['set'](_0x53ce7f,_0xfbe0b8);}),this[_0x3e3da8(0x1dd)][_0x3e3da8(0x194)](a['UniverInstanceType'][_0x3e3da8(0x257)])[_0x3e3da8(0x1ce)](d[_0x3e3da8(0x172)](this['dispose$']))['pipe'](d['filter'](_0x3ad15b=>!_0x3ad15b[_0x3e3da8(0x2da)]()['startsWith']('__')))[_0x3e3da8(0x309)](async _0x4d141a=>{const _0x5eed2c=_0x3e3da8,_0x449178=_0x4d141a[_0x5eed2c(0x2da)](),_0x307c5b=await this[_0x5eed2c(0x25c)](_0x449178);this[_0x5eed2c(0x1cd)]['next'](_0x307c5b),this['_entities'][_0x5eed2c(0x28c)](_0x449178,_0x307c5b);}),d['merge'](this[_0x3e3da8(0x1dd)][_0x3e3da8(0x26c)](a[_0x3e3da8(0x372)]['UNIVER_DOC']),this[_0x3e3da8(0x1dd)][_0x3e3da8(0x26c)](a['UniverInstanceType'][_0x3e3da8(0x19a)]))[_0x3e3da8(0x1ce)](d[_0x3e3da8(0x172)](this[_0x3e3da8(0x18a)]))[_0x3e3da8(0x309)](_0x5f4462=>{const _0x4ed7b2=_0x3e3da8,_0x2fe6e4=_0x5f4462['getUnitId'](),_0x1b3073=this['_entities'][_0x4ed7b2(0x1f5)](_0x2fe6e4);_0x1b3073&&(_0x1b3073[_0x4ed7b2(0x2c9)](),this[_0x4ed7b2(0x341)][_0x4ed7b2(0x1d1)](_0x2fe6e4));});}async[_0x5f41c4(0x377)](_0x54a4cc){const _0x54023d=_0x5f41c4,_0x2efeec=await this[_0x54023d(0x238)][_0x54023d(0x152)](_0x54a4cc),_0xc4d75=this['_injector']['createInstance'](Ie,_0x54a4cc,_0x2efeec);return _0xc4d75[_0x54023d(0x308)](),_0xc4d75;}async[_0x5f41c4(0x25c)](_0x30d74f){const _0x157f77=_0x5f41c4,_0x3a7384=await this[_0x157f77(0x238)][_0x157f77(0x152)](_0x30d74f),_0x20d614=this[_0x157f77(0x2b3)][_0x157f77(0x1c9)](Se,_0x30d74f,_0x3a7384);return _0x20d614[_0x157f77(0x308)](),_0x20d614;}};x=lt([ie(0x0,a[_0x5f41c4(0x164)]),ie(0x1,a[_0x5f41c4(0x180)](a['Injector'])),ie(0x2,a['Inject'](u[_0x5f41c4(0x15b)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x362816,_0x85424d){const _0x5cd37a=_0x5f41c4;let {radius:_0x17e557,width:_0x190349,height:_0x1d8d0e}=_0x85424d;_0x17e557=_0x17e557!=null?_0x17e557:0x0,_0x190349=_0x190349!=null?_0x190349:0x1e,_0x1d8d0e=_0x1d8d0e!=null?_0x1d8d0e:0x1e;let _0x5f01a5=0x0,_0x44c3fe=0x0,_0x3a9e47=0x0;_0x5f01a5=_0x44c3fe=_0x3a9e47=Math[_0x5cd37a(0x205)](_0x17e557,_0x190349/0x2,_0x1d8d0e/0x2),_0x362816[_0x5cd37a(0x361)](),_0x362816[_0x5cd37a(0x1c2)](_0x5f01a5,0x0),_0x362816[_0x5cd37a(0x2b6)](_0x190349-_0x44c3fe,0x0),_0x362816[_0x5cd37a(0x298)](_0x190349-_0x44c3fe,_0x44c3fe,_0x44c3fe,Math['PI']*0x3/0x2,0x0,!0x1),_0x362816[_0x5cd37a(0x2b6)](_0x190349,_0x1d8d0e-_0x3a9e47),_0x362816[_0x5cd37a(0x298)](_0x190349-_0x3a9e47,_0x1d8d0e-_0x3a9e47,_0x3a9e47,0x0,Math['PI']/0x2,!0x1),_0x362816[_0x5cd37a(0x2b6)](0x0,_0x1d8d0e),_0x362816[_0x5cd37a(0x2b6)](0x0,_0x5f01a5),_0x362816[_0x5cd37a(0x298)](_0x5f01a5,_0x5f01a5,_0x5f01a5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x362816[_0x5cd37a(0x1b7)](),_0x85424d[_0x5cd37a(0x245)]&&(_0x362816[_0x5cd37a(0x1d9)](),_0x362816[_0x5cd37a(0x241)]=_0x85424d['fill'],_0x85424d[_0x5cd37a(0x16a)]===_0x5cd37a(0x161)?_0x362816[_0x5cd37a(0x245)](_0x5cd37a(0x161)):_0x362816['fill'](),_0x362816[_0x5cd37a(0x328)]());}class te extends p[_0x5f41c4(0x139)]{constructor(_0x4fa34b,_0x4cd16c){const _0x2b3f93=_0x5f41c4;super(_0x4fa34b,_0x4cd16c),_(this,_0x2b3f93(0x102)),_(this,'text'),(this[_0x2b3f93(0x102)]=_0x4cd16c==null?void 0x0:_0x4cd16c[_0x2b3f93(0x102)],this[_0x2b3f93(0x23b)]=_0x4cd16c==null?void 0x0:_0x4cd16c[_0x2b3f93(0x23b)]);}static[_0x5f41c4(0x1f9)](_0x461d5a,_0xabd8d6){const _0x2a09f4=_0x5f41c4,{text:_0x53ee72,color:_0x18cc07}=_0xabd8d6;_0x461d5a[_0x2a09f4(0x1d9)](),_0x461d5a[_0x2a09f4(0x32d)]=_0x2a09f4(0x1cc);const _0x6eb2a9=_0x461d5a[_0x2a09f4(0x18c)](_0x53ee72)[_0x2a09f4(0x311)],_0x5b31ab=Math[_0x2a09f4(0x205)](_0x6eb2a9+0x2*re,De);ht(_0x461d5a,{'height':K,'radius':0x4,'width':_0x5b31ab,'fill':_0x18cc07}),_0x461d5a[_0x2a09f4(0x241)]=_0x2a09f4(0x255);const _0x266b03=re,_0x1716d8=K-_t,_0x32e569=De-0x2*re;if(_0x6eb2a9>_0x32e569){let _0x590cdb='',_0x22b902=0x0;for(const _0x207407 of _0x53ee72){const _0xe8970f=_0x461d5a['measureText'](_0x207407)[_0x2a09f4(0x311)];if(_0x22b902+_0xe8970f<=_0x32e569-_0x461d5a[_0x2a09f4(0x18c)](_0x2a09f4(0x234))[_0x2a09f4(0x311)])_0x590cdb+=_0x207407,_0x22b902+=_0xe8970f;else{_0x590cdb+=_0x2a09f4(0x234);break;}}_0x461d5a[_0x2a09f4(0x21d)](_0x590cdb,_0x266b03,_0x1716d8);}else _0x461d5a[_0x2a09f4(0x21d)](_0x53ee72,_0x266b03,_0x1716d8);_0x461d5a[_0x2a09f4(0x328)]();}['_draw'](_0x106de8){const _0xf0bef9=_0x5f41c4;te[_0xf0bef9(0x1f9)](_0x106de8,this);}}const oe='collab-text-anchor-',ut='collab-text-range-',dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x5f41c4(0x293);class Ue{constructor(_0x2f6e6a,_0x4feb80,_0x30d8f9,_0x430010){const _0x245cf2=_0x5f41c4;_(this,_0x245cf2(0x290),[]),_(this,_0x245cf2(0x1a5),null),_(this,_0x245cf2(0x246),null),_(this,'_anchorDot',null),_(this,_0x245cf2(0x314),null),_(this,_0x245cf2(0x111),null),(this['_cursor']=_0x2f6e6a,this[_0x245cf2(0x23d)]=_0x4feb80,this['_docSkeleton']=_0x30d8f9,this[_0x245cf2(0x31f)]=_0x430010,this['_render']());}set[_0x5f41c4(0x262)](_0x219950){const _0x2937b9=_0x5f41c4;_0x219950?(this['_anchorDot']&&this['_anchorDot'][_0x2937b9(0x148)](),this['_textBubble']&&this[_0x2937b9(0x246)][_0x2937b9(0x2b1)]()):(this[_0x2937b9(0x32f)]&&this[_0x2937b9(0x32f)]['show'](),this[_0x2937b9(0x246)]&&this[_0x2937b9(0x246)]['hide']());}[_0x5f41c4(0x2c9)](){const _0x22c6ec=_0x5f41c4;for(const _0x22f1f9 of this['_shapes'])_0x22f1f9[_0x22c6ec(0x2c9)]();this[_0x22c6ec(0x246)]&&this['_textBubble']['dispose'](),this[_0x22c6ec(0x32f)]&&this[_0x22c6ec(0x32f)][_0x22c6ec(0x2c9)](),this[_0x22c6ec(0x1a5)]&&this['_anchor'][_0x22c6ec(0x2c9)](),this[_0x22c6ec(0x111)]&&this[_0x22c6ec(0x111)]();}['_render'](){const _0x191540=_0x5f41c4;var _0x1df871;const {_docSkeleton:_0x4c6f37,_document:_0x5d82f4}=this,{color:_0x3dcee8,name:_0x284000,ranges:_0x35e467}=this[_0x191540(0x351)],_0x39bc76=_0x5d82f4['getOffsetConfig'](),{docsLeft:_0x2a30c7,docsTop:_0x31b522}=_0x39bc76,_0x530bd3=new b['NodePositionConvertToCursor'](_0x39bc76,_0x4c6f37);for(const {startOffset:_0x72fdaa,endOffset:_0x204bec,rangeType:_0x4a4d6a,segmentId:_0x428567,segmentPage:_0x152c39,collapsed:_0x41997e,isActive:_0x55eba7}of _0x35e467){const _0x312f45=_0x4c6f37[_0x191540(0x27a)](_0x72fdaa,!0x0,_0x428567,_0x152c39);let _0x4bdcb9=_0x4c6f37[_0x191540(0x27a)](_0x204bec,!0x0,_0x428567,_0x152c39);if(_0x4bdcb9==null&&(_0x4bdcb9=_0x4c6f37[_0x191540(0x27a)](_0x204bec-0x1,!0x1,_0x428567,_0x152c39)),_0x55eba7){const {contentBoxPointGroup:_0x584c10}=_0x530bd3[_0x191540(0x141)](_0x4bdcb9,_0x4bdcb9);if(_0x584c10['length']===0x0)continue;this['_drawAnchor'](_0x3dcee8,_0x584c10,_0x2a30c7,_0x31b522,_0x284000),this['_eventUnsubscribe']=this[_0x191540(0x244)]();}if(_0x312f45&&_0x4bdcb9){if(_0x4a4d6a===a[_0x191540(0x266)][_0x191540(0x216)]){const _0x1013d5=new b['NodePositionConvertToRectRange'](_0x39bc76,_0x4c6f37),{pointGroup:_0x37dde0}=(_0x1df871=_0x1013d5['getRangePointData'](_0x312f45,_0x4bdcb9))!=null?_0x1df871:{};if(_0x37dde0==null||_0x37dde0['length']===0x0)continue;this[_0x191540(0x2ac)](_0x3dcee8,_0x37dde0,_0x2a30c7,_0x31b522);}else{if(!_0x41997e){const {borderBoxPointGroup:_0x7c997c}=_0x530bd3[_0x191540(0x141)](_0x312f45,_0x4bdcb9);if(_0x7c997c['length']===0x0)continue;this[_0x191540(0x167)](_0x3dcee8,_0x7c997c,_0x2a30c7,_0x31b522);}}}}}[_0x5f41c4(0x312)](_0x3ac85a,_0x308710,_0x2ecbd5,_0x3d4f82,_0x1f4716){const _0x54d2d7=_0x5f41c4,_0x45761a=this[_0x54d2d7(0x2f7)](_0x308710),{left:_0x573a19,top:_0x472075,height:_0x3cb1d3}=_0x45761a,_0x1e09ef=this['_getScale'](),_0x40a366=St/_0x1e09ef,_0x2d665a=new p['Rect'](oe+a[_0x54d2d7(0x1b3)][_0x54d2d7(0x322)](k),{'left':_0x573a19+_0x2ecbd5-_0x40a366,'top':_0x472075+_0x3d4f82,'height':_0x3cb1d3,'width':ft,'fill':_0x3ac85a||p[_0x54d2d7(0x155)](a[_0x54d2d7(0x35b)][_0x54d2d7(0x338)],0x0),'strokeWidth':_0x40a366,'stroke':It,'evented':!0x0});this[_0x54d2d7(0x1a5)]=_0x2d665a,this[_0x54d2d7(0x23d)][_0x54d2d7(0x32c)](_0x2d665a,b['TEXT_RANGE_LAYER_INDEX']);const _0xd73625=new p[(_0x54d2d7(0x34a))](oe+a['Tools'][_0x54d2d7(0x322)](k),{'left':_0x573a19+_0x2ecbd5-_0x40a366,'top':_0x472075+_0x3d4f82-ae/0x2,'height':ae,'width':ae,'fill':_0x3ac85a||p[_0x54d2d7(0x155)](a['COLORS'][_0x54d2d7(0x338)],0x0),'strokeWidth':0x0,'stroke':_0x3ac85a||p[_0x54d2d7(0x155)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0xd73625,this[_0x54d2d7(0x23d)][_0x54d2d7(0x32c)](_0xd73625,b['TEXT_RANGE_LAYER_INDEX']);const _0x2c9b66=new te(oe+a[_0x54d2d7(0x1b3)][_0x54d2d7(0x322)](k),{'left':_0x573a19+_0x2ecbd5-_0x40a366,'top':_0x472075+_0x3d4f82-K,'text':_0x1f4716,'color':_0x3ac85a});this[_0x54d2d7(0x246)]=_0x2c9b66,this['_scene'][_0x54d2d7(0x32c)](_0x2c9b66,b[_0x54d2d7(0x29b)]),this[_0x54d2d7(0x262)]=!0x1;}[_0x5f41c4(0x244)](){const _0x4c50d9=_0x5f41c4,_0x567f0a=this[_0x4c50d9(0x1a5)][_0x4c50d9(0x28d)][_0x4c50d9(0x376)](()=>{const _0x10447c=_0x4c50d9;this[_0x10447c(0x262)]=!0x0;}),_0x26c078=this['_anchor'][_0x4c50d9(0x13c)][_0x4c50d9(0x376)](()=>{const _0x1338c6=_0x4c50d9;this[_0x1338c6(0x314)]&&clearTimeout(this[_0x1338c6(0x314)]),this[_0x1338c6(0x314)]=setTimeout(()=>{const _0x55114d=_0x1338c6;this[_0x55114d(0x262)]=!0x1;},0x7d0);});return()=>{_0x567f0a['unsubscribe'](),_0x26c078['unsubscribe']();};}[_0x5f41c4(0x167)](_0x5cd930,_0x9ea10f,_0x152b09,_0x51395b){const _0x3b111d=_0x5f41c4,_0x544c56=new a[(_0x3b111d(0x331))](_0x5cd930)[_0x3b111d(0x2e2)](0.2)[_0x3b111d(0x339)](),_0x51329f=new p[(_0x3b111d(0x260))](ut+a[_0x3b111d(0x1b3)][_0x3b111d(0x322)](k),{'pointsGroup':_0x9ea10f,'fill':_0x544c56||p[_0x3b111d(0x155)](a['COLORS'][_0x3b111d(0x338)],0.2),'left':_0x152b09,'top':_0x51395b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3b111d(0x27d)](_0x51329f),this['_scene'][_0x3b111d(0x32c)](_0x51329f,b[_0x3b111d(0x29b)]);}[_0x5f41c4(0x2ac)](_0x6ec766,_0x1570a9,_0x10e95c,_0x33b8bd){const _0x3bde27=_0x5f41c4,_0x410eb4=new a['ColorKit'](_0x6ec766)[_0x3bde27(0x2e2)](0.2)[_0x3bde27(0x339)](),_0x36dc0a=new p[(_0x3bde27(0x260))](dt+a[_0x3bde27(0x1b3)][_0x3bde27(0x322)](k),{'pointsGroup':_0x1570a9,'fill':_0x410eb4||p[_0x3bde27(0x155)](a['COLORS'][_0x3bde27(0x338)],0.2),'left':_0x10e95c,'top':_0x33b8bd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3bde27(0x290)][_0x3bde27(0x27d)](_0x36dc0a),this[_0x3bde27(0x23d)][_0x3bde27(0x32c)](_0x36dc0a,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5f41c4(0x2f7)](_0x41b5db){const _0x5972e9=_0x41b5db[0x0],_0x1c94a5=_0x5972e9[0x0],_0x234bb7=_0x5972e9[0x2],{x:_0x5d99bb,y:_0x593457}=_0x1c94a5,{x:_0x260fe9,y:_0x262b8c}=_0x234bb7;return{'left':_0x5d99bb,'top':_0x593457,'width':_0x260fe9-_0x5d99bb,'height':_0x262b8c-_0x593457};}['_getScale'](){const _0x1bb193=_0x5f41c4,{scaleX:_0x226c0e,scaleY:_0x45cff0}=this[_0x1bb193(0x23d)][_0x1bb193(0x242)]();return Math['max'](_0x226c0e,_0x45cff0);}}var vt=Object[_0x5f41c4(0x16f)],gt=(_0x65f8a8,_0x27e858,_0x28e76e,_0x3f9734)=>{for(var _0x4020bd=_0x3f9734>0x1?void 0x0:_0x3f9734?vt(_0x27e858,_0x28e76e):_0x27e858,_0x383b61=_0x65f8a8['length']-0x1,_0x25ef58;_0x383b61>=0x0;_0x383b61--)(_0x25ef58=_0x65f8a8[_0x383b61])&&(_0x4020bd=_0x25ef58(_0x4020bd)||_0x4020bd);return _0x4020bd;},V=(_0x3ff7e6,_0x5392c0)=>(_0x2fe229,_0x78de3)=>_0x5392c0(_0x2fe229,_0x78de3,_0x3ff7e6);let ve=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x49c38d,_0x2df0b5,_0x1cc556,_0x2e5b18,_0xc69bb6){const _0x1d53f8=_0x5f41c4;super(),_(this,_0x1d53f8(0x2d6),[]),_(this,'_cursors',[]),(this['_context']=_0x49c38d,this[_0x1d53f8(0x353)]=_0x2df0b5,this[_0x1d53f8(0x17c)]=_0x1cc556,this[_0x1d53f8(0x15e)]=_0x2e5b18,this[_0x1d53f8(0x2b0)]=_0xc69bb6,this[_0x1d53f8(0x185)]());}[_0x5f41c4(0x185)](){const _0x4324cf=_0x5f41c4,_0x317172=this[_0x4324cf(0x31d)][_0x4324cf(0x1ed)],_0x3f02ea=this[_0x4324cf(0x353)];this[_0x4324cf(0x30b)](d[_0x4324cf(0x1db)]([this[_0x4324cf(0x17c)]['getCollabCursors$'](_0x317172),this[_0x4324cf(0x2b0)][_0x4324cf(0x127)]])[_0x4324cf(0x1ce)]($[_0x4324cf(0x2c5)](([_0x3b135f,_0x301295])=>({'skeleton':_0x3f02ea[_0x4324cf(0x158)](),'cursors':[..._0x3b135f[_0x4324cf(0x230)]()]['flatMap'](_0x2116bd=>({..._0x2116bd,'color':_0x301295[_0x2116bd[_0x4324cf(0x102)]]}))})))[_0x4324cf(0x309)](_0x465d67=>{const _0x175a14=_0x4324cf;if(this[_0x175a14(0x201)](),_0x465d67){const {skeleton:_0x163289,cursors:_0x31dae6}=_0x465d67;this[_0x175a14(0x100)](_0x163289,_0x31dae6);}})),this[_0x4324cf(0x1b5)](),this[_0x4324cf(0x17a)]();}[_0x5f41c4(0x100)](_0x48684b,_0x401c7f){const _0x2c3fe3=_0x5f41c4,{scene:_0x664fd6,mainComponent:_0xeacb01}=this[_0x2c3fe3(0x31d)],_0x2f9f16=_0x401c7f[_0x2c3fe3(0x2c5)](_0x288e59=>new Ue(_0x288e59,_0x664fd6,_0x48684b,_0xeacb01));this['_cursorShapes']=_0x2f9f16,this[_0x2c3fe3(0x179)]=_0x401c7f;}[_0x5f41c4(0x218)](){const _0x1d2372=_0x5f41c4;this['_removeCollabCursors']();const {scene:_0x508969,mainComponent:_0x37cb28}=this['_context'],_0x1e939e=this[_0x1d2372(0x353)][_0x1d2372(0x158)](),_0x1a7d40=this[_0x1d2372(0x179)][_0x1d2372(0x2c5)](_0x5abce4=>new Ue(_0x5abce4,_0x508969,_0x1e939e,_0x37cb28));this[_0x1d2372(0x2d6)]=_0x1a7d40;}[_0x5f41c4(0x201)](){const _0x2834b4=_0x5f41c4;this[_0x2834b4(0x2d6)][_0x2834b4(0x334)](_0x5369c1=>_0x5369c1[_0x2834b4(0x2c9)]()),this[_0x2834b4(0x2d6)]=[];}[_0x5f41c4(0x17a)](){const _0xc82582=_0x5f41c4,_0x4f05d4=[b[_0xc82582(0x327)]['id']];this[_0xc82582(0x30b)](this['_commandService']['onCommandExecuted'](_0x1abb14=>{const _0x5a7cc2=_0xc82582;_0x4f05d4[_0x5a7cc2(0x340)](_0x1abb14['id'])&&_0x1abb14['params'][_0x5a7cc2(0x1ed)]===this[_0x5a7cc2(0x31d)][_0x5a7cc2(0x1ed)]&&this[_0x5a7cc2(0x218)]();}));}[_0x5f41c4(0x1b5)](){const _0x127f39=_0x5f41c4;this[_0x127f39(0x30b)](a['fromEventSubject'](this[_0x127f39(0x31d)]['engine'][_0x127f39(0x378)])['pipe']($['filter'](_0x2ea322=>_0x2ea322[_0x127f39(0x183)]===p[_0x127f39(0x1c6)][_0x127f39(0x11f)]),$['throttleTime'](0x10))[_0x127f39(0x309)](()=>{const _0x5d564a=_0x127f39;this[_0x5d564a(0x218)]();}));}};ve=gt([V(0x1,a[_0x5f41c4(0x180)](Y[_0x5f41c4(0x345)])),V(0x2,a[_0x5f41c4(0x180)](x)),V(0x3,a[_0x5f41c4(0x12a)]),V(0x4,a[_0x5f41c4(0x180)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x5f41c4(0x139)]{constructor(_0x299eaf,_0xd7e975){const _0x3f1b7d=_0x5f41c4;super(_0x299eaf,_0xd7e975),_(this,_0x3f1b7d(0x133)),_(this,'_hovered',!0x1),_(this,_0x3f1b7d(0x315)),_(this,_0x3f1b7d(0x196),''),_(this,_0x3f1b7d(0x2aa),_0x3f1b7d(0x20e)),_(this,'_backgroundColor'),(_0xd7e975&&this[_0x3f1b7d(0x140)](_0xd7e975),this[_0x3f1b7d(0x28d)][_0x3f1b7d(0x376)](()=>this[_0x3f1b7d(0x140)]({'hovered':!0x0})),this[_0x3f1b7d(0x13c)][_0x3f1b7d(0x376)](()=>this[_0x3f1b7d(0x140)]({'hovered':!0x1})));}[_0x5f41c4(0x140)](_0x5b0ed4){const _0x1c21f4=_0x5f41c4;var _0xce7228,_0x4235ee,_0x41c7fd,_0x14a00c,_0x218335,_0x3cd171;this[_0x1c21f4(0x133)]=(_0xce7228=_0x5b0ed4[_0x1c21f4(0x102)])!=null?_0xce7228:this[_0x1c21f4(0x133)],this['_hovered']=(_0x4235ee=_0x5b0ed4[_0x1c21f4(0x1cf)])!=null?_0x4235ee:this[_0x1c21f4(0x23c)],this[_0x1c21f4(0x315)]=(_0x41c7fd=_0x5b0ed4[_0x1c21f4(0x1f8)])!=null?_0x41c7fd:this[_0x1c21f4(0x315)],this[_0x1c21f4(0x196)]=(_0x14a00c=_0x5b0ed4['name'])!=null?_0x14a00c:this['_name'],this[_0x1c21f4(0x2aa)]=(_0x218335=_0x5b0ed4['labelPosition'])!=null?_0x218335:this['_labelPosition'],this['_backgroundColor']=(_0x3cd171=_0x5b0ed4[_0x1c21f4(0x12d)])!=null?_0x3cd171:this[_0x1c21f4(0x1ad)],this[_0x1c21f4(0x1f7)]({'width':_0x5b0ed4[_0x1c21f4(0x311)],'height':_0x5b0ed4[_0x1c21f4(0x1ba)]});}[_0x5f41c4(0x162)](_0x545f53){const _0x550ec1=_0x5f41c4,{row:_0x2099e1,column:_0x599abc}=_0x545f53;if(_0x2099e1>=this['_range']['startRow']&&_0x2099e1<=this[_0x550ec1(0x315)]['endRow']&&_0x599abc>=this[_0x550ec1(0x315)][_0x550ec1(0x2cc)]&&_0x599abc<=this[_0x550ec1(0x315)][_0x550ec1(0x1b2)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x550ec1(0x140)]({'hovered':!0x1});}[_0x5f41c4(0x1f4)](_0x56f8ba){return!0x1;}[_0x5f41c4(0x1c7)](_0x5b1e9a){const _0x366dec=_0x5f41c4;p[_0x366dec(0x34a)][_0x366dec(0x1f9)](_0x5b1e9a,{'width':this[_0x366dec(0x311)],'height':this[_0x366dec(0x1ba)],'strokeWidth':Ct,'stroke':this[_0x366dec(0x133)],'evented':!0x1,'fill':this[_0x366dec(0x1ad)]}),this[_0x366dec(0x23c)]&&(_0x5b1e9a[_0x366dec(0x1d9)](),_0x5b1e9a[_0x366dec(0x1dc)](0x1,0x0,0x0,0x1,this[_0x366dec(0x311)],this[_0x366dec(0x2aa)]===_0x366dec(0x2f9)?0x0:-0x14),te[_0x366dec(0x1f9)](_0x5b1e9a,{'text':this[_0x366dec(0x196)],'color':this[_0x366dec(0x133)]}),_0x5b1e9a['restore']());}}var pt=Object[_0x5f41c4(0x16f)],bt=(_0x1e0273,_0x392bf3,_0xe88422,_0x3a64c0)=>{for(var _0x1942aa=_0x3a64c0>0x1?void 0x0:_0x3a64c0?pt(_0x392bf3,_0xe88422):_0x392bf3,_0x5e858e=_0x1e0273['length']-0x1,_0x12a6e5;_0x5e858e>=0x0;_0x5e858e--)(_0x12a6e5=_0x1e0273[_0x5e858e])&&(_0x1942aa=_0x12a6e5(_0x1942aa)||_0x1942aa);return _0x1942aa;},ce=(_0x488e1f,_0x4040b0)=>(_0x4ddfa3,_0x3094e5)=>_0x4040b0(_0x4ddfa3,_0x3094e5,_0x488e1f);const Et=0x1389;let ge=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x171255,_0x246079,_0x596094,_0x407581){const _0x45e521=_0x5f41c4;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x171255,this[_0x45e521(0x274)]=_0x246079,this[_0x45e521(0x17c)]=_0x596094,this[_0x45e521(0x2b0)]=_0x407581,this[_0x45e521(0x185)]());}[_0x5f41c4(0x185)](){const _0x3882e5=_0x5f41c4;this[_0x3882e5(0x274)][_0x3882e5(0x26b)][_0x3882e5(0x1ce)]($[_0x3882e5(0x172)](this[_0x3882e5(0x18a)]),$['switchMap'](_0x5c515d=>{const _0x8ee22f=_0x3882e5;if(_0x5c515d){const _0x47d9a9=_0x5c515d[_0x8ee22f(0x1d5)];return d[_0x8ee22f(0x1db)](this[_0x8ee22f(0x17c)][_0x8ee22f(0x10e)](this['_context'][_0x8ee22f(0x1ed)]),this['_themeService'][_0x8ee22f(0x127)])[_0x8ee22f(0x1ce)]($[_0x8ee22f(0x2c5)](([_0x4a558c,_0x55ae4c])=>{const _0x57636e=_0x8ee22f,_0xa860d2=new Map();return _0x4a558c[_0x57636e(0x334)]((_0x564a9c,_0xaf8cbd)=>{const _0x44a3f8=_0x57636e;if(_0x564a9c[_0x44a3f8(0x30d)]===_0x47d9a9){const _0x570a94={..._0x564a9c};_0x570a94[_0x44a3f8(0x102)]=_0x55ae4c[_0x564a9c[_0x44a3f8(0x102)]],_0xa860d2[_0x44a3f8(0x28c)](_0xaf8cbd,_0x570a94);}}),{'skeleton':_0x5c515d,'cursors':_0xa860d2};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3882e5(0x309)](({skeleton:_0x9eb651,cursors:_0x2f80de})=>{const _0x3b41fd=_0x3882e5;this[_0x3b41fd(0x201)](),_0x9eb651&&this[_0x3b41fd(0x100)](_0x9eb651,_0x2f80de);}),this[_0x3882e5(0x274)][_0x3882e5(0x26b)][_0x3882e5(0x309)](_0x57ef7e=>{const _0x196a89=_0x3882e5;if(_0x57ef7e==null)return;const {skeleton:_0x39018c}=_0x57ef7e,{scene:_0x363a91}=this[_0x196a89(0x31d)];_0x363a91[_0x196a89(0x2c0)][_0x196a89(0x376)](a[_0x196a89(0x24c)](_0x1098e3=>{const _0x2b50be=_0x196a89;var _0x40c5dd,_0x47857f;const {offsetX:_0x5010f0,offsetY:_0xcc34e4}=_0x1098e3,{x:_0x5a8874,y:_0x173085}=_0x363a91[_0x2b50be(0x30c)](p['Vector2'][_0x2b50be(0x295)]([_0x5010f0,_0xcc34e4])),{scaleX:_0x582c85,scaleY:_0x137ed2}=_0x363a91[_0x2b50be(0x242)](),_0x27adda=_0x363a91[_0x2b50be(0x1a8)](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x48102d=_0x363a91['getVpScrollXYInfoByPosToVp'](p['Vector2']['FromArray']([_0x5a8874,_0x173085]),_0x27adda),_0x131b5a=_0x39018c['getCellPositionByOffset'](_0x5010f0,_0xcc34e4,_0x582c85,_0x137ed2,_0x48102d);((_0x40c5dd=this[_0x2b50be(0x19d)])==null?void 0x0:_0x40c5dd[_0x2b50be(0x256)])===_0x131b5a[_0x2b50be(0x256)]&&((_0x47857f=this[_0x2b50be(0x19d)])==null?void 0x0:_0x47857f[_0x2b50be(0x34b)])===_0x131b5a[_0x2b50be(0x34b)]||this[_0x2b50be(0x179)][_0x2b50be(0x334)](_0x1d12dd=>{const _0x14f8b9=_0x2b50be;_0x1d12dd[_0x14f8b9(0x162)](_0x131b5a);});},0x64));});}[_0x5f41c4(0x100)](_0x2a184e,_0x1065ff){const _0x42a0e5=_0x5f41c4;var _0x27239c;const _0x42c5f1=(_0x27239c=this[_0x42a0e5(0x274)][_0x42a0e5(0x10c)]())==null?void 0x0:_0x27239c[_0x42a0e5(0x147)];if(!_0x42c5f1)return;const _0x1bfa71=this[_0x42a0e5(0x2e5)]();if(!_0x1bfa71)return;this[_0x42a0e5(0x179)]['forEach'](_0x44ce8b=>{const _0x1bbac8=_0x42a0e5;_0x44ce8b[_0x1bbac8(0x285)]();});const {scene:_0x9a5810}=_0x1bfa71,_0x192872=Tt(Array[_0x42a0e5(0x239)](_0x1065ff['values']()))['map'](_0xe3e624=>{const _0x5d7581=_0x42a0e5,{color:_0x4dcfe9,range:_0x5a0f53,name:_0x431d34,selection:_0x590632,sheetID:_0x17745c}=_0xe3e624,{startColumn:_0x4b7b3a,startRow:_0x2bcb0f,endColumn:_0x3641da,endRow:_0x2e2222}=_0x5a0f53,_0x38bc3e=G[_0x5d7581(0x27c)](_0x2bcb0f,_0x4b7b3a,_0x9a5810,_0x42c5f1),_0x5c09d5=G[_0x5d7581(0x27c)](_0x2e2222,_0x3641da,_0x9a5810,_0x42c5f1),{columnHeaderHeightAndMarginTop:_0x56ca2d}=_0x42c5f1,{startX:_0x506881,startY:_0x1a5c09}=_0x38bc3e,{endX:_0x1d1b52,endY:_0x4e2cc7}=_0x5c09d5,_0x187fee=_0x1d1b52-_0x506881,_0x195d5e=_0x4e2cc7-_0x1a5c09,_0x58af9b={'labelPosition':_0x1a5c09-_0x56ca2d>=K?_0x5d7581(0x20e):'bottom','sheetID':_0x17745c,'range':_0x5a0f53,'color':_0x4dcfe9,'name':_0x431d34,'selection':_0x590632,'left':_0x506881,'top':_0x1a5c09,'width':_0x187fee,'height':_0x195d5e,'evented':!0x1,'zIndex':Et};return new Ae(_0x431d34,_0x58af9b);});_0x9a5810[_0x42a0e5(0x24f)](_0x192872,mt),this[_0x42a0e5(0x179)]=new Set(_0x192872);}[_0x5f41c4(0x201)](){const _0x2eb72e=_0x5f41c4;var _0x45faa1;(_0x45faa1=this[_0x2eb72e(0x179)])==null||_0x45faa1['forEach'](_0xfa2e76=>_0xfa2e76[_0x2eb72e(0x2c9)]());}[_0x5f41c4(0x2e5)](){const _0x39e54c=_0x5f41c4;return G[_0x39e54c(0x1d2)](this['_context'][_0x39e54c(0xfc)],this['_context']);}};ge=bt([ce(0x1,a[_0x5f41c4(0x180)](G[_0x5f41c4(0x126)])),ce(0x2,a[_0x5f41c4(0x180)](x)),ce(0x3,a[_0x5f41c4(0x180)](a[_0x5f41c4(0xf7)]))],ge);function Tt(_0x81f3bf){const _0x507057=_0x5f41c4,_0x2ec72=new Map();return _0x81f3bf['forEach'](_0x5bcd95=>{const _0x5adc89=_0x5234;if(_0x2ec72[_0x5adc89(0x287)](_0x5bcd95[_0x5adc89(0x248)])){const _0x150e62=_0x2ec72[_0x5adc89(0x1f5)](_0x5bcd95[_0x5adc89(0x248)]);_0x150e62['name']+=',\x20'+_0x5bcd95[_0x5adc89(0x347)];}else _0x2ec72[_0x5adc89(0x28c)](_0x5bcd95[_0x5adc89(0x248)],_0x5bcd95);}),Array[_0x507057(0x239)](_0x2ec72[_0x507057(0x230)]());}var E=function(){const _0x43065e=_0x5f41c4;return E=Object[_0x43065e(0x2a7)]||function(_0xf6dd){const _0x5c7978=_0x43065e;for(var _0xe79430,_0x459e5f=0x1,_0x4f2afe=arguments[_0x5c7978(0x1c8)];_0x459e5f<_0x4f2afe;_0x459e5f++){_0xe79430=arguments[_0x459e5f];for(var _0x62bd89 in _0xe79430)Object[_0x5c7978(0x250)][_0x5c7978(0x316)]['call'](_0xe79430,_0x62bd89)&&(_0xf6dd[_0x62bd89]=_0xe79430[_0x62bd89]);}return _0xf6dd;},E[_0x43065e(0x350)](this,arguments);},Ot=function(_0x1148a0,_0x4b88f1){const _0x508a3b=_0x5f41c4;var _0x56d4b6={};for(var _0x5abbd2 in _0x1148a0)Object[_0x508a3b(0x250)][_0x508a3b(0x316)][_0x508a3b(0x190)](_0x1148a0,_0x5abbd2)&&_0x4b88f1[_0x508a3b(0x36d)](_0x5abbd2)<0x0&&(_0x56d4b6[_0x5abbd2]=_0x1148a0[_0x5abbd2]);if(_0x1148a0!=null&&typeof Object['getOwnPropertySymbols']==_0x508a3b(0x1d0)){for(var _0x20e005=0x0,_0x5abbd2=Object[_0x508a3b(0x25f)](_0x1148a0);_0x20e005<_0x5abbd2[_0x508a3b(0x1c8)];_0x20e005++)_0x4b88f1[_0x508a3b(0x36d)](_0x5abbd2[_0x20e005])<0x0&&Object[_0x508a3b(0x250)][_0x508a3b(0x2d2)][_0x508a3b(0x190)](_0x1148a0,_0x5abbd2[_0x20e005])&&(_0x56d4b6[_0x5abbd2[_0x20e005]]=_0x1148a0[_0x5abbd2[_0x20e005]]);}return _0x56d4b6;},be=M[_0x5f41c4(0x151)](function(_0x956c5a,_0x4cf266){const _0x4b9193=_0x5f41c4;var _0x277101=_0x956c5a[_0x4b9193(0x1a6)],_0x16ea6d=_0x956c5a['id'],_0x515590=_0x956c5a[_0x4b9193(0x193)],_0x1bed2e=_0x956c5a['extend'],_0x1ba3c5=Ot(_0x956c5a,[_0x4b9193(0x1a6),'id','className',_0x4b9193(0x318)]),_0x5474a2=_0x4b9193(0xfa)[_0x4b9193(0x2f0)](_0x16ea6d,'\x20')[_0x4b9193(0x2f0)](_0x515590||'')[_0x4b9193(0x26d)](),_0x4f5752=M[_0x4b9193(0x181)]('_'['concat'](Ut()));return ye(_0x277101,''[_0x4b9193(0x2f0)](_0x16ea6d),{'defIds':_0x277101['defIds'],'idSuffix':_0x4f5752[_0x4b9193(0x228)]},E({'ref':_0x4cf266,'className':_0x5474a2},_0x1ba3c5),_0x1bed2e);});function ye(_0x2c28d0,_0x122436,_0x26ed2e,_0x3d3011,_0x14f7fd){const _0x342434=_0x5f41c4;return M[_0x342434(0x227)](_0x2c28d0[_0x342434(0x29d)],E(E({'key':_0x122436},Rt(_0x2c28d0,_0x26ed2e,_0x14f7fd)),_0x3d3011),(Dt(_0x2c28d0,_0x26ed2e)[_0x342434(0x2db)]||[])[_0x342434(0x2c5)](function(_0x55e5aa,_0x45a71f){const _0x13ab83=_0x342434;return ye(_0x55e5aa,''[_0x13ab83(0x2f0)](_0x122436,'-')[_0x13ab83(0x2f0)](_0x2c28d0['tag'],'-')['concat'](_0x45a71f),_0x26ed2e,void 0x0,_0x14f7fd);}));}function Rt(_0x114237,_0x533a49,_0x200297){const _0x253c7e=_0x5f41c4;var _0x30d893=E({},_0x114237['attrs']);_0x200297!=null&&_0x200297[_0x253c7e(0x206)]&&_0x30d893['fill']===_0x253c7e(0x206)&&(_0x30d893[_0x253c7e(0x245)]=_0x200297[_0x253c7e(0x206)]),_0x114237[_0x253c7e(0x29d)]==='mask'&&_0x30d893['id']&&(_0x30d893['id']=_0x30d893['id']+_0x533a49['idSuffix']),Object[_0x253c7e(0x2c2)](_0x30d893)[_0x253c7e(0x334)](function(_0x2164d7){const _0x5da8c6=_0x253c7e;var _0x5f41d2=_0x2164d7[0x0],_0x37ced1=_0x2164d7[0x1];_0x5f41d2==='mask'&&typeof _0x37ced1=='string'&&(_0x30d893[_0x5f41d2]=_0x37ced1[_0x5da8c6(0x169)](/url\(#(.*)\)/,_0x5da8c6(0x37a)[_0x5da8c6(0x2f0)](_0x533a49[_0x5da8c6(0x33c)],')')));});var _0x12b494=_0x533a49[_0x253c7e(0x13e)];return!_0x12b494||_0x12b494[_0x253c7e(0x1c8)]===0x0||(_0x114237['tag']===_0x253c7e(0x29e)&&_0x30d893[_0x253c7e(0x2d7)]&&(_0x30d893[_0x253c7e(0x2d7)]=_0x30d893[_0x253c7e(0x2d7)]+_0x533a49[_0x253c7e(0x33c)]),Object[_0x253c7e(0x2c2)](_0x30d893)[_0x253c7e(0x334)](function(_0xbe660a){const _0x182bbe=_0x253c7e;var _0x4c2df2=_0xbe660a[0x0],_0x47d0fc=_0xbe660a[0x1];typeof _0x47d0fc==_0x182bbe(0x344)&&(_0x30d893[_0x4c2df2]=_0x47d0fc[_0x182bbe(0x169)](/url\(#(.*)\)/,_0x182bbe(0x37a)[_0x182bbe(0x2f0)](_0x533a49[_0x182bbe(0x33c)],')')));})),_0x30d893;}function Dt(_0xee26e4,_0x21ce09){const _0x27435b=_0x5f41c4;var _0x163507,_0x4e4fde=_0x21ce09[_0x27435b(0x13e)];return!_0x4e4fde||_0x4e4fde['length']===0x0?_0xee26e4:_0xee26e4[_0x27435b(0x29d)]==='defs'&&(!((_0x163507=_0xee26e4[_0x27435b(0x2db)])===null||_0x163507===void 0x0)&&_0x163507[_0x27435b(0x1c8)])?E(E({},_0xee26e4),{'children':_0xee26e4[_0x27435b(0x2db)]['map'](function(_0x3e43b3){const _0x498329=_0x27435b;return typeof _0x3e43b3['attrs']['id']==_0x498329(0x344)&&_0x4e4fde&&_0x4e4fde['indexOf'](_0x3e43b3[_0x498329(0x259)]['id'])>-0x1?E(E({},_0x3e43b3),{'attrs':E(E({},_0x3e43b3['attrs']),{'id':_0x3e43b3[_0x498329(0x259)]['id']+_0x21ce09['idSuffix']})}):_0x3e43b3;})}):_0xee26e4;}function Ut(){const _0x20ffbc=_0x5f41c4;return Math[_0x20ffbc(0x117)]()[_0x20ffbc(0x2cf)](0x24)[_0x20ffbc(0x18d)](0x2,0x8);}be[_0x5f41c4(0x2d1)]=_0x5f41c4(0x31a);var Nt={'tag':_0x5f41c4(0x2ca),'attrs':{'fill':'none','viewBox':_0x5f41c4(0x357),'width':'1em','height':_0x5f41c4(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f41c4(0x371)},'children':[{'tag':_0x5f41c4(0x2d9),'attrs':{'stroke':_0x5f41c4(0x124),'d':_0x5f41c4(0x1ec),'strokeLinecap':_0x5f41c4(0x379),'strokeLinejoin':_0x5f41c4(0x379),'strokeWidth':1.2}}]},{'tag':_0x5f41c4(0x107),'attrs':{},'children':[{'tag':_0x5f41c4(0x36e),'attrs':{'id':_0x5f41c4(0x2e0)},'children':[{'tag':_0x5f41c4(0x2d9),'attrs':{'fill':_0x5f41c4(0x2e3),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5f41c4(0x2e0)]},$e=M[_0x5f41c4(0x151)](function(_0x5e7f86,_0x51b8d8){const _0x6adfc3=_0x5f41c4;return M[_0x6adfc3(0x227)](be,Object[_0x6adfc3(0x2a7)]({},_0x5e7f86,{'id':'off-line-single','ref':_0x51b8d8,'icon':Nt}));});$e[_0x5f41c4(0x2d1)]=_0x5f41c4(0x26f);var Mt={'tag':_0x5f41c4(0x2ca),'attrs':{'fill':_0x5f41c4(0x225),'viewBox':_0x5f41c4(0x325),'width':_0x5f41c4(0x21f),'height':_0x5f41c4(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f41c4(0x247)},'children':[{'tag':'path','attrs':{'stroke':_0x5f41c4(0x124),'d':_0x5f41c4(0x11d),'strokeLinecap':_0x5f41c4(0x379),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5f41c4(0x107),'attrs':{},'children':[{'tag':_0x5f41c4(0x36e),'attrs':{'id':_0x5f41c4(0x2b9)},'children':[{'tag':'path','attrs':{'fill':_0x5f41c4(0x2e3),'d':_0x5f41c4(0x2a1),'transform':_0x5f41c4(0x319)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=M[_0x5f41c4(0x151)](function(_0xdd3f18,_0x575f76){const _0x1c67c2=_0x5f41c4;return M[_0x1c67c2(0x227)](be,Object['assign']({},_0xdd3f18,{'id':'on-line-single','ref':_0x575f76,'icon':Mt}));});xe[_0x5f41c4(0x2d1)]='OnLineSingle';const Lt=_0x5f41c4(0x21e),Pt=_0x5f41c4(0x30f),wt=_0x5f41c4(0x36b),At=_0x5f41c4(0x154),yt=_0x5f41c4(0x26a),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x2e07ff){const _0x531f9e=_0x5f41c4;switch(_0x2e07ff){case u[_0x531f9e(0x186)][_0x531f9e(0x1eb)]:return _0x531f9e(0x2c7);case u[_0x531f9e(0x186)][_0x531f9e(0x31e)]:return'collabStatus.conflict';case u[_0x531f9e(0x186)]['FETCH_MISS']:return _0x531f9e(0x1f3);case u[_0x531f9e(0x186)]['NOT_COLLAB']:return _0x531f9e(0x2d8);case u['CollaborationStatus'][_0x531f9e(0x2f5)]:case u[_0x531f9e(0x186)][_0x531f9e(0x197)]:return _0x531f9e(0x19c);case u[_0x531f9e(0x186)]['SYNCED']:case u['CollaborationStatus']['PENDING']:return'collabStatus.synced';}}function je(_0x5e8881){const _0x4ef026=_0x5f41c4,{status$:_0x4dd471}=_0x5e8881,_0x1db0fe=O[_0x4ef026(0x2ea)](_0x4dd471,u[_0x4ef026(0x186)]['NOT_COLLAB']),_0x4c1733=O['useDependency'](a[_0x4ef026(0x1a3)]),_0x591ed2=O[_0x4ef026(0x346)](u[_0x4ef026(0x15b)]),_0x1f3ed6=_0x1db0fe!==u['CollaborationStatus']['OFFLINE'],_0x1122af=_0x4c1733['t']($t(_0x1db0fe)),_0x144b3d=T[_0x4ef026(0x175)](H[_0x4ef026(0x113)],{[H['online']]:_0x1f3ed6,[H[_0x4ef026(0x292)]]:!_0x1f3ed6}),_0xbd1d83=_0x1f3ed6?P[_0x4ef026(0x13a)](xe,{}):P['jsx']($e,{}),_0x204a01=M['useCallback'](()=>{const _0x1cf5e0=_0x4ef026;_0x1f3ed6||_0x591ed2[_0x1cf5e0(0x12b)]();},[_0x1f3ed6,_0x591ed2]);function _0x204e32(){const _0x183b26=_0x4ef026;return P[_0x183b26(0x279)](_0x183b26(0x2fe),{'className':T['clsx'](_0x144b3d,_0x183b26(0x36a)),'onClick':_0x204a01,'children':[P[_0x183b26(0x13a)](_0x183b26(0x2fe),{'className':H['onlineStatusIcon'],'children':_0xbd1d83}),P['jsx'](_0x183b26(0x2fe),{'className':H[_0x183b26(0x14b)],'children':_0x1122af})]});}return _0x1f3ed6?_0x204e32():P['jsx'](T['Tooltip'],{'title':_0x4c1733['t']('collab-client.tooltip.reconnect'),'children':_0x204e32()});}function _0x5234(_0x4f0d59,_0x20e138){const _0x94aa6e=_0x94aa();return _0x5234=function(_0x5234af,_0x550c70){_0x5234af=_0x5234af-0xf7;let _0x3d403e=_0x94aa6e[_0x5234af];return _0x3d403e;},_0x5234(_0x4f0d59,_0x20e138);}var xt=Object[_0x5f41c4(0x16f)],jt=(_0x3d3e74,_0xa05c4c,_0x5f240c,_0x450d20)=>{const _0x547e82=_0x5f41c4;for(var _0x39d076=_0x450d20>0x1?void 0x0:_0x450d20?xt(_0xa05c4c,_0x5f240c):_0xa05c4c,_0x45950a=_0x3d3e74[_0x547e82(0x1c8)]-0x1,_0x376669;_0x45950a>=0x0;_0x45950a--)(_0x376669=_0x3d3e74[_0x45950a])&&(_0x39d076=_0x376669(_0x39d076)||_0x39d076);return _0x39d076;},X=(_0x24d843,_0x124205)=>(_0x14ec1f,_0x9901f)=>_0x124205(_0x14ec1f,_0x9901f,_0x24d843);exports[_0x5f41c4(0x22c)]=class extends a['Disposable']{constructor(_0x46947b,_0x2d0312,_0x574862,_0x1123a0){const _0x2b1f96=_0x5f41c4;super(),_(this,_0x2b1f96(0x165),new d[(_0x2b1f96(0x359))](u[_0x2b1f96(0x186)]['NOT_COLLAB'])),(this[_0x2b1f96(0x1dd)]=_0x46947b,this['_injector']=_0x2d0312,this['_collaborationController']=_0x574862,this[_0x2b1f96(0x125)]=_0x1123a0,this[_0x2b1f96(0x11e)](),this[_0x2b1f96(0x297)]());}[_0x5f41c4(0x297)](){const _0x3c7d05=_0x5f41c4;this[_0x3c7d05(0x30b)](this['_univerInstanceService'][_0x3c7d05(0x294)][_0x3c7d05(0x1ce)](d[_0x3c7d05(0x270)](()=>{const _0x133319=_0x3c7d05,_0x316ee4=this['_univerInstanceService'][_0x133319(0x2d5)]();return _0x316ee4?this[_0x133319(0x16b)][_0x133319(0x33b)](_0x316ee4[_0x133319(0x2da)]()):d['of'](null);}),d['switchMap'](_0x283c75=>_0x283c75?_0x283c75[_0x3c7d05(0x34c)]:d['of'](u['CollaborationStatus'][_0x3c7d05(0x31c)])))[_0x3c7d05(0x309)](_0x1fe3c7=>{const _0x484a8b=_0x3c7d05;this['_status$'][_0x484a8b(0x226)](_0x1fe3c7);}));}[_0x5f41c4(0x11e)](){const _0x54d71c=_0x5f41c4;this[_0x54d71c(0x30b)](this['_uiPartsService'][_0x54d71c(0x1d8)](O['BuiltInUIPart'][_0x54d71c(0x22d)],()=>O[_0x54d71c(0x2c1)](Bt({'status$':this[_0x54d71c(0x165)]['asObservable']()}),this[_0x54d71c(0x2b3)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x5f41c4(0x164)]),X(0x1,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),X(0x2,a[_0x5f41c4(0x180)](u[_0x5f41c4(0x24d)])),X(0x3,O[_0x5f41c4(0x366)])],exports[_0x5f41c4(0x22c)]);function Bt(_0x3196bb){const {status$:_0x58e527}=_0x3196bb;return function(){const _0x282dbc=_0x5234;return P[_0x282dbc(0x13a)](je,{'status$':_0x58e527});};}var kt=Object[_0x5f41c4(0x16f)],Ht=(_0x158291,_0x15f53e,_0x26f96d,_0x34977e)=>{const _0x10a2f6=_0x5f41c4;for(var _0x6cdde5=_0x34977e>0x1?void 0x0:_0x34977e?kt(_0x15f53e,_0x26f96d):_0x15f53e,_0x419c3c=_0x158291[_0x10a2f6(0x1c8)]-0x1,_0x33fcdf;_0x419c3c>=0x0;_0x419c3c--)(_0x33fcdf=_0x158291[_0x419c3c])&&(_0x6cdde5=_0x33fcdf(_0x6cdde5)||_0x6cdde5);return _0x6cdde5;},y=(_0x49343a,_0x5b83c8)=>(_0x1ca545,_0x35b427)=>_0x5b83c8(_0x1ca545,_0x35b427,_0x49343a);let z=class extends a[_0x5f41c4(0x153)]{constructor(_0x1f6d4e,_0x5e600b,_0xded190,_0x1354bf,_0x3881ca,_0x7e5fdb){const _0x2206c0=_0x5f41c4;super(),this[_0x2206c0(0x203)]=_0x1f6d4e,this['_localCacheService']=_0x5e600b,this[_0x2206c0(0x142)]=_0xded190,this['_messageService']=_0x1354bf,this[_0x2206c0(0x173)]=_0x3881ca,this[_0x2206c0(0x240)]=_0x7e5fdb,this[_0x2206c0(0x1e7)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x3daf3a=_0x5f41c4;this['disposeWithMe'](this[_0x3daf3a(0x203)]['registerBeforeClose'](()=>{const _0x1e2718=_0x3daf3a;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x1e2718(0x240)]['t'](_0x1e2718(0x1e2));}));}[_0x5f41c4(0x156)](){const _0x99e182=_0x5f41c4;this[_0x99e182(0x30b)](this[_0x99e182(0x142)][_0x99e182(0x191)][_0x99e182(0x309)](_0xdb626a=>{const _0x1d0228=_0x99e182;_0xdb626a['id']===u[_0x1d0228(0x335)][_0x1d0228(0x2d0)]&&this[_0x1d0228(0x32b)]['show']({'type':T[_0x1d0228(0x303)][_0x1d0228(0xf8)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x1ef))}),_0xdb626a['id']===u['CollaborationUIEventId'][_0x1d0228(0x2c8)]&&this['_messageService'][_0x1d0228(0x2b1)]({'type':T[_0x1d0228(0x303)]['Warning'],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x1a9))}),_0xdb626a['id']===u[_0x1d0228(0x335)][_0x1d0228(0x2ad)]&&this[_0x1d0228(0x173)]['show']({'title':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x2f1)),'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x2cd)),'type':_0x1d0228(0x189),'duration':0x0}),_0xdb626a['id']===u['CollaborationUIEventId'][_0x1d0228(0x31e)]&&this[_0x1d0228(0x32b)][_0x1d0228(0x2b1)]({'type':T[_0x1d0228(0x303)][_0x1d0228(0x207)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x1a9))+'('+_0xdb626a['data']+')'}),_0xdb626a['id']===u[_0x1d0228(0x335)][_0x1d0228(0x2fb)]&&this[_0x1d0228(0x32b)]['show']({'type':T[_0x1d0228(0x303)]['Warning'],'content':this[_0x1d0228(0x240)]['t'](_0xdb626a[_0x1d0228(0xfd)]||'')}),_0xdb626a['id']===u[_0x1d0228(0x335)]['SOCKET_FAILED_RETRY']&&this[_0x1d0228(0x32b)][_0x1d0228(0x2b1)]({'type':T['MessageType'][_0x1d0228(0xf8)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x2b4))}),_0xdb626a['id']===u['CollaborationUIEventId'][_0x1d0228(0x275)]&&this[_0x1d0228(0x32b)][_0x1d0228(0x2b1)]({'type':T[_0x1d0228(0x303)][_0x1d0228(0x207)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x284))}),_0xdb626a['id']===u[_0x1d0228(0x335)][_0x1d0228(0x2c4)]&&this['_messageService'][_0x1d0228(0x2b1)]({'type':T[_0x1d0228(0x303)][_0x1d0228(0x207)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x28a))});}));}};function _0x94aa(){const _0x40c2a0=['pushState','offline','rgba(255,\x20255,\x20255,\x200.01)','focused$','FromArray','result','_initStatusListener','arc','InsertRangeMoveRightCommandId','location','TEXT_RANGE_LAYER_INDEX','INVITE_CODE_HAS_BEEN_UES','tag','use','_updateURLWithCurrentState','@univerjs/sheets','M0\x200H16V16H0z','red300','clearInterval','9XOqNKe','gold400','_registerDependencies','assign','transformMutation','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_labelPosition','IMessageService','_drawRectRange','PERMISSION_DENIED','with','IURLService','_themeService','show','MoveRangeCommandId','_injector','session.will-retry','DocStateChangeManagerService','lineTo','setConfig','send','on-line-single_clip0_910_349','_scheduleSaving','_send','Workbook','clearTimeout','entityInit$','_online','onPointerMove$','connectInjector','entries','cursorInfo','SUBMIT_CHANGESET_TIMEOUT','map','updateOfflineData','collabStatus.offline','CLOSE_ROOM','dispose','svg','jiqing500','startColumn','permission.content','LICENSE_DISTRO_REJECTED','toString','OTHER_CLIENT_EDITING','displayName','propertyIsEnumerable','ITransformService','/run/','getFocusedUnit','_cursorShapes','xlink:href','collabStatus.notCollab','path','getUnitId','children','UNDEFINED','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','_docTransformSelectionsService','off-line-single_clip0_910_343','size','setAlpha','#fff','deepClone','_getSheetObject','unitID','pluginName','createIdentifier','@univerjs/sheets-ui','useObservable','cursorInfo$','_initEntityListener','LOCAL_CACHE_INTERVAL','newValue','RxDisposable','concat','permission.title','getMergeData','ILocalCacheService','2436594oInvGS','AWAITING','_session','_getAnchorBounding','source','bottom','_logService','JOIN_ROOM_FAILED','@univerjs/docs-ui','IRemoteInstanceService','div','IImageIoService','_getMergeRange','uni.network.url-service','getDocRanges','MessageType','memberID','isTransformMutationFailure','_id','InsertRowCommandId','init','subscribe','10HbCWgq','disposeWithMe','getRelativeToViewportCoord','sheetID','react','univer-online-status-title','defineProperty','width','_drawAnchor','disposeUnit','_hideTimer','_range','hasOwnProperty','OTHER_CLIENTS_EDITING','extend','translate(.97)','UniverIcon','UNAUTHENTICATED','NOT_COLLAB','_context','CONFLICT','_document','YUUMI_SUBSCRIPTION_NOT_FOUND','unshift','generateRandomId','imageSourceType','1335412MJcjCK','0\x200\x2017\x2016','_dataLoaderService','SetDocZoomRatioOperation','restore','@univerjs/core','getLocalCacheKey','_messageService','addObject','font','handleMoveRange','_anchorDot','stringify','ColorKit','_handleEvent','_selfUnitIDs','forEach','CollaborationUIEventId','getMember','IConfigService','black','toRgbString','_docClipboardService','getCollabEntity$','idSuffix','textRanges','_clearOtherTimers','complete','includes','_entities','disableLocalCache','EMAIL_HAS_BEEN_BOUND','string','DocSkeletonManagerService','useDependency','name','getUnitStatus$','_instanceService','Rect','row','status$','6670248WPsufs','_scheduleHeartbeat','_createSocketURL','apply','_cursor','urlChange$','_docSkeletonManagerService','mutations','invokeId','onCommandExecuted','0\x200\x2016\x2016','APPLY_NON_SEQUENTIAL_REVISION','BehaviorSubject','sessionStatus$','COLORS','debug','@univerjs/design','getCurrentUnitForType','setParam','EffectRefRangId','beginPath','getUndoRedoMutationParamsCache','_onCursorUpdate','YUUMI_UNABLE_LOAD_URL','distinctUntilChanged','IUIPartsService','NOT_FOUND','_transformService','then','univer-flex\x20univer-items-center','univer-online-status','_handleLeaveEvent','indexOf','clipPath','_imageIoService','body','url(#off-line-single_clip0_910_343)','UniverInstanceType','saveOfflineData','all','_collabCursorState$','subscribeEvent','_startSheetCollabCursor','onTransformChange$','round','url(#$1','ThemeService','Warning','origin','univerjs-icon\x20univerjs-icon-','_roomMembers$','unit','data','_urlService','isActive','_updateCollabCursors','_onRefRangeChange','color','_localStorageService','addEventListener','MUTATION','CollaborationDataLoaderController','defs','USERS_LEAVE','code','RemoteUniscriptService','transformMutationsWithChangeset','getCurrent','filter','getCollabCursors$','setItem','INTERNAL_ERROR','_eventUnsubscribe','eventID','onlineStatus','assignAColorForMemberID','ACTIVE_UNIT_EVENT_CHANNEL','SetWorksheetActivateCommand','random','_colorIndex','SNAPSHOT_HAS_BEEN_REMOVED','_getSessionTicket','@univerjs/rpc','blue400','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','_initStatusComponent','resize','PY_RUNTIME_SCRIPT_ERROR','handleIRemoveRow','_handleJoinEvent','getSheetBySheetId','currentColor','_uiPartsService','SheetSkeletonManagerService','currentTheme$','merge','UPDATE_CURSOR','ICommandService','reconnect','WebSocketService','backgroundColor','parse','USER_NOT_INVITED_CODE','SetSelectionsOperation','_updateLocalCursor','_assignedColors','_color','getStateCache','undoState','SheetCollabCursorShape','_cachedData','DependentOn','Shape','jsx','getConfig','onPointerLeave$','getActiveRange','defIds','getUnhiddenWorksheets','setShapeProps','getRangePointData','_collaborationUIEventService','some','@univerjs/engine-formula','IBeforeCloseService','_colorAssignService','skeleton','hide','mapTo','YUUMI_URL_COL_OUT_OF_RANGE','onlineStatusTitle','application/json','INVALID_ARGUMENT','ALREADY_EXISTS','redoState','WebBrowserSingleActiveUnitService','forwardRef','requireSession','Disposable','univer-online','getColor','_initEvent','editingUnit','getSkeleton','LOGIN_FAILED','@univerjs/drawing','CollaborationSessionService','UniverCollaborationClientPlugin','APPLY_REVISION_CONFILICT','_commandService','popstate','transformIMECache','evenodd','onMouseMove','2498250dSioUB','IUniverInstanceService','_status$','_memberService','_drawTextRange','_renderManagerService','replace','fillRule','_collaborationController','2GfTxuY','_transformUndoRedoStack','CommandType','getOwnPropertyDescriptor','Plugin','registerRefRange','takeUntil','_notificationService','asObservable','clsx','DocIMEInputManagerService','@univerjs/ui','UnitStatus','_cursors','_initCommandExecutedListener','_registerRenderDependencies','_collabCursorController','_initDependencies','split','LICENSE_IMPORT_SIZE_EXCEEDED','Inject','useRef','WECHAT_HAS_BEEN_BOUND','type','ONLINE','_init','CollaborationStatus','_refRangeService','Injector','error','dispose$','touchDependencies','measureText','substring','override','APPLY_DUPLICATED','call','event$','UNRECOGNIZED','className','getTypeOfUnitAdded$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_name','AWAITING_WITH_PENDING','@univerjs/engine-render','TOO_MANY_REQUESTS','UNIVER_SHEET','SNAPSHOT_INVALID_SNAPSHOT','collabStatus.syncing','_lastPointer','UniverCollaborationClientUIPlugin','getItem','executeCommand','IRenderManagerService','COMPLETION_FINISHED','LocaleService','handleInsertRow','_anchor','icon','purple300','getViewport','collaboration.closeRoom','syncEditingCollabCursor','_doCreateSocket','863408XQIaRW','_backgroundColor','getParam','_onCursorDelete','handleDeleteRangeMoveUp','CollaborationSocketService','endColumn','Tools','TEXT','_initResize','onLocalMutation','closePath','onRendered','_docStateChangeManagerService','height','doc.mutation.rich-text-editing','MemberService','actions','wsSessionTicketUrl','YUUMI_NO_CUBOID_FOR_QUESTION','SessionStatus','replaceState','moveTo','Failed','setTimeout','isArray','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_draw','length','createInstance','ILocalStorageService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_entityInit$','pipe','hovered','function','delete','getSheetObject','APPLY_PERMISSION_DENIED','Module','sheetId','_handleHeartbeatEvent','INVITE_CODE_REQUIRED','registerComponent','save','RefRangeService','combineLatest','transform','_univerInstanceService','_configService','BrowserCollaborationSocketService','fromEvent','[CollaborationDataLoaderController]','collaboration-client.offline-data-not-saved','CollaborationStatusDisplay','HTTPService','onStarting','contains','_setupBeforeClosingHandler','_saveCache','handleInsertRangeMoveRight','loadUnit','OFFLINE','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','unitId','DisposableCollection','collaboration.single-unit.warning','transformStateCache','CHANGESET_REVISION_CONFILICT','getRenderById','collabStatus.fetchMiss','triggerDblclick','get','RichTextEditingMutation','transformByState','range','drawWith','registerDependencies','find','_scheduleClearOtherTimer','setUndoRedoMutationParamsCache','_docSyncEditingCollabCursorService','_config','YUUMI_ASYNCIO_CANCELLED','_removeCollabCursors','ranges','_beforeCloseService','ISocketService','min','colorChannel1','Error','serializeRangeWithSheet','loadOfflineData','transformSelections','add','_disabled','mergeOverrideWithDependencies','top','isTransformMutationsWithChangesetSuccess','_ensureSubject','@univerjs/docs','post','CONNECTOR_DATA_TOO_LARGE','NO_OTHER_CLIENTS_EDITING','INotificationService','RECT','_unitStatus','_refreshCollabCursors','_revisionService','_heartbeatTimer','ISnapshotServerService','_httpService','fillText','univer-online-status-icon','1em','subunit','Subject','_removeClearOtherTimer','docStateChange$','getValue','none','next','createElement','current','DEFAULT_WS_SESSION_TICKET_URL','121zlEGRp','ticket','DesktopCollaborationStatusDisplayController','HEADER_MENU','params','replaceDocRanges','values','CollaborationEvent','runId','_toggleOffline','...','subUnitId','WebURLService','m1Prime','_collabSessionService','from','_updateSubUnitFromURLParams','text','_hovered','_scene','RevisionService','APPLY_REJECT','_localeService','fillStyle','getAncestorScale','LICENSE_EXPORT_SIZE_EXCEEDED','_handleHover','fill','_textBubble','url(#on-line-single_clip0_910_349)','selection','ILogService','InsertColCommandId','getMemberID','debounce','CollaborationController','_saveTaskMap','addObjects','prototype','exhaustSavingTask','getUniverSheetInstance','runRefRangeMutations','1627380qVrKph','#FFF','column','UNIVER_DOC','m2Prime','attrs','_cursorInfo$','_unitOnClients','_startDocCollabCursor','INVITE_CODE_ALREADY_BOUND','searchParams','getOwnPropertySymbols','RegularPolygon','transformRemoteChangeset','_hover','handleDeleteRangeMoveLeft','roomMembers$','verdancy600','DOC_RANGE_TYPE','saveImage','_docTransformIMECacheService','_docTransformStateCacheService','univer-offline','currentSkeleton$','getTypeOfUnitDisposed$','trim','setActiveRange','OffLineSingle','switchMap','href','whenReady','rxjs/operators','_sheetSkeletonManagerService','SOCKET_FAILED','YUUMI_RATE_OVER_LIMIT','1607932vedOvm','MOBILE_HAS_BEEN_BOUND','jsxs','findNodePositionByCharIndex','collabCursorState$','getCoordByCell','push','_syncEditingCollabCursorService','_toggleOnline','history','Unknown\x20user','symbol','deserializeRangeWithSheet','session.connection-failed','makeDirty','isEditing','has','registerRenderModule','toDisposable','session.collaboration-timeout','getSheetId','set','onPointerEnter$','DocSelectionManagerService','SheetsSelectionsService','_shapes'];_0x94aa=function(){return _0x40c2a0;};return _0x94aa();}z=Ht([y(0x0,O[_0x5f41c4(0x145)]),y(0x1,u[_0x5f41c4(0x2f3)]),y(0x2,a[_0x5f41c4(0x180)](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O[_0x5f41c4(0x215)]),y(0x5,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x1a3)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a[_0x5f41c4(0x2e8)](_0x5f41c4(0x301));var Wt=Object[_0x5f41c4(0x16f)],Yt=(_0x2e226b,_0x4d7734,_0x5eed50,_0x2f5383)=>{const _0x37d5d8=_0x5f41c4;for(var _0x218850=_0x2f5383>0x1?void 0x0:_0x2f5383?Wt(_0x4d7734,_0x5eed50):_0x4d7734,_0x31fc9d=_0x2e226b[_0x37d5d8(0x1c8)]-0x1,_0x2a6d2c;_0x31fc9d>=0x0;_0x31fc9d--)(_0x2a6d2c=_0x2e226b[_0x31fc9d])&&(_0x218850=_0x2a6d2c(_0x218850)||_0x218850);return _0x218850;},F=(_0x4f463f,_0x1d22ca)=>(_0x306a7f,_0x28ac7e)=>_0x1d22ca(_0x306a7f,_0x28ac7e,_0x4f463f);exports[_0x5f41c4(0x106)]=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x2608d7,_0x223038,_0x4c4dcb,_0x276d1b,_0x5e9e59){const _0x3e988c=_0x5f41c4;super(),this['_urlService']=_0x2608d7,this[_0x3e988c(0x2fa)]=_0x223038,this[_0x3e988c(0x15e)]=_0x4c4dcb,this['_dataLoaderService']=_0x276d1b,_0x5e9e59?_0x5e9e59==null||_0x5e9e59[_0x3e988c(0x272)]()['then'](()=>this[_0x3e988c(0x185)]()):(this[_0x3e988c(0x2fa)][_0x3e988c(0x35c)](_0x3e988c(0x1e1),_0x3e988c(0x195)),this['_init']());}async[_0x5f41c4(0x185)](){const _0x47f3b7=_0x5f41c4,_0x55a8ed=this['_urlService'][_0x47f3b7(0x1ae)](_0x47f3b7(0xfc)),_0x24ed85=this[_0x47f3b7(0xfe)]['getParam']('type'),_0x2bb3d4=this[_0x47f3b7(0xfe)][_0x47f3b7(0x1ae)]('subunit');if(!_0x55a8ed||!_0x24ed85){this[_0x47f3b7(0x2fa)]['debug'](_0x47f3b7(0x1e1),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4ff821=await this[_0x47f3b7(0x326)][_0x47f3b7(0x1ea)](_0x55a8ed,Number(_0x24ed85),_0x2bb3d4);_0x4ff821&&_0x4ff821 instanceof a[_0x47f3b7(0x2bc)]&&this['_setupSubUnitSync'](_0x4ff821);}async['_setupSubUnitSync'](_0x169bcd){const _0x32d547=_0x5f41c4;await this[_0x32d547(0x23a)](_0x169bcd),_0x169bcd['activeSheet$']['pipe'](d['takeUntil'](this[_0x32d547(0x18a)]))['subscribe'](_0x589f7b=>{const _0x2849a3=_0x32d547;_0x589f7b&&this[_0x2849a3(0x29f)](_0x589f7b);}),this[_0x32d547(0xfe)][_0x32d547(0x352)][_0x32d547(0x1ce)](d['takeUntil'](this[_0x32d547(0x18a)]))[_0x32d547(0x309)](()=>this['_updateSubUnitFromURLParams'](_0x169bcd));}[_0x5f41c4(0x29f)](_0x13a502,_0x16c0da=!0x1){const _0x82c62b=_0x5f41c4,_0x86b928=this[_0x82c62b(0xfe)][_0x82c62b(0x1ae)](_0x82c62b(0x220));_0x13a502[_0x82c62b(0x28b)]()!==_0x86b928&&this[_0x82c62b(0xfe)][_0x82c62b(0x35f)](_0x82c62b(0x220),_0x13a502[_0x82c62b(0x28b)](),_0x16c0da);}async['_updateSubUnitFromURLParams'](_0x373f78){const _0x8b12f5=_0x5f41c4;var _0x578fdc;const _0x4cf38a=this[_0x8b12f5(0xfe)][_0x8b12f5(0x1ae)](_0x8b12f5(0x220));if(!_0x4cf38a||!_0x373f78['getSheetBySheetId'](_0x4cf38a)){const _0x52ebed=_0x373f78[_0x8b12f5(0x13f)]()[0x0],_0x3fca93=_0x373f78[_0x8b12f5(0x123)](_0x52ebed);if(!_0x3fca93)return;this[_0x8b12f5(0x29f)](_0x3fca93,!0x0),await this[_0x8b12f5(0x15e)][_0x8b12f5(0x1a0)](g[_0x8b12f5(0x116)]['id'],{'unitId':_0x373f78[_0x8b12f5(0x2da)](),'subUnitId':_0x52ebed});return;}((_0x578fdc=_0x373f78['getActiveSheet']())==null?void 0x0:_0x578fdc[_0x8b12f5(0x28b)]())!==_0x4cf38a&&await this[_0x8b12f5(0x15e)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x373f78[_0x8b12f5(0x2da)](),'subUnitId':_0x4cf38a});}},exports[_0x5f41c4(0x106)]=Yt([F(0x0,Ee),F(0x1,a[_0x5f41c4(0x249)]),F(0x2,a[_0x5f41c4(0x12a)]),F(0x3,a[_0x5f41c4(0x180)](u['DataLoaderService'])),F(0x4,a['Optional'](Ke[_0x5f41c4(0x2fd)]))],exports[_0x5f41c4(0x106)]);var Vt=Object[_0x5f41c4(0x16f)],Xt=(_0x44feac,_0x592d40,_0x3bb74a,_0x25a374)=>{for(var _0xcceabd=_0x25a374>0x1?void 0x0:_0x25a374?Vt(_0x592d40,_0x3bb74a):_0x592d40,_0x13f404=_0x44feac['length']-0x1,_0xb5f1f2;_0x13f404>=0x0;_0x13f404--)(_0xb5f1f2=_0x44feac[_0x13f404])&&(_0xcceabd=_0xb5f1f2(_0xcceabd)||_0xcceabd);return _0xcceabd;},le=(_0xf4c52f,_0x196b0a)=>(_0x163390,_0x1edfdb)=>_0x196b0a(_0x163390,_0x1edfdb,_0xf4c52f);let J=class{constructor(_0x333d46,_0x512f59,_0x55ffd0){const _0x34353c=_0x5f41c4;this[_0x34353c(0x2b3)]=_0x333d46,this['_transformService']=_0x512f59,this[_0x34353c(0x168)]=_0x55ffd0;}[_0x5f41c4(0x160)](_0x12f7cb){this['_transformUndoRedoStack'](_0x12f7cb),this['_transformPreviousActiveRange'](_0x12f7cb);}[_0x5f41c4(0x261)](_0x4a426b){const _0xf2d465=_0x5f41c4,{unitID:_0xa1ca6d}=_0x4a426b,_0x5c1a49=this[_0xf2d465(0x168)][_0xf2d465(0x1f2)](_0xa1ca6d)[_0xf2d465(0x2ae)](b[_0xf2d465(0x176)]),{redoCache:_0x3cb275}=_0x5c1a49[_0xf2d465(0x362)]();if(_0x3cb275[_0xf2d465(0x1c8)]===0x0)return _0x4a426b;let _0x6b5de3=a[_0xf2d465(0x1b3)][_0xf2d465(0x2e4)](_0x4a426b[_0xf2d465(0x354)][0x0]);for(let _0x32904a=0x0;_0x32904a<_0x3cb275['length'];_0x32904a++){const _0x50d0f9={'id':'doc.mutation.rich-text-editing','params':{..._0x3cb275[_0x32904a]}},_0x2e45a6=this['_transformService'][_0xf2d465(0x2a8)](_0x6b5de3,_0x50d0f9,!0x1);if(m[_0xf2d465(0x305)](_0x2e45a6))throw _0x2e45a6['error'];_0x6b5de3=_0x2e45a6[_0xf2d465(0x237)];}return{...a[_0xf2d465(0x1b3)][_0xf2d465(0x2e4)](_0x4a426b),'mutations':[_0x6b5de3]};}[_0x5f41c4(0x16d)](_0x108a9b){const _0x15197a=_0x5f41c4,{unitID:_0x2e0e9f}=_0x108a9b,_0x473181=this[_0x15197a(0x168)]['getRenderById'](_0x2e0e9f)[_0x15197a(0x2ae)](b[_0x15197a(0x176)]),{undoCache:_0x542aab,redoCache:_0x34050f}=_0x473181['getUndoRedoMutationParamsCache']();if(_0x542aab[_0x15197a(0x1c8)]===0x0||_0x34050f[_0x15197a(0x1c8)]===0x0)return;const _0x20aa95=[],_0x5d49ee=[];let _0x143445=a[_0x15197a(0x1b3)]['deepClone'](_0x108a9b[_0x15197a(0x354)][0x0]),_0x5aa15f=a[_0x15197a(0x1b3)]['deepClone'](_0x108a9b[_0x15197a(0x354)][0x0]);for(let _0x56e6cc=_0x542aab[_0x15197a(0x1c8)]-0x1;_0x56e6cc>=0x0;_0x56e6cc--){const _0xa73fb8={'id':_0x15197a(0x1bb),'params':{..._0x542aab[_0x56e6cc]}},_0x16253b={'id':'doc.mutation.rich-text-editing','params':{..._0x34050f[_0x56e6cc]}},_0x21f1b9=this[_0x15197a(0x368)]['transformMutation'](_0x143445,_0xa73fb8,!0x1),_0xc8048=this['_transformService'][_0x15197a(0x2a8)](_0x5aa15f,_0x16253b,!0x1);if(m[_0x15197a(0x305)](_0x21f1b9))throw _0x21f1b9[_0x15197a(0x189)];if(m[_0x15197a(0x305)](_0xc8048))throw _0xc8048[_0x15197a(0x189)];_0x20aa95[_0x15197a(0x321)](_0x21f1b9[_0x15197a(0x258)][_0x15197a(0x22e)]),_0x5d49ee['unshift'](_0xc8048['m2Prime'][_0x15197a(0x22e)]),_0x143445=_0x21f1b9[_0x15197a(0x237)],_0x5aa15f=_0xc8048[_0x15197a(0x237)];}_0x473181[_0x15197a(0x1fd)]({'undoCache':_0x20aa95,'redoCache':_0x5d49ee});}['_transformPreviousActiveRange'](_0x4469dc){const _0x16a522=_0x5f41c4,{unitID:_0x5f0f98}=_0x4469dc,_0x136647=this[_0x16a522(0x168)][_0x16a522(0x1f2)](_0x5f0f98)[_0x16a522(0x2ae)](b[_0x16a522(0x176)]),_0x1d0a84=_0x136647[_0x16a522(0x13d)]();if(_0x1d0a84==null)return;const _0x5a786b=[{'id':_0x16a522(0x1bb),'params':{'unitId':_0x4469dc['unitID'],'actions':null,'textRanges':[_0x1d0a84]}}],_0x38d100=this['_transformService'][_0x16a522(0x10b)](_0x4469dc,_0x5a786b);if(!m[_0x16a522(0x20f)](_0x38d100))throw _0x38d100[_0x16a522(0x189)];const _0x18e971=_0x38d100[_0x16a522(0x258)][0x0]['params'][_0x16a522(0x33d)];Array[_0x16a522(0x1c5)](_0x18e971)&&_0x18e971[_0x16a522(0x1c8)]&&_0x136647[_0x16a522(0x26e)](_0x18e971[0x0]);}};J=Xt([le(0x0,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),le(0x1,m[_0x5f41c4(0x2d3)]),le(0x2,p[_0x5f41c4(0x1a1)])],J);var Gt=Object[_0x5f41c4(0x16f)],qt=(_0x4d250c,_0x282128,_0x1c82f1,_0x42467c)=>{const _0x54fa0c=_0x5f41c4;for(var _0x4a3b5f=_0x42467c>0x1?void 0x0:_0x42467c?Gt(_0x282128,_0x1c82f1):_0x282128,_0x5381f4=_0x4d250c[_0x54fa0c(0x1c8)]-0x1,_0x1df113;_0x5381f4>=0x0;_0x5381f4--)(_0x1df113=_0x4d250c[_0x5381f4])&&(_0x4a3b5f=_0x1df113(_0x4a3b5f)||_0x4a3b5f);return _0x4a3b5f;},_e=(_0x2f4562,_0x2441cc)=>(_0x537b02,_0x5dc687)=>_0x2441cc(_0x537b02,_0x5dc687,_0x2f4562);let Z=class{constructor(_0x1f26f0,_0x4705ff,_0x3eaf3f){const _0x4179b6=_0x5f41c4;this['_injector']=_0x1f26f0,this['_transformService']=_0x4705ff,this[_0x4179b6(0x1b9)]=_0x3eaf3f;}[_0x5f41c4(0x1f0)](_0x12af3f){this['_transformHistoryAndStateStack'](_0x12af3f);}['transformRemoteChangeset'](_0xa074d1){const _0x8799f7=_0x5f41c4,{unitID:_0x2dd0eb}=_0xa074d1,{collaboration:_0x57a612}=this['_docStateChangeManagerService'][_0x8799f7(0x134)](_0x2dd0eb);if(_0x57a612[_0x8799f7(0x1c8)]===0x0)return _0xa074d1;let _0x46fe8f=a[_0x8799f7(0x1b3)][_0x8799f7(0x2e4)](_0xa074d1[_0x8799f7(0x354)][0x0]);for(let _0x422de2=0x0;_0x422de2<_0x57a612[_0x8799f7(0x1c8)];_0x422de2++){const _0x33adaa={'id':_0x8799f7(0x1bb),'params':{'unitId':_0x57a612[_0x422de2][_0x8799f7(0x1ed)],..._0x57a612[_0x422de2][_0x8799f7(0x14f)]}},_0x1e5d5c=this[_0x8799f7(0x368)][_0x8799f7(0x2a8)](_0x46fe8f,_0x33adaa,!0x1);if(m[_0x8799f7(0x305)](_0x1e5d5c))throw _0x1e5d5c[_0x8799f7(0x189)];_0x46fe8f=_0x1e5d5c[_0x8799f7(0x237)];}return{...a[_0x8799f7(0x1b3)]['deepClone'](_0xa074d1),'mutations':[_0x46fe8f]};}['_transformHistoryAndStateStack'](_0xc27a7e){const _0x512caa=_0x5f41c4,{unitID:_0x756eac}=_0xc27a7e,{history:_0x52e6a4,collaboration:_0x414ab0}=this[_0x512caa(0x1b9)][_0x512caa(0x134)](_0x756eac);if(_0x52e6a4[_0x512caa(0x1c8)]===0x0&&_0x414ab0[_0x512caa(0x1c8)]===0x0)return;const _0x2657be=[],_0x363cd0=[];let _0x120183=a[_0x512caa(0x1b3)]['deepClone'](_0xc27a7e[_0x512caa(0x354)][0x0]),_0x2fbdfd=a[_0x512caa(0x1b3)][_0x512caa(0x2e4)](_0xc27a7e[_0x512caa(0x354)][0x0]);for(let _0x3d2b07=_0x52e6a4[_0x512caa(0x1c8)]-0x1;_0x3d2b07>=0x0;_0x3d2b07--){const _0x3dce19={'id':_0x512caa(0x1bb),'params':{'unitId':_0x52e6a4[_0x3d2b07]['unitId'],..._0x52e6a4[_0x3d2b07][_0x512caa(0x135)]}},_0x4f9d51={'id':_0x512caa(0x1bb),'params':{'unitId':_0x52e6a4[_0x3d2b07][_0x512caa(0x1ed)],..._0x52e6a4[_0x3d2b07][_0x512caa(0x14f)]}},_0x2c4668=this['_transformService'][_0x512caa(0x2a8)](_0x120183,_0x3dce19,!0x1),_0x2ab9c9=this['_transformService'][_0x512caa(0x2a8)](_0x2fbdfd,_0x4f9d51,!0x1);if(m['isTransformMutationFailure'](_0x2c4668))throw _0x2c4668[_0x512caa(0x189)];if(m['isTransformMutationFailure'](_0x2ab9c9))throw _0x2ab9c9['error'];_0x2657be[_0x512caa(0x321)]({..._0x52e6a4[_0x3d2b07],'undoState':_0x2c4668['m2Prime'][_0x512caa(0x22e)],'redoState':_0x2ab9c9[_0x512caa(0x258)][_0x512caa(0x22e)]}),_0x120183=_0x2c4668['m1Prime'],_0x2fbdfd=_0x2ab9c9[_0x512caa(0x237)];}_0x120183=a[_0x512caa(0x1b3)]['deepClone'](_0xc27a7e[_0x512caa(0x354)][0x0]),_0x2fbdfd=a[_0x512caa(0x1b3)][_0x512caa(0x2e4)](_0xc27a7e['mutations'][0x0]);for(let _0x40185f=_0x414ab0[_0x512caa(0x1c8)]-0x1;_0x40185f>=0x0;_0x40185f--){const _0x691f22={'id':_0x512caa(0x1bb),'params':{'unitId':_0x414ab0[_0x40185f]['unitId'],..._0x414ab0[_0x40185f]['undoState']}},_0x805177={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x414ab0[_0x40185f][_0x512caa(0x1ed)],..._0x414ab0[_0x40185f][_0x512caa(0x14f)]}},_0xea98c2=this[_0x512caa(0x368)][_0x512caa(0x2a8)](_0x120183,_0x691f22,!0x1),_0x3b0193=this[_0x512caa(0x368)]['transformMutation'](_0x2fbdfd,_0x805177,!0x1);if(m[_0x512caa(0x305)](_0xea98c2))throw _0xea98c2[_0x512caa(0x189)];if(m[_0x512caa(0x305)](_0x3b0193))throw _0x3b0193[_0x512caa(0x189)];_0x363cd0['unshift']({..._0x414ab0[_0x40185f],'undoState':_0xea98c2[_0x512caa(0x258)][_0x512caa(0x22e)],'redoState':_0x3b0193[_0x512caa(0x258)][_0x512caa(0x22e)]}),_0x120183=_0xea98c2[_0x512caa(0x237)],_0x2fbdfd=_0x3b0193[_0x512caa(0x237)];}this[_0x512caa(0x1b9)]['setStateCache'](_0x756eac,{'history':_0x2657be,'collaboration':_0x363cd0});}};Z=qt([_e(0x0,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),_e(0x1,m['ITransformService']),_e(0x2,a['Inject'](b['DocStateChangeManagerService']))],Z);var Kt=Object[_0x5f41c4(0x16f)],zt=(_0x243203,_0x31e79c,_0x59e26b,_0x371a3f)=>{for(var _0x271325=_0x371a3f>0x1?void 0x0:_0x371a3f?Kt(_0x31e79c,_0x59e26b):_0x31e79c,_0x44770e=_0x243203['length']-0x1,_0x5d61b3;_0x44770e>=0x0;_0x44770e--)(_0x5d61b3=_0x243203[_0x44770e])&&(_0x271325=_0x5d61b3(_0x271325)||_0x271325);return _0x271325;},Me=(_0x4bb162,_0x1fe158)=>(_0x27f881,_0x45f2dd)=>_0x1fe158(_0x27f881,_0x45f2dd,_0x4bb162);let Q=class{constructor(_0x37e778,_0x1db772){const _0x12df5c=_0x5f41c4;this['_injector']=_0x37e778,this[_0x12df5c(0x368)]=_0x1db772;}['transformSelections'](_0x242c02){const _0x5dfe91=_0x5f41c4;var _0x8ba2b5;const _0x4c26b6=this[_0x5dfe91(0x2b3)][_0x5dfe91(0x1f5)](Y[_0x5dfe91(0x28e)]),_0x27c024=(_0x8ba2b5=_0x4c26b6[_0x5dfe91(0x302)]())!=null?_0x8ba2b5:[];if(_0x27c024['length']===0x0)return;const _0x1691e9=_0x242c02[_0x5dfe91(0x2e6)],_0x34a3e1=[{'id':_0x5dfe91(0x1bb),'params':{'unitId':_0x1691e9,'actions':null,'textRanges':_0x27c024}}],_0x43858b=this[_0x5dfe91(0x368)][_0x5dfe91(0x10b)](_0x242c02,_0x34a3e1);if(!m[_0x5dfe91(0x20f)](_0x43858b))throw _0x43858b[_0x5dfe91(0x189)];const _0x2c3bcc=_0x43858b['m2Prime'][0x0][_0x5dfe91(0x22e)]['textRanges'];Array['isArray'](_0x2c3bcc)&&_0x2c3bcc[_0x5dfe91(0x1c8)]&&_0x4c26b6[_0x5dfe91(0x22f)](_0x2c3bcc,{'unitId':_0x1691e9,'subUnitId':_0x1691e9},!0x1);}};Q=zt([Me(0x0,a['Inject'](a['Injector'])),Me(0x1,m[_0x5f41c4(0x2d3)])],Q);var Jt=Object[_0x5f41c4(0x16f)],Zt=(_0x4e041b,_0x5e5b33,_0x5796c9,_0x826b20)=>{const _0xdaacf4=_0x5f41c4;for(var _0x37effb=_0x826b20>0x1?void 0x0:_0x826b20?Jt(_0x5e5b33,_0x5796c9):_0x5e5b33,_0x1527ae=_0x4e041b[_0xdaacf4(0x1c8)]-0x1,_0x18e406;_0x1527ae>=0x0;_0x1527ae--)(_0x18e406=_0x4e041b[_0x1527ae])&&(_0x37effb=_0x18e406(_0x37effb)||_0x37effb);return _0x37effb;},N=(_0x55fb86,_0x45bac6)=>(_0x1f5f32,_0x196a44)=>_0x45bac6(_0x1f5f32,_0x196a44,_0x55fb86);let ee=class extends a[_0x5f41c4(0x153)]{constructor(_0x261d60,_0x3d6777,_0x46e7b8,_0x421d23,_0x16d494,_0x175163,_0x452240,_0x2c1ea5){const _0x1f2750=_0x5f41c4;super(),_(this,_0x1f2750(0x165),new d[(_0x1f2750(0x359))](u['CollaborationStatus'][_0x1f2750(0x31c)])),(this[_0x1f2750(0x1b9)]=_0x261d60,this[_0x1f2750(0x16b)]=_0x3d6777,this['_docTransformIMECacheService']=_0x46e7b8,this[_0x1f2750(0x269)]=_0x421d23,this[_0x1f2750(0x2df)]=_0x16d494,this[_0x1f2750(0x1fe)]=_0x175163,this['_messageService']=_0x452240,this[_0x1f2750(0x240)]=_0x2c1ea5,this[_0x1f2750(0x2ec)]());}[_0x5f41c4(0x2ec)](){const _0x537bc9=_0x5f41c4;this['disposeWithMe'](this['_collaborationController'][_0x537bc9(0x2be)]['subscribe'](_0x13173e=>{const _0x72e0e=_0x537bc9,_0x54562b=this[_0x72e0e(0x1b9)][_0x72e0e(0x223)][_0x72e0e(0x309)](_0xb57169=>{const _0x1004a6=_0x72e0e;if(_0xb57169==null)return;const {unitId:_0x2bd22e,redoState:_0x3c30e4,commandId:_0x4b23e8}=_0xb57169;if(_0x2bd22e!==_0x13173e[_0x1004a6(0x2e6)])return;const _0x14f62a={'id':_0x4b23e8,'type':a[_0x1004a6(0x16e)][_0x1004a6(0x105)],'params':{'unitId':_0x2bd22e,'actions':_0x3c30e4[_0x1004a6(0x1bd)],'textRanges':null}};_0x13173e[_0x1004a6(0x1b6)](_0x14f62a);});if(_0x13173e[_0x72e0e(0x30b)](_0x54562b),_0x13173e instanceof u['DocCollaborationEntity']){const _0x4cb065={'onTransformIME':_0x44a9aa=>this[_0x72e0e(0x268)][_0x72e0e(0x160)](_0x44a9aa),'onTransformState':_0x314ce5=>this[_0x72e0e(0x269)][_0x72e0e(0x1f0)](_0x314ce5),'onTransformSelections':_0x2a99a1=>this[_0x72e0e(0x2df)][_0x72e0e(0x20a)](_0x2a99a1),'onSyncEditingCollabCursor':_0x2764db=>this[_0x72e0e(0x1fe)][_0x72e0e(0x1aa)](_0x2764db),'onTransformRemoteChangesetByIMECache':_0x5e8687=>this[_0x72e0e(0x268)][_0x72e0e(0x261)](_0x5e8687),'onTransformRemoteChangesetByStateCache':_0x12071e=>this['_docTransformStateCacheService'][_0x72e0e(0x261)](_0x12071e)};_0x13173e['addHandlerCallback'](_0x4cb065);}}));}};ee=Zt([N(0x0,a['Inject'](b[_0x5f41c4(0x2b5)])),N(0x1,a[_0x5f41c4(0x180)](u[_0x5f41c4(0x24d)])),N(0x2,a[_0x5f41c4(0x180)](J)),N(0x3,a[_0x5f41c4(0x180)](Z)),N(0x4,a[_0x5f41c4(0x180)](Q)),N(0x5,a[_0x5f41c4(0x180)](pe)),N(0x6,O[_0x5f41c4(0x2ab)]),N(0x7,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x1a3)]))],ee);var Qt=Object[_0x5f41c4(0x16f)],es=(_0xe7bf5a,_0x10fcf2,_0x2a4f40,_0x37fee9)=>{for(var _0x5d8cd1=_0x37fee9>0x1?void 0x0:_0x37fee9?Qt(_0x10fcf2,_0x2a4f40):_0x10fcf2,_0x445675=_0xe7bf5a['length']-0x1,_0x3dc60c;_0x445675>=0x0;_0x445675--)(_0x3dc60c=_0xe7bf5a[_0x445675])&&(_0x5d8cd1=_0x3dc60c(_0x5d8cd1)||_0x5d8cd1);return _0x5d8cd1;},he=(_0x26fa2d,_0xaef8d7)=>(_0x1a43e1,_0x17c9f9)=>_0xaef8d7(_0x1a43e1,_0x17c9f9,_0x26fa2d);let me=class extends a[_0x5f41c4(0x153)]{constructor(_0x3ba4e4,_0x5e737c,_0x3da981){const _0x4a1ddb=_0x5f41c4;super(),_(this,_0x4a1ddb(0x137),new Map()),_(this,_0x4a1ddb(0x24e),new Map()),_(this,_0x4a1ddb(0x20c),!0x1),(this['_configService']=_0x3ba4e4,this[_0x4a1ddb(0x103)]=_0x5e737c,this[_0x4a1ddb(0x219)]=_0x3da981);}[_0x5f41c4(0x342)](){this['_disabled']=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x36f8b0=_0x5f41c4;this[_0x36f8b0(0x251)]()[_0x36f8b0(0x369)](()=>super[_0x36f8b0(0x2c9)]());}async[_0x5f41c4(0x209)](_0x4bcbbc){const _0x466640=_0x5f41c4;return this[_0x466640(0x20c)]?null:this[_0x466640(0x103)][_0x466640(0x19f)](u[_0x466640(0x32a)](_0x4bcbbc));}async[_0x5f41c4(0x373)](_0x2e8bf6,_0x216762){const _0x4ddece=_0x5f41c4;return!!this[_0x4ddece(0x103)][_0x4ddece(0x10f)](_0x2e8bf6,_0x216762);}[_0x5f41c4(0x2c6)](_0x329b7f,_0x330f6d,_0x7d6993,_0x48f58d){const _0x3f0273=_0x5f41c4,_0x1ffdc1=this[_0x3f0273(0x219)]['getCurrentRevOfUnit'](_0x329b7f);this[_0x3f0273(0x137)][_0x3f0273(0x28c)](_0x329b7f,{'unitID':_0x329b7f,'type':_0x330f6d,'awaitingChangeset':_0x7d6993,'mutations':_0x48f58d,'rev':_0x1ffdc1}),this[_0x3f0273(0x24e)][_0x3f0273(0x287)](_0x329b7f)||this[_0x3f0273(0x2ba)](_0x329b7f);}[_0x5f41c4(0x2ba)](_0x2f0e4c){const _0x2a9d8f=_0x5f41c4,_0x26e3a0=this['_getSaveTimeout']();_0x26e3a0===0x0?this[_0x2a9d8f(0x1e8)](_0x2f0e4c):this[_0x2a9d8f(0x24e)][_0x2a9d8f(0x28c)](_0x2f0e4c,setTimeout(()=>this[_0x2a9d8f(0x1e8)](_0x2f0e4c),_0x26e3a0));}['_getSaveTimeout'](){const _0x34cc0c=_0x5f41c4;var _0x3f0878;return(_0x3f0878=this['_configService'][_0x34cc0c(0x13b)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x3f0878:u[_0x34cc0c(0x2ed)];}[_0x5f41c4(0x1e8)](_0x19fd39){const _0x46b069=_0x5f41c4,_0x28f92b=this[_0x46b069(0x24e)][_0x46b069(0x1f5)](_0x19fd39);return _0x28f92b!==void 0x0&&window[_0x46b069(0x2bd)](_0x28f92b),this[_0x46b069(0x103)][_0x46b069(0x10f)](u[_0x46b069(0x32a)](_0x19fd39),this[_0x46b069(0x137)][_0x46b069(0x1f5)](_0x19fd39))[_0x46b069(0x369)](()=>this[_0x46b069(0x24e)][_0x46b069(0x1d1)](_0x19fd39));}async[_0x5f41c4(0x251)](){const _0x3c4458=_0x5f41c4,_0xe72332=[];this['_saveTaskMap'][_0x3c4458(0x334)]((_0x3b828d,_0x142a76)=>{const _0x1ac6fc=_0x3c4458;window['clearTimeout'](_0x3b828d),_0xe72332[_0x1ac6fc(0x27d)](this[_0x1ac6fc(0x1e8)](_0x142a76)[_0x1ac6fc(0x369)](()=>{const _0x57447b=_0x1ac6fc;this['_saveTaskMap'][_0x57447b(0x1d1)](_0x142a76);}));}),await Promise[_0x3c4458(0x374)](_0xe72332);}};me=es([he(0x0,a[_0x5f41c4(0x337)]),he(0x1,a[_0x5f41c4(0x1ca)]),he(0x2,a['Inject'](m[_0x5f41c4(0x23e)]))],me);class Be extends a['RxDisposable']{constructor(){const _0x3149d1=_0x5f41c4;super(),_(this,'urlChange$'),this['urlChange$']=d[_0x3149d1(0x1e0)](window,_0x3149d1(0x15f))[_0x3149d1(0x1ce)](d[_0x3149d1(0x172)](this[_0x3149d1(0x18a)]),d['shareReplay'](0x1),d[_0x3149d1(0x149)](void 0x0));}[_0x5f41c4(0x35f)](_0x39625b,_0xb27449,_0x1248b1=!0x1){const _0x5a1089=_0x5f41c4,_0x4072b2=new URL(window[_0x5a1089(0x29a)][_0x5a1089(0x271)]);_0x4072b2[_0x5a1089(0x25e)][_0x5a1089(0x28c)](_0x39625b,_0xb27449),_0x1248b1?window[_0x5a1089(0x280)]['replaceState']('','',_0x4072b2['toString']()):window[_0x5a1089(0x280)][_0x5a1089(0x291)]('','',_0x4072b2[_0x5a1089(0x2cf)]());}['removeParam'](_0x1e151b,_0x19ee76=!0x1){const _0x102ec=_0x5f41c4,_0x196fa0=new URL(window[_0x102ec(0x29a)][_0x102ec(0x271)]);_0x196fa0[_0x102ec(0x25e)][_0x102ec(0x1d1)](_0x1e151b),_0x19ee76?window['history'][_0x102ec(0x1c1)]('','',_0x196fa0[_0x102ec(0x2cf)]()):window[_0x102ec(0x280)]['pushState']('','',_0x196fa0[_0x102ec(0x2cf)]());}[_0x5f41c4(0x1ae)](_0x5af689){const _0x1eac4b=_0x5f41c4;var _0x3cb27d;return(_0x3cb27d=new URL(window[_0x1eac4b(0x29a)][_0x1eac4b(0x271)])[_0x1eac4b(0x25e)][_0x1eac4b(0x1f5)](_0x5af689))!=null?_0x3cb27d:void 0x0;}}var ts=Object[_0x5f41c4(0x310)],ss=Object[_0x5f41c4(0x16f)],ns=(_0x49423e,_0xfa7ca4,_0x2626f1)=>_0xfa7ca4 in _0x49423e?ts(_0x49423e,_0xfa7ca4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2626f1}):_0x49423e[_0xfa7ca4]=_0x2626f1,is=(_0x2f970c,_0x5f23a9,_0x159e5d,_0x4ff32f)=>{const _0xfd2648=_0x5f41c4;for(var _0x31d59e=_0x4ff32f>0x1?void 0x0:_0x4ff32f?ss(_0x5f23a9,_0x159e5d):_0x5f23a9,_0xebda66=_0x2f970c[_0xfd2648(0x1c8)]-0x1,_0x58a2a6;_0xebda66>=0x0;_0xebda66--)(_0x58a2a6=_0x2f970c[_0xebda66])&&(_0x31d59e=_0x58a2a6(_0x31d59e)||_0x31d59e);return _0x31d59e;},ue=(_0xe26a22,_0xdf1347)=>(_0x34d659,_0x32d2eb)=>_0xdf1347(_0x34d659,_0x32d2eb,_0xe26a22),rs=(_0x3c95be,_0x110f01,_0x24a0ec)=>ns(_0x3c95be,_0x110f01+'',_0x24a0ec);const os=_0x5f41c4(0x2a9);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5f41c4(0x170)]{constructor(_0x4c7c00=Ne,_0x5a7196,_0x39885f,_0x4a4dfd){const _0x40de25=_0x5f41c4;super(),this[_0x40de25(0x1ff)]=_0x4c7c00,this[_0x40de25(0x168)]=_0x5a7196,this[_0x40de25(0x2b3)]=_0x39885f,this['_configService']=_0x4a4dfd;const {..._0x1fafd9}=a[_0x40de25(0x128)]({},Ne,this[_0x40de25(0x1ff)]);this[_0x40de25(0x1de)][_0x40de25(0x2b7)](Ft,_0x1fafd9);}[_0x5f41c4(0x1e5)](){const _0x13a0e3=_0x5f41c4;this[_0x13a0e3(0x2a6)](),this[_0x13a0e3(0x17d)]();}[_0x5f41c4(0x1b8)](){const _0x1d312f=_0x5f41c4;this[_0x1d312f(0x17b)]();}[_0x5f41c4(0x2a6)](){const _0x5e8afa=_0x5f41c4;var _0x5e62b6;const _0x16c38c=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x5e8afa(0x204)],{'useClass':q[_0x5e8afa(0x12c)]}],[u[_0x5e8afa(0x2f3)],{'useClass':me}],[exports[_0x5e8afa(0x22c)]],[ee],[z],[x],[fe],[exports[_0x5e8afa(0x106)]]];a[_0x5e8afa(0x1fa)](this[_0x5e8afa(0x2b3)],a[_0x5e8afa(0x20d)](_0x16c38c,(_0x5e62b6=this['_config'])==null?void 0x0:_0x5e62b6[_0x5e8afa(0x18e)]));}[_0x5f41c4(0x17b)](){const _0x18cd1e=_0x5f41c4;this['disposeWithMe'](this[_0x18cd1e(0x168)][_0x18cd1e(0x288)](a[_0x18cd1e(0x372)][_0x18cd1e(0x257)],[ve])),this[_0x18cd1e(0x30b)](this[_0x18cd1e(0x168)][_0x18cd1e(0x288)](a[_0x18cd1e(0x372)]['UNIVER_SHEET'],[ge]));}[_0x5f41c4(0x17d)](){const _0x258348=_0x5f41c4;a[_0x258348(0x18b)](this['_injector'],[[x],[exports[_0x258348(0x22c)]],[ee],[z],[exports[_0x258348(0x106)]]]);}},rs(exports[_0x5f41c4(0x19e)],_0x5f41c4(0x2e7),os),exports[_0x5f41c4(0x19e)]=is([a[_0x5f41c4(0x138)](u[_0x5f41c4(0x15c)]),ue(0x1,p['IRenderManagerService']),ue(0x2,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),ue(0x3,a[_0x5f41c4(0x337)])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x5f41c4(0x16f)],cs=(_0x4e8617,_0xf3978d,_0x15ba22,_0x17764d)=>{const _0x433b30=_0x5f41c4;for(var _0x493eb2=_0x17764d>0x1?void 0x0:_0x17764d?as(_0xf3978d,_0x15ba22):_0xf3978d,_0xba6cba=_0x4e8617[_0x433b30(0x1c8)]-0x1,_0x4f2217;_0xba6cba>=0x0;_0xba6cba--)(_0x4f2217=_0x4e8617[_0xba6cba])&&(_0x493eb2=_0x4f2217(_0x493eb2)||_0x493eb2);return _0x493eb2;},W=(_0x1ad679,_0x2094db)=>(_0x461ecb,_0x524411)=>_0x2094db(_0x461ecb,_0x524411,_0x1ad679);exports[_0x5f41c4(0x1df)]=class extends u[_0x5f41c4(0x1b1)]{constructor(_0x594273,_0x5fc698,_0x557105,_0x565d52,_0x2b406b){super(_0x594273,_0x5fc698,_0x557105,_0x565d52,_0x2b406b);}async['createSocket'](_0x4e3eb7){const _0x561565=_0x5f41c4,_0x27aaa4=await this[_0x561565(0x11a)](),_0x24ad13=this[_0x561565(0x34f)](_0x4e3eb7,_0x27aaa4);return this[_0x561565(0x1ab)](_0x24ad13);}[_0x5f41c4(0x34f)](_0x1c7fa3,_0x549ded){const _0x970c3c=_0x5f41c4,_0x1fa587=typeof window>'u'?new URL(_0x1c7fa3):new URL(_0x1c7fa3,window['location'][_0x970c3c(0xf9)]);_0x1fa587[_0x970c3c(0x25e)][_0x970c3c(0x28c)]('sessionTicket',_0x549ded);const _0x196dc6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x970c3c(0x29a)]['search']);return _0x196dc6['get'](_0x970c3c(0x232))&&_0x1fa587[_0x970c3c(0x25e)][_0x970c3c(0x28c)](_0x970c3c(0x232),_0x196dc6[_0x970c3c(0x1f5)](_0x970c3c(0x232))),_0x1fa587[_0x970c3c(0x2cf)]();}async[_0x5f41c4(0x11a)](){const _0x41f31c=_0x5f41c4;var _0x28982c,_0x1749f2,_0x1e8030;const _0x34e927=this[_0x41f31c(0x1de)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x49bf90=(_0x28982c=_0x34e927==null?void 0x0:_0x34e927[_0x41f31c(0x1be)])!=null?_0x28982c:u[_0x41f31c(0x229)];return(_0x1e8030=(_0x1749f2=(await this[_0x41f31c(0x21c)]['get'](_0x49bf90,{'headers':{'Content-Type':_0x41f31c(0x14c)}}))[_0x41f31c(0x370)])==null?void 0x0:_0x1749f2[_0x41f31c(0x22b)])!=null?_0x1e8030:'';}},exports['BrowserCollaborationSocketService']=cs([W(0x0,a['Inject'](a[_0x5f41c4(0x188)])),W(0x1,a[_0x5f41c4(0x180)](q[_0x5f41c4(0x1e4)])),W(0x2,a[_0x5f41c4(0x337)]),W(0x3,a['ILogService']),W(0x4,m[_0x5f41c4(0x21b)])],exports[_0x5f41c4(0x1df)]);const Le=0x7530,Pe=_0x5f41c4(0x115);class ls extends a['Disposable']{constructor(){const _0x1f2902=_0x5f41c4;super(),_(this,_0x1f2902(0x306),a[_0x1f2902(0x322)]()),_(this,_0x1f2902(0x333),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x1f2902(0x21a),null),_(this,_0x1f2902(0x33e),new Map()),_(this,_0x1f2902(0x217),new Map()),this['_init']();}[_0x5f41c4(0x2c9)](){const _0xd9845=_0x5f41c4;super['dispose'](),this[_0xd9845(0x33e)][_0xd9845(0x334)]((_0x12929b,_0x336351)=>this['_removeClearOtherTimer'](_0x336351)),this[_0xd9845(0x21a)]&&window[_0xd9845(0x2a3)](this[_0xd9845(0x21a)]);}[_0x5f41c4(0x348)](_0xd62688){const _0x572d17=_0x5f41c4;return this[_0x572d17(0x210)](_0xd62688)[_0x572d17(0x1ce)](d[_0x572d17(0x365)]());}[_0x5f41c4(0x157)](_0x3a3404){const _0x1ac256=_0x5f41c4;this[_0x1ac256(0x333)][_0x1ac256(0x2e1)]===0x0&&this[_0x1ac256(0x34e)](),this[_0x1ac256(0x333)][_0x1ac256(0x20b)](_0x3a3404),this['_send']({'type':0x0,'memberID':this[_0x1ac256(0x306)],'unitIDs':[_0x3a3404],'isForwarded':!0x1});}[_0x5f41c4(0x313)](_0x9d39da){const _0xa71668=_0x5f41c4;this[_0xa71668(0x333)][_0xa71668(0x1d1)](_0x9d39da),this[_0xa71668(0x333)][_0xa71668(0x2e1)]===0x0&&this[_0xa71668(0x21a)]&&window[_0xa71668(0x2a3)](this['_heartbeatTimer']);}['_init'](){const _0x219902=_0x5f41c4;this[_0x219902(0x30b)](a[_0x219902(0x289)](d[_0x219902(0x1e0)](window,'storage')['subscribe'](_0x3586d5=>{const _0x16dfa2=_0x219902;if(_0x3586d5['key']!==Pe||!_0x3586d5[_0x16dfa2(0x2ee)])return;const _0x29df7c=JSON[_0x16dfa2(0x12e)](_0x3586d5[_0x16dfa2(0x2ee)]);this[_0x16dfa2(0x332)](_0x29df7c);}))),window[_0x219902(0x104)]('unload',()=>this[_0x219902(0x2bb)]({'type':0x1,'memberID':this[_0x219902(0x306)],'unitIDs':Array[_0x219902(0x239)](this[_0x219902(0x333)])}));}['_handleEvent'](_0x396a72){const _0x5bd3d4=_0x5f41c4;switch(_0x396a72[_0x5bd3d4(0x183)]){case 0x0:this[_0x5bd3d4(0x122)](_0x396a72);break;case 0x1:this['_handleLeaveEvent'](_0x396a72);break;case 0x2:this[_0x5bd3d4(0x1d6)](_0x396a72);break;}}['_handleJoinEvent'](_0x2b83b9){const _0x19887d=_0x5f41c4,{unitIDs:_0x462e41,memberID:_0x598101,isForwarded:_0x5c5c38}=_0x2b83b9;_0x462e41['forEach'](_0x5350b4=>{const _0x4b9e5e=_0x5234;if(!_0x5c5c38&&this[_0x4b9e5e(0x25b)]['has'](_0x5350b4)&&this['_ensureSubject'](_0x5350b4)['next'](u[_0x4b9e5e(0x178)][_0x4b9e5e(0x317)]),!this['_unitOnClients']['has'](_0x5350b4)||!this[_0x4b9e5e(0x25b)][_0x4b9e5e(0x1f5)](_0x5350b4)[_0x4b9e5e(0x287)](_0x598101)){const _0x370221=this[_0x4b9e5e(0x25b)][_0x4b9e5e(0x1f5)](_0x5350b4)||new Set();_0x370221[_0x4b9e5e(0x20b)](_0x598101),this[_0x4b9e5e(0x25b)][_0x4b9e5e(0x28c)](_0x5350b4,_0x370221),this[_0x4b9e5e(0x1fc)](_0x598101);}}),_0x5c5c38||this[_0x19887d(0x2bb)]({'type':0x0,'memberID':this[_0x19887d(0x306)],'unitIDs':[...this[_0x19887d(0x333)]],'isForwarded':!0x0});}[_0x5f41c4(0x1fc)](_0x3b02df){const _0xef4c67=_0x5f41c4;this[_0xef4c67(0x222)](_0x3b02df);const _0x418eef=window[_0xef4c67(0x1c4)](()=>{const _0x59778d=_0xef4c67;this[_0x59778d(0x25b)]['forEach'](_0x1f19f4=>{const _0x409263=_0x59778d;_0x1f19f4[_0x409263(0x1d1)](_0x3b02df);});},Le*0x2);this[_0xef4c67(0x33e)][_0xef4c67(0x28c)](_0x3b02df,_0x418eef);}[_0x5f41c4(0x222)](_0x1471f0){const _0x1f1423=_0x5f41c4;if(this[_0x1f1423(0x33e)][_0x1f1423(0x287)](_0x1471f0)){const _0x5538c2=this[_0x1f1423(0x33e)][_0x1f1423(0x1f5)](_0x1471f0);_0x5538c2&&window[_0x1f1423(0x2bd)](_0x5538c2),this['_clearOtherTimers']['set'](_0x1471f0,null);}}[_0x5f41c4(0x36c)](_0x4aa0f5){const _0x514e44=_0x5f41c4,{memberID:_0x2d0acd,unitIDs:_0x21491e}=_0x4aa0f5;_0x21491e[_0x514e44(0x334)](_0x1d71e4=>{const _0x27a909=_0x514e44;var _0x1a3bf1;const _0x147022=this[_0x27a909(0x25b)]['get'](_0x1d71e4);_0x147022&&(_0x147022[_0x27a909(0x1d1)](_0x2d0acd),(_0x1a3bf1=this[_0x27a909(0x210)](_0x1d71e4))==null||_0x1a3bf1['next'](_0x147022[_0x27a909(0x2e1)]===0x0?u['UnitStatus'][_0x27a909(0x214)]:u[_0x27a909(0x178)][_0x27a909(0x317)]));}),this['_removeClearOtherTimer'](_0x2d0acd);}[_0x5f41c4(0x1d6)](_0x1a11a9){const _0x2d345f=_0x5f41c4;this['_scheduleClearOtherTimer'](_0x1a11a9[_0x2d345f(0x304)]);}[_0x5f41c4(0x2bb)](_0x5582eb){const _0x52882b=_0x5f41c4;localStorage[_0x52882b(0x10f)](Pe,JSON[_0x52882b(0x330)](_0x5582eb));}['_scheduleHeartbeat'](){const _0x44c9b5=_0x5f41c4;this[_0x44c9b5(0x21a)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Le);}[_0x5f41c4(0x210)](_0xd14042){const _0x5dd7bc=_0x5f41c4;return this[_0x5dd7bc(0x217)][_0x5dd7bc(0x287)](_0xd14042)||this[_0x5dd7bc(0x217)][_0x5dd7bc(0x28c)](_0xd14042,new d[(_0x5dd7bc(0x359))](u[_0x5dd7bc(0x178)][_0x5dd7bc(0x214)])),this[_0x5dd7bc(0x217)][_0x5dd7bc(0x1f5)](_0xd14042);}}var ke=(_0x2e0fd9=>(_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x2dc)]=0x0]='UNDEFINED',_0x2e0fd9[_0x2e0fd9['OK']=0x1]='OK',_0x2e0fd9[_0x2e0fd9['INTERNAL_ERROR']=0x2]=_0x5f41c4(0x110),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x2ad)]=0x3]=_0x5f41c4(0x2ad),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x367)]=0x4]=_0x5f41c4(0x367),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x31b)]=0x5]=_0x5f41c4(0x31b),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x14e)]=0x6]=_0x5f41c4(0x14e),_0x2e0fd9[_0x2e0fd9['INVALID_ARGUMENT']=0x7]=_0x5f41c4(0x14d),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x199)]=0x8]='TOO_MANY_REQUESTS',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x1a2)]=0x9]=_0x5f41c4(0x1a2),_0x2e0fd9[_0x2e0fd9['LOGIN_FAILED']=0xa]=_0x5f41c4(0x159),_0x2e0fd9[_0x2e0fd9['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5f41c4(0x1f1),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x19b)]=0x1771]=_0x5f41c4(0x19b),_0x2e0fd9[_0x2e0fd9['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x5f41c4(0x119),_0x2e0fd9[_0x2e0fd9['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x23f)]=0x1b59]=_0x5f41c4(0x23f),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x358)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x15d)]=0x1b5b]=_0x5f41c4(0x15d),_0x2e0fd9[_0x2e0fd9['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5f41c4(0x1d3),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x18f)]=0x1b5d]=_0x5f41c4(0x18f),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x213)]=0x1f41]=_0x5f41c4(0x213),_0x2e0fd9[_0x2e0fd9['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2e0fd9[_0x2e0fd9['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5f41c4(0x1cb),_0x2e0fd9[_0x2e0fd9['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5f41c4(0x17f),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x243)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2e0fd9[_0x2e0fd9['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5f41c4(0x2ce),_0x2e0fd9[_0x2e0fd9['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5f41c4(0x364),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x14a)]=0x2712]=_0x5f41c4(0x14a),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x276)]=0x2713]=_0x5f41c4(0x276),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x320)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x1bf)]=0x271a]=_0x5f41c4(0x1bf),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x200)]=0x271b]=_0x5f41c4(0x200),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x120)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x29c)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2e0fd9[_0x2e0fd9['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x1d7)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2e0fd9[_0x2e0fd9['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5f41c4(0x12f),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x25d)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x182)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x278)]=0x32ca]=_0x5f41c4(0x278),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x343)]=0x32cb]=_0x5f41c4(0x343),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x192)]=-0x1]='UNRECOGNIZED',_0x2e0fd9))(ke||{}),_s=Object[_0x5f41c4(0x16f)],hs=(_0x4365b5,_0x10e7d4,_0x3e83e7,_0x4e4bbd)=>{for(var _0x2f3fec=_0x4e4bbd>0x1?void 0x0:_0x4e4bbd?_s(_0x10e7d4,_0x3e83e7):_0x10e7d4,_0x4c6b6f=_0x4365b5['length']-0x1,_0xf13b76;_0x4c6b6f>=0x0;_0x4c6b6f--)(_0xf13b76=_0x4365b5[_0x4c6b6f])&&(_0x2f3fec=_0xf13b76(_0x2f3fec)||_0x2f3fec);return _0x2f3fec;},de=(_0x455557,_0x27fa0b)=>(_0x2c0e0f,_0x5155ac)=>_0x27fa0b(_0x2c0e0f,_0x5155ac,_0x455557);exports[_0x5f41c4(0x10a)]=class extends a[_0x5f41c4(0x153)]{constructor(_0x4cef37,_0x243b6c,_0x5b1c71){const _0x4ecd74=_0x5f41c4;super(),this[_0x4ecd74(0x349)]=_0x4cef37,this['_httpService']=_0x243b6c,this[_0x4ecd74(0x1de)]=_0x5b1c71;}async['runOnServer'](_0x580e1e,_0x1583f3,_0x5ebf25,..._0x2cf8d4){const _0x325599=_0x5f41c4;var _0x2a79c2,_0xc7212e,_0x341795,_0x41cf7e;const _0x363875=this[_0x325599(0x349)][_0x325599(0x2d5)]();if(!_0x363875)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5e4a55=((_0x2a79c2=this['_configService']['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x2a79c2:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x580e1e+_0x325599(0x2d4)+_0x1583f3,_0x27fff1=new URL(window[_0x325599(0x29a)][_0x325599(0x271)]),_0x35d5d9={'scriptId':_0x580e1e,'runId':(_0xc7212e=_0x27fff1[_0x325599(0x25e)][_0x325599(0x1f5)](_0x325599(0x232)))!=null?_0xc7212e:'','function':_0x1583f3,'unitId':_0x363875[_0x325599(0x2da)](),'argsOfFunction':JSON[_0x325599(0x330)](_0x2cf8d4),'invokeId':(_0x341795=_0x5ebf25[_0x325599(0x355)])!=null?_0x341795:'','executionId':(_0x41cf7e=_0x5ebf25['executionId'])!=null?_0x41cf7e:''};try{const _0x5168e7=await this[_0x325599(0x21c)][_0x325599(0x212)](_0x5e4a55,{'body':_0x35d5d9});return _0x5168e7[_0x325599(0x370)][_0x325599(0x189)]&&_0x5168e7[_0x325599(0x370)][_0x325599(0x189)][_0x325599(0x109)]!==ke['OK']?'Failed':_0x5168e7[_0x325599(0x370)][_0x325599(0x296)];}catch{return _0x325599(0x1c3);}}},exports[_0x5f41c4(0x10a)]=hs([de(0x0,a[_0x5f41c4(0x164)]),de(0x1,a[_0x5f41c4(0x180)](q[_0x5f41c4(0x1e4)])),de(0x2,a[_0x5f41c4(0x337)])],exports['RemoteUniscriptService']),exports[_0x5f41c4(0x1e3)]=je,exports[_0x5f41c4(0x2af)]=Ee,exports[_0x5f41c4(0x136)]=Ae,exports[_0x5f41c4(0x150)]=ls,exports[_0x5f41c4(0x236)]=Be;
@@ -1 +1 @@
1
- 'use strict';const _0x156e02=_0x28d4;function _0x152e(){const _0x2e31fa=['5155115XSlEip','Collaboration\x20Conflict','601995otPdMQ','1002793IvSeve','56IsTweF','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.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','10931412BydJJl','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1789792iwYLaB','446943vETLKw','Click\x20to\x20Reconnect','Synced','Local\x20file','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.','457324EnBXdw','Authentication\x20Error','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Edit\x20conflicts'];_0x152e=function(){return _0x2e31fa;};return _0x152e();}function _0x28d4(_0x2ce6e7,_0x1bd3f4){const _0x152e1f=_0x152e();return _0x28d4=function(_0x28d448,_0x426ea4){_0x28d448=_0x28d448-0x190;let _0x4a9bc4=_0x152e1f[_0x28d448];return _0x4a9bc4;},_0x28d4(_0x2ce6e7,_0x1bd3f4);}(function(_0x45d20d,_0x5c8987){const _0x375570=_0x28d4,_0xbd495=_0x45d20d();while(!![]){try{const _0xd86c66=-parseInt(_0x375570(0x19e))/0x1+-parseInt(_0x375570(0x197))/0x2+parseInt(_0x375570(0x19d))/0x3+-parseInt(_0x375570(0x190))/0x4+parseInt(_0x375570(0x19b))/0x5+parseInt(_0x375570(0x1a3))/0x6+-parseInt(_0x375570(0x191))/0x7*(parseInt(_0x375570(0x19f))/0x8);if(_0xd86c66===_0x5c8987)break;else _0xbd495['push'](_0xbd495['shift']());}catch(_0x385927){_0xbd495['push'](_0xbd495['shift']());}}}(_0x152e,0xe2800));const e={'collab-client':{'tooltip':{'reconnect':_0x156e02(0x192)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x156e02(0x19a),'notCollab':_0x156e02(0x194),'synced':_0x156e02(0x193),'syncing':_0x156e02(0x1a4),'offline':_0x156e02(0x1a1)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x156e02(0x1a2),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x156e02(0x196)},'conflict':{'title':_0x156e02(0x19c),'content':_0x156e02(0x1a0)},'permission':{'title':_0x156e02(0x198),'content':_0x156e02(0x195)},'collaboration':{'single-unit':{'warning':_0x156e02(0x199)},'closeRoom':_0x156e02(0x1a5)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module['exports']=e;
1
+ 'use strict';const _0x454c0e=_0x2d2c;function _0xf1aa(){const _0x4a587b=['The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1146000tfhbAa','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.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2837520QDpamy','Collaboration\x20Conflict','Syncing\x20server\x20data...','Authentication\x20Error','1945430cXyCLh','6670449HIAFCy','Edit\x20conflicts','1078707cIVdSq','Connection\x20failed,\x20please\x20check\x20your\x20network.','954570YFEQbS','1wHxIuy','Click\x20to\x20Reconnect','2872000SWANjG','exports','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','6BVVtor','10BkmGBy','Local\x20file'];_0xf1aa=function(){return _0x4a587b;};return _0xf1aa();}function _0x2d2c(_0x40fa8f,_0x53302f){const _0xf1aac0=_0xf1aa();return _0x2d2c=function(_0x2d2c3d,_0x2c529b){_0x2d2c3d=_0x2d2c3d-0x18e;let _0x6f76da=_0xf1aac0[_0x2d2c3d];return _0x6f76da;},_0x2d2c(_0x40fa8f,_0x53302f);}(function(_0x1f9884,_0x79de7f){const _0x5190fe=_0x2d2c,_0x22d810=_0x1f9884();while(!![]){try{const _0x14bab3=parseInt(_0x5190fe(0x191))/0x1*(parseInt(_0x5190fe(0x1a2))/0x2)+-parseInt(_0x5190fe(0x19e))/0x3+-parseInt(_0x5190fe(0x193))/0x4+parseInt(_0x5190fe(0x190))/0x5*(parseInt(_0x5190fe(0x196))/0x6)+parseInt(_0x5190fe(0x18e))/0x7+parseInt(_0x5190fe(0x19b))/0x8+-parseInt(_0x5190fe(0x1a3))/0x9*(-parseInt(_0x5190fe(0x197))/0xa);if(_0x14bab3===_0x79de7f)break;else _0x22d810['push'](_0x22d810['shift']());}catch(_0x2cc986){_0x22d810['push'](_0x22d810['shift']());}}}(_0xf1aa,0x836bd));const e={'collab-client':{'tooltip':{'reconnect':_0x454c0e(0x192)}},'collabStatus':{'fetchMiss':_0x454c0e(0x1a0),'conflict':_0x454c0e(0x1a4),'notCollab':_0x454c0e(0x198),'synced':'Synced','syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x454c0e(0x18f),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x454c0e(0x195),'collaboration-timeout':_0x454c0e(0x199)},'conflict':{'title':_0x454c0e(0x19f),'content':_0x454c0e(0x19c)},'permission':{'title':_0x454c0e(0x1a1),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x454c0e(0x19d)},'closeRoom':_0x454c0e(0x19a)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module[_0x454c0e(0x194)]=e;