@univerjs-pro/collaboration-client-ui 0.7.0-beta.0 → 0.7.0-nightly.202504301607

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 _0x5841(_0x39553d,_0x44caa){const _0x441605=_0x4416();return _0x5841=function(_0x58416e,_0x81968f){_0x58416e=_0x58416e-0x10e;let _0x299eb2=_0x441605[_0x58416e];return _0x299eb2;},_0x5841(_0x39553d,_0x44caa);}function _0x4416(){const _0x1367bc=['_ensureSubject','_beforeCloseService','EffectRefRangId','UniverEngineFormula','@univerjs/engine-formula','defs','collaboration-client.offline-data-not-saved','_sheetSkeletonManagerService','CollaborationEvent','_hideTimer','InsertRangeMoveRightCommandId','getDocRanges','UniverUi','addClipboardHook','origin','docStateChange$','M0\x200H16V16H0z','IRemoteInstanceService','_getMergeRange','dispose','UniverProCollaboration','distinctUntilChanged','_localStorageService','_anchorDot','getFocusedUnit','UNAUTHENTICATED','LICENSE_DISTRO_REJECTED','_httpService','YUUMI_URL_COL_OUT_OF_RANGE','loadUnit','_unitOnClients','onRendered','next','rxjs','subscribe','238UvIGQS','getCollabEntity$','_roomMembers$','_getScale','enableLocalCache','WebSocketService','setConfig','history','getRelativeToViewportCoord','ITransformService','APPLY_REVISION_CONFILICT','UniverNetwork','NodePositionConvertToCursor','_transformPreviousActiveRange','roomMembers$','getRenderById','TEXT_RANGE_LAYER_INDEX','error','url(#$1','debug','_cursor','type','_context','serializeRangeWithSheet','APPLY_DUPLICATED','permission.content','arc','TOO_MANY_REQUESTS','off-line-single','HTTPService','_initEvent','round','unitId','UniverProCollaborationClientUi','parse','OFFLINE','_status$','useDependency','APPLY_NON_SEQUENTIAL_REVISION','registerComponent','Disposable','@univerjs/engine-render','handleDeleteRangeMoveLeft','selections','_docStateChangeManagerService','has','IRenderManagerService','getCurrentSelections','_notificationService','_drawTextRange','focused$','status$','requireSession','collabStatus.conflict','getValue','getVpScrollXYInfoByPosToVp','search','_collaborationUIEventService','51291GSrtsc','startsWith','SOCKET_FAILED_RETRY','_entityInit$','APPLY_PERMISSION_DENIED','_saveTaskMap','UniverInstanceType','_doCreateSocket','registerRenderModule','_hover','_initDependencies','getMemberID','_entities','replaceDocRanges','...','getSheetObject','icon','exhaustSavingTask','LocaleService','/run/','HEADER_MENU','@univerjs-pro/collaboration','hovered','UNRECOGNIZED','_collabCursorController','LOCAL_CACHE_INTERVAL','fill','add','YUUMI_RATE_OVER_LIMIT','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','switchMap','transformMutation','application/json','_onCursorDelete','_getSheetObject','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','complete','_getSessionTicket','prototype','JOIN_ROOM_FAILED','current','66VifSaW','cursorInfo$','_messageService','hasOwnProperty','OffLineSingle','getTypeOfUnitDisposed$','RemoveRowCommandId','amd','m1Prime','IUniverInstanceService','entityInit$','transformMutationsWithChangeset','_assignedColors','clearTimeout','runRefRangeMutations','LICENSE_MAX_UNITS_EXCEEDED','IBeforeCloseService','0\x200\x2017\x2016','_handleHeartbeatEvent','defineProperty','collabStatus.offline','_revisionService','url(#on-line-single_clip0_910_349)','disposeWithMe','getSkeleton','gold400','_updateSubUnitFromURLParams','map','RevisionService','concat','then','_onCursorUpdate','getUndoRedoMutationParamsCache','createSocket','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_document','_session','UniverSheets','lineTo','_univerInstanceService','params','getColor','ONLINE','split','newValue','collab-rect-range-','WebBrowserSingleActiveUnitService','searchParams','saveOfflineData','min','OTHER_CLIENTS_EDITING','180282hNxclJ','_dataLoaderService','_docClipboardService','handleDeleteRangeMoveUp','_handleLeaveEvent','@univerjs/sheets-ui','getSheetId','UniverEngineRender','getConfig','Rectangle','_localCacheService','column','YUUMI_ASYNCIO_CANCELLED','SUBMIT_CHANGESET_TIMEOUT','@univerjs/design','IUIPartsService','_selfUnitIDs','PY_RUNTIME_SCRIPT_ERROR','path','_shapes','ColorKit','getSheetBySheetId','CollaborationSocketService','isActive','RxDisposable','findNodePositionByCharIndex','IDocClipboardService','INotificationService','Warning','@univerjs/network','name','roomMembers','_eventUnsubscribe','_online','RefRangeService','length','getActiveSheet','12855bOEdFn','find','sheetId','2209630VcOYXk','react','addObject','none','WECHAT_HAS_BEEN_BOUND','_handleHover','UNIVER_SHEET','assignAColorForMemberID','_onRefRangeChange','NOT_FOUND','saveTaskMap','USERS_LEAVE','setActiveRange','SNAPSHOT_INVALID_SNAPSHOT','symbol','30010UiRJhb','transformIMECache','_drawAnchor','max','forwardRef','wsSessionTicketUrl','Injector','shareReplay','trim','_syncEditingCollabCursorService','_memberService','getAncestorScale','LOGIN_FAILED','setParam','collaboration-client-ui.config','DocStateChangeManagerService','blue400','body','doc.mutation.rich-text-editing','disposeUnit','addEventListener','purple300','labelPosition','RegularPolygon','_unitStatus','NO_OTHER_CLIENTS_EDITING','debounce','_transformHistoryAndStateStack','setTimeout','_config','_setupBeforeClosingHandler','extend','loadOfflineData','_updateCollabCursors','ICommandService','colorChannel1','UniverCore','values','unshift','_colorIndex','_injector','black','AWAITING','_docSyncEditingCollabCursorService','getMergeData','getOwnPropertyDescriptor','height','_scheduleClearOtherTimer','_renderManagerService','Tools','_createSocketURL','transform','isTransformMutationFailure','syncEditingCollabCursor','triggerDblclick','pipe','size','getLocalCacheKey','debounceTime','_updateLocalCursor','#fff','IMessageService','isTransformMutationsWithChangesetSuccess','override','getRangePointData','range','random','text','clearInterval','_startDocCollabCursor','mutations','_removeClearOtherTimer','_scheduleSaving','_id','_name','@univerjs/drawing','sheetID','BehaviorSubject','_docTransformSelectionsService','post','assign','CHANGESET_REVISION_CONFILICT','children','rxjs/operators','session.will-retry','bottom','createIdentifier','UniverDrawing','@univerjs/core','Inject','uni.network.url-service','propertyIsEnumerable','Optional','ThemeService','subscribeEvent','CollaborationController','_draw','SetWorksheetActivateCommand','_registerDependencies','OTHER_CLIENT_EDITING','connectInjector','_collabSessionService','_cachedData','currentSkeleton$','UniverSheetsUi','ISnapshotServerService','handleInsertRow','location','fillStyle','registerRefRange','SYNCED','React','_refreshCollabCursors','session.collaboration-timeout','subUnitId','takeUntil','RemoteUniscriptService','ACTIVE_UNIT_EVENT_CHANNEL','_initCommandExecutedListener','DesktopCollaborationStatusDisplayController','ALREADY_EXISTS','moveTo','off-line-single_clip0_910_343','handleInsertRangeMoveDown','forEach','ILocalStorageService','_range','CollaborationStatus','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','permission.title','substring','createInstance','_themeService','USER_NOT_INVITED_CODE','CollaborationUIEventId','createElement','from','UniverRpc','combineLatest','Vector2','div','getTypeOfUnitAdded$','_collaborationController','_updateURLWithCurrentState','operators','DependentOn','UnitStatus','_configService','removeParam','_anchor','key','top','deserializeRangeWithSheet','VIEW_MAIN','SHEET_VIEWPORT_KEY','DataLoaderService','SNAPSHOT_HAS_BEEN_REMOVED','width','_collabCursorState$','collabStatus.syncing','_imageIoService','actions','onPointerLeave$','ticket','collab-text-anchor-','setShapeProps','_refRangeService','mask','urlChange$','color','_colorAssignService','MessageType','univer-text-green-500','collabCursorState$','tag','ISocketService','@univerjs/ui','UNDEFINED','useObservable','sessionTicket','data','Error','YUUMI_SUBSCRIPTION_NOT_FOUND','resize','collab-text-range-','@univerjs/docs','NOT_COLLAB','m2Prime','_disabled','_handleJoinEvent','MOBILE_HAS_BEEN_BOUND','univer-flex\x20univer-items-center','set','replaceState','executeCommand','startColumn','updateOfflineData','unit','collaboration.closeRoom','mergeOverrideWithDependencies','_cursorInfo$','currentTheme$','_init','univer-text-red-500','MoveRangeCommandId','_color','SessionStatus','unsubscribe','7690518fHOHrH','use','BrowserCollaborationSocketService','ENSURE_SNAPSHOT_EXECUTION','send','_docSkeletonManagerService','cursorInfo','CollaborationUIEventService','textRanges','DocCollaborationEntity','_transformService','dispose$','_drawRectRange','measureText','getCoordByCell','init','evenodd','_cursorShapes','session.connection-failed','getItem','_initResize','subunit','deepClone','code','className','INVITE_CODE_ALREADY_BOUND','MemberService','defIds','attrs','Subject','verdancy600','_scheduleHeartbeat','getUnitStatus$','setItem','_toggleOnline','EMAIL_HAS_BEEN_BOUND','transformSelections','getUnitId','row','includes','indexOf','1em','transformStateCache','toRgbString','disableLocalCache','SetSelectionsOperation','ILogService','IURLService','UniverDesign','_heartbeatTimer','asObservable','pluginName','Plugin','LICENSE_EXPORT_SIZE_EXCEEDED','COMPLETION_FINISHED','whenReady','unload','DOC_RANGE_TYPE','PENDING','APPLY_REJECT','_instanceService','handleIRemoveCol','getStateCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Rect','_hovered','getUniverSheetInstance','getViewport','_textBubble','sessionStatus$','BuiltInUIPart','_commandService','UniverCollaborationClientUIPlugin','@univerjs/sheets','_setupSubUnitSync','_docTransformStateCacheService','onPointerMove$','jsx','unitID','isArray','getOwnPropertySymbols','setUndoRedoMutationParamsCache','_startSheetCollabCursor','generateRandomId','onMouseMove','show','fromEvent','_docTransformIMECacheService','closePath','currentColor','setAlpha','RECT','save','UPDATE_CURSOR','redoState','setStateCache','_localeService','toStringTag','selection','with','CollaborationDataLoaderController','handleMoveRange','FromArray','merge','UniverCollaborationClientPlugin','_lastPointer','xlink:href','_initStatusListener','Workbook','UniverProCollaborationClient','collabStatus.synced','all','_urlService','Shape','_removeCollabCursors','getMember','getCellPositionByOffset','toDisposable','result','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_backgroundColor','_labelPosition','call','string','INVITE_CODE_REQUIRED','getParam','856tdkTRR','runId','replace','MUTATION','_getAnchorBounding','SheetsSelectionsService','entries','_getSaveTimeout','transformRemoteChangeset','eventID','YUUMI_NO_CUBOID_FOR_QUESTION','event$','svg','RichTextEditingMutation','on-line-single_clip0_910_349','memberID','stringify','exports','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','SetDocZoomRatioOperation','@univerjs/docs-ui','DocSelectionManagerService','_handleEvent','function','get','_toggleOffline','collab-client.tooltip.reconnect','ILocalCacheService','delete','CollaborationSessionService','some','drawWith','PERMISSION_DENIED','_saveCache','_cursors','[CollaborationDataLoaderController]','14201210WoLOjU','engine','_scene','undoState','_transformUndoRedoStack','@univerjs-pro/collaboration-client','_send','IConfigService','DisposableCollection','CLOSE_ROOM','SetTextSelectionsOperation','COLORS','DocIMEInputManagerService','_render','idSuffix','collabStatus.notCollab','_docSkeleton','DEFAULT_WS_SESSION_TICKET_URL','getUnhiddenWorksheets','href','_initStatusComponent','InsertRowCommandId','storage','toString','font','displayName','onPointerEnter$','getOffsetConfig','CONFLICT','activeSheet$','on-line-single','addObjects','_clearOtherTimers','fillText','Unknown\x20user','YUUMI_UNABLE_LOAD_URL','push','hide','pushState','onStarting','react/jsx-runtime','1300xRfdtY','_uiPartsService','addHandlerCallback','FETCH_MISS','isEditing','INTERNAL_ERROR','handleInsertCol','UNIVER_DOC','DeleteRangeMoveUpCommandId','getCollabCursors$','CONNECTOR_DATA_TOO_LARGE','InsertColCommandId','_logService','url(#off-line-single_clip0_910_343)','onCommandExecuted','reconnect'];_0x4416=function(){return _0x1367bc;};return _0x4416();}(function(_0x8134f3,_0x12598f){const _0x2e9d68=_0x5841,_0x5ca0be=_0x8134f3();while(!![]){try{const _0x3c0bbb=-parseInt(_0x2e9d68(0x358))/0x1*(-parseInt(_0x2e9d68(0x2ee))/0x2)+-parseInt(_0x2e9d68(0x346))/0x3*(-parseInt(_0x2e9d68(0x258))/0x4)+-parseInt(_0x2e9d68(0x349))/0x5+parseInt(_0x2e9d68(0x321))/0x6*(-parseInt(_0x2e9d68(0x28b))/0x7)+parseInt(_0x2e9d68(0x20b))/0x8*(parseInt(_0x2e9d68(0x2c5))/0x9)+-parseInt(_0x2e9d68(0x22f))/0xa+parseInt(_0x2e9d68(0x18d))/0xb;if(_0x3c0bbb===_0x12598f)break;else _0x5ca0be['push'](_0x5ca0be['shift']());}catch(_0x1cf91c){_0x5ca0be['push'](_0x5ca0be['shift']());}}}(_0x4416,0xc5531),function(_0x2a49c1,_0x331a20){const _0x74e936=_0x5841;typeof exports=='object'&&typeof module<'u'?_0x331a20(exports,require(_0x74e936(0x234)),require('@univerjs/core'),require('@univerjs/engine-render'),require(_0x74e936(0x33e)),require(_0x74e936(0x21f)),require(_0x74e936(0x3a3)),require(_0x74e936(0x289)),require(_0x74e936(0x176)),require(_0x74e936(0x2da)),require(_0x74e936(0x26c)),require(_0x74e936(0x1d6)),require('rxjs/operators'),require(_0x74e936(0x326)),require(_0x74e936(0x257)),require(_0x74e936(0x16d)),require(_0x74e936(0x32f)),require(_0x74e936(0x34a)),require('@univerjs/rpc')):typeof define==_0x74e936(0x222)&&define[_0x74e936(0x2f5)]?define([_0x74e936(0x21c),_0x74e936(0x234),_0x74e936(0x115),_0x74e936(0x2b4),_0x74e936(0x33e),'@univerjs/docs-ui','@univerjs/drawing',_0x74e936(0x289),'@univerjs/docs',_0x74e936(0x2da),_0x74e936(0x26c),_0x74e936(0x1d6),_0x74e936(0x110),'@univerjs/sheets-ui','react/jsx-runtime',_0x74e936(0x16d),_0x74e936(0x32f),'react','@univerjs/rpc'],_0x331a20):(_0x2a49c1=typeof globalThis<'u'?globalThis:_0x2a49c1||self,_0x331a20(_0x2a49c1[_0x74e936(0x2ac)]={},_0x2a49c1[_0x74e936(0x1fa)],_0x2a49c1[_0x74e936(0x37c)],_0x2a49c1[_0x74e936(0x328)],_0x2a49c1[_0x74e936(0x296)],_0x2a49c1['UniverDocsUi'],_0x2a49c1[_0x74e936(0x114)],_0x2a49c1[_0x74e936(0x289)],_0x2a49c1['UniverDocs'],_0x2a49c1[_0x74e936(0x27c)],_0x2a49c1[_0x74e936(0x26b)],_0x2a49c1[_0x74e936(0x313)],_0x2a49c1[_0x74e936(0x289)][_0x74e936(0x14d)],_0x2a49c1[_0x74e936(0x125)],_0x2a49c1[_0x74e936(0x12c)],_0x2a49c1[_0x74e936(0x274)],_0x2a49c1[_0x74e936(0x1bd)],_0x2a49c1[_0x74e936(0x12c)],_0x2a49c1[_0x74e936(0x146)]));}(this,function(_0x4c3250,_0x2c72d0,_0x5bf9c6,_0x5d1039,_0x28d1f0,_0x1a8f2e,_0x32ed5f,_0x496cb2,_0x50e692,_0x4e6003,_0x44be57,_0x4fd62b,_0x19b4ce,_0x45d045,_0x5540cf,_0x106fc7,_0x165dd1,_0xab82b5,_0x1d3fe6){'use strict';const _0x19a859=_0x5841;var _0x1cbfe9=Object[_0x19a859(0x301)],_0x22e32e=(_0x11e0d3,_0x3c9bd8,_0x1eab2b)=>_0x3c9bd8 in _0x11e0d3?_0x1cbfe9(_0x11e0d3,_0x3c9bd8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1eab2b}):_0x11e0d3[_0x3c9bd8]=_0x1eab2b,_0x521fa5=(_0xf7ad17,_0x422f42,_0x1cca67)=>_0x22e32e(_0xf7ad17,typeof _0x422f42!=_0x19a859(0x357)?_0x422f42+'':_0x422f42,_0x1cca67),_0x5e463f=Object[_0x19a859(0x385)],_0x36cb6a=(_0x3ccca4,_0x5e3f5f,_0x2adf32,_0x309caf)=>{const _0x158809=_0x19a859;for(var _0x1e29c6=_0x309caf>0x1?void 0x0:_0x309caf?_0x5e463f(_0x5e3f5f,_0x2adf32):_0x5e3f5f,_0x4efffc=_0x3ccca4[_0x158809(0x344)]-0x1,_0x52f7e8;_0x4efffc>=0x0;_0x4efffc--)(_0x52f7e8=_0x3ccca4[_0x4efffc])&&(_0x1e29c6=_0x52f7e8(_0x1e29c6)||_0x1e29c6);return _0x1e29c6;},_0x39b60c=(_0x1711ca,_0x4f685e)=>(_0x30e9b6,_0x58de0a)=>_0x4f685e(_0x30e9b6,_0x58de0a,_0x1711ca);let _0x41ef61=class extends _0x5bf9c6['RxDisposable']{constructor(_0x19e246,_0x352f4a){const _0x1c8750=_0x19a859;super(),this[_0x1c8750(0x323)]=_0x19e246,this[_0x1c8750(0x15d)]=_0x352f4a,this[_0x1c8750(0x187)]();}[_0x19a859(0x187)](){const _0x2cccf1=_0x19a859,_0x3bfa1c=this;this[_0x2cccf1(0x305)](this[_0x2cccf1(0x323)][_0x2cccf1(0x275)]({'onBeforePasteImage':async _0x1cd2b6=>{const _0x58ab85=_0x2cccf1,_0x1cab38=await _0x3bfa1c[_0x58ab85(0x15d)]['saveImage'](_0x1cd2b6);return _0x1cab38?{'source':_0x1cab38['source'],'imageSourceType':_0x1cab38['imageSourceType']}:null;}}));}};_0x41ef61=_0x36cb6a([_0x39b60c(0x0,_0x1a8f2e[_0x19a859(0x33b)]),_0x39b60c(0x1,_0x32ed5f['IImageIoService'])],_0x41ef61);const _0x3b1f63=[_0x19a859(0x36d),'jiqing500',_0x19a859(0x1ab),'red300',_0x19a859(0x368),_0x19a859(0x307)];class _0x30d5cc extends _0x5bf9c6['Disposable']{constructor(){const _0x5cbd57=_0x19a859;super(...arguments),_0x521fa5(this,_0x5cbd57(0x2fa),new Map()),_0x521fa5(this,'_colorIndex',0x0);}[_0x19a859(0x350)](_0x17b72b){const _0xdcb8b8=_0x19a859;if(this['_assignedColors'][_0xdcb8b8(0x2b8)](_0x17b72b))return this[_0xdcb8b8(0x2fa)]['get'](_0x17b72b);const _0x33eb80=_0x3b1f63[this['_colorIndex']];return this[_0xdcb8b8(0x37f)]=(this[_0xdcb8b8(0x37f)]+0x1)%_0x3b1f63['length'],this[_0xdcb8b8(0x2fa)][_0xdcb8b8(0x17d)](_0x17b72b,_0x33eb80),_0x33eb80;}}function _0x23dcc3(_0x215137){let _0x2dfb2b='';for(const _0x3abd55 of _0x215137){const {startOffset:_0xb8259e,endOffset:_0x55d6c2,isActive:_0x193841,rangeType:_0x3f8139,segmentId:_0x5588d9,segmentPage:_0x4553c3}=_0x3abd55;_0x2dfb2b['length']&&(_0x2dfb2b+=','),_0x2dfb2b+=_0xb8259e+':'+_0x55d6c2+':'+(_0x193841?'1':'0')+':'+_0x3f8139+':'+_0x5588d9+':'+_0x4553c3;}return _0x2dfb2b;}function _0xe496a5(_0x1de54d){const _0x2d80a3=_0x19a859,_0x4bd327=_0x1de54d[_0x2d80a3(0x319)](','),_0x2d9676=[];for(const _0x2a178e of _0x4bd327){const [_0x11982e,_0x3adb6c,_0xadad32,_0x3147ab,_0x2f6d28,_0x9e751e]=_0x2a178e['split'](':');_0x2d9676['push']({'startOffset':Number(_0x11982e),'endOffset':Number(_0x3adb6c),'collapsed':_0x11982e===_0x3adb6c,'isActive':_0xadad32==='1','rangeType':_0x3147ab===_0x5bf9c6[_0x2d80a3(0x1c6)]['TEXT']?_0x5bf9c6['DOC_RANGE_TYPE']['TEXT']:_0x5bf9c6[_0x2d80a3(0x1c6)][_0x2d80a3(0x1e8)],'segmentId':typeof _0x2f6d28==_0x2d80a3(0x208)?String(_0x2f6d28):'','segmentPage':Number(_0x9e751e!=null?_0x9e751e:-0x1)});}return _0x2d9676[_0x2d80a3(0x229)](_0x311d81=>_0x311d81[_0x2d80a3(0x338)])||(_0x2d9676[0x0][_0x2d80a3(0x338)]=!0x0),_0x2d9676;}class _0x299122 extends _0x5bf9c6[_0x19a859(0x339)]{constructor(){const _0x3f2a10=_0x19a859;super(...arguments),_0x521fa5(this,_0x3f2a10(0x15b),new _0x496cb2['BehaviorSubject'](null)),_0x521fa5(this,_0x3f2a10(0x16a),this[_0x3f2a10(0x15b)]['asObservable']());}['syncEditingCollabCursor'](_0x5ac2de){const _0x496e8e=_0x19a859,{unitID:_0x1bd9b0,memberID:_0x3726f9,textRanges:_0x4280d0}=_0x5ac2de,_0x36309d=_0x23dcc3(_0x4280d0);if(_0x36309d==='')return;const _0x381b00={'unitID':_0x1bd9b0,'memberID':_0x3726f9,'selection':_0x36309d};this[_0x496e8e(0x15b)][_0x496e8e(0x288)](_0x381b00);}}var _0x3938c2=Object[_0x19a859(0x385)],_0x849b3d=(_0x1afe1d,_0x76b9cd,_0x492c1f,_0x2b1701)=>{const _0x2af25b=_0x19a859;for(var _0x2b7afc=_0x2b1701>0x1?void 0x0:_0x2b1701?_0x3938c2(_0x76b9cd,_0x492c1f):_0x76b9cd,_0x4ec48c=_0x1afe1d[_0x2af25b(0x344)]-0x1,_0x1d9941;_0x4ec48c>=0x0;_0x4ec48c--)(_0x1d9941=_0x1afe1d[_0x4ec48c])&&(_0x2b7afc=_0x1d9941(_0x2b7afc)||_0x2b7afc);return _0x2b7afc;},_0x2a899b=(_0x238f93,_0x34e166)=>(_0x3f8c9a,_0x3525cc)=>_0x34e166(_0x3f8c9a,_0x3525cc,_0x238f93);const _0x4d5d64=0x12c,_0x303001=0x64;let _0x5964e0=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x154aa6,_0x42af39,_0x3e8b09,_0x1d1159,_0xf2fb4c,_0x5d0b8d,_0x3f75ad,_0x185cbe,_0x473101){const _0x201cb9=_0x19a859;super(),_0x521fa5(this,_0x201cb9(0x342),!0x1),_0x521fa5(this,_0x201cb9(0x187),!0x1),_0x521fa5(this,'_cursorInfo$',new _0x496cb2[(_0x201cb9(0x3a5))](new Map())),_0x521fa5(this,'cursorInfo$',this[_0x201cb9(0x185)][_0x201cb9(0x1bf)]()),_0x521fa5(this,_0x201cb9(0x28d),new _0x496cb2[(_0x201cb9(0x3a5))]([])),_0x521fa5(this,_0x201cb9(0x299),this[_0x201cb9(0x28d)][_0x201cb9(0x38f)](_0x496cb2[_0x201cb9(0x392)](_0x4d5d64))),_0x521fa5(this,_0x201cb9(0x393),_0x5bf9c6['debounce'](_0x303954=>{const _0x2ac2=_0x201cb9,_0x54efd5={'eventID':_0x4e6003[_0x2ac2(0x270)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x2ac2(0x312)][_0x2ac2(0x2d0)](),'selection':_0x23dcc3(_0x303954)}};this['_session']['send'](_0x54efd5,this['unitID']);},_0x303001)),(this[_0x201cb9(0x1db)]=_0x154aa6,this[_0x201cb9(0x312)]=_0x42af39,this[_0x201cb9(0x380)]=_0x3e8b09,this[_0x201cb9(0x167)]=_0x1d1159,this['_memberService']=_0xf2fb4c,this[_0x201cb9(0x361)]=_0x5d0b8d,this['_transformService']=_0x3f75ad,this[_0x201cb9(0x315)]=_0x185cbe,this['_commandService']=_0x473101);}get['cursorInfo'](){const _0x271864=_0x19a859;return this[_0x271864(0x185)][_0x271864(0x2c1)]();}get[_0x19a859(0x340)](){return this['_roomMembers$']['getValue']();}[_0x19a859(0x27b)](){const _0x4a48ad=_0x19a859;super['dispose'](),this['_cursorInfo$'][_0x4a48ad(0x288)](new Map()),this[_0x4a48ad(0x185)][_0x4a48ad(0x2e9)](),this[_0x4a48ad(0x28d)][_0x4a48ad(0x288)]([]),this['_roomMembers$'][_0x4a48ad(0x2e9)]();}[_0x19a859(0x19c)](){const _0x5ae5ef=_0x19a859;this[_0x5ae5ef(0x187)]||(this[_0x5ae5ef(0x187)]=!0x0,this[_0x5ae5ef(0x312)][_0x5ae5ef(0x1d2)][_0x5ae5ef(0x38f)](_0x496cb2['takeUntil'](this['dispose$']))[_0x5ae5ef(0x28a)](_0x586ecd=>{const _0x3733b9=_0x5ae5ef;_0x586ecd===_0x2c72d0[_0x3733b9(0x18b)][_0x3733b9(0x318)]?this[_0x3733b9(0x1af)]():this['_toggleOffline']();}),this['_session'][_0x5ae5ef(0x216)][_0x5ae5ef(0x38f)](_0x496cb2[_0x5ae5ef(0x130)](this[_0x5ae5ef(0x198)]))[_0x5ae5ef(0x28a)](_0x131d9d=>{const _0x48529f=_0x5ae5ef,_0x3c92f5=_0x131d9d[_0x48529f(0x214)];_0x3c92f5===_0x4e6003[_0x48529f(0x270)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x131d9d),_0x3c92f5===_0x4e6003[_0x48529f(0x270)][_0x48529f(0x354)]&&this[_0x48529f(0x2e6)](_0x131d9d);}),this[_0x5ae5ef(0x305)](this[_0x5ae5ef(0x1d4)][_0x5ae5ef(0x266)](_0x121ad0=>{const _0x51bb92=_0x5ae5ef,_0x1af7ca=_0x121ad0[_0x51bb92(0x316)];_0x1af7ca!=null&&this['_online']&&_0x121ad0['id']===_0x50e692[_0x51bb92(0x239)]['id']&&_0x1af7ca[_0x51bb92(0x2ab)]===this[_0x51bb92(0x1db)]&&_0x1af7ca[_0x51bb92(0x25c)]===!0x1&&_0x1af7ca['ranges'][_0x51bb92(0x344)]>0x0&&this[_0x51bb92(0x393)](_0x1af7ca['ranges']);})),this[_0x5ae5ef(0x361)][_0x5ae5ef(0x16a)][_0x5ae5ef(0x38f)](_0x496cb2[_0x5ae5ef(0x130)](this[_0x5ae5ef(0x198)]))[_0x5ae5ef(0x28a)](_0x45ba50=>{const _0x50a8a7=_0x5ae5ef;if((_0x45ba50==null?void 0x0:_0x45ba50[_0x50a8a7(0x1db)])!==this[_0x50a8a7(0x1db)])return;const _0x2324a8={'eventID':_0x4e6003[_0x50a8a7(0x270)]['UPDATE_CURSOR'],'data':_0x45ba50};this[_0x50a8a7(0x30d)](_0x2324a8);}),this[_0x5ae5ef(0x305)](this[_0x5ae5ef(0x1d4)][_0x5ae5ef(0x266)](_0x4fb321=>{const _0x3fa9de=_0x5ae5ef;if(_0x4fb321[_0x3fa9de(0x316)]==null)return;const _0x2191d3=_0x4fb321[_0x3fa9de(0x316)];if(_0x4fb321['id']!==_0x50e692[_0x3fa9de(0x218)]['id']||_0x2191d3[_0x3fa9de(0x2ab)]!==this[_0x3fa9de(0x1db)])return;const _0x10a874={'id':_0x3fa9de(0x36a),'params':_0x2191d3},_0xaed740=this[_0x3fa9de(0x193)];for(const [_0x3dd706,_0x30d2d4]of _0xaed740){const _0x384d02={'id':_0x3fa9de(0x36a),'params':{'unitId':this[_0x3fa9de(0x1db)],'actions':null,'textRanges':_0x30d2d4['ranges']}},_0x3b47a0=this[_0x3fa9de(0x197)]['transformMutation'](_0x10a874,_0x384d02,!0x1);if(_0x4e6003[_0x3fa9de(0x38c)](_0x3b47a0))throw _0x3b47a0['error'];_0xaed740[_0x3fa9de(0x17d)](_0x3dd706,{..._0x30d2d4,'ranges':_0x3b47a0[_0x3fa9de(0x178)][_0x3fa9de(0x316)][_0x3fa9de(0x195)]});}queueMicrotask(()=>{const _0x2cb3b5=_0x3fa9de;this[_0x2cb3b5(0x185)][_0x2cb3b5(0x288)](_0xaed740);});})));}[_0x19a859(0x30d)](_0x24bde9){const _0xe0c9d0=_0x19a859;var _0xbd7078,_0x24e7c9;const {memberID:_0x334155,selection:_0x8c4b7}=_0x24bde9['data'],_0x3516b2=_0xe496a5(_0x8c4b7),_0x5021eb=(_0x24e7c9=(_0xbd7078=this[_0xe0c9d0(0x362)]['getMember'](this['unitID'],_0x334155))==null?void 0x0:_0xbd7078[_0xe0c9d0(0x33f)])!=null?_0x24e7c9:_0xe0c9d0(0x251),_0x19f57c={'color':this[_0xe0c9d0(0x167)][_0xe0c9d0(0x350)](_0x334155),'name':_0x5021eb,'ranges':_0x3516b2},_0x4d5af5=this[_0xe0c9d0(0x193)];_0x4d5af5[_0xe0c9d0(0x17d)](_0x334155,_0x19f57c),this[_0xe0c9d0(0x185)][_0xe0c9d0(0x288)](_0x4d5af5);}[_0x19a859(0x2e6)](_0x4e7e2b){const _0x48f2cc=_0x19a859,{memberID:_0x26db54}=_0x4e7e2b[_0x48f2cc(0x171)],_0x565d0d=this['cursorInfo'];_0x565d0d[_0x48f2cc(0x227)](_0x26db54),this[_0x48f2cc(0x185)]['next'](_0x565d0d);}['_toggleOnline'](){const _0x405a79=_0x19a859;var _0x3bfbb6;if(this['_online']=!0x0,((_0x3bfbb6=this[_0x405a79(0x315)][_0x405a79(0x280)]())==null?void 0x0:_0x3bfbb6['getUnitId']())!==this['unitID'])return;const _0x42aef5=this[_0x405a79(0x380)][_0x405a79(0x223)](_0x50e692['DocSelectionManagerService'])[_0x405a79(0x273)]();Array[_0x405a79(0x1dc)](_0x42aef5)&&_0x42aef5['length']>0x0&&this['_updateLocalCursor'](_0x42aef5);}[_0x19a859(0x224)](){const _0x2acc7e=_0x19a859;this[_0x2acc7e(0x342)]=!0x1;}};_0x5964e0=_0x849b3d([_0x2a899b(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x2a899b(0x3,_0x5bf9c6[_0x19a859(0x116)](_0x30d5cc)),_0x2a899b(0x4,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0[_0x19a859(0x1a7)])),_0x2a899b(0x5,_0x5bf9c6[_0x19a859(0x116)](_0x299122)),_0x2a899b(0x6,_0x4e6003['ITransformService']),_0x2a899b(0x7,_0x5bf9c6[_0x19a859(0x2f7)]),_0x2a899b(0x8,_0x5bf9c6[_0x19a859(0x37a)])],_0x5964e0);var _0x24604c=Object[_0x19a859(0x385)],_0x11def2=(_0x2e454a,_0x4f5bc7,_0xbbe697,_0x522941)=>{for(var _0x2d2fd7=_0x522941>0x1?void 0x0:_0x522941?_0x24604c(_0x4f5bc7,_0xbbe697):_0x4f5bc7,_0x43b25c=_0x2e454a['length']-0x1,_0x23d25f;_0x43b25c>=0x0;_0x43b25c--)(_0x23d25f=_0x2e454a[_0x43b25c])&&(_0x2d2fd7=_0x23d25f(_0x2d2fd7)||_0x2d2fd7);return _0x2d2fd7;},_0x205450=(_0x4401a1,_0x430eec)=>(_0x19f891,_0x1e6a93)=>_0x430eec(_0x19f891,_0x1e6a93,_0x4401a1);const _0x51b22d=0x12c,_0x599b02=0x64,_0x533af3=()=>{let _0x193331=[],_0x5813a4=!0x1;return _0x2f929f=>{_0x193331['push'](_0x2f929f),_0x5813a4||(_0x5813a4=!0x0,setTimeout(()=>{_0x193331['forEach'](_0x4b475c=>_0x4b475c()),_0x193331=[],_0x5813a4=!0x1;}));};};let _0x23df67=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x537362,_0x1574dd,_0x193057,_0x32e698,_0x2a8b59,_0x39bcfe,_0x429fa8,_0x4828bb){const _0x5c4125=_0x19a859;super(),_0x521fa5(this,_0x5c4125(0x342),!0x1),_0x521fa5(this,_0x5c4125(0x187),!0x1),_0x521fa5(this,'_cursorInfo$',new _0x496cb2[(_0x5c4125(0x3a5))](new Map())),_0x521fa5(this,'cursorInfo$',this[_0x5c4125(0x185)][_0x5c4125(0x1bf)]()),_0x521fa5(this,_0x5c4125(0x28d),new _0x496cb2[(_0x5c4125(0x3a5))]([])),_0x521fa5(this,_0x5c4125(0x299),this[_0x5c4125(0x28d)]['pipe'](_0x496cb2[_0x5c4125(0x392)](_0x51b22d))),_0x521fa5(this,'_updateLocalCursor',_0x5bf9c6[_0x5c4125(0x372)]((_0x51b194,_0x5c5f7b)=>{const _0x2de5da=_0x5c4125,_0x2da884={'eventID':_0x4e6003[_0x2de5da(0x270)][_0x2de5da(0x1ea)],'data':{'unitID':this[_0x2de5da(0x1db)],'memberID':this[_0x2de5da(0x312)]['getMemberID'](),'selection':_0x44be57[_0x2de5da(0x2a2)](_0x51b194,_0x5c5f7b['range'])}};this['_session'][_0x2de5da(0x191)](_0x2da884,this[_0x2de5da(0x1db)]);},_0x599b02)),(this['unitID']=_0x537362,this[_0x5c4125(0x312)]=_0x1574dd,this[_0x5c4125(0x380)]=_0x193057,this[_0x5c4125(0x167)]=_0x32e698,this['_memberService']=_0x2a8b59,this[_0x5c4125(0x315)]=_0x39bcfe,this[_0x5c4125(0x1d4)]=_0x429fa8,this[_0x5c4125(0x163)]=_0x4828bb);}get[_0x19a859(0x193)](){const _0x3cd3e9=_0x19a859;return this[_0x3cd3e9(0x185)][_0x3cd3e9(0x2c1)]();}get['roomMembers'](){const _0xc93928=_0x19a859;return this[_0xc93928(0x28d)][_0xc93928(0x2c1)]();}[_0x19a859(0x27b)](){const _0x3f4da9=_0x19a859;super[_0x3f4da9(0x27b)](),this[_0x3f4da9(0x185)][_0x3f4da9(0x288)](new Map()),this[_0x3f4da9(0x185)][_0x3f4da9(0x2e9)](),this[_0x3f4da9(0x28d)][_0x3f4da9(0x288)]([]),this[_0x3f4da9(0x28d)][_0x3f4da9(0x2e9)]();}[_0x19a859(0x19c)](){const _0x59200d=_0x19a859;this[_0x59200d(0x187)]||(this[_0x59200d(0x187)]=!0x0,this[_0x59200d(0x312)]['sessionStatus$'][_0x59200d(0x38f)](_0x496cb2[_0x59200d(0x130)](this[_0x59200d(0x198)]))['subscribe'](_0x5af3d4=>{const _0x4361ae=_0x59200d;_0x5af3d4===_0x2c72d0[_0x4361ae(0x18b)]['ONLINE']?this[_0x4361ae(0x1af)]():this[_0x4361ae(0x224)]();}),this[_0x59200d(0x312)]['event$']['pipe'](_0x496cb2[_0x59200d(0x130)](this[_0x59200d(0x198)]))[_0x59200d(0x28a)](_0x4db848=>{const _0x20fb85=_0x59200d,_0x1f6c75=_0x4db848[_0x20fb85(0x214)];_0x1f6c75===_0x4e6003[_0x20fb85(0x270)][_0x20fb85(0x1ea)]&&this[_0x20fb85(0x30d)](_0x4db848),_0x1f6c75===_0x4e6003[_0x20fb85(0x270)][_0x20fb85(0x354)]&&this[_0x20fb85(0x2e6)](_0x4db848);}),this[_0x59200d(0x351)](),this[_0x59200d(0x305)](this[_0x59200d(0x1d4)][_0x59200d(0x266)](_0x19f456=>{const _0xd53508=_0x59200d;if(this[_0xd53508(0x342)]&&_0x19f456['id']===_0x4fd62b[_0xd53508(0x1ba)]['id']&&_0x19f456['params'][_0xd53508(0x2ab)]===this['unitID']){const _0x48ab9f=_0x19f456[_0xd53508(0x316)];this[_0xd53508(0x393)](_0x48ab9f[_0xd53508(0x12f)],_0x48ab9f[_0xd53508(0x2b6)][0x0]);}})));}[_0x19a859(0x30d)](_0x5a153e){const _0x2944fd=_0x19a859;var _0x5187d8,_0xc4a36;const {memberID:_0x2210f7,selection:_0x4a6b47}=_0x5a153e[_0x2944fd(0x171)],{sheetName:_0x586b8d,range:_0x4b3dc4}=_0x44be57[_0x2944fd(0x155)](_0x4a6b47),_0x4b1fd0={'name':(_0xc4a36=(_0x5187d8=this['_memberService'][_0x2944fd(0x200)](this[_0x2944fd(0x1db)],_0x2210f7))==null?void 0x0:_0x5187d8[_0x2944fd(0x33f)])!=null?_0xc4a36:_0x2944fd(0x251),'range':this[_0x2944fd(0x27a)](_0x586b8d,_0x4b3dc4),'sheetID':_0x586b8d,'color':this[_0x2944fd(0x167)][_0x2944fd(0x350)](_0x2210f7),'selection':_0x4a6b47},_0x196620=this[_0x2944fd(0x193)];_0x196620[_0x2944fd(0x17d)](_0x2210f7,_0x4b1fd0),this[_0x2944fd(0x185)][_0x2944fd(0x288)](_0x196620);}['_onCursorDelete'](_0x4e5435){const _0x5823b8=_0x19a859,{memberID:_0x55d3d5}=_0x4e5435[_0x5823b8(0x171)],_0x46d4ae=this[_0x5823b8(0x193)];_0x46d4ae[_0x5823b8(0x227)](_0x55d3d5),this['_cursorInfo$'][_0x5823b8(0x288)](_0x46d4ae);}[_0x19a859(0x27a)](_0x9b2206,_0x3ff7c7){const _0x4d7aea=_0x19a859;var _0x3e0047,_0x23f714;const _0x531aad=(_0x23f714=(_0x3e0047=this[_0x4d7aea(0x315)][_0x4d7aea(0x1cf)](this[_0x4d7aea(0x1db)]))==null?void 0x0:_0x3e0047['getSheetBySheetId'](_0x9b2206))==null?void 0x0:_0x23f714[_0x4d7aea(0x384)]();return(_0x531aad==null?void 0x0:_0x531aad[_0x4d7aea(0x347)](_0x8aa37f=>_0x5bf9c6[_0x4d7aea(0x32a)]['contains'](_0x8aa37f,_0x3ff7c7)))||_0x3ff7c7;}[_0x19a859(0x351)](){const _0x7370f0=_0x19a859,_0x598635=new _0x5bf9c6[(_0x7370f0(0x237))](),_0x449f23=_0x533af3(),_0x431b10=()=>{const _0x6f86f9=_0x7370f0;_0x598635[_0x6f86f9(0x27b)]();const _0x494859=(_0xce6ecc,_0x3804bc,_0x511acb,_0xb4eda4)=>{const _0x395991=_0x6f86f9;let _0x3de434=[];switch(_0xce6ecc['id']){case _0x4fd62b[_0x395991(0x26a)]['DeleteRangeMoveLeftCommandId']:{_0x3de434=_0x4fd62b[_0x395991(0x2b5)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId'][_0x395991(0x260)]:{_0x3de434=_0x4fd62b[_0x395991(0x324)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b[_0x395991(0x26a)][_0x395991(0x263)]:{_0x3de434=_0x4fd62b[_0x395991(0x25e)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b[_0x395991(0x26a)]['InsertRangeMoveDownCommandId']:{_0x3de434=_0x4fd62b[_0x395991(0x138)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId'][_0x395991(0x272)]:{_0x3de434=_0x4fd62b['handleInsertRangeMoveRight'](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId'][_0x395991(0x244)]:{_0x3de434=_0x4fd62b[_0x395991(0x127)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b[_0x395991(0x26a)][_0x395991(0x189)]:{_0x3de434=_0x4fd62b[_0x395991(0x1f2)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId']['RemoveColCommandId']:{_0x3de434=_0x4fd62b[_0x395991(0x1ca)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId'][_0x395991(0x2f4)]:{_0x3de434=_0x4fd62b['handleIRemoveRow'](_0xce6ecc,_0xb4eda4);break;}}const _0x159ce4=_0x4fd62b[_0x395991(0x2fc)](_0x3de434,_0xb4eda4),_0x5e6ff2=this['cursorInfo']['get'](_0x3804bc);if(_0x5e6ff2&&_0x159ce4){const _0x25a10d={..._0x5e6ff2,'range':_0x159ce4};this['cursorInfo'][_0x395991(0x17d)](_0x3804bc,_0x25a10d),_0x449f23(()=>{const _0x3bf221=_0x395991,_0x41fe93=this[_0x3bf221(0x163)][_0x3bf221(0x12a)](_0x159ce4,_0x3ae31a=>(_0x41fe93['dispose'](),_0x494859(_0x3ae31a,_0x3804bc,_0x511acb,_0x159ce4)));_0x598635[_0x3bf221(0x2e0)](_0x41fe93);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x6f86f9(0x139)]((_0x99bc8b,_0x137ab6)=>{const _0xb6e164=_0x6f86f9,{range:_0x218167,sheetID:_0x2e82ba}=_0x99bc8b,_0x5a9198=this['_refRangeService'][_0xb6e164(0x12a)](_0x218167,_0x34d702=>(_0x5a9198['dispose'](),_0x494859(_0x34d702,_0x137ab6,_0x2e82ba,_0x218167)));_0x598635[_0xb6e164(0x2e0)](_0x5a9198);});};this[_0x7370f0(0x305)](_0x5bf9c6[_0x7370f0(0x202)](this[_0x7370f0(0x185)]['subscribe'](()=>{_0x431b10();})));}[_0x19a859(0x1af)](){const _0x2da4fb=_0x19a859;var _0x41907f,_0x1adcfb;if(this[_0x2da4fb(0x342)]=!0x0,((_0x41907f=this['_univerInstanceService'][_0x2da4fb(0x280)]())==null?void 0x0:_0x41907f[_0x2da4fb(0x1b2)]())!==this[_0x2da4fb(0x1db)])return;const _0x1a41c9=(_0x1adcfb=this[_0x2da4fb(0x380)][_0x2da4fb(0x223)](_0x4fd62b[_0x2da4fb(0x210)])[_0x2da4fb(0x2ba)]())==null?void 0x0:_0x1adcfb[0x0],_0x32983a=this[_0x2da4fb(0x315)]['getCurrentUnitForType'](_0x5bf9c6['UniverInstanceType'][_0x2da4fb(0x34f)])[_0x2da4fb(0x345)]();_0x1a41c9&&_0x32983a&&this[_0x2da4fb(0x393)](_0x32983a[_0x2da4fb(0x327)](),_0x1a41c9);}['_toggleOffline'](){this['_online']=!0x1;}};_0x23df67=_0x11def2([_0x205450(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x205450(0x3,_0x5bf9c6['Inject'](_0x30d5cc)),_0x205450(0x4,_0x5bf9c6['Inject'](_0x2c72d0[_0x19a859(0x1a7)])),_0x205450(0x5,_0x5bf9c6[_0x19a859(0x2f7)]),_0x205450(0x6,_0x5bf9c6[_0x19a859(0x37a)]),_0x205450(0x7,_0x5bf9c6['Inject'](_0x4fd62b[_0x19a859(0x343)]))],_0x23df67);var _0x480e65=Object['getOwnPropertyDescriptor'],_0x458e4a=(_0x193a6f,_0x5198fa,_0x185d7a,_0x58c54e)=>{const _0x37f96c=_0x19a859;for(var _0x4267fe=_0x58c54e>0x1?void 0x0:_0x58c54e?_0x480e65(_0x5198fa,_0x185d7a):_0x5198fa,_0x323af7=_0x193a6f[_0x37f96c(0x344)]-0x1,_0x28f97f;_0x323af7>=0x0;_0x323af7--)(_0x28f97f=_0x193a6f[_0x323af7])&&(_0x4267fe=_0x28f97f(_0x4267fe)||_0x4267fe);return _0x4267fe;},_0x1388d5=(_0x201f34,_0x3e5dea)=>(_0x5bfba3,_0x4ef656)=>_0x3e5dea(_0x5bfba3,_0x4ef656,_0x201f34);let _0x3097e7=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x53c2de,_0x133e1a,_0x2749dd){const _0x2f4808=_0x19a859;super(),_0x521fa5(this,'_entities',new Map()),_0x521fa5(this,'_entityInit$',new _0x496cb2[(_0x2f4808(0x1aa))]()),(this['_univerInstanceService']=_0x53c2de,this[_0x2f4808(0x380)]=_0x133e1a,this['_collabSessionService']=_0x2749dd,this[_0x2f4808(0x187)]());}[_0x19a859(0x27b)](){const _0x23cbcc=_0x19a859;super[_0x23cbcc(0x27b)](),this['_entityInit$']['complete'](),this[_0x23cbcc(0x2d1)][_0x23cbcc(0x139)](_0x52065e=>_0x52065e[_0x23cbcc(0x27b)]());}[_0x19a859(0x261)](_0x113506){const _0x32db63=_0x19a859;return this[_0x32db63(0x2d1)][_0x32db63(0x2b8)](_0x113506)?this[_0x32db63(0x2d1)]['get'](_0x113506)[_0x32db63(0x2ef)]:this[_0x32db63(0x2c8)][_0x32db63(0x38f)](_0x496cb2['filter'](_0x569bbe=>_0x569bbe[_0x32db63(0x1db)]===_0x113506),_0x496cb2[_0x32db63(0x2e3)](_0x2f2b75=>_0x2f2b75[_0x32db63(0x2ef)]));}[_0x19a859(0x187)](){const _0x1b930a=_0x19a859;this['_univerInstanceService'][_0x1b930a(0x14a)](_0x5bf9c6[_0x1b930a(0x2cb)][_0x1b930a(0x34f)])[_0x1b930a(0x38f)](_0x496cb2['takeUntil'](this[_0x1b930a(0x198)]))[_0x1b930a(0x28a)](async _0x3aa261=>{const _0x123bd2=_0x1b930a,_0x35afe8=_0x3aa261[_0x123bd2(0x1b2)](),_0x4e718f=await this['_startSheetCollabCursor'](_0x35afe8);this[_0x123bd2(0x2c8)]['next'](_0x4e718f),this[_0x123bd2(0x2d1)][_0x123bd2(0x17d)](_0x35afe8,_0x4e718f);}),this[_0x1b930a(0x315)][_0x1b930a(0x14a)](_0x5bf9c6[_0x1b930a(0x2cb)][_0x1b930a(0x25f)])['pipe'](_0x496cb2['takeUntil'](this[_0x1b930a(0x198)]))[_0x1b930a(0x38f)](_0x496cb2['filter'](_0x4ae148=>!_0x4ae148[_0x1b930a(0x1b2)]()[_0x1b930a(0x2c6)]('__')))[_0x1b930a(0x28a)](async _0x5ff80=>{const _0x1594ac=_0x1b930a,_0x54c66b=_0x5ff80['getUnitId'](),_0x43be6e=await this[_0x1594ac(0x39d)](_0x54c66b);this[_0x1594ac(0x2c8)][_0x1594ac(0x288)](_0x43be6e),this[_0x1594ac(0x2d1)]['set'](_0x54c66b,_0x43be6e);}),_0x496cb2[_0x1b930a(0x1f4)](this[_0x1b930a(0x315)][_0x1b930a(0x2f3)](_0x5bf9c6[_0x1b930a(0x2cb)][_0x1b930a(0x25f)]),this[_0x1b930a(0x315)][_0x1b930a(0x2f3)](_0x5bf9c6[_0x1b930a(0x2cb)][_0x1b930a(0x34f)]))['pipe'](_0x496cb2[_0x1b930a(0x130)](this[_0x1b930a(0x198)]))[_0x1b930a(0x28a)](_0xbd45db=>{const _0x1518dd=_0x1b930a,_0x233d41=_0xbd45db[_0x1518dd(0x1b2)](),_0x5339ae=this[_0x1518dd(0x2d1)][_0x1518dd(0x223)](_0x233d41);_0x5339ae&&(_0x5339ae['dispose'](),this[_0x1518dd(0x2d1)][_0x1518dd(0x227)](_0x233d41));});}async[_0x19a859(0x1df)](_0x20ab0c){const _0x58119c=_0x19a859,_0x5c85e1=await this['_collabSessionService'][_0x58119c(0x2bf)](_0x20ab0c),_0x1ed500=this['_injector'][_0x58119c(0x140)](_0x23df67,_0x20ab0c,_0x5c85e1);return _0x1ed500[_0x58119c(0x19c)](),_0x1ed500;}async[_0x19a859(0x39d)](_0x1664d8){const _0x366fb5=_0x19a859,_0x472f10=await this[_0x366fb5(0x122)][_0x366fb5(0x2bf)](_0x1664d8),_0x2b31ed=this['_injector'][_0x366fb5(0x140)](_0x5964e0,_0x1664d8,_0x472f10);return _0x2b31ed['init'](),_0x2b31ed;}};_0x3097e7=_0x458e4a([_0x1388d5(0x0,_0x5bf9c6[_0x19a859(0x2f7)]),_0x1388d5(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x1388d5(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0[_0x19a859(0x228)]))],_0x3097e7);const _0x41ef4a=0x14,_0x4ea8bc=0xc8,_0x3efecc=0x4,_0x54ed1d=0x5;function _0x2377a1(_0x1385a6,_0x1fe553){const _0x29f10d=_0x19a859;let {radius:_0x570111,width:_0x297ed6,height:_0x428799}=_0x1fe553;_0x570111=_0x570111!=null?_0x570111:0x0,_0x297ed6=_0x297ed6!=null?_0x297ed6:0x1e,_0x428799=_0x428799!=null?_0x428799:0x1e;let _0x174b93=0x0,_0x5bac9d=0x0,_0x473893=0x0;_0x174b93=_0x5bac9d=_0x473893=Math[_0x29f10d(0x31f)](_0x570111,_0x297ed6/0x2,_0x428799/0x2),_0x1385a6['beginPath'](),_0x1385a6[_0x29f10d(0x136)](_0x174b93,0x0),_0x1385a6[_0x29f10d(0x314)](_0x297ed6-_0x5bac9d,0x0),_0x1385a6[_0x29f10d(0x2a5)](_0x297ed6-_0x5bac9d,_0x5bac9d,_0x5bac9d,Math['PI']*0x3/0x2,0x0,!0x1),_0x1385a6[_0x29f10d(0x314)](_0x297ed6,_0x428799-_0x473893),_0x1385a6['arc'](_0x297ed6-_0x473893,_0x428799-_0x473893,_0x473893,0x0,Math['PI']/0x2,!0x1),_0x1385a6[_0x29f10d(0x314)](0x0,_0x428799),_0x1385a6['lineTo'](0x0,_0x174b93),_0x1385a6[_0x29f10d(0x2a5)](_0x174b93,_0x174b93,_0x174b93,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1385a6[_0x29f10d(0x1e5)](),_0x1fe553[_0x29f10d(0x2df)]&&(_0x1385a6[_0x29f10d(0x1e9)](),_0x1385a6[_0x29f10d(0x129)]=_0x1fe553['fill'],_0x1fe553['fillRule']===_0x29f10d(0x19d)?_0x1385a6[_0x29f10d(0x2df)](_0x29f10d(0x19d)):_0x1385a6[_0x29f10d(0x2df)](),_0x1385a6['restore']());}class _0x1c1073 extends _0x5d1039[_0x19a859(0x1fe)]{constructor(_0x4d6775,_0x5cc842){const _0x1f79ac=_0x19a859;super(_0x4d6775,_0x5cc842),_0x521fa5(this,_0x1f79ac(0x166)),_0x521fa5(this,'text'),(this[_0x1f79ac(0x166)]=_0x5cc842==null?void 0x0:_0x5cc842[_0x1f79ac(0x166)],this[_0x1f79ac(0x39b)]=_0x5cc842==null?void 0x0:_0x5cc842[_0x1f79ac(0x39b)]);}static[_0x19a859(0x22a)](_0x31e298,_0x13d3af){const _0x9682b7=_0x19a859,{text:_0x18cb03,color:_0x4963d2}=_0x13d3af;_0x31e298['save'](),_0x31e298[_0x9682b7(0x247)]=_0x9682b7(0x21d);const _0x31bccf=_0x31e298['measureText'](_0x18cb03)[_0x9682b7(0x15a)],_0x49e92a=Math[_0x9682b7(0x31f)](_0x31bccf+0x2*_0x3efecc,_0x4ea8bc);_0x2377a1(_0x31e298,{'height':_0x41ef4a,'radius':0x4,'width':_0x49e92a,'fill':_0x4963d2}),_0x31e298['fillStyle']='#FFF';const _0x5170ed=_0x3efecc,_0x28ac4f=_0x41ef4a-_0x54ed1d,_0x41761c=_0x4ea8bc-0x2*_0x3efecc;if(_0x31bccf>_0x41761c){let _0x34488e='',_0x265153=0x0;for(const _0x7e6e90 of _0x18cb03){const _0x52fa99=_0x31e298[_0x9682b7(0x19a)](_0x7e6e90)[_0x9682b7(0x15a)];if(_0x265153+_0x52fa99<=_0x41761c-_0x31e298['measureText']('...')[_0x9682b7(0x15a)])_0x34488e+=_0x7e6e90,_0x265153+=_0x52fa99;else{_0x34488e+=_0x9682b7(0x2d3);break;}}_0x31e298[_0x9682b7(0x250)](_0x34488e,_0x5170ed,_0x28ac4f);}else _0x31e298['fillText'](_0x18cb03,_0x5170ed,_0x28ac4f);_0x31e298['restore']();}['_draw'](_0x4fbff5){_0x1c1073['drawWith'](_0x4fbff5,this);}}const _0x1b5ccb=_0x19a859(0x161),_0x59c981=_0x19a859(0x175),_0x3dbb14=_0x19a859(0x31b),_0x17ae26=0x6,_0x36f5cf=1.5,_0xcb5651=0x4,_0x576fab=1.5,_0x187490='rgba(255,\x20255,\x20255,\x200.01)';class _0x4b4332{constructor(_0x3d12b7,_0x5a4e46,_0x112810,_0xb38a2a){const _0x5b21d4=_0x19a859;_0x521fa5(this,'_shapes',[]),_0x521fa5(this,_0x5b21d4(0x152),null),_0x521fa5(this,_0x5b21d4(0x1d1),null),_0x521fa5(this,_0x5b21d4(0x27f),null),_0x521fa5(this,_0x5b21d4(0x271),null),_0x521fa5(this,_0x5b21d4(0x341),null),(this[_0x5b21d4(0x29f)]=_0x3d12b7,this[_0x5b21d4(0x231)]=_0x5a4e46,this[_0x5b21d4(0x23f)]=_0x112810,this[_0x5b21d4(0x311)]=_0xb38a2a,this['_render']());}set[_0x19a859(0x2ce)](_0x2e07a0){const _0x19ec8f=_0x19a859;_0x2e07a0?(this['_anchorDot']&&this[_0x19ec8f(0x27f)][_0x19ec8f(0x254)](),this[_0x19ec8f(0x1d1)]&&this[_0x19ec8f(0x1d1)][_0x19ec8f(0x1e2)]()):(this['_anchorDot']&&this[_0x19ec8f(0x27f)]['show'](),this[_0x19ec8f(0x1d1)]&&this[_0x19ec8f(0x1d1)][_0x19ec8f(0x254)]());}[_0x19a859(0x27b)](){const _0x9a2341=_0x19a859;for(const _0x21bff0 of this[_0x9a2341(0x334)])_0x21bff0[_0x9a2341(0x27b)]();this[_0x9a2341(0x1d1)]&&this[_0x9a2341(0x1d1)][_0x9a2341(0x27b)](),this[_0x9a2341(0x27f)]&&this[_0x9a2341(0x27f)][_0x9a2341(0x27b)](),this[_0x9a2341(0x152)]&&this[_0x9a2341(0x152)][_0x9a2341(0x27b)](),this[_0x9a2341(0x341)]&&this[_0x9a2341(0x341)]();}[_0x19a859(0x23c)](){const _0x102296=_0x19a859;var _0x7aebcd;const {_docSkeleton:_0x29cce8,_document:_0x2e5ced}=this,{color:_0xc01857,name:_0x37573a,ranges:_0x5e2909}=this[_0x102296(0x29f)],_0x5c8d82=_0x2e5ced[_0x102296(0x24a)](),{docsLeft:_0x3c4b67,docsTop:_0x3063db}=_0x5c8d82,_0x3ad78b=new _0x1a8f2e[(_0x102296(0x297))](_0x5c8d82,_0x29cce8);for(const {startOffset:_0x1bb189,endOffset:_0x2dd0fb,rangeType:_0x1e51f4,segmentId:_0x5db2e9,segmentPage:_0x2973c0,collapsed:_0x43160f,isActive:_0x562d03}of _0x5e2909){const _0x2b4410=_0x29cce8[_0x102296(0x33a)](_0x1bb189,!0x0,_0x5db2e9,_0x2973c0);let _0xcec2d1=_0x29cce8[_0x102296(0x33a)](_0x2dd0fb,!0x0,_0x5db2e9,_0x2973c0);if(_0xcec2d1==null&&(_0xcec2d1=_0x29cce8[_0x102296(0x33a)](_0x2dd0fb-0x1,!0x1,_0x5db2e9,_0x2973c0)),_0x562d03){const {contentBoxPointGroup:_0xc9538f}=_0x3ad78b[_0x102296(0x398)](_0xcec2d1,_0xcec2d1);if(_0xc9538f[_0x102296(0x344)]===0x0)continue;this[_0x102296(0x35a)](_0xc01857,_0xc9538f,_0x3c4b67,_0x3063db,_0x37573a),this[_0x102296(0x341)]=this[_0x102296(0x34e)]();}if(_0x2b4410&&_0xcec2d1){if(_0x1e51f4===_0x5bf9c6[_0x102296(0x1c6)][_0x102296(0x1e8)]){const _0x4ab870=new _0x1a8f2e['NodePositionConvertToRectRange'](_0x5c8d82,_0x29cce8),{pointGroup:_0x5a52ab}=(_0x7aebcd=_0x4ab870['getRangePointData'](_0x2b4410,_0xcec2d1))!=null?_0x7aebcd:{};if(_0x5a52ab==null||_0x5a52ab['length']===0x0)continue;this['_drawRectRange'](_0xc01857,_0x5a52ab,_0x3c4b67,_0x3063db);}else{if(!_0x43160f){const {borderBoxPointGroup:_0x38722a}=_0x3ad78b[_0x102296(0x398)](_0x2b4410,_0xcec2d1);if(_0x38722a[_0x102296(0x344)]===0x0)continue;this[_0x102296(0x2bc)](_0xc01857,_0x38722a,_0x3c4b67,_0x3063db);}}}}}[_0x19a859(0x35a)](_0x4dcc25,_0x4f54f7,_0x198dbb,_0x482827,_0xf2af98){const _0x5110bd=_0x19a859,_0x571d0b=this[_0x5110bd(0x20f)](_0x4f54f7),{left:_0x5eebe0,top:_0x15331e,height:_0x42be80}=_0x571d0b,_0x52ac4e=this[_0x5110bd(0x28e)](),_0x4b225f=_0x576fab/_0x52ac4e,_0x53d035=new _0x5d1039['Rect'](_0x1b5ccb+_0x5bf9c6[_0x5110bd(0x389)]['generateRandomId'](_0x17ae26),{'left':_0x5eebe0+_0x198dbb-_0x4b225f,'top':_0x15331e+_0x482827,'height':_0x42be80,'width':_0x36f5cf,'fill':_0x4dcc25||_0x5d1039[_0x5110bd(0x317)](_0x5bf9c6[_0x5110bd(0x23a)][_0x5110bd(0x381)],0x0),'strokeWidth':_0x4b225f,'stroke':_0x187490,'evented':!0x0});this['_anchor']=_0x53d035,this['_scene'][_0x5110bd(0x34b)](_0x53d035,_0x1a8f2e[_0x5110bd(0x29b)]);const _0x1055d1=new _0x5d1039['Rect'](_0x1b5ccb+_0x5bf9c6[_0x5110bd(0x389)][_0x5110bd(0x1e0)](_0x17ae26),{'left':_0x5eebe0+_0x198dbb-_0x4b225f,'top':_0x15331e+_0x482827-_0xcb5651/0x2,'height':_0xcb5651,'width':_0xcb5651,'fill':_0x4dcc25||_0x5d1039[_0x5110bd(0x317)](_0x5bf9c6[_0x5110bd(0x23a)][_0x5110bd(0x381)],0x0),'strokeWidth':0x0,'stroke':_0x4dcc25||_0x5d1039[_0x5110bd(0x317)](_0x5bf9c6['COLORS'][_0x5110bd(0x381)],0x0),'evented':!0x1});this['_anchorDot']=_0x1055d1,this[_0x5110bd(0x231)]['addObject'](_0x1055d1,_0x1a8f2e[_0x5110bd(0x29b)]);const _0x3a4c0d=new _0x1c1073(_0x1b5ccb+_0x5bf9c6[_0x5110bd(0x389)][_0x5110bd(0x1e0)](_0x17ae26),{'left':_0x5eebe0+_0x198dbb-_0x4b225f,'top':_0x15331e+_0x482827-_0x41ef4a,'text':_0xf2af98,'color':_0x4dcc25});this[_0x5110bd(0x1d1)]=_0x3a4c0d,this[_0x5110bd(0x231)]['addObject'](_0x3a4c0d,_0x1a8f2e[_0x5110bd(0x29b)]),this['_hover']=!0x1;}[_0x19a859(0x34e)](){const _0x2de212=_0x19a859,_0x360292=this[_0x2de212(0x152)][_0x2de212(0x249)][_0x2de212(0x11b)](()=>{const _0x156aec=_0x2de212;this[_0x156aec(0x2ce)]=!0x0;}),_0x1c0c1a=this[_0x2de212(0x152)][_0x2de212(0x15f)]['subscribeEvent'](()=>{const _0x3a485c=_0x2de212;this[_0x3a485c(0x271)]&&clearTimeout(this[_0x3a485c(0x271)]),this[_0x3a485c(0x271)]=setTimeout(()=>{const _0x53a1ea=_0x3a485c;this[_0x53a1ea(0x2ce)]=!0x1;},0x7d0);});return()=>{const _0x47ab3c=_0x2de212;_0x360292[_0x47ab3c(0x18c)](),_0x1c0c1a['unsubscribe']();};}[_0x19a859(0x2bc)](_0x269199,_0x5af60c,_0x4b85f5,_0x2ef3d0){const _0x399641=_0x19a859,_0x52157b=new _0x5bf9c6[(_0x399641(0x335))](_0x269199)[_0x399641(0x1e7)](0.2)[_0x399641(0x1b8)](),_0xbeb517=new _0x5d1039[(_0x399641(0x36f))](_0x59c981+_0x5bf9c6[_0x399641(0x389)][_0x399641(0x1e0)](_0x17ae26),{'pointsGroup':_0x5af60c,'fill':_0x52157b||_0x5d1039[_0x399641(0x317)](_0x5bf9c6[_0x399641(0x23a)][_0x399641(0x381)],0.2),'left':_0x4b85f5,'top':_0x2ef3d0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x399641(0x334)][_0x399641(0x253)](_0xbeb517),this['_scene'][_0x399641(0x34b)](_0xbeb517,_0x1a8f2e[_0x399641(0x29b)]);}[_0x19a859(0x199)](_0x188a20,_0x52bbc1,_0x46a733,_0x3ac81a){const _0x3cec97=_0x19a859,_0xaff5b6=new _0x5bf9c6[(_0x3cec97(0x335))](_0x188a20)[_0x3cec97(0x1e7)](0.2)['toRgbString'](),_0x3ac5a3=new _0x5d1039[(_0x3cec97(0x36f))](_0x3dbb14+_0x5bf9c6[_0x3cec97(0x389)][_0x3cec97(0x1e0)](_0x17ae26),{'pointsGroup':_0x52bbc1,'fill':_0xaff5b6||_0x5d1039[_0x3cec97(0x317)](_0x5bf9c6[_0x3cec97(0x23a)][_0x3cec97(0x381)],0.2),'left':_0x46a733,'top':_0x3ac81a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3cec97(0x334)][_0x3cec97(0x253)](_0x3ac5a3),this[_0x3cec97(0x231)][_0x3cec97(0x34b)](_0x3ac5a3,_0x1a8f2e[_0x3cec97(0x29b)]);}[_0x19a859(0x20f)](_0x4d8d37){const _0x430fea=_0x4d8d37[0x0],_0x294cc6=_0x430fea[0x0],_0x57e516=_0x430fea[0x2],{x:_0x15bc0b,y:_0x1f8799}=_0x294cc6,{x:_0xff73f5,y:_0x149d04}=_0x57e516;return{'left':_0x15bc0b,'top':_0x1f8799,'width':_0xff73f5-_0x15bc0b,'height':_0x149d04-_0x1f8799};}[_0x19a859(0x28e)](){const _0x724456=_0x19a859,{scaleX:_0x40270c,scaleY:_0x499923}=this['_scene']['getAncestorScale']();return Math[_0x724456(0x35b)](_0x40270c,_0x499923);}}var _0x1dd39f=Object[_0x19a859(0x385)],_0x5bc22d=(_0x36e31c,_0x276ecc,_0xc9240,_0x280731)=>{const _0xe797b6=_0x19a859;for(var _0x4a382a=_0x280731>0x1?void 0x0:_0x280731?_0x1dd39f(_0x276ecc,_0xc9240):_0x276ecc,_0x52aff5=_0x36e31c[_0xe797b6(0x344)]-0x1,_0x100204;_0x52aff5>=0x0;_0x52aff5--)(_0x100204=_0x36e31c[_0x52aff5])&&(_0x4a382a=_0x100204(_0x4a382a)||_0x4a382a);return _0x4a382a;},_0x3f4a1e=(_0x42daa8,_0x4c0a64)=>(_0x1026b5,_0x16200f)=>_0x4c0a64(_0x1026b5,_0x16200f,_0x42daa8);let _0x488d8f=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x235329,_0x20feab,_0x4b6ca0,_0x3fbb6c,_0x239f91){const _0x3c6340=_0x19a859;super(),_0x521fa5(this,_0x3c6340(0x19e),[]),_0x521fa5(this,_0x3c6340(0x22d),[]),(this[_0x3c6340(0x2a1)]=_0x235329,this[_0x3c6340(0x192)]=_0x20feab,this[_0x3c6340(0x2dd)]=_0x4b6ca0,this['_commandService']=_0x3fbb6c,this[_0x3c6340(0x141)]=_0x239f91,this[_0x3c6340(0x187)]());}[_0x19a859(0x187)](){const _0x1138a1=_0x19a859,_0x55b569=this[_0x1138a1(0x2a1)][_0x1138a1(0x2ab)],_0x5b6d4f=this[_0x1138a1(0x192)];this[_0x1138a1(0x305)](_0x496cb2[_0x1138a1(0x147)]([this[_0x1138a1(0x2dd)][_0x1138a1(0x261)](_0x55b569),this[_0x1138a1(0x141)]['currentTheme$']])['pipe'](_0x19b4ce[_0x1138a1(0x309)](([_0x3f24ab,_0x48ae37])=>({'skeleton':_0x5b6d4f[_0x1138a1(0x306)](),'cursors':[..._0x3f24ab[_0x1138a1(0x37d)]()]['flatMap'](_0xefb72d=>({..._0xefb72d,'color':_0x48ae37[_0xefb72d[_0x1138a1(0x166)]]}))})))['subscribe'](_0x5a5666=>{const _0x234b92=_0x1138a1;if(this['_removeCollabCursors'](),_0x5a5666){const {skeleton:_0x31111e,cursors:_0x170bf8}=_0x5a5666;this[_0x234b92(0x379)](_0x31111e,_0x170bf8);}})),this['_initResize'](),this[_0x1138a1(0x133)]();}['_updateCollabCursors'](_0x5d078f,_0x502495){const _0x479d97=_0x19a859,{scene:_0x55b530,mainComponent:_0x237dda}=this[_0x479d97(0x2a1)],_0x57c35c=_0x502495[_0x479d97(0x309)](_0x10d853=>new _0x4b4332(_0x10d853,_0x55b530,_0x5d078f,_0x237dda));this[_0x479d97(0x19e)]=_0x57c35c,this[_0x479d97(0x22d)]=_0x502495;}[_0x19a859(0x12d)](){const _0x2521f6=_0x19a859;this[_0x2521f6(0x1ff)]();const {scene:_0x42ee76,mainComponent:_0x23a228}=this[_0x2521f6(0x2a1)],_0x4a5b7d=this['_docSkeletonManagerService'][_0x2521f6(0x306)](),_0x5cb123=this[_0x2521f6(0x22d)][_0x2521f6(0x309)](_0x2b3808=>new _0x4b4332(_0x2b3808,_0x42ee76,_0x4a5b7d,_0x23a228));this[_0x2521f6(0x19e)]=_0x5cb123;}[_0x19a859(0x1ff)](){const _0x2f4fd0=_0x19a859;this[_0x2f4fd0(0x19e)][_0x2f4fd0(0x139)](_0x5194a7=>_0x5194a7['dispose']()),this[_0x2f4fd0(0x19e)]=[];}[_0x19a859(0x133)](){const _0x53b0cd=_0x19a859,_0x29a0de=[_0x1a8f2e[_0x53b0cd(0x21e)]['id']];this[_0x53b0cd(0x305)](this[_0x53b0cd(0x1d4)]['onCommandExecuted'](_0x401538=>{const _0x5ea3b6=_0x53b0cd;_0x29a0de[_0x5ea3b6(0x1b4)](_0x401538['id'])&&_0x401538[_0x5ea3b6(0x316)][_0x5ea3b6(0x2ab)]===this[_0x5ea3b6(0x2a1)][_0x5ea3b6(0x2ab)]&&this[_0x5ea3b6(0x12d)]();}));}[_0x19a859(0x1a1)](){const _0x45451a=_0x19a859;this[_0x45451a(0x305)](_0x5bf9c6['fromEventSubject'](this[_0x45451a(0x2a1)][_0x45451a(0x230)]['onTransformChange$'])[_0x45451a(0x38f)](_0x19b4ce['filter'](_0xe89bda=>_0xe89bda[_0x45451a(0x2a0)]===_0x5d1039['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x45451a(0x174)]),_0x19b4ce['throttleTime'](0x10))[_0x45451a(0x28a)](()=>{const _0x489b04=_0x45451a;this[_0x489b04(0x12d)]();}));}};_0x488d8f=_0x5bc22d([_0x3f4a1e(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x50e692['DocSkeletonManagerService'])),_0x3f4a1e(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x3097e7)),_0x3f4a1e(0x3,_0x5bf9c6[_0x19a859(0x37a)]),_0x3f4a1e(0x4,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x11a)]))],_0x488d8f);const _0x3ff862=0x1,_0x17eb92=1.5;class _0x30557c extends _0x5d1039['Shape']{constructor(_0x54f77a,_0x521290){const _0x3281e9=_0x19a859;super(_0x54f77a,_0x521290),_0x521fa5(this,_0x3281e9(0x18a)),_0x521fa5(this,_0x3281e9(0x1ce),!0x1),_0x521fa5(this,'_range'),_0x521fa5(this,_0x3281e9(0x3a2),''),_0x521fa5(this,_0x3281e9(0x206),_0x3281e9(0x154)),_0x521fa5(this,_0x3281e9(0x205)),(_0x521290&&this[_0x3281e9(0x162)](_0x521290),this[_0x3281e9(0x249)]['subscribeEvent'](()=>this[_0x3281e9(0x162)]({'hovered':!0x0})),this[_0x3281e9(0x15f)]['subscribeEvent'](()=>this[_0x3281e9(0x162)]({'hovered':!0x1})));}[_0x19a859(0x162)](_0x67d751){const _0xf03078=_0x19a859;var _0x12bb96,_0x399b0d,_0x52bf94,_0xafee21,_0x2bbf05,_0x1f2738;this['_color']=(_0x12bb96=_0x67d751[_0xf03078(0x166)])!=null?_0x12bb96:this[_0xf03078(0x18a)],this[_0xf03078(0x1ce)]=(_0x399b0d=_0x67d751[_0xf03078(0x2db)])!=null?_0x399b0d:this[_0xf03078(0x1ce)],this['_range']=(_0x52bf94=_0x67d751[_0xf03078(0x399)])!=null?_0x52bf94:this[_0xf03078(0x13b)],this['_name']=(_0xafee21=_0x67d751[_0xf03078(0x33f)])!=null?_0xafee21:this[_0xf03078(0x3a2)],this[_0xf03078(0x206)]=(_0x2bbf05=_0x67d751[_0xf03078(0x36e)])!=null?_0x2bbf05:this[_0xf03078(0x206)],this[_0xf03078(0x205)]=(_0x1f2738=_0x67d751['backgroundColor'])!=null?_0x1f2738:this[_0xf03078(0x205)],this['transformByState']({'width':_0x67d751['width'],'height':_0x67d751[_0xf03078(0x386)]});}[_0x19a859(0x1e1)](_0x2aa017){const _0x4d44be=_0x19a859,{row:_0x5351f4,column:_0x3518d2}=_0x2aa017;if(_0x5351f4>=this[_0x4d44be(0x13b)]['startRow']&&_0x5351f4<=this[_0x4d44be(0x13b)]['endRow']&&_0x3518d2>=this[_0x4d44be(0x13b)][_0x4d44be(0x180)]&&_0x3518d2<=this[_0x4d44be(0x13b)]['endColumn']){this[_0x4d44be(0x162)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x19a859(0x38e)](_0x4f1b25){return!0x1;}[_0x19a859(0x11d)](_0x31d526){const _0x551df2=_0x19a859;_0x5d1039[_0x551df2(0x1cd)]['drawWith'](_0x31d526,{'width':this[_0x551df2(0x15a)],'height':this[_0x551df2(0x386)],'strokeWidth':_0x17eb92,'stroke':this[_0x551df2(0x18a)],'evented':!0x1,'fill':this[_0x551df2(0x205)]}),this[_0x551df2(0x1ce)]&&(_0x31d526['save'](),_0x31d526[_0x551df2(0x38b)](0x1,0x0,0x0,0x1,this['width'],this[_0x551df2(0x206)]===_0x551df2(0x112)?0x0:-0x14),_0x1c1073[_0x551df2(0x22a)](_0x31d526,{'text':this['_name'],'color':this[_0x551df2(0x18a)]}),_0x31d526['restore']());}}var _0x1e2088=Object[_0x19a859(0x385)],_0x15f004=(_0x46896a,_0xe63b3,_0x2b24da,_0x1516f8)=>{const _0xae0be=_0x19a859;for(var _0x59a8a1=_0x1516f8>0x1?void 0x0:_0x1516f8?_0x1e2088(_0xe63b3,_0x2b24da):_0xe63b3,_0xb0c84a=_0x46896a[_0xae0be(0x344)]-0x1,_0x129945;_0xb0c84a>=0x0;_0xb0c84a--)(_0x129945=_0x46896a[_0xb0c84a])&&(_0x59a8a1=_0x129945(_0x59a8a1)||_0x59a8a1);return _0x59a8a1;},_0x51b434=(_0x5b4db6,_0x584512)=>(_0x38b1a4,_0x30bd57)=>_0x584512(_0x38b1a4,_0x30bd57,_0x5b4db6);const _0x57a422=0x1389;let _0x9b9b90=class extends _0x5bf9c6['RxDisposable']{constructor(_0x5e0c2c,_0x527584,_0x294695,_0x3822bc){const _0x407c21=_0x19a859;super(),_0x521fa5(this,'_cursors',new Set()),_0x521fa5(this,_0x407c21(0x1f6),null),(this[_0x407c21(0x2a1)]=_0x5e0c2c,this[_0x407c21(0x26f)]=_0x527584,this[_0x407c21(0x2dd)]=_0x294695,this['_themeService']=_0x3822bc,this[_0x407c21(0x187)]());}['_init'](){const _0x18e834=_0x19a859;this[_0x18e834(0x26f)]['currentSkeleton$']['pipe'](_0x19b4ce[_0x18e834(0x130)](this[_0x18e834(0x198)]),_0x19b4ce[_0x18e834(0x2e3)](_0x204fcb=>{const _0x4fe1e7=_0x18e834;if(_0x204fcb){const _0x4359b2=_0x204fcb[_0x4fe1e7(0x348)];return _0x496cb2['combineLatest'](this[_0x4fe1e7(0x2dd)]['getCollabCursors$'](this['_context']['unitId']),this['_themeService'][_0x4fe1e7(0x186)])[_0x4fe1e7(0x38f)](_0x19b4ce['map'](([_0x429706,_0x534439])=>{const _0x14074b=_0x4fe1e7,_0x5ae039=new Map();return _0x429706[_0x14074b(0x139)]((_0x211e6e,_0x56b1ca)=>{const _0x5b2fea=_0x14074b;if(_0x211e6e[_0x5b2fea(0x3a4)]===_0x4359b2){const _0xa7ddf7={..._0x211e6e};_0xa7ddf7[_0x5b2fea(0x166)]=_0x534439[_0x211e6e['color']],_0x5ae039['set'](_0x56b1ca,_0xa7ddf7);}}),{'skeleton':_0x204fcb,'cursors':_0x5ae039};}));}return _0x496cb2['of']({'skeleton':null,'cursors':new Map()});}))[_0x18e834(0x28a)](({skeleton:_0x2310fb,cursors:_0x1055da})=>{const _0x4c8ca5=_0x18e834;this[_0x4c8ca5(0x1ff)](),_0x2310fb&&this['_updateCollabCursors'](_0x2310fb,_0x1055da);}),this[_0x18e834(0x26f)][_0x18e834(0x124)][_0x18e834(0x28a)](_0x67d540=>{const _0x35a4fa=_0x18e834;if(_0x67d540==null)return;const {skeleton:_0x480467}=_0x67d540,{scene:_0x2ad4ff}=this[_0x35a4fa(0x2a1)];_0x2ad4ff[_0x35a4fa(0x1d9)]['subscribeEvent'](_0x5bf9c6[_0x35a4fa(0x372)](_0x2ecf95=>{const _0x32df59=_0x35a4fa;var _0x1bfcc9,_0x284779;const {offsetX:_0x5cb8e4,offsetY:_0x1048a3}=_0x2ecf95,{x:_0x595489,y:_0x2f3347}=_0x2ad4ff[_0x32df59(0x293)](_0x5d1039[_0x32df59(0x148)]['FromArray']([_0x5cb8e4,_0x1048a3])),{scaleX:_0x4fd9e1,scaleY:_0xbd2a4c}=_0x2ad4ff[_0x32df59(0x363)](),_0x475017=_0x2ad4ff[_0x32df59(0x1d0)](_0x5d1039[_0x32df59(0x157)][_0x32df59(0x156)]),_0x8cbe17=_0x2ad4ff[_0x32df59(0x2c2)](_0x5d1039['Vector2'][_0x32df59(0x1f3)]([_0x595489,_0x2f3347]),_0x475017),_0x1c37a5=_0x480467[_0x32df59(0x201)](_0x5cb8e4,_0x1048a3,_0x4fd9e1,_0xbd2a4c,_0x8cbe17);((_0x1bfcc9=this[_0x32df59(0x1f6)])==null?void 0x0:_0x1bfcc9[_0x32df59(0x32c)])===_0x1c37a5['column']&&((_0x284779=this[_0x32df59(0x1f6)])==null?void 0x0:_0x284779[_0x32df59(0x1b3)])===_0x1c37a5[_0x32df59(0x1b3)]||this['_cursors'][_0x32df59(0x139)](_0x37787c=>{const _0x58fe6d=_0x32df59;_0x37787c[_0x58fe6d(0x1e1)](_0x1c37a5);});},0x64));});}['_updateCollabCursors'](_0x438d59,_0x5e8179){const _0x19fc0d=_0x19a859;var _0x720153;const _0x47b945=(_0x720153=this[_0x19fc0d(0x26f)]['getCurrent']())==null?void 0x0:_0x720153['skeleton'];if(!_0x47b945)return;const _0x488377=this[_0x19fc0d(0x2e7)]();if(!_0x488377)return;this[_0x19fc0d(0x22d)][_0x19fc0d(0x139)](_0x45ca3a=>{_0x45ca3a['makeDirty']();});const {scene:_0x38c8ef}=_0x488377,_0x259019=_0x30398d(Array[_0x19fc0d(0x145)](_0x5e8179[_0x19fc0d(0x37d)]()))['map'](_0xe7cd88=>{const _0x43ac01=_0x19fc0d,{color:_0x3d5576,range:_0xd21e,name:_0x3cfcd4,selection:_0x50fe38,sheetID:_0x5278dd}=_0xe7cd88,{startColumn:_0x2e54e2,startRow:_0x29bb3e,endColumn:_0x3afebf,endRow:_0x56a228}=_0xd21e,_0x243382=_0x45d045[_0x43ac01(0x19b)](_0x29bb3e,_0x2e54e2,_0x38c8ef,_0x47b945),_0x504ea=_0x45d045[_0x43ac01(0x19b)](_0x56a228,_0x3afebf,_0x38c8ef,_0x47b945),{columnHeaderHeightAndMarginTop:_0x152e1d}=_0x47b945,{startX:_0x298651,startY:_0x3c2314}=_0x243382,{endX:_0x1fb767,endY:_0x84c8be}=_0x504ea,_0x27e360=_0x1fb767-_0x298651,_0x194d52=_0x84c8be-_0x3c2314,_0x14138a={'labelPosition':_0x3c2314-_0x152e1d>=_0x41ef4a?_0x43ac01(0x154):_0x43ac01(0x112),'sheetID':_0x5278dd,'range':_0xd21e,'color':_0x3d5576,'name':_0x3cfcd4,'selection':_0x50fe38,'left':_0x298651,'top':_0x3c2314,'width':_0x27e360,'height':_0x194d52,'evented':!0x1,'zIndex':_0x57a422};return new _0x30557c(_0x3cfcd4,_0x14138a);});_0x38c8ef[_0x19fc0d(0x24e)](_0x259019,_0x3ff862),this[_0x19fc0d(0x22d)]=new Set(_0x259019);}[_0x19a859(0x1ff)](){const _0x500120=_0x19a859;var _0x249989;(_0x249989=this['_cursors'])==null||_0x249989[_0x500120(0x139)](_0x327ab1=>_0x327ab1[_0x500120(0x27b)]());}[_0x19a859(0x2e7)](){const _0x4f0bcd=_0x19a859;return _0x45d045[_0x4f0bcd(0x2d4)](this[_0x4f0bcd(0x2a1)][_0x4f0bcd(0x182)],this[_0x4f0bcd(0x2a1)]);}};_0x9b9b90=_0x15f004([_0x51b434(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x45d045['SheetSkeletonManagerService'])),_0x51b434(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x3097e7)),_0x51b434(0x3,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x11a)]))],_0x9b9b90);function _0x30398d(_0x58c07b){const _0x343449=_0x19a859,_0x5b6003=new Map();return _0x58c07b[_0x343449(0x139)](_0xff101=>{const _0x13d37f=_0x343449;if(_0x5b6003[_0x13d37f(0x2b8)](_0xff101[_0x13d37f(0x1ef)])){const _0x1e120c=_0x5b6003[_0x13d37f(0x223)](_0xff101[_0x13d37f(0x1ef)]);_0x1e120c[_0x13d37f(0x33f)]+=',\x20'+_0xff101[_0x13d37f(0x33f)];}else _0x5b6003['set'](_0xff101['selection'],_0xff101);}),Array[_0x343449(0x145)](_0x5b6003['values']());}var _0xe4b539=function(){const _0x42dc55=_0x19a859;return _0xe4b539=Object[_0x42dc55(0x3a8)]||function(_0x577194){const _0x299730=_0x42dc55;for(var _0x47a954,_0x17a44d=0x1,_0xa0f122=arguments[_0x299730(0x344)];_0x17a44d<_0xa0f122;_0x17a44d++){_0x47a954=arguments[_0x17a44d];for(var _0x223351 in _0x47a954)Object[_0x299730(0x2eb)][_0x299730(0x2f1)]['call'](_0x47a954,_0x223351)&&(_0x577194[_0x223351]=_0x47a954[_0x223351]);}return _0x577194;},_0xe4b539['apply'](this,arguments);},_0x373af3=function(_0x473425,_0x3db273){const _0x42981b=_0x19a859;var _0x2dde9d={};for(var _0x3dd852 in _0x473425)Object[_0x42981b(0x2eb)][_0x42981b(0x2f1)][_0x42981b(0x207)](_0x473425,_0x3dd852)&&_0x3db273[_0x42981b(0x1b5)](_0x3dd852)<0x0&&(_0x2dde9d[_0x3dd852]=_0x473425[_0x3dd852]);if(_0x473425!=null&&typeof Object[_0x42981b(0x1dd)]=='function'){for(var _0x250ad6=0x0,_0x3dd852=Object[_0x42981b(0x1dd)](_0x473425);_0x250ad6<_0x3dd852['length'];_0x250ad6++)_0x3db273['indexOf'](_0x3dd852[_0x250ad6])<0x0&&Object[_0x42981b(0x2eb)][_0x42981b(0x118)]['call'](_0x473425,_0x3dd852[_0x250ad6])&&(_0x2dde9d[_0x3dd852[_0x250ad6]]=_0x473425[_0x3dd852[_0x250ad6]]);}return _0x2dde9d;},_0x4a3bf8=_0xab82b5[_0x19a859(0x35c)](function(_0x4af63d,_0x109e2f){const _0x5a4bc1=_0x19a859;var _0x1bcaea=_0x4af63d['icon'],_0x1d49d8=_0x4af63d['id'],_0x381001=_0x4af63d[_0x5a4bc1(0x1a5)],_0x21bc10=_0x4af63d[_0x5a4bc1(0x377)],_0x52b9bd=_0x373af3(_0x4af63d,[_0x5a4bc1(0x2d5),'id',_0x5a4bc1(0x1a5),'extend']),_0x488aaa='univerjs-icon\x20univerjs-icon-'[_0x5a4bc1(0x30b)](_0x1d49d8,'\x20')[_0x5a4bc1(0x30b)](_0x381001||'')[_0x5a4bc1(0x360)](),_0x49bb9d=_0xab82b5['useRef']('_'['concat'](_0x1f6ecc()));return _0x169858(_0x1bcaea,''['concat'](_0x1d49d8),{'defIds':_0x1bcaea['defIds'],'idSuffix':_0x49bb9d[_0x5a4bc1(0x2ed)]},_0xe4b539({'ref':_0x109e2f,'className':_0x488aaa},_0x52b9bd),_0x21bc10);});function _0x169858(_0x8f0dcc,_0x3de37d,_0x5139cf,_0x56cebf,_0x58a6cd){const _0x59b1b4=_0x19a859;return _0xab82b5[_0x59b1b4(0x144)](_0x8f0dcc['tag'],_0xe4b539(_0xe4b539({'key':_0x3de37d},_0x49bbd1(_0x8f0dcc,_0x5139cf,_0x58a6cd)),_0x56cebf),(_0x51a1b8(_0x8f0dcc,_0x5139cf)[_0x59b1b4(0x10f)]||[])['map'](function(_0x4c06d1,_0x3f330e){const _0x58e24d=_0x59b1b4;return _0x169858(_0x4c06d1,''[_0x58e24d(0x30b)](_0x3de37d,'-')['concat'](_0x8f0dcc[_0x58e24d(0x16b)],'-')[_0x58e24d(0x30b)](_0x3f330e),_0x5139cf,void 0x0,_0x58a6cd);}));}function _0x49bbd1(_0x280671,_0x30426e,_0x3fff50){const _0x26ffa0=_0x19a859;var _0x4cba22=_0xe4b539({},_0x280671['attrs']);_0x3fff50!=null&&_0x3fff50[_0x26ffa0(0x37b)]&&_0x4cba22[_0x26ffa0(0x2df)]===_0x26ffa0(0x37b)&&(_0x4cba22[_0x26ffa0(0x2df)]=_0x3fff50['colorChannel1']),_0x280671[_0x26ffa0(0x16b)]===_0x26ffa0(0x164)&&_0x4cba22['id']&&(_0x4cba22['id']=_0x4cba22['id']+_0x30426e[_0x26ffa0(0x23d)]),Object[_0x26ffa0(0x211)](_0x4cba22)['forEach'](function(_0x505922){const _0x1aa687=_0x26ffa0;var _0x1c520e=_0x505922[0x0],_0xf23ca9=_0x505922[0x1];_0x1c520e===_0x1aa687(0x164)&&typeof _0xf23ca9==_0x1aa687(0x208)&&(_0x4cba22[_0x1c520e]=_0xf23ca9[_0x1aa687(0x20d)](/url\(#(.*)\)/,'url(#$1'[_0x1aa687(0x30b)](_0x30426e['idSuffix'],')')));});var _0x4fb094=_0x30426e[_0x26ffa0(0x1a8)];return!_0x4fb094||_0x4fb094[_0x26ffa0(0x344)]===0x0||(_0x280671[_0x26ffa0(0x16b)]===_0x26ffa0(0x18e)&&_0x4cba22[_0x26ffa0(0x1f7)]&&(_0x4cba22[_0x26ffa0(0x1f7)]=_0x4cba22[_0x26ffa0(0x1f7)]+_0x30426e['idSuffix']),Object[_0x26ffa0(0x211)](_0x4cba22)[_0x26ffa0(0x139)](function(_0x2aeb92){const _0x164c38=_0x26ffa0;var _0x1c9538=_0x2aeb92[0x0],_0x56b980=_0x2aeb92[0x1];typeof _0x56b980=='string'&&(_0x4cba22[_0x1c9538]=_0x56b980['replace'](/url\(#(.*)\)/,_0x164c38(0x29d)[_0x164c38(0x30b)](_0x30426e[_0x164c38(0x23d)],')')));})),_0x4cba22;}function _0x51a1b8(_0x54ea60,_0x10d371){const _0x2c7bf6=_0x19a859;var _0x33358b,_0x3092bf=_0x10d371['defIds'];return!_0x3092bf||_0x3092bf[_0x2c7bf6(0x344)]===0x0?_0x54ea60:_0x54ea60[_0x2c7bf6(0x16b)]==='defs'&&(!((_0x33358b=_0x54ea60[_0x2c7bf6(0x10f)])===null||_0x33358b===void 0x0)&&_0x33358b[_0x2c7bf6(0x344)])?_0xe4b539(_0xe4b539({},_0x54ea60),{'children':_0x54ea60[_0x2c7bf6(0x10f)][_0x2c7bf6(0x309)](function(_0x44062b){const _0x29ca36=_0x2c7bf6;return typeof _0x44062b['attrs']['id']==_0x29ca36(0x208)&&_0x3092bf&&_0x3092bf[_0x29ca36(0x1b5)](_0x44062b[_0x29ca36(0x1a9)]['id'])>-0x1?_0xe4b539(_0xe4b539({},_0x44062b),{'attrs':_0xe4b539(_0xe4b539({},_0x44062b[_0x29ca36(0x1a9)]),{'id':_0x44062b[_0x29ca36(0x1a9)]['id']+_0x10d371[_0x29ca36(0x23d)]})}):_0x44062b;})}):_0x54ea60;}function _0x1f6ecc(){const _0x93bf88=_0x19a859;return Math[_0x93bf88(0x39a)]()[_0x93bf88(0x246)](0x24)[_0x93bf88(0x13f)](0x2,0x8);}_0x4a3bf8[_0x19a859(0x248)]='UniverIcon';var _0x461e80={'tag':_0x19a859(0x217),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x19a859(0x1b6),'height':_0x19a859(0x1b6)},'children':[{'tag':'g','attrs':{'clipPath':_0x19a859(0x265)},'children':[{'tag':_0x19a859(0x333),'attrs':{'stroke':_0x19a859(0x1e6),'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':_0x19a859(0x2aa),'strokeLinejoin':_0x19a859(0x2aa),'strokeWidth':1.2}}]},{'tag':_0x19a859(0x26d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x19a859(0x137)},'children':[{'tag':_0x19a859(0x333),'attrs':{'fill':_0x19a859(0x394),'d':_0x19a859(0x278)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x1f3904=_0xab82b5[_0x19a859(0x35c)](function(_0x4bc6c2,_0x37cc09){const _0x797ff1=_0x19a859;return _0xab82b5[_0x797ff1(0x144)](_0x4a3bf8,Object['assign']({},_0x4bc6c2,{'id':_0x797ff1(0x2a7),'ref':_0x37cc09,'icon':_0x461e80}));});_0x1f3904[_0x19a859(0x248)]=_0x19a859(0x2f2);var _0x47458f={'tag':_0x19a859(0x217),'attrs':{'fill':_0x19a859(0x34c),'viewBox':_0x19a859(0x2ff),'width':_0x19a859(0x1b6),'height':_0x19a859(0x1b6)},'children':[{'tag':'g','attrs':{'clipPath':_0x19a859(0x304)},'children':[{'tag':_0x19a859(0x333),'attrs':{'stroke':'currentColor','d':_0x19a859(0x2e2),'strokeLinecap':_0x19a859(0x2aa),'strokeLinejoin':_0x19a859(0x2aa),'strokeWidth':1.2}}]},{'tag':_0x19a859(0x26d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x19a859(0x278),'transform':'translate(.97)'}}]}]}],'defIds':[_0x19a859(0x219)]},_0xa5b3a3=_0xab82b5[_0x19a859(0x35c)](function(_0x1c1b65,_0x368fe6){const _0x1f2a5f=_0x19a859;return _0xab82b5['createElement'](_0x4a3bf8,Object[_0x1f2a5f(0x3a8)]({},_0x1c1b65,{'id':_0x1f2a5f(0x24d),'ref':_0x368fe6,'icon':_0x47458f}));});_0xa5b3a3[_0x19a859(0x248)]='OnLineSingle';function _0x3c4821(_0x176dbc){const _0x14b484=_0x19a859;switch(_0x176dbc){case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x2ae)]:return _0x14b484(0x302);case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x24b)]:return _0x14b484(0x2c0);case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x25b)]:return'collabStatus.fetchMiss';case _0x2c72d0[_0x14b484(0x13c)]['NOT_COLLAB']:return _0x14b484(0x23e);case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x382)]:case _0x2c72d0['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x14b484(0x15c);case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x12b)]:case _0x2c72d0['CollaborationStatus'][_0x14b484(0x1c7)]:return _0x14b484(0x1fb);}}function _0x4957f6(_0x1be164){const _0x5c21a0=_0x19a859,{status$:_0xb366c0}=_0x1be164,_0x399ab7=_0x106fc7[_0x5c21a0(0x16f)](_0xb366c0,_0x2c72d0['CollaborationStatus'][_0x5c21a0(0x177)]),_0x2dab5c=_0x106fc7[_0x5c21a0(0x2b0)](_0x5bf9c6[_0x5c21a0(0x2d7)]),_0x12b00b=_0x106fc7['useDependency'](_0x2c72d0['CollaborationSessionService']),_0x1d9b91=_0x399ab7!==_0x2c72d0[_0x5c21a0(0x13c)][_0x5c21a0(0x2ae)],_0x554584=_0x2dab5c['t'](_0x3c4821(_0x399ab7)),_0x2b24c4=_0x1d9b91?_0x5540cf[_0x5c21a0(0x1da)](_0xa5b3a3,{}):_0x5540cf[_0x5c21a0(0x1da)](_0x1f3904,{}),_0x53714a=_0xab82b5['useCallback'](()=>{const _0x107711=_0x5c21a0;_0x1d9b91||_0x12b00b[_0x107711(0x267)]();},[_0x1d9b91,_0x12b00b]);function _0xcc1376(){const _0x5008ee=_0x5c21a0;return _0x5540cf['jsxs']('div',{'className':_0x5008ee(0x17c),'onClick':_0x53714a,'children':[_0x5540cf[_0x5008ee(0x1da)](_0x5008ee(0x149),{'className':_0x165dd1['clsx']('univer-flex\x20univer-mr-2\x20univer-text-[20px]',_0x1d9b91?_0x5008ee(0x169):_0x5008ee(0x188)),'children':_0x2b24c4}),_0x5540cf['jsx'](_0x5008ee(0x149),{'className':_0x5008ee(0x2e8),'children':_0x554584})]});}return _0x1d9b91?_0xcc1376():_0x5540cf['jsx'](_0x165dd1['Tooltip'],{'title':_0x2dab5c['t'](_0x5c21a0(0x225)),'children':_0xcc1376()});}var _0x3495c3=Object[_0x19a859(0x385)],_0xaaf97b=(_0x121beb,_0x35926d,_0x43f60b,_0xba6cfe)=>{const _0x58bf15=_0x19a859;for(var _0x5eb6c1=_0xba6cfe>0x1?void 0x0:_0xba6cfe?_0x3495c3(_0x35926d,_0x43f60b):_0x35926d,_0x580bd7=_0x121beb[_0x58bf15(0x344)]-0x1,_0x20046a;_0x580bd7>=0x0;_0x580bd7--)(_0x20046a=_0x121beb[_0x580bd7])&&(_0x5eb6c1=_0x20046a(_0x5eb6c1)||_0x5eb6c1);return _0x5eb6c1;},_0x1270d0=(_0x2721cb,_0x25aefc)=>(_0x10ac6e,_0x27eafc)=>_0x25aefc(_0x10ac6e,_0x27eafc,_0x2721cb);_0x4c3250[_0x19a859(0x134)]=class extends _0x5bf9c6['Disposable']{constructor(_0x1f0946,_0x3430e0,_0x3a396a,_0xe4e9ac){const _0x43dca7=_0x19a859;super(),_0x521fa5(this,_0x43dca7(0x2af),new _0x496cb2[(_0x43dca7(0x3a5))](_0x2c72d0['CollaborationStatus'][_0x43dca7(0x177)])),(this[_0x43dca7(0x315)]=_0x1f0946,this['_injector']=_0x3430e0,this[_0x43dca7(0x14b)]=_0x3a396a,this[_0x43dca7(0x259)]=_0xe4e9ac,this[_0x43dca7(0x243)](),this[_0x43dca7(0x1f8)]());}[_0x19a859(0x1f8)](){const _0x13b49d=_0x19a859;this[_0x13b49d(0x305)](this['_univerInstanceService'][_0x13b49d(0x2bd)][_0x13b49d(0x38f)](_0x496cb2[_0x13b49d(0x2e3)](()=>{const _0x3d3fc5=_0x13b49d,_0x36dc81=this[_0x3d3fc5(0x315)][_0x3d3fc5(0x280)]();return _0x36dc81?this[_0x3d3fc5(0x14b)][_0x3d3fc5(0x28c)](_0x36dc81[_0x3d3fc5(0x1b2)]()):_0x496cb2['of'](null);}),_0x496cb2[_0x13b49d(0x2e3)](_0x7d27b8=>_0x7d27b8?_0x7d27b8[_0x13b49d(0x2be)]:_0x496cb2['of'](_0x2c72d0['CollaborationStatus']['NOT_COLLAB'])))[_0x13b49d(0x28a)](_0x7f5647=>{const _0x55e9bb=_0x13b49d;this[_0x55e9bb(0x2af)][_0x55e9bb(0x288)](_0x7f5647);}));}[_0x19a859(0x243)](){const _0x2ce3e8=_0x19a859;this[_0x2ce3e8(0x305)](this[_0x2ce3e8(0x259)][_0x2ce3e8(0x2b2)](_0x106fc7[_0x2ce3e8(0x1d3)][_0x2ce3e8(0x2d9)],()=>_0x106fc7[_0x2ce3e8(0x121)](_0x515436({'status$':this[_0x2ce3e8(0x2af)][_0x2ce3e8(0x1bf)]()}),this[_0x2ce3e8(0x380)])));}},_0x4c3250[_0x19a859(0x134)]=_0xaaf97b([_0x1270d0(0x0,_0x5bf9c6['IUniverInstanceService']),_0x1270d0(0x1,_0x5bf9c6['Inject'](_0x5bf9c6['Injector'])),_0x1270d0(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0['CollaborationController'])),_0x1270d0(0x3,_0x106fc7[_0x19a859(0x330)])],_0x4c3250[_0x19a859(0x134)]);function _0x515436(_0x1e9eaf){const {status$:_0x4a0e34}=_0x1e9eaf;return function(){const _0x33c7b6=_0x5841;return _0x5540cf[_0x33c7b6(0x1da)](_0x4957f6,{'status$':_0x4a0e34});};}var _0x1ae155=Object[_0x19a859(0x385)],_0x1b5fc0=(_0x4eb8b1,_0x23357a,_0x112222,_0x61df19)=>{const _0x5ba927=_0x19a859;for(var _0x20dcce=_0x61df19>0x1?void 0x0:_0x61df19?_0x1ae155(_0x23357a,_0x112222):_0x23357a,_0x266b9b=_0x4eb8b1[_0x5ba927(0x344)]-0x1,_0x36bce2;_0x266b9b>=0x0;_0x266b9b--)(_0x36bce2=_0x4eb8b1[_0x266b9b])&&(_0x20dcce=_0x36bce2(_0x20dcce)||_0x20dcce);return _0x20dcce;},_0x15f855=(_0x107f41,_0x58732e)=>(_0x5300ad,_0x3e003f)=>_0x58732e(_0x5300ad,_0x3e003f,_0x107f41);let _0x461047=class extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(_0x505011,_0x165ccb,_0x4f7890,_0x5edf98,_0x33f901,_0x30aa13){const _0x42d47b=_0x19a859;super(),this[_0x42d47b(0x269)]=_0x505011,this['_localCacheService']=_0x165ccb,this[_0x42d47b(0x2c4)]=_0x4f7890,this[_0x42d47b(0x2f0)]=_0x5edf98,this['_notificationService']=_0x33f901,this[_0x42d47b(0x1ed)]=_0x30aa13,this[_0x42d47b(0x376)](),this[_0x42d47b(0x2a9)]();}[_0x19a859(0x376)](){const _0x427b75=_0x19a859;this[_0x427b75(0x305)](this[_0x427b75(0x269)]['registerBeforeClose'](()=>{const _0x518f4a=_0x427b75;if(this[_0x518f4a(0x32b)][_0x518f4a(0x353)][_0x518f4a(0x390)])return this[_0x518f4a(0x1ed)]['t'](_0x518f4a(0x26e));}));}['_initEvent'](){const _0x2f0b5f=_0x19a859;this[_0x2f0b5f(0x305)](this[_0x2f0b5f(0x2c4)][_0x2f0b5f(0x216)]['subscribe'](_0xc336c6=>{const _0x3613e5=_0x2f0b5f;_0xc336c6['id']===_0x2c72d0['CollaborationUIEventId'][_0x3613e5(0x120)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1['MessageType'][_0x3613e5(0x33d)],'content':this[_0x3613e5(0x1ed)]['t']('collaboration.single-unit.warning')}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x238)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)][_0x3613e5(0x33d)],'content':this['_localeService']['t'](_0x3613e5(0x183))}),_0xc336c6['id']===_0x2c72d0['CollaborationUIEventId'][_0x3613e5(0x22b)]&&this[_0x3613e5(0x2bb)][_0x3613e5(0x1e2)]({'title':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x13e)),'content':this['_localeService']['t'](_0x3613e5(0x2a4)),'type':_0x3613e5(0x29c),'duration':0x0}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x24b)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)][_0x3613e5(0x172)],'content':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x183))+'('+_0xc336c6[_0x3613e5(0x171)]+')'}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x2ec)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)]['Warning'],'content':this['_localeService']['t'](_0xc336c6[_0x3613e5(0x171)]||'')}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x2c7)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)]['Warning'],'content':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x111))}),_0xc336c6['id']===_0x2c72d0['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1['MessageType']['Error'],'content':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x19f))}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x32e)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)][_0x3613e5(0x172)],'content':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x12e))});}));}};_0x461047=_0x1b5fc0([_0x15f855(0x0,_0x106fc7[_0x19a859(0x2fe)]),_0x15f855(0x1,_0x2c72d0[_0x19a859(0x226)]),_0x15f855(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0[_0x19a859(0x194)])),_0x15f855(0x3,_0x106fc7[_0x19a859(0x395)]),_0x15f855(0x4,_0x106fc7[_0x19a859(0x33c)]),_0x15f855(0x5,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6['LocaleService']))],_0x461047);const _0x598514=_0x19a859(0x366),_0x15e6bd={},_0x1b2902=_0x5bf9c6[_0x19a859(0x113)](_0x19a859(0x117));var _0x5cae06=Object[_0x19a859(0x385)],_0x5bd6bb=(_0x3bf09b,_0x254a3a,_0x4cb8e8,_0x23e538)=>{for(var _0x4fb7fd=_0x23e538>0x1?void 0x0:_0x23e538?_0x5cae06(_0x254a3a,_0x4cb8e8):_0x254a3a,_0x26638d=_0x3bf09b['length']-0x1,_0x2ac5c3;_0x26638d>=0x0;_0x26638d--)(_0x2ac5c3=_0x3bf09b[_0x26638d])&&(_0x4fb7fd=_0x2ac5c3(_0x4fb7fd)||_0x4fb7fd);return _0x4fb7fd;},_0xc3ca45=(_0xde19a1,_0x22044f)=>(_0xf4880f,_0x23ef12)=>_0x22044f(_0xf4880f,_0x23ef12,_0xde19a1);_0x4c3250[_0x19a859(0x1f1)]=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x1f21a4,_0x42939d,_0x2fc0c8,_0x3df0f6,_0x598381){const _0x365084=_0x19a859;super(),this[_0x365084(0x1fd)]=_0x1f21a4,this[_0x365084(0x264)]=_0x42939d,this[_0x365084(0x1d4)]=_0x2fc0c8,this[_0x365084(0x322)]=_0x3df0f6,_0x598381?_0x598381==null||_0x598381[_0x365084(0x1c4)]()[_0x365084(0x30c)](()=>this['_init']()):(this[_0x365084(0x264)][_0x365084(0x29e)](_0x365084(0x22e),_0x365084(0x204)),this['_init']());}async['_init'](){const _0x59b3e4=_0x19a859,_0x3daf28=this[_0x59b3e4(0x1fd)][_0x59b3e4(0x20a)]('unit'),_0x3201c7=this[_0x59b3e4(0x1fd)][_0x59b3e4(0x20a)]('type'),_0x19d7b6=this[_0x59b3e4(0x1fd)][_0x59b3e4(0x20a)](_0x59b3e4(0x1a2));if(!_0x3daf28||!_0x3201c7){this[_0x59b3e4(0x264)][_0x59b3e4(0x29e)](_0x59b3e4(0x22e),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x274304=await this[_0x59b3e4(0x322)][_0x59b3e4(0x285)](_0x3daf28,Number(_0x3201c7),_0x19d7b6);_0x274304&&_0x274304 instanceof _0x5bf9c6[_0x59b3e4(0x1f9)]&&this[_0x59b3e4(0x1d7)](_0x274304);}async[_0x19a859(0x1d7)](_0x14bfc2){const _0x5c0fa3=_0x19a859;await this[_0x5c0fa3(0x308)](_0x14bfc2),_0x14bfc2[_0x5c0fa3(0x24c)][_0x5c0fa3(0x38f)](_0x496cb2[_0x5c0fa3(0x130)](this['dispose$']))[_0x5c0fa3(0x28a)](_0x2623bb=>{const _0x40f409=_0x5c0fa3;_0x2623bb&&this[_0x40f409(0x14c)](_0x2623bb);}),this[_0x5c0fa3(0x1fd)][_0x5c0fa3(0x165)][_0x5c0fa3(0x38f)](_0x496cb2[_0x5c0fa3(0x130)](this['dispose$']))[_0x5c0fa3(0x28a)](()=>this[_0x5c0fa3(0x308)](_0x14bfc2));}[_0x19a859(0x14c)](_0x38f450,_0x5328fd=!0x1){const _0x478354=_0x19a859,_0x439e82=this['_urlService'][_0x478354(0x20a)](_0x478354(0x1a2));_0x38f450[_0x478354(0x327)]()!==_0x439e82&&this[_0x478354(0x1fd)][_0x478354(0x365)](_0x478354(0x1a2),_0x38f450[_0x478354(0x327)](),_0x5328fd);}async['_updateSubUnitFromURLParams'](_0x113747){const _0x499e70=_0x19a859;var _0x24b0e1;const _0x283bf6=this[_0x499e70(0x1fd)]['getParam'](_0x499e70(0x1a2));if(!_0x283bf6||!_0x113747[_0x499e70(0x336)](_0x283bf6)){const _0x7ebc36=_0x113747[_0x499e70(0x241)]()[0x0],_0x4a30f1=_0x113747[_0x499e70(0x336)](_0x7ebc36);if(!_0x4a30f1)return;this[_0x499e70(0x14c)](_0x4a30f1,!0x0),await this[_0x499e70(0x1d4)][_0x499e70(0x17f)](_0x4fd62b[_0x499e70(0x11e)]['id'],{'unitId':_0x113747[_0x499e70(0x1b2)](),'subUnitId':_0x7ebc36});return;}((_0x24b0e1=_0x113747[_0x499e70(0x345)]())==null?void 0x0:_0x24b0e1['getSheetId']())!==_0x283bf6&&await this['_commandService'][_0x499e70(0x17f)](_0x4fd62b[_0x499e70(0x11e)]['id'],{'unitId':_0x113747[_0x499e70(0x1b2)](),'subUnitId':_0x283bf6});}},_0x4c3250[_0x19a859(0x1f1)]=_0x5bd6bb([_0xc3ca45(0x0,_0x1b2902),_0xc3ca45(0x1,_0x5bf9c6[_0x19a859(0x1bb)]),_0xc3ca45(0x2,_0x5bf9c6['ICommandService']),_0xc3ca45(0x3,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0[_0x19a859(0x158)])),_0xc3ca45(0x4,_0x5bf9c6[_0x19a859(0x119)](_0x1d3fe6[_0x19a859(0x279)]))],_0x4c3250[_0x19a859(0x1f1)]);var _0x4f03ce=Object[_0x19a859(0x385)],_0x3c5bad=(_0x3e8acb,_0x1fd94f,_0x1f097c,_0x183721)=>{const _0x1581be=_0x19a859;for(var _0x4825c1=_0x183721>0x1?void 0x0:_0x183721?_0x4f03ce(_0x1fd94f,_0x1f097c):_0x1fd94f,_0x262c8f=_0x3e8acb[_0x1581be(0x344)]-0x1,_0x579ee7;_0x262c8f>=0x0;_0x262c8f--)(_0x579ee7=_0x3e8acb[_0x262c8f])&&(_0x4825c1=_0x579ee7(_0x4825c1)||_0x4825c1);return _0x4825c1;},_0x398879=(_0x337b55,_0x1cfe36)=>(_0x35a824,_0x23992a)=>_0x1cfe36(_0x35a824,_0x23992a,_0x337b55);let _0x28b55a=class{constructor(_0x52da4e,_0x2b766b,_0x344f66){const _0x416dbe=_0x19a859;this[_0x416dbe(0x380)]=_0x52da4e,this[_0x416dbe(0x197)]=_0x2b766b,this[_0x416dbe(0x388)]=_0x344f66;}[_0x19a859(0x359)](_0x241939){const _0x48b1a7=_0x19a859;this[_0x48b1a7(0x233)](_0x241939),this[_0x48b1a7(0x298)](_0x241939);}['transformRemoteChangeset'](_0x9f5c27){const _0x454d44=_0x19a859,{unitID:_0x5820fc}=_0x9f5c27,_0x5b26cd=this['_renderManagerService'][_0x454d44(0x29a)](_0x5820fc)[_0x454d44(0x1f0)](_0x1a8f2e[_0x454d44(0x23b)]),{redoCache:_0x5bf581}=_0x5b26cd[_0x454d44(0x30e)]();if(_0x5bf581['length']===0x0)return _0x9f5c27;let _0x44c828=_0x5bf9c6[_0x454d44(0x389)][_0x454d44(0x1a3)](_0x9f5c27[_0x454d44(0x39e)][0x0]);for(let _0xd96f27=0x0;_0xd96f27<_0x5bf581[_0x454d44(0x344)];_0xd96f27++){const _0x3520ce={'id':_0x454d44(0x36a),'params':{..._0x5bf581[_0xd96f27]}},_0x4aa113=this[_0x454d44(0x197)][_0x454d44(0x2e4)](_0x44c828,_0x3520ce,!0x1);if(_0x4e6003[_0x454d44(0x38c)](_0x4aa113))throw _0x4aa113[_0x454d44(0x29c)];_0x44c828=_0x4aa113[_0x454d44(0x2f6)];}return{..._0x5bf9c6[_0x454d44(0x389)][_0x454d44(0x1a3)](_0x9f5c27),'mutations':[_0x44c828]};}[_0x19a859(0x233)](_0x2a4e90){const _0x4ca2c3=_0x19a859,{unitID:_0x3e42bc}=_0x2a4e90,_0x77eb4=this[_0x4ca2c3(0x388)][_0x4ca2c3(0x29a)](_0x3e42bc)['with'](_0x1a8f2e['DocIMEInputManagerService']),{undoCache:_0x5196e5,redoCache:_0x6363d}=_0x77eb4[_0x4ca2c3(0x30e)]();if(_0x5196e5[_0x4ca2c3(0x344)]===0x0||_0x6363d['length']===0x0)return;const _0x837529=[],_0x24f453=[];let _0x444a61=_0x5bf9c6[_0x4ca2c3(0x389)][_0x4ca2c3(0x1a3)](_0x2a4e90[_0x4ca2c3(0x39e)][0x0]),_0x1b57ae=_0x5bf9c6[_0x4ca2c3(0x389)][_0x4ca2c3(0x1a3)](_0x2a4e90[_0x4ca2c3(0x39e)][0x0]);for(let _0x36ed7f=_0x5196e5[_0x4ca2c3(0x344)]-0x1;_0x36ed7f>=0x0;_0x36ed7f--){const _0x38b298={'id':_0x4ca2c3(0x36a),'params':{..._0x5196e5[_0x36ed7f]}},_0x4407e5={'id':_0x4ca2c3(0x36a),'params':{..._0x6363d[_0x36ed7f]}},_0x4a03f8=this[_0x4ca2c3(0x197)][_0x4ca2c3(0x2e4)](_0x444a61,_0x38b298,!0x1),_0x3e2250=this[_0x4ca2c3(0x197)][_0x4ca2c3(0x2e4)](_0x1b57ae,_0x4407e5,!0x1);if(_0x4e6003['isTransformMutationFailure'](_0x4a03f8))throw _0x4a03f8[_0x4ca2c3(0x29c)];if(_0x4e6003['isTransformMutationFailure'](_0x3e2250))throw _0x3e2250[_0x4ca2c3(0x29c)];_0x837529[_0x4ca2c3(0x37e)](_0x4a03f8[_0x4ca2c3(0x178)][_0x4ca2c3(0x316)]),_0x24f453[_0x4ca2c3(0x37e)](_0x3e2250[_0x4ca2c3(0x178)][_0x4ca2c3(0x316)]),_0x444a61=_0x4a03f8[_0x4ca2c3(0x2f6)],_0x1b57ae=_0x3e2250[_0x4ca2c3(0x2f6)];}_0x77eb4[_0x4ca2c3(0x1de)]({'undoCache':_0x837529,'redoCache':_0x24f453});}[_0x19a859(0x298)](_0x343fd2){const _0x336654=_0x19a859,{unitID:_0x155b92}=_0x343fd2,_0x2ecbf5=this[_0x336654(0x388)]['getRenderById'](_0x155b92)['with'](_0x1a8f2e[_0x336654(0x23b)]),_0x15fada=_0x2ecbf5['getActiveRange']();if(_0x15fada==null)return;const _0x573327=[{'id':_0x336654(0x36a),'params':{'unitId':_0x343fd2[_0x336654(0x1db)],'actions':null,'textRanges':[_0x15fada]}}],_0x419960=this[_0x336654(0x197)][_0x336654(0x2f9)](_0x343fd2,_0x573327);if(!_0x4e6003['isTransformMutationsWithChangesetSuccess'](_0x419960))throw _0x419960['error'];const _0x41fa74=_0x419960[_0x336654(0x178)][0x0][_0x336654(0x316)]['textRanges'];Array[_0x336654(0x1dc)](_0x41fa74)&&_0x41fa74[_0x336654(0x344)]&&_0x2ecbf5[_0x336654(0x355)](_0x41fa74[0x0]);}};_0x28b55a=_0x3c5bad([_0x398879(0x0,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x398879(0x1,_0x4e6003['ITransformService']),_0x398879(0x2,_0x5d1039[_0x19a859(0x2b9)])],_0x28b55a);var _0x313a08=Object[_0x19a859(0x385)],_0x168cdf=(_0x506ac1,_0x224072,_0xaa2eec,_0x1ab155)=>{const _0x316746=_0x19a859;for(var _0x51e3f6=_0x1ab155>0x1?void 0x0:_0x1ab155?_0x313a08(_0x224072,_0xaa2eec):_0x224072,_0x183092=_0x506ac1[_0x316746(0x344)]-0x1,_0x3a8a4b;_0x183092>=0x0;_0x183092--)(_0x3a8a4b=_0x506ac1[_0x183092])&&(_0x51e3f6=_0x3a8a4b(_0x51e3f6)||_0x51e3f6);return _0x51e3f6;},_0x2ea903=(_0x125679,_0x5a4609)=>(_0x3a84ba,_0x2e2d23)=>_0x5a4609(_0x3a84ba,_0x2e2d23,_0x125679);let _0x4794ff=class{constructor(_0x145d08,_0x32651a,_0x216403){const _0x4d3954=_0x19a859;this[_0x4d3954(0x380)]=_0x145d08,this[_0x4d3954(0x197)]=_0x32651a,this[_0x4d3954(0x2b7)]=_0x216403;}[_0x19a859(0x1b7)](_0x3b75f4){const _0x11e2c9=_0x19a859;this[_0x11e2c9(0x373)](_0x3b75f4);}[_0x19a859(0x213)](_0x5baea4){const _0xb81e16=_0x19a859,{unitID:_0x53125f}=_0x5baea4,{collaboration:_0xf5b215}=this[_0xb81e16(0x2b7)][_0xb81e16(0x1cb)](_0x53125f);if(_0xf5b215[_0xb81e16(0x344)]===0x0)return _0x5baea4;let _0x16a770=_0x5bf9c6[_0xb81e16(0x389)]['deepClone'](_0x5baea4[_0xb81e16(0x39e)][0x0]);for(let _0x2936d2=0x0;_0x2936d2<_0xf5b215[_0xb81e16(0x344)];_0x2936d2++){const _0x49ac58={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf5b215[_0x2936d2][_0xb81e16(0x2ab)],..._0xf5b215[_0x2936d2][_0xb81e16(0x1eb)]}},_0x43b26d=this[_0xb81e16(0x197)]['transformMutation'](_0x16a770,_0x49ac58,!0x1);if(_0x4e6003['isTransformMutationFailure'](_0x43b26d))throw _0x43b26d[_0xb81e16(0x29c)];_0x16a770=_0x43b26d[_0xb81e16(0x2f6)];}return{..._0x5bf9c6[_0xb81e16(0x389)]['deepClone'](_0x5baea4),'mutations':[_0x16a770]};}['_transformHistoryAndStateStack'](_0xc54e30){const _0x519d6b=_0x19a859,{unitID:_0x4faf15}=_0xc54e30,{history:_0x256a3c,collaboration:_0x32afa1}=this[_0x519d6b(0x2b7)][_0x519d6b(0x1cb)](_0x4faf15);if(_0x256a3c['length']===0x0&&_0x32afa1[_0x519d6b(0x344)]===0x0)return;const _0x488595=[],_0x5daf0a=[];let _0x3bce19=_0x5bf9c6['Tools'][_0x519d6b(0x1a3)](_0xc54e30[_0x519d6b(0x39e)][0x0]),_0x421334=_0x5bf9c6['Tools'][_0x519d6b(0x1a3)](_0xc54e30[_0x519d6b(0x39e)][0x0]);for(let _0x1d0114=_0x256a3c[_0x519d6b(0x344)]-0x1;_0x1d0114>=0x0;_0x1d0114--){const _0x57202d={'id':_0x519d6b(0x36a),'params':{'unitId':_0x256a3c[_0x1d0114][_0x519d6b(0x2ab)],..._0x256a3c[_0x1d0114][_0x519d6b(0x232)]}},_0x302969={'id':_0x519d6b(0x36a),'params':{'unitId':_0x256a3c[_0x1d0114][_0x519d6b(0x2ab)],..._0x256a3c[_0x1d0114]['redoState']}},_0x4c0002=this[_0x519d6b(0x197)]['transformMutation'](_0x3bce19,_0x57202d,!0x1),_0x6d5951=this[_0x519d6b(0x197)][_0x519d6b(0x2e4)](_0x421334,_0x302969,!0x1);if(_0x4e6003['isTransformMutationFailure'](_0x4c0002))throw _0x4c0002['error'];if(_0x4e6003[_0x519d6b(0x38c)](_0x6d5951))throw _0x6d5951['error'];_0x488595['unshift']({..._0x256a3c[_0x1d0114],'undoState':_0x4c0002['m2Prime']['params'],'redoState':_0x6d5951[_0x519d6b(0x178)]['params']}),_0x3bce19=_0x4c0002[_0x519d6b(0x2f6)],_0x421334=_0x6d5951[_0x519d6b(0x2f6)];}_0x3bce19=_0x5bf9c6[_0x519d6b(0x389)][_0x519d6b(0x1a3)](_0xc54e30[_0x519d6b(0x39e)][0x0]),_0x421334=_0x5bf9c6[_0x519d6b(0x389)][_0x519d6b(0x1a3)](_0xc54e30[_0x519d6b(0x39e)][0x0]);for(let _0x255210=_0x32afa1[_0x519d6b(0x344)]-0x1;_0x255210>=0x0;_0x255210--){const _0x3f39bf={'id':_0x519d6b(0x36a),'params':{'unitId':_0x32afa1[_0x255210][_0x519d6b(0x2ab)],..._0x32afa1[_0x255210][_0x519d6b(0x232)]}},_0x142d2a={'id':_0x519d6b(0x36a),'params':{'unitId':_0x32afa1[_0x255210][_0x519d6b(0x2ab)],..._0x32afa1[_0x255210]['redoState']}},_0x328bca=this['_transformService'][_0x519d6b(0x2e4)](_0x3bce19,_0x3f39bf,!0x1),_0x1440a9=this[_0x519d6b(0x197)][_0x519d6b(0x2e4)](_0x421334,_0x142d2a,!0x1);if(_0x4e6003[_0x519d6b(0x38c)](_0x328bca))throw _0x328bca[_0x519d6b(0x29c)];if(_0x4e6003['isTransformMutationFailure'](_0x1440a9))throw _0x1440a9[_0x519d6b(0x29c)];_0x5daf0a['unshift']({..._0x32afa1[_0x255210],'undoState':_0x328bca[_0x519d6b(0x178)][_0x519d6b(0x316)],'redoState':_0x1440a9[_0x519d6b(0x178)][_0x519d6b(0x316)]}),_0x3bce19=_0x328bca[_0x519d6b(0x2f6)],_0x421334=_0x1440a9[_0x519d6b(0x2f6)];}this['_docStateChangeManagerService'][_0x519d6b(0x1ec)](_0x4faf15,{'history':_0x488595,'collaboration':_0x5daf0a});}};_0x4794ff=_0x168cdf([_0x2ea903(0x0,_0x5bf9c6['Inject'](_0x5bf9c6[_0x19a859(0x35e)])),_0x2ea903(0x1,_0x4e6003['ITransformService']),_0x2ea903(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x1a8f2e[_0x19a859(0x367)]))],_0x4794ff);var _0x1b9a9f=Object[_0x19a859(0x385)],_0x148658=(_0x2ab418,_0x3b00e8,_0x49769b,_0x44e6fc)=>{const _0x351583=_0x19a859;for(var _0x32e16a=_0x44e6fc>0x1?void 0x0:_0x44e6fc?_0x1b9a9f(_0x3b00e8,_0x49769b):_0x3b00e8,_0x47bc58=_0x2ab418[_0x351583(0x344)]-0x1,_0x218e1b;_0x47bc58>=0x0;_0x47bc58--)(_0x218e1b=_0x2ab418[_0x47bc58])&&(_0x32e16a=_0x218e1b(_0x32e16a)||_0x32e16a);return _0x32e16a;},_0x15bfdc=(_0x6e0264,_0x47512d)=>(_0x29dd5c,_0x1e0dbe)=>_0x47512d(_0x29dd5c,_0x1e0dbe,_0x6e0264);let _0x4c0a13=class{constructor(_0x336f1b,_0xc1a4ef){const _0x474bc7=_0x19a859;this[_0x474bc7(0x380)]=_0x336f1b,this[_0x474bc7(0x197)]=_0xc1a4ef;}[_0x19a859(0x1b1)](_0x2a7f27){const _0xb7c0b8=_0x19a859;var _0x35bef4;const _0x4b22d0=this['_injector'][_0xb7c0b8(0x223)](_0x50e692[_0xb7c0b8(0x220)]),_0x41ba40=(_0x35bef4=_0x4b22d0[_0xb7c0b8(0x273)]())!=null?_0x35bef4:[];if(_0x41ba40[_0xb7c0b8(0x344)]===0x0)return;const _0x2979aa=_0x2a7f27[_0xb7c0b8(0x1db)],_0x4d862c=[{'id':_0xb7c0b8(0x36a),'params':{'unitId':_0x2979aa,'actions':null,'textRanges':_0x41ba40}}],_0x76d930=this['_transformService']['transformMutationsWithChangeset'](_0x2a7f27,_0x4d862c);if(!_0x4e6003[_0xb7c0b8(0x396)](_0x76d930))throw _0x76d930['error'];const _0x5bf435=_0x76d930[_0xb7c0b8(0x178)][0x0][_0xb7c0b8(0x316)][_0xb7c0b8(0x195)];Array['isArray'](_0x5bf435)&&_0x5bf435[_0xb7c0b8(0x344)]&&_0x4b22d0[_0xb7c0b8(0x2d2)](_0x5bf435,{'unitId':_0x2979aa,'subUnitId':_0x2979aa},!0x1);}};_0x4c0a13=_0x148658([_0x15bfdc(0x0,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x15bfdc(0x1,_0x4e6003[_0x19a859(0x294)])],_0x4c0a13);var _0x323b9b=Object[_0x19a859(0x385)],_0xe1a31e=(_0x7c7e97,_0x574088,_0x14d5ec,_0x132502)=>{for(var _0x83211a=_0x132502>0x1?void 0x0:_0x132502?_0x323b9b(_0x574088,_0x14d5ec):_0x574088,_0x5101b5=_0x7c7e97['length']-0x1,_0x4269bf;_0x5101b5>=0x0;_0x5101b5--)(_0x4269bf=_0x7c7e97[_0x5101b5])&&(_0x83211a=_0x4269bf(_0x83211a)||_0x83211a);return _0x83211a;},_0x5d4b28=(_0x57e09a,_0x2d3d3e)=>(_0x5011ed,_0x23fd39)=>_0x2d3d3e(_0x5011ed,_0x23fd39,_0x57e09a);let _0x48fe55=class extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(_0x5f0bb2,_0x47d2bc,_0x2f441c,_0x5bb05a,_0x197db5,_0x43a69b,_0x26aa4f,_0x2e055c){const _0x541fd5=_0x19a859;super(),_0x521fa5(this,_0x541fd5(0x2af),new _0x496cb2[(_0x541fd5(0x3a5))](_0x2c72d0['CollaborationStatus']['NOT_COLLAB'])),(this[_0x541fd5(0x2b7)]=_0x5f0bb2,this[_0x541fd5(0x14b)]=_0x47d2bc,this[_0x541fd5(0x1e4)]=_0x2f441c,this[_0x541fd5(0x1d8)]=_0x5bb05a,this[_0x541fd5(0x3a6)]=_0x197db5,this[_0x541fd5(0x383)]=_0x43a69b,this['_messageService']=_0x26aa4f,this[_0x541fd5(0x1ed)]=_0x2e055c,this['_initEntityListener']());}['_initEntityListener'](){const _0x1ab517=_0x19a859;this[_0x1ab517(0x305)](this[_0x1ab517(0x14b)][_0x1ab517(0x2f8)][_0x1ab517(0x28a)](_0x233552=>{const _0x3ee915=_0x1ab517,_0x20f033=this[_0x3ee915(0x2b7)][_0x3ee915(0x277)][_0x3ee915(0x28a)](_0x1220ed=>{const _0x1f2f44=_0x3ee915;if(_0x1220ed==null)return;const {unitId:_0x10512d,redoState:_0x43d159,commandId:_0x1c20fb}=_0x1220ed;if(_0x10512d!==_0x233552[_0x1f2f44(0x1db)])return;const _0x20b7b8={'id':_0x1c20fb,'type':_0x5bf9c6['CommandType'][_0x1f2f44(0x20e)],'params':{'unitId':_0x10512d,'actions':_0x43d159[_0x1f2f44(0x15e)],'textRanges':null}};_0x233552['onLocalMutation'](_0x20b7b8);});if(_0x233552['disposeWithMe'](_0x20f033),_0x233552 instanceof _0x2c72d0[_0x3ee915(0x196)]){const _0x15bddc={'onTransformIME':_0x62b844=>this['_docTransformIMECacheService'][_0x3ee915(0x359)](_0x62b844),'onTransformState':_0x3adde2=>this['_docTransformStateCacheService'][_0x3ee915(0x1b7)](_0x3adde2),'onTransformSelections':_0xf268c1=>this[_0x3ee915(0x3a6)][_0x3ee915(0x1b1)](_0xf268c1),'onSyncEditingCollabCursor':_0x3ee221=>this[_0x3ee915(0x383)][_0x3ee915(0x38d)](_0x3ee221),'onTransformRemoteChangesetByIMECache':_0x3628c1=>this[_0x3ee915(0x1e4)]['transformRemoteChangeset'](_0x3628c1),'onTransformRemoteChangesetByStateCache':_0x16d507=>this[_0x3ee915(0x1d8)][_0x3ee915(0x213)](_0x16d507)};_0x233552[_0x3ee915(0x25a)](_0x15bddc);}}));}};_0x48fe55=_0xe1a31e([_0x5d4b28(0x0,_0x5bf9c6[_0x19a859(0x116)](_0x1a8f2e[_0x19a859(0x367)])),_0x5d4b28(0x1,_0x5bf9c6['Inject'](_0x2c72d0[_0x19a859(0x11c)])),_0x5d4b28(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x28b55a)),_0x5d4b28(0x3,_0x5bf9c6['Inject'](_0x4794ff)),_0x5d4b28(0x4,_0x5bf9c6[_0x19a859(0x116)](_0x4c0a13)),_0x5d4b28(0x5,_0x5bf9c6[_0x19a859(0x116)](_0x299122)),_0x5d4b28(0x6,_0x106fc7[_0x19a859(0x395)]),_0x5d4b28(0x7,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x2d7)]))],_0x48fe55);var _0x4aed49=Object['getOwnPropertyDescriptor'],_0x1641bd=(_0x56a8a5,_0x182133,_0x4397e9,_0x1519ab)=>{const _0x1f0920=_0x19a859;for(var _0x171f54=_0x1519ab>0x1?void 0x0:_0x1519ab?_0x4aed49(_0x182133,_0x4397e9):_0x182133,_0x4085b0=_0x56a8a5[_0x1f0920(0x344)]-0x1,_0xa643be;_0x4085b0>=0x0;_0x4085b0--)(_0xa643be=_0x56a8a5[_0x4085b0])&&(_0x171f54=_0xa643be(_0x171f54)||_0x171f54);return _0x171f54;},_0xde872e=(_0x2bbcf4,_0x1e7253)=>(_0x36f6d7,_0x5a0ef0)=>_0x1e7253(_0x36f6d7,_0x5a0ef0,_0x2bbcf4);let _0x25e0c4=class extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(_0xb6e86,_0x4a00c6,_0x4fdb72){const _0x5d12ab=_0x19a859;super(),_0x521fa5(this,_0x5d12ab(0x123),new Map()),_0x521fa5(this,'_saveTaskMap',new Map()),_0x521fa5(this,_0x5d12ab(0x179),!0x1),(this[_0x5d12ab(0x150)]=_0xb6e86,this['_localStorageService']=_0x4a00c6,this[_0x5d12ab(0x303)]=_0x4fdb72);}[_0x19a859(0x1b9)](){const _0x43d3c1=_0x19a859;this[_0x43d3c1(0x179)]=!0x0;}[_0x19a859(0x28f)](){const _0x5e41a9=_0x19a859;this[_0x5e41a9(0x179)]=!0x1;}get['saveTaskMap'](){const _0x247166=_0x19a859;return this[_0x247166(0x2ca)];}['dispose'](){const _0x35b22b=_0x19a859;this[_0x35b22b(0x2d6)]()[_0x35b22b(0x30c)](()=>super['dispose']());}async[_0x19a859(0x378)](_0x11b9bb){const _0x495d1b=_0x19a859;return this[_0x495d1b(0x179)]?null:this[_0x495d1b(0x27e)][_0x495d1b(0x1a0)](_0x2c72d0[_0x495d1b(0x391)](_0x11b9bb));}async[_0x19a859(0x31e)](_0x1ce63f,_0x123cb7){const _0xe1f478=_0x19a859;return!!this[_0xe1f478(0x27e)][_0xe1f478(0x1ae)](_0x1ce63f,_0x123cb7);}[_0x19a859(0x181)](_0x224734,_0x4463c8,_0x32509f,_0x4383fd){const _0x5bbbaf=_0x19a859,_0x1ef40b=this[_0x5bbbaf(0x303)]['getCurrentRevOfUnit'](_0x224734);this[_0x5bbbaf(0x123)][_0x5bbbaf(0x17d)](_0x224734,{'unitID':_0x224734,'type':_0x4463c8,'awaitingChangeset':_0x32509f,'mutations':_0x4383fd,'rev':_0x1ef40b}),this[_0x5bbbaf(0x2ca)]['has'](_0x224734)||this[_0x5bbbaf(0x3a0)](_0x224734);}[_0x19a859(0x3a0)](_0x1e59c2){const _0x18a4d5=_0x19a859,_0x302373=this[_0x18a4d5(0x212)]();_0x302373===0x0?this['_saveCache'](_0x1e59c2):this['_saveTaskMap'][_0x18a4d5(0x17d)](_0x1e59c2,setTimeout(()=>this[_0x18a4d5(0x22c)](_0x1e59c2),_0x302373));}['_getSaveTimeout'](){const _0x1a951a=_0x19a859;var _0x13642a;return(_0x13642a=this[_0x1a951a(0x150)][_0x1a951a(0x329)](_0x2c72d0['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x13642a:_0x2c72d0[_0x1a951a(0x2de)];}['_saveCache'](_0x1d7586){const _0x548649=_0x19a859,_0x1c59e9=this[_0x548649(0x2ca)][_0x548649(0x223)](_0x1d7586);return _0x1c59e9!==void 0x0&&window[_0x548649(0x2fb)](_0x1c59e9),this[_0x548649(0x27e)][_0x548649(0x1ae)](_0x2c72d0['getLocalCacheKey'](_0x1d7586),this[_0x548649(0x123)][_0x548649(0x223)](_0x1d7586))['then'](()=>this[_0x548649(0x2ca)]['delete'](_0x1d7586));}async[_0x19a859(0x2d6)](){const _0x47bca4=_0x19a859,_0x43c951=[];this[_0x47bca4(0x2ca)][_0x47bca4(0x139)]((_0x54c8a8,_0x43e7c5)=>{const _0x4ba8d0=_0x47bca4;window['clearTimeout'](_0x54c8a8),_0x43c951[_0x4ba8d0(0x253)](this['_saveCache'](_0x43e7c5)[_0x4ba8d0(0x30c)](()=>{const _0x173fda=_0x4ba8d0;this[_0x173fda(0x2ca)]['delete'](_0x43e7c5);}));}),await Promise[_0x47bca4(0x1fc)](_0x43c951);}};_0x25e0c4=_0x1641bd([_0xde872e(0x0,_0x5bf9c6[_0x19a859(0x236)]),_0xde872e(0x1,_0x5bf9c6[_0x19a859(0x13a)]),_0xde872e(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x4e6003[_0x19a859(0x30a)]))],_0x25e0c4);class _0x2d34a4 extends _0x5bf9c6[_0x19a859(0x339)]{constructor(){const _0x17c675=_0x19a859;super(),_0x521fa5(this,_0x17c675(0x165)),this[_0x17c675(0x165)]=_0x496cb2[_0x17c675(0x1e3)](window,'popstate')['pipe'](_0x496cb2['takeUntil'](this['dispose$']),_0x496cb2[_0x17c675(0x35f)](0x1),_0x496cb2['mapTo'](void 0x0));}['setParam'](_0x220a78,_0x5d7098,_0x4cdb2a=!0x1){const _0x2dc95f=_0x19a859,_0x4858b3=new URL(window[_0x2dc95f(0x128)][_0x2dc95f(0x242)]);_0x4858b3[_0x2dc95f(0x31d)][_0x2dc95f(0x17d)](_0x220a78,_0x5d7098),_0x4cdb2a?window['history'][_0x2dc95f(0x17e)]('','',_0x4858b3[_0x2dc95f(0x246)]()):window['history'][_0x2dc95f(0x255)]('','',_0x4858b3[_0x2dc95f(0x246)]());}[_0x19a859(0x151)](_0x3ede4a,_0x4b7416=!0x1){const _0x24506d=_0x19a859,_0x10d6c8=new URL(window[_0x24506d(0x128)][_0x24506d(0x242)]);_0x10d6c8[_0x24506d(0x31d)][_0x24506d(0x227)](_0x3ede4a),_0x4b7416?window[_0x24506d(0x292)][_0x24506d(0x17e)]('','',_0x10d6c8[_0x24506d(0x246)]()):window[_0x24506d(0x292)][_0x24506d(0x255)]('','',_0x10d6c8[_0x24506d(0x246)]());}[_0x19a859(0x20a)](_0x5e1abf){const _0x589ef9=_0x19a859;var _0x416e8d;return(_0x416e8d=new URL(window[_0x589ef9(0x128)][_0x589ef9(0x242)])['searchParams'][_0x589ef9(0x223)](_0x5e1abf))!=null?_0x416e8d:void 0x0;}}var _0x38d471=Object[_0x19a859(0x301)],_0x55e279=Object[_0x19a859(0x385)],_0x20489b=(_0x39c423,_0x3e05ea,_0x23b123)=>_0x3e05ea in _0x39c423?_0x38d471(_0x39c423,_0x3e05ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23b123}):_0x39c423[_0x3e05ea]=_0x23b123,_0x3b8278=(_0x5be6c6,_0x2e3a03,_0x3aa7c6,_0x3d8fd7)=>{const _0x8bdeba=_0x19a859;for(var _0x2599da=_0x3d8fd7>0x1?void 0x0:_0x3d8fd7?_0x55e279(_0x2e3a03,_0x3aa7c6):_0x2e3a03,_0x1c1591=_0x5be6c6[_0x8bdeba(0x344)]-0x1,_0x4dec44;_0x1c1591>=0x0;_0x1c1591--)(_0x4dec44=_0x5be6c6[_0x1c1591])&&(_0x2599da=_0x4dec44(_0x2599da)||_0x2599da);return _0x2599da;},_0x5bca95=(_0x380308,_0x148c9e)=>(_0x40b562,_0x570dce)=>_0x148c9e(_0x40b562,_0x570dce,_0x380308),_0xd877f6=(_0x51ed10,_0x5ec9f8,_0x20b0de)=>_0x20489b(_0x51ed10,_0x5ec9f8+'',_0x20b0de);const _0x536ec4='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x4c3250[_0x19a859(0x1d5)]=class extends _0x5bf9c6[_0x19a859(0x1c1)]{constructor(_0x42850e=_0x15e6bd,_0x18edff,_0x29fa8c,_0xa5fe81){const _0x4a2ce0=_0x19a859;super(),this[_0x4a2ce0(0x375)]=_0x42850e,this['_renderManagerService']=_0x18edff,this['_injector']=_0x29fa8c,this['_configService']=_0xa5fe81;const {..._0x4f7214}=_0x5bf9c6[_0x4a2ce0(0x1f4)]({},_0x15e6bd,this['_config']);this[_0x4a2ce0(0x150)][_0x4a2ce0(0x291)](_0x598514,_0x4f7214);}[_0x19a859(0x256)](){const _0x278a7c=_0x19a859;this[_0x278a7c(0x11f)](),this[_0x278a7c(0x2cf)]();}[_0x19a859(0x287)](){this['_registerRenderDependencies']();}[_0x19a859(0x11f)](){const _0x2606cf=_0x19a859;var _0x4ac783;const _0x1e19b2=[[_0x30d5cc],[_0x4c0a13],[_0x28b55a],[_0x4794ff],[_0x299122],[_0x1b2902,{'useClass':_0x2d34a4}],[_0x28d1f0[_0x2606cf(0x16c)],{'useClass':_0x28d1f0[_0x2606cf(0x290)]}],[_0x2c72d0['ILocalCacheService'],{'useClass':_0x25e0c4}],[_0x4c3250[_0x2606cf(0x134)]],[_0x48fe55],[_0x461047],[_0x3097e7],[_0x41ef61],[_0x4c3250[_0x2606cf(0x1f1)]]];_0x5bf9c6['registerDependencies'](this[_0x2606cf(0x380)],_0x5bf9c6[_0x2606cf(0x184)](_0x1e19b2,(_0x4ac783=this['_config'])==null?void 0x0:_0x4ac783[_0x2606cf(0x397)]));}['_registerRenderDependencies'](){const _0x2c5416=_0x19a859;this[_0x2c5416(0x305)](this[_0x2c5416(0x388)]['registerRenderModule'](_0x5bf9c6[_0x2c5416(0x2cb)][_0x2c5416(0x25f)],[_0x488d8f])),this[_0x2c5416(0x305)](this[_0x2c5416(0x388)][_0x2c5416(0x2cd)](_0x5bf9c6[_0x2c5416(0x2cb)]['UNIVER_SHEET'],[_0x9b9b90]));}[_0x19a859(0x2cf)](){const _0x58ec57=_0x19a859;_0x5bf9c6['touchDependencies'](this[_0x58ec57(0x380)],[[_0x3097e7],[_0x4c3250[_0x58ec57(0x134)]],[_0x48fe55],[_0x461047],[_0x4c3250[_0x58ec57(0x1f1)]]]);}},_0xd877f6(_0x4c3250[_0x19a859(0x1d5)],_0x19a859(0x1c0),_0x536ec4),_0x4c3250[_0x19a859(0x1d5)]=_0x3b8278([_0x5bf9c6[_0x19a859(0x14e)](_0x2c72d0[_0x19a859(0x1f5)]),_0x5bca95(0x1,_0x5d1039[_0x19a859(0x2b9)]),_0x5bca95(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x5bca95(0x3,_0x5bf9c6[_0x19a859(0x236)])],_0x4c3250[_0x19a859(0x1d5)]);var _0x10dc38=Object[_0x19a859(0x385)],_0x5d1f84=(_0x15b804,_0x276d95,_0x17debd,_0x1e255d)=>{for(var _0x406a47=_0x1e255d>0x1?void 0x0:_0x1e255d?_0x10dc38(_0x276d95,_0x17debd):_0x276d95,_0x437907=_0x15b804['length']-0x1,_0x404c9c;_0x437907>=0x0;_0x437907--)(_0x404c9c=_0x15b804[_0x437907])&&(_0x406a47=_0x404c9c(_0x406a47)||_0x406a47);return _0x406a47;},_0x3f7ca0=(_0x472ae2,_0x2b0d19)=>(_0x46310d,_0x43a3e0)=>_0x2b0d19(_0x46310d,_0x43a3e0,_0x472ae2);_0x4c3250[_0x19a859(0x18f)]=class extends _0x2c72d0[_0x19a859(0x337)]{constructor(_0xa06f35,_0x40346b,_0x1a99fe,_0x306d89,_0x55739c){super(_0xa06f35,_0x40346b,_0x1a99fe,_0x306d89,_0x55739c);}async[_0x19a859(0x30f)](_0x2c70f9){const _0x441338=_0x19a859,_0x5b6b0b=await this[_0x441338(0x2ea)](),_0x4560cf=this[_0x441338(0x38a)](_0x2c70f9,_0x5b6b0b);return this[_0x441338(0x2cc)](_0x4560cf);}['_createSocketURL'](_0x17c4a9,_0x430708){const _0x1b7fe9=_0x19a859,_0x328e32=typeof window>'u'?new URL(_0x17c4a9):new URL(_0x17c4a9,window['location'][_0x1b7fe9(0x276)]);_0x328e32[_0x1b7fe9(0x31d)][_0x1b7fe9(0x17d)](_0x1b7fe9(0x170),_0x430708);const _0x1c6d7d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1b7fe9(0x128)][_0x1b7fe9(0x2c3)]);return _0x1c6d7d['get'](_0x1b7fe9(0x20c))&&_0x328e32['searchParams'][_0x1b7fe9(0x17d)](_0x1b7fe9(0x20c),_0x1c6d7d[_0x1b7fe9(0x223)]('runId')),_0x328e32[_0x1b7fe9(0x246)]();}async[_0x19a859(0x2ea)](){const _0x56fcc5=_0x19a859;var _0x2ec385,_0x35f6ca,_0x261588;const _0x2e0401=this['_configService'][_0x56fcc5(0x329)](_0x2c72d0[_0x56fcc5(0x310)]),_0x3fc08c=(_0x2ec385=_0x2e0401==null?void 0x0:_0x2e0401[_0x56fcc5(0x35d)])!=null?_0x2ec385:_0x2c72d0[_0x56fcc5(0x240)];return(_0x261588=(_0x35f6ca=(await this[_0x56fcc5(0x283)][_0x56fcc5(0x223)](_0x3fc08c,{'headers':{'Content-Type':_0x56fcc5(0x2e5)}}))[_0x56fcc5(0x369)])==null?void 0x0:_0x35f6ca[_0x56fcc5(0x160)])!=null?_0x261588:'';}},_0x4c3250[_0x19a859(0x18f)]=_0x5d1f84([_0x3f7ca0(0x0,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x3f7ca0(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x28d1f0[_0x19a859(0x2a8)])),_0x3f7ca0(0x2,_0x5bf9c6[_0x19a859(0x236)]),_0x3f7ca0(0x3,_0x5bf9c6[_0x19a859(0x1bb)]),_0x3f7ca0(0x4,_0x4e6003[_0x19a859(0x126)])],_0x4c3250[_0x19a859(0x18f)]);const _0x1a01ef=0x7530,_0x3b6a89=_0x19a859(0x132);class _0x34154d extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(){const _0x570c32=_0x19a859;super(),_0x521fa5(this,'_id',_0x5bf9c6[_0x570c32(0x1e0)]()),_0x521fa5(this,'_selfUnitIDs',new Set()),_0x521fa5(this,_0x570c32(0x286),new Map()),_0x521fa5(this,'_heartbeatTimer',null),_0x521fa5(this,'_clearOtherTimers',new Map()),_0x521fa5(this,_0x570c32(0x370),new Map()),this[_0x570c32(0x187)]();}[_0x19a859(0x27b)](){const _0x1a5805=_0x19a859;super[_0x1a5805(0x27b)](),this['_clearOtherTimers'][_0x1a5805(0x139)]((_0x54987c,_0x353955)=>this[_0x1a5805(0x39f)](_0x353955)),this[_0x1a5805(0x1be)]&&window[_0x1a5805(0x39c)](this['_heartbeatTimer']);}[_0x19a859(0x1ad)](_0x212c04){const _0x47f20f=_0x19a859;return this['_ensureSubject'](_0x212c04)[_0x47f20f(0x38f)](_0x496cb2[_0x47f20f(0x27d)]());}['editingUnit'](_0xd29f59){const _0x4339e2=_0x19a859;this[_0x4339e2(0x331)][_0x4339e2(0x390)]===0x0&&this[_0x4339e2(0x1ac)](),this[_0x4339e2(0x331)]['add'](_0xd29f59),this['_send']({'type':0x0,'memberID':this[_0x4339e2(0x3a1)],'unitIDs':[_0xd29f59],'isForwarded':!0x1});}[_0x19a859(0x36b)](_0x2302c9){const _0x4db6f8=_0x19a859;this['_selfUnitIDs'][_0x4db6f8(0x227)](_0x2302c9),this['_selfUnitIDs'][_0x4db6f8(0x390)]===0x0&&this[_0x4db6f8(0x1be)]&&window[_0x4db6f8(0x39c)](this[_0x4db6f8(0x1be)]);}[_0x19a859(0x187)](){const _0x19a3e3=_0x19a859;this[_0x19a3e3(0x305)](_0x5bf9c6['toDisposable'](_0x496cb2[_0x19a3e3(0x1e3)](window,_0x19a3e3(0x245))[_0x19a3e3(0x28a)](_0x51c660=>{const _0x1453a8=_0x19a3e3;if(_0x51c660[_0x1453a8(0x153)]!==_0x3b6a89||!_0x51c660[_0x1453a8(0x31a)])return;const _0x51221a=JSON[_0x1453a8(0x2ad)](_0x51c660[_0x1453a8(0x31a)]);this[_0x1453a8(0x221)](_0x51221a);}))),window[_0x19a3e3(0x36c)](_0x19a3e3(0x1c5),()=>this[_0x19a3e3(0x235)]({'type':0x1,'memberID':this[_0x19a3e3(0x3a1)],'unitIDs':Array['from'](this[_0x19a3e3(0x331)])}));}[_0x19a859(0x221)](_0x2c49e1){const _0x33822e=_0x19a859;switch(_0x2c49e1[_0x33822e(0x2a0)]){case 0x0:this[_0x33822e(0x17a)](_0x2c49e1);break;case 0x1:this[_0x33822e(0x325)](_0x2c49e1);break;case 0x2:this[_0x33822e(0x300)](_0x2c49e1);break;}}[_0x19a859(0x17a)](_0x40ce47){const _0x332ff4=_0x19a859,{unitIDs:_0x9f2945,memberID:_0x762de4,isForwarded:_0x16a1f1}=_0x40ce47;_0x9f2945[_0x332ff4(0x139)](_0x616234=>{const _0x1626f3=_0x332ff4;if(!_0x16a1f1&&this['_unitOnClients']['has'](_0x616234)&&this[_0x1626f3(0x268)](_0x616234)['next'](_0x2c72d0[_0x1626f3(0x14f)][_0x1626f3(0x320)]),!this[_0x1626f3(0x286)][_0x1626f3(0x2b8)](_0x616234)||!this[_0x1626f3(0x286)][_0x1626f3(0x223)](_0x616234)[_0x1626f3(0x2b8)](_0x762de4)){const _0x356ca5=this[_0x1626f3(0x286)][_0x1626f3(0x223)](_0x616234)||new Set();_0x356ca5['add'](_0x762de4),this['_unitOnClients'][_0x1626f3(0x17d)](_0x616234,_0x356ca5),this[_0x1626f3(0x387)](_0x762de4);}}),_0x16a1f1||this[_0x332ff4(0x235)]({'type':0x0,'memberID':this[_0x332ff4(0x3a1)],'unitIDs':[...this[_0x332ff4(0x331)]],'isForwarded':!0x0});}[_0x19a859(0x387)](_0x4d884c){const _0x4c33c=_0x19a859;this['_removeClearOtherTimer'](_0x4d884c);const _0x26ed1f=window[_0x4c33c(0x374)](()=>{const _0x153fc4=_0x4c33c;this[_0x153fc4(0x286)][_0x153fc4(0x139)](_0x353b8f=>{const _0x47e9c1=_0x153fc4;_0x353b8f[_0x47e9c1(0x227)](_0x4d884c);});},_0x1a01ef*0x2);this[_0x4c33c(0x24f)][_0x4c33c(0x17d)](_0x4d884c,_0x26ed1f);}['_removeClearOtherTimer'](_0xac5cfe){const _0x570fc1=_0x19a859;if(this[_0x570fc1(0x24f)][_0x570fc1(0x2b8)](_0xac5cfe)){const _0x5c120c=this[_0x570fc1(0x24f)][_0x570fc1(0x223)](_0xac5cfe);_0x5c120c&&window[_0x570fc1(0x2fb)](_0x5c120c),this[_0x570fc1(0x24f)][_0x570fc1(0x17d)](_0xac5cfe,null);}}[_0x19a859(0x325)](_0x126b5c){const _0x251dba=_0x19a859,{memberID:_0x7c419d,unitIDs:_0x251b83}=_0x126b5c;_0x251b83[_0x251dba(0x139)](_0x197357=>{const _0x41a874=_0x251dba;var _0x3ed355;const _0x537d93=this['_unitOnClients'][_0x41a874(0x223)](_0x197357);_0x537d93&&(_0x537d93[_0x41a874(0x227)](_0x7c419d),(_0x3ed355=this[_0x41a874(0x268)](_0x197357))==null||_0x3ed355['next'](_0x537d93[_0x41a874(0x390)]===0x0?_0x2c72d0[_0x41a874(0x14f)]['NO_OTHER_CLIENTS_EDITING']:_0x2c72d0[_0x41a874(0x14f)][_0x41a874(0x320)]));}),this[_0x251dba(0x39f)](_0x7c419d);}[_0x19a859(0x300)](_0xfdde90){const _0x16d9d4=_0x19a859;this[_0x16d9d4(0x387)](_0xfdde90[_0x16d9d4(0x21a)]);}[_0x19a859(0x235)](_0x3ea8da){const _0x317b27=_0x19a859;localStorage[_0x317b27(0x1ae)](_0x3b6a89,JSON['stringify'](_0x3ea8da));}[_0x19a859(0x1ac)](){const _0x58e42b=_0x19a859;this[_0x58e42b(0x1be)]=window['setInterval'](()=>{const _0x4b0b58=_0x58e42b;this[_0x4b0b58(0x235)]({'type':0x2,'memberID':this[_0x4b0b58(0x3a1)]});},_0x1a01ef);}[_0x19a859(0x268)](_0x5244ff){const _0x4c18b4=_0x19a859;return this[_0x4c18b4(0x370)]['has'](_0x5244ff)||this[_0x4c18b4(0x370)][_0x4c18b4(0x17d)](_0x5244ff,new _0x496cb2[(_0x4c18b4(0x3a5))](_0x2c72d0['UnitStatus'][_0x4c18b4(0x371)])),this[_0x4c18b4(0x370)][_0x4c18b4(0x223)](_0x5244ff);}}var _0x16942c=(_0x11e3a7=>(_0x11e3a7[_0x11e3a7['UNDEFINED']=0x0]=_0x19a859(0x16e),_0x11e3a7[_0x11e3a7['OK']=0x1]='OK',_0x11e3a7[_0x11e3a7[_0x19a859(0x25d)]=0x2]='INTERNAL_ERROR',_0x11e3a7[_0x11e3a7[_0x19a859(0x22b)]=0x3]=_0x19a859(0x22b),_0x11e3a7[_0x11e3a7[_0x19a859(0x352)]=0x4]='NOT_FOUND',_0x11e3a7[_0x11e3a7['UNAUTHENTICATED']=0x5]=_0x19a859(0x281),_0x11e3a7[_0x11e3a7['ALREADY_EXISTS']=0x6]=_0x19a859(0x135),_0x11e3a7[_0x11e3a7['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x11e3a7[_0x11e3a7[_0x19a859(0x2a6)]=0x8]='TOO_MANY_REQUESTS',_0x11e3a7[_0x11e3a7[_0x19a859(0x1c3)]=0x9]='COMPLETION_FINISHED',_0x11e3a7[_0x11e3a7[_0x19a859(0x364)]=0xa]='LOGIN_FAILED',_0x11e3a7[_0x11e3a7[_0x19a859(0x10e)]=0x1389]=_0x19a859(0x10e),_0x11e3a7[_0x11e3a7[_0x19a859(0x356)]=0x1771]=_0x19a859(0x356),_0x11e3a7[_0x11e3a7[_0x19a859(0x159)]=0x1772]=_0x19a859(0x159),_0x11e3a7[_0x11e3a7['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x19a859(0x190),_0x11e3a7[_0x11e3a7[_0x19a859(0x1c8)]=0x1b59]=_0x19a859(0x1c8),_0x11e3a7[_0x11e3a7[_0x19a859(0x2b1)]=0x1b5a]=_0x19a859(0x2b1),_0x11e3a7[_0x11e3a7[_0x19a859(0x295)]=0x1b5b]=_0x19a859(0x295),_0x11e3a7[_0x11e3a7[_0x19a859(0x2c9)]=0x1b5c]=_0x19a859(0x2c9),_0x11e3a7[_0x11e3a7[_0x19a859(0x2a3)]=0x1b5d]=_0x19a859(0x2a3),_0x11e3a7[_0x11e3a7[_0x19a859(0x262)]=0x1f41]=_0x19a859(0x262),_0x11e3a7[_0x11e3a7[_0x19a859(0x2fd)]=0x2329]=_0x19a859(0x2fd),_0x11e3a7[_0x11e3a7['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x19a859(0x13d),_0x11e3a7[_0x11e3a7['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x11e3a7[_0x11e3a7['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x19a859(0x1c2),_0x11e3a7[_0x11e3a7[_0x19a859(0x282)]=0x232d]=_0x19a859(0x282),_0x11e3a7[_0x11e3a7[_0x19a859(0x252)]=0x2711]=_0x19a859(0x252),_0x11e3a7[_0x11e3a7[_0x19a859(0x284)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x11e3a7[_0x11e3a7['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x19a859(0x2e1),_0x11e3a7[_0x11e3a7[_0x19a859(0x173)]=0x2714]=_0x19a859(0x173),_0x11e3a7[_0x11e3a7[_0x19a859(0x215)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x11e3a7[_0x11e3a7[_0x19a859(0x32d)]=0x271b]=_0x19a859(0x32d),_0x11e3a7[_0x11e3a7[_0x19a859(0x332)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x11e3a7[_0x11e3a7['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x11e3a7[_0x11e3a7['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x11e3a7[_0x11e3a7[_0x19a859(0x209)]=0x2ee3]=_0x19a859(0x209),_0x11e3a7[_0x11e3a7[_0x19a859(0x142)]=0x2ee4]=_0x19a859(0x142),_0x11e3a7[_0x11e3a7[_0x19a859(0x1a6)]=0x2ee5]=_0x19a859(0x1a6),_0x11e3a7[_0x11e3a7[_0x19a859(0x34d)]=0x32c9]=_0x19a859(0x34d),_0x11e3a7[_0x11e3a7[_0x19a859(0x17b)]=0x32ca]=_0x19a859(0x17b),_0x11e3a7[_0x11e3a7[_0x19a859(0x1b0)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x11e3a7[_0x11e3a7[_0x19a859(0x2dc)]=-0x1]=_0x19a859(0x2dc),_0x11e3a7))(_0x16942c||{}),_0x49044d=Object[_0x19a859(0x385)],_0x23af9d=(_0x2e231f,_0x38c2fd,_0x48590f,_0x24380d)=>{const _0x18bc74=_0x19a859;for(var _0x204e82=_0x24380d>0x1?void 0x0:_0x24380d?_0x49044d(_0x38c2fd,_0x48590f):_0x38c2fd,_0x290771=_0x2e231f[_0x18bc74(0x344)]-0x1,_0x1ecaec;_0x290771>=0x0;_0x290771--)(_0x1ecaec=_0x2e231f[_0x290771])&&(_0x204e82=_0x1ecaec(_0x204e82)||_0x204e82);return _0x204e82;},_0x2ac5b0=(_0x44cc1d,_0x139546)=>(_0x586b09,_0xa2fb5d)=>_0x139546(_0x586b09,_0xa2fb5d,_0x44cc1d);_0x4c3250[_0x19a859(0x131)]=class extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(_0x290b01,_0x1f9fcb,_0x484865){const _0x4f654f=_0x19a859;super(),this[_0x4f654f(0x1c9)]=_0x290b01,this[_0x4f654f(0x283)]=_0x1f9fcb,this[_0x4f654f(0x150)]=_0x484865;}async['runOnServer'](_0x541fbf,_0x512535,_0x5f0a0e,..._0x1d99d8){const _0x5a4956=_0x19a859;var _0x328fa6,_0xb20131,_0x2c5775,_0x26ba26;const _0x49bc2c=this[_0x5a4956(0x1c9)][_0x5a4956(0x280)]();if(!_0x49bc2c)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5d43c1=((_0x328fa6=this[_0x5a4956(0x150)]['getConfig'](_0x2c72d0[_0x5a4956(0x1cc)]))!=null?_0x328fa6:_0x2c72d0['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x541fbf+_0x5a4956(0x2d8)+_0x512535,_0x22d31f=new URL(window[_0x5a4956(0x128)]['href']),_0x1ed427={'scriptId':_0x541fbf,'runId':(_0xb20131=_0x22d31f['searchParams']['get'](_0x5a4956(0x20c)))!=null?_0xb20131:'','function':_0x512535,'unitId':_0x49bc2c[_0x5a4956(0x1b2)](),'argsOfFunction':JSON[_0x5a4956(0x21b)](_0x1d99d8),'invokeId':(_0x2c5775=_0x5f0a0e['invokeId'])!=null?_0x2c5775:'','executionId':(_0x26ba26=_0x5f0a0e['executionId'])!=null?_0x26ba26:''};try{const _0x216956=await this[_0x5a4956(0x283)][_0x5a4956(0x3a7)](_0x5d43c1,{'body':_0x1ed427});return _0x216956[_0x5a4956(0x369)][_0x5a4956(0x29c)]&&_0x216956[_0x5a4956(0x369)][_0x5a4956(0x29c)][_0x5a4956(0x1a4)]!==_0x16942c['OK']?'Failed':_0x216956[_0x5a4956(0x369)][_0x5a4956(0x203)];}catch{return'Failed';}}},_0x4c3250[_0x19a859(0x131)]=_0x23af9d([_0x2ac5b0(0x0,_0x5bf9c6[_0x19a859(0x2f7)]),_0x2ac5b0(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x28d1f0[_0x19a859(0x2a8)])),_0x2ac5b0(0x2,_0x5bf9c6[_0x19a859(0x236)])],_0x4c3250[_0x19a859(0x131)]),_0x4c3250['CollaborationStatusDisplay']=_0x4957f6,_0x4c3250[_0x19a859(0x1bc)]=_0x1b2902,_0x4c3250['SheetCollabCursorShape']=_0x30557c,_0x4c3250[_0x19a859(0x31c)]=_0x34154d,_0x4c3250['WebURLService']=_0x2d34a4,Object[_0x19a859(0x301)](_0x4c3250,Symbol[_0x19a859(0x1ee)],{'value':'Module'});}));
1
+ function _0x38bc(){const _0x54c8d8=['actions','values','_saveCache','ThemeService','Injector','sessionTicket','toStringTag','OnLineSingle','measureText','name','USER_NOT_INVITED_CODE','_online','has','CollaborationDataLoaderController','@univerjs-pro/collaboration','Disposable','@univerjs/engine-render','event$','_updateLocalCursor','AWAITING','useCallback','subUnitId','subscribe','_startDocCollabCursor','transformIMECache','_initStatusListener','on-line-single_clip0_910_349','_toggleOnline','error','RECT','IUniverInstanceService','string','triggerDblclick','Vector2','ILocalStorageService','fillText','cursorInfo$','_collaborationController','clearTimeout','IMessageService','COMPLETION_FINISHED','getRelativeToViewportCoord','_handleHeartbeatEvent','Subject','_refRangeService','forEach','onRendered','clearInterval','_uiPartsService','saveOfflineData','uni.network.url-service','IURLService','getActiveRange','UniverRpc','FETCH_MISS','DocSelectionManagerService','roomMembers','univer-text-green-500','@univerjs/network','transformStateCache','combineLatest','push','MOBILE_HAS_BEEN_BOUND','font','jsxs','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','_commandService','_cursorShapes','_localStorageService','BrowserCollaborationSocketService','enableLocalCache','MemberService','sessionStatus$','_saveTaskMap','permission.title','2552zPxldv','UniverProCollaborationClientUi','currentTheme$','memberID','_getAnchorBounding','selections','getUniverSheetInstance','exports','RemoveColCommandId','rgba(255,\x20255,\x20255,\x200.01)','_docStateChangeManagerService','_status$','650vtiymG','IDocClipboardService','defIds','storage','UniverCollaborationClientUIPlugin','_httpService','Inject','DeleteRangeMoveLeftCommandId','getSkeleton','LICENSE_EXPORT_SIZE_EXCEEDED','params','popstate','APPLY_REJECT','_hovered','unshift','setItem','UniverEngineRender','FromArray','RegularPolygon','min','takeUntil','disableLocalCache','getSheetObject','call','m2Prime','NodePositionConvertToRectRange','0\x200\x2016\x2016','send','pluginName','_removeCollabCursors','with','registerDependencies','LOGIN_FAILED','getUnhiddenWorksheets','generateRandomId','get','Workbook','startColumn','fromEvent','BehaviorSubject','activeSheet$','MoveRangeCommandId','collabStatus.fetchMiss','object','SOCKET_FAILED_RETRY','Rect','collabStatus.conflict','mask','arc','data','ILocalCacheService','none','handleInsertCol','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getSheetId','collab-text-range-','LOCAL_CACHE_INTERVAL','verdancy600','isEditing','DEFAULT_WS_SESSION_TICKET_URL','_scene','entries','CONFLICT','createInstance','getMemberID','unsubscribe','1em','_scheduleClearOtherTimer','lineTo','location','getUndoRedoMutationParamsCache','entityInit$','DocIMEInputManagerService','USERS_LEAVE','getOwnPropertySymbols','forwardRef','debounce','ISocketService','_handleEvent','doc.mutation.rich-text-editing','text','currentColor','_getSessionTicket','Shape','JOIN_ROOM_FAILED','SetDocZoomRatioOperation','ISnapshotServerService','_onCursorDelete','onLocalMutation','trim','dispose$','_name','_cursorInfo$','OffLineSingle','jsx','rxjs','_eventUnsubscribe','backgroundColor','children','_collabCursorState$','asObservable','debug','TEXT_RANGE_LAYER_INDEX','setConfig','requireSession','@univerjs/design','CollaborationStatusDisplay','_onRefRangeChange','addObject','red300','pushState','clipPath','_drawAnchor','_session','getRangePointData','UNRECOGNIZED','ALREADY_EXISTS','onPointerEnter$','textRanges','UniverInstanceType','width','_backgroundColor','_renderManagerService','_drawRectRange','CollaborationController','body','subunit','RxDisposable','onMouseMove','CONNECTOR_DATA_TOO_LARGE','setShapeProps','CollaborationSessionService','executionId','_docSkeletonManagerService','_hover','...','_color','WebURLService','onPointerLeave$','collabStatus.synced','_imageIoService','collaboration.single-unit.warning','complete','_range','loadUnit','purple300','_colorIndex','debounceTime','handleInsertRangeMoveRight','unload','isTransformMutationsWithChangesetSuccess','createIdentifier','override','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','_textBubble','transform','_disabled','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','AWAITING_WITH_PENDING','distinctUntilChanged','getUnitId','assignAColorForMemberID','DependentOn','_roomMembers$','replaceDocRanges','316tIVvzQ','createElement','ENSURE_SNAPSHOT_EXECUTION','merge','getOwnPropertyDescriptor','parse','@univerjs/core','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SUBMIT_CHANGESET_TIMEOUT','NodePositionConvertToCursor','_clearOtherTimers','then','LICENSE_DISTRO_REJECTED','collab-rect-range-','round','_docClipboardService','getUnitStatus$','_anchor','_removeClearOtherTimer','drawWith','_transformHistoryAndStateStack','imageSourceType','@univerjs/engine-formula','icon','transformMutationsWithChangeset','getValue','handleInsertRangeMoveDown','jiqing500','onCommandExecuted','CommandType','stringify','_unitOnClients','DesktopCollaborationStatusDisplayController','_updateSubUnitFromURLParams','EffectRefRangId','_localeService','WECHAT_HAS_BEEN_BOUND','APPLY_REVISION_CONFILICT','UniverEngineFormula','EMAIL_HAS_BEEN_BOUND','_labelPosition','findNodePositionByCharIndex','TEXT','svg','OTHER_CLIENTS_EDITING','saveTaskMap','unitID','LICENSE_MAX_UNITS_EXCEEDED','setUndoRedoMutationParamsCache','_handleLeaveEvent','collabStatus.notCollab','getActiveSheet','_univerInstanceService','@univerjs-pro/collaboration-client','code','SessionStatus','_shapes','3346932MrriGV','ColorKit','_revisionService','_getSheetObject','searchParams','UPDATE_CURSOR','_createSocketURL','_docTransformIMECacheService','NOT_FOUND','all','9147523oApFLM','replace','@univerjs/docs-ui','YUUMI_URL_COL_OUT_OF_RANGE','toString','InsertColCommandId','6tYcMva','CollaborationSocketService','_cachedData','setAlpha','url(#$1','OTHER_CLIENT_EDITING','_scheduleSaving','split','getColor','wsSessionTicketUrl','Unknown\x20user','UNIVER_SHEET','startsWith','idSuffix','shareReplay','unit','reconnect','selection','evenodd','key','_context','getConfig','redoState','m1Prime','registerRefRange','from','defineProperty','_initStatusComponent','SNAPSHOT_INVALID_SNAPSHOT','skeleton','InsertRangeMoveRightCommandId','UnitStatus','_collabSessionService','random','onStarting','fillRule','operators','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','transformRemoteChangeset','registerBeforeClose','set','UniverCollaborationClientPlugin','_anchorDot','tag','Plugin','type','exhaustSavingTask','on-line-single','DocStateChangeManagerService','LICENSE_IMPORT_SIZE_EXCEEDED','INVITE_CODE_ALREADY_BOUND','UniverProCollaboration','_setupBeforeClosingHandler','_doCreateSocket','WebSocketService','getAncestorScale','_hideTimer','href','length','beginPath','_selfUnitIDs','_getSaveTimeout','dispose','240234mkOqMy','/run/','fillStyle','session.will-retry','UniverDocsUi','UNDEFINED','_registerRenderDependencies','_refreshCollabCursors','show','ticket','_lastPointer','_send','current','black','find','_entityInit$','univer-flex\x20univer-items-center','gold400','YUUMI_NO_CUBOID_FOR_QUESTION','removeParam','_draw','UniverDocs','UniverProCollaborationClient','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_transformService','getItem','_toggleOffline','addClipboardHook','registerComponent','Tools','some','toRgbString','getMergeData','collabCursorState$','endColumn','TOO_MANY_REQUESTS','syncEditingCollabCursor','NOT_COLLAB','assign','12vFhZHQ','NO_OTHER_CLIENTS_EDITING','fill','useDependency','_setupSubUnitSync','DOC_RANGE_TYPE','#FFF','UNAUTHENTICATED','colorChannel1','filter','31345SCXSBW','_instanceService','CollaborationUIEventId','path','moveTo','_config','replaceState','SheetSkeletonManagerService','APPLY_PERMISSION_DENIED','_memberService','Optional','addObjects','delete','424533CLpNqG','UNIVER_DOC','_docSyncEditingCollabCursorService','IConfigService','getLocalCacheKey','IImageIoService','function','_syncEditingCollabCursorService','_cursors','onTransformChange$','_initCommandExecutedListener','CHANGESET_REVISION_CONFILICT','_id','@univerjs/drawing','getDocRanges','map','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RevisionService','UniverDesign','rxjs/operators','@univerjs/sheets','runId','indexOf','@univerjs/sheets-ui','_notificationService','displayName','saveImage','SHEET_VIEWPORT_KEY','DocSkeletonManagerService','COLORS','[CollaborationDataLoaderController]','resize','getMember','subscribeEvent','mapTo','isTransformMutationFailure','_messageService','translate(.97)','off-line-single_clip0_910_343','_sheetSkeletonManagerService','status$','defs','search','contains','_drawTextRange','createSocket','WebBrowserSingleActiveUnitService','handleDeleteRangeMoveUp','mergeOverrideWithDependencies','_configService','pipe','range','propertyIsEnumerable','roomMembers$','_heartbeatTimer','cursorInfo','UniverCore','hide','APPLY_NON_SEQUENTIAL_REVISION','color','_render','session.connection-failed','substring','attrs','CollaborationStatus','BuiltInUIPart','_colorAssignService','result','_initEntityListener','concat','row','getParam','prototype','getCollabEntity$','useObservable','DeleteRangeMoveUpCommandId','_handleHover','collabStatus.syncing','_dataLoaderService','_unitStatus','_urlService','_initEvent','touchDependencies','@univerjs/docs','RichTextEditingMutation','max','bottom','collaboration-client.offline-data-not-saved','hasOwnProperty','0\x200\x2017\x2016','_startSheetCollabCursor','getFocusedUnit','INVALID_INVITE_CODE','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','YUUMI_UNABLE_LOAD_URL','react/jsx-runtime','getCurrent','_entities','collaboration.closeRoom','_collaborationUIEventService','_updateCollabCursors','react','unitId','closePath','_injector','UniverDrawing','extend','ranges','toDisposable','getRenderById','DataLoaderService','ICommandService','size','Module','_assignedColors','setParam','_ensureSubject','startRow','post','addEventListener','_onCursorUpdate','_cursor','YUUMI_RATE_OVER_LIMIT','SetSelectionsOperation','@univerjs/ui','_document','MessageType','INVITE_CODE_REQUIRED','ITransformService','LOCAL_CACHE_INTERVAL_KEY','connectInjector','init','apply','_themeService','top','getSheetBySheetId','YUUMI_SUBSCRIPTION_NOT_FOUND','transformMutation','_transformPreviousActiveRange','INVITE_CODE_HAS_BEEN_UES','SYNCED','registerRenderModule','executeCommand','history','SetTextSelectionsOperation','column','transformSelections','mutations','DocCollaborationEntity','IRenderManagerService','switchMap','SNAPSHOT_HAS_BEEN_REMOVED','RemoteUniscriptService','isArray','M0\x200H16V16H0z','123210dueLKP','_handleJoinEvent','transformByState','_collabCursorController','fromEventSubject','PY_RUNTIME_SCRIPT_ERROR','getCoordByCell','SOCKET_FAILED','_getScale','INotificationService','eventID','isActive','add','className','Warning','_localCacheService','collabStatus.offline','_docTransformSelectionsService','getOffsetConfig','save','getTypeOfUnitDisposed$','disposeWithMe','deepClone','endRow','setInterval','updateOfflineData','next','CLOSE_ROOM','YUUMI_ASYNCIO_CANCELLED','_docTransformStateCacheService','HTTPService','_updateURLWithCurrentState','UniverNetwork','9919bHNPfr','PENDING','_init','setTimeout','_logService','_registerDependencies','CollaborationEvent','handleIRemoveCol','div','LocaleService','getCollabCursors$','urlChange$','SetWorksheetActivateCommand','height','INTERNAL_ERROR','getTypeOfUnitAdded$','undoState','newValue','ONLINE','handleMoveRange','origin','_initDependencies','Failed','Error','amd','#fff','DisposableCollection','PERMISSION_DENIED','ILogService'];_0x38bc=function(){return _0x54c8d8;};return _0x38bc();}function _0x201c(_0x34c66a,_0x4c540f){const _0x38bc05=_0x38bc();return _0x201c=function(_0x201ce9,_0x331559){_0x201ce9=_0x201ce9-0x79;let _0x2fdd8d=_0x38bc05[_0x201ce9];return _0x2fdd8d;},_0x201c(_0x34c66a,_0x4c540f);}(function(_0x83e1ea,_0x291b4e){const _0x453799=_0x201c,_0x249f5e=_0x83e1ea();while(!![]){try{const _0x44fbb3=-parseInt(_0x453799(0x2f3))/0x1+parseInt(_0x453799(0x2b4))/0x2*(-parseInt(_0x453799(0x96))/0x3)+parseInt(_0x453799(0x26b))/0x4*(parseInt(_0x453799(0x89))/0x5)+-parseInt(_0x453799(0x2a4))/0x6+-parseInt(_0x453799(0x152))/0x7*(parseInt(_0x453799(0x1ba))/0x8)+-parseInt(_0x453799(0x131))/0x9*(-parseInt(_0x453799(0x1c6))/0xa)+-parseInt(_0x453799(0x2ae))/0xb*(-parseInt(_0x453799(0x7f))/0xc);if(_0x44fbb3===_0x291b4e)break;else _0x249f5e['push'](_0x249f5e['shift']());}catch(_0x951f6a){_0x249f5e['push'](_0x249f5e['shift']());}}}(_0x38bc,0x84582),function(_0x218fe6,_0x320991){const _0x2b77fc=_0x201c;typeof exports==_0x2b77fc(0x1f1)&&typeof module<'u'?_0x320991(exports,require(_0x2b77fc(0x2a0)),require(_0x2b77fc(0x271)),require(_0x2b77fc(0x17f)),require('@univerjs/network'),require(_0x2b77fc(0x2b0)),require(_0x2b77fc(0xa3)),require(_0x2b77fc(0x225)),require(_0x2b77fc(0xe9)),require(_0x2b77fc(0x17d)),require(_0x2b77fc(0x281)),require(_0x2b77fc(0xaa)),require(_0x2b77fc(0xa9)),require(_0x2b77fc(0xad)),require('react/jsx-runtime'),require('@univerjs/ui'),require(_0x2b77fc(0x22f)),require(_0x2b77fc(0xfb)),require('@univerjs/rpc')):typeof define=='function'&&define[_0x2b77fc(0x16a)]?define([_0x2b77fc(0x1c1),_0x2b77fc(0x2a0),_0x2b77fc(0x271),_0x2b77fc(0x17f),_0x2b77fc(0x1a9),'@univerjs/docs-ui',_0x2b77fc(0xa3),_0x2b77fc(0x225),_0x2b77fc(0xe9),_0x2b77fc(0x17d),'@univerjs/engine-formula',_0x2b77fc(0xaa),_0x2b77fc(0xa9),'@univerjs/sheets-ui',_0x2b77fc(0xf5),_0x2b77fc(0x112),_0x2b77fc(0x22f),_0x2b77fc(0xfb),'@univerjs/rpc'],_0x320991):(_0x218fe6=typeof globalThis<'u'?globalThis:_0x218fe6||self,_0x320991(_0x218fe6[_0x2b77fc(0x1bb)]={},_0x218fe6[_0x2b77fc(0x309)],_0x218fe6[_0x2b77fc(0xce)],_0x218fe6[_0x2b77fc(0x1d6)],_0x218fe6[_0x2b77fc(0x151)],_0x218fe6[_0x2b77fc(0x2f7)],_0x218fe6[_0x2b77fc(0xff)],_0x218fe6[_0x2b77fc(0x225)],_0x218fe6[_0x2b77fc(0x308)],_0x218fe6[_0x2b77fc(0x2e7)],_0x218fe6[_0x2b77fc(0x291)],_0x218fe6['UniverSheets'],_0x218fe6[_0x2b77fc(0x225)][_0x2b77fc(0x2d8)],_0x218fe6['UniverSheetsUi'],_0x218fe6['React'],_0x218fe6['UniverUi'],_0x218fe6[_0x2b77fc(0xa8)],_0x218fe6['React'],_0x218fe6[_0x2b77fc(0x1a4)]));}(this,function(_0x3bccaa,_0x1102c8,_0x3207a9,_0x2e888c,_0x283bfb,_0xcfa6df,_0x23a064,_0xd000e2,_0xca2427,_0x3e7a87,_0x9b4b,_0x4a8ed5,_0x3314d0,_0x5f0a59,_0x23e649,_0x38cf24,_0x28722d,_0x470d28,_0x5c4095){'use strict';const _0x258f24=_0x201c;var _0x763ecc=Object[_0x258f24(0x2ce)],_0x4f3fb8=(_0x5f33de,_0x2a050f,_0x297d59)=>_0x2a050f in _0x5f33de?_0x763ecc(_0x5f33de,_0x2a050f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297d59}):_0x5f33de[_0x2a050f]=_0x297d59,_0x1a27fd=(_0x327e6b,_0x11344c,_0x4ec528)=>_0x4f3fb8(_0x327e6b,typeof _0x11344c!='symbol'?_0x11344c+'':_0x11344c,_0x4ec528),_0x22d69c=Object[_0x258f24(0x26f)],_0x38088b=(_0xf8d3bd,_0x210256,_0x5c92bc,_0x484ffc)=>{for(var _0x2f17a3=_0x484ffc>0x1?void 0x0:_0x484ffc?_0x22d69c(_0x210256,_0x5c92bc):_0x210256,_0x28f5b5=_0xf8d3bd['length']-0x1,_0x11fbd4;_0x28f5b5>=0x0;_0x28f5b5--)(_0x11fbd4=_0xf8d3bd[_0x28f5b5])&&(_0x2f17a3=_0x11fbd4(_0x2f17a3)||_0x2f17a3);return _0x2f17a3;},_0x5899fa=(_0x2481c8,_0x1946f2)=>(_0x2d484,_0x400b5c)=>_0x1946f2(_0x2d484,_0x400b5c,_0x2481c8);let _0xa670a2=class extends _0x3207a9[_0x258f24(0x245)]{constructor(_0x73d625,_0x33d1ad){const _0x395a30=_0x258f24;super(),this[_0x395a30(0x27a)]=_0x73d625,this[_0x395a30(0x252)]=_0x33d1ad,this[_0x395a30(0x154)]();}[_0x258f24(0x154)](){const _0x453f94=_0x258f24,_0x5afc8d=this;this['disposeWithMe'](this[_0x453f94(0x27a)][_0x453f94(0x30e)]({'onBeforePasteImage':async _0x12d975=>{const _0x10a219=_0x453f94,_0x5eb3c7=await _0x5afc8d[_0x10a219(0x252)][_0x10a219(0xb0)](_0x12d975);return _0x5eb3c7?{'source':_0x5eb3c7['source'],'imageSourceType':_0x5eb3c7[_0x10a219(0x280)]}:null;}}));}};_0xa670a2=_0x38088b([_0x5899fa(0x0,_0xcfa6df[_0x258f24(0x1c7)]),_0x5899fa(0x1,_0x23a064[_0x258f24(0x9b)])],_0xa670a2);const _0x3b6e78=[_0x258f24(0x257),_0x258f24(0x286),_0x258f24(0x1ff),_0x258f24(0x233),'blue400',_0x258f24(0x304)];class _0x3ec850 extends _0x3207a9[_0x258f24(0x17e)]{constructor(){const _0x7805a8=_0x258f24;super(...arguments),_0x1a27fd(this,_0x7805a8(0x108),new Map()),_0x1a27fd(this,'_colorIndex',0x0);}[_0x258f24(0x267)](_0x14059a){const _0x3fe2b4=_0x258f24;if(this[_0x3fe2b4(0x108)][_0x3fe2b4(0x17b)](_0x14059a))return this['_assignedColors'][_0x3fe2b4(0x1e9)](_0x14059a);const _0x390785=_0x3b6e78[this['_colorIndex']];return this[_0x3fe2b4(0x258)]=(this['_colorIndex']+0x1)%_0x3b6e78[_0x3fe2b4(0x2ee)],this['_assignedColors']['set'](_0x14059a,_0x390785),_0x390785;}}function _0xe11a78(_0x3b6466){const _0x21fe8b=_0x258f24;let _0x249836='';for(const _0x480e78 of _0x3b6466){const {startOffset:_0x2d186a,endOffset:_0x260447,isActive:_0x3053e9,rangeType:_0x46020a,segmentId:_0x1950b3,segmentPage:_0x52fd34}=_0x480e78;_0x249836[_0x21fe8b(0x2ee)]&&(_0x249836+=','),_0x249836+=_0x2d186a+':'+_0x260447+':'+(_0x3053e9?'1':'0')+':'+_0x46020a+':'+_0x1950b3+':'+_0x52fd34;}return _0x249836;}function _0x4e7a22(_0x4ebb5b){const _0x1d8f1f=_0x258f24,_0x31379f=_0x4ebb5b['split'](','),_0xa7d50e=[];for(const _0x125454 of _0x31379f){const [_0x26af9c,_0x1329b0,_0x2609c1,_0x104155,_0x428979,_0x18693b]=_0x125454[_0x1d8f1f(0x2bb)](':');_0xa7d50e[_0x1d8f1f(0x1ac)]({'startOffset':Number(_0x26af9c),'endOffset':Number(_0x1329b0),'collapsed':_0x26af9c===_0x1329b0,'isActive':_0x2609c1==='1','rangeType':_0x104155===_0x3207a9[_0x1d8f1f(0x84)]['TEXT']?_0x3207a9[_0x1d8f1f(0x84)][_0x1d8f1f(0x295)]:_0x3207a9[_0x1d8f1f(0x84)]['RECT'],'segmentId':typeof _0x428979==_0x1d8f1f(0x18e)?String(_0x428979):'','segmentPage':Number(_0x18693b!=null?_0x18693b:-0x1)});}return _0xa7d50e[_0x1d8f1f(0x311)](_0x128cfb=>_0x128cfb['isActive'])||(_0xa7d50e[0x0][_0x1d8f1f(0x13c)]=!0x0),_0xa7d50e;}class _0x2062f0 extends _0x3207a9[_0x258f24(0x245)]{constructor(){const _0x35ef7b=_0x258f24;super(...arguments),_0x1a27fd(this,_0x35ef7b(0x229),new _0xd000e2[(_0x35ef7b(0x1ed))](null)),_0x1a27fd(this,_0x35ef7b(0x79),this[_0x35ef7b(0x229)][_0x35ef7b(0x22a)]());}[_0x258f24(0x7c)](_0x4386e9){const _0x5952bf=_0x258f24,{unitID:_0x11b2f8,memberID:_0x517b9a,textRanges:_0x3d9501}=_0x4386e9,_0x2a4a4c=_0xe11a78(_0x3d9501);if(_0x2a4a4c==='')return;const _0x5b98d4={'unitID':_0x11b2f8,'memberID':_0x517b9a,'selection':_0x2a4a4c};this[_0x5952bf(0x229)][_0x5952bf(0x14b)](_0x5b98d4);}}var _0x59e7b1=Object['getOwnPropertyDescriptor'],_0x312adb=(_0x2bf310,_0x2cef19,_0xf9e406,_0x5c4285)=>{for(var _0x3577c6=_0x5c4285>0x1?void 0x0:_0x5c4285?_0x59e7b1(_0x2cef19,_0xf9e406):_0x2cef19,_0x7df7d8=_0x2bf310['length']-0x1,_0x11356b;_0x7df7d8>=0x0;_0x7df7d8--)(_0x11356b=_0x2bf310[_0x7df7d8])&&(_0x3577c6=_0x11356b(_0x3577c6)||_0x3577c6);return _0x3577c6;},_0xf0ae3e=(_0x3ac3d5,_0x1587dc)=>(_0x1545ab,_0x16375c)=>_0x1587dc(_0x1545ab,_0x16375c,_0x3ac3d5);const _0x4ebfd1=0x12c,_0x4d94a9=0x64;let _0x5cb765=class extends _0x3207a9['RxDisposable']{constructor(_0x711277,_0x317d12,_0xf4f684,_0x3feec3,_0x35d2cc,_0xbef5d3,_0x426093,_0x164c70,_0x33b46c){const _0x330509=_0x258f24;super(),_0x1a27fd(this,_0x330509(0x17a),!0x1),_0x1a27fd(this,_0x330509(0x154),!0x1),_0x1a27fd(this,_0x330509(0x222),new _0xd000e2[(_0x330509(0x1ed))](new Map())),_0x1a27fd(this,_0x330509(0x193),this[_0x330509(0x222)]['asObservable']()),_0x1a27fd(this,_0x330509(0x269),new _0xd000e2[(_0x330509(0x1ed))]([])),_0x1a27fd(this,_0x330509(0xcb),this[_0x330509(0x269)]['pipe'](_0xd000e2[_0x330509(0x259)](_0x4ebfd1))),_0x1a27fd(this,_0x330509(0x181),_0x3207a9['debounce'](_0x433749=>{const _0x57407f=_0x330509,_0x52465e={'eventID':_0x3e7a87[_0x57407f(0x158)][_0x57407f(0x2a9)],'data':{'unitID':this[_0x57407f(0x299)],'memberID':this[_0x57407f(0x237)][_0x57407f(0x206)](),'selection':_0xe11a78(_0x433749)}};this[_0x57407f(0x237)][_0x57407f(0x1e1)](_0x52465e,this['unitID']);},_0x4d94a9)),(this[_0x330509(0x299)]=_0x711277,this[_0x330509(0x237)]=_0x317d12,this['_injector']=_0xf4f684,this[_0x330509(0xd8)]=_0x3feec3,this[_0x330509(0x92)]=_0x35d2cc,this[_0x330509(0x9d)]=_0xbef5d3,this[_0x330509(0x30b)]=_0x426093,this[_0x330509(0x29f)]=_0x164c70,this[_0x330509(0x1b1)]=_0x33b46c);}get[_0x258f24(0xcd)](){const _0xd228de=_0x258f24;return this[_0xd228de(0x222)][_0xd228de(0x284)]();}get[_0x258f24(0x1a7)](){const _0x34f1b1=_0x258f24;return this[_0x34f1b1(0x269)][_0x34f1b1(0x284)]();}[_0x258f24(0x2f2)](){const _0x3168a3=_0x258f24;super[_0x3168a3(0x2f2)](),this[_0x3168a3(0x222)][_0x3168a3(0x14b)](new Map()),this['_cursorInfo$']['complete'](),this[_0x3168a3(0x269)][_0x3168a3(0x14b)]([]),this[_0x3168a3(0x269)]['complete']();}[_0x258f24(0x119)](){const _0x13c80e=_0x258f24;this['_init']||(this['_init']=!0x0,this[_0x13c80e(0x237)][_0x13c80e(0x1b7)]['pipe'](_0xd000e2[_0x13c80e(0x1da)](this['dispose$']))['subscribe'](_0x2143f9=>{const _0x3e6573=_0x13c80e;_0x2143f9===_0x1102c8[_0x3e6573(0x2a2)][_0x3e6573(0x164)]?this[_0x3e6573(0x18a)]():this[_0x3e6573(0x30d)]();}),this['_session']['event$']['pipe'](_0xd000e2[_0x13c80e(0x1da)](this[_0x13c80e(0x220)]))[_0x13c80e(0x185)](_0x372999=>{const _0x179e78=_0x13c80e,_0x250ddd=_0x372999[_0x179e78(0x13b)];_0x250ddd===_0x3e7a87[_0x179e78(0x158)][_0x179e78(0x2a9)]&&this[_0x179e78(0x10e)](_0x372999),_0x250ddd===_0x3e7a87[_0x179e78(0x158)]['USERS_LEAVE']&&this[_0x179e78(0x21d)](_0x372999);}),this[_0x13c80e(0x146)](this[_0x13c80e(0x1b1)][_0x13c80e(0x287)](_0x1c82c6=>{const _0x1294f7=_0x13c80e,_0x12c0eb=_0x1c82c6['params'];_0x12c0eb!=null&&this['_online']&&_0x1c82c6['id']===_0xca2427[_0x1294f7(0x126)]['id']&&_0x12c0eb[_0x1294f7(0xfc)]===this[_0x1294f7(0x299)]&&_0x12c0eb[_0x1294f7(0x200)]===!0x1&&_0x12c0eb[_0x1294f7(0x101)]['length']>0x0&&this['_updateLocalCursor'](_0x12c0eb['ranges']);})),this[_0x13c80e(0x9d)][_0x13c80e(0x79)][_0x13c80e(0xc8)](_0xd000e2['takeUntil'](this['dispose$']))[_0x13c80e(0x185)](_0x137920=>{const _0x11a247=_0x13c80e;if((_0x137920==null?void 0x0:_0x137920[_0x11a247(0x299)])!==this[_0x11a247(0x299)])return;const _0x57a46a={'eventID':_0x3e7a87[_0x11a247(0x158)][_0x11a247(0x2a9)],'data':_0x137920};this['_onCursorUpdate'](_0x57a46a);}),this[_0x13c80e(0x146)](this[_0x13c80e(0x1b1)]['onCommandExecuted'](_0x4015c7=>{const _0x1840f3=_0x13c80e;if(_0x4015c7[_0x1840f3(0x1d0)]==null)return;const _0x388c00=_0x4015c7[_0x1840f3(0x1d0)];if(_0x4015c7['id']!==_0xca2427[_0x1840f3(0xea)]['id']||_0x388c00[_0x1840f3(0xfc)]!==this[_0x1840f3(0x299)])return;const _0x4587a6={'id':_0x1840f3(0x215),'params':_0x388c00},_0x3f8693=this[_0x1840f3(0xcd)];for(const [_0x3d85bb,_0x518538]of _0x3f8693){const _0x4735d1={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1840f3(0x299)],'actions':null,'textRanges':_0x518538['ranges']}},_0xed4246=this[_0x1840f3(0x30b)][_0x1840f3(0x11f)](_0x4587a6,_0x4735d1,!0x1);if(_0x3e7a87['isTransformMutationFailure'](_0xed4246))throw _0xed4246['error'];_0x3f8693[_0x1840f3(0x2dc)](_0x3d85bb,{..._0x518538,'ranges':_0xed4246['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0xf68a1f=_0x1840f3;this[_0xf68a1f(0x222)][_0xf68a1f(0x14b)](_0x3f8693);});})));}['_onCursorUpdate'](_0x3677f0){const _0x49f187=_0x258f24;var _0x3e7e4f,_0x166937;const {memberID:_0x30fa1b,selection:_0x42c657}=_0x3677f0['data'],_0x4ca996=_0x4e7a22(_0x42c657),_0x3d52bd=(_0x166937=(_0x3e7e4f=this['_memberService'][_0x49f187(0xb6)](this[_0x49f187(0x299)],_0x30fa1b))==null?void 0x0:_0x3e7e4f['name'])!=null?_0x166937:_0x49f187(0x2be),_0x2c7d3d={'color':this['_colorAssignService'][_0x49f187(0x267)](_0x30fa1b),'name':_0x3d52bd,'ranges':_0x4ca996},_0x3e6e03=this[_0x49f187(0xcd)];_0x3e6e03[_0x49f187(0x2dc)](_0x30fa1b,_0x2c7d3d),this[_0x49f187(0x222)]['next'](_0x3e6e03);}[_0x258f24(0x21d)](_0x44ed0f){const _0x435203=_0x258f24,{memberID:_0x178941}=_0x44ed0f['data'],_0x1c4e00=this[_0x435203(0xcd)];_0x1c4e00[_0x435203(0x95)](_0x178941),this[_0x435203(0x222)][_0x435203(0x14b)](_0x1c4e00);}[_0x258f24(0x18a)](){const _0x57612c=_0x258f24;var _0x26dc61;if(this[_0x57612c(0x17a)]=!0x0,((_0x26dc61=this[_0x57612c(0x29f)]['getFocusedUnit']())==null?void 0x0:_0x26dc61[_0x57612c(0x266)]())!==this[_0x57612c(0x299)])return;const _0x6866c7=this[_0x57612c(0xfe)][_0x57612c(0x1e9)](_0xca2427[_0x57612c(0x1a6)])[_0x57612c(0xa4)]();Array[_0x57612c(0x12f)](_0x6866c7)&&_0x6866c7[_0x57612c(0x2ee)]>0x0&&this[_0x57612c(0x181)](_0x6866c7);}[_0x258f24(0x30d)](){const _0x5846bc=_0x258f24;this[_0x5846bc(0x17a)]=!0x1;}};_0x5cb765=_0x312adb([_0xf0ae3e(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9[_0x258f24(0x173)])),_0xf0ae3e(0x3,_0x3207a9[_0x258f24(0x1cc)](_0x3ec850)),_0xf0ae3e(0x4,_0x3207a9['Inject'](_0x1102c8['MemberService'])),_0xf0ae3e(0x5,_0x3207a9[_0x258f24(0x1cc)](_0x2062f0)),_0xf0ae3e(0x6,_0x3e7a87[_0x258f24(0x116)]),_0xf0ae3e(0x7,_0x3207a9[_0x258f24(0x18d)]),_0xf0ae3e(0x8,_0x3207a9[_0x258f24(0x105)])],_0x5cb765);var _0x2989c3=Object['getOwnPropertyDescriptor'],_0x6a5ed4=(_0x9e6480,_0x4d4d5f,_0x38a73e,_0x293721)=>{const _0x111a86=_0x258f24;for(var _0x4370f5=_0x293721>0x1?void 0x0:_0x293721?_0x2989c3(_0x4d4d5f,_0x38a73e):_0x4d4d5f,_0xe288dc=_0x9e6480[_0x111a86(0x2ee)]-0x1,_0x5c07f7;_0xe288dc>=0x0;_0xe288dc--)(_0x5c07f7=_0x9e6480[_0xe288dc])&&(_0x4370f5=_0x5c07f7(_0x4370f5)||_0x4370f5);return _0x4370f5;},_0x6c7efd=(_0x53817c,_0x4b4958)=>(_0x2bd926,_0x1526c2)=>_0x4b4958(_0x2bd926,_0x1526c2,_0x53817c);const _0x3feed0=0x12c,_0x1a97ae=0x64,_0x30df03=()=>{let _0x1d961d=[],_0x4ec67c=!0x1;return _0x1b6dd6=>{_0x1d961d['push'](_0x1b6dd6),_0x4ec67c||(_0x4ec67c=!0x0,setTimeout(()=>{const _0x295ccf=_0x201c;_0x1d961d[_0x295ccf(0x19c)](_0x2973b6=>_0x2973b6()),_0x1d961d=[],_0x4ec67c=!0x1;}));};};let _0x4bfd5a=class extends _0x3207a9[_0x258f24(0x245)]{constructor(_0x296a28,_0x573b14,_0x45d3d5,_0x51501e,_0x2e0df8,_0x2ab1b2,_0x3a4a3e,_0x2df3a3){const _0x3f3833=_0x258f24;super(),_0x1a27fd(this,'_online',!0x1),_0x1a27fd(this,_0x3f3833(0x154),!0x1),_0x1a27fd(this,_0x3f3833(0x222),new _0xd000e2['BehaviorSubject'](new Map())),_0x1a27fd(this,_0x3f3833(0x193),this['_cursorInfo$'][_0x3f3833(0x22a)]()),_0x1a27fd(this,_0x3f3833(0x269),new _0xd000e2[(_0x3f3833(0x1ed))]([])),_0x1a27fd(this,_0x3f3833(0xcb),this[_0x3f3833(0x269)][_0x3f3833(0xc8)](_0xd000e2['debounceTime'](_0x3feed0))),_0x1a27fd(this,_0x3f3833(0x181),_0x3207a9[_0x3f3833(0x212)]((_0x13bc86,_0x2f3026)=>{const _0x2135ff=_0x3f3833,_0x26abdf={'eventID':_0x3e7a87[_0x2135ff(0x158)][_0x2135ff(0x2a9)],'data':{'unitID':this['unitID'],'memberID':this[_0x2135ff(0x237)][_0x2135ff(0x206)](),'selection':_0x9b4b['serializeRangeWithSheet'](_0x13bc86,_0x2f3026[_0x2135ff(0xc9)])}};this[_0x2135ff(0x237)]['send'](_0x26abdf,this[_0x2135ff(0x299)]);},_0x1a97ae)),(this[_0x3f3833(0x299)]=_0x296a28,this['_session']=_0x573b14,this['_injector']=_0x45d3d5,this[_0x3f3833(0xd8)]=_0x51501e,this['_memberService']=_0x2e0df8,this[_0x3f3833(0x29f)]=_0x2ab1b2,this['_commandService']=_0x3a4a3e,this[_0x3f3833(0x19b)]=_0x2df3a3);}get['cursorInfo'](){const _0x5ea1a3=_0x258f24;return this[_0x5ea1a3(0x222)][_0x5ea1a3(0x284)]();}get[_0x258f24(0x1a7)](){const _0x3ad712=_0x258f24;return this[_0x3ad712(0x269)][_0x3ad712(0x284)]();}['dispose'](){const _0x28d31d=_0x258f24;super[_0x28d31d(0x2f2)](),this[_0x28d31d(0x222)][_0x28d31d(0x14b)](new Map()),this[_0x28d31d(0x222)][_0x28d31d(0x254)](),this['_roomMembers$'][_0x28d31d(0x14b)]([]),this[_0x28d31d(0x269)]['complete']();}[_0x258f24(0x119)](){const _0x337dd8=_0x258f24;this['_init']||(this['_init']=!0x0,this[_0x337dd8(0x237)][_0x337dd8(0x1b7)]['pipe'](_0xd000e2['takeUntil'](this['dispose$']))[_0x337dd8(0x185)](_0x124fe9=>{const _0x53d0c5=_0x337dd8;_0x124fe9===_0x1102c8['SessionStatus'][_0x53d0c5(0x164)]?this[_0x53d0c5(0x18a)]():this[_0x53d0c5(0x30d)]();}),this[_0x337dd8(0x237)][_0x337dd8(0x180)]['pipe'](_0xd000e2['takeUntil'](this[_0x337dd8(0x220)]))[_0x337dd8(0x185)](_0x3dd0ee=>{const _0x584df2=_0x337dd8,_0x2d3f3e=_0x3dd0ee[_0x584df2(0x13b)];_0x2d3f3e===_0x3e7a87[_0x584df2(0x158)][_0x584df2(0x2a9)]&&this[_0x584df2(0x10e)](_0x3dd0ee),_0x2d3f3e===_0x3e7a87[_0x584df2(0x158)][_0x584df2(0x20f)]&&this[_0x584df2(0x21d)](_0x3dd0ee);}),this[_0x337dd8(0x231)](),this[_0x337dd8(0x146)](this['_commandService'][_0x337dd8(0x287)](_0x2f1f64=>{const _0x3aed56=_0x337dd8;if(this[_0x3aed56(0x17a)]&&_0x2f1f64['id']===_0x4a8ed5[_0x3aed56(0x111)]['id']&&_0x2f1f64[_0x3aed56(0x1d0)][_0x3aed56(0xfc)]===this[_0x3aed56(0x299)]){const _0x3a77f9=_0x2f1f64['params'];this[_0x3aed56(0x181)](_0x3a77f9[_0x3aed56(0x184)],_0x3a77f9[_0x3aed56(0x1bf)][0x0]);}})));}[_0x258f24(0x10e)](_0x38bd4e){const _0x57b7e4=_0x258f24;var _0x3921f7,_0x521616;const {memberID:_0x828fec,selection:_0x42f64a}=_0x38bd4e[_0x57b7e4(0x1f7)],{sheetName:_0x227b73,range:_0xf55069}=_0x9b4b['deserializeRangeWithSheet'](_0x42f64a),_0x480bfc={'name':(_0x521616=(_0x3921f7=this[_0x57b7e4(0x92)][_0x57b7e4(0xb6)](this[_0x57b7e4(0x299)],_0x828fec))==null?void 0x0:_0x3921f7[_0x57b7e4(0x178)])!=null?_0x521616:_0x57b7e4(0x2be),'range':this['_getMergeRange'](_0x227b73,_0xf55069),'sheetID':_0x227b73,'color':this['_colorAssignService'][_0x57b7e4(0x267)](_0x828fec),'selection':_0x42f64a},_0x19c27b=this[_0x57b7e4(0xcd)];_0x19c27b['set'](_0x828fec,_0x480bfc),this[_0x57b7e4(0x222)][_0x57b7e4(0x14b)](_0x19c27b);}['_onCursorDelete'](_0x66dd4b){const _0x43c164=_0x258f24,{memberID:_0x458e7f}=_0x66dd4b[_0x43c164(0x1f7)],_0x443c31=this[_0x43c164(0xcd)];_0x443c31[_0x43c164(0x95)](_0x458e7f),this['_cursorInfo$'][_0x43c164(0x14b)](_0x443c31);}['_getMergeRange'](_0x7d4835,_0xa7cab7){const _0x5a476b=_0x258f24;var _0x5457ef,_0x544834;const _0x37a488=(_0x544834=(_0x5457ef=this[_0x5a476b(0x29f)][_0x5a476b(0x1c0)](this['unitID']))==null?void 0x0:_0x5457ef[_0x5a476b(0x11d)](_0x7d4835))==null?void 0x0:_0x544834[_0x5a476b(0x313)]();return(_0x37a488==null?void 0x0:_0x37a488[_0x5a476b(0x301)](_0x560452=>_0x3207a9['Rectangle'][_0x5a476b(0xc1)](_0x560452,_0xa7cab7)))||_0xa7cab7;}['_onRefRangeChange'](){const _0x2a875c=_0x258f24,_0xdcdc55=new _0x3207a9[(_0x2a875c(0x16c))](),_0x381fde=_0x30df03(),_0x6de332=()=>{const _0x34b2f2=_0x2a875c;_0xdcdc55[_0x34b2f2(0x2f2)]();const _0x192a95=(_0x1fd4d9,_0x563152,_0x2d1bb0,_0x732b25)=>{const _0xeda894=_0x34b2f2;let _0x30ea7d=[];switch(_0x1fd4d9['id']){case _0x4a8ed5['EffectRefRangId'][_0xeda894(0x1cd)]:{_0x30ea7d=_0x4a8ed5['handleDeleteRangeMoveLeft'](_0x1fd4d9,_0x732b25);break;}case _0x4a8ed5[_0xeda894(0x28d)][_0xeda894(0xe1)]:{_0x30ea7d=_0x4a8ed5[_0xeda894(0xc5)](_0x1fd4d9,_0x732b25);break;}case _0x4a8ed5[_0xeda894(0x28d)][_0xeda894(0x2b3)]:{_0x30ea7d=_0x4a8ed5[_0xeda894(0x1fa)](_0x1fd4d9,_0x732b25);break;}case _0x4a8ed5[_0xeda894(0x28d)]['InsertRangeMoveDownCommandId']:{_0x30ea7d=_0x4a8ed5[_0xeda894(0x285)](_0x1fd4d9,_0x732b25);break;}case _0x4a8ed5[_0xeda894(0x28d)][_0xeda894(0x2d2)]:{_0x30ea7d=_0x4a8ed5[_0xeda894(0x25a)](_0x1fd4d9,_0x732b25);break;}case _0x4a8ed5['EffectRefRangId']['InsertRowCommandId']:{_0x30ea7d=_0x4a8ed5['handleInsertRow'](_0x1fd4d9,_0x732b25);break;}case _0x4a8ed5[_0xeda894(0x28d)][_0xeda894(0x1ef)]:{_0x30ea7d=_0x4a8ed5[_0xeda894(0x165)](_0x1fd4d9,_0x732b25);break;}case _0x4a8ed5[_0xeda894(0x28d)][_0xeda894(0x1c2)]:{_0x30ea7d=_0x4a8ed5[_0xeda894(0x159)](_0x1fd4d9,_0x732b25);break;}case _0x4a8ed5[_0xeda894(0x28d)]['RemoveRowCommandId']:{_0x30ea7d=_0x4a8ed5['handleIRemoveRow'](_0x1fd4d9,_0x732b25);break;}}const _0x50cb43=_0x4a8ed5['runRefRangeMutations'](_0x30ea7d,_0x732b25),_0x14f19a=this[_0xeda894(0xcd)][_0xeda894(0x1e9)](_0x563152);if(_0x14f19a&&_0x50cb43){const _0x304438={..._0x14f19a,'range':_0x50cb43};this[_0xeda894(0xcd)][_0xeda894(0x2dc)](_0x563152,_0x304438),_0x381fde(()=>{const _0x2f86a2=_0xeda894,_0x5d5a19=this[_0x2f86a2(0x19b)]['registerRefRange'](_0x50cb43,_0x5c4678=>(_0x5d5a19[_0x2f86a2(0x2f2)](),_0x192a95(_0x5c4678,_0x563152,_0x2d1bb0,_0x50cb43)));_0xdcdc55[_0x2f86a2(0x13d)](_0x5d5a19);});}return{'redos':[],'undos':[]};};this[_0x34b2f2(0xcd)]['forEach']((_0x1ac2a4,_0x3594fe)=>{const _0x121707=_0x34b2f2,{range:_0x1f6e34,sheetID:_0x4c715c}=_0x1ac2a4,_0x371ed9=this[_0x121707(0x19b)][_0x121707(0x2cc)](_0x1f6e34,_0x59e75f=>(_0x371ed9['dispose'](),_0x192a95(_0x59e75f,_0x3594fe,_0x4c715c,_0x1f6e34)));_0xdcdc55[_0x121707(0x13d)](_0x371ed9);});};this[_0x2a875c(0x146)](_0x3207a9[_0x2a875c(0x102)](this[_0x2a875c(0x222)][_0x2a875c(0x185)](()=>{_0x6de332();})));}[_0x258f24(0x18a)](){const _0x2d14f5=_0x258f24;var _0x4b407c,_0xed2537;if(this[_0x2d14f5(0x17a)]=!0x0,((_0x4b407c=this[_0x2d14f5(0x29f)][_0x2d14f5(0xf1)]())==null?void 0x0:_0x4b407c[_0x2d14f5(0x266)]())!==this['unitID'])return;const _0x62f0a=(_0xed2537=this[_0x2d14f5(0xfe)][_0x2d14f5(0x1e9)](_0x4a8ed5['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0xed2537[0x0],_0x1e756d=this['_univerInstanceService']['getCurrentUnitForType'](_0x3207a9[_0x2d14f5(0x23d)][_0x2d14f5(0x2bf)])[_0x2d14f5(0x29e)]();_0x62f0a&&_0x1e756d&&this[_0x2d14f5(0x181)](_0x1e756d['getSheetId'](),_0x62f0a);}['_toggleOffline'](){const _0x1b4467=_0x258f24;this[_0x1b4467(0x17a)]=!0x1;}};_0x4bfd5a=_0x6a5ed4([_0x6c7efd(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9[_0x258f24(0x173)])),_0x6c7efd(0x3,_0x3207a9['Inject'](_0x3ec850)),_0x6c7efd(0x4,_0x3207a9[_0x258f24(0x1cc)](_0x1102c8[_0x258f24(0x1b6)])),_0x6c7efd(0x5,_0x3207a9['IUniverInstanceService']),_0x6c7efd(0x6,_0x3207a9[_0x258f24(0x105)]),_0x6c7efd(0x7,_0x3207a9[_0x258f24(0x1cc)](_0x4a8ed5['RefRangeService']))],_0x4bfd5a);var _0x4c7629=Object[_0x258f24(0x26f)],_0x4e75cb=(_0x4228c4,_0x3062a1,_0x51bd5a,_0x20f2eb)=>{const _0x15d5aa=_0x258f24;for(var _0x17713f=_0x20f2eb>0x1?void 0x0:_0x20f2eb?_0x4c7629(_0x3062a1,_0x51bd5a):_0x3062a1,_0x4c62a9=_0x4228c4[_0x15d5aa(0x2ee)]-0x1,_0x36f1c1;_0x4c62a9>=0x0;_0x4c62a9--)(_0x36f1c1=_0x4228c4[_0x4c62a9])&&(_0x17713f=_0x36f1c1(_0x17713f)||_0x17713f);return _0x17713f;},_0x13dbbf=(_0x3fdd65,_0x2e2368)=>(_0x316d1f,_0x5d6d35)=>_0x2e2368(_0x316d1f,_0x5d6d35,_0x3fdd65);let _0x35f21e=class extends _0x3207a9[_0x258f24(0x245)]{constructor(_0x555c32,_0x5cd9e5,_0xb80efd){const _0x379b85=_0x258f24;super(),_0x1a27fd(this,_0x379b85(0xf7),new Map()),_0x1a27fd(this,'_entityInit$',new _0xd000e2[(_0x379b85(0x19a))]()),(this['_univerInstanceService']=_0x555c32,this['_injector']=_0x5cd9e5,this[_0x379b85(0x2d4)]=_0xb80efd,this['_init']());}[_0x258f24(0x2f2)](){const _0xe161ee=_0x258f24;super[_0xe161ee(0x2f2)](),this['_entityInit$']['complete'](),this[_0xe161ee(0xf7)][_0xe161ee(0x19c)](_0x436934=>_0x436934[_0xe161ee(0x2f2)]());}['getCollabCursors$'](_0xb80d69){const _0x2cdf8b=_0x258f24;return this[_0x2cdf8b(0xf7)][_0x2cdf8b(0x17b)](_0xb80d69)?this[_0x2cdf8b(0xf7)][_0x2cdf8b(0x1e9)](_0xb80d69)[_0x2cdf8b(0x193)]:this[_0x2cdf8b(0x302)]['pipe'](_0xd000e2[_0x2cdf8b(0x88)](_0x46be3c=>_0x46be3c[_0x2cdf8b(0x299)]===_0xb80d69),_0xd000e2[_0x2cdf8b(0x12c)](_0x1f30a3=>_0x1f30a3[_0x2cdf8b(0x193)]));}[_0x258f24(0x154)](){const _0xe806ab=_0x258f24;this[_0xe806ab(0x29f)]['getTypeOfUnitAdded$'](_0x3207a9[_0xe806ab(0x23d)][_0xe806ab(0x2bf)])[_0xe806ab(0xc8)](_0xd000e2[_0xe806ab(0x1da)](this['dispose$']))['subscribe'](async _0x54162a=>{const _0x5a4947=_0xe806ab,_0x358c91=_0x54162a[_0x5a4947(0x266)](),_0x329865=await this[_0x5a4947(0xf0)](_0x358c91);this[_0x5a4947(0x302)][_0x5a4947(0x14b)](_0x329865),this[_0x5a4947(0xf7)][_0x5a4947(0x2dc)](_0x358c91,_0x329865);}),this[_0xe806ab(0x29f)][_0xe806ab(0x161)](_0x3207a9[_0xe806ab(0x23d)][_0xe806ab(0x97)])[_0xe806ab(0xc8)](_0xd000e2[_0xe806ab(0x1da)](this['dispose$']))['pipe'](_0xd000e2[_0xe806ab(0x88)](_0xfd68e=>!_0xfd68e[_0xe806ab(0x266)]()[_0xe806ab(0x2c0)]('__')))[_0xe806ab(0x185)](async _0x5b642b=>{const _0x44ff07=_0xe806ab,_0xeddd0=_0x5b642b[_0x44ff07(0x266)](),_0x2fcba4=await this['_startDocCollabCursor'](_0xeddd0);this['_entityInit$']['next'](_0x2fcba4),this['_entities'][_0x44ff07(0x2dc)](_0xeddd0,_0x2fcba4);}),_0xd000e2[_0xe806ab(0x26e)](this['_univerInstanceService'][_0xe806ab(0x145)](_0x3207a9[_0xe806ab(0x23d)][_0xe806ab(0x97)]),this[_0xe806ab(0x29f)][_0xe806ab(0x145)](_0x3207a9[_0xe806ab(0x23d)][_0xe806ab(0x2bf)]))[_0xe806ab(0xc8)](_0xd000e2[_0xe806ab(0x1da)](this[_0xe806ab(0x220)]))[_0xe806ab(0x185)](_0x390c27=>{const _0x19b3a9=_0xe806ab,_0x322297=_0x390c27[_0x19b3a9(0x266)](),_0x485246=this['_entities'][_0x19b3a9(0x1e9)](_0x322297);_0x485246&&(_0x485246['dispose'](),this['_entities'][_0x19b3a9(0x95)](_0x322297));});}async['_startSheetCollabCursor'](_0x5c97dd){const _0x4a8a2b=_0x258f24,_0x6e07bf=await this['_collabSessionService'][_0x4a8a2b(0x22e)](_0x5c97dd),_0x5769a6=this[_0x4a8a2b(0xfe)][_0x4a8a2b(0x205)](_0x4bfd5a,_0x5c97dd,_0x6e07bf);return _0x5769a6['init'](),_0x5769a6;}async[_0x258f24(0x186)](_0x250691){const _0x19a435=_0x258f24,_0x55ef77=await this[_0x19a435(0x2d4)][_0x19a435(0x22e)](_0x250691),_0xad136c=this['_injector'][_0x19a435(0x205)](_0x5cb765,_0x250691,_0x55ef77);return _0xad136c[_0x19a435(0x119)](),_0xad136c;}};_0x35f21e=_0x4e75cb([_0x13dbbf(0x0,_0x3207a9[_0x258f24(0x18d)]),_0x13dbbf(0x1,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9[_0x258f24(0x173)])),_0x13dbbf(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x1102c8[_0x258f24(0x249)]))],_0x35f21e);const _0x172baf=0x14,_0x211678=0xc8,_0x3ddd43=0x4,_0x5f55bf=0x5;function _0x3b98b3(_0x47023f,_0x35ede7){const _0x5e94e1=_0x258f24;let {radius:_0x442bfa,width:_0x115647,height:_0x110446}=_0x35ede7;_0x442bfa=_0x442bfa!=null?_0x442bfa:0x0,_0x115647=_0x115647!=null?_0x115647:0x1e,_0x110446=_0x110446!=null?_0x110446:0x1e;let _0x4d1b5e=0x0,_0xb89d83=0x0,_0x29755c=0x0;_0x4d1b5e=_0xb89d83=_0x29755c=Math[_0x5e94e1(0x1d9)](_0x442bfa,_0x115647/0x2,_0x110446/0x2),_0x47023f[_0x5e94e1(0x2ef)](),_0x47023f[_0x5e94e1(0x8d)](_0x4d1b5e,0x0),_0x47023f[_0x5e94e1(0x20a)](_0x115647-_0xb89d83,0x0),_0x47023f[_0x5e94e1(0x1f6)](_0x115647-_0xb89d83,_0xb89d83,_0xb89d83,Math['PI']*0x3/0x2,0x0,!0x1),_0x47023f[_0x5e94e1(0x20a)](_0x115647,_0x110446-_0x29755c),_0x47023f['arc'](_0x115647-_0x29755c,_0x110446-_0x29755c,_0x29755c,0x0,Math['PI']/0x2,!0x1),_0x47023f[_0x5e94e1(0x20a)](0x0,_0x110446),_0x47023f['lineTo'](0x0,_0x4d1b5e),_0x47023f[_0x5e94e1(0x1f6)](_0x4d1b5e,_0x4d1b5e,_0x4d1b5e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x47023f[_0x5e94e1(0xfd)](),_0x35ede7['fill']&&(_0x47023f['save'](),_0x47023f['fillStyle']=_0x35ede7[_0x5e94e1(0x81)],_0x35ede7[_0x5e94e1(0x2d7)]===_0x5e94e1(0x2c6)?_0x47023f[_0x5e94e1(0x81)](_0x5e94e1(0x2c6)):_0x47023f[_0x5e94e1(0x81)](),_0x47023f['restore']());}class _0x45a747 extends _0x2e888c[_0x258f24(0x219)]{constructor(_0x3de4da,_0x463e19){const _0x11ac79=_0x258f24;super(_0x3de4da,_0x463e19),_0x1a27fd(this,_0x11ac79(0xd1)),_0x1a27fd(this,_0x11ac79(0x216)),(this[_0x11ac79(0xd1)]=_0x463e19==null?void 0x0:_0x463e19['color'],this['text']=_0x463e19==null?void 0x0:_0x463e19[_0x11ac79(0x216)]);}static[_0x258f24(0x27e)](_0x8504a0,_0x3db03f){const _0x1f1717=_0x258f24,{text:_0x3e6e46,color:_0x4761eb}=_0x3db03f;_0x8504a0[_0x1f1717(0x144)](),_0x8504a0[_0x1f1717(0x1ae)]=_0x1f1717(0x2d9);const _0x47c608=_0x8504a0[_0x1f1717(0x177)](_0x3e6e46)['width'],_0x2a4374=Math[_0x1f1717(0x1d9)](_0x47c608+0x2*_0x3ddd43,_0x211678);_0x3b98b3(_0x8504a0,{'height':_0x172baf,'radius':0x4,'width':_0x2a4374,'fill':_0x4761eb}),_0x8504a0[_0x1f1717(0x2f5)]=_0x1f1717(0x85);const _0x558feb=_0x3ddd43,_0x42cff0=_0x172baf-_0x5f55bf,_0x895a81=_0x211678-0x2*_0x3ddd43;if(_0x47c608>_0x895a81){let _0x3af34c='',_0xfd07f=0x0;for(const _0x5cc5f1 of _0x3e6e46){const _0x56e3fc=_0x8504a0['measureText'](_0x5cc5f1)[_0x1f1717(0x23e)];if(_0xfd07f+_0x56e3fc<=_0x895a81-_0x8504a0['measureText']('...')[_0x1f1717(0x23e)])_0x3af34c+=_0x5cc5f1,_0xfd07f+=_0x56e3fc;else{_0x3af34c+=_0x1f1717(0x24d);break;}}_0x8504a0[_0x1f1717(0x192)](_0x3af34c,_0x558feb,_0x42cff0);}else _0x8504a0[_0x1f1717(0x192)](_0x3e6e46,_0x558feb,_0x42cff0);_0x8504a0['restore']();}[_0x258f24(0x307)](_0x2866bb){const _0x20fd41=_0x258f24;_0x45a747[_0x20fd41(0x27e)](_0x2866bb,this);}}const _0x37e56b='collab-text-anchor-',_0x582634=_0x258f24(0x1fd),_0x5c36e3=_0x258f24(0x278),_0xdef561=0x6,_0x5168c4=1.5,_0x3f2cb9=0x4,_0x1549b5=1.5,_0x1cee30=_0x258f24(0x1c3);class _0x113192{constructor(_0x4525e7,_0x135fba,_0x2edb9f,_0x34226a){const _0x14fc5d=_0x258f24;_0x1a27fd(this,_0x14fc5d(0x2a3),[]),_0x1a27fd(this,_0x14fc5d(0x27c),null),_0x1a27fd(this,_0x14fc5d(0x260),null),_0x1a27fd(this,_0x14fc5d(0x2de),null),_0x1a27fd(this,_0x14fc5d(0x2ec),null),_0x1a27fd(this,_0x14fc5d(0x226),null),(this[_0x14fc5d(0x10f)]=_0x4525e7,this[_0x14fc5d(0x202)]=_0x135fba,this['_docSkeleton']=_0x2edb9f,this[_0x14fc5d(0x113)]=_0x34226a,this[_0x14fc5d(0xd2)]());}set[_0x258f24(0x24c)](_0x2145a5){const _0x307ddd=_0x258f24;_0x2145a5?(this[_0x307ddd(0x2de)]&&this[_0x307ddd(0x2de)][_0x307ddd(0xcf)](),this['_textBubble']&&this[_0x307ddd(0x260)]['show']()):(this['_anchorDot']&&this[_0x307ddd(0x2de)][_0x307ddd(0x2fb)](),this[_0x307ddd(0x260)]&&this[_0x307ddd(0x260)][_0x307ddd(0xcf)]());}[_0x258f24(0x2f2)](){const _0x3111f2=_0x258f24;for(const _0x4b0c84 of this[_0x3111f2(0x2a3)])_0x4b0c84[_0x3111f2(0x2f2)]();this['_textBubble']&&this[_0x3111f2(0x260)]['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0x3111f2(0x27c)]&&this[_0x3111f2(0x27c)][_0x3111f2(0x2f2)](),this[_0x3111f2(0x226)]&&this[_0x3111f2(0x226)]();}[_0x258f24(0xd2)](){const _0x524d73=_0x258f24;var _0x322e00;const {_docSkeleton:_0x114fd5,_document:_0x5ba5db}=this,{color:_0x3d1100,name:_0xff0e3,ranges:_0x3b9b99}=this[_0x524d73(0x10f)],_0x8f51b=_0x5ba5db[_0x524d73(0x143)](),{docsLeft:_0xb59485,docsTop:_0x446435}=_0x8f51b,_0x69a5c7=new _0xcfa6df[(_0x524d73(0x274))](_0x8f51b,_0x114fd5);for(const {startOffset:_0x3edf5f,endOffset:_0x1c0062,rangeType:_0x1aff9c,segmentId:_0x47b992,segmentPage:_0x34d016,collapsed:_0xfa3ebd,isActive:_0x30dd43}of _0x3b9b99){const _0x2a9b7c=_0x114fd5[_0x524d73(0x294)](_0x3edf5f,!0x0,_0x47b992,_0x34d016);let _0x3f673a=_0x114fd5[_0x524d73(0x294)](_0x1c0062,!0x0,_0x47b992,_0x34d016);if(_0x3f673a==null&&(_0x3f673a=_0x114fd5[_0x524d73(0x294)](_0x1c0062-0x1,!0x1,_0x47b992,_0x34d016)),_0x30dd43){const {contentBoxPointGroup:_0x2d8d03}=_0x69a5c7[_0x524d73(0x238)](_0x3f673a,_0x3f673a);if(_0x2d8d03['length']===0x0)continue;this['_drawAnchor'](_0x3d1100,_0x2d8d03,_0xb59485,_0x446435,_0xff0e3),this['_eventUnsubscribe']=this[_0x524d73(0xe2)]();}if(_0x2a9b7c&&_0x3f673a){if(_0x1aff9c===_0x3207a9[_0x524d73(0x84)][_0x524d73(0x18c)]){const _0x4ab443=new _0xcfa6df[(_0x524d73(0x1df))](_0x8f51b,_0x114fd5),{pointGroup:_0x2b4548}=(_0x322e00=_0x4ab443[_0x524d73(0x238)](_0x2a9b7c,_0x3f673a))!=null?_0x322e00:{};if(_0x2b4548==null||_0x2b4548[_0x524d73(0x2ee)]===0x0)continue;this[_0x524d73(0x241)](_0x3d1100,_0x2b4548,_0xb59485,_0x446435);}else{if(!_0xfa3ebd){const {borderBoxPointGroup:_0x3f54a5}=_0x69a5c7[_0x524d73(0x238)](_0x2a9b7c,_0x3f673a);if(_0x3f54a5[_0x524d73(0x2ee)]===0x0)continue;this[_0x524d73(0xc2)](_0x3d1100,_0x3f54a5,_0xb59485,_0x446435);}}}}}[_0x258f24(0x236)](_0x5dd348,_0x588c3c,_0x182fc4,_0x47fecb,_0x26a432){const _0x51483d=_0x258f24,_0x10191e=this[_0x51483d(0x1be)](_0x588c3c),{left:_0x1b9899,top:_0x40e2f2,height:_0x241895}=_0x10191e,_0x59c064=this['_getScale'](),_0x37cc80=_0x1549b5/_0x59c064,_0x37972d=new _0x2e888c[(_0x51483d(0x1f3))](_0x37e56b+_0x3207a9[_0x51483d(0x310)][_0x51483d(0x1e8)](_0xdef561),{'left':_0x1b9899+_0x182fc4-_0x37cc80,'top':_0x40e2f2+_0x47fecb,'height':_0x241895,'width':_0x5168c4,'fill':_0x5dd348||_0x2e888c[_0x51483d(0x2bc)](_0x3207a9['COLORS'][_0x51483d(0x300)],0x0),'strokeWidth':_0x37cc80,'stroke':_0x1cee30,'evented':!0x0});this[_0x51483d(0x27c)]=_0x37972d,this[_0x51483d(0x202)]['addObject'](_0x37972d,_0xcfa6df[_0x51483d(0x22c)]);const _0x4329f7=new _0x2e888c[(_0x51483d(0x1f3))](_0x37e56b+_0x3207a9[_0x51483d(0x310)][_0x51483d(0x1e8)](_0xdef561),{'left':_0x1b9899+_0x182fc4-_0x37cc80,'top':_0x40e2f2+_0x47fecb-_0x3f2cb9/0x2,'height':_0x3f2cb9,'width':_0x3f2cb9,'fill':_0x5dd348||_0x2e888c[_0x51483d(0x2bc)](_0x3207a9[_0x51483d(0xb3)][_0x51483d(0x300)],0x0),'strokeWidth':0x0,'stroke':_0x5dd348||_0x2e888c['getColor'](_0x3207a9[_0x51483d(0xb3)][_0x51483d(0x300)],0x0),'evented':!0x1});this[_0x51483d(0x2de)]=_0x4329f7,this[_0x51483d(0x202)][_0x51483d(0x232)](_0x4329f7,_0xcfa6df[_0x51483d(0x22c)]);const _0x16dc50=new _0x45a747(_0x37e56b+_0x3207a9[_0x51483d(0x310)][_0x51483d(0x1e8)](_0xdef561),{'left':_0x1b9899+_0x182fc4-_0x37cc80,'top':_0x40e2f2+_0x47fecb-_0x172baf,'text':_0x26a432,'color':_0x5dd348});this['_textBubble']=_0x16dc50,this['_scene'][_0x51483d(0x232)](_0x16dc50,_0xcfa6df[_0x51483d(0x22c)]),this['_hover']=!0x1;}['_handleHover'](){const _0x5820bc=_0x258f24,_0x5a6b45=this[_0x5820bc(0x27c)][_0x5820bc(0x23b)]['subscribeEvent'](()=>{const _0x21d3f6=_0x5820bc;this[_0x21d3f6(0x24c)]=!0x0;}),_0x3ded21=this['_anchor'][_0x5820bc(0x250)][_0x5820bc(0xb7)](()=>{const _0x47f558=_0x5820bc;this[_0x47f558(0x2ec)]&&clearTimeout(this[_0x47f558(0x2ec)]),this[_0x47f558(0x2ec)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x57a4d9=_0x5820bc;_0x5a6b45[_0x57a4d9(0x207)](),_0x3ded21['unsubscribe']();};}[_0x258f24(0xc2)](_0x341c63,_0x27c550,_0x3594b7,_0x537bb5){const _0x133390=_0x258f24,_0x1d2564=new _0x3207a9['ColorKit'](_0x341c63)[_0x133390(0x2b7)](0.2)['toRgbString'](),_0x3bb9a2=new _0x2e888c[(_0x133390(0x1d8))](_0x582634+_0x3207a9[_0x133390(0x310)]['generateRandomId'](_0xdef561),{'pointsGroup':_0x27c550,'fill':_0x1d2564||_0x2e888c[_0x133390(0x2bc)](_0x3207a9['COLORS'][_0x133390(0x300)],0.2),'left':_0x3594b7,'top':_0x537bb5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x133390(0x2a3)][_0x133390(0x1ac)](_0x3bb9a2),this[_0x133390(0x202)]['addObject'](_0x3bb9a2,_0xcfa6df[_0x133390(0x22c)]);}[_0x258f24(0x241)](_0x349ce8,_0x1c1296,_0x150002,_0x30d1f1){const _0x59698f=_0x258f24,_0x5091a9=new _0x3207a9[(_0x59698f(0x2a5))](_0x349ce8)[_0x59698f(0x2b7)](0.2)[_0x59698f(0x312)](),_0x5f5884=new _0x2e888c['RegularPolygon'](_0x5c36e3+_0x3207a9[_0x59698f(0x310)]['generateRandomId'](_0xdef561),{'pointsGroup':_0x1c1296,'fill':_0x5091a9||_0x2e888c[_0x59698f(0x2bc)](_0x3207a9['COLORS'][_0x59698f(0x300)],0.2),'left':_0x150002,'top':_0x30d1f1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x59698f(0x2a3)][_0x59698f(0x1ac)](_0x5f5884),this[_0x59698f(0x202)]['addObject'](_0x5f5884,_0xcfa6df['TEXT_RANGE_LAYER_INDEX']);}[_0x258f24(0x1be)](_0x5e2bbe){const _0x3bbd09=_0x5e2bbe[0x0],_0x5c2235=_0x3bbd09[0x0],_0x4899d8=_0x3bbd09[0x2],{x:_0x4b3a65,y:_0x508bb6}=_0x5c2235,{x:_0x1bfcf6,y:_0x1d2c79}=_0x4899d8;return{'left':_0x4b3a65,'top':_0x508bb6,'width':_0x1bfcf6-_0x4b3a65,'height':_0x1d2c79-_0x508bb6};}[_0x258f24(0x139)](){const _0x2bcb6b=_0x258f24,{scaleX:_0x45eb5c,scaleY:_0x2a8098}=this[_0x2bcb6b(0x202)][_0x2bcb6b(0x2eb)]();return Math[_0x2bcb6b(0xeb)](_0x45eb5c,_0x2a8098);}}var _0x288b35=Object[_0x258f24(0x26f)],_0x415408=(_0x240b0f,_0x3f749f,_0x50d159,_0x3527be)=>{for(var _0x177512=_0x3527be>0x1?void 0x0:_0x3527be?_0x288b35(_0x3f749f,_0x50d159):_0x3f749f,_0x34aab3=_0x240b0f['length']-0x1,_0x5d917f;_0x34aab3>=0x0;_0x34aab3--)(_0x5d917f=_0x240b0f[_0x34aab3])&&(_0x177512=_0x5d917f(_0x177512)||_0x177512);return _0x177512;},_0x670455=(_0x54a8a3,_0x369d5c)=>(_0x7e928,_0x2a49f5)=>_0x369d5c(_0x7e928,_0x2a49f5,_0x54a8a3);let _0x137949=class extends _0x3207a9[_0x258f24(0x245)]{constructor(_0x3c67e6,_0x317901,_0x5a928f,_0x2d35cf,_0x4cc0e1){const _0x3770b1=_0x258f24;super(),_0x1a27fd(this,'_cursorShapes',[]),_0x1a27fd(this,'_cursors',[]),(this[_0x3770b1(0x2c8)]=_0x3c67e6,this[_0x3770b1(0x24b)]=_0x317901,this[_0x3770b1(0x134)]=_0x5a928f,this['_commandService']=_0x2d35cf,this[_0x3770b1(0x11b)]=_0x4cc0e1,this[_0x3770b1(0x154)]());}['_init'](){const _0x1eaa8e=_0x258f24,_0x4048fe=this[_0x1eaa8e(0x2c8)][_0x1eaa8e(0xfc)],_0x3d7a82=this[_0x1eaa8e(0x24b)];this[_0x1eaa8e(0x146)](_0xd000e2[_0x1eaa8e(0x1ab)]([this[_0x1eaa8e(0x134)][_0x1eaa8e(0x15c)](_0x4048fe),this['_themeService'][_0x1eaa8e(0x1bc)]])['pipe'](_0x3314d0[_0x1eaa8e(0xa5)](([_0x2e8e65,_0x8d3e0])=>({'skeleton':_0x3d7a82['getSkeleton'](),'cursors':[..._0x2e8e65['values']()]['flatMap'](_0x3601bf=>({..._0x3601bf,'color':_0x8d3e0[_0x3601bf[_0x1eaa8e(0xd1)]]}))})))['subscribe'](_0x58790e=>{const _0x5e5f50=_0x1eaa8e;if(this[_0x5e5f50(0x1e3)](),_0x58790e){const {skeleton:_0xf781d0,cursors:_0xd57b11}=_0x58790e;this['_updateCollabCursors'](_0xf781d0,_0xd57b11);}})),this['_initResize'](),this[_0x1eaa8e(0xa0)]();}[_0x258f24(0xfa)](_0x211aa8,_0x5cd4d3){const _0x389e8e=_0x258f24,{scene:_0x19eee0,mainComponent:_0x26eaaf}=this[_0x389e8e(0x2c8)],_0x37eaa5=_0x5cd4d3[_0x389e8e(0xa5)](_0x191c3c=>new _0x113192(_0x191c3c,_0x19eee0,_0x211aa8,_0x26eaaf));this[_0x389e8e(0x1b2)]=_0x37eaa5,this['_cursors']=_0x5cd4d3;}[_0x258f24(0x2fa)](){const _0x55dc01=_0x258f24;this[_0x55dc01(0x1e3)]();const {scene:_0x1a4138,mainComponent:_0x4f42d3}=this[_0x55dc01(0x2c8)],_0x2c98ad=this[_0x55dc01(0x24b)][_0x55dc01(0x1ce)](),_0x23d61e=this[_0x55dc01(0x9e)][_0x55dc01(0xa5)](_0x43fe08=>new _0x113192(_0x43fe08,_0x1a4138,_0x2c98ad,_0x4f42d3));this[_0x55dc01(0x1b2)]=_0x23d61e;}[_0x258f24(0x1e3)](){const _0x48eada=_0x258f24;this[_0x48eada(0x1b2)][_0x48eada(0x19c)](_0x44255b=>_0x44255b[_0x48eada(0x2f2)]()),this['_cursorShapes']=[];}[_0x258f24(0xa0)](){const _0x58f2aa=_0x258f24,_0x2685b1=[_0xcfa6df[_0x58f2aa(0x21b)]['id']];this[_0x58f2aa(0x146)](this['_commandService'][_0x58f2aa(0x287)](_0x476fb5=>{const _0x56af37=_0x58f2aa;_0x2685b1['includes'](_0x476fb5['id'])&&_0x476fb5[_0x56af37(0x1d0)][_0x56af37(0xfc)]===this[_0x56af37(0x2c8)][_0x56af37(0xfc)]&&this[_0x56af37(0x2fa)]();}));}['_initResize'](){const _0x265038=_0x258f24;this[_0x265038(0x146)](_0x3207a9[_0x265038(0x135)](this[_0x265038(0x2c8)]['engine'][_0x265038(0x9f)])[_0x265038(0xc8)](_0x3314d0[_0x265038(0x88)](_0x41fb07=>_0x41fb07[_0x265038(0x2e1)]===_0x2e888c[_0x265038(0x30a)][_0x265038(0xb5)]),_0x3314d0['throttleTime'](0x10))[_0x265038(0x185)](()=>{const _0x46f642=_0x265038;this[_0x46f642(0x2fa)]();}));}};_0x137949=_0x415408([_0x670455(0x1,_0x3207a9[_0x258f24(0x1cc)](_0xca2427[_0x258f24(0xb2)])),_0x670455(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x35f21e)),_0x670455(0x3,_0x3207a9[_0x258f24(0x105)]),_0x670455(0x4,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9[_0x258f24(0x172)]))],_0x137949);const _0x1d56bd=0x1,_0x40d5ed=1.5;class _0x395e33 extends _0x2e888c[_0x258f24(0x219)]{constructor(_0x14322c,_0x5c065e){const _0x29e07d=_0x258f24;super(_0x14322c,_0x5c065e),_0x1a27fd(this,_0x29e07d(0x24e)),_0x1a27fd(this,_0x29e07d(0x1d3),!0x1),_0x1a27fd(this,_0x29e07d(0x255)),_0x1a27fd(this,_0x29e07d(0x221),''),_0x1a27fd(this,_0x29e07d(0x293),_0x29e07d(0x11c)),_0x1a27fd(this,_0x29e07d(0x23f)),(_0x5c065e&&this[_0x29e07d(0x248)](_0x5c065e),this['onPointerEnter$'][_0x29e07d(0xb7)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x29e07d(0x250)][_0x29e07d(0xb7)](()=>this[_0x29e07d(0x248)]({'hovered':!0x1})));}[_0x258f24(0x248)](_0x4a7ed2){const _0x2feda2=_0x258f24;var _0x495ed4,_0x4218e9,_0x3917bc,_0xeed890,_0x1f2e41,_0x29cf6d;this[_0x2feda2(0x24e)]=(_0x495ed4=_0x4a7ed2[_0x2feda2(0xd1)])!=null?_0x495ed4:this['_color'],this[_0x2feda2(0x1d3)]=(_0x4218e9=_0x4a7ed2['hovered'])!=null?_0x4218e9:this[_0x2feda2(0x1d3)],this[_0x2feda2(0x255)]=(_0x3917bc=_0x4a7ed2[_0x2feda2(0xc9)])!=null?_0x3917bc:this[_0x2feda2(0x255)],this[_0x2feda2(0x221)]=(_0xeed890=_0x4a7ed2[_0x2feda2(0x178)])!=null?_0xeed890:this[_0x2feda2(0x221)],this[_0x2feda2(0x293)]=(_0x1f2e41=_0x4a7ed2['labelPosition'])!=null?_0x1f2e41:this[_0x2feda2(0x293)],this[_0x2feda2(0x23f)]=(_0x29cf6d=_0x4a7ed2[_0x2feda2(0x227)])!=null?_0x29cf6d:this[_0x2feda2(0x23f)],this[_0x2feda2(0x133)]({'width':_0x4a7ed2[_0x2feda2(0x23e)],'height':_0x4a7ed2[_0x2feda2(0x15f)]});}[_0x258f24(0x246)](_0x1b22b5){const _0x461d93=_0x258f24,{row:_0x402c59,column:_0x6a87dd}=_0x1b22b5;if(_0x402c59>=this[_0x461d93(0x255)][_0x461d93(0x10b)]&&_0x402c59<=this[_0x461d93(0x255)][_0x461d93(0x148)]&&_0x6a87dd>=this[_0x461d93(0x255)][_0x461d93(0x1eb)]&&_0x6a87dd<=this[_0x461d93(0x255)][_0x461d93(0x7a)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x461d93(0x248)]({'hovered':!0x1});}[_0x258f24(0x18f)](_0x503743){return!0x1;}[_0x258f24(0x307)](_0x4d26ea){const _0x2010a6=_0x258f24;_0x2e888c[_0x2010a6(0x1f3)][_0x2010a6(0x27e)](_0x4d26ea,{'width':this[_0x2010a6(0x23e)],'height':this[_0x2010a6(0x15f)],'strokeWidth':_0x40d5ed,'stroke':this[_0x2010a6(0x24e)],'evented':!0x1,'fill':this[_0x2010a6(0x23f)]}),this['_hovered']&&(_0x4d26ea[_0x2010a6(0x144)](),_0x4d26ea[_0x2010a6(0x261)](0x1,0x0,0x0,0x1,this[_0x2010a6(0x23e)],this[_0x2010a6(0x293)]===_0x2010a6(0xec)?0x0:-0x14),_0x45a747['drawWith'](_0x4d26ea,{'text':this[_0x2010a6(0x221)],'color':this[_0x2010a6(0x24e)]}),_0x4d26ea['restore']());}}var _0x57a2bf=Object['getOwnPropertyDescriptor'],_0x2c145b=(_0x303d74,_0x18105a,_0x2d740c,_0x1ee099)=>{const _0x38c432=_0x258f24;for(var _0x4a9ab8=_0x1ee099>0x1?void 0x0:_0x1ee099?_0x57a2bf(_0x18105a,_0x2d740c):_0x18105a,_0x148e42=_0x303d74[_0x38c432(0x2ee)]-0x1,_0x228760;_0x148e42>=0x0;_0x148e42--)(_0x228760=_0x303d74[_0x148e42])&&(_0x4a9ab8=_0x228760(_0x4a9ab8)||_0x4a9ab8);return _0x4a9ab8;},_0x1132da=(_0x492dbb,_0x25688a)=>(_0x20f624,_0x31e0ea)=>_0x25688a(_0x20f624,_0x31e0ea,_0x492dbb);const _0x2c6e6f=0x1389;let _0x445646=class extends _0x3207a9[_0x258f24(0x245)]{constructor(_0x5d3be3,_0x3cfe0b,_0xf85e08,_0x597b99){const _0xe277d=_0x258f24;super(),_0x1a27fd(this,'_cursors',new Set()),_0x1a27fd(this,_0xe277d(0x2fd),null),(this[_0xe277d(0x2c8)]=_0x5d3be3,this[_0xe277d(0xbd)]=_0x3cfe0b,this['_collabCursorController']=_0xf85e08,this['_themeService']=_0x597b99,this[_0xe277d(0x154)]());}[_0x258f24(0x154)](){const _0x51e4ed=_0x258f24;this[_0x51e4ed(0xbd)]['currentSkeleton$'][_0x51e4ed(0xc8)](_0x3314d0[_0x51e4ed(0x1da)](this['dispose$']),_0x3314d0[_0x51e4ed(0x12c)](_0x3237bd=>{const _0x77d9d8=_0x51e4ed;if(_0x3237bd){const _0x14d0ee=_0x3237bd['sheetId'];return _0xd000e2[_0x77d9d8(0x1ab)](this['_collabCursorController'][_0x77d9d8(0x15c)](this[_0x77d9d8(0x2c8)][_0x77d9d8(0xfc)]),this[_0x77d9d8(0x11b)][_0x77d9d8(0x1bc)])[_0x77d9d8(0xc8)](_0x3314d0[_0x77d9d8(0xa5)](([_0x268997,_0x6fa1c3])=>{const _0x33db1b=new Map();return _0x268997['forEach']((_0x128710,_0x150a2d)=>{const _0x449437=_0x201c;if(_0x128710['sheetID']===_0x14d0ee){const _0x39d6f4={..._0x128710};_0x39d6f4[_0x449437(0xd1)]=_0x6fa1c3[_0x128710[_0x449437(0xd1)]],_0x33db1b['set'](_0x150a2d,_0x39d6f4);}}),{'skeleton':_0x3237bd,'cursors':_0x33db1b};}));}return _0xd000e2['of']({'skeleton':null,'cursors':new Map()});}))[_0x51e4ed(0x185)](({skeleton:_0x41a6ac,cursors:_0x33b1d7})=>{const _0x1f3ce0=_0x51e4ed;this[_0x1f3ce0(0x1e3)](),_0x41a6ac&&this[_0x1f3ce0(0xfa)](_0x41a6ac,_0x33b1d7);}),this[_0x51e4ed(0xbd)]['currentSkeleton$'][_0x51e4ed(0x185)](_0x441979=>{const _0xbc19c5=_0x51e4ed;if(_0x441979==null)return;const {skeleton:_0xd93ac}=_0x441979,{scene:_0x2e0c7c}=this[_0xbc19c5(0x2c8)];_0x2e0c7c['onPointerMove$'][_0xbc19c5(0xb7)](_0x3207a9[_0xbc19c5(0x212)](_0x3dec9b=>{const _0x2329f1=_0xbc19c5;var _0x51c5d5,_0xf403a4;const {offsetX:_0x1641d2,offsetY:_0x4b8fad}=_0x3dec9b,{x:_0x203939,y:_0x536f54}=_0x2e0c7c[_0x2329f1(0x198)](_0x2e888c[_0x2329f1(0x190)][_0x2329f1(0x1d7)]([_0x1641d2,_0x4b8fad])),{scaleX:_0x42b7a2,scaleY:_0x2b88b1}=_0x2e0c7c[_0x2329f1(0x2eb)](),_0x5c12fd=_0x2e0c7c['getViewport'](_0x2e888c[_0x2329f1(0xb1)]['VIEW_MAIN']),_0x29b69a=_0x2e0c7c['getVpScrollXYInfoByPosToVp'](_0x2e888c[_0x2329f1(0x190)][_0x2329f1(0x1d7)]([_0x203939,_0x536f54]),_0x5c12fd),_0x2dd371=_0xd93ac['getCellPositionByOffset'](_0x1641d2,_0x4b8fad,_0x42b7a2,_0x2b88b1,_0x29b69a);((_0x51c5d5=this[_0x2329f1(0x2fd)])==null?void 0x0:_0x51c5d5[_0x2329f1(0x127)])===_0x2dd371['column']&&((_0xf403a4=this[_0x2329f1(0x2fd)])==null?void 0x0:_0xf403a4[_0x2329f1(0xdc)])===_0x2dd371[_0x2329f1(0xdc)]||this[_0x2329f1(0x9e)][_0x2329f1(0x19c)](_0x57ff88=>{const _0x38dda5=_0x2329f1;_0x57ff88[_0x38dda5(0x246)](_0x2dd371);});},0x64));});}[_0x258f24(0xfa)](_0x2fb26c,_0xc7093f){const _0x3a5334=_0x258f24;var _0x3eddb9;const _0x3e3e9d=(_0x3eddb9=this[_0x3a5334(0xbd)][_0x3a5334(0xf6)]())==null?void 0x0:_0x3eddb9[_0x3a5334(0x2d1)];if(!_0x3e3e9d)return;const _0x4b0f82=this[_0x3a5334(0x2a7)]();if(!_0x4b0f82)return;this[_0x3a5334(0x9e)]['forEach'](_0x63b653=>{_0x63b653['makeDirty']();});const {scene:_0x3a5c69}=_0x4b0f82,_0x294df4=_0x37e7e0(Array[_0x3a5334(0x2cd)](_0xc7093f['values']()))['map'](_0x4dd545=>{const _0x220178=_0x3a5334,{color:_0x21ec15,range:_0x52caf7,name:_0x1b9584,selection:_0x40d835,sheetID:_0x3e250f}=_0x4dd545,{startColumn:_0x4e0035,startRow:_0x3e515b,endColumn:_0x29209c,endRow:_0x4a5c3c}=_0x52caf7,_0x9a81d7=_0x5f0a59[_0x220178(0x137)](_0x3e515b,_0x4e0035,_0x3a5c69,_0x3e3e9d),_0x5701e7=_0x5f0a59[_0x220178(0x137)](_0x4a5c3c,_0x29209c,_0x3a5c69,_0x3e3e9d),{columnHeaderHeightAndMarginTop:_0x20c916}=_0x3e3e9d,{startX:_0x4bfafb,startY:_0x2c78b6}=_0x9a81d7,{endX:_0x957e4d,endY:_0x5198a1}=_0x5701e7,_0x57924b=_0x957e4d-_0x4bfafb,_0x41f4f5=_0x5198a1-_0x2c78b6,_0x3b0b9c={'labelPosition':_0x2c78b6-_0x20c916>=_0x172baf?_0x220178(0x11c):'bottom','sheetID':_0x3e250f,'range':_0x52caf7,'color':_0x21ec15,'name':_0x1b9584,'selection':_0x40d835,'left':_0x4bfafb,'top':_0x2c78b6,'width':_0x57924b,'height':_0x41f4f5,'evented':!0x1,'zIndex':_0x2c6e6f};return new _0x395e33(_0x1b9584,_0x3b0b9c);});_0x3a5c69[_0x3a5334(0x94)](_0x294df4,_0x1d56bd),this['_cursors']=new Set(_0x294df4);}[_0x258f24(0x1e3)](){const _0x10bdc9=_0x258f24;var _0x1ea043;(_0x1ea043=this[_0x10bdc9(0x9e)])==null||_0x1ea043[_0x10bdc9(0x19c)](_0x329a95=>_0x329a95[_0x10bdc9(0x2f2)]());}[_0x258f24(0x2a7)](){const _0x393faa=_0x258f24;return _0x5f0a59[_0x393faa(0x1dc)](this['_context'][_0x393faa(0x2c3)],this[_0x393faa(0x2c8)]);}};_0x445646=_0x2c145b([_0x1132da(0x1,_0x3207a9['Inject'](_0x5f0a59[_0x258f24(0x90)])),_0x1132da(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x35f21e)),_0x1132da(0x3,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9['ThemeService']))],_0x445646);function _0x37e7e0(_0x2c9df0){const _0x9ff6e1=_0x258f24,_0x53ceaf=new Map();return _0x2c9df0['forEach'](_0x990ccc=>{const _0x151895=_0x201c;if(_0x53ceaf[_0x151895(0x17b)](_0x990ccc['selection'])){const _0x158f18=_0x53ceaf[_0x151895(0x1e9)](_0x990ccc[_0x151895(0x2c5)]);_0x158f18[_0x151895(0x178)]+=',\x20'+_0x990ccc[_0x151895(0x178)];}else _0x53ceaf['set'](_0x990ccc[_0x151895(0x2c5)],_0x990ccc);}),Array[_0x9ff6e1(0x2cd)](_0x53ceaf[_0x9ff6e1(0x170)]());}var _0x1eba68=function(){const _0x113a2a=_0x258f24;return _0x1eba68=Object[_0x113a2a(0x7e)]||function(_0x5d8523){const _0x1e708c=_0x113a2a;for(var _0x4e97b5,_0xba49b1=0x1,_0x2915a9=arguments[_0x1e708c(0x2ee)];_0xba49b1<_0x2915a9;_0xba49b1++){_0x4e97b5=arguments[_0xba49b1];for(var _0x362d8d in _0x4e97b5)Object[_0x1e708c(0xde)][_0x1e708c(0xee)]['call'](_0x4e97b5,_0x362d8d)&&(_0x5d8523[_0x362d8d]=_0x4e97b5[_0x362d8d]);}return _0x5d8523;},_0x1eba68[_0x113a2a(0x11a)](this,arguments);},_0x17233f=function(_0x281f67,_0x41f137){const _0x12260e=_0x258f24;var _0x29bd12={};for(var _0x31f803 in _0x281f67)Object[_0x12260e(0xde)][_0x12260e(0xee)][_0x12260e(0x1dd)](_0x281f67,_0x31f803)&&_0x41f137[_0x12260e(0xac)](_0x31f803)<0x0&&(_0x29bd12[_0x31f803]=_0x281f67[_0x31f803]);if(_0x281f67!=null&&typeof Object[_0x12260e(0x210)]==_0x12260e(0x9c)){for(var _0x2e2c93=0x0,_0x31f803=Object[_0x12260e(0x210)](_0x281f67);_0x2e2c93<_0x31f803['length'];_0x2e2c93++)_0x41f137[_0x12260e(0xac)](_0x31f803[_0x2e2c93])<0x0&&Object['prototype'][_0x12260e(0xca)][_0x12260e(0x1dd)](_0x281f67,_0x31f803[_0x2e2c93])&&(_0x29bd12[_0x31f803[_0x2e2c93]]=_0x281f67[_0x31f803[_0x2e2c93]]);}return _0x29bd12;},_0x4f9a87=_0x470d28[_0x258f24(0x211)](function(_0x389803,_0x23a66c){const _0x133d88=_0x258f24;var _0x4fe8ef=_0x389803['icon'],_0x41a358=_0x389803['id'],_0x4b35ba=_0x389803[_0x133d88(0x13e)],_0x3cc4c3=_0x389803[_0x133d88(0x100)],_0x3ac4c9=_0x17233f(_0x389803,[_0x133d88(0x282),'id',_0x133d88(0x13e),_0x133d88(0x100)]),_0x597b65='univerjs-icon\x20univerjs-icon-'['concat'](_0x41a358,'\x20')['concat'](_0x4b35ba||'')[_0x133d88(0x21f)](),_0x3b46d7=_0x470d28['useRef']('_'[_0x133d88(0xdb)](_0x4863c3()));return _0x403c11(_0x4fe8ef,''[_0x133d88(0xdb)](_0x41a358),{'defIds':_0x4fe8ef[_0x133d88(0x1c8)],'idSuffix':_0x3b46d7[_0x133d88(0x2ff)]},_0x1eba68({'ref':_0x23a66c,'className':_0x597b65},_0x3ac4c9),_0x3cc4c3);});function _0x403c11(_0x33108e,_0x5685a8,_0x596ee3,_0xcee1b7,_0x502e41){const _0x7e99b0=_0x258f24;return _0x470d28[_0x7e99b0(0x26c)](_0x33108e['tag'],_0x1eba68(_0x1eba68({'key':_0x5685a8},_0x15d5b4(_0x33108e,_0x596ee3,_0x502e41)),_0xcee1b7),(_0xf73f9c(_0x33108e,_0x596ee3)[_0x7e99b0(0x228)]||[])[_0x7e99b0(0xa5)](function(_0x3ba632,_0x1db7ae){const _0x40e06f=_0x7e99b0;return _0x403c11(_0x3ba632,''['concat'](_0x5685a8,'-')[_0x40e06f(0xdb)](_0x33108e[_0x40e06f(0x2df)],'-')[_0x40e06f(0xdb)](_0x1db7ae),_0x596ee3,void 0x0,_0x502e41);}));}function _0x15d5b4(_0x2f1ec0,_0x29c3f1,_0x196145){const _0x3d8dc5=_0x258f24;var _0xc074b5=_0x1eba68({},_0x2f1ec0['attrs']);_0x196145!=null&&_0x196145[_0x3d8dc5(0x87)]&&_0xc074b5[_0x3d8dc5(0x81)]===_0x3d8dc5(0x87)&&(_0xc074b5[_0x3d8dc5(0x81)]=_0x196145['colorChannel1']),_0x2f1ec0[_0x3d8dc5(0x2df)]==='mask'&&_0xc074b5['id']&&(_0xc074b5['id']=_0xc074b5['id']+_0x29c3f1[_0x3d8dc5(0x2c1)]),Object[_0x3d8dc5(0x203)](_0xc074b5)[_0x3d8dc5(0x19c)](function(_0x297661){const _0x1228bd=_0x3d8dc5;var _0x30a899=_0x297661[0x0],_0xa6a8e3=_0x297661[0x1];_0x30a899===_0x1228bd(0x1f5)&&typeof _0xa6a8e3==_0x1228bd(0x18e)&&(_0xc074b5[_0x30a899]=_0xa6a8e3['replace'](/url\(#(.*)\)/,_0x1228bd(0x2b8)['concat'](_0x29c3f1['idSuffix'],')')));});var _0x26ac70=_0x29c3f1[_0x3d8dc5(0x1c8)];return!_0x26ac70||_0x26ac70[_0x3d8dc5(0x2ee)]===0x0||(_0x2f1ec0[_0x3d8dc5(0x2df)]==='use'&&_0xc074b5['xlink:href']&&(_0xc074b5['xlink:href']=_0xc074b5['xlink:href']+_0x29c3f1['idSuffix']),Object['entries'](_0xc074b5)[_0x3d8dc5(0x19c)](function(_0x4d277e){const _0x2378db=_0x3d8dc5;var _0xd189e5=_0x4d277e[0x0],_0x352549=_0x4d277e[0x1];typeof _0x352549==_0x2378db(0x18e)&&(_0xc074b5[_0xd189e5]=_0x352549[_0x2378db(0x2af)](/url\(#(.*)\)/,'url(#$1'[_0x2378db(0xdb)](_0x29c3f1[_0x2378db(0x2c1)],')')));})),_0xc074b5;}function _0xf73f9c(_0x1a42ee,_0x11fc7c){const _0x2d2c92=_0x258f24;var _0x23e3c5,_0x56fc10=_0x11fc7c[_0x2d2c92(0x1c8)];return!_0x56fc10||_0x56fc10[_0x2d2c92(0x2ee)]===0x0?_0x1a42ee:_0x1a42ee[_0x2d2c92(0x2df)]==='defs'&&(!((_0x23e3c5=_0x1a42ee[_0x2d2c92(0x228)])===null||_0x23e3c5===void 0x0)&&_0x23e3c5[_0x2d2c92(0x2ee)])?_0x1eba68(_0x1eba68({},_0x1a42ee),{'children':_0x1a42ee['children']['map'](function(_0x2414a2){const _0xf02bd0=_0x2d2c92;return typeof _0x2414a2[_0xf02bd0(0xd5)]['id']==_0xf02bd0(0x18e)&&_0x56fc10&&_0x56fc10['indexOf'](_0x2414a2[_0xf02bd0(0xd5)]['id'])>-0x1?_0x1eba68(_0x1eba68({},_0x2414a2),{'attrs':_0x1eba68(_0x1eba68({},_0x2414a2[_0xf02bd0(0xd5)]),{'id':_0x2414a2[_0xf02bd0(0xd5)]['id']+_0x11fc7c['idSuffix']})}):_0x2414a2;})}):_0x1a42ee;}function _0x4863c3(){const _0x1971e8=_0x258f24;return Math[_0x1971e8(0x2d5)]()[_0x1971e8(0x2b2)](0x24)[_0x1971e8(0xd4)](0x2,0x8);}_0x4f9a87[_0x258f24(0xaf)]='UniverIcon';var _0x1f84b8={'tag':_0x258f24(0x296),'attrs':{'fill':_0x258f24(0x1f9),'viewBox':_0x258f24(0x1e0),'width':_0x258f24(0x208),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x258f24(0x8c),'attrs':{'stroke':'currentColor','d':_0x258f24(0x25f),'strokeLinecap':_0x258f24(0x279),'strokeLinejoin':_0x258f24(0x279),'strokeWidth':1.2}}]},{'tag':_0x258f24(0xbf),'attrs':{},'children':[{'tag':_0x258f24(0x235),'attrs':{'id':_0x258f24(0xbc)},'children':[{'tag':_0x258f24(0x8c),'attrs':{'fill':_0x258f24(0x16b),'d':_0x258f24(0x130)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x5e9b56=_0x470d28[_0x258f24(0x211)](function(_0x2c4dc3,_0x31b835){const _0x56a2b8=_0x258f24;return _0x470d28[_0x56a2b8(0x26c)](_0x4f9a87,Object[_0x56a2b8(0x7e)]({},_0x2c4dc3,{'id':'off-line-single','ref':_0x31b835,'icon':_0x1f84b8}));});_0x5e9b56[_0x258f24(0xaf)]=_0x258f24(0x223);var _0x894c88={'tag':_0x258f24(0x296),'attrs':{'fill':_0x258f24(0x1f9),'viewBox':_0x258f24(0xef),'width':_0x258f24(0x208),'height':_0x258f24(0x208)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x258f24(0x8c),'attrs':{'stroke':_0x258f24(0x217),'d':_0x258f24(0x1b0),'strokeLinecap':_0x258f24(0x279),'strokeLinejoin':_0x258f24(0x279),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x258f24(0x235),'attrs':{'id':_0x258f24(0x189)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x258f24(0xbb)}}]}]}],'defIds':[_0x258f24(0x189)]},_0x29b3d7=_0x470d28['forwardRef'](function(_0x3a9414,_0x56c484){const _0x491691=_0x258f24;return _0x470d28[_0x491691(0x26c)](_0x4f9a87,Object[_0x491691(0x7e)]({},_0x3a9414,{'id':_0x491691(0x2e3),'ref':_0x56c484,'icon':_0x894c88}));});_0x29b3d7[_0x258f24(0xaf)]=_0x258f24(0x176);function _0x3f6f79(_0x554618){const _0x578892=_0x258f24;switch(_0x554618){case _0x1102c8[_0x578892(0xd6)]['OFFLINE']:return _0x578892(0x141);case _0x1102c8['CollaborationStatus'][_0x578892(0x204)]:return _0x578892(0x1f4);case _0x1102c8[_0x578892(0xd6)][_0x578892(0x1a5)]:return _0x578892(0x1f0);case _0x1102c8['CollaborationStatus']['NOT_COLLAB']:return _0x578892(0x29d);case _0x1102c8['CollaborationStatus'][_0x578892(0x182)]:case _0x1102c8[_0x578892(0xd6)][_0x578892(0x264)]:return _0x578892(0xe3);case _0x1102c8[_0x578892(0xd6)][_0x578892(0x122)]:case _0x1102c8['CollaborationStatus'][_0x578892(0x153)]:return _0x578892(0x251);}}function _0x113c68(_0x537bc3){const _0x1bd37b=_0x258f24,{status$:_0x2cee91}=_0x537bc3,_0x1ea84c=_0x38cf24[_0x1bd37b(0xe0)](_0x2cee91,_0x1102c8['CollaborationStatus'][_0x1bd37b(0x7d)]),_0x43066d=_0x38cf24[_0x1bd37b(0x82)](_0x3207a9[_0x1bd37b(0x15b)]),_0x5aa69a=_0x38cf24['useDependency'](_0x1102c8['CollaborationSessionService']),_0x53f849=_0x1ea84c!==_0x1102c8[_0x1bd37b(0xd6)]['OFFLINE'],_0x5cac3c=_0x43066d['t'](_0x3f6f79(_0x1ea84c)),_0x325850=_0x53f849?_0x23e649[_0x1bd37b(0x224)](_0x29b3d7,{}):_0x23e649[_0x1bd37b(0x224)](_0x5e9b56,{}),_0x28f664=_0x470d28[_0x1bd37b(0x183)](()=>{const _0x10e3c7=_0x1bd37b;_0x53f849||_0x5aa69a[_0x10e3c7(0x2c4)]();},[_0x53f849,_0x5aa69a]);function _0x7e4829(){const _0xc1874=_0x1bd37b;return _0x23e649[_0xc1874(0x1af)](_0xc1874(0x15a),{'className':_0xc1874(0x303),'onClick':_0x28f664,'children':[_0x23e649['jsx'](_0xc1874(0x15a),{'className':_0x28722d['clsx']('univer-flex\x20univer-mr-2\x20univer-text-[20px]',_0x53f849?_0xc1874(0x1a8):'univer-text-red-500'),'children':_0x325850}),_0x23e649[_0xc1874(0x224)](_0xc1874(0x15a),{'className':'univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','children':_0x5cac3c})]});}return _0x53f849?_0x7e4829():_0x23e649[_0x1bd37b(0x224)](_0x28722d['Tooltip'],{'title':_0x43066d['t']('collab-client.tooltip.reconnect'),'children':_0x7e4829()});}var _0x5acc5f=Object[_0x258f24(0x26f)],_0x23acfb=(_0x1d9c1d,_0x36cb08,_0xf110a0,_0x2c3d80)=>{const _0x3b6ba2=_0x258f24;for(var _0x573b74=_0x2c3d80>0x1?void 0x0:_0x2c3d80?_0x5acc5f(_0x36cb08,_0xf110a0):_0x36cb08,_0x3c69f3=_0x1d9c1d[_0x3b6ba2(0x2ee)]-0x1,_0x3751af;_0x3c69f3>=0x0;_0x3c69f3--)(_0x3751af=_0x1d9c1d[_0x3c69f3])&&(_0x573b74=_0x3751af(_0x573b74)||_0x573b74);return _0x573b74;},_0xc4acb1=(_0xaf14c7,_0x4b24ea)=>(_0x355e58,_0x3a4c6f)=>_0x4b24ea(_0x355e58,_0x3a4c6f,_0xaf14c7);_0x3bccaa[_0x258f24(0x28b)]=class extends _0x3207a9[_0x258f24(0x17e)]{constructor(_0x5f176b,_0x3021b5,_0x1cb3ce,_0xcdb13b){const _0x2c15f3=_0x258f24;super(),_0x1a27fd(this,_0x2c15f3(0x1c5),new _0xd000e2[(_0x2c15f3(0x1ed))](_0x1102c8['CollaborationStatus'][_0x2c15f3(0x7d)])),(this['_univerInstanceService']=_0x5f176b,this[_0x2c15f3(0xfe)]=_0x3021b5,this[_0x2c15f3(0x194)]=_0x1cb3ce,this[_0x2c15f3(0x19f)]=_0xcdb13b,this[_0x2c15f3(0x2cf)](),this['_initStatusListener']());}[_0x258f24(0x188)](){const _0x269d64=_0x258f24;this[_0x269d64(0x146)](this[_0x269d64(0x29f)]['focused$'][_0x269d64(0xc8)](_0xd000e2[_0x269d64(0x12c)](()=>{const _0x13d2d6=_0x269d64,_0xec94a6=this['_univerInstanceService'][_0x13d2d6(0xf1)]();return _0xec94a6?this[_0x13d2d6(0x194)][_0x13d2d6(0xdf)](_0xec94a6[_0x13d2d6(0x266)]()):_0xd000e2['of'](null);}),_0xd000e2[_0x269d64(0x12c)](_0x3b2c2b=>_0x3b2c2b?_0x3b2c2b[_0x269d64(0xbe)]:_0xd000e2['of'](_0x1102c8[_0x269d64(0xd6)][_0x269d64(0x7d)])))[_0x269d64(0x185)](_0xa6bdcf=>{const _0x3af3f1=_0x269d64;this[_0x3af3f1(0x1c5)][_0x3af3f1(0x14b)](_0xa6bdcf);}));}[_0x258f24(0x2cf)](){const _0x169732=_0x258f24;this[_0x169732(0x146)](this['_uiPartsService'][_0x169732(0x30f)](_0x38cf24[_0x169732(0xd7)]['HEADER_MENU'],()=>_0x38cf24[_0x169732(0x118)](_0x439de4({'status$':this[_0x169732(0x1c5)]['asObservable']()}),this[_0x169732(0xfe)])));}},_0x3bccaa[_0x258f24(0x28b)]=_0x23acfb([_0xc4acb1(0x0,_0x3207a9[_0x258f24(0x18d)]),_0xc4acb1(0x1,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9['Injector'])),_0xc4acb1(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x1102c8[_0x258f24(0x242)])),_0xc4acb1(0x3,_0x38cf24['IUIPartsService'])],_0x3bccaa[_0x258f24(0x28b)]);function _0x439de4(_0x2131ee){const {status$:_0x401156}=_0x2131ee;return function(){const _0x42efe3=_0x201c;return _0x23e649[_0x42efe3(0x224)](_0x113c68,{'status$':_0x401156});};}var _0x22290f=Object[_0x258f24(0x26f)],_0x472811=(_0x202292,_0x24d6ba,_0x166da4,_0x582540)=>{const _0x1db8f3=_0x258f24;for(var _0xe25dee=_0x582540>0x1?void 0x0:_0x582540?_0x22290f(_0x24d6ba,_0x166da4):_0x24d6ba,_0x4d4139=_0x202292[_0x1db8f3(0x2ee)]-0x1,_0x30fb6c;_0x4d4139>=0x0;_0x4d4139--)(_0x30fb6c=_0x202292[_0x4d4139])&&(_0xe25dee=_0x30fb6c(_0xe25dee)||_0xe25dee);return _0xe25dee;},_0x16d826=(_0x1a6480,_0x37c96c)=>(_0x4f2949,_0x51d569)=>_0x37c96c(_0x4f2949,_0x51d569,_0x1a6480);let _0x22d051=class extends _0x3207a9[_0x258f24(0x17e)]{constructor(_0x457a99,_0x453dd9,_0x3964a2,_0x2b4233,_0x54e119,_0x357fed){const _0x196217=_0x258f24;super(),this['_beforeCloseService']=_0x457a99,this[_0x196217(0x140)]=_0x453dd9,this['_collaborationUIEventService']=_0x3964a2,this['_messageService']=_0x2b4233,this['_notificationService']=_0x54e119,this[_0x196217(0x28e)]=_0x357fed,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x258f24(0x2e8)](){const _0xce8506=_0x258f24;this[_0xce8506(0x146)](this['_beforeCloseService'][_0xce8506(0x2db)](()=>{const _0xa2a3af=_0xce8506;if(this[_0xa2a3af(0x140)][_0xa2a3af(0x298)][_0xa2a3af(0x106)])return this[_0xa2a3af(0x28e)]['t'](_0xa2a3af(0xed));}));}[_0x258f24(0xe7)](){const _0x3a6776=_0x258f24;this[_0x3a6776(0x146)](this[_0x3a6776(0xf9)][_0x3a6776(0x180)][_0x3a6776(0x185)](_0x2db256=>{const _0x59bbbc=_0x3a6776;_0x2db256['id']===_0x1102c8[_0x59bbbc(0x8b)][_0x59bbbc(0x2b9)]&&this[_0x59bbbc(0xba)][_0x59bbbc(0x2fb)]({'type':_0x28722d['MessageType'][_0x59bbbc(0x13f)],'content':this[_0x59bbbc(0x28e)]['t'](_0x59bbbc(0x253))}),_0x2db256['id']===_0x1102c8[_0x59bbbc(0x8b)][_0x59bbbc(0x14c)]&&this['_messageService'][_0x59bbbc(0x2fb)]({'type':_0x28722d[_0x59bbbc(0x114)][_0x59bbbc(0x13f)],'content':this[_0x59bbbc(0x28e)]['t'](_0x59bbbc(0xf8))}),_0x2db256['id']===_0x1102c8[_0x59bbbc(0x8b)][_0x59bbbc(0x16d)]&&this[_0x59bbbc(0xae)][_0x59bbbc(0x2fb)]({'title':this[_0x59bbbc(0x28e)]['t'](_0x59bbbc(0x1b9)),'content':this[_0x59bbbc(0x28e)]['t']('permission.content'),'type':_0x59bbbc(0x18b),'duration':0x0}),_0x2db256['id']===_0x1102c8[_0x59bbbc(0x8b)][_0x59bbbc(0x204)]&&this[_0x59bbbc(0xba)][_0x59bbbc(0x2fb)]({'type':_0x28722d[_0x59bbbc(0x114)]['Error'],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x2db256[_0x59bbbc(0x1f7)]+')'}),_0x2db256['id']===_0x1102c8['CollaborationUIEventId'][_0x59bbbc(0x21a)]&&this[_0x59bbbc(0xba)][_0x59bbbc(0x2fb)]({'type':_0x28722d[_0x59bbbc(0x114)]['Warning'],'content':this[_0x59bbbc(0x28e)]['t'](_0x2db256[_0x59bbbc(0x1f7)]||'')}),_0x2db256['id']===_0x1102c8[_0x59bbbc(0x8b)][_0x59bbbc(0x1f2)]&&this[_0x59bbbc(0xba)][_0x59bbbc(0x2fb)]({'type':_0x28722d[_0x59bbbc(0x114)]['Warning'],'content':this[_0x59bbbc(0x28e)]['t'](_0x59bbbc(0x2f6))}),_0x2db256['id']===_0x1102c8[_0x59bbbc(0x8b)][_0x59bbbc(0x138)]&&this[_0x59bbbc(0xba)][_0x59bbbc(0x2fb)]({'type':_0x28722d[_0x59bbbc(0x114)][_0x59bbbc(0x169)],'content':this['_localeService']['t'](_0x59bbbc(0xd3))}),_0x2db256['id']===_0x1102c8['CollaborationUIEventId'][_0x59bbbc(0x273)]&&this['_messageService'][_0x59bbbc(0x2fb)]({'type':_0x28722d['MessageType'][_0x59bbbc(0x169)],'content':this[_0x59bbbc(0x28e)]['t']('session.collaboration-timeout')});}));}};_0x22d051=_0x472811([_0x16d826(0x0,_0x38cf24['IBeforeCloseService']),_0x16d826(0x1,_0x1102c8[_0x258f24(0x1f8)]),_0x16d826(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x1102c8['CollaborationUIEventService'])),_0x16d826(0x3,_0x38cf24[_0x258f24(0x196)]),_0x16d826(0x4,_0x38cf24[_0x258f24(0x13a)]),_0x16d826(0x5,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9[_0x258f24(0x15b)]))],_0x22d051);const _0x130095='collaboration-client-ui.config',_0x2a9b11={},_0x3a5050=_0x3207a9[_0x258f24(0x25d)](_0x258f24(0x1a1));var _0xda1f4c=Object[_0x258f24(0x26f)],_0x2d4a63=(_0x3e41c9,_0x43e399,_0x5b7f72,_0x54d795)=>{const _0x264e7c=_0x258f24;for(var _0x3f649e=_0x54d795>0x1?void 0x0:_0x54d795?_0xda1f4c(_0x43e399,_0x5b7f72):_0x43e399,_0x4904a2=_0x3e41c9[_0x264e7c(0x2ee)]-0x1,_0x178720;_0x4904a2>=0x0;_0x4904a2--)(_0x178720=_0x3e41c9[_0x4904a2])&&(_0x3f649e=_0x178720(_0x3f649e)||_0x3f649e);return _0x3f649e;},_0xc974de=(_0x57637d,_0x5baa8a)=>(_0x45c283,_0x46b4e9)=>_0x5baa8a(_0x45c283,_0x46b4e9,_0x57637d);_0x3bccaa[_0x258f24(0x17c)]=class extends _0x3207a9[_0x258f24(0x245)]{constructor(_0x269048,_0x9c500d,_0x2e3b05,_0xc91f0e,_0xda6289){const _0x1e7fad=_0x258f24;super(),this['_urlService']=_0x269048,this[_0x1e7fad(0x156)]=_0x9c500d,this[_0x1e7fad(0x1b1)]=_0x2e3b05,this[_0x1e7fad(0xe4)]=_0xc91f0e,_0xda6289?_0xda6289==null||_0xda6289['whenReady']()[_0x1e7fad(0x276)](()=>this[_0x1e7fad(0x154)]()):(this[_0x1e7fad(0x156)][_0x1e7fad(0x22b)](_0x1e7fad(0xb4),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x258f24(0x154)](){const _0x4a88f8=_0x258f24,_0x1794a5=this[_0x4a88f8(0xe6)][_0x4a88f8(0xdd)](_0x4a88f8(0x2c3)),_0x273a73=this[_0x4a88f8(0xe6)][_0x4a88f8(0xdd)](_0x4a88f8(0x2e1)),_0x4ba190=this[_0x4a88f8(0xe6)]['getParam']('subunit');if(!_0x1794a5||!_0x273a73){this['_logService'][_0x4a88f8(0x22b)](_0x4a88f8(0xb4),_0x4a88f8(0xf3));return;}const _0x137a3d=await this[_0x4a88f8(0xe4)][_0x4a88f8(0x256)](_0x1794a5,Number(_0x273a73),_0x4ba190);_0x137a3d&&_0x137a3d instanceof _0x3207a9[_0x4a88f8(0x1ea)]&&this['_setupSubUnitSync'](_0x137a3d);}async[_0x258f24(0x83)](_0x407a7a){const _0x3376a6=_0x258f24;await this[_0x3376a6(0x28c)](_0x407a7a),_0x407a7a[_0x3376a6(0x1ee)][_0x3376a6(0xc8)](_0xd000e2[_0x3376a6(0x1da)](this[_0x3376a6(0x220)]))[_0x3376a6(0x185)](_0x37586a=>{const _0x1c17eb=_0x3376a6;_0x37586a&&this[_0x1c17eb(0x150)](_0x37586a);}),this[_0x3376a6(0xe6)][_0x3376a6(0x15d)][_0x3376a6(0xc8)](_0xd000e2[_0x3376a6(0x1da)](this[_0x3376a6(0x220)]))[_0x3376a6(0x185)](()=>this[_0x3376a6(0x28c)](_0x407a7a));}[_0x258f24(0x150)](_0x492987,_0x1e3891=!0x1){const _0x1e6426=_0x258f24,_0x645346=this[_0x1e6426(0xe6)][_0x1e6426(0xdd)](_0x1e6426(0x244));_0x492987[_0x1e6426(0x1fc)]()!==_0x645346&&this[_0x1e6426(0xe6)][_0x1e6426(0x109)](_0x1e6426(0x244),_0x492987[_0x1e6426(0x1fc)](),_0x1e3891);}async['_updateSubUnitFromURLParams'](_0x4b36c6){const _0x5325aa=_0x258f24;var _0x5086de;const _0x3fe76d=this['_urlService'][_0x5325aa(0xdd)](_0x5325aa(0x244));if(!_0x3fe76d||!_0x4b36c6[_0x5325aa(0x11d)](_0x3fe76d)){const _0x12ce52=_0x4b36c6[_0x5325aa(0x1e7)]()[0x0],_0x6e68a0=_0x4b36c6[_0x5325aa(0x11d)](_0x12ce52);if(!_0x6e68a0)return;this[_0x5325aa(0x150)](_0x6e68a0,!0x0),await this[_0x5325aa(0x1b1)][_0x5325aa(0x124)](_0x4a8ed5[_0x5325aa(0x15e)]['id'],{'unitId':_0x4b36c6['getUnitId'](),'subUnitId':_0x12ce52});return;}((_0x5086de=_0x4b36c6['getActiveSheet']())==null?void 0x0:_0x5086de[_0x5325aa(0x1fc)]())!==_0x3fe76d&&await this[_0x5325aa(0x1b1)][_0x5325aa(0x124)](_0x4a8ed5[_0x5325aa(0x15e)]['id'],{'unitId':_0x4b36c6[_0x5325aa(0x266)](),'subUnitId':_0x3fe76d});}},_0x3bccaa[_0x258f24(0x17c)]=_0x2d4a63([_0xc974de(0x0,_0x3a5050),_0xc974de(0x1,_0x3207a9[_0x258f24(0x16e)]),_0xc974de(0x2,_0x3207a9[_0x258f24(0x105)]),_0xc974de(0x3,_0x3207a9[_0x258f24(0x1cc)](_0x1102c8[_0x258f24(0x104)])),_0xc974de(0x4,_0x3207a9[_0x258f24(0x93)](_0x5c4095['IRemoteInstanceService']))],_0x3bccaa[_0x258f24(0x17c)]);var _0x5bf778=Object[_0x258f24(0x26f)],_0x2c52cb=(_0x41ebae,_0x57a98f,_0xcf95ad,_0x278142)=>{for(var _0x502696=_0x278142>0x1?void 0x0:_0x278142?_0x5bf778(_0x57a98f,_0xcf95ad):_0x57a98f,_0x2e23d8=_0x41ebae['length']-0x1,_0x3016c1;_0x2e23d8>=0x0;_0x2e23d8--)(_0x3016c1=_0x41ebae[_0x2e23d8])&&(_0x502696=_0x3016c1(_0x502696)||_0x502696);return _0x502696;},_0x143230=(_0x33808e,_0x240b42)=>(_0x5daffa,_0x46361b)=>_0x240b42(_0x5daffa,_0x46361b,_0x33808e);let _0x264a79=class{constructor(_0x301c8b,_0x16a2ed,_0xc8370a){const _0x234409=_0x258f24;this['_injector']=_0x301c8b,this[_0x234409(0x30b)]=_0x16a2ed,this[_0x234409(0x240)]=_0xc8370a;}[_0x258f24(0x187)](_0x1154fe){const _0x4aeaef=_0x258f24;this['_transformUndoRedoStack'](_0x1154fe),this[_0x4aeaef(0x120)](_0x1154fe);}[_0x258f24(0x2da)](_0x57f839){const _0x4c9ac6=_0x258f24,{unitID:_0x1ba62e}=_0x57f839,_0x3f2489=this['_renderManagerService'][_0x4c9ac6(0x103)](_0x1ba62e)[_0x4c9ac6(0x1e4)](_0xcfa6df['DocIMEInputManagerService']),{redoCache:_0x47741e}=_0x3f2489[_0x4c9ac6(0x20c)]();if(_0x47741e['length']===0x0)return _0x57f839;let _0xeed11a=_0x3207a9[_0x4c9ac6(0x310)][_0x4c9ac6(0x147)](_0x57f839[_0x4c9ac6(0x129)][0x0]);for(let _0x178696=0x0;_0x178696<_0x47741e[_0x4c9ac6(0x2ee)];_0x178696++){const _0x3de1ba={'id':_0x4c9ac6(0x215),'params':{..._0x47741e[_0x178696]}},_0x2fb369=this['_transformService'][_0x4c9ac6(0x11f)](_0xeed11a,_0x3de1ba,!0x1);if(_0x3e7a87[_0x4c9ac6(0xb9)](_0x2fb369))throw _0x2fb369['error'];_0xeed11a=_0x2fb369[_0x4c9ac6(0x2cb)];}return{..._0x3207a9[_0x4c9ac6(0x310)][_0x4c9ac6(0x147)](_0x57f839),'mutations':[_0xeed11a]};}['_transformUndoRedoStack'](_0x2d5819){const _0x15d443=_0x258f24,{unitID:_0x8973d2}=_0x2d5819,_0x48c7b6=this[_0x15d443(0x240)][_0x15d443(0x103)](_0x8973d2)[_0x15d443(0x1e4)](_0xcfa6df[_0x15d443(0x20e)]),{undoCache:_0x1f64ed,redoCache:_0x25f588}=_0x48c7b6['getUndoRedoMutationParamsCache']();if(_0x1f64ed[_0x15d443(0x2ee)]===0x0||_0x25f588[_0x15d443(0x2ee)]===0x0)return;const _0x1aaa34=[],_0x3628f9=[];let _0x353932=_0x3207a9[_0x15d443(0x310)][_0x15d443(0x147)](_0x2d5819['mutations'][0x0]),_0x19bab1=_0x3207a9['Tools'][_0x15d443(0x147)](_0x2d5819['mutations'][0x0]);for(let _0x246c2f=_0x1f64ed['length']-0x1;_0x246c2f>=0x0;_0x246c2f--){const _0xb85ac9={'id':_0x15d443(0x215),'params':{..._0x1f64ed[_0x246c2f]}},_0x48d270={'id':_0x15d443(0x215),'params':{..._0x25f588[_0x246c2f]}},_0x3338ba=this[_0x15d443(0x30b)][_0x15d443(0x11f)](_0x353932,_0xb85ac9,!0x1),_0xe7f354=this[_0x15d443(0x30b)]['transformMutation'](_0x19bab1,_0x48d270,!0x1);if(_0x3e7a87['isTransformMutationFailure'](_0x3338ba))throw _0x3338ba[_0x15d443(0x18b)];if(_0x3e7a87[_0x15d443(0xb9)](_0xe7f354))throw _0xe7f354['error'];_0x1aaa34[_0x15d443(0x1d4)](_0x3338ba[_0x15d443(0x1de)]['params']),_0x3628f9[_0x15d443(0x1d4)](_0xe7f354[_0x15d443(0x1de)][_0x15d443(0x1d0)]),_0x353932=_0x3338ba[_0x15d443(0x2cb)],_0x19bab1=_0xe7f354[_0x15d443(0x2cb)];}_0x48c7b6[_0x15d443(0x29b)]({'undoCache':_0x1aaa34,'redoCache':_0x3628f9});}[_0x258f24(0x120)](_0x5761b9){const _0x4b2c48=_0x258f24,{unitID:_0x582f76}=_0x5761b9,_0x272839=this[_0x4b2c48(0x240)]['getRenderById'](_0x582f76)[_0x4b2c48(0x1e4)](_0xcfa6df[_0x4b2c48(0x20e)]),_0x1f4121=_0x272839[_0x4b2c48(0x1a3)]();if(_0x1f4121==null)return;const _0x5e0317=[{'id':_0x4b2c48(0x215),'params':{'unitId':_0x5761b9[_0x4b2c48(0x299)],'actions':null,'textRanges':[_0x1f4121]}}],_0x3317f9=this['_transformService'][_0x4b2c48(0x283)](_0x5761b9,_0x5e0317);if(!_0x3e7a87[_0x4b2c48(0x25c)](_0x3317f9))throw _0x3317f9[_0x4b2c48(0x18b)];const _0x28595e=_0x3317f9[_0x4b2c48(0x1de)][0x0]['params'][_0x4b2c48(0x23c)];Array['isArray'](_0x28595e)&&_0x28595e[_0x4b2c48(0x2ee)]&&_0x272839['setActiveRange'](_0x28595e[0x0]);}};_0x264a79=_0x2c52cb([_0x143230(0x0,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9['Injector'])),_0x143230(0x1,_0x3e7a87[_0x258f24(0x116)]),_0x143230(0x2,_0x2e888c[_0x258f24(0x12b)])],_0x264a79);var _0x469603=Object[_0x258f24(0x26f)],_0x12042a=(_0x3280ae,_0x328887,_0x3baf99,_0x96a4bf)=>{const _0x2150a2=_0x258f24;for(var _0x590150=_0x96a4bf>0x1?void 0x0:_0x96a4bf?_0x469603(_0x328887,_0x3baf99):_0x328887,_0x32e246=_0x3280ae[_0x2150a2(0x2ee)]-0x1,_0x55539f;_0x32e246>=0x0;_0x32e246--)(_0x55539f=_0x3280ae[_0x32e246])&&(_0x590150=_0x55539f(_0x590150)||_0x590150);return _0x590150;},_0x5ca7eb=(_0x16e4f6,_0x2348b2)=>(_0x327155,_0x11e3be)=>_0x2348b2(_0x327155,_0x11e3be,_0x16e4f6);let _0x52344d=class{constructor(_0x363c58,_0x37861c,_0x5eaa89){const _0x18ed50=_0x258f24;this[_0x18ed50(0xfe)]=_0x363c58,this[_0x18ed50(0x30b)]=_0x37861c,this[_0x18ed50(0x1c4)]=_0x5eaa89;}[_0x258f24(0x1aa)](_0x272c72){const _0x27d20c=_0x258f24;this[_0x27d20c(0x27f)](_0x272c72);}[_0x258f24(0x2da)](_0x418e38){const _0x121316=_0x258f24,{unitID:_0x3b4f93}=_0x418e38,{collaboration:_0x3b2c63}=this[_0x121316(0x1c4)]['getStateCache'](_0x3b4f93);if(_0x3b2c63[_0x121316(0x2ee)]===0x0)return _0x418e38;let _0x3bcfd2=_0x3207a9['Tools'][_0x121316(0x147)](_0x418e38[_0x121316(0x129)][0x0]);for(let _0x172276=0x0;_0x172276<_0x3b2c63[_0x121316(0x2ee)];_0x172276++){const _0x3d9e0b={'id':_0x121316(0x215),'params':{'unitId':_0x3b2c63[_0x172276][_0x121316(0xfc)],..._0x3b2c63[_0x172276]['redoState']}},_0x379225=this[_0x121316(0x30b)][_0x121316(0x11f)](_0x3bcfd2,_0x3d9e0b,!0x1);if(_0x3e7a87[_0x121316(0xb9)](_0x379225))throw _0x379225['error'];_0x3bcfd2=_0x379225[_0x121316(0x2cb)];}return{..._0x3207a9[_0x121316(0x310)]['deepClone'](_0x418e38),'mutations':[_0x3bcfd2]};}['_transformHistoryAndStateStack'](_0x23ba97){const _0x1d91cc=_0x258f24,{unitID:_0x20caef}=_0x23ba97,{history:_0xab3b70,collaboration:_0x41986c}=this['_docStateChangeManagerService']['getStateCache'](_0x20caef);if(_0xab3b70['length']===0x0&&_0x41986c[_0x1d91cc(0x2ee)]===0x0)return;const _0x4d5eac=[],_0x33c45b=[];let _0x4b7dd4=_0x3207a9[_0x1d91cc(0x310)][_0x1d91cc(0x147)](_0x23ba97[_0x1d91cc(0x129)][0x0]),_0x24dfea=_0x3207a9[_0x1d91cc(0x310)]['deepClone'](_0x23ba97[_0x1d91cc(0x129)][0x0]);for(let _0x33b0bd=_0xab3b70[_0x1d91cc(0x2ee)]-0x1;_0x33b0bd>=0x0;_0x33b0bd--){const _0x19c229={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xab3b70[_0x33b0bd]['unitId'],..._0xab3b70[_0x33b0bd][_0x1d91cc(0x162)]}},_0x258473={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xab3b70[_0x33b0bd]['unitId'],..._0xab3b70[_0x33b0bd][_0x1d91cc(0x2ca)]}},_0x6f0aeb=this['_transformService'][_0x1d91cc(0x11f)](_0x4b7dd4,_0x19c229,!0x1),_0x4d9536=this['_transformService']['transformMutation'](_0x24dfea,_0x258473,!0x1);if(_0x3e7a87[_0x1d91cc(0xb9)](_0x6f0aeb))throw _0x6f0aeb[_0x1d91cc(0x18b)];if(_0x3e7a87[_0x1d91cc(0xb9)](_0x4d9536))throw _0x4d9536[_0x1d91cc(0x18b)];_0x4d5eac[_0x1d91cc(0x1d4)]({..._0xab3b70[_0x33b0bd],'undoState':_0x6f0aeb['m2Prime'][_0x1d91cc(0x1d0)],'redoState':_0x4d9536[_0x1d91cc(0x1de)][_0x1d91cc(0x1d0)]}),_0x4b7dd4=_0x6f0aeb[_0x1d91cc(0x2cb)],_0x24dfea=_0x4d9536[_0x1d91cc(0x2cb)];}_0x4b7dd4=_0x3207a9[_0x1d91cc(0x310)][_0x1d91cc(0x147)](_0x23ba97[_0x1d91cc(0x129)][0x0]),_0x24dfea=_0x3207a9['Tools'][_0x1d91cc(0x147)](_0x23ba97[_0x1d91cc(0x129)][0x0]);for(let _0x42a87e=_0x41986c[_0x1d91cc(0x2ee)]-0x1;_0x42a87e>=0x0;_0x42a87e--){const _0x398d6d={'id':_0x1d91cc(0x215),'params':{'unitId':_0x41986c[_0x42a87e]['unitId'],..._0x41986c[_0x42a87e][_0x1d91cc(0x162)]}},_0x433d72={'id':_0x1d91cc(0x215),'params':{'unitId':_0x41986c[_0x42a87e][_0x1d91cc(0xfc)],..._0x41986c[_0x42a87e][_0x1d91cc(0x2ca)]}},_0x5e705b=this['_transformService']['transformMutation'](_0x4b7dd4,_0x398d6d,!0x1),_0x494f51=this[_0x1d91cc(0x30b)][_0x1d91cc(0x11f)](_0x24dfea,_0x433d72,!0x1);if(_0x3e7a87[_0x1d91cc(0xb9)](_0x5e705b))throw _0x5e705b[_0x1d91cc(0x18b)];if(_0x3e7a87[_0x1d91cc(0xb9)](_0x494f51))throw _0x494f51[_0x1d91cc(0x18b)];_0x33c45b[_0x1d91cc(0x1d4)]({..._0x41986c[_0x42a87e],'undoState':_0x5e705b['m2Prime'][_0x1d91cc(0x1d0)],'redoState':_0x494f51[_0x1d91cc(0x1de)][_0x1d91cc(0x1d0)]}),_0x4b7dd4=_0x5e705b[_0x1d91cc(0x2cb)],_0x24dfea=_0x494f51['m1Prime'];}this[_0x1d91cc(0x1c4)]['setStateCache'](_0x20caef,{'history':_0x4d5eac,'collaboration':_0x33c45b});}};_0x52344d=_0x12042a([_0x5ca7eb(0x0,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9[_0x258f24(0x173)])),_0x5ca7eb(0x1,_0x3e7a87['ITransformService']),_0x5ca7eb(0x2,_0x3207a9['Inject'](_0xcfa6df[_0x258f24(0x2e4)]))],_0x52344d);var _0x288a70=Object[_0x258f24(0x26f)],_0x4d9958=(_0x65fd1d,_0x446e67,_0x4e4a61,_0x493a85)=>{for(var _0x10c42e=_0x493a85>0x1?void 0x0:_0x493a85?_0x288a70(_0x446e67,_0x4e4a61):_0x446e67,_0x1a982d=_0x65fd1d['length']-0x1,_0x3c605c;_0x1a982d>=0x0;_0x1a982d--)(_0x3c605c=_0x65fd1d[_0x1a982d])&&(_0x10c42e=_0x3c605c(_0x10c42e)||_0x10c42e);return _0x10c42e;},_0x5bd03e=(_0x937470,_0x29fae0)=>(_0x36d421,_0x4961cc)=>_0x29fae0(_0x36d421,_0x4961cc,_0x937470);let _0x2f2133=class{constructor(_0x31194d,_0x4b14d6){const _0x3d3ab5=_0x258f24;this[_0x3d3ab5(0xfe)]=_0x31194d,this[_0x3d3ab5(0x30b)]=_0x4b14d6;}[_0x258f24(0x128)](_0x50fe32){const _0x3058e4=_0x258f24;var _0x4bea57;const _0x268fde=this[_0x3058e4(0xfe)]['get'](_0xca2427[_0x3058e4(0x1a6)]),_0x377394=(_0x4bea57=_0x268fde[_0x3058e4(0xa4)]())!=null?_0x4bea57:[];if(_0x377394['length']===0x0)return;const _0x56e7b3=_0x50fe32[_0x3058e4(0x299)],_0x3793bb=[{'id':_0x3058e4(0x215),'params':{'unitId':_0x56e7b3,'actions':null,'textRanges':_0x377394}}],_0x38e40a=this[_0x3058e4(0x30b)][_0x3058e4(0x283)](_0x50fe32,_0x3793bb);if(!_0x3e7a87[_0x3058e4(0x25c)](_0x38e40a))throw _0x38e40a[_0x3058e4(0x18b)];const _0x556e1a=_0x38e40a['m2Prime'][0x0][_0x3058e4(0x1d0)]['textRanges'];Array[_0x3058e4(0x12f)](_0x556e1a)&&_0x556e1a[_0x3058e4(0x2ee)]&&_0x268fde[_0x3058e4(0x26a)](_0x556e1a,{'unitId':_0x56e7b3,'subUnitId':_0x56e7b3},!0x1);}};_0x2f2133=_0x4d9958([_0x5bd03e(0x0,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9[_0x258f24(0x173)])),_0x5bd03e(0x1,_0x3e7a87['ITransformService'])],_0x2f2133);var _0x5dc4cf=Object[_0x258f24(0x26f)],_0x4136ee=(_0x591e67,_0x484269,_0x332b37,_0xbe7ae8)=>{const _0x57b824=_0x258f24;for(var _0xb1a3fa=_0xbe7ae8>0x1?void 0x0:_0xbe7ae8?_0x5dc4cf(_0x484269,_0x332b37):_0x484269,_0xd8c438=_0x591e67[_0x57b824(0x2ee)]-0x1,_0xc95ec6;_0xd8c438>=0x0;_0xd8c438--)(_0xc95ec6=_0x591e67[_0xd8c438])&&(_0xb1a3fa=_0xc95ec6(_0xb1a3fa)||_0xb1a3fa);return _0xb1a3fa;},_0x23c2ea=(_0x19d888,_0xc58678)=>(_0x187ea6,_0x5532fb)=>_0xc58678(_0x187ea6,_0x5532fb,_0x19d888);let _0x5193dd=class extends _0x3207a9[_0x258f24(0x17e)]{constructor(_0x4aae51,_0x1034ff,_0x4afb43,_0x37ee32,_0x423aaf,_0x5df48c,_0x401f52,_0x5e6efc){const _0x1b43d2=_0x258f24;super(),_0x1a27fd(this,_0x1b43d2(0x1c5),new _0xd000e2[(_0x1b43d2(0x1ed))](_0x1102c8['CollaborationStatus']['NOT_COLLAB'])),(this[_0x1b43d2(0x1c4)]=_0x4aae51,this[_0x1b43d2(0x194)]=_0x1034ff,this['_docTransformIMECacheService']=_0x4afb43,this[_0x1b43d2(0x14e)]=_0x37ee32,this[_0x1b43d2(0x142)]=_0x423aaf,this[_0x1b43d2(0x98)]=_0x5df48c,this[_0x1b43d2(0xba)]=_0x401f52,this['_localeService']=_0x5e6efc,this[_0x1b43d2(0xda)]());}[_0x258f24(0xda)](){const _0x54834f=_0x258f24;this['disposeWithMe'](this[_0x54834f(0x194)][_0x54834f(0x20d)]['subscribe'](_0x715a44=>{const _0x16c892=_0x54834f,_0x2b8014=this[_0x16c892(0x1c4)]['docStateChange$'][_0x16c892(0x185)](_0x354870=>{const _0x2a7c38=_0x16c892;if(_0x354870==null)return;const {unitId:_0x2a9b6a,redoState:_0x1ab200,commandId:_0x5c6935}=_0x354870;if(_0x2a9b6a!==_0x715a44['unitID'])return;const _0x8c6881={'id':_0x5c6935,'type':_0x3207a9[_0x2a7c38(0x288)]['MUTATION'],'params':{'unitId':_0x2a9b6a,'actions':_0x1ab200[_0x2a7c38(0x16f)],'textRanges':null}};_0x715a44[_0x2a7c38(0x21e)](_0x8c6881);});if(_0x715a44[_0x16c892(0x146)](_0x2b8014),_0x715a44 instanceof _0x1102c8[_0x16c892(0x12a)]){const _0x35e113={'onTransformIME':_0x5b44c0=>this[_0x16c892(0x2ab)][_0x16c892(0x187)](_0x5b44c0),'onTransformState':_0xe32db0=>this[_0x16c892(0x14e)]['transformStateCache'](_0xe32db0),'onTransformSelections':_0x835beb=>this[_0x16c892(0x142)][_0x16c892(0x128)](_0x835beb),'onSyncEditingCollabCursor':_0x6172b4=>this[_0x16c892(0x98)][_0x16c892(0x7c)](_0x6172b4),'onTransformRemoteChangesetByIMECache':_0xcdcb50=>this[_0x16c892(0x2ab)]['transformRemoteChangeset'](_0xcdcb50),'onTransformRemoteChangesetByStateCache':_0x3c4658=>this['_docTransformStateCacheService'][_0x16c892(0x2da)](_0x3c4658)};_0x715a44['addHandlerCallback'](_0x35e113);}}));}};_0x5193dd=_0x4136ee([_0x23c2ea(0x0,_0x3207a9[_0x258f24(0x1cc)](_0xcfa6df[_0x258f24(0x2e4)])),_0x23c2ea(0x1,_0x3207a9[_0x258f24(0x1cc)](_0x1102c8['CollaborationController'])),_0x23c2ea(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x264a79)),_0x23c2ea(0x3,_0x3207a9[_0x258f24(0x1cc)](_0x52344d)),_0x23c2ea(0x4,_0x3207a9[_0x258f24(0x1cc)](_0x2f2133)),_0x23c2ea(0x5,_0x3207a9[_0x258f24(0x1cc)](_0x2062f0)),_0x23c2ea(0x6,_0x38cf24[_0x258f24(0x196)]),_0x23c2ea(0x7,_0x3207a9['Inject'](_0x3207a9[_0x258f24(0x15b)]))],_0x5193dd);var _0x5318cc=Object['getOwnPropertyDescriptor'],_0x327216=(_0x50d335,_0x29a9a4,_0x1f9dfd,_0x13b024)=>{for(var _0x5ca995=_0x13b024>0x1?void 0x0:_0x13b024?_0x5318cc(_0x29a9a4,_0x1f9dfd):_0x29a9a4,_0x332ba2=_0x50d335['length']-0x1,_0x2a0c5f;_0x332ba2>=0x0;_0x332ba2--)(_0x2a0c5f=_0x50d335[_0x332ba2])&&(_0x5ca995=_0x2a0c5f(_0x5ca995)||_0x5ca995);return _0x5ca995;},_0x20f252=(_0x5c641a,_0x2ddcfd)=>(_0x4807f4,_0x1c0fe9)=>_0x2ddcfd(_0x4807f4,_0x1c0fe9,_0x5c641a);let _0x1f8ab8=class extends _0x3207a9[_0x258f24(0x17e)]{constructor(_0x276877,_0x36ba8f,_0x150e58){const _0x464021=_0x258f24;super(),_0x1a27fd(this,_0x464021(0x2b6),new Map()),_0x1a27fd(this,'_saveTaskMap',new Map()),_0x1a27fd(this,_0x464021(0x262),!0x1),(this[_0x464021(0xc7)]=_0x276877,this[_0x464021(0x1b3)]=_0x36ba8f,this[_0x464021(0x2a6)]=_0x150e58);}[_0x258f24(0x1db)](){this['_disabled']=!0x0;}[_0x258f24(0x1b5)](){const _0x5d82ec=_0x258f24;this[_0x5d82ec(0x262)]=!0x1;}get[_0x258f24(0x298)](){const _0x400727=_0x258f24;return this[_0x400727(0x1b8)];}[_0x258f24(0x2f2)](){const _0x352bdd=_0x258f24;this['exhaustSavingTask']()[_0x352bdd(0x276)](()=>super[_0x352bdd(0x2f2)]());}async['loadOfflineData'](_0x313cbc){const _0x2d29fc=_0x258f24;return this[_0x2d29fc(0x262)]?null:this[_0x2d29fc(0x1b3)][_0x2d29fc(0x30c)](_0x1102c8[_0x2d29fc(0x9a)](_0x313cbc));}async[_0x258f24(0x1a0)](_0x397e8a,_0x3afea5){const _0x161d22=_0x258f24;return!!this[_0x161d22(0x1b3)][_0x161d22(0x1d5)](_0x397e8a,_0x3afea5);}[_0x258f24(0x14a)](_0x3f760d,_0xd626eb,_0xc366da,_0x4c02b0){const _0x8bc7f4=_0x258f24,_0x5376b6=this[_0x8bc7f4(0x2a6)]['getCurrentRevOfUnit'](_0x3f760d);this[_0x8bc7f4(0x2b6)]['set'](_0x3f760d,{'unitID':_0x3f760d,'type':_0xd626eb,'awaitingChangeset':_0xc366da,'mutations':_0x4c02b0,'rev':_0x5376b6}),this[_0x8bc7f4(0x1b8)][_0x8bc7f4(0x17b)](_0x3f760d)||this[_0x8bc7f4(0x2ba)](_0x3f760d);}[_0x258f24(0x2ba)](_0x2d3e43){const _0x173290=_0x258f24,_0x3c8988=this[_0x173290(0x2f1)]();_0x3c8988===0x0?this[_0x173290(0x171)](_0x2d3e43):this['_saveTaskMap'][_0x173290(0x2dc)](_0x2d3e43,setTimeout(()=>this[_0x173290(0x171)](_0x2d3e43),_0x3c8988));}[_0x258f24(0x2f1)](){const _0xe47f9c=_0x258f24;var _0x4fa808;return(_0x4fa808=this[_0xe47f9c(0xc7)][_0xe47f9c(0x2c9)](_0x1102c8[_0xe47f9c(0x117)]))!=null?_0x4fa808:_0x1102c8[_0xe47f9c(0x1fe)];}[_0x258f24(0x171)](_0x50f0da){const _0x3e85de=_0x258f24,_0x1bb11f=this[_0x3e85de(0x1b8)][_0x3e85de(0x1e9)](_0x50f0da);return _0x1bb11f!==void 0x0&&window[_0x3e85de(0x195)](_0x1bb11f),this[_0x3e85de(0x1b3)][_0x3e85de(0x1d5)](_0x1102c8[_0x3e85de(0x9a)](_0x50f0da),this[_0x3e85de(0x2b6)][_0x3e85de(0x1e9)](_0x50f0da))['then'](()=>this[_0x3e85de(0x1b8)][_0x3e85de(0x95)](_0x50f0da));}async[_0x258f24(0x2e2)](){const _0x6292c=_0x258f24,_0x49fb7f=[];this[_0x6292c(0x1b8)][_0x6292c(0x19c)]((_0x2c8ff7,_0x3cdfde)=>{const _0x31a630=_0x6292c;window[_0x31a630(0x195)](_0x2c8ff7),_0x49fb7f[_0x31a630(0x1ac)](this[_0x31a630(0x171)](_0x3cdfde)[_0x31a630(0x276)](()=>{const _0x3d01ce=_0x31a630;this[_0x3d01ce(0x1b8)][_0x3d01ce(0x95)](_0x3cdfde);}));}),await Promise[_0x6292c(0x2ad)](_0x49fb7f);}};_0x1f8ab8=_0x327216([_0x20f252(0x0,_0x3207a9[_0x258f24(0x99)]),_0x20f252(0x1,_0x3207a9[_0x258f24(0x191)]),_0x20f252(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x3e7a87[_0x258f24(0xa7)]))],_0x1f8ab8);class _0x4c1e75 extends _0x3207a9['RxDisposable']{constructor(){const _0xd015d6=_0x258f24;super(),_0x1a27fd(this,'urlChange$'),this['urlChange$']=_0xd000e2[_0xd015d6(0x1ec)](window,_0xd015d6(0x1d1))[_0xd015d6(0xc8)](_0xd000e2[_0xd015d6(0x1da)](this['dispose$']),_0xd000e2[_0xd015d6(0x2c2)](0x1),_0xd000e2[_0xd015d6(0xb8)](void 0x0));}[_0x258f24(0x109)](_0x5e4667,_0x30121a,_0x8cf141=!0x1){const _0x15edae=_0x258f24,_0x548883=new URL(window[_0x15edae(0x20b)][_0x15edae(0x2ed)]);_0x548883[_0x15edae(0x2a8)]['set'](_0x5e4667,_0x30121a),_0x8cf141?window[_0x15edae(0x125)][_0x15edae(0x8f)]('','',_0x548883['toString']()):window[_0x15edae(0x125)][_0x15edae(0x234)]('','',_0x548883[_0x15edae(0x2b2)]());}[_0x258f24(0x306)](_0x336896,_0x255264=!0x1){const _0x3a8aab=_0x258f24,_0x438298=new URL(window[_0x3a8aab(0x20b)][_0x3a8aab(0x2ed)]);_0x438298[_0x3a8aab(0x2a8)][_0x3a8aab(0x95)](_0x336896),_0x255264?window[_0x3a8aab(0x125)][_0x3a8aab(0x8f)]('','',_0x438298[_0x3a8aab(0x2b2)]()):window[_0x3a8aab(0x125)][_0x3a8aab(0x234)]('','',_0x438298['toString']());}[_0x258f24(0xdd)](_0x3ac3a8){const _0x5265ea=_0x258f24;var _0x3cc719;return(_0x3cc719=new URL(window['location'][_0x5265ea(0x2ed)])[_0x5265ea(0x2a8)][_0x5265ea(0x1e9)](_0x3ac3a8))!=null?_0x3cc719:void 0x0;}}var _0x1d230d=Object[_0x258f24(0x2ce)],_0x9dd83b=Object[_0x258f24(0x26f)],_0x423b78=(_0x5cc75f,_0xa68dbf,_0x26621d)=>_0xa68dbf in _0x5cc75f?_0x1d230d(_0x5cc75f,_0xa68dbf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26621d}):_0x5cc75f[_0xa68dbf]=_0x26621d,_0x2bafe6=(_0x196a67,_0x4d4679,_0x95e3b7,_0x57373e)=>{const _0x11e8aa=_0x258f24;for(var _0x5cbd97=_0x57373e>0x1?void 0x0:_0x57373e?_0x9dd83b(_0x4d4679,_0x95e3b7):_0x4d4679,_0x2ca97f=_0x196a67[_0x11e8aa(0x2ee)]-0x1,_0xc5bbdc;_0x2ca97f>=0x0;_0x2ca97f--)(_0xc5bbdc=_0x196a67[_0x2ca97f])&&(_0x5cbd97=_0xc5bbdc(_0x5cbd97)||_0x5cbd97);return _0x5cbd97;},_0x2c03ab=(_0x32f55e,_0x412be7)=>(_0x40695e,_0x332bd9)=>_0x412be7(_0x40695e,_0x332bd9,_0x32f55e),_0xbcbeed=(_0x375416,_0x43010f,_0x340885)=>_0x423b78(_0x375416,_0x43010f+'',_0x340885);const _0x5c5ff8='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x3bccaa[_0x258f24(0x1ca)]=class extends _0x3207a9[_0x258f24(0x2e0)]{constructor(_0x52cdc1=_0x2a9b11,_0x8cfb6e,_0x5b3974,_0x55794d){const _0x258d85=_0x258f24;super(),this['_config']=_0x52cdc1,this[_0x258d85(0x240)]=_0x8cfb6e,this['_injector']=_0x5b3974,this['_configService']=_0x55794d;const {..._0x3b9f86}=_0x3207a9[_0x258d85(0x26e)]({},_0x2a9b11,this[_0x258d85(0x8e)]);this[_0x258d85(0xc7)][_0x258d85(0x22d)](_0x130095,_0x3b9f86);}[_0x258f24(0x2d6)](){const _0xf49ad9=_0x258f24;this[_0xf49ad9(0x157)](),this['_initDependencies']();}[_0x258f24(0x19d)](){const _0x31d3a9=_0x258f24;this[_0x31d3a9(0x2f9)]();}['_registerDependencies'](){const _0x1f129c=_0x258f24;var _0x2b3c21;const _0x4af2dd=[[_0x3ec850],[_0x2f2133],[_0x264a79],[_0x52344d],[_0x2062f0],[_0x3a5050,{'useClass':_0x4c1e75}],[_0x283bfb[_0x1f129c(0x213)],{'useClass':_0x283bfb[_0x1f129c(0x2ea)]}],[_0x1102c8[_0x1f129c(0x1f8)],{'useClass':_0x1f8ab8}],[_0x3bccaa[_0x1f129c(0x28b)]],[_0x5193dd],[_0x22d051],[_0x35f21e],[_0xa670a2],[_0x3bccaa[_0x1f129c(0x17c)]]];_0x3207a9[_0x1f129c(0x1e5)](this['_injector'],_0x3207a9[_0x1f129c(0xc6)](_0x4af2dd,(_0x2b3c21=this['_config'])==null?void 0x0:_0x2b3c21[_0x1f129c(0x25e)]));}[_0x258f24(0x2f9)](){const _0x2133ae=_0x258f24;this[_0x2133ae(0x146)](this[_0x2133ae(0x240)][_0x2133ae(0x123)](_0x3207a9['UniverInstanceType'][_0x2133ae(0x97)],[_0x137949])),this[_0x2133ae(0x146)](this[_0x2133ae(0x240)]['registerRenderModule'](_0x3207a9[_0x2133ae(0x23d)]['UNIVER_SHEET'],[_0x445646]));}[_0x258f24(0x167)](){const _0x15eace=_0x258f24;_0x3207a9[_0x15eace(0xe8)](this['_injector'],[[_0x35f21e],[_0x3bccaa[_0x15eace(0x28b)]],[_0x5193dd],[_0x22d051],[_0x3bccaa[_0x15eace(0x17c)]]]);}},_0xbcbeed(_0x3bccaa[_0x258f24(0x1ca)],_0x258f24(0x1e2),_0x5c5ff8),_0x3bccaa['UniverCollaborationClientUIPlugin']=_0x2bafe6([_0x3207a9[_0x258f24(0x268)](_0x1102c8[_0x258f24(0x2dd)]),_0x2c03ab(0x1,_0x2e888c['IRenderManagerService']),_0x2c03ab(0x2,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9['Injector'])),_0x2c03ab(0x3,_0x3207a9[_0x258f24(0x99)])],_0x3bccaa['UniverCollaborationClientUIPlugin']);var _0x3d5bfd=Object[_0x258f24(0x26f)],_0x5b7c99=(_0x148474,_0x476549,_0x5e9b94,_0x2eca11)=>{const _0x27a46f=_0x258f24;for(var _0x11d176=_0x2eca11>0x1?void 0x0:_0x2eca11?_0x3d5bfd(_0x476549,_0x5e9b94):_0x476549,_0x40ac19=_0x148474[_0x27a46f(0x2ee)]-0x1,_0x203f8f;_0x40ac19>=0x0;_0x40ac19--)(_0x203f8f=_0x148474[_0x40ac19])&&(_0x11d176=_0x203f8f(_0x11d176)||_0x11d176);return _0x11d176;},_0x2f8e8d=(_0x47567e,_0x4eac69)=>(_0x8d19a5,_0x197e3f)=>_0x4eac69(_0x8d19a5,_0x197e3f,_0x47567e);_0x3bccaa[_0x258f24(0x1b4)]=class extends _0x1102c8[_0x258f24(0x2b5)]{constructor(_0x597418,_0x4a0abf,_0x370b12,_0x17e9c7,_0x303f52){super(_0x597418,_0x4a0abf,_0x370b12,_0x17e9c7,_0x303f52);}async[_0x258f24(0xc3)](_0x551c74){const _0x4fbd6e=_0x258f24,_0x33c201=await this[_0x4fbd6e(0x218)](),_0x563009=this[_0x4fbd6e(0x2aa)](_0x551c74,_0x33c201);return this[_0x4fbd6e(0x2e9)](_0x563009);}[_0x258f24(0x2aa)](_0x1ec9c8,_0x1926ae){const _0x199853=_0x258f24,_0x20fd8d=typeof window>'u'?new URL(_0x1ec9c8):new URL(_0x1ec9c8,window[_0x199853(0x20b)][_0x199853(0x166)]);_0x20fd8d[_0x199853(0x2a8)][_0x199853(0x2dc)](_0x199853(0x174),_0x1926ae);const _0x17bbc5=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x199853(0xc0)]);return _0x17bbc5[_0x199853(0x1e9)](_0x199853(0xab))&&_0x20fd8d[_0x199853(0x2a8)]['set']('runId',_0x17bbc5[_0x199853(0x1e9)](_0x199853(0xab))),_0x20fd8d['toString']();}async[_0x258f24(0x218)](){const _0x42e6db=_0x258f24;var _0x50dcfe,_0x15abdc,_0x3aa864;const _0x517581=this[_0x42e6db(0xc7)][_0x42e6db(0x2c9)](_0x1102c8[_0x42e6db(0xa6)]),_0x2b10bf=(_0x50dcfe=_0x517581==null?void 0x0:_0x517581[_0x42e6db(0x2bd)])!=null?_0x50dcfe:_0x1102c8[_0x42e6db(0x201)];return(_0x3aa864=(_0x15abdc=(await this[_0x42e6db(0x1cb)][_0x42e6db(0x1e9)](_0x2b10bf,{'headers':{'Content-Type':'application/json'}}))[_0x42e6db(0x243)])==null?void 0x0:_0x15abdc[_0x42e6db(0x2fc)])!=null?_0x3aa864:'';}},_0x3bccaa[_0x258f24(0x1b4)]=_0x5b7c99([_0x2f8e8d(0x0,_0x3207a9[_0x258f24(0x1cc)](_0x3207a9[_0x258f24(0x173)])),_0x2f8e8d(0x1,_0x3207a9[_0x258f24(0x1cc)](_0x283bfb[_0x258f24(0x14f)])),_0x2f8e8d(0x2,_0x3207a9[_0x258f24(0x99)]),_0x2f8e8d(0x3,_0x3207a9['ILogService']),_0x2f8e8d(0x4,_0x3e7a87[_0x258f24(0x21c)])],_0x3bccaa[_0x258f24(0x1b4)]);const _0x158be3=0x7530,_0x453907='ACTIVE_UNIT_EVENT_CHANNEL';class _0x33d2e9 extends _0x3207a9[_0x258f24(0x17e)]{constructor(){const _0x3eea07=_0x258f24;super(),_0x1a27fd(this,_0x3eea07(0xa2),_0x3207a9[_0x3eea07(0x1e8)]()),_0x1a27fd(this,_0x3eea07(0x2f0),new Set()),_0x1a27fd(this,_0x3eea07(0x28a),new Map()),_0x1a27fd(this,_0x3eea07(0xcc),null),_0x1a27fd(this,'_clearOtherTimers',new Map()),_0x1a27fd(this,'_unitStatus',new Map()),this[_0x3eea07(0x154)]();}[_0x258f24(0x2f2)](){const _0x1f09e9=_0x258f24;super[_0x1f09e9(0x2f2)](),this[_0x1f09e9(0x275)]['forEach']((_0x42e45f,_0x54cffa)=>this[_0x1f09e9(0x27d)](_0x54cffa)),this[_0x1f09e9(0xcc)]&&window[_0x1f09e9(0x19e)](this[_0x1f09e9(0xcc)]);}[_0x258f24(0x27b)](_0x386316){const _0xda66f9=_0x258f24;return this[_0xda66f9(0x10a)](_0x386316)[_0xda66f9(0xc8)](_0xd000e2[_0xda66f9(0x265)]());}['editingUnit'](_0x2144e9){const _0x3ebdf1=_0x258f24;this[_0x3ebdf1(0x2f0)][_0x3ebdf1(0x106)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x3ebdf1(0x13d)](_0x2144e9),this[_0x3ebdf1(0x2fe)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2144e9],'isForwarded':!0x1});}['disposeUnit'](_0x2153a9){const _0x220236=_0x258f24;this['_selfUnitIDs'][_0x220236(0x95)](_0x2153a9),this[_0x220236(0x2f0)]['size']===0x0&&this[_0x220236(0xcc)]&&window[_0x220236(0x19e)](this[_0x220236(0xcc)]);}[_0x258f24(0x154)](){const _0x7635c=_0x258f24;this[_0x7635c(0x146)](_0x3207a9['toDisposable'](_0xd000e2['fromEvent'](window,_0x7635c(0x1c9))[_0x7635c(0x185)](_0x25f555=>{const _0x38ffb6=_0x7635c;if(_0x25f555[_0x38ffb6(0x2c7)]!==_0x453907||!_0x25f555[_0x38ffb6(0x163)])return;const _0x5c2113=JSON[_0x38ffb6(0x270)](_0x25f555[_0x38ffb6(0x163)]);this[_0x38ffb6(0x214)](_0x5c2113);}))),window[_0x7635c(0x10d)](_0x7635c(0x25b),()=>this[_0x7635c(0x2fe)]({'type':0x1,'memberID':this[_0x7635c(0xa2)],'unitIDs':Array[_0x7635c(0x2cd)](this[_0x7635c(0x2f0)])}));}[_0x258f24(0x214)](_0x2387b6){const _0x460b06=_0x258f24;switch(_0x2387b6[_0x460b06(0x2e1)]){case 0x0:this[_0x460b06(0x132)](_0x2387b6);break;case 0x1:this[_0x460b06(0x29c)](_0x2387b6);break;case 0x2:this['_handleHeartbeatEvent'](_0x2387b6);break;}}[_0x258f24(0x132)](_0x2ec25e){const _0x5127e8=_0x258f24,{unitIDs:_0x2ff53e,memberID:_0x2fd49f,isForwarded:_0x500c9a}=_0x2ec25e;_0x2ff53e[_0x5127e8(0x19c)](_0x44ddd9=>{const _0x9edcbb=_0x5127e8;if(!_0x500c9a&&this[_0x9edcbb(0x28a)]['has'](_0x44ddd9)&&this[_0x9edcbb(0x10a)](_0x44ddd9)[_0x9edcbb(0x14b)](_0x1102c8['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x9edcbb(0x28a)][_0x9edcbb(0x17b)](_0x44ddd9)||!this[_0x9edcbb(0x28a)][_0x9edcbb(0x1e9)](_0x44ddd9)[_0x9edcbb(0x17b)](_0x2fd49f)){const _0x3d8656=this[_0x9edcbb(0x28a)][_0x9edcbb(0x1e9)](_0x44ddd9)||new Set();_0x3d8656['add'](_0x2fd49f),this[_0x9edcbb(0x28a)]['set'](_0x44ddd9,_0x3d8656),this[_0x9edcbb(0x209)](_0x2fd49f);}}),_0x500c9a||this[_0x5127e8(0x2fe)]({'type':0x0,'memberID':this[_0x5127e8(0xa2)],'unitIDs':[...this[_0x5127e8(0x2f0)]],'isForwarded':!0x0});}[_0x258f24(0x209)](_0x2d908a){const _0x1792c6=_0x258f24;this[_0x1792c6(0x27d)](_0x2d908a);const _0x39e8c4=window[_0x1792c6(0x155)](()=>{const _0x408c17=_0x1792c6;this[_0x408c17(0x28a)][_0x408c17(0x19c)](_0x22df0c=>{const _0x2c5bad=_0x408c17;_0x22df0c[_0x2c5bad(0x95)](_0x2d908a);});},_0x158be3*0x2);this['_clearOtherTimers'][_0x1792c6(0x2dc)](_0x2d908a,_0x39e8c4);}[_0x258f24(0x27d)](_0x9f2fa6){const _0x5a0843=_0x258f24;if(this[_0x5a0843(0x275)][_0x5a0843(0x17b)](_0x9f2fa6)){const _0x9d7b2d=this[_0x5a0843(0x275)]['get'](_0x9f2fa6);_0x9d7b2d&&window[_0x5a0843(0x195)](_0x9d7b2d),this[_0x5a0843(0x275)][_0x5a0843(0x2dc)](_0x9f2fa6,null);}}[_0x258f24(0x29c)](_0x41d4d6){const _0x5150ea=_0x258f24,{memberID:_0x3568e6,unitIDs:_0x100773}=_0x41d4d6;_0x100773[_0x5150ea(0x19c)](_0x1f592a=>{const _0x35583c=_0x5150ea;var _0x25eb83;const _0x16b6e8=this[_0x35583c(0x28a)][_0x35583c(0x1e9)](_0x1f592a);_0x16b6e8&&(_0x16b6e8[_0x35583c(0x95)](_0x3568e6),(_0x25eb83=this[_0x35583c(0x10a)](_0x1f592a))==null||_0x25eb83['next'](_0x16b6e8[_0x35583c(0x106)]===0x0?_0x1102c8[_0x35583c(0x2d3)][_0x35583c(0x80)]:_0x1102c8[_0x35583c(0x2d3)][_0x35583c(0x297)]));}),this[_0x5150ea(0x27d)](_0x3568e6);}[_0x258f24(0x199)](_0x485f1e){const _0x52050e=_0x258f24;this[_0x52050e(0x209)](_0x485f1e[_0x52050e(0x1bd)]);}[_0x258f24(0x2fe)](_0x4c940e){const _0x8a659b=_0x258f24;localStorage[_0x8a659b(0x1d5)](_0x453907,JSON[_0x8a659b(0x289)](_0x4c940e));}['_scheduleHeartbeat'](){const _0x18a72f=_0x258f24;this[_0x18a72f(0xcc)]=window[_0x18a72f(0x149)](()=>{const _0x3c1dd1=_0x18a72f;this[_0x3c1dd1(0x2fe)]({'type':0x2,'memberID':this['_id']});},_0x158be3);}['_ensureSubject'](_0x2a2555){const _0x28e25b=_0x258f24;return this[_0x28e25b(0xe5)][_0x28e25b(0x17b)](_0x2a2555)||this[_0x28e25b(0xe5)][_0x28e25b(0x2dc)](_0x2a2555,new _0xd000e2[(_0x28e25b(0x1ed))](_0x1102c8[_0x28e25b(0x2d3)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x28e25b(0xe5)][_0x28e25b(0x1e9)](_0x2a2555);}}var _0x31b563=(_0x28b4cd=>(_0x28b4cd[_0x28b4cd[_0x258f24(0x2f8)]=0x0]=_0x258f24(0x2f8),_0x28b4cd[_0x28b4cd['OK']=0x1]='OK',_0x28b4cd[_0x28b4cd[_0x258f24(0x160)]=0x2]='INTERNAL_ERROR',_0x28b4cd[_0x28b4cd[_0x258f24(0x16d)]=0x3]=_0x258f24(0x16d),_0x28b4cd[_0x28b4cd[_0x258f24(0x2ac)]=0x4]=_0x258f24(0x2ac),_0x28b4cd[_0x28b4cd[_0x258f24(0x86)]=0x5]=_0x258f24(0x86),_0x28b4cd[_0x28b4cd[_0x258f24(0x23a)]=0x6]=_0x258f24(0x23a),_0x28b4cd[_0x28b4cd['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x28b4cd[_0x28b4cd[_0x258f24(0x7b)]=0x8]=_0x258f24(0x7b),_0x28b4cd[_0x28b4cd['COMPLETION_FINISHED']=0x9]=_0x258f24(0x197),_0x28b4cd[_0x28b4cd[_0x258f24(0x1e6)]=0xa]=_0x258f24(0x1e6),_0x28b4cd[_0x28b4cd[_0x258f24(0xa1)]=0x1389]=_0x258f24(0xa1),_0x28b4cd[_0x28b4cd[_0x258f24(0x2d0)]=0x1771]=_0x258f24(0x2d0),_0x28b4cd[_0x28b4cd['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x258f24(0x12d),_0x28b4cd[_0x28b4cd[_0x258f24(0x26d)]=0x1773]=_0x258f24(0x26d),_0x28b4cd[_0x28b4cd['APPLY_REJECT']=0x1b59]=_0x258f24(0x1d2),_0x28b4cd[_0x28b4cd[_0x258f24(0xd0)]=0x1b5a]=_0x258f24(0xd0),_0x28b4cd[_0x28b4cd[_0x258f24(0x290)]=0x1b5b]=_0x258f24(0x290),_0x28b4cd[_0x28b4cd[_0x258f24(0x91)]=0x1b5c]=_0x258f24(0x91),_0x28b4cd[_0x28b4cd['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x28b4cd[_0x28b4cd[_0x258f24(0x247)]=0x1f41]=_0x258f24(0x247),_0x28b4cd[_0x28b4cd[_0x258f24(0x29a)]=0x2329]=_0x258f24(0x29a),_0x28b4cd[_0x28b4cd[_0x258f24(0x272)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x28b4cd[_0x28b4cd[_0x258f24(0x2e5)]=0x232b]=_0x258f24(0x2e5),_0x28b4cd[_0x28b4cd[_0x258f24(0x1cf)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x28b4cd[_0x28b4cd[_0x258f24(0x277)]=0x232d]=_0x258f24(0x277),_0x28b4cd[_0x28b4cd[_0x258f24(0xf4)]=0x2711]=_0x258f24(0xf4),_0x28b4cd[_0x28b4cd[_0x258f24(0x2b1)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x28b4cd[_0x28b4cd['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x258f24(0x110),_0x28b4cd[_0x28b4cd[_0x258f24(0x11e)]=0x2714]=_0x258f24(0x11e),_0x28b4cd[_0x28b4cd[_0x258f24(0x305)]=0x271a]=_0x258f24(0x305),_0x28b4cd[_0x28b4cd['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x258f24(0x14d),_0x28b4cd[_0x28b4cd[_0x258f24(0x136)]=0x2af9]=_0x258f24(0x136),_0x28b4cd[_0x28b4cd['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x258f24(0x121),_0x28b4cd[_0x28b4cd['INVALID_INVITE_CODE']=0x2ee2]=_0x258f24(0xf2),_0x28b4cd[_0x28b4cd[_0x258f24(0x115)]=0x2ee3]=_0x258f24(0x115),_0x28b4cd[_0x28b4cd[_0x258f24(0x179)]=0x2ee4]=_0x258f24(0x179),_0x28b4cd[_0x28b4cd[_0x258f24(0x2e6)]=0x2ee5]=_0x258f24(0x2e6),_0x28b4cd[_0x28b4cd['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x258f24(0x28f),_0x28b4cd[_0x28b4cd[_0x258f24(0x1ad)]=0x32ca]=_0x258f24(0x1ad),_0x28b4cd[_0x28b4cd[_0x258f24(0x292)]=0x32cb]=_0x258f24(0x292),_0x28b4cd[_0x28b4cd['UNRECOGNIZED']=-0x1]=_0x258f24(0x239),_0x28b4cd))(_0x31b563||{}),_0x417cd8=Object[_0x258f24(0x26f)],_0x384027=(_0x15af9c,_0x4eabd4,_0x5dc956,_0x46dc18)=>{const _0x49cc83=_0x258f24;for(var _0x13e90f=_0x46dc18>0x1?void 0x0:_0x46dc18?_0x417cd8(_0x4eabd4,_0x5dc956):_0x4eabd4,_0x1ce585=_0x15af9c[_0x49cc83(0x2ee)]-0x1,_0x18e5ec;_0x1ce585>=0x0;_0x1ce585--)(_0x18e5ec=_0x15af9c[_0x1ce585])&&(_0x13e90f=_0x18e5ec(_0x13e90f)||_0x13e90f);return _0x13e90f;},_0x4f4403=(_0x54cb56,_0x170d2d)=>(_0x42cd1b,_0x9ae93b)=>_0x170d2d(_0x42cd1b,_0x9ae93b,_0x54cb56);_0x3bccaa[_0x258f24(0x12e)]=class extends _0x3207a9[_0x258f24(0x17e)]{constructor(_0x543adb,_0x438dad,_0x512054){const _0xb402fd=_0x258f24;super(),this['_instanceService']=_0x543adb,this[_0xb402fd(0x1cb)]=_0x438dad,this['_configService']=_0x512054;}async['runOnServer'](_0x56a834,_0x458ecf,_0x120704,..._0x639af3){const _0x27d423=_0x258f24;var _0x45a8a0,_0x239142,_0x2928e3,_0x2dd67d;const _0x5d7770=this[_0x27d423(0x8a)]['getFocusedUnit']();if(!_0x5d7770)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x48d171=((_0x45a8a0=this[_0x27d423(0xc7)][_0x27d423(0x2c9)](_0x1102c8[_0x27d423(0x1fb)]))!=null?_0x45a8a0:_0x1102c8[_0x27d423(0x263)])+'/'+_0x56a834+_0x27d423(0x2f4)+_0x458ecf,_0x265a8f=new URL(window[_0x27d423(0x20b)]['href']),_0x1ab8ee={'scriptId':_0x56a834,'runId':(_0x239142=_0x265a8f[_0x27d423(0x2a8)][_0x27d423(0x1e9)](_0x27d423(0xab)))!=null?_0x239142:'','function':_0x458ecf,'unitId':_0x5d7770[_0x27d423(0x266)](),'argsOfFunction':JSON[_0x27d423(0x289)](_0x639af3),'invokeId':(_0x2928e3=_0x120704['invokeId'])!=null?_0x2928e3:'','executionId':(_0x2dd67d=_0x120704[_0x27d423(0x24a)])!=null?_0x2dd67d:''};try{const _0x4286af=await this[_0x27d423(0x1cb)][_0x27d423(0x10c)](_0x48d171,{'body':_0x1ab8ee});return _0x4286af[_0x27d423(0x243)][_0x27d423(0x18b)]&&_0x4286af[_0x27d423(0x243)][_0x27d423(0x18b)][_0x27d423(0x2a1)]!==_0x31b563['OK']?_0x27d423(0x168):_0x4286af[_0x27d423(0x243)][_0x27d423(0xd9)];}catch{return _0x27d423(0x168);}}},_0x3bccaa[_0x258f24(0x12e)]=_0x384027([_0x4f4403(0x0,_0x3207a9[_0x258f24(0x18d)]),_0x4f4403(0x1,_0x3207a9[_0x258f24(0x1cc)](_0x283bfb[_0x258f24(0x14f)])),_0x4f4403(0x2,_0x3207a9[_0x258f24(0x99)])],_0x3bccaa['RemoteUniscriptService']),_0x3bccaa[_0x258f24(0x230)]=_0x113c68,_0x3bccaa[_0x258f24(0x1a2)]=_0x3a5050,_0x3bccaa['SheetCollabCursorShape']=_0x395e33,_0x3bccaa[_0x258f24(0xc4)]=_0x33d2e9,_0x3bccaa[_0x258f24(0x24f)]=_0x4c1e75,Object[_0x258f24(0x2ce)](_0x3bccaa,Symbol[_0x258f24(0x175)],{'value':_0x258f24(0x107)});}));