@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505061607 → 0.7.0-nightly.202505091607

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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4a9b73=_0x4899;(function(_0x16658e,_0x5a0048){const _0x249652=_0x4899,_0x355985=_0x16658e();while(!![]){try{const _0x520451=-parseInt(_0x249652(0x208))/0x1*(parseInt(_0x249652(0x166))/0x2)+-parseInt(_0x249652(0x23d))/0x3*(parseInt(_0x249652(0xec))/0x4)+parseInt(_0x249652(0x231))/0x5+-parseInt(_0x249652(0x281))/0x6+-parseInt(_0x249652(0x292))/0x7+-parseInt(_0x249652(0x278))/0x8*(-parseInt(_0x249652(0x26d))/0x9)+parseInt(_0x249652(0x1f5))/0xa*(parseInt(_0x249652(0x26b))/0xb);if(_0x520451===_0x5a0048)break;else _0x355985['push'](_0x355985['shift']());}catch(_0x2f9a29){_0x355985['push'](_0x355985['shift']());}}}(_0x54df,0xa7225));var $t=Object['defineProperty'],xt=(_0x50c67a,_0x2bfdc6,_0x1e7a72)=>_0x2bfdc6 in _0x50c67a?$t(_0x50c67a,_0x2bfdc6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e7a72}):_0x50c67a[_0x2bfdc6]=_0x1e7a72,_=(_0x40e4ce,_0x9cec1d,_0x398916)=>xt(_0x40e4ce,typeof _0x9cec1d!='symbol'?_0x9cec1d+'':_0x9cec1d,_0x398916);import{MemberService as _0x2d8be8,SessionStatus as _0xe08b52,CollaborationSessionService as _0x9e201,CollaborationStatus as _0x167395,CollaborationController as _0x7aeeca,ILocalCacheService as _0x27b901,CollaborationUIEventService as _0x14e4da,CollaborationUIEventId as _0x4ad9d4,DataLoaderService as _0x518104,DocCollaborationEntity as _0x175eda,getLocalCacheKey as _0x20acbd,LOCAL_CACHE_INTERVAL as _0x13bfee,LOCAL_CACHE_INTERVAL_KEY as _0x46d235,UniverCollaborationClientPlugin as _0x15233f,CollaborationSocketService as _0x366dd1,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x59f30c,DEFAULT_WS_SESSION_TICKET_URL as _0x5f12f9,UnitStatus as _0x13e2cd,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x7da6f6,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3beb12}from'@univerjs-pro/collaboration-client';function _0x4899(_0x35c4cf,_0x44d4d2){const _0x54df0c=_0x54df();return _0x4899=function(_0x4899c1,_0x51cb48){_0x4899c1=_0x4899c1-0xc3;let _0x371acf=_0x54df0c[_0x4899c1];return _0x371acf;},_0x4899(_0x35c4cf,_0x44d4d2);}import{RxDisposable as _0x43324a,Disposable as _0x3ca0d9,DOC_RANGE_TYPE as _0x193d3c,Inject as _0x5a910a,Injector as _0x315584,IUniverInstanceService as _0x3d2f4d,ICommandService as _0x125a4d,debounce as _0x42c593,Rectangle as _0x46521d,DisposableCollection as _0x56b3bc,toDisposable as _0x3efb45,UniverInstanceType as _0x4d90ef,Tools as _0x51c666,COLORS as _0x30dfd1,ColorKit as _0x18abcb,ThemeService as _0x40a3a8,fromEventSubject as _0xb20e27,LocaleService as _0x15a6bf,createIdentifier as _0x400d12,ILogService as _0x353efc,Optional as _0x405dd8,Workbook as _0x117e0c,CommandType as _0x5e5d3a,IConfigService as _0x34b4f6,ILocalStorageService as _0x11d7b1,DependentOn as _0x172a10,Plugin as _0x31e378,merge as _0x4ed531,registerDependencies as _0x5a2be1,mergeOverrideWithDependencies as _0x452377,touchDependencies as _0x4ea4eb,generateRandomId as _0x50162d}from'@univerjs/core';import{Shape as _0x4a9018,Rect as _0x55b9e3,getColor as _0x447506,RegularPolygon as _0x183296,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x20ee95,Vector2 as _0x1784a8,SHEET_VIEWPORT_KEY as _0x41ca54,IRenderManagerService as _0x164fdf}from'@univerjs/engine-render';import{ISocketService as _0x1d89e7,WebSocketService as _0x5e2d02,HTTPService as _0x497203}from'@univerjs/network';import{IDocClipboardService as _0x1da422,NodePositionConvertToCursor as _0x2fe4e1,NodePositionConvertToRectRange as _0xfbff7,TEXT_RANGE_LAYER_INDEX as _0x14bb2e,SetDocZoomRatioOperation as _0x6c535a,DocIMEInputManagerService as _0x4d8eea,DocStateChangeManagerService as _0x5c9ae2}from'@univerjs/docs-ui';import{IImageIoService as _0x5cf231}from'@univerjs/drawing';import{BehaviorSubject as _0x4ae7de,debounceTime as _0x1e1485,takeUntil as _0x2c1b93,Subject as _0x4552ef,filter as _0x3bb2b2,switchMap as _0x5d84ac,merge as _0x5f50c0,combineLatest as _0x3dba36,of as _0x12f8ad,fromEvent as _0x578952,shareReplay as _0x554e7a,mapTo as _0x5410f0,distinctUntilChanged as _0x2d4049}from'rxjs';import{SetTextSelectionsOperation as _0xafe29c,RichTextEditingMutation as _0x418958,DocSelectionManagerService as _0x277911,DocSkeletonManagerService as _0x155d5e}from'@univerjs/docs';import{ITransformService as _0x374c61,CollaborationEvent as _0x1680ab,isTransformMutationFailure as _0x5f38d2,isTransformMutationsWithChangesetSuccess as _0x1a68b3,RevisionService as _0x15d859,ISnapshotServerService as _0x3fe37c}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x370b2d,serializeRangeWithSheet as _0x827672}from'@univerjs/engine-formula';import{RefRangeService as _0x5e0628,SetSelectionsOperation as _0x417bbd,SheetsSelectionsService as _0x49f6d2,EffectRefRangId as _0x581f2e,handleIRemoveRow as _0x3ad8bf,handleIRemoveCol as _0x1d067d,handleMoveRange as _0x6bb816,handleInsertRow as _0x34548f,handleInsertRangeMoveRight as _0x2edcd3,handleInsertRangeMoveDown as _0x2b1548,handleInsertCol as _0x50bb6c,handleDeleteRangeMoveUp as _0x4b2b8b,handleDeleteRangeMoveLeft as _0x309e96,runRefRangeMutations as _0x24374a,SetWorksheetActivateCommand as _0x7515ad}from'@univerjs/sheets';import{map as _0x2f99f8,filter as _0x370354,throttleTime as _0x544c43,takeUntil as _0x2ba1c5,switchMap as _0x81e8fe}from'rxjs/operators';import{SheetSkeletonManagerService as _0x12d7f8,getCoordByCell as _0x3771ff,getSheetObject as _0x575758}from'@univerjs/sheets-ui';import{jsx as _0x5d61f1,jsxs as _0x5b1f6e}from'react/jsx-runtime';import{useObservable as _0x5bb2e8,useDependency as _0x4bf2cc,IUIPartsService as _0x10db63,BuiltInUIPart as _0x12c314,connectInjector as _0x4a72c4,IBeforeCloseService as _0x3e6ed3,IMessageService as _0x3be822,INotificationService as _0x4fd550}from'@univerjs/ui';import{Tooltip as _0x1de27a,clsx as _0x212ae4,MessageType as _0x4c15ba}from'@univerjs/design';import{forwardRef as _0x248f87,useRef as _0x298127,createElement as _0xc2cff4,useCallback as _0x43e35a}from'react';import{IRemoteInstanceService as _0x2ec166}from'@univerjs/rpc';var ci=Object[_0x4a9b73(0xc4)],li=(_0x4b808c,_0x54c2d3,_0x5df412,_0x54f2d1)=>{const _0x419061=_0x4a9b73;for(var _0x38250d=_0x54f2d1>0x1?void 0x0:_0x54f2d1?ci(_0x54c2d3,_0x5df412):_0x54c2d3,_0xde6649=_0x4b808c[_0x419061(0x190)]-0x1,_0x2f475c;_0xde6649>=0x0;_0xde6649--)(_0x2f475c=_0x4b808c[_0xde6649])&&(_0x38250d=_0x2f475c(_0x38250d)||_0x38250d);return _0x38250d;},Je=(_0x378a2f,_0x1ad0c3)=>(_0x20cfe3,_0x5da6a0)=>_0x1ad0c3(_0x20cfe3,_0x5da6a0,_0x378a2f);let Ne=class extends _0x43324a{constructor(_0x160c19,_0x50f5e3){const _0x2aa0e6=_0x4a9b73;super(),this[_0x2aa0e6(0x1eb)]=_0x160c19,this[_0x2aa0e6(0x1d6)]=_0x50f5e3,this[_0x2aa0e6(0x2bf)]();}[_0x4a9b73(0x2bf)](){const _0x16bcc3=_0x4a9b73,_0x5c582c=this;this[_0x16bcc3(0xc8)](this[_0x16bcc3(0x1eb)][_0x16bcc3(0x17c)]({'onBeforePasteImage':async _0x4dab10=>{const _0x1ddf72=_0x16bcc3,_0x17e01e=await _0x5c582c[_0x1ddf72(0x1d6)][_0x1ddf72(0x1cc)](_0x4dab10);return _0x17e01e?{'source':_0x17e01e[_0x1ddf72(0x16b)],'imageSourceType':_0x17e01e[_0x1ddf72(0x1ba)]}:null;}}));}};Ne=li([Je(0x0,_0x1da422),Je(0x1,_0x5cf231)],Ne);const Ze=['purple.300',_0x4a9b73(0x211),_0x4a9b73(0xeb),_0x4a9b73(0x22d),_0x4a9b73(0x1a6),_0x4a9b73(0x1b1)];class ke extends _0x3ca0d9{constructor(){const _0x1e34c2=_0x4a9b73;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x1e34c2(0xf4),0x0);}['assignAColorForMemberID'](_0x5901b1){const _0x49c793=_0x4a9b73;if(this[_0x49c793(0x121)][_0x49c793(0x1d7)](_0x5901b1))return this[_0x49c793(0x121)][_0x49c793(0x1fb)](_0x5901b1);const _0x52c327=Ze[this[_0x49c793(0xf4)]];return this[_0x49c793(0xf4)]=(this[_0x49c793(0xf4)]+0x1)%Ze['length'],this['_assignedColors'][_0x49c793(0x106)](_0x5901b1,_0x52c327),_0x52c327;}}function Tt(_0x248381){const _0x4b02da=_0x4a9b73;let _0x5070fc='';for(const _0x5107e1 of _0x248381){const {startOffset:_0x3972d5,endOffset:_0x2051b0,isActive:_0x2eb659,rangeType:_0x4c0e21,segmentId:_0x4c45de,segmentPage:_0xe3b4f7}=_0x5107e1;_0x5070fc[_0x4b02da(0x190)]&&(_0x5070fc+=','),_0x5070fc+=_0x3972d5+':'+_0x2051b0+':'+(_0x2eb659?'1':'0')+':'+_0x4c0e21+':'+_0x4c45de+':'+_0xe3b4f7;}return _0x5070fc;}function _i(_0x169e12){const _0x3014c0=_0x4a9b73,_0x2a80be=_0x169e12[_0x3014c0(0x2ad)](','),_0x16b190=[];for(const _0x2d5f0d of _0x2a80be){const [_0x5716b1,_0x3c9dc6,_0x562d12,_0x50993c,_0x22f81c,_0x259b9c]=_0x2d5f0d[_0x3014c0(0x2ad)](':');_0x16b190['push']({'startOffset':Number(_0x5716b1),'endOffset':Number(_0x3c9dc6),'collapsed':_0x5716b1===_0x3c9dc6,'isActive':_0x562d12==='1','rangeType':_0x50993c===_0x193d3c[_0x3014c0(0x18f)]?_0x193d3c[_0x3014c0(0x18f)]:_0x193d3c[_0x3014c0(0xf5)],'segmentId':typeof _0x22f81c==_0x3014c0(0xd9)?String(_0x22f81c):'','segmentPage':Number(_0x259b9c!=null?_0x259b9c:-0x1)});}return _0x16b190[_0x3014c0(0x296)](_0x180ec3=>_0x180ec3[_0x3014c0(0xce)])||(_0x16b190[0x0][_0x3014c0(0xce)]=!0x0),_0x16b190;}class He extends _0x43324a{constructor(){const _0x1b1f41=_0x4a9b73;super(...arguments),_(this,_0x1b1f41(0x277),new _0x4ae7de(null)),_(this,'collabCursorState$',this[_0x1b1f41(0x277)][_0x1b1f41(0x2bc)]());}[_0x4a9b73(0xe2)](_0x46307a){const _0x1558da=_0x4a9b73,{unitID:_0x26e883,memberID:_0xf0ebfe,textRanges:_0x50d06c}=_0x46307a,_0x37b449=Tt(_0x50d06c);if(_0x37b449==='')return;const _0x19d6c9={'unitID':_0x26e883,'memberID':_0xf0ebfe,'selection':_0x37b449};this[_0x1558da(0x277)][_0x1558da(0x21f)](_0x19d6c9);}}var hi=Object['getOwnPropertyDescriptor'],ui=(_0x4ac629,_0x1433f6,_0x353b4f,_0x5f2385)=>{const _0x4a9049=_0x4a9b73;for(var _0x1ea9d0=_0x5f2385>0x1?void 0x0:_0x5f2385?hi(_0x1433f6,_0x353b4f):_0x1433f6,_0x2f3160=_0x4ac629[_0x4a9049(0x190)]-0x1,_0x4a7cca;_0x2f3160>=0x0;_0x2f3160--)(_0x4a7cca=_0x4ac629[_0x2f3160])&&(_0x1ea9d0=_0x4a7cca(_0x1ea9d0)||_0x1ea9d0);return _0x1ea9d0;},L=(_0x5ae919,_0x2022a3)=>(_0x52f737,_0x246a53)=>_0x2022a3(_0x52f737,_0x246a53,_0x5ae919);const di=0x12c,fi=0x64;let Ue=class extends _0x43324a{constructor(_0x2d2dc0,_0x2eb961,_0x28ddf6,_0x540461,_0x16dfdb,_0x5a44aa,_0x1ea72a,_0x1d6c04,_0x2e2a9c){const _0x5d56a4=_0x4a9b73;super(),_(this,_0x5d56a4(0xe1),!0x1),_(this,_0x5d56a4(0x2bf),!0x1),_(this,_0x5d56a4(0x220),new _0x4ae7de(new Map())),_(this,'cursorInfo$',this[_0x5d56a4(0x220)][_0x5d56a4(0x2bc)]()),_(this,'_roomMembers$',new _0x4ae7de([])),_(this,_0x5d56a4(0xfe),this['_roomMembers$'][_0x5d56a4(0x1c1)](_0x1e1485(di))),_(this,_0x5d56a4(0xd4),_0x42c593(_0xe88f43=>{const _0x349ab6=_0x5d56a4,_0x5848ef={'eventID':_0x1680ab['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x349ab6(0x153)][_0x349ab6(0x1f9)](),'selection':Tt(_0xe88f43)}};this[_0x349ab6(0x153)]['send'](_0x5848ef,this[_0x349ab6(0x15e)]);},fi)),(this[_0x5d56a4(0x15e)]=_0x2d2dc0,this['_session']=_0x2eb961,this[_0x5d56a4(0x23c)]=_0x28ddf6,this[_0x5d56a4(0x18b)]=_0x540461,this['_memberService']=_0x16dfdb,this['_syncEditingCollabCursorService']=_0x5a44aa,this[_0x5d56a4(0x20b)]=_0x1ea72a,this['_univerInstanceService']=_0x1d6c04,this[_0x5d56a4(0x189)]=_0x2e2a9c);}get[_0x4a9b73(0x294)](){const _0x298a51=_0x4a9b73;return this[_0x298a51(0x220)][_0x298a51(0x1fd)]();}get[_0x4a9b73(0x130)](){const _0x35eca7=_0x4a9b73;return this[_0x35eca7(0x271)][_0x35eca7(0x1fd)]();}[_0x4a9b73(0x197)](){const _0x1f483b=_0x4a9b73;super[_0x1f483b(0x197)](),this['_cursorInfo$']['next'](new Map()),this[_0x1f483b(0x220)][_0x1f483b(0x24a)](),this['_roomMembers$'][_0x1f483b(0x21f)]([]),this[_0x1f483b(0x271)][_0x1f483b(0x24a)]();}[_0x4a9b73(0x14a)](){const _0xbc127f=_0x4a9b73;this[_0xbc127f(0x2bf)]||(this[_0xbc127f(0x2bf)]=!0x0,this[_0xbc127f(0x153)][_0xbc127f(0x26c)]['pipe'](_0x2c1b93(this[_0xbc127f(0x282)]))[_0xbc127f(0x257)](_0x3dee96=>{const _0x37abdc=_0xbc127f;_0x3dee96===_0xe08b52[_0x37abdc(0x27e)]?this['_toggleOnline']():this[_0x37abdc(0x1e0)]();}),this[_0xbc127f(0x153)][_0xbc127f(0x11c)][_0xbc127f(0x1c1)](_0x2c1b93(this[_0xbc127f(0x282)]))[_0xbc127f(0x257)](_0x4319e2=>{const _0x35aa19=_0xbc127f,_0x22a330=_0x4319e2[_0x35aa19(0x1c9)];_0x22a330===_0x1680ab[_0x35aa19(0x1da)]&&this[_0x35aa19(0x160)](_0x4319e2),_0x22a330===_0x1680ab['USERS_LEAVE']&&this['_onCursorDelete'](_0x4319e2);}),this['disposeWithMe'](this[_0xbc127f(0x189)][_0xbc127f(0x269)](_0x25dbc0=>{const _0xc35cc9=_0xbc127f,_0x46ec9a=_0x25dbc0['params'];_0x46ec9a!=null&&this[_0xc35cc9(0xe1)]&&_0x25dbc0['id']===_0xafe29c['id']&&_0x46ec9a[_0xc35cc9(0x172)]===this['unitID']&&_0x46ec9a['isEditing']===!0x1&&_0x46ec9a[_0xc35cc9(0x21c)][_0xc35cc9(0x190)]>0x0&&this['_updateLocalCursor'](_0x46ec9a[_0xc35cc9(0x21c)]);})),this[_0xbc127f(0x230)]['collabCursorState$'][_0xbc127f(0x1c1)](_0x2c1b93(this['dispose$']))[_0xbc127f(0x257)](_0x51334f=>{const _0x9cc73a=_0xbc127f;if((_0x51334f==null?void 0x0:_0x51334f[_0x9cc73a(0x15e)])!==this[_0x9cc73a(0x15e)])return;const _0x11fe8a={'eventID':_0x1680ab['UPDATE_CURSOR'],'data':_0x51334f};this[_0x9cc73a(0x160)](_0x11fe8a);}),this[_0xbc127f(0xc8)](this[_0xbc127f(0x189)][_0xbc127f(0x269)](_0x21fc4c=>{const _0x2d3fce=_0xbc127f;if(_0x21fc4c[_0x2d3fce(0x15c)]==null)return;const _0x3ce84d=_0x21fc4c[_0x2d3fce(0x15c)];if(_0x21fc4c['id']!==_0x418958['id']||_0x3ce84d[_0x2d3fce(0x172)]!==this[_0x2d3fce(0x15e)])return;const _0x52ebad={'id':'doc.mutation.rich-text-editing','params':_0x3ce84d},_0x32a4b0=this['cursorInfo'];for(const [_0xb3ac9f,_0x2a50fa]of _0x32a4b0){const _0x3dc68d={'id':_0x2d3fce(0x24e),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2a50fa[_0x2d3fce(0x21c)]}},_0x1b035a=this[_0x2d3fce(0x20b)]['transformMutation'](_0x52ebad,_0x3dc68d,!0x1);if(_0x5f38d2(_0x1b035a))throw _0x1b035a[_0x2d3fce(0x25e)];_0x32a4b0[_0x2d3fce(0x106)](_0xb3ac9f,{..._0x2a50fa,'ranges':_0x1b035a[_0x2d3fce(0xdb)][_0x2d3fce(0x15c)][_0x2d3fce(0x207)]});}queueMicrotask(()=>{const _0x4cc66b=_0x2d3fce;this[_0x4cc66b(0x220)][_0x4cc66b(0x21f)](_0x32a4b0);});})));}[_0x4a9b73(0x160)](_0x1e85c1){const _0x57c731=_0x4a9b73;var _0x56d0f2,_0x1a0fd3;const {memberID:_0x16b461,selection:_0x359674}=_0x1e85c1[_0x57c731(0x29c)],_0x4264b7=_i(_0x359674),_0x4ec472=(_0x1a0fd3=(_0x56d0f2=this[_0x57c731(0x196)]['getMember'](this[_0x57c731(0x15e)],_0x16b461))==null?void 0x0:_0x56d0f2[_0x57c731(0x1ae)])!=null?_0x1a0fd3:_0x57c731(0x267),_0x3153c7={'color':this['_colorAssignService'][_0x57c731(0x117)](_0x16b461),'name':_0x4ec472,'ranges':_0x4264b7},_0x3040cd=this[_0x57c731(0x294)];_0x3040cd[_0x57c731(0x106)](_0x16b461,_0x3153c7),this['_cursorInfo$'][_0x57c731(0x21f)](_0x3040cd);}[_0x4a9b73(0x25d)](_0x226fac){const _0xd37064=_0x4a9b73,{memberID:_0x283f98}=_0x226fac['data'],_0x2ea933=this[_0xd37064(0x294)];_0x2ea933['delete'](_0x283f98),this[_0xd37064(0x220)]['next'](_0x2ea933);}[_0x4a9b73(0x262)](){const _0x14840e=_0x4a9b73;var _0x4b51ed;if(this[_0x14840e(0xe1)]=!0x0,((_0x4b51ed=this[_0x14840e(0x283)][_0x14840e(0x115)]())==null?void 0x0:_0x4b51ed[_0x14840e(0x1ce)]())!==this[_0x14840e(0x15e)])return;const _0x4c91d0=this[_0x14840e(0x23c)][_0x14840e(0x1fb)](_0x277911)['getDocRanges']();Array[_0x14840e(0x1fc)](_0x4c91d0)&&_0x4c91d0[_0x14840e(0x190)]>0x0&&this['_updateLocalCursor'](_0x4c91d0);}[_0x4a9b73(0x1e0)](){const _0x2ee6b5=_0x4a9b73;this[_0x2ee6b5(0xe1)]=!0x1;}};Ue=ui([L(0x2,_0x5a910a(_0x315584)),L(0x3,_0x5a910a(ke)),L(0x4,_0x5a910a(_0x2d8be8)),L(0x5,_0x5a910a(He)),L(0x6,_0x374c61),L(0x7,_0x3d2f4d),L(0x8,_0x125a4d)],Ue);var Si=Object[_0x4a9b73(0xc4)],mi=(_0x465ae6,_0x375afa,_0x1082b2,_0x416cad)=>{const _0x3e6684=_0x4a9b73;for(var _0x372d6f=_0x416cad>0x1?void 0x0:_0x416cad?Si(_0x375afa,_0x1082b2):_0x375afa,_0x283f75=_0x465ae6[_0x3e6684(0x190)]-0x1,_0xde1d40;_0x283f75>=0x0;_0x283f75--)(_0xde1d40=_0x465ae6[_0x283f75])&&(_0x372d6f=_0xde1d40(_0x372d6f)||_0x372d6f);return _0x372d6f;},x=(_0x42c58a,_0x3b2380)=>(_0xc9cdb5,_0x34f704)=>_0x3b2380(_0xc9cdb5,_0x34f704,_0x42c58a);const gi=0x12c,Ii=0x64,vi=()=>{let _0x16b056=[],_0x2bfb43=!0x1;return _0x2a5847=>{const _0x153bcf=_0x4899;_0x16b056[_0x153bcf(0x24c)](_0x2a5847),_0x2bfb43||(_0x2bfb43=!0x0,setTimeout(()=>{const _0x31330e=_0x153bcf;_0x16b056[_0x31330e(0x263)](_0x1c42db=>_0x1c42db()),_0x16b056=[],_0x2bfb43=!0x1;}));};};let Me=class extends _0x43324a{constructor(_0x58fa16,_0x3503d9,_0x427615,_0x87bd0d,_0x5b2b10,_0x3eccfc,_0x5bc96b,_0x3aceb5){const _0x19723e=_0x4a9b73;super(),_(this,'_online',!0x1),_(this,_0x19723e(0x2bf),!0x1),_(this,'_cursorInfo$',new _0x4ae7de(new Map())),_(this,_0x19723e(0x261),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new _0x4ae7de([])),_(this,_0x19723e(0xfe),this[_0x19723e(0x271)][_0x19723e(0x1c1)](_0x1e1485(gi))),_(this,'_updateLocalCursor',_0x42c593((_0x1bb95a,_0x9d489f)=>{const _0x18d69c=_0x19723e,_0x47af21={'eventID':_0x1680ab[_0x18d69c(0x1da)],'data':{'unitID':this[_0x18d69c(0x15e)],'memberID':this[_0x18d69c(0x153)]['getMemberID'](),'selection':_0x827672(_0x1bb95a,_0x9d489f['range'])}};this[_0x18d69c(0x153)]['send'](_0x47af21,this[_0x18d69c(0x15e)]);},Ii)),(this[_0x19723e(0x15e)]=_0x58fa16,this[_0x19723e(0x153)]=_0x3503d9,this['_injector']=_0x427615,this[_0x19723e(0x18b)]=_0x87bd0d,this[_0x19723e(0x196)]=_0x5b2b10,this['_univerInstanceService']=_0x3eccfc,this[_0x19723e(0x189)]=_0x5bc96b,this[_0x19723e(0x2a0)]=_0x3aceb5);}get[_0x4a9b73(0x294)](){const _0x4c65fc=_0x4a9b73;return this[_0x4c65fc(0x220)][_0x4c65fc(0x1fd)]();}get[_0x4a9b73(0x130)](){const _0x4a008f=_0x4a9b73;return this['_roomMembers$'][_0x4a008f(0x1fd)]();}['dispose'](){const _0x462067=_0x4a9b73;super[_0x462067(0x197)](),this[_0x462067(0x220)][_0x462067(0x21f)](new Map()),this[_0x462067(0x220)][_0x462067(0x24a)](),this[_0x462067(0x271)][_0x462067(0x21f)]([]),this[_0x462067(0x271)][_0x462067(0x24a)]();}[_0x4a9b73(0x14a)](){const _0x72d968=_0x4a9b73;this['_init']||(this[_0x72d968(0x2bf)]=!0x0,this[_0x72d968(0x153)][_0x72d968(0x26c)][_0x72d968(0x1c1)](_0x2c1b93(this['dispose$']))[_0x72d968(0x257)](_0x1505dd=>{const _0x1f0d0f=_0x72d968;_0x1505dd===_0xe08b52[_0x1f0d0f(0x27e)]?this[_0x1f0d0f(0x262)]():this[_0x1f0d0f(0x1e0)]();}),this[_0x72d968(0x153)][_0x72d968(0x11c)][_0x72d968(0x1c1)](_0x2c1b93(this[_0x72d968(0x282)]))[_0x72d968(0x257)](_0x580322=>{const _0x138a53=_0x72d968,_0x365e32=_0x580322[_0x138a53(0x1c9)];_0x365e32===_0x1680ab[_0x138a53(0x1da)]&&this[_0x138a53(0x160)](_0x580322),_0x365e32===_0x1680ab[_0x138a53(0x1fe)]&&this[_0x138a53(0x25d)](_0x580322);}),this[_0x72d968(0x1fa)](),this[_0x72d968(0xc8)](this[_0x72d968(0x189)][_0x72d968(0x269)](_0x3b0984=>{const _0x1770ff=_0x72d968;if(this['_online']&&_0x3b0984['id']===_0x417bbd['id']&&_0x3b0984[_0x1770ff(0x15c)][_0x1770ff(0x172)]===this['unitID']){const _0x5d292b=_0x3b0984[_0x1770ff(0x15c)];this[_0x1770ff(0xd4)](_0x5d292b[_0x1770ff(0x239)],_0x5d292b[_0x1770ff(0x236)][0x0]);}})));}['_onCursorUpdate'](_0x3aec43){const _0x11a7c1=_0x4a9b73;var _0x592f36,_0x3102cc;const {memberID:_0x582045,selection:_0xa4bd73}=_0x3aec43[_0x11a7c1(0x29c)],{sheetName:_0x31b12a,range:_0x31c840}=_0x370b2d(_0xa4bd73),_0x5813c3={'name':(_0x3102cc=(_0x592f36=this[_0x11a7c1(0x196)]['getMember'](this['unitID'],_0x582045))==null?void 0x0:_0x592f36[_0x11a7c1(0x1ae)])!=null?_0x3102cc:_0x11a7c1(0x267),'range':this['_getMergeRange'](_0x31b12a,_0x31c840),'sheetID':_0x31b12a,'color':this[_0x11a7c1(0x18b)][_0x11a7c1(0x117)](_0x582045),'selection':_0xa4bd73},_0x3b48fa=this[_0x11a7c1(0x294)];_0x3b48fa[_0x11a7c1(0x106)](_0x582045,_0x5813c3),this[_0x11a7c1(0x220)][_0x11a7c1(0x21f)](_0x3b48fa);}[_0x4a9b73(0x25d)](_0x3c71e7){const _0x99ec17=_0x4a9b73,{memberID:_0x36ca03}=_0x3c71e7[_0x99ec17(0x29c)],_0x4ec010=this[_0x99ec17(0x294)];_0x4ec010[_0x99ec17(0x19f)](_0x36ca03),this['_cursorInfo$'][_0x99ec17(0x21f)](_0x4ec010);}[_0x4a9b73(0xde)](_0x5d6815,_0x166dff){const _0x33b78e=_0x4a9b73;var _0x572355,_0x31e83f;const _0x4f96ac=(_0x31e83f=(_0x572355=this['_univerInstanceService'][_0x33b78e(0x223)](this[_0x33b78e(0x15e)]))==null?void 0x0:_0x572355[_0x33b78e(0x24b)](_0x5d6815))==null?void 0x0:_0x31e83f[_0x33b78e(0xd3)]();return(_0x4f96ac==null?void 0x0:_0x4f96ac['find'](_0x1e9485=>_0x46521d[_0x33b78e(0x2b1)](_0x1e9485,_0x166dff)))||_0x166dff;}['_onRefRangeChange'](){const _0x583a79=_0x4a9b73,_0x1004af=new _0x56b3bc(),_0x4272f2=vi(),_0x55e304=()=>{const _0x16940f=_0x4899;_0x1004af[_0x16940f(0x197)]();const _0x60885=(_0x32eae4,_0x204394,_0x55c233,_0x32dfbb)=>{const _0x1f832b=_0x16940f;let _0x517006=[];switch(_0x32eae4['id']){case _0x581f2e[_0x1f832b(0x266)]:{_0x517006=_0x309e96(_0x32eae4,_0x32dfbb);break;}case _0x581f2e[_0x1f832b(0x1ab)]:{_0x517006=_0x4b2b8b(_0x32eae4,_0x32dfbb);break;}case _0x581f2e['InsertColCommandId']:{_0x517006=_0x50bb6c(_0x32eae4,_0x32dfbb);break;}case _0x581f2e[_0x1f832b(0x101)]:{_0x517006=_0x2b1548(_0x32eae4,_0x32dfbb);break;}case _0x581f2e[_0x1f832b(0x140)]:{_0x517006=_0x2edcd3(_0x32eae4,_0x32dfbb);break;}case _0x581f2e['InsertRowCommandId']:{_0x517006=_0x34548f(_0x32eae4,_0x32dfbb);break;}case _0x581f2e['MoveRangeCommandId']:{_0x517006=_0x6bb816(_0x32eae4,_0x32dfbb);break;}case _0x581f2e[_0x1f832b(0x170)]:{_0x517006=_0x1d067d(_0x32eae4,_0x32dfbb);break;}case _0x581f2e[_0x1f832b(0xfa)]:{_0x517006=_0x3ad8bf(_0x32eae4,_0x32dfbb);break;}}const _0x527cc9=_0x24374a(_0x517006,_0x32dfbb),_0xee007d=this['cursorInfo'][_0x1f832b(0x1fb)](_0x204394);if(_0xee007d&&_0x527cc9){const _0x71c11a={..._0xee007d,'range':_0x527cc9};this[_0x1f832b(0x294)][_0x1f832b(0x106)](_0x204394,_0x71c11a),_0x4272f2(()=>{const _0x461dd7=_0x1f832b,_0x4a7302=this[_0x461dd7(0x2a0)][_0x461dd7(0xf6)](_0x527cc9,_0x3bdaa0=>(_0x4a7302[_0x461dd7(0x197)](),_0x60885(_0x3bdaa0,_0x204394,_0x55c233,_0x527cc9)));_0x1004af[_0x461dd7(0x29f)](_0x4a7302);});}return{'redos':[],'undos':[]};};this[_0x16940f(0x294)][_0x16940f(0x263)]((_0xdd0da9,_0x3bdc5e)=>{const _0x5469e3=_0x16940f,{range:_0x1c5cfb,sheetID:_0x2b2cb3}=_0xdd0da9,_0x452317=this[_0x5469e3(0x2a0)][_0x5469e3(0xf6)](_0x1c5cfb,_0x24e629=>(_0x452317[_0x5469e3(0x197)](),_0x60885(_0x24e629,_0x3bdc5e,_0x2b2cb3,_0x1c5cfb)));_0x1004af[_0x5469e3(0x29f)](_0x452317);});};this[_0x583a79(0xc8)](_0x3efb45(this['_cursorInfo$'][_0x583a79(0x257)](()=>{_0x55e304();})));}[_0x4a9b73(0x262)](){const _0x47b162=_0x4a9b73;var _0x5d9e5b,_0x1d04c8;if(this['_online']=!0x0,((_0x5d9e5b=this[_0x47b162(0x283)][_0x47b162(0x115)]())==null?void 0x0:_0x5d9e5b['getUnitId']())!==this['unitID'])return;const _0x335e32=(_0x1d04c8=this['_injector'][_0x47b162(0x1fb)](_0x49f6d2)['getCurrentSelections']())==null?void 0x0:_0x1d04c8[0x0],_0x2d5c57=this[_0x47b162(0x283)][_0x47b162(0x1cf)](_0x4d90ef[_0x47b162(0x13c)])['getActiveSheet']();_0x335e32&&_0x2d5c57&&this['_updateLocalCursor'](_0x2d5c57[_0x47b162(0x23e)](),_0x335e32);}[_0x4a9b73(0x1e0)](){this['_online']=!0x1;}};Me=mi([x(0x2,_0x5a910a(_0x315584)),x(0x3,_0x5a910a(ke)),x(0x4,_0x5a910a(_0x2d8be8)),x(0x5,_0x3d2f4d),x(0x6,_0x125a4d),x(0x7,_0x5a910a(_0x5e0628))],Me);var pi=Object['getOwnPropertyDescriptor'],Ci=(_0x79a2c2,_0x5c64a1,_0x5aa2ec,_0x48445b)=>{const _0x17db7e=_0x4a9b73;for(var _0x50b981=_0x48445b>0x1?void 0x0:_0x48445b?pi(_0x5c64a1,_0x5aa2ec):_0x5c64a1,_0x3904c3=_0x79a2c2[_0x17db7e(0x190)]-0x1,_0x1dbaf1;_0x3904c3>=0x0;_0x3904c3--)(_0x1dbaf1=_0x79a2c2[_0x3904c3])&&(_0x50b981=_0x1dbaf1(_0x50b981)||_0x50b981);return _0x50b981;},Se=(_0x1c9627,_0x231c40)=>(_0x23b42a,_0x42f0c9)=>_0x231c40(_0x23b42a,_0x42f0c9,_0x1c9627);let H=class extends _0x43324a{constructor(_0x1b997e,_0x3126ba,_0x23fa04){const _0x16938d=_0x4a9b73;super(),_(this,_0x16938d(0x1bc),new Map()),_(this,'_entityInit$',new _0x4552ef()),(this[_0x16938d(0x283)]=_0x1b997e,this[_0x16938d(0x23c)]=_0x3126ba,this[_0x16938d(0x298)]=_0x23fa04,this[_0x16938d(0x2bf)]());}['dispose'](){const _0x2a09b1=_0x4a9b73;super[_0x2a09b1(0x197)](),this[_0x2a09b1(0x143)][_0x2a09b1(0x24a)](),this[_0x2a09b1(0x1bc)]['forEach'](_0x4e510d=>_0x4e510d['dispose']());}[_0x4a9b73(0x15d)](_0x5163da){const _0x1823da=_0x4a9b73;return this[_0x1823da(0x1bc)][_0x1823da(0x1d7)](_0x5163da)?this[_0x1823da(0x1bc)][_0x1823da(0x1fb)](_0x5163da)[_0x1823da(0x261)]:this[_0x1823da(0x143)][_0x1823da(0x1c1)](_0x3bb2b2(_0x3719c2=>_0x3719c2[_0x1823da(0x15e)]===_0x5163da),_0x5d84ac(_0x16ea44=>_0x16ea44[_0x1823da(0x261)]));}['_init'](){const _0x226520=_0x4a9b73;this[_0x226520(0x283)][_0x226520(0x1ca)](_0x4d90ef[_0x226520(0x13c)])[_0x226520(0x1c1)](_0x2c1b93(this[_0x226520(0x282)]))[_0x226520(0x257)](async _0x307c2b=>{const _0x31975b=_0x226520,_0x3ff53c=_0x307c2b[_0x31975b(0x1ce)](),_0x2787bf=await this[_0x31975b(0x259)](_0x3ff53c);this[_0x31975b(0x143)][_0x31975b(0x21f)](_0x2787bf),this[_0x31975b(0x1bc)]['set'](_0x3ff53c,_0x2787bf);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4d90ef['UNIVER_DOC'])[_0x226520(0x1c1)](_0x2c1b93(this[_0x226520(0x282)]))[_0x226520(0x1c1)](_0x3bb2b2(_0x458504=>!_0x458504['getUnitId']()[_0x226520(0x1ac)]('__')))[_0x226520(0x257)](async _0x3c26ad=>{const _0x31fcbf=_0x226520,_0x325545=_0x3c26ad[_0x31fcbf(0x1ce)](),_0x1141c0=await this[_0x31fcbf(0x27b)](_0x325545);this[_0x31fcbf(0x143)][_0x31fcbf(0x21f)](_0x1141c0),this[_0x31fcbf(0x1bc)][_0x31fcbf(0x106)](_0x325545,_0x1141c0);}),_0x5f50c0(this[_0x226520(0x283)][_0x226520(0x276)](_0x4d90ef['UNIVER_DOC']),this[_0x226520(0x283)][_0x226520(0x276)](_0x4d90ef[_0x226520(0x13c)]))[_0x226520(0x1c1)](_0x2c1b93(this[_0x226520(0x282)]))[_0x226520(0x257)](_0x1c3a7d=>{const _0x30039d=_0x226520,_0x5ed1f8=_0x1c3a7d['getUnitId'](),_0x4d77ff=this[_0x30039d(0x1bc)][_0x30039d(0x1fb)](_0x5ed1f8);_0x4d77ff&&(_0x4d77ff[_0x30039d(0x197)](),this[_0x30039d(0x1bc)][_0x30039d(0x19f)](_0x5ed1f8));});}async[_0x4a9b73(0x259)](_0x209d4f){const _0x3638a9=_0x4a9b73,_0x59069d=await this[_0x3638a9(0x298)][_0x3638a9(0x17f)](_0x209d4f),_0x27ecf9=this['_injector'][_0x3638a9(0x1bb)](Me,_0x209d4f,_0x59069d);return _0x27ecf9[_0x3638a9(0x14a)](),_0x27ecf9;}async[_0x4a9b73(0x27b)](_0x4abc03){const _0x1ac86a=_0x4a9b73,_0xf62362=await this[_0x1ac86a(0x298)][_0x1ac86a(0x17f)](_0x4abc03),_0x11d045=this[_0x1ac86a(0x23c)][_0x1ac86a(0x1bb)](Ue,_0x4abc03,_0xf62362);return _0x11d045[_0x1ac86a(0x14a)](),_0x11d045;}};H=Ci([Se(0x0,_0x3d2f4d),Se(0x1,_0x5a910a(_0x315584)),Se(0x2,_0x5a910a(_0x9e201))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x2c3a17,_0x34ea8a){const _0x403062=_0x4a9b73;let {radius:_0x12f567,width:_0x22e9e3,height:_0x56b44c}=_0x34ea8a;_0x12f567=_0x12f567!=null?_0x12f567:0x0,_0x22e9e3=_0x22e9e3!=null?_0x22e9e3:0x1e,_0x56b44c=_0x56b44c!=null?_0x56b44c:0x1e;let _0x1b5103=0x0,_0x1e07bf=0x0,_0x273972=0x0;_0x1b5103=_0x1e07bf=_0x273972=Math['min'](_0x12f567,_0x22e9e3/0x2,_0x56b44c/0x2),_0x2c3a17['beginPath'](),_0x2c3a17['moveTo'](_0x1b5103,0x0),_0x2c3a17[_0x403062(0x1f8)](_0x22e9e3-_0x1e07bf,0x0),_0x2c3a17[_0x403062(0x141)](_0x22e9e3-_0x1e07bf,_0x1e07bf,_0x1e07bf,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c3a17[_0x403062(0x1f8)](_0x22e9e3,_0x56b44c-_0x273972),_0x2c3a17[_0x403062(0x141)](_0x22e9e3-_0x273972,_0x56b44c-_0x273972,_0x273972,0x0,Math['PI']/0x2,!0x1),_0x2c3a17[_0x403062(0x1f8)](0x0,_0x56b44c),_0x2c3a17[_0x403062(0x1f8)](0x0,_0x1b5103),_0x2c3a17[_0x403062(0x141)](_0x1b5103,_0x1b5103,_0x1b5103,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c3a17[_0x403062(0x209)](),_0x34ea8a['fill']&&(_0x2c3a17[_0x403062(0x125)](),_0x2c3a17[_0x403062(0x16e)]=_0x34ea8a[_0x403062(0x1a7)],_0x34ea8a[_0x403062(0x161)]===_0x403062(0x1d0)?_0x2c3a17[_0x403062(0x1a7)](_0x403062(0x1d0)):_0x2c3a17[_0x403062(0x1a7)](),_0x2c3a17[_0x403062(0x192)]());}class he extends _0x4a9018{constructor(_0x4277d0,_0x451648){const _0x227e8a=_0x4a9b73;super(_0x4277d0,_0x451648),_(this,'color'),_(this,_0x227e8a(0x248)),(this[_0x227e8a(0x1b2)]=_0x451648==null?void 0x0:_0x451648[_0x227e8a(0x1b2)],this[_0x227e8a(0x248)]=_0x451648==null?void 0x0:_0x451648[_0x227e8a(0x248)]);}static[_0x4a9b73(0x175)](_0x560c5b,_0x3fe90c){const _0x45e4b8=_0x4a9b73,{text:_0x26bbd0,color:_0x3906c3}=_0x3fe90c;_0x560c5b[_0x45e4b8(0x125)](),_0x560c5b['font']=_0x45e4b8(0x107);const _0x49d072=_0x560c5b['measureText'](_0x26bbd0)['width'],_0x1ca15d=Math[_0x45e4b8(0x29e)](_0x49d072+0x2*me,Qe);Oi(_0x560c5b,{'height':ee,'radius':0x4,'width':_0x1ca15d,'fill':_0x3906c3}),_0x560c5b[_0x45e4b8(0x16e)]=_0x45e4b8(0x145);const _0x585be7=me,_0x1e806c=ee-Ei,_0x509bb7=Qe-0x2*me;if(_0x49d072>_0x509bb7){let _0x36a2f8='',_0x12441e=0x0;for(const _0x5e9469 of _0x26bbd0){const _0x1a9788=_0x560c5b[_0x45e4b8(0x12c)](_0x5e9469)['width'];if(_0x12441e+_0x1a9788<=_0x509bb7-_0x560c5b[_0x45e4b8(0x12c)](_0x45e4b8(0x17e))[_0x45e4b8(0x163)])_0x36a2f8+=_0x5e9469,_0x12441e+=_0x1a9788;else{_0x36a2f8+='...';break;}}_0x560c5b[_0x45e4b8(0x265)](_0x36a2f8,_0x585be7,_0x1e806c);}else _0x560c5b[_0x45e4b8(0x265)](_0x26bbd0,_0x585be7,_0x1e806c);_0x560c5b[_0x45e4b8(0x192)]();}['_draw'](_0x4262ea){const _0x5f0d30=_0x4a9b73;he[_0x5f0d30(0x175)](_0x4262ea,this);}}const ge='collab-text-anchor-',bi='collab-text-range-',Ti=_0x4a9b73(0x10e),X=0x6,Ri=1.5,Ie=0x4,Di=1.5,Ni='rgba(255,\x20255,\x20255,\x200.01)';class qe{constructor(_0x1f905a,_0x1dccd8,_0x260154,_0x1d9254){const _0x3f9627=_0x4a9b73;_(this,'_shapes',[]),_(this,_0x3f9627(0x118),null),_(this,'_textBubble',null),_(this,_0x3f9627(0x15a),null),_(this,'_hideTimer',null),_(this,_0x3f9627(0x28a),null),(this[_0x3f9627(0x108)]=_0x1f905a,this['_scene']=_0x1dccd8,this[_0x3f9627(0x238)]=_0x260154,this[_0x3f9627(0x28f)]=_0x1d9254,this[_0x3f9627(0x17b)]());}set[_0x4a9b73(0xcd)](_0x15e0eb){const _0x3c36a6=_0x4a9b73;_0x15e0eb?(this[_0x3c36a6(0x15a)]&&this[_0x3c36a6(0x15a)][_0x3c36a6(0x149)](),this[_0x3c36a6(0x164)]&&this[_0x3c36a6(0x164)]['show']()):(this[_0x3c36a6(0x15a)]&&this[_0x3c36a6(0x15a)]['show'](),this[_0x3c36a6(0x164)]&&this[_0x3c36a6(0x164)][_0x3c36a6(0x149)]());}[_0x4a9b73(0x197)](){const _0x1f687d=_0x4a9b73;for(const _0x17e426 of this[_0x1f687d(0x275)])_0x17e426[_0x1f687d(0x197)]();this[_0x1f687d(0x164)]&&this[_0x1f687d(0x164)]['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x1f687d(0x197)](),this['_anchor']&&this[_0x1f687d(0x118)][_0x1f687d(0x197)](),this[_0x1f687d(0x28a)]&&this[_0x1f687d(0x28a)]();}[_0x4a9b73(0x17b)](){const _0x593858=_0x4a9b73;var _0x3ccc75;const {_docSkeleton:_0xe9cdfe,_document:_0x4cbf40}=this,{color:_0x3324af,name:_0x251eba,ranges:_0xa0f0d4}=this['_cursor'],_0x1e2c11=_0x4cbf40[_0x593858(0x295)](),{docsLeft:_0xfeba98,docsTop:_0x647d55}=_0x1e2c11,_0x396a4d=new _0x2fe4e1(_0x1e2c11,_0xe9cdfe);for(const {startOffset:_0xc4aa3,endOffset:_0x461697,rangeType:_0x8885f4,segmentId:_0x2b53f0,segmentPage:_0x19f8e5,collapsed:_0x4c7ec7,isActive:_0x4e0e05}of _0xa0f0d4){const _0x42b64b=_0xe9cdfe[_0x593858(0x148)](_0xc4aa3,!0x0,_0x2b53f0,_0x19f8e5);let _0x58f5eb=_0xe9cdfe['findNodePositionByCharIndex'](_0x461697,!0x0,_0x2b53f0,_0x19f8e5);if(_0x58f5eb==null&&(_0x58f5eb=_0xe9cdfe['findNodePositionByCharIndex'](_0x461697-0x1,!0x1,_0x2b53f0,_0x19f8e5)),_0x4e0e05){const {contentBoxPointGroup:_0x292ba8}=_0x396a4d['getRangePointData'](_0x58f5eb,_0x58f5eb);if(_0x292ba8['length']===0x0)continue;this['_drawAnchor'](_0x3324af,_0x292ba8,_0xfeba98,_0x647d55,_0x251eba),this[_0x593858(0x28a)]=this[_0x593858(0x1c4)]();}if(_0x42b64b&&_0x58f5eb){if(_0x8885f4===_0x193d3c[_0x593858(0xf5)]){const _0x112a37=new _0xfbff7(_0x1e2c11,_0xe9cdfe),{pointGroup:_0x103321}=(_0x3ccc75=_0x112a37['getRangePointData'](_0x42b64b,_0x58f5eb))!=null?_0x3ccc75:{};if(_0x103321==null||_0x103321['length']===0x0)continue;this['_drawRectRange'](_0x3324af,_0x103321,_0xfeba98,_0x647d55);}else{if(!_0x4c7ec7){const {borderBoxPointGroup:_0xcbd0b7}=_0x396a4d[_0x593858(0x1de)](_0x42b64b,_0x58f5eb);if(_0xcbd0b7[_0x593858(0x190)]===0x0)continue;this['_drawTextRange'](_0x3324af,_0xcbd0b7,_0xfeba98,_0x647d55);}}}}}['_drawAnchor'](_0x75a3d4,_0x3124b6,_0x5831ab,_0x38de74,_0x3e90df){const _0x43111d=_0x4a9b73,_0x1c6985=this[_0x43111d(0x171)](_0x3124b6),{left:_0x560996,top:_0x1a6be4,height:_0x36e29b}=_0x1c6985,_0x37cfac=this[_0x43111d(0x1b8)](),_0x479289=Di/_0x37cfac,_0xdcc5e9=new _0x55b9e3(ge+_0x51c666[_0x43111d(0x1a5)](X),{'left':_0x560996+_0x5831ab-_0x479289,'top':_0x1a6be4+_0x38de74,'height':_0x36e29b,'width':Ri,'fill':_0x75a3d4||_0x447506(_0x30dfd1[_0x43111d(0x24d)],0x0),'strokeWidth':_0x479289,'stroke':Ni,'evented':!0x0});this['_anchor']=_0xdcc5e9,this[_0x43111d(0x112)][_0x43111d(0x293)](_0xdcc5e9,_0x14bb2e);const _0x199e4b=new _0x55b9e3(ge+_0x51c666[_0x43111d(0x1a5)](X),{'left':_0x560996+_0x5831ab-_0x479289,'top':_0x1a6be4+_0x38de74-Ie/0x2,'height':Ie,'width':Ie,'fill':_0x75a3d4||_0x447506(_0x30dfd1[_0x43111d(0x24d)],0x0),'strokeWidth':0x0,'stroke':_0x75a3d4||_0x447506(_0x30dfd1[_0x43111d(0x24d)],0x0),'evented':!0x1});this['_anchorDot']=_0x199e4b,this['_scene'][_0x43111d(0x293)](_0x199e4b,_0x14bb2e);const _0x140619=new he(ge+_0x51c666['generateRandomId'](X),{'left':_0x560996+_0x5831ab-_0x479289,'top':_0x1a6be4+_0x38de74-ee,'text':_0x3e90df,'color':_0x75a3d4});this[_0x43111d(0x164)]=_0x140619,this[_0x43111d(0x112)]['addObject'](_0x140619,_0x14bb2e),this[_0x43111d(0xcd)]=!0x1;}[_0x4a9b73(0x1c4)](){const _0xff099c=_0x4a9b73,_0x3944f1=this[_0xff099c(0x118)]['onPointerEnter$'][_0xff099c(0x1ad)](()=>{const _0x9c30a7=_0xff099c;this[_0x9c30a7(0xcd)]=!0x0;}),_0x20b4f8=this['_anchor'][_0xff099c(0xe7)][_0xff099c(0x1ad)](()=>{const _0x49965b=_0xff099c;this[_0x49965b(0x1c7)]&&clearTimeout(this['_hideTimer']),this[_0x49965b(0x1c7)]=setTimeout(()=>{const _0x88b834=_0x49965b;this[_0x88b834(0xcd)]=!0x1;},0x7d0);});return()=>{const _0x29f7ea=_0xff099c;_0x3944f1[_0x29f7ea(0x1c6)](),_0x20b4f8[_0x29f7ea(0x1c6)]();};}[_0x4a9b73(0x169)](_0x3bfe46,_0x53576a,_0x5d749e,_0x110d83){const _0x5b4589=_0x4a9b73,_0x2322f3=new _0x18abcb(_0x3bfe46)[_0x5b4589(0x16a)](0.2)[_0x5b4589(0x13e)](),_0x63530d=new _0x183296(bi+_0x51c666['generateRandomId'](X),{'pointsGroup':_0x53576a,'fill':_0x2322f3||_0x447506(_0x30dfd1['black'],0.2),'left':_0x5d749e,'top':_0x110d83,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b4589(0x275)]['push'](_0x63530d),this[_0x5b4589(0x112)][_0x5b4589(0x293)](_0x63530d,_0x14bb2e);}[_0x4a9b73(0x2b4)](_0xd85f9d,_0x421dab,_0x5b281e,_0x392d3b){const _0x15ab44=_0x4a9b73,_0x57f6ef=new _0x18abcb(_0xd85f9d)['setAlpha'](0.2)[_0x15ab44(0x13e)](),_0x1540f1=new _0x183296(Ti+_0x51c666[_0x15ab44(0x1a5)](X),{'pointsGroup':_0x421dab,'fill':_0x57f6ef||_0x447506(_0x30dfd1[_0x15ab44(0x24d)],0.2),'left':_0x5b281e,'top':_0x392d3b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15ab44(0x275)][_0x15ab44(0x24c)](_0x1540f1),this[_0x15ab44(0x112)]['addObject'](_0x1540f1,_0x14bb2e);}[_0x4a9b73(0x171)](_0x210f9b){const _0x24e656=_0x210f9b[0x0],_0x3e3f5f=_0x24e656[0x0],_0x24fcd0=_0x24e656[0x2],{x:_0x3db05b,y:_0x5c3f4e}=_0x3e3f5f,{x:_0x1f6f75,y:_0x2722b6}=_0x24fcd0;return{'left':_0x3db05b,'top':_0x5c3f4e,'width':_0x1f6f75-_0x3db05b,'height':_0x2722b6-_0x5c3f4e};}[_0x4a9b73(0x1b8)](){const _0x4b9876=_0x4a9b73,{scaleX:_0x28d9f8,scaleY:_0x19ca3b}=this[_0x4b9876(0x112)][_0x4b9876(0x1b0)]();return Math[_0x4b9876(0x28c)](_0x28d9f8,_0x19ca3b);}}var Ui=Object[_0x4a9b73(0xc4)],Mi=(_0x54a490,_0x39d899,_0x3fb1d3,_0xa25b5f)=>{for(var _0x4f481a=_0xa25b5f>0x1?void 0x0:_0xa25b5f?Ui(_0x39d899,_0x3fb1d3):_0x39d899,_0x36e900=_0x54a490['length']-0x1,_0x4f1708;_0x36e900>=0x0;_0x36e900--)(_0x4f1708=_0x54a490[_0x36e900])&&(_0x4f481a=_0x4f1708(_0x4f481a)||_0x4f481a);return _0x4f481a;},Z=(_0x27e7a5,_0x2ec776)=>(_0x502b78,_0x381c7d)=>_0x2ec776(_0x502b78,_0x381c7d,_0x27e7a5);let Pe=class extends _0x43324a{constructor(_0x231360,_0x1e9912,_0x484d4c,_0x45d084,_0x168db1){const _0x795911=_0x4a9b73;super(),_(this,'_cursorShapes',[]),_(this,_0x795911(0x11b),[]),(this[_0x795911(0x147)]=_0x231360,this[_0x795911(0xdd)]=_0x1e9912,this[_0x795911(0x219)]=_0x484d4c,this[_0x795911(0x189)]=_0x45d084,this['_themeService']=_0x168db1,this[_0x795911(0x2bf)]());}[_0x4a9b73(0x2bf)](){const _0x1855ee=_0x4a9b73,_0x3ab0dd=this['_context'][_0x1855ee(0x172)],_0x2d7a97=this[_0x1855ee(0xdd)];this[_0x1855ee(0xc8)](_0x3dba36([this[_0x1855ee(0x219)][_0x1855ee(0x15d)](_0x3ab0dd),this['_themeService'][_0x1855ee(0xcb)]])[_0x1855ee(0x1c1)](_0x2f99f8(([_0x518471,_0x3ec0ae])=>({'skeleton':_0x2d7a97[_0x1855ee(0x18d)](),'cursors':[..._0x518471[_0x1855ee(0x279)]()][_0x1855ee(0x206)](_0x2b6abd=>({..._0x2b6abd,'color':this[_0x1855ee(0x2a5)][_0x1855ee(0x185)](_0x2b6abd['color'])}))})))[_0x1855ee(0x257)](_0x3226f6=>{const _0x3bf94c=_0x1855ee;if(this[_0x3bf94c(0x22a)](),_0x3226f6){const {skeleton:_0x5248ef,cursors:_0x1f0e62}=_0x3226f6;this['_updateCollabCursors'](_0x5248ef,_0x1f0e62);}})),this['_initResize'](),this[_0x1855ee(0x25c)]();}['_updateCollabCursors'](_0xa58468,_0xda6fb6){const _0x30f1c6=_0x4a9b73,{scene:_0x4b103f,mainComponent:_0xf50673}=this[_0x30f1c6(0x147)],_0x57f585=_0xda6fb6['map'](_0x1ff60d=>new qe(_0x1ff60d,_0x4b103f,_0xa58468,_0xf50673));this[_0x30f1c6(0x243)]=_0x57f585,this[_0x30f1c6(0x11b)]=_0xda6fb6;}[_0x4a9b73(0x10c)](){const _0xece84a=_0x4a9b73;this[_0xece84a(0x22a)]();const {scene:_0x52296b,mainComponent:_0x2ccf28}=this['_context'],_0x24a1b1=this[_0xece84a(0xdd)]['getSkeleton'](),_0x14fddc=this[_0xece84a(0x11b)][_0xece84a(0x142)](_0x32ee65=>new qe(_0x32ee65,_0x52296b,_0x24a1b1,_0x2ccf28));this[_0xece84a(0x243)]=_0x14fddc;}[_0x4a9b73(0x22a)](){const _0x3f5c03=_0x4a9b73;this[_0x3f5c03(0x243)][_0x3f5c03(0x263)](_0x14975e=>_0x14975e[_0x3f5c03(0x197)]()),this[_0x3f5c03(0x243)]=[];}[_0x4a9b73(0x25c)](){const _0x3d4b95=_0x4a9b73,_0x44e87a=[_0x6c535a['id']];this[_0x3d4b95(0xc8)](this['_commandService'][_0x3d4b95(0x269)](_0x5bfe09=>{const _0x4dee5b=_0x3d4b95;_0x44e87a['includes'](_0x5bfe09['id'])&&_0x5bfe09['params'][_0x4dee5b(0x172)]===this['_context'][_0x4dee5b(0x172)]&&this[_0x4dee5b(0x10c)]();}));}[_0x4a9b73(0x274)](){const _0x59b887=_0x4a9b73;this[_0x59b887(0xc8)](_0xb20e27(this[_0x59b887(0x147)]['engine'][_0x59b887(0x272)])[_0x59b887(0x1c1)](_0x370354(_0x32660d=>_0x32660d['type']===_0x20ee95[_0x59b887(0x178)]),_0x544c43(0x10))[_0x59b887(0x257)](()=>{this['_refreshCollabCursors']();}));}};Pe=Mi([Z(0x1,_0x5a910a(_0x155d5e)),Z(0x2,_0x5a910a(H)),Z(0x3,_0x125a4d),Z(0x4,_0x5a910a(_0x40a3a8))],Pe);const Pi=0x1,Li=1.5;class wi extends _0x4a9018{constructor(_0x40e5c2,_0x5caf55){const _0x262b8d=_0x4a9b73;super(_0x40e5c2,_0x5caf55),_(this,_0x262b8d(0x273)),_(this,_0x262b8d(0x1e4),!0x1),_(this,_0x262b8d(0x193)),_(this,'_name',''),_(this,_0x262b8d(0xdf),_0x262b8d(0x126)),_(this,_0x262b8d(0x157)),(_0x5caf55&&this['setShapeProps'](_0x5caf55),this[_0x262b8d(0x1a1)][_0x262b8d(0x1ad)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x262b8d(0xe7)][_0x262b8d(0x1ad)](()=>this[_0x262b8d(0x2a1)]({'hovered':!0x1})));}['setShapeProps'](_0x1ba62f){const _0x33658c=_0x4a9b73;var _0x5d01b0,_0x1a389d,_0x41a09a,_0x3ee61d,_0x8aa612,_0x393b7d;this[_0x33658c(0x273)]=(_0x5d01b0=_0x1ba62f['color'])!=null?_0x5d01b0:this['_color'],this[_0x33658c(0x1e4)]=(_0x1a389d=_0x1ba62f['hovered'])!=null?_0x1a389d:this[_0x33658c(0x1e4)],this['_range']=(_0x41a09a=_0x1ba62f[_0x33658c(0x13b)])!=null?_0x41a09a:this[_0x33658c(0x193)],this[_0x33658c(0x22e)]=(_0x3ee61d=_0x1ba62f[_0x33658c(0x1ae)])!=null?_0x3ee61d:this[_0x33658c(0x22e)],this['_labelPosition']=(_0x8aa612=_0x1ba62f[_0x33658c(0x27f)])!=null?_0x8aa612:this[_0x33658c(0xdf)],this['_backgroundColor']=(_0x393b7d=_0x1ba62f['backgroundColor'])!=null?_0x393b7d:this['_backgroundColor'],this[_0x33658c(0x256)]({'width':_0x1ba62f['width'],'height':_0x1ba62f[_0x33658c(0x174)]});}[_0x4a9b73(0x12a)](_0x4c6593){const _0xf6f99b=_0x4a9b73,{row:_0x17d86e,column:_0x181458}=_0x4c6593;if(_0x17d86e>=this[_0xf6f99b(0x193)][_0xf6f99b(0x1dd)]&&_0x17d86e<=this[_0xf6f99b(0x193)][_0xf6f99b(0x217)]&&_0x181458>=this[_0xf6f99b(0x193)][_0xf6f99b(0x123)]&&_0x181458<=this[_0xf6f99b(0x193)][_0xf6f99b(0x21d)]){this[_0xf6f99b(0x2a1)]({'hovered':!0x0});return;}this[_0xf6f99b(0x2a1)]({'hovered':!0x1});}[_0x4a9b73(0xe5)](_0x376bba){return!0x1;}[_0x4a9b73(0x234)](_0x1e2cd9){const _0x507a2c=_0x4a9b73;_0x55b9e3[_0x507a2c(0x175)](_0x1e2cd9,{'width':this[_0x507a2c(0x163)],'height':this[_0x507a2c(0x174)],'strokeWidth':Li,'stroke':this[_0x507a2c(0x273)],'evented':!0x1,'fill':this[_0x507a2c(0x157)]}),this['_hovered']&&(_0x1e2cd9[_0x507a2c(0x125)](),_0x1e2cd9[_0x507a2c(0x1b6)](0x1,0x0,0x0,0x1,this[_0x507a2c(0x163)],this[_0x507a2c(0xdf)]===_0x507a2c(0x1ef)?0x0:-0x14),he[_0x507a2c(0x175)](_0x1e2cd9,{'text':this[_0x507a2c(0x22e)],'color':this['_color']}),_0x1e2cd9[_0x507a2c(0x192)]());}}var Ai=Object[_0x4a9b73(0xc4)],yi=(_0x5283fd,_0x5d976d,_0x591473,_0xfe1500)=>{for(var _0x2f6bb2=_0xfe1500>0x1?void 0x0:_0xfe1500?Ai(_0x5d976d,_0x591473):_0x5d976d,_0x405167=_0x5283fd['length']-0x1,_0x147882;_0x405167>=0x0;_0x405167--)(_0x147882=_0x5283fd[_0x405167])&&(_0x2f6bb2=_0x147882(_0x2f6bb2)||_0x2f6bb2);return _0x2f6bb2;},ve=(_0x5b35f4,_0xa96cf0)=>(_0x1db024,_0x534fd0)=>_0xa96cf0(_0x1db024,_0x534fd0,_0x5b35f4);const $i=0x1389;let Le=class extends _0x43324a{constructor(_0x37f654,_0x16a67f,_0x177a9a,_0x3fafbd){const _0x3fed96=_0x4a9b73;super(),_(this,_0x3fed96(0x11b),new Set()),_(this,_0x3fed96(0x241),null),(this[_0x3fed96(0x147)]=_0x37f654,this[_0x3fed96(0x165)]=_0x16a67f,this['_collabCursorController']=_0x177a9a,this[_0x3fed96(0x2a5)]=_0x3fafbd,this['_init']());}[_0x4a9b73(0x2bf)](){const _0x2bb593=_0x4a9b73;this[_0x2bb593(0x165)]['currentSkeleton$'][_0x2bb593(0x1c1)](_0x2ba1c5(this['dispose$']),_0x81e8fe(_0x2f5ab9=>{const _0x1d7f18=_0x2bb593;if(_0x2f5ab9){const _0x5ebfd5=_0x2f5ab9[_0x1d7f18(0x1af)];return _0x3dba36(this[_0x1d7f18(0x219)]['getCollabCursors$'](this['_context'][_0x1d7f18(0x172)]),this[_0x1d7f18(0x2a5)][_0x1d7f18(0xcb)])[_0x1d7f18(0x1c1)](_0x2f99f8(([_0x3068ef,_0x3307b5])=>{const _0x946a37=_0x1d7f18,_0x44d6c3=new Map();return _0x3068ef[_0x946a37(0x263)]((_0x5895b8,_0x15bca8)=>{const _0x4634ee=_0x946a37;if(_0x5895b8[_0x4634ee(0x299)]===_0x5ebfd5){const _0x2ac317={..._0x5895b8};_0x2ac317['color']=this['_themeService'][_0x4634ee(0x185)](_0x5895b8[_0x4634ee(0x1b2)]),_0x44d6c3['set'](_0x15bca8,_0x2ac317);}}),{'skeleton':_0x2f5ab9,'cursors':_0x44d6c3};}));}return _0x12f8ad({'skeleton':null,'cursors':new Map()});}))[_0x2bb593(0x257)](({skeleton:_0x3c5687,cursors:_0x2737e8})=>{const _0x142d0f=_0x2bb593;this[_0x142d0f(0x22a)](),_0x3c5687&&this[_0x142d0f(0x19e)](_0x3c5687,_0x2737e8);}),this[_0x2bb593(0x165)][_0x2bb593(0x1ee)]['subscribe'](_0x4dbaec=>{const _0x239e2f=_0x2bb593;if(_0x4dbaec==null)return;const {skeleton:_0x4bf306}=_0x4dbaec,{scene:_0x4feee6}=this['_context'];_0x4feee6['onPointerMove$'][_0x239e2f(0x1ad)](_0x42c593(_0x45be8e=>{const _0x233694=_0x239e2f;var _0x2b2397,_0x2e1cc6;const {offsetX:_0x24645c,offsetY:_0x2ad09d}=_0x45be8e,{x:_0x15a99d,y:_0x53c59e}=_0x4feee6[_0x233694(0x18c)](_0x1784a8[_0x233694(0xc6)]([_0x24645c,_0x2ad09d])),{scaleX:_0x15b05c,scaleY:_0x152a83}=_0x4feee6[_0x233694(0x1b0)](),_0x2a2066=_0x4feee6[_0x233694(0x249)](_0x41ca54[_0x233694(0x1f1)]),_0x4e9115=_0x4feee6[_0x233694(0xcc)](_0x1784a8[_0x233694(0xc6)]([_0x15a99d,_0x53c59e]),_0x2a2066),_0x35face=_0x4bf306[_0x233694(0x180)](_0x24645c,_0x2ad09d,_0x15b05c,_0x152a83,_0x4e9115);((_0x2b2397=this[_0x233694(0x241)])==null?void 0x0:_0x2b2397[_0x233694(0x111)])===_0x35face[_0x233694(0x111)]&&((_0x2e1cc6=this[_0x233694(0x241)])==null?void 0x0:_0x2e1cc6['row'])===_0x35face[_0x233694(0x1e5)]||this['_cursors'][_0x233694(0x263)](_0x295f8a=>{_0x295f8a['onMouseMove'](_0x35face);});},0x64));});}['_updateCollabCursors'](_0x5c47d0,_0x5a3a37){const _0xd29ccb=_0x4a9b73;var _0xd82640;const _0x98ca1c=(_0xd82640=this['_sheetSkeletonManagerService'][_0xd29ccb(0xd7)]())==null?void 0x0:_0xd82640[_0xd29ccb(0x167)];if(!_0x98ca1c)return;const _0x11537e=this[_0xd29ccb(0x10d)]();if(!_0x11537e)return;this[_0xd29ccb(0x11b)][_0xd29ccb(0x263)](_0xefd855=>{const _0x861506=_0xd29ccb;_0xefd855[_0x861506(0x284)]();});const {scene:_0x40186d}=_0x11537e,_0x1645f7=xi(Array[_0xd29ccb(0x1ec)](_0x5a3a37[_0xd29ccb(0x279)]()))['map'](_0x44f0fa=>{const _0x18aeed=_0xd29ccb,{color:_0x1973cc,range:_0x11ed94,name:_0x3ce28b,selection:_0x3b69fc,sheetID:_0x433211}=_0x44f0fa,{startColumn:_0x34714b,startRow:_0x3b0c1a,endColumn:_0x49ada4,endRow:_0x1de80f}=_0x11ed94,_0x1553cd=_0x3771ff(_0x3b0c1a,_0x34714b,_0x40186d,_0x98ca1c),_0x3cefa3=_0x3771ff(_0x1de80f,_0x49ada4,_0x40186d,_0x98ca1c),{columnHeaderHeightAndMarginTop:_0x242c12}=_0x98ca1c,{startX:_0x894ae7,startY:_0x1114d5}=_0x1553cd,{endX:_0x4e8c9f,endY:_0x3c44d1}=_0x3cefa3,_0x1a397d=_0x4e8c9f-_0x894ae7,_0x349a3c=_0x3c44d1-_0x1114d5,_0x4802b4={'labelPosition':_0x1114d5-_0x242c12>=ee?_0x18aeed(0x126):_0x18aeed(0x1ef),'sheetID':_0x433211,'range':_0x11ed94,'color':_0x1973cc,'name':_0x3ce28b,'selection':_0x3b69fc,'left':_0x894ae7,'top':_0x1114d5,'width':_0x1a397d,'height':_0x349a3c,'evented':!0x1,'zIndex':$i};return new wi(_0x3ce28b,_0x4802b4);});_0x40186d[_0xd29ccb(0xf1)](_0x1645f7,Pi),this[_0xd29ccb(0x11b)]=new Set(_0x1645f7);}['_removeCollabCursors'](){const _0x309256=_0x4a9b73;var _0x59c1f4;(_0x59c1f4=this[_0x309256(0x11b)])==null||_0x59c1f4[_0x309256(0x263)](_0x44fc90=>_0x44fc90[_0x309256(0x197)]());}[_0x4a9b73(0x10d)](){const _0xb774f5=_0x4a9b73;return _0x575758(this[_0xb774f5(0x147)][_0xb774f5(0x2a9)],this['_context']);}};Le=yi([ve(0x1,_0x5a910a(_0x12d7f8)),ve(0x2,_0x5a910a(H)),ve(0x3,_0x5a910a(_0x40a3a8))],Le);function xi(_0x2a02f1){const _0x13d90b=_0x4a9b73,_0x1ab42e=new Map();return _0x2a02f1[_0x13d90b(0x263)](_0x566dc6=>{const _0x342872=_0x13d90b;if(_0x1ab42e['has'](_0x566dc6[_0x342872(0x113)])){const _0x1ba0c4=_0x1ab42e[_0x342872(0x1fb)](_0x566dc6[_0x342872(0x113)]);_0x1ba0c4[_0x342872(0x1ae)]+=',\x20'+_0x566dc6[_0x342872(0x1ae)];}else _0x1ab42e[_0x342872(0x106)](_0x566dc6['selection'],_0x566dc6);}),Array[_0x13d90b(0x1ec)](_0x1ab42e[_0x13d90b(0x279)]());}var v=function(){const _0x39ea65=_0x4a9b73;return v=Object[_0x39ea65(0x1df)]||function(_0x465b00){const _0x167501=_0x39ea65;for(var _0x4310cb,_0x4acecd=0x1,_0x4873aa=arguments[_0x167501(0x190)];_0x4acecd<_0x4873aa;_0x4acecd++){_0x4310cb=arguments[_0x4acecd];for(var _0x364652 in _0x4310cb)Object[_0x167501(0x102)][_0x167501(0xff)]['call'](_0x4310cb,_0x364652)&&(_0x465b00[_0x364652]=_0x4310cb[_0x364652]);}return _0x465b00;},v[_0x39ea65(0x134)](this,arguments);},Bi=function(_0x3a4bc5,_0x52161a){const _0x24145=_0x4a9b73;var _0x36d0d0={};for(var _0x310171 in _0x3a4bc5)Object[_0x24145(0x102)][_0x24145(0xff)]['call'](_0x3a4bc5,_0x310171)&&_0x52161a[_0x24145(0x233)](_0x310171)<0x0&&(_0x36d0d0[_0x310171]=_0x3a4bc5[_0x310171]);if(_0x3a4bc5!=null&&typeof Object['getOwnPropertySymbols']==_0x24145(0x110)){for(var _0x41cbb3=0x0,_0x310171=Object['getOwnPropertySymbols'](_0x3a4bc5);_0x41cbb3<_0x310171[_0x24145(0x190)];_0x41cbb3++)_0x52161a[_0x24145(0x233)](_0x310171[_0x41cbb3])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x24145(0x288)](_0x3a4bc5,_0x310171[_0x41cbb3])&&(_0x36d0d0[_0x310171[_0x41cbb3]]=_0x3a4bc5[_0x310171[_0x41cbb3]]);}return _0x36d0d0;},je=_0x248f87(function(_0x328b10,_0x431f56){const _0x2e6e7b=_0x4a9b73;var _0x214d64=_0x328b10[_0x2e6e7b(0x152)],_0x48019a=_0x328b10['id'],_0x351dc7=_0x328b10[_0x2e6e7b(0x224)],_0x301da0=_0x328b10[_0x2e6e7b(0xf9)],_0x2d149d=Bi(_0x328b10,[_0x2e6e7b(0x152),'id','className',_0x2e6e7b(0xf9)]),_0x2e3203=_0x2e6e7b(0x195)['concat'](_0x48019a,'\x20')[_0x2e6e7b(0x1c0)](_0x351dc7||'')[_0x2e6e7b(0x183)](),_0xe85404=_0x298127('_'[_0x2e6e7b(0x1c0)](ji()));return Rt(_0x214d64,''[_0x2e6e7b(0x1c0)](_0x48019a),{'defIds':_0x214d64[_0x2e6e7b(0x214)],'idSuffix':_0xe85404[_0x2e6e7b(0x20d)]},v({'ref':_0x431f56,'className':_0x2e3203},_0x2d149d),_0x301da0);});function Rt(_0x150d8f,_0x5b6fd8,_0x13e694,_0x390461,_0x482057){const _0xe68527=_0x4a9b73;return _0xc2cff4(_0x150d8f[_0xe68527(0x12f)],v(v({'key':_0x5b6fd8},ki(_0x150d8f,_0x13e694,_0x482057)),_0x390461),(Hi(_0x150d8f,_0x13e694)[_0xe68527(0x20c)]||[])[_0xe68527(0x142)](function(_0x423fa6,_0x38835a){const _0x27a268=_0xe68527;return Rt(_0x423fa6,''[_0x27a268(0x1c0)](_0x5b6fd8,'-')[_0x27a268(0x1c0)](_0x150d8f['tag'],'-')[_0x27a268(0x1c0)](_0x38835a),_0x13e694,void 0x0,_0x482057);}));}function ki(_0x32d3f1,_0x30833a,_0x1438b3){const _0xb6564e=_0x4a9b73;var _0x10a1f=v({},_0x32d3f1[_0xb6564e(0x1b4)]);_0x1438b3!=null&&_0x1438b3[_0xb6564e(0x176)]&&_0x10a1f[_0xb6564e(0x1a7)]===_0xb6564e(0x176)&&(_0x10a1f[_0xb6564e(0x1a7)]=_0x1438b3[_0xb6564e(0x176)]),_0x32d3f1[_0xb6564e(0x12f)]===_0xb6564e(0x13d)&&_0x10a1f['id']&&(_0x10a1f['id']=_0x10a1f['id']+_0x30833a[_0xb6564e(0x114)]),Object[_0xb6564e(0x212)](_0x10a1f)[_0xb6564e(0x263)](function(_0x3d8498){const _0x39a277=_0xb6564e;var _0x5ffc72=_0x3d8498[0x0],_0x116d8b=_0x3d8498[0x1];_0x5ffc72===_0x39a277(0x13d)&&typeof _0x116d8b==_0x39a277(0xd9)&&(_0x10a1f[_0x5ffc72]=_0x116d8b[_0x39a277(0x26f)](/url\(#(.*)\)/,_0x39a277(0x2b0)['concat'](_0x30833a[_0x39a277(0x114)],')')));});var _0xfe8a6=_0x30833a[_0xb6564e(0x214)];return!_0xfe8a6||_0xfe8a6[_0xb6564e(0x190)]===0x0||(_0x32d3f1[_0xb6564e(0x12f)]==='use'&&_0x10a1f[_0xb6564e(0x285)]&&(_0x10a1f[_0xb6564e(0x285)]=_0x10a1f['xlink:href']+_0x30833a[_0xb6564e(0x114)]),Object['entries'](_0x10a1f)[_0xb6564e(0x263)](function(_0x3b6ccf){const _0x3fa8b1=_0xb6564e;var _0x4c8b6f=_0x3b6ccf[0x0],_0x4f9fb7=_0x3b6ccf[0x1];typeof _0x4f9fb7=='string'&&(_0x10a1f[_0x4c8b6f]=_0x4f9fb7['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3fa8b1(0x1c0)](_0x30833a[_0x3fa8b1(0x114)],')')));})),_0x10a1f;}function Hi(_0x2a93be,_0x58d2b3){const _0x5c2609=_0x4a9b73;var _0x4a1e0c,_0x39abb2=_0x58d2b3[_0x5c2609(0x214)];return!_0x39abb2||_0x39abb2[_0x5c2609(0x190)]===0x0?_0x2a93be:_0x2a93be['tag']===_0x5c2609(0x2c1)&&(!((_0x4a1e0c=_0x2a93be['children'])===null||_0x4a1e0c===void 0x0)&&_0x4a1e0c[_0x5c2609(0x190)])?v(v({},_0x2a93be),{'children':_0x2a93be[_0x5c2609(0x20c)][_0x5c2609(0x142)](function(_0x28b613){const _0x356065=_0x5c2609;return typeof _0x28b613[_0x356065(0x1b4)]['id']==_0x356065(0xd9)&&_0x39abb2&&_0x39abb2[_0x356065(0x233)](_0x28b613[_0x356065(0x1b4)]['id'])>-0x1?v(v({},_0x28b613),{'attrs':v(v({},_0x28b613['attrs']),{'id':_0x28b613[_0x356065(0x1b4)]['id']+_0x58d2b3['idSuffix']})}):_0x28b613;})}):_0x2a93be;}function ji(){const _0x2fcacd=_0x4a9b73;return Math[_0x2fcacd(0x17a)]()[_0x2fcacd(0x116)](0x24)[_0x2fcacd(0x2a7)](0x2,0x8);}je[_0x4a9b73(0x25b)]=_0x4a9b73(0x19d);var Yi={'tag':'svg','attrs':{'fill':'none','viewBox':_0x4a9b73(0x14f),'width':_0x4a9b73(0x2aa),'height':_0x4a9b73(0x2aa)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x4a9b73(0x151),'attrs':{'stroke':_0x4a9b73(0x188),'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':_0x4a9b73(0x260),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4a9b73(0x2c1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x4a9b73(0x151),'attrs':{'fill':_0x4a9b73(0x1e7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4a9b73(0xd0)]},Dt=_0x248f87(function(_0x4aed29,_0x5c4d2e){const _0x269c45=_0x4a9b73;return _0xc2cff4(je,Object[_0x269c45(0x1df)]({},_0x4aed29,{'id':'off-line-single','ref':_0x5c4d2e,'icon':Yi}));});Dt['displayName']=_0x4a9b73(0x120);var Fi={'tag':'svg','attrs':{'fill':_0x4a9b73(0x232),'viewBox':_0x4a9b73(0x29b),'width':_0x4a9b73(0x2aa),'height':_0x4a9b73(0x2aa)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a9b73(0xef)},'children':[{'tag':_0x4a9b73(0x151),'attrs':{'stroke':_0x4a9b73(0x188),'d':_0x4a9b73(0x1ea),'strokeLinecap':_0x4a9b73(0x260),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a9b73(0x218),'attrs':{'id':_0x4a9b73(0x137)},'children':[{'tag':_0x4a9b73(0x151),'attrs':{'fill':_0x4a9b73(0x1e7),'d':_0x4a9b73(0x2ae),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4a9b73(0x137)]},Nt=_0x248f87(function(_0x545d6a,_0x370a8e){const _0x485c63=_0x4a9b73;return _0xc2cff4(je,Object['assign']({},_0x545d6a,{'id':_0x485c63(0x139),'ref':_0x370a8e,'icon':Fi}));});Nt[_0x4a9b73(0x25b)]='OnLineSingle';function Wi(_0x5bde25){const _0x404910=_0x4a9b73;switch(_0x5bde25){case _0x167395[_0x404910(0x204)]:return _0x404910(0x215);case _0x167395[_0x404910(0x1b3)]:return _0x404910(0x16f);case _0x167395['FETCH_MISS']:return _0x404910(0x2a3);case _0x167395[_0x404910(0x242)]:return _0x404910(0x297);case _0x167395[_0x404910(0x136)]:case _0x167395[_0x404910(0x132)]:return _0x404910(0x210);case _0x167395[_0x404910(0x1d9)]:case _0x167395['PENDING']:return _0x404910(0x2a6);}}function Vi(_0x4ea4d4){const _0x897508=_0x4a9b73,{status$:_0x2420ed}=_0x4ea4d4,_0x52f36b=_0x5bb2e8(_0x2420ed,_0x167395[_0x897508(0x242)]),_0x865f=_0x4bf2cc(_0x15a6bf),_0x109190=_0x4bf2cc(_0x9e201),_0x2b8ae0=_0x52f36b!==_0x167395['OFFLINE'],_0x2b98c9=_0x865f['t'](Wi(_0x52f36b)),_0x396576=_0x2b8ae0?_0x5d61f1(Nt,{}):_0x5d61f1(Dt,{}),_0x8c78d0=_0x43e35a(()=>{_0x2b8ae0||_0x109190['reconnect']();},[_0x2b8ae0,_0x109190]);function _0x21efbb(){const _0x452c67=_0x897508;return _0x5b1f6e('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x8c78d0,'children':[_0x5d61f1(_0x452c67(0x155),{'className':_0x212ae4('univer-flex\x20univer-mr-2\x20univer-text-xl',_0x2b8ae0?'univer-text-green-500':_0x452c67(0x289)),'children':_0x396576}),_0x5d61f1(_0x452c67(0x155),{'className':_0x452c67(0x1e6),'children':_0x2b98c9})]});}return _0x2b8ae0?_0x21efbb():_0x5d61f1(_0x1de27a,{'title':_0x865f['t']('collab-client.tooltip.reconnect'),'children':_0x21efbb()});}var Xi=Object['getOwnPropertyDescriptor'],Gi=(_0x6f71e0,_0x2d289a,_0x5b026d,_0xe7fa4)=>{for(var _0x323029=_0xe7fa4>0x1?void 0x0:_0xe7fa4?Xi(_0x2d289a,_0x5b026d):_0x2d289a,_0x15a0bb=_0x6f71e0['length']-0x1,_0x2ac255;_0x15a0bb>=0x0;_0x15a0bb--)(_0x2ac255=_0x6f71e0[_0x15a0bb])&&(_0x323029=_0x2ac255(_0x323029)||_0x323029);return _0x323029;},Q=(_0x20c133,_0x3a34b0)=>(_0x4c7ca7,_0x1b3271)=>_0x3a34b0(_0x4c7ca7,_0x1b3271,_0x20c133);let te=class extends _0x3ca0d9{constructor(_0x370f3b,_0x5fef5f,_0x30dfbc,_0x498941){const _0x17ad89=_0x4a9b73;super(),_(this,_0x17ad89(0x1f3),new _0x4ae7de(_0x167395[_0x17ad89(0x242)])),(this['_univerInstanceService']=_0x370f3b,this[_0x17ad89(0x23c)]=_0x5fef5f,this['_collaborationController']=_0x30dfbc,this[_0x17ad89(0x200)]=_0x498941,this[_0x17ad89(0x213)](),this[_0x17ad89(0x255)]());}[_0x4a9b73(0x255)](){const _0x530be3=_0x4a9b73;this[_0x530be3(0xc8)](this['_univerInstanceService'][_0x530be3(0x138)][_0x530be3(0x1c1)](_0x5d84ac(()=>{const _0xce704c=_0x530be3,_0x160eb7=this[_0xce704c(0x283)]['getFocusedUnit']();return _0x160eb7?this[_0xce704c(0xcf)]['getCollabEntity$'](_0x160eb7[_0xce704c(0x1ce)]()):_0x12f8ad(null);}),_0x5d84ac(_0x43c839=>_0x43c839?_0x43c839[_0x530be3(0x29a)]:_0x12f8ad(_0x167395[_0x530be3(0x242)])))[_0x530be3(0x257)](_0x5c8e25=>{const _0x2df131=_0x530be3;this[_0x2df131(0x1f3)]['next'](_0x5c8e25);}));}['_initStatusComponent'](){const _0x51756c=_0x4a9b73;this['disposeWithMe'](this['_uiPartsService'][_0x51756c(0x2b2)](_0x12c314[_0x51756c(0x2a2)],()=>_0x4a72c4(Ki({'status$':this['_status$'][_0x51756c(0x2bc)]()}),this[_0x51756c(0x23c)])));}};te=Gi([Q(0x0,_0x3d2f4d),Q(0x1,_0x5a910a(_0x315584)),Q(0x2,_0x5a910a(_0x7aeeca)),Q(0x3,_0x10db63)],te);function Ki(_0x1ca025){const {status$:_0x577e41}=_0x1ca025;return function(){return _0x5d61f1(Vi,{'status$':_0x577e41});};}var zi=Object[_0x4a9b73(0xc4)],Ji=(_0x1f50ca,_0x3e368a,_0x39cde2,_0x2278d2)=>{const _0x1385cf=_0x4a9b73;for(var _0x4a04eb=_0x2278d2>0x1?void 0x0:_0x2278d2?zi(_0x3e368a,_0x39cde2):_0x3e368a,_0xfa138b=_0x1f50ca[_0x1385cf(0x190)]-0x1,_0xec4ed3;_0xfa138b>=0x0;_0xfa138b--)(_0xec4ed3=_0x1f50ca[_0xfa138b])&&(_0x4a04eb=_0xec4ed3(_0x4a04eb)||_0x4a04eb);return _0x4a04eb;},B=(_0x48bbbd,_0xf931b5)=>(_0x3b4c2d,_0x127b5b)=>_0xf931b5(_0x3b4c2d,_0x127b5b,_0x48bbbd);let se=class extends _0x3ca0d9{constructor(_0x13d9e4,_0xd2dea,_0x2ae77c,_0x59aebd,_0x4839f9,_0x8f5b3d){const _0x241678=_0x4a9b73;super(),this[_0x241678(0x1aa)]=_0x13d9e4,this['_localCacheService']=_0xd2dea,this[_0x241678(0x240)]=_0x2ae77c,this[_0x241678(0x27d)]=_0x59aebd,this[_0x241678(0x2a4)]=_0x4839f9,this[_0x241678(0x187)]=_0x8f5b3d,this[_0x241678(0x186)](),this[_0x241678(0x1cb)]();}['_setupBeforeClosingHandler'](){const _0xfb2c9f=_0x4a9b73;this['disposeWithMe'](this[_0xfb2c9f(0x1aa)][_0xfb2c9f(0x2a8)](()=>{const _0x3fe76b=_0xfb2c9f;if(this[_0x3fe76b(0xee)]['saveTaskMap'][_0x3fe76b(0x14b)])return this[_0x3fe76b(0x187)]['t'](_0x3fe76b(0x127));}));}[_0x4a9b73(0x1cb)](){const _0x5e4d65=_0x4a9b73;this[_0x5e4d65(0xc8)](this[_0x5e4d65(0x240)][_0x5e4d65(0x11c)][_0x5e4d65(0x257)](_0x15fb6a=>{const _0x4e8a4c=_0x5e4d65;_0x15fb6a['id']===_0x4ad9d4[_0x4e8a4c(0x14d)]&&this['_messageService'][_0x4e8a4c(0x254)]({'type':_0x4c15ba[_0x4e8a4c(0x268)],'content':this[_0x4e8a4c(0x187)]['t']('collaboration.single-unit.warning')}),_0x15fb6a['id']===_0x4ad9d4['CLOSE_ROOM']&&this['_messageService'][_0x4e8a4c(0x254)]({'type':_0x4c15ba[_0x4e8a4c(0x268)],'content':this[_0x4e8a4c(0x187)]['t'](_0x4e8a4c(0xd6))}),_0x15fb6a['id']===_0x4ad9d4[_0x4e8a4c(0x226)]&&this['_notificationService'][_0x4e8a4c(0x254)]({'title':this[_0x4e8a4c(0x187)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':_0x4e8a4c(0x25e),'duration':0x0}),_0x15fb6a['id']===_0x4ad9d4[_0x4e8a4c(0x1b3)]&&this[_0x4e8a4c(0x27d)][_0x4e8a4c(0x254)]({'type':_0x4c15ba[_0x4e8a4c(0x1ed)],'content':this['_localeService']['t'](_0x4e8a4c(0xd6))+'('+_0x15fb6a[_0x4e8a4c(0x29c)]+')'}),_0x15fb6a['id']===_0x4ad9d4['JOIN_ROOM_FAILED']&&this['_messageService'][_0x4e8a4c(0x254)]({'type':_0x4c15ba[_0x4e8a4c(0x268)],'content':this[_0x4e8a4c(0x187)]['t'](_0x15fb6a[_0x4e8a4c(0x29c)]||'')}),_0x15fb6a['id']===_0x4ad9d4[_0x4e8a4c(0x124)]&&this[_0x4e8a4c(0x27d)][_0x4e8a4c(0x254)]({'type':_0x4c15ba['Warning'],'content':this[_0x4e8a4c(0x187)]['t'](_0x4e8a4c(0x128))}),_0x15fb6a['id']===_0x4ad9d4[_0x4e8a4c(0x20f)]&&this[_0x4e8a4c(0x27d)][_0x4e8a4c(0x254)]({'type':_0x4c15ba['Error'],'content':this[_0x4e8a4c(0x187)]['t'](_0x4e8a4c(0x181))}),_0x15fb6a['id']===_0x4ad9d4[_0x4e8a4c(0x17d)]&&this['_messageService'][_0x4e8a4c(0x254)]({'type':_0x4c15ba[_0x4e8a4c(0x1ed)],'content':this[_0x4e8a4c(0x187)]['t'](_0x4e8a4c(0x146))});}));}};se=Ji([B(0x0,_0x3e6ed3),B(0x1,_0x27b901),B(0x2,_0x5a910a(_0x14e4da)),B(0x3,_0x3be822),B(0x4,_0x4fd550),B(0x5,_0x5a910a(_0x15a6bf))],se);const Zi=_0x4a9b73(0x1f0),et={},Ut=_0x400d12(_0x4a9b73(0x1dc));var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x315453,_0x16883e,_0xf954ed,_0xf395a5)=>{const _0x31ca42=_0x4a9b73;for(var _0x3b9d1c=_0xf395a5>0x1?void 0x0:_0xf395a5?Qi(_0x16883e,_0xf954ed):_0x16883e,_0x4b0d36=_0x315453[_0x31ca42(0x190)]-0x1,_0x15c789;_0x4b0d36>=0x0;_0x4b0d36--)(_0x15c789=_0x315453[_0x4b0d36])&&(_0x3b9d1c=_0x15c789(_0x3b9d1c)||_0x3b9d1c);return _0x3b9d1c;},G=(_0x520d97,_0xd9553c)=>(_0x154fb3,_0x9e1d28)=>_0xd9553c(_0x154fb3,_0x9e1d28,_0x520d97);let ie=class extends _0x43324a{constructor(_0x12735b,_0x5c59f1,_0x1ffd5a,_0x25af1b,_0x3390ab){const _0x34d631=_0x4a9b73;super(),this[_0x34d631(0x12e)]=_0x12735b,this[_0x34d631(0x156)]=_0x5c59f1,this['_commandService']=_0x1ffd5a,this[_0x34d631(0xfb)]=_0x25af1b,_0x3390ab?_0x3390ab==null||_0x3390ab['whenReady']()[_0x34d631(0x19b)](()=>this['_init']()):(this[_0x34d631(0x156)][_0x34d631(0x29d)](_0x34d631(0x251),_0x34d631(0x21e)),this[_0x34d631(0x2bf)]());}async[_0x4a9b73(0x2bf)](){const _0x648152=_0x4a9b73,_0x38808e=this[_0x648152(0x12e)]['getParam']('unit'),_0x2c6c59=this[_0x648152(0x12e)]['getParam'](_0x648152(0x119)),_0xab4fb9=this[_0x648152(0x12e)]['getParam']('subunit');if(!_0x38808e||!_0x2c6c59){this['_logService'][_0x648152(0x29d)](_0x648152(0x251),_0x648152(0x1d4));return;}const _0x441730=await this[_0x648152(0xfb)][_0x648152(0x191)](_0x38808e,Number(_0x2c6c59),_0xab4fb9);_0x441730&&_0x441730 instanceof _0x117e0c&&this['_setupSubUnitSync'](_0x441730);}async[_0x4a9b73(0xe0)](_0x19e628){const _0x45105c=_0x4a9b73;await this[_0x45105c(0x245)](_0x19e628),_0x19e628['activeSheet$'][_0x45105c(0x1c1)](_0x2c1b93(this[_0x45105c(0x282)]))[_0x45105c(0x257)](_0x27167f=>{const _0x555b12=_0x45105c;_0x27167f&&this[_0x555b12(0x20e)](_0x27167f);}),this['_urlService']['urlChange$'][_0x45105c(0x1c1)](_0x2c1b93(this[_0x45105c(0x282)]))[_0x45105c(0x257)](()=>this[_0x45105c(0x245)](_0x19e628));}[_0x4a9b73(0x20e)](_0x28b1fc,_0x4166b0=!0x1){const _0x5af5b6=_0x4a9b73,_0x1bbf29=this[_0x5af5b6(0x12e)][_0x5af5b6(0x1c2)](_0x5af5b6(0x1cd));_0x28b1fc[_0x5af5b6(0x23e)]()!==_0x1bbf29&&this[_0x5af5b6(0x12e)][_0x5af5b6(0xca)](_0x5af5b6(0x1cd),_0x28b1fc[_0x5af5b6(0x23e)](),_0x4166b0);}async['_updateSubUnitFromURLParams'](_0x184d43){const _0x1f7b7b=_0x4a9b73;var _0x117a14;const _0x3d8751=this[_0x1f7b7b(0x12e)][_0x1f7b7b(0x1c2)](_0x1f7b7b(0x1cd));if(!_0x3d8751||!_0x184d43[_0x1f7b7b(0x24b)](_0x3d8751)){const _0x271a78=_0x184d43['getUnhiddenWorksheets']()[0x0],_0x4c5d32=_0x184d43[_0x1f7b7b(0x24b)](_0x271a78);if(!_0x4c5d32)return;this[_0x1f7b7b(0x20e)](_0x4c5d32,!0x0),await this['_commandService'][_0x1f7b7b(0x2ac)](_0x7515ad['id'],{'unitId':_0x184d43[_0x1f7b7b(0x1ce)](),'subUnitId':_0x271a78});return;}((_0x117a14=_0x184d43['getActiveSheet']())==null?void 0x0:_0x117a14[_0x1f7b7b(0x23e)]())!==_0x3d8751&&await this['_commandService'][_0x1f7b7b(0x2ac)](_0x7515ad['id'],{'unitId':_0x184d43[_0x1f7b7b(0x1ce)](),'subUnitId':_0x3d8751});}};ie=qi([G(0x0,Ut),G(0x1,_0x353efc),G(0x2,_0x125a4d),G(0x3,_0x5a910a(_0x518104)),G(0x4,_0x405dd8(_0x2ec166))],ie);var en=Object[_0x4a9b73(0xc4)],tn=(_0x16bf38,_0x3b2d7b,_0xdb4953,_0x4a8bce)=>{const _0x35edbc=_0x4a9b73;for(var _0x5e4142=_0x4a8bce>0x1?void 0x0:_0x4a8bce?en(_0x3b2d7b,_0xdb4953):_0x3b2d7b,_0x3d4d32=_0x16bf38[_0x35edbc(0x190)]-0x1,_0x59fbcd;_0x3d4d32>=0x0;_0x3d4d32--)(_0x59fbcd=_0x16bf38[_0x3d4d32])&&(_0x5e4142=_0x59fbcd(_0x5e4142)||_0x5e4142);return _0x5e4142;},pe=(_0x33d5fd,_0x1c5890)=>(_0x263a15,_0x4f5081)=>_0x1c5890(_0x263a15,_0x4f5081,_0x33d5fd);let ne=class{constructor(_0x8c12ec,_0x1bdb67,_0x3e0fad){const _0x3eb0f6=_0x4a9b73;this[_0x3eb0f6(0x23c)]=_0x8c12ec,this[_0x3eb0f6(0x20b)]=_0x1bdb67,this[_0x3eb0f6(0xd1)]=_0x3e0fad;}[_0x4a9b73(0x194)](_0x248d9a){const _0x45b8dc=_0x4a9b73;this[_0x45b8dc(0xfc)](_0x248d9a),this[_0x45b8dc(0x13f)](_0x248d9a);}[_0x4a9b73(0x129)](_0x309d3a){const _0x317669=_0x4a9b73,{unitID:_0x59d0e1}=_0x309d3a,_0xa2d7=this['_renderManagerService'][_0x317669(0x205)](_0x59d0e1)[_0x317669(0x201)](_0x4d8eea),{redoCache:_0x3aa429}=_0xa2d7['getUndoRedoMutationParamsCache']();if(_0x3aa429[_0x317669(0x190)]===0x0)return _0x309d3a;let _0x4ae1a1=_0x51c666[_0x317669(0x2ab)](_0x309d3a[_0x317669(0x2b5)][0x0]);for(let _0x3df4e4=0x0;_0x3df4e4<_0x3aa429['length'];_0x3df4e4++){const _0x46d234={'id':_0x317669(0x24e),'params':{..._0x3aa429[_0x3df4e4]}},_0x16ead0=this[_0x317669(0x20b)]['transformMutation'](_0x4ae1a1,_0x46d234,!0x1);if(_0x5f38d2(_0x16ead0))throw _0x16ead0['error'];_0x4ae1a1=_0x16ead0[_0x317669(0x179)];}return{..._0x51c666[_0x317669(0x2ab)](_0x309d3a),'mutations':[_0x4ae1a1]};}['_transformUndoRedoStack'](_0x2443d1){const _0xd38bd7=_0x4a9b73,{unitID:_0x571919}=_0x2443d1,_0x18ef65=this['_renderManagerService'][_0xd38bd7(0x205)](_0x571919)[_0xd38bd7(0x201)](_0x4d8eea),{undoCache:_0x32dba7,redoCache:_0x1d3007}=_0x18ef65[_0xd38bd7(0x22c)]();if(_0x32dba7['length']===0x0||_0x1d3007[_0xd38bd7(0x190)]===0x0)return;const _0x53d05d=[],_0x1c12ea=[];let _0x8d5a68=_0x51c666['deepClone'](_0x2443d1[_0xd38bd7(0x2b5)][0x0]),_0x3df46f=_0x51c666[_0xd38bd7(0x2ab)](_0x2443d1[_0xd38bd7(0x2b5)][0x0]);for(let _0x5054b3=_0x32dba7[_0xd38bd7(0x190)]-0x1;_0x5054b3>=0x0;_0x5054b3--){const _0x542177={'id':_0xd38bd7(0x24e),'params':{..._0x32dba7[_0x5054b3]}},_0x53b98b={'id':_0xd38bd7(0x24e),'params':{..._0x1d3007[_0x5054b3]}},_0x1b2940=this[_0xd38bd7(0x20b)][_0xd38bd7(0x14e)](_0x8d5a68,_0x542177,!0x1),_0x4740d5=this['_transformService']['transformMutation'](_0x3df46f,_0x53b98b,!0x1);if(_0x5f38d2(_0x1b2940))throw _0x1b2940[_0xd38bd7(0x25e)];if(_0x5f38d2(_0x4740d5))throw _0x4740d5[_0xd38bd7(0x25e)];_0x53d05d[_0xd38bd7(0x162)](_0x1b2940[_0xd38bd7(0xdb)]['params']),_0x1c12ea[_0xd38bd7(0x162)](_0x4740d5['m2Prime'][_0xd38bd7(0x15c)]),_0x8d5a68=_0x1b2940[_0xd38bd7(0x179)],_0x3df46f=_0x4740d5[_0xd38bd7(0x179)];}_0x18ef65['setUndoRedoMutationParamsCache']({'undoCache':_0x53d05d,'redoCache':_0x1c12ea});}['_transformPreviousActiveRange'](_0x4f70fa){const _0x463ca6=_0x4a9b73,{unitID:_0x59cade}=_0x4f70fa,_0x3f04a4=this[_0x463ca6(0xd1)][_0x463ca6(0x205)](_0x59cade)[_0x463ca6(0x201)](_0x4d8eea),_0x35524b=_0x3f04a4[_0x463ca6(0x11f)]();if(_0x35524b==null)return;const _0x5208e1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4f70fa[_0x463ca6(0x15e)],'actions':null,'textRanges':[_0x35524b]}}],_0x189d67=this[_0x463ca6(0x20b)]['transformMutationsWithChangeset'](_0x4f70fa,_0x5208e1);if(!_0x1a68b3(_0x189d67))throw _0x189d67[_0x463ca6(0x25e)];const _0x276db3=_0x189d67[_0x463ca6(0xdb)][0x0][_0x463ca6(0x15c)][_0x463ca6(0x207)];Array[_0x463ca6(0x1fc)](_0x276db3)&&_0x276db3[_0x463ca6(0x190)]&&_0x3f04a4[_0x463ca6(0x25f)](_0x276db3[0x0]);}};ne=tn([pe(0x0,_0x5a910a(_0x315584)),pe(0x1,_0x374c61),pe(0x2,_0x164fdf)],ne);var sn=Object[_0x4a9b73(0xc4)],nn=(_0x3579db,_0x1b6f59,_0x3d6a89,_0x5073e5)=>{for(var _0x30ffa8=_0x5073e5>0x1?void 0x0:_0x5073e5?sn(_0x1b6f59,_0x3d6a89):_0x1b6f59,_0x178ef8=_0x3579db['length']-0x1,_0x336291;_0x178ef8>=0x0;_0x178ef8--)(_0x336291=_0x3579db[_0x178ef8])&&(_0x30ffa8=_0x336291(_0x30ffa8)||_0x30ffa8);return _0x30ffa8;},Ce=(_0x4a7371,_0x583920)=>(_0x37fd66,_0x39339e)=>_0x583920(_0x37fd66,_0x39339e,_0x4a7371);let re=class{constructor(_0x2a2593,_0x34e525,_0x2a28cd){const _0x160e19=_0x4a9b73;this[_0x160e19(0x23c)]=_0x2a2593,this[_0x160e19(0x20b)]=_0x34e525,this[_0x160e19(0x1e2)]=_0x2a28cd;}[_0x4a9b73(0x2ba)](_0x5c94c9){const _0x29a486=_0x4a9b73;this[_0x29a486(0x1d1)](_0x5c94c9);}[_0x4a9b73(0x129)](_0x2c379b){const _0x13e384=_0x4a9b73,{unitID:_0x502168}=_0x2c379b,{collaboration:_0x18b565}=this['_docStateChangeManagerService'][_0x13e384(0x21a)](_0x502168);if(_0x18b565['length']===0x0)return _0x2c379b;let _0x4e31c9=_0x51c666['deepClone'](_0x2c379b[_0x13e384(0x2b5)][0x0]);for(let _0x3f3321=0x0;_0x3f3321<_0x18b565[_0x13e384(0x190)];_0x3f3321++){const _0x5b888d={'id':_0x13e384(0x24e),'params':{'unitId':_0x18b565[_0x3f3321][_0x13e384(0x172)],..._0x18b565[_0x3f3321][_0x13e384(0x1c8)]}},_0x522de4=this['_transformService'][_0x13e384(0x14e)](_0x4e31c9,_0x5b888d,!0x1);if(_0x5f38d2(_0x522de4))throw _0x522de4[_0x13e384(0x25e)];_0x4e31c9=_0x522de4[_0x13e384(0x179)];}return{..._0x51c666[_0x13e384(0x2ab)](_0x2c379b),'mutations':[_0x4e31c9]};}['_transformHistoryAndStateStack'](_0x31ba9e){const _0x512491=_0x4a9b73,{unitID:_0x4a8c6e}=_0x31ba9e,{history:_0x5beb92,collaboration:_0x5259f7}=this[_0x512491(0x1e2)][_0x512491(0x21a)](_0x4a8c6e);if(_0x5beb92[_0x512491(0x190)]===0x0&&_0x5259f7[_0x512491(0x190)]===0x0)return;const _0x4cc538=[],_0x2cfd0a=[];let _0x7d55cf=_0x51c666['deepClone'](_0x31ba9e[_0x512491(0x2b5)][0x0]),_0x575b8c=_0x51c666[_0x512491(0x2ab)](_0x31ba9e['mutations'][0x0]);for(let _0x58644c=_0x5beb92['length']-0x1;_0x58644c>=0x0;_0x58644c--){const _0x18c6b0={'id':_0x512491(0x24e),'params':{'unitId':_0x5beb92[_0x58644c][_0x512491(0x172)],..._0x5beb92[_0x58644c]['undoState']}},_0x4ab785={'id':_0x512491(0x24e),'params':{'unitId':_0x5beb92[_0x58644c][_0x512491(0x172)],..._0x5beb92[_0x58644c][_0x512491(0x1c8)]}},_0x5ec488=this[_0x512491(0x20b)][_0x512491(0x14e)](_0x7d55cf,_0x18c6b0,!0x1),_0x5efb71=this['_transformService'][_0x512491(0x14e)](_0x575b8c,_0x4ab785,!0x1);if(_0x5f38d2(_0x5ec488))throw _0x5ec488[_0x512491(0x25e)];if(_0x5f38d2(_0x5efb71))throw _0x5efb71[_0x512491(0x25e)];_0x4cc538[_0x512491(0x162)]({..._0x5beb92[_0x58644c],'undoState':_0x5ec488[_0x512491(0xdb)][_0x512491(0x15c)],'redoState':_0x5efb71['m2Prime']['params']}),_0x7d55cf=_0x5ec488[_0x512491(0x179)],_0x575b8c=_0x5efb71[_0x512491(0x179)];}_0x7d55cf=_0x51c666['deepClone'](_0x31ba9e['mutations'][0x0]),_0x575b8c=_0x51c666[_0x512491(0x2ab)](_0x31ba9e['mutations'][0x0]);for(let _0x2583a1=_0x5259f7['length']-0x1;_0x2583a1>=0x0;_0x2583a1--){const _0x2073cf={'id':_0x512491(0x24e),'params':{'unitId':_0x5259f7[_0x2583a1]['unitId'],..._0x5259f7[_0x2583a1][_0x512491(0x15f)]}},_0x4af910={'id':_0x512491(0x24e),'params':{'unitId':_0x5259f7[_0x2583a1]['unitId'],..._0x5259f7[_0x2583a1]['redoState']}},_0x2a8329=this[_0x512491(0x20b)]['transformMutation'](_0x7d55cf,_0x2073cf,!0x1),_0x3bd70e=this[_0x512491(0x20b)][_0x512491(0x14e)](_0x575b8c,_0x4af910,!0x1);if(_0x5f38d2(_0x2a8329))throw _0x2a8329[_0x512491(0x25e)];if(_0x5f38d2(_0x3bd70e))throw _0x3bd70e[_0x512491(0x25e)];_0x2cfd0a[_0x512491(0x162)]({..._0x5259f7[_0x2583a1],'undoState':_0x2a8329['m2Prime'][_0x512491(0x15c)],'redoState':_0x3bd70e[_0x512491(0xdb)][_0x512491(0x15c)]}),_0x7d55cf=_0x2a8329[_0x512491(0x179)],_0x575b8c=_0x3bd70e[_0x512491(0x179)];}this[_0x512491(0x1e2)][_0x512491(0x11d)](_0x4a8c6e,{'history':_0x4cc538,'collaboration':_0x2cfd0a});}};re=nn([Ce(0x0,_0x5a910a(_0x315584)),Ce(0x1,_0x374c61),Ce(0x2,_0x5a910a(_0x5c9ae2))],re);var rn=Object[_0x4a9b73(0xc4)],on=(_0x33ed34,_0x46412d,_0x3ae330,_0xe1ff33)=>{for(var _0x3c0ae0=_0xe1ff33>0x1?void 0x0:_0xe1ff33?rn(_0x46412d,_0x3ae330):_0x46412d,_0x502cc6=_0x33ed34['length']-0x1,_0x8f3028;_0x502cc6>=0x0;_0x502cc6--)(_0x8f3028=_0x33ed34[_0x502cc6])&&(_0x3c0ae0=_0x8f3028(_0x3c0ae0)||_0x3c0ae0);return _0x3c0ae0;},tt=(_0x4108ab,_0x158f6a)=>(_0x49ebde,_0x5d2c77)=>_0x158f6a(_0x49ebde,_0x5d2c77,_0x4108ab);let oe=class{constructor(_0x8d0a8,_0x2da135){const _0x38cd70=_0x4a9b73;this[_0x38cd70(0x23c)]=_0x8d0a8,this[_0x38cd70(0x20b)]=_0x2da135;}['transformSelections'](_0x44044b){const _0x31fc45=_0x4a9b73;var _0x2fcb66;const _0x477342=this['_injector']['get'](_0x277911),_0xc88dcd=(_0x2fcb66=_0x477342[_0x31fc45(0x12b)]())!=null?_0x2fcb66:[];if(_0xc88dcd[_0x31fc45(0x190)]===0x0)return;const _0x1228c9=_0x44044b[_0x31fc45(0x15e)],_0x58535c=[{'id':_0x31fc45(0x24e),'params':{'unitId':_0x1228c9,'actions':null,'textRanges':_0xc88dcd}}],_0x4adb29=this[_0x31fc45(0x20b)][_0x31fc45(0x1a9)](_0x44044b,_0x58535c);if(!_0x1a68b3(_0x4adb29))throw _0x4adb29[_0x31fc45(0x25e)];const _0x3afa6d=_0x4adb29[_0x31fc45(0xdb)][0x0][_0x31fc45(0x15c)][_0x31fc45(0x207)];Array['isArray'](_0x3afa6d)&&_0x3afa6d[_0x31fc45(0x190)]&&_0x477342[_0x31fc45(0x10b)](_0x3afa6d,{'unitId':_0x1228c9,'subUnitId':_0x1228c9},!0x1);}};oe=on([tt(0x0,_0x5a910a(_0x315584)),tt(0x1,_0x374c61)],oe);var an=Object['getOwnPropertyDescriptor'],cn=(_0x5f2e88,_0x582ae4,_0x32c9a3,_0x4a1103)=>{for(var _0x2b2330=_0x4a1103>0x1?void 0x0:_0x4a1103?an(_0x582ae4,_0x32c9a3):_0x582ae4,_0x1c5bd4=_0x5f2e88['length']-0x1,_0x1af08c;_0x1c5bd4>=0x0;_0x1c5bd4--)(_0x1af08c=_0x5f2e88[_0x1c5bd4])&&(_0x2b2330=_0x1af08c(_0x2b2330)||_0x2b2330);return _0x2b2330;},U=(_0x175ec9,_0xc8a9ab)=>(_0x460f11,_0x33b288)=>_0xc8a9ab(_0x460f11,_0x33b288,_0x175ec9);let ae=class extends _0x3ca0d9{constructor(_0x2bf567,_0x4a8d55,_0x3f5387,_0x3689dd,_0x269786,_0x2b9af6,_0x2d8431,_0x3bce66){const _0x4c63c6=_0x4a9b73;super(),_(this,_0x4c63c6(0x1f3),new _0x4ae7de(_0x167395[_0x4c63c6(0x242)])),(this[_0x4c63c6(0x1e2)]=_0x2bf567,this[_0x4c63c6(0xcf)]=_0x4a8d55,this['_docTransformIMECacheService']=_0x3f5387,this[_0x4c63c6(0x100)]=_0x3689dd,this[_0x4c63c6(0x264)]=_0x269786,this[_0x4c63c6(0x290)]=_0x2b9af6,this[_0x4c63c6(0x27d)]=_0x2d8431,this['_localeService']=_0x3bce66,this['_initEntityListener']());}['_initEntityListener'](){const _0x719a6f=_0x4a9b73;this[_0x719a6f(0xc8)](this[_0x719a6f(0xcf)][_0x719a6f(0x18e)][_0x719a6f(0x257)](_0x2be980=>{const _0x4b30b9=_0x719a6f,_0x213b7e=this[_0x4b30b9(0x1e2)][_0x4b30b9(0x253)][_0x4b30b9(0x257)](_0x3bc415=>{const _0x430f41=_0x4b30b9;if(_0x3bc415==null)return;const {unitId:_0x3fcf76,redoState:_0x2c1edf,commandId:_0x287c71}=_0x3bc415;if(_0x3fcf76!==_0x2be980[_0x430f41(0x15e)])return;const _0x4a3d57={'id':_0x287c71,'type':_0x5e5d3a[_0x430f41(0x18a)],'params':{'unitId':_0x3fcf76,'actions':_0x2c1edf[_0x430f41(0x154)],'textRanges':null}};_0x2be980[_0x430f41(0xc3)](_0x4a3d57);});if(_0x2be980[_0x4b30b9(0xc8)](_0x213b7e),_0x2be980 instanceof _0x175eda){const _0x2a2d7e={'onTransformIME':_0x5bd2d7=>this[_0x4b30b9(0xda)][_0x4b30b9(0x194)](_0x5bd2d7),'onTransformState':_0x55191a=>this[_0x4b30b9(0x100)]['transformStateCache'](_0x55191a),'onTransformSelections':_0x5e7721=>this[_0x4b30b9(0x264)]['transformSelections'](_0x5e7721),'onSyncEditingCollabCursor':_0x404523=>this['_docSyncEditingCollabCursorService'][_0x4b30b9(0xe2)](_0x404523),'onTransformRemoteChangesetByIMECache':_0x12ff45=>this[_0x4b30b9(0xda)][_0x4b30b9(0x129)](_0x12ff45),'onTransformRemoteChangesetByStateCache':_0x4a42a8=>this[_0x4b30b9(0x100)][_0x4b30b9(0x129)](_0x4a42a8)};_0x2be980[_0x4b30b9(0x1d2)](_0x2a2d7e);}}));}};function _0x54df(){const _0x3b8bde=['_scheduleClearOtherTimer','_updateSubUnitFromURLParams','_configService','LICENSE_EXPORT_SIZE_EXCEEDED','text','getViewport','complete','getSheetBySheetId','push','black','doc.mutation.rich-text-editing','_id','_instanceService','[CollaborationDataLoaderController]','code','docStateChange$','show','_initStatusListener','transformByState','subscribe','editingUnit','_startSheetCollabCursor','registerRenderModule','displayName','_initCommandExecutedListener','_onCursorDelete','error','setActiveRange','round','cursorInfo$','_toggleOnline','forEach','_docTransformSelectionsService','fillText','DeleteRangeMoveLeftCommandId','Unknown\x20user','Warning','onCommandExecuted','APPLY_NON_SEQUENTIAL_REVISION','1023814ifMqSy','sessionStatus$','990eGfjvy','_doCreateSocket','replace','onRendered','_roomMembers$','onTransformChange$','_color','_initResize','_shapes','getTypeOfUnitDisposed$','_collabCursorState$','36264xvKYXB','values','UNDEFINED','_startDocCollabCursor','PY_RUNTIME_SCRIPT_ERROR','_messageService','ONLINE','labelPosition','INVITE_CODE_HAS_BEEN_UES','161184GTnMgk','dispose$','_univerInstanceService','makeDirty','xlink:href','setTimeout','MOBILE_HAS_BEEN_BOUND','call','univer-text-red-500','_eventUnsubscribe','key','max','YUUMI_RATE_OVER_LIMIT','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_document','_docSyncEditingCollabCursorService','LICENSE_IMPORT_SIZE_EXCEEDED','3878fQRdtr','addObject','cursorInfo','getOffsetConfig','some','collabStatus.notCollab','_collabSessionService','sheetID','status$','0\x200\x2017\x2016','data','debug','min','add','_refRangeService','setShapeProps','HEADER_MENU','collabStatus.fetchMiss','_notificationService','_themeService','collabStatus.synced','substring','registerBeforeClose','unit','1em','deepClone','executeCommand','split','M0\x200H16V16H0z','pluginName','url(#$1','contains','registerComponent','YUUMI_SUBSCRIPTION_NOT_FOUND','_drawRectRange','mutations','removeParam','getItem','_config','pushState','transformStateCache','_registerRenderDependencies','asObservable','searchParams','UNRECOGNIZED','_init','YUUMI_ASYNCIO_CANCELLED','defs','origin','body','onLocalMutation','getOwnPropertyDescriptor','_ensureSubject','FromArray','APPLY_DUPLICATED','disposeWithMe','APPLY_REJECT','setParam','currentTheme$','getVpScrollXYInfoByPosToVp','_hover','isActive','_collaborationController','off-line-single_clip0_910_343','_renderManagerService','location','getMergeData','_updateLocalCursor','COMPLETION_FINISHED','collaboration.closeRoom','getCurrent','_scheduleHeartbeat','string','_docTransformIMECacheService','m2Prime','APPLY_PERMISSION_DENIED','_docSkeletonManagerService','_getMergeRange','_labelPosition','_setupSubUnitSync','_online','syncEditingCollabCursor','saveOfflineData','saveTaskMap','triggerDblclick','getUnitStatus$','onPointerLeave$','APPLY_REVISION_CONFILICT','replaceState','_clearOtherTimers','green.600','4WogKjm','ticket','_localCacheService','url(#on-line-single_clip0_910_349)','clearTimeout','addObjects','stringify','LICENSE_MAX_UNITS_EXCEEDED','_colorIndex','RECT','registerRefRange','ALREADY_EXISTS','_httpService','extend','RemoveRowCommandId','_dataLoaderService','_transformUndoRedoStack','popstate','roomMembers$','hasOwnProperty','_docTransformStateCacheService','InsertRangeMoveDownCommandId','prototype','ENSURE_SNAPSHOT_EXECUTION','executionId','runOnServer','set','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_cursor','getConfig','CONNECTOR_DATA_TOO_LARGE','replaceDocRanges','_refreshCollabCursors','_getSheetObject','collab-rect-range-','invokeId','function','column','_scene','selection','idSuffix','getFocusedUnit','toString','assignAColorForMemberID','_anchor','type','defineProperty','_cursors','event$','setStateCache','_revisionService','getActiveRange','OffLineSingle','_assignedColors','createSocket','startColumn','SOCKET_FAILED_RETRY','save','top','collaboration-client.offline-data-not-saved','session.will-retry','transformRemoteChangeset','onMouseMove','getDocRanges','measureText','_handleHeartbeatEvent','_urlService','tag','roomMembers','Failed','AWAITING_WITH_PENDING','override','apply','INVALID_ARGUMENT','AWAITING','on-line-single_clip0_910_349','focused$','on-line-single','history','range','UNIVER_SHEET','mask','toRgbString','_transformPreviousActiveRange','InsertRangeMoveRightCommandId','arc','map','_entityInit$','_saveTaskMap','#FFF','session.collaboration-timeout','_context','findNodePositionByCharIndex','hide','init','size','_saveCache','OTHER_CLIENT_EDITING','transformMutation','0\x200\x2016\x2016','_handleEvent','path','icon','_session','actions','div','_logService','_backgroundColor','application/json','_handleLeaveEvent','_anchorDot','_getSaveTimeout','params','getCollabCursors$','unitID','undoState','_onCursorUpdate','fillRule','unshift','width','_textBubble','_sheetSkeletonManagerService','185798RoqmrW','skeleton','LICENSE_DISTRO_REJECTED','_drawTextRange','setAlpha','source','href','wsSessionTicketUrl','fillStyle','collabStatus.conflict','RemoveColCommandId','_getAnchorBounding','unitId','YUUMI_NO_CUBOID_FOR_QUESTION','height','drawWith','colorChannel1','updateOfflineData','resize','m1Prime','random','_render','addClipboardHook','SUBMIT_CHANGESET_TIMEOUT','...','requireSession','getCellPositionByOffset','session.connection-failed','_unitStatus','trim','NO_OTHER_CLIENTS_EDITING','getColorFromTheme','_setupBeforeClosingHandler','_localeService','currentColor','_commandService','MUTATION','_colorAssignService','getRelativeToViewportCoord','getSkeleton','entityInit$','TEXT','length','loadUnit','restore','_range','transformIMECache','univerjs-icon\x20univerjs-icon-','_memberService','dispose','_createSocketURL','_unitOnClients','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','then','SNAPSHOT_INVALID_SNAPSHOT','UniverIcon','_updateCollabCursors','delete','YUUMI_UNABLE_LOAD_URL','onPointerEnter$','ACTIVE_UNIT_EVENT_CHANNEL','INVALID_INVITE_CODE','_localStorageService','generateRandomId','blue.400','fill','_selfUnitIDs','transformMutationsWithChangeset','_beforeCloseService','DeleteRangeMoveUpCommandId','startsWith','subscribeEvent','name','sheetId','getAncestorScale','yellow.400','color','CONFLICT','attrs','NOT_FOUND','transform','setItem','_getScale','enableLocalCache','imageSourceType','createInstance','_entities','LOGIN_FAILED','WECHAT_HAS_BEEN_BOUND','YUUMI_TABLE_NOT_FOUND_IN_UNIT','concat','pipe','getParam','CHANGESET_REVISION_CONFILICT','_handleHover','TOO_MANY_REQUESTS','unsubscribe','_hideTimer','redoState','eventID','getTypeOfUnitAdded$','_initEvent','saveImage','subunit','getUnitId','getCurrentUnitForType','evenodd','_transformHistoryAndStateStack','addHandlerCallback','_cachedData','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/run/','_imageIoService','has','memberID','SYNCED','UPDATE_CURSOR','_removeClearOtherTimer','uni.network.url-service','startRow','getRangePointData','assign','_toggleOffline','_initDependencies','_docStateChangeManagerService','getCurrentRevOfUnit','_hovered','row','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600','#fff','urlChange$','OTHER_CLIENTS_EDITING','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','_docClipboardService','from','Error','currentSkeleton$','bottom','collaboration-client-ui.config','VIEW_MAIN','INTERNAL_ERROR','_status$','_send','170jhfDxM','_heartbeatTimer','loadOfflineData','lineTo','getMemberID','_onRefRangeChange','get','isArray','getValue','USERS_LEAVE','YUUMI_AI_RUN_FAILED','_uiPartsService','with','SNAPSHOT_HAS_BEEN_REMOVED','_handleJoinEvent','OFFLINE','getRenderById','flatMap','textRanges','13vQznRz','closePath','newValue','_transformService','children','current','_updateURLWithCurrentState','SOCKET_FAILED','collabStatus.syncing','jiqing.500','entries','_initStatusComponent','defIds','collabStatus.offline','sessionTicket','endRow','clipPath','_collabCursorController','getStateCache','UNAUTHENTICATED','ranges','endColumn','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','next','_cursorInfo$','INVITE_CODE_REQUIRED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getUniverSheetInstance','className','storage','PERMISSION_DENIED','UNIVER_DOC','_registerDependencies','setInterval','_removeCollabCursors','EMAIL_HAS_BEEN_BOUND','getUndoRedoMutationParamsCache','red.300','_name','_getSessionTicket','_syncEditingCollabCursorService','2509375TLWciO','none','indexOf','_draw','runId','selections','exhaustSavingTask','_docSkeleton','subUnitId','YUUMI_URL_COL_OUT_OF_RANGE','USER_NOT_INVITED_CODE','_injector','1989231aqJFqN','getSheetId','_disabled','_collaborationUIEventService','_lastPointer','NOT_COLLAB','_cursorShapes'];_0x54df=function(){return _0x3b8bde;};return _0x54df();}ae=cn([U(0x0,_0x5a910a(_0x5c9ae2)),U(0x1,_0x5a910a(_0x7aeeca)),U(0x2,_0x5a910a(ne)),U(0x3,_0x5a910a(re)),U(0x4,_0x5a910a(oe)),U(0x5,_0x5a910a(He)),U(0x6,_0x3be822),U(0x7,_0x5a910a(_0x15a6bf))],ae);var ln=Object[_0x4a9b73(0xc4)],_n=(_0x33b6bc,_0x97b9d0,_0x46493d,_0x53244e)=>{const _0x39c6a3=_0x4a9b73;for(var _0x4a8d0c=_0x53244e>0x1?void 0x0:_0x53244e?ln(_0x97b9d0,_0x46493d):_0x97b9d0,_0x5a91c2=_0x33b6bc[_0x39c6a3(0x190)]-0x1,_0x85179d;_0x5a91c2>=0x0;_0x5a91c2--)(_0x85179d=_0x33b6bc[_0x5a91c2])&&(_0x4a8d0c=_0x85179d(_0x4a8d0c)||_0x4a8d0c);return _0x4a8d0c;},Ee=(_0x104587,_0x1ac1b8)=>(_0x3650e1,_0x16b4c0)=>_0x1ac1b8(_0x3650e1,_0x16b4c0,_0x104587);let we=class extends _0x3ca0d9{constructor(_0x177257,_0x3dfd53,_0x214288){const _0x5bda2e=_0x4a9b73;super(),_(this,_0x5bda2e(0x1d3),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x177257,this[_0x5bda2e(0x1a4)]=_0x3dfd53,this[_0x5bda2e(0x11e)]=_0x214288);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x4a9b73(0x1b9)](){const _0x148c65=_0x4a9b73;this[_0x148c65(0x23f)]=!0x1;}get[_0x4a9b73(0xe4)](){const _0x3b9678=_0x4a9b73;return this[_0x3b9678(0x144)];}[_0x4a9b73(0x197)](){const _0x66c69a=_0x4a9b73;this[_0x66c69a(0x237)]()['then'](()=>super[_0x66c69a(0x197)]());}async[_0x4a9b73(0x1f7)](_0x3cb640){const _0xf0f3c8=_0x4a9b73;return this[_0xf0f3c8(0x23f)]?null:this[_0xf0f3c8(0x1a4)][_0xf0f3c8(0x2b7)](_0x20acbd(_0x3cb640));}async[_0x4a9b73(0xe3)](_0x3814c1,_0x333f57){const _0x55fbee=_0x4a9b73;return!!this[_0x55fbee(0x1a4)][_0x55fbee(0x1b7)](_0x3814c1,_0x333f57);}[_0x4a9b73(0x177)](_0x2eceac,_0x16ea31,_0x3f5554,_0x2ea330){const _0x1a2c1b=_0x4a9b73,_0xda287=this[_0x1a2c1b(0x11e)][_0x1a2c1b(0x1e3)](_0x2eceac);this[_0x1a2c1b(0x1d3)][_0x1a2c1b(0x106)](_0x2eceac,{'unitID':_0x2eceac,'type':_0x16ea31,'awaitingChangeset':_0x3f5554,'mutations':_0x2ea330,'rev':_0xda287}),this[_0x1a2c1b(0x144)][_0x1a2c1b(0x1d7)](_0x2eceac)||this['_scheduleSaving'](_0x2eceac);}['_scheduleSaving'](_0x20dff1){const _0xd93844=_0x4a9b73,_0x3982a3=this[_0xd93844(0x15b)]();_0x3982a3===0x0?this[_0xd93844(0x14c)](_0x20dff1):this['_saveTaskMap']['set'](_0x20dff1,setTimeout(()=>this['_saveCache'](_0x20dff1),_0x3982a3));}['_getSaveTimeout'](){const _0x24d182=_0x4a9b73;var _0x5508bd;return(_0x5508bd=this['_configService'][_0x24d182(0x109)](_0x46d235))!=null?_0x5508bd:_0x13bfee;}[_0x4a9b73(0x14c)](_0x3faac5){const _0x567768=_0x4a9b73,_0xb5bda1=this[_0x567768(0x144)][_0x567768(0x1fb)](_0x3faac5);return _0xb5bda1!==void 0x0&&window['clearTimeout'](_0xb5bda1),this[_0x567768(0x1a4)][_0x567768(0x1b7)](_0x20acbd(_0x3faac5),this[_0x567768(0x1d3)][_0x567768(0x1fb)](_0x3faac5))[_0x567768(0x19b)](()=>this['_saveTaskMap'][_0x567768(0x19f)](_0x3faac5));}async[_0x4a9b73(0x237)](){const _0x2c27c7=_0x4a9b73,_0x3cfb96=[];this['_saveTaskMap'][_0x2c27c7(0x263)]((_0x455ead,_0x2bc4d7)=>{const _0x3198b3=_0x2c27c7;window[_0x3198b3(0xf0)](_0x455ead),_0x3cfb96[_0x3198b3(0x24c)](this[_0x3198b3(0x14c)](_0x2bc4d7)[_0x3198b3(0x19b)](()=>{const _0x515e67=_0x3198b3;this[_0x515e67(0x144)]['delete'](_0x2bc4d7);}));}),await Promise['all'](_0x3cfb96);}};we=_n([Ee(0x0,_0x34b4f6),Ee(0x1,_0x11d7b1),Ee(0x2,_0x5a910a(_0x15d859))],we);class hn extends _0x43324a{constructor(){const _0x5cdc2d=_0x4a9b73;super(),_(this,_0x5cdc2d(0x1e8)),this[_0x5cdc2d(0x1e8)]=_0x578952(window,_0x5cdc2d(0xfd))[_0x5cdc2d(0x1c1)](_0x2c1b93(this['dispose$']),_0x554e7a(0x1),_0x5410f0(void 0x0));}[_0x4a9b73(0xca)](_0x2a5a0c,_0x5b7751,_0x53abbf=!0x1){const _0x14e7b1=_0x4a9b73,_0x4a88fb=new URL(window['location']['href']);_0x4a88fb['searchParams'][_0x14e7b1(0x106)](_0x2a5a0c,_0x5b7751),_0x53abbf?window[_0x14e7b1(0x13a)][_0x14e7b1(0xe9)]('','',_0x4a88fb[_0x14e7b1(0x116)]()):window['history'][_0x14e7b1(0x2b9)]('','',_0x4a88fb[_0x14e7b1(0x116)]());}[_0x4a9b73(0x2b6)](_0x3f4b6f,_0xde03e4=!0x1){const _0x16772d=_0x4a9b73,_0x4fa4b4=new URL(window[_0x16772d(0xd2)][_0x16772d(0x16c)]);_0x4fa4b4[_0x16772d(0x2bd)][_0x16772d(0x19f)](_0x3f4b6f),_0xde03e4?window['history']['replaceState']('','',_0x4fa4b4['toString']()):window[_0x16772d(0x13a)][_0x16772d(0x2b9)]('','',_0x4fa4b4['toString']());}[_0x4a9b73(0x1c2)](_0x8a5b94){const _0x43a965=_0x4a9b73;var _0x416c31;return(_0x416c31=new URL(window['location'][_0x43a965(0x16c)])[_0x43a965(0x2bd)][_0x43a965(0x1fb)](_0x8a5b94))!=null?_0x416c31:void 0x0;}}var un=Object[_0x4a9b73(0x11a)],dn=Object[_0x4a9b73(0xc4)],fn=(_0x2d023a,_0x1f24a8,_0x4fcd38)=>_0x1f24a8 in _0x2d023a?un(_0x2d023a,_0x1f24a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fcd38}):_0x2d023a[_0x1f24a8]=_0x4fcd38,Sn=(_0x27a230,_0x57bbd8,_0x4b2369,_0xaa050)=>{const _0x2a0a6d=_0x4a9b73;for(var _0x1daf7b=_0xaa050>0x1?void 0x0:_0xaa050?dn(_0x57bbd8,_0x4b2369):_0x57bbd8,_0x4c744e=_0x27a230[_0x2a0a6d(0x190)]-0x1,_0x479ecf;_0x4c744e>=0x0;_0x4c744e--)(_0x479ecf=_0x27a230[_0x4c744e])&&(_0x1daf7b=_0x479ecf(_0x1daf7b)||_0x1daf7b);return _0x1daf7b;},Oe=(_0x55c9ca,_0x270963)=>(_0x430331,_0x5842b8)=>_0x270963(_0x430331,_0x5842b8,_0x55c9ca),mn=(_0xfbae69,_0x13ef7f,_0x47b185)=>fn(_0xfbae69,_0x13ef7f+'',_0x47b185);const gn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x31e378{constructor(_0x324ea5=et,_0x25600b,_0x3bbcd2,_0x3fc18a){const _0x36e7c6=_0x4a9b73;super(),this[_0x36e7c6(0x2b8)]=_0x324ea5,this[_0x36e7c6(0xd1)]=_0x25600b,this[_0x36e7c6(0x23c)]=_0x3bbcd2,this[_0x36e7c6(0x246)]=_0x3fc18a;const {..._0xbf66b4}=_0x4ed531({},et,this[_0x36e7c6(0x2b8)]);this[_0x36e7c6(0x246)]['setConfig'](Zi,_0xbf66b4);}['onStarting'](){const _0x510846=_0x4a9b73;this[_0x510846(0x228)](),this[_0x510846(0x1e1)]();}[_0x4a9b73(0x270)](){this['_registerRenderDependencies']();}[_0x4a9b73(0x228)](){const _0x347860=_0x4a9b73;var _0x8493c7;const _0x408c85=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x1d89e7,{'useClass':_0x5e2d02}],[_0x27b901,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x5a2be1(this[_0x347860(0x23c)],_0x452377(_0x408c85,(_0x8493c7=this[_0x347860(0x2b8)])==null?void 0x0:_0x8493c7[_0x347860(0x133)]));}[_0x4a9b73(0x2bb)](){const _0x3e23eb=_0x4a9b73;this[_0x3e23eb(0xc8)](this['_renderManagerService'][_0x3e23eb(0x25a)](_0x4d90ef[_0x3e23eb(0x227)],[Pe])),this[_0x3e23eb(0xc8)](this[_0x3e23eb(0xd1)][_0x3e23eb(0x25a)](_0x4d90ef[_0x3e23eb(0x13c)],[Le]));}[_0x4a9b73(0x1e1)](){const _0x3810cd=_0x4a9b73;_0x4ea4eb(this[_0x3810cd(0x23c)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x4a9b73(0x2af),gn),Ae=Sn([_0x172a10(_0x15233f),Oe(0x1,_0x164fdf),Oe(0x2,_0x5a910a(_0x315584)),Oe(0x3,_0x34b4f6)],Ae);var In=Object['getOwnPropertyDescriptor'],vn=(_0x17fa68,_0x2124b2,_0x510ad7,_0x5ac942)=>{const _0x98e232=_0x4a9b73;for(var _0xef4065=_0x5ac942>0x1?void 0x0:_0x5ac942?In(_0x2124b2,_0x510ad7):_0x2124b2,_0x3f3e96=_0x17fa68[_0x98e232(0x190)]-0x1,_0xe8fa30;_0x3f3e96>=0x0;_0x3f3e96--)(_0xe8fa30=_0x17fa68[_0x3f3e96])&&(_0xef4065=_0xe8fa30(_0xef4065)||_0xef4065);return _0xef4065;},K=(_0x543fc1,_0x4c8988)=>(_0x351986,_0x490316)=>_0x4c8988(_0x351986,_0x490316,_0x543fc1);let st=class extends _0x366dd1{constructor(_0x409d7e,_0x20321f,_0x16fc66,_0x14743c,_0x5c3e42){super(_0x409d7e,_0x20321f,_0x16fc66,_0x14743c,_0x5c3e42);}async[_0x4a9b73(0x122)](_0x2d0802){const _0xeff12f=_0x4a9b73,_0xc9aad8=await this[_0xeff12f(0x22f)](),_0xcc37f5=this[_0xeff12f(0x198)](_0x2d0802,_0xc9aad8);return this[_0xeff12f(0x26e)](_0xcc37f5);}[_0x4a9b73(0x198)](_0x3c5456,_0x3c26b2){const _0x35dccb=_0x4a9b73,_0x93c326=typeof window>'u'?new URL(_0x3c5456):new URL(_0x3c5456,window[_0x35dccb(0xd2)][_0x35dccb(0x2c2)]);_0x93c326[_0x35dccb(0x2bd)][_0x35dccb(0x106)](_0x35dccb(0x216),_0x3c26b2);const _0x300f21=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x35dccb(0xd2)]['search']);return _0x300f21[_0x35dccb(0x1fb)]('runId')&&_0x93c326[_0x35dccb(0x2bd)][_0x35dccb(0x106)](_0x35dccb(0x235),_0x300f21['get'](_0x35dccb(0x235))),_0x93c326[_0x35dccb(0x116)]();}async[_0x4a9b73(0x22f)](){const _0x1b7d1c=_0x4a9b73;var _0x24c991,_0x3842a9,_0x48a28c;const _0x5b0d90=this[_0x1b7d1c(0x246)][_0x1b7d1c(0x109)](_0x59f30c),_0x42c112=(_0x24c991=_0x5b0d90==null?void 0x0:_0x5b0d90[_0x1b7d1c(0x16d)])!=null?_0x24c991:_0x5f12f9;return(_0x48a28c=(_0x3842a9=(await this['_httpService']['get'](_0x42c112,{'headers':{'Content-Type':_0x1b7d1c(0x158)}}))['body'])==null?void 0x0:_0x3842a9[_0x1b7d1c(0xed)])!=null?_0x48a28c:'';}};st=vn([K(0x0,_0x5a910a(_0x315584)),K(0x1,_0x5a910a(_0x497203)),K(0x2,_0x34b4f6),K(0x3,_0x353efc),K(0x4,_0x3fe37c)],st);const it=0x7530,nt=_0x4a9b73(0x1a2);class jn extends _0x3ca0d9{constructor(){const _0x484fd3=_0x4a9b73;super(),_(this,_0x484fd3(0x24f),_0x50162d()),_(this,_0x484fd3(0x1a8),new Set()),_(this,_0x484fd3(0x199),new Map()),_(this,_0x484fd3(0x1f6),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x484fd3(0x182),new Map()),this[_0x484fd3(0x2bf)]();}[_0x4a9b73(0x197)](){const _0x4ad517=_0x4a9b73;super[_0x4ad517(0x197)](),this[_0x4ad517(0xea)][_0x4ad517(0x263)]((_0x478490,_0x5b2234)=>this[_0x4ad517(0x1db)](_0x5b2234)),this[_0x4ad517(0x1f6)]&&window['clearInterval'](this[_0x4ad517(0x1f6)]);}[_0x4a9b73(0xe6)](_0x1e7de5){const _0x5b65f6=_0x4a9b73;return this[_0x5b65f6(0xc5)](_0x1e7de5)[_0x5b65f6(0x1c1)](_0x2d4049());}[_0x4a9b73(0x258)](_0x3bb48e){const _0x2d3f15=_0x4a9b73;this[_0x2d3f15(0x1a8)]['size']===0x0&&this[_0x2d3f15(0xd8)](),this[_0x2d3f15(0x1a8)][_0x2d3f15(0x29f)](_0x3bb48e),this[_0x2d3f15(0x1f4)]({'type':0x0,'memberID':this[_0x2d3f15(0x24f)],'unitIDs':[_0x3bb48e],'isForwarded':!0x1});}['disposeUnit'](_0x237d56){const _0x1cd576=_0x4a9b73;this['_selfUnitIDs']['delete'](_0x237d56),this['_selfUnitIDs']['size']===0x0&&this[_0x1cd576(0x1f6)]&&window['clearInterval'](this[_0x1cd576(0x1f6)]);}['_init'](){const _0x46ee31=_0x4a9b73;this[_0x46ee31(0xc8)](_0x3efb45(_0x578952(window,_0x46ee31(0x225))[_0x46ee31(0x257)](_0x4f0be8=>{const _0x1ab059=_0x46ee31;if(_0x4f0be8[_0x1ab059(0x28b)]!==nt||!_0x4f0be8[_0x1ab059(0x20a)])return;const _0x3a3764=JSON['parse'](_0x4f0be8[_0x1ab059(0x20a)]);this[_0x1ab059(0x150)](_0x3a3764);}))),window['addEventListener']('unload',()=>this[_0x46ee31(0x1f4)]({'type':0x1,'memberID':this[_0x46ee31(0x24f)],'unitIDs':Array[_0x46ee31(0x1ec)](this[_0x46ee31(0x1a8)])}));}[_0x4a9b73(0x150)](_0x326fb1){const _0x29b0e8=_0x4a9b73;switch(_0x326fb1[_0x29b0e8(0x119)]){case 0x0:this[_0x29b0e8(0x203)](_0x326fb1);break;case 0x1:this[_0x29b0e8(0x159)](_0x326fb1);break;case 0x2:this[_0x29b0e8(0x12d)](_0x326fb1);break;}}['_handleJoinEvent'](_0x4a5b25){const _0x2f7bec=_0x4a9b73,{unitIDs:_0x58abaa,memberID:_0x498da4,isForwarded:_0x1195b8}=_0x4a5b25;_0x58abaa[_0x2f7bec(0x263)](_0x28c8e5=>{const _0x430c53=_0x2f7bec;if(!_0x1195b8&&this['_unitOnClients']['has'](_0x28c8e5)&&this[_0x430c53(0xc5)](_0x28c8e5)[_0x430c53(0x21f)](_0x13e2cd['OTHER_CLIENTS_EDITING']),!this[_0x430c53(0x199)][_0x430c53(0x1d7)](_0x28c8e5)||!this['_unitOnClients'][_0x430c53(0x1fb)](_0x28c8e5)[_0x430c53(0x1d7)](_0x498da4)){const _0x47a593=this[_0x430c53(0x199)][_0x430c53(0x1fb)](_0x28c8e5)||new Set();_0x47a593[_0x430c53(0x29f)](_0x498da4),this[_0x430c53(0x199)][_0x430c53(0x106)](_0x28c8e5,_0x47a593),this[_0x430c53(0x244)](_0x498da4);}}),_0x1195b8||this[_0x2f7bec(0x1f4)]({'type':0x0,'memberID':this[_0x2f7bec(0x24f)],'unitIDs':[...this[_0x2f7bec(0x1a8)]],'isForwarded':!0x0});}[_0x4a9b73(0x244)](_0x215c89){const _0x16e66c=_0x4a9b73;this['_removeClearOtherTimer'](_0x215c89);const _0x10e679=window[_0x16e66c(0x286)](()=>{const _0x3f16e2=_0x16e66c;this[_0x3f16e2(0x199)][_0x3f16e2(0x263)](_0x49fdee=>{_0x49fdee['delete'](_0x215c89);});},it*0x2);this[_0x16e66c(0xea)][_0x16e66c(0x106)](_0x215c89,_0x10e679);}[_0x4a9b73(0x1db)](_0x1db961){const _0x343108=_0x4a9b73;if(this[_0x343108(0xea)]['has'](_0x1db961)){const _0x9b7bbe=this[_0x343108(0xea)][_0x343108(0x1fb)](_0x1db961);_0x9b7bbe&&window[_0x343108(0xf0)](_0x9b7bbe),this[_0x343108(0xea)]['set'](_0x1db961,null);}}['_handleLeaveEvent'](_0x4821ec){const _0x30fdad=_0x4a9b73,{memberID:_0x328d53,unitIDs:_0x45df99}=_0x4821ec;_0x45df99[_0x30fdad(0x263)](_0xca2169=>{const _0x52ec31=_0x30fdad;var _0x243a68;const _0x19a93c=this[_0x52ec31(0x199)]['get'](_0xca2169);_0x19a93c&&(_0x19a93c[_0x52ec31(0x19f)](_0x328d53),(_0x243a68=this[_0x52ec31(0xc5)](_0xca2169))==null||_0x243a68[_0x52ec31(0x21f)](_0x19a93c['size']===0x0?_0x13e2cd[_0x52ec31(0x184)]:_0x13e2cd[_0x52ec31(0x1e9)]));}),this[_0x30fdad(0x1db)](_0x328d53);}['_handleHeartbeatEvent'](_0x3e81c7){const _0x31b1f6=_0x4a9b73;this[_0x31b1f6(0x244)](_0x3e81c7[_0x31b1f6(0x1d8)]);}[_0x4a9b73(0x1f4)](_0x25388d){const _0x10d260=_0x4a9b73;localStorage[_0x10d260(0x1b7)](nt,JSON[_0x10d260(0xf2)](_0x25388d));}[_0x4a9b73(0xd8)](){const _0x3d259c=_0x4a9b73;this[_0x3d259c(0x1f6)]=window[_0x3d259c(0x229)](()=>{const _0x70960c=_0x3d259c;this[_0x70960c(0x1f4)]({'type':0x2,'memberID':this['_id']});},it);}[_0x4a9b73(0xc5)](_0x1539b7){const _0x39da08=_0x4a9b73;return this['_unitStatus'][_0x39da08(0x1d7)](_0x1539b7)||this['_unitStatus'][_0x39da08(0x106)](_0x1539b7,new _0x4ae7de(_0x13e2cd[_0x39da08(0x184)])),this['_unitStatus'][_0x39da08(0x1fb)](_0x1539b7);}}var Mt=(_0x4f524c=>(_0x4f524c[_0x4f524c[_0x4a9b73(0x27a)]=0x0]=_0x4a9b73(0x27a),_0x4f524c[_0x4f524c['OK']=0x1]='OK',_0x4f524c[_0x4f524c[_0x4a9b73(0x1f2)]=0x2]='INTERNAL_ERROR',_0x4f524c[_0x4f524c['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x4f524c[_0x4f524c[_0x4a9b73(0x1b5)]=0x4]=_0x4a9b73(0x1b5),_0x4f524c[_0x4f524c['UNAUTHENTICATED']=0x5]=_0x4a9b73(0x21b),_0x4f524c[_0x4f524c['ALREADY_EXISTS']=0x6]=_0x4a9b73(0xf7),_0x4f524c[_0x4f524c[_0x4a9b73(0x135)]=0x7]='INVALID_ARGUMENT',_0x4f524c[_0x4f524c[_0x4a9b73(0x1c5)]=0x8]=_0x4a9b73(0x1c5),_0x4f524c[_0x4f524c['COMPLETION_FINISHED']=0x9]=_0x4a9b73(0xd5),_0x4f524c[_0x4f524c['LOGIN_FAILED']=0xa]=_0x4a9b73(0x1bd),_0x4f524c[_0x4f524c[_0x4a9b73(0x1c3)]=0x1389]=_0x4a9b73(0x1c3),_0x4f524c[_0x4f524c[_0x4a9b73(0x19c)]=0x1771]=_0x4a9b73(0x19c),_0x4f524c[_0x4f524c[_0x4a9b73(0x202)]=0x1772]=_0x4a9b73(0x202),_0x4f524c[_0x4f524c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x4a9b73(0x103),_0x4f524c[_0x4f524c[_0x4a9b73(0xc9)]=0x1b59]=_0x4a9b73(0xc9),_0x4f524c[_0x4f524c[_0x4a9b73(0x26a)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4f524c[_0x4f524c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4a9b73(0xe8),_0x4f524c[_0x4f524c[_0x4a9b73(0xdc)]=0x1b5c]=_0x4a9b73(0xdc),_0x4f524c[_0x4f524c[_0x4a9b73(0xc7)]=0x1b5d]='APPLY_DUPLICATED',_0x4f524c[_0x4f524c[_0x4a9b73(0x10a)]=0x1f41]=_0x4a9b73(0x10a),_0x4f524c[_0x4f524c[_0x4a9b73(0xf3)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4f524c[_0x4f524c[_0x4a9b73(0x19a)]=0x232a]=_0x4a9b73(0x19a),_0x4f524c[_0x4f524c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4a9b73(0x291),_0x4f524c[_0x4f524c[_0x4a9b73(0x247)]=0x232c]=_0x4a9b73(0x247),_0x4f524c[_0x4f524c[_0x4a9b73(0x168)]=0x232d]=_0x4a9b73(0x168),_0x4f524c[_0x4f524c['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4a9b73(0x1a0),_0x4f524c[_0x4f524c[_0x4a9b73(0x23a)]=0x2712]=_0x4a9b73(0x23a),_0x4f524c[_0x4f524c[_0x4a9b73(0x28d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4f524c[_0x4f524c[_0x4a9b73(0x2b3)]=0x2714]=_0x4a9b73(0x2b3),_0x4f524c[_0x4f524c[_0x4a9b73(0x173)]=0x271a]=_0x4a9b73(0x173),_0x4f524c[_0x4f524c[_0x4a9b73(0x2c0)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x4f524c[_0x4f524c['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4a9b73(0x1bf),_0x4f524c[_0x4f524c['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x4f524c[_0x4f524c['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x4a9b73(0x28e),_0x4f524c[_0x4f524c[_0x4a9b73(0x1ff)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x4f524c[_0x4f524c[_0x4a9b73(0x27c)]=0x2af9]=_0x4a9b73(0x27c),_0x4f524c[_0x4f524c[_0x4a9b73(0x280)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x4f524c[_0x4f524c[_0x4a9b73(0x1a3)]=0x2ee2]=_0x4a9b73(0x1a3),_0x4f524c[_0x4f524c[_0x4a9b73(0x221)]=0x2ee3]=_0x4a9b73(0x221),_0x4f524c[_0x4f524c[_0x4a9b73(0x23b)]=0x2ee4]=_0x4a9b73(0x23b),_0x4f524c[_0x4f524c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4f524c[_0x4f524c[_0x4a9b73(0x1be)]=0x32c9]=_0x4a9b73(0x1be),_0x4f524c[_0x4f524c[_0x4a9b73(0x287)]=0x32ca]=_0x4a9b73(0x287),_0x4f524c[_0x4f524c[_0x4a9b73(0x22b)]=0x32cb]=_0x4a9b73(0x22b),_0x4f524c[_0x4f524c[_0x4a9b73(0x2be)]=-0x1]='UNRECOGNIZED',_0x4f524c))(Mt||{}),pn=Object[_0x4a9b73(0xc4)],Cn=(_0x31acab,_0x5d0fab,_0x2130be,_0x3dac5c)=>{for(var _0x547e0f=_0x3dac5c>0x1?void 0x0:_0x3dac5c?pn(_0x5d0fab,_0x2130be):_0x5d0fab,_0x180215=_0x31acab['length']-0x1,_0x364758;_0x180215>=0x0;_0x180215--)(_0x364758=_0x31acab[_0x180215])&&(_0x547e0f=_0x364758(_0x547e0f)||_0x547e0f);return _0x547e0f;},be=(_0x334c3b,_0x4a7bb7)=>(_0x79b562,_0x27d78f)=>_0x4a7bb7(_0x79b562,_0x27d78f,_0x334c3b);let rt=class extends _0x3ca0d9{constructor(_0x4fa8cf,_0xa3528c,_0x54b60f){const _0x81c165=_0x4a9b73;super(),this['_instanceService']=_0x4fa8cf,this[_0x81c165(0xf8)]=_0xa3528c,this['_configService']=_0x54b60f;}async[_0x4a9b73(0x105)](_0x3d2108,_0x92295c,_0x1817ef,..._0x14c029){const _0x2e4cf0=_0x4a9b73;var _0x293d04,_0x3db414,_0xc3a529,_0x4811d6;const _0x1e25d5=this[_0x2e4cf0(0x250)][_0x2e4cf0(0x115)]();if(!_0x1e25d5)throw new Error(_0x2e4cf0(0x222));const _0x558b2a=((_0x293d04=this['_configService'][_0x2e4cf0(0x109)](_0x7da6f6))!=null?_0x293d04:_0x3beb12)+'/'+_0x3d2108+_0x2e4cf0(0x1d5)+_0x92295c,_0xdfd084=new URL(window[_0x2e4cf0(0xd2)]['href']),_0xabfb2e={'scriptId':_0x3d2108,'runId':(_0x3db414=_0xdfd084[_0x2e4cf0(0x2bd)][_0x2e4cf0(0x1fb)](_0x2e4cf0(0x235)))!=null?_0x3db414:'','function':_0x92295c,'unitId':_0x1e25d5[_0x2e4cf0(0x1ce)](),'argsOfFunction':JSON[_0x2e4cf0(0xf2)](_0x14c029),'invokeId':(_0xc3a529=_0x1817ef[_0x2e4cf0(0x10f)])!=null?_0xc3a529:'','executionId':(_0x4811d6=_0x1817ef[_0x2e4cf0(0x104)])!=null?_0x4811d6:''};try{const _0x1e3c6a=await this[_0x2e4cf0(0xf8)]['post'](_0x558b2a,{'body':_0xabfb2e});return _0x1e3c6a[_0x2e4cf0(0x2c3)]['error']&&_0x1e3c6a['body'][_0x2e4cf0(0x25e)][_0x2e4cf0(0x252)]!==Mt['OK']?'Failed':_0x1e3c6a[_0x2e4cf0(0x2c3)]['result'];}catch{return _0x2e4cf0(0x131);}}};rt=Cn([be(0x0,_0x3d2f4d),be(0x1,_0x5a910a(_0x497203)),be(0x2,_0x34b4f6)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x38d7e2=_0x5ea0;(function(_0x377422,_0x5d1135){const _0x45e8f4=_0x5ea0,_0x3a31a1=_0x377422();while(!![]){try{const _0x41860a=-parseInt(_0x45e8f4(0x19b))/0x1+parseInt(_0x45e8f4(0x260))/0x2*(-parseInt(_0x45e8f4(0x1cb))/0x3)+parseInt(_0x45e8f4(0x249))/0x4*(-parseInt(_0x45e8f4(0x308))/0x5)+-parseInt(_0x45e8f4(0x1f9))/0x6*(parseInt(_0x45e8f4(0x15f))/0x7)+-parseInt(_0x45e8f4(0x1be))/0x8*(parseInt(_0x45e8f4(0x19e))/0x9)+-parseInt(_0x45e8f4(0x1d5))/0xa+parseInt(_0x45e8f4(0x172))/0xb;if(_0x41860a===_0x5d1135)break;else _0x3a31a1['push'](_0x3a31a1['shift']());}catch(_0x2f65b7){_0x3a31a1['push'](_0x3a31a1['shift']());}}}(_0x1ac2,0x51417));var $t=Object[_0x38d7e2(0x1fa)],xt=(_0x55db5c,_0x5dfb1f,_0x2bd1cc)=>_0x5dfb1f in _0x55db5c?$t(_0x55db5c,_0x5dfb1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bd1cc}):_0x55db5c[_0x5dfb1f]=_0x2bd1cc,_=(_0x172c78,_0x3d5c7c,_0x3f6d6a)=>xt(_0x172c78,typeof _0x3d5c7c!=_0x38d7e2(0x1eb)?_0x3d5c7c+'':_0x3d5c7c,_0x3f6d6a);import{MemberService as _0x22814d,SessionStatus as _0x4fc958,CollaborationSessionService as _0x2c2d8c,CollaborationStatus as _0x46195e,CollaborationController as _0x55ae1a,ILocalCacheService as _0x1d483c,CollaborationUIEventService as _0x3a26d3,CollaborationUIEventId as _0x511169,DataLoaderService as _0x43f20f,DocCollaborationEntity as _0xe2e4e7,getLocalCacheKey as _0x258c3a,LOCAL_CACHE_INTERVAL as _0x52563d,LOCAL_CACHE_INTERVAL_KEY as _0x107355,UniverCollaborationClientPlugin as _0x7e8be4,CollaborationSocketService as _0x4c21ab,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1775b6,DEFAULT_WS_SESSION_TICKET_URL as _0x359702,UnitStatus as _0x4e0765,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1d9771,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3a67b5}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x3e73a6,Disposable as _0x707c0a,DOC_RANGE_TYPE as _0x2c2e08,Inject as _0x557815,Injector as _0x3005c3,IUniverInstanceService as _0x73586c,ICommandService as _0x10b8cc,debounce as _0x3fcee0,Rectangle as _0x148965,DisposableCollection as _0x348cb5,toDisposable as _0x5b73b8,UniverInstanceType as _0x2c7da9,Tools as _0x29d1d8,COLORS as _0x5f9f9a,ColorKit as _0x437e9b,ThemeService as _0x4fcc40,fromEventSubject as _0x7e8a34,LocaleService as _0x13bfad,createIdentifier as _0x5ba7dd,ILogService as _0x27a775,Optional as _0x15a816,Workbook as _0x15dd6,CommandType as _0x57cb58,IConfigService as _0x4513b4,ILocalStorageService as _0x49f86e,DependentOn as _0x4c7e10,Plugin as _0x27c85b,merge as _0x500d8e,registerDependencies as _0x48fa39,mergeOverrideWithDependencies as _0x41f0a3,touchDependencies as _0x44ea04,generateRandomId as _0x362d49}from'@univerjs/core';import{Shape as _0x5cfac1,Rect as _0x3117c8,getColor as _0x204dc4,RegularPolygon as _0x62b6cf,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x6253d9,Vector2 as _0x2925b0,SHEET_VIEWPORT_KEY as _0x50f5ab,IRenderManagerService as _0x34a027}from'@univerjs/engine-render';import{ISocketService as _0x5110ee,WebSocketService as _0x43754c,HTTPService as _0x5aecca}from'@univerjs/network';import{IDocClipboardService as _0x28be3b,NodePositionConvertToCursor as _0x24509d,NodePositionConvertToRectRange as _0x7671ac,TEXT_RANGE_LAYER_INDEX as _0x5551b6,SetDocZoomRatioOperation as _0x2f49bf,DocIMEInputManagerService as _0x5a5680,DocStateChangeManagerService as _0x5839ad}from'@univerjs/docs-ui';import{IImageIoService as _0x195d2b}from'@univerjs/drawing';import{BehaviorSubject as _0x536e1a,debounceTime as _0x4b46f2,takeUntil as _0x23d61a,Subject as _0x4468b4,filter as _0xc09bc1,switchMap as _0x36ad73,merge as _0x152ba8,combineLatest as _0x5262aa,of as _0x3ea046,fromEvent as _0x43bbc8,shareReplay as _0x3ccf81,mapTo as _0x2a0d6c,distinctUntilChanged as _0x27af13}from'rxjs';import{SetTextSelectionsOperation as _0x31773c,RichTextEditingMutation as _0x5b9314,DocSelectionManagerService as _0xba2e38,DocSkeletonManagerService as _0x25da01}from'@univerjs/docs';import{ITransformService as _0x4f46f8,CollaborationEvent as _0x4d71d2,isTransformMutationFailure as _0x3e2440,isTransformMutationsWithChangesetSuccess as _0x5b874d,RevisionService as _0x16fac4,ISnapshotServerService as _0x232d69}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x3b6487,serializeRangeWithSheet as _0x42801f}from'@univerjs/engine-formula';import{RefRangeService as _0x4d2c65,SetSelectionsOperation as _0x542b1f,SheetsSelectionsService as _0x2a0ee4,EffectRefRangId as _0x4063b3,handleIRemoveRow as _0x39b692,handleIRemoveCol as _0x390e55,handleMoveRange as _0x11663a,handleInsertRow as _0x58e90d,handleInsertRangeMoveRight as _0xf8f956,handleInsertRangeMoveDown as _0x2a938f,handleInsertCol as _0x2bd8ca,handleDeleteRangeMoveUp as _0x7f4d8d,handleDeleteRangeMoveLeft as _0xd5fda3,runRefRangeMutations as _0x3d97e8,SetWorksheetActivateCommand as _0x3870b4}from'@univerjs/sheets';import{map as _0x1b8fe8,filter as _0x3fddb6,throttleTime as _0x5b7b76,takeUntil as _0x120489,switchMap as _0xb000cc}from'rxjs/operators';import{SheetSkeletonManagerService as _0x35e23e,getCoordByCell as _0x527019,getSheetObject as _0x1e6b50}from'@univerjs/sheets-ui';import{jsx as _0x3b49e2,jsxs as _0x42a554}from'react/jsx-runtime';import{useObservable as _0x5a30f1,useDependency as _0x1c31d6,IUIPartsService as _0x59c6b6,BuiltInUIPart as _0x17c9c8,connectInjector as _0x4458c2,IBeforeCloseService as _0x414af6,IMessageService as _0x3f6d88,INotificationService as _0x30317c}from'@univerjs/ui';import{Tooltip as _0x365959,clsx as _0x27b71e,MessageType as _0x56571e}from'@univerjs/design';import{forwardRef as _0x220472,useRef as _0x461bdb,createElement as _0x59bd6e,useCallback as _0x3c6308}from'react';import{IRemoteInstanceService as _0x15fdc0}from'@univerjs/rpc';var ci=Object[_0x38d7e2(0x28f)],li=(_0x2ac175,_0x20c543,_0x36f08a,_0x3d1f48)=>{const _0x59f76a=_0x38d7e2;for(var _0x222e07=_0x3d1f48>0x1?void 0x0:_0x3d1f48?ci(_0x20c543,_0x36f08a):_0x20c543,_0xd60e0=_0x2ac175[_0x59f76a(0x112)]-0x1,_0x57082b;_0xd60e0>=0x0;_0xd60e0--)(_0x57082b=_0x2ac175[_0xd60e0])&&(_0x222e07=_0x57082b(_0x222e07)||_0x222e07);return _0x222e07;},Je=(_0x256326,_0x5e45da)=>(_0x242cd1,_0x3ab459)=>_0x5e45da(_0x242cd1,_0x3ab459,_0x256326);let Ne=class extends _0x3e73a6{constructor(_0x624b2d,_0x335aa1){const _0xc44a72=_0x38d7e2;super(),this['_docClipboardService']=_0x624b2d,this[_0xc44a72(0x1a0)]=_0x335aa1,this[_0xc44a72(0x227)]();}[_0x38d7e2(0x227)](){const _0x18770e=_0x38d7e2,_0x2a4779=this;this[_0x18770e(0x11b)](this[_0x18770e(0x1f0)][_0x18770e(0x2c9)]({'onBeforePasteImage':async _0x137b77=>{const _0x6081eb=_0x18770e,_0x27e384=await _0x2a4779[_0x6081eb(0x1a0)]['saveImage'](_0x137b77);return _0x27e384?{'source':_0x27e384['source'],'imageSourceType':_0x27e384[_0x6081eb(0x28a)]}:null;}}));}};Ne=li([Je(0x0,_0x28be3b),Je(0x1,_0x195d2b)],Ne);const Ze=[_0x38d7e2(0x184),'jiqing.500',_0x38d7e2(0x2d3),_0x38d7e2(0x16e),_0x38d7e2(0x1c7),'yellow.400'];class ke extends _0x707c0a{constructor(){const _0x20764b=_0x38d7e2;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x20764b(0x145),0x0);}[_0x38d7e2(0x12b)](_0xb73c31){const _0x56d6d7=_0x38d7e2;if(this[_0x56d6d7(0x215)][_0x56d6d7(0x204)](_0xb73c31))return this[_0x56d6d7(0x215)]['get'](_0xb73c31);const _0x289827=Ze[this['_colorIndex']];return this[_0x56d6d7(0x145)]=(this['_colorIndex']+0x1)%Ze[_0x56d6d7(0x112)],this[_0x56d6d7(0x215)][_0x56d6d7(0x225)](_0xb73c31,_0x289827),_0x289827;}}function Tt(_0x4e4758){let _0x3115fa='';for(const _0x3ca56b of _0x4e4758){const {startOffset:_0x20a6c7,endOffset:_0x559a9c,isActive:_0x1fee08,rangeType:_0x4d64f6,segmentId:_0x48aa34,segmentPage:_0x53ed38}=_0x3ca56b;_0x3115fa['length']&&(_0x3115fa+=','),_0x3115fa+=_0x20a6c7+':'+_0x559a9c+':'+(_0x1fee08?'1':'0')+':'+_0x4d64f6+':'+_0x48aa34+':'+_0x53ed38;}return _0x3115fa;}function _i(_0xbc1c31){const _0x45a977=_0x38d7e2,_0x1605cb=_0xbc1c31[_0x45a977(0x1a5)](','),_0x164ea9=[];for(const _0x5b9e40 of _0x1605cb){const [_0x29b949,_0xad0784,_0x255161,_0x1d006c,_0x509eae,_0x28f6aa]=_0x5b9e40[_0x45a977(0x1a5)](':');_0x164ea9[_0x45a977(0x1dc)]({'startOffset':Number(_0x29b949),'endOffset':Number(_0xad0784),'collapsed':_0x29b949===_0xad0784,'isActive':_0x255161==='1','rangeType':_0x1d006c===_0x2c2e08[_0x45a977(0x240)]?_0x2c2e08['TEXT']:_0x2c2e08[_0x45a977(0x2cc)],'segmentId':typeof _0x509eae=='string'?String(_0x509eae):'','segmentPage':Number(_0x28f6aa!=null?_0x28f6aa:-0x1)});}return _0x164ea9[_0x45a977(0x1a2)](_0x43bae2=>_0x43bae2[_0x45a977(0x297)])||(_0x164ea9[0x0]['isActive']=!0x0),_0x164ea9;}class He extends _0x3e73a6{constructor(){const _0x2c1233=_0x38d7e2;super(...arguments),_(this,_0x2c1233(0x224),new _0x536e1a(null)),_(this,_0x2c1233(0x284),this[_0x2c1233(0x224)]['asObservable']());}['syncEditingCollabCursor'](_0xd6f06){const _0x550c78=_0x38d7e2,{unitID:_0x8f4f46,memberID:_0x196743,textRanges:_0x5b08ae}=_0xd6f06,_0x41c767=Tt(_0x5b08ae);if(_0x41c767==='')return;const _0x14bf4b={'unitID':_0x8f4f46,'memberID':_0x196743,'selection':_0x41c767};this[_0x550c78(0x224)]['next'](_0x14bf4b);}}var hi=Object[_0x38d7e2(0x28f)],ui=(_0x14e516,_0x54fdd6,_0x2f7d23,_0x19f561)=>{const _0x1ef828=_0x38d7e2;for(var _0x4391be=_0x19f561>0x1?void 0x0:_0x19f561?hi(_0x54fdd6,_0x2f7d23):_0x54fdd6,_0x2dcd0d=_0x14e516[_0x1ef828(0x112)]-0x1,_0x161d3d;_0x2dcd0d>=0x0;_0x2dcd0d--)(_0x161d3d=_0x14e516[_0x2dcd0d])&&(_0x4391be=_0x161d3d(_0x4391be)||_0x4391be);return _0x4391be;},L=(_0x5d3e88,_0x48e5e2)=>(_0x4c9b09,_0x22de73)=>_0x48e5e2(_0x4c9b09,_0x22de73,_0x5d3e88);const di=0x12c,fi=0x64;let Ue=class extends _0x3e73a6{constructor(_0x1374dc,_0x4914d4,_0x2da8a5,_0x3ec842,_0x45ff7d,_0xba9a29,_0x1abb67,_0x25fd15,_0x276c78){const _0x2ec622=_0x38d7e2;super(),_(this,_0x2ec622(0x30d),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x536e1a(new Map())),_(this,_0x2ec622(0x26e),this['_cursorInfo$'][_0x2ec622(0x14b)]()),_(this,_0x2ec622(0x2de),new _0x536e1a([])),_(this,_0x2ec622(0x293),this[_0x2ec622(0x2de)][_0x2ec622(0x115)](_0x4b46f2(di))),_(this,_0x2ec622(0x173),_0x3fcee0(_0x4818f3=>{const _0x3eccf2=_0x2ec622,_0x3fffd={'eventID':_0x4d71d2['UPDATE_CURSOR'],'data':{'unitID':this[_0x3eccf2(0x199)],'memberID':this[_0x3eccf2(0x1aa)][_0x3eccf2(0x2f5)](),'selection':Tt(_0x4818f3)}};this['_session'][_0x3eccf2(0x2e8)](_0x3fffd,this[_0x3eccf2(0x199)]);},fi)),(this[_0x2ec622(0x199)]=_0x1374dc,this[_0x2ec622(0x1aa)]=_0x4914d4,this[_0x2ec622(0x1d6)]=_0x2da8a5,this[_0x2ec622(0x205)]=_0x3ec842,this[_0x2ec622(0x1ee)]=_0x45ff7d,this['_syncEditingCollabCursorService']=_0xba9a29,this[_0x2ec622(0x2ec)]=_0x1abb67,this[_0x2ec622(0x245)]=_0x25fd15,this['_commandService']=_0x276c78);}get['cursorInfo'](){const _0x3e09db=_0x38d7e2;return this[_0x3e09db(0x20e)][_0x3e09db(0x1bd)]();}get['roomMembers'](){const _0x5843d8=_0x38d7e2;return this[_0x5843d8(0x2de)]['getValue']();}[_0x38d7e2(0x2dd)](){const _0x45ca5a=_0x38d7e2;super[_0x45ca5a(0x2dd)](),this['_cursorInfo$'][_0x45ca5a(0x1a6)](new Map()),this[_0x45ca5a(0x20e)][_0x45ca5a(0x12f)](),this[_0x45ca5a(0x2de)]['next']([]),this[_0x45ca5a(0x2de)][_0x45ca5a(0x12f)]();}[_0x38d7e2(0x2e3)](){const _0xd918a2=_0x38d7e2;this[_0xd918a2(0x227)]||(this['_init']=!0x0,this[_0xd918a2(0x1aa)][_0xd918a2(0x137)]['pipe'](_0x23d61a(this[_0xd918a2(0x250)]))[_0xd918a2(0x12d)](_0xffc678=>{const _0x566b90=_0xd918a2;_0xffc678===_0x4fc958[_0x566b90(0x1d8)]?this[_0x566b90(0x130)]():this[_0x566b90(0x25c)]();}),this[_0xd918a2(0x1aa)][_0xd918a2(0x1c2)][_0xd918a2(0x115)](_0x23d61a(this[_0xd918a2(0x250)]))[_0xd918a2(0x12d)](_0x576503=>{const _0x293232=_0xd918a2,_0xa25bb5=_0x576503['eventID'];_0xa25bb5===_0x4d71d2[_0x293232(0x255)]&&this[_0x293232(0x210)](_0x576503),_0xa25bb5===_0x4d71d2[_0x293232(0x19a)]&&this[_0x293232(0x295)](_0x576503);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x251bfd=>{const _0x1506f7=_0xd918a2,_0x14461e=_0x251bfd['params'];_0x14461e!=null&&this[_0x1506f7(0x30d)]&&_0x251bfd['id']===_0x31773c['id']&&_0x14461e[_0x1506f7(0x244)]===this[_0x1506f7(0x199)]&&_0x14461e[_0x1506f7(0x1bf)]===!0x1&&_0x14461e[_0x1506f7(0x2bb)][_0x1506f7(0x112)]>0x0&&this[_0x1506f7(0x173)](_0x14461e[_0x1506f7(0x2bb)]);})),this[_0xd918a2(0x2b1)][_0xd918a2(0x284)][_0xd918a2(0x115)](_0x23d61a(this[_0xd918a2(0x250)]))[_0xd918a2(0x12d)](_0x2b415a=>{const _0xf35348=_0xd918a2;if((_0x2b415a==null?void 0x0:_0x2b415a[_0xf35348(0x199)])!==this[_0xf35348(0x199)])return;const _0x1086b8={'eventID':_0x4d71d2[_0xf35348(0x255)],'data':_0x2b415a};this[_0xf35348(0x210)](_0x1086b8);}),this[_0xd918a2(0x11b)](this[_0xd918a2(0x175)]['onCommandExecuted'](_0x3a7f6e=>{const _0xeaa9db=_0xd918a2;if(_0x3a7f6e[_0xeaa9db(0x119)]==null)return;const _0x906ca7=_0x3a7f6e['params'];if(_0x3a7f6e['id']!==_0x5b9314['id']||_0x906ca7[_0xeaa9db(0x244)]!==this[_0xeaa9db(0x199)])return;const _0x280683={'id':_0xeaa9db(0x160),'params':_0x906ca7},_0x18241d=this[_0xeaa9db(0x209)];for(const [_0x341335,_0x2c794e]of _0x18241d){const _0x5ed482={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xeaa9db(0x199)],'actions':null,'textRanges':_0x2c794e['ranges']}},_0x4d0900=this['_transformService'][_0xeaa9db(0x192)](_0x280683,_0x5ed482,!0x1);if(_0x3e2440(_0x4d0900))throw _0x4d0900['error'];_0x18241d[_0xeaa9db(0x225)](_0x341335,{..._0x2c794e,'ranges':_0x4d0900[_0xeaa9db(0x1ab)][_0xeaa9db(0x119)][_0xeaa9db(0x305)]});}queueMicrotask(()=>{const _0xa3637a=_0xeaa9db;this[_0xa3637a(0x20e)][_0xa3637a(0x1a6)](_0x18241d);});})));}[_0x38d7e2(0x210)](_0x35cff7){const _0x34d7e=_0x38d7e2;var _0x12e8b7,_0x3ef445;const {memberID:_0x4dfaf2,selection:_0x41c8c5}=_0x35cff7[_0x34d7e(0x166)],_0xe7c3eb=_i(_0x41c8c5),_0x20f459=(_0x3ef445=(_0x12e8b7=this[_0x34d7e(0x1ee)][_0x34d7e(0x1c3)](this[_0x34d7e(0x199)],_0x4dfaf2))==null?void 0x0:_0x12e8b7[_0x34d7e(0x193)])!=null?_0x3ef445:_0x34d7e(0x162),_0x2d4daa={'color':this['_colorAssignService'][_0x34d7e(0x12b)](_0x4dfaf2),'name':_0x20f459,'ranges':_0xe7c3eb},_0x4d8243=this[_0x34d7e(0x209)];_0x4d8243['set'](_0x4dfaf2,_0x2d4daa),this['_cursorInfo$'][_0x34d7e(0x1a6)](_0x4d8243);}['_onCursorDelete'](_0x18de70){const _0x2ba3c3=_0x38d7e2,{memberID:_0x2523f7}=_0x18de70[_0x2ba3c3(0x166)],_0x5bf18d=this['cursorInfo'];_0x5bf18d[_0x2ba3c3(0x1c5)](_0x2523f7),this[_0x2ba3c3(0x20e)][_0x2ba3c3(0x1a6)](_0x5bf18d);}[_0x38d7e2(0x130)](){const _0x94d8f2=_0x38d7e2;var _0x580387;if(this[_0x94d8f2(0x30d)]=!0x0,((_0x580387=this['_univerInstanceService'][_0x94d8f2(0x300)]())==null?void 0x0:_0x580387[_0x94d8f2(0x2da)]())!==this['unitID'])return;const _0x10ac87=this[_0x94d8f2(0x1d6)][_0x94d8f2(0x1a3)](_0xba2e38)[_0x94d8f2(0x285)]();Array[_0x94d8f2(0x138)](_0x10ac87)&&_0x10ac87[_0x94d8f2(0x112)]>0x0&&this['_updateLocalCursor'](_0x10ac87);}['_toggleOffline'](){const _0x252e01=_0x38d7e2;this[_0x252e01(0x30d)]=!0x1;}};Ue=ui([L(0x2,_0x557815(_0x3005c3)),L(0x3,_0x557815(ke)),L(0x4,_0x557815(_0x22814d)),L(0x5,_0x557815(He)),L(0x6,_0x4f46f8),L(0x7,_0x73586c),L(0x8,_0x10b8cc)],Ue);var Si=Object[_0x38d7e2(0x28f)],mi=(_0x2e7df4,_0x8f9050,_0x4ef450,_0x3eb61d)=>{for(var _0x1f59fe=_0x3eb61d>0x1?void 0x0:_0x3eb61d?Si(_0x8f9050,_0x4ef450):_0x8f9050,_0x35c3ce=_0x2e7df4['length']-0x1,_0x4c6738;_0x35c3ce>=0x0;_0x35c3ce--)(_0x4c6738=_0x2e7df4[_0x35c3ce])&&(_0x1f59fe=_0x4c6738(_0x1f59fe)||_0x1f59fe);return _0x1f59fe;},x=(_0x363aac,_0x467746)=>(_0x13703f,_0x344ffb)=>_0x467746(_0x13703f,_0x344ffb,_0x363aac);const gi=0x12c,Ii=0x64,vi=()=>{let _0x2745d=[],_0x5ee8a8=!0x1;return _0x45a8df=>{_0x2745d['push'](_0x45a8df),_0x5ee8a8||(_0x5ee8a8=!0x0,setTimeout(()=>{_0x2745d['forEach'](_0x38ce73=>_0x38ce73()),_0x2745d=[],_0x5ee8a8=!0x1;}));};};let Me=class extends _0x3e73a6{constructor(_0x634e04,_0x2eb1a8,_0x190091,_0x4a9012,_0x2d305f,_0x5687fa,_0x4c0e03,_0x5bb9c1){const _0x4ccea9=_0x38d7e2;super(),_(this,_0x4ccea9(0x30d),!0x1),_(this,_0x4ccea9(0x227),!0x1),_(this,_0x4ccea9(0x20e),new _0x536e1a(new Map())),_(this,_0x4ccea9(0x26e),this[_0x4ccea9(0x20e)][_0x4ccea9(0x14b)]()),_(this,_0x4ccea9(0x2de),new _0x536e1a([])),_(this,'roomMembers$',this[_0x4ccea9(0x2de)][_0x4ccea9(0x115)](_0x4b46f2(gi))),_(this,_0x4ccea9(0x173),_0x3fcee0((_0x4818af,_0x4bba8e)=>{const _0x244764=_0x4ccea9,_0x16786a={'eventID':_0x4d71d2[_0x244764(0x255)],'data':{'unitID':this[_0x244764(0x199)],'memberID':this[_0x244764(0x1aa)]['getMemberID'](),'selection':_0x42801f(_0x4818af,_0x4bba8e[_0x244764(0x247)])}};this[_0x244764(0x1aa)][_0x244764(0x2e8)](_0x16786a,this[_0x244764(0x199)]);},Ii)),(this[_0x4ccea9(0x199)]=_0x634e04,this['_session']=_0x2eb1a8,this['_injector']=_0x190091,this['_colorAssignService']=_0x4a9012,this[_0x4ccea9(0x1ee)]=_0x2d305f,this[_0x4ccea9(0x245)]=_0x5687fa,this[_0x4ccea9(0x175)]=_0x4c0e03,this['_refRangeService']=_0x5bb9c1);}get['cursorInfo'](){const _0x13188b=_0x38d7e2;return this[_0x13188b(0x20e)][_0x13188b(0x1bd)]();}get[_0x38d7e2(0x141)](){const _0x582a57=_0x38d7e2;return this[_0x582a57(0x2de)][_0x582a57(0x1bd)]();}['dispose'](){const _0x4e687c=_0x38d7e2;super[_0x4e687c(0x2dd)](),this[_0x4e687c(0x20e)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x4e687c(0x2de)]['next']([]),this['_roomMembers$'][_0x4e687c(0x12f)]();}['init'](){const _0x3294f8=_0x38d7e2;this[_0x3294f8(0x227)]||(this[_0x3294f8(0x227)]=!0x0,this[_0x3294f8(0x1aa)][_0x3294f8(0x137)][_0x3294f8(0x115)](_0x23d61a(this[_0x3294f8(0x250)]))[_0x3294f8(0x12d)](_0x559651=>{const _0x18a3c1=_0x3294f8;_0x559651===_0x4fc958[_0x18a3c1(0x1d8)]?this[_0x18a3c1(0x130)]():this[_0x18a3c1(0x25c)]();}),this[_0x3294f8(0x1aa)][_0x3294f8(0x1c2)][_0x3294f8(0x115)](_0x23d61a(this[_0x3294f8(0x250)]))['subscribe'](_0xc16b62=>{const _0x58dfa7=_0x3294f8,_0x4c4a17=_0xc16b62['eventID'];_0x4c4a17===_0x4d71d2['UPDATE_CURSOR']&&this[_0x58dfa7(0x210)](_0xc16b62),_0x4c4a17===_0x4d71d2['USERS_LEAVE']&&this[_0x58dfa7(0x295)](_0xc16b62);}),this[_0x3294f8(0x2a3)](),this['disposeWithMe'](this[_0x3294f8(0x175)][_0x3294f8(0x291)](_0x4b50ae=>{const _0x49113e=_0x3294f8;if(this[_0x49113e(0x30d)]&&_0x4b50ae['id']===_0x542b1f['id']&&_0x4b50ae[_0x49113e(0x119)][_0x49113e(0x244)]===this[_0x49113e(0x199)]){const _0x39404e=_0x4b50ae[_0x49113e(0x119)];this[_0x49113e(0x173)](_0x39404e[_0x49113e(0x241)],_0x39404e[_0x49113e(0x25e)][0x0]);}})));}['_onCursorUpdate'](_0x44bf6b){const _0x27ee43=_0x38d7e2;var _0x50243d,_0x26b250;const {memberID:_0xe3e757,selection:_0x14beea}=_0x44bf6b[_0x27ee43(0x166)],{sheetName:_0x597277,range:_0x4dc5f2}=_0x3b6487(_0x14beea),_0x829689={'name':(_0x26b250=(_0x50243d=this['_memberService'][_0x27ee43(0x1c3)](this['unitID'],_0xe3e757))==null?void 0x0:_0x50243d[_0x27ee43(0x193)])!=null?_0x26b250:_0x27ee43(0x162),'range':this[_0x27ee43(0x30e)](_0x597277,_0x4dc5f2),'sheetID':_0x597277,'color':this[_0x27ee43(0x205)][_0x27ee43(0x12b)](_0xe3e757),'selection':_0x14beea},_0xe7192e=this[_0x27ee43(0x209)];_0xe7192e[_0x27ee43(0x225)](_0xe3e757,_0x829689),this[_0x27ee43(0x20e)][_0x27ee43(0x1a6)](_0xe7192e);}[_0x38d7e2(0x295)](_0x7c5b5f){const _0x3f6dd4=_0x38d7e2,{memberID:_0x5acb79}=_0x7c5b5f['data'],_0x2b4326=this['cursorInfo'];_0x2b4326['delete'](_0x5acb79),this[_0x3f6dd4(0x20e)][_0x3f6dd4(0x1a6)](_0x2b4326);}[_0x38d7e2(0x30e)](_0x1004b3,_0x4830f3){const _0x4e3379=_0x38d7e2;var _0x4fe11b,_0x580672;const _0x4b35ff=(_0x580672=(_0x4fe11b=this['_univerInstanceService']['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x4fe11b['getSheetBySheetId'](_0x1004b3))==null?void 0x0:_0x580672[_0x4e3379(0x170)]();return(_0x4b35ff==null?void 0x0:_0x4b35ff[_0x4e3379(0x16b)](_0x46530d=>_0x148965[_0x4e3379(0x2b7)](_0x46530d,_0x4830f3)))||_0x4830f3;}[_0x38d7e2(0x2a3)](){const _0x1ec5f7=_0x38d7e2,_0x541a90=new _0x348cb5(),_0x5471c0=vi(),_0x42aa4d=()=>{_0x541a90['dispose']();const _0x4e0536=(_0xb56f40,_0x1a5172,_0x28efc5,_0x2b4337)=>{const _0x8892a=_0x5ea0;let _0x4de83f=[];switch(_0xb56f40['id']){case _0x4063b3[_0x8892a(0x251)]:{_0x4de83f=_0xd5fda3(_0xb56f40,_0x2b4337);break;}case _0x4063b3[_0x8892a(0x2c5)]:{_0x4de83f=_0x7f4d8d(_0xb56f40,_0x2b4337);break;}case _0x4063b3[_0x8892a(0x15e)]:{_0x4de83f=_0x2bd8ca(_0xb56f40,_0x2b4337);break;}case _0x4063b3[_0x8892a(0x216)]:{_0x4de83f=_0x2a938f(_0xb56f40,_0x2b4337);break;}case _0x4063b3['InsertRangeMoveRightCommandId']:{_0x4de83f=_0xf8f956(_0xb56f40,_0x2b4337);break;}case _0x4063b3[_0x8892a(0x304)]:{_0x4de83f=_0x58e90d(_0xb56f40,_0x2b4337);break;}case _0x4063b3[_0x8892a(0x238)]:{_0x4de83f=_0x11663a(_0xb56f40,_0x2b4337);break;}case _0x4063b3[_0x8892a(0x2f3)]:{_0x4de83f=_0x390e55(_0xb56f40,_0x2b4337);break;}case _0x4063b3[_0x8892a(0x126)]:{_0x4de83f=_0x39b692(_0xb56f40,_0x2b4337);break;}}const _0x60992d=_0x3d97e8(_0x4de83f,_0x2b4337),_0x39d806=this['cursorInfo'][_0x8892a(0x1a3)](_0x1a5172);if(_0x39d806&&_0x60992d){const _0x4ccec3={..._0x39d806,'range':_0x60992d};this[_0x8892a(0x209)][_0x8892a(0x225)](_0x1a5172,_0x4ccec3),_0x5471c0(()=>{const _0x53cd3c=_0x8892a,_0x570479=this[_0x53cd3c(0x27c)][_0x53cd3c(0x31b)](_0x60992d,_0x589918=>(_0x570479[_0x53cd3c(0x2dd)](),_0x4e0536(_0x589918,_0x1a5172,_0x28efc5,_0x60992d)));_0x541a90[_0x53cd3c(0x282)](_0x570479);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x3cbebc,_0x32dc11)=>{const _0x25cfd2=_0x5ea0,{range:_0x3e1bbc,sheetID:_0x1acf4c}=_0x3cbebc,_0x1a5b48=this[_0x25cfd2(0x27c)][_0x25cfd2(0x31b)](_0x3e1bbc,_0x44ad5c=>(_0x1a5b48[_0x25cfd2(0x2dd)](),_0x4e0536(_0x44ad5c,_0x32dc11,_0x1acf4c,_0x3e1bbc)));_0x541a90['add'](_0x1a5b48);});};this[_0x1ec5f7(0x11b)](_0x5b73b8(this[_0x1ec5f7(0x20e)][_0x1ec5f7(0x12d)](()=>{_0x42aa4d();})));}[_0x38d7e2(0x130)](){const _0x4cb93a=_0x38d7e2;var _0x1cfde6,_0x1349e1;if(this[_0x4cb93a(0x30d)]=!0x0,((_0x1cfde6=this[_0x4cb93a(0x245)][_0x4cb93a(0x300)]())==null?void 0x0:_0x1cfde6[_0x4cb93a(0x2da)]())!==this['unitID'])return;const _0x1affd7=(_0x1349e1=this[_0x4cb93a(0x1d6)][_0x4cb93a(0x1a3)](_0x2a0ee4)[_0x4cb93a(0x2db)]())==null?void 0x0:_0x1349e1[0x0],_0x32f1c2=this[_0x4cb93a(0x245)][_0x4cb93a(0x30f)](_0x2c7da9[_0x4cb93a(0x24f)])[_0x4cb93a(0x2bc)]();_0x1affd7&&_0x32f1c2&&this['_updateLocalCursor'](_0x32f1c2[_0x4cb93a(0x2bf)](),_0x1affd7);}[_0x38d7e2(0x25c)](){const _0x3fe888=_0x38d7e2;this[_0x3fe888(0x30d)]=!0x1;}};Me=mi([x(0x2,_0x557815(_0x3005c3)),x(0x3,_0x557815(ke)),x(0x4,_0x557815(_0x22814d)),x(0x5,_0x73586c),x(0x6,_0x10b8cc),x(0x7,_0x557815(_0x4d2c65))],Me);var pi=Object['getOwnPropertyDescriptor'],Ci=(_0x1d8df1,_0x25db3e,_0x37fb85,_0x1a809f)=>{for(var _0x23bdb2=_0x1a809f>0x1?void 0x0:_0x1a809f?pi(_0x25db3e,_0x37fb85):_0x25db3e,_0x19a481=_0x1d8df1['length']-0x1,_0x1f2d54;_0x19a481>=0x0;_0x19a481--)(_0x1f2d54=_0x1d8df1[_0x19a481])&&(_0x23bdb2=_0x1f2d54(_0x23bdb2)||_0x23bdb2);return _0x23bdb2;},Se=(_0x5c308f,_0x2fdcd0)=>(_0x35449a,_0x22ab23)=>_0x2fdcd0(_0x35449a,_0x22ab23,_0x5c308f);let H=class extends _0x3e73a6{constructor(_0x2eec09,_0x46f05d,_0x5a0ebd){const _0x58e351=_0x38d7e2;super(),_(this,'_entities',new Map()),_(this,_0x58e351(0x1f5),new _0x4468b4()),(this['_univerInstanceService']=_0x2eec09,this[_0x58e351(0x1d6)]=_0x46f05d,this[_0x58e351(0x2d9)]=_0x5a0ebd,this[_0x58e351(0x227)]());}[_0x38d7e2(0x2dd)](){const _0x168780=_0x38d7e2;super[_0x168780(0x2dd)](),this[_0x168780(0x1f5)]['complete'](),this[_0x168780(0x183)][_0x168780(0x281)](_0x59e62e=>_0x59e62e[_0x168780(0x2dd)]());}[_0x38d7e2(0x122)](_0x475b1a){const _0x59feb8=_0x38d7e2;return this[_0x59feb8(0x183)][_0x59feb8(0x204)](_0x475b1a)?this[_0x59feb8(0x183)][_0x59feb8(0x1a3)](_0x475b1a)[_0x59feb8(0x26e)]:this[_0x59feb8(0x1f5)][_0x59feb8(0x115)](_0xc09bc1(_0xe8f269=>_0xe8f269[_0x59feb8(0x199)]===_0x475b1a),_0x36ad73(_0x46f4aa=>_0x46f4aa[_0x59feb8(0x26e)]));}[_0x38d7e2(0x227)](){const _0x50914f=_0x38d7e2;this['_univerInstanceService'][_0x50914f(0x1d4)](_0x2c7da9[_0x50914f(0x24f)])[_0x50914f(0x115)](_0x23d61a(this['dispose$']))[_0x50914f(0x12d)](async _0x1387b8=>{const _0x2ae7a4=_0x50914f,_0x25f9b6=_0x1387b8[_0x2ae7a4(0x2da)](),_0x15707a=await this[_0x2ae7a4(0x1d2)](_0x25f9b6);this['_entityInit$'][_0x2ae7a4(0x1a6)](_0x15707a),this['_entities'][_0x2ae7a4(0x225)](_0x25f9b6,_0x15707a);}),this['_univerInstanceService'][_0x50914f(0x1d4)](_0x2c7da9[_0x50914f(0x155)])[_0x50914f(0x115)](_0x23d61a(this[_0x50914f(0x250)]))['pipe'](_0xc09bc1(_0xda8ec6=>!_0xda8ec6[_0x50914f(0x2da)]()[_0x50914f(0x2e6)]('__')))[_0x50914f(0x12d)](async _0x3f497b=>{const _0x26f87f=_0x50914f,_0x77c1ef=_0x3f497b[_0x26f87f(0x2da)](),_0x37261c=await this['_startDocCollabCursor'](_0x77c1ef);this[_0x26f87f(0x1f5)][_0x26f87f(0x1a6)](_0x37261c),this[_0x26f87f(0x183)][_0x26f87f(0x225)](_0x77c1ef,_0x37261c);}),_0x152ba8(this[_0x50914f(0x245)][_0x50914f(0x1c8)](_0x2c7da9[_0x50914f(0x155)]),this[_0x50914f(0x245)][_0x50914f(0x1c8)](_0x2c7da9['UNIVER_SHEET']))['pipe'](_0x23d61a(this['dispose$']))[_0x50914f(0x12d)](_0x507bd7=>{const _0x59c425=_0x50914f,_0x5eef2f=_0x507bd7['getUnitId'](),_0x344f86=this[_0x59c425(0x183)][_0x59c425(0x1a3)](_0x5eef2f);_0x344f86&&(_0x344f86[_0x59c425(0x2dd)](),this[_0x59c425(0x183)]['delete'](_0x5eef2f));});}async['_startSheetCollabCursor'](_0xe2ac11){const _0x9906e7=_0x38d7e2,_0x164d2a=await this[_0x9906e7(0x2d9)]['requireSession'](_0xe2ac11),_0xf5fe93=this[_0x9906e7(0x1d6)][_0x9906e7(0x2c1)](Me,_0xe2ac11,_0x164d2a);return _0xf5fe93[_0x9906e7(0x2e3)](),_0xf5fe93;}async[_0x38d7e2(0x1c4)](_0x3422b3){const _0x1b816e=_0x38d7e2,_0x430509=await this['_collabSessionService'][_0x1b816e(0x185)](_0x3422b3),_0x1587a4=this[_0x1b816e(0x1d6)][_0x1b816e(0x2c1)](Ue,_0x3422b3,_0x430509);return _0x1587a4[_0x1b816e(0x2e3)](),_0x1587a4;}};H=Ci([Se(0x0,_0x73586c),Se(0x1,_0x557815(_0x3005c3)),Se(0x2,_0x557815(_0x2c2d8c))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x36aaa5,_0x10bdf9){const _0x187fcf=_0x38d7e2;let {radius:_0x2f9ea2,width:_0x51f3c2,height:_0x4bffee}=_0x10bdf9;_0x2f9ea2=_0x2f9ea2!=null?_0x2f9ea2:0x0,_0x51f3c2=_0x51f3c2!=null?_0x51f3c2:0x1e,_0x4bffee=_0x4bffee!=null?_0x4bffee:0x1e;let _0x1e0290=0x0,_0x52f6d7=0x0,_0x1522d4=0x0;_0x1e0290=_0x52f6d7=_0x1522d4=Math['min'](_0x2f9ea2,_0x51f3c2/0x2,_0x4bffee/0x2),_0x36aaa5[_0x187fcf(0x144)](),_0x36aaa5[_0x187fcf(0x253)](_0x1e0290,0x0),_0x36aaa5[_0x187fcf(0x188)](_0x51f3c2-_0x52f6d7,0x0),_0x36aaa5['arc'](_0x51f3c2-_0x52f6d7,_0x52f6d7,_0x52f6d7,Math['PI']*0x3/0x2,0x0,!0x1),_0x36aaa5[_0x187fcf(0x188)](_0x51f3c2,_0x4bffee-_0x1522d4),_0x36aaa5[_0x187fcf(0x222)](_0x51f3c2-_0x1522d4,_0x4bffee-_0x1522d4,_0x1522d4,0x0,Math['PI']/0x2,!0x1),_0x36aaa5[_0x187fcf(0x188)](0x0,_0x4bffee),_0x36aaa5[_0x187fcf(0x188)](0x0,_0x1e0290),_0x36aaa5[_0x187fcf(0x222)](_0x1e0290,_0x1e0290,_0x1e0290,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36aaa5[_0x187fcf(0x2f7)](),_0x10bdf9[_0x187fcf(0x23a)]&&(_0x36aaa5[_0x187fcf(0x1f3)](),_0x36aaa5[_0x187fcf(0x1b9)]=_0x10bdf9[_0x187fcf(0x23a)],_0x10bdf9['fillRule']===_0x187fcf(0x2d5)?_0x36aaa5['fill'](_0x187fcf(0x2d5)):_0x36aaa5[_0x187fcf(0x23a)](),_0x36aaa5[_0x187fcf(0x2c8)]());}class he extends _0x5cfac1{constructor(_0x2f7393,_0x264e4f){const _0x244519=_0x38d7e2;super(_0x2f7393,_0x264e4f),_(this,'color'),_(this,_0x244519(0x1f6)),(this['color']=_0x264e4f==null?void 0x0:_0x264e4f[_0x244519(0x1d9)],this[_0x244519(0x1f6)]=_0x264e4f==null?void 0x0:_0x264e4f[_0x244519(0x1f6)]);}static[_0x38d7e2(0x1fc)](_0x296b3c,_0x499931){const _0x49b91f=_0x38d7e2,{text:_0x504b16,color:_0x1825a1}=_0x499931;_0x296b3c[_0x49b91f(0x1f3)](),_0x296b3c[_0x49b91f(0x287)]=_0x49b91f(0x237);const _0x58576e=_0x296b3c[_0x49b91f(0x2d8)](_0x504b16)[_0x49b91f(0x303)],_0x45aa36=Math[_0x49b91f(0x1e0)](_0x58576e+0x2*me,Qe);Oi(_0x296b3c,{'height':ee,'radius':0x4,'width':_0x45aa36,'fill':_0x1825a1}),_0x296b3c['fillStyle']=_0x49b91f(0x1c1);const _0xd81f75=me,_0x420840=ee-Ei,_0x545996=Qe-0x2*me;if(_0x58576e>_0x545996){let _0x1045cc='',_0x15dc60=0x0;for(const _0x2b4a51 of _0x504b16){const _0x285dc7=_0x296b3c[_0x49b91f(0x2d8)](_0x2b4a51)[_0x49b91f(0x303)];if(_0x15dc60+_0x285dc7<=_0x545996-_0x296b3c[_0x49b91f(0x2d8)]('...')[_0x49b91f(0x303)])_0x1045cc+=_0x2b4a51,_0x15dc60+=_0x285dc7;else{_0x1045cc+=_0x49b91f(0x1b5);break;}}_0x296b3c['fillText'](_0x1045cc,_0xd81f75,_0x420840);}else _0x296b3c[_0x49b91f(0x2ab)](_0x504b16,_0xd81f75,_0x420840);_0x296b3c[_0x49b91f(0x2c8)]();}[_0x38d7e2(0x272)](_0x2544b1){const _0x996a3e=_0x38d7e2;he[_0x996a3e(0x1fc)](_0x2544b1,this);}}const ge='collab-text-anchor-',bi=_0x38d7e2(0x319),Ti='collab-rect-range-',X=0x6,Ri=1.5,Ie=0x4,Di=1.5,Ni=_0x38d7e2(0x113);class qe{constructor(_0x22a46a,_0x1ac42f,_0x3e0876,_0x5da585){const _0x38f2df=_0x38d7e2;_(this,_0x38f2df(0x2f8),[]),_(this,_0x38f2df(0x25f),null),_(this,_0x38f2df(0x288),null),_(this,_0x38f2df(0x143),null),_(this,_0x38f2df(0x2a0),null),_(this,_0x38f2df(0x21d),null),(this[_0x38f2df(0x1b2)]=_0x22a46a,this['_scene']=_0x1ac42f,this[_0x38f2df(0x201)]=_0x3e0876,this['_document']=_0x5da585,this[_0x38f2df(0x29b)]());}set[_0x38d7e2(0x114)](_0x5e1563){const _0x331bdd=_0x38d7e2;_0x5e1563?(this['_anchorDot']&&this[_0x331bdd(0x143)][_0x331bdd(0x306)](),this[_0x331bdd(0x288)]&&this[_0x331bdd(0x288)]['show']()):(this[_0x331bdd(0x143)]&&this[_0x331bdd(0x143)][_0x331bdd(0x171)](),this[_0x331bdd(0x288)]&&this[_0x331bdd(0x288)]['hide']());}[_0x38d7e2(0x2dd)](){const _0x2b32f3=_0x38d7e2;for(const _0x4f56dd of this[_0x2b32f3(0x2f8)])_0x4f56dd[_0x2b32f3(0x2dd)]();this[_0x2b32f3(0x288)]&&this['_textBubble'][_0x2b32f3(0x2dd)](),this[_0x2b32f3(0x143)]&&this[_0x2b32f3(0x143)]['dispose'](),this[_0x2b32f3(0x25f)]&&this[_0x2b32f3(0x25f)][_0x2b32f3(0x2dd)](),this[_0x2b32f3(0x21d)]&&this[_0x2b32f3(0x21d)]();}['_render'](){const _0x17cf85=_0x38d7e2;var _0x5eeec0;const {_docSkeleton:_0x407c48,_document:_0x5bf6a8}=this,{color:_0x58832e,name:_0xaf076a,ranges:_0x1aaf98}=this[_0x17cf85(0x1b2)],_0x5e7854=_0x5bf6a8[_0x17cf85(0x2d6)](),{docsLeft:_0x2e59b1,docsTop:_0x126ca4}=_0x5e7854,_0x4d6d80=new _0x24509d(_0x5e7854,_0x407c48);for(const {startOffset:_0x136b1a,endOffset:_0x72c151,rangeType:_0xd8d600,segmentId:_0x5e79cf,segmentPage:_0x1a5ce6,collapsed:_0x518fe0,isActive:_0x1bd000}of _0x1aaf98){const _0x3b6f05=_0x407c48[_0x17cf85(0x131)](_0x136b1a,!0x0,_0x5e79cf,_0x1a5ce6);let _0xb70759=_0x407c48[_0x17cf85(0x131)](_0x72c151,!0x0,_0x5e79cf,_0x1a5ce6);if(_0xb70759==null&&(_0xb70759=_0x407c48['findNodePositionByCharIndex'](_0x72c151-0x1,!0x1,_0x5e79cf,_0x1a5ce6)),_0x1bd000){const {contentBoxPointGroup:_0x37dd26}=_0x4d6d80[_0x17cf85(0x24d)](_0xb70759,_0xb70759);if(_0x37dd26[_0x17cf85(0x112)]===0x0)continue;this[_0x17cf85(0x1ca)](_0x58832e,_0x37dd26,_0x2e59b1,_0x126ca4,_0xaf076a),this[_0x17cf85(0x21d)]=this[_0x17cf85(0x2f6)]();}if(_0x3b6f05&&_0xb70759){if(_0xd8d600===_0x2c2e08[_0x17cf85(0x2cc)]){const _0x285ea3=new _0x7671ac(_0x5e7854,_0x407c48),{pointGroup:_0x4b4b6a}=(_0x5eeec0=_0x285ea3[_0x17cf85(0x24d)](_0x3b6f05,_0xb70759))!=null?_0x5eeec0:{};if(_0x4b4b6a==null||_0x4b4b6a['length']===0x0)continue;this[_0x17cf85(0x165)](_0x58832e,_0x4b4b6a,_0x2e59b1,_0x126ca4);}else{if(!_0x518fe0){const {borderBoxPointGroup:_0x583d59}=_0x4d6d80['getRangePointData'](_0x3b6f05,_0xb70759);if(_0x583d59[_0x17cf85(0x112)]===0x0)continue;this[_0x17cf85(0x21f)](_0x58832e,_0x583d59,_0x2e59b1,_0x126ca4);}}}}}['_drawAnchor'](_0x3ea86f,_0x322ee6,_0x2b6419,_0x59f734,_0x3485eb){const _0x54f5fc=_0x38d7e2,_0x3c38d4=this['_getAnchorBounding'](_0x322ee6),{left:_0x1c51e2,top:_0x2f04af,height:_0x5eaae3}=_0x3c38d4,_0x1db9c5=this[_0x54f5fc(0x117)](),_0xeedf6=Di/_0x1db9c5,_0x5814d9=new _0x3117c8(ge+_0x29d1d8[_0x54f5fc(0x27f)](X),{'left':_0x1c51e2+_0x2b6419-_0xeedf6,'top':_0x2f04af+_0x59f734,'height':_0x5eaae3,'width':Ri,'fill':_0x3ea86f||_0x204dc4(_0x5f9f9a[_0x54f5fc(0x1ba)],0x0),'strokeWidth':_0xeedf6,'stroke':Ni,'evented':!0x0});this[_0x54f5fc(0x25f)]=_0x5814d9,this[_0x54f5fc(0x29c)][_0x54f5fc(0x218)](_0x5814d9,_0x5551b6);const _0x335c3f=new _0x3117c8(ge+_0x29d1d8[_0x54f5fc(0x27f)](X),{'left':_0x1c51e2+_0x2b6419-_0xeedf6,'top':_0x2f04af+_0x59f734-Ie/0x2,'height':Ie,'width':Ie,'fill':_0x3ea86f||_0x204dc4(_0x5f9f9a[_0x54f5fc(0x1ba)],0x0),'strokeWidth':0x0,'stroke':_0x3ea86f||_0x204dc4(_0x5f9f9a['black'],0x0),'evented':!0x1});this[_0x54f5fc(0x143)]=_0x335c3f,this[_0x54f5fc(0x29c)][_0x54f5fc(0x218)](_0x335c3f,_0x5551b6);const _0x1c9702=new he(ge+_0x29d1d8[_0x54f5fc(0x27f)](X),{'left':_0x1c51e2+_0x2b6419-_0xeedf6,'top':_0x2f04af+_0x59f734-ee,'text':_0x3485eb,'color':_0x3ea86f});this['_textBubble']=_0x1c9702,this[_0x54f5fc(0x29c)][_0x54f5fc(0x218)](_0x1c9702,_0x5551b6),this[_0x54f5fc(0x114)]=!0x1;}[_0x38d7e2(0x2f6)](){const _0x564beb=_0x38d7e2,_0x2d49ff=this[_0x564beb(0x25f)][_0x564beb(0x20a)][_0x564beb(0x11a)](()=>{const _0x161c59=_0x564beb;this[_0x161c59(0x114)]=!0x0;}),_0x293982=this['_anchor'][_0x564beb(0x259)][_0x564beb(0x11a)](()=>{const _0x5b95da=_0x564beb;this[_0x5b95da(0x2a0)]&&clearTimeout(this[_0x5b95da(0x2a0)]),this['_hideTimer']=setTimeout(()=>{const _0x2657ee=_0x5b95da;this[_0x2657ee(0x114)]=!0x1;},0x7d0);});return()=>{const _0x3d185f=_0x564beb;_0x2d49ff[_0x3d185f(0x1e3)](),_0x293982[_0x3d185f(0x1e3)]();};}[_0x38d7e2(0x21f)](_0x379c9f,_0x4a5b51,_0x259cf2,_0x180d42){const _0x2532bb=_0x38d7e2,_0x59506b=new _0x437e9b(_0x379c9f)[_0x2532bb(0x2cf)](0.2)[_0x2532bb(0x1b1)](),_0x136d9c=new _0x62b6cf(bi+_0x29d1d8[_0x2532bb(0x27f)](X),{'pointsGroup':_0x4a5b51,'fill':_0x59506b||_0x204dc4(_0x5f9f9a['black'],0.2),'left':_0x259cf2,'top':_0x180d42,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2532bb(0x2f8)]['push'](_0x136d9c),this[_0x2532bb(0x29c)]['addObject'](_0x136d9c,_0x5551b6);}[_0x38d7e2(0x165)](_0x402c27,_0x4af4ac,_0x5efa6d,_0xc50735){const _0x4ea8bc=_0x38d7e2,_0x4776d7=new _0x437e9b(_0x402c27)[_0x4ea8bc(0x2cf)](0.2)[_0x4ea8bc(0x1b1)](),_0x4caa0a=new _0x62b6cf(Ti+_0x29d1d8['generateRandomId'](X),{'pointsGroup':_0x4af4ac,'fill':_0x4776d7||_0x204dc4(_0x5f9f9a[_0x4ea8bc(0x1ba)],0.2),'left':_0x5efa6d,'top':_0xc50735,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ea8bc(0x2f8)][_0x4ea8bc(0x1dc)](_0x4caa0a),this['_scene'][_0x4ea8bc(0x218)](_0x4caa0a,_0x5551b6);}[_0x38d7e2(0x18a)](_0x2a9c11){const _0x4a520d=_0x2a9c11[0x0],_0x4d3281=_0x4a520d[0x0],_0x5456f6=_0x4a520d[0x2],{x:_0x558730,y:_0x426cb2}=_0x4d3281,{x:_0x3f8c94,y:_0x425742}=_0x5456f6;return{'left':_0x558730,'top':_0x426cb2,'width':_0x3f8c94-_0x558730,'height':_0x425742-_0x426cb2};}[_0x38d7e2(0x117)](){const _0xd588a5=_0x38d7e2,{scaleX:_0x2842b5,scaleY:_0x2f1fc6}=this[_0xd588a5(0x29c)][_0xd588a5(0x266)]();return Math[_0xd588a5(0x21c)](_0x2842b5,_0x2f1fc6);}}var Ui=Object[_0x38d7e2(0x28f)],Mi=(_0x5467a5,_0x2986ac,_0x408c1e,_0x2653fe)=>{for(var _0x49c743=_0x2653fe>0x1?void 0x0:_0x2653fe?Ui(_0x2986ac,_0x408c1e):_0x2986ac,_0x59c513=_0x5467a5['length']-0x1,_0x2e7152;_0x59c513>=0x0;_0x59c513--)(_0x2e7152=_0x5467a5[_0x59c513])&&(_0x49c743=_0x2e7152(_0x49c743)||_0x49c743);return _0x49c743;},Z=(_0x5929fc,_0x1c1c37)=>(_0x1c56ad,_0x4a78c)=>_0x1c1c37(_0x1c56ad,_0x4a78c,_0x5929fc);let Pe=class extends _0x3e73a6{constructor(_0x16be3e,_0x5f286d,_0x3ad719,_0x1c6f3f,_0x3fc03e){const _0x5114a5=_0x38d7e2;super(),_(this,'_cursorShapes',[]),_(this,_0x5114a5(0x2c0),[]),(this[_0x5114a5(0x1c9)]=_0x16be3e,this[_0x5114a5(0x16d)]=_0x5f286d,this['_collabCursorController']=_0x3ad719,this[_0x5114a5(0x175)]=_0x1c6f3f,this[_0x5114a5(0x22a)]=_0x3fc03e,this['_init']());}[_0x38d7e2(0x227)](){const _0xb86501=_0x38d7e2,_0x274703=this[_0xb86501(0x1c9)][_0xb86501(0x244)],_0x44879b=this[_0xb86501(0x16d)];this[_0xb86501(0x11b)](_0x5262aa([this['_collabCursorController'][_0xb86501(0x122)](_0x274703),this[_0xb86501(0x22a)]['currentTheme$']])[_0xb86501(0x115)](_0x1b8fe8(([_0x15ccde,_0x38bda3])=>({'skeleton':_0x44879b[_0xb86501(0x1a7)](),'cursors':[..._0x15ccde[_0xb86501(0x149)]()][_0xb86501(0x314)](_0x1b1d00=>({..._0x1b1d00,'color':this['_themeService'][_0xb86501(0x14a)](_0x1b1d00[_0xb86501(0x1d9)])}))})))[_0xb86501(0x12d)](_0x2cd799=>{const _0x59468f=_0xb86501;if(this[_0x59468f(0x167)](),_0x2cd799){const {skeleton:_0xc44b3a,cursors:_0x38bf5c}=_0x2cd799;this[_0x59468f(0x269)](_0xc44b3a,_0x38bf5c);}})),this[_0xb86501(0x276)](),this[_0xb86501(0x139)]();}[_0x38d7e2(0x269)](_0x40bffc,_0x1c94a2){const _0x3fcd75=_0x38d7e2,{scene:_0x1f15ff,mainComponent:_0x4f024c}=this[_0x3fcd75(0x1c9)],_0x38fc9e=_0x1c94a2[_0x3fcd75(0x25b)](_0x7f340f=>new qe(_0x7f340f,_0x1f15ff,_0x40bffc,_0x4f024c));this[_0x3fcd75(0x22e)]=_0x38fc9e,this[_0x3fcd75(0x2c0)]=_0x1c94a2;}[_0x38d7e2(0x310)](){const _0x23418d=_0x38d7e2;this[_0x23418d(0x167)]();const {scene:_0x3ba676,mainComponent:_0x4b55a9}=this['_context'],_0x222e8a=this[_0x23418d(0x16d)][_0x23418d(0x1a7)](),_0x28f13b=this[_0x23418d(0x2c0)][_0x23418d(0x25b)](_0x1a6a83=>new qe(_0x1a6a83,_0x3ba676,_0x222e8a,_0x4b55a9));this[_0x23418d(0x22e)]=_0x28f13b;}[_0x38d7e2(0x167)](){const _0xe0606=_0x38d7e2;this['_cursorShapes'][_0xe0606(0x281)](_0x5dbe48=>_0x5dbe48['dispose']()),this[_0xe0606(0x22e)]=[];}[_0x38d7e2(0x139)](){const _0x46372b=_0x38d7e2,_0x26a8f3=[_0x2f49bf['id']];this[_0x46372b(0x11b)](this[_0x46372b(0x175)][_0x46372b(0x291)](_0x440db2=>{const _0x19d2e1=_0x46372b;_0x26a8f3['includes'](_0x440db2['id'])&&_0x440db2[_0x19d2e1(0x119)][_0x19d2e1(0x244)]===this['_context'][_0x19d2e1(0x244)]&&this[_0x19d2e1(0x310)]();}));}['_initResize'](){const _0x39cee9=_0x38d7e2;this[_0x39cee9(0x11b)](_0x7e8a34(this[_0x39cee9(0x1c9)][_0x39cee9(0x194)][_0x39cee9(0x208)])['pipe'](_0x3fddb6(_0x7c0457=>_0x7c0457[_0x39cee9(0x128)]===_0x6253d9[_0x39cee9(0x1ad)]),_0x5b7b76(0x10))['subscribe'](()=>{const _0x3396b1=_0x39cee9;this[_0x3396b1(0x310)]();}));}};Pe=Mi([Z(0x1,_0x557815(_0x25da01)),Z(0x2,_0x557815(H)),Z(0x3,_0x10b8cc),Z(0x4,_0x557815(_0x4fcc40))],Pe);const Pi=0x1,Li=1.5;class wi extends _0x5cfac1{constructor(_0x1cf818,_0x4d3141){const _0x310921=_0x38d7e2;super(_0x1cf818,_0x4d3141),_(this,_0x310921(0x243)),_(this,_0x310921(0x229),!0x1),_(this,_0x310921(0x2f4)),_(this,'_name',''),_(this,'_labelPosition',_0x310921(0x1f2)),_(this,'_backgroundColor'),(_0x4d3141&&this[_0x310921(0x13e)](_0x4d3141),this[_0x310921(0x20a)][_0x310921(0x11a)](()=>this[_0x310921(0x13e)]({'hovered':!0x0})),this[_0x310921(0x259)][_0x310921(0x11a)](()=>this[_0x310921(0x13e)]({'hovered':!0x1})));}[_0x38d7e2(0x13e)](_0x1322a4){const _0xb5c992=_0x38d7e2;var _0xa08b80,_0x491635,_0x2e87b9,_0x549241,_0x1718ad,_0x166ea0;this[_0xb5c992(0x243)]=(_0xa08b80=_0x1322a4[_0xb5c992(0x1d9)])!=null?_0xa08b80:this[_0xb5c992(0x243)],this['_hovered']=(_0x491635=_0x1322a4[_0xb5c992(0x20b)])!=null?_0x491635:this['_hovered'],this[_0xb5c992(0x2f4)]=(_0x2e87b9=_0x1322a4['range'])!=null?_0x2e87b9:this[_0xb5c992(0x2f4)],this[_0xb5c992(0x1ed)]=(_0x549241=_0x1322a4[_0xb5c992(0x193)])!=null?_0x549241:this[_0xb5c992(0x1ed)],this[_0xb5c992(0x1b6)]=(_0x1718ad=_0x1322a4[_0xb5c992(0x298)])!=null?_0x1718ad:this[_0xb5c992(0x1b6)],this[_0xb5c992(0x111)]=(_0x166ea0=_0x1322a4[_0xb5c992(0x156)])!=null?_0x166ea0:this[_0xb5c992(0x111)],this[_0xb5c992(0x2b6)]({'width':_0x1322a4[_0xb5c992(0x303)],'height':_0x1322a4[_0xb5c992(0x2a1)]});}['onMouseMove'](_0xd7ddce){const _0x3a3f9d=_0x38d7e2,{row:_0x3eb351,column:_0x172fe4}=_0xd7ddce;if(_0x3eb351>=this[_0x3a3f9d(0x2f4)][_0x3a3f9d(0x1e9)]&&_0x3eb351<=this[_0x3a3f9d(0x2f4)]['endRow']&&_0x172fe4>=this[_0x3a3f9d(0x2f4)][_0x3a3f9d(0x290)]&&_0x172fe4<=this[_0x3a3f9d(0x2f4)][_0x3a3f9d(0x25a)]){this[_0x3a3f9d(0x13e)]({'hovered':!0x0});return;}this[_0x3a3f9d(0x13e)]({'hovered':!0x1});}[_0x38d7e2(0x1b3)](_0x37d752){return!0x1;}['_draw'](_0x33dad7){const _0x568ac8=_0x38d7e2;_0x3117c8['drawWith'](_0x33dad7,{'width':this['width'],'height':this['height'],'strokeWidth':Li,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x568ac8(0x111)]}),this[_0x568ac8(0x229)]&&(_0x33dad7[_0x568ac8(0x1f3)](),_0x33dad7[_0x568ac8(0x257)](0x1,0x0,0x0,0x1,this[_0x568ac8(0x303)],this[_0x568ac8(0x1b6)]==='bottom'?0x0:-0x14),he[_0x568ac8(0x1fc)](_0x33dad7,{'text':this[_0x568ac8(0x1ed)],'color':this[_0x568ac8(0x243)]}),_0x33dad7[_0x568ac8(0x2c8)]());}}var Ai=Object[_0x38d7e2(0x28f)],yi=(_0x27b5d2,_0x1802f0,_0xe14d80,_0x2cc3d3)=>{for(var _0x3d63e4=_0x2cc3d3>0x1?void 0x0:_0x2cc3d3?Ai(_0x1802f0,_0xe14d80):_0x1802f0,_0x423d52=_0x27b5d2['length']-0x1,_0x2194a6;_0x423d52>=0x0;_0x423d52--)(_0x2194a6=_0x27b5d2[_0x423d52])&&(_0x3d63e4=_0x2194a6(_0x3d63e4)||_0x3d63e4);return _0x3d63e4;},ve=(_0x1c6744,_0x497bb4)=>(_0x28e936,_0x538068)=>_0x497bb4(_0x28e936,_0x538068,_0x1c6744);const $i=0x1389;function _0x5ea0(_0x3f7135,_0x154eaa){const _0x1ac2a4=_0x1ac2();return _0x5ea0=function(_0x5ea04b,_0x210f36){_0x5ea04b=_0x5ea04b-0x110;let _0x1b5ffe=_0x1ac2a4[_0x5ea04b];return _0x1b5ffe;},_0x5ea0(_0x3f7135,_0x154eaa);}let Le=class extends _0x3e73a6{constructor(_0x398ea6,_0x344a49,_0x5a5289,_0x454a4d){const _0x185463=_0x38d7e2;super(),_(this,_0x185463(0x2c0),new Set()),_(this,_0x185463(0x147),null),(this['_context']=_0x398ea6,this[_0x185463(0x30c)]=_0x344a49,this[_0x185463(0x15a)]=_0x5a5289,this['_themeService']=_0x454a4d,this[_0x185463(0x227)]());}[_0x38d7e2(0x227)](){const _0x11a60e=_0x38d7e2;this[_0x11a60e(0x30c)]['currentSkeleton$']['pipe'](_0x120489(this[_0x11a60e(0x250)]),_0xb000cc(_0x53a263=>{const _0xe99bd=_0x11a60e;if(_0x53a263){const _0xce3468=_0x53a263[_0xe99bd(0x1f4)];return _0x5262aa(this[_0xe99bd(0x15a)][_0xe99bd(0x122)](this[_0xe99bd(0x1c9)]['unitId']),this[_0xe99bd(0x22a)][_0xe99bd(0x2ff)])['pipe'](_0x1b8fe8(([_0x4e004c,_0x5d5125])=>{const _0x3a8d16=_0xe99bd,_0x19a6a5=new Map();return _0x4e004c[_0x3a8d16(0x281)]((_0x16674b,_0x5dd8d1)=>{const _0x12646d=_0x3a8d16;if(_0x16674b['sheetID']===_0xce3468){const _0x27bfa5={..._0x16674b};_0x27bfa5[_0x12646d(0x1d9)]=this[_0x12646d(0x22a)][_0x12646d(0x14a)](_0x16674b[_0x12646d(0x1d9)]),_0x19a6a5['set'](_0x5dd8d1,_0x27bfa5);}}),{'skeleton':_0x53a263,'cursors':_0x19a6a5};}));}return _0x3ea046({'skeleton':null,'cursors':new Map()});}))[_0x11a60e(0x12d)](({skeleton:_0x540214,cursors:_0x7eaf49})=>{const _0x50860c=_0x11a60e;this[_0x50860c(0x167)](),_0x540214&&this[_0x50860c(0x269)](_0x540214,_0x7eaf49);}),this['_sheetSkeletonManagerService'][_0x11a60e(0x2c7)][_0x11a60e(0x12d)](_0x5d37c8=>{const _0x402ac5=_0x11a60e;if(_0x5d37c8==null)return;const {skeleton:_0x35b51a}=_0x5d37c8,{scene:_0x221d1f}=this[_0x402ac5(0x1c9)];_0x221d1f[_0x402ac5(0x22d)]['subscribeEvent'](_0x3fcee0(_0x3cf71b=>{const _0x258c8d=_0x402ac5;var _0x184949,_0x3a9d73;const {offsetX:_0xf9c14f,offsetY:_0x5545d8}=_0x3cf71b,{x:_0x149d12,y:_0x53f52e}=_0x221d1f['getRelativeToViewportCoord'](_0x2925b0[_0x258c8d(0x1fb)]([_0xf9c14f,_0x5545d8])),{scaleX:_0x3e4249,scaleY:_0x14f441}=_0x221d1f[_0x258c8d(0x266)](),_0x4e5df4=_0x221d1f[_0x258c8d(0x1fe)](_0x50f5ab[_0x258c8d(0x140)]),_0x10ed1d=_0x221d1f[_0x258c8d(0x267)](_0x2925b0['FromArray']([_0x149d12,_0x53f52e]),_0x4e5df4),_0x11d6ff=_0x35b51a[_0x258c8d(0x233)](_0xf9c14f,_0x5545d8,_0x3e4249,_0x14f441,_0x10ed1d);((_0x184949=this[_0x258c8d(0x147)])==null?void 0x0:_0x184949['column'])===_0x11d6ff['column']&&((_0x3a9d73=this[_0x258c8d(0x147)])==null?void 0x0:_0x3a9d73[_0x258c8d(0x277)])===_0x11d6ff['row']||this['_cursors'][_0x258c8d(0x281)](_0x273a9c=>{const _0x56fc71=_0x258c8d;_0x273a9c[_0x56fc71(0x26f)](_0x11d6ff);});},0x64));});}[_0x38d7e2(0x269)](_0x468b7c,_0x7d8d32){const _0x52ad77=_0x38d7e2;var _0x182d8;const _0x447685=(_0x182d8=this[_0x52ad77(0x30c)][_0x52ad77(0x1b0)]())==null?void 0x0:_0x182d8[_0x52ad77(0x294)];if(!_0x447685)return;const _0x3f137c=this[_0x52ad77(0x2eb)]();if(!_0x3f137c)return;this[_0x52ad77(0x2c0)][_0x52ad77(0x281)](_0x4ae355=>{const _0x47854a=_0x52ad77;_0x4ae355[_0x47854a(0x1ae)]();});const {scene:_0x5eff13}=_0x3f137c,_0xf165c9=xi(Array[_0x52ad77(0x19c)](_0x7d8d32[_0x52ad77(0x149)]()))[_0x52ad77(0x25b)](_0x376b84=>{const _0x4c571f=_0x52ad77,{color:_0x5f013d,range:_0x20efaf,name:_0x420424,selection:_0x4171b8,sheetID:_0x5dd90f}=_0x376b84,{startColumn:_0x24be43,startRow:_0x50881a,endColumn:_0x2a9a65,endRow:_0x5276af}=_0x20efaf,_0x45164b=_0x527019(_0x50881a,_0x24be43,_0x5eff13,_0x447685),_0x564469=_0x527019(_0x5276af,_0x2a9a65,_0x5eff13,_0x447685),{columnHeaderHeightAndMarginTop:_0x1a6082}=_0x447685,{startX:_0x37ab12,startY:_0xb2cb2b}=_0x45164b,{endX:_0xd0be3b,endY:_0x12a2af}=_0x564469,_0x1ff5f8=_0xd0be3b-_0x37ab12,_0x140f0a=_0x12a2af-_0xb2cb2b,_0x27a196={'labelPosition':_0xb2cb2b-_0x1a6082>=ee?_0x4c571f(0x1f2):'bottom','sheetID':_0x5dd90f,'range':_0x20efaf,'color':_0x5f013d,'name':_0x420424,'selection':_0x4171b8,'left':_0x37ab12,'top':_0xb2cb2b,'width':_0x1ff5f8,'height':_0x140f0a,'evented':!0x1,'zIndex':$i};return new wi(_0x420424,_0x27a196);});_0x5eff13[_0x52ad77(0x129)](_0xf165c9,Pi),this[_0x52ad77(0x2c0)]=new Set(_0xf165c9);}['_removeCollabCursors'](){const _0x5d6433=_0x38d7e2;var _0x17fcc7;(_0x17fcc7=this[_0x5d6433(0x2c0)])==null||_0x17fcc7[_0x5d6433(0x281)](_0x4c3b5a=>_0x4c3b5a[_0x5d6433(0x2dd)]());}['_getSheetObject'](){return _0x1e6b50(this['_context']['unit'],this['_context']);}};Le=yi([ve(0x1,_0x557815(_0x35e23e)),ve(0x2,_0x557815(H)),ve(0x3,_0x557815(_0x4fcc40))],Le);function xi(_0x4a31cc){const _0x1ae288=_0x38d7e2,_0x2fb972=new Map();return _0x4a31cc[_0x1ae288(0x281)](_0x1b6bdb=>{const _0x2d1a30=_0x1ae288;if(_0x2fb972['has'](_0x1b6bdb['selection'])){const _0x410875=_0x2fb972[_0x2d1a30(0x1a3)](_0x1b6bdb['selection']);_0x410875['name']+=',\x20'+_0x1b6bdb['name'];}else _0x2fb972[_0x2d1a30(0x225)](_0x1b6bdb['selection'],_0x1b6bdb);}),Array['from'](_0x2fb972[_0x1ae288(0x149)]());}var v=function(){const _0x57bcac=_0x38d7e2;return v=Object[_0x57bcac(0x21b)]||function(_0x2a044e){const _0xe40686=_0x57bcac;for(var _0x29860a,_0x35be3e=0x1,_0x249178=arguments['length'];_0x35be3e<_0x249178;_0x35be3e++){_0x29860a=arguments[_0x35be3e];for(var _0x479314 in _0x29860a)Object[_0xe40686(0x228)][_0xe40686(0x2ce)]['call'](_0x29860a,_0x479314)&&(_0x2a044e[_0x479314]=_0x29860a[_0x479314]);}return _0x2a044e;},v['apply'](this,arguments);},Bi=function(_0x931a1,_0x117b19){const _0x19be3a=_0x38d7e2;var _0x42a734={};for(var _0x36a75a in _0x931a1)Object['prototype'][_0x19be3a(0x2ce)][_0x19be3a(0x1e5)](_0x931a1,_0x36a75a)&&_0x117b19[_0x19be3a(0x190)](_0x36a75a)<0x0&&(_0x42a734[_0x36a75a]=_0x931a1[_0x36a75a]);if(_0x931a1!=null&&typeof Object[_0x19be3a(0x2ea)]=='function'){for(var _0x3bf6c7=0x0,_0x36a75a=Object[_0x19be3a(0x2ea)](_0x931a1);_0x3bf6c7<_0x36a75a['length'];_0x3bf6c7++)_0x117b19[_0x19be3a(0x190)](_0x36a75a[_0x3bf6c7])<0x0&&Object[_0x19be3a(0x228)][_0x19be3a(0x2ae)][_0x19be3a(0x1e5)](_0x931a1,_0x36a75a[_0x3bf6c7])&&(_0x42a734[_0x36a75a[_0x3bf6c7]]=_0x931a1[_0x36a75a[_0x3bf6c7]]);}return _0x42a734;},je=_0x220472(function(_0x34b450,_0x1f1ba5){const _0x5ab5bd=_0x38d7e2;var _0x28816=_0x34b450['icon'],_0x3d77d7=_0x34b450['id'],_0x2bed39=_0x34b450['className'],_0x53fc10=_0x34b450[_0x5ab5bd(0x179)],_0x39d34b=Bi(_0x34b450,['icon','id',_0x5ab5bd(0x133),_0x5ab5bd(0x179)]),_0x4dc28a='univerjs-icon\x20univerjs-icon-'['concat'](_0x3d77d7,'\x20')[_0x5ab5bd(0x1da)](_0x2bed39||'')[_0x5ab5bd(0x315)](),_0x32e5b7=_0x461bdb('_'['concat'](ji()));return Rt(_0x28816,''[_0x5ab5bd(0x1da)](_0x3d77d7),{'defIds':_0x28816[_0x5ab5bd(0x177)],'idSuffix':_0x32e5b7[_0x5ab5bd(0x120)]},v({'ref':_0x1f1ba5,'className':_0x4dc28a},_0x39d34b),_0x53fc10);});function Rt(_0x5b134b,_0x20be36,_0x4c9c99,_0x218fdc,_0x2b21a1){const _0x307a70=_0x38d7e2;return _0x59bd6e(_0x5b134b[_0x307a70(0x29d)],v(v({'key':_0x20be36},ki(_0x5b134b,_0x4c9c99,_0x2b21a1)),_0x218fdc),(Hi(_0x5b134b,_0x4c9c99)[_0x307a70(0x213)]||[])['map'](function(_0x1c2b5f,_0x3bdd44){const _0x3afc5f=_0x307a70;return Rt(_0x1c2b5f,''[_0x3afc5f(0x1da)](_0x20be36,'-')[_0x3afc5f(0x1da)](_0x5b134b[_0x3afc5f(0x29d)],'-')[_0x3afc5f(0x1da)](_0x3bdd44),_0x4c9c99,void 0x0,_0x2b21a1);}));}function ki(_0x987753,_0x236db2,_0x371269){const _0x4be43e=_0x38d7e2;var _0xaf6e5e=v({},_0x987753[_0x4be43e(0x26d)]);_0x371269!=null&&_0x371269[_0x4be43e(0x2a5)]&&_0xaf6e5e[_0x4be43e(0x23a)]===_0x4be43e(0x2a5)&&(_0xaf6e5e[_0x4be43e(0x23a)]=_0x371269[_0x4be43e(0x2a5)]),_0x987753['tag']===_0x4be43e(0x150)&&_0xaf6e5e['id']&&(_0xaf6e5e['id']=_0xaf6e5e['id']+_0x236db2[_0x4be43e(0x31a)]),Object[_0x4be43e(0x24a)](_0xaf6e5e)[_0x4be43e(0x281)](function(_0x42217f){const _0x2c0fc8=_0x4be43e;var _0x56f446=_0x42217f[0x0],_0x409b56=_0x42217f[0x1];_0x56f446==='mask'&&typeof _0x409b56==_0x2c0fc8(0x2c6)&&(_0xaf6e5e[_0x56f446]=_0x409b56['replace'](/url\(#(.*)\)/,_0x2c0fc8(0x20d)[_0x2c0fc8(0x1da)](_0x236db2['idSuffix'],')')));});var _0x3381b9=_0x236db2[_0x4be43e(0x177)];return!_0x3381b9||_0x3381b9[_0x4be43e(0x112)]===0x0||(_0x987753['tag']==='use'&&_0xaf6e5e[_0x4be43e(0x258)]&&(_0xaf6e5e['xlink:href']=_0xaf6e5e[_0x4be43e(0x258)]+_0x236db2['idSuffix']),Object[_0x4be43e(0x24a)](_0xaf6e5e)[_0x4be43e(0x281)](function(_0x1c8b0e){const _0x58605b=_0x4be43e;var _0x21dc64=_0x1c8b0e[0x0],_0x56abbe=_0x1c8b0e[0x1];typeof _0x56abbe==_0x58605b(0x2c6)&&(_0xaf6e5e[_0x21dc64]=_0x56abbe[_0x58605b(0x2fb)](/url\(#(.*)\)/,_0x58605b(0x20d)[_0x58605b(0x1da)](_0x236db2[_0x58605b(0x31a)],')')));})),_0xaf6e5e;}function Hi(_0x10ed42,_0x306f3d){const _0x3ac0cb=_0x38d7e2;var _0x2c2f09,_0x4f8eaf=_0x306f3d[_0x3ac0cb(0x177)];return!_0x4f8eaf||_0x4f8eaf[_0x3ac0cb(0x112)]===0x0?_0x10ed42:_0x10ed42[_0x3ac0cb(0x29d)]===_0x3ac0cb(0x206)&&(!((_0x2c2f09=_0x10ed42[_0x3ac0cb(0x213)])===null||_0x2c2f09===void 0x0)&&_0x2c2f09[_0x3ac0cb(0x112)])?v(v({},_0x10ed42),{'children':_0x10ed42[_0x3ac0cb(0x213)][_0x3ac0cb(0x25b)](function(_0x746948){const _0x124d68=_0x3ac0cb;return typeof _0x746948['attrs']['id']==_0x124d68(0x2c6)&&_0x4f8eaf&&_0x4f8eaf[_0x124d68(0x190)](_0x746948[_0x124d68(0x26d)]['id'])>-0x1?v(v({},_0x746948),{'attrs':v(v({},_0x746948[_0x124d68(0x26d)]),{'id':_0x746948[_0x124d68(0x26d)]['id']+_0x306f3d['idSuffix']})}):_0x746948;})}):_0x10ed42;}function ji(){const _0x45ac40=_0x38d7e2;return Math['random']()[_0x45ac40(0x24e)](0x24)[_0x45ac40(0x292)](0x2,0x8);}je['displayName']=_0x38d7e2(0x214);var Yi={'tag':_0x38d7e2(0x1bc),'attrs':{'fill':_0x38d7e2(0x1db),'viewBox':_0x38d7e2(0x2ca),'width':_0x38d7e2(0x2b8),'height':_0x38d7e2(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x38d7e2(0x21e)},'children':[{'tag':_0x38d7e2(0x23e),'attrs':{'stroke':'currentColor','d':_0x38d7e2(0x11f),'strokeLinecap':_0x38d7e2(0x2ba),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x38d7e2(0x239),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x38d7e2(0x23e),'attrs':{'fill':_0x38d7e2(0x2a8),'d':_0x38d7e2(0x17f)}}]}]}],'defIds':[_0x38d7e2(0x203)]},Dt=_0x220472(function(_0xd64103,_0x4d52fb){const _0x48a49e=_0x38d7e2;return _0x59bd6e(je,Object[_0x48a49e(0x21b)]({},_0xd64103,{'id':_0x48a49e(0x1a9),'ref':_0x4d52fb,'icon':Yi}));});Dt[_0x38d7e2(0x301)]='OffLineSingle';var Fi={'tag':_0x38d7e2(0x1bc),'attrs':{'fill':_0x38d7e2(0x1db),'viewBox':_0x38d7e2(0x13f),'width':_0x38d7e2(0x2b8),'height':_0x38d7e2(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x38d7e2(0x23e),'attrs':{'stroke':_0x38d7e2(0x299),'d':_0x38d7e2(0x1a8),'strokeLinecap':_0x38d7e2(0x2ba),'strokeLinejoin':_0x38d7e2(0x2ba),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x38d7e2(0x239),'attrs':{'id':_0x38d7e2(0x268)},'children':[{'tag':_0x38d7e2(0x23e),'attrs':{'fill':_0x38d7e2(0x2a8),'d':_0x38d7e2(0x17f),'transform':'translate(.97)'}}]}]}],'defIds':[_0x38d7e2(0x268)]},Nt=_0x220472(function(_0x5981be,_0x2962f0){const _0x33a851=_0x38d7e2;return _0x59bd6e(je,Object[_0x33a851(0x21b)]({},_0x5981be,{'id':_0x33a851(0x1af),'ref':_0x2962f0,'icon':Fi}));});Nt[_0x38d7e2(0x301)]=_0x38d7e2(0x18f);function Wi(_0x1218e9){const _0x768aaf=_0x38d7e2;switch(_0x1218e9){case _0x46195e[_0x768aaf(0x16f)]:return _0x768aaf(0x2e0);case _0x46195e['CONFLICT']:return'collabStatus.conflict';case _0x46195e[_0x768aaf(0x15c)]:return'collabStatus.fetchMiss';case _0x46195e[_0x768aaf(0x1e1)]:return'collabStatus.notCollab';case _0x46195e[_0x768aaf(0x25d)]:case _0x46195e[_0x768aaf(0x178)]:return _0x768aaf(0x217);case _0x46195e[_0x768aaf(0x262)]:case _0x46195e[_0x768aaf(0x17c)]:return _0x768aaf(0x2e5);}}function Vi(_0x283818){const _0x3f8fad=_0x38d7e2,{status$:_0x241309}=_0x283818,_0x47e19e=_0x5a30f1(_0x241309,_0x46195e[_0x3f8fad(0x1e1)]),_0x5b76f4=_0x1c31d6(_0x13bfad),_0x14023a=_0x1c31d6(_0x2c2d8c),_0x117458=_0x47e19e!==_0x46195e['OFFLINE'],_0x4fbc11=_0x5b76f4['t'](Wi(_0x47e19e)),_0x186e69=_0x117458?_0x3b49e2(Nt,{}):_0x3b49e2(Dt,{}),_0x49dc82=_0x3c6308(()=>{_0x117458||_0x14023a['reconnect']();},[_0x117458,_0x14023a]);function _0x3742a1(){const _0x4ab150=_0x3f8fad;return _0x42a554('div',{'className':_0x4ab150(0x2ac),'onClick':_0x49dc82,'children':[_0x3b49e2(_0x4ab150(0x274),{'className':_0x27b71e(_0x4ab150(0x27b),_0x117458?_0x4ab150(0x1cf):_0x4ab150(0x1e2)),'children':_0x186e69}),_0x3b49e2(_0x4ab150(0x274),{'className':_0x4ab150(0x279),'children':_0x4fbc11})]});}return _0x117458?_0x3742a1():_0x3b49e2(_0x365959,{'title':_0x5b76f4['t'](_0x3f8fad(0x186)),'children':_0x3742a1()});}var Xi=Object['getOwnPropertyDescriptor'],Gi=(_0x5d06fe,_0xbd90da,_0x3eb393,_0x281e47)=>{const _0x34d9d3=_0x38d7e2;for(var _0x30ac9b=_0x281e47>0x1?void 0x0:_0x281e47?Xi(_0xbd90da,_0x3eb393):_0xbd90da,_0x3c3480=_0x5d06fe[_0x34d9d3(0x112)]-0x1,_0x40c633;_0x3c3480>=0x0;_0x3c3480--)(_0x40c633=_0x5d06fe[_0x3c3480])&&(_0x30ac9b=_0x40c633(_0x30ac9b)||_0x30ac9b);return _0x30ac9b;},Q=(_0x1205a5,_0x501d2b)=>(_0x2c8cf4,_0x45c7d7)=>_0x501d2b(_0x2c8cf4,_0x45c7d7,_0x1205a5);let te=class extends _0x707c0a{constructor(_0xa312b6,_0x40dd9e,_0x5524f8,_0x7ad806){const _0x388c44=_0x38d7e2;super(),_(this,_0x388c44(0x2b9),new _0x536e1a(_0x46195e[_0x388c44(0x1e1)])),(this[_0x388c44(0x245)]=_0xa312b6,this[_0x388c44(0x1d6)]=_0x40dd9e,this[_0x388c44(0x317)]=_0x5524f8,this['_uiPartsService']=_0x7ad806,this[_0x388c44(0x1c6)](),this[_0x388c44(0x2d4)]());}[_0x38d7e2(0x2d4)](){const _0x105db4=_0x38d7e2;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x105db4(0x115)](_0x36ad73(()=>{const _0x554bef=_0x105db4,_0x5cf030=this[_0x554bef(0x245)][_0x554bef(0x300)]();return _0x5cf030?this['_collaborationController'][_0x554bef(0x29e)](_0x5cf030[_0x554bef(0x2da)]()):_0x3ea046(null);}),_0x36ad73(_0x2eb612=>_0x2eb612?_0x2eb612[_0x105db4(0x302)]:_0x3ea046(_0x46195e['NOT_COLLAB'])))[_0x105db4(0x12d)](_0x310ac8=>{const _0x46f246=_0x105db4;this[_0x46f246(0x2b9)][_0x46f246(0x1a6)](_0x310ac8);}));}['_initStatusComponent'](){const _0x1c92f6=_0x38d7e2;this['disposeWithMe'](this[_0x1c92f6(0x18c)][_0x1c92f6(0x174)](_0x17c9c8[_0x1c92f6(0x2a7)],()=>_0x4458c2(Ki({'status$':this[_0x1c92f6(0x2b9)][_0x1c92f6(0x14b)]()}),this[_0x1c92f6(0x1d6)])));}};te=Gi([Q(0x0,_0x73586c),Q(0x1,_0x557815(_0x3005c3)),Q(0x2,_0x557815(_0x55ae1a)),Q(0x3,_0x59c6b6)],te);function Ki(_0x126811){const {status$:_0x21f5c8}=_0x126811;return function(){return _0x3b49e2(Vi,{'status$':_0x21f5c8});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0x969f9e,_0x1cc05b,_0x154a8e,_0x16766d)=>{const _0x20ce6a=_0x38d7e2;for(var _0x1f7bd1=_0x16766d>0x1?void 0x0:_0x16766d?zi(_0x1cc05b,_0x154a8e):_0x1cc05b,_0x16dc01=_0x969f9e[_0x20ce6a(0x112)]-0x1,_0x436f08;_0x16dc01>=0x0;_0x16dc01--)(_0x436f08=_0x969f9e[_0x16dc01])&&(_0x1f7bd1=_0x436f08(_0x1f7bd1)||_0x1f7bd1);return _0x1f7bd1;},B=(_0x42b424,_0x3267e6)=>(_0x1e3b63,_0x2d4a5c)=>_0x3267e6(_0x1e3b63,_0x2d4a5c,_0x42b424);let se=class extends _0x707c0a{constructor(_0x10c48a,_0x357696,_0x4a713b,_0x3cb1fa,_0x56a799,_0x1dfb63){const _0x283f04=_0x38d7e2;super(),this[_0x283f04(0x2cd)]=_0x10c48a,this['_localCacheService']=_0x357696,this[_0x283f04(0x18e)]=_0x4a713b,this[_0x283f04(0x142)]=_0x3cb1fa,this[_0x283f04(0x23b)]=_0x56a799,this[_0x283f04(0x246)]=_0x1dfb63,this[_0x283f04(0x2ef)](),this[_0x283f04(0x2d0)]();}['_setupBeforeClosingHandler'](){const _0x1fb885=_0x38d7e2;this['disposeWithMe'](this[_0x1fb885(0x2cd)][_0x1fb885(0x31d)](()=>{const _0x1f9aa3=_0x1fb885;if(this[_0x1f9aa3(0x1ec)][_0x1f9aa3(0x1cd)][_0x1f9aa3(0x271)])return this[_0x1f9aa3(0x246)]['t'](_0x1f9aa3(0x169));}));}[_0x38d7e2(0x2d0)](){const _0x46b7fe=_0x38d7e2;this[_0x46b7fe(0x11b)](this[_0x46b7fe(0x18e)]['event$'][_0x46b7fe(0x12d)](_0x9ca417=>{const _0x1f12ed=_0x46b7fe;_0x9ca417['id']===_0x511169[_0x1f12ed(0x1dd)]&&this[_0x1f12ed(0x142)][_0x1f12ed(0x171)]({'type':_0x56571e[_0x1f12ed(0x195)],'content':this[_0x1f12ed(0x246)]['t'](_0x1f12ed(0x22c))}),_0x9ca417['id']===_0x511169[_0x1f12ed(0x2af)]&&this[_0x1f12ed(0x142)][_0x1f12ed(0x171)]({'type':_0x56571e['Warning'],'content':this['_localeService']['t'](_0x1f12ed(0x189))}),_0x9ca417['id']===_0x511169[_0x1f12ed(0x1ea)]&&this[_0x1f12ed(0x23b)][_0x1f12ed(0x171)]({'title':this[_0x1f12ed(0x246)]['t'](_0x1f12ed(0x2c4)),'content':this[_0x1f12ed(0x246)]['t'](_0x1f12ed(0x153)),'type':_0x1f12ed(0x159),'duration':0x0}),_0x9ca417['id']===_0x511169[_0x1f12ed(0x2ed)]&&this[_0x1f12ed(0x142)]['show']({'type':_0x56571e[_0x1f12ed(0x161)],'content':this[_0x1f12ed(0x246)]['t']('collaboration.closeRoom')+'('+_0x9ca417[_0x1f12ed(0x166)]+')'}),_0x9ca417['id']===_0x511169[_0x1f12ed(0x265)]&&this[_0x1f12ed(0x142)][_0x1f12ed(0x171)]({'type':_0x56571e[_0x1f12ed(0x195)],'content':this[_0x1f12ed(0x246)]['t'](_0x9ca417[_0x1f12ed(0x166)]||'')}),_0x9ca417['id']===_0x511169[_0x1f12ed(0x1b8)]&&this[_0x1f12ed(0x142)][_0x1f12ed(0x171)]({'type':_0x56571e['Warning'],'content':this[_0x1f12ed(0x246)]['t'](_0x1f12ed(0x148))}),_0x9ca417['id']===_0x511169[_0x1f12ed(0x17a)]&&this[_0x1f12ed(0x142)][_0x1f12ed(0x171)]({'type':_0x56571e[_0x1f12ed(0x161)],'content':this[_0x1f12ed(0x246)]['t'](_0x1f12ed(0x27d))}),_0x9ca417['id']===_0x511169['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x56571e['Error'],'content':this[_0x1f12ed(0x246)]['t'](_0x1f12ed(0x2f9))});}));}};se=Ji([B(0x0,_0x414af6),B(0x1,_0x1d483c),B(0x2,_0x557815(_0x3a26d3)),B(0x3,_0x3f6d88),B(0x4,_0x30317c),B(0x5,_0x557815(_0x13bfad))],se);const Zi='collaboration-client-ui.config',et={},Ut=_0x5ba7dd(_0x38d7e2(0x234));var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x4a4698,_0x263087,_0x1ef81c,_0x29fbe4)=>{const _0x2f42fd=_0x38d7e2;for(var _0x3ffbe6=_0x29fbe4>0x1?void 0x0:_0x29fbe4?Qi(_0x263087,_0x1ef81c):_0x263087,_0x15b677=_0x4a4698[_0x2f42fd(0x112)]-0x1,_0x80414;_0x15b677>=0x0;_0x15b677--)(_0x80414=_0x4a4698[_0x15b677])&&(_0x3ffbe6=_0x80414(_0x3ffbe6)||_0x3ffbe6);return _0x3ffbe6;},G=(_0x3f3dd2,_0x1ca54c)=>(_0xb99f8d,_0x58b1bb)=>_0x1ca54c(_0xb99f8d,_0x58b1bb,_0x3f3dd2);let ie=class extends _0x3e73a6{constructor(_0x1d60bb,_0x568971,_0x46496d,_0x49c384,_0x3ee4af){const _0x101e79=_0x38d7e2;super(),this[_0x101e79(0x220)]=_0x1d60bb,this['_logService']=_0x568971,this[_0x101e79(0x175)]=_0x46496d,this[_0x101e79(0x29f)]=_0x49c384,_0x3ee4af?_0x3ee4af==null||_0x3ee4af[_0x101e79(0x242)]()[_0x101e79(0x313)](()=>this['_init']()):(this[_0x101e79(0x273)][_0x101e79(0x207)](_0x101e79(0x2c3),_0x101e79(0x28c)),this[_0x101e79(0x227)]());}async[_0x38d7e2(0x227)](){const _0xbe7e40=_0x38d7e2,_0x2e720a=this[_0xbe7e40(0x220)][_0xbe7e40(0x168)](_0xbe7e40(0x309)),_0x3b2672=this['_urlService']['getParam'](_0xbe7e40(0x128)),_0x55921a=this[_0xbe7e40(0x220)][_0xbe7e40(0x168)](_0xbe7e40(0x256));if(!_0x2e720a||!_0x3b2672){this[_0xbe7e40(0x273)][_0xbe7e40(0x207)](_0xbe7e40(0x2c3),_0xbe7e40(0x1f7));return;}const _0x56b762=await this['_dataLoaderService']['loadUnit'](_0x2e720a,Number(_0x3b2672),_0x55921a);_0x56b762&&_0x56b762 instanceof _0x15dd6&&this['_setupSubUnitSync'](_0x56b762);}async[_0x38d7e2(0x2be)](_0x2049d7){const _0x1cc0db=_0x38d7e2;await this[_0x1cc0db(0x14d)](_0x2049d7),_0x2049d7[_0x1cc0db(0x12a)]['pipe'](_0x23d61a(this[_0x1cc0db(0x250)]))[_0x1cc0db(0x12d)](_0x38dcfe=>{const _0x4e6f14=_0x1cc0db;_0x38dcfe&&this[_0x4e6f14(0x27e)](_0x38dcfe);}),this['_urlService'][_0x1cc0db(0x28d)]['pipe'](_0x23d61a(this[_0x1cc0db(0x250)]))[_0x1cc0db(0x12d)](()=>this['_updateSubUnitFromURLParams'](_0x2049d7));}[_0x38d7e2(0x27e)](_0x503c2f,_0x2e667d=!0x1){const _0xbcb6ee=_0x38d7e2,_0x2e0dde=this[_0xbcb6ee(0x220)][_0xbcb6ee(0x168)](_0xbcb6ee(0x256));_0x503c2f[_0xbcb6ee(0x2bf)]()!==_0x2e0dde&&this['_urlService']['setParam']('subunit',_0x503c2f[_0xbcb6ee(0x2bf)](),_0x2e667d);}async[_0x38d7e2(0x14d)](_0x17c589){const _0x861cf5=_0x38d7e2;var _0xfa56df;const _0x2ef1d6=this[_0x861cf5(0x220)][_0x861cf5(0x168)](_0x861cf5(0x256));if(!_0x2ef1d6||!_0x17c589[_0x861cf5(0x26a)](_0x2ef1d6)){const _0x208b9d=_0x17c589['getUnhiddenWorksheets']()[0x0],_0x5f5739=_0x17c589[_0x861cf5(0x26a)](_0x208b9d);if(!_0x5f5739)return;this['_updateURLWithCurrentState'](_0x5f5739,!0x0),await this[_0x861cf5(0x175)][_0x861cf5(0x125)](_0x3870b4['id'],{'unitId':_0x17c589[_0x861cf5(0x2da)](),'subUnitId':_0x208b9d});return;}((_0xfa56df=_0x17c589[_0x861cf5(0x2bc)]())==null?void 0x0:_0xfa56df[_0x861cf5(0x2bf)]())!==_0x2ef1d6&&await this[_0x861cf5(0x175)][_0x861cf5(0x125)](_0x3870b4['id'],{'unitId':_0x17c589[_0x861cf5(0x2da)](),'subUnitId':_0x2ef1d6});}};ie=qi([G(0x0,Ut),G(0x1,_0x27a775),G(0x2,_0x10b8cc),G(0x3,_0x557815(_0x43f20f)),G(0x4,_0x15a816(_0x15fdc0))],ie);var en=Object[_0x38d7e2(0x28f)],tn=(_0x2cd36a,_0x24da1,_0x2a3038,_0x3cc09d)=>{const _0x59074b=_0x38d7e2;for(var _0x2b252c=_0x3cc09d>0x1?void 0x0:_0x3cc09d?en(_0x24da1,_0x2a3038):_0x24da1,_0x29080d=_0x2cd36a[_0x59074b(0x112)]-0x1,_0x3db65c;_0x29080d>=0x0;_0x29080d--)(_0x3db65c=_0x2cd36a[_0x29080d])&&(_0x2b252c=_0x3db65c(_0x2b252c)||_0x2b252c);return _0x2b252c;},pe=(_0x3022dd,_0x17bc33)=>(_0x42e824,_0x3de99b)=>_0x17bc33(_0x42e824,_0x3de99b,_0x3022dd);function _0x1ac2(){const _0x13c2f1=['TOO_MANY_REQUESTS','className','CHANGESET_REVISION_CONFILICT','override','INTERNAL_ERROR','sessionStatus$','isArray','_initCommandExecutedListener','YUUMI_UNABLE_LOAD_URL','createSocket','_registerRenderDependencies','LOGIN_FAILED','setShapeProps','0\x200\x2017\x2016','VIEW_MAIN','roomMembers','_messageService','_anchorDot','beginPath','_colorIndex','unload','_lastPointer','session.will-retry','values','getColorFromTheme','asObservable','_docSyncEditingCollabCursorService','_updateSubUnitFromURLParams','APPLY_PERMISSION_DENIED','_saveCache','mask','OTHER_CLIENTS_EDITING','_id','permission.content','INVITE_CODE_REQUIRED','UNIVER_DOC','backgroundColor','ACTIVE_UNIT_EVENT_CHANNEL','invokeId','error','_collabCursorController','_unitOnClients','FETCH_MISS','_scheduleHeartbeat','InsertColCommandId','14GCnSUk','doc.mutation.rich-text-editing','Error','Unknown\x20user','UNRECOGNIZED','_createSocketURL','_drawRectRange','data','_removeCollabCursors','getParam','collaboration-client.offline-data-not-saved','YUUMI_AI_RUN_FAILED','find','removeParam','_docSkeletonManagerService','red.300','OFFLINE','getMergeData','show','22326161dQEBth','_updateLocalCursor','registerComponent','_commandService','getRenderById','defIds','AWAITING_WITH_PENDING','extend','SOCKET_FAILED','transformSelections','PENDING','pluginName','_getSaveTimeout','M0\x200H16V16H0z','getCurrentRevOfUnit','loadOfflineData','replaceDocRanges','_entities','purple.300','requireSession','collab-client.tooltip.reconnect','_renderManagerService','lineTo','collaboration.closeRoom','_getAnchorBounding','_cachedData','_uiPartsService','pushState','_collaborationUIEventService','OnLineSingle','indexOf','_clearOtherTimers','transformMutation','name','engine','Warning','MUTATION','ALREADY_EXISTS','_docTransformStateCacheService','unitID','USERS_LEAVE','21593FhVMdd','from','YUUMI_NO_CUBOID_FOR_QUESTION','1089PEoxtW','WECHAT_HAS_BEEN_BOUND','_imageIoService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','some','get','APPLY_DUPLICATED','split','next','getSkeleton','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','off-line-single','_session','m2Prime','YUUMI_URL_COL_OUT_OF_RANGE','resize','makeDirty','on-line-single','getCurrent','toRgbString','_cursor','triggerDblclick','setParam','...','_labelPosition','YUUMI_RATE_OVER_LIMIT','SOCKET_FAILED_RETRY','fillStyle','black','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','svg','getValue','16824kfpgWf','isEditing','transformStateCache','#FFF','event$','getMember','_startDocCollabCursor','delete','_initStatusComponent','blue.400','getTypeOfUnitDisposed$','_context','_drawAnchor','9sqMvNz','getStateCache','saveTaskMap','_configService','univer-text-green-500','_saveTaskMap','parse','_startSheetCollabCursor','newValue','getTypeOfUnitAdded$','2702840UzBAot','_injector','getConfig','ONLINE','color','concat','none','push','OTHER_CLIENT_EDITING','addHandlerCallback','_revisionService','min','NOT_COLLAB','univer-text-red-500','unsubscribe','LICENSE_EXPORT_SIZE_EXCEEDED','call','result','transformMutationsWithChangeset','_docTransformIMECacheService','startRow','PERMISSION_DENIED','symbol','_localCacheService','_name','_memberService','_initDependencies','_docClipboardService','actions','top','save','sheetId','_entityInit$','text','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','redoState','703770HWMlPl','defineProperty','FromArray','drawWith','_heartbeatTimer','getViewport','INVITE_CODE_HAS_BEEN_UES','USER_NOT_INVITED_CODE','_docSkeleton','_instanceService','off-line-single_clip0_910_343','has','_colorAssignService','defs','debug','onTransformChange$','cursorInfo','onPointerEnter$','hovered','_httpService','url(#$1','_cursorInfo$','_removeClearOtherTimer','_onCursorUpdate','history','setUndoRedoMutationParamsCache','children','UniverIcon','_assignedColors','InsertRangeMoveDownCommandId','collabStatus.syncing','addObject','_send','_transformUndoRedoStack','assign','max','_eventUnsubscribe','url(#off-line-single_clip0_910_343)','_drawTextRange','_urlService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','arc','_scheduleSaving','_collabCursorState$','set','COMPLETION_FINISHED','_init','prototype','_hovered','_themeService','NOT_FOUND','collaboration.single-unit.warning','onPointerMove$','_cursorShapes','YUUMI_TABLE_NOT_FOUND_IN_UNIT','popstate','INVALID_ARGUMENT','PY_RUNTIME_SCRIPT_ERROR','getCellPositionByOffset','uni.network.url-service','UNAUTHENTICATED','body','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','MoveRangeCommandId','clipPath','fill','_notificationService','undoState','_transformPreviousActiveRange','path','ENSURE_SNAPSHOT_EXECUTION','TEXT','subUnitId','whenReady','_color','unitId','_univerInstanceService','_localeService','range','_getSessionTicket','140aCGTyv','entries','storage','transformIMECache','getRangePointData','toString','UNIVER_SHEET','dispose$','DeleteRangeMoveLeftCommandId','syncEditingCollabCursor','moveTo','SNAPSHOT_INVALID_SNAPSHOT','UPDATE_CURSOR','subunit','transform','xlink:href','onPointerLeave$','endColumn','map','_toggleOffline','AWAITING','selections','_anchor','329502XVzisD','EMAIL_HAS_BEEN_BOUND','SYNCED','_initEntityListener','clearInterval','JOIN_ROOM_FAILED','getAncestorScale','getVpScrollXYInfoByPosToVp','on-line-single_clip0_910_349','_updateCollabCursors','getSheetBySheetId','YUUMI_ASYNCIO_CANCELLED','setItem','attrs','cursorInfo$','onMouseMove','Failed','size','_draw','_logService','div','deepClone','_initResize','row','getUndoRedoMutationParamsCache','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600','runOnServer','univer-flex\x20univer-mr-2\x20univer-text-xl','_refRangeService','session.connection-failed','_updateURLWithCurrentState','generateRandomId','location','forEach','add','_ensureSubject','collabCursorState$','getDocRanges','_unitStatus','font','_textBubble','YUUMI_ALL_TABLES_IS_INVALID','imageSourceType','_handleEvent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','urlChange$','MOBILE_HAS_BEEN_BOUND','getOwnPropertyDescriptor','startColumn','onCommandExecuted','substring','roomMembers$','skeleton','_onCursorDelete','APPLY_REJECT','isActive','labelPosition','currentColor','_docStateChangeManagerService','_render','_scene','tag','getCollabEntity$','_dataLoaderService','_hideTimer','height','_localStorageService','_onRefRangeChange','registerRenderModule','colorChannel1','LICENSE_MAX_UNITS_EXCEEDED','HEADER_MENU','#fff','getUnitStatus$','_handleLeaveEvent','fillText','univer-flex\x20univer-items-center','CONNECTOR_DATA_TOO_LARGE','propertyIsEnumerable','CLOSE_ROOM','_handleJoinEvent','_syncEditingCollabCursorService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','setConfig','onLocalMutation','href','transformByState','contains','1em','_status$','round','ranges','getActiveSheet','_transformHistoryAndStateStack','_setupSubUnitSync','getSheetId','_cursors','createInstance','INVITE_CODE_ALREADY_BOUND','[CollaborationDataLoaderController]','permission.title','DeleteRangeMoveUpCommandId','string','currentSkeleton$','restore','addClipboardHook','0\x200\x2016\x2016','runId','RECT','_beforeCloseService','hasOwnProperty','setAlpha','_initEvent','APPLY_NON_SEQUENTIAL_REVISION','addEventListener','green.600','_initStatusListener','evenodd','getOffsetConfig','setStateCache','measureText','_collabSessionService','getUnitId','getCurrentSelections','searchParams','dispose','_roomMembers$','INVALID_INVITE_CODE','collabStatus.offline','ticket','editingUnit','init','entityInit$','collabStatus.synced','startsWith','SNAPSHOT_HAS_BEEN_REMOVED','send','m1Prime','getOwnPropertySymbols','_getSheetObject','_transformService','CONFLICT','_registerDependencies','_setupBeforeClosingHandler','origin','clearTimeout','LICENSE_IMPORT_SIZE_EXCEEDED','RemoveColCommandId','_range','getMemberID','_handleHover','closePath','_shapes','session.collaboration-timeout','transformRemoteChangeset','replace','_docTransformSelectionsService','_config','with','currentTheme$','getFocusedUnit','displayName','status$','width','InsertRowCommandId','textRanges','hide','_doCreateSocket','60235QyIjyd','unit','stringify','_scheduleClearOtherTimer','_sheetSkeletonManagerService','_online','_getMergeRange','getCurrentUnitForType','_refreshCollabCursors','onStarting','memberID','then','flatMap','trim','getActiveRange','_collaborationController','executionId','collab-text-range-','idSuffix','registerRefRange','_selfUnitIDs','registerBeforeClose','replaceState','_backgroundColor','length','rgba(255,\x20255,\x20255,\x200.01)','_hover','pipe','UNDEFINED','_getScale','YUUMI_SUBSCRIPTION_NOT_FOUND','params','subscribeEvent','disposeWithMe','mutations','exhaustSavingTask','NO_OTHER_CLIENTS_EDITING','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','current','unshift','getCollabCursors$','all','/run/','executeCommand','RemoveRowCommandId','_disabled','type','addObjects','activeSheet$','assignAColorForMemberID','setActiveRange','subscribe','code','complete','_toggleOnline','findNodePositionByCharIndex'];_0x1ac2=function(){return _0x13c2f1;};return _0x1ac2();}let ne=class{constructor(_0xb0f4e5,_0x44ac2f,_0x43c032){const _0x328669=_0x38d7e2;this['_injector']=_0xb0f4e5,this['_transformService']=_0x44ac2f,this[_0x328669(0x187)]=_0x43c032;}['transformIMECache'](_0x4937ed){const _0x185bb6=_0x38d7e2;this[_0x185bb6(0x21a)](_0x4937ed),this[_0x185bb6(0x23d)](_0x4937ed);}[_0x38d7e2(0x2fa)](_0x5ef7fc){const _0x49d1d0=_0x38d7e2,{unitID:_0x66aa50}=_0x5ef7fc,_0x263ed9=this[_0x49d1d0(0x187)][_0x49d1d0(0x176)](_0x66aa50)['with'](_0x5a5680),{redoCache:_0x4dc861}=_0x263ed9[_0x49d1d0(0x278)]();if(_0x4dc861['length']===0x0)return _0x5ef7fc;let _0x551e63=_0x29d1d8[_0x49d1d0(0x275)](_0x5ef7fc[_0x49d1d0(0x11c)][0x0]);for(let _0x32af56=0x0;_0x32af56<_0x4dc861[_0x49d1d0(0x112)];_0x32af56++){const _0x495e12={'id':_0x49d1d0(0x160),'params':{..._0x4dc861[_0x32af56]}},_0x38b910=this[_0x49d1d0(0x2ec)]['transformMutation'](_0x551e63,_0x495e12,!0x1);if(_0x3e2440(_0x38b910))throw _0x38b910['error'];_0x551e63=_0x38b910[_0x49d1d0(0x2e9)];}return{..._0x29d1d8['deepClone'](_0x5ef7fc),'mutations':[_0x551e63]};}[_0x38d7e2(0x21a)](_0x3d4121){const _0x6150e9=_0x38d7e2,{unitID:_0x267e75}=_0x3d4121,_0x1fc01b=this['_renderManagerService'][_0x6150e9(0x176)](_0x267e75)['with'](_0x5a5680),{undoCache:_0x573e82,redoCache:_0x2a088d}=_0x1fc01b[_0x6150e9(0x278)]();if(_0x573e82[_0x6150e9(0x112)]===0x0||_0x2a088d[_0x6150e9(0x112)]===0x0)return;const _0x19dd02=[],_0xb22988=[];let _0x3aab88=_0x29d1d8[_0x6150e9(0x275)](_0x3d4121[_0x6150e9(0x11c)][0x0]),_0x49d9da=_0x29d1d8['deepClone'](_0x3d4121[_0x6150e9(0x11c)][0x0]);for(let _0x3c6cba=_0x573e82[_0x6150e9(0x112)]-0x1;_0x3c6cba>=0x0;_0x3c6cba--){const _0x345713={'id':_0x6150e9(0x160),'params':{..._0x573e82[_0x3c6cba]}},_0x380997={'id':_0x6150e9(0x160),'params':{..._0x2a088d[_0x3c6cba]}},_0x310ce1=this[_0x6150e9(0x2ec)]['transformMutation'](_0x3aab88,_0x345713,!0x1),_0x26608d=this['_transformService'][_0x6150e9(0x192)](_0x49d9da,_0x380997,!0x1);if(_0x3e2440(_0x310ce1))throw _0x310ce1[_0x6150e9(0x159)];if(_0x3e2440(_0x26608d))throw _0x26608d[_0x6150e9(0x159)];_0x19dd02[_0x6150e9(0x121)](_0x310ce1[_0x6150e9(0x1ab)][_0x6150e9(0x119)]),_0xb22988[_0x6150e9(0x121)](_0x26608d[_0x6150e9(0x1ab)][_0x6150e9(0x119)]),_0x3aab88=_0x310ce1['m1Prime'],_0x49d9da=_0x26608d[_0x6150e9(0x2e9)];}_0x1fc01b[_0x6150e9(0x212)]({'undoCache':_0x19dd02,'redoCache':_0xb22988});}['_transformPreviousActiveRange'](_0x4fa5b8){const _0x16f214=_0x38d7e2,{unitID:_0x28b1aa}=_0x4fa5b8,_0x36dcae=this[_0x16f214(0x187)][_0x16f214(0x176)](_0x28b1aa)[_0x16f214(0x2fe)](_0x5a5680),_0x3f2986=_0x36dcae[_0x16f214(0x316)]();if(_0x3f2986==null)return;const _0x3e29fa=[{'id':_0x16f214(0x160),'params':{'unitId':_0x4fa5b8[_0x16f214(0x199)],'actions':null,'textRanges':[_0x3f2986]}}],_0x28ca40=this[_0x16f214(0x2ec)]['transformMutationsWithChangeset'](_0x4fa5b8,_0x3e29fa);if(!_0x5b874d(_0x28ca40))throw _0x28ca40[_0x16f214(0x159)];const _0x2ba4b4=_0x28ca40[_0x16f214(0x1ab)][0x0]['params'][_0x16f214(0x305)];Array[_0x16f214(0x138)](_0x2ba4b4)&&_0x2ba4b4[_0x16f214(0x112)]&&_0x36dcae[_0x16f214(0x12c)](_0x2ba4b4[0x0]);}};ne=tn([pe(0x0,_0x557815(_0x3005c3)),pe(0x1,_0x4f46f8),pe(0x2,_0x34a027)],ne);var sn=Object[_0x38d7e2(0x28f)],nn=(_0x1b15c7,_0x46b391,_0x4f3fbd,_0x4e31f9)=>{const _0xb3834b=_0x38d7e2;for(var _0x225f83=_0x4e31f9>0x1?void 0x0:_0x4e31f9?sn(_0x46b391,_0x4f3fbd):_0x46b391,_0xeca3ad=_0x1b15c7[_0xb3834b(0x112)]-0x1,_0xc9d9e8;_0xeca3ad>=0x0;_0xeca3ad--)(_0xc9d9e8=_0x1b15c7[_0xeca3ad])&&(_0x225f83=_0xc9d9e8(_0x225f83)||_0x225f83);return _0x225f83;},Ce=(_0x1ea6c4,_0x2fc4c2)=>(_0x5e4ddf,_0x1fdc43)=>_0x2fc4c2(_0x5e4ddf,_0x1fdc43,_0x1ea6c4);let re=class{constructor(_0x28b7fc,_0xb1a566,_0x3e22d1){const _0x5a19e7=_0x38d7e2;this[_0x5a19e7(0x1d6)]=_0x28b7fc,this[_0x5a19e7(0x2ec)]=_0xb1a566,this[_0x5a19e7(0x29a)]=_0x3e22d1;}['transformStateCache'](_0x136937){const _0x322506=_0x38d7e2;this[_0x322506(0x2bd)](_0x136937);}[_0x38d7e2(0x2fa)](_0xc3e641){const _0x4bdb04=_0x38d7e2,{unitID:_0x5a6eb1}=_0xc3e641,{collaboration:_0x38363d}=this['_docStateChangeManagerService'][_0x4bdb04(0x1cc)](_0x5a6eb1);if(_0x38363d[_0x4bdb04(0x112)]===0x0)return _0xc3e641;let _0x509ce3=_0x29d1d8[_0x4bdb04(0x275)](_0xc3e641[_0x4bdb04(0x11c)][0x0]);for(let _0x50bf95=0x0;_0x50bf95<_0x38363d['length'];_0x50bf95++){const _0x298780={'id':_0x4bdb04(0x160),'params':{'unitId':_0x38363d[_0x50bf95][_0x4bdb04(0x244)],..._0x38363d[_0x50bf95][_0x4bdb04(0x1f8)]}},_0x400a05=this[_0x4bdb04(0x2ec)][_0x4bdb04(0x192)](_0x509ce3,_0x298780,!0x1);if(_0x3e2440(_0x400a05))throw _0x400a05[_0x4bdb04(0x159)];_0x509ce3=_0x400a05[_0x4bdb04(0x2e9)];}return{..._0x29d1d8[_0x4bdb04(0x275)](_0xc3e641),'mutations':[_0x509ce3]};}[_0x38d7e2(0x2bd)](_0x1c16df){const _0x141f1d=_0x38d7e2,{unitID:_0x532650}=_0x1c16df,{history:_0x4c975c,collaboration:_0x213b7a}=this['_docStateChangeManagerService']['getStateCache'](_0x532650);if(_0x4c975c[_0x141f1d(0x112)]===0x0&&_0x213b7a[_0x141f1d(0x112)]===0x0)return;const _0x56acd9=[],_0x92f004=[];let _0x580cd8=_0x29d1d8[_0x141f1d(0x275)](_0x1c16df[_0x141f1d(0x11c)][0x0]),_0x41ee34=_0x29d1d8['deepClone'](_0x1c16df[_0x141f1d(0x11c)][0x0]);for(let _0x4ff5ad=_0x4c975c[_0x141f1d(0x112)]-0x1;_0x4ff5ad>=0x0;_0x4ff5ad--){const _0xda02c5={'id':_0x141f1d(0x160),'params':{'unitId':_0x4c975c[_0x4ff5ad][_0x141f1d(0x244)],..._0x4c975c[_0x4ff5ad]['undoState']}},_0x1f1735={'id':_0x141f1d(0x160),'params':{'unitId':_0x4c975c[_0x4ff5ad][_0x141f1d(0x244)],..._0x4c975c[_0x4ff5ad][_0x141f1d(0x1f8)]}},_0x43470b=this['_transformService'][_0x141f1d(0x192)](_0x580cd8,_0xda02c5,!0x1),_0x1f2f88=this[_0x141f1d(0x2ec)][_0x141f1d(0x192)](_0x41ee34,_0x1f1735,!0x1);if(_0x3e2440(_0x43470b))throw _0x43470b[_0x141f1d(0x159)];if(_0x3e2440(_0x1f2f88))throw _0x1f2f88[_0x141f1d(0x159)];_0x56acd9[_0x141f1d(0x121)]({..._0x4c975c[_0x4ff5ad],'undoState':_0x43470b[_0x141f1d(0x1ab)][_0x141f1d(0x119)],'redoState':_0x1f2f88[_0x141f1d(0x1ab)][_0x141f1d(0x119)]}),_0x580cd8=_0x43470b[_0x141f1d(0x2e9)],_0x41ee34=_0x1f2f88[_0x141f1d(0x2e9)];}_0x580cd8=_0x29d1d8[_0x141f1d(0x275)](_0x1c16df['mutations'][0x0]),_0x41ee34=_0x29d1d8[_0x141f1d(0x275)](_0x1c16df[_0x141f1d(0x11c)][0x0]);for(let _0x38f89a=_0x213b7a[_0x141f1d(0x112)]-0x1;_0x38f89a>=0x0;_0x38f89a--){const _0x3f4f98={'id':_0x141f1d(0x160),'params':{'unitId':_0x213b7a[_0x38f89a][_0x141f1d(0x244)],..._0x213b7a[_0x38f89a][_0x141f1d(0x23c)]}},_0x44afe1={'id':_0x141f1d(0x160),'params':{'unitId':_0x213b7a[_0x38f89a][_0x141f1d(0x244)],..._0x213b7a[_0x38f89a][_0x141f1d(0x1f8)]}},_0x4c8bfd=this[_0x141f1d(0x2ec)][_0x141f1d(0x192)](_0x580cd8,_0x3f4f98,!0x1),_0x17ffe5=this[_0x141f1d(0x2ec)][_0x141f1d(0x192)](_0x41ee34,_0x44afe1,!0x1);if(_0x3e2440(_0x4c8bfd))throw _0x4c8bfd[_0x141f1d(0x159)];if(_0x3e2440(_0x17ffe5))throw _0x17ffe5[_0x141f1d(0x159)];_0x92f004['unshift']({..._0x213b7a[_0x38f89a],'undoState':_0x4c8bfd[_0x141f1d(0x1ab)][_0x141f1d(0x119)],'redoState':_0x17ffe5[_0x141f1d(0x1ab)][_0x141f1d(0x119)]}),_0x580cd8=_0x4c8bfd[_0x141f1d(0x2e9)],_0x41ee34=_0x17ffe5['m1Prime'];}this[_0x141f1d(0x29a)][_0x141f1d(0x2d7)](_0x532650,{'history':_0x56acd9,'collaboration':_0x92f004});}};re=nn([Ce(0x0,_0x557815(_0x3005c3)),Ce(0x1,_0x4f46f8),Ce(0x2,_0x557815(_0x5839ad))],re);var rn=Object[_0x38d7e2(0x28f)],on=(_0x21091c,_0x51fe8f,_0x7445b3,_0x12f5fb)=>{const _0x9d123c=_0x38d7e2;for(var _0x28d34f=_0x12f5fb>0x1?void 0x0:_0x12f5fb?rn(_0x51fe8f,_0x7445b3):_0x51fe8f,_0x4df387=_0x21091c[_0x9d123c(0x112)]-0x1,_0x33f685;_0x4df387>=0x0;_0x4df387--)(_0x33f685=_0x21091c[_0x4df387])&&(_0x28d34f=_0x33f685(_0x28d34f)||_0x28d34f);return _0x28d34f;},tt=(_0x39d5fb,_0x1c8b44)=>(_0x437aed,_0x22e1ab)=>_0x1c8b44(_0x437aed,_0x22e1ab,_0x39d5fb);let oe=class{constructor(_0x413537,_0x3d1dcf){const _0x5f3833=_0x38d7e2;this['_injector']=_0x413537,this[_0x5f3833(0x2ec)]=_0x3d1dcf;}[_0x38d7e2(0x17b)](_0x4373df){const _0x29a564=_0x38d7e2;var _0x455039;const _0x29629d=this[_0x29a564(0x1d6)][_0x29a564(0x1a3)](_0xba2e38),_0x3e11c4=(_0x455039=_0x29629d['getDocRanges']())!=null?_0x455039:[];if(_0x3e11c4[_0x29a564(0x112)]===0x0)return;const _0x131d62=_0x4373df[_0x29a564(0x199)],_0x5d31e4=[{'id':_0x29a564(0x160),'params':{'unitId':_0x131d62,'actions':null,'textRanges':_0x3e11c4}}],_0x39c078=this[_0x29a564(0x2ec)][_0x29a564(0x1e7)](_0x4373df,_0x5d31e4);if(!_0x5b874d(_0x39c078))throw _0x39c078[_0x29a564(0x159)];const _0x8886dd=_0x39c078[_0x29a564(0x1ab)][0x0]['params'][_0x29a564(0x305)];Array[_0x29a564(0x138)](_0x8886dd)&&_0x8886dd['length']&&_0x29629d[_0x29a564(0x182)](_0x8886dd,{'unitId':_0x131d62,'subUnitId':_0x131d62},!0x1);}};oe=on([tt(0x0,_0x557815(_0x3005c3)),tt(0x1,_0x4f46f8)],oe);var an=Object[_0x38d7e2(0x28f)],cn=(_0x390eab,_0x40c7ad,_0x11c798,_0x3f0675)=>{const _0x4e29d5=_0x38d7e2;for(var _0x577a62=_0x3f0675>0x1?void 0x0:_0x3f0675?an(_0x40c7ad,_0x11c798):_0x40c7ad,_0x39022c=_0x390eab[_0x4e29d5(0x112)]-0x1,_0x429444;_0x39022c>=0x0;_0x39022c--)(_0x429444=_0x390eab[_0x39022c])&&(_0x577a62=_0x429444(_0x577a62)||_0x577a62);return _0x577a62;},U=(_0x2f8b51,_0x4a7648)=>(_0x854204,_0x2e85d9)=>_0x4a7648(_0x854204,_0x2e85d9,_0x2f8b51);let ae=class extends _0x707c0a{constructor(_0x2a1514,_0x2c0965,_0x406836,_0x2e81d6,_0x2ec5cd,_0x32cebf,_0x57d5af,_0x43c35b){const _0x10e3f3=_0x38d7e2;super(),_(this,_0x10e3f3(0x2b9),new _0x536e1a(_0x46195e['NOT_COLLAB'])),(this[_0x10e3f3(0x29a)]=_0x2a1514,this[_0x10e3f3(0x317)]=_0x2c0965,this[_0x10e3f3(0x1e8)]=_0x406836,this[_0x10e3f3(0x198)]=_0x2e81d6,this[_0x10e3f3(0x2fc)]=_0x2ec5cd,this[_0x10e3f3(0x14c)]=_0x32cebf,this[_0x10e3f3(0x142)]=_0x57d5af,this[_0x10e3f3(0x246)]=_0x43c35b,this[_0x10e3f3(0x263)]());}[_0x38d7e2(0x263)](){const _0x45a8f4=_0x38d7e2;this[_0x45a8f4(0x11b)](this['_collaborationController'][_0x45a8f4(0x2e4)][_0x45a8f4(0x12d)](_0x3a6622=>{const _0x596668=_0x45a8f4,_0x19b650=this['_docStateChangeManagerService']['docStateChange$'][_0x596668(0x12d)](_0x1355c7=>{const _0x4b44da=_0x596668;if(_0x1355c7==null)return;const {unitId:_0x4e5fbd,redoState:_0x3f6759,commandId:_0x2ac7ce}=_0x1355c7;if(_0x4e5fbd!==_0x3a6622[_0x4b44da(0x199)])return;const _0x4f1357={'id':_0x2ac7ce,'type':_0x57cb58[_0x4b44da(0x196)],'params':{'unitId':_0x4e5fbd,'actions':_0x3f6759[_0x4b44da(0x1f1)],'textRanges':null}};_0x3a6622[_0x4b44da(0x2b4)](_0x4f1357);});if(_0x3a6622[_0x596668(0x11b)](_0x19b650),_0x3a6622 instanceof _0xe2e4e7){const _0x3fe155={'onTransformIME':_0x55852d=>this[_0x596668(0x1e8)][_0x596668(0x24c)](_0x55852d),'onTransformState':_0x5eeae0=>this[_0x596668(0x198)][_0x596668(0x1c0)](_0x5eeae0),'onTransformSelections':_0x37b43e=>this[_0x596668(0x2fc)][_0x596668(0x17b)](_0x37b43e),'onSyncEditingCollabCursor':_0x1097de=>this[_0x596668(0x14c)][_0x596668(0x252)](_0x1097de),'onTransformRemoteChangesetByIMECache':_0x1b2cb0=>this['_docTransformIMECacheService'][_0x596668(0x2fa)](_0x1b2cb0),'onTransformRemoteChangesetByStateCache':_0x1e76c1=>this[_0x596668(0x198)][_0x596668(0x2fa)](_0x1e76c1)};_0x3a6622[_0x596668(0x1de)](_0x3fe155);}}));}};ae=cn([U(0x0,_0x557815(_0x5839ad)),U(0x1,_0x557815(_0x55ae1a)),U(0x2,_0x557815(ne)),U(0x3,_0x557815(re)),U(0x4,_0x557815(oe)),U(0x5,_0x557815(He)),U(0x6,_0x3f6d88),U(0x7,_0x557815(_0x13bfad))],ae);var ln=Object[_0x38d7e2(0x28f)],_n=(_0x3f9e29,_0x3ffa61,_0x1da727,_0x4eda33)=>{const _0x1d3873=_0x38d7e2;for(var _0x296cbb=_0x4eda33>0x1?void 0x0:_0x4eda33?ln(_0x3ffa61,_0x1da727):_0x3ffa61,_0xfa0fe=_0x3f9e29[_0x1d3873(0x112)]-0x1,_0xbeeb04;_0xfa0fe>=0x0;_0xfa0fe--)(_0xbeeb04=_0x3f9e29[_0xfa0fe])&&(_0x296cbb=_0xbeeb04(_0x296cbb)||_0x296cbb);return _0x296cbb;},Ee=(_0x347c69,_0x184c74)=>(_0x1352c5,_0x191e3d)=>_0x184c74(_0x1352c5,_0x191e3d,_0x347c69);let we=class extends _0x707c0a{constructor(_0x5dfdb9,_0x79ae56,_0x164d01){const _0x16c3e4=_0x38d7e2;super(),_(this,_0x16c3e4(0x18b),new Map()),_(this,_0x16c3e4(0x1d0),new Map()),_(this,_0x16c3e4(0x127),!0x1),(this[_0x16c3e4(0x1ce)]=_0x5dfdb9,this[_0x16c3e4(0x2a2)]=_0x79ae56,this[_0x16c3e4(0x1df)]=_0x164d01);}['disableLocalCache'](){const _0x24c640=_0x38d7e2;this[_0x24c640(0x127)]=!0x0;}['enableLocalCache'](){const _0x26d68=_0x38d7e2;this[_0x26d68(0x127)]=!0x1;}get[_0x38d7e2(0x1cd)](){const _0xa8af8d=_0x38d7e2;return this[_0xa8af8d(0x1d0)];}['dispose'](){const _0x3fcfe4=_0x38d7e2;this[_0x3fcfe4(0x11d)]()[_0x3fcfe4(0x313)](()=>super[_0x3fcfe4(0x2dd)]());}async[_0x38d7e2(0x181)](_0x507e93){const _0x4b848a=_0x38d7e2;return this['_disabled']?null:this[_0x4b848a(0x2a2)]['getItem'](_0x258c3a(_0x507e93));}async['saveOfflineData'](_0x11c6d1,_0x10df72){const _0x44ea89=_0x38d7e2;return!!this[_0x44ea89(0x2a2)][_0x44ea89(0x26c)](_0x11c6d1,_0x10df72);}['updateOfflineData'](_0x564236,_0x1d539a,_0x552f17,_0x8b9888){const _0x78c47e=_0x38d7e2,_0x2916c8=this[_0x78c47e(0x1df)][_0x78c47e(0x180)](_0x564236);this[_0x78c47e(0x18b)][_0x78c47e(0x225)](_0x564236,{'unitID':_0x564236,'type':_0x1d539a,'awaitingChangeset':_0x552f17,'mutations':_0x8b9888,'rev':_0x2916c8}),this['_saveTaskMap'][_0x78c47e(0x204)](_0x564236)||this['_scheduleSaving'](_0x564236);}[_0x38d7e2(0x223)](_0x28c255){const _0x46dc16=_0x38d7e2,_0xf7f467=this['_getSaveTimeout']();_0xf7f467===0x0?this[_0x46dc16(0x14f)](_0x28c255):this[_0x46dc16(0x1d0)][_0x46dc16(0x225)](_0x28c255,setTimeout(()=>this[_0x46dc16(0x14f)](_0x28c255),_0xf7f467));}[_0x38d7e2(0x17e)](){var _0x7ace60;return(_0x7ace60=this['_configService']['getConfig'](_0x107355))!=null?_0x7ace60:_0x52563d;}[_0x38d7e2(0x14f)](_0x74cb68){const _0x13ec41=_0x38d7e2,_0x1d49ad=this[_0x13ec41(0x1d0)]['get'](_0x74cb68);return _0x1d49ad!==void 0x0&&window['clearTimeout'](_0x1d49ad),this[_0x13ec41(0x2a2)][_0x13ec41(0x26c)](_0x258c3a(_0x74cb68),this[_0x13ec41(0x18b)][_0x13ec41(0x1a3)](_0x74cb68))['then'](()=>this[_0x13ec41(0x1d0)][_0x13ec41(0x1c5)](_0x74cb68));}async[_0x38d7e2(0x11d)](){const _0x1bf0c7=_0x38d7e2,_0x38fead=[];this[_0x1bf0c7(0x1d0)]['forEach']((_0x377753,_0x43d6b4)=>{const _0x6df581=_0x1bf0c7;window[_0x6df581(0x2f1)](_0x377753),_0x38fead[_0x6df581(0x1dc)](this['_saveCache'](_0x43d6b4)[_0x6df581(0x313)](()=>{const _0x51d38e=_0x6df581;this[_0x51d38e(0x1d0)][_0x51d38e(0x1c5)](_0x43d6b4);}));}),await Promise[_0x1bf0c7(0x123)](_0x38fead);}};we=_n([Ee(0x0,_0x4513b4),Ee(0x1,_0x49f86e),Ee(0x2,_0x557815(_0x16fac4))],we);class hn extends _0x3e73a6{constructor(){const _0x4c0883=_0x38d7e2;super(),_(this,_0x4c0883(0x28d)),this[_0x4c0883(0x28d)]=_0x43bbc8(window,_0x4c0883(0x230))[_0x4c0883(0x115)](_0x23d61a(this[_0x4c0883(0x250)]),_0x3ccf81(0x1),_0x2a0d6c(void 0x0));}[_0x38d7e2(0x1b4)](_0x14be98,_0x3e86f1,_0x345006=!0x1){const _0x3984a4=_0x38d7e2,_0x51976d=new URL(window[_0x3984a4(0x280)][_0x3984a4(0x2b5)]);_0x51976d[_0x3984a4(0x2dc)]['set'](_0x14be98,_0x3e86f1),_0x345006?window[_0x3984a4(0x211)][_0x3984a4(0x110)]('','',_0x51976d[_0x3984a4(0x24e)]()):window[_0x3984a4(0x211)][_0x3984a4(0x18d)]('','',_0x51976d[_0x3984a4(0x24e)]());}[_0x38d7e2(0x16c)](_0x23f51a,_0x25a159=!0x1){const _0x32771c=_0x38d7e2,_0xa5a073=new URL(window[_0x32771c(0x280)][_0x32771c(0x2b5)]);_0xa5a073['searchParams'][_0x32771c(0x1c5)](_0x23f51a),_0x25a159?window['history'][_0x32771c(0x110)]('','',_0xa5a073[_0x32771c(0x24e)]()):window[_0x32771c(0x211)][_0x32771c(0x18d)]('','',_0xa5a073['toString']());}[_0x38d7e2(0x168)](_0x39f477){const _0xc03d37=_0x38d7e2;var _0x34e153;return(_0x34e153=new URL(window[_0xc03d37(0x280)][_0xc03d37(0x2b5)])[_0xc03d37(0x2dc)][_0xc03d37(0x1a3)](_0x39f477))!=null?_0x34e153:void 0x0;}}var un=Object[_0x38d7e2(0x1fa)],dn=Object[_0x38d7e2(0x28f)],fn=(_0x3170e0,_0x24b391,_0x36ee7e)=>_0x24b391 in _0x3170e0?un(_0x3170e0,_0x24b391,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36ee7e}):_0x3170e0[_0x24b391]=_0x36ee7e,Sn=(_0x139b71,_0x7b34f0,_0x2cf365,_0x182218)=>{const _0x7331c3=_0x38d7e2;for(var _0x5c3dc2=_0x182218>0x1?void 0x0:_0x182218?dn(_0x7b34f0,_0x2cf365):_0x7b34f0,_0x332f6b=_0x139b71[_0x7331c3(0x112)]-0x1,_0x268c9c;_0x332f6b>=0x0;_0x332f6b--)(_0x268c9c=_0x139b71[_0x332f6b])&&(_0x5c3dc2=_0x268c9c(_0x5c3dc2)||_0x5c3dc2);return _0x5c3dc2;},Oe=(_0x2f107b,_0x373b5a)=>(_0x58ef06,_0x54e171)=>_0x373b5a(_0x58ef06,_0x54e171,_0x2f107b),mn=(_0x22d43c,_0x2cf567,_0x437478)=>fn(_0x22d43c,_0x2cf567+'',_0x437478);const gn=_0x38d7e2(0x1bb);let Ae=class extends _0x27c85b{constructor(_0x5f28a5=et,_0x1d5eae,_0x5d7b43,_0xe9a48f){const _0x1c151a=_0x38d7e2;super(),this['_config']=_0x5f28a5,this[_0x1c151a(0x187)]=_0x1d5eae,this[_0x1c151a(0x1d6)]=_0x5d7b43,this['_configService']=_0xe9a48f;const {..._0x434df5}=_0x500d8e({},et,this[_0x1c151a(0x2fd)]);this[_0x1c151a(0x1ce)][_0x1c151a(0x2b3)](Zi,_0x434df5);}[_0x38d7e2(0x311)](){const _0x3d3c05=_0x38d7e2;this[_0x3d3c05(0x2ee)](),this[_0x3d3c05(0x1ef)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x38d7e2(0x2ee)](){const _0x2cf401=_0x38d7e2;var _0x3e2224;const _0xea1cc7=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x5110ee,{'useClass':_0x43754c}],[_0x1d483c,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x48fa39(this[_0x2cf401(0x1d6)],_0x41f0a3(_0xea1cc7,(_0x3e2224=this['_config'])==null?void 0x0:_0x3e2224[_0x2cf401(0x135)]));}[_0x38d7e2(0x13c)](){const _0x4fc460=_0x38d7e2;this[_0x4fc460(0x11b)](this[_0x4fc460(0x187)][_0x4fc460(0x2a4)](_0x2c7da9['UNIVER_DOC'],[Pe])),this[_0x4fc460(0x11b)](this[_0x4fc460(0x187)][_0x4fc460(0x2a4)](_0x2c7da9['UNIVER_SHEET'],[Le]));}[_0x38d7e2(0x1ef)](){const _0x3635a9=_0x38d7e2;_0x44ea04(this[_0x3635a9(0x1d6)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x38d7e2(0x17d),gn),Ae=Sn([_0x4c7e10(_0x7e8be4),Oe(0x1,_0x34a027),Oe(0x2,_0x557815(_0x3005c3)),Oe(0x3,_0x4513b4)],Ae);var In=Object[_0x38d7e2(0x28f)],vn=(_0x55d2fb,_0x53af2b,_0x51d77d,_0x1fb37f)=>{for(var _0x144ddb=_0x1fb37f>0x1?void 0x0:_0x1fb37f?In(_0x53af2b,_0x51d77d):_0x53af2b,_0x1112ec=_0x55d2fb['length']-0x1,_0xb1c020;_0x1112ec>=0x0;_0x1112ec--)(_0xb1c020=_0x55d2fb[_0x1112ec])&&(_0x144ddb=_0xb1c020(_0x144ddb)||_0x144ddb);return _0x144ddb;},K=(_0x3ebace,_0x2f4196)=>(_0x597fc8,_0xef8aa)=>_0x2f4196(_0x597fc8,_0xef8aa,_0x3ebace);let st=class extends _0x4c21ab{constructor(_0xabb9d0,_0x52a178,_0x5909cf,_0x165394,_0x229ede){super(_0xabb9d0,_0x52a178,_0x5909cf,_0x165394,_0x229ede);}async[_0x38d7e2(0x13b)](_0x1e6b28){const _0x1712bc=_0x38d7e2,_0x5eece4=await this[_0x1712bc(0x248)](),_0x58445c=this[_0x1712bc(0x164)](_0x1e6b28,_0x5eece4);return this[_0x1712bc(0x307)](_0x58445c);}[_0x38d7e2(0x164)](_0x58fe09,_0x11583){const _0x5e274b=_0x38d7e2,_0x418285=typeof window>'u'?new URL(_0x58fe09):new URL(_0x58fe09,window[_0x5e274b(0x280)][_0x5e274b(0x2f0)]);_0x418285[_0x5e274b(0x2dc)]['set']('sessionTicket',_0x11583);const _0x496450=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5e274b(0x280)]['search']);return _0x496450[_0x5e274b(0x1a3)](_0x5e274b(0x2cb))&&_0x418285[_0x5e274b(0x2dc)][_0x5e274b(0x225)](_0x5e274b(0x2cb),_0x496450[_0x5e274b(0x1a3)](_0x5e274b(0x2cb))),_0x418285['toString']();}async[_0x38d7e2(0x248)](){const _0x247618=_0x38d7e2;var _0x46533b,_0x106a4c,_0x581ca2;const _0x3d9d06=this[_0x247618(0x1ce)][_0x247618(0x1d7)](_0x1775b6),_0x41caee=(_0x46533b=_0x3d9d06==null?void 0x0:_0x3d9d06['wsSessionTicketUrl'])!=null?_0x46533b:_0x359702;return(_0x581ca2=(_0x106a4c=(await this[_0x247618(0x20c)][_0x247618(0x1a3)](_0x41caee,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x106a4c[_0x247618(0x2e1)])!=null?_0x581ca2:'';}};st=vn([K(0x0,_0x557815(_0x3005c3)),K(0x1,_0x557815(_0x5aecca)),K(0x2,_0x4513b4),K(0x3,_0x27a775),K(0x4,_0x232d69)],st);const it=0x7530,nt=_0x38d7e2(0x157);class jn extends _0x707c0a{constructor(){const _0x46f1c6=_0x38d7e2;super(),_(this,_0x46f1c6(0x152),_0x362d49()),_(this,'_selfUnitIDs',new Set()),_(this,_0x46f1c6(0x15b),new Map()),_(this,_0x46f1c6(0x1fd),null),_(this,_0x46f1c6(0x191),new Map()),_(this,_0x46f1c6(0x286),new Map()),this[_0x46f1c6(0x227)]();}['dispose'](){const _0x4d9166=_0x38d7e2;super[_0x4d9166(0x2dd)](),this[_0x4d9166(0x191)][_0x4d9166(0x281)]((_0x161d04,_0x277c25)=>this[_0x4d9166(0x20f)](_0x277c25)),this[_0x4d9166(0x1fd)]&&window['clearInterval'](this[_0x4d9166(0x1fd)]);}[_0x38d7e2(0x2a9)](_0x28ee1b){const _0x194d11=_0x38d7e2;return this[_0x194d11(0x283)](_0x28ee1b)[_0x194d11(0x115)](_0x27af13());}[_0x38d7e2(0x2e2)](_0x20b5d6){const _0x2ba156=_0x38d7e2;this[_0x2ba156(0x31c)][_0x2ba156(0x271)]===0x0&&this[_0x2ba156(0x15d)](),this[_0x2ba156(0x31c)]['add'](_0x20b5d6),this[_0x2ba156(0x219)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x20b5d6],'isForwarded':!0x1});}['disposeUnit'](_0x5b3ad8){const _0x27c75f=_0x38d7e2;this[_0x27c75f(0x31c)][_0x27c75f(0x1c5)](_0x5b3ad8),this[_0x27c75f(0x31c)][_0x27c75f(0x271)]===0x0&&this[_0x27c75f(0x1fd)]&&window[_0x27c75f(0x264)](this[_0x27c75f(0x1fd)]);}[_0x38d7e2(0x227)](){const _0x7bcbf=_0x38d7e2;this['disposeWithMe'](_0x5b73b8(_0x43bbc8(window,_0x7bcbf(0x24b))['subscribe'](_0x1d26be=>{const _0x53003=_0x7bcbf;if(_0x1d26be['key']!==nt||!_0x1d26be[_0x53003(0x1d3)])return;const _0x163186=JSON[_0x53003(0x1d1)](_0x1d26be['newValue']);this['_handleEvent'](_0x163186);}))),window[_0x7bcbf(0x2d2)](_0x7bcbf(0x146),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x7bcbf(0x19c)](this['_selfUnitIDs'])}));}[_0x38d7e2(0x28b)](_0x193a9a){const _0x15f284=_0x38d7e2;switch(_0x193a9a['type']){case 0x0:this[_0x15f284(0x2b0)](_0x193a9a);break;case 0x1:this[_0x15f284(0x2aa)](_0x193a9a);break;case 0x2:this['_handleHeartbeatEvent'](_0x193a9a);break;}}['_handleJoinEvent'](_0x1598f6){const _0x3666cd=_0x38d7e2,{unitIDs:_0x123894,memberID:_0xba6f85,isForwarded:_0x524aeb}=_0x1598f6;_0x123894[_0x3666cd(0x281)](_0x144817=>{const _0x5a4068=_0x3666cd;if(!_0x524aeb&&this[_0x5a4068(0x15b)][_0x5a4068(0x204)](_0x144817)&&this['_ensureSubject'](_0x144817)[_0x5a4068(0x1a6)](_0x4e0765[_0x5a4068(0x151)]),!this[_0x5a4068(0x15b)][_0x5a4068(0x204)](_0x144817)||!this[_0x5a4068(0x15b)][_0x5a4068(0x1a3)](_0x144817)[_0x5a4068(0x204)](_0xba6f85)){const _0x315e64=this[_0x5a4068(0x15b)][_0x5a4068(0x1a3)](_0x144817)||new Set();_0x315e64[_0x5a4068(0x282)](_0xba6f85),this[_0x5a4068(0x15b)][_0x5a4068(0x225)](_0x144817,_0x315e64),this[_0x5a4068(0x30b)](_0xba6f85);}}),_0x524aeb||this['_send']({'type':0x0,'memberID':this[_0x3666cd(0x152)],'unitIDs':[...this[_0x3666cd(0x31c)]],'isForwarded':!0x0});}[_0x38d7e2(0x30b)](_0x5089d6){const _0x2511ee=_0x38d7e2;this[_0x2511ee(0x20f)](_0x5089d6);const _0x1c0143=window['setTimeout'](()=>{const _0x100cb9=_0x2511ee;this[_0x100cb9(0x15b)][_0x100cb9(0x281)](_0x53c1d1=>{const _0x33458e=_0x100cb9;_0x53c1d1[_0x33458e(0x1c5)](_0x5089d6);});},it*0x2);this['_clearOtherTimers'][_0x2511ee(0x225)](_0x5089d6,_0x1c0143);}['_removeClearOtherTimer'](_0x4f2f75){const _0x5e2a81=_0x38d7e2;if(this[_0x5e2a81(0x191)][_0x5e2a81(0x204)](_0x4f2f75)){const _0x4fa5fd=this[_0x5e2a81(0x191)][_0x5e2a81(0x1a3)](_0x4f2f75);_0x4fa5fd&&window[_0x5e2a81(0x2f1)](_0x4fa5fd),this[_0x5e2a81(0x191)][_0x5e2a81(0x225)](_0x4f2f75,null);}}[_0x38d7e2(0x2aa)](_0x12a702){const _0xd413fb=_0x38d7e2,{memberID:_0x27776a,unitIDs:_0xd64ef4}=_0x12a702;_0xd64ef4[_0xd413fb(0x281)](_0x2416b6=>{const _0x460538=_0xd413fb;var _0x17b0e6;const _0x408a41=this[_0x460538(0x15b)][_0x460538(0x1a3)](_0x2416b6);_0x408a41&&(_0x408a41[_0x460538(0x1c5)](_0x27776a),(_0x17b0e6=this['_ensureSubject'](_0x2416b6))==null||_0x17b0e6['next'](_0x408a41[_0x460538(0x271)]===0x0?_0x4e0765['NO_OTHER_CLIENTS_EDITING']:_0x4e0765[_0x460538(0x151)]));}),this[_0xd413fb(0x20f)](_0x27776a);}['_handleHeartbeatEvent'](_0x4ac914){const _0xfac8c3=_0x38d7e2;this[_0xfac8c3(0x30b)](_0x4ac914[_0xfac8c3(0x312)]);}[_0x38d7e2(0x219)](_0x25d1b5){const _0x114b71=_0x38d7e2;localStorage['setItem'](nt,JSON[_0x114b71(0x30a)](_0x25d1b5));}[_0x38d7e2(0x15d)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x54fff8=_0x5ea0;this[_0x54fff8(0x219)]({'type':0x2,'memberID':this[_0x54fff8(0x152)]});},it);}['_ensureSubject'](_0x4753fd){const _0x27854e=_0x38d7e2;return this[_0x27854e(0x286)][_0x27854e(0x204)](_0x4753fd)||this['_unitStatus'][_0x27854e(0x225)](_0x4753fd,new _0x536e1a(_0x4e0765[_0x27854e(0x11e)])),this[_0x27854e(0x286)][_0x27854e(0x1a3)](_0x4753fd);}}var Mt=(_0x1011be=>(_0x1011be[_0x1011be[_0x38d7e2(0x116)]=0x0]=_0x38d7e2(0x116),_0x1011be[_0x1011be['OK']=0x1]='OK',_0x1011be[_0x1011be[_0x38d7e2(0x136)]=0x2]=_0x38d7e2(0x136),_0x1011be[_0x1011be[_0x38d7e2(0x1ea)]=0x3]=_0x38d7e2(0x1ea),_0x1011be[_0x1011be[_0x38d7e2(0x22b)]=0x4]=_0x38d7e2(0x22b),_0x1011be[_0x1011be[_0x38d7e2(0x235)]=0x5]=_0x38d7e2(0x235),_0x1011be[_0x1011be[_0x38d7e2(0x197)]=0x6]=_0x38d7e2(0x197),_0x1011be[_0x1011be['INVALID_ARGUMENT']=0x7]=_0x38d7e2(0x231),_0x1011be[_0x1011be['TOO_MANY_REQUESTS']=0x8]=_0x38d7e2(0x132),_0x1011be[_0x1011be[_0x38d7e2(0x226)]=0x9]=_0x38d7e2(0x226),_0x1011be[_0x1011be['LOGIN_FAILED']=0xa]=_0x38d7e2(0x13d),_0x1011be[_0x1011be['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x38d7e2(0x134),_0x1011be[_0x1011be[_0x38d7e2(0x254)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1011be[_0x1011be[_0x38d7e2(0x2e7)]=0x1772]=_0x38d7e2(0x2e7),_0x1011be[_0x1011be[_0x38d7e2(0x23f)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x1011be[_0x1011be[_0x38d7e2(0x296)]=0x1b59]='APPLY_REJECT',_0x1011be[_0x1011be['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x38d7e2(0x2d1),_0x1011be[_0x1011be['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1011be[_0x1011be[_0x38d7e2(0x14e)]=0x1b5c]=_0x38d7e2(0x14e),_0x1011be[_0x1011be['APPLY_DUPLICATED']=0x1b5d]=_0x38d7e2(0x1a4),_0x1011be[_0x1011be[_0x38d7e2(0x2ad)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1011be[_0x1011be[_0x38d7e2(0x2a6)]=0x2329]=_0x38d7e2(0x2a6),_0x1011be[_0x1011be['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x38d7e2(0x2b2),_0x1011be[_0x1011be[_0x38d7e2(0x2f2)]=0x232b]=_0x38d7e2(0x2f2),_0x1011be[_0x1011be[_0x38d7e2(0x1e4)]=0x232c]=_0x38d7e2(0x1e4),_0x1011be[_0x1011be['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1011be[_0x1011be[_0x38d7e2(0x13a)]=0x2711]=_0x38d7e2(0x13a),_0x1011be[_0x1011be[_0x38d7e2(0x1ac)]=0x2712]=_0x38d7e2(0x1ac),_0x1011be[_0x1011be['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x38d7e2(0x1b7),_0x1011be[_0x1011be[_0x38d7e2(0x118)]=0x2714]=_0x38d7e2(0x118),_0x1011be[_0x1011be[_0x38d7e2(0x19d)]=0x271a]=_0x38d7e2(0x19d),_0x1011be[_0x1011be[_0x38d7e2(0x26b)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1011be[_0x1011be['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x38d7e2(0x22f),_0x1011be[_0x1011be['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x38d7e2(0x289),_0x1011be[_0x1011be['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x38d7e2(0x221),_0x1011be[_0x1011be['YUUMI_AI_RUN_FAILED']=0x271f]=_0x38d7e2(0x16a),_0x1011be[_0x1011be[_0x38d7e2(0x232)]=0x2af9]=_0x38d7e2(0x232),_0x1011be[_0x1011be['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x38d7e2(0x1ff),_0x1011be[_0x1011be[_0x38d7e2(0x2df)]=0x2ee2]=_0x38d7e2(0x2df),_0x1011be[_0x1011be[_0x38d7e2(0x154)]=0x2ee3]=_0x38d7e2(0x154),_0x1011be[_0x1011be['USER_NOT_INVITED_CODE']=0x2ee4]=_0x38d7e2(0x200),_0x1011be[_0x1011be[_0x38d7e2(0x2c2)]=0x2ee5]=_0x38d7e2(0x2c2),_0x1011be[_0x1011be['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x38d7e2(0x19f),_0x1011be[_0x1011be[_0x38d7e2(0x28e)]=0x32ca]=_0x38d7e2(0x28e),_0x1011be[_0x1011be[_0x38d7e2(0x261)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x1011be[_0x1011be['UNRECOGNIZED']=-0x1]=_0x38d7e2(0x163),_0x1011be))(Mt||{}),pn=Object[_0x38d7e2(0x28f)],Cn=(_0x129684,_0xd39dc2,_0x117ece,_0x2e9ffd)=>{for(var _0x5adb24=_0x2e9ffd>0x1?void 0x0:_0x2e9ffd?pn(_0xd39dc2,_0x117ece):_0xd39dc2,_0x48ffc9=_0x129684['length']-0x1,_0x1c7ccc;_0x48ffc9>=0x0;_0x48ffc9--)(_0x1c7ccc=_0x129684[_0x48ffc9])&&(_0x5adb24=_0x1c7ccc(_0x5adb24)||_0x5adb24);return _0x5adb24;},be=(_0x283b6f,_0x2a72b0)=>(_0x59f99f,_0x41a5f0)=>_0x2a72b0(_0x59f99f,_0x41a5f0,_0x283b6f);let rt=class extends _0x707c0a{constructor(_0x4053de,_0x58d99f,_0x134317){const _0x48bbd5=_0x38d7e2;super(),this[_0x48bbd5(0x202)]=_0x4053de,this['_httpService']=_0x58d99f,this[_0x48bbd5(0x1ce)]=_0x134317;}async[_0x38d7e2(0x27a)](_0x2d6da6,_0x574908,_0x5999d1,..._0x237bd3){const _0x421818=_0x38d7e2;var _0x5cb08b,_0x2bc0aa,_0x3988fb,_0x398fe8;const _0x356b9d=this[_0x421818(0x202)]['getFocusedUnit']();if(!_0x356b9d)throw new Error(_0x421818(0x1a1));const _0x3c4783=((_0x5cb08b=this[_0x421818(0x1ce)]['getConfig'](_0x1d9771))!=null?_0x5cb08b:_0x3a67b5)+'/'+_0x2d6da6+_0x421818(0x124)+_0x574908,_0x1f126f=new URL(window[_0x421818(0x280)][_0x421818(0x2b5)]),_0x579188={'scriptId':_0x2d6da6,'runId':(_0x2bc0aa=_0x1f126f[_0x421818(0x2dc)][_0x421818(0x1a3)](_0x421818(0x2cb)))!=null?_0x2bc0aa:'','function':_0x574908,'unitId':_0x356b9d[_0x421818(0x2da)](),'argsOfFunction':JSON[_0x421818(0x30a)](_0x237bd3),'invokeId':(_0x3988fb=_0x5999d1[_0x421818(0x158)])!=null?_0x3988fb:'','executionId':(_0x398fe8=_0x5999d1[_0x421818(0x318)])!=null?_0x398fe8:''};try{const _0x5e332a=await this[_0x421818(0x20c)]['post'](_0x3c4783,{'body':_0x579188});return _0x5e332a[_0x421818(0x236)][_0x421818(0x159)]&&_0x5e332a[_0x421818(0x236)][_0x421818(0x159)][_0x421818(0x12e)]!==Mt['OK']?'Failed':_0x5e332a['body'][_0x421818(0x1e6)];}catch{return _0x421818(0x270);}}};rt=Cn([be(0x0,_0x73586c),be(0x1,_0x557815(_0x5aecca)),be(0x2,_0x4513b4)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- function _0x2f8b(){const _0x2be4fe=['You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Click\x20to\x20Reconnect','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1106252LaDCZi','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','2004410zglaif','175446EdGYtM','1337574BWKUWL','Edit\x20conflicts','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','4087rHhuRF','9cyZfuX','Connection\x20failed,\x20please\x20check\x20your\x20network.','5MlSDcH','Collaboration\x20Conflict','Local\x20file','Authentication\x20Error','3309352AnYPOZ','Synced','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','667530dhcMQD','Syncing\x20server\x20data...','6ldVeGv'];_0x2f8b=function(){return _0x2be4fe;};return _0x2f8b();}const _0x499fd3=_0x1a75;function _0x1a75(_0x43d193,_0x315ed3){const _0x2f8b0c=_0x2f8b();return _0x1a75=function(_0x1a7571,_0x15f6c1){_0x1a7571=_0x1a7571-0x153;let _0x4f5ffb=_0x2f8b0c[_0x1a7571];return _0x4f5ffb;},_0x1a75(_0x43d193,_0x315ed3);}(function(_0xf6e537,_0x2d8232){const _0x690225=_0x1a75,_0xb60c6d=_0xf6e537();while(!![]){try{const _0x361282=parseInt(_0x690225(0x169))/0x1+parseInt(_0x690225(0x15e))/0x2*(parseInt(_0x690225(0x165))/0x3)+-parseInt(_0x690225(0x162))/0x4+parseInt(_0x690225(0x154))/0x5*(-parseInt(_0x690225(0x15c))/0x6)+-parseInt(_0x690225(0x166))/0x7+parseInt(_0x690225(0x158))/0x8+parseInt(_0x690225(0x16a))/0x9*(parseInt(_0x690225(0x164))/0xa);if(_0x361282===_0x2d8232)break;else _0xb60c6d['push'](_0xb60c6d['shift']());}catch(_0x34c675){_0xb60c6d['push'](_0xb60c6d['shift']());}}}(_0x2f8b,0x346d7));const e={'collab-client':{'tooltip':{'reconnect':_0x499fd3(0x160)}},'collabStatus':{'fetchMiss':_0x499fd3(0x15d),'conflict':_0x499fd3(0x167),'notCollab':_0x499fd3(0x156),'synced':_0x499fd3(0x159),'syncing':'Syncing...','offline':_0x499fd3(0x161)},'session':{'connection-failed':_0x499fd3(0x153),'will-retry':_0x499fd3(0x168),'room-full':_0x499fd3(0x15b),'collaboration-timeout':_0x499fd3(0x163)},'conflict':{'title':_0x499fd3(0x155),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x499fd3(0x157),'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':_0x499fd3(0x15f)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x499fd3(0x15a)}};export{e as default};
1
+ const _0x173b23=_0xd65e;(function(_0x1a656d,_0x55497e){const _0x465102=_0xd65e,_0x4fbc9c=_0x1a656d();while(!![]){try{const _0x7441bc=-parseInt(_0x465102(0xf3))/0x1+-parseInt(_0x465102(0xf6))/0x2+-parseInt(_0x465102(0xe8))/0x3*(-parseInt(_0x465102(0xe7))/0x4)+parseInt(_0x465102(0xef))/0x5*(parseInt(_0x465102(0xee))/0x6)+parseInt(_0x465102(0xfb))/0x7+parseInt(_0x465102(0xf2))/0x8+-parseInt(_0x465102(0xf0))/0x9*(parseInt(_0x465102(0xf8))/0xa);if(_0x7441bc===_0x55497e)break;else _0x4fbc9c['push'](_0x4fbc9c['shift']());}catch(_0xf02061){_0x4fbc9c['push'](_0x4fbc9c['shift']());}}}(_0x3f5e,0x9d19b));function _0xd65e(_0x3643aa,_0x4abaec){const _0x3f5e8e=_0x3f5e();return _0xd65e=function(_0xd65ece,_0x33929f){_0xd65ece=_0xd65ece-0xe6;let _0x4d37f=_0x3f5e8e[_0xd65ece];return _0x4d37f;},_0xd65e(_0x3643aa,_0x4abaec);}const e={'collab-client':{'tooltip':{'reconnect':_0x173b23(0xf9)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x173b23(0xf5),'notCollab':_0x173b23(0xf1),'synced':_0x173b23(0xe9),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x173b23(0xeb),'room-full':_0x173b23(0xea),'collaboration-timeout':_0x173b23(0xe6)},'conflict':{'title':_0x173b23(0xec),'content':_0x173b23(0xf4)},'permission':{'title':_0x173b23(0xed),'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':_0x173b23(0xfa)},'auth':{'needGotoLoginAlert':_0x173b23(0xf7)}};export{e as default};function _0x3f5e(){const _0x211f51=['Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Collaboration\x20Conflict','Authentication\x20Error','18ZcVjvf','1139430TaTnQD','5699979RvlBTW','Local\x20file','5653232OQbYXe','550754QdgsBA','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.','Edit\x20conflicts','843914odExNy','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','20mZheQv','Click\x20to\x20Reconnect','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','8527260ppXyFs','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','4rhQcGX','823092oQuEMa','Synced','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.'];_0x3f5e=function(){return _0x211f51;};return _0x3f5e();}
@@ -1 +1 @@
1
- function _0x5bb3(){const _0x5a1cdb=['6317352expxmr','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','376416dOLBrM','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','13836udtLfz','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','1342BywntL','210TFkzQJ','1843580vkoZtW','یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','در\x20حال\x20همگام\x20سازی...','2380knuNxn','تداخل\x20همکاری','287484eWDjcE','همگام\x20سازی','168936jFxOsZ','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','75tJUzKh','132498RdeAHL','خطای\x20اعتبارسنجی','16YhKyaK'];_0x5bb3=function(){return _0x5a1cdb;};return _0x5bb3();}function _0x1a89(_0x5157dd,_0x892fdb){const _0x5bb35e=_0x5bb3();return _0x1a89=function(_0x1a8946,_0x45f87e){_0x1a8946=_0x1a8946-0xd8;let _0x53749a=_0x5bb35e[_0x1a8946];return _0x53749a;},_0x1a89(_0x5157dd,_0x892fdb);}const _0x36949a=_0x1a89;(function(_0x5913c0,_0x571cf4){const _0x9b884b=_0x1a89,_0x2a5f24=_0x5913c0();while(!![]){try{const _0xe3ca72=-parseInt(_0x9b884b(0xe8))/0x1+parseInt(_0x9b884b(0xec))/0x2*(parseInt(_0x9b884b(0xeb))/0x3)+parseInt(_0x9b884b(0xee))/0x4*(parseInt(_0x9b884b(0xdf))/0x5)+parseInt(_0x9b884b(0xda))/0x6*(parseInt(_0x9b884b(0xe4))/0x7)+-parseInt(_0x9b884b(0xef))/0x8+-parseInt(_0x9b884b(0xd8))/0x9*(-parseInt(_0x9b884b(0xde))/0xa)+-parseInt(_0x9b884b(0xdd))/0xb*(parseInt(_0x9b884b(0xe6))/0xc);if(_0xe3ca72===_0x571cf4)break;else _0x2a5f24['push'](_0x2a5f24['shift']());}catch(_0x130940){_0x2a5f24['push'](_0x2a5f24['shift']());}}}(_0x5bb3,0xdeaca));const o={'collab-client':{'tooltip':{'reconnect':_0x36949a(0xdb)}},'collabStatus':{'fetchMiss':_0x36949a(0xea),'conflict':'تداخل\x20ویرایش','notCollab':'پرونده\x20محلی','synced':_0x36949a(0xe7),'syncing':_0x36949a(0xe3),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':_0x36949a(0xe2),'will-retry':_0x36949a(0xe1),'room-full':_0x36949a(0xf0),'collaboration-timeout':_0x36949a(0xe9)},'conflict':{'title':_0x36949a(0xe5),'content':_0x36949a(0xe0)},'permission':{'title':_0x36949a(0xed),'content':'اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'collaboration':{'single-unit':{'warning':_0x36949a(0xf1)},'closeRoom':_0x36949a(0xd9)},'auth':{'needGotoLoginAlert':_0x36949a(0xdc)}};export{o as default};
1
+ const _0x4508a9=_0x2bb8;(function(_0x54f6b4,_0x2c622f){const _0x51f47e=_0x2bb8,_0x128562=_0x54f6b4();while(!![]){try{const _0x14ee67=parseInt(_0x51f47e(0xdc))/0x1*(parseInt(_0x51f47e(0xd5))/0x2)+parseInt(_0x51f47e(0xd4))/0x3+parseInt(_0x51f47e(0xce))/0x4*(parseInt(_0x51f47e(0xd3))/0x5)+parseInt(_0x51f47e(0xcc))/0x6+parseInt(_0x51f47e(0xdd))/0x7*(-parseInt(_0x51f47e(0xde))/0x8)+-parseInt(_0x51f47e(0xd9))/0x9+-parseInt(_0x51f47e(0xd0))/0xa;if(_0x14ee67===_0x2c622f)break;else _0x128562['push'](_0x128562['shift']());}catch(_0x3d481d){_0x128562['push'](_0x128562['shift']());}}}(_0x526c,0x6e2c3));const o={'collab-client':{'tooltip':{'reconnect':_0x4508a9(0xd7)}},'collabStatus':{'fetchMiss':_0x4508a9(0xe0),'conflict':'تداخل\x20ویرایش','notCollab':_0x4508a9(0xd6),'synced':_0x4508a9(0xcb),'syncing':'در\x20حال\x20همگام\x20سازی...','offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':_0x4508a9(0xd8),'will-retry':_0x4508a9(0xda),'room-full':'اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','collaboration-timeout':'سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.'},'conflict':{'title':_0x4508a9(0xca),'content':_0x4508a9(0xdb)},'permission':{'title':_0x4508a9(0xcf),'content':_0x4508a9(0xd2)},'collaboration':{'single-unit':{'warning':_0x4508a9(0xd1)},'closeRoom':_0x4508a9(0xdf)},'auth':{'needGotoLoginAlert':_0x4508a9(0xcd)}};export{o as default};function _0x2bb8(_0x409080,_0x106674){const _0x526cc6=_0x526c();return _0x2bb8=function(_0x2bb88f,_0x4a1fe3){_0x2bb88f=_0x2bb88f-0xca;let _0x2e986b=_0x526cc6[_0x2bb88f];return _0x2e986b;},_0x2bb8(_0x409080,_0x106674);}function _0x526c(){const _0x63b04b=['8nEHaWQ','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','تداخل\x20همکاری','همگام\x20سازی','3968874GZPmwu','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','904XvZusW','خطای\x20اعتبارسنجی','612050fYrnGr','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','4645QIhIGP','658134UVyMzV','4174sNxNKD','پرونده\x20محلی','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','5735952EenjNO','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','220vcRhBL','2801057XrZFmX'];_0x526c=function(){return _0x63b04b;};return _0x526c();}