@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506081606 → 0.8.0-nightly.202506091607

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 _0x4d72bd=_0x47d4;function _0x47d4(_0x1f4668,_0x3c69f1){const _0x1c2399=_0x1c23();return _0x47d4=function(_0x47d409,_0x11ea45){_0x47d409=_0x47d409-0x16b;let _0x269a95=_0x1c2399[_0x47d409];return _0x269a95;},_0x47d4(_0x1f4668,_0x3c69f1);}(function(_0x19dc2b,_0x11b3e9){const _0x1a25d6=_0x47d4,_0x5e71c6=_0x19dc2b();while(!![]){try{const _0x27da2f=parseInt(_0x1a25d6(0x179))/0x1*(-parseInt(_0x1a25d6(0x176))/0x2)+parseInt(_0x1a25d6(0x16c))/0x3+parseInt(_0x1a25d6(0x16b))/0x4+-parseInt(_0x1a25d6(0x16e))/0x5*(parseInt(_0x1a25d6(0x16d))/0x6)+parseInt(_0x1a25d6(0x177))/0x7*(-parseInt(_0x1a25d6(0x171))/0x8)+parseInt(_0x1a25d6(0x170))/0x9*(parseInt(_0x1a25d6(0x174))/0xa)+-parseInt(_0x1a25d6(0x178))/0xb;if(_0x27da2f===_0x11b3e9)break;else _0x5e71c6['push'](_0x5e71c6['shift']());}catch(_0x2b4b20){_0x5e71c6['push'](_0x5e71c6['shift']());}}}(_0x1c23,0xb6421));const t=require(_0x4d72bd(0x175)),e=require('@univerjs/core/facade');class c extends e[_0x4d72bd(0x17a)]{[_0x4d72bd(0x16f)](_0x467af7,_0x177678,..._0x1d3aa2){const _0x29035e=_0x4d72bd;return this[_0x29035e(0x172)][_0x29035e(0x17b)](t[_0x29035e(0x17c)])[_0x29035e(0x16f)](_0x467af7,_0x177678,{},..._0x1d3aa2);}}function _0x1c23(){const _0x28a6c3=['2774590dENPGd','14956799enmUqd','1fvYdmr','FUniver','get','RemoteUniscriptService','3648652nWPyEB','1635834kglkit','6QznuHR','1553310LCzxhF','runOnServer','3303081LHXweZ','8UhTRLs','_injector','extend','40wYYFgp','@univerjs-pro/collaboration-client-ui','224414dPYPoo'];_0x1c23=function(){return _0x28a6c3;};return _0x1c23();}e[_0x4d72bd(0x17a)][_0x4d72bd(0x173)](c);
1
+ 'use strict';const _0x408584=_0x26c7;(function(_0x12d882,_0x2c9f7d){const _0x1da4f6=_0x26c7,_0x3a7067=_0x12d882();while(!![]){try{const _0x19582b=parseInt(_0x1da4f6(0xaf))/0x1*(-parseInt(_0x1da4f6(0xb3))/0x2)+-parseInt(_0x1da4f6(0xad))/0x3*(parseInt(_0x1da4f6(0xa7))/0x4)+-parseInt(_0x1da4f6(0xa9))/0x5*(parseInt(_0x1da4f6(0xaa))/0x6)+-parseInt(_0x1da4f6(0xab))/0x7*(-parseInt(_0x1da4f6(0xb1))/0x8)+parseInt(_0x1da4f6(0xb5))/0x9*(parseInt(_0x1da4f6(0xb6))/0xa)+parseInt(_0x1da4f6(0xae))/0xb*(-parseInt(_0x1da4f6(0xa5))/0xc)+parseInt(_0x1da4f6(0xac))/0xd*(parseInt(_0x1da4f6(0xa8))/0xe);if(_0x19582b===_0x2c9f7d)break;else _0x3a7067['push'](_0x3a7067['shift']());}catch(_0x3778ca){_0x3a7067['push'](_0x3a7067['shift']());}}}(_0x31f7,0x33c79));function _0x26c7(_0x4110e9,_0x46aa43){const _0x31f707=_0x31f7();return _0x26c7=function(_0x26c72f,_0x7c2fc9){_0x26c72f=_0x26c72f-0xa5;let _0x252f59=_0x31f707[_0x26c72f];return _0x252f59;},_0x26c7(_0x4110e9,_0x46aa43);}const t=require(_0x408584(0xb0)),e=require(_0x408584(0xa6));class c extends e[_0x408584(0xb2)]{[_0x408584(0xb7)](_0x3d7b66,_0x5a4b21,..._0x3ff479){const _0x210ea9=_0x408584;return this['_injector']['get'](t[_0x210ea9(0xb4)])[_0x210ea9(0xb7)](_0x3d7b66,_0x5a4b21,{},..._0x3ff479);}}e[_0x408584(0xb2)]['extend'](c);function _0x31f7(){const _0x4a016e=['4668tYOudx','@univerjs/core/facade','16RlODeR','658UwGRiD','55FNlwUh','60366XkwUKP','91rrfxPb','252733xsqXtm','175749MahtUs','8371aSIKHP','16644AaTDwW','@univerjs-pro/collaboration-client-ui','70728TUQAkk','FUniver','34LAjKng','RemoteUniscriptService','9FULibA','1074090GctAOx','runOnServer'];_0x31f7=function(){return _0x4a016e;};return _0x31f7();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x31be5e=_0x43d8;(function(_0x4f4371,_0x7b4425){const _0x1554b6=_0x43d8,_0x425ace=_0x4f4371();while(!![]){try{const _0x12cf4d=parseInt(_0x1554b6(0x246))/0x1+parseInt(_0x1554b6(0x18e))/0x2*(parseInt(_0x1554b6(0x2ac))/0x3)+parseInt(_0x1554b6(0x297))/0x4+parseInt(_0x1554b6(0x192))/0x5+parseInt(_0x1554b6(0x275))/0x6+-parseInt(_0x1554b6(0x1d5))/0x7+-parseInt(_0x1554b6(0x209))/0x8;if(_0x12cf4d===_0x7b4425)break;else _0x425ace['push'](_0x425ace['shift']());}catch(_0x57c1e3){_0x425ace['push'](_0x425ace['shift']());}}}(_0x4532,0x2de2a));var Ve=Object['defineProperty'],Xe=(_0x1f4836,_0x1dea16,_0x55f362)=>_0x1dea16 in _0x1f4836?Ve(_0x1f4836,_0x1dea16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55f362}):_0x1f4836[_0x1dea16]=_0x55f362,h=(_0xec1cf6,_0x136166,_0x24573d)=>Xe(_0xec1cf6,typeof _0x136166!=_0x31be5e(0x1c9)?_0x136166+'':_0x136166,_0x24573d);Object[_0x31be5e(0x2ce)](exports,Symbol[_0x31be5e(0x18a)],{'value':_0x31be5e(0x274)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x31be5e(0x1aa)),p=require(_0x31be5e(0x280)),G=require(_0x31be5e(0x264)),b=require(_0x31be5e(0xfc)),Ge=require('@univerjs/drawing'),d=require(_0x31be5e(0x276)),Y=require(_0x31be5e(0x23b)),m=require('@univerjs-pro/collaboration'),Ee=require('@univerjs/engine-formula'),g=require(_0x31be5e(0x1ba)),$=require(_0x31be5e(0x2db)),X=require(_0x31be5e(0x2dc)),w=require(_0x31be5e(0x303)),T=require(_0x31be5e(0x28d)),D=require(_0x31be5e(0x2ae)),M=require(_0x31be5e(0x126)),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x240089,_0x102abc,_0x1dc517,_0x474746)=>{const _0x18b107=_0x31be5e;for(var _0x45247d=_0x474746>0x1?void 0x0:_0x474746?qe(_0x102abc,_0x1dc517):_0x102abc,_0x11dce4=_0x240089[_0x18b107(0x247)]-0x1,_0x172522;_0x11dce4>=0x0;_0x11dce4--)(_0x172522=_0x240089[_0x11dce4])&&(_0x45247d=_0x172522(_0x45247d)||_0x45247d);return _0x45247d;},Te=(_0x1b186f,_0x54b28b)=>(_0x22fdb4,_0x182eed)=>_0x54b28b(_0x22fdb4,_0x182eed,_0x1b186f);let de=class extends a[_0x31be5e(0x262)]{constructor(_0x6cab16,_0x3cb358){const _0x35b785=_0x31be5e;super(),this[_0x35b785(0x14d)]=_0x6cab16,this['_imageIoService']=_0x3cb358,this['_init']();}[_0x31be5e(0x100)](){const _0x3f0eae=_0x31be5e,_0x535b6a=this;this[_0x3f0eae(0x2bc)](this[_0x3f0eae(0x14d)][_0x3f0eae(0x181)]({'onBeforePasteImage':async _0x48656a=>{const _0x9c9ed5=_0x3f0eae,_0x31256d=await _0x535b6a[_0x9c9ed5(0x1eb)][_0x9c9ed5(0x22c)](_0x48656a);return _0x31256d?{'source':_0x31256d[_0x9c9ed5(0x2af)],'imageSourceType':_0x31256d['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x31be5e(0x2b3)]),Te(0x1,Ge[_0x31be5e(0x32f)])],de);const Oe=[_0x31be5e(0x36d),'jiqing.500',_0x31be5e(0x17f),'red.300','blue.400',_0x31be5e(0x312)];class me extends a[_0x31be5e(0x128)]{constructor(){const _0x214bdf=_0x31be5e;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x214bdf(0x361),0x0);}[_0x31be5e(0x1ae)](_0x56a089){const _0x43d1b2=_0x31be5e;if(this[_0x43d1b2(0x265)]['has'](_0x56a089))return this[_0x43d1b2(0x265)][_0x43d1b2(0x16a)](_0x56a089);const _0x4501fb=Oe[this['_colorIndex']];return this[_0x43d1b2(0x361)]=(this[_0x43d1b2(0x361)]+0x1)%Oe[_0x43d1b2(0x247)],this['_assignedColors']['set'](_0x56a089,_0x4501fb),_0x4501fb;}}function we(_0x356dfa){const _0x385cbc=_0x31be5e;let _0x4510b2='';for(const _0x5eea33 of _0x356dfa){const {startOffset:_0x525e64,endOffset:_0x28fa00,isActive:_0x15db9b,rangeType:_0x303392,segmentId:_0x13621b,segmentPage:_0x304c18}=_0x5eea33;_0x4510b2[_0x385cbc(0x247)]&&(_0x4510b2+=','),_0x4510b2+=_0x525e64+':'+_0x28fa00+':'+(_0x15db9b?'1':'0')+':'+_0x303392+':'+_0x13621b+':'+_0x304c18;}return _0x4510b2;}function Je(_0x58e2be){const _0x299c67=_0x31be5e,_0x35e628=_0x58e2be[_0x299c67(0x2cf)](','),_0x7f794b=[];for(const _0x36a347 of _0x35e628){const [_0x4b610f,_0x292cc1,_0x3af213,_0x19b3a7,_0x18b0b7,_0x482508]=_0x36a347[_0x299c67(0x2cf)](':');_0x7f794b['push']({'startOffset':Number(_0x4b610f),'endOffset':Number(_0x292cc1),'collapsed':_0x4b610f===_0x292cc1,'isActive':_0x3af213==='1','rangeType':_0x19b3a7===a[_0x299c67(0x1d8)]['TEXT']?a[_0x299c67(0x1d8)][_0x299c67(0x2ff)]:a[_0x299c67(0x1d8)]['RECT'],'segmentId':typeof _0x18b0b7==_0x299c67(0x1ed)?String(_0x18b0b7):'','segmentPage':Number(_0x482508!=null?_0x482508:-0x1)});}return _0x7f794b['some'](_0x5bdca3=>_0x5bdca3[_0x299c67(0x19b)])||(_0x7f794b[0x0]['isActive']=!0x0),_0x7f794b;}class Ce extends a['RxDisposable']{constructor(){const _0x40a413=_0x31be5e;super(...arguments),h(this,_0x40a413(0x183),new d[(_0x40a413(0x221))](null)),h(this,_0x40a413(0x365),this[_0x40a413(0x183)][_0x40a413(0x2a0)]());}[_0x31be5e(0x125)](_0x19ef13){const _0x546ed6=_0x31be5e,{unitID:_0x9ff9bd,memberID:_0x5346bd,textRanges:_0x21928f}=_0x19ef13,_0x6d507a=we(_0x21928f);if(_0x6d507a==='')return;const _0x52836d={'unitID':_0x9ff9bd,'memberID':_0x5346bd,'selection':_0x6d507a};this[_0x546ed6(0x183)][_0x546ed6(0x145)](_0x52836d);}}var Ze=Object[_0x31be5e(0x241)],Qe=(_0x5d8edf,_0x107e6a,_0x207dec,_0x5493a3)=>{const _0x2963ae=_0x31be5e;for(var _0x5c74d8=_0x5493a3>0x1?void 0x0:_0x5493a3?Ze(_0x107e6a,_0x207dec):_0x107e6a,_0x196d2c=_0x5d8edf[_0x2963ae(0x247)]-0x1,_0x4dfe98;_0x196d2c>=0x0;_0x196d2c--)(_0x4dfe98=_0x5d8edf[_0x196d2c])&&(_0x5c74d8=_0x4dfe98(_0x5c74d8)||_0x5c74d8);return _0x5c74d8;},L=(_0x41fbe4,_0x2d8657)=>(_0x1dc0a0,_0x4a68d0)=>_0x2d8657(_0x1dc0a0,_0x4a68d0,_0x41fbe4);const et=0x12c,tt=0x64;let fe=class extends a[_0x31be5e(0x262)]{constructor(_0x134480,_0x298565,_0x4f1a2d,_0x55c1de,_0x1ae1e9,_0x2f6a86,_0x1f20e2,_0x4ce4d0,_0x34d7cd){const _0xf14425=_0x31be5e;super(),h(this,_0xf14425(0x329),!0x1),h(this,_0xf14425(0x100),!0x1),h(this,_0xf14425(0x16e),new d[(_0xf14425(0x221))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),h(this,_0xf14425(0x26b),new d[(_0xf14425(0x221))]([])),h(this,_0xf14425(0x207),this[_0xf14425(0x26b)][_0xf14425(0x2c2)](d[_0xf14425(0x1de)](et))),h(this,'_updateLocalCursor',a[_0xf14425(0x13c)](_0x383573=>{const _0x15379d=_0xf14425,_0x15dae5={'eventID':m['CollaborationEvent'][_0x15379d(0x2df)],'data':{'unitID':this[_0x15379d(0x23e)],'memberID':this[_0x15379d(0x1e6)]['getMemberID'](),'selection':we(_0x383573)}};this[_0x15379d(0x1e6)]['send'](_0x15dae5,this[_0x15379d(0x23e)]);},tt)),(this[_0xf14425(0x23e)]=_0x134480,this[_0xf14425(0x1e6)]=_0x298565,this[_0xf14425(0x171)]=_0x4f1a2d,this[_0xf14425(0x279)]=_0x55c1de,this[_0xf14425(0x147)]=_0x1ae1e9,this[_0xf14425(0x152)]=_0x2f6a86,this[_0xf14425(0x17c)]=_0x1f20e2,this['_univerInstanceService']=_0x4ce4d0,this[_0xf14425(0x204)]=_0x34d7cd);}get[_0x31be5e(0x159)](){const _0x19c76b=_0x31be5e;return this[_0x19c76b(0x16e)][_0x19c76b(0x11d)]();}get[_0x31be5e(0x373)](){const _0x24f1bc=_0x31be5e;return this[_0x24f1bc(0x26b)][_0x24f1bc(0x11d)]();}[_0x31be5e(0x110)](){const _0x4c6036=_0x31be5e;super[_0x4c6036(0x110)](),this[_0x4c6036(0x16e)][_0x4c6036(0x145)](new Map()),this[_0x4c6036(0x16e)]['complete'](),this[_0x4c6036(0x26b)][_0x4c6036(0x145)]([]),this[_0x4c6036(0x26b)][_0x4c6036(0x34f)]();}[_0x31be5e(0x31f)](){const _0xb89e19=_0x31be5e;this[_0xb89e19(0x100)]||(this[_0xb89e19(0x100)]=!0x0,this[_0xb89e19(0x1e6)]['sessionStatus$'][_0xb89e19(0x2c2)](d[_0xb89e19(0x357)](this[_0xb89e19(0x13f)]))[_0xb89e19(0x347)](_0xb6c3b2=>{const _0x17156e=_0xb89e19;_0xb6c3b2===u[_0x17156e(0x344)][_0x17156e(0x130)]?this[_0x17156e(0x310)]():this[_0x17156e(0x2d0)]();}),this[_0xb89e19(0x1e6)][_0xb89e19(0x11e)][_0xb89e19(0x2c2)](d[_0xb89e19(0x357)](this[_0xb89e19(0x13f)]))[_0xb89e19(0x347)](_0x2e7f27=>{const _0x87482a=_0xb89e19,_0xca3a1a=_0x2e7f27[_0x87482a(0x197)];_0xca3a1a===m[_0x87482a(0x1fd)]['UPDATE_CURSOR']&&this[_0x87482a(0x282)](_0x2e7f27),_0xca3a1a===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x87482a(0x148)](_0x2e7f27);}),this[_0xb89e19(0x2bc)](this[_0xb89e19(0x204)][_0xb89e19(0x12b)](_0x4cb5c0=>{const _0x225251=_0xb89e19,_0x4aa17f=_0x4cb5c0[_0x225251(0x2f6)];_0x4aa17f!=null&&this[_0x225251(0x329)]&&_0x4cb5c0['id']===Y[_0x225251(0x259)]['id']&&_0x4aa17f[_0x225251(0x372)]===this[_0x225251(0x23e)]&&_0x4aa17f[_0x225251(0xfb)]===!0x1&&_0x4aa17f[_0x225251(0x2d8)][_0x225251(0x247)]>0x0&&this[_0x225251(0x160)](_0x4aa17f[_0x225251(0x2d8)]);})),this[_0xb89e19(0x152)][_0xb89e19(0x365)]['pipe'](d[_0xb89e19(0x357)](this[_0xb89e19(0x13f)]))['subscribe'](_0x58d1e2=>{const _0x1542f8=_0xb89e19;if((_0x58d1e2==null?void 0x0:_0x58d1e2['unitID'])!==this['unitID'])return;const _0x521586={'eventID':m[_0x1542f8(0x1fd)][_0x1542f8(0x2df)],'data':_0x58d1e2};this['_onCursorUpdate'](_0x521586);}),this['disposeWithMe'](this['_commandService'][_0xb89e19(0x12b)](_0x1b3e02=>{const _0x1cee45=_0xb89e19;if(_0x1b3e02['params']==null)return;const _0x359de4=_0x1b3e02[_0x1cee45(0x2f6)];if(_0x1b3e02['id']!==Y['RichTextEditingMutation']['id']||_0x359de4[_0x1cee45(0x372)]!==this['unitID'])return;const _0x33a5c9={'id':_0x1cee45(0x21c),'params':_0x359de4},_0x2dd1fb=this[_0x1cee45(0x159)];for(const [_0x25a331,_0x3ab9]of _0x2dd1fb){const _0x591dc4={'id':_0x1cee45(0x21c),'params':{'unitId':this[_0x1cee45(0x23e)],'actions':null,'textRanges':_0x3ab9[_0x1cee45(0x2d8)]}},_0x17612e=this['_transformService'][_0x1cee45(0x30c)](_0x33a5c9,_0x591dc4,!0x1);if(m[_0x1cee45(0x332)](_0x17612e))throw _0x17612e[_0x1cee45(0x302)];_0x2dd1fb[_0x1cee45(0x288)](_0x25a331,{..._0x3ab9,'ranges':_0x17612e['m2Prime'][_0x1cee45(0x2f6)][_0x1cee45(0x203)]});}queueMicrotask(()=>{const _0x4485cb=_0x1cee45;this[_0x4485cb(0x16e)][_0x4485cb(0x145)](_0x2dd1fb);});})));}[_0x31be5e(0x282)](_0x3e9fe5){const _0x2285e8=_0x31be5e;var _0x6e4b40,_0x584330;const {memberID:_0x144971,selection:_0x2762b5}=_0x3e9fe5[_0x2285e8(0x24e)],_0x3c4a75=Je(_0x2762b5),_0x2024bf=(_0x584330=(_0x6e4b40=this['_memberService'][_0x2285e8(0x358)](this['unitID'],_0x144971))==null?void 0x0:_0x6e4b40[_0x2285e8(0x1cf)])!=null?_0x584330:_0x2285e8(0x124),_0x2ee7c3={'color':this[_0x2285e8(0x279)]['assignAColorForMemberID'](_0x144971),'name':_0x2024bf,'ranges':_0x3c4a75},_0x2cd154=this['cursorInfo'];_0x2cd154[_0x2285e8(0x288)](_0x144971,_0x2ee7c3),this[_0x2285e8(0x16e)][_0x2285e8(0x145)](_0x2cd154);}[_0x31be5e(0x148)](_0x5b9120){const _0x2b6f67=_0x31be5e,{memberID:_0x43453d}=_0x5b9120[_0x2b6f67(0x24e)],_0x56b9e7=this[_0x2b6f67(0x159)];_0x56b9e7[_0x2b6f67(0x360)](_0x43453d),this['_cursorInfo$']['next'](_0x56b9e7);}['_toggleOnline'](){const _0x1958d1=_0x31be5e;var _0x226f79;if(this['_online']=!0x0,((_0x226f79=this[_0x1958d1(0x2e6)][_0x1958d1(0x2bf)]())==null?void 0x0:_0x226f79['getUnitId']())!==this[_0x1958d1(0x23e)])return;const _0x40e688=this['_injector']['get'](Y['DocSelectionManagerService'])[_0x1958d1(0x272)]();Array['isArray'](_0x40e688)&&_0x40e688[_0x1958d1(0x247)]>0x0&&this['_updateLocalCursor'](_0x40e688);}[_0x31be5e(0x2d0)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a['Inject'](a['Injector'])),L(0x3,a[_0x31be5e(0x353)](me)),L(0x4,a[_0x31be5e(0x353)](u[_0x31be5e(0x106)])),L(0x5,a[_0x31be5e(0x353)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x31be5e(0x2da)]),L(0x8,a[_0x31be5e(0x252)])],fe);var st=Object[_0x31be5e(0x241)],it=(_0x361915,_0x2eabde,_0x1a2d06,_0xef3302)=>{for(var _0xd46f31=_0xef3302>0x1?void 0x0:_0xef3302?st(_0x2eabde,_0x1a2d06):_0x2eabde,_0x474c43=_0x361915['length']-0x1,_0x47ffc2;_0x474c43>=0x0;_0x474c43--)(_0x47ffc2=_0x361915[_0x474c43])&&(_0xd46f31=_0x47ffc2(_0xd46f31)||_0xd46f31);return _0xd46f31;},A=(_0x22c7b8,_0x52d16e)=>(_0x404c19,_0xf3744c)=>_0x52d16e(_0x404c19,_0xf3744c,_0x22c7b8);const nt=0x12c,rt=0x64,ot=()=>{let _0x175d78=[],_0x1bf10f=!0x1;return _0x47cf04=>{const _0x1c081c=_0x43d8;_0x175d78[_0x1c081c(0x150)](_0x47cf04),_0x1bf10f||(_0x1bf10f=!0x0,setTimeout(()=>{const _0x28eb30=_0x1c081c;_0x175d78[_0x28eb30(0x379)](_0x50f1ff=>_0x50f1ff()),_0x175d78=[],_0x1bf10f=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x521e2f,_0x32256e,_0x3fc3a0,_0x26b43b,_0x4adece,_0x430672,_0x5d6ce2,_0x4be4d9){const _0x4ea727=_0x31be5e;super(),h(this,_0x4ea727(0x329),!0x1),h(this,_0x4ea727(0x100),!0x1),h(this,_0x4ea727(0x16e),new d[(_0x4ea727(0x221))](new Map())),h(this,_0x4ea727(0x113),this['_cursorInfo$'][_0x4ea727(0x2a0)]()),h(this,_0x4ea727(0x26b),new d[(_0x4ea727(0x221))]([])),h(this,'roomMembers$',this[_0x4ea727(0x26b)][_0x4ea727(0x2c2)](d['debounceTime'](nt))),h(this,_0x4ea727(0x160),a[_0x4ea727(0x13c)]((_0x146e42,_0x447966)=>{const _0x5972c2=_0x4ea727,_0x5eb517={'eventID':m[_0x5972c2(0x1fd)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x5972c2(0x23e)],'memberID':this[_0x5972c2(0x1e6)]['getMemberID'](),'selection':Ee[_0x5972c2(0x229)](_0x146e42,_0x447966['range'])}};this[_0x5972c2(0x1e6)]['send'](_0x5eb517,this[_0x5972c2(0x23e)]);},rt)),(this[_0x4ea727(0x23e)]=_0x521e2f,this[_0x4ea727(0x1e6)]=_0x32256e,this[_0x4ea727(0x171)]=_0x3fc3a0,this[_0x4ea727(0x279)]=_0x26b43b,this['_memberService']=_0x4adece,this['_univerInstanceService']=_0x430672,this['_commandService']=_0x5d6ce2,this['_refRangeService']=_0x4be4d9);}get[_0x31be5e(0x159)](){const _0xc3b4ef=_0x31be5e;return this[_0xc3b4ef(0x16e)][_0xc3b4ef(0x11d)]();}get[_0x31be5e(0x373)](){const _0x19b8e5=_0x31be5e;return this[_0x19b8e5(0x26b)][_0x19b8e5(0x11d)]();}[_0x31be5e(0x110)](){const _0x299661=_0x31be5e;super[_0x299661(0x110)](),this[_0x299661(0x16e)][_0x299661(0x145)](new Map()),this[_0x299661(0x16e)][_0x299661(0x34f)](),this[_0x299661(0x26b)][_0x299661(0x145)]([]),this[_0x299661(0x26b)][_0x299661(0x34f)]();}['init'](){const _0x2684b2=_0x31be5e;this[_0x2684b2(0x100)]||(this[_0x2684b2(0x100)]=!0x0,this[_0x2684b2(0x1e6)][_0x2684b2(0x1af)]['pipe'](d[_0x2684b2(0x357)](this[_0x2684b2(0x13f)]))['subscribe'](_0x42f97a=>{const _0x126fd8=_0x2684b2;_0x42f97a===u[_0x126fd8(0x344)][_0x126fd8(0x130)]?this[_0x126fd8(0x310)]():this[_0x126fd8(0x2d0)]();}),this['_session']['event$'][_0x2684b2(0x2c2)](d[_0x2684b2(0x357)](this['dispose$']))[_0x2684b2(0x347)](_0x93f27f=>{const _0x3ccc56=_0x2684b2,_0x43b419=_0x93f27f[_0x3ccc56(0x197)];_0x43b419===m[_0x3ccc56(0x1fd)]['UPDATE_CURSOR']&&this[_0x3ccc56(0x282)](_0x93f27f),_0x43b419===m[_0x3ccc56(0x1fd)][_0x3ccc56(0x10e)]&&this[_0x3ccc56(0x148)](_0x93f27f);}),this[_0x2684b2(0x25a)](),this[_0x2684b2(0x2bc)](this['_commandService']['onCommandExecuted'](_0x47065d=>{const _0x3ca19c=_0x2684b2;if(this[_0x3ca19c(0x329)]&&_0x47065d['id']===g[_0x3ca19c(0x19a)]['id']&&_0x47065d[_0x3ca19c(0x2f6)][_0x3ca19c(0x372)]===this[_0x3ca19c(0x23e)]){const _0x58c78f=_0x47065d[_0x3ca19c(0x2f6)];this[_0x3ca19c(0x160)](_0x58c78f[_0x3ca19c(0x2dd)],_0x58c78f[_0x3ca19c(0x34a)][0x0]);}})));}['_onCursorUpdate'](_0x159beb){const _0x58ae0d=_0x31be5e;var _0xe25421,_0x5d8d42;const {memberID:_0x16f8ba,selection:_0x1408ed}=_0x159beb[_0x58ae0d(0x24e)],{sheetName:_0x48d896,range:_0x26d133}=Ee[_0x58ae0d(0x1e4)](_0x1408ed),_0x26708b={'name':(_0x5d8d42=(_0xe25421=this[_0x58ae0d(0x147)][_0x58ae0d(0x358)](this['unitID'],_0x16f8ba))==null?void 0x0:_0xe25421[_0x58ae0d(0x1cf)])!=null?_0x5d8d42:_0x58ae0d(0x124),'range':this[_0x58ae0d(0x18b)](_0x48d896,_0x26d133),'sheetID':_0x48d896,'color':this[_0x58ae0d(0x279)][_0x58ae0d(0x1ae)](_0x16f8ba),'selection':_0x1408ed},_0x41b811=this['cursorInfo'];_0x41b811['set'](_0x16f8ba,_0x26708b),this[_0x58ae0d(0x16e)][_0x58ae0d(0x145)](_0x41b811);}[_0x31be5e(0x148)](_0x388d02){const _0x3526c5=_0x31be5e,{memberID:_0x978f95}=_0x388d02[_0x3526c5(0x24e)],_0x5430ab=this['cursorInfo'];_0x5430ab[_0x3526c5(0x360)](_0x978f95),this[_0x3526c5(0x16e)][_0x3526c5(0x145)](_0x5430ab);}['_getMergeRange'](_0x5c4772,_0x494332){const _0x1329bf=_0x31be5e;var _0x1af50f,_0x42797c;const _0xce0de0=(_0x42797c=(_0x1af50f=this[_0x1329bf(0x2e6)]['getUniverSheetInstance'](this[_0x1329bf(0x23e)]))==null?void 0x0:_0x1af50f['getSheetBySheetId'](_0x5c4772))==null?void 0x0:_0x42797c[_0x1329bf(0x22f)]();return(_0xce0de0==null?void 0x0:_0xce0de0['find'](_0x555e84=>a['Rectangle'][_0x1329bf(0x1b1)](_0x555e84,_0x494332)))||_0x494332;}[_0x31be5e(0x25a)](){const _0x230a2c=_0x31be5e,_0xb879eb=new a['DisposableCollection'](),_0xd02f44=ot(),_0x4b07be=()=>{const _0x3e4a14=_0x43d8;_0xb879eb[_0x3e4a14(0x110)]();const _0xf98b28=(_0x28f7b7,_0x82d91c,_0x30e69a,_0x5ee0f7)=>{const _0x3f66f9=_0x3e4a14;let _0x1bb520=[];switch(_0x28f7b7['id']){case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x196)]:{_0x1bb520=g[_0x3f66f9(0x2f3)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x326)]:{_0x1bb520=g[_0x3f66f9(0x182)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x167)]:{_0x1bb520=g[_0x3f66f9(0x23f)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x1d6)]:{_0x1bb520=g[_0x3f66f9(0x351)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x2f0)]:{_0x1bb520=g[_0x3f66f9(0x331)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)]['InsertRowCommandId']:{_0x1bb520=g[_0x3f66f9(0x313)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)]['MoveRangeCommandId']:{_0x1bb520=g[_0x3f66f9(0x29b)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x179)]:{_0x1bb520=g[_0x3f66f9(0x341)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x13a)]:{_0x1bb520=g[_0x3f66f9(0x2b5)](_0x28f7b7,_0x5ee0f7);break;}}const _0xe00572=g['runRefRangeMutations'](_0x1bb520,_0x5ee0f7),_0x2f9722=this[_0x3f66f9(0x159)][_0x3f66f9(0x16a)](_0x82d91c);if(_0x2f9722&&_0xe00572){const _0x176f0c={..._0x2f9722,'range':_0xe00572};this[_0x3f66f9(0x159)][_0x3f66f9(0x288)](_0x82d91c,_0x176f0c),_0xd02f44(()=>{const _0x1e2f6f=_0x3f66f9,_0x12078c=this[_0x1e2f6f(0x210)]['registerRefRange'](_0xe00572,_0x211c29=>(_0x12078c[_0x1e2f6f(0x110)](),_0xf98b28(_0x211c29,_0x82d91c,_0x30e69a,_0xe00572)));_0xb879eb['add'](_0x12078c);});}return{'redos':[],'undos':[]};};this[_0x3e4a14(0x159)][_0x3e4a14(0x379)]((_0x5ceb25,_0x54e1a7)=>{const _0x5cde7d=_0x3e4a14,{range:_0x1f10fb,sheetID:_0x837f22}=_0x5ceb25,_0x1fb855=this[_0x5cde7d(0x210)]['registerRefRange'](_0x1f10fb,_0x1b3191=>(_0x1fb855[_0x5cde7d(0x110)](),_0xf98b28(_0x1b3191,_0x54e1a7,_0x837f22,_0x1f10fb)));_0xb879eb[_0x5cde7d(0x1cc)](_0x1fb855);});};this['disposeWithMe'](a['toDisposable'](this[_0x230a2c(0x16e)]['subscribe'](()=>{_0x4b07be();})));}[_0x31be5e(0x310)](){const _0x370e98=_0x31be5e;var _0x25ff0b,_0x30f726;if(this['_online']=!0x0,((_0x25ff0b=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x25ff0b[_0x370e98(0x17b)]())!==this[_0x370e98(0x23e)])return;const _0x4799ba=(_0x30f726=this[_0x370e98(0x171)]['get'](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x30f726[0x0],_0x40119b=this[_0x370e98(0x2e6)][_0x370e98(0x2e5)](a[_0x370e98(0x20d)]['UNIVER_SHEET'])['getActiveSheet']();_0x4799ba&&_0x40119b&&this['_updateLocalCursor'](_0x40119b[_0x370e98(0x1bc)](),_0x4799ba);}[_0x31be5e(0x2d0)](){const _0x5df159=_0x31be5e;this[_0x5df159(0x329)]=!0x1;}};Se=it([A(0x2,a[_0x31be5e(0x353)](a[_0x31be5e(0x21d)])),A(0x3,a[_0x31be5e(0x353)](me)),A(0x4,a[_0x31be5e(0x353)](u['MemberService'])),A(0x5,a[_0x31be5e(0x2da)]),A(0x6,a[_0x31be5e(0x252)]),A(0x7,a[_0x31be5e(0x353)](g['RefRangeService']))],Se);var at=Object[_0x31be5e(0x241)],ct=(_0x1bc316,_0x1ed397,_0x277169,_0x40296a)=>{const _0x3ff765=_0x31be5e;for(var _0x39e609=_0x40296a>0x1?void 0x0:_0x40296a?at(_0x1ed397,_0x277169):_0x1ed397,_0x3f94f2=_0x1bc316[_0x3ff765(0x247)]-0x1,_0x4edf1f;_0x3f94f2>=0x0;_0x3f94f2--)(_0x4edf1f=_0x1bc316[_0x3f94f2])&&(_0x39e609=_0x4edf1f(_0x39e609)||_0x39e609);return _0x39e609;},ie=(_0x294c20,_0x14714f)=>(_0x43377b,_0x4af68b)=>_0x14714f(_0x43377b,_0x4af68b,_0x294c20);let x=class extends a['RxDisposable']{constructor(_0x50dc56,_0x5bb7de,_0x965661){const _0x4a54b9=_0x31be5e;super(),h(this,_0x4a54b9(0x1cd),new Map()),h(this,_0x4a54b9(0x12f),new d[(_0x4a54b9(0x188))]()),(this[_0x4a54b9(0x2e6)]=_0x50dc56,this[_0x4a54b9(0x171)]=_0x5bb7de,this[_0x4a54b9(0x314)]=_0x965661,this['_init']());}[_0x31be5e(0x110)](){const _0x430cf1=_0x31be5e;super[_0x430cf1(0x110)](),this[_0x430cf1(0x12f)][_0x430cf1(0x34f)](),this[_0x430cf1(0x1cd)][_0x430cf1(0x379)](_0x1549c6=>_0x1549c6[_0x430cf1(0x110)]());}[_0x31be5e(0x2e0)](_0x3ddcf3){const _0x411bc3=_0x31be5e;return this['_entities'][_0x411bc3(0x31e)](_0x3ddcf3)?this[_0x411bc3(0x1cd)][_0x411bc3(0x16a)](_0x3ddcf3)[_0x411bc3(0x113)]:this[_0x411bc3(0x12f)][_0x411bc3(0x2c2)](d[_0x411bc3(0x2e3)](_0x5eb2f6=>_0x5eb2f6[_0x411bc3(0x23e)]===_0x3ddcf3),d[_0x411bc3(0x1b6)](_0x28bf0c=>_0x28bf0c[_0x411bc3(0x113)]));}['_init'](){const _0x3febf8=_0x31be5e;this['_univerInstanceService'][_0x3febf8(0x2e4)](a[_0x3febf8(0x20d)]['UNIVER_SHEET'])[_0x3febf8(0x2c2)](d['takeUntil'](this['dispose$']))[_0x3febf8(0x347)](async _0x337918=>{const _0x2c1007=_0x3febf8,_0x42118c=_0x337918['getUnitId'](),_0x26db0b=await this[_0x2c1007(0x1b3)](_0x42118c);this['_entityInit$'][_0x2c1007(0x145)](_0x26db0b),this[_0x2c1007(0x1cd)][_0x2c1007(0x288)](_0x42118c,_0x26db0b);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3febf8(0x20d)]['UNIVER_DOC'])[_0x3febf8(0x2c2)](d[_0x3febf8(0x357)](this[_0x3febf8(0x13f)]))['pipe'](d['filter'](_0x282002=>!_0x282002[_0x3febf8(0x17b)]()[_0x3febf8(0x218)]('__')))[_0x3febf8(0x347)](async _0x398998=>{const _0x405af9=_0x3febf8,_0x58a5fb=_0x398998[_0x405af9(0x17b)](),_0x358ca4=await this[_0x405af9(0x305)](_0x58a5fb);this[_0x405af9(0x12f)]['next'](_0x358ca4),this[_0x405af9(0x1cd)]['set'](_0x58a5fb,_0x358ca4);}),d[_0x3febf8(0x255)](this[_0x3febf8(0x2e6)]['getTypeOfUnitDisposed$'](a[_0x3febf8(0x20d)][_0x3febf8(0x309)]),this[_0x3febf8(0x2e6)][_0x3febf8(0x231)](a[_0x3febf8(0x20d)][_0x3febf8(0x2bd)]))[_0x3febf8(0x2c2)](d[_0x3febf8(0x357)](this[_0x3febf8(0x13f)]))['subscribe'](_0x38b801=>{const _0x4793b7=_0x3febf8,_0x162c43=_0x38b801[_0x4793b7(0x17b)](),_0x13e79e=this['_entities'][_0x4793b7(0x16a)](_0x162c43);_0x13e79e&&(_0x13e79e[_0x4793b7(0x110)](),this[_0x4793b7(0x1cd)][_0x4793b7(0x360)](_0x162c43));});}async[_0x31be5e(0x1b3)](_0x27df3b){const _0x283f3f=_0x31be5e,_0x233fde=await this[_0x283f3f(0x314)][_0x283f3f(0x2a7)](_0x27df3b),_0x15d190=this['_injector']['createInstance'](Se,_0x27df3b,_0x233fde);return _0x15d190['init'](),_0x15d190;}async[_0x31be5e(0x305)](_0x389369){const _0x293b5b=_0x31be5e,_0x2544d5=await this[_0x293b5b(0x314)][_0x293b5b(0x2a7)](_0x389369),_0x1fd7ae=this[_0x293b5b(0x171)]['createInstance'](fe,_0x389369,_0x2544d5);return _0x1fd7ae[_0x293b5b(0x31f)](),_0x1fd7ae;}};x=ct([ie(0x0,a[_0x31be5e(0x2da)]),ie(0x1,a[_0x31be5e(0x353)](a[_0x31be5e(0x21d)])),ie(0x2,a[_0x31be5e(0x353)](u[_0x31be5e(0x22b)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x353ef1,_0x1f94e0){const _0x2c978f=_0x31be5e;let {radius:_0x237a9a,width:_0x38fb51,height:_0x387dce}=_0x1f94e0;_0x237a9a=_0x237a9a!=null?_0x237a9a:0x0,_0x38fb51=_0x38fb51!=null?_0x38fb51:0x1e,_0x387dce=_0x387dce!=null?_0x387dce:0x1e;let _0x1c683b=0x0,_0x34d2be=0x0,_0x246c5b=0x0;_0x1c683b=_0x34d2be=_0x246c5b=Math[_0x2c978f(0x2cc)](_0x237a9a,_0x38fb51/0x2,_0x387dce/0x2),_0x353ef1[_0x2c978f(0x140)](),_0x353ef1[_0x2c978f(0x217)](_0x1c683b,0x0),_0x353ef1[_0x2c978f(0x2aa)](_0x38fb51-_0x34d2be,0x0),_0x353ef1[_0x2c978f(0x134)](_0x38fb51-_0x34d2be,_0x34d2be,_0x34d2be,Math['PI']*0x3/0x2,0x0,!0x1),_0x353ef1[_0x2c978f(0x2aa)](_0x38fb51,_0x387dce-_0x246c5b),_0x353ef1[_0x2c978f(0x134)](_0x38fb51-_0x246c5b,_0x387dce-_0x246c5b,_0x246c5b,0x0,Math['PI']/0x2,!0x1),_0x353ef1[_0x2c978f(0x2aa)](0x0,_0x387dce),_0x353ef1[_0x2c978f(0x2aa)](0x0,_0x1c683b),_0x353ef1[_0x2c978f(0x134)](_0x1c683b,_0x1c683b,_0x1c683b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x353ef1[_0x2c978f(0x176)](),_0x1f94e0[_0x2c978f(0x2c1)]&&(_0x353ef1[_0x2c978f(0x2ed)](),_0x353ef1['fillStyle']=_0x1f94e0[_0x2c978f(0x2c1)],_0x1f94e0[_0x2c978f(0x352)]===_0x2c978f(0x2bb)?_0x353ef1[_0x2c978f(0x2c1)](_0x2c978f(0x2bb)):_0x353ef1['fill'](),_0x353ef1[_0x2c978f(0x206)]());}class ee extends p['Shape']{constructor(_0x2cdf97,_0x142ece){const _0x254271=_0x31be5e;super(_0x2cdf97,_0x142ece),h(this,'color'),h(this,_0x254271(0x27b)),(this[_0x254271(0x260)]=_0x142ece==null?void 0x0:_0x142ece[_0x254271(0x260)],this[_0x254271(0x27b)]=_0x142ece==null?void 0x0:_0x142ece['text']);}static['drawWith'](_0x3a8237,_0x34a456){const _0x58162c=_0x31be5e,{text:_0x36140a,color:_0x4f705b}=_0x34a456;_0x3a8237['save'](),_0x3a8237[_0x58162c(0x2e8)]=_0x58162c(0x2cd);const _0x35c80e=_0x3a8237[_0x58162c(0x238)](_0x36140a)[_0x58162c(0x1e8)],_0x3f97a2=Math[_0x58162c(0x2cc)](_0x35c80e+0x2*ne,Re);_t(_0x3a8237,{'height':K,'radius':0x4,'width':_0x3f97a2,'fill':_0x4f705b}),_0x3a8237[_0x58162c(0x15c)]=_0x58162c(0x2fb);const _0x411d6c=ne,_0x209568=K-lt,_0x2752c0=Re-0x2*ne;if(_0x35c80e>_0x2752c0){let _0x3b8f0e='',_0x3dbe6b=0x0;for(const _0x6643bc of _0x36140a){const _0x1681f3=_0x3a8237[_0x58162c(0x238)](_0x6643bc)['width'];if(_0x3dbe6b+_0x1681f3<=_0x2752c0-_0x3a8237[_0x58162c(0x238)](_0x58162c(0x121))['width'])_0x3b8f0e+=_0x6643bc,_0x3dbe6b+=_0x1681f3;else{_0x3b8f0e+=_0x58162c(0x121);break;}}_0x3a8237[_0x58162c(0x10f)](_0x3b8f0e,_0x411d6c,_0x209568);}else _0x3a8237[_0x58162c(0x10f)](_0x36140a,_0x411d6c,_0x209568);_0x3a8237['restore']();}['_draw'](_0xdd02ce){const _0x2243f2=_0x31be5e;ee[_0x2243f2(0x1fe)](_0xdd02ce,this);}}const re=_0x31be5e(0x169),ht=_0x31be5e(0x173),ut=_0x31be5e(0x1f3),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x31be5e(0x293);class De{constructor(_0x1888ad,_0x55432f,_0x4fa408,_0x575f0b){const _0x37b46a=_0x31be5e;h(this,'_shapes',[]),h(this,_0x37b46a(0x2d3),null),h(this,_0x37b46a(0x278),null),h(this,'_anchorDot',null),h(this,_0x37b46a(0x1f4),null),h(this,_0x37b46a(0x14a),null),(this[_0x37b46a(0x324)]=_0x1888ad,this['_scene']=_0x55432f,this['_docSkeleton']=_0x4fa408,this[_0x37b46a(0x33d)]=_0x575f0b,this[_0x37b46a(0x2fd)]());}set[_0x31be5e(0x15e)](_0x3fee5a){const _0x5cf8a3=_0x31be5e;_0x3fee5a?(this[_0x5cf8a3(0x154)]&&this[_0x5cf8a3(0x154)][_0x5cf8a3(0x1ef)](),this[_0x5cf8a3(0x278)]&&this[_0x5cf8a3(0x278)]['show']()):(this[_0x5cf8a3(0x154)]&&this[_0x5cf8a3(0x154)][_0x5cf8a3(0x1f6)](),this[_0x5cf8a3(0x278)]&&this[_0x5cf8a3(0x278)][_0x5cf8a3(0x1ef)]());}[_0x31be5e(0x110)](){const _0x37a524=_0x31be5e;for(const _0x461461 of this[_0x37a524(0x15f)])_0x461461['dispose']();this[_0x37a524(0x278)]&&this[_0x37a524(0x278)][_0x37a524(0x110)](),this[_0x37a524(0x154)]&&this[_0x37a524(0x154)][_0x37a524(0x110)](),this[_0x37a524(0x2d3)]&&this['_anchor'][_0x37a524(0x110)](),this['_eventUnsubscribe']&&this[_0x37a524(0x14a)]();}[_0x31be5e(0x2fd)](){const _0x411c08=_0x31be5e;var _0x47e45f;const {_docSkeleton:_0x4c0598,_document:_0x1da8ab}=this,{color:_0x14190a,name:_0x51035d,ranges:_0x23f24b}=this[_0x411c08(0x324)],_0xb25ec1=_0x1da8ab[_0x411c08(0x1c6)](),{docsLeft:_0x14feb5,docsTop:_0x426712}=_0xb25ec1,_0x2579f8=new b[(_0x411c08(0x29e))](_0xb25ec1,_0x4c0598);for(const {startOffset:_0x4b2ae3,endOffset:_0x4e382e,rangeType:_0x3ad01c,segmentId:_0x5e5887,segmentPage:_0x6b5717,collapsed:_0xcd70c9,isActive:_0x113435}of _0x23f24b){const _0x52785a=_0x4c0598[_0x411c08(0x2be)](_0x4b2ae3,!0x0,_0x5e5887,_0x6b5717);let _0x4303ed=_0x4c0598[_0x411c08(0x2be)](_0x4e382e,!0x0,_0x5e5887,_0x6b5717);if(_0x4303ed==null&&(_0x4303ed=_0x4c0598['findNodePositionByCharIndex'](_0x4e382e-0x1,!0x1,_0x5e5887,_0x6b5717)),_0x113435){const {contentBoxPointGroup:_0x14a792}=_0x2579f8[_0x411c08(0x27a)](_0x4303ed,_0x4303ed);if(_0x14a792[_0x411c08(0x247)]===0x0)continue;this[_0x411c08(0x14e)](_0x14190a,_0x14a792,_0x14feb5,_0x426712,_0x51035d),this[_0x411c08(0x14a)]=this[_0x411c08(0x18c)]();}if(_0x52785a&&_0x4303ed){if(_0x3ad01c===a[_0x411c08(0x1d8)][_0x411c08(0x292)]){const _0x731b8a=new b[(_0x411c08(0x1db))](_0xb25ec1,_0x4c0598),{pointGroup:_0x39ce63}=(_0x47e45f=_0x731b8a['getRangePointData'](_0x52785a,_0x4303ed))!=null?_0x47e45f:{};if(_0x39ce63==null||_0x39ce63['length']===0x0)continue;this['_drawRectRange'](_0x14190a,_0x39ce63,_0x14feb5,_0x426712);}else{if(!_0xcd70c9){const {borderBoxPointGroup:_0x5550b0}=_0x2579f8[_0x411c08(0x27a)](_0x52785a,_0x4303ed);if(_0x5550b0['length']===0x0)continue;this[_0x411c08(0x307)](_0x14190a,_0x5550b0,_0x14feb5,_0x426712);}}}}}[_0x31be5e(0x14e)](_0x2f382c,_0x43e453,_0x14ded4,_0x30809b,_0x7d2eba){const _0x2f6f5e=_0x31be5e,_0x5926f1=this[_0x2f6f5e(0x267)](_0x43e453),{left:_0x7579a2,top:_0x446fd9,height:_0x4bc7b9}=_0x5926f1,_0x2afa6b=this[_0x2f6f5e(0x1d7)](),_0x4c9f7b=ft/_0x2afa6b,_0x2f1741=new p['Rect'](re+a[_0x2f6f5e(0x294)]['generateRandomId'](k),{'left':_0x7579a2+_0x14ded4-_0x4c9f7b,'top':_0x446fd9+_0x30809b,'height':_0x4bc7b9,'width':dt,'fill':_0x2f382c||p[_0x2f6f5e(0x253)](a[_0x2f6f5e(0x1a2)][_0x2f6f5e(0x15d)],0x0),'strokeWidth':_0x4c9f7b,'stroke':St,'evented':!0x0});this[_0x2f6f5e(0x2d3)]=_0x2f1741,this[_0x2f6f5e(0x237)][_0x2f6f5e(0x21a)](_0x2f1741,b[_0x2f6f5e(0x317)]);const _0x845e95=new p['Rect'](re+a[_0x2f6f5e(0x294)][_0x2f6f5e(0x12e)](k),{'left':_0x7579a2+_0x14ded4-_0x4c9f7b,'top':_0x446fd9+_0x30809b-oe/0x2,'height':oe,'width':oe,'fill':_0x2f382c||p['getColor'](a[_0x2f6f5e(0x1a2)][_0x2f6f5e(0x15d)],0x0),'strokeWidth':0x0,'stroke':_0x2f382c||p[_0x2f6f5e(0x253)](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x2f6f5e(0x154)]=_0x845e95,this[_0x2f6f5e(0x237)][_0x2f6f5e(0x21a)](_0x845e95,b[_0x2f6f5e(0x317)]);const _0x338a79=new ee(re+a[_0x2f6f5e(0x294)][_0x2f6f5e(0x12e)](k),{'left':_0x7579a2+_0x14ded4-_0x4c9f7b,'top':_0x446fd9+_0x30809b-K,'text':_0x7d2eba,'color':_0x2f382c});this[_0x2f6f5e(0x278)]=_0x338a79,this['_scene'][_0x2f6f5e(0x21a)](_0x338a79,b[_0x2f6f5e(0x317)]),this[_0x2f6f5e(0x15e)]=!0x1;}[_0x31be5e(0x18c)](){const _0x32c505=_0x31be5e,_0xee0872=this[_0x32c505(0x2d3)][_0x32c505(0x242)][_0x32c505(0x25f)](()=>{const _0x3ec319=_0x32c505;this[_0x3ec319(0x15e)]=!0x0;}),_0x5b46bd=this['_anchor'][_0x32c505(0x193)][_0x32c505(0x25f)](()=>{const _0x238eec=_0x32c505;this[_0x238eec(0x1f4)]&&clearTimeout(this['_hideTimer']),this[_0x238eec(0x1f4)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x54415c=_0x32c505;_0xee0872['unsubscribe'](),_0x5b46bd[_0x54415c(0x258)]();};}[_0x31be5e(0x307)](_0x2b439a,_0x4f002c,_0x3d6b28,_0x5ed51a){const _0x1917fb=_0x31be5e,_0x5dba5f=new a['ColorKit'](_0x2b439a)[_0x1917fb(0x1da)](0.2)[_0x1917fb(0x213)](),_0x305db0=new p[(_0x1917fb(0x211))](ht+a[_0x1917fb(0x294)]['generateRandomId'](k),{'pointsGroup':_0x4f002c,'fill':_0x5dba5f||p[_0x1917fb(0x253)](a['COLORS'][_0x1917fb(0x15d)],0.2),'left':_0x3d6b28,'top':_0x5ed51a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1917fb(0x15f)][_0x1917fb(0x150)](_0x305db0),this[_0x1917fb(0x237)][_0x1917fb(0x21a)](_0x305db0,b[_0x1917fb(0x317)]);}[_0x31be5e(0x1ac)](_0x8433db,_0x4d5bf4,_0x427ae7,_0xf26d29){const _0x280110=_0x31be5e,_0x4a7c32=new a[(_0x280110(0x2cb))](_0x8433db)[_0x280110(0x1da)](0.2)[_0x280110(0x213)](),_0x33a8be=new p[(_0x280110(0x211))](ut+a['Tools'][_0x280110(0x12e)](k),{'pointsGroup':_0x4d5bf4,'fill':_0x4a7c32||p[_0x280110(0x253)](a[_0x280110(0x1a2)][_0x280110(0x15d)],0.2),'left':_0x427ae7,'top':_0xf26d29,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x280110(0x15f)][_0x280110(0x150)](_0x33a8be),this[_0x280110(0x237)][_0x280110(0x21a)](_0x33a8be,b[_0x280110(0x317)]);}[_0x31be5e(0x267)](_0x84123b){const _0x393911=_0x84123b[0x0],_0x142d22=_0x393911[0x0],_0x270ffd=_0x393911[0x2],{x:_0x2e1da8,y:_0x1ebd30}=_0x142d22,{x:_0x418ede,y:_0x203bff}=_0x270ffd;return{'left':_0x2e1da8,'top':_0x1ebd30,'width':_0x418ede-_0x2e1da8,'height':_0x203bff-_0x1ebd30};}['_getScale'](){const _0x432341=_0x31be5e,{scaleX:_0x5f3657,scaleY:_0x368fa1}=this[_0x432341(0x237)][_0x432341(0x2f9)]();return Math[_0x432341(0x29f)](_0x5f3657,_0x368fa1);}}var It=Object[_0x31be5e(0x241)],vt=(_0x179742,_0x1ce1f4,_0x39c1c0,_0x3d81f0)=>{const _0x1a54b1=_0x31be5e;for(var _0x55dc34=_0x3d81f0>0x1?void 0x0:_0x3d81f0?It(_0x1ce1f4,_0x39c1c0):_0x1ce1f4,_0xddd672=_0x179742[_0x1a54b1(0x247)]-0x1,_0x460663;_0xddd672>=0x0;_0xddd672--)(_0x460663=_0x179742[_0xddd672])&&(_0x55dc34=_0x460663(_0x55dc34)||_0x55dc34);return _0x55dc34;},W=(_0x2f1d27,_0x3417b0)=>(_0xd990b,_0x5e6568)=>_0x3417b0(_0xd990b,_0x5e6568,_0x2f1d27);let Ie=class extends a[_0x31be5e(0x262)]{constructor(_0x54eedc,_0x222e58,_0x1b5980,_0x3d75bd,_0x4ef5c0){const _0x3c25be=_0x31be5e;super(),h(this,_0x3c25be(0x2ba),[]),h(this,_0x3c25be(0x33b),[]),(this[_0x3c25be(0x215)]=_0x54eedc,this['_docSkeletonManagerService']=_0x222e58,this[_0x3c25be(0x343)]=_0x1b5980,this['_commandService']=_0x3d75bd,this[_0x3c25be(0xfd)]=_0x4ef5c0,this[_0x3c25be(0x100)]());}[_0x31be5e(0x100)](){const _0x56a4df=_0x31be5e,_0xaa1964=this[_0x56a4df(0x215)][_0x56a4df(0x372)],_0xd6b6d7=this[_0x56a4df(0x117)];this[_0x56a4df(0x2bc)](d[_0x56a4df(0x208)]([this[_0x56a4df(0x343)][_0x56a4df(0x2e0)](_0xaa1964),this[_0x56a4df(0xfd)][_0x56a4df(0x1f9)]])['pipe']($[_0x56a4df(0x2f1)](([_0x4b4b46,_0x78e072])=>({'skeleton':_0xd6b6d7['getSkeleton'](),'cursors':[..._0x4b4b46['values']()][_0x56a4df(0x1d2)](_0x138d4=>({..._0x138d4,'color':this['_themeService'][_0x56a4df(0x129)](_0x138d4[_0x56a4df(0x260)])}))})))[_0x56a4df(0x347)](_0x509fbc=>{const _0x5c6b37=_0x56a4df;if(this['_removeCollabCursors'](),_0x509fbc){const {skeleton:_0x217bee,cursors:_0x44ab18}=_0x509fbc;this[_0x5c6b37(0x261)](_0x217bee,_0x44ab18);}})),this[_0x56a4df(0x31b)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x4ec1e3,_0x128d2f){const _0xb0e7ac=_0x31be5e,{scene:_0x210905,mainComponent:_0x569493}=this[_0xb0e7ac(0x215)],_0x1f05eb=_0x128d2f['map'](_0x270083=>new De(_0x270083,_0x210905,_0x4ec1e3,_0x569493));this[_0xb0e7ac(0x2ba)]=_0x1f05eb,this[_0xb0e7ac(0x33b)]=_0x128d2f;}[_0x31be5e(0x35d)](){const _0x52ecb7=_0x31be5e;this[_0x52ecb7(0x16c)]();const {scene:_0x2f7e7f,mainComponent:_0xccc64d}=this[_0x52ecb7(0x215)],_0x4e9a01=this['_docSkeletonManagerService'][_0x52ecb7(0x1f0)](),_0x4ddd58=this['_cursors'][_0x52ecb7(0x2f1)](_0x4a4f12=>new De(_0x4a4f12,_0x2f7e7f,_0x4e9a01,_0xccc64d));this[_0x52ecb7(0x2ba)]=_0x4ddd58;}[_0x31be5e(0x16c)](){const _0x4d62cc=_0x31be5e;this['_cursorShapes'][_0x4d62cc(0x379)](_0x3df7f4=>_0x3df7f4[_0x4d62cc(0x110)]()),this[_0x4d62cc(0x2ba)]=[];}[_0x31be5e(0x30d)](){const _0x146e2b=_0x31be5e,_0x1a576d=[b[_0x146e2b(0x163)]['id']];this['disposeWithMe'](this[_0x146e2b(0x204)][_0x146e2b(0x12b)](_0x6eba6e=>{const _0x17314c=_0x146e2b;_0x1a576d[_0x17314c(0x13b)](_0x6eba6e['id'])&&_0x6eba6e[_0x17314c(0x2f6)][_0x17314c(0x372)]===this[_0x17314c(0x215)]['unitId']&&this[_0x17314c(0x35d)]();}));}[_0x31be5e(0x31b)](){const _0x214f82=_0x31be5e;this[_0x214f82(0x2bc)](a['fromEventSubject'](this[_0x214f82(0x215)][_0x214f82(0x308)]['onTransformChange$'])[_0x214f82(0x2c2)]($[_0x214f82(0x2e3)](_0x4daa2d=>_0x4daa2d[_0x214f82(0x200)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x214f82(0x1ee)](0x10))[_0x214f82(0x347)](()=>{const _0x565d22=_0x214f82;this[_0x565d22(0x35d)]();}));}};Ie=vt([W(0x1,a[_0x31be5e(0x353)](Y[_0x31be5e(0x166)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x31be5e(0x252)]),W(0x4,a[_0x31be5e(0x353)](a[_0x31be5e(0x133)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x62eb81,_0x1e2ba7){const _0x5eb0f0=_0x31be5e;super(_0x62eb81,_0x1e2ba7),h(this,_0x5eb0f0(0x1bf)),h(this,_0x5eb0f0(0x34b),!0x1),h(this,_0x5eb0f0(0x333)),h(this,'_name',''),h(this,_0x5eb0f0(0x26a),_0x5eb0f0(0x24b)),h(this,'_backgroundColor'),(_0x1e2ba7&&this[_0x5eb0f0(0x295)](_0x1e2ba7),this[_0x5eb0f0(0x242)][_0x5eb0f0(0x25f)](()=>this[_0x5eb0f0(0x295)]({'hovered':!0x0})),this[_0x5eb0f0(0x193)][_0x5eb0f0(0x25f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x31be5e(0x295)](_0x1d6291){const _0x484b7d=_0x31be5e;var _0x782422,_0x260ca6,_0x43d2c8,_0x1f2902,_0x523c63,_0x5628d1;this[_0x484b7d(0x1bf)]=(_0x782422=_0x1d6291[_0x484b7d(0x260)])!=null?_0x782422:this['_color'],this[_0x484b7d(0x34b)]=(_0x260ca6=_0x1d6291[_0x484b7d(0x18f)])!=null?_0x260ca6:this[_0x484b7d(0x34b)],this[_0x484b7d(0x333)]=(_0x43d2c8=_0x1d6291[_0x484b7d(0xf9)])!=null?_0x43d2c8:this[_0x484b7d(0x333)],this[_0x484b7d(0x32e)]=(_0x1f2902=_0x1d6291[_0x484b7d(0x1cf)])!=null?_0x1f2902:this['_name'],this['_labelPosition']=(_0x523c63=_0x1d6291[_0x484b7d(0x371)])!=null?_0x523c63:this[_0x484b7d(0x26a)],this[_0x484b7d(0x21b)]=(_0x5628d1=_0x1d6291[_0x484b7d(0x22e)])!=null?_0x5628d1:this[_0x484b7d(0x21b)],this[_0x484b7d(0x25e)]({'width':_0x1d6291[_0x484b7d(0x1e8)],'height':_0x1d6291[_0x484b7d(0x368)]});}[_0x31be5e(0x19f)](_0x2fedc8){const _0x37aa27=_0x31be5e,{row:_0x21a385,column:_0x3eaa01}=_0x2fedc8;if(_0x21a385>=this['_range']['startRow']&&_0x21a385<=this[_0x37aa27(0x333)]['endRow']&&_0x3eaa01>=this['_range'][_0x37aa27(0x235)]&&_0x3eaa01<=this[_0x37aa27(0x333)]['endColumn']){this[_0x37aa27(0x295)]({'hovered':!0x0});return;}this[_0x37aa27(0x295)]({'hovered':!0x1});}[_0x31be5e(0x1ea)](_0x2cd743){return!0x1;}[_0x31be5e(0x1c2)](_0x3d1d2f){const _0x358b24=_0x31be5e;p['Rect'][_0x358b24(0x1fe)](_0x3d1d2f,{'width':this[_0x358b24(0x1e8)],'height':this[_0x358b24(0x368)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x358b24(0x21b)]}),this['_hovered']&&(_0x3d1d2f[_0x358b24(0x2ed)](),_0x3d1d2f['transform'](0x1,0x0,0x0,0x1,this[_0x358b24(0x1e8)],this['_labelPosition']==='bottom'?0x0:-0x14),ee[_0x358b24(0x1fe)](_0x3d1d2f,{'text':this[_0x358b24(0x32e)],'color':this[_0x358b24(0x1bf)]}),_0x3d1d2f[_0x358b24(0x206)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x32b44d,_0x8a5a32,_0x5aa95b,_0x1f2347)=>{const _0x514e35=_0x31be5e;for(var _0x1f53db=_0x1f2347>0x1?void 0x0:_0x1f2347?Ct(_0x8a5a32,_0x5aa95b):_0x8a5a32,_0x543d4c=_0x32b44d[_0x514e35(0x247)]-0x1,_0x346249;_0x543d4c>=0x0;_0x543d4c--)(_0x346249=_0x32b44d[_0x543d4c])&&(_0x1f53db=_0x346249(_0x1f53db)||_0x1f53db);return _0x1f53db;},ae=(_0x4f222c,_0x5751fa)=>(_0x49e892,_0x976133)=>_0x5751fa(_0x49e892,_0x976133,_0x4f222c);const bt=0x1389;let ve=class extends a[_0x31be5e(0x262)]{constructor(_0x54777a,_0x28efa0,_0x4c3a57,_0x1ec288){const _0x30b93b=_0x31be5e;super(),h(this,_0x30b93b(0x33b),new Set()),h(this,_0x30b93b(0x30b),null),(this[_0x30b93b(0x215)]=_0x54777a,this[_0x30b93b(0x2d2)]=_0x28efa0,this[_0x30b93b(0x343)]=_0x4c3a57,this[_0x30b93b(0xfd)]=_0x1ec288,this[_0x30b93b(0x100)]());}[_0x31be5e(0x100)](){const _0x5a02de=_0x31be5e;this[_0x5a02de(0x2d2)]['currentSkeleton$'][_0x5a02de(0x2c2)]($[_0x5a02de(0x357)](this[_0x5a02de(0x13f)]),$[_0x5a02de(0x1b6)](_0x48e91d=>{const _0x427fde=_0x5a02de;if(_0x48e91d){const _0x2bd73b=_0x48e91d[_0x427fde(0x336)];return d['combineLatest'](this[_0x427fde(0x343)][_0x427fde(0x2e0)](this[_0x427fde(0x215)][_0x427fde(0x372)]),this[_0x427fde(0xfd)][_0x427fde(0x1f9)])[_0x427fde(0x2c2)]($[_0x427fde(0x2f1)](([_0x30f1ee,_0x33f42b])=>{const _0x1a5474=_0x427fde,_0x196a20=new Map();return _0x30f1ee[_0x1a5474(0x379)]((_0x1bc733,_0x2a573e)=>{const _0x2ff78f=_0x1a5474;if(_0x1bc733['sheetID']===_0x2bd73b){const _0x446c5d={..._0x1bc733};_0x446c5d[_0x2ff78f(0x260)]=this[_0x2ff78f(0xfd)][_0x2ff78f(0x129)](_0x1bc733[_0x2ff78f(0x260)]),_0x196a20['set'](_0x2a573e,_0x446c5d);}}),{'skeleton':_0x48e91d,'cursors':_0x196a20};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5a02de(0x347)](({skeleton:_0x50d9b4,cursors:_0x16fcaa})=>{const _0x5163c0=_0x5a02de;this[_0x5163c0(0x16c)](),_0x50d9b4&&this[_0x5163c0(0x261)](_0x50d9b4,_0x16fcaa);}),this[_0x5a02de(0x2d2)][_0x5a02de(0x244)][_0x5a02de(0x347)](_0x50d23c=>{const _0x4328dd=_0x5a02de;if(_0x50d23c==null)return;const {skeleton:_0x13aad6}=_0x50d23c,{scene:_0x36b786}=this[_0x4328dd(0x215)];_0x36b786[_0x4328dd(0x1b7)][_0x4328dd(0x25f)](a[_0x4328dd(0x13c)](_0x3f894f=>{const _0x447bc2=_0x4328dd;var _0x3cd617,_0x1edd62;const {offsetX:_0x12b546,offsetY:_0x4585aa}=_0x3f894f,{x:_0x1b180e,y:_0x803cef}=_0x36b786[_0x447bc2(0x17a)](p[_0x447bc2(0x1e5)][_0x447bc2(0x151)]([_0x12b546,_0x4585aa])),{scaleX:_0xd62132,scaleY:_0x1489a1}=_0x36b786['getAncestorScale'](),_0x34daf1=_0x36b786['getViewport'](p[_0x447bc2(0x35a)][_0x447bc2(0x105)]),_0x1073b8=_0x36b786['getVpScrollXYInfoByPosToVp'](p[_0x447bc2(0x1e5)][_0x447bc2(0x151)]([_0x1b180e,_0x803cef]),_0x34daf1),_0x2265ab=_0x13aad6[_0x447bc2(0x162)](_0x12b546,_0x4585aa,_0xd62132,_0x1489a1,_0x1073b8);((_0x3cd617=this[_0x447bc2(0x30b)])==null?void 0x0:_0x3cd617[_0x447bc2(0x319)])===_0x2265ab[_0x447bc2(0x319)]&&((_0x1edd62=this[_0x447bc2(0x30b)])==null?void 0x0:_0x1edd62[_0x447bc2(0x161)])===_0x2265ab[_0x447bc2(0x161)]||this['_cursors']['forEach'](_0x13ff35=>{const _0x1bf1a3=_0x447bc2;_0x13ff35[_0x1bf1a3(0x19f)](_0x2265ab);});},0x64));});}[_0x31be5e(0x261)](_0x43f909,_0x4ff645){const _0x5c32d9=_0x31be5e;var _0x455f05;const _0x2cfcc8=(_0x455f05=this[_0x5c32d9(0x2d2)][_0x5c32d9(0x178)]())==null?void 0x0:_0x455f05[_0x5c32d9(0x1be)];if(!_0x2cfcc8)return;const _0x3386ef=this['_getSheetObject']();if(!_0x3386ef)return;this['_cursors'][_0x5c32d9(0x379)](_0x1668d1=>{const _0x17c2d9=_0x5c32d9;_0x1668d1[_0x17c2d9(0x1d0)]();});const {scene:_0x190668}=_0x3386ef,_0x2d681e=Et(Array[_0x5c32d9(0x202)](_0x4ff645[_0x5c32d9(0x291)]()))[_0x5c32d9(0x2f1)](_0x1a8b97=>{const _0x593860=_0x5c32d9,{color:_0x1435ac,range:_0x4851f7,name:_0x32d5eb,selection:_0x4d9f96,sheetID:_0xd3e39d}=_0x1a8b97,{startColumn:_0x36f237,startRow:_0x42ebd3,endColumn:_0x16bc36,endRow:_0x1b403a}=_0x4851f7,_0x54d364=X['getCoordByCell'](_0x42ebd3,_0x36f237,_0x190668,_0x2cfcc8),_0x29513e=X[_0x593860(0x36b)](_0x1b403a,_0x16bc36,_0x190668,_0x2cfcc8),{columnHeaderHeightAndMarginTop:_0x54f916}=_0x2cfcc8,{startX:_0x27152e,startY:_0x879565}=_0x54d364,{endX:_0x6dc0ec,endY:_0x547724}=_0x29513e,_0x513854=_0x6dc0ec-_0x27152e,_0x1a531f=_0x547724-_0x879565,_0x158950={'labelPosition':_0x879565-_0x54f916>=K?_0x593860(0x24b):_0x593860(0x2b0),'sheetID':_0xd3e39d,'range':_0x4851f7,'color':_0x1435ac,'name':_0x32d5eb,'selection':_0x4d9f96,'left':_0x27152e,'top':_0x879565,'width':_0x513854,'height':_0x1a531f,'evented':!0x1,'zIndex':bt};return new Pe(_0x32d5eb,_0x158950);});_0x190668[_0x5c32d9(0x2c5)](_0x2d681e,gt),this['_cursors']=new Set(_0x2d681e);}[_0x31be5e(0x16c)](){const _0x187696=_0x31be5e;var _0x341743;(_0x341743=this[_0x187696(0x33b)])==null||_0x341743[_0x187696(0x379)](_0x5dfbec=>_0x5dfbec[_0x187696(0x110)]());}['_getSheetObject'](){const _0x1fe472=_0x31be5e;return X[_0x1fe472(0x2a4)](this['_context'][_0x1fe472(0x16f)],this[_0x1fe472(0x215)]);}};ve=pt([ae(0x1,a[_0x31be5e(0x353)](X[_0x31be5e(0x2c6)])),ae(0x2,a[_0x31be5e(0x353)](x)),ae(0x3,a[_0x31be5e(0x353)](a[_0x31be5e(0x133)]))],ve);function Et(_0x1f4573){const _0x569cfa=_0x31be5e,_0x1800d0=new Map();return _0x1f4573['forEach'](_0xc2051f=>{const _0x3d1605=_0x43d8;if(_0x1800d0[_0x3d1605(0x31e)](_0xc2051f[_0x3d1605(0x1a7)])){const _0x40914b=_0x1800d0[_0x3d1605(0x16a)](_0xc2051f['selection']);_0x40914b['name']+=',\x20'+_0xc2051f['name'];}else _0x1800d0[_0x3d1605(0x288)](_0xc2051f['selection'],_0xc2051f);}),Array[_0x569cfa(0x202)](_0x1800d0[_0x569cfa(0x291)]());}var E=function(){const _0x328875=_0x31be5e;return E=Object[_0x328875(0x2b9)]||function(_0x3152b1){const _0x1197c0=_0x328875;for(var _0x50902c,_0x2cc2b5=0x1,_0xd81ee3=arguments[_0x1197c0(0x247)];_0x2cc2b5<_0xd81ee3;_0x2cc2b5++){_0x50902c=arguments[_0x2cc2b5];for(var _0x124905 in _0x50902c)Object[_0x1197c0(0x2e1)][_0x1197c0(0x1ce)]['call'](_0x50902c,_0x124905)&&(_0x3152b1[_0x124905]=_0x50902c[_0x124905]);}return _0x3152b1;},E[_0x328875(0x21f)](this,arguments);},Tt=function(_0x17de7f,_0x3ded9c){const _0x5d1bdb=_0x31be5e;var _0x50b082={};for(var _0x47f959 in _0x17de7f)Object['prototype'][_0x5d1bdb(0x1ce)][_0x5d1bdb(0x24a)](_0x17de7f,_0x47f959)&&_0x3ded9c[_0x5d1bdb(0x2b7)](_0x47f959)<0x0&&(_0x50b082[_0x47f959]=_0x17de7f[_0x47f959]);if(_0x17de7f!=null&&typeof Object[_0x5d1bdb(0x20f)]=='function'){for(var _0x41a9b4=0x0,_0x47f959=Object[_0x5d1bdb(0x20f)](_0x17de7f);_0x41a9b4<_0x47f959['length'];_0x41a9b4++)_0x3ded9c[_0x5d1bdb(0x2b7)](_0x47f959[_0x41a9b4])<0x0&&Object[_0x5d1bdb(0x2e1)][_0x5d1bdb(0x334)]['call'](_0x17de7f,_0x47f959[_0x41a9b4])&&(_0x50b082[_0x47f959[_0x41a9b4]]=_0x17de7f[_0x47f959[_0x41a9b4]]);}return _0x50b082;},pe=M[_0x31be5e(0x2c9)](function(_0x482671,_0x418915){const _0x12c87f=_0x31be5e;var _0x4e5623=_0x482671['icon'],_0x447453=_0x482671['id'],_0x3a7f81=_0x482671[_0x12c87f(0x2b8)],_0x44ef17=_0x482671['extend'],_0x5cf955=Tt(_0x482671,[_0x12c87f(0x187),'id',_0x12c87f(0x2b8),_0x12c87f(0x28f)]),_0x3e87a7=_0x12c87f(0x225)[_0x12c87f(0x220)](_0x447453,'\x20')[_0x12c87f(0x220)](_0x3a7f81||'')[_0x12c87f(0x10a)](),_0xb7333a=M['useRef']('_'[_0x12c87f(0x220)](Dt()));return Ae(_0x4e5623,''[_0x12c87f(0x220)](_0x447453),{'defIds':_0x4e5623[_0x12c87f(0x335)],'idSuffix':_0xb7333a[_0x12c87f(0x2b1)]},E({'ref':_0x418915,'className':_0x3e87a7},_0x5cf955),_0x44ef17);});function Ae(_0x57e2ab,_0x385067,_0x3a106f,_0xf0e226,_0x384841){const _0x38b7ff=_0x31be5e;return M[_0x38b7ff(0x131)](_0x57e2ab[_0x38b7ff(0x1f2)],E(E({'key':_0x385067},Ot(_0x57e2ab,_0x3a106f,_0x384841)),_0xf0e226),(Rt(_0x57e2ab,_0x3a106f)['children']||[])[_0x38b7ff(0x2f1)](function(_0x487a45,_0x54eb8b){const _0x82ec60=_0x38b7ff;return Ae(_0x487a45,''['concat'](_0x385067,'-')['concat'](_0x57e2ab['tag'],'-')[_0x82ec60(0x220)](_0x54eb8b),_0x3a106f,void 0x0,_0x384841);}));}function Ot(_0x164404,_0x7252a6,_0x38964b){const _0x262718=_0x31be5e;var _0x3f843f=E({},_0x164404[_0x262718(0x1d9)]);_0x38964b!=null&&_0x38964b[_0x262718(0x227)]&&_0x3f843f[_0x262718(0x2c1)]===_0x262718(0x227)&&(_0x3f843f[_0x262718(0x2c1)]=_0x38964b[_0x262718(0x227)]),_0x164404['tag']===_0x262718(0x1a4)&&_0x3f843f['id']&&(_0x3f843f['id']=_0x3f843f['id']+_0x7252a6[_0x262718(0x2f7)]),Object[_0x262718(0x222)](_0x3f843f)[_0x262718(0x379)](function(_0x2c9383){const _0x5703fd=_0x262718;var _0x2e286c=_0x2c9383[0x0],_0x9631cc=_0x2c9383[0x1];_0x2e286c===_0x5703fd(0x1a4)&&typeof _0x9631cc==_0x5703fd(0x1ed)&&(_0x3f843f[_0x2e286c]=_0x9631cc[_0x5703fd(0x2a2)](/url\(#(.*)\)/,_0x5703fd(0x1e2)[_0x5703fd(0x220)](_0x7252a6[_0x5703fd(0x2f7)],')')));});var _0xf71eee=_0x7252a6['defIds'];return!_0xf71eee||_0xf71eee['length']===0x0||(_0x164404[_0x262718(0x1f2)]===_0x262718(0x228)&&_0x3f843f[_0x262718(0x301)]&&(_0x3f843f[_0x262718(0x301)]=_0x3f843f['xlink:href']+_0x7252a6['idSuffix']),Object[_0x262718(0x222)](_0x3f843f)[_0x262718(0x379)](function(_0x1caff0){const _0x20f238=_0x262718;var _0x402ad9=_0x1caff0[0x0],_0xae53ba=_0x1caff0[0x1];typeof _0xae53ba==_0x20f238(0x1ed)&&(_0x3f843f[_0x402ad9]=_0xae53ba['replace'](/url\(#(.*)\)/,_0x20f238(0x1e2)['concat'](_0x7252a6[_0x20f238(0x2f7)],')')));})),_0x3f843f;}function Rt(_0x5aae23,_0x47c96d){const _0x4494df=_0x31be5e;var _0x59369f,_0x3f2b28=_0x47c96d[_0x4494df(0x335)];return!_0x3f2b28||_0x3f2b28[_0x4494df(0x247)]===0x0?_0x5aae23:_0x5aae23[_0x4494df(0x1f2)]===_0x4494df(0x19c)&&(!((_0x59369f=_0x5aae23[_0x4494df(0x23c)])===null||_0x59369f===void 0x0)&&_0x59369f[_0x4494df(0x247)])?E(E({},_0x5aae23),{'children':_0x5aae23[_0x4494df(0x23c)][_0x4494df(0x2f1)](function(_0x3b4955){const _0x30f31e=_0x4494df;return typeof _0x3b4955[_0x30f31e(0x1d9)]['id']==_0x30f31e(0x1ed)&&_0x3f2b28&&_0x3f2b28[_0x30f31e(0x13b)](_0x3b4955[_0x30f31e(0x1d9)]['id'])?E(E({},_0x3b4955),{'attrs':E(E({},_0x3b4955[_0x30f31e(0x1d9)]),{'id':_0x3b4955['attrs']['id']+_0x47c96d['idSuffix']})}):_0x3b4955;})}):_0x5aae23;}function Dt(){const _0x1a5136=_0x31be5e;return Math[_0x1a5136(0x2e7)]()['toString'](0x24)['substring'](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':_0x31be5e(0x26f),'attrs':{'xmlns':_0x31be5e(0x2d9),'fill':_0x31be5e(0x139),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x31be5e(0x1a1)},'children':[{'tag':'g','attrs':{'clipPath':_0x31be5e(0x35f)},'children':[{'tag':_0x31be5e(0x2f2),'attrs':{'stroke':_0x31be5e(0x374),'d':_0x31be5e(0x35e),'strokeLinecap':_0x31be5e(0x33e),'strokeLinejoin':_0x31be5e(0x33e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x31be5e(0x13d),'attrs':{'id':_0x31be5e(0x257)},'children':[{'tag':'path','attrs':{'fill':_0x31be5e(0x232),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x31be5e(0x257)]},ye=M[_0x31be5e(0x2c9)](function(_0x1d1458,_0x381839){const _0x17d299=_0x31be5e;return M[_0x17d299(0x131)](pe,Object[_0x17d299(0x2b9)]({},_0x1d1458,{'id':_0x17d299(0x25d),'ref':_0x381839,'icon':Ut}));});function _0x43d8(_0x58c2,_0x330096){const _0x45328c=_0x4532();return _0x43d8=function(_0x43d87e,_0x177c83){_0x43d87e=_0x43d87e-0xf9;let _0x4429a2=_0x45328c[_0x43d87e];return _0x4429a2;},_0x43d8(_0x58c2,_0x330096);}ye[_0x31be5e(0x370)]=_0x31be5e(0x1c7);var Nt={'tag':_0x31be5e(0x26f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31be5e(0x139),'viewBox':_0x31be5e(0x17e),'width':'1em','height':_0x31be5e(0x1a1)},'children':[{'tag':'g','attrs':{'clipPath':_0x31be5e(0x1b9)},'children':[{'tag':_0x31be5e(0x2f2),'attrs':{'stroke':_0x31be5e(0x374),'d':_0x31be5e(0x33a),'strokeLinecap':_0x31be5e(0x33e),'strokeLinejoin':_0x31be5e(0x33e),'strokeWidth':1.2}}]},{'tag':_0x31be5e(0x19c),'attrs':{},'children':[{'tag':_0x31be5e(0x13d),'attrs':{'id':_0x31be5e(0x138)},'children':[{'tag':_0x31be5e(0x2f2),'attrs':{'fill':_0x31be5e(0x232),'d':_0x31be5e(0x2a8),'transform':_0x31be5e(0x2a9)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x31be5e(0x2c9)](function(_0x3166f5,_0x542cf2){const _0x1b6626=_0x31be5e;return M[_0x1b6626(0x131)](pe,Object[_0x1b6626(0x2b9)]({},_0x3166f5,{'id':_0x1b6626(0x1c5),'ref':_0x542cf2,'icon':Nt}));});$e[_0x31be5e(0x370)]='OnLineIcon';function Mt(_0xeef8c8){const _0x133d27=_0x31be5e;switch(_0xeef8c8){case u['CollaborationStatus'][_0x133d27(0x199)]:return _0x133d27(0x271);case u[_0x133d27(0x300)][_0x133d27(0x11b)]:return _0x133d27(0x285);case u[_0x133d27(0x300)][_0x133d27(0x2b2)]:return _0x133d27(0x115);case u[_0x133d27(0x300)][_0x133d27(0x144)]:return _0x133d27(0x306);case u[_0x133d27(0x300)][_0x133d27(0x1ad)]:case u[_0x133d27(0x300)][_0x133d27(0x1dc)]:return _0x133d27(0x112);case u['CollaborationStatus'][_0x133d27(0x254)]:case u['CollaborationStatus'][_0x133d27(0x286)]:return _0x133d27(0x177);}}function xe(_0x481f92){const _0x1b306a=_0x31be5e,{status$:_0x2fb1d2}=_0x481f92,_0x2d9f99=T[_0x1b306a(0x127)](_0x2fb1d2,u[_0x1b306a(0x300)][_0x1b306a(0x144)]),_0x56dcef=T[_0x1b306a(0x367)](a[_0x1b306a(0x1b2)]),_0x42f8d7=T[_0x1b306a(0x367)](u['CollaborationSessionService']),_0x21f260=_0x2d9f99!==u[_0x1b306a(0x300)][_0x1b306a(0x199)],_0x52fb40=_0x56dcef['t'](Mt(_0x2d9f99)),_0x38564=_0x21f260?w[_0x1b306a(0x290)]($e,{}):w[_0x1b306a(0x290)](ye,{}),_0x1d0039=M[_0x1b306a(0x315)](()=>{const _0x16c12f=_0x1b306a;_0x21f260||_0x42f8d7[_0x16c12f(0x25b)]();},[_0x21f260,_0x42f8d7]);function _0x45fdde(){const _0x58e0d0=_0x1b306a;return w['jsxs']('div',{'className':_0x58e0d0(0x318),'onClick':_0x1d0039,'children':[w[_0x58e0d0(0x290)]('div',{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x21f260,'univer-text-red-500':!_0x21f260}),'children':_0x38564}),w[_0x58e0d0(0x290)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x52fb40})]});}return _0x21f260?_0x45fdde():w['jsx'](D['Tooltip'],{'title':_0x56dcef['t']('collab-client.tooltip.reconnect'),'children':_0x45fdde()});}var Lt=Object[_0x31be5e(0x241)],wt=(_0x10799f,_0x598dd4,_0x3151f2,_0x357577)=>{const _0x35a1ef=_0x31be5e;for(var _0x53ae5c=_0x357577>0x1?void 0x0:_0x357577?Lt(_0x598dd4,_0x3151f2):_0x598dd4,_0x3a4649=_0x10799f[_0x35a1ef(0x247)]-0x1,_0x4897a4;_0x3a4649>=0x0;_0x3a4649--)(_0x4897a4=_0x10799f[_0x3a4649])&&(_0x53ae5c=_0x4897a4(_0x53ae5c)||_0x53ae5c);return _0x53ae5c;},V=(_0x2475f9,_0x3f7c4e)=>(_0x5c75a4,_0x17d576)=>_0x3f7c4e(_0x5c75a4,_0x17d576,_0x2475f9);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x4d7920,_0x14f3a8,_0x46cac2,_0x3ce9c2){const _0x3b601c=_0x31be5e;super(),h(this,_0x3b601c(0x1f5),new d['BehaviorSubject'](u[_0x3b601c(0x300)][_0x3b601c(0x144)])),(this[_0x3b601c(0x2e6)]=_0x4d7920,this['_injector']=_0x14f3a8,this[_0x3b601c(0x119)]=_0x46cac2,this[_0x3b601c(0x36e)]=_0x3ce9c2,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x31be5e(0x250)](){const _0x3879ab=_0x31be5e;this[_0x3879ab(0x2bc)](this[_0x3879ab(0x2e6)][_0x3879ab(0x25c)][_0x3879ab(0x2c2)](d[_0x3879ab(0x1b6)](()=>{const _0x4f7517=_0x3879ab,_0x295db2=this[_0x4f7517(0x2e6)][_0x4f7517(0x2bf)]();return _0x295db2?this[_0x4f7517(0x119)]['getCollabEntity$'](_0x295db2[_0x4f7517(0x17b)]()):d['of'](null);}),d[_0x3879ab(0x1b6)](_0x5c61b7=>_0x5c61b7?_0x5c61b7[_0x3879ab(0x354)]:d['of'](u[_0x3879ab(0x300)]['NOT_COLLAB'])))['subscribe'](_0x3e214f=>{const _0x2dbd93=_0x3879ab;this['_status$'][_0x2dbd93(0x145)](_0x3e214f);}));}['_initStatusComponent'](){const _0x341f9d=_0x31be5e;this['disposeWithMe'](this[_0x341f9d(0x36e)][_0x341f9d(0xfe)](T[_0x341f9d(0x375)]['HEADER_MENU'],()=>T[_0x341f9d(0x1a0)](Pt({'status$':this[_0x341f9d(0x1f5)][_0x341f9d(0x2a0)]()}),this[_0x341f9d(0x171)])));}},exports[_0x31be5e(0x376)]=wt([V(0x0,a[_0x31be5e(0x2da)]),V(0x1,a['Inject'](a['Injector'])),V(0x2,a['Inject'](u[_0x31be5e(0x269)])),V(0x3,T[_0x31be5e(0x1b0)])],exports[_0x31be5e(0x376)]);function Pt(_0xbc064c){const {status$:_0x1d55a5}=_0xbc064c;return function(){const _0xc22b5c=_0x43d8;return w[_0xc22b5c(0x290)](xe,{'status$':_0x1d55a5});};}var At=Object[_0x31be5e(0x241)],yt=(_0x2e42f7,_0x37f08c,_0x58a48b,_0x244057)=>{const _0x515cff=_0x31be5e;for(var _0xef3244=_0x244057>0x1?void 0x0:_0x244057?At(_0x37f08c,_0x58a48b):_0x37f08c,_0x317d55=_0x2e42f7[_0x515cff(0x247)]-0x1,_0xd356fc;_0x317d55>=0x0;_0x317d55--)(_0xd356fc=_0x2e42f7[_0x317d55])&&(_0xef3244=_0xd356fc(_0xef3244)||_0xef3244);return _0xef3244;},y=(_0xaedf36,_0x27b936)=>(_0x59416b,_0x20bd4e)=>_0x27b936(_0x59416b,_0x20bd4e,_0xaedf36);let q=class extends a[_0x31be5e(0x128)]{constructor(_0xc3de70,_0x241e77,_0x537a57,_0x82b29f,_0x1c874f,_0x5be2c4){const _0x5d05a4=_0x31be5e;super(),this['_beforeCloseService']=_0xc3de70,this[_0x5d05a4(0x223)]=_0x241e77,this[_0x5d05a4(0x339)]=_0x537a57,this['_messageService']=_0x82b29f,this['_notificationService']=_0x1c874f,this['_localeService']=_0x5be2c4,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x31be5e(0x122)](){const _0xa9b811=_0x31be5e;this[_0xa9b811(0x2bc)](this[_0xa9b811(0x168)][_0xa9b811(0x157)](()=>{const _0x1b426c=_0xa9b811;if(this[_0x1b426c(0x223)][_0x1b426c(0x346)][_0x1b426c(0x1c3)])return this[_0x1b426c(0x1e0)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x31be5e(0x142)](){const _0x45234b=_0x31be5e;this[_0x45234b(0x2bc)](this[_0x45234b(0x339)]['event$'][_0x45234b(0x347)](_0x6e908b=>{const _0x4f9aa7=_0x45234b;_0x6e908b['id']===u[_0x4f9aa7(0x1f7)][_0x4f9aa7(0x1f1)]&&this['_messageService'][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x298)],'content':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x1bb))}),_0x6e908b['id']===u[_0x4f9aa7(0x1f7)][_0x4f9aa7(0x198)]&&this[_0x4f9aa7(0x1c1)][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x298)],'content':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x1ff))}),_0x6e908b['id']===u['CollaborationUIEventId'][_0x4f9aa7(0x1d3)]&&this[_0x4f9aa7(0x33f)][_0x4f9aa7(0x1f6)]({'title':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x2ad)),'content':this[_0x4f9aa7(0x1e0)]['t']('permission.content'),'type':_0x4f9aa7(0x302),'duration':0x0}),_0x6e908b['id']===u[_0x4f9aa7(0x1f7)][_0x4f9aa7(0x11b)]&&this[_0x4f9aa7(0x1c1)][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x289)],'content':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x1ff))+'('+_0x6e908b[_0x4f9aa7(0x24e)]+')'}),_0x6e908b['id']===u['CollaborationUIEventId'][_0x4f9aa7(0x234)]&&this[_0x4f9aa7(0x1c1)][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x298)],'content':this['_localeService']['t'](_0x6e908b[_0x4f9aa7(0x24e)]||'')}),_0x6e908b['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x4f9aa7(0x1c1)]['show']({'type':D[_0x4f9aa7(0x164)]['Warning'],'content':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x263))}),_0x6e908b['id']===u[_0x4f9aa7(0x1f7)][_0x4f9aa7(0x30a)]&&this['_messageService'][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x289)],'content':this['_localeService']['t']('session.connection-failed')}),_0x6e908b['id']===u['CollaborationUIEventId'][_0x4f9aa7(0x111)]&&this[_0x4f9aa7(0x1c1)][_0x4f9aa7(0x1f6)]({'type':D['MessageType'][_0x4f9aa7(0x289)],'content':this[_0x4f9aa7(0x1e0)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0x31be5e(0x1bd)]),y(0x1,u[_0x31be5e(0x186)]),y(0x2,a[_0x31be5e(0x353)](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T[_0x31be5e(0x103)]),y(0x5,a[_0x31be5e(0x353)](a[_0x31be5e(0x1b2)]))],q);const $t=_0x31be5e(0x27e),Ue={},be=a[_0x31be5e(0x31d)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x2ea8a5,_0x119974,_0x277ddd,_0x22c007)=>{for(var _0x493421=_0x22c007>0x1?void 0x0:_0x22c007?xt(_0x119974,_0x277ddd):_0x119974,_0x2f40c7=_0x2ea8a5['length']-0x1,_0xe8cad4;_0x2f40c7>=0x0;_0x2f40c7--)(_0xe8cad4=_0x2ea8a5[_0x2f40c7])&&(_0x493421=_0xe8cad4(_0x493421)||_0x493421);return _0x493421;},H=(_0x4d1cf6,_0xa13d26)=>(_0x3804c4,_0x52504f)=>_0xa13d26(_0x3804c4,_0x52504f,_0x4d1cf6);function _0x4532(){const _0x3611a5=['Error','[CollaborationDataLoaderController]','history','_transformHistoryAndStateStack','@univerjs/ui','_localStorageService','extend','jsx','values','RECT','rgba(255,\x20255,\x20255,\x200.01)','Tools','setShapeProps','UniverCollaborationClientUIPlugin','544780Udqttk','Warning','post','APPLY_PERMISSION_DENIED','handleMoveRange','_handleJoinEvent','YUUMI_NO_CUBOID_FOR_QUESTION','NodePositionConvertToCursor','max','asObservable','getParam','replace','DocStateChangeManagerService','getSheetObject','entityInit$','DocIMEInputManagerService','requireSession','M0\x200H16V16H0z','translate(.97)','lineTo','body','3wcqJxz','permission.title','@univerjs/design','source','bottom','current','FETCH_MISS','IDocClipboardService','/run/','handleIRemoveRow','YUUMI_URL_COL_OUT_OF_RANGE','indexOf','className','assign','_cursorShapes','evenodd','disposeWithMe','UNIVER_SHEET','findNodePositionByCharIndex','getFocusedUnit','UnitStatus','fill','pipe','APPLY_REVISION_CONFILICT','_scheduleSaving','addObjects','SheetSkeletonManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','CONNECTOR_DATA_TOO_LARGE','forwardRef','_initEntityListener','ColorKit','min','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','defineProperty','split','_toggleOffline','result','_sheetSkeletonManagerService','_anchor','LICENSE_MAX_UNITS_EXCEEDED','_docTransformIMECacheService','_updateURLWithCurrentState','_transformUndoRedoStack','ranges','http://www.w3.org/2000/svg','IUniverInstanceService','rxjs/operators','@univerjs/sheets-ui','subUnitId','invokeId','UPDATE_CURSOR','getCollabCursors$','prototype','_docTransformStateCacheService','filter','getTypeOfUnitAdded$','getCurrentUnitForType','_univerInstanceService','random','font','saveOfflineData','Plugin','_saveCache','disposeUnit','save','setItem','m1Prime','InsertRangeMoveRightCommandId','map','path','handleDeleteRangeMoveLeft','_registerDependencies','USER_NOT_INVITED_CODE','params','idSuffix','getLocalCacheKey','getAncestorScale','_send','#FFF','COMPLETION_FINISHED','_render','href','TEXT','CollaborationStatus','xlink:href','error','react/jsx-runtime','setTimeout','_startDocCollabCursor','collabStatus.notCollab','_drawTextRange','engine','UNIVER_DOC','SOCKET_FAILED','_lastPointer','transformMutation','_initCommandExecutedListener','CHANGESET_REVISION_CONFILICT','override','_toggleOnline','INVITE_CODE_HAS_BEEN_UES','yellow.400','handleInsertRow','_collabSessionService','useCallback','PY_RUNTIME_SCRIPT_ERROR','TEXT_RANGE_LAYER_INDEX','univer-flex\x20univer-items-center','column','registerDependencies','_initResize','LICENSE_DISTRO_REJECTED','createIdentifier','has','init','_urlService','ILocalStorageService','IConfigService','docStateChange$','_cursor','runId','DeleteRangeMoveUpCommandId','_registerRenderDependencies','_docSyncEditingCollabCursorService','_online','_selfUnitIDs','_renderManagerService','TOO_MANY_REQUESTS','onRendered','_name','IImageIoService','_ensureSubject','handleInsertRangeMoveRight','isTransformMutationFailure','_range','propertyIsEnumerable','defIds','sheetId','WebSocketService','DataLoaderService','_collaborationUIEventService','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','_cursors','mutations','_document','round','_notificationService','createSocket','handleIRemoveCol','stringify','_collabCursorController','SessionStatus','INTERNAL_ERROR','saveTaskMap','subscribe','YUUMI_RATE_OVER_LIMIT','_docTransformSelectionsService','selections','_hovered','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_unitStatus','RemoteUniscriptService','complete','APPLY_NON_SEQUENTIAL_REVISION','handleInsertRangeMoveDown','fillRule','Inject','status$','UNRECOGNIZED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','takeUntil','getMember','actions','SHEET_VIEWPORT_KEY','_httpService','INVITE_CODE_REQUIRED','_refreshCollabCursors','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','url(#off-line-icon_clip0_910_343)','delete','_colorIndex','INVITE_CODE_ALREADY_BOUND','key','clearInterval','collabCursorState$','fromEvent','useDependency','height','_handleHeartbeatEvent','_handleEvent','getCoordByCell','wsSessionTicketUrl','purple.300','_uiPartsService','_getSessionTicket','displayName','labelPosition','unitId','roomMembers','currentColor','BuiltInUIPart','DesktopCollaborationStatusDisplayController','CollaborationDataLoaderController','location','forEach','range','UniverCollaborationClientPlugin','isEditing','@univerjs/docs-ui','_themeService','registerComponent','_doCreateSocket','_init','unload','CommandType','INotificationService','YUUMI_ASYNCIO_CANCELLED','VIEW_MAIN','MemberService','popstate','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','isTransformMutationsWithChangesetSuccess','trim','debug','_docStateChangeManagerService','RevisionService','USERS_LEAVE','fillText','dispose','SUBMIT_CHANGESET_TIMEOUT','collabStatus.syncing','cursorInfo$','_config','collabStatus.fetchMiss','getStateCache','_docSkeletonManagerService','IRemoteInstanceService','_collaborationController','OTHER_CLIENTS_EDITING','CONFLICT','setConfig','getValue','event$','IRenderManagerService','m2Prime','...','_setupBeforeClosingHandler','LOGIN_FAILED','Unknown\x20user','syncEditingCollabCursor','react','useObservable','Disposable','getColorFromTheme','redoState','onCommandExecuted','SheetCollabCursorShape','deepClone','generateRandomId','_entityInit$','ONLINE','createElement','getSheetBySheetId','ThemeService','arc','removeParam','replaceState','_disabled','on-line-icon_clip0_910_349','none','RemoveRowCommandId','includes','debounce','clipPath','MOBILE_HAS_BEEN_BOUND','dispose$','beginPath','transformRemoteChangeset','_initEvent','origin','NOT_COLLAB','next','searchParams','_memberService','_onCursorDelete','sessionTicket','_eventUnsubscribe','memberID','isArray','_docClipboardService','_drawAnchor','_scheduleHeartbeat','push','FromArray','_syncEditingCollabCursorService','_setupSubUnitSync','_anchorDot','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getUnitStatus$','registerBeforeClose','clearTimeout','cursorInfo','_logService','INVALID_INVITE_CODE','fillStyle','black','_hover','_shapes','_updateLocalCursor','row','getCellPositionByOffset','SetDocZoomRatioOperation','MessageType','newValue','DocSkeletonManagerService','InsertColCommandId','_beforeCloseService','collab-text-anchor-','get','setUndoRedoMutationParamsCache','_removeCollabCursors','_cachedData','_cursorInfo$','unit','WECHAT_HAS_BEEN_BOUND','_injector','YUUMI_ALL_TABLES_IS_INVALID','collab-text-range-','_saveTaskMap','SetWorksheetActivateCommand','closePath','collabStatus.synced','getCurrent','RemoveColCommandId','getRelativeToViewportCoord','getUnitId','_transformService','loadUnit','0\x200\x2017\x2016','green.600','transformIMECache','addClipboardHook','handleDeleteRangeMoveUp','_collabCursorState$','UNAUTHENTICATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ILocalCacheService','icon','Subject','Optional','toStringTag','_getMergeRange','_handleHover','[RemoteUniscriptService]:\x20no\x20focused\x20unit','215582EBtcsF','hovered','mapTo','CollaborationSocketService','689360fKVmuc','onPointerLeave$','BrowserCollaborationSocketService','EMAIL_HAS_BEEN_BOUND','DeleteRangeMoveLeftCommandId','eventID','CLOSE_ROOM','OFFLINE','SetSelectionsOperation','isActive','defs','YUUMI_AI_RUN_FAILED','_clearOtherTimers','onMouseMove','connectInjector','1em','COLORS','LOCAL_CACHE_INTERVAL','mask','getConfig','SNAPSHOT_HAS_BEEN_REMOVED','selection','_initDependencies','WebBrowserSingleActiveUnitService','@univerjs/core','YUUMI_UNABLE_LOAD_URL','_drawRectRange','AWAITING','assignAColorForMemberID','sessionStatus$','IUIPartsService','contains','LocaleService','_startSheetCollabCursor','SNAPSHOT_INVALID_SNAPSHOT','undoState','switchMap','onPointerMove$','ITransformService','url(#on-line-icon_clip0_910_349)','@univerjs/sheets','collaboration.single-unit.warning','getSheetId','IBeforeCloseService','skeleton','_color','getActiveRange','_messageService','_draw','size','ENSURE_SNAPSHOT_EXECUTION','on-line-icon','getOffsetConfig','OffLineIcon','_handleLeaveEvent','symbol','EffectRefRangId','WebURLService','add','_entities','hasOwnProperty','name','makeDirty','_createSocketURL','flatMap','PERMISSION_DENIED','getRenderById','199262oaYufV','InsertRangeMoveDownCommandId','_getScale','DOC_RANGE_TYPE','attrs','setAlpha','NodePositionConvertToRectRange','AWAITING_WITH_PENDING','executionId','debounceTime','ILogService','_localeService','_dataLoaderService','url(#$1','getUnhiddenWorksheets','deserializeRangeWithSheet','Vector2','_session','parse','width','transformStateCache','triggerDblclick','_imageIoService','transformMutationsWithChangeset','string','throttleTime','hide','getSkeleton','OTHER_CLIENT_EDITING','tag','collab-rect-range-','_hideTimer','_status$','show','CollaborationUIEventId','code','currentTheme$','_heartbeatTimer','_configService','getUndoRedoMutationParamsCache','CollaborationEvent','drawWith','collaboration.closeRoom','type','ALREADY_EXISTS','from','textRanges','_commandService','search','restore','roomMembers$','combineLatest','2296032PggiEs','pushState','with','toString','UniverInstanceType','ACTIVE_UNIT_EVENT_CHANNEL','getOwnPropertySymbols','_refRangeService','RegularPolygon','urlChange$','toRgbString','UNDEFINED','_context','executeCommand','moveTo','startsWith','DocSelectionManagerService','addObject','_backgroundColor','doc.mutation.rich-text-editing','Injector','ISnapshotServerService','apply','concat','BehaviorSubject','entries','_localCacheService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','univerjs-icon\x20univerjs-icon-','NO_OTHER_CLIENTS_EDITING','colorChannel1','use','serializeRangeWithSheet','setParam','CollaborationSessionService','saveImage','_revisionService','backgroundColor','getMergeData','editingUnit','getTypeOfUnitDisposed$','white','onLocalMutation','JOIN_ROOM_FAILED','startColumn','CollaborationStatusDisplay','_scene','measureText','_unitOnClients','INVALID_ARGUMENT','@univerjs/docs','children','ticket','unitID','handleInsertCol','then','getOwnPropertyDescriptor','onPointerEnter$','unshift','currentSkeleton$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','8765JfwLWe','length','addHandlerCallback','ISocketService','call','top','transformSelections','APPLY_REJECT','data','addEventListener','_initStatusListener','_instanceService','ICommandService','getColor','SYNCED','merge','onStarting','off-line-icon_clip0_910_343','unsubscribe','SetTextSelectionsOperation','_onRefRangeChange','reconnect','focused$','off-line-icon','transformByState','subscribeEvent','color','_updateCollabCursors','RxDisposable','session.will-retry','@univerjs/network','_assignedColors','exhaustSavingTask','_getAnchorBounding','registerRenderModule','CollaborationController','_labelPosition','_roomMembers$','DEFAULT_WS_SESSION_TICKET_URL','APPLY_DUPLICATED','loadOfflineData','svg','application/json','collabStatus.offline','getDocRanges','_removeClearOtherTimer','Module','676758uktkfl','rxjs','_scheduleClearOtherTimer','_textBubble','_colorAssignService','getRangePointData','text','enableLocalCache','NOT_FOUND','collaboration-client-ui.config','HTTPService','@univerjs/engine-render','all','_onCursorUpdate','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','collabStatus.conflict','PENDING','_transformPreviousActiveRange','set'];_0x4532=function(){return _0x3611a5;};return _0x4532();}exports[_0x31be5e(0x377)]=class extends a[_0x31be5e(0x262)]{constructor(_0x2e9cfe,_0x49b265,_0x9a9dca,_0x2e81ef,_0x2b9bc9){const _0x3575b3=_0x31be5e;super(),this[_0x3575b3(0x320)]=_0x2e9cfe,this['_logService']=_0x49b265,this[_0x3575b3(0x204)]=_0x9a9dca,this[_0x3575b3(0x1e1)]=_0x2e81ef,_0x2b9bc9?_0x2b9bc9==null||_0x2b9bc9['whenReady']()[_0x3575b3(0x240)](()=>this[_0x3575b3(0x100)]()):(this[_0x3575b3(0x15a)][_0x3575b3(0x10b)]('[CollaborationDataLoaderController]',_0x3575b3(0x356)),this['_init']());}async[_0x31be5e(0x100)](){const _0x16127e=_0x31be5e,_0x5cea8e=this[_0x16127e(0x320)][_0x16127e(0x2a1)]('unit'),_0x4fcf72=this['_urlService'][_0x16127e(0x2a1)](_0x16127e(0x200)),_0x42cd9b=this[_0x16127e(0x320)][_0x16127e(0x2a1)]('subunit');if(!_0x5cea8e||!_0x4fcf72){this[_0x16127e(0x15a)]['debug'](_0x16127e(0x28a),_0x16127e(0x34c));return;}const _0x2adada=await this[_0x16127e(0x1e1)][_0x16127e(0x17d)](_0x5cea8e,Number(_0x4fcf72),_0x42cd9b);_0x2adada&&_0x2adada instanceof a['Workbook']&&this[_0x16127e(0x153)](_0x2adada);}async[_0x31be5e(0x153)](_0x5138b0){const _0x2d7ecd=_0x31be5e;await this['_updateSubUnitFromURLParams'](_0x5138b0),_0x5138b0['activeSheet$'][_0x2d7ecd(0x2c2)](d[_0x2d7ecd(0x357)](this[_0x2d7ecd(0x13f)]))['subscribe'](_0x4e2c00=>{const _0x513957=_0x2d7ecd;_0x4e2c00&&this[_0x513957(0x2d6)](_0x4e2c00);}),this['_urlService']['urlChange$']['pipe'](d[_0x2d7ecd(0x357)](this[_0x2d7ecd(0x13f)]))[_0x2d7ecd(0x347)](()=>this['_updateSubUnitFromURLParams'](_0x5138b0));}[_0x31be5e(0x2d6)](_0x372e43,_0x22bcff=!0x1){const _0x36cd0a=_0x31be5e,_0x3325da=this[_0x36cd0a(0x320)][_0x36cd0a(0x2a1)]('subunit');_0x372e43[_0x36cd0a(0x1bc)]()!==_0x3325da&&this[_0x36cd0a(0x320)][_0x36cd0a(0x22a)]('subunit',_0x372e43[_0x36cd0a(0x1bc)](),_0x22bcff);}async['_updateSubUnitFromURLParams'](_0x415d5c){const _0x324daa=_0x31be5e;var _0x349da1;const _0xf74d9=this[_0x324daa(0x320)][_0x324daa(0x2a1)]('subunit');if(!_0xf74d9||!_0x415d5c[_0x324daa(0x132)](_0xf74d9)){const _0x713934=_0x415d5c[_0x324daa(0x1e3)]()[0x0],_0x1b214f=_0x415d5c['getSheetBySheetId'](_0x713934);if(!_0x1b214f)return;this[_0x324daa(0x2d6)](_0x1b214f,!0x0),await this[_0x324daa(0x204)][_0x324daa(0x216)](g[_0x324daa(0x175)]['id'],{'unitId':_0x415d5c[_0x324daa(0x17b)](),'subUnitId':_0x713934});return;}((_0x349da1=_0x415d5c['getActiveSheet']())==null?void 0x0:_0x349da1[_0x324daa(0x1bc)]())!==_0xf74d9&&await this[_0x324daa(0x204)][_0x324daa(0x216)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x415d5c[_0x324daa(0x17b)](),'subUnitId':_0xf74d9});}},exports[_0x31be5e(0x377)]=jt([H(0x0,be),H(0x1,a[_0x31be5e(0x1df)]),H(0x2,a[_0x31be5e(0x252)]),H(0x3,a['Inject'](u[_0x31be5e(0x338)])),H(0x4,a[_0x31be5e(0x189)](Ke[_0x31be5e(0x118)]))],exports[_0x31be5e(0x377)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x14d000,_0x19a119,_0x216742,_0x29e3e3)=>{for(var _0x5bbb64=_0x29e3e3>0x1?void 0x0:_0x29e3e3?Bt(_0x19a119,_0x216742):_0x19a119,_0x13008b=_0x14d000['length']-0x1,_0x428c79;_0x13008b>=0x0;_0x13008b--)(_0x428c79=_0x14d000[_0x13008b])&&(_0x5bbb64=_0x428c79(_0x5bbb64)||_0x5bbb64);return _0x5bbb64;},ce=(_0x3d4402,_0x3658c7)=>(_0x43f2c7,_0x5a6d10)=>_0x3658c7(_0x43f2c7,_0x5a6d10,_0x3d4402);let z=class{constructor(_0x50e7bb,_0x586a20,_0x15677b){const _0x5a5dc5=_0x31be5e;this[_0x5a5dc5(0x171)]=_0x50e7bb,this['_transformService']=_0x586a20,this[_0x5a5dc5(0x32b)]=_0x15677b;}['transformIMECache'](_0x578b15){const _0x1850f4=_0x31be5e;this[_0x1850f4(0x2d7)](_0x578b15),this[_0x1850f4(0x287)](_0x578b15);}[_0x31be5e(0x141)](_0x541448){const _0x146b7b=_0x31be5e,{unitID:_0xe1c804}=_0x541448,_0x1abc88=this[_0x146b7b(0x32b)][_0x146b7b(0x1d4)](_0xe1c804)[_0x146b7b(0x20b)](b['DocIMEInputManagerService']),{redoCache:_0x2c92d8}=_0x1abc88[_0x146b7b(0x1fc)]();if(_0x2c92d8['length']===0x0)return _0x541448;let _0x2747d3=a['Tools'][_0x146b7b(0x12d)](_0x541448[_0x146b7b(0x33c)][0x0]);for(let _0x532369=0x0;_0x532369<_0x2c92d8[_0x146b7b(0x247)];_0x532369++){const _0x4af59c={'id':_0x146b7b(0x21c),'params':{..._0x2c92d8[_0x532369]}},_0x369009=this[_0x146b7b(0x17c)][_0x146b7b(0x30c)](_0x2747d3,_0x4af59c,!0x1);if(m['isTransformMutationFailure'](_0x369009))throw _0x369009[_0x146b7b(0x302)];_0x2747d3=_0x369009[_0x146b7b(0x2ef)];}return{...a[_0x146b7b(0x294)][_0x146b7b(0x12d)](_0x541448),'mutations':[_0x2747d3]};}[_0x31be5e(0x2d7)](_0x5ebe49){const _0xb0c676=_0x31be5e,{unitID:_0x49dea7}=_0x5ebe49,_0x1c0d90=this[_0xb0c676(0x32b)][_0xb0c676(0x1d4)](_0x49dea7)[_0xb0c676(0x20b)](b[_0xb0c676(0x2a6)]),{undoCache:_0x51d9f8,redoCache:_0x1b4cfb}=_0x1c0d90[_0xb0c676(0x1fc)]();if(_0x51d9f8[_0xb0c676(0x247)]===0x0||_0x1b4cfb['length']===0x0)return;const _0x4e34d1=[],_0x4c44e3=[];let _0x27a36f=a[_0xb0c676(0x294)]['deepClone'](_0x5ebe49[_0xb0c676(0x33c)][0x0]),_0x5a3f8a=a[_0xb0c676(0x294)][_0xb0c676(0x12d)](_0x5ebe49[_0xb0c676(0x33c)][0x0]);for(let _0x1af71a=_0x51d9f8['length']-0x1;_0x1af71a>=0x0;_0x1af71a--){const _0x254a15={'id':_0xb0c676(0x21c),'params':{..._0x51d9f8[_0x1af71a]}},_0x599d44={'id':_0xb0c676(0x21c),'params':{..._0x1b4cfb[_0x1af71a]}},_0x19264b=this[_0xb0c676(0x17c)]['transformMutation'](_0x27a36f,_0x254a15,!0x1),_0x403fb3=this['_transformService']['transformMutation'](_0x5a3f8a,_0x599d44,!0x1);if(m[_0xb0c676(0x332)](_0x19264b))throw _0x19264b[_0xb0c676(0x302)];if(m[_0xb0c676(0x332)](_0x403fb3))throw _0x403fb3['error'];_0x4e34d1[_0xb0c676(0x243)](_0x19264b[_0xb0c676(0x120)][_0xb0c676(0x2f6)]),_0x4c44e3[_0xb0c676(0x243)](_0x403fb3[_0xb0c676(0x120)]['params']),_0x27a36f=_0x19264b['m1Prime'],_0x5a3f8a=_0x403fb3[_0xb0c676(0x2ef)];}_0x1c0d90[_0xb0c676(0x16b)]({'undoCache':_0x4e34d1,'redoCache':_0x4c44e3});}[_0x31be5e(0x287)](_0x5dc25c){const _0x22ba11=_0x31be5e,{unitID:_0x4b120f}=_0x5dc25c,_0x182961=this[_0x22ba11(0x32b)][_0x22ba11(0x1d4)](_0x4b120f)['with'](b[_0x22ba11(0x2a6)]),_0x3459e1=_0x182961[_0x22ba11(0x1c0)]();if(_0x3459e1==null)return;const _0x445d9a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5dc25c[_0x22ba11(0x23e)],'actions':null,'textRanges':[_0x3459e1]}}],_0x562c7d=this[_0x22ba11(0x17c)][_0x22ba11(0x1ec)](_0x5dc25c,_0x445d9a);if(!m[_0x22ba11(0x109)](_0x562c7d))throw _0x562c7d['error'];const _0x26a724=_0x562c7d[_0x22ba11(0x120)][0x0]['params'][_0x22ba11(0x203)];Array[_0x22ba11(0x14c)](_0x26a724)&&_0x26a724[_0x22ba11(0x247)]&&_0x182961['setActiveRange'](_0x26a724[0x0]);}};z=kt([ce(0x0,a[_0x31be5e(0x353)](a['Injector'])),ce(0x1,m[_0x31be5e(0x1b8)]),ce(0x2,p[_0x31be5e(0x11f)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x3aca37,_0x590b62,_0x35603c,_0x1e19e5)=>{const _0x3f90a1=_0x31be5e;for(var _0x43b2c6=_0x1e19e5>0x1?void 0x0:_0x1e19e5?Ht(_0x590b62,_0x35603c):_0x590b62,_0x1e8ec2=_0x3aca37[_0x3f90a1(0x247)]-0x1,_0xa8c093;_0x1e8ec2>=0x0;_0x1e8ec2--)(_0xa8c093=_0x3aca37[_0x1e8ec2])&&(_0x43b2c6=_0xa8c093(_0x43b2c6)||_0x43b2c6);return _0x43b2c6;},le=(_0x401b61,_0x2e37a8)=>(_0x1ef0de,_0xffe5c0)=>_0x2e37a8(_0x1ef0de,_0xffe5c0,_0x401b61);let J=class{constructor(_0x54232a,_0x5504ad,_0x15b5d6){const _0x25d823=_0x31be5e;this[_0x25d823(0x171)]=_0x54232a,this[_0x25d823(0x17c)]=_0x5504ad,this['_docStateChangeManagerService']=_0x15b5d6;}[_0x31be5e(0x1e9)](_0x15166d){this['_transformHistoryAndStateStack'](_0x15166d);}[_0x31be5e(0x141)](_0x28ffd6){const _0x6b65cd=_0x31be5e,{unitID:_0x263e2d}=_0x28ffd6,{collaboration:_0x3e698c}=this[_0x6b65cd(0x10c)][_0x6b65cd(0x116)](_0x263e2d);if(_0x3e698c[_0x6b65cd(0x247)]===0x0)return _0x28ffd6;let _0x43755b=a[_0x6b65cd(0x294)][_0x6b65cd(0x12d)](_0x28ffd6[_0x6b65cd(0x33c)][0x0]);for(let _0x420d7d=0x0;_0x420d7d<_0x3e698c[_0x6b65cd(0x247)];_0x420d7d++){const _0x2c8c24={'id':_0x6b65cd(0x21c),'params':{'unitId':_0x3e698c[_0x420d7d][_0x6b65cd(0x372)],..._0x3e698c[_0x420d7d][_0x6b65cd(0x12a)]}},_0x39b322=this[_0x6b65cd(0x17c)][_0x6b65cd(0x30c)](_0x43755b,_0x2c8c24,!0x1);if(m['isTransformMutationFailure'](_0x39b322))throw _0x39b322['error'];_0x43755b=_0x39b322[_0x6b65cd(0x2ef)];}return{...a[_0x6b65cd(0x294)]['deepClone'](_0x28ffd6),'mutations':[_0x43755b]};}[_0x31be5e(0x28c)](_0x36805e){const _0x23d215=_0x31be5e,{unitID:_0x24534b}=_0x36805e,{history:_0x10c7fe,collaboration:_0x24aafe}=this[_0x23d215(0x10c)][_0x23d215(0x116)](_0x24534b);if(_0x10c7fe['length']===0x0&&_0x24aafe['length']===0x0)return;const _0x592025=[],_0x140281=[];let _0x4c4412=a[_0x23d215(0x294)][_0x23d215(0x12d)](_0x36805e['mutations'][0x0]),_0x7a0f3a=a['Tools'][_0x23d215(0x12d)](_0x36805e[_0x23d215(0x33c)][0x0]);for(let _0x582f3f=_0x10c7fe[_0x23d215(0x247)]-0x1;_0x582f3f>=0x0;_0x582f3f--){const _0x6109fb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x10c7fe[_0x582f3f][_0x23d215(0x372)],..._0x10c7fe[_0x582f3f][_0x23d215(0x1b5)]}},_0x275014={'id':_0x23d215(0x21c),'params':{'unitId':_0x10c7fe[_0x582f3f][_0x23d215(0x372)],..._0x10c7fe[_0x582f3f][_0x23d215(0x12a)]}},_0x34cb1b=this[_0x23d215(0x17c)][_0x23d215(0x30c)](_0x4c4412,_0x6109fb,!0x1),_0x5338ee=this['_transformService']['transformMutation'](_0x7a0f3a,_0x275014,!0x1);if(m[_0x23d215(0x332)](_0x34cb1b))throw _0x34cb1b[_0x23d215(0x302)];if(m[_0x23d215(0x332)](_0x5338ee))throw _0x5338ee[_0x23d215(0x302)];_0x592025[_0x23d215(0x243)]({..._0x10c7fe[_0x582f3f],'undoState':_0x34cb1b[_0x23d215(0x120)]['params'],'redoState':_0x5338ee[_0x23d215(0x120)][_0x23d215(0x2f6)]}),_0x4c4412=_0x34cb1b[_0x23d215(0x2ef)],_0x7a0f3a=_0x5338ee['m1Prime'];}_0x4c4412=a[_0x23d215(0x294)][_0x23d215(0x12d)](_0x36805e[_0x23d215(0x33c)][0x0]),_0x7a0f3a=a[_0x23d215(0x294)][_0x23d215(0x12d)](_0x36805e[_0x23d215(0x33c)][0x0]);for(let _0x5dc495=_0x24aafe[_0x23d215(0x247)]-0x1;_0x5dc495>=0x0;_0x5dc495--){const _0x48a14f={'id':_0x23d215(0x21c),'params':{'unitId':_0x24aafe[_0x5dc495][_0x23d215(0x372)],..._0x24aafe[_0x5dc495]['undoState']}},_0x221508={'id':_0x23d215(0x21c),'params':{'unitId':_0x24aafe[_0x5dc495][_0x23d215(0x372)],..._0x24aafe[_0x5dc495][_0x23d215(0x12a)]}},_0x3efbd4=this['_transformService'][_0x23d215(0x30c)](_0x4c4412,_0x48a14f,!0x1),_0x40db72=this[_0x23d215(0x17c)]['transformMutation'](_0x7a0f3a,_0x221508,!0x1);if(m[_0x23d215(0x332)](_0x3efbd4))throw _0x3efbd4[_0x23d215(0x302)];if(m[_0x23d215(0x332)](_0x40db72))throw _0x40db72['error'];_0x140281[_0x23d215(0x243)]({..._0x24aafe[_0x5dc495],'undoState':_0x3efbd4[_0x23d215(0x120)][_0x23d215(0x2f6)],'redoState':_0x40db72[_0x23d215(0x120)]['params']}),_0x4c4412=_0x3efbd4[_0x23d215(0x2ef)],_0x7a0f3a=_0x40db72[_0x23d215(0x2ef)];}this[_0x23d215(0x10c)]['setStateCache'](_0x24534b,{'history':_0x592025,'collaboration':_0x140281});}};J=Ft([le(0x0,a[_0x31be5e(0x353)](a[_0x31be5e(0x21d)])),le(0x1,m['ITransformService']),le(0x2,a[_0x31be5e(0x353)](b['DocStateChangeManagerService']))],J);var Yt=Object[_0x31be5e(0x241)],Wt=(_0x584df9,_0x1b52cf,_0x203ad1,_0x4d9d4e)=>{const _0x3657f1=_0x31be5e;for(var _0x5e6d67=_0x4d9d4e>0x1?void 0x0:_0x4d9d4e?Yt(_0x1b52cf,_0x203ad1):_0x1b52cf,_0x43d31e=_0x584df9[_0x3657f1(0x247)]-0x1,_0x334039;_0x43d31e>=0x0;_0x43d31e--)(_0x334039=_0x584df9[_0x43d31e])&&(_0x5e6d67=_0x334039(_0x5e6d67)||_0x5e6d67);return _0x5e6d67;},Ne=(_0x5f0005,_0x30fe7e)=>(_0x1e5e0e,_0x46d00c)=>_0x30fe7e(_0x1e5e0e,_0x46d00c,_0x5f0005);let Z=class{constructor(_0x52e0a6,_0x1091ba){const _0x24463b=_0x31be5e;this['_injector']=_0x52e0a6,this[_0x24463b(0x17c)]=_0x1091ba;}[_0x31be5e(0x24c)](_0x340fa5){const _0x56c7c2=_0x31be5e;var _0x516145;const _0x33ac06=this[_0x56c7c2(0x171)]['get'](Y[_0x56c7c2(0x219)]),_0x352caa=(_0x516145=_0x33ac06[_0x56c7c2(0x272)]())!=null?_0x516145:[];if(_0x352caa[_0x56c7c2(0x247)]===0x0)return;const _0x5b7892=_0x340fa5[_0x56c7c2(0x23e)],_0x229adc=[{'id':_0x56c7c2(0x21c),'params':{'unitId':_0x5b7892,'actions':null,'textRanges':_0x352caa}}],_0x85cc2f=this[_0x56c7c2(0x17c)][_0x56c7c2(0x1ec)](_0x340fa5,_0x229adc);if(!m[_0x56c7c2(0x109)](_0x85cc2f))throw _0x85cc2f[_0x56c7c2(0x302)];const _0x39d506=_0x85cc2f[_0x56c7c2(0x120)][0x0][_0x56c7c2(0x2f6)][_0x56c7c2(0x203)];Array[_0x56c7c2(0x14c)](_0x39d506)&&_0x39d506[_0x56c7c2(0x247)]&&_0x33ac06['replaceDocRanges'](_0x39d506,{'unitId':_0x5b7892,'subUnitId':_0x5b7892},!0x1);}};Z=Wt([Ne(0x0,a[_0x31be5e(0x353)](a[_0x31be5e(0x21d)])),Ne(0x1,m[_0x31be5e(0x1b8)])],Z);var Vt=Object[_0x31be5e(0x241)],Xt=(_0x163173,_0x209661,_0x33ae1c,_0x3873ca)=>{for(var _0x1aa2e1=_0x3873ca>0x1?void 0x0:_0x3873ca?Vt(_0x209661,_0x33ae1c):_0x209661,_0x2667f2=_0x163173['length']-0x1,_0x5a529d;_0x2667f2>=0x0;_0x2667f2--)(_0x5a529d=_0x163173[_0x2667f2])&&(_0x1aa2e1=_0x5a529d(_0x1aa2e1)||_0x1aa2e1);return _0x1aa2e1;},N=(_0x130665,_0xa1dc22)=>(_0x4fcb97,_0x5e5516)=>_0xa1dc22(_0x4fcb97,_0x5e5516,_0x130665);let Q=class extends a[_0x31be5e(0x128)]{constructor(_0x593783,_0x5d04d6,_0x57e4cd,_0x2d0af1,_0x25e140,_0x4a57fb,_0x5b6348,_0x3a54cf){const _0x3f6207=_0x31be5e;super(),h(this,_0x3f6207(0x1f5),new d[(_0x3f6207(0x221))](u[_0x3f6207(0x300)][_0x3f6207(0x144)])),(this[_0x3f6207(0x10c)]=_0x593783,this[_0x3f6207(0x119)]=_0x5d04d6,this[_0x3f6207(0x2d5)]=_0x57e4cd,this[_0x3f6207(0x2e2)]=_0x2d0af1,this['_docTransformSelectionsService']=_0x25e140,this[_0x3f6207(0x328)]=_0x4a57fb,this['_messageService']=_0x5b6348,this[_0x3f6207(0x1e0)]=_0x3a54cf,this[_0x3f6207(0x2ca)]());}[_0x31be5e(0x2ca)](){const _0x109f22=_0x31be5e;this[_0x109f22(0x2bc)](this[_0x109f22(0x119)][_0x109f22(0x2a5)]['subscribe'](_0x4657be=>{const _0x2da9f=_0x109f22,_0x3b0437=this[_0x2da9f(0x10c)][_0x2da9f(0x323)]['subscribe'](_0x38fcd0=>{const _0x480906=_0x2da9f;if(_0x38fcd0==null)return;const {unitId:_0x2208b6,redoState:_0x4613d9,commandId:_0x1f6b76}=_0x38fcd0;if(_0x2208b6!==_0x4657be[_0x480906(0x23e)])return;const _0x21f769={'id':_0x1f6b76,'type':a[_0x480906(0x102)]['MUTATION'],'params':{'unitId':_0x2208b6,'actions':_0x4613d9[_0x480906(0x359)],'textRanges':null}};_0x4657be[_0x480906(0x233)](_0x21f769);});if(_0x4657be[_0x2da9f(0x2bc)](_0x3b0437),_0x4657be instanceof u['DocCollaborationEntity']){const _0x299148={'onTransformIME':_0x3a8990=>this[_0x2da9f(0x2d5)][_0x2da9f(0x180)](_0x3a8990),'onTransformState':_0x31287f=>this['_docTransformStateCacheService'][_0x2da9f(0x1e9)](_0x31287f),'onTransformSelections':_0x1b37ce=>this[_0x2da9f(0x349)][_0x2da9f(0x24c)](_0x1b37ce),'onSyncEditingCollabCursor':_0x5de9f0=>this['_docSyncEditingCollabCursorService'][_0x2da9f(0x125)](_0x5de9f0),'onTransformRemoteChangesetByIMECache':_0x11fcaf=>this[_0x2da9f(0x2d5)]['transformRemoteChangeset'](_0x11fcaf),'onTransformRemoteChangesetByStateCache':_0x40e7ea=>this[_0x2da9f(0x2e2)][_0x2da9f(0x141)](_0x40e7ea)};_0x4657be[_0x2da9f(0x248)](_0x299148);}}));}};Q=Xt([N(0x0,a[_0x31be5e(0x353)](b[_0x31be5e(0x2a3)])),N(0x1,a[_0x31be5e(0x353)](u[_0x31be5e(0x269)])),N(0x2,a['Inject'](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x31be5e(0x353)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x31be5e(0x353)](a[_0x31be5e(0x1b2)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x521af8,_0xa93ce3,_0x1b0917,_0x1c94a4)=>{const _0x30eb67=_0x31be5e;for(var _0x16bbde=_0x1c94a4>0x1?void 0x0:_0x1c94a4?Gt(_0xa93ce3,_0x1b0917):_0xa93ce3,_0x4ef40b=_0x521af8[_0x30eb67(0x247)]-0x1,_0x310229;_0x4ef40b>=0x0;_0x4ef40b--)(_0x310229=_0x521af8[_0x4ef40b])&&(_0x16bbde=_0x310229(_0x16bbde)||_0x16bbde);return _0x16bbde;},_e=(_0x1d874e,_0x37eac1)=>(_0x535132,_0x4e1ec4)=>_0x37eac1(_0x535132,_0x4e1ec4,_0x1d874e);let ge=class extends a[_0x31be5e(0x128)]{constructor(_0x53b4dd,_0x26171f,_0x5a328a){const _0x1cb061=_0x31be5e;super(),h(this,_0x1cb061(0x16d),new Map()),h(this,_0x1cb061(0x174),new Map()),h(this,_0x1cb061(0x137),!0x1),(this[_0x1cb061(0x1fb)]=_0x53b4dd,this[_0x1cb061(0x28e)]=_0x26171f,this[_0x1cb061(0x22d)]=_0x5a328a);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x31be5e(0x27c)](){const _0x598ea0=_0x31be5e;this[_0x598ea0(0x137)]=!0x1;}get[_0x31be5e(0x346)](){const _0x198374=_0x31be5e;return this[_0x198374(0x174)];}[_0x31be5e(0x110)](){const _0x3edb7a=_0x31be5e;this['exhaustSavingTask']()[_0x3edb7a(0x240)](()=>super[_0x3edb7a(0x110)]());}async[_0x31be5e(0x26e)](_0x25b2df){const _0x33056f=_0x31be5e;return this[_0x33056f(0x137)]?null:this[_0x33056f(0x28e)]['getItem'](u['getLocalCacheKey'](_0x25b2df));}async[_0x31be5e(0x2e9)](_0x5c86a0,_0x5b463f){const _0x147e56=_0x31be5e;return!!this['_localStorageService'][_0x147e56(0x2ee)](_0x5c86a0,_0x5b463f);}['updateOfflineData'](_0x8f9694,_0x9e35b8,_0x3a831e,_0x19addc){const _0x5ae6f4=_0x31be5e,_0x3d1843=this[_0x5ae6f4(0x22d)]['getCurrentRevOfUnit'](_0x8f9694);this[_0x5ae6f4(0x16d)][_0x5ae6f4(0x288)](_0x8f9694,{'unitID':_0x8f9694,'type':_0x9e35b8,'awaitingChangeset':_0x3a831e,'mutations':_0x19addc,'rev':_0x3d1843}),this[_0x5ae6f4(0x174)]['has'](_0x8f9694)||this[_0x5ae6f4(0x2c4)](_0x8f9694);}['_scheduleSaving'](_0x1c0491){const _0x294da7=_0x31be5e,_0x5a21fd=this['_getSaveTimeout']();_0x5a21fd===0x0?this[_0x294da7(0x2eb)](_0x1c0491):this['_saveTaskMap'][_0x294da7(0x288)](_0x1c0491,setTimeout(()=>this[_0x294da7(0x2eb)](_0x1c0491),_0x5a21fd));}['_getSaveTimeout'](){const _0x273857=_0x31be5e;var _0x223a75;return(_0x223a75=this[_0x273857(0x1fb)][_0x273857(0x1a5)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x223a75:u[_0x273857(0x1a3)];}['_saveCache'](_0x5c34bc){const _0x4b6236=_0x31be5e,_0x485490=this[_0x4b6236(0x174)]['get'](_0x5c34bc);return _0x485490!==void 0x0&&window[_0x4b6236(0x158)](_0x485490),this['_localStorageService']['setItem'](u[_0x4b6236(0x2f8)](_0x5c34bc),this[_0x4b6236(0x16d)][_0x4b6236(0x16a)](_0x5c34bc))['then'](()=>this[_0x4b6236(0x174)][_0x4b6236(0x360)](_0x5c34bc));}async[_0x31be5e(0x266)](){const _0x4c6bbc=_0x31be5e,_0x540cc2=[];this[_0x4c6bbc(0x174)][_0x4c6bbc(0x379)]((_0x1263e6,_0xc3dcee)=>{const _0x252446=_0x4c6bbc;window[_0x252446(0x158)](_0x1263e6),_0x540cc2[_0x252446(0x150)](this[_0x252446(0x2eb)](_0xc3dcee)[_0x252446(0x240)](()=>{const _0x1cd5ae=_0x252446;this['_saveTaskMap'][_0x1cd5ae(0x360)](_0xc3dcee);}));}),await Promise[_0x4c6bbc(0x281)](_0x540cc2);}};ge=Kt([_e(0x0,a[_0x31be5e(0x322)]),_e(0x1,a[_0x31be5e(0x321)]),_e(0x2,a['Inject'](m[_0x31be5e(0x10d)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x4a157f=_0x31be5e;super(),h(this,_0x4a157f(0x212)),this[_0x4a157f(0x212)]=d[_0x4a157f(0x366)](window,_0x4a157f(0x107))['pipe'](d[_0x4a157f(0x357)](this['dispose$']),d['shareReplay'](0x1),d[_0x4a157f(0x190)](void 0x0));}[_0x31be5e(0x22a)](_0x33927c,_0x10ccfa,_0x5887f0=!0x1){const _0x3ab7f3=_0x31be5e,_0x31a366=new URL(window['location'][_0x3ab7f3(0x2fe)]);_0x31a366['searchParams'][_0x3ab7f3(0x288)](_0x33927c,_0x10ccfa),_0x5887f0?window[_0x3ab7f3(0x28b)][_0x3ab7f3(0x136)]('','',_0x31a366[_0x3ab7f3(0x20c)]()):window[_0x3ab7f3(0x28b)][_0x3ab7f3(0x20a)]('','',_0x31a366[_0x3ab7f3(0x20c)]());}[_0x31be5e(0x135)](_0x5e32d6,_0x21a2fe=!0x1){const _0x52d2b7=_0x31be5e,_0x1e8f99=new URL(window['location'][_0x52d2b7(0x2fe)]);_0x1e8f99[_0x52d2b7(0x146)][_0x52d2b7(0x360)](_0x5e32d6),_0x21a2fe?window[_0x52d2b7(0x28b)][_0x52d2b7(0x136)]('','',_0x1e8f99[_0x52d2b7(0x20c)]()):window[_0x52d2b7(0x28b)]['pushState']('','',_0x1e8f99[_0x52d2b7(0x20c)]());}[_0x31be5e(0x2a1)](_0x5a13bf){const _0x2c3323=_0x31be5e;var _0x5e9a27;return(_0x5e9a27=new URL(window[_0x2c3323(0x378)]['href'])['searchParams'][_0x2c3323(0x16a)](_0x5a13bf))!=null?_0x5e9a27:void 0x0;}}var qt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x158606,_0x2da155,_0x3b1545)=>_0x2da155 in _0x158606?qt(_0x158606,_0x2da155,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1545}):_0x158606[_0x2da155]=_0x3b1545,Zt=(_0x2aa4ac,_0x2e9a00,_0x388f47,_0x524a20)=>{const _0x1fefcb=_0x31be5e;for(var _0xaf7cac=_0x524a20>0x1?void 0x0:_0x524a20?zt(_0x2e9a00,_0x388f47):_0x2e9a00,_0x194d2f=_0x2aa4ac[_0x1fefcb(0x247)]-0x1,_0x2ae5cf;_0x194d2f>=0x0;_0x194d2f--)(_0x2ae5cf=_0x2aa4ac[_0x194d2f])&&(_0xaf7cac=_0x2ae5cf(_0xaf7cac)||_0xaf7cac);return _0xaf7cac;},he=(_0x195faa,_0x20248b)=>(_0xbd8322,_0x114325)=>_0x20248b(_0xbd8322,_0x114325,_0x195faa),Qt=(_0x2a29cb,_0x141462,_0x20c786)=>Jt(_0x2a29cb,_0x141462+'',_0x20c786);const es=_0x31be5e(0x155);exports[_0x31be5e(0x296)]=class extends a[_0x31be5e(0x2ea)]{constructor(_0x3f29ff=Ue,_0x3255db,_0xffa206,_0x12002c){const _0x589ca6=_0x31be5e;super(),this[_0x589ca6(0x114)]=_0x3f29ff,this['_renderManagerService']=_0x3255db,this[_0x589ca6(0x171)]=_0xffa206,this[_0x589ca6(0x1fb)]=_0x12002c;const {..._0x5929bf}=a[_0x589ca6(0x255)]({},Ue,this[_0x589ca6(0x114)]);this[_0x589ca6(0x1fb)][_0x589ca6(0x11c)]($t,_0x5929bf);}[_0x31be5e(0x256)](){const _0x379c27=_0x31be5e;this[_0x379c27(0x2f4)](),this[_0x379c27(0x1a8)]();}[_0x31be5e(0x32d)](){const _0x5969a0=_0x31be5e;this[_0x5969a0(0x327)]();}[_0x31be5e(0x2f4)](){const _0x4b57d7=_0x31be5e;var _0xcf6966;const _0x450da7=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x4b57d7(0x249)],{'useClass':G[_0x4b57d7(0x337)]}],[u[_0x4b57d7(0x186)],{'useClass':ge}],[exports[_0x4b57d7(0x376)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x4b57d7(0x31a)](this[_0x4b57d7(0x171)],a['mergeOverrideWithDependencies'](_0x450da7,(_0xcf6966=this[_0x4b57d7(0x114)])==null?void 0x0:_0xcf6966[_0x4b57d7(0x30f)]));}[_0x31be5e(0x327)](){const _0x3303e5=_0x31be5e;this['disposeWithMe'](this[_0x3303e5(0x32b)][_0x3303e5(0x268)](a[_0x3303e5(0x20d)][_0x3303e5(0x309)],[Ie])),this[_0x3303e5(0x2bc)](this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType'][_0x3303e5(0x2bd)],[ve]));}[_0x31be5e(0x1a8)](){const _0x330b23=_0x31be5e;a['touchDependencies'](this[_0x330b23(0x171)],[[x],[exports[_0x330b23(0x376)]],[Q],[q],[exports[_0x330b23(0x377)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x31be5e(0xfa)]),he(0x1,p[_0x31be5e(0x11f)]),he(0x2,a[_0x31be5e(0x353)](a['Injector'])),he(0x3,a[_0x31be5e(0x322)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x47aeac,_0x19b80d,_0x55d769,_0x4a477e)=>{const _0x3ddc66=_0x31be5e;for(var _0x52bd67=_0x4a477e>0x1?void 0x0:_0x4a477e?ts(_0x19b80d,_0x55d769):_0x19b80d,_0x32be91=_0x47aeac[_0x3ddc66(0x247)]-0x1,_0x3238b6;_0x32be91>=0x0;_0x32be91--)(_0x3238b6=_0x47aeac[_0x32be91])&&(_0x52bd67=_0x3238b6(_0x52bd67)||_0x52bd67);return _0x52bd67;},F=(_0x4b84e0,_0x43ccab)=>(_0x2db847,_0x5dff72)=>_0x43ccab(_0x2db847,_0x5dff72,_0x4b84e0);exports['BrowserCollaborationSocketService']=class extends u[_0x31be5e(0x191)]{constructor(_0x524ce9,_0x20c357,_0x3f8d07,_0x5068a8,_0x1ca43a){super(_0x524ce9,_0x20c357,_0x3f8d07,_0x5068a8,_0x1ca43a);}async[_0x31be5e(0x340)](_0x27b65f){const _0x563c37=_0x31be5e,_0x1dafbe=await this[_0x563c37(0x36f)](),_0x287069=this[_0x563c37(0x1d1)](_0x27b65f,_0x1dafbe);return this[_0x563c37(0xff)](_0x287069);}[_0x31be5e(0x1d1)](_0x59c256,_0x26d089){const _0x507ed9=_0x31be5e,_0x2f6943=typeof window>'u'?new URL(_0x59c256):new URL(_0x59c256,window[_0x507ed9(0x378)][_0x507ed9(0x143)]);_0x2f6943[_0x507ed9(0x146)]['set'](_0x507ed9(0x149),_0x26d089);const _0x32e16f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x507ed9(0x205)]);return _0x32e16f[_0x507ed9(0x16a)]('runId')&&_0x2f6943[_0x507ed9(0x146)][_0x507ed9(0x288)](_0x507ed9(0x325),_0x32e16f[_0x507ed9(0x16a)](_0x507ed9(0x325))),_0x2f6943[_0x507ed9(0x20c)]();}async['_getSessionTicket'](){const _0xfad231=_0x31be5e;var _0x148bdd,_0x23a509,_0x23b6d5;const _0x5469f6=this[_0xfad231(0x1fb)][_0xfad231(0x1a5)](u[_0xfad231(0x108)]),_0x1f7b3e=(_0x148bdd=_0x5469f6==null?void 0x0:_0x5469f6[_0xfad231(0x36c)])!=null?_0x148bdd:u[_0xfad231(0x26c)];return(_0x23b6d5=(_0x23a509=(await this['_httpService'][_0xfad231(0x16a)](_0x1f7b3e,{'headers':{'Content-Type':_0xfad231(0x270)}}))[_0xfad231(0x2ab)])==null?void 0x0:_0x23a509[_0xfad231(0x23d)])!=null?_0x23b6d5:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x31be5e(0x353)](a['Injector'])),F(0x1,a[_0x31be5e(0x353)](G[_0x31be5e(0x27f)])),F(0x2,a[_0x31be5e(0x322)]),F(0x3,a[_0x31be5e(0x1df)]),F(0x4,m[_0x31be5e(0x21e)])],exports[_0x31be5e(0x194)]);const Me=0x7530,Le=_0x31be5e(0x20e);class is extends a[_0x31be5e(0x128)]{constructor(){const _0x4c0f25=_0x31be5e;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x4c0f25(0x32a),new Set()),h(this,'_unitOnClients',new Map()),h(this,'_heartbeatTimer',null),h(this,_0x4c0f25(0x19e),new Map()),h(this,'_unitStatus',new Map()),this[_0x4c0f25(0x100)]();}[_0x31be5e(0x110)](){const _0x2a020a=_0x31be5e;super[_0x2a020a(0x110)](),this['_clearOtherTimers'][_0x2a020a(0x379)]((_0x23166a,_0x2e56d9)=>this[_0x2a020a(0x273)](_0x2e56d9)),this[_0x2a020a(0x1fa)]&&window['clearInterval'](this[_0x2a020a(0x1fa)]);}[_0x31be5e(0x156)](_0x59ced0){const _0x10094f=_0x31be5e;return this[_0x10094f(0x330)](_0x59ced0)['pipe'](d['distinctUntilChanged']());}[_0x31be5e(0x230)](_0x334813){const _0x1885b6=_0x31be5e;this[_0x1885b6(0x32a)][_0x1885b6(0x1c3)]===0x0&&this[_0x1885b6(0x14f)](),this['_selfUnitIDs'][_0x1885b6(0x1cc)](_0x334813),this[_0x1885b6(0x2fa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x334813],'isForwarded':!0x1});}[_0x31be5e(0x2ec)](_0x420d3f){const _0x43b488=_0x31be5e;this[_0x43b488(0x32a)][_0x43b488(0x360)](_0x420d3f),this[_0x43b488(0x32a)]['size']===0x0&&this[_0x43b488(0x1fa)]&&window[_0x43b488(0x364)](this[_0x43b488(0x1fa)]);}[_0x31be5e(0x100)](){const _0x18e8b4=_0x31be5e;this[_0x18e8b4(0x2bc)](a['toDisposable'](d[_0x18e8b4(0x366)](window,'storage')[_0x18e8b4(0x347)](_0x47aaad=>{const _0x307dc2=_0x18e8b4;if(_0x47aaad[_0x307dc2(0x363)]!==Le||!_0x47aaad[_0x307dc2(0x165)])return;const _0xd233dd=JSON[_0x307dc2(0x1e7)](_0x47aaad[_0x307dc2(0x165)]);this[_0x307dc2(0x36a)](_0xd233dd);}))),window[_0x18e8b4(0x24f)](_0x18e8b4(0x101),()=>this[_0x18e8b4(0x2fa)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x18e8b4(0x32a)])}));}[_0x31be5e(0x36a)](_0x3f51b3){const _0x4cc389=_0x31be5e;switch(_0x3f51b3[_0x4cc389(0x200)]){case 0x0:this['_handleJoinEvent'](_0x3f51b3);break;case 0x1:this[_0x4cc389(0x1c8)](_0x3f51b3);break;case 0x2:this[_0x4cc389(0x369)](_0x3f51b3);break;}}[_0x31be5e(0x29c)](_0x553325){const _0x34d905=_0x31be5e,{unitIDs:_0x36582f,memberID:_0x3f94b4,isForwarded:_0x5d4a50}=_0x553325;_0x36582f[_0x34d905(0x379)](_0x33ddb3=>{const _0x41fb3b=_0x34d905;if(!_0x5d4a50&&this['_unitOnClients'][_0x41fb3b(0x31e)](_0x33ddb3)&&this[_0x41fb3b(0x330)](_0x33ddb3)['next'](u['UnitStatus'][_0x41fb3b(0x11a)]),!this[_0x41fb3b(0x239)][_0x41fb3b(0x31e)](_0x33ddb3)||!this[_0x41fb3b(0x239)][_0x41fb3b(0x16a)](_0x33ddb3)[_0x41fb3b(0x31e)](_0x3f94b4)){const _0x3813c2=this[_0x41fb3b(0x239)][_0x41fb3b(0x16a)](_0x33ddb3)||new Set();_0x3813c2[_0x41fb3b(0x1cc)](_0x3f94b4),this['_unitOnClients'][_0x41fb3b(0x288)](_0x33ddb3,_0x3813c2),this['_scheduleClearOtherTimer'](_0x3f94b4);}}),_0x5d4a50||this[_0x34d905(0x2fa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x31be5e(0x277)](_0x2000f4){const _0x196b9a=_0x31be5e;this[_0x196b9a(0x273)](_0x2000f4);const _0x494264=window[_0x196b9a(0x304)](()=>{const _0x15d964=_0x196b9a;this[_0x15d964(0x239)][_0x15d964(0x379)](_0x5e716b=>{const _0x1ffca3=_0x15d964;_0x5e716b[_0x1ffca3(0x360)](_0x2000f4);});},Me*0x2);this[_0x196b9a(0x19e)][_0x196b9a(0x288)](_0x2000f4,_0x494264);}[_0x31be5e(0x273)](_0x29a457){const _0x3a7076=_0x31be5e;if(this[_0x3a7076(0x19e)][_0x3a7076(0x31e)](_0x29a457)){const _0x53db75=this[_0x3a7076(0x19e)][_0x3a7076(0x16a)](_0x29a457);_0x53db75&&window[_0x3a7076(0x158)](_0x53db75),this['_clearOtherTimers']['set'](_0x29a457,null);}}[_0x31be5e(0x1c8)](_0x16de79){const _0x3b20a1=_0x31be5e,{memberID:_0x4737ef,unitIDs:_0x58e1ac}=_0x16de79;_0x58e1ac[_0x3b20a1(0x379)](_0x3a4adf=>{const _0x5631a6=_0x3b20a1;var _0x11b2f7;const _0x2c1762=this[_0x5631a6(0x239)][_0x5631a6(0x16a)](_0x3a4adf);_0x2c1762&&(_0x2c1762['delete'](_0x4737ef),(_0x11b2f7=this[_0x5631a6(0x330)](_0x3a4adf))==null||_0x11b2f7[_0x5631a6(0x145)](_0x2c1762[_0x5631a6(0x1c3)]===0x0?u[_0x5631a6(0x2c0)][_0x5631a6(0x226)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x3b20a1(0x273)](_0x4737ef);}[_0x31be5e(0x369)](_0x10d700){const _0x4abb65=_0x31be5e;this[_0x4abb65(0x277)](_0x10d700[_0x4abb65(0x14b)]);}[_0x31be5e(0x2fa)](_0x51a279){const _0x565bda=_0x31be5e;localStorage[_0x565bda(0x2ee)](Le,JSON[_0x565bda(0x342)](_0x51a279));}[_0x31be5e(0x14f)](){const _0x2f32e9=_0x31be5e;this[_0x2f32e9(0x1fa)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}[_0x31be5e(0x330)](_0x1106e4){const _0x21ec18=_0x31be5e;return this['_unitStatus']['has'](_0x1106e4)||this[_0x21ec18(0x34d)][_0x21ec18(0x288)](_0x1106e4,new d[(_0x21ec18(0x221))](u[_0x21ec18(0x2c0)][_0x21ec18(0x226)])),this[_0x21ec18(0x34d)][_0x21ec18(0x16a)](_0x1106e4);}}var Be=(_0xc9b7cd=>(_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x214)]=0x0]=_0x31be5e(0x214),_0xc9b7cd[_0xc9b7cd['OK']=0x1]='OK',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x345)]=0x2]=_0x31be5e(0x345),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x1d3)]=0x3]=_0x31be5e(0x1d3),_0xc9b7cd[_0xc9b7cd['NOT_FOUND']=0x4]=_0x31be5e(0x27d),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x184)]=0x5]=_0x31be5e(0x184),_0xc9b7cd[_0xc9b7cd['ALREADY_EXISTS']=0x6]=_0x31be5e(0x201),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x23a)]=0x7]='INVALID_ARGUMENT',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x32c)]=0x8]=_0x31be5e(0x32c),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2fc)]=0x9]='COMPLETION_FINISHED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x123)]=0xa]='LOGIN_FAILED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x30e)]=0x1389]=_0x31be5e(0x30e),_0xc9b7cd[_0xc9b7cd['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x31be5e(0x1b4),_0xc9b7cd[_0xc9b7cd['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x31be5e(0x1a6),_0xc9b7cd[_0xc9b7cd['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x31be5e(0x1c4),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x24d)]=0x1b59]=_0x31be5e(0x24d),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x350)]=0x1b5a]=_0x31be5e(0x350),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2c3)]=0x1b5b]=_0x31be5e(0x2c3),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x29a)]=0x1b5c]=_0x31be5e(0x29a),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x26d)]=0x1b5d]=_0x31be5e(0x26d),_0xc9b7cd[_0xc9b7cd['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x31be5e(0x2c8),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2d4)]=0x2329]=_0x31be5e(0x2d4),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x185)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x284)]=0x232b]=_0x31be5e(0x284),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x283)]=0x232c]=_0x31be5e(0x283),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x31c)]=0x232d]=_0x31be5e(0x31c),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x1ab)]=0x2711]=_0x31be5e(0x1ab),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2b6)]=0x2712]=_0x31be5e(0x2b6),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x348)]=0x2713]=_0x31be5e(0x348),_0xc9b7cd[_0xc9b7cd['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x31be5e(0x2c7),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x29d)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x104)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x224)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x172)]=0x271d]=_0x31be5e(0x172),_0xc9b7cd[_0xc9b7cd['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x19d)]=0x271f]='YUUMI_AI_RUN_FAILED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x316)]=0x2af9]=_0x31be5e(0x316),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x311)]=0x2ee1]=_0x31be5e(0x311),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x15b)]=0x2ee2]=_0x31be5e(0x15b),_0xc9b7cd[_0xc9b7cd['INVITE_CODE_REQUIRED']=0x2ee3]=_0x31be5e(0x35c),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2f5)]=0x2ee4]=_0x31be5e(0x2f5),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x362)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x170)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x13e)]=0x32ca]=_0x31be5e(0x13e),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x195)]=0x32cb]=_0x31be5e(0x195),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x355)]=-0x1]=_0x31be5e(0x355),_0xc9b7cd))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x1f4437,_0x243d57,_0x126b8c,_0x33c651)=>{const _0x157ca8=_0x31be5e;for(var _0x2c4f36=_0x33c651>0x1?void 0x0:_0x33c651?ns(_0x243d57,_0x126b8c):_0x243d57,_0x3f1ad8=_0x1f4437[_0x157ca8(0x247)]-0x1,_0x1d922e;_0x3f1ad8>=0x0;_0x3f1ad8--)(_0x1d922e=_0x1f4437[_0x3f1ad8])&&(_0x2c4f36=_0x1d922e(_0x2c4f36)||_0x2c4f36);return _0x2c4f36;},ue=(_0x53a270,_0x10b73f)=>(_0xf790e3,_0x2f2a03)=>_0x10b73f(_0xf790e3,_0x2f2a03,_0x53a270);exports['RemoteUniscriptService']=class extends a[_0x31be5e(0x128)]{constructor(_0x104317,_0x2c11f0,_0x571aee){const _0x3603f9=_0x31be5e;super(),this[_0x3603f9(0x251)]=_0x104317,this[_0x3603f9(0x35b)]=_0x2c11f0,this['_configService']=_0x571aee;}async['runOnServer'](_0x15598b,_0x2aa5b9,_0x45665c,..._0x1f2bbd){const _0x214072=_0x31be5e;var _0x59e52e,_0x3aa0d5,_0x3c474b,_0x653838;const _0x115b96=this['_instanceService'][_0x214072(0x2bf)]();if(!_0x115b96)throw new Error(_0x214072(0x18d));const _0x4b5bc4=((_0x59e52e=this[_0x214072(0x1fb)][_0x214072(0x1a5)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x59e52e:u[_0x214072(0x245)])+'/'+_0x15598b+_0x214072(0x2b4)+_0x2aa5b9,_0x19f41f=new URL(window['location'][_0x214072(0x2fe)]),_0x21d8b4={'scriptId':_0x15598b,'runId':(_0x3aa0d5=_0x19f41f[_0x214072(0x146)][_0x214072(0x16a)](_0x214072(0x325)))!=null?_0x3aa0d5:'','function':_0x2aa5b9,'unitId':_0x115b96[_0x214072(0x17b)](),'argsOfFunction':JSON[_0x214072(0x342)](_0x1f2bbd),'invokeId':(_0x3c474b=_0x45665c[_0x214072(0x2de)])!=null?_0x3c474b:'','executionId':(_0x653838=_0x45665c[_0x214072(0x1dd)])!=null?_0x653838:''};try{const _0x39fa1d=await this[_0x214072(0x35b)][_0x214072(0x299)](_0x4b5bc4,{'body':_0x21d8b4});return _0x39fa1d[_0x214072(0x2ab)]['error']&&_0x39fa1d[_0x214072(0x2ab)]['error'][_0x214072(0x1f8)]!==Be['OK']?'Failed':_0x39fa1d[_0x214072(0x2ab)][_0x214072(0x2d1)];}catch{return'Failed';}}},exports[_0x31be5e(0x34e)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x31be5e(0x353)](G['HTTPService'])),ue(0x2,a['IConfigService'])],exports[_0x31be5e(0x34e)]),exports[_0x31be5e(0x236)]=xe,exports['IURLService']=be,exports[_0x31be5e(0x12c)]=Pe,exports[_0x31be5e(0x1a9)]=is,exports[_0x31be5e(0x1cb)]=je;
1
+ 'use strict';const _0x51cf5f=_0x406e;(function(_0x1c9e1f,_0xc8dae7){const _0x39dc3f=_0x406e,_0x109420=_0x1c9e1f();while(!![]){try{const _0x446d49=parseInt(_0x39dc3f(0x330))/0x1+parseInt(_0x39dc3f(0x1ac))/0x2+-parseInt(_0x39dc3f(0x2cf))/0x3*(-parseInt(_0x39dc3f(0x336))/0x4)+parseInt(_0x39dc3f(0x290))/0x5+parseInt(_0x39dc3f(0x23e))/0x6+parseInt(_0x39dc3f(0x1b3))/0x7+-parseInt(_0x39dc3f(0x33f))/0x8*(parseInt(_0x39dc3f(0x2d5))/0x9);if(_0x446d49===_0xc8dae7)break;else _0x109420['push'](_0x109420['shift']());}catch(_0x257801){_0x109420['push'](_0x109420['shift']());}}}(_0x65eb,0xf036e));var Ve=Object[_0x51cf5f(0x348)],Xe=(_0x4126a1,_0x2d1228,_0x516455)=>_0x2d1228 in _0x4126a1?Ve(_0x4126a1,_0x2d1228,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x516455}):_0x4126a1[_0x2d1228]=_0x516455,h=(_0x299af4,_0x4c1b06,_0x262882)=>Xe(_0x299af4,typeof _0x4c1b06!='symbol'?_0x4c1b06+'':_0x4c1b06,_0x262882);Object[_0x51cf5f(0x348)](exports,Symbol[_0x51cf5f(0x2e5)],{'value':_0x51cf5f(0x17d)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x51cf5f(0x24e)),p=require(_0x51cf5f(0x23a)),G=require(_0x51cf5f(0x14d)),b=require(_0x51cf5f(0x397)),Ge=require('@univerjs/drawing'),d=require('rxjs'),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x51cf5f(0x2af)),g=require(_0x51cf5f(0x137)),$=require(_0x51cf5f(0x1fe)),X=require(_0x51cf5f(0x3ae)),w=require('react/jsx-runtime'),T=require(_0x51cf5f(0x232)),D=require('@univerjs/design'),M=require(_0x51cf5f(0x320)),Ke=require(_0x51cf5f(0x166));var qe=Object[_0x51cf5f(0x377)],ze=(_0x30b602,_0x8d4aaf,_0x419f5a,_0xf1f080)=>{const _0xc6bcf0=_0x51cf5f;for(var _0x413540=_0xf1f080>0x1?void 0x0:_0xf1f080?qe(_0x8d4aaf,_0x419f5a):_0x8d4aaf,_0x1e5c0c=_0x30b602[_0xc6bcf0(0x296)]-0x1,_0x22841c;_0x1e5c0c>=0x0;_0x1e5c0c--)(_0x22841c=_0x30b602[_0x1e5c0c])&&(_0x413540=_0x22841c(_0x413540)||_0x413540);return _0x413540;},Te=(_0x334292,_0x22e618)=>(_0x4a7c37,_0x133792)=>_0x22e618(_0x4a7c37,_0x133792,_0x334292);let de=class extends a['RxDisposable']{constructor(_0x30cf4a,_0x34442e){const _0xb9415f=_0x51cf5f;super(),this[_0xb9415f(0x12b)]=_0x30cf4a,this[_0xb9415f(0x31c)]=_0x34442e,this[_0xb9415f(0x2f4)]();}[_0x51cf5f(0x2f4)](){const _0x49b6bc=_0x51cf5f,_0x268ca2=this;this[_0x49b6bc(0x1fa)](this['_docClipboardService'][_0x49b6bc(0x26a)]({'onBeforePasteImage':async _0x48c7c1=>{const _0x5b2ad2=_0x49b6bc,_0x1f28d2=await _0x268ca2[_0x5b2ad2(0x31c)][_0x5b2ad2(0x12d)](_0x48c7c1);return _0x1f28d2?{'source':_0x1f28d2[_0x5b2ad2(0x1cc)],'imageSourceType':_0x1f28d2[_0x5b2ad2(0x13d)]}:null;}}));}};de=ze([Te(0x0,b[_0x51cf5f(0x163)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=['purple.300',_0x51cf5f(0x286),_0x51cf5f(0x1b4),_0x51cf5f(0x18b),_0x51cf5f(0x1ab),_0x51cf5f(0x2ce)];class me extends a[_0x51cf5f(0x188)]{constructor(){const _0xfe8f8a=_0x51cf5f;super(...arguments),h(this,_0xfe8f8a(0x223),new Map()),h(this,_0xfe8f8a(0x1c5),0x0);}['assignAColorForMemberID'](_0x511e35){const _0x2c3cf1=_0x51cf5f;if(this['_assignedColors'][_0x2c3cf1(0x2e2)](_0x511e35))return this['_assignedColors'][_0x2c3cf1(0x214)](_0x511e35);const _0xbe41ef=Oe[this[_0x2c3cf1(0x1c5)]];return this[_0x2c3cf1(0x1c5)]=(this[_0x2c3cf1(0x1c5)]+0x1)%Oe['length'],this['_assignedColors'][_0x2c3cf1(0x2e8)](_0x511e35,_0xbe41ef),_0xbe41ef;}}function we(_0x5f0dcc){const _0x11a3b4=_0x51cf5f;let _0x413952='';for(const _0x45e0df of _0x5f0dcc){const {startOffset:_0x1c7d90,endOffset:_0x2c28ac,isActive:_0x3f1eed,rangeType:_0x266775,segmentId:_0x5bd16b,segmentPage:_0x1a9a35}=_0x45e0df;_0x413952[_0x11a3b4(0x296)]&&(_0x413952+=','),_0x413952+=_0x1c7d90+':'+_0x2c28ac+':'+(_0x3f1eed?'1':'0')+':'+_0x266775+':'+_0x5bd16b+':'+_0x1a9a35;}return _0x413952;}function Je(_0x35cb32){const _0x17eeb9=_0x51cf5f,_0x3b614d=_0x35cb32[_0x17eeb9(0x1d4)](','),_0x484746=[];for(const _0x22cd87 of _0x3b614d){const [_0x53f97e,_0x1b37bd,_0x23ab33,_0x59c969,_0x33c45c,_0x15a83b]=_0x22cd87['split'](':');_0x484746[_0x17eeb9(0x326)]({'startOffset':Number(_0x53f97e),'endOffset':Number(_0x1b37bd),'collapsed':_0x53f97e===_0x1b37bd,'isActive':_0x23ab33==='1','rangeType':_0x59c969===a[_0x17eeb9(0x2ad)]['TEXT']?a[_0x17eeb9(0x2ad)][_0x17eeb9(0x28c)]:a[_0x17eeb9(0x2ad)]['RECT'],'segmentId':typeof _0x33c45c==_0x17eeb9(0x308)?String(_0x33c45c):'','segmentPage':Number(_0x15a83b!=null?_0x15a83b:-0x1)});}return _0x484746[_0x17eeb9(0x355)](_0x57df18=>_0x57df18[_0x17eeb9(0x268)])||(_0x484746[0x0][_0x17eeb9(0x268)]=!0x0),_0x484746;}class Ce extends a[_0x51cf5f(0x298)]{constructor(){const _0x228119=_0x51cf5f;super(...arguments),h(this,_0x228119(0x13e),new d[(_0x228119(0x365))](null)),h(this,_0x228119(0x331),this[_0x228119(0x13e)][_0x228119(0x387)]());}[_0x51cf5f(0x245)](_0x4683b0){const _0x4b0b17=_0x51cf5f,{unitID:_0x397368,memberID:_0x17efeb,textRanges:_0x445064}=_0x4683b0,_0x2e8556=we(_0x445064);if(_0x2e8556==='')return;const _0x3f9762={'unitID':_0x397368,'memberID':_0x17efeb,'selection':_0x2e8556};this[_0x4b0b17(0x13e)][_0x4b0b17(0x19c)](_0x3f9762);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x357c41,_0x2ca4d0,_0x222805,_0x50f1cd)=>{const _0x51b80c=_0x51cf5f;for(var _0x53b392=_0x50f1cd>0x1?void 0x0:_0x50f1cd?Ze(_0x2ca4d0,_0x222805):_0x2ca4d0,_0x1baabb=_0x357c41[_0x51b80c(0x296)]-0x1,_0x1b46f1;_0x1baabb>=0x0;_0x1baabb--)(_0x1b46f1=_0x357c41[_0x1baabb])&&(_0x53b392=_0x1b46f1(_0x53b392)||_0x53b392);return _0x53b392;},L=(_0x51fe7e,_0x233fcf)=>(_0x4e5965,_0x4d9e65)=>_0x233fcf(_0x4e5965,_0x4d9e65,_0x51fe7e);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x5322ef,_0x207351,_0x47b0d2,_0x3f6581,_0x4897ec,_0x2d1938,_0x4d6c3f,_0x21a8ac,_0x32e3cf){const _0x2d9da4=_0x51cf5f;super(),h(this,_0x2d9da4(0x17c),!0x1),h(this,_0x2d9da4(0x2f4),!0x1),h(this,_0x2d9da4(0x1ed),new d[(_0x2d9da4(0x365))](new Map())),h(this,'cursorInfo$',this[_0x2d9da4(0x1ed)][_0x2d9da4(0x387)]()),h(this,_0x2d9da4(0x2e1),new d[(_0x2d9da4(0x365))]([])),h(this,_0x2d9da4(0x3b9),this[_0x2d9da4(0x2e1)][_0x2d9da4(0x3a7)](d[_0x2d9da4(0x238)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x3e3280=>{const _0x3937e8=_0x2d9da4,_0x339488={'eventID':m[_0x3937e8(0x16b)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3937e8(0x191)][_0x3937e8(0x3aa)](),'selection':we(_0x3e3280)}};this['_session'][_0x3937e8(0x220)](_0x339488,this[_0x3937e8(0x1f4)]);},tt)),(this[_0x2d9da4(0x1f4)]=_0x5322ef,this[_0x2d9da4(0x191)]=_0x207351,this['_injector']=_0x47b0d2,this[_0x2d9da4(0x215)]=_0x3f6581,this[_0x2d9da4(0x18c)]=_0x4897ec,this[_0x2d9da4(0x247)]=_0x2d1938,this[_0x2d9da4(0x1a4)]=_0x4d6c3f,this[_0x2d9da4(0x28d)]=_0x21a8ac,this['_commandService']=_0x32e3cf);}get[_0x51cf5f(0x38c)](){const _0xae0130=_0x51cf5f;return this[_0xae0130(0x1ed)][_0xae0130(0x329)]();}get['roomMembers'](){const _0x2960d0=_0x51cf5f;return this[_0x2960d0(0x2e1)]['getValue']();}[_0x51cf5f(0x277)](){const _0x1b2e74=_0x51cf5f;super[_0x1b2e74(0x277)](),this['_cursorInfo$']['next'](new Map()),this[_0x1b2e74(0x1ed)][_0x1b2e74(0x21c)](),this['_roomMembers$'][_0x1b2e74(0x19c)]([]),this['_roomMembers$']['complete']();}[_0x51cf5f(0x22e)](){const _0x626536=_0x51cf5f;this['_init']||(this[_0x626536(0x2f4)]=!0x0,this['_session']['sessionStatus$'][_0x626536(0x3a7)](d[_0x626536(0x20d)](this['dispose$']))[_0x626536(0x254)](_0x43a3ff=>{const _0x1c8bff=_0x626536;_0x43a3ff===u[_0x1c8bff(0x23d)][_0x1c8bff(0x145)]?this[_0x1c8bff(0x26b)]():this[_0x1c8bff(0x207)]();}),this['_session']['event$'][_0x626536(0x3a7)](d['takeUntil'](this[_0x626536(0x28a)]))[_0x626536(0x254)](_0x5bd0c9=>{const _0x156d49=_0x626536,_0x58a140=_0x5bd0c9[_0x156d49(0x253)];_0x58a140===m[_0x156d49(0x16b)][_0x156d49(0x32a)]&&this[_0x156d49(0x210)](_0x5bd0c9),_0x58a140===m['CollaborationEvent'][_0x156d49(0x187)]&&this[_0x156d49(0x370)](_0x5bd0c9);}),this[_0x626536(0x1fa)](this[_0x626536(0x362)]['onCommandExecuted'](_0x45d742=>{const _0x54d7ed=_0x626536,_0x82c5e3=_0x45d742[_0x54d7ed(0x3b5)];_0x82c5e3!=null&&this['_online']&&_0x45d742['id']===Y[_0x54d7ed(0x274)]['id']&&_0x82c5e3[_0x54d7ed(0x395)]===this['unitID']&&_0x82c5e3[_0x54d7ed(0x2bd)]===!0x1&&_0x82c5e3[_0x54d7ed(0x287)][_0x54d7ed(0x296)]>0x0&&this[_0x54d7ed(0x27e)](_0x82c5e3[_0x54d7ed(0x287)]);})),this[_0x626536(0x247)][_0x626536(0x331)]['pipe'](d['takeUntil'](this[_0x626536(0x28a)]))[_0x626536(0x254)](_0x1dbb1d=>{const _0x47c427=_0x626536;if((_0x1dbb1d==null?void 0x0:_0x1dbb1d['unitID'])!==this[_0x47c427(0x1f4)])return;const _0x30d0ba={'eventID':m[_0x47c427(0x16b)]['UPDATE_CURSOR'],'data':_0x1dbb1d};this[_0x47c427(0x210)](_0x30d0ba);}),this[_0x626536(0x1fa)](this[_0x626536(0x362)][_0x626536(0x1a3)](_0x35af14=>{const _0x247e6b=_0x626536;if(_0x35af14[_0x247e6b(0x3b5)]==null)return;const _0x5897cf=_0x35af14[_0x247e6b(0x3b5)];if(_0x35af14['id']!==Y[_0x247e6b(0x26c)]['id']||_0x5897cf[_0x247e6b(0x395)]!==this[_0x247e6b(0x1f4)])return;const _0x171a41={'id':_0x247e6b(0x292),'params':_0x5897cf},_0x487d3c=this[_0x247e6b(0x38c)];for(const [_0xdca5a1,_0x38f962]of _0x487d3c){const _0x2f0a15={'id':_0x247e6b(0x292),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x38f962['ranges']}},_0x274339=this[_0x247e6b(0x1a4)][_0x247e6b(0x148)](_0x171a41,_0x2f0a15,!0x1);if(m[_0x247e6b(0x201)](_0x274339))throw _0x274339['error'];_0x487d3c[_0x247e6b(0x2e8)](_0xdca5a1,{..._0x38f962,'ranges':_0x274339[_0x247e6b(0x3af)]['params'][_0x247e6b(0x225)]});}queueMicrotask(()=>{const _0x3cc912=_0x247e6b;this[_0x3cc912(0x1ed)][_0x3cc912(0x19c)](_0x487d3c);});})));}[_0x51cf5f(0x210)](_0x1fa907){const _0x37d1ad=_0x51cf5f;var _0x2706fd,_0xdeefe7;const {memberID:_0x48eca1,selection:_0x43b91e}=_0x1fa907['data'],_0x1e276c=Je(_0x43b91e),_0x48b960=(_0xdeefe7=(_0x2706fd=this[_0x37d1ad(0x18c)][_0x37d1ad(0x282)](this[_0x37d1ad(0x1f4)],_0x48eca1))==null?void 0x0:_0x2706fd['name'])!=null?_0xdeefe7:'Unknown\x20user',_0x564f9d={'color':this[_0x37d1ad(0x215)][_0x37d1ad(0x35f)](_0x48eca1),'name':_0x48b960,'ranges':_0x1e276c},_0x19e89b=this['cursorInfo'];_0x19e89b[_0x37d1ad(0x2e8)](_0x48eca1,_0x564f9d),this['_cursorInfo$'][_0x37d1ad(0x19c)](_0x19e89b);}[_0x51cf5f(0x370)](_0x21b74a){const _0x2cf34e=_0x51cf5f,{memberID:_0x222e63}=_0x21b74a[_0x2cf34e(0x2eb)],_0x17ac89=this[_0x2cf34e(0x38c)];_0x17ac89[_0x2cf34e(0x1cb)](_0x222e63),this['_cursorInfo$'][_0x2cf34e(0x19c)](_0x17ac89);}[_0x51cf5f(0x26b)](){const _0x2ad857=_0x51cf5f;var _0x201859;if(this['_online']=!0x0,((_0x201859=this[_0x2ad857(0x28d)][_0x2ad857(0x340)]())==null?void 0x0:_0x201859[_0x2ad857(0x14f)]())!==this[_0x2ad857(0x1f4)])return;const _0x3e1960=this['_injector'][_0x2ad857(0x214)](Y['DocSelectionManagerService'])[_0x2ad857(0x1e8)]();Array[_0x2ad857(0x273)](_0x3e1960)&&_0x3e1960[_0x2ad857(0x296)]>0x0&&this[_0x2ad857(0x27e)](_0x3e1960);}[_0x51cf5f(0x207)](){const _0x3273bc=_0x51cf5f;this[_0x3273bc(0x17c)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x51cf5f(0x2be)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x267)])),L(0x5,a[_0x51cf5f(0x249)](Ce)),L(0x6,m[_0x51cf5f(0x339)]),L(0x7,a[_0x51cf5f(0x185)]),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x1fa032,_0x3cc087,_0x2048b4,_0x3c1f13)=>{const _0x1a1c70=_0x51cf5f;for(var _0x103e9a=_0x3c1f13>0x1?void 0x0:_0x3c1f13?st(_0x3cc087,_0x2048b4):_0x3cc087,_0x55e56f=_0x1fa032[_0x1a1c70(0x296)]-0x1,_0x662391;_0x55e56f>=0x0;_0x55e56f--)(_0x662391=_0x1fa032[_0x55e56f])&&(_0x103e9a=_0x662391(_0x103e9a)||_0x103e9a);return _0x103e9a;},A=(_0x749382,_0x43fcac)=>(_0x4e582f,_0x54d070)=>_0x43fcac(_0x4e582f,_0x54d070,_0x749382);const nt=0x12c,rt=0x64,ot=()=>{let _0x1efe6b=[],_0x352af6=!0x1;return _0x5a6cba=>{const _0x39c04=_0x406e;_0x1efe6b[_0x39c04(0x326)](_0x5a6cba),_0x352af6||(_0x352af6=!0x0,setTimeout(()=>{_0x1efe6b['forEach'](_0x5071a8=>_0x5071a8()),_0x1efe6b=[],_0x352af6=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x5c2ef7,_0x4020a6,_0x1fcbe0,_0x56177c,_0x1b4ebe,_0x1ee3c8,_0x2b1765,_0x190ba0){const _0x4b27ba=_0x51cf5f;super(),h(this,_0x4b27ba(0x17c),!0x1),h(this,_0x4b27ba(0x2f4),!0x1),h(this,'_cursorInfo$',new d[(_0x4b27ba(0x365))](new Map())),h(this,_0x4b27ba(0x3ac),this[_0x4b27ba(0x1ed)]['asObservable']()),h(this,_0x4b27ba(0x2e1),new d[(_0x4b27ba(0x365))]([])),h(this,_0x4b27ba(0x3b9),this['_roomMembers$'][_0x4b27ba(0x3a7)](d[_0x4b27ba(0x238)](nt))),h(this,_0x4b27ba(0x27e),a[_0x4b27ba(0x246)]((_0x481c3b,_0x3da4be)=>{const _0x9eb8b2=_0x4b27ba,_0x2e63f7={'eventID':m[_0x9eb8b2(0x16b)][_0x9eb8b2(0x32a)],'data':{'unitID':this[_0x9eb8b2(0x1f4)],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x481c3b,_0x3da4be[_0x9eb8b2(0x271)])}};this['_session'][_0x9eb8b2(0x220)](_0x2e63f7,this['unitID']);},rt)),(this[_0x4b27ba(0x1f4)]=_0x5c2ef7,this[_0x4b27ba(0x191)]=_0x4020a6,this[_0x4b27ba(0x382)]=_0x1fcbe0,this[_0x4b27ba(0x215)]=_0x56177c,this[_0x4b27ba(0x18c)]=_0x1b4ebe,this['_univerInstanceService']=_0x1ee3c8,this[_0x4b27ba(0x362)]=_0x2b1765,this['_refRangeService']=_0x190ba0);}get[_0x51cf5f(0x38c)](){const _0x15c22b=_0x51cf5f;return this[_0x15c22b(0x1ed)]['getValue']();}get[_0x51cf5f(0x343)](){const _0x5e7b43=_0x51cf5f;return this['_roomMembers$'][_0x5e7b43(0x329)]();}[_0x51cf5f(0x277)](){const _0x570c6b=_0x51cf5f;super[_0x570c6b(0x277)](),this['_cursorInfo$'][_0x570c6b(0x19c)](new Map()),this[_0x570c6b(0x1ed)][_0x570c6b(0x21c)](),this['_roomMembers$'][_0x570c6b(0x19c)]([]),this[_0x570c6b(0x2e1)][_0x570c6b(0x21c)]();}[_0x51cf5f(0x22e)](){const _0x33dd0d=_0x51cf5f;this[_0x33dd0d(0x2f4)]||(this['_init']=!0x0,this['_session'][_0x33dd0d(0x354)][_0x33dd0d(0x3a7)](d[_0x33dd0d(0x20d)](this['dispose$']))[_0x33dd0d(0x254)](_0x316d0d=>{const _0x2268f1=_0x33dd0d;_0x316d0d===u['SessionStatus'][_0x2268f1(0x145)]?this['_toggleOnline']():this[_0x2268f1(0x207)]();}),this[_0x33dd0d(0x191)][_0x33dd0d(0x341)][_0x33dd0d(0x3a7)](d['takeUntil'](this[_0x33dd0d(0x28a)]))[_0x33dd0d(0x254)](_0x19aee9=>{const _0xddc0b0=_0x33dd0d,_0xc42298=_0x19aee9[_0xddc0b0(0x253)];_0xc42298===m[_0xddc0b0(0x16b)]['UPDATE_CURSOR']&&this[_0xddc0b0(0x210)](_0x19aee9),_0xc42298===m[_0xddc0b0(0x16b)][_0xddc0b0(0x187)]&&this[_0xddc0b0(0x370)](_0x19aee9);}),this['_onRefRangeChange'](),this[_0x33dd0d(0x1fa)](this['_commandService']['onCommandExecuted'](_0x54bcd5=>{const _0x2060fd=_0x33dd0d;if(this[_0x2060fd(0x17c)]&&_0x54bcd5['id']===g[_0x2060fd(0x17f)]['id']&&_0x54bcd5['params'][_0x2060fd(0x395)]===this[_0x2060fd(0x1f4)]){const _0x1dcf18=_0x54bcd5[_0x2060fd(0x3b5)];this[_0x2060fd(0x27e)](_0x1dcf18[_0x2060fd(0x32c)],_0x1dcf18[_0x2060fd(0x195)][0x0]);}})));}[_0x51cf5f(0x210)](_0x510931){const _0xfbab32=_0x51cf5f;var _0x553e9c,_0x39b48b;const {memberID:_0x5ce682,selection:_0x327146}=_0x510931['data'],{sheetName:_0xfd1b55,range:_0x1281f7}=Ee['deserializeRangeWithSheet'](_0x327146),_0x491e89={'name':(_0x39b48b=(_0x553e9c=this[_0xfbab32(0x18c)][_0xfbab32(0x282)](this[_0xfbab32(0x1f4)],_0x5ce682))==null?void 0x0:_0x553e9c[_0xfbab32(0x2e6)])!=null?_0x39b48b:_0xfbab32(0x2f1),'range':this['_getMergeRange'](_0xfd1b55,_0x1281f7),'sheetID':_0xfd1b55,'color':this[_0xfbab32(0x215)][_0xfbab32(0x35f)](_0x5ce682),'selection':_0x327146},_0x3b35ff=this[_0xfbab32(0x38c)];_0x3b35ff[_0xfbab32(0x2e8)](_0x5ce682,_0x491e89),this['_cursorInfo$'][_0xfbab32(0x19c)](_0x3b35ff);}[_0x51cf5f(0x370)](_0x42db7f){const _0x39d84b=_0x51cf5f,{memberID:_0x9a3642}=_0x42db7f[_0x39d84b(0x2eb)],_0x54d2fc=this[_0x39d84b(0x38c)];_0x54d2fc[_0x39d84b(0x1cb)](_0x9a3642),this['_cursorInfo$'][_0x39d84b(0x19c)](_0x54d2fc);}[_0x51cf5f(0x180)](_0x12121f,_0x1bb165){const _0x48aea5=_0x51cf5f;var _0x15abaf,_0xae6f81;const _0xa3a3fc=(_0xae6f81=(_0x15abaf=this[_0x48aea5(0x28d)][_0x48aea5(0x305)](this['unitID']))==null?void 0x0:_0x15abaf[_0x48aea5(0x2ec)](_0x12121f))==null?void 0x0:_0xae6f81[_0x48aea5(0x24c)]();return(_0xa3a3fc==null?void 0x0:_0xa3a3fc['find'](_0x4e1481=>a[_0x48aea5(0x173)][_0x48aea5(0x1e9)](_0x4e1481,_0x1bb165)))||_0x1bb165;}['_onRefRangeChange'](){const _0x13de0c=_0x51cf5f,_0x315432=new a[(_0x13de0c(0x193))](),_0x535d62=ot(),_0x52e055=()=>{const _0x35e45b=_0x13de0c;_0x315432['dispose']();const _0x232a12=(_0x5f090e,_0x2a9410,_0x3bccb2,_0x3eba40)=>{const _0x3b1cc3=_0x406e;let _0x54f620=[];switch(_0x5f090e['id']){case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x135)]:{_0x54f620=g[_0x3b1cc3(0x300)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x14e)]:{_0x54f620=g[_0x3b1cc3(0x359)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x1e0)]:{_0x54f620=g[_0x3b1cc3(0x168)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x208)]:{_0x54f620=g[_0x3b1cc3(0x250)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x38f)]:{_0x54f620=g['handleInsertRangeMoveRight'](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x27b)]:{_0x54f620=g[_0x3b1cc3(0x3a2)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x1d8)]:{_0x54f620=g[_0x3b1cc3(0x2de)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)]['RemoveColCommandId']:{_0x54f620=g[_0x3b1cc3(0x375)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x33e)]:{_0x54f620=g[_0x3b1cc3(0x28b)](_0x5f090e,_0x3eba40);break;}}const _0x1c8fc7=g[_0x3b1cc3(0x156)](_0x54f620,_0x3eba40),_0x395b5f=this['cursorInfo'][_0x3b1cc3(0x214)](_0x2a9410);if(_0x395b5f&&_0x1c8fc7){const _0xea599e={..._0x395b5f,'range':_0x1c8fc7};this[_0x3b1cc3(0x38c)][_0x3b1cc3(0x2e8)](_0x2a9410,_0xea599e),_0x535d62(()=>{const _0x1d8efb=_0x3b1cc3,_0x18e406=this[_0x1d8efb(0x3a3)][_0x1d8efb(0x1b6)](_0x1c8fc7,_0x533085=>(_0x18e406['dispose'](),_0x232a12(_0x533085,_0x2a9410,_0x3bccb2,_0x1c8fc7)));_0x315432['add'](_0x18e406);});}return{'redos':[],'undos':[]};};this[_0x35e45b(0x38c)]['forEach']((_0x2b670c,_0x46deb9)=>{const _0x16b4b5=_0x35e45b,{range:_0x29a154,sheetID:_0x1e6ad1}=_0x2b670c,_0x18b67d=this['_refRangeService']['registerRefRange'](_0x29a154,_0x5c8467=>(_0x18b67d[_0x16b4b5(0x277)](),_0x232a12(_0x5c8467,_0x46deb9,_0x1e6ad1,_0x29a154)));_0x315432[_0x16b4b5(0x1e2)](_0x18b67d);});};this[_0x13de0c(0x1fa)](a[_0x13de0c(0x30a)](this['_cursorInfo$'][_0x13de0c(0x254)](()=>{_0x52e055();})));}[_0x51cf5f(0x26b)](){const _0x3494c7=_0x51cf5f;var _0x4d15a6,_0x2efe53;if(this[_0x3494c7(0x17c)]=!0x0,((_0x4d15a6=this[_0x3494c7(0x28d)][_0x3494c7(0x340)]())==null?void 0x0:_0x4d15a6[_0x3494c7(0x14f)]())!==this[_0x3494c7(0x1f4)])return;const _0x3672bd=(_0x2efe53=this['_injector'][_0x3494c7(0x214)](g[_0x3494c7(0x39b)])[_0x3494c7(0x237)]())==null?void 0x0:_0x2efe53[0x0],_0x496bc9=this['_univerInstanceService'][_0x3494c7(0x2c8)](a[_0x3494c7(0x304)][_0x3494c7(0x2fd)])[_0x3494c7(0x171)]();_0x3672bd&&_0x496bc9&&this[_0x3494c7(0x27e)](_0x496bc9['getSheetId'](),_0x3672bd);}['_toggleOffline'](){const _0x419655=_0x51cf5f;this[_0x419655(0x17c)]=!0x1;}};Se=it([A(0x2,a[_0x51cf5f(0x249)](a['Injector'])),A(0x3,a[_0x51cf5f(0x249)](me)),A(0x4,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x267)])),A(0x5,a[_0x51cf5f(0x185)]),A(0x6,a[_0x51cf5f(0x36e)]),A(0x7,a[_0x51cf5f(0x249)](g[_0x51cf5f(0x384)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x1d0b39,_0x5da8be,_0x476082,_0x45587f)=>{const _0x4cc240=_0x51cf5f;for(var _0xe3d928=_0x45587f>0x1?void 0x0:_0x45587f?at(_0x5da8be,_0x476082):_0x5da8be,_0x457624=_0x1d0b39[_0x4cc240(0x296)]-0x1,_0x16ee72;_0x457624>=0x0;_0x457624--)(_0x16ee72=_0x1d0b39[_0x457624])&&(_0xe3d928=_0x16ee72(_0xe3d928)||_0xe3d928);return _0xe3d928;},ie=(_0x2f367c,_0x272923)=>(_0x2bc554,_0x56cfca)=>_0x272923(_0x2bc554,_0x56cfca,_0x2f367c);let x=class extends a[_0x51cf5f(0x298)]{constructor(_0x38b4a2,_0x199ead,_0xfad773){const _0x4008ac=_0x51cf5f;super(),h(this,_0x4008ac(0x1ca),new Map()),h(this,_0x4008ac(0x1c2),new d[(_0x4008ac(0x37e))]()),(this[_0x4008ac(0x28d)]=_0x38b4a2,this[_0x4008ac(0x382)]=_0x199ead,this[_0x4008ac(0x192)]=_0xfad773,this[_0x4008ac(0x2f4)]());}[_0x51cf5f(0x277)](){const _0xa0d7b6=_0x51cf5f;super[_0xa0d7b6(0x277)](),this[_0xa0d7b6(0x1c2)]['complete'](),this[_0xa0d7b6(0x1ca)][_0xa0d7b6(0x2ba)](_0x1603d4=>_0x1603d4['dispose']());}[_0x51cf5f(0x2a4)](_0x2fc904){const _0x3ebbbf=_0x51cf5f;return this[_0x3ebbbf(0x1ca)][_0x3ebbbf(0x2e2)](_0x2fc904)?this[_0x3ebbbf(0x1ca)][_0x3ebbbf(0x214)](_0x2fc904)['cursorInfo$']:this[_0x3ebbbf(0x1c2)]['pipe'](d[_0x3ebbbf(0x1d0)](_0x57e45d=>_0x57e45d[_0x3ebbbf(0x1f4)]===_0x2fc904),d[_0x3ebbbf(0x1d5)](_0x17b17f=>_0x17b17f['cursorInfo$']));}['_init'](){const _0x21f428=_0x51cf5f;this[_0x21f428(0x28d)][_0x21f428(0x1e1)](a[_0x21f428(0x304)][_0x21f428(0x2fd)])[_0x21f428(0x3a7)](d['takeUntil'](this['dispose$']))[_0x21f428(0x254)](async _0x29ff36=>{const _0x4b3590=_0x21f428,_0x21f92e=_0x29ff36[_0x4b3590(0x14f)](),_0x22a407=await this[_0x4b3590(0x1b2)](_0x21f92e);this[_0x4b3590(0x1c2)][_0x4b3590(0x19c)](_0x22a407),this[_0x4b3590(0x1ca)][_0x4b3590(0x2e8)](_0x21f92e,_0x22a407);}),this[_0x21f428(0x28d)][_0x21f428(0x1e1)](a[_0x21f428(0x304)][_0x21f428(0x288)])[_0x21f428(0x3a7)](d[_0x21f428(0x20d)](this['dispose$']))[_0x21f428(0x3a7)](d['filter'](_0x99cc9b=>!_0x99cc9b['getUnitId']()[_0x21f428(0x142)]('__')))[_0x21f428(0x254)](async _0x4b4ae3=>{const _0x23306=_0x21f428,_0x520eef=_0x4b4ae3['getUnitId'](),_0x3217e8=await this['_startDocCollabCursor'](_0x520eef);this['_entityInit$'][_0x23306(0x19c)](_0x3217e8),this['_entities'][_0x23306(0x2e8)](_0x520eef,_0x3217e8);}),d[_0x21f428(0x2fc)](this[_0x21f428(0x28d)][_0x21f428(0x29d)](a[_0x21f428(0x304)][_0x21f428(0x288)]),this[_0x21f428(0x28d)][_0x21f428(0x29d)](a[_0x21f428(0x304)]['UNIVER_SHEET']))[_0x21f428(0x3a7)](d[_0x21f428(0x20d)](this['dispose$']))['subscribe'](_0x3dffea=>{const _0x26fb62=_0x21f428,_0x34449a=_0x3dffea[_0x26fb62(0x14f)](),_0x2f6f4b=this[_0x26fb62(0x1ca)]['get'](_0x34449a);_0x2f6f4b&&(_0x2f6f4b[_0x26fb62(0x277)](),this['_entities'][_0x26fb62(0x1cb)](_0x34449a));});}async[_0x51cf5f(0x1b2)](_0x4f8e5b){const _0xfee5ee=_0x51cf5f,_0x565cb1=await this['_collabSessionService'][_0xfee5ee(0x2fe)](_0x4f8e5b),_0x370b73=this[_0xfee5ee(0x382)][_0xfee5ee(0x30f)](Se,_0x4f8e5b,_0x565cb1);return _0x370b73[_0xfee5ee(0x22e)](),_0x370b73;}async[_0x51cf5f(0x1eb)](_0x43339e){const _0x5683d9=_0x51cf5f,_0x1eaf9d=await this[_0x5683d9(0x192)][_0x5683d9(0x2fe)](_0x43339e),_0x223e33=this[_0x5683d9(0x382)][_0x5683d9(0x30f)](fe,_0x43339e,_0x1eaf9d);return _0x223e33['init'](),_0x223e33;}};x=ct([ie(0x0,a[_0x51cf5f(0x185)]),ie(0x1,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),ie(0x2,a['Inject'](u[_0x51cf5f(0x386)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x450f53,_0x28ddf3){const _0x25e9a3=_0x51cf5f;let {radius:_0x10bb36,width:_0x41d167,height:_0x9ea3d3}=_0x28ddf3;_0x10bb36=_0x10bb36!=null?_0x10bb36:0x0,_0x41d167=_0x41d167!=null?_0x41d167:0x1e,_0x9ea3d3=_0x9ea3d3!=null?_0x9ea3d3:0x1e;let _0x5ec22b=0x0,_0x15ab57=0x0,_0x13fb4f=0x0;_0x5ec22b=_0x15ab57=_0x13fb4f=Math[_0x25e9a3(0x217)](_0x10bb36,_0x41d167/0x2,_0x9ea3d3/0x2),_0x450f53[_0x25e9a3(0x257)](),_0x450f53[_0x25e9a3(0x31f)](_0x5ec22b,0x0),_0x450f53[_0x25e9a3(0x147)](_0x41d167-_0x15ab57,0x0),_0x450f53['arc'](_0x41d167-_0x15ab57,_0x15ab57,_0x15ab57,Math['PI']*0x3/0x2,0x0,!0x1),_0x450f53[_0x25e9a3(0x147)](_0x41d167,_0x9ea3d3-_0x13fb4f),_0x450f53[_0x25e9a3(0x202)](_0x41d167-_0x13fb4f,_0x9ea3d3-_0x13fb4f,_0x13fb4f,0x0,Math['PI']/0x2,!0x1),_0x450f53['lineTo'](0x0,_0x9ea3d3),_0x450f53[_0x25e9a3(0x147)](0x0,_0x5ec22b),_0x450f53['arc'](_0x5ec22b,_0x5ec22b,_0x5ec22b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x450f53[_0x25e9a3(0x1a1)](),_0x28ddf3[_0x25e9a3(0x2ff)]&&(_0x450f53['save'](),_0x450f53[_0x25e9a3(0x34b)]=_0x28ddf3['fill'],_0x28ddf3[_0x25e9a3(0x2bb)]==='evenodd'?_0x450f53[_0x25e9a3(0x2ff)](_0x25e9a3(0x2b7)):_0x450f53[_0x25e9a3(0x2ff)](),_0x450f53[_0x25e9a3(0x143)]());}class ee extends p[_0x51cf5f(0x189)]{constructor(_0x3ac461,_0x2699a7){const _0x1e335d=_0x51cf5f;super(_0x3ac461,_0x2699a7),h(this,_0x1e335d(0x39f)),h(this,_0x1e335d(0x36a)),(this['color']=_0x2699a7==null?void 0x0:_0x2699a7[_0x1e335d(0x39f)],this['text']=_0x2699a7==null?void 0x0:_0x2699a7[_0x1e335d(0x36a)]);}static[_0x51cf5f(0x28f)](_0x2c7975,_0x459ba9){const _0x16f6db=_0x51cf5f,{text:_0x3f0fb6,color:_0x46b91a}=_0x459ba9;_0x2c7975[_0x16f6db(0x14a)](),_0x2c7975[_0x16f6db(0x2a9)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5e704f=_0x2c7975['measureText'](_0x3f0fb6)[_0x16f6db(0x1bc)],_0x2e611f=Math[_0x16f6db(0x217)](_0x5e704f+0x2*ne,Re);_t(_0x2c7975,{'height':K,'radius':0x4,'width':_0x2e611f,'fill':_0x46b91a}),_0x2c7975[_0x16f6db(0x34b)]=_0x16f6db(0x2b0);const _0x5c6ed2=ne,_0x115ce5=K-lt,_0x542b5f=Re-0x2*ne;if(_0x5e704f>_0x542b5f){let _0x15f2fd='',_0x376e34=0x0;for(const _0x1d3f93 of _0x3f0fb6){const _0x35d8df=_0x2c7975[_0x16f6db(0x36d)](_0x1d3f93)['width'];if(_0x376e34+_0x35d8df<=_0x542b5f-_0x2c7975['measureText'](_0x16f6db(0x165))[_0x16f6db(0x1bc)])_0x15f2fd+=_0x1d3f93,_0x376e34+=_0x35d8df;else{_0x15f2fd+=_0x16f6db(0x165);break;}}_0x2c7975['fillText'](_0x15f2fd,_0x5c6ed2,_0x115ce5);}else _0x2c7975[_0x16f6db(0x252)](_0x3f0fb6,_0x5c6ed2,_0x115ce5);_0x2c7975[_0x16f6db(0x143)]();}[_0x51cf5f(0x16c)](_0x1ff4ab){const _0x2d2b2c=_0x51cf5f;ee[_0x2d2b2c(0x28f)](_0x1ff4ab,this);}}const re='collab-text-anchor-',ht=_0x51cf5f(0x381),ut=_0x51cf5f(0x345),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x51cf5f(0x18e);class De{constructor(_0x33b1f,_0x5a51ba,_0x1fe078,_0x4ab1a){const _0x4bc176=_0x51cf5f;h(this,_0x4bc176(0x2f2),[]),h(this,'_anchor',null),h(this,_0x4bc176(0x266),null),h(this,_0x4bc176(0x19f),null),h(this,'_hideTimer',null),h(this,_0x4bc176(0x172),null),(this[_0x4bc176(0x20e)]=_0x33b1f,this[_0x4bc176(0x12e)]=_0x5a51ba,this[_0x4bc176(0x25a)]=_0x1fe078,this[_0x4bc176(0x322)]=_0x4ab1a,this['_render']());}set[_0x51cf5f(0x29a)](_0x25a13f){const _0x341a9a=_0x51cf5f;_0x25a13f?(this[_0x341a9a(0x19f)]&&this[_0x341a9a(0x19f)][_0x341a9a(0x2a0)](),this['_textBubble']&&this[_0x341a9a(0x266)][_0x341a9a(0x356)]()):(this[_0x341a9a(0x19f)]&&this[_0x341a9a(0x19f)]['show'](),this['_textBubble']&&this[_0x341a9a(0x266)]['hide']());}[_0x51cf5f(0x277)](){const _0x2b8150=_0x51cf5f;for(const _0x3ec2ea of this['_shapes'])_0x3ec2ea[_0x2b8150(0x277)]();this[_0x2b8150(0x266)]&&this['_textBubble'][_0x2b8150(0x277)](),this[_0x2b8150(0x19f)]&&this[_0x2b8150(0x19f)][_0x2b8150(0x277)](),this['_anchor']&&this[_0x2b8150(0x2b6)][_0x2b8150(0x277)](),this[_0x2b8150(0x172)]&&this[_0x2b8150(0x172)]();}[_0x51cf5f(0x34d)](){const _0xa32359=_0x51cf5f;var _0x122512;const {_docSkeleton:_0x416c0b,_document:_0x20b77f}=this,{color:_0x16b05b,name:_0x53af48,ranges:_0x3e849f}=this['_cursor'],_0x133a7a=_0x20b77f[_0xa32359(0x1f3)](),{docsLeft:_0x8a3760,docsTop:_0x3b22ed}=_0x133a7a,_0x58df71=new b[(_0xa32359(0x175))](_0x133a7a,_0x416c0b);for(const {startOffset:_0x423276,endOffset:_0x19e12b,rangeType:_0xb75ea2,segmentId:_0x383456,segmentPage:_0xe526e0,collapsed:_0xc09131,isActive:_0x4ba9c7}of _0x3e849f){const _0xe27b27=_0x416c0b[_0xa32359(0x167)](_0x423276,!0x0,_0x383456,_0xe526e0);let _0x556fd8=_0x416c0b[_0xa32359(0x167)](_0x19e12b,!0x0,_0x383456,_0xe526e0);if(_0x556fd8==null&&(_0x556fd8=_0x416c0b[_0xa32359(0x167)](_0x19e12b-0x1,!0x1,_0x383456,_0xe526e0)),_0x4ba9c7){const {contentBoxPointGroup:_0x411ea3}=_0x58df71[_0xa32359(0x316)](_0x556fd8,_0x556fd8);if(_0x411ea3[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x393)](_0x16b05b,_0x411ea3,_0x8a3760,_0x3b22ed,_0x53af48),this[_0xa32359(0x172)]=this['_handleHover']();}if(_0xe27b27&&_0x556fd8){if(_0xb75ea2===a[_0xa32359(0x2ad)][_0xa32359(0x146)]){const _0x407fec=new b['NodePositionConvertToRectRange'](_0x133a7a,_0x416c0b),{pointGroup:_0x3d0b49}=(_0x122512=_0x407fec[_0xa32359(0x316)](_0xe27b27,_0x556fd8))!=null?_0x122512:{};if(_0x3d0b49==null||_0x3d0b49[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x281)](_0x16b05b,_0x3d0b49,_0x8a3760,_0x3b22ed);}else{if(!_0xc09131){const {borderBoxPointGroup:_0x4d78a7}=_0x58df71[_0xa32359(0x316)](_0xe27b27,_0x556fd8);if(_0x4d78a7[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x14b)](_0x16b05b,_0x4d78a7,_0x8a3760,_0x3b22ed);}}}}}[_0x51cf5f(0x393)](_0x58df96,_0x4bd9fa,_0x4cd7ab,_0x350458,_0x27351d){const _0x25b0d5=_0x51cf5f,_0x333da5=this[_0x25b0d5(0x3a1)](_0x4bd9fa),{left:_0x26394c,top:_0x27d377,height:_0x546360}=_0x333da5,_0x4b4814=this['_getScale'](),_0x48d969=ft/_0x4b4814,_0x474156=new p[(_0x25b0d5(0x378))](re+a['Tools'][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458,'height':_0x546360,'width':dt,'fill':_0x58df96||p[_0x25b0d5(0x200)](a['COLORS'][_0x25b0d5(0x206)],0x0),'strokeWidth':_0x48d969,'stroke':St,'evented':!0x0});this[_0x25b0d5(0x2b6)]=_0x474156,this[_0x25b0d5(0x12e)][_0x25b0d5(0x182)](_0x474156,b[_0x25b0d5(0x361)]);const _0x43c0cc=new p[(_0x25b0d5(0x378))](re+a[_0x25b0d5(0x311)][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458-oe/0x2,'height':oe,'width':oe,'fill':_0x58df96||p[_0x25b0d5(0x200)](a['COLORS'][_0x25b0d5(0x206)],0x0),'strokeWidth':0x0,'stroke':_0x58df96||p[_0x25b0d5(0x200)](a[_0x25b0d5(0x388)][_0x25b0d5(0x206)],0x0),'evented':!0x1});this[_0x25b0d5(0x19f)]=_0x43c0cc,this[_0x25b0d5(0x12e)][_0x25b0d5(0x182)](_0x43c0cc,b[_0x25b0d5(0x361)]);const _0x12656a=new ee(re+a['Tools'][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458-K,'text':_0x27351d,'color':_0x58df96});this[_0x25b0d5(0x266)]=_0x12656a,this[_0x25b0d5(0x12e)]['addObject'](_0x12656a,b['TEXT_RANGE_LAYER_INDEX']),this[_0x25b0d5(0x29a)]=!0x1;}[_0x51cf5f(0x13c)](){const _0x390c3c=_0x51cf5f,_0x52b040=this['_anchor'][_0x390c3c(0x1a9)][_0x390c3c(0x13b)](()=>{const _0x34096c=_0x390c3c;this[_0x34096c(0x29a)]=!0x0;}),_0x4b1db2=this[_0x390c3c(0x2b6)]['onPointerLeave$'][_0x390c3c(0x13b)](()=>{const _0x37c886=_0x390c3c;this[_0x37c886(0x366)]&&clearTimeout(this[_0x37c886(0x366)]),this['_hideTimer']=setTimeout(()=>{const _0x5df5f6=_0x37c886;this[_0x5df5f6(0x29a)]=!0x1;},0x7d0);});return()=>{const _0x52c314=_0x390c3c;_0x52b040[_0x52c314(0x26f)](),_0x4b1db2['unsubscribe']();};}[_0x51cf5f(0x14b)](_0x3ba318,_0x3556e1,_0x3fb631,_0xad2f45){const _0x25f10b=_0x51cf5f,_0x2f5ea3=new a['ColorKit'](_0x3ba318)[_0x25f10b(0x2e3)](0.2)[_0x25f10b(0x33c)](),_0x3babd3=new p[(_0x25f10b(0x364))](ht+a['Tools'][_0x25f10b(0x22c)](k),{'pointsGroup':_0x3556e1,'fill':_0x2f5ea3||p[_0x25f10b(0x200)](a[_0x25f10b(0x388)]['black'],0.2),'left':_0x3fb631,'top':_0xad2f45,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25f10b(0x326)](_0x3babd3),this[_0x25f10b(0x12e)][_0x25f10b(0x182)](_0x3babd3,b[_0x25f10b(0x361)]);}[_0x51cf5f(0x281)](_0x3d212d,_0x348cc4,_0x34b073,_0x4fda1f){const _0x4906d5=_0x51cf5f,_0x28523c=new a[(_0x4906d5(0x16a))](_0x3d212d)[_0x4906d5(0x2e3)](0.2)[_0x4906d5(0x33c)](),_0x297931=new p['RegularPolygon'](ut+a[_0x4906d5(0x311)]['generateRandomId'](k),{'pointsGroup':_0x348cc4,'fill':_0x28523c||p[_0x4906d5(0x200)](a[_0x4906d5(0x388)][_0x4906d5(0x206)],0.2),'left':_0x34b073,'top':_0x4fda1f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4906d5(0x2f2)][_0x4906d5(0x326)](_0x297931),this[_0x4906d5(0x12e)][_0x4906d5(0x182)](_0x297931,b['TEXT_RANGE_LAYER_INDEX']);}[_0x51cf5f(0x3a1)](_0x374919){const _0x52345a=_0x374919[0x0],_0x58a905=_0x52345a[0x0],_0x2beab5=_0x52345a[0x2],{x:_0x1bf9f1,y:_0x233568}=_0x58a905,{x:_0xd989d1,y:_0x536238}=_0x2beab5;return{'left':_0x1bf9f1,'top':_0x233568,'width':_0xd989d1-_0x1bf9f1,'height':_0x536238-_0x233568};}[_0x51cf5f(0x37f)](){const _0x8263d9=_0x51cf5f,{scaleX:_0x21eaeb,scaleY:_0x23ce96}=this['_scene'][_0x8263d9(0x30d)]();return Math[_0x8263d9(0x317)](_0x21eaeb,_0x23ce96);}}var It=Object[_0x51cf5f(0x377)],vt=(_0x131922,_0x4389f7,_0x4d4631,_0x465c13)=>{for(var _0x35c346=_0x465c13>0x1?void 0x0:_0x465c13?It(_0x4389f7,_0x4d4631):_0x4389f7,_0x4ace7e=_0x131922['length']-0x1,_0x424291;_0x4ace7e>=0x0;_0x4ace7e--)(_0x424291=_0x131922[_0x4ace7e])&&(_0x35c346=_0x424291(_0x35c346)||_0x35c346);return _0x35c346;},W=(_0x559a00,_0x1ba0bd)=>(_0x59f03d,_0x57256e)=>_0x1ba0bd(_0x59f03d,_0x57256e,_0x559a00);let Ie=class extends a[_0x51cf5f(0x298)]{constructor(_0x15b3a5,_0x563c3e,_0x225f1c,_0xfa7b71,_0x49deac){const _0x14059f=_0x51cf5f;super(),h(this,'_cursorShapes',[]),h(this,_0x14059f(0x258),[]),(this[_0x14059f(0x318)]=_0x15b3a5,this['_docSkeletonManagerService']=_0x563c3e,this[_0x14059f(0x262)]=_0x225f1c,this['_commandService']=_0xfa7b71,this[_0x14059f(0x1ea)]=_0x49deac,this['_init']());}[_0x51cf5f(0x2f4)](){const _0x5353ba=_0x51cf5f,_0x26f32e=this[_0x5353ba(0x318)]['unitId'],_0x4f06c1=this[_0x5353ba(0x1ef)];this[_0x5353ba(0x1fa)](d[_0x5353ba(0x34e)]([this[_0x5353ba(0x262)]['getCollabCursors$'](_0x26f32e),this['_themeService']['currentTheme$']])[_0x5353ba(0x3a7)]($['map'](([_0x4c1848,_0x1cd994])=>({'skeleton':_0x4f06c1[_0x5353ba(0x23c)](),'cursors':[..._0x4c1848[_0x5353ba(0x1d3)]()][_0x5353ba(0x2a2)](_0x1ab44c=>({..._0x1ab44c,'color':this[_0x5353ba(0x1ea)][_0x5353ba(0x2c1)](_0x1ab44c[_0x5353ba(0x39f)])}))})))[_0x5353ba(0x254)](_0x5e69b2=>{const _0xe61cf6=_0x5353ba;if(this[_0xe61cf6(0x312)](),_0x5e69b2){const {skeleton:_0x312bff,cursors:_0x5e60e5}=_0x5e69b2;this[_0xe61cf6(0x1db)](_0x312bff,_0x5e60e5);}})),this[_0x5353ba(0x13a)](),this[_0x5353ba(0x2f7)]();}[_0x51cf5f(0x1db)](_0x5b1477,_0x23326b){const _0x3acc58=_0x51cf5f,{scene:_0x5155f8,mainComponent:_0x620fce}=this[_0x3acc58(0x318)],_0x508ccb=_0x23326b['map'](_0x16d0c4=>new De(_0x16d0c4,_0x5155f8,_0x5b1477,_0x620fce));this[_0x3acc58(0x38e)]=_0x508ccb,this[_0x3acc58(0x258)]=_0x23326b;}['_refreshCollabCursors'](){const _0x54f367=_0x51cf5f;this[_0x54f367(0x312)]();const {scene:_0x30422f,mainComponent:_0x51f816}=this[_0x54f367(0x318)],_0x566a92=this[_0x54f367(0x1ef)][_0x54f367(0x23c)](),_0x44f22d=this['_cursors'][_0x54f367(0x307)](_0x2ee618=>new De(_0x2ee618,_0x30422f,_0x566a92,_0x51f816));this['_cursorShapes']=_0x44f22d;}[_0x51cf5f(0x312)](){const _0x191b59=_0x51cf5f;this[_0x191b59(0x38e)][_0x191b59(0x2ba)](_0x28d0a2=>_0x28d0a2[_0x191b59(0x277)]()),this[_0x191b59(0x38e)]=[];}[_0x51cf5f(0x2f7)](){const _0x5a1dd9=_0x51cf5f,_0x2d1abe=[b['SetDocZoomRatioOperation']['id']];this[_0x5a1dd9(0x1fa)](this[_0x5a1dd9(0x362)][_0x5a1dd9(0x1a3)](_0xab7b8e=>{const _0x225865=_0x5a1dd9;_0x2d1abe[_0x225865(0x37b)](_0xab7b8e['id'])&&_0xab7b8e[_0x225865(0x3b5)]['unitId']===this[_0x225865(0x318)]['unitId']&&this[_0x225865(0x350)]();}));}[_0x51cf5f(0x13a)](){const _0x435d37=_0x51cf5f;this[_0x435d37(0x1fa)](a['fromEventSubject'](this[_0x435d37(0x318)]['engine'][_0x435d37(0x260)])[_0x435d37(0x3a7)]($[_0x435d37(0x1d0)](_0x131b56=>_0x131b56['type']===p[_0x435d37(0x2dc)][_0x435d37(0x2a6)]),$[_0x435d37(0x32d)](0x10))[_0x435d37(0x254)](()=>{const _0x6955b9=_0x435d37;this[_0x6955b9(0x350)]();}));}};Ie=vt([W(0x1,a[_0x51cf5f(0x249)](Y[_0x51cf5f(0x334)])),W(0x2,a[_0x51cf5f(0x249)](x)),W(0x3,a[_0x51cf5f(0x36e)]),W(0x4,a['Inject'](a[_0x51cf5f(0x39e)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x51cf5f(0x189)]{constructor(_0xf2aa9c,_0x2e3e21){const _0x421466=_0x51cf5f;super(_0xf2aa9c,_0x2e3e21),h(this,_0x421466(0x2c5)),h(this,'_hovered',!0x1),h(this,_0x421466(0x209)),h(this,_0x421466(0x2d2),''),h(this,_0x421466(0x265),_0x421466(0x1c9)),h(this,_0x421466(0x310)),(_0x2e3e21&&this['setShapeProps'](_0x2e3e21),this[_0x421466(0x1a9)][_0x421466(0x13b)](()=>this[_0x421466(0x3a4)]({'hovered':!0x0})),this['onPointerLeave$'][_0x421466(0x13b)](()=>this[_0x421466(0x3a4)]({'hovered':!0x1})));}[_0x51cf5f(0x3a4)](_0x3c9e0c){const _0x1b7958=_0x51cf5f;var _0x2bbb0f,_0xa86e25,_0x635c81,_0x435665,_0x2547cd,_0x340cf2;this[_0x1b7958(0x2c5)]=(_0x2bbb0f=_0x3c9e0c['color'])!=null?_0x2bbb0f:this[_0x1b7958(0x2c5)],this['_hovered']=(_0xa86e25=_0x3c9e0c[_0x1b7958(0x133)])!=null?_0xa86e25:this[_0x1b7958(0x138)],this['_range']=(_0x635c81=_0x3c9e0c['range'])!=null?_0x635c81:this[_0x1b7958(0x209)],this[_0x1b7958(0x2d2)]=(_0x435665=_0x3c9e0c[_0x1b7958(0x2e6)])!=null?_0x435665:this[_0x1b7958(0x2d2)],this['_labelPosition']=(_0x2547cd=_0x3c9e0c['labelPosition'])!=null?_0x2547cd:this[_0x1b7958(0x265)],this['_backgroundColor']=(_0x340cf2=_0x3c9e0c[_0x1b7958(0x3a9)])!=null?_0x340cf2:this[_0x1b7958(0x310)],this['transformByState']({'width':_0x3c9e0c[_0x1b7958(0x1bc)],'height':_0x3c9e0c[_0x1b7958(0x22b)]});}['onMouseMove'](_0x2cc55a){const _0x1e27fa=_0x51cf5f,{row:_0x4929cd,column:_0x4d9ca9}=_0x2cc55a;if(_0x4929cd>=this[_0x1e27fa(0x209)][_0x1e27fa(0x233)]&&_0x4929cd<=this[_0x1e27fa(0x209)][_0x1e27fa(0x1f8)]&&_0x4d9ca9>=this[_0x1e27fa(0x209)][_0x1e27fa(0x2f9)]&&_0x4d9ca9<=this[_0x1e27fa(0x209)][_0x1e27fa(0x1e3)]){this[_0x1e27fa(0x3a4)]({'hovered':!0x0});return;}this[_0x1e27fa(0x3a4)]({'hovered':!0x1});}[_0x51cf5f(0x1a0)](_0x186743){return!0x1;}['_draw'](_0x40651c){const _0x1f6685=_0x51cf5f;p['Rect'][_0x1f6685(0x28f)](_0x40651c,{'width':this[_0x1f6685(0x1bc)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x1f6685(0x2c5)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x1f6685(0x138)]&&(_0x40651c[_0x1f6685(0x14a)](),_0x40651c['transform'](0x1,0x0,0x0,0x1,this[_0x1f6685(0x1bc)],this[_0x1f6685(0x265)]===_0x1f6685(0x349)?0x0:-0x14),ee[_0x1f6685(0x28f)](_0x40651c,{'text':this[_0x1f6685(0x2d2)],'color':this[_0x1f6685(0x2c5)]}),_0x40651c[_0x1f6685(0x143)]());}}var Ct=Object[_0x51cf5f(0x377)],pt=(_0x5c1351,_0x644aad,_0x3a8bb6,_0x2a1b9f)=>{const _0x29b97b=_0x51cf5f;for(var _0x51109d=_0x2a1b9f>0x1?void 0x0:_0x2a1b9f?Ct(_0x644aad,_0x3a8bb6):_0x644aad,_0x4cd2f5=_0x5c1351[_0x29b97b(0x296)]-0x1,_0x1a6eec;_0x4cd2f5>=0x0;_0x4cd2f5--)(_0x1a6eec=_0x5c1351[_0x4cd2f5])&&(_0x51109d=_0x1a6eec(_0x51109d)||_0x51109d);return _0x51109d;},ae=(_0x13c8a6,_0x1d2e40)=>(_0x417a08,_0x4171c9)=>_0x1d2e40(_0x417a08,_0x4171c9,_0x13c8a6);const bt=0x1389;let ve=class extends a[_0x51cf5f(0x298)]{constructor(_0x11f66a,_0x2c48d9,_0x396fa2,_0x5dbf37){const _0x34f8d5=_0x51cf5f;super(),h(this,_0x34f8d5(0x258),new Set()),h(this,'_lastPointer',null),(this[_0x34f8d5(0x318)]=_0x11f66a,this[_0x34f8d5(0x1a7)]=_0x2c48d9,this[_0x34f8d5(0x262)]=_0x396fa2,this[_0x34f8d5(0x1ea)]=_0x5dbf37,this['_init']());}['_init'](){const _0x2b3fd9=_0x51cf5f;this[_0x2b3fd9(0x1a7)][_0x2b3fd9(0x184)][_0x2b3fd9(0x3a7)]($[_0x2b3fd9(0x20d)](this[_0x2b3fd9(0x28a)]),$[_0x2b3fd9(0x1d5)](_0x41e596=>{const _0x281584=_0x2b3fd9;if(_0x41e596){const _0x2d6d38=_0x41e596[_0x281584(0x256)];return d[_0x281584(0x34e)](this[_0x281584(0x262)][_0x281584(0x2a4)](this['_context'][_0x281584(0x395)]),this[_0x281584(0x1ea)][_0x281584(0x242)])['pipe']($['map'](([_0x24adbd,_0xfd6433])=>{const _0x5386ca=_0x281584,_0x45f0b5=new Map();return _0x24adbd[_0x5386ca(0x2ba)]((_0x2f4edc,_0x5f5916)=>{const _0x118db8=_0x5386ca;if(_0x2f4edc['sheetID']===_0x2d6d38){const _0x563590={..._0x2f4edc};_0x563590[_0x118db8(0x39f)]=this[_0x118db8(0x1ea)][_0x118db8(0x2c1)](_0x2f4edc[_0x118db8(0x39f)]),_0x45f0b5['set'](_0x5f5916,_0x563590);}}),{'skeleton':_0x41e596,'cursors':_0x45f0b5};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3da971,cursors:_0x35ec40})=>{this['_removeCollabCursors'](),_0x3da971&&this['_updateCollabCursors'](_0x3da971,_0x35ec40);}),this[_0x2b3fd9(0x1a7)]['currentSkeleton$'][_0x2b3fd9(0x254)](_0x211b59=>{const _0x538361=_0x2b3fd9;if(_0x211b59==null)return;const {skeleton:_0x7be27b}=_0x211b59,{scene:_0x57d936}=this[_0x538361(0x318)];_0x57d936['onPointerMove$'][_0x538361(0x13b)](a['debounce'](_0x11ee46=>{const _0x727b2d=_0x538361;var _0xb7adb8,_0x2c1538;const {offsetX:_0x417606,offsetY:_0x4b0423}=_0x11ee46,{x:_0x35dbd7,y:_0x39a85d}=_0x57d936[_0x727b2d(0x33b)](p[_0x727b2d(0x132)][_0x727b2d(0x13f)]([_0x417606,_0x4b0423])),{scaleX:_0xb3c127,scaleY:_0x3b40ff}=_0x57d936[_0x727b2d(0x30d)](),_0x53241c=_0x57d936[_0x727b2d(0x327)](p[_0x727b2d(0x21d)][_0x727b2d(0x224)]),_0x2c4467=_0x57d936['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x727b2d(0x13f)]([_0x35dbd7,_0x39a85d]),_0x53241c),_0x4ca306=_0x7be27b[_0x727b2d(0x1a2)](_0x417606,_0x4b0423,_0xb3c127,_0x3b40ff,_0x2c4467);((_0xb7adb8=this[_0x727b2d(0x357)])==null?void 0x0:_0xb7adb8[_0x727b2d(0x222)])===_0x4ca306[_0x727b2d(0x222)]&&((_0x2c1538=this[_0x727b2d(0x357)])==null?void 0x0:_0x2c1538[_0x727b2d(0x1fd)])===_0x4ca306[_0x727b2d(0x1fd)]||this[_0x727b2d(0x258)][_0x727b2d(0x2ba)](_0x316a61=>{const _0x494b60=_0x727b2d;_0x316a61[_0x494b60(0x23b)](_0x4ca306);});},0x64));});}[_0x51cf5f(0x1db)](_0x50c8b8,_0x26eb85){const _0x119c0c=_0x51cf5f;var _0x2c1af3;const _0x3957d3=(_0x2c1af3=this[_0x119c0c(0x1a7)][_0x119c0c(0x2dd)]())==null?void 0x0:_0x2c1af3[_0x119c0c(0x24d)];if(!_0x3957d3)return;const _0xfc2998=this[_0x119c0c(0x179)]();if(!_0xfc2998)return;this['_cursors'][_0x119c0c(0x2ba)](_0x52b4e6=>{const _0x241bf3=_0x119c0c;_0x52b4e6[_0x241bf3(0x21f)]();});const {scene:_0x3682a5}=_0xfc2998,_0x2873e0=Et(Array[_0x119c0c(0x1f0)](_0x26eb85[_0x119c0c(0x1d3)]()))[_0x119c0c(0x307)](_0x338dca=>{const _0x20a714=_0x119c0c,{color:_0x1e64ae,range:_0x58ec11,name:_0x53e920,selection:_0x54a107,sheetID:_0x1070d3}=_0x338dca,{startColumn:_0x1ac2a9,startRow:_0x3c173c,endColumn:_0x5b45e9,endRow:_0x31b46f}=_0x58ec11,_0x2fad32=X[_0x20a714(0x2c9)](_0x3c173c,_0x1ac2a9,_0x3682a5,_0x3957d3),_0x4fe6b0=X[_0x20a714(0x2c9)](_0x31b46f,_0x5b45e9,_0x3682a5,_0x3957d3),{columnHeaderHeightAndMarginTop:_0x267f73}=_0x3957d3,{startX:_0x416ed1,startY:_0x9539ac}=_0x2fad32,{endX:_0x125e17,endY:_0x2f6e56}=_0x4fe6b0,_0x17c97e=_0x125e17-_0x416ed1,_0x1accb0=_0x2f6e56-_0x9539ac,_0x14ae2e={'labelPosition':_0x9539ac-_0x267f73>=K?'top':_0x20a714(0x349),'sheetID':_0x1070d3,'range':_0x58ec11,'color':_0x1e64ae,'name':_0x53e920,'selection':_0x54a107,'left':_0x416ed1,'top':_0x9539ac,'width':_0x17c97e,'height':_0x1accb0,'evented':!0x1,'zIndex':bt};return new Pe(_0x53e920,_0x14ae2e);});_0x3682a5[_0x119c0c(0x1f9)](_0x2873e0,gt),this[_0x119c0c(0x258)]=new Set(_0x2873e0);}[_0x51cf5f(0x312)](){const _0x475cdc=_0x51cf5f;var _0x1e574e;(_0x1e574e=this[_0x475cdc(0x258)])==null||_0x1e574e[_0x475cdc(0x2ba)](_0x544786=>_0x544786['dispose']());}[_0x51cf5f(0x179)](){const _0x2f9db5=_0x51cf5f;return X['getSheetObject'](this[_0x2f9db5(0x318)][_0x2f9db5(0x31e)],this[_0x2f9db5(0x318)]);}};ve=pt([ae(0x1,a[_0x51cf5f(0x249)](X[_0x51cf5f(0x373)])),ae(0x2,a[_0x51cf5f(0x249)](x)),ae(0x3,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x39e)]))],ve);function Et(_0x3a87fe){const _0x40550c=_0x51cf5f,_0x515592=new Map();return _0x3a87fe[_0x40550c(0x2ba)](_0x186903=>{const _0x24ec77=_0x40550c;if(_0x515592[_0x24ec77(0x2e2)](_0x186903['selection'])){const _0x3aacc4=_0x515592[_0x24ec77(0x214)](_0x186903[_0x24ec77(0x38a)]);_0x3aacc4[_0x24ec77(0x2e6)]+=',\x20'+_0x186903[_0x24ec77(0x2e6)];}else _0x515592[_0x24ec77(0x2e8)](_0x186903[_0x24ec77(0x38a)],_0x186903);}),Array[_0x40550c(0x1f0)](_0x515592[_0x40550c(0x1d3)]());}var E=function(){const _0x10219d=_0x51cf5f;return E=Object[_0x10219d(0x181)]||function(_0x16a1e4){const _0x36c406=_0x10219d;for(var _0xac90bb,_0x1d2b03=0x1,_0x2b6e27=arguments[_0x36c406(0x296)];_0x1d2b03<_0x2b6e27;_0x1d2b03++){_0xac90bb=arguments[_0x1d2b03];for(var _0x224f7b in _0xac90bb)Object['prototype']['hasOwnProperty']['call'](_0xac90bb,_0x224f7b)&&(_0x16a1e4[_0x224f7b]=_0xac90bb[_0x224f7b]);}return _0x16a1e4;},E[_0x10219d(0x24f)](this,arguments);},Tt=function(_0x3bb10e,_0x53406d){const _0x3e21ec=_0x51cf5f;var _0x4e6384={};for(var _0x4c4f82 in _0x3bb10e)Object['prototype'][_0x3e21ec(0x28e)][_0x3e21ec(0x325)](_0x3bb10e,_0x4c4f82)&&_0x53406d[_0x3e21ec(0x36c)](_0x4c4f82)<0x0&&(_0x4e6384[_0x4c4f82]=_0x3bb10e[_0x4c4f82]);if(_0x3bb10e!=null&&typeof Object[_0x3e21ec(0x3b2)]==_0x3e21ec(0x37d)){for(var _0x4e1da7=0x0,_0x4c4f82=Object['getOwnPropertySymbols'](_0x3bb10e);_0x4e1da7<_0x4c4f82[_0x3e21ec(0x296)];_0x4e1da7++)_0x53406d[_0x3e21ec(0x36c)](_0x4c4f82[_0x4e1da7])<0x0&&Object[_0x3e21ec(0x160)][_0x3e21ec(0x1be)][_0x3e21ec(0x325)](_0x3bb10e,_0x4c4f82[_0x4e1da7])&&(_0x4e6384[_0x4c4f82[_0x4e1da7]]=_0x3bb10e[_0x4c4f82[_0x4e1da7]]);}return _0x4e6384;},pe=M[_0x51cf5f(0x3b8)](function(_0x1fc6e4,_0x8da0c3){const _0x231e47=_0x51cf5f;var _0x436ac0=_0x1fc6e4[_0x231e47(0x338)],_0x5980ce=_0x1fc6e4['id'],_0x47b912=_0x1fc6e4[_0x231e47(0x303)],_0x455995=_0x1fc6e4[_0x231e47(0x27a)],_0x162d03=Tt(_0x1fc6e4,[_0x231e47(0x338),'id',_0x231e47(0x303),'extend']),_0x16ccac=_0x231e47(0x2b9)[_0x231e47(0x1ce)](_0x5980ce,'\x20')[_0x231e47(0x1ce)](_0x47b912||'')['trim'](),_0x5c1094=M[_0x231e47(0x150)]('_'[_0x231e47(0x1ce)](Dt()));return Ae(_0x436ac0,''[_0x231e47(0x1ce)](_0x5980ce),{'defIds':_0x436ac0[_0x231e47(0x369)],'idSuffix':_0x5c1094[_0x231e47(0x2d7)]},E({'ref':_0x8da0c3,'className':_0x16ccac},_0x162d03),_0x455995);});function Ae(_0x5de706,_0x41bdbf,_0x107330,_0x632bf2,_0x25038b){const _0x2cf17c=_0x51cf5f;return M[_0x2cf17c(0x30b)](_0x5de706[_0x2cf17c(0x29f)],E(E({'key':_0x41bdbf},Ot(_0x5de706,_0x107330,_0x25038b)),_0x632bf2),(Rt(_0x5de706,_0x107330)['children']||[])[_0x2cf17c(0x307)](function(_0x3527b0,_0x477bc1){const _0x1a18bb=_0x2cf17c;return Ae(_0x3527b0,''['concat'](_0x41bdbf,'-')[_0x1a18bb(0x1ce)](_0x5de706[_0x1a18bb(0x29f)],'-')['concat'](_0x477bc1),_0x107330,void 0x0,_0x25038b);}));}function Ot(_0xe26fbe,_0x50e4fc,_0x3984e3){const _0x5476a2=_0x51cf5f;var _0x5499f4=E({},_0xe26fbe[_0x5476a2(0x32b)]);_0x3984e3!=null&&_0x3984e3['colorChannel1']&&_0x5499f4[_0x5476a2(0x2ff)]==='colorChannel1'&&(_0x5499f4[_0x5476a2(0x2ff)]=_0x3984e3[_0x5476a2(0x204)]),_0xe26fbe['tag']==='mask'&&_0x5499f4['id']&&(_0x5499f4['id']=_0x5499f4['id']+_0x50e4fc[_0x5476a2(0x20c)]),Object[_0x5476a2(0x1b0)](_0x5499f4)[_0x5476a2(0x2ba)](function(_0x1ea39a){const _0xca0e28=_0x5476a2;var _0x35b175=_0x1ea39a[0x0],_0x29dc03=_0x1ea39a[0x1];_0x35b175==='mask'&&typeof _0x29dc03==_0xca0e28(0x308)&&(_0x5499f4[_0x35b175]=_0x29dc03[_0xca0e28(0x1d9)](/url\(#(.*)\)/,_0xca0e28(0x2d4)['concat'](_0x50e4fc[_0xca0e28(0x20c)],')')));});var _0x4014cf=_0x50e4fc[_0x5476a2(0x369)];return!_0x4014cf||_0x4014cf[_0x5476a2(0x296)]===0x0||(_0xe26fbe['tag']===_0x5476a2(0x301)&&_0x5499f4['xlink:href']&&(_0x5499f4[_0x5476a2(0x251)]=_0x5499f4[_0x5476a2(0x251)]+_0x50e4fc['idSuffix']),Object[_0x5476a2(0x1b0)](_0x5499f4)[_0x5476a2(0x2ba)](function(_0x3d52f5){const _0x9cd9b1=_0x5476a2;var _0xb1b29e=_0x3d52f5[0x0],_0x2c4aaf=_0x3d52f5[0x1];typeof _0x2c4aaf==_0x9cd9b1(0x308)&&(_0x5499f4[_0xb1b29e]=_0x2c4aaf[_0x9cd9b1(0x1d9)](/url\(#(.*)\)/,_0x9cd9b1(0x2d4)[_0x9cd9b1(0x1ce)](_0x50e4fc[_0x9cd9b1(0x20c)],')')));})),_0x5499f4;}function Rt(_0x44deee,_0xfa5c2e){const _0x2f51aa=_0x51cf5f;var _0x5e0a8b,_0x11b7a4=_0xfa5c2e[_0x2f51aa(0x369)];return!_0x11b7a4||_0x11b7a4[_0x2f51aa(0x296)]===0x0?_0x44deee:_0x44deee[_0x2f51aa(0x29f)]===_0x2f51aa(0x239)&&(!((_0x5e0a8b=_0x44deee['children'])===null||_0x5e0a8b===void 0x0)&&_0x5e0a8b[_0x2f51aa(0x296)])?E(E({},_0x44deee),{'children':_0x44deee[_0x2f51aa(0x1f5)][_0x2f51aa(0x307)](function(_0x418c8b){const _0x5a2f08=_0x2f51aa;return typeof _0x418c8b[_0x5a2f08(0x32b)]['id']=='string'&&_0x11b7a4&&_0x11b7a4['includes'](_0x418c8b[_0x5a2f08(0x32b)]['id'])?E(E({},_0x418c8b),{'attrs':E(E({},_0x418c8b[_0x5a2f08(0x32b)]),{'id':_0x418c8b[_0x5a2f08(0x32b)]['id']+_0xfa5c2e['idSuffix']})}):_0x418c8b;})}):_0x44deee;}function Dt(){const _0x181869=_0x51cf5f;return Math[_0x181869(0x374)]()[_0x181869(0x2f3)](0x24)[_0x181869(0x157)](0x2,0x8);}pe[_0x51cf5f(0x1d6)]=_0x51cf5f(0x2d3);var Ut={'tag':_0x51cf5f(0x14c),'attrs':{'xmlns':_0x51cf5f(0x328),'fill':_0x51cf5f(0x39a),'viewBox':'0\x200\x2016\x2016','width':_0x51cf5f(0x313),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x51cf5f(0x2b3)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x51cf5f(0x196),'strokeLinecap':_0x51cf5f(0x177),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x51cf5f(0x239),'attrs':{},'children':[{'tag':_0x51cf5f(0x1ad),'attrs':{'id':_0x51cf5f(0x1f6)},'children':[{'tag':'path','attrs':{'fill':_0x51cf5f(0x3b1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M['forwardRef'](function(_0x1c96bf,_0x3f05ba){const _0x3b4a05=_0x51cf5f;return M['createElement'](pe,Object[_0x3b4a05(0x181)]({},_0x1c96bf,{'id':_0x3b4a05(0x243),'ref':_0x3f05ba,'icon':Ut}));});ye[_0x51cf5f(0x1d6)]=_0x51cf5f(0x389);var Nt={'tag':_0x51cf5f(0x14c),'attrs':{'xmlns':_0x51cf5f(0x328),'fill':_0x51cf5f(0x39a),'viewBox':'0\x200\x2017\x2016','width':_0x51cf5f(0x313),'height':_0x51cf5f(0x313)},'children':[{'tag':'g','attrs':{'clipPath':_0x51cf5f(0x186)},'children':[{'tag':_0x51cf5f(0x3b0),'attrs':{'stroke':_0x51cf5f(0x2c7),'d':_0x51cf5f(0x2ef),'strokeLinecap':_0x51cf5f(0x177),'strokeLinejoin':_0x51cf5f(0x177),'strokeWidth':1.2}}]},{'tag':_0x51cf5f(0x239),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51cf5f(0x32e)},'children':[{'tag':'path','attrs':{'fill':_0x51cf5f(0x3b1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x51cf5f(0x32e)]},$e=M['forwardRef'](function(_0x43c29e,_0xe0745e){const _0x3271f5=_0x51cf5f;return M[_0x3271f5(0x30b)](pe,Object[_0x3271f5(0x181)]({},_0x43c29e,{'id':_0x3271f5(0x1fb),'ref':_0xe0745e,'icon':Nt}));});$e[_0x51cf5f(0x1d6)]=_0x51cf5f(0x36b);function Mt(_0x1385c7){const _0x33d734=_0x51cf5f;switch(_0x1385c7){case u[_0x33d734(0x198)][_0x33d734(0x3a8)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x33d734(0x244)]:return'collabStatus.conflict';case u[_0x33d734(0x198)][_0x33d734(0x29c)]:return _0x33d734(0x34a);case u[_0x33d734(0x198)][_0x33d734(0x1cf)]:return _0x33d734(0x248);case u[_0x33d734(0x198)][_0x33d734(0x30c)]:case u[_0x33d734(0x198)]['AWAITING_WITH_PENDING']:return _0x33d734(0x2cb);case u['CollaborationStatus']['SYNCED']:case u[_0x33d734(0x198)][_0x33d734(0x27c)]:return _0x33d734(0x280);}}function xe(_0x576c68){const _0x5c7bb3=_0x51cf5f,{status$:_0x494575}=_0x576c68,_0x51ad1f=T[_0x5c7bb3(0x2bf)](_0x494575,u[_0x5c7bb3(0x198)]['NOT_COLLAB']),_0x4f91d6=T['useDependency'](a[_0x5c7bb3(0x306)]),_0x3a7249=T['useDependency'](u[_0x5c7bb3(0x386)]),_0x53b73b=_0x51ad1f!==u[_0x5c7bb3(0x198)]['OFFLINE'],_0x38b954=_0x4f91d6['t'](Mt(_0x51ad1f)),_0x2c5263=_0x53b73b?w[_0x5c7bb3(0x392)]($e,{}):w['jsx'](ye,{}),_0x52cbeb=M[_0x5c7bb3(0x2ab)](()=>{_0x53b73b||_0x3a7249['reconnect']();},[_0x53b73b,_0x3a7249]);function _0x51bac8(){const _0x362335=_0x5c7bb3;return w['jsxs'](_0x362335(0x205),{'className':'univer-flex\x20univer-items-center','onClick':_0x52cbeb,'children':[w[_0x362335(0x392)](_0x362335(0x205),{'className':D['clsx'](_0x362335(0x2f5),{'univer-text-green-500':_0x53b73b,'univer-text-red-500':!_0x53b73b}),'children':_0x2c5263}),w[_0x362335(0x392)]('div',{'className':_0x362335(0x1af),'children':_0x38b954})]});}return _0x53b73b?_0x51bac8():w[_0x5c7bb3(0x392)](D[_0x5c7bb3(0x333)],{'title':_0x4f91d6['t']('collab-client.tooltip.reconnect'),'children':_0x51bac8()});}var Lt=Object[_0x51cf5f(0x377)],wt=(_0x218584,_0x4a7c5d,_0x35588e,_0x5800d6)=>{const _0x1e0e7a=_0x51cf5f;for(var _0x1e1333=_0x5800d6>0x1?void 0x0:_0x5800d6?Lt(_0x4a7c5d,_0x35588e):_0x4a7c5d,_0x328c7c=_0x218584[_0x1e0e7a(0x296)]-0x1,_0x5da06c;_0x328c7c>=0x0;_0x328c7c--)(_0x5da06c=_0x218584[_0x328c7c])&&(_0x1e1333=_0x5da06c(_0x1e1333)||_0x1e1333);return _0x1e1333;},V=(_0x222b94,_0x47e494)=>(_0x394f17,_0x467f15)=>_0x47e494(_0x394f17,_0x467f15,_0x222b94);exports[_0x51cf5f(0x1ba)]=class extends a[_0x51cf5f(0x188)]{constructor(_0x1a6b11,_0x64ac2d,_0x266334,_0x44a814){const _0xc4890f=_0x51cf5f;super(),h(this,_0xc4890f(0x1ec),new d[(_0xc4890f(0x365))](u['CollaborationStatus'][_0xc4890f(0x1cf)])),(this[_0xc4890f(0x28d)]=_0x1a6b11,this['_injector']=_0x64ac2d,this[_0xc4890f(0x3b6)]=_0x266334,this[_0xc4890f(0x263)]=_0x44a814,this[_0xc4890f(0x15b)](),this[_0xc4890f(0x1b9)]());}[_0x51cf5f(0x1b9)](){const _0x14fbf4=_0x51cf5f;this[_0x14fbf4(0x1fa)](this[_0x14fbf4(0x28d)][_0x14fbf4(0x321)][_0x14fbf4(0x3a7)](d[_0x14fbf4(0x1d5)](()=>{const _0x2f0f0d=_0x14fbf4,_0x5993ec=this['_univerInstanceService'][_0x2f0f0d(0x340)]();return _0x5993ec?this[_0x2f0f0d(0x3b6)][_0x2f0f0d(0x3ad)](_0x5993ec[_0x2f0f0d(0x14f)]()):d['of'](null);}),d['switchMap'](_0x342d49=>_0x342d49?_0x342d49[_0x14fbf4(0x234)]:d['of'](u[_0x14fbf4(0x198)][_0x14fbf4(0x1cf)])))['subscribe'](_0xe9e5b3=>{const _0x366c70=_0x14fbf4;this[_0x366c70(0x1ec)][_0x366c70(0x19c)](_0xe9e5b3);}));}[_0x51cf5f(0x15b)](){const _0x416cb6=_0x51cf5f;this[_0x416cb6(0x1fa)](this[_0x416cb6(0x263)]['registerComponent'](T[_0x416cb6(0x1a5)][_0x416cb6(0x161)],()=>T['connectInjector'](Pt({'status$':this[_0x416cb6(0x1ec)][_0x416cb6(0x387)]()}),this[_0x416cb6(0x382)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x51cf5f(0x2be)])),V(0x2,a['Inject'](u[_0x51cf5f(0x162)])),V(0x3,T[_0x51cf5f(0x3a6)])],exports[_0x51cf5f(0x1ba)]);function Pt(_0x3eda08){const {status$:_0x412cba}=_0x3eda08;return function(){const _0x2744bd=_0x406e;return w[_0x2744bd(0x392)](xe,{'status$':_0x412cba});};}var At=Object[_0x51cf5f(0x377)],yt=(_0x3b8089,_0x49e7e1,_0x42bd50,_0x4535d0)=>{const _0x22c50b=_0x51cf5f;for(var _0x27a46c=_0x4535d0>0x1?void 0x0:_0x4535d0?At(_0x49e7e1,_0x42bd50):_0x49e7e1,_0x3b80f6=_0x3b8089[_0x22c50b(0x296)]-0x1,_0x133195;_0x3b80f6>=0x0;_0x3b80f6--)(_0x133195=_0x3b8089[_0x3b80f6])&&(_0x27a46c=_0x133195(_0x27a46c)||_0x27a46c);return _0x27a46c;},y=(_0xf8c425,_0x44e5d9)=>(_0x1af55f,_0x38195b)=>_0x44e5d9(_0x1af55f,_0x38195b,_0xf8c425);let q=class extends a[_0x51cf5f(0x188)]{constructor(_0x35a31b,_0x2a4fbb,_0x54cfff,_0x199c06,_0x1d4640,_0x3edd5d){const _0x138ba3=_0x51cf5f;super(),this[_0x138ba3(0x1d1)]=_0x35a31b,this['_localCacheService']=_0x2a4fbb,this[_0x138ba3(0x21b)]=_0x54cfff,this[_0x138ba3(0x1a8)]=_0x199c06,this[_0x138ba3(0x15a)]=_0x1d4640,this[_0x138ba3(0x1e5)]=_0x3edd5d,this[_0x138ba3(0x35a)](),this[_0x138ba3(0x35e)]();}[_0x51cf5f(0x35a)](){const _0x3ab1dd=_0x51cf5f;this[_0x3ab1dd(0x1fa)](this[_0x3ab1dd(0x1d1)][_0x3ab1dd(0x391)](()=>{const _0x52952c=_0x3ab1dd;if(this['_localCacheService'][_0x52952c(0x15d)][_0x52952c(0x335)])return this[_0x52952c(0x1e5)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x41fc97=_0x51cf5f;this['disposeWithMe'](this[_0x41fc97(0x21b)][_0x41fc97(0x341)][_0x41fc97(0x254)](_0x57a416=>{const _0x5be16a=_0x41fc97;_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x276)]&&this['_messageService'][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x35c))}),_0x57a416['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t']('collaboration.closeRoom')}),_0x57a416['id']===u[_0x5be16a(0x15e)]['PERMISSION_DENIED']&&this[_0x5be16a(0x15a)]['show']({'title':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x2ae)),'content':this[_0x5be16a(0x1e5)]['t']('permission.content'),'type':_0x5be16a(0x2d9),'duration':0x0}),_0x57a416['id']===u['CollaborationUIEventId'][_0x5be16a(0x244)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x2ca)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x12c))+'('+_0x57a416[_0x5be16a(0x2eb)]+')'}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x2a8)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this['_localeService']['t'](_0x57a416[_0x5be16a(0x2eb)]||'')}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x190)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x270))}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x1e7)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)]['Error'],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x2d0))}),_0x57a416['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x2ca)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x21e))});}));}};q=yt([y(0x0,T[_0x51cf5f(0x291)]),y(0x1,u[_0x51cf5f(0x278)]),y(0x2,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x3b3)])),y(0x3,T[_0x51cf5f(0x35d)]),y(0x4,T[_0x51cf5f(0x332)]),y(0x5,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x306)]))],q);const $t=_0x51cf5f(0x213),Ue={},be=a[_0x51cf5f(0x23f)](_0x51cf5f(0x314));var xt=Object[_0x51cf5f(0x377)],jt=(_0x28b395,_0x31eded,_0x1b5de5,_0x12bbf5)=>{const _0x5c1966=_0x51cf5f;for(var _0x5e9efb=_0x12bbf5>0x1?void 0x0:_0x12bbf5?xt(_0x31eded,_0x1b5de5):_0x31eded,_0xa63a4c=_0x28b395[_0x5c1966(0x296)]-0x1,_0xc8dade;_0xa63a4c>=0x0;_0xa63a4c--)(_0xc8dade=_0x28b395[_0xa63a4c])&&(_0x5e9efb=_0xc8dade(_0x5e9efb)||_0x5e9efb);return _0x5e9efb;},H=(_0x19acc5,_0x1604e4)=>(_0x24a8fd,_0x4ed6d5)=>_0x1604e4(_0x24a8fd,_0x4ed6d5,_0x19acc5);exports['CollaborationDataLoaderController']=class extends a[_0x51cf5f(0x298)]{constructor(_0x160fbc,_0x41e3fb,_0x2a603e,_0x2e3f84,_0x184899){const _0x1eca94=_0x51cf5f;super(),this['_urlService']=_0x160fbc,this['_logService']=_0x41e3fb,this[_0x1eca94(0x362)]=_0x2a603e,this['_dataLoaderService']=_0x2e3f84,_0x184899?_0x184899==null||_0x184899['whenReady']()[_0x1eca94(0x2b1)](()=>this[_0x1eca94(0x2f4)]()):(this[_0x1eca94(0x309)][_0x1eca94(0x353)]('[CollaborationDataLoaderController]',_0x1eca94(0x390)),this[_0x1eca94(0x2f4)]());}async['_init'](){const _0x21bbf7=_0x51cf5f,_0x1346bc=this['_urlService']['getParam'](_0x21bbf7(0x31e)),_0xabe503=this['_urlService'][_0x21bbf7(0x39d)](_0x21bbf7(0x1ae)),_0x5e334c=this[_0x21bbf7(0x1aa)][_0x21bbf7(0x39d)](_0x21bbf7(0x1c7));if(!_0x1346bc||!_0xabe503){this[_0x21bbf7(0x309)][_0x21bbf7(0x353)](_0x21bbf7(0x1b7),_0x21bbf7(0x2f0));return;}const _0x16e532=await this[_0x21bbf7(0x275)][_0x21bbf7(0x236)](_0x1346bc,Number(_0xabe503),_0x5e334c);_0x16e532&&_0x16e532 instanceof a[_0x21bbf7(0x2cc)]&&this['_setupSubUnitSync'](_0x16e532);}async[_0x51cf5f(0x211)](_0x519cde){const _0x57351a=_0x51cf5f;await this[_0x57351a(0x279)](_0x519cde),_0x519cde[_0x57351a(0x12f)]['pipe'](d[_0x57351a(0x20d)](this[_0x57351a(0x28a)]))['subscribe'](_0x1313a4=>{_0x1313a4&&this['_updateURLWithCurrentState'](_0x1313a4);}),this[_0x57351a(0x1aa)][_0x57351a(0x25e)][_0x57351a(0x3a7)](d[_0x57351a(0x20d)](this[_0x57351a(0x28a)]))['subscribe'](()=>this[_0x57351a(0x279)](_0x519cde));}[_0x51cf5f(0x344)](_0x1b02ed,_0x21cf13=!0x1){const _0x2eba21=_0x51cf5f,_0x34eb94=this[_0x2eba21(0x1aa)]['getParam'](_0x2eba21(0x1c7));_0x1b02ed['getSheetId']()!==_0x34eb94&&this[_0x2eba21(0x1aa)][_0x2eba21(0x141)]('subunit',_0x1b02ed[_0x2eba21(0x399)](),_0x21cf13);}async[_0x51cf5f(0x279)](_0x2355ee){const _0x2062ae=_0x51cf5f;var _0x4fee57;const _0x128a85=this[_0x2062ae(0x1aa)]['getParam'](_0x2062ae(0x1c7));if(!_0x128a85||!_0x2355ee[_0x2062ae(0x2ec)](_0x128a85)){const _0x2cc81e=_0x2355ee['getUnhiddenWorksheets']()[0x0],_0x5d92d8=_0x2355ee[_0x2062ae(0x2ec)](_0x2cc81e);if(!_0x5d92d8)return;this[_0x2062ae(0x344)](_0x5d92d8,!0x0),await this[_0x2062ae(0x362)][_0x2062ae(0x170)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2355ee[_0x2062ae(0x14f)](),'subUnitId':_0x2cc81e});return;}((_0x4fee57=_0x2355ee['getActiveSheet']())==null?void 0x0:_0x4fee57[_0x2062ae(0x399)]())!==_0x128a85&&await this['_commandService'][_0x2062ae(0x170)](g[_0x2062ae(0x319)]['id'],{'unitId':_0x2355ee[_0x2062ae(0x14f)](),'subUnitId':_0x128a85});}},exports[_0x51cf5f(0x363)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x51cf5f(0x36e)]),H(0x3,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x2c4)])),H(0x4,a[_0x51cf5f(0x2e4)](Ke['IRemoteInstanceService']))],exports[_0x51cf5f(0x363)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x274193,_0x1a8102,_0x425233,_0x38f088)=>{const _0x2b3de3=_0x51cf5f;for(var _0x33b0e5=_0x38f088>0x1?void 0x0:_0x38f088?Bt(_0x1a8102,_0x425233):_0x1a8102,_0x12b2e3=_0x274193[_0x2b3de3(0x296)]-0x1,_0x383b4e;_0x12b2e3>=0x0;_0x12b2e3--)(_0x383b4e=_0x274193[_0x12b2e3])&&(_0x33b0e5=_0x383b4e(_0x33b0e5)||_0x33b0e5);return _0x33b0e5;},ce=(_0x531d29,_0x50f2dc)=>(_0x5cd163,_0x1cbd7d)=>_0x50f2dc(_0x5cd163,_0x1cbd7d,_0x531d29);let z=class{constructor(_0x10a184,_0x2fa638,_0x46c52e){const _0x54acb2=_0x51cf5f;this[_0x54acb2(0x382)]=_0x10a184,this[_0x54acb2(0x1a4)]=_0x2fa638,this[_0x54acb2(0x152)]=_0x46c52e;}[_0x51cf5f(0x136)](_0xf8cd9e){const _0x30dcdf=_0x51cf5f;this[_0x30dcdf(0x2b2)](_0xf8cd9e),this['_transformPreviousActiveRange'](_0xf8cd9e);}['transformRemoteChangeset'](_0x4d20ef){const _0x1ab388=_0x51cf5f,{unitID:_0x19c757}=_0x4d20ef,_0x2cf20f=this['_renderManagerService'][_0x1ab388(0x1bd)](_0x19c757)[_0x1ab388(0x1f2)](b[_0x1ab388(0x2db)]),{redoCache:_0x30d4d5}=_0x2cf20f[_0x1ab388(0x230)]();if(_0x30d4d5[_0x1ab388(0x296)]===0x0)return _0x4d20ef;let _0x21a92f=a[_0x1ab388(0x311)][_0x1ab388(0x2f6)](_0x4d20ef[_0x1ab388(0x297)][0x0]);for(let _0x11dcdd=0x0;_0x11dcdd<_0x30d4d5[_0x1ab388(0x296)];_0x11dcdd++){const _0x5783fa={'id':_0x1ab388(0x292),'params':{..._0x30d4d5[_0x11dcdd]}},_0x1fb6ee=this[_0x1ab388(0x1a4)][_0x1ab388(0x148)](_0x21a92f,_0x5783fa,!0x1);if(m['isTransformMutationFailure'](_0x1fb6ee))throw _0x1fb6ee[_0x1ab388(0x2d9)];_0x21a92f=_0x1fb6ee[_0x1ab388(0x33a)];}return{...a[_0x1ab388(0x311)][_0x1ab388(0x2f6)](_0x4d20ef),'mutations':[_0x21a92f]};}[_0x51cf5f(0x2b2)](_0x653b72){const _0x1fc9f0=_0x51cf5f,{unitID:_0x54dba3}=_0x653b72,_0x245ff8=this[_0x1fc9f0(0x152)][_0x1fc9f0(0x1bd)](_0x54dba3)[_0x1fc9f0(0x1f2)](b[_0x1fc9f0(0x2db)]),{undoCache:_0x3a856d,redoCache:_0x2e02e1}=_0x245ff8[_0x1fc9f0(0x230)]();if(_0x3a856d[_0x1fc9f0(0x296)]===0x0||_0x2e02e1[_0x1fc9f0(0x296)]===0x0)return;const _0x354251=[],_0x14de46=[];let _0xae34c0=a[_0x1fc9f0(0x311)][_0x1fc9f0(0x2f6)](_0x653b72[_0x1fc9f0(0x297)][0x0]),_0x34d313=a[_0x1fc9f0(0x311)][_0x1fc9f0(0x2f6)](_0x653b72['mutations'][0x0]);for(let _0x29ceba=_0x3a856d[_0x1fc9f0(0x296)]-0x1;_0x29ceba>=0x0;_0x29ceba--){const _0x22b3b4={'id':_0x1fc9f0(0x292),'params':{..._0x3a856d[_0x29ceba]}},_0xaecc1a={'id':_0x1fc9f0(0x292),'params':{..._0x2e02e1[_0x29ceba]}},_0x2d3b64=this[_0x1fc9f0(0x1a4)][_0x1fc9f0(0x148)](_0xae34c0,_0x22b3b4,!0x1),_0x3e9216=this[_0x1fc9f0(0x1a4)]['transformMutation'](_0x34d313,_0xaecc1a,!0x1);if(m[_0x1fc9f0(0x201)](_0x2d3b64))throw _0x2d3b64[_0x1fc9f0(0x2d9)];if(m[_0x1fc9f0(0x201)](_0x3e9216))throw _0x3e9216['error'];_0x354251[_0x1fc9f0(0x1de)](_0x2d3b64[_0x1fc9f0(0x3af)]['params']),_0x14de46[_0x1fc9f0(0x1de)](_0x3e9216[_0x1fc9f0(0x3af)][_0x1fc9f0(0x3b5)]),_0xae34c0=_0x2d3b64['m1Prime'],_0x34d313=_0x3e9216[_0x1fc9f0(0x33a)];}_0x245ff8[_0x1fc9f0(0x3b7)]({'undoCache':_0x354251,'redoCache':_0x14de46});}[_0x51cf5f(0x218)](_0xeece57){const _0x1739ae=_0x51cf5f,{unitID:_0x57a29b}=_0xeece57,_0x5c27f7=this[_0x1739ae(0x152)][_0x1739ae(0x1bd)](_0x57a29b)['with'](b['DocIMEInputManagerService']),_0x424e1a=_0x5c27f7[_0x1739ae(0x18d)]();if(_0x424e1a==null)return;const _0x3889db=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xeece57[_0x1739ae(0x1f4)],'actions':null,'textRanges':[_0x424e1a]}}],_0x2970cc=this['_transformService'][_0x1739ae(0x169)](_0xeece57,_0x3889db);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2970cc))throw _0x2970cc[_0x1739ae(0x2d9)];const _0xd3f1b0=_0x2970cc[_0x1739ae(0x3af)][0x0]['params'][_0x1739ae(0x225)];Array[_0x1739ae(0x273)](_0xd3f1b0)&&_0xd3f1b0['length']&&_0x5c27f7[_0x1739ae(0x295)](_0xd3f1b0[0x0]);}};z=kt([ce(0x0,a[_0x51cf5f(0x249)](a['Injector'])),ce(0x1,m[_0x51cf5f(0x339)]),ce(0x2,p[_0x51cf5f(0x18a)])],z);var Ht=Object[_0x51cf5f(0x377)],Ft=(_0x4cf21f,_0x4a490b,_0x4d9c82,_0x3545a3)=>{const _0x11d148=_0x51cf5f;for(var _0x12c82c=_0x3545a3>0x1?void 0x0:_0x3545a3?Ht(_0x4a490b,_0x4d9c82):_0x4a490b,_0x38ab76=_0x4cf21f[_0x11d148(0x296)]-0x1,_0xb8d997;_0x38ab76>=0x0;_0x38ab76--)(_0xb8d997=_0x4cf21f[_0x38ab76])&&(_0x12c82c=_0xb8d997(_0x12c82c)||_0x12c82c);return _0x12c82c;},le=(_0x4942c8,_0x10035c)=>(_0x4748b8,_0x245c2f)=>_0x10035c(_0x4748b8,_0x245c2f,_0x4942c8);let J=class{constructor(_0x175d44,_0x1399cd,_0x2a71f6){const _0x3d3ead=_0x51cf5f;this[_0x3d3ead(0x382)]=_0x175d44,this['_transformService']=_0x1399cd,this['_docStateChangeManagerService']=_0x2a71f6;}['transformStateCache'](_0x230137){const _0x593967=_0x51cf5f;this[_0x593967(0x1df)](_0x230137);}['transformRemoteChangeset'](_0xf0e5e0){const _0x2c39b2=_0x51cf5f,{unitID:_0x44e8c2}=_0xf0e5e0,{collaboration:_0x195c81}=this[_0x2c39b2(0x2e0)]['getStateCache'](_0x44e8c2);if(_0x195c81['length']===0x0)return _0xf0e5e0;let _0x561acf=a[_0x2c39b2(0x311)][_0x2c39b2(0x2f6)](_0xf0e5e0[_0x2c39b2(0x297)][0x0]);for(let _0x36d5ee=0x0;_0x36d5ee<_0x195c81[_0x2c39b2(0x296)];_0x36d5ee++){const _0x349646={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x195c81[_0x36d5ee]['unitId'],..._0x195c81[_0x36d5ee][_0x2c39b2(0x18f)]}},_0x3c3085=this['_transformService'][_0x2c39b2(0x148)](_0x561acf,_0x349646,!0x1);if(m['isTransformMutationFailure'](_0x3c3085))throw _0x3c3085['error'];_0x561acf=_0x3c3085[_0x2c39b2(0x33a)];}return{...a[_0x2c39b2(0x311)][_0x2c39b2(0x2f6)](_0xf0e5e0),'mutations':[_0x561acf]};}[_0x51cf5f(0x1df)](_0x44851f){const _0x16cd79=_0x51cf5f,{unitID:_0x355b1e}=_0x44851f,{history:_0x105e06,collaboration:_0xcf963e}=this[_0x16cd79(0x2e0)][_0x16cd79(0x1ee)](_0x355b1e);if(_0x105e06[_0x16cd79(0x296)]===0x0&&_0xcf963e[_0x16cd79(0x296)]===0x0)return;const _0x3e7f23=[],_0x5c5e56=[];let _0x5aea9d=a['Tools']['deepClone'](_0x44851f[_0x16cd79(0x297)][0x0]),_0x5b1536=a[_0x16cd79(0x311)][_0x16cd79(0x2f6)](_0x44851f[_0x16cd79(0x297)][0x0]);for(let _0x5d0fa6=_0x105e06[_0x16cd79(0x296)]-0x1;_0x5d0fa6>=0x0;_0x5d0fa6--){const _0x23316b={'id':_0x16cd79(0x292),'params':{'unitId':_0x105e06[_0x5d0fa6][_0x16cd79(0x395)],..._0x105e06[_0x5d0fa6][_0x16cd79(0x22a)]}},_0x49d9cf={'id':_0x16cd79(0x292),'params':{'unitId':_0x105e06[_0x5d0fa6][_0x16cd79(0x395)],..._0x105e06[_0x5d0fa6][_0x16cd79(0x18f)]}},_0x1cd216=this[_0x16cd79(0x1a4)]['transformMutation'](_0x5aea9d,_0x23316b,!0x1),_0x1e6c44=this['_transformService']['transformMutation'](_0x5b1536,_0x49d9cf,!0x1);if(m[_0x16cd79(0x201)](_0x1cd216))throw _0x1cd216['error'];if(m[_0x16cd79(0x201)](_0x1e6c44))throw _0x1e6c44[_0x16cd79(0x2d9)];_0x3e7f23['unshift']({..._0x105e06[_0x5d0fa6],'undoState':_0x1cd216['m2Prime'][_0x16cd79(0x3b5)],'redoState':_0x1e6c44[_0x16cd79(0x3af)][_0x16cd79(0x3b5)]}),_0x5aea9d=_0x1cd216[_0x16cd79(0x33a)],_0x5b1536=_0x1e6c44['m1Prime'];}_0x5aea9d=a[_0x16cd79(0x311)]['deepClone'](_0x44851f['mutations'][0x0]),_0x5b1536=a[_0x16cd79(0x311)][_0x16cd79(0x2f6)](_0x44851f[_0x16cd79(0x297)][0x0]);for(let _0x208d96=_0xcf963e[_0x16cd79(0x296)]-0x1;_0x208d96>=0x0;_0x208d96--){const _0x11b2e2={'id':_0x16cd79(0x292),'params':{'unitId':_0xcf963e[_0x208d96][_0x16cd79(0x395)],..._0xcf963e[_0x208d96][_0x16cd79(0x22a)]}},_0x4e5a28={'id':_0x16cd79(0x292),'params':{'unitId':_0xcf963e[_0x208d96][_0x16cd79(0x395)],..._0xcf963e[_0x208d96][_0x16cd79(0x18f)]}},_0xd887d3=this['_transformService'][_0x16cd79(0x148)](_0x5aea9d,_0x11b2e2,!0x1),_0x286a87=this['_transformService']['transformMutation'](_0x5b1536,_0x4e5a28,!0x1);if(m[_0x16cd79(0x201)](_0xd887d3))throw _0xd887d3[_0x16cd79(0x2d9)];if(m['isTransformMutationFailure'](_0x286a87))throw _0x286a87[_0x16cd79(0x2d9)];_0x5c5e56['unshift']({..._0xcf963e[_0x208d96],'undoState':_0xd887d3[_0x16cd79(0x3af)][_0x16cd79(0x3b5)],'redoState':_0x286a87['m2Prime'][_0x16cd79(0x3b5)]}),_0x5aea9d=_0xd887d3[_0x16cd79(0x33a)],_0x5b1536=_0x286a87[_0x16cd79(0x33a)];}this[_0x16cd79(0x2e0)]['setStateCache'](_0x355b1e,{'history':_0x3e7f23,'collaboration':_0x5c5e56});}};J=Ft([le(0x0,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),le(0x1,m[_0x51cf5f(0x339)]),le(0x2,a[_0x51cf5f(0x249)](b[_0x51cf5f(0x358)]))],J);var Yt=Object[_0x51cf5f(0x377)],Wt=(_0x53b47d,_0x400779,_0x4472a9,_0x108f07)=>{const _0x393d95=_0x51cf5f;for(var _0x3d2738=_0x108f07>0x1?void 0x0:_0x108f07?Yt(_0x400779,_0x4472a9):_0x400779,_0x2c97dd=_0x53b47d[_0x393d95(0x296)]-0x1,_0x5c3200;_0x2c97dd>=0x0;_0x2c97dd--)(_0x5c3200=_0x53b47d[_0x2c97dd])&&(_0x3d2738=_0x5c3200(_0x3d2738)||_0x3d2738);return _0x3d2738;},Ne=(_0x22c0de,_0x534d12)=>(_0x2a5aa2,_0xa7b4c5)=>_0x534d12(_0x2a5aa2,_0xa7b4c5,_0x22c0de);let Z=class{constructor(_0x44e5d3,_0x28dd30){const _0x2cf251=_0x51cf5f;this[_0x2cf251(0x382)]=_0x44e5d3,this[_0x2cf251(0x1a4)]=_0x28dd30;}[_0x51cf5f(0x153)](_0x1feea5){const _0x8bd2fd=_0x51cf5f;var _0xa5600a;const _0x4a7249=this['_injector']['get'](Y[_0x8bd2fd(0x398)]),_0x5557c3=(_0xa5600a=_0x4a7249[_0x8bd2fd(0x1e8)]())!=null?_0xa5600a:[];if(_0x5557c3[_0x8bd2fd(0x296)]===0x0)return;const _0x82df78=_0x1feea5['unitID'],_0x54fe4e=[{'id':_0x8bd2fd(0x292),'params':{'unitId':_0x82df78,'actions':null,'textRanges':_0x5557c3}}],_0x5599b1=this[_0x8bd2fd(0x1a4)][_0x8bd2fd(0x169)](_0x1feea5,_0x54fe4e);if(!m[_0x8bd2fd(0x337)](_0x5599b1))throw _0x5599b1['error'];const _0x553464=_0x5599b1[_0x8bd2fd(0x3af)][0x0][_0x8bd2fd(0x3b5)][_0x8bd2fd(0x225)];Array[_0x8bd2fd(0x273)](_0x553464)&&_0x553464[_0x8bd2fd(0x296)]&&_0x4a7249['replaceDocRanges'](_0x553464,{'unitId':_0x82df78,'subUnitId':_0x82df78},!0x1);}};Z=Wt([Ne(0x0,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0xbdc317,_0x24269d,_0x10c8bf,_0x21a855)=>{for(var _0x30d14a=_0x21a855>0x1?void 0x0:_0x21a855?Vt(_0x24269d,_0x10c8bf):_0x24269d,_0x39f72e=_0xbdc317['length']-0x1,_0xaf4323;_0x39f72e>=0x0;_0x39f72e--)(_0xaf4323=_0xbdc317[_0x39f72e])&&(_0x30d14a=_0xaf4323(_0x30d14a)||_0x30d14a);return _0x30d14a;},N=(_0x307820,_0x3c3312)=>(_0x4220f9,_0x3f7bb6)=>_0x3c3312(_0x4220f9,_0x3f7bb6,_0x307820);let Q=class extends a[_0x51cf5f(0x188)]{constructor(_0xf481c9,_0xaadec4,_0x4a8aaa,_0x584b6a,_0x1c95f8,_0x1b5d7e,_0x490475,_0x22a62c){const _0x1d6e25=_0x51cf5f;super(),h(this,'_status$',new d[(_0x1d6e25(0x365))](u[_0x1d6e25(0x198)][_0x1d6e25(0x1cf)])),(this[_0x1d6e25(0x2e0)]=_0xf481c9,this[_0x1d6e25(0x3b6)]=_0xaadec4,this[_0x1d6e25(0x15c)]=_0x4a8aaa,this[_0x1d6e25(0x131)]=_0x584b6a,this[_0x1d6e25(0x1c8)]=_0x1c95f8,this[_0x1d6e25(0x2c2)]=_0x1b5d7e,this[_0x1d6e25(0x1a8)]=_0x490475,this[_0x1d6e25(0x1e5)]=_0x22a62c,this[_0x1d6e25(0x17b)]());}['_initEntityListener'](){const _0x164de9=_0x51cf5f;this[_0x164de9(0x1fa)](this[_0x164de9(0x3b6)][_0x164de9(0x183)][_0x164de9(0x254)](_0x1a0744=>{const _0x122ac0=_0x164de9,_0x3552fc=this[_0x122ac0(0x2e0)][_0x122ac0(0x174)][_0x122ac0(0x254)](_0x4236a6=>{const _0x2f9918=_0x122ac0;if(_0x4236a6==null)return;const {unitId:_0x1c956f,redoState:_0x4c0799,commandId:_0xa4d9a6}=_0x4236a6;if(_0x1c956f!==_0x1a0744[_0x2f9918(0x1f4)])return;const _0x2a9c5e={'id':_0xa4d9a6,'type':a[_0x2f9918(0x199)]['MUTATION'],'params':{'unitId':_0x1c956f,'actions':_0x4c0799[_0x2f9918(0x324)],'textRanges':null}};_0x1a0744[_0x2f9918(0x34f)](_0x2a9c5e);});if(_0x1a0744[_0x122ac0(0x1fa)](_0x3552fc),_0x1a0744 instanceof u[_0x122ac0(0x219)]){const _0xccae07={'onTransformIME':_0x35b660=>this[_0x122ac0(0x15c)]['transformIMECache'](_0x35b660),'onTransformState':_0x13c2bc=>this[_0x122ac0(0x131)][_0x122ac0(0x2a1)](_0x13c2bc),'onTransformSelections':_0xa4c6fe=>this[_0x122ac0(0x1c8)]['transformSelections'](_0xa4c6fe),'onSyncEditingCollabCursor':_0x45bf98=>this[_0x122ac0(0x2c2)][_0x122ac0(0x245)](_0x45bf98),'onTransformRemoteChangesetByIMECache':_0x4829fe=>this[_0x122ac0(0x15c)][_0x122ac0(0x17e)](_0x4829fe),'onTransformRemoteChangesetByStateCache':_0x29b833=>this['_docTransformStateCacheService'][_0x122ac0(0x17e)](_0x29b833)};_0x1a0744[_0x122ac0(0x2da)](_0xccae07);}}));}};Q=Xt([N(0x0,a[_0x51cf5f(0x249)](b[_0x51cf5f(0x358)])),N(0x1,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x162)])),N(0x2,a[_0x51cf5f(0x249)](z)),N(0x3,a[_0x51cf5f(0x249)](J)),N(0x4,a[_0x51cf5f(0x249)](Z)),N(0x5,a[_0x51cf5f(0x249)](Ce)),N(0x6,T['IMessageService']),N(0x7,a['Inject'](a[_0x51cf5f(0x306)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x5b6e62,_0x3651c1,_0x3c611e,_0x397a5b)=>{const _0x2980d8=_0x51cf5f;for(var _0x1038d5=_0x397a5b>0x1?void 0x0:_0x397a5b?Gt(_0x3651c1,_0x3c611e):_0x3651c1,_0x10af21=_0x5b6e62[_0x2980d8(0x296)]-0x1,_0x2c7dce;_0x10af21>=0x0;_0x10af21--)(_0x2c7dce=_0x5b6e62[_0x10af21])&&(_0x1038d5=_0x2c7dce(_0x1038d5)||_0x1038d5);return _0x1038d5;},_e=(_0x2900c6,_0x19991e)=>(_0x574079,_0x2307aa)=>_0x19991e(_0x574079,_0x2307aa,_0x2900c6);let ge=class extends a[_0x51cf5f(0x188)]{constructor(_0x26d355,_0x51d2f7,_0x79c7bb){const _0x993b81=_0x51cf5f;super(),h(this,_0x993b81(0x130),new Map()),h(this,_0x993b81(0x2d6),new Map()),h(this,_0x993b81(0x385),!0x1),(this['_configService']=_0x26d355,this[_0x993b81(0x15f)]=_0x51d2f7,this[_0x993b81(0x372)]=_0x79c7bb);}[_0x51cf5f(0x302)](){this['_disabled']=!0x0;}[_0x51cf5f(0x158)](){const _0x1554d0=_0x51cf5f;this[_0x1554d0(0x385)]=!0x1;}get[_0x51cf5f(0x15d)](){const _0x1a878e=_0x51cf5f;return this[_0x1a878e(0x2d6)];}[_0x51cf5f(0x277)](){const _0x4404b7=_0x51cf5f;this[_0x4404b7(0x25c)]()[_0x4404b7(0x2b1)](()=>super[_0x4404b7(0x277)]());}async[_0x51cf5f(0x2c0)](_0x9f2725){const _0x2f46b1=_0x51cf5f;return this[_0x2f46b1(0x385)]?null:this[_0x2f46b1(0x15f)][_0x2f46b1(0x255)](u['getLocalCacheKey'](_0x9f2725));}async[_0x51cf5f(0x17a)](_0x2d9b59,_0x5ed866){const _0x31878b=_0x51cf5f;return!!this[_0x31878b(0x15f)][_0x31878b(0x1d7)](_0x2d9b59,_0x5ed866);}[_0x51cf5f(0x289)](_0x4ad92e,_0x5deed4,_0x577d67,_0x46155c){const _0x54f39a=_0x51cf5f,_0xcf8af1=this[_0x54f39a(0x372)][_0x54f39a(0x351)](_0x4ad92e);this[_0x54f39a(0x130)][_0x54f39a(0x2e8)](_0x4ad92e,{'unitID':_0x4ad92e,'type':_0x5deed4,'awaitingChangeset':_0x577d67,'mutations':_0x46155c,'rev':_0xcf8af1}),this[_0x54f39a(0x2d6)]['has'](_0x4ad92e)||this[_0x54f39a(0x26e)](_0x4ad92e);}[_0x51cf5f(0x26e)](_0x875c86){const _0x2af2c5=_0x51cf5f,_0x46f274=this[_0x2af2c5(0x264)]();_0x46f274===0x0?this['_saveCache'](_0x875c86):this[_0x2af2c5(0x2d6)][_0x2af2c5(0x2e8)](_0x875c86,setTimeout(()=>this[_0x2af2c5(0x35b)](_0x875c86),_0x46f274));}[_0x51cf5f(0x264)](){const _0x4c0eb5=_0x51cf5f;var _0x38867b;return(_0x38867b=this[_0x4c0eb5(0x178)][_0x4c0eb5(0x2aa)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x38867b:u[_0x4c0eb5(0x20f)];}[_0x51cf5f(0x35b)](_0x50b774){const _0x140850=_0x51cf5f,_0x2a6e6d=this[_0x140850(0x2d6)][_0x140850(0x214)](_0x50b774);return _0x2a6e6d!==void 0x0&&window[_0x140850(0x259)](_0x2a6e6d),this[_0x140850(0x15f)][_0x140850(0x1d7)](u[_0x140850(0x1b1)](_0x50b774),this[_0x140850(0x130)][_0x140850(0x214)](_0x50b774))[_0x140850(0x2b1)](()=>this[_0x140850(0x2d6)][_0x140850(0x1cb)](_0x50b774));}async[_0x51cf5f(0x25c)](){const _0x101c8d=_0x51cf5f,_0x21312a=[];this[_0x101c8d(0x2d6)][_0x101c8d(0x2ba)]((_0x48a2d6,_0x9801bf)=>{const _0x357eae=_0x101c8d;window[_0x357eae(0x259)](_0x48a2d6),_0x21312a['push'](this['_saveCache'](_0x9801bf)['then'](()=>{const _0x5dfd97=_0x357eae;this[_0x5dfd97(0x2d6)]['delete'](_0x9801bf);}));}),await Promise[_0x101c8d(0x19b)](_0x21312a);}};ge=Kt([_e(0x0,a[_0x51cf5f(0x293)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m[_0x51cf5f(0x284)]))],ge);function _0x406e(_0x221920,_0x3f57bd){const _0x65eb63=_0x65eb();return _0x406e=function(_0x406e5f,_0x2eb395){_0x406e5f=_0x406e5f-0x12b;let _0x83b5b3=_0x65eb63[_0x406e5f];return _0x83b5b3;},_0x406e(_0x221920,_0x3f57bd);}class je extends a[_0x51cf5f(0x298)]{constructor(){const _0x36b5a6=_0x51cf5f;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x36b5a6(0x29e)](window,_0x36b5a6(0x360))['pipe'](d['takeUntil'](this[_0x36b5a6(0x28a)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}['setParam'](_0x1c607f,_0x4336ac,_0x337b7c=!0x1){const _0x2532c6=_0x51cf5f,_0x4521d9=new URL(window['location'][_0x2532c6(0x1e4)]);_0x4521d9[_0x2532c6(0x3a5)][_0x2532c6(0x2e8)](_0x1c607f,_0x4336ac),_0x337b7c?window[_0x2532c6(0x19a)][_0x2532c6(0x227)]('','',_0x4521d9[_0x2532c6(0x2f3)]()):window[_0x2532c6(0x19a)][_0x2532c6(0x1c3)]('','',_0x4521d9['toString']());}[_0x51cf5f(0x22f)](_0x41af90,_0x4207c3=!0x1){const _0x2a2485=_0x51cf5f,_0x4ba64b=new URL(window[_0x2a2485(0x396)][_0x2a2485(0x1e4)]);_0x4ba64b[_0x2a2485(0x3a5)][_0x2a2485(0x1cb)](_0x41af90),_0x4207c3?window[_0x2a2485(0x19a)][_0x2a2485(0x227)]('','',_0x4ba64b[_0x2a2485(0x2f3)]()):window[_0x2a2485(0x19a)][_0x2a2485(0x1c3)]('','',_0x4ba64b[_0x2a2485(0x2f3)]());}['getParam'](_0x2ab996){const _0x5dca9b=_0x51cf5f;var _0x29e4b5;return(_0x29e4b5=new URL(window[_0x5dca9b(0x396)][_0x5dca9b(0x1e4)])[_0x5dca9b(0x3a5)][_0x5dca9b(0x214)](_0x2ab996))!=null?_0x29e4b5:void 0x0;}}var qt=Object[_0x51cf5f(0x348)],zt=Object[_0x51cf5f(0x377)],Jt=(_0x4e0cfa,_0xbbc363,_0x346b8d)=>_0xbbc363 in _0x4e0cfa?qt(_0x4e0cfa,_0xbbc363,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x346b8d}):_0x4e0cfa[_0xbbc363]=_0x346b8d,Zt=(_0xd07a1a,_0x39c204,_0x5037c5,_0x199d60)=>{const _0x358147=_0x51cf5f;for(var _0x1f8f2b=_0x199d60>0x1?void 0x0:_0x199d60?zt(_0x39c204,_0x5037c5):_0x39c204,_0x45022b=_0xd07a1a[_0x358147(0x296)]-0x1,_0x2b964e;_0x45022b>=0x0;_0x45022b--)(_0x2b964e=_0xd07a1a[_0x45022b])&&(_0x1f8f2b=_0x2b964e(_0x1f8f2b)||_0x1f8f2b);return _0x1f8f2b;},he=(_0x4bc2cd,_0x2944e1)=>(_0x439054,_0x381bee)=>_0x2944e1(_0x439054,_0x381bee,_0x4bc2cd),Qt=(_0x3fe019,_0x58b63c,_0xdf855d)=>Jt(_0x3fe019,_0x58b63c+'',_0xdf855d);const es=_0x51cf5f(0x380);exports[_0x51cf5f(0x3ab)]=class extends a[_0x51cf5f(0x342)]{constructor(_0x5d8cd5=Ue,_0x3bb1cd,_0x15493c,_0x2bff52){const _0x520eca=_0x51cf5f;super(),this[_0x520eca(0x31b)]=_0x5d8cd5,this[_0x520eca(0x152)]=_0x3bb1cd,this[_0x520eca(0x382)]=_0x15493c,this[_0x520eca(0x178)]=_0x2bff52;const {..._0x4c8988}=a[_0x520eca(0x2fc)]({},Ue,this['_config']);this[_0x520eca(0x178)][_0x520eca(0x368)]($t,_0x4c8988);}[_0x51cf5f(0x140)](){const _0x443ada=_0x51cf5f;this[_0x443ada(0x3b4)](),this[_0x443ada(0x31d)]();}[_0x51cf5f(0x383)](){const _0x12c672=_0x51cf5f;this[_0x12c672(0x29b)]();}[_0x51cf5f(0x3b4)](){const _0x213265=_0x51cf5f;var _0x5b09d6;const _0x147389=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x213265(0x25d)],{'useClass':G['WebSocketService']}],[u[_0x213265(0x278)],{'useClass':ge}],[exports[_0x213265(0x1ba)]],[Q],[q],[x],[de],[exports[_0x213265(0x363)]]];a['registerDependencies'](this['_injector'],a['mergeOverrideWithDependencies'](_0x147389,(_0x5b09d6=this['_config'])==null?void 0x0:_0x5b09d6[_0x213265(0x352)]));}[_0x51cf5f(0x29b)](){const _0x17e949=_0x51cf5f;this[_0x17e949(0x1fa)](this[_0x17e949(0x152)][_0x17e949(0x1c1)](a[_0x17e949(0x304)][_0x17e949(0x288)],[Ie])),this[_0x17e949(0x1fa)](this[_0x17e949(0x152)][_0x17e949(0x1c1)](a['UniverInstanceType'][_0x17e949(0x2fd)],[ve]));}[_0x51cf5f(0x31d)](){const _0x1fb496=_0x51cf5f;a['touchDependencies'](this['_injector'],[[x],[exports[_0x1fb496(0x1ba)]],[Q],[q],[exports[_0x1fb496(0x363)]]]);}},Qt(exports[_0x51cf5f(0x3ab)],_0x51cf5f(0x347),es),exports[_0x51cf5f(0x3ab)]=Zt([a[_0x51cf5f(0x25b)](u[_0x51cf5f(0x37a)]),he(0x1,p[_0x51cf5f(0x18a)]),he(0x2,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),he(0x3,a[_0x51cf5f(0x293)])],exports[_0x51cf5f(0x3ab)]);var ts=Object[_0x51cf5f(0x377)],ss=(_0x1f09c2,_0x283bd3,_0x3fdab8,_0x3cf6e0)=>{const _0x25890d=_0x51cf5f;for(var _0x17cdbe=_0x3cf6e0>0x1?void 0x0:_0x3cf6e0?ts(_0x283bd3,_0x3fdab8):_0x283bd3,_0x118236=_0x1f09c2[_0x25890d(0x296)]-0x1,_0x22eaab;_0x118236>=0x0;_0x118236--)(_0x22eaab=_0x1f09c2[_0x118236])&&(_0x17cdbe=_0x22eaab(_0x17cdbe)||_0x17cdbe);return _0x17cdbe;},F=(_0x118eff,_0x421fb4)=>(_0x4cbb99,_0x4666a6)=>_0x421fb4(_0x4cbb99,_0x4666a6,_0x118eff);exports[_0x51cf5f(0x37c)]=class extends u[_0x51cf5f(0x371)]{constructor(_0x2389c4,_0x5cc06d,_0x5c53b6,_0x4e9a23,_0x16c97c){super(_0x2389c4,_0x5cc06d,_0x5c53b6,_0x4e9a23,_0x16c97c);}async[_0x51cf5f(0x39c)](_0x331e58){const _0x2ae202=_0x51cf5f,_0x339389=await this['_getSessionTicket'](),_0x4218af=this[_0x2ae202(0x24a)](_0x331e58,_0x339389);return this['_doCreateSocket'](_0x4218af);}['_createSocketURL'](_0x228f82,_0xdc83c8){const _0x1308dc=_0x51cf5f,_0x29f161=typeof window>'u'?new URL(_0x228f82):new URL(_0x228f82,window[_0x1308dc(0x396)]['origin']);_0x29f161[_0x1308dc(0x3a5)][_0x1308dc(0x2e8)](_0x1308dc(0x22d),_0xdc83c8);const _0x35492f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1308dc(0x285)]);return _0x35492f[_0x1308dc(0x214)](_0x1308dc(0x20b))&&_0x29f161[_0x1308dc(0x3a5)]['set'](_0x1308dc(0x20b),_0x35492f[_0x1308dc(0x214)](_0x1308dc(0x20b))),_0x29f161['toString']();}async[_0x51cf5f(0x367)](){const _0x534bc9=_0x51cf5f;var _0x36e699,_0x5cbba8,_0x1abed6;const _0x10dd2e=this['_configService'][_0x534bc9(0x2aa)](u[_0x534bc9(0x1ff)]),_0x11ce10=(_0x36e699=_0x10dd2e==null?void 0x0:_0x10dd2e[_0x534bc9(0x203)])!=null?_0x36e699:u[_0x534bc9(0x1f7)];return(_0x1abed6=(_0x5cbba8=(await this[_0x534bc9(0x2cd)][_0x534bc9(0x214)](_0x11ce10,{'headers':{'Content-Type':'application/json'}}))[_0x534bc9(0x226)])==null?void 0x0:_0x5cbba8[_0x534bc9(0x26d)])!=null?_0x1abed6:'';}},exports[_0x51cf5f(0x37c)]=ss([F(0x0,a['Inject'](a[_0x51cf5f(0x2be)])),F(0x1,a[_0x51cf5f(0x249)](G[_0x51cf5f(0x20a)])),F(0x2,a['IConfigService']),F(0x3,a[_0x51cf5f(0x1b5)]),F(0x4,m[_0x51cf5f(0x16f)])],exports[_0x51cf5f(0x37c)]);const Me=0x7530,Le=_0x51cf5f(0x376);function _0x65eb(){const _0x44a4ce=['sessionTicket','init','removeParam','getUndoRedoMutationParamsCache','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/ui','startRow','status$','ENSURE_SNAPSHOT_EXECUTION','loadUnit','getCurrentSelections','debounceTime','defs','@univerjs/engine-render','onMouseMove','getSkeleton','SessionStatus','6549462UlDfvX','createIdentifier','_selfUnitIDs','RemoteUniscriptService','currentTheme$','off-line-icon','CONFLICT','syncEditingCollabCursor','debounce','_syncEditingCollabCursorService','collabStatus.notCollab','Inject','_createSocketURL','YUUMI_UNABLE_LOAD_URL','getMergeData','skeleton','@univerjs/core','apply','handleInsertRangeMoveDown','xlink:href','fillText','eventID','subscribe','getItem','sheetId','beginPath','_cursors','clearTimeout','_docSkeleton','DependentOn','exhaustSavingTask','ISocketService','urlChange$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','onTransformChange$','executionId','_collabCursorController','_uiPartsService','_getSaveTimeout','_labelPosition','_textBubble','MemberService','isActive','NO_OTHER_CLIENTS_EDITING','addClipboardHook','_toggleOnline','RichTextEditingMutation','ticket','_scheduleSaving','unsubscribe','session.will-retry','range','/run/','isArray','SetTextSelectionsOperation','_dataLoaderService','OTHER_CLIENT_EDITING','dispose','ILocalCacheService','_updateSubUnitFromURLParams','extend','InsertRowCommandId','PENDING','LICENSE_EXPORT_SIZE_EXCEEDED','_updateLocalCursor','getUnitStatus$','collabStatus.synced','_drawRectRange','getMember','APPLY_REJECT','RevisionService','search','jiqing.500','ranges','UNIVER_DOC','updateOfflineData','dispose$','handleIRemoveRow','TEXT','_univerInstanceService','hasOwnProperty','drawWith','7108465qBnXOl','IBeforeCloseService','doc.mutation.rich-text-editing','IConfigService','memberID','setActiveRange','length','mutations','RxDisposable','_handleLeaveEvent','_hover','_registerRenderDependencies','FETCH_MISS','getTypeOfUnitDisposed$','fromEvent','tag','hide','transformStateCache','flatMap','INVITE_CODE_HAS_BEEN_UES','getCollabCursors$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','resize','_heartbeatTimer','JOIN_ROOM_FAILED','font','getConfig','useCallback','COMPLETION_FINISHED','DOC_RANGE_TYPE','permission.title','@univerjs/engine-formula','#FFF','then','_transformUndoRedoStack','url(#off-line-icon_clip0_910_343)','_handleHeartbeatEvent','stringify','_anchor','evenodd','YUUMI_URL_COL_OUT_OF_RANGE','univerjs-icon\x20univerjs-icon-','forEach','fillRule','_instanceService','isEditing','Injector','useObservable','loadOfflineData','getColorFromTheme','_docSyncEditingCollabCursorService','_unitOnClients','DataLoaderService','_color','PERMISSION_DENIED','currentColor','getCurrentUnitForType','getCoordByCell','Error','collabStatus.syncing','Workbook','_httpService','yellow.400','48rciBxH','session.connection-failed','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_name','UniverIcon','url(#$1','46809aRMcDU','_saveTaskMap','current','YUUMI_NO_CUBOID_FOR_QUESTION','error','addHandlerCallback','DocIMEInputManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getCurrent','handleMoveRange','LICENSE_IMPORT_SIZE_EXCEEDED','_docStateChangeManagerService','_roomMembers$','has','setAlpha','Optional','toStringTag','name','UNRECOGNIZED','set','invokeId','LICENSE_MAX_UNITS_EXCEEDED','data','getSheetBySheetId','UNDEFINED','LOGIN_FAILED','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','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Unknown\x20user','_shapes','toString','_init','univer-flex\x20univer-mr-2\x20univer-text-xl','deepClone','_initCommandExecutedListener','CollaborationStatusDisplay','startColumn','UnitStatus','Failed','merge','UNIVER_SHEET','requireSession','fill','handleDeleteRangeMoveLeft','use','disableLocalCache','className','UniverInstanceType','getUniverSheetInstance','LocaleService','map','string','_logService','toDisposable','createElement','AWAITING','getAncestorScale','_id','createInstance','_backgroundColor','Tools','_removeCollabCursors','1em','uni.network.url-service','WebURLService','getRangePointData','max','_context','SetWorksheetActivateCommand','_handleEvent','_config','_imageIoService','_initDependencies','unit','moveTo','react','focused$','_document','WECHAT_HAS_BEEN_BOUND','actions','call','push','getViewport','http://www.w3.org/2000/svg','getValue','UPDATE_CURSOR','attrs','subUnitId','throttleTime','on-line-icon_clip0_910_349','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','853580OCntKE','collabCursorState$','INotificationService','Tooltip','DocSkeletonManagerService','size','38604KmCgXd','isTransformMutationsWithChangesetSuccess','icon','ITransformService','m1Prime','getRelativeToViewportCoord','toRgbString','WebBrowserSingleActiveUnitService','RemoveRowCommandId','5048MlEKwv','getFocusedUnit','event$','Plugin','roomMembers','_updateURLWithCurrentState','collab-rect-range-','INVITE_CODE_REQUIRED','pluginName','defineProperty','bottom','collabStatus.fetchMiss','fillStyle','OTHER_CLIENTS_EDITING','_render','combineLatest','onLocalMutation','_refreshCollabCursors','getCurrentRevOfUnit','override','debug','sessionStatus$','some','show','_lastPointer','DocStateChangeManagerService','handleDeleteRangeMoveUp','_setupBeforeClosingHandler','_saveCache','collaboration.single-unit.warning','IMessageService','_initEvent','assignAColorForMemberID','popstate','TEXT_RANGE_LAYER_INDEX','_commandService','CollaborationDataLoaderController','RegularPolygon','BehaviorSubject','_hideTimer','_getSessionTicket','setConfig','defIds','text','OnLineIcon','indexOf','measureText','ICommandService','INTERNAL_ERROR','_onCursorDelete','CollaborationSocketService','_revisionService','SheetSkeletonManagerService','random','handleIRemoveCol','ACTIVE_UNIT_EVENT_CHANNEL','getOwnPropertyDescriptor','Rect','UNAUTHENTICATED','UniverCollaborationClientPlugin','includes','BrowserCollaborationSocketService','function','Subject','_getScale','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collab-text-range-','_injector','onRendered','RefRangeService','_disabled','CollaborationSessionService','asObservable','COLORS','OffLineIcon','selection','_removeClearOtherTimer','cursorInfo','INVITE_CODE_ALREADY_BOUND','_cursorShapes','InsertRangeMoveRightCommandId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerBeforeClose','jsx','_drawAnchor','APPLY_REVISION_CONFILICT','unitId','location','@univerjs/docs-ui','DocSelectionManagerService','getSheetId','none','SheetsSelectionsService','createSocket','getParam','ThemeService','color','_scheduleHeartbeat','_getAnchorBounding','handleInsertRow','_refRangeService','setShapeProps','searchParams','IUIPartsService','pipe','OFFLINE','backgroundColor','getMemberID','UniverCollaborationClientUIPlugin','cursorInfo$','getCollabEntity$','@univerjs/sheets-ui','m2Prime','path','white','getOwnPropertySymbols','CollaborationUIEventService','_registerDependencies','params','_collaborationController','setUndoRedoMutationParamsCache','forwardRef','roomMembers$','_docClipboardService','collaboration.closeRoom','saveImage','_scene','activeSheet$','_cachedData','_docTransformStateCacheService','Vector2','hovered','clearInterval','DeleteRangeMoveLeftCommandId','transformIMECache','@univerjs/sheets','_hovered','USER_NOT_INVITED_CODE','_initResize','subscribeEvent','_handleHover','imageSourceType','_collabCursorState$','FromArray','onStarting','setParam','startsWith','restore','MOBILE_HAS_BEEN_BOUND','ONLINE','RECT','lineTo','transformMutation','distinctUntilChanged','save','_drawTextRange','svg','@univerjs/network','DeleteRangeMoveUpCommandId','getUnitId','useRef','MessageType','_renderManagerService','transformSelections','_ensureSubject','CHANGESET_REVISION_CONFILICT','runRefRangeMutations','substring','enableLocalCache','ALREADY_EXISTS','_notificationService','_initStatusComponent','_docTransformIMECacheService','saveTaskMap','CollaborationUIEventId','_localStorageService','prototype','HEADER_MENU','CollaborationController','IDocClipboardService','setInterval','...','@univerjs/rpc','findNodePositionByCharIndex','handleInsertCol','transformMutationsWithChangeset','ColorKit','CollaborationEvent','_draw','EffectRefRangId','code','ISnapshotServerService','executeCommand','getActiveSheet','_eventUnsubscribe','Rectangle','docStateChange$','NodePositionConvertToCursor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','round','_configService','_getSheetObject','saveOfflineData','_initEntityListener','_online','Module','transformRemoteChangeset','SetSelectionsOperation','_getMergeRange','assign','addObject','entityInit$','currentSkeleton$','IUniverInstanceService','url(#on-line-icon_clip0_910_349)','USERS_LEAVE','Disposable','Shape','IRenderManagerService','red.300','_memberService','getActiveRange','rgba(255,\x20255,\x20255,\x200.01)','redoState','SOCKET_FAILED_RETRY','_session','_collabSessionService','DisposableCollection','YUUMI_RATE_OVER_LIMIT','selections','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','setTimeout','CollaborationStatus','CommandType','history','all','next','YUUMI_SUBSCRIPTION_NOT_FOUND','disposeUnit','_anchorDot','triggerDblclick','closePath','getCellPositionByOffset','onCommandExecuted','_transformService','BuiltInUIPart','Warning','_sheetSkeletonManagerService','_messageService','onPointerEnter$','_urlService','blue.400','1106232CGxHrH','clipPath','type','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','getLocalCacheKey','_startSheetCollabCursor','1339569gAGyoy','green.600','ILogService','registerRefRange','[CollaborationDataLoaderController]','newValue','_initStatusListener','DesktopCollaborationStatusDisplayController','EMAIL_HAS_BEEN_BOUND','width','getRenderById','propertyIsEnumerable','INVALID_INVITE_CODE','_handleJoinEvent','registerRenderModule','_entityInit$','pushState','_scheduleClearOtherTimer','_colorIndex','YUUMI_ALL_TABLES_IS_INVALID','subunit','_docTransformSelectionsService','top','_entities','delete','source','NOT_FOUND','concat','NOT_COLLAB','filter','_beforeCloseService','_send','values','split','switchMap','displayName','setItem','MoveRangeCommandId','replace','_clearOtherTimers','_updateCollabCursors','YUUMI_AI_RUN_FAILED','storage','unshift','_transformHistoryAndStateStack','InsertColCommandId','getTypeOfUnitAdded$','add','endColumn','href','_localeService','APPLY_DUPLICATED','SOCKET_FAILED','getDocRanges','contains','_themeService','_startDocCollabCursor','_status$','_cursorInfo$','getStateCache','_docSkeletonManagerService','from','SNAPSHOT_INVALID_SNAPSHOT','with','getOffsetConfig','unitID','children','off-line-icon_clip0_910_343','DEFAULT_WS_SESSION_TICKET_URL','endRow','addObjects','disposeWithMe','on-line-icon','CONNECTOR_DATA_TOO_LARGE','row','rxjs/operators','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getColor','isTransformMutationFailure','arc','wsSessionTicketUrl','colorChannel1','div','black','_toggleOffline','InsertRangeMoveDownCommandId','_range','HTTPService','runId','idSuffix','takeUntil','_cursor','LOCAL_CACHE_INTERVAL','_onCursorUpdate','_setupSubUnitSync','TOO_MANY_REQUESTS','collaboration-client-ui.config','get','_colorAssignService','INVALID_ARGUMENT','min','_transformPreviousActiveRange','DocCollaborationEntity','post','_collaborationUIEventService','complete','SHEET_VIEWPORT_KEY','session.collaboration-timeout','makeDirty','send','unload','column','_assignedColors','VIEW_MAIN','textRanges','body','replaceState','_unitStatus','APPLY_NON_SEQUENTIAL_REVISION','undoState','height','generateRandomId'];_0x65eb=function(){return _0x44a4ce;};return _0x65eb();}class is extends a[_0x51cf5f(0x188)]{constructor(){const _0x18b3ee=_0x51cf5f;super(),h(this,_0x18b3ee(0x30e),a['generateRandomId']()),h(this,_0x18b3ee(0x240),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x18b3ee(0x2a7),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x18b3ee(0x2f4)]();}[_0x51cf5f(0x277)](){const _0x15802c=_0x51cf5f;super['dispose'](),this[_0x15802c(0x1da)][_0x15802c(0x2ba)]((_0x1ac13c,_0xb70df1)=>this[_0x15802c(0x38b)](_0xb70df1)),this[_0x15802c(0x2a7)]&&window['clearInterval'](this[_0x15802c(0x2a7)]);}[_0x51cf5f(0x27f)](_0x48d2ee){const _0x53de53=_0x51cf5f;return this[_0x53de53(0x154)](_0x48d2ee)[_0x53de53(0x3a7)](d[_0x53de53(0x149)]());}['editingUnit'](_0x45f6c9){const _0x391cbe=_0x51cf5f;this[_0x391cbe(0x240)][_0x391cbe(0x335)]===0x0&&this[_0x391cbe(0x3a0)](),this['_selfUnitIDs'][_0x391cbe(0x1e2)](_0x45f6c9),this[_0x391cbe(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x45f6c9],'isForwarded':!0x1});}[_0x51cf5f(0x19e)](_0xd2b7ef){const _0x4c6b89=_0x51cf5f;this['_selfUnitIDs'][_0x4c6b89(0x1cb)](_0xd2b7ef),this[_0x4c6b89(0x240)][_0x4c6b89(0x335)]===0x0&&this[_0x4c6b89(0x2a7)]&&window[_0x4c6b89(0x134)](this[_0x4c6b89(0x2a7)]);}[_0x51cf5f(0x2f4)](){const _0x2c7e57=_0x51cf5f;this[_0x2c7e57(0x1fa)](a['toDisposable'](d['fromEvent'](window,_0x2c7e57(0x1dd))[_0x2c7e57(0x254)](_0x4ee341=>{const _0x188140=_0x2c7e57;if(_0x4ee341['key']!==Le||!_0x4ee341['newValue'])return;const _0x5bbba2=JSON['parse'](_0x4ee341[_0x188140(0x1b8)]);this[_0x188140(0x31a)](_0x5bbba2);}))),window['addEventListener'](_0x2c7e57(0x221),()=>this[_0x2c7e57(0x1d2)]({'type':0x1,'memberID':this[_0x2c7e57(0x30e)],'unitIDs':Array[_0x2c7e57(0x1f0)](this['_selfUnitIDs'])}));}[_0x51cf5f(0x31a)](_0x5cb10f){const _0x53eee2=_0x51cf5f;switch(_0x5cb10f['type']){case 0x0:this[_0x53eee2(0x1c0)](_0x5cb10f);break;case 0x1:this['_handleLeaveEvent'](_0x5cb10f);break;case 0x2:this[_0x53eee2(0x2b4)](_0x5cb10f);break;}}[_0x51cf5f(0x1c0)](_0x2f18a7){const _0x5ab6d3=_0x51cf5f,{unitIDs:_0x461230,memberID:_0x4a83a1,isForwarded:_0x3d2341}=_0x2f18a7;_0x461230[_0x5ab6d3(0x2ba)](_0x4047db=>{const _0x19a7f8=_0x5ab6d3;if(!_0x3d2341&&this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e2)](_0x4047db)&&this[_0x19a7f8(0x154)](_0x4047db)[_0x19a7f8(0x19c)](u[_0x19a7f8(0x2fa)][_0x19a7f8(0x34c)]),!this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e2)](_0x4047db)||!this[_0x19a7f8(0x2c3)][_0x19a7f8(0x214)](_0x4047db)[_0x19a7f8(0x2e2)](_0x4a83a1)){const _0x51fe6e=this['_unitOnClients']['get'](_0x4047db)||new Set();_0x51fe6e[_0x19a7f8(0x1e2)](_0x4a83a1),this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e8)](_0x4047db,_0x51fe6e),this[_0x19a7f8(0x1c4)](_0x4a83a1);}}),_0x3d2341||this[_0x5ab6d3(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5ab6d3(0x240)]],'isForwarded':!0x0});}[_0x51cf5f(0x1c4)](_0x3d735c){const _0x18fa86=_0x51cf5f;this[_0x18fa86(0x38b)](_0x3d735c);const _0x343266=window[_0x18fa86(0x197)](()=>{const _0x5397af=_0x18fa86;this[_0x5397af(0x2c3)][_0x5397af(0x2ba)](_0x304bcf=>{const _0x68fac3=_0x5397af;_0x304bcf[_0x68fac3(0x1cb)](_0x3d735c);});},Me*0x2);this['_clearOtherTimers'][_0x18fa86(0x2e8)](_0x3d735c,_0x343266);}[_0x51cf5f(0x38b)](_0x5c369b){const _0x18978c=_0x51cf5f;if(this[_0x18978c(0x1da)][_0x18978c(0x2e2)](_0x5c369b)){const _0x38d323=this[_0x18978c(0x1da)]['get'](_0x5c369b);_0x38d323&&window[_0x18978c(0x259)](_0x38d323),this[_0x18978c(0x1da)][_0x18978c(0x2e8)](_0x5c369b,null);}}[_0x51cf5f(0x299)](_0x151fea){const _0x5023e5=_0x51cf5f,{memberID:_0x4d562a,unitIDs:_0x26928b}=_0x151fea;_0x26928b[_0x5023e5(0x2ba)](_0x255fda=>{const _0x3af136=_0x5023e5;var _0x198475;const _0x32a91a=this[_0x3af136(0x2c3)][_0x3af136(0x214)](_0x255fda);_0x32a91a&&(_0x32a91a[_0x3af136(0x1cb)](_0x4d562a),(_0x198475=this[_0x3af136(0x154)](_0x255fda))==null||_0x198475[_0x3af136(0x19c)](_0x32a91a['size']===0x0?u[_0x3af136(0x2fa)][_0x3af136(0x269)]:u[_0x3af136(0x2fa)][_0x3af136(0x34c)]));}),this[_0x5023e5(0x38b)](_0x4d562a);}[_0x51cf5f(0x2b4)](_0x33abd0){const _0xc43a89=_0x51cf5f;this['_scheduleClearOtherTimer'](_0x33abd0[_0xc43a89(0x294)]);}['_send'](_0x3be96e){const _0x102112=_0x51cf5f;localStorage[_0x102112(0x1d7)](Le,JSON[_0x102112(0x2b5)](_0x3be96e));}[_0x51cf5f(0x3a0)](){const _0x198ab0=_0x51cf5f;this[_0x198ab0(0x2a7)]=window[_0x198ab0(0x164)](()=>{const _0x2ce30e=_0x198ab0;this[_0x2ce30e(0x1d2)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x478062){const _0x4cb1a2=_0x51cf5f;return this['_unitStatus']['has'](_0x478062)||this[_0x4cb1a2(0x228)][_0x4cb1a2(0x2e8)](_0x478062,new d['BehaviorSubject'](u[_0x4cb1a2(0x2fa)][_0x4cb1a2(0x269)])),this[_0x4cb1a2(0x228)][_0x4cb1a2(0x214)](_0x478062);}}var Be=(_0x1f5a85=>(_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2ed)]=0x0]=_0x51cf5f(0x2ed),_0x1f5a85[_0x1f5a85['OK']=0x1]='OK',_0x1f5a85[_0x1f5a85['INTERNAL_ERROR']=0x2]=_0x51cf5f(0x36f),_0x1f5a85[_0x1f5a85['PERMISSION_DENIED']=0x3]=_0x51cf5f(0x2c6),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1cd)]=0x4]='NOT_FOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x379)]=0x5]=_0x51cf5f(0x379),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x159)]=0x6]=_0x51cf5f(0x159),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x216)]=0x7]=_0x51cf5f(0x216),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x212)]=0x8]=_0x51cf5f(0x212),_0x1f5a85[_0x1f5a85['COMPLETION_FINISHED']=0x9]=_0x51cf5f(0x2ac),_0x1f5a85[_0x1f5a85['LOGIN_FAILED']=0xa]=_0x51cf5f(0x2ee),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x155)]=0x1389]=_0x51cf5f(0x155),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1f1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x231)]=0x1772]=_0x51cf5f(0x231),_0x1f5a85[_0x1f5a85['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x51cf5f(0x235),_0x1f5a85[_0x1f5a85['APPLY_REJECT']=0x1b59]=_0x51cf5f(0x283),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x229)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x394)]=0x1b5b]=_0x51cf5f(0x394),_0x1f5a85[_0x1f5a85['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1e6)]=0x1b5d]=_0x51cf5f(0x1e6),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1fc)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2ea)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1f5a85[_0x1f5a85['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x51cf5f(0x2d1),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2df)]=0x232b]=_0x51cf5f(0x2df),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x27d)]=0x232c]=_0x51cf5f(0x27d),_0x1f5a85[_0x1f5a85['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x24b)]=0x2711]=_0x51cf5f(0x24b),_0x1f5a85[_0x1f5a85['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x51cf5f(0x2b8),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x194)]=0x2713]=_0x51cf5f(0x194),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x19d)]=0x2714]=_0x51cf5f(0x19d),_0x1f5a85[_0x1f5a85['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x51cf5f(0x2d8),_0x1f5a85[_0x1f5a85['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1f5a85[_0x1f5a85['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x51cf5f(0x176),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1c6)]=0x271d]=_0x51cf5f(0x1c6),_0x1f5a85[_0x1f5a85['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x51cf5f(0x32f),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1dc)]=0x271f]=_0x51cf5f(0x1dc),_0x1f5a85[_0x1f5a85['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2a3)]=0x2ee1]=_0x51cf5f(0x2a3),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1bf)]=0x2ee2]=_0x51cf5f(0x1bf),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x346)]=0x2ee3]=_0x51cf5f(0x346),_0x1f5a85[_0x1f5a85['USER_NOT_INVITED_CODE']=0x2ee4]=_0x51cf5f(0x139),_0x1f5a85[_0x1f5a85['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x51cf5f(0x38d),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x323)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x144)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1bb)]=0x32cb]=_0x51cf5f(0x1bb),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2e7)]=-0x1]=_0x51cf5f(0x2e7),_0x1f5a85))(Be||{}),ns=Object[_0x51cf5f(0x377)],rs=(_0xb0af4f,_0x11dd70,_0x5c315a,_0x52f3b8)=>{for(var _0x23af05=_0x52f3b8>0x1?void 0x0:_0x52f3b8?ns(_0x11dd70,_0x5c315a):_0x11dd70,_0x1a9b51=_0xb0af4f['length']-0x1,_0x2ce73e;_0x1a9b51>=0x0;_0x1a9b51--)(_0x2ce73e=_0xb0af4f[_0x1a9b51])&&(_0x23af05=_0x2ce73e(_0x23af05)||_0x23af05);return _0x23af05;},ue=(_0x5e37eb,_0x732b01)=>(_0x41e585,_0x10490f)=>_0x732b01(_0x41e585,_0x10490f,_0x5e37eb);exports['RemoteUniscriptService']=class extends a[_0x51cf5f(0x188)]{constructor(_0x5e22e9,_0x30c350,_0x2a71db){const _0x146c20=_0x51cf5f;super(),this[_0x146c20(0x2bc)]=_0x5e22e9,this[_0x146c20(0x2cd)]=_0x30c350,this[_0x146c20(0x178)]=_0x2a71db;}async['runOnServer'](_0x359a60,_0x2738b9,_0x2bed64,..._0x20a722){const _0x3ce64d=_0x51cf5f;var _0x51aa08,_0x2bae18,_0xb8a74b,_0x3ceab7;const _0x8a1507=this[_0x3ce64d(0x2bc)][_0x3ce64d(0x340)]();if(!_0x8a1507)throw new Error(_0x3ce64d(0x25f));const _0x289b86=((_0x51aa08=this[_0x3ce64d(0x178)][_0x3ce64d(0x2aa)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x51aa08:u[_0x3ce64d(0x2a5)])+'/'+_0x359a60+_0x3ce64d(0x272)+_0x2738b9,_0x461b42=new URL(window[_0x3ce64d(0x396)][_0x3ce64d(0x1e4)]),_0x4774fc={'scriptId':_0x359a60,'runId':(_0x2bae18=_0x461b42[_0x3ce64d(0x3a5)][_0x3ce64d(0x214)]('runId'))!=null?_0x2bae18:'','function':_0x2738b9,'unitId':_0x8a1507[_0x3ce64d(0x14f)](),'argsOfFunction':JSON['stringify'](_0x20a722),'invokeId':(_0xb8a74b=_0x2bed64[_0x3ce64d(0x2e9)])!=null?_0xb8a74b:'','executionId':(_0x3ceab7=_0x2bed64[_0x3ce64d(0x261)])!=null?_0x3ceab7:''};try{const _0xf3322e=await this[_0x3ce64d(0x2cd)][_0x3ce64d(0x21a)](_0x289b86,{'body':_0x4774fc});return _0xf3322e['body'][_0x3ce64d(0x2d9)]&&_0xf3322e[_0x3ce64d(0x226)][_0x3ce64d(0x2d9)][_0x3ce64d(0x16e)]!==Be['OK']?_0x3ce64d(0x2fb):_0xf3322e[_0x3ce64d(0x226)]['result'];}catch{return _0x3ce64d(0x2fb);}}},exports[_0x51cf5f(0x241)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x51cf5f(0x249)](G['HTTPService'])),ue(0x2,a[_0x51cf5f(0x293)])],exports['RemoteUniscriptService']),exports[_0x51cf5f(0x2f8)]=xe,exports['IURLService']=be,exports['SheetCollabCursorShape']=Pe,exports[_0x51cf5f(0x33d)]=is,exports[_0x51cf5f(0x315)]=je;