@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250427-173dc06 → 0.6.10-experimental.20250427-825ae55

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 _0x26d5be=_0x58f0;function _0x58f0(_0x5c8b03,_0x22bd77){const _0x1d8bf0=_0x1d8b();return _0x58f0=function(_0x58f033,_0x1c7958){_0x58f033=_0x58f033-0x1a7;let _0x2aec51=_0x1d8bf0[_0x58f033];return _0x2aec51;},_0x58f0(_0x5c8b03,_0x22bd77);}function _0x1d8b(){const _0x2ffb7c=['extend','109962YGvKIu','1343195OrxzkT','2986160ICdYMb','7570584aHiSAj','@univerjs-pro/collaboration-client-ui','2009094JFqMJh','703954TfKrlI','5409516ikwylj','1iSDjsa','runOnServer','_injector','get','RemoteUniscriptService','FUniver','@univerjs/core/facade'];_0x1d8b=function(){return _0x2ffb7c;};return _0x1d8b();}(function(_0x4849ef,_0x46654a){const _0x5e920e=_0x58f0,_0x210639=_0x4849ef();while(!![]){try{const _0x537aec=-parseInt(_0x5e920e(0x1af))/0x1*(parseInt(_0x5e920e(0x1ad))/0x2)+-parseInt(_0x5e920e(0x1a7))/0x3+parseInt(_0x5e920e(0x1ae))/0x4+parseInt(_0x5e920e(0x1a9))/0x5+parseInt(_0x5e920e(0x1ac))/0x6+-parseInt(_0x5e920e(0x1a8))/0x7+-parseInt(_0x5e920e(0x1aa))/0x8;if(_0x537aec===_0x46654a)break;else _0x210639['push'](_0x210639['shift']());}catch(_0x393ecb){_0x210639['push'](_0x210639['shift']());}}}(_0x1d8b,0xb8f75));const t=require(_0x26d5be(0x1ab)),e=require(_0x26d5be(0x1b5));class c extends e[_0x26d5be(0x1b4)]{[_0x26d5be(0x1b0)](_0x416345,_0x5a0806,..._0x2680ea){const _0x41dce0=_0x26d5be;return this[_0x41dce0(0x1b1)][_0x41dce0(0x1b2)](t[_0x41dce0(0x1b3)])[_0x41dce0(0x1b0)](_0x416345,_0x5a0806,{},..._0x2680ea);}}e[_0x26d5be(0x1b4)][_0x26d5be(0x1b6)](c);
1
+ 'use strict';function _0x6523(){const _0x1f97fb=['16830GtnZDW','7wqTOvG','extend','1162137vLvPZS','_injector','587675WYlOki','380EZVeAz','433668GQitHH','5039432KymSQB','@univerjs-pro/collaboration-client-ui','18552tdQobL','runOnServer','1811472ZwDfhl','@univerjs/core/facade','RemoteUniscriptService','2HRFsct','get','119403kYMavj','18QLxfVS'];_0x6523=function(){return _0x1f97fb;};return _0x6523();}const _0x9a8954=_0x4c94;(function(_0x3573f3,_0x1fd7a4){const _0x7025ee=_0x4c94,_0x472abf=_0x3573f3();while(!![]){try{const _0xf99aaf=-parseInt(_0x7025ee(0x119))/0x1+parseInt(_0x7025ee(0x121))/0x2*(parseInt(_0x7025ee(0x128))/0x3)+-parseInt(_0x7025ee(0x11e))/0x4+parseInt(_0x7025ee(0x12a))/0x5*(-parseInt(_0x7025ee(0x124))/0x6)+parseInt(_0x7025ee(0x126))/0x7*(-parseInt(_0x7025ee(0x11a))/0x8)+parseInt(_0x7025ee(0x123))/0x9*(-parseInt(_0x7025ee(0x118))/0xa)+parseInt(_0x7025ee(0x125))/0xb*(parseInt(_0x7025ee(0x11c))/0xc);if(_0xf99aaf===_0x1fd7a4)break;else _0x472abf['push'](_0x472abf['shift']());}catch(_0x2819e5){_0x472abf['push'](_0x472abf['shift']());}}}(_0x6523,0x5ca97));const t=require(_0x9a8954(0x11b)),e=require(_0x9a8954(0x11f));class c extends e['FUniver']{[_0x9a8954(0x11d)](_0x1bfeb2,_0x454975,..._0x4a571f){const _0x4d9148=_0x9a8954;return this[_0x4d9148(0x129)][_0x4d9148(0x122)](t[_0x4d9148(0x120)])['runOnServer'](_0x1bfeb2,_0x454975,{},..._0x4a571f);}}function _0x4c94(_0x38f469,_0xbb7230){const _0x6523b9=_0x6523();return _0x4c94=function(_0x4c94a8,_0x2d4836){_0x4c94a8=_0x4c94a8-0x118;let _0x1921e5=_0x6523b9[_0x4c94a8];return _0x1921e5;},_0x4c94(_0x38f469,_0xbb7230);}e['FUniver'][_0x9a8954(0x127)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x45141a=_0x2ce7;(function(_0x2eb6d0,_0x3436c0){const _0x64380=_0x2ce7,_0x3acadc=_0x2eb6d0();while(!![]){try{const _0x486deb=-parseInt(_0x64380(0x120))/0x1+parseInt(_0x64380(0x2da))/0x2+-parseInt(_0x64380(0x29a))/0x3+-parseInt(_0x64380(0x1d4))/0x4+parseInt(_0x64380(0xcc))/0x5+parseInt(_0x64380(0x154))/0x6+parseInt(_0x64380(0x188))/0x7;if(_0x486deb===_0x3436c0)break;else _0x3acadc['push'](_0x3acadc['shift']());}catch(_0x1aaa1b){_0x3acadc['push'](_0x3acadc['shift']());}}}(_0x1606,0xbdd84));var Ve=Object['defineProperty'],Xe=(_0x3c0016,_0x49c52f,_0x1064b1)=>_0x49c52f in _0x3c0016?Ve(_0x3c0016,_0x49c52f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1064b1}):_0x3c0016[_0x49c52f]=_0x1064b1,h=(_0x54de75,_0x11d1cb,_0x1e8d45)=>Xe(_0x54de75,typeof _0x11d1cb!=_0x45141a(0x19b)?_0x11d1cb+'':_0x11d1cb,_0x1e8d45);Object[_0x45141a(0x100)](exports,Symbol['toStringTag'],{'value':_0x45141a(0x10e)});const u=require(_0x45141a(0x2d1)),a=require(_0x45141a(0x169)),p=require(_0x45141a(0x2f7)),G=require(_0x45141a(0x219)),b=require('@univerjs/docs-ui'),Ge=require(_0x45141a(0x27f)),d=require(_0x45141a(0x2e3)),W=require(_0x45141a(0x136)),m=require(_0x45141a(0x305)),Ee=require('@univerjs/engine-formula'),g=require(_0x45141a(0xe8)),$=require(_0x45141a(0xa0)),X=require(_0x45141a(0x157)),P=require('react/jsx-runtime'),T=require(_0x45141a(0x117)),D=require('@univerjs/design'),M=require(_0x45141a(0x279)),qe=require(_0x45141a(0x144));var Ke=Object[_0x45141a(0x104)],ze=(_0x2c3333,_0x3b725c,_0x10a9e8,_0x509995)=>{const _0x5c1cb8=_0x45141a;for(var _0x8c3512=_0x509995>0x1?void 0x0:_0x509995?Ke(_0x3b725c,_0x10a9e8):_0x3b725c,_0xf2241a=_0x2c3333[_0x5c1cb8(0x1fe)]-0x1,_0x1f7f13;_0xf2241a>=0x0;_0xf2241a--)(_0x1f7f13=_0x2c3333[_0xf2241a])&&(_0x8c3512=_0x1f7f13(_0x8c3512)||_0x8c3512);return _0x8c3512;},Te=(_0x3ddc3a,_0x53be32)=>(_0x33e32e,_0x1caaed)=>_0x53be32(_0x33e32e,_0x1caaed,_0x3ddc3a);let de=class extends a[_0x45141a(0x171)]{constructor(_0x13fa0d,_0x6df41a){const _0x5bbeb7=_0x45141a;super(),this['_docClipboardService']=_0x13fa0d,this[_0x5bbeb7(0x23c)]=_0x6df41a,this[_0x5bbeb7(0x210)]();}[_0x45141a(0x210)](){const _0x3658d7=_0x45141a,_0x28d953=this;this[_0x3658d7(0x18a)](this[_0x3658d7(0x22e)][_0x3658d7(0x1e2)]({'onBeforePasteImage':async _0x3e8744=>{const _0x4445c4=_0x3658d7,_0x138a96=await _0x28d953[_0x4445c4(0x23c)]['saveImage'](_0x3e8744);return _0x138a96?{'source':_0x138a96['source'],'imageSourceType':_0x138a96[_0x4445c4(0x25c)]}:null;}}));}};de=ze([Te(0x0,b[_0x45141a(0x125)]),Te(0x1,Ge[_0x45141a(0x2fb)])],de);const Oe=[_0x45141a(0x2ca),_0x45141a(0x102),_0x45141a(0x195),'red300',_0x45141a(0x113),_0x45141a(0x190)];class me extends a[_0x45141a(0x298)]{constructor(){const _0x5f4522=_0x45141a;super(...arguments),h(this,_0x5f4522(0x23f),new Map()),h(this,'_colorIndex',0x0);}[_0x45141a(0x24e)](_0x1de1af){const _0x3359ed=_0x45141a;if(this[_0x3359ed(0x23f)][_0x3359ed(0x17c)](_0x1de1af))return this[_0x3359ed(0x23f)]['get'](_0x1de1af);const _0x14935c=Oe[this[_0x3359ed(0xbe)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Oe[_0x3359ed(0x1fe)],this['_assignedColors']['set'](_0x1de1af,_0x14935c),_0x14935c;}}function Pe(_0x224cc9){const _0x11c59a=_0x45141a;let _0x1b4366='';for(const _0x546610 of _0x224cc9){const {startOffset:_0x35db8b,endOffset:_0x4fcee8,isActive:_0x14d9e5,rangeType:_0x3a0416,segmentId:_0x159e67,segmentPage:_0x3fdeb7}=_0x546610;_0x1b4366[_0x11c59a(0x1fe)]&&(_0x1b4366+=','),_0x1b4366+=_0x35db8b+':'+_0x4fcee8+':'+(_0x14d9e5?'1':'0')+':'+_0x3a0416+':'+_0x159e67+':'+_0x3fdeb7;}return _0x1b4366;}function Je(_0x1dabd4){const _0x5b9df0=_0x45141a,_0x1e904b=_0x1dabd4[_0x5b9df0(0x2b4)](','),_0x4b2712=[];for(const _0x582f9e of _0x1e904b){const [_0x39e867,_0x5b25e7,_0x5db409,_0x24c38c,_0x2ba46b,_0x2cf209]=_0x582f9e[_0x5b9df0(0x2b4)](':');_0x4b2712[_0x5b9df0(0x297)]({'startOffset':Number(_0x39e867),'endOffset':Number(_0x5b25e7),'collapsed':_0x39e867===_0x5b25e7,'isActive':_0x5db409==='1','rangeType':_0x24c38c===a[_0x5b9df0(0x2df)][_0x5b9df0(0x107)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x5b9df0(0x2df)][_0x5b9df0(0x105)],'segmentId':typeof _0x2ba46b==_0x5b9df0(0x2d8)?String(_0x2ba46b):'','segmentPage':Number(_0x2cf209!=null?_0x2cf209:-0x1)});}return _0x4b2712[_0x5b9df0(0x251)](_0x4e3a67=>_0x4e3a67[_0x5b9df0(0x2f5)])||(_0x4b2712[0x0][_0x5b9df0(0x2f5)]=!0x0),_0x4b2712;}class Ce extends a[_0x45141a(0x171)]{constructor(){const _0x39446e=_0x45141a;super(...arguments),h(this,_0x39446e(0x246),new d[(_0x39446e(0x242))](null)),h(this,'collabCursorState$',this[_0x39446e(0x246)][_0x39446e(0x30e)]());}['syncEditingCollabCursor'](_0x453978){const _0x372c8f=_0x45141a,{unitID:_0x380a2a,memberID:_0x4cd3e0,textRanges:_0x50bb1a}=_0x453978,_0x2fb7f5=Pe(_0x50bb1a);if(_0x2fb7f5==='')return;const _0xd9c3ba={'unitID':_0x380a2a,'memberID':_0x4cd3e0,'selection':_0x2fb7f5};this[_0x372c8f(0x246)][_0x372c8f(0x2e4)](_0xd9c3ba);}}var Ze=Object[_0x45141a(0x104)],Qe=(_0x1ff8d3,_0x293067,_0xad518e,_0x323b72)=>{const _0x563b8d=_0x45141a;for(var _0x45f293=_0x323b72>0x1?void 0x0:_0x323b72?Ze(_0x293067,_0xad518e):_0x293067,_0xba31ba=_0x1ff8d3[_0x563b8d(0x1fe)]-0x1,_0x2457b1;_0xba31ba>=0x0;_0xba31ba--)(_0x2457b1=_0x1ff8d3[_0xba31ba])&&(_0x45f293=_0x2457b1(_0x45f293)||_0x45f293);return _0x45f293;},L=(_0x497350,_0x19c1fb)=>(_0x2ba01f,_0x4c7b0e)=>_0x19c1fb(_0x2ba01f,_0x4c7b0e,_0x497350);const et=0x12c,tt=0x64;let fe=class extends a[_0x45141a(0x171)]{constructor(_0x4713d3,_0xef60f8,_0x48316b,_0x19fc3e,_0x29054a,_0xd731cb,_0x281a86,_0x1453c3,_0x65939a){const _0xa61730=_0x45141a;super(),h(this,_0xa61730(0x25a),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0xa61730(0x242))](new Map())),h(this,_0xa61730(0x223),this['_cursorInfo$']['asObservable']()),h(this,_0xa61730(0x255),new d[(_0xa61730(0x242))]([])),h(this,'roomMembers$',this[_0xa61730(0x255)][_0xa61730(0x186)](d['debounceTime'](et))),h(this,'_updateLocalCursor',a[_0xa61730(0x206)](_0xad05df=>{const _0x535837=_0xa61730,_0x4134f1={'eventID':m[_0x535837(0x122)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x535837(0x290)],'memberID':this[_0x535837(0x10b)][_0x535837(0x1a1)](),'selection':Pe(_0xad05df)}};this[_0x535837(0x10b)]['send'](_0x4134f1,this[_0x535837(0x290)]);},tt)),(this[_0xa61730(0x290)]=_0x4713d3,this['_session']=_0xef60f8,this[_0xa61730(0x19c)]=_0x48316b,this[_0xa61730(0x1da)]=_0x19fc3e,this[_0xa61730(0x2f6)]=_0x29054a,this['_syncEditingCollabCursorService']=_0xd731cb,this['_transformService']=_0x281a86,this[_0xa61730(0x181)]=_0x1453c3,this[_0xa61730(0x160)]=_0x65939a);}get['cursorInfo'](){const _0x52271d=_0x45141a;return this[_0x52271d(0x220)][_0x52271d(0x257)]();}get[_0x45141a(0x1d8)](){const _0xdb658b=_0x45141a;return this['_roomMembers$'][_0xdb658b(0x257)]();}['dispose'](){const _0x29108f=_0x45141a;super[_0x29108f(0x20f)](),this['_cursorInfo$']['next'](new Map()),this[_0x29108f(0x220)][_0x29108f(0x300)](),this['_roomMembers$'][_0x29108f(0x2e4)]([]),this[_0x29108f(0x255)][_0x29108f(0x300)]();}[_0x45141a(0xc3)](){const _0x3e1f62=_0x45141a;this[_0x3e1f62(0x210)]||(this[_0x3e1f62(0x210)]=!0x0,this[_0x3e1f62(0x10b)]['sessionStatus$'][_0x3e1f62(0x186)](d[_0x3e1f62(0x2cc)](this[_0x3e1f62(0x1f2)]))[_0x3e1f62(0xdf)](_0x1dc102=>{const _0x452f28=_0x3e1f62;_0x1dc102===u['SessionStatus'][_0x452f28(0x235)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x3e1f62(0x10b)][_0x3e1f62(0x1d5)][_0x3e1f62(0x186)](d[_0x3e1f62(0x2cc)](this[_0x3e1f62(0x1f2)]))[_0x3e1f62(0xdf)](_0x495e79=>{const _0x2156d5=_0x3e1f62,_0x5c471d=_0x495e79[_0x2156d5(0x214)];_0x5c471d===m[_0x2156d5(0x122)][_0x2156d5(0x17d)]&&this[_0x2156d5(0x1b7)](_0x495e79),_0x5c471d===m[_0x2156d5(0x122)][_0x2156d5(0x12f)]&&this[_0x2156d5(0x27b)](_0x495e79);}),this[_0x3e1f62(0x18a)](this[_0x3e1f62(0x160)][_0x3e1f62(0x2a0)](_0x183978=>{const _0x2e5ebd=_0x3e1f62,_0x1f5969=_0x183978['params'];_0x1f5969!=null&&this['_online']&&_0x183978['id']===W[_0x2e5ebd(0x26d)]['id']&&_0x1f5969['unitId']===this[_0x2e5ebd(0x290)]&&_0x1f5969['isEditing']===!0x1&&_0x1f5969[_0x2e5ebd(0x2db)][_0x2e5ebd(0x1fe)]>0x0&&this[_0x2e5ebd(0x243)](_0x1f5969['ranges']);})),this[_0x3e1f62(0x1a9)][_0x3e1f62(0x19a)][_0x3e1f62(0x186)](d[_0x3e1f62(0x2cc)](this[_0x3e1f62(0x1f2)]))[_0x3e1f62(0xdf)](_0xf8e43e=>{const _0x580a17=_0x3e1f62;if((_0xf8e43e==null?void 0x0:_0xf8e43e['unitID'])!==this[_0x580a17(0x290)])return;const _0x1c2b37={'eventID':m['CollaborationEvent'][_0x580a17(0x17d)],'data':_0xf8e43e};this['_onCursorUpdate'](_0x1c2b37);}),this[_0x3e1f62(0x18a)](this['_commandService'][_0x3e1f62(0x2a0)](_0x39d992=>{const _0x1a12d2=_0x3e1f62;if(_0x39d992['params']==null)return;const _0x261f32=_0x39d992['params'];if(_0x39d992['id']!==W[_0x1a12d2(0x2a1)]['id']||_0x261f32[_0x1a12d2(0x286)]!==this[_0x1a12d2(0x290)])return;const _0x2641af={'id':_0x1a12d2(0x20b),'params':_0x261f32},_0x5562e3=this[_0x1a12d2(0x2d7)];for(const [_0x524437,_0x2a96f9]of _0x5562e3){const _0xa7d699={'id':_0x1a12d2(0x20b),'params':{'unitId':this[_0x1a12d2(0x290)],'actions':null,'textRanges':_0x2a96f9[_0x1a12d2(0x2db)]}},_0x1bd55b=this['_transformService'][_0x1a12d2(0xae)](_0x2641af,_0xa7d699,!0x1);if(m[_0x1a12d2(0x254)](_0x1bd55b))throw _0x1bd55b[_0x1a12d2(0x299)];_0x5562e3[_0x1a12d2(0x11e)](_0x524437,{..._0x2a96f9,'ranges':_0x1bd55b['m2Prime'][_0x1a12d2(0xbd)][_0x1a12d2(0x18d)]});}queueMicrotask(()=>{const _0x22a7e1=_0x1a12d2;this[_0x22a7e1(0x220)][_0x22a7e1(0x2e4)](_0x5562e3);});})));}[_0x45141a(0x1b7)](_0x13f3d8){const _0x54c5a0=_0x45141a;var _0x3393e2,_0x2abb07;const {memberID:_0x2aa03d,selection:_0x930c91}=_0x13f3d8[_0x54c5a0(0x139)],_0x57aa20=Je(_0x930c91),_0x2d1f9b=(_0x2abb07=(_0x3393e2=this['_memberService']['getMember'](this['unitID'],_0x2aa03d))==null?void 0x0:_0x3393e2['name'])!=null?_0x2abb07:_0x54c5a0(0x209),_0x4351ff={'color':this[_0x54c5a0(0x1da)][_0x54c5a0(0x24e)](_0x2aa03d),'name':_0x2d1f9b,'ranges':_0x57aa20},_0x5222fb=this[_0x54c5a0(0x2d7)];_0x5222fb[_0x54c5a0(0x11e)](_0x2aa03d,_0x4351ff),this[_0x54c5a0(0x220)][_0x54c5a0(0x2e4)](_0x5222fb);}['_onCursorDelete'](_0x23f52c){const _0x17193d=_0x45141a,{memberID:_0xbfa458}=_0x23f52c[_0x17193d(0x139)],_0x19d70f=this['cursorInfo'];_0x19d70f[_0x17193d(0x151)](_0xbfa458),this[_0x17193d(0x220)]['next'](_0x19d70f);}[_0x45141a(0x1c4)](){const _0x20b52c=_0x45141a;var _0x4efc56;if(this[_0x20b52c(0x25a)]=!0x0,((_0x4efc56=this[_0x20b52c(0x181)]['getFocusedUnit']())==null?void 0x0:_0x4efc56['getUnitId']())!==this['unitID'])return;const _0x1e9aed=this[_0x20b52c(0x19c)][_0x20b52c(0x1a0)](W['DocSelectionManagerService'])[_0x20b52c(0x115)]();Array[_0x20b52c(0xbb)](_0x1e9aed)&&_0x1e9aed[_0x20b52c(0x1fe)]>0x0&&this[_0x20b52c(0x243)](_0x1e9aed);}[_0x45141a(0x1cf)](){const _0x321a55=_0x45141a;this[_0x321a55(0x25a)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x45141a(0x1b0)])),L(0x3,a[_0x45141a(0x147)](me)),L(0x4,a[_0x45141a(0x147)](u[_0x45141a(0x2f8)])),L(0x5,a[_0x45141a(0x147)](Ce)),L(0x6,m[_0x45141a(0x1b9)]),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object[_0x45141a(0x104)],it=(_0xc80056,_0x160f19,_0x5a9ae0,_0x502400)=>{for(var _0x4da4b2=_0x502400>0x1?void 0x0:_0x502400?st(_0x160f19,_0x5a9ae0):_0x160f19,_0x7583fe=_0xc80056['length']-0x1,_0x1118b6;_0x7583fe>=0x0;_0x7583fe--)(_0x1118b6=_0xc80056[_0x7583fe])&&(_0x4da4b2=_0x1118b6(_0x4da4b2)||_0x4da4b2);return _0x4da4b2;},A=(_0x580010,_0x10c044)=>(_0x27652d,_0x513764)=>_0x10c044(_0x27652d,_0x513764,_0x580010);const nt=0x12c,rt=0x64,ot=()=>{let _0x26261d=[],_0x5ed823=!0x1;return _0x4664b1=>{const _0x458807=_0x2ce7;_0x26261d[_0x458807(0x297)](_0x4664b1),_0x5ed823||(_0x5ed823=!0x0,setTimeout(()=>{const _0x3daeec=_0x458807;_0x26261d[_0x3daeec(0xf1)](_0x517efa=>_0x517efa()),_0x26261d=[],_0x5ed823=!0x1;}));};};let Se=class extends a[_0x45141a(0x171)]{constructor(_0x450215,_0x1b88c6,_0xfe6d83,_0x7fe6fd,_0x4c32d9,_0x321b56,_0x29a3b5,_0x13bb5f){const _0x1fc541=_0x45141a;super(),h(this,_0x1fc541(0x25a),!0x1),h(this,'_init',!0x1),h(this,_0x1fc541(0x220),new d['BehaviorSubject'](new Map())),h(this,_0x1fc541(0x223),this[_0x1fc541(0x220)][_0x1fc541(0x30e)]()),h(this,'_roomMembers$',new d[(_0x1fc541(0x242))]([])),h(this,'roomMembers$',this[_0x1fc541(0x255)][_0x1fc541(0x186)](d['debounceTime'](nt))),h(this,_0x1fc541(0x243),a[_0x1fc541(0x206)]((_0x31d532,_0x4e409c)=>{const _0x1b3735=_0x1fc541,_0x2d7fe0={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1b3735(0x290)],'memberID':this[_0x1b3735(0x10b)][_0x1b3735(0x1a1)](),'selection':Ee['serializeRangeWithSheet'](_0x31d532,_0x4e409c[_0x1b3735(0x259)])}};this[_0x1b3735(0x10b)][_0x1b3735(0x17f)](_0x2d7fe0,this['unitID']);},rt)),(this[_0x1fc541(0x290)]=_0x450215,this[_0x1fc541(0x10b)]=_0x1b88c6,this[_0x1fc541(0x19c)]=_0xfe6d83,this[_0x1fc541(0x1da)]=_0x7fe6fd,this[_0x1fc541(0x2f6)]=_0x4c32d9,this['_univerInstanceService']=_0x321b56,this[_0x1fc541(0x160)]=_0x29a3b5,this[_0x1fc541(0x178)]=_0x13bb5f);}get['cursorInfo'](){const _0x2c1039=_0x45141a;return this['_cursorInfo$'][_0x2c1039(0x257)]();}get[_0x45141a(0x1d8)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x1919c6=_0x45141a;super['dispose'](),this[_0x1919c6(0x220)][_0x1919c6(0x2e4)](new Map()),this[_0x1919c6(0x220)][_0x1919c6(0x300)](),this[_0x1919c6(0x255)][_0x1919c6(0x2e4)]([]),this['_roomMembers$']['complete']();}[_0x45141a(0xc3)](){const _0x2b4b1e=_0x45141a;this['_init']||(this[_0x2b4b1e(0x210)]=!0x0,this[_0x2b4b1e(0x10b)]['sessionStatus$'][_0x2b4b1e(0x186)](d[_0x2b4b1e(0x2cc)](this[_0x2b4b1e(0x1f2)]))[_0x2b4b1e(0xdf)](_0x2faab5=>{const _0x2b751d=_0x2b4b1e;_0x2faab5===u[_0x2b751d(0x30c)]['ONLINE']?this[_0x2b751d(0x1c4)]():this[_0x2b751d(0x1cf)]();}),this[_0x2b4b1e(0x10b)][_0x2b4b1e(0x1d5)][_0x2b4b1e(0x186)](d[_0x2b4b1e(0x2cc)](this[_0x2b4b1e(0x1f2)]))['subscribe'](_0x2960ac=>{const _0x1b140a=_0x2b4b1e,_0x3d7c02=_0x2960ac[_0x1b140a(0x214)];_0x3d7c02===m['CollaborationEvent'][_0x1b140a(0x17d)]&&this[_0x1b140a(0x1b7)](_0x2960ac),_0x3d7c02===m[_0x1b140a(0x122)][_0x1b140a(0x12f)]&&this['_onCursorDelete'](_0x2960ac);}),this[_0x2b4b1e(0xcf)](),this[_0x2b4b1e(0x18a)](this[_0x2b4b1e(0x160)][_0x2b4b1e(0x2a0)](_0x209a5d=>{const _0x575c59=_0x2b4b1e;if(this[_0x575c59(0x25a)]&&_0x209a5d['id']===g[_0x575c59(0x1e9)]['id']&&_0x209a5d[_0x575c59(0xbd)][_0x575c59(0x286)]===this[_0x575c59(0x290)]){const _0x4e40bf=_0x209a5d[_0x575c59(0xbd)];this[_0x575c59(0x243)](_0x4e40bf['subUnitId'],_0x4e40bf[_0x575c59(0x2a3)][0x0]);}})));}[_0x45141a(0x1b7)](_0x3660a9){const _0x46d871=_0x45141a;var _0x3460d3,_0x2bfca8;const {memberID:_0x4f6384,selection:_0x50fdcc}=_0x3660a9[_0x46d871(0x139)],{sheetName:_0x34ac9d,range:_0xc5586a}=Ee['deserializeRangeWithSheet'](_0x50fdcc),_0x116265={'name':(_0x2bfca8=(_0x3460d3=this['_memberService'][_0x46d871(0x118)](this[_0x46d871(0x290)],_0x4f6384))==null?void 0x0:_0x3460d3[_0x46d871(0x1f8)])!=null?_0x2bfca8:_0x46d871(0x209),'range':this[_0x46d871(0x1a6)](_0x34ac9d,_0xc5586a),'sheetID':_0x34ac9d,'color':this[_0x46d871(0x1da)][_0x46d871(0x24e)](_0x4f6384),'selection':_0x50fdcc},_0x4ab787=this[_0x46d871(0x2d7)];_0x4ab787[_0x46d871(0x11e)](_0x4f6384,_0x116265),this['_cursorInfo$'][_0x46d871(0x2e4)](_0x4ab787);}[_0x45141a(0x27b)](_0x1c1e40){const _0x427b29=_0x45141a,{memberID:_0x276bb7}=_0x1c1e40['data'],_0x58d6fe=this[_0x427b29(0x2d7)];_0x58d6fe[_0x427b29(0x151)](_0x276bb7),this[_0x427b29(0x220)][_0x427b29(0x2e4)](_0x58d6fe);}['_getMergeRange'](_0x20dfb2,_0x12a560){const _0x4f368e=_0x45141a;var _0x348135,_0x4aae46;const _0x82329e=(_0x4aae46=(_0x348135=this[_0x4f368e(0x181)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x348135[_0x4f368e(0x126)](_0x20dfb2))==null?void 0x0:_0x4aae46[_0x4f368e(0x27a)]();return(_0x82329e==null?void 0x0:_0x82329e[_0x4f368e(0xd9)](_0x422bc6=>a[_0x4f368e(0x1d9)][_0x4f368e(0x262)](_0x422bc6,_0x12a560)))||_0x12a560;}['_onRefRangeChange'](){const _0x1e4fe7=_0x45141a,_0x5a53c8=new a[(_0x1e4fe7(0x12e))](),_0x2d2e46=ot(),_0x4282a3=()=>{const _0x1e33f5=_0x1e4fe7;_0x5a53c8[_0x1e33f5(0x20f)]();const _0x51c025=(_0x1d9430,_0x28bfc6,_0x42a4b1,_0x4d981b)=>{const _0x1014ec=_0x1e33f5;let _0x2ef404=[];switch(_0x1d9430['id']){case g[_0x1014ec(0x1ad)][_0x1014ec(0x295)]:{_0x2ef404=g[_0x1014ec(0x2ff)](_0x1d9430,_0x4d981b);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x2ef404=g[_0x1014ec(0xf5)](_0x1d9430,_0x4d981b);break;}case g['EffectRefRangId'][_0x1014ec(0x1bd)]:{_0x2ef404=g['handleInsertCol'](_0x1d9430,_0x4d981b);break;}case g[_0x1014ec(0x1ad)][_0x1014ec(0x127)]:{_0x2ef404=g[_0x1014ec(0x176)](_0x1d9430,_0x4d981b);break;}case g['EffectRefRangId'][_0x1014ec(0xeb)]:{_0x2ef404=g['handleInsertRangeMoveRight'](_0x1d9430,_0x4d981b);break;}case g[_0x1014ec(0x1ad)]['InsertRowCommandId']:{_0x2ef404=g[_0x1014ec(0x24f)](_0x1d9430,_0x4d981b);break;}case g[_0x1014ec(0x1ad)][_0x1014ec(0xb3)]:{_0x2ef404=g[_0x1014ec(0x175)](_0x1d9430,_0x4d981b);break;}case g[_0x1014ec(0x1ad)]['RemoveColCommandId']:{_0x2ef404=g['handleIRemoveCol'](_0x1d9430,_0x4d981b);break;}case g['EffectRefRangId'][_0x1014ec(0x2dd)]:{_0x2ef404=g['handleIRemoveRow'](_0x1d9430,_0x4d981b);break;}}const _0x37de6f=g[_0x1014ec(0x2fc)](_0x2ef404,_0x4d981b),_0x3fd406=this[_0x1014ec(0x2d7)][_0x1014ec(0x1a0)](_0x28bfc6);if(_0x3fd406&&_0x37de6f){const _0x17abb2={..._0x3fd406,'range':_0x37de6f};this['cursorInfo'][_0x1014ec(0x11e)](_0x28bfc6,_0x17abb2),_0x2d2e46(()=>{const _0x16f3ca=_0x1014ec,_0x3d5b0f=this[_0x16f3ca(0x178)][_0x16f3ca(0xd6)](_0x37de6f,_0x4b83b7=>(_0x3d5b0f[_0x16f3ca(0x20f)](),_0x51c025(_0x4b83b7,_0x28bfc6,_0x42a4b1,_0x37de6f)));_0x5a53c8[_0x16f3ca(0x2b3)](_0x3d5b0f);});}return{'redos':[],'undos':[]};};this[_0x1e33f5(0x2d7)]['forEach']((_0x316298,_0xebbc90)=>{const _0x410bb7=_0x1e33f5,{range:_0x2da97b,sheetID:_0xc852e2}=_0x316298,_0x2e1f01=this[_0x410bb7(0x178)]['registerRefRange'](_0x2da97b,_0x42f104=>(_0x2e1f01[_0x410bb7(0x20f)](),_0x51c025(_0x42f104,_0xebbc90,_0xc852e2,_0x2da97b)));_0x5a53c8[_0x410bb7(0x2b3)](_0x2e1f01);});};this[_0x1e4fe7(0x18a)](a[_0x1e4fe7(0x1be)](this['_cursorInfo$'][_0x1e4fe7(0xdf)](()=>{_0x4282a3();})));}[_0x45141a(0x1c4)](){const _0x589266=_0x45141a;var _0x485318,_0x385367;if(this['_online']=!0x0,((_0x485318=this[_0x589266(0x181)][_0x589266(0x269)]())==null?void 0x0:_0x485318[_0x589266(0x189)]())!==this[_0x589266(0x290)])return;const _0x20140c=(_0x385367=this[_0x589266(0x19c)][_0x589266(0x1a0)](g['SheetsSelectionsService'])[_0x589266(0x2c3)]())==null?void 0x0:_0x385367[0x0],_0x371d7b=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x589266(0x29b)][_0x589266(0x21b)])[_0x589266(0x2f2)]();_0x20140c&&_0x371d7b&&this[_0x589266(0x243)](_0x371d7b[_0x589266(0xf7)](),_0x20140c);}['_toggleOffline'](){const _0x36c920=_0x45141a;this[_0x36c920(0x25a)]=!0x1;}};Se=it([A(0x2,a[_0x45141a(0x147)](a[_0x45141a(0x1b0)])),A(0x3,a[_0x45141a(0x147)](me)),A(0x4,a['Inject'](u[_0x45141a(0x2f8)])),A(0x5,a[_0x45141a(0x101)]),A(0x6,a[_0x45141a(0x274)]),A(0x7,a[_0x45141a(0x147)](g[_0x45141a(0x1bc)]))],Se);function _0x1606(){const _0x2aa8a6=['_handleEvent','collabStatus.fetchMiss','LOCAL_CACHE_INTERVAL_KEY','unit','BrowserCollaborationSocketService','getTypeOfUnitAdded$','_docClipboardService','hasOwnProperty','[RemoteUniscriptService]:\x20no\x20focused\x20unit','EMAIL_HAS_BEEN_BOUND','connectInjector','_textBubble','whenReady','ONLINE','SHEET_VIEWPORT_KEY','executeCommand','collabStatus.notCollab','forwardRef','collaboration-client.offline-data-not-saved','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_imageIoService','_collaborationController','_scene','_assignedColors','black','_localStorageService','BehaviorSubject','_updateLocalCursor','MessageType','WebSocketService','_collabCursorState$','executionId','getColor','APPLY_DUPLICATED','setAlpha','_anchor','collabStatus.conflict','_localeService','assignAColorForMemberID','handleInsertRow','_docSyncEditingCollabCursorService','some','_clearOtherTimers','currentColor','isTransformMutationFailure','_roomMembers$','_getAnchorBounding','getValue','ThemeService','range','_online','INVITE_CODE_HAS_BEEN_UES','imageSourceType','_notificationService','UniverCollaborationClientUIPlugin','_removeClearOtherTimer','pushState','IRemoteInstanceService','contains','_heartbeatTimer','use','key','show','SYNCED','_hover','getFocusedUnit','Tooltip','all','height','SetTextSelectionsOperation','Rect','isTransformMutationsWithChangesetSuccess','filter','getRangePointData','APPLY_NON_SEQUENTIAL_REVISION','evenodd','ICommandService','_refreshCollabCursors','ALREADY_EXISTS','onLocalMutation','_setupBeforeClosingHandler','react','getMergeData','_onCursorDelete','concat','fromEventSubject','MOBILE_HAS_BEEN_BOUND','@univerjs/drawing','bottom','_registerDependencies','_handleHover','currentTheme$','m2Prime','round','unitId','clearTimeout','ColorKit','getUndoRedoMutationParamsCache','Workbook','INVALID_ARGUMENT','_uiPartsService','CollaborationStatusDisplay','DocCollaborationEntity','on-line-single_clip0_910_349','unitID','entries','_configService','div','PENDING','DeleteRangeMoveLeftCommandId','prototype','push','Disposable','error','1075131ssFQpn','UniverInstanceType','IMessageService','body','DependentOn','ACTIVE_UNIT_EVENT_CHANNEL','onCommandExecuted','RichTextEditingMutation','_lastPointer','selections','CollaborationController','SheetSkeletonManagerService','_docTransformIMECacheService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','row','session.collaboration-timeout','idSuffix','DocStateChangeManagerService','IConfigService','top','_removeCollabCursors','from','_initStatusComponent','NO_OTHER_CLIENTS_EDITING','skeleton','add','split','_labelPosition','clipPath','_unitStatus','setUndoRedoMutationParamsCache','engine','NodePositionConvertToRectRange','UniverCollaborationClientPlugin','unshift','_cursorShapes','transformRemoteChangeset','children','_eventUnsubscribe','combineLatest','clsx','getCurrentSelections','drawWith','_collaborationUIEventService','VIEW_MAIN','_updateSubUnitFromURLParams','setStateCache','mergeOverrideWithDependencies','purple300','throttleTime','takeUntil','NOT_FOUND','_httpService','_cursor','runId','@univerjs-pro/collaboration-client','_disabled','disableLocalCache','replaceDocRanges','_entityInit$','UniverIcon','cursorInfo','string','_themeService','1098736RPFcip','ranges','/run/','RemoveRowCommandId','_saveTaskMap','DOC_RANGE_TYPE','PERMISSION_DENIED','ENSURE_SNAPSHOT_EXECUTION','INotificationService','rxjs','next','_cursors','_getSheetObject','YUUMI_URL_COL_OUT_OF_RANGE','with','SetDocZoomRatioOperation','collabStatus.synced','useDependency','endRow','DocIMEInputManagerService','assign','CollaborationStatus','getVpScrollXYInfoByPosToVp','_initResize','getActiveSheet','LocaleService','_getScale','isActive','_memberService','@univerjs/engine-render','MemberService','_urlService','_getSaveTimeout','IImageIoService','runRefRangeMutations','flatMap','IRenderManagerService','handleDeleteRangeMoveLeft','complete','makeDirty','getCellPositionByOffset','CONNECTOR_DATA_TOO_LARGE','type','@univerjs-pro/collaboration','COMPLETION_FINISHED','values','_unitOnClients','HTTPService','transformStateCache','Failed','SessionStatus','Plugin','asObservable','_config','onMouseMove','OFFLINE','jsxs','onRendered','addObjects','off-line-single','getCurrentRevOfUnit','backgroundColor','_registerRenderDependencies','rxjs/operators','width','_getSessionTicket','map','LOGIN_FAILED','_backgroundColor','[CollaborationDataLoaderController]','_setupSubUnitSync','collab-rect-range-','findNodePositionByCharIndex','ILocalStorageService','SNAPSHOT_INVALID_SNAPSHOT','_transformPreviousActiveRange','_selfUnitIDs','transformMutation','history','arc','addHandlerCallback','subunit','MoveRangeCommandId','onStarting','Vector2','getLocalCacheKey','function','APPLY_REJECT','DesktopCollaborationStatusDisplayController','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','isArray','getCoordByCell','params','_colorIndex','ILocalCacheService','_scheduleHeartbeat','_anchorDot','trim','init','UNIVER_DOC','_initEvent','switchMap','urlChange$','getCollabCursors$','APPLY_PERMISSION_DENIED','hide','_status$','2752385mAAPmO','href','UNAUTHENTICATED','_onRefRangeChange','_document','JOIN_ROOM_FAILED','_dataLoaderService','rgba(255,\x20255,\x20255,\x200.01)','newValue','_initCommandExecutedListener','registerRefRange','includes','moveTo','find','measureText','AWAITING','_createSocketURL','syncEditingCollabCursor','DocSelectionManagerService','subscribe','call','YUUMI_NO_CUBOID_FOR_QUESTION','startColumn','updateOfflineData','USER_NOT_INVITED_CODE','_id','YUUMI_UNABLE_LOAD_URL','apply','@univerjs/sheets','getRenderById','Error','InsertRangeMoveRightCommandId','UNDEFINED','#fff','onPointerLeave$','origin','univerjs-icon\x20univerjs-icon-','forEach','CommandType','MUTATION','RegularPolygon','handleDeleteRangeMoveUp','text','getSheetId','_color','onPointerEnter$','SOCKET_FAILED','displayName','getCollabEntity$','override','setShapeProps','_render','defineProperty','IUniverInstanceService','jiqing500','1em','getOwnPropertyDescriptor','RECT','deepClone','TEXT','_instanceService','COLORS','on-line-single','_session','OTHER_CLIENT_EDITING','FETCH_MISS','Module','transformByState','getActiveRange','runOnServer','...','blue400','getOffsetConfig','getDocRanges','fillRule','@univerjs/ui','getMember','m1Prime','HEADER_MENU','collaboration.single-unit.warning','setConfig','url(#$1','set','NOT_COLLAB','847684TfKoGd','LICENSE_MAX_UNITS_EXCEEDED','CollaborationEvent','code','_initEntityListener','IDocClipboardService','getSheetBySheetId','InsertRangeMoveDownCommandId','collabStatus.syncing','setParam','TOO_MANY_REQUESTS','closePath','addEventListener','_initDependencies','DisposableCollection','USERS_LEAVE','_hideTimer','INVITE_CODE_REQUIRED','transformMutationsWithChangeset','Subject','getParam','search','@univerjs/docs','currentSkeleton$','status$','data','ISocketService','_startDocCollabCursor','color','fillStyle','CHANGESET_REVISION_CONFILICT','useObservable','useCallback','docStateChange$','#FFF','setInterval','@univerjs/rpc','merge','M0\x200H16V16H0z','Inject','_name','extend','_context','stringify','CollaborationSessionService','_drawAnchor','RevisionService','collabStatus.offline','collaboration.closeRoom','delete','getSkeleton','current','1840890oHIXgD','off-line-single_clip0_910_343','TRANSFORM_CHANGE_OBSERVABLE_TYPE','@univerjs/sheets-ui','OffLineSingle','mask','transformIMECache','_initStatusListener','focused$','_transformService','APPLY_REVISION_CONFILICT','_sheetSkeletonManagerService','_commandService','Warning','_drawRectRange','LICENSE_IMPORT_SIZE_EXCEEDED','url(#off-line-single_clip0_910_343)','INVITE_CODE_ALREADY_BOUND','_hovered','DEFAULT_WS_SESSION_TICKET_URL','SheetCollabCursorShape','@univerjs/core','_shapes','_messageService','requireSession','_docSkeletonManagerService','LICENSE_DISTRO_REJECTED','registerBeforeClose','useRef','RxDisposable','_drawTextRange','save','UnitStatus','handleMoveRange','handleInsertRangeMoveDown','addObject','_refRangeService','_transformUndoRedoStack','_scheduleSaving','location','has','UPDATE_CURSOR','_docTransformSelectionsService','send','_entities','_univerInstanceService','SUBMIT_CHANGESET_TIMEOUT','restore','_logService','activeSheet$','pipe','getUnhiddenWorksheets','5481686Uxgvtp','getUnitId','disposeWithMe','SNAPSHOT_HAS_BEEN_REMOVED','replace','textRanges','createInstance','collab-client.tooltip.reconnect','gold400','svg','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','transformSelections','replaceState','verdancy600','Shape','setActiveRange','CONFLICT','beginPath','collabCursorState$','symbol','_injector','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','univer-text-green-500','CollaborationDataLoaderController','get','getMemberID','getStateCache','generateRandomId','className','selection','_getMergeRange','toString','searchParams','_syncEditingCollabCursorService','icon','_saveCache','TEXT_RANGE_LAYER_INDEX','EffectRefRangId','memberID','FromArray','Injector','colorChannel1','createElement','0\x200\x2017\x2016','exhaustSavingTask','unsubscribe','createIdentifier','_onCursorUpdate','column','ITransformService','getItem','redoState','RefRangeService','InsertColCommandId','toDisposable','collab-text-anchor-','LICENSE_EXPORT_SIZE_EXCEEDED','mutations','fromEvent','fill','_toggleOnline','IBeforeCloseService','translate(.97)','_draw','registerDependencies','setItem','startsWith','size','INTERNAL_ERROR','clearInterval','lineTo','_toggleOffline','Tools','getAncestorScale','ILogService','_startSheetCollabCursor','824372JsKyDr','event$','shareReplay','removeParam','roomMembers','Rectangle','_colorAssignService','_cachedData','undoState','labelPosition','touchDependencies','BuiltInUIPart','disposeUnit','indexOf','addClipboardHook','attrs','triggerDblclick','getTypeOfUnitDisposed$','YUUMI_SUBSCRIPTION_NOT_FOUND','font','_renderManagerService','SetSelectionsOperation','path','_scheduleClearOtherTimer','saveTaskMap','CLOSE_ROOM','_collabCursorController','_range','jsx','WebBrowserSingleActiveUnitService','dispose$','getOwnPropertySymbols','propertyIsEnumerable','tag','CollaborationUIEventId','WebURLService','name','uni.network.url-service','saveOfflineData','getRelativeToViewportCoord','storage','subscribeEvent','length','Optional','_collabSessionService','OnLineSingle','INVALID_INVITE_CODE','getSheetObject','enableLocalCache','popstate','debounce','SetWorksheetActivateCommand','getConfig','Unknown\x20user','_send','doc.mutation.rich-text-editing','_updateCollabCursors','_ensureSubject','RemoteUniscriptService','dispose','_init','defIds','WECHAT_HAS_BEEN_BOUND','CollaborationSocketService','eventID','unload','onTransformChange$','_docStateChangeManagerService','permission.title','@univerjs/network','min','UNIVER_SHEET','_beforeCloseService','none','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','then','_cursorInfo$','session.will-retry','YUUMI_RATE_OVER_LIMIT','cursorInfo$','defs','_revisionService','_updateURLWithCurrentState','registerComponent'];_0x1606=function(){return _0x2aa8a6;};return _0x1606();}var at=Object[_0x45141a(0x104)],ct=(_0x131d40,_0x961475,_0x42d888,_0x2d9e08)=>{for(var _0x3b7fd7=_0x2d9e08>0x1?void 0x0:_0x2d9e08?at(_0x961475,_0x42d888):_0x961475,_0x25a347=_0x131d40['length']-0x1,_0x4d372c;_0x25a347>=0x0;_0x25a347--)(_0x4d372c=_0x131d40[_0x25a347])&&(_0x3b7fd7=_0x4d372c(_0x3b7fd7)||_0x3b7fd7);return _0x3b7fd7;},ie=(_0x513c0b,_0x2d4b39)=>(_0x712523,_0x1c7a0c)=>_0x2d4b39(_0x712523,_0x1c7a0c,_0x513c0b);let x=class extends a[_0x45141a(0x171)]{constructor(_0x2677bd,_0x58d4fb,_0x164941){const _0x3832da=_0x45141a;super(),h(this,'_entities',new Map()),h(this,_0x3832da(0x2d5),new d[(_0x3832da(0x133))]()),(this['_univerInstanceService']=_0x2677bd,this[_0x3832da(0x19c)]=_0x58d4fb,this[_0x3832da(0x200)]=_0x164941,this[_0x3832da(0x210)]());}['dispose'](){const _0x37b278=_0x45141a;super[_0x37b278(0x20f)](),this[_0x37b278(0x2d5)][_0x37b278(0x300)](),this[_0x37b278(0x180)]['forEach'](_0x9ad6ce=>_0x9ad6ce[_0x37b278(0x20f)]());}[_0x45141a(0xc8)](_0x4ea2ad){const _0x5a39cf=_0x45141a;return this[_0x5a39cf(0x180)][_0x5a39cf(0x17c)](_0x4ea2ad)?this['_entities'][_0x5a39cf(0x1a0)](_0x4ea2ad)[_0x5a39cf(0x223)]:this[_0x5a39cf(0x2d5)][_0x5a39cf(0x186)](d[_0x5a39cf(0x270)](_0x2fe17f=>_0x2fe17f['unitID']===_0x4ea2ad),d['switchMap'](_0x9d6a89=>_0x9d6a89['cursorInfo$']));}[_0x45141a(0x210)](){const _0x545525=_0x45141a;this[_0x545525(0x181)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x545525(0x21b)])[_0x545525(0x186)](d['takeUntil'](this['dispose$']))[_0x545525(0xdf)](async _0x2ad7fb=>{const _0x3636e8=_0x545525,_0x15402c=_0x2ad7fb[_0x3636e8(0x189)](),_0x18bf0e=await this['_startSheetCollabCursor'](_0x15402c);this[_0x3636e8(0x2d5)][_0x3636e8(0x2e4)](_0x18bf0e),this[_0x3636e8(0x180)][_0x3636e8(0x11e)](_0x15402c,_0x18bf0e);}),this[_0x545525(0x181)][_0x545525(0x22d)](a[_0x545525(0x29b)][_0x545525(0xc4)])[_0x545525(0x186)](d[_0x545525(0x2cc)](this['dispose$']))[_0x545525(0x186)](d[_0x545525(0x270)](_0x5a8566=>!_0x5a8566[_0x545525(0x189)]()[_0x545525(0x1ca)]('__')))[_0x545525(0xdf)](async _0x3beb0b=>{const _0x508fcf=_0x545525,_0x1ff796=_0x3beb0b[_0x508fcf(0x189)](),_0x3c2353=await this['_startDocCollabCursor'](_0x1ff796);this[_0x508fcf(0x2d5)]['next'](_0x3c2353),this[_0x508fcf(0x180)]['set'](_0x1ff796,_0x3c2353);}),d[_0x545525(0x145)](this[_0x545525(0x181)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x545525(0xc4)]),this[_0x545525(0x181)][_0x545525(0x1e5)](a[_0x545525(0x29b)]['UNIVER_SHEET']))[_0x545525(0x186)](d['takeUntil'](this[_0x545525(0x1f2)]))['subscribe'](_0x134283=>{const _0x13b24a=_0x545525,_0x29d24f=_0x134283[_0x13b24a(0x189)](),_0x519b92=this[_0x13b24a(0x180)][_0x13b24a(0x1a0)](_0x29d24f);_0x519b92&&(_0x519b92['dispose'](),this[_0x13b24a(0x180)][_0x13b24a(0x151)](_0x29d24f));});}async[_0x45141a(0x1d3)](_0x54a0a7){const _0x2347a2=_0x45141a,_0x199f91=await this[_0x2347a2(0x200)][_0x2347a2(0x16c)](_0x54a0a7),_0x14536b=this[_0x2347a2(0x19c)][_0x2347a2(0x18e)](Se,_0x54a0a7,_0x199f91);return _0x14536b[_0x2347a2(0xc3)](),_0x14536b;}async[_0x45141a(0x13b)](_0x29c8c7){const _0x33bb83=_0x45141a,_0x59a79c=await this[_0x33bb83(0x200)]['requireSession'](_0x29c8c7),_0x3c1056=this[_0x33bb83(0x19c)][_0x33bb83(0x18e)](fe,_0x29c8c7,_0x59a79c);return _0x3c1056['init'](),_0x3c1056;}};x=ct([ie(0x0,a[_0x45141a(0x101)]),ie(0x1,a['Inject'](a[_0x45141a(0x1b0)])),ie(0x2,a[_0x45141a(0x147)](u[_0x45141a(0x14c)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x286a9f,_0x1449eb){const _0x5a0279=_0x45141a;let {radius:_0x5ef463,width:_0x293ed3,height:_0x25ed27}=_0x1449eb;_0x5ef463=_0x5ef463!=null?_0x5ef463:0x0,_0x293ed3=_0x293ed3!=null?_0x293ed3:0x1e,_0x25ed27=_0x25ed27!=null?_0x25ed27:0x1e;let _0x868235=0x0,_0x13bb9d=0x0,_0x5ac938=0x0;_0x868235=_0x13bb9d=_0x5ac938=Math['min'](_0x5ef463,_0x293ed3/0x2,_0x25ed27/0x2),_0x286a9f[_0x5a0279(0x199)](),_0x286a9f[_0x5a0279(0xd8)](_0x868235,0x0),_0x286a9f[_0x5a0279(0x1ce)](_0x293ed3-_0x13bb9d,0x0),_0x286a9f['arc'](_0x293ed3-_0x13bb9d,_0x13bb9d,_0x13bb9d,Math['PI']*0x3/0x2,0x0,!0x1),_0x286a9f['lineTo'](_0x293ed3,_0x25ed27-_0x5ac938),_0x286a9f[_0x5a0279(0xb0)](_0x293ed3-_0x5ac938,_0x25ed27-_0x5ac938,_0x5ac938,0x0,Math['PI']/0x2,!0x1),_0x286a9f['lineTo'](0x0,_0x25ed27),_0x286a9f[_0x5a0279(0x1ce)](0x0,_0x868235),_0x286a9f['arc'](_0x868235,_0x868235,_0x868235,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x286a9f[_0x5a0279(0x12b)](),_0x1449eb[_0x5a0279(0x1c3)]&&(_0x286a9f[_0x5a0279(0x173)](),_0x286a9f[_0x5a0279(0x13d)]=_0x1449eb[_0x5a0279(0x1c3)],_0x1449eb[_0x5a0279(0x116)]===_0x5a0279(0x273)?_0x286a9f[_0x5a0279(0x1c3)](_0x5a0279(0x273)):_0x286a9f[_0x5a0279(0x1c3)](),_0x286a9f[_0x5a0279(0x183)]());}class ee extends p[_0x45141a(0x196)]{constructor(_0x47b6f1,_0x419ef7){const _0x3f1daa=_0x45141a;super(_0x47b6f1,_0x419ef7),h(this,_0x3f1daa(0x13c)),h(this,'text'),(this['color']=_0x419ef7==null?void 0x0:_0x419ef7['color'],this[_0x3f1daa(0xf6)]=_0x419ef7==null?void 0x0:_0x419ef7[_0x3f1daa(0xf6)]);}static[_0x45141a(0x2c4)](_0x2bed4f,_0x263e77){const _0x1363a6=_0x45141a,{text:_0xe1547a,color:_0x5d22f3}=_0x263e77;_0x2bed4f[_0x1363a6(0x173)](),_0x2bed4f[_0x1363a6(0x1e7)]=_0x1363a6(0x192);const _0x294093=_0x2bed4f[_0x1363a6(0xda)](_0xe1547a)[_0x1363a6(0xa1)],_0x1f89e2=Math[_0x1363a6(0x21a)](_0x294093+0x2*ne,Re);_t(_0x2bed4f,{'height':q,'radius':0x4,'width':_0x1f89e2,'fill':_0x5d22f3}),_0x2bed4f[_0x1363a6(0x13d)]=_0x1363a6(0x142);const _0x554c96=ne,_0x5d5972=q-lt,_0x4917ea=Re-0x2*ne;if(_0x294093>_0x4917ea){let _0x4ec5c2='',_0x5ddf3a=0x0;for(const _0x17657b of _0xe1547a){const _0x29f4f6=_0x2bed4f[_0x1363a6(0xda)](_0x17657b)[_0x1363a6(0xa1)];if(_0x5ddf3a+_0x29f4f6<=_0x4917ea-_0x2bed4f[_0x1363a6(0xda)](_0x1363a6(0x112))[_0x1363a6(0xa1)])_0x4ec5c2+=_0x17657b,_0x5ddf3a+=_0x29f4f6;else{_0x4ec5c2+=_0x1363a6(0x112);break;}}_0x2bed4f['fillText'](_0x4ec5c2,_0x554c96,_0x5d5972);}else _0x2bed4f['fillText'](_0xe1547a,_0x554c96,_0x5d5972);_0x2bed4f[_0x1363a6(0x183)]();}[_0x45141a(0x1c7)](_0x569fca){const _0x2dbdeb=_0x45141a;ee[_0x2dbdeb(0x2c4)](_0x569fca,this);}}const re=_0x45141a(0x1bf),ht='collab-text-range-',ut=_0x45141a(0xa8),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x45141a(0xd3);class De{constructor(_0x234c9d,_0x2a57b3,_0x9b11ca,_0x34a981){const _0x41d116=_0x45141a;h(this,_0x41d116(0x16a),[]),h(this,_0x41d116(0x24b),null),h(this,_0x41d116(0x233),null),h(this,_0x41d116(0xc1),null),h(this,_0x41d116(0x130),null),h(this,_0x41d116(0x2c0),null),(this[_0x41d116(0x2cf)]=_0x234c9d,this[_0x41d116(0x23e)]=_0x2a57b3,this['_docSkeleton']=_0x9b11ca,this[_0x41d116(0xd0)]=_0x34a981,this[_0x41d116(0xff)]());}set[_0x45141a(0x268)](_0x274401){const _0x2225aa=_0x45141a;_0x274401?(this[_0x2225aa(0xc1)]&&this[_0x2225aa(0xc1)][_0x2225aa(0xca)](),this[_0x2225aa(0x233)]&&this[_0x2225aa(0x233)][_0x2225aa(0x266)]()):(this['_anchorDot']&&this[_0x2225aa(0xc1)][_0x2225aa(0x266)](),this[_0x2225aa(0x233)]&&this[_0x2225aa(0x233)][_0x2225aa(0xca)]());}[_0x45141a(0x20f)](){const _0x2b3050=_0x45141a;for(const _0x2b6332 of this['_shapes'])_0x2b6332[_0x2b3050(0x20f)]();this[_0x2b3050(0x233)]&&this[_0x2b3050(0x233)]['dispose'](),this[_0x2b3050(0xc1)]&&this[_0x2b3050(0xc1)]['dispose'](),this[_0x2b3050(0x24b)]&&this['_anchor'][_0x2b3050(0x20f)](),this[_0x2b3050(0x2c0)]&&this[_0x2b3050(0x2c0)]();}[_0x45141a(0xff)](){const _0xf5a0c1=_0x45141a;var _0x56de6a;const {_docSkeleton:_0x33be5a,_document:_0x4b46c9}=this,{color:_0x26b1c4,name:_0x26457f,ranges:_0x3b7fdd}=this['_cursor'],_0x1455ec=_0x4b46c9[_0xf5a0c1(0x114)](),{docsLeft:_0x10a239,docsTop:_0x92d423}=_0x1455ec,_0x466b7d=new b['NodePositionConvertToCursor'](_0x1455ec,_0x33be5a);for(const {startOffset:_0x492ee2,endOffset:_0x20bc28,rangeType:_0x5deac5,segmentId:_0x1d878f,segmentPage:_0x4f1e14,collapsed:_0x963d4a,isActive:_0x2ef9ae}of _0x3b7fdd){const _0x31b7fc=_0x33be5a['findNodePositionByCharIndex'](_0x492ee2,!0x0,_0x1d878f,_0x4f1e14);let _0x567d57=_0x33be5a[_0xf5a0c1(0xa9)](_0x20bc28,!0x0,_0x1d878f,_0x4f1e14);if(_0x567d57==null&&(_0x567d57=_0x33be5a['findNodePositionByCharIndex'](_0x20bc28-0x1,!0x1,_0x1d878f,_0x4f1e14)),_0x2ef9ae){const {contentBoxPointGroup:_0x103000}=_0x466b7d[_0xf5a0c1(0x271)](_0x567d57,_0x567d57);if(_0x103000[_0xf5a0c1(0x1fe)]===0x0)continue;this[_0xf5a0c1(0x14d)](_0x26b1c4,_0x103000,_0x10a239,_0x92d423,_0x26457f),this[_0xf5a0c1(0x2c0)]=this[_0xf5a0c1(0x282)]();}if(_0x31b7fc&&_0x567d57){if(_0x5deac5===a['DOC_RANGE_TYPE']['RECT']){const _0x24746b=new b[(_0xf5a0c1(0x2ba))](_0x1455ec,_0x33be5a),{pointGroup:_0x384a38}=(_0x56de6a=_0x24746b[_0xf5a0c1(0x271)](_0x31b7fc,_0x567d57))!=null?_0x56de6a:{};if(_0x384a38==null||_0x384a38[_0xf5a0c1(0x1fe)]===0x0)continue;this[_0xf5a0c1(0x162)](_0x26b1c4,_0x384a38,_0x10a239,_0x92d423);}else{if(!_0x963d4a){const {borderBoxPointGroup:_0xbcfec}=_0x466b7d[_0xf5a0c1(0x271)](_0x31b7fc,_0x567d57);if(_0xbcfec[_0xf5a0c1(0x1fe)]===0x0)continue;this['_drawTextRange'](_0x26b1c4,_0xbcfec,_0x10a239,_0x92d423);}}}}}[_0x45141a(0x14d)](_0x317de4,_0x3dc179,_0x2e071f,_0x2def6d,_0x575610){const _0x468c87=_0x45141a,_0x218ca9=this[_0x468c87(0x256)](_0x3dc179),{left:_0x492f86,top:_0x1ebc69,height:_0x2235b7}=_0x218ca9,_0x201cbc=this[_0x468c87(0x2f4)](),_0x219586=ft/_0x201cbc,_0x2e30dd=new p['Rect'](re+a[_0x468c87(0x1d0)][_0x468c87(0x1a3)](k),{'left':_0x492f86+_0x2e071f-_0x219586,'top':_0x1ebc69+_0x2def6d,'height':_0x2235b7,'width':dt,'fill':_0x317de4||p['getColor'](a['COLORS'][_0x468c87(0x240)],0x0),'strokeWidth':_0x219586,'stroke':St,'evented':!0x0});this['_anchor']=_0x2e30dd,this[_0x468c87(0x23e)][_0x468c87(0x177)](_0x2e30dd,b[_0x468c87(0x1ac)]);const _0x27218f=new p[(_0x468c87(0x26e))](re+a[_0x468c87(0x1d0)][_0x468c87(0x1a3)](k),{'left':_0x492f86+_0x2e071f-_0x219586,'top':_0x1ebc69+_0x2def6d-oe/0x2,'height':oe,'width':oe,'fill':_0x317de4||p[_0x468c87(0x248)](a['COLORS'][_0x468c87(0x240)],0x0),'strokeWidth':0x0,'stroke':_0x317de4||p[_0x468c87(0x248)](a[_0x468c87(0x109)][_0x468c87(0x240)],0x0),'evented':!0x1});this[_0x468c87(0xc1)]=_0x27218f,this['_scene'][_0x468c87(0x177)](_0x27218f,b['TEXT_RANGE_LAYER_INDEX']);const _0xed91fe=new ee(re+a[_0x468c87(0x1d0)][_0x468c87(0x1a3)](k),{'left':_0x492f86+_0x2e071f-_0x219586,'top':_0x1ebc69+_0x2def6d-q,'text':_0x575610,'color':_0x317de4});this[_0x468c87(0x233)]=_0xed91fe,this[_0x468c87(0x23e)][_0x468c87(0x177)](_0xed91fe,b[_0x468c87(0x1ac)]),this[_0x468c87(0x268)]=!0x1;}[_0x45141a(0x282)](){const _0x94480a=_0x45141a,_0x347741=this['_anchor'][_0x94480a(0xf9)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x245481=this[_0x94480a(0x24b)][_0x94480a(0xee)][_0x94480a(0x1fd)](()=>{const _0x40934d=_0x94480a;this[_0x40934d(0x130)]&&clearTimeout(this[_0x40934d(0x130)]),this[_0x40934d(0x130)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4aa800=_0x94480a;_0x347741['unsubscribe'](),_0x245481[_0x4aa800(0x1b5)]();};}[_0x45141a(0x172)](_0xe38788,_0xc71e0f,_0x58a4f2,_0x41b14b){const _0x1bfc67=_0x45141a,_0x2c3d7b=new a[(_0x1bfc67(0x288))](_0xe38788)['setAlpha'](0.2)['toRgbString'](),_0x4e71a4=new p[(_0x1bfc67(0xf4))](ht+a[_0x1bfc67(0x1d0)][_0x1bfc67(0x1a3)](k),{'pointsGroup':_0xc71e0f,'fill':_0x2c3d7b||p[_0x1bfc67(0x248)](a['COLORS'][_0x1bfc67(0x240)],0.2),'left':_0x58a4f2,'top':_0x41b14b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1bfc67(0x16a)]['push'](_0x4e71a4),this[_0x1bfc67(0x23e)][_0x1bfc67(0x177)](_0x4e71a4,b[_0x1bfc67(0x1ac)]);}[_0x45141a(0x162)](_0x16efc2,_0x5ba0f6,_0x573ece,_0x4ce252){const _0xbe7386=_0x45141a,_0x23f725=new a[(_0xbe7386(0x288))](_0x16efc2)[_0xbe7386(0x24a)](0.2)['toRgbString'](),_0x102887=new p[(_0xbe7386(0xf4))](ut+a[_0xbe7386(0x1d0)][_0xbe7386(0x1a3)](k),{'pointsGroup':_0x5ba0f6,'fill':_0x23f725||p[_0xbe7386(0x248)](a['COLORS'][_0xbe7386(0x240)],0.2),'left':_0x573ece,'top':_0x4ce252,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xbe7386(0x16a)][_0xbe7386(0x297)](_0x102887),this['_scene'][_0xbe7386(0x177)](_0x102887,b[_0xbe7386(0x1ac)]);}['_getAnchorBounding'](_0x100a9){const _0x2c4b86=_0x100a9[0x0],_0x17b20d=_0x2c4b86[0x0],_0x384517=_0x2c4b86[0x2],{x:_0xd6420b,y:_0x372d8a}=_0x17b20d,{x:_0x359fe4,y:_0x3a677d}=_0x384517;return{'left':_0xd6420b,'top':_0x372d8a,'width':_0x359fe4-_0xd6420b,'height':_0x3a677d-_0x372d8a};}['_getScale'](){const _0x5f31c5=_0x45141a,{scaleX:_0x3e29b1,scaleY:_0x430ed4}=this[_0x5f31c5(0x23e)][_0x5f31c5(0x1d1)]();return Math['max'](_0x3e29b1,_0x430ed4);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x553b22,_0x250bb0,_0x25e2b0,_0x57644e)=>{const _0xdb4309=_0x45141a;for(var _0x62e773=_0x57644e>0x1?void 0x0:_0x57644e?It(_0x250bb0,_0x25e2b0):_0x250bb0,_0xea252a=_0x553b22[_0xdb4309(0x1fe)]-0x1,_0x144f16;_0xea252a>=0x0;_0xea252a--)(_0x144f16=_0x553b22[_0xea252a])&&(_0x62e773=_0x144f16(_0x62e773)||_0x62e773);return _0x62e773;},Y=(_0x215dbc,_0xd853bc)=>(_0x12f079,_0x3c5001)=>_0xd853bc(_0x12f079,_0x3c5001,_0x215dbc);let Ie=class extends a[_0x45141a(0x171)]{constructor(_0x985f0b,_0x521214,_0x1008ab,_0x25f195,_0xbce216){const _0x6504b4=_0x45141a;super(),h(this,'_cursorShapes',[]),h(this,_0x6504b4(0x2e5),[]),(this[_0x6504b4(0x14a)]=_0x985f0b,this[_0x6504b4(0x16d)]=_0x521214,this['_collabCursorController']=_0x1008ab,this[_0x6504b4(0x160)]=_0x25f195,this[_0x6504b4(0x2d9)]=_0xbce216,this[_0x6504b4(0x210)]());}[_0x45141a(0x210)](){const _0x2a19de=_0x45141a,_0x4d38bc=this['_context']['unitId'],_0x181cee=this[_0x2a19de(0x16d)];this[_0x2a19de(0x18a)](d[_0x2a19de(0x2c1)]([this[_0x2a19de(0x1ee)][_0x2a19de(0xc8)](_0x4d38bc),this['_themeService'][_0x2a19de(0x283)]])[_0x2a19de(0x186)]($[_0x2a19de(0xa3)](([_0x39fc63,_0x45c575])=>({'skeleton':_0x181cee[_0x2a19de(0x152)](),'cursors':[..._0x39fc63[_0x2a19de(0x307)]()][_0x2a19de(0x2fd)](_0x545292=>({..._0x545292,'color':_0x45c575[_0x545292[_0x2a19de(0x13c)]]}))})))[_0x2a19de(0xdf)](_0x47bf64=>{const _0xa32234=_0x2a19de;if(this[_0xa32234(0x2ae)](),_0x47bf64){const {skeleton:_0x12a9e6,cursors:_0x4ccd43}=_0x47bf64;this[_0xa32234(0x20c)](_0x12a9e6,_0x4ccd43);}})),this[_0x2a19de(0x2f1)](),this[_0x2a19de(0xd5)]();}[_0x45141a(0x20c)](_0x3841d9,_0x2f8155){const _0x5ee047=_0x45141a,{scene:_0xa02af8,mainComponent:_0x4892b6}=this[_0x5ee047(0x14a)],_0x4a8bbe=_0x2f8155['map'](_0x9012ea=>new De(_0x9012ea,_0xa02af8,_0x3841d9,_0x4892b6));this[_0x5ee047(0x2bd)]=_0x4a8bbe,this[_0x5ee047(0x2e5)]=_0x2f8155;}[_0x45141a(0x275)](){const _0x351b97=_0x45141a;this[_0x351b97(0x2ae)]();const {scene:_0x16be76,mainComponent:_0x146c4e}=this['_context'],_0x5ddfc5=this['_docSkeletonManagerService']['getSkeleton'](),_0x36241e=this[_0x351b97(0x2e5)][_0x351b97(0xa3)](_0x1a9501=>new De(_0x1a9501,_0x16be76,_0x5ddfc5,_0x146c4e));this['_cursorShapes']=_0x36241e;}[_0x45141a(0x2ae)](){const _0x131d90=_0x45141a;this[_0x131d90(0x2bd)][_0x131d90(0xf1)](_0x5abbd4=>_0x5abbd4[_0x131d90(0x20f)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x34e2d7=_0x45141a,_0x301658=[b[_0x34e2d7(0x2e9)]['id']];this['disposeWithMe'](this[_0x34e2d7(0x160)]['onCommandExecuted'](_0x31ad16=>{const _0x335813=_0x34e2d7;_0x301658[_0x335813(0xd7)](_0x31ad16['id'])&&_0x31ad16[_0x335813(0xbd)][_0x335813(0x286)]===this[_0x335813(0x14a)][_0x335813(0x286)]&&this['_refreshCollabCursors']();}));}[_0x45141a(0x2f1)](){const _0x72334f=_0x45141a;this[_0x72334f(0x18a)](a[_0x72334f(0x27d)](this['_context'][_0x72334f(0x2b9)][_0x72334f(0x216)])['pipe']($['filter'](_0x5052f9=>_0x5052f9[_0x72334f(0x304)]===p[_0x72334f(0x156)]['resize']),$[_0x72334f(0x2cb)](0x10))[_0x72334f(0xdf)](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([Y(0x1,a[_0x45141a(0x147)](W['DocSkeletonManagerService'])),Y(0x2,a[_0x45141a(0x147)](x)),Y(0x3,a['ICommandService']),Y(0x4,a[_0x45141a(0x147)](a[_0x45141a(0x258)]))],Ie);const gt=0x1,mt=1.5;class we extends p[_0x45141a(0x196)]{constructor(_0x25978e,_0x2c19e9){const _0x137fc6=_0x45141a;super(_0x25978e,_0x2c19e9),h(this,_0x137fc6(0xf8)),h(this,_0x137fc6(0x166),!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x137fc6(0x2b5),'top'),h(this,_0x137fc6(0xa5)),(_0x2c19e9&&this['setShapeProps'](_0x2c19e9),this[_0x137fc6(0xf9)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x137fc6(0x1fd)](()=>this[_0x137fc6(0xfe)]({'hovered':!0x1})));}[_0x45141a(0xfe)](_0x1175c4){const _0x1634c3=_0x45141a;var _0x57d227,_0x5042b9,_0x53f83b,_0x89c543,_0x92f034,_0x466aea;this[_0x1634c3(0xf8)]=(_0x57d227=_0x1175c4[_0x1634c3(0x13c)])!=null?_0x57d227:this[_0x1634c3(0xf8)],this[_0x1634c3(0x166)]=(_0x5042b9=_0x1175c4['hovered'])!=null?_0x5042b9:this[_0x1634c3(0x166)],this['_range']=(_0x53f83b=_0x1175c4[_0x1634c3(0x259)])!=null?_0x53f83b:this[_0x1634c3(0x1ef)],this['_name']=(_0x89c543=_0x1175c4[_0x1634c3(0x1f8)])!=null?_0x89c543:this['_name'],this[_0x1634c3(0x2b5)]=(_0x92f034=_0x1175c4[_0x1634c3(0x1dd)])!=null?_0x92f034:this[_0x1634c3(0x2b5)],this[_0x1634c3(0xa5)]=(_0x466aea=_0x1175c4[_0x1634c3(0x9e)])!=null?_0x466aea:this[_0x1634c3(0xa5)],this[_0x1634c3(0x10f)]({'width':_0x1175c4[_0x1634c3(0xa1)],'height':_0x1175c4[_0x1634c3(0x26c)]});}[_0x45141a(0x310)](_0xde8580){const _0x189989=_0x45141a,{row:_0x204411,column:_0x49a4f5}=_0xde8580;if(_0x204411>=this['_range']['startRow']&&_0x204411<=this[_0x189989(0x1ef)][_0x189989(0x2ec)]&&_0x49a4f5>=this[_0x189989(0x1ef)][_0x189989(0xe2)]&&_0x49a4f5<=this[_0x189989(0x1ef)]['endColumn']){this[_0x189989(0xfe)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x45141a(0x1e4)](_0x43cbe5){return!0x1;}[_0x45141a(0x1c7)](_0x1d7e9d){const _0x55c980=_0x45141a;p[_0x55c980(0x26e)]['drawWith'](_0x1d7e9d,{'width':this[_0x55c980(0xa1)],'height':this[_0x55c980(0x26c)],'strokeWidth':mt,'stroke':this[_0x55c980(0xf8)],'evented':!0x1,'fill':this[_0x55c980(0xa5)]}),this[_0x55c980(0x166)]&&(_0x1d7e9d[_0x55c980(0x173)](),_0x1d7e9d['transform'](0x1,0x0,0x0,0x1,this[_0x55c980(0xa1)],this[_0x55c980(0x2b5)]==='bottom'?0x0:-0x14),ee[_0x55c980(0x2c4)](_0x1d7e9d,{'text':this[_0x55c980(0x148)],'color':this[_0x55c980(0xf8)]}),_0x1d7e9d[_0x55c980(0x183)]());}}var Ct=Object[_0x45141a(0x104)],pt=(_0x206c8a,_0x5e0493,_0x5a52a1,_0xe55186)=>{const _0x1b416f=_0x45141a;for(var _0x55d383=_0xe55186>0x1?void 0x0:_0xe55186?Ct(_0x5e0493,_0x5a52a1):_0x5e0493,_0x15eb83=_0x206c8a[_0x1b416f(0x1fe)]-0x1,_0x57efa6;_0x15eb83>=0x0;_0x15eb83--)(_0x57efa6=_0x206c8a[_0x15eb83])&&(_0x55d383=_0x57efa6(_0x55d383)||_0x55d383);return _0x55d383;},ae=(_0x289cb,_0x373151)=>(_0x29e835,_0x14719c)=>_0x373151(_0x29e835,_0x14719c,_0x289cb);const bt=0x1389;let ve=class extends a[_0x45141a(0x171)]{constructor(_0x21be3c,_0x108ae9,_0xc028f7,_0x2a9fa8){const _0xc4c56=_0x45141a;super(),h(this,_0xc4c56(0x2e5),new Set()),h(this,_0xc4c56(0x2a2),null),(this[_0xc4c56(0x14a)]=_0x21be3c,this[_0xc4c56(0x15f)]=_0x108ae9,this[_0xc4c56(0x1ee)]=_0xc028f7,this['_themeService']=_0x2a9fa8,this[_0xc4c56(0x210)]());}[_0x45141a(0x210)](){const _0x1d4539=_0x45141a;this[_0x1d4539(0x15f)]['currentSkeleton$'][_0x1d4539(0x186)]($[_0x1d4539(0x2cc)](this[_0x1d4539(0x1f2)]),$[_0x1d4539(0xc6)](_0x3349db=>{const _0x3831ca=_0x1d4539;if(_0x3349db){const _0x26c62d=_0x3349db['sheetId'];return d['combineLatest'](this[_0x3831ca(0x1ee)]['getCollabCursors$'](this['_context']['unitId']),this[_0x3831ca(0x2d9)]['currentTheme$'])[_0x3831ca(0x186)]($[_0x3831ca(0xa3)](([_0x3543d2,_0x2866cf])=>{const _0x1fecdc=_0x3831ca,_0x37636e=new Map();return _0x3543d2[_0x1fecdc(0xf1)]((_0x18b60c,_0x3e8eaf)=>{const _0x128c12=_0x1fecdc;if(_0x18b60c['sheetID']===_0x26c62d){const _0x59faef={..._0x18b60c};_0x59faef[_0x128c12(0x13c)]=_0x2866cf[_0x18b60c['color']],_0x37636e[_0x128c12(0x11e)](_0x3e8eaf,_0x59faef);}}),{'skeleton':_0x3349db,'cursors':_0x37636e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1d4539(0xdf)](({skeleton:_0xbc8bcc,cursors:_0x2cc6da})=>{const _0x36a733=_0x1d4539;this[_0x36a733(0x2ae)](),_0xbc8bcc&&this[_0x36a733(0x20c)](_0xbc8bcc,_0x2cc6da);}),this[_0x1d4539(0x15f)][_0x1d4539(0x137)][_0x1d4539(0xdf)](_0x4cf3a3=>{const _0x5af5a4=_0x1d4539;if(_0x4cf3a3==null)return;const {skeleton:_0x223450}=_0x4cf3a3,{scene:_0x2d45d5}=this[_0x5af5a4(0x14a)];_0x2d45d5['onPointerMove$'][_0x5af5a4(0x1fd)](a['debounce'](_0x33e9fa=>{const _0x161fb6=_0x5af5a4;var _0x32636e,_0x243d0e;const {offsetX:_0x4dbe2d,offsetY:_0x3b19e4}=_0x33e9fa,{x:_0x2e46e3,y:_0x1b61d7}=_0x2d45d5[_0x161fb6(0x1fb)](p[_0x161fb6(0xb5)][_0x161fb6(0x1af)]([_0x4dbe2d,_0x3b19e4])),{scaleX:_0x40c1ec,scaleY:_0x18d720}=_0x2d45d5[_0x161fb6(0x1d1)](),_0x1a054a=_0x2d45d5['getViewport'](p[_0x161fb6(0x236)][_0x161fb6(0x2c6)]),_0x28400c=_0x2d45d5[_0x161fb6(0x2f0)](p[_0x161fb6(0xb5)][_0x161fb6(0x1af)]([_0x2e46e3,_0x1b61d7]),_0x1a054a),_0xa659a3=_0x223450[_0x161fb6(0x302)](_0x4dbe2d,_0x3b19e4,_0x40c1ec,_0x18d720,_0x28400c);((_0x32636e=this[_0x161fb6(0x2a2)])==null?void 0x0:_0x32636e[_0x161fb6(0x1b8)])===_0xa659a3[_0x161fb6(0x1b8)]&&((_0x243d0e=this[_0x161fb6(0x2a2)])==null?void 0x0:_0x243d0e[_0x161fb6(0x2a8)])===_0xa659a3['row']||this[_0x161fb6(0x2e5)]['forEach'](_0x1d0ac3=>{const _0xa1ffdd=_0x161fb6;_0x1d0ac3[_0xa1ffdd(0x310)](_0xa659a3);});},0x64));});}[_0x45141a(0x20c)](_0x43bf69,_0x2b575b){const _0x4f1f43=_0x45141a;var _0x19e196;const _0x338976=(_0x19e196=this[_0x4f1f43(0x15f)]['getCurrent']())==null?void 0x0:_0x19e196[_0x4f1f43(0x2b2)];if(!_0x338976)return;const _0x3185fa=this[_0x4f1f43(0x2e6)]();if(!_0x3185fa)return;this[_0x4f1f43(0x2e5)][_0x4f1f43(0xf1)](_0x423ca5=>{const _0x55f791=_0x4f1f43;_0x423ca5[_0x55f791(0x301)]();});const {scene:_0xa2c63f}=_0x3185fa,_0x59a3e4=Et(Array[_0x4f1f43(0x2af)](_0x2b575b[_0x4f1f43(0x307)]()))['map'](_0x3d2e2f=>{const _0x186c23=_0x4f1f43,{color:_0x405ff4,range:_0x2dd697,name:_0x2fe439,selection:_0x576b7a,sheetID:_0x11409a}=_0x3d2e2f,{startColumn:_0x4847ef,startRow:_0x4e5f03,endColumn:_0x3b41c7,endRow:_0x4b158a}=_0x2dd697,_0x56fc1e=X[_0x186c23(0xbc)](_0x4e5f03,_0x4847ef,_0xa2c63f,_0x338976),_0x4ce54a=X[_0x186c23(0xbc)](_0x4b158a,_0x3b41c7,_0xa2c63f,_0x338976),{columnHeaderHeightAndMarginTop:_0xf58e5c}=_0x338976,{startX:_0x5d1c13,startY:_0x2080c2}=_0x56fc1e,{endX:_0x4da537,endY:_0x35d838}=_0x4ce54a,_0x1809b9=_0x4da537-_0x5d1c13,_0x193d9b=_0x35d838-_0x2080c2,_0x279290={'labelPosition':_0x2080c2-_0xf58e5c>=q?_0x186c23(0x2ad):_0x186c23(0x280),'sheetID':_0x11409a,'range':_0x2dd697,'color':_0x405ff4,'name':_0x2fe439,'selection':_0x576b7a,'left':_0x5d1c13,'top':_0x2080c2,'width':_0x1809b9,'height':_0x193d9b,'evented':!0x1,'zIndex':bt};return new we(_0x2fe439,_0x279290);});_0xa2c63f[_0x4f1f43(0x314)](_0x59a3e4,gt),this[_0x4f1f43(0x2e5)]=new Set(_0x59a3e4);}['_removeCollabCursors'](){const _0x16c7e5=_0x45141a;var _0x84a727;(_0x84a727=this[_0x16c7e5(0x2e5)])==null||_0x84a727[_0x16c7e5(0xf1)](_0x16724e=>_0x16724e[_0x16c7e5(0x20f)]());}[_0x45141a(0x2e6)](){const _0x5b30b8=_0x45141a;return X[_0x5b30b8(0x203)](this[_0x5b30b8(0x14a)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x45141a(0x147)](X[_0x45141a(0x2a5)])),ae(0x2,a[_0x45141a(0x147)](x)),ae(0x3,a[_0x45141a(0x147)](a['ThemeService']))],ve);function Et(_0x3258d0){const _0x3b4d5c=_0x45141a,_0x12dbfc=new Map();return _0x3258d0[_0x3b4d5c(0xf1)](_0x194fe0=>{const _0x37c969=_0x3b4d5c;if(_0x12dbfc[_0x37c969(0x17c)](_0x194fe0[_0x37c969(0x1a5)])){const _0x2e6f6b=_0x12dbfc[_0x37c969(0x1a0)](_0x194fe0[_0x37c969(0x1a5)]);_0x2e6f6b[_0x37c969(0x1f8)]+=',\x20'+_0x194fe0[_0x37c969(0x1f8)];}else _0x12dbfc['set'](_0x194fe0[_0x37c969(0x1a5)],_0x194fe0);}),Array[_0x3b4d5c(0x2af)](_0x12dbfc[_0x3b4d5c(0x307)]());}var E=function(){const _0x304133=_0x45141a;return E=Object['assign']||function(_0x2a6c02){const _0x98c768=_0x2ce7;for(var _0x1eb82d,_0x3750cd=0x1,_0x46eef4=arguments['length'];_0x3750cd<_0x46eef4;_0x3750cd++){_0x1eb82d=arguments[_0x3750cd];for(var _0x56e029 in _0x1eb82d)Object[_0x98c768(0x296)][_0x98c768(0x22f)][_0x98c768(0xe0)](_0x1eb82d,_0x56e029)&&(_0x2a6c02[_0x56e029]=_0x1eb82d[_0x56e029]);}return _0x2a6c02;},E[_0x304133(0xe7)](this,arguments);},Tt=function(_0x366767,_0x50de4d){const _0x3cd48e=_0x45141a;var _0x2ee04c={};for(var _0x456e64 in _0x366767)Object[_0x3cd48e(0x296)]['hasOwnProperty'][_0x3cd48e(0xe0)](_0x366767,_0x456e64)&&_0x50de4d[_0x3cd48e(0x1e1)](_0x456e64)<0x0&&(_0x2ee04c[_0x456e64]=_0x366767[_0x456e64]);if(_0x366767!=null&&typeof Object['getOwnPropertySymbols']==_0x3cd48e(0xb7)){for(var _0x26e95f=0x0,_0x456e64=Object[_0x3cd48e(0x1f3)](_0x366767);_0x26e95f<_0x456e64[_0x3cd48e(0x1fe)];_0x26e95f++)_0x50de4d[_0x3cd48e(0x1e1)](_0x456e64[_0x26e95f])<0x0&&Object['prototype'][_0x3cd48e(0x1f4)][_0x3cd48e(0xe0)](_0x366767,_0x456e64[_0x26e95f])&&(_0x2ee04c[_0x456e64[_0x26e95f]]=_0x366767[_0x456e64[_0x26e95f]]);}return _0x2ee04c;},pe=M[_0x45141a(0x239)](function(_0x20733d,_0x1f59db){const _0x4d2a65=_0x45141a;var _0x4df33e=_0x20733d[_0x4d2a65(0x1aa)],_0x33ee8d=_0x20733d['id'],_0x46ecca=_0x20733d[_0x4d2a65(0x1a4)],_0x4e29af=_0x20733d[_0x4d2a65(0x149)],_0x2b0f3c=Tt(_0x20733d,['icon','id',_0x4d2a65(0x1a4),_0x4d2a65(0x149)]),_0x24d874=_0x4d2a65(0xf0)['concat'](_0x33ee8d,'\x20')[_0x4d2a65(0x27c)](_0x46ecca||'')[_0x4d2a65(0xc2)](),_0x475e9c=M[_0x4d2a65(0x170)]('_'[_0x4d2a65(0x27c)](Dt()));return Ae(_0x4df33e,''['concat'](_0x33ee8d),{'defIds':_0x4df33e['defIds'],'idSuffix':_0x475e9c[_0x4d2a65(0x153)]},E({'ref':_0x1f59db,'className':_0x24d874},_0x2b0f3c),_0x4e29af);});function Ae(_0x7fac6f,_0x2aad2,_0x10b002,_0xdd5114,_0x476f40){const _0x18de84=_0x45141a;return M['createElement'](_0x7fac6f[_0x18de84(0x1f5)],E(E({'key':_0x2aad2},Ot(_0x7fac6f,_0x10b002,_0x476f40)),_0xdd5114),(Rt(_0x7fac6f,_0x10b002)[_0x18de84(0x2bf)]||[])[_0x18de84(0xa3)](function(_0x55dcd0,_0x22017b){const _0x2bb64a=_0x18de84;return Ae(_0x55dcd0,''[_0x2bb64a(0x27c)](_0x2aad2,'-')[_0x2bb64a(0x27c)](_0x7fac6f['tag'],'-')[_0x2bb64a(0x27c)](_0x22017b),_0x10b002,void 0x0,_0x476f40);}));}function Ot(_0x57ebbd,_0x381a8e,_0x57e817){const _0x2f65ab=_0x45141a;var _0x447e88=E({},_0x57ebbd['attrs']);_0x57e817!=null&&_0x57e817[_0x2f65ab(0x1b1)]&&_0x447e88[_0x2f65ab(0x1c3)]==='colorChannel1'&&(_0x447e88[_0x2f65ab(0x1c3)]=_0x57e817[_0x2f65ab(0x1b1)]),_0x57ebbd[_0x2f65ab(0x1f5)]==='mask'&&_0x447e88['id']&&(_0x447e88['id']=_0x447e88['id']+_0x381a8e[_0x2f65ab(0x2aa)]),Object[_0x2f65ab(0x291)](_0x447e88)[_0x2f65ab(0xf1)](function(_0x48fd89){const _0x17e805=_0x2f65ab;var _0x31389f=_0x48fd89[0x0],_0x206d73=_0x48fd89[0x1];_0x31389f===_0x17e805(0x159)&&typeof _0x206d73==_0x17e805(0x2d8)&&(_0x447e88[_0x31389f]=_0x206d73[_0x17e805(0x18c)](/url\(#(.*)\)/,_0x17e805(0x11d)[_0x17e805(0x27c)](_0x381a8e[_0x17e805(0x2aa)],')')));});var _0x28ed33=_0x381a8e[_0x2f65ab(0x211)];return!_0x28ed33||_0x28ed33[_0x2f65ab(0x1fe)]===0x0||(_0x57ebbd[_0x2f65ab(0x1f5)]===_0x2f65ab(0x264)&&_0x447e88['xlink:href']&&(_0x447e88['xlink:href']=_0x447e88['xlink:href']+_0x381a8e[_0x2f65ab(0x2aa)]),Object['entries'](_0x447e88)['forEach'](function(_0x5c483d){const _0x489275=_0x2f65ab;var _0x557f87=_0x5c483d[0x0],_0x574965=_0x5c483d[0x1];typeof _0x574965=='string'&&(_0x447e88[_0x557f87]=_0x574965['replace'](/url\(#(.*)\)/,_0x489275(0x11d)['concat'](_0x381a8e['idSuffix'],')')));})),_0x447e88;}function Rt(_0x422c87,_0x424dd1){const _0x4dc63=_0x45141a;var _0x5578cf,_0x10abac=_0x424dd1[_0x4dc63(0x211)];return!_0x10abac||_0x10abac[_0x4dc63(0x1fe)]===0x0?_0x422c87:_0x422c87[_0x4dc63(0x1f5)]===_0x4dc63(0x224)&&(!((_0x5578cf=_0x422c87[_0x4dc63(0x2bf)])===null||_0x5578cf===void 0x0)&&_0x5578cf[_0x4dc63(0x1fe)])?E(E({},_0x422c87),{'children':_0x422c87[_0x4dc63(0x2bf)]['map'](function(_0x153767){const _0x35b7b=_0x4dc63;return typeof _0x153767[_0x35b7b(0x1e3)]['id']==_0x35b7b(0x2d8)&&_0x10abac&&_0x10abac[_0x35b7b(0x1e1)](_0x153767[_0x35b7b(0x1e3)]['id'])>-0x1?E(E({},_0x153767),{'attrs':E(E({},_0x153767['attrs']),{'id':_0x153767[_0x35b7b(0x1e3)]['id']+_0x424dd1[_0x35b7b(0x2aa)]})}):_0x153767;})}):_0x422c87;}function Dt(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}pe[_0x45141a(0xfb)]=_0x45141a(0x2d6);var Ut={'tag':_0x45141a(0x191),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x45141a(0x103),'height':_0x45141a(0x103)},'children':[{'tag':'g','attrs':{'clipPath':_0x45141a(0x164)},'children':[{'tag':'path','attrs':{'stroke':_0x45141a(0x253),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x45141a(0x285),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x45141a(0x224),'attrs':{},'children':[{'tag':_0x45141a(0x2b6),'attrs':{'id':_0x45141a(0x155)},'children':[{'tag':_0x45141a(0x1ea),'attrs':{'fill':_0x45141a(0xed),'d':_0x45141a(0x146)}}]}]}],'defIds':[_0x45141a(0x155)]},ye=M[_0x45141a(0x239)](function(_0x4d52b7,_0x5f5c1c){const _0x854cef=_0x45141a;return M[_0x854cef(0x1b2)](pe,Object['assign']({},_0x4d52b7,{'id':_0x854cef(0x315),'ref':_0x5f5c1c,'icon':Ut}));});ye['displayName']=_0x45141a(0x158);var Nt={'tag':_0x45141a(0x191),'attrs':{'fill':_0x45141a(0x21d),'viewBox':_0x45141a(0x1b3),'width':_0x45141a(0x103),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x45141a(0x21e),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x45141a(0x224),'attrs':{},'children':[{'tag':_0x45141a(0x2b6),'attrs':{'id':_0x45141a(0x28f)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x45141a(0x1c6)}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x45141a(0x239)](function(_0x4bda51,_0x4b48eb){const _0xbfd2c4=_0x45141a;return M[_0xbfd2c4(0x1b2)](pe,Object[_0xbfd2c4(0x2ee)]({},_0x4bda51,{'id':_0xbfd2c4(0x10a),'ref':_0x4b48eb,'icon':Nt}));});$e[_0x45141a(0xfb)]=_0x45141a(0x201);function Mt(_0x474424){const _0x5f280b=_0x45141a;switch(_0x474424){case u[_0x5f280b(0x2ef)][_0x5f280b(0x311)]:return _0x5f280b(0x14f);case u['CollaborationStatus']['CONFLICT']:return _0x5f280b(0x24c);case u[_0x5f280b(0x2ef)][_0x5f280b(0x10d)]:return _0x5f280b(0x229);case u['CollaborationStatus']['NOT_COLLAB']:return _0x5f280b(0x238);case u[_0x5f280b(0x2ef)][_0x5f280b(0xdb)]:case u[_0x5f280b(0x2ef)]['AWAITING_WITH_PENDING']:return _0x5f280b(0x128);case u[_0x5f280b(0x2ef)][_0x5f280b(0x267)]:case u[_0x5f280b(0x2ef)][_0x5f280b(0x294)]:return _0x5f280b(0x2ea);}}function xe(_0xae173a){const _0x5e25bf=_0x45141a,{status$:_0x2f8001}=_0xae173a,_0x966801=T[_0x5e25bf(0x13f)](_0x2f8001,u['CollaborationStatus'][_0x5e25bf(0x11f)]),_0x49ddd6=T[_0x5e25bf(0x2eb)](a[_0x5e25bf(0x2f3)]),_0x2bd9a0=T[_0x5e25bf(0x2eb)](u['CollaborationSessionService']),_0x5e72d0=_0x966801!==u[_0x5e25bf(0x2ef)][_0x5e25bf(0x311)],_0x3f7c51=_0x49ddd6['t'](Mt(_0x966801)),_0x162032=_0x5e72d0?P[_0x5e25bf(0x1f0)]($e,{}):P[_0x5e25bf(0x1f0)](ye,{}),_0x54a30b=M[_0x5e25bf(0x140)](()=>{_0x5e72d0||_0x2bd9a0['reconnect']();},[_0x5e72d0,_0x2bd9a0]);function _0x1a9220(){const _0x2c0ea1=_0x5e25bf;return P[_0x2c0ea1(0x312)](_0x2c0ea1(0x293),{'className':'univer-flex\x20univer-items-center','onClick':_0x54a30b,'children':[P[_0x2c0ea1(0x1f0)](_0x2c0ea1(0x293),{'className':D[_0x2c0ea1(0x2c2)]('univer-flex\x20univer-mr-2\x20univer-text-[20px]',_0x5e72d0?_0x2c0ea1(0x19e):'univer-text-red-500'),'children':_0x162032}),P['jsx']('div',{'className':'univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','children':_0x3f7c51})]});}return _0x5e72d0?_0x1a9220():P['jsx'](D[_0x5e25bf(0x26a)],{'title':_0x49ddd6['t'](_0x5e25bf(0x18f)),'children':_0x1a9220()});}function _0x2ce7(_0x170a14,_0x315e06){const _0x16064d=_0x1606();return _0x2ce7=function(_0x2ce778,_0x1a470c){_0x2ce778=_0x2ce778-0x9e;let _0x214e7a=_0x16064d[_0x2ce778];return _0x214e7a;},_0x2ce7(_0x170a14,_0x315e06);}var Lt=Object[_0x45141a(0x104)],Pt=(_0x35506f,_0x549f35,_0xc079ee,_0x24a0f7)=>{const _0x46fd61=_0x45141a;for(var _0x37f99c=_0x24a0f7>0x1?void 0x0:_0x24a0f7?Lt(_0x549f35,_0xc079ee):_0x549f35,_0xff38cd=_0x35506f[_0x46fd61(0x1fe)]-0x1,_0x22453d;_0xff38cd>=0x0;_0xff38cd--)(_0x22453d=_0x35506f[_0xff38cd])&&(_0x37f99c=_0x22453d(_0x37f99c)||_0x37f99c);return _0x37f99c;},V=(_0x3d6827,_0x105dc1)=>(_0x2ea335,_0x46fe12)=>_0x105dc1(_0x2ea335,_0x46fe12,_0x3d6827);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x45141a(0x298)]{constructor(_0x1ef07c,_0x345ee7,_0x52723e,_0x3866fc){const _0x2b0238=_0x45141a;super(),h(this,_0x2b0238(0xcb),new d[(_0x2b0238(0x242))](u[_0x2b0238(0x2ef)][_0x2b0238(0x11f)])),(this[_0x2b0238(0x181)]=_0x1ef07c,this[_0x2b0238(0x19c)]=_0x345ee7,this[_0x2b0238(0x23d)]=_0x52723e,this['_uiPartsService']=_0x3866fc,this[_0x2b0238(0x2b0)](),this[_0x2b0238(0x15b)]());}['_initStatusListener'](){const _0x4968c4=_0x45141a;this[_0x4968c4(0x18a)](this[_0x4968c4(0x181)][_0x4968c4(0x15c)][_0x4968c4(0x186)](d[_0x4968c4(0xc6)](()=>{const _0x13972b=_0x4968c4,_0x2c4714=this[_0x13972b(0x181)][_0x13972b(0x269)]();return _0x2c4714?this[_0x13972b(0x23d)][_0x13972b(0xfc)](_0x2c4714[_0x13972b(0x189)]()):d['of'](null);}),d['switchMap'](_0x3d0019=>_0x3d0019?_0x3d0019[_0x4968c4(0x138)]:d['of'](u[_0x4968c4(0x2ef)][_0x4968c4(0x11f)])))[_0x4968c4(0xdf)](_0x45cd77=>{const _0xf29174=_0x4968c4;this[_0xf29174(0xcb)][_0xf29174(0x2e4)](_0x45cd77);}));}[_0x45141a(0x2b0)](){const _0x2884ec=_0x45141a;this['disposeWithMe'](this[_0x2884ec(0x28c)][_0x2884ec(0x227)](T[_0x2884ec(0x1df)][_0x2884ec(0x11a)],()=>T[_0x2884ec(0x232)](wt({'status$':this['_status$'][_0x2884ec(0x30e)]()}),this[_0x2884ec(0x19c)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x45141a(0x101)]),V(0x1,a[_0x45141a(0x147)](a['Injector'])),V(0x2,a[_0x45141a(0x147)](u[_0x45141a(0x2a4)])),V(0x3,T['IUIPartsService'])],exports[_0x45141a(0xb9)]);function wt(_0xf29721){const {status$:_0x5b161f}=_0xf29721;return function(){return P['jsx'](xe,{'status$':_0x5b161f});};}var At=Object[_0x45141a(0x104)],yt=(_0x5b295f,_0x548041,_0x496dc7,_0x2fa567)=>{const _0x25ddb2=_0x45141a;for(var _0x522300=_0x2fa567>0x1?void 0x0:_0x2fa567?At(_0x548041,_0x496dc7):_0x548041,_0x2f329d=_0x5b295f[_0x25ddb2(0x1fe)]-0x1,_0x37b7d6;_0x2f329d>=0x0;_0x2f329d--)(_0x37b7d6=_0x5b295f[_0x2f329d])&&(_0x522300=_0x37b7d6(_0x522300)||_0x522300);return _0x522300;},y=(_0xbcbd75,_0x23468b)=>(_0x2812dc,_0x38e91e)=>_0x23468b(_0x2812dc,_0x38e91e,_0xbcbd75);let K=class extends a[_0x45141a(0x298)]{constructor(_0x3953da,_0x5024ef,_0x59c69e,_0x39f7fe,_0x5d4711,_0x35a2b5){const _0x1c1868=_0x45141a;super(),this[_0x1c1868(0x21c)]=_0x3953da,this['_localCacheService']=_0x5024ef,this[_0x1c1868(0x2c5)]=_0x59c69e,this[_0x1c1868(0x16b)]=_0x39f7fe,this['_notificationService']=_0x5d4711,this[_0x1c1868(0x24d)]=_0x35a2b5,this[_0x1c1868(0x278)](),this[_0x1c1868(0xc5)]();}['_setupBeforeClosingHandler'](){const _0x437637=_0x45141a;this[_0x437637(0x18a)](this[_0x437637(0x21c)][_0x437637(0x16f)](()=>{const _0xe31995=_0x437637;if(this['_localCacheService'][_0xe31995(0x1ec)][_0xe31995(0x1cb)])return this['_localeService']['t'](_0xe31995(0x23a));}));}[_0x45141a(0xc5)](){const _0x405efd=_0x45141a;this[_0x405efd(0x18a)](this[_0x405efd(0x2c5)][_0x405efd(0x1d5)]['subscribe'](_0x1d41db=>{const _0x44d1cd=_0x405efd;_0x1d41db['id']===u[_0x44d1cd(0x1f6)][_0x44d1cd(0x10c)]&&this[_0x44d1cd(0x16b)][_0x44d1cd(0x266)]({'type':D[_0x44d1cd(0x244)][_0x44d1cd(0x161)],'content':this[_0x44d1cd(0x24d)]['t'](_0x44d1cd(0x11b))}),_0x1d41db['id']===u[_0x44d1cd(0x1f6)][_0x44d1cd(0x1ed)]&&this['_messageService'][_0x44d1cd(0x266)]({'type':D[_0x44d1cd(0x244)][_0x44d1cd(0x161)],'content':this[_0x44d1cd(0x24d)]['t'](_0x44d1cd(0x150))}),_0x1d41db['id']===u['CollaborationUIEventId'][_0x44d1cd(0x2e0)]&&this[_0x44d1cd(0x25d)]['show']({'title':this[_0x44d1cd(0x24d)]['t'](_0x44d1cd(0x218)),'content':this[_0x44d1cd(0x24d)]['t']('permission.content'),'type':_0x44d1cd(0x299),'duration':0x0}),_0x1d41db['id']===u[_0x44d1cd(0x1f6)][_0x44d1cd(0x198)]&&this[_0x44d1cd(0x16b)][_0x44d1cd(0x266)]({'type':D[_0x44d1cd(0x244)][_0x44d1cd(0xea)],'content':this['_localeService']['t'](_0x44d1cd(0x150))+'('+_0x1d41db['data']+')'}),_0x1d41db['id']===u[_0x44d1cd(0x1f6)][_0x44d1cd(0xd1)]&&this[_0x44d1cd(0x16b)][_0x44d1cd(0x266)]({'type':D[_0x44d1cd(0x244)][_0x44d1cd(0x161)],'content':this[_0x44d1cd(0x24d)]['t'](_0x1d41db[_0x44d1cd(0x139)]||'')}),_0x1d41db['id']===u[_0x44d1cd(0x1f6)]['SOCKET_FAILED_RETRY']&&this[_0x44d1cd(0x16b)]['show']({'type':D['MessageType']['Warning'],'content':this[_0x44d1cd(0x24d)]['t'](_0x44d1cd(0x221))}),_0x1d41db['id']===u[_0x44d1cd(0x1f6)][_0x44d1cd(0xfa)]&&this[_0x44d1cd(0x16b)]['show']({'type':D['MessageType'][_0x44d1cd(0xea)],'content':this[_0x44d1cd(0x24d)]['t']('session.connection-failed')}),_0x1d41db['id']===u[_0x44d1cd(0x1f6)][_0x44d1cd(0x182)]&&this[_0x44d1cd(0x16b)][_0x44d1cd(0x266)]({'type':D[_0x44d1cd(0x244)][_0x44d1cd(0xea)],'content':this['_localeService']['t'](_0x44d1cd(0x2a9))});}));}};K=yt([y(0x0,T[_0x45141a(0x1c5)]),y(0x1,u[_0x45141a(0xbf)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,T[_0x45141a(0x29c)]),y(0x4,T[_0x45141a(0x2e2)]),y(0x5,a[_0x45141a(0x147)](a[_0x45141a(0x2f3)]))],K);const $t='collaboration-client-ui.config',Ue={},be=a[_0x45141a(0x1b6)](_0x45141a(0x1f9));var xt=Object[_0x45141a(0x104)],jt=(_0x33924f,_0x505709,_0x1d619f,_0x451448)=>{const _0x309ed0=_0x45141a;for(var _0x2fbcd7=_0x451448>0x1?void 0x0:_0x451448?xt(_0x505709,_0x1d619f):_0x505709,_0x59d7da=_0x33924f[_0x309ed0(0x1fe)]-0x1,_0x1727d8;_0x59d7da>=0x0;_0x59d7da--)(_0x1727d8=_0x33924f[_0x59d7da])&&(_0x2fbcd7=_0x1727d8(_0x2fbcd7)||_0x2fbcd7);return _0x2fbcd7;},H=(_0x444fed,_0x403c15)=>(_0x138ef0,_0x323c50)=>_0x403c15(_0x138ef0,_0x323c50,_0x444fed);exports[_0x45141a(0x19f)]=class extends a[_0x45141a(0x171)]{constructor(_0x5e09e9,_0x2e3148,_0x2d20b2,_0x5d7237,_0x139bbf){const _0x2f463f=_0x45141a;super(),this[_0x2f463f(0x2f9)]=_0x5e09e9,this[_0x2f463f(0x184)]=_0x2e3148,this['_commandService']=_0x2d20b2,this['_dataLoaderService']=_0x5d7237,_0x139bbf?_0x139bbf==null||_0x139bbf[_0x2f463f(0x234)]()[_0x2f463f(0x21f)](()=>this['_init']()):(this[_0x2f463f(0x184)]['debug'](_0x2f463f(0xa6),_0x2f463f(0x2a7)),this[_0x2f463f(0x210)]());}async[_0x45141a(0x210)](){const _0x55b5da=_0x45141a,_0x150efe=this[_0x55b5da(0x2f9)]['getParam'](_0x55b5da(0x22b)),_0x487e2e=this[_0x55b5da(0x2f9)][_0x55b5da(0x134)](_0x55b5da(0x304)),_0x1000cd=this[_0x55b5da(0x2f9)][_0x55b5da(0x134)](_0x55b5da(0xb2));if(!_0x150efe||!_0x487e2e){this['_logService']['debug'](_0x55b5da(0xa6),_0x55b5da(0x23b));return;}const _0x3709cf=await this[_0x55b5da(0xd2)]['loadUnit'](_0x150efe,Number(_0x487e2e),_0x1000cd);_0x3709cf&&_0x3709cf instanceof a[_0x55b5da(0x28a)]&&this[_0x55b5da(0xa7)](_0x3709cf);}async[_0x45141a(0xa7)](_0x1124c4){const _0xbade1=_0x45141a;await this[_0xbade1(0x2c7)](_0x1124c4),_0x1124c4[_0xbade1(0x185)][_0xbade1(0x186)](d['takeUntil'](this['dispose$']))['subscribe'](_0x1b7db0=>{const _0x56f551=_0xbade1;_0x1b7db0&&this[_0x56f551(0x226)](_0x1b7db0);}),this[_0xbade1(0x2f9)][_0xbade1(0xc7)][_0xbade1(0x186)](d[_0xbade1(0x2cc)](this[_0xbade1(0x1f2)]))[_0xbade1(0xdf)](()=>this['_updateSubUnitFromURLParams'](_0x1124c4));}[_0x45141a(0x226)](_0x2f4b54,_0x3cd47e=!0x1){const _0x53635e=_0x45141a,_0x46df9d=this[_0x53635e(0x2f9)][_0x53635e(0x134)](_0x53635e(0xb2));_0x2f4b54[_0x53635e(0xf7)]()!==_0x46df9d&&this['_urlService']['setParam'](_0x53635e(0xb2),_0x2f4b54['getSheetId'](),_0x3cd47e);}async[_0x45141a(0x2c7)](_0x168960){const _0xbf16e=_0x45141a;var _0x584ec6;const _0x28c4d6=this[_0xbf16e(0x2f9)][_0xbf16e(0x134)](_0xbf16e(0xb2));if(!_0x28c4d6||!_0x168960[_0xbf16e(0x126)](_0x28c4d6)){const _0x4d1690=_0x168960[_0xbf16e(0x187)]()[0x0],_0x3675b1=_0x168960[_0xbf16e(0x126)](_0x4d1690);if(!_0x3675b1)return;this['_updateURLWithCurrentState'](_0x3675b1,!0x0),await this['_commandService'][_0xbf16e(0x237)](g[_0xbf16e(0x207)]['id'],{'unitId':_0x168960['getUnitId'](),'subUnitId':_0x4d1690});return;}((_0x584ec6=_0x168960[_0xbf16e(0x2f2)]())==null?void 0x0:_0x584ec6[_0xbf16e(0xf7)]())!==_0x28c4d6&&await this[_0xbf16e(0x160)][_0xbf16e(0x237)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x168960['getUnitId'](),'subUnitId':_0x28c4d6});}},exports[_0x45141a(0x19f)]=jt([H(0x0,be),H(0x1,a[_0x45141a(0x1d2)]),H(0x2,a[_0x45141a(0x274)]),H(0x3,a[_0x45141a(0x147)](u['DataLoaderService'])),H(0x4,a[_0x45141a(0x1ff)](qe[_0x45141a(0x261)]))],exports[_0x45141a(0x19f)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x4f3149,_0x29755d,_0x52e703,_0x2b5ab1)=>{const _0x4adae9=_0x45141a;for(var _0x26e932=_0x2b5ab1>0x1?void 0x0:_0x2b5ab1?Bt(_0x29755d,_0x52e703):_0x29755d,_0x212fbd=_0x4f3149[_0x4adae9(0x1fe)]-0x1,_0x36ef57;_0x212fbd>=0x0;_0x212fbd--)(_0x36ef57=_0x4f3149[_0x212fbd])&&(_0x26e932=_0x36ef57(_0x26e932)||_0x26e932);return _0x26e932;},ce=(_0x586625,_0x599508)=>(_0x1b342e,_0x16a85a)=>_0x599508(_0x1b342e,_0x16a85a,_0x586625);let z=class{constructor(_0x46b104,_0x533b60,_0x62a99e){const _0x25196c=_0x45141a;this[_0x25196c(0x19c)]=_0x46b104,this[_0x25196c(0x15d)]=_0x533b60,this[_0x25196c(0x1e8)]=_0x62a99e;}[_0x45141a(0x15a)](_0x2bba4b){const _0x58c7a2=_0x45141a;this['_transformUndoRedoStack'](_0x2bba4b),this[_0x58c7a2(0xac)](_0x2bba4b);}['transformRemoteChangeset'](_0x964d81){const _0x31d3ab=_0x45141a,{unitID:_0x51d083}=_0x964d81,_0x3fb8b8=this[_0x31d3ab(0x1e8)]['getRenderById'](_0x51d083)[_0x31d3ab(0x2e8)](b['DocIMEInputManagerService']),{redoCache:_0x4d4bf0}=_0x3fb8b8['getUndoRedoMutationParamsCache']();if(_0x4d4bf0[_0x31d3ab(0x1fe)]===0x0)return _0x964d81;let _0x2d4049=a[_0x31d3ab(0x1d0)][_0x31d3ab(0x106)](_0x964d81['mutations'][0x0]);for(let _0x3593af=0x0;_0x3593af<_0x4d4bf0[_0x31d3ab(0x1fe)];_0x3593af++){const _0x15c71b={'id':_0x31d3ab(0x20b),'params':{..._0x4d4bf0[_0x3593af]}},_0x4edbc6=this[_0x31d3ab(0x15d)]['transformMutation'](_0x2d4049,_0x15c71b,!0x1);if(m[_0x31d3ab(0x254)](_0x4edbc6))throw _0x4edbc6[_0x31d3ab(0x299)];_0x2d4049=_0x4edbc6['m1Prime'];}return{...a['Tools'][_0x31d3ab(0x106)](_0x964d81),'mutations':[_0x2d4049]};}[_0x45141a(0x179)](_0x49a818){const _0x42ef54=_0x45141a,{unitID:_0x580f8a}=_0x49a818,_0x3ec31b=this[_0x42ef54(0x1e8)][_0x42ef54(0xe9)](_0x580f8a)[_0x42ef54(0x2e8)](b[_0x42ef54(0x2ed)]),{undoCache:_0x2ac393,redoCache:_0x171e61}=_0x3ec31b[_0x42ef54(0x289)]();if(_0x2ac393[_0x42ef54(0x1fe)]===0x0||_0x171e61[_0x42ef54(0x1fe)]===0x0)return;const _0x57b937=[],_0x27f2c9=[];let _0x505d40=a[_0x42ef54(0x1d0)][_0x42ef54(0x106)](_0x49a818[_0x42ef54(0x1c1)][0x0]),_0x20ccac=a['Tools']['deepClone'](_0x49a818[_0x42ef54(0x1c1)][0x0]);for(let _0x59bf22=_0x2ac393[_0x42ef54(0x1fe)]-0x1;_0x59bf22>=0x0;_0x59bf22--){const _0x29a3c9={'id':_0x42ef54(0x20b),'params':{..._0x2ac393[_0x59bf22]}},_0x5e9cb1={'id':_0x42ef54(0x20b),'params':{..._0x171e61[_0x59bf22]}},_0x37d3fd=this[_0x42ef54(0x15d)][_0x42ef54(0xae)](_0x505d40,_0x29a3c9,!0x1),_0x22c779=this['_transformService'][_0x42ef54(0xae)](_0x20ccac,_0x5e9cb1,!0x1);if(m[_0x42ef54(0x254)](_0x37d3fd))throw _0x37d3fd[_0x42ef54(0x299)];if(m['isTransformMutationFailure'](_0x22c779))throw _0x22c779[_0x42ef54(0x299)];_0x57b937[_0x42ef54(0x2bc)](_0x37d3fd[_0x42ef54(0x284)][_0x42ef54(0xbd)]),_0x27f2c9['unshift'](_0x22c779[_0x42ef54(0x284)]['params']),_0x505d40=_0x37d3fd[_0x42ef54(0x119)],_0x20ccac=_0x22c779[_0x42ef54(0x119)];}_0x3ec31b[_0x42ef54(0x2b8)]({'undoCache':_0x57b937,'redoCache':_0x27f2c9});}['_transformPreviousActiveRange'](_0x3a62cb){const _0x33c8e2=_0x45141a,{unitID:_0xb97b29}=_0x3a62cb,_0x5df089=this[_0x33c8e2(0x1e8)][_0x33c8e2(0xe9)](_0xb97b29)[_0x33c8e2(0x2e8)](b['DocIMEInputManagerService']),_0x223eae=_0x5df089[_0x33c8e2(0x110)]();if(_0x223eae==null)return;const _0x51cdcc=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3a62cb[_0x33c8e2(0x290)],'actions':null,'textRanges':[_0x223eae]}}],_0x19650d=this[_0x33c8e2(0x15d)][_0x33c8e2(0x132)](_0x3a62cb,_0x51cdcc);if(!m[_0x33c8e2(0x26f)](_0x19650d))throw _0x19650d[_0x33c8e2(0x299)];const _0x2261bf=_0x19650d[_0x33c8e2(0x284)][0x0][_0x33c8e2(0xbd)]['textRanges'];Array['isArray'](_0x2261bf)&&_0x2261bf['length']&&_0x5df089[_0x33c8e2(0x197)](_0x2261bf[0x0]);}};z=kt([ce(0x0,a[_0x45141a(0x147)](a[_0x45141a(0x1b0)])),ce(0x1,m[_0x45141a(0x1b9)]),ce(0x2,p[_0x45141a(0x2fe)])],z);var Ht=Object[_0x45141a(0x104)],Ft=(_0x4e49c1,_0xf74d77,_0x2cf65e,_0x5ef33d)=>{const _0x5a3b40=_0x45141a;for(var _0x162865=_0x5ef33d>0x1?void 0x0:_0x5ef33d?Ht(_0xf74d77,_0x2cf65e):_0xf74d77,_0x1b15e0=_0x4e49c1[_0x5a3b40(0x1fe)]-0x1,_0x2ec979;_0x1b15e0>=0x0;_0x1b15e0--)(_0x2ec979=_0x4e49c1[_0x1b15e0])&&(_0x162865=_0x2ec979(_0x162865)||_0x162865);return _0x162865;},le=(_0x540976,_0x3ab61e)=>(_0x1d76db,_0x3cbad0)=>_0x3ab61e(_0x1d76db,_0x3cbad0,_0x540976);let J=class{constructor(_0x41fb03,_0x1c5864,_0x1ad7a2){const _0x45d26a=_0x45141a;this[_0x45d26a(0x19c)]=_0x41fb03,this[_0x45d26a(0x15d)]=_0x1c5864,this[_0x45d26a(0x217)]=_0x1ad7a2;}[_0x45141a(0x30a)](_0x493c06){this['_transformHistoryAndStateStack'](_0x493c06);}[_0x45141a(0x2be)](_0x13ecf4){const _0x3c0fb6=_0x45141a,{unitID:_0x543f4d}=_0x13ecf4,{collaboration:_0x5ee271}=this['_docStateChangeManagerService'][_0x3c0fb6(0x1a2)](_0x543f4d);if(_0x5ee271[_0x3c0fb6(0x1fe)]===0x0)return _0x13ecf4;let _0x2005bd=a[_0x3c0fb6(0x1d0)]['deepClone'](_0x13ecf4[_0x3c0fb6(0x1c1)][0x0]);for(let _0x4d7df0=0x0;_0x4d7df0<_0x5ee271['length'];_0x4d7df0++){const _0x5b1292={'id':_0x3c0fb6(0x20b),'params':{'unitId':_0x5ee271[_0x4d7df0]['unitId'],..._0x5ee271[_0x4d7df0][_0x3c0fb6(0x1bb)]}},_0x18de71=this['_transformService'][_0x3c0fb6(0xae)](_0x2005bd,_0x5b1292,!0x1);if(m[_0x3c0fb6(0x254)](_0x18de71))throw _0x18de71[_0x3c0fb6(0x299)];_0x2005bd=_0x18de71[_0x3c0fb6(0x119)];}return{...a[_0x3c0fb6(0x1d0)][_0x3c0fb6(0x106)](_0x13ecf4),'mutations':[_0x2005bd]};}['_transformHistoryAndStateStack'](_0x442ca7){const _0xee4b98=_0x45141a,{unitID:_0x3555f4}=_0x442ca7,{history:_0x30ee02,collaboration:_0x56a296}=this[_0xee4b98(0x217)]['getStateCache'](_0x3555f4);if(_0x30ee02[_0xee4b98(0x1fe)]===0x0&&_0x56a296['length']===0x0)return;const _0x2c4823=[],_0x1bdfd7=[];let _0x3a57a2=a[_0xee4b98(0x1d0)][_0xee4b98(0x106)](_0x442ca7[_0xee4b98(0x1c1)][0x0]),_0x4c1f08=a[_0xee4b98(0x1d0)][_0xee4b98(0x106)](_0x442ca7[_0xee4b98(0x1c1)][0x0]);for(let _0x328d5b=_0x30ee02[_0xee4b98(0x1fe)]-0x1;_0x328d5b>=0x0;_0x328d5b--){const _0x11792b={'id':_0xee4b98(0x20b),'params':{'unitId':_0x30ee02[_0x328d5b]['unitId'],..._0x30ee02[_0x328d5b][_0xee4b98(0x1dc)]}},_0x5b7719={'id':_0xee4b98(0x20b),'params':{'unitId':_0x30ee02[_0x328d5b][_0xee4b98(0x286)],..._0x30ee02[_0x328d5b][_0xee4b98(0x1bb)]}},_0x3629c5=this[_0xee4b98(0x15d)][_0xee4b98(0xae)](_0x3a57a2,_0x11792b,!0x1),_0x37ac30=this[_0xee4b98(0x15d)][_0xee4b98(0xae)](_0x4c1f08,_0x5b7719,!0x1);if(m[_0xee4b98(0x254)](_0x3629c5))throw _0x3629c5[_0xee4b98(0x299)];if(m[_0xee4b98(0x254)](_0x37ac30))throw _0x37ac30[_0xee4b98(0x299)];_0x2c4823[_0xee4b98(0x2bc)]({..._0x30ee02[_0x328d5b],'undoState':_0x3629c5[_0xee4b98(0x284)][_0xee4b98(0xbd)],'redoState':_0x37ac30[_0xee4b98(0x284)][_0xee4b98(0xbd)]}),_0x3a57a2=_0x3629c5['m1Prime'],_0x4c1f08=_0x37ac30[_0xee4b98(0x119)];}_0x3a57a2=a[_0xee4b98(0x1d0)][_0xee4b98(0x106)](_0x442ca7['mutations'][0x0]),_0x4c1f08=a[_0xee4b98(0x1d0)][_0xee4b98(0x106)](_0x442ca7['mutations'][0x0]);for(let _0x5147e0=_0x56a296[_0xee4b98(0x1fe)]-0x1;_0x5147e0>=0x0;_0x5147e0--){const _0x1d96ad={'id':_0xee4b98(0x20b),'params':{'unitId':_0x56a296[_0x5147e0]['unitId'],..._0x56a296[_0x5147e0][_0xee4b98(0x1dc)]}},_0x279fbd={'id':_0xee4b98(0x20b),'params':{'unitId':_0x56a296[_0x5147e0][_0xee4b98(0x286)],..._0x56a296[_0x5147e0][_0xee4b98(0x1bb)]}},_0x564713=this[_0xee4b98(0x15d)][_0xee4b98(0xae)](_0x3a57a2,_0x1d96ad,!0x1),_0x1e9c60=this[_0xee4b98(0x15d)][_0xee4b98(0xae)](_0x4c1f08,_0x279fbd,!0x1);if(m[_0xee4b98(0x254)](_0x564713))throw _0x564713[_0xee4b98(0x299)];if(m[_0xee4b98(0x254)](_0x1e9c60))throw _0x1e9c60[_0xee4b98(0x299)];_0x1bdfd7[_0xee4b98(0x2bc)]({..._0x56a296[_0x5147e0],'undoState':_0x564713['m2Prime']['params'],'redoState':_0x1e9c60['m2Prime'][_0xee4b98(0xbd)]}),_0x3a57a2=_0x564713[_0xee4b98(0x119)],_0x4c1f08=_0x1e9c60['m1Prime'];}this[_0xee4b98(0x217)][_0xee4b98(0x2c8)](_0x3555f4,{'history':_0x2c4823,'collaboration':_0x1bdfd7});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x45141a(0x1b9)]),le(0x2,a[_0x45141a(0x147)](b[_0x45141a(0x2ab)]))],J);var Wt=Object[_0x45141a(0x104)],Yt=(_0x3f86d9,_0x3f61b2,_0x1efdd3,_0x1191d6)=>{for(var _0xd47e4d=_0x1191d6>0x1?void 0x0:_0x1191d6?Wt(_0x3f61b2,_0x1efdd3):_0x3f61b2,_0x440118=_0x3f86d9['length']-0x1,_0x1cd42e;_0x440118>=0x0;_0x440118--)(_0x1cd42e=_0x3f86d9[_0x440118])&&(_0xd47e4d=_0x1cd42e(_0xd47e4d)||_0xd47e4d);return _0xd47e4d;},Ne=(_0x1bc43c,_0x5585b4)=>(_0x1f91f4,_0x1b27cb)=>_0x5585b4(_0x1f91f4,_0x1b27cb,_0x1bc43c);let Z=class{constructor(_0xeb17,_0x442f30){const _0x58d533=_0x45141a;this[_0x58d533(0x19c)]=_0xeb17,this[_0x58d533(0x15d)]=_0x442f30;}[_0x45141a(0x193)](_0x495ec3){const _0x195116=_0x45141a;var _0x47dd7f;const _0x1e4ec7=this[_0x195116(0x19c)][_0x195116(0x1a0)](W[_0x195116(0xde)]),_0x1b93c2=(_0x47dd7f=_0x1e4ec7[_0x195116(0x115)]())!=null?_0x47dd7f:[];if(_0x1b93c2[_0x195116(0x1fe)]===0x0)return;const _0x279487=_0x495ec3[_0x195116(0x290)],_0x5393ab=[{'id':_0x195116(0x20b),'params':{'unitId':_0x279487,'actions':null,'textRanges':_0x1b93c2}}],_0xd71cbd=this[_0x195116(0x15d)][_0x195116(0x132)](_0x495ec3,_0x5393ab);if(!m[_0x195116(0x26f)](_0xd71cbd))throw _0xd71cbd[_0x195116(0x299)];const _0x28448a=_0xd71cbd[_0x195116(0x284)][0x0][_0x195116(0xbd)][_0x195116(0x18d)];Array[_0x195116(0xbb)](_0x28448a)&&_0x28448a[_0x195116(0x1fe)]&&_0x1e4ec7[_0x195116(0x2d4)](_0x28448a,{'unitId':_0x279487,'subUnitId':_0x279487},!0x1);}};Z=Yt([Ne(0x0,a[_0x45141a(0x147)](a[_0x45141a(0x1b0)])),Ne(0x1,m[_0x45141a(0x1b9)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0xc0ef46,_0x2f703d,_0x2cd10d,_0xd06b0e)=>{for(var _0xc5e20f=_0xd06b0e>0x1?void 0x0:_0xd06b0e?Vt(_0x2f703d,_0x2cd10d):_0x2f703d,_0x546f5d=_0xc0ef46['length']-0x1,_0x2063e3;_0x546f5d>=0x0;_0x546f5d--)(_0x2063e3=_0xc0ef46[_0x546f5d])&&(_0xc5e20f=_0x2063e3(_0xc5e20f)||_0xc5e20f);return _0xc5e20f;},N=(_0x4cb6ba,_0x594fa4)=>(_0x15fba6,_0xad0cc2)=>_0x594fa4(_0x15fba6,_0xad0cc2,_0x4cb6ba);let Q=class extends a[_0x45141a(0x298)]{constructor(_0x154bde,_0x53ecb5,_0x41df27,_0x3ad709,_0xc7d540,_0x3ea5cb,_0x5d154e,_0x273184){const _0x7825a3=_0x45141a;super(),h(this,'_status$',new d[(_0x7825a3(0x242))](u[_0x7825a3(0x2ef)][_0x7825a3(0x11f)])),(this[_0x7825a3(0x217)]=_0x154bde,this[_0x7825a3(0x23d)]=_0x53ecb5,this[_0x7825a3(0x2a6)]=_0x41df27,this['_docTransformStateCacheService']=_0x3ad709,this[_0x7825a3(0x17e)]=_0xc7d540,this[_0x7825a3(0x250)]=_0x3ea5cb,this['_messageService']=_0x5d154e,this[_0x7825a3(0x24d)]=_0x273184,this[_0x7825a3(0x124)]());}[_0x45141a(0x124)](){const _0x26925a=_0x45141a;this['disposeWithMe'](this[_0x26925a(0x23d)]['entityInit$']['subscribe'](_0x363a3f=>{const _0x313557=_0x26925a,_0x353570=this[_0x313557(0x217)][_0x313557(0x141)][_0x313557(0xdf)](_0x35b19e=>{const _0x45bb87=_0x313557;if(_0x35b19e==null)return;const {unitId:_0x4af828,redoState:_0x4db1f6,commandId:_0x351375}=_0x35b19e;if(_0x4af828!==_0x363a3f[_0x45bb87(0x290)])return;const _0x59b4a5={'id':_0x351375,'type':a[_0x45bb87(0xf2)][_0x45bb87(0xf3)],'params':{'unitId':_0x4af828,'actions':_0x4db1f6['actions'],'textRanges':null}};_0x363a3f[_0x45bb87(0x277)](_0x59b4a5);});if(_0x363a3f['disposeWithMe'](_0x353570),_0x363a3f instanceof u[_0x313557(0x28e)]){const _0x28610a={'onTransformIME':_0x4a801a=>this[_0x313557(0x2a6)][_0x313557(0x15a)](_0x4a801a),'onTransformState':_0x155b7a=>this['_docTransformStateCacheService'][_0x313557(0x30a)](_0x155b7a),'onTransformSelections':_0x4adf71=>this[_0x313557(0x17e)][_0x313557(0x193)](_0x4adf71),'onSyncEditingCollabCursor':_0xcb353d=>this['_docSyncEditingCollabCursorService'][_0x313557(0xdd)](_0xcb353d),'onTransformRemoteChangesetByIMECache':_0x4ea539=>this['_docTransformIMECacheService'][_0x313557(0x2be)](_0x4ea539),'onTransformRemoteChangesetByStateCache':_0x3d6fb5=>this['_docTransformStateCacheService'][_0x313557(0x2be)](_0x3d6fb5)};_0x363a3f[_0x313557(0xb1)](_0x28610a);}}));}};Q=Xt([N(0x0,a[_0x45141a(0x147)](b['DocStateChangeManagerService'])),N(0x1,a[_0x45141a(0x147)](u[_0x45141a(0x2a4)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x45141a(0x147)](J)),N(0x4,a[_0x45141a(0x147)](Z)),N(0x5,a[_0x45141a(0x147)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x45141a(0x147)](a['LocaleService']))],Q);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x7d54b3,_0x3e3332,_0x41fc31,_0x4062d2)=>{for(var _0x1c4b05=_0x4062d2>0x1?void 0x0:_0x4062d2?Gt(_0x3e3332,_0x41fc31):_0x3e3332,_0x238102=_0x7d54b3['length']-0x1,_0x2f1675;_0x238102>=0x0;_0x238102--)(_0x2f1675=_0x7d54b3[_0x238102])&&(_0x1c4b05=_0x2f1675(_0x1c4b05)||_0x1c4b05);return _0x1c4b05;},_e=(_0x3df477,_0x426e17)=>(_0x5f0bc3,_0x323109)=>_0x426e17(_0x5f0bc3,_0x323109,_0x3df477);let ge=class extends a[_0x45141a(0x298)]{constructor(_0x4cc7f5,_0x3357b7,_0x50e248){const _0x5d9019=_0x45141a;super(),h(this,_0x5d9019(0x1db),new Map()),h(this,_0x5d9019(0x2de),new Map()),h(this,_0x5d9019(0x2d2),!0x1),(this[_0x5d9019(0x292)]=_0x4cc7f5,this[_0x5d9019(0x241)]=_0x3357b7,this['_revisionService']=_0x50e248);}[_0x45141a(0x2d3)](){const _0x5be9cb=_0x45141a;this[_0x5be9cb(0x2d2)]=!0x0;}[_0x45141a(0x204)](){const _0x9c270f=_0x45141a;this[_0x9c270f(0x2d2)]=!0x1;}get[_0x45141a(0x1ec)](){const _0x35ed4d=_0x45141a;return this[_0x35ed4d(0x2de)];}['dispose'](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x206dd4){const _0x5a333b=_0x45141a;return this[_0x5a333b(0x2d2)]?null:this[_0x5a333b(0x241)][_0x5a333b(0x1ba)](u[_0x5a333b(0xb6)](_0x206dd4));}async[_0x45141a(0x1fa)](_0x4e012a,_0x8c2267){const _0x63e47b=_0x45141a;return!!this[_0x63e47b(0x241)][_0x63e47b(0x1c9)](_0x4e012a,_0x8c2267);}[_0x45141a(0xe3)](_0x4dfdfc,_0x4577d7,_0x4ab1a2,_0x36e56c){const _0x1a9c8d=_0x45141a,_0x3eeed5=this[_0x1a9c8d(0x225)][_0x1a9c8d(0x316)](_0x4dfdfc);this[_0x1a9c8d(0x1db)]['set'](_0x4dfdfc,{'unitID':_0x4dfdfc,'type':_0x4577d7,'awaitingChangeset':_0x4ab1a2,'mutations':_0x36e56c,'rev':_0x3eeed5}),this[_0x1a9c8d(0x2de)][_0x1a9c8d(0x17c)](_0x4dfdfc)||this[_0x1a9c8d(0x17a)](_0x4dfdfc);}[_0x45141a(0x17a)](_0x12034d){const _0x1b125b=_0x45141a,_0x484334=this[_0x1b125b(0x2fa)]();_0x484334===0x0?this[_0x1b125b(0x1ab)](_0x12034d):this[_0x1b125b(0x2de)][_0x1b125b(0x11e)](_0x12034d,setTimeout(()=>this['_saveCache'](_0x12034d),_0x484334));}[_0x45141a(0x2fa)](){const _0x430a8b=_0x45141a;var _0x30435c;return(_0x30435c=this[_0x430a8b(0x292)][_0x430a8b(0x208)](u[_0x430a8b(0x22a)]))!=null?_0x30435c:u['LOCAL_CACHE_INTERVAL'];}[_0x45141a(0x1ab)](_0x1f5719){const _0x38c249=_0x45141a,_0xa2a4f9=this[_0x38c249(0x2de)][_0x38c249(0x1a0)](_0x1f5719);return _0xa2a4f9!==void 0x0&&window[_0x38c249(0x287)](_0xa2a4f9),this['_localStorageService']['setItem'](u[_0x38c249(0xb6)](_0x1f5719),this[_0x38c249(0x1db)][_0x38c249(0x1a0)](_0x1f5719))[_0x38c249(0x21f)](()=>this[_0x38c249(0x2de)]['delete'](_0x1f5719));}async[_0x45141a(0x1b4)](){const _0x55452f=_0x45141a,_0x27161c=[];this['_saveTaskMap'][_0x55452f(0xf1)]((_0x2afcc0,_0x1ed11c)=>{const _0x30a027=_0x55452f;window[_0x30a027(0x287)](_0x2afcc0),_0x27161c[_0x30a027(0x297)](this['_saveCache'](_0x1ed11c)[_0x30a027(0x21f)](()=>{const _0x3da8d1=_0x30a027;this[_0x3da8d1(0x2de)][_0x3da8d1(0x151)](_0x1ed11c);}));}),await Promise[_0x55452f(0x26b)](_0x27161c);}};ge=qt([_e(0x0,a[_0x45141a(0x2ac)]),_e(0x1,a[_0x45141a(0xaa)]),_e(0x2,a[_0x45141a(0x147)](m[_0x45141a(0x14e)]))],ge);class je extends a[_0x45141a(0x171)]{constructor(){const _0x3e2088=_0x45141a;super(),h(this,_0x3e2088(0xc7)),this['urlChange$']=d['fromEvent'](window,_0x3e2088(0x205))[_0x3e2088(0x186)](d[_0x3e2088(0x2cc)](this['dispose$']),d[_0x3e2088(0x1d6)](0x1),d['mapTo'](void 0x0));}[_0x45141a(0x129)](_0x40c63d,_0x1763b8,_0x590185=!0x1){const _0x2208af=_0x45141a,_0xfc952=new URL(window[_0x2208af(0x17b)][_0x2208af(0xcd)]);_0xfc952[_0x2208af(0x1a8)][_0x2208af(0x11e)](_0x40c63d,_0x1763b8),_0x590185?window['history'][_0x2208af(0x194)]('','',_0xfc952['toString']()):window[_0x2208af(0xaf)][_0x2208af(0x260)]('','',_0xfc952['toString']());}[_0x45141a(0x1d7)](_0x104dd1,_0x233398=!0x1){const _0xa13c32=_0x45141a,_0x59a507=new URL(window['location'][_0xa13c32(0xcd)]);_0x59a507[_0xa13c32(0x1a8)][_0xa13c32(0x151)](_0x104dd1),_0x233398?window[_0xa13c32(0xaf)][_0xa13c32(0x194)]('','',_0x59a507[_0xa13c32(0x1a7)]()):window[_0xa13c32(0xaf)]['pushState']('','',_0x59a507[_0xa13c32(0x1a7)]());}['getParam'](_0x1470fc){const _0x482570=_0x45141a;var _0x425ca7;return(_0x425ca7=new URL(window[_0x482570(0x17b)]['href'])[_0x482570(0x1a8)][_0x482570(0x1a0)](_0x1470fc))!=null?_0x425ca7:void 0x0;}}var Kt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x40abe0,_0x4e16f9,_0x217a2e)=>_0x4e16f9 in _0x40abe0?Kt(_0x40abe0,_0x4e16f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x217a2e}):_0x40abe0[_0x4e16f9]=_0x217a2e,Zt=(_0x42c3e0,_0x18d11c,_0x2631bf,_0x2b295f)=>{const _0x3192fe=_0x45141a;for(var _0x3c4b7b=_0x2b295f>0x1?void 0x0:_0x2b295f?zt(_0x18d11c,_0x2631bf):_0x18d11c,_0x3f2457=_0x42c3e0[_0x3192fe(0x1fe)]-0x1,_0x22258a;_0x3f2457>=0x0;_0x3f2457--)(_0x22258a=_0x42c3e0[_0x3f2457])&&(_0x3c4b7b=_0x22258a(_0x3c4b7b)||_0x3c4b7b);return _0x3c4b7b;},he=(_0x8f1cf9,_0xd830b3)=>(_0x4201bb,_0x506055)=>_0xd830b3(_0x4201bb,_0x506055,_0x8f1cf9),Qt=(_0x535df8,_0x34ab1a,_0x1fafe8)=>Jt(_0x535df8,_0x34ab1a+'',_0x1fafe8);const es=_0x45141a(0x19d);exports[_0x45141a(0x25e)]=class extends a[_0x45141a(0x30d)]{constructor(_0x309a47=Ue,_0x578c7d,_0x54f948,_0x68b507){const _0x3f6e82=_0x45141a;super(),this[_0x3f6e82(0x30f)]=_0x309a47,this[_0x3f6e82(0x1e8)]=_0x578c7d,this['_injector']=_0x54f948,this[_0x3f6e82(0x292)]=_0x68b507;const {..._0x409935}=a[_0x3f6e82(0x145)]({},Ue,this[_0x3f6e82(0x30f)]);this[_0x3f6e82(0x292)][_0x3f6e82(0x11c)]($t,_0x409935);}[_0x45141a(0xb4)](){const _0x21cd66=_0x45141a;this[_0x21cd66(0x281)](),this[_0x21cd66(0x12d)]();}[_0x45141a(0x313)](){const _0x26d375=_0x45141a;this[_0x26d375(0x9f)]();}['_registerDependencies'](){const _0x1308c4=_0x45141a;var _0x4a62d2;const _0x2bd6e5=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x1308c4(0x13a)],{'useClass':G[_0x1308c4(0x245)]}],[u[_0x1308c4(0xbf)],{'useClass':ge}],[exports[_0x1308c4(0xb9)]],[Q],[K],[x],[de],[exports[_0x1308c4(0x19f)]]];a[_0x1308c4(0x1c8)](this[_0x1308c4(0x19c)],a[_0x1308c4(0x2c9)](_0x2bd6e5,(_0x4a62d2=this['_config'])==null?void 0x0:_0x4a62d2[_0x1308c4(0xfd)]));}[_0x45141a(0x9f)](){const _0xcac7c0=_0x45141a;this[_0xcac7c0(0x18a)](this[_0xcac7c0(0x1e8)]['registerRenderModule'](a[_0xcac7c0(0x29b)]['UNIVER_DOC'],[Ie])),this['disposeWithMe'](this[_0xcac7c0(0x1e8)]['registerRenderModule'](a[_0xcac7c0(0x29b)][_0xcac7c0(0x21b)],[ve]));}[_0x45141a(0x12d)](){const _0x95f1c1=_0x45141a;a[_0x95f1c1(0x1de)](this[_0x95f1c1(0x19c)],[[x],[exports[_0x95f1c1(0xb9)]],[Q],[K],[exports[_0x95f1c1(0x19f)]]]);}},Qt(exports[_0x45141a(0x25e)],'pluginName',es),exports[_0x45141a(0x25e)]=Zt([a[_0x45141a(0x29e)](u[_0x45141a(0x2bb)]),he(0x1,p[_0x45141a(0x2fe)]),he(0x2,a[_0x45141a(0x147)](a['Injector'])),he(0x3,a[_0x45141a(0x2ac)])],exports[_0x45141a(0x25e)]);var ts=Object[_0x45141a(0x104)],ss=(_0x92f9d0,_0x60a4d2,_0x13e1b0,_0x5e8e65)=>{for(var _0x4a2db7=_0x5e8e65>0x1?void 0x0:_0x5e8e65?ts(_0x60a4d2,_0x13e1b0):_0x60a4d2,_0x32f425=_0x92f9d0['length']-0x1,_0x51f80d;_0x32f425>=0x0;_0x32f425--)(_0x51f80d=_0x92f9d0[_0x32f425])&&(_0x4a2db7=_0x51f80d(_0x4a2db7)||_0x4a2db7);return _0x4a2db7;},F=(_0x4437f5,_0x55eec1)=>(_0x512b74,_0x1f9fdc)=>_0x55eec1(_0x512b74,_0x1f9fdc,_0x4437f5);exports['BrowserCollaborationSocketService']=class extends u[_0x45141a(0x213)]{constructor(_0xd0ce0b,_0x1f24d2,_0x1f17ff,_0x548cf6,_0x980de1){super(_0xd0ce0b,_0x1f24d2,_0x1f17ff,_0x548cf6,_0x980de1);}async['createSocket'](_0x228e4e){const _0x552229=_0x45141a,_0x495ee2=await this[_0x552229(0xa2)](),_0x3d6004=this[_0x552229(0xdc)](_0x228e4e,_0x495ee2);return this['_doCreateSocket'](_0x3d6004);}[_0x45141a(0xdc)](_0xd765f2,_0x5139e3){const _0x533abf=_0x45141a,_0x368216=typeof window>'u'?new URL(_0xd765f2):new URL(_0xd765f2,window[_0x533abf(0x17b)][_0x533abf(0xef)]);_0x368216[_0x533abf(0x1a8)]['set']('sessionTicket',_0x5139e3);const _0x39d734=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x533abf(0x17b)][_0x533abf(0x135)]);return _0x39d734[_0x533abf(0x1a0)](_0x533abf(0x2d0))&&_0x368216[_0x533abf(0x1a8)][_0x533abf(0x11e)](_0x533abf(0x2d0),_0x39d734[_0x533abf(0x1a0)]('runId')),_0x368216[_0x533abf(0x1a7)]();}async[_0x45141a(0xa2)](){const _0x29de12=_0x45141a;var _0xa29beb,_0x2d9045,_0x5c3296;const _0x3a0ec7=this[_0x29de12(0x292)][_0x29de12(0x208)](u[_0x29de12(0xba)]),_0xd2dbc8=(_0xa29beb=_0x3a0ec7==null?void 0x0:_0x3a0ec7['wsSessionTicketUrl'])!=null?_0xa29beb:u[_0x29de12(0x167)];return(_0x5c3296=(_0x2d9045=(await this[_0x29de12(0x2ce)]['get'](_0xd2dbc8,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x2d9045['ticket'])!=null?_0x5c3296:'';}},exports[_0x45141a(0x22c)]=ss([F(0x0,a[_0x45141a(0x147)](a[_0x45141a(0x1b0)])),F(0x1,a[_0x45141a(0x147)](G['HTTPService'])),F(0x2,a[_0x45141a(0x2ac)]),F(0x3,a['ILogService']),F(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x45141a(0x29f);class is extends a[_0x45141a(0x298)]{constructor(){const _0x1824ce=_0x45141a;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x1824ce(0xad),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x1824ce(0x263),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x1824ce(0x2b7),new Map()),this['_init']();}[_0x45141a(0x20f)](){const _0x50b6e6=_0x45141a;super[_0x50b6e6(0x20f)](),this['_clearOtherTimers'][_0x50b6e6(0xf1)]((_0x393c66,_0x5819f4)=>this['_removeClearOtherTimer'](_0x5819f4)),this[_0x50b6e6(0x263)]&&window[_0x50b6e6(0x1cd)](this[_0x50b6e6(0x263)]);}['getUnitStatus$'](_0x5cf903){const _0x3508ec=_0x45141a;return this[_0x3508ec(0x20d)](_0x5cf903)['pipe'](d['distinctUntilChanged']());}['editingUnit'](_0x22b9e3){const _0x58012c=_0x45141a;this['_selfUnitIDs'][_0x58012c(0x1cb)]===0x0&&this[_0x58012c(0xc0)](),this['_selfUnitIDs'][_0x58012c(0x2b3)](_0x22b9e3),this['_send']({'type':0x0,'memberID':this[_0x58012c(0xe5)],'unitIDs':[_0x22b9e3],'isForwarded':!0x1});}[_0x45141a(0x1e0)](_0x5037cb){const _0x5f2cd3=_0x45141a;this[_0x5f2cd3(0xad)][_0x5f2cd3(0x151)](_0x5037cb),this[_0x5f2cd3(0xad)][_0x5f2cd3(0x1cb)]===0x0&&this['_heartbeatTimer']&&window[_0x5f2cd3(0x1cd)](this['_heartbeatTimer']);}[_0x45141a(0x210)](){const _0x5525f4=_0x45141a;this['disposeWithMe'](a[_0x5525f4(0x1be)](d[_0x5525f4(0x1c2)](window,_0x5525f4(0x1fc))['subscribe'](_0x2ffa77=>{const _0x452ac9=_0x5525f4;if(_0x2ffa77[_0x452ac9(0x265)]!==Le||!_0x2ffa77[_0x452ac9(0xd4)])return;const _0x1b8132=JSON['parse'](_0x2ffa77['newValue']);this[_0x452ac9(0x228)](_0x1b8132);}))),window[_0x5525f4(0x12c)](_0x5525f4(0x215),()=>this[_0x5525f4(0x20a)]({'type':0x1,'memberID':this[_0x5525f4(0xe5)],'unitIDs':Array[_0x5525f4(0x2af)](this['_selfUnitIDs'])}));}[_0x45141a(0x228)](_0x49b9e2){switch(_0x49b9e2['type']){case 0x0:this['_handleJoinEvent'](_0x49b9e2);break;case 0x1:this['_handleLeaveEvent'](_0x49b9e2);break;case 0x2:this['_handleHeartbeatEvent'](_0x49b9e2);break;}}['_handleJoinEvent'](_0x75ade5){const _0x2fd6d7=_0x45141a,{unitIDs:_0x5e61b7,memberID:_0x3f7a23,isForwarded:_0x3c1197}=_0x75ade5;_0x5e61b7[_0x2fd6d7(0xf1)](_0x41aabe=>{const _0xcffe36=_0x2fd6d7;if(!_0x3c1197&&this[_0xcffe36(0x308)][_0xcffe36(0x17c)](_0x41aabe)&&this[_0xcffe36(0x20d)](_0x41aabe)[_0xcffe36(0x2e4)](u[_0xcffe36(0x174)]['OTHER_CLIENTS_EDITING']),!this[_0xcffe36(0x308)][_0xcffe36(0x17c)](_0x41aabe)||!this['_unitOnClients']['get'](_0x41aabe)[_0xcffe36(0x17c)](_0x3f7a23)){const _0x1e70ff=this[_0xcffe36(0x308)]['get'](_0x41aabe)||new Set();_0x1e70ff[_0xcffe36(0x2b3)](_0x3f7a23),this[_0xcffe36(0x308)][_0xcffe36(0x11e)](_0x41aabe,_0x1e70ff),this[_0xcffe36(0x1eb)](_0x3f7a23);}}),_0x3c1197||this[_0x2fd6d7(0x20a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x45141a(0x1eb)](_0x4701cd){const _0x2b919b=_0x45141a;this[_0x2b919b(0x25f)](_0x4701cd);const _0x378631=window['setTimeout'](()=>{const _0x35cbfe=_0x2b919b;this[_0x35cbfe(0x308)][_0x35cbfe(0xf1)](_0x1ac6fb=>{const _0x5da64e=_0x35cbfe;_0x1ac6fb[_0x5da64e(0x151)](_0x4701cd);});},Me*0x2);this[_0x2b919b(0x252)][_0x2b919b(0x11e)](_0x4701cd,_0x378631);}[_0x45141a(0x25f)](_0x2cffba){const _0xf75097=_0x45141a;if(this['_clearOtherTimers']['has'](_0x2cffba)){const _0x4e8c0a=this[_0xf75097(0x252)]['get'](_0x2cffba);_0x4e8c0a&&window[_0xf75097(0x287)](_0x4e8c0a),this[_0xf75097(0x252)]['set'](_0x2cffba,null);}}['_handleLeaveEvent'](_0x21bb78){const _0x173af5=_0x45141a,{memberID:_0x5476cb,unitIDs:_0x4d6ed6}=_0x21bb78;_0x4d6ed6[_0x173af5(0xf1)](_0x81b90=>{const _0x4b81d8=_0x173af5;var _0x2cf081;const _0x5ad31b=this[_0x4b81d8(0x308)][_0x4b81d8(0x1a0)](_0x81b90);_0x5ad31b&&(_0x5ad31b[_0x4b81d8(0x151)](_0x5476cb),(_0x2cf081=this[_0x4b81d8(0x20d)](_0x81b90))==null||_0x2cf081[_0x4b81d8(0x2e4)](_0x5ad31b['size']===0x0?u['UnitStatus'][_0x4b81d8(0x2b1)]:u[_0x4b81d8(0x174)]['OTHER_CLIENTS_EDITING']));}),this[_0x173af5(0x25f)](_0x5476cb);}['_handleHeartbeatEvent'](_0x111d77){const _0x3aad10=_0x45141a;this[_0x3aad10(0x1eb)](_0x111d77[_0x3aad10(0x1ae)]);}['_send'](_0x929199){const _0x3ca70a=_0x45141a;localStorage['setItem'](Le,JSON[_0x3ca70a(0x14b)](_0x929199));}[_0x45141a(0xc0)](){const _0x3fd950=_0x45141a;this[_0x3fd950(0x263)]=window[_0x3fd950(0x143)](()=>{const _0x2f0087=_0x3fd950;this[_0x2f0087(0x20a)]({'type':0x2,'memberID':this[_0x2f0087(0xe5)]});},Me);}[_0x45141a(0x20d)](_0x207def){const _0x4180ab=_0x45141a;return this[_0x4180ab(0x2b7)][_0x4180ab(0x17c)](_0x207def)||this['_unitStatus']['set'](_0x207def,new d['BehaviorSubject'](u[_0x4180ab(0x174)][_0x4180ab(0x2b1)])),this['_unitStatus']['get'](_0x207def);}}var Be=(_0x4212e1=>(_0x4212e1[_0x4212e1[_0x45141a(0xec)]=0x0]='UNDEFINED',_0x4212e1[_0x4212e1['OK']=0x1]='OK',_0x4212e1[_0x4212e1[_0x45141a(0x1cc)]=0x2]=_0x45141a(0x1cc),_0x4212e1[_0x4212e1[_0x45141a(0x2e0)]=0x3]=_0x45141a(0x2e0),_0x4212e1[_0x4212e1[_0x45141a(0x2cd)]=0x4]=_0x45141a(0x2cd),_0x4212e1[_0x4212e1[_0x45141a(0xce)]=0x5]='UNAUTHENTICATED',_0x4212e1[_0x4212e1[_0x45141a(0x276)]=0x6]=_0x45141a(0x276),_0x4212e1[_0x4212e1[_0x45141a(0x28b)]=0x7]='INVALID_ARGUMENT',_0x4212e1[_0x4212e1[_0x45141a(0x12a)]=0x8]='TOO_MANY_REQUESTS',_0x4212e1[_0x4212e1[_0x45141a(0x306)]=0x9]='COMPLETION_FINISHED',_0x4212e1[_0x4212e1['LOGIN_FAILED']=0xa]=_0x45141a(0xa4),_0x4212e1[_0x4212e1['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x45141a(0x13e),_0x4212e1[_0x4212e1[_0x45141a(0xab)]=0x1771]=_0x45141a(0xab),_0x4212e1[_0x4212e1[_0x45141a(0x18b)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4212e1[_0x4212e1[_0x45141a(0x2e1)]=0x1773]=_0x45141a(0x2e1),_0x4212e1[_0x4212e1[_0x45141a(0xb8)]=0x1b59]=_0x45141a(0xb8),_0x4212e1[_0x4212e1['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x45141a(0x272),_0x4212e1[_0x4212e1[_0x45141a(0x15e)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4212e1[_0x4212e1['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x45141a(0xc9),_0x4212e1[_0x4212e1[_0x45141a(0x249)]=0x1b5d]=_0x45141a(0x249),_0x4212e1[_0x4212e1[_0x45141a(0x303)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4212e1[_0x4212e1[_0x45141a(0x121)]=0x2329]=_0x45141a(0x121),_0x4212e1[_0x4212e1['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4212e1[_0x4212e1['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x45141a(0x163),_0x4212e1[_0x4212e1[_0x45141a(0x1c0)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4212e1[_0x4212e1[_0x45141a(0x16e)]=0x232d]=_0x45141a(0x16e),_0x4212e1[_0x4212e1['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x45141a(0xe6),_0x4212e1[_0x4212e1['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x45141a(0x2e7),_0x4212e1[_0x4212e1['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x45141a(0x222),_0x4212e1[_0x4212e1[_0x45141a(0x1e6)]=0x2714]=_0x45141a(0x1e6),_0x4212e1[_0x4212e1[_0x45141a(0xe1)]=0x271a]=_0x45141a(0xe1),_0x4212e1[_0x4212e1['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x4212e1[_0x4212e1['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4212e1[_0x4212e1[_0x45141a(0x25b)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x4212e1[_0x4212e1[_0x45141a(0x202)]=0x2ee2]=_0x45141a(0x202),_0x4212e1[_0x4212e1[_0x45141a(0x131)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4212e1[_0x4212e1[_0x45141a(0xe4)]=0x2ee4]=_0x45141a(0xe4),_0x4212e1[_0x4212e1[_0x45141a(0x165)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4212e1[_0x4212e1[_0x45141a(0x212)]=0x32c9]=_0x45141a(0x212),_0x4212e1[_0x4212e1['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x45141a(0x27e),_0x4212e1[_0x4212e1['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x45141a(0x231),_0x4212e1[_0x4212e1['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4212e1))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x7b1c29,_0x4a5a87,_0x310754,_0x21ee4b)=>{const _0x29e16f=_0x45141a;for(var _0x390065=_0x21ee4b>0x1?void 0x0:_0x21ee4b?ns(_0x4a5a87,_0x310754):_0x4a5a87,_0x344429=_0x7b1c29[_0x29e16f(0x1fe)]-0x1,_0x1a9f17;_0x344429>=0x0;_0x344429--)(_0x1a9f17=_0x7b1c29[_0x344429])&&(_0x390065=_0x1a9f17(_0x390065)||_0x390065);return _0x390065;},ue=(_0x1993f3,_0x2d6826)=>(_0xe8fd4f,_0x34d126)=>_0x2d6826(_0xe8fd4f,_0x34d126,_0x1993f3);exports[_0x45141a(0x20e)]=class extends a[_0x45141a(0x298)]{constructor(_0x3278be,_0x2ba61c,_0x2c07fe){const _0x481935=_0x45141a;super(),this[_0x481935(0x108)]=_0x3278be,this[_0x481935(0x2ce)]=_0x2ba61c,this[_0x481935(0x292)]=_0x2c07fe;}async[_0x45141a(0x111)](_0x4ec187,_0x352a52,_0x3b5cf0,..._0x54c996){const _0x5777ef=_0x45141a;var _0x17358f,_0x20ed02,_0x559cd3,_0x57a141;const _0x5c6d25=this[_0x5777ef(0x108)][_0x5777ef(0x269)]();if(!_0x5c6d25)throw new Error(_0x5777ef(0x230));const _0x514d7d=((_0x17358f=this[_0x5777ef(0x292)][_0x5777ef(0x208)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x17358f:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x4ec187+_0x5777ef(0x2dc)+_0x352a52,_0x1e9422=new URL(window[_0x5777ef(0x17b)][_0x5777ef(0xcd)]),_0x305ecf={'scriptId':_0x4ec187,'runId':(_0x20ed02=_0x1e9422[_0x5777ef(0x1a8)]['get'](_0x5777ef(0x2d0)))!=null?_0x20ed02:'','function':_0x352a52,'unitId':_0x5c6d25[_0x5777ef(0x189)](),'argsOfFunction':JSON['stringify'](_0x54c996),'invokeId':(_0x559cd3=_0x3b5cf0['invokeId'])!=null?_0x559cd3:'','executionId':(_0x57a141=_0x3b5cf0[_0x5777ef(0x247)])!=null?_0x57a141:''};try{const _0x17e66d=await this[_0x5777ef(0x2ce)]['post'](_0x514d7d,{'body':_0x305ecf});return _0x17e66d[_0x5777ef(0x29d)][_0x5777ef(0x299)]&&_0x17e66d[_0x5777ef(0x29d)][_0x5777ef(0x299)][_0x5777ef(0x123)]!==Be['OK']?'Failed':_0x17e66d[_0x5777ef(0x29d)]['result'];}catch{return _0x5777ef(0x30b);}}},exports[_0x45141a(0x20e)]=rs([ue(0x0,a[_0x45141a(0x101)]),ue(0x1,a[_0x45141a(0x147)](G[_0x45141a(0x309)])),ue(0x2,a[_0x45141a(0x2ac)])],exports[_0x45141a(0x20e)]),exports[_0x45141a(0x28d)]=xe,exports['IURLService']=be,exports[_0x45141a(0x168)]=we,exports[_0x45141a(0x1f1)]=is,exports[_0x45141a(0x1f7)]=je;
1
+ 'use strict';const _0x26c91b=_0x58e8;(function(_0x421cb3,_0x87f45){const _0x1831e3=_0x58e8,_0x5ae23d=_0x421cb3();while(!![]){try{const _0x529b34=parseInt(_0x1831e3(0x38c))/0x1*(-parseInt(_0x1831e3(0x285))/0x2)+parseInt(_0x1831e3(0x370))/0x3*(-parseInt(_0x1831e3(0x133))/0x4)+-parseInt(_0x1831e3(0x19b))/0x5*(-parseInt(_0x1831e3(0x317))/0x6)+parseInt(_0x1831e3(0x154))/0x7+parseInt(_0x1831e3(0x2f7))/0x8+-parseInt(_0x1831e3(0x109))/0x9+parseInt(_0x1831e3(0x12c))/0xa*(parseInt(_0x1831e3(0x330))/0xb);if(_0x529b34===_0x87f45)break;else _0x5ae23d['push'](_0x5ae23d['shift']());}catch(_0x1ee428){_0x5ae23d['push'](_0x5ae23d['shift']());}}}(_0x4840,0xd12c9));var Ve=Object[_0x26c91b(0x13c)],Xe=(_0x10c47f,_0x5ea3e3,_0x20893b)=>_0x5ea3e3 in _0x10c47f?Ve(_0x10c47f,_0x5ea3e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20893b}):_0x10c47f[_0x5ea3e3]=_0x20893b,h=(_0x3951af,_0xa6fa9c,_0x30614f)=>Xe(_0x3951af,typeof _0xa6fa9c!=_0x26c91b(0x208)?_0xa6fa9c+'':_0xa6fa9c,_0x30614f);Object[_0x26c91b(0x13c)](exports,Symbol[_0x26c91b(0x311)],{'value':_0x26c91b(0x271)});const u=require(_0x26c91b(0x313)),a=require(_0x26c91b(0x117)),p=require(_0x26c91b(0x2cc)),G=require(_0x26c91b(0x264)),b=require(_0x26c91b(0x354)),Ge=require('@univerjs/drawing'),d=require(_0x26c91b(0x12f)),W=require(_0x26c91b(0x121)),m=require(_0x26c91b(0x2cd)),Ee=require(_0x26c91b(0x1a3)),g=require(_0x26c91b(0x1af)),$=require(_0x26c91b(0x31b)),X=require(_0x26c91b(0x234)),P=require(_0x26c91b(0x16c)),T=require(_0x26c91b(0x123)),D=require(_0x26c91b(0x263)),M=require(_0x26c91b(0x20b)),qe=require(_0x26c91b(0x309));var Ke=Object[_0x26c91b(0x30b)],ze=(_0x4271d0,_0x37edb5,_0xc9ea21,_0x236729)=>{const _0x364e8a=_0x26c91b;for(var _0x6e2272=_0x236729>0x1?void 0x0:_0x236729?Ke(_0x37edb5,_0xc9ea21):_0x37edb5,_0x4e2b02=_0x4271d0[_0x364e8a(0x362)]-0x1,_0x4bdab7;_0x4e2b02>=0x0;_0x4e2b02--)(_0x4bdab7=_0x4271d0[_0x4e2b02])&&(_0x6e2272=_0x4bdab7(_0x6e2272)||_0x6e2272);return _0x6e2272;},Te=(_0x113bd2,_0x4a0975)=>(_0x3a623e,_0x4276d9)=>_0x4a0975(_0x3a623e,_0x4276d9,_0x113bd2);let de=class extends a['RxDisposable']{constructor(_0x336b04,_0x30bf65){const _0xdfc1a=_0x26c91b;super(),this[_0xdfc1a(0x159)]=_0x336b04,this['_imageIoService']=_0x30bf65,this['_init']();}[_0x26c91b(0x1d9)](){const _0x15cfa3=_0x26c91b,_0x6a8512=this;this[_0x15cfa3(0x1dc)](this[_0x15cfa3(0x159)]['addClipboardHook']({'onBeforePasteImage':async _0x5c96c3=>{const _0x4de2a9=_0x15cfa3,_0x1c9fc3=await _0x6a8512[_0x4de2a9(0x30d)][_0x4de2a9(0x22c)](_0x5c96c3);return _0x1c9fc3?{'source':_0x1c9fc3[_0x4de2a9(0x17e)],'imageSourceType':_0x1c9fc3[_0x4de2a9(0x2a6)]}:null;}}));}};de=ze([Te(0x0,b[_0x26c91b(0x12d)]),Te(0x1,Ge[_0x26c91b(0x2f2)])],de);const Oe=[_0x26c91b(0x35d),'jiqing500',_0x26c91b(0x1cf),_0x26c91b(0x2ea),'blue400',_0x26c91b(0x165)];class me extends a[_0x26c91b(0x13d)]{constructor(){const _0x39334f=_0x26c91b;super(...arguments),h(this,_0x39334f(0x245),new Map()),h(this,_0x39334f(0x37e),0x0);}[_0x26c91b(0x2bf)](_0x3fa539){const _0x3297f1=_0x26c91b;if(this[_0x3297f1(0x245)][_0x3297f1(0x275)](_0x3fa539))return this[_0x3297f1(0x245)][_0x3297f1(0x141)](_0x3fa539);const _0x3d3a31=Oe[this[_0x3297f1(0x37e)]];return this[_0x3297f1(0x37e)]=(this[_0x3297f1(0x37e)]+0x1)%Oe['length'],this[_0x3297f1(0x245)][_0x3297f1(0x305)](_0x3fa539,_0x3d3a31),_0x3d3a31;}}function Pe(_0x4da1d8){const _0x2345a6=_0x26c91b;let _0x385ec2='';for(const _0x2a56be of _0x4da1d8){const {startOffset:_0x3c7386,endOffset:_0x3eb8fc,isActive:_0x38a264,rangeType:_0x395d57,segmentId:_0x4bbb56,segmentPage:_0x4a1f3b}=_0x2a56be;_0x385ec2[_0x2345a6(0x362)]&&(_0x385ec2+=','),_0x385ec2+=_0x3c7386+':'+_0x3eb8fc+':'+(_0x38a264?'1':'0')+':'+_0x395d57+':'+_0x4bbb56+':'+_0x4a1f3b;}return _0x385ec2;}function Je(_0x317683){const _0x36d04c=_0x26c91b,_0x367984=_0x317683['split'](','),_0x471a84=[];for(const _0x44ccf4 of _0x367984){const [_0x1688f5,_0x329a15,_0x5b1dbb,_0x3f2df4,_0xaa8a7a,_0x239fc4]=_0x44ccf4[_0x36d04c(0x34d)](':');_0x471a84[_0x36d04c(0x355)]({'startOffset':Number(_0x1688f5),'endOffset':Number(_0x329a15),'collapsed':_0x1688f5===_0x329a15,'isActive':_0x5b1dbb==='1','rangeType':_0x3f2df4===a[_0x36d04c(0x302)][_0x36d04c(0x23b)]?a[_0x36d04c(0x302)][_0x36d04c(0x23b)]:a[_0x36d04c(0x302)][_0x36d04c(0x182)],'segmentId':typeof _0xaa8a7a==_0x36d04c(0x151)?String(_0xaa8a7a):'','segmentPage':Number(_0x239fc4!=null?_0x239fc4:-0x1)});}return _0x471a84[_0x36d04c(0x132)](_0x459281=>_0x459281[_0x36d04c(0x24c)])||(_0x471a84[0x0][_0x36d04c(0x24c)]=!0x0),_0x471a84;}class Ce extends a[_0x26c91b(0x31f)]{constructor(){const _0x4267f6=_0x26c91b;super(...arguments),h(this,_0x4267f6(0x1de),new d[(_0x4267f6(0x15d))](null)),h(this,_0x4267f6(0x240),this[_0x4267f6(0x1de)][_0x4267f6(0x338)]());}[_0x26c91b(0x32a)](_0x39fc2c){const _0x1e8bab=_0x26c91b,{unitID:_0x1fb4cc,memberID:_0x5a003b,textRanges:_0x4705fe}=_0x39fc2c,_0x2cf324=Pe(_0x4705fe);if(_0x2cf324==='')return;const _0x4cc61c={'unitID':_0x1fb4cc,'memberID':_0x5a003b,'selection':_0x2cf324};this[_0x1e8bab(0x1de)][_0x1e8bab(0x2d2)](_0x4cc61c);}}var Ze=Object[_0x26c91b(0x30b)],Qe=(_0x2cfdf4,_0x286db7,_0x217460,_0x2c50b6)=>{const _0x10cce0=_0x26c91b;for(var _0x3883c8=_0x2c50b6>0x1?void 0x0:_0x2c50b6?Ze(_0x286db7,_0x217460):_0x286db7,_0xaf5b36=_0x2cfdf4[_0x10cce0(0x362)]-0x1,_0x47b46b;_0xaf5b36>=0x0;_0xaf5b36--)(_0x47b46b=_0x2cfdf4[_0xaf5b36])&&(_0x3883c8=_0x47b46b(_0x3883c8)||_0x3883c8);return _0x3883c8;},L=(_0x330a4d,_0x545ae0)=>(_0x96ac1a,_0x194d08)=>_0x545ae0(_0x96ac1a,_0x194d08,_0x330a4d);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x5de68a,_0x46433d,_0x12726b,_0xe7091b,_0x3ece3d,_0x342faa,_0x5068ae,_0x1acf9a,_0x4b9cc8){const _0x313a18=_0x26c91b;super(),h(this,'_online',!0x1),h(this,_0x313a18(0x1d9),!0x1),h(this,_0x313a18(0x339),new d[(_0x313a18(0x15d))](new Map())),h(this,_0x313a18(0x168),this[_0x313a18(0x339)]['asObservable']()),h(this,_0x313a18(0x2ad),new d[(_0x313a18(0x15d))]([])),h(this,_0x313a18(0x32e),this[_0x313a18(0x2ad)][_0x313a18(0x15c)](d[_0x313a18(0x1c8)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x45a807=>{const _0x109725=_0x313a18,_0x357f7c={'eventID':m[_0x109725(0x28d)][_0x109725(0x2c6)],'data':{'unitID':this[_0x109725(0x21b)],'memberID':this[_0x109725(0x356)]['getMemberID'](),'selection':Pe(_0x45a807)}};this[_0x109725(0x356)][_0x109725(0x1d3)](_0x357f7c,this[_0x109725(0x21b)]);},tt)),(this[_0x313a18(0x21b)]=_0x5de68a,this['_session']=_0x46433d,this[_0x313a18(0x325)]=_0x12726b,this['_colorAssignService']=_0xe7091b,this[_0x313a18(0x1ee)]=_0x3ece3d,this[_0x313a18(0x1dd)]=_0x342faa,this[_0x313a18(0x19f)]=_0x5068ae,this[_0x313a18(0x272)]=_0x1acf9a,this[_0x313a18(0x164)]=_0x4b9cc8);}get['cursorInfo'](){const _0x4b02cb=_0x26c91b;return this['_cursorInfo$'][_0x4b02cb(0x2bc)]();}get[_0x26c91b(0x33d)](){const _0x4413f8=_0x26c91b;return this[_0x4413f8(0x2ad)][_0x4413f8(0x2bc)]();}[_0x26c91b(0x2c0)](){const _0x42bfad=_0x26c91b;super[_0x42bfad(0x2c0)](),this['_cursorInfo$'][_0x42bfad(0x2d2)](new Map()),this[_0x42bfad(0x339)][_0x42bfad(0x22a)](),this[_0x42bfad(0x2ad)]['next']([]),this[_0x42bfad(0x2ad)][_0x42bfad(0x22a)]();}[_0x26c91b(0x324)](){const _0x2bb6d1=_0x26c91b;this[_0x2bb6d1(0x1d9)]||(this[_0x2bb6d1(0x1d9)]=!0x0,this[_0x2bb6d1(0x356)][_0x2bb6d1(0x25f)][_0x2bb6d1(0x15c)](d[_0x2bb6d1(0x10e)](this[_0x2bb6d1(0x2d4)]))['subscribe'](_0x40aae3=>{const _0x44cc80=_0x2bb6d1;_0x40aae3===u['SessionStatus']['ONLINE']?this[_0x44cc80(0x2e6)]():this[_0x44cc80(0x344)]();}),this[_0x2bb6d1(0x356)]['event$'][_0x2bb6d1(0x15c)](d[_0x2bb6d1(0x10e)](this[_0x2bb6d1(0x2d4)]))[_0x2bb6d1(0x257)](_0x12a7a1=>{const _0x1b1016=_0x2bb6d1,_0x5620cc=_0x12a7a1[_0x1b1016(0x387)];_0x5620cc===m[_0x1b1016(0x28d)]['UPDATE_CURSOR']&&this[_0x1b1016(0x12b)](_0x12a7a1),_0x5620cc===m['CollaborationEvent'][_0x1b1016(0x25b)]&&this[_0x1b1016(0x143)](_0x12a7a1);}),this[_0x2bb6d1(0x1dc)](this[_0x2bb6d1(0x164)][_0x2bb6d1(0x2ae)](_0x19e274=>{const _0x4a1446=_0x2bb6d1,_0xc43675=_0x19e274[_0x4a1446(0x181)];_0xc43675!=null&&this['_online']&&_0x19e274['id']===W[_0x4a1446(0x1fb)]['id']&&_0xc43675[_0x4a1446(0x221)]===this[_0x4a1446(0x21b)]&&_0xc43675['isEditing']===!0x1&&_0xc43675['ranges']['length']>0x0&&this[_0x4a1446(0x1d0)](_0xc43675[_0x4a1446(0x386)]);})),this[_0x2bb6d1(0x1dd)][_0x2bb6d1(0x240)]['pipe'](d[_0x2bb6d1(0x10e)](this[_0x2bb6d1(0x2d4)]))['subscribe'](_0x13302c=>{const _0x9ccb05=_0x2bb6d1;if((_0x13302c==null?void 0x0:_0x13302c[_0x9ccb05(0x21b)])!==this[_0x9ccb05(0x21b)])return;const _0x14e32f={'eventID':m[_0x9ccb05(0x28d)][_0x9ccb05(0x2c6)],'data':_0x13302c};this[_0x9ccb05(0x12b)](_0x14e32f);}),this[_0x2bb6d1(0x1dc)](this[_0x2bb6d1(0x164)][_0x2bb6d1(0x2ae)](_0x4f8b4c=>{const _0x1b0946=_0x2bb6d1;if(_0x4f8b4c[_0x1b0946(0x181)]==null)return;const _0xc7a41b=_0x4f8b4c[_0x1b0946(0x181)];if(_0x4f8b4c['id']!==W['RichTextEditingMutation']['id']||_0xc7a41b[_0x1b0946(0x221)]!==this[_0x1b0946(0x21b)])return;const _0x378c84={'id':_0x1b0946(0x153),'params':_0xc7a41b},_0x493205=this[_0x1b0946(0x265)];for(const [_0x11939d,_0x9f5d1b]of _0x493205){const _0x28a1de={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1b0946(0x21b)],'actions':null,'textRanges':_0x9f5d1b['ranges']}},_0x3ea169=this[_0x1b0946(0x19f)][_0x1b0946(0x29b)](_0x378c84,_0x28a1de,!0x1);if(m[_0x1b0946(0x394)](_0x3ea169))throw _0x3ea169[_0x1b0946(0x33b)];_0x493205[_0x1b0946(0x305)](_0x11939d,{..._0x9f5d1b,'ranges':_0x3ea169[_0x1b0946(0x18e)][_0x1b0946(0x181)][_0x1b0946(0x38d)]});}queueMicrotask(()=>{const _0x37d1cb=_0x1b0946;this[_0x37d1cb(0x339)]['next'](_0x493205);});})));}[_0x26c91b(0x12b)](_0x222c87){const _0x50c863=_0x26c91b;var _0x5dd682,_0x120475;const {memberID:_0x5b7085,selection:_0x434bcf}=_0x222c87[_0x50c863(0x368)],_0x2db935=Je(_0x434bcf),_0x56eb08=(_0x120475=(_0x5dd682=this[_0x50c863(0x1ee)][_0x50c863(0x388)](this[_0x50c863(0x21b)],_0x5b7085))==null?void 0x0:_0x5dd682[_0x50c863(0x180)])!=null?_0x120475:_0x50c863(0x1e8),_0x58d139={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5b7085),'name':_0x56eb08,'ranges':_0x2db935},_0x13130e=this[_0x50c863(0x265)];_0x13130e[_0x50c863(0x305)](_0x5b7085,_0x58d139),this['_cursorInfo$'][_0x50c863(0x2d2)](_0x13130e);}['_onCursorDelete'](_0x4156b6){const _0xb0df47=_0x26c91b,{memberID:_0x115c45}=_0x4156b6[_0xb0df47(0x368)],_0x603b78=this[_0xb0df47(0x265)];_0x603b78[_0xb0df47(0x186)](_0x115c45),this[_0xb0df47(0x339)][_0xb0df47(0x2d2)](_0x603b78);}[_0x26c91b(0x2e6)](){const _0xfa5707=_0x26c91b;var _0x2cbbc6;if(this[_0xfa5707(0x1c7)]=!0x0,((_0x2cbbc6=this['_univerInstanceService'][_0xfa5707(0x1a9)]())==null?void 0x0:_0x2cbbc6['getUnitId']())!==this[_0xfa5707(0x21b)])return;const _0x4b62f5=this[_0xfa5707(0x325)][_0xfa5707(0x141)](W[_0xfa5707(0x17d)])[_0xfa5707(0x20a)]();Array[_0xfa5707(0x331)](_0x4b62f5)&&_0x4b62f5[_0xfa5707(0x362)]>0x0&&this['_updateLocalCursor'](_0x4b62f5);}[_0x26c91b(0x344)](){const _0x718233=_0x26c91b;this[_0x718233(0x1c7)]=!0x1;}};fe=Qe([L(0x2,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),L(0x3,a[_0x26c91b(0x357)](me)),L(0x4,a[_0x26c91b(0x357)](u[_0x26c91b(0x37b)])),L(0x5,a[_0x26c91b(0x357)](Ce)),L(0x6,m[_0x26c91b(0x148)]),L(0x7,a[_0x26c91b(0x1f2)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x26c91b(0x30b)],it=(_0xf97c2,_0x12baa5,_0x3f0fc3,_0x54535c)=>{const _0x4c2bc7=_0x26c91b;for(var _0x4eecc5=_0x54535c>0x1?void 0x0:_0x54535c?st(_0x12baa5,_0x3f0fc3):_0x12baa5,_0x4c8a6b=_0xf97c2[_0x4c2bc7(0x362)]-0x1,_0x3c5a01;_0x4c8a6b>=0x0;_0x4c8a6b--)(_0x3c5a01=_0xf97c2[_0x4c8a6b])&&(_0x4eecc5=_0x3c5a01(_0x4eecc5)||_0x4eecc5);return _0x4eecc5;},A=(_0x1ad437,_0x4b61d5)=>(_0x4a05e3,_0x569815)=>_0x4b61d5(_0x4a05e3,_0x569815,_0x1ad437);const nt=0x12c,rt=0x64,ot=()=>{let _0x413fe2=[],_0x5240b5=!0x1;return _0x322bc4=>{_0x413fe2['push'](_0x322bc4),_0x5240b5||(_0x5240b5=!0x0,setTimeout(()=>{const _0xe98a34=_0x58e8;_0x413fe2[_0xe98a34(0x2b2)](_0x388730=>_0x388730()),_0x413fe2=[],_0x5240b5=!0x1;}));};};let Se=class extends a[_0x26c91b(0x31f)]{constructor(_0x547d71,_0xed3585,_0x2c8fa9,_0x55d889,_0x726620,_0x4fa500,_0x1854bb,_0x35b2b5){const _0x4f0945=_0x26c91b;super(),h(this,_0x4f0945(0x1c7),!0x1),h(this,'_init',!0x1),h(this,_0x4f0945(0x339),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x4f0945(0x339)][_0x4f0945(0x338)]()),h(this,_0x4f0945(0x2ad),new d['BehaviorSubject']([])),h(this,_0x4f0945(0x32e),this[_0x4f0945(0x2ad)]['pipe'](d[_0x4f0945(0x1c8)](nt))),h(this,_0x4f0945(0x1d0),a[_0x4f0945(0x2d5)]((_0x1aeb45,_0x1ac591)=>{const _0x434e4e=_0x4f0945,_0x4238b9={'eventID':m[_0x434e4e(0x28d)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x434e4e(0x21b)],'memberID':this['_session'][_0x434e4e(0x2e3)](),'selection':Ee[_0x434e4e(0x14a)](_0x1aeb45,_0x1ac591['range'])}};this[_0x434e4e(0x356)]['send'](_0x4238b9,this[_0x434e4e(0x21b)]);},rt)),(this[_0x4f0945(0x21b)]=_0x547d71,this[_0x4f0945(0x356)]=_0xed3585,this[_0x4f0945(0x325)]=_0x2c8fa9,this['_colorAssignService']=_0x55d889,this[_0x4f0945(0x1ee)]=_0x726620,this['_univerInstanceService']=_0x4fa500,this[_0x4f0945(0x164)]=_0x1854bb,this[_0x4f0945(0x237)]=_0x35b2b5);}get['cursorInfo'](){const _0x25ef44=_0x26c91b;return this[_0x25ef44(0x339)][_0x25ef44(0x2bc)]();}get[_0x26c91b(0x33d)](){const _0x514541=_0x26c91b;return this[_0x514541(0x2ad)][_0x514541(0x2bc)]();}['dispose'](){const _0x4f5fa3=_0x26c91b;super[_0x4f5fa3(0x2c0)](),this[_0x4f5fa3(0x339)]['next'](new Map()),this[_0x4f5fa3(0x339)]['complete'](),this[_0x4f5fa3(0x2ad)]['next']([]),this[_0x4f5fa3(0x2ad)]['complete']();}[_0x26c91b(0x324)](){const _0x2f8e8e=_0x26c91b;this['_init']||(this[_0x2f8e8e(0x1d9)]=!0x0,this['_session']['sessionStatus$'][_0x2f8e8e(0x15c)](d[_0x2f8e8e(0x10e)](this[_0x2f8e8e(0x2d4)]))[_0x2f8e8e(0x257)](_0x14785d=>{const _0x4af5ca=_0x2f8e8e;_0x14785d===u[_0x4af5ca(0x2d7)]['ONLINE']?this[_0x4af5ca(0x2e6)]():this[_0x4af5ca(0x344)]();}),this[_0x2f8e8e(0x356)][_0x2f8e8e(0x268)][_0x2f8e8e(0x15c)](d[_0x2f8e8e(0x10e)](this[_0x2f8e8e(0x2d4)]))[_0x2f8e8e(0x257)](_0x35c662=>{const _0x43bc32=_0x2f8e8e,_0x1d7d01=_0x35c662[_0x43bc32(0x387)];_0x1d7d01===m[_0x43bc32(0x28d)][_0x43bc32(0x2c6)]&&this['_onCursorUpdate'](_0x35c662),_0x1d7d01===m[_0x43bc32(0x28d)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x35c662);}),this['_onRefRangeChange'](),this[_0x2f8e8e(0x1dc)](this[_0x2f8e8e(0x164)][_0x2f8e8e(0x2ae)](_0x440efd=>{const _0x226d16=_0x2f8e8e;if(this['_online']&&_0x440efd['id']===g[_0x226d16(0x15b)]['id']&&_0x440efd[_0x226d16(0x181)][_0x226d16(0x221)]===this[_0x226d16(0x21b)]){const _0x566a67=_0x440efd['params'];this['_updateLocalCursor'](_0x566a67[_0x226d16(0x374)],_0x566a67[_0x226d16(0x310)][0x0]);}})));}[_0x26c91b(0x12b)](_0x419b3d){const _0x3d0570=_0x26c91b;var _0x331405,_0x3e5af2;const {memberID:_0x5be4a,selection:_0x5f41b0}=_0x419b3d[_0x3d0570(0x368)],{sheetName:_0x4e9835,range:_0x28d5fc}=Ee[_0x3d0570(0x37f)](_0x5f41b0),_0x1ca37b={'name':(_0x3e5af2=(_0x331405=this[_0x3d0570(0x1ee)][_0x3d0570(0x388)](this[_0x3d0570(0x21b)],_0x5be4a))==null?void 0x0:_0x331405[_0x3d0570(0x180)])!=null?_0x3e5af2:_0x3d0570(0x1e8),'range':this[_0x3d0570(0x390)](_0x4e9835,_0x28d5fc),'sheetID':_0x4e9835,'color':this[_0x3d0570(0x31e)][_0x3d0570(0x2bf)](_0x5be4a),'selection':_0x5f41b0},_0x3ecb5c=this[_0x3d0570(0x265)];_0x3ecb5c[_0x3d0570(0x305)](_0x5be4a,_0x1ca37b),this[_0x3d0570(0x339)][_0x3d0570(0x2d2)](_0x3ecb5c);}[_0x26c91b(0x143)](_0x19657e){const _0x2b57aa=_0x26c91b,{memberID:_0x595c41}=_0x19657e[_0x2b57aa(0x368)],_0x54402a=this[_0x2b57aa(0x265)];_0x54402a[_0x2b57aa(0x186)](_0x595c41),this[_0x2b57aa(0x339)][_0x2b57aa(0x2d2)](_0x54402a);}['_getMergeRange'](_0x444a47,_0x516e88){const _0x2f6a09=_0x26c91b;var _0x5826e0,_0x675227;const _0x43ec7a=(_0x675227=(_0x5826e0=this['_univerInstanceService'][_0x2f6a09(0x189)](this[_0x2f6a09(0x21b)]))==null?void 0x0:_0x5826e0[_0x2f6a09(0x18d)](_0x444a47))==null?void 0x0:_0x675227['getMergeData']();return(_0x43ec7a==null?void 0x0:_0x43ec7a['find'](_0x1531b7=>a[_0x2f6a09(0x2a3)]['contains'](_0x1531b7,_0x516e88)))||_0x516e88;}[_0x26c91b(0x229)](){const _0x4075e8=_0x26c91b,_0x57438d=new a[(_0x4075e8(0x26d))](),_0x53c98e=ot(),_0x175697=()=>{const _0x3a2870=_0x4075e8;_0x57438d['dispose']();const _0x48ea56=(_0x23e24f,_0x38e8fb,_0x3e80e4,_0x219b9c)=>{const _0x84ca99=_0x58e8;let _0x305bd4=[];switch(_0x23e24f['id']){case g[_0x84ca99(0x171)][_0x84ca99(0x23c)]:{_0x305bd4=g[_0x84ca99(0x358)](_0x23e24f,_0x219b9c);break;}case g[_0x84ca99(0x171)][_0x84ca99(0x179)]:{_0x305bd4=g[_0x84ca99(0x2ab)](_0x23e24f,_0x219b9c);break;}case g['EffectRefRangId'][_0x84ca99(0x16b)]:{_0x305bd4=g['handleInsertCol'](_0x23e24f,_0x219b9c);break;}case g[_0x84ca99(0x171)][_0x84ca99(0x33c)]:{_0x305bd4=g[_0x84ca99(0x284)](_0x23e24f,_0x219b9c);break;}case g['EffectRefRangId'][_0x84ca99(0x18a)]:{_0x305bd4=g[_0x84ca99(0x2f8)](_0x23e24f,_0x219b9c);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x305bd4=g['handleInsertRow'](_0x23e24f,_0x219b9c);break;}case g[_0x84ca99(0x171)]['MoveRangeCommandId']:{_0x305bd4=g[_0x84ca99(0x32c)](_0x23e24f,_0x219b9c);break;}case g['EffectRefRangId'][_0x84ca99(0x139)]:{_0x305bd4=g[_0x84ca99(0x365)](_0x23e24f,_0x219b9c);break;}case g[_0x84ca99(0x171)][_0x84ca99(0x2a5)]:{_0x305bd4=g[_0x84ca99(0x351)](_0x23e24f,_0x219b9c);break;}}const _0x531cc7=g['runRefRangeMutations'](_0x305bd4,_0x219b9c),_0x32ef87=this[_0x84ca99(0x265)][_0x84ca99(0x141)](_0x38e8fb);if(_0x32ef87&&_0x531cc7){const _0x149d94={..._0x32ef87,'range':_0x531cc7};this[_0x84ca99(0x265)][_0x84ca99(0x305)](_0x38e8fb,_0x149d94),_0x53c98e(()=>{const _0x3c4517=_0x84ca99,_0x24def4=this[_0x3c4517(0x237)][_0x3c4517(0x337)](_0x531cc7,_0x29c983=>(_0x24def4[_0x3c4517(0x2c0)](),_0x48ea56(_0x29c983,_0x38e8fb,_0x3e80e4,_0x531cc7)));_0x57438d[_0x3c4517(0x1d4)](_0x24def4);});}return{'redos':[],'undos':[]};};this[_0x3a2870(0x265)][_0x3a2870(0x2b2)]((_0x53fde8,_0x412480)=>{const _0x53bc6c=_0x3a2870,{range:_0x51795d,sheetID:_0xcab8a7}=_0x53fde8,_0x5b83ca=this['_refRangeService'][_0x53bc6c(0x337)](_0x51795d,_0x3a0873=>(_0x5b83ca['dispose'](),_0x48ea56(_0x3a0873,_0x412480,_0xcab8a7,_0x51795d)));_0x57438d[_0x53bc6c(0x1d4)](_0x5b83ca);});};this[_0x4075e8(0x1dc)](a['toDisposable'](this['_cursorInfo$'][_0x4075e8(0x257)](()=>{_0x175697();})));}[_0x26c91b(0x2e6)](){const _0x2d08e1=_0x26c91b;var _0x3658c1,_0x1b767a;if(this[_0x2d08e1(0x1c7)]=!0x0,((_0x3658c1=this[_0x2d08e1(0x272)][_0x2d08e1(0x1a9)]())==null?void 0x0:_0x3658c1[_0x2d08e1(0x10c)]())!==this[_0x2d08e1(0x21b)])return;const _0x6ccfec=(_0x1b767a=this[_0x2d08e1(0x325)][_0x2d08e1(0x141)](g[_0x2d08e1(0x130)])[_0x2d08e1(0x2c8)]())==null?void 0x0:_0x1b767a[0x0],_0x25a72b=this[_0x2d08e1(0x272)][_0x2d08e1(0x2a0)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2d08e1(0x2a9)]();_0x6ccfec&&_0x25a72b&&this[_0x2d08e1(0x1d0)](_0x25a72b[_0x2d08e1(0x335)](),_0x6ccfec);}[_0x26c91b(0x344)](){const _0x405c8e=_0x26c91b;this[_0x405c8e(0x1c7)]=!0x1;}};Se=it([A(0x2,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),A(0x3,a[_0x26c91b(0x357)](me)),A(0x4,a['Inject'](u[_0x26c91b(0x37b)])),A(0x5,a[_0x26c91b(0x1f2)]),A(0x6,a['ICommandService']),A(0x7,a[_0x26c91b(0x357)](g[_0x26c91b(0x115)]))],Se);var at=Object[_0x26c91b(0x30b)],ct=(_0x1fefb7,_0x550359,_0x55ed50,_0x300135)=>{for(var _0x59b6d1=_0x300135>0x1?void 0x0:_0x300135?at(_0x550359,_0x55ed50):_0x550359,_0x2ba67c=_0x1fefb7['length']-0x1,_0x2b44f3;_0x2ba67c>=0x0;_0x2ba67c--)(_0x2b44f3=_0x1fefb7[_0x2ba67c])&&(_0x59b6d1=_0x2b44f3(_0x59b6d1)||_0x59b6d1);return _0x59b6d1;},ie=(_0x1ba509,_0x13ece9)=>(_0x3cff9d,_0xb9b336)=>_0x13ece9(_0x3cff9d,_0xb9b336,_0x1ba509);let x=class extends a[_0x26c91b(0x31f)]{constructor(_0x5dd9ca,_0xe51cdb,_0x4cc998){const _0x8f5c6e=_0x26c91b;super(),h(this,_0x8f5c6e(0x281),new Map()),h(this,_0x8f5c6e(0x291),new d[(_0x8f5c6e(0x2f5))]()),(this['_univerInstanceService']=_0x5dd9ca,this[_0x8f5c6e(0x325)]=_0xe51cdb,this[_0x8f5c6e(0x2be)]=_0x4cc998,this['_init']());}[_0x26c91b(0x2c0)](){const _0x22f32f=_0x26c91b;super[_0x22f32f(0x2c0)](),this[_0x22f32f(0x291)][_0x22f32f(0x22a)](),this[_0x22f32f(0x281)][_0x22f32f(0x2b2)](_0x493456=>_0x493456[_0x22f32f(0x2c0)]());}[_0x26c91b(0x187)](_0x3fcb31){const _0x236b03=_0x26c91b;return this[_0x236b03(0x281)][_0x236b03(0x275)](_0x3fcb31)?this[_0x236b03(0x281)]['get'](_0x3fcb31)[_0x236b03(0x168)]:this[_0x236b03(0x291)][_0x236b03(0x15c)](d[_0x236b03(0x392)](_0x3549a3=>_0x3549a3[_0x236b03(0x21b)]===_0x3fcb31),d[_0x236b03(0x198)](_0x2b42e3=>_0x2b42e3[_0x236b03(0x168)]));}[_0x26c91b(0x1d9)](){const _0x4ac63f=_0x26c91b;this[_0x4ac63f(0x272)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x4ac63f(0x192)])[_0x4ac63f(0x15c)](d[_0x4ac63f(0x10e)](this[_0x4ac63f(0x2d4)]))['subscribe'](async _0x5b1eb9=>{const _0x2c1081=_0x4ac63f,_0x12845d=_0x5b1eb9[_0x2c1081(0x10c)](),_0x407d36=await this[_0x2c1081(0x106)](_0x12845d);this[_0x2c1081(0x291)][_0x2c1081(0x2d2)](_0x407d36),this[_0x2c1081(0x281)]['set'](_0x12845d,_0x407d36);}),this[_0x4ac63f(0x272)]['getTypeOfUnitAdded$'](a[_0x4ac63f(0x1ff)][_0x4ac63f(0x270)])['pipe'](d[_0x4ac63f(0x10e)](this['dispose$']))[_0x4ac63f(0x15c)](d[_0x4ac63f(0x392)](_0x2199af=>!_0x2199af[_0x4ac63f(0x10c)]()[_0x4ac63f(0x1a7)]('__')))[_0x4ac63f(0x257)](async _0x3b858a=>{const _0x258415=_0x4ac63f,_0x5608b2=_0x3b858a['getUnitId'](),_0x3a5898=await this[_0x258415(0x11b)](_0x5608b2);this[_0x258415(0x291)]['next'](_0x3a5898),this['_entities'][_0x258415(0x305)](_0x5608b2,_0x3a5898);}),d[_0x4ac63f(0x248)](this[_0x4ac63f(0x272)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x4ac63f(0x270)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x4ac63f(0x1ff)][_0x4ac63f(0x192)]))['pipe'](d[_0x4ac63f(0x10e)](this[_0x4ac63f(0x2d4)]))[_0x4ac63f(0x257)](_0x5b41d3=>{const _0x28c5dd=_0x4ac63f,_0x5be322=_0x5b41d3['getUnitId'](),_0x3ae3b9=this[_0x28c5dd(0x281)][_0x28c5dd(0x141)](_0x5be322);_0x3ae3b9&&(_0x3ae3b9[_0x28c5dd(0x2c0)](),this[_0x28c5dd(0x281)][_0x28c5dd(0x186)](_0x5be322));});}async[_0x26c91b(0x106)](_0x54947f){const _0x13ec04=_0x26c91b,_0x19011f=await this[_0x13ec04(0x2be)]['requireSession'](_0x54947f),_0x56184c=this[_0x13ec04(0x325)][_0x13ec04(0x24f)](Se,_0x54947f,_0x19011f);return _0x56184c['init'](),_0x56184c;}async['_startDocCollabCursor'](_0x259b1e){const _0x2b68f4=_0x26c91b,_0x51e17b=await this[_0x2b68f4(0x2be)][_0x2b68f4(0x34b)](_0x259b1e),_0x18bb69=this[_0x2b68f4(0x325)][_0x2b68f4(0x24f)](fe,_0x259b1e,_0x51e17b);return _0x18bb69[_0x2b68f4(0x324)](),_0x18bb69;}};x=ct([ie(0x0,a[_0x26c91b(0x1f2)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x26c91b(0x357)](u[_0x26c91b(0x2ef)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x16f311,_0x3cce0b){const _0x28efff=_0x26c91b;let {radius:_0x5a3e56,width:_0xa0e57f,height:_0x464760}=_0x3cce0b;_0x5a3e56=_0x5a3e56!=null?_0x5a3e56:0x0,_0xa0e57f=_0xa0e57f!=null?_0xa0e57f:0x1e,_0x464760=_0x464760!=null?_0x464760:0x1e;let _0x578f6e=0x0,_0x3c41a5=0x0,_0x42903b=0x0;_0x578f6e=_0x3c41a5=_0x42903b=Math[_0x28efff(0x1eb)](_0x5a3e56,_0xa0e57f/0x2,_0x464760/0x2),_0x16f311['beginPath'](),_0x16f311['moveTo'](_0x578f6e,0x0),_0x16f311[_0x28efff(0x249)](_0xa0e57f-_0x3c41a5,0x0),_0x16f311['arc'](_0xa0e57f-_0x3c41a5,_0x3c41a5,_0x3c41a5,Math['PI']*0x3/0x2,0x0,!0x1),_0x16f311['lineTo'](_0xa0e57f,_0x464760-_0x42903b),_0x16f311['arc'](_0xa0e57f-_0x42903b,_0x464760-_0x42903b,_0x42903b,0x0,Math['PI']/0x2,!0x1),_0x16f311[_0x28efff(0x249)](0x0,_0x464760),_0x16f311['lineTo'](0x0,_0x578f6e),_0x16f311['arc'](_0x578f6e,_0x578f6e,_0x578f6e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x16f311[_0x28efff(0x1e1)](),_0x3cce0b[_0x28efff(0x2c5)]&&(_0x16f311[_0x28efff(0x118)](),_0x16f311[_0x28efff(0x25a)]=_0x3cce0b[_0x28efff(0x2c5)],_0x3cce0b[_0x28efff(0x2fd)]===_0x28efff(0x25e)?_0x16f311[_0x28efff(0x2c5)](_0x28efff(0x25e)):_0x16f311[_0x28efff(0x2c5)](),_0x16f311[_0x28efff(0x172)]());}class ee extends p[_0x26c91b(0x190)]{constructor(_0x327178,_0x5f1025){const _0xa1a5a3=_0x26c91b;super(_0x327178,_0x5f1025),h(this,_0xa1a5a3(0x389)),h(this,_0xa1a5a3(0x114)),(this[_0xa1a5a3(0x389)]=_0x5f1025==null?void 0x0:_0x5f1025[_0xa1a5a3(0x389)],this[_0xa1a5a3(0x114)]=_0x5f1025==null?void 0x0:_0x5f1025['text']);}static['drawWith'](_0x28ec02,_0x578e46){const _0x1599c8=_0x26c91b,{text:_0x34e9aa,color:_0x123d61}=_0x578e46;_0x28ec02[_0x1599c8(0x118)](),_0x28ec02['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1ad622=_0x28ec02[_0x1599c8(0x2c2)](_0x34e9aa)[_0x1599c8(0x38b)],_0x2f091d=Math['min'](_0x1ad622+0x2*ne,Re);_t(_0x28ec02,{'height':q,'radius':0x4,'width':_0x2f091d,'fill':_0x123d61}),_0x28ec02[_0x1599c8(0x25a)]='#FFF';const _0x365cdd=ne,_0x521b3b=q-lt,_0x17961e=Re-0x2*ne;if(_0x1ad622>_0x17961e){let _0x14a095='',_0x7dcd89=0x0;for(const _0x423fa8 of _0x34e9aa){const _0x186798=_0x28ec02[_0x1599c8(0x2c2)](_0x423fa8)['width'];if(_0x7dcd89+_0x186798<=_0x17961e-_0x28ec02[_0x1599c8(0x2c2)](_0x1599c8(0x286))['width'])_0x14a095+=_0x423fa8,_0x7dcd89+=_0x186798;else{_0x14a095+=_0x1599c8(0x286);break;}}_0x28ec02['fillText'](_0x14a095,_0x365cdd,_0x521b3b);}else _0x28ec02[_0x1599c8(0x251)](_0x34e9aa,_0x365cdd,_0x521b3b);_0x28ec02['restore']();}['_draw'](_0x5e14b1){const _0x59fe44=_0x26c91b;ee[_0x59fe44(0x205)](_0x5e14b1,this);}}const re=_0x26c91b(0x142),ht=_0x26c91b(0x1a4),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x26c91b(0x296);class De{constructor(_0x35693c,_0x5be3b6,_0x38f059,_0x5b2b28){const _0x3dfbfa=_0x26c91b;h(this,_0x3dfbfa(0x1b7),[]),h(this,'_anchor',null),h(this,_0x3dfbfa(0x1ab),null),h(this,_0x3dfbfa(0x260),null),h(this,_0x3dfbfa(0x127),null),h(this,'_eventUnsubscribe',null),(this['_cursor']=_0x35693c,this['_scene']=_0x5be3b6,this['_docSkeleton']=_0x38f059,this[_0x3dfbfa(0x225)]=_0x5b2b28,this[_0x3dfbfa(0x160)]());}set[_0x26c91b(0x162)](_0x333599){const _0x78e181=_0x26c91b;_0x333599?(this['_anchorDot']&&this['_anchorDot'][_0x78e181(0x395)](),this[_0x78e181(0x1ab)]&&this[_0x78e181(0x1ab)][_0x78e181(0x255)]()):(this[_0x78e181(0x260)]&&this[_0x78e181(0x260)][_0x78e181(0x255)](),this[_0x78e181(0x1ab)]&&this[_0x78e181(0x1ab)][_0x78e181(0x395)]());}[_0x26c91b(0x2c0)](){const _0x46dda0=_0x26c91b;for(const _0x42663c of this['_shapes'])_0x42663c[_0x46dda0(0x2c0)]();this[_0x46dda0(0x1ab)]&&this[_0x46dda0(0x1ab)][_0x46dda0(0x2c0)](),this['_anchorDot']&&this['_anchorDot'][_0x46dda0(0x2c0)](),this[_0x46dda0(0x30a)]&&this[_0x46dda0(0x30a)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x26c91b(0x160)](){const _0x5a7409=_0x26c91b;var _0x28dcac;const {_docSkeleton:_0x262a51,_document:_0x49551d}=this,{color:_0x2cdb98,name:_0x4691e5,ranges:_0x2fd885}=this[_0x5a7409(0x214)],_0x3ba1b9=_0x49551d[_0x5a7409(0x1d1)](),{docsLeft:_0x2a9db0,docsTop:_0x358046}=_0x3ba1b9,_0x1c1ee6=new b[(_0x5a7409(0x10b))](_0x3ba1b9,_0x262a51);for(const {startOffset:_0xa44b6d,endOffset:_0x125704,rangeType:_0x1d7066,segmentId:_0x58ddcd,segmentPage:_0x344328,collapsed:_0x3dfcc8,isActive:_0x515245}of _0x2fd885){const _0x1e1903=_0x262a51[_0x5a7409(0x116)](_0xa44b6d,!0x0,_0x58ddcd,_0x344328);let _0x22d4a5=_0x262a51['findNodePositionByCharIndex'](_0x125704,!0x0,_0x58ddcd,_0x344328);if(_0x22d4a5==null&&(_0x22d4a5=_0x262a51[_0x5a7409(0x116)](_0x125704-0x1,!0x1,_0x58ddcd,_0x344328)),_0x515245){const {contentBoxPointGroup:_0x5f12d7}=_0x1c1ee6[_0x5a7409(0x138)](_0x22d4a5,_0x22d4a5);if(_0x5f12d7[_0x5a7409(0x362)]===0x0)continue;this[_0x5a7409(0x322)](_0x2cdb98,_0x5f12d7,_0x2a9db0,_0x358046,_0x4691e5),this[_0x5a7409(0x213)]=this[_0x5a7409(0x35c)]();}if(_0x1e1903&&_0x22d4a5){if(_0x1d7066===a[_0x5a7409(0x302)]['RECT']){const _0x5b9201=new b[(_0x5a7409(0x2a7))](_0x3ba1b9,_0x262a51),{pointGroup:_0x2482b2}=(_0x28dcac=_0x5b9201[_0x5a7409(0x138)](_0x1e1903,_0x22d4a5))!=null?_0x28dcac:{};if(_0x2482b2==null||_0x2482b2[_0x5a7409(0x362)]===0x0)continue;this[_0x5a7409(0x29a)](_0x2cdb98,_0x2482b2,_0x2a9db0,_0x358046);}else{if(!_0x3dfcc8){const {borderBoxPointGroup:_0x2347d0}=_0x1c1ee6[_0x5a7409(0x138)](_0x1e1903,_0x22d4a5);if(_0x2347d0[_0x5a7409(0x362)]===0x0)continue;this[_0x5a7409(0x2ed)](_0x2cdb98,_0x2347d0,_0x2a9db0,_0x358046);}}}}}[_0x26c91b(0x322)](_0x5424d3,_0x47630f,_0x26ca5c,_0x4fb48c,_0x165551){const _0x56b3d0=_0x26c91b,_0x535a21=this['_getAnchorBounding'](_0x47630f),{left:_0x3a1a8d,top:_0x4ea90d,height:_0x2f83f2}=_0x535a21,_0x217e10=this[_0x56b3d0(0x288)](),_0x2aa9e2=ft/_0x217e10,_0x3da84c=new p[(_0x56b3d0(0x377))](re+a[_0x56b3d0(0x1ec)][_0x56b3d0(0x1ae)](k),{'left':_0x3a1a8d+_0x26ca5c-_0x2aa9e2,'top':_0x4ea90d+_0x4fb48c,'height':_0x2f83f2,'width':dt,'fill':_0x5424d3||p[_0x56b3d0(0x1cc)](a[_0x56b3d0(0x15f)]['black'],0x0),'strokeWidth':_0x2aa9e2,'stroke':St,'evented':!0x0});this[_0x56b3d0(0x30a)]=_0x3da84c,this[_0x56b3d0(0x17b)][_0x56b3d0(0x1bf)](_0x3da84c,b['TEXT_RANGE_LAYER_INDEX']);const _0x5ecc77=new p[(_0x56b3d0(0x377))](re+a[_0x56b3d0(0x1ec)][_0x56b3d0(0x1ae)](k),{'left':_0x3a1a8d+_0x26ca5c-_0x2aa9e2,'top':_0x4ea90d+_0x4fb48c-oe/0x2,'height':oe,'width':oe,'fill':_0x5424d3||p[_0x56b3d0(0x1cc)](a[_0x56b3d0(0x15f)][_0x56b3d0(0x1ac)],0x0),'strokeWidth':0x0,'stroke':_0x5424d3||p['getColor'](a[_0x56b3d0(0x15f)][_0x56b3d0(0x1ac)],0x0),'evented':!0x1});this[_0x56b3d0(0x260)]=_0x5ecc77,this[_0x56b3d0(0x17b)][_0x56b3d0(0x1bf)](_0x5ecc77,b[_0x56b3d0(0x126)]);const _0x9b8192=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0x3a1a8d+_0x26ca5c-_0x2aa9e2,'top':_0x4ea90d+_0x4fb48c-q,'text':_0x165551,'color':_0x5424d3});this[_0x56b3d0(0x1ab)]=_0x9b8192,this['_scene']['addObject'](_0x9b8192,b['TEXT_RANGE_LAYER_INDEX']),this[_0x56b3d0(0x162)]=!0x1;}['_handleHover'](){const _0x59c954=_0x26c91b,_0x25ae3e=this['_anchor'][_0x59c954(0x37d)]['subscribeEvent'](()=>{const _0x47684c=_0x59c954;this[_0x47684c(0x162)]=!0x0;}),_0x473a5f=this[_0x59c954(0x30a)][_0x59c954(0x375)][_0x59c954(0x283)](()=>{const _0x2a7583=_0x59c954;this[_0x2a7583(0x127)]&&clearTimeout(this[_0x2a7583(0x127)]),this[_0x2a7583(0x127)]=setTimeout(()=>{const _0x12fce2=_0x2a7583;this[_0x12fce2(0x162)]=!0x1;},0x7d0);});return()=>{const _0x3c9596=_0x59c954;_0x25ae3e[_0x3c9596(0x26c)](),_0x473a5f[_0x3c9596(0x26c)]();};}[_0x26c91b(0x2ed)](_0x4dc9c7,_0x143e8e,_0x14dcce,_0x52fe06){const _0x2c46eb=_0x26c91b,_0x127809=new a[(_0x2c46eb(0x30c))](_0x4dc9c7)[_0x2c46eb(0x34c)](0.2)[_0x2c46eb(0x391)](),_0x3b2465=new p[(_0x2c46eb(0x156))](ht+a[_0x2c46eb(0x1ec)][_0x2c46eb(0x1ae)](k),{'pointsGroup':_0x143e8e,'fill':_0x127809||p[_0x2c46eb(0x1cc)](a['COLORS'][_0x2c46eb(0x1ac)],0.2),'left':_0x14dcce,'top':_0x52fe06,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c46eb(0x1b7)][_0x2c46eb(0x355)](_0x3b2465),this[_0x2c46eb(0x17b)][_0x2c46eb(0x1bf)](_0x3b2465,b[_0x2c46eb(0x126)]);}['_drawRectRange'](_0x5d3877,_0x5c8dbe,_0x283e31,_0x2e5c2a){const _0x4ae2b8=_0x26c91b,_0xbb48f7=new a['ColorKit'](_0x5d3877)[_0x4ae2b8(0x34c)](0.2)[_0x4ae2b8(0x391)](),_0x4586e3=new p[(_0x4ae2b8(0x156))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x5c8dbe,'fill':_0xbb48f7||p[_0x4ae2b8(0x1cc)](a[_0x4ae2b8(0x15f)][_0x4ae2b8(0x1ac)],0.2),'left':_0x283e31,'top':_0x2e5c2a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ae2b8(0x1b7)]['push'](_0x4586e3),this[_0x4ae2b8(0x17b)]['addObject'](_0x4586e3,b[_0x4ae2b8(0x126)]);}[_0x26c91b(0x21c)](_0x1eaa2b){const _0x507060=_0x1eaa2b[0x0],_0x56ce8c=_0x507060[0x0],_0x17b5a3=_0x507060[0x2],{x:_0x11c4cd,y:_0x1ec47b}=_0x56ce8c,{x:_0x5aa858,y:_0x2399d4}=_0x17b5a3;return{'left':_0x11c4cd,'top':_0x1ec47b,'width':_0x5aa858-_0x11c4cd,'height':_0x2399d4-_0x1ec47b};}[_0x26c91b(0x288)](){const _0x279acd=_0x26c91b,{scaleX:_0x67d630,scaleY:_0x2f58fa}=this[_0x279acd(0x17b)][_0x279acd(0x108)]();return Math['max'](_0x67d630,_0x2f58fa);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0xaa139f,_0x38c70e,_0x4a564a,_0x1db49b)=>{const _0x22c20d=_0x26c91b;for(var _0x290d8a=_0x1db49b>0x1?void 0x0:_0x1db49b?It(_0x38c70e,_0x4a564a):_0x38c70e,_0x41ee1d=_0xaa139f[_0x22c20d(0x362)]-0x1,_0x5b7a3c;_0x41ee1d>=0x0;_0x41ee1d--)(_0x5b7a3c=_0xaa139f[_0x41ee1d])&&(_0x290d8a=_0x5b7a3c(_0x290d8a)||_0x290d8a);return _0x290d8a;},Y=(_0x5ab3fe,_0x2d2f28)=>(_0x4e4c70,_0x14bfac)=>_0x2d2f28(_0x4e4c70,_0x14bfac,_0x5ab3fe);let Ie=class extends a[_0x26c91b(0x31f)]{constructor(_0x37c40c,_0x459f29,_0x32a95b,_0x2bdef0,_0x4b6972){const _0x40bea4=_0x26c91b;super(),h(this,'_cursorShapes',[]),h(this,_0x40bea4(0x326),[]),(this['_context']=_0x37c40c,this['_docSkeletonManagerService']=_0x459f29,this[_0x40bea4(0x2ec)]=_0x32a95b,this[_0x40bea4(0x164)]=_0x2bdef0,this[_0x40bea4(0x185)]=_0x4b6972,this[_0x40bea4(0x1d9)]());}[_0x26c91b(0x1d9)](){const _0x6e99b4=_0x26c91b,_0x1d19af=this[_0x6e99b4(0x1c2)][_0x6e99b4(0x221)],_0x18dd3f=this[_0x6e99b4(0x345)];this[_0x6e99b4(0x1dc)](d['combineLatest']([this[_0x6e99b4(0x2ec)]['getCollabCursors$'](_0x1d19af),this[_0x6e99b4(0x185)]['currentTheme$']])['pipe']($[_0x6e99b4(0x1d5)](([_0x46752f,_0x149bdf])=>({'skeleton':_0x18dd3f[_0x6e99b4(0x107)](),'cursors':[..._0x46752f[_0x6e99b4(0x2c7)]()][_0x6e99b4(0x1f0)](_0x21858d=>({..._0x21858d,'color':_0x149bdf[_0x21858d[_0x6e99b4(0x389)]]}))})))[_0x6e99b4(0x257)](_0x3bb025=>{const _0x30b5fc=_0x6e99b4;if(this['_removeCollabCursors'](),_0x3bb025){const {skeleton:_0x59845d,cursors:_0x41e767}=_0x3bb025;this[_0x30b5fc(0x173)](_0x59845d,_0x41e767);}})),this[_0x6e99b4(0x32d)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x251055,_0x40c7c1){const _0x35e532=_0x26c91b,{scene:_0x1fa635,mainComponent:_0x2d5031}=this['_context'],_0x515416=_0x40c7c1['map'](_0x3c8072=>new De(_0x3c8072,_0x1fa635,_0x251055,_0x2d5031));this['_cursorShapes']=_0x515416,this[_0x35e532(0x326)]=_0x40c7c1;}[_0x26c91b(0x307)](){const _0x5c7150=_0x26c91b;this[_0x5c7150(0x16a)]();const {scene:_0x5c3fc0,mainComponent:_0x216d90}=this[_0x5c7150(0x1c2)],_0x484679=this['_docSkeletonManagerService']['getSkeleton'](),_0xfef601=this['_cursors'][_0x5c7150(0x1d5)](_0x44dbc3=>new De(_0x44dbc3,_0x5c3fc0,_0x484679,_0x216d90));this[_0x5c7150(0x34a)]=_0xfef601;}['_removeCollabCursors'](){const _0x201645=_0x26c91b;this[_0x201645(0x34a)][_0x201645(0x2b2)](_0x73042b=>_0x73042b['dispose']()),this[_0x201645(0x34a)]=[];}[_0x26c91b(0x304)](){const _0x29aff5=_0x26c91b,_0x516288=[b[_0x29aff5(0x364)]['id']];this['disposeWithMe'](this[_0x29aff5(0x164)][_0x29aff5(0x2ae)](_0x5dfcf7=>{const _0xda1a0=_0x29aff5;_0x516288[_0xda1a0(0x1fd)](_0x5dfcf7['id'])&&_0x5dfcf7[_0xda1a0(0x181)][_0xda1a0(0x221)]===this[_0xda1a0(0x1c2)][_0xda1a0(0x221)]&&this[_0xda1a0(0x307)]();}));}[_0x26c91b(0x32d)](){const _0xbda595=_0x26c91b;this[_0xbda595(0x1dc)](a[_0xbda595(0x218)](this['_context'][_0xbda595(0x372)][_0xbda595(0x1f1)])['pipe']($[_0xbda595(0x392)](_0x4b3c0e=>_0x4b3c0e[_0xbda595(0x277)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0xbda595(0x31a)]),$[_0xbda595(0x113)](0x10))['subscribe'](()=>{const _0x22eddd=_0xbda595;this[_0x22eddd(0x307)]();}));}};Ie=vt([Y(0x1,a[_0x26c91b(0x357)](W[_0x26c91b(0x149)])),Y(0x2,a[_0x26c91b(0x357)](x)),Y(0x3,a[_0x26c91b(0x252)]),Y(0x4,a[_0x26c91b(0x357)](a[_0x26c91b(0x223)]))],Ie);function _0x4840(){const _0x22bd96=['collabStatus.offline','AWAITING_WITH_PENDING','saveTaskMap','_assignedColors','idSuffix','UniverCollaborationClientUIPlugin','merge','lineTo','none','unshift','isActive','memberID','_localCacheService','createInstance','getSheetObject','fillText','ICommandService','defs','transformMutationsWithChangeset','show','YUUMI_RATE_OVER_LIMIT','subscribe','xlink:href','IUIPartsService','fillStyle','USERS_LEAVE','ACTIVE_UNIT_EVENT_CHANNEL','useDependency','evenodd','sessionStatus$','_anchorDot','SetWorksheetActivateCommand','createIdentifier','@univerjs/design','@univerjs/network','cursorInfo','column','SNAPSHOT_INVALID_SNAPSHOT','event$','newValue','INVALID_ARGUMENT','LOGIN_FAILED','unsubscribe','DisposableCollection','addObjects','toString','UNIVER_DOC','Module','_univerInstanceService','SheetSkeletonManagerService','_send','has','UNAUTHENTICATED','type','collab-client.tooltip.reconnect','MOBILE_HAS_BEEN_BOUND','_initStatusComponent','getRenderById','_setupBeforeClosingHandler','loadOfflineData','_backgroundColor','sheetId','exhaustSavingTask','_entities','[CollaborationDataLoaderController]','subscribeEvent','handleInsertRangeMoveDown','2956VsHClY','...','M0\x200H16V16H0z','_getScale','MUTATION','selection','NO_OTHER_CLIENTS_EDITING','getCoordByCell','CollaborationEvent','_initStatusListener','_transformPreviousActiveRange','_id','_entityInit$','wsSessionTicketUrl','icon','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_color','rgba(255,\x20255,\x20255,\x200.01)','1em','substring','uni.network.url-service','_drawRectRange','transformMutation','ALREADY_EXISTS','executionId','getCellPositionByOffset','concat','getCurrentUnitForType','_initEntityListener','_transformUndoRedoStack','Rectangle','sessionTicket','RemoveRowCommandId','imageSourceType','NodePositionConvertToRectRange','ticket','getActiveSheet','_setupSubUnitSync','handleDeleteRangeMoveUp','_handleLeaveEvent','_roomMembers$','onCommandExecuted','on-line-single_clip0_910_349','univer-text-red-500','defIds','forEach','/run/','getCollabEntity$','m1Prime','CollaborationUIEventId','transformSelections','IMessageService','_collaborationController','collabStatus.fetchMiss','_heartbeatTimer','getValue','_cachedData','_collabSessionService','assignAColorForMemberID','dispose','currentColor','measureText','YUUMI_NO_CUBOID_FOR_QUESTION','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','fill','UPDATE_CURSOR','values','getCurrentSelections','_saveCache','all','_getSheetObject','@univerjs/engine-render','@univerjs-pro/collaboration','INVITE_CODE_REQUIRED','top','transformByState','location','next','with','dispose$','debounce','toDisposable','SessionStatus','_lastPointer','mask','OFFLINE','ISnapshotServerService','UNDEFINED','VIEW_MAIN','_docTransformSelectionsService','YUUMI_SUBSCRIPTION_NOT_FOUND','indexOf','children','assign','getMemberID','DesktopCollaborationStatusDisplayController','collaboration-client-ui.config','_toggleOnline','activeSheet$','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','isTransformMutationsWithChangesetSuccess','red300','_registerDependencies','_collabCursorController','_drawTextRange','useObservable','CollaborationSessionService','collabStatus.synced','storage','IImageIoService','createElement','labelPosition','Subject','PENDING','6536520pgcxcb','handleInsertRangeMoveRight','_selfUnitIDs','off-line-single','function','row','fillRule','bottom','INotificationService','pushState','executeCommand','DOC_RANGE_TYPE','PY_RUNTIME_SCRIPT_ERROR','_initCommandExecutedListener','set','Plugin','_refreshCollabCursors','collaboration.closeRoom','@univerjs/rpc','_anchor','getOwnPropertyDescriptor','ColorKit','_imageIoService','_registerRenderDependencies','useCallback','selections','toStringTag','addHandlerCallback','@univerjs-pro/collaboration-client','random','OnLineSingle','CollaborationDataLoaderController','1940214BfuSBS','NOT_FOUND','DocCollaborationEntity','resize','rxjs/operators','LocaleService','_initEvent','_colorAssignService','RxDisposable','BrowserCollaborationSocketService','getStateCache','_drawAnchor','CONFLICT','init','_injector','_cursors','currentTheme$','_handleHeartbeatEvent','addEventListener','syncEditingCollabCursor','transform','handleMoveRange','_initResize','roomMembers$','IRenderManagerService','4689454mYTDUl','isArray','IConfigService','Error','_config','getSheetId','override','registerRefRange','asObservable','_cursorInfo$','_docTransformIMECacheService','error','InsertRangeMoveDownCommandId','roomMembers','onRendered','WECHAT_HAS_BEEN_BOUND','getLocalCacheKey','YUUMI_ASYNCIO_CANCELLED','createSocket','from','_toggleOffline','_docSkeletonManagerService','SheetCollabCursorShape','_disabled','endRow','updateOfflineData','_cursorShapes','requireSession','setAlpha','split','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','url(#off-line-single_clip0_910_343)','_beforeCloseService','handleIRemoveRow','hasOwnProperty','RemoteUniscriptService','@univerjs/docs-ui','push','_session','Inject','handleDeleteRangeMoveLeft','INVITE_CODE_HAS_BEEN_UES','_draw','CollaborationController','_handleHover','purple300','ILocalStorageService','docStateChange$','session.connection-failed','_uiPartsService','length','CLOSE_ROOM','SetDocZoomRatioOperation','handleIRemoveCol','_createSocketURL','clearInterval','data','_status$','_localStorageService','_unitStatus','_instanceService','Vector2','extend','current','996906LeLCxC','backgroundColor','engine','_doCreateSocket','subUnitId','onPointerLeave$','LICENSE_EXPORT_SIZE_EXCEEDED','Rect','HTTPService','INVALID_INVITE_CODE','getCurrentRevOfUnit','MemberService','getVpScrollXYInfoByPosToVp','onPointerEnter$','_colorIndex','deserializeRangeWithSheet','LOCAL_CACHE_INTERVAL','mutations','TOO_MANY_REQUESTS','removeParam','disposeUnit','_unitOnClients','ranges','eventID','getMember','color','WebURLService','width','892vFcpcF','textRanges','onMouseMove','clearTimeout','_getMergeRange','toRgbString','filter','getRelativeToViewportCoord','isTransformMutationFailure','hide','_logService','_getSaveTimeout','_startSheetCollabCursor','getSkeleton','getAncestorScale','4137264SONQQM','_removeClearOtherTimer','NodePositionConvertToCursor','getUnitId','univer-flex\x20univer-mr-2\x20univer-text-[20px]','takeUntil','enableLocalCache','fromEvent','disableLocalCache','CollaborationStatus','throttleTime','text','RefRangeService','findNodePositionByCharIndex','@univerjs/core','save','_clearOtherTimers','Injector','_startDocCollabCursor','_renderManagerService','combineLatest','currentSkeleton$','_saveTaskMap','PERMISSION_DENIED','@univerjs/docs','div','@univerjs/ui','permission.content','body','TEXT_RANGE_LAYER_INDEX','_hideTimer','redoState','_collaborationUIEventService','Optional','_onCursorUpdate','20enbeUv','IDocClipboardService','attrs','rxjs','SheetsSelectionsService','onStarting','some','20UBRrcT','round','className','stringify','registerComponent','getRangePointData','RemoveColCommandId','entries','APPLY_NON_SEQUENTIAL_REVISION','defineProperty','Disposable','_urlService','triggerDblclick','_messageService','get','collab-text-anchor-','_onCursorDelete','startColumn','loadUnit','_sheetSkeletonManagerService','_range','ITransformService','DocSkeletonManagerService','serializeRangeWithSheet','subunit','UnitStatus','INVITE_CODE_ALREADY_BOUND','height','Failed','SOCKET_FAILED','string','range','doc.mutation.rich-text-editing','11595913OsbJTU','_docSyncEditingCollabCursorService','RegularPolygon','runOnServer','INTERNAL_ERROR','_docClipboardService','OffLineSingle','SetSelectionsOperation','pipe','BehaviorSubject','setUndoRedoMutationParamsCache','COLORS','_render','_transformHistoryAndStateStack','_hover','reconnect','_commandService','gold400','size','debug','cursorInfo$','registerRenderModule','_removeCollabCursors','InsertColCommandId','react/jsx-runtime','_hovered','#fff','_docStateChangeManagerService','_handleEvent','EffectRefRangId','restore','_updateCollabCursors','_notificationService','tag','replace','setShapeProps','connectInjector','DeleteRangeMoveUpCommandId','urlChange$','_scene','forwardRef','DocSelectionManagerService','source','_httpService','name','params','RECT','replaceState','getUnitStatus$','_themeService','delete','getCollabCursors$','actions','getUniverSheetInstance','InsertRangeMoveRightCommandId','_scheduleHeartbeat','_handleJoinEvent','getSheetBySheetId','m2Prime','setTimeout','Shape','pluginName','UNIVER_SHEET','registerDependencies','mapTo','RevisionService','_dataLoaderService','url(#$1','switchMap','sheetID','getOwnPropertySymbols','15EOPyqH','CollaborationSocketService','distinctUntilChanged','SHEET_VIEWPORT_KEY','_transformService','Tooltip','prototype','YUUMI_URL_COL_OUT_OF_RANGE','@univerjs/engine-formula','collab-text-range-','getConfig','getItem','startsWith','url(#on-line-single_clip0_910_349)','getFocusedUnit','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_textBubble','black','COMPLETION_FINISHED','generateRandomId','@univerjs/sheets','history','_scheduleClearOtherTimer','then','OTHER_CLIENTS_EDITING','unload','MessageType','EMAIL_HAS_BEEN_BOUND','_shapes','makeDirty','startRow','FromArray','CollaborationUIEventService','key','IURLService','collaboration.single-unit.warning','addObject','getCurrent','getUndoRedoMutationParamsCache','_context','replaceDocRanges','_labelPosition','popstate','registerBeforeClose','_online','debounceTime','setConfig','APPLY_REVISION_CONFILICT','NOT_COLLAB','getColor','clipPath','ENSURE_SNAPSHOT_EXECUTION','verdancy600','_updateLocalCursor','getOffsetConfig','useRef','send','add','map','call','session.will-retry','setParam','_init','trim','origin','disposeWithMe','_syncEditingCollabCursorService','_collabCursorState$','getParam','href','closePath','_revisionService','UniverIcon','0\x200\x2017\x2016','APPLY_DUPLICATED','_name','apply','Unknown\x20user','univer-text-green-500','transformRemoteChangeset','min','Tools','DependentOn','_memberService','AWAITING','flatMap','onTransformChange$','IUniverInstanceService','_initDependencies','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','_ensureSubject','HEADER_MENU','_updateSubUnitFromURLParams','displayName','_updateURLWithCurrentState','SetTextSelectionsOperation','setStateCache','includes','_docTransformStateCacheService','UniverInstanceType','mergeOverrideWithDependencies','univerjs-icon\x20univerjs-icon-','use','DocStateChangeManagerService','CommandType','drawWith','search','saveOfflineData','symbol','WebBrowserSingleActiveUnitService','getDocRanges','react','ILocalCacheService','propertyIsEnumerable','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','IRemoteInstanceService','jsxs','LOCAL_CACHE_INTERVAL_KEY','CHANGESET_REVISION_CONFILICT','_eventUnsubscribe','_cursor','code','post','Warning','fromEventSubject','transformStateCache','LICENSE_DISTRO_REJECTED','unitID','_getAnchorBounding','WebSocketService','_scheduleSaving','setItem','UNRECOGNIZED','unitId','colorChannel1','ThemeService','searchParams','_document','DocIMEInputManagerService','USER_NOT_INVITED_CODE','getActiveRange','_onRefRangeChange','complete','deepClone','saveImage','svg','SNAPSHOT_HAS_BEEN_REMOVED','_localeService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','JOIN_ROOM_FAILED','getUnhiddenWorksheets','setActiveRange','@univerjs/sheets-ui','LICENSE_MAX_UNITS_EXCEEDED','jsx','_refRangeService','ILogService','path','unit','TEXT','DeleteRangeMoveLeftCommandId','UniverCollaborationClientPlugin','YUUMI_UNABLE_LOAD_URL','shareReplay','collabCursorState$','_configService'];_0x4840=function(){return _0x22bd96;};return _0x4840();}const gt=0x1,mt=1.5;class we extends p[_0x26c91b(0x190)]{constructor(_0x2a183f,_0x5bf287){const _0x40cebb=_0x26c91b;super(_0x2a183f,_0x5bf287),h(this,'_color'),h(this,'_hovered',!0x1),h(this,_0x40cebb(0x147)),h(this,_0x40cebb(0x1e6),''),h(this,'_labelPosition',_0x40cebb(0x2cf)),h(this,_0x40cebb(0x27e)),(_0x5bf287&&this[_0x40cebb(0x177)](_0x5bf287),this[_0x40cebb(0x37d)][_0x40cebb(0x283)](()=>this[_0x40cebb(0x177)]({'hovered':!0x0})),this['onPointerLeave$'][_0x40cebb(0x283)](()=>this[_0x40cebb(0x177)]({'hovered':!0x1})));}['setShapeProps'](_0x529eef){const _0x198d4a=_0x26c91b;var _0x3d46ba,_0x4905b7,_0x52a5d3,_0x16a900,_0x24d201,_0x32b33e;this[_0x198d4a(0x295)]=(_0x3d46ba=_0x529eef[_0x198d4a(0x389)])!=null?_0x3d46ba:this[_0x198d4a(0x295)],this['_hovered']=(_0x4905b7=_0x529eef['hovered'])!=null?_0x4905b7:this[_0x198d4a(0x16d)],this[_0x198d4a(0x147)]=(_0x52a5d3=_0x529eef[_0x198d4a(0x152)])!=null?_0x52a5d3:this[_0x198d4a(0x147)],this[_0x198d4a(0x1e6)]=(_0x16a900=_0x529eef[_0x198d4a(0x180)])!=null?_0x16a900:this[_0x198d4a(0x1e6)],this[_0x198d4a(0x1c4)]=(_0x24d201=_0x529eef[_0x198d4a(0x2f4)])!=null?_0x24d201:this['_labelPosition'],this[_0x198d4a(0x27e)]=(_0x32b33e=_0x529eef[_0x198d4a(0x371)])!=null?_0x32b33e:this[_0x198d4a(0x27e)],this[_0x198d4a(0x2d0)]({'width':_0x529eef[_0x198d4a(0x38b)],'height':_0x529eef[_0x198d4a(0x14e)]});}['onMouseMove'](_0x12e4ac){const _0x1d423a=_0x26c91b,{row:_0x208cd2,column:_0x2a994f}=_0x12e4ac;if(_0x208cd2>=this[_0x1d423a(0x147)][_0x1d423a(0x1b9)]&&_0x208cd2<=this[_0x1d423a(0x147)][_0x1d423a(0x348)]&&_0x2a994f>=this[_0x1d423a(0x147)][_0x1d423a(0x144)]&&_0x2a994f<=this['_range']['endColumn']){this[_0x1d423a(0x177)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x26c91b(0x13f)](_0x4c256b){return!0x1;}[_0x26c91b(0x35a)](_0x2e3f62){const _0x3acdfe=_0x26c91b;p[_0x3acdfe(0x377)]['drawWith'](_0x2e3f62,{'width':this['width'],'height':this[_0x3acdfe(0x14e)],'strokeWidth':mt,'stroke':this[_0x3acdfe(0x295)],'evented':!0x1,'fill':this[_0x3acdfe(0x27e)]}),this[_0x3acdfe(0x16d)]&&(_0x2e3f62[_0x3acdfe(0x118)](),_0x2e3f62[_0x3acdfe(0x32b)](0x1,0x0,0x0,0x1,this[_0x3acdfe(0x38b)],this['_labelPosition']===_0x3acdfe(0x2fe)?0x0:-0x14),ee[_0x3acdfe(0x205)](_0x2e3f62,{'text':this[_0x3acdfe(0x1e6)],'color':this['_color']}),_0x2e3f62[_0x3acdfe(0x172)]());}}var Ct=Object[_0x26c91b(0x30b)],pt=(_0x1d2edb,_0xf49c07,_0x1c90b2,_0x35acd5)=>{const _0xa3f6d8=_0x26c91b;for(var _0x475c92=_0x35acd5>0x1?void 0x0:_0x35acd5?Ct(_0xf49c07,_0x1c90b2):_0xf49c07,_0x3c4909=_0x1d2edb[_0xa3f6d8(0x362)]-0x1,_0x40b606;_0x3c4909>=0x0;_0x3c4909--)(_0x40b606=_0x1d2edb[_0x3c4909])&&(_0x475c92=_0x40b606(_0x475c92)||_0x475c92);return _0x475c92;},ae=(_0xef6710,_0x3d1300)=>(_0x167db0,_0x3949ad)=>_0x3d1300(_0x167db0,_0x3949ad,_0xef6710);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x12090c,_0x40f574,_0x79a706,_0x235e8e){const _0x4bf6f1=_0x26c91b;super(),h(this,_0x4bf6f1(0x326),new Set()),h(this,_0x4bf6f1(0x2d8),null),(this[_0x4bf6f1(0x1c2)]=_0x12090c,this[_0x4bf6f1(0x146)]=_0x40f574,this[_0x4bf6f1(0x2ec)]=_0x79a706,this[_0x4bf6f1(0x185)]=_0x235e8e,this['_init']());}[_0x26c91b(0x1d9)](){const _0x536731=_0x26c91b;this[_0x536731(0x146)][_0x536731(0x11e)][_0x536731(0x15c)]($[_0x536731(0x10e)](this[_0x536731(0x2d4)]),$['switchMap'](_0x3d4d59=>{const _0x1e7510=_0x536731;if(_0x3d4d59){const _0x515631=_0x3d4d59[_0x1e7510(0x27f)];return d[_0x1e7510(0x11d)](this[_0x1e7510(0x2ec)][_0x1e7510(0x187)](this[_0x1e7510(0x1c2)][_0x1e7510(0x221)]),this[_0x1e7510(0x185)][_0x1e7510(0x327)])[_0x1e7510(0x15c)]($[_0x1e7510(0x1d5)](([_0x50c2b4,_0x583cb4])=>{const _0x1b0c2c=_0x1e7510,_0x270dea=new Map();return _0x50c2b4[_0x1b0c2c(0x2b2)]((_0x3eff69,_0x5891a1)=>{const _0x17979c=_0x1b0c2c;if(_0x3eff69[_0x17979c(0x199)]===_0x515631){const _0x146832={..._0x3eff69};_0x146832[_0x17979c(0x389)]=_0x583cb4[_0x3eff69['color']],_0x270dea[_0x17979c(0x305)](_0x5891a1,_0x146832);}}),{'skeleton':_0x3d4d59,'cursors':_0x270dea};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x536731(0x257)](({skeleton:_0x26f409,cursors:_0x563b89})=>{const _0x250160=_0x536731;this[_0x250160(0x16a)](),_0x26f409&&this['_updateCollabCursors'](_0x26f409,_0x563b89);}),this[_0x536731(0x146)]['currentSkeleton$'][_0x536731(0x257)](_0x578d82=>{const _0x207b64=_0x536731;if(_0x578d82==null)return;const {skeleton:_0x361942}=_0x578d82,{scene:_0x163801}=this[_0x207b64(0x1c2)];_0x163801['onPointerMove$'][_0x207b64(0x283)](a['debounce'](_0x25b09f=>{const _0x330c70=_0x207b64;var _0x188bc5,_0x303e0f;const {offsetX:_0xacb7d,offsetY:_0x576b2f}=_0x25b09f,{x:_0x533078,y:_0x3662ad}=_0x163801[_0x330c70(0x393)](p[_0x330c70(0x36d)]['FromArray']([_0xacb7d,_0x576b2f])),{scaleX:_0x532a78,scaleY:_0x123566}=_0x163801['getAncestorScale'](),_0x598c7b=_0x163801['getViewport'](p[_0x330c70(0x19e)][_0x330c70(0x2dd)]),_0x429d03=_0x163801[_0x330c70(0x37c)](p['Vector2'][_0x330c70(0x1ba)]([_0x533078,_0x3662ad]),_0x598c7b),_0x3a7d7c=_0x361942[_0x330c70(0x29e)](_0xacb7d,_0x576b2f,_0x532a78,_0x123566,_0x429d03);((_0x188bc5=this[_0x330c70(0x2d8)])==null?void 0x0:_0x188bc5['column'])===_0x3a7d7c[_0x330c70(0x266)]&&((_0x303e0f=this['_lastPointer'])==null?void 0x0:_0x303e0f[_0x330c70(0x2fc)])===_0x3a7d7c[_0x330c70(0x2fc)]||this[_0x330c70(0x326)][_0x330c70(0x2b2)](_0x5218bc=>{const _0x463cf6=_0x330c70;_0x5218bc[_0x463cf6(0x38e)](_0x3a7d7c);});},0x64));});}[_0x26c91b(0x173)](_0x1a4870,_0x177c20){const _0x2349f3=_0x26c91b;var _0x457144;const _0x184a59=(_0x457144=this['_sheetSkeletonManagerService'][_0x2349f3(0x1c0)]())==null?void 0x0:_0x457144['skeleton'];if(!_0x184a59)return;const _0x2b7c21=this['_getSheetObject']();if(!_0x2b7c21)return;this[_0x2349f3(0x326)]['forEach'](_0x167ea9=>{const _0x142a8d=_0x2349f3;_0x167ea9[_0x142a8d(0x1b8)]();});const {scene:_0xecd79a}=_0x2b7c21,_0x36ce18=Et(Array['from'](_0x177c20[_0x2349f3(0x2c7)]()))[_0x2349f3(0x1d5)](_0x3aef76=>{const _0x1153c6=_0x2349f3,{color:_0x4a4dc5,range:_0x480a25,name:_0x5a931f,selection:_0x142e31,sheetID:_0x201bbe}=_0x3aef76,{startColumn:_0x57e4d4,startRow:_0xe7aa3d,endColumn:_0x461a35,endRow:_0x257b3a}=_0x480a25,_0x13b880=X[_0x1153c6(0x28c)](_0xe7aa3d,_0x57e4d4,_0xecd79a,_0x184a59),_0x2a4a1d=X[_0x1153c6(0x28c)](_0x257b3a,_0x461a35,_0xecd79a,_0x184a59),{columnHeaderHeightAndMarginTop:_0x16e31d}=_0x184a59,{startX:_0x5e98a8,startY:_0x4c01d5}=_0x13b880,{endX:_0x297097,endY:_0x4b9707}=_0x2a4a1d,_0x29d80c=_0x297097-_0x5e98a8,_0xdf9cfd=_0x4b9707-_0x4c01d5,_0x2313ea={'labelPosition':_0x4c01d5-_0x16e31d>=q?'top':'bottom','sheetID':_0x201bbe,'range':_0x480a25,'color':_0x4a4dc5,'name':_0x5a931f,'selection':_0x142e31,'left':_0x5e98a8,'top':_0x4c01d5,'width':_0x29d80c,'height':_0xdf9cfd,'evented':!0x1,'zIndex':bt};return new we(_0x5a931f,_0x2313ea);});_0xecd79a[_0x2349f3(0x26e)](_0x36ce18,gt),this[_0x2349f3(0x326)]=new Set(_0x36ce18);}['_removeCollabCursors'](){const _0x8cb6c4=_0x26c91b;var _0x3900e4;(_0x3900e4=this[_0x8cb6c4(0x326)])==null||_0x3900e4[_0x8cb6c4(0x2b2)](_0x41181e=>_0x41181e['dispose']());}[_0x26c91b(0x2cb)](){const _0x12a4ce=_0x26c91b;return X[_0x12a4ce(0x250)](this[_0x12a4ce(0x1c2)][_0x12a4ce(0x23a)],this[_0x12a4ce(0x1c2)]);}};ve=pt([ae(0x1,a[_0x26c91b(0x357)](X[_0x26c91b(0x273)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x26c91b(0x357)](a[_0x26c91b(0x223)]))],ve);function Et(_0x160037){const _0x346719=_0x26c91b,_0x457829=new Map();return _0x160037[_0x346719(0x2b2)](_0x522c39=>{const _0x58dfe2=_0x346719;if(_0x457829['has'](_0x522c39[_0x58dfe2(0x28a)])){const _0x526715=_0x457829[_0x58dfe2(0x141)](_0x522c39[_0x58dfe2(0x28a)]);_0x526715['name']+=',\x20'+_0x522c39[_0x58dfe2(0x180)];}else _0x457829[_0x58dfe2(0x305)](_0x522c39[_0x58dfe2(0x28a)],_0x522c39);}),Array[_0x346719(0x343)](_0x457829[_0x346719(0x2c7)]());}var E=function(){const _0x5cd00d=_0x26c91b;return E=Object['assign']||function(_0x1141c8){const _0x3fb085=_0x58e8;for(var _0x51fdfb,_0x20f076=0x1,_0x37b124=arguments[_0x3fb085(0x362)];_0x20f076<_0x37b124;_0x20f076++){_0x51fdfb=arguments[_0x20f076];for(var _0x150cbc in _0x51fdfb)Object[_0x3fb085(0x1a1)][_0x3fb085(0x352)][_0x3fb085(0x1d6)](_0x51fdfb,_0x150cbc)&&(_0x1141c8[_0x150cbc]=_0x51fdfb[_0x150cbc]);}return _0x1141c8;},E[_0x5cd00d(0x1e7)](this,arguments);},Tt=function(_0x33bd10,_0x899ead){const _0x37db57=_0x26c91b;var _0x1bfd6c={};for(var _0x266bcc in _0x33bd10)Object[_0x37db57(0x1a1)][_0x37db57(0x352)][_0x37db57(0x1d6)](_0x33bd10,_0x266bcc)&&_0x899ead['indexOf'](_0x266bcc)<0x0&&(_0x1bfd6c[_0x266bcc]=_0x33bd10[_0x266bcc]);if(_0x33bd10!=null&&typeof Object['getOwnPropertySymbols']==_0x37db57(0x2fb)){for(var _0x30de0a=0x0,_0x266bcc=Object[_0x37db57(0x19a)](_0x33bd10);_0x30de0a<_0x266bcc['length'];_0x30de0a++)_0x899ead['indexOf'](_0x266bcc[_0x30de0a])<0x0&&Object['prototype'][_0x37db57(0x20d)][_0x37db57(0x1d6)](_0x33bd10,_0x266bcc[_0x30de0a])&&(_0x1bfd6c[_0x266bcc[_0x30de0a]]=_0x33bd10[_0x266bcc[_0x30de0a]]);}return _0x1bfd6c;},pe=M[_0x26c91b(0x17c)](function(_0x5024a8,_0x37e9ad){const _0x2782a5=_0x26c91b;var _0x55810b=_0x5024a8[_0x2782a5(0x293)],_0x29a9b3=_0x5024a8['id'],_0x45466c=_0x5024a8[_0x2782a5(0x135)],_0x27ed61=_0x5024a8['extend'],_0x34f595=Tt(_0x5024a8,[_0x2782a5(0x293),'id',_0x2782a5(0x135),_0x2782a5(0x36e)]),_0x1bcb27=_0x2782a5(0x201)['concat'](_0x29a9b3,'\x20')['concat'](_0x45466c||'')[_0x2782a5(0x1da)](),_0x526c26=M[_0x2782a5(0x1d2)]('_'[_0x2782a5(0x29f)](Dt()));return Ae(_0x55810b,''[_0x2782a5(0x29f)](_0x29a9b3),{'defIds':_0x55810b[_0x2782a5(0x2b1)],'idSuffix':_0x526c26[_0x2782a5(0x36f)]},E({'ref':_0x37e9ad,'className':_0x1bcb27},_0x34f595),_0x27ed61);});function Ae(_0x372f0b,_0x2ad5fe,_0x2a2143,_0x1399d3,_0x579cba){const _0x22e20c=_0x26c91b;return M[_0x22e20c(0x2f3)](_0x372f0b['tag'],E(E({'key':_0x2ad5fe},Ot(_0x372f0b,_0x2a2143,_0x579cba)),_0x1399d3),(Rt(_0x372f0b,_0x2a2143)[_0x22e20c(0x2e1)]||[])[_0x22e20c(0x1d5)](function(_0x84c0f,_0x261f2b){const _0x33c854=_0x22e20c;return Ae(_0x84c0f,''[_0x33c854(0x29f)](_0x2ad5fe,'-')[_0x33c854(0x29f)](_0x372f0b[_0x33c854(0x175)],'-')['concat'](_0x261f2b),_0x2a2143,void 0x0,_0x579cba);}));}function Ot(_0x4e374c,_0x44bf52,_0x5c286b){const _0x3c78ea=_0x26c91b;var _0x2b8e50=E({},_0x4e374c[_0x3c78ea(0x12e)]);_0x5c286b!=null&&_0x5c286b[_0x3c78ea(0x222)]&&_0x2b8e50[_0x3c78ea(0x2c5)]===_0x3c78ea(0x222)&&(_0x2b8e50[_0x3c78ea(0x2c5)]=_0x5c286b[_0x3c78ea(0x222)]),_0x4e374c[_0x3c78ea(0x175)]===_0x3c78ea(0x2d9)&&_0x2b8e50['id']&&(_0x2b8e50['id']=_0x2b8e50['id']+_0x44bf52[_0x3c78ea(0x246)]),Object[_0x3c78ea(0x13a)](_0x2b8e50)['forEach'](function(_0x129f25){const _0x4f624a=_0x3c78ea;var _0x3ba504=_0x129f25[0x0],_0x4ae504=_0x129f25[0x1];_0x3ba504===_0x4f624a(0x2d9)&&typeof _0x4ae504==_0x4f624a(0x151)&&(_0x2b8e50[_0x3ba504]=_0x4ae504[_0x4f624a(0x176)](/url\(#(.*)\)/,_0x4f624a(0x197)[_0x4f624a(0x29f)](_0x44bf52[_0x4f624a(0x246)],')')));});var _0x3de97d=_0x44bf52[_0x3c78ea(0x2b1)];return!_0x3de97d||_0x3de97d[_0x3c78ea(0x362)]===0x0||(_0x4e374c[_0x3c78ea(0x175)]===_0x3c78ea(0x202)&&_0x2b8e50[_0x3c78ea(0x258)]&&(_0x2b8e50[_0x3c78ea(0x258)]=_0x2b8e50[_0x3c78ea(0x258)]+_0x44bf52[_0x3c78ea(0x246)]),Object[_0x3c78ea(0x13a)](_0x2b8e50)[_0x3c78ea(0x2b2)](function(_0xdf775f){const _0x5db69c=_0x3c78ea;var _0xd1ebc1=_0xdf775f[0x0],_0x4a099f=_0xdf775f[0x1];typeof _0x4a099f=='string'&&(_0x2b8e50[_0xd1ebc1]=_0x4a099f[_0x5db69c(0x176)](/url\(#(.*)\)/,_0x5db69c(0x197)[_0x5db69c(0x29f)](_0x44bf52[_0x5db69c(0x246)],')')));})),_0x2b8e50;}function Rt(_0x4939c8,_0x3ed115){const _0x2e0a78=_0x26c91b;var _0x272f3f,_0x57a199=_0x3ed115[_0x2e0a78(0x2b1)];return!_0x57a199||_0x57a199[_0x2e0a78(0x362)]===0x0?_0x4939c8:_0x4939c8[_0x2e0a78(0x175)]===_0x2e0a78(0x253)&&(!((_0x272f3f=_0x4939c8[_0x2e0a78(0x2e1)])===null||_0x272f3f===void 0x0)&&_0x272f3f[_0x2e0a78(0x362)])?E(E({},_0x4939c8),{'children':_0x4939c8[_0x2e0a78(0x2e1)]['map'](function(_0x2d864b){const _0xe93691=_0x2e0a78;return typeof _0x2d864b[_0xe93691(0x12e)]['id']==_0xe93691(0x151)&&_0x57a199&&_0x57a199[_0xe93691(0x2e0)](_0x2d864b[_0xe93691(0x12e)]['id'])>-0x1?E(E({},_0x2d864b),{'attrs':E(E({},_0x2d864b[_0xe93691(0x12e)]),{'id':_0x2d864b[_0xe93691(0x12e)]['id']+_0x3ed115[_0xe93691(0x246)]})}):_0x2d864b;})}):_0x4939c8;}function _0x58e8(_0xddee3c,_0x191fe1){const _0x4840ce=_0x4840();return _0x58e8=function(_0x58e86e,_0x585441){_0x58e86e=_0x58e86e-0x104;let _0x11b139=_0x4840ce[_0x58e86e];return _0x11b139;},_0x58e8(_0xddee3c,_0x191fe1);}function Dt(){const _0xf2d3a2=_0x26c91b;return Math[_0xf2d3a2(0x314)]()[_0xf2d3a2(0x26f)](0x24)[_0xf2d3a2(0x298)](0x2,0x8);}pe[_0x26c91b(0x1f9)]=_0x26c91b(0x1e3);var Ut={'tag':_0x26c91b(0x22d),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x26c91b(0x34f)},'children':[{'tag':'path','attrs':{'stroke':_0x26c91b(0x2c1),'d':_0x26c91b(0x2e8),'strokeLinecap':'round','strokeLinejoin':_0x26c91b(0x134),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x26c91b(0x1cd),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x26c91b(0x239),'attrs':{'fill':_0x26c91b(0x16e),'d':_0x26c91b(0x287)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M['forwardRef'](function(_0x591aa6,_0x1c425c){const _0x51a7af=_0x26c91b;return M[_0x51a7af(0x2f3)](pe,Object[_0x51a7af(0x2e2)]({},_0x591aa6,{'id':_0x51a7af(0x2fa),'ref':_0x1c425c,'icon':Ut}));});ye['displayName']=_0x26c91b(0x15a);var Nt={'tag':_0x26c91b(0x22d),'attrs':{'fill':_0x26c91b(0x24a),'viewBox':_0x26c91b(0x1e4),'width':'1em','height':_0x26c91b(0x297)},'children':[{'tag':'g','attrs':{'clipPath':_0x26c91b(0x1a8)},'children':[{'tag':_0x26c91b(0x239),'attrs':{'stroke':_0x26c91b(0x2c1),'d':_0x26c91b(0x2c4),'strokeLinecap':_0x26c91b(0x134),'strokeLinejoin':_0x26c91b(0x134),'strokeWidth':1.2}}]},{'tag':_0x26c91b(0x253),'attrs':{},'children':[{'tag':_0x26c91b(0x1cd),'attrs':{'id':_0x26c91b(0x2af)},'children':[{'tag':_0x26c91b(0x239),'attrs':{'fill':_0x26c91b(0x16e),'d':_0x26c91b(0x287),'transform':'translate(.97)'}}]}]}],'defIds':[_0x26c91b(0x2af)]},$e=M[_0x26c91b(0x17c)](function(_0x275aac,_0x544029){return M['createElement'](pe,Object['assign']({},_0x275aac,{'id':'on-line-single','ref':_0x544029,'icon':Nt}));});$e['displayName']=_0x26c91b(0x315);function Mt(_0x31f05a){const _0x4facc8=_0x26c91b;switch(_0x31f05a){case u[_0x4facc8(0x112)][_0x4facc8(0x2da)]:return _0x4facc8(0x242);case u[_0x4facc8(0x112)][_0x4facc8(0x323)]:return'collabStatus.conflict';case u[_0x4facc8(0x112)]['FETCH_MISS']:return _0x4facc8(0x2ba);case u[_0x4facc8(0x112)][_0x4facc8(0x1cb)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x4facc8(0x1ef)]:case u[_0x4facc8(0x112)][_0x4facc8(0x243)]:return'collabStatus.syncing';case u[_0x4facc8(0x112)]['SYNCED']:case u[_0x4facc8(0x112)][_0x4facc8(0x2f6)]:return _0x4facc8(0x2f0);}}function xe(_0x5b99ef){const _0x5a8c50=_0x26c91b,{status$:_0x529ffe}=_0x5b99ef,_0x5d6796=T[_0x5a8c50(0x2ee)](_0x529ffe,u['CollaborationStatus']['NOT_COLLAB']),_0x1cc7cf=T[_0x5a8c50(0x25d)](a[_0x5a8c50(0x31c)]),_0x452c4e=T['useDependency'](u['CollaborationSessionService']),_0x1134f2=_0x5d6796!==u['CollaborationStatus'][_0x5a8c50(0x2da)],_0x383345=_0x1cc7cf['t'](Mt(_0x5d6796)),_0x28fff3=_0x1134f2?P['jsx']($e,{}):P['jsx'](ye,{}),_0x2f8107=M[_0x5a8c50(0x30f)](()=>{const _0xe62ba4=_0x5a8c50;_0x1134f2||_0x452c4e[_0xe62ba4(0x163)]();},[_0x1134f2,_0x452c4e]);function _0x5859d7(){const _0xd465ce=_0x5a8c50;return P[_0xd465ce(0x210)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x2f8107,'children':[P[_0xd465ce(0x236)]('div',{'className':D['clsx'](_0xd465ce(0x10d),_0x1134f2?_0xd465ce(0x1e9):_0xd465ce(0x2b0)),'children':_0x28fff3}),P[_0xd465ce(0x236)](_0xd465ce(0x122),{'className':_0xd465ce(0x20e),'children':_0x383345})]});}return _0x1134f2?_0x5859d7():P[_0x5a8c50(0x236)](D[_0x5a8c50(0x1a0)],{'title':_0x1cc7cf['t'](_0x5a8c50(0x278)),'children':_0x5859d7()});}var Lt=Object[_0x26c91b(0x30b)],Pt=(_0x2b666d,_0x5f8de6,_0x133b09,_0x40184d)=>{const _0xcb4c7e=_0x26c91b;for(var _0x46b5bf=_0x40184d>0x1?void 0x0:_0x40184d?Lt(_0x5f8de6,_0x133b09):_0x5f8de6,_0x184e87=_0x2b666d[_0xcb4c7e(0x362)]-0x1,_0x1fe126;_0x184e87>=0x0;_0x184e87--)(_0x1fe126=_0x2b666d[_0x184e87])&&(_0x46b5bf=_0x1fe126(_0x46b5bf)||_0x46b5bf);return _0x46b5bf;},V=(_0x554a4b,_0xe552c6)=>(_0x21b87f,_0x48a4c4)=>_0xe552c6(_0x21b87f,_0x48a4c4,_0x554a4b);exports[_0x26c91b(0x2e4)]=class extends a[_0x26c91b(0x13d)]{constructor(_0x1ccc96,_0xaa161,_0x3caad1,_0x3061ad){const _0x29ebcc=_0x26c91b;super(),h(this,_0x29ebcc(0x369),new d[(_0x29ebcc(0x15d))](u[_0x29ebcc(0x112)][_0x29ebcc(0x1cb)])),(this[_0x29ebcc(0x272)]=_0x1ccc96,this[_0x29ebcc(0x325)]=_0xaa161,this[_0x29ebcc(0x2b9)]=_0x3caad1,this[_0x29ebcc(0x361)]=_0x3061ad,this[_0x29ebcc(0x27a)](),this[_0x29ebcc(0x28e)]());}['_initStatusListener'](){const _0x1f11dd=_0x26c91b;this[_0x1f11dd(0x1dc)](this[_0x1f11dd(0x272)]['focused$'][_0x1f11dd(0x15c)](d[_0x1f11dd(0x198)](()=>{const _0x53ddb1=_0x1f11dd,_0x4baaa5=this[_0x53ddb1(0x272)][_0x53ddb1(0x1a9)]();return _0x4baaa5?this['_collaborationController'][_0x53ddb1(0x2b4)](_0x4baaa5[_0x53ddb1(0x10c)]()):d['of'](null);}),d['switchMap'](_0x2aac02=>_0x2aac02?_0x2aac02['status$']:d['of'](u['CollaborationStatus'][_0x1f11dd(0x1cb)])))[_0x1f11dd(0x257)](_0x3ba960=>{const _0x1d4efc=_0x1f11dd;this[_0x1d4efc(0x369)][_0x1d4efc(0x2d2)](_0x3ba960);}));}[_0x26c91b(0x27a)](){const _0x30a5c8=_0x26c91b;this[_0x30a5c8(0x1dc)](this['_uiPartsService'][_0x30a5c8(0x137)](T['BuiltInUIPart'][_0x30a5c8(0x1f7)],()=>T[_0x30a5c8(0x178)](wt({'status$':this[_0x30a5c8(0x369)][_0x30a5c8(0x338)]()}),this[_0x30a5c8(0x325)])));}},exports[_0x26c91b(0x2e4)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),V(0x2,a[_0x26c91b(0x357)](u[_0x26c91b(0x35b)])),V(0x3,T[_0x26c91b(0x259)])],exports[_0x26c91b(0x2e4)]);function wt(_0x20d9ae){const {status$:_0x223d30}=_0x20d9ae;return function(){const _0x4e5b5a=_0x58e8;return P[_0x4e5b5a(0x236)](xe,{'status$':_0x223d30});};}var At=Object[_0x26c91b(0x30b)],yt=(_0x4ccc53,_0xffc5be,_0xfaed62,_0x168180)=>{const _0x528087=_0x26c91b;for(var _0x19f233=_0x168180>0x1?void 0x0:_0x168180?At(_0xffc5be,_0xfaed62):_0xffc5be,_0x3a2a33=_0x4ccc53[_0x528087(0x362)]-0x1,_0x3cdb10;_0x3a2a33>=0x0;_0x3a2a33--)(_0x3cdb10=_0x4ccc53[_0x3a2a33])&&(_0x19f233=_0x3cdb10(_0x19f233)||_0x19f233);return _0x19f233;},y=(_0x59c34a,_0x25c796)=>(_0x494e1f,_0x32fd52)=>_0x25c796(_0x494e1f,_0x32fd52,_0x59c34a);let K=class extends a[_0x26c91b(0x13d)]{constructor(_0x472f07,_0x2717d4,_0x54c0df,_0x959422,_0x337481,_0x22e55a){const _0x514b91=_0x26c91b;super(),this[_0x514b91(0x350)]=_0x472f07,this['_localCacheService']=_0x2717d4,this[_0x514b91(0x129)]=_0x54c0df,this[_0x514b91(0x140)]=_0x959422,this[_0x514b91(0x174)]=_0x337481,this[_0x514b91(0x22f)]=_0x22e55a,this['_setupBeforeClosingHandler'](),this[_0x514b91(0x31d)]();}[_0x26c91b(0x27c)](){const _0x362d94=_0x26c91b;this[_0x362d94(0x1dc)](this[_0x362d94(0x350)][_0x362d94(0x1c6)](()=>{const _0x3b255b=_0x362d94;if(this[_0x3b255b(0x24e)][_0x3b255b(0x244)][_0x3b255b(0x166)])return this[_0x3b255b(0x22f)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x26c91b(0x31d)](){const _0x350e7a=_0x26c91b;this[_0x350e7a(0x1dc)](this[_0x350e7a(0x129)][_0x350e7a(0x268)]['subscribe'](_0x3cabd6=>{const _0x4243aa=_0x350e7a;_0x3cabd6['id']===u[_0x4243aa(0x2b6)]['OTHER_CLIENT_EDITING']&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D['MessageType']['Warning'],'content':this[_0x4243aa(0x22f)]['t'](_0x4243aa(0x1be))}),_0x3cabd6['id']===u[_0x4243aa(0x2b6)][_0x4243aa(0x363)]&&this['_messageService'][_0x4243aa(0x255)]({'type':D[_0x4243aa(0x1b5)]['Warning'],'content':this['_localeService']['t'](_0x4243aa(0x308))}),_0x3cabd6['id']===u[_0x4243aa(0x2b6)][_0x4243aa(0x120)]&&this['_notificationService'][_0x4243aa(0x255)]({'title':this[_0x4243aa(0x22f)]['t']('permission.title'),'content':this[_0x4243aa(0x22f)]['t'](_0x4243aa(0x124)),'type':'error','duration':0x0}),_0x3cabd6['id']===u[_0x4243aa(0x2b6)][_0x4243aa(0x323)]&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D[_0x4243aa(0x1b5)][_0x4243aa(0x333)],'content':this[_0x4243aa(0x22f)]['t'](_0x4243aa(0x308))+'('+_0x3cabd6[_0x4243aa(0x368)]+')'}),_0x3cabd6['id']===u['CollaborationUIEventId'][_0x4243aa(0x231)]&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x3cabd6[_0x4243aa(0x368)]||'')}),_0x3cabd6['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x4243aa(0x140)]['show']({'type':D[_0x4243aa(0x1b5)][_0x4243aa(0x217)],'content':this['_localeService']['t'](_0x4243aa(0x1d7))}),_0x3cabd6['id']===u['CollaborationUIEventId'][_0x4243aa(0x150)]&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D[_0x4243aa(0x1b5)][_0x4243aa(0x333)],'content':this[_0x4243aa(0x22f)]['t'](_0x4243aa(0x360))}),_0x3cabd6['id']===u[_0x4243aa(0x2b6)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D['MessageType'][_0x4243aa(0x333)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};K=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x26c91b(0x20c)]),y(0x2,a[_0x26c91b(0x357)](u[_0x26c91b(0x1bb)])),y(0x3,T[_0x26c91b(0x2b8)]),y(0x4,T[_0x26c91b(0x2ff)]),y(0x5,a[_0x26c91b(0x357)](a['LocaleService']))],K);const $t=_0x26c91b(0x2e5),Ue={},be=a[_0x26c91b(0x262)](_0x26c91b(0x299));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x3707a1,_0x3d3620,_0x1d4ada,_0x403601)=>{const _0x3dd48d=_0x26c91b;for(var _0x1aafac=_0x403601>0x1?void 0x0:_0x403601?xt(_0x3d3620,_0x1d4ada):_0x3d3620,_0x3d26ae=_0x3707a1[_0x3dd48d(0x362)]-0x1,_0x54a9b2;_0x3d26ae>=0x0;_0x3d26ae--)(_0x54a9b2=_0x3707a1[_0x3d26ae])&&(_0x1aafac=_0x54a9b2(_0x1aafac)||_0x1aafac);return _0x1aafac;},H=(_0x639593,_0x390226)=>(_0x3dbc62,_0xd2d35e)=>_0x390226(_0x3dbc62,_0xd2d35e,_0x639593);exports[_0x26c91b(0x316)]=class extends a['RxDisposable']{constructor(_0x4248e5,_0x2562b1,_0x356012,_0x2952a1,_0x5ce021){const _0x513368=_0x26c91b;super(),this[_0x513368(0x13e)]=_0x4248e5,this[_0x513368(0x104)]=_0x2562b1,this[_0x513368(0x164)]=_0x356012,this['_dataLoaderService']=_0x2952a1,_0x5ce021?_0x5ce021==null||_0x5ce021['whenReady']()[_0x513368(0x1b2)](()=>this[_0x513368(0x1d9)]()):(this['_logService']['debug'](_0x513368(0x282),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x513368(0x1d9)]());}async['_init'](){const _0xbaee52=_0x26c91b,_0x1e2a05=this[_0xbaee52(0x13e)][_0xbaee52(0x1df)](_0xbaee52(0x23a)),_0x26c930=this[_0xbaee52(0x13e)][_0xbaee52(0x1df)](_0xbaee52(0x277)),_0x198ec4=this[_0xbaee52(0x13e)][_0xbaee52(0x1df)](_0xbaee52(0x14b));if(!_0x1e2a05||!_0x26c930){this[_0xbaee52(0x104)][_0xbaee52(0x167)](_0xbaee52(0x282),_0xbaee52(0x230));return;}const _0x4f4b82=await this[_0xbaee52(0x196)][_0xbaee52(0x145)](_0x1e2a05,Number(_0x26c930),_0x198ec4);_0x4f4b82&&_0x4f4b82 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x4f4b82);}async[_0x26c91b(0x2aa)](_0x27c207){const _0xb6e821=_0x26c91b;await this[_0xb6e821(0x1f8)](_0x27c207),_0x27c207[_0xb6e821(0x2e7)][_0xb6e821(0x15c)](d['takeUntil'](this[_0xb6e821(0x2d4)]))[_0xb6e821(0x257)](_0x312741=>{_0x312741&&this['_updateURLWithCurrentState'](_0x312741);}),this[_0xb6e821(0x13e)][_0xb6e821(0x17a)]['pipe'](d[_0xb6e821(0x10e)](this[_0xb6e821(0x2d4)]))[_0xb6e821(0x257)](()=>this[_0xb6e821(0x1f8)](_0x27c207));}[_0x26c91b(0x1fa)](_0x47df9e,_0x55737b=!0x1){const _0x2dcc46=_0x26c91b,_0x17d440=this[_0x2dcc46(0x13e)][_0x2dcc46(0x1df)]('subunit');_0x47df9e[_0x2dcc46(0x335)]()!==_0x17d440&&this[_0x2dcc46(0x13e)][_0x2dcc46(0x1d8)](_0x2dcc46(0x14b),_0x47df9e[_0x2dcc46(0x335)](),_0x55737b);}async['_updateSubUnitFromURLParams'](_0xd6f252){const _0x20d55f=_0x26c91b;var _0x5ab66e;const _0x5ad382=this['_urlService'][_0x20d55f(0x1df)](_0x20d55f(0x14b));if(!_0x5ad382||!_0xd6f252[_0x20d55f(0x18d)](_0x5ad382)){const _0x19b746=_0xd6f252[_0x20d55f(0x232)]()[0x0],_0x3e5e56=_0xd6f252['getSheetBySheetId'](_0x19b746);if(!_0x3e5e56)return;this['_updateURLWithCurrentState'](_0x3e5e56,!0x0),await this[_0x20d55f(0x164)][_0x20d55f(0x301)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xd6f252[_0x20d55f(0x10c)](),'subUnitId':_0x19b746});return;}((_0x5ab66e=_0xd6f252[_0x20d55f(0x2a9)]())==null?void 0x0:_0x5ab66e['getSheetId']())!==_0x5ad382&&await this[_0x20d55f(0x164)]['executeCommand'](g[_0x20d55f(0x261)]['id'],{'unitId':_0xd6f252['getUnitId'](),'subUnitId':_0x5ad382});}},exports[_0x26c91b(0x316)]=jt([H(0x0,be),H(0x1,a[_0x26c91b(0x238)]),H(0x2,a[_0x26c91b(0x252)]),H(0x3,a['Inject'](u['DataLoaderService'])),H(0x4,a[_0x26c91b(0x12a)](qe[_0x26c91b(0x20f)]))],exports[_0x26c91b(0x316)]);var Bt=Object[_0x26c91b(0x30b)],kt=(_0x6638a2,_0x4a313a,_0x45d3be,_0x14abef)=>{const _0x27b193=_0x26c91b;for(var _0x2c166c=_0x14abef>0x1?void 0x0:_0x14abef?Bt(_0x4a313a,_0x45d3be):_0x4a313a,_0x530e8a=_0x6638a2[_0x27b193(0x362)]-0x1,_0x5d468e;_0x530e8a>=0x0;_0x530e8a--)(_0x5d468e=_0x6638a2[_0x530e8a])&&(_0x2c166c=_0x5d468e(_0x2c166c)||_0x2c166c);return _0x2c166c;},ce=(_0x4e5296,_0x326c38)=>(_0x390589,_0x245e25)=>_0x326c38(_0x390589,_0x245e25,_0x4e5296);let z=class{constructor(_0x498fb9,_0xd2cac1,_0x1f9104){const _0x1993e6=_0x26c91b;this[_0x1993e6(0x325)]=_0x498fb9,this[_0x1993e6(0x19f)]=_0xd2cac1,this['_renderManagerService']=_0x1f9104;}['transformIMECache'](_0x5e923b){const _0x2e69cd=_0x26c91b;this[_0x2e69cd(0x2a2)](_0x5e923b),this[_0x2e69cd(0x28f)](_0x5e923b);}[_0x26c91b(0x1ea)](_0x4a0ae6){const _0x3a034f=_0x26c91b,{unitID:_0x3affef}=_0x4a0ae6,_0x42dad3=this['_renderManagerService'][_0x3a034f(0x27b)](_0x3affef)[_0x3a034f(0x2d3)](b[_0x3a034f(0x226)]),{redoCache:_0x5b9f08}=_0x42dad3[_0x3a034f(0x1c1)]();if(_0x5b9f08[_0x3a034f(0x362)]===0x0)return _0x4a0ae6;let _0x2d08c4=a['Tools']['deepClone'](_0x4a0ae6[_0x3a034f(0x381)][0x0]);for(let _0x501ad0=0x0;_0x501ad0<_0x5b9f08[_0x3a034f(0x362)];_0x501ad0++){const _0x1c72d4={'id':_0x3a034f(0x153),'params':{..._0x5b9f08[_0x501ad0]}},_0x227fca=this[_0x3a034f(0x19f)]['transformMutation'](_0x2d08c4,_0x1c72d4,!0x1);if(m[_0x3a034f(0x394)](_0x227fca))throw _0x227fca['error'];_0x2d08c4=_0x227fca[_0x3a034f(0x2b5)];}return{...a[_0x3a034f(0x1ec)][_0x3a034f(0x22b)](_0x4a0ae6),'mutations':[_0x2d08c4]};}[_0x26c91b(0x2a2)](_0x234e05){const _0x2000a4=_0x26c91b,{unitID:_0x3fa3c0}=_0x234e05,_0x52ee6c=this['_renderManagerService']['getRenderById'](_0x3fa3c0)['with'](b[_0x2000a4(0x226)]),{undoCache:_0x1bbcb1,redoCache:_0xe95b1f}=_0x52ee6c['getUndoRedoMutationParamsCache']();if(_0x1bbcb1[_0x2000a4(0x362)]===0x0||_0xe95b1f[_0x2000a4(0x362)]===0x0)return;const _0x27e6ba=[],_0x3da41c=[];let _0x3af2e8=a[_0x2000a4(0x1ec)][_0x2000a4(0x22b)](_0x234e05[_0x2000a4(0x381)][0x0]),_0x26fa21=a[_0x2000a4(0x1ec)][_0x2000a4(0x22b)](_0x234e05[_0x2000a4(0x381)][0x0]);for(let _0x45c454=_0x1bbcb1[_0x2000a4(0x362)]-0x1;_0x45c454>=0x0;_0x45c454--){const _0x40bf8e={'id':_0x2000a4(0x153),'params':{..._0x1bbcb1[_0x45c454]}},_0x407158={'id':_0x2000a4(0x153),'params':{..._0xe95b1f[_0x45c454]}},_0x289417=this[_0x2000a4(0x19f)][_0x2000a4(0x29b)](_0x3af2e8,_0x40bf8e,!0x1),_0x5d2ea9=this[_0x2000a4(0x19f)][_0x2000a4(0x29b)](_0x26fa21,_0x407158,!0x1);if(m['isTransformMutationFailure'](_0x289417))throw _0x289417[_0x2000a4(0x33b)];if(m['isTransformMutationFailure'](_0x5d2ea9))throw _0x5d2ea9[_0x2000a4(0x33b)];_0x27e6ba[_0x2000a4(0x24b)](_0x289417[_0x2000a4(0x18e)]['params']),_0x3da41c[_0x2000a4(0x24b)](_0x5d2ea9['m2Prime'][_0x2000a4(0x181)]),_0x3af2e8=_0x289417['m1Prime'],_0x26fa21=_0x5d2ea9['m1Prime'];}_0x52ee6c[_0x2000a4(0x15e)]({'undoCache':_0x27e6ba,'redoCache':_0x3da41c});}[_0x26c91b(0x28f)](_0x1e435d){const _0x5957e1=_0x26c91b,{unitID:_0x5be226}=_0x1e435d,_0x21f85d=this[_0x5957e1(0x11c)][_0x5957e1(0x27b)](_0x5be226)[_0x5957e1(0x2d3)](b['DocIMEInputManagerService']),_0x46a9b9=_0x21f85d[_0x5957e1(0x228)]();if(_0x46a9b9==null)return;const _0x1bbbae=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e435d[_0x5957e1(0x21b)],'actions':null,'textRanges':[_0x46a9b9]}}],_0x2f15eb=this[_0x5957e1(0x19f)][_0x5957e1(0x254)](_0x1e435d,_0x1bbbae);if(!m[_0x5957e1(0x2e9)](_0x2f15eb))throw _0x2f15eb[_0x5957e1(0x33b)];const _0x461f43=_0x2f15eb[_0x5957e1(0x18e)][0x0][_0x5957e1(0x181)][_0x5957e1(0x38d)];Array[_0x5957e1(0x331)](_0x461f43)&&_0x461f43['length']&&_0x21f85d[_0x5957e1(0x233)](_0x461f43[0x0]);}};z=kt([ce(0x0,a[_0x26c91b(0x357)](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x26c91b(0x32f)])],z);var Ht=Object[_0x26c91b(0x30b)],Ft=(_0x21e98,_0x3433cb,_0x4832d3,_0x4b7610)=>{for(var _0x454e67=_0x4b7610>0x1?void 0x0:_0x4b7610?Ht(_0x3433cb,_0x4832d3):_0x3433cb,_0x513607=_0x21e98['length']-0x1,_0x2a2301;_0x513607>=0x0;_0x513607--)(_0x2a2301=_0x21e98[_0x513607])&&(_0x454e67=_0x2a2301(_0x454e67)||_0x454e67);return _0x454e67;},le=(_0x396e71,_0x22274a)=>(_0x59b347,_0x4ace06)=>_0x22274a(_0x59b347,_0x4ace06,_0x396e71);let J=class{constructor(_0x15196b,_0x132184,_0x1bd8b0){const _0x3c98d8=_0x26c91b;this['_injector']=_0x15196b,this[_0x3c98d8(0x19f)]=_0x132184,this['_docStateChangeManagerService']=_0x1bd8b0;}[_0x26c91b(0x219)](_0x2eb6ec){const _0x3d2fed=_0x26c91b;this[_0x3d2fed(0x161)](_0x2eb6ec);}['transformRemoteChangeset'](_0x499f1e){const _0x39ad00=_0x26c91b,{unitID:_0x4c5b88}=_0x499f1e,{collaboration:_0x414ae}=this[_0x39ad00(0x16f)]['getStateCache'](_0x4c5b88);if(_0x414ae[_0x39ad00(0x362)]===0x0)return _0x499f1e;let _0xa81866=a[_0x39ad00(0x1ec)][_0x39ad00(0x22b)](_0x499f1e['mutations'][0x0]);for(let _0x2af397=0x0;_0x2af397<_0x414ae[_0x39ad00(0x362)];_0x2af397++){const _0x27595a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x414ae[_0x2af397][_0x39ad00(0x221)],..._0x414ae[_0x2af397][_0x39ad00(0x128)]}},_0x2777b6=this[_0x39ad00(0x19f)][_0x39ad00(0x29b)](_0xa81866,_0x27595a,!0x1);if(m[_0x39ad00(0x394)](_0x2777b6))throw _0x2777b6[_0x39ad00(0x33b)];_0xa81866=_0x2777b6['m1Prime'];}return{...a[_0x39ad00(0x1ec)][_0x39ad00(0x22b)](_0x499f1e),'mutations':[_0xa81866]};}[_0x26c91b(0x161)](_0x1f5bc4){const _0x455803=_0x26c91b,{unitID:_0x529118}=_0x1f5bc4,{history:_0x82f154,collaboration:_0x51f46c}=this[_0x455803(0x16f)][_0x455803(0x321)](_0x529118);if(_0x82f154[_0x455803(0x362)]===0x0&&_0x51f46c[_0x455803(0x362)]===0x0)return;const _0x23b708=[],_0x4eaa88=[];let _0x5c131a=a[_0x455803(0x1ec)][_0x455803(0x22b)](_0x1f5bc4[_0x455803(0x381)][0x0]),_0x43abe4=a['Tools'][_0x455803(0x22b)](_0x1f5bc4[_0x455803(0x381)][0x0]);for(let _0x436a3c=_0x82f154[_0x455803(0x362)]-0x1;_0x436a3c>=0x0;_0x436a3c--){const _0x6bf58={'id':_0x455803(0x153),'params':{'unitId':_0x82f154[_0x436a3c][_0x455803(0x221)],..._0x82f154[_0x436a3c]['undoState']}},_0x5dde5e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x82f154[_0x436a3c]['unitId'],..._0x82f154[_0x436a3c][_0x455803(0x128)]}},_0xa96787=this[_0x455803(0x19f)]['transformMutation'](_0x5c131a,_0x6bf58,!0x1),_0x2c9705=this[_0x455803(0x19f)][_0x455803(0x29b)](_0x43abe4,_0x5dde5e,!0x1);if(m[_0x455803(0x394)](_0xa96787))throw _0xa96787[_0x455803(0x33b)];if(m[_0x455803(0x394)](_0x2c9705))throw _0x2c9705[_0x455803(0x33b)];_0x23b708[_0x455803(0x24b)]({..._0x82f154[_0x436a3c],'undoState':_0xa96787[_0x455803(0x18e)]['params'],'redoState':_0x2c9705['m2Prime'][_0x455803(0x181)]}),_0x5c131a=_0xa96787[_0x455803(0x2b5)],_0x43abe4=_0x2c9705[_0x455803(0x2b5)];}_0x5c131a=a[_0x455803(0x1ec)][_0x455803(0x22b)](_0x1f5bc4[_0x455803(0x381)][0x0]),_0x43abe4=a['Tools']['deepClone'](_0x1f5bc4[_0x455803(0x381)][0x0]);for(let _0xf493fb=_0x51f46c[_0x455803(0x362)]-0x1;_0xf493fb>=0x0;_0xf493fb--){const _0x5b3440={'id':_0x455803(0x153),'params':{'unitId':_0x51f46c[_0xf493fb][_0x455803(0x221)],..._0x51f46c[_0xf493fb]['undoState']}},_0x3de2b9={'id':_0x455803(0x153),'params':{'unitId':_0x51f46c[_0xf493fb][_0x455803(0x221)],..._0x51f46c[_0xf493fb][_0x455803(0x128)]}},_0x5f57e8=this[_0x455803(0x19f)][_0x455803(0x29b)](_0x5c131a,_0x5b3440,!0x1),_0x1ae189=this[_0x455803(0x19f)]['transformMutation'](_0x43abe4,_0x3de2b9,!0x1);if(m[_0x455803(0x394)](_0x5f57e8))throw _0x5f57e8[_0x455803(0x33b)];if(m[_0x455803(0x394)](_0x1ae189))throw _0x1ae189['error'];_0x4eaa88[_0x455803(0x24b)]({..._0x51f46c[_0xf493fb],'undoState':_0x5f57e8['m2Prime']['params'],'redoState':_0x1ae189[_0x455803(0x18e)][_0x455803(0x181)]}),_0x5c131a=_0x5f57e8['m1Prime'],_0x43abe4=_0x1ae189[_0x455803(0x2b5)];}this[_0x455803(0x16f)][_0x455803(0x1fc)](_0x529118,{'history':_0x23b708,'collaboration':_0x4eaa88});}};J=Ft([le(0x0,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),le(0x1,m[_0x26c91b(0x148)]),le(0x2,a[_0x26c91b(0x357)](b[_0x26c91b(0x203)]))],J);var Wt=Object[_0x26c91b(0x30b)],Yt=(_0x58fa8d,_0x337306,_0x4abaac,_0x49c405)=>{const _0x408d99=_0x26c91b;for(var _0xb72453=_0x49c405>0x1?void 0x0:_0x49c405?Wt(_0x337306,_0x4abaac):_0x337306,_0x42c453=_0x58fa8d[_0x408d99(0x362)]-0x1,_0xdf3a65;_0x42c453>=0x0;_0x42c453--)(_0xdf3a65=_0x58fa8d[_0x42c453])&&(_0xb72453=_0xdf3a65(_0xb72453)||_0xb72453);return _0xb72453;},Ne=(_0x435b28,_0x1bc55a)=>(_0x572644,_0xb6e27a)=>_0x1bc55a(_0x572644,_0xb6e27a,_0x435b28);let Z=class{constructor(_0x30aa80,_0x10c6c5){this['_injector']=_0x30aa80,this['_transformService']=_0x10c6c5;}[_0x26c91b(0x2b7)](_0x2943d1){const _0x1f402c=_0x26c91b;var _0x406fc2;const _0x1f361b=this[_0x1f402c(0x325)][_0x1f402c(0x141)](W[_0x1f402c(0x17d)]),_0x5cb032=(_0x406fc2=_0x1f361b[_0x1f402c(0x20a)]())!=null?_0x406fc2:[];if(_0x5cb032['length']===0x0)return;const _0x3733bd=_0x2943d1[_0x1f402c(0x21b)],_0x55e4e1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3733bd,'actions':null,'textRanges':_0x5cb032}}],_0x1bfd16=this[_0x1f402c(0x19f)]['transformMutationsWithChangeset'](_0x2943d1,_0x55e4e1);if(!m[_0x1f402c(0x2e9)](_0x1bfd16))throw _0x1bfd16[_0x1f402c(0x33b)];const _0x2da0f5=_0x1bfd16['m2Prime'][0x0][_0x1f402c(0x181)]['textRanges'];Array['isArray'](_0x2da0f5)&&_0x2da0f5['length']&&_0x1f361b[_0x1f402c(0x1c3)](_0x2da0f5,{'unitId':_0x3733bd,'subUnitId':_0x3733bd},!0x1);}};Z=Yt([Ne(0x0,a[_0x26c91b(0x357)](a['Injector'])),Ne(0x1,m[_0x26c91b(0x148)])],Z);var Vt=Object[_0x26c91b(0x30b)],Xt=(_0x18d1b4,_0x195da5,_0xcd6737,_0x3748ed)=>{for(var _0x57de34=_0x3748ed>0x1?void 0x0:_0x3748ed?Vt(_0x195da5,_0xcd6737):_0x195da5,_0x39d437=_0x18d1b4['length']-0x1,_0x950bbe;_0x39d437>=0x0;_0x39d437--)(_0x950bbe=_0x18d1b4[_0x39d437])&&(_0x57de34=_0x950bbe(_0x57de34)||_0x57de34);return _0x57de34;},N=(_0x1c9c59,_0x2a9bb2)=>(_0x2a740d,_0x3275af)=>_0x2a9bb2(_0x2a740d,_0x3275af,_0x1c9c59);let Q=class extends a[_0x26c91b(0x13d)]{constructor(_0x1d99c5,_0x2c6a45,_0x340bf7,_0x14df3d,_0x2d5133,_0x50151d,_0x3830a7,_0x2f82ed){const _0x2d87d0=_0x26c91b;super(),h(this,_0x2d87d0(0x369),new d[(_0x2d87d0(0x15d))](u[_0x2d87d0(0x112)][_0x2d87d0(0x1cb)])),(this[_0x2d87d0(0x16f)]=_0x1d99c5,this['_collaborationController']=_0x2c6a45,this[_0x2d87d0(0x33a)]=_0x340bf7,this[_0x2d87d0(0x1fe)]=_0x14df3d,this[_0x2d87d0(0x2de)]=_0x2d5133,this[_0x2d87d0(0x155)]=_0x50151d,this['_messageService']=_0x3830a7,this[_0x2d87d0(0x22f)]=_0x2f82ed,this['_initEntityListener']());}[_0x26c91b(0x2a1)](){const _0x47942d=_0x26c91b;this['disposeWithMe'](this[_0x47942d(0x2b9)]['entityInit$'][_0x47942d(0x257)](_0x2a2ca6=>{const _0x171c4c=_0x47942d,_0x52e1c0=this['_docStateChangeManagerService'][_0x171c4c(0x35f)][_0x171c4c(0x257)](_0x3246ed=>{const _0x43fb6f=_0x171c4c;if(_0x3246ed==null)return;const {unitId:_0x472295,redoState:_0xcf9db1,commandId:_0x1860a3}=_0x3246ed;if(_0x472295!==_0x2a2ca6['unitID'])return;const _0x50b28c={'id':_0x1860a3,'type':a[_0x43fb6f(0x204)][_0x43fb6f(0x289)],'params':{'unitId':_0x472295,'actions':_0xcf9db1[_0x43fb6f(0x188)],'textRanges':null}};_0x2a2ca6['onLocalMutation'](_0x50b28c);});if(_0x2a2ca6['disposeWithMe'](_0x52e1c0),_0x2a2ca6 instanceof u[_0x171c4c(0x319)]){const _0x12dde7={'onTransformIME':_0x38ac6a=>this[_0x171c4c(0x33a)]['transformIMECache'](_0x38ac6a),'onTransformState':_0x74d310=>this['_docTransformStateCacheService'][_0x171c4c(0x219)](_0x74d310),'onTransformSelections':_0x21394d=>this['_docTransformSelectionsService'][_0x171c4c(0x2b7)](_0x21394d),'onSyncEditingCollabCursor':_0x1fbf67=>this[_0x171c4c(0x155)][_0x171c4c(0x32a)](_0x1fbf67),'onTransformRemoteChangesetByIMECache':_0x482184=>this[_0x171c4c(0x33a)][_0x171c4c(0x1ea)](_0x482184),'onTransformRemoteChangesetByStateCache':_0x2aab18=>this[_0x171c4c(0x1fe)][_0x171c4c(0x1ea)](_0x2aab18)};_0x2a2ca6[_0x171c4c(0x312)](_0x12dde7);}}));}};Q=Xt([N(0x0,a[_0x26c91b(0x357)](b['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x26c91b(0x35b)])),N(0x2,a[_0x26c91b(0x357)](z)),N(0x3,a[_0x26c91b(0x357)](J)),N(0x4,a[_0x26c91b(0x357)](Z)),N(0x5,a[_0x26c91b(0x357)](Ce)),N(0x6,T[_0x26c91b(0x2b8)]),N(0x7,a['Inject'](a[_0x26c91b(0x31c)]))],Q);var Gt=Object[_0x26c91b(0x30b)],qt=(_0x4ec09b,_0x40b49b,_0x4a3c97,_0x41cedd)=>{const _0x158a59=_0x26c91b;for(var _0x40a79c=_0x41cedd>0x1?void 0x0:_0x41cedd?Gt(_0x40b49b,_0x4a3c97):_0x40b49b,_0x5bb477=_0x4ec09b[_0x158a59(0x362)]-0x1,_0x135dd9;_0x5bb477>=0x0;_0x5bb477--)(_0x135dd9=_0x4ec09b[_0x5bb477])&&(_0x40a79c=_0x135dd9(_0x40a79c)||_0x40a79c);return _0x40a79c;},_e=(_0x4771da,_0x443a2b)=>(_0x58dbba,_0x3916e5)=>_0x443a2b(_0x58dbba,_0x3916e5,_0x4771da);let ge=class extends a[_0x26c91b(0x13d)]{constructor(_0x5bd66f,_0x34402f,_0xbd2996){const _0x45adde=_0x26c91b;super(),h(this,_0x45adde(0x2bd),new Map()),h(this,_0x45adde(0x11f),new Map()),h(this,_0x45adde(0x347),!0x1),(this[_0x45adde(0x241)]=_0x5bd66f,this[_0x45adde(0x36a)]=_0x34402f,this[_0x45adde(0x1e2)]=_0xbd2996);}[_0x26c91b(0x111)](){this['_disabled']=!0x0;}[_0x26c91b(0x10f)](){const _0x408b95=_0x26c91b;this[_0x408b95(0x347)]=!0x1;}get[_0x26c91b(0x244)](){const _0x58b77c=_0x26c91b;return this[_0x58b77c(0x11f)];}[_0x26c91b(0x2c0)](){const _0x31ecce=_0x26c91b;this[_0x31ecce(0x280)]()['then'](()=>super['dispose']());}async[_0x26c91b(0x27d)](_0x26e79c){const _0xc7e603=_0x26c91b;return this[_0xc7e603(0x347)]?null:this['_localStorageService'][_0xc7e603(0x1a6)](u[_0xc7e603(0x340)](_0x26e79c));}async[_0x26c91b(0x207)](_0x18a8d2,_0x43d3ed){const _0x498948=_0x26c91b;return!!this[_0x498948(0x36a)][_0x498948(0x21f)](_0x18a8d2,_0x43d3ed);}[_0x26c91b(0x349)](_0x17a75f,_0x197210,_0x11ccc5,_0x3e5fd5){const _0xbe0831=_0x26c91b,_0x578ab9=this[_0xbe0831(0x1e2)][_0xbe0831(0x37a)](_0x17a75f);this[_0xbe0831(0x2bd)][_0xbe0831(0x305)](_0x17a75f,{'unitID':_0x17a75f,'type':_0x197210,'awaitingChangeset':_0x11ccc5,'mutations':_0x3e5fd5,'rev':_0x578ab9}),this[_0xbe0831(0x11f)]['has'](_0x17a75f)||this[_0xbe0831(0x21e)](_0x17a75f);}[_0x26c91b(0x21e)](_0x54ac71){const _0x572dfe=_0x26c91b,_0x5f86b5=this[_0x572dfe(0x105)]();_0x5f86b5===0x0?this[_0x572dfe(0x2c9)](_0x54ac71):this[_0x572dfe(0x11f)]['set'](_0x54ac71,setTimeout(()=>this['_saveCache'](_0x54ac71),_0x5f86b5));}[_0x26c91b(0x105)](){const _0x54315b=_0x26c91b;var _0x9af989;return(_0x9af989=this['_configService']['getConfig'](u[_0x54315b(0x211)]))!=null?_0x9af989:u[_0x54315b(0x380)];}[_0x26c91b(0x2c9)](_0x2c67a6){const _0x22d7ce=_0x26c91b,_0x193326=this[_0x22d7ce(0x11f)][_0x22d7ce(0x141)](_0x2c67a6);return _0x193326!==void 0x0&&window['clearTimeout'](_0x193326),this[_0x22d7ce(0x36a)][_0x22d7ce(0x21f)](u[_0x22d7ce(0x340)](_0x2c67a6),this[_0x22d7ce(0x2bd)]['get'](_0x2c67a6))[_0x22d7ce(0x1b2)](()=>this[_0x22d7ce(0x11f)][_0x22d7ce(0x186)](_0x2c67a6));}async[_0x26c91b(0x280)](){const _0x5a27eb=_0x26c91b,_0x5c08b1=[];this[_0x5a27eb(0x11f)]['forEach']((_0x1c5726,_0x1a4cab)=>{const _0x236155=_0x5a27eb;window['clearTimeout'](_0x1c5726),_0x5c08b1[_0x236155(0x355)](this[_0x236155(0x2c9)](_0x1a4cab)[_0x236155(0x1b2)](()=>{const _0x1179d5=_0x236155;this[_0x1179d5(0x11f)][_0x1179d5(0x186)](_0x1a4cab);}));}),await Promise[_0x5a27eb(0x2ca)](_0x5c08b1);}};ge=qt([_e(0x0,a[_0x26c91b(0x332)]),_e(0x1,a[_0x26c91b(0x35e)]),_e(0x2,a['Inject'](m[_0x26c91b(0x195)]))],ge);class je extends a[_0x26c91b(0x31f)]{constructor(){const _0x44d673=_0x26c91b;super(),h(this,_0x44d673(0x17a)),this['urlChange$']=d['fromEvent'](window,_0x44d673(0x1c5))[_0x44d673(0x15c)](d[_0x44d673(0x10e)](this[_0x44d673(0x2d4)]),d[_0x44d673(0x23f)](0x1),d[_0x44d673(0x194)](void 0x0));}['setParam'](_0x369edf,_0x511d18,_0x2d5eac=!0x1){const _0x4c4155=_0x26c91b,_0x3cb0f5=new URL(window[_0x4c4155(0x2d1)][_0x4c4155(0x1e0)]);_0x3cb0f5[_0x4c4155(0x224)][_0x4c4155(0x305)](_0x369edf,_0x511d18),_0x2d5eac?window[_0x4c4155(0x1b0)][_0x4c4155(0x183)]('','',_0x3cb0f5[_0x4c4155(0x26f)]()):window[_0x4c4155(0x1b0)][_0x4c4155(0x300)]('','',_0x3cb0f5[_0x4c4155(0x26f)]());}[_0x26c91b(0x383)](_0x2d3cb8,_0x1773df=!0x1){const _0x5bce4c=_0x26c91b,_0x269b69=new URL(window[_0x5bce4c(0x2d1)]['href']);_0x269b69[_0x5bce4c(0x224)][_0x5bce4c(0x186)](_0x2d3cb8),_0x1773df?window['history'][_0x5bce4c(0x183)]('','',_0x269b69[_0x5bce4c(0x26f)]()):window['history'][_0x5bce4c(0x300)]('','',_0x269b69['toString']());}[_0x26c91b(0x1df)](_0xd90cda){const _0x2d9a9d=_0x26c91b;var _0x247e86;return(_0x247e86=new URL(window['location']['href'])[_0x2d9a9d(0x224)][_0x2d9a9d(0x141)](_0xd90cda))!=null?_0x247e86:void 0x0;}}var Kt=Object[_0x26c91b(0x13c)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x49ab55,_0x1507eb,_0x3ecb59)=>_0x1507eb in _0x49ab55?Kt(_0x49ab55,_0x1507eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ecb59}):_0x49ab55[_0x1507eb]=_0x3ecb59,Zt=(_0x2be0f2,_0x2dbb3b,_0x2af25b,_0x25ba0a)=>{const _0x58cb99=_0x26c91b;for(var _0x37d638=_0x25ba0a>0x1?void 0x0:_0x25ba0a?zt(_0x2dbb3b,_0x2af25b):_0x2dbb3b,_0x2f3576=_0x2be0f2[_0x58cb99(0x362)]-0x1,_0x3f7ccb;_0x2f3576>=0x0;_0x2f3576--)(_0x3f7ccb=_0x2be0f2[_0x2f3576])&&(_0x37d638=_0x3f7ccb(_0x37d638)||_0x37d638);return _0x37d638;},he=(_0x14e6d1,_0x1ef24f)=>(_0x18e61d,_0x27c381)=>_0x1ef24f(_0x18e61d,_0x27c381,_0x14e6d1),Qt=(_0xb6cc26,_0xb7535c,_0x50dec3)=>Jt(_0xb6cc26,_0xb7535c+'',_0x50dec3);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x26c91b(0x247)]=class extends a[_0x26c91b(0x306)]{constructor(_0x2006a7=Ue,_0xff6cd9,_0x39fc7c,_0x13530f){const _0x12b0fa=_0x26c91b;super(),this[_0x12b0fa(0x334)]=_0x2006a7,this[_0x12b0fa(0x11c)]=_0xff6cd9,this[_0x12b0fa(0x325)]=_0x39fc7c,this[_0x12b0fa(0x241)]=_0x13530f;const {..._0x487dbd}=a[_0x12b0fa(0x248)]({},Ue,this[_0x12b0fa(0x334)]);this[_0x12b0fa(0x241)][_0x12b0fa(0x1c9)]($t,_0x487dbd);}[_0x26c91b(0x131)](){const _0x5ea803=_0x26c91b;this['_registerDependencies'](),this[_0x5ea803(0x1f3)]();}[_0x26c91b(0x33e)](){const _0x2fbfc2=_0x26c91b;this[_0x2fbfc2(0x30e)]();}[_0x26c91b(0x2eb)](){const _0x295a01=_0x26c91b;var _0x2b0cd9;const _0x6f9429=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x295a01(0x21d)]}],[u[_0x295a01(0x20c)],{'useClass':ge}],[exports[_0x295a01(0x2e4)]],[Q],[K],[x],[de],[exports[_0x295a01(0x316)]]];a[_0x295a01(0x193)](this[_0x295a01(0x325)],a[_0x295a01(0x200)](_0x6f9429,(_0x2b0cd9=this[_0x295a01(0x334)])==null?void 0x0:_0x2b0cd9[_0x295a01(0x336)]));}['_registerRenderDependencies'](){const _0x188a5d=_0x26c91b;this[_0x188a5d(0x1dc)](this[_0x188a5d(0x11c)][_0x188a5d(0x169)](a[_0x188a5d(0x1ff)][_0x188a5d(0x270)],[Ie])),this[_0x188a5d(0x1dc)](this[_0x188a5d(0x11c)][_0x188a5d(0x169)](a[_0x188a5d(0x1ff)][_0x188a5d(0x192)],[ve]));}[_0x26c91b(0x1f3)](){const _0x3c1bb9=_0x26c91b;a['touchDependencies'](this[_0x3c1bb9(0x325)],[[x],[exports[_0x3c1bb9(0x2e4)]],[Q],[K],[exports[_0x3c1bb9(0x316)]]]);}},Qt(exports[_0x26c91b(0x247)],_0x26c91b(0x191),es),exports[_0x26c91b(0x247)]=Zt([a[_0x26c91b(0x1ed)](u[_0x26c91b(0x23d)]),he(0x1,p[_0x26c91b(0x32f)]),he(0x2,a[_0x26c91b(0x357)](a['Injector'])),he(0x3,a[_0x26c91b(0x332)])],exports[_0x26c91b(0x247)]);var ts=Object[_0x26c91b(0x30b)],ss=(_0x461686,_0x56d206,_0x2dec48,_0x372789)=>{const _0x94436b=_0x26c91b;for(var _0x121d5c=_0x372789>0x1?void 0x0:_0x372789?ts(_0x56d206,_0x2dec48):_0x56d206,_0x5266fa=_0x461686[_0x94436b(0x362)]-0x1,_0x4f1630;_0x5266fa>=0x0;_0x5266fa--)(_0x4f1630=_0x461686[_0x5266fa])&&(_0x121d5c=_0x4f1630(_0x121d5c)||_0x121d5c);return _0x121d5c;},F=(_0x3cfe29,_0x4842c3)=>(_0x4d3c8b,_0x41fcd9)=>_0x4842c3(_0x4d3c8b,_0x41fcd9,_0x3cfe29);exports['BrowserCollaborationSocketService']=class extends u[_0x26c91b(0x19c)]{constructor(_0x2720aa,_0x32e3ef,_0xc0ee25,_0x2ec622,_0x2e5f60){super(_0x2720aa,_0x32e3ef,_0xc0ee25,_0x2ec622,_0x2e5f60);}async[_0x26c91b(0x342)](_0x2c9d52){const _0x274d38=_0x26c91b,_0x10fc78=await this['_getSessionTicket'](),_0x1f9d8b=this[_0x274d38(0x366)](_0x2c9d52,_0x10fc78);return this[_0x274d38(0x373)](_0x1f9d8b);}[_0x26c91b(0x366)](_0x139ba8,_0x989bf3){const _0x4b6fcc=_0x26c91b,_0xac1197=typeof window>'u'?new URL(_0x139ba8):new URL(_0x139ba8,window[_0x4b6fcc(0x2d1)][_0x4b6fcc(0x1db)]);_0xac1197['searchParams']['set'](_0x4b6fcc(0x2a4),_0x989bf3);const _0xd1a83f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4b6fcc(0x2d1)][_0x4b6fcc(0x206)]);return _0xd1a83f[_0x4b6fcc(0x141)]('runId')&&_0xac1197[_0x4b6fcc(0x224)][_0x4b6fcc(0x305)]('runId',_0xd1a83f['get']('runId')),_0xac1197[_0x4b6fcc(0x26f)]();}async['_getSessionTicket'](){const _0x7da0ec=_0x26c91b;var _0x375db8,_0x5c39b0,_0x16eb6c;const _0x41e22c=this[_0x7da0ec(0x241)]['getConfig'](u[_0x7da0ec(0x34e)]),_0x1d4793=(_0x375db8=_0x41e22c==null?void 0x0:_0x41e22c[_0x7da0ec(0x292)])!=null?_0x375db8:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x16eb6c=(_0x5c39b0=(await this[_0x7da0ec(0x17f)]['get'](_0x1d4793,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5c39b0[_0x7da0ec(0x2a8)])!=null?_0x16eb6c:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),F(0x1,a[_0x26c91b(0x357)](G[_0x26c91b(0x378)])),F(0x2,a[_0x26c91b(0x332)]),F(0x3,a[_0x26c91b(0x238)]),F(0x4,m[_0x26c91b(0x2db)])],exports[_0x26c91b(0x320)]);const Me=0x7530,Le=_0x26c91b(0x25c);class is extends a[_0x26c91b(0x13d)]{constructor(){const _0x1777c1=_0x26c91b;super(),h(this,_0x1777c1(0x290),a[_0x1777c1(0x1ae)]()),h(this,_0x1777c1(0x2f9),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x1777c1(0x2bb),null),h(this,_0x1777c1(0x119),new Map()),h(this,_0x1777c1(0x36b),new Map()),this['_init']();}[_0x26c91b(0x2c0)](){const _0x2f1461=_0x26c91b;super[_0x2f1461(0x2c0)](),this[_0x2f1461(0x119)][_0x2f1461(0x2b2)]((_0x3e4f63,_0x104d87)=>this[_0x2f1461(0x10a)](_0x104d87)),this[_0x2f1461(0x2bb)]&&window[_0x2f1461(0x367)](this[_0x2f1461(0x2bb)]);}[_0x26c91b(0x184)](_0x1aac92){const _0x222dd6=_0x26c91b;return this[_0x222dd6(0x1f6)](_0x1aac92)[_0x222dd6(0x15c)](d[_0x222dd6(0x19d)]());}['editingUnit'](_0x36200d){const _0x51dff8=_0x26c91b;this[_0x51dff8(0x2f9)][_0x51dff8(0x166)]===0x0&&this[_0x51dff8(0x18b)](),this['_selfUnitIDs'][_0x51dff8(0x1d4)](_0x36200d),this[_0x51dff8(0x274)]({'type':0x0,'memberID':this[_0x51dff8(0x290)],'unitIDs':[_0x36200d],'isForwarded':!0x1});}[_0x26c91b(0x384)](_0x459ca7){const _0x5f56c4=_0x26c91b;this['_selfUnitIDs']['delete'](_0x459ca7),this[_0x5f56c4(0x2f9)]['size']===0x0&&this[_0x5f56c4(0x2bb)]&&window[_0x5f56c4(0x367)](this[_0x5f56c4(0x2bb)]);}[_0x26c91b(0x1d9)](){const _0x1c4fbf=_0x26c91b;this[_0x1c4fbf(0x1dc)](a[_0x1c4fbf(0x2d6)](d[_0x1c4fbf(0x110)](window,_0x1c4fbf(0x2f1))[_0x1c4fbf(0x257)](_0x1ea947=>{const _0x332f89=_0x1c4fbf;if(_0x1ea947[_0x332f89(0x1bc)]!==Le||!_0x1ea947['newValue'])return;const _0x1dd9c0=JSON['parse'](_0x1ea947[_0x332f89(0x269)]);this[_0x332f89(0x170)](_0x1dd9c0);}))),window[_0x1c4fbf(0x329)](_0x1c4fbf(0x1b4),()=>this['_send']({'type':0x1,'memberID':this[_0x1c4fbf(0x290)],'unitIDs':Array[_0x1c4fbf(0x343)](this[_0x1c4fbf(0x2f9)])}));}[_0x26c91b(0x170)](_0x521d15){const _0x4ddcb9=_0x26c91b;switch(_0x521d15[_0x4ddcb9(0x277)]){case 0x0:this['_handleJoinEvent'](_0x521d15);break;case 0x1:this[_0x4ddcb9(0x2ac)](_0x521d15);break;case 0x2:this[_0x4ddcb9(0x328)](_0x521d15);break;}}[_0x26c91b(0x18c)](_0x5de9a3){const _0x206803=_0x26c91b,{unitIDs:_0x595576,memberID:_0x46b611,isForwarded:_0x3702ee}=_0x5de9a3;_0x595576[_0x206803(0x2b2)](_0x41e2aa=>{const _0x46a204=_0x206803;if(!_0x3702ee&&this[_0x46a204(0x385)][_0x46a204(0x275)](_0x41e2aa)&&this['_ensureSubject'](_0x41e2aa)['next'](u['UnitStatus'][_0x46a204(0x1b3)]),!this[_0x46a204(0x385)][_0x46a204(0x275)](_0x41e2aa)||!this[_0x46a204(0x385)][_0x46a204(0x141)](_0x41e2aa)['has'](_0x46b611)){const _0x386eed=this[_0x46a204(0x385)][_0x46a204(0x141)](_0x41e2aa)||new Set();_0x386eed[_0x46a204(0x1d4)](_0x46b611),this['_unitOnClients'][_0x46a204(0x305)](_0x41e2aa,_0x386eed),this['_scheduleClearOtherTimer'](_0x46b611);}}),_0x3702ee||this[_0x206803(0x274)]({'type':0x0,'memberID':this[_0x206803(0x290)],'unitIDs':[...this[_0x206803(0x2f9)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x49369d){const _0x2caace=_0x26c91b;this['_removeClearOtherTimer'](_0x49369d);const _0x48301c=window[_0x2caace(0x18f)](()=>{const _0x5d13fb=_0x2caace;this[_0x5d13fb(0x385)]['forEach'](_0xbd38ab=>{const _0x15da88=_0x5d13fb;_0xbd38ab[_0x15da88(0x186)](_0x49369d);});},Me*0x2);this['_clearOtherTimers'][_0x2caace(0x305)](_0x49369d,_0x48301c);}[_0x26c91b(0x10a)](_0x51c854){const _0xdf5b0f=_0x26c91b;if(this[_0xdf5b0f(0x119)][_0xdf5b0f(0x275)](_0x51c854)){const _0x463b26=this[_0xdf5b0f(0x119)][_0xdf5b0f(0x141)](_0x51c854);_0x463b26&&window[_0xdf5b0f(0x38f)](_0x463b26),this[_0xdf5b0f(0x119)]['set'](_0x51c854,null);}}['_handleLeaveEvent'](_0x2bf31b){const _0x22b3ec=_0x26c91b,{memberID:_0x432d0c,unitIDs:_0x5f217a}=_0x2bf31b;_0x5f217a[_0x22b3ec(0x2b2)](_0x1460bb=>{const _0x4abb7d=_0x22b3ec;var _0x3ffdd5;const _0x2a55f7=this[_0x4abb7d(0x385)][_0x4abb7d(0x141)](_0x1460bb);_0x2a55f7&&(_0x2a55f7[_0x4abb7d(0x186)](_0x432d0c),(_0x3ffdd5=this[_0x4abb7d(0x1f6)](_0x1460bb))==null||_0x3ffdd5[_0x4abb7d(0x2d2)](_0x2a55f7[_0x4abb7d(0x166)]===0x0?u[_0x4abb7d(0x14c)][_0x4abb7d(0x28b)]:u['UnitStatus'][_0x4abb7d(0x1b3)]));}),this[_0x22b3ec(0x10a)](_0x432d0c);}[_0x26c91b(0x328)](_0x1c5fc4){const _0xa62055=_0x26c91b;this[_0xa62055(0x1b1)](_0x1c5fc4[_0xa62055(0x24d)]);}[_0x26c91b(0x274)](_0x2d0a4b){const _0x266af0=_0x26c91b;localStorage[_0x266af0(0x21f)](Le,JSON[_0x266af0(0x136)](_0x2d0a4b));}[_0x26c91b(0x18b)](){const _0x4f7679=_0x26c91b;this[_0x4f7679(0x2bb)]=window['setInterval'](()=>{const _0x2c9a8e=_0x4f7679;this['_send']({'type':0x2,'memberID':this[_0x2c9a8e(0x290)]});},Me);}[_0x26c91b(0x1f6)](_0xc2e340){const _0x93f1bf=_0x26c91b;return this[_0x93f1bf(0x36b)]['has'](_0xc2e340)||this[_0x93f1bf(0x36b)][_0x93f1bf(0x305)](_0xc2e340,new d['BehaviorSubject'](u[_0x93f1bf(0x14c)][_0x93f1bf(0x28b)])),this['_unitStatus'][_0x93f1bf(0x141)](_0xc2e340);}}var Be=(_0x5ce1f2=>(_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x2dc)]=0x0]=_0x26c91b(0x2dc),_0x5ce1f2[_0x5ce1f2['OK']=0x1]='OK',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x158)]=0x2]=_0x26c91b(0x158),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x120)]=0x3]=_0x26c91b(0x120),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x318)]=0x4]=_0x26c91b(0x318),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x276)]=0x5]='UNAUTHENTICATED',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x29c)]=0x6]=_0x26c91b(0x29c),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x26a)]=0x7]=_0x26c91b(0x26a),_0x5ce1f2[_0x5ce1f2['TOO_MANY_REQUESTS']=0x8]=_0x26c91b(0x382),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1ad)]=0x9]='COMPLETION_FINISHED',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x26b)]=0xa]=_0x26c91b(0x26b),_0x5ce1f2[_0x5ce1f2['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x26c91b(0x212),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x267)]=0x1771]=_0x26c91b(0x267),_0x5ce1f2[_0x5ce1f2['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x26c91b(0x22e),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1ce)]=0x1773]=_0x26c91b(0x1ce),_0x5ce1f2[_0x5ce1f2['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x5ce1f2[_0x5ce1f2['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x26c91b(0x13b),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1ca)]=0x1b5b]=_0x26c91b(0x1ca),_0x5ce1f2[_0x5ce1f2['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1e5)]=0x1b5d]=_0x26c91b(0x1e5),_0x5ce1f2[_0x5ce1f2['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x235)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1f4)]=0x232a]=_0x26c91b(0x1f4),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1f5)]=0x232b]=_0x26c91b(0x1f5),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x376)]=0x232c]=_0x26c91b(0x376),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x21a)]=0x232d]=_0x26c91b(0x21a),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x23e)]=0x2711]=_0x26c91b(0x23e),_0x5ce1f2[_0x5ce1f2['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x26c91b(0x1a2),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x256)]=0x2713]=_0x26c91b(0x256),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x2df)]=0x2714]=_0x26c91b(0x2df),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x2c3)]=0x271a]=_0x26c91b(0x2c3),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x341)]=0x271b]=_0x26c91b(0x341),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x303)]=0x2af9]=_0x26c91b(0x303),_0x5ce1f2[_0x5ce1f2['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x26c91b(0x359),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x379)]=0x2ee2]='INVALID_INVITE_CODE',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x2ce)]=0x2ee3]=_0x26c91b(0x2ce),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x227)]=0x2ee4]=_0x26c91b(0x227),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x14d)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5ce1f2[_0x5ce1f2['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x26c91b(0x33f),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x279)]=0x32ca]=_0x26c91b(0x279),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1b6)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x220)]=-0x1]='UNRECOGNIZED',_0x5ce1f2))(Be||{}),ns=Object[_0x26c91b(0x30b)],rs=(_0x103767,_0x1301fa,_0x5d138b,_0x172cbb)=>{for(var _0x283b09=_0x172cbb>0x1?void 0x0:_0x172cbb?ns(_0x1301fa,_0x5d138b):_0x1301fa,_0x9af142=_0x103767['length']-0x1,_0x4fa451;_0x9af142>=0x0;_0x9af142--)(_0x4fa451=_0x103767[_0x9af142])&&(_0x283b09=_0x4fa451(_0x283b09)||_0x283b09);return _0x283b09;},ue=(_0x10eb2f,_0x2146d6)=>(_0x78d16,_0x518bc3)=>_0x2146d6(_0x78d16,_0x518bc3,_0x10eb2f);exports['RemoteUniscriptService']=class extends a[_0x26c91b(0x13d)]{constructor(_0x8e2e57,_0x6a0b5d,_0xbeb2dc){const _0x25bf6f=_0x26c91b;super(),this[_0x25bf6f(0x36c)]=_0x8e2e57,this[_0x25bf6f(0x17f)]=_0x6a0b5d,this[_0x25bf6f(0x241)]=_0xbeb2dc;}async[_0x26c91b(0x157)](_0x7d2bff,_0x29546d,_0x1e7206,..._0x351766){const _0x48b4a3=_0x26c91b;var _0x2bca5c,_0x8245fb,_0x5e7c36,_0x2cbdb5;const _0x1230cb=this[_0x48b4a3(0x36c)][_0x48b4a3(0x1a9)]();if(!_0x1230cb)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x35eed3=((_0x2bca5c=this[_0x48b4a3(0x241)][_0x48b4a3(0x1a5)](u[_0x48b4a3(0x1aa)]))!=null?_0x2bca5c:u[_0x48b4a3(0x294)])+'/'+_0x7d2bff+_0x48b4a3(0x2b3)+_0x29546d,_0x552b0d=new URL(window[_0x48b4a3(0x2d1)][_0x48b4a3(0x1e0)]),_0x32de46={'scriptId':_0x7d2bff,'runId':(_0x8245fb=_0x552b0d[_0x48b4a3(0x224)]['get']('runId'))!=null?_0x8245fb:'','function':_0x29546d,'unitId':_0x1230cb[_0x48b4a3(0x10c)](),'argsOfFunction':JSON[_0x48b4a3(0x136)](_0x351766),'invokeId':(_0x5e7c36=_0x1e7206['invokeId'])!=null?_0x5e7c36:'','executionId':(_0x2cbdb5=_0x1e7206[_0x48b4a3(0x29d)])!=null?_0x2cbdb5:''};try{const _0x207894=await this['_httpService'][_0x48b4a3(0x216)](_0x35eed3,{'body':_0x32de46});return _0x207894[_0x48b4a3(0x125)][_0x48b4a3(0x33b)]&&_0x207894[_0x48b4a3(0x125)]['error'][_0x48b4a3(0x215)]!==Be['OK']?_0x48b4a3(0x14f):_0x207894[_0x48b4a3(0x125)]['result'];}catch{return _0x48b4a3(0x14f);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x26c91b(0x357)](G[_0x26c91b(0x378)])),ue(0x2,a[_0x26c91b(0x332)])],exports[_0x26c91b(0x353)]),exports['CollaborationStatusDisplay']=xe,exports[_0x26c91b(0x1bd)]=be,exports[_0x26c91b(0x346)]=we,exports[_0x26c91b(0x209)]=is,exports[_0x26c91b(0x38a)]=je;
@@ -1 +1 @@
1
- 'use strict';function _0x2979(_0x4f2454,_0x45ab87){const _0x559999=_0x5599();return _0x2979=function(_0x29795a,_0x67dba7){_0x29795a=_0x29795a-0x1c7;let _0x54d47b=_0x559999[_0x29795a];return _0x54d47b;},_0x2979(_0x4f2454,_0x45ab87);}function _0x5599(){const _0x287a6e=['60702NeUpTf','627658RXPPvZ','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Local\x20file','Synced','1518470BnBFVE','63gRVsyB','Click\x20to\x20Reconnect','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Syncing\x20server\x20data...','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','245iAZrID','323771UNNaSw','343160MNUrmV','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','exports','Connection\x20failed,\x20please\x20check\x20your\x20network.','848328mLIFmc','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','454650VheqgH','Edit\x20conflicts','Authentication\x20Error','3SamkDR'];_0x5599=function(){return _0x287a6e;};return _0x5599();}const _0x2c63cd=_0x2979;(function(_0x202726,_0x28d684){const _0x2e4e00=_0x2979,_0x4f8243=_0x202726();while(!![]){try{const _0x15f8c2=parseInt(_0x2e4e00(0x1d1))/0x1+-parseInt(_0x2e4e00(0x1dd))/0x2*(-parseInt(_0x2e4e00(0x1db))/0x3)+parseInt(_0x2e4e00(0x1d2))/0x4+parseInt(_0x2e4e00(0x1d8))/0x5+-parseInt(_0x2e4e00(0x1dc))/0x6*(-parseInt(_0x2e4e00(0x1d0))/0x7)+parseInt(_0x2e4e00(0x1d6))/0x8+parseInt(_0x2e4e00(0x1cb))/0x9*(-parseInt(_0x2e4e00(0x1ca))/0xa);if(_0x15f8c2===_0x28d684)break;else _0x4f8243['push'](_0x4f8243['shift']());}catch(_0x54efeb){_0x4f8243['push'](_0x4f8243['shift']());}}}(_0x5599,0x33a47));const e={'collab-client':{'tooltip':{'reconnect':_0x2c63cd(0x1cc)}},'collabStatus':{'fetchMiss':_0x2c63cd(0x1ce),'conflict':_0x2c63cd(0x1d9),'notCollab':_0x2c63cd(0x1c8),'synced':_0x2c63cd(0x1c9),'syncing':'Syncing...','offline':_0x2c63cd(0x1cf)},'session':{'connection-failed':_0x2c63cd(0x1d5),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x2c63cd(0x1d3)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x2c63cd(0x1d7)},'permission':{'title':_0x2c63cd(0x1da),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x2c63cd(0x1c7)},'auth':{'needGotoLoginAlert':_0x2c63cd(0x1cd)}};module[_0x2c63cd(0x1d4)]=e;
1
+ 'use strict';function _0x3e3e(){const _0x3df3b6=['249IWnUzV','635038OpDczB','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Click\x20to\x20Reconnect','30222FGQTGK','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','exports','Collaboration\x20Conflict','Authentication\x20Error','Syncing...','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','245KThnjG','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','28951351pQrRLp','2570UMFSFO','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','4122006BEBEPU','Local\x20file','88fDMgkA','491365DdCqCL','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','1124clfqRo','69052qDsXJa'];_0x3e3e=function(){return _0x3df3b6;};return _0x3e3e();}function _0x484b(_0xcbed02,_0x41fa08){const _0x3e3e1d=_0x3e3e();return _0x484b=function(_0x484bbd,_0x55ecc3){_0x484bbd=_0x484bbd-0x125;let _0x1fb293=_0x3e3e1d[_0x484bbd];return _0x1fb293;},_0x484b(_0xcbed02,_0x41fa08);}const _0x402dd1=_0x484b;(function(_0x23c2a0,_0x443968){const _0x1cc8f3=_0x484b,_0x47b713=_0x23c2a0();while(!![]){try{const _0x2519a8=-parseInt(_0x1cc8f3(0x132))/0x1+parseInt(_0x1cc8f3(0x12f))/0x2*(-parseInt(_0x1cc8f3(0x131))/0x3)+-parseInt(_0x1cc8f3(0x130))/0x4*(-parseInt(_0x1cc8f3(0x13d))/0x5)+-parseInt(_0x1cc8f3(0x12a))/0x6+-parseInt(_0x1cc8f3(0x12d))/0x7*(parseInt(_0x1cc8f3(0x12c))/0x8)+-parseInt(_0x1cc8f3(0x135))/0x9*(parseInt(_0x1cc8f3(0x128))/0xa)+parseInt(_0x1cc8f3(0x127))/0xb;if(_0x2519a8===_0x443968)break;else _0x47b713['push'](_0x47b713['shift']());}catch(_0x39f93a){_0x47b713['push'](_0x47b713['shift']());}}}(_0x3e3e,0x73b88));const e={'collab-client':{'tooltip':{'reconnect':_0x402dd1(0x134)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x402dd1(0x12b),'synced':'Synced','syncing':_0x402dd1(0x13b),'offline':_0x402dd1(0x137)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x402dd1(0x133),'room-full':_0x402dd1(0x12e),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x402dd1(0x139),'content':_0x402dd1(0x136)},'permission':{'title':_0x402dd1(0x13a),'content':_0x402dd1(0x13c)},'collaboration':{'single-unit':{'warning':_0x402dd1(0x126)},'closeRoom':_0x402dd1(0x129)},'auth':{'needGotoLoginAlert':_0x402dd1(0x125)}};module[_0x402dd1(0x138)]=e;