@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504131606 → 0.6.10-nightly.202504151606

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 _0x50820e=_0x844d;(function(_0x310b3c,_0x2f80ff){const _0x5ac71f=_0x844d,_0x2acd19=_0x310b3c();while(!![]){try{const _0xebfbeb=-parseInt(_0x5ac71f(0x20d))/0x1+parseInt(_0x5ac71f(0x225))/0x2*(-parseInt(_0x5ac71f(0x1b6))/0x3)+-parseInt(_0x5ac71f(0x1c7))/0x4*(parseInt(_0x5ac71f(0x1bc))/0x5)+-parseInt(_0x5ac71f(0x1b9))/0x6*(parseInt(_0x5ac71f(0x1d5))/0x7)+parseInt(_0x5ac71f(0x28e))/0x8+-parseInt(_0x5ac71f(0x231))/0x9+parseInt(_0x5ac71f(0x2e6))/0xa*(parseInt(_0x5ac71f(0x237))/0xb);if(_0xebfbeb===_0x2f80ff)break;else _0x2acd19['push'](_0x2acd19['shift']());}catch(_0x1a537a){_0x2acd19['push'](_0x2acd19['shift']());}}}(_0x5450,0xb7a28));var Bt=Object['defineProperty'],kt=(_0x19445a,_0xcc3000,_0x439523)=>_0xcc3000 in _0x19445a?Bt(_0x19445a,_0xcc3000,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x439523}):_0x19445a[_0xcc3000]=_0x439523,_=(_0x4f2ef0,_0x745bd7,_0x2e1c23)=>kt(_0x4f2ef0,typeof _0x745bd7!=_0x50820e(0x171)?_0x745bd7+'':_0x745bd7,_0x2e1c23);import{MemberService as _0xb6ef82,SessionStatus as _0x38eed1,CollaborationSessionService as _0x35be17,CollaborationStatus as _0x2b5334,CollaborationController as _0x5a2a01,ILocalCacheService as _0x17e842,CollaborationUIEventService as _0x5ab706,CollaborationUIEventId as _0x3cd63a,DataLoaderService as _0x587614,DocCollaborationEntity as _0x9a8453,getLocalCacheKey as _0x1438e7,LOCAL_CACHE_INTERVAL as _0x1afe72,LOCAL_CACHE_INTERVAL_KEY as _0x3317be,UniverCollaborationClientPlugin as _0x46c167,CollaborationSocketService as _0x56fab3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x8f194a,DEFAULT_WS_SESSION_TICKET_URL as _0x175809,UnitStatus as _0x5e3f07,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2a6ff8,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2a4152}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x31fdaa,Disposable as _0x4c8c9a,DOC_RANGE_TYPE as _0x424359,Inject as _0xbe4765,Injector as _0x10647c,IUniverInstanceService as _0x9adc5c,ICommandService as _0x55829e,debounce as _0x38b7ab,Rectangle as _0x129fc6,DisposableCollection as _0x182125,toDisposable as _0x43282a,UniverInstanceType as _0x39d27e,Tools as _0x4e19c0,COLORS as _0x510215,ColorKit as _0x2d7b08,ThemeService as _0x1fad6b,fromEventSubject as _0x146355,LocaleService as _0x57bae6,createIdentifier as _0x4fbeb4,ILogService as _0x14bb70,Optional as _0x561976,Workbook as _0xdd695b,CommandType as _0x416f2a,IConfigService as _0x3de9ad,ILocalStorageService as _0x326825,DependentOn as _0x2afea3,Plugin as _0x4be7fb,merge as _0x19f77a,registerDependencies as _0x54c4a6,mergeOverrideWithDependencies as _0x5ee088,touchDependencies as _0x369c0b,generateRandomId as _0x232fd4}from'@univerjs/core';import{Shape as _0x2aea1b,Rect as _0x1d3ca3,getColor as _0x489437,RegularPolygon as _0x315fc7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1fb592,Vector2 as _0x52b21e,SHEET_VIEWPORT_KEY as _0x180fa9,IRenderManagerService as _0x9243d5}from'@univerjs/engine-render';import{ISocketService as _0x3a53e5,WebSocketService as _0x48206a,HTTPService as _0x256f9b}from'@univerjs/network';function _0x5450(){const _0x1b2bce=['eventID','UNDEFINED','getSkeleton','ENSURE_SNAPSHOT_EXECUTION','includes','wsSessionTicketUrl','xlink:href','4XApJLU','RECT','roomMembers','indexOf','_docClipboardService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','fillStyle','top','blue400','_handleJoinEvent','pluginName','_render','div','addClipboardHook','241045wmVMJl','Failed','key','black','arc','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','INVALID_ARGUMENT','_drawTextRange','cursorInfo','_cursorShapes','_transformPreviousActiveRange','_initCommandExecutedListener','clipPath','_color','generateRandomId','sheetID','_initEntityListener','docStateChange$','_online','getOwnPropertySymbols','_session','error','ticket','collabStatus.conflict','Unknown\x20user','SOCKET_FAILED','_urlService','complete','jiqing500','_docSyncEditingCollabCursorService','from','M0\x200H16V16H0z','INVALID_INVITE_CODE','_initStatusComponent','currentSkeleton$','_univerInstanceService','LICENSE_IMPORT_SIZE_EXCEEDED','current','setTimeout','defineProperty','asObservable','APPLY_REVISION_CONFILICT','font','COMPLETION_FINISHED','LICENSE_EXPORT_SIZE_EXCEEDED','flatMap','memberID','UNIVER_DOC','measureText','_docTransformSelectionsService','_anchorDot','_collabCursorState$','INTERNAL_ERROR','saveTaskMap','_collabCursorController','subscribe','514294EVHgKO','fill','ranges','cursorInfo$','entries','SNAPSHOT_INVALID_SNAPSHOT','_heartbeatTimer','then','_themeService','getCurrentRevOfUnit','[CollaborationDataLoaderController]','_lastPointer','CONFLICT','onPointerLeave$','extend','saveImage','_selfUnitIDs','prototype','transformByState','_sheetSkeletonManagerService','code','_registerRenderDependencies','assignAColorForMemberID','TEXT','2804GLZqmY','split','defIds','SYNCED','_renderManagerService','post','OTHER_CLIENTS_EDITING','onMouseMove','_hideTimer','#FFF','getCellPositionByOffset','getFocusedUnit','8402346mYIPuB','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','OnLineSingle','getCollabCursors$','beginPath','source','21618421aTjFbN','event$','collabCursorState$','_scheduleSaving','redoState','length','addObject','_handleEvent','InsertRowCommandId','has','currentTheme$','trim','_initStatusListener','children','send','_name','translate(.97)','_injector','_instanceService','_logService','newValue','INVITE_CODE_ALREADY_BOUND','path','runId','unload','searchParams','getTypeOfUnitAdded$','find','getParam','NO_OTHER_CLIENTS_EDITING','onTransformChange$','closePath','editingUnit','_unitOnClients','setConfig','replaceDocRanges','_getSheetObject','sessionStatus$','svg','_draw','skeleton','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','createSocket','_collaborationUIEventService','univer-online-status-title','setStateCache','_labelPosition','save','status$','values','USER_NOT_INVITED_CODE','_docTransformIMECacheService','transformRemoteChangeset','uni.network.url-service','UNAUTHENTICATED','collaboration-client.offline-data-not-saved','loadUnit','getCurrentSelections','url(#on-line-single_clip0_910_349)','none','USERS_LEAVE','hasOwnProperty','_commandService','debug','onPointerMove$','_localStorageService','red300','type','executeCommand','imageSourceType','_startDocCollabCursor','getSheetBySheetId','_dataLoaderService','_getScale','entityInit$','init','body','_beforeCloseService','_shapes','data','_imageIoService','labelPosition','_memberService','setInterval','get','getConfig','collabStatus.fetchMiss','7195456KKELtj','INVITE_CODE_HAS_BEEN_UES','onlineStatusIcon','isArray','SUBMIT_CHANGESET_TIMEOUT','_handleHeartbeatEvent','_updateSubUnitFromURLParams','className','DeleteRangeMoveLeftCommandId','_colorIndex','registerRenderModule','removeParam','setItem','univer-online-status','_transformService','_scheduleHeartbeat','setActiveRange','url(#off-line-single_clip0_910_343)','SNAPSHOT_HAS_BEEN_REMOVED','_uiPartsService','set','onCommandExecuted','getStateCache','CHANGESET_REVISION_CONFILICT','_httpService','random','Warning','...','_toggleOnline','_backgroundColor','invokeId','_toggleOffline','isEditing','collab-rect-range-','_onCursorDelete','transformStateCache','RemoveRowCommandId','setUndoRedoMutationParamsCache','_revisionService','onPointerEnter$','requireSession','OFFLINE','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','displayName','replaceState','map','getOffsetConfig','_onRefRangeChange','getActiveSheet','function','LICENSE_MAX_UNITS_EXCEEDED','endColumn','push','clearInterval','text','_saveTaskMap','_messageService','univer-online-status-icon','PERMISSION_DENIED','UNIVER_SHEET','enableLocalCache','apply','round','MOBILE_HAS_BEEN_BOUND','getOwnPropertyDescriptor','_docTransformStateCacheService','unsubscribe','_context','activeSheet$','_collabSessionService','getUnitStatus$','isActive','range','_updateLocalCursor','undoState','toRgbString','getRenderById','getMemberID','getDocRanges','color','offline','width','dispose$','textRanges','transformSelections','runOnServer','disableLocalCache','getSheetId','20fldABP','string','add','setShapeProps','column','stringify','OTHER_CLIENT_EDITING','evenodd','tag','setParam','loadOfflineData','collaboration.closeRoom','history','_getAnchorBounding','_eventUnsubscribe','getUndoRedoMutationParamsCache','pipe','_handleHover','InsertColCommandId','YUUMI_SUBSCRIPTION_NOT_FOUND','hovered','_notificationService','PY_RUNTIME_SCRIPT_ERROR','_hovered','propertyIsEnumerable','disposeWithMe','_initResize','_getSaveTimeout','_init','_docSkeleton','startColumn','lineTo','_cursors','onRendered','_id','gold400','on-line-single_clip0_910_349','_initEvent','1em','delete','concat','_cursorInfo$','origin','YUUMI_RATE_OVER_LIMIT','m1Prime','next','resize','YUUMI_URL_COL_OUT_OF_RANGE','_assignedColors','getRangePointData','show','DeleteRangeMoveUpCommandId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_clearOtherTimers','_document','transformMutation','collabStatus.synced','call','_unitStatus','replace','_handleLeaveEvent','_range','roomMembers$','unitID','INVITE_CODE_REQUIRED','min','FromArray','off-line-single_clip0_910_343','_localeService','with','transform','actions','off-line-single','OffLineSingle','deepClone','_setupBeforeClosingHandler','selection','collaboration-client-ui.config','_removeClearOtherTimer','_refreshCollabCursors','params','_config','VIEW_MAIN','saveOfflineData','onlineStatusTitle','APPLY_DUPLICATED','moveTo','_createSocketURL','Error','UNRECOGNIZED','WECHAT_HAS_BEEN_BOUND','univer-online','override','attrs','href','getValue','_hover','0\x200\x2017\x2016','getAncestorScale','APPLY_PERMISSION_DENIED','fillRule','getCollabEntity$','collaboration.single-unit.warning','_entityInit$','getTypeOfUnitDisposed$','bottom','mutations','NOT_FOUND','#fff','findNodePositionByCharIndex','HEADER_MENU','fillText','FETCH_MISS','popstate','CONNECTOR_DATA_TOO_LARGE','_updateURLWithCurrentState','hide','selections','forEach','collabStatus.syncing','defs','_anchor','idSuffix','LICENSE_DISTRO_REJECTED','syncEditingCollabCursor','AWAITING','APPLY_NON_SEQUENTIAL_REVISION','max','_startSheetCollabCursor','makeDirty','startRow','updateOfflineData','size','m2Prime','name','TOO_MANY_REQUESTS','getMember','getUnhiddenWorksheets','storage','doc.mutation.rich-text-editing','_setupSubUnitSync','_colorAssignService','online','getActiveRange','AWAITING_WITH_PENDING','unitId','getVpScrollXYInfoByPosToVp','_initDependencies','UniverIcon','_scene','dispose','verdancy600','NOT_COLLAB','symbol','location','UPDATE_CURSOR','_saveCache','currentColor','InsertRangeMoveDownCommandId','CLOSE_ROOM','_refRangeService','transformIMECache','on-line-single','executionId','_updateCollabCursors','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disposeUnit','restore','LOGIN_FAILED','unshift','some','clearTimeout','urlChange$','_localCacheService','row','transformMutationsWithChangeset','_cursor','0\x200\x2016\x2016','pushState','_configService','_disabled','getViewport','ALREADY_EXISTS','_drawAnchor','_entities','_drawRectRange','toString','_registerDependencies','unit','_syncEditingCollabCursorService','_transformUndoRedoStack','getItem','permission.content','height','_transformHistoryAndStateStack','_send','_ensureSubject','_textBubble','subscribeEvent','getUnitId','_collaborationController','EMAIL_HAS_BEEN_BOUND','assign','substring','_scheduleClearOtherTimer','registerRefRange','mask','subunit','createInstance','engine','url(#$1','onlineStatus','drawWith','univer-flex\x20univer-items-center','_roomMembers$','univerjs-icon\x20univerjs-icon-','APPLY_REJECT','_docStateChangeManagerService','_docSkeletonManagerService','YUUMI_UNABLE_LOAD_URL','_removeCollabCursors','colorChannel1','1029FQKRdb','RemoveColCommandId','getUniverSheetInstance','204lqncvt','_onCursorUpdate','addObjects','4891610pdFGuw','setAlpha','icon','_cachedData'];_0x5450=function(){return _0x1b2bce;};return _0x5450();}import{IDocClipboardService as _0x5cc00f,NodePositionConvertToCursor as _0x380757,NodePositionConvertToRectRange as _0x4c1dbf,TEXT_RANGE_LAYER_INDEX as _0x4c789a,SetDocZoomRatioOperation as _0x414369,DocIMEInputManagerService as _0x4e52dc,DocStateChangeManagerService as _0x3f9889}from'@univerjs/docs-ui';import{IImageIoService as _0x334873}from'@univerjs/drawing';import{BehaviorSubject as _0xf8530c,debounceTime as _0x504781,takeUntil as _0x1ef568,Subject as _0x546bb3,filter as _0x4a895f,switchMap as _0x37bb5d,merge as _0x301744,combineLatest as _0xd6c142,of as _0x1867f6,fromEvent as _0x945d2f,shareReplay as _0x11fcf1,mapTo as _0xe1c17,distinctUntilChanged as _0x2f558a}from'rxjs';import{SetTextSelectionsOperation as _0x1f688a,RichTextEditingMutation as _0x3d611e,DocSelectionManagerService as _0x4cdd95,DocSkeletonManagerService as _0x378ca5}from'@univerjs/docs';import{ITransformService as _0x556e66,CollaborationEvent as _0x35c77f,isTransformMutationFailure as _0x44db43,isTransformMutationsWithChangesetSuccess as _0xbecd51,RevisionService as _0x46ac57,ISnapshotServerService as _0x46cce0}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x1216b2,serializeRangeWithSheet as _0x3538a5}from'@univerjs/engine-formula';import{RefRangeService as _0x181399,SetSelectionsOperation as _0x13a21e,SheetsSelectionsService as _0x2dafdd,EffectRefRangId as _0x204547,handleIRemoveRow as _0x2233b8,handleIRemoveCol as _0x1b4200,handleMoveRange as _0x416bba,handleInsertRow as _0xf1ee33,handleInsertRangeMoveRight as _0x40f239,handleInsertRangeMoveDown as _0x2a3949,handleInsertCol as _0x442aaf,handleDeleteRangeMoveUp as _0x4700c2,handleDeleteRangeMoveLeft as _0x15cee9,runRefRangeMutations as _0x360114,SetWorksheetActivateCommand as _0x2be1be}from'@univerjs/sheets';import{map as _0x2e7f33,filter as _0x5de611,throttleTime as _0x29c020,takeUntil as _0x4daef1,switchMap as _0x2017c6}from'rxjs/operators';import{SheetSkeletonManagerService as _0x5dd4b1,getCoordByCell as _0x13d3b1,getSheetObject as _0x55c921}from'@univerjs/sheets-ui';import{jsx as _0x1692e1,jsxs as _0x12f720}from'react/jsx-runtime';import{useObservable as _0x206c75,useDependency as _0x47e99a,IUIPartsService as _0x44e7e1,BuiltInUIPart as _0x32e57b,connectInjector as _0x4585ae,IBeforeCloseService as _0x4449f7,IMessageService as _0x4e2a68,INotificationService as _0x4d436c}from'@univerjs/ui';import{clsx as _0x327375,Tooltip as _0x3e12c8,MessageType as _0x5e3919}from'@univerjs/design';import{forwardRef as _0x3a8ec5,useRef as _0x217c65,createElement as _0x18a497,useCallback as _0x4ef53a}from'react';import{IRemoteInstanceService as _0x334c05}from'@univerjs/rpc';var li=Object['getOwnPropertyDescriptor'],_i=(_0x214f54,_0x335ae0,_0x306bfd,_0x348776)=>{const _0x31ddf7=_0x50820e;for(var _0x4622ea=_0x348776>0x1?void 0x0:_0x348776?li(_0x335ae0,_0x306bfd):_0x335ae0,_0x43bc6f=_0x214f54[_0x31ddf7(0x23c)]-0x1,_0x2892e4;_0x43bc6f>=0x0;_0x43bc6f--)(_0x2892e4=_0x214f54[_0x43bc6f])&&(_0x4622ea=_0x2892e4(_0x4622ea)||_0x4622ea);return _0x4622ea;},Qe=(_0x577d13,_0x4b6bd3)=>(_0x33ea1d,_0x3c9507)=>_0x4b6bd3(_0x33ea1d,_0x3c9507,_0x577d13);let Me=class extends _0x31fdaa{constructor(_0x62512f,_0x20bece){const _0x3c2338=_0x50820e;super(),this[_0x3c2338(0x1cb)]=_0x62512f,this[_0x3c2338(0x287)]=_0x20bece,this[_0x3c2338(0x302)]();}['_init'](){const _0x46d8a6=_0x50820e,_0x4d563d=this;this[_0x46d8a6(0x2ff)](this[_0x46d8a6(0x1cb)][_0x46d8a6(0x1d4)]({'onBeforePasteImage':async _0x3e66b2=>{const _0x1bf47e=_0x46d8a6,_0x46527b=await _0x4d563d[_0x1bf47e(0x287)][_0x1bf47e(0x21c)](_0x3e66b2);return _0x46527b?{'source':_0x46527b[_0x1bf47e(0x236)],'imageSourceType':_0x46527b[_0x1bf47e(0x27c)]}:null;}}));}};Me=_i([Qe(0x0,_0x5cc00f),Qe(0x1,_0x334873)],Me);const qe=['purple300',_0x50820e(0x1f1),_0x50820e(0x16f),_0x50820e(0x279),_0x50820e(0x1cf),_0x50820e(0x309)];class He extends _0x4c8c9a{constructor(){const _0x5a3e75=_0x50820e;super(...arguments),_(this,_0x5a3e75(0x316),new Map()),_(this,_0x5a3e75(0x297),0x0);}[_0x50820e(0x223)](_0x1d97b0){const _0x5449b8=_0x50820e;if(this['_assignedColors'][_0x5449b8(0x240)](_0x1d97b0))return this[_0x5449b8(0x316)]['get'](_0x1d97b0);const _0x52c309=qe[this[_0x5449b8(0x297)]];return this[_0x5449b8(0x297)]=(this[_0x5449b8(0x297)]+0x1)%qe['length'],this['_assignedColors']['set'](_0x1d97b0,_0x52c309),_0x52c309;}}function Dt(_0x305685){const _0x5453a6=_0x50820e;let _0x47cf53='';for(const _0x1911ed of _0x305685){const {startOffset:_0x1e737f,endOffset:_0x46c39b,isActive:_0x470ae4,rangeType:_0x33395f,segmentId:_0x2f63a9,segmentPage:_0x4c2374}=_0x1911ed;_0x47cf53[_0x5453a6(0x23c)]&&(_0x47cf53+=','),_0x47cf53+=_0x1e737f+':'+_0x46c39b+':'+(_0x470ae4?'1':'0')+':'+_0x33395f+':'+_0x2f63a9+':'+_0x4c2374;}return _0x47cf53;}function hi(_0x331df9){const _0x23b0db=_0x50820e,_0x3db537=_0x331df9['split'](','),_0x2fda36=[];for(const _0x2ad0c4 of _0x3db537){const [_0x196e1c,_0x5817a2,_0x297135,_0x1a041a,_0x47ab80,_0x40e246]=_0x2ad0c4[_0x23b0db(0x226)](':');_0x2fda36['push']({'startOffset':Number(_0x196e1c),'endOffset':Number(_0x5817a2),'collapsed':_0x196e1c===_0x5817a2,'isActive':_0x297135==='1','rangeType':_0x1a041a===_0x424359[_0x23b0db(0x224)]?_0x424359[_0x23b0db(0x224)]:_0x424359['RECT'],'segmentId':typeof _0x47ab80==_0x23b0db(0x2e7)?String(_0x47ab80):'','segmentPage':Number(_0x40e246!=null?_0x40e246:-0x1)});}return _0x2fda36[_0x23b0db(0x182)](_0x51d71f=>_0x51d71f[_0x23b0db(0x2d5)])||(_0x2fda36[0x0][_0x23b0db(0x2d5)]=!0x0),_0x2fda36;}class je extends _0x31fdaa{constructor(){const _0xdfadb0=_0x50820e;super(...arguments),_(this,_0xdfadb0(0x208),new _0xf8530c(null)),_(this,_0xdfadb0(0x239),this[_0xdfadb0(0x208)]['asObservable']());}[_0x50820e(0x362)](_0xdd93a1){const _0x69775c=_0x50820e,{unitID:_0x571f39,memberID:_0x43053d,textRanges:_0x570505}=_0xdd93a1,_0x201a4d=Dt(_0x570505);if(_0x201a4d==='')return;const _0x5d812e={'unitID':_0x571f39,'memberID':_0x43053d,'selection':_0x201a4d};this[_0x69775c(0x208)][_0x69775c(0x313)](_0x5d812e);}}var ui=Object['getOwnPropertyDescriptor'],di=(_0x4f58f3,_0x413bb2,_0x3369fb,_0xc8691a)=>{for(var _0x4c4fb0=_0xc8691a>0x1?void 0x0:_0xc8691a?ui(_0x413bb2,_0x3369fb):_0x413bb2,_0x42ed4b=_0x4f58f3['length']-0x1,_0x2a2896;_0x42ed4b>=0x0;_0x42ed4b--)(_0x2a2896=_0x4f58f3[_0x42ed4b])&&(_0x4c4fb0=_0x2a2896(_0x4c4fb0)||_0x4c4fb0);return _0x4c4fb0;},U=(_0x1df26d,_0xa14bdb)=>(_0x6c1777,_0x49aedc)=>_0xa14bdb(_0x6c1777,_0x49aedc,_0x1df26d);const fi=0x12c,Si=0x64;let Pe=class extends _0x31fdaa{constructor(_0x337d29,_0x5008fa,_0x1a548f,_0xdccd88,_0x1bd047,_0x33e827,_0x1edf9f,_0x2e33dc,_0x4b5fc4){const _0x2b59da=_0x50820e;super(),_(this,_0x2b59da(0x1e7),!0x1),_(this,_0x2b59da(0x302),!0x1),_(this,_0x2b59da(0x30f),new _0xf8530c(new Map())),_(this,_0x2b59da(0x210),this[_0x2b59da(0x30f)][_0x2b59da(0x1fd)]()),_(this,_0x2b59da(0x1ae),new _0xf8530c([])),_(this,_0x2b59da(0x324),this['_roomMembers$'][_0x2b59da(0x2f6)](_0x504781(fi))),_(this,_0x2b59da(0x2d7),_0x38b7ab(_0x46f44c=>{const _0x2837ea=_0x2b59da,_0x4853cc={'eventID':_0x35c77f['UPDATE_CURSOR'],'data':{'unitID':this[_0x2837ea(0x325)],'memberID':this[_0x2837ea(0x1e9)][_0x2837ea(0x2db)](),'selection':Dt(_0x46f44c)}};this[_0x2837ea(0x1e9)][_0x2837ea(0x245)](_0x4853cc,this[_0x2837ea(0x325)]);},Si)),(this['unitID']=_0x337d29,this[_0x2b59da(0x1e9)]=_0x5008fa,this[_0x2b59da(0x248)]=_0x1a548f,this['_colorAssignService']=_0xdccd88,this['_memberService']=_0x1bd047,this[_0x2b59da(0x195)]=_0x33e827,this[_0x2b59da(0x29c)]=_0x1edf9f,this[_0x2b59da(0x1f8)]=_0x2e33dc,this[_0x2b59da(0x275)]=_0x4b5fc4);}get['cursorInfo'](){const _0x32cee7=_0x50820e;return this[_0x32cee7(0x30f)]['getValue']();}get[_0x50820e(0x1c9)](){const _0xdb1413=_0x50820e;return this[_0xdb1413(0x1ae)][_0xdb1413(0x345)]();}[_0x50820e(0x16e)](){const _0x370a3a=_0x50820e;super['dispose'](),this[_0x370a3a(0x30f)][_0x370a3a(0x313)](new Map()),this[_0x370a3a(0x30f)][_0x370a3a(0x1f0)](),this[_0x370a3a(0x1ae)][_0x370a3a(0x313)]([]),this[_0x370a3a(0x1ae)][_0x370a3a(0x1f0)]();}['init'](){const _0x3a81fc=_0x50820e;this[_0x3a81fc(0x302)]||(this[_0x3a81fc(0x302)]=!0x0,this[_0x3a81fc(0x1e9)][_0x3a81fc(0x25c)][_0x3a81fc(0x2f6)](_0x1ef568(this[_0x3a81fc(0x2e0)]))[_0x3a81fc(0x20c)](_0x28c10b=>{const _0x3afcf2=_0x3a81fc;_0x28c10b===_0x38eed1['ONLINE']?this[_0x3afcf2(0x2aa)]():this[_0x3afcf2(0x2ad)]();}),this['_session'][_0x3a81fc(0x238)][_0x3a81fc(0x2f6)](_0x1ef568(this[_0x3a81fc(0x2e0)]))['subscribe'](_0x3fa974=>{const _0x50b6be=_0x3a81fc,_0x556036=_0x3fa974['eventID'];_0x556036===_0x35c77f[_0x50b6be(0x173)]&&this['_onCursorUpdate'](_0x3fa974),_0x556036===_0x35c77f[_0x50b6be(0x273)]&&this[_0x50b6be(0x2b0)](_0x3fa974);}),this['disposeWithMe'](this[_0x3a81fc(0x275)][_0x3a81fc(0x2a3)](_0x136385=>{const _0x5ebcf9=_0x3a81fc,_0x38fab9=_0x136385['params'];_0x38fab9!=null&&this['_online']&&_0x136385['id']===_0x1f688a['id']&&_0x38fab9[_0x5ebcf9(0x377)]===this['unitID']&&_0x38fab9[_0x5ebcf9(0x2ae)]===!0x1&&_0x38fab9[_0x5ebcf9(0x20f)][_0x5ebcf9(0x23c)]>0x0&&this[_0x5ebcf9(0x2d7)](_0x38fab9[_0x5ebcf9(0x20f)]);})),this['_syncEditingCollabCursorService'][_0x3a81fc(0x239)][_0x3a81fc(0x2f6)](_0x1ef568(this[_0x3a81fc(0x2e0)]))[_0x3a81fc(0x20c)](_0xd9a85f=>{const _0x5b4813=_0x3a81fc;if((_0xd9a85f==null?void 0x0:_0xd9a85f[_0x5b4813(0x325)])!==this[_0x5b4813(0x325)])return;const _0x5d69f5={'eventID':_0x35c77f[_0x5b4813(0x173)],'data':_0xd9a85f};this['_onCursorUpdate'](_0x5d69f5);}),this[_0x3a81fc(0x2ff)](this[_0x3a81fc(0x275)][_0x3a81fc(0x2a3)](_0x55b4f3=>{const _0x4da9a0=_0x3a81fc;if(_0x55b4f3['params']==null)return;const _0x570dc6=_0x55b4f3['params'];if(_0x55b4f3['id']!==_0x3d611e['id']||_0x570dc6[_0x4da9a0(0x377)]!==this[_0x4da9a0(0x325)])return;const _0x267f56={'id':_0x4da9a0(0x371),'params':_0x570dc6},_0x34461d=this[_0x4da9a0(0x1dd)];for(const [_0x2642d1,_0x2a34df]of _0x34461d){const _0x2474b7={'id':_0x4da9a0(0x371),'params':{'unitId':this[_0x4da9a0(0x325)],'actions':null,'textRanges':_0x2a34df[_0x4da9a0(0x20f)]}},_0x90ff3e=this[_0x4da9a0(0x29c)][_0x4da9a0(0x31d)](_0x267f56,_0x2474b7,!0x1);if(_0x44db43(_0x90ff3e))throw _0x90ff3e[_0x4da9a0(0x1ea)];_0x34461d[_0x4da9a0(0x2a2)](_0x2642d1,{..._0x2a34df,'ranges':_0x90ff3e[_0x4da9a0(0x36b)]['params'][_0x4da9a0(0x2e1)]});}queueMicrotask(()=>{const _0x128df5=_0x4da9a0;this['_cursorInfo$'][_0x128df5(0x313)](_0x34461d);});})));}[_0x50820e(0x1ba)](_0x18dd6d){const _0x13c5bd=_0x50820e;var _0x5f3643,_0x12d5c7;const {memberID:_0x4ba601,selection:_0x3c5118}=_0x18dd6d[_0x13c5bd(0x286)],_0x56133f=hi(_0x3c5118),_0xfbbe53=(_0x12d5c7=(_0x5f3643=this[_0x13c5bd(0x289)]['getMember'](this[_0x13c5bd(0x325)],_0x4ba601))==null?void 0x0:_0x5f3643['name'])!=null?_0x12d5c7:_0x13c5bd(0x1ed),_0x34fe62={'color':this[_0x13c5bd(0x373)][_0x13c5bd(0x223)](_0x4ba601),'name':_0xfbbe53,'ranges':_0x56133f},_0x5721f6=this[_0x13c5bd(0x1dd)];_0x5721f6[_0x13c5bd(0x2a2)](_0x4ba601,_0x34fe62),this[_0x13c5bd(0x30f)][_0x13c5bd(0x313)](_0x5721f6);}['_onCursorDelete'](_0x300486){const _0x3fe77e=_0x50820e,{memberID:_0x398154}=_0x300486[_0x3fe77e(0x286)],_0x15b3c9=this[_0x3fe77e(0x1dd)];_0x15b3c9[_0x3fe77e(0x30d)](_0x398154),this[_0x3fe77e(0x30f)]['next'](_0x15b3c9);}[_0x50820e(0x2aa)](){const _0x5e5814=_0x50820e;var _0x53c676;if(this[_0x5e5814(0x1e7)]=!0x0,((_0x53c676=this[_0x5e5814(0x1f8)][_0x5e5814(0x230)]())==null?void 0x0:_0x53c676[_0x5e5814(0x19f)]())!==this[_0x5e5814(0x325)])return;const _0x679232=this[_0x5e5814(0x248)]['get'](_0x4cdd95)['getDocRanges']();Array['isArray'](_0x679232)&&_0x679232['length']>0x0&&this[_0x5e5814(0x2d7)](_0x679232);}[_0x50820e(0x2ad)](){const _0x24023e=_0x50820e;this[_0x24023e(0x1e7)]=!0x1;}};Pe=di([U(0x2,_0xbe4765(_0x10647c)),U(0x3,_0xbe4765(He)),U(0x4,_0xbe4765(_0xb6ef82)),U(0x5,_0xbe4765(je)),U(0x6,_0x556e66),U(0x7,_0x9adc5c),U(0x8,_0x55829e)],Pe);var mi=Object[_0x50820e(0x2ce)],gi=(_0xe8cd9,_0x590a96,_0x3bbe40,_0x5b50f7)=>{for(var _0x453cef=_0x5b50f7>0x1?void 0x0:_0x5b50f7?mi(_0x590a96,_0x3bbe40):_0x590a96,_0x45001c=_0xe8cd9['length']-0x1,_0x4bd36d;_0x45001c>=0x0;_0x45001c--)(_0x4bd36d=_0xe8cd9[_0x45001c])&&(_0x453cef=_0x4bd36d(_0x453cef)||_0x453cef);return _0x453cef;},x=(_0x206cfc,_0x227949)=>(_0x3adde7,_0x50880c)=>_0x227949(_0x3adde7,_0x50880c,_0x206cfc);const vi=0x12c,Ii=0x64,pi=()=>{let _0x22c9a5=[],_0x3ed9b9=!0x1;return _0x46bba4=>{const _0x1f0f60=_0x844d;_0x22c9a5[_0x1f0f60(0x2c2)](_0x46bba4),_0x3ed9b9||(_0x3ed9b9=!0x0,setTimeout(()=>{const _0x38b58c=_0x1f0f60;_0x22c9a5[_0x38b58c(0x35c)](_0xace23=>_0xace23()),_0x22c9a5=[],_0x3ed9b9=!0x1;}));};};let we=class extends _0x31fdaa{constructor(_0x27500b,_0x2c8f2f,_0x5c9cd0,_0x4690a6,_0x2d119e,_0x158b58,_0x4d7182,_0x54d274){const _0x3baa4a=_0x50820e;super(),_(this,_0x3baa4a(0x1e7),!0x1),_(this,_0x3baa4a(0x302),!0x1),_(this,_0x3baa4a(0x30f),new _0xf8530c(new Map())),_(this,_0x3baa4a(0x210),this[_0x3baa4a(0x30f)][_0x3baa4a(0x1fd)]()),_(this,_0x3baa4a(0x1ae),new _0xf8530c([])),_(this,'roomMembers$',this['_roomMembers$'][_0x3baa4a(0x2f6)](_0x504781(vi))),_(this,_0x3baa4a(0x2d7),_0x38b7ab((_0x4d4e34,_0x3eaacc)=>{const _0x25f95f=_0x3baa4a,_0x5215fd={'eventID':_0x35c77f['UPDATE_CURSOR'],'data':{'unitID':this[_0x25f95f(0x325)],'memberID':this[_0x25f95f(0x1e9)][_0x25f95f(0x2db)](),'selection':_0x3538a5(_0x4d4e34,_0x3eaacc[_0x25f95f(0x2d6)])}};this[_0x25f95f(0x1e9)][_0x25f95f(0x245)](_0x5215fd,this[_0x25f95f(0x325)]);},Ii)),(this[_0x3baa4a(0x325)]=_0x27500b,this[_0x3baa4a(0x1e9)]=_0x2c8f2f,this[_0x3baa4a(0x248)]=_0x5c9cd0,this['_colorAssignService']=_0x4690a6,this['_memberService']=_0x2d119e,this['_univerInstanceService']=_0x158b58,this[_0x3baa4a(0x275)]=_0x4d7182,this[_0x3baa4a(0x178)]=_0x54d274);}get[_0x50820e(0x1dd)](){const _0x1e72a4=_0x50820e;return this[_0x1e72a4(0x30f)]['getValue']();}get[_0x50820e(0x1c9)](){const _0x787b68=_0x50820e;return this['_roomMembers$'][_0x787b68(0x345)]();}['dispose'](){const _0x2ebd76=_0x50820e;super[_0x2ebd76(0x16e)](),this['_cursorInfo$'][_0x2ebd76(0x313)](new Map()),this['_cursorInfo$'][_0x2ebd76(0x1f0)](),this[_0x2ebd76(0x1ae)][_0x2ebd76(0x313)]([]),this[_0x2ebd76(0x1ae)][_0x2ebd76(0x1f0)]();}[_0x50820e(0x282)](){const _0x495637=_0x50820e;this[_0x495637(0x302)]||(this[_0x495637(0x302)]=!0x0,this[_0x495637(0x1e9)]['sessionStatus$'][_0x495637(0x2f6)](_0x1ef568(this[_0x495637(0x2e0)]))[_0x495637(0x20c)](_0xcf85fc=>{const _0x39e233=_0x495637;_0xcf85fc===_0x38eed1['ONLINE']?this[_0x39e233(0x2aa)]():this['_toggleOffline']();}),this[_0x495637(0x1e9)][_0x495637(0x238)][_0x495637(0x2f6)](_0x1ef568(this[_0x495637(0x2e0)]))[_0x495637(0x20c)](_0x1b3133=>{const _0x549ed6=_0x495637,_0x1280c6=_0x1b3133[_0x549ed6(0x1c0)];_0x1280c6===_0x35c77f[_0x549ed6(0x173)]&&this[_0x549ed6(0x1ba)](_0x1b3133),_0x1280c6===_0x35c77f[_0x549ed6(0x273)]&&this[_0x549ed6(0x2b0)](_0x1b3133);}),this[_0x495637(0x2bd)](),this[_0x495637(0x2ff)](this[_0x495637(0x275)][_0x495637(0x2a3)](_0xad8744=>{const _0x2f8e43=_0x495637;if(this['_online']&&_0xad8744['id']===_0x13a21e['id']&&_0xad8744['params']['unitId']===this[_0x2f8e43(0x325)]){const _0x28b6e2=_0xad8744[_0x2f8e43(0x336)];this[_0x2f8e43(0x2d7)](_0x28b6e2['subUnitId'],_0x28b6e2[_0x2f8e43(0x35b)][0x0]);}})));}['_onCursorUpdate'](_0x8cba4f){const _0x11cc58=_0x50820e;var _0x4526d0,_0x30c9fe;const {memberID:_0x184f1b,selection:_0x504654}=_0x8cba4f[_0x11cc58(0x286)],{sheetName:_0x53e40a,range:_0x22b466}=_0x1216b2(_0x504654),_0xc45dc7={'name':(_0x30c9fe=(_0x4526d0=this[_0x11cc58(0x289)][_0x11cc58(0x36e)](this[_0x11cc58(0x325)],_0x184f1b))==null?void 0x0:_0x4526d0[_0x11cc58(0x36c)])!=null?_0x30c9fe:_0x11cc58(0x1ed),'range':this['_getMergeRange'](_0x53e40a,_0x22b466),'sheetID':_0x53e40a,'color':this[_0x11cc58(0x373)][_0x11cc58(0x223)](_0x184f1b),'selection':_0x504654},_0x58c8d5=this['cursorInfo'];_0x58c8d5[_0x11cc58(0x2a2)](_0x184f1b,_0xc45dc7),this[_0x11cc58(0x30f)][_0x11cc58(0x313)](_0x58c8d5);}[_0x50820e(0x2b0)](_0x200d61){const _0x12ed64=_0x50820e,{memberID:_0x40ef9a}=_0x200d61[_0x12ed64(0x286)],_0x59444c=this[_0x12ed64(0x1dd)];_0x59444c[_0x12ed64(0x30d)](_0x40ef9a),this[_0x12ed64(0x30f)][_0x12ed64(0x313)](_0x59444c);}['_getMergeRange'](_0x31391c,_0x1ec102){const _0x4b2280=_0x50820e;var _0x30ff68,_0x1cdc43;const _0x31649c=(_0x1cdc43=(_0x30ff68=this[_0x4b2280(0x1f8)][_0x4b2280(0x1b8)](this[_0x4b2280(0x325)]))==null?void 0x0:_0x30ff68[_0x4b2280(0x27e)](_0x31391c))==null?void 0x0:_0x1cdc43['getMergeData']();return(_0x31649c==null?void 0x0:_0x31649c[_0x4b2280(0x252)](_0x49a3d0=>_0x129fc6['contains'](_0x49a3d0,_0x1ec102)))||_0x1ec102;}[_0x50820e(0x2bd)](){const _0x136486=_0x50820e,_0x26e3d0=new _0x182125(),_0x575bee=pi(),_0x3ea707=()=>{const _0x12d6d0=_0x844d;_0x26e3d0[_0x12d6d0(0x16e)]();const _0x6ed536=(_0x45e2aa,_0x2a2a5b,_0x5c0c57,_0x5103ef)=>{const _0x284523=_0x12d6d0;let _0x1cedf5=[];switch(_0x45e2aa['id']){case _0x204547[_0x284523(0x296)]:{_0x1cedf5=_0x15cee9(_0x45e2aa,_0x5103ef);break;}case _0x204547[_0x284523(0x319)]:{_0x1cedf5=_0x4700c2(_0x45e2aa,_0x5103ef);break;}case _0x204547[_0x284523(0x2f8)]:{_0x1cedf5=_0x442aaf(_0x45e2aa,_0x5103ef);break;}case _0x204547[_0x284523(0x176)]:{_0x1cedf5=_0x2a3949(_0x45e2aa,_0x5103ef);break;}case _0x204547['InsertRangeMoveRightCommandId']:{_0x1cedf5=_0x40f239(_0x45e2aa,_0x5103ef);break;}case _0x204547[_0x284523(0x23f)]:{_0x1cedf5=_0xf1ee33(_0x45e2aa,_0x5103ef);break;}case _0x204547['MoveRangeCommandId']:{_0x1cedf5=_0x416bba(_0x45e2aa,_0x5103ef);break;}case _0x204547[_0x284523(0x1b7)]:{_0x1cedf5=_0x1b4200(_0x45e2aa,_0x5103ef);break;}case _0x204547[_0x284523(0x2b2)]:{_0x1cedf5=_0x2233b8(_0x45e2aa,_0x5103ef);break;}}const _0x21a69f=_0x360114(_0x1cedf5,_0x5103ef),_0x2843cc=this['cursorInfo']['get'](_0x2a2a5b);if(_0x2843cc&&_0x21a69f){const _0x4fcee3={..._0x2843cc,'range':_0x21a69f};this['cursorInfo'][_0x284523(0x2a2)](_0x2a2a5b,_0x4fcee3),_0x575bee(()=>{const _0x224d78=_0x284523,_0x2659e5=this[_0x224d78(0x178)][_0x224d78(0x1a5)](_0x21a69f,_0x1e9bf4=>(_0x2659e5[_0x224d78(0x16e)](),_0x6ed536(_0x1e9bf4,_0x2a2a5b,_0x5c0c57,_0x21a69f)));_0x26e3d0[_0x224d78(0x2e8)](_0x2659e5);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x1b65de,_0x331f34)=>{const _0x51d869=_0x12d6d0,{range:_0x181c57,sheetID:_0x149d97}=_0x1b65de,_0x26608e=this['_refRangeService'][_0x51d869(0x1a5)](_0x181c57,_0x1063c6=>(_0x26608e[_0x51d869(0x16e)](),_0x6ed536(_0x1063c6,_0x331f34,_0x149d97,_0x181c57)));_0x26e3d0['add'](_0x26608e);});};this[_0x136486(0x2ff)](_0x43282a(this['_cursorInfo$'][_0x136486(0x20c)](()=>{_0x3ea707();})));}[_0x50820e(0x2aa)](){const _0x118fb1=_0x50820e;var _0x5dd693,_0x1c034b;if(this[_0x118fb1(0x1e7)]=!0x0,((_0x5dd693=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x5dd693[_0x118fb1(0x19f)]())!==this['unitID'])return;const _0x2f81ea=(_0x1c034b=this[_0x118fb1(0x248)]['get'](_0x2dafdd)[_0x118fb1(0x270)]())==null?void 0x0:_0x1c034b[0x0],_0x561eae=this[_0x118fb1(0x1f8)]['getCurrentUnitForType'](_0x39d27e[_0x118fb1(0x2c9)])[_0x118fb1(0x2be)]();_0x2f81ea&&_0x561eae&&this[_0x118fb1(0x2d7)](_0x561eae[_0x118fb1(0x2e5)](),_0x2f81ea);}[_0x50820e(0x2ad)](){this['_online']=!0x1;}};we=gi([x(0x2,_0xbe4765(_0x10647c)),x(0x3,_0xbe4765(He)),x(0x4,_0xbe4765(_0xb6ef82)),x(0x5,_0x9adc5c),x(0x6,_0x55829e),x(0x7,_0xbe4765(_0x181399))],we);var Ci=Object[_0x50820e(0x2ce)],Ei=(_0x4525da,_0x3caab9,_0x244c60,_0x4f6f76)=>{for(var _0x4ba4b0=_0x4f6f76>0x1?void 0x0:_0x4f6f76?Ci(_0x3caab9,_0x244c60):_0x3caab9,_0x2761ab=_0x4525da['length']-0x1,_0x15a1c6;_0x2761ab>=0x0;_0x2761ab--)(_0x15a1c6=_0x4525da[_0x2761ab])&&(_0x4ba4b0=_0x15a1c6(_0x4ba4b0)||_0x4ba4b0);return _0x4ba4b0;},me=(_0x55b7cf,_0x137bb1)=>(_0x221602,_0x8de97)=>_0x137bb1(_0x221602,_0x8de97,_0x55b7cf);let H=class extends _0x31fdaa{constructor(_0x19ca14,_0x4d0a28,_0x4bfe23){const _0x3d6a41=_0x50820e;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new _0x546bb3()),(this[_0x3d6a41(0x1f8)]=_0x19ca14,this[_0x3d6a41(0x248)]=_0x4d0a28,this[_0x3d6a41(0x2d3)]=_0x4bfe23,this[_0x3d6a41(0x302)]());}[_0x50820e(0x16e)](){const _0x525a8a=_0x50820e;super['dispose'](),this[_0x525a8a(0x34d)][_0x525a8a(0x1f0)](),this[_0x525a8a(0x190)][_0x525a8a(0x35c)](_0x27dd7e=>_0x27dd7e['dispose']());}[_0x50820e(0x234)](_0x1d131e){const _0x392f4c=_0x50820e;return this[_0x392f4c(0x190)][_0x392f4c(0x240)](_0x1d131e)?this['_entities'][_0x392f4c(0x28b)](_0x1d131e)[_0x392f4c(0x210)]:this[_0x392f4c(0x34d)][_0x392f4c(0x2f6)](_0x4a895f(_0x1bfc33=>_0x1bfc33['unitID']===_0x1d131e),_0x37bb5d(_0x3a71e5=>_0x3a71e5['cursorInfo$']));}[_0x50820e(0x302)](){const _0x15e5d7=_0x50820e;this[_0x15e5d7(0x1f8)][_0x15e5d7(0x251)](_0x39d27e[_0x15e5d7(0x2c9)])[_0x15e5d7(0x2f6)](_0x1ef568(this['dispose$']))[_0x15e5d7(0x20c)](async _0x493a11=>{const _0x38d078=_0x15e5d7,_0x44c305=_0x493a11[_0x38d078(0x19f)](),_0x5c93ae=await this['_startSheetCollabCursor'](_0x44c305);this['_entityInit$'][_0x38d078(0x313)](_0x5c93ae),this[_0x38d078(0x190)][_0x38d078(0x2a2)](_0x44c305,_0x5c93ae);}),this['_univerInstanceService'][_0x15e5d7(0x251)](_0x39d27e[_0x15e5d7(0x204)])['pipe'](_0x1ef568(this[_0x15e5d7(0x2e0)]))[_0x15e5d7(0x2f6)](_0x4a895f(_0x530988=>!_0x530988[_0x15e5d7(0x19f)]()['startsWith']('__')))[_0x15e5d7(0x20c)](async _0xe4d33e=>{const _0x273541=_0x15e5d7,_0x4c3738=_0xe4d33e[_0x273541(0x19f)](),_0x1230a2=await this[_0x273541(0x27d)](_0x4c3738);this[_0x273541(0x34d)]['next'](_0x1230a2),this[_0x273541(0x190)][_0x273541(0x2a2)](_0x4c3738,_0x1230a2);}),_0x301744(this['_univerInstanceService'][_0x15e5d7(0x34e)](_0x39d27e[_0x15e5d7(0x204)]),this[_0x15e5d7(0x1f8)][_0x15e5d7(0x34e)](_0x39d27e[_0x15e5d7(0x2c9)]))[_0x15e5d7(0x2f6)](_0x1ef568(this[_0x15e5d7(0x2e0)]))['subscribe'](_0x20e694=>{const _0x2836fb=_0x15e5d7,_0x4ddf89=_0x20e694[_0x2836fb(0x19f)](),_0x3d5cbd=this[_0x2836fb(0x190)][_0x2836fb(0x28b)](_0x4ddf89);_0x3d5cbd&&(_0x3d5cbd[_0x2836fb(0x16e)](),this[_0x2836fb(0x190)]['delete'](_0x4ddf89));});}async[_0x50820e(0x366)](_0x5eacbb){const _0x46483d=_0x50820e,_0x69a63a=await this[_0x46483d(0x2d3)][_0x46483d(0x2b6)](_0x5eacbb),_0x4d964c=this[_0x46483d(0x248)][_0x46483d(0x1a8)](we,_0x5eacbb,_0x69a63a);return _0x4d964c[_0x46483d(0x282)](),_0x4d964c;}async[_0x50820e(0x27d)](_0x238b58){const _0x13b3aa=_0x50820e,_0x2af53e=await this['_collabSessionService']['requireSession'](_0x238b58),_0x34fd3d=this['_injector'][_0x13b3aa(0x1a8)](Pe,_0x238b58,_0x2af53e);return _0x34fd3d[_0x13b3aa(0x282)](),_0x34fd3d;}};H=Ei([me(0x0,_0x9adc5c),me(0x1,_0xbe4765(_0x10647c)),me(0x2,_0xbe4765(_0x35be17))],H);const te=0x14,et=0xc8,ge=0x4,bi=0x5;function Oi(_0x88a637,_0x1335da){const _0x3f5605=_0x50820e;let {radius:_0x3bcd4d,width:_0x5b2742,height:_0x2d9c15}=_0x1335da;_0x3bcd4d=_0x3bcd4d!=null?_0x3bcd4d:0x0,_0x5b2742=_0x5b2742!=null?_0x5b2742:0x1e,_0x2d9c15=_0x2d9c15!=null?_0x2d9c15:0x1e;let _0x1dba83=0x0,_0x28a9a0=0x0,_0x4bb30b=0x0;_0x1dba83=_0x28a9a0=_0x4bb30b=Math['min'](_0x3bcd4d,_0x5b2742/0x2,_0x2d9c15/0x2),_0x88a637[_0x3f5605(0x235)](),_0x88a637[_0x3f5605(0x33c)](_0x1dba83,0x0),_0x88a637[_0x3f5605(0x305)](_0x5b2742-_0x28a9a0,0x0),_0x88a637[_0x3f5605(0x1d9)](_0x5b2742-_0x28a9a0,_0x28a9a0,_0x28a9a0,Math['PI']*0x3/0x2,0x0,!0x1),_0x88a637[_0x3f5605(0x305)](_0x5b2742,_0x2d9c15-_0x4bb30b),_0x88a637[_0x3f5605(0x1d9)](_0x5b2742-_0x4bb30b,_0x2d9c15-_0x4bb30b,_0x4bb30b,0x0,Math['PI']/0x2,!0x1),_0x88a637[_0x3f5605(0x305)](0x0,_0x2d9c15),_0x88a637[_0x3f5605(0x305)](0x0,_0x1dba83),_0x88a637['arc'](_0x1dba83,_0x1dba83,_0x1dba83,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x88a637[_0x3f5605(0x256)](),_0x1335da[_0x3f5605(0x20e)]&&(_0x88a637['save'](),_0x88a637[_0x3f5605(0x1cd)]=_0x1335da[_0x3f5605(0x20e)],_0x1335da[_0x3f5605(0x34a)]===_0x3f5605(0x2ed)?_0x88a637['fill'](_0x3f5605(0x2ed)):_0x88a637['fill'](),_0x88a637[_0x3f5605(0x17f)]());}class ue extends _0x2aea1b{constructor(_0x275bbc,_0xae76eb){const _0x2d6ea7=_0x50820e;super(_0x275bbc,_0xae76eb),_(this,_0x2d6ea7(0x2dd)),_(this,_0x2d6ea7(0x2c4)),(this[_0x2d6ea7(0x2dd)]=_0xae76eb==null?void 0x0:_0xae76eb[_0x2d6ea7(0x2dd)],this['text']=_0xae76eb==null?void 0x0:_0xae76eb[_0x2d6ea7(0x2c4)]);}static['drawWith'](_0x84926a,_0x3dae37){const _0x1876ba=_0x50820e,{text:_0x1d4699,color:_0xf239ee}=_0x3dae37;_0x84926a[_0x1876ba(0x266)](),_0x84926a[_0x1876ba(0x1ff)]=_0x1876ba(0x31a);const _0x1fbb1e=_0x84926a['measureText'](_0x1d4699)['width'],_0x5eb71a=Math[_0x1876ba(0x327)](_0x1fbb1e+0x2*ge,et);Oi(_0x84926a,{'height':te,'radius':0x4,'width':_0x5eb71a,'fill':_0xf239ee}),_0x84926a[_0x1876ba(0x1cd)]=_0x1876ba(0x22e);const _0x732265=ge,_0x1678f0=te-bi,_0x175cf2=et-0x2*ge;if(_0x1fbb1e>_0x175cf2){let _0x4034e2='',_0x5d610b=0x0;for(const _0x6aae2b of _0x1d4699){const _0x342ea6=_0x84926a[_0x1876ba(0x205)](_0x6aae2b)[_0x1876ba(0x2df)];if(_0x5d610b+_0x342ea6<=_0x175cf2-_0x84926a[_0x1876ba(0x205)](_0x1876ba(0x2a9))[_0x1876ba(0x2df)])_0x4034e2+=_0x6aae2b,_0x5d610b+=_0x342ea6;else{_0x4034e2+=_0x1876ba(0x2a9);break;}}_0x84926a[_0x1876ba(0x355)](_0x4034e2,_0x732265,_0x1678f0);}else _0x84926a[_0x1876ba(0x355)](_0x1d4699,_0x732265,_0x1678f0);_0x84926a['restore']();}[_0x50820e(0x25e)](_0x1d8587){const _0x39d0a9=_0x50820e;ue[_0x39d0a9(0x1ac)](_0x1d8587,this);}}const ve='collab-text-anchor-',Ti='collab-text-range-',Ri=_0x50820e(0x2af),X=0x6,Di=1.5,Ie=0x4,Ni=1.5,Mi='rgba(255,\x20255,\x20255,\x200.01)';class tt{constructor(_0x180dd4,_0x196828,_0x2193de,_0x6960a9){const _0x5c73c5=_0x50820e;_(this,'_shapes',[]),_(this,_0x5c73c5(0x35f),null),_(this,_0x5c73c5(0x19d),null),_(this,_0x5c73c5(0x207),null),_(this,_0x5c73c5(0x22d),null),_(this,_0x5c73c5(0x2f4),null),(this['_cursor']=_0x180dd4,this['_scene']=_0x196828,this[_0x5c73c5(0x303)]=_0x2193de,this[_0x5c73c5(0x31c)]=_0x6960a9,this[_0x5c73c5(0x1d2)]());}set[_0x50820e(0x346)](_0x5698d6){const _0x4d7fbe=_0x50820e;_0x5698d6?(this[_0x4d7fbe(0x207)]&&this['_anchorDot']['hide'](),this[_0x4d7fbe(0x19d)]&&this[_0x4d7fbe(0x19d)]['show']()):(this[_0x4d7fbe(0x207)]&&this[_0x4d7fbe(0x207)]['show'](),this[_0x4d7fbe(0x19d)]&&this[_0x4d7fbe(0x19d)][_0x4d7fbe(0x35a)]());}['dispose'](){const _0x3b62b7=_0x50820e;for(const _0x4d4a32 of this[_0x3b62b7(0x285)])_0x4d4a32[_0x3b62b7(0x16e)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x3b62b7(0x207)]&&this[_0x3b62b7(0x207)]['dispose'](),this[_0x3b62b7(0x35f)]&&this[_0x3b62b7(0x35f)][_0x3b62b7(0x16e)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x50820e(0x1d2)](){const _0x56addc=_0x50820e;var _0x2fd821;const {_docSkeleton:_0x120263,_document:_0x3657df}=this,{color:_0x1d263c,name:_0x3a73fc,ranges:_0x329c89}=this[_0x56addc(0x188)],_0x4848b2=_0x3657df[_0x56addc(0x2bc)](),{docsLeft:_0x43cb29,docsTop:_0x204fc7}=_0x4848b2,_0x4bd2d1=new _0x380757(_0x4848b2,_0x120263);for(const {startOffset:_0x513622,endOffset:_0x135cda,rangeType:_0x374966,segmentId:_0x2fa00b,segmentPage:_0xb0f58e,collapsed:_0x57a604,isActive:_0x551b7a}of _0x329c89){const _0x37eb30=_0x120263[_0x56addc(0x353)](_0x513622,!0x0,_0x2fa00b,_0xb0f58e);let _0x18ca5e=_0x120263[_0x56addc(0x353)](_0x135cda,!0x0,_0x2fa00b,_0xb0f58e);if(_0x18ca5e==null&&(_0x18ca5e=_0x120263[_0x56addc(0x353)](_0x135cda-0x1,!0x1,_0x2fa00b,_0xb0f58e)),_0x551b7a){const {contentBoxPointGroup:_0x3cd94e}=_0x4bd2d1[_0x56addc(0x317)](_0x18ca5e,_0x18ca5e);if(_0x3cd94e['length']===0x0)continue;this[_0x56addc(0x18f)](_0x1d263c,_0x3cd94e,_0x43cb29,_0x204fc7,_0x3a73fc),this[_0x56addc(0x2f4)]=this[_0x56addc(0x2f7)]();}if(_0x37eb30&&_0x18ca5e){if(_0x374966===_0x424359[_0x56addc(0x1c8)]){const _0x1da2d9=new _0x4c1dbf(_0x4848b2,_0x120263),{pointGroup:_0xf1ba48}=(_0x2fd821=_0x1da2d9[_0x56addc(0x317)](_0x37eb30,_0x18ca5e))!=null?_0x2fd821:{};if(_0xf1ba48==null||_0xf1ba48[_0x56addc(0x23c)]===0x0)continue;this['_drawRectRange'](_0x1d263c,_0xf1ba48,_0x43cb29,_0x204fc7);}else{if(!_0x57a604){const {borderBoxPointGroup:_0x1faeb3}=_0x4bd2d1[_0x56addc(0x317)](_0x37eb30,_0x18ca5e);if(_0x1faeb3[_0x56addc(0x23c)]===0x0)continue;this[_0x56addc(0x1dc)](_0x1d263c,_0x1faeb3,_0x43cb29,_0x204fc7);}}}}}[_0x50820e(0x18f)](_0x1d81fa,_0x563da5,_0x32b1d3,_0x2ba758,_0x4c8f56){const _0x4f14b3=_0x50820e,_0x562c80=this[_0x4f14b3(0x2f3)](_0x563da5),{left:_0x1112dd,top:_0x702f01,height:_0x34dc98}=_0x562c80,_0x583a62=this[_0x4f14b3(0x280)](),_0xb88f8e=Ni/_0x583a62,_0x108f56=new _0x1d3ca3(ve+_0x4e19c0['generateRandomId'](X),{'left':_0x1112dd+_0x32b1d3-_0xb88f8e,'top':_0x702f01+_0x2ba758,'height':_0x34dc98,'width':Di,'fill':_0x1d81fa||_0x489437(_0x510215[_0x4f14b3(0x1d8)],0x0),'strokeWidth':_0xb88f8e,'stroke':Mi,'evented':!0x0});this['_anchor']=_0x108f56,this[_0x4f14b3(0x37b)]['addObject'](_0x108f56,_0x4c789a);const _0x327fe0=new _0x1d3ca3(ve+_0x4e19c0[_0x4f14b3(0x1e3)](X),{'left':_0x1112dd+_0x32b1d3-_0xb88f8e,'top':_0x702f01+_0x2ba758-Ie/0x2,'height':Ie,'width':Ie,'fill':_0x1d81fa||_0x489437(_0x510215[_0x4f14b3(0x1d8)],0x0),'strokeWidth':0x0,'stroke':_0x1d81fa||_0x489437(_0x510215[_0x4f14b3(0x1d8)],0x0),'evented':!0x1});this['_anchorDot']=_0x327fe0,this['_scene'][_0x4f14b3(0x23d)](_0x327fe0,_0x4c789a);const _0x57e51d=new ue(ve+_0x4e19c0[_0x4f14b3(0x1e3)](X),{'left':_0x1112dd+_0x32b1d3-_0xb88f8e,'top':_0x702f01+_0x2ba758-te,'text':_0x4c8f56,'color':_0x1d81fa});this[_0x4f14b3(0x19d)]=_0x57e51d,this[_0x4f14b3(0x37b)][_0x4f14b3(0x23d)](_0x57e51d,_0x4c789a),this[_0x4f14b3(0x346)]=!0x1;}[_0x50820e(0x2f7)](){const _0x5ba7a9=_0x50820e,_0x163f33=this[_0x5ba7a9(0x35f)][_0x5ba7a9(0x2b5)][_0x5ba7a9(0x19e)](()=>{const _0x50deba=_0x5ba7a9;this[_0x50deba(0x346)]=!0x0;}),_0x54b09c=this[_0x5ba7a9(0x35f)][_0x5ba7a9(0x21a)][_0x5ba7a9(0x19e)](()=>{const _0x587171=_0x5ba7a9;this[_0x587171(0x22d)]&&clearTimeout(this[_0x587171(0x22d)]),this[_0x587171(0x22d)]=setTimeout(()=>{const _0x5716f2=_0x587171;this[_0x5716f2(0x346)]=!0x1;},0x7d0);});return()=>{const _0xa69952=_0x5ba7a9;_0x163f33[_0xa69952(0x2d0)](),_0x54b09c[_0xa69952(0x2d0)]();};}[_0x50820e(0x1dc)](_0x4290d7,_0x4774cb,_0x2d8fe4,_0x45485b){const _0x282ca3=_0x50820e,_0x3aa597=new _0x2d7b08(_0x4290d7)['setAlpha'](0.2)['toRgbString'](),_0x5d5a17=new _0x315fc7(Ti+_0x4e19c0[_0x282ca3(0x1e3)](X),{'pointsGroup':_0x4774cb,'fill':_0x3aa597||_0x489437(_0x510215[_0x282ca3(0x1d8)],0.2),'left':_0x2d8fe4,'top':_0x45485b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x282ca3(0x285)]['push'](_0x5d5a17),this['_scene'][_0x282ca3(0x23d)](_0x5d5a17,_0x4c789a);}[_0x50820e(0x191)](_0x27292b,_0x3a37bf,_0x51aa90,_0x28ef09){const _0x1ed820=_0x50820e,_0x38c5bf=new _0x2d7b08(_0x27292b)[_0x1ed820(0x1bd)](0.2)[_0x1ed820(0x2d9)](),_0x44159a=new _0x315fc7(Ri+_0x4e19c0[_0x1ed820(0x1e3)](X),{'pointsGroup':_0x3a37bf,'fill':_0x38c5bf||_0x489437(_0x510215['black'],0.2),'left':_0x51aa90,'top':_0x28ef09,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ed820(0x285)]['push'](_0x44159a),this[_0x1ed820(0x37b)][_0x1ed820(0x23d)](_0x44159a,_0x4c789a);}[_0x50820e(0x2f3)](_0x17369e){const _0x4a6117=_0x17369e[0x0],_0x2e3895=_0x4a6117[0x0],_0x21d04d=_0x4a6117[0x2],{x:_0x3498ee,y:_0x3e1588}=_0x2e3895,{x:_0x28b72f,y:_0x6353a3}=_0x21d04d;return{'left':_0x3498ee,'top':_0x3e1588,'width':_0x28b72f-_0x3498ee,'height':_0x6353a3-_0x3e1588};}[_0x50820e(0x280)](){const _0x3b4dd2=_0x50820e,{scaleX:_0x36e178,scaleY:_0x5a64d5}=this['_scene'][_0x3b4dd2(0x348)]();return Math[_0x3b4dd2(0x365)](_0x36e178,_0x5a64d5);}}var Pi=Object[_0x50820e(0x2ce)],wi=(_0x1d1c7a,_0x209e14,_0x311b64,_0x4395dd)=>{const _0x4ff81a=_0x50820e;for(var _0x3cd596=_0x4395dd>0x1?void 0x0:_0x4395dd?Pi(_0x209e14,_0x311b64):_0x209e14,_0x1f0b7=_0x1d1c7a[_0x4ff81a(0x23c)]-0x1,_0x4a8f03;_0x1f0b7>=0x0;_0x1f0b7--)(_0x4a8f03=_0x1d1c7a[_0x1f0b7])&&(_0x3cd596=_0x4a8f03(_0x3cd596)||_0x3cd596);return _0x3cd596;},Q=(_0x568156,_0x38c92b)=>(_0x595ed4,_0x4e8b9e)=>_0x38c92b(_0x595ed4,_0x4e8b9e,_0x568156);let Ue=class extends _0x31fdaa{constructor(_0x24a816,_0x5060ae,_0x271cca,_0x3d142b,_0x142945){const _0x306a84=_0x50820e;super(),_(this,_0x306a84(0x1de),[]),_(this,_0x306a84(0x306),[]),(this[_0x306a84(0x2d1)]=_0x24a816,this['_docSkeletonManagerService']=_0x5060ae,this[_0x306a84(0x20b)]=_0x271cca,this[_0x306a84(0x275)]=_0x3d142b,this[_0x306a84(0x215)]=_0x142945,this[_0x306a84(0x302)]());}[_0x50820e(0x302)](){const _0x5823f0=_0x50820e,_0x5b088f=this[_0x5823f0(0x2d1)]['unitId'],_0x3c1d67=this[_0x5823f0(0x1b2)];this[_0x5823f0(0x2ff)](_0xd6c142([this[_0x5823f0(0x20b)][_0x5823f0(0x234)](_0x5b088f),this[_0x5823f0(0x215)][_0x5823f0(0x241)]])[_0x5823f0(0x2f6)](_0x2e7f33(([_0x4dc961,_0x1d6819])=>({'skeleton':_0x3c1d67[_0x5823f0(0x1c2)](),'cursors':[..._0x4dc961[_0x5823f0(0x268)]()][_0x5823f0(0x202)](_0x57f4a8=>({..._0x57f4a8,'color':_0x1d6819[_0x57f4a8[_0x5823f0(0x2dd)]]}))})))[_0x5823f0(0x20c)](_0x5420ee=>{const _0x54c4c5=_0x5823f0;if(this[_0x54c4c5(0x1b4)](),_0x5420ee){const {skeleton:_0x588102,cursors:_0x2950c4}=_0x5420ee;this[_0x54c4c5(0x17c)](_0x588102,_0x2950c4);}})),this[_0x5823f0(0x300)](),this[_0x5823f0(0x1e0)]();}[_0x50820e(0x17c)](_0x1cab8f,_0x224403){const _0x3c7029=_0x50820e,{scene:_0xa54f2d,mainComponent:_0x15a43c}=this[_0x3c7029(0x2d1)],_0x27daed=_0x224403[_0x3c7029(0x2bb)](_0x48eb21=>new tt(_0x48eb21,_0xa54f2d,_0x1cab8f,_0x15a43c));this[_0x3c7029(0x1de)]=_0x27daed,this[_0x3c7029(0x306)]=_0x224403;}['_refreshCollabCursors'](){const _0xcb78b9=_0x50820e;this['_removeCollabCursors']();const {scene:_0x4fe764,mainComponent:_0x4345d8}=this[_0xcb78b9(0x2d1)],_0x553281=this[_0xcb78b9(0x1b2)][_0xcb78b9(0x1c2)](),_0xbc3224=this[_0xcb78b9(0x306)][_0xcb78b9(0x2bb)](_0x55513a=>new tt(_0x55513a,_0x4fe764,_0x553281,_0x4345d8));this['_cursorShapes']=_0xbc3224;}[_0x50820e(0x1b4)](){const _0x3d99ef=_0x50820e;this[_0x3d99ef(0x1de)][_0x3d99ef(0x35c)](_0x28a876=>_0x28a876[_0x3d99ef(0x16e)]()),this[_0x3d99ef(0x1de)]=[];}[_0x50820e(0x1e0)](){const _0x57a62d=_0x50820e,_0x2e80fc=[_0x414369['id']];this[_0x57a62d(0x2ff)](this['_commandService'][_0x57a62d(0x2a3)](_0x3b0367=>{const _0x28ff49=_0x57a62d;_0x2e80fc[_0x28ff49(0x1c4)](_0x3b0367['id'])&&_0x3b0367['params'][_0x28ff49(0x377)]===this[_0x28ff49(0x2d1)][_0x28ff49(0x377)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x31d09a=_0x50820e;this[_0x31d09a(0x2ff)](_0x146355(this[_0x31d09a(0x2d1)][_0x31d09a(0x1a9)][_0x31d09a(0x255)])['pipe'](_0x5de611(_0x13c901=>_0x13c901[_0x31d09a(0x27a)]===_0x1fb592[_0x31d09a(0x314)]),_0x29c020(0x10))[_0x31d09a(0x20c)](()=>{const _0x1fa066=_0x31d09a;this[_0x1fa066(0x335)]();}));}};Ue=wi([Q(0x1,_0xbe4765(_0x378ca5)),Q(0x2,_0xbe4765(H)),Q(0x3,_0x55829e),Q(0x4,_0xbe4765(_0x1fad6b))],Ue);const Ui=0x1,Li=1.5;class Ai extends _0x2aea1b{constructor(_0x2bd038,_0x5ab904){const _0x12c7b0=_0x50820e;super(_0x2bd038,_0x5ab904),_(this,'_color'),_(this,_0x12c7b0(0x2fd),!0x1),_(this,_0x12c7b0(0x323)),_(this,_0x12c7b0(0x246),''),_(this,_0x12c7b0(0x265),_0x12c7b0(0x1ce)),_(this,_0x12c7b0(0x2ab)),(_0x5ab904&&this[_0x12c7b0(0x2e9)](_0x5ab904),this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x12c7b0(0x19e)](()=>this[_0x12c7b0(0x2e9)]({'hovered':!0x1})));}['setShapeProps'](_0x42b92f){const _0x4039e4=_0x50820e;var _0xdf586f,_0x1d8b12,_0x150cd4,_0x5870b1,_0x3733dc,_0x3e997a;this['_color']=(_0xdf586f=_0x42b92f['color'])!=null?_0xdf586f:this[_0x4039e4(0x1e2)],this[_0x4039e4(0x2fd)]=(_0x1d8b12=_0x42b92f[_0x4039e4(0x2fa)])!=null?_0x1d8b12:this[_0x4039e4(0x2fd)],this[_0x4039e4(0x323)]=(_0x150cd4=_0x42b92f[_0x4039e4(0x2d6)])!=null?_0x150cd4:this[_0x4039e4(0x323)],this['_name']=(_0x5870b1=_0x42b92f[_0x4039e4(0x36c)])!=null?_0x5870b1:this[_0x4039e4(0x246)],this[_0x4039e4(0x265)]=(_0x3733dc=_0x42b92f[_0x4039e4(0x288)])!=null?_0x3733dc:this['_labelPosition'],this[_0x4039e4(0x2ab)]=(_0x3e997a=_0x42b92f['backgroundColor'])!=null?_0x3e997a:this[_0x4039e4(0x2ab)],this[_0x4039e4(0x21f)]({'width':_0x42b92f[_0x4039e4(0x2df)],'height':_0x42b92f[_0x4039e4(0x199)]});}[_0x50820e(0x22c)](_0x5a0b45){const _0x390fc7=_0x50820e,{row:_0x517459,column:_0x53f836}=_0x5a0b45;if(_0x517459>=this[_0x390fc7(0x323)][_0x390fc7(0x368)]&&_0x517459<=this[_0x390fc7(0x323)]['endRow']&&_0x53f836>=this[_0x390fc7(0x323)][_0x390fc7(0x304)]&&_0x53f836<=this[_0x390fc7(0x323)][_0x390fc7(0x2c1)]){this[_0x390fc7(0x2e9)]({'hovered':!0x0});return;}this[_0x390fc7(0x2e9)]({'hovered':!0x1});}['triggerDblclick'](_0x2ffdf7){return!0x1;}[_0x50820e(0x25e)](_0x1794e6){const _0x2fbf61=_0x50820e;_0x1d3ca3['drawWith'](_0x1794e6,{'width':this['width'],'height':this[_0x2fbf61(0x199)],'strokeWidth':Li,'stroke':this[_0x2fbf61(0x1e2)],'evented':!0x1,'fill':this[_0x2fbf61(0x2ab)]}),this[_0x2fbf61(0x2fd)]&&(_0x1794e6[_0x2fbf61(0x266)](),_0x1794e6[_0x2fbf61(0x32c)](0x1,0x0,0x0,0x1,this['width'],this[_0x2fbf61(0x265)]==='bottom'?0x0:-0x14),ue[_0x2fbf61(0x1ac)](_0x1794e6,{'text':this[_0x2fbf61(0x246)],'color':this[_0x2fbf61(0x1e2)]}),_0x1794e6['restore']());}}var yi=Object['getOwnPropertyDescriptor'],$i=(_0x4f4b06,_0x105306,_0x25634c,_0x476c77)=>{const _0x33b365=_0x50820e;for(var _0x13e34a=_0x476c77>0x1?void 0x0:_0x476c77?yi(_0x105306,_0x25634c):_0x105306,_0x2576be=_0x4f4b06[_0x33b365(0x23c)]-0x1,_0x4ebbd8;_0x2576be>=0x0;_0x2576be--)(_0x4ebbd8=_0x4f4b06[_0x2576be])&&(_0x13e34a=_0x4ebbd8(_0x13e34a)||_0x13e34a);return _0x13e34a;},pe=(_0x328f7a,_0x4f0e99)=>(_0x59fc78,_0x233220)=>_0x4f0e99(_0x59fc78,_0x233220,_0x328f7a);const xi=0x1389;let Le=class extends _0x31fdaa{constructor(_0x348749,_0x4a6e49,_0x1be30f,_0x153a6c){const _0x13da2d=_0x50820e;super(),_(this,_0x13da2d(0x306),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x348749,this[_0x13da2d(0x220)]=_0x4a6e49,this[_0x13da2d(0x20b)]=_0x1be30f,this['_themeService']=_0x153a6c,this[_0x13da2d(0x302)]());}[_0x50820e(0x302)](){const _0x18a0fa=_0x50820e;this[_0x18a0fa(0x220)]['currentSkeleton$']['pipe'](_0x4daef1(this[_0x18a0fa(0x2e0)]),_0x2017c6(_0x45e768=>{const _0x54ab27=_0x18a0fa;if(_0x45e768){const _0x3bd94b=_0x45e768['sheetId'];return _0xd6c142(this[_0x54ab27(0x20b)][_0x54ab27(0x234)](this[_0x54ab27(0x2d1)][_0x54ab27(0x377)]),this[_0x54ab27(0x215)]['currentTheme$'])[_0x54ab27(0x2f6)](_0x2e7f33(([_0x1d0472,_0x5cf61a])=>{const _0x31d1ba=_0x54ab27,_0x1860ae=new Map();return _0x1d0472[_0x31d1ba(0x35c)]((_0x58cfbb,_0x104be0)=>{const _0x44cf88=_0x31d1ba;if(_0x58cfbb[_0x44cf88(0x1e4)]===_0x3bd94b){const _0x5eabad={..._0x58cfbb};_0x5eabad['color']=_0x5cf61a[_0x58cfbb[_0x44cf88(0x2dd)]],_0x1860ae[_0x44cf88(0x2a2)](_0x104be0,_0x5eabad);}}),{'skeleton':_0x45e768,'cursors':_0x1860ae};}));}return _0x1867f6({'skeleton':null,'cursors':new Map()});}))[_0x18a0fa(0x20c)](({skeleton:_0xbca1ff,cursors:_0x9de870})=>{const _0x5d7063=_0x18a0fa;this[_0x5d7063(0x1b4)](),_0xbca1ff&&this[_0x5d7063(0x17c)](_0xbca1ff,_0x9de870);}),this[_0x18a0fa(0x220)][_0x18a0fa(0x1f7)][_0x18a0fa(0x20c)](_0x9d7693=>{const _0x3a37ae=_0x18a0fa;if(_0x9d7693==null)return;const {skeleton:_0x5e5bd7}=_0x9d7693,{scene:_0x33c156}=this[_0x3a37ae(0x2d1)];_0x33c156[_0x3a37ae(0x277)][_0x3a37ae(0x19e)](_0x38b7ab(_0x39d807=>{const _0x5bf5ef=_0x3a37ae;var _0x1e26b7,_0x4add46;const {offsetX:_0x11cd9d,offsetY:_0x3b0448}=_0x39d807,{x:_0x3b43cc,y:_0x3179b7}=_0x33c156['getRelativeToViewportCoord'](_0x52b21e['FromArray']([_0x11cd9d,_0x3b0448])),{scaleX:_0x49c605,scaleY:_0x4df506}=_0x33c156[_0x5bf5ef(0x348)](),_0x4b3940=_0x33c156[_0x5bf5ef(0x18d)](_0x180fa9[_0x5bf5ef(0x338)]),_0x154ffd=_0x33c156[_0x5bf5ef(0x378)](_0x52b21e[_0x5bf5ef(0x328)]([_0x3b43cc,_0x3179b7]),_0x4b3940),_0x3f26f6=_0x5e5bd7[_0x5bf5ef(0x22f)](_0x11cd9d,_0x3b0448,_0x49c605,_0x4df506,_0x154ffd);((_0x1e26b7=this[_0x5bf5ef(0x218)])==null?void 0x0:_0x1e26b7[_0x5bf5ef(0x2ea)])===_0x3f26f6['column']&&((_0x4add46=this[_0x5bf5ef(0x218)])==null?void 0x0:_0x4add46[_0x5bf5ef(0x186)])===_0x3f26f6[_0x5bf5ef(0x186)]||this[_0x5bf5ef(0x306)][_0x5bf5ef(0x35c)](_0x3c18b7=>{const _0x565987=_0x5bf5ef;_0x3c18b7[_0x565987(0x22c)](_0x3f26f6);});},0x64));});}[_0x50820e(0x17c)](_0xb65558,_0xc7d6cc){const _0x54e525=_0x50820e;var _0x49f859;const _0x27c5b3=(_0x49f859=this[_0x54e525(0x220)]['getCurrent']())==null?void 0x0:_0x49f859[_0x54e525(0x25f)];if(!_0x27c5b3)return;const _0x2aef2e=this['_getSheetObject']();if(!_0x2aef2e)return;this[_0x54e525(0x306)][_0x54e525(0x35c)](_0x5088fe=>{const _0x23e205=_0x54e525;_0x5088fe[_0x23e205(0x367)]();});const {scene:_0x1217eb}=_0x2aef2e,_0x42642b=Bi(Array['from'](_0xc7d6cc[_0x54e525(0x268)]()))[_0x54e525(0x2bb)](_0x206eef=>{const _0x14ba0c=_0x54e525,{color:_0x13f0f8,range:_0x505508,name:_0x402962,selection:_0x2098bc,sheetID:_0x18354c}=_0x206eef,{startColumn:_0x318581,startRow:_0x24dec8,endColumn:_0x4adc80,endRow:_0x18b29a}=_0x505508,_0x280168=_0x13d3b1(_0x24dec8,_0x318581,_0x1217eb,_0x27c5b3),_0x1f3958=_0x13d3b1(_0x18b29a,_0x4adc80,_0x1217eb,_0x27c5b3),{columnHeaderHeightAndMarginTop:_0x26b34f}=_0x27c5b3,{startX:_0x6bad40,startY:_0x5d3d8a}=_0x280168,{endX:_0x3c722a,endY:_0x58b581}=_0x1f3958,_0x3ea51b=_0x3c722a-_0x6bad40,_0x5edc60=_0x58b581-_0x5d3d8a,_0x37b840={'labelPosition':_0x5d3d8a-_0x26b34f>=te?_0x14ba0c(0x1ce):_0x14ba0c(0x34f),'sheetID':_0x18354c,'range':_0x505508,'color':_0x13f0f8,'name':_0x402962,'selection':_0x2098bc,'left':_0x6bad40,'top':_0x5d3d8a,'width':_0x3ea51b,'height':_0x5edc60,'evented':!0x1,'zIndex':xi};return new Ai(_0x402962,_0x37b840);});_0x1217eb[_0x54e525(0x1bb)](_0x42642b,Ui),this[_0x54e525(0x306)]=new Set(_0x42642b);}[_0x50820e(0x1b4)](){const _0x1d7224=_0x50820e;var _0x33894f;(_0x33894f=this['_cursors'])==null||_0x33894f[_0x1d7224(0x35c)](_0x3ab2e8=>_0x3ab2e8[_0x1d7224(0x16e)]());}[_0x50820e(0x25b)](){const _0x18a736=_0x50820e;return _0x55c921(this[_0x18a736(0x2d1)]['unit'],this['_context']);}};Le=$i([pe(0x1,_0xbe4765(_0x5dd4b1)),pe(0x2,_0xbe4765(H)),pe(0x3,_0xbe4765(_0x1fad6b))],Le);function Bi(_0x568835){const _0x5715a6=_0x50820e,_0x381d2f=new Map();return _0x568835[_0x5715a6(0x35c)](_0x3daa00=>{const _0x2ed15a=_0x5715a6;if(_0x381d2f[_0x2ed15a(0x240)](_0x3daa00[_0x2ed15a(0x332)])){const _0x3f8b30=_0x381d2f[_0x2ed15a(0x28b)](_0x3daa00['selection']);_0x3f8b30[_0x2ed15a(0x36c)]+=',\x20'+_0x3daa00['name'];}else _0x381d2f[_0x2ed15a(0x2a2)](_0x3daa00[_0x2ed15a(0x332)],_0x3daa00);}),Array[_0x5715a6(0x1f3)](_0x381d2f['values']());}var I=function(){const _0x232176=_0x50820e;return I=Object[_0x232176(0x1a2)]||function(_0x4d9cf7){const _0xce2a20=_0x232176;for(var _0x11618f,_0x15f09b=0x1,_0x5a7782=arguments[_0xce2a20(0x23c)];_0x15f09b<_0x5a7782;_0x15f09b++){_0x11618f=arguments[_0x15f09b];for(var _0x593ce9 in _0x11618f)Object[_0xce2a20(0x21e)][_0xce2a20(0x274)]['call'](_0x11618f,_0x593ce9)&&(_0x4d9cf7[_0x593ce9]=_0x11618f[_0x593ce9]);}return _0x4d9cf7;},I[_0x232176(0x2cb)](this,arguments);},ki=function(_0x1f43a0,_0x7a9900){const _0x4adedb=_0x50820e;var _0x3c1f33={};for(var _0x3da96e in _0x1f43a0)Object[_0x4adedb(0x21e)][_0x4adedb(0x274)][_0x4adedb(0x31f)](_0x1f43a0,_0x3da96e)&&_0x7a9900[_0x4adedb(0x1ca)](_0x3da96e)<0x0&&(_0x3c1f33[_0x3da96e]=_0x1f43a0[_0x3da96e]);if(_0x1f43a0!=null&&typeof Object[_0x4adedb(0x1e8)]==_0x4adedb(0x2bf)){for(var _0x1042c3=0x0,_0x3da96e=Object[_0x4adedb(0x1e8)](_0x1f43a0);_0x1042c3<_0x3da96e[_0x4adedb(0x23c)];_0x1042c3++)_0x7a9900['indexOf'](_0x3da96e[_0x1042c3])<0x0&&Object[_0x4adedb(0x21e)][_0x4adedb(0x2fe)][_0x4adedb(0x31f)](_0x1f43a0,_0x3da96e[_0x1042c3])&&(_0x3c1f33[_0x3da96e[_0x1042c3]]=_0x1f43a0[_0x3da96e[_0x1042c3]]);}return _0x3c1f33;},We=_0x3a8ec5(function(_0x9251dd,_0x231725){const _0x421cd6=_0x50820e;var _0x327f0f=_0x9251dd[_0x421cd6(0x1be)],_0x397920=_0x9251dd['id'],_0x537a2e=_0x9251dd[_0x421cd6(0x295)],_0x1d8485=_0x9251dd[_0x421cd6(0x21b)],_0x2fa780=ki(_0x9251dd,[_0x421cd6(0x1be),'id',_0x421cd6(0x295),'extend']),_0x2942a5=_0x421cd6(0x1af)[_0x421cd6(0x30e)](_0x397920,'\x20')[_0x421cd6(0x30e)](_0x537a2e||'')[_0x421cd6(0x242)](),_0x13bf65=_0x217c65('_'[_0x421cd6(0x30e)](Wi()));return Nt(_0x327f0f,''[_0x421cd6(0x30e)](_0x397920),{'defIds':_0x327f0f[_0x421cd6(0x227)],'idSuffix':_0x13bf65[_0x421cd6(0x1fa)]},I({'ref':_0x231725,'className':_0x2942a5},_0x2fa780),_0x1d8485);});function Nt(_0x978dcb,_0x1bb6d6,_0x18dc96,_0xe469a7,_0x451af3){const _0x3004a3=_0x50820e;return _0x18a497(_0x978dcb['tag'],I(I({'key':_0x1bb6d6},Hi(_0x978dcb,_0x18dc96,_0x451af3)),_0xe469a7),(ji(_0x978dcb,_0x18dc96)[_0x3004a3(0x244)]||[])[_0x3004a3(0x2bb)](function(_0x11fd68,_0x545a71){const _0x23bc8b=_0x3004a3;return Nt(_0x11fd68,''[_0x23bc8b(0x30e)](_0x1bb6d6,'-')['concat'](_0x978dcb[_0x23bc8b(0x2ee)],'-')[_0x23bc8b(0x30e)](_0x545a71),_0x18dc96,void 0x0,_0x451af3);}));}function Hi(_0x240d54,_0x3434f3,_0xc36d33){const _0x5110ea=_0x50820e;var _0x21210f=I({},_0x240d54[_0x5110ea(0x343)]);_0xc36d33!=null&&_0xc36d33['colorChannel1']&&_0x21210f[_0x5110ea(0x20e)]===_0x5110ea(0x1b5)&&(_0x21210f['fill']=_0xc36d33['colorChannel1']),_0x240d54[_0x5110ea(0x2ee)]===_0x5110ea(0x1a6)&&_0x21210f['id']&&(_0x21210f['id']=_0x21210f['id']+_0x3434f3[_0x5110ea(0x360)]),Object[_0x5110ea(0x211)](_0x21210f)['forEach'](function(_0x28a382){const _0x2f2955=_0x5110ea;var _0x1c7b7d=_0x28a382[0x0],_0x3fc3e4=_0x28a382[0x1];_0x1c7b7d===_0x2f2955(0x1a6)&&typeof _0x3fc3e4==_0x2f2955(0x2e7)&&(_0x21210f[_0x1c7b7d]=_0x3fc3e4[_0x2f2955(0x321)](/url\(#(.*)\)/,_0x2f2955(0x1aa)['concat'](_0x3434f3[_0x2f2955(0x360)],')')));});var _0x275dae=_0x3434f3[_0x5110ea(0x227)];return!_0x275dae||_0x275dae[_0x5110ea(0x23c)]===0x0||(_0x240d54[_0x5110ea(0x2ee)]==='use'&&_0x21210f['xlink:href']&&(_0x21210f[_0x5110ea(0x1c6)]=_0x21210f['xlink:href']+_0x3434f3[_0x5110ea(0x360)]),Object[_0x5110ea(0x211)](_0x21210f)[_0x5110ea(0x35c)](function(_0x29f1db){const _0x533737=_0x5110ea;var _0x21af7f=_0x29f1db[0x0],_0x4d2da5=_0x29f1db[0x1];typeof _0x4d2da5==_0x533737(0x2e7)&&(_0x21210f[_0x21af7f]=_0x4d2da5[_0x533737(0x321)](/url\(#(.*)\)/,_0x533737(0x1aa)[_0x533737(0x30e)](_0x3434f3[_0x533737(0x360)],')')));})),_0x21210f;}function ji(_0x2fc45a,_0x5ccdd2){const _0x48dc7e=_0x50820e;var _0x18b20a,_0x94bb45=_0x5ccdd2[_0x48dc7e(0x227)];return!_0x94bb45||_0x94bb45[_0x48dc7e(0x23c)]===0x0?_0x2fc45a:_0x2fc45a[_0x48dc7e(0x2ee)]==='defs'&&(!((_0x18b20a=_0x2fc45a[_0x48dc7e(0x244)])===null||_0x18b20a===void 0x0)&&_0x18b20a[_0x48dc7e(0x23c)])?I(I({},_0x2fc45a),{'children':_0x2fc45a[_0x48dc7e(0x244)]['map'](function(_0xdccf0a){const _0x2f2eb5=_0x48dc7e;return typeof _0xdccf0a[_0x2f2eb5(0x343)]['id']==_0x2f2eb5(0x2e7)&&_0x94bb45&&_0x94bb45[_0x2f2eb5(0x1ca)](_0xdccf0a[_0x2f2eb5(0x343)]['id'])>-0x1?I(I({},_0xdccf0a),{'attrs':I(I({},_0xdccf0a['attrs']),{'id':_0xdccf0a[_0x2f2eb5(0x343)]['id']+_0x5ccdd2[_0x2f2eb5(0x360)]})}):_0xdccf0a;})}):_0x2fc45a;}function Wi(){const _0x3020e7=_0x50820e;return Math[_0x3020e7(0x2a7)]()[_0x3020e7(0x192)](0x24)[_0x3020e7(0x1a3)](0x2,0x8);}We[_0x50820e(0x2b9)]=_0x50820e(0x37a);var Fi={'tag':_0x50820e(0x25d),'attrs':{'fill':_0x50820e(0x272),'viewBox':_0x50820e(0x189),'width':_0x50820e(0x30c),'height':_0x50820e(0x30c)},'children':[{'tag':'g','attrs':{'clipPath':_0x50820e(0x29f)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x50820e(0x2b8),'strokeLinecap':_0x50820e(0x2cc),'strokeLinejoin':_0x50820e(0x2cc),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x50820e(0x1e1),'attrs':{'id':_0x50820e(0x329)},'children':[{'tag':_0x50820e(0x24d),'attrs':{'fill':'#fff','d':_0x50820e(0x1f4)}}]}]}],'defIds':[_0x50820e(0x329)]},Mt=_0x3a8ec5(function(_0xa42936,_0x5e1dc1){const _0x1c1e0d=_0x50820e;return _0x18a497(We,Object['assign']({},_0xa42936,{'id':_0x1c1e0d(0x32e),'ref':_0x5e1dc1,'icon':Fi}));});Mt[_0x50820e(0x2b9)]=_0x50820e(0x32f);var Vi={'tag':_0x50820e(0x25d),'attrs':{'fill':'none','viewBox':_0x50820e(0x347),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x50820e(0x271)},'children':[{'tag':'path','attrs':{'stroke':_0x50820e(0x175),'d':_0x50820e(0x1da),'strokeLinecap':'round','strokeLinejoin':_0x50820e(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x50820e(0x35e),'attrs':{},'children':[{'tag':_0x50820e(0x1e1),'attrs':{'id':_0x50820e(0x30a)},'children':[{'tag':_0x50820e(0x24d),'attrs':{'fill':_0x50820e(0x352),'d':_0x50820e(0x1f4),'transform':_0x50820e(0x247)}}]}]}],'defIds':[_0x50820e(0x30a)]},Pt=_0x3a8ec5(function(_0x32556a,_0x5e6ee3){const _0x26094c=_0x50820e;return _0x18a497(We,Object[_0x26094c(0x1a2)]({},_0x32556a,{'id':_0x26094c(0x17a),'ref':_0x5e6ee3,'icon':Vi}));});Pt[_0x50820e(0x2b9)]=_0x50820e(0x233);const Yi=_0x50820e(0x2c7),Xi=_0x50820e(0x263),Gi=_0x50820e(0x29b),Ki=_0x50820e(0x341),zi='univer-offline',G={'onlineStatusIcon':Yi,'onlineStatusTitle':Xi,'onlineStatus':Gi,'online':Ki,'offline':zi};function Ji(_0x21e52e){const _0x350f49=_0x50820e;switch(_0x21e52e){case _0x2b5334[_0x350f49(0x2b7)]:return'collabStatus.offline';case _0x2b5334[_0x350f49(0x219)]:return _0x350f49(0x1ec);case _0x2b5334[_0x350f49(0x356)]:return _0x350f49(0x28d);case _0x2b5334[_0x350f49(0x170)]:return'collabStatus.notCollab';case _0x2b5334[_0x350f49(0x363)]:case _0x2b5334[_0x350f49(0x376)]:return _0x350f49(0x35d);case _0x2b5334[_0x350f49(0x228)]:case _0x2b5334['PENDING']:return _0x350f49(0x31e);}}function Zi(_0x2e337a){const _0x5e3bc4=_0x50820e,{status$:_0x221bcc}=_0x2e337a,_0x3311c4=_0x206c75(_0x221bcc,_0x2b5334[_0x5e3bc4(0x170)]),_0x33c8f3=_0x47e99a(_0x57bae6),_0x456e22=_0x47e99a(_0x35be17),_0x31e8eb=_0x3311c4!==_0x2b5334[_0x5e3bc4(0x2b7)],_0x27e999=_0x33c8f3['t'](Ji(_0x3311c4)),_0x247a48=_0x327375(G[_0x5e3bc4(0x1ab)],{[G[_0x5e3bc4(0x374)]]:_0x31e8eb,[G[_0x5e3bc4(0x2de)]]:!_0x31e8eb}),_0xb84a3=_0x31e8eb?_0x1692e1(Pt,{}):_0x1692e1(Mt,{}),_0x178d2b=_0x4ef53a(()=>{_0x31e8eb||_0x456e22['reconnect']();},[_0x31e8eb,_0x456e22]);function _0x25f76e(){const _0x51cca3=_0x5e3bc4;return _0x12f720('div',{'className':_0x327375(_0x247a48,_0x51cca3(0x1ad)),'onClick':_0x178d2b,'children':[_0x1692e1('div',{'className':G[_0x51cca3(0x290)],'children':_0xb84a3}),_0x1692e1(_0x51cca3(0x1d3),{'className':G[_0x51cca3(0x33a)],'children':_0x27e999})]});}return _0x31e8eb?_0x25f76e():_0x1692e1(_0x3e12c8,{'title':_0x33c8f3['t']('collab-client.tooltip.reconnect'),'children':_0x25f76e()});}var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x1f2a24,_0x272dff,_0x31a8af,_0x5124e2)=>{for(var _0x2b49fb=_0x5124e2>0x1?void 0x0:_0x5124e2?Qi(_0x272dff,_0x31a8af):_0x272dff,_0x52165d=_0x1f2a24['length']-0x1,_0xbefecd;_0x52165d>=0x0;_0x52165d--)(_0xbefecd=_0x1f2a24[_0x52165d])&&(_0x2b49fb=_0xbefecd(_0x2b49fb)||_0x2b49fb);return _0x2b49fb;},q=(_0x2b9633,_0x511785)=>(_0x2d6750,_0x1fcf28)=>_0x511785(_0x2d6750,_0x1fcf28,_0x2b9633);let se=class extends _0x4c8c9a{constructor(_0x5f1bfd,_0x517e36,_0x17a369,_0x366a08){const _0x58aa74=_0x50820e;super(),_(this,'_status$',new _0xf8530c(_0x2b5334['NOT_COLLAB'])),(this['_univerInstanceService']=_0x5f1bfd,this[_0x58aa74(0x248)]=_0x517e36,this['_collaborationController']=_0x17a369,this[_0x58aa74(0x2a1)]=_0x366a08,this[_0x58aa74(0x1f6)](),this['_initStatusListener']());}[_0x50820e(0x243)](){const _0x38c27a=_0x50820e;this['disposeWithMe'](this[_0x38c27a(0x1f8)]['focused$'][_0x38c27a(0x2f6)](_0x37bb5d(()=>{const _0x354f70=_0x38c27a,_0xa837e=this[_0x354f70(0x1f8)][_0x354f70(0x230)]();return _0xa837e?this[_0x354f70(0x1a0)][_0x354f70(0x34b)](_0xa837e[_0x354f70(0x19f)]()):_0x1867f6(null);}),_0x37bb5d(_0xa0b0ce=>_0xa0b0ce?_0xa0b0ce[_0x38c27a(0x267)]:_0x1867f6(_0x2b5334[_0x38c27a(0x170)])))[_0x38c27a(0x20c)](_0x2ff6fe=>{const _0x245739=_0x38c27a;this['_status$'][_0x245739(0x313)](_0x2ff6fe);}));}[_0x50820e(0x1f6)](){const _0x31aa29=_0x50820e;this[_0x31aa29(0x2ff)](this[_0x31aa29(0x2a1)]['registerComponent'](_0x32e57b[_0x31aa29(0x354)],()=>_0x4585ae(en({'status$':this['_status$']['asObservable']()}),this[_0x31aa29(0x248)])));}};se=qi([q(0x0,_0x9adc5c),q(0x1,_0xbe4765(_0x10647c)),q(0x2,_0xbe4765(_0x5a2a01)),q(0x3,_0x44e7e1)],se);function en(_0x14c9f9){const {status$:_0x4050d4}=_0x14c9f9;return function(){return _0x1692e1(Zi,{'status$':_0x4050d4});};}var tn=Object[_0x50820e(0x2ce)],sn=(_0x457c0e,_0x26d3d3,_0x27ab34,_0x2c0ea5)=>{const _0x118442=_0x50820e;for(var _0x4efc5c=_0x2c0ea5>0x1?void 0x0:_0x2c0ea5?tn(_0x26d3d3,_0x27ab34):_0x26d3d3,_0x4439d2=_0x457c0e[_0x118442(0x23c)]-0x1,_0x3168de;_0x4439d2>=0x0;_0x4439d2--)(_0x3168de=_0x457c0e[_0x4439d2])&&(_0x4efc5c=_0x3168de(_0x4efc5c)||_0x4efc5c);return _0x4efc5c;},B=(_0x3d3fdf,_0x21ad74)=>(_0x328d89,_0x3dd954)=>_0x21ad74(_0x328d89,_0x3dd954,_0x3d3fdf);let ie=class extends _0x4c8c9a{constructor(_0x2b504b,_0x15d693,_0x3bbdab,_0x10f090,_0x15c530,_0x29ab08){const _0x525740=_0x50820e;super(),this[_0x525740(0x284)]=_0x2b504b,this[_0x525740(0x185)]=_0x15d693,this['_collaborationUIEventService']=_0x3bbdab,this[_0x525740(0x2c6)]=_0x10f090,this[_0x525740(0x2fb)]=_0x15c530,this[_0x525740(0x32a)]=_0x29ab08,this[_0x525740(0x331)](),this[_0x525740(0x30b)]();}[_0x50820e(0x331)](){const _0x1bb270=_0x50820e;this['disposeWithMe'](this[_0x1bb270(0x284)]['registerBeforeClose'](()=>{const _0x151278=_0x1bb270;if(this[_0x151278(0x185)][_0x151278(0x20a)][_0x151278(0x36a)])return this[_0x151278(0x32a)]['t'](_0x151278(0x26e));}));}[_0x50820e(0x30b)](){const _0x1bd2c5=_0x50820e;this[_0x1bd2c5(0x2ff)](this[_0x1bd2c5(0x262)][_0x1bd2c5(0x238)][_0x1bd2c5(0x20c)](_0x5a51ab=>{const _0x7b4ac5=_0x1bd2c5;_0x5a51ab['id']===_0x3cd63a[_0x7b4ac5(0x2ec)]&&this['_messageService'][_0x7b4ac5(0x318)]({'type':_0x5e3919[_0x7b4ac5(0x2a8)],'content':this[_0x7b4ac5(0x32a)]['t'](_0x7b4ac5(0x34c))}),_0x5a51ab['id']===_0x3cd63a[_0x7b4ac5(0x177)]&&this[_0x7b4ac5(0x2c6)]['show']({'type':_0x5e3919[_0x7b4ac5(0x2a8)],'content':this['_localeService']['t'](_0x7b4ac5(0x2f1))}),_0x5a51ab['id']===_0x3cd63a[_0x7b4ac5(0x2c8)]&&this[_0x7b4ac5(0x2fb)][_0x7b4ac5(0x318)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x7b4ac5(0x32a)]['t'](_0x7b4ac5(0x198)),'type':_0x7b4ac5(0x1ea),'duration':0x0}),_0x5a51ab['id']===_0x3cd63a['CONFLICT']&&this[_0x7b4ac5(0x2c6)][_0x7b4ac5(0x318)]({'type':_0x5e3919[_0x7b4ac5(0x33e)],'content':this[_0x7b4ac5(0x32a)]['t']('collaboration.closeRoom')+'('+_0x5a51ab[_0x7b4ac5(0x286)]+')'}),_0x5a51ab['id']===_0x3cd63a['JOIN_ROOM_FAILED']&&this[_0x7b4ac5(0x2c6)]['show']({'type':_0x5e3919[_0x7b4ac5(0x2a8)],'content':this[_0x7b4ac5(0x32a)]['t'](_0x5a51ab[_0x7b4ac5(0x286)]||'')}),_0x5a51ab['id']===_0x3cd63a['SOCKET_FAILED_RETRY']&&this[_0x7b4ac5(0x2c6)]['show']({'type':_0x5e3919['Warning'],'content':this[_0x7b4ac5(0x32a)]['t']('session.will-retry')}),_0x5a51ab['id']===_0x3cd63a[_0x7b4ac5(0x1ee)]&&this[_0x7b4ac5(0x2c6)]['show']({'type':_0x5e3919[_0x7b4ac5(0x33e)],'content':this[_0x7b4ac5(0x32a)]['t']('session.connection-failed')}),_0x5a51ab['id']===_0x3cd63a[_0x7b4ac5(0x292)]&&this[_0x7b4ac5(0x2c6)][_0x7b4ac5(0x318)]({'type':_0x5e3919[_0x7b4ac5(0x33e)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};ie=sn([B(0x0,_0x4449f7),B(0x1,_0x17e842),B(0x2,_0xbe4765(_0x5ab706)),B(0x3,_0x4e2a68),B(0x4,_0x4d436c),B(0x5,_0xbe4765(_0x57bae6))],ie);const nn=_0x50820e(0x333),st={},wt=_0x4fbeb4(_0x50820e(0x26c));var rn=Object[_0x50820e(0x2ce)],on=(_0x37579d,_0x1fee2c,_0x53a634,_0x23ed42)=>{const _0x3ae52e=_0x50820e;for(var _0x948e89=_0x23ed42>0x1?void 0x0:_0x23ed42?rn(_0x1fee2c,_0x53a634):_0x1fee2c,_0x30a3a4=_0x37579d[_0x3ae52e(0x23c)]-0x1,_0xde4c5a;_0x30a3a4>=0x0;_0x30a3a4--)(_0xde4c5a=_0x37579d[_0x30a3a4])&&(_0x948e89=_0xde4c5a(_0x948e89)||_0x948e89);return _0x948e89;},K=(_0x5989f2,_0x55e015)=>(_0x4ba86e,_0xf9f47c)=>_0x55e015(_0x4ba86e,_0xf9f47c,_0x5989f2);let ne=class extends _0x31fdaa{constructor(_0x42c442,_0x3614a1,_0x356a66,_0x3d65c6,_0x2bf71b){const _0x2ec524=_0x50820e;super(),this['_urlService']=_0x42c442,this[_0x2ec524(0x24a)]=_0x3614a1,this[_0x2ec524(0x275)]=_0x356a66,this[_0x2ec524(0x27f)]=_0x3d65c6,_0x2bf71b?_0x2bf71b==null||_0x2bf71b['whenReady']()[_0x2ec524(0x214)](()=>this['_init']()):(this['_logService'][_0x2ec524(0x276)](_0x2ec524(0x217),_0x2ec524(0x232)),this[_0x2ec524(0x302)]());}async['_init'](){const _0xf65832=_0x50820e,_0x27ed04=this['_urlService'][_0xf65832(0x253)](_0xf65832(0x194)),_0x3d3862=this['_urlService']['getParam'](_0xf65832(0x27a)),_0x22af10=this[_0xf65832(0x1ef)][_0xf65832(0x253)]('subunit');if(!_0x27ed04||!_0x3d3862){this[_0xf65832(0x24a)][_0xf65832(0x276)](_0xf65832(0x217),_0xf65832(0x17d));return;}const _0x143f73=await this[_0xf65832(0x27f)][_0xf65832(0x26f)](_0x27ed04,Number(_0x3d3862),_0x22af10);_0x143f73&&_0x143f73 instanceof _0xdd695b&&this[_0xf65832(0x372)](_0x143f73);}async[_0x50820e(0x372)](_0x36ed47){const _0x373070=_0x50820e;await this[_0x373070(0x294)](_0x36ed47),_0x36ed47[_0x373070(0x2d2)][_0x373070(0x2f6)](_0x1ef568(this[_0x373070(0x2e0)]))['subscribe'](_0xd658ff=>{const _0x22864b=_0x373070;_0xd658ff&&this[_0x22864b(0x359)](_0xd658ff);}),this['_urlService'][_0x373070(0x184)][_0x373070(0x2f6)](_0x1ef568(this[_0x373070(0x2e0)]))['subscribe'](()=>this[_0x373070(0x294)](_0x36ed47));}[_0x50820e(0x359)](_0x282063,_0x426a62=!0x1){const _0x55a729=_0x50820e,_0x381481=this['_urlService']['getParam']('subunit');_0x282063[_0x55a729(0x2e5)]()!==_0x381481&&this[_0x55a729(0x1ef)][_0x55a729(0x2ef)](_0x55a729(0x1a7),_0x282063[_0x55a729(0x2e5)](),_0x426a62);}async[_0x50820e(0x294)](_0x3b4f36){const _0x985b18=_0x50820e;var _0x5daed3;const _0x47844b=this['_urlService'][_0x985b18(0x253)](_0x985b18(0x1a7));if(!_0x47844b||!_0x3b4f36[_0x985b18(0x27e)](_0x47844b)){const _0x30cc23=_0x3b4f36[_0x985b18(0x36f)]()[0x0],_0x2bcd54=_0x3b4f36[_0x985b18(0x27e)](_0x30cc23);if(!_0x2bcd54)return;this[_0x985b18(0x359)](_0x2bcd54,!0x0),await this[_0x985b18(0x275)][_0x985b18(0x27b)](_0x2be1be['id'],{'unitId':_0x3b4f36[_0x985b18(0x19f)](),'subUnitId':_0x30cc23});return;}((_0x5daed3=_0x3b4f36['getActiveSheet']())==null?void 0x0:_0x5daed3[_0x985b18(0x2e5)]())!==_0x47844b&&await this[_0x985b18(0x275)][_0x985b18(0x27b)](_0x2be1be['id'],{'unitId':_0x3b4f36[_0x985b18(0x19f)](),'subUnitId':_0x47844b});}};ne=on([K(0x0,wt),K(0x1,_0x14bb70),K(0x2,_0x55829e),K(0x3,_0xbe4765(_0x587614)),K(0x4,_0x561976(_0x334c05))],ne);var an=Object[_0x50820e(0x2ce)],cn=(_0x139d6b,_0x2e49eb,_0x13ad44,_0x403e81)=>{const _0x1ded53=_0x50820e;for(var _0x37e61f=_0x403e81>0x1?void 0x0:_0x403e81?an(_0x2e49eb,_0x13ad44):_0x2e49eb,_0x2a5dc4=_0x139d6b[_0x1ded53(0x23c)]-0x1,_0x277b6f;_0x2a5dc4>=0x0;_0x2a5dc4--)(_0x277b6f=_0x139d6b[_0x2a5dc4])&&(_0x37e61f=_0x277b6f(_0x37e61f)||_0x37e61f);return _0x37e61f;},Ce=(_0xd171ff,_0x3d1689)=>(_0x239a79,_0x1d0bb0)=>_0x3d1689(_0x239a79,_0x1d0bb0,_0xd171ff);let re=class{constructor(_0x59bf22,_0x3fbe7a,_0xf604b9){const _0x4b496e=_0x50820e;this[_0x4b496e(0x248)]=_0x59bf22,this[_0x4b496e(0x29c)]=_0x3fbe7a,this[_0x4b496e(0x229)]=_0xf604b9;}[_0x50820e(0x179)](_0x159dad){const _0x3c8ae6=_0x50820e;this[_0x3c8ae6(0x196)](_0x159dad),this[_0x3c8ae6(0x1df)](_0x159dad);}[_0x50820e(0x26b)](_0xc5cff1){const _0x4ed293=_0x50820e,{unitID:_0x26af06}=_0xc5cff1,_0x36a4c1=this['_renderManagerService'][_0x4ed293(0x2da)](_0x26af06)[_0x4ed293(0x32b)](_0x4e52dc),{redoCache:_0x4e0b7e}=_0x36a4c1[_0x4ed293(0x2f5)]();if(_0x4e0b7e['length']===0x0)return _0xc5cff1;let _0x1f2af8=_0x4e19c0[_0x4ed293(0x330)](_0xc5cff1[_0x4ed293(0x350)][0x0]);for(let _0x39b38b=0x0;_0x39b38b<_0x4e0b7e[_0x4ed293(0x23c)];_0x39b38b++){const _0xd6d97d={'id':_0x4ed293(0x371),'params':{..._0x4e0b7e[_0x39b38b]}},_0x470eab=this['_transformService'][_0x4ed293(0x31d)](_0x1f2af8,_0xd6d97d,!0x1);if(_0x44db43(_0x470eab))throw _0x470eab['error'];_0x1f2af8=_0x470eab[_0x4ed293(0x312)];}return{..._0x4e19c0[_0x4ed293(0x330)](_0xc5cff1),'mutations':[_0x1f2af8]};}[_0x50820e(0x196)](_0x2a3e99){const _0x1157ba=_0x50820e,{unitID:_0x23e37e}=_0x2a3e99,_0x2ba491=this[_0x1157ba(0x229)][_0x1157ba(0x2da)](_0x23e37e)[_0x1157ba(0x32b)](_0x4e52dc),{undoCache:_0x4b43d4,redoCache:_0x53eca0}=_0x2ba491['getUndoRedoMutationParamsCache']();if(_0x4b43d4[_0x1157ba(0x23c)]===0x0||_0x53eca0[_0x1157ba(0x23c)]===0x0)return;const _0x4c9e59=[],_0x3f0f78=[];let _0xe7b1f7=_0x4e19c0['deepClone'](_0x2a3e99[_0x1157ba(0x350)][0x0]),_0x539cc0=_0x4e19c0['deepClone'](_0x2a3e99[_0x1157ba(0x350)][0x0]);for(let _0x5dbb35=_0x4b43d4[_0x1157ba(0x23c)]-0x1;_0x5dbb35>=0x0;_0x5dbb35--){const _0xb4de91={'id':'doc.mutation.rich-text-editing','params':{..._0x4b43d4[_0x5dbb35]}},_0x1233e9={'id':_0x1157ba(0x371),'params':{..._0x53eca0[_0x5dbb35]}},_0x113afa=this[_0x1157ba(0x29c)][_0x1157ba(0x31d)](_0xe7b1f7,_0xb4de91,!0x1),_0xdebd12=this['_transformService'][_0x1157ba(0x31d)](_0x539cc0,_0x1233e9,!0x1);if(_0x44db43(_0x113afa))throw _0x113afa[_0x1157ba(0x1ea)];if(_0x44db43(_0xdebd12))throw _0xdebd12[_0x1157ba(0x1ea)];_0x4c9e59[_0x1157ba(0x181)](_0x113afa[_0x1157ba(0x36b)][_0x1157ba(0x336)]),_0x3f0f78[_0x1157ba(0x181)](_0xdebd12[_0x1157ba(0x36b)]['params']),_0xe7b1f7=_0x113afa[_0x1157ba(0x312)],_0x539cc0=_0xdebd12['m1Prime'];}_0x2ba491[_0x1157ba(0x2b3)]({'undoCache':_0x4c9e59,'redoCache':_0x3f0f78});}[_0x50820e(0x1df)](_0xc45e91){const _0x546b0c=_0x50820e,{unitID:_0x33c1ba}=_0xc45e91,_0x3137e0=this[_0x546b0c(0x229)][_0x546b0c(0x2da)](_0x33c1ba)[_0x546b0c(0x32b)](_0x4e52dc),_0x5775eb=_0x3137e0[_0x546b0c(0x375)]();if(_0x5775eb==null)return;const _0x20abd5=[{'id':_0x546b0c(0x371),'params':{'unitId':_0xc45e91['unitID'],'actions':null,'textRanges':[_0x5775eb]}}],_0x39fe6c=this[_0x546b0c(0x29c)][_0x546b0c(0x187)](_0xc45e91,_0x20abd5);if(!_0xbecd51(_0x39fe6c))throw _0x39fe6c['error'];const _0x30f3fc=_0x39fe6c[_0x546b0c(0x36b)][0x0]['params'][_0x546b0c(0x2e1)];Array[_0x546b0c(0x291)](_0x30f3fc)&&_0x30f3fc[_0x546b0c(0x23c)]&&_0x3137e0[_0x546b0c(0x29e)](_0x30f3fc[0x0]);}};re=cn([Ce(0x0,_0xbe4765(_0x10647c)),Ce(0x1,_0x556e66),Ce(0x2,_0x9243d5)],re);var ln=Object[_0x50820e(0x2ce)],_n=(_0x4042fc,_0x8dfcbb,_0x31bede,_0x17ba9c)=>{const _0x40e9e4=_0x50820e;for(var _0x5ae09f=_0x17ba9c>0x1?void 0x0:_0x17ba9c?ln(_0x8dfcbb,_0x31bede):_0x8dfcbb,_0x3c8de8=_0x4042fc[_0x40e9e4(0x23c)]-0x1,_0x1ba173;_0x3c8de8>=0x0;_0x3c8de8--)(_0x1ba173=_0x4042fc[_0x3c8de8])&&(_0x5ae09f=_0x1ba173(_0x5ae09f)||_0x5ae09f);return _0x5ae09f;},Ee=(_0x579312,_0x99caa7)=>(_0x423363,_0x5831f8)=>_0x99caa7(_0x423363,_0x5831f8,_0x579312);let oe=class{constructor(_0x344c5f,_0x28e533,_0x1e7707){const _0x35953d=_0x50820e;this[_0x35953d(0x248)]=_0x344c5f,this[_0x35953d(0x29c)]=_0x28e533,this[_0x35953d(0x1b1)]=_0x1e7707;}[_0x50820e(0x2b1)](_0x139c05){const _0x399c74=_0x50820e;this[_0x399c74(0x19a)](_0x139c05);}[_0x50820e(0x26b)](_0x36e25d){const _0xa268bf=_0x50820e,{unitID:_0x4f8940}=_0x36e25d,{collaboration:_0x352d36}=this[_0xa268bf(0x1b1)]['getStateCache'](_0x4f8940);if(_0x352d36['length']===0x0)return _0x36e25d;let _0x1a519e=_0x4e19c0[_0xa268bf(0x330)](_0x36e25d[_0xa268bf(0x350)][0x0]);for(let _0x475f62=0x0;_0x475f62<_0x352d36[_0xa268bf(0x23c)];_0x475f62++){const _0x340a55={'id':_0xa268bf(0x371),'params':{'unitId':_0x352d36[_0x475f62][_0xa268bf(0x377)],..._0x352d36[_0x475f62][_0xa268bf(0x23b)]}},_0xc27168=this[_0xa268bf(0x29c)][_0xa268bf(0x31d)](_0x1a519e,_0x340a55,!0x1);if(_0x44db43(_0xc27168))throw _0xc27168[_0xa268bf(0x1ea)];_0x1a519e=_0xc27168[_0xa268bf(0x312)];}return{..._0x4e19c0[_0xa268bf(0x330)](_0x36e25d),'mutations':[_0x1a519e]};}[_0x50820e(0x19a)](_0x465198){const _0x524265=_0x50820e,{unitID:_0xb335ef}=_0x465198,{history:_0x5e63fc,collaboration:_0x21a5bd}=this[_0x524265(0x1b1)][_0x524265(0x2a4)](_0xb335ef);if(_0x5e63fc[_0x524265(0x23c)]===0x0&&_0x21a5bd[_0x524265(0x23c)]===0x0)return;const _0x3fc73a=[],_0x49e214=[];let _0x48d24e=_0x4e19c0[_0x524265(0x330)](_0x465198[_0x524265(0x350)][0x0]),_0xa8da18=_0x4e19c0[_0x524265(0x330)](_0x465198[_0x524265(0x350)][0x0]);for(let _0x526d02=_0x5e63fc['length']-0x1;_0x526d02>=0x0;_0x526d02--){const _0x475a2={'id':_0x524265(0x371),'params':{'unitId':_0x5e63fc[_0x526d02][_0x524265(0x377)],..._0x5e63fc[_0x526d02][_0x524265(0x2d8)]}},_0x13732e={'id':_0x524265(0x371),'params':{'unitId':_0x5e63fc[_0x526d02][_0x524265(0x377)],..._0x5e63fc[_0x526d02][_0x524265(0x23b)]}},_0x553fe5=this[_0x524265(0x29c)][_0x524265(0x31d)](_0x48d24e,_0x475a2,!0x1),_0x6e6098=this['_transformService'][_0x524265(0x31d)](_0xa8da18,_0x13732e,!0x1);if(_0x44db43(_0x553fe5))throw _0x553fe5['error'];if(_0x44db43(_0x6e6098))throw _0x6e6098[_0x524265(0x1ea)];_0x3fc73a['unshift']({..._0x5e63fc[_0x526d02],'undoState':_0x553fe5['m2Prime'][_0x524265(0x336)],'redoState':_0x6e6098[_0x524265(0x36b)][_0x524265(0x336)]}),_0x48d24e=_0x553fe5[_0x524265(0x312)],_0xa8da18=_0x6e6098[_0x524265(0x312)];}_0x48d24e=_0x4e19c0[_0x524265(0x330)](_0x465198['mutations'][0x0]),_0xa8da18=_0x4e19c0['deepClone'](_0x465198[_0x524265(0x350)][0x0]);for(let _0x4b0772=_0x21a5bd[_0x524265(0x23c)]-0x1;_0x4b0772>=0x0;_0x4b0772--){const _0x3a373e={'id':_0x524265(0x371),'params':{'unitId':_0x21a5bd[_0x4b0772]['unitId'],..._0x21a5bd[_0x4b0772][_0x524265(0x2d8)]}},_0x564a0f={'id':_0x524265(0x371),'params':{'unitId':_0x21a5bd[_0x4b0772][_0x524265(0x377)],..._0x21a5bd[_0x4b0772][_0x524265(0x23b)]}},_0x5af34e=this[_0x524265(0x29c)]['transformMutation'](_0x48d24e,_0x3a373e,!0x1),_0x19dd1b=this[_0x524265(0x29c)][_0x524265(0x31d)](_0xa8da18,_0x564a0f,!0x1);if(_0x44db43(_0x5af34e))throw _0x5af34e['error'];if(_0x44db43(_0x19dd1b))throw _0x19dd1b[_0x524265(0x1ea)];_0x49e214['unshift']({..._0x21a5bd[_0x4b0772],'undoState':_0x5af34e['m2Prime']['params'],'redoState':_0x19dd1b[_0x524265(0x36b)][_0x524265(0x336)]}),_0x48d24e=_0x5af34e['m1Prime'],_0xa8da18=_0x19dd1b['m1Prime'];}this[_0x524265(0x1b1)][_0x524265(0x264)](_0xb335ef,{'history':_0x3fc73a,'collaboration':_0x49e214});}};oe=_n([Ee(0x0,_0xbe4765(_0x10647c)),Ee(0x1,_0x556e66),Ee(0x2,_0xbe4765(_0x3f9889))],oe);var hn=Object[_0x50820e(0x2ce)],un=(_0x22d33a,_0x2b4d5a,_0x4f244a,_0x146a10)=>{const _0x2d45aa=_0x50820e;for(var _0x18741b=_0x146a10>0x1?void 0x0:_0x146a10?hn(_0x2b4d5a,_0x4f244a):_0x2b4d5a,_0x109334=_0x22d33a[_0x2d45aa(0x23c)]-0x1,_0x4de974;_0x109334>=0x0;_0x109334--)(_0x4de974=_0x22d33a[_0x109334])&&(_0x18741b=_0x4de974(_0x18741b)||_0x18741b);return _0x18741b;},it=(_0x1b17e2,_0x43a39b)=>(_0x3bdafc,_0x5e5014)=>_0x43a39b(_0x3bdafc,_0x5e5014,_0x1b17e2);let ae=class{constructor(_0x8b24eb,_0xd4d6a9){const _0x4f4a47=_0x50820e;this[_0x4f4a47(0x248)]=_0x8b24eb,this[_0x4f4a47(0x29c)]=_0xd4d6a9;}['transformSelections'](_0x36b3c8){const _0x5eeec6=_0x50820e;var _0x5e7d32;const _0x10c2b8=this[_0x5eeec6(0x248)][_0x5eeec6(0x28b)](_0x4cdd95),_0x356124=(_0x5e7d32=_0x10c2b8[_0x5eeec6(0x2dc)]())!=null?_0x5e7d32:[];if(_0x356124[_0x5eeec6(0x23c)]===0x0)return;const _0x387f9b=_0x36b3c8[_0x5eeec6(0x325)],_0x4b660b=[{'id':_0x5eeec6(0x371),'params':{'unitId':_0x387f9b,'actions':null,'textRanges':_0x356124}}],_0x61ecf5=this[_0x5eeec6(0x29c)][_0x5eeec6(0x187)](_0x36b3c8,_0x4b660b);if(!_0xbecd51(_0x61ecf5))throw _0x61ecf5[_0x5eeec6(0x1ea)];const _0x15bc71=_0x61ecf5[_0x5eeec6(0x36b)][0x0][_0x5eeec6(0x336)][_0x5eeec6(0x2e1)];Array['isArray'](_0x15bc71)&&_0x15bc71[_0x5eeec6(0x23c)]&&_0x10c2b8[_0x5eeec6(0x25a)](_0x15bc71,{'unitId':_0x387f9b,'subUnitId':_0x387f9b},!0x1);}};ae=un([it(0x0,_0xbe4765(_0x10647c)),it(0x1,_0x556e66)],ae);var dn=Object[_0x50820e(0x2ce)],fn=(_0x5ed43e,_0x2ed641,_0x1b9c0d,_0x597b18)=>{for(var _0x1a1d1d=_0x597b18>0x1?void 0x0:_0x597b18?dn(_0x2ed641,_0x1b9c0d):_0x2ed641,_0x178774=_0x5ed43e['length']-0x1,_0x4c916d;_0x178774>=0x0;_0x178774--)(_0x4c916d=_0x5ed43e[_0x178774])&&(_0x1a1d1d=_0x4c916d(_0x1a1d1d)||_0x1a1d1d);return _0x1a1d1d;},M=(_0x54a37b,_0x5a4cf2)=>(_0x5f50f5,_0x3a0cb7)=>_0x5a4cf2(_0x5f50f5,_0x3a0cb7,_0x54a37b);function _0x844d(_0x2da131,_0x5e7c8a){const _0x545015=_0x5450();return _0x844d=function(_0x844d80,_0x2880e8){_0x844d80=_0x844d80-0x16e;let _0x3f1783=_0x545015[_0x844d80];return _0x3f1783;},_0x844d(_0x2da131,_0x5e7c8a);}let ce=class extends _0x4c8c9a{constructor(_0x1005f2,_0x4f923d,_0x19804f,_0x2baebd,_0x7bdb86,_0x5de126,_0x2bd8b6,_0x58cb6e){const _0x21e27c=_0x50820e;super(),_(this,'_status$',new _0xf8530c(_0x2b5334['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x1005f2,this[_0x21e27c(0x1a0)]=_0x4f923d,this[_0x21e27c(0x26a)]=_0x19804f,this[_0x21e27c(0x2cf)]=_0x2baebd,this[_0x21e27c(0x206)]=_0x7bdb86,this[_0x21e27c(0x1f2)]=_0x5de126,this[_0x21e27c(0x2c6)]=_0x2bd8b6,this[_0x21e27c(0x32a)]=_0x58cb6e,this['_initEntityListener']());}[_0x50820e(0x1e5)](){const _0x1c59f8=_0x50820e;this[_0x1c59f8(0x2ff)](this[_0x1c59f8(0x1a0)][_0x1c59f8(0x281)][_0x1c59f8(0x20c)](_0x5c38c6=>{const _0xc1927d=_0x1c59f8,_0x3fa315=this[_0xc1927d(0x1b1)][_0xc1927d(0x1e6)][_0xc1927d(0x20c)](_0x27a55e=>{const _0x1ca8e2=_0xc1927d;if(_0x27a55e==null)return;const {unitId:_0x3d6a77,redoState:_0x533f97,commandId:_0x4d5a23}=_0x27a55e;if(_0x3d6a77!==_0x5c38c6[_0x1ca8e2(0x325)])return;const _0x175a60={'id':_0x4d5a23,'type':_0x416f2a['MUTATION'],'params':{'unitId':_0x3d6a77,'actions':_0x533f97[_0x1ca8e2(0x32d)],'textRanges':null}};_0x5c38c6['onLocalMutation'](_0x175a60);});if(_0x5c38c6[_0xc1927d(0x2ff)](_0x3fa315),_0x5c38c6 instanceof _0x9a8453){const _0x298236={'onTransformIME':_0x24da3d=>this[_0xc1927d(0x26a)][_0xc1927d(0x179)](_0x24da3d),'onTransformState':_0xa9529d=>this['_docTransformStateCacheService'][_0xc1927d(0x2b1)](_0xa9529d),'onTransformSelections':_0x1500fa=>this[_0xc1927d(0x206)][_0xc1927d(0x2e2)](_0x1500fa),'onSyncEditingCollabCursor':_0x124dee=>this[_0xc1927d(0x1f2)][_0xc1927d(0x362)](_0x124dee),'onTransformRemoteChangesetByIMECache':_0x331538=>this[_0xc1927d(0x26a)][_0xc1927d(0x26b)](_0x331538),'onTransformRemoteChangesetByStateCache':_0x2b1f90=>this['_docTransformStateCacheService'][_0xc1927d(0x26b)](_0x2b1f90)};_0x5c38c6['addHandlerCallback'](_0x298236);}}));}};ce=fn([M(0x0,_0xbe4765(_0x3f9889)),M(0x1,_0xbe4765(_0x5a2a01)),M(0x2,_0xbe4765(re)),M(0x3,_0xbe4765(oe)),M(0x4,_0xbe4765(ae)),M(0x5,_0xbe4765(je)),M(0x6,_0x4e2a68),M(0x7,_0xbe4765(_0x57bae6))],ce);var Sn=Object['getOwnPropertyDescriptor'],mn=(_0x24d374,_0x2acede,_0x1d6724,_0x1388f1)=>{const _0x1bfc3d=_0x50820e;for(var _0x45afb7=_0x1388f1>0x1?void 0x0:_0x1388f1?Sn(_0x2acede,_0x1d6724):_0x2acede,_0x4bd8ca=_0x24d374[_0x1bfc3d(0x23c)]-0x1,_0x25afa9;_0x4bd8ca>=0x0;_0x4bd8ca--)(_0x25afa9=_0x24d374[_0x4bd8ca])&&(_0x45afb7=_0x25afa9(_0x45afb7)||_0x45afb7);return _0x45afb7;},be=(_0x86b69,_0x3d1891)=>(_0x5040a8,_0x20ac6b)=>_0x3d1891(_0x5040a8,_0x20ac6b,_0x86b69);let Ae=class extends _0x4c8c9a{constructor(_0x239e1f,_0x3591e5,_0x3506fe){const _0x41c01c=_0x50820e;super(),_(this,_0x41c01c(0x1bf),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x41c01c(0x18c),!0x1),(this[_0x41c01c(0x18b)]=_0x239e1f,this[_0x41c01c(0x278)]=_0x3591e5,this[_0x41c01c(0x2b4)]=_0x3506fe);}[_0x50820e(0x2e4)](){const _0x67eac8=_0x50820e;this[_0x67eac8(0x18c)]=!0x0;}[_0x50820e(0x2ca)](){const _0x30a3ea=_0x50820e;this[_0x30a3ea(0x18c)]=!0x1;}get['saveTaskMap'](){const _0x3494e0=_0x50820e;return this[_0x3494e0(0x2c5)];}[_0x50820e(0x16e)](){const _0x5a5087=_0x50820e;this['exhaustSavingTask']()[_0x5a5087(0x214)](()=>super[_0x5a5087(0x16e)]());}async[_0x50820e(0x2f0)](_0x39694b){const _0x4be8b9=_0x50820e;return this[_0x4be8b9(0x18c)]?null:this['_localStorageService'][_0x4be8b9(0x197)](_0x1438e7(_0x39694b));}async[_0x50820e(0x339)](_0xcdff02,_0x36c96a){const _0x131875=_0x50820e;return!!this['_localStorageService'][_0x131875(0x29a)](_0xcdff02,_0x36c96a);}[_0x50820e(0x369)](_0x38495f,_0x339588,_0x111607,_0x3cb3db){const _0xf59b4=_0x50820e,_0x434ef2=this[_0xf59b4(0x2b4)][_0xf59b4(0x216)](_0x38495f);this['_cachedData'][_0xf59b4(0x2a2)](_0x38495f,{'unitID':_0x38495f,'type':_0x339588,'awaitingChangeset':_0x111607,'mutations':_0x3cb3db,'rev':_0x434ef2}),this[_0xf59b4(0x2c5)][_0xf59b4(0x240)](_0x38495f)||this[_0xf59b4(0x23a)](_0x38495f);}[_0x50820e(0x23a)](_0x410394){const _0x5cdcfc=_0x50820e,_0x26e73b=this[_0x5cdcfc(0x301)]();_0x26e73b===0x0?this[_0x5cdcfc(0x174)](_0x410394):this[_0x5cdcfc(0x2c5)][_0x5cdcfc(0x2a2)](_0x410394,setTimeout(()=>this['_saveCache'](_0x410394),_0x26e73b));}[_0x50820e(0x301)](){const _0x247b27=_0x50820e;var _0x5e0a60;return(_0x5e0a60=this[_0x247b27(0x18b)]['getConfig'](_0x3317be))!=null?_0x5e0a60:_0x1afe72;}[_0x50820e(0x174)](_0x1e171f){const _0xdbb8c9=_0x50820e,_0x2485ad=this['_saveTaskMap'][_0xdbb8c9(0x28b)](_0x1e171f);return _0x2485ad!==void 0x0&&window['clearTimeout'](_0x2485ad),this[_0xdbb8c9(0x278)]['setItem'](_0x1438e7(_0x1e171f),this[_0xdbb8c9(0x1bf)][_0xdbb8c9(0x28b)](_0x1e171f))[_0xdbb8c9(0x214)](()=>this[_0xdbb8c9(0x2c5)][_0xdbb8c9(0x30d)](_0x1e171f));}async['exhaustSavingTask'](){const _0x1b55fc=_0x50820e,_0x370255=[];this['_saveTaskMap'][_0x1b55fc(0x35c)]((_0x3d9303,_0x163d28)=>{const _0x525505=_0x1b55fc;window[_0x525505(0x183)](_0x3d9303),_0x370255[_0x525505(0x2c2)](this['_saveCache'](_0x163d28)[_0x525505(0x214)](()=>{const _0xdf95ab=_0x525505;this[_0xdf95ab(0x2c5)]['delete'](_0x163d28);}));}),await Promise['all'](_0x370255);}};Ae=mn([be(0x0,_0x3de9ad),be(0x1,_0x326825),be(0x2,_0xbe4765(_0x46ac57))],Ae);class gn extends _0x31fdaa{constructor(){const _0x49eb9e=_0x50820e;super(),_(this,_0x49eb9e(0x184)),this[_0x49eb9e(0x184)]=_0x945d2f(window,_0x49eb9e(0x357))[_0x49eb9e(0x2f6)](_0x1ef568(this['dispose$']),_0x11fcf1(0x1),_0xe1c17(void 0x0));}[_0x50820e(0x2ef)](_0x533e1f,_0xe951e5,_0x511397=!0x1){const _0x1b2195=_0x50820e,_0x130ef5=new URL(window[_0x1b2195(0x172)]['href']);_0x130ef5['searchParams']['set'](_0x533e1f,_0xe951e5),_0x511397?window[_0x1b2195(0x2f2)][_0x1b2195(0x2ba)]('','',_0x130ef5[_0x1b2195(0x192)]()):window[_0x1b2195(0x2f2)][_0x1b2195(0x18a)]('','',_0x130ef5['toString']());}[_0x50820e(0x299)](_0x41f5f5,_0x1c2bea=!0x1){const _0x15fe16=_0x50820e,_0x2af08c=new URL(window[_0x15fe16(0x172)][_0x15fe16(0x344)]);_0x2af08c['searchParams'][_0x15fe16(0x30d)](_0x41f5f5),_0x1c2bea?window[_0x15fe16(0x2f2)][_0x15fe16(0x2ba)]('','',_0x2af08c[_0x15fe16(0x192)]()):window['history'][_0x15fe16(0x18a)]('','',_0x2af08c[_0x15fe16(0x192)]());}[_0x50820e(0x253)](_0x6e8b2e){const _0x59294b=_0x50820e;var _0x4cab1a;return(_0x4cab1a=new URL(window['location']['href'])[_0x59294b(0x250)][_0x59294b(0x28b)](_0x6e8b2e))!=null?_0x4cab1a:void 0x0;}}var vn=Object[_0x50820e(0x1fc)],In=Object[_0x50820e(0x2ce)],pn=(_0x1df03b,_0x5fcebb,_0x2e3618)=>_0x5fcebb in _0x1df03b?vn(_0x1df03b,_0x5fcebb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e3618}):_0x1df03b[_0x5fcebb]=_0x2e3618,Cn=(_0x954968,_0x477715,_0x123107,_0x5c65d0)=>{const _0x2f97f7=_0x50820e;for(var _0x186b12=_0x5c65d0>0x1?void 0x0:_0x5c65d0?In(_0x477715,_0x123107):_0x477715,_0x3020be=_0x954968[_0x2f97f7(0x23c)]-0x1,_0x52a9ad;_0x3020be>=0x0;_0x3020be--)(_0x52a9ad=_0x954968[_0x3020be])&&(_0x186b12=_0x52a9ad(_0x186b12)||_0x186b12);return _0x186b12;},Oe=(_0x49f7c8,_0x165852)=>(_0x3bfa43,_0x283249)=>_0x165852(_0x3bfa43,_0x283249,_0x49f7c8),En=(_0x18f5e8,_0x117ae2,_0x29d1f9)=>pn(_0x18f5e8,_0x117ae2+'',_0x29d1f9);const bn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let ye=class extends _0x4be7fb{constructor(_0x208fb6=st,_0x862e22,_0x4ea7c1,_0xe18a25){const _0x428332=_0x50820e;super(),this[_0x428332(0x337)]=_0x208fb6,this['_renderManagerService']=_0x862e22,this[_0x428332(0x248)]=_0x4ea7c1,this[_0x428332(0x18b)]=_0xe18a25;const {..._0x5cd913}=_0x19f77a({},st,this[_0x428332(0x337)]);this[_0x428332(0x18b)][_0x428332(0x259)](nn,_0x5cd913);}['onStarting'](){const _0xb7db21=_0x50820e;this[_0xb7db21(0x193)](),this[_0xb7db21(0x379)]();}[_0x50820e(0x307)](){const _0x4ce9fd=_0x50820e;this[_0x4ce9fd(0x222)]();}['_registerDependencies'](){const _0x8405eb=_0x50820e;var _0x57b151;const _0x2c785e=[[He],[ae],[re],[oe],[je],[wt,{'useClass':gn}],[_0x3a53e5,{'useClass':_0x48206a}],[_0x17e842,{'useClass':Ae}],[se],[ce],[ie],[H],[Me],[ne]];_0x54c4a6(this[_0x8405eb(0x248)],_0x5ee088(_0x2c785e,(_0x57b151=this['_config'])==null?void 0x0:_0x57b151[_0x8405eb(0x342)]));}[_0x50820e(0x222)](){const _0x16e96a=_0x50820e;this[_0x16e96a(0x2ff)](this[_0x16e96a(0x229)][_0x16e96a(0x298)](_0x39d27e[_0x16e96a(0x204)],[Ue])),this[_0x16e96a(0x2ff)](this[_0x16e96a(0x229)][_0x16e96a(0x298)](_0x39d27e[_0x16e96a(0x2c9)],[Le]));}[_0x50820e(0x379)](){const _0x411bf6=_0x50820e;_0x369c0b(this[_0x411bf6(0x248)],[[H],[se],[ce],[ie],[ne]]);}};En(ye,_0x50820e(0x1d1),bn),ye=Cn([_0x2afea3(_0x46c167),Oe(0x1,_0x9243d5),Oe(0x2,_0xbe4765(_0x10647c)),Oe(0x3,_0x3de9ad)],ye);var On=Object['getOwnPropertyDescriptor'],Tn=(_0xef22a9,_0x15b23f,_0x5c5aec,_0x47cc0c)=>{const _0x511c8b=_0x50820e;for(var _0x8c2be2=_0x47cc0c>0x1?void 0x0:_0x47cc0c?On(_0x15b23f,_0x5c5aec):_0x15b23f,_0x453a2e=_0xef22a9[_0x511c8b(0x23c)]-0x1,_0x3a5f6c;_0x453a2e>=0x0;_0x453a2e--)(_0x3a5f6c=_0xef22a9[_0x453a2e])&&(_0x8c2be2=_0x3a5f6c(_0x8c2be2)||_0x8c2be2);return _0x8c2be2;},z=(_0x56652b,_0x1299ba)=>(_0x10ed80,_0x2c6f49)=>_0x1299ba(_0x10ed80,_0x2c6f49,_0x56652b);let nt=class extends _0x56fab3{constructor(_0x6d6083,_0x4e0400,_0x5323c8,_0x350972,_0x31b2dd){super(_0x6d6083,_0x4e0400,_0x5323c8,_0x350972,_0x31b2dd);}async[_0x50820e(0x261)](_0x4045c1){const _0x57eee4=_0x50820e,_0x50ab7e=await this['_getSessionTicket'](),_0x3157b9=this[_0x57eee4(0x33d)](_0x4045c1,_0x50ab7e);return this['_doCreateSocket'](_0x3157b9);}[_0x50820e(0x33d)](_0x1dacf0,_0x252b4d){const _0x1192c8=_0x50820e,_0x544739=typeof window>'u'?new URL(_0x1dacf0):new URL(_0x1dacf0,window[_0x1192c8(0x172)][_0x1192c8(0x310)]);_0x544739['searchParams']['set']('sessionTicket',_0x252b4d);const _0x361fa0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x361fa0[_0x1192c8(0x28b)](_0x1192c8(0x24e))&&_0x544739[_0x1192c8(0x250)][_0x1192c8(0x2a2)](_0x1192c8(0x24e),_0x361fa0[_0x1192c8(0x28b)](_0x1192c8(0x24e))),_0x544739[_0x1192c8(0x192)]();}async['_getSessionTicket'](){const _0x375e52=_0x50820e;var _0x8df8c8,_0x3fb50a,_0x8fbf6d;const _0x3fc22b=this[_0x375e52(0x18b)][_0x375e52(0x28c)](_0x8f194a),_0x89f35=(_0x8df8c8=_0x3fc22b==null?void 0x0:_0x3fc22b[_0x375e52(0x1c5)])!=null?_0x8df8c8:_0x175809;return(_0x8fbf6d=(_0x3fb50a=(await this['_httpService'][_0x375e52(0x28b)](_0x89f35,{'headers':{'Content-Type':'application/json'}}))[_0x375e52(0x283)])==null?void 0x0:_0x3fb50a[_0x375e52(0x1eb)])!=null?_0x8fbf6d:'';}};nt=Tn([z(0x0,_0xbe4765(_0x10647c)),z(0x1,_0xbe4765(_0x256f9b)),z(0x2,_0x3de9ad),z(0x3,_0x14bb70),z(0x4,_0x46cce0)],nt);const rt=0x7530,ot='ACTIVE_UNIT_EVENT_CHANNEL';class Gn extends _0x4c8c9a{constructor(){const _0x3b84bd=_0x50820e;super(),_(this,_0x3b84bd(0x308),_0x232fd4()),_(this,'_selfUnitIDs',new Set()),_(this,_0x3b84bd(0x258),new Map()),_(this,_0x3b84bd(0x213),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x3b84bd(0x320),new Map()),this[_0x3b84bd(0x302)]();}[_0x50820e(0x16e)](){const _0x539227=_0x50820e;super[_0x539227(0x16e)](),this[_0x539227(0x31b)][_0x539227(0x35c)]((_0x3d2a60,_0x36c67d)=>this[_0x539227(0x334)](_0x36c67d)),this[_0x539227(0x213)]&&window[_0x539227(0x2c3)](this[_0x539227(0x213)]);}[_0x50820e(0x2d4)](_0x1e4a09){const _0x1b8fe6=_0x50820e;return this[_0x1b8fe6(0x19c)](_0x1e4a09)['pipe'](_0x2f558a());}[_0x50820e(0x257)](_0x5b255e){const _0x3af4cc=_0x50820e;this['_selfUnitIDs']['size']===0x0&&this[_0x3af4cc(0x29d)](),this[_0x3af4cc(0x21d)][_0x3af4cc(0x2e8)](_0x5b255e),this[_0x3af4cc(0x19b)]({'type':0x0,'memberID':this[_0x3af4cc(0x308)],'unitIDs':[_0x5b255e],'isForwarded':!0x1});}[_0x50820e(0x17e)](_0x26871a){const _0x43ac15=_0x50820e;this[_0x43ac15(0x21d)][_0x43ac15(0x30d)](_0x26871a),this['_selfUnitIDs']['size']===0x0&&this['_heartbeatTimer']&&window[_0x43ac15(0x2c3)](this[_0x43ac15(0x213)]);}[_0x50820e(0x302)](){const _0x31d36e=_0x50820e;this[_0x31d36e(0x2ff)](_0x43282a(_0x945d2f(window,_0x31d36e(0x370))[_0x31d36e(0x20c)](_0x5bb373=>{const _0x42a697=_0x31d36e;if(_0x5bb373[_0x42a697(0x1d7)]!==ot||!_0x5bb373[_0x42a697(0x24b)])return;const _0x447cc9=JSON['parse'](_0x5bb373['newValue']);this['_handleEvent'](_0x447cc9);}))),window['addEventListener'](_0x31d36e(0x24f),()=>this[_0x31d36e(0x19b)]({'type':0x1,'memberID':this[_0x31d36e(0x308)],'unitIDs':Array[_0x31d36e(0x1f3)](this[_0x31d36e(0x21d)])}));}[_0x50820e(0x23e)](_0x4e36ec){const _0x3f1f35=_0x50820e;switch(_0x4e36ec[_0x3f1f35(0x27a)]){case 0x0:this[_0x3f1f35(0x1d0)](_0x4e36ec);break;case 0x1:this[_0x3f1f35(0x322)](_0x4e36ec);break;case 0x2:this[_0x3f1f35(0x293)](_0x4e36ec);break;}}[_0x50820e(0x1d0)](_0x299d36){const _0x3ee81c=_0x50820e,{unitIDs:_0x62092d,memberID:_0x274f49,isForwarded:_0x572817}=_0x299d36;_0x62092d[_0x3ee81c(0x35c)](_0x358eb6=>{const _0x4931e5=_0x3ee81c;if(!_0x572817&&this['_unitOnClients'][_0x4931e5(0x240)](_0x358eb6)&&this[_0x4931e5(0x19c)](_0x358eb6)['next'](_0x5e3f07[_0x4931e5(0x22b)]),!this[_0x4931e5(0x258)][_0x4931e5(0x240)](_0x358eb6)||!this[_0x4931e5(0x258)][_0x4931e5(0x28b)](_0x358eb6)[_0x4931e5(0x240)](_0x274f49)){const _0x2c5a09=this[_0x4931e5(0x258)][_0x4931e5(0x28b)](_0x358eb6)||new Set();_0x2c5a09['add'](_0x274f49),this['_unitOnClients'][_0x4931e5(0x2a2)](_0x358eb6,_0x2c5a09),this['_scheduleClearOtherTimer'](_0x274f49);}}),_0x572817||this[_0x3ee81c(0x19b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3ee81c(0x21d)]],'isForwarded':!0x0});}[_0x50820e(0x1a4)](_0xd7532a){const _0x182dd0=_0x50820e;this[_0x182dd0(0x334)](_0xd7532a);const _0x4c4b29=window[_0x182dd0(0x1fb)](()=>{const _0x14707b=_0x182dd0;this[_0x14707b(0x258)][_0x14707b(0x35c)](_0x2dd33f=>{const _0x465636=_0x14707b;_0x2dd33f[_0x465636(0x30d)](_0xd7532a);});},rt*0x2);this[_0x182dd0(0x31b)]['set'](_0xd7532a,_0x4c4b29);}[_0x50820e(0x334)](_0x3ddecf){const _0x2b6179=_0x50820e;if(this[_0x2b6179(0x31b)][_0x2b6179(0x240)](_0x3ddecf)){const _0x17b375=this[_0x2b6179(0x31b)][_0x2b6179(0x28b)](_0x3ddecf);_0x17b375&&window[_0x2b6179(0x183)](_0x17b375),this[_0x2b6179(0x31b)][_0x2b6179(0x2a2)](_0x3ddecf,null);}}[_0x50820e(0x322)](_0x1979fe){const _0xffa53=_0x50820e,{memberID:_0x170a6d,unitIDs:_0x3138cb}=_0x1979fe;_0x3138cb[_0xffa53(0x35c)](_0x340574=>{const _0x3c67f5=_0xffa53;var _0x123cc4;const _0x514fb0=this[_0x3c67f5(0x258)][_0x3c67f5(0x28b)](_0x340574);_0x514fb0&&(_0x514fb0[_0x3c67f5(0x30d)](_0x170a6d),(_0x123cc4=this['_ensureSubject'](_0x340574))==null||_0x123cc4[_0x3c67f5(0x313)](_0x514fb0['size']===0x0?_0x5e3f07[_0x3c67f5(0x254)]:_0x5e3f07[_0x3c67f5(0x22b)]));}),this[_0xffa53(0x334)](_0x170a6d);}[_0x50820e(0x293)](_0x16f8ce){const _0x1b10c7=_0x50820e;this[_0x1b10c7(0x1a4)](_0x16f8ce[_0x1b10c7(0x203)]);}[_0x50820e(0x19b)](_0x42d431){const _0x3a3531=_0x50820e;localStorage[_0x3a3531(0x29a)](ot,JSON[_0x3a3531(0x2eb)](_0x42d431));}['_scheduleHeartbeat'](){const _0x1108a8=_0x50820e;this['_heartbeatTimer']=window[_0x1108a8(0x28a)](()=>{const _0x395484=_0x1108a8;this[_0x395484(0x19b)]({'type':0x2,'memberID':this['_id']});},rt);}[_0x50820e(0x19c)](_0x11a61b){const _0x29f3c5=_0x50820e;return this[_0x29f3c5(0x320)]['has'](_0x11a61b)||this['_unitStatus'][_0x29f3c5(0x2a2)](_0x11a61b,new _0xf8530c(_0x5e3f07[_0x29f3c5(0x254)])),this[_0x29f3c5(0x320)][_0x29f3c5(0x28b)](_0x11a61b);}}var Ut=(_0x798100=>(_0x798100[_0x798100[_0x50820e(0x1c1)]=0x0]=_0x50820e(0x1c1),_0x798100[_0x798100['OK']=0x1]='OK',_0x798100[_0x798100[_0x50820e(0x209)]=0x2]=_0x50820e(0x209),_0x798100[_0x798100[_0x50820e(0x2c8)]=0x3]='PERMISSION_DENIED',_0x798100[_0x798100[_0x50820e(0x351)]=0x4]=_0x50820e(0x351),_0x798100[_0x798100['UNAUTHENTICATED']=0x5]=_0x50820e(0x26d),_0x798100[_0x798100[_0x50820e(0x18e)]=0x6]='ALREADY_EXISTS',_0x798100[_0x798100[_0x50820e(0x1db)]=0x7]=_0x50820e(0x1db),_0x798100[_0x798100[_0x50820e(0x36d)]=0x8]='TOO_MANY_REQUESTS',_0x798100[_0x798100[_0x50820e(0x200)]=0x9]='COMPLETION_FINISHED',_0x798100[_0x798100[_0x50820e(0x180)]=0xa]=_0x50820e(0x180),_0x798100[_0x798100[_0x50820e(0x2a5)]=0x1389]=_0x50820e(0x2a5),_0x798100[_0x798100[_0x50820e(0x212)]=0x1771]=_0x50820e(0x212),_0x798100[_0x798100[_0x50820e(0x2a0)]=0x1772]=_0x50820e(0x2a0),_0x798100[_0x798100[_0x50820e(0x1c3)]=0x1773]=_0x50820e(0x1c3),_0x798100[_0x798100['APPLY_REJECT']=0x1b59]=_0x50820e(0x1b0),_0x798100[_0x798100[_0x50820e(0x364)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x798100[_0x798100[_0x50820e(0x1fe)]=0x1b5b]=_0x50820e(0x1fe),_0x798100[_0x798100[_0x50820e(0x349)]=0x1b5c]=_0x50820e(0x349),_0x798100[_0x798100[_0x50820e(0x33b)]=0x1b5d]=_0x50820e(0x33b),_0x798100[_0x798100[_0x50820e(0x358)]=0x1f41]=_0x50820e(0x358),_0x798100[_0x798100[_0x50820e(0x2c0)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x798100[_0x798100['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x50820e(0x260),_0x798100[_0x798100[_0x50820e(0x1f9)]=0x232b]=_0x50820e(0x1f9),_0x798100[_0x798100[_0x50820e(0x201)]=0x232c]=_0x50820e(0x201),_0x798100[_0x798100['LICENSE_DISTRO_REJECTED']=0x232d]=_0x50820e(0x361),_0x798100[_0x798100['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x50820e(0x1b3),_0x798100[_0x798100['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x50820e(0x315),_0x798100[_0x798100['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x50820e(0x311),_0x798100[_0x798100[_0x50820e(0x2f9)]=0x2714]=_0x50820e(0x2f9),_0x798100[_0x798100['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x50820e(0x2fc),_0x798100[_0x798100[_0x50820e(0x28f)]=0x2ee1]=_0x50820e(0x28f),_0x798100[_0x798100[_0x50820e(0x1f5)]=0x2ee2]='INVALID_INVITE_CODE',_0x798100[_0x798100[_0x50820e(0x326)]=0x2ee3]=_0x50820e(0x326),_0x798100[_0x798100[_0x50820e(0x269)]=0x2ee4]=_0x50820e(0x269),_0x798100[_0x798100['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x50820e(0x24c),_0x798100[_0x798100[_0x50820e(0x340)]=0x32c9]=_0x50820e(0x340),_0x798100[_0x798100[_0x50820e(0x2cd)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x798100[_0x798100[_0x50820e(0x1a1)]=0x32cb]=_0x50820e(0x1a1),_0x798100[_0x798100[_0x50820e(0x33f)]=-0x1]=_0x50820e(0x33f),_0x798100))(Ut||{}),Rn=Object[_0x50820e(0x2ce)],Dn=(_0x55478a,_0x2330fb,_0x29cdd0,_0x1e292c)=>{const _0x3545e0=_0x50820e;for(var _0x10f3a3=_0x1e292c>0x1?void 0x0:_0x1e292c?Rn(_0x2330fb,_0x29cdd0):_0x2330fb,_0x3b04f7=_0x55478a[_0x3545e0(0x23c)]-0x1,_0x1fe641;_0x3b04f7>=0x0;_0x3b04f7--)(_0x1fe641=_0x55478a[_0x3b04f7])&&(_0x10f3a3=_0x1fe641(_0x10f3a3)||_0x10f3a3);return _0x10f3a3;},Te=(_0x1ab454,_0x5a40f5)=>(_0x14243b,_0x30839b)=>_0x5a40f5(_0x14243b,_0x30839b,_0x1ab454);let at=class extends _0x4c8c9a{constructor(_0x828e27,_0x47fea1,_0x171ade){const _0xb2c0d6=_0x50820e;super(),this[_0xb2c0d6(0x249)]=_0x828e27,this[_0xb2c0d6(0x2a6)]=_0x47fea1,this[_0xb2c0d6(0x18b)]=_0x171ade;}async[_0x50820e(0x2e3)](_0x2c13ff,_0x3b159d,_0x1674b5,..._0xfab083){const _0x32f87c=_0x50820e;var _0x56f7ab,_0x30b29b,_0x4987ea,_0x55b8e3;const _0x5b1838=this[_0x32f87c(0x249)]['getFocusedUnit']();if(!_0x5b1838)throw new Error(_0x32f87c(0x1cc));const _0x55a507=((_0x56f7ab=this[_0x32f87c(0x18b)][_0x32f87c(0x28c)](_0x2a6ff8))!=null?_0x56f7ab:_0x2a4152)+'/'+_0x2c13ff+'/run/'+_0x3b159d,_0x205435=new URL(window[_0x32f87c(0x172)][_0x32f87c(0x344)]),_0x562c0d={'scriptId':_0x2c13ff,'runId':(_0x30b29b=_0x205435['searchParams'][_0x32f87c(0x28b)](_0x32f87c(0x24e)))!=null?_0x30b29b:'','function':_0x3b159d,'unitId':_0x5b1838[_0x32f87c(0x19f)](),'argsOfFunction':JSON[_0x32f87c(0x2eb)](_0xfab083),'invokeId':(_0x4987ea=_0x1674b5[_0x32f87c(0x2ac)])!=null?_0x4987ea:'','executionId':(_0x55b8e3=_0x1674b5[_0x32f87c(0x17b)])!=null?_0x55b8e3:''};try{const _0x2a2802=await this[_0x32f87c(0x2a6)][_0x32f87c(0x22a)](_0x55a507,{'body':_0x562c0d});return _0x2a2802[_0x32f87c(0x283)]['error']&&_0x2a2802[_0x32f87c(0x283)][_0x32f87c(0x1ea)][_0x32f87c(0x221)]!==Ut['OK']?_0x32f87c(0x1d6):_0x2a2802[_0x32f87c(0x283)]['result'];}catch{return _0x32f87c(0x1d6);}}};at=Dn([Te(0x0,_0x9adc5c),Te(0x1,_0xbe4765(_0x256f9b)),Te(0x2,_0x3de9ad)],at);export{nt as BrowserCollaborationSocketService,ne as CollaborationDataLoaderController,Zi as CollaborationStatusDisplay,se as DesktopCollaborationStatusDisplayController,wt as IURLService,at as RemoteUniscriptService,Ai as SheetCollabCursorShape,ye as UniverCollaborationClientUIPlugin,Gn as WebBrowserSingleActiveUnitService,gn as WebURLService};
1
+ const _0x338775=_0x6421;(function(_0x4f1b61,_0x425bed){const _0x4504c9=_0x6421,_0x448b16=_0x4f1b61();while(!![]){try{const _0x210afb=-parseInt(_0x4504c9(0x32e))/0x1+-parseInt(_0x4504c9(0x20f))/0x2+parseInt(_0x4504c9(0x292))/0x3+-parseInt(_0x4504c9(0x2a3))/0x4+parseInt(_0x4504c9(0x1d2))/0x5*(-parseInt(_0x4504c9(0x21f))/0x6)+-parseInt(_0x4504c9(0x261))/0x7+-parseInt(_0x4504c9(0x161))/0x8*(-parseInt(_0x4504c9(0x24b))/0x9);if(_0x210afb===_0x425bed)break;else _0x448b16['push'](_0x448b16['shift']());}catch(_0xcfd4b9){_0x448b16['push'](_0x448b16['shift']());}}}(_0x1a4b,0xe4676));var Bt=Object[_0x338775(0x1a4)],kt=(_0x3d119a,_0x515ade,_0x1efb61)=>_0x515ade in _0x3d119a?Bt(_0x3d119a,_0x515ade,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1efb61}):_0x3d119a[_0x515ade]=_0x1efb61,_=(_0x45e1a9,_0xdcd824,_0x1164aa)=>kt(_0x45e1a9,typeof _0xdcd824!=_0x338775(0x21a)?_0xdcd824+'':_0xdcd824,_0x1164aa);import{MemberService as _0x18bd7b,SessionStatus as _0x1e6c87,CollaborationSessionService as _0x17f3f5,CollaborationStatus as _0x599881,CollaborationController as _0x4d31b0,ILocalCacheService as _0xe1c4aa,CollaborationUIEventService as _0x4a4b9a,CollaborationUIEventId as _0xa1b8b,DataLoaderService as _0x30c2b5,DocCollaborationEntity as _0x4442c1,getLocalCacheKey as _0x311acd,LOCAL_CACHE_INTERVAL as _0x288ada,LOCAL_CACHE_INTERVAL_KEY as _0x3ec25a,UniverCollaborationClientPlugin as _0x9e4dfb,CollaborationSocketService as _0x39ee57,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x58c66f,DEFAULT_WS_SESSION_TICKET_URL as _0x568d0a,UnitStatus as _0x39bb59,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2d1798,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x53ace2}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x13dc53,Disposable as _0x2fcb05,DOC_RANGE_TYPE as _0x47ca0c,Inject as _0x49d929,Injector as _0x241276,IUniverInstanceService as _0x364350,ICommandService as _0x20e3ab,debounce as _0x53e326,Rectangle as _0x314bd4,DisposableCollection as _0x2574a2,toDisposable as _0x294dcb,UniverInstanceType as _0x16d951,Tools as _0x16b904,COLORS as _0x45ad59,ColorKit as _0x3f0e63,ThemeService as _0xbbd8c4,fromEventSubject as _0x500592,LocaleService as _0x4f8085,createIdentifier as _0x4a52d9,ILogService as _0x610049,Optional as _0x7ee6ed,Workbook as _0x30c962,CommandType as _0x38c3e9,IConfigService as _0x189b35,ILocalStorageService as _0x4d8308,DependentOn as _0x23feaa,Plugin as _0x4fdff0,merge as _0x533a3e,registerDependencies as _0xf7a90d,mergeOverrideWithDependencies as _0x48daf9,touchDependencies as _0x224159,generateRandomId as _0x4eddce}from'@univerjs/core';import{Shape as _0x1c2ac1,Rect as _0x3d01dc,getColor as _0x2b18c7,RegularPolygon as _0xe32f83,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x54adbf,Vector2 as _0x4be85b,SHEET_VIEWPORT_KEY as _0x2485d0,IRenderManagerService as _0x51cd9d}from'@univerjs/engine-render';import{ISocketService as _0x5bd2fc,WebSocketService as _0x2afbd4,HTTPService as _0x291cab}from'@univerjs/network';import{IDocClipboardService as _0x25d06c,NodePositionConvertToCursor as _0x4d4d61,NodePositionConvertToRectRange as _0x22a0c4,TEXT_RANGE_LAYER_INDEX as _0x569e5a,SetDocZoomRatioOperation as _0x204e55,DocIMEInputManagerService as _0xbe88ec,DocStateChangeManagerService as _0x2c49da}from'@univerjs/docs-ui';import{IImageIoService as _0x24cbe5}from'@univerjs/drawing';import{BehaviorSubject as _0x119e86,debounceTime as _0xc53d9,takeUntil as _0x2cb0e5,Subject as _0x2e2613,filter as _0xc8bbca,switchMap as _0x49d0e8,merge as _0x1ec183,combineLatest as _0x35de87,of as _0x28c61a,fromEvent as _0x3b7334,shareReplay as _0x4e4a11,mapTo as _0x453bae,distinctUntilChanged as _0x3bfac6}from'rxjs';import{SetTextSelectionsOperation as _0xfe427b,RichTextEditingMutation as _0x359af5,DocSelectionManagerService as _0x46b0b1,DocSkeletonManagerService as _0x5cde45}from'@univerjs/docs';import{ITransformService as _0x5e8ec8,CollaborationEvent as _0x5d41e0,isTransformMutationFailure as _0x21d4bf,isTransformMutationsWithChangesetSuccess as _0xb88eb5,RevisionService as _0x9a1df6,ISnapshotServerService as _0x3c1e9f}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x2ffaa,serializeRangeWithSheet as _0x42b789}from'@univerjs/engine-formula';import{RefRangeService as _0x1e0d60,SetSelectionsOperation as _0x19f1d6,SheetsSelectionsService as _0xa5f728,EffectRefRangId as _0x28a6d5,handleIRemoveRow as _0x5db946,handleIRemoveCol as _0x19fbef,handleMoveRange as _0xb19e8b,handleInsertRow as _0x5298aa,handleInsertRangeMoveRight as _0x5c1d70,handleInsertRangeMoveDown as _0x12c421,handleInsertCol as _0x3db75d,handleDeleteRangeMoveUp as _0x5c49d2,handleDeleteRangeMoveLeft as _0x1047c0,runRefRangeMutations as _0x575d69,SetWorksheetActivateCommand as _0x9669d3}from'@univerjs/sheets';import{map as _0x454e1f,filter as _0x19ea32,throttleTime as _0x1394ad,takeUntil as _0x3e79f2,switchMap as _0x31ddfd}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3a8b8d,getCoordByCell as _0x5db695,getSheetObject as _0x36933e}from'@univerjs/sheets-ui';import{jsx as _0x173f7e,jsxs as _0x221d11}from'react/jsx-runtime';import{useObservable as _0x53bc2a,useDependency as _0x5c8a09,IUIPartsService as _0x59d7ec,BuiltInUIPart as _0x3132f6,connectInjector as _0x23bfb1,IBeforeCloseService as _0x40a6e3,IMessageService as _0x56a492,INotificationService as _0x3f9af0}from'@univerjs/ui';import{clsx as _0x405117,Tooltip as _0x22b028,MessageType as _0x2fb3a3}from'@univerjs/design';import{forwardRef as _0x1ab954,useRef as _0x4e2ba4,createElement as _0x54392a,useCallback as _0x4c9483}from'react';function _0x6421(_0x5227b7,_0x47f22f){const _0x1a4b22=_0x1a4b();return _0x6421=function(_0x64215e,_0x5a8bd0){_0x64215e=_0x64215e-0x133;let _0x3967a2=_0x1a4b22[_0x64215e];return _0x3967a2;},_0x6421(_0x5227b7,_0x47f22f);}import{IRemoteInstanceService as _0x5930a9}from'@univerjs/rpc';var li=Object[_0x338775(0x311)],_i=(_0x2674ea,_0x5341df,_0x323b32,_0x55f8ae)=>{for(var _0x5b30a6=_0x55f8ae>0x1?void 0x0:_0x55f8ae?li(_0x5341df,_0x323b32):_0x5341df,_0x5180b3=_0x2674ea['length']-0x1,_0x2a08b9;_0x5180b3>=0x0;_0x5180b3--)(_0x2a08b9=_0x2674ea[_0x5180b3])&&(_0x5b30a6=_0x2a08b9(_0x5b30a6)||_0x5b30a6);return _0x5b30a6;},Qe=(_0x5979c2,_0x24aab2)=>(_0x3836e7,_0x453c37)=>_0x24aab2(_0x3836e7,_0x453c37,_0x5979c2);let Me=class extends _0x13dc53{constructor(_0x23a952,_0x206350){const _0x2ac723=_0x338775;super(),this[_0x2ac723(0x166)]=_0x23a952,this[_0x2ac723(0x24d)]=_0x206350,this[_0x2ac723(0x32f)]();}[_0x338775(0x32f)](){const _0x12f329=_0x338775,_0x15f0ff=this;this[_0x12f329(0x282)](this['_docClipboardService'][_0x12f329(0x246)]({'onBeforePasteImage':async _0x3e0e63=>{const _0x516a3d=_0x12f329,_0x2c3f02=await _0x15f0ff[_0x516a3d(0x24d)][_0x516a3d(0x2a6)](_0x3e0e63);return _0x2c3f02?{'source':_0x2c3f02[_0x516a3d(0x32a)],'imageSourceType':_0x2c3f02['imageSourceType']}:null;}}));}};Me=_i([Qe(0x0,_0x25d06c),Qe(0x1,_0x24cbe5)],Me);const qe=[_0x338775(0x1d9),_0x338775(0x223),_0x338775(0x321),'red300',_0x338775(0x257),_0x338775(0x2e6)];class He extends _0x2fcb05{constructor(){const _0x57890e=_0x338775;super(...arguments),_(this,_0x57890e(0x202),new Map()),_(this,_0x57890e(0x27a),0x0);}[_0x338775(0x176)](_0x455729){const _0x16ad50=_0x338775;if(this[_0x16ad50(0x202)][_0x16ad50(0x1e3)](_0x455729))return this[_0x16ad50(0x202)][_0x16ad50(0x2be)](_0x455729);const _0x1fead5=qe[this[_0x16ad50(0x27a)]];return this[_0x16ad50(0x27a)]=(this[_0x16ad50(0x27a)]+0x1)%qe[_0x16ad50(0x160)],this[_0x16ad50(0x202)]['set'](_0x455729,_0x1fead5),_0x1fead5;}}function Dt(_0x378fb9){const _0x388e3e=_0x338775;let _0x28a336='';for(const _0x39ff38 of _0x378fb9){const {startOffset:_0x26d78a,endOffset:_0x4e223c,isActive:_0x1b714d,rangeType:_0x204fc5,segmentId:_0x36d680,segmentPage:_0x314f12}=_0x39ff38;_0x28a336[_0x388e3e(0x160)]&&(_0x28a336+=','),_0x28a336+=_0x26d78a+':'+_0x4e223c+':'+(_0x1b714d?'1':'0')+':'+_0x204fc5+':'+_0x36d680+':'+_0x314f12;}return _0x28a336;}function hi(_0x1f807c){const _0x34f7a2=_0x338775,_0x281b4b=_0x1f807c[_0x34f7a2(0x1db)](','),_0x56cc5a=[];for(const _0x3f4c50 of _0x281b4b){const [_0x3862d9,_0x13753d,_0x3033a6,_0x4435e1,_0x5c2356,_0x5cfbd3]=_0x3f4c50[_0x34f7a2(0x1db)](':');_0x56cc5a[_0x34f7a2(0x173)]({'startOffset':Number(_0x3862d9),'endOffset':Number(_0x13753d),'collapsed':_0x3862d9===_0x13753d,'isActive':_0x3033a6==='1','rangeType':_0x4435e1===_0x47ca0c[_0x34f7a2(0x2a9)]?_0x47ca0c[_0x34f7a2(0x2a9)]:_0x47ca0c[_0x34f7a2(0x243)],'segmentId':typeof _0x5c2356==_0x34f7a2(0x2da)?String(_0x5c2356):'','segmentPage':Number(_0x5cfbd3!=null?_0x5cfbd3:-0x1)});}return _0x56cc5a[_0x34f7a2(0x213)](_0x280cea=>_0x280cea['isActive'])||(_0x56cc5a[0x0][_0x34f7a2(0x269)]=!0x0),_0x56cc5a;}class je extends _0x13dc53{constructor(){const _0xc30aad=_0x338775;super(...arguments),_(this,_0xc30aad(0x235),new _0x119e86(null)),_(this,_0xc30aad(0x21d),this['_collabCursorState$']['asObservable']());}[_0x338775(0x1f6)](_0x5c6e74){const _0x3753a2=_0x338775,{unitID:_0x156397,memberID:_0x563eee,textRanges:_0x32ee4e}=_0x5c6e74,_0x419029=Dt(_0x32ee4e);if(_0x419029==='')return;const _0x5d2c03={'unitID':_0x156397,'memberID':_0x563eee,'selection':_0x419029};this[_0x3753a2(0x235)][_0x3753a2(0x152)](_0x5d2c03);}}var ui=Object[_0x338775(0x311)],di=(_0x2494d4,_0x40d692,_0x3d58f9,_0x14521b)=>{const _0x34c8cd=_0x338775;for(var _0x2bd187=_0x14521b>0x1?void 0x0:_0x14521b?ui(_0x40d692,_0x3d58f9):_0x40d692,_0x506453=_0x2494d4[_0x34c8cd(0x160)]-0x1,_0x5e2c22;_0x506453>=0x0;_0x506453--)(_0x5e2c22=_0x2494d4[_0x506453])&&(_0x2bd187=_0x5e2c22(_0x2bd187)||_0x2bd187);return _0x2bd187;},U=(_0x3f98af,_0x38dd00)=>(_0x22bfb3,_0x3e29a8)=>_0x38dd00(_0x22bfb3,_0x3e29a8,_0x3f98af);const fi=0x12c,Si=0x64;let Pe=class extends _0x13dc53{constructor(_0x1b4c37,_0x4dece6,_0x35d716,_0xc112f0,_0x13c806,_0x1e5e34,_0x5bc23d,_0x20f7a5,_0xe3e6cf){const _0x354056=_0x338775;super(),_(this,_0x354056(0x184),!0x1),_(this,_0x354056(0x32f),!0x1),_(this,_0x354056(0x159),new _0x119e86(new Map())),_(this,_0x354056(0x18c),this[_0x354056(0x159)][_0x354056(0x2e3)]()),_(this,_0x354056(0x2bd),new _0x119e86([])),_(this,_0x354056(0x22d),this['_roomMembers$']['pipe'](_0xc53d9(fi))),_(this,'_updateLocalCursor',_0x53e326(_0x3129d0=>{const _0x17d2db=_0x354056,_0x32da68={'eventID':_0x5d41e0[_0x17d2db(0x1d0)],'data':{'unitID':this[_0x17d2db(0x281)],'memberID':this[_0x17d2db(0x14d)][_0x17d2db(0x1c6)](),'selection':Dt(_0x3129d0)}};this['_session'][_0x17d2db(0x317)](_0x32da68,this['unitID']);},Si)),(this[_0x354056(0x281)]=_0x1b4c37,this[_0x354056(0x14d)]=_0x4dece6,this[_0x354056(0x277)]=_0x35d716,this['_colorAssignService']=_0xc112f0,this['_memberService']=_0x13c806,this[_0x354056(0x2bc)]=_0x1e5e34,this[_0x354056(0x2b3)]=_0x5bc23d,this['_univerInstanceService']=_0x20f7a5,this[_0x354056(0x19d)]=_0xe3e6cf);}get[_0x338775(0x2f0)](){const _0x26713b=_0x338775;return this[_0x26713b(0x159)][_0x26713b(0x331)]();}get[_0x338775(0x1e1)](){const _0x2378c3=_0x338775;return this[_0x2378c3(0x2bd)]['getValue']();}[_0x338775(0x1f8)](){const _0x27746f=_0x338775;super[_0x27746f(0x1f8)](),this[_0x27746f(0x159)]['next'](new Map()),this[_0x27746f(0x159)][_0x27746f(0x31f)](),this[_0x27746f(0x2bd)][_0x27746f(0x152)]([]),this[_0x27746f(0x2bd)][_0x27746f(0x31f)]();}[_0x338775(0x167)](){const _0x17f59b=_0x338775;this[_0x17f59b(0x32f)]||(this[_0x17f59b(0x32f)]=!0x0,this[_0x17f59b(0x14d)]['sessionStatus$'][_0x17f59b(0x2a1)](_0x2cb0e5(this[_0x17f59b(0x2ad)]))['subscribe'](_0x1bcb09=>{_0x1bcb09===_0x1e6c87['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x17f59b(0x14d)][_0x17f59b(0x250)]['pipe'](_0x2cb0e5(this[_0x17f59b(0x2ad)]))['subscribe'](_0x175bf8=>{const _0x28208b=_0x17f59b,_0x3b010c=_0x175bf8['eventID'];_0x3b010c===_0x5d41e0[_0x28208b(0x1d0)]&&this['_onCursorUpdate'](_0x175bf8),_0x3b010c===_0x5d41e0['USERS_LEAVE']&&this[_0x28208b(0x2dd)](_0x175bf8);}),this[_0x17f59b(0x282)](this[_0x17f59b(0x19d)]['onCommandExecuted'](_0x2c04b9=>{const _0x583b87=_0x17f59b,_0x38fdce=_0x2c04b9['params'];_0x38fdce!=null&&this['_online']&&_0x2c04b9['id']===_0xfe427b['id']&&_0x38fdce[_0x583b87(0x304)]===this['unitID']&&_0x38fdce['isEditing']===!0x1&&_0x38fdce[_0x583b87(0x1ce)][_0x583b87(0x160)]>0x0&&this['_updateLocalCursor'](_0x38fdce['ranges']);})),this[_0x17f59b(0x2bc)][_0x17f59b(0x21d)]['pipe'](_0x2cb0e5(this['dispose$']))[_0x17f59b(0x29b)](_0x57ecee=>{const _0x12d22f=_0x17f59b;if((_0x57ecee==null?void 0x0:_0x57ecee[_0x12d22f(0x281)])!==this[_0x12d22f(0x281)])return;const _0x273b4e={'eventID':_0x5d41e0['UPDATE_CURSOR'],'data':_0x57ecee};this['_onCursorUpdate'](_0x273b4e);}),this[_0x17f59b(0x282)](this[_0x17f59b(0x19d)]['onCommandExecuted'](_0x290a9d=>{const _0x1e0ba4=_0x17f59b;if(_0x290a9d['params']==null)return;const _0x4bff65=_0x290a9d[_0x1e0ba4(0x32c)];if(_0x290a9d['id']!==_0x359af5['id']||_0x4bff65[_0x1e0ba4(0x304)]!==this[_0x1e0ba4(0x281)])return;const _0x2fce09={'id':_0x1e0ba4(0x2ba),'params':_0x4bff65},_0x4648c4=this['cursorInfo'];for(const [_0x26f4ca,_0x21e119]of _0x4648c4){const _0x18c40d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1e0ba4(0x281)],'actions':null,'textRanges':_0x21e119[_0x1e0ba4(0x1ce)]}},_0x5f5705=this[_0x1e0ba4(0x2b3)][_0x1e0ba4(0x217)](_0x2fce09,_0x18c40d,!0x1);if(_0x21d4bf(_0x5f5705))throw _0x5f5705[_0x1e0ba4(0x2d0)];_0x4648c4['set'](_0x26f4ca,{..._0x21e119,'ranges':_0x5f5705[_0x1e0ba4(0x28b)][_0x1e0ba4(0x32c)]['textRanges']});}queueMicrotask(()=>{const _0x18dba3=_0x1e0ba4;this[_0x18dba3(0x159)][_0x18dba3(0x152)](_0x4648c4);});})));}['_onCursorUpdate'](_0x30c5b9){const _0x2071c1=_0x338775;var _0x31835b,_0x422203;const {memberID:_0x1b9cda,selection:_0x448fd6}=_0x30c5b9[_0x2071c1(0x143)],_0x147dae=hi(_0x448fd6),_0x24bc18=(_0x422203=(_0x31835b=this[_0x2071c1(0x24a)][_0x2071c1(0x16c)](this[_0x2071c1(0x281)],_0x1b9cda))==null?void 0x0:_0x31835b[_0x2071c1(0x20b)])!=null?_0x422203:_0x2071c1(0x26c),_0x2f3ae4={'color':this[_0x2071c1(0x2ea)][_0x2071c1(0x176)](_0x1b9cda),'name':_0x24bc18,'ranges':_0x147dae},_0x136179=this[_0x2071c1(0x2f0)];_0x136179[_0x2071c1(0x280)](_0x1b9cda,_0x2f3ae4),this[_0x2071c1(0x159)][_0x2071c1(0x152)](_0x136179);}[_0x338775(0x2dd)](_0x433611){const _0x2572c5=_0x338775,{memberID:_0xbf0061}=_0x433611[_0x2572c5(0x143)],_0xff9d4d=this[_0x2572c5(0x2f0)];_0xff9d4d[_0x2572c5(0x26f)](_0xbf0061),this[_0x2572c5(0x159)][_0x2572c5(0x152)](_0xff9d4d);}[_0x338775(0x2b4)](){const _0x432539=_0x338775;var _0x5d8c53;if(this[_0x432539(0x184)]=!0x0,((_0x5d8c53=this[_0x432539(0x211)][_0x432539(0x32d)]())==null?void 0x0:_0x5d8c53[_0x432539(0x192)]())!==this[_0x432539(0x281)])return;const _0x529676=this[_0x432539(0x277)][_0x432539(0x2be)](_0x46b0b1)[_0x432539(0x1f7)]();Array['isArray'](_0x529676)&&_0x529676[_0x432539(0x160)]>0x0&&this[_0x432539(0x203)](_0x529676);}[_0x338775(0x19e)](){const _0x360c6e=_0x338775;this[_0x360c6e(0x184)]=!0x1;}};Pe=di([U(0x2,_0x49d929(_0x241276)),U(0x3,_0x49d929(He)),U(0x4,_0x49d929(_0x18bd7b)),U(0x5,_0x49d929(je)),U(0x6,_0x5e8ec8),U(0x7,_0x364350),U(0x8,_0x20e3ab)],Pe);var mi=Object[_0x338775(0x311)],gi=(_0x4fd6b7,_0x55369a,_0x49aec6,_0x5726da)=>{const _0x4efa00=_0x338775;for(var _0x1c7916=_0x5726da>0x1?void 0x0:_0x5726da?mi(_0x55369a,_0x49aec6):_0x55369a,_0x1028fc=_0x4fd6b7[_0x4efa00(0x160)]-0x1,_0xf5ff12;_0x1028fc>=0x0;_0x1028fc--)(_0xf5ff12=_0x4fd6b7[_0x1028fc])&&(_0x1c7916=_0xf5ff12(_0x1c7916)||_0x1c7916);return _0x1c7916;},x=(_0x362b48,_0x197588)=>(_0x3dba63,_0x294d88)=>_0x197588(_0x3dba63,_0x294d88,_0x362b48);const vi=0x12c,Ii=0x64,pi=()=>{let _0x4ead40=[],_0x5123af=!0x1;return _0x264c7e=>{const _0x5f5043=_0x6421;_0x4ead40[_0x5f5043(0x173)](_0x264c7e),_0x5123af||(_0x5123af=!0x0,setTimeout(()=>{const _0x441486=_0x5f5043;_0x4ead40[_0x441486(0x19b)](_0x457b3e=>_0x457b3e()),_0x4ead40=[],_0x5123af=!0x1;}));};};let we=class extends _0x13dc53{constructor(_0x22478d,_0x57baac,_0x45f8b7,_0x4feadb,_0xd52880,_0x3ccfcd,_0x493f99,_0x17ce01){const _0x11f247=_0x338775;super(),_(this,_0x11f247(0x184),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x119e86(new Map())),_(this,_0x11f247(0x18c),this[_0x11f247(0x159)][_0x11f247(0x2e3)]()),_(this,_0x11f247(0x2bd),new _0x119e86([])),_(this,'roomMembers$',this[_0x11f247(0x2bd)][_0x11f247(0x2a1)](_0xc53d9(vi))),_(this,'_updateLocalCursor',_0x53e326((_0x5e94db,_0x558be9)=>{const _0x5cfedb=_0x11f247,_0x1b39be={'eventID':_0x5d41e0[_0x5cfedb(0x1d0)],'data':{'unitID':this[_0x5cfedb(0x281)],'memberID':this[_0x5cfedb(0x14d)]['getMemberID'](),'selection':_0x42b789(_0x5e94db,_0x558be9[_0x5cfedb(0x2c2)])}};this[_0x5cfedb(0x14d)][_0x5cfedb(0x317)](_0x1b39be,this[_0x5cfedb(0x281)]);},Ii)),(this[_0x11f247(0x281)]=_0x22478d,this[_0x11f247(0x14d)]=_0x57baac,this[_0x11f247(0x277)]=_0x45f8b7,this['_colorAssignService']=_0x4feadb,this[_0x11f247(0x24a)]=_0xd52880,this[_0x11f247(0x211)]=_0x3ccfcd,this['_commandService']=_0x493f99,this[_0x11f247(0x24c)]=_0x17ce01);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5a7d08=_0x338775;return this[_0x5a7d08(0x2bd)][_0x5a7d08(0x331)]();}[_0x338775(0x1f8)](){const _0x4554e1=_0x338775;super[_0x4554e1(0x1f8)](),this[_0x4554e1(0x159)]['next'](new Map()),this[_0x4554e1(0x159)]['complete'](),this[_0x4554e1(0x2bd)]['next']([]),this[_0x4554e1(0x2bd)][_0x4554e1(0x31f)]();}['init'](){const _0x1b4e79=_0x338775;this[_0x1b4e79(0x32f)]||(this[_0x1b4e79(0x32f)]=!0x0,this[_0x1b4e79(0x14d)]['sessionStatus$'][_0x1b4e79(0x2a1)](_0x2cb0e5(this[_0x1b4e79(0x2ad)]))['subscribe'](_0x3093f2=>{const _0x3cf96c=_0x1b4e79;_0x3093f2===_0x1e6c87[_0x3cf96c(0x22f)]?this['_toggleOnline']():this[_0x3cf96c(0x19e)]();}),this[_0x1b4e79(0x14d)][_0x1b4e79(0x250)][_0x1b4e79(0x2a1)](_0x2cb0e5(this[_0x1b4e79(0x2ad)]))[_0x1b4e79(0x29b)](_0x516e96=>{const _0x1bae6b=_0x1b4e79,_0x48b1de=_0x516e96[_0x1bae6b(0x297)];_0x48b1de===_0x5d41e0[_0x1bae6b(0x1d0)]&&this[_0x1bae6b(0x1de)](_0x516e96),_0x48b1de===_0x5d41e0['USERS_LEAVE']&&this[_0x1bae6b(0x2dd)](_0x516e96);}),this[_0x1b4e79(0x26a)](),this[_0x1b4e79(0x282)](this[_0x1b4e79(0x19d)][_0x1b4e79(0x239)](_0x31fcc5=>{const _0x13d574=_0x1b4e79;if(this['_online']&&_0x31fcc5['id']===_0x19f1d6['id']&&_0x31fcc5[_0x13d574(0x32c)][_0x13d574(0x304)]===this['unitID']){const _0x3d9c7c=_0x31fcc5['params'];this[_0x13d574(0x203)](_0x3d9c7c['subUnitId'],_0x3d9c7c[_0x13d574(0x248)][0x0]);}})));}[_0x338775(0x1de)](_0x3588fd){const _0xab791c=_0x338775;var _0xf94f10,_0x2e604d;const {memberID:_0x23a4b8,selection:_0xdd1451}=_0x3588fd[_0xab791c(0x143)],{sheetName:_0x560cc3,range:_0x4069f0}=_0x2ffaa(_0xdd1451),_0x2b4e6a={'name':(_0x2e604d=(_0xf94f10=this[_0xab791c(0x24a)]['getMember'](this['unitID'],_0x23a4b8))==null?void 0x0:_0xf94f10[_0xab791c(0x20b)])!=null?_0x2e604d:'Unknown\x20user','range':this[_0xab791c(0x1fc)](_0x560cc3,_0x4069f0),'sheetID':_0x560cc3,'color':this[_0xab791c(0x2ea)]['assignAColorForMemberID'](_0x23a4b8),'selection':_0xdd1451},_0x51253a=this[_0xab791c(0x2f0)];_0x51253a['set'](_0x23a4b8,_0x2b4e6a),this[_0xab791c(0x159)]['next'](_0x51253a);}[_0x338775(0x2dd)](_0x5319e3){const _0x351625=_0x338775,{memberID:_0x484806}=_0x5319e3[_0x351625(0x143)],_0x3e4236=this['cursorInfo'];_0x3e4236[_0x351625(0x26f)](_0x484806),this[_0x351625(0x159)][_0x351625(0x152)](_0x3e4236);}[_0x338775(0x1fc)](_0x38d1f3,_0x421434){const _0x2d9b0f=_0x338775;var _0xfad0e9,_0x4a8053;const _0x3d0bf0=(_0x4a8053=(_0xfad0e9=this[_0x2d9b0f(0x211)][_0x2d9b0f(0x15e)](this[_0x2d9b0f(0x281)]))==null?void 0x0:_0xfad0e9[_0x2d9b0f(0x2b8)](_0x38d1f3))==null?void 0x0:_0x4a8053[_0x2d9b0f(0x2b0)]();return(_0x3d0bf0==null?void 0x0:_0x3d0bf0[_0x2d9b0f(0x197)](_0x478102=>_0x314bd4[_0x2d9b0f(0x1e9)](_0x478102,_0x421434)))||_0x421434;}[_0x338775(0x26a)](){const _0x3dc35d=_0x338775,_0x422265=new _0x2574a2(),_0x25e788=pi(),_0x2796e6=()=>{const _0x18faad=_0x6421;_0x422265[_0x18faad(0x1f8)]();const _0x1606d3=(_0x26870f,_0x49f659,_0x1e31fe,_0x3e8f4e)=>{const _0xfbc14e=_0x18faad;let _0x4828f4=[];switch(_0x26870f['id']){case _0x28a6d5[_0xfbc14e(0x18f)]:{_0x4828f4=_0x1047c0(_0x26870f,_0x3e8f4e);break;}case _0x28a6d5['DeleteRangeMoveUpCommandId']:{_0x4828f4=_0x5c49d2(_0x26870f,_0x3e8f4e);break;}case _0x28a6d5[_0xfbc14e(0x2ef)]:{_0x4828f4=_0x3db75d(_0x26870f,_0x3e8f4e);break;}case _0x28a6d5[_0xfbc14e(0x183)]:{_0x4828f4=_0x12c421(_0x26870f,_0x3e8f4e);break;}case _0x28a6d5[_0xfbc14e(0x194)]:{_0x4828f4=_0x5c1d70(_0x26870f,_0x3e8f4e);break;}case _0x28a6d5[_0xfbc14e(0x191)]:{_0x4828f4=_0x5298aa(_0x26870f,_0x3e8f4e);break;}case _0x28a6d5[_0xfbc14e(0x20a)]:{_0x4828f4=_0xb19e8b(_0x26870f,_0x3e8f4e);break;}case _0x28a6d5[_0xfbc14e(0x330)]:{_0x4828f4=_0x19fbef(_0x26870f,_0x3e8f4e);break;}case _0x28a6d5['RemoveRowCommandId']:{_0x4828f4=_0x5db946(_0x26870f,_0x3e8f4e);break;}}const _0x165544=_0x575d69(_0x4828f4,_0x3e8f4e),_0x56c025=this['cursorInfo'][_0xfbc14e(0x2be)](_0x49f659);if(_0x56c025&&_0x165544){const _0x7cba35={..._0x56c025,'range':_0x165544};this[_0xfbc14e(0x2f0)][_0xfbc14e(0x280)](_0x49f659,_0x7cba35),_0x25e788(()=>{const _0x45652c=_0xfbc14e,_0x18621d=this[_0x45652c(0x24c)][_0x45652c(0x284)](_0x165544,_0x29ce9c=>(_0x18621d[_0x45652c(0x1f8)](),_0x1606d3(_0x29ce9c,_0x49f659,_0x1e31fe,_0x165544)));_0x422265[_0x45652c(0x1c9)](_0x18621d);});}return{'redos':[],'undos':[]};};this[_0x18faad(0x2f0)][_0x18faad(0x19b)]((_0x351cd9,_0x51a574)=>{const _0x1fbc9d=_0x18faad,{range:_0x5ab9ce,sheetID:_0x2c6652}=_0x351cd9,_0x1f6f2b=this['_refRangeService']['registerRefRange'](_0x5ab9ce,_0x3d7ee8=>(_0x1f6f2b[_0x1fbc9d(0x1f8)](),_0x1606d3(_0x3d7ee8,_0x51a574,_0x2c6652,_0x5ab9ce)));_0x422265[_0x1fbc9d(0x1c9)](_0x1f6f2b);});};this['disposeWithMe'](_0x294dcb(this[_0x3dc35d(0x159)][_0x3dc35d(0x29b)](()=>{_0x2796e6();})));}[_0x338775(0x2b4)](){const _0x30d986=_0x338775;var _0x1ce730,_0x21afe3;if(this[_0x30d986(0x184)]=!0x0,((_0x1ce730=this['_univerInstanceService'][_0x30d986(0x32d)]())==null?void 0x0:_0x1ce730[_0x30d986(0x192)]())!==this[_0x30d986(0x281)])return;const _0x501ff0=(_0x21afe3=this['_injector']['get'](_0xa5f728)[_0x30d986(0x2cb)]())==null?void 0x0:_0x21afe3[0x0],_0x2fe779=this[_0x30d986(0x211)][_0x30d986(0x31b)](_0x16d951['UNIVER_SHEET'])['getActiveSheet']();_0x501ff0&&_0x2fe779&&this[_0x30d986(0x203)](_0x2fe779[_0x30d986(0x267)](),_0x501ff0);}[_0x338775(0x19e)](){const _0x5455e8=_0x338775;this[_0x5455e8(0x184)]=!0x1;}};we=gi([x(0x2,_0x49d929(_0x241276)),x(0x3,_0x49d929(He)),x(0x4,_0x49d929(_0x18bd7b)),x(0x5,_0x364350),x(0x6,_0x20e3ab),x(0x7,_0x49d929(_0x1e0d60))],we);var Ci=Object[_0x338775(0x311)],Ei=(_0x4cbdec,_0x1ff611,_0x317bed,_0x2a172f)=>{for(var _0x2ecec3=_0x2a172f>0x1?void 0x0:_0x2a172f?Ci(_0x1ff611,_0x317bed):_0x1ff611,_0x46c703=_0x4cbdec['length']-0x1,_0x47c158;_0x46c703>=0x0;_0x46c703--)(_0x47c158=_0x4cbdec[_0x46c703])&&(_0x2ecec3=_0x47c158(_0x2ecec3)||_0x2ecec3);return _0x2ecec3;},me=(_0x407e50,_0x4d49cc)=>(_0x267d5c,_0x35972a)=>_0x4d49cc(_0x267d5c,_0x35972a,_0x407e50);let H=class extends _0x13dc53{constructor(_0x30ce13,_0x1bb287,_0x18449a){const _0x293641=_0x338775;super(),_(this,_0x293641(0x1ee),new Map()),_(this,'_entityInit$',new _0x2e2613()),(this['_univerInstanceService']=_0x30ce13,this[_0x293641(0x277)]=_0x1bb287,this[_0x293641(0x233)]=_0x18449a,this[_0x293641(0x32f)]());}[_0x338775(0x1f8)](){const _0x1b3092=_0x338775;super[_0x1b3092(0x1f8)](),this[_0x1b3092(0x2ca)][_0x1b3092(0x31f)](),this['_entities']['forEach'](_0x531d8b=>_0x531d8b['dispose']());}['getCollabCursors$'](_0x3e2f77){const _0x23c8f2=_0x338775;return this[_0x23c8f2(0x1ee)][_0x23c8f2(0x1e3)](_0x3e2f77)?this[_0x23c8f2(0x1ee)]['get'](_0x3e2f77)[_0x23c8f2(0x18c)]:this[_0x23c8f2(0x2ca)][_0x23c8f2(0x2a1)](_0xc8bbca(_0x1fe544=>_0x1fe544['unitID']===_0x3e2f77),_0x49d0e8(_0x5ed976=>_0x5ed976['cursorInfo$']));}[_0x338775(0x32f)](){const _0x3e7d53=_0x338775;this[_0x3e7d53(0x211)]['getTypeOfUnitAdded$'](_0x16d951[_0x3e7d53(0x2bb)])[_0x3e7d53(0x2a1)](_0x2cb0e5(this[_0x3e7d53(0x2ad)]))[_0x3e7d53(0x29b)](async _0x315ce0=>{const _0xacea2f=_0x3e7d53,_0x53fbcf=_0x315ce0['getUnitId'](),_0x5ac805=await this[_0xacea2f(0x2f9)](_0x53fbcf);this[_0xacea2f(0x2ca)][_0xacea2f(0x152)](_0x5ac805),this[_0xacea2f(0x1ee)][_0xacea2f(0x280)](_0x53fbcf,_0x5ac805);}),this[_0x3e7d53(0x211)][_0x3e7d53(0x1bc)](_0x16d951[_0x3e7d53(0x171)])['pipe'](_0x2cb0e5(this[_0x3e7d53(0x2ad)]))[_0x3e7d53(0x2a1)](_0xc8bbca(_0x1c0312=>!_0x1c0312['getUnitId']()['startsWith']('__')))[_0x3e7d53(0x29b)](async _0x11ee00=>{const _0xd7194d=_0x3e7d53,_0x3952d2=_0x11ee00[_0xd7194d(0x192)](),_0x318a1b=await this[_0xd7194d(0x28c)](_0x3952d2);this['_entityInit$'][_0xd7194d(0x152)](_0x318a1b),this[_0xd7194d(0x1ee)][_0xd7194d(0x280)](_0x3952d2,_0x318a1b);}),_0x1ec183(this[_0x3e7d53(0x211)][_0x3e7d53(0x158)](_0x16d951[_0x3e7d53(0x171)]),this[_0x3e7d53(0x211)][_0x3e7d53(0x158)](_0x16d951[_0x3e7d53(0x2bb)]))['pipe'](_0x2cb0e5(this[_0x3e7d53(0x2ad)]))['subscribe'](_0x2e3100=>{const _0xf67878=_0x3e7d53,_0x195153=_0x2e3100[_0xf67878(0x192)](),_0x5b2434=this[_0xf67878(0x1ee)]['get'](_0x195153);_0x5b2434&&(_0x5b2434[_0xf67878(0x1f8)](),this['_entities']['delete'](_0x195153));});}async[_0x338775(0x2f9)](_0x19091f){const _0x4bb32e=_0x338775,_0x4c3051=await this[_0x4bb32e(0x233)][_0x4bb32e(0x138)](_0x19091f),_0x4dcf0b=this[_0x4bb32e(0x277)][_0x4bb32e(0x206)](we,_0x19091f,_0x4c3051);return _0x4dcf0b[_0x4bb32e(0x167)](),_0x4dcf0b;}async['_startDocCollabCursor'](_0x3c5207){const _0xbced06=_0x338775,_0x3b321f=await this[_0xbced06(0x233)][_0xbced06(0x138)](_0x3c5207),_0x55dc9f=this['_injector'][_0xbced06(0x206)](Pe,_0x3c5207,_0x3b321f);return _0x55dc9f[_0xbced06(0x167)](),_0x55dc9f;}};H=Ei([me(0x0,_0x364350),me(0x1,_0x49d929(_0x241276)),me(0x2,_0x49d929(_0x17f3f5))],H);const te=0x14,et=0xc8,ge=0x4,bi=0x5;function Oi(_0x18a84d,_0x4e3e4c){const _0x483e54=_0x338775;let {radius:_0x4e0849,width:_0x38c47d,height:_0x3ac3d1}=_0x4e3e4c;_0x4e0849=_0x4e0849!=null?_0x4e0849:0x0,_0x38c47d=_0x38c47d!=null?_0x38c47d:0x1e,_0x3ac3d1=_0x3ac3d1!=null?_0x3ac3d1:0x1e;let _0x2ee751=0x0,_0x748e11=0x0,_0x214c80=0x0;_0x2ee751=_0x748e11=_0x214c80=Math[_0x483e54(0x1fd)](_0x4e0849,_0x38c47d/0x2,_0x3ac3d1/0x2),_0x18a84d['beginPath'](),_0x18a84d[_0x483e54(0x2c5)](_0x2ee751,0x0),_0x18a84d['lineTo'](_0x38c47d-_0x748e11,0x0),_0x18a84d[_0x483e54(0x328)](_0x38c47d-_0x748e11,_0x748e11,_0x748e11,Math['PI']*0x3/0x2,0x0,!0x1),_0x18a84d['lineTo'](_0x38c47d,_0x3ac3d1-_0x214c80),_0x18a84d[_0x483e54(0x328)](_0x38c47d-_0x214c80,_0x3ac3d1-_0x214c80,_0x214c80,0x0,Math['PI']/0x2,!0x1),_0x18a84d[_0x483e54(0x1f1)](0x0,_0x3ac3d1),_0x18a84d['lineTo'](0x0,_0x2ee751),_0x18a84d[_0x483e54(0x328)](_0x2ee751,_0x2ee751,_0x2ee751,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x18a84d['closePath'](),_0x4e3e4c['fill']&&(_0x18a84d[_0x483e54(0x293)](),_0x18a84d[_0x483e54(0x1a1)]=_0x4e3e4c['fill'],_0x4e3e4c[_0x483e54(0x2cd)]==='evenodd'?_0x18a84d[_0x483e54(0x229)](_0x483e54(0x2b1)):_0x18a84d[_0x483e54(0x229)](),_0x18a84d[_0x483e54(0x2e9)]());}class ue extends _0x1c2ac1{constructor(_0xcd3cd9,_0x505832){const _0x1af57b=_0x338775;super(_0xcd3cd9,_0x505832),_(this,_0x1af57b(0x31c)),_(this,_0x1af57b(0x295)),(this[_0x1af57b(0x31c)]=_0x505832==null?void 0x0:_0x505832[_0x1af57b(0x31c)],this[_0x1af57b(0x295)]=_0x505832==null?void 0x0:_0x505832[_0x1af57b(0x295)]);}static[_0x338775(0x2a0)](_0x43e450,_0xd4c41){const _0x1525ec=_0x338775,{text:_0x24d219,color:_0xce119d}=_0xd4c41;_0x43e450['save'](),_0x43e450['font']=_0x1525ec(0x2f6);const _0x1d663d=_0x43e450[_0x1525ec(0x273)](_0x24d219)['width'],_0xa78c51=Math[_0x1525ec(0x1fd)](_0x1d663d+0x2*ge,et);Oi(_0x43e450,{'height':te,'radius':0x4,'width':_0xa78c51,'fill':_0xce119d}),_0x43e450['fillStyle']=_0x1525ec(0x2e5);const _0x2a78be=ge,_0x4cf78e=te-bi,_0xc9cfe5=et-0x2*ge;if(_0x1d663d>_0xc9cfe5){let _0x1f6162='',_0x17a75c=0x0;for(const _0x2411a6 of _0x24d219){const _0x5cc82c=_0x43e450[_0x1525ec(0x273)](_0x2411a6)[_0x1525ec(0x16d)];if(_0x17a75c+_0x5cc82c<=_0xc9cfe5-_0x43e450['measureText']('...')['width'])_0x1f6162+=_0x2411a6,_0x17a75c+=_0x5cc82c;else{_0x1f6162+=_0x1525ec(0x2b7);break;}}_0x43e450[_0x1525ec(0x1e7)](_0x1f6162,_0x2a78be,_0x4cf78e);}else _0x43e450[_0x1525ec(0x1e7)](_0x24d219,_0x2a78be,_0x4cf78e);_0x43e450[_0x1525ec(0x2e9)]();}[_0x338775(0x1ca)](_0x424bdc){ue['drawWith'](_0x424bdc,this);}}const ve='collab-text-anchor-',Ti=_0x338775(0x212),Ri=_0x338775(0x23f),X=0x6,Di=1.5,Ie=0x4,Ni=1.5,Mi=_0x338775(0x251);class tt{constructor(_0x22d139,_0x58784a,_0xe4a7a0,_0x254232){const _0x58e4c4=_0x338775;_(this,_0x58e4c4(0x305),[]),_(this,_0x58e4c4(0x271),null),_(this,'_textBubble',null),_(this,_0x58e4c4(0x25d),null),_(this,_0x58e4c4(0x196),null),_(this,_0x58e4c4(0x253),null),(this[_0x58e4c4(0x270)]=_0x22d139,this[_0x58e4c4(0x283)]=_0x58784a,this[_0x58e4c4(0x240)]=_0xe4a7a0,this['_document']=_0x254232,this[_0x58e4c4(0x299)]());}set['_hover'](_0x2b2575){const _0x5b1ba0=_0x338775;_0x2b2575?(this[_0x5b1ba0(0x25d)]&&this[_0x5b1ba0(0x25d)][_0x5b1ba0(0x236)](),this[_0x5b1ba0(0x134)]&&this[_0x5b1ba0(0x134)][_0x5b1ba0(0x2b2)]()):(this[_0x5b1ba0(0x25d)]&&this[_0x5b1ba0(0x25d)][_0x5b1ba0(0x2b2)](),this[_0x5b1ba0(0x134)]&&this['_textBubble']['hide']());}[_0x338775(0x1f8)](){const _0x409dc6=_0x338775;for(const _0x4d72ab of this[_0x409dc6(0x305)])_0x4d72ab['dispose']();this[_0x409dc6(0x134)]&&this[_0x409dc6(0x134)][_0x409dc6(0x1f8)](),this[_0x409dc6(0x25d)]&&this[_0x409dc6(0x25d)][_0x409dc6(0x1f8)](),this[_0x409dc6(0x271)]&&this[_0x409dc6(0x271)][_0x409dc6(0x1f8)](),this['_eventUnsubscribe']&&this[_0x409dc6(0x253)]();}[_0x338775(0x299)](){const _0x2a5bdb=_0x338775;var _0x210cc2;const {_docSkeleton:_0x146699,_document:_0x3eae84}=this,{color:_0xae80d3,name:_0xa5ef69,ranges:_0x5befa5}=this[_0x2a5bdb(0x270)],_0x5126e1=_0x3eae84[_0x2a5bdb(0x2de)](),{docsLeft:_0x59000a,docsTop:_0x48d1d4}=_0x5126e1,_0x4ba43e=new _0x4d4d61(_0x5126e1,_0x146699);for(const {startOffset:_0x2b3b9e,endOffset:_0x46dd70,rangeType:_0x4be19a,segmentId:_0x511cff,segmentPage:_0x42015c,collapsed:_0x4238f3,isActive:_0x6c2d20}of _0x5befa5){const _0x4247bf=_0x146699[_0x2a5bdb(0x1ed)](_0x2b3b9e,!0x0,_0x511cff,_0x42015c);let _0x157146=_0x146699[_0x2a5bdb(0x1ed)](_0x46dd70,!0x0,_0x511cff,_0x42015c);if(_0x157146==null&&(_0x157146=_0x146699['findNodePositionByCharIndex'](_0x46dd70-0x1,!0x1,_0x511cff,_0x42015c)),_0x6c2d20){const {contentBoxPointGroup:_0x3d29eb}=_0x4ba43e['getRangePointData'](_0x157146,_0x157146);if(_0x3d29eb['length']===0x0)continue;this[_0x2a5bdb(0x208)](_0xae80d3,_0x3d29eb,_0x59000a,_0x48d1d4,_0xa5ef69),this[_0x2a5bdb(0x253)]=this[_0x2a5bdb(0x2ce)]();}if(_0x4247bf&&_0x157146){if(_0x4be19a===_0x47ca0c[_0x2a5bdb(0x243)]){const _0x2fb385=new _0x22a0c4(_0x5126e1,_0x146699),{pointGroup:_0x3bd6ea}=(_0x210cc2=_0x2fb385['getRangePointData'](_0x4247bf,_0x157146))!=null?_0x210cc2:{};if(_0x3bd6ea==null||_0x3bd6ea['length']===0x0)continue;this[_0x2a5bdb(0x1e5)](_0xae80d3,_0x3bd6ea,_0x59000a,_0x48d1d4);}else{if(!_0x4238f3){const {borderBoxPointGroup:_0x2906e2}=_0x4ba43e[_0x2a5bdb(0x2b6)](_0x4247bf,_0x157146);if(_0x2906e2[_0x2a5bdb(0x160)]===0x0)continue;this[_0x2a5bdb(0x2a7)](_0xae80d3,_0x2906e2,_0x59000a,_0x48d1d4);}}}}}[_0x338775(0x208)](_0x4fd6a3,_0x2bae4c,_0x4b2081,_0x5dd5bb,_0x449a58){const _0x58ecb2=_0x338775,_0x2d909a=this[_0x58ecb2(0x1ae)](_0x2bae4c),{left:_0xeb66b6,top:_0x89dbba,height:_0x2e1d68}=_0x2d909a,_0x12053e=this[_0x58ecb2(0x144)](),_0x2003d8=Ni/_0x12053e,_0x12e968=new _0x3d01dc(ve+_0x16b904[_0x58ecb2(0x29a)](X),{'left':_0xeb66b6+_0x4b2081-_0x2003d8,'top':_0x89dbba+_0x5dd5bb,'height':_0x2e1d68,'width':Di,'fill':_0x4fd6a3||_0x2b18c7(_0x45ad59[_0x58ecb2(0x2a4)],0x0),'strokeWidth':_0x2003d8,'stroke':Mi,'evented':!0x0});this[_0x58ecb2(0x271)]=_0x12e968,this[_0x58ecb2(0x283)]['addObject'](_0x12e968,_0x569e5a);const _0x294b89=new _0x3d01dc(ve+_0x16b904[_0x58ecb2(0x29a)](X),{'left':_0xeb66b6+_0x4b2081-_0x2003d8,'top':_0x89dbba+_0x5dd5bb-Ie/0x2,'height':Ie,'width':Ie,'fill':_0x4fd6a3||_0x2b18c7(_0x45ad59[_0x58ecb2(0x2a4)],0x0),'strokeWidth':0x0,'stroke':_0x4fd6a3||_0x2b18c7(_0x45ad59[_0x58ecb2(0x2a4)],0x0),'evented':!0x1});this[_0x58ecb2(0x25d)]=_0x294b89,this['_scene'][_0x58ecb2(0x276)](_0x294b89,_0x569e5a);const _0x115056=new ue(ve+_0x16b904[_0x58ecb2(0x29a)](X),{'left':_0xeb66b6+_0x4b2081-_0x2003d8,'top':_0x89dbba+_0x5dd5bb-te,'text':_0x449a58,'color':_0x4fd6a3});this[_0x58ecb2(0x134)]=_0x115056,this[_0x58ecb2(0x283)][_0x58ecb2(0x276)](_0x115056,_0x569e5a),this[_0x58ecb2(0x14c)]=!0x1;}[_0x338775(0x2ce)](){const _0x405c55=_0x338775,_0x1bca3a=this[_0x405c55(0x271)][_0x405c55(0x302)]['subscribeEvent'](()=>{const _0x437be0=_0x405c55;this[_0x437be0(0x14c)]=!0x0;}),_0x4f2fbe=this[_0x405c55(0x271)][_0x405c55(0x14a)][_0x405c55(0x2f2)](()=>{const _0x102095=_0x405c55;this[_0x102095(0x196)]&&clearTimeout(this[_0x102095(0x196)]),this['_hideTimer']=setTimeout(()=>{const _0x2e9452=_0x102095;this[_0x2e9452(0x14c)]=!0x1;},0x7d0);});return()=>{const _0x2cf52e=_0x405c55;_0x1bca3a[_0x2cf52e(0x214)](),_0x4f2fbe['unsubscribe']();};}[_0x338775(0x2a7)](_0x11a423,_0x3be05a,_0x114578,_0xb6dfdc){const _0x1900b7=_0x338775,_0x7e8b0a=new _0x3f0e63(_0x11a423)[_0x1900b7(0x329)](0.2)[_0x1900b7(0x17b)](),_0x2cc44f=new _0xe32f83(Ti+_0x16b904[_0x1900b7(0x29a)](X),{'pointsGroup':_0x3be05a,'fill':_0x7e8b0a||_0x2b18c7(_0x45ad59['black'],0.2),'left':_0x114578,'top':_0xb6dfdc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1900b7(0x305)][_0x1900b7(0x173)](_0x2cc44f),this['_scene']['addObject'](_0x2cc44f,_0x569e5a);}[_0x338775(0x1e5)](_0x4b6f9e,_0x57e558,_0x49caa2,_0xb9690c){const _0x56131b=_0x338775,_0x57a947=new _0x3f0e63(_0x4b6f9e)[_0x56131b(0x329)](0.2)[_0x56131b(0x17b)](),_0xcb451b=new _0xe32f83(Ri+_0x16b904['generateRandomId'](X),{'pointsGroup':_0x57e558,'fill':_0x57a947||_0x2b18c7(_0x45ad59[_0x56131b(0x2a4)],0.2),'left':_0x49caa2,'top':_0xb9690c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56131b(0x305)][_0x56131b(0x173)](_0xcb451b),this['_scene']['addObject'](_0xcb451b,_0x569e5a);}[_0x338775(0x1ae)](_0x47e564){const _0x2fc1d8=_0x47e564[0x0],_0x315948=_0x2fc1d8[0x0],_0x2df148=_0x2fc1d8[0x2],{x:_0x2ddbbe,y:_0x15dcfa}=_0x315948,{x:_0x206a07,y:_0xd6ecd3}=_0x2df148;return{'left':_0x2ddbbe,'top':_0x15dcfa,'width':_0x206a07-_0x2ddbbe,'height':_0xd6ecd3-_0x15dcfa};}[_0x338775(0x144)](){const _0x372da5=_0x338775,{scaleX:_0x5bdb20,scaleY:_0x22c67e}=this[_0x372da5(0x283)][_0x372da5(0x249)]();return Math[_0x372da5(0x315)](_0x5bdb20,_0x22c67e);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x5ee130,_0x5401f7,_0x8eef80,_0x1324fa)=>{const _0x20f6d4=_0x338775;for(var _0x5331c0=_0x1324fa>0x1?void 0x0:_0x1324fa?Pi(_0x5401f7,_0x8eef80):_0x5401f7,_0x1ba507=_0x5ee130[_0x20f6d4(0x160)]-0x1,_0x316575;_0x1ba507>=0x0;_0x1ba507--)(_0x316575=_0x5ee130[_0x1ba507])&&(_0x5331c0=_0x316575(_0x5331c0)||_0x5331c0);return _0x5331c0;},Q=(_0x2043f4,_0x537bd8)=>(_0x2b0549,_0x4c8a93)=>_0x537bd8(_0x2b0549,_0x4c8a93,_0x2043f4);let Ue=class extends _0x13dc53{constructor(_0x1329a9,_0x10df49,_0x4c24df,_0x57e991,_0x5b3874){const _0x484115=_0x338775;super(),_(this,_0x484115(0x231),[]),_(this,_0x484115(0x26d),[]),(this[_0x484115(0x1a6)]=_0x1329a9,this[_0x484115(0x2c3)]=_0x10df49,this['_collabCursorController']=_0x4c24df,this[_0x484115(0x19d)]=_0x57e991,this[_0x484115(0x314)]=_0x5b3874,this[_0x484115(0x32f)]());}[_0x338775(0x32f)](){const _0x37dace=_0x338775,_0x56646f=this[_0x37dace(0x1a6)][_0x37dace(0x304)],_0x2ed3f2=this[_0x37dace(0x2c3)];this['disposeWithMe'](_0x35de87([this['_collabCursorController'][_0x37dace(0x2e4)](_0x56646f),this[_0x37dace(0x314)][_0x37dace(0x1dd)]])['pipe'](_0x454e1f(([_0x3858d7,_0xf030d9])=>({'skeleton':_0x2ed3f2[_0x37dace(0x175)](),'cursors':[..._0x3858d7[_0x37dace(0x145)]()][_0x37dace(0x224)](_0x48c6c9=>({..._0x48c6c9,'color':_0xf030d9[_0x48c6c9['color']]}))})))[_0x37dace(0x29b)](_0x6b3e3d=>{const _0x23f330=_0x37dace;if(this[_0x23f330(0x294)](),_0x6b3e3d){const {skeleton:_0x291fba,cursors:_0x580732}=_0x6b3e3d;this[_0x23f330(0x1eb)](_0x291fba,_0x580732);}})),this[_0x37dace(0x1a0)](),this[_0x37dace(0x1cd)]();}[_0x338775(0x1eb)](_0x1eb675,_0x9cec73){const _0x49f342=_0x338775,{scene:_0x1109e2,mainComponent:_0x242036}=this[_0x49f342(0x1a6)],_0x361c4a=_0x9cec73[_0x49f342(0x241)](_0x41757a=>new tt(_0x41757a,_0x1109e2,_0x1eb675,_0x242036));this[_0x49f342(0x231)]=_0x361c4a,this[_0x49f342(0x26d)]=_0x9cec73;}[_0x338775(0x238)](){const _0x15a76d=_0x338775;this[_0x15a76d(0x294)]();const {scene:_0x1a5270,mainComponent:_0x85bbf4}=this['_context'],_0x1ae87b=this[_0x15a76d(0x2c3)]['getSkeleton'](),_0xb2ac55=this[_0x15a76d(0x26d)][_0x15a76d(0x241)](_0xa7c5f8=>new tt(_0xa7c5f8,_0x1a5270,_0x1ae87b,_0x85bbf4));this[_0x15a76d(0x231)]=_0xb2ac55;}[_0x338775(0x294)](){const _0x44dcef=_0x338775;this[_0x44dcef(0x231)][_0x44dcef(0x19b)](_0x524a6f=>_0x524a6f[_0x44dcef(0x1f8)]()),this[_0x44dcef(0x231)]=[];}[_0x338775(0x1cd)](){const _0x1494e2=_0x338775,_0x47b1f7=[_0x204e55['id']];this[_0x1494e2(0x282)](this[_0x1494e2(0x19d)][_0x1494e2(0x239)](_0x5d6d26=>{const _0x4505b9=_0x1494e2;_0x47b1f7[_0x4505b9(0x164)](_0x5d6d26['id'])&&_0x5d6d26[_0x4505b9(0x32c)]['unitId']===this[_0x4505b9(0x1a6)][_0x4505b9(0x304)]&&this[_0x4505b9(0x238)]();}));}[_0x338775(0x1a0)](){const _0x27d2de=_0x338775;this[_0x27d2de(0x282)](_0x500592(this[_0x27d2de(0x1a6)][_0x27d2de(0x334)][_0x27d2de(0x182)])['pipe'](_0x19ea32(_0x1d170b=>_0x1d170b[_0x27d2de(0x1c0)]===_0x54adbf['resize']),_0x1394ad(0x10))[_0x27d2de(0x29b)](()=>{const _0x369682=_0x27d2de;this[_0x369682(0x238)]();}));}};Ue=wi([Q(0x1,_0x49d929(_0x5cde45)),Q(0x2,_0x49d929(H)),Q(0x3,_0x20e3ab),Q(0x4,_0x49d929(_0xbbd8c4))],Ue);const Ui=0x1,Li=1.5;class Ai extends _0x1c2ac1{constructor(_0x418c69,_0x3d2441){const _0x2361ca=_0x338775;super(_0x418c69,_0x3d2441),_(this,_0x2361ca(0x157)),_(this,_0x2361ca(0x181),!0x1),_(this,'_range'),_(this,_0x2361ca(0x1c3),''),_(this,_0x2361ca(0x1b7),'top'),_(this,_0x2361ca(0x2d2)),(_0x3d2441&&this[_0x2361ca(0x1f2)](_0x3d2441),this[_0x2361ca(0x302)][_0x2361ca(0x2f2)](()=>this[_0x2361ca(0x1f2)]({'hovered':!0x0})),this[_0x2361ca(0x14a)][_0x2361ca(0x2f2)](()=>this[_0x2361ca(0x1f2)]({'hovered':!0x1})));}[_0x338775(0x1f2)](_0x32b5eb){const _0x29a65c=_0x338775;var _0x35f8e9,_0x3adf7d,_0x4583f5,_0x125792,_0x7de314,_0x1b162f;this[_0x29a65c(0x157)]=(_0x35f8e9=_0x32b5eb[_0x29a65c(0x31c)])!=null?_0x35f8e9:this['_color'],this[_0x29a65c(0x181)]=(_0x3adf7d=_0x32b5eb[_0x29a65c(0x2aa)])!=null?_0x3adf7d:this[_0x29a65c(0x181)],this['_range']=(_0x4583f5=_0x32b5eb[_0x29a65c(0x2c2)])!=null?_0x4583f5:this[_0x29a65c(0x188)],this[_0x29a65c(0x1c3)]=(_0x125792=_0x32b5eb[_0x29a65c(0x20b)])!=null?_0x125792:this[_0x29a65c(0x1c3)],this['_labelPosition']=(_0x7de314=_0x32b5eb['labelPosition'])!=null?_0x7de314:this['_labelPosition'],this['_backgroundColor']=(_0x1b162f=_0x32b5eb['backgroundColor'])!=null?_0x1b162f:this[_0x29a65c(0x2d2)],this[_0x29a65c(0x2c6)]({'width':_0x32b5eb[_0x29a65c(0x16d)],'height':_0x32b5eb[_0x29a65c(0x2c8)]});}[_0x338775(0x254)](_0x213ff0){const _0x25a21b=_0x338775,{row:_0x45bf68,column:_0x12122f}=_0x213ff0;if(_0x45bf68>=this[_0x25a21b(0x188)][_0x25a21b(0x312)]&&_0x45bf68<=this[_0x25a21b(0x188)][_0x25a21b(0x216)]&&_0x12122f>=this[_0x25a21b(0x188)][_0x25a21b(0x1b1)]&&_0x12122f<=this[_0x25a21b(0x188)][_0x25a21b(0x187)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x25a21b(0x1f2)]({'hovered':!0x1});}[_0x338775(0x245)](_0x2bd9ca){return!0x1;}[_0x338775(0x1ca)](_0x40d126){const _0x45926f=_0x338775;_0x3d01dc[_0x45926f(0x2a0)](_0x40d126,{'width':this[_0x45926f(0x16d)],'height':this['height'],'strokeWidth':Li,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x40d126[_0x45926f(0x293)](),_0x40d126[_0x45926f(0x2fe)](0x1,0x0,0x0,0x1,this[_0x45926f(0x16d)],this[_0x45926f(0x1b7)]==='bottom'?0x0:-0x14),ue[_0x45926f(0x2a0)](_0x40d126,{'text':this[_0x45926f(0x1c3)],'color':this[_0x45926f(0x157)]}),_0x40d126['restore']());}}var yi=Object[_0x338775(0x311)],$i=(_0x327663,_0x59844a,_0xa4f4b1,_0x43127d)=>{const _0x5f0189=_0x338775;for(var _0x3239ab=_0x43127d>0x1?void 0x0:_0x43127d?yi(_0x59844a,_0xa4f4b1):_0x59844a,_0x2eb40f=_0x327663[_0x5f0189(0x160)]-0x1,_0x238d1b;_0x2eb40f>=0x0;_0x2eb40f--)(_0x238d1b=_0x327663[_0x2eb40f])&&(_0x3239ab=_0x238d1b(_0x3239ab)||_0x3239ab);return _0x3239ab;},pe=(_0x5c40a1,_0x475634)=>(_0x3701f4,_0x2a8d71)=>_0x475634(_0x3701f4,_0x2a8d71,_0x5c40a1);const xi=0x1389;let Le=class extends _0x13dc53{constructor(_0xd806ef,_0x30bc6c,_0xdb1dc2,_0x3a1017){const _0x952ad8=_0x338775;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0xd806ef,this[_0x952ad8(0x335)]=_0x30bc6c,this['_collabCursorController']=_0xdb1dc2,this['_themeService']=_0x3a1017,this[_0x952ad8(0x32f)]());}[_0x338775(0x32f)](){const _0x165f04=_0x338775;this[_0x165f04(0x335)][_0x165f04(0x18b)][_0x165f04(0x2a1)](_0x3e79f2(this[_0x165f04(0x2ad)]),_0x31ddfd(_0x5e350d=>{const _0x40192e=_0x165f04;if(_0x5e350d){const _0x514b8c=_0x5e350d['sheetId'];return _0x35de87(this[_0x40192e(0x156)][_0x40192e(0x2e4)](this['_context'][_0x40192e(0x304)]),this['_themeService'][_0x40192e(0x1dd)])[_0x40192e(0x2a1)](_0x454e1f(([_0x16b346,_0x3b8031])=>{const _0xc34ef9=new Map();return _0x16b346['forEach']((_0x1ea489,_0x1e1f57)=>{const _0x2752af=_0x6421;if(_0x1ea489[_0x2752af(0x21e)]===_0x514b8c){const _0x225fd6={..._0x1ea489};_0x225fd6[_0x2752af(0x31c)]=_0x3b8031[_0x1ea489[_0x2752af(0x31c)]],_0xc34ef9[_0x2752af(0x280)](_0x1e1f57,_0x225fd6);}}),{'skeleton':_0x5e350d,'cursors':_0xc34ef9};}));}return _0x28c61a({'skeleton':null,'cursors':new Map()});}))[_0x165f04(0x29b)](({skeleton:_0x32115d,cursors:_0x6cd9e0})=>{const _0x299235=_0x165f04;this[_0x299235(0x294)](),_0x32115d&&this[_0x299235(0x1eb)](_0x32115d,_0x6cd9e0);}),this['_sheetSkeletonManagerService'][_0x165f04(0x18b)][_0x165f04(0x29b)](_0x4b7719=>{const _0x468285=_0x165f04;if(_0x4b7719==null)return;const {skeleton:_0x42e529}=_0x4b7719,{scene:_0x5ddbfb}=this[_0x468285(0x1a6)];_0x5ddbfb[_0x468285(0x32b)]['subscribeEvent'](_0x53e326(_0x30ae43=>{const _0x15bb4d=_0x468285;var _0x13fe85,_0x5b585a;const {offsetX:_0x5b4284,offsetY:_0x6ce6c}=_0x30ae43,{x:_0x58b3d5,y:_0x3234af}=_0x5ddbfb['getRelativeToViewportCoord'](_0x4be85b[_0x15bb4d(0x2e0)]([_0x5b4284,_0x6ce6c])),{scaleX:_0xdd2ff7,scaleY:_0x2f8755}=_0x5ddbfb['getAncestorScale'](),_0x16d017=_0x5ddbfb['getViewport'](_0x2485d0['VIEW_MAIN']),_0x45438f=_0x5ddbfb['getVpScrollXYInfoByPosToVp'](_0x4be85b[_0x15bb4d(0x2e0)]([_0x58b3d5,_0x3234af]),_0x16d017),_0x395233=_0x42e529[_0x15bb4d(0x1b8)](_0x5b4284,_0x6ce6c,_0xdd2ff7,_0x2f8755,_0x45438f);((_0x13fe85=this['_lastPointer'])==null?void 0x0:_0x13fe85[_0x15bb4d(0x266)])===_0x395233[_0x15bb4d(0x266)]&&((_0x5b585a=this[_0x15bb4d(0x2f4)])==null?void 0x0:_0x5b585a[_0x15bb4d(0x15a)])===_0x395233[_0x15bb4d(0x15a)]||this[_0x15bb4d(0x26d)]['forEach'](_0x1d245c=>{const _0x56c403=_0x15bb4d;_0x1d245c[_0x56c403(0x254)](_0x395233);});},0x64));});}[_0x338775(0x1eb)](_0x54381d,_0x34517e){const _0x19b848=_0x338775;var _0x327957;const _0xb40cba=(_0x327957=this[_0x19b848(0x335)]['getCurrent']())==null?void 0x0:_0x327957['skeleton'];if(!_0xb40cba)return;const _0x53178b=this[_0x19b848(0x333)]();if(!_0x53178b)return;this['_cursors']['forEach'](_0x4fac71=>{_0x4fac71['makeDirty']();});const {scene:_0x218970}=_0x53178b,_0x163b82=Bi(Array[_0x19b848(0x327)](_0x34517e[_0x19b848(0x145)]()))['map'](_0xc261e0=>{const {color:_0x54e5d5,range:_0x3836e6,name:_0x348349,selection:_0x18caf4,sheetID:_0x1d5f0c}=_0xc261e0,{startColumn:_0x512e0f,startRow:_0x2cb5e5,endColumn:_0x2f8c1e,endRow:_0x1c2e93}=_0x3836e6,_0xb7530=_0x5db695(_0x2cb5e5,_0x512e0f,_0x218970,_0xb40cba),_0x3f8cbe=_0x5db695(_0x1c2e93,_0x2f8c1e,_0x218970,_0xb40cba),{columnHeaderHeightAndMarginTop:_0x578571}=_0xb40cba,{startX:_0x9ed740,startY:_0x5ef8d8}=_0xb7530,{endX:_0x87dde5,endY:_0xb97f4f}=_0x3f8cbe,_0x1f30a5=_0x87dde5-_0x9ed740,_0x7a4674=_0xb97f4f-_0x5ef8d8,_0x376121={'labelPosition':_0x5ef8d8-_0x578571>=te?'top':'bottom','sheetID':_0x1d5f0c,'range':_0x3836e6,'color':_0x54e5d5,'name':_0x348349,'selection':_0x18caf4,'left':_0x9ed740,'top':_0x5ef8d8,'width':_0x1f30a5,'height':_0x7a4674,'evented':!0x1,'zIndex':xi};return new Ai(_0x348349,_0x376121);});_0x218970[_0x19b848(0x1d3)](_0x163b82,Ui),this[_0x19b848(0x26d)]=new Set(_0x163b82);}[_0x338775(0x294)](){const _0x1d83b1=_0x338775;var _0x2209b4;(_0x2209b4=this[_0x1d83b1(0x26d)])==null||_0x2209b4[_0x1d83b1(0x19b)](_0x5dbf91=>_0x5dbf91[_0x1d83b1(0x1f8)]());}[_0x338775(0x333)](){const _0x37832f=_0x338775;return _0x36933e(this['_context']['unit'],this[_0x37832f(0x1a6)]);}};Le=$i([pe(0x1,_0x49d929(_0x3a8b8d)),pe(0x2,_0x49d929(H)),pe(0x3,_0x49d929(_0xbbd8c4))],Le);function Bi(_0x254ea9){const _0x1815bc=_0x338775,_0x31247d=new Map();return _0x254ea9[_0x1815bc(0x19b)](_0x414f1b=>{const _0x31211f=_0x1815bc;if(_0x31247d[_0x31211f(0x1e3)](_0x414f1b[_0x31211f(0x22a)])){const _0x320f39=_0x31247d['get'](_0x414f1b[_0x31211f(0x22a)]);_0x320f39[_0x31211f(0x20b)]+=',\x20'+_0x414f1b['name'];}else _0x31247d['set'](_0x414f1b[_0x31211f(0x22a)],_0x414f1b);}),Array[_0x1815bc(0x327)](_0x31247d[_0x1815bc(0x145)]());}var I=function(){const _0x6ad7b6=_0x338775;return I=Object['assign']||function(_0x74be58){const _0x341c8a=_0x6421;for(var _0x5c720c,_0x2ecbcb=0x1,_0xd7567=arguments[_0x341c8a(0x160)];_0x2ecbcb<_0xd7567;_0x2ecbcb++){_0x5c720c=arguments[_0x2ecbcb];for(var _0x55b5f1 in _0x5c720c)Object[_0x341c8a(0x286)][_0x341c8a(0x2af)][_0x341c8a(0x2b9)](_0x5c720c,_0x55b5f1)&&(_0x74be58[_0x55b5f1]=_0x5c720c[_0x55b5f1]);}return _0x74be58;},I[_0x6ad7b6(0x1c5)](this,arguments);},ki=function(_0x444d7d,_0x798aee){const _0x2a4813=_0x338775;var _0x441de9={};for(var _0x287d0b in _0x444d7d)Object['prototype'][_0x2a4813(0x2af)][_0x2a4813(0x2b9)](_0x444d7d,_0x287d0b)&&_0x798aee['indexOf'](_0x287d0b)<0x0&&(_0x441de9[_0x287d0b]=_0x444d7d[_0x287d0b]);if(_0x444d7d!=null&&typeof Object['getOwnPropertySymbols']==_0x2a4813(0x1a9)){for(var _0x3b55ae=0x0,_0x287d0b=Object[_0x2a4813(0x155)](_0x444d7d);_0x3b55ae<_0x287d0b[_0x2a4813(0x160)];_0x3b55ae++)_0x798aee[_0x2a4813(0x1ef)](_0x287d0b[_0x3b55ae])<0x0&&Object[_0x2a4813(0x286)][_0x2a4813(0x20c)][_0x2a4813(0x2b9)](_0x444d7d,_0x287d0b[_0x3b55ae])&&(_0x441de9[_0x287d0b[_0x3b55ae]]=_0x444d7d[_0x287d0b[_0x3b55ae]]);}return _0x441de9;},We=_0x1ab954(function(_0x533267,_0x2270a2){const _0x15a17f=_0x338775;var _0x5c7758=_0x533267[_0x15a17f(0x319)],_0x2f966b=_0x533267['id'],_0x2a9829=_0x533267[_0x15a17f(0x308)],_0x44fcea=_0x533267[_0x15a17f(0x274)],_0x11c348=ki(_0x533267,[_0x15a17f(0x319),'id',_0x15a17f(0x308),_0x15a17f(0x274)]),_0x473d46='univerjs-icon\x20univerjs-icon-'[_0x15a17f(0x19a)](_0x2f966b,'\x20')['concat'](_0x2a9829||'')[_0x15a17f(0x22b)](),_0x109661=_0x4e2ba4('_'[_0x15a17f(0x19a)](Wi()));return Nt(_0x5c7758,''[_0x15a17f(0x19a)](_0x2f966b),{'defIds':_0x5c7758[_0x15a17f(0x139)],'idSuffix':_0x109661['current']},I({'ref':_0x2270a2,'className':_0x473d46},_0x11c348),_0x44fcea);});function Nt(_0x13a242,_0x474c3d,_0x21bf6b,_0x2c8ec5,_0x3f0ce2){const _0x132efd=_0x338775;return _0x54392a(_0x13a242[_0x132efd(0x1fb)],I(I({'key':_0x474c3d},Hi(_0x13a242,_0x21bf6b,_0x3f0ce2)),_0x2c8ec5),(ji(_0x13a242,_0x21bf6b)[_0x132efd(0x218)]||[])[_0x132efd(0x241)](function(_0x365560,_0x5b8671){const _0x4b2f4b=_0x132efd;return Nt(_0x365560,''[_0x4b2f4b(0x19a)](_0x474c3d,'-')[_0x4b2f4b(0x19a)](_0x13a242[_0x4b2f4b(0x1fb)],'-')['concat'](_0x5b8671),_0x21bf6b,void 0x0,_0x3f0ce2);}));}function Hi(_0x3b642e,_0xa3c65d,_0x43ce5a){const _0x3f3e67=_0x338775;var _0x170214=I({},_0x3b642e[_0x3f3e67(0x1cf)]);_0x43ce5a!=null&&_0x43ce5a[_0x3f3e67(0x2d3)]&&_0x170214[_0x3f3e67(0x229)]===_0x3f3e67(0x2d3)&&(_0x170214[_0x3f3e67(0x229)]=_0x43ce5a['colorChannel1']),_0x3b642e[_0x3f3e67(0x1fb)]===_0x3f3e67(0x23e)&&_0x170214['id']&&(_0x170214['id']=_0x170214['id']+_0xa3c65d[_0x3f3e67(0x186)]),Object[_0x3f3e67(0x29d)](_0x170214)['forEach'](function(_0x545a85){const _0x4fbef7=_0x3f3e67;var _0x477b60=_0x545a85[0x0],_0x4ab4be=_0x545a85[0x1];_0x477b60==='mask'&&typeof _0x4ab4be==_0x4fbef7(0x2da)&&(_0x170214[_0x477b60]=_0x4ab4be['replace'](/url\(#(.*)\)/,_0x4fbef7(0x1c8)[_0x4fbef7(0x19a)](_0xa3c65d['idSuffix'],')')));});var _0x3ce8e3=_0xa3c65d[_0x3f3e67(0x139)];return!_0x3ce8e3||_0x3ce8e3['length']===0x0||(_0x3b642e[_0x3f3e67(0x1fb)]==='use'&&_0x170214[_0x3f3e67(0x25b)]&&(_0x170214['xlink:href']=_0x170214[_0x3f3e67(0x25b)]+_0xa3c65d[_0x3f3e67(0x186)]),Object[_0x3f3e67(0x29d)](_0x170214)['forEach'](function(_0x19059b){const _0x1da46b=_0x3f3e67;var _0x4c2e0d=_0x19059b[0x0],_0x2e9d13=_0x19059b[0x1];typeof _0x2e9d13==_0x1da46b(0x2da)&&(_0x170214[_0x4c2e0d]=_0x2e9d13[_0x1da46b(0x148)](/url\(#(.*)\)/,_0x1da46b(0x1c8)[_0x1da46b(0x19a)](_0xa3c65d[_0x1da46b(0x186)],')')));})),_0x170214;}function ji(_0x5298a8,_0x157ff2){const _0x3dd34e=_0x338775;var _0x46b7e0,_0x5a85b8=_0x157ff2[_0x3dd34e(0x139)];return!_0x5a85b8||_0x5a85b8[_0x3dd34e(0x160)]===0x0?_0x5298a8:_0x5298a8[_0x3dd34e(0x1fb)]===_0x3dd34e(0x1e0)&&(!((_0x46b7e0=_0x5298a8[_0x3dd34e(0x218)])===null||_0x46b7e0===void 0x0)&&_0x46b7e0['length'])?I(I({},_0x5298a8),{'children':_0x5298a8[_0x3dd34e(0x218)][_0x3dd34e(0x241)](function(_0x56a1c0){const _0x2bdf3c=_0x3dd34e;return typeof _0x56a1c0[_0x2bdf3c(0x1cf)]['id']==_0x2bdf3c(0x2da)&&_0x5a85b8&&_0x5a85b8[_0x2bdf3c(0x1ef)](_0x56a1c0[_0x2bdf3c(0x1cf)]['id'])>-0x1?I(I({},_0x56a1c0),{'attrs':I(I({},_0x56a1c0[_0x2bdf3c(0x1cf)]),{'id':_0x56a1c0[_0x2bdf3c(0x1cf)]['id']+_0x157ff2['idSuffix']})}):_0x56a1c0;})}):_0x5298a8;}function Wi(){const _0x4bab62=_0x338775;return Math['random']()[_0x4bab62(0x31e)](0x24)[_0x4bab62(0x18a)](0x2,0x8);}We[_0x338775(0x1b2)]=_0x338775(0x2c4);var Fi={'tag':_0x338775(0x135),'attrs':{'fill':'none','viewBox':_0x338775(0x25c),'width':_0x338775(0x1af),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x338775(0x322)},'children':[{'tag':_0x338775(0x228),'attrs':{'stroke':_0x338775(0x2d7),'d':_0x338775(0x2d9),'strokeLinecap':_0x338775(0x298),'strokeLinejoin':_0x338775(0x298),'strokeWidth':1.2}}]},{'tag':_0x338775(0x1e0),'attrs':{},'children':[{'tag':_0x338775(0x2c7),'attrs':{'id':_0x338775(0x230)},'children':[{'tag':_0x338775(0x228),'attrs':{'fill':'#fff','d':_0x338775(0x2ab)}}]}]}],'defIds':[_0x338775(0x230)]},Mt=_0x1ab954(function(_0x3ee191,_0x14b78b){const _0x28d51f=_0x338775;return _0x54392a(We,Object[_0x28d51f(0x325)]({},_0x3ee191,{'id':_0x28d51f(0x1a2),'ref':_0x14b78b,'icon':Fi}));});Mt[_0x338775(0x1b2)]=_0x338775(0x1bd);var Vi={'tag':_0x338775(0x135),'attrs':{'fill':_0x338775(0x25e),'viewBox':'0\x200\x2017\x2016','width':_0x338775(0x1af),'height':_0x338775(0x1af)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x338775(0x228),'attrs':{'stroke':_0x338775(0x2d7),'d':_0x338775(0x1d7),'strokeLinecap':_0x338775(0x298),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x338775(0x1e0),'attrs':{},'children':[{'tag':_0x338775(0x2c7),'attrs':{'id':_0x338775(0x15d)},'children':[{'tag':_0x338775(0x228),'attrs':{'fill':_0x338775(0x290),'d':_0x338775(0x2ab),'transform':'translate(.97)'}}]}]}],'defIds':[_0x338775(0x15d)]},Pt=_0x1ab954(function(_0x516c12,_0x449a86){const _0x295ec0=_0x338775;return _0x54392a(We,Object[_0x295ec0(0x325)]({},_0x516c12,{'id':'on-line-single','ref':_0x449a86,'icon':Vi}));});Pt[_0x338775(0x1b2)]='OnLineSingle';const Yi=_0x338775(0x142),Xi=_0x338775(0x2fc),Gi=_0x338775(0x220),Ki=_0x338775(0x169),zi=_0x338775(0x1dc),G={'onlineStatusIcon':Yi,'onlineStatusTitle':Xi,'onlineStatus':Gi,'online':Ki,'offline':zi};function Ji(_0x4c55c3){const _0x3f123d=_0x338775;switch(_0x4c55c3){case _0x599881[_0x3f123d(0x180)]:return _0x3f123d(0x1e6);case _0x599881[_0x3f123d(0x17a)]:return _0x3f123d(0x1c1);case _0x599881[_0x3f123d(0x2d8)]:return'collabStatus.fetchMiss';case _0x599881[_0x3f123d(0x17e)]:return _0x3f123d(0x14e);case _0x599881[_0x3f123d(0x30e)]:case _0x599881['AWAITING_WITH_PENDING']:return _0x3f123d(0x136);case _0x599881[_0x3f123d(0x2d5)]:case _0x599881['PENDING']:return _0x3f123d(0x1f3);}}function Zi(_0x37a79c){const _0x280247=_0x338775,{status$:_0x130f15}=_0x37a79c,_0x5d0a70=_0x53bc2a(_0x130f15,_0x599881['NOT_COLLAB']),_0x14d1d6=_0x5c8a09(_0x4f8085),_0x343a90=_0x5c8a09(_0x17f3f5),_0x56e6d3=_0x5d0a70!==_0x599881[_0x280247(0x180)],_0x3e7dd0=_0x14d1d6['t'](Ji(_0x5d0a70)),_0x28559a=_0x405117(G[_0x280247(0x199)],{[G[_0x280247(0x150)]]:_0x56e6d3,[G[_0x280247(0x232)]]:!_0x56e6d3}),_0x3c53c3=_0x56e6d3?_0x173f7e(Pt,{}):_0x173f7e(Mt,{}),_0x4871f0=_0x4c9483(()=>{_0x56e6d3||_0x343a90['reconnect']();},[_0x56e6d3,_0x343a90]);function _0x5f4e1d(){const _0x41e4e9=_0x280247;return _0x221d11('div',{'className':_0x405117(_0x28559a,_0x41e4e9(0x31a)),'onClick':_0x4871f0,'children':[_0x173f7e(_0x41e4e9(0x259),{'className':G[_0x41e4e9(0x2c0)],'children':_0x3c53c3}),_0x173f7e(_0x41e4e9(0x259),{'className':G[_0x41e4e9(0x1bb)],'children':_0x3e7dd0})]});}return _0x56e6d3?_0x5f4e1d():_0x173f7e(_0x22b028,{'title':_0x14d1d6['t']('collab-client.tooltip.reconnect'),'children':_0x5f4e1d()});}var Qi=Object[_0x338775(0x311)],qi=(_0x4f9502,_0x821a1e,_0x51d48e,_0x4ddd65)=>{const _0x3bfd4b=_0x338775;for(var _0x3a6806=_0x4ddd65>0x1?void 0x0:_0x4ddd65?Qi(_0x821a1e,_0x51d48e):_0x821a1e,_0x278882=_0x4f9502[_0x3bfd4b(0x160)]-0x1,_0x2399b5;_0x278882>=0x0;_0x278882--)(_0x2399b5=_0x4f9502[_0x278882])&&(_0x3a6806=_0x2399b5(_0x3a6806)||_0x3a6806);return _0x3a6806;},q=(_0x1afdda,_0x540fcc)=>(_0x31790f,_0x3c8905)=>_0x540fcc(_0x31790f,_0x3c8905,_0x1afdda);let se=class extends _0x2fcb05{constructor(_0x32cba4,_0x57606c,_0x4e7b47,_0x9e374){const _0x258901=_0x338775;super(),_(this,_0x258901(0x1e4),new _0x119e86(_0x599881[_0x258901(0x17e)])),(this[_0x258901(0x211)]=_0x32cba4,this[_0x258901(0x277)]=_0x57606c,this[_0x258901(0x165)]=_0x4e7b47,this[_0x258901(0x29f)]=_0x9e374,this[_0x258901(0x198)](),this['_initStatusListener']());}[_0x338775(0x2ed)](){const _0x544d08=_0x338775;this[_0x544d08(0x282)](this[_0x544d08(0x211)][_0x544d08(0x221)][_0x544d08(0x2a1)](_0x49d0e8(()=>{const _0x1b3fff=_0x544d08,_0x8674b5=this['_univerInstanceService'][_0x1b3fff(0x32d)]();return _0x8674b5?this['_collaborationController'][_0x1b3fff(0x23c)](_0x8674b5[_0x1b3fff(0x192)]()):_0x28c61a(null);}),_0x49d0e8(_0x472eb0=>_0x472eb0?_0x472eb0[_0x544d08(0x1df)]:_0x28c61a(_0x599881[_0x544d08(0x17e)])))[_0x544d08(0x29b)](_0x5b18db=>{const _0x6d17dd=_0x544d08;this['_status$'][_0x6d17dd(0x152)](_0x5b18db);}));}['_initStatusComponent'](){const _0x39f631=_0x338775;this[_0x39f631(0x282)](this[_0x39f631(0x29f)]['registerComponent'](_0x3132f6[_0x39f631(0x201)],()=>_0x23bfb1(en({'status$':this[_0x39f631(0x1e4)][_0x39f631(0x2e3)]()}),this[_0x39f631(0x277)])));}};se=qi([q(0x0,_0x364350),q(0x1,_0x49d929(_0x241276)),q(0x2,_0x49d929(_0x4d31b0)),q(0x3,_0x59d7ec)],se);function en(_0x4bdf02){const {status$:_0x434408}=_0x4bdf02;return function(){return _0x173f7e(Zi,{'status$':_0x434408});};}var tn=Object[_0x338775(0x311)],sn=(_0x48c424,_0x3c6842,_0x403656,_0x1740d4)=>{for(var _0x3207ec=_0x1740d4>0x1?void 0x0:_0x1740d4?tn(_0x3c6842,_0x403656):_0x3c6842,_0x38ca5a=_0x48c424['length']-0x1,_0x468a17;_0x38ca5a>=0x0;_0x38ca5a--)(_0x468a17=_0x48c424[_0x38ca5a])&&(_0x3207ec=_0x468a17(_0x3207ec)||_0x3207ec);return _0x3207ec;},B=(_0x30c6d9,_0x495ee3)=>(_0x2aeb0b,_0x5c475f)=>_0x495ee3(_0x2aeb0b,_0x5c475f,_0x30c6d9);let ie=class extends _0x2fcb05{constructor(_0xf54292,_0x52f0ec,_0x3f53cf,_0x52d0f0,_0x4b38cc,_0x169788){const _0x1985dd=_0x338775;super(),this[_0x1985dd(0x310)]=_0xf54292,this['_localCacheService']=_0x52f0ec,this[_0x1985dd(0x15b)]=_0x3f53cf,this[_0x1985dd(0x19c)]=_0x52d0f0,this['_notificationService']=_0x4b38cc,this[_0x1985dd(0x1fe)]=_0x169788,this[_0x1985dd(0x18d)](),this[_0x1985dd(0x289)]();}['_setupBeforeClosingHandler'](){const _0x16ecda=_0x338775;this[_0x16ecda(0x282)](this['_beforeCloseService'][_0x16ecda(0x275)](()=>{const _0x5668e6=_0x16ecda;if(this[_0x5668e6(0x15f)][_0x5668e6(0x28e)][_0x5668e6(0x326)])return this['_localeService']['t'](_0x5668e6(0x1ad));}));}['_initEvent'](){const _0x35ade3=_0x338775;this[_0x35ade3(0x282)](this[_0x35ade3(0x15b)][_0x35ade3(0x250)][_0x35ade3(0x29b)](_0x55a39d=>{const _0x5396ce=_0x35ade3;_0x55a39d['id']===_0xa1b8b[_0x5396ce(0x20e)]&&this[_0x5396ce(0x19c)][_0x5396ce(0x2b2)]({'type':_0x2fb3a3['Warning'],'content':this[_0x5396ce(0x1fe)]['t']('collaboration.single-unit.warning')}),_0x55a39d['id']===_0xa1b8b[_0x5396ce(0x1b9)]&&this[_0x5396ce(0x19c)][_0x5396ce(0x2b2)]({'type':_0x2fb3a3[_0x5396ce(0x1a3)],'content':this[_0x5396ce(0x1fe)]['t'](_0x5396ce(0x25a))}),_0x55a39d['id']===_0xa1b8b[_0x5396ce(0x1ec)]&&this[_0x5396ce(0x1bf)][_0x5396ce(0x2b2)]({'title':this[_0x5396ce(0x1fe)]['t'](_0x5396ce(0x13c)),'content':this[_0x5396ce(0x1fe)]['t'](_0x5396ce(0x13b)),'type':_0x5396ce(0x2d0),'duration':0x0}),_0x55a39d['id']===_0xa1b8b[_0x5396ce(0x17a)]&&this[_0x5396ce(0x19c)]['show']({'type':_0x2fb3a3[_0x5396ce(0x265)],'content':this[_0x5396ce(0x1fe)]['t'](_0x5396ce(0x25a))+'('+_0x55a39d[_0x5396ce(0x143)]+')'}),_0x55a39d['id']===_0xa1b8b[_0x5396ce(0x309)]&&this[_0x5396ce(0x19c)][_0x5396ce(0x2b2)]({'type':_0x2fb3a3['Warning'],'content':this[_0x5396ce(0x1fe)]['t'](_0x55a39d[_0x5396ce(0x143)]||'')}),_0x55a39d['id']===_0xa1b8b['SOCKET_FAILED_RETRY']&&this[_0x5396ce(0x19c)][_0x5396ce(0x2b2)]({'type':_0x2fb3a3[_0x5396ce(0x1a3)],'content':this['_localeService']['t'](_0x5396ce(0x288))}),_0x55a39d['id']===_0xa1b8b[_0x5396ce(0x2e1)]&&this['_messageService']['show']({'type':_0x2fb3a3[_0x5396ce(0x265)],'content':this[_0x5396ce(0x1fe)]['t'](_0x5396ce(0x291))}),_0x55a39d['id']===_0xa1b8b[_0x5396ce(0x141)]&&this[_0x5396ce(0x19c)]['show']({'type':_0x2fb3a3[_0x5396ce(0x265)],'content':this[_0x5396ce(0x1fe)]['t'](_0x5396ce(0x268))});}));}};ie=sn([B(0x0,_0x40a6e3),B(0x1,_0xe1c4aa),B(0x2,_0x49d929(_0x4a4b9a)),B(0x3,_0x56a492),B(0x4,_0x3f9af0),B(0x5,_0x49d929(_0x4f8085))],ie);const nn='collaboration-client-ui.config',st={},wt=_0x4a52d9(_0x338775(0x30c));var rn=Object[_0x338775(0x311)],on=(_0x195a11,_0x158fc6,_0x1ecf42,_0x17d558)=>{const _0x3aebbd=_0x338775;for(var _0x3ec5b6=_0x17d558>0x1?void 0x0:_0x17d558?rn(_0x158fc6,_0x1ecf42):_0x158fc6,_0x3fac12=_0x195a11[_0x3aebbd(0x160)]-0x1,_0x105aca;_0x3fac12>=0x0;_0x3fac12--)(_0x105aca=_0x195a11[_0x3fac12])&&(_0x3ec5b6=_0x105aca(_0x3ec5b6)||_0x3ec5b6);return _0x3ec5b6;},K=(_0x55ae46,_0x2f0165)=>(_0x2ea0c4,_0x56cd9f)=>_0x2f0165(_0x2ea0c4,_0x56cd9f,_0x55ae46);let ne=class extends _0x13dc53{constructor(_0x1636c3,_0x4cbe45,_0x1c1bb7,_0x1cc27e,_0x5de04f){const _0xef997c=_0x338775;super(),this[_0xef997c(0x237)]=_0x1636c3,this[_0xef997c(0x2a2)]=_0x4cbe45,this['_commandService']=_0x1c1bb7,this[_0xef997c(0x2fa)]=_0x1cc27e,_0x5de04f?_0x5de04f==null||_0x5de04f[_0xef997c(0x336)]()['then'](()=>this['_init']()):(this[_0xef997c(0x2a2)][_0xef997c(0x1ac)](_0xef997c(0x16f),_0xef997c(0x1e2)),this[_0xef997c(0x32f)]());}async[_0x338775(0x32f)](){const _0x4e705c=_0x338775,_0x90379d=this[_0x4e705c(0x237)][_0x4e705c(0x2d4)](_0x4e705c(0x1a7)),_0x9aef18=this[_0x4e705c(0x237)][_0x4e705c(0x2d4)]('type'),_0x42fa3c=this[_0x4e705c(0x237)][_0x4e705c(0x2d4)]('subunit');if(!_0x90379d||!_0x9aef18){this['_logService'][_0x4e705c(0x1ac)]('[CollaborationDataLoaderController]',_0x4e705c(0x28f));return;}const _0xac4dcd=await this[_0x4e705c(0x2fa)]['loadUnit'](_0x90379d,Number(_0x9aef18),_0x42fa3c);_0xac4dcd&&_0xac4dcd instanceof _0x30c962&&this[_0x4e705c(0x18e)](_0xac4dcd);}async[_0x338775(0x18e)](_0x437cc8){const _0x4a90b6=_0x338775;await this[_0x4a90b6(0x1cb)](_0x437cc8),_0x437cc8['activeSheet$'][_0x4a90b6(0x2a1)](_0x2cb0e5(this[_0x4a90b6(0x2ad)]))[_0x4a90b6(0x29b)](_0x5a9de5=>{const _0x2457bb=_0x4a90b6;_0x5a9de5&&this[_0x2457bb(0x147)](_0x5a9de5);}),this[_0x4a90b6(0x237)]['urlChange$'][_0x4a90b6(0x2a1)](_0x2cb0e5(this['dispose$']))['subscribe'](()=>this[_0x4a90b6(0x1cb)](_0x437cc8));}[_0x338775(0x147)](_0xd58bb8,_0x22c9c9=!0x1){const _0x5c2f4e=_0x338775,_0x3572c5=this[_0x5c2f4e(0x237)][_0x5c2f4e(0x2d4)](_0x5c2f4e(0x25f));_0xd58bb8[_0x5c2f4e(0x267)]()!==_0x3572c5&&this['_urlService'][_0x5c2f4e(0x23a)](_0x5c2f4e(0x25f),_0xd58bb8[_0x5c2f4e(0x267)](),_0x22c9c9);}async[_0x338775(0x1cb)](_0x5d9db2){const _0x1a6375=_0x338775;var _0x37000f;const _0x4075d=this[_0x1a6375(0x237)][_0x1a6375(0x2d4)](_0x1a6375(0x25f));if(!_0x4075d||!_0x5d9db2[_0x1a6375(0x2b8)](_0x4075d)){const _0xdeebf5=_0x5d9db2['getUnhiddenWorksheets']()[0x0],_0x127902=_0x5d9db2[_0x1a6375(0x2b8)](_0xdeebf5);if(!_0x127902)return;this[_0x1a6375(0x147)](_0x127902,!0x0),await this[_0x1a6375(0x19d)][_0x1a6375(0x195)](_0x9669d3['id'],{'unitId':_0x5d9db2[_0x1a6375(0x192)](),'subUnitId':_0xdeebf5});return;}((_0x37000f=_0x5d9db2[_0x1a6375(0x27c)]())==null?void 0x0:_0x37000f['getSheetId']())!==_0x4075d&&await this[_0x1a6375(0x19d)][_0x1a6375(0x195)](_0x9669d3['id'],{'unitId':_0x5d9db2[_0x1a6375(0x192)](),'subUnitId':_0x4075d});}};ne=on([K(0x0,wt),K(0x1,_0x610049),K(0x2,_0x20e3ab),K(0x3,_0x49d929(_0x30c2b5)),K(0x4,_0x7ee6ed(_0x5930a9))],ne);var an=Object[_0x338775(0x311)],cn=(_0x48879c,_0x584211,_0x198452,_0x774f2c)=>{for(var _0x238c65=_0x774f2c>0x1?void 0x0:_0x774f2c?an(_0x584211,_0x198452):_0x584211,_0x5bb591=_0x48879c['length']-0x1,_0x250254;_0x5bb591>=0x0;_0x5bb591--)(_0x250254=_0x48879c[_0x5bb591])&&(_0x238c65=_0x250254(_0x238c65)||_0x238c65);return _0x238c65;},Ce=(_0x1bc28a,_0x470fc0)=>(_0x16ed9d,_0x1cfd69)=>_0x470fc0(_0x16ed9d,_0x1cfd69,_0x1bc28a);function _0x1a4b(){const _0x8864d2=['save','_removeCollabCursors','text','NO_OTHER_CLIENTS_EDITING','eventID','round','_render','generateRandomId','subscribe','pushState','entries','editingUnit','_uiPartsService','drawWith','pipe','_logService','5939712zBDXrX','black','APPLY_REVISION_CONFILICT','saveImage','_drawTextRange','onRendered','TEXT','hovered','M0\x200H16V16H0z','APPLY_REJECT','dispose$','WECHAT_HAS_BEEN_BOUND','hasOwnProperty','getMergeData','evenodd','show','_transformService','_toggleOnline','_removeClearOtherTimer','getRangePointData','...','getSheetBySheetId','call','doc.mutation.rich-text-editing','UNIVER_SHEET','_syncEditingCollabCursorService','_roomMembers$','get','getActiveRange','onlineStatusIcon','href','range','_docSkeletonManagerService','UniverIcon','moveTo','transformByState','clipPath','height','_config','_entityInit$','getCurrentSelections','CONNECTOR_DATA_TOO_LARGE','fillRule','_handleHover','ALREADY_EXISTS','error','getStateCache','_backgroundColor','colorChannel1','getParam','SYNCED','loadOfflineData','currentColor','FETCH_MISS','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','string','search','_docTransformIMECacheService','_onCursorDelete','getOffsetConfig','LICENSE_EXPORT_SIZE_EXCEEDED','FromArray','SOCKET_FAILED','transformIMECache','asObservable','getCollabCursors$','#FFF','gold400','_handleLeaveEvent','_docStateChangeManagerService','restore','_colorAssignService','Failed','_revisionService','_initStatusListener','YUUMI_UNABLE_LOAD_URL','InsertColCommandId','cursorInfo','setActiveRange','subscribeEvent','getRenderById','_lastPointer','_renderManagerService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','setInterval','setItem','_startSheetCollabCursor','_dataLoaderService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','univer-online-status-title','_docTransformStateCacheService','transform','undoState','transformSelections','memberID','onPointerEnter$','createSocket','unitId','_shapes','YUUMI_URL_COL_OUT_OF_RANGE','sessionTicket','className','JOIN_ROOM_FAILED','deepClone','OTHER_CLIENTS_EDITING','uni.network.url-service','/run/','AWAITING','APPLY_DUPLICATED','_beforeCloseService','getOwnPropertyDescriptor','startRow','override','_themeService','max','runOnServer','send','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','icon','univer-flex\x20univer-items-center','getCurrentUnitForType','color','onStarting','toString','complete','setUndoRedoMutationParamsCache','verdancy600','url(#off-line-single_clip0_910_343)','parse','_localStorageService','assign','size','from','arc','setAlpha','source','onPointerMove$','params','getFocusedUnit','411678tyodpQ','_init','RemoveColCommandId','getValue','unload','_getSheetObject','engine','_sheetSkeletonManagerService','whenReady','_unitOnClients','_textBubble','svg','collabStatus.syncing','_transformUndoRedoStack','requireSession','defIds','_saveCache','permission.content','permission.title','result','_getSaveTimeout','LOGIN_FAILED','APPLY_PERMISSION_DENIED','SUBMIT_CHANGESET_TIMEOUT','univer-online-status-icon','data','_getScale','values','_selfUnitIDs','_updateURLWithCurrentState','replace','isArray','onPointerLeave$','history','_hover','_session','collabStatus.notCollab','searchParams','online','LICENSE_MAX_UNITS_EXCEEDED','next','disposeUnit','location','getOwnPropertySymbols','_collabCursorController','_color','getTypeOfUnitDisposed$','_cursorInfo$','row','_collaborationUIEventService','UNDEFINED','on-line-single_clip0_910_349','getUniverSheetInstance','_localCacheService','length','507784puVfGK','_docTransformSelectionsService','_scheduleClearOtherTimer','includes','_collaborationController','_docClipboardService','init','_transformPreviousActiveRange','univer-online','key','INTERNAL_ERROR','getMember','width','getItem','[CollaborationDataLoaderController]','_instanceService','UNIVER_DOC','unshift','push','_handleJoinEvent','getSkeleton','assignAColorForMemberID','newValue','_heartbeatTimer','transformStateCache','CONFLICT','toRgbString','body','COMPLETION_FINISHED','NOT_COLLAB','transformMutationsWithChangeset','OFFLINE','_hovered','onTransformChange$','InsertRangeMoveDownCommandId','_online','ACTIVE_UNIT_EVENT_CHANNEL','idSuffix','endColumn','_range','code','substring','currentSkeleton$','cursorInfo$','_setupBeforeClosingHandler','_setupSubUnitSync','DeleteRangeMoveLeftCommandId','LICENSE_DISTRO_REJECTED','InsertRowCommandId','getUnitId','executionId','InsertRangeMoveRightCommandId','executeCommand','_hideTimer','find','_initStatusComponent','onlineStatus','concat','forEach','_messageService','_commandService','_toggleOffline','MOBILE_HAS_BEEN_BOUND','_initResize','fillStyle','off-line-single','Warning','defineProperty','_unitStatus','_context','unit','SNAPSHOT_INVALID_SNAPSHOT','function','stringify','post','debug','collaboration-client.offline-data-not-saved','_getAnchorBounding','1em','enableLocalCache','startColumn','displayName','actions','clearTimeout','_disabled','disableLocalCache','_labelPosition','getCellPositionByOffset','CLOSE_ROOM','_clearOtherTimers','onlineStatusTitle','getTypeOfUnitAdded$','OffLineSingle','updateOfflineData','_notificationService','type','collabStatus.conflict','_handleEvent','_name','wsSessionTicketUrl','apply','getMemberID','_getSessionTicket','url(#$1','add','_draw','_updateSubUnitFromURLParams','_id','_initCommandExecutedListener','ranges','attrs','UPDATE_CURSOR','INVITE_CODE_REQUIRED','5lyZlIW','addObjects','origin','setConfig','application/json','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','transformRemoteChangeset','purple300','exhaustSavingTask','split','univer-offline','currentTheme$','_onCursorUpdate','status$','defs','roomMembers','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','has','_status$','_drawRectRange','collabStatus.offline','fillText','ENSURE_SNAPSHOT_EXECUTION','contains','YUUMI_RATE_OVER_LIMIT','_updateCollabCursors','PERMISSION_DENIED','findNodePositionByCharIndex','_entities','indexOf','TOO_MANY_REQUESTS','lineTo','setShapeProps','collabStatus.synced','replaceDocRanges','LICENSE_IMPORT_SIZE_EXCEEDED','syncEditingCollabCursor','getDocRanges','dispose','m1Prime','getUndoRedoMutationParamsCache','tag','_getMergeRange','min','_localeService','textRanges','APPLY_NON_SEQUENTIAL_REVISION','HEADER_MENU','_assignedColors','_updateLocalCursor','NOT_FOUND','_ensureSubject','createInstance','INVALID_ARGUMENT','_drawAnchor','with','MoveRangeCommandId','name','propertyIsEnumerable','entityInit$','OTHER_CLIENT_EDITING','2604866dAyFva','_registerDependencies','_univerInstanceService','collab-text-range-','some','unsubscribe','_send','endRow','transformMutation','children','getConfig','symbol','_doCreateSocket','onLocalMutation','collabCursorState$','sheetID','4904610pxhdum','univer-online-status','focused$','_docSyncEditingCollabCursorService','jiqing500','flatMap','_handleHeartbeatEvent','registerRenderModule','invokeId','path','fill','selection','trim','redoState','roomMembers$','then','ONLINE','off-line-single_clip0_910_343','_cursorShapes','offline','_collabSessionService','USER_NOT_INVITED_CODE','_collabCursorState$','hide','_urlService','_refreshCollabCursors','onCommandExecuted','setParam','INVALID_INVITE_CODE','getCollabEntity$','_saveTaskMap','mask','collab-rect-range-','_docSkeleton','map','INVITE_CODE_ALREADY_BOUND','RECT','PY_RUNTIME_SCRIPT_ERROR','triggerDblclick','addClipboardHook','INVITE_CODE_HAS_BEEN_UES','selections','getAncestorScale','_memberService','801nmnZDP','_refRangeService','_imageIoService','urlChange$','SNAPSHOT_HAS_BEEN_REMOVED','event$','rgba(255,\x20255,\x20255,\x200.01)','replaceState','_eventUnsubscribe','onMouseMove','ticket','setTimeout','blue400','_createSocketURL','div','collaboration.closeRoom','xlink:href','0\x200\x2016\x2016','_anchorDot','none','subunit','docStateChange$','12185999UdWpkQ','storage','EMAIL_HAS_BEEN_BOUND','CHANGESET_REVISION_CONFILICT','Error','column','getSheetId','session.collaboration-timeout','isActive','_onRefRangeChange','_initDependencies','Unknown\x20user','_cursors','runId','delete','_cursor','_anchor','_registerRenderDependencies','measureText','extend','registerBeforeClose','addObject','_injector','mutations','saveOfflineData','_colorIndex','_configService','getActiveSheet','YUUMI_SUBSCRIPTION_NOT_FOUND','_scheduleSaving','pluginName','set','unitID','disposeWithMe','_scene','registerRefRange','UNAUTHENTICATED','prototype','_cachedData','session.will-retry','_initEvent','_httpService','m2Prime','_startDocCollabCursor','UNRECOGNIZED','saveTaskMap','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','#fff','session.connection-failed','3131328nDwsaD'];_0x1a4b=function(){return _0x8864d2;};return _0x1a4b();}let re=class{constructor(_0x199f14,_0x3fa48d,_0x51b22f){const _0x160fcc=_0x338775;this[_0x160fcc(0x277)]=_0x199f14,this[_0x160fcc(0x2b3)]=_0x3fa48d,this['_renderManagerService']=_0x51b22f;}['transformIMECache'](_0x382776){const _0x8b1c08=_0x338775;this[_0x8b1c08(0x137)](_0x382776),this[_0x8b1c08(0x168)](_0x382776);}[_0x338775(0x1d8)](_0x1aaac6){const _0x479746=_0x338775,{unitID:_0x5c410f}=_0x1aaac6,_0x342b0c=this['_renderManagerService']['getRenderById'](_0x5c410f)[_0x479746(0x209)](_0xbe88ec),{redoCache:_0x474799}=_0x342b0c[_0x479746(0x1fa)]();if(_0x474799[_0x479746(0x160)]===0x0)return _0x1aaac6;let _0x5e3a77=_0x16b904['deepClone'](_0x1aaac6[_0x479746(0x278)][0x0]);for(let _0x576b88=0x0;_0x576b88<_0x474799[_0x479746(0x160)];_0x576b88++){const _0x1f058f={'id':_0x479746(0x2ba),'params':{..._0x474799[_0x576b88]}},_0x232951=this[_0x479746(0x2b3)][_0x479746(0x217)](_0x5e3a77,_0x1f058f,!0x1);if(_0x21d4bf(_0x232951))throw _0x232951['error'];_0x5e3a77=_0x232951[_0x479746(0x1f9)];}return{..._0x16b904[_0x479746(0x30a)](_0x1aaac6),'mutations':[_0x5e3a77]};}['_transformUndoRedoStack'](_0x28860c){const _0xdd10c8=_0x338775,{unitID:_0x15fb16}=_0x28860c,_0x28bf3d=this[_0xdd10c8(0x2f5)][_0xdd10c8(0x2f3)](_0x15fb16)[_0xdd10c8(0x209)](_0xbe88ec),{undoCache:_0x4bcbac,redoCache:_0x15e65a}=_0x28bf3d[_0xdd10c8(0x1fa)]();if(_0x4bcbac[_0xdd10c8(0x160)]===0x0||_0x15e65a['length']===0x0)return;const _0x5b3563=[],_0x284ca9=[];let _0xdff85b=_0x16b904[_0xdd10c8(0x30a)](_0x28860c[_0xdd10c8(0x278)][0x0]),_0x1025bc=_0x16b904['deepClone'](_0x28860c[_0xdd10c8(0x278)][0x0]);for(let _0x19e2be=_0x4bcbac[_0xdd10c8(0x160)]-0x1;_0x19e2be>=0x0;_0x19e2be--){const _0x5f0a9f={'id':_0xdd10c8(0x2ba),'params':{..._0x4bcbac[_0x19e2be]}},_0x22a5bd={'id':_0xdd10c8(0x2ba),'params':{..._0x15e65a[_0x19e2be]}},_0x36e81f=this[_0xdd10c8(0x2b3)][_0xdd10c8(0x217)](_0xdff85b,_0x5f0a9f,!0x1),_0x3ea16f=this['_transformService'][_0xdd10c8(0x217)](_0x1025bc,_0x22a5bd,!0x1);if(_0x21d4bf(_0x36e81f))throw _0x36e81f[_0xdd10c8(0x2d0)];if(_0x21d4bf(_0x3ea16f))throw _0x3ea16f[_0xdd10c8(0x2d0)];_0x5b3563[_0xdd10c8(0x172)](_0x36e81f['m2Prime'][_0xdd10c8(0x32c)]),_0x284ca9[_0xdd10c8(0x172)](_0x3ea16f[_0xdd10c8(0x28b)][_0xdd10c8(0x32c)]),_0xdff85b=_0x36e81f[_0xdd10c8(0x1f9)],_0x1025bc=_0x3ea16f['m1Prime'];}_0x28bf3d[_0xdd10c8(0x320)]({'undoCache':_0x5b3563,'redoCache':_0x284ca9});}['_transformPreviousActiveRange'](_0x10810e){const _0x48a135=_0x338775,{unitID:_0x2e013d}=_0x10810e,_0x290531=this['_renderManagerService']['getRenderById'](_0x2e013d)[_0x48a135(0x209)](_0xbe88ec),_0x11977d=_0x290531[_0x48a135(0x2bf)]();if(_0x11977d==null)return;const _0x1a849f=[{'id':_0x48a135(0x2ba),'params':{'unitId':_0x10810e['unitID'],'actions':null,'textRanges':[_0x11977d]}}],_0x59c7f3=this['_transformService'][_0x48a135(0x17f)](_0x10810e,_0x1a849f);if(!_0xb88eb5(_0x59c7f3))throw _0x59c7f3['error'];const _0x60baf2=_0x59c7f3['m2Prime'][0x0][_0x48a135(0x32c)][_0x48a135(0x1ff)];Array[_0x48a135(0x149)](_0x60baf2)&&_0x60baf2['length']&&_0x290531[_0x48a135(0x2f1)](_0x60baf2[0x0]);}};re=cn([Ce(0x0,_0x49d929(_0x241276)),Ce(0x1,_0x5e8ec8),Ce(0x2,_0x51cd9d)],re);var ln=Object[_0x338775(0x311)],_n=(_0x51ed01,_0x16482e,_0x2a6eaa,_0x256785)=>{const _0x19e32f=_0x338775;for(var _0x3038d9=_0x256785>0x1?void 0x0:_0x256785?ln(_0x16482e,_0x2a6eaa):_0x16482e,_0xf7018f=_0x51ed01[_0x19e32f(0x160)]-0x1,_0x251a0c;_0xf7018f>=0x0;_0xf7018f--)(_0x251a0c=_0x51ed01[_0xf7018f])&&(_0x3038d9=_0x251a0c(_0x3038d9)||_0x3038d9);return _0x3038d9;},Ee=(_0x104fc9,_0x1b2ddd)=>(_0x1aecdf,_0x522dce)=>_0x1b2ddd(_0x1aecdf,_0x522dce,_0x104fc9);let oe=class{constructor(_0x1aa55a,_0x4c5ae6,_0x521df8){const _0x28b274=_0x338775;this['_injector']=_0x1aa55a,this[_0x28b274(0x2b3)]=_0x4c5ae6,this[_0x28b274(0x2e8)]=_0x521df8;}[_0x338775(0x179)](_0x1e1280){this['_transformHistoryAndStateStack'](_0x1e1280);}[_0x338775(0x1d8)](_0x49864e){const _0x436a42=_0x338775,{unitID:_0x5764e8}=_0x49864e,{collaboration:_0x3ba6c5}=this[_0x436a42(0x2e8)][_0x436a42(0x2d1)](_0x5764e8);if(_0x3ba6c5['length']===0x0)return _0x49864e;let _0x4c14fb=_0x16b904[_0x436a42(0x30a)](_0x49864e[_0x436a42(0x278)][0x0]);for(let _0x7bdf8d=0x0;_0x7bdf8d<_0x3ba6c5['length'];_0x7bdf8d++){const _0x2b95a8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ba6c5[_0x7bdf8d][_0x436a42(0x304)],..._0x3ba6c5[_0x7bdf8d][_0x436a42(0x22c)]}},_0x3f2d31=this[_0x436a42(0x2b3)][_0x436a42(0x217)](_0x4c14fb,_0x2b95a8,!0x1);if(_0x21d4bf(_0x3f2d31))throw _0x3f2d31[_0x436a42(0x2d0)];_0x4c14fb=_0x3f2d31['m1Prime'];}return{..._0x16b904[_0x436a42(0x30a)](_0x49864e),'mutations':[_0x4c14fb]};}['_transformHistoryAndStateStack'](_0x417701){const _0x2f8ba4=_0x338775,{unitID:_0x21a2d2}=_0x417701,{history:_0x3771da,collaboration:_0x59c5fa}=this[_0x2f8ba4(0x2e8)][_0x2f8ba4(0x2d1)](_0x21a2d2);if(_0x3771da[_0x2f8ba4(0x160)]===0x0&&_0x59c5fa[_0x2f8ba4(0x160)]===0x0)return;const _0x4f762c=[],_0x520894=[];let _0x533135=_0x16b904['deepClone'](_0x417701[_0x2f8ba4(0x278)][0x0]),_0x33c14f=_0x16b904['deepClone'](_0x417701[_0x2f8ba4(0x278)][0x0]);for(let _0x57476d=_0x3771da[_0x2f8ba4(0x160)]-0x1;_0x57476d>=0x0;_0x57476d--){const _0x298450={'id':_0x2f8ba4(0x2ba),'params':{'unitId':_0x3771da[_0x57476d][_0x2f8ba4(0x304)],..._0x3771da[_0x57476d][_0x2f8ba4(0x2ff)]}},_0x45f973={'id':_0x2f8ba4(0x2ba),'params':{'unitId':_0x3771da[_0x57476d][_0x2f8ba4(0x304)],..._0x3771da[_0x57476d]['redoState']}},_0x795715=this['_transformService'][_0x2f8ba4(0x217)](_0x533135,_0x298450,!0x1),_0x909efd=this['_transformService']['transformMutation'](_0x33c14f,_0x45f973,!0x1);if(_0x21d4bf(_0x795715))throw _0x795715[_0x2f8ba4(0x2d0)];if(_0x21d4bf(_0x909efd))throw _0x909efd[_0x2f8ba4(0x2d0)];_0x4f762c[_0x2f8ba4(0x172)]({..._0x3771da[_0x57476d],'undoState':_0x795715[_0x2f8ba4(0x28b)][_0x2f8ba4(0x32c)],'redoState':_0x909efd[_0x2f8ba4(0x28b)][_0x2f8ba4(0x32c)]}),_0x533135=_0x795715['m1Prime'],_0x33c14f=_0x909efd[_0x2f8ba4(0x1f9)];}_0x533135=_0x16b904['deepClone'](_0x417701['mutations'][0x0]),_0x33c14f=_0x16b904[_0x2f8ba4(0x30a)](_0x417701[_0x2f8ba4(0x278)][0x0]);for(let _0x4d25b2=_0x59c5fa[_0x2f8ba4(0x160)]-0x1;_0x4d25b2>=0x0;_0x4d25b2--){const _0x21bdd0={'id':_0x2f8ba4(0x2ba),'params':{'unitId':_0x59c5fa[_0x4d25b2]['unitId'],..._0x59c5fa[_0x4d25b2]['undoState']}},_0x19e1fe={'id':_0x2f8ba4(0x2ba),'params':{'unitId':_0x59c5fa[_0x4d25b2]['unitId'],..._0x59c5fa[_0x4d25b2][_0x2f8ba4(0x22c)]}},_0x21b172=this['_transformService']['transformMutation'](_0x533135,_0x21bdd0,!0x1),_0x423a05=this[_0x2f8ba4(0x2b3)]['transformMutation'](_0x33c14f,_0x19e1fe,!0x1);if(_0x21d4bf(_0x21b172))throw _0x21b172[_0x2f8ba4(0x2d0)];if(_0x21d4bf(_0x423a05))throw _0x423a05[_0x2f8ba4(0x2d0)];_0x520894[_0x2f8ba4(0x172)]({..._0x59c5fa[_0x4d25b2],'undoState':_0x21b172['m2Prime'][_0x2f8ba4(0x32c)],'redoState':_0x423a05['m2Prime'][_0x2f8ba4(0x32c)]}),_0x533135=_0x21b172[_0x2f8ba4(0x1f9)],_0x33c14f=_0x423a05[_0x2f8ba4(0x1f9)];}this[_0x2f8ba4(0x2e8)]['setStateCache'](_0x21a2d2,{'history':_0x4f762c,'collaboration':_0x520894});}};oe=_n([Ee(0x0,_0x49d929(_0x241276)),Ee(0x1,_0x5e8ec8),Ee(0x2,_0x49d929(_0x2c49da))],oe);var hn=Object[_0x338775(0x311)],un=(_0x33b15d,_0x401dc2,_0x5f2a9e,_0x104380)=>{for(var _0x556b51=_0x104380>0x1?void 0x0:_0x104380?hn(_0x401dc2,_0x5f2a9e):_0x401dc2,_0x457844=_0x33b15d['length']-0x1,_0x241344;_0x457844>=0x0;_0x457844--)(_0x241344=_0x33b15d[_0x457844])&&(_0x556b51=_0x241344(_0x556b51)||_0x556b51);return _0x556b51;},it=(_0x299383,_0x16500c)=>(_0x35c892,_0x4ea582)=>_0x16500c(_0x35c892,_0x4ea582,_0x299383);let ae=class{constructor(_0x419eca,_0x552c53){const _0x48f4a4=_0x338775;this[_0x48f4a4(0x277)]=_0x419eca,this[_0x48f4a4(0x2b3)]=_0x552c53;}[_0x338775(0x300)](_0x37b97a){const _0x2fdf01=_0x338775;var _0x5a17fb;const _0x3b7089=this[_0x2fdf01(0x277)][_0x2fdf01(0x2be)](_0x46b0b1),_0x4f2dee=(_0x5a17fb=_0x3b7089[_0x2fdf01(0x1f7)]())!=null?_0x5a17fb:[];if(_0x4f2dee[_0x2fdf01(0x160)]===0x0)return;const _0x2bb8ee=_0x37b97a[_0x2fdf01(0x281)],_0x173fdb=[{'id':_0x2fdf01(0x2ba),'params':{'unitId':_0x2bb8ee,'actions':null,'textRanges':_0x4f2dee}}],_0x23c94a=this[_0x2fdf01(0x2b3)][_0x2fdf01(0x17f)](_0x37b97a,_0x173fdb);if(!_0xb88eb5(_0x23c94a))throw _0x23c94a['error'];const _0x9e3f2=_0x23c94a[_0x2fdf01(0x28b)][0x0][_0x2fdf01(0x32c)]['textRanges'];Array[_0x2fdf01(0x149)](_0x9e3f2)&&_0x9e3f2[_0x2fdf01(0x160)]&&_0x3b7089[_0x2fdf01(0x1f4)](_0x9e3f2,{'unitId':_0x2bb8ee,'subUnitId':_0x2bb8ee},!0x1);}};ae=un([it(0x0,_0x49d929(_0x241276)),it(0x1,_0x5e8ec8)],ae);var dn=Object[_0x338775(0x311)],fn=(_0x403f1e,_0x6c6108,_0x5d76bf,_0x45392e)=>{const _0x23ca4a=_0x338775;for(var _0x83e9e8=_0x45392e>0x1?void 0x0:_0x45392e?dn(_0x6c6108,_0x5d76bf):_0x6c6108,_0xc3c360=_0x403f1e[_0x23ca4a(0x160)]-0x1,_0x566651;_0xc3c360>=0x0;_0xc3c360--)(_0x566651=_0x403f1e[_0xc3c360])&&(_0x83e9e8=_0x566651(_0x83e9e8)||_0x83e9e8);return _0x83e9e8;},M=(_0x2c3486,_0xb5bfe1)=>(_0x569312,_0x597a4e)=>_0xb5bfe1(_0x569312,_0x597a4e,_0x2c3486);let ce=class extends _0x2fcb05{constructor(_0x43ab5b,_0x7100b5,_0x2170b5,_0x4bd524,_0x1ec346,_0x6ca095,_0x46236c,_0x1f208e){const _0x5e481d=_0x338775;super(),_(this,_0x5e481d(0x1e4),new _0x119e86(_0x599881['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x43ab5b,this['_collaborationController']=_0x7100b5,this['_docTransformIMECacheService']=_0x2170b5,this['_docTransformStateCacheService']=_0x4bd524,this[_0x5e481d(0x162)]=_0x1ec346,this['_docSyncEditingCollabCursorService']=_0x6ca095,this[_0x5e481d(0x19c)]=_0x46236c,this['_localeService']=_0x1f208e,this['_initEntityListener']());}['_initEntityListener'](){const _0x19caf1=_0x338775;this[_0x19caf1(0x282)](this['_collaborationController'][_0x19caf1(0x20d)][_0x19caf1(0x29b)](_0x1bec84=>{const _0x4c8e30=_0x19caf1,_0x1e3b62=this[_0x4c8e30(0x2e8)][_0x4c8e30(0x260)][_0x4c8e30(0x29b)](_0x5362bc=>{const _0x2c084d=_0x4c8e30;if(_0x5362bc==null)return;const {unitId:_0x4b10ec,redoState:_0xb247d6,commandId:_0x4acece}=_0x5362bc;if(_0x4b10ec!==_0x1bec84['unitID'])return;const _0xe6a36d={'id':_0x4acece,'type':_0x38c3e9['MUTATION'],'params':{'unitId':_0x4b10ec,'actions':_0xb247d6[_0x2c084d(0x1b3)],'textRanges':null}};_0x1bec84[_0x2c084d(0x21c)](_0xe6a36d);});if(_0x1bec84[_0x4c8e30(0x282)](_0x1e3b62),_0x1bec84 instanceof _0x4442c1){const _0x51d872={'onTransformIME':_0x321b83=>this['_docTransformIMECacheService'][_0x4c8e30(0x2e2)](_0x321b83),'onTransformState':_0x153d9b=>this[_0x4c8e30(0x2fd)][_0x4c8e30(0x179)](_0x153d9b),'onTransformSelections':_0x205bfd=>this[_0x4c8e30(0x162)][_0x4c8e30(0x300)](_0x205bfd),'onSyncEditingCollabCursor':_0x34dd9f=>this[_0x4c8e30(0x222)][_0x4c8e30(0x1f6)](_0x34dd9f),'onTransformRemoteChangesetByIMECache':_0x323413=>this[_0x4c8e30(0x2dc)][_0x4c8e30(0x1d8)](_0x323413),'onTransformRemoteChangesetByStateCache':_0xfefb47=>this[_0x4c8e30(0x2fd)]['transformRemoteChangeset'](_0xfefb47)};_0x1bec84['addHandlerCallback'](_0x51d872);}}));}};ce=fn([M(0x0,_0x49d929(_0x2c49da)),M(0x1,_0x49d929(_0x4d31b0)),M(0x2,_0x49d929(re)),M(0x3,_0x49d929(oe)),M(0x4,_0x49d929(ae)),M(0x5,_0x49d929(je)),M(0x6,_0x56a492),M(0x7,_0x49d929(_0x4f8085))],ce);var Sn=Object[_0x338775(0x311)],mn=(_0x541f80,_0x316a00,_0x5c969a,_0x17c594)=>{const _0x5e5eb0=_0x338775;for(var _0x1f2d6c=_0x17c594>0x1?void 0x0:_0x17c594?Sn(_0x316a00,_0x5c969a):_0x316a00,_0x28d839=_0x541f80[_0x5e5eb0(0x160)]-0x1,_0x33d094;_0x28d839>=0x0;_0x28d839--)(_0x33d094=_0x541f80[_0x28d839])&&(_0x1f2d6c=_0x33d094(_0x1f2d6c)||_0x1f2d6c);return _0x1f2d6c;},be=(_0x54f8cc,_0x55d6e7)=>(_0x1c8f9b,_0x38be6e)=>_0x55d6e7(_0x1c8f9b,_0x38be6e,_0x54f8cc);let Ae=class extends _0x2fcb05{constructor(_0x7d26f2,_0x3a2e86,_0xd8d0fb){const _0x458c00=_0x338775;super(),_(this,'_cachedData',new Map()),_(this,_0x458c00(0x23d),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x7d26f2,this[_0x458c00(0x324)]=_0x3a2e86,this[_0x458c00(0x2ec)]=_0xd8d0fb);}[_0x338775(0x1b6)](){const _0xe6d7c3=_0x338775;this[_0xe6d7c3(0x1b5)]=!0x0;}[_0x338775(0x1b0)](){const _0x41bdb6=_0x338775;this[_0x41bdb6(0x1b5)]=!0x1;}get[_0x338775(0x28e)](){const _0x1cec0b=_0x338775;return this[_0x1cec0b(0x23d)];}[_0x338775(0x1f8)](){const _0x4c5856=_0x338775;this[_0x4c5856(0x1da)]()[_0x4c5856(0x22e)](()=>super['dispose']());}async[_0x338775(0x2d6)](_0x1020c9){const _0x40d918=_0x338775;return this['_disabled']?null:this[_0x40d918(0x324)][_0x40d918(0x16e)](_0x311acd(_0x1020c9));}async[_0x338775(0x279)](_0x3a1bec,_0x274495){const _0x3cb6eb=_0x338775;return!!this[_0x3cb6eb(0x324)][_0x3cb6eb(0x2f8)](_0x3a1bec,_0x274495);}[_0x338775(0x1be)](_0x5a2e27,_0x34df20,_0x1008be,_0x168a5f){const _0x40ee38=_0x338775,_0x23c710=this['_revisionService']['getCurrentRevOfUnit'](_0x5a2e27);this[_0x40ee38(0x287)]['set'](_0x5a2e27,{'unitID':_0x5a2e27,'type':_0x34df20,'awaitingChangeset':_0x1008be,'mutations':_0x168a5f,'rev':_0x23c710}),this[_0x40ee38(0x23d)][_0x40ee38(0x1e3)](_0x5a2e27)||this[_0x40ee38(0x27e)](_0x5a2e27);}[_0x338775(0x27e)](_0x1e3dfc){const _0x4a4720=_0x338775,_0x46d186=this[_0x4a4720(0x13e)]();_0x46d186===0x0?this['_saveCache'](_0x1e3dfc):this[_0x4a4720(0x23d)][_0x4a4720(0x280)](_0x1e3dfc,setTimeout(()=>this[_0x4a4720(0x13a)](_0x1e3dfc),_0x46d186));}['_getSaveTimeout'](){const _0x4ce271=_0x338775;var _0x26c987;return(_0x26c987=this[_0x4ce271(0x27b)][_0x4ce271(0x219)](_0x3ec25a))!=null?_0x26c987:_0x288ada;}[_0x338775(0x13a)](_0x3c09ce){const _0x449637=_0x338775,_0x2d3713=this[_0x449637(0x23d)]['get'](_0x3c09ce);return _0x2d3713!==void 0x0&&window[_0x449637(0x1b4)](_0x2d3713),this[_0x449637(0x324)]['setItem'](_0x311acd(_0x3c09ce),this['_cachedData'][_0x449637(0x2be)](_0x3c09ce))[_0x449637(0x22e)](()=>this[_0x449637(0x23d)][_0x449637(0x26f)](_0x3c09ce));}async['exhaustSavingTask'](){const _0x5b5148=_0x338775,_0x182cc3=[];this[_0x5b5148(0x23d)][_0x5b5148(0x19b)]((_0x2fe950,_0x12b883)=>{const _0x30c8f8=_0x5b5148;window[_0x30c8f8(0x1b4)](_0x2fe950),_0x182cc3['push'](this[_0x30c8f8(0x13a)](_0x12b883)[_0x30c8f8(0x22e)](()=>{this['_saveTaskMap']['delete'](_0x12b883);}));}),await Promise['all'](_0x182cc3);}};Ae=mn([be(0x0,_0x189b35),be(0x1,_0x4d8308),be(0x2,_0x49d929(_0x9a1df6))],Ae);class gn extends _0x13dc53{constructor(){const _0x2dcaff=_0x338775;super(),_(this,'urlChange$'),this[_0x2dcaff(0x24e)]=_0x3b7334(window,'popstate')['pipe'](_0x2cb0e5(this[_0x2dcaff(0x2ad)]),_0x4e4a11(0x1),_0x453bae(void 0x0));}['setParam'](_0x1fc01e,_0x4a8b1a,_0x436430=!0x1){const _0x237e6a=_0x338775,_0x560e14=new URL(window[_0x237e6a(0x154)]['href']);_0x560e14[_0x237e6a(0x14f)]['set'](_0x1fc01e,_0x4a8b1a),_0x436430?window['history'][_0x237e6a(0x252)]('','',_0x560e14['toString']()):window[_0x237e6a(0x14b)]['pushState']('','',_0x560e14['toString']());}['removeParam'](_0x151bbd,_0xa743ee=!0x1){const _0x5198a0=_0x338775,_0x4951ab=new URL(window[_0x5198a0(0x154)][_0x5198a0(0x2c1)]);_0x4951ab[_0x5198a0(0x14f)][_0x5198a0(0x26f)](_0x151bbd),_0xa743ee?window[_0x5198a0(0x14b)]['replaceState']('','',_0x4951ab[_0x5198a0(0x31e)]()):window[_0x5198a0(0x14b)][_0x5198a0(0x29c)]('','',_0x4951ab[_0x5198a0(0x31e)]());}[_0x338775(0x2d4)](_0x3f89ef){const _0x22a5af=_0x338775;var _0x1b97d7;return(_0x1b97d7=new URL(window['location'][_0x22a5af(0x2c1)])[_0x22a5af(0x14f)][_0x22a5af(0x2be)](_0x3f89ef))!=null?_0x1b97d7:void 0x0;}}var vn=Object[_0x338775(0x1a4)],In=Object[_0x338775(0x311)],pn=(_0x23265a,_0x3fc5e6,_0x3d7a0d)=>_0x3fc5e6 in _0x23265a?vn(_0x23265a,_0x3fc5e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d7a0d}):_0x23265a[_0x3fc5e6]=_0x3d7a0d,Cn=(_0x530e18,_0x59c146,_0x180c74,_0x2a43cb)=>{const _0x43a542=_0x338775;for(var _0x2042e2=_0x2a43cb>0x1?void 0x0:_0x2a43cb?In(_0x59c146,_0x180c74):_0x59c146,_0x3f13fa=_0x530e18[_0x43a542(0x160)]-0x1,_0x1b5827;_0x3f13fa>=0x0;_0x3f13fa--)(_0x1b5827=_0x530e18[_0x3f13fa])&&(_0x2042e2=_0x1b5827(_0x2042e2)||_0x2042e2);return _0x2042e2;},Oe=(_0x1f7d69,_0x5c1298)=>(_0x273b04,_0x1a5695)=>_0x5c1298(_0x273b04,_0x1a5695,_0x1f7d69),En=(_0x28ded7,_0x4baa8d,_0x498147)=>pn(_0x28ded7,_0x4baa8d+'',_0x498147);const bn=_0x338775(0x318);let ye=class extends _0x4fdff0{constructor(_0x3dc318=st,_0x4e3b48,_0x5ec8f5,_0x3aabc0){const _0x11128c=_0x338775;super(),this['_config']=_0x3dc318,this[_0x11128c(0x2f5)]=_0x4e3b48,this[_0x11128c(0x277)]=_0x5ec8f5,this[_0x11128c(0x27b)]=_0x3aabc0;const {..._0x1d0486}=_0x533a3e({},st,this[_0x11128c(0x2c9)]);this['_configService'][_0x11128c(0x1d5)](nn,_0x1d0486);}[_0x338775(0x31d)](){const _0x5acafe=_0x338775;this[_0x5acafe(0x210)](),this[_0x5acafe(0x26b)]();}[_0x338775(0x2a8)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x3d1c3d=_0x338775;var _0x12874c;const _0x3630dd=[[He],[ae],[re],[oe],[je],[wt,{'useClass':gn}],[_0x5bd2fc,{'useClass':_0x2afbd4}],[_0xe1c4aa,{'useClass':Ae}],[se],[ce],[ie],[H],[Me],[ne]];_0xf7a90d(this[_0x3d1c3d(0x277)],_0x48daf9(_0x3630dd,(_0x12874c=this[_0x3d1c3d(0x2c9)])==null?void 0x0:_0x12874c[_0x3d1c3d(0x313)]));}[_0x338775(0x272)](){const _0x5136a6=_0x338775;this['disposeWithMe'](this[_0x5136a6(0x2f5)][_0x5136a6(0x226)](_0x16d951[_0x5136a6(0x171)],[Ue])),this['disposeWithMe'](this[_0x5136a6(0x2f5)][_0x5136a6(0x226)](_0x16d951[_0x5136a6(0x2bb)],[Le]));}['_initDependencies'](){_0x224159(this['_injector'],[[H],[se],[ce],[ie],[ne]]);}};En(ye,_0x338775(0x27f),bn),ye=Cn([_0x23feaa(_0x9e4dfb),Oe(0x1,_0x51cd9d),Oe(0x2,_0x49d929(_0x241276)),Oe(0x3,_0x189b35)],ye);var On=Object[_0x338775(0x311)],Tn=(_0x522510,_0x23c9c4,_0x2b88e4,_0x285bbe)=>{const _0x416e97=_0x338775;for(var _0x12f696=_0x285bbe>0x1?void 0x0:_0x285bbe?On(_0x23c9c4,_0x2b88e4):_0x23c9c4,_0x3abf0a=_0x522510[_0x416e97(0x160)]-0x1,_0x57e779;_0x3abf0a>=0x0;_0x3abf0a--)(_0x57e779=_0x522510[_0x3abf0a])&&(_0x12f696=_0x57e779(_0x12f696)||_0x12f696);return _0x12f696;},z=(_0x34d7c2,_0xe45ba2)=>(_0xe4ea84,_0x2fcaa9)=>_0xe45ba2(_0xe4ea84,_0x2fcaa9,_0x34d7c2);let nt=class extends _0x39ee57{constructor(_0x521f99,_0x5f3e3f,_0x3f921c,_0x43132f,_0x1a66d5){super(_0x521f99,_0x5f3e3f,_0x3f921c,_0x43132f,_0x1a66d5);}async[_0x338775(0x303)](_0x3a04ff){const _0x5d6975=_0x338775,_0x155dca=await this[_0x5d6975(0x1c7)](),_0x300289=this['_createSocketURL'](_0x3a04ff,_0x155dca);return this[_0x5d6975(0x21b)](_0x300289);}[_0x338775(0x258)](_0x3d8d13,_0x295fce){const _0x124d03=_0x338775,_0x57624f=typeof window>'u'?new URL(_0x3d8d13):new URL(_0x3d8d13,window['location'][_0x124d03(0x1d4)]);_0x57624f[_0x124d03(0x14f)][_0x124d03(0x280)](_0x124d03(0x307),_0x295fce);const _0x36c109=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x124d03(0x154)][_0x124d03(0x2db)]);return _0x36c109[_0x124d03(0x2be)](_0x124d03(0x26e))&&_0x57624f['searchParams'][_0x124d03(0x280)](_0x124d03(0x26e),_0x36c109[_0x124d03(0x2be)](_0x124d03(0x26e))),_0x57624f[_0x124d03(0x31e)]();}async[_0x338775(0x1c7)](){const _0x385dc9=_0x338775;var _0x7dc82,_0xfd3de1,_0xb67331;const _0x1847a5=this[_0x385dc9(0x27b)][_0x385dc9(0x219)](_0x58c66f),_0x370fd5=(_0x7dc82=_0x1847a5==null?void 0x0:_0x1847a5[_0x385dc9(0x1c4)])!=null?_0x7dc82:_0x568d0a;return(_0xb67331=(_0xfd3de1=(await this[_0x385dc9(0x28a)][_0x385dc9(0x2be)](_0x370fd5,{'headers':{'Content-Type':_0x385dc9(0x1d6)}}))['body'])==null?void 0x0:_0xfd3de1[_0x385dc9(0x255)])!=null?_0xb67331:'';}};nt=Tn([z(0x0,_0x49d929(_0x241276)),z(0x1,_0x49d929(_0x291cab)),z(0x2,_0x189b35),z(0x3,_0x610049),z(0x4,_0x3c1e9f)],nt);const rt=0x7530,ot=_0x338775(0x185);class Gn extends _0x2fcb05{constructor(){const _0x547d0e=_0x338775;super(),_(this,_0x547d0e(0x1cc),_0x4eddce()),_(this,_0x547d0e(0x146),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x547d0e(0x178),null),_(this,_0x547d0e(0x1ba),new Map()),_(this,_0x547d0e(0x1a5),new Map()),this[_0x547d0e(0x32f)]();}[_0x338775(0x1f8)](){const _0x16e666=_0x338775;super[_0x16e666(0x1f8)](),this[_0x16e666(0x1ba)]['forEach']((_0x384e4d,_0x3b2b4e)=>this[_0x16e666(0x2b5)](_0x3b2b4e)),this[_0x16e666(0x178)]&&window['clearInterval'](this[_0x16e666(0x178)]);}['getUnitStatus$'](_0x58b950){const _0x29b188=_0x338775;return this[_0x29b188(0x205)](_0x58b950)[_0x29b188(0x2a1)](_0x3bfac6());}[_0x338775(0x29e)](_0x17a3c8){const _0x56ab1f=_0x338775;this[_0x56ab1f(0x146)]['size']===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x17a3c8),this[_0x56ab1f(0x215)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x17a3c8],'isForwarded':!0x1});}[_0x338775(0x153)](_0x3eab65){const _0x2530c5=_0x338775;this['_selfUnitIDs'][_0x2530c5(0x26f)](_0x3eab65),this[_0x2530c5(0x146)][_0x2530c5(0x326)]===0x0&&this[_0x2530c5(0x178)]&&window['clearInterval'](this[_0x2530c5(0x178)]);}['_init'](){const _0x2879f4=_0x338775;this[_0x2879f4(0x282)](_0x294dcb(_0x3b7334(window,_0x2879f4(0x262))[_0x2879f4(0x29b)](_0xc4b847=>{const _0x2a4e9b=_0x2879f4;if(_0xc4b847[_0x2a4e9b(0x16a)]!==ot||!_0xc4b847[_0x2a4e9b(0x177)])return;const _0x49bb7f=JSON[_0x2a4e9b(0x323)](_0xc4b847['newValue']);this['_handleEvent'](_0x49bb7f);}))),window['addEventListener'](_0x2879f4(0x332),()=>this[_0x2879f4(0x215)]({'type':0x1,'memberID':this[_0x2879f4(0x1cc)],'unitIDs':Array[_0x2879f4(0x327)](this[_0x2879f4(0x146)])}));}[_0x338775(0x1c2)](_0x5a44b3){const _0x38257f=_0x338775;switch(_0x5a44b3[_0x38257f(0x1c0)]){case 0x0:this[_0x38257f(0x174)](_0x5a44b3);break;case 0x1:this[_0x38257f(0x2e7)](_0x5a44b3);break;case 0x2:this[_0x38257f(0x225)](_0x5a44b3);break;}}[_0x338775(0x174)](_0x12e919){const _0x193f2f=_0x338775,{unitIDs:_0x48f775,memberID:_0x16030d,isForwarded:_0x56c0f6}=_0x12e919;_0x48f775['forEach'](_0x272212=>{const _0xe8436=_0x6421;if(!_0x56c0f6&&this[_0xe8436(0x133)]['has'](_0x272212)&&this[_0xe8436(0x205)](_0x272212)[_0xe8436(0x152)](_0x39bb59[_0xe8436(0x30b)]),!this[_0xe8436(0x133)][_0xe8436(0x1e3)](_0x272212)||!this[_0xe8436(0x133)][_0xe8436(0x2be)](_0x272212)[_0xe8436(0x1e3)](_0x16030d)){const _0x5aa938=this[_0xe8436(0x133)][_0xe8436(0x2be)](_0x272212)||new Set();_0x5aa938[_0xe8436(0x1c9)](_0x16030d),this[_0xe8436(0x133)][_0xe8436(0x280)](_0x272212,_0x5aa938),this['_scheduleClearOtherTimer'](_0x16030d);}}),_0x56c0f6||this[_0x193f2f(0x215)]({'type':0x0,'memberID':this[_0x193f2f(0x1cc)],'unitIDs':[...this[_0x193f2f(0x146)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5b20c9){const _0x4e0b9d=_0x338775;this[_0x4e0b9d(0x2b5)](_0x5b20c9);const _0x5b64f2=window[_0x4e0b9d(0x256)](()=>{const _0x2ade1a=_0x4e0b9d;this[_0x2ade1a(0x133)]['forEach'](_0x278fb9=>{_0x278fb9['delete'](_0x5b20c9);});},rt*0x2);this[_0x4e0b9d(0x1ba)][_0x4e0b9d(0x280)](_0x5b20c9,_0x5b64f2);}['_removeClearOtherTimer'](_0x13b54a){const _0x261633=_0x338775;if(this[_0x261633(0x1ba)][_0x261633(0x1e3)](_0x13b54a)){const _0x103982=this['_clearOtherTimers'][_0x261633(0x2be)](_0x13b54a);_0x103982&&window[_0x261633(0x1b4)](_0x103982),this[_0x261633(0x1ba)]['set'](_0x13b54a,null);}}['_handleLeaveEvent'](_0xf2b88){const _0x32e0cc=_0x338775,{memberID:_0x3f6c37,unitIDs:_0x6d41cb}=_0xf2b88;_0x6d41cb['forEach'](_0x46032d=>{const _0x1f398c=_0x6421;var _0x4139b1;const _0x50a21a=this[_0x1f398c(0x133)][_0x1f398c(0x2be)](_0x46032d);_0x50a21a&&(_0x50a21a[_0x1f398c(0x26f)](_0x3f6c37),(_0x4139b1=this[_0x1f398c(0x205)](_0x46032d))==null||_0x4139b1[_0x1f398c(0x152)](_0x50a21a[_0x1f398c(0x326)]===0x0?_0x39bb59[_0x1f398c(0x296)]:_0x39bb59[_0x1f398c(0x30b)]));}),this[_0x32e0cc(0x2b5)](_0x3f6c37);}['_handleHeartbeatEvent'](_0x4d4ef5){const _0x5984f0=_0x338775;this[_0x5984f0(0x163)](_0x4d4ef5[_0x5984f0(0x301)]);}[_0x338775(0x215)](_0x19b74e){const _0x535c10=_0x338775;localStorage[_0x535c10(0x2f8)](ot,JSON['stringify'](_0x19b74e));}['_scheduleHeartbeat'](){const _0x361a70=_0x338775;this[_0x361a70(0x178)]=window[_0x361a70(0x2f7)](()=>{const _0x375d96=_0x361a70;this[_0x375d96(0x215)]({'type':0x2,'memberID':this[_0x375d96(0x1cc)]});},rt);}['_ensureSubject'](_0x1aacbf){const _0x505e87=_0x338775;return this[_0x505e87(0x1a5)]['has'](_0x1aacbf)||this[_0x505e87(0x1a5)][_0x505e87(0x280)](_0x1aacbf,new _0x119e86(_0x39bb59[_0x505e87(0x296)])),this['_unitStatus'][_0x505e87(0x2be)](_0x1aacbf);}}var Ut=(_0x5c815b=>(_0x5c815b[_0x5c815b[_0x338775(0x15c)]=0x0]=_0x338775(0x15c),_0x5c815b[_0x5c815b['OK']=0x1]='OK',_0x5c815b[_0x5c815b[_0x338775(0x16b)]=0x2]=_0x338775(0x16b),_0x5c815b[_0x5c815b[_0x338775(0x1ec)]=0x3]=_0x338775(0x1ec),_0x5c815b[_0x5c815b[_0x338775(0x204)]=0x4]=_0x338775(0x204),_0x5c815b[_0x5c815b[_0x338775(0x285)]=0x5]=_0x338775(0x285),_0x5c815b[_0x5c815b[_0x338775(0x2cf)]=0x6]=_0x338775(0x2cf),_0x5c815b[_0x5c815b[_0x338775(0x207)]=0x7]=_0x338775(0x207),_0x5c815b[_0x5c815b['TOO_MANY_REQUESTS']=0x8]=_0x338775(0x1f0),_0x5c815b[_0x5c815b[_0x338775(0x17d)]=0x9]=_0x338775(0x17d),_0x5c815b[_0x5c815b[_0x338775(0x13f)]=0xa]=_0x338775(0x13f),_0x5c815b[_0x5c815b[_0x338775(0x264)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5c815b[_0x5c815b[_0x338775(0x1a8)]=0x1771]=_0x338775(0x1a8),_0x5c815b[_0x5c815b[_0x338775(0x24f)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5c815b[_0x5c815b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x338775(0x1e8),_0x5c815b[_0x5c815b[_0x338775(0x2ac)]=0x1b59]=_0x338775(0x2ac),_0x5c815b[_0x5c815b[_0x338775(0x200)]=0x1b5a]=_0x338775(0x200),_0x5c815b[_0x5c815b[_0x338775(0x2a5)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5c815b[_0x5c815b[_0x338775(0x140)]=0x1b5c]=_0x338775(0x140),_0x5c815b[_0x5c815b[_0x338775(0x30f)]=0x1b5d]='APPLY_DUPLICATED',_0x5c815b[_0x5c815b[_0x338775(0x2cc)]=0x1f41]=_0x338775(0x2cc),_0x5c815b[_0x5c815b[_0x338775(0x151)]=0x2329]=_0x338775(0x151),_0x5c815b[_0x5c815b[_0x338775(0x2fb)]=0x232a]=_0x338775(0x2fb),_0x5c815b[_0x5c815b[_0x338775(0x1f5)]=0x232b]=_0x338775(0x1f5),_0x5c815b[_0x5c815b['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x338775(0x2df),_0x5c815b[_0x5c815b['LICENSE_DISTRO_REJECTED']=0x232d]=_0x338775(0x190),_0x5c815b[_0x5c815b[_0x338775(0x2ee)]=0x2711]=_0x338775(0x2ee),_0x5c815b[_0x5c815b[_0x338775(0x306)]=0x2712]=_0x338775(0x306),_0x5c815b[_0x5c815b[_0x338775(0x1ea)]=0x2713]=_0x338775(0x1ea),_0x5c815b[_0x5c815b[_0x338775(0x27d)]=0x2714]=_0x338775(0x27d),_0x5c815b[_0x5c815b['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x338775(0x244),_0x5c815b[_0x5c815b[_0x338775(0x247)]=0x2ee1]=_0x338775(0x247),_0x5c815b[_0x5c815b[_0x338775(0x23b)]=0x2ee2]='INVALID_INVITE_CODE',_0x5c815b[_0x5c815b[_0x338775(0x1d1)]=0x2ee3]=_0x338775(0x1d1),_0x5c815b[_0x5c815b[_0x338775(0x234)]=0x2ee4]=_0x338775(0x234),_0x5c815b[_0x5c815b[_0x338775(0x242)]=0x2ee5]=_0x338775(0x242),_0x5c815b[_0x5c815b[_0x338775(0x2ae)]=0x32c9]=_0x338775(0x2ae),_0x5c815b[_0x5c815b[_0x338775(0x19f)]=0x32ca]=_0x338775(0x19f),_0x5c815b[_0x5c815b[_0x338775(0x263)]=0x32cb]=_0x338775(0x263),_0x5c815b[_0x5c815b[_0x338775(0x28d)]=-0x1]=_0x338775(0x28d),_0x5c815b))(Ut||{}),Rn=Object[_0x338775(0x311)],Dn=(_0x3a7b42,_0x946ef5,_0x1e2eca,_0x5841c9)=>{const _0x196841=_0x338775;for(var _0x8d15c4=_0x5841c9>0x1?void 0x0:_0x5841c9?Rn(_0x946ef5,_0x1e2eca):_0x946ef5,_0x25b89a=_0x3a7b42[_0x196841(0x160)]-0x1,_0x68ccc5;_0x25b89a>=0x0;_0x25b89a--)(_0x68ccc5=_0x3a7b42[_0x25b89a])&&(_0x8d15c4=_0x68ccc5(_0x8d15c4)||_0x8d15c4);return _0x8d15c4;},Te=(_0x55dff6,_0x99bff4)=>(_0x489a0f,_0x16b9ae)=>_0x99bff4(_0x489a0f,_0x16b9ae,_0x55dff6);let at=class extends _0x2fcb05{constructor(_0x1e79e3,_0x2f4482,_0x37f8b2){const _0x133d3e=_0x338775;super(),this['_instanceService']=_0x1e79e3,this[_0x133d3e(0x28a)]=_0x2f4482,this[_0x133d3e(0x27b)]=_0x37f8b2;}async[_0x338775(0x316)](_0x2749f2,_0xa86e3a,_0x2ca711,..._0x23b591){const _0x2fcdf6=_0x338775;var _0x27869e,_0x428ee3,_0x6130c7,_0x1d5c51;const _0x2f9e91=this[_0x2fcdf6(0x170)][_0x2fcdf6(0x32d)]();if(!_0x2f9e91)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5425cc=((_0x27869e=this['_configService'][_0x2fcdf6(0x219)](_0x2d1798))!=null?_0x27869e:_0x53ace2)+'/'+_0x2749f2+_0x2fcdf6(0x30d)+_0xa86e3a,_0xc87aaa=new URL(window['location'][_0x2fcdf6(0x2c1)]),_0x409229={'scriptId':_0x2749f2,'runId':(_0x428ee3=_0xc87aaa[_0x2fcdf6(0x14f)][_0x2fcdf6(0x2be)](_0x2fcdf6(0x26e)))!=null?_0x428ee3:'','function':_0xa86e3a,'unitId':_0x2f9e91['getUnitId'](),'argsOfFunction':JSON[_0x2fcdf6(0x1aa)](_0x23b591),'invokeId':(_0x6130c7=_0x2ca711[_0x2fcdf6(0x227)])!=null?_0x6130c7:'','executionId':(_0x1d5c51=_0x2ca711[_0x2fcdf6(0x193)])!=null?_0x1d5c51:''};try{const _0x9454e1=await this['_httpService'][_0x2fcdf6(0x1ab)](_0x5425cc,{'body':_0x409229});return _0x9454e1['body']['error']&&_0x9454e1[_0x2fcdf6(0x17c)][_0x2fcdf6(0x2d0)][_0x2fcdf6(0x189)]!==Ut['OK']?_0x2fcdf6(0x2eb):_0x9454e1['body'][_0x2fcdf6(0x13d)];}catch{return _0x2fcdf6(0x2eb);}}};at=Dn([Te(0x0,_0x364350),Te(0x1,_0x49d929(_0x291cab)),Te(0x2,_0x189b35)],at);export{nt as BrowserCollaborationSocketService,ne as CollaborationDataLoaderController,Zi as CollaborationStatusDisplay,se as DesktopCollaborationStatusDisplayController,wt as IURLService,at as RemoteUniscriptService,Ai as SheetCollabCursorShape,ye as UniverCollaborationClientUIPlugin,Gn as WebBrowserSingleActiveUnitService,gn as WebURLService};
@@ -1 +1 @@
1
- function _0x2ca4(_0x370da0,_0x4dd756){const _0x27e6a8=_0x27e6();return _0x2ca4=function(_0x2ca459,_0x464a39){_0x2ca459=_0x2ca459-0x173;let _0xdc193c=_0x27e6a8[_0x2ca459];return _0xdc193c;},_0x2ca4(_0x370da0,_0x4dd756);}const _0x3a32c9=_0x2ca4;(function(_0xc6659a,_0x12f25b){const _0x5625e1=_0x2ca4,_0x203932=_0xc6659a();while(!![]){try{const _0x33300c=parseInt(_0x5625e1(0x182))/0x1*(parseInt(_0x5625e1(0x18b))/0x2)+-parseInt(_0x5625e1(0x189))/0x3+-parseInt(_0x5625e1(0x181))/0x4+parseInt(_0x5625e1(0x179))/0x5*(-parseInt(_0x5625e1(0x178))/0x6)+-parseInt(_0x5625e1(0x17d))/0x7+-parseInt(_0x5625e1(0x175))/0x8*(parseInt(_0x5625e1(0x174))/0x9)+parseInt(_0x5625e1(0x185))/0xa;if(_0x33300c===_0x12f25b)break;else _0x203932['push'](_0x203932['shift']());}catch(_0x578088){_0x203932['push'](_0x203932['shift']());}}}(_0x27e6,0xf38d5));function _0x27e6(){const _0x1d5c25=['5vUmQYw','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','9703267mIpCFz','Synced','Collaboration\x20Conflict','Syncing...','1437468hNloSS','233GygMnY','Syncing\x20server\x20data...','Click\x20to\x20Reconnect','63940860AxlWDS','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','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','5726058QYceAT','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','6502PAEQOr','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','1926GwYTYM','57496GfEUCN','Connection\x20failed,\x20please\x20check\x20your\x20network.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','5770368ByBYSV'];_0x27e6=function(){return _0x1d5c25;};return _0x27e6();}const e={'collab-client':{'tooltip':{'reconnect':_0x3a32c9(0x184)}},'collabStatus':{'fetchMiss':_0x3a32c9(0x183),'conflict':_0x3a32c9(0x187),'notCollab':'Local\x20file','synced':_0x3a32c9(0x17e),'syncing':_0x3a32c9(0x180),'offline':_0x3a32c9(0x177)},'session':{'connection-failed':_0x3a32c9(0x176),'will-retry':_0x3a32c9(0x17b),'room-full':_0x3a32c9(0x188),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x3a32c9(0x17f),'content':_0x3a32c9(0x186)},'permission':{'title':'Authentication\x20Error','content':_0x3a32c9(0x17a)},'collaboration':{'single-unit':{'warning':_0x3a32c9(0x17c)},'closeRoom':_0x3a32c9(0x18a)},'auth':{'needGotoLoginAlert':_0x3a32c9(0x173)}};export{e as default};
1
+ function _0xfd13(){const _0x32bb99=['Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','16twUbsM','230531losKuA','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','Syncing\x20server\x20data...','Syncing...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Click\x20to\x20Reconnect','16365fHtWxl','102HBTdZH','Connection\x20failed,\x20please\x20check\x20your\x20network.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','21560198DhlIBw','7078810kOlMHm','1bigVcz','1267384RrnUcP','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','1299069XRpRnp','508YOcsPA','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Local\x20file','310990tgUnhC'];_0xfd13=function(){return _0x32bb99;};return _0xfd13();}const _0x177791=_0x281d;(function(_0x2e41d8,_0x5574b4){const _0x1112f7=_0x281d,_0x175542=_0x2e41d8();while(!![]){try{const _0x353e15=-parseInt(_0x1112f7(0x86))/0x1*(-parseInt(_0x1112f7(0x87))/0x2)+parseInt(_0x1112f7(0x7f))/0x3*(parseInt(_0x1112f7(0x8a))/0x4)+parseInt(_0x1112f7(0x8d))/0x5+-parseInt(_0x1112f7(0x80))/0x6*(-parseInt(_0x1112f7(0x78))/0x7)+-parseInt(_0x1112f7(0x77))/0x8*(parseInt(_0x1112f7(0x89))/0x9)+parseInt(_0x1112f7(0x85))/0xa+-parseInt(_0x1112f7(0x84))/0xb;if(_0x353e15===_0x5574b4)break;else _0x175542['push'](_0x175542['shift']());}catch(_0x186151){_0x175542['push'](_0x175542['shift']());}}}(_0xfd13,0x638a5));const e={'collab-client':{'tooltip':{'reconnect':_0x177791(0x7e)}},'collabStatus':{'fetchMiss':_0x177791(0x7b),'conflict':_0x177791(0x7a),'notCollab':_0x177791(0x8c),'synced':'Synced','syncing':_0x177791(0x7c),'offline':_0x177791(0x83)},'session':{'connection-failed':_0x177791(0x81),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x177791(0x88)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x177791(0x79)},'permission':{'title':_0x177791(0x75),'content':_0x177791(0x76)},'collaboration':{'single-unit':{'warning':_0x177791(0x82)},'closeRoom':_0x177791(0x8b)},'auth':{'needGotoLoginAlert':_0x177791(0x7d)}};function _0x281d(_0x28b7b2,_0x395427){const _0xfd13c0=_0xfd13();return _0x281d=function(_0x281d59,_0x5b404b){_0x281d59=_0x281d59-0x75;let _0x2d8377=_0xfd13c0[_0x281d59];return _0x2d8377;},_0x281d(_0x28b7b2,_0x395427);}export{e as default};
@@ -1 +1 @@
1
- const _0x179cfd=_0x28b7;function _0x28b7(_0x2605ff,_0x419835){const _0x3d027b=_0x3d02();return _0x28b7=function(_0x28b73f,_0x30a60b){_0x28b73f=_0x28b73f-0x16d;let _0x5eb909=_0x3d027b[_0x28b73f];return _0x5eb909;},_0x28b7(_0x2605ff,_0x419835);}(function(_0x17afd9,_0x5599f5){const _0x3a8105=_0x28b7,_0x485b70=_0x17afd9();while(!![]){try{const _0x2c2017=-parseInt(_0x3a8105(0x16f))/0x1*(parseInt(_0x3a8105(0x174))/0x2)+-parseInt(_0x3a8105(0x17d))/0x3+parseInt(_0x3a8105(0x172))/0x4+parseInt(_0x3a8105(0x178))/0x5*(-parseInt(_0x3a8105(0x179))/0x6)+parseInt(_0x3a8105(0x181))/0x7+-parseInt(_0x3a8105(0x177))/0x8*(parseInt(_0x3a8105(0x184))/0x9)+parseInt(_0x3a8105(0x16e))/0xa;if(_0x2c2017===_0x5599f5)break;else _0x485b70['push'](_0x485b70['shift']());}catch(_0x507e1e){_0x485b70['push'](_0x485b70['shift']());}}}(_0x3d02,0x98bca));const o={'collab-client':{'tooltip':{'reconnect':'برای\x20اتصال\x20مجدد\x20کلیک\x20کنید'}},'collabStatus':{'fetchMiss':_0x179cfd(0x176),'conflict':_0x179cfd(0x17a),'notCollab':_0x179cfd(0x17b),'synced':'همگام\x20سازی','syncing':_0x179cfd(0x173),'offline':_0x179cfd(0x17f)},'session':{'connection-failed':_0x179cfd(0x175),'will-retry':_0x179cfd(0x17e),'room-full':_0x179cfd(0x182),'collaboration-timeout':'سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.'},'conflict':{'title':_0x179cfd(0x180),'content':_0x179cfd(0x183)},'permission':{'title':_0x179cfd(0x16d),'content':_0x179cfd(0x170)},'collaboration':{'single-unit':{'warning':_0x179cfd(0x171)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x179cfd(0x17c)}};export{o as default};function _0x3d02(){const _0x4ef7ab=['اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','تداخل\x20همکاری','3711302HcwVpe','اتاق\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رفت.','819TMciww','خطای\x20اعتبارسنجی','18800970bYKyoi','286855UCxURD','اعمال\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کنید.','4636928Culjxc','در\x20حال\x20همگام\x20سازی...','8goyaeM','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','70424rFnOKY','15miBYqW','889530OMogmO','تداخل\x20ویرایش','پرونده\x20محلی','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','1651941NWAQDW'];_0x3d02=function(){return _0x4ef7ab;};return _0x3d02();}
1
+ const _0x581403=_0x33e8;(function(_0x4fe190,_0x215de9){const _0x2c1ebc=_0x33e8,_0x4b5cc8=_0x4fe190();while(!![]){try{const _0x444030=-parseInt(_0x2c1ebc(0x1cb))/0x1+parseInt(_0x2c1ebc(0x1ce))/0x2+-parseInt(_0x2c1ebc(0x1cd))/0x3+parseInt(_0x2c1ebc(0x1c6))/0x4*(-parseInt(_0x2c1ebc(0x1c8))/0x5)+-parseInt(_0x2c1ebc(0x1cc))/0x6*(-parseInt(_0x2c1ebc(0x1c9))/0x7)+-parseInt(_0x2c1ebc(0x1d4))/0x8*(-parseInt(_0x2c1ebc(0x1ca))/0x9)+parseInt(_0x2c1ebc(0x1c2))/0xa;if(_0x444030===_0x215de9)break;else _0x4b5cc8['push'](_0x4b5cc8['shift']());}catch(_0x4a0d58){_0x4b5cc8['push'](_0x4b5cc8['shift']());}}}(_0x4e6b,0xaaff8));const o={'collab-client':{'tooltip':{'reconnect':_0x581403(0x1d0)}},'collabStatus':{'fetchMiss':_0x581403(0x1d7),'conflict':'تداخل\x20ویرایش','notCollab':_0x581403(0x1d5),'synced':'همگام\x20سازی','syncing':_0x581403(0x1d2),'offline':_0x581403(0x1c4)},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','will-retry':_0x581403(0x1d3),'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':_0x581403(0x1cf),'content':_0x581403(0x1d6)},'permission':{'title':_0x581403(0x1c5),'content':_0x581403(0x1c7)},'collaboration':{'single-unit':{'warning':_0x581403(0x1d1)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x581403(0x1c3)}};function _0x33e8(_0x363357,_0x5b0a02){const _0x4e6b1f=_0x4e6b();return _0x33e8=function(_0x33e8f4,_0x587ee3){_0x33e8f4=_0x33e8f4-0x1c2;let _0x19e677=_0x4e6b1f[_0x33e8f4];return _0x19e677;},_0x33e8(_0x363357,_0x5b0a02);}function _0x4e6b(){const _0x4e6428=['198027dqxTMg','1136247NqOyzc','3762zRfMQZ','3985902cpXOEG','2795244NJqRnI','تداخل\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کنیم.','392KfusoX','پرونده\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سرور...','13316180pYbDNB','ورود\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اعتبارسنجی','184ALsDGx','اعمال\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رفت.','105505VjLXrg','3668lUDkmn'];_0x4e6b=function(){return _0x4e6428;};return _0x4e6b();}export{o as default};