@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505171606 → 0.7.0-nightly.202505181606
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/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x45fd(_0x4035d2,_0x323b65){const _0x565804=_0x5658();return _0x45fd=function(_0x45fdc9,_0x5a584c){_0x45fdc9=_0x45fdc9-0x16e;let _0x4fd549=_0x565804[_0x45fdc9];return _0x4fd549;},_0x45fd(_0x4035d2,_0x323b65);}function _0x5658(){const _0xa90ddb=['M0\x200H16V16H0z','round','AWAITING','runId','getMemberID','onRendered','RichTextEditingMutation','onStarting','addClipboardHook','disposeUnit','startRow','@univerjs/engine-render','getColor','_startDocCollabCursor','...','string','_revisionService','getRangePointData','INVALID_INVITE_CODE','status$','LOCAL_CACHE_INTERVAL','CollaborationController','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collaborationController','_textBubble','toString','TEXT','getUnitId','displayName','with','DocCollaborationEntity','ISnapshotServerService','_renderManagerService','touchDependencies','_docSkeletonManagerService','idSuffix','WebBrowserSingleActiveUnitService','INVITE_CODE_REQUIRED','_drawAnchor','height','session.will-retry','pipe','NodePositionConvertToCursor','getUnhiddenWorksheets','source','onMouseMove','_univerInstanceService','engine','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','transformSelections','YUUMI_UNABLE_LOAD_URL','Disposable','yellow.400','handleInsertRow','wsSessionTicketUrl','_handleEvent','registerRefRange','getMember','measureText','setInterval','ISocketService','LICENSE_DISTRO_REJECTED','RemoveColCommandId','UNIVER_DOC','createInstance','black','_init','UniverDocs','collabCursorState$','SHEET_VIEWPORT_KEY','YUUMI_RATE_OVER_LIMIT','SetDocZoomRatioOperation','defineProperty','_initStatusComponent','entries','runRefRangeMutations','flatMap','exhaustSavingTask','OFFLINE','MOBILE_HAS_BEEN_BOUND','getVpScrollXYInfoByPosToVp','useRef','deepClone','debounceTime','colorChannel1','DisposableCollection','rxjs','replace','_instanceService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','icon','Warning','FromArray','endColumn','setItem','memberID','_status$','history','requireSession','INVALID_ARGUMENT','_initResize','_httpService','init','collab-client.tooltip.reconnect','MessageType','text','UPDATE_CURSOR','mask','@univerjs/network','IDocClipboardService','_configService','rxjs/operators','Injector','call','InsertRowCommandId','_cachedData','entityInit$','column','hasOwnProperty','getParam','@univerjs/docs','EffectRefRangId','split','getRenderById','shareReplay','complete','SetSelectionsOperation','location','onCommandExecuted','takeUntil','_initCommandExecutedListener','OTHER_CLIENTS_EDITING','range','contains','addEventListener','@univerjs/rpc','_cursorInfo$','3051000oEKHHY','eventID','isTransformMutationsWithChangesetSuccess','1em','show','registerComponent','UNDEFINED','loadOfflineData','getConfig','_disabled','_refreshCollabCursors','unitID','296280SfzDev','newValue','_scene','UniverInstanceType','InsertRangeMoveRightCommandId','_scheduleHeartbeat','APPLY_REVISION_CONFILICT','_roomMembers$','Error','_transformHistoryAndStateStack','onPointerEnter$','onPointerLeave$','toRgbString','_sheetSkeletonManagerService','BuiltInUIPart','hovered','Vector2','NodePositionConvertToRectRange','_updateSubUnitFromURLParams','124025iYwIdt','min','m2Prime','_registerRenderDependencies','lineTo','restore','_eventUnsubscribe','ILogService','_docTransformIMECacheService','combineLatest','_session','redoState','addObject','_id','MemberService','USER_NOT_INVITED_CODE','197468dxckBR','none','reconnect','then','SheetsSelectionsService','evenodd','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_docClipboardService','_getSheetObject','_shapes','generateRandomId','_drawTextRange','_entityInit$','ticket','_onRefRangeChange','labelPosition','JOIN_ROOM_FAILED','_anchor','EMAIL_HAS_BEEN_BOUND','_heartbeatTimer','_toggleOffline','extend','getSheetId','transformMutation','setShapeProps','APPLY_REJECT','handleInsertCol','@univerjs/drawing','TRANSFORM_CHANGE_OBSERVABLE_TYPE','type','makeDirty','handleInsertRangeMoveDown','_uiPartsService','InsertColCommandId','_initDependencies','_updateCollabCursors','@univerjs/design','_document','IRenderManagerService','exports','backgroundColor','_beforeCloseService','executeCommand','LICENSE_EXPORT_SIZE_EXCEEDED','univer-flex\x20univer-mr-2\x20univer-text-xl','collaboration-client-ui.config','_cursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','selection','findNodePositionByCharIndex','OTHER_CLIENT_EDITING','path','UniverCollaborationClientPlugin','HEADER_MENU','save','RECT','whenReady','toStringTag','setTimeout','rgba(255,\x20255,\x20255,\x200.01)','getStateCache','_unitStatus','654276YnYCCP','Tools','has','undoState','ranges','toDisposable','addHandlerCallback','CONNECTOR_DATA_TOO_LARGE','subscribeEvent','_scheduleSaving','_collaborationUIEventService','data','arc','getCurrent','transform','subunit','UniverEngineRender','useCallback','getItem','YUUMI_ASYNCIO_CANCELLED','useDependency','_selfUnitIDs','transformByState','_getSessionTicket','_localCacheService','APPLY_PERMISSION_DENIED','purple.300','unshift','selections','UniverProCollaborationClientUi','DataLoaderService','react/jsx-runtime','registerRenderModule','_injector','invokeId','_assignedColors','BrowserCollaborationSocketService','updateOfflineData','_getMergeRange','DocSelectionManagerService','UniverCollaborationClientUIPlugin','CollaborationStatus','svg','dispose','_collabSessionService','SheetCollabCursorShape','SNAPSHOT_HAS_BEEN_REMOVED','Inject','registerBeforeClose','@univerjs/engine-formula','INotificationService','get','SYNCED','_scheduleClearOtherTimer','connectInjector','SUBMIT_CHANGESET_TIMEOUT','moveTo','saveOfflineData','Unknown\x20user','UniverProCollaborationClient','HTTPService','forwardRef','_docTransformStateCacheService','DocSkeletonManagerService','syncEditingCollabCursor','ColorKit','_drawRectRange','_online','getFocusedUnit','event$','0\x200\x2016\x2016','ONLINE','transformStateCache','/run/','PERMISSION_DENIED','roomMembers$','@univerjs/ui','_collabCursorController','isActive','_toggleOnline','ITransformService','UnitStatus','IMessageService','CommandType','disposeWithMe','getUniverSheetInstance','propertyIsEnumerable','YUUMI_NO_CUBOID_FOR_QUESTION','body','font','LICENSE_IMPORT_SIZE_EXCEEDED','_range','_handleJoinEvent','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_initEntityListener','fromEvent','prototype','replaceState','send','IConfigService','switchMap','_localeService','collaboration.single-unit.warning','clearInterval','NOT_COLLAB','onPointerMove$','currentTheme$','tag','LOGIN_FAILED','WECHAT_HAS_BEEN_BOUND','getTypeOfUnitAdded$','Failed','_removeCollabCursors','DOC_RANGE_TYPE','@univerjs/docs-ui','defs','blue.400','_color','CollaborationDataLoaderController','[CollaborationDataLoaderController]','width','isTransformMutationFailure','setAlpha','_logService','addObjects','react','search','@univerjs-pro/collaboration','CollaborationSessionService','_initStatusListener','LICENSE_MAX_UNITS_EXCEEDED','React','BehaviorSubject','DesktopCollaborationStatusDisplayController','delete','fill','className','defIds','disableLocalCache','getCollabCursors$','ACTIVE_UNIT_EVENT_CHANNEL','unitId','UniverIcon','_transformService','_initEvent','closePath','urlChange$','_setupSubUnitSync','_urlService','_saveTaskMap','m1Prime','roomMembers','_themeService','_syncEditingCollabCursorService','_lastPointer','Subject','setParam','RefRangeService','href','jsx','getCurrentSelections','_localStorageService','sessionStatus$','TEXT_RANGE_LAYER_INDEX','symbol','UniverUi','YUUMI_AI_RUN_FAILED','NO_OTHER_CLIENTS_EDITING','DependentOn','stringify','univerjs-icon\x20univerjs-icon-','fromEventSubject','transformMutationsWithChangeset','concat','some','IImageIoService','createIdentifier','triggerDblclick','_config','clearTimeout','map','createSocket','TOO_MANY_REQUESTS','on-line-single','getAncestorScale','INVITE_CODE_ALREADY_BOUND','merge','_hideTimer','handleIRemoveCol','_memberService','filter','PENDING','add','LocaleService','_render','error','_docTransformSelectionsService','AWAITING_WITH_PENDING','setStateCache','trim','_cursorShapes','runOnServer','ThemeService','off-line-single','loadUnit','getColorFromTheme','Rect','assign','name','drawWith','_removeClearOtherTimer','getSheetObject','VIEW_MAIN','subscribe','collab-text-anchor-','debug','apply','collabStatus.notCollab','SessionStatus','_createSocketURL','fillText','enableLocalCache','onLocalMutation','_cursors','getOwnPropertyDescriptor','UniverRpc','activeSheet$','UNAUTHENTICATED','_draw','attrs','_labelPosition','_refRangeService','UNRECOGNIZED','_saveCache','_context','getValue','_docStateChangeManagerService','IUIPartsService','_updateURLWithCurrentState','executionId','RegularPolygon','subUnitId','_send','MUTATION','UniverSheets','_transformPreviousActiveRange','distinctUntilChanged','INVITE_CODE_HAS_BEEN_UES','off-line-single_clip0_910_343','dispose$','values','PY_RUNTIME_SCRIPT_ERROR','xlink:href','removeParam','startColumn','collabStatus.offline','forEach','createElement','mutations','focused$','SNAPSHOT_INVALID_SNAPSHOT','ILocalCacheService','_notificationService','asObservable','_name','origin','WebSocketService','ICommandService','_commandService','div','DocIMEInputManagerService','mergeOverrideWithDependencies','override','textRanges','_handleHeartbeatEvent','_hovered','cursorInfo','cursorInfo$','collaboration.closeRoom','_getAnchorBounding','DeleteRangeMoveUpCommandId','indexOf','_docSyncEditingCollabCursorService','USERS_LEAVE','startsWith','throttleTime','size','_messageService','operators','getActiveSheet','UniverCore','getCellPositionByOffset','getTypeOfUnitDisposed$','3mHfKZs','RevisionService','hide','_entities','row','onTransformChange$','_backgroundColor','Shape','push','isArray','fillStyle','getUnitStatus$','unsubscribe','_onCursorDelete','color','jiqing.500','_docSkeleton','InsertRangeMoveDownCommandId','COLORS','COMPLETION_FINISHED','max','getDocRanges','set','getUndoRedoMutationParamsCache','RemoveRowCommandId','doc.mutation.rich-text-editing','find','unit','@univerjs/sheets-ui','getCoordByCell','APPLY_DUPLICATED','RxDisposable','all','APPLY_NON_SEQUENTIAL_REVISION','CollaborationEvent','searchParams','handleIRemoveRow','_onCursorUpdate','FETCH_MISS','DocStateChangeManagerService','INTERNAL_ERROR','Optional','getCurrentRevOfUnit','@univerjs-pro/collaboration-client','substring','getCurrentUnitForType','session.connection-failed','length','key','_clearOtherTimers','_colorIndex','_transformUndoRedoStack','ALREADY_EXISTS','16JvUQTr','_colorAssignService','_registerDependencies','bottom','red.300','collab-text-range-','getMergeData','imageSourceType','WebURLService','children','UniverDesign','CONFLICT','UniverDocsUi','current','OnLineSingle','from','OffLineSingle','CollaborationUIEventId','_hover','actions','SOCKET_FAILED_RETRY','_collabCursorState$','1201011EFUONK','function','on-line-single_clip0_910_349','params','popstate','_anchorDot','getCollabEntity$','DeleteRangeMoveLeftCommandId','random','transformIMECache','_unitOnClients','#fff','translate(.97)','debounce','assignAColorForMemberID','getSheetBySheetId','_getSaveTimeout','transformRemoteChangeset','docStateChange$','next','_ensureSubject','UNIVER_SHEET','currentColor','85797GOgkko','IUniverInstanceService','pushState','jsxs','beginPath','handleDeleteRangeMoveUp','@univerjs/core','_setupBeforeClosingHandler','_getScale','RemoteUniscriptService','registerDependencies','_updateLocalCursor','getOwnPropertySymbols','DEFAULT_WS_SESSION_TICKET_URL','ENSURE_SNAPSHOT_EXECUTION','UniverSheetsUi','_startSheetCollabCursor','SOCKET_FAILED','deserializeRangeWithSheet','CHANGESET_REVISION_CONFILICT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'];_0x5658=function(){return _0xa90ddb;};return _0x5658();}(function(_0x105fd2,_0x2ebb57){const _0x464770=_0x45fd,_0x576af2=_0x105fd2();while(!![]){try{const _0x54196a=-parseInt(_0x464770(0x381))/0x1+parseInt(_0x464770(0x1fa))/0x2+-parseInt(_0x464770(0x31f))/0x3*(-parseInt(_0x464770(0x1bb))/0x4)+-parseInt(_0x464770(0x1ab))/0x5+-parseInt(_0x464770(0x198))/0x6+parseInt(_0x464770(0x36a))/0x7*(parseInt(_0x464770(0x354))/0x8)+-parseInt(_0x464770(0x18c))/0x9;if(_0x54196a===_0x2ebb57)break;else _0x576af2['push'](_0x576af2['shift']());}catch(_0x48d2a4){_0x576af2['push'](_0x576af2['shift']());}}}(_0x5658,0x35dfd),function(_0x580677,_0x151470){const _0x440033=_0x45fd;typeof exports=='object'&&typeof module<'u'?_0x151470(exports,require('@univerjs-pro/collaboration-client'),require(_0x440033(0x387)),require(_0x440033(0x3a1)),require('@univerjs/network'),require('@univerjs/docs-ui'),require(_0x440033(0x1d6)),require('rxjs'),require(_0x440033(0x17b)),require(_0x440033(0x279)),require(_0x440033(0x22b)),require('@univerjs/sheets'),require(_0x440033(0x172)),require(_0x440033(0x33b)),require('react/jsx-runtime'),require(_0x440033(0x246)),require(_0x440033(0x1df)),require('react'),require(_0x440033(0x18a))):typeof define==_0x440033(0x36b)&&define['amd']?define([_0x440033(0x1e2),_0x440033(0x34a),_0x440033(0x387),_0x440033(0x3a1),_0x440033(0x16f),_0x440033(0x26c),_0x440033(0x1d6),'rxjs','@univerjs/docs','@univerjs-pro/collaboration',_0x440033(0x22b),'@univerjs/sheets',_0x440033(0x172),'@univerjs/sheets-ui',_0x440033(0x219),_0x440033(0x246),_0x440033(0x1df),_0x440033(0x277),_0x440033(0x18a)],_0x151470):(_0x580677=typeof globalThis<'u'?globalThis:_0x580677||self,_0x151470(_0x580677[_0x440033(0x217)]={},_0x580677[_0x440033(0x235)],_0x580677[_0x440033(0x31c)],_0x580677[_0x440033(0x20a)],_0x580677['UniverNetwork'],_0x580677[_0x440033(0x360)],_0x580677['UniverDrawing'],_0x580677['rxjs'],_0x580677[_0x440033(0x3d9)],_0x580677['UniverProCollaboration'],_0x580677['UniverEngineFormula'],_0x580677[_0x440033(0x2ee)],_0x580677[_0x440033(0x3ec)][_0x440033(0x31a)],_0x580677[_0x440033(0x390)],_0x580677['React'],_0x580677[_0x440033(0x29f)],_0x580677[_0x440033(0x35e)],_0x580677[_0x440033(0x27d)],_0x580677[_0x440033(0x2db)]));}(this,function(_0x420e4b,_0x505ca1,_0x2a357a,_0x4dd679,_0x4e7e7b,_0x32c769,_0x302ef1,_0x224c35,_0x1d4864,_0x8d16e0,_0x17ecc0,_0xb393d1,_0xf527a8,_0x5eb834,_0x40a1df,_0xbe19f3,_0x21e5c5,_0x5982ca,_0x215223){'use strict';const _0x50d4f7=_0x45fd;var _0x549868=Object[_0x50d4f7(0x3de)],_0x58c1b5=(_0x1792ce,_0x2d862b,_0x920766)=>_0x2d862b in _0x1792ce?_0x549868(_0x1792ce,_0x2d862b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x920766}):_0x1792ce[_0x2d862b]=_0x920766,_0x1bb9f9=(_0x28b971,_0x35af34,_0x29768d)=>_0x58c1b5(_0x28b971,typeof _0x35af34!=_0x50d4f7(0x29e)?_0x35af34+'':_0x35af34,_0x29768d),_0x2b90fe=Object['getOwnPropertyDescriptor'],_0x575bc4=(_0xa7e1d2,_0x2495e1,_0x2bf588,_0x52c734)=>{const _0x36e6e6=_0x50d4f7;for(var _0x4efdff=_0x52c734>0x1?void 0x0:_0x52c734?_0x2b90fe(_0x2495e1,_0x2bf588):_0x2495e1,_0x3da559=_0xa7e1d2[_0x36e6e6(0x34e)]-0x1,_0xcd5051;_0x3da559>=0x0;_0x3da559--)(_0xcd5051=_0xa7e1d2[_0x3da559])&&(_0x4efdff=_0xcd5051(_0x4efdff)||_0x4efdff);return _0x4efdff;},_0xf620b1=(_0x442c27,_0x26a1f1)=>(_0x1758c8,_0x5c80fe)=>_0x26a1f1(_0x1758c8,_0x5c80fe,_0x442c27);let _0x1e2940=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0x48fae0,_0x2e7ffe){const _0x17e698=_0x50d4f7;super(),this[_0x17e698(0x1c2)]=_0x48fae0,this['_imageIoService']=_0x2e7ffe,this[_0x17e698(0x3d8)]();}['_init'](){const _0x3745ce=_0x50d4f7,_0x40b915=this;this[_0x3745ce(0x24e)](this[_0x3745ce(0x1c2)][_0x3745ce(0x39e)]({'onBeforePasteImage':async _0x3a88cb=>{const _0x3d12cd=_0x3745ce,_0x52b655=await _0x40b915['_imageIoService']['saveImage'](_0x3a88cb);return _0x52b655?{'source':_0x52b655[_0x3d12cd(0x3c2)],'imageSourceType':_0x52b655[_0x3d12cd(0x35b)]}:null;}}));}};_0x1e2940=_0x575bc4([_0xf620b1(0x0,_0x32c769[_0x50d4f7(0x170)]),_0xf620b1(0x1,_0x302ef1[_0x50d4f7(0x2a9)])],_0x1e2940);const _0x405ea0=[_0x50d4f7(0x214),_0x50d4f7(0x32e),'green.600',_0x50d4f7(0x358),_0x50d4f7(0x26e),_0x50d4f7(0x3ca)];class _0x5d8afc extends _0x2a357a[_0x50d4f7(0x3c9)]{constructor(){const _0x1f68d1=_0x50d4f7;super(...arguments),_0x1bb9f9(this,_0x1f68d1(0x21d),new Map()),_0x1bb9f9(this,_0x1f68d1(0x351),0x0);}['assignAColorForMemberID'](_0x3781ce){const _0x4cb809=_0x50d4f7;if(this[_0x4cb809(0x21d)][_0x4cb809(0x1fc)](_0x3781ce))return this[_0x4cb809(0x21d)][_0x4cb809(0x22d)](_0x3781ce);const _0x550154=_0x405ea0[this[_0x4cb809(0x351)]];return this['_colorIndex']=(this[_0x4cb809(0x351)]+0x1)%_0x405ea0[_0x4cb809(0x34e)],this[_0x4cb809(0x21d)][_0x4cb809(0x335)](_0x3781ce,_0x550154),_0x550154;}}function _0x5c86f6(_0x7a09f1){const _0x2ba834=_0x50d4f7;let _0x58256f='';for(const _0x34374c of _0x7a09f1){const {startOffset:_0x37fb4d,endOffset:_0x47229a,isActive:_0x418d80,rangeType:_0x160ce7,segmentId:_0x2eb14b,segmentPage:_0x566b54}=_0x34374c;_0x58256f[_0x2ba834(0x34e)]&&(_0x58256f+=','),_0x58256f+=_0x37fb4d+':'+_0x47229a+':'+(_0x418d80?'1':'0')+':'+_0x160ce7+':'+_0x2eb14b+':'+_0x566b54;}return _0x58256f;}function _0x103b31(_0x53bfc3){const _0x33b093=_0x50d4f7,_0x217be3=_0x53bfc3[_0x33b093(0x17d)](','),_0x512775=[];for(const _0x1c0575 of _0x217be3){const [_0x278982,_0x225f2b,_0x84aae3,_0x58df8f,_0x129996,_0x5b6e61]=_0x1c0575[_0x33b093(0x17d)](':');_0x512775[_0x33b093(0x327)]({'startOffset':Number(_0x278982),'endOffset':Number(_0x225f2b),'collapsed':_0x278982===_0x225f2b,'isActive':_0x84aae3==='1','rangeType':_0x58df8f===_0x2a357a[_0x33b093(0x26b)][_0x33b093(0x3b0)]?_0x2a357a['DOC_RANGE_TYPE']['TEXT']:_0x2a357a[_0x33b093(0x26b)][_0x33b093(0x1f3)],'segmentId':typeof _0x129996==_0x33b093(0x3a5)?String(_0x129996):'','segmentPage':Number(_0x5b6e61!=null?_0x5b6e61:-0x1)});}return _0x512775[_0x33b093(0x2a8)](_0x3ee239=>_0x3ee239['isActive'])||(_0x512775[0x0][_0x33b093(0x248)]=!0x0),_0x512775;}class _0x5baa2e extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(){const _0x434fda=_0x50d4f7;super(...arguments),_0x1bb9f9(this,_0x434fda(0x369),new _0x224c35['BehaviorSubject'](null)),_0x1bb9f9(this,_0x434fda(0x3da),this[_0x434fda(0x369)][_0x434fda(0x301)]());}[_0x50d4f7(0x23a)](_0x5f4716){const _0x3578c8=_0x50d4f7,{unitID:_0x1ea1bd,memberID:_0x102dd6,textRanges:_0x2b4a21}=_0x5f4716,_0x61614b=_0x5c86f6(_0x2b4a21);if(_0x61614b==='')return;const _0x5e133c={'unitID':_0x1ea1bd,'memberID':_0x102dd6,'selection':_0x61614b};this['_collabCursorState$'][_0x3578c8(0x37d)](_0x5e133c);}}var _0x476b80=Object['getOwnPropertyDescriptor'],_0x6b92b4=(_0x28ba7c,_0xe7cc0,_0x3d6735,_0x55c07f)=>{const _0x4eda3b=_0x50d4f7;for(var _0x3a2e0d=_0x55c07f>0x1?void 0x0:_0x55c07f?_0x476b80(_0xe7cc0,_0x3d6735):_0xe7cc0,_0x330587=_0x28ba7c[_0x4eda3b(0x34e)]-0x1,_0x5a318d;_0x330587>=0x0;_0x330587--)(_0x5a318d=_0x28ba7c[_0x330587])&&(_0x3a2e0d=_0x5a318d(_0x3a2e0d)||_0x3a2e0d);return _0x3a2e0d;},_0x404043=(_0x593a53,_0x518ba7)=>(_0x3f5a49,_0xad637c)=>_0x518ba7(_0x3f5a49,_0xad637c,_0x593a53);const _0x3fd016=0x12c,_0x98ea2c=0x64;let _0x1e868f=class extends _0x2a357a['RxDisposable']{constructor(_0x10e167,_0x1ffb83,_0x1cb2a0,_0x952297,_0x5276b0,_0x1bd8dd,_0x84f66,_0x5b0998,_0x9a6e4f){const _0x4456d0=_0x50d4f7;super(),_0x1bb9f9(this,'_online',!0x1),_0x1bb9f9(this,_0x4456d0(0x3d8),!0x1),_0x1bb9f9(this,'_cursorInfo$',new _0x224c35[(_0x4456d0(0x27e))](new Map())),_0x1bb9f9(this,_0x4456d0(0x30f),this[_0x4456d0(0x18b)][_0x4456d0(0x301)]()),_0x1bb9f9(this,_0x4456d0(0x19f),new _0x224c35['BehaviorSubject']([])),_0x1bb9f9(this,_0x4456d0(0x245),this['_roomMembers$'][_0x4456d0(0x3bf)](_0x224c35[_0x4456d0(0x3e9)](_0x3fd016))),_0x1bb9f9(this,'_updateLocalCursor',_0x2a357a[_0x4456d0(0x377)](_0x27d0ea=>{const _0x5ae7a9=_0x4456d0,_0x72e4d6={'eventID':_0x8d16e0[_0x5ae7a9(0x341)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x5ae7a9(0x197)],'memberID':this[_0x5ae7a9(0x1b5)][_0x5ae7a9(0x39a)](),'selection':_0x5c86f6(_0x27d0ea)}};this[_0x5ae7a9(0x1b5)][_0x5ae7a9(0x25c)](_0x72e4d6,this[_0x5ae7a9(0x197)]);},_0x98ea2c)),(this[_0x4456d0(0x197)]=_0x10e167,this[_0x4456d0(0x1b5)]=_0x1ffb83,this[_0x4456d0(0x21b)]=_0x1cb2a0,this['_colorAssignService']=_0x952297,this[_0x4456d0(0x2b7)]=_0x5276b0,this[_0x4456d0(0x293)]=_0x1bd8dd,this[_0x4456d0(0x289)]=_0x84f66,this[_0x4456d0(0x3c4)]=_0x5b0998,this[_0x4456d0(0x306)]=_0x9a6e4f);}get[_0x50d4f7(0x30e)](){const _0x2adc9a=_0x50d4f7;return this['_cursorInfo$'][_0x2adc9a(0x2e5)]();}get['roomMembers'](){const _0x6cfe5=_0x50d4f7;return this['_roomMembers$'][_0x6cfe5(0x2e5)]();}['dispose'](){const _0x27e7b6=_0x50d4f7;super['dispose'](),this['_cursorInfo$'][_0x27e7b6(0x37d)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this[_0x27e7b6(0x19f)][_0x27e7b6(0x180)]();}[_0x50d4f7(0x3fc)](){const _0x44c6ad=_0x50d4f7;this[_0x44c6ad(0x3d8)]||(this['_init']=!0x0,this[_0x44c6ad(0x1b5)]['sessionStatus$'][_0x44c6ad(0x3bf)](_0x224c35[_0x44c6ad(0x184)](this[_0x44c6ad(0x2f3)]))[_0x44c6ad(0x2cf)](_0x1b2f43=>{const _0x2ac7a8=_0x44c6ad;_0x1b2f43===_0x505ca1['SessionStatus'][_0x2ac7a8(0x241)]?this[_0x2ac7a8(0x249)]():this[_0x2ac7a8(0x1cf)]();}),this['_session'][_0x44c6ad(0x23f)]['pipe'](_0x224c35[_0x44c6ad(0x184)](this['dispose$']))[_0x44c6ad(0x2cf)](_0x6ad7a1=>{const _0x35ca81=_0x44c6ad,_0x4c608c=_0x6ad7a1['eventID'];_0x4c608c===_0x8d16e0[_0x35ca81(0x341)]['UPDATE_CURSOR']&&this[_0x35ca81(0x344)](_0x6ad7a1),_0x4c608c===_0x8d16e0[_0x35ca81(0x341)][_0x35ca81(0x315)]&&this[_0x35ca81(0x32c)](_0x6ad7a1);}),this[_0x44c6ad(0x24e)](this['_commandService'][_0x44c6ad(0x183)](_0xf3b9fc=>{const _0x6c43b0=_0x44c6ad,_0x3862d4=_0xf3b9fc['params'];_0x3862d4!=null&&this[_0x6c43b0(0x23d)]&&_0xf3b9fc['id']===_0x1d4864['SetTextSelectionsOperation']['id']&&_0x3862d4[_0x6c43b0(0x287)]===this[_0x6c43b0(0x197)]&&_0x3862d4['isEditing']===!0x1&&_0x3862d4['ranges'][_0x6c43b0(0x34e)]>0x0&&this[_0x6c43b0(0x38c)](_0x3862d4[_0x6c43b0(0x1fe)]);})),this[_0x44c6ad(0x293)][_0x44c6ad(0x3da)][_0x44c6ad(0x3bf)](_0x224c35[_0x44c6ad(0x184)](this[_0x44c6ad(0x2f3)]))[_0x44c6ad(0x2cf)](_0x43cf91=>{const _0x4089c3=_0x44c6ad;if((_0x43cf91==null?void 0x0:_0x43cf91[_0x4089c3(0x197)])!==this[_0x4089c3(0x197)])return;const _0x3be6f6={'eventID':_0x8d16e0['CollaborationEvent'][_0x4089c3(0x400)],'data':_0x43cf91};this[_0x4089c3(0x344)](_0x3be6f6);}),this[_0x44c6ad(0x24e)](this['_commandService'][_0x44c6ad(0x183)](_0x3d7198=>{const _0x3e68a2=_0x44c6ad;if(_0x3d7198['params']==null)return;const _0x27e212=_0x3d7198[_0x3e68a2(0x36d)];if(_0x3d7198['id']!==_0x1d4864[_0x3e68a2(0x39c)]['id']||_0x27e212[_0x3e68a2(0x287)]!==this['unitID'])return;const _0x139dbd={'id':_0x3e68a2(0x338),'params':_0x27e212},_0x4655c5=this['cursorInfo'];for(const [_0x465244,_0x372380]of _0x4655c5){const _0x3d1bae={'id':_0x3e68a2(0x338),'params':{'unitId':this[_0x3e68a2(0x197)],'actions':null,'textRanges':_0x372380[_0x3e68a2(0x1fe)]}},_0xf18cc0=this[_0x3e68a2(0x289)]['transformMutation'](_0x139dbd,_0x3d1bae,!0x1);if(_0x8d16e0['isTransformMutationFailure'](_0xf18cc0))throw _0xf18cc0['error'];_0x4655c5[_0x3e68a2(0x335)](_0x465244,{..._0x372380,'ranges':_0xf18cc0['m2Prime'][_0x3e68a2(0x36d)]['textRanges']});}queueMicrotask(()=>{const _0x4f157a=_0x3e68a2;this[_0x4f157a(0x18b)][_0x4f157a(0x37d)](_0x4655c5);});})));}[_0x50d4f7(0x344)](_0x54c322){const _0x11814c=_0x50d4f7;var _0x39e39f,_0x1f7c50;const {memberID:_0x48117d,selection:_0x423e04}=_0x54c322[_0x11814c(0x205)],_0x1a7596=_0x103b31(_0x423e04),_0x1b3a46=(_0x1f7c50=(_0x39e39f=this[_0x11814c(0x2b7)]['getMember'](this['unitID'],_0x48117d))==null?void 0x0:_0x39e39f['name'])!=null?_0x1f7c50:_0x11814c(0x234),_0xd3ae9d={'color':this[_0x11814c(0x355)]['assignAColorForMemberID'](_0x48117d),'name':_0x1b3a46,'ranges':_0x1a7596},_0x21a75a=this[_0x11814c(0x30e)];_0x21a75a[_0x11814c(0x335)](_0x48117d,_0xd3ae9d),this[_0x11814c(0x18b)]['next'](_0x21a75a);}[_0x50d4f7(0x32c)](_0x39cfff){const _0x2147d6=_0x50d4f7,{memberID:_0x53927b}=_0x39cfff['data'],_0x4c3881=this[_0x2147d6(0x30e)];_0x4c3881[_0x2147d6(0x280)](_0x53927b),this[_0x2147d6(0x18b)][_0x2147d6(0x37d)](_0x4c3881);}[_0x50d4f7(0x249)](){const _0x3ea2fe=_0x50d4f7;var _0x1b96ac;if(this[_0x3ea2fe(0x23d)]=!0x0,((_0x1b96ac=this['_univerInstanceService'][_0x3ea2fe(0x23e)]())==null?void 0x0:_0x1b96ac[_0x3ea2fe(0x3b1)]())!==this[_0x3ea2fe(0x197)])return;const _0x5c673d=this[_0x3ea2fe(0x21b)][_0x3ea2fe(0x22d)](_0x1d4864[_0x3ea2fe(0x221)])['getDocRanges']();Array[_0x3ea2fe(0x328)](_0x5c673d)&&_0x5c673d[_0x3ea2fe(0x34e)]>0x0&&this[_0x3ea2fe(0x38c)](_0x5c673d);}[_0x50d4f7(0x1cf)](){this['_online']=!0x1;}};_0x1e868f=_0x6b92b4([_0x404043(0x2,_0x2a357a['Inject'](_0x2a357a['Injector'])),_0x404043(0x3,_0x2a357a['Inject'](_0x5d8afc)),_0x404043(0x4,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1[_0x50d4f7(0x1b9)])),_0x404043(0x5,_0x2a357a[_0x50d4f7(0x229)](_0x5baa2e)),_0x404043(0x6,_0x8d16e0[_0x50d4f7(0x24a)]),_0x404043(0x7,_0x2a357a[_0x50d4f7(0x382)]),_0x404043(0x8,_0x2a357a['ICommandService'])],_0x1e868f);var _0x286e7b=Object[_0x50d4f7(0x2da)],_0x2e3e43=(_0x4ac63c,_0x2ac178,_0x42b5b5,_0x231586)=>{const _0x441fd6=_0x50d4f7;for(var _0x477138=_0x231586>0x1?void 0x0:_0x231586?_0x286e7b(_0x2ac178,_0x42b5b5):_0x2ac178,_0x2bbe36=_0x4ac63c[_0x441fd6(0x34e)]-0x1,_0x179501;_0x2bbe36>=0x0;_0x2bbe36--)(_0x179501=_0x4ac63c[_0x2bbe36])&&(_0x477138=_0x179501(_0x477138)||_0x477138);return _0x477138;},_0x267e8d=(_0x49d0e2,_0x4f2b25)=>(_0x4d0a31,_0x10ef12)=>_0x4f2b25(_0x4d0a31,_0x10ef12,_0x49d0e2);const _0x35eb41=0x12c,_0x76ad3b=0x64,_0x39c736=()=>{let _0x1c3cac=[],_0x3063a7=!0x1;return _0x5d95ce=>{const _0x13a6db=_0x45fd;_0x1c3cac[_0x13a6db(0x327)](_0x5d95ce),_0x3063a7||(_0x3063a7=!0x0,setTimeout(()=>{const _0x14d701=_0x13a6db;_0x1c3cac[_0x14d701(0x2fa)](_0x43aa1b=>_0x43aa1b()),_0x1c3cac=[],_0x3063a7=!0x1;}));};};let _0x568503=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0x4e86a4,_0x3fb917,_0x492369,_0xd7969a,_0xec3904,_0x8b2feb,_0x1a4089,_0x539a2a){const _0x4e1d5c=_0x50d4f7;super(),_0x1bb9f9(this,_0x4e1d5c(0x23d),!0x1),_0x1bb9f9(this,_0x4e1d5c(0x3d8),!0x1),_0x1bb9f9(this,'_cursorInfo$',new _0x224c35[(_0x4e1d5c(0x27e))](new Map())),_0x1bb9f9(this,'cursorInfo$',this[_0x4e1d5c(0x18b)][_0x4e1d5c(0x301)]()),_0x1bb9f9(this,_0x4e1d5c(0x19f),new _0x224c35[(_0x4e1d5c(0x27e))]([])),_0x1bb9f9(this,'roomMembers$',this[_0x4e1d5c(0x19f)]['pipe'](_0x224c35[_0x4e1d5c(0x3e9)](_0x35eb41))),_0x1bb9f9(this,_0x4e1d5c(0x38c),_0x2a357a[_0x4e1d5c(0x377)]((_0x305779,_0x20c8ec)=>{const _0x299107=_0x4e1d5c,_0x88231f={'eventID':_0x8d16e0['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x299107(0x1b5)]['getMemberID'](),'selection':_0x17ecc0['serializeRangeWithSheet'](_0x305779,_0x20c8ec[_0x299107(0x187)])}};this[_0x299107(0x1b5)][_0x299107(0x25c)](_0x88231f,this[_0x299107(0x197)]);},_0x76ad3b)),(this['unitID']=_0x4e86a4,this[_0x4e1d5c(0x1b5)]=_0x3fb917,this[_0x4e1d5c(0x21b)]=_0x492369,this[_0x4e1d5c(0x355)]=_0xd7969a,this['_memberService']=_0xec3904,this[_0x4e1d5c(0x3c4)]=_0x8b2feb,this[_0x4e1d5c(0x306)]=_0x1a4089,this[_0x4e1d5c(0x2e1)]=_0x539a2a);}get[_0x50d4f7(0x30e)](){const _0x140136=_0x50d4f7;return this[_0x140136(0x18b)][_0x140136(0x2e5)]();}get[_0x50d4f7(0x291)](){const _0x25883b=_0x50d4f7;return this[_0x25883b(0x19f)][_0x25883b(0x2e5)]();}[_0x50d4f7(0x225)](){const _0x2c1a42=_0x50d4f7;super['dispose'](),this[_0x2c1a42(0x18b)]['next'](new Map()),this[_0x2c1a42(0x18b)][_0x2c1a42(0x180)](),this[_0x2c1a42(0x19f)][_0x2c1a42(0x37d)]([]),this[_0x2c1a42(0x19f)][_0x2c1a42(0x180)]();}['init'](){const _0xe38665=_0x50d4f7;this[_0xe38665(0x3d8)]||(this['_init']=!0x0,this['_session'][_0xe38665(0x29c)]['pipe'](_0x224c35[_0xe38665(0x184)](this[_0xe38665(0x2f3)]))['subscribe'](_0x576492=>{const _0x4d5006=_0xe38665;_0x576492===_0x505ca1[_0x4d5006(0x2d4)][_0x4d5006(0x241)]?this[_0x4d5006(0x249)]():this[_0x4d5006(0x1cf)]();}),this[_0xe38665(0x1b5)]['event$']['pipe'](_0x224c35[_0xe38665(0x184)](this[_0xe38665(0x2f3)]))['subscribe'](_0x58a20b=>{const _0x58db17=_0xe38665,_0x5d0489=_0x58a20b[_0x58db17(0x18d)];_0x5d0489===_0x8d16e0[_0x58db17(0x341)][_0x58db17(0x400)]&&this[_0x58db17(0x344)](_0x58a20b),_0x5d0489===_0x8d16e0[_0x58db17(0x341)]['USERS_LEAVE']&&this[_0x58db17(0x32c)](_0x58a20b);}),this[_0xe38665(0x1c9)](),this[_0xe38665(0x24e)](this[_0xe38665(0x306)][_0xe38665(0x183)](_0x15caf6=>{const _0x8a59eb=_0xe38665;if(this['_online']&&_0x15caf6['id']===_0xb393d1[_0x8a59eb(0x181)]['id']&&_0x15caf6[_0x8a59eb(0x36d)][_0x8a59eb(0x287)]===this[_0x8a59eb(0x197)]){const _0x249dff=_0x15caf6[_0x8a59eb(0x36d)];this[_0x8a59eb(0x38c)](_0x249dff[_0x8a59eb(0x2eb)],_0x249dff[_0x8a59eb(0x216)][0x0]);}})));}[_0x50d4f7(0x344)](_0x121504){const _0x5e0f1a=_0x50d4f7;var _0x1726d2,_0x281355;const {memberID:_0x168bf3,selection:_0x5705e4}=_0x121504[_0x5e0f1a(0x205)],{sheetName:_0x1f8eef,range:_0x25b64b}=_0x17ecc0[_0x5e0f1a(0x393)](_0x5705e4),_0x1051c3={'name':(_0x281355=(_0x1726d2=this[_0x5e0f1a(0x2b7)][_0x5e0f1a(0x3cf)](this['unitID'],_0x168bf3))==null?void 0x0:_0x1726d2[_0x5e0f1a(0x2ca)])!=null?_0x281355:_0x5e0f1a(0x234),'range':this[_0x5e0f1a(0x220)](_0x1f8eef,_0x25b64b),'sheetID':_0x1f8eef,'color':this[_0x5e0f1a(0x355)][_0x5e0f1a(0x378)](_0x168bf3),'selection':_0x5705e4},_0x41d767=this[_0x5e0f1a(0x30e)];_0x41d767['set'](_0x168bf3,_0x1051c3),this['_cursorInfo$'][_0x5e0f1a(0x37d)](_0x41d767);}[_0x50d4f7(0x32c)](_0x5cc84d){const _0x44b91f=_0x50d4f7,{memberID:_0x4c80d9}=_0x5cc84d[_0x44b91f(0x205)],_0x150d63=this['cursorInfo'];_0x150d63[_0x44b91f(0x280)](_0x4c80d9),this['_cursorInfo$']['next'](_0x150d63);}[_0x50d4f7(0x220)](_0x5f47df,_0x4f4e2f){const _0x2afb5e=_0x50d4f7;var _0x494e09,_0x1f1444;const _0x2e5bd2=(_0x1f1444=(_0x494e09=this[_0x2afb5e(0x3c4)][_0x2afb5e(0x24f)](this[_0x2afb5e(0x197)]))==null?void 0x0:_0x494e09[_0x2afb5e(0x379)](_0x5f47df))==null?void 0x0:_0x1f1444[_0x2afb5e(0x35a)]();return(_0x2e5bd2==null?void 0x0:_0x2e5bd2[_0x2afb5e(0x339)](_0x4b788d=>_0x2a357a['Rectangle'][_0x2afb5e(0x188)](_0x4b788d,_0x4f4e2f)))||_0x4f4e2f;}[_0x50d4f7(0x1c9)](){const _0x2d4c57=_0x50d4f7,_0x232f74=new _0x2a357a[(_0x2d4c57(0x3eb))](),_0x5205b6=_0x39c736(),_0x10baa1=()=>{const _0x19aa7c=_0x2d4c57;_0x232f74['dispose']();const _0x504ee2=(_0x5a0ac2,_0x560d46,_0x2f8193,_0x593316)=>{const _0xcd3b96=_0x45fd;let _0x324219=[];switch(_0x5a0ac2['id']){case _0xb393d1[_0xcd3b96(0x17c)][_0xcd3b96(0x371)]:{_0x324219=_0xb393d1['handleDeleteRangeMoveLeft'](_0x5a0ac2,_0x593316);break;}case _0xb393d1[_0xcd3b96(0x17c)][_0xcd3b96(0x312)]:{_0x324219=_0xb393d1[_0xcd3b96(0x386)](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId'][_0xcd3b96(0x1dc)]:{_0x324219=_0xb393d1[_0xcd3b96(0x1d5)](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId'][_0xcd3b96(0x330)]:{_0x324219=_0xb393d1[_0xcd3b96(0x1da)](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId'][_0xcd3b96(0x19c)]:{_0x324219=_0xb393d1['handleInsertRangeMoveRight'](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId'][_0xcd3b96(0x175)]:{_0x324219=_0xb393d1[_0xcd3b96(0x3cb)](_0x5a0ac2,_0x593316);break;}case _0xb393d1['EffectRefRangId']['MoveRangeCommandId']:{_0x324219=_0xb393d1['handleMoveRange'](_0x5a0ac2,_0x593316);break;}case _0xb393d1[_0xcd3b96(0x17c)][_0xcd3b96(0x3d4)]:{_0x324219=_0xb393d1[_0xcd3b96(0x2b6)](_0x5a0ac2,_0x593316);break;}case _0xb393d1[_0xcd3b96(0x17c)][_0xcd3b96(0x337)]:{_0x324219=_0xb393d1[_0xcd3b96(0x343)](_0x5a0ac2,_0x593316);break;}}const _0x41f2bf=_0xb393d1[_0xcd3b96(0x3e1)](_0x324219,_0x593316),_0x548bc3=this[_0xcd3b96(0x30e)][_0xcd3b96(0x22d)](_0x560d46);if(_0x548bc3&&_0x41f2bf){const _0x579341={..._0x548bc3,'range':_0x41f2bf};this['cursorInfo'][_0xcd3b96(0x335)](_0x560d46,_0x579341),_0x5205b6(()=>{const _0x2d0ef6=_0xcd3b96,_0x8a27bb=this[_0x2d0ef6(0x2e1)]['registerRefRange'](_0x41f2bf,_0x431768=>(_0x8a27bb[_0x2d0ef6(0x225)](),_0x504ee2(_0x431768,_0x560d46,_0x2f8193,_0x41f2bf)));_0x232f74[_0x2d0ef6(0x2ba)](_0x8a27bb);});}return{'redos':[],'undos':[]};};this[_0x19aa7c(0x30e)]['forEach']((_0x38f191,_0x461d08)=>{const _0x4167a9=_0x19aa7c,{range:_0x3ec161,sheetID:_0x34afa6}=_0x38f191,_0x2536d1=this[_0x4167a9(0x2e1)][_0x4167a9(0x3ce)](_0x3ec161,_0x1aea9b=>(_0x2536d1['dispose'](),_0x504ee2(_0x1aea9b,_0x461d08,_0x34afa6,_0x3ec161)));_0x232f74[_0x4167a9(0x2ba)](_0x2536d1);});};this[_0x2d4c57(0x24e)](_0x2a357a[_0x2d4c57(0x1ff)](this[_0x2d4c57(0x18b)][_0x2d4c57(0x2cf)](()=>{_0x10baa1();})));}['_toggleOnline'](){const _0x2255c9=_0x50d4f7;var _0x496595,_0x4d9ee9;if(this['_online']=!0x0,((_0x496595=this['_univerInstanceService'][_0x2255c9(0x23e)]())==null?void 0x0:_0x496595['getUnitId']())!==this[_0x2255c9(0x197)])return;const _0x3dcbeb=(_0x4d9ee9=this[_0x2255c9(0x21b)][_0x2255c9(0x22d)](_0xb393d1[_0x2255c9(0x1bf)])[_0x2255c9(0x29a)]())==null?void 0x0:_0x4d9ee9[0x0],_0x37f803=this[_0x2255c9(0x3c4)][_0x2255c9(0x34c)](_0x2a357a['UniverInstanceType'][_0x2255c9(0x37f)])[_0x2255c9(0x31b)]();_0x3dcbeb&&_0x37f803&&this[_0x2255c9(0x38c)](_0x37f803[_0x2255c9(0x1d1)](),_0x3dcbeb);}[_0x50d4f7(0x1cf)](){const _0x1e807e=_0x50d4f7;this[_0x1e807e(0x23d)]=!0x1;}};_0x568503=_0x2e3e43([_0x267e8d(0x2,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x173)])),_0x267e8d(0x3,_0x2a357a[_0x50d4f7(0x229)](_0x5d8afc)),_0x267e8d(0x4,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1[_0x50d4f7(0x1b9)])),_0x267e8d(0x5,_0x2a357a['IUniverInstanceService']),_0x267e8d(0x6,_0x2a357a[_0x50d4f7(0x305)]),_0x267e8d(0x7,_0x2a357a[_0x50d4f7(0x229)](_0xb393d1[_0x50d4f7(0x297)]))],_0x568503);var _0x2260e0=Object[_0x50d4f7(0x2da)],_0x5db7e8=(_0x33815c,_0x9448de,_0x7b8095,_0x2b5b53)=>{const _0x2c14d6=_0x50d4f7;for(var _0x10da67=_0x2b5b53>0x1?void 0x0:_0x2b5b53?_0x2260e0(_0x9448de,_0x7b8095):_0x9448de,_0x1dfd5c=_0x33815c[_0x2c14d6(0x34e)]-0x1,_0x2b1be8;_0x1dfd5c>=0x0;_0x1dfd5c--)(_0x2b1be8=_0x33815c[_0x1dfd5c])&&(_0x10da67=_0x2b1be8(_0x10da67)||_0x10da67);return _0x10da67;},_0x316585=(_0x4a004c,_0x3d43ec)=>(_0xbfbf44,_0xfb8a26)=>_0x3d43ec(_0xbfbf44,_0xfb8a26,_0x4a004c);let _0x1c920a=class extends _0x2a357a['RxDisposable']{constructor(_0x3fe0e8,_0x1357d2,_0x364477){const _0x2f4782=_0x50d4f7;super(),_0x1bb9f9(this,_0x2f4782(0x322),new Map()),_0x1bb9f9(this,_0x2f4782(0x1c7),new _0x224c35[(_0x2f4782(0x295))]()),(this[_0x2f4782(0x3c4)]=_0x3fe0e8,this[_0x2f4782(0x21b)]=_0x1357d2,this['_collabSessionService']=_0x364477,this[_0x2f4782(0x3d8)]());}[_0x50d4f7(0x225)](){const _0x18504e=_0x50d4f7;super['dispose'](),this[_0x18504e(0x1c7)][_0x18504e(0x180)](),this[_0x18504e(0x322)][_0x18504e(0x2fa)](_0x33ade4=>_0x33ade4[_0x18504e(0x225)]());}[_0x50d4f7(0x285)](_0x249529){const _0x1a9609=_0x50d4f7;return this[_0x1a9609(0x322)][_0x1a9609(0x1fc)](_0x249529)?this[_0x1a9609(0x322)]['get'](_0x249529)[_0x1a9609(0x30f)]:this[_0x1a9609(0x1c7)]['pipe'](_0x224c35[_0x1a9609(0x2b8)](_0x230085=>_0x230085['unitID']===_0x249529),_0x224c35['switchMap'](_0x31ff16=>_0x31ff16[_0x1a9609(0x30f)]));}[_0x50d4f7(0x3d8)](){const _0x595b4d=_0x50d4f7;this['_univerInstanceService'][_0x595b4d(0x268)](_0x2a357a[_0x595b4d(0x19b)]['UNIVER_SHEET'])[_0x595b4d(0x3bf)](_0x224c35[_0x595b4d(0x184)](this[_0x595b4d(0x2f3)]))[_0x595b4d(0x2cf)](async _0x5cce43=>{const _0x371b1b=_0x595b4d,_0x1ade41=_0x5cce43[_0x371b1b(0x3b1)](),_0x1ec851=await this[_0x371b1b(0x391)](_0x1ade41);this['_entityInit$'][_0x371b1b(0x37d)](_0x1ec851),this['_entities'][_0x371b1b(0x335)](_0x1ade41,_0x1ec851);}),this['_univerInstanceService'][_0x595b4d(0x268)](_0x2a357a[_0x595b4d(0x19b)][_0x595b4d(0x3d5)])['pipe'](_0x224c35['takeUntil'](this['dispose$']))[_0x595b4d(0x3bf)](_0x224c35[_0x595b4d(0x2b8)](_0x4b8a39=>!_0x4b8a39['getUnitId']()[_0x595b4d(0x316)]('__')))[_0x595b4d(0x2cf)](async _0x1edc95=>{const _0xf3f698=_0x595b4d,_0x49a520=_0x1edc95[_0xf3f698(0x3b1)](),_0x209ecb=await this[_0xf3f698(0x3a3)](_0x49a520);this[_0xf3f698(0x1c7)]['next'](_0x209ecb),this[_0xf3f698(0x322)][_0xf3f698(0x335)](_0x49a520,_0x209ecb);}),_0x224c35[_0x595b4d(0x2b4)](this[_0x595b4d(0x3c4)][_0x595b4d(0x31e)](_0x2a357a['UniverInstanceType'][_0x595b4d(0x3d5)]),this[_0x595b4d(0x3c4)]['getTypeOfUnitDisposed$'](_0x2a357a[_0x595b4d(0x19b)][_0x595b4d(0x37f)]))[_0x595b4d(0x3bf)](_0x224c35['takeUntil'](this[_0x595b4d(0x2f3)]))[_0x595b4d(0x2cf)](_0x4b9739=>{const _0x30b54e=_0x595b4d,_0x2377fb=_0x4b9739[_0x30b54e(0x3b1)](),_0x19e232=this['_entities'][_0x30b54e(0x22d)](_0x2377fb);_0x19e232&&(_0x19e232[_0x30b54e(0x225)](),this[_0x30b54e(0x322)][_0x30b54e(0x280)](_0x2377fb));});}async[_0x50d4f7(0x391)](_0x4bb19c){const _0xfb85a9=_0x50d4f7,_0x56ac89=await this['_collabSessionService'][_0xfb85a9(0x3f8)](_0x4bb19c),_0x19ee6d=this[_0xfb85a9(0x21b)]['createInstance'](_0x568503,_0x4bb19c,_0x56ac89);return _0x19ee6d[_0xfb85a9(0x3fc)](),_0x19ee6d;}async[_0x50d4f7(0x3a3)](_0x40fc07){const _0x7ecb7c=_0x50d4f7,_0x472cb9=await this[_0x7ecb7c(0x226)][_0x7ecb7c(0x3f8)](_0x40fc07),_0x4ff69f=this[_0x7ecb7c(0x21b)][_0x7ecb7c(0x3d6)](_0x1e868f,_0x40fc07,_0x472cb9);return _0x4ff69f[_0x7ecb7c(0x3fc)](),_0x4ff69f;}};_0x1c920a=_0x5db7e8([_0x316585(0x0,_0x2a357a[_0x50d4f7(0x382)]),_0x316585(0x1,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x173)])),_0x316585(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1[_0x50d4f7(0x27a)]))],_0x1c920a);const _0x5ef2a6=0x14,_0x2a929b=0xc8,_0x2c7d8e=0x4,_0x5aeb55=0x5;function _0x45acea(_0x56f8c2,_0x5f3604){const _0x1c916f=_0x50d4f7;let {radius:_0x2dddf8,width:_0x69f406,height:_0x51bb1d}=_0x5f3604;_0x2dddf8=_0x2dddf8!=null?_0x2dddf8:0x0,_0x69f406=_0x69f406!=null?_0x69f406:0x1e,_0x51bb1d=_0x51bb1d!=null?_0x51bb1d:0x1e;let _0x28d909=0x0,_0x43161b=0x0,_0x3770cf=0x0;_0x28d909=_0x43161b=_0x3770cf=Math[_0x1c916f(0x1ac)](_0x2dddf8,_0x69f406/0x2,_0x51bb1d/0x2),_0x56f8c2[_0x1c916f(0x385)](),_0x56f8c2[_0x1c916f(0x232)](_0x28d909,0x0),_0x56f8c2[_0x1c916f(0x1af)](_0x69f406-_0x43161b,0x0),_0x56f8c2[_0x1c916f(0x206)](_0x69f406-_0x43161b,_0x43161b,_0x43161b,Math['PI']*0x3/0x2,0x0,!0x1),_0x56f8c2[_0x1c916f(0x1af)](_0x69f406,_0x51bb1d-_0x3770cf),_0x56f8c2[_0x1c916f(0x206)](_0x69f406-_0x3770cf,_0x51bb1d-_0x3770cf,_0x3770cf,0x0,Math['PI']/0x2,!0x1),_0x56f8c2[_0x1c916f(0x1af)](0x0,_0x51bb1d),_0x56f8c2[_0x1c916f(0x1af)](0x0,_0x28d909),_0x56f8c2[_0x1c916f(0x206)](_0x28d909,_0x28d909,_0x28d909,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x56f8c2[_0x1c916f(0x28b)](),_0x5f3604[_0x1c916f(0x281)]&&(_0x56f8c2[_0x1c916f(0x1f2)](),_0x56f8c2[_0x1c916f(0x329)]=_0x5f3604['fill'],_0x5f3604['fillRule']==='evenodd'?_0x56f8c2['fill'](_0x1c916f(0x1c0)):_0x56f8c2['fill'](),_0x56f8c2[_0x1c916f(0x1b0)]());}class _0x4f5177 extends _0x4dd679['Shape']{constructor(_0x58b3eb,_0x370057){const _0x16ff8f=_0x50d4f7;super(_0x58b3eb,_0x370057),_0x1bb9f9(this,_0x16ff8f(0x32d)),_0x1bb9f9(this,_0x16ff8f(0x3ff)),(this[_0x16ff8f(0x32d)]=_0x370057==null?void 0x0:_0x370057[_0x16ff8f(0x32d)],this['text']=_0x370057==null?void 0x0:_0x370057['text']);}static[_0x50d4f7(0x2cb)](_0xa0e6d4,_0xc2b737){const _0xc195a1=_0x50d4f7,{text:_0x33cef9,color:_0x3af58e}=_0xc2b737;_0xa0e6d4['save'](),_0xa0e6d4[_0xc195a1(0x253)]=_0xc195a1(0x1c1);const _0x345d63=_0xa0e6d4[_0xc195a1(0x3d0)](_0x33cef9)[_0xc195a1(0x272)],_0x5482d1=Math[_0xc195a1(0x1ac)](_0x345d63+0x2*_0x2c7d8e,_0x2a929b);_0x45acea(_0xa0e6d4,{'height':_0x5ef2a6,'radius':0x4,'width':_0x5482d1,'fill':_0x3af58e}),_0xa0e6d4[_0xc195a1(0x329)]='#FFF';const _0x23d72c=_0x2c7d8e,_0x308c6d=_0x5ef2a6-_0x5aeb55,_0x8f4b93=_0x2a929b-0x2*_0x2c7d8e;if(_0x345d63>_0x8f4b93){let _0x61999d='',_0xe61de9=0x0;for(const _0x490120 of _0x33cef9){const _0x46bdc4=_0xa0e6d4[_0xc195a1(0x3d0)](_0x490120)[_0xc195a1(0x272)];if(_0xe61de9+_0x46bdc4<=_0x8f4b93-_0xa0e6d4[_0xc195a1(0x3d0)]('...')[_0xc195a1(0x272)])_0x61999d+=_0x490120,_0xe61de9+=_0x46bdc4;else{_0x61999d+=_0xc195a1(0x3a4);break;}}_0xa0e6d4[_0xc195a1(0x2d6)](_0x61999d,_0x23d72c,_0x308c6d);}else _0xa0e6d4[_0xc195a1(0x2d6)](_0x33cef9,_0x23d72c,_0x308c6d);_0xa0e6d4[_0xc195a1(0x1b0)]();}[_0x50d4f7(0x2de)](_0x368654){const _0x5e0a22=_0x50d4f7;_0x4f5177[_0x5e0a22(0x2cb)](_0x368654,this);}}const _0x5de4f8=_0x50d4f7(0x2d0),_0x483cbc=_0x50d4f7(0x359),_0x32cfb8='collab-rect-range-',_0x3bd905=0x6,_0x1626d1=1.5,_0x2a871e=0x4,_0x187bf4=1.5,_0x37870a=_0x50d4f7(0x1f7);class _0x9e7785{constructor(_0x41d247,_0x15d6b0,_0x157b64,_0x588aa6){const _0x51ec45=_0x50d4f7;_0x1bb9f9(this,'_shapes',[]),_0x1bb9f9(this,'_anchor',null),_0x1bb9f9(this,'_textBubble',null),_0x1bb9f9(this,_0x51ec45(0x36f),null),_0x1bb9f9(this,_0x51ec45(0x2b5),null),_0x1bb9f9(this,_0x51ec45(0x1b1),null),(this['_cursor']=_0x41d247,this[_0x51ec45(0x19a)]=_0x15d6b0,this[_0x51ec45(0x32f)]=_0x157b64,this[_0x51ec45(0x1e0)]=_0x588aa6,this[_0x51ec45(0x2bc)]());}set[_0x50d4f7(0x366)](_0x568b39){const _0x58bf55=_0x50d4f7;_0x568b39?(this[_0x58bf55(0x36f)]&&this[_0x58bf55(0x36f)][_0x58bf55(0x321)](),this[_0x58bf55(0x3ae)]&&this['_textBubble']['show']()):(this['_anchorDot']&&this[_0x58bf55(0x36f)][_0x58bf55(0x190)](),this['_textBubble']&&this[_0x58bf55(0x3ae)][_0x58bf55(0x321)]());}[_0x50d4f7(0x225)](){const _0x2370ea=_0x50d4f7;for(const _0x1855e8 of this[_0x2370ea(0x1c4)])_0x1855e8[_0x2370ea(0x225)]();this[_0x2370ea(0x3ae)]&&this['_textBubble'][_0x2370ea(0x225)](),this[_0x2370ea(0x36f)]&&this['_anchorDot'][_0x2370ea(0x225)](),this[_0x2370ea(0x1cc)]&&this['_anchor'][_0x2370ea(0x225)](),this[_0x2370ea(0x1b1)]&&this[_0x2370ea(0x1b1)]();}[_0x50d4f7(0x2bc)](){const _0x41c688=_0x50d4f7;var _0x384422;const {_docSkeleton:_0x3d9ab9,_document:_0x36b8f8}=this,{color:_0x487ef0,name:_0x3baf59,ranges:_0xa524a7}=this[_0x41c688(0x1e9)],_0x424333=_0x36b8f8['getOffsetConfig'](),{docsLeft:_0x26c914,docsTop:_0x47b683}=_0x424333,_0x1c860c=new _0x32c769[(_0x41c688(0x3c0))](_0x424333,_0x3d9ab9);for(const {startOffset:_0x1c97e7,endOffset:_0x432838,rangeType:_0x3ef3cd,segmentId:_0x1da402,segmentPage:_0x47509d,collapsed:_0x2e6ca6,isActive:_0xaf4006}of _0xa524a7){const _0xfc5db7=_0x3d9ab9[_0x41c688(0x1ed)](_0x1c97e7,!0x0,_0x1da402,_0x47509d);let _0x2369d9=_0x3d9ab9['findNodePositionByCharIndex'](_0x432838,!0x0,_0x1da402,_0x47509d);if(_0x2369d9==null&&(_0x2369d9=_0x3d9ab9[_0x41c688(0x1ed)](_0x432838-0x1,!0x1,_0x1da402,_0x47509d)),_0xaf4006){const {contentBoxPointGroup:_0x5021eb}=_0x1c860c[_0x41c688(0x3a7)](_0x2369d9,_0x2369d9);if(_0x5021eb[_0x41c688(0x34e)]===0x0)continue;this[_0x41c688(0x3bc)](_0x487ef0,_0x5021eb,_0x26c914,_0x47b683,_0x3baf59),this[_0x41c688(0x1b1)]=this['_handleHover']();}if(_0xfc5db7&&_0x2369d9){if(_0x3ef3cd===_0x2a357a[_0x41c688(0x26b)][_0x41c688(0x1f3)]){const _0x33fde3=new _0x32c769[(_0x41c688(0x1a9))](_0x424333,_0x3d9ab9),{pointGroup:_0x9c2879}=(_0x384422=_0x33fde3[_0x41c688(0x3a7)](_0xfc5db7,_0x2369d9))!=null?_0x384422:{};if(_0x9c2879==null||_0x9c2879[_0x41c688(0x34e)]===0x0)continue;this[_0x41c688(0x23c)](_0x487ef0,_0x9c2879,_0x26c914,_0x47b683);}else{if(!_0x2e6ca6){const {borderBoxPointGroup:_0x5426cd}=_0x1c860c[_0x41c688(0x3a7)](_0xfc5db7,_0x2369d9);if(_0x5426cd[_0x41c688(0x34e)]===0x0)continue;this['_drawTextRange'](_0x487ef0,_0x5426cd,_0x26c914,_0x47b683);}}}}}[_0x50d4f7(0x3bc)](_0x33a1a3,_0x42dc54,_0x4a8d63,_0x2936bd,_0x7ff201){const _0x38bced=_0x50d4f7,_0x2abb51=this[_0x38bced(0x311)](_0x42dc54),{left:_0x6ec615,top:_0x189747,height:_0x5698bb}=_0x2abb51,_0x27ca84=this[_0x38bced(0x389)](),_0x1ad026=_0x187bf4/_0x27ca84,_0xfd3b86=new _0x4dd679[(_0x38bced(0x2c8))](_0x5de4f8+_0x2a357a[_0x38bced(0x1fb)][_0x38bced(0x1c5)](_0x3bd905),{'left':_0x6ec615+_0x4a8d63-_0x1ad026,'top':_0x189747+_0x2936bd,'height':_0x5698bb,'width':_0x1626d1,'fill':_0x33a1a3||_0x4dd679[_0x38bced(0x3a2)](_0x2a357a[_0x38bced(0x331)][_0x38bced(0x3d7)],0x0),'strokeWidth':_0x1ad026,'stroke':_0x37870a,'evented':!0x0});this['_anchor']=_0xfd3b86,this[_0x38bced(0x19a)][_0x38bced(0x1b7)](_0xfd3b86,_0x32c769[_0x38bced(0x29d)]);const _0xd8ff18=new _0x4dd679[(_0x38bced(0x2c8))](_0x5de4f8+_0x2a357a['Tools'][_0x38bced(0x1c5)](_0x3bd905),{'left':_0x6ec615+_0x4a8d63-_0x1ad026,'top':_0x189747+_0x2936bd-_0x2a871e/0x2,'height':_0x2a871e,'width':_0x2a871e,'fill':_0x33a1a3||_0x4dd679[_0x38bced(0x3a2)](_0x2a357a[_0x38bced(0x331)][_0x38bced(0x3d7)],0x0),'strokeWidth':0x0,'stroke':_0x33a1a3||_0x4dd679['getColor'](_0x2a357a[_0x38bced(0x331)][_0x38bced(0x3d7)],0x0),'evented':!0x1});this[_0x38bced(0x36f)]=_0xd8ff18,this[_0x38bced(0x19a)][_0x38bced(0x1b7)](_0xd8ff18,_0x32c769[_0x38bced(0x29d)]);const _0x4035ea=new _0x4f5177(_0x5de4f8+_0x2a357a[_0x38bced(0x1fb)][_0x38bced(0x1c5)](_0x3bd905),{'left':_0x6ec615+_0x4a8d63-_0x1ad026,'top':_0x189747+_0x2936bd-_0x5ef2a6,'text':_0x7ff201,'color':_0x33a1a3});this['_textBubble']=_0x4035ea,this[_0x38bced(0x19a)][_0x38bced(0x1b7)](_0x4035ea,_0x32c769[_0x38bced(0x29d)]),this[_0x38bced(0x366)]=!0x1;}['_handleHover'](){const _0x3d66d1=_0x50d4f7,_0x4f3999=this[_0x3d66d1(0x1cc)][_0x3d66d1(0x1a2)][_0x3d66d1(0x202)](()=>{this['_hover']=!0x0;}),_0x2bf4a2=this[_0x3d66d1(0x1cc)]['onPointerLeave$'][_0x3d66d1(0x202)](()=>{const _0x14269f=_0x3d66d1;this['_hideTimer']&&clearTimeout(this[_0x14269f(0x2b5)]),this[_0x14269f(0x2b5)]=setTimeout(()=>{const _0x361ec4=_0x14269f;this[_0x361ec4(0x366)]=!0x1;},0x7d0);});return()=>{const _0x55ec45=_0x3d66d1;_0x4f3999['unsubscribe'](),_0x2bf4a2[_0x55ec45(0x32b)]();};}[_0x50d4f7(0x1c6)](_0x5351f4,_0x2219e3,_0x17256d,_0x1c5ec1){const _0x3a1fb1=_0x50d4f7,_0x3ca13c=new _0x2a357a[(_0x3a1fb1(0x23b))](_0x5351f4)[_0x3a1fb1(0x274)](0.2)['toRgbString'](),_0x4ba00d=new _0x4dd679['RegularPolygon'](_0x483cbc+_0x2a357a['Tools']['generateRandomId'](_0x3bd905),{'pointsGroup':_0x2219e3,'fill':_0x3ca13c||_0x4dd679[_0x3a1fb1(0x3a2)](_0x2a357a['COLORS'][_0x3a1fb1(0x3d7)],0.2),'left':_0x17256d,'top':_0x1c5ec1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a1fb1(0x1c4)][_0x3a1fb1(0x327)](_0x4ba00d),this[_0x3a1fb1(0x19a)][_0x3a1fb1(0x1b7)](_0x4ba00d,_0x32c769[_0x3a1fb1(0x29d)]);}[_0x50d4f7(0x23c)](_0x67039d,_0x2a2e5e,_0x239243,_0x395716){const _0x36ec56=_0x50d4f7,_0x3064c0=new _0x2a357a[(_0x36ec56(0x23b))](_0x67039d)[_0x36ec56(0x274)](0.2)[_0x36ec56(0x1a4)](),_0xe563e3=new _0x4dd679[(_0x36ec56(0x2ea))](_0x32cfb8+_0x2a357a['Tools'][_0x36ec56(0x1c5)](_0x3bd905),{'pointsGroup':_0x2a2e5e,'fill':_0x3064c0||_0x4dd679[_0x36ec56(0x3a2)](_0x2a357a['COLORS'][_0x36ec56(0x3d7)],0.2),'left':_0x239243,'top':_0x395716,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x36ec56(0x1c4)][_0x36ec56(0x327)](_0xe563e3),this['_scene'][_0x36ec56(0x1b7)](_0xe563e3,_0x32c769[_0x36ec56(0x29d)]);}[_0x50d4f7(0x311)](_0x472604){const _0xeea5be=_0x472604[0x0],_0x5fdc5f=_0xeea5be[0x0],_0x4c42a4=_0xeea5be[0x2],{x:_0x5b3ba6,y:_0x4c20e1}=_0x5fdc5f,{x:_0x40dce7,y:_0x59455f}=_0x4c42a4;return{'left':_0x5b3ba6,'top':_0x4c20e1,'width':_0x40dce7-_0x5b3ba6,'height':_0x59455f-_0x4c20e1};}[_0x50d4f7(0x389)](){const _0x24866a=_0x50d4f7,{scaleX:_0x39cf37,scaleY:_0x5cc342}=this[_0x24866a(0x19a)][_0x24866a(0x2b2)]();return Math[_0x24866a(0x333)](_0x39cf37,_0x5cc342);}}var _0x1ae2c5=Object[_0x50d4f7(0x2da)],_0x5fe7f0=(_0x2e78a6,_0x40c74b,_0x4611e5,_0x4504d5)=>{for(var _0x47a627=_0x4504d5>0x1?void 0x0:_0x4504d5?_0x1ae2c5(_0x40c74b,_0x4611e5):_0x40c74b,_0x62c3f7=_0x2e78a6['length']-0x1,_0x4c1660;_0x62c3f7>=0x0;_0x62c3f7--)(_0x4c1660=_0x2e78a6[_0x62c3f7])&&(_0x47a627=_0x4c1660(_0x47a627)||_0x47a627);return _0x47a627;},_0x646a92=(_0x1d3206,_0x5a68ac)=>(_0x3ffa5f,_0x6e7ded)=>_0x5a68ac(_0x3ffa5f,_0x6e7ded,_0x1d3206);let _0x4988de=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0x38c520,_0x4d5624,_0x55ddb9,_0x2bc5ac,_0x5ab128){const _0x485527=_0x50d4f7;super(),_0x1bb9f9(this,_0x485527(0x2c2),[]),_0x1bb9f9(this,_0x485527(0x2d9),[]),(this[_0x485527(0x2e4)]=_0x38c520,this[_0x485527(0x3b8)]=_0x4d5624,this[_0x485527(0x247)]=_0x55ddb9,this[_0x485527(0x306)]=_0x2bc5ac,this['_themeService']=_0x5ab128,this['_init']());}[_0x50d4f7(0x3d8)](){const _0x5210df=_0x50d4f7,_0x3749f2=this[_0x5210df(0x2e4)][_0x5210df(0x287)],_0x1dc7ab=this[_0x5210df(0x3b8)];this[_0x5210df(0x24e)](_0x224c35[_0x5210df(0x1b4)]([this['_collabCursorController'][_0x5210df(0x285)](_0x3749f2),this[_0x5210df(0x292)][_0x5210df(0x264)]])[_0x5210df(0x3bf)](_0xf527a8[_0x5210df(0x2ae)](([_0x3a44e5,_0x27d103])=>({'skeleton':_0x1dc7ab['getSkeleton'](),'cursors':[..._0x3a44e5[_0x5210df(0x2f4)]()][_0x5210df(0x3e2)](_0x52a9c1=>({..._0x52a9c1,'color':this[_0x5210df(0x292)][_0x5210df(0x2c7)](_0x52a9c1['color'])}))})))['subscribe'](_0x22f1ec=>{const _0x57b8a0=_0x5210df;if(this[_0x57b8a0(0x26a)](),_0x22f1ec){const {skeleton:_0x47f020,cursors:_0x3c1058}=_0x22f1ec;this['_updateCollabCursors'](_0x47f020,_0x3c1058);}})),this[_0x5210df(0x3fa)](),this[_0x5210df(0x185)]();}['_updateCollabCursors'](_0x1fffbe,_0x586cda){const _0x1b96f7=_0x50d4f7,{scene:_0x4b79a7,mainComponent:_0x2d62c0}=this[_0x1b96f7(0x2e4)],_0x38a050=_0x586cda['map'](_0x16a985=>new _0x9e7785(_0x16a985,_0x4b79a7,_0x1fffbe,_0x2d62c0));this[_0x1b96f7(0x2c2)]=_0x38a050,this[_0x1b96f7(0x2d9)]=_0x586cda;}[_0x50d4f7(0x196)](){const _0x10fa98=_0x50d4f7;this[_0x10fa98(0x26a)]();const {scene:_0x439cb1,mainComponent:_0x3a936b}=this['_context'],_0x1a178c=this['_docSkeletonManagerService']['getSkeleton'](),_0x3c7654=this['_cursors'][_0x10fa98(0x2ae)](_0x23b5f4=>new _0x9e7785(_0x23b5f4,_0x439cb1,_0x1a178c,_0x3a936b));this[_0x10fa98(0x2c2)]=_0x3c7654;}[_0x50d4f7(0x26a)](){const _0x2d5629=_0x50d4f7;this['_cursorShapes'][_0x2d5629(0x2fa)](_0x428505=>_0x428505[_0x2d5629(0x225)]()),this[_0x2d5629(0x2c2)]=[];}[_0x50d4f7(0x185)](){const _0x5aa0b6=_0x50d4f7,_0x4c1864=[_0x32c769[_0x5aa0b6(0x3dd)]['id']];this[_0x5aa0b6(0x24e)](this['_commandService'][_0x5aa0b6(0x183)](_0x37656f=>{const _0x4dd9c3=_0x5aa0b6;_0x4c1864['includes'](_0x37656f['id'])&&_0x37656f[_0x4dd9c3(0x36d)][_0x4dd9c3(0x287)]===this[_0x4dd9c3(0x2e4)][_0x4dd9c3(0x287)]&&this[_0x4dd9c3(0x196)]();}));}[_0x50d4f7(0x3fa)](){const _0x11b230=_0x50d4f7;this[_0x11b230(0x24e)](_0x2a357a[_0x11b230(0x2a5)](this[_0x11b230(0x2e4)][_0x11b230(0x3c5)][_0x11b230(0x324)])[_0x11b230(0x3bf)](_0xf527a8[_0x11b230(0x2b8)](_0x33a940=>_0x33a940[_0x11b230(0x1d8)]===_0x4dd679[_0x11b230(0x1d7)]['resize']),_0xf527a8[_0x11b230(0x317)](0x10))['subscribe'](()=>{const _0x2acdeb=_0x11b230;this[_0x2acdeb(0x196)]();}));}};_0x4988de=_0x5fe7f0([_0x646a92(0x1,_0x2a357a['Inject'](_0x1d4864[_0x50d4f7(0x239)])),_0x646a92(0x2,_0x2a357a['Inject'](_0x1c920a)),_0x646a92(0x3,_0x2a357a[_0x50d4f7(0x305)]),_0x646a92(0x4,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x2c4)]))],_0x4988de);const _0x7dffed=0x1,_0x4ec25=1.5;class _0x59aba4 extends _0x4dd679[_0x50d4f7(0x326)]{constructor(_0x78b976,_0x1987cc){const _0x420875=_0x50d4f7;super(_0x78b976,_0x1987cc),_0x1bb9f9(this,_0x420875(0x26f)),_0x1bb9f9(this,_0x420875(0x30d),!0x1),_0x1bb9f9(this,'_range'),_0x1bb9f9(this,_0x420875(0x302),''),_0x1bb9f9(this,_0x420875(0x2e0),'top'),_0x1bb9f9(this,_0x420875(0x325)),(_0x1987cc&&this['setShapeProps'](_0x1987cc),this['onPointerEnter$'][_0x420875(0x202)](()=>this[_0x420875(0x1d3)]({'hovered':!0x0})),this[_0x420875(0x1a3)][_0x420875(0x202)](()=>this[_0x420875(0x1d3)]({'hovered':!0x1})));}[_0x50d4f7(0x1d3)](_0x9b1414){const _0x2f78cf=_0x50d4f7;var _0x4f03f0,_0x46abd5,_0x1f1431,_0xb147bb,_0x11c951,_0x2f2f66;this[_0x2f78cf(0x26f)]=(_0x4f03f0=_0x9b1414['color'])!=null?_0x4f03f0:this[_0x2f78cf(0x26f)],this[_0x2f78cf(0x30d)]=(_0x46abd5=_0x9b1414[_0x2f78cf(0x1a7)])!=null?_0x46abd5:this[_0x2f78cf(0x30d)],this['_range']=(_0x1f1431=_0x9b1414[_0x2f78cf(0x187)])!=null?_0x1f1431:this['_range'],this[_0x2f78cf(0x302)]=(_0xb147bb=_0x9b1414[_0x2f78cf(0x2ca)])!=null?_0xb147bb:this[_0x2f78cf(0x302)],this[_0x2f78cf(0x2e0)]=(_0x11c951=_0x9b1414[_0x2f78cf(0x1ca)])!=null?_0x11c951:this[_0x2f78cf(0x2e0)],this[_0x2f78cf(0x325)]=(_0x2f2f66=_0x9b1414[_0x2f78cf(0x1e3)])!=null?_0x2f2f66:this[_0x2f78cf(0x325)],this[_0x2f78cf(0x210)]({'width':_0x9b1414[_0x2f78cf(0x272)],'height':_0x9b1414['height']});}[_0x50d4f7(0x3c3)](_0x31bfa5){const _0x1a87b8=_0x50d4f7,{row:_0x2b3a2e,column:_0x465d66}=_0x31bfa5;if(_0x2b3a2e>=this['_range'][_0x1a87b8(0x3a0)]&&_0x2b3a2e<=this[_0x1a87b8(0x255)]['endRow']&&_0x465d66>=this['_range'][_0x1a87b8(0x2f8)]&&_0x465d66<=this['_range'][_0x1a87b8(0x3f3)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x1a87b8(0x1d3)]({'hovered':!0x1});}[_0x50d4f7(0x2ab)](_0x2292cf){return!0x1;}['_draw'](_0x1fe9d8){const _0xf35721=_0x50d4f7;_0x4dd679['Rect']['drawWith'](_0x1fe9d8,{'width':this[_0xf35721(0x272)],'height':this[_0xf35721(0x3bd)],'strokeWidth':_0x4ec25,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xf35721(0x325)]}),this['_hovered']&&(_0x1fe9d8[_0xf35721(0x1f2)](),_0x1fe9d8[_0xf35721(0x208)](0x1,0x0,0x0,0x1,this[_0xf35721(0x272)],this['_labelPosition']==='bottom'?0x0:-0x14),_0x4f5177[_0xf35721(0x2cb)](_0x1fe9d8,{'text':this[_0xf35721(0x302)],'color':this[_0xf35721(0x26f)]}),_0x1fe9d8[_0xf35721(0x1b0)]());}}var _0x1fe6f9=Object[_0x50d4f7(0x2da)],_0x47a4b2=(_0x17ac07,_0x37b9c8,_0x273a33,_0x3cf3e3)=>{for(var _0xa008c6=_0x3cf3e3>0x1?void 0x0:_0x3cf3e3?_0x1fe6f9(_0x37b9c8,_0x273a33):_0x37b9c8,_0x1899db=_0x17ac07['length']-0x1,_0x5d1db4;_0x1899db>=0x0;_0x1899db--)(_0x5d1db4=_0x17ac07[_0x1899db])&&(_0xa008c6=_0x5d1db4(_0xa008c6)||_0xa008c6);return _0xa008c6;},_0x3b40aa=(_0x5a1eb7,_0x18a7d0)=>(_0x21ff2b,_0x55a7bc)=>_0x18a7d0(_0x21ff2b,_0x55a7bc,_0x5a1eb7);const _0x9ad0ea=0x1389;let _0x4cb1cf=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0xe7d10,_0x4ec0f5,_0x1a9d59,_0x1d0f63){const _0x464ee6=_0x50d4f7;super(),_0x1bb9f9(this,'_cursors',new Set()),_0x1bb9f9(this,_0x464ee6(0x294),null),(this['_context']=_0xe7d10,this[_0x464ee6(0x1a5)]=_0x4ec0f5,this[_0x464ee6(0x247)]=_0x1a9d59,this[_0x464ee6(0x292)]=_0x1d0f63,this[_0x464ee6(0x3d8)]());}[_0x50d4f7(0x3d8)](){const _0x16b81b=_0x50d4f7;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x16b81b(0x3bf)](_0xf527a8['takeUntil'](this[_0x16b81b(0x2f3)]),_0xf527a8['switchMap'](_0x5ee7ae=>{const _0x34ddeb=_0x16b81b;if(_0x5ee7ae){const _0x5276dc=_0x5ee7ae['sheetId'];return _0x224c35[_0x34ddeb(0x1b4)](this[_0x34ddeb(0x247)][_0x34ddeb(0x285)](this[_0x34ddeb(0x2e4)][_0x34ddeb(0x287)]),this[_0x34ddeb(0x292)][_0x34ddeb(0x264)])['pipe'](_0xf527a8[_0x34ddeb(0x2ae)](([_0x26c0bb,_0x13c10a])=>{const _0x5ab225=_0x34ddeb,_0x3c2264=new Map();return _0x26c0bb[_0x5ab225(0x2fa)]((_0x329e59,_0x4fe8cb)=>{const _0x2001e2=_0x5ab225;if(_0x329e59['sheetID']===_0x5276dc){const _0xe2303d={..._0x329e59};_0xe2303d[_0x2001e2(0x32d)]=this[_0x2001e2(0x292)][_0x2001e2(0x2c7)](_0x329e59[_0x2001e2(0x32d)]),_0x3c2264[_0x2001e2(0x335)](_0x4fe8cb,_0xe2303d);}}),{'skeleton':_0x5ee7ae,'cursors':_0x3c2264};}));}return _0x224c35['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xf6e291,cursors:_0x9a5082})=>{const _0x149baa=_0x16b81b;this['_removeCollabCursors'](),_0xf6e291&&this[_0x149baa(0x1de)](_0xf6e291,_0x9a5082);}),this[_0x16b81b(0x1a5)]['currentSkeleton$'][_0x16b81b(0x2cf)](_0x5d868c=>{const _0x4fedb2=_0x16b81b;if(_0x5d868c==null)return;const {skeleton:_0xbd05e9}=_0x5d868c,{scene:_0x3d5712}=this[_0x4fedb2(0x2e4)];_0x3d5712[_0x4fedb2(0x263)]['subscribeEvent'](_0x2a357a[_0x4fedb2(0x377)](_0xc07ba=>{const _0x5538a4=_0x4fedb2;var _0x34bea3,_0x18071a;const {offsetX:_0x2442f2,offsetY:_0x2a2cb0}=_0xc07ba,{x:_0x265297,y:_0xb561ea}=_0x3d5712['getRelativeToViewportCoord'](_0x4dd679['Vector2'][_0x5538a4(0x3f2)]([_0x2442f2,_0x2a2cb0])),{scaleX:_0x2812e9,scaleY:_0x4f7dec}=_0x3d5712[_0x5538a4(0x2b2)](),_0xc6dfcf=_0x3d5712['getViewport'](_0x4dd679[_0x5538a4(0x3db)][_0x5538a4(0x2ce)]),_0x2e534a=_0x3d5712[_0x5538a4(0x3e6)](_0x4dd679[_0x5538a4(0x1a8)][_0x5538a4(0x3f2)]([_0x265297,_0xb561ea]),_0xc6dfcf),_0x56ca65=_0xbd05e9[_0x5538a4(0x31d)](_0x2442f2,_0x2a2cb0,_0x2812e9,_0x4f7dec,_0x2e534a);((_0x34bea3=this[_0x5538a4(0x294)])==null?void 0x0:_0x34bea3[_0x5538a4(0x178)])===_0x56ca65[_0x5538a4(0x178)]&&((_0x18071a=this[_0x5538a4(0x294)])==null?void 0x0:_0x18071a[_0x5538a4(0x323)])===_0x56ca65['row']||this['_cursors']['forEach'](_0xb2d811=>{const _0x492623=_0x5538a4;_0xb2d811[_0x492623(0x3c3)](_0x56ca65);});},0x64));});}['_updateCollabCursors'](_0x1f5947,_0x161d7f){const _0x12aaf7=_0x50d4f7;var _0x5a63e0;const _0x578965=(_0x5a63e0=this[_0x12aaf7(0x1a5)][_0x12aaf7(0x207)]())==null?void 0x0:_0x5a63e0['skeleton'];if(!_0x578965)return;const _0x21c9e0=this['_getSheetObject']();if(!_0x21c9e0)return;this[_0x12aaf7(0x2d9)][_0x12aaf7(0x2fa)](_0x37c260=>{const _0x15d5ef=_0x12aaf7;_0x37c260[_0x15d5ef(0x1d9)]();});const {scene:_0x4bc57d}=_0x21c9e0,_0x53d93e=_0x2a4571(Array['from'](_0x161d7f['values']()))[_0x12aaf7(0x2ae)](_0x5886bb=>{const _0x2c03ac=_0x12aaf7,{color:_0xe74dca,range:_0x1ec2c6,name:_0x6cf428,selection:_0x18d68f,sheetID:_0x312110}=_0x5886bb,{startColumn:_0x159465,startRow:_0x2ec3a,endColumn:_0x11bd9b,endRow:_0x38987e}=_0x1ec2c6,_0x31ccd9=_0x5eb834[_0x2c03ac(0x33c)](_0x2ec3a,_0x159465,_0x4bc57d,_0x578965),_0x1d84c5=_0x5eb834[_0x2c03ac(0x33c)](_0x38987e,_0x11bd9b,_0x4bc57d,_0x578965),{columnHeaderHeightAndMarginTop:_0x264ab}=_0x578965,{startX:_0xe921c9,startY:_0x87bd3f}=_0x31ccd9,{endX:_0x1f241e,endY:_0x129aea}=_0x1d84c5,_0x4809d9=_0x1f241e-_0xe921c9,_0x4acd8d=_0x129aea-_0x87bd3f,_0x30f773={'labelPosition':_0x87bd3f-_0x264ab>=_0x5ef2a6?'top':_0x2c03ac(0x357),'sheetID':_0x312110,'range':_0x1ec2c6,'color':_0xe74dca,'name':_0x6cf428,'selection':_0x18d68f,'left':_0xe921c9,'top':_0x87bd3f,'width':_0x4809d9,'height':_0x4acd8d,'evented':!0x1,'zIndex':_0x9ad0ea};return new _0x59aba4(_0x6cf428,_0x30f773);});_0x4bc57d[_0x12aaf7(0x276)](_0x53d93e,_0x7dffed),this[_0x12aaf7(0x2d9)]=new Set(_0x53d93e);}[_0x50d4f7(0x26a)](){const _0x1cb400=_0x50d4f7;var _0x55fbfc;(_0x55fbfc=this[_0x1cb400(0x2d9)])==null||_0x55fbfc[_0x1cb400(0x2fa)](_0x2b93b3=>_0x2b93b3[_0x1cb400(0x225)]());}[_0x50d4f7(0x1c3)](){const _0xc34832=_0x50d4f7;return _0x5eb834[_0xc34832(0x2cd)](this[_0xc34832(0x2e4)][_0xc34832(0x33a)],this[_0xc34832(0x2e4)]);}};_0x4cb1cf=_0x47a4b2([_0x3b40aa(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x5eb834['SheetSkeletonManagerService'])),_0x3b40aa(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x1c920a)),_0x3b40aa(0x3,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x2c4)]))],_0x4cb1cf);function _0x2a4571(_0x51603e){const _0x1622b1=_0x50d4f7,_0x144878=new Map();return _0x51603e[_0x1622b1(0x2fa)](_0x4b10f5=>{const _0x2aec61=_0x1622b1;if(_0x144878[_0x2aec61(0x1fc)](_0x4b10f5[_0x2aec61(0x1ec)])){const _0xff71b8=_0x144878[_0x2aec61(0x22d)](_0x4b10f5[_0x2aec61(0x1ec)]);_0xff71b8[_0x2aec61(0x2ca)]+=',\x20'+_0x4b10f5[_0x2aec61(0x2ca)];}else _0x144878['set'](_0x4b10f5['selection'],_0x4b10f5);}),Array[_0x1622b1(0x363)](_0x144878[_0x1622b1(0x2f4)]());}var _0xb2f0fb=function(){const _0x53b354=_0x50d4f7;return _0xb2f0fb=Object[_0x53b354(0x2c9)]||function(_0xf65184){const _0x5d133d=_0x53b354;for(var _0x564d9c,_0x159ef6=0x1,_0xaf7cef=arguments['length'];_0x159ef6<_0xaf7cef;_0x159ef6++){_0x564d9c=arguments[_0x159ef6];for(var _0x53c554 in _0x564d9c)Object[_0x5d133d(0x25a)][_0x5d133d(0x179)][_0x5d133d(0x174)](_0x564d9c,_0x53c554)&&(_0xf65184[_0x53c554]=_0x564d9c[_0x53c554]);}return _0xf65184;},_0xb2f0fb[_0x53b354(0x2d2)](this,arguments);},_0x14b0dc=function(_0x5cfd39,_0xccda51){const _0x3195b4=_0x50d4f7;var _0x4352a8={};for(var _0xb62aaa in _0x5cfd39)Object['prototype'][_0x3195b4(0x179)][_0x3195b4(0x174)](_0x5cfd39,_0xb62aaa)&&_0xccda51[_0x3195b4(0x313)](_0xb62aaa)<0x0&&(_0x4352a8[_0xb62aaa]=_0x5cfd39[_0xb62aaa]);if(_0x5cfd39!=null&&typeof Object[_0x3195b4(0x38d)]=='function'){for(var _0xb71920=0x0,_0xb62aaa=Object[_0x3195b4(0x38d)](_0x5cfd39);_0xb71920<_0xb62aaa[_0x3195b4(0x34e)];_0xb71920++)_0xccda51[_0x3195b4(0x313)](_0xb62aaa[_0xb71920])<0x0&&Object[_0x3195b4(0x25a)][_0x3195b4(0x250)][_0x3195b4(0x174)](_0x5cfd39,_0xb62aaa[_0xb71920])&&(_0x4352a8[_0xb62aaa[_0xb71920]]=_0x5cfd39[_0xb62aaa[_0xb71920]]);}return _0x4352a8;},_0x19bebb=_0x5982ca[_0x50d4f7(0x237)](function(_0x136b36,_0x88badf){const _0x5f10d0=_0x50d4f7;var _0xde1bbd=_0x136b36['icon'],_0x464857=_0x136b36['id'],_0x58baa9=_0x136b36['className'],_0x652b90=_0x136b36[_0x5f10d0(0x1d0)],_0x4feed0=_0x14b0dc(_0x136b36,[_0x5f10d0(0x3f0),'id',_0x5f10d0(0x282),_0x5f10d0(0x1d0)]),_0x4be4be=_0x5f10d0(0x2a4)[_0x5f10d0(0x2a7)](_0x464857,'\x20')['concat'](_0x58baa9||'')[_0x5f10d0(0x2c1)](),_0x388c98=_0x5982ca[_0x5f10d0(0x3e7)]('_'[_0x5f10d0(0x2a7)](_0x2830cf()));return _0x2bfe94(_0xde1bbd,''['concat'](_0x464857),{'defIds':_0xde1bbd[_0x5f10d0(0x283)],'idSuffix':_0x388c98[_0x5f10d0(0x361)]},_0xb2f0fb({'ref':_0x88badf,'className':_0x4be4be},_0x4feed0),_0x652b90);});function _0x2bfe94(_0x4c6217,_0x4ebcab,_0x4286a5,_0xd1e1ef,_0x1b8b4c){const _0x34c7fd=_0x50d4f7;return _0x5982ca[_0x34c7fd(0x2fb)](_0x4c6217[_0x34c7fd(0x265)],_0xb2f0fb(_0xb2f0fb({'key':_0x4ebcab},_0xc55b14(_0x4c6217,_0x4286a5,_0x1b8b4c)),_0xd1e1ef),(_0xe8db58(_0x4c6217,_0x4286a5)[_0x34c7fd(0x35d)]||[])[_0x34c7fd(0x2ae)](function(_0xdd4842,_0x14244e){const _0x3d5aea=_0x34c7fd;return _0x2bfe94(_0xdd4842,''['concat'](_0x4ebcab,'-')[_0x3d5aea(0x2a7)](_0x4c6217['tag'],'-')[_0x3d5aea(0x2a7)](_0x14244e),_0x4286a5,void 0x0,_0x1b8b4c);}));}function _0xc55b14(_0x3daec7,_0x5336b4,_0x5e059c){const _0x4ad674=_0x50d4f7;var _0x3f26b9=_0xb2f0fb({},_0x3daec7[_0x4ad674(0x2df)]);_0x5e059c!=null&&_0x5e059c['colorChannel1']&&_0x3f26b9[_0x4ad674(0x281)]===_0x4ad674(0x3ea)&&(_0x3f26b9[_0x4ad674(0x281)]=_0x5e059c['colorChannel1']),_0x3daec7[_0x4ad674(0x265)]===_0x4ad674(0x16e)&&_0x3f26b9['id']&&(_0x3f26b9['id']=_0x3f26b9['id']+_0x5336b4[_0x4ad674(0x3b9)]),Object[_0x4ad674(0x3e0)](_0x3f26b9)[_0x4ad674(0x2fa)](function(_0x444d73){const _0xfe8d60=_0x4ad674;var _0x1ccd25=_0x444d73[0x0],_0x10905e=_0x444d73[0x1];_0x1ccd25==='mask'&&typeof _0x10905e==_0xfe8d60(0x3a5)&&(_0x3f26b9[_0x1ccd25]=_0x10905e[_0xfe8d60(0x3ed)](/url\(#(.*)\)/,'url(#$1'[_0xfe8d60(0x2a7)](_0x5336b4[_0xfe8d60(0x3b9)],')')));});var _0x26f82b=_0x5336b4[_0x4ad674(0x283)];return!_0x26f82b||_0x26f82b[_0x4ad674(0x34e)]===0x0||(_0x3daec7['tag']==='use'&&_0x3f26b9[_0x4ad674(0x2f6)]&&(_0x3f26b9[_0x4ad674(0x2f6)]=_0x3f26b9[_0x4ad674(0x2f6)]+_0x5336b4[_0x4ad674(0x3b9)]),Object[_0x4ad674(0x3e0)](_0x3f26b9)[_0x4ad674(0x2fa)](function(_0x3427a5){const _0x1d1def=_0x4ad674;var _0x379eb0=_0x3427a5[0x0],_0x1ff5c7=_0x3427a5[0x1];typeof _0x1ff5c7==_0x1d1def(0x3a5)&&(_0x3f26b9[_0x379eb0]=_0x1ff5c7[_0x1d1def(0x3ed)](/url\(#(.*)\)/,'url(#$1'[_0x1d1def(0x2a7)](_0x5336b4[_0x1d1def(0x3b9)],')')));})),_0x3f26b9;}function _0xe8db58(_0x339d3e,_0x8d9737){const _0x389528=_0x50d4f7;var _0x281532,_0x5dee3f=_0x8d9737['defIds'];return!_0x5dee3f||_0x5dee3f[_0x389528(0x34e)]===0x0?_0x339d3e:_0x339d3e[_0x389528(0x265)]==='defs'&&(!((_0x281532=_0x339d3e[_0x389528(0x35d)])===null||_0x281532===void 0x0)&&_0x281532[_0x389528(0x34e)])?_0xb2f0fb(_0xb2f0fb({},_0x339d3e),{'children':_0x339d3e[_0x389528(0x35d)][_0x389528(0x2ae)](function(_0x399a51){const _0x4efb2a=_0x389528;return typeof _0x399a51[_0x4efb2a(0x2df)]['id']=='string'&&_0x5dee3f&&_0x5dee3f[_0x4efb2a(0x313)](_0x399a51['attrs']['id'])>-0x1?_0xb2f0fb(_0xb2f0fb({},_0x399a51),{'attrs':_0xb2f0fb(_0xb2f0fb({},_0x399a51[_0x4efb2a(0x2df)]),{'id':_0x399a51[_0x4efb2a(0x2df)]['id']+_0x8d9737[_0x4efb2a(0x3b9)]})}):_0x399a51;})}):_0x339d3e;}function _0x2830cf(){const _0x501bbe=_0x50d4f7;return Math[_0x501bbe(0x372)]()[_0x501bbe(0x3af)](0x24)[_0x501bbe(0x34b)](0x2,0x8);}_0x19bebb['displayName']=_0x50d4f7(0x288);var _0x930076={'tag':_0x50d4f7(0x224),'attrs':{'fill':_0x50d4f7(0x1bc),'viewBox':_0x50d4f7(0x240),'width':_0x50d4f7(0x18f),'height':_0x50d4f7(0x18f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x50d4f7(0x1ef),'attrs':{'stroke':_0x50d4f7(0x380),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x50d4f7(0x397),'strokeWidth':1.2}}]},{'tag':_0x50d4f7(0x26d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x50d4f7(0x2f2)},'children':[{'tag':'path','attrs':{'fill':_0x50d4f7(0x375),'d':_0x50d4f7(0x396)}}]}]}],'defIds':[_0x50d4f7(0x2f2)]},_0x56e1bc=_0x5982ca[_0x50d4f7(0x237)](function(_0x5e81e4,_0x55d6ad){const _0x382581=_0x50d4f7;return _0x5982ca[_0x382581(0x2fb)](_0x19bebb,Object[_0x382581(0x2c9)]({},_0x5e81e4,{'id':_0x382581(0x2c5),'ref':_0x55d6ad,'icon':_0x930076}));});_0x56e1bc[_0x50d4f7(0x3b2)]=_0x50d4f7(0x364);var _0x40d0a1={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x50d4f7(0x18f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x50d4f7(0x1ef),'attrs':{'stroke':_0x50d4f7(0x380),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x50d4f7(0x397),'strokeLinejoin':_0x50d4f7(0x397),'strokeWidth':1.2}}]},{'tag':_0x50d4f7(0x26d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x50d4f7(0x1ef),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x50d4f7(0x376)}}]}]}],'defIds':[_0x50d4f7(0x36c)]},_0x42b7de=_0x5982ca['forwardRef'](function(_0x154d4f,_0x1b113a){const _0x59ade1=_0x50d4f7;return _0x5982ca[_0x59ade1(0x2fb)](_0x19bebb,Object[_0x59ade1(0x2c9)]({},_0x154d4f,{'id':_0x59ade1(0x2b1),'ref':_0x1b113a,'icon':_0x40d0a1}));});_0x42b7de[_0x50d4f7(0x3b2)]=_0x50d4f7(0x362);function _0x4797fb(_0x368e56){const _0x4b427d=_0x50d4f7;switch(_0x368e56){case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x3e4)]:return _0x4b427d(0x2f9);case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x35f)]:return'collabStatus.conflict';case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x345)]:return'collabStatus.fetchMiss';case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x262)]:return _0x4b427d(0x2d3);case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x398)]:case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x2bf)]:return'collabStatus.syncing';case _0x505ca1[_0x4b427d(0x223)][_0x4b427d(0x22e)]:case _0x505ca1['CollaborationStatus'][_0x4b427d(0x2b9)]:return'collabStatus.synced';}}function _0x32d2f0(_0x1b571a){const _0x4f0023=_0x50d4f7,{status$:_0x434ca2}=_0x1b571a,_0x100f03=_0xbe19f3['useObservable'](_0x434ca2,_0x505ca1[_0x4f0023(0x223)]['NOT_COLLAB']),_0x1c2379=_0xbe19f3[_0x4f0023(0x20e)](_0x2a357a[_0x4f0023(0x2bb)]),_0x505383=_0xbe19f3[_0x4f0023(0x20e)](_0x505ca1[_0x4f0023(0x27a)]),_0x1c99a8=_0x100f03!==_0x505ca1['CollaborationStatus'][_0x4f0023(0x3e4)],_0x429622=_0x1c2379['t'](_0x4797fb(_0x100f03)),_0x332387=_0x1c99a8?_0x40a1df[_0x4f0023(0x299)](_0x42b7de,{}):_0x40a1df[_0x4f0023(0x299)](_0x56e1bc,{}),_0x35dddd=_0x5982ca[_0x4f0023(0x20b)](()=>{const _0x48e86d=_0x4f0023;_0x1c99a8||_0x505383[_0x48e86d(0x1bd)]();},[_0x1c99a8,_0x505383]);function _0x3c946f(){const _0x363cb4=_0x4f0023;return _0x40a1df[_0x363cb4(0x384)](_0x363cb4(0x307),{'className':'univer-flex\x20univer-items-center','onClick':_0x35dddd,'children':[_0x40a1df[_0x363cb4(0x299)](_0x363cb4(0x307),{'className':_0x21e5c5['clsx'](_0x363cb4(0x1e7),{'univer-text-green-500':_0x1c99a8,'univer-text-red-500':!_0x1c99a8}),'children':_0x332387}),_0x40a1df[_0x363cb4(0x299)](_0x363cb4(0x307),{'className':_0x363cb4(0x257),'children':_0x429622})]});}return _0x1c99a8?_0x3c946f():_0x40a1df['jsx'](_0x21e5c5['Tooltip'],{'title':_0x1c2379['t'](_0x4f0023(0x3fd)),'children':_0x3c946f()});}var _0x552950=Object[_0x50d4f7(0x2da)],_0xa47006=(_0x424331,_0xabb1d4,_0x46efbd,_0x3d8dd7)=>{const _0x360fb7=_0x50d4f7;for(var _0x328e36=_0x3d8dd7>0x1?void 0x0:_0x3d8dd7?_0x552950(_0xabb1d4,_0x46efbd):_0xabb1d4,_0x26df78=_0x424331[_0x360fb7(0x34e)]-0x1,_0xb811e9;_0x26df78>=0x0;_0x26df78--)(_0xb811e9=_0x424331[_0x26df78])&&(_0x328e36=_0xb811e9(_0x328e36)||_0x328e36);return _0x328e36;},_0x5fec67=(_0x8db346,_0x9c18ce)=>(_0x5a1795,_0x406fe1)=>_0x9c18ce(_0x5a1795,_0x406fe1,_0x8db346);_0x420e4b[_0x50d4f7(0x27f)]=class extends _0x2a357a[_0x50d4f7(0x3c9)]{constructor(_0x133f73,_0x3ec787,_0x4e7266,_0x40f407){const _0x50c140=_0x50d4f7;super(),_0x1bb9f9(this,'_status$',new _0x224c35[(_0x50c140(0x27e))](_0x505ca1[_0x50c140(0x223)][_0x50c140(0x262)])),(this[_0x50c140(0x3c4)]=_0x133f73,this[_0x50c140(0x21b)]=_0x3ec787,this['_collaborationController']=_0x4e7266,this['_uiPartsService']=_0x40f407,this[_0x50c140(0x3df)](),this[_0x50c140(0x27b)]());}[_0x50d4f7(0x27b)](){const _0x1c0c34=_0x50d4f7;this[_0x1c0c34(0x24e)](this[_0x1c0c34(0x3c4)][_0x1c0c34(0x2fd)][_0x1c0c34(0x3bf)](_0x224c35[_0x1c0c34(0x25e)](()=>{const _0x1549d2=_0x1c0c34,_0x59c2f1=this[_0x1549d2(0x3c4)][_0x1549d2(0x23e)]();return _0x59c2f1?this[_0x1549d2(0x3ad)][_0x1549d2(0x370)](_0x59c2f1[_0x1549d2(0x3b1)]()):_0x224c35['of'](null);}),_0x224c35[_0x1c0c34(0x25e)](_0x30445c=>_0x30445c?_0x30445c[_0x1c0c34(0x3a9)]:_0x224c35['of'](_0x505ca1['CollaborationStatus']['NOT_COLLAB'])))[_0x1c0c34(0x2cf)](_0x3e4a79=>{this['_status$']['next'](_0x3e4a79);}));}[_0x50d4f7(0x3df)](){const _0x56007b=_0x50d4f7;this[_0x56007b(0x24e)](this[_0x56007b(0x1db)][_0x56007b(0x191)](_0xbe19f3[_0x56007b(0x1a6)][_0x56007b(0x1f1)],()=>_0xbe19f3[_0x56007b(0x230)](_0x11f05a({'status$':this[_0x56007b(0x3f6)][_0x56007b(0x301)]()}),this['_injector'])));}},_0x420e4b[_0x50d4f7(0x27f)]=_0xa47006([_0x5fec67(0x0,_0x2a357a[_0x50d4f7(0x382)]),_0x5fec67(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x173)])),_0x5fec67(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1['CollaborationController'])),_0x5fec67(0x3,_0xbe19f3[_0x50d4f7(0x2e7)])],_0x420e4b['DesktopCollaborationStatusDisplayController']);function _0x11f05a(_0x514e9a){const {status$:_0x46a609}=_0x514e9a;return function(){return _0x40a1df['jsx'](_0x32d2f0,{'status$':_0x46a609});};}var _0x1458b9=Object[_0x50d4f7(0x2da)],_0x22878e=(_0x4c081b,_0x2af431,_0x235035,_0x1c94d8)=>{const _0xee03c8=_0x50d4f7;for(var _0x2c8e55=_0x1c94d8>0x1?void 0x0:_0x1c94d8?_0x1458b9(_0x2af431,_0x235035):_0x2af431,_0x58146c=_0x4c081b[_0xee03c8(0x34e)]-0x1,_0x2b14b2;_0x58146c>=0x0;_0x58146c--)(_0x2b14b2=_0x4c081b[_0x58146c])&&(_0x2c8e55=_0x2b14b2(_0x2c8e55)||_0x2c8e55);return _0x2c8e55;},_0x1a4fda=(_0x1b67a4,_0x1bc572)=>(_0x26f623,_0x303451)=>_0x1bc572(_0x26f623,_0x303451,_0x1b67a4);let _0x2c6da3=class extends _0x2a357a[_0x50d4f7(0x3c9)]{constructor(_0x37413a,_0x23f96c,_0xf4b207,_0x329350,_0x1fbd51,_0xfe3d7d){const _0x2b454b=_0x50d4f7;super(),this['_beforeCloseService']=_0x37413a,this[_0x2b454b(0x212)]=_0x23f96c,this['_collaborationUIEventService']=_0xf4b207,this[_0x2b454b(0x319)]=_0x329350,this[_0x2b454b(0x300)]=_0x1fbd51,this[_0x2b454b(0x25f)]=_0xfe3d7d,this[_0x2b454b(0x388)](),this[_0x2b454b(0x28a)]();}[_0x50d4f7(0x388)](){const _0x25ebc7=_0x50d4f7;this[_0x25ebc7(0x24e)](this[_0x25ebc7(0x1e4)][_0x25ebc7(0x22a)](()=>{const _0x201046=_0x25ebc7;if(this['_localCacheService']['saveTaskMap'][_0x201046(0x318)])return this[_0x201046(0x25f)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x50d4f7(0x28a)](){const _0x5ac0e1=_0x50d4f7;this[_0x5ac0e1(0x24e)](this[_0x5ac0e1(0x204)][_0x5ac0e1(0x23f)][_0x5ac0e1(0x2cf)](_0x447e96=>{const _0x58e800=_0x5ac0e1;_0x447e96['id']===_0x505ca1[_0x58e800(0x365)][_0x58e800(0x1ee)]&&this[_0x58e800(0x319)][_0x58e800(0x190)]({'type':_0x21e5c5[_0x58e800(0x3fe)][_0x58e800(0x3f1)],'content':this[_0x58e800(0x25f)]['t'](_0x58e800(0x260))}),_0x447e96['id']===_0x505ca1[_0x58e800(0x365)]['CLOSE_ROOM']&&this[_0x58e800(0x319)]['show']({'type':_0x21e5c5[_0x58e800(0x3fe)][_0x58e800(0x3f1)],'content':this[_0x58e800(0x25f)]['t']('collaboration.closeRoom')}),_0x447e96['id']===_0x505ca1['CollaborationUIEventId'][_0x58e800(0x244)]&&this[_0x58e800(0x300)][_0x58e800(0x190)]({'title':this[_0x58e800(0x25f)]['t']('permission.title'),'content':this[_0x58e800(0x25f)]['t']('permission.content'),'type':_0x58e800(0x2bd),'duration':0x0}),_0x447e96['id']===_0x505ca1['CollaborationUIEventId'][_0x58e800(0x35f)]&&this[_0x58e800(0x319)][_0x58e800(0x190)]({'type':_0x21e5c5[_0x58e800(0x3fe)]['Error'],'content':this[_0x58e800(0x25f)]['t'](_0x58e800(0x310))+'('+_0x447e96[_0x58e800(0x205)]+')'}),_0x447e96['id']===_0x505ca1[_0x58e800(0x365)][_0x58e800(0x1cb)]&&this[_0x58e800(0x319)][_0x58e800(0x190)]({'type':_0x21e5c5['MessageType']['Warning'],'content':this['_localeService']['t'](_0x447e96[_0x58e800(0x205)]||'')}),_0x447e96['id']===_0x505ca1['CollaborationUIEventId'][_0x58e800(0x368)]&&this[_0x58e800(0x319)][_0x58e800(0x190)]({'type':_0x21e5c5[_0x58e800(0x3fe)]['Warning'],'content':this[_0x58e800(0x25f)]['t'](_0x58e800(0x3be))}),_0x447e96['id']===_0x505ca1[_0x58e800(0x365)][_0x58e800(0x392)]&&this[_0x58e800(0x319)]['show']({'type':_0x21e5c5['MessageType'][_0x58e800(0x1a0)],'content':this['_localeService']['t'](_0x58e800(0x34d))}),_0x447e96['id']===_0x505ca1[_0x58e800(0x365)][_0x58e800(0x231)]&&this[_0x58e800(0x319)]['show']({'type':_0x21e5c5['MessageType'][_0x58e800(0x1a0)],'content':this[_0x58e800(0x25f)]['t']('session.collaboration-timeout')});}));}};_0x2c6da3=_0x22878e([_0x1a4fda(0x0,_0xbe19f3['IBeforeCloseService']),_0x1a4fda(0x1,_0x505ca1[_0x50d4f7(0x2ff)]),_0x1a4fda(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1['CollaborationUIEventService'])),_0x1a4fda(0x3,_0xbe19f3[_0x50d4f7(0x24c)]),_0x1a4fda(0x4,_0xbe19f3[_0x50d4f7(0x22c)]),_0x1a4fda(0x5,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x2bb)]))],_0x2c6da3);const _0x5e90cf=_0x50d4f7(0x1e8),_0x21692d={},_0x3c28aa=_0x2a357a[_0x50d4f7(0x2aa)]('uni.network.url-service');var _0x584cc7=Object[_0x50d4f7(0x2da)],_0x44f80d=(_0xfe5514,_0x1971b3,_0x3d5105,_0x38c865)=>{const _0x510d23=_0x50d4f7;for(var _0x3bdb78=_0x38c865>0x1?void 0x0:_0x38c865?_0x584cc7(_0x1971b3,_0x3d5105):_0x1971b3,_0x3eee96=_0xfe5514[_0x510d23(0x34e)]-0x1,_0x15ddd8;_0x3eee96>=0x0;_0x3eee96--)(_0x15ddd8=_0xfe5514[_0x3eee96])&&(_0x3bdb78=_0x15ddd8(_0x3bdb78)||_0x3bdb78);return _0x3bdb78;},_0xde270e=(_0xe36892,_0x30fcec)=>(_0x314ceb,_0x50c916)=>_0x30fcec(_0x314ceb,_0x50c916,_0xe36892);_0x420e4b[_0x50d4f7(0x270)]=class extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(_0x7c5ddb,_0x35bc27,_0x1daf58,_0x335a6e,_0xf7b9d2){const _0x3b0dff=_0x50d4f7;super(),this[_0x3b0dff(0x28e)]=_0x7c5ddb,this['_logService']=_0x35bc27,this[_0x3b0dff(0x306)]=_0x1daf58,this['_dataLoaderService']=_0x335a6e,_0xf7b9d2?_0xf7b9d2==null||_0xf7b9d2[_0x3b0dff(0x1f4)]()[_0x3b0dff(0x1be)](()=>this[_0x3b0dff(0x3d8)]()):(this[_0x3b0dff(0x275)][_0x3b0dff(0x2d1)](_0x3b0dff(0x271),_0x3b0dff(0x1ea)),this[_0x3b0dff(0x3d8)]());}async['_init'](){const _0x1630f=_0x50d4f7,_0x28cf8e=this[_0x1630f(0x28e)][_0x1630f(0x17a)](_0x1630f(0x33a)),_0x51956a=this[_0x1630f(0x28e)][_0x1630f(0x17a)](_0x1630f(0x1d8)),_0x34eb24=this[_0x1630f(0x28e)][_0x1630f(0x17a)](_0x1630f(0x209));if(!_0x28cf8e||!_0x51956a){this['_logService'][_0x1630f(0x2d1)](_0x1630f(0x271),_0x1630f(0x3ac));return;}const _0x85dd00=await this['_dataLoaderService'][_0x1630f(0x2c6)](_0x28cf8e,Number(_0x51956a),_0x34eb24);_0x85dd00&&_0x85dd00 instanceof _0x2a357a['Workbook']&&this[_0x1630f(0x28d)](_0x85dd00);}async[_0x50d4f7(0x28d)](_0x15c59e){const _0xd7280e=_0x50d4f7;await this[_0xd7280e(0x1aa)](_0x15c59e),_0x15c59e[_0xd7280e(0x2dc)][_0xd7280e(0x3bf)](_0x224c35[_0xd7280e(0x184)](this[_0xd7280e(0x2f3)]))[_0xd7280e(0x2cf)](_0x4c38a3=>{_0x4c38a3&&this['_updateURLWithCurrentState'](_0x4c38a3);}),this[_0xd7280e(0x28e)][_0xd7280e(0x28c)][_0xd7280e(0x3bf)](_0x224c35[_0xd7280e(0x184)](this['dispose$']))[_0xd7280e(0x2cf)](()=>this[_0xd7280e(0x1aa)](_0x15c59e));}[_0x50d4f7(0x2e8)](_0x441dd5,_0xe29e38=!0x1){const _0x33fabf=_0x50d4f7,_0x22c1f6=this[_0x33fabf(0x28e)]['getParam'](_0x33fabf(0x209));_0x441dd5[_0x33fabf(0x1d1)]()!==_0x22c1f6&&this[_0x33fabf(0x28e)][_0x33fabf(0x296)](_0x33fabf(0x209),_0x441dd5[_0x33fabf(0x1d1)](),_0xe29e38);}async[_0x50d4f7(0x1aa)](_0x927319){const _0x3ebb8b=_0x50d4f7;var _0x253ed8;const _0x2df1ce=this[_0x3ebb8b(0x28e)]['getParam'](_0x3ebb8b(0x209));if(!_0x2df1ce||!_0x927319[_0x3ebb8b(0x379)](_0x2df1ce)){const _0x40e067=_0x927319[_0x3ebb8b(0x3c1)]()[0x0],_0x55f48c=_0x927319[_0x3ebb8b(0x379)](_0x40e067);if(!_0x55f48c)return;this[_0x3ebb8b(0x2e8)](_0x55f48c,!0x0),await this[_0x3ebb8b(0x306)]['executeCommand'](_0xb393d1['SetWorksheetActivateCommand']['id'],{'unitId':_0x927319[_0x3ebb8b(0x3b1)](),'subUnitId':_0x40e067});return;}((_0x253ed8=_0x927319[_0x3ebb8b(0x31b)]())==null?void 0x0:_0x253ed8[_0x3ebb8b(0x1d1)]())!==_0x2df1ce&&await this[_0x3ebb8b(0x306)][_0x3ebb8b(0x1e5)](_0xb393d1['SetWorksheetActivateCommand']['id'],{'unitId':_0x927319[_0x3ebb8b(0x3b1)](),'subUnitId':_0x2df1ce});}},_0x420e4b[_0x50d4f7(0x270)]=_0x44f80d([_0xde270e(0x0,_0x3c28aa),_0xde270e(0x1,_0x2a357a[_0x50d4f7(0x1b2)]),_0xde270e(0x2,_0x2a357a[_0x50d4f7(0x305)]),_0xde270e(0x3,_0x2a357a['Inject'](_0x505ca1[_0x50d4f7(0x218)])),_0xde270e(0x4,_0x2a357a[_0x50d4f7(0x348)](_0x215223['IRemoteInstanceService']))],_0x420e4b[_0x50d4f7(0x270)]);var _0x415032=Object[_0x50d4f7(0x2da)],_0x2fd46d=(_0x1f0a84,_0x5d1ac6,_0x2d85da,_0x4e8116)=>{const _0x2b5aae=_0x50d4f7;for(var _0x383424=_0x4e8116>0x1?void 0x0:_0x4e8116?_0x415032(_0x5d1ac6,_0x2d85da):_0x5d1ac6,_0xbbb841=_0x1f0a84[_0x2b5aae(0x34e)]-0x1,_0x4bc9f5;_0xbbb841>=0x0;_0xbbb841--)(_0x4bc9f5=_0x1f0a84[_0xbbb841])&&(_0x383424=_0x4bc9f5(_0x383424)||_0x383424);return _0x383424;},_0x5afb1f=(_0x13f329,_0x20a32d)=>(_0x12f980,_0x302937)=>_0x20a32d(_0x12f980,_0x302937,_0x13f329);let _0x3863cf=class{constructor(_0x2fe267,_0x2e2cfb,_0x147d29){const _0x5c8ad8=_0x50d4f7;this[_0x5c8ad8(0x21b)]=_0x2fe267,this[_0x5c8ad8(0x289)]=_0x2e2cfb,this[_0x5c8ad8(0x3b6)]=_0x147d29;}[_0x50d4f7(0x373)](_0x4edd02){const _0x2df6f4=_0x50d4f7;this[_0x2df6f4(0x352)](_0x4edd02),this[_0x2df6f4(0x2ef)](_0x4edd02);}['transformRemoteChangeset'](_0x5c82d4){const _0xd57235=_0x50d4f7,{unitID:_0x2efa95}=_0x5c82d4,_0x5bad9a=this['_renderManagerService'][_0xd57235(0x17e)](_0x2efa95)['with'](_0x32c769[_0xd57235(0x308)]),{redoCache:_0x8ab848}=_0x5bad9a[_0xd57235(0x336)]();if(_0x8ab848[_0xd57235(0x34e)]===0x0)return _0x5c82d4;let _0x44803d=_0x2a357a[_0xd57235(0x1fb)][_0xd57235(0x3e8)](_0x5c82d4[_0xd57235(0x2fc)][0x0]);for(let _0x1519ec=0x0;_0x1519ec<_0x8ab848[_0xd57235(0x34e)];_0x1519ec++){const _0xbf7ad1={'id':_0xd57235(0x338),'params':{..._0x8ab848[_0x1519ec]}},_0x1fa788=this[_0xd57235(0x289)][_0xd57235(0x1d2)](_0x44803d,_0xbf7ad1,!0x1);if(_0x8d16e0[_0xd57235(0x273)](_0x1fa788))throw _0x1fa788[_0xd57235(0x2bd)];_0x44803d=_0x1fa788['m1Prime'];}return{..._0x2a357a[_0xd57235(0x1fb)]['deepClone'](_0x5c82d4),'mutations':[_0x44803d]};}[_0x50d4f7(0x352)](_0x4b97b4){const _0x1de07b=_0x50d4f7,{unitID:_0x406d56}=_0x4b97b4,_0x75a460=this[_0x1de07b(0x3b6)][_0x1de07b(0x17e)](_0x406d56)[_0x1de07b(0x3b3)](_0x32c769['DocIMEInputManagerService']),{undoCache:_0x2cbe70,redoCache:_0x30aaca}=_0x75a460['getUndoRedoMutationParamsCache']();if(_0x2cbe70['length']===0x0||_0x30aaca['length']===0x0)return;const _0x41ae05=[],_0x451a21=[];let _0x476073=_0x2a357a[_0x1de07b(0x1fb)][_0x1de07b(0x3e8)](_0x4b97b4[_0x1de07b(0x2fc)][0x0]),_0x7dbb79=_0x2a357a[_0x1de07b(0x1fb)]['deepClone'](_0x4b97b4[_0x1de07b(0x2fc)][0x0]);for(let _0x38beb8=_0x2cbe70[_0x1de07b(0x34e)]-0x1;_0x38beb8>=0x0;_0x38beb8--){const _0x2ef156={'id':_0x1de07b(0x338),'params':{..._0x2cbe70[_0x38beb8]}},_0x3ac48b={'id':_0x1de07b(0x338),'params':{..._0x30aaca[_0x38beb8]}},_0x2dd9b8=this[_0x1de07b(0x289)]['transformMutation'](_0x476073,_0x2ef156,!0x1),_0x3d9ecc=this[_0x1de07b(0x289)]['transformMutation'](_0x7dbb79,_0x3ac48b,!0x1);if(_0x8d16e0[_0x1de07b(0x273)](_0x2dd9b8))throw _0x2dd9b8['error'];if(_0x8d16e0['isTransformMutationFailure'](_0x3d9ecc))throw _0x3d9ecc[_0x1de07b(0x2bd)];_0x41ae05[_0x1de07b(0x215)](_0x2dd9b8[_0x1de07b(0x1ad)]['params']),_0x451a21[_0x1de07b(0x215)](_0x3d9ecc[_0x1de07b(0x1ad)][_0x1de07b(0x36d)]),_0x476073=_0x2dd9b8['m1Prime'],_0x7dbb79=_0x3d9ecc['m1Prime'];}_0x75a460['setUndoRedoMutationParamsCache']({'undoCache':_0x41ae05,'redoCache':_0x451a21});}[_0x50d4f7(0x2ef)](_0x481116){const _0x5e9b0c=_0x50d4f7,{unitID:_0x510d85}=_0x481116,_0xabcd12=this['_renderManagerService'][_0x5e9b0c(0x17e)](_0x510d85)[_0x5e9b0c(0x3b3)](_0x32c769[_0x5e9b0c(0x308)]),_0x46e67a=_0xabcd12['getActiveRange']();if(_0x46e67a==null)return;const _0x45feb2=[{'id':_0x5e9b0c(0x338),'params':{'unitId':_0x481116['unitID'],'actions':null,'textRanges':[_0x46e67a]}}],_0x499770=this[_0x5e9b0c(0x289)][_0x5e9b0c(0x2a6)](_0x481116,_0x45feb2);if(!_0x8d16e0[_0x5e9b0c(0x18e)](_0x499770))throw _0x499770['error'];const _0x1cb537=_0x499770['m2Prime'][0x0][_0x5e9b0c(0x36d)][_0x5e9b0c(0x30b)];Array[_0x5e9b0c(0x328)](_0x1cb537)&&_0x1cb537[_0x5e9b0c(0x34e)]&&_0xabcd12['setActiveRange'](_0x1cb537[0x0]);}};_0x3863cf=_0x2fd46d([_0x5afb1f(0x0,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x173)])),_0x5afb1f(0x1,_0x8d16e0['ITransformService']),_0x5afb1f(0x2,_0x4dd679[_0x50d4f7(0x1e1)])],_0x3863cf);var _0x51b772=Object[_0x50d4f7(0x2da)],_0x375d75=(_0x389bdb,_0x3c0a54,_0x5d0530,_0x1d3a5d)=>{const _0x54da87=_0x50d4f7;for(var _0x4b59ee=_0x1d3a5d>0x1?void 0x0:_0x1d3a5d?_0x51b772(_0x3c0a54,_0x5d0530):_0x3c0a54,_0x13d6d1=_0x389bdb[_0x54da87(0x34e)]-0x1,_0x1920f3;_0x13d6d1>=0x0;_0x13d6d1--)(_0x1920f3=_0x389bdb[_0x13d6d1])&&(_0x4b59ee=_0x1920f3(_0x4b59ee)||_0x4b59ee);return _0x4b59ee;},_0x45fcfc=(_0xaec930,_0x1d7745)=>(_0x17bbf0,_0x4a7a09)=>_0x1d7745(_0x17bbf0,_0x4a7a09,_0xaec930);let _0x383c77=class{constructor(_0x232397,_0x493313,_0x392451){const _0x2f519c=_0x50d4f7;this[_0x2f519c(0x21b)]=_0x232397,this['_transformService']=_0x493313,this[_0x2f519c(0x2e6)]=_0x392451;}[_0x50d4f7(0x242)](_0x4b7847){const _0x1f62ef=_0x50d4f7;this[_0x1f62ef(0x1a1)](_0x4b7847);}['transformRemoteChangeset'](_0x4be999){const _0x33a080=_0x50d4f7,{unitID:_0x50a255}=_0x4be999,{collaboration:_0x2c972e}=this[_0x33a080(0x2e6)][_0x33a080(0x1f8)](_0x50a255);if(_0x2c972e[_0x33a080(0x34e)]===0x0)return _0x4be999;let _0x4f8af0=_0x2a357a[_0x33a080(0x1fb)][_0x33a080(0x3e8)](_0x4be999[_0x33a080(0x2fc)][0x0]);for(let _0x2ae45f=0x0;_0x2ae45f<_0x2c972e[_0x33a080(0x34e)];_0x2ae45f++){const _0x1d788b={'id':_0x33a080(0x338),'params':{'unitId':_0x2c972e[_0x2ae45f][_0x33a080(0x287)],..._0x2c972e[_0x2ae45f][_0x33a080(0x1b6)]}},_0x348e9d=this[_0x33a080(0x289)][_0x33a080(0x1d2)](_0x4f8af0,_0x1d788b,!0x1);if(_0x8d16e0[_0x33a080(0x273)](_0x348e9d))throw _0x348e9d[_0x33a080(0x2bd)];_0x4f8af0=_0x348e9d[_0x33a080(0x290)];}return{..._0x2a357a['Tools']['deepClone'](_0x4be999),'mutations':[_0x4f8af0]};}[_0x50d4f7(0x1a1)](_0x2a7f39){const _0x356a42=_0x50d4f7,{unitID:_0x4595ff}=_0x2a7f39,{history:_0x25856b,collaboration:_0x1f87c2}=this['_docStateChangeManagerService'][_0x356a42(0x1f8)](_0x4595ff);if(_0x25856b['length']===0x0&&_0x1f87c2[_0x356a42(0x34e)]===0x0)return;const _0x355205=[],_0x56747a=[];let _0x2b382c=_0x2a357a['Tools']['deepClone'](_0x2a7f39[_0x356a42(0x2fc)][0x0]),_0x530f8e=_0x2a357a[_0x356a42(0x1fb)][_0x356a42(0x3e8)](_0x2a7f39[_0x356a42(0x2fc)][0x0]);for(let _0x23685b=_0x25856b[_0x356a42(0x34e)]-0x1;_0x23685b>=0x0;_0x23685b--){const _0x3f6741={'id':_0x356a42(0x338),'params':{'unitId':_0x25856b[_0x23685b][_0x356a42(0x287)],..._0x25856b[_0x23685b][_0x356a42(0x1fd)]}},_0x55f8aa={'id':_0x356a42(0x338),'params':{'unitId':_0x25856b[_0x23685b][_0x356a42(0x287)],..._0x25856b[_0x23685b][_0x356a42(0x1b6)]}},_0x2e6111=this[_0x356a42(0x289)][_0x356a42(0x1d2)](_0x2b382c,_0x3f6741,!0x1),_0x3148f3=this[_0x356a42(0x289)]['transformMutation'](_0x530f8e,_0x55f8aa,!0x1);if(_0x8d16e0[_0x356a42(0x273)](_0x2e6111))throw _0x2e6111['error'];if(_0x8d16e0['isTransformMutationFailure'](_0x3148f3))throw _0x3148f3[_0x356a42(0x2bd)];_0x355205[_0x356a42(0x215)]({..._0x25856b[_0x23685b],'undoState':_0x2e6111[_0x356a42(0x1ad)][_0x356a42(0x36d)],'redoState':_0x3148f3[_0x356a42(0x1ad)][_0x356a42(0x36d)]}),_0x2b382c=_0x2e6111[_0x356a42(0x290)],_0x530f8e=_0x3148f3[_0x356a42(0x290)];}_0x2b382c=_0x2a357a[_0x356a42(0x1fb)]['deepClone'](_0x2a7f39[_0x356a42(0x2fc)][0x0]),_0x530f8e=_0x2a357a['Tools'][_0x356a42(0x3e8)](_0x2a7f39['mutations'][0x0]);for(let _0x2eaf79=_0x1f87c2[_0x356a42(0x34e)]-0x1;_0x2eaf79>=0x0;_0x2eaf79--){const _0x341576={'id':_0x356a42(0x338),'params':{'unitId':_0x1f87c2[_0x2eaf79][_0x356a42(0x287)],..._0x1f87c2[_0x2eaf79]['undoState']}},_0x54588f={'id':_0x356a42(0x338),'params':{'unitId':_0x1f87c2[_0x2eaf79][_0x356a42(0x287)],..._0x1f87c2[_0x2eaf79][_0x356a42(0x1b6)]}},_0x112365=this[_0x356a42(0x289)][_0x356a42(0x1d2)](_0x2b382c,_0x341576,!0x1),_0x3199a5=this[_0x356a42(0x289)][_0x356a42(0x1d2)](_0x530f8e,_0x54588f,!0x1);if(_0x8d16e0[_0x356a42(0x273)](_0x112365))throw _0x112365[_0x356a42(0x2bd)];if(_0x8d16e0[_0x356a42(0x273)](_0x3199a5))throw _0x3199a5['error'];_0x56747a[_0x356a42(0x215)]({..._0x1f87c2[_0x2eaf79],'undoState':_0x112365[_0x356a42(0x1ad)]['params'],'redoState':_0x3199a5[_0x356a42(0x1ad)][_0x356a42(0x36d)]}),_0x2b382c=_0x112365['m1Prime'],_0x530f8e=_0x3199a5[_0x356a42(0x290)];}this[_0x356a42(0x2e6)][_0x356a42(0x2c0)](_0x4595ff,{'history':_0x355205,'collaboration':_0x56747a});}};_0x383c77=_0x375d75([_0x45fcfc(0x0,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x173)])),_0x45fcfc(0x1,_0x8d16e0[_0x50d4f7(0x24a)]),_0x45fcfc(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x32c769[_0x50d4f7(0x346)]))],_0x383c77);var _0x1ff0d9=Object[_0x50d4f7(0x2da)],_0x17686d=(_0x203a80,_0x32bcf6,_0x49a1fa,_0x443691)=>{const _0x1c4446=_0x50d4f7;for(var _0x1f5c37=_0x443691>0x1?void 0x0:_0x443691?_0x1ff0d9(_0x32bcf6,_0x49a1fa):_0x32bcf6,_0x5229b0=_0x203a80[_0x1c4446(0x34e)]-0x1,_0x1a5789;_0x5229b0>=0x0;_0x5229b0--)(_0x1a5789=_0x203a80[_0x5229b0])&&(_0x1f5c37=_0x1a5789(_0x1f5c37)||_0x1f5c37);return _0x1f5c37;},_0x5aea00=(_0x5a09d5,_0x2ddb56)=>(_0x18ac48,_0x27145c)=>_0x2ddb56(_0x18ac48,_0x27145c,_0x5a09d5);let _0x18d8c3=class{constructor(_0x12a676,_0x2f0673){const _0x5d6cda=_0x50d4f7;this[_0x5d6cda(0x21b)]=_0x12a676,this['_transformService']=_0x2f0673;}['transformSelections'](_0x153ae1){const _0x2d926b=_0x50d4f7;var _0x1f2021;const _0x558cf4=this[_0x2d926b(0x21b)]['get'](_0x1d4864[_0x2d926b(0x221)]),_0x213ce0=(_0x1f2021=_0x558cf4[_0x2d926b(0x334)]())!=null?_0x1f2021:[];if(_0x213ce0[_0x2d926b(0x34e)]===0x0)return;const _0x42c019=_0x153ae1[_0x2d926b(0x197)],_0x1d75bc=[{'id':_0x2d926b(0x338),'params':{'unitId':_0x42c019,'actions':null,'textRanges':_0x213ce0}}],_0x143ca3=this[_0x2d926b(0x289)][_0x2d926b(0x2a6)](_0x153ae1,_0x1d75bc);if(!_0x8d16e0[_0x2d926b(0x18e)](_0x143ca3))throw _0x143ca3[_0x2d926b(0x2bd)];const _0x503669=_0x143ca3['m2Prime'][0x0][_0x2d926b(0x36d)][_0x2d926b(0x30b)];Array[_0x2d926b(0x328)](_0x503669)&&_0x503669[_0x2d926b(0x34e)]&&_0x558cf4['replaceDocRanges'](_0x503669,{'unitId':_0x42c019,'subUnitId':_0x42c019},!0x1);}};_0x18d8c3=_0x17686d([_0x5aea00(0x0,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x173)])),_0x5aea00(0x1,_0x8d16e0[_0x50d4f7(0x24a)])],_0x18d8c3);var _0x260398=Object[_0x50d4f7(0x2da)],_0x3941ae=(_0x1e2c40,_0x475c34,_0x5016c4,_0xc7be09)=>{const _0x51dcdb=_0x50d4f7;for(var _0x3030c1=_0xc7be09>0x1?void 0x0:_0xc7be09?_0x260398(_0x475c34,_0x5016c4):_0x475c34,_0x32a1e3=_0x1e2c40[_0x51dcdb(0x34e)]-0x1,_0x128e52;_0x32a1e3>=0x0;_0x32a1e3--)(_0x128e52=_0x1e2c40[_0x32a1e3])&&(_0x3030c1=_0x128e52(_0x3030c1)||_0x3030c1);return _0x3030c1;},_0x4d8236=(_0xa7dd7f,_0x3587a2)=>(_0x4fd532,_0x3ceeb1)=>_0x3587a2(_0x4fd532,_0x3ceeb1,_0xa7dd7f);let _0xeb3ea3=class extends _0x2a357a['Disposable']{constructor(_0x215d5a,_0x254d79,_0x3d6b75,_0x153e6a,_0x1917e1,_0x2bd44e,_0x38a48a,_0x4fa24b){const _0x377cc5=_0x50d4f7;super(),_0x1bb9f9(this,'_status$',new _0x224c35['BehaviorSubject'](_0x505ca1[_0x377cc5(0x223)][_0x377cc5(0x262)])),(this['_docStateChangeManagerService']=_0x215d5a,this[_0x377cc5(0x3ad)]=_0x254d79,this[_0x377cc5(0x1b3)]=_0x3d6b75,this['_docTransformStateCacheService']=_0x153e6a,this[_0x377cc5(0x2be)]=_0x1917e1,this[_0x377cc5(0x314)]=_0x2bd44e,this['_messageService']=_0x38a48a,this['_localeService']=_0x4fa24b,this[_0x377cc5(0x258)]());}['_initEntityListener'](){const _0x360cfb=_0x50d4f7;this['disposeWithMe'](this[_0x360cfb(0x3ad)][_0x360cfb(0x177)][_0x360cfb(0x2cf)](_0x1876b3=>{const _0x4469cb=_0x360cfb,_0xe9308d=this[_0x4469cb(0x2e6)][_0x4469cb(0x37c)][_0x4469cb(0x2cf)](_0x7a9e39=>{const _0x2572af=_0x4469cb;if(_0x7a9e39==null)return;const {unitId:_0x16f4fd,redoState:_0x58bb3c,commandId:_0x2c918c}=_0x7a9e39;if(_0x16f4fd!==_0x1876b3[_0x2572af(0x197)])return;const _0x2c08df={'id':_0x2c918c,'type':_0x2a357a[_0x2572af(0x24d)][_0x2572af(0x2ed)],'params':{'unitId':_0x16f4fd,'actions':_0x58bb3c[_0x2572af(0x367)],'textRanges':null}};_0x1876b3[_0x2572af(0x2d8)](_0x2c08df);});if(_0x1876b3[_0x4469cb(0x24e)](_0xe9308d),_0x1876b3 instanceof _0x505ca1[_0x4469cb(0x3b4)]){const _0xa26484={'onTransformIME':_0x2e0a97=>this[_0x4469cb(0x1b3)]['transformIMECache'](_0x2e0a97),'onTransformState':_0x424f31=>this[_0x4469cb(0x238)]['transformStateCache'](_0x424f31),'onTransformSelections':_0xe66934=>this[_0x4469cb(0x2be)][_0x4469cb(0x3c7)](_0xe66934),'onSyncEditingCollabCursor':_0x6d3aff=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x6d3aff),'onTransformRemoteChangesetByIMECache':_0xfda9e2=>this[_0x4469cb(0x1b3)][_0x4469cb(0x37b)](_0xfda9e2),'onTransformRemoteChangesetByStateCache':_0x2c41f6=>this[_0x4469cb(0x238)][_0x4469cb(0x37b)](_0x2c41f6)};_0x1876b3[_0x4469cb(0x200)](_0xa26484);}}));}};_0xeb3ea3=_0x3941ae([_0x4d8236(0x0,_0x2a357a[_0x50d4f7(0x229)](_0x32c769[_0x50d4f7(0x346)])),_0x4d8236(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x505ca1[_0x50d4f7(0x3ab)])),_0x4d8236(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x3863cf)),_0x4d8236(0x3,_0x2a357a[_0x50d4f7(0x229)](_0x383c77)),_0x4d8236(0x4,_0x2a357a[_0x50d4f7(0x229)](_0x18d8c3)),_0x4d8236(0x5,_0x2a357a[_0x50d4f7(0x229)](_0x5baa2e)),_0x4d8236(0x6,_0xbe19f3[_0x50d4f7(0x24c)]),_0x4d8236(0x7,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x2bb)]))],_0xeb3ea3);var _0xebbce=Object[_0x50d4f7(0x2da)],_0x5e799a=(_0xa668cc,_0x3d94fd,_0x2530e6,_0x939221)=>{for(var _0x2ce809=_0x939221>0x1?void 0x0:_0x939221?_0xebbce(_0x3d94fd,_0x2530e6):_0x3d94fd,_0x28019c=_0xa668cc['length']-0x1,_0x27ddd5;_0x28019c>=0x0;_0x28019c--)(_0x27ddd5=_0xa668cc[_0x28019c])&&(_0x2ce809=_0x27ddd5(_0x2ce809)||_0x2ce809);return _0x2ce809;},_0x4bb0fc=(_0x109f9d,_0x136947)=>(_0x27db10,_0x4b25dc)=>_0x136947(_0x27db10,_0x4b25dc,_0x109f9d);let _0x1d1918=class extends _0x2a357a['Disposable']{constructor(_0x14090c,_0x14dde7,_0x2afd3d){const _0x46330e=_0x50d4f7;super(),_0x1bb9f9(this,'_cachedData',new Map()),_0x1bb9f9(this,'_saveTaskMap',new Map()),_0x1bb9f9(this,'_disabled',!0x1),(this[_0x46330e(0x171)]=_0x14090c,this[_0x46330e(0x29b)]=_0x14dde7,this[_0x46330e(0x3a6)]=_0x2afd3d);}[_0x50d4f7(0x284)](){const _0x102a42=_0x50d4f7;this[_0x102a42(0x195)]=!0x0;}[_0x50d4f7(0x2d7)](){const _0x32cc9c=_0x50d4f7;this[_0x32cc9c(0x195)]=!0x1;}get['saveTaskMap'](){const _0x1d76ed=_0x50d4f7;return this[_0x1d76ed(0x28f)];}[_0x50d4f7(0x225)](){const _0xde27f8=_0x50d4f7;this[_0xde27f8(0x3e3)]()[_0xde27f8(0x1be)](()=>super[_0xde27f8(0x225)]());}async[_0x50d4f7(0x193)](_0x1dbb47){const _0x58af57=_0x50d4f7;return this[_0x58af57(0x195)]?null:this[_0x58af57(0x29b)][_0x58af57(0x20c)](_0x505ca1['getLocalCacheKey'](_0x1dbb47));}async[_0x50d4f7(0x233)](_0x5eb533,_0x4a814c){const _0x2256aa=_0x50d4f7;return!!this[_0x2256aa(0x29b)][_0x2256aa(0x3f4)](_0x5eb533,_0x4a814c);}[_0x50d4f7(0x21f)](_0x2c3fa8,_0x406cc2,_0x236ded,_0x19812d){const _0x22e09a=_0x50d4f7,_0x2c6fb8=this[_0x22e09a(0x3a6)][_0x22e09a(0x349)](_0x2c3fa8);this[_0x22e09a(0x176)][_0x22e09a(0x335)](_0x2c3fa8,{'unitID':_0x2c3fa8,'type':_0x406cc2,'awaitingChangeset':_0x236ded,'mutations':_0x19812d,'rev':_0x2c6fb8}),this[_0x22e09a(0x28f)]['has'](_0x2c3fa8)||this['_scheduleSaving'](_0x2c3fa8);}[_0x50d4f7(0x203)](_0x3be70d){const _0x2fa4f5=_0x50d4f7,_0x4f7ca9=this[_0x2fa4f5(0x37a)]();_0x4f7ca9===0x0?this[_0x2fa4f5(0x2e3)](_0x3be70d):this[_0x2fa4f5(0x28f)][_0x2fa4f5(0x335)](_0x3be70d,setTimeout(()=>this[_0x2fa4f5(0x2e3)](_0x3be70d),_0x4f7ca9));}[_0x50d4f7(0x37a)](){const _0x19f063=_0x50d4f7;var _0x50b777;return(_0x50b777=this[_0x19f063(0x171)][_0x19f063(0x194)](_0x505ca1['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x50b777:_0x505ca1[_0x19f063(0x3aa)];}[_0x50d4f7(0x2e3)](_0x4b14da){const _0x19ec07=_0x50d4f7,_0x45bf41=this['_saveTaskMap'][_0x19ec07(0x22d)](_0x4b14da);return _0x45bf41!==void 0x0&&window[_0x19ec07(0x2ad)](_0x45bf41),this[_0x19ec07(0x29b)][_0x19ec07(0x3f4)](_0x505ca1['getLocalCacheKey'](_0x4b14da),this['_cachedData'][_0x19ec07(0x22d)](_0x4b14da))[_0x19ec07(0x1be)](()=>this[_0x19ec07(0x28f)]['delete'](_0x4b14da));}async[_0x50d4f7(0x3e3)](){const _0x25ea2d=_0x50d4f7,_0x46ea5e=[];this['_saveTaskMap']['forEach']((_0x510e98,_0x4c4ddc)=>{const _0x48ee3c=_0x45fd;window['clearTimeout'](_0x510e98),_0x46ea5e['push'](this['_saveCache'](_0x4c4ddc)[_0x48ee3c(0x1be)](()=>{const _0xcfc3f3=_0x48ee3c;this[_0xcfc3f3(0x28f)][_0xcfc3f3(0x280)](_0x4c4ddc);}));}),await Promise[_0x25ea2d(0x33f)](_0x46ea5e);}};_0x1d1918=_0x5e799a([_0x4bb0fc(0x0,_0x2a357a[_0x50d4f7(0x25d)]),_0x4bb0fc(0x1,_0x2a357a['ILocalStorageService']),_0x4bb0fc(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x8d16e0[_0x50d4f7(0x320)]))],_0x1d1918);class _0xaa8871 extends _0x2a357a[_0x50d4f7(0x33e)]{constructor(){const _0x2291fc=_0x50d4f7;super(),_0x1bb9f9(this,_0x2291fc(0x28c)),this['urlChange$']=_0x224c35[_0x2291fc(0x259)](window,_0x2291fc(0x36e))[_0x2291fc(0x3bf)](_0x224c35[_0x2291fc(0x184)](this[_0x2291fc(0x2f3)]),_0x224c35[_0x2291fc(0x17f)](0x1),_0x224c35['mapTo'](void 0x0));}[_0x50d4f7(0x296)](_0x10661f,_0x2c1613,_0xcea816=!0x1){const _0x14ce52=_0x50d4f7,_0x317b6f=new URL(window[_0x14ce52(0x182)]['href']);_0x317b6f[_0x14ce52(0x342)][_0x14ce52(0x335)](_0x10661f,_0x2c1613),_0xcea816?window[_0x14ce52(0x3f7)][_0x14ce52(0x25b)]('','',_0x317b6f[_0x14ce52(0x3af)]()):window[_0x14ce52(0x3f7)][_0x14ce52(0x383)]('','',_0x317b6f[_0x14ce52(0x3af)]());}[_0x50d4f7(0x2f7)](_0x2a6b1c,_0xe3f33e=!0x1){const _0x28c973=_0x50d4f7,_0x3eeb18=new URL(window[_0x28c973(0x182)][_0x28c973(0x298)]);_0x3eeb18[_0x28c973(0x342)][_0x28c973(0x280)](_0x2a6b1c),_0xe3f33e?window['history']['replaceState']('','',_0x3eeb18[_0x28c973(0x3af)]()):window[_0x28c973(0x3f7)][_0x28c973(0x383)]('','',_0x3eeb18[_0x28c973(0x3af)]());}[_0x50d4f7(0x17a)](_0x43b5ca){const _0x596b8e=_0x50d4f7;var _0x32f799;return(_0x32f799=new URL(window[_0x596b8e(0x182)]['href'])[_0x596b8e(0x342)][_0x596b8e(0x22d)](_0x43b5ca))!=null?_0x32f799:void 0x0;}}var _0x320f0f=Object[_0x50d4f7(0x3de)],_0x300be7=Object[_0x50d4f7(0x2da)],_0x37209b=(_0x417015,_0x49105e,_0x4c75a8)=>_0x49105e in _0x417015?_0x320f0f(_0x417015,_0x49105e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c75a8}):_0x417015[_0x49105e]=_0x4c75a8,_0x32b9df=(_0x588f1c,_0x3710da,_0x1a2ef5,_0x2c481b)=>{for(var _0xef9281=_0x2c481b>0x1?void 0x0:_0x2c481b?_0x300be7(_0x3710da,_0x1a2ef5):_0x3710da,_0x10cb23=_0x588f1c['length']-0x1,_0x5e3c62;_0x10cb23>=0x0;_0x10cb23--)(_0x5e3c62=_0x588f1c[_0x10cb23])&&(_0xef9281=_0x5e3c62(_0xef9281)||_0xef9281);return _0xef9281;},_0x265473=(_0x4c3f43,_0x1cbcb1)=>(_0x451291,_0x45dc5f)=>_0x1cbcb1(_0x451291,_0x45dc5f,_0x4c3f43),_0x63dcca=(_0x231c80,_0x16c644,_0x41d327)=>_0x37209b(_0x231c80,_0x16c644+'',_0x41d327);const _0x134f5a='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x420e4b['UniverCollaborationClientUIPlugin']=class extends _0x2a357a['Plugin']{constructor(_0x22bc62=_0x21692d,_0x35839d,_0x1b309a,_0x18f767){const _0x4f0b6f=_0x50d4f7;super(),this[_0x4f0b6f(0x2ac)]=_0x22bc62,this[_0x4f0b6f(0x3b6)]=_0x35839d,this[_0x4f0b6f(0x21b)]=_0x1b309a,this[_0x4f0b6f(0x171)]=_0x18f767;const {..._0x17eb3c}=_0x2a357a[_0x4f0b6f(0x2b4)]({},_0x21692d,this[_0x4f0b6f(0x2ac)]);this[_0x4f0b6f(0x171)]['setConfig'](_0x5e90cf,_0x17eb3c);}[_0x50d4f7(0x39d)](){const _0x339cde=_0x50d4f7;this['_registerDependencies'](),this[_0x339cde(0x1dd)]();}[_0x50d4f7(0x39b)](){this['_registerRenderDependencies']();}[_0x50d4f7(0x356)](){const _0x3c311b=_0x50d4f7;var _0x213440;const _0x345b38=[[_0x5d8afc],[_0x18d8c3],[_0x3863cf],[_0x383c77],[_0x5baa2e],[_0x3c28aa,{'useClass':_0xaa8871}],[_0x4e7e7b[_0x3c311b(0x3d2)],{'useClass':_0x4e7e7b[_0x3c311b(0x304)]}],[_0x505ca1[_0x3c311b(0x2ff)],{'useClass':_0x1d1918}],[_0x420e4b[_0x3c311b(0x27f)]],[_0xeb3ea3],[_0x2c6da3],[_0x1c920a],[_0x1e2940],[_0x420e4b[_0x3c311b(0x270)]]];_0x2a357a[_0x3c311b(0x38b)](this[_0x3c311b(0x21b)],_0x2a357a[_0x3c311b(0x309)](_0x345b38,(_0x213440=this['_config'])==null?void 0x0:_0x213440[_0x3c311b(0x30a)]));}[_0x50d4f7(0x1ae)](){const _0xec8069=_0x50d4f7;this[_0xec8069(0x24e)](this['_renderManagerService']['registerRenderModule'](_0x2a357a[_0xec8069(0x19b)][_0xec8069(0x3d5)],[_0x4988de])),this[_0xec8069(0x24e)](this[_0xec8069(0x3b6)][_0xec8069(0x21a)](_0x2a357a[_0xec8069(0x19b)][_0xec8069(0x37f)],[_0x4cb1cf]));}['_initDependencies'](){const _0x4b330f=_0x50d4f7;_0x2a357a[_0x4b330f(0x3b7)](this[_0x4b330f(0x21b)],[[_0x1c920a],[_0x420e4b[_0x4b330f(0x27f)]],[_0xeb3ea3],[_0x2c6da3],[_0x420e4b[_0x4b330f(0x270)]]]);}},_0x63dcca(_0x420e4b['UniverCollaborationClientUIPlugin'],'pluginName',_0x134f5a),_0x420e4b[_0x50d4f7(0x222)]=_0x32b9df([_0x2a357a[_0x50d4f7(0x2a2)](_0x505ca1[_0x50d4f7(0x1f0)]),_0x265473(0x1,_0x4dd679[_0x50d4f7(0x1e1)]),_0x265473(0x2,_0x2a357a[_0x50d4f7(0x229)](_0x2a357a[_0x50d4f7(0x173)])),_0x265473(0x3,_0x2a357a['IConfigService'])],_0x420e4b['UniverCollaborationClientUIPlugin']);var _0x24993c=Object['getOwnPropertyDescriptor'],_0x91be4b=(_0x367dc1,_0x2c146f,_0x12a757,_0x14c4f3)=>{for(var _0x287fe5=_0x14c4f3>0x1?void 0x0:_0x14c4f3?_0x24993c(_0x2c146f,_0x12a757):_0x2c146f,_0xa652f=_0x367dc1['length']-0x1,_0x4f2855;_0xa652f>=0x0;_0xa652f--)(_0x4f2855=_0x367dc1[_0xa652f])&&(_0x287fe5=_0x4f2855(_0x287fe5)||_0x287fe5);return _0x287fe5;},_0x3c4835=(_0x3e5a5d,_0x19c1ba)=>(_0x1a9569,_0xa19774)=>_0x19c1ba(_0x1a9569,_0xa19774,_0x3e5a5d);_0x420e4b['BrowserCollaborationSocketService']=class extends _0x505ca1['CollaborationSocketService']{constructor(_0x8d711a,_0x4f82b6,_0x27d54e,_0x4029be,_0x5cb4f2){super(_0x8d711a,_0x4f82b6,_0x27d54e,_0x4029be,_0x5cb4f2);}async[_0x50d4f7(0x2af)](_0x12562d){const _0x1faf9b=_0x50d4f7,_0x58b129=await this[_0x1faf9b(0x211)](),_0x277788=this[_0x1faf9b(0x2d5)](_0x12562d,_0x58b129);return this['_doCreateSocket'](_0x277788);}[_0x50d4f7(0x2d5)](_0x1a1ec8,_0x3df2ba){const _0x337184=_0x50d4f7,_0x524e4d=typeof window>'u'?new URL(_0x1a1ec8):new URL(_0x1a1ec8,window[_0x337184(0x182)][_0x337184(0x303)]);_0x524e4d['searchParams'][_0x337184(0x335)]('sessionTicket',_0x3df2ba);const _0x4b2d2b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x337184(0x182)][_0x337184(0x278)]);return _0x4b2d2b[_0x337184(0x22d)](_0x337184(0x399))&&_0x524e4d[_0x337184(0x342)][_0x337184(0x335)](_0x337184(0x399),_0x4b2d2b[_0x337184(0x22d)]('runId')),_0x524e4d[_0x337184(0x3af)]();}async[_0x50d4f7(0x211)](){const _0x639199=_0x50d4f7;var _0x3a35dd,_0x3f8de0,_0x5391a8;const _0xa57faf=this[_0x639199(0x171)]['getConfig'](_0x505ca1[_0x639199(0x395)]),_0x1c6225=(_0x3a35dd=_0xa57faf==null?void 0x0:_0xa57faf[_0x639199(0x3cc)])!=null?_0x3a35dd:_0x505ca1[_0x639199(0x38e)];return(_0x5391a8=(_0x3f8de0=(await this[_0x639199(0x3fb)][_0x639199(0x22d)](_0x1c6225,{'headers':{'Content-Type':'application/json'}}))[_0x639199(0x252)])==null?void 0x0:_0x3f8de0[_0x639199(0x1c8)])!=null?_0x5391a8:'';}},_0x420e4b[_0x50d4f7(0x21e)]=_0x91be4b([_0x3c4835(0x0,_0x2a357a['Inject'](_0x2a357a[_0x50d4f7(0x173)])),_0x3c4835(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x4e7e7b['HTTPService'])),_0x3c4835(0x2,_0x2a357a[_0x50d4f7(0x25d)]),_0x3c4835(0x3,_0x2a357a[_0x50d4f7(0x1b2)]),_0x3c4835(0x4,_0x8d16e0[_0x50d4f7(0x3b5)])],_0x420e4b[_0x50d4f7(0x21e)]);const _0x3a11a5=0x7530,_0x521326=_0x50d4f7(0x286);class _0x228af0 extends _0x2a357a['Disposable']{constructor(){const _0x489523=_0x50d4f7;super(),_0x1bb9f9(this,'_id',_0x2a357a[_0x489523(0x1c5)]()),_0x1bb9f9(this,_0x489523(0x20f),new Set()),_0x1bb9f9(this,_0x489523(0x374),new Map()),_0x1bb9f9(this,_0x489523(0x1ce),null),_0x1bb9f9(this,_0x489523(0x350),new Map()),_0x1bb9f9(this,_0x489523(0x1f9),new Map()),this[_0x489523(0x3d8)]();}['dispose'](){const _0x17de20=_0x50d4f7;super[_0x17de20(0x225)](),this[_0x17de20(0x350)][_0x17de20(0x2fa)]((_0x4166dd,_0x4fa94a)=>this[_0x17de20(0x2cc)](_0x4fa94a)),this[_0x17de20(0x1ce)]&&window[_0x17de20(0x261)](this[_0x17de20(0x1ce)]);}[_0x50d4f7(0x32a)](_0x5f47a2){const _0x421eed=_0x50d4f7;return this[_0x421eed(0x37e)](_0x5f47a2)[_0x421eed(0x3bf)](_0x224c35[_0x421eed(0x2f0)]());}['editingUnit'](_0x4acb56){const _0x5dafe5=_0x50d4f7;this[_0x5dafe5(0x20f)][_0x5dafe5(0x318)]===0x0&&this[_0x5dafe5(0x19d)](),this[_0x5dafe5(0x20f)][_0x5dafe5(0x2ba)](_0x4acb56),this[_0x5dafe5(0x2ec)]({'type':0x0,'memberID':this[_0x5dafe5(0x1b8)],'unitIDs':[_0x4acb56],'isForwarded':!0x1});}[_0x50d4f7(0x39f)](_0x30484e){const _0x466f30=_0x50d4f7;this[_0x466f30(0x20f)]['delete'](_0x30484e),this[_0x466f30(0x20f)][_0x466f30(0x318)]===0x0&&this[_0x466f30(0x1ce)]&&window[_0x466f30(0x261)](this['_heartbeatTimer']);}[_0x50d4f7(0x3d8)](){const _0x142d37=_0x50d4f7;this[_0x142d37(0x24e)](_0x2a357a['toDisposable'](_0x224c35['fromEvent'](window,'storage')[_0x142d37(0x2cf)](_0xa7cdab=>{const _0x120c4b=_0x142d37;if(_0xa7cdab[_0x120c4b(0x34f)]!==_0x521326||!_0xa7cdab['newValue'])return;const _0xc03a0f=JSON['parse'](_0xa7cdab[_0x120c4b(0x199)]);this[_0x120c4b(0x3cd)](_0xc03a0f);}))),window[_0x142d37(0x189)]('unload',()=>this[_0x142d37(0x2ec)]({'type':0x1,'memberID':this[_0x142d37(0x1b8)],'unitIDs':Array['from'](this[_0x142d37(0x20f)])}));}[_0x50d4f7(0x3cd)](_0x46c531){const _0x4ec9ed=_0x50d4f7;switch(_0x46c531[_0x4ec9ed(0x1d8)]){case 0x0:this[_0x4ec9ed(0x256)](_0x46c531);break;case 0x1:this['_handleLeaveEvent'](_0x46c531);break;case 0x2:this[_0x4ec9ed(0x30c)](_0x46c531);break;}}['_handleJoinEvent'](_0x155087){const _0x19a86b=_0x50d4f7,{unitIDs:_0x3e2c3a,memberID:_0x408fe7,isForwarded:_0x4f3af1}=_0x155087;_0x3e2c3a[_0x19a86b(0x2fa)](_0x493777=>{const _0x4711ea=_0x19a86b;if(!_0x4f3af1&&this[_0x4711ea(0x374)]['has'](_0x493777)&&this[_0x4711ea(0x37e)](_0x493777)[_0x4711ea(0x37d)](_0x505ca1['UnitStatus'][_0x4711ea(0x186)]),!this['_unitOnClients'][_0x4711ea(0x1fc)](_0x493777)||!this[_0x4711ea(0x374)][_0x4711ea(0x22d)](_0x493777)[_0x4711ea(0x1fc)](_0x408fe7)){const _0x378874=this['_unitOnClients'][_0x4711ea(0x22d)](_0x493777)||new Set();_0x378874[_0x4711ea(0x2ba)](_0x408fe7),this['_unitOnClients'][_0x4711ea(0x335)](_0x493777,_0x378874),this['_scheduleClearOtherTimer'](_0x408fe7);}}),_0x4f3af1||this[_0x19a86b(0x2ec)]({'type':0x0,'memberID':this[_0x19a86b(0x1b8)],'unitIDs':[...this[_0x19a86b(0x20f)]],'isForwarded':!0x0});}[_0x50d4f7(0x22f)](_0x3cae66){const _0x5958cb=_0x50d4f7;this['_removeClearOtherTimer'](_0x3cae66);const _0x463471=window[_0x5958cb(0x1f6)](()=>{const _0x2cc3f9=_0x5958cb;this[_0x2cc3f9(0x374)]['forEach'](_0xffea16=>{const _0x201b86=_0x2cc3f9;_0xffea16[_0x201b86(0x280)](_0x3cae66);});},_0x3a11a5*0x2);this[_0x5958cb(0x350)][_0x5958cb(0x335)](_0x3cae66,_0x463471);}[_0x50d4f7(0x2cc)](_0x5cc4bc){const _0x43b923=_0x50d4f7;if(this[_0x43b923(0x350)][_0x43b923(0x1fc)](_0x5cc4bc)){const _0x328d12=this[_0x43b923(0x350)][_0x43b923(0x22d)](_0x5cc4bc);_0x328d12&&window[_0x43b923(0x2ad)](_0x328d12),this[_0x43b923(0x350)][_0x43b923(0x335)](_0x5cc4bc,null);}}['_handleLeaveEvent'](_0x39f0d5){const _0x89cf56=_0x50d4f7,{memberID:_0x4e15d4,unitIDs:_0x3fe325}=_0x39f0d5;_0x3fe325['forEach'](_0x1a3d8d=>{const _0x52a2c5=_0x45fd;var _0x5ee251;const _0x2e4d85=this['_unitOnClients'][_0x52a2c5(0x22d)](_0x1a3d8d);_0x2e4d85&&(_0x2e4d85['delete'](_0x4e15d4),(_0x5ee251=this[_0x52a2c5(0x37e)](_0x1a3d8d))==null||_0x5ee251[_0x52a2c5(0x37d)](_0x2e4d85[_0x52a2c5(0x318)]===0x0?_0x505ca1[_0x52a2c5(0x24b)][_0x52a2c5(0x2a1)]:_0x505ca1[_0x52a2c5(0x24b)][_0x52a2c5(0x186)]));}),this[_0x89cf56(0x2cc)](_0x4e15d4);}[_0x50d4f7(0x30c)](_0x31ae8b){const _0x4c23d5=_0x50d4f7;this[_0x4c23d5(0x22f)](_0x31ae8b[_0x4c23d5(0x3f5)]);}[_0x50d4f7(0x2ec)](_0x1536b3){const _0x2f44a6=_0x50d4f7;localStorage['setItem'](_0x521326,JSON[_0x2f44a6(0x2a3)](_0x1536b3));}[_0x50d4f7(0x19d)](){const _0x5d7ce4=_0x50d4f7;this[_0x5d7ce4(0x1ce)]=window[_0x5d7ce4(0x3d1)](()=>{const _0x5287c1=_0x5d7ce4;this[_0x5287c1(0x2ec)]({'type':0x2,'memberID':this[_0x5287c1(0x1b8)]});},_0x3a11a5);}[_0x50d4f7(0x37e)](_0xbad01f){const _0x597ece=_0x50d4f7;return this[_0x597ece(0x1f9)][_0x597ece(0x1fc)](_0xbad01f)||this[_0x597ece(0x1f9)][_0x597ece(0x335)](_0xbad01f,new _0x224c35[(_0x597ece(0x27e))](_0x505ca1[_0x597ece(0x24b)][_0x597ece(0x2a1)])),this[_0x597ece(0x1f9)][_0x597ece(0x22d)](_0xbad01f);}}var _0x36a70c=(_0x274806=>(_0x274806[_0x274806[_0x50d4f7(0x192)]=0x0]=_0x50d4f7(0x192),_0x274806[_0x274806['OK']=0x1]='OK',_0x274806[_0x274806[_0x50d4f7(0x347)]=0x2]=_0x50d4f7(0x347),_0x274806[_0x274806[_0x50d4f7(0x244)]=0x3]='PERMISSION_DENIED',_0x274806[_0x274806['NOT_FOUND']=0x4]='NOT_FOUND',_0x274806[_0x274806[_0x50d4f7(0x2dd)]=0x5]='UNAUTHENTICATED',_0x274806[_0x274806[_0x50d4f7(0x353)]=0x6]='ALREADY_EXISTS',_0x274806[_0x274806[_0x50d4f7(0x3f9)]=0x7]='INVALID_ARGUMENT',_0x274806[_0x274806[_0x50d4f7(0x2b0)]=0x8]='TOO_MANY_REQUESTS',_0x274806[_0x274806[_0x50d4f7(0x332)]=0x9]=_0x50d4f7(0x332),_0x274806[_0x274806[_0x50d4f7(0x266)]=0xa]=_0x50d4f7(0x266),_0x274806[_0x274806[_0x50d4f7(0x394)]=0x1389]=_0x50d4f7(0x394),_0x274806[_0x274806[_0x50d4f7(0x2fe)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x274806[_0x274806[_0x50d4f7(0x228)]=0x1772]=_0x50d4f7(0x228),_0x274806[_0x274806[_0x50d4f7(0x38f)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x274806[_0x274806[_0x50d4f7(0x1d4)]=0x1b59]=_0x50d4f7(0x1d4),_0x274806[_0x274806[_0x50d4f7(0x340)]=0x1b5a]=_0x50d4f7(0x340),_0x274806[_0x274806[_0x50d4f7(0x19e)]=0x1b5b]=_0x50d4f7(0x19e),_0x274806[_0x274806['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x50d4f7(0x213),_0x274806[_0x274806[_0x50d4f7(0x33d)]=0x1b5d]=_0x50d4f7(0x33d),_0x274806[_0x274806[_0x50d4f7(0x201)]=0x1f41]=_0x50d4f7(0x201),_0x274806[_0x274806[_0x50d4f7(0x27c)]=0x2329]=_0x50d4f7(0x27c),_0x274806[_0x274806['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x50d4f7(0x3ef),_0x274806[_0x274806[_0x50d4f7(0x254)]=0x232b]=_0x50d4f7(0x254),_0x274806[_0x274806[_0x50d4f7(0x1e6)]=0x232c]=_0x50d4f7(0x1e6),_0x274806[_0x274806[_0x50d4f7(0x3d3)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x274806[_0x274806[_0x50d4f7(0x3c8)]=0x2711]=_0x50d4f7(0x3c8),_0x274806[_0x274806['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x274806[_0x274806[_0x50d4f7(0x3dc)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x274806[_0x274806['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x274806[_0x274806[_0x50d4f7(0x251)]=0x271a]=_0x50d4f7(0x251),_0x274806[_0x274806['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x50d4f7(0x20d),_0x274806[_0x274806['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x274806[_0x274806['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x274806[_0x274806[_0x50d4f7(0x1eb)]=0x271e]=_0x50d4f7(0x1eb),_0x274806[_0x274806[_0x50d4f7(0x2a0)]=0x271f]=_0x50d4f7(0x2a0),_0x274806[_0x274806[_0x50d4f7(0x2f5)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x274806[_0x274806[_0x50d4f7(0x2f1)]=0x2ee1]=_0x50d4f7(0x2f1),_0x274806[_0x274806[_0x50d4f7(0x3a8)]=0x2ee2]='INVALID_INVITE_CODE',_0x274806[_0x274806[_0x50d4f7(0x3bb)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x274806[_0x274806[_0x50d4f7(0x1ba)]=0x2ee4]=_0x50d4f7(0x1ba),_0x274806[_0x274806['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x50d4f7(0x2b3),_0x274806[_0x274806[_0x50d4f7(0x267)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x274806[_0x274806['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x50d4f7(0x3e5),_0x274806[_0x274806[_0x50d4f7(0x1cd)]=0x32cb]=_0x50d4f7(0x1cd),_0x274806[_0x274806[_0x50d4f7(0x2e2)]=-0x1]='UNRECOGNIZED',_0x274806))(_0x36a70c||{}),_0x491697=Object[_0x50d4f7(0x2da)],_0x3de91d=(_0x188551,_0xa1b190,_0xc88e13,_0x49c773)=>{const _0x376130=_0x50d4f7;for(var _0x578b18=_0x49c773>0x1?void 0x0:_0x49c773?_0x491697(_0xa1b190,_0xc88e13):_0xa1b190,_0x5af045=_0x188551[_0x376130(0x34e)]-0x1,_0xfaab41;_0x5af045>=0x0;_0x5af045--)(_0xfaab41=_0x188551[_0x5af045])&&(_0x578b18=_0xfaab41(_0x578b18)||_0x578b18);return _0x578b18;},_0x4264c2=(_0x80165f,_0x3cef3)=>(_0x1c6825,_0x13c717)=>_0x3cef3(_0x1c6825,_0x13c717,_0x80165f);_0x420e4b[_0x50d4f7(0x38a)]=class extends _0x2a357a[_0x50d4f7(0x3c9)]{constructor(_0xcb7de6,_0x15e7fa,_0xaa6616){const _0x11620c=_0x50d4f7;super(),this[_0x11620c(0x3ee)]=_0xcb7de6,this[_0x11620c(0x3fb)]=_0x15e7fa,this['_configService']=_0xaa6616;}async[_0x50d4f7(0x2c3)](_0x68b6fd,_0xf5ca8,_0x660e74,..._0x223ce8){const _0x3d63ee=_0x50d4f7;var _0x33602d,_0x252c7f,_0x4d908c,_0x502768;const _0x4674ae=this[_0x3d63ee(0x3ee)][_0x3d63ee(0x23e)]();if(!_0x4674ae)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x354e06=((_0x33602d=this[_0x3d63ee(0x171)]['getConfig'](_0x505ca1['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x33602d:_0x505ca1[_0x3d63ee(0x3c6)])+'/'+_0x68b6fd+_0x3d63ee(0x243)+_0xf5ca8,_0x21225d=new URL(window[_0x3d63ee(0x182)]['href']),_0x41fdfa={'scriptId':_0x68b6fd,'runId':(_0x252c7f=_0x21225d['searchParams'][_0x3d63ee(0x22d)](_0x3d63ee(0x399)))!=null?_0x252c7f:'','function':_0xf5ca8,'unitId':_0x4674ae[_0x3d63ee(0x3b1)](),'argsOfFunction':JSON[_0x3d63ee(0x2a3)](_0x223ce8),'invokeId':(_0x4d908c=_0x660e74[_0x3d63ee(0x21c)])!=null?_0x4d908c:'','executionId':(_0x502768=_0x660e74[_0x3d63ee(0x2e9)])!=null?_0x502768:''};try{const _0x227b9e=await this[_0x3d63ee(0x3fb)]['post'](_0x354e06,{'body':_0x41fdfa});return _0x227b9e[_0x3d63ee(0x252)]['error']&&_0x227b9e[_0x3d63ee(0x252)][_0x3d63ee(0x2bd)]['code']!==_0x36a70c['OK']?_0x3d63ee(0x269):_0x227b9e[_0x3d63ee(0x252)]['result'];}catch{return'Failed';}}},_0x420e4b['RemoteUniscriptService']=_0x3de91d([_0x4264c2(0x0,_0x2a357a[_0x50d4f7(0x382)]),_0x4264c2(0x1,_0x2a357a[_0x50d4f7(0x229)](_0x4e7e7b[_0x50d4f7(0x236)])),_0x4264c2(0x2,_0x2a357a['IConfigService'])],_0x420e4b[_0x50d4f7(0x38a)]),_0x420e4b['CollaborationStatusDisplay']=_0x32d2f0,_0x420e4b['IURLService']=_0x3c28aa,_0x420e4b[_0x50d4f7(0x227)]=_0x59aba4,_0x420e4b[_0x50d4f7(0x3ba)]=_0x228af0,_0x420e4b[_0x50d4f7(0x35c)]=_0xaa8871,Object[_0x50d4f7(0x3de)](_0x420e4b,Symbol[_0x50d4f7(0x1f5)],{'value':'Module'});}));
|
|
1
|
+
function _0x222d(_0xcd4c06,_0x5efa0b){const _0x32d0fd=_0x32d0();return _0x222d=function(_0x222d7b,_0x25a689){_0x222d7b=_0x222d7b-0x114;let _0x49c271=_0x32d0fd[_0x222d7b];return _0x49c271;},_0x222d(_0xcd4c06,_0x5efa0b);}function _0x32d0(){const _0x51a3e4=['attrs','sheetID','getLocalCacheKey','0\x200\x2016\x2016','18VeUjvk','resize','_uiPartsService','debounceTime','APPLY_NON_SEQUENTIAL_REVISION','min','INVITE_CODE_REQUIRED','getDocRanges','includes','_scheduleHeartbeat','connectInjector','UniverEngineRender','range','disposeWithMe','Shape','useDependency','_color','_anchor','registerRefRange','setActiveRange','_lastPointer','HTTPService','MUTATION','apply','runOnServer','getUnhiddenWorksheets','transformStateCache','startsWith','ALREADY_EXISTS','operators','_send','JOIN_ROOM_FAILED','UniverCollaborationClientPlugin','black','DocIMEInputManagerService','registerRenderModule','restore','_eventUnsubscribe','getMergeData','transformMutation','_startSheetCollabCursor','getCollabCursors$','createInstance','2224602hFiDuz','jsx','_updateSubUnitFromURLParams','handleInsertCol','evenodd','map','CollaborationEvent','row','getUnitId','IMessageService','_handleJoinEvent','next','useObservable','OTHER_CLIENTS_EDITING','asObservable','getRelativeToViewportCoord','jiqing.500','saveOfflineData','session.connection-failed','init','INVITE_CODE_HAS_BEEN_UES','handleIRemoveCol','setUndoRedoMutationParamsCache','_saveCache','getUniverSheetInstance','UniverSheetsUi','saveTaskMap','_anchorDot','180138XnGURl','getFocusedUnit','xlink:href','_saveTaskMap','ColorKit','_collabCursorState$','measureText','backgroundColor','_status$','addObjects','getCellPositionByOffset','Inject','extend','BrowserCollaborationSocketService','RxDisposable','_getMergeRange','trim','_cursorShapes','_injector','BehaviorSubject','imageSourceType','SetWorksheetActivateCommand','values','getSheetObject','onPointerMove$','SetDocZoomRatioOperation','contains','MemberService','_id','_unitOnClients','whenReady','handleDeleteRangeMoveLeft','skeleton','_docTransformStateCacheService','setParam','location','_docClipboardService','clearInterval','NOT_COLLAB','getColorFromTheme','jsxs','Module','unsubscribe','stringify','debug','TEXT','clipPath','fromEvent','substring','@univerjs/sheets','APPLY_REJECT','_name','_selfUnitIDs','LICENSE_IMPORT_SIZE_EXCEEDED','_setupBeforeClosingHandler','createSocket','InsertRangeMoveRightCommandId','_render','[CollaborationDataLoaderController]','Failed','SNAPSHOT_INVALID_SNAPSHOT','combineLatest','merge','ITransformService','9BKtRmr','_updateURLWithCurrentState','handleInsertRow','font','IRemoteInstanceService','CONNECTOR_DATA_TOO_LARGE','shareReplay','isActive','YUUMI_URL_COL_OUT_OF_RANGE','makeDirty','Subject','send','react','getSheetId','_labelPosition','3008410SkGtsu','_initResize','InsertRowCommandId','_getScale','registerBeforeClose','hovered','complete','collabStatus.fetchMiss','mapTo','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','getViewport','RefRangeService','getParam','SOCKET_FAILED_RETRY','color','LOGIN_FAILED','replaceState','searchParams','UniverDocs','isTransformMutationsWithChangesetSuccess','use','sessionTicket','collabStatus.notCollab','ACTIVE_UNIT_EVENT_CHANNEL','0\x200\x2017\x2016','_session','_unitStatus','requireSession','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_ensureSubject','InsertRangeMoveDownCommandId','_online','roomMembers','UniverDocsUi','RECT','_updateLocalCursor','@univerjs/design','YUUMI_ALL_TABLES_IS_INVALID','handleMoveRange','IDocClipboardService','getOffsetConfig','collab-text-anchor-','get','entries','_shapes','UPDATE_CURSOR','doc.mutation.rich-text-editing','LICENSE_DISTRO_REJECTED','tag','pushState','_transformHistoryAndStateStack','displayName','_notificationService','name','SYNCED','IURLService','HEADER_MENU','collaboration.closeRoom','then','FromArray','_createSocketURL','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','@univerjs/sheets-ui','collabStatus.conflict','INVALID_INVITE_CODE','_context','UniverUi','4791809RBjXZA','object','from','36031hRzOMz','_toggleOffline','transformSelections','green.600','react/jsx-runtime','_textBubble','takeUntil','_sheetSkeletonManagerService','getUndoRedoMutationParamsCache','@univerjs/engine-formula','addObject','getTypeOfUnitAdded$','_heartbeatTimer','syncEditingCollabCursor','232GNiJBr','LOCAL_CACHE_INTERVAL','eventID','BuiltInUIPart','CollaborationController','UNIVER_DOC','_httpService','removeParam','MOBILE_HAS_BEEN_BOUND','memberID','debounce','FETCH_MISS','runRefRangeMutations','currentColor','assign','_removeClearOtherTimer','getOwnPropertyDescriptor','UNRECOGNIZED','throttleTime','children','OffLineSingle','YUUMI_RATE_OVER_LIMIT','_handleHeartbeatEvent','_docTransformSelectionsService','CollaborationUIEventId','generateRandomId','delete','getAncestorScale','permission.content','WebURLService','IUniverInstanceService','ILocalCacheService','defIds','session.collaboration-timeout','_transformPreviousActiveRange','_localStorageService','executeCommand','_cursors','getActiveRange','subUnitId','YUUMI_SUBSCRIPTION_NOT_FOUND','exports','rgba(255,\x20255,\x20255,\x200.01)','hasOwnProperty','top','CLOSE_ROOM','beginPath','INVALID_ARGUMENT','textRanges','@univerjs/rpc','actions','_initCommandExecutedListener','getRenderById','YUUMI_ASYNCIO_CANCELLED','YUUMI_NO_CUBOID_FOR_QUESTION','_initDependencies','invokeId','592970OoRclH','_colorIndex','activeSheet$','red.300','UniverProCollaborationClientUi','_clearOtherTimers','concat','_renderManagerService','getStateCache','getItem','collab-rect-range-','rxjs/operators','CollaborationStatusDisplay','Unknown\x20user','#FFF','_collabCursorController','getOwnPropertySymbols','max','_onCursorUpdate','event$','UNIVER_SHEET','Disposable','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','endColumn','SheetsSelectionsService','forEach','DocSkeletonManagerService','ONLINE','RichTextEditingMutation','_getSheetObject','_dataLoaderService','find','IConfigService','pipe','CHANGESET_REVISION_CONFILICT','MoveRangeCommandId','Plugin','filter','SetSelectionsOperation','_scheduleClearOtherTimer','SHEET_VIEWPORT_KEY','sheetId','triggerDblclick','_commandService','popstate','result','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','all','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UniverDesign','has','height','642364CBytUf','updateOfflineData','setConfig','Injector','getCoordByCell','_handleEvent','flatMap','_cachedData','size','DocStateChangeManagerService','_scene','UniverEngineFormula','_initEntityListener','CollaborationSocketService','_cursor','_hover','isEditing','_collabSessionService','onRendered','cursorInfo','_transformUndoRedoStack','_entities','_transformService','url(#on-line-single_clip0_910_349)','getMember','SetTextSelectionsOperation','LICENSE_MAX_UNITS_EXCEEDED','getVpScrollXYInfoByPosToVp','off-line-single_clip0_910_343','_drawTextRange','loadOfflineData','selection','INotificationService','getCurrent','M0\x200H16V16H0z','getColor','NodePositionConvertToRectRange','newValue','UniverInstanceType','_localeService','indexOf','runId','ThemeService','_colorAssignService','IUIPartsService','bottom','url(#$1','serializeRangeWithSheet','defs','ticket','unitID','@univerjs/drawing','div','selections','rxjs','save','_messageService','push','TEXT_RANGE_LAYER_INDEX','@univerjs/docs-ui','SOCKET_FAILED','useRef','_cursorInfo$','origin','APPLY_DUPLICATED','subscribe','forwardRef','Rectangle','_collaborationUIEventService','call','handleInsertRangeMoveDown','IRenderManagerService','_config','clearTimeout','source','_disabled','UniverNetwork','@univerjs/engine-render','ranges','EMAIL_HAS_BEEN_BOUND','USERS_LEAVE','#fff','path','UniverProCollaborationClient','wsSessionTicketUrl','width','code','set','DesktopCollaborationStatusDisplayController','_getSessionTicket','_registerRenderDependencies','Workbook','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','isTransformMutationFailure','transformMutationsWithChangeset','WebBrowserSingleActiveUnitService','setTimeout','symbol','setShapeProps','onMouseMove','none','switchMap','RevisionService','_docStateChangeManagerService','CollaborationStatus','findNodePositionByCharIndex','registerDependencies','getSheetBySheetId','EffectRefRangId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','DeleteRangeMoveLeftCommandId','dispose$','_refRangeService','@univerjs/ui','ILogService','APPLY_REVISION_CONFILICT','application/json','CONFLICT','_docSyncEditingCollabCursorService','RemoveColCommandId','body','_document','setAlpha','setInterval','saveImage','NO_OTHER_CLIENTS_EDITING','add','_scheduleSaving','toRgbString','_registerDependencies','_themeService','MessageType','currentSkeleton$','PERMISSION_DENIED','_drawRectRange','_roomMembers$','Tools','unshift','@univerjs-pro/collaboration-client','entityInit$','PENDING','_hideTimer','@univerjs/core','exhaustSavingTask','parse','_configService','unit','_startDocCollabCursor','CollaborationDataLoaderController','roomMembers$','type','1em','_backgroundColor','_docSkeletonManagerService','function','_urlService','_toggleOnline','transformIMECache','string','_revisionService','_onCursorDelete','show','_imageIoService','_initEvent','getTypeOfUnitDisposed$','_localCacheService','DOC_RANGE_TYPE','_handleHover','SessionStatus','collab-text-range-','labelPosition','Vector2','undoState','ISocketService','_range','getSkeleton','lineTo','_memberService','_instanceService','_getSaveTimeout','colorChannel1','onPointerLeave$','moveTo','transformRemoteChangeset','getConfig','round','cursorInfo$','setItem','with','_init','toDisposable','DEFAULT_WS_SESSION_TICKET_URL','fillRule','COMPLETION_FINISHED','onCommandExecuted','onLocalMutation','_drawAnchor','endRow','m2Prime','arc','_collaborationController','Rect','_docTransformIMECacheService','45DQsNDf','getCollabEntity$','handleIRemoveRow','column','toString','COLORS','unitId','amd','split','drawWith','RegularPolygon','defineProperty','DataLoaderService','_updateCollabCursors','TOO_MANY_REQUESTS','params','svg','sessionStatus$','_beforeCloseService','OTHER_CLIENT_EDITING','SheetSkeletonManagerService','getCurrentSelections','handleInsertRangeMoveRight','React','getUnitStatus$','deserializeRangeWithSheet','AWAITING_WITH_PENDING','UNDEFINED','editingUnit','unload','_entityInit$','mask','urlChange$','_hovered','data','RemoteUniscriptService','UniverCore','collabCursorState$','UniverProCollaboration','YUUMI_TABLE_NOT_FOUND_IN_UNIT','collaboration-client-ui.config','subscribeEvent','registerComponent','WECHAT_HAS_BEEN_BOUND','LocaleService','mergeOverrideWithDependencies','Warning','_refreshCollabCursors','clsx','UniverCollaborationClientUIPlugin','DisposableCollection','some','getRangePointData','idSuffix','UnitStatus','history','...','WebSocketService','on-line-single','fillText','assignAColorForMemberID','_handleLeaveEvent','_syncEditingCollabCursorService','icon','getMemberID','fill','dispose','YUUMI_AI_RUN_FAILED','className','DocCollaborationEntity','prototype','ICommandService','hide','uni.network.url-service','Error','currentTheme$','current','UniverDrawing','DocSelectionManagerService','_setupSubUnitSync','PY_RUNTIME_SCRIPT_ERROR','USER_NOT_INVITED_CODE','length','transform','href','redoState','UNAUTHENTICATED','OFFLINE','m1Prime','_draw','subunit','_assignedColors','@univerjs/network','collaboration-client.offline-data-not-saved','touchDependencies','session.will-retry','collabStatus.syncing','_univerInstanceService','INVITE_CODE_ALREADY_BOUND','collaboration.single-unit.warning','APPLY_PERMISSION_DENIED','univerjs-icon\x20univerjs-icon-','createIdentifier','IBeforeCloseService','deepClone','collab-client.tooltip.reconnect','mutations','storage','CollaborationSessionService','purple.300','addClipboardHook','LICENSE_EXPORT_SIZE_EXCEEDED','random','error','replace','text','createElement','SNAPSHOT_HAS_BEEN_REMOVED','onPointerEnter$','YUUMI_UNABLE_LOAD_URL','enableLocalCache','INTERNAL_ERROR','_removeCollabCursors','isArray','getValue','_initStatusComponent','@univerjs/docs','SheetCollabCursorShape'];_0x32d0=function(){return _0x51a3e4;};return _0x32d0();}(function(_0x3325b4,_0x5a5ae2){const _0x2df7ee=_0x222d,_0x536d40=_0x3325b4();while(!![]){try{const _0x37f0c4=-parseInt(_0x2df7ee(0x2e1))/0x1*(parseInt(_0x2df7ee(0x205))/0x2)+parseInt(_0x2df7ee(0x28c))/0x3*(-parseInt(_0x2df7ee(0x35c))/0x4)+-parseInt(_0x2df7ee(0x29b))/0x5+parseInt(_0x2df7ee(0x230))/0x6+-parseInt(_0x2df7ee(0x24c))/0x7*(-parseInt(_0x2df7ee(0x2ef))/0x8)+parseInt(_0x2df7ee(0x181))/0x9*(parseInt(_0x2df7ee(0x328))/0xa)+parseInt(_0x2df7ee(0x2de))/0xb;if(_0x37f0c4===_0x5a5ae2)break;else _0x536d40['push'](_0x536d40['shift']());}catch(_0x9d8598){_0x536d40['push'](_0x536d40['shift']());}}}(_0x32d0,0x6bc4f),function(_0x31f457,_0x348fa5){const _0x5efd31=_0x222d;typeof exports==_0x5efd31(0x2df)&&typeof module<'u'?_0x348fa5(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require(_0x5efd31(0x3a9)),require(_0x5efd31(0x1dd)),require('@univerjs/docs-ui'),require(_0x5efd31(0x38f)),require(_0x5efd31(0x392)),require(_0x5efd31(0x1ff)),require('@univerjs-pro/collaboration'),require(_0x5efd31(0x2ea)),require(_0x5efd31(0x27d)),require(_0x5efd31(0x333)),require(_0x5efd31(0x2d9)),require('react/jsx-runtime'),require('@univerjs/ui'),require(_0x5efd31(0x2bf)),require(_0x5efd31(0x298)),require(_0x5efd31(0x320))):typeof define=='function'&&define[_0x5efd31(0x188)]?define([_0x5efd31(0x318),_0x5efd31(0x140),_0x5efd31(0x144),'@univerjs/engine-render',_0x5efd31(0x1dd),_0x5efd31(0x397),'@univerjs/drawing',_0x5efd31(0x392),_0x5efd31(0x1ff),'@univerjs-pro/collaboration','@univerjs/engine-formula',_0x5efd31(0x27d),_0x5efd31(0x333),'@univerjs/sheets-ui',_0x5efd31(0x2e5),_0x5efd31(0x127),_0x5efd31(0x2bf),'react','@univerjs/rpc'],_0x348fa5):(_0x31f457=typeof globalThis<'u'?globalThis:_0x31f457||self,_0x348fa5(_0x31f457[_0x5efd31(0x32c)]={},_0x31f457[_0x5efd31(0x3af)],_0x31f457[_0x5efd31(0x1a5)],_0x31f457[_0x5efd31(0x210)],_0x31f457[_0x5efd31(0x3a8)],_0x31f457[_0x5efd31(0x2bc)],_0x31f457[_0x5efd31(0x1ce)],_0x31f457['rxjs'],_0x31f457[_0x5efd31(0x2ad)],_0x31f457[_0x5efd31(0x1a7)],_0x31f457[_0x5efd31(0x367)],_0x31f457['UniverSheets'],_0x31f457[_0x5efd31(0x392)][_0x5efd31(0x222)],_0x31f457[_0x5efd31(0x249)],_0x31f457[_0x5efd31(0x198)],_0x31f457[_0x5efd31(0x2dd)],_0x31f457[_0x5efd31(0x359)],_0x31f457[_0x5efd31(0x198)],_0x31f457['UniverRpc']));}(this,function(_0x58baf5,_0x2023db,_0x58b3ad,_0x839618,_0x22d557,_0x2e0d09,_0x4a52f9,_0x6dabd3,_0x54ca13,_0x44c456,_0xd290cd,_0x3a3c4e,_0x2f5382,_0x31b2f1,_0x5116ef,_0x1a2ea0,_0x43985a,_0xf0b2ac,_0x47f72b){'use strict';const _0x4db1c3=_0x222d;var _0x3e77b4=Object['defineProperty'],_0x308c07=(_0x2fc093,_0x424520,_0x55c710)=>_0x424520 in _0x2fc093?_0x3e77b4(_0x2fc093,_0x424520,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55c710}):_0x2fc093[_0x424520]=_0x55c710,_0x1fc77e=(_0x1ef3cb,_0x43ef71,_0xf6bbcf)=>_0x308c07(_0x1ef3cb,typeof _0x43ef71!=_0x4db1c3(0x117)?_0x43ef71+'':_0x43ef71,_0xf6bbcf),_0x14a1cc=Object['getOwnPropertyDescriptor'],_0x166f6f=(_0x567d0b,_0x3f3df0,_0x52983f,_0x4314d3)=>{const _0x112798=_0x4db1c3;for(var _0x3da7e1=_0x4314d3>0x1?void 0x0:_0x4314d3?_0x14a1cc(_0x3f3df0,_0x52983f):_0x3f3df0,_0x270562=_0x567d0b[_0x112798(0x1d3)]-0x1,_0x1f7b48;_0x270562>=0x0;_0x270562--)(_0x1f7b48=_0x567d0b[_0x270562])&&(_0x3da7e1=_0x1f7b48(_0x3da7e1)||_0x3da7e1);return _0x3da7e1;},_0x4c6900=(_0x194bf3,_0x4a8520)=>(_0x493e73,_0x469a55)=>_0x4a8520(_0x493e73,_0x469a55,_0x194bf3);let _0x10030f=class extends _0x58b3ad[_0x4db1c3(0x25a)]{constructor(_0x1d60c3,_0x12bce1){const _0xdbdcd4=_0x4db1c3;super(),this[_0xdbdcd4(0x270)]=_0x1d60c3,this[_0xdbdcd4(0x158)]=_0x12bce1,this['_init']();}[_0x4db1c3(0x173)](){const _0x2e5186=_0x4db1c3,_0x41294e=this;this[_0x2e5186(0x212)](this['_docClipboardService'][_0x2e5186(0x1ef)]({'onBeforePasteImage':async _0x136745=>{const _0x5d5c65=_0x2e5186,_0x5bf58e=await _0x41294e['_imageIoService'][_0x5d5c65(0x132)](_0x136745);return _0x5bf58e?{'source':_0x5bf58e[_0x5d5c65(0x3a6)],'imageSourceType':_0x5bf58e[_0x5d5c65(0x260)]}:null;}}));}};_0x10030f=_0x166f6f([_0x4c6900(0x0,_0x2e0d09[_0x4db1c3(0x2c2)]),_0x4c6900(0x1,_0x4a52f9['IImageIoService'])],_0x10030f);const _0x1ba055=[_0x4db1c3(0x1ee),_0x4db1c3(0x240),_0x4db1c3(0x2e4),_0x4db1c3(0x32b),'blue.400','yellow.400'];class _0x3b2cd0 extends _0x58b3ad['Disposable']{constructor(){const _0x376bd6=_0x4db1c3;super(...arguments),_0x1fc77e(this,_0x376bd6(0x1dc),new Map()),_0x1fc77e(this,_0x376bd6(0x329),0x0);}[_0x4db1c3(0x1bd)](_0x41a309){const _0x2ec50f=_0x4db1c3;if(this[_0x2ec50f(0x1dc)][_0x2ec50f(0x35a)](_0x41a309))return this[_0x2ec50f(0x1dc)]['get'](_0x41a309);const _0x563b34=_0x1ba055[this[_0x2ec50f(0x329)]];return this[_0x2ec50f(0x329)]=(this[_0x2ec50f(0x329)]+0x1)%_0x1ba055[_0x2ec50f(0x1d3)],this[_0x2ec50f(0x1dc)][_0x2ec50f(0x3b3)](_0x41a309,_0x563b34),_0x563b34;}}function _0x435a91(_0x5c8d75){const _0x2981ff=_0x4db1c3;let _0x1992c6='';for(const _0x230f8a of _0x5c8d75){const {startOffset:_0x5bcd11,endOffset:_0x502419,isActive:_0x21a183,rangeType:_0x548813,segmentId:_0x8bfc46,segmentPage:_0x182975}=_0x230f8a;_0x1992c6[_0x2981ff(0x1d3)]&&(_0x1992c6+=','),_0x1992c6+=_0x5bcd11+':'+_0x502419+':'+(_0x21a183?'1':'0')+':'+_0x548813+':'+_0x8bfc46+':'+_0x182975;}return _0x1992c6;}function _0x1aabfe(_0x4e9807){const _0x5693b2=_0x4db1c3,_0x44f90e=_0x4e9807['split'](','),_0x5c3737=[];for(const _0x1f4c90 of _0x44f90e){const [_0x5ef6b2,_0x7f1fc6,_0x4aaf0a,_0x2a6563,_0x506771,_0x5014a6]=_0x1f4c90[_0x5693b2(0x189)](':');_0x5c3737[_0x5693b2(0x395)]({'startOffset':Number(_0x5ef6b2),'endOffset':Number(_0x7f1fc6),'collapsed':_0x5ef6b2===_0x7f1fc6,'isActive':_0x4aaf0a==='1','rangeType':_0x2a6563===_0x58b3ad[_0x5693b2(0x15c)][_0x5693b2(0x279)]?_0x58b3ad[_0x5693b2(0x15c)][_0x5693b2(0x279)]:_0x58b3ad[_0x5693b2(0x15c)]['RECT'],'segmentId':typeof _0x506771==_0x5693b2(0x154)?String(_0x506771):'','segmentPage':Number(_0x5014a6!=null?_0x5014a6:-0x1)});}return _0x5c3737[_0x5693b2(0x1b4)](_0x5639af=>_0x5639af[_0x5693b2(0x293)])||(_0x5c3737[0x0]['isActive']=!0x0),_0x5c3737;}class _0x5ba099 extends _0x58b3ad['RxDisposable']{constructor(){const _0x21d71e=_0x4db1c3;super(...arguments),_0x1fc77e(this,_0x21d71e(0x251),new _0x6dabd3['BehaviorSubject'](null)),_0x1fc77e(this,'collabCursorState$',this[_0x21d71e(0x251)][_0x21d71e(0x23e)]());}[_0x4db1c3(0x2ee)](_0x322fc4){const _0x5446f4=_0x4db1c3,{unitID:_0x47aef7,memberID:_0x5e0a07,textRanges:_0x37d0a8}=_0x322fc4,_0x192c1b=_0x435a91(_0x37d0a8);if(_0x192c1b==='')return;const _0x21af74={'unitID':_0x47aef7,'memberID':_0x5e0a07,'selection':_0x192c1b};this[_0x5446f4(0x251)]['next'](_0x21af74);}}var _0x206811=Object[_0x4db1c3(0x2ff)],_0xf5046d=(_0xd20b27,_0x13c5fe,_0x32cb2c,_0x3f2810)=>{const _0x577455=_0x4db1c3;for(var _0x3fc68b=_0x3f2810>0x1?void 0x0:_0x3f2810?_0x206811(_0x13c5fe,_0x32cb2c):_0x13c5fe,_0x3ba6ad=_0xd20b27[_0x577455(0x1d3)]-0x1,_0x41cc77;_0x3ba6ad>=0x0;_0x3ba6ad--)(_0x41cc77=_0xd20b27[_0x3ba6ad])&&(_0x3fc68b=_0x41cc77(_0x3fc68b)||_0x3fc68b);return _0x3fc68b;},_0x3ba9d7=(_0x96f591,_0x296097)=>(_0x4adf40,_0x5a38ec)=>_0x296097(_0x4adf40,_0x5a38ec,_0x96f591);const _0x309e61=0x12c,_0x1b79d5=0x64;let _0x508d12=class extends _0x58b3ad[_0x4db1c3(0x25a)]{constructor(_0x4686a1,_0x305f16,_0x2f85fa,_0x41a371,_0x1d31a9,_0xa00281,_0x4a5efa,_0x41f1c4,_0x2e3fea){const _0x5e36f8=_0x4db1c3;super(),_0x1fc77e(this,_0x5e36f8(0x2ba),!0x1),_0x1fc77e(this,_0x5e36f8(0x173),!0x1),_0x1fc77e(this,_0x5e36f8(0x39a),new _0x6dabd3['BehaviorSubject'](new Map())),_0x1fc77e(this,_0x5e36f8(0x170),this['_cursorInfo$'][_0x5e36f8(0x23e)]()),_0x1fc77e(this,_0x5e36f8(0x13d),new _0x6dabd3[(_0x5e36f8(0x25f))]([])),_0x1fc77e(this,'roomMembers$',this[_0x5e36f8(0x13d)][_0x5e36f8(0x349)](_0x6dabd3['debounceTime'](_0x309e61))),_0x1fc77e(this,_0x5e36f8(0x2be),_0x58b3ad[_0x5e36f8(0x2f9)](_0x244ccf=>{const _0xdfdf0=_0x5e36f8,_0x36deb8={'eventID':_0x44c456['CollaborationEvent'][_0xdfdf0(0x2c8)],'data':{'unitID':this[_0xdfdf0(0x38e)],'memberID':this[_0xdfdf0(0x2b4)][_0xdfdf0(0x1c1)](),'selection':_0x435a91(_0x244ccf)}};this[_0xdfdf0(0x2b4)][_0xdfdf0(0x297)](_0x36deb8,this[_0xdfdf0(0x38e)]);},_0x1b79d5)),(this[_0x5e36f8(0x38e)]=_0x4686a1,this[_0x5e36f8(0x2b4)]=_0x305f16,this[_0x5e36f8(0x25e)]=_0x2f85fa,this[_0x5e36f8(0x387)]=_0x41a371,this[_0x5e36f8(0x167)]=_0x1d31a9,this[_0x5e36f8(0x1bf)]=_0xa00281,this[_0x5e36f8(0x372)]=_0x4a5efa,this['_univerInstanceService']=_0x41f1c4,this[_0x5e36f8(0x353)]=_0x2e3fea);}get['cursorInfo'](){const _0x1dc740=_0x4db1c3;return this[_0x1dc740(0x39a)]['getValue']();}get[_0x4db1c3(0x2bb)](){const _0x5c6e6d=_0x4db1c3;return this[_0x5c6e6d(0x13d)][_0x5c6e6d(0x1fd)]();}[_0x4db1c3(0x1c3)](){const _0x45bda3=_0x4db1c3;super[_0x45bda3(0x1c3)](),this[_0x45bda3(0x39a)][_0x45bda3(0x23b)](new Map()),this[_0x45bda3(0x39a)]['complete'](),this['_roomMembers$']['next']([]),this[_0x45bda3(0x13d)][_0x45bda3(0x2a1)]();}[_0x4db1c3(0x243)](){const _0x3e7c6d=_0x4db1c3;this[_0x3e7c6d(0x173)]||(this['_init']=!0x0,this[_0x3e7c6d(0x2b4)]['sessionStatus$'][_0x3e7c6d(0x349)](_0x6dabd3['takeUntil'](this[_0x3e7c6d(0x125)]))[_0x3e7c6d(0x39d)](_0x405997=>{const _0x447646=_0x3e7c6d;_0x405997===_0x2023db[_0x447646(0x15e)][_0x447646(0x343)]?this[_0x447646(0x152)]():this[_0x447646(0x2e2)]();}),this[_0x3e7c6d(0x2b4)][_0x3e7c6d(0x33b)]['pipe'](_0x6dabd3[_0x3e7c6d(0x2e7)](this['dispose$']))[_0x3e7c6d(0x39d)](_0x212b14=>{const _0x37b758=_0x3e7c6d,_0xb9f9ee=_0x212b14[_0x37b758(0x2f1)];_0xb9f9ee===_0x44c456[_0x37b758(0x236)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x212b14),_0xb9f9ee===_0x44c456[_0x37b758(0x236)][_0x37b758(0x3ac)]&&this[_0x37b758(0x156)](_0x212b14);}),this['disposeWithMe'](this[_0x3e7c6d(0x353)]['onCommandExecuted'](_0x1bd34c=>{const _0x310fbc=_0x3e7c6d,_0x15a108=_0x1bd34c[_0x310fbc(0x190)];_0x15a108!=null&&this['_online']&&_0x1bd34c['id']===_0x54ca13[_0x310fbc(0x375)]['id']&&_0x15a108[_0x310fbc(0x187)]===this['unitID']&&_0x15a108[_0x310fbc(0x36c)]===!0x1&&_0x15a108['ranges']['length']>0x0&&this[_0x310fbc(0x2be)](_0x15a108[_0x310fbc(0x3aa)]);})),this['_syncEditingCollabCursorService'][_0x3e7c6d(0x1a6)][_0x3e7c6d(0x349)](_0x6dabd3[_0x3e7c6d(0x2e7)](this[_0x3e7c6d(0x125)]))[_0x3e7c6d(0x39d)](_0x2ed579=>{const _0x3aaaa4=_0x3e7c6d;if((_0x2ed579==null?void 0x0:_0x2ed579[_0x3aaaa4(0x38e)])!==this[_0x3aaaa4(0x38e)])return;const _0x44649f={'eventID':_0x44c456[_0x3aaaa4(0x236)][_0x3aaaa4(0x2c8)],'data':_0x2ed579};this['_onCursorUpdate'](_0x44649f);}),this[_0x3e7c6d(0x212)](this['_commandService'][_0x3e7c6d(0x178)](_0x1b7407=>{const _0x28fd67=_0x3e7c6d;if(_0x1b7407[_0x28fd67(0x190)]==null)return;const _0x4ca499=_0x1b7407[_0x28fd67(0x190)];if(_0x1b7407['id']!==_0x54ca13[_0x28fd67(0x344)]['id']||_0x4ca499[_0x28fd67(0x187)]!==this[_0x28fd67(0x38e)])return;const _0x308203={'id':_0x28fd67(0x2c9),'params':_0x4ca499},_0x4415bc=this[_0x28fd67(0x36f)];for(const [_0x1b0d9d,_0x1c3b88]of _0x4415bc){const _0x2d5b81={'id':_0x28fd67(0x2c9),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1c3b88[_0x28fd67(0x3aa)]}},_0x26b08f=this['_transformService'][_0x28fd67(0x22c)](_0x308203,_0x2d5b81,!0x1);if(_0x44c456[_0x28fd67(0x3b9)](_0x26b08f))throw _0x26b08f['error'];_0x4415bc[_0x28fd67(0x3b3)](_0x1b0d9d,{..._0x1c3b88,'ranges':_0x26b08f[_0x28fd67(0x17c)][_0x28fd67(0x190)][_0x28fd67(0x31f)]});}queueMicrotask(()=>{const _0x2b3b50=_0x28fd67;this[_0x2b3b50(0x39a)]['next'](_0x4415bc);});})));}[_0x4db1c3(0x33a)](_0x32efc){const _0x34d7ff=_0x4db1c3;var _0x3e72f5,_0x24a94a;const {memberID:_0x2ecbcb,selection:_0x270cda}=_0x32efc[_0x34d7ff(0x1a3)],_0x1d6010=_0x1aabfe(_0x270cda),_0x371abc=(_0x24a94a=(_0x3e72f5=this[_0x34d7ff(0x167)][_0x34d7ff(0x374)](this[_0x34d7ff(0x38e)],_0x2ecbcb))==null?void 0x0:_0x3e72f5[_0x34d7ff(0x2d0)])!=null?_0x24a94a:_0x34d7ff(0x335),_0x2740c4={'color':this[_0x34d7ff(0x387)][_0x34d7ff(0x1bd)](_0x2ecbcb),'name':_0x371abc,'ranges':_0x1d6010},_0x2826a4=this[_0x34d7ff(0x36f)];_0x2826a4['set'](_0x2ecbcb,_0x2740c4),this[_0x34d7ff(0x39a)][_0x34d7ff(0x23b)](_0x2826a4);}[_0x4db1c3(0x156)](_0x1ba011){const _0x536cb4=_0x4db1c3,{memberID:_0x879d55}=_0x1ba011[_0x536cb4(0x1a3)],_0x4c4945=this[_0x536cb4(0x36f)];_0x4c4945[_0x536cb4(0x309)](_0x879d55),this['_cursorInfo$'][_0x536cb4(0x23b)](_0x4c4945);}['_toggleOnline'](){const _0xb1d557=_0x4db1c3;var _0x290104;if(this[_0xb1d557(0x2ba)]=!0x0,((_0x290104=this[_0xb1d557(0x1e2)][_0xb1d557(0x24d)]())==null?void 0x0:_0x290104['getUnitId']())!==this['unitID'])return;const _0x31654b=this[_0xb1d557(0x25e)]['get'](_0x54ca13[_0xb1d557(0x1cf)])[_0xb1d557(0x20c)]();Array[_0xb1d557(0x1fc)](_0x31654b)&&_0x31654b[_0xb1d557(0x1d3)]>0x0&&this[_0xb1d557(0x2be)](_0x31654b);}[_0x4db1c3(0x2e2)](){const _0x1da1a2=_0x4db1c3;this[_0x1da1a2(0x2ba)]=!0x1;}};_0x508d12=_0xf5046d([_0x3ba9d7(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad[_0x4db1c3(0x35f)])),_0x3ba9d7(0x3,_0x58b3ad[_0x4db1c3(0x257)](_0x3b2cd0)),_0x3ba9d7(0x4,_0x58b3ad[_0x4db1c3(0x257)](_0x2023db[_0x4db1c3(0x267)])),_0x3ba9d7(0x5,_0x58b3ad['Inject'](_0x5ba099)),_0x3ba9d7(0x6,_0x44c456[_0x4db1c3(0x28b)]),_0x3ba9d7(0x7,_0x58b3ad[_0x4db1c3(0x30d)]),_0x3ba9d7(0x8,_0x58b3ad['ICommandService'])],_0x508d12);var _0x426de4=Object[_0x4db1c3(0x2ff)],_0xa544e4=(_0x5f3355,_0x36e6d9,_0x5806c4,_0x9e752f)=>{const _0x430d18=_0x4db1c3;for(var _0x3da4e4=_0x9e752f>0x1?void 0x0:_0x9e752f?_0x426de4(_0x36e6d9,_0x5806c4):_0x36e6d9,_0x5c5e4e=_0x5f3355[_0x430d18(0x1d3)]-0x1,_0x4ba025;_0x5c5e4e>=0x0;_0x5c5e4e--)(_0x4ba025=_0x5f3355[_0x5c5e4e])&&(_0x3da4e4=_0x4ba025(_0x3da4e4)||_0x3da4e4);return _0x3da4e4;},_0x4ac81b=(_0x552d71,_0x1ef232)=>(_0x5f233a,_0x38c1f5)=>_0x1ef232(_0x5f233a,_0x38c1f5,_0x552d71);const _0x479bd1=0x12c,_0x44726d=0x64,_0x48c7b0=()=>{let _0x5e663f=[],_0xbda748=!0x1;return _0x3fbc49=>{const _0x2f869d=_0x222d;_0x5e663f[_0x2f869d(0x395)](_0x3fbc49),_0xbda748||(_0xbda748=!0x0,setTimeout(()=>{const _0x3b66d3=_0x2f869d;_0x5e663f[_0x3b66d3(0x341)](_0x2421a6=>_0x2421a6()),_0x5e663f=[],_0xbda748=!0x1;}));};};let _0x44f3d5=class extends _0x58b3ad['RxDisposable']{constructor(_0x290703,_0x30570e,_0x1fb515,_0x11bef3,_0x170887,_0x11b788,_0x3e3181,_0x39fd63){const _0x55f3f6=_0x4db1c3;super(),_0x1fc77e(this,_0x55f3f6(0x2ba),!0x1),_0x1fc77e(this,_0x55f3f6(0x173),!0x1),_0x1fc77e(this,_0x55f3f6(0x39a),new _0x6dabd3['BehaviorSubject'](new Map())),_0x1fc77e(this,_0x55f3f6(0x170),this[_0x55f3f6(0x39a)][_0x55f3f6(0x23e)]()),_0x1fc77e(this,_0x55f3f6(0x13d),new _0x6dabd3[(_0x55f3f6(0x25f))]([])),_0x1fc77e(this,_0x55f3f6(0x14b),this[_0x55f3f6(0x13d)][_0x55f3f6(0x349)](_0x6dabd3[_0x55f3f6(0x208)](_0x479bd1))),_0x1fc77e(this,_0x55f3f6(0x2be),_0x58b3ad[_0x55f3f6(0x2f9)]((_0x16b229,_0x4c6813)=>{const _0x27a964=_0x55f3f6,_0x50c2b8={'eventID':_0x44c456[_0x27a964(0x236)][_0x27a964(0x2c8)],'data':{'unitID':this[_0x27a964(0x38e)],'memberID':this[_0x27a964(0x2b4)][_0x27a964(0x1c1)](),'selection':_0xd290cd[_0x27a964(0x38b)](_0x16b229,_0x4c6813['range'])}};this[_0x27a964(0x2b4)][_0x27a964(0x297)](_0x50c2b8,this[_0x27a964(0x38e)]);},_0x44726d)),(this[_0x55f3f6(0x38e)]=_0x290703,this[_0x55f3f6(0x2b4)]=_0x30570e,this[_0x55f3f6(0x25e)]=_0x1fb515,this['_colorAssignService']=_0x11bef3,this[_0x55f3f6(0x167)]=_0x170887,this[_0x55f3f6(0x1e2)]=_0x11b788,this[_0x55f3f6(0x353)]=_0x3e3181,this[_0x55f3f6(0x126)]=_0x39fd63);}get[_0x4db1c3(0x36f)](){const _0x1a42e5=_0x4db1c3;return this['_cursorInfo$'][_0x1a42e5(0x1fd)]();}get[_0x4db1c3(0x2bb)](){const _0x4f9b21=_0x4db1c3;return this[_0x4f9b21(0x13d)][_0x4f9b21(0x1fd)]();}[_0x4db1c3(0x1c3)](){const _0x16c3e1=_0x4db1c3;super['dispose'](),this['_cursorInfo$'][_0x16c3e1(0x23b)](new Map()),this['_cursorInfo$'][_0x16c3e1(0x2a1)](),this[_0x16c3e1(0x13d)][_0x16c3e1(0x23b)]([]),this['_roomMembers$'][_0x16c3e1(0x2a1)]();}[_0x4db1c3(0x243)](){const _0x5ea525=_0x4db1c3;this['_init']||(this[_0x5ea525(0x173)]=!0x0,this[_0x5ea525(0x2b4)][_0x5ea525(0x192)]['pipe'](_0x6dabd3[_0x5ea525(0x2e7)](this[_0x5ea525(0x125)]))[_0x5ea525(0x39d)](_0x2d110b=>{const _0x319cdf=_0x5ea525;_0x2d110b===_0x2023db[_0x319cdf(0x15e)]['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x5ea525(0x2b4)][_0x5ea525(0x33b)]['pipe'](_0x6dabd3['takeUntil'](this[_0x5ea525(0x125)]))[_0x5ea525(0x39d)](_0x40f3b9=>{const _0x129f8c=_0x5ea525,_0x5b2956=_0x40f3b9[_0x129f8c(0x2f1)];_0x5b2956===_0x44c456[_0x129f8c(0x236)][_0x129f8c(0x2c8)]&&this['_onCursorUpdate'](_0x40f3b9),_0x5b2956===_0x44c456[_0x129f8c(0x236)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x40f3b9);}),this['_onRefRangeChange'](),this[_0x5ea525(0x212)](this[_0x5ea525(0x353)][_0x5ea525(0x178)](_0x12e88a=>{const _0x4006be=_0x5ea525;if(this[_0x4006be(0x2ba)]&&_0x12e88a['id']===_0x3a3c4e[_0x4006be(0x34e)]['id']&&_0x12e88a[_0x4006be(0x190)][_0x4006be(0x187)]===this[_0x4006be(0x38e)]){const _0x2e3349=_0x12e88a['params'];this[_0x4006be(0x2be)](_0x2e3349[_0x4006be(0x316)],_0x2e3349[_0x4006be(0x391)][0x0]);}})));}[_0x4db1c3(0x33a)](_0xec1cd2){const _0x29f31a=_0x4db1c3;var _0x178d7f,_0x2cfd04;const {memberID:_0x1ecf5c,selection:_0x1391b6}=_0xec1cd2[_0x29f31a(0x1a3)],{sheetName:_0xb49106,range:_0x153585}=_0xd290cd[_0x29f31a(0x19a)](_0x1391b6),_0x2750d2={'name':(_0x2cfd04=(_0x178d7f=this[_0x29f31a(0x167)][_0x29f31a(0x374)](this['unitID'],_0x1ecf5c))==null?void 0x0:_0x178d7f[_0x29f31a(0x2d0)])!=null?_0x2cfd04:_0x29f31a(0x335),'range':this['_getMergeRange'](_0xb49106,_0x153585),'sheetID':_0xb49106,'color':this['_colorAssignService'][_0x29f31a(0x1bd)](_0x1ecf5c),'selection':_0x1391b6},_0x2a8ebd=this[_0x29f31a(0x36f)];_0x2a8ebd[_0x29f31a(0x3b3)](_0x1ecf5c,_0x2750d2),this[_0x29f31a(0x39a)][_0x29f31a(0x23b)](_0x2a8ebd);}[_0x4db1c3(0x156)](_0x352023){const _0x254f7a=_0x4db1c3,{memberID:_0x6736ba}=_0x352023[_0x254f7a(0x1a3)],_0x43602e=this[_0x254f7a(0x36f)];_0x43602e[_0x254f7a(0x309)](_0x6736ba),this[_0x254f7a(0x39a)]['next'](_0x43602e);}[_0x4db1c3(0x25b)](_0x4a0053,_0x410324){const _0x5f4a1b=_0x4db1c3;var _0x867519,_0x1b967a;const _0x38c287=(_0x1b967a=(_0x867519=this[_0x5f4a1b(0x1e2)][_0x5f4a1b(0x248)](this[_0x5f4a1b(0x38e)]))==null?void 0x0:_0x867519[_0x5f4a1b(0x121)](_0x4a0053))==null?void 0x0:_0x1b967a[_0x5f4a1b(0x22b)]();return(_0x38c287==null?void 0x0:_0x38c287[_0x5f4a1b(0x347)](_0x30c3c2=>_0x58b3ad[_0x5f4a1b(0x39f)][_0x5f4a1b(0x266)](_0x30c3c2,_0x410324)))||_0x410324;}['_onRefRangeChange'](){const _0x12038=_0x4db1c3,_0x6dbbc8=new _0x58b3ad[(_0x12038(0x1b3))](),_0x3c823c=_0x48c7b0(),_0x4456c3=()=>{const _0x2b8324=_0x12038;_0x6dbbc8[_0x2b8324(0x1c3)]();const _0x5ee55e=(_0x43dab8,_0x3ade5e,_0x36db8f,_0x3da41a)=>{const _0x595c95=_0x2b8324;let _0x1fd9b1=[];switch(_0x43dab8['id']){case _0x3a3c4e['EffectRefRangId'][_0x595c95(0x124)]:{_0x1fd9b1=_0x3a3c4e[_0x595c95(0x26b)](_0x43dab8,_0x3da41a);break;}case _0x3a3c4e['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x1fd9b1=_0x3a3c4e['handleDeleteRangeMoveUp'](_0x43dab8,_0x3da41a);break;}case _0x3a3c4e[_0x595c95(0x122)]['InsertColCommandId']:{_0x1fd9b1=_0x3a3c4e[_0x595c95(0x233)](_0x43dab8,_0x3da41a);break;}case _0x3a3c4e[_0x595c95(0x122)][_0x595c95(0x2b9)]:{_0x1fd9b1=_0x3a3c4e[_0x595c95(0x3a2)](_0x43dab8,_0x3da41a);break;}case _0x3a3c4e['EffectRefRangId'][_0x595c95(0x284)]:{_0x1fd9b1=_0x3a3c4e[_0x595c95(0x197)](_0x43dab8,_0x3da41a);break;}case _0x3a3c4e[_0x595c95(0x122)][_0x595c95(0x29d)]:{_0x1fd9b1=_0x3a3c4e[_0x595c95(0x28e)](_0x43dab8,_0x3da41a);break;}case _0x3a3c4e['EffectRefRangId'][_0x595c95(0x34b)]:{_0x1fd9b1=_0x3a3c4e[_0x595c95(0x2c1)](_0x43dab8,_0x3da41a);break;}case _0x3a3c4e['EffectRefRangId'][_0x595c95(0x12d)]:{_0x1fd9b1=_0x3a3c4e[_0x595c95(0x245)](_0x43dab8,_0x3da41a);break;}case _0x3a3c4e['EffectRefRangId']['RemoveRowCommandId']:{_0x1fd9b1=_0x3a3c4e[_0x595c95(0x183)](_0x43dab8,_0x3da41a);break;}}const _0x82137f=_0x3a3c4e[_0x595c95(0x2fb)](_0x1fd9b1,_0x3da41a),_0x3b7a53=this['cursorInfo'][_0x595c95(0x2c5)](_0x3ade5e);if(_0x3b7a53&&_0x82137f){const _0x3a05b1={..._0x3b7a53,'range':_0x82137f};this[_0x595c95(0x36f)][_0x595c95(0x3b3)](_0x3ade5e,_0x3a05b1),_0x3c823c(()=>{const _0x4b8f1b=_0x595c95,_0x33efc4=this[_0x4b8f1b(0x126)][_0x4b8f1b(0x217)](_0x82137f,_0x37d3e7=>(_0x33efc4[_0x4b8f1b(0x1c3)](),_0x5ee55e(_0x37d3e7,_0x3ade5e,_0x36db8f,_0x82137f)));_0x6dbbc8[_0x4b8f1b(0x134)](_0x33efc4);});}return{'redos':[],'undos':[]};};this[_0x2b8324(0x36f)]['forEach']((_0x2d1177,_0x35efec)=>{const _0x487ac2=_0x2b8324,{range:_0x416771,sheetID:_0x158fbf}=_0x2d1177,_0x67bc44=this[_0x487ac2(0x126)][_0x487ac2(0x217)](_0x416771,_0x527a80=>(_0x67bc44['dispose'](),_0x5ee55e(_0x527a80,_0x35efec,_0x158fbf,_0x416771)));_0x6dbbc8[_0x487ac2(0x134)](_0x67bc44);});};this[_0x12038(0x212)](_0x58b3ad['toDisposable'](this[_0x12038(0x39a)][_0x12038(0x39d)](()=>{_0x4456c3();})));}[_0x4db1c3(0x152)](){const _0x192477=_0x4db1c3;var _0x27084b,_0x1df15c;if(this[_0x192477(0x2ba)]=!0x0,((_0x27084b=this[_0x192477(0x1e2)][_0x192477(0x24d)]())==null?void 0x0:_0x27084b[_0x192477(0x238)]())!==this[_0x192477(0x38e)])return;const _0x105ab9=(_0x1df15c=this['_injector'][_0x192477(0x2c5)](_0x3a3c4e[_0x192477(0x340)])[_0x192477(0x196)]())==null?void 0x0:_0x1df15c[0x0],_0x545f2a=this[_0x192477(0x1e2)]['getCurrentUnitForType'](_0x58b3ad[_0x192477(0x382)]['UNIVER_SHEET'])['getActiveSheet']();_0x105ab9&&_0x545f2a&&this[_0x192477(0x2be)](_0x545f2a['getSheetId'](),_0x105ab9);}[_0x4db1c3(0x2e2)](){const _0x1530eb=_0x4db1c3;this[_0x1530eb(0x2ba)]=!0x1;}};_0x44f3d5=_0xa544e4([_0x4ac81b(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad[_0x4db1c3(0x35f)])),_0x4ac81b(0x3,_0x58b3ad[_0x4db1c3(0x257)](_0x3b2cd0)),_0x4ac81b(0x4,_0x58b3ad[_0x4db1c3(0x257)](_0x2023db['MemberService'])),_0x4ac81b(0x5,_0x58b3ad[_0x4db1c3(0x30d)]),_0x4ac81b(0x6,_0x58b3ad[_0x4db1c3(0x1c8)]),_0x4ac81b(0x7,_0x58b3ad[_0x4db1c3(0x257)](_0x3a3c4e[_0x4db1c3(0x2a6)]))],_0x44f3d5);var _0x8b2e26=Object['getOwnPropertyDescriptor'],_0x34333e=(_0xa385f0,_0x5ac42a,_0x498cac,_0x1fb288)=>{const _0x48ced2=_0x4db1c3;for(var _0x5560e0=_0x1fb288>0x1?void 0x0:_0x1fb288?_0x8b2e26(_0x5ac42a,_0x498cac):_0x5ac42a,_0x35a83e=_0xa385f0[_0x48ced2(0x1d3)]-0x1,_0x430d0a;_0x35a83e>=0x0;_0x35a83e--)(_0x430d0a=_0xa385f0[_0x35a83e])&&(_0x5560e0=_0x430d0a(_0x5560e0)||_0x5560e0);return _0x5560e0;},_0x4f45a1=(_0x4296c7,_0x2b9118)=>(_0x499f7f,_0x19c878)=>_0x2b9118(_0x499f7f,_0x19c878,_0x4296c7);let _0x37f18b=class extends _0x58b3ad[_0x4db1c3(0x25a)]{constructor(_0x2b7a0d,_0x185ff2,_0x480fe5){const _0x533e20=_0x4db1c3;super(),_0x1fc77e(this,_0x533e20(0x371),new Map()),_0x1fc77e(this,_0x533e20(0x19f),new _0x6dabd3[(_0x533e20(0x296))]()),(this['_univerInstanceService']=_0x2b7a0d,this['_injector']=_0x185ff2,this[_0x533e20(0x36d)]=_0x480fe5,this[_0x533e20(0x173)]());}[_0x4db1c3(0x1c3)](){const _0x1a93aa=_0x4db1c3;super[_0x1a93aa(0x1c3)](),this[_0x1a93aa(0x19f)][_0x1a93aa(0x2a1)](),this['_entities']['forEach'](_0xbb5f60=>_0xbb5f60[_0x1a93aa(0x1c3)]());}[_0x4db1c3(0x22e)](_0x29b7bf){const _0xc30a64=_0x4db1c3;return this[_0xc30a64(0x371)][_0xc30a64(0x35a)](_0x29b7bf)?this['_entities'][_0xc30a64(0x2c5)](_0x29b7bf)['cursorInfo$']:this['_entityInit$'][_0xc30a64(0x349)](_0x6dabd3['filter'](_0x333b2e=>_0x333b2e[_0xc30a64(0x38e)]===_0x29b7bf),_0x6dabd3[_0xc30a64(0x11b)](_0x30e106=>_0x30e106[_0xc30a64(0x170)]));}[_0x4db1c3(0x173)](){const _0x438884=_0x4db1c3;this['_univerInstanceService'][_0x438884(0x2ec)](_0x58b3ad[_0x438884(0x382)][_0x438884(0x33c)])[_0x438884(0x349)](_0x6dabd3[_0x438884(0x2e7)](this[_0x438884(0x125)]))[_0x438884(0x39d)](async _0x442dac=>{const _0xac5415=_0x438884,_0x450d72=_0x442dac[_0xac5415(0x238)](),_0x215640=await this[_0xac5415(0x22d)](_0x450d72);this[_0xac5415(0x19f)][_0xac5415(0x23b)](_0x215640),this['_entities'][_0xac5415(0x3b3)](_0x450d72,_0x215640);}),this['_univerInstanceService'][_0x438884(0x2ec)](_0x58b3ad['UniverInstanceType'][_0x438884(0x2f4)])[_0x438884(0x349)](_0x6dabd3[_0x438884(0x2e7)](this['dispose$']))[_0x438884(0x349)](_0x6dabd3[_0x438884(0x34d)](_0x1a9558=>!_0x1a9558[_0x438884(0x238)]()[_0x438884(0x220)]('__')))[_0x438884(0x39d)](async _0x18ead8=>{const _0x3d786a=_0x438884,_0x872a38=_0x18ead8[_0x3d786a(0x238)](),_0x44787a=await this[_0x3d786a(0x149)](_0x872a38);this['_entityInit$'][_0x3d786a(0x23b)](_0x44787a),this[_0x3d786a(0x371)]['set'](_0x872a38,_0x44787a);}),_0x6dabd3[_0x438884(0x28a)](this['_univerInstanceService'][_0x438884(0x15a)](_0x58b3ad[_0x438884(0x382)]['UNIVER_DOC']),this[_0x438884(0x1e2)]['getTypeOfUnitDisposed$'](_0x58b3ad[_0x438884(0x382)][_0x438884(0x33c)]))[_0x438884(0x349)](_0x6dabd3['takeUntil'](this[_0x438884(0x125)]))[_0x438884(0x39d)](_0x3246a3=>{const _0x40cde7=_0x438884,_0x5f32e4=_0x3246a3[_0x40cde7(0x238)](),_0x22e1b6=this[_0x40cde7(0x371)][_0x40cde7(0x2c5)](_0x5f32e4);_0x22e1b6&&(_0x22e1b6[_0x40cde7(0x1c3)](),this[_0x40cde7(0x371)][_0x40cde7(0x309)](_0x5f32e4));});}async[_0x4db1c3(0x22d)](_0x3ee89f){const _0x32c482=_0x4db1c3,_0x3d10c9=await this['_collabSessionService'][_0x32c482(0x2b6)](_0x3ee89f),_0x2a8f84=this['_injector'][_0x32c482(0x22f)](_0x44f3d5,_0x3ee89f,_0x3d10c9);return _0x2a8f84[_0x32c482(0x243)](),_0x2a8f84;}async['_startDocCollabCursor'](_0x50c2ef){const _0x40333d=_0x4db1c3,_0x34919d=await this[_0x40333d(0x36d)][_0x40333d(0x2b6)](_0x50c2ef),_0x3d042a=this[_0x40333d(0x25e)][_0x40333d(0x22f)](_0x508d12,_0x50c2ef,_0x34919d);return _0x3d042a[_0x40333d(0x243)](),_0x3d042a;}};_0x37f18b=_0x34333e([_0x4f45a1(0x0,_0x58b3ad['IUniverInstanceService']),_0x4f45a1(0x1,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad['Injector'])),_0x4f45a1(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x2023db[_0x4db1c3(0x1ed)]))],_0x37f18b);const _0x2f36af=0x14,_0x19becf=0xc8,_0x1ed6cd=0x4,_0x2f49d5=0x5;function _0x187791(_0x6cef6b,_0x4b045b){const _0xbb2086=_0x4db1c3;let {radius:_0x1e7292,width:_0x342015,height:_0x5575a6}=_0x4b045b;_0x1e7292=_0x1e7292!=null?_0x1e7292:0x0,_0x342015=_0x342015!=null?_0x342015:0x1e,_0x5575a6=_0x5575a6!=null?_0x5575a6:0x1e;let _0x5331f7=0x0,_0x1c81d0=0x0,_0x7ee8cd=0x0;_0x5331f7=_0x1c81d0=_0x7ee8cd=Math[_0xbb2086(0x20a)](_0x1e7292,_0x342015/0x2,_0x5575a6/0x2),_0x6cef6b[_0xbb2086(0x31d)](),_0x6cef6b[_0xbb2086(0x16c)](_0x5331f7,0x0),_0x6cef6b[_0xbb2086(0x166)](_0x342015-_0x1c81d0,0x0),_0x6cef6b[_0xbb2086(0x17d)](_0x342015-_0x1c81d0,_0x1c81d0,_0x1c81d0,Math['PI']*0x3/0x2,0x0,!0x1),_0x6cef6b[_0xbb2086(0x166)](_0x342015,_0x5575a6-_0x7ee8cd),_0x6cef6b[_0xbb2086(0x17d)](_0x342015-_0x7ee8cd,_0x5575a6-_0x7ee8cd,_0x7ee8cd,0x0,Math['PI']/0x2,!0x1),_0x6cef6b['lineTo'](0x0,_0x5575a6),_0x6cef6b[_0xbb2086(0x166)](0x0,_0x5331f7),_0x6cef6b['arc'](_0x5331f7,_0x5331f7,_0x5331f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x6cef6b['closePath'](),_0x4b045b['fill']&&(_0x6cef6b[_0xbb2086(0x393)](),_0x6cef6b['fillStyle']=_0x4b045b[_0xbb2086(0x1c2)],_0x4b045b[_0xbb2086(0x176)]===_0xbb2086(0x234)?_0x6cef6b[_0xbb2086(0x1c2)](_0xbb2086(0x234)):_0x6cef6b[_0xbb2086(0x1c2)](),_0x6cef6b[_0xbb2086(0x229)]());}class _0x2a5523 extends _0x839618[_0x4db1c3(0x213)]{constructor(_0x1620d5,_0x2b5ada){const _0x21bee5=_0x4db1c3;super(_0x1620d5,_0x2b5ada),_0x1fc77e(this,_0x21bee5(0x2a9)),_0x1fc77e(this,_0x21bee5(0x1f4)),(this[_0x21bee5(0x2a9)]=_0x2b5ada==null?void 0x0:_0x2b5ada['color'],this[_0x21bee5(0x1f4)]=_0x2b5ada==null?void 0x0:_0x2b5ada['text']);}static['drawWith'](_0x509e7b,_0x5c8cae){const _0x175ca1=_0x4db1c3,{text:_0x1bb341,color:_0x1437ae}=_0x5c8cae;_0x509e7b[_0x175ca1(0x393)](),_0x509e7b[_0x175ca1(0x28f)]=_0x175ca1(0x123);const _0x4f399e=_0x509e7b['measureText'](_0x1bb341)[_0x175ca1(0x3b1)],_0x191626=Math[_0x175ca1(0x20a)](_0x4f399e+0x2*_0x1ed6cd,_0x19becf);_0x187791(_0x509e7b,{'height':_0x2f36af,'radius':0x4,'width':_0x191626,'fill':_0x1437ae}),_0x509e7b['fillStyle']=_0x175ca1(0x336);const _0x919b5a=_0x1ed6cd,_0x332144=_0x2f36af-_0x2f49d5,_0x13d30c=_0x19becf-0x2*_0x1ed6cd;if(_0x4f399e>_0x13d30c){let _0x4b45b7='',_0x12cfc2=0x0;for(const _0x2fed36 of _0x1bb341){const _0x4b15e0=_0x509e7b['measureText'](_0x2fed36)['width'];if(_0x12cfc2+_0x4b15e0<=_0x13d30c-_0x509e7b[_0x175ca1(0x252)](_0x175ca1(0x1b9))[_0x175ca1(0x3b1)])_0x4b45b7+=_0x2fed36,_0x12cfc2+=_0x4b15e0;else{_0x4b45b7+=_0x175ca1(0x1b9);break;}}_0x509e7b[_0x175ca1(0x1bc)](_0x4b45b7,_0x919b5a,_0x332144);}else _0x509e7b[_0x175ca1(0x1bc)](_0x1bb341,_0x919b5a,_0x332144);_0x509e7b[_0x175ca1(0x229)]();}[_0x4db1c3(0x1da)](_0x38af74){const _0x5878a1=_0x4db1c3;_0x2a5523[_0x5878a1(0x18a)](_0x38af74,this);}}const _0x249ec0=_0x4db1c3(0x2c4),_0x5a52b2=_0x4db1c3(0x15f),_0x372e1f=_0x4db1c3(0x332),_0x261a32=0x6,_0x3f96e7=1.5,_0x5cd01c=0x4,_0x5d5301=1.5,_0x39e7d7=_0x4db1c3(0x319);class _0x4152ac{constructor(_0x117bed,_0x3a89d0,_0x291a96,_0x580cfd){const _0x14c29a=_0x4db1c3;_0x1fc77e(this,_0x14c29a(0x2c7),[]),_0x1fc77e(this,_0x14c29a(0x216),null),_0x1fc77e(this,_0x14c29a(0x2e6),null),_0x1fc77e(this,_0x14c29a(0x24b),null),_0x1fc77e(this,'_hideTimer',null),_0x1fc77e(this,'_eventUnsubscribe',null),(this[_0x14c29a(0x36a)]=_0x117bed,this['_scene']=_0x3a89d0,this['_docSkeleton']=_0x291a96,this[_0x14c29a(0x12f)]=_0x580cfd,this[_0x14c29a(0x285)]());}set[_0x4db1c3(0x36b)](_0x16af38){const _0xd7e8c3=_0x4db1c3;_0x16af38?(this['_anchorDot']&&this[_0xd7e8c3(0x24b)][_0xd7e8c3(0x1c9)](),this[_0xd7e8c3(0x2e6)]&&this['_textBubble'][_0xd7e8c3(0x157)]()):(this[_0xd7e8c3(0x24b)]&&this[_0xd7e8c3(0x24b)][_0xd7e8c3(0x157)](),this[_0xd7e8c3(0x2e6)]&&this[_0xd7e8c3(0x2e6)][_0xd7e8c3(0x1c9)]());}[_0x4db1c3(0x1c3)](){const _0xac5c2=_0x4db1c3;for(const _0x1760cd of this[_0xac5c2(0x2c7)])_0x1760cd[_0xac5c2(0x1c3)]();this[_0xac5c2(0x2e6)]&&this[_0xac5c2(0x2e6)][_0xac5c2(0x1c3)](),this[_0xac5c2(0x24b)]&&this[_0xac5c2(0x24b)][_0xac5c2(0x1c3)](),this[_0xac5c2(0x216)]&&this[_0xac5c2(0x216)][_0xac5c2(0x1c3)](),this[_0xac5c2(0x22a)]&&this[_0xac5c2(0x22a)]();}[_0x4db1c3(0x285)](){const _0x4e31be=_0x4db1c3;var _0x482e7b;const {_docSkeleton:_0x59d28b,_document:_0x518573}=this,{color:_0x1f9175,name:_0x448a5c,ranges:_0x4caaf7}=this[_0x4e31be(0x36a)],_0x4ac338=_0x518573[_0x4e31be(0x2c3)](),{docsLeft:_0x3a6012,docsTop:_0x1dfe55}=_0x4ac338,_0x3554d6=new _0x2e0d09['NodePositionConvertToCursor'](_0x4ac338,_0x59d28b);for(const {startOffset:_0x48b4c8,endOffset:_0x4bc699,rangeType:_0x29e29f,segmentId:_0x41ee06,segmentPage:_0x2acd7e,collapsed:_0x49a811,isActive:_0x47018d}of _0x4caaf7){const _0x4e1e7b=_0x59d28b[_0x4e31be(0x11f)](_0x48b4c8,!0x0,_0x41ee06,_0x2acd7e);let _0x17b21d=_0x59d28b[_0x4e31be(0x11f)](_0x4bc699,!0x0,_0x41ee06,_0x2acd7e);if(_0x17b21d==null&&(_0x17b21d=_0x59d28b['findNodePositionByCharIndex'](_0x4bc699-0x1,!0x1,_0x41ee06,_0x2acd7e)),_0x47018d){const {contentBoxPointGroup:_0x666816}=_0x3554d6[_0x4e31be(0x1b5)](_0x17b21d,_0x17b21d);if(_0x666816[_0x4e31be(0x1d3)]===0x0)continue;this[_0x4e31be(0x17a)](_0x1f9175,_0x666816,_0x3a6012,_0x1dfe55,_0x448a5c),this[_0x4e31be(0x22a)]=this[_0x4e31be(0x15d)]();}if(_0x4e1e7b&&_0x17b21d){if(_0x29e29f===_0x58b3ad['DOC_RANGE_TYPE'][_0x4e31be(0x2bd)]){const _0x3439c5=new _0x2e0d09[(_0x4e31be(0x380))](_0x4ac338,_0x59d28b),{pointGroup:_0x16e30c}=(_0x482e7b=_0x3439c5['getRangePointData'](_0x4e1e7b,_0x17b21d))!=null?_0x482e7b:{};if(_0x16e30c==null||_0x16e30c[_0x4e31be(0x1d3)]===0x0)continue;this[_0x4e31be(0x13c)](_0x1f9175,_0x16e30c,_0x3a6012,_0x1dfe55);}else{if(!_0x49a811){const {borderBoxPointGroup:_0xa56b0a}=_0x3554d6['getRangePointData'](_0x4e1e7b,_0x17b21d);if(_0xa56b0a['length']===0x0)continue;this[_0x4e31be(0x379)](_0x1f9175,_0xa56b0a,_0x3a6012,_0x1dfe55);}}}}}[_0x4db1c3(0x17a)](_0x4fe8bb,_0x2b9163,_0x1e8831,_0x6527d8,_0x32ec6a){const _0x52d01d=_0x4db1c3,_0x20027f=this['_getAnchorBounding'](_0x2b9163),{left:_0x40aef8,top:_0x218665,height:_0x188b70}=_0x20027f,_0x3a20cb=this['_getScale'](),_0x34b02d=_0x5d5301/_0x3a20cb,_0x48a195=new _0x839618[(_0x52d01d(0x17f))](_0x249ec0+_0x58b3ad['Tools'][_0x52d01d(0x308)](_0x261a32),{'left':_0x40aef8+_0x1e8831-_0x34b02d,'top':_0x218665+_0x6527d8,'height':_0x188b70,'width':_0x3f96e7,'fill':_0x4fe8bb||_0x839618['getColor'](_0x58b3ad['COLORS'][_0x52d01d(0x226)],0x0),'strokeWidth':_0x34b02d,'stroke':_0x39e7d7,'evented':!0x0});this[_0x52d01d(0x216)]=_0x48a195,this[_0x52d01d(0x366)][_0x52d01d(0x2eb)](_0x48a195,_0x2e0d09[_0x52d01d(0x396)]);const _0x2bd705=new _0x839618['Rect'](_0x249ec0+_0x58b3ad[_0x52d01d(0x13e)]['generateRandomId'](_0x261a32),{'left':_0x40aef8+_0x1e8831-_0x34b02d,'top':_0x218665+_0x6527d8-_0x5cd01c/0x2,'height':_0x5cd01c,'width':_0x5cd01c,'fill':_0x4fe8bb||_0x839618[_0x52d01d(0x37f)](_0x58b3ad[_0x52d01d(0x186)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x4fe8bb||_0x839618[_0x52d01d(0x37f)](_0x58b3ad[_0x52d01d(0x186)][_0x52d01d(0x226)],0x0),'evented':!0x1});this['_anchorDot']=_0x2bd705,this[_0x52d01d(0x366)][_0x52d01d(0x2eb)](_0x2bd705,_0x2e0d09[_0x52d01d(0x396)]);const _0x5d7a48=new _0x2a5523(_0x249ec0+_0x58b3ad[_0x52d01d(0x13e)]['generateRandomId'](_0x261a32),{'left':_0x40aef8+_0x1e8831-_0x34b02d,'top':_0x218665+_0x6527d8-_0x2f36af,'text':_0x32ec6a,'color':_0x4fe8bb});this[_0x52d01d(0x2e6)]=_0x5d7a48,this[_0x52d01d(0x366)]['addObject'](_0x5d7a48,_0x2e0d09[_0x52d01d(0x396)]),this[_0x52d01d(0x36b)]=!0x1;}[_0x4db1c3(0x15d)](){const _0x439065=_0x4db1c3,_0x2af8bf=this[_0x439065(0x216)][_0x439065(0x1f7)][_0x439065(0x1aa)](()=>{const _0x32b22c=_0x439065;this[_0x32b22c(0x36b)]=!0x0;}),_0x5de349=this[_0x439065(0x216)][_0x439065(0x16b)]['subscribeEvent'](()=>{const _0x2382bc=_0x439065;this[_0x2382bc(0x143)]&&clearTimeout(this[_0x2382bc(0x143)]),this[_0x2382bc(0x143)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4411fa=_0x439065;_0x2af8bf[_0x4411fa(0x276)](),_0x5de349[_0x4411fa(0x276)]();};}[_0x4db1c3(0x379)](_0x302120,_0x32557f,_0xd707a6,_0x4c0348){const _0x5eb569=_0x4db1c3,_0x4512c8=new _0x58b3ad['ColorKit'](_0x302120)['setAlpha'](0.2)['toRgbString'](),_0x4bf65d=new _0x839618[(_0x5eb569(0x18b))](_0x5a52b2+_0x58b3ad['Tools'][_0x5eb569(0x308)](_0x261a32),{'pointsGroup':_0x32557f,'fill':_0x4512c8||_0x839618[_0x5eb569(0x37f)](_0x58b3ad[_0x5eb569(0x186)]['black'],0.2),'left':_0xd707a6,'top':_0x4c0348,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5eb569(0x2c7)][_0x5eb569(0x395)](_0x4bf65d),this[_0x5eb569(0x366)][_0x5eb569(0x2eb)](_0x4bf65d,_0x2e0d09[_0x5eb569(0x396)]);}[_0x4db1c3(0x13c)](_0x5dbe90,_0x2cedf9,_0x2c4cbf,_0x32c06f){const _0x7d418b=_0x4db1c3,_0x265bae=new _0x58b3ad[(_0x7d418b(0x250))](_0x5dbe90)[_0x7d418b(0x130)](0.2)[_0x7d418b(0x136)](),_0x381cc1=new _0x839618[(_0x7d418b(0x18b))](_0x372e1f+_0x58b3ad[_0x7d418b(0x13e)][_0x7d418b(0x308)](_0x261a32),{'pointsGroup':_0x2cedf9,'fill':_0x265bae||_0x839618[_0x7d418b(0x37f)](_0x58b3ad[_0x7d418b(0x186)][_0x7d418b(0x226)],0.2),'left':_0x2c4cbf,'top':_0x32c06f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x7d418b(0x395)](_0x381cc1),this[_0x7d418b(0x366)][_0x7d418b(0x2eb)](_0x381cc1,_0x2e0d09[_0x7d418b(0x396)]);}['_getAnchorBounding'](_0x510ad8){const _0x3b4f20=_0x510ad8[0x0],_0x598413=_0x3b4f20[0x0],_0x2de92b=_0x3b4f20[0x2],{x:_0x4eb997,y:_0x3d666d}=_0x598413,{x:_0x200c6a,y:_0x34c082}=_0x2de92b;return{'left':_0x4eb997,'top':_0x3d666d,'width':_0x200c6a-_0x4eb997,'height':_0x34c082-_0x3d666d};}[_0x4db1c3(0x29e)](){const _0x40ccec=_0x4db1c3,{scaleX:_0x302efd,scaleY:_0x1b32ff}=this[_0x40ccec(0x366)][_0x40ccec(0x30a)]();return Math[_0x40ccec(0x339)](_0x302efd,_0x1b32ff);}}var _0xbcd82d=Object[_0x4db1c3(0x2ff)],_0x38742f=(_0x2c9540,_0x5d77a5,_0x10b728,_0x54f90f)=>{const _0xbcaf39=_0x4db1c3;for(var _0x3bd6b2=_0x54f90f>0x1?void 0x0:_0x54f90f?_0xbcd82d(_0x5d77a5,_0x10b728):_0x5d77a5,_0x148231=_0x2c9540[_0xbcaf39(0x1d3)]-0x1,_0x199d85;_0x148231>=0x0;_0x148231--)(_0x199d85=_0x2c9540[_0x148231])&&(_0x3bd6b2=_0x199d85(_0x3bd6b2)||_0x3bd6b2);return _0x3bd6b2;},_0x16c793=(_0x36038f,_0x5a9277)=>(_0x446b9e,_0x4df1a5)=>_0x5a9277(_0x446b9e,_0x4df1a5,_0x36038f);let _0x250bc8=class extends _0x58b3ad[_0x4db1c3(0x25a)]{constructor(_0x4439f4,_0x41413c,_0xef7cfe,_0x533129,_0x5cfd12){const _0x1f4e92=_0x4db1c3;super(),_0x1fc77e(this,'_cursorShapes',[]),_0x1fc77e(this,_0x1f4e92(0x314),[]),(this[_0x1f4e92(0x2dc)]=_0x4439f4,this['_docSkeletonManagerService']=_0x41413c,this[_0x1f4e92(0x337)]=_0xef7cfe,this['_commandService']=_0x533129,this[_0x1f4e92(0x138)]=_0x5cfd12,this['_init']());}[_0x4db1c3(0x173)](){const _0x473cda=_0x4db1c3,_0x5a2724=this['_context']['unitId'],_0x483227=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x6dabd3[_0x473cda(0x289)]([this[_0x473cda(0x337)][_0x473cda(0x22e)](_0x5a2724),this[_0x473cda(0x138)]['currentTheme$']])[_0x473cda(0x349)](_0x2f5382[_0x473cda(0x235)](([_0x16b2c6,_0x190aaa])=>({'skeleton':_0x483227[_0x473cda(0x165)](),'cursors':[..._0x16b2c6[_0x473cda(0x262)]()][_0x473cda(0x362)](_0x13ed92=>({..._0x13ed92,'color':this[_0x473cda(0x138)][_0x473cda(0x273)](_0x13ed92[_0x473cda(0x2a9)])}))})))[_0x473cda(0x39d)](_0x38846d=>{const _0x51285f=_0x473cda;if(this[_0x51285f(0x1fb)](),_0x38846d){const {skeleton:_0x1199f9,cursors:_0x11417b}=_0x38846d;this[_0x51285f(0x18e)](_0x1199f9,_0x11417b);}})),this[_0x473cda(0x29c)](),this[_0x473cda(0x322)]();}[_0x4db1c3(0x18e)](_0x95a5a6,_0x58d5ce){const _0x429ad3=_0x4db1c3,{scene:_0x574e55,mainComponent:_0x256ea7}=this[_0x429ad3(0x2dc)],_0x24bd98=_0x58d5ce['map'](_0x35deaa=>new _0x4152ac(_0x35deaa,_0x574e55,_0x95a5a6,_0x256ea7));this[_0x429ad3(0x25d)]=_0x24bd98,this['_cursors']=_0x58d5ce;}[_0x4db1c3(0x1b0)](){const _0x133bea=_0x4db1c3;this[_0x133bea(0x1fb)]();const {scene:_0x26d5f1,mainComponent:_0x19c518}=this[_0x133bea(0x2dc)],_0x3b0a09=this[_0x133bea(0x14f)]['getSkeleton'](),_0x2edb4e=this['_cursors'][_0x133bea(0x235)](_0x5e0502=>new _0x4152ac(_0x5e0502,_0x26d5f1,_0x3b0a09,_0x19c518));this[_0x133bea(0x25d)]=_0x2edb4e;}[_0x4db1c3(0x1fb)](){const _0x2c274c=_0x4db1c3;this[_0x2c274c(0x25d)]['forEach'](_0xf36e0c=>_0xf36e0c[_0x2c274c(0x1c3)]()),this[_0x2c274c(0x25d)]=[];}[_0x4db1c3(0x322)](){const _0x3f5a7a=_0x4db1c3,_0x4fe0ee=[_0x2e0d09[_0x3f5a7a(0x265)]['id']];this[_0x3f5a7a(0x212)](this['_commandService'][_0x3f5a7a(0x178)](_0x5e7f86=>{const _0x58ab8a=_0x3f5a7a;_0x4fe0ee[_0x58ab8a(0x20d)](_0x5e7f86['id'])&&_0x5e7f86[_0x58ab8a(0x190)][_0x58ab8a(0x187)]===this['_context']['unitId']&&this[_0x58ab8a(0x1b0)]();}));}[_0x4db1c3(0x29c)](){const _0x7a1675=_0x4db1c3;this[_0x7a1675(0x212)](_0x58b3ad['fromEventSubject'](this[_0x7a1675(0x2dc)]['engine']['onTransformChange$'])[_0x7a1675(0x349)](_0x2f5382[_0x7a1675(0x34d)](_0xf62fd0=>_0xf62fd0['type']===_0x839618['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x7a1675(0x206)]),_0x2f5382[_0x7a1675(0x301)](0x10))[_0x7a1675(0x39d)](()=>{this['_refreshCollabCursors']();}));}};_0x250bc8=_0x38742f([_0x16c793(0x1,_0x58b3ad[_0x4db1c3(0x257)](_0x54ca13[_0x4db1c3(0x342)])),_0x16c793(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x37f18b)),_0x16c793(0x3,_0x58b3ad['ICommandService']),_0x16c793(0x4,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad['ThemeService']))],_0x250bc8);const _0x1d7c54=0x1,_0x28749=1.5;class _0x2f939e extends _0x839618[_0x4db1c3(0x213)]{constructor(_0x2f72c5,_0x517b4f){const _0x5aca94=_0x4db1c3;super(_0x2f72c5,_0x517b4f),_0x1fc77e(this,_0x5aca94(0x215)),_0x1fc77e(this,_0x5aca94(0x1a2),!0x1),_0x1fc77e(this,_0x5aca94(0x164)),_0x1fc77e(this,'_name',''),_0x1fc77e(this,'_labelPosition',_0x5aca94(0x31b)),_0x1fc77e(this,_0x5aca94(0x14e)),(_0x517b4f&&this[_0x5aca94(0x118)](_0x517b4f),this[_0x5aca94(0x1f7)][_0x5aca94(0x1aa)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x5aca94(0x1aa)](()=>this[_0x5aca94(0x118)]({'hovered':!0x1})));}[_0x4db1c3(0x118)](_0x5cf2f0){const _0x3ac12c=_0x4db1c3;var _0x477c92,_0x51cef6,_0xa58906,_0x2217b6,_0x5d2668,_0x1fa979;this[_0x3ac12c(0x215)]=(_0x477c92=_0x5cf2f0['color'])!=null?_0x477c92:this[_0x3ac12c(0x215)],this['_hovered']=(_0x51cef6=_0x5cf2f0[_0x3ac12c(0x2a0)])!=null?_0x51cef6:this[_0x3ac12c(0x1a2)],this['_range']=(_0xa58906=_0x5cf2f0[_0x3ac12c(0x211)])!=null?_0xa58906:this[_0x3ac12c(0x164)],this[_0x3ac12c(0x27f)]=(_0x2217b6=_0x5cf2f0['name'])!=null?_0x2217b6:this[_0x3ac12c(0x27f)],this[_0x3ac12c(0x29a)]=(_0x5d2668=_0x5cf2f0[_0x3ac12c(0x160)])!=null?_0x5d2668:this['_labelPosition'],this[_0x3ac12c(0x14e)]=(_0x1fa979=_0x5cf2f0[_0x3ac12c(0x253)])!=null?_0x1fa979:this[_0x3ac12c(0x14e)],this['transformByState']({'width':_0x5cf2f0[_0x3ac12c(0x3b1)],'height':_0x5cf2f0[_0x3ac12c(0x35b)]});}[_0x4db1c3(0x119)](_0x5ed783){const _0x1fcbd3=_0x4db1c3,{row:_0x15fa9f,column:_0x2aba08}=_0x5ed783;if(_0x15fa9f>=this[_0x1fcbd3(0x164)]['startRow']&&_0x15fa9f<=this[_0x1fcbd3(0x164)][_0x1fcbd3(0x17b)]&&_0x2aba08>=this[_0x1fcbd3(0x164)]['startColumn']&&_0x2aba08<=this[_0x1fcbd3(0x164)][_0x1fcbd3(0x33f)]){this[_0x1fcbd3(0x118)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4db1c3(0x352)](_0x3f1419){return!0x1;}[_0x4db1c3(0x1da)](_0x353dec){const _0x3d5cfa=_0x4db1c3;_0x839618['Rect'][_0x3d5cfa(0x18a)](_0x353dec,{'width':this[_0x3d5cfa(0x3b1)],'height':this[_0x3d5cfa(0x35b)],'strokeWidth':_0x28749,'stroke':this[_0x3d5cfa(0x215)],'evented':!0x1,'fill':this[_0x3d5cfa(0x14e)]}),this[_0x3d5cfa(0x1a2)]&&(_0x353dec['save'](),_0x353dec[_0x3d5cfa(0x1d4)](0x1,0x0,0x0,0x1,this[_0x3d5cfa(0x3b1)],this[_0x3d5cfa(0x29a)]===_0x3d5cfa(0x389)?0x0:-0x14),_0x2a5523[_0x3d5cfa(0x18a)](_0x353dec,{'text':this['_name'],'color':this[_0x3d5cfa(0x215)]}),_0x353dec[_0x3d5cfa(0x229)]());}}var _0x5d7326=Object[_0x4db1c3(0x2ff)],_0x116e40=(_0xef63e8,_0x5d2215,_0xcfe57f,_0x5aac97)=>{for(var _0x38df71=_0x5aac97>0x1?void 0x0:_0x5aac97?_0x5d7326(_0x5d2215,_0xcfe57f):_0x5d2215,_0x455072=_0xef63e8['length']-0x1,_0x490781;_0x455072>=0x0;_0x455072--)(_0x490781=_0xef63e8[_0x455072])&&(_0x38df71=_0x490781(_0x38df71)||_0x38df71);return _0x38df71;},_0xe44dfe=(_0x2d8f1c,_0x29d9a2)=>(_0x483ec7,_0x306f39)=>_0x29d9a2(_0x483ec7,_0x306f39,_0x2d8f1c);const _0x5d9545=0x1389;let _0x82a8ef=class extends _0x58b3ad[_0x4db1c3(0x25a)]{constructor(_0x4478b3,_0x40700a,_0x26a34f,_0x1d5816){const _0x3ad447=_0x4db1c3;super(),_0x1fc77e(this,_0x3ad447(0x314),new Set()),_0x1fc77e(this,_0x3ad447(0x219),null),(this[_0x3ad447(0x2dc)]=_0x4478b3,this[_0x3ad447(0x2e8)]=_0x40700a,this[_0x3ad447(0x337)]=_0x26a34f,this[_0x3ad447(0x138)]=_0x1d5816,this[_0x3ad447(0x173)]());}[_0x4db1c3(0x173)](){const _0x5a92d8=_0x4db1c3;this[_0x5a92d8(0x2e8)][_0x5a92d8(0x13a)]['pipe'](_0x2f5382[_0x5a92d8(0x2e7)](this[_0x5a92d8(0x125)]),_0x2f5382[_0x5a92d8(0x11b)](_0x5c872d=>{const _0x46aabd=_0x5a92d8;if(_0x5c872d){const _0x557a65=_0x5c872d[_0x46aabd(0x351)];return _0x6dabd3[_0x46aabd(0x289)](this[_0x46aabd(0x337)]['getCollabCursors$'](this[_0x46aabd(0x2dc)][_0x46aabd(0x187)]),this[_0x46aabd(0x138)][_0x46aabd(0x1cc)])[_0x46aabd(0x349)](_0x2f5382[_0x46aabd(0x235)](([_0xa7cb24,_0x1a6176])=>{const _0x526de8=_0x46aabd,_0x107a16=new Map();return _0xa7cb24[_0x526de8(0x341)]((_0x39351a,_0x4b10f7)=>{const _0xbe115d=_0x526de8;if(_0x39351a[_0xbe115d(0x202)]===_0x557a65){const _0x21a4ab={..._0x39351a};_0x21a4ab[_0xbe115d(0x2a9)]=this['_themeService'][_0xbe115d(0x273)](_0x39351a[_0xbe115d(0x2a9)]),_0x107a16[_0xbe115d(0x3b3)](_0x4b10f7,_0x21a4ab);}}),{'skeleton':_0x5c872d,'cursors':_0x107a16};}));}return _0x6dabd3['of']({'skeleton':null,'cursors':new Map()});}))[_0x5a92d8(0x39d)](({skeleton:_0x2f6cb0,cursors:_0x3e98dd})=>{const _0x30db6d=_0x5a92d8;this[_0x30db6d(0x1fb)](),_0x2f6cb0&&this['_updateCollabCursors'](_0x2f6cb0,_0x3e98dd);}),this[_0x5a92d8(0x2e8)][_0x5a92d8(0x13a)][_0x5a92d8(0x39d)](_0x2c598d=>{const _0x188438=_0x5a92d8;if(_0x2c598d==null)return;const {skeleton:_0x13c69f}=_0x2c598d,{scene:_0x3bafc9}=this[_0x188438(0x2dc)];_0x3bafc9[_0x188438(0x264)][_0x188438(0x1aa)](_0x58b3ad[_0x188438(0x2f9)](_0x2b426=>{const _0x2fd296=_0x188438;var _0xfffe4,_0x1bf70b;const {offsetX:_0x3fda8a,offsetY:_0x50d15f}=_0x2b426,{x:_0xab8267,y:_0x4343fe}=_0x3bafc9[_0x2fd296(0x23f)](_0x839618[_0x2fd296(0x161)][_0x2fd296(0x2d6)]([_0x3fda8a,_0x50d15f])),{scaleX:_0x1a71a9,scaleY:_0x4ba497}=_0x3bafc9[_0x2fd296(0x30a)](),_0x32f281=_0x3bafc9[_0x2fd296(0x2a5)](_0x839618[_0x2fd296(0x350)]['VIEW_MAIN']),_0x2b23af=_0x3bafc9[_0x2fd296(0x377)](_0x839618[_0x2fd296(0x161)][_0x2fd296(0x2d6)]([_0xab8267,_0x4343fe]),_0x32f281),_0x4a15f0=_0x13c69f[_0x2fd296(0x256)](_0x3fda8a,_0x50d15f,_0x1a71a9,_0x4ba497,_0x2b23af);((_0xfffe4=this[_0x2fd296(0x219)])==null?void 0x0:_0xfffe4['column'])===_0x4a15f0[_0x2fd296(0x184)]&&((_0x1bf70b=this[_0x2fd296(0x219)])==null?void 0x0:_0x1bf70b[_0x2fd296(0x237)])===_0x4a15f0[_0x2fd296(0x237)]||this[_0x2fd296(0x314)][_0x2fd296(0x341)](_0x400bab=>{_0x400bab['onMouseMove'](_0x4a15f0);});},0x64));});}[_0x4db1c3(0x18e)](_0x2580fc,_0xf34c){const _0x327ab2=_0x4db1c3;var _0x5f1a2e;const _0x2bb110=(_0x5f1a2e=this['_sheetSkeletonManagerService'][_0x327ab2(0x37d)]())==null?void 0x0:_0x5f1a2e[_0x327ab2(0x26c)];if(!_0x2bb110)return;const _0x5274ef=this[_0x327ab2(0x345)]();if(!_0x5274ef)return;this[_0x327ab2(0x314)][_0x327ab2(0x341)](_0x473522=>{const _0x8f7f07=_0x327ab2;_0x473522[_0x8f7f07(0x295)]();});const {scene:_0x51f99e}=_0x5274ef,_0x54b95e=_0x57f00b(Array[_0x327ab2(0x2e0)](_0xf34c[_0x327ab2(0x262)]()))['map'](_0x27d8ac=>{const _0x189bfc=_0x327ab2,{color:_0x7d9c46,range:_0x1d60ec,name:_0x1158f9,selection:_0xef910e,sheetID:_0x5b6325}=_0x27d8ac,{startColumn:_0x218c74,startRow:_0x1d8f53,endColumn:_0x4c75c9,endRow:_0x3157c6}=_0x1d60ec,_0x55a9c6=_0x31b2f1[_0x189bfc(0x360)](_0x1d8f53,_0x218c74,_0x51f99e,_0x2bb110),_0xd572e9=_0x31b2f1[_0x189bfc(0x360)](_0x3157c6,_0x4c75c9,_0x51f99e,_0x2bb110),{columnHeaderHeightAndMarginTop:_0x38c20f}=_0x2bb110,{startX:_0x4cbc3b,startY:_0x25fb85}=_0x55a9c6,{endX:_0x2a94c9,endY:_0x3f3aa3}=_0xd572e9,_0x3e2314=_0x2a94c9-_0x4cbc3b,_0x31d820=_0x3f3aa3-_0x25fb85,_0x15fd62={'labelPosition':_0x25fb85-_0x38c20f>=_0x2f36af?'top':'bottom','sheetID':_0x5b6325,'range':_0x1d60ec,'color':_0x7d9c46,'name':_0x1158f9,'selection':_0xef910e,'left':_0x4cbc3b,'top':_0x25fb85,'width':_0x3e2314,'height':_0x31d820,'evented':!0x1,'zIndex':_0x5d9545};return new _0x2f939e(_0x1158f9,_0x15fd62);});_0x51f99e[_0x327ab2(0x255)](_0x54b95e,_0x1d7c54),this[_0x327ab2(0x314)]=new Set(_0x54b95e);}[_0x4db1c3(0x1fb)](){const _0x12881a=_0x4db1c3;var _0x4a8923;(_0x4a8923=this[_0x12881a(0x314)])==null||_0x4a8923[_0x12881a(0x341)](_0x58ac13=>_0x58ac13[_0x12881a(0x1c3)]());}['_getSheetObject'](){const _0x162a60=_0x4db1c3;return _0x31b2f1[_0x162a60(0x263)](this[_0x162a60(0x2dc)][_0x162a60(0x148)],this[_0x162a60(0x2dc)]);}};_0x82a8ef=_0x116e40([_0xe44dfe(0x1,_0x58b3ad[_0x4db1c3(0x257)](_0x31b2f1[_0x4db1c3(0x195)])),_0xe44dfe(0x2,_0x58b3ad['Inject'](_0x37f18b)),_0xe44dfe(0x3,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad[_0x4db1c3(0x386)]))],_0x82a8ef);function _0x57f00b(_0x1b5178){const _0x481c38=_0x4db1c3,_0x3e8ce6=new Map();return _0x1b5178[_0x481c38(0x341)](_0x5b6090=>{const _0x168cd7=_0x481c38;if(_0x3e8ce6['has'](_0x5b6090['selection'])){const _0x48a1f1=_0x3e8ce6[_0x168cd7(0x2c5)](_0x5b6090[_0x168cd7(0x37b)]);_0x48a1f1['name']+=',\x20'+_0x5b6090[_0x168cd7(0x2d0)];}else _0x3e8ce6['set'](_0x5b6090['selection'],_0x5b6090);}),Array[_0x481c38(0x2e0)](_0x3e8ce6['values']());}var _0x2b2a5d=function(){const _0x25fe08=_0x4db1c3;return _0x2b2a5d=Object[_0x25fe08(0x2fd)]||function(_0x3ffad3){const _0xe6c7a9=_0x25fe08;for(var _0x15fc4b,_0x2f7bf7=0x1,_0x2d56ea=arguments['length'];_0x2f7bf7<_0x2d56ea;_0x2f7bf7++){_0x15fc4b=arguments[_0x2f7bf7];for(var _0x38db0f in _0x15fc4b)Object[_0xe6c7a9(0x1c7)][_0xe6c7a9(0x31a)]['call'](_0x15fc4b,_0x38db0f)&&(_0x3ffad3[_0x38db0f]=_0x15fc4b[_0x38db0f]);}return _0x3ffad3;},_0x2b2a5d[_0x25fe08(0x21c)](this,arguments);},_0x1b5d1b=function(_0x4f929b,_0x12d89f){const _0x85eafe=_0x4db1c3;var _0x253cee={};for(var _0x19c213 in _0x4f929b)Object[_0x85eafe(0x1c7)][_0x85eafe(0x31a)][_0x85eafe(0x3a1)](_0x4f929b,_0x19c213)&&_0x12d89f[_0x85eafe(0x384)](_0x19c213)<0x0&&(_0x253cee[_0x19c213]=_0x4f929b[_0x19c213]);if(_0x4f929b!=null&&typeof Object[_0x85eafe(0x338)]==_0x85eafe(0x150)){for(var _0xb41569=0x0,_0x19c213=Object[_0x85eafe(0x338)](_0x4f929b);_0xb41569<_0x19c213['length'];_0xb41569++)_0x12d89f[_0x85eafe(0x384)](_0x19c213[_0xb41569])<0x0&&Object[_0x85eafe(0x1c7)]['propertyIsEnumerable'][_0x85eafe(0x3a1)](_0x4f929b,_0x19c213[_0xb41569])&&(_0x253cee[_0x19c213[_0xb41569]]=_0x4f929b[_0x19c213[_0xb41569]]);}return _0x253cee;},_0x3286b0=_0xf0b2ac[_0x4db1c3(0x39e)](function(_0x2fb58a,_0x1acca2){const _0x22eeab=_0x4db1c3;var _0x809656=_0x2fb58a[_0x22eeab(0x1c0)],_0x4e9e9e=_0x2fb58a['id'],_0xa61375=_0x2fb58a['className'],_0x40362c=_0x2fb58a[_0x22eeab(0x258)],_0x57b167=_0x1b5d1b(_0x2fb58a,['icon','id',_0x22eeab(0x1c5),_0x22eeab(0x258)]),_0x11542f=_0x22eeab(0x1e6)[_0x22eeab(0x32e)](_0x4e9e9e,'\x20')[_0x22eeab(0x32e)](_0xa61375||'')[_0x22eeab(0x25c)](),_0x5f1e06=_0xf0b2ac[_0x22eeab(0x399)]('_'['concat'](_0xd956d5()));return _0x534f5a(_0x809656,''[_0x22eeab(0x32e)](_0x4e9e9e),{'defIds':_0x809656[_0x22eeab(0x30f)],'idSuffix':_0x5f1e06[_0x22eeab(0x1cd)]},_0x2b2a5d({'ref':_0x1acca2,'className':_0x11542f},_0x57b167),_0x40362c);});function _0x534f5a(_0x542889,_0x3f8322,_0x6116a3,_0x227c7d,_0x462f97){const _0x38e583=_0x4db1c3;return _0xf0b2ac[_0x38e583(0x1f5)](_0x542889[_0x38e583(0x2cb)],_0x2b2a5d(_0x2b2a5d({'key':_0x3f8322},_0xea4ead(_0x542889,_0x6116a3,_0x462f97)),_0x227c7d),(_0x4b963f(_0x542889,_0x6116a3)[_0x38e583(0x302)]||[])[_0x38e583(0x235)](function(_0x379be6,_0x4fda6e){const _0x226990=_0x38e583;return _0x534f5a(_0x379be6,''['concat'](_0x3f8322,'-')[_0x226990(0x32e)](_0x542889['tag'],'-')[_0x226990(0x32e)](_0x4fda6e),_0x6116a3,void 0x0,_0x462f97);}));}function _0xea4ead(_0x4b812e,_0x51ba38,_0x434c5b){const _0x315d16=_0x4db1c3;var _0x4d1395=_0x2b2a5d({},_0x4b812e[_0x315d16(0x201)]);_0x434c5b!=null&&_0x434c5b['colorChannel1']&&_0x4d1395['fill']==='colorChannel1'&&(_0x4d1395[_0x315d16(0x1c2)]=_0x434c5b[_0x315d16(0x16a)]),_0x4b812e[_0x315d16(0x2cb)]===_0x315d16(0x1a0)&&_0x4d1395['id']&&(_0x4d1395['id']=_0x4d1395['id']+_0x51ba38['idSuffix']),Object[_0x315d16(0x2c6)](_0x4d1395)[_0x315d16(0x341)](function(_0xc63eaa){const _0x4b2007=_0x315d16;var _0x5c4c0b=_0xc63eaa[0x0],_0x120f86=_0xc63eaa[0x1];_0x5c4c0b===_0x4b2007(0x1a0)&&typeof _0x120f86==_0x4b2007(0x154)&&(_0x4d1395[_0x5c4c0b]=_0x120f86[_0x4b2007(0x1f3)](/url\(#(.*)\)/,_0x4b2007(0x38a)[_0x4b2007(0x32e)](_0x51ba38[_0x4b2007(0x1b6)],')')));});var _0x15fb1d=_0x51ba38[_0x315d16(0x30f)];return!_0x15fb1d||_0x15fb1d[_0x315d16(0x1d3)]===0x0||(_0x4b812e[_0x315d16(0x2cb)]===_0x315d16(0x2af)&&_0x4d1395[_0x315d16(0x24e)]&&(_0x4d1395[_0x315d16(0x24e)]=_0x4d1395[_0x315d16(0x24e)]+_0x51ba38['idSuffix']),Object[_0x315d16(0x2c6)](_0x4d1395)[_0x315d16(0x341)](function(_0x416f09){const _0x3b1210=_0x315d16;var _0x65e93f=_0x416f09[0x0],_0xb0735=_0x416f09[0x1];typeof _0xb0735=='string'&&(_0x4d1395[_0x65e93f]=_0xb0735['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3b1210(0x32e)](_0x51ba38[_0x3b1210(0x1b6)],')')));})),_0x4d1395;}function _0x4b963f(_0x520ed4,_0x447e1a){const _0x1975e1=_0x4db1c3;var _0x49e33d,_0x303782=_0x447e1a[_0x1975e1(0x30f)];return!_0x303782||_0x303782['length']===0x0?_0x520ed4:_0x520ed4[_0x1975e1(0x2cb)]===_0x1975e1(0x38c)&&(!((_0x49e33d=_0x520ed4['children'])===null||_0x49e33d===void 0x0)&&_0x49e33d[_0x1975e1(0x1d3)])?_0x2b2a5d(_0x2b2a5d({},_0x520ed4),{'children':_0x520ed4[_0x1975e1(0x302)]['map'](function(_0x13a2d){const _0x241f25=_0x1975e1;return typeof _0x13a2d[_0x241f25(0x201)]['id']==_0x241f25(0x154)&&_0x303782&&_0x303782['indexOf'](_0x13a2d[_0x241f25(0x201)]['id'])>-0x1?_0x2b2a5d(_0x2b2a5d({},_0x13a2d),{'attrs':_0x2b2a5d(_0x2b2a5d({},_0x13a2d[_0x241f25(0x201)]),{'id':_0x13a2d[_0x241f25(0x201)]['id']+_0x447e1a[_0x241f25(0x1b6)]})}):_0x13a2d;})}):_0x520ed4;}function _0xd956d5(){const _0x250e14=_0x4db1c3;return Math[_0x250e14(0x1f1)]()[_0x250e14(0x185)](0x24)[_0x250e14(0x27c)](0x2,0x8);}_0x3286b0['displayName']='UniverIcon';var _0xe7c75b={'tag':_0x4db1c3(0x191),'attrs':{'fill':_0x4db1c3(0x11a),'viewBox':_0x4db1c3(0x204),'width':_0x4db1c3(0x14d),'height':_0x4db1c3(0x14d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x4db1c3(0x3ae),'attrs':{'stroke':_0x4db1c3(0x2fc),'d':_0x4db1c3(0x2d8),'strokeLinecap':_0x4db1c3(0x16f),'strokeLinejoin':_0x4db1c3(0x16f),'strokeWidth':1.2}}]},{'tag':_0x4db1c3(0x38c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4db1c3(0x378)},'children':[{'tag':_0x4db1c3(0x3ae),'attrs':{'fill':_0x4db1c3(0x3ad),'d':_0x4db1c3(0x37e)}}]}]}],'defIds':[_0x4db1c3(0x378)]},_0x2ac8dc=_0xf0b2ac[_0x4db1c3(0x39e)](function(_0x15c757,_0x1afad5){const _0x17b4f9=_0x4db1c3;return _0xf0b2ac[_0x17b4f9(0x1f5)](_0x3286b0,Object[_0x17b4f9(0x2fd)]({},_0x15c757,{'id':'off-line-single','ref':_0x1afad5,'icon':_0xe7c75b}));});_0x2ac8dc['displayName']=_0x4db1c3(0x303);var _0x436151={'tag':_0x4db1c3(0x191),'attrs':{'fill':'none','viewBox':_0x4db1c3(0x2b3),'width':_0x4db1c3(0x14d),'height':_0x4db1c3(0x14d)},'children':[{'tag':'g','attrs':{'clipPath':_0x4db1c3(0x373)},'children':[{'tag':_0x4db1c3(0x3ae),'attrs':{'stroke':_0x4db1c3(0x2fc),'d':_0x4db1c3(0x2a4),'strokeLinecap':'round','strokeLinejoin':_0x4db1c3(0x16f),'strokeWidth':1.2}}]},{'tag':_0x4db1c3(0x38c),'attrs':{},'children':[{'tag':_0x4db1c3(0x27a),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4db1c3(0x3ae),'attrs':{'fill':_0x4db1c3(0x3ad),'d':_0x4db1c3(0x37e),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x2cd5c9=_0xf0b2ac[_0x4db1c3(0x39e)](function(_0x2abcac,_0x22194d){const _0x503062=_0x4db1c3;return _0xf0b2ac['createElement'](_0x3286b0,Object['assign']({},_0x2abcac,{'id':_0x503062(0x1bb),'ref':_0x22194d,'icon':_0x436151}));});_0x2cd5c9[_0x4db1c3(0x2ce)]='OnLineSingle';function _0x39c85a(_0x10bc22){const _0x215768=_0x4db1c3;switch(_0x10bc22){case _0x2023db[_0x215768(0x11e)][_0x215768(0x1d8)]:return'collabStatus.offline';case _0x2023db[_0x215768(0x11e)]['CONFLICT']:return _0x215768(0x2da);case _0x2023db[_0x215768(0x11e)][_0x215768(0x2fa)]:return _0x215768(0x2a2);case _0x2023db[_0x215768(0x11e)][_0x215768(0x272)]:return _0x215768(0x2b1);case _0x2023db[_0x215768(0x11e)]['AWAITING']:case _0x2023db[_0x215768(0x11e)][_0x215768(0x19b)]:return _0x215768(0x1e1);case _0x2023db[_0x215768(0x11e)][_0x215768(0x2d1)]:case _0x2023db[_0x215768(0x11e)][_0x215768(0x142)]:return'collabStatus.synced';}}function _0x478902(_0x27e7d2){const _0x34d488=_0x4db1c3,{status$:_0x21c9c1}=_0x27e7d2,_0x28e3f3=_0x1a2ea0[_0x34d488(0x23c)](_0x21c9c1,_0x2023db[_0x34d488(0x11e)][_0x34d488(0x272)]),_0x143bed=_0x1a2ea0[_0x34d488(0x214)](_0x58b3ad[_0x34d488(0x1ad)]),_0x2eb1a5=_0x1a2ea0['useDependency'](_0x2023db['CollaborationSessionService']),_0x6b9419=_0x28e3f3!==_0x2023db[_0x34d488(0x11e)][_0x34d488(0x1d8)],_0x587d55=_0x143bed['t'](_0x39c85a(_0x28e3f3)),_0x3c6caf=_0x6b9419?_0x5116ef[_0x34d488(0x231)](_0x2cd5c9,{}):_0x5116ef[_0x34d488(0x231)](_0x2ac8dc,{}),_0x2d464f=_0xf0b2ac['useCallback'](()=>{_0x6b9419||_0x2eb1a5['reconnect']();},[_0x6b9419,_0x2eb1a5]);function _0x15ff7a(){const _0x41d075=_0x34d488;return _0x5116ef[_0x41d075(0x274)](_0x41d075(0x390),{'className':'univer-flex\x20univer-items-center','onClick':_0x2d464f,'children':[_0x5116ef[_0x41d075(0x231)](_0x41d075(0x390),{'className':_0x43985a[_0x41d075(0x1b1)]('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x6b9419,'univer-text-red-500':!_0x6b9419}),'children':_0x3c6caf}),_0x5116ef['jsx']('div',{'className':_0x41d075(0x33e),'children':_0x587d55})]});}return _0x6b9419?_0x15ff7a():_0x5116ef['jsx'](_0x43985a['Tooltip'],{'title':_0x143bed['t'](_0x34d488(0x1ea)),'children':_0x15ff7a()});}var _0x793154=Object['getOwnPropertyDescriptor'],_0xb08a6f=(_0x35d285,_0x303173,_0x42c584,_0x5d8271)=>{const _0x310f75=_0x4db1c3;for(var _0xd6bade=_0x5d8271>0x1?void 0x0:_0x5d8271?_0x793154(_0x303173,_0x42c584):_0x303173,_0x5543e6=_0x35d285[_0x310f75(0x1d3)]-0x1,_0x3500ff;_0x5543e6>=0x0;_0x5543e6--)(_0x3500ff=_0x35d285[_0x5543e6])&&(_0xd6bade=_0x3500ff(_0xd6bade)||_0xd6bade);return _0xd6bade;},_0x51536f=(_0x150c01,_0x47064a)=>(_0x254ea0,_0x224e22)=>_0x47064a(_0x254ea0,_0x224e22,_0x150c01);_0x58baf5[_0x4db1c3(0x3b4)]=class extends _0x58b3ad[_0x4db1c3(0x33d)]{constructor(_0x4ecab4,_0x21d377,_0x6da284,_0x177b44){const _0xdbced5=_0x4db1c3;super(),_0x1fc77e(this,_0xdbced5(0x254),new _0x6dabd3[(_0xdbced5(0x25f))](_0x2023db[_0xdbced5(0x11e)][_0xdbced5(0x272)])),(this[_0xdbced5(0x1e2)]=_0x4ecab4,this[_0xdbced5(0x25e)]=_0x21d377,this[_0xdbced5(0x17e)]=_0x6da284,this[_0xdbced5(0x207)]=_0x177b44,this[_0xdbced5(0x1fe)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x376917=_0x4db1c3;this['disposeWithMe'](this[_0x376917(0x1e2)]['focused$'][_0x376917(0x349)](_0x6dabd3[_0x376917(0x11b)](()=>{const _0x56fe7f=_0x376917,_0x5990eb=this[_0x56fe7f(0x1e2)]['getFocusedUnit']();return _0x5990eb?this[_0x56fe7f(0x17e)][_0x56fe7f(0x182)](_0x5990eb[_0x56fe7f(0x238)]()):_0x6dabd3['of'](null);}),_0x6dabd3['switchMap'](_0x528aa9=>_0x528aa9?_0x528aa9['status$']:_0x6dabd3['of'](_0x2023db[_0x376917(0x11e)][_0x376917(0x272)])))[_0x376917(0x39d)](_0x3d4a01=>{const _0x3d5e34=_0x376917;this[_0x3d5e34(0x254)]['next'](_0x3d4a01);}));}[_0x4db1c3(0x1fe)](){const _0x465862=_0x4db1c3;this[_0x465862(0x212)](this['_uiPartsService'][_0x465862(0x1ab)](_0x1a2ea0[_0x465862(0x2f2)][_0x465862(0x2d3)],()=>_0x1a2ea0[_0x465862(0x20f)](_0x2d8bb2({'status$':this[_0x465862(0x254)][_0x465862(0x23e)]()}),this[_0x465862(0x25e)])));}},_0x58baf5[_0x4db1c3(0x3b4)]=_0xb08a6f([_0x51536f(0x0,_0x58b3ad[_0x4db1c3(0x30d)]),_0x51536f(0x1,_0x58b3ad['Inject'](_0x58b3ad['Injector'])),_0x51536f(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x2023db[_0x4db1c3(0x2f3)])),_0x51536f(0x3,_0x1a2ea0[_0x4db1c3(0x388)])],_0x58baf5['DesktopCollaborationStatusDisplayController']);function _0x2d8bb2(_0x46d570){const {status$:_0x29fbae}=_0x46d570;return function(){const _0x56bf8c=_0x222d;return _0x5116ef[_0x56bf8c(0x231)](_0x478902,{'status$':_0x29fbae});};}var _0x13a89f=Object['getOwnPropertyDescriptor'],_0x37a252=(_0x30fef7,_0x4ebf86,_0x4c2899,_0x4b2dc2)=>{const _0x1da6de=_0x4db1c3;for(var _0x469aad=_0x4b2dc2>0x1?void 0x0:_0x4b2dc2?_0x13a89f(_0x4ebf86,_0x4c2899):_0x4ebf86,_0x4f3475=_0x30fef7[_0x1da6de(0x1d3)]-0x1,_0x483804;_0x4f3475>=0x0;_0x4f3475--)(_0x483804=_0x30fef7[_0x4f3475])&&(_0x469aad=_0x483804(_0x469aad)||_0x469aad);return _0x469aad;},_0xcb97ef=(_0x4143d9,_0x11f326)=>(_0x5492cb,_0x19c9d2)=>_0x11f326(_0x5492cb,_0x19c9d2,_0x4143d9);let _0xf7f3cb=class extends _0x58b3ad[_0x4db1c3(0x33d)]{constructor(_0x4424b4,_0x475c97,_0x59f24e,_0xd842ea,_0x5f50ee,_0x18e3b3){const _0x48a808=_0x4db1c3;super(),this[_0x48a808(0x193)]=_0x4424b4,this['_localCacheService']=_0x475c97,this[_0x48a808(0x3a0)]=_0x59f24e,this['_messageService']=_0xd842ea,this[_0x48a808(0x2cf)]=_0x5f50ee,this[_0x48a808(0x383)]=_0x18e3b3,this[_0x48a808(0x282)](),this[_0x48a808(0x159)]();}[_0x4db1c3(0x282)](){const _0x4faba0=_0x4db1c3;this[_0x4faba0(0x212)](this['_beforeCloseService'][_0x4faba0(0x29f)](()=>{const _0x133645=_0x4faba0;if(this[_0x133645(0x15b)][_0x133645(0x24a)][_0x133645(0x364)])return this[_0x133645(0x383)]['t'](_0x133645(0x1de));}));}[_0x4db1c3(0x159)](){const _0x141ded=_0x4db1c3;this['disposeWithMe'](this[_0x141ded(0x3a0)]['event$'][_0x141ded(0x39d)](_0x4cdd9f=>{const _0x4f1f85=_0x141ded;_0x4cdd9f['id']===_0x2023db[_0x4f1f85(0x307)][_0x4f1f85(0x194)]&&this['_messageService'][_0x4f1f85(0x157)]({'type':_0x43985a[_0x4f1f85(0x139)][_0x4f1f85(0x1af)],'content':this[_0x4f1f85(0x383)]['t'](_0x4f1f85(0x1e4))}),_0x4cdd9f['id']===_0x2023db[_0x4f1f85(0x307)][_0x4f1f85(0x31c)]&&this[_0x4f1f85(0x394)][_0x4f1f85(0x157)]({'type':_0x43985a[_0x4f1f85(0x139)]['Warning'],'content':this[_0x4f1f85(0x383)]['t'](_0x4f1f85(0x2d4))}),_0x4cdd9f['id']===_0x2023db[_0x4f1f85(0x307)][_0x4f1f85(0x13b)]&&this[_0x4f1f85(0x2cf)][_0x4f1f85(0x157)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x4f1f85(0x383)]['t'](_0x4f1f85(0x30b)),'type':_0x4f1f85(0x1f2),'duration':0x0}),_0x4cdd9f['id']===_0x2023db['CollaborationUIEventId'][_0x4f1f85(0x12b)]&&this['_messageService'][_0x4f1f85(0x157)]({'type':_0x43985a['MessageType'][_0x4f1f85(0x1cb)],'content':this['_localeService']['t'](_0x4f1f85(0x2d4))+'('+_0x4cdd9f[_0x4f1f85(0x1a3)]+')'}),_0x4cdd9f['id']===_0x2023db[_0x4f1f85(0x307)][_0x4f1f85(0x224)]&&this[_0x4f1f85(0x394)][_0x4f1f85(0x157)]({'type':_0x43985a['MessageType'][_0x4f1f85(0x1af)],'content':this[_0x4f1f85(0x383)]['t'](_0x4cdd9f[_0x4f1f85(0x1a3)]||'')}),_0x4cdd9f['id']===_0x2023db[_0x4f1f85(0x307)][_0x4f1f85(0x2a8)]&&this[_0x4f1f85(0x394)][_0x4f1f85(0x157)]({'type':_0x43985a[_0x4f1f85(0x139)][_0x4f1f85(0x1af)],'content':this['_localeService']['t'](_0x4f1f85(0x1e0))}),_0x4cdd9f['id']===_0x2023db[_0x4f1f85(0x307)][_0x4f1f85(0x398)]&&this[_0x4f1f85(0x394)][_0x4f1f85(0x157)]({'type':_0x43985a[_0x4f1f85(0x139)][_0x4f1f85(0x1cb)],'content':this[_0x4f1f85(0x383)]['t'](_0x4f1f85(0x242))}),_0x4cdd9f['id']===_0x2023db[_0x4f1f85(0x307)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x4f1f85(0x157)]({'type':_0x43985a['MessageType'][_0x4f1f85(0x1cb)],'content':this[_0x4f1f85(0x383)]['t'](_0x4f1f85(0x310))});}));}};_0xf7f3cb=_0x37a252([_0xcb97ef(0x0,_0x1a2ea0[_0x4db1c3(0x1e8)]),_0xcb97ef(0x1,_0x2023db[_0x4db1c3(0x30e)]),_0xcb97ef(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x2023db['CollaborationUIEventService'])),_0xcb97ef(0x3,_0x1a2ea0[_0x4db1c3(0x239)]),_0xcb97ef(0x4,_0x1a2ea0[_0x4db1c3(0x37c)]),_0xcb97ef(0x5,_0x58b3ad['Inject'](_0x58b3ad[_0x4db1c3(0x1ad)]))],_0xf7f3cb);const _0x121401=_0x4db1c3(0x1a9),_0x5ce969={},_0x5b0fb3=_0x58b3ad[_0x4db1c3(0x1e7)](_0x4db1c3(0x1ca));var _0x4c9615=Object['getOwnPropertyDescriptor'],_0x2be001=(_0x411c5c,_0x177efe,_0x22537f,_0x55351f)=>{const _0x60ce65=_0x4db1c3;for(var _0x204f63=_0x55351f>0x1?void 0x0:_0x55351f?_0x4c9615(_0x177efe,_0x22537f):_0x177efe,_0x30c453=_0x411c5c[_0x60ce65(0x1d3)]-0x1,_0x919e44;_0x30c453>=0x0;_0x30c453--)(_0x919e44=_0x411c5c[_0x30c453])&&(_0x204f63=_0x919e44(_0x204f63)||_0x204f63);return _0x204f63;},_0xa8e7dd=(_0x3ce3e1,_0x5156de)=>(_0x55518d,_0x59be0c)=>_0x5156de(_0x55518d,_0x59be0c,_0x3ce3e1);_0x58baf5[_0x4db1c3(0x14a)]=class extends _0x58b3ad[_0x4db1c3(0x25a)]{constructor(_0x108524,_0x2f6ccc,_0x1686d1,_0x2f3276,_0x12f6b5){const _0x2cd08c=_0x4db1c3;super(),this[_0x2cd08c(0x151)]=_0x108524,this['_logService']=_0x2f6ccc,this[_0x2cd08c(0x353)]=_0x1686d1,this['_dataLoaderService']=_0x2f3276,_0x12f6b5?_0x12f6b5==null||_0x12f6b5[_0x2cd08c(0x26a)]()['then'](()=>this[_0x2cd08c(0x173)]()):(this['_logService'][_0x2cd08c(0x278)](_0x2cd08c(0x286),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2cd08c(0x173)]());}async[_0x4db1c3(0x173)](){const _0x53f9b8=_0x4db1c3,_0x3bd363=this[_0x53f9b8(0x151)][_0x53f9b8(0x2a7)](_0x53f9b8(0x148)),_0x33d769=this[_0x53f9b8(0x151)]['getParam'](_0x53f9b8(0x14c)),_0x2939d8=this['_urlService']['getParam'](_0x53f9b8(0x1db));if(!_0x3bd363||!_0x33d769){this['_logService'][_0x53f9b8(0x278)](_0x53f9b8(0x286),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x49e71a=await this[_0x53f9b8(0x346)]['loadUnit'](_0x3bd363,Number(_0x33d769),_0x2939d8);_0x49e71a&&_0x49e71a instanceof _0x58b3ad[_0x53f9b8(0x3b7)]&&this[_0x53f9b8(0x1d0)](_0x49e71a);}async[_0x4db1c3(0x1d0)](_0x43d75a){const _0x1a6a67=_0x4db1c3;await this[_0x1a6a67(0x232)](_0x43d75a),_0x43d75a[_0x1a6a67(0x32a)]['pipe'](_0x6dabd3[_0x1a6a67(0x2e7)](this[_0x1a6a67(0x125)]))[_0x1a6a67(0x39d)](_0x111de8=>{const _0x1cde03=_0x1a6a67;_0x111de8&&this[_0x1cde03(0x28d)](_0x111de8);}),this[_0x1a6a67(0x151)]['urlChange$'][_0x1a6a67(0x349)](_0x6dabd3[_0x1a6a67(0x2e7)](this['dispose$']))[_0x1a6a67(0x39d)](()=>this['_updateSubUnitFromURLParams'](_0x43d75a));}[_0x4db1c3(0x28d)](_0x2d558e,_0x453409=!0x1){const _0x50cd25=_0x4db1c3,_0x39fbcd=this[_0x50cd25(0x151)][_0x50cd25(0x2a7)]('subunit');_0x2d558e[_0x50cd25(0x299)]()!==_0x39fbcd&&this[_0x50cd25(0x151)][_0x50cd25(0x26e)](_0x50cd25(0x1db),_0x2d558e[_0x50cd25(0x299)](),_0x453409);}async[_0x4db1c3(0x232)](_0x231093){const _0x33a494=_0x4db1c3;var _0x3e11e8;const _0x9b12b3=this[_0x33a494(0x151)][_0x33a494(0x2a7)](_0x33a494(0x1db));if(!_0x9b12b3||!_0x231093[_0x33a494(0x121)](_0x9b12b3)){const _0x2ed9c5=_0x231093[_0x33a494(0x21e)]()[0x0],_0x51a941=_0x231093[_0x33a494(0x121)](_0x2ed9c5);if(!_0x51a941)return;this[_0x33a494(0x28d)](_0x51a941,!0x0),await this[_0x33a494(0x353)][_0x33a494(0x313)](_0x3a3c4e[_0x33a494(0x261)]['id'],{'unitId':_0x231093[_0x33a494(0x238)](),'subUnitId':_0x2ed9c5});return;}((_0x3e11e8=_0x231093['getActiveSheet']())==null?void 0x0:_0x3e11e8[_0x33a494(0x299)]())!==_0x9b12b3&&await this[_0x33a494(0x353)]['executeCommand'](_0x3a3c4e[_0x33a494(0x261)]['id'],{'unitId':_0x231093['getUnitId'](),'subUnitId':_0x9b12b3});}},_0x58baf5['CollaborationDataLoaderController']=_0x2be001([_0xa8e7dd(0x0,_0x5b0fb3),_0xa8e7dd(0x1,_0x58b3ad[_0x4db1c3(0x128)]),_0xa8e7dd(0x2,_0x58b3ad[_0x4db1c3(0x1c8)]),_0xa8e7dd(0x3,_0x58b3ad['Inject'](_0x2023db[_0x4db1c3(0x18d)])),_0xa8e7dd(0x4,_0x58b3ad['Optional'](_0x47f72b[_0x4db1c3(0x290)]))],_0x58baf5[_0x4db1c3(0x14a)]);var _0x2c8170=Object[_0x4db1c3(0x2ff)],_0x56c37d=(_0x18a7d8,_0x11216d,_0x21adf9,_0x59cf71)=>{const _0x29cc00=_0x4db1c3;for(var _0x24ede6=_0x59cf71>0x1?void 0x0:_0x59cf71?_0x2c8170(_0x11216d,_0x21adf9):_0x11216d,_0x1e805b=_0x18a7d8[_0x29cc00(0x1d3)]-0x1,_0x3e1e16;_0x1e805b>=0x0;_0x1e805b--)(_0x3e1e16=_0x18a7d8[_0x1e805b])&&(_0x24ede6=_0x3e1e16(_0x24ede6)||_0x24ede6);return _0x24ede6;},_0x110b40=(_0x38bbb5,_0x70306a)=>(_0x28c180,_0x48378f)=>_0x70306a(_0x28c180,_0x48378f,_0x38bbb5);let _0x1bcd8a=class{constructor(_0x338313,_0x275988,_0x4681cf){const _0x4776b4=_0x4db1c3;this[_0x4776b4(0x25e)]=_0x338313,this[_0x4776b4(0x372)]=_0x275988,this['_renderManagerService']=_0x4681cf;}[_0x4db1c3(0x153)](_0x1cd518){const _0x787146=_0x4db1c3;this['_transformUndoRedoStack'](_0x1cd518),this[_0x787146(0x311)](_0x1cd518);}[_0x4db1c3(0x16d)](_0x55484e){const _0x1c7aa0=_0x4db1c3,{unitID:_0x2106c7}=_0x55484e,_0x405176=this['_renderManagerService']['getRenderById'](_0x2106c7)[_0x1c7aa0(0x172)](_0x2e0d09[_0x1c7aa0(0x227)]),{redoCache:_0x400320}=_0x405176[_0x1c7aa0(0x2e9)]();if(_0x400320[_0x1c7aa0(0x1d3)]===0x0)return _0x55484e;let _0x293089=_0x58b3ad[_0x1c7aa0(0x13e)]['deepClone'](_0x55484e['mutations'][0x0]);for(let _0x7c915f=0x0;_0x7c915f<_0x400320[_0x1c7aa0(0x1d3)];_0x7c915f++){const _0x2cab7c={'id':_0x1c7aa0(0x2c9),'params':{..._0x400320[_0x7c915f]}},_0x10f6e9=this['_transformService'][_0x1c7aa0(0x22c)](_0x293089,_0x2cab7c,!0x1);if(_0x44c456[_0x1c7aa0(0x3b9)](_0x10f6e9))throw _0x10f6e9[_0x1c7aa0(0x1f2)];_0x293089=_0x10f6e9[_0x1c7aa0(0x1d9)];}return{..._0x58b3ad[_0x1c7aa0(0x13e)]['deepClone'](_0x55484e),'mutations':[_0x293089]};}[_0x4db1c3(0x370)](_0x37bbfe){const _0x400fa7=_0x4db1c3,{unitID:_0x3084ef}=_0x37bbfe,_0x1ea9ec=this[_0x400fa7(0x32f)][_0x400fa7(0x323)](_0x3084ef)[_0x400fa7(0x172)](_0x2e0d09[_0x400fa7(0x227)]),{undoCache:_0x22b07b,redoCache:_0x43df68}=_0x1ea9ec[_0x400fa7(0x2e9)]();if(_0x22b07b['length']===0x0||_0x43df68[_0x400fa7(0x1d3)]===0x0)return;const _0x37728a=[],_0x21ebf6=[];let _0x16eab8=_0x58b3ad[_0x400fa7(0x13e)][_0x400fa7(0x1e9)](_0x37bbfe[_0x400fa7(0x1eb)][0x0]),_0x22327f=_0x58b3ad[_0x400fa7(0x13e)][_0x400fa7(0x1e9)](_0x37bbfe[_0x400fa7(0x1eb)][0x0]);for(let _0x45d2e2=_0x22b07b['length']-0x1;_0x45d2e2>=0x0;_0x45d2e2--){const _0x278e1a={'id':_0x400fa7(0x2c9),'params':{..._0x22b07b[_0x45d2e2]}},_0x4ebdb9={'id':_0x400fa7(0x2c9),'params':{..._0x43df68[_0x45d2e2]}},_0x3712a3=this['_transformService']['transformMutation'](_0x16eab8,_0x278e1a,!0x1),_0x4c322c=this[_0x400fa7(0x372)][_0x400fa7(0x22c)](_0x22327f,_0x4ebdb9,!0x1);if(_0x44c456[_0x400fa7(0x3b9)](_0x3712a3))throw _0x3712a3[_0x400fa7(0x1f2)];if(_0x44c456[_0x400fa7(0x3b9)](_0x4c322c))throw _0x4c322c['error'];_0x37728a[_0x400fa7(0x13f)](_0x3712a3[_0x400fa7(0x17c)][_0x400fa7(0x190)]),_0x21ebf6[_0x400fa7(0x13f)](_0x4c322c[_0x400fa7(0x17c)]['params']),_0x16eab8=_0x3712a3[_0x400fa7(0x1d9)],_0x22327f=_0x4c322c['m1Prime'];}_0x1ea9ec[_0x400fa7(0x246)]({'undoCache':_0x37728a,'redoCache':_0x21ebf6});}[_0x4db1c3(0x311)](_0x4a0078){const _0x591741=_0x4db1c3,{unitID:_0x57904e}=_0x4a0078,_0x1ccc2b=this[_0x591741(0x32f)][_0x591741(0x323)](_0x57904e)[_0x591741(0x172)](_0x2e0d09['DocIMEInputManagerService']),_0x3c376f=_0x1ccc2b[_0x591741(0x315)]();if(_0x3c376f==null)return;const _0x559f06=[{'id':_0x591741(0x2c9),'params':{'unitId':_0x4a0078['unitID'],'actions':null,'textRanges':[_0x3c376f]}}],_0xbcfef5=this[_0x591741(0x372)][_0x591741(0x114)](_0x4a0078,_0x559f06);if(!_0x44c456[_0x591741(0x2ae)](_0xbcfef5))throw _0xbcfef5[_0x591741(0x1f2)];const _0x410ae0=_0xbcfef5[_0x591741(0x17c)][0x0]['params'][_0x591741(0x31f)];Array['isArray'](_0x410ae0)&&_0x410ae0[_0x591741(0x1d3)]&&_0x1ccc2b[_0x591741(0x218)](_0x410ae0[0x0]);}};_0x1bcd8a=_0x56c37d([_0x110b40(0x0,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad[_0x4db1c3(0x35f)])),_0x110b40(0x1,_0x44c456[_0x4db1c3(0x28b)]),_0x110b40(0x2,_0x839618[_0x4db1c3(0x3a3)])],_0x1bcd8a);var _0x3bdbf3=Object[_0x4db1c3(0x2ff)],_0x49a90f=(_0x2c5e50,_0x35a730,_0x28cf57,_0x1b37c3)=>{const _0x784969=_0x4db1c3;for(var _0x20d384=_0x1b37c3>0x1?void 0x0:_0x1b37c3?_0x3bdbf3(_0x35a730,_0x28cf57):_0x35a730,_0x231b36=_0x2c5e50[_0x784969(0x1d3)]-0x1,_0x421ceb;_0x231b36>=0x0;_0x231b36--)(_0x421ceb=_0x2c5e50[_0x231b36])&&(_0x20d384=_0x421ceb(_0x20d384)||_0x20d384);return _0x20d384;},_0x4ff1fa=(_0x5b7132,_0x53acb1)=>(_0x382dd7,_0x3074e4)=>_0x53acb1(_0x382dd7,_0x3074e4,_0x5b7132);let _0x25f93b=class{constructor(_0x3f3058,_0x482557,_0x378f7b){this['_injector']=_0x3f3058,this['_transformService']=_0x482557,this['_docStateChangeManagerService']=_0x378f7b;}[_0x4db1c3(0x21f)](_0xf5488c){const _0x2c5f90=_0x4db1c3;this[_0x2c5f90(0x2cd)](_0xf5488c);}[_0x4db1c3(0x16d)](_0x331b19){const _0x30ea84=_0x4db1c3,{unitID:_0x49ad87}=_0x331b19,{collaboration:_0x21a7c3}=this['_docStateChangeManagerService'][_0x30ea84(0x330)](_0x49ad87);if(_0x21a7c3[_0x30ea84(0x1d3)]===0x0)return _0x331b19;let _0x373ec7=_0x58b3ad[_0x30ea84(0x13e)][_0x30ea84(0x1e9)](_0x331b19[_0x30ea84(0x1eb)][0x0]);for(let _0x5864be=0x0;_0x5864be<_0x21a7c3[_0x30ea84(0x1d3)];_0x5864be++){const _0x4aa5cb={'id':_0x30ea84(0x2c9),'params':{'unitId':_0x21a7c3[_0x5864be][_0x30ea84(0x187)],..._0x21a7c3[_0x5864be][_0x30ea84(0x1d6)]}},_0x598051=this[_0x30ea84(0x372)][_0x30ea84(0x22c)](_0x373ec7,_0x4aa5cb,!0x1);if(_0x44c456[_0x30ea84(0x3b9)](_0x598051))throw _0x598051[_0x30ea84(0x1f2)];_0x373ec7=_0x598051['m1Prime'];}return{..._0x58b3ad['Tools']['deepClone'](_0x331b19),'mutations':[_0x373ec7]};}[_0x4db1c3(0x2cd)](_0x5bb51d){const _0x3e49c4=_0x4db1c3,{unitID:_0x2cb8e7}=_0x5bb51d,{history:_0x53f617,collaboration:_0x3d7ab7}=this[_0x3e49c4(0x11d)]['getStateCache'](_0x2cb8e7);if(_0x53f617[_0x3e49c4(0x1d3)]===0x0&&_0x3d7ab7['length']===0x0)return;const _0x5c3329=[],_0x9bed07=[];let _0x1afb20=_0x58b3ad['Tools'][_0x3e49c4(0x1e9)](_0x5bb51d[_0x3e49c4(0x1eb)][0x0]),_0x4ffb9b=_0x58b3ad[_0x3e49c4(0x13e)]['deepClone'](_0x5bb51d[_0x3e49c4(0x1eb)][0x0]);for(let _0x23c657=_0x53f617[_0x3e49c4(0x1d3)]-0x1;_0x23c657>=0x0;_0x23c657--){const _0x18fc02={'id':_0x3e49c4(0x2c9),'params':{'unitId':_0x53f617[_0x23c657]['unitId'],..._0x53f617[_0x23c657][_0x3e49c4(0x162)]}},_0x239240={'id':_0x3e49c4(0x2c9),'params':{'unitId':_0x53f617[_0x23c657][_0x3e49c4(0x187)],..._0x53f617[_0x23c657][_0x3e49c4(0x1d6)]}},_0x53e69b=this['_transformService'][_0x3e49c4(0x22c)](_0x1afb20,_0x18fc02,!0x1),_0x3fcf50=this[_0x3e49c4(0x372)][_0x3e49c4(0x22c)](_0x4ffb9b,_0x239240,!0x1);if(_0x44c456['isTransformMutationFailure'](_0x53e69b))throw _0x53e69b[_0x3e49c4(0x1f2)];if(_0x44c456[_0x3e49c4(0x3b9)](_0x3fcf50))throw _0x3fcf50['error'];_0x5c3329['unshift']({..._0x53f617[_0x23c657],'undoState':_0x53e69b['m2Prime'][_0x3e49c4(0x190)],'redoState':_0x3fcf50[_0x3e49c4(0x17c)]['params']}),_0x1afb20=_0x53e69b[_0x3e49c4(0x1d9)],_0x4ffb9b=_0x3fcf50[_0x3e49c4(0x1d9)];}_0x1afb20=_0x58b3ad[_0x3e49c4(0x13e)][_0x3e49c4(0x1e9)](_0x5bb51d[_0x3e49c4(0x1eb)][0x0]),_0x4ffb9b=_0x58b3ad[_0x3e49c4(0x13e)][_0x3e49c4(0x1e9)](_0x5bb51d[_0x3e49c4(0x1eb)][0x0]);for(let _0x5795c1=_0x3d7ab7[_0x3e49c4(0x1d3)]-0x1;_0x5795c1>=0x0;_0x5795c1--){const _0x4d0265={'id':_0x3e49c4(0x2c9),'params':{'unitId':_0x3d7ab7[_0x5795c1][_0x3e49c4(0x187)],..._0x3d7ab7[_0x5795c1][_0x3e49c4(0x162)]}},_0x35852f={'id':_0x3e49c4(0x2c9),'params':{'unitId':_0x3d7ab7[_0x5795c1][_0x3e49c4(0x187)],..._0x3d7ab7[_0x5795c1][_0x3e49c4(0x1d6)]}},_0x1058a9=this['_transformService'][_0x3e49c4(0x22c)](_0x1afb20,_0x4d0265,!0x1),_0x2c9c49=this[_0x3e49c4(0x372)]['transformMutation'](_0x4ffb9b,_0x35852f,!0x1);if(_0x44c456['isTransformMutationFailure'](_0x1058a9))throw _0x1058a9[_0x3e49c4(0x1f2)];if(_0x44c456[_0x3e49c4(0x3b9)](_0x2c9c49))throw _0x2c9c49['error'];_0x9bed07['unshift']({..._0x3d7ab7[_0x5795c1],'undoState':_0x1058a9['m2Prime'][_0x3e49c4(0x190)],'redoState':_0x2c9c49['m2Prime']['params']}),_0x1afb20=_0x1058a9[_0x3e49c4(0x1d9)],_0x4ffb9b=_0x2c9c49[_0x3e49c4(0x1d9)];}this[_0x3e49c4(0x11d)]['setStateCache'](_0x2cb8e7,{'history':_0x5c3329,'collaboration':_0x9bed07});}};_0x25f93b=_0x49a90f([_0x4ff1fa(0x0,_0x58b3ad['Inject'](_0x58b3ad[_0x4db1c3(0x35f)])),_0x4ff1fa(0x1,_0x44c456['ITransformService']),_0x4ff1fa(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x2e0d09[_0x4db1c3(0x365)]))],_0x25f93b);var _0x1d900c=Object['getOwnPropertyDescriptor'],_0x140f59=(_0x11ba02,_0x29fb68,_0x2780c9,_0x2554c6)=>{const _0x40f100=_0x4db1c3;for(var _0x4abe35=_0x2554c6>0x1?void 0x0:_0x2554c6?_0x1d900c(_0x29fb68,_0x2780c9):_0x29fb68,_0xb4d78c=_0x11ba02[_0x40f100(0x1d3)]-0x1,_0x4e2627;_0xb4d78c>=0x0;_0xb4d78c--)(_0x4e2627=_0x11ba02[_0xb4d78c])&&(_0x4abe35=_0x4e2627(_0x4abe35)||_0x4abe35);return _0x4abe35;},_0x58703e=(_0x3969f3,_0x3cb846)=>(_0x44c5f9,_0xb2f465)=>_0x3cb846(_0x44c5f9,_0xb2f465,_0x3969f3);let _0xfa4a5c=class{constructor(_0x1ca8ce,_0x391bdb){const _0x2c8ca3=_0x4db1c3;this[_0x2c8ca3(0x25e)]=_0x1ca8ce,this[_0x2c8ca3(0x372)]=_0x391bdb;}[_0x4db1c3(0x2e3)](_0x3769ff){const _0x4881c6=_0x4db1c3;var _0x1b5f51;const _0x1b2135=this['_injector']['get'](_0x54ca13[_0x4881c6(0x1cf)]),_0xef81d2=(_0x1b5f51=_0x1b2135['getDocRanges']())!=null?_0x1b5f51:[];if(_0xef81d2[_0x4881c6(0x1d3)]===0x0)return;const _0x21a8ea=_0x3769ff[_0x4881c6(0x38e)],_0x3bc13f=[{'id':_0x4881c6(0x2c9),'params':{'unitId':_0x21a8ea,'actions':null,'textRanges':_0xef81d2}}],_0x3caeac=this[_0x4881c6(0x372)][_0x4881c6(0x114)](_0x3769ff,_0x3bc13f);if(!_0x44c456[_0x4881c6(0x2ae)](_0x3caeac))throw _0x3caeac['error'];const _0x4d901f=_0x3caeac[_0x4881c6(0x17c)][0x0][_0x4881c6(0x190)][_0x4881c6(0x31f)];Array[_0x4881c6(0x1fc)](_0x4d901f)&&_0x4d901f['length']&&_0x1b2135['replaceDocRanges'](_0x4d901f,{'unitId':_0x21a8ea,'subUnitId':_0x21a8ea},!0x1);}};_0xfa4a5c=_0x140f59([_0x58703e(0x0,_0x58b3ad['Inject'](_0x58b3ad['Injector'])),_0x58703e(0x1,_0x44c456['ITransformService'])],_0xfa4a5c);var _0x545744=Object[_0x4db1c3(0x2ff)],_0x405458=(_0x2aca30,_0x366182,_0xcedbf3,_0x3212af)=>{const _0x3f1464=_0x4db1c3;for(var _0x45e9f5=_0x3212af>0x1?void 0x0:_0x3212af?_0x545744(_0x366182,_0xcedbf3):_0x366182,_0x34f869=_0x2aca30[_0x3f1464(0x1d3)]-0x1,_0x52b2d2;_0x34f869>=0x0;_0x34f869--)(_0x52b2d2=_0x2aca30[_0x34f869])&&(_0x45e9f5=_0x52b2d2(_0x45e9f5)||_0x45e9f5);return _0x45e9f5;},_0x1415b1=(_0x2d7931,_0x2dde6e)=>(_0x21124d,_0x1b4a8a)=>_0x2dde6e(_0x21124d,_0x1b4a8a,_0x2d7931);let _0x5a7032=class extends _0x58b3ad['Disposable']{constructor(_0xdfdc59,_0x272439,_0x4ee4da,_0xd9b6b9,_0x4388c7,_0x1216ec,_0x241984,_0x401f40){const _0x22b08a=_0x4db1c3;super(),_0x1fc77e(this,_0x22b08a(0x254),new _0x6dabd3[(_0x22b08a(0x25f))](_0x2023db['CollaborationStatus']['NOT_COLLAB'])),(this[_0x22b08a(0x11d)]=_0xdfdc59,this['_collaborationController']=_0x272439,this[_0x22b08a(0x180)]=_0x4ee4da,this[_0x22b08a(0x26d)]=_0xd9b6b9,this[_0x22b08a(0x306)]=_0x4388c7,this[_0x22b08a(0x12c)]=_0x1216ec,this[_0x22b08a(0x394)]=_0x241984,this['_localeService']=_0x401f40,this[_0x22b08a(0x368)]());}[_0x4db1c3(0x368)](){const _0x573acf=_0x4db1c3;this[_0x573acf(0x212)](this['_collaborationController'][_0x573acf(0x141)][_0x573acf(0x39d)](_0x106b73=>{const _0x3f2c26=_0x573acf,_0x1371d6=this[_0x3f2c26(0x11d)]['docStateChange$'][_0x3f2c26(0x39d)](_0xe15a22=>{const _0x404bdb=_0x3f2c26;if(_0xe15a22==null)return;const {unitId:_0x39e43c,redoState:_0x25b3fc,commandId:_0x51e238}=_0xe15a22;if(_0x39e43c!==_0x106b73['unitID'])return;const _0x182417={'id':_0x51e238,'type':_0x58b3ad['CommandType'][_0x404bdb(0x21b)],'params':{'unitId':_0x39e43c,'actions':_0x25b3fc[_0x404bdb(0x321)],'textRanges':null}};_0x106b73[_0x404bdb(0x179)](_0x182417);});if(_0x106b73['disposeWithMe'](_0x1371d6),_0x106b73 instanceof _0x2023db[_0x3f2c26(0x1c6)]){const _0x3d56a2={'onTransformIME':_0x123a9d=>this[_0x3f2c26(0x180)][_0x3f2c26(0x153)](_0x123a9d),'onTransformState':_0x45c646=>this[_0x3f2c26(0x26d)][_0x3f2c26(0x21f)](_0x45c646),'onTransformSelections':_0x51890b=>this[_0x3f2c26(0x306)][_0x3f2c26(0x2e3)](_0x51890b),'onSyncEditingCollabCursor':_0x28bc14=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x28bc14),'onTransformRemoteChangesetByIMECache':_0x455ea0=>this[_0x3f2c26(0x180)][_0x3f2c26(0x16d)](_0x455ea0),'onTransformRemoteChangesetByStateCache':_0x575074=>this[_0x3f2c26(0x26d)]['transformRemoteChangeset'](_0x575074)};_0x106b73['addHandlerCallback'](_0x3d56a2);}}));}};_0x5a7032=_0x405458([_0x1415b1(0x0,_0x58b3ad[_0x4db1c3(0x257)](_0x2e0d09['DocStateChangeManagerService'])),_0x1415b1(0x1,_0x58b3ad[_0x4db1c3(0x257)](_0x2023db[_0x4db1c3(0x2f3)])),_0x1415b1(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x1bcd8a)),_0x1415b1(0x3,_0x58b3ad[_0x4db1c3(0x257)](_0x25f93b)),_0x1415b1(0x4,_0x58b3ad[_0x4db1c3(0x257)](_0xfa4a5c)),_0x1415b1(0x5,_0x58b3ad[_0x4db1c3(0x257)](_0x5ba099)),_0x1415b1(0x6,_0x1a2ea0[_0x4db1c3(0x239)]),_0x1415b1(0x7,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad[_0x4db1c3(0x1ad)]))],_0x5a7032);var _0x4ca036=Object[_0x4db1c3(0x2ff)],_0xc66d06=(_0x32afce,_0xe04f0b,_0x25e4d4,_0x402ead)=>{const _0x1b97cb=_0x4db1c3;for(var _0xb6a961=_0x402ead>0x1?void 0x0:_0x402ead?_0x4ca036(_0xe04f0b,_0x25e4d4):_0xe04f0b,_0x40ea70=_0x32afce[_0x1b97cb(0x1d3)]-0x1,_0x33f75e;_0x40ea70>=0x0;_0x40ea70--)(_0x33f75e=_0x32afce[_0x40ea70])&&(_0xb6a961=_0x33f75e(_0xb6a961)||_0xb6a961);return _0xb6a961;},_0x1390ba=(_0x25ac3b,_0x3b391a)=>(_0x5caa35,_0x5e1979)=>_0x3b391a(_0x5caa35,_0x5e1979,_0x25ac3b);let _0x1e2bc7=class extends _0x58b3ad[_0x4db1c3(0x33d)]{constructor(_0x290cad,_0x4d5960,_0x3e0175){const _0x45f761=_0x4db1c3;super(),_0x1fc77e(this,'_cachedData',new Map()),_0x1fc77e(this,_0x45f761(0x24f),new Map()),_0x1fc77e(this,'_disabled',!0x1),(this['_configService']=_0x290cad,this[_0x45f761(0x312)]=_0x4d5960,this[_0x45f761(0x155)]=_0x3e0175);}['disableLocalCache'](){const _0x501287=_0x4db1c3;this[_0x501287(0x3a7)]=!0x0;}[_0x4db1c3(0x1f9)](){const _0x394a9a=_0x4db1c3;this[_0x394a9a(0x3a7)]=!0x1;}get[_0x4db1c3(0x24a)](){const _0x4ee889=_0x4db1c3;return this[_0x4ee889(0x24f)];}[_0x4db1c3(0x1c3)](){const _0x353fb2=_0x4db1c3;this[_0x353fb2(0x145)]()['then'](()=>super[_0x353fb2(0x1c3)]());}async[_0x4db1c3(0x37a)](_0x5d3464){const _0x9bb75d=_0x4db1c3;return this[_0x9bb75d(0x3a7)]?null:this[_0x9bb75d(0x312)][_0x9bb75d(0x331)](_0x2023db[_0x9bb75d(0x203)](_0x5d3464));}async[_0x4db1c3(0x241)](_0x1c7abd,_0x31abdc){const _0x553b81=_0x4db1c3;return!!this[_0x553b81(0x312)][_0x553b81(0x171)](_0x1c7abd,_0x31abdc);}[_0x4db1c3(0x35d)](_0x1df0b1,_0x262871,_0x5e6afc,_0x285574){const _0xe61e61=_0x4db1c3,_0x4b297a=this['_revisionService']['getCurrentRevOfUnit'](_0x1df0b1);this[_0xe61e61(0x363)][_0xe61e61(0x3b3)](_0x1df0b1,{'unitID':_0x1df0b1,'type':_0x262871,'awaitingChangeset':_0x5e6afc,'mutations':_0x285574,'rev':_0x4b297a}),this[_0xe61e61(0x24f)][_0xe61e61(0x35a)](_0x1df0b1)||this[_0xe61e61(0x135)](_0x1df0b1);}[_0x4db1c3(0x135)](_0x148e35){const _0xd12841=_0x4db1c3,_0x8606e5=this[_0xd12841(0x169)]();_0x8606e5===0x0?this[_0xd12841(0x247)](_0x148e35):this[_0xd12841(0x24f)][_0xd12841(0x3b3)](_0x148e35,setTimeout(()=>this[_0xd12841(0x247)](_0x148e35),_0x8606e5));}['_getSaveTimeout'](){const _0x3a5c23=_0x4db1c3;var _0xbb194c;return(_0xbb194c=this[_0x3a5c23(0x147)]['getConfig'](_0x2023db['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xbb194c:_0x2023db[_0x3a5c23(0x2f0)];}['_saveCache'](_0x39e911){const _0x1c8d30=_0x4db1c3,_0x504a93=this[_0x1c8d30(0x24f)][_0x1c8d30(0x2c5)](_0x39e911);return _0x504a93!==void 0x0&&window[_0x1c8d30(0x3a5)](_0x504a93),this[_0x1c8d30(0x312)][_0x1c8d30(0x171)](_0x2023db['getLocalCacheKey'](_0x39e911),this[_0x1c8d30(0x363)][_0x1c8d30(0x2c5)](_0x39e911))[_0x1c8d30(0x2d5)](()=>this[_0x1c8d30(0x24f)][_0x1c8d30(0x309)](_0x39e911));}async[_0x4db1c3(0x145)](){const _0x574ce7=_0x4db1c3,_0x824e8b=[];this[_0x574ce7(0x24f)][_0x574ce7(0x341)]((_0x5b5688,_0x432d59)=>{const _0x185d86=_0x574ce7;window[_0x185d86(0x3a5)](_0x5b5688),_0x824e8b[_0x185d86(0x395)](this['_saveCache'](_0x432d59)[_0x185d86(0x2d5)](()=>{const _0x7d5abc=_0x185d86;this[_0x7d5abc(0x24f)][_0x7d5abc(0x309)](_0x432d59);}));}),await Promise[_0x574ce7(0x357)](_0x824e8b);}};_0x1e2bc7=_0xc66d06([_0x1390ba(0x0,_0x58b3ad['IConfigService']),_0x1390ba(0x1,_0x58b3ad['ILocalStorageService']),_0x1390ba(0x2,_0x58b3ad['Inject'](_0x44c456[_0x4db1c3(0x11c)]))],_0x1e2bc7);class _0x253271 extends _0x58b3ad[_0x4db1c3(0x25a)]{constructor(){const _0x528f47=_0x4db1c3;super(),_0x1fc77e(this,_0x528f47(0x1a1)),this[_0x528f47(0x1a1)]=_0x6dabd3[_0x528f47(0x27b)](window,_0x528f47(0x354))[_0x528f47(0x349)](_0x6dabd3[_0x528f47(0x2e7)](this[_0x528f47(0x125)]),_0x6dabd3[_0x528f47(0x292)](0x1),_0x6dabd3[_0x528f47(0x2a3)](void 0x0));}[_0x4db1c3(0x26e)](_0x49f110,_0x3f7357,_0x297029=!0x1){const _0x264713=_0x4db1c3,_0x446bfa=new URL(window[_0x264713(0x26f)]['href']);_0x446bfa['searchParams'][_0x264713(0x3b3)](_0x49f110,_0x3f7357),_0x297029?window['history'][_0x264713(0x2ab)]('','',_0x446bfa[_0x264713(0x185)]()):window['history'][_0x264713(0x2cc)]('','',_0x446bfa[_0x264713(0x185)]());}[_0x4db1c3(0x2f6)](_0x5410fe,_0x3ee81f=!0x1){const _0x15ef3c=_0x4db1c3,_0x4a9fef=new URL(window[_0x15ef3c(0x26f)][_0x15ef3c(0x1d5)]);_0x4a9fef['searchParams'][_0x15ef3c(0x309)](_0x5410fe),_0x3ee81f?window[_0x15ef3c(0x1b8)]['replaceState']('','',_0x4a9fef['toString']()):window[_0x15ef3c(0x1b8)][_0x15ef3c(0x2cc)]('','',_0x4a9fef[_0x15ef3c(0x185)]());}[_0x4db1c3(0x2a7)](_0x44b334){const _0x3d7d89=_0x4db1c3;var _0x211876;return(_0x211876=new URL(window['location'][_0x3d7d89(0x1d5)])[_0x3d7d89(0x2ac)][_0x3d7d89(0x2c5)](_0x44b334))!=null?_0x211876:void 0x0;}}var _0x23fbaf=Object[_0x4db1c3(0x18c)],_0xacffd6=Object[_0x4db1c3(0x2ff)],_0x3eb885=(_0xb3ce3,_0x24fd2f,_0x10ce97)=>_0x24fd2f in _0xb3ce3?_0x23fbaf(_0xb3ce3,_0x24fd2f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10ce97}):_0xb3ce3[_0x24fd2f]=_0x10ce97,_0x321123=(_0x216465,_0x1272f4,_0x571938,_0x144bf5)=>{const _0x31d5c4=_0x4db1c3;for(var _0x8a9c54=_0x144bf5>0x1?void 0x0:_0x144bf5?_0xacffd6(_0x1272f4,_0x571938):_0x1272f4,_0x4b3656=_0x216465[_0x31d5c4(0x1d3)]-0x1,_0x43af5d;_0x4b3656>=0x0;_0x4b3656--)(_0x43af5d=_0x216465[_0x4b3656])&&(_0x8a9c54=_0x43af5d(_0x8a9c54)||_0x8a9c54);return _0x8a9c54;},_0x55b6ad=(_0x1106b5,_0x1cefca)=>(_0x41fb29,_0x52d8ea)=>_0x1cefca(_0x41fb29,_0x52d8ea,_0x1106b5),_0xf8aeec=(_0x2ab365,_0x30dca6,_0x49438d)=>_0x3eb885(_0x2ab365,_0x30dca6+'',_0x49438d);const _0x4e8c98='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x58baf5[_0x4db1c3(0x1b2)]=class extends _0x58b3ad[_0x4db1c3(0x34c)]{constructor(_0x3bedc1=_0x5ce969,_0x5cad64,_0x38802f,_0x4f6b5f){const _0x3d115c=_0x4db1c3;super(),this[_0x3d115c(0x3a4)]=_0x3bedc1,this[_0x3d115c(0x32f)]=_0x5cad64,this[_0x3d115c(0x25e)]=_0x38802f,this[_0x3d115c(0x147)]=_0x4f6b5f;const {..._0x587ac0}=_0x58b3ad[_0x3d115c(0x28a)]({},_0x5ce969,this[_0x3d115c(0x3a4)]);this[_0x3d115c(0x147)][_0x3d115c(0x35e)](_0x121401,_0x587ac0);}['onStarting'](){const _0x4efb3b=_0x4db1c3;this[_0x4efb3b(0x137)](),this[_0x4efb3b(0x326)]();}[_0x4db1c3(0x36e)](){const _0xcd3aec=_0x4db1c3;this[_0xcd3aec(0x3b6)]();}[_0x4db1c3(0x137)](){const _0x3b7efa=_0x4db1c3;var _0x51ccc0;const _0x348c19=[[_0x3b2cd0],[_0xfa4a5c],[_0x1bcd8a],[_0x25f93b],[_0x5ba099],[_0x5b0fb3,{'useClass':_0x253271}],[_0x22d557[_0x3b7efa(0x163)],{'useClass':_0x22d557[_0x3b7efa(0x1ba)]}],[_0x2023db['ILocalCacheService'],{'useClass':_0x1e2bc7}],[_0x58baf5['DesktopCollaborationStatusDisplayController']],[_0x5a7032],[_0xf7f3cb],[_0x37f18b],[_0x10030f],[_0x58baf5['CollaborationDataLoaderController']]];_0x58b3ad[_0x3b7efa(0x120)](this['_injector'],_0x58b3ad[_0x3b7efa(0x1ae)](_0x348c19,(_0x51ccc0=this[_0x3b7efa(0x3a4)])==null?void 0x0:_0x51ccc0['override']));}[_0x4db1c3(0x3b6)](){const _0xdf7baf=_0x4db1c3;this[_0xdf7baf(0x212)](this[_0xdf7baf(0x32f)][_0xdf7baf(0x228)](_0x58b3ad[_0xdf7baf(0x382)]['UNIVER_DOC'],[_0x250bc8])),this[_0xdf7baf(0x212)](this[_0xdf7baf(0x32f)][_0xdf7baf(0x228)](_0x58b3ad[_0xdf7baf(0x382)][_0xdf7baf(0x33c)],[_0x82a8ef]));}[_0x4db1c3(0x326)](){const _0x2a3cdb=_0x4db1c3;_0x58b3ad[_0x2a3cdb(0x1df)](this[_0x2a3cdb(0x25e)],[[_0x37f18b],[_0x58baf5[_0x2a3cdb(0x3b4)]],[_0x5a7032],[_0xf7f3cb],[_0x58baf5[_0x2a3cdb(0x14a)]]]);}},_0xf8aeec(_0x58baf5[_0x4db1c3(0x1b2)],'pluginName',_0x4e8c98),_0x58baf5[_0x4db1c3(0x1b2)]=_0x321123([_0x58b3ad['DependentOn'](_0x2023db[_0x4db1c3(0x225)]),_0x55b6ad(0x1,_0x839618[_0x4db1c3(0x3a3)]),_0x55b6ad(0x2,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad[_0x4db1c3(0x35f)])),_0x55b6ad(0x3,_0x58b3ad['IConfigService'])],_0x58baf5[_0x4db1c3(0x1b2)]);var _0x28ec92=Object['getOwnPropertyDescriptor'],_0xca9509=(_0x2abcd9,_0x37980e,_0x35521c,_0x4b3ed7)=>{const _0x219842=_0x4db1c3;for(var _0x3baebd=_0x4b3ed7>0x1?void 0x0:_0x4b3ed7?_0x28ec92(_0x37980e,_0x35521c):_0x37980e,_0x31aad7=_0x2abcd9[_0x219842(0x1d3)]-0x1,_0x23fe89;_0x31aad7>=0x0;_0x31aad7--)(_0x23fe89=_0x2abcd9[_0x31aad7])&&(_0x3baebd=_0x23fe89(_0x3baebd)||_0x3baebd);return _0x3baebd;},_0x40a579=(_0x4df6fa,_0x532efd)=>(_0x1a5acc,_0x20b18a)=>_0x532efd(_0x1a5acc,_0x20b18a,_0x4df6fa);_0x58baf5[_0x4db1c3(0x259)]=class extends _0x2023db[_0x4db1c3(0x369)]{constructor(_0x2c48fa,_0x4d57c9,_0x34899e,_0x317705,_0x222ecd){super(_0x2c48fa,_0x4d57c9,_0x34899e,_0x317705,_0x222ecd);}async[_0x4db1c3(0x283)](_0x355bef){const _0x40ef92=_0x4db1c3,_0x2ddaf7=await this[_0x40ef92(0x3b5)](),_0x2263ea=this['_createSocketURL'](_0x355bef,_0x2ddaf7);return this['_doCreateSocket'](_0x2263ea);}[_0x4db1c3(0x2d7)](_0x5ad2cd,_0x18f14a){const _0x217376=_0x4db1c3,_0x21e464=typeof window>'u'?new URL(_0x5ad2cd):new URL(_0x5ad2cd,window[_0x217376(0x26f)][_0x217376(0x39b)]);_0x21e464[_0x217376(0x2ac)][_0x217376(0x3b3)](_0x217376(0x2b0),_0x18f14a);const _0x3ac599=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x3ac599[_0x217376(0x2c5)](_0x217376(0x385))&&_0x21e464[_0x217376(0x2ac)][_0x217376(0x3b3)]('runId',_0x3ac599[_0x217376(0x2c5)](_0x217376(0x385))),_0x21e464[_0x217376(0x185)]();}async[_0x4db1c3(0x3b5)](){const _0x384d13=_0x4db1c3;var _0xf82a5c,_0x38e292,_0x166d96;const _0xc22714=this[_0x384d13(0x147)][_0x384d13(0x16e)](_0x2023db[_0x384d13(0x3b8)]),_0x535e7e=(_0xf82a5c=_0xc22714==null?void 0x0:_0xc22714[_0x384d13(0x3b0)])!=null?_0xf82a5c:_0x2023db[_0x384d13(0x175)];return(_0x166d96=(_0x38e292=(await this[_0x384d13(0x2f5)]['get'](_0x535e7e,{'headers':{'Content-Type':_0x384d13(0x12a)}}))[_0x384d13(0x12e)])==null?void 0x0:_0x38e292[_0x384d13(0x38d)])!=null?_0x166d96:'';}},_0x58baf5[_0x4db1c3(0x259)]=_0xca9509([_0x40a579(0x0,_0x58b3ad[_0x4db1c3(0x257)](_0x58b3ad[_0x4db1c3(0x35f)])),_0x40a579(0x1,_0x58b3ad[_0x4db1c3(0x257)](_0x22d557[_0x4db1c3(0x21a)])),_0x40a579(0x2,_0x58b3ad[_0x4db1c3(0x348)]),_0x40a579(0x3,_0x58b3ad[_0x4db1c3(0x128)]),_0x40a579(0x4,_0x44c456['ISnapshotServerService'])],_0x58baf5[_0x4db1c3(0x259)]);const _0x518857=0x7530,_0x1fdee7=_0x4db1c3(0x2b2);class _0x395c4c extends _0x58b3ad[_0x4db1c3(0x33d)]{constructor(){const _0x24f3b8=_0x4db1c3;super(),_0x1fc77e(this,_0x24f3b8(0x268),_0x58b3ad[_0x24f3b8(0x308)]()),_0x1fc77e(this,'_selfUnitIDs',new Set()),_0x1fc77e(this,_0x24f3b8(0x269),new Map()),_0x1fc77e(this,_0x24f3b8(0x2ed),null),_0x1fc77e(this,_0x24f3b8(0x32d),new Map()),_0x1fc77e(this,'_unitStatus',new Map()),this[_0x24f3b8(0x173)]();}[_0x4db1c3(0x1c3)](){const _0x244041=_0x4db1c3;super['dispose'](),this[_0x244041(0x32d)][_0x244041(0x341)]((_0x4fdd74,_0x2cb42c)=>this[_0x244041(0x2fe)](_0x2cb42c)),this['_heartbeatTimer']&&window[_0x244041(0x271)](this[_0x244041(0x2ed)]);}[_0x4db1c3(0x199)](_0xc3b67d){const _0x413b23=_0x4db1c3;return this[_0x413b23(0x2b8)](_0xc3b67d)[_0x413b23(0x349)](_0x6dabd3['distinctUntilChanged']());}[_0x4db1c3(0x19d)](_0x2722aa){const _0x5777a2=_0x4db1c3;this[_0x5777a2(0x280)][_0x5777a2(0x364)]===0x0&&this[_0x5777a2(0x20e)](),this[_0x5777a2(0x280)][_0x5777a2(0x134)](_0x2722aa),this[_0x5777a2(0x223)]({'type':0x0,'memberID':this[_0x5777a2(0x268)],'unitIDs':[_0x2722aa],'isForwarded':!0x1});}['disposeUnit'](_0x550106){const _0x1b4d98=_0x4db1c3;this[_0x1b4d98(0x280)][_0x1b4d98(0x309)](_0x550106),this[_0x1b4d98(0x280)][_0x1b4d98(0x364)]===0x0&&this['_heartbeatTimer']&&window[_0x1b4d98(0x271)](this[_0x1b4d98(0x2ed)]);}[_0x4db1c3(0x173)](){const _0x1c32b4=_0x4db1c3;this['disposeWithMe'](_0x58b3ad[_0x1c32b4(0x174)](_0x6dabd3['fromEvent'](window,_0x1c32b4(0x1ec))[_0x1c32b4(0x39d)](_0x1042a8=>{const _0x116482=_0x1c32b4;if(_0x1042a8['key']!==_0x1fdee7||!_0x1042a8[_0x116482(0x381)])return;const _0x22babb=JSON[_0x116482(0x146)](_0x1042a8[_0x116482(0x381)]);this[_0x116482(0x361)](_0x22babb);}))),window['addEventListener'](_0x1c32b4(0x19e),()=>this['_send']({'type':0x1,'memberID':this[_0x1c32b4(0x268)],'unitIDs':Array[_0x1c32b4(0x2e0)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x2c5e7e){const _0x8297b8=_0x4db1c3;switch(_0x2c5e7e['type']){case 0x0:this['_handleJoinEvent'](_0x2c5e7e);break;case 0x1:this[_0x8297b8(0x1be)](_0x2c5e7e);break;case 0x2:this[_0x8297b8(0x305)](_0x2c5e7e);break;}}[_0x4db1c3(0x23a)](_0x31e332){const _0x7dc35c=_0x4db1c3,{unitIDs:_0x661f66,memberID:_0x3276e5,isForwarded:_0x21f8c6}=_0x31e332;_0x661f66[_0x7dc35c(0x341)](_0x1b1f6c=>{const _0x582836=_0x7dc35c;if(!_0x21f8c6&&this[_0x582836(0x269)][_0x582836(0x35a)](_0x1b1f6c)&&this[_0x582836(0x2b8)](_0x1b1f6c)[_0x582836(0x23b)](_0x2023db[_0x582836(0x1b7)][_0x582836(0x23d)]),!this[_0x582836(0x269)][_0x582836(0x35a)](_0x1b1f6c)||!this[_0x582836(0x269)]['get'](_0x1b1f6c)[_0x582836(0x35a)](_0x3276e5)){const _0x4691e6=this['_unitOnClients'][_0x582836(0x2c5)](_0x1b1f6c)||new Set();_0x4691e6['add'](_0x3276e5),this[_0x582836(0x269)]['set'](_0x1b1f6c,_0x4691e6),this[_0x582836(0x34f)](_0x3276e5);}}),_0x21f8c6||this[_0x7dc35c(0x223)]({'type':0x0,'memberID':this[_0x7dc35c(0x268)],'unitIDs':[...this[_0x7dc35c(0x280)]],'isForwarded':!0x0});}[_0x4db1c3(0x34f)](_0x5093fe){const _0x32b68f=_0x4db1c3;this[_0x32b68f(0x2fe)](_0x5093fe);const _0x2f8887=window[_0x32b68f(0x116)](()=>{const _0x5041d5=_0x32b68f;this['_unitOnClients'][_0x5041d5(0x341)](_0x23030c=>{const _0x28bbd9=_0x5041d5;_0x23030c[_0x28bbd9(0x309)](_0x5093fe);});},_0x518857*0x2);this[_0x32b68f(0x32d)][_0x32b68f(0x3b3)](_0x5093fe,_0x2f8887);}[_0x4db1c3(0x2fe)](_0x21e13c){const _0x201959=_0x4db1c3;if(this[_0x201959(0x32d)][_0x201959(0x35a)](_0x21e13c)){const _0x136cd9=this[_0x201959(0x32d)][_0x201959(0x2c5)](_0x21e13c);_0x136cd9&&window[_0x201959(0x3a5)](_0x136cd9),this[_0x201959(0x32d)][_0x201959(0x3b3)](_0x21e13c,null);}}[_0x4db1c3(0x1be)](_0x3ed2b6){const _0x253628=_0x4db1c3,{memberID:_0x5a5aa8,unitIDs:_0x55e65d}=_0x3ed2b6;_0x55e65d[_0x253628(0x341)](_0x1be258=>{const _0x3b97cf=_0x253628;var _0x8ae45c;const _0x232daa=this[_0x3b97cf(0x269)][_0x3b97cf(0x2c5)](_0x1be258);_0x232daa&&(_0x232daa[_0x3b97cf(0x309)](_0x5a5aa8),(_0x8ae45c=this[_0x3b97cf(0x2b8)](_0x1be258))==null||_0x8ae45c['next'](_0x232daa[_0x3b97cf(0x364)]===0x0?_0x2023db['UnitStatus'][_0x3b97cf(0x133)]:_0x2023db[_0x3b97cf(0x1b7)][_0x3b97cf(0x23d)]));}),this[_0x253628(0x2fe)](_0x5a5aa8);}[_0x4db1c3(0x305)](_0x49055a){const _0x2ea774=_0x4db1c3;this['_scheduleClearOtherTimer'](_0x49055a[_0x2ea774(0x2f8)]);}['_send'](_0x5a6a44){const _0xd3b650=_0x4db1c3;localStorage[_0xd3b650(0x171)](_0x1fdee7,JSON['stringify'](_0x5a6a44));}[_0x4db1c3(0x20e)](){const _0x5840ca=_0x4db1c3;this[_0x5840ca(0x2ed)]=window[_0x5840ca(0x131)](()=>{const _0x4027ab=_0x5840ca;this[_0x4027ab(0x223)]({'type':0x2,'memberID':this[_0x4027ab(0x268)]});},_0x518857);}['_ensureSubject'](_0x476a54){const _0xa35928=_0x4db1c3;return this[_0xa35928(0x2b5)][_0xa35928(0x35a)](_0x476a54)||this[_0xa35928(0x2b5)][_0xa35928(0x3b3)](_0x476a54,new _0x6dabd3['BehaviorSubject'](_0x2023db[_0xa35928(0x1b7)][_0xa35928(0x133)])),this[_0xa35928(0x2b5)]['get'](_0x476a54);}}var _0x45bb59=(_0x33e952=>(_0x33e952[_0x33e952[_0x4db1c3(0x19c)]=0x0]=_0x4db1c3(0x19c),_0x33e952[_0x33e952['OK']=0x1]='OK',_0x33e952[_0x33e952[_0x4db1c3(0x1fa)]=0x2]=_0x4db1c3(0x1fa),_0x33e952[_0x33e952[_0x4db1c3(0x13b)]=0x3]=_0x4db1c3(0x13b),_0x33e952[_0x33e952['NOT_FOUND']=0x4]='NOT_FOUND',_0x33e952[_0x33e952[_0x4db1c3(0x1d7)]=0x5]='UNAUTHENTICATED',_0x33e952[_0x33e952[_0x4db1c3(0x221)]=0x6]='ALREADY_EXISTS',_0x33e952[_0x33e952[_0x4db1c3(0x31e)]=0x7]=_0x4db1c3(0x31e),_0x33e952[_0x33e952[_0x4db1c3(0x18f)]=0x8]=_0x4db1c3(0x18f),_0x33e952[_0x33e952['COMPLETION_FINISHED']=0x9]=_0x4db1c3(0x177),_0x33e952[_0x33e952['LOGIN_FAILED']=0xa]=_0x4db1c3(0x2aa),_0x33e952[_0x33e952[_0x4db1c3(0x34a)]=0x1389]=_0x4db1c3(0x34a),_0x33e952[_0x33e952[_0x4db1c3(0x288)]=0x1771]=_0x4db1c3(0x288),_0x33e952[_0x33e952['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4db1c3(0x1f6),_0x33e952[_0x33e952['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x33e952[_0x33e952['APPLY_REJECT']=0x1b59]=_0x4db1c3(0x27e),_0x33e952[_0x33e952[_0x4db1c3(0x209)]=0x1b5a]=_0x4db1c3(0x209),_0x33e952[_0x33e952[_0x4db1c3(0x129)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x33e952[_0x33e952[_0x4db1c3(0x1e5)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x33e952[_0x33e952[_0x4db1c3(0x39c)]=0x1b5d]=_0x4db1c3(0x39c),_0x33e952[_0x33e952[_0x4db1c3(0x291)]=0x1f41]=_0x4db1c3(0x291),_0x33e952[_0x33e952[_0x4db1c3(0x376)]=0x2329]=_0x4db1c3(0x376),_0x33e952[_0x33e952['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x33e952[_0x33e952['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4db1c3(0x281),_0x33e952[_0x33e952['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4db1c3(0x1f0),_0x33e952[_0x33e952[_0x4db1c3(0x2ca)]=0x232d]=_0x4db1c3(0x2ca),_0x33e952[_0x33e952['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4db1c3(0x1f8),_0x33e952[_0x33e952[_0x4db1c3(0x294)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x33e952[_0x33e952[_0x4db1c3(0x304)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x33e952[_0x33e952[_0x4db1c3(0x317)]=0x2714]=_0x4db1c3(0x317),_0x33e952[_0x33e952[_0x4db1c3(0x325)]=0x271a]=_0x4db1c3(0x325),_0x33e952[_0x33e952['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x4db1c3(0x324),_0x33e952[_0x33e952[_0x4db1c3(0x1a8)]=0x271c]=_0x4db1c3(0x1a8),_0x33e952[_0x33e952[_0x4db1c3(0x2c0)]=0x271d]=_0x4db1c3(0x2c0),_0x33e952[_0x33e952[_0x4db1c3(0x356)]=0x271e]=_0x4db1c3(0x356),_0x33e952[_0x33e952[_0x4db1c3(0x1c4)]=0x271f]=_0x4db1c3(0x1c4),_0x33e952[_0x33e952[_0x4db1c3(0x1d1)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x33e952[_0x33e952['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4db1c3(0x244),_0x33e952[_0x33e952['INVALID_INVITE_CODE']=0x2ee2]=_0x4db1c3(0x2db),_0x33e952[_0x33e952[_0x4db1c3(0x20b)]=0x2ee3]=_0x4db1c3(0x20b),_0x33e952[_0x33e952['USER_NOT_INVITED_CODE']=0x2ee4]=_0x4db1c3(0x1d2),_0x33e952[_0x33e952[_0x4db1c3(0x1e3)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x33e952[_0x33e952[_0x4db1c3(0x1ac)]=0x32c9]=_0x4db1c3(0x1ac),_0x33e952[_0x33e952[_0x4db1c3(0x2f7)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x33e952[_0x33e952['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4db1c3(0x3ab),_0x33e952[_0x33e952[_0x4db1c3(0x300)]=-0x1]=_0x4db1c3(0x300),_0x33e952))(_0x45bb59||{}),_0x56bcc8=Object['getOwnPropertyDescriptor'],_0xafe619=(_0x423681,_0x257aef,_0x390de4,_0x127fa9)=>{for(var _0x35d9bb=_0x127fa9>0x1?void 0x0:_0x127fa9?_0x56bcc8(_0x257aef,_0x390de4):_0x257aef,_0x444f6d=_0x423681['length']-0x1,_0x3d844c;_0x444f6d>=0x0;_0x444f6d--)(_0x3d844c=_0x423681[_0x444f6d])&&(_0x35d9bb=_0x3d844c(_0x35d9bb)||_0x35d9bb);return _0x35d9bb;},_0x44a1cf=(_0x5a70c5,_0x3c37c3)=>(_0x2ad1cf,_0x111362)=>_0x3c37c3(_0x2ad1cf,_0x111362,_0x5a70c5);_0x58baf5['RemoteUniscriptService']=class extends _0x58b3ad[_0x4db1c3(0x33d)]{constructor(_0x31efdf,_0x431347,_0x579ee8){const _0x4a1947=_0x4db1c3;super(),this[_0x4a1947(0x168)]=_0x31efdf,this['_httpService']=_0x431347,this[_0x4a1947(0x147)]=_0x579ee8;}async[_0x4db1c3(0x21d)](_0x1f7fbd,_0x23a517,_0xf39e70,..._0x5940a0){const _0x52116d=_0x4db1c3;var _0x4009e3,_0xdc5772,_0x17b7f4,_0x5af63c;const _0x2f5c42=this[_0x52116d(0x168)][_0x52116d(0x24d)]();if(!_0x2f5c42)throw new Error(_0x52116d(0x358));const _0x4bc0df=((_0x4009e3=this[_0x52116d(0x147)][_0x52116d(0x16e)](_0x2023db[_0x52116d(0x2b7)]))!=null?_0x4009e3:_0x2023db['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1f7fbd+'/run/'+_0x23a517,_0x1ba3b9=new URL(window[_0x52116d(0x26f)][_0x52116d(0x1d5)]),_0x42f873={'scriptId':_0x1f7fbd,'runId':(_0xdc5772=_0x1ba3b9[_0x52116d(0x2ac)][_0x52116d(0x2c5)]('runId'))!=null?_0xdc5772:'','function':_0x23a517,'unitId':_0x2f5c42[_0x52116d(0x238)](),'argsOfFunction':JSON[_0x52116d(0x277)](_0x5940a0),'invokeId':(_0x17b7f4=_0xf39e70[_0x52116d(0x327)])!=null?_0x17b7f4:'','executionId':(_0x5af63c=_0xf39e70['executionId'])!=null?_0x5af63c:''};try{const _0x294695=await this[_0x52116d(0x2f5)]['post'](_0x4bc0df,{'body':_0x42f873});return _0x294695[_0x52116d(0x12e)][_0x52116d(0x1f2)]&&_0x294695[_0x52116d(0x12e)][_0x52116d(0x1f2)][_0x52116d(0x3b2)]!==_0x45bb59['OK']?_0x52116d(0x287):_0x294695[_0x52116d(0x12e)][_0x52116d(0x355)];}catch{return _0x52116d(0x287);}}},_0x58baf5[_0x4db1c3(0x1a4)]=_0xafe619([_0x44a1cf(0x0,_0x58b3ad[_0x4db1c3(0x30d)]),_0x44a1cf(0x1,_0x58b3ad[_0x4db1c3(0x257)](_0x22d557[_0x4db1c3(0x21a)])),_0x44a1cf(0x2,_0x58b3ad[_0x4db1c3(0x348)])],_0x58baf5['RemoteUniscriptService']),_0x58baf5[_0x4db1c3(0x334)]=_0x478902,_0x58baf5[_0x4db1c3(0x2d2)]=_0x5b0fb3,_0x58baf5[_0x4db1c3(0x200)]=_0x2f939e,_0x58baf5[_0x4db1c3(0x115)]=_0x395c4c,_0x58baf5[_0x4db1c3(0x30c)]=_0x253271,Object[_0x4db1c3(0x18c)](_0x58baf5,Symbol['toStringTag'],{'value':_0x4db1c3(0x275)});}));
|