@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505151607 → 0.7.0-nightly.202505171606

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4e86(_0x34e3cd,_0x1106a3){const _0x33cec3=_0x33ce();return _0x4e86=function(_0x4e861f,_0x2f562f){_0x4e861f=_0x4e861f-0x133;let _0x568bb6=_0x33cec3[_0x4e861f];return _0x568bb6;},_0x4e86(_0x34e3cd,_0x1106a3);}function _0x33ce(){const _0x55bd5a=['jsxs','_online','stringify','fill','defs','cursorInfo','_initDependencies','origin','_eventUnsubscribe','getRelativeToViewportCoord','_handleEvent','defIds','xlink:href','HEADER_MENU','ISnapshotServerService','@univerjs/drawing','show','_anchorDot','_ensureSubject','m2Prime','_scene','_handleHeartbeatEvent','_setupSubUnitSync','setUndoRedoMutationParamsCache','ILocalStorageService','_drawAnchor','_themeService','startsWith','url(#off-line-single_clip0_910_343)','ThemeService','concat','CHANGESET_REVISION_CONFILICT','setStateCache','14854848eQsvLm','unitID','unit','_selfUnitIDs','black','84qXrMzN','@univerjs/core','_docClipboardService','_scheduleClearOtherTimer','idSuffix','ENSURE_SNAPSHOT_EXECUTION','Error','_localeService','TOO_MANY_REQUESTS','[CollaborationDataLoaderController]','eventID','takeUntil','colorChannel1','from','UniverCore','height','_session','transformByState','TRANSFORM_CHANGE_OBSERVABLE_TYPE','BuiltInUIPart','YUUMI_ALL_TABLES_IS_INVALID','hide','resize','random','collab-text-anchor-','_docStateChangeManagerService','@univerjs/rpc','getViewport','none','toStringTag','setItem','getItem','_collaborationController','onStarting','loadUnit','_urlService','APPLY_REVISION_CONFILICT','NodePositionConvertToRectRange','_getScale','use','_onCursorUpdate','YUUMI_NO_CUBOID_FOR_QUESTION','getCurrent','setTimeout','length','SNAPSHOT_HAS_BEEN_REMOVED','getRangePointData','getColor','searchParams','error','switchMap','@univerjs/engine-formula','UnitStatus','getDocRanges','exports','registerRenderModule','OTHER_CLIENT_EDITING','entries','transformMutation','DocSelectionManagerService','handleMoveRange','merge','executeCommand','_messageService','YUUMI_RATE_OVER_LIMIT','_textBubble','focused$','getMergeData','getParam','HTTPService','startColumn','column','ICommandService','IUIPartsService','top','_initResize','@univerjs/engine-render','SessionStatus','values','div','DeleteRangeMoveUpCommandId','DataLoaderService','fillText','_context','WebSocketService','_initStatusListener','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','push','_getAnchorBounding','wsSessionTicketUrl','_render','svg','IRenderManagerService','transformRemoteChangeset','has','_colorIndex','_transformPreviousActiveRange','61911KDDNIt','_doCreateSocket','onCommandExecuted','isActive','mutations','fromEvent','[RemoteUniscriptService]:\x20no\x20focused\x20unit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collab-client.tooltip.reconnect','yellow.400','setAlpha','Rectangle','UniverInstanceType','DOC_RANGE_TYPE','YUUMI_SUBSCRIPTION_NOT_FOUND','replaceState','startRow','range','Module','size','LICENSE_IMPORT_SIZE_EXCEEDED','defineProperty','next','OFFLINE','bottom','location','endColumn','handleInsertRangeMoveRight','collaboration.single-unit.warning','forEach','_docTransformIMECacheService','InsertColCommandId','0\x200\x2017\x2016','init','UniverCollaborationClientUIPlugin','triggerDblclick','body','Injector','UniverProCollaborationClientUi','filter','ISocketService','Tooltip','off-line-single_clip0_910_343','APPLY_NON_SEQUENTIAL_REVISION','JOIN_ROOM_FAILED','Optional','UNDEFINED','getSheetBySheetId','useObservable','UniverSheets','RECT','handleIRemoveCol','split','status$','onRendered','transformSelections','_transformHistoryAndStateStack','find','apply','findNodePositionByCharIndex','NOT_COLLAB','reconnect','getAncestorScale','NO_OTHER_CLIENTS_EDITING','search','LOGIN_FAILED','subscribeEvent','string','@univerjs/network','result','_heartbeatTimer','_revisionService','roomMembers','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','sessionTicket','2244484arKjFy','doc.mutation.rich-text-editing','MemberService','_cursorInfo$','addHandlerCallback','_saveCache','addObjects','className','key','currentColor','collaboration-client-ui.config','add','LOCAL_CACHE_INTERVAL','collaboration-client.offline-data-not-saved','debug','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','replace','CollaborationStatus','MoveRangeCommandId','clsx','tag','PY_RUNTIME_SCRIPT_ERROR','collabStatus.syncing','row','whenReady','collabStatus.notCollab','TEXT_RANGE_LAYER_INDEX','UNAUTHENTICATED','Tools','_status$','with','INTERNAL_ERROR','_send','_getMergeRange','_scheduleSaving','updateOfflineData','RichTextEditingMutation','saveTaskMap','path','forwardRef','7TYWTFU','getUniverSheetInstance','post','combineLatest','@univerjs/docs','_refRangeService','fillStyle','_saveTaskMap','currentSkeleton$','current','sheetID','sessionStatus$','syncEditingCollabCursor','skeleton','saveOfflineData','_entityInit$','handleInsertRow','runId','_cursor','urlChange$','collabStatus.offline','CommandType','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','getUndoRedoMutationParamsCache','text','_notificationService','INVITE_CODE_HAS_BEEN_UES','width','getSheetId','set','IImageIoService','_memberService','RemoveRowCommandId','contains','COMPLETION_FINISHED','INVITE_CODE_ALREADY_BOUND','UniverDesign','_docTransformStateCacheService','_unitStatus','_getSessionTicket','VIEW_MAIN','_init','_handleJoinEvent','selection','setInterval','send','onPointerEnter$','IConfigService','_instanceService','4214814Hidpkw','toDisposable','SNAPSHOT_INVALID_SNAPSHOT','_lastPointer','OTHER_CLIENTS_EDITING','jiqing.500','getConfig','getCurrentSelections','DocSkeletonManagerService','throttleTime','measureText','isArray','univer-flex\x20univer-mr-2\x20univer-text-xl','requireSession','getVpScrollXYInfoByPosToVp','SheetsSelectionsService','mapTo','Inject','DependentOn','operators','override','redoState','get','selections','_entities','unshift','url(#on-line-single_clip0_910_349)','_docTransformSelectionsService','mask','object','_color','addObject','@univerjs/sheets-ui','_onCursorDelete','CLOSE_ROOM','@univerjs/design','href','EMAIL_HAS_BEEN_BOUND','onPointerLeave$','LICENSE_MAX_UNITS_EXCEEDED','YUUMI_AI_RUN_FAILED','_configService','UniverDocs','_transformService','displayName','enableLocalCache','onLocalMutation','YUUMI_UNABLE_LOAD_URL','_getSaveTimeout','#fff','getTypeOfUnitDisposed$','_cursorShapes','Shape','on-line-single_clip0_910_349','toString','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','registerBeforeClose','_unitOnClients','0\x200\x2016\x2016','CollaborationDataLoaderController','collabCursorState$','pipe','DocCollaborationEntity','MUTATION','getCollabCursors$','YUUMI_URL_COL_OUT_OF_RANGE','history','...','onPointerMove$','textRanges','attrs','fromEventSubject','isTransformMutationFailure','AWAITING','Disposable','debounce','handleInsertRangeMoveDown','clipPath','debounceTime','1em','currentTheme$','fillRule','deserializeRangeWithSheet','addClipboardHook','@univerjs/sheets','ILocalCacheService','#FFF','INVITE_CODE_REQUIRED','Failed','BrowserCollaborationSocketService','setActiveRange','_imageIoService','IMessageService','UniverProCollaborationClient','_initCommandExecutedListener','CollaborationUIEventService','font','complete','onMouseMove','InsertRangeMoveDownCommandId','_disabled','WECHAT_HAS_BEEN_BOUND','_hover','_roomMembers$','_name','_shapes','USERS_LEAVE','params','storage','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startSheetCollabCursor','55814VjbBpo','extend','_cachedData','unsubscribe','_colorAssignService','_labelPosition','_config','handleInsertCol','includes','useDependency','restore','hasOwnProperty','icon','event$','getActiveRange','on-line-single','toRgbString','_drawRectRange','_toggleOffline','getLocalCacheKey','setParam','_updateURLWithCurrentState','runOnServer','all','UNIVER_SHEET','_registerRenderDependencies','min','OffLineSingle','ColorKit','executionId','_initStatusComponent','1540195wwjtlw','setShapeProps','imageSourceType','_univerInstanceService','CollaborationSessionService','save','assignAColorForMemberID','UniverCollaborationClientPlugin','_uiPartsService','APPLY_REJECT','getCoordByCell','PENDING','session.collaboration-timeout','4810KZRipx','IURLService','session.connection-failed','propertyIsEnumerable','InsertRowCommandId','_cursors','collaboration.closeRoom','subunit','asObservable','application/json','name','actions','deepClone','subUnitId','call','UNIVER_DOC','permission.content','_hovered','getCurrentUnitForType','_scheduleHeartbeat','COLORS','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_updateLocalCursor','disposeWithMe','then','max','disableLocalCache','DeleteRangeMoveLeftCommandId','symbol','substring','ranges','beginPath','_clearOtherTimers','getOwnPropertySymbols','CollaborationEvent','140706HOZDeM','_sheetSkeletonManagerService','CollaborationController','LOCAL_CACHE_INTERVAL_KEY','memberID','_collabCursorState$','DesktopCollaborationStatusDisplayController','url(#$1','SYNCED','isTransformMutationsWithChangesetSuccess','@univerjs/docs-ui','InsertRangeMoveRightCommandId','useRef','getRenderById','WebBrowserSingleActiveUnitService','transformIMECache','getSkeleton','parse','clearTimeout','type','_docSkeletonManagerService','_syncEditingCollabCursorService','createElement','replaceDocRanges','getOwnPropertyDescriptor','prototype','uni.network.url-service','_handleLeaveEvent','newValue','_transformUndoRedoStack','getActiveSheet','_updateSubUnitFromURLParams','TEXT','Warning','registerDependencies','round','jsx','IRemoteInstanceService','transformStateCache','_range','_refreshCollabCursors','react/jsx-runtime','dispose$','Rect','_renderManagerService','getCurrentRevOfUnit','APPLY_PERMISSION_DENIED','INVALID_INVITE_CODE','Unknown\x20user','@univerjs/ui','loadOfflineData','pluginName','SheetSkeletonManagerService','color','transformMutationsWithChangeset','_onRefRangeChange','code','serializeRangeWithSheet','_getSheetObject','rxjs','getUnitId','SheetCollabCursorShape','data','_backgroundColor','_localStorageService','PERMISSION_DENIED','collabStatus.conflict','EffectRefRangId','collab-text-range-','getMember','createIdentifier','registerRefRange','YUUMI_ASYNCIO_CANCELLED','M0\x200H16V16H0z','invokeId','map','_assignedColors','CollaborationUIEventId','_anchor','_commandService','clearInterval','_dataLoaderService','_collaborationUIEventService','cursorInfo$','_updateCollabCursors','drawWith','shareReplay','DocIMEInputManagerService','lineTo','getCellPositionByOffset','_injector','_drawTextRange','@univerjs-pro/collaboration-client','hovered','MessageType','UniverDrawing','createInstance','_collabCursorController','NOT_FOUND','children','ITransformService','indexOf','_beforeCloseService','_removeCollabCursors','docStateChange$','getValue','SOCKET_FAILED_RETRY','SetWorksheetActivateCommand','UNRECOGNIZED','exhaustSavingTask','generateRandomId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','handleDeleteRangeMoveUp','SetTextSelectionsOperation','APPLY_DUPLICATED','getFocusedUnit','LocaleService','LICENSE_EXPORT_SIZE_EXCEEDED','react','IUniverInstanceService','m1Prime','INVALID_ARGUMENT','UPDATE_CURSOR','React','subscribe','RefRangeService','handleDeleteRangeMoveLeft','SetDocZoomRatioOperation','isEditing','SHEET_VIEWPORT_KEY','ALREADY_EXISTS','pushState','getCollabEntity$','undoState','RemoteUniscriptService','_registerDependencies','FromArray','assign','RegularPolygon','RxDisposable','_removeClearOtherTimer','_setupBeforeClosingHandler','_toggleOnline','UniverRpc','_docSyncEditingCollabCursorService','Vector2','DocStateChangeManagerService','IDocClipboardService','_id','BehaviorSubject','onTransformChange$','dispose','_initEvent','_httpService','some','CONNECTOR_DATA_TOO_LARGE','UniverEngineRender','_hideTimer','_logService','@univerjs-pro/collaboration','off-line-single','unitId','function','delete','collabStatus.fetchMiss','blue.400','ticket','ACTIVE_UNIT_EVENT_CHANNEL','_document','evenodd','mergeOverrideWithDependencies'];_0x33ce=function(){return _0x55bd5a;};return _0x33ce();}(function(_0x25cce6,_0x129686){const _0x1cf808=_0x4e86,_0x522a12=_0x25cce6();while(!![]){try{const _0x4967de=parseInt(_0x1cf808(0x173))/0x1+-parseInt(_0x1cf808(0x33f))/0x2+parseInt(_0x1cf808(0x1c2))/0x3*(parseInt(_0x1cf808(0x293))/0x4)+parseInt(_0x1cf808(0x192))/0x5+parseInt(_0x1cf808(0x398))/0x6*(-parseInt(_0x1cf808(0x367))/0x7)+-parseInt(_0x1cf808(0x28e))/0x8+-parseInt(_0x1cf808(0x2f4))/0x9*(-parseInt(_0x1cf808(0x19f))/0xa);if(_0x4967de===_0x129686)break;else _0x522a12['push'](_0x522a12['shift']());}catch(_0x41c403){_0x522a12['push'](_0x522a12['shift']());}}}(_0x33ce,0xee49b),function(_0x5d31fc,_0xacacf1){const _0x375bee=_0x4e86;typeof exports==_0x375bee(0x3b5)&&typeof module<'u'?_0xacacf1(exports,require(_0x375bee(0x21e)),require(_0x375bee(0x294)),require(_0x375bee(0x2df)),require('@univerjs/network'),require(_0x375bee(0x1cc)),require(_0x375bee(0x27c)),require(_0x375bee(0x1fd)),require(_0x375bee(0x36b)),require(_0x375bee(0x261)),require(_0x375bee(0x2c6)),require('@univerjs/sheets'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require(_0x375bee(0x1eb)),require('@univerjs/ui'),require(_0x375bee(0x3bb)),require('react'),require('@univerjs/rpc')):typeof define==_0x375bee(0x264)&&define['amd']?define([_0x375bee(0x2c9),'@univerjs-pro/collaboration-client',_0x375bee(0x294),_0x375bee(0x2df),_0x375bee(0x338),_0x375bee(0x1cc),_0x375bee(0x27c),'rxjs','@univerjs/docs',_0x375bee(0x261),_0x375bee(0x2c6),_0x375bee(0x158),'rxjs/operators',_0x375bee(0x3b8),_0x375bee(0x1eb),_0x375bee(0x1f3),_0x375bee(0x3bb),_0x375bee(0x238),_0x375bee(0x2ad)],_0xacacf1):(_0x5d31fc=typeof globalThis<'u'?globalThis:_0x5d31fc||self,_0xacacf1(_0x5d31fc[_0x375bee(0x31a)]={},_0x5d31fc[_0x375bee(0x161)],_0x5d31fc[_0x375bee(0x2a1)],_0x5d31fc[_0x375bee(0x25e)],_0x5d31fc['UniverNetwork'],_0x5d31fc['UniverDocsUi'],_0x5d31fc[_0x375bee(0x221)],_0x5d31fc[_0x375bee(0x1fd)],_0x5d31fc[_0x375bee(0x3c2)],_0x5d31fc['UniverProCollaboration'],_0x5d31fc['UniverEngineFormula'],_0x5d31fc[_0x375bee(0x325)],_0x5d31fc['rxjs'][_0x375bee(0x3ab)],_0x5d31fc['UniverSheetsUi'],_0x5d31fc[_0x375bee(0x23d)],_0x5d31fc['UniverUi'],_0x5d31fc[_0x375bee(0x38b)],_0x5d31fc[_0x375bee(0x23d)],_0x5d31fc[_0x375bee(0x251)]));}(this,function(_0x25a81e,_0x330b41,_0x22a125,_0x2fdb88,_0x26a40e,_0x5572fe,_0x212fcc,_0x277d09,_0x18992d,_0x2c7893,_0x40b667,_0x25ff72,_0x1a9106,_0x381a64,_0xeb17c4,_0x27ec40,_0x56d731,_0x1467d2,_0x554fb9){'use strict';const _0x7fd5a7=_0x4e86;var _0x4fcd69=Object[_0x7fd5a7(0x309)],_0x1fa6fa=(_0x7513b9,_0x1c524d,_0x4d60ed)=>_0x1c524d in _0x7513b9?_0x4fcd69(_0x7513b9,_0x1c524d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d60ed}):_0x7513b9[_0x1c524d]=_0x4d60ed,_0x92a7d=(_0x5a9d6d,_0x4b9364,_0x1d5fc9)=>_0x1fa6fa(_0x5a9d6d,typeof _0x4b9364!=_0x7fd5a7(0x1bb)?_0x4b9364+'':_0x4b9364,_0x1d5fc9),_0x134573=Object[_0x7fd5a7(0x1da)],_0x1a4857=(_0x78ad95,_0x2b83f5,_0x1e0f85,_0x3d1874)=>{const _0x3ecbcb=_0x7fd5a7;for(var _0x2b0fdc=_0x3d1874>0x1?void 0x0:_0x3d1874?_0x134573(_0x2b83f5,_0x1e0f85):_0x2b83f5,_0x19e748=_0x78ad95[_0x3ecbcb(0x2bf)]-0x1,_0x3f067a;_0x19e748>=0x0;_0x19e748--)(_0x3f067a=_0x78ad95[_0x19e748])&&(_0x2b0fdc=_0x3f067a(_0x2b0fdc)||_0x2b0fdc);return _0x2b0fdc;},_0xbb074b=(_0x33b36d,_0x5b4e91)=>(_0x27fb27,_0x824b65)=>_0x5b4e91(_0x27fb27,_0x824b65,_0x33b36d);let _0x1446f4=class extends _0x22a125[_0x7fd5a7(0x24d)]{constructor(_0xc94724,_0x59f50e){const _0xbfeb2b=_0x7fd5a7;super(),this[_0xbfeb2b(0x295)]=_0xc94724,this[_0xbfeb2b(0x15f)]=_0x59f50e,this['_init']();}[_0x7fd5a7(0x390)](){const _0x70fe09=_0x7fd5a7,_0x1fee43=this;this['disposeWithMe'](this[_0x70fe09(0x295)][_0x70fe09(0x157)]({'onBeforePasteImage':async _0xa14629=>{const _0x1928b3=_0x70fe09,_0x394a4e=await _0x1fee43[_0x1928b3(0x15f)]['saveImage'](_0xa14629);return _0x394a4e?{'source':_0x394a4e['source'],'imageSourceType':_0x394a4e[_0x1928b3(0x194)]}:null;}}));}};_0x1446f4=_0x1a4857([_0xbb074b(0x0,_0x5572fe[_0x7fd5a7(0x255)]),_0xbb074b(0x1,_0x212fcc[_0x7fd5a7(0x385)])],_0x1446f4);const _0x5bbabe=['purple.300',_0x7fd5a7(0x39d),'green.600','red.300',_0x7fd5a7(0x267),_0x7fd5a7(0x2fd)];class _0x5b5b43 extends _0x22a125['Disposable']{constructor(){const _0x3ab8e3=_0x7fd5a7;super(...arguments),_0x92a7d(this,_0x3ab8e3(0x20e),new Map()),_0x92a7d(this,_0x3ab8e3(0x2f2),0x0);}[_0x7fd5a7(0x198)](_0x2f25f5){const _0x3460b7=_0x7fd5a7;if(this[_0x3460b7(0x20e)][_0x3460b7(0x2f1)](_0x2f25f5))return this[_0x3460b7(0x20e)][_0x3460b7(0x3ae)](_0x2f25f5);const _0x2da18b=_0x5bbabe[this[_0x3460b7(0x2f2)]];return this[_0x3460b7(0x2f2)]=(this[_0x3460b7(0x2f2)]+0x1)%_0x5bbabe['length'],this['_assignedColors'][_0x3460b7(0x384)](_0x2f25f5,_0x2da18b),_0x2da18b;}}function _0x225c7f(_0x424b0f){const _0x37791f=_0x7fd5a7;let _0x428a6c='';for(const _0x46eba3 of _0x424b0f){const {startOffset:_0x51b6cb,endOffset:_0x32af40,isActive:_0x1be8eb,rangeType:_0x53800d,segmentId:_0x39b60b,segmentPage:_0x4823d6}=_0x46eba3;_0x428a6c[_0x37791f(0x2bf)]&&(_0x428a6c+=','),_0x428a6c+=_0x51b6cb+':'+_0x32af40+':'+(_0x1be8eb?'1':'0')+':'+_0x53800d+':'+_0x39b60b+':'+_0x4823d6;}return _0x428a6c;}function _0x42950f(_0x425614){const _0x3593a7=_0x7fd5a7,_0x4d86dd=_0x425614[_0x3593a7(0x328)](','),_0x21be85=[];for(const _0x598ff3 of _0x4d86dd){const [_0x2e539b,_0x439ae3,_0xa2d6a7,_0x5cab77,_0x217c82,_0x1dc7d4]=_0x598ff3[_0x3593a7(0x328)](':');_0x21be85[_0x3593a7(0x2ea)]({'startOffset':Number(_0x2e539b),'endOffset':Number(_0x439ae3),'collapsed':_0x2e539b===_0x439ae3,'isActive':_0xa2d6a7==='1','rangeType':_0x5cab77===_0x22a125['DOC_RANGE_TYPE']['TEXT']?_0x22a125[_0x3593a7(0x301)][_0x3593a7(0x1e2)]:_0x22a125['DOC_RANGE_TYPE'][_0x3593a7(0x326)],'segmentId':typeof _0x217c82==_0x3593a7(0x337)?String(_0x217c82):'','segmentPage':Number(_0x1dc7d4!=null?_0x1dc7d4:-0x1)});}return _0x21be85[_0x3593a7(0x25c)](_0x2db81c=>_0x2db81c[_0x3593a7(0x2f7)])||(_0x21be85[0x0][_0x3593a7(0x2f7)]=!0x0),_0x21be85;}class _0x424077 extends _0x22a125[_0x7fd5a7(0x24d)]{constructor(){const _0x5a8de5=_0x7fd5a7;super(...arguments),_0x92a7d(this,'_collabCursorState$',new _0x277d09['BehaviorSubject'](null)),_0x92a7d(this,_0x5a8de5(0x140),this[_0x5a8de5(0x1c7)][_0x5a8de5(0x1a7)]());}[_0x7fd5a7(0x373)](_0x22ef29){const _0x16fd09=_0x7fd5a7,{unitID:_0x40b617,memberID:_0x44737f,textRanges:_0x229c0b}=_0x22ef29,_0x1d7ee7=_0x225c7f(_0x229c0b);if(_0x1d7ee7==='')return;const _0x2986d5={'unitID':_0x40b617,'memberID':_0x44737f,'selection':_0x1d7ee7};this[_0x16fd09(0x1c7)][_0x16fd09(0x30a)](_0x2986d5);}}var _0x19993f=Object[_0x7fd5a7(0x1da)],_0x5b84b1=(_0x3c78be,_0x54ba22,_0xe26598,_0x716851)=>{for(var _0x826ba6=_0x716851>0x1?void 0x0:_0x716851?_0x19993f(_0x54ba22,_0xe26598):_0x54ba22,_0x47d51b=_0x3c78be['length']-0x1,_0x5aabd2;_0x47d51b>=0x0;_0x47d51b--)(_0x5aabd2=_0x3c78be[_0x47d51b])&&(_0x826ba6=_0x5aabd2(_0x826ba6)||_0x826ba6);return _0x826ba6;},_0x466a9d=(_0x14f7ba,_0x47465a)=>(_0x461ae4,_0x34b20c)=>_0x47465a(_0x461ae4,_0x34b20c,_0x14f7ba);const _0x57f02e=0x12c,_0x228f9c=0x64;let _0x4dbf25=class extends _0x22a125[_0x7fd5a7(0x24d)]{constructor(_0x36cb65,_0x42a790,_0x39013d,_0x13c3f2,_0x2e116d,_0x11a091,_0x5cb571,_0x2e8f61,_0x4cd3a3){const _0x16ed15=_0x7fd5a7;super(),_0x92a7d(this,'_online',!0x1),_0x92a7d(this,_0x16ed15(0x390),!0x1),_0x92a7d(this,_0x16ed15(0x342),new _0x277d09[(_0x16ed15(0x257))](new Map())),_0x92a7d(this,'cursorInfo$',this[_0x16ed15(0x342)][_0x16ed15(0x1a7)]()),_0x92a7d(this,_0x16ed15(0x16b),new _0x277d09[(_0x16ed15(0x257))]([])),_0x92a7d(this,'roomMembers$',this[_0x16ed15(0x16b)]['pipe'](_0x277d09[_0x16ed15(0x152)](_0x57f02e))),_0x92a7d(this,_0x16ed15(0x1b5),_0x22a125[_0x16ed15(0x14f)](_0x3774b5=>{const _0x47e07e=_0x16ed15,_0x24561a={'eventID':_0x2c7893[_0x47e07e(0x1c1)][_0x47e07e(0x23c)],'data':{'unitID':this[_0x47e07e(0x28f)],'memberID':this[_0x47e07e(0x2a3)]['getMemberID'](),'selection':_0x225c7f(_0x3774b5)}};this[_0x47e07e(0x2a3)][_0x47e07e(0x394)](_0x24561a,this[_0x47e07e(0x28f)]);},_0x228f9c)),(this[_0x16ed15(0x28f)]=_0x36cb65,this[_0x16ed15(0x2a3)]=_0x42a790,this['_injector']=_0x39013d,this['_colorAssignService']=_0x13c3f2,this[_0x16ed15(0x386)]=_0x2e116d,this[_0x16ed15(0x1d7)]=_0x11a091,this[_0x16ed15(0x3c3)]=_0x5cb571,this[_0x16ed15(0x195)]=_0x2e8f61,this[_0x16ed15(0x211)]=_0x4cd3a3);}get[_0x7fd5a7(0x272)](){const _0x43e543=_0x7fd5a7;return this[_0x43e543(0x342)][_0x43e543(0x22b)]();}get['roomMembers'](){const _0x5e21bf=_0x7fd5a7;return this[_0x5e21bf(0x16b)][_0x5e21bf(0x22b)]();}['dispose'](){const _0x156497=_0x7fd5a7;super[_0x156497(0x259)](),this[_0x156497(0x342)][_0x156497(0x30a)](new Map()),this[_0x156497(0x342)]['complete'](),this[_0x156497(0x16b)][_0x156497(0x30a)]([]),this['_roomMembers$'][_0x156497(0x165)]();}[_0x7fd5a7(0x315)](){const _0x2b959f=_0x7fd5a7;this['_init']||(this['_init']=!0x0,this[_0x2b959f(0x2a3)][_0x2b959f(0x372)]['pipe'](_0x277d09['takeUntil'](this['dispose$']))[_0x2b959f(0x23e)](_0x2beda7=>{const _0x5c9561=_0x2b959f;_0x2beda7===_0x330b41[_0x5c9561(0x2e0)]['ONLINE']?this[_0x5c9561(0x250)]():this[_0x5c9561(0x185)]();}),this[_0x2b959f(0x2a3)]['event$'][_0x2b959f(0x141)](_0x277d09['takeUntil'](this['dispose$']))[_0x2b959f(0x23e)](_0x45cd7b=>{const _0x1918e1=_0x2b959f,_0x26f11f=_0x45cd7b[_0x1918e1(0x29d)];_0x26f11f===_0x2c7893[_0x1918e1(0x1c1)][_0x1918e1(0x23c)]&&this['_onCursorUpdate'](_0x45cd7b),_0x26f11f===_0x2c7893[_0x1918e1(0x1c1)]['USERS_LEAVE']&&this[_0x1918e1(0x3b9)](_0x45cd7b);}),this[_0x2b959f(0x1b6)](this[_0x2b959f(0x211)]['onCommandExecuted'](_0x3148a4=>{const _0x1f792e=_0x2b959f,_0x25d3b1=_0x3148a4[_0x1f792e(0x16f)];_0x25d3b1!=null&&this[_0x1f792e(0x26e)]&&_0x3148a4['id']===_0x18992d[_0x1f792e(0x233)]['id']&&_0x25d3b1[_0x1f792e(0x263)]===this[_0x1f792e(0x28f)]&&_0x25d3b1[_0x1f792e(0x242)]===!0x1&&_0x25d3b1['ranges'][_0x1f792e(0x2bf)]>0x0&&this[_0x1f792e(0x1b5)](_0x25d3b1[_0x1f792e(0x1bd)]);})),this[_0x2b959f(0x1d7)][_0x2b959f(0x140)][_0x2b959f(0x141)](_0x277d09[_0x2b959f(0x29e)](this[_0x2b959f(0x1ec)]))['subscribe'](_0x49fe68=>{const _0x25d284=_0x2b959f;if((_0x49fe68==null?void 0x0:_0x49fe68[_0x25d284(0x28f)])!==this[_0x25d284(0x28f)])return;const _0x2ee6dd={'eventID':_0x2c7893[_0x25d284(0x1c1)][_0x25d284(0x23c)],'data':_0x49fe68};this['_onCursorUpdate'](_0x2ee6dd);}),this[_0x2b959f(0x1b6)](this[_0x2b959f(0x211)]['onCommandExecuted'](_0x3d96b3=>{const _0x532f2e=_0x2b959f;if(_0x3d96b3[_0x532f2e(0x16f)]==null)return;const _0x787f4d=_0x3d96b3[_0x532f2e(0x16f)];if(_0x3d96b3['id']!==_0x18992d[_0x532f2e(0x363)]['id']||_0x787f4d[_0x532f2e(0x263)]!==this[_0x532f2e(0x28f)])return;const _0x18f72e={'id':_0x532f2e(0x340),'params':_0x787f4d},_0x1f26a0=this[_0x532f2e(0x272)];for(const [_0x53487e,_0x2402c2]of _0x1f26a0){const _0x59364c={'id':_0x532f2e(0x340),'params':{'unitId':this[_0x532f2e(0x28f)],'actions':null,'textRanges':_0x2402c2['ranges']}},_0x44a09d=this[_0x532f2e(0x3c3)][_0x532f2e(0x2cd)](_0x18f72e,_0x59364c,!0x1);if(_0x2c7893[_0x532f2e(0x14c)](_0x44a09d))throw _0x44a09d[_0x532f2e(0x2c4)];_0x1f26a0['set'](_0x53487e,{..._0x2402c2,'ranges':_0x44a09d[_0x532f2e(0x280)][_0x532f2e(0x16f)][_0x532f2e(0x149)]});}queueMicrotask(()=>{const _0x2238c9=_0x532f2e;this[_0x2238c9(0x342)][_0x2238c9(0x30a)](_0x1f26a0);});})));}[_0x7fd5a7(0x2bb)](_0x3254eb){const _0x44094c=_0x7fd5a7;var _0x2f309c,_0x6e2204;const {memberID:_0x18f8fe,selection:_0x5a276d}=_0x3254eb[_0x44094c(0x200)],_0x4e0040=_0x42950f(_0x5a276d),_0x3b103c=(_0x6e2204=(_0x2f309c=this[_0x44094c(0x386)][_0x44094c(0x207)](this[_0x44094c(0x28f)],_0x18f8fe))==null?void 0x0:_0x2f309c[_0x44094c(0x1a9)])!=null?_0x6e2204:'Unknown\x20user',_0x2464de={'color':this[_0x44094c(0x177)][_0x44094c(0x198)](_0x18f8fe),'name':_0x3b103c,'ranges':_0x4e0040},_0x2a5836=this[_0x44094c(0x272)];_0x2a5836[_0x44094c(0x384)](_0x18f8fe,_0x2464de),this[_0x44094c(0x342)][_0x44094c(0x30a)](_0x2a5836);}[_0x7fd5a7(0x3b9)](_0x5b730b){const _0x275f77=_0x7fd5a7,{memberID:_0x18eed6}=_0x5b730b[_0x275f77(0x200)],_0x183b1a=this[_0x275f77(0x272)];_0x183b1a['delete'](_0x18eed6),this[_0x275f77(0x342)]['next'](_0x183b1a);}['_toggleOnline'](){const _0x2839ca=_0x7fd5a7;var _0x5bbf16;if(this[_0x2839ca(0x26e)]=!0x0,((_0x5bbf16=this[_0x2839ca(0x195)][_0x2839ca(0x235)]())==null?void 0x0:_0x5bbf16['getUnitId']())!==this['unitID'])return;const _0x5e2b17=this[_0x2839ca(0x21c)][_0x2839ca(0x3ae)](_0x18992d[_0x2839ca(0x2ce)])[_0x2839ca(0x2c8)]();Array[_0x2839ca(0x3a3)](_0x5e2b17)&&_0x5e2b17[_0x2839ca(0x2bf)]>0x0&&this[_0x2839ca(0x1b5)](_0x5e2b17);}['_toggleOffline'](){const _0x263826=_0x7fd5a7;this[_0x263826(0x26e)]=!0x1;}};_0x4dbf25=_0x5b84b1([_0x466a9d(0x2,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x319)])),_0x466a9d(0x3,_0x22a125['Inject'](_0x5b5b43)),_0x466a9d(0x4,_0x22a125[_0x7fd5a7(0x3a9)](_0x330b41[_0x7fd5a7(0x341)])),_0x466a9d(0x5,_0x22a125['Inject'](_0x424077)),_0x466a9d(0x6,_0x2c7893[_0x7fd5a7(0x226)]),_0x466a9d(0x7,_0x22a125[_0x7fd5a7(0x239)]),_0x466a9d(0x8,_0x22a125['ICommandService'])],_0x4dbf25);var _0x5bec3e=Object['getOwnPropertyDescriptor'],_0x510682=(_0x73795a,_0x1ae6f4,_0x4f1124,_0x29519f)=>{for(var _0x451333=_0x29519f>0x1?void 0x0:_0x29519f?_0x5bec3e(_0x1ae6f4,_0x4f1124):_0x1ae6f4,_0x3b709d=_0x73795a['length']-0x1,_0x2b024b;_0x3b709d>=0x0;_0x3b709d--)(_0x2b024b=_0x73795a[_0x3b709d])&&(_0x451333=_0x2b024b(_0x451333)||_0x451333);return _0x451333;},_0x893c87=(_0x161583,_0x4f0635)=>(_0x41b88f,_0x1963f3)=>_0x4f0635(_0x41b88f,_0x1963f3,_0x161583);const _0x1eaaec=0x12c,_0x19c060=0x64,_0x437742=()=>{let _0x5680ec=[],_0x45a96e=!0x1;return _0x156e36=>{const _0x1841e5=_0x4e86;_0x5680ec[_0x1841e5(0x2ea)](_0x156e36),_0x45a96e||(_0x45a96e=!0x0,setTimeout(()=>{const _0x38bba0=_0x1841e5;_0x5680ec[_0x38bba0(0x311)](_0x5a6c19=>_0x5a6c19()),_0x5680ec=[],_0x45a96e=!0x1;}));};};let _0x171670=class extends _0x22a125[_0x7fd5a7(0x24d)]{constructor(_0x39c7c8,_0x57690f,_0x26b61d,_0x459dc3,_0x39a0f4,_0x3fad08,_0x542806,_0x576579){const _0x355a0a=_0x7fd5a7;super(),_0x92a7d(this,_0x355a0a(0x26e),!0x1),_0x92a7d(this,'_init',!0x1),_0x92a7d(this,_0x355a0a(0x342),new _0x277d09[(_0x355a0a(0x257))](new Map())),_0x92a7d(this,'cursorInfo$',this[_0x355a0a(0x342)][_0x355a0a(0x1a7)]()),_0x92a7d(this,_0x355a0a(0x16b),new _0x277d09[(_0x355a0a(0x257))]([])),_0x92a7d(this,'roomMembers$',this[_0x355a0a(0x16b)]['pipe'](_0x277d09[_0x355a0a(0x152)](_0x1eaaec))),_0x92a7d(this,_0x355a0a(0x1b5),_0x22a125[_0x355a0a(0x14f)]((_0x1ad090,_0x6623c3)=>{const _0x1e41b1=_0x355a0a,_0x16246f={'eventID':_0x2c7893[_0x1e41b1(0x1c1)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x1e41b1(0x2a3)]['getMemberID'](),'selection':_0x40b667[_0x1e41b1(0x1fb)](_0x1ad090,_0x6623c3['range'])}};this[_0x1e41b1(0x2a3)][_0x1e41b1(0x394)](_0x16246f,this[_0x1e41b1(0x28f)]);},_0x19c060)),(this[_0x355a0a(0x28f)]=_0x39c7c8,this['_session']=_0x57690f,this[_0x355a0a(0x21c)]=_0x26b61d,this[_0x355a0a(0x177)]=_0x459dc3,this[_0x355a0a(0x386)]=_0x39a0f4,this[_0x355a0a(0x195)]=_0x3fad08,this[_0x355a0a(0x211)]=_0x542806,this[_0x355a0a(0x36c)]=_0x576579);}get['cursorInfo'](){const _0x5b1914=_0x7fd5a7;return this[_0x5b1914(0x342)][_0x5b1914(0x22b)]();}get[_0x7fd5a7(0x33c)](){const _0x3f9ad2=_0x7fd5a7;return this[_0x3f9ad2(0x16b)][_0x3f9ad2(0x22b)]();}['dispose'](){const _0x15eb33=_0x7fd5a7;super[_0x15eb33(0x259)](),this[_0x15eb33(0x342)]['next'](new Map()),this[_0x15eb33(0x342)]['complete'](),this[_0x15eb33(0x16b)][_0x15eb33(0x30a)]([]),this[_0x15eb33(0x16b)][_0x15eb33(0x165)]();}['init'](){const _0x5340ab=_0x7fd5a7;this[_0x5340ab(0x390)]||(this[_0x5340ab(0x390)]=!0x0,this[_0x5340ab(0x2a3)]['sessionStatus$']['pipe'](_0x277d09[_0x5340ab(0x29e)](this[_0x5340ab(0x1ec)]))['subscribe'](_0x5a4dfb=>{const _0x2c16ad=_0x5340ab;_0x5a4dfb===_0x330b41[_0x2c16ad(0x2e0)]['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x5340ab(0x2a3)][_0x5340ab(0x180)][_0x5340ab(0x141)](_0x277d09[_0x5340ab(0x29e)](this['dispose$']))[_0x5340ab(0x23e)](_0x29524f=>{const _0x1e59cb=_0x5340ab,_0x4c815e=_0x29524f[_0x1e59cb(0x29d)];_0x4c815e===_0x2c7893[_0x1e59cb(0x1c1)][_0x1e59cb(0x23c)]&&this[_0x1e59cb(0x2bb)](_0x29524f),_0x4c815e===_0x2c7893[_0x1e59cb(0x1c1)][_0x1e59cb(0x16e)]&&this[_0x1e59cb(0x3b9)](_0x29524f);}),this[_0x5340ab(0x1f9)](),this[_0x5340ab(0x1b6)](this[_0x5340ab(0x211)]['onCommandExecuted'](_0x176857=>{const _0x29d501=_0x5340ab;if(this['_online']&&_0x176857['id']===_0x25ff72['SetSelectionsOperation']['id']&&_0x176857[_0x29d501(0x16f)][_0x29d501(0x263)]===this['unitID']){const _0x4de528=_0x176857[_0x29d501(0x16f)];this[_0x29d501(0x1b5)](_0x4de528[_0x29d501(0x1ac)],_0x4de528[_0x29d501(0x3af)][0x0]);}})));}[_0x7fd5a7(0x2bb)](_0x38ab72){const _0x995b86=_0x7fd5a7;var _0x398e96,_0x3b5ee5;const {memberID:_0x29465c,selection:_0x3fa1f6}=_0x38ab72[_0x995b86(0x200)],{sheetName:_0x1eae99,range:_0x3dedfa}=_0x40b667[_0x995b86(0x156)](_0x3fa1f6),_0x1ab672={'name':(_0x3b5ee5=(_0x398e96=this['_memberService']['getMember'](this[_0x995b86(0x28f)],_0x29465c))==null?void 0x0:_0x398e96[_0x995b86(0x1a9)])!=null?_0x3b5ee5:_0x995b86(0x1f2),'range':this[_0x995b86(0x360)](_0x1eae99,_0x3dedfa),'sheetID':_0x1eae99,'color':this[_0x995b86(0x177)][_0x995b86(0x198)](_0x29465c),'selection':_0x3fa1f6},_0xc8313b=this[_0x995b86(0x272)];_0xc8313b[_0x995b86(0x384)](_0x29465c,_0x1ab672),this[_0x995b86(0x342)][_0x995b86(0x30a)](_0xc8313b);}[_0x7fd5a7(0x3b9)](_0x4ced10){const _0x2f691a=_0x7fd5a7,{memberID:_0x1a5688}=_0x4ced10[_0x2f691a(0x200)],_0x58924c=this['cursorInfo'];_0x58924c[_0x2f691a(0x265)](_0x1a5688),this[_0x2f691a(0x342)]['next'](_0x58924c);}[_0x7fd5a7(0x360)](_0x1ae982,_0x273587){const _0x3ded4d=_0x7fd5a7;var _0x8e447a,_0x7f6c9b;const _0x164abc=(_0x7f6c9b=(_0x8e447a=this[_0x3ded4d(0x195)][_0x3ded4d(0x368)](this[_0x3ded4d(0x28f)]))==null?void 0x0:_0x8e447a['getSheetBySheetId'](_0x1ae982))==null?void 0x0:_0x7f6c9b[_0x3ded4d(0x2d6)]();return(_0x164abc==null?void 0x0:_0x164abc[_0x3ded4d(0x32d)](_0x29e7b2=>_0x22a125[_0x3ded4d(0x2ff)][_0x3ded4d(0x388)](_0x29e7b2,_0x273587)))||_0x273587;}['_onRefRangeChange'](){const _0x3d3d60=_0x7fd5a7,_0x2976a8=new _0x22a125['DisposableCollection'](),_0x7de847=_0x437742(),_0x2bda93=()=>{const _0x8004e8=_0x4e86;_0x2976a8[_0x8004e8(0x259)]();const _0x54bf7a=(_0x32dd38,_0x497493,_0x434537,_0x5c01a7)=>{const _0x5c8300=_0x8004e8;let _0x5ee638=[];switch(_0x32dd38['id']){case _0x25ff72[_0x5c8300(0x205)][_0x5c8300(0x1ba)]:{_0x5ee638=_0x25ff72[_0x5c8300(0x240)](_0x32dd38,_0x5c01a7);break;}case _0x25ff72[_0x5c8300(0x205)][_0x5c8300(0x2e3)]:{_0x5ee638=_0x25ff72[_0x5c8300(0x232)](_0x32dd38,_0x5c01a7);break;}case _0x25ff72[_0x5c8300(0x205)][_0x5c8300(0x313)]:{_0x5ee638=_0x25ff72[_0x5c8300(0x17a)](_0x32dd38,_0x5c01a7);break;}case _0x25ff72[_0x5c8300(0x205)][_0x5c8300(0x167)]:{_0x5ee638=_0x25ff72[_0x5c8300(0x150)](_0x32dd38,_0x5c01a7);break;}case _0x25ff72[_0x5c8300(0x205)][_0x5c8300(0x1cd)]:{_0x5ee638=_0x25ff72[_0x5c8300(0x30f)](_0x32dd38,_0x5c01a7);break;}case _0x25ff72[_0x5c8300(0x205)][_0x5c8300(0x1a3)]:{_0x5ee638=_0x25ff72[_0x5c8300(0x377)](_0x32dd38,_0x5c01a7);break;}case _0x25ff72['EffectRefRangId'][_0x5c8300(0x351)]:{_0x5ee638=_0x25ff72[_0x5c8300(0x2cf)](_0x32dd38,_0x5c01a7);break;}case _0x25ff72[_0x5c8300(0x205)]['RemoveColCommandId']:{_0x5ee638=_0x25ff72[_0x5c8300(0x327)](_0x32dd38,_0x5c01a7);break;}case _0x25ff72[_0x5c8300(0x205)][_0x5c8300(0x387)]:{_0x5ee638=_0x25ff72['handleIRemoveRow'](_0x32dd38,_0x5c01a7);break;}}const _0x792196=_0x25ff72['runRefRangeMutations'](_0x5ee638,_0x5c01a7),_0x192afe=this[_0x5c8300(0x272)][_0x5c8300(0x3ae)](_0x497493);if(_0x192afe&&_0x792196){const _0x7f5f83={..._0x192afe,'range':_0x792196};this['cursorInfo'][_0x5c8300(0x384)](_0x497493,_0x7f5f83),_0x7de847(()=>{const _0x5af7e3=_0x5c8300,_0x3e7817=this[_0x5af7e3(0x36c)][_0x5af7e3(0x209)](_0x792196,_0x3a7a92=>(_0x3e7817[_0x5af7e3(0x259)](),_0x54bf7a(_0x3a7a92,_0x497493,_0x434537,_0x792196)));_0x2976a8[_0x5af7e3(0x34a)](_0x3e7817);});}return{'redos':[],'undos':[]};};this[_0x8004e8(0x272)][_0x8004e8(0x311)]((_0x453ee9,_0x19e50e)=>{const _0x7ea019=_0x8004e8,{range:_0x2c4312,sheetID:_0x26302a}=_0x453ee9,_0x14a86a=this[_0x7ea019(0x36c)]['registerRefRange'](_0x2c4312,_0x488728=>(_0x14a86a[_0x7ea019(0x259)](),_0x54bf7a(_0x488728,_0x19e50e,_0x26302a,_0x2c4312)));_0x2976a8[_0x7ea019(0x34a)](_0x14a86a);});};this[_0x3d3d60(0x1b6)](_0x22a125[_0x3d3d60(0x399)](this[_0x3d3d60(0x342)][_0x3d3d60(0x23e)](()=>{_0x2bda93();})));}[_0x7fd5a7(0x250)](){const _0x205e1f=_0x7fd5a7;var _0x1ccfd7,_0x1d26e0;if(this['_online']=!0x0,((_0x1ccfd7=this[_0x205e1f(0x195)][_0x205e1f(0x235)]())==null?void 0x0:_0x1ccfd7[_0x205e1f(0x1fe)]())!==this[_0x205e1f(0x28f)])return;const _0x16f125=(_0x1d26e0=this['_injector']['get'](_0x25ff72[_0x205e1f(0x3a7)])[_0x205e1f(0x39f)]())==null?void 0x0:_0x1d26e0[0x0],_0x5677ef=this[_0x205e1f(0x195)][_0x205e1f(0x1b1)](_0x22a125[_0x205e1f(0x300)]['UNIVER_SHEET'])[_0x205e1f(0x1e0)]();_0x16f125&&_0x5677ef&&this[_0x205e1f(0x1b5)](_0x5677ef[_0x205e1f(0x383)](),_0x16f125);}[_0x7fd5a7(0x185)](){const _0x9b170e=_0x7fd5a7;this[_0x9b170e(0x26e)]=!0x1;}};_0x171670=_0x510682([_0x893c87(0x2,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x319)])),_0x893c87(0x3,_0x22a125[_0x7fd5a7(0x3a9)](_0x5b5b43)),_0x893c87(0x4,_0x22a125[_0x7fd5a7(0x3a9)](_0x330b41[_0x7fd5a7(0x341)])),_0x893c87(0x5,_0x22a125[_0x7fd5a7(0x239)]),_0x893c87(0x6,_0x22a125[_0x7fd5a7(0x2db)]),_0x893c87(0x7,_0x22a125[_0x7fd5a7(0x3a9)](_0x25ff72[_0x7fd5a7(0x23f)]))],_0x171670);var _0xf5eef8=Object[_0x7fd5a7(0x1da)],_0x57aea2=(_0x2e0c45,_0x83f463,_0x5866c4,_0x53984b)=>{const _0xf9e46d=_0x7fd5a7;for(var _0x2cccf0=_0x53984b>0x1?void 0x0:_0x53984b?_0xf5eef8(_0x83f463,_0x5866c4):_0x83f463,_0x3725b9=_0x2e0c45[_0xf9e46d(0x2bf)]-0x1,_0x25ef7e;_0x3725b9>=0x0;_0x3725b9--)(_0x25ef7e=_0x2e0c45[_0x3725b9])&&(_0x2cccf0=_0x25ef7e(_0x2cccf0)||_0x2cccf0);return _0x2cccf0;},_0x73b02f=(_0x4bafa8,_0x419d77)=>(_0x250d6a,_0x3d6154)=>_0x419d77(_0x250d6a,_0x3d6154,_0x4bafa8);let _0x2cdbd9=class extends _0x22a125[_0x7fd5a7(0x24d)]{constructor(_0x41ac57,_0x538ad8,_0x3a2ed3){const _0xdbd5ec=_0x7fd5a7;super(),_0x92a7d(this,_0xdbd5ec(0x3b0),new Map()),_0x92a7d(this,_0xdbd5ec(0x376),new _0x277d09['Subject']()),(this[_0xdbd5ec(0x195)]=_0x41ac57,this[_0xdbd5ec(0x21c)]=_0x538ad8,this['_collabSessionService']=_0x3a2ed3,this[_0xdbd5ec(0x390)]());}['dispose'](){const _0xf3b20b=_0x7fd5a7;super[_0xf3b20b(0x259)](),this[_0xf3b20b(0x376)]['complete'](),this[_0xf3b20b(0x3b0)][_0xf3b20b(0x311)](_0x3316ad=>_0x3316ad[_0xf3b20b(0x259)]());}[_0x7fd5a7(0x144)](_0x2f5e4a){const _0xa79610=_0x7fd5a7;return this['_entities'][_0xa79610(0x2f1)](_0x2f5e4a)?this[_0xa79610(0x3b0)][_0xa79610(0x3ae)](_0x2f5e4a)[_0xa79610(0x215)]:this[_0xa79610(0x376)]['pipe'](_0x277d09['filter'](_0x167fea=>_0x167fea[_0xa79610(0x28f)]===_0x2f5e4a),_0x277d09['switchMap'](_0x33f91b=>_0x33f91b['cursorInfo$']));}[_0x7fd5a7(0x390)](){const _0x14bdd9=_0x7fd5a7;this[_0x14bdd9(0x195)]['getTypeOfUnitAdded$'](_0x22a125[_0x14bdd9(0x300)][_0x14bdd9(0x18b)])[_0x14bdd9(0x141)](_0x277d09[_0x14bdd9(0x29e)](this['dispose$']))['subscribe'](async _0x34eb51=>{const _0x433205=_0x14bdd9,_0x2a10da=_0x34eb51[_0x433205(0x1fe)](),_0x2b267d=await this[_0x433205(0x172)](_0x2a10da);this[_0x433205(0x376)]['next'](_0x2b267d),this['_entities'][_0x433205(0x384)](_0x2a10da,_0x2b267d);}),this[_0x14bdd9(0x195)]['getTypeOfUnitAdded$'](_0x22a125[_0x14bdd9(0x300)][_0x14bdd9(0x1ae)])[_0x14bdd9(0x141)](_0x277d09['takeUntil'](this[_0x14bdd9(0x1ec)]))['pipe'](_0x277d09['filter'](_0x2a4bbd=>!_0x2a4bbd['getUnitId']()[_0x14bdd9(0x288)]('__')))[_0x14bdd9(0x23e)](async _0x212d4b=>{const _0x50b32f=_0x14bdd9,_0x444a2=_0x212d4b['getUnitId'](),_0x42f5f3=await this['_startDocCollabCursor'](_0x444a2);this[_0x50b32f(0x376)][_0x50b32f(0x30a)](_0x42f5f3),this['_entities'][_0x50b32f(0x384)](_0x444a2,_0x42f5f3);}),_0x277d09[_0x14bdd9(0x2d0)](this[_0x14bdd9(0x195)][_0x14bdd9(0x136)](_0x22a125['UniverInstanceType'][_0x14bdd9(0x1ae)]),this['_univerInstanceService'][_0x14bdd9(0x136)](_0x22a125['UniverInstanceType']['UNIVER_SHEET']))[_0x14bdd9(0x141)](_0x277d09['takeUntil'](this[_0x14bdd9(0x1ec)]))[_0x14bdd9(0x23e)](_0x3a64e3=>{const _0x355e0b=_0x14bdd9,_0x4bda07=_0x3a64e3[_0x355e0b(0x1fe)](),_0x2a9965=this['_entities']['get'](_0x4bda07);_0x2a9965&&(_0x2a9965[_0x355e0b(0x259)](),this[_0x355e0b(0x3b0)][_0x355e0b(0x265)](_0x4bda07));});}async[_0x7fd5a7(0x172)](_0x4bef60){const _0x2dfa5e=_0x7fd5a7,_0x296104=await this['_collabSessionService'][_0x2dfa5e(0x3a5)](_0x4bef60),_0x1596da=this[_0x2dfa5e(0x21c)][_0x2dfa5e(0x222)](_0x171670,_0x4bef60,_0x296104);return _0x1596da['init'](),_0x1596da;}async['_startDocCollabCursor'](_0x191311){const _0x19e226=_0x7fd5a7,_0x5ea355=await this['_collabSessionService'][_0x19e226(0x3a5)](_0x191311),_0x301876=this[_0x19e226(0x21c)][_0x19e226(0x222)](_0x4dbf25,_0x191311,_0x5ea355);return _0x301876[_0x19e226(0x315)](),_0x301876;}};_0x2cdbd9=_0x57aea2([_0x73b02f(0x0,_0x22a125[_0x7fd5a7(0x239)]),_0x73b02f(0x1,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x319)])),_0x73b02f(0x2,_0x22a125['Inject'](_0x330b41[_0x7fd5a7(0x196)]))],_0x2cdbd9);const _0x1e11be=0x14,_0x41d34e=0xc8,_0x34a598=0x4,_0x423210=0x5;function _0x2aeee1(_0x3efc25,_0x3bdc89){const _0x4f727a=_0x7fd5a7;let {radius:_0x355552,width:_0x43738c,height:_0x2fa3f5}=_0x3bdc89;_0x355552=_0x355552!=null?_0x355552:0x0,_0x43738c=_0x43738c!=null?_0x43738c:0x1e,_0x2fa3f5=_0x2fa3f5!=null?_0x2fa3f5:0x1e;let _0x3b90de=0x0,_0x1526a3=0x0,_0x559d29=0x0;_0x3b90de=_0x1526a3=_0x559d29=Math[_0x4f727a(0x18d)](_0x355552,_0x43738c/0x2,_0x2fa3f5/0x2),_0x3efc25[_0x4f727a(0x1be)](),_0x3efc25['moveTo'](_0x3b90de,0x0),_0x3efc25[_0x4f727a(0x21a)](_0x43738c-_0x1526a3,0x0),_0x3efc25['arc'](_0x43738c-_0x1526a3,_0x1526a3,_0x1526a3,Math['PI']*0x3/0x2,0x0,!0x1),_0x3efc25[_0x4f727a(0x21a)](_0x43738c,_0x2fa3f5-_0x559d29),_0x3efc25['arc'](_0x43738c-_0x559d29,_0x2fa3f5-_0x559d29,_0x559d29,0x0,Math['PI']/0x2,!0x1),_0x3efc25['lineTo'](0x0,_0x2fa3f5),_0x3efc25[_0x4f727a(0x21a)](0x0,_0x3b90de),_0x3efc25['arc'](_0x3b90de,_0x3b90de,_0x3b90de,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3efc25['closePath'](),_0x3bdc89[_0x4f727a(0x270)]&&(_0x3efc25[_0x4f727a(0x197)](),_0x3efc25[_0x4f727a(0x36d)]=_0x3bdc89[_0x4f727a(0x270)],_0x3bdc89[_0x4f727a(0x155)]===_0x4f727a(0x26b)?_0x3efc25[_0x4f727a(0x270)](_0x4f727a(0x26b)):_0x3efc25[_0x4f727a(0x270)](),_0x3efc25[_0x4f727a(0x17d)]());}class _0x1792fa extends _0x2fdb88[_0x7fd5a7(0x138)]{constructor(_0x10200a,_0xb30b6f){const _0x1f846a=_0x7fd5a7;super(_0x10200a,_0xb30b6f),_0x92a7d(this,_0x1f846a(0x1f7)),_0x92a7d(this,_0x1f846a(0x37f)),(this[_0x1f846a(0x1f7)]=_0xb30b6f==null?void 0x0:_0xb30b6f['color'],this[_0x1f846a(0x37f)]=_0xb30b6f==null?void 0x0:_0xb30b6f[_0x1f846a(0x37f)]);}static[_0x7fd5a7(0x217)](_0x14db5d,_0x32626d){const _0x5cc33e=_0x7fd5a7,{text:_0x33af6f,color:_0x30bfba}=_0x32626d;_0x14db5d[_0x5cc33e(0x197)](),_0x14db5d[_0x5cc33e(0x164)]=_0x5cc33e(0x171);const _0x4a30dd=_0x14db5d['measureText'](_0x33af6f)[_0x5cc33e(0x382)],_0x42c0de=Math[_0x5cc33e(0x18d)](_0x4a30dd+0x2*_0x34a598,_0x41d34e);_0x2aeee1(_0x14db5d,{'height':_0x1e11be,'radius':0x4,'width':_0x42c0de,'fill':_0x30bfba}),_0x14db5d[_0x5cc33e(0x36d)]=_0x5cc33e(0x15a);const _0x1f13be=_0x34a598,_0x5556b1=_0x1e11be-_0x423210,_0x30bf9c=_0x41d34e-0x2*_0x34a598;if(_0x4a30dd>_0x30bf9c){let _0x465b3a='',_0x43df6a=0x0;for(const _0x247524 of _0x33af6f){const _0x53c886=_0x14db5d[_0x5cc33e(0x3a2)](_0x247524)[_0x5cc33e(0x382)];if(_0x43df6a+_0x53c886<=_0x30bf9c-_0x14db5d[_0x5cc33e(0x3a2)](_0x5cc33e(0x147))['width'])_0x465b3a+=_0x247524,_0x43df6a+=_0x53c886;else{_0x465b3a+=_0x5cc33e(0x147);break;}}_0x14db5d[_0x5cc33e(0x2e5)](_0x465b3a,_0x1f13be,_0x5556b1);}else _0x14db5d[_0x5cc33e(0x2e5)](_0x33af6f,_0x1f13be,_0x5556b1);_0x14db5d[_0x5cc33e(0x17d)]();}['_draw'](_0x5c368e){_0x1792fa['drawWith'](_0x5c368e,this);}}const _0x3bea72=_0x7fd5a7(0x2ab),_0x36efe1=_0x7fd5a7(0x206),_0x21a068='collab-rect-range-',_0xda2fa9=0x6,_0x4dedf3=1.5,_0x45dc42=0x4,_0x247e42=1.5,_0x532fa2='rgba(255,\x20255,\x20255,\x200.01)';class _0x10b344{constructor(_0x4a5e2b,_0x3ae58b,_0x3f60e6,_0x518a66){const _0x4c7d88=_0x7fd5a7;_0x92a7d(this,_0x4c7d88(0x16d),[]),_0x92a7d(this,'_anchor',null),_0x92a7d(this,_0x4c7d88(0x2d4),null),_0x92a7d(this,_0x4c7d88(0x27e),null),_0x92a7d(this,_0x4c7d88(0x25f),null),_0x92a7d(this,'_eventUnsubscribe',null),(this[_0x4c7d88(0x379)]=_0x4a5e2b,this[_0x4c7d88(0x281)]=_0x3ae58b,this['_docSkeleton']=_0x3f60e6,this[_0x4c7d88(0x26a)]=_0x518a66,this[_0x4c7d88(0x2ed)]());}set[_0x7fd5a7(0x16a)](_0x1427df){const _0xd1b8e=_0x7fd5a7;_0x1427df?(this[_0xd1b8e(0x27e)]&&this[_0xd1b8e(0x27e)][_0xd1b8e(0x2a8)](),this[_0xd1b8e(0x2d4)]&&this[_0xd1b8e(0x2d4)][_0xd1b8e(0x27d)]()):(this[_0xd1b8e(0x27e)]&&this[_0xd1b8e(0x27e)][_0xd1b8e(0x27d)](),this[_0xd1b8e(0x2d4)]&&this[_0xd1b8e(0x2d4)][_0xd1b8e(0x2a8)]());}[_0x7fd5a7(0x259)](){const _0x111bfb=_0x7fd5a7;for(const _0x40d316 of this['_shapes'])_0x40d316[_0x111bfb(0x259)]();this[_0x111bfb(0x2d4)]&&this[_0x111bfb(0x2d4)][_0x111bfb(0x259)](),this[_0x111bfb(0x27e)]&&this[_0x111bfb(0x27e)]['dispose'](),this['_anchor']&&this['_anchor'][_0x111bfb(0x259)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x7fd5a7(0x2ed)](){const _0x33d14a=_0x7fd5a7;var _0x31d9eb;const {_docSkeleton:_0xaa6321,_document:_0xfeae02}=this,{color:_0x34a504,name:_0x5c2cb8,ranges:_0x30692f}=this['_cursor'],_0x5dc9be=_0xfeae02['getOffsetConfig'](),{docsLeft:_0x578e14,docsTop:_0x4095b6}=_0x5dc9be,_0x6ff0b=new _0x5572fe['NodePositionConvertToCursor'](_0x5dc9be,_0xaa6321);for(const {startOffset:_0x2a663b,endOffset:_0x563d5d,rangeType:_0x159bf7,segmentId:_0x1bd3be,segmentPage:_0x5960de,collapsed:_0x424520,isActive:_0x83d709}of _0x30692f){const _0x4cbd8a=_0xaa6321[_0x33d14a(0x32f)](_0x2a663b,!0x0,_0x1bd3be,_0x5960de);let _0x214f96=_0xaa6321[_0x33d14a(0x32f)](_0x563d5d,!0x0,_0x1bd3be,_0x5960de);if(_0x214f96==null&&(_0x214f96=_0xaa6321[_0x33d14a(0x32f)](_0x563d5d-0x1,!0x1,_0x1bd3be,_0x5960de)),_0x83d709){const {contentBoxPointGroup:_0xc3689f}=_0x6ff0b['getRangePointData'](_0x214f96,_0x214f96);if(_0xc3689f[_0x33d14a(0x2bf)]===0x0)continue;this[_0x33d14a(0x286)](_0x34a504,_0xc3689f,_0x578e14,_0x4095b6,_0x5c2cb8),this[_0x33d14a(0x275)]=this['_handleHover']();}if(_0x4cbd8a&&_0x214f96){if(_0x159bf7===_0x22a125[_0x33d14a(0x301)][_0x33d14a(0x326)]){const _0x47b998=new _0x5572fe[(_0x33d14a(0x2b8))](_0x5dc9be,_0xaa6321),{pointGroup:_0x232aa0}=(_0x31d9eb=_0x47b998['getRangePointData'](_0x4cbd8a,_0x214f96))!=null?_0x31d9eb:{};if(_0x232aa0==null||_0x232aa0[_0x33d14a(0x2bf)]===0x0)continue;this[_0x33d14a(0x184)](_0x34a504,_0x232aa0,_0x578e14,_0x4095b6);}else{if(!_0x424520){const {borderBoxPointGroup:_0x3238a9}=_0x6ff0b[_0x33d14a(0x2c1)](_0x4cbd8a,_0x214f96);if(_0x3238a9['length']===0x0)continue;this[_0x33d14a(0x21d)](_0x34a504,_0x3238a9,_0x578e14,_0x4095b6);}}}}}[_0x7fd5a7(0x286)](_0x41b0de,_0x33c9ac,_0x4ce6a1,_0xc6dada,_0x3faf1b){const _0x42f10b=_0x7fd5a7,_0xeb3abd=this[_0x42f10b(0x2eb)](_0x33c9ac),{left:_0x2bcef4,top:_0x39f4c0,height:_0x2112ac}=_0xeb3abd,_0x13af63=this[_0x42f10b(0x2b9)](),_0xc66ee6=_0x247e42/_0x13af63,_0xfa8847=new _0x2fdb88['Rect'](_0x3bea72+_0x22a125[_0x42f10b(0x35b)][_0x42f10b(0x230)](_0xda2fa9),{'left':_0x2bcef4+_0x4ce6a1-_0xc66ee6,'top':_0x39f4c0+_0xc6dada,'height':_0x2112ac,'width':_0x4dedf3,'fill':_0x41b0de||_0x2fdb88['getColor'](_0x22a125[_0x42f10b(0x1b3)]['black'],0x0),'strokeWidth':_0xc66ee6,'stroke':_0x532fa2,'evented':!0x0});this[_0x42f10b(0x210)]=_0xfa8847,this['_scene'][_0x42f10b(0x3b7)](_0xfa8847,_0x5572fe[_0x42f10b(0x359)]);const _0x3202d8=new _0x2fdb88[(_0x42f10b(0x1ed))](_0x3bea72+_0x22a125['Tools'][_0x42f10b(0x230)](_0xda2fa9),{'left':_0x2bcef4+_0x4ce6a1-_0xc66ee6,'top':_0x39f4c0+_0xc6dada-_0x45dc42/0x2,'height':_0x45dc42,'width':_0x45dc42,'fill':_0x41b0de||_0x2fdb88[_0x42f10b(0x2c2)](_0x22a125['COLORS'][_0x42f10b(0x292)],0x0),'strokeWidth':0x0,'stroke':_0x41b0de||_0x2fdb88[_0x42f10b(0x2c2)](_0x22a125['COLORS']['black'],0x0),'evented':!0x1});this[_0x42f10b(0x27e)]=_0x3202d8,this[_0x42f10b(0x281)][_0x42f10b(0x3b7)](_0x3202d8,_0x5572fe['TEXT_RANGE_LAYER_INDEX']);const _0x468fff=new _0x1792fa(_0x3bea72+_0x22a125['Tools'][_0x42f10b(0x230)](_0xda2fa9),{'left':_0x2bcef4+_0x4ce6a1-_0xc66ee6,'top':_0x39f4c0+_0xc6dada-_0x1e11be,'text':_0x3faf1b,'color':_0x41b0de});this[_0x42f10b(0x2d4)]=_0x468fff,this['_scene'][_0x42f10b(0x3b7)](_0x468fff,_0x5572fe['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0x478a02=_0x7fd5a7,_0x25dfe7=this[_0x478a02(0x210)][_0x478a02(0x395)]['subscribeEvent'](()=>{const _0x4a7525=_0x478a02;this[_0x4a7525(0x16a)]=!0x0;}),_0x408024=this[_0x478a02(0x210)][_0x478a02(0x3be)][_0x478a02(0x336)](()=>{const _0x56026d=_0x478a02;this[_0x56026d(0x25f)]&&clearTimeout(this[_0x56026d(0x25f)]),this[_0x56026d(0x25f)]=setTimeout(()=>{const _0x22275f=_0x56026d;this[_0x22275f(0x16a)]=!0x1;},0x7d0);});return()=>{const _0x1e368e=_0x478a02;_0x25dfe7[_0x1e368e(0x176)](),_0x408024['unsubscribe']();};}[_0x7fd5a7(0x21d)](_0x27d81b,_0x42dec0,_0x553a57,_0x2b0516){const _0x41ae73=_0x7fd5a7,_0x5904a3=new _0x22a125[(_0x41ae73(0x18f))](_0x27d81b)[_0x41ae73(0x2fe)](0.2)[_0x41ae73(0x183)](),_0x5b9375=new _0x2fdb88[(_0x41ae73(0x24c))](_0x36efe1+_0x22a125[_0x41ae73(0x35b)]['generateRandomId'](_0xda2fa9),{'pointsGroup':_0x42dec0,'fill':_0x5904a3||_0x2fdb88[_0x41ae73(0x2c2)](_0x22a125[_0x41ae73(0x1b3)]['black'],0.2),'left':_0x553a57,'top':_0x2b0516,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x41ae73(0x2ea)](_0x5b9375),this[_0x41ae73(0x281)][_0x41ae73(0x3b7)](_0x5b9375,_0x5572fe['TEXT_RANGE_LAYER_INDEX']);}[_0x7fd5a7(0x184)](_0x2fab4e,_0x33b6aa,_0x469b36,_0x488762){const _0x3cd129=_0x7fd5a7,_0x136710=new _0x22a125['ColorKit'](_0x2fab4e)[_0x3cd129(0x2fe)](0.2)['toRgbString'](),_0x433380=new _0x2fdb88['RegularPolygon'](_0x21a068+_0x22a125[_0x3cd129(0x35b)][_0x3cd129(0x230)](_0xda2fa9),{'pointsGroup':_0x33b6aa,'fill':_0x136710||_0x2fdb88[_0x3cd129(0x2c2)](_0x22a125[_0x3cd129(0x1b3)][_0x3cd129(0x292)],0.2),'left':_0x469b36,'top':_0x488762,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3cd129(0x2ea)](_0x433380),this[_0x3cd129(0x281)][_0x3cd129(0x3b7)](_0x433380,_0x5572fe[_0x3cd129(0x359)]);}[_0x7fd5a7(0x2eb)](_0x559013){const _0x14b289=_0x559013[0x0],_0x25c4b7=_0x14b289[0x0],_0x53693e=_0x14b289[0x2],{x:_0x33ae46,y:_0x2be534}=_0x25c4b7,{x:_0x5b14a0,y:_0x561ea0}=_0x53693e;return{'left':_0x33ae46,'top':_0x2be534,'width':_0x5b14a0-_0x33ae46,'height':_0x561ea0-_0x2be534};}[_0x7fd5a7(0x2b9)](){const _0x1e5eda=_0x7fd5a7,{scaleX:_0x20d64d,scaleY:_0x22423a}=this[_0x1e5eda(0x281)][_0x1e5eda(0x332)]();return Math[_0x1e5eda(0x1b8)](_0x20d64d,_0x22423a);}}var _0x3cee7c=Object['getOwnPropertyDescriptor'],_0x1127f1=(_0x46c606,_0x4ce7bb,_0x4170ae,_0xcd757e)=>{const _0x31d656=_0x7fd5a7;for(var _0x4ff355=_0xcd757e>0x1?void 0x0:_0xcd757e?_0x3cee7c(_0x4ce7bb,_0x4170ae):_0x4ce7bb,_0x4245fd=_0x46c606[_0x31d656(0x2bf)]-0x1,_0x298515;_0x4245fd>=0x0;_0x4245fd--)(_0x298515=_0x46c606[_0x4245fd])&&(_0x4ff355=_0x298515(_0x4ff355)||_0x4ff355);return _0x4ff355;},_0x4d9835=(_0x22ef78,_0x1a57a3)=>(_0x3e224f,_0x2b2f02)=>_0x1a57a3(_0x3e224f,_0x2b2f02,_0x22ef78);let _0x25d5eb=class extends _0x22a125[_0x7fd5a7(0x24d)]{constructor(_0x5bce9b,_0x4f8449,_0x1677f0,_0x10d6e6,_0x15f820){const _0x4174d1=_0x7fd5a7;super(),_0x92a7d(this,_0x4174d1(0x137),[]),_0x92a7d(this,'_cursors',[]),(this[_0x4174d1(0x2e6)]=_0x5bce9b,this[_0x4174d1(0x1d6)]=_0x4f8449,this[_0x4174d1(0x223)]=_0x1677f0,this[_0x4174d1(0x211)]=_0x10d6e6,this[_0x4174d1(0x287)]=_0x15f820,this['_init']());}[_0x7fd5a7(0x390)](){const _0x484334=_0x7fd5a7,_0x3b0904=this[_0x484334(0x2e6)][_0x484334(0x263)],_0x37c2f6=this['_docSkeletonManagerService'];this[_0x484334(0x1b6)](_0x277d09[_0x484334(0x36a)]([this[_0x484334(0x223)][_0x484334(0x144)](_0x3b0904),this['_themeService'][_0x484334(0x154)]])[_0x484334(0x141)](_0x1a9106[_0x484334(0x20d)](([_0x3e21f6,_0x2f542f])=>({'skeleton':_0x37c2f6[_0x484334(0x1d2)](),'cursors':[..._0x3e21f6[_0x484334(0x2e1)]()]['flatMap'](_0x4b0c99=>({..._0x4b0c99,'color':this[_0x484334(0x287)]['getColorFromTheme'](_0x4b0c99[_0x484334(0x1f7)])}))})))[_0x484334(0x23e)](_0x5b8569=>{if(this['_removeCollabCursors'](),_0x5b8569){const {skeleton:_0x4afc03,cursors:_0x2fbade}=_0x5b8569;this['_updateCollabCursors'](_0x4afc03,_0x2fbade);}})),this[_0x484334(0x2de)](),this[_0x484334(0x162)]();}[_0x7fd5a7(0x216)](_0x2223bb,_0x2520d2){const _0xd3dc60=_0x7fd5a7,{scene:_0x3f196c,mainComponent:_0x924869}=this['_context'],_0x285ba2=_0x2520d2[_0xd3dc60(0x20d)](_0x53c664=>new _0x10b344(_0x53c664,_0x3f196c,_0x2223bb,_0x924869));this[_0xd3dc60(0x137)]=_0x285ba2,this['_cursors']=_0x2520d2;}[_0x7fd5a7(0x1ea)](){const _0x161d18=_0x7fd5a7;this[_0x161d18(0x229)]();const {scene:_0x59dbd4,mainComponent:_0xf7b9f3}=this['_context'],_0xcba1a6=this['_docSkeletonManagerService'][_0x161d18(0x1d2)](),_0x191327=this[_0x161d18(0x1a4)][_0x161d18(0x20d)](_0x2a2832=>new _0x10b344(_0x2a2832,_0x59dbd4,_0xcba1a6,_0xf7b9f3));this[_0x161d18(0x137)]=_0x191327;}[_0x7fd5a7(0x229)](){const _0x2e2dd2=_0x7fd5a7;this['_cursorShapes'][_0x2e2dd2(0x311)](_0x591f1d=>_0x591f1d[_0x2e2dd2(0x259)]()),this['_cursorShapes']=[];}[_0x7fd5a7(0x162)](){const _0x2822f3=_0x7fd5a7,_0x4aff65=[_0x5572fe[_0x2822f3(0x241)]['id']];this[_0x2822f3(0x1b6)](this[_0x2822f3(0x211)][_0x2822f3(0x2f6)](_0x4791d7=>{const _0x227900=_0x2822f3;_0x4aff65[_0x227900(0x17b)](_0x4791d7['id'])&&_0x4791d7[_0x227900(0x16f)][_0x227900(0x263)]===this[_0x227900(0x2e6)][_0x227900(0x263)]&&this[_0x227900(0x1ea)]();}));}[_0x7fd5a7(0x2de)](){const _0x5e9110=_0x7fd5a7;this['disposeWithMe'](_0x22a125[_0x5e9110(0x14b)](this['_context']['engine'][_0x5e9110(0x258)])[_0x5e9110(0x141)](_0x1a9106[_0x5e9110(0x31b)](_0xa461eb=>_0xa461eb[_0x5e9110(0x1d5)]===_0x2fdb88[_0x5e9110(0x2a5)][_0x5e9110(0x2a9)]),_0x1a9106[_0x5e9110(0x3a1)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};_0x25d5eb=_0x1127f1([_0x4d9835(0x1,_0x22a125[_0x7fd5a7(0x3a9)](_0x18992d[_0x7fd5a7(0x3a0)])),_0x4d9835(0x2,_0x22a125['Inject'](_0x2cdbd9)),_0x4d9835(0x3,_0x22a125[_0x7fd5a7(0x2db)]),_0x4d9835(0x4,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x28a)]))],_0x25d5eb);const _0x2482f8=0x1,_0x57268e=1.5;class _0x21086f extends _0x2fdb88[_0x7fd5a7(0x138)]{constructor(_0x1c151e,_0x3ee1cb){const _0x539d52=_0x7fd5a7;super(_0x1c151e,_0x3ee1cb),_0x92a7d(this,'_color'),_0x92a7d(this,_0x539d52(0x1b0),!0x1),_0x92a7d(this,'_range'),_0x92a7d(this,_0x539d52(0x16c),''),_0x92a7d(this,_0x539d52(0x178),'top'),_0x92a7d(this,_0x539d52(0x201)),(_0x3ee1cb&&this['setShapeProps'](_0x3ee1cb),this[_0x539d52(0x395)][_0x539d52(0x336)](()=>this[_0x539d52(0x193)]({'hovered':!0x0})),this[_0x539d52(0x3be)][_0x539d52(0x336)](()=>this[_0x539d52(0x193)]({'hovered':!0x1})));}[_0x7fd5a7(0x193)](_0x3e5fb5){const _0x20390a=_0x7fd5a7;var _0x10aa5a,_0x45e250,_0xc34f0d,_0x5c03c1,_0x16ed6f,_0x1eb65c;this['_color']=(_0x10aa5a=_0x3e5fb5[_0x20390a(0x1f7)])!=null?_0x10aa5a:this[_0x20390a(0x3b6)],this['_hovered']=(_0x45e250=_0x3e5fb5[_0x20390a(0x21f)])!=null?_0x45e250:this[_0x20390a(0x1b0)],this[_0x20390a(0x1e9)]=(_0xc34f0d=_0x3e5fb5[_0x20390a(0x305)])!=null?_0xc34f0d:this[_0x20390a(0x1e9)],this['_name']=(_0x5c03c1=_0x3e5fb5[_0x20390a(0x1a9)])!=null?_0x5c03c1:this[_0x20390a(0x16c)],this[_0x20390a(0x178)]=(_0x16ed6f=_0x3e5fb5['labelPosition'])!=null?_0x16ed6f:this[_0x20390a(0x178)],this[_0x20390a(0x201)]=(_0x1eb65c=_0x3e5fb5['backgroundColor'])!=null?_0x1eb65c:this[_0x20390a(0x201)],this[_0x20390a(0x2a4)]({'width':_0x3e5fb5[_0x20390a(0x382)],'height':_0x3e5fb5[_0x20390a(0x2a2)]});}[_0x7fd5a7(0x166)](_0x2a50e7){const _0x5d9337=_0x7fd5a7,{row:_0x16a92e,column:_0x34d7d1}=_0x2a50e7;if(_0x16a92e>=this[_0x5d9337(0x1e9)][_0x5d9337(0x304)]&&_0x16a92e<=this['_range']['endRow']&&_0x34d7d1>=this[_0x5d9337(0x1e9)][_0x5d9337(0x2d9)]&&_0x34d7d1<=this[_0x5d9337(0x1e9)][_0x5d9337(0x30e)]){this[_0x5d9337(0x193)]({'hovered':!0x0});return;}this[_0x5d9337(0x193)]({'hovered':!0x1});}[_0x7fd5a7(0x317)](_0x2043b5){return!0x1;}['_draw'](_0x53b6e7){const _0x2a39f9=_0x7fd5a7;_0x2fdb88[_0x2a39f9(0x1ed)][_0x2a39f9(0x217)](_0x53b6e7,{'width':this[_0x2a39f9(0x382)],'height':this[_0x2a39f9(0x2a2)],'strokeWidth':_0x57268e,'stroke':this[_0x2a39f9(0x3b6)],'evented':!0x1,'fill':this[_0x2a39f9(0x201)]}),this[_0x2a39f9(0x1b0)]&&(_0x53b6e7[_0x2a39f9(0x197)](),_0x53b6e7['transform'](0x1,0x0,0x0,0x1,this[_0x2a39f9(0x382)],this[_0x2a39f9(0x178)]===_0x2a39f9(0x30c)?0x0:-0x14),_0x1792fa['drawWith'](_0x53b6e7,{'text':this[_0x2a39f9(0x16c)],'color':this[_0x2a39f9(0x3b6)]}),_0x53b6e7['restore']());}}var _0x10c855=Object['getOwnPropertyDescriptor'],_0x2a8a0e=(_0x2dcd17,_0x33dbfa,_0x1f31ce,_0x45a1a1)=>{for(var _0x4c9187=_0x45a1a1>0x1?void 0x0:_0x45a1a1?_0x10c855(_0x33dbfa,_0x1f31ce):_0x33dbfa,_0x27bd0e=_0x2dcd17['length']-0x1,_0x503cc5;_0x27bd0e>=0x0;_0x27bd0e--)(_0x503cc5=_0x2dcd17[_0x27bd0e])&&(_0x4c9187=_0x503cc5(_0x4c9187)||_0x4c9187);return _0x4c9187;},_0x258ecd=(_0x446cce,_0x4217b9)=>(_0x22b0f0,_0x23d153)=>_0x4217b9(_0x22b0f0,_0x23d153,_0x446cce);const _0x43e852=0x1389;let _0x3169ab=class extends _0x22a125[_0x7fd5a7(0x24d)]{constructor(_0x3b41ed,_0x233437,_0x20a13b,_0x44ff90){const _0x2589f9=_0x7fd5a7;super(),_0x92a7d(this,_0x2589f9(0x1a4),new Set()),_0x92a7d(this,_0x2589f9(0x39b),null),(this[_0x2589f9(0x2e6)]=_0x3b41ed,this['_sheetSkeletonManagerService']=_0x233437,this[_0x2589f9(0x223)]=_0x20a13b,this[_0x2589f9(0x287)]=_0x44ff90,this['_init']());}[_0x7fd5a7(0x390)](){const _0x5d79f1=_0x7fd5a7;this[_0x5d79f1(0x1c3)][_0x5d79f1(0x36f)]['pipe'](_0x1a9106['takeUntil'](this[_0x5d79f1(0x1ec)]),_0x1a9106[_0x5d79f1(0x2c5)](_0x64e5e7=>{const _0x38fe7d=_0x5d79f1;if(_0x64e5e7){const _0x2df6a3=_0x64e5e7['sheetId'];return _0x277d09[_0x38fe7d(0x36a)](this['_collabCursorController'][_0x38fe7d(0x144)](this['_context'][_0x38fe7d(0x263)]),this['_themeService'][_0x38fe7d(0x154)])['pipe'](_0x1a9106['map'](([_0x56d158,_0x3027d5])=>{const _0x485077=_0x38fe7d,_0x572a82=new Map();return _0x56d158[_0x485077(0x311)]((_0x200b95,_0x54e04)=>{const _0x530e78=_0x485077;if(_0x200b95[_0x530e78(0x371)]===_0x2df6a3){const _0x129422={..._0x200b95};_0x129422[_0x530e78(0x1f7)]=this[_0x530e78(0x287)]['getColorFromTheme'](_0x200b95[_0x530e78(0x1f7)]),_0x572a82[_0x530e78(0x384)](_0x54e04,_0x129422);}}),{'skeleton':_0x64e5e7,'cursors':_0x572a82};}));}return _0x277d09['of']({'skeleton':null,'cursors':new Map()});}))[_0x5d79f1(0x23e)](({skeleton:_0x65ffba,cursors:_0x363dab})=>{const _0xf6d166=_0x5d79f1;this[_0xf6d166(0x229)](),_0x65ffba&&this[_0xf6d166(0x216)](_0x65ffba,_0x363dab);}),this['_sheetSkeletonManagerService'][_0x5d79f1(0x36f)]['subscribe'](_0x409427=>{const _0x93ac0e=_0x5d79f1;if(_0x409427==null)return;const {skeleton:_0x2e6e0a}=_0x409427,{scene:_0x478b36}=this[_0x93ac0e(0x2e6)];_0x478b36[_0x93ac0e(0x148)][_0x93ac0e(0x336)](_0x22a125[_0x93ac0e(0x14f)](_0x5e6a02=>{const _0x5326d8=_0x93ac0e;var _0x5b4e21,_0x143cc3;const {offsetX:_0x4b5fe0,offsetY:_0x1ea045}=_0x5e6a02,{x:_0x32188d,y:_0x356258}=_0x478b36[_0x5326d8(0x276)](_0x2fdb88[_0x5326d8(0x253)][_0x5326d8(0x24a)]([_0x4b5fe0,_0x1ea045])),{scaleX:_0x45459a,scaleY:_0x5f003e}=_0x478b36[_0x5326d8(0x332)](),_0xa0029e=_0x478b36[_0x5326d8(0x2ae)](_0x2fdb88[_0x5326d8(0x243)][_0x5326d8(0x38f)]),_0x38e1bf=_0x478b36[_0x5326d8(0x3a6)](_0x2fdb88[_0x5326d8(0x253)][_0x5326d8(0x24a)]([_0x32188d,_0x356258]),_0xa0029e),_0x1d21d1=_0x2e6e0a[_0x5326d8(0x21b)](_0x4b5fe0,_0x1ea045,_0x45459a,_0x5f003e,_0x38e1bf);((_0x5b4e21=this['_lastPointer'])==null?void 0x0:_0x5b4e21[_0x5326d8(0x2da)])===_0x1d21d1['column']&&((_0x143cc3=this[_0x5326d8(0x39b)])==null?void 0x0:_0x143cc3[_0x5326d8(0x356)])===_0x1d21d1[_0x5326d8(0x356)]||this[_0x5326d8(0x1a4)][_0x5326d8(0x311)](_0x21c478=>{_0x21c478['onMouseMove'](_0x1d21d1);});},0x64));});}[_0x7fd5a7(0x216)](_0x2009e6,_0x5ee92a){const _0x37e279=_0x7fd5a7;var _0x39ddb4;const _0x5129b1=(_0x39ddb4=this[_0x37e279(0x1c3)][_0x37e279(0x2bd)]())==null?void 0x0:_0x39ddb4[_0x37e279(0x374)];if(!_0x5129b1)return;const _0x25586d=this['_getSheetObject']();if(!_0x25586d)return;this[_0x37e279(0x1a4)]['forEach'](_0x4d8314=>{_0x4d8314['makeDirty']();});const {scene:_0x5a996d}=_0x25586d,_0x443d34=_0x46331e(Array[_0x37e279(0x2a0)](_0x5ee92a[_0x37e279(0x2e1)]()))[_0x37e279(0x20d)](_0x1ae1ef=>{const _0xa75e60=_0x37e279,{color:_0x5be55b,range:_0x510279,name:_0x4001fc,selection:_0x2ef594,sheetID:_0x1b9342}=_0x1ae1ef,{startColumn:_0x544dbb,startRow:_0x5730c3,endColumn:_0x517c2f,endRow:_0x473912}=_0x510279,_0x214953=_0x381a64[_0xa75e60(0x19c)](_0x5730c3,_0x544dbb,_0x5a996d,_0x5129b1),_0x3b4d27=_0x381a64[_0xa75e60(0x19c)](_0x473912,_0x517c2f,_0x5a996d,_0x5129b1),{columnHeaderHeightAndMarginTop:_0x48c58a}=_0x5129b1,{startX:_0x325011,startY:_0x1ce304}=_0x214953,{endX:_0x16a7e1,endY:_0x3b27e3}=_0x3b4d27,_0x545990=_0x16a7e1-_0x325011,_0x1c5c43=_0x3b27e3-_0x1ce304,_0x1e3c45={'labelPosition':_0x1ce304-_0x48c58a>=_0x1e11be?_0xa75e60(0x2dd):_0xa75e60(0x30c),'sheetID':_0x1b9342,'range':_0x510279,'color':_0x5be55b,'name':_0x4001fc,'selection':_0x2ef594,'left':_0x325011,'top':_0x1ce304,'width':_0x545990,'height':_0x1c5c43,'evented':!0x1,'zIndex':_0x43e852};return new _0x21086f(_0x4001fc,_0x1e3c45);});_0x5a996d[_0x37e279(0x345)](_0x443d34,_0x2482f8),this[_0x37e279(0x1a4)]=new Set(_0x443d34);}[_0x7fd5a7(0x229)](){const _0x4fb261=_0x7fd5a7;var _0x31d1d7;(_0x31d1d7=this[_0x4fb261(0x1a4)])==null||_0x31d1d7[_0x4fb261(0x311)](_0x414fda=>_0x414fda[_0x4fb261(0x259)]());}[_0x7fd5a7(0x1fc)](){return _0x381a64['getSheetObject'](this['_context']['unit'],this['_context']);}};_0x3169ab=_0x2a8a0e([_0x258ecd(0x1,_0x22a125[_0x7fd5a7(0x3a9)](_0x381a64[_0x7fd5a7(0x1f6)])),_0x258ecd(0x2,_0x22a125[_0x7fd5a7(0x3a9)](_0x2cdbd9)),_0x258ecd(0x3,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125['ThemeService']))],_0x3169ab);function _0x46331e(_0xa51c03){const _0x549850=_0x7fd5a7,_0x353482=new Map();return _0xa51c03[_0x549850(0x311)](_0x3f1227=>{const _0x585222=_0x549850;if(_0x353482[_0x585222(0x2f1)](_0x3f1227[_0x585222(0x392)])){const _0x1d4258=_0x353482[_0x585222(0x3ae)](_0x3f1227['selection']);_0x1d4258[_0x585222(0x1a9)]+=',\x20'+_0x3f1227[_0x585222(0x1a9)];}else _0x353482[_0x585222(0x384)](_0x3f1227['selection'],_0x3f1227);}),Array['from'](_0x353482[_0x549850(0x2e1)]());}var _0x457964=function(){const _0x4ca5ec=_0x7fd5a7;return _0x457964=Object[_0x4ca5ec(0x24b)]||function(_0x4a04e4){const _0x3ba7ad=_0x4ca5ec;for(var _0x2c6074,_0x2ffafc=0x1,_0x67d4bc=arguments[_0x3ba7ad(0x2bf)];_0x2ffafc<_0x67d4bc;_0x2ffafc++){_0x2c6074=arguments[_0x2ffafc];for(var _0x385249 in _0x2c6074)Object[_0x3ba7ad(0x1db)][_0x3ba7ad(0x17e)]['call'](_0x2c6074,_0x385249)&&(_0x4a04e4[_0x385249]=_0x2c6074[_0x385249]);}return _0x4a04e4;},_0x457964[_0x4ca5ec(0x32e)](this,arguments);},_0x188cf3=function(_0x2aa060,_0x444936){const _0x4a3e95=_0x7fd5a7;var _0x2fb25f={};for(var _0x25ad7f in _0x2aa060)Object[_0x4a3e95(0x1db)][_0x4a3e95(0x17e)][_0x4a3e95(0x1ad)](_0x2aa060,_0x25ad7f)&&_0x444936[_0x4a3e95(0x227)](_0x25ad7f)<0x0&&(_0x2fb25f[_0x25ad7f]=_0x2aa060[_0x25ad7f]);if(_0x2aa060!=null&&typeof Object[_0x4a3e95(0x1c0)]==_0x4a3e95(0x264)){for(var _0x44e7ce=0x0,_0x25ad7f=Object['getOwnPropertySymbols'](_0x2aa060);_0x44e7ce<_0x25ad7f['length'];_0x44e7ce++)_0x444936[_0x4a3e95(0x227)](_0x25ad7f[_0x44e7ce])<0x0&&Object[_0x4a3e95(0x1db)][_0x4a3e95(0x1a2)][_0x4a3e95(0x1ad)](_0x2aa060,_0x25ad7f[_0x44e7ce])&&(_0x2fb25f[_0x25ad7f[_0x44e7ce]]=_0x2aa060[_0x25ad7f[_0x44e7ce]]);}return _0x2fb25f;},_0x2a08cc=_0x1467d2[_0x7fd5a7(0x366)](function(_0xb6ce24,_0x83e3b5){const _0x608a93=_0x7fd5a7;var _0x16735e=_0xb6ce24[_0x608a93(0x17f)],_0x17027b=_0xb6ce24['id'],_0x2c4dd2=_0xb6ce24['className'],_0x3d787d=_0xb6ce24[_0x608a93(0x174)],_0x30a222=_0x188cf3(_0xb6ce24,[_0x608a93(0x17f),'id',_0x608a93(0x346),_0x608a93(0x174)]),_0x25f8dd='univerjs-icon\x20univerjs-icon-'[_0x608a93(0x28b)](_0x17027b,'\x20')[_0x608a93(0x28b)](_0x2c4dd2||'')['trim'](),_0x1f3ac4=_0x1467d2[_0x608a93(0x1ce)]('_'[_0x608a93(0x28b)](_0x3e3715()));return _0x209ac8(_0x16735e,''[_0x608a93(0x28b)](_0x17027b),{'defIds':_0x16735e[_0x608a93(0x278)],'idSuffix':_0x1f3ac4[_0x608a93(0x370)]},_0x457964({'ref':_0x83e3b5,'className':_0x25f8dd},_0x30a222),_0x3d787d);});function _0x209ac8(_0x1c1b87,_0x34b7ef,_0x2e04de,_0x148015,_0x3a306a){const _0x2756ae=_0x7fd5a7;return _0x1467d2[_0x2756ae(0x1d8)](_0x1c1b87[_0x2756ae(0x353)],_0x457964(_0x457964({'key':_0x34b7ef},_0x289c1d(_0x1c1b87,_0x2e04de,_0x3a306a)),_0x148015),(_0x51a322(_0x1c1b87,_0x2e04de)[_0x2756ae(0x225)]||[])[_0x2756ae(0x20d)](function(_0x3af13d,_0x53e5f4){const _0x4e1381=_0x2756ae;return _0x209ac8(_0x3af13d,''[_0x4e1381(0x28b)](_0x34b7ef,'-')[_0x4e1381(0x28b)](_0x1c1b87[_0x4e1381(0x353)],'-')[_0x4e1381(0x28b)](_0x53e5f4),_0x2e04de,void 0x0,_0x3a306a);}));}function _0x289c1d(_0x467942,_0x495d31,_0x3df0d6){const _0x29a73d=_0x7fd5a7;var _0x50bbd0=_0x457964({},_0x467942['attrs']);_0x3df0d6!=null&&_0x3df0d6[_0x29a73d(0x29f)]&&_0x50bbd0['fill']==='colorChannel1'&&(_0x50bbd0[_0x29a73d(0x270)]=_0x3df0d6[_0x29a73d(0x29f)]),_0x467942[_0x29a73d(0x353)]===_0x29a73d(0x3b4)&&_0x50bbd0['id']&&(_0x50bbd0['id']=_0x50bbd0['id']+_0x495d31[_0x29a73d(0x297)]),Object[_0x29a73d(0x2cc)](_0x50bbd0)['forEach'](function(_0x5126b1){const _0x26d19e=_0x29a73d;var _0x4a018e=_0x5126b1[0x0],_0x2b0b27=_0x5126b1[0x1];_0x4a018e===_0x26d19e(0x3b4)&&typeof _0x2b0b27=='string'&&(_0x50bbd0[_0x4a018e]=_0x2b0b27[_0x26d19e(0x34f)](/url\(#(.*)\)/,'url(#$1'[_0x26d19e(0x28b)](_0x495d31[_0x26d19e(0x297)],')')));});var _0x4f0e6d=_0x495d31[_0x29a73d(0x278)];return!_0x4f0e6d||_0x4f0e6d['length']===0x0||(_0x467942[_0x29a73d(0x353)]===_0x29a73d(0x2ba)&&_0x50bbd0[_0x29a73d(0x279)]&&(_0x50bbd0[_0x29a73d(0x279)]=_0x50bbd0[_0x29a73d(0x279)]+_0x495d31['idSuffix']),Object[_0x29a73d(0x2cc)](_0x50bbd0)[_0x29a73d(0x311)](function(_0x179393){const _0x443955=_0x29a73d;var _0x94899d=_0x179393[0x0],_0x3c6d42=_0x179393[0x1];typeof _0x3c6d42==_0x443955(0x337)&&(_0x50bbd0[_0x94899d]=_0x3c6d42[_0x443955(0x34f)](/url\(#(.*)\)/,_0x443955(0x1c9)[_0x443955(0x28b)](_0x495d31[_0x443955(0x297)],')')));})),_0x50bbd0;}function _0x51a322(_0x526405,_0x377ab1){const _0x52acb5=_0x7fd5a7;var _0x57c191,_0x2a25eb=_0x377ab1['defIds'];return!_0x2a25eb||_0x2a25eb['length']===0x0?_0x526405:_0x526405['tag']===_0x52acb5(0x271)&&(!((_0x57c191=_0x526405[_0x52acb5(0x225)])===null||_0x57c191===void 0x0)&&_0x57c191[_0x52acb5(0x2bf)])?_0x457964(_0x457964({},_0x526405),{'children':_0x526405[_0x52acb5(0x225)][_0x52acb5(0x20d)](function(_0x13084f){const _0xa7b045=_0x52acb5;return typeof _0x13084f[_0xa7b045(0x14a)]['id']==_0xa7b045(0x337)&&_0x2a25eb&&_0x2a25eb[_0xa7b045(0x227)](_0x13084f[_0xa7b045(0x14a)]['id'])>-0x1?_0x457964(_0x457964({},_0x13084f),{'attrs':_0x457964(_0x457964({},_0x13084f[_0xa7b045(0x14a)]),{'id':_0x13084f[_0xa7b045(0x14a)]['id']+_0x377ab1[_0xa7b045(0x297)]})}):_0x13084f;})}):_0x526405;}function _0x3e3715(){const _0x416b1f=_0x7fd5a7;return Math[_0x416b1f(0x2aa)]()[_0x416b1f(0x13a)](0x24)[_0x416b1f(0x1bc)](0x2,0x8);}_0x2a08cc[_0x7fd5a7(0x3c4)]='UniverIcon';var _0x23b387={'tag':'svg','attrs':{'fill':_0x7fd5a7(0x2af),'viewBox':_0x7fd5a7(0x13e),'width':_0x7fd5a7(0x153),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x7fd5a7(0x289)},'children':[{'tag':'path','attrs':{'stroke':_0x7fd5a7(0x348),'d':_0x7fd5a7(0x37d),'strokeLinecap':'round','strokeLinejoin':_0x7fd5a7(0x1e5),'strokeWidth':1.2}}]},{'tag':_0x7fd5a7(0x271),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x7fd5a7(0x31e)},'children':[{'tag':'path','attrs':{'fill':_0x7fd5a7(0x135),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x7fd5a7(0x31e)]},_0x4b4a2f=_0x1467d2['forwardRef'](function(_0x343654,_0xb13ac5){const _0x172359=_0x7fd5a7;return _0x1467d2[_0x172359(0x1d8)](_0x2a08cc,Object[_0x172359(0x24b)]({},_0x343654,{'id':_0x172359(0x262),'ref':_0xb13ac5,'icon':_0x23b387}));});_0x4b4a2f[_0x7fd5a7(0x3c4)]=_0x7fd5a7(0x18e);var _0x2f8b3f={'tag':_0x7fd5a7(0x2ee),'attrs':{'fill':_0x7fd5a7(0x2af),'viewBox':_0x7fd5a7(0x314),'width':_0x7fd5a7(0x153),'height':_0x7fd5a7(0x153)},'children':[{'tag':'g','attrs':{'clipPath':_0x7fd5a7(0x3b2)},'children':[{'tag':_0x7fd5a7(0x365),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':'round','strokeLinejoin':_0x7fd5a7(0x1e5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x7fd5a7(0x151),'attrs':{'id':_0x7fd5a7(0x139)},'children':[{'tag':_0x7fd5a7(0x365),'attrs':{'fill':_0x7fd5a7(0x135),'d':_0x7fd5a7(0x20b),'transform':'translate(.97)'}}]}]}],'defIds':[_0x7fd5a7(0x139)]},_0x194d5b=_0x1467d2['forwardRef'](function(_0x23aef3,_0x574e72){const _0x3f1875=_0x7fd5a7;return _0x1467d2['createElement'](_0x2a08cc,Object[_0x3f1875(0x24b)]({},_0x23aef3,{'id':_0x3f1875(0x182),'ref':_0x574e72,'icon':_0x2f8b3f}));});_0x194d5b[_0x7fd5a7(0x3c4)]='OnLineSingle';function _0x281b99(_0x4dfd2d){const _0x34508d=_0x7fd5a7;switch(_0x4dfd2d){case _0x330b41[_0x34508d(0x350)]['OFFLINE']:return _0x34508d(0x37b);case _0x330b41[_0x34508d(0x350)]['CONFLICT']:return _0x34508d(0x204);case _0x330b41[_0x34508d(0x350)]['FETCH_MISS']:return _0x34508d(0x266);case _0x330b41[_0x34508d(0x350)]['NOT_COLLAB']:return _0x34508d(0x358);case _0x330b41[_0x34508d(0x350)][_0x34508d(0x14d)]:case _0x330b41['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x34508d(0x355);case _0x330b41['CollaborationStatus'][_0x34508d(0x1ca)]:case _0x330b41[_0x34508d(0x350)][_0x34508d(0x19d)]:return'collabStatus.synced';}}function _0x513662(_0x2bc4b5){const _0x3768b3=_0x7fd5a7,{status$:_0x3864c8}=_0x2bc4b5,_0x274a7f=_0x27ec40[_0x3768b3(0x324)](_0x3864c8,_0x330b41[_0x3768b3(0x350)][_0x3768b3(0x330)]),_0x28c029=_0x27ec40[_0x3768b3(0x17c)](_0x22a125['LocaleService']),_0x18c61b=_0x27ec40['useDependency'](_0x330b41[_0x3768b3(0x196)]),_0x2fc6bf=_0x274a7f!==_0x330b41[_0x3768b3(0x350)][_0x3768b3(0x30b)],_0x555d5f=_0x28c029['t'](_0x281b99(_0x274a7f)),_0x6b09ac=_0x2fc6bf?_0xeb17c4['jsx'](_0x194d5b,{}):_0xeb17c4[_0x3768b3(0x1e6)](_0x4b4a2f,{}),_0x2eeea2=_0x1467d2['useCallback'](()=>{const _0x317572=_0x3768b3;_0x2fc6bf||_0x18c61b[_0x317572(0x331)]();},[_0x2fc6bf,_0x18c61b]);function _0x8e4fd8(){const _0x4e8b17=_0x3768b3;return _0xeb17c4[_0x4e8b17(0x26d)](_0x4e8b17(0x2e2),{'className':'univer-flex\x20univer-items-center','onClick':_0x2eeea2,'children':[_0xeb17c4[_0x4e8b17(0x1e6)](_0x4e8b17(0x2e2),{'className':_0x56d731[_0x4e8b17(0x352)](_0x4e8b17(0x3a4),{'univer-text-green-500':_0x2fc6bf,'univer-text-red-500':!_0x2fc6bf}),'children':_0x6b09ac}),_0xeb17c4[_0x4e8b17(0x1e6)]('div',{'className':_0x4e8b17(0x231),'children':_0x555d5f})]});}return _0x2fc6bf?_0x8e4fd8():_0xeb17c4[_0x3768b3(0x1e6)](_0x56d731[_0x3768b3(0x31d)],{'title':_0x28c029['t'](_0x3768b3(0x2fc)),'children':_0x8e4fd8()});}var _0x185c9f=Object[_0x7fd5a7(0x1da)],_0x5523d4=(_0x25765a,_0xcbc7b0,_0x2d419d,_0x568193)=>{for(var _0x5b83e8=_0x568193>0x1?void 0x0:_0x568193?_0x185c9f(_0xcbc7b0,_0x2d419d):_0xcbc7b0,_0xeb31cb=_0x25765a['length']-0x1,_0x23388f;_0xeb31cb>=0x0;_0xeb31cb--)(_0x23388f=_0x25765a[_0xeb31cb])&&(_0x5b83e8=_0x23388f(_0x5b83e8)||_0x5b83e8);return _0x5b83e8;},_0x8fd0e1=(_0x52ceb3,_0x486706)=>(_0x1d770e,_0x5b3b2b)=>_0x486706(_0x1d770e,_0x5b3b2b,_0x52ceb3);_0x25a81e[_0x7fd5a7(0x1c8)]=class extends _0x22a125[_0x7fd5a7(0x14e)]{constructor(_0x35319d,_0x24ffac,_0x10337b,_0xcf4707){const _0x39af38=_0x7fd5a7;super(),_0x92a7d(this,_0x39af38(0x35c),new _0x277d09[(_0x39af38(0x257))](_0x330b41[_0x39af38(0x350)]['NOT_COLLAB'])),(this[_0x39af38(0x195)]=_0x35319d,this['_injector']=_0x24ffac,this[_0x39af38(0x2b3)]=_0x10337b,this[_0x39af38(0x19a)]=_0xcf4707,this[_0x39af38(0x191)](),this['_initStatusListener']());}[_0x7fd5a7(0x2e8)](){const _0x18326b=_0x7fd5a7;this['disposeWithMe'](this[_0x18326b(0x195)][_0x18326b(0x2d5)][_0x18326b(0x141)](_0x277d09[_0x18326b(0x2c5)](()=>{const _0x7f8742=_0x18326b,_0x9fce33=this['_univerInstanceService'][_0x7f8742(0x235)]();return _0x9fce33?this[_0x7f8742(0x2b3)][_0x7f8742(0x246)](_0x9fce33['getUnitId']()):_0x277d09['of'](null);}),_0x277d09[_0x18326b(0x2c5)](_0x5ea707=>_0x5ea707?_0x5ea707[_0x18326b(0x329)]:_0x277d09['of'](_0x330b41[_0x18326b(0x350)][_0x18326b(0x330)])))[_0x18326b(0x23e)](_0xfd5879=>{const _0x44c11a=_0x18326b;this[_0x44c11a(0x35c)][_0x44c11a(0x30a)](_0xfd5879);}));}['_initStatusComponent'](){const _0x42ff86=_0x7fd5a7;this[_0x42ff86(0x1b6)](this['_uiPartsService']['registerComponent'](_0x27ec40[_0x42ff86(0x2a6)][_0x42ff86(0x27a)],()=>_0x27ec40['connectInjector'](_0x533639({'status$':this[_0x42ff86(0x35c)][_0x42ff86(0x1a7)]()}),this[_0x42ff86(0x21c)])));}},_0x25a81e[_0x7fd5a7(0x1c8)]=_0x5523d4([_0x8fd0e1(0x0,_0x22a125[_0x7fd5a7(0x239)]),_0x8fd0e1(0x1,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125['Injector'])),_0x8fd0e1(0x2,_0x22a125['Inject'](_0x330b41['CollaborationController'])),_0x8fd0e1(0x3,_0x27ec40[_0x7fd5a7(0x2dc)])],_0x25a81e['DesktopCollaborationStatusDisplayController']);function _0x533639(_0x26f77b){const {status$:_0x5acd4e}=_0x26f77b;return function(){return _0xeb17c4['jsx'](_0x513662,{'status$':_0x5acd4e});};}var _0x5d48f9=Object[_0x7fd5a7(0x1da)],_0x2f0e14=(_0x5d7200,_0x57c4b3,_0xf2882b,_0x5b5270)=>{const _0x2668ed=_0x7fd5a7;for(var _0x46fcc3=_0x5b5270>0x1?void 0x0:_0x5b5270?_0x5d48f9(_0x57c4b3,_0xf2882b):_0x57c4b3,_0x35f901=_0x5d7200[_0x2668ed(0x2bf)]-0x1,_0x102a4d;_0x35f901>=0x0;_0x35f901--)(_0x102a4d=_0x5d7200[_0x35f901])&&(_0x46fcc3=_0x102a4d(_0x46fcc3)||_0x46fcc3);return _0x46fcc3;},_0x2ee739=(_0x5029a5,_0x10ca29)=>(_0x1022be,_0x29da8f)=>_0x10ca29(_0x1022be,_0x29da8f,_0x5029a5);let _0x20564a=class extends _0x22a125[_0x7fd5a7(0x14e)]{constructor(_0x5a7329,_0x495869,_0x47c3d8,_0x2f2c1c,_0x507d7f,_0x5ef33e){const _0x1bdd98=_0x7fd5a7;super(),this['_beforeCloseService']=_0x5a7329,this['_localCacheService']=_0x495869,this[_0x1bdd98(0x214)]=_0x47c3d8,this[_0x1bdd98(0x2d2)]=_0x2f2c1c,this[_0x1bdd98(0x380)]=_0x507d7f,this[_0x1bdd98(0x29a)]=_0x5ef33e,this[_0x1bdd98(0x24f)](),this[_0x1bdd98(0x25a)]();}[_0x7fd5a7(0x24f)](){const _0x3d0f5f=_0x7fd5a7;this[_0x3d0f5f(0x1b6)](this[_0x3d0f5f(0x228)][_0x3d0f5f(0x13c)](()=>{const _0x56c6ae=_0x3d0f5f;if(this['_localCacheService'][_0x56c6ae(0x364)][_0x56c6ae(0x307)])return this['_localeService']['t'](_0x56c6ae(0x34c));}));}[_0x7fd5a7(0x25a)](){const _0x38a484=_0x7fd5a7;this[_0x38a484(0x1b6)](this[_0x38a484(0x214)][_0x38a484(0x180)][_0x38a484(0x23e)](_0x944357=>{const _0x1795ec=_0x38a484;_0x944357['id']===_0x330b41[_0x1795ec(0x20f)][_0x1795ec(0x2cb)]&&this[_0x1795ec(0x2d2)][_0x1795ec(0x27d)]({'type':_0x56d731[_0x1795ec(0x220)][_0x1795ec(0x1e3)],'content':this[_0x1795ec(0x29a)]['t'](_0x1795ec(0x310))}),_0x944357['id']===_0x330b41[_0x1795ec(0x20f)][_0x1795ec(0x3ba)]&&this[_0x1795ec(0x2d2)]['show']({'type':_0x56d731[_0x1795ec(0x220)]['Warning'],'content':this[_0x1795ec(0x29a)]['t'](_0x1795ec(0x1a5))}),_0x944357['id']===_0x330b41['CollaborationUIEventId'][_0x1795ec(0x203)]&&this[_0x1795ec(0x380)][_0x1795ec(0x27d)]({'title':this[_0x1795ec(0x29a)]['t']('permission.title'),'content':this[_0x1795ec(0x29a)]['t'](_0x1795ec(0x1af)),'type':_0x1795ec(0x2c4),'duration':0x0}),_0x944357['id']===_0x330b41['CollaborationUIEventId']['CONFLICT']&&this[_0x1795ec(0x2d2)][_0x1795ec(0x27d)]({'type':_0x56d731[_0x1795ec(0x220)][_0x1795ec(0x299)],'content':this[_0x1795ec(0x29a)]['t'](_0x1795ec(0x1a5))+'('+_0x944357['data']+')'}),_0x944357['id']===_0x330b41[_0x1795ec(0x20f)][_0x1795ec(0x320)]&&this[_0x1795ec(0x2d2)][_0x1795ec(0x27d)]({'type':_0x56d731['MessageType'][_0x1795ec(0x1e3)],'content':this['_localeService']['t'](_0x944357['data']||'')}),_0x944357['id']===_0x330b41[_0x1795ec(0x20f)][_0x1795ec(0x22c)]&&this[_0x1795ec(0x2d2)][_0x1795ec(0x27d)]({'type':_0x56d731[_0x1795ec(0x220)][_0x1795ec(0x1e3)],'content':this[_0x1795ec(0x29a)]['t']('session.will-retry')}),_0x944357['id']===_0x330b41[_0x1795ec(0x20f)]['SOCKET_FAILED']&&this[_0x1795ec(0x2d2)][_0x1795ec(0x27d)]({'type':_0x56d731['MessageType'][_0x1795ec(0x299)],'content':this[_0x1795ec(0x29a)]['t'](_0x1795ec(0x1a1))}),_0x944357['id']===_0x330b41[_0x1795ec(0x20f)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x1795ec(0x27d)]({'type':_0x56d731[_0x1795ec(0x220)]['Error'],'content':this[_0x1795ec(0x29a)]['t'](_0x1795ec(0x19e))});}));}};_0x20564a=_0x2f0e14([_0x2ee739(0x0,_0x27ec40['IBeforeCloseService']),_0x2ee739(0x1,_0x330b41['ILocalCacheService']),_0x2ee739(0x2,_0x22a125['Inject'](_0x330b41[_0x7fd5a7(0x163)])),_0x2ee739(0x3,_0x27ec40['IMessageService']),_0x2ee739(0x4,_0x27ec40['INotificationService']),_0x2ee739(0x5,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x236)]))],_0x20564a);const _0xf7fd6=_0x7fd5a7(0x349),_0x2b9dbe={},_0x305c4b=_0x22a125[_0x7fd5a7(0x208)](_0x7fd5a7(0x1dc));var _0x8ff1e5=Object[_0x7fd5a7(0x1da)],_0x2e360b=(_0x279579,_0x5f3348,_0x530b10,_0x51e4b5)=>{for(var _0x5beed9=_0x51e4b5>0x1?void 0x0:_0x51e4b5?_0x8ff1e5(_0x5f3348,_0x530b10):_0x5f3348,_0x2536b0=_0x279579['length']-0x1,_0x2c2b86;_0x2536b0>=0x0;_0x2536b0--)(_0x2c2b86=_0x279579[_0x2536b0])&&(_0x5beed9=_0x2c2b86(_0x5beed9)||_0x5beed9);return _0x5beed9;},_0xd484e2=(_0x5e53a7,_0x23438b)=>(_0x3ac73a,_0x3e98ec)=>_0x23438b(_0x3ac73a,_0x3e98ec,_0x5e53a7);_0x25a81e[_0x7fd5a7(0x13f)]=class extends _0x22a125['RxDisposable']{constructor(_0x4c16ac,_0x42969e,_0x370f6e,_0x27a0c1,_0x319137){const _0x53945b=_0x7fd5a7;super(),this[_0x53945b(0x2b6)]=_0x4c16ac,this['_logService']=_0x42969e,this['_commandService']=_0x370f6e,this['_dataLoaderService']=_0x27a0c1,_0x319137?_0x319137==null||_0x319137[_0x53945b(0x357)]()[_0x53945b(0x1b7)](()=>this[_0x53945b(0x390)]()):(this['_logService'][_0x53945b(0x34d)](_0x53945b(0x29c),_0x53945b(0x2fb)),this['_init']());}async['_init'](){const _0x58645c=_0x7fd5a7,_0x5480e4=this[_0x58645c(0x2b6)][_0x58645c(0x2d7)](_0x58645c(0x290)),_0x25f6b0=this[_0x58645c(0x2b6)][_0x58645c(0x2d7)](_0x58645c(0x1d5)),_0x5d53ba=this['_urlService'][_0x58645c(0x2d7)](_0x58645c(0x1a6));if(!_0x5480e4||!_0x25f6b0){this[_0x58645c(0x260)][_0x58645c(0x34d)](_0x58645c(0x29c),_0x58645c(0x34e));return;}const _0x5075e7=await this[_0x58645c(0x213)][_0x58645c(0x2b5)](_0x5480e4,Number(_0x25f6b0),_0x5d53ba);_0x5075e7&&_0x5075e7 instanceof _0x22a125['Workbook']&&this[_0x58645c(0x283)](_0x5075e7);}async['_setupSubUnitSync'](_0x44fff0){const _0x27f38b=_0x7fd5a7;await this[_0x27f38b(0x1e1)](_0x44fff0),_0x44fff0['activeSheet$']['pipe'](_0x277d09['takeUntil'](this[_0x27f38b(0x1ec)]))[_0x27f38b(0x23e)](_0x15b4ca=>{_0x15b4ca&&this['_updateURLWithCurrentState'](_0x15b4ca);}),this[_0x27f38b(0x2b6)][_0x27f38b(0x37a)][_0x27f38b(0x141)](_0x277d09[_0x27f38b(0x29e)](this[_0x27f38b(0x1ec)]))[_0x27f38b(0x23e)](()=>this[_0x27f38b(0x1e1)](_0x44fff0));}[_0x7fd5a7(0x188)](_0x33d8ce,_0x4761ec=!0x1){const _0x1fac1b=_0x7fd5a7,_0x55bcbd=this[_0x1fac1b(0x2b6)][_0x1fac1b(0x2d7)]('subunit');_0x33d8ce['getSheetId']()!==_0x55bcbd&&this['_urlService'][_0x1fac1b(0x187)](_0x1fac1b(0x1a6),_0x33d8ce[_0x1fac1b(0x383)](),_0x4761ec);}async[_0x7fd5a7(0x1e1)](_0xdd5d68){const _0x1e241f=_0x7fd5a7;var _0x3c6e8e;const _0x36e9d0=this[_0x1e241f(0x2b6)][_0x1e241f(0x2d7)](_0x1e241f(0x1a6));if(!_0x36e9d0||!_0xdd5d68['getSheetBySheetId'](_0x36e9d0)){const _0xe8d09=_0xdd5d68['getUnhiddenWorksheets']()[0x0],_0x45a903=_0xdd5d68[_0x1e241f(0x323)](_0xe8d09);if(!_0x45a903)return;this['_updateURLWithCurrentState'](_0x45a903,!0x0),await this[_0x1e241f(0x211)][_0x1e241f(0x2d1)](_0x25ff72['SetWorksheetActivateCommand']['id'],{'unitId':_0xdd5d68[_0x1e241f(0x1fe)](),'subUnitId':_0xe8d09});return;}((_0x3c6e8e=_0xdd5d68[_0x1e241f(0x1e0)]())==null?void 0x0:_0x3c6e8e[_0x1e241f(0x383)]())!==_0x36e9d0&&await this[_0x1e241f(0x211)][_0x1e241f(0x2d1)](_0x25ff72[_0x1e241f(0x22d)]['id'],{'unitId':_0xdd5d68[_0x1e241f(0x1fe)](),'subUnitId':_0x36e9d0});}},_0x25a81e[_0x7fd5a7(0x13f)]=_0x2e360b([_0xd484e2(0x0,_0x305c4b),_0xd484e2(0x1,_0x22a125['ILogService']),_0xd484e2(0x2,_0x22a125[_0x7fd5a7(0x2db)]),_0xd484e2(0x3,_0x22a125[_0x7fd5a7(0x3a9)](_0x330b41[_0x7fd5a7(0x2e4)])),_0xd484e2(0x4,_0x22a125[_0x7fd5a7(0x321)](_0x554fb9[_0x7fd5a7(0x1e7)]))],_0x25a81e[_0x7fd5a7(0x13f)]);var _0x4fdf57=Object['getOwnPropertyDescriptor'],_0x1114e0=(_0x4e4f36,_0x5d3cba,_0x277b57,_0xaf7ce7)=>{const _0xf50de5=_0x7fd5a7;for(var _0x5a42ba=_0xaf7ce7>0x1?void 0x0:_0xaf7ce7?_0x4fdf57(_0x5d3cba,_0x277b57):_0x5d3cba,_0x551ae0=_0x4e4f36[_0xf50de5(0x2bf)]-0x1,_0x75c18d;_0x551ae0>=0x0;_0x551ae0--)(_0x75c18d=_0x4e4f36[_0x551ae0])&&(_0x5a42ba=_0x75c18d(_0x5a42ba)||_0x5a42ba);return _0x5a42ba;},_0x54aaaa=(_0x329439,_0x393003)=>(_0x546a8d,_0x4dee6b)=>_0x393003(_0x546a8d,_0x4dee6b,_0x329439);let _0x30327d=class{constructor(_0x14619c,_0x24324c,_0x174f4b){const _0x4293dc=_0x7fd5a7;this[_0x4293dc(0x21c)]=_0x14619c,this['_transformService']=_0x24324c,this[_0x4293dc(0x1ee)]=_0x174f4b;}['transformIMECache'](_0x3a2f58){const _0x1c5dec=_0x7fd5a7;this[_0x1c5dec(0x1df)](_0x3a2f58),this['_transformPreviousActiveRange'](_0x3a2f58);}[_0x7fd5a7(0x2f0)](_0x2563c9){const _0x59888d=_0x7fd5a7,{unitID:_0x11742e}=_0x2563c9,_0x5825dd=this[_0x59888d(0x1ee)]['getRenderById'](_0x11742e)['with'](_0x5572fe[_0x59888d(0x219)]),{redoCache:_0x13eabc}=_0x5825dd[_0x59888d(0x37e)]();if(_0x13eabc[_0x59888d(0x2bf)]===0x0)return _0x2563c9;let _0xfd33f8=_0x22a125[_0x59888d(0x35b)][_0x59888d(0x1ab)](_0x2563c9[_0x59888d(0x2f8)][0x0]);for(let _0x1a55bf=0x0;_0x1a55bf<_0x13eabc[_0x59888d(0x2bf)];_0x1a55bf++){const _0x5031cd={'id':_0x59888d(0x340),'params':{..._0x13eabc[_0x1a55bf]}},_0x8f9816=this[_0x59888d(0x3c3)][_0x59888d(0x2cd)](_0xfd33f8,_0x5031cd,!0x1);if(_0x2c7893[_0x59888d(0x14c)](_0x8f9816))throw _0x8f9816['error'];_0xfd33f8=_0x8f9816[_0x59888d(0x23a)];}return{..._0x22a125[_0x59888d(0x35b)][_0x59888d(0x1ab)](_0x2563c9),'mutations':[_0xfd33f8]};}[_0x7fd5a7(0x1df)](_0x32bb59){const _0x243d5f=_0x7fd5a7,{unitID:_0x3535b4}=_0x32bb59,_0x206943=this['_renderManagerService']['getRenderById'](_0x3535b4)[_0x243d5f(0x35d)](_0x5572fe[_0x243d5f(0x219)]),{undoCache:_0x539d96,redoCache:_0x12c87a}=_0x206943[_0x243d5f(0x37e)]();if(_0x539d96[_0x243d5f(0x2bf)]===0x0||_0x12c87a[_0x243d5f(0x2bf)]===0x0)return;const _0x400c42=[],_0x1c10f4=[];let _0x1cbfdc=_0x22a125['Tools'][_0x243d5f(0x1ab)](_0x32bb59[_0x243d5f(0x2f8)][0x0]),_0x3c8f0d=_0x22a125[_0x243d5f(0x35b)]['deepClone'](_0x32bb59[_0x243d5f(0x2f8)][0x0]);for(let _0x301460=_0x539d96[_0x243d5f(0x2bf)]-0x1;_0x301460>=0x0;_0x301460--){const _0x24a826={'id':_0x243d5f(0x340),'params':{..._0x539d96[_0x301460]}},_0x391d05={'id':'doc.mutation.rich-text-editing','params':{..._0x12c87a[_0x301460]}},_0x283b9a=this[_0x243d5f(0x3c3)][_0x243d5f(0x2cd)](_0x1cbfdc,_0x24a826,!0x1),_0x488e06=this[_0x243d5f(0x3c3)][_0x243d5f(0x2cd)](_0x3c8f0d,_0x391d05,!0x1);if(_0x2c7893[_0x243d5f(0x14c)](_0x283b9a))throw _0x283b9a[_0x243d5f(0x2c4)];if(_0x2c7893[_0x243d5f(0x14c)](_0x488e06))throw _0x488e06[_0x243d5f(0x2c4)];_0x400c42[_0x243d5f(0x3b1)](_0x283b9a[_0x243d5f(0x280)][_0x243d5f(0x16f)]),_0x1c10f4[_0x243d5f(0x3b1)](_0x488e06[_0x243d5f(0x280)][_0x243d5f(0x16f)]),_0x1cbfdc=_0x283b9a[_0x243d5f(0x23a)],_0x3c8f0d=_0x488e06[_0x243d5f(0x23a)];}_0x206943[_0x243d5f(0x284)]({'undoCache':_0x400c42,'redoCache':_0x1c10f4});}[_0x7fd5a7(0x2f3)](_0xa8d79){const _0x5e19a4=_0x7fd5a7,{unitID:_0x2fe0e9}=_0xa8d79,_0x48c24c=this[_0x5e19a4(0x1ee)][_0x5e19a4(0x1cf)](_0x2fe0e9)[_0x5e19a4(0x35d)](_0x5572fe[_0x5e19a4(0x219)]),_0xf11398=_0x48c24c[_0x5e19a4(0x181)]();if(_0xf11398==null)return;const _0x3b1928=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xa8d79['unitID'],'actions':null,'textRanges':[_0xf11398]}}],_0x403f6e=this['_transformService']['transformMutationsWithChangeset'](_0xa8d79,_0x3b1928);if(!_0x2c7893['isTransformMutationsWithChangesetSuccess'](_0x403f6e))throw _0x403f6e[_0x5e19a4(0x2c4)];const _0xcde2a4=_0x403f6e[_0x5e19a4(0x280)][0x0][_0x5e19a4(0x16f)]['textRanges'];Array[_0x5e19a4(0x3a3)](_0xcde2a4)&&_0xcde2a4[_0x5e19a4(0x2bf)]&&_0x48c24c[_0x5e19a4(0x15e)](_0xcde2a4[0x0]);}};_0x30327d=_0x1114e0([_0x54aaaa(0x0,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x319)])),_0x54aaaa(0x1,_0x2c7893['ITransformService']),_0x54aaaa(0x2,_0x2fdb88[_0x7fd5a7(0x2ef)])],_0x30327d);var _0x113c3e=Object['getOwnPropertyDescriptor'],_0xe48f51=(_0x2e4ee0,_0x4bbdbd,_0x1a35e0,_0xf1cff6)=>{const _0x48ff56=_0x7fd5a7;for(var _0x30ba27=_0xf1cff6>0x1?void 0x0:_0xf1cff6?_0x113c3e(_0x4bbdbd,_0x1a35e0):_0x4bbdbd,_0x392600=_0x2e4ee0[_0x48ff56(0x2bf)]-0x1,_0x331f63;_0x392600>=0x0;_0x392600--)(_0x331f63=_0x2e4ee0[_0x392600])&&(_0x30ba27=_0x331f63(_0x30ba27)||_0x30ba27);return _0x30ba27;},_0x19db80=(_0x2cb8c8,_0x4d3545)=>(_0x2b5dd2,_0x1d4795)=>_0x4d3545(_0x2b5dd2,_0x1d4795,_0x2cb8c8);let _0x1ea1e8=class{constructor(_0x30180c,_0x55c785,_0x5ee124){const _0x3ee9ab=_0x7fd5a7;this[_0x3ee9ab(0x21c)]=_0x30180c,this['_transformService']=_0x55c785,this[_0x3ee9ab(0x2ac)]=_0x5ee124;}[_0x7fd5a7(0x1e8)](_0x2f6071){const _0x271d12=_0x7fd5a7;this[_0x271d12(0x32c)](_0x2f6071);}[_0x7fd5a7(0x2f0)](_0x4a7f36){const _0x3f690b=_0x7fd5a7,{unitID:_0x5f7fd4}=_0x4a7f36,{collaboration:_0x1cafca}=this[_0x3f690b(0x2ac)]['getStateCache'](_0x5f7fd4);if(_0x1cafca[_0x3f690b(0x2bf)]===0x0)return _0x4a7f36;let _0x46f6ba=_0x22a125['Tools'][_0x3f690b(0x1ab)](_0x4a7f36[_0x3f690b(0x2f8)][0x0]);for(let _0x1c5344=0x0;_0x1c5344<_0x1cafca[_0x3f690b(0x2bf)];_0x1c5344++){const _0x54371f={'id':_0x3f690b(0x340),'params':{'unitId':_0x1cafca[_0x1c5344]['unitId'],..._0x1cafca[_0x1c5344][_0x3f690b(0x3ad)]}},_0x23e089=this[_0x3f690b(0x3c3)]['transformMutation'](_0x46f6ba,_0x54371f,!0x1);if(_0x2c7893[_0x3f690b(0x14c)](_0x23e089))throw _0x23e089['error'];_0x46f6ba=_0x23e089['m1Prime'];}return{..._0x22a125['Tools'][_0x3f690b(0x1ab)](_0x4a7f36),'mutations':[_0x46f6ba]};}[_0x7fd5a7(0x32c)](_0x47a8d6){const _0x33fa61=_0x7fd5a7,{unitID:_0x3a0ac4}=_0x47a8d6,{history:_0x291995,collaboration:_0x56352d}=this[_0x33fa61(0x2ac)]['getStateCache'](_0x3a0ac4);if(_0x291995[_0x33fa61(0x2bf)]===0x0&&_0x56352d[_0x33fa61(0x2bf)]===0x0)return;const _0x40a9ad=[],_0x25053d=[];let _0x3cc6d2=_0x22a125[_0x33fa61(0x35b)][_0x33fa61(0x1ab)](_0x47a8d6[_0x33fa61(0x2f8)][0x0]),_0x1e38d3=_0x22a125[_0x33fa61(0x35b)][_0x33fa61(0x1ab)](_0x47a8d6[_0x33fa61(0x2f8)][0x0]);for(let _0x18b0ef=_0x291995['length']-0x1;_0x18b0ef>=0x0;_0x18b0ef--){const _0x273535={'id':_0x33fa61(0x340),'params':{'unitId':_0x291995[_0x18b0ef][_0x33fa61(0x263)],..._0x291995[_0x18b0ef]['undoState']}},_0x40f9fb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x291995[_0x18b0ef][_0x33fa61(0x263)],..._0x291995[_0x18b0ef][_0x33fa61(0x3ad)]}},_0x3ce2ce=this[_0x33fa61(0x3c3)][_0x33fa61(0x2cd)](_0x3cc6d2,_0x273535,!0x1),_0x38958e=this[_0x33fa61(0x3c3)]['transformMutation'](_0x1e38d3,_0x40f9fb,!0x1);if(_0x2c7893[_0x33fa61(0x14c)](_0x3ce2ce))throw _0x3ce2ce[_0x33fa61(0x2c4)];if(_0x2c7893[_0x33fa61(0x14c)](_0x38958e))throw _0x38958e['error'];_0x40a9ad['unshift']({..._0x291995[_0x18b0ef],'undoState':_0x3ce2ce[_0x33fa61(0x280)]['params'],'redoState':_0x38958e[_0x33fa61(0x280)][_0x33fa61(0x16f)]}),_0x3cc6d2=_0x3ce2ce[_0x33fa61(0x23a)],_0x1e38d3=_0x38958e[_0x33fa61(0x23a)];}_0x3cc6d2=_0x22a125['Tools'][_0x33fa61(0x1ab)](_0x47a8d6[_0x33fa61(0x2f8)][0x0]),_0x1e38d3=_0x22a125['Tools'][_0x33fa61(0x1ab)](_0x47a8d6[_0x33fa61(0x2f8)][0x0]);for(let _0x49f965=_0x56352d[_0x33fa61(0x2bf)]-0x1;_0x49f965>=0x0;_0x49f965--){const _0x3d1b53={'id':_0x33fa61(0x340),'params':{'unitId':_0x56352d[_0x49f965]['unitId'],..._0x56352d[_0x49f965][_0x33fa61(0x247)]}},_0x17bcf4={'id':_0x33fa61(0x340),'params':{'unitId':_0x56352d[_0x49f965][_0x33fa61(0x263)],..._0x56352d[_0x49f965]['redoState']}},_0x1dca51=this[_0x33fa61(0x3c3)][_0x33fa61(0x2cd)](_0x3cc6d2,_0x3d1b53,!0x1),_0xef6879=this['_transformService']['transformMutation'](_0x1e38d3,_0x17bcf4,!0x1);if(_0x2c7893[_0x33fa61(0x14c)](_0x1dca51))throw _0x1dca51[_0x33fa61(0x2c4)];if(_0x2c7893['isTransformMutationFailure'](_0xef6879))throw _0xef6879[_0x33fa61(0x2c4)];_0x25053d[_0x33fa61(0x3b1)]({..._0x56352d[_0x49f965],'undoState':_0x1dca51[_0x33fa61(0x280)][_0x33fa61(0x16f)],'redoState':_0xef6879[_0x33fa61(0x280)]['params']}),_0x3cc6d2=_0x1dca51['m1Prime'],_0x1e38d3=_0xef6879[_0x33fa61(0x23a)];}this[_0x33fa61(0x2ac)][_0x33fa61(0x28d)](_0x3a0ac4,{'history':_0x40a9ad,'collaboration':_0x25053d});}};_0x1ea1e8=_0xe48f51([_0x19db80(0x0,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x319)])),_0x19db80(0x1,_0x2c7893['ITransformService']),_0x19db80(0x2,_0x22a125[_0x7fd5a7(0x3a9)](_0x5572fe['DocStateChangeManagerService']))],_0x1ea1e8);var _0x4413a5=Object[_0x7fd5a7(0x1da)],_0x257998=(_0x26579f,_0x589d85,_0x9a4721,_0xca4013)=>{const _0x18195b=_0x7fd5a7;for(var _0x4d594a=_0xca4013>0x1?void 0x0:_0xca4013?_0x4413a5(_0x589d85,_0x9a4721):_0x589d85,_0x55f5a6=_0x26579f[_0x18195b(0x2bf)]-0x1,_0x45e3cd;_0x55f5a6>=0x0;_0x55f5a6--)(_0x45e3cd=_0x26579f[_0x55f5a6])&&(_0x4d594a=_0x45e3cd(_0x4d594a)||_0x4d594a);return _0x4d594a;},_0x1c21a6=(_0x1f42f0,_0x56654d)=>(_0x5d1819,_0x44c6a4)=>_0x56654d(_0x5d1819,_0x44c6a4,_0x1f42f0);let _0x1c3935=class{constructor(_0x458699,_0x20a070){const _0x38b2fb=_0x7fd5a7;this[_0x38b2fb(0x21c)]=_0x458699,this[_0x38b2fb(0x3c3)]=_0x20a070;}[_0x7fd5a7(0x32b)](_0x58f17d){const _0xfff417=_0x7fd5a7;var _0xf90d2;const _0x2847c8=this[_0xfff417(0x21c)]['get'](_0x18992d[_0xfff417(0x2ce)]),_0x8ae933=(_0xf90d2=_0x2847c8[_0xfff417(0x2c8)]())!=null?_0xf90d2:[];if(_0x8ae933[_0xfff417(0x2bf)]===0x0)return;const _0x3d6ee3=_0x58f17d[_0xfff417(0x28f)],_0x20db1f=[{'id':_0xfff417(0x340),'params':{'unitId':_0x3d6ee3,'actions':null,'textRanges':_0x8ae933}}],_0x4e9bc6=this['_transformService'][_0xfff417(0x1f8)](_0x58f17d,_0x20db1f);if(!_0x2c7893[_0xfff417(0x1cb)](_0x4e9bc6))throw _0x4e9bc6[_0xfff417(0x2c4)];const _0x3cd9e9=_0x4e9bc6['m2Prime'][0x0][_0xfff417(0x16f)]['textRanges'];Array[_0xfff417(0x3a3)](_0x3cd9e9)&&_0x3cd9e9[_0xfff417(0x2bf)]&&_0x2847c8[_0xfff417(0x1d9)](_0x3cd9e9,{'unitId':_0x3d6ee3,'subUnitId':_0x3d6ee3},!0x1);}};_0x1c3935=_0x257998([_0x1c21a6(0x0,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x319)])),_0x1c21a6(0x1,_0x2c7893['ITransformService'])],_0x1c3935);var _0x5dacc4=Object[_0x7fd5a7(0x1da)],_0x41673f=(_0x23ea3f,_0x38c3ef,_0x45ec72,_0x35db61)=>{const _0x24b905=_0x7fd5a7;for(var _0x32e5e9=_0x35db61>0x1?void 0x0:_0x35db61?_0x5dacc4(_0x38c3ef,_0x45ec72):_0x38c3ef,_0x11fe3d=_0x23ea3f[_0x24b905(0x2bf)]-0x1,_0xce2c62;_0x11fe3d>=0x0;_0x11fe3d--)(_0xce2c62=_0x23ea3f[_0x11fe3d])&&(_0x32e5e9=_0xce2c62(_0x32e5e9)||_0x32e5e9);return _0x32e5e9;},_0x25c315=(_0x1a53de,_0x39b756)=>(_0x180321,_0x1a1d88)=>_0x39b756(_0x180321,_0x1a1d88,_0x1a53de);let _0x29ef42=class extends _0x22a125[_0x7fd5a7(0x14e)]{constructor(_0x122e90,_0x2e8f1d,_0x3334ca,_0x39dda6,_0x2163dd,_0x1ae156,_0x49d154,_0x425868){const _0x34f7fc=_0x7fd5a7;super(),_0x92a7d(this,_0x34f7fc(0x35c),new _0x277d09[(_0x34f7fc(0x257))](_0x330b41[_0x34f7fc(0x350)][_0x34f7fc(0x330)])),(this[_0x34f7fc(0x2ac)]=_0x122e90,this[_0x34f7fc(0x2b3)]=_0x2e8f1d,this[_0x34f7fc(0x312)]=_0x3334ca,this[_0x34f7fc(0x38c)]=_0x39dda6,this['_docTransformSelectionsService']=_0x2163dd,this['_docSyncEditingCollabCursorService']=_0x1ae156,this['_messageService']=_0x49d154,this['_localeService']=_0x425868,this['_initEntityListener']());}['_initEntityListener'](){const _0x3a49a9=_0x7fd5a7;this[_0x3a49a9(0x1b6)](this[_0x3a49a9(0x2b3)]['entityInit$']['subscribe'](_0x44962a=>{const _0x416234=_0x3a49a9,_0x505510=this[_0x416234(0x2ac)][_0x416234(0x22a)][_0x416234(0x23e)](_0x41ec7b=>{const _0x311a3e=_0x416234;if(_0x41ec7b==null)return;const {unitId:_0xcb4e8f,redoState:_0x34f2f9,commandId:_0xad2ada}=_0x41ec7b;if(_0xcb4e8f!==_0x44962a[_0x311a3e(0x28f)])return;const _0x1d64a2={'id':_0xad2ada,'type':_0x22a125[_0x311a3e(0x37c)][_0x311a3e(0x143)],'params':{'unitId':_0xcb4e8f,'actions':_0x34f2f9[_0x311a3e(0x1aa)],'textRanges':null}};_0x44962a[_0x311a3e(0x3c6)](_0x1d64a2);});if(_0x44962a['disposeWithMe'](_0x505510),_0x44962a instanceof _0x330b41[_0x416234(0x142)]){const _0x374f63={'onTransformIME':_0x2070ed=>this[_0x416234(0x312)][_0x416234(0x1d1)](_0x2070ed),'onTransformState':_0x2e3de3=>this['_docTransformStateCacheService'][_0x416234(0x1e8)](_0x2e3de3),'onTransformSelections':_0x29019c=>this[_0x416234(0x3b3)][_0x416234(0x32b)](_0x29019c),'onSyncEditingCollabCursor':_0x4aae24=>this[_0x416234(0x252)][_0x416234(0x373)](_0x4aae24),'onTransformRemoteChangesetByIMECache':_0x240df7=>this[_0x416234(0x312)]['transformRemoteChangeset'](_0x240df7),'onTransformRemoteChangesetByStateCache':_0x48fd44=>this[_0x416234(0x38c)]['transformRemoteChangeset'](_0x48fd44)};_0x44962a[_0x416234(0x343)](_0x374f63);}}));}};_0x29ef42=_0x41673f([_0x25c315(0x0,_0x22a125['Inject'](_0x5572fe[_0x7fd5a7(0x254)])),_0x25c315(0x1,_0x22a125[_0x7fd5a7(0x3a9)](_0x330b41[_0x7fd5a7(0x1c4)])),_0x25c315(0x2,_0x22a125['Inject'](_0x30327d)),_0x25c315(0x3,_0x22a125[_0x7fd5a7(0x3a9)](_0x1ea1e8)),_0x25c315(0x4,_0x22a125['Inject'](_0x1c3935)),_0x25c315(0x5,_0x22a125[_0x7fd5a7(0x3a9)](_0x424077)),_0x25c315(0x6,_0x27ec40[_0x7fd5a7(0x160)]),_0x25c315(0x7,_0x22a125['Inject'](_0x22a125[_0x7fd5a7(0x236)]))],_0x29ef42);var _0x39ad67=Object[_0x7fd5a7(0x1da)],_0x19b3e0=(_0x1f3cfa,_0x51fe04,_0x39ac37,_0x299520)=>{for(var _0x18d003=_0x299520>0x1?void 0x0:_0x299520?_0x39ad67(_0x51fe04,_0x39ac37):_0x51fe04,_0x1a7895=_0x1f3cfa['length']-0x1,_0x37c71b;_0x1a7895>=0x0;_0x1a7895--)(_0x37c71b=_0x1f3cfa[_0x1a7895])&&(_0x18d003=_0x37c71b(_0x18d003)||_0x18d003);return _0x18d003;},_0x60b1ab=(_0x2c85d0,_0x5682fa)=>(_0x4b2009,_0x35e1b1)=>_0x5682fa(_0x4b2009,_0x35e1b1,_0x2c85d0);let _0x3d2834=class extends _0x22a125[_0x7fd5a7(0x14e)]{constructor(_0x2f01f3,_0x8ed38c,_0x362b6f){const _0xa6837c=_0x7fd5a7;super(),_0x92a7d(this,_0xa6837c(0x175),new Map()),_0x92a7d(this,_0xa6837c(0x36e),new Map()),_0x92a7d(this,'_disabled',!0x1),(this[_0xa6837c(0x3c1)]=_0x2f01f3,this[_0xa6837c(0x202)]=_0x8ed38c,this['_revisionService']=_0x362b6f);}[_0x7fd5a7(0x1b9)](){const _0x29661d=_0x7fd5a7;this[_0x29661d(0x168)]=!0x0;}[_0x7fd5a7(0x3c5)](){const _0x280057=_0x7fd5a7;this[_0x280057(0x168)]=!0x1;}get[_0x7fd5a7(0x364)](){return this['_saveTaskMap'];}[_0x7fd5a7(0x259)](){const _0x4a9161=_0x7fd5a7;this['exhaustSavingTask']()[_0x4a9161(0x1b7)](()=>super[_0x4a9161(0x259)]());}async[_0x7fd5a7(0x1f4)](_0x1c959a){const _0x39aa48=_0x7fd5a7;return this['_disabled']?null:this[_0x39aa48(0x202)][_0x39aa48(0x2b2)](_0x330b41[_0x39aa48(0x186)](_0x1c959a));}async[_0x7fd5a7(0x375)](_0x483a18,_0x3fa593){const _0x19736b=_0x7fd5a7;return!!this[_0x19736b(0x202)][_0x19736b(0x2b1)](_0x483a18,_0x3fa593);}[_0x7fd5a7(0x362)](_0x44fb07,_0x4372b4,_0x348bb4,_0x4bf605){const _0x42e907=_0x7fd5a7,_0x27b710=this[_0x42e907(0x33b)][_0x42e907(0x1ef)](_0x44fb07);this[_0x42e907(0x175)][_0x42e907(0x384)](_0x44fb07,{'unitID':_0x44fb07,'type':_0x4372b4,'awaitingChangeset':_0x348bb4,'mutations':_0x4bf605,'rev':_0x27b710}),this[_0x42e907(0x36e)][_0x42e907(0x2f1)](_0x44fb07)||this['_scheduleSaving'](_0x44fb07);}[_0x7fd5a7(0x361)](_0x41d0cf){const _0x20d020=_0x7fd5a7,_0x2ae527=this[_0x20d020(0x134)]();_0x2ae527===0x0?this[_0x20d020(0x344)](_0x41d0cf):this[_0x20d020(0x36e)]['set'](_0x41d0cf,setTimeout(()=>this[_0x20d020(0x344)](_0x41d0cf),_0x2ae527));}[_0x7fd5a7(0x134)](){const _0x748cd0=_0x7fd5a7;var _0x28425b;return(_0x28425b=this[_0x748cd0(0x3c1)][_0x748cd0(0x39e)](_0x330b41[_0x748cd0(0x1c5)]))!=null?_0x28425b:_0x330b41[_0x748cd0(0x34b)];}[_0x7fd5a7(0x344)](_0x450c45){const _0x5f1e21=_0x7fd5a7,_0x867a24=this['_saveTaskMap']['get'](_0x450c45);return _0x867a24!==void 0x0&&window[_0x5f1e21(0x1d4)](_0x867a24),this[_0x5f1e21(0x202)][_0x5f1e21(0x2b1)](_0x330b41[_0x5f1e21(0x186)](_0x450c45),this[_0x5f1e21(0x175)]['get'](_0x450c45))[_0x5f1e21(0x1b7)](()=>this[_0x5f1e21(0x36e)][_0x5f1e21(0x265)](_0x450c45));}async[_0x7fd5a7(0x22f)](){const _0x1e8700=_0x7fd5a7,_0x32e4b2=[];this['_saveTaskMap']['forEach']((_0x5dec52,_0x2620e9)=>{const _0x17fbb7=_0x4e86;window[_0x17fbb7(0x1d4)](_0x5dec52),_0x32e4b2[_0x17fbb7(0x2ea)](this[_0x17fbb7(0x344)](_0x2620e9)[_0x17fbb7(0x1b7)](()=>{const _0x31ce9f=_0x17fbb7;this[_0x31ce9f(0x36e)]['delete'](_0x2620e9);}));}),await Promise[_0x1e8700(0x18a)](_0x32e4b2);}};_0x3d2834=_0x19b3e0([_0x60b1ab(0x0,_0x22a125['IConfigService']),_0x60b1ab(0x1,_0x22a125[_0x7fd5a7(0x285)]),_0x60b1ab(0x2,_0x22a125[_0x7fd5a7(0x3a9)](_0x2c7893['RevisionService']))],_0x3d2834);class _0x1dbe62 extends _0x22a125[_0x7fd5a7(0x24d)]{constructor(){const _0x22ce43=_0x7fd5a7;super(),_0x92a7d(this,_0x22ce43(0x37a)),this['urlChange$']=_0x277d09['fromEvent'](window,'popstate')[_0x22ce43(0x141)](_0x277d09[_0x22ce43(0x29e)](this[_0x22ce43(0x1ec)]),_0x277d09[_0x22ce43(0x218)](0x1),_0x277d09[_0x22ce43(0x3a8)](void 0x0));}['setParam'](_0x5c53b5,_0x2e006c,_0x1be947=!0x1){const _0x1828a3=_0x7fd5a7,_0x1edd5c=new URL(window[_0x1828a3(0x30d)][_0x1828a3(0x3bc)]);_0x1edd5c[_0x1828a3(0x2c3)]['set'](_0x5c53b5,_0x2e006c),_0x1be947?window[_0x1828a3(0x146)]['replaceState']('','',_0x1edd5c['toString']()):window[_0x1828a3(0x146)][_0x1828a3(0x245)]('','',_0x1edd5c['toString']());}['removeParam'](_0x3c6819,_0x3a5e1d=!0x1){const _0x424b2f=_0x7fd5a7,_0x51a1bd=new URL(window[_0x424b2f(0x30d)][_0x424b2f(0x3bc)]);_0x51a1bd[_0x424b2f(0x2c3)][_0x424b2f(0x265)](_0x3c6819),_0x3a5e1d?window[_0x424b2f(0x146)][_0x424b2f(0x303)]('','',_0x51a1bd[_0x424b2f(0x13a)]()):window[_0x424b2f(0x146)][_0x424b2f(0x245)]('','',_0x51a1bd['toString']());}['getParam'](_0x5a93f2){const _0x446d9d=_0x7fd5a7;var _0x3d8b33;return(_0x3d8b33=new URL(window[_0x446d9d(0x30d)][_0x446d9d(0x3bc)])[_0x446d9d(0x2c3)]['get'](_0x5a93f2))!=null?_0x3d8b33:void 0x0;}}var _0x2a3e40=Object['defineProperty'],_0x4b3bd0=Object[_0x7fd5a7(0x1da)],_0x15598c=(_0x5ca8c3,_0x4651e7,_0x1e8a62)=>_0x4651e7 in _0x5ca8c3?_0x2a3e40(_0x5ca8c3,_0x4651e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e8a62}):_0x5ca8c3[_0x4651e7]=_0x1e8a62,_0x5d2ea4=(_0x4daa3b,_0x5955f4,_0xbf7e9c,_0x4e5e30)=>{const _0x298cc5=_0x7fd5a7;for(var _0x4d8a38=_0x4e5e30>0x1?void 0x0:_0x4e5e30?_0x4b3bd0(_0x5955f4,_0xbf7e9c):_0x5955f4,_0x3b0f84=_0x4daa3b[_0x298cc5(0x2bf)]-0x1,_0x379192;_0x3b0f84>=0x0;_0x3b0f84--)(_0x379192=_0x4daa3b[_0x3b0f84])&&(_0x4d8a38=_0x379192(_0x4d8a38)||_0x4d8a38);return _0x4d8a38;},_0x565617=(_0xf013d6,_0x52abe0)=>(_0x409018,_0x1bee75)=>_0x52abe0(_0x409018,_0x1bee75,_0xf013d6),_0x3dc3ba=(_0x201e32,_0x5482d2,_0x139fd1)=>_0x15598c(_0x201e32,_0x5482d2+'',_0x139fd1);const _0x17257e=_0x7fd5a7(0x2e9);_0x25a81e[_0x7fd5a7(0x316)]=class extends _0x22a125['Plugin']{constructor(_0x4e5186=_0x2b9dbe,_0x30436b,_0x2f8fa0,_0x57cfbf){const _0x20baa8=_0x7fd5a7;super(),this[_0x20baa8(0x179)]=_0x4e5186,this[_0x20baa8(0x1ee)]=_0x30436b,this['_injector']=_0x2f8fa0,this[_0x20baa8(0x3c1)]=_0x57cfbf;const {..._0x5cf967}=_0x22a125['merge']({},_0x2b9dbe,this[_0x20baa8(0x179)]);this[_0x20baa8(0x3c1)]['setConfig'](_0xf7fd6,_0x5cf967);}[_0x7fd5a7(0x2b4)](){const _0x39bc07=_0x7fd5a7;this[_0x39bc07(0x249)](),this[_0x39bc07(0x273)]();}[_0x7fd5a7(0x32a)](){const _0x3e6d9c=_0x7fd5a7;this[_0x3e6d9c(0x18c)]();}[_0x7fd5a7(0x249)](){const _0x50bbc6=_0x7fd5a7;var _0x2405a4;const _0x1d7493=[[_0x5b5b43],[_0x1c3935],[_0x30327d],[_0x1ea1e8],[_0x424077],[_0x305c4b,{'useClass':_0x1dbe62}],[_0x26a40e[_0x50bbc6(0x31c)],{'useClass':_0x26a40e[_0x50bbc6(0x2e7)]}],[_0x330b41[_0x50bbc6(0x159)],{'useClass':_0x3d2834}],[_0x25a81e['DesktopCollaborationStatusDisplayController']],[_0x29ef42],[_0x20564a],[_0x2cdbd9],[_0x1446f4],[_0x25a81e[_0x50bbc6(0x13f)]]];_0x22a125[_0x50bbc6(0x1e4)](this[_0x50bbc6(0x21c)],_0x22a125[_0x50bbc6(0x26c)](_0x1d7493,(_0x2405a4=this[_0x50bbc6(0x179)])==null?void 0x0:_0x2405a4[_0x50bbc6(0x3ac)]));}[_0x7fd5a7(0x18c)](){const _0x3f4b16=_0x7fd5a7;this[_0x3f4b16(0x1b6)](this[_0x3f4b16(0x1ee)][_0x3f4b16(0x2ca)](_0x22a125[_0x3f4b16(0x300)][_0x3f4b16(0x1ae)],[_0x25d5eb])),this['disposeWithMe'](this[_0x3f4b16(0x1ee)]['registerRenderModule'](_0x22a125[_0x3f4b16(0x300)][_0x3f4b16(0x18b)],[_0x3169ab]));}[_0x7fd5a7(0x273)](){const _0x3ff85f=_0x7fd5a7;_0x22a125['touchDependencies'](this[_0x3ff85f(0x21c)],[[_0x2cdbd9],[_0x25a81e[_0x3ff85f(0x1c8)]],[_0x29ef42],[_0x20564a],[_0x25a81e[_0x3ff85f(0x13f)]]]);}},_0x3dc3ba(_0x25a81e['UniverCollaborationClientUIPlugin'],_0x7fd5a7(0x1f5),_0x17257e),_0x25a81e[_0x7fd5a7(0x316)]=_0x5d2ea4([_0x22a125[_0x7fd5a7(0x3aa)](_0x330b41[_0x7fd5a7(0x199)]),_0x565617(0x1,_0x2fdb88[_0x7fd5a7(0x2ef)]),_0x565617(0x2,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x319)])),_0x565617(0x3,_0x22a125[_0x7fd5a7(0x396)])],_0x25a81e[_0x7fd5a7(0x316)]);var _0x5a9a43=Object[_0x7fd5a7(0x1da)],_0x37f023=(_0x5267f9,_0x4a27ff,_0x3e9a9b,_0x46d485)=>{const _0x385ba0=_0x7fd5a7;for(var _0x47f5f1=_0x46d485>0x1?void 0x0:_0x46d485?_0x5a9a43(_0x4a27ff,_0x3e9a9b):_0x4a27ff,_0x55d5f2=_0x5267f9[_0x385ba0(0x2bf)]-0x1,_0x57b160;_0x55d5f2>=0x0;_0x55d5f2--)(_0x57b160=_0x5267f9[_0x55d5f2])&&(_0x47f5f1=_0x57b160(_0x47f5f1)||_0x47f5f1);return _0x47f5f1;},_0xa6d67f=(_0x35a727,_0x340e7c)=>(_0x1cd646,_0x1c7a2c)=>_0x340e7c(_0x1cd646,_0x1c7a2c,_0x35a727);_0x25a81e['BrowserCollaborationSocketService']=class extends _0x330b41['CollaborationSocketService']{constructor(_0xcef16b,_0x55c263,_0x58e41a,_0x419f31,_0xccf4a6){super(_0xcef16b,_0x55c263,_0x58e41a,_0x419f31,_0xccf4a6);}async['createSocket'](_0x172e54){const _0x50b427=_0x7fd5a7,_0x429e37=await this[_0x50b427(0x38e)](),_0x9ae1a9=this['_createSocketURL'](_0x172e54,_0x429e37);return this[_0x50b427(0x2f5)](_0x9ae1a9);}['_createSocketURL'](_0x34ef1d,_0x3cc27e){const _0x312970=_0x7fd5a7,_0x234ff6=typeof window>'u'?new URL(_0x34ef1d):new URL(_0x34ef1d,window['location'][_0x312970(0x274)]);_0x234ff6[_0x312970(0x2c3)][_0x312970(0x384)](_0x312970(0x33e),_0x3cc27e);const _0xb21214=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x312970(0x334)]);return _0xb21214['get'](_0x312970(0x378))&&_0x234ff6[_0x312970(0x2c3)][_0x312970(0x384)]('runId',_0xb21214['get'](_0x312970(0x378))),_0x234ff6[_0x312970(0x13a)]();}async[_0x7fd5a7(0x38e)](){const _0x248c10=_0x7fd5a7;var _0x51f28b,_0x315ee0,_0x792b49;const _0x3ae1f3=this[_0x248c10(0x3c1)][_0x248c10(0x39e)](_0x330b41[_0x248c10(0x1b4)]),_0x2518bd=(_0x51f28b=_0x3ae1f3==null?void 0x0:_0x3ae1f3[_0x248c10(0x2ec)])!=null?_0x51f28b:_0x330b41['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x792b49=(_0x315ee0=(await this[_0x248c10(0x25b)]['get'](_0x2518bd,{'headers':{'Content-Type':_0x248c10(0x1a8)}}))['body'])==null?void 0x0:_0x315ee0[_0x248c10(0x268)])!=null?_0x792b49:'';}},_0x25a81e[_0x7fd5a7(0x15d)]=_0x37f023([_0xa6d67f(0x0,_0x22a125[_0x7fd5a7(0x3a9)](_0x22a125[_0x7fd5a7(0x319)])),_0xa6d67f(0x1,_0x22a125[_0x7fd5a7(0x3a9)](_0x26a40e['HTTPService'])),_0xa6d67f(0x2,_0x22a125[_0x7fd5a7(0x396)]),_0xa6d67f(0x3,_0x22a125['ILogService']),_0xa6d67f(0x4,_0x2c7893[_0x7fd5a7(0x27b)])],_0x25a81e[_0x7fd5a7(0x15d)]);const _0x22076d=0x7530,_0x5150a0=_0x7fd5a7(0x269);class _0x388bc4 extends _0x22a125[_0x7fd5a7(0x14e)]{constructor(){const _0x2504d5=_0x7fd5a7;super(),_0x92a7d(this,_0x2504d5(0x256),_0x22a125[_0x2504d5(0x230)]()),_0x92a7d(this,'_selfUnitIDs',new Set()),_0x92a7d(this,'_unitOnClients',new Map()),_0x92a7d(this,_0x2504d5(0x33a),null),_0x92a7d(this,_0x2504d5(0x1bf),new Map()),_0x92a7d(this,_0x2504d5(0x38d),new Map()),this[_0x2504d5(0x390)]();}[_0x7fd5a7(0x259)](){const _0x32a6c4=_0x7fd5a7;super[_0x32a6c4(0x259)](),this[_0x32a6c4(0x1bf)][_0x32a6c4(0x311)]((_0xdd9073,_0x4a37e8)=>this[_0x32a6c4(0x24e)](_0x4a37e8)),this[_0x32a6c4(0x33a)]&&window[_0x32a6c4(0x212)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x283941){const _0x12cc14=_0x7fd5a7;return this[_0x12cc14(0x27f)](_0x283941)['pipe'](_0x277d09['distinctUntilChanged']());}['editingUnit'](_0x56dab4){const _0x344530=_0x7fd5a7;this[_0x344530(0x291)][_0x344530(0x307)]===0x0&&this[_0x344530(0x1b2)](),this[_0x344530(0x291)][_0x344530(0x34a)](_0x56dab4),this[_0x344530(0x35f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x56dab4],'isForwarded':!0x1});}['disposeUnit'](_0x396f3b){const _0x5e46a1=_0x7fd5a7;this['_selfUnitIDs'][_0x5e46a1(0x265)](_0x396f3b),this[_0x5e46a1(0x291)]['size']===0x0&&this[_0x5e46a1(0x33a)]&&window[_0x5e46a1(0x212)](this[_0x5e46a1(0x33a)]);}['_init'](){const _0x53c813=_0x7fd5a7;this[_0x53c813(0x1b6)](_0x22a125[_0x53c813(0x399)](_0x277d09[_0x53c813(0x2f9)](window,_0x53c813(0x170))[_0x53c813(0x23e)](_0x5cf454=>{const _0x2c26d4=_0x53c813;if(_0x5cf454[_0x2c26d4(0x347)]!==_0x5150a0||!_0x5cf454[_0x2c26d4(0x1de)])return;const _0x24e595=JSON[_0x2c26d4(0x1d3)](_0x5cf454[_0x2c26d4(0x1de)]);this[_0x2c26d4(0x277)](_0x24e595);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x53c813(0x256)],'unitIDs':Array[_0x53c813(0x2a0)](this['_selfUnitIDs'])}));}[_0x7fd5a7(0x277)](_0x2ff0a0){const _0x3fb6f9=_0x7fd5a7;switch(_0x2ff0a0[_0x3fb6f9(0x1d5)]){case 0x0:this[_0x3fb6f9(0x391)](_0x2ff0a0);break;case 0x1:this[_0x3fb6f9(0x1dd)](_0x2ff0a0);break;case 0x2:this[_0x3fb6f9(0x282)](_0x2ff0a0);break;}}[_0x7fd5a7(0x391)](_0x36bb50){const _0x5e8325=_0x7fd5a7,{unitIDs:_0x83d7d2,memberID:_0x11c631,isForwarded:_0x328959}=_0x36bb50;_0x83d7d2[_0x5e8325(0x311)](_0x18dd27=>{const _0x5012b4=_0x5e8325;if(!_0x328959&&this[_0x5012b4(0x13d)][_0x5012b4(0x2f1)](_0x18dd27)&&this[_0x5012b4(0x27f)](_0x18dd27)[_0x5012b4(0x30a)](_0x330b41[_0x5012b4(0x2c7)][_0x5012b4(0x39c)]),!this['_unitOnClients'][_0x5012b4(0x2f1)](_0x18dd27)||!this[_0x5012b4(0x13d)]['get'](_0x18dd27)[_0x5012b4(0x2f1)](_0x11c631)){const _0x2f4d75=this[_0x5012b4(0x13d)][_0x5012b4(0x3ae)](_0x18dd27)||new Set();_0x2f4d75[_0x5012b4(0x34a)](_0x11c631),this[_0x5012b4(0x13d)][_0x5012b4(0x384)](_0x18dd27,_0x2f4d75),this[_0x5012b4(0x296)](_0x11c631);}}),_0x328959||this['_send']({'type':0x0,'memberID':this[_0x5e8325(0x256)],'unitIDs':[...this[_0x5e8325(0x291)]],'isForwarded':!0x0});}[_0x7fd5a7(0x296)](_0x5caf44){const _0x23a506=_0x7fd5a7;this[_0x23a506(0x24e)](_0x5caf44);const _0xc2a3f0=window[_0x23a506(0x2be)](()=>{const _0x29d2ce=_0x23a506;this['_unitOnClients'][_0x29d2ce(0x311)](_0x16af5f=>{const _0x2fbbc0=_0x29d2ce;_0x16af5f[_0x2fbbc0(0x265)](_0x5caf44);});},_0x22076d*0x2);this['_clearOtherTimers']['set'](_0x5caf44,_0xc2a3f0);}[_0x7fd5a7(0x24e)](_0x13eef9){const _0x2c88c8=_0x7fd5a7;if(this[_0x2c88c8(0x1bf)][_0x2c88c8(0x2f1)](_0x13eef9)){const _0x5c7b63=this[_0x2c88c8(0x1bf)][_0x2c88c8(0x3ae)](_0x13eef9);_0x5c7b63&&window[_0x2c88c8(0x1d4)](_0x5c7b63),this['_clearOtherTimers'][_0x2c88c8(0x384)](_0x13eef9,null);}}['_handleLeaveEvent'](_0xd85a76){const _0x108bf7=_0x7fd5a7,{memberID:_0x3ae1e7,unitIDs:_0x4c455d}=_0xd85a76;_0x4c455d[_0x108bf7(0x311)](_0x1205f0=>{const _0x1e7845=_0x108bf7;var _0x42d436;const _0x1ba599=this[_0x1e7845(0x13d)][_0x1e7845(0x3ae)](_0x1205f0);_0x1ba599&&(_0x1ba599['delete'](_0x3ae1e7),(_0x42d436=this[_0x1e7845(0x27f)](_0x1205f0))==null||_0x42d436['next'](_0x1ba599[_0x1e7845(0x307)]===0x0?_0x330b41[_0x1e7845(0x2c7)]['NO_OTHER_CLIENTS_EDITING']:_0x330b41[_0x1e7845(0x2c7)][_0x1e7845(0x39c)]));}),this[_0x108bf7(0x24e)](_0x3ae1e7);}[_0x7fd5a7(0x282)](_0x3a01f2){const _0x413e80=_0x7fd5a7;this[_0x413e80(0x296)](_0x3a01f2[_0x413e80(0x1c6)]);}[_0x7fd5a7(0x35f)](_0x40cf38){const _0x44984b=_0x7fd5a7;localStorage[_0x44984b(0x2b1)](_0x5150a0,JSON[_0x44984b(0x26f)](_0x40cf38));}[_0x7fd5a7(0x1b2)](){const _0x2b829a=_0x7fd5a7;this[_0x2b829a(0x33a)]=window[_0x2b829a(0x393)](()=>{const _0x290e47=_0x2b829a;this[_0x290e47(0x35f)]({'type':0x2,'memberID':this[_0x290e47(0x256)]});},_0x22076d);}[_0x7fd5a7(0x27f)](_0x10a011){const _0x14f796=_0x7fd5a7;return this['_unitStatus'][_0x14f796(0x2f1)](_0x10a011)||this[_0x14f796(0x38d)][_0x14f796(0x384)](_0x10a011,new _0x277d09[(_0x14f796(0x257))](_0x330b41[_0x14f796(0x2c7)][_0x14f796(0x333)])),this[_0x14f796(0x38d)][_0x14f796(0x3ae)](_0x10a011);}}var _0x545f65=(_0x3c5bb9=>(_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x322)]=0x0]='UNDEFINED',_0x3c5bb9[_0x3c5bb9['OK']=0x1]='OK',_0x3c5bb9[_0x3c5bb9['INTERNAL_ERROR']=0x2]=_0x7fd5a7(0x35e),_0x3c5bb9[_0x3c5bb9['PERMISSION_DENIED']=0x3]=_0x7fd5a7(0x203),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x224)]=0x4]='NOT_FOUND',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x35a)]=0x5]=_0x7fd5a7(0x35a),_0x3c5bb9[_0x3c5bb9['ALREADY_EXISTS']=0x6]=_0x7fd5a7(0x244),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x23b)]=0x7]=_0x7fd5a7(0x23b),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x29b)]=0x8]=_0x7fd5a7(0x29b),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x389)]=0x9]=_0x7fd5a7(0x389),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x335)]=0xa]=_0x7fd5a7(0x335),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x28c)]=0x1389]=_0x7fd5a7(0x28c),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x39a)]=0x1771]=_0x7fd5a7(0x39a),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x2c0)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x298)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x19b)]=0x1b59]='APPLY_REJECT',_0x3c5bb9[_0x3c5bb9['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x7fd5a7(0x31f),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x2b7)]=0x1b5b]=_0x7fd5a7(0x2b7),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x1f0)]=0x1b5c]=_0x7fd5a7(0x1f0),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x234)]=0x1b5d]=_0x7fd5a7(0x234),_0x3c5bb9[_0x3c5bb9['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x7fd5a7(0x25d),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x3bf)]=0x2329]=_0x7fd5a7(0x3bf),_0x3c5bb9[_0x3c5bb9['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x308)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x237)]=0x232c]=_0x7fd5a7(0x237),_0x3c5bb9[_0x3c5bb9['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x3c5bb9[_0x3c5bb9['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x7fd5a7(0x133),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x145)]=0x2712]=_0x7fd5a7(0x145),_0x3c5bb9[_0x3c5bb9['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x7fd5a7(0x2d3),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x302)]=0x2714]=_0x7fd5a7(0x302),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x2bc)]=0x271a]=_0x7fd5a7(0x2bc),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x20a)]=0x271b]=_0x7fd5a7(0x20a),_0x3c5bb9[_0x3c5bb9['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3c5bb9[_0x3c5bb9['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x7fd5a7(0x2a7),_0x3c5bb9[_0x3c5bb9['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x7fd5a7(0x33d),_0x3c5bb9[_0x3c5bb9['YUUMI_AI_RUN_FAILED']=0x271f]=_0x7fd5a7(0x3c0),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x354)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x381)]=0x2ee1]=_0x7fd5a7(0x381),_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x1f1)]=0x2ee2]=_0x7fd5a7(0x1f1),_0x3c5bb9[_0x3c5bb9['INVITE_CODE_REQUIRED']=0x2ee3]=_0x7fd5a7(0x15b),_0x3c5bb9[_0x3c5bb9['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x38a)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x169)]=0x32c9]=_0x7fd5a7(0x169),_0x3c5bb9[_0x3c5bb9['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x3bd)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x3c5bb9[_0x3c5bb9[_0x7fd5a7(0x22e)]=-0x1]='UNRECOGNIZED',_0x3c5bb9))(_0x545f65||{}),_0x11ae9d=Object[_0x7fd5a7(0x1da)],_0x1a9a7a=(_0x5a4a7f,_0x349499,_0xe0d8a5,_0x349f74)=>{const _0x2dfdaf=_0x7fd5a7;for(var _0x473a3b=_0x349f74>0x1?void 0x0:_0x349f74?_0x11ae9d(_0x349499,_0xe0d8a5):_0x349499,_0x5437df=_0x5a4a7f[_0x2dfdaf(0x2bf)]-0x1,_0x1750ff;_0x5437df>=0x0;_0x5437df--)(_0x1750ff=_0x5a4a7f[_0x5437df])&&(_0x473a3b=_0x1750ff(_0x473a3b)||_0x473a3b);return _0x473a3b;},_0x5edd8d=(_0x293686,_0xc5234b)=>(_0x2ebfd2,_0xfef8ff)=>_0xc5234b(_0x2ebfd2,_0xfef8ff,_0x293686);_0x25a81e[_0x7fd5a7(0x248)]=class extends _0x22a125[_0x7fd5a7(0x14e)]{constructor(_0x1808fa,_0x1aaefc,_0x318cbd){const _0x475d7f=_0x7fd5a7;super(),this[_0x475d7f(0x397)]=_0x1808fa,this[_0x475d7f(0x25b)]=_0x1aaefc,this[_0x475d7f(0x3c1)]=_0x318cbd;}async[_0x7fd5a7(0x189)](_0x4dfd87,_0xf6f47a,_0x4fd816,..._0x398775){const _0x1fe279=_0x7fd5a7;var _0x33e4d7,_0x4c7a41,_0x812db0,_0x5d8fe8;const _0xf44a25=this[_0x1fe279(0x397)][_0x1fe279(0x235)]();if(!_0xf44a25)throw new Error(_0x1fe279(0x2fa));const _0x490f8e=((_0x33e4d7=this['_configService']['getConfig'](_0x330b41['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x33e4d7:_0x330b41[_0x1fe279(0x13b)])+'/'+_0x4dfd87+'/run/'+_0xf6f47a,_0x1161ba=new URL(window[_0x1fe279(0x30d)][_0x1fe279(0x3bc)]),_0x2e167c={'scriptId':_0x4dfd87,'runId':(_0x4c7a41=_0x1161ba[_0x1fe279(0x2c3)][_0x1fe279(0x3ae)](_0x1fe279(0x378)))!=null?_0x4c7a41:'','function':_0xf6f47a,'unitId':_0xf44a25[_0x1fe279(0x1fe)](),'argsOfFunction':JSON[_0x1fe279(0x26f)](_0x398775),'invokeId':(_0x812db0=_0x4fd816[_0x1fe279(0x20c)])!=null?_0x812db0:'','executionId':(_0x5d8fe8=_0x4fd816[_0x1fe279(0x190)])!=null?_0x5d8fe8:''};try{const _0x5cfcec=await this[_0x1fe279(0x25b)][_0x1fe279(0x369)](_0x490f8e,{'body':_0x2e167c});return _0x5cfcec[_0x1fe279(0x318)][_0x1fe279(0x2c4)]&&_0x5cfcec[_0x1fe279(0x318)]['error'][_0x1fe279(0x1fa)]!==_0x545f65['OK']?'Failed':_0x5cfcec[_0x1fe279(0x318)][_0x1fe279(0x339)];}catch{return _0x1fe279(0x15c);}}},_0x25a81e[_0x7fd5a7(0x248)]=_0x1a9a7a([_0x5edd8d(0x0,_0x22a125[_0x7fd5a7(0x239)]),_0x5edd8d(0x1,_0x22a125[_0x7fd5a7(0x3a9)](_0x26a40e[_0x7fd5a7(0x2d8)])),_0x5edd8d(0x2,_0x22a125['IConfigService'])],_0x25a81e['RemoteUniscriptService']),_0x25a81e['CollaborationStatusDisplay']=_0x513662,_0x25a81e[_0x7fd5a7(0x1a0)]=_0x305c4b,_0x25a81e[_0x7fd5a7(0x1ff)]=_0x21086f,_0x25a81e[_0x7fd5a7(0x1d0)]=_0x388bc4,_0x25a81e['WebURLService']=_0x1dbe62,Object[_0x7fd5a7(0x309)](_0x25a81e,Symbol[_0x7fd5a7(0x2b0)],{'value':_0x7fd5a7(0x306)});}));
1
+ function _0x45fd(_0x4035d2,_0x323b65){const _0x565804=_0x5658();return _0x45fd=function(_0x45fdc9,_0x5a584c){_0x45fdc9=_0x45fdc9-0x16e;let _0x4fd549=_0x565804[_0x45fdc9];return _0x4fd549;},_0x45fd(_0x4035d2,_0x323b65);}function _0x5658(){const _0xa90ddb=['M0\x200H16V16H0z','round','AWAITING','runId','getMemberID','onRendered','RichTextEditingMutation','onStarting','addClipboardHook','disposeUnit','startRow','@univerjs/engine-render','getColor','_startDocCollabCursor','...','string','_revisionService','getRangePointData','INVALID_INVITE_CODE','status$','LOCAL_CACHE_INTERVAL','CollaborationController','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collaborationController','_textBubble','toString','TEXT','getUnitId','displayName','with','DocCollaborationEntity','ISnapshotServerService','_renderManagerService','touchDependencies','_docSkeletonManagerService','idSuffix','WebBrowserSingleActiveUnitService','INVITE_CODE_REQUIRED','_drawAnchor','height','session.will-retry','pipe','NodePositionConvertToCursor','getUnhiddenWorksheets','source','onMouseMove','_univerInstanceService','engine','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','transformSelections','YUUMI_UNABLE_LOAD_URL','Disposable','yellow.400','handleInsertRow','wsSessionTicketUrl','_handleEvent','registerRefRange','getMember','measureText','setInterval','ISocketService','LICENSE_DISTRO_REJECTED','RemoveColCommandId','UNIVER_DOC','createInstance','black','_init','UniverDocs','collabCursorState$','SHEET_VIEWPORT_KEY','YUUMI_RATE_OVER_LIMIT','SetDocZoomRatioOperation','defineProperty','_initStatusComponent','entries','runRefRangeMutations','flatMap','exhaustSavingTask','OFFLINE','MOBILE_HAS_BEEN_BOUND','getVpScrollXYInfoByPosToVp','useRef','deepClone','debounceTime','colorChannel1','DisposableCollection','rxjs','replace','_instanceService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','icon','Warning','FromArray','endColumn','setItem','memberID','_status$','history','requireSession','INVALID_ARGUMENT','_initResize','_httpService','init','collab-client.tooltip.reconnect','MessageType','text','UPDATE_CURSOR','mask','@univerjs/network','IDocClipboardService','_configService','rxjs/operators','Injector','call','InsertRowCommandId','_cachedData','entityInit$','column','hasOwnProperty','getParam','@univerjs/docs','EffectRefRangId','split','getRenderById','shareReplay','complete','SetSelectionsOperation','location','onCommandExecuted','takeUntil','_initCommandExecutedListener','OTHER_CLIENTS_EDITING','range','contains','addEventListener','@univerjs/rpc','_cursorInfo$','3051000oEKHHY','eventID','isTransformMutationsWithChangesetSuccess','1em','show','registerComponent','UNDEFINED','loadOfflineData','getConfig','_disabled','_refreshCollabCursors','unitID','296280SfzDev','newValue','_scene','UniverInstanceType','InsertRangeMoveRightCommandId','_scheduleHeartbeat','APPLY_REVISION_CONFILICT','_roomMembers$','Error','_transformHistoryAndStateStack','onPointerEnter$','onPointerLeave$','toRgbString','_sheetSkeletonManagerService','BuiltInUIPart','hovered','Vector2','NodePositionConvertToRectRange','_updateSubUnitFromURLParams','124025iYwIdt','min','m2Prime','_registerRenderDependencies','lineTo','restore','_eventUnsubscribe','ILogService','_docTransformIMECacheService','combineLatest','_session','redoState','addObject','_id','MemberService','USER_NOT_INVITED_CODE','197468dxckBR','none','reconnect','then','SheetsSelectionsService','evenodd','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_docClipboardService','_getSheetObject','_shapes','generateRandomId','_drawTextRange','_entityInit$','ticket','_onRefRangeChange','labelPosition','JOIN_ROOM_FAILED','_anchor','EMAIL_HAS_BEEN_BOUND','_heartbeatTimer','_toggleOffline','extend','getSheetId','transformMutation','setShapeProps','APPLY_REJECT','handleInsertCol','@univerjs/drawing','TRANSFORM_CHANGE_OBSERVABLE_TYPE','type','makeDirty','handleInsertRangeMoveDown','_uiPartsService','InsertColCommandId','_initDependencies','_updateCollabCursors','@univerjs/design','_document','IRenderManagerService','exports','backgroundColor','_beforeCloseService','executeCommand','LICENSE_EXPORT_SIZE_EXCEEDED','univer-flex\x20univer-mr-2\x20univer-text-xl','collaboration-client-ui.config','_cursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','selection','findNodePositionByCharIndex','OTHER_CLIENT_EDITING','path','UniverCollaborationClientPlugin','HEADER_MENU','save','RECT','whenReady','toStringTag','setTimeout','rgba(255,\x20255,\x20255,\x200.01)','getStateCache','_unitStatus','654276YnYCCP','Tools','has','undoState','ranges','toDisposable','addHandlerCallback','CONNECTOR_DATA_TOO_LARGE','subscribeEvent','_scheduleSaving','_collaborationUIEventService','data','arc','getCurrent','transform','subunit','UniverEngineRender','useCallback','getItem','YUUMI_ASYNCIO_CANCELLED','useDependency','_selfUnitIDs','transformByState','_getSessionTicket','_localCacheService','APPLY_PERMISSION_DENIED','purple.300','unshift','selections','UniverProCollaborationClientUi','DataLoaderService','react/jsx-runtime','registerRenderModule','_injector','invokeId','_assignedColors','BrowserCollaborationSocketService','updateOfflineData','_getMergeRange','DocSelectionManagerService','UniverCollaborationClientUIPlugin','CollaborationStatus','svg','dispose','_collabSessionService','SheetCollabCursorShape','SNAPSHOT_HAS_BEEN_REMOVED','Inject','registerBeforeClose','@univerjs/engine-formula','INotificationService','get','SYNCED','_scheduleClearOtherTimer','connectInjector','SUBMIT_CHANGESET_TIMEOUT','moveTo','saveOfflineData','Unknown\x20user','UniverProCollaborationClient','HTTPService','forwardRef','_docTransformStateCacheService','DocSkeletonManagerService','syncEditingCollabCursor','ColorKit','_drawRectRange','_online','getFocusedUnit','event$','0\x200\x2016\x2016','ONLINE','transformStateCache','/run/','PERMISSION_DENIED','roomMembers$','@univerjs/ui','_collabCursorController','isActive','_toggleOnline','ITransformService','UnitStatus','IMessageService','CommandType','disposeWithMe','getUniverSheetInstance','propertyIsEnumerable','YUUMI_NO_CUBOID_FOR_QUESTION','body','font','LICENSE_IMPORT_SIZE_EXCEEDED','_range','_handleJoinEvent','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_initEntityListener','fromEvent','prototype','replaceState','send','IConfigService','switchMap','_localeService','collaboration.single-unit.warning','clearInterval','NOT_COLLAB','onPointerMove$','currentTheme$','tag','LOGIN_FAILED','WECHAT_HAS_BEEN_BOUND','getTypeOfUnitAdded$','Failed','_removeCollabCursors','DOC_RANGE_TYPE','@univerjs/docs-ui','defs','blue.400','_color','CollaborationDataLoaderController','[CollaborationDataLoaderController]','width','isTransformMutationFailure','setAlpha','_logService','addObjects','react','search','@univerjs-pro/collaboration','CollaborationSessionService','_initStatusListener','LICENSE_MAX_UNITS_EXCEEDED','React','BehaviorSubject','DesktopCollaborationStatusDisplayController','delete','fill','className','defIds','disableLocalCache','getCollabCursors$','ACTIVE_UNIT_EVENT_CHANNEL','unitId','UniverIcon','_transformService','_initEvent','closePath','urlChange$','_setupSubUnitSync','_urlService','_saveTaskMap','m1Prime','roomMembers','_themeService','_syncEditingCollabCursorService','_lastPointer','Subject','setParam','RefRangeService','href','jsx','getCurrentSelections','_localStorageService','sessionStatus$','TEXT_RANGE_LAYER_INDEX','symbol','UniverUi','YUUMI_AI_RUN_FAILED','NO_OTHER_CLIENTS_EDITING','DependentOn','stringify','univerjs-icon\x20univerjs-icon-','fromEventSubject','transformMutationsWithChangeset','concat','some','IImageIoService','createIdentifier','triggerDblclick','_config','clearTimeout','map','createSocket','TOO_MANY_REQUESTS','on-line-single','getAncestorScale','INVITE_CODE_ALREADY_BOUND','merge','_hideTimer','handleIRemoveCol','_memberService','filter','PENDING','add','LocaleService','_render','error','_docTransformSelectionsService','AWAITING_WITH_PENDING','setStateCache','trim','_cursorShapes','runOnServer','ThemeService','off-line-single','loadUnit','getColorFromTheme','Rect','assign','name','drawWith','_removeClearOtherTimer','getSheetObject','VIEW_MAIN','subscribe','collab-text-anchor-','debug','apply','collabStatus.notCollab','SessionStatus','_createSocketURL','fillText','enableLocalCache','onLocalMutation','_cursors','getOwnPropertyDescriptor','UniverRpc','activeSheet$','UNAUTHENTICATED','_draw','attrs','_labelPosition','_refRangeService','UNRECOGNIZED','_saveCache','_context','getValue','_docStateChangeManagerService','IUIPartsService','_updateURLWithCurrentState','executionId','RegularPolygon','subUnitId','_send','MUTATION','UniverSheets','_transformPreviousActiveRange','distinctUntilChanged','INVITE_CODE_HAS_BEEN_UES','off-line-single_clip0_910_343','dispose$','values','PY_RUNTIME_SCRIPT_ERROR','xlink:href','removeParam','startColumn','collabStatus.offline','forEach','createElement','mutations','focused$','SNAPSHOT_INVALID_SNAPSHOT','ILocalCacheService','_notificationService','asObservable','_name','origin','WebSocketService','ICommandService','_commandService','div','DocIMEInputManagerService','mergeOverrideWithDependencies','override','textRanges','_handleHeartbeatEvent','_hovered','cursorInfo','cursorInfo$','collaboration.closeRoom','_getAnchorBounding','DeleteRangeMoveUpCommandId','indexOf','_docSyncEditingCollabCursorService','USERS_LEAVE','startsWith','throttleTime','size','_messageService','operators','getActiveSheet','UniverCore','getCellPositionByOffset','getTypeOfUnitDisposed$','3mHfKZs','RevisionService','hide','_entities','row','onTransformChange$','_backgroundColor','Shape','push','isArray','fillStyle','getUnitStatus$','unsubscribe','_onCursorDelete','color','jiqing.500','_docSkeleton','InsertRangeMoveDownCommandId','COLORS','COMPLETION_FINISHED','max','getDocRanges','set','getUndoRedoMutationParamsCache','RemoveRowCommandId','doc.mutation.rich-text-editing','find','unit','@univerjs/sheets-ui','getCoordByCell','APPLY_DUPLICATED','RxDisposable','all','APPLY_NON_SEQUENTIAL_REVISION','CollaborationEvent','searchParams','handleIRemoveRow','_onCursorUpdate','FETCH_MISS','DocStateChangeManagerService','INTERNAL_ERROR','Optional','getCurrentRevOfUnit','@univerjs-pro/collaboration-client','substring','getCurrentUnitForType','session.connection-failed','length','key','_clearOtherTimers','_colorIndex','_transformUndoRedoStack','ALREADY_EXISTS','16JvUQTr','_colorAssignService','_registerDependencies','bottom','red.300','collab-text-range-','getMergeData','imageSourceType','WebURLService','children','UniverDesign','CONFLICT','UniverDocsUi','current','OnLineSingle','from','OffLineSingle','CollaborationUIEventId','_hover','actions','SOCKET_FAILED_RETRY','_collabCursorState$','1201011EFUONK','function','on-line-single_clip0_910_349','params','popstate','_anchorDot','getCollabEntity$','DeleteRangeMoveLeftCommandId','random','transformIMECache','_unitOnClients','#fff','translate(.97)','debounce','assignAColorForMemberID','getSheetBySheetId','_getSaveTimeout','transformRemoteChangeset','docStateChange$','next','_ensureSubject','UNIVER_SHEET','currentColor','85797GOgkko','IUniverInstanceService','pushState','jsxs','beginPath','handleDeleteRangeMoveUp','@univerjs/core','_setupBeforeClosingHandler','_getScale','RemoteUniscriptService','registerDependencies','_updateLocalCursor','getOwnPropertySymbols','DEFAULT_WS_SESSION_TICKET_URL','ENSURE_SNAPSHOT_EXECUTION','UniverSheetsUi','_startSheetCollabCursor','SOCKET_FAILED','deserializeRangeWithSheet','CHANGESET_REVISION_CONFILICT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'];_0x5658=function(){return _0xa90ddb;};return _0x5658();}(function(_0x105fd2,_0x2ebb57){const _0x464770=_0x45fd,_0x576af2=_0x105fd2();while(!![]){try{const _0x54196a=-parseInt(_0x464770(0x381))/0x1+parseInt(_0x464770(0x1fa))/0x2+-parseInt(_0x464770(0x31f))/0x3*(-parseInt(_0x464770(0x1bb))/0x4)+-parseInt(_0x464770(0x1ab))/0x5+-parseInt(_0x464770(0x198))/0x6+parseInt(_0x464770(0x36a))/0x7*(parseInt(_0x464770(0x354))/0x8)+-parseInt(_0x464770(0x18c))/0x9;if(_0x54196a===_0x2ebb57)break;else _0x576af2['push'](_0x576af2['shift']());}catch(_0x48d2a4){_0x576af2['push'](_0x576af2['shift']());}}}(_0x5658,0x35dfd),function(_0x580677,_0x151470){const _0x440033=_0x45fd;typeof exports=='object'&&typeof module<'u'?_0x151470(exports,require('@univerjs-pro/collaboration-client'),require(_0x440033(0x387)),require(_0x440033(0x3a1)),require('@univerjs/network'),require('@univerjs/docs-ui'),require(_0x440033(0x1d6)),require('rxjs'),require(_0x440033(0x17b)),require(_0x440033(0x279)),require(_0x440033(0x22b)),require('@univerjs/sheets'),require(_0x440033(0x172)),require(_0x440033(0x33b)),require('react/jsx-runtime'),require(_0x440033(0x246)),require(_0x440033(0x1df)),require('react'),require(_0x440033(0x18a))):typeof define==_0x440033(0x36b)&&define['amd']?define([_0x440033(0x1e2),_0x440033(0x34a),_0x440033(0x387),_0x440033(0x3a1),_0x440033(0x16f),_0x440033(0x26c),_0x440033(0x1d6),'rxjs','@univerjs/docs','@univerjs-pro/collaboration',_0x440033(0x22b),'@univerjs/sheets',_0x440033(0x172),'@univerjs/sheets-ui',_0x440033(0x219),_0x440033(0x246),_0x440033(0x1df),_0x440033(0x277),_0x440033(0x18a)],_0x151470):(_0x580677=typeof globalThis<'u'?globalThis:_0x580677||self,_0x151470(_0x580677[_0x440033(0x217)]={},_0x580677[_0x440033(0x235)],_0x580677[_0x440033(0x31c)],_0x580677[_0x440033(0x20a)],_0x580677['UniverNetwork'],_0x580677[_0x440033(0x360)],_0x580677['UniverDrawing'],_0x580677['rxjs'],_0x580677[_0x440033(0x3d9)],_0x580677['UniverProCollaboration'],_0x580677['UniverEngineFormula'],_0x580677[_0x440033(0x2ee)],_0x580677[_0x440033(0x3ec)][_0x440033(0x31a)],_0x580677[_0x440033(0x390)],_0x580677['React'],_0x580677[_0x440033(0x29f)],_0x580677[_0x440033(0x35e)],_0x580677[_0x440033(0x27d)],_0x580677[_0x440033(0x2db)]));}(this,function(_0x420e4b,_0x505ca1,_0x2a357a,_0x4dd679,_0x4e7e7b,_0x32c769,_0x302ef1,_0x224c35,_0x1d4864,_0x8d16e0,_0x17ecc0,_0xb393d1,_0xf527a8,_0x5eb834,_0x40a1df,_0xbe19f3,_0x21e5c5,_0x5982ca,_0x215223){'use strict';const _0x50d4f7=_0x45fd;var _0x549868=Object[_0x50d4f7(0x3de)],_0x58c1b5=(_0x1792ce,_0x2d862b,_0x920766)=>_0x2d862b in _0x1792ce?_0x549868(_0x1792ce,_0x2d862b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x920766}):_0x1792ce[_0x2d862b]=_0x920766,_0x1bb9f9=(_0x28b971,_0x35af34,_0x29768d)=>_0x58c1b5(_0x28b971,typeof _0x35af34!=_0x50d4f7(0x29e)?_0x35af34+'':_0x35af34,_0x29768d),_0x2b90fe=Object['getOwnPropertyDescriptor'],_0x575bc4=(_0xa7e1d2,_0x2495e1,_0x2bf588,_0x52c734)=>{const _0x36e6e6=_0x50d4f7;for(var _0x4efdff=_0x52c734>0x1?void 0x0:_0x52c734?_0x2b90fe(_0x2495e1,_0x2bf588):_0x2495e1,_0x3da559=_0xa7e1d2[_0x36e6e6(0x34e)]-0x1,_0xcd5051;_0x3da559>=0x0;_0x3da559--)(_0xcd5051=_0xa7e1d2[_0x3da559])&&(_0x4efdff=_0xcd5051(_0x4efdff)||_0x4efdff);return _0x4efdff;},_0xf620b1=(_0x442c27,_0x26a1f1)=>(_0x1758c8,_0x5c80fe)=>_0x26a1f1(_0x1758c8,_0x5c80fe,_0x442c27);let _0x1e2940=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0x48fae0,_0x2e7ffe){const _0x17e698=_0x50d4f7;super(),this[_0x17e698(0x1c2)]=_0x48fae0,this['_imageIoService']=_0x2e7ffe,this[_0x17e698(0x3d8)]();}['_init'](){const _0x3745ce=_0x50d4f7,_0x40b915=this;this[_0x3745ce(0x24e)](this[_0x3745ce(0x1c2)][_0x3745ce(0x39e)]({'onBeforePasteImage':async _0x3a88cb=>{const _0x3d12cd=_0x3745ce,_0x52b655=await _0x40b915['_imageIoService']['saveImage'](_0x3a88cb);return _0x52b655?{'source':_0x52b655[_0x3d12cd(0x3c2)],'imageSourceType':_0x52b655[_0x3d12cd(0x35b)]}:null;}}));}};_0x1e2940=_0x575bc4([_0xf620b1(0x0,_0x32c769[_0x50d4f7(0x170)]),_0xf620b1(0x1,_0x302ef1[_0x50d4f7(0x2a9)])],_0x1e2940);const _0x405ea0=[_0x50d4f7(0x214),_0x50d4f7(0x32e),'green.600',_0x50d4f7(0x358),_0x50d4f7(0x26e),_0x50d4f7(0x3ca)];class _0x5d8afc extends _0x2a357a[_0x50d4f7(0x3c9)]{constructor(){const _0x1f68d1=_0x50d4f7;super(...arguments),_0x1bb9f9(this,_0x1f68d1(0x21d),new Map()),_0x1bb9f9(this,_0x1f68d1(0x351),0x0);}['assignAColorForMemberID'](_0x3781ce){const _0x4cb809=_0x50d4f7;if(this[_0x4cb809(0x21d)][_0x4cb809(0x1fc)](_0x3781ce))return this[_0x4cb809(0x21d)][_0x4cb809(0x22d)](_0x3781ce);const _0x550154=_0x405ea0[this[_0x4cb809(0x351)]];return this['_colorIndex']=(this[_0x4cb809(0x351)]+0x1)%_0x405ea0[_0x4cb809(0x34e)],this[_0x4cb809(0x21d)][_0x4cb809(0x335)](_0x3781ce,_0x550154),_0x550154;}}function _0x5c86f6(_0x7a09f1){const _0x2ba834=_0x50d4f7;let _0x58256f='';for(const _0x34374c of _0x7a09f1){const {startOffset:_0x37fb4d,endOffset:_0x47229a,isActive:_0x418d80,rangeType:_0x160ce7,segmentId:_0x2eb14b,segmentPage:_0x566b54}=_0x34374c;_0x58256f[_0x2ba834(0x34e)]&&(_0x58256f+=','),_0x58256f+=_0x37fb4d+':'+_0x47229a+':'+(_0x418d80?'1':'0')+':'+_0x160ce7+':'+_0x2eb14b+':'+_0x566b54;}return _0x58256f;}function _0x103b31(_0x53bfc3){const _0x33b093=_0x50d4f7,_0x217be3=_0x53bfc3[_0x33b093(0x17d)](','),_0x512775=[];for(const _0x1c0575 of _0x217be3){const [_0x278982,_0x225f2b,_0x84aae3,_0x58df8f,_0x129996,_0x5b6e61]=_0x1c0575[_0x33b093(0x17d)](':');_0x512775[_0x33b093(0x327)]({'startOffset':Number(_0x278982),'endOffset':Number(_0x225f2b),'collapsed':_0x278982===_0x225f2b,'isActive':_0x84aae3==='1','rangeType':_0x58df8f===_0x2a357a[_0x33b093(0x26b)][_0x33b093(0x3b0)]?_0x2a357a['DOC_RANGE_TYPE']['TEXT']:_0x2a357a[_0x33b093(0x26b)][_0x33b093(0x1f3)],'segmentId':typeof _0x129996==_0x33b093(0x3a5)?String(_0x129996):'','segmentPage':Number(_0x5b6e61!=null?_0x5b6e61:-0x1)});}return _0x512775[_0x33b093(0x2a8)](_0x3ee239=>_0x3ee239['isActive'])||(_0x512775[0x0][_0x33b093(0x248)]=!0x0),_0x512775;}class _0x5baa2e extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(){const _0x434fda=_0x50d4f7;super(...arguments),_0x1bb9f9(this,_0x434fda(0x369),new _0x224c35['BehaviorSubject'](null)),_0x1bb9f9(this,_0x434fda(0x3da),this[_0x434fda(0x369)][_0x434fda(0x301)]());}[_0x50d4f7(0x23a)](_0x5f4716){const _0x3578c8=_0x50d4f7,{unitID:_0x1ea1bd,memberID:_0x102dd6,textRanges:_0x2b4a21}=_0x5f4716,_0x61614b=_0x5c86f6(_0x2b4a21);if(_0x61614b==='')return;const _0x5e133c={'unitID':_0x1ea1bd,'memberID':_0x102dd6,'selection':_0x61614b};this['_collabCursorState$'][_0x3578c8(0x37d)](_0x5e133c);}}var _0x476b80=Object['getOwnPropertyDescriptor'],_0x6b92b4=(_0x28ba7c,_0xe7cc0,_0x3d6735,_0x55c07f)=>{const _0x4eda3b=_0x50d4f7;for(var _0x3a2e0d=_0x55c07f>0x1?void 0x0:_0x55c07f?_0x476b80(_0xe7cc0,_0x3d6735):_0xe7cc0,_0x330587=_0x28ba7c[_0x4eda3b(0x34e)]-0x1,_0x5a318d;_0x330587>=0x0;_0x330587--)(_0x5a318d=_0x28ba7c[_0x330587])&&(_0x3a2e0d=_0x5a318d(_0x3a2e0d)||_0x3a2e0d);return _0x3a2e0d;},_0x404043=(_0x593a53,_0x518ba7)=>(_0x3f5a49,_0xad637c)=>_0x518ba7(_0x3f5a49,_0xad637c,_0x593a53);const _0x3fd016=0x12c,_0x98ea2c=0x64;let _0x1e868f=class extends _0x2a357a['RxDisposable']{constructor(_0x10e167,_0x1ffb83,_0x1cb2a0,_0x952297,_0x5276b0,_0x1bd8dd,_0x84f66,_0x5b0998,_0x9a6e4f){const _0x4456d0=_0x50d4f7;super(),_0x1bb9f9(this,'_online',!0x1),_0x1bb9f9(this,_0x4456d0(0x3d8),!0x1),_0x1bb9f9(this,'_cursorInfo$',new _0x224c35[(_0x4456d0(0x27e))](new Map())),_0x1bb9f9(this,_0x4456d0(0x30f),this[_0x4456d0(0x18b)][_0x4456d0(0x301)]()),_0x1bb9f9(this,_0x4456d0(0x19f),new _0x224c35['BehaviorSubject']([])),_0x1bb9f9(this,_0x4456d0(0x245),this['_roomMembers$'][_0x4456d0(0x3bf)](_0x224c35[_0x4456d0(0x3e9)](_0x3fd016))),_0x1bb9f9(this,'_updateLocalCursor',_0x2a357a[_0x4456d0(0x377)](_0x27d0ea=>{const _0x5ae7a9=_0x4456d0,_0x72e4d6={'eventID':_0x8d16e0[_0x5ae7a9(0x341)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x5ae7a9(0x197)],'memberID':this[_0x5ae7a9(0x1b5)][_0x5ae7a9(0x39a)](),'selection':_0x5c86f6(_0x27d0ea)}};this[_0x5ae7a9(0x1b5)][_0x5ae7a9(0x25c)](_0x72e4d6,this[_0x5ae7a9(0x197)]);},_0x98ea2c)),(this[_0x4456d0(0x197)]=_0x10e167,this[_0x4456d0(0x1b5)]=_0x1ffb83,this[_0x4456d0(0x21b)]=_0x1cb2a0,this['_colorAssignService']=_0x952297,this[_0x4456d0(0x2b7)]=_0x5276b0,this[_0x4456d0(0x293)]=_0x1bd8dd,this[_0x4456d0(0x289)]=_0x84f66,this[_0x4456d0(0x3c4)]=_0x5b0998,this[_0x4456d0(0x306)]=_0x9a6e4f);}get[_0x50d4f7(0x30e)](){const _0x2adc9a=_0x50d4f7;return this['_cursorInfo$'][_0x2adc9a(0x2e5)]();}get['roomMembers'](){const _0x6cfe5=_0x50d4f7;return this['_roomMembers$'][_0x6cfe5(0x2e5)]();}['dispose'](){const _0x27e7b6=_0x50d4f7;super['dispose'](),this['_cursorInfo$'][_0x27e7b6(0x37d)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this[_0x27e7b6(0x19f)][_0x27e7b6(0x180)]();}[_0x50d4f7(0x3fc)](){const _0x44c6ad=_0x50d4f7;this[_0x44c6ad(0x3d8)]||(this['_init']=!0x0,this[_0x44c6ad(0x1b5)]['sessionStatus$'][_0x44c6ad(0x3bf)](_0x224c35[_0x44c6ad(0x184)](this[_0x44c6ad(0x2f3)]))[_0x44c6ad(0x2cf)](_0x1b2f43=>{const _0x2ac7a8=_0x44c6ad;_0x1b2f43===_0x505ca1['SessionStatus'][_0x2ac7a8(0x241)]?this[_0x2ac7a8(0x249)]():this[_0x2ac7a8(0x1cf)]();}),this['_session'][_0x44c6ad(0x23f)]['pipe'](_0x224c35[_0x44c6ad(0x184)](this['dispose$']))[_0x44c6ad(0x2cf)](_0x6ad7a1=>{const _0x35ca81=_0x44c6ad,_0x4c608c=_0x6ad7a1['eventID'];_0x4c608c===_0x8d16e0[_0x35ca81(0x341)]['UPDATE_CURSOR']&&this[_0x35ca81(0x344)](_0x6ad7a1),_0x4c608c===_0x8d16e0[_0x35ca81(0x341)][_0x35ca81(0x315)]&&this[_0x35ca81(0x32c)](_0x6ad7a1);}),this[_0x44c6ad(0x24e)](this['_commandService'][_0x44c6ad(0x183)](_0xf3b9fc=>{const _0x6c43b0=_0x44c6ad,_0x3862d4=_0xf3b9fc['params'];_0x3862d4!=null&&this[_0x6c43b0(0x23d)]&&_0xf3b9fc['id']===_0x1d4864['SetTextSelectionsOperation']['id']&&_0x3862d4[_0x6c43b0(0x287)]===this[_0x6c43b0(0x197)]&&_0x3862d4['isEditing']===!0x1&&_0x3862d4['ranges'][_0x6c43b0(0x34e)]>0x0&&this[_0x6c43b0(0x38c)](_0x3862d4[_0x6c43b0(0x1fe)]);})),this[_0x44c6ad(0x293)][_0x44c6ad(0x3da)][_0x44c6ad(0x3bf)](_0x224c35[_0x44c6ad(0x184)](this[_0x44c6ad(0x2f3)]))[_0x44c6ad(0x2cf)](_0x43cf91=>{const _0x4089c3=_0x44c6ad;if((_0x43cf91==null?void 0x0:_0x43cf91[_0x4089c3(0x197)])!==this[_0x4089c3(0x197)])return;const _0x3be6f6={'eventID':_0x8d16e0['CollaborationEvent'][_0x4089c3(0x400)],'data':_0x43cf91};this[_0x4089c3(0x344)](_0x3be6f6);}),this[_0x44c6ad(0x24e)](this['_commandService'][_0x44c6ad(0x183)](_0x3d7198=>{const _0x3e68a2=_0x44c6ad;if(_0x3d7198['params']==null)return;const _0x27e212=_0x3d7198[_0x3e68a2(0x36d)];if(_0x3d7198['id']!==_0x1d4864[_0x3e68a2(0x39c)]['id']||_0x27e212[_0x3e68a2(0x287)]!==this['unitID'])return;const _0x139dbd={'id':_0x3e68a2(0x338),'params':_0x27e212},_0x4655c5=this['cursorInfo'];for(const [_0x465244,_0x372380]of _0x4655c5){const _0x3d1bae={'id':_0x3e68a2(0x338),'params':{'unitId':this[_0x3e68a2(0x197)],'actions':null,'textRanges':_0x372380[_0x3e68a2(0x1fe)]}},_0xf18cc0=this[_0x3e68a2(0x289)]['transformMutation'](_0x139dbd,_0x3d1bae,!0x1);if(_0x8d16e0['isTransformMutationFailure'](_0xf18cc0))throw _0xf18cc0['error'];_0x4655c5[_0x3e68a2(0x335)](_0x465244,{..._0x372380,'ranges':_0xf18cc0['m2Prime'][_0x3e68a2(0x36d)]['textRanges']});}queueMicrotask(()=>{const _0x4f157a=_0x3e68a2;this[_0x4f157a(0x18b)][_0x4f157a(0x37d)](_0x4655c5);});})));}[_0x50d4f7(0x344)](_0x54c322){const _0x11814c=_0x50d4f7;var _0x39e39f,_0x1f7c50;const {memberID:_0x48117d,selection:_0x423e04}=_0x54c322[_0x11814c(0x205)],_0x1a7596=_0x103b31(_0x423e04),_0x1b3a46=(_0x1f7c50=(_0x39e39f=this[_0x11814c(0x2b7)]['getMember'](this['unitID'],_0x48117d))==null?void 0x0:_0x39e39f['name'])!=null?_0x1f7c50:_0x11814c(0x234),_0xd3ae9d={'color':this[_0x11814c(0x355)]['assignAColorForMemberID'](_0x48117d),'name':_0x1b3a46,'ranges':_0x1a7596},_0x21a75a=this[_0x11814c(0x30e)];_0x21a75a[_0x11814c(0x335)](_0x48117d,_0xd3ae9d),this[_0x11814c(0x18b)]['next'](_0x21a75a);}[_0x50d4f7(0x32c)](_0x39cfff){const _0x2147d6=_0x50d4f7,{memberID:_0x53927b}=_0x39cfff['data'],_0x4c3881=this[_0x2147d6(0x30e)];_0x4c3881[_0x2147d6(0x280)](_0x53927b),this[_0x2147d6(0x18b)][_0x2147d6(0x37d)](_0x4c3881);}[_0x50d4f7(0x249)](){const _0x3ea2fe=_0x50d4f7;var _0x1b96ac;if(this[_0x3ea2fe(0x23d)]=!0x0,((_0x1b96ac=this['_univerInstanceService'][_0x3ea2fe(0x23e)]())==null?void 0x0:_0x1b96ac[_0x3ea2fe(0x3b1)]())!==this[_0x3ea2fe(0x197)])return;const _0x5c673d=this[_0x3ea2fe(0x21b)][_0x3ea2fe(0x22d)](_0x1d4864[_0x3ea2fe(0x221)])['getDocRanges']();Array[_0x3ea2fe(0x328)](_0x5c673d)&&_0x5c673d[_0x3ea2fe(0x34e)]>0x0&&this[_0x3ea2fe(0x38c)](_0x5c673d);}[_0x50d4f7(0x1cf)](){this['_online']=!0x1;}};_0x1e868f=_0x6b92b4([_0x404043(0x2,_0x2a357a['Inject'](_0x2a357a['Injector'])),_0x404043(0x3,_0x2a357a['Inject'](_0x5d8afc)),_0x404043(0x4,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1[_0x50d4f7(0x1b9)])),_0x404043(0x5,_0x2a357a[_0x50d4f7(0x229)](_0x5baa2e)),_0x404043(0x6,_0x8d16e0[_0x50d4f7(0x24a)]),_0x404043(0x7,_0x2a357a[_0x50d4f7(0x382)]),_0x404043(0x8,_0x2a357a['ICommandService'])],_0x1e868f);var _0x286e7b=Object[_0x50d4f7(0x2da)],_0x2e3e43=(_0x4ac63c,_0x2ac178,_0x42b5b5,_0x231586)=>{const _0x441fd6=_0x50d4f7;for(var _0x477138=_0x231586>0x1?void 0x0:_0x231586?_0x286e7b(_0x2ac178,_0x42b5b5):_0x2ac178,_0x2bbe36=_0x4ac63c[_0x441fd6(0x34e)]-0x1,_0x179501;_0x2bbe36>=0x0;_0x2bbe36--)(_0x179501=_0x4ac63c[_0x2bbe36])&&(_0x477138=_0x179501(_0x477138)||_0x477138);return _0x477138;},_0x267e8d=(_0x49d0e2,_0x4f2b25)=>(_0x4d0a31,_0x10ef12)=>_0x4f2b25(_0x4d0a31,_0x10ef12,_0x49d0e2);const _0x35eb41=0x12c,_0x76ad3b=0x64,_0x39c736=()=>{let _0x1c3cac=[],_0x3063a7=!0x1;return _0x5d95ce=>{const _0x13a6db=_0x45fd;_0x1c3cac[_0x13a6db(0x327)](_0x5d95ce),_0x3063a7||(_0x3063a7=!0x0,setTimeout(()=>{const _0x14d701=_0x13a6db;_0x1c3cac[_0x14d701(0x2fa)](_0x43aa1b=>_0x43aa1b()),_0x1c3cac=[],_0x3063a7=!0x1;}));};};let _0x568503=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0x4e86a4,_0x3fb917,_0x492369,_0xd7969a,_0xec3904,_0x8b2feb,_0x1a4089,_0x539a2a){const _0x4e1d5c=_0x50d4f7;super(),_0x1bb9f9(this,_0x4e1d5c(0x23d),!0x1),_0x1bb9f9(this,_0x4e1d5c(0x3d8),!0x1),_0x1bb9f9(this,'_cursorInfo$',new _0x224c35[(_0x4e1d5c(0x27e))](new Map())),_0x1bb9f9(this,'cursorInfo$',this[_0x4e1d5c(0x18b)][_0x4e1d5c(0x301)]()),_0x1bb9f9(this,_0x4e1d5c(0x19f),new _0x224c35[(_0x4e1d5c(0x27e))]([])),_0x1bb9f9(this,'roomMembers$',this[_0x4e1d5c(0x19f)]['pipe'](_0x224c35[_0x4e1d5c(0x3e9)](_0x35eb41))),_0x1bb9f9(this,_0x4e1d5c(0x38c),_0x2a357a[_0x4e1d5c(0x377)]((_0x305779,_0x20c8ec)=>{const _0x299107=_0x4e1d5c,_0x88231f={'eventID':_0x8d16e0['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x299107(0x1b5)]['getMemberID'](),'selection':_0x17ecc0['serializeRangeWithSheet'](_0x305779,_0x20c8ec[_0x299107(0x187)])}};this[_0x299107(0x1b5)][_0x299107(0x25c)](_0x88231f,this[_0x299107(0x197)]);},_0x76ad3b)),(this['unitID']=_0x4e86a4,this[_0x4e1d5c(0x1b5)]=_0x3fb917,this[_0x4e1d5c(0x21b)]=_0x492369,this[_0x4e1d5c(0x355)]=_0xd7969a,this['_memberService']=_0xec3904,this[_0x4e1d5c(0x3c4)]=_0x8b2feb,this[_0x4e1d5c(0x306)]=_0x1a4089,this[_0x4e1d5c(0x2e1)]=_0x539a2a);}get[_0x50d4f7(0x30e)](){const _0x140136=_0x50d4f7;return this[_0x140136(0x18b)][_0x140136(0x2e5)]();}get[_0x50d4f7(0x291)](){const _0x25883b=_0x50d4f7;return this[_0x25883b(0x19f)][_0x25883b(0x2e5)]();}[_0x50d4f7(0x225)](){const _0x2c1a42=_0x50d4f7;super['dispose'](),this[_0x2c1a42(0x18b)]['next'](new Map()),this[_0x2c1a42(0x18b)][_0x2c1a42(0x180)](),this[_0x2c1a42(0x19f)][_0x2c1a42(0x37d)]([]),this[_0x2c1a42(0x19f)][_0x2c1a42(0x180)]();}['init'](){const _0xe38665=_0x50d4f7;this[_0xe38665(0x3d8)]||(this['_init']=!0x0,this['_session'][_0xe38665(0x29c)]['pipe'](_0x224c35[_0xe38665(0x184)](this[_0xe38665(0x2f3)]))['subscribe'](_0x576492=>{const _0x4d5006=_0xe38665;_0x576492===_0x505ca1[_0x4d5006(0x2d4)][_0x4d5006(0x241)]?this[_0x4d5006(0x249)]():this[_0x4d5006(0x1cf)]();}),this[_0xe38665(0x1b5)]['event$']['pipe'](_0x224c35[_0xe38665(0x184)](this[_0xe38665(0x2f3)]))['subscribe'](_0x58a20b=>{const _0x58db17=_0xe38665,_0x5d0489=_0x58a20b[_0x58db17(0x18d)];_0x5d0489===_0x8d16e0[_0x58db17(0x341)][_0x58db17(0x400)]&&this[_0x58db17(0x344)](_0x58a20b),_0x5d0489===_0x8d16e0[_0x58db17(0x341)]['USERS_LEAVE']&&this[_0x58db17(0x32c)](_0x58a20b);}),this[_0xe38665(0x1c9)](),this[_0xe38665(0x24e)](this[_0xe38665(0x306)][_0xe38665(0x183)](_0x15caf6=>{const _0x8a59eb=_0xe38665;if(this['_online']&&_0x15caf6['id']===_0xb393d1[_0x8a59eb(0x181)]['id']&&_0x15caf6[_0x8a59eb(0x36d)][_0x8a59eb(0x287)]===this[_0x8a59eb(0x197)]){const _0x249dff=_0x15caf6[_0x8a59eb(0x36d)];this[_0x8a59eb(0x38c)](_0x249dff[_0x8a59eb(0x2eb)],_0x249dff[_0x8a59eb(0x216)][0x0]);}})));}[_0x50d4f7(0x344)](_0x121504){const _0x5e0f1a=_0x50d4f7;var _0x1726d2,_0x281355;const {memberID:_0x168bf3,selection:_0x5705e4}=_0x121504[_0x5e0f1a(0x205)],{sheetName:_0x1f8eef,range:_0x25b64b}=_0x17ecc0[_0x5e0f1a(0x393)](_0x5705e4),_0x1051c3={'name':(_0x281355=(_0x1726d2=this[_0x5e0f1a(0x2b7)][_0x5e0f1a(0x3cf)](this['unitID'],_0x168bf3))==null?void 0x0:_0x1726d2[_0x5e0f1a(0x2ca)])!=null?_0x281355:_0x5e0f1a(0x234),'range':this[_0x5e0f1a(0x220)](_0x1f8eef,_0x25b64b),'sheetID':_0x1f8eef,'color':this[_0x5e0f1a(0x355)][_0x5e0f1a(0x378)](_0x168bf3),'selection':_0x5705e4},_0x41d767=this[_0x5e0f1a(0x30e)];_0x41d767['set'](_0x168bf3,_0x1051c3),this['_cursorInfo$'][_0x5e0f1a(0x37d)](_0x41d767);}[_0x50d4f7(0x32c)](_0x5cc84d){const _0x44b91f=_0x50d4f7,{memberID:_0x4c80d9}=_0x5cc84d[_0x44b91f(0x205)],_0x150d63=this['cursorInfo'];_0x150d63[_0x44b91f(0x280)](_0x4c80d9),this['_cursorInfo$']['next'](_0x150d63);}[_0x50d4f7(0x220)](_0x5f47df,_0x4f4e2f){const _0x2afb5e=_0x50d4f7;var _0x494e09,_0x1f1444;const _0x2e5bd2=(_0x1f1444=(_0x494e09=this[_0x2afb5e(0x3c4)][_0x2afb5e(0x24f)](this[_0x2afb5e(0x197)]))==null?void 0x0:_0x494e09[_0x2afb5e(0x379)](_0x5f47df))==null?void 0x0:_0x1f1444[_0x2afb5e(0x35a)]();return(_0x2e5bd2==null?void 0x0:_0x2e5bd2[_0x2afb5e(0x339)](_0x4b788d=>_0x2a357a['Rectangle'][_0x2afb5e(0x188)](_0x4b788d,_0x4f4e2f)))||_0x4f4e2f;}[_0x50d4f7(0x1c9)](){const _0x2d4c57=_0x50d4f7,_0x232f74=new _0x2a357a[(_0x2d4c57(0x3eb))](),_0x5205b6=_0x39c736(),_0x10baa1=()=>{const _0x19aa7c=_0x2d4c57;_0x232f74['dispose']();const _0x504ee2=(_0x5a0ac2,_0x560d46,_0x2f8193,_0x593316)=>{const _0xcd3b96=_0x45fd;let _0x324219=[];switch(_0x5a0ac2['id']){case _0xb393d1[_0xcd3b96(0x17c)][_0xcd3b96(0x371)]:{_0x324219=_0xb393d1['handleDeleteRangeMoveLeft'](_0x5a0ac2,_0x593316);break;}case _0xb393d1[_0xcd3b96(0x17c)][_0xcd3b96(0x312)]:{_0x324219=_0xb393d1[_0xcd3b96(0x386)](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId'][_0xcd3b96(0x1dc)]:{_0x324219=_0xb393d1[_0xcd3b96(0x1d5)](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId'][_0xcd3b96(0x330)]:{_0x324219=_0xb393d1[_0xcd3b96(0x1da)](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId'][_0xcd3b96(0x19c)]:{_0x324219=_0xb393d1['handleInsertRangeMoveRight'](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId'][_0xcd3b96(0x175)]:{_0x324219=_0xb393d1[_0xcd3b96(0x3cb)](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId']['MoveRangeCommandId']:{_0x324219=_0xb393d1['handleMoveRange'](_0x5a0ac2,_0x593316);break;}case _0xb393d1[_0xcd3b96(0x17c)][_0xcd3b96(0x3d4)]:{_0x324219=_0xb393d1[_0xcd3b96(0x2b6)](_0x5a0ac2,_0x593316);break;}case _0xb393d1[_0xcd3b96(0x17c)][_0xcd3b96(0x337)]:{_0x324219=_0xb393d1[_0xcd3b96(0x343)](_0x5a0ac2,_0x593316);break;}}const _0x41f2bf=_0xb393d1[_0xcd3b96(0x3e1)](_0x324219,_0x593316),_0x548bc3=this[_0xcd3b96(0x30e)][_0xcd3b96(0x22d)](_0x560d46);if(_0x548bc3&&_0x41f2bf){const _0x579341={..._0x548bc3,'range':_0x41f2bf};this['cursorInfo'][_0xcd3b96(0x335)](_0x560d46,_0x579341),_0x5205b6(()=>{const _0x2d0ef6=_0xcd3b96,_0x8a27bb=this[_0x2d0ef6(0x2e1)]['registerRefRange'](_0x41f2bf,_0x431768=>(_0x8a27bb[_0x2d0ef6(0x225)](),_0x504ee2(_0x431768,_0x560d46,_0x2f8193,_0x41f2bf)));_0x232f74[_0x2d0ef6(0x2ba)](_0x8a27bb);});}return{'redos':[],'undos':[]};};this[_0x19aa7c(0x30e)]['forEach']((_0x38f191,_0x461d08)=>{const _0x4167a9=_0x19aa7c,{range:_0x3ec161,sheetID:_0x34afa6}=_0x38f191,_0x2536d1=this[_0x4167a9(0x2e1)][_0x4167a9(0x3ce)](_0x3ec161,_0x1aea9b=>(_0x2536d1['dispose'](),_0x504ee2(_0x1aea9b,_0x461d08,_0x34afa6,_0x3ec161)));_0x232f74[_0x4167a9(0x2ba)](_0x2536d1);});};this[_0x2d4c57(0x24e)](_0x2a357a[_0x2d4c57(0x1ff)](this[_0x2d4c57(0x18b)][_0x2d4c57(0x2cf)](()=>{_0x10baa1();})));}['_toggleOnline'](){const _0x2255c9=_0x50d4f7;var _0x496595,_0x4d9ee9;if(this['_online']=!0x0,((_0x496595=this['_univerInstanceService'][_0x2255c9(0x23e)]())==null?void 0x0:_0x496595['getUnitId']())!==this[_0x2255c9(0x197)])return;const _0x3dcbeb=(_0x4d9ee9=this[_0x2255c9(0x21b)][_0x2255c9(0x22d)](_0xb393d1[_0x2255c9(0x1bf)])[_0x2255c9(0x29a)]())==null?void 0x0:_0x4d9ee9[0x0],_0x37f803=this[_0x2255c9(0x3c4)][_0x2255c9(0x34c)](_0x2a357a['UniverInstanceType'][_0x2255c9(0x37f)])[_0x2255c9(0x31b)]();_0x3dcbeb&&_0x37f803&&this[_0x2255c9(0x38c)](_0x37f803[_0x2255c9(0x1d1)](),_0x3dcbeb);}[_0x50d4f7(0x1cf)](){const _0x1e807e=_0x50d4f7;this[_0x1e807e(0x23d)]=!0x1;}};_0x568503=_0x2e3e43([_0x267e8d(0x2,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x173)])),_0x267e8d(0x3,_0x2a357a[_0x50d4f7(0x229)](_0x5d8afc)),_0x267e8d(0x4,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1[_0x50d4f7(0x1b9)])),_0x267e8d(0x5,_0x2a357a['IUniverInstanceService']),_0x267e8d(0x6,_0x2a357a[_0x50d4f7(0x305)]),_0x267e8d(0x7,_0x2a357a[_0x50d4f7(0x229)](_0xb393d1[_0x50d4f7(0x297)]))],_0x568503);var _0x2260e0=Object[_0x50d4f7(0x2da)],_0x5db7e8=(_0x33815c,_0x9448de,_0x7b8095,_0x2b5b53)=>{const _0x2c14d6=_0x50d4f7;for(var _0x10da67=_0x2b5b53>0x1?void 0x0:_0x2b5b53?_0x2260e0(_0x9448de,_0x7b8095):_0x9448de,_0x1dfd5c=_0x33815c[_0x2c14d6(0x34e)]-0x1,_0x2b1be8;_0x1dfd5c>=0x0;_0x1dfd5c--)(_0x2b1be8=_0x33815c[_0x1dfd5c])&&(_0x10da67=_0x2b1be8(_0x10da67)||_0x10da67);return _0x10da67;},_0x316585=(_0x4a004c,_0x3d43ec)=>(_0xbfbf44,_0xfb8a26)=>_0x3d43ec(_0xbfbf44,_0xfb8a26,_0x4a004c);let _0x1c920a=class extends _0x2a357a['RxDisposable']{constructor(_0x3fe0e8,_0x1357d2,_0x364477){const _0x2f4782=_0x50d4f7;super(),_0x1bb9f9(this,_0x2f4782(0x322),new Map()),_0x1bb9f9(this,_0x2f4782(0x1c7),new _0x224c35[(_0x2f4782(0x295))]()),(this[_0x2f4782(0x3c4)]=_0x3fe0e8,this[_0x2f4782(0x21b)]=_0x1357d2,this['_collabSessionService']=_0x364477,this[_0x2f4782(0x3d8)]());}[_0x50d4f7(0x225)](){const _0x18504e=_0x50d4f7;super['dispose'](),this[_0x18504e(0x1c7)][_0x18504e(0x180)](),this[_0x18504e(0x322)][_0x18504e(0x2fa)](_0x33ade4=>_0x33ade4[_0x18504e(0x225)]());}[_0x50d4f7(0x285)](_0x249529){const _0x1a9609=_0x50d4f7;return this[_0x1a9609(0x322)][_0x1a9609(0x1fc)](_0x249529)?this[_0x1a9609(0x322)]['get'](_0x249529)[_0x1a9609(0x30f)]:this[_0x1a9609(0x1c7)]['pipe'](_0x224c35[_0x1a9609(0x2b8)](_0x230085=>_0x230085['unitID']===_0x249529),_0x224c35['switchMap'](_0x31ff16=>_0x31ff16[_0x1a9609(0x30f)]));}[_0x50d4f7(0x3d8)](){const _0x595b4d=_0x50d4f7;this['_univerInstanceService'][_0x595b4d(0x268)](_0x2a357a[_0x595b4d(0x19b)]['UNIVER_SHEET'])[_0x595b4d(0x3bf)](_0x224c35[_0x595b4d(0x184)](this[_0x595b4d(0x2f3)]))[_0x595b4d(0x2cf)](async _0x5cce43=>{const _0x371b1b=_0x595b4d,_0x1ade41=_0x5cce43[_0x371b1b(0x3b1)](),_0x1ec851=await this[_0x371b1b(0x391)](_0x1ade41);this['_entityInit$'][_0x371b1b(0x37d)](_0x1ec851),this['_entities'][_0x371b1b(0x335)](_0x1ade41,_0x1ec851);}),this['_univerInstanceService'][_0x595b4d(0x268)](_0x2a357a[_0x595b4d(0x19b)][_0x595b4d(0x3d5)])['pipe'](_0x224c35['takeUntil'](this['dispose$']))[_0x595b4d(0x3bf)](_0x224c35[_0x595b4d(0x2b8)](_0x4b8a39=>!_0x4b8a39['getUnitId']()[_0x595b4d(0x316)]('__')))[_0x595b4d(0x2cf)](async _0x1edc95=>{const _0xf3f698=_0x595b4d,_0x49a520=_0x1edc95[_0xf3f698(0x3b1)](),_0x209ecb=await this[_0xf3f698(0x3a3)](_0x49a520);this[_0xf3f698(0x1c7)]['next'](_0x209ecb),this[_0xf3f698(0x322)][_0xf3f698(0x335)](_0x49a520,_0x209ecb);}),_0x224c35[_0x595b4d(0x2b4)](this[_0x595b4d(0x3c4)][_0x595b4d(0x31e)](_0x2a357a['UniverInstanceType'][_0x595b4d(0x3d5)]),this[_0x595b4d(0x3c4)]['getTypeOfUnitDisposed$'](_0x2a357a[_0x595b4d(0x19b)][_0x595b4d(0x37f)]))[_0x595b4d(0x3bf)](_0x224c35['takeUntil'](this[_0x595b4d(0x2f3)]))[_0x595b4d(0x2cf)](_0x4b9739=>{const _0x30b54e=_0x595b4d,_0x2377fb=_0x4b9739[_0x30b54e(0x3b1)](),_0x19e232=this['_entities'][_0x30b54e(0x22d)](_0x2377fb);_0x19e232&&(_0x19e232[_0x30b54e(0x225)](),this[_0x30b54e(0x322)][_0x30b54e(0x280)](_0x2377fb));});}async[_0x50d4f7(0x391)](_0x4bb19c){const _0xfb85a9=_0x50d4f7,_0x56ac89=await this['_collabSessionService'][_0xfb85a9(0x3f8)](_0x4bb19c),_0x19ee6d=this[_0xfb85a9(0x21b)]['createInstance'](_0x568503,_0x4bb19c,_0x56ac89);return _0x19ee6d[_0xfb85a9(0x3fc)](),_0x19ee6d;}async[_0x50d4f7(0x3a3)](_0x40fc07){const _0x7ecb7c=_0x50d4f7,_0x472cb9=await this[_0x7ecb7c(0x226)][_0x7ecb7c(0x3f8)](_0x40fc07),_0x4ff69f=this[_0x7ecb7c(0x21b)][_0x7ecb7c(0x3d6)](_0x1e868f,_0x40fc07,_0x472cb9);return _0x4ff69f[_0x7ecb7c(0x3fc)](),_0x4ff69f;}};_0x1c920a=_0x5db7e8([_0x316585(0x0,_0x2a357a[_0x50d4f7(0x382)]),_0x316585(0x1,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x173)])),_0x316585(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1[_0x50d4f7(0x27a)]))],_0x1c920a);const _0x5ef2a6=0x14,_0x2a929b=0xc8,_0x2c7d8e=0x4,_0x5aeb55=0x5;function _0x45acea(_0x56f8c2,_0x5f3604){const _0x1c916f=_0x50d4f7;let {radius:_0x2dddf8,width:_0x69f406,height:_0x51bb1d}=_0x5f3604;_0x2dddf8=_0x2dddf8!=null?_0x2dddf8:0x0,_0x69f406=_0x69f406!=null?_0x69f406:0x1e,_0x51bb1d=_0x51bb1d!=null?_0x51bb1d:0x1e;let _0x28d909=0x0,_0x43161b=0x0,_0x3770cf=0x0;_0x28d909=_0x43161b=_0x3770cf=Math[_0x1c916f(0x1ac)](_0x2dddf8,_0x69f406/0x2,_0x51bb1d/0x2),_0x56f8c2[_0x1c916f(0x385)](),_0x56f8c2[_0x1c916f(0x232)](_0x28d909,0x0),_0x56f8c2[_0x1c916f(0x1af)](_0x69f406-_0x43161b,0x0),_0x56f8c2[_0x1c916f(0x206)](_0x69f406-_0x43161b,_0x43161b,_0x43161b,Math['PI']*0x3/0x2,0x0,!0x1),_0x56f8c2[_0x1c916f(0x1af)](_0x69f406,_0x51bb1d-_0x3770cf),_0x56f8c2[_0x1c916f(0x206)](_0x69f406-_0x3770cf,_0x51bb1d-_0x3770cf,_0x3770cf,0x0,Math['PI']/0x2,!0x1),_0x56f8c2[_0x1c916f(0x1af)](0x0,_0x51bb1d),_0x56f8c2[_0x1c916f(0x1af)](0x0,_0x28d909),_0x56f8c2[_0x1c916f(0x206)](_0x28d909,_0x28d909,_0x28d909,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x56f8c2[_0x1c916f(0x28b)](),_0x5f3604[_0x1c916f(0x281)]&&(_0x56f8c2[_0x1c916f(0x1f2)](),_0x56f8c2[_0x1c916f(0x329)]=_0x5f3604['fill'],_0x5f3604['fillRule']==='evenodd'?_0x56f8c2['fill'](_0x1c916f(0x1c0)):_0x56f8c2['fill'](),_0x56f8c2[_0x1c916f(0x1b0)]());}class _0x4f5177 extends _0x4dd679['Shape']{constructor(_0x58b3eb,_0x370057){const _0x16ff8f=_0x50d4f7;super(_0x58b3eb,_0x370057),_0x1bb9f9(this,_0x16ff8f(0x32d)),_0x1bb9f9(this,_0x16ff8f(0x3ff)),(this[_0x16ff8f(0x32d)]=_0x370057==null?void 0x0:_0x370057[_0x16ff8f(0x32d)],this['text']=_0x370057==null?void 0x0:_0x370057['text']);}static[_0x50d4f7(0x2cb)](_0xa0e6d4,_0xc2b737){const _0xc195a1=_0x50d4f7,{text:_0x33cef9,color:_0x3af58e}=_0xc2b737;_0xa0e6d4['save'](),_0xa0e6d4[_0xc195a1(0x253)]=_0xc195a1(0x1c1);const _0x345d63=_0xa0e6d4[_0xc195a1(0x3d0)](_0x33cef9)[_0xc195a1(0x272)],_0x5482d1=Math[_0xc195a1(0x1ac)](_0x345d63+0x2*_0x2c7d8e,_0x2a929b);_0x45acea(_0xa0e6d4,{'height':_0x5ef2a6,'radius':0x4,'width':_0x5482d1,'fill':_0x3af58e}),_0xa0e6d4[_0xc195a1(0x329)]='#FFF';const _0x23d72c=_0x2c7d8e,_0x308c6d=_0x5ef2a6-_0x5aeb55,_0x8f4b93=_0x2a929b-0x2*_0x2c7d8e;if(_0x345d63>_0x8f4b93){let _0x61999d='',_0xe61de9=0x0;for(const _0x490120 of _0x33cef9){const _0x46bdc4=_0xa0e6d4[_0xc195a1(0x3d0)](_0x490120)[_0xc195a1(0x272)];if(_0xe61de9+_0x46bdc4<=_0x8f4b93-_0xa0e6d4[_0xc195a1(0x3d0)]('...')[_0xc195a1(0x272)])_0x61999d+=_0x490120,_0xe61de9+=_0x46bdc4;else{_0x61999d+=_0xc195a1(0x3a4);break;}}_0xa0e6d4[_0xc195a1(0x2d6)](_0x61999d,_0x23d72c,_0x308c6d);}else _0xa0e6d4[_0xc195a1(0x2d6)](_0x33cef9,_0x23d72c,_0x308c6d);_0xa0e6d4[_0xc195a1(0x1b0)]();}[_0x50d4f7(0x2de)](_0x368654){const _0x5e0a22=_0x50d4f7;_0x4f5177[_0x5e0a22(0x2cb)](_0x368654,this);}}const _0x5de4f8=_0x50d4f7(0x2d0),_0x483cbc=_0x50d4f7(0x359),_0x32cfb8='collab-rect-range-',_0x3bd905=0x6,_0x1626d1=1.5,_0x2a871e=0x4,_0x187bf4=1.5,_0x37870a=_0x50d4f7(0x1f7);class _0x9e7785{constructor(_0x41d247,_0x15d6b0,_0x157b64,_0x588aa6){const _0x51ec45=_0x50d4f7;_0x1bb9f9(this,'_shapes',[]),_0x1bb9f9(this,'_anchor',null),_0x1bb9f9(this,'_textBubble',null),_0x1bb9f9(this,_0x51ec45(0x36f),null),_0x1bb9f9(this,_0x51ec45(0x2b5),null),_0x1bb9f9(this,_0x51ec45(0x1b1),null),(this['_cursor']=_0x41d247,this[_0x51ec45(0x19a)]=_0x15d6b0,this[_0x51ec45(0x32f)]=_0x157b64,this[_0x51ec45(0x1e0)]=_0x588aa6,this[_0x51ec45(0x2bc)]());}set[_0x50d4f7(0x366)](_0x568b39){const _0x58bf55=_0x50d4f7;_0x568b39?(this[_0x58bf55(0x36f)]&&this[_0x58bf55(0x36f)][_0x58bf55(0x321)](),this[_0x58bf55(0x3ae)]&&this['_textBubble']['show']()):(this['_anchorDot']&&this[_0x58bf55(0x36f)][_0x58bf55(0x190)](),this['_textBubble']&&this[_0x58bf55(0x3ae)][_0x58bf55(0x321)]());}[_0x50d4f7(0x225)](){const _0x2370ea=_0x50d4f7;for(const _0x1855e8 of this[_0x2370ea(0x1c4)])_0x1855e8[_0x2370ea(0x225)]();this[_0x2370ea(0x3ae)]&&this['_textBubble'][_0x2370ea(0x225)](),this[_0x2370ea(0x36f)]&&this['_anchorDot'][_0x2370ea(0x225)](),this[_0x2370ea(0x1cc)]&&this['_anchor'][_0x2370ea(0x225)](),this[_0x2370ea(0x1b1)]&&this[_0x2370ea(0x1b1)]();}[_0x50d4f7(0x2bc)](){const _0x41c688=_0x50d4f7;var _0x384422;const {_docSkeleton:_0x3d9ab9,_document:_0x36b8f8}=this,{color:_0x487ef0,name:_0x3baf59,ranges:_0xa524a7}=this[_0x41c688(0x1e9)],_0x424333=_0x36b8f8['getOffsetConfig'](),{docsLeft:_0x26c914,docsTop:_0x47b683}=_0x424333,_0x1c860c=new _0x32c769[(_0x41c688(0x3c0))](_0x424333,_0x3d9ab9);for(const {startOffset:_0x1c97e7,endOffset:_0x432838,rangeType:_0x3ef3cd,segmentId:_0x1da402,segmentPage:_0x47509d,collapsed:_0x2e6ca6,isActive:_0xaf4006}of _0xa524a7){const _0xfc5db7=_0x3d9ab9[_0x41c688(0x1ed)](_0x1c97e7,!0x0,_0x1da402,_0x47509d);let _0x2369d9=_0x3d9ab9['findNodePositionByCharIndex'](_0x432838,!0x0,_0x1da402,_0x47509d);if(_0x2369d9==null&&(_0x2369d9=_0x3d9ab9[_0x41c688(0x1ed)](_0x432838-0x1,!0x1,_0x1da402,_0x47509d)),_0xaf4006){const {contentBoxPointGroup:_0x5021eb}=_0x1c860c[_0x41c688(0x3a7)](_0x2369d9,_0x2369d9);if(_0x5021eb[_0x41c688(0x34e)]===0x0)continue;this[_0x41c688(0x3bc)](_0x487ef0,_0x5021eb,_0x26c914,_0x47b683,_0x3baf59),this[_0x41c688(0x1b1)]=this['_handleHover']();}if(_0xfc5db7&&_0x2369d9){if(_0x3ef3cd===_0x2a357a[_0x41c688(0x26b)][_0x41c688(0x1f3)]){const _0x33fde3=new _0x32c769[(_0x41c688(0x1a9))](_0x424333,_0x3d9ab9),{pointGroup:_0x9c2879}=(_0x384422=_0x33fde3[_0x41c688(0x3a7)](_0xfc5db7,_0x2369d9))!=null?_0x384422:{};if(_0x9c2879==null||_0x9c2879[_0x41c688(0x34e)]===0x0)continue;this[_0x41c688(0x23c)](_0x487ef0,_0x9c2879,_0x26c914,_0x47b683);}else{if(!_0x2e6ca6){const {borderBoxPointGroup:_0x5426cd}=_0x1c860c[_0x41c688(0x3a7)](_0xfc5db7,_0x2369d9);if(_0x5426cd[_0x41c688(0x34e)]===0x0)continue;this['_drawTextRange'](_0x487ef0,_0x5426cd,_0x26c914,_0x47b683);}}}}}[_0x50d4f7(0x3bc)](_0x33a1a3,_0x42dc54,_0x4a8d63,_0x2936bd,_0x7ff201){const _0x38bced=_0x50d4f7,_0x2abb51=this[_0x38bced(0x311)](_0x42dc54),{left:_0x6ec615,top:_0x189747,height:_0x5698bb}=_0x2abb51,_0x27ca84=this[_0x38bced(0x389)](),_0x1ad026=_0x187bf4/_0x27ca84,_0xfd3b86=new _0x4dd679[(_0x38bced(0x2c8))](_0x5de4f8+_0x2a357a[_0x38bced(0x1fb)][_0x38bced(0x1c5)](_0x3bd905),{'left':_0x6ec615+_0x4a8d63-_0x1ad026,'top':_0x189747+_0x2936bd,'height':_0x5698bb,'width':_0x1626d1,'fill':_0x33a1a3||_0x4dd679[_0x38bced(0x3a2)](_0x2a357a[_0x38bced(0x331)][_0x38bced(0x3d7)],0x0),'strokeWidth':_0x1ad026,'stroke':_0x37870a,'evented':!0x0});this['_anchor']=_0xfd3b86,this[_0x38bced(0x19a)][_0x38bced(0x1b7)](_0xfd3b86,_0x32c769[_0x38bced(0x29d)]);const _0xd8ff18=new _0x4dd679[(_0x38bced(0x2c8))](_0x5de4f8+_0x2a357a['Tools'][_0x38bced(0x1c5)](_0x3bd905),{'left':_0x6ec615+_0x4a8d63-_0x1ad026,'top':_0x189747+_0x2936bd-_0x2a871e/0x2,'height':_0x2a871e,'width':_0x2a871e,'fill':_0x33a1a3||_0x4dd679[_0x38bced(0x3a2)](_0x2a357a[_0x38bced(0x331)][_0x38bced(0x3d7)],0x0),'strokeWidth':0x0,'stroke':_0x33a1a3||_0x4dd679['getColor'](_0x2a357a[_0x38bced(0x331)][_0x38bced(0x3d7)],0x0),'evented':!0x1});this[_0x38bced(0x36f)]=_0xd8ff18,this[_0x38bced(0x19a)][_0x38bced(0x1b7)](_0xd8ff18,_0x32c769[_0x38bced(0x29d)]);const _0x4035ea=new _0x4f5177(_0x5de4f8+_0x2a357a[_0x38bced(0x1fb)][_0x38bced(0x1c5)](_0x3bd905),{'left':_0x6ec615+_0x4a8d63-_0x1ad026,'top':_0x189747+_0x2936bd-_0x5ef2a6,'text':_0x7ff201,'color':_0x33a1a3});this['_textBubble']=_0x4035ea,this[_0x38bced(0x19a)][_0x38bced(0x1b7)](_0x4035ea,_0x32c769[_0x38bced(0x29d)]),this[_0x38bced(0x366)]=!0x1;}['_handleHover'](){const _0x3d66d1=_0x50d4f7,_0x4f3999=this[_0x3d66d1(0x1cc)][_0x3d66d1(0x1a2)][_0x3d66d1(0x202)](()=>{this['_hover']=!0x0;}),_0x2bf4a2=this[_0x3d66d1(0x1cc)]['onPointerLeave$'][_0x3d66d1(0x202)](()=>{const _0x14269f=_0x3d66d1;this['_hideTimer']&&clearTimeout(this[_0x14269f(0x2b5)]),this[_0x14269f(0x2b5)]=setTimeout(()=>{const _0x361ec4=_0x14269f;this[_0x361ec4(0x366)]=!0x1;},0x7d0);});return()=>{const _0x55ec45=_0x3d66d1;_0x4f3999['unsubscribe'](),_0x2bf4a2[_0x55ec45(0x32b)]();};}[_0x50d4f7(0x1c6)](_0x5351f4,_0x2219e3,_0x17256d,_0x1c5ec1){const _0x3a1fb1=_0x50d4f7,_0x3ca13c=new _0x2a357a[(_0x3a1fb1(0x23b))](_0x5351f4)[_0x3a1fb1(0x274)](0.2)['toRgbString'](),_0x4ba00d=new _0x4dd679['RegularPolygon'](_0x483cbc+_0x2a357a['Tools']['generateRandomId'](_0x3bd905),{'pointsGroup':_0x2219e3,'fill':_0x3ca13c||_0x4dd679[_0x3a1fb1(0x3a2)](_0x2a357a['COLORS'][_0x3a1fb1(0x3d7)],0.2),'left':_0x17256d,'top':_0x1c5ec1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a1fb1(0x1c4)][_0x3a1fb1(0x327)](_0x4ba00d),this[_0x3a1fb1(0x19a)][_0x3a1fb1(0x1b7)](_0x4ba00d,_0x32c769[_0x3a1fb1(0x29d)]);}[_0x50d4f7(0x23c)](_0x67039d,_0x2a2e5e,_0x239243,_0x395716){const _0x36ec56=_0x50d4f7,_0x3064c0=new _0x2a357a[(_0x36ec56(0x23b))](_0x67039d)[_0x36ec56(0x274)](0.2)[_0x36ec56(0x1a4)](),_0xe563e3=new _0x4dd679[(_0x36ec56(0x2ea))](_0x32cfb8+_0x2a357a['Tools'][_0x36ec56(0x1c5)](_0x3bd905),{'pointsGroup':_0x2a2e5e,'fill':_0x3064c0||_0x4dd679[_0x36ec56(0x3a2)](_0x2a357a['COLORS'][_0x36ec56(0x3d7)],0.2),'left':_0x239243,'top':_0x395716,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x36ec56(0x1c4)][_0x36ec56(0x327)](_0xe563e3),this['_scene'][_0x36ec56(0x1b7)](_0xe563e3,_0x32c769[_0x36ec56(0x29d)]);}[_0x50d4f7(0x311)](_0x472604){const _0xeea5be=_0x472604[0x0],_0x5fdc5f=_0xeea5be[0x0],_0x4c42a4=_0xeea5be[0x2],{x:_0x5b3ba6,y:_0x4c20e1}=_0x5fdc5f,{x:_0x40dce7,y:_0x59455f}=_0x4c42a4;return{'left':_0x5b3ba6,'top':_0x4c20e1,'width':_0x40dce7-_0x5b3ba6,'height':_0x59455f-_0x4c20e1};}[_0x50d4f7(0x389)](){const _0x24866a=_0x50d4f7,{scaleX:_0x39cf37,scaleY:_0x5cc342}=this[_0x24866a(0x19a)][_0x24866a(0x2b2)]();return Math[_0x24866a(0x333)](_0x39cf37,_0x5cc342);}}var _0x1ae2c5=Object[_0x50d4f7(0x2da)],_0x5fe7f0=(_0x2e78a6,_0x40c74b,_0x4611e5,_0x4504d5)=>{for(var _0x47a627=_0x4504d5>0x1?void 0x0:_0x4504d5?_0x1ae2c5(_0x40c74b,_0x4611e5):_0x40c74b,_0x62c3f7=_0x2e78a6['length']-0x1,_0x4c1660;_0x62c3f7>=0x0;_0x62c3f7--)(_0x4c1660=_0x2e78a6[_0x62c3f7])&&(_0x47a627=_0x4c1660(_0x47a627)||_0x47a627);return _0x47a627;},_0x646a92=(_0x1d3206,_0x5a68ac)=>(_0x3ffa5f,_0x6e7ded)=>_0x5a68ac(_0x3ffa5f,_0x6e7ded,_0x1d3206);let _0x4988de=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0x38c520,_0x4d5624,_0x55ddb9,_0x2bc5ac,_0x5ab128){const _0x485527=_0x50d4f7;super(),_0x1bb9f9(this,_0x485527(0x2c2),[]),_0x1bb9f9(this,_0x485527(0x2d9),[]),(this[_0x485527(0x2e4)]=_0x38c520,this[_0x485527(0x3b8)]=_0x4d5624,this[_0x485527(0x247)]=_0x55ddb9,this[_0x485527(0x306)]=_0x2bc5ac,this['_themeService']=_0x5ab128,this['_init']());}[_0x50d4f7(0x3d8)](){const _0x5210df=_0x50d4f7,_0x3749f2=this[_0x5210df(0x2e4)][_0x5210df(0x287)],_0x1dc7ab=this[_0x5210df(0x3b8)];this[_0x5210df(0x24e)](_0x224c35[_0x5210df(0x1b4)]([this['_collabCursorController'][_0x5210df(0x285)](_0x3749f2),this[_0x5210df(0x292)][_0x5210df(0x264)]])[_0x5210df(0x3bf)](_0xf527a8[_0x5210df(0x2ae)](([_0x3a44e5,_0x27d103])=>({'skeleton':_0x1dc7ab['getSkeleton'](),'cursors':[..._0x3a44e5[_0x5210df(0x2f4)]()][_0x5210df(0x3e2)](_0x52a9c1=>({..._0x52a9c1,'color':this[_0x5210df(0x292)][_0x5210df(0x2c7)](_0x52a9c1['color'])}))})))['subscribe'](_0x22f1ec=>{const _0x57b8a0=_0x5210df;if(this[_0x57b8a0(0x26a)](),_0x22f1ec){const {skeleton:_0x47f020,cursors:_0x3c1058}=_0x22f1ec;this['_updateCollabCursors'](_0x47f020,_0x3c1058);}})),this[_0x5210df(0x3fa)](),this[_0x5210df(0x185)]();}['_updateCollabCursors'](_0x1fffbe,_0x586cda){const _0x1b96f7=_0x50d4f7,{scene:_0x4b79a7,mainComponent:_0x2d62c0}=this[_0x1b96f7(0x2e4)],_0x38a050=_0x586cda['map'](_0x16a985=>new _0x9e7785(_0x16a985,_0x4b79a7,_0x1fffbe,_0x2d62c0));this[_0x1b96f7(0x2c2)]=_0x38a050,this[_0x1b96f7(0x2d9)]=_0x586cda;}[_0x50d4f7(0x196)](){const _0x10fa98=_0x50d4f7;this[_0x10fa98(0x26a)]();const {scene:_0x439cb1,mainComponent:_0x3a936b}=this['_context'],_0x1a178c=this['_docSkeletonManagerService']['getSkeleton'](),_0x3c7654=this['_cursors'][_0x10fa98(0x2ae)](_0x23b5f4=>new _0x9e7785(_0x23b5f4,_0x439cb1,_0x1a178c,_0x3a936b));this[_0x10fa98(0x2c2)]=_0x3c7654;}[_0x50d4f7(0x26a)](){const _0x2d5629=_0x50d4f7;this['_cursorShapes'][_0x2d5629(0x2fa)](_0x428505=>_0x428505[_0x2d5629(0x225)]()),this[_0x2d5629(0x2c2)]=[];}[_0x50d4f7(0x185)](){const _0x5aa0b6=_0x50d4f7,_0x4c1864=[_0x32c769[_0x5aa0b6(0x3dd)]['id']];this[_0x5aa0b6(0x24e)](this['_commandService'][_0x5aa0b6(0x183)](_0x37656f=>{const _0x4dd9c3=_0x5aa0b6;_0x4c1864['includes'](_0x37656f['id'])&&_0x37656f[_0x4dd9c3(0x36d)][_0x4dd9c3(0x287)]===this[_0x4dd9c3(0x2e4)][_0x4dd9c3(0x287)]&&this[_0x4dd9c3(0x196)]();}));}[_0x50d4f7(0x3fa)](){const _0x11b230=_0x50d4f7;this[_0x11b230(0x24e)](_0x2a357a[_0x11b230(0x2a5)](this[_0x11b230(0x2e4)][_0x11b230(0x3c5)][_0x11b230(0x324)])[_0x11b230(0x3bf)](_0xf527a8[_0x11b230(0x2b8)](_0x33a940=>_0x33a940[_0x11b230(0x1d8)]===_0x4dd679[_0x11b230(0x1d7)]['resize']),_0xf527a8[_0x11b230(0x317)](0x10))['subscribe'](()=>{const _0x2acdeb=_0x11b230;this[_0x2acdeb(0x196)]();}));}};_0x4988de=_0x5fe7f0([_0x646a92(0x1,_0x2a357a['Inject'](_0x1d4864[_0x50d4f7(0x239)])),_0x646a92(0x2,_0x2a357a['Inject'](_0x1c920a)),_0x646a92(0x3,_0x2a357a[_0x50d4f7(0x305)]),_0x646a92(0x4,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x2c4)]))],_0x4988de);const _0x7dffed=0x1,_0x4ec25=1.5;class _0x59aba4 extends _0x4dd679[_0x50d4f7(0x326)]{constructor(_0x78b976,_0x1987cc){const _0x420875=_0x50d4f7;super(_0x78b976,_0x1987cc),_0x1bb9f9(this,_0x420875(0x26f)),_0x1bb9f9(this,_0x420875(0x30d),!0x1),_0x1bb9f9(this,'_range'),_0x1bb9f9(this,_0x420875(0x302),''),_0x1bb9f9(this,_0x420875(0x2e0),'top'),_0x1bb9f9(this,_0x420875(0x325)),(_0x1987cc&&this['setShapeProps'](_0x1987cc),this['onPointerEnter$'][_0x420875(0x202)](()=>this[_0x420875(0x1d3)]({'hovered':!0x0})),this[_0x420875(0x1a3)][_0x420875(0x202)](()=>this[_0x420875(0x1d3)]({'hovered':!0x1})));}[_0x50d4f7(0x1d3)](_0x9b1414){const _0x2f78cf=_0x50d4f7;var _0x4f03f0,_0x46abd5,_0x1f1431,_0xb147bb,_0x11c951,_0x2f2f66;this[_0x2f78cf(0x26f)]=(_0x4f03f0=_0x9b1414['color'])!=null?_0x4f03f0:this[_0x2f78cf(0x26f)],this[_0x2f78cf(0x30d)]=(_0x46abd5=_0x9b1414[_0x2f78cf(0x1a7)])!=null?_0x46abd5:this[_0x2f78cf(0x30d)],this['_range']=(_0x1f1431=_0x9b1414[_0x2f78cf(0x187)])!=null?_0x1f1431:this['_range'],this[_0x2f78cf(0x302)]=(_0xb147bb=_0x9b1414[_0x2f78cf(0x2ca)])!=null?_0xb147bb:this[_0x2f78cf(0x302)],this[_0x2f78cf(0x2e0)]=(_0x11c951=_0x9b1414[_0x2f78cf(0x1ca)])!=null?_0x11c951:this[_0x2f78cf(0x2e0)],this[_0x2f78cf(0x325)]=(_0x2f2f66=_0x9b1414[_0x2f78cf(0x1e3)])!=null?_0x2f2f66:this[_0x2f78cf(0x325)],this[_0x2f78cf(0x210)]({'width':_0x9b1414[_0x2f78cf(0x272)],'height':_0x9b1414['height']});}[_0x50d4f7(0x3c3)](_0x31bfa5){const _0x1a87b8=_0x50d4f7,{row:_0x2b3a2e,column:_0x465d66}=_0x31bfa5;if(_0x2b3a2e>=this['_range'][_0x1a87b8(0x3a0)]&&_0x2b3a2e<=this[_0x1a87b8(0x255)]['endRow']&&_0x465d66>=this['_range'][_0x1a87b8(0x2f8)]&&_0x465d66<=this['_range'][_0x1a87b8(0x3f3)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x1a87b8(0x1d3)]({'hovered':!0x1});}[_0x50d4f7(0x2ab)](_0x2292cf){return!0x1;}['_draw'](_0x1fe9d8){const _0xf35721=_0x50d4f7;_0x4dd679['Rect']['drawWith'](_0x1fe9d8,{'width':this[_0xf35721(0x272)],'height':this[_0xf35721(0x3bd)],'strokeWidth':_0x4ec25,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xf35721(0x325)]}),this['_hovered']&&(_0x1fe9d8[_0xf35721(0x1f2)](),_0x1fe9d8[_0xf35721(0x208)](0x1,0x0,0x0,0x1,this[_0xf35721(0x272)],this['_labelPosition']==='bottom'?0x0:-0x14),_0x4f5177[_0xf35721(0x2cb)](_0x1fe9d8,{'text':this[_0xf35721(0x302)],'color':this[_0xf35721(0x26f)]}),_0x1fe9d8[_0xf35721(0x1b0)]());}}var _0x1fe6f9=Object[_0x50d4f7(0x2da)],_0x47a4b2=(_0x17ac07,_0x37b9c8,_0x273a33,_0x3cf3e3)=>{for(var _0xa008c6=_0x3cf3e3>0x1?void 0x0:_0x3cf3e3?_0x1fe6f9(_0x37b9c8,_0x273a33):_0x37b9c8,_0x1899db=_0x17ac07['length']-0x1,_0x5d1db4;_0x1899db>=0x0;_0x1899db--)(_0x5d1db4=_0x17ac07[_0x1899db])&&(_0xa008c6=_0x5d1db4(_0xa008c6)||_0xa008c6);return _0xa008c6;},_0x3b40aa=(_0x5a1eb7,_0x18a7d0)=>(_0x21ff2b,_0x55a7bc)=>_0x18a7d0(_0x21ff2b,_0x55a7bc,_0x5a1eb7);const _0x9ad0ea=0x1389;let _0x4cb1cf=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0xe7d10,_0x4ec0f5,_0x1a9d59,_0x1d0f63){const _0x464ee6=_0x50d4f7;super(),_0x1bb9f9(this,'_cursors',new Set()),_0x1bb9f9(this,_0x464ee6(0x294),null),(this['_context']=_0xe7d10,this[_0x464ee6(0x1a5)]=_0x4ec0f5,this[_0x464ee6(0x247)]=_0x1a9d59,this[_0x464ee6(0x292)]=_0x1d0f63,this[_0x464ee6(0x3d8)]());}[_0x50d4f7(0x3d8)](){const _0x16b81b=_0x50d4f7;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x16b81b(0x3bf)](_0xf527a8['takeUntil'](this[_0x16b81b(0x2f3)]),_0xf527a8['switchMap'](_0x5ee7ae=>{const _0x34ddeb=_0x16b81b;if(_0x5ee7ae){const _0x5276dc=_0x5ee7ae['sheetId'];return _0x224c35[_0x34ddeb(0x1b4)](this[_0x34ddeb(0x247)][_0x34ddeb(0x285)](this[_0x34ddeb(0x2e4)][_0x34ddeb(0x287)]),this[_0x34ddeb(0x292)][_0x34ddeb(0x264)])['pipe'](_0xf527a8[_0x34ddeb(0x2ae)](([_0x26c0bb,_0x13c10a])=>{const _0x5ab225=_0x34ddeb,_0x3c2264=new Map();return _0x26c0bb[_0x5ab225(0x2fa)]((_0x329e59,_0x4fe8cb)=>{const _0x2001e2=_0x5ab225;if(_0x329e59['sheetID']===_0x5276dc){const _0xe2303d={..._0x329e59};_0xe2303d[_0x2001e2(0x32d)]=this[_0x2001e2(0x292)][_0x2001e2(0x2c7)](_0x329e59[_0x2001e2(0x32d)]),_0x3c2264[_0x2001e2(0x335)](_0x4fe8cb,_0xe2303d);}}),{'skeleton':_0x5ee7ae,'cursors':_0x3c2264};}));}return _0x224c35['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xf6e291,cursors:_0x9a5082})=>{const _0x149baa=_0x16b81b;this['_removeCollabCursors'](),_0xf6e291&&this[_0x149baa(0x1de)](_0xf6e291,_0x9a5082);}),this[_0x16b81b(0x1a5)]['currentSkeleton$'][_0x16b81b(0x2cf)](_0x5d868c=>{const _0x4fedb2=_0x16b81b;if(_0x5d868c==null)return;const {skeleton:_0xbd05e9}=_0x5d868c,{scene:_0x3d5712}=this[_0x4fedb2(0x2e4)];_0x3d5712[_0x4fedb2(0x263)]['subscribeEvent'](_0x2a357a[_0x4fedb2(0x377)](_0xc07ba=>{const _0x5538a4=_0x4fedb2;var _0x34bea3,_0x18071a;const {offsetX:_0x2442f2,offsetY:_0x2a2cb0}=_0xc07ba,{x:_0x265297,y:_0xb561ea}=_0x3d5712['getRelativeToViewportCoord'](_0x4dd679['Vector2'][_0x5538a4(0x3f2)]([_0x2442f2,_0x2a2cb0])),{scaleX:_0x2812e9,scaleY:_0x4f7dec}=_0x3d5712[_0x5538a4(0x2b2)](),_0xc6dfcf=_0x3d5712['getViewport'](_0x4dd679[_0x5538a4(0x3db)][_0x5538a4(0x2ce)]),_0x2e534a=_0x3d5712[_0x5538a4(0x3e6)](_0x4dd679[_0x5538a4(0x1a8)][_0x5538a4(0x3f2)]([_0x265297,_0xb561ea]),_0xc6dfcf),_0x56ca65=_0xbd05e9[_0x5538a4(0x31d)](_0x2442f2,_0x2a2cb0,_0x2812e9,_0x4f7dec,_0x2e534a);((_0x34bea3=this[_0x5538a4(0x294)])==null?void 0x0:_0x34bea3[_0x5538a4(0x178)])===_0x56ca65[_0x5538a4(0x178)]&&((_0x18071a=this[_0x5538a4(0x294)])==null?void 0x0:_0x18071a[_0x5538a4(0x323)])===_0x56ca65['row']||this['_cursors']['forEach'](_0xb2d811=>{const _0x492623=_0x5538a4;_0xb2d811[_0x492623(0x3c3)](_0x56ca65);});},0x64));});}['_updateCollabCursors'](_0x1f5947,_0x161d7f){const _0x12aaf7=_0x50d4f7;var _0x5a63e0;const _0x578965=(_0x5a63e0=this[_0x12aaf7(0x1a5)][_0x12aaf7(0x207)]())==null?void 0x0:_0x5a63e0['skeleton'];if(!_0x578965)return;const _0x21c9e0=this['_getSheetObject']();if(!_0x21c9e0)return;this[_0x12aaf7(0x2d9)][_0x12aaf7(0x2fa)](_0x37c260=>{const _0x15d5ef=_0x12aaf7;_0x37c260[_0x15d5ef(0x1d9)]();});const {scene:_0x4bc57d}=_0x21c9e0,_0x53d93e=_0x2a4571(Array['from'](_0x161d7f['values']()))[_0x12aaf7(0x2ae)](_0x5886bb=>{const _0x2c03ac=_0x12aaf7,{color:_0xe74dca,range:_0x1ec2c6,name:_0x6cf428,selection:_0x18d68f,sheetID:_0x312110}=_0x5886bb,{startColumn:_0x159465,startRow:_0x2ec3a,endColumn:_0x11bd9b,endRow:_0x38987e}=_0x1ec2c6,_0x31ccd9=_0x5eb834[_0x2c03ac(0x33c)](_0x2ec3a,_0x159465,_0x4bc57d,_0x578965),_0x1d84c5=_0x5eb834[_0x2c03ac(0x33c)](_0x38987e,_0x11bd9b,_0x4bc57d,_0x578965),{columnHeaderHeightAndMarginTop:_0x264ab}=_0x578965,{startX:_0xe921c9,startY:_0x87bd3f}=_0x31ccd9,{endX:_0x1f241e,endY:_0x129aea}=_0x1d84c5,_0x4809d9=_0x1f241e-_0xe921c9,_0x4acd8d=_0x129aea-_0x87bd3f,_0x30f773={'labelPosition':_0x87bd3f-_0x264ab>=_0x5ef2a6?'top':_0x2c03ac(0x357),'sheetID':_0x312110,'range':_0x1ec2c6,'color':_0xe74dca,'name':_0x6cf428,'selection':_0x18d68f,'left':_0xe921c9,'top':_0x87bd3f,'width':_0x4809d9,'height':_0x4acd8d,'evented':!0x1,'zIndex':_0x9ad0ea};return new _0x59aba4(_0x6cf428,_0x30f773);});_0x4bc57d[_0x12aaf7(0x276)](_0x53d93e,_0x7dffed),this[_0x12aaf7(0x2d9)]=new Set(_0x53d93e);}[_0x50d4f7(0x26a)](){const _0x1cb400=_0x50d4f7;var _0x55fbfc;(_0x55fbfc=this[_0x1cb400(0x2d9)])==null||_0x55fbfc[_0x1cb400(0x2fa)](_0x2b93b3=>_0x2b93b3[_0x1cb400(0x225)]());}[_0x50d4f7(0x1c3)](){const _0xc34832=_0x50d4f7;return _0x5eb834[_0xc34832(0x2cd)](this[_0xc34832(0x2e4)][_0xc34832(0x33a)],this[_0xc34832(0x2e4)]);}};_0x4cb1cf=_0x47a4b2([_0x3b40aa(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x5eb834['SheetSkeletonManagerService'])),_0x3b40aa(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x1c920a)),_0x3b40aa(0x3,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x2c4)]))],_0x4cb1cf);function _0x2a4571(_0x51603e){const _0x1622b1=_0x50d4f7,_0x144878=new Map();return _0x51603e[_0x1622b1(0x2fa)](_0x4b10f5=>{const _0x2aec61=_0x1622b1;if(_0x144878[_0x2aec61(0x1fc)](_0x4b10f5[_0x2aec61(0x1ec)])){const _0xff71b8=_0x144878[_0x2aec61(0x22d)](_0x4b10f5[_0x2aec61(0x1ec)]);_0xff71b8[_0x2aec61(0x2ca)]+=',\x20'+_0x4b10f5[_0x2aec61(0x2ca)];}else _0x144878['set'](_0x4b10f5['selection'],_0x4b10f5);}),Array[_0x1622b1(0x363)](_0x144878[_0x1622b1(0x2f4)]());}var _0xb2f0fb=function(){const _0x53b354=_0x50d4f7;return _0xb2f0fb=Object[_0x53b354(0x2c9)]||function(_0xf65184){const _0x5d133d=_0x53b354;for(var _0x564d9c,_0x159ef6=0x1,_0xaf7cef=arguments['length'];_0x159ef6<_0xaf7cef;_0x159ef6++){_0x564d9c=arguments[_0x159ef6];for(var _0x53c554 in _0x564d9c)Object[_0x5d133d(0x25a)][_0x5d133d(0x179)][_0x5d133d(0x174)](_0x564d9c,_0x53c554)&&(_0xf65184[_0x53c554]=_0x564d9c[_0x53c554]);}return _0xf65184;},_0xb2f0fb[_0x53b354(0x2d2)](this,arguments);},_0x14b0dc=function(_0x5cfd39,_0xccda51){const _0x3195b4=_0x50d4f7;var _0x4352a8={};for(var _0xb62aaa in _0x5cfd39)Object['prototype'][_0x3195b4(0x179)][_0x3195b4(0x174)](_0x5cfd39,_0xb62aaa)&&_0xccda51[_0x3195b4(0x313)](_0xb62aaa)<0x0&&(_0x4352a8[_0xb62aaa]=_0x5cfd39[_0xb62aaa]);if(_0x5cfd39!=null&&typeof Object[_0x3195b4(0x38d)]=='function'){for(var _0xb71920=0x0,_0xb62aaa=Object[_0x3195b4(0x38d)](_0x5cfd39);_0xb71920<_0xb62aaa[_0x3195b4(0x34e)];_0xb71920++)_0xccda51[_0x3195b4(0x313)](_0xb62aaa[_0xb71920])<0x0&&Object[_0x3195b4(0x25a)][_0x3195b4(0x250)][_0x3195b4(0x174)](_0x5cfd39,_0xb62aaa[_0xb71920])&&(_0x4352a8[_0xb62aaa[_0xb71920]]=_0x5cfd39[_0xb62aaa[_0xb71920]]);}return _0x4352a8;},_0x19bebb=_0x5982ca[_0x50d4f7(0x237)](function(_0x136b36,_0x88badf){const _0x5f10d0=_0x50d4f7;var _0xde1bbd=_0x136b36['icon'],_0x464857=_0x136b36['id'],_0x58baa9=_0x136b36['className'],_0x652b90=_0x136b36[_0x5f10d0(0x1d0)],_0x4feed0=_0x14b0dc(_0x136b36,[_0x5f10d0(0x3f0),'id',_0x5f10d0(0x282),_0x5f10d0(0x1d0)]),_0x4be4be=_0x5f10d0(0x2a4)[_0x5f10d0(0x2a7)](_0x464857,'\x20')['concat'](_0x58baa9||'')[_0x5f10d0(0x2c1)](),_0x388c98=_0x5982ca[_0x5f10d0(0x3e7)]('_'[_0x5f10d0(0x2a7)](_0x2830cf()));return _0x2bfe94(_0xde1bbd,''['concat'](_0x464857),{'defIds':_0xde1bbd[_0x5f10d0(0x283)],'idSuffix':_0x388c98[_0x5f10d0(0x361)]},_0xb2f0fb({'ref':_0x88badf,'className':_0x4be4be},_0x4feed0),_0x652b90);});function _0x2bfe94(_0x4c6217,_0x4ebcab,_0x4286a5,_0xd1e1ef,_0x1b8b4c){const _0x34c7fd=_0x50d4f7;return _0x5982ca[_0x34c7fd(0x2fb)](_0x4c6217[_0x34c7fd(0x265)],_0xb2f0fb(_0xb2f0fb({'key':_0x4ebcab},_0xc55b14(_0x4c6217,_0x4286a5,_0x1b8b4c)),_0xd1e1ef),(_0xe8db58(_0x4c6217,_0x4286a5)[_0x34c7fd(0x35d)]||[])[_0x34c7fd(0x2ae)](function(_0xdd4842,_0x14244e){const _0x3d5aea=_0x34c7fd;return _0x2bfe94(_0xdd4842,''['concat'](_0x4ebcab,'-')[_0x3d5aea(0x2a7)](_0x4c6217['tag'],'-')[_0x3d5aea(0x2a7)](_0x14244e),_0x4286a5,void 0x0,_0x1b8b4c);}));}function _0xc55b14(_0x3daec7,_0x5336b4,_0x5e059c){const _0x4ad674=_0x50d4f7;var _0x3f26b9=_0xb2f0fb({},_0x3daec7[_0x4ad674(0x2df)]);_0x5e059c!=null&&_0x5e059c['colorChannel1']&&_0x3f26b9[_0x4ad674(0x281)]===_0x4ad674(0x3ea)&&(_0x3f26b9[_0x4ad674(0x281)]=_0x5e059c['colorChannel1']),_0x3daec7[_0x4ad674(0x265)]===_0x4ad674(0x16e)&&_0x3f26b9['id']&&(_0x3f26b9['id']=_0x3f26b9['id']+_0x5336b4[_0x4ad674(0x3b9)]),Object[_0x4ad674(0x3e0)](_0x3f26b9)[_0x4ad674(0x2fa)](function(_0x444d73){const _0xfe8d60=_0x4ad674;var _0x1ccd25=_0x444d73[0x0],_0x10905e=_0x444d73[0x1];_0x1ccd25==='mask'&&typeof _0x10905e==_0xfe8d60(0x3a5)&&(_0x3f26b9[_0x1ccd25]=_0x10905e[_0xfe8d60(0x3ed)](/url\(#(.*)\)/,'url(#$1'[_0xfe8d60(0x2a7)](_0x5336b4[_0xfe8d60(0x3b9)],')')));});var _0x26f82b=_0x5336b4[_0x4ad674(0x283)];return!_0x26f82b||_0x26f82b[_0x4ad674(0x34e)]===0x0||(_0x3daec7['tag']==='use'&&_0x3f26b9[_0x4ad674(0x2f6)]&&(_0x3f26b9[_0x4ad674(0x2f6)]=_0x3f26b9[_0x4ad674(0x2f6)]+_0x5336b4[_0x4ad674(0x3b9)]),Object[_0x4ad674(0x3e0)](_0x3f26b9)[_0x4ad674(0x2fa)](function(_0x3427a5){const _0x1d1def=_0x4ad674;var _0x379eb0=_0x3427a5[0x0],_0x1ff5c7=_0x3427a5[0x1];typeof _0x1ff5c7==_0x1d1def(0x3a5)&&(_0x3f26b9[_0x379eb0]=_0x1ff5c7[_0x1d1def(0x3ed)](/url\(#(.*)\)/,'url(#$1'[_0x1d1def(0x2a7)](_0x5336b4[_0x1d1def(0x3b9)],')')));})),_0x3f26b9;}function _0xe8db58(_0x339d3e,_0x8d9737){const _0x389528=_0x50d4f7;var _0x281532,_0x5dee3f=_0x8d9737['defIds'];return!_0x5dee3f||_0x5dee3f[_0x389528(0x34e)]===0x0?_0x339d3e:_0x339d3e[_0x389528(0x265)]==='defs'&&(!((_0x281532=_0x339d3e[_0x389528(0x35d)])===null||_0x281532===void 0x0)&&_0x281532[_0x389528(0x34e)])?_0xb2f0fb(_0xb2f0fb({},_0x339d3e),{'children':_0x339d3e[_0x389528(0x35d)][_0x389528(0x2ae)](function(_0x399a51){const _0x4efb2a=_0x389528;return typeof _0x399a51[_0x4efb2a(0x2df)]['id']=='string'&&_0x5dee3f&&_0x5dee3f[_0x4efb2a(0x313)](_0x399a51['attrs']['id'])>-0x1?_0xb2f0fb(_0xb2f0fb({},_0x399a51),{'attrs':_0xb2f0fb(_0xb2f0fb({},_0x399a51[_0x4efb2a(0x2df)]),{'id':_0x399a51[_0x4efb2a(0x2df)]['id']+_0x8d9737[_0x4efb2a(0x3b9)]})}):_0x399a51;})}):_0x339d3e;}function _0x2830cf(){const _0x501bbe=_0x50d4f7;return Math[_0x501bbe(0x372)]()[_0x501bbe(0x3af)](0x24)[_0x501bbe(0x34b)](0x2,0x8);}_0x19bebb['displayName']=_0x50d4f7(0x288);var _0x930076={'tag':_0x50d4f7(0x224),'attrs':{'fill':_0x50d4f7(0x1bc),'viewBox':_0x50d4f7(0x240),'width':_0x50d4f7(0x18f),'height':_0x50d4f7(0x18f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x50d4f7(0x1ef),'attrs':{'stroke':_0x50d4f7(0x380),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x50d4f7(0x397),'strokeWidth':1.2}}]},{'tag':_0x50d4f7(0x26d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x50d4f7(0x2f2)},'children':[{'tag':'path','attrs':{'fill':_0x50d4f7(0x375),'d':_0x50d4f7(0x396)}}]}]}],'defIds':[_0x50d4f7(0x2f2)]},_0x56e1bc=_0x5982ca[_0x50d4f7(0x237)](function(_0x5e81e4,_0x55d6ad){const _0x382581=_0x50d4f7;return _0x5982ca[_0x382581(0x2fb)](_0x19bebb,Object[_0x382581(0x2c9)]({},_0x5e81e4,{'id':_0x382581(0x2c5),'ref':_0x55d6ad,'icon':_0x930076}));});_0x56e1bc[_0x50d4f7(0x3b2)]=_0x50d4f7(0x364);var _0x40d0a1={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x50d4f7(0x18f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x50d4f7(0x1ef),'attrs':{'stroke':_0x50d4f7(0x380),'d':'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','strokeLinecap':_0x50d4f7(0x397),'strokeLinejoin':_0x50d4f7(0x397),'strokeWidth':1.2}}]},{'tag':_0x50d4f7(0x26d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x50d4f7(0x1ef),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x50d4f7(0x376)}}]}]}],'defIds':[_0x50d4f7(0x36c)]},_0x42b7de=_0x5982ca['forwardRef'](function(_0x154d4f,_0x1b113a){const _0x59ade1=_0x50d4f7;return _0x5982ca[_0x59ade1(0x2fb)](_0x19bebb,Object[_0x59ade1(0x2c9)]({},_0x154d4f,{'id':_0x59ade1(0x2b1),'ref':_0x1b113a,'icon':_0x40d0a1}));});_0x42b7de[_0x50d4f7(0x3b2)]=_0x50d4f7(0x362);function _0x4797fb(_0x368e56){const _0x4b427d=_0x50d4f7;switch(_0x368e56){case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x3e4)]:return _0x4b427d(0x2f9);case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x35f)]:return'collabStatus.conflict';case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x345)]:return'collabStatus.fetchMiss';case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x262)]:return _0x4b427d(0x2d3);case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x398)]:case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x2bf)]:return'collabStatus.syncing';case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x22e)]:case _0x505ca1['CollaborationStatus'][_0x4b427d(0x2b9)]:return'collabStatus.synced';}}function _0x32d2f0(_0x1b571a){const _0x4f0023=_0x50d4f7,{status$:_0x434ca2}=_0x1b571a,_0x100f03=_0xbe19f3['useObservable'](_0x434ca2,_0x505ca1[_0x4f0023(0x223)]['NOT_COLLAB']),_0x1c2379=_0xbe19f3[_0x4f0023(0x20e)](_0x2a357a[_0x4f0023(0x2bb)]),_0x505383=_0xbe19f3[_0x4f0023(0x20e)](_0x505ca1[_0x4f0023(0x27a)]),_0x1c99a8=_0x100f03!==_0x505ca1['CollaborationStatus'][_0x4f0023(0x3e4)],_0x429622=_0x1c2379['t'](_0x4797fb(_0x100f03)),_0x332387=_0x1c99a8?_0x40a1df[_0x4f0023(0x299)](_0x42b7de,{}):_0x40a1df[_0x4f0023(0x299)](_0x56e1bc,{}),_0x35dddd=_0x5982ca[_0x4f0023(0x20b)](()=>{const _0x48e86d=_0x4f0023;_0x1c99a8||_0x505383[_0x48e86d(0x1bd)]();},[_0x1c99a8,_0x505383]);function _0x3c946f(){const _0x363cb4=_0x4f0023;return _0x40a1df[_0x363cb4(0x384)](_0x363cb4(0x307),{'className':'univer-flex\x20univer-items-center','onClick':_0x35dddd,'children':[_0x40a1df[_0x363cb4(0x299)](_0x363cb4(0x307),{'className':_0x21e5c5['clsx'](_0x363cb4(0x1e7),{'univer-text-green-500':_0x1c99a8,'univer-text-red-500':!_0x1c99a8}),'children':_0x332387}),_0x40a1df[_0x363cb4(0x299)](_0x363cb4(0x307),{'className':_0x363cb4(0x257),'children':_0x429622})]});}return _0x1c99a8?_0x3c946f():_0x40a1df['jsx'](_0x21e5c5['Tooltip'],{'title':_0x1c2379['t'](_0x4f0023(0x3fd)),'children':_0x3c946f()});}var _0x552950=Object[_0x50d4f7(0x2da)],_0xa47006=(_0x424331,_0xabb1d4,_0x46efbd,_0x3d8dd7)=>{const _0x360fb7=_0x50d4f7;for(var _0x328e36=_0x3d8dd7>0x1?void 0x0:_0x3d8dd7?_0x552950(_0xabb1d4,_0x46efbd):_0xabb1d4,_0x26df78=_0x424331[_0x360fb7(0x34e)]-0x1,_0xb811e9;_0x26df78>=0x0;_0x26df78--)(_0xb811e9=_0x424331[_0x26df78])&&(_0x328e36=_0xb811e9(_0x328e36)||_0x328e36);return _0x328e36;},_0x5fec67=(_0x8db346,_0x9c18ce)=>(_0x5a1795,_0x406fe1)=>_0x9c18ce(_0x5a1795,_0x406fe1,_0x8db346);_0x420e4b[_0x50d4f7(0x27f)]=class extends _0x2a357a[_0x50d4f7(0x3c9)]{constructor(_0x133f73,_0x3ec787,_0x4e7266,_0x40f407){const _0x50c140=_0x50d4f7;super(),_0x1bb9f9(this,'_status$',new _0x224c35[(_0x50c140(0x27e))](_0x505ca1[_0x50c140(0x223)][_0x50c140(0x262)])),(this[_0x50c140(0x3c4)]=_0x133f73,this[_0x50c140(0x21b)]=_0x3ec787,this['_collaborationController']=_0x4e7266,this['_uiPartsService']=_0x40f407,this[_0x50c140(0x3df)](),this[_0x50c140(0x27b)]());}[_0x50d4f7(0x27b)](){const _0x1c0c34=_0x50d4f7;this[_0x1c0c34(0x24e)](this[_0x1c0c34(0x3c4)][_0x1c0c34(0x2fd)][_0x1c0c34(0x3bf)](_0x224c35[_0x1c0c34(0x25e)](()=>{const _0x1549d2=_0x1c0c34,_0x59c2f1=this[_0x1549d2(0x3c4)][_0x1549d2(0x23e)]();return _0x59c2f1?this[_0x1549d2(0x3ad)][_0x1549d2(0x370)](_0x59c2f1[_0x1549d2(0x3b1)]()):_0x224c35['of'](null);}),_0x224c35[_0x1c0c34(0x25e)](_0x30445c=>_0x30445c?_0x30445c[_0x1c0c34(0x3a9)]:_0x224c35['of'](_0x505ca1['CollaborationStatus']['NOT_COLLAB'])))[_0x1c0c34(0x2cf)](_0x3e4a79=>{this['_status$']['next'](_0x3e4a79);}));}[_0x50d4f7(0x3df)](){const _0x56007b=_0x50d4f7;this[_0x56007b(0x24e)](this[_0x56007b(0x1db)][_0x56007b(0x191)](_0xbe19f3[_0x56007b(0x1a6)][_0x56007b(0x1f1)],()=>_0xbe19f3[_0x56007b(0x230)](_0x11f05a({'status$':this[_0x56007b(0x3f6)][_0x56007b(0x301)]()}),this['_injector'])));}},_0x420e4b[_0x50d4f7(0x27f)]=_0xa47006([_0x5fec67(0x0,_0x2a357a[_0x50d4f7(0x382)]),_0x5fec67(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x173)])),_0x5fec67(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1['CollaborationController'])),_0x5fec67(0x3,_0xbe19f3[_0x50d4f7(0x2e7)])],_0x420e4b['DesktopCollaborationStatusDisplayController']);function _0x11f05a(_0x514e9a){const {status$:_0x46a609}=_0x514e9a;return function(){return _0x40a1df['jsx'](_0x32d2f0,{'status$':_0x46a609});};}var _0x1458b9=Object[_0x50d4f7(0x2da)],_0x22878e=(_0x4c081b,_0x2af431,_0x235035,_0x1c94d8)=>{const _0xee03c8=_0x50d4f7;for(var _0x2c8e55=_0x1c94d8>0x1?void 0x0:_0x1c94d8?_0x1458b9(_0x2af431,_0x235035):_0x2af431,_0x58146c=_0x4c081b[_0xee03c8(0x34e)]-0x1,_0x2b14b2;_0x58146c>=0x0;_0x58146c--)(_0x2b14b2=_0x4c081b[_0x58146c])&&(_0x2c8e55=_0x2b14b2(_0x2c8e55)||_0x2c8e55);return _0x2c8e55;},_0x1a4fda=(_0x1b67a4,_0x1bc572)=>(_0x26f623,_0x303451)=>_0x1bc572(_0x26f623,_0x303451,_0x1b67a4);let _0x2c6da3=class extends _0x2a357a[_0x50d4f7(0x3c9)]{constructor(_0x37413a,_0x23f96c,_0xf4b207,_0x329350,_0x1fbd51,_0xfe3d7d){const _0x2b454b=_0x50d4f7;super(),this['_beforeCloseService']=_0x37413a,this[_0x2b454b(0x212)]=_0x23f96c,this['_collaborationUIEventService']=_0xf4b207,this[_0x2b454b(0x319)]=_0x329350,this[_0x2b454b(0x300)]=_0x1fbd51,this[_0x2b454b(0x25f)]=_0xfe3d7d,this[_0x2b454b(0x388)](),this[_0x2b454b(0x28a)]();}[_0x50d4f7(0x388)](){const _0x25ebc7=_0x50d4f7;this[_0x25ebc7(0x24e)](this[_0x25ebc7(0x1e4)][_0x25ebc7(0x22a)](()=>{const _0x201046=_0x25ebc7;if(this['_localCacheService']['saveTaskMap'][_0x201046(0x318)])return this[_0x201046(0x25f)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x50d4f7(0x28a)](){const _0x5ac0e1=_0x50d4f7;this[_0x5ac0e1(0x24e)](this[_0x5ac0e1(0x204)][_0x5ac0e1(0x23f)][_0x5ac0e1(0x2cf)](_0x447e96=>{const _0x58e800=_0x5ac0e1;_0x447e96['id']===_0x505ca1[_0x58e800(0x365)][_0x58e800(0x1ee)]&&this[_0x58e800(0x319)][_0x58e800(0x190)]({'type':_0x21e5c5[_0x58e800(0x3fe)][_0x58e800(0x3f1)],'content':this[_0x58e800(0x25f)]['t'](_0x58e800(0x260))}),_0x447e96['id']===_0x505ca1[_0x58e800(0x365)]['CLOSE_ROOM']&&this[_0x58e800(0x319)]['show']({'type':_0x21e5c5[_0x58e800(0x3fe)][_0x58e800(0x3f1)],'content':this[_0x58e800(0x25f)]['t']('collaboration.closeRoom')}),_0x447e96['id']===_0x505ca1['CollaborationUIEventId'][_0x58e800(0x244)]&&this[_0x58e800(0x300)][_0x58e800(0x190)]({'title':this[_0x58e800(0x25f)]['t']('permission.title'),'content':this[_0x58e800(0x25f)]['t']('permission.content'),'type':_0x58e800(0x2bd),'duration':0x0}),_0x447e96['id']===_0x505ca1['CollaborationUIEventId'][_0x58e800(0x35f)]&&this[_0x58e800(0x319)][_0x58e800(0x190)]({'type':_0x21e5c5[_0x58e800(0x3fe)]['Error'],'content':this[_0x58e800(0x25f)]['t'](_0x58e800(0x310))+'('+_0x447e96[_0x58e800(0x205)]+')'}),_0x447e96['id']===_0x505ca1[_0x58e800(0x365)][_0x58e800(0x1cb)]&&this[_0x58e800(0x319)][_0x58e800(0x190)]({'type':_0x21e5c5['MessageType']['Warning'],'content':this['_localeService']['t'](_0x447e96[_0x58e800(0x205)]||'')}),_0x447e96['id']===_0x505ca1['CollaborationUIEventId'][_0x58e800(0x368)]&&this[_0x58e800(0x319)][_0x58e800(0x190)]({'type':_0x21e5c5[_0x58e800(0x3fe)]['Warning'],'content':this[_0x58e800(0x25f)]['t'](_0x58e800(0x3be))}),_0x447e96['id']===_0x505ca1[_0x58e800(0x365)][_0x58e800(0x392)]&&this[_0x58e800(0x319)]['show']({'type':_0x21e5c5['MessageType'][_0x58e800(0x1a0)],'content':this['_localeService']['t'](_0x58e800(0x34d))}),_0x447e96['id']===_0x505ca1[_0x58e800(0x365)][_0x58e800(0x231)]&&this[_0x58e800(0x319)]['show']({'type':_0x21e5c5['MessageType'][_0x58e800(0x1a0)],'content':this[_0x58e800(0x25f)]['t']('session.collaboration-timeout')});}));}};_0x2c6da3=_0x22878e([_0x1a4fda(0x0,_0xbe19f3['IBeforeCloseService']),_0x1a4fda(0x1,_0x505ca1[_0x50d4f7(0x2ff)]),_0x1a4fda(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1['CollaborationUIEventService'])),_0x1a4fda(0x3,_0xbe19f3[_0x50d4f7(0x24c)]),_0x1a4fda(0x4,_0xbe19f3[_0x50d4f7(0x22c)]),_0x1a4fda(0x5,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x2bb)]))],_0x2c6da3);const _0x5e90cf=_0x50d4f7(0x1e8),_0x21692d={},_0x3c28aa=_0x2a357a[_0x50d4f7(0x2aa)]('uni.network.url-service');var _0x584cc7=Object[_0x50d4f7(0x2da)],_0x44f80d=(_0xfe5514,_0x1971b3,_0x3d5105,_0x38c865)=>{const _0x510d23=_0x50d4f7;for(var _0x3bdb78=_0x38c865>0x1?void 0x0:_0x38c865?_0x584cc7(_0x1971b3,_0x3d5105):_0x1971b3,_0x3eee96=_0xfe5514[_0x510d23(0x34e)]-0x1,_0x15ddd8;_0x3eee96>=0x0;_0x3eee96--)(_0x15ddd8=_0xfe5514[_0x3eee96])&&(_0x3bdb78=_0x15ddd8(_0x3bdb78)||_0x3bdb78);return _0x3bdb78;},_0xde270e=(_0xe36892,_0x30fcec)=>(_0x314ceb,_0x50c916)=>_0x30fcec(_0x314ceb,_0x50c916,_0xe36892);_0x420e4b[_0x50d4f7(0x270)]=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0x7c5ddb,_0x35bc27,_0x1daf58,_0x335a6e,_0xf7b9d2){const _0x3b0dff=_0x50d4f7;super(),this[_0x3b0dff(0x28e)]=_0x7c5ddb,this['_logService']=_0x35bc27,this[_0x3b0dff(0x306)]=_0x1daf58,this['_dataLoaderService']=_0x335a6e,_0xf7b9d2?_0xf7b9d2==null||_0xf7b9d2[_0x3b0dff(0x1f4)]()[_0x3b0dff(0x1be)](()=>this[_0x3b0dff(0x3d8)]()):(this[_0x3b0dff(0x275)][_0x3b0dff(0x2d1)](_0x3b0dff(0x271),_0x3b0dff(0x1ea)),this[_0x3b0dff(0x3d8)]());}async['_init'](){const _0x1630f=_0x50d4f7,_0x28cf8e=this[_0x1630f(0x28e)][_0x1630f(0x17a)](_0x1630f(0x33a)),_0x51956a=this[_0x1630f(0x28e)][_0x1630f(0x17a)](_0x1630f(0x1d8)),_0x34eb24=this[_0x1630f(0x28e)][_0x1630f(0x17a)](_0x1630f(0x209));if(!_0x28cf8e||!_0x51956a){this['_logService'][_0x1630f(0x2d1)](_0x1630f(0x271),_0x1630f(0x3ac));return;}const _0x85dd00=await this['_dataLoaderService'][_0x1630f(0x2c6)](_0x28cf8e,Number(_0x51956a),_0x34eb24);_0x85dd00&&_0x85dd00 instanceof _0x2a357a['Workbook']&&this[_0x1630f(0x28d)](_0x85dd00);}async[_0x50d4f7(0x28d)](_0x15c59e){const _0xd7280e=_0x50d4f7;await this[_0xd7280e(0x1aa)](_0x15c59e),_0x15c59e[_0xd7280e(0x2dc)][_0xd7280e(0x3bf)](_0x224c35[_0xd7280e(0x184)](this[_0xd7280e(0x2f3)]))[_0xd7280e(0x2cf)](_0x4c38a3=>{_0x4c38a3&&this['_updateURLWithCurrentState'](_0x4c38a3);}),this[_0xd7280e(0x28e)][_0xd7280e(0x28c)][_0xd7280e(0x3bf)](_0x224c35[_0xd7280e(0x184)](this['dispose$']))[_0xd7280e(0x2cf)](()=>this[_0xd7280e(0x1aa)](_0x15c59e));}[_0x50d4f7(0x2e8)](_0x441dd5,_0xe29e38=!0x1){const _0x33fabf=_0x50d4f7,_0x22c1f6=this[_0x33fabf(0x28e)]['getParam'](_0x33fabf(0x209));_0x441dd5[_0x33fabf(0x1d1)]()!==_0x22c1f6&&this[_0x33fabf(0x28e)][_0x33fabf(0x296)](_0x33fabf(0x209),_0x441dd5[_0x33fabf(0x1d1)](),_0xe29e38);}async[_0x50d4f7(0x1aa)](_0x927319){const _0x3ebb8b=_0x50d4f7;var _0x253ed8;const _0x2df1ce=this[_0x3ebb8b(0x28e)]['getParam'](_0x3ebb8b(0x209));if(!_0x2df1ce||!_0x927319[_0x3ebb8b(0x379)](_0x2df1ce)){const _0x40e067=_0x927319[_0x3ebb8b(0x3c1)]()[0x0],_0x55f48c=_0x927319[_0x3ebb8b(0x379)](_0x40e067);if(!_0x55f48c)return;this[_0x3ebb8b(0x2e8)](_0x55f48c,!0x0),await this[_0x3ebb8b(0x306)]['executeCommand'](_0xb393d1['SetWorksheetActivateCommand']['id'],{'unitId':_0x927319[_0x3ebb8b(0x3b1)](),'subUnitId':_0x40e067});return;}((_0x253ed8=_0x927319[_0x3ebb8b(0x31b)]())==null?void 0x0:_0x253ed8[_0x3ebb8b(0x1d1)]())!==_0x2df1ce&&await this[_0x3ebb8b(0x306)][_0x3ebb8b(0x1e5)](_0xb393d1['SetWorksheetActivateCommand']['id'],{'unitId':_0x927319[_0x3ebb8b(0x3b1)](),'subUnitId':_0x2df1ce});}},_0x420e4b[_0x50d4f7(0x270)]=_0x44f80d([_0xde270e(0x0,_0x3c28aa),_0xde270e(0x1,_0x2a357a[_0x50d4f7(0x1b2)]),_0xde270e(0x2,_0x2a357a[_0x50d4f7(0x305)]),_0xde270e(0x3,_0x2a357a['Inject'](_0x505ca1[_0x50d4f7(0x218)])),_0xde270e(0x4,_0x2a357a[_0x50d4f7(0x348)](_0x215223['IRemoteInstanceService']))],_0x420e4b[_0x50d4f7(0x270)]);var _0x415032=Object[_0x50d4f7(0x2da)],_0x2fd46d=(_0x1f0a84,_0x5d1ac6,_0x2d85da,_0x4e8116)=>{const _0x2b5aae=_0x50d4f7;for(var _0x383424=_0x4e8116>0x1?void 0x0:_0x4e8116?_0x415032(_0x5d1ac6,_0x2d85da):_0x5d1ac6,_0xbbb841=_0x1f0a84[_0x2b5aae(0x34e)]-0x1,_0x4bc9f5;_0xbbb841>=0x0;_0xbbb841--)(_0x4bc9f5=_0x1f0a84[_0xbbb841])&&(_0x383424=_0x4bc9f5(_0x383424)||_0x383424);return _0x383424;},_0x5afb1f=(_0x13f329,_0x20a32d)=>(_0x12f980,_0x302937)=>_0x20a32d(_0x12f980,_0x302937,_0x13f329);let _0x3863cf=class{constructor(_0x2fe267,_0x2e2cfb,_0x147d29){const _0x5c8ad8=_0x50d4f7;this[_0x5c8ad8(0x21b)]=_0x2fe267,this[_0x5c8ad8(0x289)]=_0x2e2cfb,this[_0x5c8ad8(0x3b6)]=_0x147d29;}[_0x50d4f7(0x373)](_0x4edd02){const _0x2df6f4=_0x50d4f7;this[_0x2df6f4(0x352)](_0x4edd02),this[_0x2df6f4(0x2ef)](_0x4edd02);}['transformRemoteChangeset'](_0x5c82d4){const _0xd57235=_0x50d4f7,{unitID:_0x2efa95}=_0x5c82d4,_0x5bad9a=this['_renderManagerService'][_0xd57235(0x17e)](_0x2efa95)['with'](_0x32c769[_0xd57235(0x308)]),{redoCache:_0x8ab848}=_0x5bad9a[_0xd57235(0x336)]();if(_0x8ab848[_0xd57235(0x34e)]===0x0)return _0x5c82d4;let _0x44803d=_0x2a357a[_0xd57235(0x1fb)][_0xd57235(0x3e8)](_0x5c82d4[_0xd57235(0x2fc)][0x0]);for(let _0x1519ec=0x0;_0x1519ec<_0x8ab848[_0xd57235(0x34e)];_0x1519ec++){const _0xbf7ad1={'id':_0xd57235(0x338),'params':{..._0x8ab848[_0x1519ec]}},_0x1fa788=this[_0xd57235(0x289)][_0xd57235(0x1d2)](_0x44803d,_0xbf7ad1,!0x1);if(_0x8d16e0[_0xd57235(0x273)](_0x1fa788))throw _0x1fa788[_0xd57235(0x2bd)];_0x44803d=_0x1fa788['m1Prime'];}return{..._0x2a357a[_0xd57235(0x1fb)]['deepClone'](_0x5c82d4),'mutations':[_0x44803d]};}[_0x50d4f7(0x352)](_0x4b97b4){const _0x1de07b=_0x50d4f7,{unitID:_0x406d56}=_0x4b97b4,_0x75a460=this[_0x1de07b(0x3b6)][_0x1de07b(0x17e)](_0x406d56)[_0x1de07b(0x3b3)](_0x32c769['DocIMEInputManagerService']),{undoCache:_0x2cbe70,redoCache:_0x30aaca}=_0x75a460['getUndoRedoMutationParamsCache']();if(_0x2cbe70['length']===0x0||_0x30aaca['length']===0x0)return;const _0x41ae05=[],_0x451a21=[];let _0x476073=_0x2a357a[_0x1de07b(0x1fb)][_0x1de07b(0x3e8)](_0x4b97b4[_0x1de07b(0x2fc)][0x0]),_0x7dbb79=_0x2a357a[_0x1de07b(0x1fb)]['deepClone'](_0x4b97b4[_0x1de07b(0x2fc)][0x0]);for(let _0x38beb8=_0x2cbe70[_0x1de07b(0x34e)]-0x1;_0x38beb8>=0x0;_0x38beb8--){const _0x2ef156={'id':_0x1de07b(0x338),'params':{..._0x2cbe70[_0x38beb8]}},_0x3ac48b={'id':_0x1de07b(0x338),'params':{..._0x30aaca[_0x38beb8]}},_0x2dd9b8=this[_0x1de07b(0x289)]['transformMutation'](_0x476073,_0x2ef156,!0x1),_0x3d9ecc=this[_0x1de07b(0x289)]['transformMutation'](_0x7dbb79,_0x3ac48b,!0x1);if(_0x8d16e0[_0x1de07b(0x273)](_0x2dd9b8))throw _0x2dd9b8['error'];if(_0x8d16e0['isTransformMutationFailure'](_0x3d9ecc))throw _0x3d9ecc[_0x1de07b(0x2bd)];_0x41ae05[_0x1de07b(0x215)](_0x2dd9b8[_0x1de07b(0x1ad)]['params']),_0x451a21[_0x1de07b(0x215)](_0x3d9ecc[_0x1de07b(0x1ad)][_0x1de07b(0x36d)]),_0x476073=_0x2dd9b8['m1Prime'],_0x7dbb79=_0x3d9ecc['m1Prime'];}_0x75a460['setUndoRedoMutationParamsCache']({'undoCache':_0x41ae05,'redoCache':_0x451a21});}[_0x50d4f7(0x2ef)](_0x481116){const _0x5e9b0c=_0x50d4f7,{unitID:_0x510d85}=_0x481116,_0xabcd12=this['_renderManagerService'][_0x5e9b0c(0x17e)](_0x510d85)[_0x5e9b0c(0x3b3)](_0x32c769[_0x5e9b0c(0x308)]),_0x46e67a=_0xabcd12['getActiveRange']();if(_0x46e67a==null)return;const _0x45feb2=[{'id':_0x5e9b0c(0x338),'params':{'unitId':_0x481116['unitID'],'actions':null,'textRanges':[_0x46e67a]}}],_0x499770=this[_0x5e9b0c(0x289)][_0x5e9b0c(0x2a6)](_0x481116,_0x45feb2);if(!_0x8d16e0[_0x5e9b0c(0x18e)](_0x499770))throw _0x499770['error'];const _0x1cb537=_0x499770['m2Prime'][0x0][_0x5e9b0c(0x36d)][_0x5e9b0c(0x30b)];Array[_0x5e9b0c(0x328)](_0x1cb537)&&_0x1cb537[_0x5e9b0c(0x34e)]&&_0xabcd12['setActiveRange'](_0x1cb537[0x0]);}};_0x3863cf=_0x2fd46d([_0x5afb1f(0x0,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x173)])),_0x5afb1f(0x1,_0x8d16e0['ITransformService']),_0x5afb1f(0x2,_0x4dd679[_0x50d4f7(0x1e1)])],_0x3863cf);var _0x51b772=Object[_0x50d4f7(0x2da)],_0x375d75=(_0x389bdb,_0x3c0a54,_0x5d0530,_0x1d3a5d)=>{const _0x54da87=_0x50d4f7;for(var _0x4b59ee=_0x1d3a5d>0x1?void 0x0:_0x1d3a5d?_0x51b772(_0x3c0a54,_0x5d0530):_0x3c0a54,_0x13d6d1=_0x389bdb[_0x54da87(0x34e)]-0x1,_0x1920f3;_0x13d6d1>=0x0;_0x13d6d1--)(_0x1920f3=_0x389bdb[_0x13d6d1])&&(_0x4b59ee=_0x1920f3(_0x4b59ee)||_0x4b59ee);return _0x4b59ee;},_0x45fcfc=(_0xaec930,_0x1d7745)=>(_0x17bbf0,_0x4a7a09)=>_0x1d7745(_0x17bbf0,_0x4a7a09,_0xaec930);let _0x383c77=class{constructor(_0x232397,_0x493313,_0x392451){const _0x2f519c=_0x50d4f7;this[_0x2f519c(0x21b)]=_0x232397,this['_transformService']=_0x493313,this[_0x2f519c(0x2e6)]=_0x392451;}[_0x50d4f7(0x242)](_0x4b7847){const _0x1f62ef=_0x50d4f7;this[_0x1f62ef(0x1a1)](_0x4b7847);}['transformRemoteChangeset'](_0x4be999){const _0x33a080=_0x50d4f7,{unitID:_0x50a255}=_0x4be999,{collaboration:_0x2c972e}=this[_0x33a080(0x2e6)][_0x33a080(0x1f8)](_0x50a255);if(_0x2c972e[_0x33a080(0x34e)]===0x0)return _0x4be999;let _0x4f8af0=_0x2a357a[_0x33a080(0x1fb)][_0x33a080(0x3e8)](_0x4be999[_0x33a080(0x2fc)][0x0]);for(let _0x2ae45f=0x0;_0x2ae45f<_0x2c972e[_0x33a080(0x34e)];_0x2ae45f++){const _0x1d788b={'id':_0x33a080(0x338),'params':{'unitId':_0x2c972e[_0x2ae45f][_0x33a080(0x287)],..._0x2c972e[_0x2ae45f][_0x33a080(0x1b6)]}},_0x348e9d=this[_0x33a080(0x289)][_0x33a080(0x1d2)](_0x4f8af0,_0x1d788b,!0x1);if(_0x8d16e0[_0x33a080(0x273)](_0x348e9d))throw _0x348e9d[_0x33a080(0x2bd)];_0x4f8af0=_0x348e9d[_0x33a080(0x290)];}return{..._0x2a357a['Tools']['deepClone'](_0x4be999),'mutations':[_0x4f8af0]};}[_0x50d4f7(0x1a1)](_0x2a7f39){const _0x356a42=_0x50d4f7,{unitID:_0x4595ff}=_0x2a7f39,{history:_0x25856b,collaboration:_0x1f87c2}=this['_docStateChangeManagerService'][_0x356a42(0x1f8)](_0x4595ff);if(_0x25856b['length']===0x0&&_0x1f87c2[_0x356a42(0x34e)]===0x0)return;const _0x355205=[],_0x56747a=[];let _0x2b382c=_0x2a357a['Tools']['deepClone'](_0x2a7f39[_0x356a42(0x2fc)][0x0]),_0x530f8e=_0x2a357a[_0x356a42(0x1fb)][_0x356a42(0x3e8)](_0x2a7f39[_0x356a42(0x2fc)][0x0]);for(let _0x23685b=_0x25856b[_0x356a42(0x34e)]-0x1;_0x23685b>=0x0;_0x23685b--){const _0x3f6741={'id':_0x356a42(0x338),'params':{'unitId':_0x25856b[_0x23685b][_0x356a42(0x287)],..._0x25856b[_0x23685b][_0x356a42(0x1fd)]}},_0x55f8aa={'id':_0x356a42(0x338),'params':{'unitId':_0x25856b[_0x23685b][_0x356a42(0x287)],..._0x25856b[_0x23685b][_0x356a42(0x1b6)]}},_0x2e6111=this[_0x356a42(0x289)][_0x356a42(0x1d2)](_0x2b382c,_0x3f6741,!0x1),_0x3148f3=this[_0x356a42(0x289)]['transformMutation'](_0x530f8e,_0x55f8aa,!0x1);if(_0x8d16e0[_0x356a42(0x273)](_0x2e6111))throw _0x2e6111['error'];if(_0x8d16e0['isTransformMutationFailure'](_0x3148f3))throw _0x3148f3[_0x356a42(0x2bd)];_0x355205[_0x356a42(0x215)]({..._0x25856b[_0x23685b],'undoState':_0x2e6111[_0x356a42(0x1ad)][_0x356a42(0x36d)],'redoState':_0x3148f3[_0x356a42(0x1ad)][_0x356a42(0x36d)]}),_0x2b382c=_0x2e6111[_0x356a42(0x290)],_0x530f8e=_0x3148f3[_0x356a42(0x290)];}_0x2b382c=_0x2a357a[_0x356a42(0x1fb)]['deepClone'](_0x2a7f39[_0x356a42(0x2fc)][0x0]),_0x530f8e=_0x2a357a['Tools'][_0x356a42(0x3e8)](_0x2a7f39['mutations'][0x0]);for(let _0x2eaf79=_0x1f87c2[_0x356a42(0x34e)]-0x1;_0x2eaf79>=0x0;_0x2eaf79--){const _0x341576={'id':_0x356a42(0x338),'params':{'unitId':_0x1f87c2[_0x2eaf79][_0x356a42(0x287)],..._0x1f87c2[_0x2eaf79]['undoState']}},_0x54588f={'id':_0x356a42(0x338),'params':{'unitId':_0x1f87c2[_0x2eaf79][_0x356a42(0x287)],..._0x1f87c2[_0x2eaf79][_0x356a42(0x1b6)]}},_0x112365=this[_0x356a42(0x289)][_0x356a42(0x1d2)](_0x2b382c,_0x341576,!0x1),_0x3199a5=this[_0x356a42(0x289)][_0x356a42(0x1d2)](_0x530f8e,_0x54588f,!0x1);if(_0x8d16e0[_0x356a42(0x273)](_0x112365))throw _0x112365[_0x356a42(0x2bd)];if(_0x8d16e0[_0x356a42(0x273)](_0x3199a5))throw _0x3199a5['error'];_0x56747a[_0x356a42(0x215)]({..._0x1f87c2[_0x2eaf79],'undoState':_0x112365[_0x356a42(0x1ad)]['params'],'redoState':_0x3199a5[_0x356a42(0x1ad)][_0x356a42(0x36d)]}),_0x2b382c=_0x112365['m1Prime'],_0x530f8e=_0x3199a5[_0x356a42(0x290)];}this[_0x356a42(0x2e6)][_0x356a42(0x2c0)](_0x4595ff,{'history':_0x355205,'collaboration':_0x56747a});}};_0x383c77=_0x375d75([_0x45fcfc(0x0,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x173)])),_0x45fcfc(0x1,_0x8d16e0[_0x50d4f7(0x24a)]),_0x45fcfc(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x32c769[_0x50d4f7(0x346)]))],_0x383c77);var _0x1ff0d9=Object[_0x50d4f7(0x2da)],_0x17686d=(_0x203a80,_0x32bcf6,_0x49a1fa,_0x443691)=>{const _0x1c4446=_0x50d4f7;for(var _0x1f5c37=_0x443691>0x1?void 0x0:_0x443691?_0x1ff0d9(_0x32bcf6,_0x49a1fa):_0x32bcf6,_0x5229b0=_0x203a80[_0x1c4446(0x34e)]-0x1,_0x1a5789;_0x5229b0>=0x0;_0x5229b0--)(_0x1a5789=_0x203a80[_0x5229b0])&&(_0x1f5c37=_0x1a5789(_0x1f5c37)||_0x1f5c37);return _0x1f5c37;},_0x5aea00=(_0x5a09d5,_0x2ddb56)=>(_0x18ac48,_0x27145c)=>_0x2ddb56(_0x18ac48,_0x27145c,_0x5a09d5);let _0x18d8c3=class{constructor(_0x12a676,_0x2f0673){const _0x5d6cda=_0x50d4f7;this[_0x5d6cda(0x21b)]=_0x12a676,this['_transformService']=_0x2f0673;}['transformSelections'](_0x153ae1){const _0x2d926b=_0x50d4f7;var _0x1f2021;const _0x558cf4=this[_0x2d926b(0x21b)]['get'](_0x1d4864[_0x2d926b(0x221)]),_0x213ce0=(_0x1f2021=_0x558cf4[_0x2d926b(0x334)]())!=null?_0x1f2021:[];if(_0x213ce0[_0x2d926b(0x34e)]===0x0)return;const _0x42c019=_0x153ae1[_0x2d926b(0x197)],_0x1d75bc=[{'id':_0x2d926b(0x338),'params':{'unitId':_0x42c019,'actions':null,'textRanges':_0x213ce0}}],_0x143ca3=this[_0x2d926b(0x289)][_0x2d926b(0x2a6)](_0x153ae1,_0x1d75bc);if(!_0x8d16e0[_0x2d926b(0x18e)](_0x143ca3))throw _0x143ca3[_0x2d926b(0x2bd)];const _0x503669=_0x143ca3['m2Prime'][0x0][_0x2d926b(0x36d)][_0x2d926b(0x30b)];Array[_0x2d926b(0x328)](_0x503669)&&_0x503669[_0x2d926b(0x34e)]&&_0x558cf4['replaceDocRanges'](_0x503669,{'unitId':_0x42c019,'subUnitId':_0x42c019},!0x1);}};_0x18d8c3=_0x17686d([_0x5aea00(0x0,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x173)])),_0x5aea00(0x1,_0x8d16e0[_0x50d4f7(0x24a)])],_0x18d8c3);var _0x260398=Object[_0x50d4f7(0x2da)],_0x3941ae=(_0x1e2c40,_0x475c34,_0x5016c4,_0xc7be09)=>{const _0x51dcdb=_0x50d4f7;for(var _0x3030c1=_0xc7be09>0x1?void 0x0:_0xc7be09?_0x260398(_0x475c34,_0x5016c4):_0x475c34,_0x32a1e3=_0x1e2c40[_0x51dcdb(0x34e)]-0x1,_0x128e52;_0x32a1e3>=0x0;_0x32a1e3--)(_0x128e52=_0x1e2c40[_0x32a1e3])&&(_0x3030c1=_0x128e52(_0x3030c1)||_0x3030c1);return _0x3030c1;},_0x4d8236=(_0xa7dd7f,_0x3587a2)=>(_0x4fd532,_0x3ceeb1)=>_0x3587a2(_0x4fd532,_0x3ceeb1,_0xa7dd7f);let _0xeb3ea3=class extends _0x2a357a['Disposable']{constructor(_0x215d5a,_0x254d79,_0x3d6b75,_0x153e6a,_0x1917e1,_0x2bd44e,_0x38a48a,_0x4fa24b){const _0x377cc5=_0x50d4f7;super(),_0x1bb9f9(this,'_status$',new _0x224c35['BehaviorSubject'](_0x505ca1[_0x377cc5(0x223)][_0x377cc5(0x262)])),(this['_docStateChangeManagerService']=_0x215d5a,this[_0x377cc5(0x3ad)]=_0x254d79,this[_0x377cc5(0x1b3)]=_0x3d6b75,this['_docTransformStateCacheService']=_0x153e6a,this[_0x377cc5(0x2be)]=_0x1917e1,this[_0x377cc5(0x314)]=_0x2bd44e,this['_messageService']=_0x38a48a,this['_localeService']=_0x4fa24b,this[_0x377cc5(0x258)]());}['_initEntityListener'](){const _0x360cfb=_0x50d4f7;this['disposeWithMe'](this[_0x360cfb(0x3ad)][_0x360cfb(0x177)][_0x360cfb(0x2cf)](_0x1876b3=>{const _0x4469cb=_0x360cfb,_0xe9308d=this[_0x4469cb(0x2e6)][_0x4469cb(0x37c)][_0x4469cb(0x2cf)](_0x7a9e39=>{const _0x2572af=_0x4469cb;if(_0x7a9e39==null)return;const {unitId:_0x16f4fd,redoState:_0x58bb3c,commandId:_0x2c918c}=_0x7a9e39;if(_0x16f4fd!==_0x1876b3[_0x2572af(0x197)])return;const _0x2c08df={'id':_0x2c918c,'type':_0x2a357a[_0x2572af(0x24d)][_0x2572af(0x2ed)],'params':{'unitId':_0x16f4fd,'actions':_0x58bb3c[_0x2572af(0x367)],'textRanges':null}};_0x1876b3[_0x2572af(0x2d8)](_0x2c08df);});if(_0x1876b3[_0x4469cb(0x24e)](_0xe9308d),_0x1876b3 instanceof _0x505ca1[_0x4469cb(0x3b4)]){const _0xa26484={'onTransformIME':_0x2e0a97=>this[_0x4469cb(0x1b3)]['transformIMECache'](_0x2e0a97),'onTransformState':_0x424f31=>this[_0x4469cb(0x238)]['transformStateCache'](_0x424f31),'onTransformSelections':_0xe66934=>this[_0x4469cb(0x2be)][_0x4469cb(0x3c7)](_0xe66934),'onSyncEditingCollabCursor':_0x6d3aff=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x6d3aff),'onTransformRemoteChangesetByIMECache':_0xfda9e2=>this[_0x4469cb(0x1b3)][_0x4469cb(0x37b)](_0xfda9e2),'onTransformRemoteChangesetByStateCache':_0x2c41f6=>this[_0x4469cb(0x238)][_0x4469cb(0x37b)](_0x2c41f6)};_0x1876b3[_0x4469cb(0x200)](_0xa26484);}}));}};_0xeb3ea3=_0x3941ae([_0x4d8236(0x0,_0x2a357a[_0x50d4f7(0x229)](_0x32c769[_0x50d4f7(0x346)])),_0x4d8236(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1[_0x50d4f7(0x3ab)])),_0x4d8236(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x3863cf)),_0x4d8236(0x3,_0x2a357a[_0x50d4f7(0x229)](_0x383c77)),_0x4d8236(0x4,_0x2a357a[_0x50d4f7(0x229)](_0x18d8c3)),_0x4d8236(0x5,_0x2a357a[_0x50d4f7(0x229)](_0x5baa2e)),_0x4d8236(0x6,_0xbe19f3[_0x50d4f7(0x24c)]),_0x4d8236(0x7,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x2bb)]))],_0xeb3ea3);var _0xebbce=Object[_0x50d4f7(0x2da)],_0x5e799a=(_0xa668cc,_0x3d94fd,_0x2530e6,_0x939221)=>{for(var _0x2ce809=_0x939221>0x1?void 0x0:_0x939221?_0xebbce(_0x3d94fd,_0x2530e6):_0x3d94fd,_0x28019c=_0xa668cc['length']-0x1,_0x27ddd5;_0x28019c>=0x0;_0x28019c--)(_0x27ddd5=_0xa668cc[_0x28019c])&&(_0x2ce809=_0x27ddd5(_0x2ce809)||_0x2ce809);return _0x2ce809;},_0x4bb0fc=(_0x109f9d,_0x136947)=>(_0x27db10,_0x4b25dc)=>_0x136947(_0x27db10,_0x4b25dc,_0x109f9d);let _0x1d1918=class extends _0x2a357a['Disposable']{constructor(_0x14090c,_0x14dde7,_0x2afd3d){const _0x46330e=_0x50d4f7;super(),_0x1bb9f9(this,'_cachedData',new Map()),_0x1bb9f9(this,'_saveTaskMap',new Map()),_0x1bb9f9(this,'_disabled',!0x1),(this[_0x46330e(0x171)]=_0x14090c,this[_0x46330e(0x29b)]=_0x14dde7,this[_0x46330e(0x3a6)]=_0x2afd3d);}[_0x50d4f7(0x284)](){const _0x102a42=_0x50d4f7;this[_0x102a42(0x195)]=!0x0;}[_0x50d4f7(0x2d7)](){const _0x32cc9c=_0x50d4f7;this[_0x32cc9c(0x195)]=!0x1;}get['saveTaskMap'](){const _0x1d76ed=_0x50d4f7;return this[_0x1d76ed(0x28f)];}[_0x50d4f7(0x225)](){const _0xde27f8=_0x50d4f7;this[_0xde27f8(0x3e3)]()[_0xde27f8(0x1be)](()=>super[_0xde27f8(0x225)]());}async[_0x50d4f7(0x193)](_0x1dbb47){const _0x58af57=_0x50d4f7;return this[_0x58af57(0x195)]?null:this[_0x58af57(0x29b)][_0x58af57(0x20c)](_0x505ca1['getLocalCacheKey'](_0x1dbb47));}async[_0x50d4f7(0x233)](_0x5eb533,_0x4a814c){const _0x2256aa=_0x50d4f7;return!!this[_0x2256aa(0x29b)][_0x2256aa(0x3f4)](_0x5eb533,_0x4a814c);}[_0x50d4f7(0x21f)](_0x2c3fa8,_0x406cc2,_0x236ded,_0x19812d){const _0x22e09a=_0x50d4f7,_0x2c6fb8=this[_0x22e09a(0x3a6)][_0x22e09a(0x349)](_0x2c3fa8);this[_0x22e09a(0x176)][_0x22e09a(0x335)](_0x2c3fa8,{'unitID':_0x2c3fa8,'type':_0x406cc2,'awaitingChangeset':_0x236ded,'mutations':_0x19812d,'rev':_0x2c6fb8}),this[_0x22e09a(0x28f)]['has'](_0x2c3fa8)||this['_scheduleSaving'](_0x2c3fa8);}[_0x50d4f7(0x203)](_0x3be70d){const _0x2fa4f5=_0x50d4f7,_0x4f7ca9=this[_0x2fa4f5(0x37a)]();_0x4f7ca9===0x0?this[_0x2fa4f5(0x2e3)](_0x3be70d):this[_0x2fa4f5(0x28f)][_0x2fa4f5(0x335)](_0x3be70d,setTimeout(()=>this[_0x2fa4f5(0x2e3)](_0x3be70d),_0x4f7ca9));}[_0x50d4f7(0x37a)](){const _0x19f063=_0x50d4f7;var _0x50b777;return(_0x50b777=this[_0x19f063(0x171)][_0x19f063(0x194)](_0x505ca1['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x50b777:_0x505ca1[_0x19f063(0x3aa)];}[_0x50d4f7(0x2e3)](_0x4b14da){const _0x19ec07=_0x50d4f7,_0x45bf41=this['_saveTaskMap'][_0x19ec07(0x22d)](_0x4b14da);return _0x45bf41!==void 0x0&&window[_0x19ec07(0x2ad)](_0x45bf41),this[_0x19ec07(0x29b)][_0x19ec07(0x3f4)](_0x505ca1['getLocalCacheKey'](_0x4b14da),this['_cachedData'][_0x19ec07(0x22d)](_0x4b14da))[_0x19ec07(0x1be)](()=>this[_0x19ec07(0x28f)]['delete'](_0x4b14da));}async[_0x50d4f7(0x3e3)](){const _0x25ea2d=_0x50d4f7,_0x46ea5e=[];this['_saveTaskMap']['forEach']((_0x510e98,_0x4c4ddc)=>{const _0x48ee3c=_0x45fd;window['clearTimeout'](_0x510e98),_0x46ea5e['push'](this['_saveCache'](_0x4c4ddc)[_0x48ee3c(0x1be)](()=>{const _0xcfc3f3=_0x48ee3c;this[_0xcfc3f3(0x28f)][_0xcfc3f3(0x280)](_0x4c4ddc);}));}),await Promise[_0x25ea2d(0x33f)](_0x46ea5e);}};_0x1d1918=_0x5e799a([_0x4bb0fc(0x0,_0x2a357a[_0x50d4f7(0x25d)]),_0x4bb0fc(0x1,_0x2a357a['ILocalStorageService']),_0x4bb0fc(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x8d16e0[_0x50d4f7(0x320)]))],_0x1d1918);class _0xaa8871 extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(){const _0x2291fc=_0x50d4f7;super(),_0x1bb9f9(this,_0x2291fc(0x28c)),this['urlChange$']=_0x224c35[_0x2291fc(0x259)](window,_0x2291fc(0x36e))[_0x2291fc(0x3bf)](_0x224c35[_0x2291fc(0x184)](this[_0x2291fc(0x2f3)]),_0x224c35[_0x2291fc(0x17f)](0x1),_0x224c35['mapTo'](void 0x0));}[_0x50d4f7(0x296)](_0x10661f,_0x2c1613,_0xcea816=!0x1){const _0x14ce52=_0x50d4f7,_0x317b6f=new URL(window[_0x14ce52(0x182)]['href']);_0x317b6f[_0x14ce52(0x342)][_0x14ce52(0x335)](_0x10661f,_0x2c1613),_0xcea816?window[_0x14ce52(0x3f7)][_0x14ce52(0x25b)]('','',_0x317b6f[_0x14ce52(0x3af)]()):window[_0x14ce52(0x3f7)][_0x14ce52(0x383)]('','',_0x317b6f[_0x14ce52(0x3af)]());}[_0x50d4f7(0x2f7)](_0x2a6b1c,_0xe3f33e=!0x1){const _0x28c973=_0x50d4f7,_0x3eeb18=new URL(window[_0x28c973(0x182)][_0x28c973(0x298)]);_0x3eeb18[_0x28c973(0x342)][_0x28c973(0x280)](_0x2a6b1c),_0xe3f33e?window['history']['replaceState']('','',_0x3eeb18[_0x28c973(0x3af)]()):window[_0x28c973(0x3f7)][_0x28c973(0x383)]('','',_0x3eeb18[_0x28c973(0x3af)]());}[_0x50d4f7(0x17a)](_0x43b5ca){const _0x596b8e=_0x50d4f7;var _0x32f799;return(_0x32f799=new URL(window[_0x596b8e(0x182)]['href'])[_0x596b8e(0x342)][_0x596b8e(0x22d)](_0x43b5ca))!=null?_0x32f799:void 0x0;}}var _0x320f0f=Object[_0x50d4f7(0x3de)],_0x300be7=Object[_0x50d4f7(0x2da)],_0x37209b=(_0x417015,_0x49105e,_0x4c75a8)=>_0x49105e in _0x417015?_0x320f0f(_0x417015,_0x49105e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c75a8}):_0x417015[_0x49105e]=_0x4c75a8,_0x32b9df=(_0x588f1c,_0x3710da,_0x1a2ef5,_0x2c481b)=>{for(var _0xef9281=_0x2c481b>0x1?void 0x0:_0x2c481b?_0x300be7(_0x3710da,_0x1a2ef5):_0x3710da,_0x10cb23=_0x588f1c['length']-0x1,_0x5e3c62;_0x10cb23>=0x0;_0x10cb23--)(_0x5e3c62=_0x588f1c[_0x10cb23])&&(_0xef9281=_0x5e3c62(_0xef9281)||_0xef9281);return _0xef9281;},_0x265473=(_0x4c3f43,_0x1cbcb1)=>(_0x451291,_0x45dc5f)=>_0x1cbcb1(_0x451291,_0x45dc5f,_0x4c3f43),_0x63dcca=(_0x231c80,_0x16c644,_0x41d327)=>_0x37209b(_0x231c80,_0x16c644+'',_0x41d327);const _0x134f5a='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x420e4b['UniverCollaborationClientUIPlugin']=class extends _0x2a357a['Plugin']{constructor(_0x22bc62=_0x21692d,_0x35839d,_0x1b309a,_0x18f767){const _0x4f0b6f=_0x50d4f7;super(),this[_0x4f0b6f(0x2ac)]=_0x22bc62,this[_0x4f0b6f(0x3b6)]=_0x35839d,this[_0x4f0b6f(0x21b)]=_0x1b309a,this[_0x4f0b6f(0x171)]=_0x18f767;const {..._0x17eb3c}=_0x2a357a[_0x4f0b6f(0x2b4)]({},_0x21692d,this[_0x4f0b6f(0x2ac)]);this[_0x4f0b6f(0x171)]['setConfig'](_0x5e90cf,_0x17eb3c);}[_0x50d4f7(0x39d)](){const _0x339cde=_0x50d4f7;this['_registerDependencies'](),this[_0x339cde(0x1dd)]();}[_0x50d4f7(0x39b)](){this['_registerRenderDependencies']();}[_0x50d4f7(0x356)](){const _0x3c311b=_0x50d4f7;var _0x213440;const _0x345b38=[[_0x5d8afc],[_0x18d8c3],[_0x3863cf],[_0x383c77],[_0x5baa2e],[_0x3c28aa,{'useClass':_0xaa8871}],[_0x4e7e7b[_0x3c311b(0x3d2)],{'useClass':_0x4e7e7b[_0x3c311b(0x304)]}],[_0x505ca1[_0x3c311b(0x2ff)],{'useClass':_0x1d1918}],[_0x420e4b[_0x3c311b(0x27f)]],[_0xeb3ea3],[_0x2c6da3],[_0x1c920a],[_0x1e2940],[_0x420e4b[_0x3c311b(0x270)]]];_0x2a357a[_0x3c311b(0x38b)](this[_0x3c311b(0x21b)],_0x2a357a[_0x3c311b(0x309)](_0x345b38,(_0x213440=this['_config'])==null?void 0x0:_0x213440[_0x3c311b(0x30a)]));}[_0x50d4f7(0x1ae)](){const _0xec8069=_0x50d4f7;this[_0xec8069(0x24e)](this['_renderManagerService']['registerRenderModule'](_0x2a357a[_0xec8069(0x19b)][_0xec8069(0x3d5)],[_0x4988de])),this[_0xec8069(0x24e)](this[_0xec8069(0x3b6)][_0xec8069(0x21a)](_0x2a357a[_0xec8069(0x19b)][_0xec8069(0x37f)],[_0x4cb1cf]));}['_initDependencies'](){const _0x4b330f=_0x50d4f7;_0x2a357a[_0x4b330f(0x3b7)](this[_0x4b330f(0x21b)],[[_0x1c920a],[_0x420e4b[_0x4b330f(0x27f)]],[_0xeb3ea3],[_0x2c6da3],[_0x420e4b[_0x4b330f(0x270)]]]);}},_0x63dcca(_0x420e4b['UniverCollaborationClientUIPlugin'],'pluginName',_0x134f5a),_0x420e4b[_0x50d4f7(0x222)]=_0x32b9df([_0x2a357a[_0x50d4f7(0x2a2)](_0x505ca1[_0x50d4f7(0x1f0)]),_0x265473(0x1,_0x4dd679[_0x50d4f7(0x1e1)]),_0x265473(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x173)])),_0x265473(0x3,_0x2a357a['IConfigService'])],_0x420e4b['UniverCollaborationClientUIPlugin']);var _0x24993c=Object['getOwnPropertyDescriptor'],_0x91be4b=(_0x367dc1,_0x2c146f,_0x12a757,_0x14c4f3)=>{for(var _0x287fe5=_0x14c4f3>0x1?void 0x0:_0x14c4f3?_0x24993c(_0x2c146f,_0x12a757):_0x2c146f,_0xa652f=_0x367dc1['length']-0x1,_0x4f2855;_0xa652f>=0x0;_0xa652f--)(_0x4f2855=_0x367dc1[_0xa652f])&&(_0x287fe5=_0x4f2855(_0x287fe5)||_0x287fe5);return _0x287fe5;},_0x3c4835=(_0x3e5a5d,_0x19c1ba)=>(_0x1a9569,_0xa19774)=>_0x19c1ba(_0x1a9569,_0xa19774,_0x3e5a5d);_0x420e4b['BrowserCollaborationSocketService']=class extends _0x505ca1['CollaborationSocketService']{constructor(_0x8d711a,_0x4f82b6,_0x27d54e,_0x4029be,_0x5cb4f2){super(_0x8d711a,_0x4f82b6,_0x27d54e,_0x4029be,_0x5cb4f2);}async[_0x50d4f7(0x2af)](_0x12562d){const _0x1faf9b=_0x50d4f7,_0x58b129=await this[_0x1faf9b(0x211)](),_0x277788=this[_0x1faf9b(0x2d5)](_0x12562d,_0x58b129);return this['_doCreateSocket'](_0x277788);}[_0x50d4f7(0x2d5)](_0x1a1ec8,_0x3df2ba){const _0x337184=_0x50d4f7,_0x524e4d=typeof window>'u'?new URL(_0x1a1ec8):new URL(_0x1a1ec8,window[_0x337184(0x182)][_0x337184(0x303)]);_0x524e4d['searchParams'][_0x337184(0x335)]('sessionTicket',_0x3df2ba);const _0x4b2d2b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x337184(0x182)][_0x337184(0x278)]);return _0x4b2d2b[_0x337184(0x22d)](_0x337184(0x399))&&_0x524e4d[_0x337184(0x342)][_0x337184(0x335)](_0x337184(0x399),_0x4b2d2b[_0x337184(0x22d)]('runId')),_0x524e4d[_0x337184(0x3af)]();}async[_0x50d4f7(0x211)](){const _0x639199=_0x50d4f7;var _0x3a35dd,_0x3f8de0,_0x5391a8;const _0xa57faf=this[_0x639199(0x171)]['getConfig'](_0x505ca1[_0x639199(0x395)]),_0x1c6225=(_0x3a35dd=_0xa57faf==null?void 0x0:_0xa57faf[_0x639199(0x3cc)])!=null?_0x3a35dd:_0x505ca1[_0x639199(0x38e)];return(_0x5391a8=(_0x3f8de0=(await this[_0x639199(0x3fb)][_0x639199(0x22d)](_0x1c6225,{'headers':{'Content-Type':'application/json'}}))[_0x639199(0x252)])==null?void 0x0:_0x3f8de0[_0x639199(0x1c8)])!=null?_0x5391a8:'';}},_0x420e4b[_0x50d4f7(0x21e)]=_0x91be4b([_0x3c4835(0x0,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x173)])),_0x3c4835(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x4e7e7b['HTTPService'])),_0x3c4835(0x2,_0x2a357a[_0x50d4f7(0x25d)]),_0x3c4835(0x3,_0x2a357a[_0x50d4f7(0x1b2)]),_0x3c4835(0x4,_0x8d16e0[_0x50d4f7(0x3b5)])],_0x420e4b[_0x50d4f7(0x21e)]);const _0x3a11a5=0x7530,_0x521326=_0x50d4f7(0x286);class _0x228af0 extends _0x2a357a['Disposable']{constructor(){const _0x489523=_0x50d4f7;super(),_0x1bb9f9(this,'_id',_0x2a357a[_0x489523(0x1c5)]()),_0x1bb9f9(this,_0x489523(0x20f),new Set()),_0x1bb9f9(this,_0x489523(0x374),new Map()),_0x1bb9f9(this,_0x489523(0x1ce),null),_0x1bb9f9(this,_0x489523(0x350),new Map()),_0x1bb9f9(this,_0x489523(0x1f9),new Map()),this[_0x489523(0x3d8)]();}['dispose'](){const _0x17de20=_0x50d4f7;super[_0x17de20(0x225)](),this[_0x17de20(0x350)][_0x17de20(0x2fa)]((_0x4166dd,_0x4fa94a)=>this[_0x17de20(0x2cc)](_0x4fa94a)),this[_0x17de20(0x1ce)]&&window[_0x17de20(0x261)](this[_0x17de20(0x1ce)]);}[_0x50d4f7(0x32a)](_0x5f47a2){const _0x421eed=_0x50d4f7;return this[_0x421eed(0x37e)](_0x5f47a2)[_0x421eed(0x3bf)](_0x224c35[_0x421eed(0x2f0)]());}['editingUnit'](_0x4acb56){const _0x5dafe5=_0x50d4f7;this[_0x5dafe5(0x20f)][_0x5dafe5(0x318)]===0x0&&this[_0x5dafe5(0x19d)](),this[_0x5dafe5(0x20f)][_0x5dafe5(0x2ba)](_0x4acb56),this[_0x5dafe5(0x2ec)]({'type':0x0,'memberID':this[_0x5dafe5(0x1b8)],'unitIDs':[_0x4acb56],'isForwarded':!0x1});}[_0x50d4f7(0x39f)](_0x30484e){const _0x466f30=_0x50d4f7;this[_0x466f30(0x20f)]['delete'](_0x30484e),this[_0x466f30(0x20f)][_0x466f30(0x318)]===0x0&&this[_0x466f30(0x1ce)]&&window[_0x466f30(0x261)](this['_heartbeatTimer']);}[_0x50d4f7(0x3d8)](){const _0x142d37=_0x50d4f7;this[_0x142d37(0x24e)](_0x2a357a['toDisposable'](_0x224c35['fromEvent'](window,'storage')[_0x142d37(0x2cf)](_0xa7cdab=>{const _0x120c4b=_0x142d37;if(_0xa7cdab[_0x120c4b(0x34f)]!==_0x521326||!_0xa7cdab['newValue'])return;const _0xc03a0f=JSON['parse'](_0xa7cdab[_0x120c4b(0x199)]);this[_0x120c4b(0x3cd)](_0xc03a0f);}))),window[_0x142d37(0x189)]('unload',()=>this[_0x142d37(0x2ec)]({'type':0x1,'memberID':this[_0x142d37(0x1b8)],'unitIDs':Array['from'](this[_0x142d37(0x20f)])}));}[_0x50d4f7(0x3cd)](_0x46c531){const _0x4ec9ed=_0x50d4f7;switch(_0x46c531[_0x4ec9ed(0x1d8)]){case 0x0:this[_0x4ec9ed(0x256)](_0x46c531);break;case 0x1:this['_handleLeaveEvent'](_0x46c531);break;case 0x2:this[_0x4ec9ed(0x30c)](_0x46c531);break;}}['_handleJoinEvent'](_0x155087){const _0x19a86b=_0x50d4f7,{unitIDs:_0x3e2c3a,memberID:_0x408fe7,isForwarded:_0x4f3af1}=_0x155087;_0x3e2c3a[_0x19a86b(0x2fa)](_0x493777=>{const _0x4711ea=_0x19a86b;if(!_0x4f3af1&&this[_0x4711ea(0x374)]['has'](_0x493777)&&this[_0x4711ea(0x37e)](_0x493777)[_0x4711ea(0x37d)](_0x505ca1['UnitStatus'][_0x4711ea(0x186)]),!this['_unitOnClients'][_0x4711ea(0x1fc)](_0x493777)||!this[_0x4711ea(0x374)][_0x4711ea(0x22d)](_0x493777)[_0x4711ea(0x1fc)](_0x408fe7)){const _0x378874=this['_unitOnClients'][_0x4711ea(0x22d)](_0x493777)||new Set();_0x378874[_0x4711ea(0x2ba)](_0x408fe7),this['_unitOnClients'][_0x4711ea(0x335)](_0x493777,_0x378874),this['_scheduleClearOtherTimer'](_0x408fe7);}}),_0x4f3af1||this[_0x19a86b(0x2ec)]({'type':0x0,'memberID':this[_0x19a86b(0x1b8)],'unitIDs':[...this[_0x19a86b(0x20f)]],'isForwarded':!0x0});}[_0x50d4f7(0x22f)](_0x3cae66){const _0x5958cb=_0x50d4f7;this['_removeClearOtherTimer'](_0x3cae66);const _0x463471=window[_0x5958cb(0x1f6)](()=>{const _0x2cc3f9=_0x5958cb;this[_0x2cc3f9(0x374)]['forEach'](_0xffea16=>{const _0x201b86=_0x2cc3f9;_0xffea16[_0x201b86(0x280)](_0x3cae66);});},_0x3a11a5*0x2);this[_0x5958cb(0x350)][_0x5958cb(0x335)](_0x3cae66,_0x463471);}[_0x50d4f7(0x2cc)](_0x5cc4bc){const _0x43b923=_0x50d4f7;if(this[_0x43b923(0x350)][_0x43b923(0x1fc)](_0x5cc4bc)){const _0x328d12=this[_0x43b923(0x350)][_0x43b923(0x22d)](_0x5cc4bc);_0x328d12&&window[_0x43b923(0x2ad)](_0x328d12),this[_0x43b923(0x350)][_0x43b923(0x335)](_0x5cc4bc,null);}}['_handleLeaveEvent'](_0x39f0d5){const _0x89cf56=_0x50d4f7,{memberID:_0x4e15d4,unitIDs:_0x3fe325}=_0x39f0d5;_0x3fe325['forEach'](_0x1a3d8d=>{const _0x52a2c5=_0x45fd;var _0x5ee251;const _0x2e4d85=this['_unitOnClients'][_0x52a2c5(0x22d)](_0x1a3d8d);_0x2e4d85&&(_0x2e4d85['delete'](_0x4e15d4),(_0x5ee251=this[_0x52a2c5(0x37e)](_0x1a3d8d))==null||_0x5ee251[_0x52a2c5(0x37d)](_0x2e4d85[_0x52a2c5(0x318)]===0x0?_0x505ca1[_0x52a2c5(0x24b)][_0x52a2c5(0x2a1)]:_0x505ca1[_0x52a2c5(0x24b)][_0x52a2c5(0x186)]));}),this[_0x89cf56(0x2cc)](_0x4e15d4);}[_0x50d4f7(0x30c)](_0x31ae8b){const _0x4c23d5=_0x50d4f7;this[_0x4c23d5(0x22f)](_0x31ae8b[_0x4c23d5(0x3f5)]);}[_0x50d4f7(0x2ec)](_0x1536b3){const _0x2f44a6=_0x50d4f7;localStorage['setItem'](_0x521326,JSON[_0x2f44a6(0x2a3)](_0x1536b3));}[_0x50d4f7(0x19d)](){const _0x5d7ce4=_0x50d4f7;this[_0x5d7ce4(0x1ce)]=window[_0x5d7ce4(0x3d1)](()=>{const _0x5287c1=_0x5d7ce4;this[_0x5287c1(0x2ec)]({'type':0x2,'memberID':this[_0x5287c1(0x1b8)]});},_0x3a11a5);}[_0x50d4f7(0x37e)](_0xbad01f){const _0x597ece=_0x50d4f7;return this[_0x597ece(0x1f9)][_0x597ece(0x1fc)](_0xbad01f)||this[_0x597ece(0x1f9)][_0x597ece(0x335)](_0xbad01f,new _0x224c35[(_0x597ece(0x27e))](_0x505ca1[_0x597ece(0x24b)][_0x597ece(0x2a1)])),this[_0x597ece(0x1f9)][_0x597ece(0x22d)](_0xbad01f);}}var _0x36a70c=(_0x274806=>(_0x274806[_0x274806[_0x50d4f7(0x192)]=0x0]=_0x50d4f7(0x192),_0x274806[_0x274806['OK']=0x1]='OK',_0x274806[_0x274806[_0x50d4f7(0x347)]=0x2]=_0x50d4f7(0x347),_0x274806[_0x274806[_0x50d4f7(0x244)]=0x3]='PERMISSION_DENIED',_0x274806[_0x274806['NOT_FOUND']=0x4]='NOT_FOUND',_0x274806[_0x274806[_0x50d4f7(0x2dd)]=0x5]='UNAUTHENTICATED',_0x274806[_0x274806[_0x50d4f7(0x353)]=0x6]='ALREADY_EXISTS',_0x274806[_0x274806[_0x50d4f7(0x3f9)]=0x7]='INVALID_ARGUMENT',_0x274806[_0x274806[_0x50d4f7(0x2b0)]=0x8]='TOO_MANY_REQUESTS',_0x274806[_0x274806[_0x50d4f7(0x332)]=0x9]=_0x50d4f7(0x332),_0x274806[_0x274806[_0x50d4f7(0x266)]=0xa]=_0x50d4f7(0x266),_0x274806[_0x274806[_0x50d4f7(0x394)]=0x1389]=_0x50d4f7(0x394),_0x274806[_0x274806[_0x50d4f7(0x2fe)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x274806[_0x274806[_0x50d4f7(0x228)]=0x1772]=_0x50d4f7(0x228),_0x274806[_0x274806[_0x50d4f7(0x38f)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x274806[_0x274806[_0x50d4f7(0x1d4)]=0x1b59]=_0x50d4f7(0x1d4),_0x274806[_0x274806[_0x50d4f7(0x340)]=0x1b5a]=_0x50d4f7(0x340),_0x274806[_0x274806[_0x50d4f7(0x19e)]=0x1b5b]=_0x50d4f7(0x19e),_0x274806[_0x274806['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x50d4f7(0x213),_0x274806[_0x274806[_0x50d4f7(0x33d)]=0x1b5d]=_0x50d4f7(0x33d),_0x274806[_0x274806[_0x50d4f7(0x201)]=0x1f41]=_0x50d4f7(0x201),_0x274806[_0x274806[_0x50d4f7(0x27c)]=0x2329]=_0x50d4f7(0x27c),_0x274806[_0x274806['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x50d4f7(0x3ef),_0x274806[_0x274806[_0x50d4f7(0x254)]=0x232b]=_0x50d4f7(0x254),_0x274806[_0x274806[_0x50d4f7(0x1e6)]=0x232c]=_0x50d4f7(0x1e6),_0x274806[_0x274806[_0x50d4f7(0x3d3)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x274806[_0x274806[_0x50d4f7(0x3c8)]=0x2711]=_0x50d4f7(0x3c8),_0x274806[_0x274806['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x274806[_0x274806[_0x50d4f7(0x3dc)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x274806[_0x274806['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x274806[_0x274806[_0x50d4f7(0x251)]=0x271a]=_0x50d4f7(0x251),_0x274806[_0x274806['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x50d4f7(0x20d),_0x274806[_0x274806['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x274806[_0x274806['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x274806[_0x274806[_0x50d4f7(0x1eb)]=0x271e]=_0x50d4f7(0x1eb),_0x274806[_0x274806[_0x50d4f7(0x2a0)]=0x271f]=_0x50d4f7(0x2a0),_0x274806[_0x274806[_0x50d4f7(0x2f5)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x274806[_0x274806[_0x50d4f7(0x2f1)]=0x2ee1]=_0x50d4f7(0x2f1),_0x274806[_0x274806[_0x50d4f7(0x3a8)]=0x2ee2]='INVALID_INVITE_CODE',_0x274806[_0x274806[_0x50d4f7(0x3bb)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x274806[_0x274806[_0x50d4f7(0x1ba)]=0x2ee4]=_0x50d4f7(0x1ba),_0x274806[_0x274806['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x50d4f7(0x2b3),_0x274806[_0x274806[_0x50d4f7(0x267)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x274806[_0x274806['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x50d4f7(0x3e5),_0x274806[_0x274806[_0x50d4f7(0x1cd)]=0x32cb]=_0x50d4f7(0x1cd),_0x274806[_0x274806[_0x50d4f7(0x2e2)]=-0x1]='UNRECOGNIZED',_0x274806))(_0x36a70c||{}),_0x491697=Object[_0x50d4f7(0x2da)],_0x3de91d=(_0x188551,_0xa1b190,_0xc88e13,_0x49c773)=>{const _0x376130=_0x50d4f7;for(var _0x578b18=_0x49c773>0x1?void 0x0:_0x49c773?_0x491697(_0xa1b190,_0xc88e13):_0xa1b190,_0x5af045=_0x188551[_0x376130(0x34e)]-0x1,_0xfaab41;_0x5af045>=0x0;_0x5af045--)(_0xfaab41=_0x188551[_0x5af045])&&(_0x578b18=_0xfaab41(_0x578b18)||_0x578b18);return _0x578b18;},_0x4264c2=(_0x80165f,_0x3cef3)=>(_0x1c6825,_0x13c717)=>_0x3cef3(_0x1c6825,_0x13c717,_0x80165f);_0x420e4b[_0x50d4f7(0x38a)]=class extends _0x2a357a[_0x50d4f7(0x3c9)]{constructor(_0xcb7de6,_0x15e7fa,_0xaa6616){const _0x11620c=_0x50d4f7;super(),this[_0x11620c(0x3ee)]=_0xcb7de6,this[_0x11620c(0x3fb)]=_0x15e7fa,this['_configService']=_0xaa6616;}async[_0x50d4f7(0x2c3)](_0x68b6fd,_0xf5ca8,_0x660e74,..._0x223ce8){const _0x3d63ee=_0x50d4f7;var _0x33602d,_0x252c7f,_0x4d908c,_0x502768;const _0x4674ae=this[_0x3d63ee(0x3ee)][_0x3d63ee(0x23e)]();if(!_0x4674ae)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x354e06=((_0x33602d=this[_0x3d63ee(0x171)]['getConfig'](_0x505ca1['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x33602d:_0x505ca1[_0x3d63ee(0x3c6)])+'/'+_0x68b6fd+_0x3d63ee(0x243)+_0xf5ca8,_0x21225d=new URL(window[_0x3d63ee(0x182)]['href']),_0x41fdfa={'scriptId':_0x68b6fd,'runId':(_0x252c7f=_0x21225d['searchParams'][_0x3d63ee(0x22d)](_0x3d63ee(0x399)))!=null?_0x252c7f:'','function':_0xf5ca8,'unitId':_0x4674ae[_0x3d63ee(0x3b1)](),'argsOfFunction':JSON[_0x3d63ee(0x2a3)](_0x223ce8),'invokeId':(_0x4d908c=_0x660e74[_0x3d63ee(0x21c)])!=null?_0x4d908c:'','executionId':(_0x502768=_0x660e74[_0x3d63ee(0x2e9)])!=null?_0x502768:''};try{const _0x227b9e=await this[_0x3d63ee(0x3fb)]['post'](_0x354e06,{'body':_0x41fdfa});return _0x227b9e[_0x3d63ee(0x252)]['error']&&_0x227b9e[_0x3d63ee(0x252)][_0x3d63ee(0x2bd)]['code']!==_0x36a70c['OK']?_0x3d63ee(0x269):_0x227b9e[_0x3d63ee(0x252)]['result'];}catch{return'Failed';}}},_0x420e4b['RemoteUniscriptService']=_0x3de91d([_0x4264c2(0x0,_0x2a357a[_0x50d4f7(0x382)]),_0x4264c2(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x4e7e7b[_0x50d4f7(0x236)])),_0x4264c2(0x2,_0x2a357a['IConfigService'])],_0x420e4b[_0x50d4f7(0x38a)]),_0x420e4b['CollaborationStatusDisplay']=_0x32d2f0,_0x420e4b['IURLService']=_0x3c28aa,_0x420e4b[_0x50d4f7(0x227)]=_0x59aba4,_0x420e4b[_0x50d4f7(0x3ba)]=_0x228af0,_0x420e4b[_0x50d4f7(0x35c)]=_0xaa8871,Object[_0x50d4f7(0x3de)](_0x420e4b,Symbol[_0x50d4f7(0x1f5)],{'value':'Module'});}));