@univerjs-pro/collaboration-client-ui 0.8.1-nightly.202506151606 → 0.8.1-nightly.202506171607

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x29a823=_0x2d0d;(function(_0x11d9fb,_0x1e790e){const _0xe5ee9e=_0x2d0d,_0x1fec65=_0x11d9fb();while(!![]){try{const _0x369377=-parseInt(_0xe5ee9e(0x279))/0x1+parseInt(_0xe5ee9e(0x113))/0x2*(-parseInt(_0xe5ee9e(0x19e))/0x3)+-parseInt(_0xe5ee9e(0x2ed))/0x4*(parseInt(_0xe5ee9e(0x2d8))/0x5)+parseInt(_0xe5ee9e(0x236))/0x6*(-parseInt(_0xe5ee9e(0x111))/0x7)+-parseInt(_0xe5ee9e(0x2eb))/0x8+-parseInt(_0xe5ee9e(0x140))/0x9*(-parseInt(_0xe5ee9e(0x1ce))/0xa)+parseInt(_0xe5ee9e(0x210))/0xb;if(_0x369377===_0x1e790e)break;else _0x1fec65['push'](_0x1fec65['shift']());}catch(_0x3e5823){_0x1fec65['push'](_0x1fec65['shift']());}}}(_0x58c5,0xaf8f6));var $t=Object[_0x29a823(0x2f8)],xt=(_0x1dfedb,_0x3948c5,_0x8fb300)=>_0x3948c5 in _0x1dfedb?$t(_0x1dfedb,_0x3948c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8fb300}):_0x1dfedb[_0x3948c5]=_0x8fb300,_=(_0x398402,_0x158c1f,_0x16cba3)=>xt(_0x398402,typeof _0x158c1f!=_0x29a823(0x2c5)?_0x158c1f+'':_0x158c1f,_0x16cba3);import{MemberService as _0x2ff0d8,SessionStatus as _0x4068a8,CollaborationSessionService as _0xf66e31,CollaborationStatus as _0x5276f4,CollaborationController as _0x17f747,ILocalCacheService as _0x4ec0e3,CollaborationUIEventService as _0x37732d,CollaborationUIEventId as _0x1ec792,DataLoaderService as _0x1bfb46,DocCollaborationEntity as _0x14e797,getLocalCacheKey as _0x5336d5,LOCAL_CACHE_INTERVAL as _0x53b202,LOCAL_CACHE_INTERVAL_KEY as _0x5ba66b,UniverCollaborationClientPlugin as _0xf86d7b,CollaborationSocketService as _0x3d5f6a,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x50b945,DEFAULT_WS_SESSION_TICKET_URL as _0x5194e4,UnitStatus as _0x3f8da8,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x53543e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x532e81}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x5b0a30,Disposable as _0x10f221,DOC_RANGE_TYPE as _0x3752d4,Inject as _0x455d91,Injector as _0x44d15d,IUniverInstanceService as _0x11340f,ICommandService as _0x4398a9,debounce as _0x10150e,Rectangle as _0x44108f,DisposableCollection as _0x150851,toDisposable as _0x528206,UniverInstanceType as _0x3e57d7,Tools as _0x4a49e5,COLORS as _0x186131,ColorKit as _0x484438,ThemeService as _0x526cce,fromEventSubject as _0x2c516c,LocaleService as _0x1cb89e,createIdentifier as _0x489ce9,ILogService as _0x2dae8e,Optional as _0x5cc3a5,Workbook as _0x348276,CommandType as _0x28e5fb,IConfigService as _0x3a97e3,ILocalStorageService as _0x4a5b3b,DependentOn as _0x314ba8,Plugin as _0x22b858,merge as _0x1f1aa8,registerDependencies as _0x3f2085,mergeOverrideWithDependencies as _0x21a21b,touchDependencies as _0x291413,generateRandomId as _0x3960b0}from'@univerjs/core';import{Shape as _0x8a366b,Rect as _0x464272,getColor as _0x33c28b,RegularPolygon as _0x47e5e0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4b4245,Vector2 as _0x40bec2,SHEET_VIEWPORT_KEY as _0x11dd22,IRenderManagerService as _0x5c6761}from'@univerjs/engine-render';import{ISocketService as _0x4760a4,WebSocketService as _0x49313b,HTTPService as _0x355e28}from'@univerjs/network';import{IDocClipboardService as _0x405235,NodePositionConvertToCursor as _0xa3e32,NodePositionConvertToRectRange as _0x4ea429,TEXT_RANGE_LAYER_INDEX as _0x47c066,SetDocZoomRatioOperation as _0x5a7e69,DocIMEInputManagerService as _0x117745,DocStateChangeManagerService as _0x1b3913}from'@univerjs/docs-ui';import{IImageIoService as _0x376fc1}from'@univerjs/drawing';import{BehaviorSubject as _0x168fee,debounceTime as _0x41592c,takeUntil as _0x3d7f41,Subject as _0x15f4cf,filter as _0x2a6a4f,switchMap as _0x513abf,merge as _0x2bf511,combineLatest as _0x472c44,of as _0x539c3b,fromEvent as _0x35e5e8,shareReplay as _0x212fb1,mapTo as _0x4effe6,distinctUntilChanged as _0x381aea}from'rxjs';import{SetTextSelectionsOperation as _0x2b7b22,RichTextEditingMutation as _0xaceaa,DocSelectionManagerService as _0x2c0b0f,DocSkeletonManagerService as _0xf44655}from'@univerjs/docs';import{ITransformService as _0x615fc1,CollaborationEvent as _0x3a0646,isTransformMutationFailure as _0x198bf8,isTransformMutationsWithChangesetSuccess as _0x2001a7,RevisionService as _0xf03bd1,ISnapshotServerService as _0x26ce3a}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x8e2f78,serializeRangeWithSheet as _0x51954b}from'@univerjs/engine-formula';import{RefRangeService as _0x290145,SetSelectionsOperation as _0x29ac2a,SheetsSelectionsService as _0x140639,EffectRefRangId as _0x4ed115,handleIRemoveRow as _0x5c038c,handleIRemoveCol as _0x11ad35,handleMoveRange as _0x461938,handleInsertRow as _0x3d4d07,handleInsertRangeMoveRight as _0x4938b4,handleInsertRangeMoveDown as _0x540194,handleInsertCol as _0x3fa952,handleDeleteRangeMoveUp as _0x5c7865,handleDeleteRangeMoveLeft as _0x5852f8,runRefRangeMutations as _0x4db3c2,SetWorksheetActivateCommand as _0x57a71d}from'@univerjs/sheets';import{map as _0x40c94b,filter as _0x3bbf03,throttleTime as _0x307166,takeUntil as _0x336390,switchMap as _0x3c2c37}from'rxjs/operators';import{SheetSkeletonManagerService as _0x58a1ab,getCoordByCell as _0x457124,getSheetObject as _0x412eda}from'@univerjs/sheets-ui';import{jsx as _0x15a63d,jsxs as _0x15ba8b}from'react/jsx-runtime';import{useObservable as _0x49a27b,useDependency as _0x316a74,IUIPartsService as _0x7a0a73,BuiltInUIPart as _0x4bc2d7,connectInjector as _0x23b9eb,IBeforeCloseService as _0x1aa7ba,IMessageService as _0x19b68c,INotificationService as _0x4a10a4}from'@univerjs/ui';import{Tooltip as _0xbbccda,clsx as _0x3ceee0,MessageType as _0x5740c0}from'@univerjs/design';function _0x58c5(){const _0x28f95e=['sheetId','saveImage','_name','TEXT','_scheduleHeartbeat','ticket','executeCommand','setParam','editingUnit','_setupBeforeClosingHandler','CONNECTOR_DATA_TOO_LARGE','_online','getCurrentSelections','onLocalMutation','syncEditingCollabCursor','_docTransformStateCacheService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_removeClearOtherTimer','getMergeData','path','endColumn','init','font','width','sessionStatus$','parse','_hideTimer','permission.content','NOT_FOUND','_getMergeRange','session.will-retry','_initStatusComponent','on-line-icon_clip0_910_349','updateOfflineData','_clearOtherTimers','skeleton','_anchorDot','CONFLICT','SUBMIT_CHANGESET_TIMEOUT','yellow.400','registerRefRange','_ensureSubject','_transformHistoryAndStateStack','UNIVER_DOC','dispose$','getDocRanges','_scene','getViewport','_doCreateSocket','deepClone','type','MUTATION','max','location','transformMutationsWithChangeset','isActive','redoState','_localStorageService','fillStyle','getMember','disposeUnit','_memberService','_handleHeartbeatEvent','4159mYFZRU','delete','getConfig','href','fillText','_onCursorDelete','1em','setAlpha','_imageIoService','_init','addObject','undoState','_entityInit$','_getScale','removeParam','application/json','popstate','_registerDependencies','_labelPosition','defs','off-line-icon_clip0_910_343','find','_scheduleClearOtherTimer','xlink:href','exhaustSavingTask','onRendered','permission.title','_config','clipPath','YUUMI_ASYNCIO_CANCELLED','_onCursorUpdate','_updateCollabCursors','ENSURE_SNAPSHOT_EXECUTION','selections','className','Warning','trim','NOT_COLLAB','call','urlChange$','_handleHover','collabCursorState$','_initDependencies','_handleEvent','UniverIcon','send','_initEvent','data','extend','LICENSE_EXPORT_SIZE_EXCEEDED','searchParams','_localeService','ranges','imageSourceType','div','_backgroundColor','newValue','CHANGESET_REVISION_CONFILICT','getUnhiddenWorksheets','getColorFromTheme','_collaborationController','values','SNAPSHOT_HAS_BEEN_REMOVED','doc.mutation.rich-text-editing','collab-text-range-','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','UNRECOGNIZED','docStateChange$','APPLY_REVISION_CONFILICT','createSocket','toString','invokeId','_dataLoaderService','_onRefRangeChange','ALREADY_EXISTS','symbol','SOCKET_FAILED_RETRY','SNAPSHOT_INVALID_SNAPSHOT','text','ACTIVE_UNIT_EVENT_CHANNEL','sheetID','_createSocketURL','_collaborationUIEventService','collaboration-client.offline-data-not-saved','addHandlerCallback','isEditing','assign','selection','InsertRangeMoveDownCommandId','source','post','unitId','red.300','registerComponent','135QyouLj','onPointerLeave$','InsertRowCommandId','sessionTicket','debug','hasOwnProperty','PY_RUNTIME_SCRIPT_ERROR','registerBeforeClose','size','getMemberID','asObservable','some','getParam','drawWith','then','_logService','_saveTaskMap','[CollaborationDataLoaderController]','OTHER_CLIENT_EDITING','808032RMNIux','MOBILE_HAS_BEEN_BOUND','201640WWkTCa','getRelativeToViewportCoord','_colorIndex','_drawRectRange','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','error','_unitStatus','displayName','bottom','defineProperty','getActiveRange','rgba(255,\x20255,\x20255,\x200.01)','row','collaboration-client-ui.config','EMAIL_HAS_BEEN_BOUND','_getSheetObject','subscribeEvent','collabStatus.fetchMiss','_initCommandExecutedListener','_status$','all','3119599CmPGUl','YUUMI_URL_COL_OUT_OF_RANGE','4YlVzbz','currentSkeleton$','subunit','WECHAT_HAS_BEEN_BOUND','none','startRow','_colorAssignService','color','url(#$1','clearInterval','textRanges','getRangePointData','_configService','use','height','getCurrent','resize','LICENSE_MAX_UNITS_EXCEEDED','split','transform','Unknown\x20user','onTransformChange$','_send','AWAITING','collabStatus.syncing','_updateSubUnitFromURLParams','findNodePositionByCharIndex','_handleJoinEvent','beginPath','forEach','length','onCommandExecuted','eventID','mask','apply','_roomMembers$','roomMembers$','_transformUndoRedoStack','key','INTERNAL_ERROR','complete','_refreshCollabCursors','registerRenderModule','reconnect','setConfig','9ezfORw','_toggleOnline','defIds','m2Prime','generateRandomId','setShapeProps','_httpService','getOwnPropertyDescriptor','collabStatus.notCollab','AWAITING_WITH_PENDING','loadUnit','_initStatusListener','assignAColorForMemberID','_collabSessionService','setStateCache','push','SOCKET_FAILED','_draw','saveOfflineData','unitID','mutations','LICENSE_IMPORT_SIZE_EXCEEDED','cursorInfo','round','_messageService','body','params','YUUMI_RATE_OVER_LIMIT','colorChannel1','USERS_LEAVE','status$','_commandService','history','propertyIsEnumerable','_id','_transformService','PERMISSION_DENIED','APPLY_DUPLICATED','evenodd','getUnitId','getSheetBySheetId','OTHER_CLIENTS_EDITING','icon','_session','unsubscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','save','_removeCollabCursors','univer-mr-2\x20univer-flex\x20univer-text-xl','tag','getTypeOfUnitDisposed$','_beforeCloseService','setItem','top','_notificationService','getCellPositionByOffset','getStateCache','HEADER_MENU','wsSessionTicketUrl','addEventListener','RECT','set','toRgbString','_syncEditingCollabCursorService','_assignedColors','dispose','_localCacheService','addClipboardHook','requireSession','roomMembers','cursorInfo$','children','onMouseMove','_registerRenderDependencies','_drawAnchor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docSkeletonManagerService','_toggleOffline','_anchor','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','loadOfflineData','InsertColCommandId','collab-text-anchor-','_revisionService','_saveCache','RemoveColCommandId','isArray','INVALID_ARGUMENT','UNIVER_SHEET','measureText','_sheetSkeletonManagerService','from','_univerInstanceService','_selfUnitIDs','537585wPpyFX','_context','_heartbeatTimer','stringify','with','_disabled','clearTimeout','transformIMECache','engine','white','http://www.w3.org/2000/svg','subscribe','enableLocalCache','add','_docTransformIMECacheService','includes','flatMap','NO_OTHER_CLIENTS_EDITING','_updateURLWithCurrentState','prototype','string','UNAUTHENTICATED','_color','endRow','_updateLocalCursor','_eventUnsubscribe','code','search','runId','pipe','_docSkeleton','_getAnchorBounding','COMPLETION_FINISHED','disposeWithMe','get','getItem','idSuffix','runOnServer','getCurrentRevOfUnit','collab-client.tooltip.reconnect','univer-flex\x20univer-items-center','_injector','entityInit$','event$','getFocusedUnit','APPLY_REJECT','YUUMI_UNABLE_LOAD_URL','_textBubble','8411570eWjNWE','_cursorInfo$','DeleteRangeMoveUpCommandId','APPLY_NON_SEQUENTIAL_REVISION','_unitOnClients','USER_NOT_INVITED_CODE','_docClipboardService','pluginName','_lastPointer','INVITE_CODE_HAS_BEEN_UES','getTypeOfUnitAdded$','FromArray','_docStateChangeManagerService','LICENSE_DISTRO_REJECTED','show','has','_drawTextRange','_renderManagerService','_uiPartsService','currentColor','black','_instanceService','currentTheme$','transformMutation','getUniverSheetInstance','_collabCursorState$','column','FETCH_MISS','InsertRangeMoveRightCommandId','_initResize','_getSessionTicket','MoveRangeCommandId','replace','range','LOGIN_FAILED','purple.300','entries','m1Prime','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','getSkeleton','getValue','_refRangeService','unshift','collaboration.closeRoom','_hover','min','...','_cursorShapes','getAncestorScale','activeSheet$','disableLocalCache','substring','_collabCursorController','concat','Error','UNDEFINED','_render','map','getCurrentUnitForType','indexOf','_entities','_hovered','YUUMI_AI_RUN_FAILED','OffLineIcon','INVITE_CODE_REQUIRED','getRenderById','23630387ENvfFX','restore','_docTransformSelectionsService','INVITE_CODE_ALREADY_BOUND','arc','getSheetId','_range','YUUMI_NO_CUBOID_FOR_QUESTION','_docSyncEditingCollabCursorService','transformByState','next','_themeService','onPointerMove$','lineTo','attrs','transformRemoteChangeset','createInstance','transformStateCache','_initEntityListener','_cursors','ONLINE','pushState','YUUMI_ALL_TABLES_IS_INVALID','url(#off-line-icon_clip0_910_343)','saveTaskMap','APPLY_PERMISSION_DENIED','OFFLINE','onPointerEnter$','name','DeleteRangeMoveLeftCommandId','_cachedData','fill','0\x200\x2016\x2016','CLOSE_ROOM','transformSelections','_transformPreviousActiveRange','INVALID_INVITE_CODE','_shapes','6HhCWid','_urlService','unit','getCollabCursors$'];_0x58c5=function(){return _0x28f95e;};return _0x58c5();}import{forwardRef as _0x2d8cbf,useRef as _0x1bd1d1,createElement as _0x2ea805,useCallback as _0x54db02}from'react';import{IRemoteInstanceService as _0x16d091}from'@univerjs/rpc';var ci=Object[_0x29a823(0x147)],li=(_0xf6ec80,_0x159b1b,_0x480422,_0x2d03f0)=>{const _0x226c17=_0x29a823;for(var _0x629e80=_0x2d03f0>0x1?void 0x0:_0x2d03f0?ci(_0x159b1b,_0x480422):_0x159b1b,_0x5bf334=_0xf6ec80[_0x226c17(0x131)]-0x1,_0x1d092d;_0x5bf334>=0x0;_0x5bf334--)(_0x1d092d=_0xf6ec80[_0x5bf334])&&(_0x629e80=_0x1d092d(_0x629e80)||_0x629e80);return _0x629e80;},Je=(_0x3f6009,_0x3a6891)=>(_0x12f32b,_0x31840d)=>_0x3a6891(_0x12f32b,_0x31840d,_0x3f6009);let Ne=class extends _0x5b0a30{constructor(_0x27461d,_0x3991a7){const _0x203662=_0x29a823;super(),this[_0x203662(0x1d4)]=_0x27461d,this[_0x203662(0x281)]=_0x3991a7,this[_0x203662(0x282)]();}[_0x29a823(0x282)](){const _0x3b0768=_0x29a823,_0x130809=this;this[_0x3b0768(0x1bf)](this[_0x3b0768(0x1d4)][_0x3b0768(0x183)]({'onBeforePasteImage':async _0xe67d13=>{const _0x9c9f8a=_0x3b0768,_0x139bda=await _0x130809[_0x9c9f8a(0x281)][_0x9c9f8a(0x23b)](_0xe67d13);return _0x139bda?{'source':_0x139bda[_0x9c9f8a(0x2d3)],'imageSourceType':_0x139bda[_0x9c9f8a(0x2ae)]}:null;}}));}};Ne=li([Je(0x0,_0x405235),Je(0x1,_0x376fc1)],Ne);const Ze=[_0x29a823(0x1f1),'jiqing.500','green.600',_0x29a823(0x2d6),'blue.400',_0x29a823(0x261)];class ke extends _0x10f221{constructor(){const _0x1c56c4=_0x29a823;super(...arguments),_(this,_0x1c56c4(0x180),new Map()),_(this,'_colorIndex',0x0);}[_0x29a823(0x14c)](_0x351b7a){const _0x4fd29e=_0x29a823;if(this['_assignedColors']['has'](_0x351b7a))return this[_0x4fd29e(0x180)][_0x4fd29e(0x1c0)](_0x351b7a);const _0x99af16=Ze[this[_0x4fd29e(0x2ef)]];return this[_0x4fd29e(0x2ef)]=(this[_0x4fd29e(0x2ef)]+0x1)%Ze[_0x4fd29e(0x131)],this[_0x4fd29e(0x180)][_0x4fd29e(0x17d)](_0x351b7a,_0x99af16),_0x99af16;}}function Tt(_0x49d808){let _0x1900d8='';for(const _0x2137b of _0x49d808){const {startOffset:_0x2d886d,endOffset:_0xaf8a6c,isActive:_0x59cf08,rangeType:_0x573f7c,segmentId:_0xabbaa,segmentPage:_0x194518}=_0x2137b;_0x1900d8['length']&&(_0x1900d8+=','),_0x1900d8+=_0x2d886d+':'+_0xaf8a6c+':'+(_0x59cf08?'1':'0')+':'+_0x573f7c+':'+_0xabbaa+':'+_0x194518;}return _0x1900d8;}function _i(_0x348773){const _0x1dfd2b=_0x29a823,_0x3377bf=_0x348773[_0x1dfd2b(0x125)](','),_0x140800=[];for(const _0x229d97 of _0x3377bf){const [_0x38aa43,_0x178bc2,_0x2afd55,_0x1596e3,_0x20f3b8,_0x10bb68]=_0x229d97[_0x1dfd2b(0x125)](':');_0x140800['push']({'startOffset':Number(_0x38aa43),'endOffset':Number(_0x178bc2),'collapsed':_0x38aa43===_0x178bc2,'isActive':_0x2afd55==='1','rangeType':_0x1596e3===_0x3752d4[_0x1dfd2b(0x23d)]?_0x3752d4[_0x1dfd2b(0x23d)]:_0x3752d4[_0x1dfd2b(0x17c)],'segmentId':typeof _0x20f3b8==_0x1dfd2b(0x1b2)?String(_0x20f3b8):'','segmentPage':Number(_0x10bb68!=null?_0x10bb68:-0x1)});}return _0x140800[_0x1dfd2b(0x2e3)](_0xfbe175=>_0xfbe175[_0x1dfd2b(0x271)])||(_0x140800[0x0][_0x1dfd2b(0x271)]=!0x0),_0x140800;}class He extends _0x5b0a30{constructor(){const _0x133250=_0x29a823;super(...arguments),_(this,'_collabCursorState$',new _0x168fee(null)),_(this,_0x133250(0x2a2),this[_0x133250(0x1e7)][_0x133250(0x2e2)]());}[_0x29a823(0x248)](_0x32d0d4){const _0x30848f=_0x29a823,{unitID:_0x1721b1,memberID:_0x2fb738,textRanges:_0x44610c}=_0x32d0d4,_0x122e56=Tt(_0x44610c);if(_0x122e56==='')return;const _0x1efa98={'unitID':_0x1721b1,'memberID':_0x2fb738,'selection':_0x122e56};this[_0x30848f(0x1e7)][_0x30848f(0x21a)](_0x1efa98);}}var hi=Object['getOwnPropertyDescriptor'],ui=(_0x466c09,_0x4cdcb1,_0xb67f56,_0x14616c)=>{const _0x102376=_0x29a823;for(var _0x47cd07=_0x14616c>0x1?void 0x0:_0x14616c?hi(_0x4cdcb1,_0xb67f56):_0x4cdcb1,_0x387743=_0x466c09[_0x102376(0x131)]-0x1,_0x141431;_0x387743>=0x0;_0x387743--)(_0x141431=_0x466c09[_0x387743])&&(_0x47cd07=_0x141431(_0x47cd07)||_0x47cd07);return _0x47cd07;},P=(_0x49879c,_0x4d130b)=>(_0x1977c1,_0x47a4ce)=>_0x4d130b(_0x1977c1,_0x47a4ce,_0x49879c);const di=0x12c,fi=0x64;let Ue=class extends _0x5b0a30{constructor(_0x5c5b41,_0xb632be,_0x4ff887,_0x42513a,_0x305151,_0x21a0ba,_0x2b94f8,_0x328e81,_0x52266a){const _0x30ab77=_0x29a823;super(),_(this,_0x30ab77(0x245),!0x1),_(this,_0x30ab77(0x282),!0x1),_(this,'_cursorInfo$',new _0x168fee(new Map())),_(this,_0x30ab77(0x186),this[_0x30ab77(0x1cf)][_0x30ab77(0x2e2)]()),_(this,'_roomMembers$',new _0x168fee([])),_(this,_0x30ab77(0x137),this[_0x30ab77(0x136)][_0x30ab77(0x1bb)](_0x41592c(di))),_(this,_0x30ab77(0x1b6),_0x10150e(_0x32491e=>{const _0x4dfd3c=_0x30ab77,_0x43bb10={'eventID':_0x3a0646['UPDATE_CURSOR'],'data':{'unitID':this[_0x4dfd3c(0x153)],'memberID':this[_0x4dfd3c(0x16b)][_0x4dfd3c(0x2e1)](),'selection':Tt(_0x32491e)}};this[_0x4dfd3c(0x16b)]['send'](_0x43bb10,this[_0x4dfd3c(0x153)]);},fi)),(this[_0x30ab77(0x153)]=_0x5c5b41,this[_0x30ab77(0x16b)]=_0xb632be,this['_injector']=_0x4ff887,this[_0x30ab77(0x119)]=_0x42513a,this[_0x30ab77(0x277)]=_0x305151,this[_0x30ab77(0x17f)]=_0x21a0ba,this[_0x30ab77(0x163)]=_0x2b94f8,this[_0x30ab77(0x19c)]=_0x328e81,this[_0x30ab77(0x15f)]=_0x52266a);}get[_0x29a823(0x156)](){const _0x345247=_0x29a823;return this[_0x345247(0x1cf)][_0x345247(0x1f6)]();}get[_0x29a823(0x185)](){const _0x419b95=_0x29a823;return this[_0x419b95(0x136)]['getValue']();}[_0x29a823(0x181)](){const _0x15a561=_0x29a823;super[_0x15a561(0x181)](),this[_0x15a561(0x1cf)][_0x15a561(0x21a)](new Map()),this[_0x15a561(0x1cf)][_0x15a561(0x13b)](),this['_roomMembers$']['next']([]),this[_0x15a561(0x136)][_0x15a561(0x13b)]();}[_0x29a823(0x24f)](){const _0x4804c7=_0x29a823;this[_0x4804c7(0x282)]||(this[_0x4804c7(0x282)]=!0x0,this['_session'][_0x4804c7(0x252)][_0x4804c7(0x1bb)](_0x3d7f41(this[_0x4804c7(0x266)]))['subscribe'](_0x38d592=>{const _0x2ada93=_0x4804c7;_0x38d592===_0x4068a8[_0x2ada93(0x224)]?this['_toggleOnline']():this[_0x2ada93(0x18d)]();}),this[_0x4804c7(0x16b)][_0x4804c7(0x1c9)][_0x4804c7(0x1bb)](_0x3d7f41(this[_0x4804c7(0x266)]))[_0x4804c7(0x1a9)](_0x2b88ba=>{const _0x423866=_0x4804c7,_0x52d203=_0x2b88ba[_0x423866(0x133)];_0x52d203===_0x3a0646[_0x423866(0x2f2)]&&this[_0x423866(0x297)](_0x2b88ba),_0x52d203===_0x3a0646['USERS_LEAVE']&&this[_0x423866(0x27e)](_0x2b88ba);}),this['disposeWithMe'](this[_0x4804c7(0x15f)][_0x4804c7(0x132)](_0x187389=>{const _0x3d1d76=_0x4804c7,_0x3aabb6=_0x187389[_0x3d1d76(0x15a)];_0x3aabb6!=null&&this[_0x3d1d76(0x245)]&&_0x187389['id']===_0x2b7b22['id']&&_0x3aabb6[_0x3d1d76(0x2d5)]===this[_0x3d1d76(0x153)]&&_0x3aabb6[_0x3d1d76(0x2cf)]===!0x1&&_0x3aabb6[_0x3d1d76(0x2ad)]['length']>0x0&&this['_updateLocalCursor'](_0x3aabb6[_0x3d1d76(0x2ad)]);})),this[_0x4804c7(0x17f)][_0x4804c7(0x2a2)][_0x4804c7(0x1bb)](_0x3d7f41(this[_0x4804c7(0x266)]))['subscribe'](_0x5a1d15=>{const _0x1ca709=_0x4804c7;if((_0x5a1d15==null?void 0x0:_0x5a1d15[_0x1ca709(0x153)])!==this['unitID'])return;const _0x3fdadf={'eventID':_0x3a0646[_0x1ca709(0x2f2)],'data':_0x5a1d15};this[_0x1ca709(0x297)](_0x3fdadf);}),this[_0x4804c7(0x1bf)](this[_0x4804c7(0x15f)][_0x4804c7(0x132)](_0x175e78=>{const _0x38ef33=_0x4804c7;if(_0x175e78[_0x38ef33(0x15a)]==null)return;const _0x44b51e=_0x175e78[_0x38ef33(0x15a)];if(_0x175e78['id']!==_0xaceaa['id']||_0x44b51e[_0x38ef33(0x2d5)]!==this[_0x38ef33(0x153)])return;const _0x333883={'id':_0x38ef33(0x2b8),'params':_0x44b51e},_0x33e6ae=this[_0x38ef33(0x156)];for(const [_0x9f1b74,_0x23209b]of _0x33e6ae){const _0x1546fa={'id':_0x38ef33(0x2b8),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x23209b[_0x38ef33(0x2ad)]}},_0x2f37dd=this[_0x38ef33(0x163)][_0x38ef33(0x1e5)](_0x333883,_0x1546fa,!0x1);if(_0x198bf8(_0x2f37dd))throw _0x2f37dd[_0x38ef33(0x2f4)];_0x33e6ae[_0x38ef33(0x17d)](_0x9f1b74,{..._0x23209b,'ranges':_0x2f37dd[_0x38ef33(0x143)][_0x38ef33(0x15a)][_0x38ef33(0x11d)]});}queueMicrotask(()=>{const _0x36e127=_0x38ef33;this[_0x36e127(0x1cf)][_0x36e127(0x21a)](_0x33e6ae);});})));}[_0x29a823(0x297)](_0x4a07a9){const _0x43f59d=_0x29a823;var _0x3a5af9,_0x2d1808;const {memberID:_0x2ae12b,selection:_0x26b8fa}=_0x4a07a9['data'],_0xe1135a=_i(_0x26b8fa),_0x54ab1a=(_0x2d1808=(_0x3a5af9=this['_memberService'][_0x43f59d(0x275)](this[_0x43f59d(0x153)],_0x2ae12b))==null?void 0x0:_0x3a5af9[_0x43f59d(0x22c)])!=null?_0x2d1808:_0x43f59d(0x127),_0x407e34={'color':this[_0x43f59d(0x119)][_0x43f59d(0x14c)](_0x2ae12b),'name':_0x54ab1a,'ranges':_0xe1135a},_0x4d8890=this[_0x43f59d(0x156)];_0x4d8890['set'](_0x2ae12b,_0x407e34),this[_0x43f59d(0x1cf)][_0x43f59d(0x21a)](_0x4d8890);}[_0x29a823(0x27e)](_0x487899){const _0x729ee8=_0x29a823,{memberID:_0x1271e4}=_0x487899[_0x729ee8(0x2a8)],_0x443166=this[_0x729ee8(0x156)];_0x443166['delete'](_0x1271e4),this[_0x729ee8(0x1cf)][_0x729ee8(0x21a)](_0x443166);}[_0x29a823(0x141)](){const _0x177cb9=_0x29a823;var _0x22443c;if(this[_0x177cb9(0x245)]=!0x0,((_0x22443c=this[_0x177cb9(0x19c)][_0x177cb9(0x1ca)]())==null?void 0x0:_0x22443c[_0x177cb9(0x167)]())!==this[_0x177cb9(0x153)])return;const _0x570cd0=this['_injector'][_0x177cb9(0x1c0)](_0x2c0b0f)['getDocRanges']();Array[_0x177cb9(0x196)](_0x570cd0)&&_0x570cd0[_0x177cb9(0x131)]>0x0&&this[_0x177cb9(0x1b6)](_0x570cd0);}['_toggleOffline'](){this['_online']=!0x1;}};Ue=ui([P(0x2,_0x455d91(_0x44d15d)),P(0x3,_0x455d91(ke)),P(0x4,_0x455d91(_0x2ff0d8)),P(0x5,_0x455d91(He)),P(0x6,_0x615fc1),P(0x7,_0x11340f),P(0x8,_0x4398a9)],Ue);var Si=Object[_0x29a823(0x147)],mi=(_0x1ab97c,_0x2c092e,_0x3d8fc9,_0x5e3321)=>{const _0x25a758=_0x29a823;for(var _0x556f9d=_0x5e3321>0x1?void 0x0:_0x5e3321?Si(_0x2c092e,_0x3d8fc9):_0x2c092e,_0x44834e=_0x1ab97c[_0x25a758(0x131)]-0x1,_0x9bfd9c;_0x44834e>=0x0;_0x44834e--)(_0x9bfd9c=_0x1ab97c[_0x44834e])&&(_0x556f9d=_0x9bfd9c(_0x556f9d)||_0x556f9d);return _0x556f9d;},x=(_0x381a2a,_0x25c14d)=>(_0x50a27f,_0x1f7aff)=>_0x25c14d(_0x50a27f,_0x1f7aff,_0x381a2a);const Ii=0x12c,gi=0x64,vi=()=>{let _0x4bf5db=[],_0x5300c5=!0x1;return _0x4d5dd4=>{_0x4bf5db['push'](_0x4d5dd4),_0x5300c5||(_0x5300c5=!0x0,setTimeout(()=>{_0x4bf5db['forEach'](_0x3ed62b=>_0x3ed62b()),_0x4bf5db=[],_0x5300c5=!0x1;}));};};let Me=class extends _0x5b0a30{constructor(_0x1b1256,_0x1669c4,_0x525edc,_0xb8ac04,_0x5df6b3,_0x43388f,_0x46d02a,_0x4a29cc){const _0x1211bc=_0x29a823;super(),_(this,_0x1211bc(0x245),!0x1),_(this,_0x1211bc(0x282),!0x1),_(this,_0x1211bc(0x1cf),new _0x168fee(new Map())),_(this,_0x1211bc(0x186),this['_cursorInfo$']['asObservable']()),_(this,_0x1211bc(0x136),new _0x168fee([])),_(this,'roomMembers$',this[_0x1211bc(0x136)][_0x1211bc(0x1bb)](_0x41592c(Ii))),_(this,_0x1211bc(0x1b6),_0x10150e((_0x30aa40,_0x1e959a)=>{const _0x2a2581=_0x1211bc,_0x45e61e={'eventID':_0x3a0646['UPDATE_CURSOR'],'data':{'unitID':this[_0x2a2581(0x153)],'memberID':this[_0x2a2581(0x16b)][_0x2a2581(0x2e1)](),'selection':_0x51954b(_0x30aa40,_0x1e959a['range'])}};this[_0x2a2581(0x16b)][_0x2a2581(0x2a6)](_0x45e61e,this['unitID']);},gi)),(this['unitID']=_0x1b1256,this[_0x1211bc(0x16b)]=_0x1669c4,this['_injector']=_0x525edc,this['_colorAssignService']=_0xb8ac04,this['_memberService']=_0x5df6b3,this[_0x1211bc(0x19c)]=_0x43388f,this['_commandService']=_0x46d02a,this[_0x1211bc(0x1f7)]=_0x4a29cc);}get[_0x29a823(0x156)](){const _0x47f327=_0x29a823;return this[_0x47f327(0x1cf)][_0x47f327(0x1f6)]();}get[_0x29a823(0x185)](){const _0x1dd981=_0x29a823;return this[_0x1dd981(0x136)]['getValue']();}[_0x29a823(0x181)](){const _0xdfb135=_0x29a823;super[_0xdfb135(0x181)](),this[_0xdfb135(0x1cf)]['next'](new Map()),this[_0xdfb135(0x1cf)][_0xdfb135(0x13b)](),this[_0xdfb135(0x136)][_0xdfb135(0x21a)]([]),this['_roomMembers$'][_0xdfb135(0x13b)]();}[_0x29a823(0x24f)](){const _0x148ba4=_0x29a823;this['_init']||(this[_0x148ba4(0x282)]=!0x0,this[_0x148ba4(0x16b)][_0x148ba4(0x252)][_0x148ba4(0x1bb)](_0x3d7f41(this[_0x148ba4(0x266)]))['subscribe'](_0x2ac19e=>{const _0xb0d484=_0x148ba4;_0x2ac19e===_0x4068a8[_0xb0d484(0x224)]?this['_toggleOnline']():this[_0xb0d484(0x18d)]();}),this[_0x148ba4(0x16b)]['event$']['pipe'](_0x3d7f41(this[_0x148ba4(0x266)]))[_0x148ba4(0x1a9)](_0x4fa3d6=>{const _0x293506=_0x148ba4,_0x17115a=_0x4fa3d6[_0x293506(0x133)];_0x17115a===_0x3a0646[_0x293506(0x2f2)]&&this['_onCursorUpdate'](_0x4fa3d6),_0x17115a===_0x3a0646[_0x293506(0x15d)]&&this[_0x293506(0x27e)](_0x4fa3d6);}),this[_0x148ba4(0x2c3)](),this['disposeWithMe'](this[_0x148ba4(0x15f)][_0x148ba4(0x132)](_0x1c9795=>{const _0x2e6f53=_0x148ba4;if(this[_0x2e6f53(0x245)]&&_0x1c9795['id']===_0x29ac2a['id']&&_0x1c9795[_0x2e6f53(0x15a)][_0x2e6f53(0x2d5)]===this[_0x2e6f53(0x153)]){const _0x2ac720=_0x1c9795[_0x2e6f53(0x15a)];this[_0x2e6f53(0x1b6)](_0x2ac720['subUnitId'],_0x2ac720[_0x2e6f53(0x29a)][0x0]);}})));}['_onCursorUpdate'](_0x3ab7d1){const _0x53b767=_0x29a823;var _0x1ad978,_0x5832cd;const {memberID:_0x564c7b,selection:_0x2ba389}=_0x3ab7d1[_0x53b767(0x2a8)],{sheetName:_0x337a27,range:_0x597f97}=_0x8e2f78(_0x2ba389),_0x1c8fdf={'name':(_0x5832cd=(_0x1ad978=this[_0x53b767(0x277)]['getMember'](this['unitID'],_0x564c7b))==null?void 0x0:_0x1ad978['name'])!=null?_0x5832cd:_0x53b767(0x127),'range':this[_0x53b767(0x257)](_0x337a27,_0x597f97),'sheetID':_0x337a27,'color':this[_0x53b767(0x119)]['assignAColorForMemberID'](_0x564c7b),'selection':_0x2ba389},_0x1017b3=this[_0x53b767(0x156)];_0x1017b3[_0x53b767(0x17d)](_0x564c7b,_0x1c8fdf),this[_0x53b767(0x1cf)][_0x53b767(0x21a)](_0x1017b3);}['_onCursorDelete'](_0x3c82ac){const _0x3af0bb=_0x29a823,{memberID:_0x82b2ed}=_0x3c82ac[_0x3af0bb(0x2a8)],_0x89f474=this[_0x3af0bb(0x156)];_0x89f474[_0x3af0bb(0x27a)](_0x82b2ed),this[_0x3af0bb(0x1cf)][_0x3af0bb(0x21a)](_0x89f474);}['_getMergeRange'](_0x509aa8,_0x4cb0c0){const _0xb8ebef=_0x29a823;var _0x599543,_0x48c921;const _0x201eb0=(_0x48c921=(_0x599543=this['_univerInstanceService'][_0xb8ebef(0x1e6)](this[_0xb8ebef(0x153)]))==null?void 0x0:_0x599543[_0xb8ebef(0x168)](_0x509aa8))==null?void 0x0:_0x48c921[_0xb8ebef(0x24c)]();return(_0x201eb0==null?void 0x0:_0x201eb0[_0xb8ebef(0x28e)](_0x15a626=>_0x44108f['contains'](_0x15a626,_0x4cb0c0)))||_0x4cb0c0;}[_0x29a823(0x2c3)](){const _0xeddffc=_0x29a823,_0x4f6ef1=new _0x150851(),_0x282be0=vi(),_0x1c8731=()=>{_0x4f6ef1['dispose']();const _0x3e060e=(_0xf61669,_0x1d7b8e,_0xa711ad,_0x329110)=>{const _0x4fdbf6=_0x2d0d;let _0x4d5784=[];switch(_0xf61669['id']){case _0x4ed115[_0x4fdbf6(0x22d)]:{_0x4d5784=_0x5852f8(_0xf61669,_0x329110);break;}case _0x4ed115[_0x4fdbf6(0x1d0)]:{_0x4d5784=_0x5c7865(_0xf61669,_0x329110);break;}case _0x4ed115[_0x4fdbf6(0x191)]:{_0x4d5784=_0x3fa952(_0xf61669,_0x329110);break;}case _0x4ed115[_0x4fdbf6(0x2d2)]:{_0x4d5784=_0x540194(_0xf61669,_0x329110);break;}case _0x4ed115[_0x4fdbf6(0x1ea)]:{_0x4d5784=_0x4938b4(_0xf61669,_0x329110);break;}case _0x4ed115[_0x4fdbf6(0x2da)]:{_0x4d5784=_0x3d4d07(_0xf61669,_0x329110);break;}case _0x4ed115[_0x4fdbf6(0x1ed)]:{_0x4d5784=_0x461938(_0xf61669,_0x329110);break;}case _0x4ed115[_0x4fdbf6(0x195)]:{_0x4d5784=_0x11ad35(_0xf61669,_0x329110);break;}case _0x4ed115['RemoveRowCommandId']:{_0x4d5784=_0x5c038c(_0xf61669,_0x329110);break;}}const _0x1db0b3=_0x4db3c2(_0x4d5784,_0x329110),_0x32a75e=this[_0x4fdbf6(0x156)][_0x4fdbf6(0x1c0)](_0x1d7b8e);if(_0x32a75e&&_0x1db0b3){const _0x2d422b={..._0x32a75e,'range':_0x1db0b3};this[_0x4fdbf6(0x156)][_0x4fdbf6(0x17d)](_0x1d7b8e,_0x2d422b),_0x282be0(()=>{const _0xd4c613=_0x4fdbf6,_0x208f05=this[_0xd4c613(0x1f7)][_0xd4c613(0x262)](_0x1db0b3,_0x1429df=>(_0x208f05[_0xd4c613(0x181)](),_0x3e060e(_0x1429df,_0x1d7b8e,_0xa711ad,_0x1db0b3)));_0x4f6ef1[_0xd4c613(0x1ab)](_0x208f05);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x2de32c,_0x4a8892)=>{const _0x5f03fe=_0x2d0d,{range:_0xdca852,sheetID:_0x35849e}=_0x2de32c,_0x4e3f27=this['_refRangeService'][_0x5f03fe(0x262)](_0xdca852,_0x34cf89=>(_0x4e3f27[_0x5f03fe(0x181)](),_0x3e060e(_0x34cf89,_0x4a8892,_0x35849e,_0xdca852)));_0x4f6ef1[_0x5f03fe(0x1ab)](_0x4e3f27);});};this[_0xeddffc(0x1bf)](_0x528206(this[_0xeddffc(0x1cf)]['subscribe'](()=>{_0x1c8731();})));}[_0x29a823(0x141)](){const _0x5545ce=_0x29a823;var _0x105c96,_0x205e38;if(this[_0x5545ce(0x245)]=!0x0,((_0x105c96=this[_0x5545ce(0x19c)][_0x5545ce(0x1ca)]())==null?void 0x0:_0x105c96[_0x5545ce(0x167)]())!==this['unitID'])return;const _0x3d2332=(_0x205e38=this[_0x5545ce(0x1c7)]['get'](_0x140639)[_0x5545ce(0x246)]())==null?void 0x0:_0x205e38[0x0],_0x732bed=this['_univerInstanceService'][_0x5545ce(0x208)](_0x3e57d7[_0x5545ce(0x198)])['getActiveSheet']();_0x3d2332&&_0x732bed&&this[_0x5545ce(0x1b6)](_0x732bed[_0x5545ce(0x215)](),_0x3d2332);}[_0x29a823(0x18d)](){this['_online']=!0x1;}};Me=mi([x(0x2,_0x455d91(_0x44d15d)),x(0x3,_0x455d91(ke)),x(0x4,_0x455d91(_0x2ff0d8)),x(0x5,_0x11340f),x(0x6,_0x4398a9),x(0x7,_0x455d91(_0x290145))],Me);var pi=Object['getOwnPropertyDescriptor'],Ci=(_0x260db6,_0x5a0a0d,_0x2c1f31,_0x28735b)=>{const _0x50d19d=_0x29a823;for(var _0x542523=_0x28735b>0x1?void 0x0:_0x28735b?pi(_0x5a0a0d,_0x2c1f31):_0x5a0a0d,_0x5d39aa=_0x260db6[_0x50d19d(0x131)]-0x1,_0x542406;_0x5d39aa>=0x0;_0x5d39aa--)(_0x542406=_0x260db6[_0x5d39aa])&&(_0x542523=_0x542406(_0x542523)||_0x542523);return _0x542523;},Se=(_0x3a2b98,_0x2ccabe)=>(_0x1c5458,_0x1a9399)=>_0x2ccabe(_0x1c5458,_0x1a9399,_0x3a2b98);let H=class extends _0x5b0a30{constructor(_0x2e65b0,_0x55c892,_0xc4785c){const _0x36f521=_0x29a823;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new _0x15f4cf()),(this[_0x36f521(0x19c)]=_0x2e65b0,this[_0x36f521(0x1c7)]=_0x55c892,this[_0x36f521(0x14d)]=_0xc4785c,this[_0x36f521(0x282)]());}[_0x29a823(0x181)](){const _0x20c968=_0x29a823;super[_0x20c968(0x181)](),this[_0x20c968(0x285)][_0x20c968(0x13b)](),this[_0x20c968(0x20a)]['forEach'](_0x30d32f=>_0x30d32f[_0x20c968(0x181)]());}[_0x29a823(0x239)](_0x519658){const _0x4bb31e=_0x29a823;return this[_0x4bb31e(0x20a)][_0x4bb31e(0x1dd)](_0x519658)?this[_0x4bb31e(0x20a)][_0x4bb31e(0x1c0)](_0x519658)[_0x4bb31e(0x186)]:this['_entityInit$'][_0x4bb31e(0x1bb)](_0x2a6a4f(_0x47b757=>_0x47b757[_0x4bb31e(0x153)]===_0x519658),_0x513abf(_0x2d23ae=>_0x2d23ae['cursorInfo$']));}[_0x29a823(0x282)](){const _0x5acd89=_0x29a823;this['_univerInstanceService'][_0x5acd89(0x1d8)](_0x3e57d7['UNIVER_SHEET'])[_0x5acd89(0x1bb)](_0x3d7f41(this[_0x5acd89(0x266)]))['subscribe'](async _0x1af9fa=>{const _0x2a898f=_0x5acd89,_0x3ea32f=_0x1af9fa['getUnitId'](),_0x432b09=await this['_startSheetCollabCursor'](_0x3ea32f);this[_0x2a898f(0x285)]['next'](_0x432b09),this['_entities'][_0x2a898f(0x17d)](_0x3ea32f,_0x432b09);}),this[_0x5acd89(0x19c)][_0x5acd89(0x1d8)](_0x3e57d7[_0x5acd89(0x265)])[_0x5acd89(0x1bb)](_0x3d7f41(this[_0x5acd89(0x266)]))['pipe'](_0x2a6a4f(_0x28c1d2=>!_0x28c1d2[_0x5acd89(0x167)]()['startsWith']('__')))[_0x5acd89(0x1a9)](async _0x3c255f=>{const _0x5a0c5a=_0x5acd89,_0x30e78b=_0x3c255f[_0x5a0c5a(0x167)](),_0x27309b=await this['_startDocCollabCursor'](_0x30e78b);this['_entityInit$'][_0x5a0c5a(0x21a)](_0x27309b),this[_0x5a0c5a(0x20a)][_0x5a0c5a(0x17d)](_0x30e78b,_0x27309b);}),_0x2bf511(this['_univerInstanceService'][_0x5acd89(0x172)](_0x3e57d7[_0x5acd89(0x265)]),this[_0x5acd89(0x19c)][_0x5acd89(0x172)](_0x3e57d7['UNIVER_SHEET']))['pipe'](_0x3d7f41(this['dispose$']))['subscribe'](_0x581f79=>{const _0x42f261=_0x5acd89,_0xda3116=_0x581f79[_0x42f261(0x167)](),_0x1af61c=this['_entities']['get'](_0xda3116);_0x1af61c&&(_0x1af61c[_0x42f261(0x181)](),this[_0x42f261(0x20a)][_0x42f261(0x27a)](_0xda3116));});}async['_startSheetCollabCursor'](_0x5df312){const _0x11b9af=_0x29a823,_0x36d9c4=await this[_0x11b9af(0x14d)][_0x11b9af(0x184)](_0x5df312),_0x31ed89=this[_0x11b9af(0x1c7)]['createInstance'](Me,_0x5df312,_0x36d9c4);return _0x31ed89[_0x11b9af(0x24f)](),_0x31ed89;}async['_startDocCollabCursor'](_0x5a73f5){const _0x99daa3=_0x29a823,_0x24c316=await this[_0x99daa3(0x14d)][_0x99daa3(0x184)](_0x5a73f5),_0x8f4141=this[_0x99daa3(0x1c7)][_0x99daa3(0x220)](Ue,_0x5a73f5,_0x24c316);return _0x8f4141[_0x99daa3(0x24f)](),_0x8f4141;}};H=Ci([Se(0x0,_0x11340f),Se(0x1,_0x455d91(_0x44d15d)),Se(0x2,_0x455d91(_0xf66e31))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x26c4b5,_0x5d4633){const _0x151223=_0x29a823;let {radius:_0x4dd029,width:_0xf1d84c,height:_0x231608}=_0x5d4633;_0x4dd029=_0x4dd029!=null?_0x4dd029:0x0,_0xf1d84c=_0xf1d84c!=null?_0xf1d84c:0x1e,_0x231608=_0x231608!=null?_0x231608:0x1e;let _0x1a8668=0x0,_0xe58f7c=0x0,_0x252b62=0x0;_0x1a8668=_0xe58f7c=_0x252b62=Math[_0x151223(0x1fb)](_0x4dd029,_0xf1d84c/0x2,_0x231608/0x2),_0x26c4b5[_0x151223(0x12f)](),_0x26c4b5['moveTo'](_0x1a8668,0x0),_0x26c4b5[_0x151223(0x21d)](_0xf1d84c-_0xe58f7c,0x0),_0x26c4b5[_0x151223(0x214)](_0xf1d84c-_0xe58f7c,_0xe58f7c,_0xe58f7c,Math['PI']*0x3/0x2,0x0,!0x1),_0x26c4b5[_0x151223(0x21d)](_0xf1d84c,_0x231608-_0x252b62),_0x26c4b5['arc'](_0xf1d84c-_0x252b62,_0x231608-_0x252b62,_0x252b62,0x0,Math['PI']/0x2,!0x1),_0x26c4b5['lineTo'](0x0,_0x231608),_0x26c4b5[_0x151223(0x21d)](0x0,_0x1a8668),_0x26c4b5[_0x151223(0x214)](_0x1a8668,_0x1a8668,_0x1a8668,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x26c4b5['closePath'](),_0x5d4633[_0x151223(0x22f)]&&(_0x26c4b5[_0x151223(0x16e)](),_0x26c4b5[_0x151223(0x274)]=_0x5d4633[_0x151223(0x22f)],_0x5d4633['fillRule']===_0x151223(0x166)?_0x26c4b5[_0x151223(0x22f)](_0x151223(0x166)):_0x26c4b5['fill'](),_0x26c4b5[_0x151223(0x211)]());}class he extends _0x8a366b{constructor(_0x57e5cc,_0x203187){const _0x57290b=_0x29a823;super(_0x57e5cc,_0x203187),_(this,_0x57290b(0x11a)),_(this,'text'),(this[_0x57290b(0x11a)]=_0x203187==null?void 0x0:_0x203187[_0x57290b(0x11a)],this[_0x57290b(0x2c8)]=_0x203187==null?void 0x0:_0x203187[_0x57290b(0x2c8)]);}static['drawWith'](_0x4ae2d9,_0x47c89a){const _0x1e7449=_0x29a823,{text:_0x198ab9,color:_0x43a6b1}=_0x47c89a;_0x4ae2d9['save'](),_0x4ae2d9[_0x1e7449(0x250)]=_0x1e7449(0x16d);const _0x5336bc=_0x4ae2d9[_0x1e7449(0x199)](_0x198ab9)['width'],_0x5951e3=Math['min'](_0x5336bc+0x2*me,Qe);Oi(_0x4ae2d9,{'height':ee,'radius':0x4,'width':_0x5951e3,'fill':_0x43a6b1}),_0x4ae2d9['fillStyle']='#FFF';const _0x414da4=me,_0xa79ac2=ee-Ei,_0x52819=Qe-0x2*me;if(_0x5336bc>_0x52819){let _0x21e469='',_0x4bbfca=0x0;for(const _0x3402ed of _0x198ab9){const _0x18f752=_0x4ae2d9[_0x1e7449(0x199)](_0x3402ed)[_0x1e7449(0x251)];if(_0x4bbfca+_0x18f752<=_0x52819-_0x4ae2d9[_0x1e7449(0x199)](_0x1e7449(0x1fc))['width'])_0x21e469+=_0x3402ed,_0x4bbfca+=_0x18f752;else{_0x21e469+=_0x1e7449(0x1fc);break;}}_0x4ae2d9[_0x1e7449(0x27d)](_0x21e469,_0x414da4,_0xa79ac2);}else _0x4ae2d9[_0x1e7449(0x27d)](_0x198ab9,_0x414da4,_0xa79ac2);_0x4ae2d9[_0x1e7449(0x211)]();}['_draw'](_0x1251cd){he['drawWith'](_0x1251cd,this);}}const Ie=_0x29a823(0x192),bi=_0x29a823(0x2b9),Ti='collab-rect-range-',X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x29a823(0x2fa);class qe{constructor(_0x257b2a,_0x2418cc,_0x5705fa,_0x2f8fda){const _0x98e896=_0x29a823;_(this,_0x98e896(0x235),[]),_(this,_0x98e896(0x18e),null),_(this,'_textBubble',null),_(this,_0x98e896(0x25e),null),_(this,'_hideTimer',null),_(this,_0x98e896(0x1b7),null),(this['_cursor']=_0x257b2a,this[_0x98e896(0x268)]=_0x2418cc,this[_0x98e896(0x1bc)]=_0x5705fa,this['_document']=_0x2f8fda,this[_0x98e896(0x206)]());}set['_hover'](_0x3c4bb7){const _0x1377ab=_0x29a823;_0x3c4bb7?(this[_0x1377ab(0x25e)]&&this[_0x1377ab(0x25e)]['hide'](),this[_0x1377ab(0x1cd)]&&this['_textBubble'][_0x1377ab(0x1dc)]()):(this['_anchorDot']&&this[_0x1377ab(0x25e)][_0x1377ab(0x1dc)](),this[_0x1377ab(0x1cd)]&&this[_0x1377ab(0x1cd)]['hide']());}[_0x29a823(0x181)](){const _0x17e444=_0x29a823;for(const _0x192883 of this['_shapes'])_0x192883[_0x17e444(0x181)]();this[_0x17e444(0x1cd)]&&this[_0x17e444(0x1cd)][_0x17e444(0x181)](),this[_0x17e444(0x25e)]&&this['_anchorDot']['dispose'](),this[_0x17e444(0x18e)]&&this[_0x17e444(0x18e)][_0x17e444(0x181)](),this[_0x17e444(0x1b7)]&&this['_eventUnsubscribe']();}['_render'](){const _0x35f890=_0x29a823;var _0x247c3b;const {_docSkeleton:_0x2338fb,_document:_0xefa2d6}=this,{color:_0x53a69b,name:_0x1ba13e,ranges:_0x3e238f}=this['_cursor'],_0x201e55=_0xefa2d6['getOffsetConfig'](),{docsLeft:_0x157ab1,docsTop:_0x42064c}=_0x201e55,_0x33207f=new _0xa3e32(_0x201e55,_0x2338fb);for(const {startOffset:_0x570f0c,endOffset:_0x939875,rangeType:_0x5d4131,segmentId:_0x4c92f1,segmentPage:_0x5ccb,collapsed:_0x1a424,isActive:_0x24e9a0}of _0x3e238f){const _0x4a20f1=_0x2338fb[_0x35f890(0x12d)](_0x570f0c,!0x0,_0x4c92f1,_0x5ccb);let _0x5c7c4a=_0x2338fb[_0x35f890(0x12d)](_0x939875,!0x0,_0x4c92f1,_0x5ccb);if(_0x5c7c4a==null&&(_0x5c7c4a=_0x2338fb[_0x35f890(0x12d)](_0x939875-0x1,!0x1,_0x4c92f1,_0x5ccb)),_0x24e9a0){const {contentBoxPointGroup:_0x3ef762}=_0x33207f[_0x35f890(0x11e)](_0x5c7c4a,_0x5c7c4a);if(_0x3ef762[_0x35f890(0x131)]===0x0)continue;this['_drawAnchor'](_0x53a69b,_0x3ef762,_0x157ab1,_0x42064c,_0x1ba13e),this[_0x35f890(0x1b7)]=this[_0x35f890(0x2a1)]();}if(_0x4a20f1&&_0x5c7c4a){if(_0x5d4131===_0x3752d4[_0x35f890(0x17c)]){const _0x534d10=new _0x4ea429(_0x201e55,_0x2338fb),{pointGroup:_0x1b4fd0}=(_0x247c3b=_0x534d10['getRangePointData'](_0x4a20f1,_0x5c7c4a))!=null?_0x247c3b:{};if(_0x1b4fd0==null||_0x1b4fd0[_0x35f890(0x131)]===0x0)continue;this[_0x35f890(0x2f0)](_0x53a69b,_0x1b4fd0,_0x157ab1,_0x42064c);}else{if(!_0x1a424){const {borderBoxPointGroup:_0x1ed222}=_0x33207f['getRangePointData'](_0x4a20f1,_0x5c7c4a);if(_0x1ed222[_0x35f890(0x131)]===0x0)continue;this[_0x35f890(0x1de)](_0x53a69b,_0x1ed222,_0x157ab1,_0x42064c);}}}}}[_0x29a823(0x18a)](_0x26ede9,_0x17c2a1,_0x3e8ba0,_0x2d7c59,_0x23cd47){const _0x18fdc3=_0x29a823,_0x5266ae=this[_0x18fdc3(0x1bd)](_0x17c2a1),{left:_0x3d8ccc,top:_0x6b79a2,height:_0x37ed34}=_0x5266ae,_0x49e1b8=this[_0x18fdc3(0x286)](),_0x481814=Di/_0x49e1b8,_0x2470b2=new _0x464272(Ie+_0x4a49e5[_0x18fdc3(0x144)](X),{'left':_0x3d8ccc+_0x3e8ba0-_0x481814,'top':_0x6b79a2+_0x2d7c59,'height':_0x37ed34,'width':Ri,'fill':_0x26ede9||_0x33c28b(_0x186131[_0x18fdc3(0x1e2)],0x0),'strokeWidth':_0x481814,'stroke':Ni,'evented':!0x0});this[_0x18fdc3(0x18e)]=_0x2470b2,this[_0x18fdc3(0x268)]['addObject'](_0x2470b2,_0x47c066);const _0x5b4b4b=new _0x464272(Ie+_0x4a49e5[_0x18fdc3(0x144)](X),{'left':_0x3d8ccc+_0x3e8ba0-_0x481814,'top':_0x6b79a2+_0x2d7c59-ge/0x2,'height':ge,'width':ge,'fill':_0x26ede9||_0x33c28b(_0x186131[_0x18fdc3(0x1e2)],0x0),'strokeWidth':0x0,'stroke':_0x26ede9||_0x33c28b(_0x186131['black'],0x0),'evented':!0x1});this[_0x18fdc3(0x25e)]=_0x5b4b4b,this[_0x18fdc3(0x268)][_0x18fdc3(0x283)](_0x5b4b4b,_0x47c066);const _0x231e57=new he(Ie+_0x4a49e5['generateRandomId'](X),{'left':_0x3d8ccc+_0x3e8ba0-_0x481814,'top':_0x6b79a2+_0x2d7c59-ee,'text':_0x23cd47,'color':_0x26ede9});this[_0x18fdc3(0x1cd)]=_0x231e57,this[_0x18fdc3(0x268)][_0x18fdc3(0x283)](_0x231e57,_0x47c066),this['_hover']=!0x1;}[_0x29a823(0x2a1)](){const _0xdcaed0=_0x29a823,_0x47270f=this['_anchor'][_0xdcaed0(0x22b)][_0xdcaed0(0x2ff)](()=>{this['_hover']=!0x0;}),_0xc541fd=this[_0xdcaed0(0x18e)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x2b1782=_0xdcaed0;this[_0x2b1782(0x254)]&&clearTimeout(this['_hideTimer']),this[_0x2b1782(0x254)]=setTimeout(()=>{const _0x1ebe24=_0x2b1782;this[_0x1ebe24(0x1fa)]=!0x1;},0x7d0);});return()=>{const _0x4fb95b=_0xdcaed0;_0x47270f[_0x4fb95b(0x16c)](),_0xc541fd[_0x4fb95b(0x16c)]();};}['_drawTextRange'](_0x2095cb,_0x5c9537,_0x2a8196,_0x4cff2e){const _0x33ceea=_0x29a823,_0x29281f=new _0x484438(_0x2095cb)[_0x33ceea(0x280)](0.2)[_0x33ceea(0x17e)](),_0x1a16cc=new _0x47e5e0(bi+_0x4a49e5[_0x33ceea(0x144)](X),{'pointsGroup':_0x5c9537,'fill':_0x29281f||_0x33c28b(_0x186131[_0x33ceea(0x1e2)],0.2),'left':_0x2a8196,'top':_0x4cff2e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x33ceea(0x14f)](_0x1a16cc),this[_0x33ceea(0x268)]['addObject'](_0x1a16cc,_0x47c066);}[_0x29a823(0x2f0)](_0x299bc1,_0x4df311,_0x195167,_0x165c57){const _0x24f066=_0x29a823,_0x57bcf4=new _0x484438(_0x299bc1)[_0x24f066(0x280)](0.2)['toRgbString'](),_0x5bb95c=new _0x47e5e0(Ti+_0x4a49e5[_0x24f066(0x144)](X),{'pointsGroup':_0x4df311,'fill':_0x57bcf4||_0x33c28b(_0x186131['black'],0.2),'left':_0x195167,'top':_0x165c57,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x24f066(0x14f)](_0x5bb95c),this[_0x24f066(0x268)][_0x24f066(0x283)](_0x5bb95c,_0x47c066);}['_getAnchorBounding'](_0x31ceac){const _0x50ad1d=_0x31ceac[0x0],_0x4b8aab=_0x50ad1d[0x0],_0x252d9f=_0x50ad1d[0x2],{x:_0x1f00ab,y:_0x5bce20}=_0x4b8aab,{x:_0x479b1f,y:_0x3eb971}=_0x252d9f;return{'left':_0x1f00ab,'top':_0x5bce20,'width':_0x479b1f-_0x1f00ab,'height':_0x3eb971-_0x5bce20};}[_0x29a823(0x286)](){const _0x33e4b6=_0x29a823,{scaleX:_0x1e23db,scaleY:_0x1c0eef}=this[_0x33e4b6(0x268)]['getAncestorScale']();return Math[_0x33e4b6(0x26e)](_0x1e23db,_0x1c0eef);}}var Ui=Object[_0x29a823(0x147)],Mi=(_0x13bca2,_0x1eaa31,_0x51734b,_0x355023)=>{for(var _0x159070=_0x355023>0x1?void 0x0:_0x355023?Ui(_0x1eaa31,_0x51734b):_0x1eaa31,_0x31d152=_0x13bca2['length']-0x1,_0x84e2c1;_0x31d152>=0x0;_0x31d152--)(_0x84e2c1=_0x13bca2[_0x31d152])&&(_0x159070=_0x84e2c1(_0x159070)||_0x159070);return _0x159070;},Z=(_0x2f446b,_0x5200b1)=>(_0x46fafa,_0x34108e)=>_0x5200b1(_0x46fafa,_0x34108e,_0x2f446b);let we=class extends _0x5b0a30{constructor(_0x2aaf5b,_0x17f24a,_0x3c25dd,_0x967b7b,_0x4a8aef){const _0x4e666b=_0x29a823;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this['_context']=_0x2aaf5b,this[_0x4e666b(0x18c)]=_0x17f24a,this[_0x4e666b(0x202)]=_0x3c25dd,this[_0x4e666b(0x15f)]=_0x967b7b,this[_0x4e666b(0x21b)]=_0x4a8aef,this['_init']());}[_0x29a823(0x282)](){const _0x23c655=_0x29a823,_0x4eae87=this[_0x23c655(0x19f)]['unitId'],_0x3774aa=this[_0x23c655(0x18c)];this[_0x23c655(0x1bf)](_0x472c44([this[_0x23c655(0x202)][_0x23c655(0x239)](_0x4eae87),this['_themeService']['currentTheme$']])[_0x23c655(0x1bb)](_0x40c94b(([_0x53f313,_0x180a4c])=>({'skeleton':_0x3774aa[_0x23c655(0x1f5)](),'cursors':[..._0x53f313[_0x23c655(0x2b6)]()][_0x23c655(0x1ae)](_0x41ecd3=>({..._0x41ecd3,'color':this['_themeService'][_0x23c655(0x2b4)](_0x41ecd3[_0x23c655(0x11a)])}))})))[_0x23c655(0x1a9)](_0x31decd=>{const _0x34d622=_0x23c655;if(this[_0x34d622(0x16f)](),_0x31decd){const {skeleton:_0x190917,cursors:_0xbf01c3}=_0x31decd;this['_updateCollabCursors'](_0x190917,_0xbf01c3);}})),this[_0x23c655(0x1eb)](),this['_initCommandExecutedListener']();}[_0x29a823(0x298)](_0x4d07ce,_0x37075e){const _0x7b9161=_0x29a823,{scene:_0x366306,mainComponent:_0x599579}=this[_0x7b9161(0x19f)],_0x453ac2=_0x37075e[_0x7b9161(0x207)](_0x409bd4=>new qe(_0x409bd4,_0x366306,_0x4d07ce,_0x599579));this[_0x7b9161(0x1fd)]=_0x453ac2,this[_0x7b9161(0x223)]=_0x37075e;}['_refreshCollabCursors'](){const _0x5772f4=_0x29a823;this['_removeCollabCursors']();const {scene:_0xb2f187,mainComponent:_0x4df15b}=this['_context'],_0x40361a=this['_docSkeletonManagerService'][_0x5772f4(0x1f5)](),_0xdc9b22=this[_0x5772f4(0x223)][_0x5772f4(0x207)](_0x4df648=>new qe(_0x4df648,_0xb2f187,_0x40361a,_0x4df15b));this[_0x5772f4(0x1fd)]=_0xdc9b22;}['_removeCollabCursors'](){const _0x3ee85e=_0x29a823;this[_0x3ee85e(0x1fd)]['forEach'](_0x43ec82=>_0x43ec82[_0x3ee85e(0x181)]()),this[_0x3ee85e(0x1fd)]=[];}[_0x29a823(0x301)](){const _0x4be086=_0x29a823,_0x4f57ab=[_0x5a7e69['id']];this[_0x4be086(0x1bf)](this[_0x4be086(0x15f)][_0x4be086(0x132)](_0x5257e2=>{const _0x5cfdc7=_0x4be086;_0x4f57ab[_0x5cfdc7(0x1ad)](_0x5257e2['id'])&&_0x5257e2[_0x5cfdc7(0x15a)][_0x5cfdc7(0x2d5)]===this['_context']['unitId']&&this[_0x5cfdc7(0x13c)]();}));}['_initResize'](){const _0x40da49=_0x29a823;this['disposeWithMe'](_0x2c516c(this[_0x40da49(0x19f)][_0x40da49(0x1a6)][_0x40da49(0x128)])[_0x40da49(0x1bb)](_0x3bbf03(_0x40eced=>_0x40eced['type']===_0x4b4245[_0x40da49(0x123)]),_0x307166(0x10))[_0x40da49(0x1a9)](()=>{const _0x4275c4=_0x40da49;this[_0x4275c4(0x13c)]();}));}};we=Mi([Z(0x1,_0x455d91(_0xf44655)),Z(0x2,_0x455d91(H)),Z(0x3,_0x4398a9),Z(0x4,_0x455d91(_0x526cce))],we);const wi=0x1,Pi=1.5;class Li extends _0x8a366b{constructor(_0x57f672,_0x5281b5){const _0x2e9719=_0x29a823;super(_0x57f672,_0x5281b5),_(this,_0x2e9719(0x1b4)),_(this,_0x2e9719(0x20b),!0x1),_(this,_0x2e9719(0x216)),_(this,_0x2e9719(0x23c),''),_(this,_0x2e9719(0x28b),_0x2e9719(0x175)),_(this,_0x2e9719(0x2b0)),(_0x5281b5&&this['setShapeProps'](_0x5281b5),this[_0x2e9719(0x22b)]['subscribeEvent'](()=>this[_0x2e9719(0x145)]({'hovered':!0x0})),this[_0x2e9719(0x2d9)][_0x2e9719(0x2ff)](()=>this[_0x2e9719(0x145)]({'hovered':!0x1})));}[_0x29a823(0x145)](_0x1fdb4f){const _0x193120=_0x29a823;var _0x45d135,_0x499f2c,_0x13eb2e,_0x1a6871,_0x54e612,_0x37dd65;this[_0x193120(0x1b4)]=(_0x45d135=_0x1fdb4f[_0x193120(0x11a)])!=null?_0x45d135:this[_0x193120(0x1b4)],this[_0x193120(0x20b)]=(_0x499f2c=_0x1fdb4f['hovered'])!=null?_0x499f2c:this[_0x193120(0x20b)],this[_0x193120(0x216)]=(_0x13eb2e=_0x1fdb4f[_0x193120(0x1ef)])!=null?_0x13eb2e:this['_range'],this[_0x193120(0x23c)]=(_0x1a6871=_0x1fdb4f['name'])!=null?_0x1a6871:this[_0x193120(0x23c)],this[_0x193120(0x28b)]=(_0x54e612=_0x1fdb4f['labelPosition'])!=null?_0x54e612:this[_0x193120(0x28b)],this['_backgroundColor']=(_0x37dd65=_0x1fdb4f['backgroundColor'])!=null?_0x37dd65:this[_0x193120(0x2b0)],this[_0x193120(0x219)]({'width':_0x1fdb4f[_0x193120(0x251)],'height':_0x1fdb4f[_0x193120(0x121)]});}[_0x29a823(0x188)](_0x134507){const _0x9feafc=_0x29a823,{row:_0x202e33,column:_0x3a4d45}=_0x134507;if(_0x202e33>=this[_0x9feafc(0x216)][_0x9feafc(0x118)]&&_0x202e33<=this['_range'][_0x9feafc(0x1b5)]&&_0x3a4d45>=this['_range']['startColumn']&&_0x3a4d45<=this[_0x9feafc(0x216)][_0x9feafc(0x24e)]){this[_0x9feafc(0x145)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x26c022){return!0x1;}[_0x29a823(0x151)](_0x2e3b81){const _0x52454a=_0x29a823;_0x464272[_0x52454a(0x2e5)](_0x2e3b81,{'width':this['width'],'height':this[_0x52454a(0x121)],'strokeWidth':Pi,'stroke':this[_0x52454a(0x1b4)],'evented':!0x1,'fill':this[_0x52454a(0x2b0)]}),this['_hovered']&&(_0x2e3b81['save'](),_0x2e3b81[_0x52454a(0x126)](0x1,0x0,0x0,0x1,this[_0x52454a(0x251)],this[_0x52454a(0x28b)]===_0x52454a(0x2f7)?0x0:-0x14),he[_0x52454a(0x2e5)](_0x2e3b81,{'text':this[_0x52454a(0x23c)],'color':this[_0x52454a(0x1b4)]}),_0x2e3b81['restore']());}}var Ai=Object[_0x29a823(0x147)],yi=(_0x3b0563,_0x3f8284,_0x2bb856,_0x35583f)=>{const _0x30b735=_0x29a823;for(var _0x59d5a7=_0x35583f>0x1?void 0x0:_0x35583f?Ai(_0x3f8284,_0x2bb856):_0x3f8284,_0x57ae07=_0x3b0563[_0x30b735(0x131)]-0x1,_0x184033;_0x57ae07>=0x0;_0x57ae07--)(_0x184033=_0x3b0563[_0x57ae07])&&(_0x59d5a7=_0x184033(_0x59d5a7)||_0x59d5a7);return _0x59d5a7;},ve=(_0x581679,_0x32f8ff)=>(_0x9ccb18,_0x131e69)=>_0x32f8ff(_0x9ccb18,_0x131e69,_0x581679);const $i=0x1389;let Pe=class extends _0x5b0a30{constructor(_0x133287,_0x332015,_0x18b37c,_0x4ab7a6){const _0x376b85=_0x29a823;super(),_(this,_0x376b85(0x223),new Set()),_(this,'_lastPointer',null),(this[_0x376b85(0x19f)]=_0x133287,this[_0x376b85(0x19a)]=_0x332015,this[_0x376b85(0x202)]=_0x18b37c,this[_0x376b85(0x21b)]=_0x4ab7a6,this[_0x376b85(0x282)]());}[_0x29a823(0x282)](){const _0x52f4d0=_0x29a823;this[_0x52f4d0(0x19a)][_0x52f4d0(0x114)][_0x52f4d0(0x1bb)](_0x336390(this[_0x52f4d0(0x266)]),_0x3c2c37(_0x10cd80=>{const _0x4496b0=_0x52f4d0;if(_0x10cd80){const _0x20bdf2=_0x10cd80[_0x4496b0(0x23a)];return _0x472c44(this[_0x4496b0(0x202)]['getCollabCursors$'](this['_context'][_0x4496b0(0x2d5)]),this[_0x4496b0(0x21b)][_0x4496b0(0x1e4)])[_0x4496b0(0x1bb)](_0x40c94b(([_0x302f8b,_0x286b80])=>{const _0x5b85f9=new Map();return _0x302f8b['forEach']((_0x217b2b,_0x37b29a)=>{const _0x5564e8=_0x2d0d;if(_0x217b2b[_0x5564e8(0x2ca)]===_0x20bdf2){const _0x3b670c={..._0x217b2b};_0x3b670c['color']=this[_0x5564e8(0x21b)]['getColorFromTheme'](_0x217b2b[_0x5564e8(0x11a)]),_0x5b85f9['set'](_0x37b29a,_0x3b670c);}}),{'skeleton':_0x10cd80,'cursors':_0x5b85f9};}));}return _0x539c3b({'skeleton':null,'cursors':new Map()});}))[_0x52f4d0(0x1a9)](({skeleton:_0x63c646,cursors:_0x2e49ea})=>{const _0x2ea2aa=_0x52f4d0;this['_removeCollabCursors'](),_0x63c646&&this[_0x2ea2aa(0x298)](_0x63c646,_0x2e49ea);}),this[_0x52f4d0(0x19a)][_0x52f4d0(0x114)][_0x52f4d0(0x1a9)](_0x207a58=>{const _0x16475c=_0x52f4d0;if(_0x207a58==null)return;const {skeleton:_0x4244b8}=_0x207a58,{scene:_0x345ae1}=this['_context'];_0x345ae1[_0x16475c(0x21c)][_0x16475c(0x2ff)](_0x10150e(_0x1cfd77=>{const _0x173dbe=_0x16475c;var _0x5ea34e,_0x2220f1;const {offsetX:_0x23e759,offsetY:_0x5d6915}=_0x1cfd77,{x:_0x25229b,y:_0x4601e8}=_0x345ae1[_0x173dbe(0x2ee)](_0x40bec2[_0x173dbe(0x1d9)]([_0x23e759,_0x5d6915])),{scaleX:_0x266fe6,scaleY:_0x31d067}=_0x345ae1[_0x173dbe(0x1fe)](),_0x18c020=_0x345ae1[_0x173dbe(0x269)](_0x11dd22['VIEW_MAIN']),_0x495291=_0x345ae1['getVpScrollXYInfoByPosToVp'](_0x40bec2[_0x173dbe(0x1d9)]([_0x25229b,_0x4601e8]),_0x18c020),_0x55566f=_0x4244b8[_0x173dbe(0x177)](_0x23e759,_0x5d6915,_0x266fe6,_0x31d067,_0x495291);((_0x5ea34e=this[_0x173dbe(0x1d6)])==null?void 0x0:_0x5ea34e[_0x173dbe(0x1e8)])===_0x55566f[_0x173dbe(0x1e8)]&&((_0x2220f1=this[_0x173dbe(0x1d6)])==null?void 0x0:_0x2220f1[_0x173dbe(0x2fb)])===_0x55566f['row']||this[_0x173dbe(0x223)][_0x173dbe(0x130)](_0x2d9334=>{_0x2d9334['onMouseMove'](_0x55566f);});},0x64));});}[_0x29a823(0x298)](_0x21eddb,_0x23c0ed){const _0x1c5ea2=_0x29a823;var _0x150f69;const _0xa6c1a2=(_0x150f69=this[_0x1c5ea2(0x19a)][_0x1c5ea2(0x122)]())==null?void 0x0:_0x150f69[_0x1c5ea2(0x25d)];if(!_0xa6c1a2)return;const _0x230343=this['_getSheetObject']();if(!_0x230343)return;this[_0x1c5ea2(0x223)][_0x1c5ea2(0x130)](_0x292fe4=>{_0x292fe4['makeDirty']();});const {scene:_0x48efba}=_0x230343,_0x9eaca2=xi(Array[_0x1c5ea2(0x19b)](_0x23c0ed[_0x1c5ea2(0x2b6)]()))[_0x1c5ea2(0x207)](_0x5a90ee=>{const _0x4bb986=_0x1c5ea2,{color:_0x4d8edd,range:_0x30d54e,name:_0x5706a0,selection:_0x5549f5,sheetID:_0x54dac3}=_0x5a90ee,{startColumn:_0x4c478d,startRow:_0x31316c,endColumn:_0x433e1b,endRow:_0x411535}=_0x30d54e,_0x230474=_0x457124(_0x31316c,_0x4c478d,_0x48efba,_0xa6c1a2),_0x3da78d=_0x457124(_0x411535,_0x433e1b,_0x48efba,_0xa6c1a2),{columnHeaderHeightAndMarginTop:_0x331886}=_0xa6c1a2,{startX:_0x2e1e73,startY:_0x4c4b1f}=_0x230474,{endX:_0x122e9f,endY:_0x38a124}=_0x3da78d,_0x106701=_0x122e9f-_0x2e1e73,_0xf49517=_0x38a124-_0x4c4b1f,_0x507124={'labelPosition':_0x4c4b1f-_0x331886>=ee?_0x4bb986(0x175):_0x4bb986(0x2f7),'sheetID':_0x54dac3,'range':_0x30d54e,'color':_0x4d8edd,'name':_0x5706a0,'selection':_0x5549f5,'left':_0x2e1e73,'top':_0x4c4b1f,'width':_0x106701,'height':_0xf49517,'evented':!0x1,'zIndex':$i};return new Li(_0x5706a0,_0x507124);});_0x48efba['addObjects'](_0x9eaca2,wi),this['_cursors']=new Set(_0x9eaca2);}[_0x29a823(0x16f)](){const _0x60d93b=_0x29a823;var _0x1f341d;(_0x1f341d=this[_0x60d93b(0x223)])==null||_0x1f341d['forEach'](_0x53ad3f=>_0x53ad3f[_0x60d93b(0x181)]());}[_0x29a823(0x2fe)](){const _0x28d944=_0x29a823;return _0x412eda(this[_0x28d944(0x19f)][_0x28d944(0x238)],this['_context']);}};Pe=yi([ve(0x1,_0x455d91(_0x58a1ab)),ve(0x2,_0x455d91(H)),ve(0x3,_0x455d91(_0x526cce))],Pe);function xi(_0x5227dc){const _0x4593bd=_0x29a823,_0x3cee14=new Map();return _0x5227dc[_0x4593bd(0x130)](_0x2d58aa=>{const _0x184fc0=_0x4593bd;if(_0x3cee14[_0x184fc0(0x1dd)](_0x2d58aa['selection'])){const _0x31ddb8=_0x3cee14['get'](_0x2d58aa[_0x184fc0(0x2d1)]);_0x31ddb8[_0x184fc0(0x22c)]+=',\x20'+_0x2d58aa[_0x184fc0(0x22c)];}else _0x3cee14[_0x184fc0(0x17d)](_0x2d58aa[_0x184fc0(0x2d1)],_0x2d58aa);}),Array['from'](_0x3cee14['values']());}var v=function(){const _0x152a2d=_0x29a823;return v=Object[_0x152a2d(0x2d0)]||function(_0x4c8074){const _0x2337dd=_0x152a2d;for(var _0x3e5ab8,_0x4c53f9=0x1,_0x152a1c=arguments[_0x2337dd(0x131)];_0x4c53f9<_0x152a1c;_0x4c53f9++){_0x3e5ab8=arguments[_0x4c53f9];for(var _0x30b7a6 in _0x3e5ab8)Object[_0x2337dd(0x1b1)][_0x2337dd(0x2dd)][_0x2337dd(0x29f)](_0x3e5ab8,_0x30b7a6)&&(_0x4c8074[_0x30b7a6]=_0x3e5ab8[_0x30b7a6]);}return _0x4c8074;},v[_0x152a2d(0x135)](this,arguments);},Bi=function(_0x27a7b8,_0x20afdb){const _0x302693=_0x29a823;var _0x11ec5c={};for(var _0x4c6124 in _0x27a7b8)Object['prototype'][_0x302693(0x2dd)][_0x302693(0x29f)](_0x27a7b8,_0x4c6124)&&_0x20afdb[_0x302693(0x209)](_0x4c6124)<0x0&&(_0x11ec5c[_0x4c6124]=_0x27a7b8[_0x4c6124]);if(_0x27a7b8!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x58fc71=0x0,_0x4c6124=Object['getOwnPropertySymbols'](_0x27a7b8);_0x58fc71<_0x4c6124[_0x302693(0x131)];_0x58fc71++)_0x20afdb[_0x302693(0x209)](_0x4c6124[_0x58fc71])<0x0&&Object[_0x302693(0x1b1)][_0x302693(0x161)][_0x302693(0x29f)](_0x27a7b8,_0x4c6124[_0x58fc71])&&(_0x11ec5c[_0x4c6124[_0x58fc71]]=_0x27a7b8[_0x4c6124[_0x58fc71]]);}return _0x11ec5c;},je=_0x2d8cbf(function(_0x2d58fa,_0x4f603f){const _0x485760=_0x29a823;var _0x2f818e=_0x2d58fa[_0x485760(0x16a)],_0x480f18=_0x2d58fa['id'],_0xe763fd=_0x2d58fa[_0x485760(0x29b)],_0x573115=_0x2d58fa[_0x485760(0x2a9)],_0xca1e62=Bi(_0x2d58fa,['icon','id',_0x485760(0x29b),_0x485760(0x2a9)]),_0x5e8b12='univerjs-icon\x20univerjs-icon-'[_0x485760(0x203)](_0x480f18,'\x20')[_0x485760(0x203)](_0xe763fd||'')[_0x485760(0x29d)](),_0x23388c=_0x1bd1d1('_'[_0x485760(0x203)](ji()));return Rt(_0x2f818e,''['concat'](_0x480f18),{'defIds':_0x2f818e[_0x485760(0x142)],'idSuffix':_0x23388c['current']},v({'ref':_0x4f603f,'className':_0x5e8b12},_0xca1e62),_0x573115);});function Rt(_0x3ca17d,_0x60d741,_0x5a8b31,_0x5aefa8,_0x41af46){const _0x2c783f=_0x29a823;return _0x2ea805(_0x3ca17d['tag'],v(v({'key':_0x60d741},ki(_0x3ca17d,_0x5a8b31,_0x41af46)),_0x5aefa8),(Hi(_0x3ca17d,_0x5a8b31)[_0x2c783f(0x187)]||[])[_0x2c783f(0x207)](function(_0x13a988,_0x2ad774){const _0x2655e7=_0x2c783f;return Rt(_0x13a988,''['concat'](_0x60d741,'-')[_0x2655e7(0x203)](_0x3ca17d['tag'],'-')[_0x2655e7(0x203)](_0x2ad774),_0x5a8b31,void 0x0,_0x41af46);}));}function ki(_0x11aa12,_0x2edf61,_0x4356a0){const _0x4c3f97=_0x29a823;var _0xa468df=v({},_0x11aa12[_0x4c3f97(0x21e)]);_0x4356a0!=null&&_0x4356a0[_0x4c3f97(0x15c)]&&_0xa468df[_0x4c3f97(0x22f)]==='colorChannel1'&&(_0xa468df[_0x4c3f97(0x22f)]=_0x4356a0['colorChannel1']),_0x11aa12[_0x4c3f97(0x171)]===_0x4c3f97(0x134)&&_0xa468df['id']&&(_0xa468df['id']=_0xa468df['id']+_0x2edf61[_0x4c3f97(0x1c2)]),Object['entries'](_0xa468df)[_0x4c3f97(0x130)](function(_0x41a7d6){const _0x3c4356=_0x4c3f97;var _0x373527=_0x41a7d6[0x0],_0x1a463f=_0x41a7d6[0x1];_0x373527===_0x3c4356(0x134)&&typeof _0x1a463f=='string'&&(_0xa468df[_0x373527]=_0x1a463f[_0x3c4356(0x1ee)](/url\(#(.*)\)/,_0x3c4356(0x11b)['concat'](_0x2edf61[_0x3c4356(0x1c2)],')')));});var _0x354d74=_0x2edf61[_0x4c3f97(0x142)];return!_0x354d74||_0x354d74[_0x4c3f97(0x131)]===0x0||(_0x11aa12[_0x4c3f97(0x171)]===_0x4c3f97(0x120)&&_0xa468df[_0x4c3f97(0x290)]&&(_0xa468df[_0x4c3f97(0x290)]=_0xa468df[_0x4c3f97(0x290)]+_0x2edf61[_0x4c3f97(0x1c2)]),Object[_0x4c3f97(0x1f2)](_0xa468df)['forEach'](function(_0x4b04db){const _0x23e75e=_0x4c3f97;var _0x2b7d9d=_0x4b04db[0x0],_0x564a36=_0x4b04db[0x1];typeof _0x564a36==_0x23e75e(0x1b2)&&(_0xa468df[_0x2b7d9d]=_0x564a36[_0x23e75e(0x1ee)](/url\(#(.*)\)/,_0x23e75e(0x11b)[_0x23e75e(0x203)](_0x2edf61['idSuffix'],')')));})),_0xa468df;}function Hi(_0x2903c0,_0x3ec492){const _0x59ec33=_0x29a823;var _0x188dda,_0x3d4644=_0x3ec492['defIds'];return!_0x3d4644||_0x3d4644[_0x59ec33(0x131)]===0x0?_0x2903c0:_0x2903c0[_0x59ec33(0x171)]===_0x59ec33(0x28c)&&(!((_0x188dda=_0x2903c0[_0x59ec33(0x187)])===null||_0x188dda===void 0x0)&&_0x188dda['length'])?v(v({},_0x2903c0),{'children':_0x2903c0['children'][_0x59ec33(0x207)](function(_0x4e695e){const _0x2f01dc=_0x59ec33;return typeof _0x4e695e[_0x2f01dc(0x21e)]['id']==_0x2f01dc(0x1b2)&&_0x3d4644&&_0x3d4644[_0x2f01dc(0x1ad)](_0x4e695e[_0x2f01dc(0x21e)]['id'])?v(v({},_0x4e695e),{'attrs':v(v({},_0x4e695e[_0x2f01dc(0x21e)]),{'id':_0x4e695e[_0x2f01dc(0x21e)]['id']+_0x3ec492[_0x2f01dc(0x1c2)]})}):_0x4e695e;})}):_0x2903c0;}function ji(){const _0x90c20=_0x29a823;return Math['random']()[_0x90c20(0x2c0)](0x24)[_0x90c20(0x201)](0x2,0x8);}je[_0x29a823(0x2f6)]=_0x29a823(0x2a5);var Yi={'tag':'svg','attrs':{'xmlns':_0x29a823(0x1a8),'fill':_0x29a823(0x117),'viewBox':_0x29a823(0x230),'width':_0x29a823(0x27f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x29a823(0x227)},'children':[{'tag':_0x29a823(0x24d),'attrs':{'stroke':_0x29a823(0x1e1),'d':_0x29a823(0x18f),'strokeLinecap':_0x29a823(0x157),'strokeLinejoin':_0x29a823(0x157),'strokeWidth':1.2}}]},{'tag':_0x29a823(0x28c),'attrs':{},'children':[{'tag':_0x29a823(0x295),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x29a823(0x24d),'attrs':{'fill':_0x29a823(0x1a7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x29a823(0x28d)]},Dt=_0x2d8cbf(function(_0x1ff170,_0x308a84){const _0x2f51ea=_0x29a823;return _0x2ea805(je,Object[_0x2f51ea(0x2d0)]({},_0x1ff170,{'id':'off-line-icon','ref':_0x308a84,'icon':Yi}));});Dt[_0x29a823(0x2f6)]=_0x29a823(0x20d);var Fi={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x29a823(0x117),'viewBox':'0\x200\x2017\x2016','width':_0x29a823(0x27f),'height':_0x29a823(0x27f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x29a823(0x24d),'attrs':{'stroke':'currentColor','d':_0x29a823(0x1f4),'strokeLinecap':_0x29a823(0x157),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x29a823(0x28c),'attrs':{},'children':[{'tag':_0x29a823(0x295),'attrs':{'id':_0x29a823(0x25a)},'children':[{'tag':_0x29a823(0x24d),'attrs':{'fill':_0x29a823(0x1a7),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x29a823(0x25a)]},Nt=_0x2d8cbf(function(_0x58d4e2,_0x39cae6){const _0x47bd28=_0x29a823;return _0x2ea805(je,Object[_0x47bd28(0x2d0)]({},_0x58d4e2,{'id':'on-line-icon','ref':_0x39cae6,'icon':Fi}));});Nt['displayName']='OnLineIcon';function Wi(_0x120719){const _0x46a33c=_0x29a823;switch(_0x120719){case _0x5276f4['OFFLINE']:return'collabStatus.offline';case _0x5276f4[_0x46a33c(0x25f)]:return'collabStatus.conflict';case _0x5276f4[_0x46a33c(0x1e9)]:return _0x46a33c(0x300);case _0x5276f4['NOT_COLLAB']:return _0x46a33c(0x148);case _0x5276f4[_0x46a33c(0x12a)]:case _0x5276f4[_0x46a33c(0x149)]:return _0x46a33c(0x12b);case _0x5276f4['SYNCED']:case _0x5276f4['PENDING']:return'collabStatus.synced';}}function Vi(_0x788b2){const _0x34be19=_0x29a823,{status$:_0x313130}=_0x788b2,_0x5b8fa3=_0x49a27b(_0x313130,_0x5276f4[_0x34be19(0x29e)]),_0x4643cb=_0x316a74(_0x1cb89e),_0x595e37=_0x316a74(_0xf66e31),_0x571c6e=_0x5b8fa3!==_0x5276f4[_0x34be19(0x22a)],_0x30635c=_0x4643cb['t'](Wi(_0x5b8fa3)),_0x486dce=_0x571c6e?_0x15a63d(Nt,{}):_0x15a63d(Dt,{}),_0x2012cb=_0x54db02(()=>{const _0xa03187=_0x34be19;_0x571c6e||_0x595e37[_0xa03187(0x13e)]();},[_0x571c6e,_0x595e37]);function _0x5efc62(){const _0x20ba1d=_0x34be19;return _0x15ba8b('div',{'className':_0x20ba1d(0x1c6),'onClick':_0x2012cb,'children':[_0x15a63d(_0x20ba1d(0x2af),{'className':_0x3ceee0(_0x20ba1d(0x170),{'univer-text-green-500':_0x571c6e,'univer-text-red-500':!_0x571c6e}),'children':_0x486dce}),_0x15a63d(_0x20ba1d(0x2af),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x30635c})]});}return _0x571c6e?_0x5efc62():_0x15a63d(_0xbbccda,{'title':_0x4643cb['t'](_0x34be19(0x1c5)),'children':_0x5efc62()});}var Xi=Object[_0x29a823(0x147)],Gi=(_0x77acfa,_0x1ef444,_0x4fb655,_0x1b32fb)=>{const _0x1350a6=_0x29a823;for(var _0x5692e0=_0x1b32fb>0x1?void 0x0:_0x1b32fb?Xi(_0x1ef444,_0x4fb655):_0x1ef444,_0x3b602d=_0x77acfa[_0x1350a6(0x131)]-0x1,_0x12ac1e;_0x3b602d>=0x0;_0x3b602d--)(_0x12ac1e=_0x77acfa[_0x3b602d])&&(_0x5692e0=_0x12ac1e(_0x5692e0)||_0x5692e0);return _0x5692e0;},Q=(_0x16c9d1,_0x43283c)=>(_0x5386ef,_0x31d16a)=>_0x43283c(_0x5386ef,_0x31d16a,_0x16c9d1);let te=class extends _0x10f221{constructor(_0x5a92b8,_0x1d50fd,_0x2f8d1c,_0x1ede8c){const _0x48da5e=_0x29a823;super(),_(this,_0x48da5e(0x10f),new _0x168fee(_0x5276f4[_0x48da5e(0x29e)])),(this[_0x48da5e(0x19c)]=_0x5a92b8,this['_injector']=_0x1d50fd,this[_0x48da5e(0x2b5)]=_0x2f8d1c,this[_0x48da5e(0x1e0)]=_0x1ede8c,this[_0x48da5e(0x259)](),this['_initStatusListener']());}[_0x29a823(0x14b)](){const _0x546b8d=_0x29a823;this[_0x546b8d(0x1bf)](this[_0x546b8d(0x19c)]['focused$'][_0x546b8d(0x1bb)](_0x513abf(()=>{const _0x103616=_0x546b8d,_0x56f053=this['_univerInstanceService']['getFocusedUnit']();return _0x56f053?this[_0x103616(0x2b5)]['getCollabEntity$'](_0x56f053['getUnitId']()):_0x539c3b(null);}),_0x513abf(_0x5d610b=>_0x5d610b?_0x5d610b[_0x546b8d(0x15e)]:_0x539c3b(_0x5276f4[_0x546b8d(0x29e)])))[_0x546b8d(0x1a9)](_0x2705f9=>{const _0x33cc92=_0x546b8d;this[_0x33cc92(0x10f)][_0x33cc92(0x21a)](_0x2705f9);}));}[_0x29a823(0x259)](){const _0x214321=_0x29a823;this[_0x214321(0x1bf)](this[_0x214321(0x1e0)][_0x214321(0x2d7)](_0x4bc2d7[_0x214321(0x179)],()=>_0x23b9eb(Ki({'status$':this[_0x214321(0x10f)][_0x214321(0x2e2)]()}),this[_0x214321(0x1c7)])));}};te=Gi([Q(0x0,_0x11340f),Q(0x1,_0x455d91(_0x44d15d)),Q(0x2,_0x455d91(_0x17f747)),Q(0x3,_0x7a0a73)],te);function Ki(_0x380faa){const {status$:_0x4f9f87}=_0x380faa;return function(){return _0x15a63d(Vi,{'status$':_0x4f9f87});};}var zi=Object[_0x29a823(0x147)],Ji=(_0x59a9c1,_0x2eceeb,_0xd2541d,_0xfc8d66)=>{const _0x146178=_0x29a823;for(var _0x24bb85=_0xfc8d66>0x1?void 0x0:_0xfc8d66?zi(_0x2eceeb,_0xd2541d):_0x2eceeb,_0x1b6fa1=_0x59a9c1[_0x146178(0x131)]-0x1,_0x1680ee;_0x1b6fa1>=0x0;_0x1b6fa1--)(_0x1680ee=_0x59a9c1[_0x1b6fa1])&&(_0x24bb85=_0x1680ee(_0x24bb85)||_0x24bb85);return _0x24bb85;},B=(_0x20bba5,_0x2fc9c3)=>(_0x2a5d24,_0x2c1a2c)=>_0x2fc9c3(_0x2a5d24,_0x2c1a2c,_0x20bba5);let se=class extends _0x10f221{constructor(_0xffa8b,_0x15897d,_0xf0954b,_0x47d79e,_0x2d2f0b,_0x30da96){const _0xa8b7b6=_0x29a823;super(),this[_0xa8b7b6(0x173)]=_0xffa8b,this[_0xa8b7b6(0x182)]=_0x15897d,this[_0xa8b7b6(0x2cc)]=_0xf0954b,this[_0xa8b7b6(0x158)]=_0x47d79e,this[_0xa8b7b6(0x176)]=_0x2d2f0b,this[_0xa8b7b6(0x2ac)]=_0x30da96,this[_0xa8b7b6(0x243)](),this[_0xa8b7b6(0x2a7)]();}['_setupBeforeClosingHandler'](){const _0x5abc37=_0x29a823;this[_0x5abc37(0x1bf)](this[_0x5abc37(0x173)][_0x5abc37(0x2df)](()=>{const _0x3b284b=_0x5abc37;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x3b284b(0x2ac)]['t'](_0x3b284b(0x2cd));}));}['_initEvent'](){const _0x4dda3f=_0x29a823;this[_0x4dda3f(0x1bf)](this[_0x4dda3f(0x2cc)][_0x4dda3f(0x1c9)][_0x4dda3f(0x1a9)](_0x15488a=>{const _0x2fdae6=_0x4dda3f;_0x15488a['id']===_0x1ec792[_0x2fdae6(0x2ea)]&&this['_messageService']['show']({'type':_0x5740c0[_0x2fdae6(0x29c)],'content':this[_0x2fdae6(0x2ac)]['t']('collaboration.single-unit.warning')}),_0x15488a['id']===_0x1ec792[_0x2fdae6(0x231)]&&this[_0x2fdae6(0x158)]['show']({'type':_0x5740c0[_0x2fdae6(0x29c)],'content':this['_localeService']['t'](_0x2fdae6(0x1f9))}),_0x15488a['id']===_0x1ec792[_0x2fdae6(0x164)]&&this['_notificationService']['show']({'title':this[_0x2fdae6(0x2ac)]['t'](_0x2fdae6(0x293)),'content':this[_0x2fdae6(0x2ac)]['t'](_0x2fdae6(0x255)),'type':_0x2fdae6(0x2f4),'duration':0x0}),_0x15488a['id']===_0x1ec792['CONFLICT']&&this[_0x2fdae6(0x158)][_0x2fdae6(0x1dc)]({'type':_0x5740c0[_0x2fdae6(0x204)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x15488a[_0x2fdae6(0x2a8)]+')'}),_0x15488a['id']===_0x1ec792['JOIN_ROOM_FAILED']&&this[_0x2fdae6(0x158)][_0x2fdae6(0x1dc)]({'type':_0x5740c0['Warning'],'content':this[_0x2fdae6(0x2ac)]['t'](_0x15488a['data']||'')}),_0x15488a['id']===_0x1ec792[_0x2fdae6(0x2c6)]&&this['_messageService'][_0x2fdae6(0x1dc)]({'type':_0x5740c0[_0x2fdae6(0x29c)],'content':this[_0x2fdae6(0x2ac)]['t'](_0x2fdae6(0x258))}),_0x15488a['id']===_0x1ec792[_0x2fdae6(0x150)]&&this['_messageService'][_0x2fdae6(0x1dc)]({'type':_0x5740c0[_0x2fdae6(0x204)],'content':this['_localeService']['t']('session.connection-failed')}),_0x15488a['id']===_0x1ec792[_0x2fdae6(0x260)]&&this[_0x2fdae6(0x158)][_0x2fdae6(0x1dc)]({'type':_0x5740c0[_0x2fdae6(0x204)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};se=Ji([B(0x0,_0x1aa7ba),B(0x1,_0x4ec0e3),B(0x2,_0x455d91(_0x37732d)),B(0x3,_0x19b68c),B(0x4,_0x4a10a4),B(0x5,_0x455d91(_0x1cb89e))],se);const Zi=_0x29a823(0x2fc),et={},Ut=_0x489ce9('uni.network.url-service');var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x46e44c,_0x1a0c09,_0x430198,_0x4a5867)=>{for(var _0xca5806=_0x4a5867>0x1?void 0x0:_0x4a5867?Qi(_0x1a0c09,_0x430198):_0x1a0c09,_0x40ba26=_0x46e44c['length']-0x1,_0x156bf5;_0x40ba26>=0x0;_0x40ba26--)(_0x156bf5=_0x46e44c[_0x40ba26])&&(_0xca5806=_0x156bf5(_0xca5806)||_0xca5806);return _0xca5806;},G=(_0x2b90c9,_0x1998e0)=>(_0x3ecda5,_0x15b4a8)=>_0x1998e0(_0x3ecda5,_0x15b4a8,_0x2b90c9);let ie=class extends _0x5b0a30{constructor(_0x2da8ee,_0x329361,_0x344d14,_0x23118e,_0x5f3a76){const _0x491662=_0x29a823;super(),this[_0x491662(0x237)]=_0x2da8ee,this[_0x491662(0x2e7)]=_0x329361,this[_0x491662(0x15f)]=_0x344d14,this[_0x491662(0x2c2)]=_0x23118e,_0x5f3a76?_0x5f3a76==null||_0x5f3a76['whenReady']()['then'](()=>this['_init']()):(this['_logService'][_0x491662(0x2dc)](_0x491662(0x2e9),_0x491662(0x18b)),this[_0x491662(0x282)]());}async[_0x29a823(0x282)](){const _0x185277=_0x29a823,_0x2a02d6=this[_0x185277(0x237)][_0x185277(0x2e4)](_0x185277(0x238)),_0x349d00=this[_0x185277(0x237)][_0x185277(0x2e4)](_0x185277(0x26c)),_0x385dbc=this[_0x185277(0x237)][_0x185277(0x2e4)](_0x185277(0x115));if(!_0x2a02d6||!_0x349d00){this[_0x185277(0x2e7)][_0x185277(0x2dc)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x26c736=await this[_0x185277(0x2c2)][_0x185277(0x14a)](_0x2a02d6,Number(_0x349d00),_0x385dbc);_0x26c736&&_0x26c736 instanceof _0x348276&&this['_setupSubUnitSync'](_0x26c736);}async['_setupSubUnitSync'](_0xfc93df){const _0x48b1b0=_0x29a823;await this['_updateSubUnitFromURLParams'](_0xfc93df),_0xfc93df[_0x48b1b0(0x1ff)][_0x48b1b0(0x1bb)](_0x3d7f41(this[_0x48b1b0(0x266)]))[_0x48b1b0(0x1a9)](_0x22bd50=>{const _0x306331=_0x48b1b0;_0x22bd50&&this[_0x306331(0x1b0)](_0x22bd50);}),this['_urlService'][_0x48b1b0(0x2a0)]['pipe'](_0x3d7f41(this['dispose$']))[_0x48b1b0(0x1a9)](()=>this[_0x48b1b0(0x12c)](_0xfc93df));}[_0x29a823(0x1b0)](_0x497da0,_0x44db5b=!0x1){const _0x2b3e29=_0x29a823,_0x1894a9=this['_urlService'][_0x2b3e29(0x2e4)](_0x2b3e29(0x115));_0x497da0[_0x2b3e29(0x215)]()!==_0x1894a9&&this[_0x2b3e29(0x237)][_0x2b3e29(0x241)]('subunit',_0x497da0[_0x2b3e29(0x215)](),_0x44db5b);}async['_updateSubUnitFromURLParams'](_0x490bf3){const _0x172eee=_0x29a823;var _0x2e7019;const _0x36760e=this[_0x172eee(0x237)]['getParam'](_0x172eee(0x115));if(!_0x36760e||!_0x490bf3['getSheetBySheetId'](_0x36760e)){const _0x3bc9b3=_0x490bf3[_0x172eee(0x2b3)]()[0x0],_0x298826=_0x490bf3[_0x172eee(0x168)](_0x3bc9b3);if(!_0x298826)return;this[_0x172eee(0x1b0)](_0x298826,!0x0),await this[_0x172eee(0x15f)][_0x172eee(0x240)](_0x57a71d['id'],{'unitId':_0x490bf3['getUnitId'](),'subUnitId':_0x3bc9b3});return;}((_0x2e7019=_0x490bf3['getActiveSheet']())==null?void 0x0:_0x2e7019[_0x172eee(0x215)]())!==_0x36760e&&await this[_0x172eee(0x15f)][_0x172eee(0x240)](_0x57a71d['id'],{'unitId':_0x490bf3['getUnitId'](),'subUnitId':_0x36760e});}};ie=qi([G(0x0,Ut),G(0x1,_0x2dae8e),G(0x2,_0x4398a9),G(0x3,_0x455d91(_0x1bfb46)),G(0x4,_0x5cc3a5(_0x16d091))],ie);var en=Object[_0x29a823(0x147)],tn=(_0x6430cb,_0x5b3e7e,_0x3e236c,_0x3119b2)=>{for(var _0x53ab97=_0x3119b2>0x1?void 0x0:_0x3119b2?en(_0x5b3e7e,_0x3e236c):_0x5b3e7e,_0x395fed=_0x6430cb['length']-0x1,_0x85ed95;_0x395fed>=0x0;_0x395fed--)(_0x85ed95=_0x6430cb[_0x395fed])&&(_0x53ab97=_0x85ed95(_0x53ab97)||_0x53ab97);return _0x53ab97;},pe=(_0x1afcaa,_0x2a1e73)=>(_0x7adf8e,_0x2e1fee)=>_0x2a1e73(_0x7adf8e,_0x2e1fee,_0x1afcaa);let ne=class{constructor(_0x69de4e,_0x3da517,_0x3afc24){const _0xbf81d3=_0x29a823;this['_injector']=_0x69de4e,this[_0xbf81d3(0x163)]=_0x3da517,this['_renderManagerService']=_0x3afc24;}[_0x29a823(0x1a5)](_0x7a8e34){const _0xc80448=_0x29a823;this[_0xc80448(0x138)](_0x7a8e34),this['_transformPreviousActiveRange'](_0x7a8e34);}[_0x29a823(0x21f)](_0x5e26a6){const _0x4e971b=_0x29a823,{unitID:_0x2576ee}=_0x5e26a6,_0x2c1e23=this[_0x4e971b(0x1df)][_0x4e971b(0x20f)](_0x2576ee)[_0x4e971b(0x1a2)](_0x117745),{redoCache:_0x4cba99}=_0x2c1e23['getUndoRedoMutationParamsCache']();if(_0x4cba99['length']===0x0)return _0x5e26a6;let _0x1708d6=_0x4a49e5['deepClone'](_0x5e26a6[_0x4e971b(0x154)][0x0]);for(let _0x3aa67f=0x0;_0x3aa67f<_0x4cba99[_0x4e971b(0x131)];_0x3aa67f++){const _0x6f4460={'id':'doc.mutation.rich-text-editing','params':{..._0x4cba99[_0x3aa67f]}},_0x3b5c63=this[_0x4e971b(0x163)][_0x4e971b(0x1e5)](_0x1708d6,_0x6f4460,!0x1);if(_0x198bf8(_0x3b5c63))throw _0x3b5c63[_0x4e971b(0x2f4)];_0x1708d6=_0x3b5c63[_0x4e971b(0x1f3)];}return{..._0x4a49e5[_0x4e971b(0x26b)](_0x5e26a6),'mutations':[_0x1708d6]};}[_0x29a823(0x138)](_0x316dfc){const _0xebc5d4=_0x29a823,{unitID:_0x2e2dbd}=_0x316dfc,_0x5b04be=this['_renderManagerService']['getRenderById'](_0x2e2dbd)[_0xebc5d4(0x1a2)](_0x117745),{undoCache:_0x4a8d20,redoCache:_0x3892ee}=_0x5b04be['getUndoRedoMutationParamsCache']();if(_0x4a8d20['length']===0x0||_0x3892ee[_0xebc5d4(0x131)]===0x0)return;const _0x39ceee=[],_0x20c861=[];let _0x50403b=_0x4a49e5[_0xebc5d4(0x26b)](_0x316dfc[_0xebc5d4(0x154)][0x0]),_0x27b9db=_0x4a49e5['deepClone'](_0x316dfc[_0xebc5d4(0x154)][0x0]);for(let _0x18968c=_0x4a8d20[_0xebc5d4(0x131)]-0x1;_0x18968c>=0x0;_0x18968c--){const _0x45354e={'id':_0xebc5d4(0x2b8),'params':{..._0x4a8d20[_0x18968c]}},_0x38ef29={'id':'doc.mutation.rich-text-editing','params':{..._0x3892ee[_0x18968c]}},_0x1a257d=this[_0xebc5d4(0x163)][_0xebc5d4(0x1e5)](_0x50403b,_0x45354e,!0x1),_0x4d9f68=this[_0xebc5d4(0x163)][_0xebc5d4(0x1e5)](_0x27b9db,_0x38ef29,!0x1);if(_0x198bf8(_0x1a257d))throw _0x1a257d[_0xebc5d4(0x2f4)];if(_0x198bf8(_0x4d9f68))throw _0x4d9f68[_0xebc5d4(0x2f4)];_0x39ceee[_0xebc5d4(0x1f8)](_0x1a257d[_0xebc5d4(0x143)][_0xebc5d4(0x15a)]),_0x20c861['unshift'](_0x4d9f68[_0xebc5d4(0x143)][_0xebc5d4(0x15a)]),_0x50403b=_0x1a257d[_0xebc5d4(0x1f3)],_0x27b9db=_0x4d9f68[_0xebc5d4(0x1f3)];}_0x5b04be['setUndoRedoMutationParamsCache']({'undoCache':_0x39ceee,'redoCache':_0x20c861});}[_0x29a823(0x233)](_0xf2a263){const _0x620ec5=_0x29a823,{unitID:_0x233ee4}=_0xf2a263,_0x2a0cff=this[_0x620ec5(0x1df)][_0x620ec5(0x20f)](_0x233ee4)[_0x620ec5(0x1a2)](_0x117745),_0x1aee09=_0x2a0cff[_0x620ec5(0x2f9)]();if(_0x1aee09==null)return;const _0x2ea659=[{'id':_0x620ec5(0x2b8),'params':{'unitId':_0xf2a263[_0x620ec5(0x153)],'actions':null,'textRanges':[_0x1aee09]}}],_0xe11a5=this[_0x620ec5(0x163)][_0x620ec5(0x270)](_0xf2a263,_0x2ea659);if(!_0x2001a7(_0xe11a5))throw _0xe11a5[_0x620ec5(0x2f4)];const _0x4b9947=_0xe11a5[_0x620ec5(0x143)][0x0][_0x620ec5(0x15a)]['textRanges'];Array['isArray'](_0x4b9947)&&_0x4b9947[_0x620ec5(0x131)]&&_0x2a0cff['setActiveRange'](_0x4b9947[0x0]);}};ne=tn([pe(0x0,_0x455d91(_0x44d15d)),pe(0x1,_0x615fc1),pe(0x2,_0x5c6761)],ne);var sn=Object[_0x29a823(0x147)],nn=(_0x40f85e,_0x519796,_0x3bbe68,_0x4a9fa3)=>{for(var _0xd50b62=_0x4a9fa3>0x1?void 0x0:_0x4a9fa3?sn(_0x519796,_0x3bbe68):_0x519796,_0x2f71b7=_0x40f85e['length']-0x1,_0x956577;_0x2f71b7>=0x0;_0x2f71b7--)(_0x956577=_0x40f85e[_0x2f71b7])&&(_0xd50b62=_0x956577(_0xd50b62)||_0xd50b62);return _0xd50b62;},Ce=(_0x432737,_0x1d9d4f)=>(_0x2ef52d,_0x2ee995)=>_0x1d9d4f(_0x2ef52d,_0x2ee995,_0x432737);let re=class{constructor(_0x3d9dce,_0x2c6b29,_0x29f13b){const _0x2b27ba=_0x29a823;this[_0x2b27ba(0x1c7)]=_0x3d9dce,this['_transformService']=_0x2c6b29,this[_0x2b27ba(0x1da)]=_0x29f13b;}[_0x29a823(0x221)](_0x4800ce){this['_transformHistoryAndStateStack'](_0x4800ce);}['transformRemoteChangeset'](_0x365f4a){const _0x874ebf=_0x29a823,{unitID:_0x47a2e4}=_0x365f4a,{collaboration:_0x4953cb}=this[_0x874ebf(0x1da)][_0x874ebf(0x178)](_0x47a2e4);if(_0x4953cb[_0x874ebf(0x131)]===0x0)return _0x365f4a;let _0x3410cb=_0x4a49e5['deepClone'](_0x365f4a[_0x874ebf(0x154)][0x0]);for(let _0x26b257=0x0;_0x26b257<_0x4953cb[_0x874ebf(0x131)];_0x26b257++){const _0x5b8478={'id':_0x874ebf(0x2b8),'params':{'unitId':_0x4953cb[_0x26b257][_0x874ebf(0x2d5)],..._0x4953cb[_0x26b257][_0x874ebf(0x272)]}},_0x210c4c=this[_0x874ebf(0x163)][_0x874ebf(0x1e5)](_0x3410cb,_0x5b8478,!0x1);if(_0x198bf8(_0x210c4c))throw _0x210c4c[_0x874ebf(0x2f4)];_0x3410cb=_0x210c4c[_0x874ebf(0x1f3)];}return{..._0x4a49e5[_0x874ebf(0x26b)](_0x365f4a),'mutations':[_0x3410cb]};}[_0x29a823(0x264)](_0x18fc64){const _0x2df069=_0x29a823,{unitID:_0x270069}=_0x18fc64,{history:_0x125b1b,collaboration:_0x1cc020}=this[_0x2df069(0x1da)][_0x2df069(0x178)](_0x270069);if(_0x125b1b[_0x2df069(0x131)]===0x0&&_0x1cc020[_0x2df069(0x131)]===0x0)return;const _0x1f1ac8=[],_0x4ecf84=[];let _0x5063eb=_0x4a49e5['deepClone'](_0x18fc64[_0x2df069(0x154)][0x0]),_0x109d28=_0x4a49e5[_0x2df069(0x26b)](_0x18fc64[_0x2df069(0x154)][0x0]);for(let _0x27e4db=_0x125b1b[_0x2df069(0x131)]-0x1;_0x27e4db>=0x0;_0x27e4db--){const _0x20b2b0={'id':_0x2df069(0x2b8),'params':{'unitId':_0x125b1b[_0x27e4db][_0x2df069(0x2d5)],..._0x125b1b[_0x27e4db]['undoState']}},_0x201994={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x125b1b[_0x27e4db][_0x2df069(0x2d5)],..._0x125b1b[_0x27e4db][_0x2df069(0x272)]}},_0x5e4cf0=this[_0x2df069(0x163)][_0x2df069(0x1e5)](_0x5063eb,_0x20b2b0,!0x1),_0x3ba6ca=this[_0x2df069(0x163)]['transformMutation'](_0x109d28,_0x201994,!0x1);if(_0x198bf8(_0x5e4cf0))throw _0x5e4cf0['error'];if(_0x198bf8(_0x3ba6ca))throw _0x3ba6ca[_0x2df069(0x2f4)];_0x1f1ac8[_0x2df069(0x1f8)]({..._0x125b1b[_0x27e4db],'undoState':_0x5e4cf0['m2Prime']['params'],'redoState':_0x3ba6ca[_0x2df069(0x143)]['params']}),_0x5063eb=_0x5e4cf0['m1Prime'],_0x109d28=_0x3ba6ca[_0x2df069(0x1f3)];}_0x5063eb=_0x4a49e5[_0x2df069(0x26b)](_0x18fc64['mutations'][0x0]),_0x109d28=_0x4a49e5[_0x2df069(0x26b)](_0x18fc64['mutations'][0x0]);for(let _0x4617f5=_0x1cc020['length']-0x1;_0x4617f5>=0x0;_0x4617f5--){const _0x3386ed={'id':_0x2df069(0x2b8),'params':{'unitId':_0x1cc020[_0x4617f5][_0x2df069(0x2d5)],..._0x1cc020[_0x4617f5][_0x2df069(0x284)]}},_0x242708={'id':_0x2df069(0x2b8),'params':{'unitId':_0x1cc020[_0x4617f5][_0x2df069(0x2d5)],..._0x1cc020[_0x4617f5][_0x2df069(0x272)]}},_0x29b6b4=this[_0x2df069(0x163)][_0x2df069(0x1e5)](_0x5063eb,_0x3386ed,!0x1),_0x98ab8e=this[_0x2df069(0x163)][_0x2df069(0x1e5)](_0x109d28,_0x242708,!0x1);if(_0x198bf8(_0x29b6b4))throw _0x29b6b4[_0x2df069(0x2f4)];if(_0x198bf8(_0x98ab8e))throw _0x98ab8e['error'];_0x4ecf84['unshift']({..._0x1cc020[_0x4617f5],'undoState':_0x29b6b4['m2Prime'][_0x2df069(0x15a)],'redoState':_0x98ab8e['m2Prime'][_0x2df069(0x15a)]}),_0x5063eb=_0x29b6b4['m1Prime'],_0x109d28=_0x98ab8e[_0x2df069(0x1f3)];}this[_0x2df069(0x1da)][_0x2df069(0x14e)](_0x270069,{'history':_0x1f1ac8,'collaboration':_0x4ecf84});}};re=nn([Ce(0x0,_0x455d91(_0x44d15d)),Ce(0x1,_0x615fc1),Ce(0x2,_0x455d91(_0x1b3913))],re);var rn=Object[_0x29a823(0x147)],on=(_0x895d7d,_0x4ca46e,_0x242b96,_0x30178d)=>{const _0x105d01=_0x29a823;for(var _0x350bd6=_0x30178d>0x1?void 0x0:_0x30178d?rn(_0x4ca46e,_0x242b96):_0x4ca46e,_0x8c755e=_0x895d7d[_0x105d01(0x131)]-0x1,_0x5b8a92;_0x8c755e>=0x0;_0x8c755e--)(_0x5b8a92=_0x895d7d[_0x8c755e])&&(_0x350bd6=_0x5b8a92(_0x350bd6)||_0x350bd6);return _0x350bd6;},tt=(_0x5c63a4,_0x76573b)=>(_0x4a7d96,_0x2019cb)=>_0x76573b(_0x4a7d96,_0x2019cb,_0x5c63a4);let oe=class{constructor(_0x893709,_0x42ba64){this['_injector']=_0x893709,this['_transformService']=_0x42ba64;}[_0x29a823(0x232)](_0x26b163){const _0x55491a=_0x29a823;var _0x14dd4b;const _0x1eecee=this['_injector'][_0x55491a(0x1c0)](_0x2c0b0f),_0x36e187=(_0x14dd4b=_0x1eecee[_0x55491a(0x267)]())!=null?_0x14dd4b:[];if(_0x36e187['length']===0x0)return;const _0x138255=_0x26b163[_0x55491a(0x153)],_0x3cc804=[{'id':_0x55491a(0x2b8),'params':{'unitId':_0x138255,'actions':null,'textRanges':_0x36e187}}],_0x5c8141=this[_0x55491a(0x163)][_0x55491a(0x270)](_0x26b163,_0x3cc804);if(!_0x2001a7(_0x5c8141))throw _0x5c8141[_0x55491a(0x2f4)];const _0x29103=_0x5c8141[_0x55491a(0x143)][0x0][_0x55491a(0x15a)]['textRanges'];Array['isArray'](_0x29103)&&_0x29103[_0x55491a(0x131)]&&_0x1eecee['replaceDocRanges'](_0x29103,{'unitId':_0x138255,'subUnitId':_0x138255},!0x1);}};oe=on([tt(0x0,_0x455d91(_0x44d15d)),tt(0x1,_0x615fc1)],oe);var an=Object[_0x29a823(0x147)],cn=(_0x37335e,_0x5984c6,_0x487972,_0x6eeeca)=>{const _0xf9d8c6=_0x29a823;for(var _0x52f5f0=_0x6eeeca>0x1?void 0x0:_0x6eeeca?an(_0x5984c6,_0x487972):_0x5984c6,_0x1efb69=_0x37335e[_0xf9d8c6(0x131)]-0x1,_0x1c7396;_0x1efb69>=0x0;_0x1efb69--)(_0x1c7396=_0x37335e[_0x1efb69])&&(_0x52f5f0=_0x1c7396(_0x52f5f0)||_0x52f5f0);return _0x52f5f0;},U=(_0x41aa60,_0x4fe602)=>(_0x3c54c2,_0x20e181)=>_0x4fe602(_0x3c54c2,_0x20e181,_0x41aa60);let ae=class extends _0x10f221{constructor(_0x5401c8,_0x1ccd2f,_0x2d53a7,_0x128d13,_0xa504ff,_0x160072,_0x54d389,_0x445519){const _0x4e30a8=_0x29a823;super(),_(this,_0x4e30a8(0x10f),new _0x168fee(_0x5276f4[_0x4e30a8(0x29e)])),(this[_0x4e30a8(0x1da)]=_0x5401c8,this[_0x4e30a8(0x2b5)]=_0x1ccd2f,this[_0x4e30a8(0x1ac)]=_0x2d53a7,this['_docTransformStateCacheService']=_0x128d13,this[_0x4e30a8(0x212)]=_0xa504ff,this[_0x4e30a8(0x218)]=_0x160072,this[_0x4e30a8(0x158)]=_0x54d389,this[_0x4e30a8(0x2ac)]=_0x445519,this[_0x4e30a8(0x222)]());}[_0x29a823(0x222)](){const _0x47d1b4=_0x29a823;this[_0x47d1b4(0x1bf)](this['_collaborationController'][_0x47d1b4(0x1c8)][_0x47d1b4(0x1a9)](_0x223caa=>{const _0xf504b5=_0x47d1b4,_0x48b6e0=this[_0xf504b5(0x1da)][_0xf504b5(0x2bd)]['subscribe'](_0x26b9ba=>{const _0x22261f=_0xf504b5;if(_0x26b9ba==null)return;const {unitId:_0x1da4b8,redoState:_0x14b44b,commandId:_0xf71143}=_0x26b9ba;if(_0x1da4b8!==_0x223caa[_0x22261f(0x153)])return;const _0x19af5f={'id':_0xf71143,'type':_0x28e5fb[_0x22261f(0x26d)],'params':{'unitId':_0x1da4b8,'actions':_0x14b44b['actions'],'textRanges':null}};_0x223caa[_0x22261f(0x247)](_0x19af5f);});if(_0x223caa[_0xf504b5(0x1bf)](_0x48b6e0),_0x223caa instanceof _0x14e797){const _0x11e177={'onTransformIME':_0x282008=>this[_0xf504b5(0x1ac)][_0xf504b5(0x1a5)](_0x282008),'onTransformState':_0x4ec74a=>this[_0xf504b5(0x249)][_0xf504b5(0x221)](_0x4ec74a),'onTransformSelections':_0x4c7b4c=>this[_0xf504b5(0x212)]['transformSelections'](_0x4c7b4c),'onSyncEditingCollabCursor':_0x5e41c5=>this[_0xf504b5(0x218)][_0xf504b5(0x248)](_0x5e41c5),'onTransformRemoteChangesetByIMECache':_0xc6baa4=>this[_0xf504b5(0x1ac)]['transformRemoteChangeset'](_0xc6baa4),'onTransformRemoteChangesetByStateCache':_0x524204=>this[_0xf504b5(0x249)][_0xf504b5(0x21f)](_0x524204)};_0x223caa[_0xf504b5(0x2ce)](_0x11e177);}}));}};ae=cn([U(0x0,_0x455d91(_0x1b3913)),U(0x1,_0x455d91(_0x17f747)),U(0x2,_0x455d91(ne)),U(0x3,_0x455d91(re)),U(0x4,_0x455d91(oe)),U(0x5,_0x455d91(He)),U(0x6,_0x19b68c),U(0x7,_0x455d91(_0x1cb89e))],ae);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x669718,_0x3302a9,_0x57b9ce,_0x352567)=>{for(var _0x25309a=_0x352567>0x1?void 0x0:_0x352567?ln(_0x3302a9,_0x57b9ce):_0x3302a9,_0x1b6a2b=_0x669718['length']-0x1,_0x4ec383;_0x1b6a2b>=0x0;_0x1b6a2b--)(_0x4ec383=_0x669718[_0x1b6a2b])&&(_0x25309a=_0x4ec383(_0x25309a)||_0x25309a);return _0x25309a;},Ee=(_0x884e36,_0x20572f)=>(_0x18c107,_0x228ca3)=>_0x20572f(_0x18c107,_0x228ca3,_0x884e36);let Le=class extends _0x10f221{constructor(_0x4db9e8,_0x3030b2,_0x821e4a){const _0x32eb65=_0x29a823;super(),_(this,_0x32eb65(0x22e),new Map()),_(this,_0x32eb65(0x2e8),new Map()),_(this,_0x32eb65(0x1a3),!0x1),(this[_0x32eb65(0x11f)]=_0x4db9e8,this[_0x32eb65(0x273)]=_0x3030b2,this[_0x32eb65(0x193)]=_0x821e4a);}[_0x29a823(0x200)](){const _0x4b0ab1=_0x29a823;this[_0x4b0ab1(0x1a3)]=!0x0;}[_0x29a823(0x1aa)](){const _0x843948=_0x29a823;this[_0x843948(0x1a3)]=!0x1;}get[_0x29a823(0x228)](){const _0x569302=_0x29a823;return this[_0x569302(0x2e8)];}[_0x29a823(0x181)](){const _0x334b06=_0x29a823;this['exhaustSavingTask']()[_0x334b06(0x2e6)](()=>super[_0x334b06(0x181)]());}async[_0x29a823(0x190)](_0x1bbc43){const _0x499739=_0x29a823;return this['_disabled']?null:this[_0x499739(0x273)][_0x499739(0x1c1)](_0x5336d5(_0x1bbc43));}async[_0x29a823(0x152)](_0x16e4ea,_0x2b91ac){const _0xec2a25=_0x29a823;return!!this['_localStorageService'][_0xec2a25(0x174)](_0x16e4ea,_0x2b91ac);}[_0x29a823(0x25b)](_0x43d76a,_0x5afd7c,_0x2aa424,_0x1c913b){const _0x479feb=_0x29a823,_0x4281a6=this[_0x479feb(0x193)][_0x479feb(0x1c4)](_0x43d76a);this[_0x479feb(0x22e)]['set'](_0x43d76a,{'unitID':_0x43d76a,'type':_0x5afd7c,'awaitingChangeset':_0x2aa424,'mutations':_0x1c913b,'rev':_0x4281a6}),this[_0x479feb(0x2e8)][_0x479feb(0x1dd)](_0x43d76a)||this['_scheduleSaving'](_0x43d76a);}['_scheduleSaving'](_0x144b13){const _0x186749=_0x29a823,_0x5508f1=this['_getSaveTimeout']();_0x5508f1===0x0?this[_0x186749(0x194)](_0x144b13):this[_0x186749(0x2e8)][_0x186749(0x17d)](_0x144b13,setTimeout(()=>this[_0x186749(0x194)](_0x144b13),_0x5508f1));}['_getSaveTimeout'](){const _0x21f09f=_0x29a823;var _0xf5c988;return(_0xf5c988=this[_0x21f09f(0x11f)][_0x21f09f(0x27b)](_0x5ba66b))!=null?_0xf5c988:_0x53b202;}['_saveCache'](_0x307611){const _0x566090=_0x29a823,_0x14fa8a=this[_0x566090(0x2e8)][_0x566090(0x1c0)](_0x307611);return _0x14fa8a!==void 0x0&&window[_0x566090(0x1a4)](_0x14fa8a),this[_0x566090(0x273)][_0x566090(0x174)](_0x5336d5(_0x307611),this['_cachedData'][_0x566090(0x1c0)](_0x307611))[_0x566090(0x2e6)](()=>this['_saveTaskMap'][_0x566090(0x27a)](_0x307611));}async[_0x29a823(0x291)](){const _0x18e2c3=_0x29a823,_0x5c81d8=[];this['_saveTaskMap'][_0x18e2c3(0x130)]((_0x2833b2,_0x2bf2eb)=>{const _0xaea48d=_0x18e2c3;window['clearTimeout'](_0x2833b2),_0x5c81d8[_0xaea48d(0x14f)](this[_0xaea48d(0x194)](_0x2bf2eb)[_0xaea48d(0x2e6)](()=>{const _0x3d28ff=_0xaea48d;this[_0x3d28ff(0x2e8)]['delete'](_0x2bf2eb);}));}),await Promise[_0x18e2c3(0x110)](_0x5c81d8);}};Le=_n([Ee(0x0,_0x3a97e3),Ee(0x1,_0x4a5b3b),Ee(0x2,_0x455d91(_0xf03bd1))],Le);class hn extends _0x5b0a30{constructor(){const _0x430acf=_0x29a823;super(),_(this,_0x430acf(0x2a0)),this[_0x430acf(0x2a0)]=_0x35e5e8(window,_0x430acf(0x289))['pipe'](_0x3d7f41(this[_0x430acf(0x266)]),_0x212fb1(0x1),_0x4effe6(void 0x0));}[_0x29a823(0x241)](_0x13b795,_0x5573b9,_0x51f5dd=!0x1){const _0x3c155a=_0x29a823,_0x2699c8=new URL(window['location'][_0x3c155a(0x27c)]);_0x2699c8[_0x3c155a(0x2ab)][_0x3c155a(0x17d)](_0x13b795,_0x5573b9),_0x51f5dd?window[_0x3c155a(0x160)]['replaceState']('','',_0x2699c8[_0x3c155a(0x2c0)]()):window[_0x3c155a(0x160)][_0x3c155a(0x225)]('','',_0x2699c8[_0x3c155a(0x2c0)]());}[_0x29a823(0x287)](_0x392cc5,_0x8a28a9=!0x1){const _0x5decac=_0x29a823,_0x3fba99=new URL(window[_0x5decac(0x26f)]['href']);_0x3fba99[_0x5decac(0x2ab)]['delete'](_0x392cc5),_0x8a28a9?window['history']['replaceState']('','',_0x3fba99['toString']()):window[_0x5decac(0x160)][_0x5decac(0x225)]('','',_0x3fba99['toString']());}[_0x29a823(0x2e4)](_0x3e2355){const _0x52b004=_0x29a823;var _0x38f3e3;return(_0x38f3e3=new URL(window[_0x52b004(0x26f)][_0x52b004(0x27c)])[_0x52b004(0x2ab)][_0x52b004(0x1c0)](_0x3e2355))!=null?_0x38f3e3:void 0x0;}}var un=Object[_0x29a823(0x2f8)],dn=Object[_0x29a823(0x147)],fn=(_0x38349b,_0x2dca33,_0x57fd6e)=>_0x2dca33 in _0x38349b?un(_0x38349b,_0x2dca33,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57fd6e}):_0x38349b[_0x2dca33]=_0x57fd6e,Sn=(_0xef8b2a,_0x51f030,_0x3c966f,_0x13fcc5)=>{const _0x4a0fa3=_0x29a823;for(var _0x38e4b2=_0x13fcc5>0x1?void 0x0:_0x13fcc5?dn(_0x51f030,_0x3c966f):_0x51f030,_0x2dace5=_0xef8b2a[_0x4a0fa3(0x131)]-0x1,_0x1a8fa4;_0x2dace5>=0x0;_0x2dace5--)(_0x1a8fa4=_0xef8b2a[_0x2dace5])&&(_0x38e4b2=_0x1a8fa4(_0x38e4b2)||_0x38e4b2);return _0x38e4b2;},Oe=(_0x458c9e,_0x297ec4)=>(_0x31f6da,_0x100277)=>_0x297ec4(_0x31f6da,_0x100277,_0x458c9e),mn=(_0x463f79,_0x3a339c,_0x107363)=>fn(_0x463f79,_0x3a339c+'',_0x107363);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x22b858{constructor(_0x191828=et,_0x2e24b5,_0x539ce5,_0x41c22f){const _0x309830=_0x29a823;super(),this['_config']=_0x191828,this[_0x309830(0x1df)]=_0x2e24b5,this[_0x309830(0x1c7)]=_0x539ce5,this[_0x309830(0x11f)]=_0x41c22f;const {..._0x564248}=_0x1f1aa8({},et,this['_config']);this[_0x309830(0x11f)][_0x309830(0x13f)](Zi,_0x564248);}['onStarting'](){const _0x19e395=_0x29a823;this[_0x19e395(0x28a)](),this['_initDependencies']();}[_0x29a823(0x292)](){const _0x90fe6a=_0x29a823;this[_0x90fe6a(0x189)]();}[_0x29a823(0x28a)](){const _0x3fdfa1=_0x29a823;var _0x2f28e5;const _0x3bf7f1=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x4760a4,{'useClass':_0x49313b}],[_0x4ec0e3,{'useClass':Le}],[te],[ae],[se],[H],[Ne],[ie]];_0x3f2085(this[_0x3fdfa1(0x1c7)],_0x21a21b(_0x3bf7f1,(_0x2f28e5=this[_0x3fdfa1(0x294)])==null?void 0x0:_0x2f28e5['override']));}['_registerRenderDependencies'](){const _0x4911ef=_0x29a823;this[_0x4911ef(0x1bf)](this[_0x4911ef(0x1df)][_0x4911ef(0x13d)](_0x3e57d7[_0x4911ef(0x265)],[we])),this[_0x4911ef(0x1bf)](this['_renderManagerService'][_0x4911ef(0x13d)](_0x3e57d7[_0x4911ef(0x198)],[Pe]));}[_0x29a823(0x2a3)](){const _0x11aeab=_0x29a823;_0x291413(this[_0x11aeab(0x1c7)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x29a823(0x1d5),In),Ae=Sn([_0x314ba8(_0xf86d7b),Oe(0x1,_0x5c6761),Oe(0x2,_0x455d91(_0x44d15d)),Oe(0x3,_0x3a97e3)],Ae);var gn=Object[_0x29a823(0x147)],vn=(_0x2bb122,_0x577d52,_0x126209,_0x3928ed)=>{const _0x7e2447=_0x29a823;for(var _0x2c013a=_0x3928ed>0x1?void 0x0:_0x3928ed?gn(_0x577d52,_0x126209):_0x577d52,_0x198f87=_0x2bb122[_0x7e2447(0x131)]-0x1,_0x7a2632;_0x198f87>=0x0;_0x198f87--)(_0x7a2632=_0x2bb122[_0x198f87])&&(_0x2c013a=_0x7a2632(_0x2c013a)||_0x2c013a);return _0x2c013a;},K=(_0x32ddba,_0x26dd35)=>(_0x29075d,_0x176b8c)=>_0x26dd35(_0x29075d,_0x176b8c,_0x32ddba);let st=class extends _0x3d5f6a{constructor(_0x1e1c98,_0x9cd1ed,_0x425040,_0x4a3cdb,_0x95f550){super(_0x1e1c98,_0x9cd1ed,_0x425040,_0x4a3cdb,_0x95f550);}async[_0x29a823(0x2bf)](_0x5c2e93){const _0x412813=_0x29a823,_0xfc4ef1=await this[_0x412813(0x1ec)](),_0x2a9704=this['_createSocketURL'](_0x5c2e93,_0xfc4ef1);return this[_0x412813(0x26a)](_0x2a9704);}[_0x29a823(0x2cb)](_0x56ce54,_0xeffa44){const _0x347d84=_0x29a823,_0x79a741=typeof window>'u'?new URL(_0x56ce54):new URL(_0x56ce54,window[_0x347d84(0x26f)]['origin']);_0x79a741[_0x347d84(0x2ab)]['set'](_0x347d84(0x2db),_0xeffa44);const _0x2998b8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x347d84(0x26f)][_0x347d84(0x1b9)]);return _0x2998b8[_0x347d84(0x1c0)](_0x347d84(0x1ba))&&_0x79a741[_0x347d84(0x2ab)][_0x347d84(0x17d)](_0x347d84(0x1ba),_0x2998b8[_0x347d84(0x1c0)](_0x347d84(0x1ba))),_0x79a741[_0x347d84(0x2c0)]();}async[_0x29a823(0x1ec)](){const _0x258b20=_0x29a823;var _0x547a10,_0x5aba3d,_0x5b29e1;const _0x49537b=this[_0x258b20(0x11f)][_0x258b20(0x27b)](_0x50b945),_0x26358b=(_0x547a10=_0x49537b==null?void 0x0:_0x49537b[_0x258b20(0x17a)])!=null?_0x547a10:_0x5194e4;return(_0x5b29e1=(_0x5aba3d=(await this[_0x258b20(0x146)]['get'](_0x26358b,{'headers':{'Content-Type':_0x258b20(0x288)}}))[_0x258b20(0x159)])==null?void 0x0:_0x5aba3d[_0x258b20(0x23f)])!=null?_0x5b29e1:'';}};function _0x2d0d(_0x5579b3,_0xfb6c79){const _0x58c5aa=_0x58c5();return _0x2d0d=function(_0x2d0d19,_0x4d6661){_0x2d0d19=_0x2d0d19-0x10f;let _0x13a867=_0x58c5aa[_0x2d0d19];return _0x13a867;},_0x2d0d(_0x5579b3,_0xfb6c79);}st=vn([K(0x0,_0x455d91(_0x44d15d)),K(0x1,_0x455d91(_0x355e28)),K(0x2,_0x3a97e3),K(0x3,_0x2dae8e),K(0x4,_0x26ce3a)],st);const it=0x7530,nt=_0x29a823(0x2c9);class jn extends _0x10f221{constructor(){const _0x32d906=_0x29a823;super(),_(this,_0x32d906(0x162),_0x3960b0()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x32d906(0x1a0),null),_(this,_0x32d906(0x25c),new Map()),_(this,_0x32d906(0x2f5),new Map()),this['_init']();}[_0x29a823(0x181)](){const _0x51ea18=_0x29a823;super[_0x51ea18(0x181)](),this[_0x51ea18(0x25c)][_0x51ea18(0x130)]((_0x5ad5,_0x5767f8)=>this[_0x51ea18(0x24b)](_0x5767f8)),this[_0x51ea18(0x1a0)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x285731){const _0x383750=_0x29a823;return this[_0x383750(0x263)](_0x285731)['pipe'](_0x381aea());}[_0x29a823(0x242)](_0xc9a103){const _0x43ce7c=_0x29a823;this['_selfUnitIDs'][_0x43ce7c(0x2e0)]===0x0&&this[_0x43ce7c(0x23e)](),this[_0x43ce7c(0x19d)][_0x43ce7c(0x1ab)](_0xc9a103),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xc9a103],'isForwarded':!0x1});}[_0x29a823(0x276)](_0x5e7ca0){const _0x469349=_0x29a823;this[_0x469349(0x19d)]['delete'](_0x5e7ca0),this[_0x469349(0x19d)][_0x469349(0x2e0)]===0x0&&this[_0x469349(0x1a0)]&&window[_0x469349(0x11c)](this[_0x469349(0x1a0)]);}['_init'](){const _0x3e6749=_0x29a823;this['disposeWithMe'](_0x528206(_0x35e5e8(window,'storage')[_0x3e6749(0x1a9)](_0x5812ac=>{const _0x401deb=_0x3e6749;if(_0x5812ac[_0x401deb(0x139)]!==nt||!_0x5812ac['newValue'])return;const _0x31f580=JSON[_0x401deb(0x253)](_0x5812ac[_0x401deb(0x2b1)]);this[_0x401deb(0x2a4)](_0x31f580);}))),window[_0x3e6749(0x17b)]('unload',()=>this[_0x3e6749(0x129)]({'type':0x1,'memberID':this[_0x3e6749(0x162)],'unitIDs':Array[_0x3e6749(0x19b)](this[_0x3e6749(0x19d)])}));}[_0x29a823(0x2a4)](_0x57da6b){const _0x3ff4c5=_0x29a823;switch(_0x57da6b[_0x3ff4c5(0x26c)]){case 0x0:this[_0x3ff4c5(0x12e)](_0x57da6b);break;case 0x1:this['_handleLeaveEvent'](_0x57da6b);break;case 0x2:this['_handleHeartbeatEvent'](_0x57da6b);break;}}[_0x29a823(0x12e)](_0x108f6e){const _0x1cf2ce=_0x29a823,{unitIDs:_0x2f2b7a,memberID:_0x500500,isForwarded:_0x52937b}=_0x108f6e;_0x2f2b7a[_0x1cf2ce(0x130)](_0x38a138=>{const _0x3c0c17=_0x1cf2ce;if(!_0x52937b&&this[_0x3c0c17(0x1d2)][_0x3c0c17(0x1dd)](_0x38a138)&&this['_ensureSubject'](_0x38a138)[_0x3c0c17(0x21a)](_0x3f8da8[_0x3c0c17(0x169)]),!this[_0x3c0c17(0x1d2)][_0x3c0c17(0x1dd)](_0x38a138)||!this[_0x3c0c17(0x1d2)][_0x3c0c17(0x1c0)](_0x38a138)[_0x3c0c17(0x1dd)](_0x500500)){const _0x5279ae=this[_0x3c0c17(0x1d2)][_0x3c0c17(0x1c0)](_0x38a138)||new Set();_0x5279ae[_0x3c0c17(0x1ab)](_0x500500),this[_0x3c0c17(0x1d2)][_0x3c0c17(0x17d)](_0x38a138,_0x5279ae),this[_0x3c0c17(0x28f)](_0x500500);}}),_0x52937b||this[_0x1cf2ce(0x129)]({'type':0x0,'memberID':this[_0x1cf2ce(0x162)],'unitIDs':[...this[_0x1cf2ce(0x19d)]],'isForwarded':!0x0});}[_0x29a823(0x28f)](_0x5ff709){const _0x39dd44=_0x29a823;this['_removeClearOtherTimer'](_0x5ff709);const _0x34cf64=window['setTimeout'](()=>{const _0x5b9aad=_0x2d0d;this['_unitOnClients'][_0x5b9aad(0x130)](_0x3ca2d8=>{const _0x296f4b=_0x5b9aad;_0x3ca2d8[_0x296f4b(0x27a)](_0x5ff709);});},it*0x2);this[_0x39dd44(0x25c)][_0x39dd44(0x17d)](_0x5ff709,_0x34cf64);}[_0x29a823(0x24b)](_0x55949f){const _0x1b535b=_0x29a823;if(this[_0x1b535b(0x25c)][_0x1b535b(0x1dd)](_0x55949f)){const _0x5a8dd1=this[_0x1b535b(0x25c)][_0x1b535b(0x1c0)](_0x55949f);_0x5a8dd1&&window['clearTimeout'](_0x5a8dd1),this[_0x1b535b(0x25c)][_0x1b535b(0x17d)](_0x55949f,null);}}['_handleLeaveEvent'](_0xcbcdda){const _0x425f71=_0x29a823,{memberID:_0x4abb8c,unitIDs:_0x3f3884}=_0xcbcdda;_0x3f3884['forEach'](_0x3750a8=>{const _0x5e002b=_0x2d0d;var _0xc0a53;const _0xa80309=this[_0x5e002b(0x1d2)][_0x5e002b(0x1c0)](_0x3750a8);_0xa80309&&(_0xa80309['delete'](_0x4abb8c),(_0xc0a53=this['_ensureSubject'](_0x3750a8))==null||_0xc0a53[_0x5e002b(0x21a)](_0xa80309[_0x5e002b(0x2e0)]===0x0?_0x3f8da8[_0x5e002b(0x1af)]:_0x3f8da8[_0x5e002b(0x169)]));}),this[_0x425f71(0x24b)](_0x4abb8c);}[_0x29a823(0x278)](_0x73c053){this['_scheduleClearOtherTimer'](_0x73c053['memberID']);}[_0x29a823(0x129)](_0x29907b){const _0x4bb04b=_0x29a823;localStorage[_0x4bb04b(0x174)](nt,JSON[_0x4bb04b(0x1a1)](_0x29907b));}[_0x29a823(0x23e)](){const _0x1a5375=_0x29a823;this[_0x1a5375(0x1a0)]=window['setInterval'](()=>{const _0x1e3945=_0x1a5375;this[_0x1e3945(0x129)]({'type':0x2,'memberID':this[_0x1e3945(0x162)]});},it);}['_ensureSubject'](_0x23edc6){const _0x51acbb=_0x29a823;return this[_0x51acbb(0x2f5)]['has'](_0x23edc6)||this['_unitStatus'][_0x51acbb(0x17d)](_0x23edc6,new _0x168fee(_0x3f8da8[_0x51acbb(0x1af)])),this[_0x51acbb(0x2f5)][_0x51acbb(0x1c0)](_0x23edc6);}}var Mt=(_0x496586=>(_0x496586[_0x496586[_0x29a823(0x205)]=0x0]=_0x29a823(0x205),_0x496586[_0x496586['OK']=0x1]='OK',_0x496586[_0x496586[_0x29a823(0x13a)]=0x2]=_0x29a823(0x13a),_0x496586[_0x496586['PERMISSION_DENIED']=0x3]=_0x29a823(0x164),_0x496586[_0x496586[_0x29a823(0x256)]=0x4]=_0x29a823(0x256),_0x496586[_0x496586['UNAUTHENTICATED']=0x5]=_0x29a823(0x1b3),_0x496586[_0x496586[_0x29a823(0x2c4)]=0x6]=_0x29a823(0x2c4),_0x496586[_0x496586[_0x29a823(0x197)]=0x7]=_0x29a823(0x197),_0x496586[_0x496586['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x496586[_0x496586[_0x29a823(0x1be)]=0x9]=_0x29a823(0x1be),_0x496586[_0x496586['LOGIN_FAILED']=0xa]=_0x29a823(0x1f0),_0x496586[_0x496586[_0x29a823(0x2b2)]=0x1389]=_0x29a823(0x2b2),_0x496586[_0x496586[_0x29a823(0x2c7)]=0x1771]=_0x29a823(0x2c7),_0x496586[_0x496586[_0x29a823(0x2b7)]=0x1772]=_0x29a823(0x2b7),_0x496586[_0x496586[_0x29a823(0x299)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x496586[_0x496586[_0x29a823(0x1cb)]=0x1b59]=_0x29a823(0x1cb),_0x496586[_0x496586[_0x29a823(0x1d1)]=0x1b5a]=_0x29a823(0x1d1),_0x496586[_0x496586['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x29a823(0x2be),_0x496586[_0x496586[_0x29a823(0x229)]=0x1b5c]=_0x29a823(0x229),_0x496586[_0x496586[_0x29a823(0x165)]=0x1b5d]=_0x29a823(0x165),_0x496586[_0x496586[_0x29a823(0x244)]=0x1f41]=_0x29a823(0x244),_0x496586[_0x496586['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x29a823(0x124),_0x496586[_0x496586[_0x29a823(0x2ba)]=0x232a]=_0x29a823(0x2ba),_0x496586[_0x496586[_0x29a823(0x155)]=0x232b]=_0x29a823(0x155),_0x496586[_0x496586['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x29a823(0x2aa),_0x496586[_0x496586[_0x29a823(0x1db)]=0x232d]=_0x29a823(0x1db),_0x496586[_0x496586['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x29a823(0x1cc),_0x496586[_0x496586[_0x29a823(0x112)]=0x2712]=_0x29a823(0x112),_0x496586[_0x496586[_0x29a823(0x15b)]=0x2713]=_0x29a823(0x15b),_0x496586[_0x496586[_0x29a823(0x2f1)]=0x2714]=_0x29a823(0x2f1),_0x496586[_0x496586[_0x29a823(0x217)]=0x271a]=_0x29a823(0x217),_0x496586[_0x496586[_0x29a823(0x296)]=0x271b]=_0x29a823(0x296),_0x496586[_0x496586[_0x29a823(0x2bb)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x496586[_0x496586[_0x29a823(0x226)]=0x271d]=_0x29a823(0x226),_0x496586[_0x496586[_0x29a823(0x2f3)]=0x271e]=_0x29a823(0x2f3),_0x496586[_0x496586['YUUMI_AI_RUN_FAILED']=0x271f]=_0x29a823(0x20c),_0x496586[_0x496586[_0x29a823(0x2de)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x496586[_0x496586['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x29a823(0x1d7),_0x496586[_0x496586[_0x29a823(0x234)]=0x2ee2]=_0x29a823(0x234),_0x496586[_0x496586[_0x29a823(0x20e)]=0x2ee3]=_0x29a823(0x20e),_0x496586[_0x496586['USER_NOT_INVITED_CODE']=0x2ee4]=_0x29a823(0x1d3),_0x496586[_0x496586[_0x29a823(0x213)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x496586[_0x496586[_0x29a823(0x116)]=0x32c9]=_0x29a823(0x116),_0x496586[_0x496586[_0x29a823(0x2ec)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x496586[_0x496586[_0x29a823(0x2fd)]=0x32cb]=_0x29a823(0x2fd),_0x496586[_0x496586['UNRECOGNIZED']=-0x1]=_0x29a823(0x2bc),_0x496586))(Mt||{}),pn=Object[_0x29a823(0x147)],Cn=(_0xe63b04,_0x4f9a6d,_0x558ea1,_0x404199)=>{const _0x45a5aa=_0x29a823;for(var _0x198f42=_0x404199>0x1?void 0x0:_0x404199?pn(_0x4f9a6d,_0x558ea1):_0x4f9a6d,_0x54a9b1=_0xe63b04[_0x45a5aa(0x131)]-0x1,_0x5d3bf8;_0x54a9b1>=0x0;_0x54a9b1--)(_0x5d3bf8=_0xe63b04[_0x54a9b1])&&(_0x198f42=_0x5d3bf8(_0x198f42)||_0x198f42);return _0x198f42;},be=(_0x28c8cd,_0x19c9fb)=>(_0x1ac344,_0x5cc6fe)=>_0x19c9fb(_0x1ac344,_0x5cc6fe,_0x28c8cd);let rt=class extends _0x10f221{constructor(_0x305ff0,_0x4ad476,_0xc77a55){const _0x15716e=_0x29a823;super(),this['_instanceService']=_0x305ff0,this[_0x15716e(0x146)]=_0x4ad476,this[_0x15716e(0x11f)]=_0xc77a55;}async[_0x29a823(0x1c3)](_0x1a215e,_0x3a9eac,_0x4d0df7,..._0xc1f427){const _0x3e4a18=_0x29a823;var _0x131203,_0x4361e7,_0x11877d,_0x54817f;const _0x15faf1=this[_0x3e4a18(0x1e3)][_0x3e4a18(0x1ca)]();if(!_0x15faf1)throw new Error(_0x3e4a18(0x24a));const _0x1e95b9=((_0x131203=this[_0x3e4a18(0x11f)][_0x3e4a18(0x27b)](_0x53543e))!=null?_0x131203:_0x532e81)+'/'+_0x1a215e+'/run/'+_0x3a9eac,_0x3bed6d=new URL(window['location'][_0x3e4a18(0x27c)]),_0x4fb841={'scriptId':_0x1a215e,'runId':(_0x4361e7=_0x3bed6d['searchParams'][_0x3e4a18(0x1c0)](_0x3e4a18(0x1ba)))!=null?_0x4361e7:'','function':_0x3a9eac,'unitId':_0x15faf1[_0x3e4a18(0x167)](),'argsOfFunction':JSON[_0x3e4a18(0x1a1)](_0xc1f427),'invokeId':(_0x11877d=_0x4d0df7[_0x3e4a18(0x2c1)])!=null?_0x11877d:'','executionId':(_0x54817f=_0x4d0df7['executionId'])!=null?_0x54817f:''};try{const _0x111ddd=await this[_0x3e4a18(0x146)][_0x3e4a18(0x2d4)](_0x1e95b9,{'body':_0x4fb841});return _0x111ddd[_0x3e4a18(0x159)]['error']&&_0x111ddd[_0x3e4a18(0x159)][_0x3e4a18(0x2f4)][_0x3e4a18(0x1b8)]!==Mt['OK']?'Failed':_0x111ddd[_0x3e4a18(0x159)]['result'];}catch{return'Failed';}}};rt=Cn([be(0x0,_0x11340f),be(0x1,_0x455d91(_0x355e28)),be(0x2,_0x3a97e3)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,Li as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x252217=_0x1ea5;(function(_0x2ac325,_0x3c3ea9){const _0x24ab00=_0x1ea5,_0x1412f3=_0x2ac325();while(!![]){try{const _0x15a6e0=-parseInt(_0x24ab00(0x1fa))/0x1+-parseInt(_0x24ab00(0x19e))/0x2*(parseInt(_0x24ab00(0x343))/0x3)+-parseInt(_0x24ab00(0x319))/0x4+parseInt(_0x24ab00(0x339))/0x5*(parseInt(_0x24ab00(0x352))/0x6)+-parseInt(_0x24ab00(0x2f4))/0x7+parseInt(_0x24ab00(0x226))/0x8*(parseInt(_0x24ab00(0x1ba))/0x9)+parseInt(_0x24ab00(0x315))/0xa;if(_0x15a6e0===_0x3c3ea9)break;else _0x1412f3['push'](_0x1412f3['shift']());}catch(_0x3ec558){_0x1412f3['push'](_0x1412f3['shift']());}}}(_0x1cf4,0x823b2));var $t=Object[_0x252217(0x35a)],xt=(_0x3cdfa9,_0x3be9aa,_0x3ffbac)=>_0x3be9aa in _0x3cdfa9?$t(_0x3cdfa9,_0x3be9aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ffbac}):_0x3cdfa9[_0x3be9aa]=_0x3ffbac,_=(_0x4f8816,_0x30094a,_0x1c0a62)=>xt(_0x4f8816,typeof _0x30094a!=_0x252217(0x22b)?_0x30094a+'':_0x30094a,_0x1c0a62);import{MemberService as _0x4742b5,SessionStatus as _0x14840a,CollaborationSessionService as _0x158b64,CollaborationStatus as _0x3eac87,CollaborationController as _0xd0ad51,ILocalCacheService as _0x2d2aa5,CollaborationUIEventService as _0x1c6f84,CollaborationUIEventId as _0x583ad6,DataLoaderService as _0x33a7f6,DocCollaborationEntity as _0x58a2ff,getLocalCacheKey as _0x5ac624,LOCAL_CACHE_INTERVAL as _0x4dd31f,LOCAL_CACHE_INTERVAL_KEY as _0x202da9,UniverCollaborationClientPlugin as _0x515576,CollaborationSocketService as _0x196c88,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x187f1d,DEFAULT_WS_SESSION_TICKET_URL as _0x4ee07e,UnitStatus as _0x59fbcc,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2c1c0e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xfdc127}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x402deb,Disposable as _0x271547,DOC_RANGE_TYPE as _0x37f902,Inject as _0x473849,Injector as _0x25a4c0,IUniverInstanceService as _0x1ba300,ICommandService as _0x192617,debounce as _0x30c378,Rectangle as _0x35b3ef,DisposableCollection as _0x1c3441,toDisposable as _0x50b6ce,UniverInstanceType as _0x1a81f3,Tools as _0xde0aa9,COLORS as _0x5e612c,ColorKit as _0x1c73bd,ThemeService as _0x261a17,fromEventSubject as _0x47b532,LocaleService as _0x2371b9,createIdentifier as _0x3878eb,ILogService as _0x49ab64,Optional as _0x3e1f2d,Workbook as _0x414d66,CommandType as _0x2019a3,IConfigService as _0x541aa1,ILocalStorageService as _0x3cbbfd,DependentOn as _0x3c0369,Plugin as _0x129955,merge as _0x2eb7a4,registerDependencies as _0xe33591,mergeOverrideWithDependencies as _0x202bf1,touchDependencies as _0x2fc7f7,generateRandomId as _0x663e96}from'@univerjs/core';import{Shape as _0x44b883,Rect as _0x25cb14,getColor as _0x55d726,RegularPolygon as _0x316b52,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x21e5b4,Vector2 as _0x4e75d0,SHEET_VIEWPORT_KEY as _0x4a6af8,IRenderManagerService as _0x4c7bc5}from'@univerjs/engine-render';import{ISocketService as _0x14bea5,WebSocketService as _0x5644fe,HTTPService as _0x4f8f19}from'@univerjs/network';import{IDocClipboardService as _0xc74a47,NodePositionConvertToCursor as _0x47b29e,NodePositionConvertToRectRange as _0x5f2b9e,TEXT_RANGE_LAYER_INDEX as _0x311489,SetDocZoomRatioOperation as _0x4c74f8,DocIMEInputManagerService as _0x233890,DocStateChangeManagerService as _0x54e3f0}from'@univerjs/docs-ui';import{IImageIoService as _0x44ab7b}from'@univerjs/drawing';import{BehaviorSubject as _0x88603b,debounceTime as _0x1e78a7,takeUntil as _0x46b83f,Subject as _0x5da22c,filter as _0x13130b,switchMap as _0x14092f,merge as _0x3e635e,combineLatest as _0x569e06,of as _0x583da3,fromEvent as _0x2922f1,shareReplay as _0x11aefe,mapTo as _0x321369,distinctUntilChanged as _0x4f6056}from'rxjs';import{SetTextSelectionsOperation as _0x2c3b54,RichTextEditingMutation as _0x3e5575,DocSelectionManagerService as _0x865cc4,DocSkeletonManagerService as _0x1ee09e}from'@univerjs/docs';import{ITransformService as _0x409fe5,CollaborationEvent as _0x1ae4a0,isTransformMutationFailure as _0x41ed2e,isTransformMutationsWithChangesetSuccess as _0x18ec12,RevisionService as _0x47a4ee,ISnapshotServerService as _0x102f3f}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x404216,serializeRangeWithSheet as _0x159cae}from'@univerjs/engine-formula';import{RefRangeService as _0x3d8b4b,SetSelectionsOperation as _0x5c95cb,SheetsSelectionsService as _0x5fa197,EffectRefRangId as _0x3ec484,handleIRemoveRow as _0x515831,handleIRemoveCol as _0x4fe2a9,handleMoveRange as _0x1a5872,handleInsertRow as _0x5641d7,handleInsertRangeMoveRight as _0x5612f2,handleInsertRangeMoveDown as _0x4fb699,handleInsertCol as _0x3367cf,handleDeleteRangeMoveUp as _0x1f2c87,handleDeleteRangeMoveLeft as _0x5509a6,runRefRangeMutations as _0x1ab6c9,SetWorksheetActivateCommand as _0x30ccf7}from'@univerjs/sheets';import{map as _0x5d9611,filter as _0x27c7c4,throttleTime as _0x124d51,takeUntil as _0x11b56a,switchMap as _0x539d0f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x298d79,getCoordByCell as _0x4645fe,getSheetObject as _0xb5a9df}from'@univerjs/sheets-ui';import{jsx as _0xd21116,jsxs as _0x26b6bc}from'react/jsx-runtime';import{useObservable as _0x59a373,useDependency as _0x280a05,IUIPartsService as _0x1c0f1d,BuiltInUIPart as _0x1aca9a,connectInjector as _0x393173,IBeforeCloseService as _0x5e0be0,IMessageService as _0x408bbf,INotificationService as _0xb77896}from'@univerjs/ui';import{Tooltip as _0x1651d9,clsx as _0x19f69f,MessageType as _0x483245}from'@univerjs/design';import{forwardRef as _0x778632,useRef as _0x22f287,createElement as _0x5e898e,useCallback as _0x47d919}from'react';import{IRemoteInstanceService as _0x331246}from'@univerjs/rpc';var ci=Object[_0x252217(0x34f)],li=(_0x30f98c,_0x115e5b,_0xc10634,_0x31b81f)=>{const _0xb8a993=_0x252217;for(var _0x41a688=_0x31b81f>0x1?void 0x0:_0x31b81f?ci(_0x115e5b,_0xc10634):_0x115e5b,_0x4fd65c=_0x30f98c[_0xb8a993(0x259)]-0x1,_0x39c7b1;_0x4fd65c>=0x0;_0x4fd65c--)(_0x39c7b1=_0x30f98c[_0x4fd65c])&&(_0x41a688=_0x39c7b1(_0x41a688)||_0x41a688);return _0x41a688;},Je=(_0x3e4e73,_0x589fba)=>(_0x6ba1d0,_0x254983)=>_0x589fba(_0x6ba1d0,_0x254983,_0x3e4e73);let Ne=class extends _0x402deb{constructor(_0x4cbca9,_0x56b17c){const _0x309dc7=_0x252217;super(),this[_0x309dc7(0x35b)]=_0x4cbca9,this[_0x309dc7(0x23b)]=_0x56b17c,this[_0x309dc7(0x183)]();}['_init'](){const _0x1ed86e=_0x252217,_0x3063f2=this;this[_0x1ed86e(0x29b)](this[_0x1ed86e(0x35b)][_0x1ed86e(0x2b7)]({'onBeforePasteImage':async _0x58be9f=>{const _0x359d6c=_0x1ed86e,_0x45c148=await _0x3063f2[_0x359d6c(0x23b)]['saveImage'](_0x58be9f);return _0x45c148?{'source':_0x45c148[_0x359d6c(0x27b)],'imageSourceType':_0x45c148[_0x359d6c(0x182)]}:null;}}));}};Ne=li([Je(0x0,_0xc74a47),Je(0x1,_0x44ab7b)],Ne);const Ze=[_0x252217(0x2e1),_0x252217(0x34e),_0x252217(0x2d5),'red.300','blue.400',_0x252217(0x369)];class ke extends _0x271547{constructor(){const _0x5836bb=_0x252217;super(...arguments),_(this,_0x5836bb(0x21b),new Map()),_(this,_0x5836bb(0x20c),0x0);}[_0x252217(0x1ce)](_0x284c61){const _0x3502fc=_0x252217;if(this['_assignedColors']['has'](_0x284c61))return this[_0x3502fc(0x21b)][_0x3502fc(0x302)](_0x284c61);const _0x269d6c=Ze[this['_colorIndex']];return this[_0x3502fc(0x20c)]=(this[_0x3502fc(0x20c)]+0x1)%Ze[_0x3502fc(0x259)],this[_0x3502fc(0x21b)]['set'](_0x284c61,_0x269d6c),_0x269d6c;}}function Tt(_0x23e28d){const _0x2de94d=_0x252217;let _0x90fb7a='';for(const _0x3e5e5f of _0x23e28d){const {startOffset:_0x484711,endOffset:_0x20df22,isActive:_0x4c701e,rangeType:_0x4dec6f,segmentId:_0xdd88,segmentPage:_0x216004}=_0x3e5e5f;_0x90fb7a[_0x2de94d(0x259)]&&(_0x90fb7a+=','),_0x90fb7a+=_0x484711+':'+_0x20df22+':'+(_0x4c701e?'1':'0')+':'+_0x4dec6f+':'+_0xdd88+':'+_0x216004;}return _0x90fb7a;}function _i(_0x3c77ef){const _0x14d8dd=_0x252217,_0x2b50fc=_0x3c77ef[_0x14d8dd(0x1ad)](','),_0x40657c=[];for(const _0x5785a5 of _0x2b50fc){const [_0x529b65,_0x205e48,_0x22d9d1,_0x45d9a9,_0x5959d3,_0x56b199]=_0x5785a5['split'](':');_0x40657c['push']({'startOffset':Number(_0x529b65),'endOffset':Number(_0x205e48),'collapsed':_0x529b65===_0x205e48,'isActive':_0x22d9d1==='1','rangeType':_0x45d9a9===_0x37f902['TEXT']?_0x37f902[_0x14d8dd(0x2c8)]:_0x37f902['RECT'],'segmentId':typeof _0x5959d3==_0x14d8dd(0x347)?String(_0x5959d3):'','segmentPage':Number(_0x56b199!=null?_0x56b199:-0x1)});}return _0x40657c['some'](_0x285f19=>_0x285f19[_0x14d8dd(0x21e)])||(_0x40657c[0x0][_0x14d8dd(0x21e)]=!0x0),_0x40657c;}class He extends _0x402deb{constructor(){const _0x122351=_0x252217;super(...arguments),_(this,_0x122351(0x291),new _0x88603b(null)),_(this,'collabCursorState$',this[_0x122351(0x291)][_0x122351(0x28a)]());}[_0x252217(0x17b)](_0xe5f560){const _0xbc317d=_0x252217,{unitID:_0x13a916,memberID:_0x33e8f1,textRanges:_0x1b39f9}=_0xe5f560,_0x30e0fc=Tt(_0x1b39f9);if(_0x30e0fc==='')return;const _0x187f62={'unitID':_0x13a916,'memberID':_0x33e8f1,'selection':_0x30e0fc};this[_0xbc317d(0x291)]['next'](_0x187f62);}}var hi=Object[_0x252217(0x34f)],ui=(_0x479605,_0x391c82,_0x2babf6,_0x2a3589)=>{const _0x328855=_0x252217;for(var _0x173d1f=_0x2a3589>0x1?void 0x0:_0x2a3589?hi(_0x391c82,_0x2babf6):_0x391c82,_0x17d1a7=_0x479605[_0x328855(0x259)]-0x1,_0x3a6f0e;_0x17d1a7>=0x0;_0x17d1a7--)(_0x3a6f0e=_0x479605[_0x17d1a7])&&(_0x173d1f=_0x3a6f0e(_0x173d1f)||_0x173d1f);return _0x173d1f;},P=(_0x35f231,_0x2eaf95)=>(_0x50912c,_0xa6c381)=>_0x2eaf95(_0x50912c,_0xa6c381,_0x35f231);const di=0x12c,fi=0x64;function _0x1ea5(_0x454afd,_0x41ea16){const _0x1cf4a4=_0x1cf4();return _0x1ea5=function(_0x1ea558,_0x4c2101){_0x1ea558=_0x1ea558-0x170;let _0x10f78d=_0x1cf4a4[_0x1ea558];return _0x10f78d;},_0x1ea5(_0x454afd,_0x41ea16);}let Ue=class extends _0x402deb{constructor(_0x2a0300,_0x23396d,_0x3f0364,_0x3986f3,_0x331b20,_0x5ddd12,_0x298e6f,_0x53e9eb,_0xd719b7){const _0x43edfe=_0x252217;super(),_(this,'_online',!0x1),_(this,_0x43edfe(0x183),!0x1),_(this,'_cursorInfo$',new _0x88603b(new Map())),_(this,_0x43edfe(0x198),this[_0x43edfe(0x201)][_0x43edfe(0x28a)]()),_(this,_0x43edfe(0x209),new _0x88603b([])),_(this,_0x43edfe(0x267),this[_0x43edfe(0x209)][_0x43edfe(0x1be)](_0x1e78a7(di))),_(this,_0x43edfe(0x227),_0x30c378(_0x41ee63=>{const _0x310325=_0x43edfe,_0x5ee0cb={'eventID':_0x1ae4a0['UPDATE_CURSOR'],'data':{'unitID':this[_0x310325(0x1d8)],'memberID':this['_session'][_0x310325(0x1f6)](),'selection':Tt(_0x41ee63)}};this[_0x310325(0x354)][_0x310325(0x240)](_0x5ee0cb,this[_0x310325(0x1d8)]);},fi)),(this['unitID']=_0x2a0300,this['_session']=_0x23396d,this[_0x43edfe(0x2e5)]=_0x3f0364,this[_0x43edfe(0x26d)]=_0x3986f3,this[_0x43edfe(0x36a)]=_0x331b20,this[_0x43edfe(0x2e6)]=_0x5ddd12,this[_0x43edfe(0x286)]=_0x298e6f,this['_univerInstanceService']=_0x53e9eb,this[_0x43edfe(0x367)]=_0xd719b7);}get[_0x252217(0x17c)](){const _0x570b54=_0x252217;return this[_0x570b54(0x201)]['getValue']();}get[_0x252217(0x34a)](){const _0x1bef9a=_0x252217;return this[_0x1bef9a(0x209)][_0x1bef9a(0x18b)]();}['dispose'](){const _0x151bea=_0x252217;super[_0x151bea(0x248)](),this[_0x151bea(0x201)][_0x151bea(0x278)](new Map()),this[_0x151bea(0x201)][_0x151bea(0x180)](),this['_roomMembers$'][_0x151bea(0x278)]([]),this[_0x151bea(0x209)]['complete']();}[_0x252217(0x1f0)](){const _0x36db9f=_0x252217;this[_0x36db9f(0x183)]||(this[_0x36db9f(0x183)]=!0x0,this[_0x36db9f(0x354)][_0x36db9f(0x205)][_0x36db9f(0x1be)](_0x46b83f(this[_0x36db9f(0x22f)]))[_0x36db9f(0x26e)](_0x5f063f=>{const _0x590eda=_0x36db9f;_0x5f063f===_0x14840a['ONLINE']?this[_0x590eda(0x1d3)]():this[_0x590eda(0x328)]();}),this['_session'][_0x36db9f(0x222)][_0x36db9f(0x1be)](_0x46b83f(this[_0x36db9f(0x22f)]))[_0x36db9f(0x26e)](_0x36a58b=>{const _0xdcc767=_0x36db9f,_0x5975c8=_0x36a58b[_0xdcc767(0x192)];_0x5975c8===_0x1ae4a0[_0xdcc767(0x346)]&&this[_0xdcc767(0x1d7)](_0x36a58b),_0x5975c8===_0x1ae4a0[_0xdcc767(0x24c)]&&this[_0xdcc767(0x300)](_0x36a58b);}),this['disposeWithMe'](this[_0x36db9f(0x367)][_0x36db9f(0x295)](_0x1c3ba2=>{const _0x4199aa=_0x36db9f,_0x172c2d=_0x1c3ba2[_0x4199aa(0x35e)];_0x172c2d!=null&&this['_online']&&_0x1c3ba2['id']===_0x2c3b54['id']&&_0x172c2d[_0x4199aa(0x28e)]===this[_0x4199aa(0x1d8)]&&_0x172c2d[_0x4199aa(0x2d1)]===!0x1&&_0x172c2d['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x172c2d[_0x4199aa(0x20e)]);})),this[_0x36db9f(0x2e6)][_0x36db9f(0x338)][_0x36db9f(0x1be)](_0x46b83f(this['dispose$']))['subscribe'](_0x114284=>{const _0x1eddd3=_0x36db9f;if((_0x114284==null?void 0x0:_0x114284['unitID'])!==this[_0x1eddd3(0x1d8)])return;const _0x504769={'eventID':_0x1ae4a0[_0x1eddd3(0x346)],'data':_0x114284};this['_onCursorUpdate'](_0x504769);}),this[_0x36db9f(0x29b)](this[_0x36db9f(0x367)][_0x36db9f(0x295)](_0x2a64df=>{const _0x940697=_0x36db9f;if(_0x2a64df[_0x940697(0x35e)]==null)return;const _0x2147fb=_0x2a64df[_0x940697(0x35e)];if(_0x2a64df['id']!==_0x3e5575['id']||_0x2147fb[_0x940697(0x28e)]!==this[_0x940697(0x1d8)])return;const _0x32d429={'id':_0x940697(0x249),'params':_0x2147fb},_0x59d513=this[_0x940697(0x17c)];for(const [_0x13fdbd,_0x5f09c5]of _0x59d513){const _0x32226e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x940697(0x1d8)],'actions':null,'textRanges':_0x5f09c5[_0x940697(0x20e)]}},_0x4d7f47=this[_0x940697(0x286)][_0x940697(0x1a3)](_0x32d429,_0x32226e,!0x1);if(_0x41ed2e(_0x4d7f47))throw _0x4d7f47[_0x940697(0x1e1)];_0x59d513['set'](_0x13fdbd,{..._0x5f09c5,'ranges':_0x4d7f47[_0x940697(0x363)]['params']['textRanges']});}queueMicrotask(()=>{const _0x154c60=_0x940697;this[_0x154c60(0x201)][_0x154c60(0x278)](_0x59d513);});})));}['_onCursorUpdate'](_0x2369bd){const _0x27609c=_0x252217;var _0x503280,_0x366a0b;const {memberID:_0x3bb5fe,selection:_0x19bdc6}=_0x2369bd[_0x27609c(0x2ea)],_0x4e84a2=_i(_0x19bdc6),_0x43663a=(_0x366a0b=(_0x503280=this['_memberService'][_0x27609c(0x29a)](this[_0x27609c(0x1d8)],_0x3bb5fe))==null?void 0x0:_0x503280[_0x27609c(0x202)])!=null?_0x366a0b:_0x27609c(0x1fe),_0x5eaa8d={'color':this[_0x27609c(0x26d)][_0x27609c(0x1ce)](_0x3bb5fe),'name':_0x43663a,'ranges':_0x4e84a2},_0x5851f7=this[_0x27609c(0x17c)];_0x5851f7[_0x27609c(0x1c5)](_0x3bb5fe,_0x5eaa8d),this['_cursorInfo$'][_0x27609c(0x278)](_0x5851f7);}[_0x252217(0x300)](_0x32ba6a){const _0x47c934=_0x252217,{memberID:_0x559fa1}=_0x32ba6a[_0x47c934(0x2ea)],_0x28ca1c=this[_0x47c934(0x17c)];_0x28ca1c[_0x47c934(0x2ce)](_0x559fa1),this[_0x47c934(0x201)][_0x47c934(0x278)](_0x28ca1c);}[_0x252217(0x1d3)](){const _0x5939b0=_0x252217;var _0x42f3fe;if(this[_0x5939b0(0x2da)]=!0x0,((_0x42f3fe=this[_0x5939b0(0x24a)]['getFocusedUnit']())==null?void 0x0:_0x42f3fe[_0x5939b0(0x190)]())!==this['unitID'])return;const _0x5a033f=this[_0x5939b0(0x2e5)][_0x5939b0(0x302)](_0x865cc4)['getDocRanges']();Array[_0x5939b0(0x345)](_0x5a033f)&&_0x5a033f[_0x5939b0(0x259)]>0x0&&this[_0x5939b0(0x227)](_0x5a033f);}[_0x252217(0x328)](){const _0x4523b0=_0x252217;this[_0x4523b0(0x2da)]=!0x1;}};Ue=ui([P(0x2,_0x473849(_0x25a4c0)),P(0x3,_0x473849(ke)),P(0x4,_0x473849(_0x4742b5)),P(0x5,_0x473849(He)),P(0x6,_0x409fe5),P(0x7,_0x1ba300),P(0x8,_0x192617)],Ue);var Si=Object[_0x252217(0x34f)],mi=(_0x21e5fe,_0x55379b,_0x53a258,_0x2cde88)=>{for(var _0x11f28d=_0x2cde88>0x1?void 0x0:_0x2cde88?Si(_0x55379b,_0x53a258):_0x55379b,_0x307f9b=_0x21e5fe['length']-0x1,_0x2c11cf;_0x307f9b>=0x0;_0x307f9b--)(_0x2c11cf=_0x21e5fe[_0x307f9b])&&(_0x11f28d=_0x2c11cf(_0x11f28d)||_0x11f28d);return _0x11f28d;},x=(_0x19a4c3,_0x68bcad)=>(_0xf6dd92,_0x3f962c)=>_0x68bcad(_0xf6dd92,_0x3f962c,_0x19a4c3);const Ii=0x12c,gi=0x64,vi=()=>{let _0x39ff58=[],_0x21c1ec=!0x1;return _0x2fa99a=>{const _0x1095ed=_0x1ea5;_0x39ff58[_0x1095ed(0x2eb)](_0x2fa99a),_0x21c1ec||(_0x21c1ec=!0x0,setTimeout(()=>{const _0x5bda98=_0x1095ed;_0x39ff58[_0x5bda98(0x1f3)](_0x164d19=>_0x164d19()),_0x39ff58=[],_0x21c1ec=!0x1;}));};};let Me=class extends _0x402deb{constructor(_0x199963,_0x38a430,_0x54298b,_0x43ec47,_0x3c09b4,_0x3b37ac,_0x2b9d61,_0x21aaab){const _0xd98d8f=_0x252217;super(),_(this,_0xd98d8f(0x2da),!0x1),_(this,_0xd98d8f(0x183),!0x1),_(this,_0xd98d8f(0x201),new _0x88603b(new Map())),_(this,_0xd98d8f(0x198),this['_cursorInfo$'][_0xd98d8f(0x28a)]()),_(this,'_roomMembers$',new _0x88603b([])),_(this,_0xd98d8f(0x267),this[_0xd98d8f(0x209)][_0xd98d8f(0x1be)](_0x1e78a7(Ii))),_(this,_0xd98d8f(0x227),_0x30c378((_0x1e2688,_0x4e9d5c)=>{const _0x2a353e=_0xd98d8f,_0xeb969e={'eventID':_0x1ae4a0[_0x2a353e(0x346)],'data':{'unitID':this[_0x2a353e(0x1d8)],'memberID':this[_0x2a353e(0x354)][_0x2a353e(0x1f6)](),'selection':_0x159cae(_0x1e2688,_0x4e9d5c['range'])}};this[_0x2a353e(0x354)]['send'](_0xeb969e,this[_0x2a353e(0x1d8)]);},gi)),(this[_0xd98d8f(0x1d8)]=_0x199963,this[_0xd98d8f(0x354)]=_0x38a430,this['_injector']=_0x54298b,this['_colorAssignService']=_0x43ec47,this[_0xd98d8f(0x36a)]=_0x3c09b4,this[_0xd98d8f(0x24a)]=_0x3b37ac,this['_commandService']=_0x2b9d61,this[_0xd98d8f(0x244)]=_0x21aaab);}get['cursorInfo'](){const _0x4e249e=_0x252217;return this[_0x4e249e(0x201)][_0x4e249e(0x18b)]();}get[_0x252217(0x34a)](){const _0x15a382=_0x252217;return this[_0x15a382(0x209)][_0x15a382(0x18b)]();}[_0x252217(0x248)](){const _0xd17124=_0x252217;super[_0xd17124(0x248)](),this[_0xd17124(0x201)][_0xd17124(0x278)](new Map()),this[_0xd17124(0x201)][_0xd17124(0x180)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0xd17124(0x180)]();}[_0x252217(0x1f0)](){const _0x1964e6=_0x252217;this[_0x1964e6(0x183)]||(this[_0x1964e6(0x183)]=!0x0,this['_session']['sessionStatus$'][_0x1964e6(0x1be)](_0x46b83f(this[_0x1964e6(0x22f)]))['subscribe'](_0x27dfea=>{const _0x4669a9=_0x1964e6;_0x27dfea===_0x14840a[_0x4669a9(0x296)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1964e6(0x354)][_0x1964e6(0x222)][_0x1964e6(0x1be)](_0x46b83f(this[_0x1964e6(0x22f)]))[_0x1964e6(0x26e)](_0x6f39f6=>{const _0x36f159=_0x1964e6,_0x11c220=_0x6f39f6[_0x36f159(0x192)];_0x11c220===_0x1ae4a0[_0x36f159(0x346)]&&this['_onCursorUpdate'](_0x6f39f6),_0x11c220===_0x1ae4a0[_0x36f159(0x24c)]&&this[_0x36f159(0x300)](_0x6f39f6);}),this['_onRefRangeChange'](),this[_0x1964e6(0x29b)](this['_commandService'][_0x1964e6(0x295)](_0x480e5b=>{const _0x1838e9=_0x1964e6;if(this[_0x1838e9(0x2da)]&&_0x480e5b['id']===_0x5c95cb['id']&&_0x480e5b['params'][_0x1838e9(0x28e)]===this[_0x1838e9(0x1d8)]){const _0x553f18=_0x480e5b[_0x1838e9(0x35e)];this[_0x1838e9(0x227)](_0x553f18[_0x1838e9(0x284)],_0x553f18[_0x1838e9(0x33d)][0x0]);}})));}[_0x252217(0x1d7)](_0x13f249){const _0x380c92=_0x252217;var _0x3a3f75,_0x3ddb57;const {memberID:_0x2bed27,selection:_0x2c41bf}=_0x13f249[_0x380c92(0x2ea)],{sheetName:_0xe41ecc,range:_0x429605}=_0x404216(_0x2c41bf),_0x827059={'name':(_0x3ddb57=(_0x3a3f75=this[_0x380c92(0x36a)]['getMember'](this[_0x380c92(0x1d8)],_0x2bed27))==null?void 0x0:_0x3a3f75['name'])!=null?_0x3ddb57:_0x380c92(0x1fe),'range':this[_0x380c92(0x24e)](_0xe41ecc,_0x429605),'sheetID':_0xe41ecc,'color':this[_0x380c92(0x26d)][_0x380c92(0x1ce)](_0x2bed27),'selection':_0x2c41bf},_0x3036c7=this[_0x380c92(0x17c)];_0x3036c7[_0x380c92(0x1c5)](_0x2bed27,_0x827059),this[_0x380c92(0x201)][_0x380c92(0x278)](_0x3036c7);}['_onCursorDelete'](_0x327921){const _0x23e74d=_0x252217,{memberID:_0x20f0a0}=_0x327921[_0x23e74d(0x2ea)],_0x380873=this[_0x23e74d(0x17c)];_0x380873[_0x23e74d(0x2ce)](_0x20f0a0),this['_cursorInfo$'][_0x23e74d(0x278)](_0x380873);}[_0x252217(0x24e)](_0x2176c7,_0x5a1e37){const _0xc63a41=_0x252217;var _0x5a3369,_0x2a2d63;const _0x44e2fd=(_0x2a2d63=(_0x5a3369=this[_0xc63a41(0x24a)]['getUniverSheetInstance'](this[_0xc63a41(0x1d8)]))==null?void 0x0:_0x5a3369[_0xc63a41(0x275)](_0x2176c7))==null?void 0x0:_0x2a2d63[_0xc63a41(0x31d)]();return(_0x44e2fd==null?void 0x0:_0x44e2fd[_0xc63a41(0x2a1)](_0x496cac=>_0x35b3ef[_0xc63a41(0x231)](_0x496cac,_0x5a1e37)))||_0x5a1e37;}[_0x252217(0x1d0)](){const _0x2b2d40=_0x252217,_0x1a355d=new _0x1c3441(),_0x5e2942=vi(),_0x1e8f7e=()=>{const _0x5578ff=_0x1ea5;_0x1a355d[_0x5578ff(0x248)]();const _0x1fd94b=(_0x40daf6,_0x669a65,_0x54813e,_0x9899f3)=>{const _0x1aab7c=_0x5578ff;let _0x2f619e=[];switch(_0x40daf6['id']){case _0x3ec484['DeleteRangeMoveLeftCommandId']:{_0x2f619e=_0x5509a6(_0x40daf6,_0x9899f3);break;}case _0x3ec484['DeleteRangeMoveUpCommandId']:{_0x2f619e=_0x1f2c87(_0x40daf6,_0x9899f3);break;}case _0x3ec484[_0x1aab7c(0x1c6)]:{_0x2f619e=_0x3367cf(_0x40daf6,_0x9899f3);break;}case _0x3ec484[_0x1aab7c(0x187)]:{_0x2f619e=_0x4fb699(_0x40daf6,_0x9899f3);break;}case _0x3ec484[_0x1aab7c(0x18a)]:{_0x2f619e=_0x5612f2(_0x40daf6,_0x9899f3);break;}case _0x3ec484[_0x1aab7c(0x1e2)]:{_0x2f619e=_0x5641d7(_0x40daf6,_0x9899f3);break;}case _0x3ec484['MoveRangeCommandId']:{_0x2f619e=_0x1a5872(_0x40daf6,_0x9899f3);break;}case _0x3ec484[_0x1aab7c(0x321)]:{_0x2f619e=_0x4fe2a9(_0x40daf6,_0x9899f3);break;}case _0x3ec484[_0x1aab7c(0x20d)]:{_0x2f619e=_0x515831(_0x40daf6,_0x9899f3);break;}}const _0x461203=_0x1ab6c9(_0x2f619e,_0x9899f3),_0x590626=this[_0x1aab7c(0x17c)]['get'](_0x669a65);if(_0x590626&&_0x461203){const _0x1ce1cd={..._0x590626,'range':_0x461203};this[_0x1aab7c(0x17c)][_0x1aab7c(0x1c5)](_0x669a65,_0x1ce1cd),_0x5e2942(()=>{const _0x5716b6=_0x1aab7c,_0x292728=this[_0x5716b6(0x244)][_0x5716b6(0x2c4)](_0x461203,_0x38be8=>(_0x292728[_0x5716b6(0x248)](),_0x1fd94b(_0x38be8,_0x669a65,_0x54813e,_0x461203)));_0x1a355d['add'](_0x292728);});}return{'redos':[],'undos':[]};};this[_0x5578ff(0x17c)][_0x5578ff(0x1f3)]((_0x51653b,_0x59d13a)=>{const _0x2a4d87=_0x5578ff,{range:_0xc424d2,sheetID:_0x13aead}=_0x51653b,_0x493699=this[_0x2a4d87(0x244)]['registerRefRange'](_0xc424d2,_0x524e8e=>(_0x493699[_0x2a4d87(0x248)](),_0x1fd94b(_0x524e8e,_0x59d13a,_0x13aead,_0xc424d2)));_0x1a355d[_0x2a4d87(0x31c)](_0x493699);});};this[_0x2b2d40(0x29b)](_0x50b6ce(this['_cursorInfo$'][_0x2b2d40(0x26e)](()=>{_0x1e8f7e();})));}[_0x252217(0x1d3)](){const _0x28f223=_0x252217;var _0x430851,_0x303351;if(this['_online']=!0x0,((_0x430851=this[_0x28f223(0x24a)]['getFocusedUnit']())==null?void 0x0:_0x430851['getUnitId']())!==this[_0x28f223(0x1d8)])return;const _0x425e3c=(_0x303351=this['_injector'][_0x28f223(0x302)](_0x5fa197)['getCurrentSelections']())==null?void 0x0:_0x303351[0x0],_0x4151af=this[_0x28f223(0x24a)]['getCurrentUnitForType'](_0x1a81f3[_0x28f223(0x2fb)])[_0x28f223(0x232)]();_0x425e3c&&_0x4151af&&this['_updateLocalCursor'](_0x4151af[_0x28f223(0x1e3)](),_0x425e3c);}['_toggleOffline'](){const _0x2bd1cb=_0x252217;this[_0x2bd1cb(0x2da)]=!0x1;}};Me=mi([x(0x2,_0x473849(_0x25a4c0)),x(0x3,_0x473849(ke)),x(0x4,_0x473849(_0x4742b5)),x(0x5,_0x1ba300),x(0x6,_0x192617),x(0x7,_0x473849(_0x3d8b4b))],Me);var pi=Object[_0x252217(0x34f)],Ci=(_0x3f471c,_0x4a250a,_0x19e172,_0x52cfa0)=>{const _0x1b923f=_0x252217;for(var _0x32dcf2=_0x52cfa0>0x1?void 0x0:_0x52cfa0?pi(_0x4a250a,_0x19e172):_0x4a250a,_0xe4fab2=_0x3f471c[_0x1b923f(0x259)]-0x1,_0x524060;_0xe4fab2>=0x0;_0xe4fab2--)(_0x524060=_0x3f471c[_0xe4fab2])&&(_0x32dcf2=_0x524060(_0x32dcf2)||_0x32dcf2);return _0x32dcf2;},Se=(_0x22b47b,_0x2690ff)=>(_0x45e5de,_0x3a0f93)=>_0x2690ff(_0x45e5de,_0x3a0f93,_0x22b47b);let H=class extends _0x402deb{constructor(_0x15d818,_0x1cb8c3,_0x23fbf5){const _0x30ca35=_0x252217;super(),_(this,'_entities',new Map()),_(this,_0x30ca35(0x36d),new _0x5da22c()),(this[_0x30ca35(0x24a)]=_0x15d818,this['_injector']=_0x1cb8c3,this[_0x30ca35(0x32b)]=_0x23fbf5,this['_init']());}[_0x252217(0x248)](){const _0x1613bf=_0x252217;super[_0x1613bf(0x248)](),this['_entityInit$'][_0x1613bf(0x180)](),this[_0x1613bf(0x270)][_0x1613bf(0x1f3)](_0x279d79=>_0x279d79['dispose']());}[_0x252217(0x247)](_0x51ccf9){const _0x3dcbc0=_0x252217;return this[_0x3dcbc0(0x270)][_0x3dcbc0(0x1b9)](_0x51ccf9)?this['_entities']['get'](_0x51ccf9)['cursorInfo$']:this[_0x3dcbc0(0x36d)]['pipe'](_0x13130b(_0x13867e=>_0x13867e['unitID']===_0x51ccf9),_0x14092f(_0x4389f3=>_0x4389f3[_0x3dcbc0(0x198)]));}[_0x252217(0x183)](){const _0x78648a=_0x252217;this[_0x78648a(0x24a)]['getTypeOfUnitAdded$'](_0x1a81f3['UNIVER_SHEET'])['pipe'](_0x46b83f(this[_0x78648a(0x22f)]))[_0x78648a(0x26e)](async _0x307207=>{const _0x10df5d=_0x78648a,_0x3bee11=_0x307207[_0x10df5d(0x190)](),_0x3f821b=await this['_startSheetCollabCursor'](_0x3bee11);this[_0x10df5d(0x36d)]['next'](_0x3f821b),this[_0x10df5d(0x270)][_0x10df5d(0x1c5)](_0x3bee11,_0x3f821b);}),this[_0x78648a(0x24a)][_0x78648a(0x314)](_0x1a81f3[_0x78648a(0x2fc)])['pipe'](_0x46b83f(this['dispose$']))[_0x78648a(0x1be)](_0x13130b(_0x4c9fe4=>!_0x4c9fe4[_0x78648a(0x190)]()[_0x78648a(0x306)]('__')))[_0x78648a(0x26e)](async _0x2de227=>{const _0x233a46=_0x78648a,_0x4d80e5=_0x2de227[_0x233a46(0x190)](),_0x8ffb8a=await this[_0x233a46(0x1f2)](_0x4d80e5);this[_0x233a46(0x36d)][_0x233a46(0x278)](_0x8ffb8a),this['_entities'][_0x233a46(0x1c5)](_0x4d80e5,_0x8ffb8a);}),_0x3e635e(this[_0x78648a(0x24a)][_0x78648a(0x353)](_0x1a81f3['UNIVER_DOC']),this[_0x78648a(0x24a)][_0x78648a(0x353)](_0x1a81f3[_0x78648a(0x2fb)]))['pipe'](_0x46b83f(this[_0x78648a(0x22f)]))[_0x78648a(0x26e)](_0x15058f=>{const _0x5752e9=_0x78648a,_0x8ef674=_0x15058f['getUnitId'](),_0x1f78b5=this[_0x5752e9(0x270)]['get'](_0x8ef674);_0x1f78b5&&(_0x1f78b5[_0x5752e9(0x248)](),this[_0x5752e9(0x270)][_0x5752e9(0x2ce)](_0x8ef674));});}async[_0x252217(0x2a5)](_0x53b7d7){const _0x58be1b=_0x252217,_0x54d640=await this['_collabSessionService'][_0x58be1b(0x21f)](_0x53b7d7),_0x55cdbd=this['_injector']['createInstance'](Me,_0x53b7d7,_0x54d640);return _0x55cdbd[_0x58be1b(0x1f0)](),_0x55cdbd;}async[_0x252217(0x1f2)](_0x408480){const _0x50a3f4=_0x252217,_0x16e8bc=await this[_0x50a3f4(0x32b)][_0x50a3f4(0x21f)](_0x408480),_0x538eef=this[_0x50a3f4(0x2e5)]['createInstance'](Ue,_0x408480,_0x16e8bc);return _0x538eef[_0x50a3f4(0x1f0)](),_0x538eef;}};H=Ci([Se(0x0,_0x1ba300),Se(0x1,_0x473849(_0x25a4c0)),Se(0x2,_0x473849(_0x158b64))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x50b863,_0x5ed69d){const _0xb4f2d=_0x252217;let {radius:_0x522847,width:_0x2df486,height:_0x354317}=_0x5ed69d;_0x522847=_0x522847!=null?_0x522847:0x0,_0x2df486=_0x2df486!=null?_0x2df486:0x1e,_0x354317=_0x354317!=null?_0x354317:0x1e;let _0x5e5cb2=0x0,_0x38e2e0=0x0,_0x48eda8=0x0;_0x5e5cb2=_0x38e2e0=_0x48eda8=Math[_0xb4f2d(0x325)](_0x522847,_0x2df486/0x2,_0x354317/0x2),_0x50b863['beginPath'](),_0x50b863[_0xb4f2d(0x25f)](_0x5e5cb2,0x0),_0x50b863[_0xb4f2d(0x2e8)](_0x2df486-_0x38e2e0,0x0),_0x50b863[_0xb4f2d(0x2ef)](_0x2df486-_0x38e2e0,_0x38e2e0,_0x38e2e0,Math['PI']*0x3/0x2,0x0,!0x1),_0x50b863[_0xb4f2d(0x2e8)](_0x2df486,_0x354317-_0x48eda8),_0x50b863[_0xb4f2d(0x2ef)](_0x2df486-_0x48eda8,_0x354317-_0x48eda8,_0x48eda8,0x0,Math['PI']/0x2,!0x1),_0x50b863[_0xb4f2d(0x2e8)](0x0,_0x354317),_0x50b863[_0xb4f2d(0x2e8)](0x0,_0x5e5cb2),_0x50b863[_0xb4f2d(0x2ef)](_0x5e5cb2,_0x5e5cb2,_0x5e5cb2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x50b863[_0xb4f2d(0x173)](),_0x5ed69d[_0xb4f2d(0x305)]&&(_0x50b863[_0xb4f2d(0x256)](),_0x50b863[_0xb4f2d(0x358)]=_0x5ed69d['fill'],_0x5ed69d['fillRule']===_0xb4f2d(0x2a9)?_0x50b863[_0xb4f2d(0x305)](_0xb4f2d(0x2a9)):_0x50b863['fill'](),_0x50b863[_0xb4f2d(0x1d9)]());}class he extends _0x44b883{constructor(_0x3be06b,_0x2cf484){const _0xb137ba=_0x252217;super(_0x3be06b,_0x2cf484),_(this,_0xb137ba(0x1cc)),_(this,_0xb137ba(0x2b4)),(this[_0xb137ba(0x1cc)]=_0x2cf484==null?void 0x0:_0x2cf484[_0xb137ba(0x1cc)],this[_0xb137ba(0x2b4)]=_0x2cf484==null?void 0x0:_0x2cf484['text']);}static[_0x252217(0x336)](_0x114adf,_0x43bf0c){const _0x42add7=_0x252217,{text:_0x28d384,color:_0x5defff}=_0x43bf0c;_0x114adf[_0x42add7(0x256)](),_0x114adf['font']=_0x42add7(0x340);const _0x5e9f6b=_0x114adf[_0x42add7(0x309)](_0x28d384)[_0x42add7(0x253)],_0x561729=Math[_0x42add7(0x325)](_0x5e9f6b+0x2*me,Qe);Oi(_0x114adf,{'height':ee,'radius':0x4,'width':_0x561729,'fill':_0x5defff}),_0x114adf[_0x42add7(0x358)]='#FFF';const _0x3fa13e=me,_0x5eb251=ee-Ei,_0xf2666c=Qe-0x2*me;if(_0x5e9f6b>_0xf2666c){let _0x2c2a72='',_0x519c24=0x0;for(const _0x720073 of _0x28d384){const _0x104b92=_0x114adf['measureText'](_0x720073)[_0x42add7(0x253)];if(_0x519c24+_0x104b92<=_0xf2666c-_0x114adf[_0x42add7(0x309)](_0x42add7(0x206))[_0x42add7(0x253)])_0x2c2a72+=_0x720073,_0x519c24+=_0x104b92;else{_0x2c2a72+=_0x42add7(0x206);break;}}_0x114adf['fillText'](_0x2c2a72,_0x3fa13e,_0x5eb251);}else _0x114adf[_0x42add7(0x219)](_0x28d384,_0x3fa13e,_0x5eb251);_0x114adf[_0x42add7(0x1d9)]();}['_draw'](_0x9c6dd8){const _0x436600=_0x252217;he[_0x436600(0x336)](_0x9c6dd8,this);}}const Ie='collab-text-anchor-',bi=_0x252217(0x2e3),Ti=_0x252217(0x258),X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x252217(0x362);class qe{constructor(_0x340f6f,_0x4899b7,_0x56a284,_0x559e60){const _0x23bd2f=_0x252217;_(this,'_shapes',[]),_(this,_0x23bd2f(0x208),null),_(this,_0x23bd2f(0x1a0),null),_(this,_0x23bd2f(0x1b3),null),_(this,_0x23bd2f(0x1d5),null),_(this,_0x23bd2f(0x195),null),(this['_cursor']=_0x340f6f,this[_0x23bd2f(0x31a)]=_0x4899b7,this[_0x23bd2f(0x17f)]=_0x56a284,this[_0x23bd2f(0x1c9)]=_0x559e60,this[_0x23bd2f(0x34d)]());}set[_0x252217(0x2f9)](_0x59aaf0){const _0x1c86c4=_0x252217;_0x59aaf0?(this[_0x1c86c4(0x1b3)]&&this[_0x1c86c4(0x1b3)][_0x1c86c4(0x299)](),this['_textBubble']&&this[_0x1c86c4(0x1a0)][_0x1c86c4(0x2d8)]()):(this[_0x1c86c4(0x1b3)]&&this[_0x1c86c4(0x1b3)]['show'](),this[_0x1c86c4(0x1a0)]&&this['_textBubble'][_0x1c86c4(0x299)]());}[_0x252217(0x248)](){const _0x284198=_0x252217;for(const _0x95a9e7 of this['_shapes'])_0x95a9e7[_0x284198(0x248)]();this[_0x284198(0x1a0)]&&this[_0x284198(0x1a0)][_0x284198(0x248)](),this[_0x284198(0x1b3)]&&this[_0x284198(0x1b3)][_0x284198(0x248)](),this[_0x284198(0x208)]&&this['_anchor'][_0x284198(0x248)](),this[_0x284198(0x195)]&&this['_eventUnsubscribe']();}['_render'](){const _0x5acb0d=_0x252217;var _0x8b1058;const {_docSkeleton:_0x47f994,_document:_0x32ef75}=this,{color:_0x285985,name:_0x2b5550,ranges:_0x564402}=this['_cursor'],_0x28f94a=_0x32ef75[_0x5acb0d(0x27c)](),{docsLeft:_0x30d4cf,docsTop:_0x5f1183}=_0x28f94a,_0x2564ef=new _0x47b29e(_0x28f94a,_0x47f994);for(const {startOffset:_0xc4f01e,endOffset:_0x345b39,rangeType:_0x3e0f6c,segmentId:_0x1f8d99,segmentPage:_0x28735a,collapsed:_0x536d68,isActive:_0x90b4ec}of _0x564402){const _0x3721a8=_0x47f994[_0x5acb0d(0x1e4)](_0xc4f01e,!0x0,_0x1f8d99,_0x28735a);let _0x5dec20=_0x47f994[_0x5acb0d(0x1e4)](_0x345b39,!0x0,_0x1f8d99,_0x28735a);if(_0x5dec20==null&&(_0x5dec20=_0x47f994[_0x5acb0d(0x1e4)](_0x345b39-0x1,!0x1,_0x1f8d99,_0x28735a)),_0x90b4ec){const {contentBoxPointGroup:_0x31e09c}=_0x2564ef[_0x5acb0d(0x29f)](_0x5dec20,_0x5dec20);if(_0x31e09c['length']===0x0)continue;this[_0x5acb0d(0x332)](_0x285985,_0x31e09c,_0x30d4cf,_0x5f1183,_0x2b5550),this[_0x5acb0d(0x195)]=this['_handleHover']();}if(_0x3721a8&&_0x5dec20){if(_0x3e0f6c===_0x37f902[_0x5acb0d(0x285)]){const _0x24dbf8=new _0x5f2b9e(_0x28f94a,_0x47f994),{pointGroup:_0x524474}=(_0x8b1058=_0x24dbf8[_0x5acb0d(0x29f)](_0x3721a8,_0x5dec20))!=null?_0x8b1058:{};if(_0x524474==null||_0x524474[_0x5acb0d(0x259)]===0x0)continue;this[_0x5acb0d(0x27f)](_0x285985,_0x524474,_0x30d4cf,_0x5f1183);}else{if(!_0x536d68){const {borderBoxPointGroup:_0x579d65}=_0x2564ef[_0x5acb0d(0x29f)](_0x3721a8,_0x5dec20);if(_0x579d65[_0x5acb0d(0x259)]===0x0)continue;this[_0x5acb0d(0x1f7)](_0x285985,_0x579d65,_0x30d4cf,_0x5f1183);}}}}}[_0x252217(0x332)](_0x2ea5d1,_0x4113f8,_0x6a6ab4,_0x26225c,_0x1805aa){const _0x10dd53=_0x252217,_0x942ebd=this[_0x10dd53(0x2cd)](_0x4113f8),{left:_0x51fa0e,top:_0x12bcdf,height:_0x5edbe1}=_0x942ebd,_0x37d152=this[_0x10dd53(0x193)](),_0x1776a3=Di/_0x37d152,_0x2b22d4=new _0x25cb14(Ie+_0xde0aa9[_0x10dd53(0x238)](X),{'left':_0x51fa0e+_0x6a6ab4-_0x1776a3,'top':_0x12bcdf+_0x26225c,'height':_0x5edbe1,'width':Ri,'fill':_0x2ea5d1||_0x55d726(_0x5e612c['black'],0x0),'strokeWidth':_0x1776a3,'stroke':Ni,'evented':!0x0});this[_0x10dd53(0x208)]=_0x2b22d4,this[_0x10dd53(0x31a)][_0x10dd53(0x356)](_0x2b22d4,_0x311489);const _0x593476=new _0x25cb14(Ie+_0xde0aa9[_0x10dd53(0x238)](X),{'left':_0x51fa0e+_0x6a6ab4-_0x1776a3,'top':_0x12bcdf+_0x26225c-ge/0x2,'height':ge,'width':ge,'fill':_0x2ea5d1||_0x55d726(_0x5e612c[_0x10dd53(0x2d2)],0x0),'strokeWidth':0x0,'stroke':_0x2ea5d1||_0x55d726(_0x5e612c[_0x10dd53(0x2d2)],0x0),'evented':!0x1});this[_0x10dd53(0x1b3)]=_0x593476,this['_scene']['addObject'](_0x593476,_0x311489);const _0x854e21=new he(Ie+_0xde0aa9[_0x10dd53(0x238)](X),{'left':_0x51fa0e+_0x6a6ab4-_0x1776a3,'top':_0x12bcdf+_0x26225c-ee,'text':_0x1805aa,'color':_0x2ea5d1});this[_0x10dd53(0x1a0)]=_0x854e21,this[_0x10dd53(0x31a)][_0x10dd53(0x356)](_0x854e21,_0x311489),this[_0x10dd53(0x2f9)]=!0x1;}[_0x252217(0x185)](){const _0x47c330=_0x252217,_0x18964d=this[_0x47c330(0x208)][_0x47c330(0x1e0)]['subscribeEvent'](()=>{const _0x503d09=_0x47c330;this[_0x503d09(0x2f9)]=!0x0;}),_0x59f22d=this[_0x47c330(0x208)]['onPointerLeave$'][_0x47c330(0x257)](()=>{const _0x4d8a26=_0x47c330;this[_0x4d8a26(0x1d5)]&&clearTimeout(this['_hideTimer']),this[_0x4d8a26(0x1d5)]=setTimeout(()=>{const _0x408723=_0x4d8a26;this[_0x408723(0x2f9)]=!0x1;},0x7d0);});return()=>{const _0x51400c=_0x47c330;_0x18964d[_0x51400c(0x2b6)](),_0x59f22d[_0x51400c(0x2b6)]();};}['_drawTextRange'](_0x22d893,_0x365d8b,_0x4852b2,_0x2a8ccc){const _0x42282e=_0x252217,_0x428bb5=new _0x1c73bd(_0x22d893)['setAlpha'](0.2)[_0x42282e(0x368)](),_0x339425=new _0x316b52(bi+_0xde0aa9['generateRandomId'](X),{'pointsGroup':_0x365d8b,'fill':_0x428bb5||_0x55d726(_0x5e612c[_0x42282e(0x2d2)],0.2),'left':_0x4852b2,'top':_0x2a8ccc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x42282e(0x245)][_0x42282e(0x2eb)](_0x339425),this[_0x42282e(0x31a)][_0x42282e(0x356)](_0x339425,_0x311489);}['_drawRectRange'](_0x2f5c53,_0x5e15bb,_0x3dae5d,_0x550a07){const _0x4073c6=_0x252217,_0x13ae68=new _0x1c73bd(_0x2f5c53)[_0x4073c6(0x17d)](0.2)[_0x4073c6(0x368)](),_0xbed499=new _0x316b52(Ti+_0xde0aa9[_0x4073c6(0x238)](X),{'pointsGroup':_0x5e15bb,'fill':_0x13ae68||_0x55d726(_0x5e612c[_0x4073c6(0x2d2)],0.2),'left':_0x3dae5d,'top':_0x550a07,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4073c6(0x245)][_0x4073c6(0x2eb)](_0xbed499),this['_scene']['addObject'](_0xbed499,_0x311489);}['_getAnchorBounding'](_0xa91521){const _0x40c9bc=_0xa91521[0x0],_0x2d3c6e=_0x40c9bc[0x0],_0x9214bc=_0x40c9bc[0x2],{x:_0x22b0bf,y:_0x384cd0}=_0x2d3c6e,{x:_0x32e040,y:_0x3edf89}=_0x9214bc;return{'left':_0x22b0bf,'top':_0x384cd0,'width':_0x32e040-_0x22b0bf,'height':_0x3edf89-_0x384cd0};}['_getScale'](){const _0x11e3f3=_0x252217,{scaleX:_0x4b543c,scaleY:_0x42a4f5}=this[_0x11e3f3(0x31a)][_0x11e3f3(0x176)]();return Math['max'](_0x4b543c,_0x42a4f5);}}var Ui=Object[_0x252217(0x34f)],Mi=(_0x249831,_0x2b9be8,_0x31bcf0,_0x5cca54)=>{for(var _0x56a5cf=_0x5cca54>0x1?void 0x0:_0x5cca54?Ui(_0x2b9be8,_0x31bcf0):_0x2b9be8,_0x4a1378=_0x249831['length']-0x1,_0x1a23f9;_0x4a1378>=0x0;_0x4a1378--)(_0x1a23f9=_0x249831[_0x4a1378])&&(_0x56a5cf=_0x1a23f9(_0x56a5cf)||_0x56a5cf);return _0x56a5cf;},Z=(_0x952718,_0x13b059)=>(_0xc0ef4e,_0x3830be)=>_0x13b059(_0xc0ef4e,_0x3830be,_0x952718);let we=class extends _0x402deb{constructor(_0x51aa98,_0x5c989d,_0x50dde7,_0x47ab34,_0x19b1a7){const _0x18c821=_0x252217;super(),_(this,_0x18c821(0x2bd),[]),_(this,_0x18c821(0x1f1),[]),(this[_0x18c821(0x181)]=_0x51aa98,this[_0x18c821(0x186)]=_0x5c989d,this[_0x18c821(0x31f)]=_0x50dde7,this[_0x18c821(0x367)]=_0x47ab34,this['_themeService']=_0x19b1a7,this[_0x18c821(0x183)]());}[_0x252217(0x183)](){const _0x401f09=_0x252217,_0x206330=this[_0x401f09(0x181)][_0x401f09(0x28e)],_0x1cbcc4=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x569e06([this[_0x401f09(0x31f)][_0x401f09(0x247)](_0x206330),this[_0x401f09(0x1e9)][_0x401f09(0x1cb)]])[_0x401f09(0x1be)](_0x5d9611(([_0x300713,_0x427ff9])=>({'skeleton':_0x1cbcc4['getSkeleton'](),'cursors':[..._0x300713[_0x401f09(0x1b0)]()]['flatMap'](_0x12bc4f=>({..._0x12bc4f,'color':this['_themeService'][_0x401f09(0x289)](_0x12bc4f[_0x401f09(0x1cc)])}))})))[_0x401f09(0x26e)](_0x297e72=>{const _0x12fe7f=_0x401f09;if(this[_0x12fe7f(0x2e0)](),_0x297e72){const {skeleton:_0x4d1173,cursors:_0x44cede}=_0x297e72;this['_updateCollabCursors'](_0x4d1173,_0x44cede);}})),this[_0x401f09(0x2b5)](),this[_0x401f09(0x2a6)]();}[_0x252217(0x365)](_0x20334f,_0x3d3f51){const _0x59f098=_0x252217,{scene:_0x1aefd1,mainComponent:_0xd7d2f0}=this[_0x59f098(0x181)],_0x27a7cc=_0x3d3f51['map'](_0x511f22=>new qe(_0x511f22,_0x1aefd1,_0x20334f,_0xd7d2f0));this[_0x59f098(0x2bd)]=_0x27a7cc,this['_cursors']=_0x3d3f51;}[_0x252217(0x1f5)](){const _0x670690=_0x252217;this[_0x670690(0x2e0)]();const {scene:_0x1a65cd,mainComponent:_0x4e0606}=this[_0x670690(0x181)],_0x1316c3=this[_0x670690(0x186)]['getSkeleton'](),_0xe3ee10=this[_0x670690(0x1f1)]['map'](_0x443032=>new qe(_0x443032,_0x1a65cd,_0x1316c3,_0x4e0606));this['_cursorShapes']=_0xe3ee10;}[_0x252217(0x2e0)](){const _0x292999=_0x252217;this['_cursorShapes'][_0x292999(0x1f3)](_0x45eebd=>_0x45eebd[_0x292999(0x248)]()),this[_0x292999(0x2bd)]=[];}['_initCommandExecutedListener'](){const _0x19ff0c=_0x252217,_0x576120=[_0x4c74f8['id']];this[_0x19ff0c(0x29b)](this[_0x19ff0c(0x367)][_0x19ff0c(0x295)](_0x3fc3b4=>{const _0x31f862=_0x19ff0c;_0x576120[_0x31f862(0x17a)](_0x3fc3b4['id'])&&_0x3fc3b4[_0x31f862(0x35e)][_0x31f862(0x28e)]===this['_context'][_0x31f862(0x28e)]&&this['_refreshCollabCursors']();}));}[_0x252217(0x2b5)](){const _0x141912=_0x252217;this[_0x141912(0x29b)](_0x47b532(this[_0x141912(0x181)][_0x141912(0x22a)][_0x141912(0x308)])[_0x141912(0x1be)](_0x27c7c4(_0x46657f=>_0x46657f[_0x141912(0x196)]===_0x21e5b4[_0x141912(0x242)]),_0x124d51(0x10))[_0x141912(0x26e)](()=>{this['_refreshCollabCursors']();}));}};we=Mi([Z(0x1,_0x473849(_0x1ee09e)),Z(0x2,_0x473849(H)),Z(0x3,_0x192617),Z(0x4,_0x473849(_0x261a17))],we);const wi=0x1,Pi=1.5;class Li extends _0x44b883{constructor(_0x2b7eaf,_0x121433){const _0x34cd59=_0x252217;super(_0x2b7eaf,_0x121433),_(this,_0x34cd59(0x30c)),_(this,'_hovered',!0x1),_(this,_0x34cd59(0x348)),_(this,_0x34cd59(0x366),''),_(this,_0x34cd59(0x33a),_0x34cd59(0x335)),_(this,_0x34cd59(0x33b)),(_0x121433&&this[_0x34cd59(0x1ca)](_0x121433),this[_0x34cd59(0x1e0)][_0x34cd59(0x257)](()=>this[_0x34cd59(0x1ca)]({'hovered':!0x0})),this[_0x34cd59(0x27a)][_0x34cd59(0x257)](()=>this[_0x34cd59(0x1ca)]({'hovered':!0x1})));}[_0x252217(0x1ca)](_0x145695){const _0xbb5011=_0x252217;var _0x249e87,_0x2cd3d8,_0x214ef5,_0x4e819e,_0x39d4d3,_0x1c7e9f;this[_0xbb5011(0x30c)]=(_0x249e87=_0x145695[_0xbb5011(0x1cc)])!=null?_0x249e87:this['_color'],this[_0xbb5011(0x25a)]=(_0x2cd3d8=_0x145695[_0xbb5011(0x236)])!=null?_0x2cd3d8:this[_0xbb5011(0x25a)],this[_0xbb5011(0x348)]=(_0x214ef5=_0x145695[_0xbb5011(0x21c)])!=null?_0x214ef5:this[_0xbb5011(0x348)],this[_0xbb5011(0x366)]=(_0x4e819e=_0x145695[_0xbb5011(0x202)])!=null?_0x4e819e:this[_0xbb5011(0x366)],this[_0xbb5011(0x33a)]=(_0x39d4d3=_0x145695[_0xbb5011(0x24f)])!=null?_0x39d4d3:this['_labelPosition'],this[_0xbb5011(0x33b)]=(_0x1c7e9f=_0x145695['backgroundColor'])!=null?_0x1c7e9f:this[_0xbb5011(0x33b)],this[_0xbb5011(0x1ed)]({'width':_0x145695['width'],'height':_0x145695[_0xbb5011(0x1a4)]});}['onMouseMove'](_0x339d84){const _0x523e52=_0x252217,{row:_0x53f5a0,column:_0x560069}=_0x339d84;if(_0x53f5a0>=this['_range'][_0x523e52(0x31e)]&&_0x53f5a0<=this[_0x523e52(0x348)][_0x523e52(0x251)]&&_0x560069>=this[_0x523e52(0x348)]['startColumn']&&_0x560069<=this[_0x523e52(0x348)][_0x523e52(0x2bf)]){this[_0x523e52(0x1ca)]({'hovered':!0x0});return;}this[_0x523e52(0x1ca)]({'hovered':!0x1});}[_0x252217(0x25d)](_0x37a92b){return!0x1;}['_draw'](_0x8f68b3){const _0x394842=_0x252217;_0x25cb14[_0x394842(0x336)](_0x8f68b3,{'width':this[_0x394842(0x253)],'height':this['height'],'strokeWidth':Pi,'stroke':this[_0x394842(0x30c)],'evented':!0x1,'fill':this[_0x394842(0x33b)]}),this[_0x394842(0x25a)]&&(_0x8f68b3[_0x394842(0x256)](),_0x8f68b3['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x394842(0x237)?0x0:-0x14),he[_0x394842(0x336)](_0x8f68b3,{'text':this[_0x394842(0x366)],'color':this[_0x394842(0x30c)]}),_0x8f68b3['restore']());}}var Ai=Object[_0x252217(0x34f)],yi=(_0x54bca5,_0x48fdce,_0x424b55,_0x9a710a)=>{const _0x18261c=_0x252217;for(var _0x1ec631=_0x9a710a>0x1?void 0x0:_0x9a710a?Ai(_0x48fdce,_0x424b55):_0x48fdce,_0x1e2124=_0x54bca5[_0x18261c(0x259)]-0x1,_0x27d1ed;_0x1e2124>=0x0;_0x1e2124--)(_0x27d1ed=_0x54bca5[_0x1e2124])&&(_0x1ec631=_0x27d1ed(_0x1ec631)||_0x1ec631);return _0x1ec631;},ve=(_0x938789,_0x2198cc)=>(_0x50f544,_0x902cb8)=>_0x2198cc(_0x50f544,_0x902cb8,_0x938789);const $i=0x1389;let Pe=class extends _0x402deb{constructor(_0x13b073,_0x17a5b2,_0x2276f7,_0x5c64db){const _0x2c2736=_0x252217;super(),_(this,_0x2c2736(0x1f1),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x13b073,this[_0x2c2736(0x2f8)]=_0x17a5b2,this[_0x2c2736(0x31f)]=_0x2276f7,this[_0x2c2736(0x1e9)]=_0x5c64db,this[_0x2c2736(0x183)]());}[_0x252217(0x183)](){const _0x4acf05=_0x252217;this[_0x4acf05(0x2f8)][_0x4acf05(0x2d6)][_0x4acf05(0x1be)](_0x11b56a(this[_0x4acf05(0x22f)]),_0x539d0f(_0x388d81=>{const _0x2c02c1=_0x4acf05;if(_0x388d81){const _0xfb38c1=_0x388d81[_0x2c02c1(0x2c0)];return _0x569e06(this[_0x2c02c1(0x31f)][_0x2c02c1(0x247)](this[_0x2c02c1(0x181)][_0x2c02c1(0x28e)]),this[_0x2c02c1(0x1e9)][_0x2c02c1(0x1cb)])[_0x2c02c1(0x1be)](_0x5d9611(([_0x463f16,_0x32aa56])=>{const _0x1706a1=new Map();return _0x463f16['forEach']((_0xcc8ce3,_0x4eebf8)=>{const _0x4d443e=_0x1ea5;if(_0xcc8ce3[_0x4d443e(0x333)]===_0xfb38c1){const _0x34cf74={..._0xcc8ce3};_0x34cf74[_0x4d443e(0x1cc)]=this[_0x4d443e(0x1e9)][_0x4d443e(0x289)](_0xcc8ce3[_0x4d443e(0x1cc)]),_0x1706a1['set'](_0x4eebf8,_0x34cf74);}}),{'skeleton':_0x388d81,'cursors':_0x1706a1};}));}return _0x583da3({'skeleton':null,'cursors':new Map()});}))[_0x4acf05(0x26e)](({skeleton:_0x57b0ad,cursors:_0x3604a2})=>{const _0x724ac7=_0x4acf05;this[_0x724ac7(0x2e0)](),_0x57b0ad&&this[_0x724ac7(0x365)](_0x57b0ad,_0x3604a2);}),this[_0x4acf05(0x2f8)][_0x4acf05(0x2d6)]['subscribe'](_0x1dbcbf=>{const _0x30bb16=_0x4acf05;if(_0x1dbcbf==null)return;const {skeleton:_0x265b42}=_0x1dbcbf,{scene:_0x385724}=this[_0x30bb16(0x181)];_0x385724['onPointerMove$'][_0x30bb16(0x257)](_0x30c378(_0x27573a=>{const _0x4c887c=_0x30bb16;var _0x414e13,_0x15f88a;const {offsetX:_0x52670e,offsetY:_0x38840f}=_0x27573a,{x:_0x583e15,y:_0x495270}=_0x385724[_0x4c887c(0x2bc)](_0x4e75d0[_0x4c887c(0x2e4)]([_0x52670e,_0x38840f])),{scaleX:_0x5b613c,scaleY:_0x8b6195}=_0x385724['getAncestorScale'](),_0xfee464=_0x385724[_0x4c887c(0x2b9)](_0x4a6af8['VIEW_MAIN']),_0x44f817=_0x385724[_0x4c887c(0x210)](_0x4e75d0[_0x4c887c(0x2e4)]([_0x583e15,_0x495270]),_0xfee464),_0x202b4e=_0x265b42['getCellPositionByOffset'](_0x52670e,_0x38840f,_0x5b613c,_0x8b6195,_0x44f817);((_0x414e13=this[_0x4c887c(0x28b)])==null?void 0x0:_0x414e13['column'])===_0x202b4e[_0x4c887c(0x17e)]&&((_0x15f88a=this[_0x4c887c(0x28b)])==null?void 0x0:_0x15f88a['row'])===_0x202b4e[_0x4c887c(0x2ba)]||this[_0x4c887c(0x1f1)][_0x4c887c(0x1f3)](_0x15ff04=>{_0x15ff04['onMouseMove'](_0x202b4e);});},0x64));});}[_0x252217(0x365)](_0x364a7b,_0x53974c){const _0x57c30a=_0x252217;var _0x437654;const _0x3137c3=(_0x437654=this[_0x57c30a(0x2f8)][_0x57c30a(0x255)]())==null?void 0x0:_0x437654['skeleton'];if(!_0x3137c3)return;const _0x5c651d=this[_0x57c30a(0x18e)]();if(!_0x5c651d)return;this['_cursors']['forEach'](_0x12d2b6=>{const _0x7d9ca3=_0x57c30a;_0x12d2b6[_0x7d9ca3(0x341)]();});const {scene:_0x53ad4f}=_0x5c651d,_0x81a025=xi(Array[_0x57c30a(0x355)](_0x53974c[_0x57c30a(0x1b0)]()))[_0x57c30a(0x2dd)](_0x44e347=>{const _0x225f47=_0x57c30a,{color:_0x3d05e2,range:_0x3e8063,name:_0x2a75cb,selection:_0x4779f2,sheetID:_0x3798e7}=_0x44e347,{startColumn:_0x8b8fe7,startRow:_0x1bf858,endColumn:_0x641601,endRow:_0x3868c2}=_0x3e8063,_0x4146a8=_0x4645fe(_0x1bf858,_0x8b8fe7,_0x53ad4f,_0x3137c3),_0x558ddb=_0x4645fe(_0x3868c2,_0x641601,_0x53ad4f,_0x3137c3),{columnHeaderHeightAndMarginTop:_0x3e7c9e}=_0x3137c3,{startX:_0x42752a,startY:_0x3a2a7e}=_0x4146a8,{endX:_0x1f5b76,endY:_0x20abd6}=_0x558ddb,_0x564251=_0x1f5b76-_0x42752a,_0x35250a=_0x20abd6-_0x3a2a7e,_0x25180d={'labelPosition':_0x3a2a7e-_0x3e7c9e>=ee?_0x225f47(0x335):_0x225f47(0x237),'sheetID':_0x3798e7,'range':_0x3e8063,'color':_0x3d05e2,'name':_0x2a75cb,'selection':_0x4779f2,'left':_0x42752a,'top':_0x3a2a7e,'width':_0x564251,'height':_0x35250a,'evented':!0x1,'zIndex':$i};return new Li(_0x2a75cb,_0x25180d);});_0x53ad4f[_0x57c30a(0x18f)](_0x81a025,wi),this[_0x57c30a(0x1f1)]=new Set(_0x81a025);}[_0x252217(0x2e0)](){const _0x5984a4=_0x252217;var _0x37230e;(_0x37230e=this[_0x5984a4(0x1f1)])==null||_0x37230e[_0x5984a4(0x1f3)](_0x2d8d0e=>_0x2d8d0e[_0x5984a4(0x248)]());}[_0x252217(0x18e)](){const _0x4b2af8=_0x252217;return _0xb5a9df(this['_context'][_0x4b2af8(0x246)],this[_0x4b2af8(0x181)]);}};Pe=yi([ve(0x1,_0x473849(_0x298d79)),ve(0x2,_0x473849(H)),ve(0x3,_0x473849(_0x261a17))],Pe);function xi(_0x5baf4d){const _0x3598dd=_0x252217,_0x1be8ed=new Map();return _0x5baf4d['forEach'](_0x1fec2b=>{const _0x4b8c38=_0x1ea5;if(_0x1be8ed[_0x4b8c38(0x1b9)](_0x1fec2b['selection'])){const _0x48a06d=_0x1be8ed[_0x4b8c38(0x302)](_0x1fec2b['selection']);_0x48a06d['name']+=',\x20'+_0x1fec2b[_0x4b8c38(0x202)];}else _0x1be8ed[_0x4b8c38(0x1c5)](_0x1fec2b[_0x4b8c38(0x1d4)],_0x1fec2b);}),Array[_0x3598dd(0x355)](_0x1be8ed[_0x3598dd(0x1b0)]());}var v=function(){return v=Object['assign']||function(_0x45fe62){const _0x4b0d33=_0x1ea5;for(var _0x47847b,_0x2436e1=0x1,_0xc72a24=arguments['length'];_0x2436e1<_0xc72a24;_0x2436e1++){_0x47847b=arguments[_0x2436e1];for(var _0x3aa814 in _0x47847b)Object['prototype']['hasOwnProperty'][_0x4b0d33(0x1c2)](_0x47847b,_0x3aa814)&&(_0x45fe62[_0x3aa814]=_0x47847b[_0x3aa814]);}return _0x45fe62;},v['apply'](this,arguments);},Bi=function(_0x37781c,_0x91489d){const _0x2add7d=_0x252217;var _0x573dd1={};for(var _0x161c2b in _0x37781c)Object['prototype'][_0x2add7d(0x2c3)][_0x2add7d(0x1c2)](_0x37781c,_0x161c2b)&&_0x91489d[_0x2add7d(0x2c5)](_0x161c2b)<0x0&&(_0x573dd1[_0x161c2b]=_0x37781c[_0x161c2b]);if(_0x37781c!=null&&typeof Object[_0x2add7d(0x1b2)]==_0x2add7d(0x212)){for(var _0x407a26=0x0,_0x161c2b=Object[_0x2add7d(0x1b2)](_0x37781c);_0x407a26<_0x161c2b[_0x2add7d(0x259)];_0x407a26++)_0x91489d[_0x2add7d(0x2c5)](_0x161c2b[_0x407a26])<0x0&&Object['prototype'][_0x2add7d(0x2d9)][_0x2add7d(0x1c2)](_0x37781c,_0x161c2b[_0x407a26])&&(_0x573dd1[_0x161c2b[_0x407a26]]=_0x37781c[_0x161c2b[_0x407a26]]);}return _0x573dd1;},je=_0x778632(function(_0x36f369,_0x4ef582){const _0x44f92b=_0x252217;var _0x5235b0=_0x36f369[_0x44f92b(0x23e)],_0x455af1=_0x36f369['id'],_0x41f11d=_0x36f369[_0x44f92b(0x254)],_0x26a0cf=_0x36f369[_0x44f92b(0x18d)],_0x4cc91e=Bi(_0x36f369,[_0x44f92b(0x23e),'id',_0x44f92b(0x254),_0x44f92b(0x18d)]),_0xd9c906=_0x44f92b(0x1ec)[_0x44f92b(0x311)](_0x455af1,'\x20')[_0x44f92b(0x311)](_0x41f11d||'')['trim'](),_0xcf7f8=_0x22f287('_'[_0x44f92b(0x311)](ji()));return Rt(_0x5235b0,''[_0x44f92b(0x311)](_0x455af1),{'defIds':_0x5235b0[_0x44f92b(0x221)],'idSuffix':_0xcf7f8[_0x44f92b(0x177)]},v({'ref':_0x4ef582,'className':_0xd9c906},_0x4cc91e),_0x26a0cf);});function Rt(_0x138685,_0x1311ae,_0x287bc5,_0xf95c1f,_0x119348){const _0x5c0b1f=_0x252217;return _0x5e898e(_0x138685['tag'],v(v({'key':_0x1311ae},ki(_0x138685,_0x287bc5,_0x119348)),_0xf95c1f),(Hi(_0x138685,_0x287bc5)['children']||[])[_0x5c0b1f(0x2dd)](function(_0x113c60,_0x4cfe07){const _0x34a174=_0x5c0b1f;return Rt(_0x113c60,''[_0x34a174(0x311)](_0x1311ae,'-')[_0x34a174(0x311)](_0x138685[_0x34a174(0x2c9)],'-')['concat'](_0x4cfe07),_0x287bc5,void 0x0,_0x119348);}));}function ki(_0x415ba9,_0x29e78d,_0x3d76d2){const _0x500508=_0x252217;var _0x16318c=v({},_0x415ba9[_0x500508(0x290)]);_0x3d76d2!=null&&_0x3d76d2[_0x500508(0x204)]&&_0x16318c[_0x500508(0x305)]===_0x500508(0x204)&&(_0x16318c[_0x500508(0x305)]=_0x3d76d2['colorChannel1']),_0x415ba9[_0x500508(0x2c9)]==='mask'&&_0x16318c['id']&&(_0x16318c['id']=_0x16318c['id']+_0x29e78d[_0x500508(0x33f)]),Object[_0x500508(0x30d)](_0x16318c)[_0x500508(0x1f3)](function(_0x10b7fb){const _0x13d0ff=_0x500508;var _0x146787=_0x10b7fb[0x0],_0x566883=_0x10b7fb[0x1];_0x146787===_0x13d0ff(0x19c)&&typeof _0x566883==_0x13d0ff(0x347)&&(_0x16318c[_0x146787]=_0x566883[_0x13d0ff(0x20f)](/url\(#(.*)\)/,'url(#$1'[_0x13d0ff(0x311)](_0x29e78d[_0x13d0ff(0x33f)],')')));});var _0x5cee9b=_0x29e78d['defIds'];return!_0x5cee9b||_0x5cee9b['length']===0x0||(_0x415ba9[_0x500508(0x2c9)]===_0x500508(0x2f0)&&_0x16318c['xlink:href']&&(_0x16318c[_0x500508(0x2a8)]=_0x16318c['xlink:href']+_0x29e78d[_0x500508(0x33f)]),Object[_0x500508(0x30d)](_0x16318c)[_0x500508(0x1f3)](function(_0x3b4b5e){const _0x134951=_0x500508;var _0x51e620=_0x3b4b5e[0x0],_0x2904e2=_0x3b4b5e[0x1];typeof _0x2904e2==_0x134951(0x347)&&(_0x16318c[_0x51e620]=_0x2904e2[_0x134951(0x20f)](/url\(#(.*)\)/,'url(#$1'[_0x134951(0x311)](_0x29e78d[_0x134951(0x33f)],')')));})),_0x16318c;}function Hi(_0x118cb9,_0x28cb29){const _0x3ca7bb=_0x252217;var _0x3e370b,_0x587899=_0x28cb29[_0x3ca7bb(0x221)];return!_0x587899||_0x587899[_0x3ca7bb(0x259)]===0x0?_0x118cb9:_0x118cb9[_0x3ca7bb(0x2c9)]===_0x3ca7bb(0x1f8)&&(!((_0x3e370b=_0x118cb9[_0x3ca7bb(0x234)])===null||_0x3e370b===void 0x0)&&_0x3e370b[_0x3ca7bb(0x259)])?v(v({},_0x118cb9),{'children':_0x118cb9['children'][_0x3ca7bb(0x2dd)](function(_0x45b8e5){const _0x3e0981=_0x3ca7bb;return typeof _0x45b8e5[_0x3e0981(0x290)]['id']==_0x3e0981(0x347)&&_0x587899&&_0x587899[_0x3e0981(0x17a)](_0x45b8e5[_0x3e0981(0x290)]['id'])?v(v({},_0x45b8e5),{'attrs':v(v({},_0x45b8e5[_0x3e0981(0x290)]),{'id':_0x45b8e5[_0x3e0981(0x290)]['id']+_0x28cb29[_0x3e0981(0x33f)]})}):_0x45b8e5;})}):_0x118cb9;}function ji(){const _0x4497e0=_0x252217;return Math['random']()['toString'](0x24)[_0x4497e0(0x2c7)](0x2,0x8);}je[_0x252217(0x29c)]=_0x252217(0x1df);var Yi={'tag':_0x252217(0x235),'attrs':{'xmlns':_0x252217(0x32f),'fill':_0x252217(0x199),'viewBox':_0x252217(0x323),'width':_0x252217(0x200),'height':_0x252217(0x200)},'children':[{'tag':'g','attrs':{'clipPath':_0x252217(0x334)},'children':[{'tag':_0x252217(0x1bd),'attrs':{'stroke':_0x252217(0x207),'d':_0x252217(0x1a6),'strokeLinecap':'round','strokeLinejoin':_0x252217(0x2fa),'strokeWidth':1.2}}]},{'tag':_0x252217(0x1f8),'attrs':{},'children':[{'tag':_0x252217(0x297),'attrs':{'id':_0x252217(0x287)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x252217(0x287)]},Dt=_0x778632(function(_0x132c97,_0x1a4e89){const _0x5e4f60=_0x252217;return _0x5e898e(je,Object[_0x5e4f60(0x30e)]({},_0x132c97,{'id':'off-line-icon','ref':_0x1a4e89,'icon':Yi}));});function _0x1cf4(){const _0x4ee6e0=['Failed','_assignedColors','range','_docTransformSelectionsService','isActive','requireSession','clearInterval','defIds','event$','_docTransformIMECacheService','loadOfflineData','replaceDocRanges','72zokcol','_updateLocalCursor','YUUMI_RATE_OVER_LIMIT','_localeService','engine','symbol','AWAITING_WITH_PENDING','YUUMI_NO_CUBOID_FOR_QUESTION','_disabled','dispose$','APPLY_REVISION_CONFILICT','contains','getActiveSheet','UNDEFINED','children','svg','hovered','bottom','generateRandomId','collabStatus.conflict','INVITE_CODE_REQUIRED','_imageIoService','m1Prime','searchParams','icon','activeSheet$','send','registerComponent','resize','_collaborationController','_refRangeService','_shapes','unit','getCollabCursors$','dispose','doc.mutation.rich-text-editing','_univerInstanceService','_handleJoinEvent','USERS_LEAVE','_status$','_getMergeRange','labelPosition','collaboration-client-ui.config','endRow','Error','width','className','getCurrent','save','subscribeEvent','collab-rect-range-','length','_hovered','OFFLINE','_selfUnitIDs','triggerDblclick','_registerRenderDependencies','moveTo','_uiPartsService','on-line-icon_clip0_910_349','disposeUnit','0\x200\x2017\x2016','_send','APPLY_NON_SEQUENTIAL_REVISION','Warning','roomMembers$','executeCommand','LICENSE_EXPORT_SIZE_EXCEEDED','NOT_COLLAB','_setupSubUnitSync','_config','_colorAssignService','subscribe','OTHER_CLIENTS_EDITING','_entities','_initEvent','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_docStateChangeManagerService','setInterval','getSheetBySheetId','OTHER_CLIENT_EDITING','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','next','deepClone','onPointerLeave$','source','getOffsetConfig','clearTimeout','SNAPSHOT_INVALID_SNAPSHOT','_drawRectRange','enableLocalCache','_transformPreviousActiveRange','addEventListener','_unitOnClients','subUnitId','RECT','_transformService','off-line-icon_clip0_910_343','NO_OTHER_CLIENTS_EDITING','getColorFromTheme','asObservable','_lastPointer','white','_ensureSubject','unitId','_getSessionTicket','attrs','_collabCursorState$','_revisionService','_initStatusListener','_updateSubUnitFromURLParams','onCommandExecuted','ONLINE','clipPath','_beforeCloseService','hide','getMember','disposeWithMe','displayName','body','_docSyncEditingCollabCursorService','getRangePointData','registerBeforeClose','find','debug','url(#on-line-icon_clip0_910_349)','actions','_startSheetCollabCursor','_initCommandExecutedListener','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','xlink:href','evenodd','LICENSE_IMPORT_SIZE_EXCEEDED','redoState','_localCacheService','transformMutationsWithChangeset','exhaustSavingTask','result','transformStateCache','_instanceService','UNAUTHENTICATED','getRenderById','text','_initResize','unsubscribe','addClipboardHook','search','getViewport','row','CHANGESET_REVISION_CONFILICT','getRelativeToViewportCoord','_cursorShapes','_collaborationUIEventService','endColumn','sheetId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getActiveRange','hasOwnProperty','registerRefRange','indexOf','setTimeout','substring','TEXT','tag','WECHAT_HAS_BEEN_BOUND','then','INTERNAL_ERROR','_getAnchorBounding','delete','size','/run/','isEditing','black','[RemoteUniscriptService]:\x20no\x20focused\x20unit','post','green.600','currentSkeleton$','INVITE_CODE_HAS_BEEN_UES','show','propertyIsEnumerable','_online','disableLocalCache','_localStorageService','map','PENDING','OffLineIcon','_removeCollabCursors','purple.300','getDocRanges','collab-text-range-','FromArray','_injector','_syncEditingCollabCursorService','INVITE_CODE_ALREADY_BOUND','lineTo','_updateURLWithCurrentState','data','push','_transformUndoRedoStack','runId','ALREADY_EXISTS','arc','use','HEADER_MENU','_handleEvent','collabStatus.synced','1354535lYAuer','toString','_initStatusComponent','stringify','_sheetSkeletonManagerService','_hover','round','UNIVER_SHEET','UNIVER_DOC','location','_dataLoaderService','executionId','_onCursorDelete','setConfig','get','SNAPSHOT_HAS_BEEN_REMOVED','history','fill','startsWith','textRanges','onTransformChange$','measureText','_handleHeartbeatEvent','YUUMI_AI_RUN_FAILED','_color','entries','assign','setStateCache','subunit','concat','mutations','JOIN_ROOM_FAILED','getTypeOfUnitAdded$','11484190mnYppv','ACTIVE_UNIT_EVENT_CHANNEL','_registerDependencies','_createSocketURL','2616316fWbVPu','_scene','permission.title','add','getMergeData','startRow','_collabCursorController','univer-mr-2\x20univer-flex\x20univer-text-xl','RemoveColCommandId','getFocusedUnit','0\x200\x2016\x2016','getConfig','min','_removeClearOtherTimer','_transformHistoryAndStateStack','_toggleOffline','parse','NOT_FOUND','_collabSessionService','transformIMECache','transformRemoteChangeset','MOBILE_HAS_BEEN_BOUND','http://www.w3.org/2000/svg','translate(.97)','pushState','_drawAnchor','sheetID','url(#off-line-icon_clip0_910_343)','top','drawWith','_unitStatus','collabCursorState$','5RDYymF','_labelPosition','_backgroundColor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','selections','uni.network.url-service','idSuffix','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','makeDirty','storage','23334ohNzhB','PY_RUNTIME_SCRIPT_ERROR','isArray','UPDATE_CURSOR','string','_range','ENSURE_SNAPSHOT_EXECUTION','roomMembers','unload','_docTransformStateCacheService','_render','jiqing.500','getOwnPropertyDescriptor','setActiveRange','APPLY_REJECT','5249694OvJrkB','getTypeOfUnitDisposed$','_session','from','addObject','_logService','fillStyle','_saveCache','defineProperty','_docClipboardService','CONFLICT','origin','params','removeParam','setItem','SUBMIT_CHANGESET_TIMEOUT','rgba(255,\x20255,\x20255,\x200.01)','m2Prime','newValue','_updateCollabCursors','_name','_commandService','toRgbString','yellow.400','_memberService','_notificationService','div','_entityInit$','_messageService','session.connection-failed','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','AWAITING','closePath','_getSaveTimeout','key','getAncestorScale','current','YUUMI_ALL_TABLES_IS_INVALID','_initEntityListener','includes','syncEditingCollabCursor','cursorInfo','setAlpha','column','_docSkeleton','complete','_context','imageSourceType','_init','collaboration.closeRoom','_handleHover','_docSkeletonManagerService','InsertRangeMoveDownCommandId','replaceState','EMAIL_HAS_BEEN_BOUND','InsertRangeMoveRightCommandId','getValue','_heartbeatTimer','extend','_getSheetObject','addObjects','getUnitId','_id','eventID','_getScale','COMPLETION_FINISHED','_eventUnsubscribe','type','with','cursorInfo$','none','FETCH_MISS','_scheduleClearOtherTimer','mask','LICENSE_DISTRO_REJECTED','136BCLHAD','LOGIN_FAILED','_textBubble','onRendered','collaboration.single-unit.warning','transformMutation','height','_scheduleSaving','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','_cachedData','registerRenderModule','PERMISSION_DENIED','getUndoRedoMutationParamsCache','href','UNRECOGNIZED','split','_configService','_saveTaskMap','values','getStateCache','getOwnPropertySymbols','_anchorDot','pluginName','saveTaskMap','_httpService','sessionTicket','INVALID_ARGUMENT','has','948501RGvCAX','_renderManagerService','_clearOtherTimers','path','pipe','collabStatus.notCollab','_handleLeaveEvent','_setupBeforeClosingHandler','call','SOCKET_FAILED_RETRY','code','set','InsertColCommandId','MUTATION','CONNECTOR_DATA_TOO_LARGE','_document','setShapeProps','currentTheme$','color','application/json','assignAColorForMemberID','on-line-icon','_onRefRangeChange','focused$','getParam','_toggleOnline','selection','_hideTimer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_onCursorUpdate','unitID','restore','editingUnit','APPLY_PERMISSION_DENIED','YUUMI_URL_COL_OUT_OF_RANGE','collabStatus.syncing','YUUMI_SUBSCRIPTION_NOT_FOUND','UniverIcon','onPointerEnter$','error','InsertRowCommandId','getSheetId','findNodePositionByCharIndex','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getCurrentRevOfUnit','unshift','permission.content','_themeService','_scheduleHeartbeat','status$','univerjs-icon\x20univerjs-icon-','transformByState','addHandlerCallback','all','init','_cursors','_startDocCollabCursor','forEach','_initDependencies','_refreshCollabCursors','getMemberID','_drawTextRange','defs','collabStatus.offline','1061955tBBURi','ticket','getUnitStatus$','univer-flex\x20univer-items-center','Unknown\x20user','CLOSE_ROOM','1em','_cursorInfo$','name','USER_NOT_INVITED_CODE','colorChannel1','sessionStatus$','...','currentColor','_anchor','_roomMembers$','YUUMI_ASYNCIO_CANCELLED','docStateChange$','_colorIndex','RemoveRowCommandId','ranges','replace','getVpScrollXYInfoByPosToVp','_urlService','function','TOO_MANY_REQUESTS','urlChange$','INVALID_INVITE_CODE','entityInit$','[CollaborationDataLoaderController]','runOnServer','fillText'];_0x1cf4=function(){return _0x4ee6e0;};return _0x1cf4();}Dt[_0x252217(0x29c)]=_0x252217(0x2df);var Fi={'tag':_0x252217(0x235),'attrs':{'xmlns':_0x252217(0x32f),'fill':_0x252217(0x199),'viewBox':_0x252217(0x263),'width':_0x252217(0x200),'height':_0x252217(0x200)},'children':[{'tag':'g','attrs':{'clipPath':_0x252217(0x2a3)},'children':[{'tag':_0x252217(0x1bd),'attrs':{'stroke':_0x252217(0x207),'d':_0x252217(0x171),'strokeLinecap':_0x252217(0x2fa),'strokeLinejoin':_0x252217(0x2fa),'strokeWidth':1.2}}]},{'tag':_0x252217(0x1f8),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x252217(0x261)},'children':[{'tag':_0x252217(0x1bd),'attrs':{'fill':_0x252217(0x28c),'d':'M0\x200H16V16H0z','transform':_0x252217(0x330)}}]}]}],'defIds':[_0x252217(0x261)]},Nt=_0x778632(function(_0x3ddc5c,_0x4eab65){const _0x3365cb=_0x252217;return _0x5e898e(je,Object['assign']({},_0x3ddc5c,{'id':_0x3365cb(0x1cf),'ref':_0x4eab65,'icon':Fi}));});Nt[_0x252217(0x29c)]='OnLineIcon';function Wi(_0x29e2ca){const _0x16c9ba=_0x252217;switch(_0x29e2ca){case _0x3eac87['OFFLINE']:return _0x16c9ba(0x1f9);case _0x3eac87[_0x16c9ba(0x35c)]:return _0x16c9ba(0x239);case _0x3eac87[_0x16c9ba(0x19a)]:return'collabStatus.fetchMiss';case _0x3eac87[_0x16c9ba(0x26a)]:return _0x16c9ba(0x1bf);case _0x3eac87[_0x16c9ba(0x172)]:case _0x3eac87[_0x16c9ba(0x22c)]:return _0x16c9ba(0x1dd);case _0x3eac87['SYNCED']:case _0x3eac87[_0x16c9ba(0x2de)]:return _0x16c9ba(0x2f3);}}function Vi(_0x27aefc){const _0x39aade=_0x252217,{status$:_0x40126f}=_0x27aefc,_0x3eec24=_0x59a373(_0x40126f,_0x3eac87[_0x39aade(0x26a)]),_0x2c0ee4=_0x280a05(_0x2371b9),_0x3fdb06=_0x280a05(_0x158b64),_0x37acf0=_0x3eec24!==_0x3eac87[_0x39aade(0x25b)],_0x3aae01=_0x2c0ee4['t'](Wi(_0x3eec24)),_0x3010c0=_0x37acf0?_0xd21116(Nt,{}):_0xd21116(Dt,{}),_0x325c1f=_0x47d919(()=>{_0x37acf0||_0x3fdb06['reconnect']();},[_0x37acf0,_0x3fdb06]);function _0x39ff00(){const _0x40f2f0=_0x39aade;return _0x26b6bc('div',{'className':_0x40f2f0(0x1fd),'onClick':_0x325c1f,'children':[_0xd21116(_0x40f2f0(0x36c),{'className':_0x19f69f(_0x40f2f0(0x320),{'univer-text-green-500':_0x37acf0,'univer-text-red-500':!_0x37acf0}),'children':_0x3010c0}),_0xd21116(_0x40f2f0(0x36c),{'className':_0x40f2f0(0x277),'children':_0x3aae01})]});}return _0x37acf0?_0x39ff00():_0xd21116(_0x1651d9,{'title':_0x2c0ee4['t']('collab-client.tooltip.reconnect'),'children':_0x39ff00()});}var Xi=Object[_0x252217(0x34f)],Gi=(_0x3bc042,_0x5c8f17,_0x456f67,_0x40e849)=>{for(var _0x306c16=_0x40e849>0x1?void 0x0:_0x40e849?Xi(_0x5c8f17,_0x456f67):_0x5c8f17,_0x280083=_0x3bc042['length']-0x1,_0x3bedd2;_0x280083>=0x0;_0x280083--)(_0x3bedd2=_0x3bc042[_0x280083])&&(_0x306c16=_0x3bedd2(_0x306c16)||_0x306c16);return _0x306c16;},Q=(_0x289abd,_0x50b832)=>(_0x2e77eb,_0x2b4dc3)=>_0x50b832(_0x2e77eb,_0x2b4dc3,_0x289abd);let te=class extends _0x271547{constructor(_0x55a85a,_0x1a13cc,_0x2a0953,_0x14b4db){const _0x11d66a=_0x252217;super(),_(this,_0x11d66a(0x24d),new _0x88603b(_0x3eac87['NOT_COLLAB'])),(this[_0x11d66a(0x24a)]=_0x55a85a,this[_0x11d66a(0x2e5)]=_0x1a13cc,this[_0x11d66a(0x243)]=_0x2a0953,this[_0x11d66a(0x260)]=_0x14b4db,this[_0x11d66a(0x2f6)](),this[_0x11d66a(0x293)]());}['_initStatusListener'](){const _0x4678e3=_0x252217;this[_0x4678e3(0x29b)](this['_univerInstanceService'][_0x4678e3(0x1d1)][_0x4678e3(0x1be)](_0x14092f(()=>{const _0x4b8cd8=_0x4678e3,_0x319c47=this[_0x4b8cd8(0x24a)][_0x4b8cd8(0x322)]();return _0x319c47?this[_0x4b8cd8(0x243)]['getCollabEntity$'](_0x319c47[_0x4b8cd8(0x190)]()):_0x583da3(null);}),_0x14092f(_0x1a4e5a=>_0x1a4e5a?_0x1a4e5a[_0x4678e3(0x1eb)]:_0x583da3(_0x3eac87[_0x4678e3(0x26a)])))[_0x4678e3(0x26e)](_0x29c750=>{const _0x1c0472=_0x4678e3;this[_0x1c0472(0x24d)][_0x1c0472(0x278)](_0x29c750);}));}[_0x252217(0x2f6)](){const _0x28c33b=_0x252217;this['disposeWithMe'](this['_uiPartsService'][_0x28c33b(0x241)](_0x1aca9a[_0x28c33b(0x2f1)],()=>_0x393173(Ki({'status$':this['_status$'][_0x28c33b(0x28a)]()}),this['_injector'])));}};te=Gi([Q(0x0,_0x1ba300),Q(0x1,_0x473849(_0x25a4c0)),Q(0x2,_0x473849(_0xd0ad51)),Q(0x3,_0x1c0f1d)],te);function Ki(_0x374acb){const {status$:_0x87b2fd}=_0x374acb;return function(){return _0xd21116(Vi,{'status$':_0x87b2fd});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0x5a75a0,_0x2b131f,_0x17ff88,_0x1da43b)=>{const _0x40f0aa=_0x252217;for(var _0x2c6000=_0x1da43b>0x1?void 0x0:_0x1da43b?zi(_0x2b131f,_0x17ff88):_0x2b131f,_0x550923=_0x5a75a0[_0x40f0aa(0x259)]-0x1,_0x203264;_0x550923>=0x0;_0x550923--)(_0x203264=_0x5a75a0[_0x550923])&&(_0x2c6000=_0x203264(_0x2c6000)||_0x2c6000);return _0x2c6000;},B=(_0x14de99,_0x15a27f)=>(_0x7d520c,_0x82d3)=>_0x15a27f(_0x7d520c,_0x82d3,_0x14de99);let se=class extends _0x271547{constructor(_0x3372fb,_0x5ce8c3,_0x2ce704,_0x2e923b,_0xd30034,_0xa346dc){const _0x353b85=_0x252217;super(),this[_0x353b85(0x298)]=_0x3372fb,this[_0x353b85(0x2ac)]=_0x5ce8c3,this['_collaborationUIEventService']=_0x2ce704,this[_0x353b85(0x36e)]=_0x2e923b,this[_0x353b85(0x36b)]=_0xd30034,this[_0x353b85(0x229)]=_0xa346dc,this[_0x353b85(0x1c1)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x4500f1=_0x252217;this['disposeWithMe'](this[_0x4500f1(0x298)][_0x4500f1(0x2a0)](()=>{const _0x260eb4=_0x4500f1;if(this[_0x260eb4(0x2ac)][_0x260eb4(0x1b5)][_0x260eb4(0x2cf)])return this[_0x260eb4(0x229)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x252217(0x271)](){const _0x456a8c=_0x252217;this[_0x456a8c(0x29b)](this[_0x456a8c(0x2be)][_0x456a8c(0x222)][_0x456a8c(0x26e)](_0x14a85d=>{const _0x562c0a=_0x456a8c;_0x14a85d['id']===_0x583ad6[_0x562c0a(0x276)]&&this['_messageService'][_0x562c0a(0x2d8)]({'type':_0x483245[_0x562c0a(0x266)],'content':this[_0x562c0a(0x229)]['t'](_0x562c0a(0x1a2))}),_0x14a85d['id']===_0x583ad6[_0x562c0a(0x1ff)]&&this[_0x562c0a(0x36e)][_0x562c0a(0x2d8)]({'type':_0x483245[_0x562c0a(0x266)],'content':this[_0x562c0a(0x229)]['t'](_0x562c0a(0x184))}),_0x14a85d['id']===_0x583ad6[_0x562c0a(0x1a9)]&&this[_0x562c0a(0x36b)][_0x562c0a(0x2d8)]({'title':this[_0x562c0a(0x229)]['t'](_0x562c0a(0x31b)),'content':this[_0x562c0a(0x229)]['t'](_0x562c0a(0x1e8)),'type':'error','duration':0x0}),_0x14a85d['id']===_0x583ad6[_0x562c0a(0x35c)]&&this[_0x562c0a(0x36e)][_0x562c0a(0x2d8)]({'type':_0x483245['Error'],'content':this[_0x562c0a(0x229)]['t'](_0x562c0a(0x184))+'('+_0x14a85d[_0x562c0a(0x2ea)]+')'}),_0x14a85d['id']===_0x583ad6[_0x562c0a(0x313)]&&this['_messageService'][_0x562c0a(0x2d8)]({'type':_0x483245[_0x562c0a(0x266)],'content':this[_0x562c0a(0x229)]['t'](_0x14a85d['data']||'')}),_0x14a85d['id']===_0x583ad6[_0x562c0a(0x1c3)]&&this[_0x562c0a(0x36e)]['show']({'type':_0x483245[_0x562c0a(0x266)],'content':this[_0x562c0a(0x229)]['t']('session.will-retry')}),_0x14a85d['id']===_0x583ad6['SOCKET_FAILED']&&this[_0x562c0a(0x36e)][_0x562c0a(0x2d8)]({'type':_0x483245['Error'],'content':this[_0x562c0a(0x229)]['t'](_0x562c0a(0x170))}),_0x14a85d['id']===_0x583ad6[_0x562c0a(0x361)]&&this[_0x562c0a(0x36e)][_0x562c0a(0x2d8)]({'type':_0x483245[_0x562c0a(0x252)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};se=Ji([B(0x0,_0x5e0be0),B(0x1,_0x2d2aa5),B(0x2,_0x473849(_0x1c6f84)),B(0x3,_0x408bbf),B(0x4,_0xb77896),B(0x5,_0x473849(_0x2371b9))],se);const Zi=_0x252217(0x250),et={},Ut=_0x3878eb(_0x252217(0x33e));var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x48729e,_0x444104,_0x47a168,_0x3082a7)=>{const _0x313261=_0x252217;for(var _0x210989=_0x3082a7>0x1?void 0x0:_0x3082a7?Qi(_0x444104,_0x47a168):_0x444104,_0x605457=_0x48729e[_0x313261(0x259)]-0x1,_0x4c7677;_0x605457>=0x0;_0x605457--)(_0x4c7677=_0x48729e[_0x605457])&&(_0x210989=_0x4c7677(_0x210989)||_0x210989);return _0x210989;},G=(_0x59decc,_0x1d401f)=>(_0x197ffb,_0x527c73)=>_0x1d401f(_0x197ffb,_0x527c73,_0x59decc);let ie=class extends _0x402deb{constructor(_0x9e8f6d,_0x4a5a1a,_0x23bbf1,_0x1318fd,_0xdd14a3){const _0x18f66b=_0x252217;super(),this[_0x18f66b(0x211)]=_0x9e8f6d,this[_0x18f66b(0x357)]=_0x4a5a1a,this[_0x18f66b(0x367)]=_0x23bbf1,this[_0x18f66b(0x2fe)]=_0x1318fd,_0xdd14a3?_0xdd14a3==null||_0xdd14a3['whenReady']()[_0x18f66b(0x2cb)](()=>this['_init']()):(this[_0x18f66b(0x357)][_0x18f66b(0x2a2)](_0x18f66b(0x217),_0x18f66b(0x2a7)),this['_init']());}async[_0x252217(0x183)](){const _0x14582f=_0x252217,_0x56c003=this[_0x14582f(0x211)][_0x14582f(0x1d2)](_0x14582f(0x246)),_0x6c2a39=this[_0x14582f(0x211)][_0x14582f(0x1d2)]('type'),_0x2d78e2=this[_0x14582f(0x211)][_0x14582f(0x1d2)](_0x14582f(0x310));if(!_0x56c003||!_0x6c2a39){this[_0x14582f(0x357)][_0x14582f(0x2a2)]('[CollaborationDataLoaderController]',_0x14582f(0x33c));return;}const _0x4d05a7=await this[_0x14582f(0x2fe)]['loadUnit'](_0x56c003,Number(_0x6c2a39),_0x2d78e2);_0x4d05a7&&_0x4d05a7 instanceof _0x414d66&&this['_setupSubUnitSync'](_0x4d05a7);}async[_0x252217(0x26b)](_0x177463){const _0x5782ea=_0x252217;await this[_0x5782ea(0x294)](_0x177463),_0x177463[_0x5782ea(0x23f)][_0x5782ea(0x1be)](_0x46b83f(this['dispose$']))[_0x5782ea(0x26e)](_0x5da30c=>{const _0x4f994e=_0x5782ea;_0x5da30c&&this[_0x4f994e(0x2e9)](_0x5da30c);}),this[_0x5782ea(0x211)][_0x5782ea(0x214)][_0x5782ea(0x1be)](_0x46b83f(this[_0x5782ea(0x22f)]))[_0x5782ea(0x26e)](()=>this[_0x5782ea(0x294)](_0x177463));}[_0x252217(0x2e9)](_0x35624c,_0x503e47=!0x1){const _0x3a6eea=_0x252217,_0x595bd1=this['_urlService']['getParam'](_0x3a6eea(0x310));_0x35624c[_0x3a6eea(0x1e3)]()!==_0x595bd1&&this[_0x3a6eea(0x211)]['setParam']('subunit',_0x35624c[_0x3a6eea(0x1e3)](),_0x503e47);}async[_0x252217(0x294)](_0x35f951){const _0xba51ff=_0x252217;var _0x2bd892;const _0x1b3a52=this[_0xba51ff(0x211)][_0xba51ff(0x1d2)](_0xba51ff(0x310));if(!_0x1b3a52||!_0x35f951[_0xba51ff(0x275)](_0x1b3a52)){const _0xddda91=_0x35f951['getUnhiddenWorksheets']()[0x0],_0x516f62=_0x35f951['getSheetBySheetId'](_0xddda91);if(!_0x516f62)return;this[_0xba51ff(0x2e9)](_0x516f62,!0x0),await this['_commandService'][_0xba51ff(0x268)](_0x30ccf7['id'],{'unitId':_0x35f951['getUnitId'](),'subUnitId':_0xddda91});return;}((_0x2bd892=_0x35f951[_0xba51ff(0x232)]())==null?void 0x0:_0x2bd892[_0xba51ff(0x1e3)]())!==_0x1b3a52&&await this[_0xba51ff(0x367)][_0xba51ff(0x268)](_0x30ccf7['id'],{'unitId':_0x35f951[_0xba51ff(0x190)](),'subUnitId':_0x1b3a52});}};ie=qi([G(0x0,Ut),G(0x1,_0x49ab64),G(0x2,_0x192617),G(0x3,_0x473849(_0x33a7f6)),G(0x4,_0x3e1f2d(_0x331246))],ie);var en=Object[_0x252217(0x34f)],tn=(_0x2b6e6f,_0xca91c8,_0x15cefa,_0xe06e97)=>{for(var _0x21741a=_0xe06e97>0x1?void 0x0:_0xe06e97?en(_0xca91c8,_0x15cefa):_0xca91c8,_0x42a2cf=_0x2b6e6f['length']-0x1,_0xb2b51b;_0x42a2cf>=0x0;_0x42a2cf--)(_0xb2b51b=_0x2b6e6f[_0x42a2cf])&&(_0x21741a=_0xb2b51b(_0x21741a)||_0x21741a);return _0x21741a;},pe=(_0x235801,_0x27286c)=>(_0x377dc9,_0x1bc084)=>_0x27286c(_0x377dc9,_0x1bc084,_0x235801);let ne=class{constructor(_0x51f609,_0x421f6d,_0x3d5c15){const _0xf98437=_0x252217;this[_0xf98437(0x2e5)]=_0x51f609,this[_0xf98437(0x286)]=_0x421f6d,this['_renderManagerService']=_0x3d5c15;}[_0x252217(0x32c)](_0xe5b39a){const _0x3aff6f=_0x252217;this[_0x3aff6f(0x2ec)](_0xe5b39a),this[_0x3aff6f(0x281)](_0xe5b39a);}[_0x252217(0x32d)](_0x3f1fb7){const _0xb567bc=_0x252217,{unitID:_0x22af24}=_0x3f1fb7,_0x1a5423=this['_renderManagerService'][_0xb567bc(0x2b3)](_0x22af24)['with'](_0x233890),{redoCache:_0x5907ad}=_0x1a5423[_0xb567bc(0x1aa)]();if(_0x5907ad[_0xb567bc(0x259)]===0x0)return _0x3f1fb7;let _0x1eb030=_0xde0aa9[_0xb567bc(0x279)](_0x3f1fb7[_0xb567bc(0x312)][0x0]);for(let _0x1996da=0x0;_0x1996da<_0x5907ad[_0xb567bc(0x259)];_0x1996da++){const _0x2a3767={'id':_0xb567bc(0x249),'params':{..._0x5907ad[_0x1996da]}},_0x14e8c=this['_transformService'][_0xb567bc(0x1a3)](_0x1eb030,_0x2a3767,!0x1);if(_0x41ed2e(_0x14e8c))throw _0x14e8c[_0xb567bc(0x1e1)];_0x1eb030=_0x14e8c[_0xb567bc(0x23c)];}return{..._0xde0aa9['deepClone'](_0x3f1fb7),'mutations':[_0x1eb030]};}[_0x252217(0x2ec)](_0x5547b2){const _0x2b9c61=_0x252217,{unitID:_0x218aea}=_0x5547b2,_0x2d1e6a=this['_renderManagerService'][_0x2b9c61(0x2b3)](_0x218aea)[_0x2b9c61(0x197)](_0x233890),{undoCache:_0x1dfcae,redoCache:_0x4d896d}=_0x2d1e6a[_0x2b9c61(0x1aa)]();if(_0x1dfcae[_0x2b9c61(0x259)]===0x0||_0x4d896d[_0x2b9c61(0x259)]===0x0)return;const _0x2c57a1=[],_0x245ce5=[];let _0x45ac1f=_0xde0aa9[_0x2b9c61(0x279)](_0x5547b2['mutations'][0x0]),_0x564361=_0xde0aa9[_0x2b9c61(0x279)](_0x5547b2[_0x2b9c61(0x312)][0x0]);for(let _0x20db31=_0x1dfcae[_0x2b9c61(0x259)]-0x1;_0x20db31>=0x0;_0x20db31--){const _0x52139a={'id':'doc.mutation.rich-text-editing','params':{..._0x1dfcae[_0x20db31]}},_0x3db09d={'id':_0x2b9c61(0x249),'params':{..._0x4d896d[_0x20db31]}},_0xab6cb8=this[_0x2b9c61(0x286)]['transformMutation'](_0x45ac1f,_0x52139a,!0x1),_0x7f66b6=this['_transformService']['transformMutation'](_0x564361,_0x3db09d,!0x1);if(_0x41ed2e(_0xab6cb8))throw _0xab6cb8['error'];if(_0x41ed2e(_0x7f66b6))throw _0x7f66b6[_0x2b9c61(0x1e1)];_0x2c57a1[_0x2b9c61(0x1e7)](_0xab6cb8[_0x2b9c61(0x363)]['params']),_0x245ce5[_0x2b9c61(0x1e7)](_0x7f66b6[_0x2b9c61(0x363)]['params']),_0x45ac1f=_0xab6cb8['m1Prime'],_0x564361=_0x7f66b6[_0x2b9c61(0x23c)];}_0x2d1e6a['setUndoRedoMutationParamsCache']({'undoCache':_0x2c57a1,'redoCache':_0x245ce5});}['_transformPreviousActiveRange'](_0x4f576f){const _0x1d6a3d=_0x252217,{unitID:_0x59786f}=_0x4f576f,_0x5e179d=this[_0x1d6a3d(0x1bb)][_0x1d6a3d(0x2b3)](_0x59786f)[_0x1d6a3d(0x197)](_0x233890),_0x3e4d19=_0x5e179d[_0x1d6a3d(0x2c2)]();if(_0x3e4d19==null)return;const _0x4b186c=[{'id':_0x1d6a3d(0x249),'params':{'unitId':_0x4f576f[_0x1d6a3d(0x1d8)],'actions':null,'textRanges':[_0x3e4d19]}}],_0x16f63d=this['_transformService'][_0x1d6a3d(0x2ad)](_0x4f576f,_0x4b186c);if(!_0x18ec12(_0x16f63d))throw _0x16f63d[_0x1d6a3d(0x1e1)];const _0x19ee86=_0x16f63d['m2Prime'][0x0][_0x1d6a3d(0x35e)][_0x1d6a3d(0x307)];Array['isArray'](_0x19ee86)&&_0x19ee86[_0x1d6a3d(0x259)]&&_0x5e179d[_0x1d6a3d(0x350)](_0x19ee86[0x0]);}};ne=tn([pe(0x0,_0x473849(_0x25a4c0)),pe(0x1,_0x409fe5),pe(0x2,_0x4c7bc5)],ne);var sn=Object[_0x252217(0x34f)],nn=(_0x41ac93,_0x5457e3,_0x286f38,_0x413ffd)=>{const _0x7ce854=_0x252217;for(var _0x4e800a=_0x413ffd>0x1?void 0x0:_0x413ffd?sn(_0x5457e3,_0x286f38):_0x5457e3,_0x5c11c0=_0x41ac93[_0x7ce854(0x259)]-0x1,_0x1d4fee;_0x5c11c0>=0x0;_0x5c11c0--)(_0x1d4fee=_0x41ac93[_0x5c11c0])&&(_0x4e800a=_0x1d4fee(_0x4e800a)||_0x4e800a);return _0x4e800a;},Ce=(_0x2e2cc3,_0x3c1a78)=>(_0x4bcbd1,_0x10c06c)=>_0x3c1a78(_0x4bcbd1,_0x10c06c,_0x2e2cc3);let re=class{constructor(_0x160cdc,_0x5cdcab,_0x15f894){const _0x10439a=_0x252217;this[_0x10439a(0x2e5)]=_0x160cdc,this[_0x10439a(0x286)]=_0x5cdcab,this[_0x10439a(0x273)]=_0x15f894;}[_0x252217(0x2b0)](_0x150c2c){const _0x23690c=_0x252217;this[_0x23690c(0x327)](_0x150c2c);}[_0x252217(0x32d)](_0x7c8b98){const _0x2d691f=_0x252217,{unitID:_0x530307}=_0x7c8b98,{collaboration:_0x15ec0d}=this[_0x2d691f(0x273)][_0x2d691f(0x1b1)](_0x530307);if(_0x15ec0d[_0x2d691f(0x259)]===0x0)return _0x7c8b98;let _0xdb5366=_0xde0aa9[_0x2d691f(0x279)](_0x7c8b98['mutations'][0x0]);for(let _0x4b66a2=0x0;_0x4b66a2<_0x15ec0d[_0x2d691f(0x259)];_0x4b66a2++){const _0xb10b81={'id':_0x2d691f(0x249),'params':{'unitId':_0x15ec0d[_0x4b66a2][_0x2d691f(0x28e)],..._0x15ec0d[_0x4b66a2][_0x2d691f(0x2ab)]}},_0x42b026=this['_transformService']['transformMutation'](_0xdb5366,_0xb10b81,!0x1);if(_0x41ed2e(_0x42b026))throw _0x42b026['error'];_0xdb5366=_0x42b026[_0x2d691f(0x23c)];}return{..._0xde0aa9[_0x2d691f(0x279)](_0x7c8b98),'mutations':[_0xdb5366]};}['_transformHistoryAndStateStack'](_0x5587f7){const _0x5808c2=_0x252217,{unitID:_0x13b114}=_0x5587f7,{history:_0x42c191,collaboration:_0x594dcd}=this[_0x5808c2(0x273)][_0x5808c2(0x1b1)](_0x13b114);if(_0x42c191[_0x5808c2(0x259)]===0x0&&_0x594dcd['length']===0x0)return;const _0x44f70e=[],_0x41ae31=[];let _0x1557c1=_0xde0aa9['deepClone'](_0x5587f7['mutations'][0x0]),_0x14e5bd=_0xde0aa9['deepClone'](_0x5587f7[_0x5808c2(0x312)][0x0]);for(let _0x2fbdc7=_0x42c191[_0x5808c2(0x259)]-0x1;_0x2fbdc7>=0x0;_0x2fbdc7--){const _0x43d82d={'id':_0x5808c2(0x249),'params':{'unitId':_0x42c191[_0x2fbdc7]['unitId'],..._0x42c191[_0x2fbdc7]['undoState']}},_0x5ccbc2={'id':_0x5808c2(0x249),'params':{'unitId':_0x42c191[_0x2fbdc7]['unitId'],..._0x42c191[_0x2fbdc7][_0x5808c2(0x2ab)]}},_0x3989a8=this[_0x5808c2(0x286)]['transformMutation'](_0x1557c1,_0x43d82d,!0x1),_0x4ccea1=this['_transformService']['transformMutation'](_0x14e5bd,_0x5ccbc2,!0x1);if(_0x41ed2e(_0x3989a8))throw _0x3989a8['error'];if(_0x41ed2e(_0x4ccea1))throw _0x4ccea1[_0x5808c2(0x1e1)];_0x44f70e[_0x5808c2(0x1e7)]({..._0x42c191[_0x2fbdc7],'undoState':_0x3989a8['m2Prime'][_0x5808c2(0x35e)],'redoState':_0x4ccea1[_0x5808c2(0x363)][_0x5808c2(0x35e)]}),_0x1557c1=_0x3989a8[_0x5808c2(0x23c)],_0x14e5bd=_0x4ccea1[_0x5808c2(0x23c)];}_0x1557c1=_0xde0aa9[_0x5808c2(0x279)](_0x5587f7[_0x5808c2(0x312)][0x0]),_0x14e5bd=_0xde0aa9[_0x5808c2(0x279)](_0x5587f7['mutations'][0x0]);for(let _0x5d6296=_0x594dcd[_0x5808c2(0x259)]-0x1;_0x5d6296>=0x0;_0x5d6296--){const _0x587dc9={'id':_0x5808c2(0x249),'params':{'unitId':_0x594dcd[_0x5d6296][_0x5808c2(0x28e)],..._0x594dcd[_0x5d6296]['undoState']}},_0x477371={'id':_0x5808c2(0x249),'params':{'unitId':_0x594dcd[_0x5d6296][_0x5808c2(0x28e)],..._0x594dcd[_0x5d6296]['redoState']}},_0x1bd1ed=this[_0x5808c2(0x286)][_0x5808c2(0x1a3)](_0x1557c1,_0x587dc9,!0x1),_0x46d2d6=this[_0x5808c2(0x286)]['transformMutation'](_0x14e5bd,_0x477371,!0x1);if(_0x41ed2e(_0x1bd1ed))throw _0x1bd1ed['error'];if(_0x41ed2e(_0x46d2d6))throw _0x46d2d6[_0x5808c2(0x1e1)];_0x41ae31[_0x5808c2(0x1e7)]({..._0x594dcd[_0x5d6296],'undoState':_0x1bd1ed[_0x5808c2(0x363)][_0x5808c2(0x35e)],'redoState':_0x46d2d6[_0x5808c2(0x363)][_0x5808c2(0x35e)]}),_0x1557c1=_0x1bd1ed[_0x5808c2(0x23c)],_0x14e5bd=_0x46d2d6[_0x5808c2(0x23c)];}this[_0x5808c2(0x273)][_0x5808c2(0x30f)](_0x13b114,{'history':_0x44f70e,'collaboration':_0x41ae31});}};re=nn([Ce(0x0,_0x473849(_0x25a4c0)),Ce(0x1,_0x409fe5),Ce(0x2,_0x473849(_0x54e3f0))],re);var rn=Object[_0x252217(0x34f)],on=(_0x3af47d,_0x507d6a,_0x42e081,_0x2043aa)=>{const _0x1afe4e=_0x252217;for(var _0xec61a9=_0x2043aa>0x1?void 0x0:_0x2043aa?rn(_0x507d6a,_0x42e081):_0x507d6a,_0xcbdac9=_0x3af47d[_0x1afe4e(0x259)]-0x1,_0x2dc97b;_0xcbdac9>=0x0;_0xcbdac9--)(_0x2dc97b=_0x3af47d[_0xcbdac9])&&(_0xec61a9=_0x2dc97b(_0xec61a9)||_0xec61a9);return _0xec61a9;},tt=(_0x23e840,_0x3a68e0)=>(_0x1ad1cf,_0x98462e)=>_0x3a68e0(_0x1ad1cf,_0x98462e,_0x23e840);let oe=class{constructor(_0x26fa70,_0x3a36e0){const _0x3e5305=_0x252217;this['_injector']=_0x26fa70,this[_0x3e5305(0x286)]=_0x3a36e0;}['transformSelections'](_0x3f0abf){const _0x1148c5=_0x252217;var _0x392e10;const _0xc93e9c=this[_0x1148c5(0x2e5)][_0x1148c5(0x302)](_0x865cc4),_0x45d6c1=(_0x392e10=_0xc93e9c[_0x1148c5(0x2e2)]())!=null?_0x392e10:[];if(_0x45d6c1[_0x1148c5(0x259)]===0x0)return;const _0x20c034=_0x3f0abf['unitID'],_0x476a37=[{'id':_0x1148c5(0x249),'params':{'unitId':_0x20c034,'actions':null,'textRanges':_0x45d6c1}}],_0x1c650e=this[_0x1148c5(0x286)][_0x1148c5(0x2ad)](_0x3f0abf,_0x476a37);if(!_0x18ec12(_0x1c650e))throw _0x1c650e['error'];const _0x153f0f=_0x1c650e['m2Prime'][0x0][_0x1148c5(0x35e)]['textRanges'];Array[_0x1148c5(0x345)](_0x153f0f)&&_0x153f0f['length']&&_0xc93e9c[_0x1148c5(0x225)](_0x153f0f,{'unitId':_0x20c034,'subUnitId':_0x20c034},!0x1);}};oe=on([tt(0x0,_0x473849(_0x25a4c0)),tt(0x1,_0x409fe5)],oe);var an=Object[_0x252217(0x34f)],cn=(_0xebe9bd,_0x26ff51,_0x6a4b34,_0x4c528c)=>{for(var _0x4f10e4=_0x4c528c>0x1?void 0x0:_0x4c528c?an(_0x26ff51,_0x6a4b34):_0x26ff51,_0x15732c=_0xebe9bd['length']-0x1,_0x18ac3b;_0x15732c>=0x0;_0x15732c--)(_0x18ac3b=_0xebe9bd[_0x15732c])&&(_0x4f10e4=_0x18ac3b(_0x4f10e4)||_0x4f10e4);return _0x4f10e4;},U=(_0x4a04d0,_0x486be6)=>(_0x29766b,_0x7fef3d)=>_0x486be6(_0x29766b,_0x7fef3d,_0x4a04d0);let ae=class extends _0x271547{constructor(_0x577a63,_0xd8ea2a,_0xf38689,_0x4258f3,_0x26e590,_0x1de791,_0x52d323,_0x538ddc){const _0x438634=_0x252217;super(),_(this,_0x438634(0x24d),new _0x88603b(_0x3eac87[_0x438634(0x26a)])),(this[_0x438634(0x273)]=_0x577a63,this[_0x438634(0x243)]=_0xd8ea2a,this[_0x438634(0x223)]=_0xf38689,this[_0x438634(0x34c)]=_0x4258f3,this['_docTransformSelectionsService']=_0x26e590,this[_0x438634(0x29e)]=_0x1de791,this[_0x438634(0x36e)]=_0x52d323,this[_0x438634(0x229)]=_0x538ddc,this['_initEntityListener']());}[_0x252217(0x179)](){const _0x150ac3=_0x252217;this[_0x150ac3(0x29b)](this[_0x150ac3(0x243)][_0x150ac3(0x216)][_0x150ac3(0x26e)](_0x5d3227=>{const _0x334c01=_0x150ac3,_0xbb4d4=this[_0x334c01(0x273)][_0x334c01(0x20b)][_0x334c01(0x26e)](_0x34f745=>{const _0x9bf294=_0x334c01;if(_0x34f745==null)return;const {unitId:_0x400a7e,redoState:_0x2901af,commandId:_0x3ad654}=_0x34f745;if(_0x400a7e!==_0x5d3227['unitID'])return;const _0x2eec4e={'id':_0x3ad654,'type':_0x2019a3[_0x9bf294(0x1c7)],'params':{'unitId':_0x400a7e,'actions':_0x2901af[_0x9bf294(0x2a4)],'textRanges':null}};_0x5d3227['onLocalMutation'](_0x2eec4e);});if(_0x5d3227[_0x334c01(0x29b)](_0xbb4d4),_0x5d3227 instanceof _0x58a2ff){const _0x496e30={'onTransformIME':_0x38a827=>this['_docTransformIMECacheService'][_0x334c01(0x32c)](_0x38a827),'onTransformState':_0x487842=>this['_docTransformStateCacheService'][_0x334c01(0x2b0)](_0x487842),'onTransformSelections':_0x4ca410=>this[_0x334c01(0x21d)]['transformSelections'](_0x4ca410),'onSyncEditingCollabCursor':_0x364daa=>this[_0x334c01(0x29e)][_0x334c01(0x17b)](_0x364daa),'onTransformRemoteChangesetByIMECache':_0x2d4e42=>this['_docTransformIMECacheService'][_0x334c01(0x32d)](_0x2d4e42),'onTransformRemoteChangesetByStateCache':_0x29e74c=>this[_0x334c01(0x34c)]['transformRemoteChangeset'](_0x29e74c)};_0x5d3227[_0x334c01(0x1ee)](_0x496e30);}}));}};ae=cn([U(0x0,_0x473849(_0x54e3f0)),U(0x1,_0x473849(_0xd0ad51)),U(0x2,_0x473849(ne)),U(0x3,_0x473849(re)),U(0x4,_0x473849(oe)),U(0x5,_0x473849(He)),U(0x6,_0x408bbf),U(0x7,_0x473849(_0x2371b9))],ae);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x2d534f,_0x28194d,_0x1f81bf,_0x268498)=>{const _0x1af91d=_0x252217;for(var _0x5e1c23=_0x268498>0x1?void 0x0:_0x268498?ln(_0x28194d,_0x1f81bf):_0x28194d,_0x4e3db9=_0x2d534f[_0x1af91d(0x259)]-0x1,_0x4f19e4;_0x4e3db9>=0x0;_0x4e3db9--)(_0x4f19e4=_0x2d534f[_0x4e3db9])&&(_0x5e1c23=_0x4f19e4(_0x5e1c23)||_0x5e1c23);return _0x5e1c23;},Ee=(_0x306445,_0x188828)=>(_0x2be75a,_0x4059f3)=>_0x188828(_0x2be75a,_0x4059f3,_0x306445);let Le=class extends _0x271547{constructor(_0x1c65ae,_0x1037e7,_0x5dbd3b){const _0xf4b2d=_0x252217;super(),_(this,'_cachedData',new Map()),_(this,_0xf4b2d(0x1af),new Map()),_(this,_0xf4b2d(0x22e),!0x1),(this[_0xf4b2d(0x1ae)]=_0x1c65ae,this[_0xf4b2d(0x2dc)]=_0x1037e7,this[_0xf4b2d(0x292)]=_0x5dbd3b);}[_0x252217(0x2db)](){const _0x22e62b=_0x252217;this[_0x22e62b(0x22e)]=!0x0;}[_0x252217(0x280)](){const _0x1cae5b=_0x252217;this[_0x1cae5b(0x22e)]=!0x1;}get[_0x252217(0x1b5)](){const _0xd89844=_0x252217;return this[_0xd89844(0x1af)];}[_0x252217(0x248)](){const _0x4b38e1=_0x252217;this[_0x4b38e1(0x2ae)]()['then'](()=>super[_0x4b38e1(0x248)]());}async[_0x252217(0x224)](_0x62d9d8){const _0x12b36e=_0x252217;return this[_0x12b36e(0x22e)]?null:this[_0x12b36e(0x2dc)]['getItem'](_0x5ac624(_0x62d9d8));}async['saveOfflineData'](_0x43a144,_0x959693){const _0x514144=_0x252217;return!!this[_0x514144(0x2dc)][_0x514144(0x360)](_0x43a144,_0x959693);}['updateOfflineData'](_0x2bd30b,_0x451793,_0x2a1376,_0x18a2ef){const _0x3a27f0=_0x252217,_0x250958=this['_revisionService'][_0x3a27f0(0x1e6)](_0x2bd30b);this[_0x3a27f0(0x1a7)][_0x3a27f0(0x1c5)](_0x2bd30b,{'unitID':_0x2bd30b,'type':_0x451793,'awaitingChangeset':_0x2a1376,'mutations':_0x18a2ef,'rev':_0x250958}),this[_0x3a27f0(0x1af)][_0x3a27f0(0x1b9)](_0x2bd30b)||this[_0x3a27f0(0x1a5)](_0x2bd30b);}['_scheduleSaving'](_0xa271de){const _0x19d6ec=_0x252217,_0x531462=this[_0x19d6ec(0x174)]();_0x531462===0x0?this[_0x19d6ec(0x359)](_0xa271de):this[_0x19d6ec(0x1af)][_0x19d6ec(0x1c5)](_0xa271de,setTimeout(()=>this[_0x19d6ec(0x359)](_0xa271de),_0x531462));}[_0x252217(0x174)](){const _0x161a7d=_0x252217;var _0x13de64;return(_0x13de64=this[_0x161a7d(0x1ae)]['getConfig'](_0x202da9))!=null?_0x13de64:_0x4dd31f;}[_0x252217(0x359)](_0x1f5b16){const _0x1d6387=_0x252217,_0x2d7dfd=this['_saveTaskMap'][_0x1d6387(0x302)](_0x1f5b16);return _0x2d7dfd!==void 0x0&&window[_0x1d6387(0x27d)](_0x2d7dfd),this[_0x1d6387(0x2dc)][_0x1d6387(0x360)](_0x5ac624(_0x1f5b16),this[_0x1d6387(0x1a7)][_0x1d6387(0x302)](_0x1f5b16))[_0x1d6387(0x2cb)](()=>this['_saveTaskMap'][_0x1d6387(0x2ce)](_0x1f5b16));}async[_0x252217(0x2ae)](){const _0x432101=_0x252217,_0x3f06bb=[];this[_0x432101(0x1af)][_0x432101(0x1f3)]((_0x6b35d8,_0x2c5cdf)=>{const _0xd84a31=_0x432101;window['clearTimeout'](_0x6b35d8),_0x3f06bb[_0xd84a31(0x2eb)](this['_saveCache'](_0x2c5cdf)[_0xd84a31(0x2cb)](()=>{const _0x838662=_0xd84a31;this[_0x838662(0x1af)][_0x838662(0x2ce)](_0x2c5cdf);}));}),await Promise[_0x432101(0x1ef)](_0x3f06bb);}};Le=_n([Ee(0x0,_0x541aa1),Ee(0x1,_0x3cbbfd),Ee(0x2,_0x473849(_0x47a4ee))],Le);class hn extends _0x402deb{constructor(){const _0x295b13=_0x252217;super(),_(this,_0x295b13(0x214)),this[_0x295b13(0x214)]=_0x2922f1(window,'popstate')[_0x295b13(0x1be)](_0x46b83f(this[_0x295b13(0x22f)]),_0x11aefe(0x1),_0x321369(void 0x0));}['setParam'](_0x4635b1,_0x572c76,_0x47af55=!0x1){const _0x545232=_0x252217,_0x53a157=new URL(window[_0x545232(0x2fd)][_0x545232(0x1ab)]);_0x53a157[_0x545232(0x23d)]['set'](_0x4635b1,_0x572c76),_0x47af55?window[_0x545232(0x304)][_0x545232(0x188)]('','',_0x53a157[_0x545232(0x2f5)]()):window[_0x545232(0x304)][_0x545232(0x331)]('','',_0x53a157[_0x545232(0x2f5)]());}[_0x252217(0x35f)](_0xf4100c,_0x36a35e=!0x1){const _0x58afd5=_0x252217,_0x253de5=new URL(window[_0x58afd5(0x2fd)][_0x58afd5(0x1ab)]);_0x253de5['searchParams']['delete'](_0xf4100c),_0x36a35e?window[_0x58afd5(0x304)][_0x58afd5(0x188)]('','',_0x253de5[_0x58afd5(0x2f5)]()):window[_0x58afd5(0x304)][_0x58afd5(0x331)]('','',_0x253de5[_0x58afd5(0x2f5)]());}[_0x252217(0x1d2)](_0x59fe1b){const _0x24019a=_0x252217;var _0x23f9fd;return(_0x23f9fd=new URL(window[_0x24019a(0x2fd)][_0x24019a(0x1ab)])['searchParams'][_0x24019a(0x302)](_0x59fe1b))!=null?_0x23f9fd:void 0x0;}}var un=Object['defineProperty'],dn=Object[_0x252217(0x34f)],fn=(_0x57c082,_0x459e21,_0x30a33a)=>_0x459e21 in _0x57c082?un(_0x57c082,_0x459e21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30a33a}):_0x57c082[_0x459e21]=_0x30a33a,Sn=(_0x47ff91,_0x42678c,_0x522830,_0x538b2d)=>{const _0xc50f3e=_0x252217;for(var _0x30cd45=_0x538b2d>0x1?void 0x0:_0x538b2d?dn(_0x42678c,_0x522830):_0x42678c,_0x386142=_0x47ff91[_0xc50f3e(0x259)]-0x1,_0x4b176d;_0x386142>=0x0;_0x386142--)(_0x4b176d=_0x47ff91[_0x386142])&&(_0x30cd45=_0x4b176d(_0x30cd45)||_0x30cd45);return _0x30cd45;},Oe=(_0x4a8dd3,_0x1439fe)=>(_0x3b30d3,_0x481460)=>_0x1439fe(_0x3b30d3,_0x481460,_0x4a8dd3),mn=(_0xb62edf,_0x34cc3f,_0x5d32d3)=>fn(_0xb62edf,_0x34cc3f+'',_0x5d32d3);const In=_0x252217(0x272);let Ae=class extends _0x129955{constructor(_0x2e4d26=et,_0x27273d,_0x45f143,_0x492e99){const _0x54ccce=_0x252217;super(),this[_0x54ccce(0x26c)]=_0x2e4d26,this[_0x54ccce(0x1bb)]=_0x27273d,this['_injector']=_0x45f143,this[_0x54ccce(0x1ae)]=_0x492e99;const {..._0x2c1c9c}=_0x2eb7a4({},et,this[_0x54ccce(0x26c)]);this[_0x54ccce(0x1ae)][_0x54ccce(0x301)](Zi,_0x2c1c9c);}['onStarting'](){const _0x234e09=_0x252217;this[_0x234e09(0x317)](),this['_initDependencies']();}[_0x252217(0x1a1)](){const _0x45731b=_0x252217;this[_0x45731b(0x25e)]();}[_0x252217(0x317)](){const _0x14c6e1=_0x252217;var _0x55e081;const _0x1af432=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x14bea5,{'useClass':_0x5644fe}],[_0x2d2aa5,{'useClass':Le}],[te],[ae],[se],[H],[Ne],[ie]];_0xe33591(this[_0x14c6e1(0x2e5)],_0x202bf1(_0x1af432,(_0x55e081=this['_config'])==null?void 0x0:_0x55e081['override']));}['_registerRenderDependencies'](){const _0x8a864e=_0x252217;this[_0x8a864e(0x29b)](this[_0x8a864e(0x1bb)]['registerRenderModule'](_0x1a81f3[_0x8a864e(0x2fc)],[we])),this[_0x8a864e(0x29b)](this[_0x8a864e(0x1bb)][_0x8a864e(0x1a8)](_0x1a81f3[_0x8a864e(0x2fb)],[Pe]));}[_0x252217(0x1f4)](){_0x2fc7f7(this['_injector'],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x252217(0x1b4),In),Ae=Sn([_0x3c0369(_0x515576),Oe(0x1,_0x4c7bc5),Oe(0x2,_0x473849(_0x25a4c0)),Oe(0x3,_0x541aa1)],Ae);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x5562ec,_0x385fd1,_0x505e28,_0x3051fa)=>{const _0x260153=_0x252217;for(var _0x15bd61=_0x3051fa>0x1?void 0x0:_0x3051fa?gn(_0x385fd1,_0x505e28):_0x385fd1,_0x5dfdea=_0x5562ec[_0x260153(0x259)]-0x1,_0x8e2af8;_0x5dfdea>=0x0;_0x5dfdea--)(_0x8e2af8=_0x5562ec[_0x5dfdea])&&(_0x15bd61=_0x8e2af8(_0x15bd61)||_0x15bd61);return _0x15bd61;},K=(_0x232066,_0x44401b)=>(_0x5ebc7e,_0xdfed7e)=>_0x44401b(_0x5ebc7e,_0xdfed7e,_0x232066);let st=class extends _0x196c88{constructor(_0xc29405,_0x22380f,_0x355ad2,_0x42c290,_0x1d03c8){super(_0xc29405,_0x22380f,_0x355ad2,_0x42c290,_0x1d03c8);}async['createSocket'](_0x2172d8){const _0x1e1f3c=_0x252217,_0xa86754=await this[_0x1e1f3c(0x28f)](),_0x1fc836=this['_createSocketURL'](_0x2172d8,_0xa86754);return this['_doCreateSocket'](_0x1fc836);}[_0x252217(0x318)](_0x2b44fc,_0x4051c5){const _0x4b4557=_0x252217,_0x1e43ba=typeof window>'u'?new URL(_0x2b44fc):new URL(_0x2b44fc,window['location'][_0x4b4557(0x35d)]);_0x1e43ba[_0x4b4557(0x23d)][_0x4b4557(0x1c5)](_0x4b4557(0x1b7),_0x4051c5);const _0x5882e7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x4b4557(0x2b8)]);return _0x5882e7[_0x4b4557(0x302)](_0x4b4557(0x2ed))&&_0x1e43ba['searchParams']['set']('runId',_0x5882e7['get'](_0x4b4557(0x2ed))),_0x1e43ba[_0x4b4557(0x2f5)]();}async[_0x252217(0x28f)](){const _0x39e87c=_0x252217;var _0x5412c6,_0xdfec88,_0x400e8b;const _0x28e980=this[_0x39e87c(0x1ae)][_0x39e87c(0x324)](_0x187f1d),_0x5f4766=(_0x5412c6=_0x28e980==null?void 0x0:_0x28e980['wsSessionTicketUrl'])!=null?_0x5412c6:_0x4ee07e;return(_0x400e8b=(_0xdfec88=(await this[_0x39e87c(0x1b6)]['get'](_0x5f4766,{'headers':{'Content-Type':_0x39e87c(0x1cd)}}))[_0x39e87c(0x29d)])==null?void 0x0:_0xdfec88[_0x39e87c(0x1fb)])!=null?_0x400e8b:'';}};st=vn([K(0x0,_0x473849(_0x25a4c0)),K(0x1,_0x473849(_0x4f8f19)),K(0x2,_0x541aa1),K(0x3,_0x49ab64),K(0x4,_0x102f3f)],st);const it=0x7530,nt=_0x252217(0x316);class jn extends _0x271547{constructor(){const _0x3d2dd9=_0x252217;super(),_(this,'_id',_0x663e96()),_(this,_0x3d2dd9(0x25c),new Set()),_(this,_0x3d2dd9(0x283),new Map()),_(this,_0x3d2dd9(0x18c),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x3d2dd9(0x337),new Map()),this['_init']();}[_0x252217(0x248)](){const _0x417bed=_0x252217;super[_0x417bed(0x248)](),this[_0x417bed(0x1bc)][_0x417bed(0x1f3)]((_0x164f4b,_0x4856f1)=>this['_removeClearOtherTimer'](_0x4856f1)),this[_0x417bed(0x18c)]&&window['clearInterval'](this[_0x417bed(0x18c)]);}[_0x252217(0x1fc)](_0x374a9c){const _0x3e88c1=_0x252217;return this[_0x3e88c1(0x28d)](_0x374a9c)[_0x3e88c1(0x1be)](_0x4f6056());}[_0x252217(0x1da)](_0x10ab21){const _0x5736e6=_0x252217;this[_0x5736e6(0x25c)][_0x5736e6(0x2cf)]===0x0&&this[_0x5736e6(0x1ea)](),this['_selfUnitIDs'][_0x5736e6(0x31c)](_0x10ab21),this[_0x5736e6(0x264)]({'type':0x0,'memberID':this[_0x5736e6(0x191)],'unitIDs':[_0x10ab21],'isForwarded':!0x1});}[_0x252217(0x262)](_0x48f36d){const _0x296318=_0x252217;this[_0x296318(0x25c)][_0x296318(0x2ce)](_0x48f36d),this['_selfUnitIDs']['size']===0x0&&this[_0x296318(0x18c)]&&window[_0x296318(0x220)](this[_0x296318(0x18c)]);}[_0x252217(0x183)](){const _0x3fc9bc=_0x252217;this['disposeWithMe'](_0x50b6ce(_0x2922f1(window,_0x3fc9bc(0x342))[_0x3fc9bc(0x26e)](_0x4901a6=>{const _0x4abfb7=_0x3fc9bc;if(_0x4901a6[_0x4abfb7(0x175)]!==nt||!_0x4901a6[_0x4abfb7(0x364)])return;const _0x2e911b=JSON[_0x4abfb7(0x329)](_0x4901a6[_0x4abfb7(0x364)]);this[_0x4abfb7(0x2f2)](_0x2e911b);}))),window[_0x3fc9bc(0x282)](_0x3fc9bc(0x34b),()=>this[_0x3fc9bc(0x264)]({'type':0x1,'memberID':this[_0x3fc9bc(0x191)],'unitIDs':Array[_0x3fc9bc(0x355)](this[_0x3fc9bc(0x25c)])}));}['_handleEvent'](_0x442037){const _0x60374e=_0x252217;switch(_0x442037[_0x60374e(0x196)]){case 0x0:this['_handleJoinEvent'](_0x442037);break;case 0x1:this[_0x60374e(0x1c0)](_0x442037);break;case 0x2:this[_0x60374e(0x30a)](_0x442037);break;}}[_0x252217(0x24b)](_0x2c20c1){const _0x5f0eb2=_0x252217,{unitIDs:_0x3722f9,memberID:_0x172b4f,isForwarded:_0x514e72}=_0x2c20c1;_0x3722f9[_0x5f0eb2(0x1f3)](_0x377db9=>{const _0x1a7a5c=_0x5f0eb2;if(!_0x514e72&&this['_unitOnClients'][_0x1a7a5c(0x1b9)](_0x377db9)&&this[_0x1a7a5c(0x28d)](_0x377db9)[_0x1a7a5c(0x278)](_0x59fbcc[_0x1a7a5c(0x26f)]),!this['_unitOnClients'][_0x1a7a5c(0x1b9)](_0x377db9)||!this[_0x1a7a5c(0x283)]['get'](_0x377db9)['has'](_0x172b4f)){const _0x48c993=this[_0x1a7a5c(0x283)][_0x1a7a5c(0x302)](_0x377db9)||new Set();_0x48c993[_0x1a7a5c(0x31c)](_0x172b4f),this['_unitOnClients'][_0x1a7a5c(0x1c5)](_0x377db9,_0x48c993),this[_0x1a7a5c(0x19b)](_0x172b4f);}}),_0x514e72||this[_0x5f0eb2(0x264)]({'type':0x0,'memberID':this[_0x5f0eb2(0x191)],'unitIDs':[...this[_0x5f0eb2(0x25c)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5c94f0){const _0x84bd1d=_0x252217;this[_0x84bd1d(0x326)](_0x5c94f0);const _0x3547d7=window[_0x84bd1d(0x2c6)](()=>{const _0x97628b=_0x84bd1d;this[_0x97628b(0x283)][_0x97628b(0x1f3)](_0x3a8ed8=>{const _0x53ab5e=_0x97628b;_0x3a8ed8[_0x53ab5e(0x2ce)](_0x5c94f0);});},it*0x2);this[_0x84bd1d(0x1bc)][_0x84bd1d(0x1c5)](_0x5c94f0,_0x3547d7);}['_removeClearOtherTimer'](_0x523fea){const _0x5b23a0=_0x252217;if(this[_0x5b23a0(0x1bc)][_0x5b23a0(0x1b9)](_0x523fea)){const _0x2597e0=this['_clearOtherTimers'][_0x5b23a0(0x302)](_0x523fea);_0x2597e0&&window[_0x5b23a0(0x27d)](_0x2597e0),this[_0x5b23a0(0x1bc)]['set'](_0x523fea,null);}}['_handleLeaveEvent'](_0x3d9c73){const _0x83e287=_0x252217,{memberID:_0x2f9554,unitIDs:_0x3fa3d0}=_0x3d9c73;_0x3fa3d0[_0x83e287(0x1f3)](_0x22b00b=>{const _0x53894=_0x83e287;var _0x352df7;const _0x4fda38=this['_unitOnClients'][_0x53894(0x302)](_0x22b00b);_0x4fda38&&(_0x4fda38[_0x53894(0x2ce)](_0x2f9554),(_0x352df7=this[_0x53894(0x28d)](_0x22b00b))==null||_0x352df7['next'](_0x4fda38['size']===0x0?_0x59fbcc['NO_OTHER_CLIENTS_EDITING']:_0x59fbcc['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x2f9554);}[_0x252217(0x30a)](_0x41ff02){const _0x35282d=_0x252217;this[_0x35282d(0x19b)](_0x41ff02['memberID']);}[_0x252217(0x264)](_0x3b793f){const _0x4a2454=_0x252217;localStorage[_0x4a2454(0x360)](nt,JSON[_0x4a2454(0x2f7)](_0x3b793f));}[_0x252217(0x1ea)](){const _0xe5ad09=_0x252217;this[_0xe5ad09(0x18c)]=window[_0xe5ad09(0x274)](()=>{const _0x40ca33=_0xe5ad09;this['_send']({'type':0x2,'memberID':this[_0x40ca33(0x191)]});},it);}[_0x252217(0x28d)](_0x210d9e){const _0x56c1f3=_0x252217;return this[_0x56c1f3(0x337)]['has'](_0x210d9e)||this[_0x56c1f3(0x337)][_0x56c1f3(0x1c5)](_0x210d9e,new _0x88603b(_0x59fbcc[_0x56c1f3(0x288)])),this[_0x56c1f3(0x337)][_0x56c1f3(0x302)](_0x210d9e);}}var Mt=(_0x5c3547=>(_0x5c3547[_0x5c3547['UNDEFINED']=0x0]=_0x252217(0x233),_0x5c3547[_0x5c3547['OK']=0x1]='OK',_0x5c3547[_0x5c3547['INTERNAL_ERROR']=0x2]=_0x252217(0x2cc),_0x5c3547[_0x5c3547[_0x252217(0x1a9)]=0x3]=_0x252217(0x1a9),_0x5c3547[_0x5c3547['NOT_FOUND']=0x4]=_0x252217(0x32a),_0x5c3547[_0x5c3547[_0x252217(0x2b2)]=0x5]=_0x252217(0x2b2),_0x5c3547[_0x5c3547[_0x252217(0x2ee)]=0x6]=_0x252217(0x2ee),_0x5c3547[_0x5c3547[_0x252217(0x1b8)]=0x7]=_0x252217(0x1b8),_0x5c3547[_0x5c3547[_0x252217(0x213)]=0x8]=_0x252217(0x213),_0x5c3547[_0x5c3547[_0x252217(0x194)]=0x9]=_0x252217(0x194),_0x5c3547[_0x5c3547[_0x252217(0x19f)]=0xa]='LOGIN_FAILED',_0x5c3547[_0x5c3547[_0x252217(0x2bb)]=0x1389]=_0x252217(0x2bb),_0x5c3547[_0x5c3547[_0x252217(0x27e)]=0x1771]=_0x252217(0x27e),_0x5c3547[_0x5c3547[_0x252217(0x303)]=0x1772]=_0x252217(0x303),_0x5c3547[_0x5c3547[_0x252217(0x349)]=0x1773]=_0x252217(0x349),_0x5c3547[_0x5c3547[_0x252217(0x351)]=0x1b59]='APPLY_REJECT',_0x5c3547[_0x5c3547[_0x252217(0x265)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5c3547[_0x5c3547['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x252217(0x230),_0x5c3547[_0x5c3547[_0x252217(0x1db)]=0x1b5c]=_0x252217(0x1db),_0x5c3547[_0x5c3547['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x5c3547[_0x5c3547['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x252217(0x1c8),_0x5c3547[_0x5c3547['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5c3547[_0x5c3547[_0x252217(0x1e5)]=0x232a]=_0x252217(0x1e5),_0x5c3547[_0x5c3547['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x252217(0x2aa),_0x5c3547[_0x5c3547[_0x252217(0x269)]=0x232c]=_0x252217(0x269),_0x5c3547[_0x5c3547[_0x252217(0x19d)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5c3547[_0x5c3547['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5c3547[_0x5c3547['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x252217(0x1dc),_0x5c3547[_0x5c3547[_0x252217(0x228)]=0x2713]=_0x252217(0x228),_0x5c3547[_0x5c3547['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x252217(0x1de),_0x5c3547[_0x5c3547[_0x252217(0x22d)]=0x271a]=_0x252217(0x22d),_0x5c3547[_0x5c3547[_0x252217(0x20a)]=0x271b]=_0x252217(0x20a),_0x5c3547[_0x5c3547[_0x252217(0x1d6)]=0x271c]=_0x252217(0x1d6),_0x5c3547[_0x5c3547[_0x252217(0x178)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5c3547[_0x5c3547[_0x252217(0x2c1)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5c3547[_0x5c3547[_0x252217(0x30b)]=0x271f]=_0x252217(0x30b),_0x5c3547[_0x5c3547[_0x252217(0x344)]=0x2af9]=_0x252217(0x344),_0x5c3547[_0x5c3547['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x252217(0x2d7),_0x5c3547[_0x5c3547[_0x252217(0x215)]=0x2ee2]=_0x252217(0x215),_0x5c3547[_0x5c3547[_0x252217(0x23a)]=0x2ee3]=_0x252217(0x23a),_0x5c3547[_0x5c3547[_0x252217(0x203)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5c3547[_0x5c3547[_0x252217(0x2e7)]=0x2ee5]=_0x252217(0x2e7),_0x5c3547[_0x5c3547[_0x252217(0x2ca)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x5c3547[_0x5c3547[_0x252217(0x32e)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5c3547[_0x5c3547[_0x252217(0x189)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5c3547[_0x5c3547[_0x252217(0x1ac)]=-0x1]=_0x252217(0x1ac),_0x5c3547))(Mt||{}),pn=Object[_0x252217(0x34f)],Cn=(_0x12cc0d,_0x39fb7e,_0x3bb906,_0x7101ef)=>{const _0x484cbc=_0x252217;for(var _0x20b379=_0x7101ef>0x1?void 0x0:_0x7101ef?pn(_0x39fb7e,_0x3bb906):_0x39fb7e,_0x5e1fac=_0x12cc0d[_0x484cbc(0x259)]-0x1,_0x2b5f48;_0x5e1fac>=0x0;_0x5e1fac--)(_0x2b5f48=_0x12cc0d[_0x5e1fac])&&(_0x20b379=_0x2b5f48(_0x20b379)||_0x20b379);return _0x20b379;},be=(_0xb7c386,_0x4ed9bd)=>(_0x175b45,_0x49bc56)=>_0x4ed9bd(_0x175b45,_0x49bc56,_0xb7c386);let rt=class extends _0x271547{constructor(_0x46a67e,_0x2cf153,_0x221316){const _0x2a9f09=_0x252217;super(),this[_0x2a9f09(0x2b1)]=_0x46a67e,this['_httpService']=_0x2cf153,this[_0x2a9f09(0x1ae)]=_0x221316;}async[_0x252217(0x218)](_0xa55a14,_0x5123f7,_0x2837c9,..._0x1a8ffa){const _0x3a5873=_0x252217;var _0x4fd0f3,_0x3f87e7,_0x2a44e1,_0x36ec29;const _0x31054a=this[_0x3a5873(0x2b1)][_0x3a5873(0x322)]();if(!_0x31054a)throw new Error(_0x3a5873(0x2d3));const _0x300456=((_0x4fd0f3=this['_configService'][_0x3a5873(0x324)](_0x2c1c0e))!=null?_0x4fd0f3:_0xfdc127)+'/'+_0xa55a14+_0x3a5873(0x2d0)+_0x5123f7,_0x49949f=new URL(window['location']['href']),_0x55c030={'scriptId':_0xa55a14,'runId':(_0x3f87e7=_0x49949f[_0x3a5873(0x23d)]['get'](_0x3a5873(0x2ed)))!=null?_0x3f87e7:'','function':_0x5123f7,'unitId':_0x31054a[_0x3a5873(0x190)](),'argsOfFunction':JSON[_0x3a5873(0x2f7)](_0x1a8ffa),'invokeId':(_0x2a44e1=_0x2837c9['invokeId'])!=null?_0x2a44e1:'','executionId':(_0x36ec29=_0x2837c9[_0x3a5873(0x2ff)])!=null?_0x36ec29:''};try{const _0x51b8d0=await this[_0x3a5873(0x1b6)][_0x3a5873(0x2d4)](_0x300456,{'body':_0x55c030});return _0x51b8d0[_0x3a5873(0x29d)][_0x3a5873(0x1e1)]&&_0x51b8d0[_0x3a5873(0x29d)][_0x3a5873(0x1e1)][_0x3a5873(0x1c4)]!==Mt['OK']?_0x3a5873(0x21a):_0x51b8d0[_0x3a5873(0x29d)][_0x3a5873(0x2af)];}catch{return _0x3a5873(0x21a);}}};rt=Cn([be(0x0,_0x1ba300),be(0x1,_0x473849(_0x4f8f19)),be(0x2,_0x541aa1)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,Li as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- function _0x1fad(_0x2df19a,_0x18788d){const _0x2d41e0=_0x2d41();return _0x1fad=function(_0x1fadfb,_0x110967){_0x1fadfb=_0x1fadfb-0x16e;let _0x1bef06=_0x2d41e0[_0x1fadfb];return _0x1bef06;},_0x1fad(_0x2df19a,_0x18788d);}const _0x55edad=_0x1fad;(function(_0x5412f6,_0x2f2b75){const _0x3f9664=_0x1fad,_0x18f006=_0x5412f6();while(!![]){try{const _0x5193e0=parseInt(_0x3f9664(0x178))/0x1*(parseInt(_0x3f9664(0x179))/0x2)+parseInt(_0x3f9664(0x184))/0x3+-parseInt(_0x3f9664(0x176))/0x4+parseInt(_0x3f9664(0x182))/0x5+-parseInt(_0x3f9664(0x16f))/0x6*(parseInt(_0x3f9664(0x170))/0x7)+parseInt(_0x3f9664(0x17c))/0x8*(-parseInt(_0x3f9664(0x174))/0x9)+-parseInt(_0x3f9664(0x175))/0xa*(parseInt(_0x3f9664(0x16e))/0xb);if(_0x5193e0===_0x2f2b75)break;else _0x18f006['push'](_0x18f006['shift']());}catch(_0x5c430e){_0x18f006['push'](_0x18f006['shift']());}}}(_0x2d41,0x6be49));function _0x2d41(){const _0x299cfc=['The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Synced','Edit\x20conflicts','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','3481980AjtTjN','Collaboration\x20Conflict','2086407dJxjLk','185955BjbTiv','413988XJqoqI','49wAMFdh','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','87219wjUvWD','140cQgwXP','801736YpSLLF','Syncing...','348103UKbpTY','2ZhRvVQ','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','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.','312deubBB'];_0x2d41=function(){return _0x299cfc;};return _0x2d41();}const e={'collab-client':{'tooltip':{'reconnect':_0x55edad(0x180)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x55edad(0x17f),'notCollab':'Local\x20file','synced':_0x55edad(0x17e),'syncing':_0x55edad(0x177),'offline':_0x55edad(0x173)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x55edad(0x181),'room-full':_0x55edad(0x172),'collaboration-timeout':_0x55edad(0x17d)},'conflict':{'title':_0x55edad(0x183),'content':_0x55edad(0x17b)},'permission':{'title':'Authentication\x20Error','content':_0x55edad(0x17a)},'collaboration':{'single-unit':{'warning':_0x55edad(0x171)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};export{e as default};
1
+ const _0xf1f171=_0x262e;(function(_0x5e6851,_0x235860){const _0x4a991d=_0x262e,_0xe0f690=_0x5e6851();while(!![]){try{const _0x230ba5=parseInt(_0x4a991d(0x194))/0x1+-parseInt(_0x4a991d(0x19b))/0x2+parseInt(_0x4a991d(0x192))/0x3*(parseInt(_0x4a991d(0x19c))/0x4)+parseInt(_0x4a991d(0x18e))/0x5*(parseInt(_0x4a991d(0x198))/0x6)+-parseInt(_0x4a991d(0x19e))/0x7+parseInt(_0x4a991d(0x19d))/0x8*(-parseInt(_0x4a991d(0x195))/0x9)+parseInt(_0x4a991d(0x19f))/0xa;if(_0x230ba5===_0x235860)break;else _0xe0f690['push'](_0xe0f690['shift']());}catch(_0x2e3f20){_0xe0f690['push'](_0xe0f690['shift']());}}}(_0x2782,0x6908c));function _0x2782(){const _0x3c1981=['69tUGgNT','Collaboration\x20Conflict','499867YXeqJo','3498993MrkgQl','Synced','Authentication\x20Error','30HjfTIW','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','1218648lzCEdO','4756xaAZub','8eacsKd','3945340weNXHE','11304470hDEOAg','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','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.','334280nohqsP','Syncing\x20server\x20data...','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'];_0x2782=function(){return _0x3c1981;};return _0x2782();}function _0x262e(_0x306d78,_0x5132d5){const _0x2782bc=_0x2782();return _0x262e=function(_0x262e4d,_0x1ae045){_0x262e4d=_0x262e4d-0x18d;let _0xa48982=_0x2782bc[_0x262e4d];return _0xa48982;},_0x262e(_0x306d78,_0x5132d5);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0xf1f171(0x18f),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':_0xf1f171(0x196),'syncing':_0xf1f171(0x19a),'offline':_0xf1f171(0x199)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0xf1f171(0x190),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0xf1f171(0x1a1)},'conflict':{'title':_0xf1f171(0x193),'content':_0xf1f171(0x18d)},'permission':{'title':_0xf1f171(0x197),'content':_0xf1f171(0x1a3)},'collaboration':{'single-unit':{'warning':_0xf1f171(0x1a0)},'closeRoom':_0xf1f171(0x1a2)},'auth':{'needGotoLoginAlert':_0xf1f171(0x191)}};export{e as default};
@@ -1 +1 @@
1
- const _0x33965f=_0x2f3e;(function(_0x4acdc4,_0x4241cb){const _0x8a648a=_0x2f3e,_0x792abe=_0x4acdc4();while(!![]){try{const _0x17aaa0=-parseInt(_0x8a648a(0xf5))/0x1*(-parseInt(_0x8a648a(0x102))/0x2)+parseInt(_0x8a648a(0xf7))/0x3+-parseInt(_0x8a648a(0xfd))/0x4+-parseInt(_0x8a648a(0xed))/0x5*(-parseInt(_0x8a648a(0xef))/0x6)+parseInt(_0x8a648a(0xf4))/0x7+parseInt(_0x8a648a(0xfb))/0x8+parseInt(_0x8a648a(0xf3))/0x9*(-parseInt(_0x8a648a(0xf8))/0xa);if(_0x17aaa0===_0x4241cb)break;else _0x792abe['push'](_0x792abe['shift']());}catch(_0x52e594){_0x792abe['push'](_0x792abe['shift']());}}}(_0x2c3b,0xc1a80));const o={'collab-client':{'tooltip':{'reconnect':_0x33965f(0xf0)}},'collabStatus':{'fetchMiss':_0x33965f(0xf1),'conflict':_0x33965f(0x101),'notCollab':_0x33965f(0x100),'synced':_0x33965f(0x103),'syncing':_0x33965f(0xfe),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':_0x33965f(0xff),'will-retry':_0x33965f(0xf6),'room-full':_0x33965f(0xfa),'collaboration-timeout':'سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.'},'conflict':{'title':'تداخل\x20همکاری','content':_0x33965f(0xf9)},'permission':{'title':_0x33965f(0xfc),'content':'اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'collaboration':{'single-unit':{'warning':_0x33965f(0x104)},'closeRoom':_0x33965f(0xf2)},'auth':{'needGotoLoginAlert':_0x33965f(0xee)}};function _0x2f3e(_0x5c3225,_0x2914a1){const _0x2c3bbd=_0x2c3b();return _0x2f3e=function(_0x2f3e4b,_0x4f2add){_0x2f3e4b=_0x2f3e4b-0xed;let _0x35ef9a=_0x2c3bbd[_0x2f3e4b];return _0x35ef9a;},_0x2f3e(_0x5c3225,_0x2914a1);}function _0x2c3b(){const _0x28632d=['برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','4242204GHlfqk','2160781GalFFA','166538VKCYRK','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','2727474AstoBS','40GRXWaM','یک\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کرد.','10232040ErgVIA','خطای\x20اعتبارسنجی','1348284erVhLE','در\x20حال\x20همگام\x20سازی...','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','پرونده\x20محلی','تداخل\x20ویرایش','2luibbB','همگام\x20سازی','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','1761635FUJsZg','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','6IghCQT'];_0x2c3b=function(){return _0x28632d;};return _0x2c3b();}export{o as default};
1
+ function _0x2305(_0x554dda,_0x5da839){const _0x2dab15=_0x2dab();return _0x2305=function(_0x2305f6,_0x5c02fd){_0x2305f6=_0x2305f6-0x113;let _0x334e99=_0x2dab15[_0x2305f6];return _0x334e99;},_0x2305(_0x554dda,_0x5da839);}const _0x396b65=_0x2305;(function(_0x497907,_0x26ff38){const _0x102485=_0x2305,_0x3cb272=_0x497907();while(!![]){try{const _0x484d64=parseInt(_0x102485(0x119))/0x1*(-parseInt(_0x102485(0x116))/0x2)+-parseInt(_0x102485(0x113))/0x3+parseInt(_0x102485(0x120))/0x4+-parseInt(_0x102485(0x115))/0x5+parseInt(_0x102485(0x126))/0x6*(parseInt(_0x102485(0x124))/0x7)+parseInt(_0x102485(0x123))/0x8+-parseInt(_0x102485(0x114))/0x9*(parseInt(_0x102485(0x11e))/0xa);if(_0x484d64===_0x26ff38)break;else _0x3cb272['push'](_0x3cb272['shift']());}catch(_0x2215c7){_0x3cb272['push'](_0x3cb272['shift']());}}}(_0x2dab,0xe8ac7));const o={'collab-client':{'tooltip':{'reconnect':_0x396b65(0x127)}},'collabStatus':{'fetchMiss':_0x396b65(0x11b),'conflict':_0x396b65(0x125),'notCollab':'پرونده\x20محلی','synced':'همگام\x20سازی','syncing':_0x396b65(0x129),'offline':_0x396b65(0x122)},'session':{'connection-failed':_0x396b65(0x11a),'will-retry':_0x396b65(0x11c),'room-full':_0x396b65(0x118),'collaboration-timeout':'سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.'},'conflict':{'title':_0x396b65(0x117),'content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':_0x396b65(0x11d),'content':_0x396b65(0x121)},'collaboration':{'single-unit':{'warning':_0x396b65(0x11f)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x396b65(0x128)}};function _0x2dab(){const _0x43aec1=['اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','3412lwTHnq','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','خطای\x20اعتبارسنجی','120mUEMEG','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','5042880bUzWmg','اعمال\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شوند','12175824rWrKtt','7PFQrhS','تداخل\x20ویرایش','2583018mnVxNn','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','در\x20حال\x20همگام\x20سازی...','1974576qwHAtY','589122RBOddB','2785850PZzEAX','152ZQALCs','تداخل\x20همکاری'];_0x2dab=function(){return _0x43aec1;};return _0x2dab();}export{o as default};