@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505201607 → 0.7.0-nightly.202505221607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x568b98=_0xdafd;(function(_0xc6bfc4,_0x3b2114){const _0x245704=_0xdafd,_0x2585bb=_0xc6bfc4();while(!![]){try{const _0x39f29b=-parseInt(_0x245704(0x2c7))/0x1+parseInt(_0x245704(0x247))/0x2+-parseInt(_0x245704(0x1a7))/0x3*(-parseInt(_0x245704(0x32a))/0x4)+parseInt(_0x245704(0x1ce))/0x5*(parseInt(_0x245704(0x15c))/0x6)+parseInt(_0x245704(0x172))/0x7+-parseInt(_0x245704(0x2ae))/0x8*(-parseInt(_0x245704(0x18e))/0x9)+-parseInt(_0x245704(0x2e7))/0xa;if(_0x39f29b===_0x3b2114)break;else _0x2585bb['push'](_0x2585bb['shift']());}catch(_0x33d4d2){_0x2585bb['push'](_0x2585bb['shift']());}}}(_0x2095,0xb0d7d));var $t=Object[_0x568b98(0x2bc)],xt=(_0x6c78ac,_0x37bee2,_0x1b1aaf)=>_0x37bee2 in _0x6c78ac?$t(_0x6c78ac,_0x37bee2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b1aaf}):_0x6c78ac[_0x37bee2]=_0x1b1aaf,_=(_0x4a2f4d,_0x2825fa,_0x2c2aec)=>xt(_0x4a2f4d,typeof _0x2825fa!=_0x568b98(0x321)?_0x2825fa+'':_0x2825fa,_0x2c2aec);import{MemberService as _0xd60d12,SessionStatus as _0x51d7ad,CollaborationSessionService as _0x5ae39d,CollaborationStatus as _0xa23b9e,CollaborationController as _0x56ba9f,ILocalCacheService as _0x2755a3,CollaborationUIEventService as _0x2a341e,CollaborationUIEventId as _0x474087,DataLoaderService as _0x2bcd8a,DocCollaborationEntity as _0x338daf,getLocalCacheKey as _0x1b4ac8,LOCAL_CACHE_INTERVAL as _0x26387f,LOCAL_CACHE_INTERVAL_KEY as _0x16888c,UniverCollaborationClientPlugin as _0x59101b,CollaborationSocketService as _0x5df4a7,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x496a5b,DEFAULT_WS_SESSION_TICKET_URL as _0x5432d2,UnitStatus as _0x540c8d,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1ecb0e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x563a1a}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x4ffef8,Disposable as _0x3f16d8,DOC_RANGE_TYPE as _0x1f3f3d,Inject as _0x6d32dc,Injector as _0x1e626a,IUniverInstanceService as _0x1234fa,ICommandService as _0x450935,debounce as _0x23dd0f,Rectangle as _0x471575,DisposableCollection as _0x2cb202,toDisposable as _0x1f8c5e,UniverInstanceType as _0x142ba1,Tools as _0x4ce80e,COLORS as _0x3530f0,ColorKit as _0x2ee150,ThemeService as _0x507dc3,fromEventSubject as _0x4d8be1,LocaleService as _0x4b501d,createIdentifier as _0x3e2b2e,ILogService as _0x553ff6,Optional as _0x164671,Workbook as _0x335c30,CommandType as _0x3c6601,IConfigService as _0x57f776,ILocalStorageService as _0x40696b,DependentOn as _0x19df80,Plugin as _0x54a92a,merge as _0x3cf67f,registerDependencies as _0x16d380,mergeOverrideWithDependencies as _0x4d898d,touchDependencies as _0x5e475c,generateRandomId as _0x4bbe86}from'@univerjs/core';import{Shape as _0x5dbcdf,Rect as _0x2e1f81,getColor as _0x370534,RegularPolygon as _0x322c0e,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1d0f06,Vector2 as _0xba7c2,SHEET_VIEWPORT_KEY as _0x51dbc8,IRenderManagerService as _0x107d26}from'@univerjs/engine-render';import{ISocketService as _0x51f3b5,WebSocketService as _0x108140,HTTPService as _0x3ee678}from'@univerjs/network';import{IDocClipboardService as _0x54ab34,NodePositionConvertToCursor as _0x532758,NodePositionConvertToRectRange as _0x1d1cb9,TEXT_RANGE_LAYER_INDEX as _0x56e242,SetDocZoomRatioOperation as _0x5e04db,DocIMEInputManagerService as _0xfe4d58,DocStateChangeManagerService as _0x137048}from'@univerjs/docs-ui';import{IImageIoService as _0x364260}from'@univerjs/drawing';import{BehaviorSubject as _0xd1fc21,debounceTime as _0x2f381b,takeUntil as _0x37d2d6,Subject as _0x1b2d13,filter as _0x242cb5,switchMap as _0x15bcfa,merge as _0x1a95c3,combineLatest as _0x321be4,of as _0x5ba222,fromEvent as _0x1ef346,shareReplay as _0x35f9aa,mapTo as _0x13a5cf,distinctUntilChanged as _0x15bdb5}from'rxjs';function _0x2095(){const _0x1f4ba7=['findNodePositionByCharIndex','collabStatus.notCollab','mutations','off-line-single_clip0_910_343','getSheetId','sheetId','getViewport','_onCursorUpdate','getAncestorScale','subUnitId','_scheduleHeartbeat','length','string','APPLY_REJECT','registerComponent','transformStateCache','loadOfflineData','_transformService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','body','OFFLINE','fillStyle','_onCursorDelete','idSuffix','indexOf','33369390YjMWDZ','uni.network.url-service','onLocalMutation','random','_assignedColors','font','_eventUnsubscribe','getStateCache','setStateCache','getConfig','1em','_themeService','getDocRanges','_refRangeService','unitID','collabStatus.fetchMiss','path','Warning','INVITE_CODE_HAS_BEEN_UES','mask','getCurrent','type','concat','PY_RUNTIME_SCRIPT_ERROR','params','UNAUTHENTICATED','setActiveRange','init','...','ENSURE_SNAPSHOT_EXECUTION','labelPosition','tag','collaboration-client.offline-data-not-saved','_getAnchorBounding','LICENSE_IMPORT_SIZE_EXCEEDED','saveTaskMap','UNRECOGNIZED','Unknown\x20user','popstate','_dataLoaderService','_docStateChangeManagerService','_scene','_removeCollabCursors','_updateLocalCursor','INVITE_CODE_REQUIRED','onPointerEnter$','COMPLETION_FINISHED','setUndoRedoMutationParamsCache','_cursorInfo$','TOO_MANY_REQUESTS','_univerInstanceService','_commandService','CONNECTOR_DATA_TOO_LARGE','_collabCursorState$','collab-text-range-','LICENSE_MAX_UNITS_EXCEEDED','_createSocketURL','_notificationService','symbol','_transformHistoryAndStateStack','getSheetBySheetId','undoState','drawWith','createSocket','univer-flex\x20univer-items-center','MUTATION','createInstance','20SkhXkZ','_startDocCollabCursor','focused$','#fff','getCellPositionByOffset','collabStatus.offline','getTypeOfUnitDisposed$','m2Prime','_handleEvent','sheetID','enableLocalCache','none','search','getMember','YUUMI_RATE_OVER_LIMIT','transformByState','lineTo','unitId','_textBubble','className','InsertRowCommandId','fillText','_localCacheService','/run/','defIds','DeleteRangeMoveUpCommandId','YUUMI_URL_COL_OUT_OF_RANGE','_labelPosition','isEditing','split','_draw','onStarting','ACTIVE_UNIT_EVENT_CHANNEL','href','_scheduleClearOtherTimer','startColumn','_document','_docTransformSelectionsService','OTHER_CLIENTS_EDITING','RECT','getRenderById','range','_updateURLWithCurrentState','closePath','_saveTaskMap','_hideTimer','stringify','forEach','onPointerLeave$','fill','getActiveSheet','_configService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.syncing','session.connection-failed','delete','94728aDyFPx','_disabled','deepClone','cursorInfo','clipPath','children','setAlpha','collabStatus.synced','activeSheet$','_entityInit$','UPDATE_CURSOR','some','registerRefRange','_lastPointer','APPLY_DUPLICATED','all','YUUMI_ASYNCIO_CANCELLED','_ensureSubject','_unitOnClients','_uiPartsService','arc','push','8920975IFIIei','onPointerMove$','getUnhiddenWorksheets','_collaborationUIEventService','setTimeout','unshift','_getMergeRange','urlChange$','setParam','hovered','APPLY_PERMISSION_DENIED','_color','getUnitStatus$','getOffsetConfig','getCollabEntity$','collab-client.tooltip.reconnect','_backgroundColor','_beforeCloseService','onCommandExecuted','_revisionService','_docSkeletonManagerService','propertyIsEnumerable','from','_initStatusComponent','url(#on-line-single_clip0_910_349)','extend','roomMembers','FromArray','534762EpEGtS','_range','_instanceService','_cachedData','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SYNCED','_logService','result','UNIVER_DOC','SNAPSHOT_INVALID_SNAPSHOT','getColorFromTheme','docStateChange$','displayName','getTypeOfUnitAdded$','_onRefRangeChange','exhaustSavingTask','_shapes','USERS_LEAVE','min','makeDirty','engine','getMergeData','top','runId','searchParams','815895sZSdzl','pushState','reconnect','getValue','SOCKET_FAILED','_getSheetObject','LOGIN_FAILED','cursorInfo$','_setupSubUnitSync','purple.300','collaboration.closeRoom','_saveCache','error','Failed','backgroundColor','_initEntityListener','send','_scheduleSaving','resize','_cursorShapes','_heartbeatTimer','add','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','eventID','_docTransformIMECacheService','_refreshCollabCursors','assignAColorForMemberID','InsertColCommandId','substring','rgba(255,\x20255,\x20255,\x200.01)','round','_updateCollabCursors','WECHAT_HAS_BEEN_BOUND','_initDependencies','_urlService','_registerRenderDependencies','_initResize','_session','wsSessionTicketUrl','210YNVioa','TEXT','key','executeCommand','_collabCursorController','editingUnit','runOnServer','pluginName','entityInit$','univerjs-icon\x20univerjs-icon-','getParam','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','INVALID_ARGUMENT','setInterval','with','collabCursorState$','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','_selfUnitIDs','_status$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UniverIcon','_localStorageService','generateRandomId','INVALID_INVITE_CODE','prototype','_toggleOffline','_colorAssignService','_init','_injector','_getSessionTicket','transform','_cursors','trim','_context','UNDEFINED','text','find','startRow','endRow','getCurrentSelections','_collaborationController','sessionStatus$','_config','_colorIndex','flatMap','getCurrentRevOfUnit','roomMembers$','EMAIL_HAS_BEEN_BOUND','_anchor','measureText','NOT_COLLAB','name','OffLineSingle','syncEditingCollabCursor','_hover','_id','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','transformMutation','APPLY_NON_SEQUENTIAL_REVISION','collab-rect-range-','registerRenderModule','svg','_roomMembers$','evenodd','_handleLeaveEvent','getUndoRedoMutationParamsCache','max','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','beginPath','executionId','set','selection','doc.mutation.rich-text-editing','entries','AWAITING','disposeWithMe','jiqing.500','_transformPreviousActiveRange','_unitStatus','then','color','pipe','getRelativeToViewportCoord','_handleHeartbeatEvent','getRangePointData','PERMISSION_DENIED','startsWith','setShapeProps','red.300','subscribeEvent','_initEvent','bottom','getOwnPropertySymbols','_clearOtherTimers','_online','on-line-single_clip0_910_349','collaboration-client-ui.config','permission.title','_messageService','post','fillRule','_entities','onRendered','addEventListener','getItem','url(#off-line-single_clip0_910_343)','complete','MOBILE_HAS_BEEN_BOUND','UNIVER_SHEET','getMemberID','_drawRectRange','currentSkeleton$','RemoveColCommandId','redoState','_localeService','contains','YUUMI_ALL_TABLES_IS_INVALID','origin','saveImage','_startSheetCollabCursor','_memberService','1764972ENcwOB','getCollabCursors$','AWAITING_WITH_PENDING','addObjects','LICENSE_DISTRO_REJECTED','event$','height','dispose','_initStatusListener','APPLY_REVISION_CONFILICT','attrs','_docSkeleton','parse','FETCH_MISS','NO_OTHER_CLIENTS_EDITING','M0\x200H16V16H0z','_anchorDot','column','LICENSE_EXPORT_SIZE_EXCEEDED','_docTransformStateCacheService','green.600','unload','defs','_getScale','NOT_FOUND','m1Prime','getOwnPropertyDescriptor','toString','_docClipboardService','0\x200\x2016\x2016','save','_handleJoinEvent','OnLineSingle','location','isActive','_renderManagerService','subunit','ALREADY_EXISTS','getSkeleton','status$','USER_NOT_INVITED_CODE','YUUMI_NO_CUBOID_FOR_QUESTION','restore','collabStatus.conflict','div','YUUMI_UNABLE_LOAD_URL','INTERNAL_ERROR','CONFLICT','on-line-single','_syncEditingCollabCursorService','isArray','_updateSubUnitFromURLParams','next','DeleteRangeMoveLeftCommandId','show','VIEW_MAIN','translate(.97)','SNAPSHOT_HAS_BEEN_REMOVED','call','get','ranges','getUnitId','clearTimeout','addObject','actions','colorChannel1','InsertRangeMoveDownCommandId','transformRemoteChangeset','disposeUnit','unit','YUUMI_AI_RUN_FAILED','xlink:href','requireSession','off-line-single','OTHER_CLIENT_EDITING','_imageIoService','CHANGESET_REVISION_CONFILICT','subscribe','[CollaborationDataLoaderController]','unsubscribe','_handleHover','_registerDependencies','MoveRangeCommandId','assign','newValue','transformSelections','_toggleOnline','INVITE_CODE_ALREADY_BOUND','_httpService','width','hasOwnProperty','_sheetSkeletonManagerService','url(#$1','_transformUndoRedoStack','_drawAnchor','textRanges','_removeClearOtherTimer','_render','updateOfflineData','size','setItem','replaceState','map','72HIowgI','hide','_collabSessionService','dispose$','storage','includes','_cursor','_getSaveTimeout','values','clearInterval','onTransformChange$','_hovered','onMouseMove','_setupBeforeClosingHandler','defineProperty','black','Error','getVpScrollXYInfoByPosToVp','history','getFocusedUnit','getCurrentUnitForType','_name','has','whenReady','_docSyncEditingCollabCursorService','653306nJUIun','toRgbString','blue.400','data','removeParam','currentColor','asObservable'];_0x2095=function(){return _0x1f4ba7;};return _0x2095();}import{SetTextSelectionsOperation as _0x3a761f,RichTextEditingMutation as _0x3ee934,DocSelectionManagerService as _0x55110a,DocSkeletonManagerService as _0x1afc74}from'@univerjs/docs';import{ITransformService as _0xfd345b,CollaborationEvent as _0x69b39f,isTransformMutationFailure as _0x574026,isTransformMutationsWithChangesetSuccess as _0x3a585f,RevisionService as _0x2dcaae,ISnapshotServerService as _0x2ac1aa}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x8e11af,serializeRangeWithSheet as _0x2471b8}from'@univerjs/engine-formula';import{RefRangeService as _0x2d324d,SetSelectionsOperation as _0x248e9f,SheetsSelectionsService as _0x5975a6,EffectRefRangId as _0x17eb3c,handleIRemoveRow as _0x516a47,handleIRemoveCol as _0x40020a,handleMoveRange as _0x3a7196,handleInsertRow as _0x581d09,handleInsertRangeMoveRight as _0x545273,handleInsertRangeMoveDown as _0x1997e6,handleInsertCol as _0x52369e,handleDeleteRangeMoveUp as _0x29bcab,handleDeleteRangeMoveLeft as _0x33305e,runRefRangeMutations as _0x2b077d,SetWorksheetActivateCommand as _0x542b3f}from'@univerjs/sheets';import{map as _0xb8b86,filter as _0x3a7855,throttleTime as _0x20128c,takeUntil as _0x257644,switchMap as _0x5ecea1}from'rxjs/operators';import{SheetSkeletonManagerService as _0x45c7b5,getCoordByCell as _0x32fc47,getSheetObject as _0x1bd9f1}from'@univerjs/sheets-ui';import{jsx as _0x7b61f3,jsxs as _0x31b2a2}from'react/jsx-runtime';import{useObservable as _0x20cba3,useDependency as _0x1eb7bd,IUIPartsService as _0x4a897c,BuiltInUIPart as _0xb90716,connectInjector as _0x52a6fe,IBeforeCloseService as _0x4598f3,IMessageService as _0x1869bb,INotificationService as _0x50baca}from'@univerjs/ui';import{Tooltip as _0x428afd,clsx as _0x18371d,MessageType as _0x52eac5}from'@univerjs/design';import{forwardRef as _0x2e9c63,useRef as _0x3ccda1,createElement as _0x332d39,useCallback as _0x2d4746}from'react';import{IRemoteInstanceService as _0x44414a}from'@univerjs/rpc';var ci=Object['getOwnPropertyDescriptor'],li=(_0x152918,_0x5b75dc,_0x42b184,_0x175b1d)=>{const _0x32f161=_0x568b98;for(var _0x5e7f7b=_0x175b1d>0x1?void 0x0:_0x175b1d?ci(_0x5b75dc,_0x42b184):_0x5b75dc,_0x4e52a1=_0x152918[_0x32f161(0x2d9)]-0x1,_0x2348e3;_0x4e52a1>=0x0;_0x4e52a1--)(_0x2348e3=_0x152918[_0x4e52a1])&&(_0x5e7f7b=_0x2348e3(_0x5e7f7b)||_0x5e7f7b);return _0x5e7f7b;},Je=(_0x3d62ac,_0x2a7f92)=>(_0x433c39,_0x9821c8)=>_0x2a7f92(_0x433c39,_0x9821c8,_0x3d62ac);let Ne=class extends _0x4ffef8{constructor(_0x480b5e,_0x5e10b8){const _0x4aed85=_0x568b98;super(),this[_0x4aed85(0x263)]=_0x480b5e,this[_0x4aed85(0x292)]=_0x5e10b8,this['_init']();}['_init'](){const _0x3b4619=_0x568b98,_0x5dd968=this;this['disposeWithMe'](this[_0x3b4619(0x263)]['addClipboardHook']({'onBeforePasteImage':async _0xffa3a9=>{const _0x4df984=_0x3b4619,_0x24302c=await _0x5dd968[_0x4df984(0x292)][_0x4df984(0x244)](_0xffa3a9);return _0x24302c?{'source':_0x24302c['source'],'imageSourceType':_0x24302c['imageSourceType']}:null;}}));}};Ne=li([Je(0x0,_0x54ab34),Je(0x1,_0x364260)],Ne);const Ze=[_0x568b98(0x1b0),_0x568b98(0x21a),_0x568b98(0x25b),_0x568b98(0x226),_0x568b98(0x2c9),'yellow.400'];class ke extends _0x3f16d8{constructor(){const _0x5198ca=_0x568b98;super(...arguments),_(this,_0x5198ca(0x2eb),new Map()),_(this,_0x5198ca(0x1f9),0x0);}[_0x568b98(0x1c1)](_0x5114f9){const _0x36c793=_0x568b98;if(this['_assignedColors'][_0x36c793(0x2c4)](_0x5114f9))return this[_0x36c793(0x2eb)][_0x36c793(0x282)](_0x5114f9);const _0x254dba=Ze[this[_0x36c793(0x1f9)]];return this[_0x36c793(0x1f9)]=(this[_0x36c793(0x1f9)]+0x1)%Ze[_0x36c793(0x2d9)],this['_assignedColors'][_0x36c793(0x214)](_0x5114f9,_0x254dba),_0x254dba;}}function Tt(_0x1045f4){const _0x16604c=_0x568b98;let _0x128a53='';for(const _0x9423ff of _0x1045f4){const {startOffset:_0x1fe4e9,endOffset:_0x501700,isActive:_0x1a7b25,rangeType:_0x372475,segmentId:_0x4e61ae,segmentPage:_0x3b62e7}=_0x9423ff;_0x128a53[_0x16604c(0x2d9)]&&(_0x128a53+=','),_0x128a53+=_0x1fe4e9+':'+_0x501700+':'+(_0x1a7b25?'1':'0')+':'+_0x372475+':'+_0x4e61ae+':'+_0x3b62e7;}return _0x128a53;}function _i(_0x11f32c){const _0x582d8b=_0x568b98,_0xf5cf4a=_0x11f32c[_0x582d8b(0x141)](','),_0x5821be=[];for(const _0x226eb3 of _0xf5cf4a){const [_0x96cf9e,_0x197630,_0x5b3877,_0x2ab5a0,_0x207d33,_0x2f07d9]=_0x226eb3[_0x582d8b(0x141)](':');_0x5821be[_0x582d8b(0x171)]({'startOffset':Number(_0x96cf9e),'endOffset':Number(_0x197630),'collapsed':_0x96cf9e===_0x197630,'isActive':_0x5b3877==='1','rangeType':_0x2ab5a0===_0x1f3f3d['TEXT']?_0x1f3f3d[_0x582d8b(0x1cf)]:_0x1f3f3d['RECT'],'segmentId':typeof _0x207d33=='string'?String(_0x207d33):'','segmentPage':Number(_0x2f07d9!=null?_0x2f07d9:-0x1)});}return _0x5821be[_0x582d8b(0x167)](_0x4588d1=>_0x4588d1[_0x582d8b(0x269)])||(_0x5821be[0x0][_0x582d8b(0x269)]=!0x0),_0x5821be;}class He extends _0x4ffef8{constructor(){const _0x53c27e=_0x568b98;super(...arguments),_(this,_0x53c27e(0x31c),new _0xd1fc21(null)),_(this,_0x53c27e(0x1dd),this['_collabCursorState$'][_0x53c27e(0x2cd)]());}[_0x568b98(0x203)](_0x5b4e7c){const _0x2c76f0=_0x568b98,{unitID:_0x1a8158,memberID:_0x116443,textRanges:_0x2f3103}=_0x5b4e7c,_0x5c3e1a=Tt(_0x2f3103);if(_0x5c3e1a==='')return;const _0x1bfc60={'unitID':_0x1a8158,'memberID':_0x116443,'selection':_0x5c3e1a};this['_collabCursorState$'][_0x2c76f0(0x27b)](_0x1bfc60);}}var hi=Object[_0x568b98(0x261)],ui=(_0xb2cb63,_0x1ffda7,_0x324dbb,_0x503d04)=>{const _0x351a52=_0x568b98;for(var _0x129593=_0x503d04>0x1?void 0x0:_0x503d04?hi(_0x1ffda7,_0x324dbb):_0x1ffda7,_0x2a4b8c=_0xb2cb63[_0x351a52(0x2d9)]-0x1,_0x29005e;_0x2a4b8c>=0x0;_0x2a4b8c--)(_0x29005e=_0xb2cb63[_0x2a4b8c])&&(_0x129593=_0x29005e(_0x129593)||_0x129593);return _0x129593;},L=(_0x5dbacb,_0x458efa)=>(_0x2f4cda,_0x4ae6e3)=>_0x458efa(_0x2f4cda,_0x4ae6e3,_0x5dbacb);const di=0x12c,fi=0x64;let Ue=class extends _0x4ffef8{constructor(_0x12b66e,_0x8b52dd,_0x37771a,_0x59dc16,_0x44e637,_0x32127d,_0x19144d,_0x11c4b2,_0x2fa0dd){const _0xc988b1=_0x568b98;super(),_(this,_0xc988b1(0x22c),!0x1),_(this,_0xc988b1(0x1e9),!0x1),_(this,_0xc988b1(0x317),new _0xd1fc21(new Map())),_(this,_0xc988b1(0x1ae),this[_0xc988b1(0x317)][_0xc988b1(0x2cd)]()),_(this,_0xc988b1(0x20c),new _0xd1fc21([])),_(this,_0xc988b1(0x1fc),this[_0xc988b1(0x20c)][_0xc988b1(0x21f)](_0x2f381b(di))),_(this,_0xc988b1(0x312),_0x23dd0f(_0x768408=>{const _0x5a6b29=_0xc988b1,_0xc67632={'eventID':_0x69b39f[_0x5a6b29(0x166)],'data':{'unitID':this[_0x5a6b29(0x2f5)],'memberID':this[_0x5a6b29(0x1cc)][_0x5a6b29(0x23b)](),'selection':Tt(_0x768408)}};this[_0x5a6b29(0x1cc)][_0x5a6b29(0x1b7)](_0xc67632,this[_0x5a6b29(0x2f5)]);},fi)),(this[_0xc988b1(0x2f5)]=_0x12b66e,this[_0xc988b1(0x1cc)]=_0x8b52dd,this['_injector']=_0x37771a,this[_0xc988b1(0x1e8)]=_0x59dc16,this[_0xc988b1(0x246)]=_0x44e637,this['_syncEditingCollabCursorService']=_0x32127d,this[_0xc988b1(0x2df)]=_0x19144d,this[_0xc988b1(0x319)]=_0x11c4b2,this[_0xc988b1(0x31a)]=_0x2fa0dd);}get[_0x568b98(0x15f)](){const _0x4f5deb=_0x568b98;return this[_0x4f5deb(0x317)]['getValue']();}get[_0x568b98(0x18c)](){const _0x137d95=_0x568b98;return this['_roomMembers$'][_0x137d95(0x1aa)]();}['dispose'](){const _0x3766db=_0x568b98;super['dispose'](),this[_0x3766db(0x317)][_0x3766db(0x27b)](new Map()),this[_0x3766db(0x317)][_0x3766db(0x238)](),this[_0x3766db(0x20c)]['next']([]),this['_roomMembers$']['complete']();}[_0x568b98(0x302)](){const _0x4fbe6b=_0x568b98;this[_0x4fbe6b(0x1e9)]||(this[_0x4fbe6b(0x1e9)]=!0x0,this[_0x4fbe6b(0x1cc)][_0x4fbe6b(0x1f7)][_0x4fbe6b(0x21f)](_0x37d2d6(this[_0x4fbe6b(0x2b1)]))[_0x4fbe6b(0x294)](_0x3bfe52=>{_0x3bfe52===_0x51d7ad['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x4fbe6b(0x1cc)][_0x4fbe6b(0x24c)][_0x4fbe6b(0x21f)](_0x37d2d6(this[_0x4fbe6b(0x2b1)]))[_0x4fbe6b(0x294)](_0xb2c75=>{const _0x2b5fc2=_0x4fbe6b,_0x269183=_0xb2c75['eventID'];_0x269183===_0x69b39f[_0x2b5fc2(0x166)]&&this[_0x2b5fc2(0x2d5)](_0xb2c75),_0x269183===_0x69b39f[_0x2b5fc2(0x19f)]&&this[_0x2b5fc2(0x2e4)](_0xb2c75);}),this['disposeWithMe'](this['_commandService'][_0x4fbe6b(0x184)](_0x2836cd=>{const _0x3456bd=_0x4fbe6b,_0x45f35c=_0x2836cd[_0x3456bd(0x2ff)];_0x45f35c!=null&&this['_online']&&_0x2836cd['id']===_0x3a761f['id']&&_0x45f35c[_0x3456bd(0x33b)]===this['unitID']&&_0x45f35c[_0x3456bd(0x140)]===!0x1&&_0x45f35c['ranges'][_0x3456bd(0x2d9)]>0x0&&this[_0x3456bd(0x312)](_0x45f35c[_0x3456bd(0x283)]);})),this[_0x4fbe6b(0x278)][_0x4fbe6b(0x1dd)][_0x4fbe6b(0x21f)](_0x37d2d6(this[_0x4fbe6b(0x2b1)]))[_0x4fbe6b(0x294)](_0x4ae89d=>{const _0x1ab2e1=_0x4fbe6b;if((_0x4ae89d==null?void 0x0:_0x4ae89d['unitID'])!==this[_0x1ab2e1(0x2f5)])return;const _0x1633ba={'eventID':_0x69b39f[_0x1ab2e1(0x166)],'data':_0x4ae89d};this[_0x1ab2e1(0x2d5)](_0x1633ba);}),this[_0x4fbe6b(0x219)](this[_0x4fbe6b(0x31a)][_0x4fbe6b(0x184)](_0x20c529=>{const _0x33d2f3=_0x4fbe6b;if(_0x20c529[_0x33d2f3(0x2ff)]==null)return;const _0x4f0a5c=_0x20c529[_0x33d2f3(0x2ff)];if(_0x20c529['id']!==_0x3ee934['id']||_0x4f0a5c[_0x33d2f3(0x33b)]!==this[_0x33d2f3(0x2f5)])return;const _0x41288b={'id':_0x33d2f3(0x216),'params':_0x4f0a5c},_0x5dc562=this[_0x33d2f3(0x15f)];for(const [_0x4e6bcb,_0x3020f1]of _0x5dc562){const _0x593feb={'id':_0x33d2f3(0x216),'params':{'unitId':this[_0x33d2f3(0x2f5)],'actions':null,'textRanges':_0x3020f1['ranges']}},_0x4028ad=this[_0x33d2f3(0x2df)]['transformMutation'](_0x41288b,_0x593feb,!0x1);if(_0x574026(_0x4028ad))throw _0x4028ad[_0x33d2f3(0x1b3)];_0x5dc562[_0x33d2f3(0x214)](_0x4e6bcb,{..._0x3020f1,'ranges':_0x4028ad[_0x33d2f3(0x331)][_0x33d2f3(0x2ff)]['textRanges']});}queueMicrotask(()=>{const _0x59507c=_0x33d2f3;this[_0x59507c(0x317)][_0x59507c(0x27b)](_0x5dc562);});})));}[_0x568b98(0x2d5)](_0x2f6a8c){const _0x3bb411=_0x568b98;var _0x159c5a,_0x326fed;const {memberID:_0x84d3cf,selection:_0x3cbe60}=_0x2f6a8c['data'],_0x5090a1=_i(_0x3cbe60),_0x4d0c38=(_0x326fed=(_0x159c5a=this['_memberService'][_0x3bb411(0x337)](this[_0x3bb411(0x2f5)],_0x84d3cf))==null?void 0x0:_0x159c5a[_0x3bb411(0x201)])!=null?_0x326fed:'Unknown\x20user',_0x32b55d={'color':this[_0x3bb411(0x1e8)][_0x3bb411(0x1c1)](_0x84d3cf),'name':_0x4d0c38,'ranges':_0x5090a1},_0x41d834=this[_0x3bb411(0x15f)];_0x41d834[_0x3bb411(0x214)](_0x84d3cf,_0x32b55d),this[_0x3bb411(0x317)][_0x3bb411(0x27b)](_0x41d834);}[_0x568b98(0x2e4)](_0x3aa2eb){const _0x3cd2f0=_0x568b98,{memberID:_0x13a413}=_0x3aa2eb[_0x3cd2f0(0x2ca)],_0x4753bf=this[_0x3cd2f0(0x15f)];_0x4753bf[_0x3cd2f0(0x15b)](_0x13a413),this['_cursorInfo$'][_0x3cd2f0(0x27b)](_0x4753bf);}[_0x568b98(0x29d)](){const _0x11ef34=_0x568b98;var _0x1d655f;if(this[_0x11ef34(0x22c)]=!0x0,((_0x1d655f=this[_0x11ef34(0x319)]['getFocusedUnit']())==null?void 0x0:_0x1d655f[_0x11ef34(0x284)]())!==this[_0x11ef34(0x2f5)])return;const _0x333493=this[_0x11ef34(0x1ea)][_0x11ef34(0x282)](_0x55110a)[_0x11ef34(0x2f3)]();Array[_0x11ef34(0x279)](_0x333493)&&_0x333493[_0x11ef34(0x2d9)]>0x0&&this[_0x11ef34(0x312)](_0x333493);}[_0x568b98(0x1e7)](){this['_online']=!0x1;}};Ue=ui([L(0x2,_0x6d32dc(_0x1e626a)),L(0x3,_0x6d32dc(ke)),L(0x4,_0x6d32dc(_0xd60d12)),L(0x5,_0x6d32dc(He)),L(0x6,_0xfd345b),L(0x7,_0x1234fa),L(0x8,_0x450935)],Ue);var Si=Object[_0x568b98(0x261)],mi=(_0x3984d8,_0x3b772d,_0x26c1a7,_0x3bb5ab)=>{const _0x1de942=_0x568b98;for(var _0x3559ec=_0x3bb5ab>0x1?void 0x0:_0x3bb5ab?Si(_0x3b772d,_0x26c1a7):_0x3b772d,_0x22246f=_0x3984d8[_0x1de942(0x2d9)]-0x1,_0x361049;_0x22246f>=0x0;_0x22246f--)(_0x361049=_0x3984d8[_0x22246f])&&(_0x3559ec=_0x361049(_0x3559ec)||_0x3559ec);return _0x3559ec;},x=(_0x15b461,_0x1a3621)=>(_0xb88da0,_0x1e0875)=>_0x1a3621(_0xb88da0,_0x1e0875,_0x15b461);const gi=0x12c,Ii=0x64,vi=()=>{let _0x4214d6=[],_0x2dc996=!0x1;return _0x2db3c4=>{const _0x3c3315=_0xdafd;_0x4214d6[_0x3c3315(0x171)](_0x2db3c4),_0x2dc996||(_0x2dc996=!0x0,setTimeout(()=>{const _0x4b046a=_0x3c3315;_0x4214d6[_0x4b046a(0x153)](_0x1b2b1a=>_0x1b2b1a()),_0x4214d6=[],_0x2dc996=!0x1;}));};};let Me=class extends _0x4ffef8{constructor(_0x8fb868,_0x7f55c6,_0x36b7ac,_0x3b0d48,_0x571cc3,_0x59e950,_0x13c3c3,_0x2846c1){const _0x1a37ad=_0x568b98;super(),_(this,_0x1a37ad(0x22c),!0x1),_(this,'_init',!0x1),_(this,_0x1a37ad(0x317),new _0xd1fc21(new Map())),_(this,_0x1a37ad(0x1ae),this[_0x1a37ad(0x317)][_0x1a37ad(0x2cd)]()),_(this,'_roomMembers$',new _0xd1fc21([])),_(this,_0x1a37ad(0x1fc),this[_0x1a37ad(0x20c)][_0x1a37ad(0x21f)](_0x2f381b(gi))),_(this,_0x1a37ad(0x312),_0x23dd0f((_0x14d943,_0x42643b)=>{const _0x3cb672=_0x1a37ad,_0x4515e8={'eventID':_0x69b39f[_0x3cb672(0x166)],'data':{'unitID':this['unitID'],'memberID':this[_0x3cb672(0x1cc)]['getMemberID'](),'selection':_0x2471b8(_0x14d943,_0x42643b[_0x3cb672(0x14d)])}};this['_session'][_0x3cb672(0x1b7)](_0x4515e8,this[_0x3cb672(0x2f5)]);},Ii)),(this[_0x1a37ad(0x2f5)]=_0x8fb868,this[_0x1a37ad(0x1cc)]=_0x7f55c6,this[_0x1a37ad(0x1ea)]=_0x36b7ac,this[_0x1a37ad(0x1e8)]=_0x3b0d48,this[_0x1a37ad(0x246)]=_0x571cc3,this[_0x1a37ad(0x319)]=_0x59e950,this[_0x1a37ad(0x31a)]=_0x13c3c3,this['_refRangeService']=_0x2846c1);}get['cursorInfo'](){const _0x8db428=_0x568b98;return this[_0x8db428(0x317)]['getValue']();}get[_0x568b98(0x18c)](){const _0x1d1c0b=_0x568b98;return this['_roomMembers$'][_0x1d1c0b(0x1aa)]();}[_0x568b98(0x24e)](){const _0x209c6e=_0x568b98;super['dispose'](),this[_0x209c6e(0x317)]['next'](new Map()),this['_cursorInfo$'][_0x209c6e(0x238)](),this[_0x209c6e(0x20c)][_0x209c6e(0x27b)]([]),this['_roomMembers$'][_0x209c6e(0x238)]();}[_0x568b98(0x302)](){const _0x44ccb4=_0x568b98;this[_0x44ccb4(0x1e9)]||(this[_0x44ccb4(0x1e9)]=!0x0,this[_0x44ccb4(0x1cc)][_0x44ccb4(0x1f7)]['pipe'](_0x37d2d6(this[_0x44ccb4(0x2b1)]))['subscribe'](_0x267301=>{_0x267301===_0x51d7ad['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x44ccb4(0x1cc)][_0x44ccb4(0x24c)][_0x44ccb4(0x21f)](_0x37d2d6(this[_0x44ccb4(0x2b1)]))['subscribe'](_0x5be3e6=>{const _0x4aceea=_0x44ccb4,_0x41d472=_0x5be3e6[_0x4aceea(0x1be)];_0x41d472===_0x69b39f[_0x4aceea(0x166)]&&this[_0x4aceea(0x2d5)](_0x5be3e6),_0x41d472===_0x69b39f['USERS_LEAVE']&&this[_0x4aceea(0x2e4)](_0x5be3e6);}),this[_0x44ccb4(0x19c)](),this['disposeWithMe'](this[_0x44ccb4(0x31a)][_0x44ccb4(0x184)](_0x29fd6d=>{const _0x43a38d=_0x44ccb4;if(this[_0x43a38d(0x22c)]&&_0x29fd6d['id']===_0x248e9f['id']&&_0x29fd6d[_0x43a38d(0x2ff)][_0x43a38d(0x33b)]===this[_0x43a38d(0x2f5)]){const _0x363c34=_0x29fd6d[_0x43a38d(0x2ff)];this['_updateLocalCursor'](_0x363c34[_0x43a38d(0x2d7)],_0x363c34['selections'][0x0]);}})));}[_0x568b98(0x2d5)](_0x2c7792){const _0x3f7869=_0x568b98;var _0xa1337a,_0x1dd3d4;const {memberID:_0x883b36,selection:_0x543d91}=_0x2c7792[_0x3f7869(0x2ca)],{sheetName:_0x3a6dca,range:_0x16fbb8}=_0x8e11af(_0x543d91),_0x489185={'name':(_0x1dd3d4=(_0xa1337a=this[_0x3f7869(0x246)][_0x3f7869(0x337)](this['unitID'],_0x883b36))==null?void 0x0:_0xa1337a['name'])!=null?_0x1dd3d4:_0x3f7869(0x30c),'range':this['_getMergeRange'](_0x3a6dca,_0x16fbb8),'sheetID':_0x3a6dca,'color':this[_0x3f7869(0x1e8)][_0x3f7869(0x1c1)](_0x883b36),'selection':_0x543d91},_0x12aa2c=this[_0x3f7869(0x15f)];_0x12aa2c[_0x3f7869(0x214)](_0x883b36,_0x489185),this[_0x3f7869(0x317)][_0x3f7869(0x27b)](_0x12aa2c);}[_0x568b98(0x2e4)](_0x2f8378){const _0x28e461=_0x568b98,{memberID:_0x3c00fa}=_0x2f8378[_0x28e461(0x2ca)],_0x3e6ca9=this['cursorInfo'];_0x3e6ca9[_0x28e461(0x15b)](_0x3c00fa),this[_0x28e461(0x317)][_0x28e461(0x27b)](_0x3e6ca9);}[_0x568b98(0x178)](_0x27348b,_0x434b98){const _0x565342=_0x568b98;var _0x4fae29,_0x2d2885;const _0x537728=(_0x2d2885=(_0x4fae29=this[_0x565342(0x319)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x4fae29[_0x565342(0x323)](_0x27348b))==null?void 0x0:_0x2d2885[_0x565342(0x1a3)]();return(_0x537728==null?void 0x0:_0x537728[_0x565342(0x1f2)](_0x539a0f=>_0x471575[_0x565342(0x241)](_0x539a0f,_0x434b98)))||_0x434b98;}[_0x568b98(0x19c)](){const _0x1e13cb=_0x568b98,_0x4744dc=new _0x2cb202(),_0x123828=vi(),_0x3abf45=()=>{const _0x39df08=_0xdafd;_0x4744dc[_0x39df08(0x24e)]();const _0xfc0902=(_0x4cfa41,_0x19b54f,_0x384233,_0x3164df)=>{const _0x1e45f8=_0x39df08;let _0xdf2917=[];switch(_0x4cfa41['id']){case _0x17eb3c[_0x1e45f8(0x27c)]:{_0xdf2917=_0x33305e(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x13d)]:{_0xdf2917=_0x29bcab(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x1c2)]:{_0xdf2917=_0x52369e(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x289)]:{_0xdf2917=_0x1997e6(_0x4cfa41,_0x3164df);break;}case _0x17eb3c['InsertRangeMoveRightCommandId']:{_0xdf2917=_0x545273(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x33e)]:{_0xdf2917=_0x581d09(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x299)]:{_0xdf2917=_0x3a7196(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x23e)]:{_0xdf2917=_0x40020a(_0x4cfa41,_0x3164df);break;}case _0x17eb3c['RemoveRowCommandId']:{_0xdf2917=_0x516a47(_0x4cfa41,_0x3164df);break;}}const _0x47ea7d=_0x2b077d(_0xdf2917,_0x3164df),_0x34780d=this[_0x1e45f8(0x15f)][_0x1e45f8(0x282)](_0x19b54f);if(_0x34780d&&_0x47ea7d){const _0x72f231={..._0x34780d,'range':_0x47ea7d};this[_0x1e45f8(0x15f)][_0x1e45f8(0x214)](_0x19b54f,_0x72f231),_0x123828(()=>{const _0x1ba57b=_0x1e45f8,_0x5240a6=this[_0x1ba57b(0x2f4)]['registerRefRange'](_0x47ea7d,_0x57fef3=>(_0x5240a6[_0x1ba57b(0x24e)](),_0xfc0902(_0x57fef3,_0x19b54f,_0x384233,_0x47ea7d)));_0x4744dc['add'](_0x5240a6);});}return{'redos':[],'undos':[]};};this[_0x39df08(0x15f)][_0x39df08(0x153)]((_0x301ce7,_0x48cea5)=>{const _0xed6374=_0x39df08,{range:_0x46cabf,sheetID:_0x2962a9}=_0x301ce7,_0x46bc2f=this['_refRangeService'][_0xed6374(0x168)](_0x46cabf,_0x4db3f3=>(_0x46bc2f[_0xed6374(0x24e)](),_0xfc0902(_0x4db3f3,_0x48cea5,_0x2962a9,_0x46cabf)));_0x4744dc['add'](_0x46bc2f);});};this['disposeWithMe'](_0x1f8c5e(this[_0x1e13cb(0x317)]['subscribe'](()=>{_0x3abf45();})));}[_0x568b98(0x29d)](){const _0x2f047c=_0x568b98;var _0x40e52f,_0x2bf3ea;if(this['_online']=!0x0,((_0x40e52f=this[_0x2f047c(0x319)]['getFocusedUnit']())==null?void 0x0:_0x40e52f[_0x2f047c(0x284)]())!==this[_0x2f047c(0x2f5)])return;const _0x4d7851=(_0x2bf3ea=this[_0x2f047c(0x1ea)][_0x2f047c(0x282)](_0x5975a6)[_0x2f047c(0x1f5)]())==null?void 0x0:_0x2bf3ea[0x0],_0x7b9474=this[_0x2f047c(0x319)][_0x2f047c(0x2c2)](_0x142ba1['UNIVER_SHEET'])[_0x2f047c(0x156)]();_0x4d7851&&_0x7b9474&&this[_0x2f047c(0x312)](_0x7b9474[_0x2f047c(0x2d2)](),_0x4d7851);}[_0x568b98(0x1e7)](){const _0x396fce=_0x568b98;this[_0x396fce(0x22c)]=!0x1;}};Me=mi([x(0x2,_0x6d32dc(_0x1e626a)),x(0x3,_0x6d32dc(ke)),x(0x4,_0x6d32dc(_0xd60d12)),x(0x5,_0x1234fa),x(0x6,_0x450935),x(0x7,_0x6d32dc(_0x2d324d))],Me);var pi=Object[_0x568b98(0x261)],Ci=(_0x58b9e7,_0x122e62,_0x54a6e9,_0x3405a7)=>{const _0x2c3d7=_0x568b98;for(var _0x32f81a=_0x3405a7>0x1?void 0x0:_0x3405a7?pi(_0x122e62,_0x54a6e9):_0x122e62,_0xc407e5=_0x58b9e7[_0x2c3d7(0x2d9)]-0x1,_0x3601c7;_0xc407e5>=0x0;_0xc407e5--)(_0x3601c7=_0x58b9e7[_0xc407e5])&&(_0x32f81a=_0x3601c7(_0x32f81a)||_0x32f81a);return _0x32f81a;},Se=(_0x264f36,_0x5af2fe)=>(_0x4ca53e,_0x40add1)=>_0x5af2fe(_0x4ca53e,_0x40add1,_0x264f36);let H=class extends _0x4ffef8{constructor(_0x2252c0,_0x1831af,_0x1c2397){const _0x313d76=_0x568b98;super(),_(this,_0x313d76(0x233),new Map()),_(this,_0x313d76(0x165),new _0x1b2d13()),(this[_0x313d76(0x319)]=_0x2252c0,this[_0x313d76(0x1ea)]=_0x1831af,this['_collabSessionService']=_0x1c2397,this[_0x313d76(0x1e9)]());}[_0x568b98(0x24e)](){const _0x9a7fc=_0x568b98;super['dispose'](),this[_0x9a7fc(0x165)][_0x9a7fc(0x238)](),this[_0x9a7fc(0x233)][_0x9a7fc(0x153)](_0x48c671=>_0x48c671['dispose']());}[_0x568b98(0x248)](_0x2f922b){const _0x3f5619=_0x568b98;return this[_0x3f5619(0x233)][_0x3f5619(0x2c4)](_0x2f922b)?this[_0x3f5619(0x233)][_0x3f5619(0x282)](_0x2f922b)[_0x3f5619(0x1ae)]:this['_entityInit$'][_0x3f5619(0x21f)](_0x242cb5(_0xe5b21f=>_0xe5b21f['unitID']===_0x2f922b),_0x15bcfa(_0x2127b4=>_0x2127b4[_0x3f5619(0x1ae)]));}[_0x568b98(0x1e9)](){const _0xa3c9f8=_0x568b98;this[_0xa3c9f8(0x319)][_0xa3c9f8(0x19b)](_0x142ba1['UNIVER_SHEET'])[_0xa3c9f8(0x21f)](_0x37d2d6(this[_0xa3c9f8(0x2b1)]))[_0xa3c9f8(0x294)](async _0xa07adc=>{const _0x189feb=_0xa3c9f8,_0xe484de=_0xa07adc[_0x189feb(0x284)](),_0x1a92fb=await this[_0x189feb(0x245)](_0xe484de);this[_0x189feb(0x165)]['next'](_0x1a92fb),this[_0x189feb(0x233)][_0x189feb(0x214)](_0xe484de,_0x1a92fb);}),this[_0xa3c9f8(0x319)][_0xa3c9f8(0x19b)](_0x142ba1['UNIVER_DOC'])[_0xa3c9f8(0x21f)](_0x37d2d6(this['dispose$']))['pipe'](_0x242cb5(_0x2ce2b0=>!_0x2ce2b0['getUnitId']()[_0xa3c9f8(0x224)]('__')))[_0xa3c9f8(0x294)](async _0x546b76=>{const _0x493ad0=_0xa3c9f8,_0x337e21=_0x546b76[_0x493ad0(0x284)](),_0x48f28f=await this[_0x493ad0(0x32b)](_0x337e21);this[_0x493ad0(0x165)][_0x493ad0(0x27b)](_0x48f28f),this[_0x493ad0(0x233)][_0x493ad0(0x214)](_0x337e21,_0x48f28f);}),_0x1a95c3(this[_0xa3c9f8(0x319)]['getTypeOfUnitDisposed$'](_0x142ba1[_0xa3c9f8(0x196)]),this['_univerInstanceService'][_0xa3c9f8(0x330)](_0x142ba1[_0xa3c9f8(0x23a)]))[_0xa3c9f8(0x21f)](_0x37d2d6(this[_0xa3c9f8(0x2b1)]))[_0xa3c9f8(0x294)](_0x12c106=>{const _0x1bf32b=_0xa3c9f8,_0x2bda7a=_0x12c106[_0x1bf32b(0x284)](),_0x1edcaf=this[_0x1bf32b(0x233)][_0x1bf32b(0x282)](_0x2bda7a);_0x1edcaf&&(_0x1edcaf[_0x1bf32b(0x24e)](),this['_entities']['delete'](_0x2bda7a));});}async[_0x568b98(0x245)](_0x183684){const _0x2f9761=_0x568b98,_0x569c1c=await this[_0x2f9761(0x2b0)][_0x2f9761(0x28f)](_0x183684),_0x5e40c3=this[_0x2f9761(0x1ea)][_0x2f9761(0x329)](Me,_0x183684,_0x569c1c);return _0x5e40c3[_0x2f9761(0x302)](),_0x5e40c3;}async[_0x568b98(0x32b)](_0x18ac52){const _0xb01e58=_0x568b98,_0x2f99f8=await this[_0xb01e58(0x2b0)]['requireSession'](_0x18ac52),_0x24f3bf=this[_0xb01e58(0x1ea)][_0xb01e58(0x329)](Ue,_0x18ac52,_0x2f99f8);return _0x24f3bf[_0xb01e58(0x302)](),_0x24f3bf;}};function _0xdafd(_0x18476a,_0x35471d){const _0x2095ba=_0x2095();return _0xdafd=function(_0xdafd93,_0x5a3d6a){_0xdafd93=_0xdafd93-0x13d;let _0x1af345=_0x2095ba[_0xdafd93];return _0x1af345;},_0xdafd(_0x18476a,_0x35471d);}H=Ci([Se(0x0,_0x1234fa),Se(0x1,_0x6d32dc(_0x1e626a)),Se(0x2,_0x6d32dc(_0x5ae39d))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x9b8ebf,_0x2b55b0){const _0x20b051=_0x568b98;let {radius:_0x47e892,width:_0x1d7fa1,height:_0x22683a}=_0x2b55b0;_0x47e892=_0x47e892!=null?_0x47e892:0x0,_0x1d7fa1=_0x1d7fa1!=null?_0x1d7fa1:0x1e,_0x22683a=_0x22683a!=null?_0x22683a:0x1e;let _0xc16bd7=0x0,_0x5d7bd1=0x0,_0x170363=0x0;_0xc16bd7=_0x5d7bd1=_0x170363=Math[_0x20b051(0x1a0)](_0x47e892,_0x1d7fa1/0x2,_0x22683a/0x2),_0x9b8ebf[_0x20b051(0x212)](),_0x9b8ebf['moveTo'](_0xc16bd7,0x0),_0x9b8ebf[_0x20b051(0x33a)](_0x1d7fa1-_0x5d7bd1,0x0),_0x9b8ebf[_0x20b051(0x170)](_0x1d7fa1-_0x5d7bd1,_0x5d7bd1,_0x5d7bd1,Math['PI']*0x3/0x2,0x0,!0x1),_0x9b8ebf['lineTo'](_0x1d7fa1,_0x22683a-_0x170363),_0x9b8ebf[_0x20b051(0x170)](_0x1d7fa1-_0x170363,_0x22683a-_0x170363,_0x170363,0x0,Math['PI']/0x2,!0x1),_0x9b8ebf[_0x20b051(0x33a)](0x0,_0x22683a),_0x9b8ebf[_0x20b051(0x33a)](0x0,_0xc16bd7),_0x9b8ebf[_0x20b051(0x170)](_0xc16bd7,_0xc16bd7,_0xc16bd7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x9b8ebf[_0x20b051(0x14f)](),_0x2b55b0['fill']&&(_0x9b8ebf[_0x20b051(0x265)](),_0x9b8ebf['fillStyle']=_0x2b55b0[_0x20b051(0x155)],_0x2b55b0[_0x20b051(0x232)]===_0x20b051(0x20d)?_0x9b8ebf[_0x20b051(0x155)](_0x20b051(0x20d)):_0x9b8ebf[_0x20b051(0x155)](),_0x9b8ebf['restore']());}class he extends _0x5dbcdf{constructor(_0x5691ee,_0x43d686){const _0x3dcad2=_0x568b98;super(_0x5691ee,_0x43d686),_(this,'color'),_(this,_0x3dcad2(0x1f1)),(this[_0x3dcad2(0x21e)]=_0x43d686==null?void 0x0:_0x43d686['color'],this[_0x3dcad2(0x1f1)]=_0x43d686==null?void 0x0:_0x43d686[_0x3dcad2(0x1f1)]);}static[_0x568b98(0x325)](_0x4f1592,_0x432992){const _0x385bd3=_0x568b98,{text:_0x18c035,color:_0x17e5ec}=_0x432992;_0x4f1592[_0x385bd3(0x265)](),_0x4f1592[_0x385bd3(0x2ec)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2658f3=_0x4f1592[_0x385bd3(0x1ff)](_0x18c035)[_0x385bd3(0x2a0)],_0x4bd3b4=Math['min'](_0x2658f3+0x2*me,Qe);Oi(_0x4f1592,{'height':ee,'radius':0x4,'width':_0x4bd3b4,'fill':_0x17e5ec}),_0x4f1592[_0x385bd3(0x2e3)]='#FFF';const _0x130195=me,_0x2c93d0=ee-Ei,_0x176000=Qe-0x2*me;if(_0x2658f3>_0x176000){let _0x14068e='',_0x11bc6a=0x0;for(const _0x26ae17 of _0x18c035){const _0x45160b=_0x4f1592[_0x385bd3(0x1ff)](_0x26ae17)['width'];if(_0x11bc6a+_0x45160b<=_0x176000-_0x4f1592[_0x385bd3(0x1ff)](_0x385bd3(0x303))[_0x385bd3(0x2a0)])_0x14068e+=_0x26ae17,_0x11bc6a+=_0x45160b;else{_0x14068e+='...';break;}}_0x4f1592[_0x385bd3(0x33f)](_0x14068e,_0x130195,_0x2c93d0);}else _0x4f1592['fillText'](_0x18c035,_0x130195,_0x2c93d0);_0x4f1592['restore']();}[_0x568b98(0x142)](_0x11ed3a){he['drawWith'](_0x11ed3a,this);}}const ge='collab-text-anchor-',bi=_0x568b98(0x31d),Ti=_0x568b98(0x209),X=0x6,Ri=1.5,Ie=0x4,Di=1.5,Ni=_0x568b98(0x1c4);class qe{constructor(_0x456fa6,_0x4cc7cd,_0x5c1dee,_0x27532f){const _0x59dde9=_0x568b98;_(this,_0x59dde9(0x19e),[]),_(this,'_anchor',null),_(this,_0x59dde9(0x33c),null),_(this,'_anchorDot',null),_(this,_0x59dde9(0x151),null),_(this,_0x59dde9(0x2ed),null),(this[_0x59dde9(0x2b4)]=_0x456fa6,this[_0x59dde9(0x310)]=_0x4cc7cd,this[_0x59dde9(0x252)]=_0x5c1dee,this[_0x59dde9(0x148)]=_0x27532f,this[_0x59dde9(0x2a8)]());}set['_hover'](_0x523491){const _0x5e79fe=_0x568b98;_0x523491?(this[_0x5e79fe(0x257)]&&this[_0x5e79fe(0x257)]['hide'](),this[_0x5e79fe(0x33c)]&&this['_textBubble'][_0x5e79fe(0x27d)]()):(this[_0x5e79fe(0x257)]&&this[_0x5e79fe(0x257)][_0x5e79fe(0x27d)](),this[_0x5e79fe(0x33c)]&&this[_0x5e79fe(0x33c)][_0x5e79fe(0x2af)]());}[_0x568b98(0x24e)](){const _0x5e3795=_0x568b98;for(const _0x5ab817 of this[_0x5e3795(0x19e)])_0x5ab817['dispose']();this[_0x5e3795(0x33c)]&&this[_0x5e3795(0x33c)]['dispose'](),this['_anchorDot']&&this[_0x5e3795(0x257)][_0x5e3795(0x24e)](),this[_0x5e3795(0x1fe)]&&this[_0x5e3795(0x1fe)][_0x5e3795(0x24e)](),this['_eventUnsubscribe']&&this[_0x5e3795(0x2ed)]();}[_0x568b98(0x2a8)](){const _0x87107e=_0x568b98;var _0x384920;const {_docSkeleton:_0x483f1e,_document:_0x7b77b}=this,{color:_0x4b051a,name:_0x515ebc,ranges:_0x1b77cb}=this[_0x87107e(0x2b4)],_0x2ea116=_0x7b77b[_0x87107e(0x17f)](),{docsLeft:_0xc8dca6,docsTop:_0x1c3064}=_0x2ea116,_0x1bb30b=new _0x532758(_0x2ea116,_0x483f1e);for(const {startOffset:_0x5c9261,endOffset:_0x1b7966,rangeType:_0x3a2588,segmentId:_0x24e795,segmentPage:_0x4b7493,collapsed:_0x23ef6a,isActive:_0x2507ac}of _0x1b77cb){const _0xb4a3b4=_0x483f1e[_0x87107e(0x2ce)](_0x5c9261,!0x0,_0x24e795,_0x4b7493);let _0x272f55=_0x483f1e[_0x87107e(0x2ce)](_0x1b7966,!0x0,_0x24e795,_0x4b7493);if(_0x272f55==null&&(_0x272f55=_0x483f1e['findNodePositionByCharIndex'](_0x1b7966-0x1,!0x1,_0x24e795,_0x4b7493)),_0x2507ac){const {contentBoxPointGroup:_0x2d7026}=_0x1bb30b[_0x87107e(0x222)](_0x272f55,_0x272f55);if(_0x2d7026[_0x87107e(0x2d9)]===0x0)continue;this[_0x87107e(0x2a5)](_0x4b051a,_0x2d7026,_0xc8dca6,_0x1c3064,_0x515ebc),this[_0x87107e(0x2ed)]=this['_handleHover']();}if(_0xb4a3b4&&_0x272f55){if(_0x3a2588===_0x1f3f3d[_0x87107e(0x14b)]){const _0x2e8c5f=new _0x1d1cb9(_0x2ea116,_0x483f1e),{pointGroup:_0x5535df}=(_0x384920=_0x2e8c5f[_0x87107e(0x222)](_0xb4a3b4,_0x272f55))!=null?_0x384920:{};if(_0x5535df==null||_0x5535df[_0x87107e(0x2d9)]===0x0)continue;this[_0x87107e(0x23c)](_0x4b051a,_0x5535df,_0xc8dca6,_0x1c3064);}else{if(!_0x23ef6a){const {borderBoxPointGroup:_0x51326b}=_0x1bb30b['getRangePointData'](_0xb4a3b4,_0x272f55);if(_0x51326b[_0x87107e(0x2d9)]===0x0)continue;this['_drawTextRange'](_0x4b051a,_0x51326b,_0xc8dca6,_0x1c3064);}}}}}[_0x568b98(0x2a5)](_0xda5f5c,_0x28329,_0x21fedb,_0x4c26a8,_0x273699){const _0x36648=_0x568b98,_0x360326=this[_0x36648(0x308)](_0x28329),{left:_0xd78655,top:_0x29cc51,height:_0x3a2695}=_0x360326,_0x3913ff=this[_0x36648(0x25e)](),_0x23ede8=Di/_0x3913ff,_0x4ad5cb=new _0x2e1f81(ge+_0x4ce80e[_0x36648(0x1e4)](X),{'left':_0xd78655+_0x21fedb-_0x23ede8,'top':_0x29cc51+_0x4c26a8,'height':_0x3a2695,'width':Ri,'fill':_0xda5f5c||_0x370534(_0x3530f0[_0x36648(0x2bd)],0x0),'strokeWidth':_0x23ede8,'stroke':Ni,'evented':!0x0});this['_anchor']=_0x4ad5cb,this['_scene'][_0x36648(0x286)](_0x4ad5cb,_0x56e242);const _0x937913=new _0x2e1f81(ge+_0x4ce80e[_0x36648(0x1e4)](X),{'left':_0xd78655+_0x21fedb-_0x23ede8,'top':_0x29cc51+_0x4c26a8-Ie/0x2,'height':Ie,'width':Ie,'fill':_0xda5f5c||_0x370534(_0x3530f0[_0x36648(0x2bd)],0x0),'strokeWidth':0x0,'stroke':_0xda5f5c||_0x370534(_0x3530f0[_0x36648(0x2bd)],0x0),'evented':!0x1});this[_0x36648(0x257)]=_0x937913,this[_0x36648(0x310)][_0x36648(0x286)](_0x937913,_0x56e242);const _0x496646=new he(ge+_0x4ce80e[_0x36648(0x1e4)](X),{'left':_0xd78655+_0x21fedb-_0x23ede8,'top':_0x29cc51+_0x4c26a8-ee,'text':_0x273699,'color':_0xda5f5c});this['_textBubble']=_0x496646,this[_0x36648(0x310)][_0x36648(0x286)](_0x496646,_0x56e242),this['_hover']=!0x1;}[_0x568b98(0x297)](){const _0x529419=_0x568b98,_0x5ee5b6=this[_0x529419(0x1fe)]['onPointerEnter$'][_0x529419(0x227)](()=>{const _0x1704ad=_0x529419;this[_0x1704ad(0x204)]=!0x0;}),_0x2e53d0=this[_0x529419(0x1fe)][_0x529419(0x154)]['subscribeEvent'](()=>{const _0x41e6ed=_0x529419;this[_0x41e6ed(0x151)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x40bb32=_0x41e6ed;this[_0x40bb32(0x204)]=!0x1;},0x7d0);});return()=>{const _0x44b32c=_0x529419;_0x5ee5b6[_0x44b32c(0x296)](),_0x2e53d0[_0x44b32c(0x296)]();};}['_drawTextRange'](_0x1704bd,_0x3d25b1,_0x4b66e9,_0x377386){const _0x28bcd7=_0x568b98,_0x34dfc4=new _0x2ee150(_0x1704bd)[_0x28bcd7(0x162)](0.2)[_0x28bcd7(0x2c8)](),_0x2ff431=new _0x322c0e(bi+_0x4ce80e[_0x28bcd7(0x1e4)](X),{'pointsGroup':_0x3d25b1,'fill':_0x34dfc4||_0x370534(_0x3530f0[_0x28bcd7(0x2bd)],0.2),'left':_0x4b66e9,'top':_0x377386,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x28bcd7(0x19e)][_0x28bcd7(0x171)](_0x2ff431),this[_0x28bcd7(0x310)][_0x28bcd7(0x286)](_0x2ff431,_0x56e242);}['_drawRectRange'](_0x3c8906,_0x1b8d12,_0x3dea67,_0x153cb2){const _0x450b6d=_0x568b98,_0x4790bf=new _0x2ee150(_0x3c8906)[_0x450b6d(0x162)](0.2)[_0x450b6d(0x2c8)](),_0x44e281=new _0x322c0e(Ti+_0x4ce80e['generateRandomId'](X),{'pointsGroup':_0x1b8d12,'fill':_0x4790bf||_0x370534(_0x3530f0[_0x450b6d(0x2bd)],0.2),'left':_0x3dea67,'top':_0x153cb2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x450b6d(0x171)](_0x44e281),this[_0x450b6d(0x310)][_0x450b6d(0x286)](_0x44e281,_0x56e242);}[_0x568b98(0x308)](_0x3adfca){const _0x449b69=_0x3adfca[0x0],_0x56f468=_0x449b69[0x0],_0x44a824=_0x449b69[0x2],{x:_0x4e34c2,y:_0x5995e0}=_0x56f468,{x:_0x4996fa,y:_0x4c6078}=_0x44a824;return{'left':_0x4e34c2,'top':_0x5995e0,'width':_0x4996fa-_0x4e34c2,'height':_0x4c6078-_0x5995e0};}[_0x568b98(0x25e)](){const _0x413b5a=_0x568b98,{scaleX:_0x5162e4,scaleY:_0x1b0307}=this[_0x413b5a(0x310)][_0x413b5a(0x2d6)]();return Math[_0x413b5a(0x210)](_0x5162e4,_0x1b0307);}}var Ui=Object[_0x568b98(0x261)],Mi=(_0x370b0f,_0x3fc972,_0x10a4b4,_0x477e55)=>{const _0x5eaaeb=_0x568b98;for(var _0x3c4689=_0x477e55>0x1?void 0x0:_0x477e55?Ui(_0x3fc972,_0x10a4b4):_0x3fc972,_0x581af5=_0x370b0f[_0x5eaaeb(0x2d9)]-0x1,_0x32decd;_0x581af5>=0x0;_0x581af5--)(_0x32decd=_0x370b0f[_0x581af5])&&(_0x3c4689=_0x32decd(_0x3c4689)||_0x3c4689);return _0x3c4689;},Z=(_0x5cabfb,_0x1cefc5)=>(_0x4c9b64,_0x416dad)=>_0x1cefc5(_0x4c9b64,_0x416dad,_0x5cabfb);let Pe=class extends _0x4ffef8{constructor(_0xbcb093,_0x3a4ab9,_0x22ec4b,_0x3e891d,_0x288ff3){const _0x482845=_0x568b98;super(),_(this,_0x482845(0x1ba),[]),_(this,_0x482845(0x1ed),[]),(this[_0x482845(0x1ef)]=_0xbcb093,this['_docSkeletonManagerService']=_0x3a4ab9,this[_0x482845(0x1d2)]=_0x22ec4b,this[_0x482845(0x31a)]=_0x3e891d,this['_themeService']=_0x288ff3,this[_0x482845(0x1e9)]());}['_init'](){const _0x3814a0=_0x568b98,_0x2962bd=this[_0x3814a0(0x1ef)][_0x3814a0(0x33b)],_0x2db7bd=this['_docSkeletonManagerService'];this[_0x3814a0(0x219)](_0x321be4([this['_collabCursorController']['getCollabCursors$'](_0x2962bd),this[_0x3814a0(0x2f2)]['currentTheme$']])[_0x3814a0(0x21f)](_0xb8b86(([_0x1244e6,_0x5841ad])=>({'skeleton':_0x2db7bd[_0x3814a0(0x26d)](),'cursors':[..._0x1244e6['values']()][_0x3814a0(0x1fa)](_0x424f5f=>({..._0x424f5f,'color':this['_themeService']['getColorFromTheme'](_0x424f5f[_0x3814a0(0x21e)])}))})))['subscribe'](_0x3acb2b=>{const _0x3292a9=_0x3814a0;if(this[_0x3292a9(0x311)](),_0x3acb2b){const {skeleton:_0x1803cc,cursors:_0x193083}=_0x3acb2b;this['_updateCollabCursors'](_0x1803cc,_0x193083);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x568b98(0x1c6)](_0x332bff,_0xbb1131){const _0x33db70=_0x568b98,{scene:_0x1ae6ba,mainComponent:_0xc7d0e3}=this[_0x33db70(0x1ef)],_0x1af33c=_0xbb1131[_0x33db70(0x2ad)](_0x4ef5ba=>new qe(_0x4ef5ba,_0x1ae6ba,_0x332bff,_0xc7d0e3));this[_0x33db70(0x1ba)]=_0x1af33c,this[_0x33db70(0x1ed)]=_0xbb1131;}[_0x568b98(0x1c0)](){const _0x4a5f9c=_0x568b98;this['_removeCollabCursors']();const {scene:_0x2ef3a6,mainComponent:_0x36ff20}=this['_context'],_0x550f98=this[_0x4a5f9c(0x186)][_0x4a5f9c(0x26d)](),_0x3f0e9d=this['_cursors'][_0x4a5f9c(0x2ad)](_0x1a6bee=>new qe(_0x1a6bee,_0x2ef3a6,_0x550f98,_0x36ff20));this[_0x4a5f9c(0x1ba)]=_0x3f0e9d;}[_0x568b98(0x311)](){const _0x59983d=_0x568b98;this[_0x59983d(0x1ba)]['forEach'](_0x425347=>_0x425347[_0x59983d(0x24e)]()),this[_0x59983d(0x1ba)]=[];}['_initCommandExecutedListener'](){const _0x24a068=_0x568b98,_0x3815e4=[_0x5e04db['id']];this[_0x24a068(0x219)](this[_0x24a068(0x31a)][_0x24a068(0x184)](_0x4fc4c5=>{const _0x1634be=_0x24a068;_0x3815e4[_0x1634be(0x2b3)](_0x4fc4c5['id'])&&_0x4fc4c5[_0x1634be(0x2ff)][_0x1634be(0x33b)]===this[_0x1634be(0x1ef)][_0x1634be(0x33b)]&&this[_0x1634be(0x1c0)]();}));}[_0x568b98(0x1cb)](){const _0x560bc0=_0x568b98;this[_0x560bc0(0x219)](_0x4d8be1(this[_0x560bc0(0x1ef)][_0x560bc0(0x1a2)][_0x560bc0(0x2b8)])[_0x560bc0(0x21f)](_0x3a7855(_0x21c577=>_0x21c577['type']===_0x1d0f06[_0x560bc0(0x1b9)]),_0x20128c(0x10))[_0x560bc0(0x294)](()=>{const _0x27e811=_0x560bc0;this[_0x27e811(0x1c0)]();}));}};Pe=Mi([Z(0x1,_0x6d32dc(_0x1afc74)),Z(0x2,_0x6d32dc(H)),Z(0x3,_0x450935),Z(0x4,_0x6d32dc(_0x507dc3))],Pe);const Pi=0x1,Li=1.5;class wi extends _0x5dbcdf{constructor(_0x4101b1,_0x475443){const _0x55073a=_0x568b98;super(_0x4101b1,_0x475443),_(this,_0x55073a(0x17d)),_(this,_0x55073a(0x2b9),!0x1),_(this,_0x55073a(0x18f)),_(this,_0x55073a(0x2c3),''),_(this,_0x55073a(0x13f),_0x55073a(0x1a4)),_(this,_0x55073a(0x182)),(_0x475443&&this[_0x55073a(0x225)](_0x475443),this[_0x55073a(0x314)]['subscribeEvent'](()=>this[_0x55073a(0x225)]({'hovered':!0x0})),this[_0x55073a(0x154)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x568b98(0x225)](_0x31bd1f){const _0x364d20=_0x568b98;var _0x3f8aef,_0x26c1bc,_0x26bb51,_0x3ce8e0,_0x20a564,_0x212f33;this[_0x364d20(0x17d)]=(_0x3f8aef=_0x31bd1f[_0x364d20(0x21e)])!=null?_0x3f8aef:this[_0x364d20(0x17d)],this[_0x364d20(0x2b9)]=(_0x26c1bc=_0x31bd1f[_0x364d20(0x17b)])!=null?_0x26c1bc:this[_0x364d20(0x2b9)],this[_0x364d20(0x18f)]=(_0x26bb51=_0x31bd1f['range'])!=null?_0x26bb51:this[_0x364d20(0x18f)],this[_0x364d20(0x2c3)]=(_0x3ce8e0=_0x31bd1f[_0x364d20(0x201)])!=null?_0x3ce8e0:this['_name'],this[_0x364d20(0x13f)]=(_0x20a564=_0x31bd1f[_0x364d20(0x305)])!=null?_0x20a564:this[_0x364d20(0x13f)],this[_0x364d20(0x182)]=(_0x212f33=_0x31bd1f[_0x364d20(0x1b5)])!=null?_0x212f33:this[_0x364d20(0x182)],this[_0x364d20(0x339)]({'width':_0x31bd1f[_0x364d20(0x2a0)],'height':_0x31bd1f[_0x364d20(0x24d)]});}[_0x568b98(0x2ba)](_0x137672){const _0x3b7059=_0x568b98,{row:_0x3f5313,column:_0x3d8316}=_0x137672;if(_0x3f5313>=this['_range'][_0x3b7059(0x1f3)]&&_0x3f5313<=this[_0x3b7059(0x18f)][_0x3b7059(0x1f4)]&&_0x3d8316>=this['_range'][_0x3b7059(0x147)]&&_0x3d8316<=this[_0x3b7059(0x18f)]['endColumn']){this[_0x3b7059(0x225)]({'hovered':!0x0});return;}this[_0x3b7059(0x225)]({'hovered':!0x1});}['triggerDblclick'](_0x5c77b5){return!0x1;}[_0x568b98(0x142)](_0x4e4c6b){const _0x24aa9d=_0x568b98;_0x2e1f81[_0x24aa9d(0x325)](_0x4e4c6b,{'width':this[_0x24aa9d(0x2a0)],'height':this[_0x24aa9d(0x24d)],'strokeWidth':Li,'stroke':this[_0x24aa9d(0x17d)],'evented':!0x1,'fill':this[_0x24aa9d(0x182)]}),this[_0x24aa9d(0x2b9)]&&(_0x4e4c6b[_0x24aa9d(0x265)](),_0x4e4c6b[_0x24aa9d(0x1ec)](0x1,0x0,0x0,0x1,this[_0x24aa9d(0x2a0)],this[_0x24aa9d(0x13f)]===_0x24aa9d(0x229)?0x0:-0x14),he[_0x24aa9d(0x325)](_0x4e4c6b,{'text':this['_name'],'color':this[_0x24aa9d(0x17d)]}),_0x4e4c6b[_0x24aa9d(0x271)]());}}var Ai=Object['getOwnPropertyDescriptor'],yi=(_0x240114,_0x12230d,_0x31e60a,_0x34dc87)=>{const _0x2b1452=_0x568b98;for(var _0x20865a=_0x34dc87>0x1?void 0x0:_0x34dc87?Ai(_0x12230d,_0x31e60a):_0x12230d,_0x14ea92=_0x240114[_0x2b1452(0x2d9)]-0x1,_0x596620;_0x14ea92>=0x0;_0x14ea92--)(_0x596620=_0x240114[_0x14ea92])&&(_0x20865a=_0x596620(_0x20865a)||_0x20865a);return _0x20865a;},ve=(_0x34928f,_0x23ca01)=>(_0xf71665,_0x32df10)=>_0x23ca01(_0xf71665,_0x32df10,_0x34928f);const $i=0x1389;let Le=class extends _0x4ffef8{constructor(_0x1046fd,_0x1f6131,_0x371e49,_0x17a943){const _0x25093d=_0x568b98;super(),_(this,'_cursors',new Set()),_(this,_0x25093d(0x169),null),(this[_0x25093d(0x1ef)]=_0x1046fd,this['_sheetSkeletonManagerService']=_0x1f6131,this[_0x25093d(0x1d2)]=_0x371e49,this[_0x25093d(0x2f2)]=_0x17a943,this[_0x25093d(0x1e9)]());}[_0x568b98(0x1e9)](){const _0x17e948=_0x568b98;this[_0x17e948(0x2a2)]['currentSkeleton$']['pipe'](_0x257644(this[_0x17e948(0x2b1)]),_0x5ecea1(_0x3b9d07=>{const _0xd8b3ce=_0x17e948;if(_0x3b9d07){const _0x33e9e9=_0x3b9d07[_0xd8b3ce(0x2d3)];return _0x321be4(this[_0xd8b3ce(0x1d2)]['getCollabCursors$'](this[_0xd8b3ce(0x1ef)]['unitId']),this[_0xd8b3ce(0x2f2)]['currentTheme$'])[_0xd8b3ce(0x21f)](_0xb8b86(([_0x34a712,_0x145bad])=>{const _0x2cb378=_0xd8b3ce,_0x317cd1=new Map();return _0x34a712[_0x2cb378(0x153)]((_0x5e918c,_0x3a892f)=>{const _0x49c9a3=_0x2cb378;if(_0x5e918c[_0x49c9a3(0x333)]===_0x33e9e9){const _0x1ce051={..._0x5e918c};_0x1ce051[_0x49c9a3(0x21e)]=this['_themeService'][_0x49c9a3(0x198)](_0x5e918c['color']),_0x317cd1[_0x49c9a3(0x214)](_0x3a892f,_0x1ce051);}}),{'skeleton':_0x3b9d07,'cursors':_0x317cd1};}));}return _0x5ba222({'skeleton':null,'cursors':new Map()});}))[_0x17e948(0x294)](({skeleton:_0x263d0c,cursors:_0x3ebb39})=>{const _0x1f36f1=_0x17e948;this[_0x1f36f1(0x311)](),_0x263d0c&&this[_0x1f36f1(0x1c6)](_0x263d0c,_0x3ebb39);}),this[_0x17e948(0x2a2)][_0x17e948(0x23d)][_0x17e948(0x294)](_0x39ce65=>{const _0x4102d4=_0x17e948;if(_0x39ce65==null)return;const {skeleton:_0x1986af}=_0x39ce65,{scene:_0x4d2dae}=this[_0x4102d4(0x1ef)];_0x4d2dae[_0x4102d4(0x173)][_0x4102d4(0x227)](_0x23dd0f(_0x57a001=>{const _0x3a95d8=_0x4102d4;var _0x2522ab,_0x4f9dc8;const {offsetX:_0x3a7ab6,offsetY:_0x5bc1ba}=_0x57a001,{x:_0x5a9c10,y:_0x25a33c}=_0x4d2dae[_0x3a95d8(0x220)](_0xba7c2[_0x3a95d8(0x18d)]([_0x3a7ab6,_0x5bc1ba])),{scaleX:_0x58ce6f,scaleY:_0x37d1b0}=_0x4d2dae['getAncestorScale'](),_0x5eedf2=_0x4d2dae[_0x3a95d8(0x2d4)](_0x51dbc8[_0x3a95d8(0x27e)]),_0x1425e3=_0x4d2dae[_0x3a95d8(0x2bf)](_0xba7c2[_0x3a95d8(0x18d)]([_0x5a9c10,_0x25a33c]),_0x5eedf2),_0x2e4753=_0x1986af[_0x3a95d8(0x32e)](_0x3a7ab6,_0x5bc1ba,_0x58ce6f,_0x37d1b0,_0x1425e3);((_0x2522ab=this['_lastPointer'])==null?void 0x0:_0x2522ab[_0x3a95d8(0x258)])===_0x2e4753['column']&&((_0x4f9dc8=this[_0x3a95d8(0x169)])==null?void 0x0:_0x4f9dc8['row'])===_0x2e4753['row']||this['_cursors'][_0x3a95d8(0x153)](_0x332dc4=>{const _0x55aab7=_0x3a95d8;_0x332dc4[_0x55aab7(0x2ba)](_0x2e4753);});},0x64));});}['_updateCollabCursors'](_0x1fcf4a,_0x4d2f48){const _0x565d6a=_0x568b98;var _0x359ccb;const _0x2a2815=(_0x359ccb=this['_sheetSkeletonManagerService'][_0x565d6a(0x2fb)]())==null?void 0x0:_0x359ccb['skeleton'];if(!_0x2a2815)return;const _0x405f68=this[_0x565d6a(0x1ac)]();if(!_0x405f68)return;this[_0x565d6a(0x1ed)][_0x565d6a(0x153)](_0x1368cf=>{const _0x1ff984=_0x565d6a;_0x1368cf[_0x1ff984(0x1a1)]();});const {scene:_0x1945b4}=_0x405f68,_0xd7e235=xi(Array['from'](_0x4d2f48[_0x565d6a(0x2b6)]()))[_0x565d6a(0x2ad)](_0x56e9fb=>{const _0x357e9a=_0x565d6a,{color:_0x267e74,range:_0x5e5e0b,name:_0x229c17,selection:_0x5dcd74,sheetID:_0x1543bb}=_0x56e9fb,{startColumn:_0x2d03af,startRow:_0x41eadf,endColumn:_0x49539b,endRow:_0xdae01a}=_0x5e5e0b,_0x2c1320=_0x32fc47(_0x41eadf,_0x2d03af,_0x1945b4,_0x2a2815),_0x55be59=_0x32fc47(_0xdae01a,_0x49539b,_0x1945b4,_0x2a2815),{columnHeaderHeightAndMarginTop:_0x1c7b14}=_0x2a2815,{startX:_0x2a16ef,startY:_0x214d18}=_0x2c1320,{endX:_0x22574a,endY:_0x3d5911}=_0x55be59,_0x59b96e=_0x22574a-_0x2a16ef,_0xc24442=_0x3d5911-_0x214d18,_0x2ea05e={'labelPosition':_0x214d18-_0x1c7b14>=ee?_0x357e9a(0x1a4):'bottom','sheetID':_0x1543bb,'range':_0x5e5e0b,'color':_0x267e74,'name':_0x229c17,'selection':_0x5dcd74,'left':_0x2a16ef,'top':_0x214d18,'width':_0x59b96e,'height':_0xc24442,'evented':!0x1,'zIndex':$i};return new wi(_0x229c17,_0x2ea05e);});_0x1945b4[_0x565d6a(0x24a)](_0xd7e235,Pi),this[_0x565d6a(0x1ed)]=new Set(_0xd7e235);}['_removeCollabCursors'](){const _0x4d8565=_0x568b98;var _0x341f31;(_0x341f31=this[_0x4d8565(0x1ed)])==null||_0x341f31['forEach'](_0x8c2803=>_0x8c2803[_0x4d8565(0x24e)]());}['_getSheetObject'](){const _0x5d034f=_0x568b98;return _0x1bd9f1(this[_0x5d034f(0x1ef)][_0x5d034f(0x28c)],this[_0x5d034f(0x1ef)]);}};Le=yi([ve(0x1,_0x6d32dc(_0x45c7b5)),ve(0x2,_0x6d32dc(H)),ve(0x3,_0x6d32dc(_0x507dc3))],Le);function xi(_0x140022){const _0x262dca=_0x568b98,_0x23c189=new Map();return _0x140022['forEach'](_0x1587bd=>{const _0x52a6ed=_0xdafd;if(_0x23c189[_0x52a6ed(0x2c4)](_0x1587bd[_0x52a6ed(0x215)])){const _0x493527=_0x23c189[_0x52a6ed(0x282)](_0x1587bd[_0x52a6ed(0x215)]);_0x493527[_0x52a6ed(0x201)]+=',\x20'+_0x1587bd[_0x52a6ed(0x201)];}else _0x23c189['set'](_0x1587bd['selection'],_0x1587bd);}),Array[_0x262dca(0x188)](_0x23c189['values']());}var v=function(){const _0x39ff54=_0x568b98;return v=Object[_0x39ff54(0x29a)]||function(_0x572ac2){const _0x5cfdf2=_0x39ff54;for(var _0x3ba608,_0x28f172=0x1,_0x3bc246=arguments['length'];_0x28f172<_0x3bc246;_0x28f172++){_0x3ba608=arguments[_0x28f172];for(var _0x443dd2 in _0x3ba608)Object[_0x5cfdf2(0x1e6)][_0x5cfdf2(0x2a1)][_0x5cfdf2(0x281)](_0x3ba608,_0x443dd2)&&(_0x572ac2[_0x443dd2]=_0x3ba608[_0x443dd2]);}return _0x572ac2;},v['apply'](this,arguments);},Bi=function(_0x2868a8,_0x1920de){const _0x337616=_0x568b98;var _0x591d36={};for(var _0x84efd8 in _0x2868a8)Object[_0x337616(0x1e6)][_0x337616(0x2a1)]['call'](_0x2868a8,_0x84efd8)&&_0x1920de[_0x337616(0x2e6)](_0x84efd8)<0x0&&(_0x591d36[_0x84efd8]=_0x2868a8[_0x84efd8]);if(_0x2868a8!=null&&typeof Object[_0x337616(0x22a)]=='function'){for(var _0x396be7=0x0,_0x84efd8=Object[_0x337616(0x22a)](_0x2868a8);_0x396be7<_0x84efd8[_0x337616(0x2d9)];_0x396be7++)_0x1920de[_0x337616(0x2e6)](_0x84efd8[_0x396be7])<0x0&&Object[_0x337616(0x1e6)][_0x337616(0x187)][_0x337616(0x281)](_0x2868a8,_0x84efd8[_0x396be7])&&(_0x591d36[_0x84efd8[_0x396be7]]=_0x2868a8[_0x84efd8[_0x396be7]]);}return _0x591d36;},je=_0x2e9c63(function(_0x5bc491,_0x14ede1){const _0xf5d3ab=_0x568b98;var _0x442eda=_0x5bc491['icon'],_0x424902=_0x5bc491['id'],_0x203ad9=_0x5bc491[_0xf5d3ab(0x33d)],_0x45fb80=_0x5bc491['extend'],_0xee1616=Bi(_0x5bc491,['icon','id',_0xf5d3ab(0x33d),_0xf5d3ab(0x18b)]),_0x3bce7d=_0xf5d3ab(0x1d7)[_0xf5d3ab(0x2fd)](_0x424902,'\x20')[_0xf5d3ab(0x2fd)](_0x203ad9||'')[_0xf5d3ab(0x1ee)](),_0x426a9e=_0x3ccda1('_'[_0xf5d3ab(0x2fd)](ji()));return Rt(_0x442eda,''['concat'](_0x424902),{'defIds':_0x442eda['defIds'],'idSuffix':_0x426a9e['current']},v({'ref':_0x14ede1,'className':_0x3bce7d},_0xee1616),_0x45fb80);});function Rt(_0x1988ce,_0x53ebaf,_0x2a438b,_0x149d82,_0x40771d){const _0x5d3616=_0x568b98;return _0x332d39(_0x1988ce['tag'],v(v({'key':_0x53ebaf},ki(_0x1988ce,_0x2a438b,_0x40771d)),_0x149d82),(Hi(_0x1988ce,_0x2a438b)['children']||[])[_0x5d3616(0x2ad)](function(_0x40bd27,_0x545764){const _0xdf8478=_0x5d3616;return Rt(_0x40bd27,''[_0xdf8478(0x2fd)](_0x53ebaf,'-')[_0xdf8478(0x2fd)](_0x1988ce[_0xdf8478(0x306)],'-')[_0xdf8478(0x2fd)](_0x545764),_0x2a438b,void 0x0,_0x40771d);}));}function ki(_0x1ffe5a,_0x5986fa,_0x17f8a4){const _0x56f657=_0x568b98;var _0x1e5ac2=v({},_0x1ffe5a[_0x56f657(0x251)]);_0x17f8a4!=null&&_0x17f8a4[_0x56f657(0x288)]&&_0x1e5ac2['fill']===_0x56f657(0x288)&&(_0x1e5ac2[_0x56f657(0x155)]=_0x17f8a4['colorChannel1']),_0x1ffe5a['tag']===_0x56f657(0x2fa)&&_0x1e5ac2['id']&&(_0x1e5ac2['id']=_0x1e5ac2['id']+_0x5986fa['idSuffix']),Object['entries'](_0x1e5ac2)[_0x56f657(0x153)](function(_0x5a84d0){const _0x134477=_0x56f657;var _0x3ba4e2=_0x5a84d0[0x0],_0x4cf1a6=_0x5a84d0[0x1];_0x3ba4e2===_0x134477(0x2fa)&&typeof _0x4cf1a6==_0x134477(0x2da)&&(_0x1e5ac2[_0x3ba4e2]=_0x4cf1a6['replace'](/url\(#(.*)\)/,_0x134477(0x2a3)[_0x134477(0x2fd)](_0x5986fa[_0x134477(0x2e5)],')')));});var _0x768c46=_0x5986fa['defIds'];return!_0x768c46||_0x768c46['length']===0x0||(_0x1ffe5a[_0x56f657(0x306)]==='use'&&_0x1e5ac2[_0x56f657(0x28e)]&&(_0x1e5ac2['xlink:href']=_0x1e5ac2['xlink:href']+_0x5986fa[_0x56f657(0x2e5)]),Object[_0x56f657(0x217)](_0x1e5ac2)['forEach'](function(_0x13e83b){const _0x36ab4a=_0x56f657;var _0x16e1af=_0x13e83b[0x0],_0x205f0f=_0x13e83b[0x1];typeof _0x205f0f=='string'&&(_0x1e5ac2[_0x16e1af]=_0x205f0f['replace'](/url\(#(.*)\)/,_0x36ab4a(0x2a3)[_0x36ab4a(0x2fd)](_0x5986fa['idSuffix'],')')));})),_0x1e5ac2;}function Hi(_0x1ca4b6,_0x2b9486){const _0x3ab28f=_0x568b98;var _0x23cea1,_0x459323=_0x2b9486[_0x3ab28f(0x342)];return!_0x459323||_0x459323[_0x3ab28f(0x2d9)]===0x0?_0x1ca4b6:_0x1ca4b6[_0x3ab28f(0x306)]===_0x3ab28f(0x25d)&&(!((_0x23cea1=_0x1ca4b6[_0x3ab28f(0x161)])===null||_0x23cea1===void 0x0)&&_0x23cea1[_0x3ab28f(0x2d9)])?v(v({},_0x1ca4b6),{'children':_0x1ca4b6[_0x3ab28f(0x161)][_0x3ab28f(0x2ad)](function(_0x3be3a2){const _0x2ee425=_0x3ab28f;return typeof _0x3be3a2[_0x2ee425(0x251)]['id']==_0x2ee425(0x2da)&&_0x459323&&_0x459323['indexOf'](_0x3be3a2[_0x2ee425(0x251)]['id'])>-0x1?v(v({},_0x3be3a2),{'attrs':v(v({},_0x3be3a2['attrs']),{'id':_0x3be3a2[_0x2ee425(0x251)]['id']+_0x2b9486['idSuffix']})}):_0x3be3a2;})}):_0x1ca4b6;}function ji(){const _0x4973a7=_0x568b98;return Math[_0x4973a7(0x2ea)]()['toString'](0x24)[_0x4973a7(0x1c3)](0x2,0x8);}je[_0x568b98(0x19a)]=_0x568b98(0x1e2);var Yi={'tag':_0x568b98(0x20b),'attrs':{'fill':_0x568b98(0x335),'viewBox':_0x568b98(0x264),'width':'1em','height':_0x568b98(0x2f1)},'children':[{'tag':'g','attrs':{'clipPath':_0x568b98(0x237)},'children':[{'tag':_0x568b98(0x2f7),'attrs':{'stroke':_0x568b98(0x2cc),'d':_0x568b98(0x1de),'strokeLinecap':_0x568b98(0x1c5),'strokeLinejoin':_0x568b98(0x1c5),'strokeWidth':1.2}}]},{'tag':_0x568b98(0x25d),'attrs':{},'children':[{'tag':_0x568b98(0x160),'attrs':{'id':_0x568b98(0x2d1)},'children':[{'tag':'path','attrs':{'fill':_0x568b98(0x32d),'d':_0x568b98(0x256)}}]}]}],'defIds':[_0x568b98(0x2d1)]},Dt=_0x2e9c63(function(_0x3cd4ec,_0x11f08f){const _0x39e8e1=_0x568b98;return _0x332d39(je,Object['assign']({},_0x3cd4ec,{'id':_0x39e8e1(0x290),'ref':_0x11f08f,'icon':Yi}));});Dt[_0x568b98(0x19a)]=_0x568b98(0x202);var Fi={'tag':_0x568b98(0x20b),'attrs':{'fill':_0x568b98(0x335),'viewBox':'0\x200\x2017\x2016','width':_0x568b98(0x2f1),'height':_0x568b98(0x2f1)},'children':[{'tag':'g','attrs':{'clipPath':_0x568b98(0x18a)},'children':[{'tag':_0x568b98(0x2f7),'attrs':{'stroke':_0x568b98(0x2cc),'d':_0x568b98(0x211),'strokeLinecap':_0x568b98(0x1c5),'strokeLinejoin':_0x568b98(0x1c5),'strokeWidth':1.2}}]},{'tag':_0x568b98(0x25d),'attrs':{},'children':[{'tag':_0x568b98(0x160),'attrs':{'id':_0x568b98(0x22d)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x568b98(0x256),'transform':_0x568b98(0x27f)}}]}]}],'defIds':[_0x568b98(0x22d)]},Nt=_0x2e9c63(function(_0x1ac061,_0x3a1ea8){const _0x351d8a=_0x568b98;return _0x332d39(je,Object['assign']({},_0x1ac061,{'id':_0x351d8a(0x277),'ref':_0x3a1ea8,'icon':Fi}));});Nt[_0x568b98(0x19a)]=_0x568b98(0x267);function Wi(_0xfa8643){const _0x5120ff=_0x568b98;switch(_0xfa8643){case _0xa23b9e[_0x5120ff(0x2e2)]:return _0x5120ff(0x32f);case _0xa23b9e['CONFLICT']:return _0x5120ff(0x272);case _0xa23b9e[_0x5120ff(0x254)]:return _0x5120ff(0x2f6);case _0xa23b9e['NOT_COLLAB']:return _0x5120ff(0x2cf);case _0xa23b9e[_0x5120ff(0x218)]:case _0xa23b9e[_0x5120ff(0x249)]:return _0x5120ff(0x159);case _0xa23b9e[_0x5120ff(0x193)]:case _0xa23b9e['PENDING']:return _0x5120ff(0x163);}}function Vi(_0x5a1cc3){const _0x436a7e=_0x568b98,{status$:_0x2055c5}=_0x5a1cc3,_0x50554b=_0x20cba3(_0x2055c5,_0xa23b9e[_0x436a7e(0x200)]),_0x231e68=_0x1eb7bd(_0x4b501d),_0x136dbb=_0x1eb7bd(_0x5ae39d),_0x343e84=_0x50554b!==_0xa23b9e[_0x436a7e(0x2e2)],_0x537602=_0x231e68['t'](Wi(_0x50554b)),_0x487b4d=_0x343e84?_0x7b61f3(Nt,{}):_0x7b61f3(Dt,{}),_0x4ea9ef=_0x2d4746(()=>{const _0x531318=_0x436a7e;_0x343e84||_0x136dbb[_0x531318(0x1a9)]();},[_0x343e84,_0x136dbb]);function _0x3d86cf(){const _0x11c1a3=_0x436a7e;return _0x31b2a2('div',{'className':_0x11c1a3(0x327),'onClick':_0x4ea9ef,'children':[_0x7b61f3(_0x11c1a3(0x273),{'className':_0x18371d('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x343e84,'univer-text-red-500':!_0x343e84}),'children':_0x487b4d}),_0x7b61f3(_0x11c1a3(0x273),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x537602})]});}return _0x343e84?_0x3d86cf():_0x7b61f3(_0x428afd,{'title':_0x231e68['t'](_0x436a7e(0x181)),'children':_0x3d86cf()});}var Xi=Object['getOwnPropertyDescriptor'],Gi=(_0x1bb90f,_0x50fba8,_0x3ea403,_0x304b6e)=>{for(var _0x4e4837=_0x304b6e>0x1?void 0x0:_0x304b6e?Xi(_0x50fba8,_0x3ea403):_0x50fba8,_0x5c55c4=_0x1bb90f['length']-0x1,_0x8bbee3;_0x5c55c4>=0x0;_0x5c55c4--)(_0x8bbee3=_0x1bb90f[_0x5c55c4])&&(_0x4e4837=_0x8bbee3(_0x4e4837)||_0x4e4837);return _0x4e4837;},Q=(_0x2f73ed,_0x8922af)=>(_0x55137b,_0x42a24c)=>_0x8922af(_0x55137b,_0x42a24c,_0x2f73ed);let te=class extends _0x3f16d8{constructor(_0x56bcef,_0x447cf0,_0x24ac5e,_0x33f18f){const _0x594783=_0x568b98;super(),_(this,_0x594783(0x1e0),new _0xd1fc21(_0xa23b9e[_0x594783(0x200)])),(this['_univerInstanceService']=_0x56bcef,this[_0x594783(0x1ea)]=_0x447cf0,this[_0x594783(0x1f6)]=_0x24ac5e,this[_0x594783(0x16f)]=_0x33f18f,this['_initStatusComponent'](),this[_0x594783(0x24f)]());}[_0x568b98(0x24f)](){const _0x3a944a=_0x568b98;this[_0x3a944a(0x219)](this['_univerInstanceService'][_0x3a944a(0x32c)][_0x3a944a(0x21f)](_0x15bcfa(()=>{const _0x5324b6=_0x3a944a,_0x28541d=this[_0x5324b6(0x319)]['getFocusedUnit']();return _0x28541d?this[_0x5324b6(0x1f6)][_0x5324b6(0x180)](_0x28541d[_0x5324b6(0x284)]()):_0x5ba222(null);}),_0x15bcfa(_0x2edc03=>_0x2edc03?_0x2edc03[_0x3a944a(0x26e)]:_0x5ba222(_0xa23b9e[_0x3a944a(0x200)])))[_0x3a944a(0x294)](_0x76dacd=>{const _0x131ec9=_0x3a944a;this[_0x131ec9(0x1e0)][_0x131ec9(0x27b)](_0x76dacd);}));}[_0x568b98(0x189)](){const _0x4b1cf4=_0x568b98;this[_0x4b1cf4(0x219)](this[_0x4b1cf4(0x16f)][_0x4b1cf4(0x2dc)](_0xb90716['HEADER_MENU'],()=>_0x52a6fe(Ki({'status$':this[_0x4b1cf4(0x1e0)][_0x4b1cf4(0x2cd)]()}),this[_0x4b1cf4(0x1ea)])));}};te=Gi([Q(0x0,_0x1234fa),Q(0x1,_0x6d32dc(_0x1e626a)),Q(0x2,_0x6d32dc(_0x56ba9f)),Q(0x3,_0x4a897c)],te);function Ki(_0x29aed8){const {status$:_0x5f297c}=_0x29aed8;return function(){return _0x7b61f3(Vi,{'status$':_0x5f297c});};}var zi=Object[_0x568b98(0x261)],Ji=(_0x3f8370,_0x5dad38,_0x52e49c,_0x70fced)=>{const _0x187155=_0x568b98;for(var _0x3a51b3=_0x70fced>0x1?void 0x0:_0x70fced?zi(_0x5dad38,_0x52e49c):_0x5dad38,_0x3a896c=_0x3f8370[_0x187155(0x2d9)]-0x1,_0x45d27c;_0x3a896c>=0x0;_0x3a896c--)(_0x45d27c=_0x3f8370[_0x3a896c])&&(_0x3a51b3=_0x45d27c(_0x3a51b3)||_0x3a51b3);return _0x3a51b3;},B=(_0x58e337,_0x2cbe21)=>(_0x2d8aaa,_0x58a102)=>_0x2cbe21(_0x2d8aaa,_0x58a102,_0x58e337);let se=class extends _0x3f16d8{constructor(_0x51887e,_0x3c23de,_0x1e6530,_0x5dc8b7,_0x1fc7f3,_0x3b4e8b){const _0x45b553=_0x568b98;super(),this[_0x45b553(0x183)]=_0x51887e,this[_0x45b553(0x340)]=_0x3c23de,this[_0x45b553(0x175)]=_0x1e6530,this['_messageService']=_0x5dc8b7,this[_0x45b553(0x320)]=_0x1fc7f3,this[_0x45b553(0x240)]=_0x3b4e8b,this[_0x45b553(0x2bb)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x1021d9=_0x568b98;this[_0x1021d9(0x219)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x316c3e=_0x1021d9;if(this[_0x316c3e(0x340)][_0x316c3e(0x30a)][_0x316c3e(0x2aa)])return this[_0x316c3e(0x240)]['t'](_0x316c3e(0x307));}));}[_0x568b98(0x228)](){const _0x58d624=_0x568b98;this[_0x58d624(0x219)](this[_0x58d624(0x175)][_0x58d624(0x24c)]['subscribe'](_0xaa6ca4=>{const _0x1e5a3c=_0x58d624;_0xaa6ca4['id']===_0x474087[_0x1e5a3c(0x291)]&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2f8)],'content':this[_0x1e5a3c(0x240)]['t']('collaboration.single-unit.warning')}),_0xaa6ca4['id']===_0x474087['CLOSE_ROOM']&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2f8)],'content':this['_localeService']['t'](_0x1e5a3c(0x1b1))}),_0xaa6ca4['id']===_0x474087['PERMISSION_DENIED']&&this[_0x1e5a3c(0x320)]['show']({'title':this[_0x1e5a3c(0x240)]['t'](_0x1e5a3c(0x22f)),'content':this['_localeService']['t']('permission.content'),'type':_0x1e5a3c(0x1b3),'duration':0x0}),_0xaa6ca4['id']===_0x474087[_0x1e5a3c(0x276)]&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2be)],'content':this[_0x1e5a3c(0x240)]['t'](_0x1e5a3c(0x1b1))+'('+_0xaa6ca4[_0x1e5a3c(0x2ca)]+')'}),_0xaa6ca4['id']===_0x474087['JOIN_ROOM_FAILED']&&this[_0x1e5a3c(0x230)]['show']({'type':_0x52eac5[_0x1e5a3c(0x2f8)],'content':this[_0x1e5a3c(0x240)]['t'](_0xaa6ca4[_0x1e5a3c(0x2ca)]||'')}),_0xaa6ca4['id']===_0x474087['SOCKET_FAILED_RETRY']&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5['Warning'],'content':this[_0x1e5a3c(0x240)]['t']('session.will-retry')}),_0xaa6ca4['id']===_0x474087[_0x1e5a3c(0x1ab)]&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2be)],'content':this['_localeService']['t'](_0x1e5a3c(0x15a))}),_0xaa6ca4['id']===_0x474087['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2be)],'content':this[_0x1e5a3c(0x240)]['t']('session.collaboration-timeout')});}));}};se=Ji([B(0x0,_0x4598f3),B(0x1,_0x2755a3),B(0x2,_0x6d32dc(_0x2a341e)),B(0x3,_0x1869bb),B(0x4,_0x50baca),B(0x5,_0x6d32dc(_0x4b501d))],se);const Zi=_0x568b98(0x22e),et={},Ut=_0x3e2b2e(_0x568b98(0x2e8));var Qi=Object[_0x568b98(0x261)],qi=(_0x402ccf,_0x154654,_0x4b7277,_0x59976a)=>{const _0x1d46c8=_0x568b98;for(var _0x474672=_0x59976a>0x1?void 0x0:_0x59976a?Qi(_0x154654,_0x4b7277):_0x154654,_0x22cdd6=_0x402ccf[_0x1d46c8(0x2d9)]-0x1,_0x28dc1e;_0x22cdd6>=0x0;_0x22cdd6--)(_0x28dc1e=_0x402ccf[_0x22cdd6])&&(_0x474672=_0x28dc1e(_0x474672)||_0x474672);return _0x474672;},G=(_0x3a3977,_0x379de9)=>(_0xe3d21f,_0x409256)=>_0x379de9(_0xe3d21f,_0x409256,_0x3a3977);let ie=class extends _0x4ffef8{constructor(_0x237e66,_0x5450b5,_0x604928,_0x44e94e,_0x1c0713){const _0x42a554=_0x568b98;super(),this[_0x42a554(0x1c9)]=_0x237e66,this[_0x42a554(0x194)]=_0x5450b5,this['_commandService']=_0x604928,this[_0x42a554(0x30e)]=_0x44e94e,_0x1c0713?_0x1c0713==null||_0x1c0713[_0x42a554(0x2c5)]()[_0x42a554(0x21d)](()=>this['_init']()):(this[_0x42a554(0x194)]['debug'](_0x42a554(0x295),_0x42a554(0x158)),this[_0x42a554(0x1e9)]());}async[_0x568b98(0x1e9)](){const _0x289f56=_0x568b98,_0x35a659=this['_urlService'][_0x289f56(0x1d8)](_0x289f56(0x28c)),_0x4b53a1=this['_urlService'][_0x289f56(0x1d8)](_0x289f56(0x2fc)),_0x44c17f=this['_urlService'][_0x289f56(0x1d8)](_0x289f56(0x26b));if(!_0x35a659||!_0x4b53a1){this['_logService']['debug'](_0x289f56(0x295),_0x289f56(0x1bd));return;}const _0xdec3b7=await this[_0x289f56(0x30e)]['loadUnit'](_0x35a659,Number(_0x4b53a1),_0x44c17f);_0xdec3b7&&_0xdec3b7 instanceof _0x335c30&&this['_setupSubUnitSync'](_0xdec3b7);}async[_0x568b98(0x1af)](_0x133947){const _0x2b5b91=_0x568b98;await this[_0x2b5b91(0x27a)](_0x133947),_0x133947[_0x2b5b91(0x164)][_0x2b5b91(0x21f)](_0x37d2d6(this[_0x2b5b91(0x2b1)]))[_0x2b5b91(0x294)](_0x4aac4b=>{const _0x2e3b79=_0x2b5b91;_0x4aac4b&&this[_0x2e3b79(0x14e)](_0x4aac4b);}),this['_urlService'][_0x2b5b91(0x179)]['pipe'](_0x37d2d6(this['dispose$']))[_0x2b5b91(0x294)](()=>this[_0x2b5b91(0x27a)](_0x133947));}[_0x568b98(0x14e)](_0x307e39,_0xf40b86=!0x1){const _0x398c5b=_0x568b98,_0x43de3a=this[_0x398c5b(0x1c9)][_0x398c5b(0x1d8)](_0x398c5b(0x26b));_0x307e39[_0x398c5b(0x2d2)]()!==_0x43de3a&&this[_0x398c5b(0x1c9)][_0x398c5b(0x17a)](_0x398c5b(0x26b),_0x307e39[_0x398c5b(0x2d2)](),_0xf40b86);}async[_0x568b98(0x27a)](_0x30b34c){const _0x4282a0=_0x568b98;var _0x2341f0;const _0x3c325b=this[_0x4282a0(0x1c9)][_0x4282a0(0x1d8)](_0x4282a0(0x26b));if(!_0x3c325b||!_0x30b34c[_0x4282a0(0x323)](_0x3c325b)){const _0x6a4ce0=_0x30b34c[_0x4282a0(0x174)]()[0x0],_0x27c8b5=_0x30b34c['getSheetBySheetId'](_0x6a4ce0);if(!_0x27c8b5)return;this[_0x4282a0(0x14e)](_0x27c8b5,!0x0),await this['_commandService'][_0x4282a0(0x1d1)](_0x542b3f['id'],{'unitId':_0x30b34c['getUnitId'](),'subUnitId':_0x6a4ce0});return;}((_0x2341f0=_0x30b34c[_0x4282a0(0x156)]())==null?void 0x0:_0x2341f0[_0x4282a0(0x2d2)]())!==_0x3c325b&&await this[_0x4282a0(0x31a)][_0x4282a0(0x1d1)](_0x542b3f['id'],{'unitId':_0x30b34c[_0x4282a0(0x284)](),'subUnitId':_0x3c325b});}};ie=qi([G(0x0,Ut),G(0x1,_0x553ff6),G(0x2,_0x450935),G(0x3,_0x6d32dc(_0x2bcd8a)),G(0x4,_0x164671(_0x44414a))],ie);var en=Object[_0x568b98(0x261)],tn=(_0x369fb9,_0xcf6fdb,_0xa44c61,_0x5d6e82)=>{const _0x1076f5=_0x568b98;for(var _0x222ba4=_0x5d6e82>0x1?void 0x0:_0x5d6e82?en(_0xcf6fdb,_0xa44c61):_0xcf6fdb,_0x4d0051=_0x369fb9[_0x1076f5(0x2d9)]-0x1,_0x379220;_0x4d0051>=0x0;_0x4d0051--)(_0x379220=_0x369fb9[_0x4d0051])&&(_0x222ba4=_0x379220(_0x222ba4)||_0x222ba4);return _0x222ba4;},pe=(_0x56ce57,_0xdc38bd)=>(_0x5e1630,_0x53fce7)=>_0xdc38bd(_0x5e1630,_0x53fce7,_0x56ce57);let ne=class{constructor(_0x361f88,_0x541dc4,_0x42f918){const _0x1d05ba=_0x568b98;this['_injector']=_0x361f88,this[_0x1d05ba(0x2df)]=_0x541dc4,this[_0x1d05ba(0x26a)]=_0x42f918;}['transformIMECache'](_0x2e2174){const _0x128d43=_0x568b98;this[_0x128d43(0x2a4)](_0x2e2174),this['_transformPreviousActiveRange'](_0x2e2174);}[_0x568b98(0x28a)](_0x287414){const _0x146cbb=_0x568b98,{unitID:_0x138336}=_0x287414,_0x315a5b=this[_0x146cbb(0x26a)][_0x146cbb(0x14c)](_0x138336)[_0x146cbb(0x1dc)](_0xfe4d58),{redoCache:_0x392087}=_0x315a5b[_0x146cbb(0x20f)]();if(_0x392087[_0x146cbb(0x2d9)]===0x0)return _0x287414;let _0xfae024=_0x4ce80e['deepClone'](_0x287414['mutations'][0x0]);for(let _0x1c4c67=0x0;_0x1c4c67<_0x392087[_0x146cbb(0x2d9)];_0x1c4c67++){const _0x4101fc={'id':_0x146cbb(0x216),'params':{..._0x392087[_0x1c4c67]}},_0x37efda=this['_transformService'][_0x146cbb(0x207)](_0xfae024,_0x4101fc,!0x1);if(_0x574026(_0x37efda))throw _0x37efda[_0x146cbb(0x1b3)];_0xfae024=_0x37efda[_0x146cbb(0x260)];}return{..._0x4ce80e[_0x146cbb(0x15e)](_0x287414),'mutations':[_0xfae024]};}[_0x568b98(0x2a4)](_0x126591){const _0xf0efd8=_0x568b98,{unitID:_0x30b5d2}=_0x126591,_0x50965c=this[_0xf0efd8(0x26a)][_0xf0efd8(0x14c)](_0x30b5d2)[_0xf0efd8(0x1dc)](_0xfe4d58),{undoCache:_0x181f5f,redoCache:_0x2322b7}=_0x50965c['getUndoRedoMutationParamsCache']();if(_0x181f5f[_0xf0efd8(0x2d9)]===0x0||_0x2322b7[_0xf0efd8(0x2d9)]===0x0)return;const _0x46c994=[],_0x2de1bc=[];let _0x16ed09=_0x4ce80e[_0xf0efd8(0x15e)](_0x126591[_0xf0efd8(0x2d0)][0x0]),_0x17c3ba=_0x4ce80e[_0xf0efd8(0x15e)](_0x126591[_0xf0efd8(0x2d0)][0x0]);for(let _0x5d292b=_0x181f5f[_0xf0efd8(0x2d9)]-0x1;_0x5d292b>=0x0;_0x5d292b--){const _0x59da9c={'id':_0xf0efd8(0x216),'params':{..._0x181f5f[_0x5d292b]}},_0x39a0e4={'id':_0xf0efd8(0x216),'params':{..._0x2322b7[_0x5d292b]}},_0x4209c0=this[_0xf0efd8(0x2df)][_0xf0efd8(0x207)](_0x16ed09,_0x59da9c,!0x1),_0x257783=this[_0xf0efd8(0x2df)][_0xf0efd8(0x207)](_0x17c3ba,_0x39a0e4,!0x1);if(_0x574026(_0x4209c0))throw _0x4209c0[_0xf0efd8(0x1b3)];if(_0x574026(_0x257783))throw _0x257783[_0xf0efd8(0x1b3)];_0x46c994[_0xf0efd8(0x177)](_0x4209c0[_0xf0efd8(0x331)][_0xf0efd8(0x2ff)]),_0x2de1bc[_0xf0efd8(0x177)](_0x257783[_0xf0efd8(0x331)]['params']),_0x16ed09=_0x4209c0[_0xf0efd8(0x260)],_0x17c3ba=_0x257783['m1Prime'];}_0x50965c[_0xf0efd8(0x316)]({'undoCache':_0x46c994,'redoCache':_0x2de1bc});}[_0x568b98(0x21b)](_0x152f87){const _0x139292=_0x568b98,{unitID:_0x42a3f5}=_0x152f87,_0x2c9b48=this[_0x139292(0x26a)][_0x139292(0x14c)](_0x42a3f5)['with'](_0xfe4d58),_0x57c156=_0x2c9b48['getActiveRange']();if(_0x57c156==null)return;const _0x3514bf=[{'id':_0x139292(0x216),'params':{'unitId':_0x152f87[_0x139292(0x2f5)],'actions':null,'textRanges':[_0x57c156]}}],_0x1695d5=this[_0x139292(0x2df)]['transformMutationsWithChangeset'](_0x152f87,_0x3514bf);if(!_0x3a585f(_0x1695d5))throw _0x1695d5[_0x139292(0x1b3)];const _0x55f47a=_0x1695d5[_0x139292(0x331)][0x0][_0x139292(0x2ff)][_0x139292(0x2a6)];Array[_0x139292(0x279)](_0x55f47a)&&_0x55f47a[_0x139292(0x2d9)]&&_0x2c9b48[_0x139292(0x301)](_0x55f47a[0x0]);}};ne=tn([pe(0x0,_0x6d32dc(_0x1e626a)),pe(0x1,_0xfd345b),pe(0x2,_0x107d26)],ne);var sn=Object['getOwnPropertyDescriptor'],nn=(_0x3d20b7,_0x32b9a9,_0x1ae447,_0x6239f)=>{const _0x51053c=_0x568b98;for(var _0x1bf497=_0x6239f>0x1?void 0x0:_0x6239f?sn(_0x32b9a9,_0x1ae447):_0x32b9a9,_0x2f5907=_0x3d20b7[_0x51053c(0x2d9)]-0x1,_0x453211;_0x2f5907>=0x0;_0x2f5907--)(_0x453211=_0x3d20b7[_0x2f5907])&&(_0x1bf497=_0x453211(_0x1bf497)||_0x1bf497);return _0x1bf497;},Ce=(_0x5d838a,_0x5cd678)=>(_0x39608c,_0x2718d2)=>_0x5cd678(_0x39608c,_0x2718d2,_0x5d838a);let re=class{constructor(_0x4c69e3,_0x3bd35b,_0x2d1841){const _0x1d531=_0x568b98;this[_0x1d531(0x1ea)]=_0x4c69e3,this[_0x1d531(0x2df)]=_0x3bd35b,this['_docStateChangeManagerService']=_0x2d1841;}[_0x568b98(0x2dd)](_0x5f249e){const _0x448be0=_0x568b98;this[_0x448be0(0x322)](_0x5f249e);}[_0x568b98(0x28a)](_0x3c280e){const _0x65935e=_0x568b98,{unitID:_0x335702}=_0x3c280e,{collaboration:_0x3d0b4d}=this[_0x65935e(0x30f)][_0x65935e(0x2ee)](_0x335702);if(_0x3d0b4d[_0x65935e(0x2d9)]===0x0)return _0x3c280e;let _0x8e1969=_0x4ce80e[_0x65935e(0x15e)](_0x3c280e['mutations'][0x0]);for(let _0x8ed784=0x0;_0x8ed784<_0x3d0b4d[_0x65935e(0x2d9)];_0x8ed784++){const _0x3e972b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3d0b4d[_0x8ed784]['unitId'],..._0x3d0b4d[_0x8ed784][_0x65935e(0x23f)]}},_0x5add12=this[_0x65935e(0x2df)][_0x65935e(0x207)](_0x8e1969,_0x3e972b,!0x1);if(_0x574026(_0x5add12))throw _0x5add12['error'];_0x8e1969=_0x5add12[_0x65935e(0x260)];}return{..._0x4ce80e[_0x65935e(0x15e)](_0x3c280e),'mutations':[_0x8e1969]};}[_0x568b98(0x322)](_0xe07e56){const _0x25fc80=_0x568b98,{unitID:_0x3f3a17}=_0xe07e56,{history:_0x442687,collaboration:_0x186e8d}=this[_0x25fc80(0x30f)]['getStateCache'](_0x3f3a17);if(_0x442687['length']===0x0&&_0x186e8d[_0x25fc80(0x2d9)]===0x0)return;const _0x5c1486=[],_0x2ef570=[];let _0x52ce2d=_0x4ce80e['deepClone'](_0xe07e56['mutations'][0x0]),_0x384443=_0x4ce80e[_0x25fc80(0x15e)](_0xe07e56[_0x25fc80(0x2d0)][0x0]);for(let _0x104c8f=_0x442687[_0x25fc80(0x2d9)]-0x1;_0x104c8f>=0x0;_0x104c8f--){const _0x5a7cd4={'id':_0x25fc80(0x216),'params':{'unitId':_0x442687[_0x104c8f][_0x25fc80(0x33b)],..._0x442687[_0x104c8f][_0x25fc80(0x324)]}},_0x3b6151={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x442687[_0x104c8f][_0x25fc80(0x33b)],..._0x442687[_0x104c8f][_0x25fc80(0x23f)]}},_0x5c3131=this[_0x25fc80(0x2df)]['transformMutation'](_0x52ce2d,_0x5a7cd4,!0x1),_0x3388bc=this[_0x25fc80(0x2df)]['transformMutation'](_0x384443,_0x3b6151,!0x1);if(_0x574026(_0x5c3131))throw _0x5c3131[_0x25fc80(0x1b3)];if(_0x574026(_0x3388bc))throw _0x3388bc[_0x25fc80(0x1b3)];_0x5c1486['unshift']({..._0x442687[_0x104c8f],'undoState':_0x5c3131[_0x25fc80(0x331)][_0x25fc80(0x2ff)],'redoState':_0x3388bc[_0x25fc80(0x331)][_0x25fc80(0x2ff)]}),_0x52ce2d=_0x5c3131[_0x25fc80(0x260)],_0x384443=_0x3388bc['m1Prime'];}_0x52ce2d=_0x4ce80e[_0x25fc80(0x15e)](_0xe07e56[_0x25fc80(0x2d0)][0x0]),_0x384443=_0x4ce80e[_0x25fc80(0x15e)](_0xe07e56['mutations'][0x0]);for(let _0xa33a7f=_0x186e8d['length']-0x1;_0xa33a7f>=0x0;_0xa33a7f--){const _0x5934d6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x186e8d[_0xa33a7f][_0x25fc80(0x33b)],..._0x186e8d[_0xa33a7f]['undoState']}},_0x482144={'id':_0x25fc80(0x216),'params':{'unitId':_0x186e8d[_0xa33a7f][_0x25fc80(0x33b)],..._0x186e8d[_0xa33a7f]['redoState']}},_0x5f50e3=this[_0x25fc80(0x2df)]['transformMutation'](_0x52ce2d,_0x5934d6,!0x1),_0x4c8d9d=this[_0x25fc80(0x2df)][_0x25fc80(0x207)](_0x384443,_0x482144,!0x1);if(_0x574026(_0x5f50e3))throw _0x5f50e3[_0x25fc80(0x1b3)];if(_0x574026(_0x4c8d9d))throw _0x4c8d9d['error'];_0x2ef570[_0x25fc80(0x177)]({..._0x186e8d[_0xa33a7f],'undoState':_0x5f50e3['m2Prime'][_0x25fc80(0x2ff)],'redoState':_0x4c8d9d['m2Prime']['params']}),_0x52ce2d=_0x5f50e3[_0x25fc80(0x260)],_0x384443=_0x4c8d9d[_0x25fc80(0x260)];}this['_docStateChangeManagerService'][_0x25fc80(0x2ef)](_0x3f3a17,{'history':_0x5c1486,'collaboration':_0x2ef570});}};re=nn([Ce(0x0,_0x6d32dc(_0x1e626a)),Ce(0x1,_0xfd345b),Ce(0x2,_0x6d32dc(_0x137048))],re);var rn=Object[_0x568b98(0x261)],on=(_0x1bbfb7,_0x379e54,_0xbba7a3,_0xc915db)=>{const _0x349ecd=_0x568b98;for(var _0x4af5a2=_0xc915db>0x1?void 0x0:_0xc915db?rn(_0x379e54,_0xbba7a3):_0x379e54,_0x1b7a33=_0x1bbfb7[_0x349ecd(0x2d9)]-0x1,_0x2f4a56;_0x1b7a33>=0x0;_0x1b7a33--)(_0x2f4a56=_0x1bbfb7[_0x1b7a33])&&(_0x4af5a2=_0x2f4a56(_0x4af5a2)||_0x4af5a2);return _0x4af5a2;},tt=(_0x39eb08,_0x476f11)=>(_0x48ad7c,_0xa51393)=>_0x476f11(_0x48ad7c,_0xa51393,_0x39eb08);let oe=class{constructor(_0x270edc,_0x437a3b){const _0x1b4f11=_0x568b98;this[_0x1b4f11(0x1ea)]=_0x270edc,this[_0x1b4f11(0x2df)]=_0x437a3b;}[_0x568b98(0x29c)](_0x343f38){const _0x3d739f=_0x568b98;var _0x5e6d5b;const _0x2b6c2e=this[_0x3d739f(0x1ea)][_0x3d739f(0x282)](_0x55110a),_0x22b1ee=(_0x5e6d5b=_0x2b6c2e[_0x3d739f(0x2f3)]())!=null?_0x5e6d5b:[];if(_0x22b1ee[_0x3d739f(0x2d9)]===0x0)return;const _0x21b4aa=_0x343f38[_0x3d739f(0x2f5)],_0x1fe8d5=[{'id':_0x3d739f(0x216),'params':{'unitId':_0x21b4aa,'actions':null,'textRanges':_0x22b1ee}}],_0x4919db=this[_0x3d739f(0x2df)]['transformMutationsWithChangeset'](_0x343f38,_0x1fe8d5);if(!_0x3a585f(_0x4919db))throw _0x4919db['error'];const _0x587616=_0x4919db[_0x3d739f(0x331)][0x0][_0x3d739f(0x2ff)][_0x3d739f(0x2a6)];Array['isArray'](_0x587616)&&_0x587616[_0x3d739f(0x2d9)]&&_0x2b6c2e['replaceDocRanges'](_0x587616,{'unitId':_0x21b4aa,'subUnitId':_0x21b4aa},!0x1);}};oe=on([tt(0x0,_0x6d32dc(_0x1e626a)),tt(0x1,_0xfd345b)],oe);var an=Object[_0x568b98(0x261)],cn=(_0x160f5c,_0x170781,_0x2e8161,_0x552e47)=>{for(var _0x9e9e7d=_0x552e47>0x1?void 0x0:_0x552e47?an(_0x170781,_0x2e8161):_0x170781,_0x45c3be=_0x160f5c['length']-0x1,_0x41c0f0;_0x45c3be>=0x0;_0x45c3be--)(_0x41c0f0=_0x160f5c[_0x45c3be])&&(_0x9e9e7d=_0x41c0f0(_0x9e9e7d)||_0x9e9e7d);return _0x9e9e7d;},U=(_0x492225,_0x1914a5)=>(_0x406795,_0x50f7a9)=>_0x1914a5(_0x406795,_0x50f7a9,_0x492225);let ae=class extends _0x3f16d8{constructor(_0x3111d9,_0x266a45,_0x40c0c6,_0x3c1e23,_0x5d68cf,_0x5a2f82,_0x1b7e89,_0xa9fba7){const _0x2e1490=_0x568b98;super(),_(this,_0x2e1490(0x1e0),new _0xd1fc21(_0xa23b9e[_0x2e1490(0x200)])),(this[_0x2e1490(0x30f)]=_0x3111d9,this['_collaborationController']=_0x266a45,this[_0x2e1490(0x1bf)]=_0x40c0c6,this[_0x2e1490(0x25a)]=_0x3c1e23,this[_0x2e1490(0x149)]=_0x5d68cf,this['_docSyncEditingCollabCursorService']=_0x5a2f82,this[_0x2e1490(0x230)]=_0x1b7e89,this[_0x2e1490(0x240)]=_0xa9fba7,this[_0x2e1490(0x1b6)]());}[_0x568b98(0x1b6)](){const _0x1585e7=_0x568b98;this[_0x1585e7(0x219)](this[_0x1585e7(0x1f6)][_0x1585e7(0x1d6)][_0x1585e7(0x294)](_0x11f44f=>{const _0x2181e6=_0x1585e7,_0x3d4539=this['_docStateChangeManagerService'][_0x2181e6(0x199)]['subscribe'](_0x2dc097=>{const _0x51a523=_0x2181e6;if(_0x2dc097==null)return;const {unitId:_0x5730d1,redoState:_0xc51b42,commandId:_0x327d55}=_0x2dc097;if(_0x5730d1!==_0x11f44f[_0x51a523(0x2f5)])return;const _0x16f813={'id':_0x327d55,'type':_0x3c6601[_0x51a523(0x328)],'params':{'unitId':_0x5730d1,'actions':_0xc51b42[_0x51a523(0x287)],'textRanges':null}};_0x11f44f[_0x51a523(0x2e9)](_0x16f813);});if(_0x11f44f[_0x2181e6(0x219)](_0x3d4539),_0x11f44f instanceof _0x338daf){const _0x4f47ff={'onTransformIME':_0x1c84cd=>this[_0x2181e6(0x1bf)]['transformIMECache'](_0x1c84cd),'onTransformState':_0xe4d31f=>this[_0x2181e6(0x25a)][_0x2181e6(0x2dd)](_0xe4d31f),'onTransformSelections':_0x54e0ec=>this[_0x2181e6(0x149)]['transformSelections'](_0x54e0ec),'onSyncEditingCollabCursor':_0x3f9b1d=>this[_0x2181e6(0x2c6)][_0x2181e6(0x203)](_0x3f9b1d),'onTransformRemoteChangesetByIMECache':_0x2b0ee8=>this[_0x2181e6(0x1bf)][_0x2181e6(0x28a)](_0x2b0ee8),'onTransformRemoteChangesetByStateCache':_0x32b403=>this[_0x2181e6(0x25a)][_0x2181e6(0x28a)](_0x32b403)};_0x11f44f['addHandlerCallback'](_0x4f47ff);}}));}};ae=cn([U(0x0,_0x6d32dc(_0x137048)),U(0x1,_0x6d32dc(_0x56ba9f)),U(0x2,_0x6d32dc(ne)),U(0x3,_0x6d32dc(re)),U(0x4,_0x6d32dc(oe)),U(0x5,_0x6d32dc(He)),U(0x6,_0x1869bb),U(0x7,_0x6d32dc(_0x4b501d))],ae);var ln=Object[_0x568b98(0x261)],_n=(_0x23b9ae,_0x37df1c,_0x855fee,_0x42ef87)=>{const _0x122424=_0x568b98;for(var _0x4897bf=_0x42ef87>0x1?void 0x0:_0x42ef87?ln(_0x37df1c,_0x855fee):_0x37df1c,_0x1cda0f=_0x23b9ae[_0x122424(0x2d9)]-0x1,_0xc8d6b4;_0x1cda0f>=0x0;_0x1cda0f--)(_0xc8d6b4=_0x23b9ae[_0x1cda0f])&&(_0x4897bf=_0xc8d6b4(_0x4897bf)||_0x4897bf);return _0x4897bf;},Ee=(_0x45b8aa,_0x1a0cfe)=>(_0x272b46,_0x175a5b)=>_0x1a0cfe(_0x272b46,_0x175a5b,_0x45b8aa);let we=class extends _0x3f16d8{constructor(_0x20f24e,_0x2d4d3c,_0x1491ce){const _0x576734=_0x568b98;super(),_(this,'_cachedData',new Map()),_(this,_0x576734(0x150),new Map()),_(this,_0x576734(0x15d),!0x1),(this[_0x576734(0x157)]=_0x20f24e,this[_0x576734(0x1e3)]=_0x2d4d3c,this[_0x576734(0x185)]=_0x1491ce);}['disableLocalCache'](){const _0x15a10c=_0x568b98;this[_0x15a10c(0x15d)]=!0x0;}[_0x568b98(0x334)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x4f50e6=_0x568b98;return this[_0x4f50e6(0x150)];}[_0x568b98(0x24e)](){const _0x41256f=_0x568b98;this[_0x41256f(0x19d)]()[_0x41256f(0x21d)](()=>super['dispose']());}async[_0x568b98(0x2de)](_0x53403c){const _0x27254d=_0x568b98;return this[_0x27254d(0x15d)]?null:this[_0x27254d(0x1e3)][_0x27254d(0x236)](_0x1b4ac8(_0x53403c));}async['saveOfflineData'](_0x4acdfe,_0x2175e0){const _0x359842=_0x568b98;return!!this[_0x359842(0x1e3)][_0x359842(0x2ab)](_0x4acdfe,_0x2175e0);}[_0x568b98(0x2a9)](_0x4e788a,_0x5e5155,_0x49d1ff,_0x4c4a64){const _0x1de04b=_0x568b98,_0x12ed84=this[_0x1de04b(0x185)][_0x1de04b(0x1fb)](_0x4e788a);this[_0x1de04b(0x191)][_0x1de04b(0x214)](_0x4e788a,{'unitID':_0x4e788a,'type':_0x5e5155,'awaitingChangeset':_0x49d1ff,'mutations':_0x4c4a64,'rev':_0x12ed84}),this[_0x1de04b(0x150)][_0x1de04b(0x2c4)](_0x4e788a)||this[_0x1de04b(0x1b8)](_0x4e788a);}['_scheduleSaving'](_0x4f4946){const _0x300a5a=_0x568b98,_0x1d1007=this[_0x300a5a(0x2b5)]();_0x1d1007===0x0?this['_saveCache'](_0x4f4946):this[_0x300a5a(0x150)][_0x300a5a(0x214)](_0x4f4946,setTimeout(()=>this[_0x300a5a(0x1b2)](_0x4f4946),_0x1d1007));}[_0x568b98(0x2b5)](){const _0x43fd1a=_0x568b98;var _0x55c68d;return(_0x55c68d=this['_configService'][_0x43fd1a(0x2f0)](_0x16888c))!=null?_0x55c68d:_0x26387f;}[_0x568b98(0x1b2)](_0x1dd6a4){const _0x48aa4a=_0x568b98,_0x57afee=this[_0x48aa4a(0x150)][_0x48aa4a(0x282)](_0x1dd6a4);return _0x57afee!==void 0x0&&window['clearTimeout'](_0x57afee),this['_localStorageService'][_0x48aa4a(0x2ab)](_0x1b4ac8(_0x1dd6a4),this[_0x48aa4a(0x191)]['get'](_0x1dd6a4))[_0x48aa4a(0x21d)](()=>this[_0x48aa4a(0x150)][_0x48aa4a(0x15b)](_0x1dd6a4));}async[_0x568b98(0x19d)](){const _0x2d0e6c=_0x568b98,_0x1444b7=[];this[_0x2d0e6c(0x150)][_0x2d0e6c(0x153)]((_0x40acbd,_0x62c6e8)=>{const _0x1fa949=_0x2d0e6c;window['clearTimeout'](_0x40acbd),_0x1444b7[_0x1fa949(0x171)](this[_0x1fa949(0x1b2)](_0x62c6e8)[_0x1fa949(0x21d)](()=>{this['_saveTaskMap']['delete'](_0x62c6e8);}));}),await Promise[_0x2d0e6c(0x16b)](_0x1444b7);}};we=_n([Ee(0x0,_0x57f776),Ee(0x1,_0x40696b),Ee(0x2,_0x6d32dc(_0x2dcaae))],we);class hn extends _0x4ffef8{constructor(){const _0x3154d9=_0x568b98;super(),_(this,'urlChange$'),this[_0x3154d9(0x179)]=_0x1ef346(window,_0x3154d9(0x30d))[_0x3154d9(0x21f)](_0x37d2d6(this['dispose$']),_0x35f9aa(0x1),_0x13a5cf(void 0x0));}[_0x568b98(0x17a)](_0x17c66f,_0x1bd09e,_0x46a80a=!0x1){const _0x30fe00=_0x568b98,_0x5efae5=new URL(window[_0x30fe00(0x268)][_0x30fe00(0x145)]);_0x5efae5[_0x30fe00(0x1a6)][_0x30fe00(0x214)](_0x17c66f,_0x1bd09e),_0x46a80a?window[_0x30fe00(0x2c0)]['replaceState']('','',_0x5efae5['toString']()):window[_0x30fe00(0x2c0)][_0x30fe00(0x1a8)]('','',_0x5efae5['toString']());}[_0x568b98(0x2cb)](_0x3d2e92,_0x4a66af=!0x1){const _0x25bad2=_0x568b98,_0x523593=new URL(window[_0x25bad2(0x268)][_0x25bad2(0x145)]);_0x523593[_0x25bad2(0x1a6)]['delete'](_0x3d2e92),_0x4a66af?window[_0x25bad2(0x2c0)][_0x25bad2(0x2ac)]('','',_0x523593[_0x25bad2(0x262)]()):window[_0x25bad2(0x2c0)][_0x25bad2(0x1a8)]('','',_0x523593[_0x25bad2(0x262)]());}[_0x568b98(0x1d8)](_0x189b6b){const _0x45ae75=_0x568b98;var _0x4c7efa;return(_0x4c7efa=new URL(window[_0x45ae75(0x268)]['href'])[_0x45ae75(0x1a6)]['get'](_0x189b6b))!=null?_0x4c7efa:void 0x0;}}var un=Object['defineProperty'],dn=Object['getOwnPropertyDescriptor'],fn=(_0x574485,_0x3b1fe4,_0x67207d)=>_0x3b1fe4 in _0x574485?un(_0x574485,_0x3b1fe4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x67207d}):_0x574485[_0x3b1fe4]=_0x67207d,Sn=(_0x11c5ee,_0x36ab51,_0x3a48bb,_0x5343ff)=>{const _0x130e0f=_0x568b98;for(var _0x3895f2=_0x5343ff>0x1?void 0x0:_0x5343ff?dn(_0x36ab51,_0x3a48bb):_0x36ab51,_0x161adc=_0x11c5ee[_0x130e0f(0x2d9)]-0x1,_0x2ba7c9;_0x161adc>=0x0;_0x161adc--)(_0x2ba7c9=_0x11c5ee[_0x161adc])&&(_0x3895f2=_0x2ba7c9(_0x3895f2)||_0x3895f2);return _0x3895f2;},Oe=(_0x219e2a,_0x781c13)=>(_0x399ba0,_0x456b74)=>_0x781c13(_0x399ba0,_0x456b74,_0x219e2a),mn=(_0xd2431,_0x3c0120,_0x59b1f7)=>fn(_0xd2431,_0x3c0120+'',_0x59b1f7);const gn=_0x568b98(0x1d9);let Ae=class extends _0x54a92a{constructor(_0x3a2d9b=et,_0x2ba4a2,_0x2130f6,_0x252d5f){const _0x1fdf97=_0x568b98;super(),this[_0x1fdf97(0x1f8)]=_0x3a2d9b,this[_0x1fdf97(0x26a)]=_0x2ba4a2,this[_0x1fdf97(0x1ea)]=_0x2130f6,this['_configService']=_0x252d5f;const {..._0x5a3922}=_0x3cf67f({},et,this[_0x1fdf97(0x1f8)]);this[_0x1fdf97(0x157)]['setConfig'](Zi,_0x5a3922);}[_0x568b98(0x143)](){const _0xe6dabd=_0x568b98;this[_0xe6dabd(0x298)](),this[_0xe6dabd(0x1c8)]();}[_0x568b98(0x234)](){const _0x1d1f83=_0x568b98;this[_0x1d1f83(0x1ca)]();}[_0x568b98(0x298)](){const _0x1e54dc=_0x568b98;var _0x1b79b7;const _0x13746c=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x51f3b5,{'useClass':_0x108140}],[_0x2755a3,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x16d380(this[_0x1e54dc(0x1ea)],_0x4d898d(_0x13746c,(_0x1b79b7=this[_0x1e54dc(0x1f8)])==null?void 0x0:_0x1b79b7['override']));}[_0x568b98(0x1ca)](){const _0x3a89be=_0x568b98;this[_0x3a89be(0x219)](this['_renderManagerService'][_0x3a89be(0x20a)](_0x142ba1[_0x3a89be(0x196)],[Pe])),this[_0x3a89be(0x219)](this['_renderManagerService'][_0x3a89be(0x20a)](_0x142ba1['UNIVER_SHEET'],[Le]));}['_initDependencies'](){_0x5e475c(this['_injector'],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x568b98(0x1d5),gn),Ae=Sn([_0x19df80(_0x59101b),Oe(0x1,_0x107d26),Oe(0x2,_0x6d32dc(_0x1e626a)),Oe(0x3,_0x57f776)],Ae);var In=Object[_0x568b98(0x261)],vn=(_0x382d93,_0xd3c2f6,_0x489948,_0x310749)=>{const _0x425deb=_0x568b98;for(var _0x1e8cd8=_0x310749>0x1?void 0x0:_0x310749?In(_0xd3c2f6,_0x489948):_0xd3c2f6,_0x4de68b=_0x382d93[_0x425deb(0x2d9)]-0x1,_0xad82b0;_0x4de68b>=0x0;_0x4de68b--)(_0xad82b0=_0x382d93[_0x4de68b])&&(_0x1e8cd8=_0xad82b0(_0x1e8cd8)||_0x1e8cd8);return _0x1e8cd8;},K=(_0x5c7685,_0x231bbf)=>(_0x4e455b,_0x92dfba)=>_0x231bbf(_0x4e455b,_0x92dfba,_0x5c7685);let st=class extends _0x5df4a7{constructor(_0x168ae3,_0x4b81c7,_0x12454c,_0xc71d8b,_0x2773c6){super(_0x168ae3,_0x4b81c7,_0x12454c,_0xc71d8b,_0x2773c6);}async[_0x568b98(0x326)](_0x4f835f){const _0x18db44=_0x568b98,_0x2cd587=await this[_0x18db44(0x1eb)](),_0x3f3bbb=this[_0x18db44(0x31f)](_0x4f835f,_0x2cd587);return this['_doCreateSocket'](_0x3f3bbb);}[_0x568b98(0x31f)](_0x23ef48,_0x2ee968){const _0x345be9=_0x568b98,_0x170a30=typeof window>'u'?new URL(_0x23ef48):new URL(_0x23ef48,window[_0x345be9(0x268)][_0x345be9(0x243)]);_0x170a30[_0x345be9(0x1a6)][_0x345be9(0x214)]('sessionTicket',_0x2ee968);const _0x4e0102=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x345be9(0x268)][_0x345be9(0x336)]);return _0x4e0102[_0x345be9(0x282)](_0x345be9(0x1a5))&&_0x170a30[_0x345be9(0x1a6)][_0x345be9(0x214)](_0x345be9(0x1a5),_0x4e0102[_0x345be9(0x282)](_0x345be9(0x1a5))),_0x170a30[_0x345be9(0x262)]();}async[_0x568b98(0x1eb)](){const _0x1b0409=_0x568b98;var _0x159b4c,_0x29a95f,_0x5d2aad;const _0x2125a3=this[_0x1b0409(0x157)]['getConfig'](_0x496a5b),_0x236ee4=(_0x159b4c=_0x2125a3==null?void 0x0:_0x2125a3[_0x1b0409(0x1cd)])!=null?_0x159b4c:_0x5432d2;return(_0x5d2aad=(_0x29a95f=(await this['_httpService'][_0x1b0409(0x282)](_0x236ee4,{'headers':{'Content-Type':'application/json'}}))[_0x1b0409(0x2e1)])==null?void 0x0:_0x29a95f['ticket'])!=null?_0x5d2aad:'';}};st=vn([K(0x0,_0x6d32dc(_0x1e626a)),K(0x1,_0x6d32dc(_0x3ee678)),K(0x2,_0x57f776),K(0x3,_0x553ff6),K(0x4,_0x2ac1aa)],st);const it=0x7530,nt=_0x568b98(0x144);class jn extends _0x3f16d8{constructor(){const _0x757aca=_0x568b98;super(),_(this,_0x757aca(0x205),_0x4bbe86()),_(this,_0x757aca(0x1df),new Set()),_(this,_0x757aca(0x16e),new Map()),_(this,_0x757aca(0x1bb),null),_(this,_0x757aca(0x22b),new Map()),_(this,_0x757aca(0x21c),new Map()),this[_0x757aca(0x1e9)]();}[_0x568b98(0x24e)](){const _0x3951e4=_0x568b98;super[_0x3951e4(0x24e)](),this[_0x3951e4(0x22b)][_0x3951e4(0x153)]((_0xd235c0,_0x51f1bf)=>this[_0x3951e4(0x2a7)](_0x51f1bf)),this[_0x3951e4(0x1bb)]&&window[_0x3951e4(0x2b7)](this['_heartbeatTimer']);}[_0x568b98(0x17e)](_0x3506c1){const _0x45db6f=_0x568b98;return this[_0x45db6f(0x16d)](_0x3506c1)[_0x45db6f(0x21f)](_0x15bdb5());}[_0x568b98(0x1d3)](_0xa8513b){const _0xdeeaf6=_0x568b98;this[_0xdeeaf6(0x1df)][_0xdeeaf6(0x2aa)]===0x0&&this['_scheduleHeartbeat'](),this[_0xdeeaf6(0x1df)][_0xdeeaf6(0x1bc)](_0xa8513b),this['_send']({'type':0x0,'memberID':this[_0xdeeaf6(0x205)],'unitIDs':[_0xa8513b],'isForwarded':!0x1});}[_0x568b98(0x28b)](_0x2f0244){const _0xb62d6e=_0x568b98;this['_selfUnitIDs'][_0xb62d6e(0x15b)](_0x2f0244),this['_selfUnitIDs'][_0xb62d6e(0x2aa)]===0x0&&this[_0xb62d6e(0x1bb)]&&window['clearInterval'](this[_0xb62d6e(0x1bb)]);}[_0x568b98(0x1e9)](){const _0x1cb12e=_0x568b98;this[_0x1cb12e(0x219)](_0x1f8c5e(_0x1ef346(window,_0x1cb12e(0x2b2))[_0x1cb12e(0x294)](_0x135db8=>{const _0x35613f=_0x1cb12e;if(_0x135db8[_0x35613f(0x1d0)]!==nt||!_0x135db8['newValue'])return;const _0x1ba5e9=JSON[_0x35613f(0x253)](_0x135db8[_0x35613f(0x29b)]);this[_0x35613f(0x332)](_0x1ba5e9);}))),window[_0x1cb12e(0x235)](_0x1cb12e(0x25c),()=>this['_send']({'type':0x1,'memberID':this[_0x1cb12e(0x205)],'unitIDs':Array[_0x1cb12e(0x188)](this[_0x1cb12e(0x1df)])}));}[_0x568b98(0x332)](_0xa60ff0){const _0x6d9893=_0x568b98;switch(_0xa60ff0[_0x6d9893(0x2fc)]){case 0x0:this[_0x6d9893(0x266)](_0xa60ff0);break;case 0x1:this['_handleLeaveEvent'](_0xa60ff0);break;case 0x2:this[_0x6d9893(0x221)](_0xa60ff0);break;}}['_handleJoinEvent'](_0x2e4c7c){const _0xf441e9=_0x568b98,{unitIDs:_0x5e9689,memberID:_0x2c8c63,isForwarded:_0x513e70}=_0x2e4c7c;_0x5e9689[_0xf441e9(0x153)](_0x4584a7=>{const _0x7c2757=_0xf441e9;if(!_0x513e70&&this[_0x7c2757(0x16e)][_0x7c2757(0x2c4)](_0x4584a7)&&this[_0x7c2757(0x16d)](_0x4584a7)[_0x7c2757(0x27b)](_0x540c8d['OTHER_CLIENTS_EDITING']),!this[_0x7c2757(0x16e)][_0x7c2757(0x2c4)](_0x4584a7)||!this[_0x7c2757(0x16e)][_0x7c2757(0x282)](_0x4584a7)[_0x7c2757(0x2c4)](_0x2c8c63)){const _0x248211=this['_unitOnClients'][_0x7c2757(0x282)](_0x4584a7)||new Set();_0x248211[_0x7c2757(0x1bc)](_0x2c8c63),this[_0x7c2757(0x16e)][_0x7c2757(0x214)](_0x4584a7,_0x248211),this['_scheduleClearOtherTimer'](_0x2c8c63);}}),_0x513e70||this['_send']({'type':0x0,'memberID':this[_0xf441e9(0x205)],'unitIDs':[...this[_0xf441e9(0x1df)]],'isForwarded':!0x0});}[_0x568b98(0x146)](_0x85a1bd){const _0x36961d=_0x568b98;this[_0x36961d(0x2a7)](_0x85a1bd);const _0x34a2c9=window[_0x36961d(0x176)](()=>{const _0x5906f0=_0x36961d;this[_0x5906f0(0x16e)]['forEach'](_0x209e1f=>{const _0x3184a4=_0x5906f0;_0x209e1f[_0x3184a4(0x15b)](_0x85a1bd);});},it*0x2);this[_0x36961d(0x22b)][_0x36961d(0x214)](_0x85a1bd,_0x34a2c9);}[_0x568b98(0x2a7)](_0x393a56){const _0x8c8e45=_0x568b98;if(this[_0x8c8e45(0x22b)]['has'](_0x393a56)){const _0x55a751=this[_0x8c8e45(0x22b)][_0x8c8e45(0x282)](_0x393a56);_0x55a751&&window[_0x8c8e45(0x285)](_0x55a751),this[_0x8c8e45(0x22b)]['set'](_0x393a56,null);}}[_0x568b98(0x20e)](_0x1bfdb7){const _0x423fca=_0x568b98,{memberID:_0x4f0bde,unitIDs:_0x356cb9}=_0x1bfdb7;_0x356cb9[_0x423fca(0x153)](_0xd23e6e=>{const _0xa4afa9=_0x423fca;var _0x206467;const _0x1c2d7e=this[_0xa4afa9(0x16e)][_0xa4afa9(0x282)](_0xd23e6e);_0x1c2d7e&&(_0x1c2d7e[_0xa4afa9(0x15b)](_0x4f0bde),(_0x206467=this['_ensureSubject'](_0xd23e6e))==null||_0x206467[_0xa4afa9(0x27b)](_0x1c2d7e['size']===0x0?_0x540c8d['NO_OTHER_CLIENTS_EDITING']:_0x540c8d[_0xa4afa9(0x14a)]));}),this['_removeClearOtherTimer'](_0x4f0bde);}[_0x568b98(0x221)](_0x4c44ce){const _0x4d9949=_0x568b98;this[_0x4d9949(0x146)](_0x4c44ce['memberID']);}['_send'](_0x4caa74){const _0x53bb83=_0x568b98;localStorage['setItem'](nt,JSON[_0x53bb83(0x152)](_0x4caa74));}[_0x568b98(0x2d8)](){const _0x358b28=_0x568b98;this[_0x358b28(0x1bb)]=window[_0x358b28(0x1db)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},it);}[_0x568b98(0x16d)](_0x45f3fe){const _0x201ef1=_0x568b98;return this[_0x201ef1(0x21c)][_0x201ef1(0x2c4)](_0x45f3fe)||this[_0x201ef1(0x21c)][_0x201ef1(0x214)](_0x45f3fe,new _0xd1fc21(_0x540c8d[_0x201ef1(0x255)])),this[_0x201ef1(0x21c)][_0x201ef1(0x282)](_0x45f3fe);}}var Mt=(_0x2a4a79=>(_0x2a4a79[_0x2a4a79[_0x568b98(0x1f0)]=0x0]=_0x568b98(0x1f0),_0x2a4a79[_0x2a4a79['OK']=0x1]='OK',_0x2a4a79[_0x2a4a79[_0x568b98(0x275)]=0x2]='INTERNAL_ERROR',_0x2a4a79[_0x2a4a79[_0x568b98(0x223)]=0x3]=_0x568b98(0x223),_0x2a4a79[_0x2a4a79[_0x568b98(0x25f)]=0x4]=_0x568b98(0x25f),_0x2a4a79[_0x2a4a79[_0x568b98(0x300)]=0x5]='UNAUTHENTICATED',_0x2a4a79[_0x2a4a79[_0x568b98(0x26c)]=0x6]=_0x568b98(0x26c),_0x2a4a79[_0x2a4a79[_0x568b98(0x1da)]=0x7]=_0x568b98(0x1da),_0x2a4a79[_0x2a4a79[_0x568b98(0x318)]=0x8]='TOO_MANY_REQUESTS',_0x2a4a79[_0x2a4a79[_0x568b98(0x315)]=0x9]='COMPLETION_FINISHED',_0x2a4a79[_0x2a4a79[_0x568b98(0x1ad)]=0xa]=_0x568b98(0x1ad),_0x2a4a79[_0x2a4a79['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x568b98(0x293),_0x2a4a79[_0x2a4a79[_0x568b98(0x197)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2a4a79[_0x2a4a79[_0x568b98(0x280)]=0x1772]=_0x568b98(0x280),_0x2a4a79[_0x2a4a79[_0x568b98(0x304)]=0x1773]=_0x568b98(0x304),_0x2a4a79[_0x2a4a79['APPLY_REJECT']=0x1b59]=_0x568b98(0x2db),_0x2a4a79[_0x2a4a79['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x568b98(0x208),_0x2a4a79[_0x2a4a79['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x568b98(0x250),_0x2a4a79[_0x2a4a79[_0x568b98(0x17c)]=0x1b5c]=_0x568b98(0x17c),_0x2a4a79[_0x2a4a79[_0x568b98(0x16a)]=0x1b5d]=_0x568b98(0x16a),_0x2a4a79[_0x2a4a79[_0x568b98(0x31b)]=0x1f41]=_0x568b98(0x31b),_0x2a4a79[_0x2a4a79['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x568b98(0x31e),_0x2a4a79[_0x2a4a79['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x568b98(0x1e1),_0x2a4a79[_0x2a4a79[_0x568b98(0x309)]=0x232b]=_0x568b98(0x309),_0x2a4a79[_0x2a4a79['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x568b98(0x259),_0x2a4a79[_0x2a4a79[_0x568b98(0x24b)]=0x232d]=_0x568b98(0x24b),_0x2a4a79[_0x2a4a79[_0x568b98(0x274)]=0x2711]=_0x568b98(0x274),_0x2a4a79[_0x2a4a79[_0x568b98(0x13e)]=0x2712]=_0x568b98(0x13e),_0x2a4a79[_0x2a4a79[_0x568b98(0x338)]=0x2713]=_0x568b98(0x338),_0x2a4a79[_0x2a4a79['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2a4a79[_0x2a4a79[_0x568b98(0x270)]=0x271a]=_0x568b98(0x270),_0x2a4a79[_0x2a4a79['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x568b98(0x16c),_0x2a4a79[_0x2a4a79[_0x568b98(0x192)]=0x271c]=_0x568b98(0x192),_0x2a4a79[_0x2a4a79[_0x568b98(0x242)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2a4a79[_0x2a4a79[_0x568b98(0x206)]=0x271e]=_0x568b98(0x206),_0x2a4a79[_0x2a4a79[_0x568b98(0x28d)]=0x271f]=_0x568b98(0x28d),_0x2a4a79[_0x2a4a79[_0x568b98(0x2fe)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2a4a79[_0x2a4a79['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x568b98(0x2f9),_0x2a4a79[_0x2a4a79[_0x568b98(0x1e5)]=0x2ee2]=_0x568b98(0x1e5),_0x2a4a79[_0x2a4a79[_0x568b98(0x313)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2a4a79[_0x2a4a79[_0x568b98(0x26f)]=0x2ee4]=_0x568b98(0x26f),_0x2a4a79[_0x2a4a79[_0x568b98(0x29e)]=0x2ee5]=_0x568b98(0x29e),_0x2a4a79[_0x2a4a79[_0x568b98(0x1c7)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2a4a79[_0x2a4a79[_0x568b98(0x239)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2a4a79[_0x2a4a79[_0x568b98(0x1fd)]=0x32cb]=_0x568b98(0x1fd),_0x2a4a79[_0x2a4a79[_0x568b98(0x30b)]=-0x1]='UNRECOGNIZED',_0x2a4a79))(Mt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x8c78d7,_0x30c8b8,_0x1afb19,_0x44f720)=>{const _0x3fa057=_0x568b98;for(var _0x214c6d=_0x44f720>0x1?void 0x0:_0x44f720?pn(_0x30c8b8,_0x1afb19):_0x30c8b8,_0x538323=_0x8c78d7[_0x3fa057(0x2d9)]-0x1,_0x27a66d;_0x538323>=0x0;_0x538323--)(_0x27a66d=_0x8c78d7[_0x538323])&&(_0x214c6d=_0x27a66d(_0x214c6d)||_0x214c6d);return _0x214c6d;},be=(_0x56e62c,_0x1da8b5)=>(_0x419e56,_0x4aef0b)=>_0x1da8b5(_0x419e56,_0x4aef0b,_0x56e62c);let rt=class extends _0x3f16d8{constructor(_0x119642,_0x29bd96,_0x81c37e){const _0x1a6263=_0x568b98;super(),this[_0x1a6263(0x190)]=_0x119642,this[_0x1a6263(0x29f)]=_0x29bd96,this[_0x1a6263(0x157)]=_0x81c37e;}async[_0x568b98(0x1d4)](_0x32b653,_0x49429b,_0x4edd32,..._0x26eb44){const _0x26af25=_0x568b98;var _0x5d2c6b,_0x3f89d1,_0x5061a5,_0x4ee789;const _0x9f71a9=this[_0x26af25(0x190)][_0x26af25(0x2c1)]();if(!_0x9f71a9)throw new Error(_0x26af25(0x2e0));const _0x301040=((_0x5d2c6b=this['_configService']['getConfig'](_0x1ecb0e))!=null?_0x5d2c6b:_0x563a1a)+'/'+_0x32b653+_0x26af25(0x341)+_0x49429b,_0x5d1ce6=new URL(window[_0x26af25(0x268)][_0x26af25(0x145)]),_0x37a25c={'scriptId':_0x32b653,'runId':(_0x3f89d1=_0x5d1ce6[_0x26af25(0x1a6)][_0x26af25(0x282)](_0x26af25(0x1a5)))!=null?_0x3f89d1:'','function':_0x49429b,'unitId':_0x9f71a9[_0x26af25(0x284)](),'argsOfFunction':JSON['stringify'](_0x26eb44),'invokeId':(_0x5061a5=_0x4edd32['invokeId'])!=null?_0x5061a5:'','executionId':(_0x4ee789=_0x4edd32[_0x26af25(0x213)])!=null?_0x4ee789:''};try{const _0x1cc4b5=await this[_0x26af25(0x29f)][_0x26af25(0x231)](_0x301040,{'body':_0x37a25c});return _0x1cc4b5[_0x26af25(0x2e1)][_0x26af25(0x1b3)]&&_0x1cc4b5[_0x26af25(0x2e1)][_0x26af25(0x1b3)]['code']!==Mt['OK']?_0x26af25(0x1b4):_0x1cc4b5[_0x26af25(0x2e1)][_0x26af25(0x195)];}catch{return _0x26af25(0x1b4);}}};rt=Cn([be(0x0,_0x1234fa),be(0x1,_0x6d32dc(_0x3ee678)),be(0x2,_0x57f776)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x55d1f4=_0x1979;(function(_0x3a9947,_0x192f6d){const _0x3d897b=_0x1979,_0x19545a=_0x3a9947();while(!![]){try{const _0x52e874=-parseInt(_0x3d897b(0x213))/0x1*(-parseInt(_0x3d897b(0x396))/0x2)+parseInt(_0x3d897b(0x1f6))/0x3*(parseInt(_0x3d897b(0x37e))/0x4)+-parseInt(_0x3d897b(0x2be))/0x5*(-parseInt(_0x3d897b(0x3ac))/0x6)+parseInt(_0x3d897b(0x3ee))/0x7*(-parseInt(_0x3d897b(0x28d))/0x8)+parseInt(_0x3d897b(0x2b7))/0x9+parseInt(_0x3d897b(0x35a))/0xa*(parseInt(_0x3d897b(0x28f))/0xb)+-parseInt(_0x3d897b(0x1ff))/0xc;if(_0x52e874===_0x192f6d)break;else _0x19545a['push'](_0x19545a['shift']());}catch(_0x545093){_0x19545a['push'](_0x19545a['shift']());}}}(_0x19e8,0x8c694));var $t=Object[_0x55d1f4(0x38f)],xt=(_0xa375cc,_0x22526c,_0x613141)=>_0x22526c in _0xa375cc?$t(_0xa375cc,_0x22526c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x613141}):_0xa375cc[_0x22526c]=_0x613141,_=(_0x34994a,_0x531b09,_0x4671c0)=>xt(_0x34994a,typeof _0x531b09!='symbol'?_0x531b09+'':_0x531b09,_0x4671c0);import{MemberService as _0x4c578f,SessionStatus as _0x3043a4,CollaborationSessionService as _0x24e19e,CollaborationStatus as _0x5c5758,CollaborationController as _0x412df8,ILocalCacheService as _0xa7efe,CollaborationUIEventService as _0x37c49f,CollaborationUIEventId as _0xcbcc31,DataLoaderService as _0xd795bf,DocCollaborationEntity as _0x18a400,getLocalCacheKey as _0x25f6b7,LOCAL_CACHE_INTERVAL as _0x5e498d,LOCAL_CACHE_INTERVAL_KEY as _0x29aa17,UniverCollaborationClientPlugin as _0x540df7,CollaborationSocketService as _0x4f3a19,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3da5b6,DEFAULT_WS_SESSION_TICKET_URL as _0x4969ef,UnitStatus as _0x5488a0,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1c31bc,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5abb5d}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x5e2d42,Disposable as _0x5908e2,DOC_RANGE_TYPE as _0x1c2ed9,Inject as _0x3149e4,Injector as _0x30e431,IUniverInstanceService as _0x59505c,ICommandService as _0x33c12d,debounce as _0x369bd1,Rectangle as _0x2ff743,DisposableCollection as _0xfb9d40,toDisposable as _0x5cf123,UniverInstanceType as _0x50d3bb,Tools as _0x5455c0,COLORS as _0x10e9b4,ColorKit as _0x1abd05,ThemeService as _0xfa15a,fromEventSubject as _0x4ac3d3,LocaleService as _0x57e0c4,createIdentifier as _0x938697,ILogService as _0x386156,Optional as _0xa5ad82,Workbook as _0x5c5d1e,CommandType as _0xa2421b,IConfigService as _0x81ac81,ILocalStorageService as _0x2acfa2,DependentOn as _0x2ab004,Plugin as _0x30ad2e,merge as _0x27c1cc,registerDependencies as _0x5d9f83,mergeOverrideWithDependencies as _0x436d9d,touchDependencies as _0x458de9,generateRandomId as _0x3ae13b}from'@univerjs/core';import{Shape as _0x4ce9de,Rect as _0x21a667,getColor as _0x2ff2dd,RegularPolygon as _0xcca2e4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x25bac3,Vector2 as _0x1b88c3,SHEET_VIEWPORT_KEY as _0x358695,IRenderManagerService as _0x49352a}from'@univerjs/engine-render';import{ISocketService as _0x510c6b,WebSocketService as _0x15102b,HTTPService as _0x108837}from'@univerjs/network';import{IDocClipboardService as _0x3aff6f,NodePositionConvertToCursor as _0xb9cba1,NodePositionConvertToRectRange as _0x1e8f1b,TEXT_RANGE_LAYER_INDEX as _0x2b8fa3,SetDocZoomRatioOperation as _0x3123e9,DocIMEInputManagerService as _0x45df3d,DocStateChangeManagerService as _0x4d100b}from'@univerjs/docs-ui';import{IImageIoService as _0x4be75b}from'@univerjs/drawing';import{BehaviorSubject as _0x1260b7,debounceTime as _0x24825e,takeUntil as _0x4d4566,Subject as _0x1ffc03,filter as _0x45e33c,switchMap as _0x38efb6,merge as _0x553789,combineLatest as _0x1d80f7,of as _0x4b87cf,fromEvent as _0x4e45c3,shareReplay as _0x70d521,mapTo as _0x3d70d1,distinctUntilChanged as _0x5ea6db}from'rxjs';import{SetTextSelectionsOperation as _0x2e293f,RichTextEditingMutation as _0x26abca,DocSelectionManagerService as _0x692bc4,DocSkeletonManagerService as _0x4e1d1e}from'@univerjs/docs';import{ITransformService as _0x2a95df,CollaborationEvent as _0x154489,isTransformMutationFailure as _0x30cf0a,isTransformMutationsWithChangesetSuccess as _0x3e110f,RevisionService as _0x200769,ISnapshotServerService as _0x21d0cb}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x13707b,serializeRangeWithSheet as _0x2363e3}from'@univerjs/engine-formula';import{RefRangeService as _0x2c52e0,SetSelectionsOperation as _0x2f8052,SheetsSelectionsService as _0x3cb0a4,EffectRefRangId as _0x8cc040,handleIRemoveRow as _0x366c00,handleIRemoveCol as _0x5a795d,handleMoveRange as _0x4f837d,handleInsertRow as _0x106826,handleInsertRangeMoveRight as _0x4a6245,handleInsertRangeMoveDown as _0x342a5e,handleInsertCol as _0xa63dc6,handleDeleteRangeMoveUp as _0x4f5dfa,handleDeleteRangeMoveLeft as _0x2d1960,runRefRangeMutations as _0x5867da,SetWorksheetActivateCommand as _0x2f0bc5}from'@univerjs/sheets';import{map as _0x4e2b5d,filter as _0x576c2d,throttleTime as _0x457327,takeUntil as _0x13f3e6,switchMap as _0x1b1d82}from'rxjs/operators';import{SheetSkeletonManagerService as _0x46dbff,getCoordByCell as _0x461072,getSheetObject as _0x3d12ae}from'@univerjs/sheets-ui';import{jsx as _0x19ac6d,jsxs as _0x24d0dd}from'react/jsx-runtime';import{useObservable as _0x16d072,useDependency as _0x4e1797,IUIPartsService as _0x21f7ff,BuiltInUIPart as _0x368e5d,connectInjector as _0x5df900,IBeforeCloseService as _0x2c59c6,IMessageService as _0x444ff5,INotificationService as _0x163036}from'@univerjs/ui';import{Tooltip as _0x2d329a,clsx as _0x13ecfb,MessageType as _0x32ec12}from'@univerjs/design';import{forwardRef as _0x57d9a7,useRef as _0x18c3a4,createElement as _0x334127,useCallback as _0x25aa5c}from'react';import{IRemoteInstanceService as _0x398713}from'@univerjs/rpc';var ci=Object[_0x55d1f4(0x341)],li=(_0x2c7ac6,_0x2d5e25,_0x5e473f,_0x2ba678)=>{const _0x34c3e6=_0x55d1f4;for(var _0x84b68e=_0x2ba678>0x1?void 0x0:_0x2ba678?ci(_0x2d5e25,_0x5e473f):_0x2d5e25,_0x227cea=_0x2c7ac6[_0x34c3e6(0x3e5)]-0x1,_0x8a16fc;_0x227cea>=0x0;_0x227cea--)(_0x8a16fc=_0x2c7ac6[_0x227cea])&&(_0x84b68e=_0x8a16fc(_0x84b68e)||_0x84b68e);return _0x84b68e;},Je=(_0x41f134,_0x52a171)=>(_0x319c6d,_0x5aa645)=>_0x52a171(_0x319c6d,_0x5aa645,_0x41f134);let Ne=class extends _0x5e2d42{constructor(_0x4fda19,_0x18c2cf){const _0x32ee8d=_0x55d1f4;super(),this[_0x32ee8d(0x3dd)]=_0x4fda19,this['_imageIoService']=_0x18c2cf,this[_0x32ee8d(0x2d5)]();}[_0x55d1f4(0x2d5)](){const _0xcf197c=_0x55d1f4,_0x22b59e=this;this[_0xcf197c(0x2a8)](this[_0xcf197c(0x3dd)][_0xcf197c(0x229)]({'onBeforePasteImage':async _0x4dcfec=>{const _0x43b655=_0xcf197c,_0x5c012a=await _0x22b59e[_0x43b655(0x209)][_0x43b655(0x26f)](_0x4dcfec);return _0x5c012a?{'source':_0x5c012a[_0x43b655(0x288)],'imageSourceType':_0x5c012a[_0x43b655(0x227)]}:null;}}));}};Ne=li([Je(0x0,_0x3aff6f),Je(0x1,_0x4be75b)],Ne);const Ze=[_0x55d1f4(0x366),_0x55d1f4(0x374),'green.600',_0x55d1f4(0x3e0),_0x55d1f4(0x262),_0x55d1f4(0x242)];class ke extends _0x5908e2{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x55d1f4(0x2fa)](_0x2c0579){const _0x299d1d=_0x55d1f4;if(this[_0x299d1d(0x224)][_0x299d1d(0x3d2)](_0x2c0579))return this[_0x299d1d(0x224)][_0x299d1d(0x3dc)](_0x2c0579);const _0x3576e3=Ze[this[_0x299d1d(0x33b)]];return this['_colorIndex']=(this[_0x299d1d(0x33b)]+0x1)%Ze[_0x299d1d(0x3e5)],this[_0x299d1d(0x224)][_0x299d1d(0x2c7)](_0x2c0579,_0x3576e3),_0x3576e3;}}function Tt(_0x27ffa7){const _0x1949ee=_0x55d1f4;let _0x326b41='';for(const _0x116dd1 of _0x27ffa7){const {startOffset:_0x42949c,endOffset:_0x2280bd,isActive:_0x44626f,rangeType:_0x2a8eff,segmentId:_0x5b6e49,segmentPage:_0x351039}=_0x116dd1;_0x326b41[_0x1949ee(0x3e5)]&&(_0x326b41+=','),_0x326b41+=_0x42949c+':'+_0x2280bd+':'+(_0x44626f?'1':'0')+':'+_0x2a8eff+':'+_0x5b6e49+':'+_0x351039;}return _0x326b41;}function _i(_0x21939f){const _0x46b7b4=_0x55d1f4,_0x521912=_0x21939f[_0x46b7b4(0x34a)](','),_0x9df1b7=[];for(const _0x6f2074 of _0x521912){const [_0x2f38b0,_0x4399d8,_0x59e28a,_0x39d4b2,_0x51da8b,_0x48410d]=_0x6f2074[_0x46b7b4(0x34a)](':');_0x9df1b7[_0x46b7b4(0x281)]({'startOffset':Number(_0x2f38b0),'endOffset':Number(_0x4399d8),'collapsed':_0x2f38b0===_0x4399d8,'isActive':_0x59e28a==='1','rangeType':_0x39d4b2===_0x1c2ed9['TEXT']?_0x1c2ed9[_0x46b7b4(0x3b2)]:_0x1c2ed9['RECT'],'segmentId':typeof _0x51da8b==_0x46b7b4(0x3aa)?String(_0x51da8b):'','segmentPage':Number(_0x48410d!=null?_0x48410d:-0x1)});}return _0x9df1b7['some'](_0x3ad9a3=>_0x3ad9a3[_0x46b7b4(0x2ca)])||(_0x9df1b7[0x0]['isActive']=!0x0),_0x9df1b7;}class He extends _0x5e2d42{constructor(){const _0x2d2a2c=_0x55d1f4;super(...arguments),_(this,'_collabCursorState$',new _0x1260b7(null)),_(this,_0x2d2a2c(0x2ed),this[_0x2d2a2c(0x333)]['asObservable']());}[_0x55d1f4(0x29c)](_0x4dd4ec){const _0xfac6d0=_0x55d1f4,{unitID:_0x36da07,memberID:_0xc56f26,textRanges:_0x46eb2b}=_0x4dd4ec,_0xa1c585=Tt(_0x46eb2b);if(_0xa1c585==='')return;const _0x1f9ee5={'unitID':_0x36da07,'memberID':_0xc56f26,'selection':_0xa1c585};this['_collabCursorState$'][_0xfac6d0(0x38b)](_0x1f9ee5);}}function _0x19e8(){const _0x141ea2=['SOCKET_FAILED_RETRY','clearTimeout','session.collaboration-timeout','xlink:href','NOT_COLLAB','registerRenderModule','delete','getMergeData','enableLocalCache','defs','getUnitId','_clearOtherTimers','session.connection-failed','hide','push','code','PERMISSION_DENIED','_setupSubUnitSync','_injector','all','_themeService','source','VIEW_MAIN','_initStatusComponent','_collabCursorController','YUUMI_NO_CUBOID_FOR_QUESTION','96112OiLjvG','post','297cGYfXP','assign','doc.mutation.rich-text-editing','attrs','_heartbeatTimer','deepClone','reconnect','onRendered','_handleHeartbeatEvent','runOnServer','_messageService','APPLY_PERMISSION_DENIED','prototype','syncEditingCollabCursor','subscribeEvent','engine','DeleteRangeMoveUpCommandId','from','_saveCache','transformIMECache','FromArray','PENDING','map','_cachedData','text','disposeWithMe','_unitOnClients','setInterval','NO_OTHER_CLIENTS_EDITING','_labelPosition','icon','subscribe','INVALID_INVITE_CODE','color','concat','YUUMI_AI_RUN_FAILED','MOBILE_HAS_BEEN_BOUND','status$','restore','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','9787140sufLRO','getActiveSheet','_docSkeleton','closePath','Unknown\x20user','uni.network.url-service','_scheduleHeartbeat','494415qOqzOf','m2Prime','exhaustSavingTask','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','RECT','getUnitStatus$','_cursorInfo$','focused$','unitId','set','stringify','cursorInfo','isActive','Failed','_scheduleClearOtherTimer','CHANGESET_REVISION_CONFILICT','_updateSubUnitFromURLParams','MUTATION','_httpService','_doCreateSocket','entries','getCollabCursors$','_online','_init','RemoveRowCommandId','actions','InsertColCommandId','RemoveColCommandId','lineTo','undoState','_refreshCollabCursors','setStateCache','getRangePointData','sheetID','[CollaborationDataLoaderController]','_onCursorUpdate','createInstance','currentTheme$','_memberService','indexOf','_handleLeaveEvent','collab-rect-range-','#FFF','_sheetSkeletonManagerService','_textBubble','urlChange$','backgroundColor','collabCursorState$','onPointerMove$','disposeUnit','url(#$1','COMPLETION_FINISHED','_unitStatus','_onCursorDelete','_createSocketURL','getUnhiddenWorksheets','use','_urlService','body','onPointerEnter$','assignAColorForMemberID','INTERNAL_ERROR','currentColor','type','_initDependencies','m1Prime','height','values','font','USERS_LEAVE','roomMembers$','fillRule','_localeService','getVpScrollXYInfoByPosToVp','makeDirty','updateOfflineData','_commandService','_cursor','YUUMI_RATE_OVER_LIMIT','collabStatus.notCollab','setParam','getParam','_colorAssignService','UNDEFINED','_renderManagerService','setItem','onCommandExecuted','show','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','M0\x200H16V16H0z','ONLINE','_render','disableLocalCache','replaceState','AWAITING','forEach','invokeId','_handleEvent','OFFLINE','OnLineSingle','_setupBeforeClosingHandler','_transformUndoRedoStack','JOIN_ROOM_FAILED','bottom','getSheetBySheetId','beginPath','getCurrentSelections','_anchor','startsWith','transformStateCache','range','_startDocCollabCursor','collaboration-client-ui.config','labelPosition','OTHER_CLIENT_EDITING','YUUMI_TABLE_NOT_FOUND_IN_UNIT','trim','_collabCursorState$','_entityInit$','YUUMI_ALL_TABLES_IS_INVALID','roomMembers','INVITE_CODE_REQUIRED','_cursorShapes','mask','_send','_colorIndex','application/json','[RemoteUniscriptService]:\x20no\x20focused\x20unit','params','off-line-single_clip0_910_343','_scheduleSaving','getOwnPropertyDescriptor','hovered','_handleHover','_draw','_refRangeService','_toggleOffline','measureText','collabStatus.conflict','_docTransformSelectionsService','split','addObjects','svg','getOffsetConfig','_registerDependencies','activeSheet$','_registerRenderDependencies','findNodePositionByCharIndex','_selfUnitIDs','_docTransformIMECacheService','init','_revisionService','column','round','with','getColorFromTheme','369470dJsPJf','extend','_ensureSubject','_updateLocalCursor','_syncEditingCollabCursorService','add','registerRefRange','dispose$','Warning','transformSelections','displayName','unitID','purple.300','arc','_initEvent','APPLY_REJECT','getConfig','1em','ACTIVE_UNIT_EVENT_CHANNEL','collab-text-anchor-','clearInterval','collab-text-range-','endColumn','TOO_MANY_REQUESTS','_docSkeletonManagerService','YUUMI_URL_COL_OUT_OF_RANGE','jiqing.500','fill','YUUMI_SUBSCRIPTION_NOT_FOUND','unload','loadUnit','transformByState','_updateCollabCursors','tag','collaboration.closeRoom','toRgbString','2678072KvrYHx','eventID','storage','INVITE_CODE_HAS_BEEN_UES','find','UNIVER_DOC','history','_initStatusListener','_getSaveTimeout','_removeClearOtherTimer','sheetId','executeCommand','black','next','DeleteRangeMoveLeftCommandId','selections','SNAPSHOT_INVALID_SNAPSHOT','defineProperty','YUUMI_UNABLE_LOAD_URL','size','YUUMI_ASYNCIO_CANCELLED','_getSessionTicket','transformMutation','min','8468qpAVUb','collabStatus.syncing','getSkeleton','getUndoRedoMutationParamsCache','substring','children','_drawTextRange','toString','defIds','save','on-line-single_clip0_910_349','random','popstate','UNIVER_SHEET','_getSheetObject','_status$','WECHAT_HAS_BEEN_BOUND','pluginName','currentSkeleton$','cursorInfo$','string','APPLY_DUPLICATED','6KGgXJg','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','APPLY_REVISION_CONFILICT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_beforeCloseService','setShapeProps','TEXT','NOT_FOUND','_hover','idSuffix','loadOfflineData','SOCKET_FAILED','_getAnchorBounding','_shapes','getRenderById','translate(.97)','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LOGIN_FAILED','generateRandomId','flatMap','_updateURLWithCurrentState','url(#on-line-single_clip0_910_349)','_drawRectRange','resize','_getMergeRange','OffLineSingle','override','INVALID_ARGUMENT','transformMutationsWithChangeset','event$','_hovered','_logService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','dispose','INVITE_CODE_ALREADY_BOUND','data','send','executionId','has','runId','_instanceService','propertyIsEnumerable','_collaborationController','_lastPointer','getRelativeToViewportCoord','getFocusedUnit','_dataLoaderService','ticket','get','_docClipboardService','replace','UNAUTHENTICATED','red.300','UPDATE_CURSOR','top','ranges','saveTaskMap','length','_configService','function','name','AWAITING_WITH_PENDING','getCellPositionByOffset','_docSyncEditingCollabCursorService','rgba(255,\x20255,\x20255,\x200.01)','_color','77NKGOzO','APPLY_NON_SEQUENTIAL_REVISION','_transformHistoryAndStateStack','_localStorageService','_onRefRangeChange','moveTo','getCurrent','newValue','getDocRanges','3PAEbrs','_roomMembers$','_name','CONFLICT','colorChannel1','memberID','drawWith','_docTransformStateCacheService','setConfig','28700688MMuECb','none','_hideTimer','href','getOwnPropertySymbols','call','_initEntityListener','LICENSE_MAX_UNITS_EXCEEDED','key','className','_imageIoService','div','hasOwnProperty','getAncestorScale','getSheetId','pushState','_eventUnsubscribe','_saveTaskMap','evenodd','clipPath','58NUDKko','_scene','width','_range','getItem','_transformService','addHandlerCallback','InsertRangeMoveRightCommandId','registerBeforeClose','_startSheetCollabCursor','onMouseMove','redoState','_backgroundColor','_docStateChangeManagerService','_univerInstanceService','location','getTypeOfUnitAdded$','_assignedColors','_id','onPointerLeave$','imageSourceType','fillText','addClipboardHook','ENSURE_SNAPSHOT_EXECUTION','_removeCollabCursors','getStateCache','_collabSessionService','#fff','getMember','complete','Error','registerComponent','includes','error','_config','addEventListener','OTHER_CLIENTS_EDITING','triggerDblclick','_initCommandExecutedListener','row','UNRECOGNIZED','_initResize','searchParams','ALREADY_EXISTS','EMAIL_HAS_BEEN_BOUND','wsSessionTicketUrl','unshift','yellow.400','...','_drawAnchor','collaboration.single-unit.warning','FETCH_MISS','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','setAlpha','CONNECTOR_DATA_TOO_LARGE','addObject','_context','_entities','skeleton','then','LICENSE_IMPORT_SIZE_EXCEEDED','LICENSE_DISTRO_REJECTED','getMemberID','asObservable','off-line-single','_anchorDot','_toggleOnline','isEditing','USER_NOT_INVITED_CODE','sessionStatus$','_localCacheService','replaceDocRanges','_disabled','_uiPartsService','transformRemoteChangeset','subunit','pipe','textRanges','unit','blue.400','isArray','setTimeout','_session','startColumn','path','_cursors','docStateChange$','mutations','CLOSE_ROOM','debug','_transformPreviousActiveRange','getValue','saveImage','fillStyle','MoveRangeCommandId','removeParam'];_0x19e8=function(){return _0x141ea2;};return _0x19e8();}var hi=Object[_0x55d1f4(0x341)],ui=(_0x4fd4db,_0x1be51c,_0x38fe22,_0xff0f8b)=>{const _0x381818=_0x55d1f4;for(var _0x138b3f=_0xff0f8b>0x1?void 0x0:_0xff0f8b?hi(_0x1be51c,_0x38fe22):_0x1be51c,_0x242f2f=_0x4fd4db[_0x381818(0x3e5)]-0x1,_0x4a3318;_0x242f2f>=0x0;_0x242f2f--)(_0x4a3318=_0x4fd4db[_0x242f2f])&&(_0x138b3f=_0x4a3318(_0x138b3f)||_0x138b3f);return _0x138b3f;},L=(_0x49acab,_0x555363)=>(_0x233e08,_0x46b39f)=>_0x555363(_0x233e08,_0x46b39f,_0x49acab);const di=0x12c,fi=0x64;let Ue=class extends _0x5e2d42{constructor(_0xe050f,_0x52af4c,_0x49705c,_0x17c967,_0x2b6de6,_0x1c2786,_0x2ce7bd,_0x461e08,_0x6f4799){const _0x2a1015=_0x55d1f4;super(),_(this,_0x2a1015(0x2d4),!0x1),_(this,_0x2a1015(0x2d5),!0x1),_(this,_0x2a1015(0x2c4),new _0x1260b7(new Map())),_(this,_0x2a1015(0x3a9),this[_0x2a1015(0x2c4)][_0x2a1015(0x252)]()),_(this,_0x2a1015(0x1f7),new _0x1260b7([])),_(this,_0x2a1015(0x304),this['_roomMembers$'][_0x2a1015(0x25f)](_0x24825e(di))),_(this,_0x2a1015(0x35d),_0x369bd1(_0x2cd4d3=>{const _0x10a281=_0x2a1015,_0x8f6319={'eventID':_0x154489['UPDATE_CURSOR'],'data':{'unitID':this[_0x10a281(0x365)],'memberID':this[_0x10a281(0x265)][_0x10a281(0x251)](),'selection':Tt(_0x2cd4d3)}};this['_session'][_0x10a281(0x3d0)](_0x8f6319,this[_0x10a281(0x365)]);},fi)),(this[_0x2a1015(0x365)]=_0xe050f,this[_0x2a1015(0x265)]=_0x52af4c,this[_0x2a1015(0x285)]=_0x49705c,this[_0x2a1015(0x310)]=_0x17c967,this[_0x2a1015(0x2e4)]=_0x2b6de6,this[_0x2a1015(0x35e)]=_0x1c2786,this[_0x2a1015(0x218)]=_0x2ce7bd,this['_univerInstanceService']=_0x461e08,this[_0x2a1015(0x30a)]=_0x6f4799);}get[_0x55d1f4(0x2c9)](){const _0x117922=_0x55d1f4;return this[_0x117922(0x2c4)][_0x117922(0x26e)]();}get[_0x55d1f4(0x336)](){const _0x552dc9=_0x55d1f4;return this['_roomMembers$'][_0x552dc9(0x26e)]();}[_0x55d1f4(0x3cd)](){const _0x8ce4ce=_0x55d1f4;super[_0x8ce4ce(0x3cd)](),this[_0x8ce4ce(0x2c4)][_0x8ce4ce(0x38b)](new Map()),this['_cursorInfo$']['complete'](),this[_0x8ce4ce(0x1f7)][_0x8ce4ce(0x38b)]([]),this['_roomMembers$'][_0x8ce4ce(0x230)]();}[_0x55d1f4(0x354)](){const _0x23c59e=_0x55d1f4;this['_init']||(this[_0x23c59e(0x2d5)]=!0x0,this['_session'][_0x23c59e(0x258)][_0x23c59e(0x25f)](_0x4d4566(this[_0x23c59e(0x361)]))[_0x23c59e(0x2ae)](_0x51f93d=>{const _0x60060a=_0x23c59e;_0x51f93d===_0x3043a4[_0x60060a(0x318)]?this[_0x60060a(0x255)]():this[_0x60060a(0x346)]();}),this[_0x23c59e(0x265)][_0x23c59e(0x3c9)]['pipe'](_0x4d4566(this[_0x23c59e(0x361)]))[_0x23c59e(0x2ae)](_0x241970=>{const _0x24d635=_0x23c59e,_0x428abd=_0x241970[_0x24d635(0x37f)];_0x428abd===_0x154489[_0x24d635(0x3e1)]&&this[_0x24d635(0x2e1)](_0x241970),_0x428abd===_0x154489[_0x24d635(0x303)]&&this['_onCursorDelete'](_0x241970);}),this[_0x23c59e(0x2a8)](this[_0x23c59e(0x30a)][_0x23c59e(0x314)](_0x3c1d8a=>{const _0x147869=_0x23c59e,_0x3f00cc=_0x3c1d8a[_0x147869(0x33e)];_0x3f00cc!=null&&this[_0x147869(0x2d4)]&&_0x3c1d8a['id']===_0x2e293f['id']&&_0x3f00cc[_0x147869(0x2c6)]===this['unitID']&&_0x3f00cc[_0x147869(0x256)]===!0x1&&_0x3f00cc['ranges'][_0x147869(0x3e5)]>0x0&&this[_0x147869(0x35d)](_0x3f00cc['ranges']);})),this[_0x23c59e(0x35e)]['collabCursorState$'][_0x23c59e(0x25f)](_0x4d4566(this[_0x23c59e(0x361)]))[_0x23c59e(0x2ae)](_0x1663f1=>{const _0x3bbe56=_0x23c59e;if((_0x1663f1==null?void 0x0:_0x1663f1['unitID'])!==this[_0x3bbe56(0x365)])return;const _0x5a51e9={'eventID':_0x154489[_0x3bbe56(0x3e1)],'data':_0x1663f1};this[_0x3bbe56(0x2e1)](_0x5a51e9);}),this[_0x23c59e(0x2a8)](this[_0x23c59e(0x30a)][_0x23c59e(0x314)](_0x38473d=>{const _0x3c5d9c=_0x23c59e;if(_0x38473d[_0x3c5d9c(0x33e)]==null)return;const _0x39f703=_0x38473d['params'];if(_0x38473d['id']!==_0x26abca['id']||_0x39f703[_0x3c5d9c(0x2c6)]!==this[_0x3c5d9c(0x365)])return;const _0x507488={'id':_0x3c5d9c(0x291),'params':_0x39f703},_0x53f611=this[_0x3c5d9c(0x2c9)];for(const [_0x7acc6f,_0x41a5ac]of _0x53f611){const _0x38628b={'id':_0x3c5d9c(0x291),'params':{'unitId':this[_0x3c5d9c(0x365)],'actions':null,'textRanges':_0x41a5ac[_0x3c5d9c(0x3e3)]}},_0x3ce2e8=this[_0x3c5d9c(0x218)][_0x3c5d9c(0x394)](_0x507488,_0x38628b,!0x1);if(_0x30cf0a(_0x3ce2e8))throw _0x3ce2e8[_0x3c5d9c(0x234)];_0x53f611[_0x3c5d9c(0x2c7)](_0x7acc6f,{..._0x41a5ac,'ranges':_0x3ce2e8[_0x3c5d9c(0x2bf)]['params'][_0x3c5d9c(0x260)]});}queueMicrotask(()=>{const _0x32f004=_0x3c5d9c;this['_cursorInfo$'][_0x32f004(0x38b)](_0x53f611);});})));}['_onCursorUpdate'](_0x4ff7a3){const _0x1a84d0=_0x55d1f4;var _0x8bf6c8,_0x5647da;const {memberID:_0x1ac0ad,selection:_0x2f2fa1}=_0x4ff7a3[_0x1a84d0(0x3cf)],_0x963ae=_i(_0x2f2fa1),_0x484bed=(_0x5647da=(_0x8bf6c8=this[_0x1a84d0(0x2e4)][_0x1a84d0(0x22f)](this[_0x1a84d0(0x365)],_0x1ac0ad))==null?void 0x0:_0x8bf6c8[_0x1a84d0(0x3e8)])!=null?_0x5647da:_0x1a84d0(0x2bb),_0x50df54={'color':this[_0x1a84d0(0x310)]['assignAColorForMemberID'](_0x1ac0ad),'name':_0x484bed,'ranges':_0x963ae},_0x1b8727=this[_0x1a84d0(0x2c9)];_0x1b8727[_0x1a84d0(0x2c7)](_0x1ac0ad,_0x50df54),this['_cursorInfo$'][_0x1a84d0(0x38b)](_0x1b8727);}[_0x55d1f4(0x2f3)](_0x3be4e9){const _0x1bdffe=_0x55d1f4,{memberID:_0x364a6d}=_0x3be4e9[_0x1bdffe(0x3cf)],_0x2db860=this['cursorInfo'];_0x2db860['delete'](_0x364a6d),this[_0x1bdffe(0x2c4)][_0x1bdffe(0x38b)](_0x2db860);}[_0x55d1f4(0x255)](){const _0x2192ff=_0x55d1f4;var _0x1d4133;if(this[_0x2192ff(0x2d4)]=!0x0,((_0x1d4133=this[_0x2192ff(0x221)][_0x2192ff(0x3d9)]())==null?void 0x0:_0x1d4133[_0x2192ff(0x27d)]())!==this['unitID'])return;const _0x1fa0fb=this[_0x2192ff(0x285)][_0x2192ff(0x3dc)](_0x692bc4)[_0x2192ff(0x1f5)]();Array[_0x2192ff(0x263)](_0x1fa0fb)&&_0x1fa0fb[_0x2192ff(0x3e5)]>0x0&&this[_0x2192ff(0x35d)](_0x1fa0fb);}['_toggleOffline'](){const _0x2e1fd8=_0x55d1f4;this[_0x2e1fd8(0x2d4)]=!0x1;}};Ue=ui([L(0x2,_0x3149e4(_0x30e431)),L(0x3,_0x3149e4(ke)),L(0x4,_0x3149e4(_0x4c578f)),L(0x5,_0x3149e4(He)),L(0x6,_0x2a95df),L(0x7,_0x59505c),L(0x8,_0x33c12d)],Ue);var Si=Object[_0x55d1f4(0x341)],mi=(_0x585edc,_0x4ed3d5,_0xe5eff5,_0x8ae1ee)=>{const _0x2ad2a8=_0x55d1f4;for(var _0x17990e=_0x8ae1ee>0x1?void 0x0:_0x8ae1ee?Si(_0x4ed3d5,_0xe5eff5):_0x4ed3d5,_0x2147b8=_0x585edc[_0x2ad2a8(0x3e5)]-0x1,_0x4f24a2;_0x2147b8>=0x0;_0x2147b8--)(_0x4f24a2=_0x585edc[_0x2147b8])&&(_0x17990e=_0x4f24a2(_0x17990e)||_0x17990e);return _0x17990e;},x=(_0x24b3fd,_0x3a4137)=>(_0x573cdd,_0x1ffdd8)=>_0x3a4137(_0x573cdd,_0x1ffdd8,_0x24b3fd);const gi=0x12c,Ii=0x64,vi=()=>{let _0x13e1d2=[],_0x10f456=!0x1;return _0x2a48f8=>{const _0x2c23e8=_0x1979;_0x13e1d2[_0x2c23e8(0x281)](_0x2a48f8),_0x10f456||(_0x10f456=!0x0,setTimeout(()=>{const _0x5d07ee=_0x2c23e8;_0x13e1d2[_0x5d07ee(0x31d)](_0x59acc5=>_0x59acc5()),_0x13e1d2=[],_0x10f456=!0x1;}));};};let Me=class extends _0x5e2d42{constructor(_0x5b927f,_0x359a08,_0x240875,_0xc3b4b0,_0x28af0e,_0x2d0e38,_0x1e6ca9,_0x5e5058){const _0x259ab8=_0x55d1f4;super(),_(this,_0x259ab8(0x2d4),!0x1),_(this,_0x259ab8(0x2d5),!0x1),_(this,_0x259ab8(0x2c4),new _0x1260b7(new Map())),_(this,_0x259ab8(0x3a9),this['_cursorInfo$'][_0x259ab8(0x252)]()),_(this,_0x259ab8(0x1f7),new _0x1260b7([])),_(this,_0x259ab8(0x304),this[_0x259ab8(0x1f7)]['pipe'](_0x24825e(gi))),_(this,_0x259ab8(0x35d),_0x369bd1((_0x2c081c,_0x31d162)=>{const _0x49557a=_0x259ab8,_0x5994a2={'eventID':_0x154489[_0x49557a(0x3e1)],'data':{'unitID':this[_0x49557a(0x365)],'memberID':this[_0x49557a(0x265)][_0x49557a(0x251)](),'selection':_0x2363e3(_0x2c081c,_0x31d162['range'])}};this[_0x49557a(0x265)][_0x49557a(0x3d0)](_0x5994a2,this[_0x49557a(0x365)]);},Ii)),(this[_0x259ab8(0x365)]=_0x5b927f,this['_session']=_0x359a08,this[_0x259ab8(0x285)]=_0x240875,this[_0x259ab8(0x310)]=_0xc3b4b0,this[_0x259ab8(0x2e4)]=_0x28af0e,this[_0x259ab8(0x221)]=_0x2d0e38,this['_commandService']=_0x1e6ca9,this[_0x259ab8(0x345)]=_0x5e5058);}get[_0x55d1f4(0x2c9)](){const _0x42e324=_0x55d1f4;return this[_0x42e324(0x2c4)][_0x42e324(0x26e)]();}get[_0x55d1f4(0x336)](){const _0x56d2dc=_0x55d1f4;return this['_roomMembers$'][_0x56d2dc(0x26e)]();}[_0x55d1f4(0x3cd)](){const _0x4729f4=_0x55d1f4;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x4729f4(0x230)](),this[_0x4729f4(0x1f7)][_0x4729f4(0x38b)]([]),this['_roomMembers$'][_0x4729f4(0x230)]();}[_0x55d1f4(0x354)](){const _0x595d6e=_0x55d1f4;this['_init']||(this['_init']=!0x0,this[_0x595d6e(0x265)][_0x595d6e(0x258)][_0x595d6e(0x25f)](_0x4d4566(this[_0x595d6e(0x361)]))[_0x595d6e(0x2ae)](_0x1a6b0e=>{const _0xeac011=_0x595d6e;_0x1a6b0e===_0x3043a4[_0xeac011(0x318)]?this[_0xeac011(0x255)]():this['_toggleOffline']();}),this[_0x595d6e(0x265)][_0x595d6e(0x3c9)][_0x595d6e(0x25f)](_0x4d4566(this[_0x595d6e(0x361)]))[_0x595d6e(0x2ae)](_0x1fd8ea=>{const _0x15ee1f=_0x595d6e,_0x45c0b=_0x1fd8ea[_0x15ee1f(0x37f)];_0x45c0b===_0x154489[_0x15ee1f(0x3e1)]&&this[_0x15ee1f(0x2e1)](_0x1fd8ea),_0x45c0b===_0x154489['USERS_LEAVE']&&this[_0x15ee1f(0x2f3)](_0x1fd8ea);}),this['_onRefRangeChange'](),this[_0x595d6e(0x2a8)](this[_0x595d6e(0x30a)][_0x595d6e(0x314)](_0x46453d=>{const _0x2337ba=_0x595d6e;if(this[_0x2337ba(0x2d4)]&&_0x46453d['id']===_0x2f8052['id']&&_0x46453d[_0x2337ba(0x33e)][_0x2337ba(0x2c6)]===this[_0x2337ba(0x365)]){const _0x5eecf2=_0x46453d['params'];this[_0x2337ba(0x35d)](_0x5eecf2['subUnitId'],_0x5eecf2[_0x2337ba(0x38d)][0x0]);}})));}[_0x55d1f4(0x2e1)](_0x3a29ed){const _0x5e5ad6=_0x55d1f4;var _0x507be6,_0x5bfca3;const {memberID:_0x3cd968,selection:_0x279c40}=_0x3a29ed[_0x5e5ad6(0x3cf)],{sheetName:_0x2d3e3e,range:_0x577a8a}=_0x13707b(_0x279c40),_0x2f8b2d={'name':(_0x5bfca3=(_0x507be6=this[_0x5e5ad6(0x2e4)][_0x5e5ad6(0x22f)](this[_0x5e5ad6(0x365)],_0x3cd968))==null?void 0x0:_0x507be6[_0x5e5ad6(0x3e8)])!=null?_0x5bfca3:_0x5e5ad6(0x2bb),'range':this[_0x5e5ad6(0x3c4)](_0x2d3e3e,_0x577a8a),'sheetID':_0x2d3e3e,'color':this['_colorAssignService'][_0x5e5ad6(0x2fa)](_0x3cd968),'selection':_0x279c40},_0x6260e3=this[_0x5e5ad6(0x2c9)];_0x6260e3[_0x5e5ad6(0x2c7)](_0x3cd968,_0x2f8b2d),this['_cursorInfo$']['next'](_0x6260e3);}[_0x55d1f4(0x2f3)](_0x20c010){const _0x28d041=_0x55d1f4,{memberID:_0x545742}=_0x20c010[_0x28d041(0x3cf)],_0x314720=this[_0x28d041(0x2c9)];_0x314720[_0x28d041(0x279)](_0x545742),this['_cursorInfo$'][_0x28d041(0x38b)](_0x314720);}['_getMergeRange'](_0x1f52fc,_0x16e074){const _0x454e6f=_0x55d1f4;var _0x577d2e,_0x28728d;const _0x21294e=(_0x28728d=(_0x577d2e=this[_0x454e6f(0x221)]['getUniverSheetInstance'](this[_0x454e6f(0x365)]))==null?void 0x0:_0x577d2e[_0x454e6f(0x326)](_0x1f52fc))==null?void 0x0:_0x28728d[_0x454e6f(0x27a)]();return(_0x21294e==null?void 0x0:_0x21294e[_0x454e6f(0x382)](_0x1b5dda=>_0x2ff743['contains'](_0x1b5dda,_0x16e074)))||_0x16e074;}[_0x55d1f4(0x1f1)](){const _0x14f7aa=_0x55d1f4,_0x1327c5=new _0xfb9d40(),_0x292dc2=vi(),_0x58ca1f=()=>{const _0x259d57=_0x1979;_0x1327c5[_0x259d57(0x3cd)]();const _0x1379ca=(_0x2d0336,_0x4372a3,_0x53e220,_0x19a9f9)=>{const _0x33c4f=_0x259d57;let _0x5c8023=[];switch(_0x2d0336['id']){case _0x8cc040[_0x33c4f(0x38c)]:{_0x5c8023=_0x2d1960(_0x2d0336,_0x19a9f9);break;}case _0x8cc040[_0x33c4f(0x29f)]:{_0x5c8023=_0x4f5dfa(_0x2d0336,_0x19a9f9);break;}case _0x8cc040[_0x33c4f(0x2d8)]:{_0x5c8023=_0xa63dc6(_0x2d0336,_0x19a9f9);break;}case _0x8cc040['InsertRangeMoveDownCommandId']:{_0x5c8023=_0x342a5e(_0x2d0336,_0x19a9f9);break;}case _0x8cc040[_0x33c4f(0x21a)]:{_0x5c8023=_0x4a6245(_0x2d0336,_0x19a9f9);break;}case _0x8cc040['InsertRowCommandId']:{_0x5c8023=_0x106826(_0x2d0336,_0x19a9f9);break;}case _0x8cc040[_0x33c4f(0x271)]:{_0x5c8023=_0x4f837d(_0x2d0336,_0x19a9f9);break;}case _0x8cc040[_0x33c4f(0x2d9)]:{_0x5c8023=_0x5a795d(_0x2d0336,_0x19a9f9);break;}case _0x8cc040[_0x33c4f(0x2d6)]:{_0x5c8023=_0x366c00(_0x2d0336,_0x19a9f9);break;}}const _0x1d4510=_0x5867da(_0x5c8023,_0x19a9f9),_0x253a45=this['cursorInfo'][_0x33c4f(0x3dc)](_0x4372a3);if(_0x253a45&&_0x1d4510){const _0x2560f1={..._0x253a45,'range':_0x1d4510};this[_0x33c4f(0x2c9)][_0x33c4f(0x2c7)](_0x4372a3,_0x2560f1),_0x292dc2(()=>{const _0x1b1d16=_0x33c4f,_0x2e750b=this['_refRangeService']['registerRefRange'](_0x1d4510,_0xc4be28=>(_0x2e750b[_0x1b1d16(0x3cd)](),_0x1379ca(_0xc4be28,_0x4372a3,_0x53e220,_0x1d4510)));_0x1327c5[_0x1b1d16(0x35f)](_0x2e750b);});}return{'redos':[],'undos':[]};};this[_0x259d57(0x2c9)][_0x259d57(0x31d)]((_0x24cf35,_0x45fb86)=>{const _0x18799c=_0x259d57,{range:_0x759c99,sheetID:_0x5cf1d8}=_0x24cf35,_0x1e949=this['_refRangeService'][_0x18799c(0x360)](_0x759c99,_0x24fe1d=>(_0x1e949['dispose'](),_0x1379ca(_0x24fe1d,_0x45fb86,_0x5cf1d8,_0x759c99)));_0x1327c5['add'](_0x1e949);});};this['disposeWithMe'](_0x5cf123(this[_0x14f7aa(0x2c4)][_0x14f7aa(0x2ae)](()=>{_0x58ca1f();})));}[_0x55d1f4(0x255)](){const _0x40a309=_0x55d1f4;var _0x856554,_0x12f408;if(this[_0x40a309(0x2d4)]=!0x0,((_0x856554=this[_0x40a309(0x221)][_0x40a309(0x3d9)]())==null?void 0x0:_0x856554[_0x40a309(0x27d)]())!==this[_0x40a309(0x365)])return;const _0x216950=(_0x12f408=this[_0x40a309(0x285)][_0x40a309(0x3dc)](_0x3cb0a4)[_0x40a309(0x328)]())==null?void 0x0:_0x12f408[0x0],_0x328d84=this['_univerInstanceService']['getCurrentUnitForType'](_0x50d3bb[_0x40a309(0x3a3)])[_0x40a309(0x2b8)]();_0x216950&&_0x328d84&&this[_0x40a309(0x35d)](_0x328d84['getSheetId'](),_0x216950);}[_0x55d1f4(0x346)](){const _0x5d6dd6=_0x55d1f4;this[_0x5d6dd6(0x2d4)]=!0x1;}};Me=mi([x(0x2,_0x3149e4(_0x30e431)),x(0x3,_0x3149e4(ke)),x(0x4,_0x3149e4(_0x4c578f)),x(0x5,_0x59505c),x(0x6,_0x33c12d),x(0x7,_0x3149e4(_0x2c52e0))],Me);var pi=Object[_0x55d1f4(0x341)],Ci=(_0x4bb646,_0x1e54f4,_0x21e3e4,_0x5777ae)=>{const _0x2d81a2=_0x55d1f4;for(var _0x3d8894=_0x5777ae>0x1?void 0x0:_0x5777ae?pi(_0x1e54f4,_0x21e3e4):_0x1e54f4,_0x2112ac=_0x4bb646[_0x2d81a2(0x3e5)]-0x1,_0x2dc5a0;_0x2112ac>=0x0;_0x2112ac--)(_0x2dc5a0=_0x4bb646[_0x2112ac])&&(_0x3d8894=_0x2dc5a0(_0x3d8894)||_0x3d8894);return _0x3d8894;},Se=(_0x109ccc,_0x3cc490)=>(_0x3b0174,_0x35162f)=>_0x3cc490(_0x3b0174,_0x35162f,_0x109ccc);let H=class extends _0x5e2d42{constructor(_0x31dd6f,_0x205ab1,_0x57354a){const _0x4bc600=_0x55d1f4;super(),_(this,_0x4bc600(0x24c),new Map()),_(this,_0x4bc600(0x334),new _0x1ffc03()),(this[_0x4bc600(0x221)]=_0x31dd6f,this[_0x4bc600(0x285)]=_0x205ab1,this[_0x4bc600(0x22d)]=_0x57354a,this[_0x4bc600(0x2d5)]());}[_0x55d1f4(0x3cd)](){const _0x1e68a2=_0x55d1f4;super[_0x1e68a2(0x3cd)](),this[_0x1e68a2(0x334)][_0x1e68a2(0x230)](),this[_0x1e68a2(0x24c)][_0x1e68a2(0x31d)](_0xbbc9ab=>_0xbbc9ab[_0x1e68a2(0x3cd)]());}['getCollabCursors$'](_0x177858){const _0x557d3c=_0x55d1f4;return this[_0x557d3c(0x24c)][_0x557d3c(0x3d2)](_0x177858)?this[_0x557d3c(0x24c)]['get'](_0x177858)[_0x557d3c(0x3a9)]:this['_entityInit$'][_0x557d3c(0x25f)](_0x45e33c(_0x263ac2=>_0x263ac2[_0x557d3c(0x365)]===_0x177858),_0x38efb6(_0x247b8d=>_0x247b8d[_0x557d3c(0x3a9)]));}['_init'](){const _0x35bbb2=_0x55d1f4;this[_0x35bbb2(0x221)]['getTypeOfUnitAdded$'](_0x50d3bb[_0x35bbb2(0x3a3)])[_0x35bbb2(0x25f)](_0x4d4566(this[_0x35bbb2(0x361)]))[_0x35bbb2(0x2ae)](async _0x3b35dd=>{const _0x3f5c99=_0x35bbb2,_0x17c3c6=_0x3b35dd[_0x3f5c99(0x27d)](),_0x5ceef7=await this['_startSheetCollabCursor'](_0x17c3c6);this[_0x3f5c99(0x334)]['next'](_0x5ceef7),this[_0x3f5c99(0x24c)][_0x3f5c99(0x2c7)](_0x17c3c6,_0x5ceef7);}),this['_univerInstanceService'][_0x35bbb2(0x223)](_0x50d3bb[_0x35bbb2(0x383)])[_0x35bbb2(0x25f)](_0x4d4566(this['dispose$']))[_0x35bbb2(0x25f)](_0x45e33c(_0x3e0b7c=>!_0x3e0b7c[_0x35bbb2(0x27d)]()[_0x35bbb2(0x32a)]('__')))[_0x35bbb2(0x2ae)](async _0x52b43f=>{const _0x40b0af=_0x35bbb2,_0x2ceb51=_0x52b43f['getUnitId'](),_0x5c3a1c=await this[_0x40b0af(0x32d)](_0x2ceb51);this[_0x40b0af(0x334)][_0x40b0af(0x38b)](_0x5c3a1c),this[_0x40b0af(0x24c)][_0x40b0af(0x2c7)](_0x2ceb51,_0x5c3a1c);}),_0x553789(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x50d3bb[_0x35bbb2(0x383)]),this[_0x35bbb2(0x221)]['getTypeOfUnitDisposed$'](_0x50d3bb[_0x35bbb2(0x3a3)]))[_0x35bbb2(0x25f)](_0x4d4566(this[_0x35bbb2(0x361)]))[_0x35bbb2(0x2ae)](_0x516924=>{const _0x14088a=_0x35bbb2,_0x2adb0a=_0x516924[_0x14088a(0x27d)](),_0x35e8b6=this['_entities']['get'](_0x2adb0a);_0x35e8b6&&(_0x35e8b6[_0x14088a(0x3cd)](),this[_0x14088a(0x24c)][_0x14088a(0x279)](_0x2adb0a));});}async[_0x55d1f4(0x21c)](_0x2f13b7){const _0x304a6a=_0x55d1f4,_0x951bcd=await this[_0x304a6a(0x22d)]['requireSession'](_0x2f13b7),_0x493773=this[_0x304a6a(0x285)][_0x304a6a(0x2e2)](Me,_0x2f13b7,_0x951bcd);return _0x493773[_0x304a6a(0x354)](),_0x493773;}async[_0x55d1f4(0x32d)](_0x313908){const _0x4368af=_0x55d1f4,_0x4248c1=await this['_collabSessionService']['requireSession'](_0x313908),_0x95b844=this[_0x4368af(0x285)][_0x4368af(0x2e2)](Ue,_0x313908,_0x4248c1);return _0x95b844[_0x4368af(0x354)](),_0x95b844;}};H=Ci([Se(0x0,_0x59505c),Se(0x1,_0x3149e4(_0x30e431)),Se(0x2,_0x3149e4(_0x24e19e))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x102ba1,_0x3dfdd3){const _0x4696b6=_0x55d1f4;let {radius:_0x55eeec,width:_0x49764a,height:_0x5827d6}=_0x3dfdd3;_0x55eeec=_0x55eeec!=null?_0x55eeec:0x0,_0x49764a=_0x49764a!=null?_0x49764a:0x1e,_0x5827d6=_0x5827d6!=null?_0x5827d6:0x1e;let _0x45ff72=0x0,_0x4d13dd=0x0,_0x74c6eb=0x0;_0x45ff72=_0x4d13dd=_0x74c6eb=Math[_0x4696b6(0x395)](_0x55eeec,_0x49764a/0x2,_0x5827d6/0x2),_0x102ba1[_0x4696b6(0x327)](),_0x102ba1[_0x4696b6(0x1f2)](_0x45ff72,0x0),_0x102ba1['lineTo'](_0x49764a-_0x4d13dd,0x0),_0x102ba1[_0x4696b6(0x367)](_0x49764a-_0x4d13dd,_0x4d13dd,_0x4d13dd,Math['PI']*0x3/0x2,0x0,!0x1),_0x102ba1[_0x4696b6(0x2da)](_0x49764a,_0x5827d6-_0x74c6eb),_0x102ba1['arc'](_0x49764a-_0x74c6eb,_0x5827d6-_0x74c6eb,_0x74c6eb,0x0,Math['PI']/0x2,!0x1),_0x102ba1[_0x4696b6(0x2da)](0x0,_0x5827d6),_0x102ba1[_0x4696b6(0x2da)](0x0,_0x45ff72),_0x102ba1[_0x4696b6(0x367)](_0x45ff72,_0x45ff72,_0x45ff72,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x102ba1[_0x4696b6(0x2ba)](),_0x3dfdd3[_0x4696b6(0x375)]&&(_0x102ba1['save'](),_0x102ba1['fillStyle']=_0x3dfdd3[_0x4696b6(0x375)],_0x3dfdd3[_0x4696b6(0x305)]===_0x4696b6(0x211)?_0x102ba1[_0x4696b6(0x375)](_0x4696b6(0x211)):_0x102ba1[_0x4696b6(0x375)](),_0x102ba1[_0x4696b6(0x2b5)]());}class he extends _0x4ce9de{constructor(_0x46fed9,_0x22bf55){const _0x113f01=_0x55d1f4;super(_0x46fed9,_0x22bf55),_(this,_0x113f01(0x2b0)),_(this,_0x113f01(0x2a7)),(this['color']=_0x22bf55==null?void 0x0:_0x22bf55[_0x113f01(0x2b0)],this['text']=_0x22bf55==null?void 0x0:_0x22bf55[_0x113f01(0x2a7)]);}static[_0x55d1f4(0x1fc)](_0x3873f2,_0x2ebbbb){const _0x4f4151=_0x55d1f4,{text:_0x4da045,color:_0xb9913f}=_0x2ebbbb;_0x3873f2[_0x4f4151(0x39f)](),_0x3873f2[_0x4f4151(0x302)]=_0x4f4151(0x247);const _0x55b104=_0x3873f2[_0x4f4151(0x347)](_0x4da045)[_0x4f4151(0x215)],_0x46a9ce=Math['min'](_0x55b104+0x2*me,Qe);Oi(_0x3873f2,{'height':ee,'radius':0x4,'width':_0x46a9ce,'fill':_0xb9913f}),_0x3873f2[_0x4f4151(0x270)]=_0x4f4151(0x2e8);const _0x29d487=me,_0x52916e=ee-Ei,_0x3c2bf3=Qe-0x2*me;if(_0x55b104>_0x3c2bf3){let _0x40691d='',_0x1db75f=0x0;for(const _0x86278f of _0x4da045){const _0x5d90c3=_0x3873f2[_0x4f4151(0x347)](_0x86278f)[_0x4f4151(0x215)];if(_0x1db75f+_0x5d90c3<=_0x3c2bf3-_0x3873f2['measureText']('...')[_0x4f4151(0x215)])_0x40691d+=_0x86278f,_0x1db75f+=_0x5d90c3;else{_0x40691d+=_0x4f4151(0x243);break;}}_0x3873f2[_0x4f4151(0x228)](_0x40691d,_0x29d487,_0x52916e);}else _0x3873f2[_0x4f4151(0x228)](_0x4da045,_0x29d487,_0x52916e);_0x3873f2['restore']();}[_0x55d1f4(0x344)](_0x372ffc){const _0x55bf3d=_0x55d1f4;he[_0x55bf3d(0x1fc)](_0x372ffc,this);}}const ge=_0x55d1f4(0x36d),bi=_0x55d1f4(0x36f),Ti=_0x55d1f4(0x2e7),X=0x6,Ri=1.5,Ie=0x4,Di=1.5,Ni=_0x55d1f4(0x3ec);class qe{constructor(_0x464510,_0x1398b6,_0x17cfd5,_0x3c0279){const _0x17408d=_0x55d1f4;_(this,_0x17408d(0x3b9),[]),_(this,_0x17408d(0x329),null),_(this,_0x17408d(0x2ea),null),_(this,_0x17408d(0x254),null),_(this,'_hideTimer',null),_(this,_0x17408d(0x20f),null),(this[_0x17408d(0x30b)]=_0x464510,this[_0x17408d(0x214)]=_0x1398b6,this[_0x17408d(0x2b9)]=_0x17cfd5,this['_document']=_0x3c0279,this[_0x17408d(0x319)]());}set[_0x55d1f4(0x3b4)](_0x295d50){const _0x231407=_0x55d1f4;_0x295d50?(this[_0x231407(0x254)]&&this[_0x231407(0x254)][_0x231407(0x280)](),this[_0x231407(0x2ea)]&&this[_0x231407(0x2ea)][_0x231407(0x315)]()):(this[_0x231407(0x254)]&&this[_0x231407(0x254)][_0x231407(0x315)](),this[_0x231407(0x2ea)]&&this[_0x231407(0x2ea)]['hide']());}['dispose'](){const _0x2440b7=_0x55d1f4;for(const _0x111a64 of this['_shapes'])_0x111a64[_0x2440b7(0x3cd)]();this[_0x2440b7(0x2ea)]&&this[_0x2440b7(0x2ea)][_0x2440b7(0x3cd)](),this[_0x2440b7(0x254)]&&this['_anchorDot'][_0x2440b7(0x3cd)](),this['_anchor']&&this[_0x2440b7(0x329)]['dispose'](),this['_eventUnsubscribe']&&this[_0x2440b7(0x20f)]();}[_0x55d1f4(0x319)](){const _0x21f162=_0x55d1f4;var _0x3b20cf;const {_docSkeleton:_0x11eaaf,_document:_0x242bea}=this,{color:_0x5b6539,name:_0x21b0a0,ranges:_0x1c3589}=this[_0x21f162(0x30b)],_0x8baa61=_0x242bea[_0x21f162(0x34d)](),{docsLeft:_0x129eff,docsTop:_0x591355}=_0x8baa61,_0x6caff4=new _0xb9cba1(_0x8baa61,_0x11eaaf);for(const {startOffset:_0x564d66,endOffset:_0x41dc0a,rangeType:_0x227e84,segmentId:_0x5e65b7,segmentPage:_0x3cddae,collapsed:_0x1d47b1,isActive:_0x4df58b}of _0x1c3589){const _0x5e4302=_0x11eaaf['findNodePositionByCharIndex'](_0x564d66,!0x0,_0x5e65b7,_0x3cddae);let _0xecd54c=_0x11eaaf[_0x21f162(0x351)](_0x41dc0a,!0x0,_0x5e65b7,_0x3cddae);if(_0xecd54c==null&&(_0xecd54c=_0x11eaaf[_0x21f162(0x351)](_0x41dc0a-0x1,!0x1,_0x5e65b7,_0x3cddae)),_0x4df58b){const {contentBoxPointGroup:_0x5348b2}=_0x6caff4[_0x21f162(0x2de)](_0xecd54c,_0xecd54c);if(_0x5348b2[_0x21f162(0x3e5)]===0x0)continue;this[_0x21f162(0x244)](_0x5b6539,_0x5348b2,_0x129eff,_0x591355,_0x21b0a0),this['_eventUnsubscribe']=this[_0x21f162(0x343)]();}if(_0x5e4302&&_0xecd54c){if(_0x227e84===_0x1c2ed9[_0x21f162(0x2c2)]){const _0x145f5a=new _0x1e8f1b(_0x8baa61,_0x11eaaf),{pointGroup:_0x1b14ef}=(_0x3b20cf=_0x145f5a[_0x21f162(0x2de)](_0x5e4302,_0xecd54c))!=null?_0x3b20cf:{};if(_0x1b14ef==null||_0x1b14ef[_0x21f162(0x3e5)]===0x0)continue;this[_0x21f162(0x3c2)](_0x5b6539,_0x1b14ef,_0x129eff,_0x591355);}else{if(!_0x1d47b1){const {borderBoxPointGroup:_0x524d49}=_0x6caff4[_0x21f162(0x2de)](_0x5e4302,_0xecd54c);if(_0x524d49[_0x21f162(0x3e5)]===0x0)continue;this[_0x21f162(0x39c)](_0x5b6539,_0x524d49,_0x129eff,_0x591355);}}}}}[_0x55d1f4(0x244)](_0x192df5,_0x14aceb,_0x4dc016,_0x35d947,_0x5aba9e){const _0x52a6f8=_0x55d1f4,_0x4f285a=this[_0x52a6f8(0x3b8)](_0x14aceb),{left:_0x4c31b6,top:_0x4d90a1,height:_0x235b8a}=_0x4f285a,_0x29c934=this['_getScale'](),_0x1a0f35=Di/_0x29c934,_0x46f890=new _0x21a667(ge+_0x5455c0['generateRandomId'](X),{'left':_0x4c31b6+_0x4dc016-_0x1a0f35,'top':_0x4d90a1+_0x35d947,'height':_0x235b8a,'width':Ri,'fill':_0x192df5||_0x2ff2dd(_0x10e9b4[_0x52a6f8(0x38a)],0x0),'strokeWidth':_0x1a0f35,'stroke':Ni,'evented':!0x0});this[_0x52a6f8(0x329)]=_0x46f890,this[_0x52a6f8(0x214)][_0x52a6f8(0x24a)](_0x46f890,_0x2b8fa3);const _0x25f4b3=new _0x21a667(ge+_0x5455c0[_0x52a6f8(0x3be)](X),{'left':_0x4c31b6+_0x4dc016-_0x1a0f35,'top':_0x4d90a1+_0x35d947-Ie/0x2,'height':Ie,'width':Ie,'fill':_0x192df5||_0x2ff2dd(_0x10e9b4['black'],0x0),'strokeWidth':0x0,'stroke':_0x192df5||_0x2ff2dd(_0x10e9b4[_0x52a6f8(0x38a)],0x0),'evented':!0x1});this[_0x52a6f8(0x254)]=_0x25f4b3,this['_scene'][_0x52a6f8(0x24a)](_0x25f4b3,_0x2b8fa3);const _0xe60869=new he(ge+_0x5455c0[_0x52a6f8(0x3be)](X),{'left':_0x4c31b6+_0x4dc016-_0x1a0f35,'top':_0x4d90a1+_0x35d947-ee,'text':_0x5aba9e,'color':_0x192df5});this[_0x52a6f8(0x2ea)]=_0xe60869,this['_scene'][_0x52a6f8(0x24a)](_0xe60869,_0x2b8fa3),this[_0x52a6f8(0x3b4)]=!0x1;}[_0x55d1f4(0x343)](){const _0x3b51ca=_0x55d1f4,_0x4cbd71=this[_0x3b51ca(0x329)][_0x3b51ca(0x2f9)][_0x3b51ca(0x29d)](()=>{const _0x213582=_0x3b51ca;this[_0x213582(0x3b4)]=!0x0;}),_0x7529f1=this[_0x3b51ca(0x329)][_0x3b51ca(0x226)][_0x3b51ca(0x29d)](()=>{const _0x5c3a69=_0x3b51ca;this['_hideTimer']&&clearTimeout(this[_0x5c3a69(0x201)]),this[_0x5c3a69(0x201)]=setTimeout(()=>{const _0x44b084=_0x5c3a69;this[_0x44b084(0x3b4)]=!0x1;},0x7d0);});return()=>{_0x4cbd71['unsubscribe'](),_0x7529f1['unsubscribe']();};}[_0x55d1f4(0x39c)](_0x213556,_0x38e4e1,_0x2bc1f5,_0x3685a6){const _0x377506=_0x55d1f4,_0x1c1f87=new _0x1abd05(_0x213556)[_0x377506(0x248)](0.2)[_0x377506(0x37d)](),_0x5621ec=new _0xcca2e4(bi+_0x5455c0[_0x377506(0x3be)](X),{'pointsGroup':_0x38e4e1,'fill':_0x1c1f87||_0x2ff2dd(_0x10e9b4[_0x377506(0x38a)],0.2),'left':_0x2bc1f5,'top':_0x3685a6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x377506(0x3b9)][_0x377506(0x281)](_0x5621ec),this[_0x377506(0x214)][_0x377506(0x24a)](_0x5621ec,_0x2b8fa3);}[_0x55d1f4(0x3c2)](_0x3e5af3,_0x263d75,_0x49c2f2,_0x3b2bc2){const _0x1cf485=_0x55d1f4,_0x182cf5=new _0x1abd05(_0x3e5af3)[_0x1cf485(0x248)](0.2)[_0x1cf485(0x37d)](),_0x4600b6=new _0xcca2e4(Ti+_0x5455c0[_0x1cf485(0x3be)](X),{'pointsGroup':_0x263d75,'fill':_0x182cf5||_0x2ff2dd(_0x10e9b4[_0x1cf485(0x38a)],0.2),'left':_0x49c2f2,'top':_0x3b2bc2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1cf485(0x3b9)][_0x1cf485(0x281)](_0x4600b6),this['_scene']['addObject'](_0x4600b6,_0x2b8fa3);}[_0x55d1f4(0x3b8)](_0x584bc2){const _0x1bcd29=_0x584bc2[0x0],_0x26d2e8=_0x1bcd29[0x0],_0x22243a=_0x1bcd29[0x2],{x:_0x5258a0,y:_0x50135a}=_0x26d2e8,{x:_0x4e3fbd,y:_0xbd4047}=_0x22243a;return{'left':_0x5258a0,'top':_0x50135a,'width':_0x4e3fbd-_0x5258a0,'height':_0xbd4047-_0x50135a};}['_getScale'](){const _0x1324dc=_0x55d1f4,{scaleX:_0x1e7374,scaleY:_0x54f74b}=this['_scene'][_0x1324dc(0x20c)]();return Math['max'](_0x1e7374,_0x54f74b);}}var Ui=Object[_0x55d1f4(0x341)],Mi=(_0x2330cc,_0x3ec07e,_0x1afce4,_0x19cb3f)=>{for(var _0x17a44e=_0x19cb3f>0x1?void 0x0:_0x19cb3f?Ui(_0x3ec07e,_0x1afce4):_0x3ec07e,_0x30012e=_0x2330cc['length']-0x1,_0x2bfa8c;_0x30012e>=0x0;_0x30012e--)(_0x2bfa8c=_0x2330cc[_0x30012e])&&(_0x17a44e=_0x2bfa8c(_0x17a44e)||_0x17a44e);return _0x17a44e;},Z=(_0xba3474,_0x3f17bc)=>(_0xe6ad4d,_0x371afd)=>_0x3f17bc(_0xe6ad4d,_0x371afd,_0xba3474);let Pe=class extends _0x5e2d42{constructor(_0x226c02,_0x5f22c2,_0x5d08e8,_0x21f613,_0x497e5f){const _0x26be1e=_0x55d1f4;super(),_(this,_0x26be1e(0x338),[]),_(this,_0x26be1e(0x268),[]),(this[_0x26be1e(0x24b)]=_0x226c02,this[_0x26be1e(0x372)]=_0x5f22c2,this[_0x26be1e(0x28b)]=_0x5d08e8,this['_commandService']=_0x21f613,this[_0x26be1e(0x287)]=_0x497e5f,this[_0x26be1e(0x2d5)]());}['_init'](){const _0x42f34c=_0x55d1f4,_0x29b2a2=this[_0x42f34c(0x24b)][_0x42f34c(0x2c6)],_0x2babf4=this[_0x42f34c(0x372)];this[_0x42f34c(0x2a8)](_0x1d80f7([this[_0x42f34c(0x28b)][_0x42f34c(0x2d3)](_0x29b2a2),this['_themeService'][_0x42f34c(0x2e3)]])[_0x42f34c(0x25f)](_0x4e2b5d(([_0x43c057,_0x2fa402])=>({'skeleton':_0x2babf4[_0x42f34c(0x398)](),'cursors':[..._0x43c057[_0x42f34c(0x301)]()][_0x42f34c(0x3bf)](_0x5249a6=>({..._0x5249a6,'color':this[_0x42f34c(0x287)][_0x42f34c(0x359)](_0x5249a6['color'])}))})))[_0x42f34c(0x2ae)](_0x4c048e=>{const _0x2ef7e4=_0x42f34c;if(this[_0x2ef7e4(0x22b)](),_0x4c048e){const {skeleton:_0x5693e0,cursors:_0x541fc7}=_0x4c048e;this[_0x2ef7e4(0x37a)](_0x5693e0,_0x541fc7);}})),this['_initResize'](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x2d30a7,_0x2879fb){const _0x468566=_0x55d1f4,{scene:_0xa6ac2d,mainComponent:_0x1f178b}=this['_context'],_0x2222fa=_0x2879fb[_0x468566(0x2a5)](_0x3692b7=>new qe(_0x3692b7,_0xa6ac2d,_0x2d30a7,_0x1f178b));this[_0x468566(0x338)]=_0x2222fa,this[_0x468566(0x268)]=_0x2879fb;}[_0x55d1f4(0x2dc)](){const _0x43a519=_0x55d1f4;this[_0x43a519(0x22b)]();const {scene:_0xa7cea9,mainComponent:_0x49fd7b}=this[_0x43a519(0x24b)],_0xd6453d=this[_0x43a519(0x372)][_0x43a519(0x398)](),_0xe93f7e=this['_cursors'][_0x43a519(0x2a5)](_0x487a35=>new qe(_0x487a35,_0xa7cea9,_0xd6453d,_0x49fd7b));this['_cursorShapes']=_0xe93f7e;}[_0x55d1f4(0x22b)](){const _0x8323e1=_0x55d1f4;this[_0x8323e1(0x338)][_0x8323e1(0x31d)](_0x510805=>_0x510805[_0x8323e1(0x3cd)]()),this['_cursorShapes']=[];}[_0x55d1f4(0x239)](){const _0x44a86e=_0x55d1f4,_0x459e2d=[_0x3123e9['id']];this[_0x44a86e(0x2a8)](this['_commandService'][_0x44a86e(0x314)](_0xb15d16=>{const _0x3f33f2=_0x44a86e;_0x459e2d[_0x3f33f2(0x233)](_0xb15d16['id'])&&_0xb15d16[_0x3f33f2(0x33e)]['unitId']===this[_0x3f33f2(0x24b)][_0x3f33f2(0x2c6)]&&this[_0x3f33f2(0x2dc)]();}));}[_0x55d1f4(0x23c)](){const _0x357177=_0x55d1f4;this[_0x357177(0x2a8)](_0x4ac3d3(this[_0x357177(0x24b)][_0x357177(0x29e)]['onTransformChange$'])['pipe'](_0x576c2d(_0x2b9f1b=>_0x2b9f1b[_0x357177(0x2fd)]===_0x25bac3[_0x357177(0x3c3)]),_0x457327(0x10))[_0x357177(0x2ae)](()=>{const _0x12cd7d=_0x357177;this[_0x12cd7d(0x2dc)]();}));}};Pe=Mi([Z(0x1,_0x3149e4(_0x4e1d1e)),Z(0x2,_0x3149e4(H)),Z(0x3,_0x33c12d),Z(0x4,_0x3149e4(_0xfa15a))],Pe);function _0x1979(_0xf22187,_0x111aec){const _0x19e856=_0x19e8();return _0x1979=function(_0x1979a0,_0xda9299){_0x1979a0=_0x1979a0-0x1f0;let _0x37e597=_0x19e856[_0x1979a0];return _0x37e597;},_0x1979(_0xf22187,_0x111aec);}const Pi=0x1,Li=1.5;class wi extends _0x4ce9de{constructor(_0x2ae15f,_0x1d7e29){const _0x49f61b=_0x55d1f4;super(_0x2ae15f,_0x1d7e29),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x49f61b(0x216)),_(this,_0x49f61b(0x1f8),''),_(this,'_labelPosition',_0x49f61b(0x3e2)),_(this,'_backgroundColor'),(_0x1d7e29&&this['setShapeProps'](_0x1d7e29),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x49f61b(0x3b1)]({'hovered':!0x0})),this[_0x49f61b(0x226)][_0x49f61b(0x29d)](()=>this[_0x49f61b(0x3b1)]({'hovered':!0x1})));}['setShapeProps'](_0x3a916){const _0x17b3eb=_0x55d1f4;var _0x4c1b1e,_0x493bbe,_0x3e221d,_0x526ea3,_0x1cc230,_0x5e8f5e;this['_color']=(_0x4c1b1e=_0x3a916[_0x17b3eb(0x2b0)])!=null?_0x4c1b1e:this[_0x17b3eb(0x3ed)],this[_0x17b3eb(0x3ca)]=(_0x493bbe=_0x3a916[_0x17b3eb(0x342)])!=null?_0x493bbe:this[_0x17b3eb(0x3ca)],this[_0x17b3eb(0x216)]=(_0x3e221d=_0x3a916[_0x17b3eb(0x32c)])!=null?_0x3e221d:this[_0x17b3eb(0x216)],this[_0x17b3eb(0x1f8)]=(_0x526ea3=_0x3a916[_0x17b3eb(0x3e8)])!=null?_0x526ea3:this['_name'],this['_labelPosition']=(_0x1cc230=_0x3a916[_0x17b3eb(0x32f)])!=null?_0x1cc230:this[_0x17b3eb(0x2ac)],this[_0x17b3eb(0x21f)]=(_0x5e8f5e=_0x3a916[_0x17b3eb(0x2ec)])!=null?_0x5e8f5e:this[_0x17b3eb(0x21f)],this[_0x17b3eb(0x379)]({'width':_0x3a916[_0x17b3eb(0x215)],'height':_0x3a916['height']});}[_0x55d1f4(0x21d)](_0x1c02d6){const _0x3cde40=_0x55d1f4,{row:_0x5a6fec,column:_0x40f310}=_0x1c02d6;if(_0x5a6fec>=this[_0x3cde40(0x216)]['startRow']&&_0x5a6fec<=this[_0x3cde40(0x216)]['endRow']&&_0x40f310>=this['_range'][_0x3cde40(0x266)]&&_0x40f310<=this[_0x3cde40(0x216)][_0x3cde40(0x370)]){this[_0x3cde40(0x3b1)]({'hovered':!0x0});return;}this[_0x3cde40(0x3b1)]({'hovered':!0x1});}[_0x55d1f4(0x238)](_0x5a1c62){return!0x1;}[_0x55d1f4(0x344)](_0xd92878){const _0x1f2342=_0x55d1f4;_0x21a667[_0x1f2342(0x1fc)](_0xd92878,{'width':this[_0x1f2342(0x215)],'height':this[_0x1f2342(0x300)],'strokeWidth':Li,'stroke':this[_0x1f2342(0x3ed)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x1f2342(0x3ca)]&&(_0xd92878[_0x1f2342(0x39f)](),_0xd92878['transform'](0x1,0x0,0x0,0x1,this[_0x1f2342(0x215)],this[_0x1f2342(0x2ac)]===_0x1f2342(0x325)?0x0:-0x14),he[_0x1f2342(0x1fc)](_0xd92878,{'text':this[_0x1f2342(0x1f8)],'color':this['_color']}),_0xd92878[_0x1f2342(0x2b5)]());}}var Ai=Object[_0x55d1f4(0x341)],yi=(_0x1d3132,_0x23421e,_0x28e66b,_0x59a5fb)=>{for(var _0x595a37=_0x59a5fb>0x1?void 0x0:_0x59a5fb?Ai(_0x23421e,_0x28e66b):_0x23421e,_0x29d831=_0x1d3132['length']-0x1,_0xc40979;_0x29d831>=0x0;_0x29d831--)(_0xc40979=_0x1d3132[_0x29d831])&&(_0x595a37=_0xc40979(_0x595a37)||_0x595a37);return _0x595a37;},ve=(_0x3714e1,_0x4d3cb0)=>(_0x2c6fb0,_0x248437)=>_0x4d3cb0(_0x2c6fb0,_0x248437,_0x3714e1);const $i=0x1389;let Le=class extends _0x5e2d42{constructor(_0x3ee379,_0x142b66,_0x475f62,_0x979539){const _0x429fec=_0x55d1f4;super(),_(this,_0x429fec(0x268),new Set()),_(this,'_lastPointer',null),(this[_0x429fec(0x24b)]=_0x3ee379,this[_0x429fec(0x2e9)]=_0x142b66,this[_0x429fec(0x28b)]=_0x475f62,this[_0x429fec(0x287)]=_0x979539,this[_0x429fec(0x2d5)]());}['_init'](){const _0x1e6dbd=_0x55d1f4;this[_0x1e6dbd(0x2e9)][_0x1e6dbd(0x3a8)][_0x1e6dbd(0x25f)](_0x13f3e6(this[_0x1e6dbd(0x361)]),_0x1b1d82(_0x4195bf=>{const _0x1360bc=_0x1e6dbd;if(_0x4195bf){const _0x125379=_0x4195bf[_0x1360bc(0x388)];return _0x1d80f7(this[_0x1360bc(0x28b)][_0x1360bc(0x2d3)](this[_0x1360bc(0x24b)][_0x1360bc(0x2c6)]),this[_0x1360bc(0x287)][_0x1360bc(0x2e3)])[_0x1360bc(0x25f)](_0x4e2b5d(([_0x590287,_0xf58f71])=>{const _0x1a446e=_0x1360bc,_0x26d292=new Map();return _0x590287[_0x1a446e(0x31d)]((_0x4f27d6,_0x56ccab)=>{const _0x41ddcb=_0x1a446e;if(_0x4f27d6[_0x41ddcb(0x2df)]===_0x125379){const _0x47d340={..._0x4f27d6};_0x47d340['color']=this['_themeService'][_0x41ddcb(0x359)](_0x4f27d6['color']),_0x26d292[_0x41ddcb(0x2c7)](_0x56ccab,_0x47d340);}}),{'skeleton':_0x4195bf,'cursors':_0x26d292};}));}return _0x4b87cf({'skeleton':null,'cursors':new Map()});}))[_0x1e6dbd(0x2ae)](({skeleton:_0x58d936,cursors:_0x5193b1})=>{const _0xa31cc9=_0x1e6dbd;this[_0xa31cc9(0x22b)](),_0x58d936&&this[_0xa31cc9(0x37a)](_0x58d936,_0x5193b1);}),this['_sheetSkeletonManagerService'][_0x1e6dbd(0x3a8)][_0x1e6dbd(0x2ae)](_0x2cbdd8=>{const _0x131a30=_0x1e6dbd;if(_0x2cbdd8==null)return;const {skeleton:_0x2ac981}=_0x2cbdd8,{scene:_0x199f29}=this[_0x131a30(0x24b)];_0x199f29[_0x131a30(0x2ee)]['subscribeEvent'](_0x369bd1(_0x1e5277=>{const _0x27f3e1=_0x131a30;var _0x2dec9a,_0x358176;const {offsetX:_0x33f168,offsetY:_0x46ab4b}=_0x1e5277,{x:_0x3b8d17,y:_0x16b10f}=_0x199f29[_0x27f3e1(0x3d8)](_0x1b88c3['FromArray']([_0x33f168,_0x46ab4b])),{scaleX:_0x4e6eb5,scaleY:_0x2693ef}=_0x199f29[_0x27f3e1(0x20c)](),_0xf0ed81=_0x199f29['getViewport'](_0x358695[_0x27f3e1(0x289)]),_0x3a1c95=_0x199f29[_0x27f3e1(0x307)](_0x1b88c3[_0x27f3e1(0x2a3)]([_0x3b8d17,_0x16b10f]),_0xf0ed81),_0x41e021=_0x2ac981[_0x27f3e1(0x3ea)](_0x33f168,_0x46ab4b,_0x4e6eb5,_0x2693ef,_0x3a1c95);((_0x2dec9a=this[_0x27f3e1(0x3d7)])==null?void 0x0:_0x2dec9a[_0x27f3e1(0x356)])===_0x41e021[_0x27f3e1(0x356)]&&((_0x358176=this[_0x27f3e1(0x3d7)])==null?void 0x0:_0x358176[_0x27f3e1(0x23a)])===_0x41e021[_0x27f3e1(0x23a)]||this[_0x27f3e1(0x268)]['forEach'](_0x21f517=>{_0x21f517['onMouseMove'](_0x41e021);});},0x64));});}[_0x55d1f4(0x37a)](_0x1f8fed,_0x3c4be6){const _0x549226=_0x55d1f4;var _0x517edd;const _0x412b9a=(_0x517edd=this['_sheetSkeletonManagerService'][_0x549226(0x1f3)]())==null?void 0x0:_0x517edd[_0x549226(0x24d)];if(!_0x412b9a)return;const _0x37a608=this['_getSheetObject']();if(!_0x37a608)return;this['_cursors'][_0x549226(0x31d)](_0x2227d8=>{const _0x524248=_0x549226;_0x2227d8[_0x524248(0x308)]();});const {scene:_0x57cf00}=_0x37a608,_0x287e93=xi(Array[_0x549226(0x2a0)](_0x3c4be6[_0x549226(0x301)]()))[_0x549226(0x2a5)](_0x4e8dec=>{const _0x507798=_0x549226,{color:_0x35b02a,range:_0x140924,name:_0x45bb2c,selection:_0x4ccaa7,sheetID:_0x266e83}=_0x4e8dec,{startColumn:_0x329357,startRow:_0x8650a,endColumn:_0x58c819,endRow:_0x2853ef}=_0x140924,_0x35a2ef=_0x461072(_0x8650a,_0x329357,_0x57cf00,_0x412b9a),_0x203d4e=_0x461072(_0x2853ef,_0x58c819,_0x57cf00,_0x412b9a),{columnHeaderHeightAndMarginTop:_0x4753b5}=_0x412b9a,{startX:_0x367943,startY:_0x193ca9}=_0x35a2ef,{endX:_0x22a41d,endY:_0x7db3ae}=_0x203d4e,_0xf68a17=_0x22a41d-_0x367943,_0x59c22e=_0x7db3ae-_0x193ca9,_0x6b6acf={'labelPosition':_0x193ca9-_0x4753b5>=ee?_0x507798(0x3e2):_0x507798(0x325),'sheetID':_0x266e83,'range':_0x140924,'color':_0x35b02a,'name':_0x45bb2c,'selection':_0x4ccaa7,'left':_0x367943,'top':_0x193ca9,'width':_0xf68a17,'height':_0x59c22e,'evented':!0x1,'zIndex':$i};return new wi(_0x45bb2c,_0x6b6acf);});_0x57cf00[_0x549226(0x34b)](_0x287e93,Pi),this[_0x549226(0x268)]=new Set(_0x287e93);}[_0x55d1f4(0x22b)](){const _0xa1afcf=_0x55d1f4;var _0x1a9e81;(_0x1a9e81=this['_cursors'])==null||_0x1a9e81[_0xa1afcf(0x31d)](_0x118819=>_0x118819['dispose']());}[_0x55d1f4(0x3a4)](){return _0x3d12ae(this['_context']['unit'],this['_context']);}};Le=yi([ve(0x1,_0x3149e4(_0x46dbff)),ve(0x2,_0x3149e4(H)),ve(0x3,_0x3149e4(_0xfa15a))],Le);function xi(_0x10f9ac){const _0x4238b0=_0x55d1f4,_0x4e8954=new Map();return _0x10f9ac[_0x4238b0(0x31d)](_0x510cc0=>{const _0x4aa823=_0x4238b0;if(_0x4e8954[_0x4aa823(0x3d2)](_0x510cc0['selection'])){const _0x560812=_0x4e8954[_0x4aa823(0x3dc)](_0x510cc0['selection']);_0x560812[_0x4aa823(0x3e8)]+=',\x20'+_0x510cc0[_0x4aa823(0x3e8)];}else _0x4e8954[_0x4aa823(0x2c7)](_0x510cc0['selection'],_0x510cc0);}),Array['from'](_0x4e8954[_0x4238b0(0x301)]());}var v=function(){const _0xa531cc=_0x55d1f4;return v=Object[_0xa531cc(0x290)]||function(_0x49a0ed){const _0x59f43f=_0xa531cc;for(var _0x363139,_0x575c9b=0x1,_0x439071=arguments[_0x59f43f(0x3e5)];_0x575c9b<_0x439071;_0x575c9b++){_0x363139=arguments[_0x575c9b];for(var _0x55310e in _0x363139)Object[_0x59f43f(0x29b)][_0x59f43f(0x20b)][_0x59f43f(0x204)](_0x363139,_0x55310e)&&(_0x49a0ed[_0x55310e]=_0x363139[_0x55310e]);}return _0x49a0ed;},v['apply'](this,arguments);},Bi=function(_0x136dc2,_0x29ceaa){const _0x4e4152=_0x55d1f4;var _0x250c76={};for(var _0x5d32fe in _0x136dc2)Object[_0x4e4152(0x29b)]['hasOwnProperty'][_0x4e4152(0x204)](_0x136dc2,_0x5d32fe)&&_0x29ceaa['indexOf'](_0x5d32fe)<0x0&&(_0x250c76[_0x5d32fe]=_0x136dc2[_0x5d32fe]);if(_0x136dc2!=null&&typeof Object[_0x4e4152(0x203)]==_0x4e4152(0x3e7)){for(var _0xf6796b=0x0,_0x5d32fe=Object[_0x4e4152(0x203)](_0x136dc2);_0xf6796b<_0x5d32fe[_0x4e4152(0x3e5)];_0xf6796b++)_0x29ceaa['indexOf'](_0x5d32fe[_0xf6796b])<0x0&&Object[_0x4e4152(0x29b)][_0x4e4152(0x3d5)]['call'](_0x136dc2,_0x5d32fe[_0xf6796b])&&(_0x250c76[_0x5d32fe[_0xf6796b]]=_0x136dc2[_0x5d32fe[_0xf6796b]]);}return _0x250c76;},je=_0x57d9a7(function(_0x8852cc,_0x52cda9){const _0x31025e=_0x55d1f4;var _0x480f95=_0x8852cc[_0x31025e(0x2ad)],_0x476101=_0x8852cc['id'],_0x202be5=_0x8852cc[_0x31025e(0x208)],_0x399bb8=_0x8852cc['extend'],_0x400959=Bi(_0x8852cc,[_0x31025e(0x2ad),'id',_0x31025e(0x208),_0x31025e(0x35b)]),_0x1958c5='univerjs-icon\x20univerjs-icon-'[_0x31025e(0x2b1)](_0x476101,'\x20')[_0x31025e(0x2b1)](_0x202be5||'')[_0x31025e(0x332)](),_0x483c64=_0x18c3a4('_'[_0x31025e(0x2b1)](ji()));return Rt(_0x480f95,''[_0x31025e(0x2b1)](_0x476101),{'defIds':_0x480f95[_0x31025e(0x39e)],'idSuffix':_0x483c64['current']},v({'ref':_0x52cda9,'className':_0x1958c5},_0x400959),_0x399bb8);});function Rt(_0x3402a9,_0xd59de5,_0x1de141,_0x5adf48,_0x4cff7b){const _0x23033b=_0x55d1f4;return _0x334127(_0x3402a9[_0x23033b(0x37b)],v(v({'key':_0xd59de5},ki(_0x3402a9,_0x1de141,_0x4cff7b)),_0x5adf48),(Hi(_0x3402a9,_0x1de141)[_0x23033b(0x39b)]||[])['map'](function(_0x46a087,_0x5938bc){const _0xcea96f=_0x23033b;return Rt(_0x46a087,''[_0xcea96f(0x2b1)](_0xd59de5,'-')[_0xcea96f(0x2b1)](_0x3402a9[_0xcea96f(0x37b)],'-')['concat'](_0x5938bc),_0x1de141,void 0x0,_0x4cff7b);}));}function ki(_0x2d2638,_0x102962,_0x335ea3){const _0x90d0e4=_0x55d1f4;var _0x5ee5b6=v({},_0x2d2638[_0x90d0e4(0x292)]);_0x335ea3!=null&&_0x335ea3['colorChannel1']&&_0x5ee5b6[_0x90d0e4(0x375)]===_0x90d0e4(0x1fa)&&(_0x5ee5b6[_0x90d0e4(0x375)]=_0x335ea3[_0x90d0e4(0x1fa)]),_0x2d2638[_0x90d0e4(0x37b)]===_0x90d0e4(0x339)&&_0x5ee5b6['id']&&(_0x5ee5b6['id']=_0x5ee5b6['id']+_0x102962[_0x90d0e4(0x3b5)]),Object[_0x90d0e4(0x2d2)](_0x5ee5b6)[_0x90d0e4(0x31d)](function(_0x39e8d2){const _0x4fb26d=_0x90d0e4;var _0x8a721f=_0x39e8d2[0x0],_0x4880d2=_0x39e8d2[0x1];_0x8a721f===_0x4fb26d(0x339)&&typeof _0x4880d2==_0x4fb26d(0x3aa)&&(_0x5ee5b6[_0x8a721f]=_0x4880d2[_0x4fb26d(0x3de)](/url\(#(.*)\)/,_0x4fb26d(0x2f0)['concat'](_0x102962[_0x4fb26d(0x3b5)],')')));});var _0x5b506f=_0x102962['defIds'];return!_0x5b506f||_0x5b506f[_0x90d0e4(0x3e5)]===0x0||(_0x2d2638[_0x90d0e4(0x37b)]===_0x90d0e4(0x2f6)&&_0x5ee5b6[_0x90d0e4(0x276)]&&(_0x5ee5b6['xlink:href']=_0x5ee5b6[_0x90d0e4(0x276)]+_0x102962[_0x90d0e4(0x3b5)]),Object['entries'](_0x5ee5b6)[_0x90d0e4(0x31d)](function(_0x11a155){const _0x540f9=_0x90d0e4;var _0x38e50c=_0x11a155[0x0],_0x420f1b=_0x11a155[0x1];typeof _0x420f1b==_0x540f9(0x3aa)&&(_0x5ee5b6[_0x38e50c]=_0x420f1b['replace'](/url\(#(.*)\)/,_0x540f9(0x2f0)[_0x540f9(0x2b1)](_0x102962[_0x540f9(0x3b5)],')')));})),_0x5ee5b6;}function Hi(_0x33ac91,_0x7d3a07){const _0x252e8a=_0x55d1f4;var _0x5bbc1a,_0x386c77=_0x7d3a07[_0x252e8a(0x39e)];return!_0x386c77||_0x386c77[_0x252e8a(0x3e5)]===0x0?_0x33ac91:_0x33ac91[_0x252e8a(0x37b)]===_0x252e8a(0x27c)&&(!((_0x5bbc1a=_0x33ac91[_0x252e8a(0x39b)])===null||_0x5bbc1a===void 0x0)&&_0x5bbc1a['length'])?v(v({},_0x33ac91),{'children':_0x33ac91[_0x252e8a(0x39b)][_0x252e8a(0x2a5)](function(_0x42648e){const _0x4e43f5=_0x252e8a;return typeof _0x42648e[_0x4e43f5(0x292)]['id']=='string'&&_0x386c77&&_0x386c77[_0x4e43f5(0x2e5)](_0x42648e[_0x4e43f5(0x292)]['id'])>-0x1?v(v({},_0x42648e),{'attrs':v(v({},_0x42648e[_0x4e43f5(0x292)]),{'id':_0x42648e[_0x4e43f5(0x292)]['id']+_0x7d3a07['idSuffix']})}):_0x42648e;})}):_0x33ac91;}function ji(){const _0x32fecc=_0x55d1f4;return Math[_0x32fecc(0x3a1)]()[_0x32fecc(0x39d)](0x24)[_0x32fecc(0x39a)](0x2,0x8);}je['displayName']='UniverIcon';var Yi={'tag':_0x55d1f4(0x34c),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x55d1f4(0x36b),'height':_0x55d1f4(0x36b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x55d1f4(0x267),'attrs':{'stroke':_0x55d1f4(0x2fc),'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':_0x55d1f4(0x357),'strokeLinejoin':_0x55d1f4(0x357),'strokeWidth':1.2}}]},{'tag':_0x55d1f4(0x27c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x55d1f4(0x33f)},'children':[{'tag':_0x55d1f4(0x267),'attrs':{'fill':_0x55d1f4(0x22e),'d':_0x55d1f4(0x317)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Dt=_0x57d9a7(function(_0x252fcf,_0x5532ef){const _0x4279c3=_0x55d1f4;return _0x334127(je,Object[_0x4279c3(0x290)]({},_0x252fcf,{'id':_0x4279c3(0x253),'ref':_0x5532ef,'icon':Yi}));});Dt[_0x55d1f4(0x364)]=_0x55d1f4(0x3c5);var Fi={'tag':'svg','attrs':{'fill':_0x55d1f4(0x200),'viewBox':'0\x200\x2017\x2016','width':_0x55d1f4(0x36b),'height':_0x55d1f4(0x36b)},'children':[{'tag':'g','attrs':{'clipPath':_0x55d1f4(0x3c1)},'children':[{'tag':_0x55d1f4(0x267),'attrs':{'stroke':_0x55d1f4(0x2fc),'d':_0x55d1f4(0x316),'strokeLinecap':_0x55d1f4(0x357),'strokeLinejoin':_0x55d1f4(0x357),'strokeWidth':1.2}}]},{'tag':_0x55d1f4(0x27c),'attrs':{},'children':[{'tag':_0x55d1f4(0x212),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x55d1f4(0x267),'attrs':{'fill':_0x55d1f4(0x22e),'d':'M0\x200H16V16H0z','transform':_0x55d1f4(0x3bb)}}]}]}],'defIds':[_0x55d1f4(0x3a0)]},Nt=_0x57d9a7(function(_0x40c510,_0x1fc30c){return _0x334127(je,Object['assign']({},_0x40c510,{'id':'on-line-single','ref':_0x1fc30c,'icon':Fi}));});Nt['displayName']=_0x55d1f4(0x321);function Wi(_0x4599ec){const _0x5709b5=_0x55d1f4;switch(_0x4599ec){case _0x5c5758[_0x5709b5(0x320)]:return'collabStatus.offline';case _0x5c5758[_0x5709b5(0x1f9)]:return _0x5709b5(0x348);case _0x5c5758[_0x5709b5(0x246)]:return'collabStatus.fetchMiss';case _0x5c5758[_0x5709b5(0x277)]:return _0x5709b5(0x30d);case _0x5c5758[_0x5709b5(0x31c)]:case _0x5c5758[_0x5709b5(0x3e9)]:return _0x5709b5(0x397);case _0x5c5758['SYNCED']:case _0x5c5758[_0x5709b5(0x2a4)]:return'collabStatus.synced';}}function Vi(_0x1a38b9){const _0x5b9e68=_0x55d1f4,{status$:_0x56346b}=_0x1a38b9,_0xf2313b=_0x16d072(_0x56346b,_0x5c5758[_0x5b9e68(0x277)]),_0x5323e2=_0x4e1797(_0x57e0c4),_0xa9cd3c=_0x4e1797(_0x24e19e),_0x424e25=_0xf2313b!==_0x5c5758[_0x5b9e68(0x320)],_0x4c8fe4=_0x5323e2['t'](Wi(_0xf2313b)),_0x3263c0=_0x424e25?_0x19ac6d(Nt,{}):_0x19ac6d(Dt,{}),_0x11513d=_0x25aa5c(()=>{const _0x110539=_0x5b9e68;_0x424e25||_0xa9cd3c[_0x110539(0x295)]();},[_0x424e25,_0xa9cd3c]);function _0xd6a5ce(){const _0x26bf65=_0x5b9e68;return _0x24d0dd(_0x26bf65(0x20a),{'className':'univer-flex\x20univer-items-center','onClick':_0x11513d,'children':[_0x19ac6d(_0x26bf65(0x20a),{'className':_0x13ecfb('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x424e25,'univer-text-red-500':!_0x424e25}),'children':_0x3263c0}),_0x19ac6d(_0x26bf65(0x20a),{'className':_0x26bf65(0x3cc),'children':_0x4c8fe4})]});}return _0x424e25?_0xd6a5ce():_0x19ac6d(_0x2d329a,{'title':_0x5323e2['t']('collab-client.tooltip.reconnect'),'children':_0xd6a5ce()});}var Xi=Object[_0x55d1f4(0x341)],Gi=(_0x4f89cc,_0x4467af,_0x3f6c6b,_0x4ac232)=>{const _0xa4687e=_0x55d1f4;for(var _0x272e84=_0x4ac232>0x1?void 0x0:_0x4ac232?Xi(_0x4467af,_0x3f6c6b):_0x4467af,_0x127b6e=_0x4f89cc[_0xa4687e(0x3e5)]-0x1,_0x1a161c;_0x127b6e>=0x0;_0x127b6e--)(_0x1a161c=_0x4f89cc[_0x127b6e])&&(_0x272e84=_0x1a161c(_0x272e84)||_0x272e84);return _0x272e84;},Q=(_0x3f7546,_0x51b7c3)=>(_0x9f88eb,_0x1e3864)=>_0x51b7c3(_0x9f88eb,_0x1e3864,_0x3f7546);let te=class extends _0x5908e2{constructor(_0x47996c,_0x58890b,_0x3e2361,_0x4d4b65){const _0x51e61f=_0x55d1f4;super(),_(this,_0x51e61f(0x3a5),new _0x1260b7(_0x5c5758[_0x51e61f(0x277)])),(this[_0x51e61f(0x221)]=_0x47996c,this[_0x51e61f(0x285)]=_0x58890b,this[_0x51e61f(0x3d6)]=_0x3e2361,this[_0x51e61f(0x25c)]=_0x4d4b65,this[_0x51e61f(0x28a)](),this['_initStatusListener']());}[_0x55d1f4(0x385)](){const _0x5850b3=_0x55d1f4;this[_0x5850b3(0x2a8)](this[_0x5850b3(0x221)][_0x5850b3(0x2c5)][_0x5850b3(0x25f)](_0x38efb6(()=>{const _0x5dead3=_0x5850b3,_0xe5b5c6=this[_0x5dead3(0x221)][_0x5dead3(0x3d9)]();return _0xe5b5c6?this[_0x5dead3(0x3d6)]['getCollabEntity$'](_0xe5b5c6[_0x5dead3(0x27d)]()):_0x4b87cf(null);}),_0x38efb6(_0x5c9d07=>_0x5c9d07?_0x5c9d07[_0x5850b3(0x2b4)]:_0x4b87cf(_0x5c5758[_0x5850b3(0x277)])))['subscribe'](_0x46a41e=>{const _0xd65db8=_0x5850b3;this[_0xd65db8(0x3a5)][_0xd65db8(0x38b)](_0x46a41e);}));}['_initStatusComponent'](){const _0x4aa106=_0x55d1f4;this['disposeWithMe'](this[_0x4aa106(0x25c)][_0x4aa106(0x232)](_0x368e5d['HEADER_MENU'],()=>_0x5df900(Ki({'status$':this[_0x4aa106(0x3a5)]['asObservable']()}),this[_0x4aa106(0x285)])));}};te=Gi([Q(0x0,_0x59505c),Q(0x1,_0x3149e4(_0x30e431)),Q(0x2,_0x3149e4(_0x412df8)),Q(0x3,_0x21f7ff)],te);function Ki(_0x12fbf1){const {status$:_0x5cda18}=_0x12fbf1;return function(){return _0x19ac6d(Vi,{'status$':_0x5cda18});};}var zi=Object[_0x55d1f4(0x341)],Ji=(_0xc61dde,_0x23b395,_0x459a72,_0x2bfd64)=>{const _0x29d372=_0x55d1f4;for(var _0x586db8=_0x2bfd64>0x1?void 0x0:_0x2bfd64?zi(_0x23b395,_0x459a72):_0x23b395,_0x4e436f=_0xc61dde[_0x29d372(0x3e5)]-0x1,_0x43e6cf;_0x4e436f>=0x0;_0x4e436f--)(_0x43e6cf=_0xc61dde[_0x4e436f])&&(_0x586db8=_0x43e6cf(_0x586db8)||_0x586db8);return _0x586db8;},B=(_0x6292c3,_0x36327a)=>(_0x2f96b8,_0xb5b97f)=>_0x36327a(_0x2f96b8,_0xb5b97f,_0x6292c3);let se=class extends _0x5908e2{constructor(_0x5ad1f1,_0x36887f,_0x842f3f,_0x5aacd0,_0x1ac5e4,_0xf63304){const _0x2a7158=_0x55d1f4;super(),this[_0x2a7158(0x3b0)]=_0x5ad1f1,this['_localCacheService']=_0x36887f,this['_collaborationUIEventService']=_0x842f3f,this[_0x2a7158(0x299)]=_0x5aacd0,this['_notificationService']=_0x1ac5e4,this[_0x2a7158(0x306)]=_0xf63304,this[_0x2a7158(0x322)](),this[_0x2a7158(0x368)]();}['_setupBeforeClosingHandler'](){const _0x1bdd03=_0x55d1f4;this[_0x1bdd03(0x2a8)](this['_beforeCloseService'][_0x1bdd03(0x21b)](()=>{const _0x4ea21e=_0x1bdd03;if(this[_0x4ea21e(0x259)]['saveTaskMap'][_0x4ea21e(0x391)])return this[_0x4ea21e(0x306)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x55d1f4(0x368)](){const _0x352d9d=_0x55d1f4;this['disposeWithMe'](this['_collaborationUIEventService'][_0x352d9d(0x3c9)]['subscribe'](_0x58b8d9=>{const _0x5ea27b=_0x352d9d;_0x58b8d9['id']===_0xcbcc31[_0x5ea27b(0x330)]&&this[_0x5ea27b(0x299)][_0x5ea27b(0x315)]({'type':_0x32ec12['Warning'],'content':this[_0x5ea27b(0x306)]['t'](_0x5ea27b(0x245))}),_0x58b8d9['id']===_0xcbcc31[_0x5ea27b(0x26b)]&&this[_0x5ea27b(0x299)]['show']({'type':_0x32ec12[_0x5ea27b(0x362)],'content':this[_0x5ea27b(0x306)]['t'](_0x5ea27b(0x37c))}),_0x58b8d9['id']===_0xcbcc31[_0x5ea27b(0x283)]&&this['_notificationService'][_0x5ea27b(0x315)]({'title':this[_0x5ea27b(0x306)]['t']('permission.title'),'content':this[_0x5ea27b(0x306)]['t']('permission.content'),'type':'error','duration':0x0}),_0x58b8d9['id']===_0xcbcc31[_0x5ea27b(0x1f9)]&&this[_0x5ea27b(0x299)]['show']({'type':_0x32ec12[_0x5ea27b(0x231)],'content':this[_0x5ea27b(0x306)]['t'](_0x5ea27b(0x37c))+'('+_0x58b8d9[_0x5ea27b(0x3cf)]+')'}),_0x58b8d9['id']===_0xcbcc31[_0x5ea27b(0x324)]&&this[_0x5ea27b(0x299)]['show']({'type':_0x32ec12[_0x5ea27b(0x362)],'content':this[_0x5ea27b(0x306)]['t'](_0x58b8d9[_0x5ea27b(0x3cf)]||'')}),_0x58b8d9['id']===_0xcbcc31[_0x5ea27b(0x273)]&&this[_0x5ea27b(0x299)][_0x5ea27b(0x315)]({'type':_0x32ec12['Warning'],'content':this['_localeService']['t']('session.will-retry')}),_0x58b8d9['id']===_0xcbcc31[_0x5ea27b(0x3b7)]&&this[_0x5ea27b(0x299)]['show']({'type':_0x32ec12[_0x5ea27b(0x231)],'content':this['_localeService']['t'](_0x5ea27b(0x27f))}),_0x58b8d9['id']===_0xcbcc31['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5ea27b(0x299)][_0x5ea27b(0x315)]({'type':_0x32ec12[_0x5ea27b(0x231)],'content':this[_0x5ea27b(0x306)]['t'](_0x5ea27b(0x275))});}));}};se=Ji([B(0x0,_0x2c59c6),B(0x1,_0xa7efe),B(0x2,_0x3149e4(_0x37c49f)),B(0x3,_0x444ff5),B(0x4,_0x163036),B(0x5,_0x3149e4(_0x57e0c4))],se);const Zi=_0x55d1f4(0x32e),et={},Ut=_0x938697(_0x55d1f4(0x2bc));var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x786029,_0x1987a2,_0x292892,_0x160e11)=>{for(var _0x274e8b=_0x160e11>0x1?void 0x0:_0x160e11?Qi(_0x1987a2,_0x292892):_0x1987a2,_0x5d43e1=_0x786029['length']-0x1,_0x4c7143;_0x5d43e1>=0x0;_0x5d43e1--)(_0x4c7143=_0x786029[_0x5d43e1])&&(_0x274e8b=_0x4c7143(_0x274e8b)||_0x274e8b);return _0x274e8b;},G=(_0x2f4a47,_0x45f48c)=>(_0x4bca09,_0x3c9fa8)=>_0x45f48c(_0x4bca09,_0x3c9fa8,_0x2f4a47);let ie=class extends _0x5e2d42{constructor(_0x3fc92f,_0x1ec150,_0x583466,_0x15ca32,_0x43e45e){const _0x2036c2=_0x55d1f4;super(),this['_urlService']=_0x3fc92f,this[_0x2036c2(0x3cb)]=_0x1ec150,this[_0x2036c2(0x30a)]=_0x583466,this[_0x2036c2(0x3da)]=_0x15ca32,_0x43e45e?_0x43e45e==null||_0x43e45e['whenReady']()[_0x2036c2(0x24e)](()=>this[_0x2036c2(0x2d5)]()):(this[_0x2036c2(0x3cb)][_0x2036c2(0x26c)]('[CollaborationDataLoaderController]',_0x2036c2(0x2b6)),this[_0x2036c2(0x2d5)]());}async['_init'](){const _0x2f89a6=_0x55d1f4,_0x4fb3cd=this[_0x2f89a6(0x2f7)][_0x2f89a6(0x30f)](_0x2f89a6(0x261)),_0xa9441e=this[_0x2f89a6(0x2f7)][_0x2f89a6(0x30f)](_0x2f89a6(0x2fd)),_0xa516e3=this[_0x2f89a6(0x2f7)][_0x2f89a6(0x30f)](_0x2f89a6(0x25e));if(!_0x4fb3cd||!_0xa9441e){this[_0x2f89a6(0x3cb)][_0x2f89a6(0x26c)](_0x2f89a6(0x2e0),_0x2f89a6(0x3bc));return;}const _0x111853=await this[_0x2f89a6(0x3da)][_0x2f89a6(0x378)](_0x4fb3cd,Number(_0xa9441e),_0xa516e3);_0x111853&&_0x111853 instanceof _0x5c5d1e&&this[_0x2f89a6(0x284)](_0x111853);}async['_setupSubUnitSync'](_0x32eb3b){const _0x51b7bb=_0x55d1f4;await this[_0x51b7bb(0x2ce)](_0x32eb3b),_0x32eb3b[_0x51b7bb(0x34f)][_0x51b7bb(0x25f)](_0x4d4566(this[_0x51b7bb(0x361)]))[_0x51b7bb(0x2ae)](_0x1fdfb2=>{const _0x1223f0=_0x51b7bb;_0x1fdfb2&&this[_0x1223f0(0x3c0)](_0x1fdfb2);}),this[_0x51b7bb(0x2f7)][_0x51b7bb(0x2eb)][_0x51b7bb(0x25f)](_0x4d4566(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x32eb3b));}[_0x55d1f4(0x3c0)](_0x356e37,_0x5533f3=!0x1){const _0x26f716=_0x55d1f4,_0x56da3c=this[_0x26f716(0x2f7)][_0x26f716(0x30f)](_0x26f716(0x25e));_0x356e37[_0x26f716(0x20d)]()!==_0x56da3c&&this[_0x26f716(0x2f7)][_0x26f716(0x30e)]('subunit',_0x356e37[_0x26f716(0x20d)](),_0x5533f3);}async[_0x55d1f4(0x2ce)](_0xae09d6){const _0x4f21f4=_0x55d1f4;var _0xcaf9d3;const _0x18fd09=this[_0x4f21f4(0x2f7)][_0x4f21f4(0x30f)](_0x4f21f4(0x25e));if(!_0x18fd09||!_0xae09d6[_0x4f21f4(0x326)](_0x18fd09)){const _0x58f320=_0xae09d6[_0x4f21f4(0x2f5)]()[0x0],_0x9dd8d1=_0xae09d6[_0x4f21f4(0x326)](_0x58f320);if(!_0x9dd8d1)return;this[_0x4f21f4(0x3c0)](_0x9dd8d1,!0x0),await this[_0x4f21f4(0x30a)][_0x4f21f4(0x389)](_0x2f0bc5['id'],{'unitId':_0xae09d6[_0x4f21f4(0x27d)](),'subUnitId':_0x58f320});return;}((_0xcaf9d3=_0xae09d6['getActiveSheet']())==null?void 0x0:_0xcaf9d3['getSheetId']())!==_0x18fd09&&await this['_commandService']['executeCommand'](_0x2f0bc5['id'],{'unitId':_0xae09d6[_0x4f21f4(0x27d)](),'subUnitId':_0x18fd09});}};ie=qi([G(0x0,Ut),G(0x1,_0x386156),G(0x2,_0x33c12d),G(0x3,_0x3149e4(_0xd795bf)),G(0x4,_0xa5ad82(_0x398713))],ie);var en=Object[_0x55d1f4(0x341)],tn=(_0x2d88a2,_0x587c54,_0x2fd0eb,_0x347d71)=>{for(var _0x16734=_0x347d71>0x1?void 0x0:_0x347d71?en(_0x587c54,_0x2fd0eb):_0x587c54,_0x59b192=_0x2d88a2['length']-0x1,_0x259bd2;_0x59b192>=0x0;_0x59b192--)(_0x259bd2=_0x2d88a2[_0x59b192])&&(_0x16734=_0x259bd2(_0x16734)||_0x16734);return _0x16734;},pe=(_0x181694,_0x282a69)=>(_0x4252dd,_0x39389c)=>_0x282a69(_0x4252dd,_0x39389c,_0x181694);let ne=class{constructor(_0x66fa0e,_0x44bb77,_0x2718e7){const _0x18950=_0x55d1f4;this[_0x18950(0x285)]=_0x66fa0e,this['_transformService']=_0x44bb77,this[_0x18950(0x312)]=_0x2718e7;}['transformIMECache'](_0x1aa904){const _0x61a7d8=_0x55d1f4;this[_0x61a7d8(0x323)](_0x1aa904),this[_0x61a7d8(0x26d)](_0x1aa904);}[_0x55d1f4(0x25d)](_0x50357d){const _0x1b9355=_0x55d1f4,{unitID:_0x1bdb1a}=_0x50357d,_0x2a794e=this['_renderManagerService'][_0x1b9355(0x3ba)](_0x1bdb1a)[_0x1b9355(0x358)](_0x45df3d),{redoCache:_0x69b1a2}=_0x2a794e[_0x1b9355(0x399)]();if(_0x69b1a2[_0x1b9355(0x3e5)]===0x0)return _0x50357d;let _0x1a2353=_0x5455c0['deepClone'](_0x50357d[_0x1b9355(0x26a)][0x0]);for(let _0x2e7562=0x0;_0x2e7562<_0x69b1a2[_0x1b9355(0x3e5)];_0x2e7562++){const _0x1c38b3={'id':_0x1b9355(0x291),'params':{..._0x69b1a2[_0x2e7562]}},_0x1d0699=this[_0x1b9355(0x218)][_0x1b9355(0x394)](_0x1a2353,_0x1c38b3,!0x1);if(_0x30cf0a(_0x1d0699))throw _0x1d0699[_0x1b9355(0x234)];_0x1a2353=_0x1d0699['m1Prime'];}return{..._0x5455c0['deepClone'](_0x50357d),'mutations':[_0x1a2353]};}[_0x55d1f4(0x323)](_0x4b232e){const _0x54709d=_0x55d1f4,{unitID:_0xd70ec}=_0x4b232e,_0x4a15fe=this[_0x54709d(0x312)][_0x54709d(0x3ba)](_0xd70ec)[_0x54709d(0x358)](_0x45df3d),{undoCache:_0x2282ed,redoCache:_0x26781d}=_0x4a15fe['getUndoRedoMutationParamsCache']();if(_0x2282ed[_0x54709d(0x3e5)]===0x0||_0x26781d['length']===0x0)return;const _0x38c8a6=[],_0x5675ba=[];let _0x3028c8=_0x5455c0[_0x54709d(0x294)](_0x4b232e['mutations'][0x0]),_0x216c2a=_0x5455c0[_0x54709d(0x294)](_0x4b232e['mutations'][0x0]);for(let _0x19556e=_0x2282ed[_0x54709d(0x3e5)]-0x1;_0x19556e>=0x0;_0x19556e--){const _0x2de4a1={'id':'doc.mutation.rich-text-editing','params':{..._0x2282ed[_0x19556e]}},_0x5e059d={'id':_0x54709d(0x291),'params':{..._0x26781d[_0x19556e]}},_0x3fdf11=this[_0x54709d(0x218)]['transformMutation'](_0x3028c8,_0x2de4a1,!0x1),_0x4d6e47=this[_0x54709d(0x218)]['transformMutation'](_0x216c2a,_0x5e059d,!0x1);if(_0x30cf0a(_0x3fdf11))throw _0x3fdf11[_0x54709d(0x234)];if(_0x30cf0a(_0x4d6e47))throw _0x4d6e47[_0x54709d(0x234)];_0x38c8a6['unshift'](_0x3fdf11[_0x54709d(0x2bf)]['params']),_0x5675ba[_0x54709d(0x241)](_0x4d6e47[_0x54709d(0x2bf)][_0x54709d(0x33e)]),_0x3028c8=_0x3fdf11[_0x54709d(0x2ff)],_0x216c2a=_0x4d6e47[_0x54709d(0x2ff)];}_0x4a15fe['setUndoRedoMutationParamsCache']({'undoCache':_0x38c8a6,'redoCache':_0x5675ba});}[_0x55d1f4(0x26d)](_0x469bb7){const _0x6c36cb=_0x55d1f4,{unitID:_0x1d5a8a}=_0x469bb7,_0x230a97=this['_renderManagerService']['getRenderById'](_0x1d5a8a)['with'](_0x45df3d),_0x234050=_0x230a97['getActiveRange']();if(_0x234050==null)return;const _0x4fd3f0=[{'id':_0x6c36cb(0x291),'params':{'unitId':_0x469bb7[_0x6c36cb(0x365)],'actions':null,'textRanges':[_0x234050]}}],_0x4bfb9a=this[_0x6c36cb(0x218)][_0x6c36cb(0x3c8)](_0x469bb7,_0x4fd3f0);if(!_0x3e110f(_0x4bfb9a))throw _0x4bfb9a[_0x6c36cb(0x234)];const _0x1e088f=_0x4bfb9a[_0x6c36cb(0x2bf)][0x0]['params'][_0x6c36cb(0x260)];Array[_0x6c36cb(0x263)](_0x1e088f)&&_0x1e088f['length']&&_0x230a97['setActiveRange'](_0x1e088f[0x0]);}};ne=tn([pe(0x0,_0x3149e4(_0x30e431)),pe(0x1,_0x2a95df),pe(0x2,_0x49352a)],ne);var sn=Object[_0x55d1f4(0x341)],nn=(_0x116ca7,_0xb96fc5,_0x50659d,_0x11f431)=>{const _0x2d5ec7=_0x55d1f4;for(var _0x347e31=_0x11f431>0x1?void 0x0:_0x11f431?sn(_0xb96fc5,_0x50659d):_0xb96fc5,_0x42cc76=_0x116ca7[_0x2d5ec7(0x3e5)]-0x1,_0xf216f3;_0x42cc76>=0x0;_0x42cc76--)(_0xf216f3=_0x116ca7[_0x42cc76])&&(_0x347e31=_0xf216f3(_0x347e31)||_0x347e31);return _0x347e31;},Ce=(_0x2ef853,_0x2fab93)=>(_0x240dd3,_0x4cd95d)=>_0x2fab93(_0x240dd3,_0x4cd95d,_0x2ef853);let re=class{constructor(_0x57ae47,_0x170b72,_0x4f96ba){const _0x2d2e1a=_0x55d1f4;this[_0x2d2e1a(0x285)]=_0x57ae47,this[_0x2d2e1a(0x218)]=_0x170b72,this['_docStateChangeManagerService']=_0x4f96ba;}[_0x55d1f4(0x32b)](_0xd04504){const _0x449170=_0x55d1f4;this[_0x449170(0x3f0)](_0xd04504);}['transformRemoteChangeset'](_0xb392da){const _0x1c318f=_0x55d1f4,{unitID:_0xd20312}=_0xb392da,{collaboration:_0x38d381}=this[_0x1c318f(0x220)][_0x1c318f(0x22c)](_0xd20312);if(_0x38d381[_0x1c318f(0x3e5)]===0x0)return _0xb392da;let _0x51c72b=_0x5455c0[_0x1c318f(0x294)](_0xb392da[_0x1c318f(0x26a)][0x0]);for(let _0x10523a=0x0;_0x10523a<_0x38d381[_0x1c318f(0x3e5)];_0x10523a++){const _0x318016={'id':_0x1c318f(0x291),'params':{'unitId':_0x38d381[_0x10523a][_0x1c318f(0x2c6)],..._0x38d381[_0x10523a]['redoState']}},_0x31c71b=this['_transformService']['transformMutation'](_0x51c72b,_0x318016,!0x1);if(_0x30cf0a(_0x31c71b))throw _0x31c71b[_0x1c318f(0x234)];_0x51c72b=_0x31c71b[_0x1c318f(0x2ff)];}return{..._0x5455c0['deepClone'](_0xb392da),'mutations':[_0x51c72b]};}[_0x55d1f4(0x3f0)](_0x2d7256){const _0x392ad3=_0x55d1f4,{unitID:_0x13e576}=_0x2d7256,{history:_0x1059e6,collaboration:_0xb211de}=this[_0x392ad3(0x220)][_0x392ad3(0x22c)](_0x13e576);if(_0x1059e6[_0x392ad3(0x3e5)]===0x0&&_0xb211de['length']===0x0)return;const _0x286318=[],_0x4b70fc=[];let _0x5b3043=_0x5455c0[_0x392ad3(0x294)](_0x2d7256[_0x392ad3(0x26a)][0x0]),_0x240ba8=_0x5455c0['deepClone'](_0x2d7256[_0x392ad3(0x26a)][0x0]);for(let _0x27cb5b=_0x1059e6[_0x392ad3(0x3e5)]-0x1;_0x27cb5b>=0x0;_0x27cb5b--){const _0x2cdf24={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1059e6[_0x27cb5b][_0x392ad3(0x2c6)],..._0x1059e6[_0x27cb5b][_0x392ad3(0x2db)]}},_0x5eb27f={'id':_0x392ad3(0x291),'params':{'unitId':_0x1059e6[_0x27cb5b][_0x392ad3(0x2c6)],..._0x1059e6[_0x27cb5b][_0x392ad3(0x21e)]}},_0x145fa8=this[_0x392ad3(0x218)][_0x392ad3(0x394)](_0x5b3043,_0x2cdf24,!0x1),_0x297c39=this[_0x392ad3(0x218)]['transformMutation'](_0x240ba8,_0x5eb27f,!0x1);if(_0x30cf0a(_0x145fa8))throw _0x145fa8[_0x392ad3(0x234)];if(_0x30cf0a(_0x297c39))throw _0x297c39[_0x392ad3(0x234)];_0x286318['unshift']({..._0x1059e6[_0x27cb5b],'undoState':_0x145fa8[_0x392ad3(0x2bf)][_0x392ad3(0x33e)],'redoState':_0x297c39[_0x392ad3(0x2bf)][_0x392ad3(0x33e)]}),_0x5b3043=_0x145fa8[_0x392ad3(0x2ff)],_0x240ba8=_0x297c39[_0x392ad3(0x2ff)];}_0x5b3043=_0x5455c0[_0x392ad3(0x294)](_0x2d7256[_0x392ad3(0x26a)][0x0]),_0x240ba8=_0x5455c0['deepClone'](_0x2d7256[_0x392ad3(0x26a)][0x0]);for(let _0x33ea95=_0xb211de[_0x392ad3(0x3e5)]-0x1;_0x33ea95>=0x0;_0x33ea95--){const _0x2c2e23={'id':_0x392ad3(0x291),'params':{'unitId':_0xb211de[_0x33ea95]['unitId'],..._0xb211de[_0x33ea95][_0x392ad3(0x2db)]}},_0x39394e={'id':_0x392ad3(0x291),'params':{'unitId':_0xb211de[_0x33ea95][_0x392ad3(0x2c6)],..._0xb211de[_0x33ea95][_0x392ad3(0x21e)]}},_0x57879e=this[_0x392ad3(0x218)][_0x392ad3(0x394)](_0x5b3043,_0x2c2e23,!0x1),_0x445214=this[_0x392ad3(0x218)][_0x392ad3(0x394)](_0x240ba8,_0x39394e,!0x1);if(_0x30cf0a(_0x57879e))throw _0x57879e[_0x392ad3(0x234)];if(_0x30cf0a(_0x445214))throw _0x445214['error'];_0x4b70fc[_0x392ad3(0x241)]({..._0xb211de[_0x33ea95],'undoState':_0x57879e[_0x392ad3(0x2bf)][_0x392ad3(0x33e)],'redoState':_0x445214['m2Prime'][_0x392ad3(0x33e)]}),_0x5b3043=_0x57879e['m1Prime'],_0x240ba8=_0x445214[_0x392ad3(0x2ff)];}this[_0x392ad3(0x220)][_0x392ad3(0x2dd)](_0x13e576,{'history':_0x286318,'collaboration':_0x4b70fc});}};re=nn([Ce(0x0,_0x3149e4(_0x30e431)),Ce(0x1,_0x2a95df),Ce(0x2,_0x3149e4(_0x4d100b))],re);var rn=Object[_0x55d1f4(0x341)],on=(_0x80c25a,_0x5c39b5,_0x1a39cd,_0x5c0ee5)=>{const _0x1e664b=_0x55d1f4;for(var _0x150a60=_0x5c0ee5>0x1?void 0x0:_0x5c0ee5?rn(_0x5c39b5,_0x1a39cd):_0x5c39b5,_0x1e3208=_0x80c25a[_0x1e664b(0x3e5)]-0x1,_0x414192;_0x1e3208>=0x0;_0x1e3208--)(_0x414192=_0x80c25a[_0x1e3208])&&(_0x150a60=_0x414192(_0x150a60)||_0x150a60);return _0x150a60;},tt=(_0x1a5382,_0xe78b97)=>(_0x3de977,_0x31ba5a)=>_0xe78b97(_0x3de977,_0x31ba5a,_0x1a5382);let oe=class{constructor(_0x50c1c3,_0x4f533b){const _0x14e462=_0x55d1f4;this['_injector']=_0x50c1c3,this[_0x14e462(0x218)]=_0x4f533b;}['transformSelections'](_0x361051){const _0x5ae106=_0x55d1f4;var _0x3fda50;const _0xf24118=this[_0x5ae106(0x285)][_0x5ae106(0x3dc)](_0x692bc4),_0x502f45=(_0x3fda50=_0xf24118[_0x5ae106(0x1f5)]())!=null?_0x3fda50:[];if(_0x502f45[_0x5ae106(0x3e5)]===0x0)return;const _0x697bda=_0x361051[_0x5ae106(0x365)],_0x3432fb=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x697bda,'actions':null,'textRanges':_0x502f45}}],_0x30074f=this[_0x5ae106(0x218)][_0x5ae106(0x3c8)](_0x361051,_0x3432fb);if(!_0x3e110f(_0x30074f))throw _0x30074f[_0x5ae106(0x234)];const _0x344b89=_0x30074f[_0x5ae106(0x2bf)][0x0][_0x5ae106(0x33e)][_0x5ae106(0x260)];Array[_0x5ae106(0x263)](_0x344b89)&&_0x344b89[_0x5ae106(0x3e5)]&&_0xf24118[_0x5ae106(0x25a)](_0x344b89,{'unitId':_0x697bda,'subUnitId':_0x697bda},!0x1);}};oe=on([tt(0x0,_0x3149e4(_0x30e431)),tt(0x1,_0x2a95df)],oe);var an=Object[_0x55d1f4(0x341)],cn=(_0x4ed4d9,_0x8aa393,_0x175b93,_0xbc7071)=>{const _0x15e3d0=_0x55d1f4;for(var _0x1ce124=_0xbc7071>0x1?void 0x0:_0xbc7071?an(_0x8aa393,_0x175b93):_0x8aa393,_0x59acc2=_0x4ed4d9[_0x15e3d0(0x3e5)]-0x1,_0x524db7;_0x59acc2>=0x0;_0x59acc2--)(_0x524db7=_0x4ed4d9[_0x59acc2])&&(_0x1ce124=_0x524db7(_0x1ce124)||_0x1ce124);return _0x1ce124;},U=(_0x4c5552,_0x394567)=>(_0x3f4036,_0x3ca9c1)=>_0x394567(_0x3f4036,_0x3ca9c1,_0x4c5552);let ae=class extends _0x5908e2{constructor(_0x36a48f,_0x22122e,_0x502403,_0x444231,_0x509f6e,_0x444890,_0x53ee7c,_0x1763d7){const _0x2ab0e8=_0x55d1f4;super(),_(this,_0x2ab0e8(0x3a5),new _0x1260b7(_0x5c5758[_0x2ab0e8(0x277)])),(this[_0x2ab0e8(0x220)]=_0x36a48f,this[_0x2ab0e8(0x3d6)]=_0x22122e,this[_0x2ab0e8(0x353)]=_0x502403,this[_0x2ab0e8(0x1fd)]=_0x444231,this[_0x2ab0e8(0x349)]=_0x509f6e,this[_0x2ab0e8(0x3eb)]=_0x444890,this['_messageService']=_0x53ee7c,this[_0x2ab0e8(0x306)]=_0x1763d7,this['_initEntityListener']());}[_0x55d1f4(0x205)](){const _0x10914a=_0x55d1f4;this[_0x10914a(0x2a8)](this['_collaborationController']['entityInit$']['subscribe'](_0xffa34f=>{const _0x5eb429=_0x10914a,_0x42275e=this[_0x5eb429(0x220)][_0x5eb429(0x269)][_0x5eb429(0x2ae)](_0x57f42a=>{const _0x520f2f=_0x5eb429;if(_0x57f42a==null)return;const {unitId:_0x56ccf5,redoState:_0x43b839,commandId:_0x51ca0a}=_0x57f42a;if(_0x56ccf5!==_0xffa34f[_0x520f2f(0x365)])return;const _0x3ea3ee={'id':_0x51ca0a,'type':_0xa2421b[_0x520f2f(0x2cf)],'params':{'unitId':_0x56ccf5,'actions':_0x43b839[_0x520f2f(0x2d7)],'textRanges':null}};_0xffa34f['onLocalMutation'](_0x3ea3ee);});if(_0xffa34f['disposeWithMe'](_0x42275e),_0xffa34f instanceof _0x18a400){const _0x2d2d54={'onTransformIME':_0x1dd417=>this['_docTransformIMECacheService'][_0x5eb429(0x2a2)](_0x1dd417),'onTransformState':_0x5ae706=>this[_0x5eb429(0x1fd)][_0x5eb429(0x32b)](_0x5ae706),'onTransformSelections':_0x52c6a6=>this[_0x5eb429(0x349)][_0x5eb429(0x363)](_0x52c6a6),'onSyncEditingCollabCursor':_0x4497b1=>this[_0x5eb429(0x3eb)][_0x5eb429(0x29c)](_0x4497b1),'onTransformRemoteChangesetByIMECache':_0x53693a=>this[_0x5eb429(0x353)][_0x5eb429(0x25d)](_0x53693a),'onTransformRemoteChangesetByStateCache':_0x1476a9=>this['_docTransformStateCacheService'][_0x5eb429(0x25d)](_0x1476a9)};_0xffa34f[_0x5eb429(0x219)](_0x2d2d54);}}));}};ae=cn([U(0x0,_0x3149e4(_0x4d100b)),U(0x1,_0x3149e4(_0x412df8)),U(0x2,_0x3149e4(ne)),U(0x3,_0x3149e4(re)),U(0x4,_0x3149e4(oe)),U(0x5,_0x3149e4(He)),U(0x6,_0x444ff5),U(0x7,_0x3149e4(_0x57e0c4))],ae);var ln=Object[_0x55d1f4(0x341)],_n=(_0x438dea,_0x42f32a,_0x1e9a91,_0x207be2)=>{const _0x22f3c0=_0x55d1f4;for(var _0x1827e8=_0x207be2>0x1?void 0x0:_0x207be2?ln(_0x42f32a,_0x1e9a91):_0x42f32a,_0x2e7454=_0x438dea[_0x22f3c0(0x3e5)]-0x1,_0x6d2888;_0x2e7454>=0x0;_0x2e7454--)(_0x6d2888=_0x438dea[_0x2e7454])&&(_0x1827e8=_0x6d2888(_0x1827e8)||_0x1827e8);return _0x1827e8;},Ee=(_0x4ecac8,_0x3007b4)=>(_0x4f2ce0,_0x37bbe0)=>_0x3007b4(_0x4f2ce0,_0x37bbe0,_0x4ecac8);let we=class extends _0x5908e2{constructor(_0xf531d7,_0x363bee,_0x4ee608){const _0x211063=_0x55d1f4;super(),_(this,_0x211063(0x2a6),new Map()),_(this,_0x211063(0x210),new Map()),_(this,_0x211063(0x25b),!0x1),(this[_0x211063(0x3e6)]=_0xf531d7,this[_0x211063(0x1f0)]=_0x363bee,this[_0x211063(0x355)]=_0x4ee608);}[_0x55d1f4(0x31a)](){this['_disabled']=!0x0;}[_0x55d1f4(0x27b)](){const _0x243c61=_0x55d1f4;this[_0x243c61(0x25b)]=!0x1;}get[_0x55d1f4(0x3e4)](){const _0x2a30e7=_0x55d1f4;return this[_0x2a30e7(0x210)];}[_0x55d1f4(0x3cd)](){const _0x4df837=_0x55d1f4;this[_0x4df837(0x2c0)]()[_0x4df837(0x24e)](()=>super[_0x4df837(0x3cd)]());}async[_0x55d1f4(0x3b6)](_0x39fd74){const _0xe4e7d3=_0x55d1f4;return this['_disabled']?null:this[_0xe4e7d3(0x1f0)][_0xe4e7d3(0x217)](_0x25f6b7(_0x39fd74));}async['saveOfflineData'](_0x1d10fa,_0x3eccd5){const _0x55735d=_0x55d1f4;return!!this[_0x55735d(0x1f0)][_0x55735d(0x313)](_0x1d10fa,_0x3eccd5);}[_0x55d1f4(0x309)](_0x56869c,_0x3e48a6,_0xad4647,_0x3852fb){const _0x4f05d9=_0x55d1f4,_0x21047e=this[_0x4f05d9(0x355)]['getCurrentRevOfUnit'](_0x56869c);this['_cachedData'][_0x4f05d9(0x2c7)](_0x56869c,{'unitID':_0x56869c,'type':_0x3e48a6,'awaitingChangeset':_0xad4647,'mutations':_0x3852fb,'rev':_0x21047e}),this[_0x4f05d9(0x210)]['has'](_0x56869c)||this[_0x4f05d9(0x340)](_0x56869c);}[_0x55d1f4(0x340)](_0x51b264){const _0x1bc405=_0x55d1f4,_0x37caed=this[_0x1bc405(0x386)]();_0x37caed===0x0?this[_0x1bc405(0x2a1)](_0x51b264):this[_0x1bc405(0x210)]['set'](_0x51b264,setTimeout(()=>this[_0x1bc405(0x2a1)](_0x51b264),_0x37caed));}[_0x55d1f4(0x386)](){const _0x16fb20=_0x55d1f4;var _0x18c067;return(_0x18c067=this['_configService'][_0x16fb20(0x36a)](_0x29aa17))!=null?_0x18c067:_0x5e498d;}[_0x55d1f4(0x2a1)](_0x60340){const _0x4ab4e3=_0x55d1f4,_0x4b8b10=this['_saveTaskMap'][_0x4ab4e3(0x3dc)](_0x60340);return _0x4b8b10!==void 0x0&&window[_0x4ab4e3(0x274)](_0x4b8b10),this[_0x4ab4e3(0x1f0)][_0x4ab4e3(0x313)](_0x25f6b7(_0x60340),this['_cachedData']['get'](_0x60340))[_0x4ab4e3(0x24e)](()=>this[_0x4ab4e3(0x210)]['delete'](_0x60340));}async[_0x55d1f4(0x2c0)](){const _0x1bc15f=_0x55d1f4,_0x299b9c=[];this[_0x1bc15f(0x210)][_0x1bc15f(0x31d)]((_0x3636dd,_0x2dc9f8)=>{const _0x2fde60=_0x1bc15f;window[_0x2fde60(0x274)](_0x3636dd),_0x299b9c[_0x2fde60(0x281)](this[_0x2fde60(0x2a1)](_0x2dc9f8)[_0x2fde60(0x24e)](()=>{const _0x2d7f42=_0x2fde60;this[_0x2d7f42(0x210)][_0x2d7f42(0x279)](_0x2dc9f8);}));}),await Promise[_0x1bc15f(0x286)](_0x299b9c);}};we=_n([Ee(0x0,_0x81ac81),Ee(0x1,_0x2acfa2),Ee(0x2,_0x3149e4(_0x200769))],we);class hn extends _0x5e2d42{constructor(){const _0x7adc6=_0x55d1f4;super(),_(this,'urlChange$'),this[_0x7adc6(0x2eb)]=_0x4e45c3(window,_0x7adc6(0x3a2))[_0x7adc6(0x25f)](_0x4d4566(this[_0x7adc6(0x361)]),_0x70d521(0x1),_0x3d70d1(void 0x0));}[_0x55d1f4(0x30e)](_0x301f27,_0x3d169c,_0x4211b2=!0x1){const _0x526294=_0x55d1f4,_0x11b57a=new URL(window['location'][_0x526294(0x202)]);_0x11b57a[_0x526294(0x23d)][_0x526294(0x2c7)](_0x301f27,_0x3d169c),_0x4211b2?window[_0x526294(0x384)]['replaceState']('','',_0x11b57a[_0x526294(0x39d)]()):window[_0x526294(0x384)][_0x526294(0x20e)]('','',_0x11b57a['toString']());}[_0x55d1f4(0x272)](_0xb0d687,_0x463482=!0x1){const _0x2c0ce7=_0x55d1f4,_0xc99e5d=new URL(window[_0x2c0ce7(0x222)][_0x2c0ce7(0x202)]);_0xc99e5d['searchParams'][_0x2c0ce7(0x279)](_0xb0d687),_0x463482?window[_0x2c0ce7(0x384)][_0x2c0ce7(0x31b)]('','',_0xc99e5d[_0x2c0ce7(0x39d)]()):window['history'][_0x2c0ce7(0x20e)]('','',_0xc99e5d[_0x2c0ce7(0x39d)]());}[_0x55d1f4(0x30f)](_0x433854){const _0x9dd1ed=_0x55d1f4;var _0x150ffa;return(_0x150ffa=new URL(window[_0x9dd1ed(0x222)][_0x9dd1ed(0x202)])[_0x9dd1ed(0x23d)][_0x9dd1ed(0x3dc)](_0x433854))!=null?_0x150ffa:void 0x0;}}var un=Object[_0x55d1f4(0x38f)],dn=Object[_0x55d1f4(0x341)],fn=(_0x6b5c0f,_0x551470,_0x498c23)=>_0x551470 in _0x6b5c0f?un(_0x6b5c0f,_0x551470,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x498c23}):_0x6b5c0f[_0x551470]=_0x498c23,Sn=(_0x405b4e,_0xde0392,_0x5550e1,_0x15e3e9)=>{const _0x16a8f5=_0x55d1f4;for(var _0x51c422=_0x15e3e9>0x1?void 0x0:_0x15e3e9?dn(_0xde0392,_0x5550e1):_0xde0392,_0x5c0338=_0x405b4e[_0x16a8f5(0x3e5)]-0x1,_0x1e060c;_0x5c0338>=0x0;_0x5c0338--)(_0x1e060c=_0x405b4e[_0x5c0338])&&(_0x51c422=_0x1e060c(_0x51c422)||_0x51c422);return _0x51c422;},Oe=(_0x2c06a2,_0x36204a)=>(_0xaaaa53,_0x1d9f00)=>_0x36204a(_0xaaaa53,_0x1d9f00,_0x2c06a2),mn=(_0x16283d,_0x35eafb,_0x49aa67)=>fn(_0x16283d,_0x35eafb+'',_0x49aa67);const gn=_0x55d1f4(0x2c1);let Ae=class extends _0x30ad2e{constructor(_0x430074=et,_0x30c37a,_0x94361b,_0x4b9fcb){const _0xf3a268=_0x55d1f4;super(),this[_0xf3a268(0x235)]=_0x430074,this[_0xf3a268(0x312)]=_0x30c37a,this[_0xf3a268(0x285)]=_0x94361b,this[_0xf3a268(0x3e6)]=_0x4b9fcb;const {..._0x8dce46}=_0x27c1cc({},et,this['_config']);this['_configService'][_0xf3a268(0x1fe)](Zi,_0x8dce46);}['onStarting'](){const _0x2d3e31=_0x55d1f4;this[_0x2d3e31(0x34e)](),this['_initDependencies']();}[_0x55d1f4(0x296)](){const _0x2e212f=_0x55d1f4;this[_0x2e212f(0x350)]();}[_0x55d1f4(0x34e)](){const _0x1dbde3=_0x55d1f4;var _0x4757db;const _0x3bca73=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x510c6b,{'useClass':_0x15102b}],[_0xa7efe,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x5d9f83(this[_0x1dbde3(0x285)],_0x436d9d(_0x3bca73,(_0x4757db=this['_config'])==null?void 0x0:_0x4757db[_0x1dbde3(0x3c6)]));}[_0x55d1f4(0x350)](){const _0x4e4a43=_0x55d1f4;this[_0x4e4a43(0x2a8)](this[_0x4e4a43(0x312)][_0x4e4a43(0x278)](_0x50d3bb['UNIVER_DOC'],[Pe])),this[_0x4e4a43(0x2a8)](this[_0x4e4a43(0x312)][_0x4e4a43(0x278)](_0x50d3bb[_0x4e4a43(0x3a3)],[Le]));}[_0x55d1f4(0x2fe)](){const _0x471bd1=_0x55d1f4;_0x458de9(this[_0x471bd1(0x285)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x55d1f4(0x3a7),gn),Ae=Sn([_0x2ab004(_0x540df7),Oe(0x1,_0x49352a),Oe(0x2,_0x3149e4(_0x30e431)),Oe(0x3,_0x81ac81)],Ae);var In=Object[_0x55d1f4(0x341)],vn=(_0x3ed19a,_0x9a8446,_0x167e1c,_0xa805f2)=>{for(var _0x5d4956=_0xa805f2>0x1?void 0x0:_0xa805f2?In(_0x9a8446,_0x167e1c):_0x9a8446,_0x172393=_0x3ed19a['length']-0x1,_0x3e2947;_0x172393>=0x0;_0x172393--)(_0x3e2947=_0x3ed19a[_0x172393])&&(_0x5d4956=_0x3e2947(_0x5d4956)||_0x5d4956);return _0x5d4956;},K=(_0x3f2678,_0x17960e)=>(_0x15747e,_0x340356)=>_0x17960e(_0x15747e,_0x340356,_0x3f2678);let st=class extends _0x4f3a19{constructor(_0x340dea,_0x4801a4,_0x4e1ece,_0x58fa72,_0x7e8087){super(_0x340dea,_0x4801a4,_0x4e1ece,_0x58fa72,_0x7e8087);}async['createSocket'](_0x10c211){const _0x75b91c=_0x55d1f4,_0x1e9929=await this[_0x75b91c(0x393)](),_0x326adf=this[_0x75b91c(0x2f4)](_0x10c211,_0x1e9929);return this[_0x75b91c(0x2d1)](_0x326adf);}['_createSocketURL'](_0x14ab61,_0x473466){const _0x524b57=_0x55d1f4,_0x1e528a=typeof window>'u'?new URL(_0x14ab61):new URL(_0x14ab61,window[_0x524b57(0x222)]['origin']);_0x1e528a[_0x524b57(0x23d)][_0x524b57(0x2c7)]('sessionTicket',_0x473466);const _0x5da17a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x524b57(0x222)]['search']);return _0x5da17a[_0x524b57(0x3dc)](_0x524b57(0x3d3))&&_0x1e528a[_0x524b57(0x23d)][_0x524b57(0x2c7)]('runId',_0x5da17a['get'](_0x524b57(0x3d3))),_0x1e528a[_0x524b57(0x39d)]();}async['_getSessionTicket'](){const _0x4a58aa=_0x55d1f4;var _0x4e94b0,_0x283fa0,_0x18caa1;const _0x3266d9=this[_0x4a58aa(0x3e6)][_0x4a58aa(0x36a)](_0x3da5b6),_0x5ec291=(_0x4e94b0=_0x3266d9==null?void 0x0:_0x3266d9[_0x4a58aa(0x240)])!=null?_0x4e94b0:_0x4969ef;return(_0x18caa1=(_0x283fa0=(await this['_httpService'][_0x4a58aa(0x3dc)](_0x5ec291,{'headers':{'Content-Type':_0x4a58aa(0x33c)}}))['body'])==null?void 0x0:_0x283fa0[_0x4a58aa(0x3db)])!=null?_0x18caa1:'';}};st=vn([K(0x0,_0x3149e4(_0x30e431)),K(0x1,_0x3149e4(_0x108837)),K(0x2,_0x81ac81),K(0x3,_0x386156),K(0x4,_0x21d0cb)],st);const it=0x7530,nt=_0x55d1f4(0x36c);class jn extends _0x5908e2{constructor(){const _0x141c96=_0x55d1f4;super(),_(this,_0x141c96(0x225),_0x3ae13b()),_(this,'_selfUnitIDs',new Set()),_(this,_0x141c96(0x2a9),new Map()),_(this,_0x141c96(0x293),null),_(this,_0x141c96(0x27e),new Map()),_(this,'_unitStatus',new Map()),this[_0x141c96(0x2d5)]();}['dispose'](){const _0x24583a=_0x55d1f4;super[_0x24583a(0x3cd)](),this[_0x24583a(0x27e)][_0x24583a(0x31d)]((_0x2405f0,_0xcc9728)=>this[_0x24583a(0x387)](_0xcc9728)),this[_0x24583a(0x293)]&&window[_0x24583a(0x36e)](this['_heartbeatTimer']);}[_0x55d1f4(0x2c3)](_0x36dd3a){const _0x64d290=_0x55d1f4;return this[_0x64d290(0x35c)](_0x36dd3a)[_0x64d290(0x25f)](_0x5ea6db());}['editingUnit'](_0x331d5c){const _0x1f6264=_0x55d1f4;this[_0x1f6264(0x352)][_0x1f6264(0x391)]===0x0&&this[_0x1f6264(0x2bd)](),this[_0x1f6264(0x352)][_0x1f6264(0x35f)](_0x331d5c),this['_send']({'type':0x0,'memberID':this[_0x1f6264(0x225)],'unitIDs':[_0x331d5c],'isForwarded':!0x1});}[_0x55d1f4(0x2ef)](_0x3a9e08){const _0x4a7478=_0x55d1f4;this[_0x4a7478(0x352)][_0x4a7478(0x279)](_0x3a9e08),this[_0x4a7478(0x352)][_0x4a7478(0x391)]===0x0&&this[_0x4a7478(0x293)]&&window[_0x4a7478(0x36e)](this[_0x4a7478(0x293)]);}[_0x55d1f4(0x2d5)](){const _0x266793=_0x55d1f4;this[_0x266793(0x2a8)](_0x5cf123(_0x4e45c3(window,_0x266793(0x380))[_0x266793(0x2ae)](_0x228f64=>{const _0x21e982=_0x266793;if(_0x228f64[_0x21e982(0x207)]!==nt||!_0x228f64[_0x21e982(0x1f4)])return;const _0x1bb969=JSON['parse'](_0x228f64[_0x21e982(0x1f4)]);this['_handleEvent'](_0x1bb969);}))),window[_0x266793(0x236)](_0x266793(0x377),()=>this['_send']({'type':0x1,'memberID':this[_0x266793(0x225)],'unitIDs':Array[_0x266793(0x2a0)](this[_0x266793(0x352)])}));}[_0x55d1f4(0x31f)](_0x3a79e0){const _0x5f1703=_0x55d1f4;switch(_0x3a79e0['type']){case 0x0:this['_handleJoinEvent'](_0x3a79e0);break;case 0x1:this['_handleLeaveEvent'](_0x3a79e0);break;case 0x2:this[_0x5f1703(0x297)](_0x3a79e0);break;}}['_handleJoinEvent'](_0xa614c2){const _0x42b14e=_0x55d1f4,{unitIDs:_0x59d3fc,memberID:_0x486877,isForwarded:_0x3b4d2a}=_0xa614c2;_0x59d3fc['forEach'](_0x3f892e=>{const _0x2778d8=_0x1979;if(!_0x3b4d2a&&this[_0x2778d8(0x2a9)]['has'](_0x3f892e)&&this[_0x2778d8(0x35c)](_0x3f892e)['next'](_0x5488a0[_0x2778d8(0x237)]),!this[_0x2778d8(0x2a9)]['has'](_0x3f892e)||!this[_0x2778d8(0x2a9)][_0x2778d8(0x3dc)](_0x3f892e)[_0x2778d8(0x3d2)](_0x486877)){const _0x203793=this[_0x2778d8(0x2a9)]['get'](_0x3f892e)||new Set();_0x203793['add'](_0x486877),this[_0x2778d8(0x2a9)][_0x2778d8(0x2c7)](_0x3f892e,_0x203793),this[_0x2778d8(0x2cc)](_0x486877);}}),_0x3b4d2a||this[_0x42b14e(0x33a)]({'type':0x0,'memberID':this[_0x42b14e(0x225)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2a3b45){const _0x14e396=_0x55d1f4;this[_0x14e396(0x387)](_0x2a3b45);const _0x594ee=window[_0x14e396(0x264)](()=>{const _0x49f883=_0x14e396;this[_0x49f883(0x2a9)]['forEach'](_0x1a7b5c=>{_0x1a7b5c['delete'](_0x2a3b45);});},it*0x2);this[_0x14e396(0x27e)][_0x14e396(0x2c7)](_0x2a3b45,_0x594ee);}[_0x55d1f4(0x387)](_0x49c6a5){const _0x18deba=_0x55d1f4;if(this[_0x18deba(0x27e)][_0x18deba(0x3d2)](_0x49c6a5)){const _0x1908b0=this[_0x18deba(0x27e)][_0x18deba(0x3dc)](_0x49c6a5);_0x1908b0&&window[_0x18deba(0x274)](_0x1908b0),this[_0x18deba(0x27e)][_0x18deba(0x2c7)](_0x49c6a5,null);}}[_0x55d1f4(0x2e6)](_0x35e765){const {memberID:_0x1c5e39,unitIDs:_0x120dbf}=_0x35e765;_0x120dbf['forEach'](_0x52bb77=>{const _0x5b2511=_0x1979;var _0x40731c;const _0x968a35=this['_unitOnClients']['get'](_0x52bb77);_0x968a35&&(_0x968a35[_0x5b2511(0x279)](_0x1c5e39),(_0x40731c=this[_0x5b2511(0x35c)](_0x52bb77))==null||_0x40731c['next'](_0x968a35[_0x5b2511(0x391)]===0x0?_0x5488a0[_0x5b2511(0x2ab)]:_0x5488a0[_0x5b2511(0x237)]));}),this['_removeClearOtherTimer'](_0x1c5e39);}[_0x55d1f4(0x297)](_0x47d0e4){const _0x4f4aaa=_0x55d1f4;this['_scheduleClearOtherTimer'](_0x47d0e4[_0x4f4aaa(0x1fb)]);}[_0x55d1f4(0x33a)](_0x3ca4f2){const _0x1a3d07=_0x55d1f4;localStorage[_0x1a3d07(0x313)](nt,JSON[_0x1a3d07(0x2c8)](_0x3ca4f2));}[_0x55d1f4(0x2bd)](){const _0x218c1c=_0x55d1f4;this[_0x218c1c(0x293)]=window[_0x218c1c(0x2aa)](()=>{const _0x5b4f2d=_0x218c1c;this[_0x5b4f2d(0x33a)]({'type':0x2,'memberID':this[_0x5b4f2d(0x225)]});},it);}['_ensureSubject'](_0x9a58ad){const _0x5ed86d=_0x55d1f4;return this[_0x5ed86d(0x2f2)][_0x5ed86d(0x3d2)](_0x9a58ad)||this['_unitStatus'][_0x5ed86d(0x2c7)](_0x9a58ad,new _0x1260b7(_0x5488a0[_0x5ed86d(0x2ab)])),this[_0x5ed86d(0x2f2)][_0x5ed86d(0x3dc)](_0x9a58ad);}}var Mt=(_0x2f1019=>(_0x2f1019[_0x2f1019[_0x55d1f4(0x311)]=0x0]=_0x55d1f4(0x311),_0x2f1019[_0x2f1019['OK']=0x1]='OK',_0x2f1019[_0x2f1019['INTERNAL_ERROR']=0x2]=_0x55d1f4(0x2fb),_0x2f1019[_0x2f1019[_0x55d1f4(0x283)]=0x3]=_0x55d1f4(0x283),_0x2f1019[_0x2f1019['NOT_FOUND']=0x4]=_0x55d1f4(0x3b3),_0x2f1019[_0x2f1019[_0x55d1f4(0x3df)]=0x5]='UNAUTHENTICATED',_0x2f1019[_0x2f1019['ALREADY_EXISTS']=0x6]=_0x55d1f4(0x23e),_0x2f1019[_0x2f1019['INVALID_ARGUMENT']=0x7]=_0x55d1f4(0x3c7),_0x2f1019[_0x2f1019[_0x55d1f4(0x371)]=0x8]=_0x55d1f4(0x371),_0x2f1019[_0x2f1019[_0x55d1f4(0x2f1)]=0x9]=_0x55d1f4(0x2f1),_0x2f1019[_0x2f1019[_0x55d1f4(0x3bd)]=0xa]='LOGIN_FAILED',_0x2f1019[_0x2f1019[_0x55d1f4(0x2cd)]=0x1389]=_0x55d1f4(0x2cd),_0x2f1019[_0x2f1019[_0x55d1f4(0x38e)]=0x1771]=_0x55d1f4(0x38e),_0x2f1019[_0x2f1019['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2f1019[_0x2f1019[_0x55d1f4(0x22a)]=0x1773]=_0x55d1f4(0x22a),_0x2f1019[_0x2f1019[_0x55d1f4(0x369)]=0x1b59]=_0x55d1f4(0x369),_0x2f1019[_0x2f1019[_0x55d1f4(0x3ef)]=0x1b5a]=_0x55d1f4(0x3ef),_0x2f1019[_0x2f1019[_0x55d1f4(0x3ae)]=0x1b5b]=_0x55d1f4(0x3ae),_0x2f1019[_0x2f1019[_0x55d1f4(0x29a)]=0x1b5c]=_0x55d1f4(0x29a),_0x2f1019[_0x2f1019[_0x55d1f4(0x3ab)]=0x1b5d]=_0x55d1f4(0x3ab),_0x2f1019[_0x2f1019[_0x55d1f4(0x249)]=0x1f41]=_0x55d1f4(0x249),_0x2f1019[_0x2f1019[_0x55d1f4(0x206)]=0x2329]=_0x55d1f4(0x206),_0x2f1019[_0x2f1019[_0x55d1f4(0x3af)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2f1019[_0x2f1019[_0x55d1f4(0x24f)]=0x232b]=_0x55d1f4(0x24f),_0x2f1019[_0x2f1019['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2f1019[_0x2f1019[_0x55d1f4(0x250)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2f1019[_0x2f1019[_0x55d1f4(0x390)]=0x2711]=_0x55d1f4(0x390),_0x2f1019[_0x2f1019[_0x55d1f4(0x373)]=0x2712]=_0x55d1f4(0x373),_0x2f1019[_0x2f1019[_0x55d1f4(0x30c)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2f1019[_0x2f1019[_0x55d1f4(0x376)]=0x2714]=_0x55d1f4(0x376),_0x2f1019[_0x2f1019[_0x55d1f4(0x28c)]=0x271a]=_0x55d1f4(0x28c),_0x2f1019[_0x2f1019[_0x55d1f4(0x392)]=0x271b]=_0x55d1f4(0x392),_0x2f1019[_0x2f1019[_0x55d1f4(0x331)]=0x271c]=_0x55d1f4(0x331),_0x2f1019[_0x2f1019[_0x55d1f4(0x335)]=0x271d]=_0x55d1f4(0x335),_0x2f1019[_0x2f1019[_0x55d1f4(0x3ad)]=0x271e]=_0x55d1f4(0x3ad),_0x2f1019[_0x2f1019[_0x55d1f4(0x2b2)]=0x271f]=_0x55d1f4(0x2b2),_0x2f1019[_0x2f1019['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2f1019[_0x2f1019['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x55d1f4(0x381),_0x2f1019[_0x2f1019[_0x55d1f4(0x2af)]=0x2ee2]='INVALID_INVITE_CODE',_0x2f1019[_0x2f1019[_0x55d1f4(0x337)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2f1019[_0x2f1019[_0x55d1f4(0x257)]=0x2ee4]=_0x55d1f4(0x257),_0x2f1019[_0x2f1019[_0x55d1f4(0x3ce)]=0x2ee5]=_0x55d1f4(0x3ce),_0x2f1019[_0x2f1019[_0x55d1f4(0x3a6)]=0x32c9]=_0x55d1f4(0x3a6),_0x2f1019[_0x2f1019[_0x55d1f4(0x2b3)]=0x32ca]=_0x55d1f4(0x2b3),_0x2f1019[_0x2f1019[_0x55d1f4(0x23f)]=0x32cb]=_0x55d1f4(0x23f),_0x2f1019[_0x2f1019[_0x55d1f4(0x23b)]=-0x1]='UNRECOGNIZED',_0x2f1019))(Mt||{}),pn=Object[_0x55d1f4(0x341)],Cn=(_0x1d3c75,_0x5984d4,_0x135bbe,_0x5454cb)=>{const _0x50387c=_0x55d1f4;for(var _0x573e5f=_0x5454cb>0x1?void 0x0:_0x5454cb?pn(_0x5984d4,_0x135bbe):_0x5984d4,_0x468135=_0x1d3c75[_0x50387c(0x3e5)]-0x1,_0x30dbbd;_0x468135>=0x0;_0x468135--)(_0x30dbbd=_0x1d3c75[_0x468135])&&(_0x573e5f=_0x30dbbd(_0x573e5f)||_0x573e5f);return _0x573e5f;},be=(_0x483c24,_0x5ed273)=>(_0x2cdb94,_0x32a985)=>_0x5ed273(_0x2cdb94,_0x32a985,_0x483c24);let rt=class extends _0x5908e2{constructor(_0x236aba,_0x3faa53,_0x2049b9){super(),this['_instanceService']=_0x236aba,this['_httpService']=_0x3faa53,this['_configService']=_0x2049b9;}async[_0x55d1f4(0x298)](_0x3817d2,_0x14a912,_0x4178f8,..._0xd96f3c){const _0xc0c681=_0x55d1f4;var _0x4ac2fd,_0x2187e1,_0x4ddb85,_0xa38238;const _0x199777=this[_0xc0c681(0x3d4)][_0xc0c681(0x3d9)]();if(!_0x199777)throw new Error(_0xc0c681(0x33d));const _0x2377da=((_0x4ac2fd=this[_0xc0c681(0x3e6)][_0xc0c681(0x36a)](_0x1c31bc))!=null?_0x4ac2fd:_0x5abb5d)+'/'+_0x3817d2+'/run/'+_0x14a912,_0x4985e7=new URL(window['location'][_0xc0c681(0x202)]),_0x4af577={'scriptId':_0x3817d2,'runId':(_0x2187e1=_0x4985e7[_0xc0c681(0x23d)][_0xc0c681(0x3dc)]('runId'))!=null?_0x2187e1:'','function':_0x14a912,'unitId':_0x199777[_0xc0c681(0x27d)](),'argsOfFunction':JSON['stringify'](_0xd96f3c),'invokeId':(_0x4ddb85=_0x4178f8[_0xc0c681(0x31e)])!=null?_0x4ddb85:'','executionId':(_0xa38238=_0x4178f8[_0xc0c681(0x3d1)])!=null?_0xa38238:''};try{const _0x50aa91=await this[_0xc0c681(0x2d0)][_0xc0c681(0x28e)](_0x2377da,{'body':_0x4af577});return _0x50aa91[_0xc0c681(0x2f8)][_0xc0c681(0x234)]&&_0x50aa91[_0xc0c681(0x2f8)][_0xc0c681(0x234)][_0xc0c681(0x282)]!==Mt['OK']?'Failed':_0x50aa91['body']['result'];}catch{return _0xc0c681(0x2cb);}}};rt=Cn([be(0x0,_0x59505c),be(0x1,_0x3149e4(_0x108837)),be(0x2,_0x81ac81)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- const _0xbcc1e3=_0xf982;function _0x5340(){const _0x375846=['Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','60oIKnZu','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','147081LQQJkY','27155XjeJbw','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Synced','118083aDyPNU','Syncing...','Collaboration\x20Conflict','229698DjYAaB','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2987368fbrkUX','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','838852zklaAP','396718noQWBa','9TuZktj','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Connection\x20failed,\x20please\x20check\x20your\x20network.'];_0x5340=function(){return _0x375846;};return _0x5340();}(function(_0x1bb72f,_0x10127b){const _0x23324a=_0xf982,_0x536b1e=_0x1bb72f();while(!![]){try{const _0xc6708e=parseInt(_0x23324a(0x1c7))/0x1+parseInt(_0x23324a(0x1ca))/0x2+parseInt(_0x23324a(0x1d8))/0x3+parseInt(_0x23324a(0x1ce))/0x4+parseInt(_0x23324a(0x1d9))/0x5*(-parseInt(_0x23324a(0x1d6))/0x6)+parseInt(_0x23324a(0x1cf))/0x7+parseInt(_0x23324a(0x1cc))/0x8*(-parseInt(_0x23324a(0x1d0))/0x9);if(_0xc6708e===_0x10127b)break;else _0x536b1e['push'](_0x536b1e['shift']());}catch(_0x588875){_0x536b1e['push'](_0x536b1e['shift']());}}}(_0x5340,0x1d727));function _0xf982(_0x34a9a0,_0x4a79c7){const _0x53400f=_0x5340();return _0xf982=function(_0xf98233,_0x58be5d){_0xf98233=_0xf98233-0x1c6;let _0x1b17a8=_0x53400f[_0xf98233];return _0x1b17a8;},_0xf982(_0x34a9a0,_0x4a79c7);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0xbcc1e3(0x1d4),'synced':_0xbcc1e3(0x1c6),'syncing':_0xbcc1e3(0x1c8),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0xbcc1e3(0x1d3),'will-retry':_0xbcc1e3(0x1d2),'room-full':_0xbcc1e3(0x1d7),'collaboration-timeout':_0xbcc1e3(0x1d5)},'conflict':{'title':_0xbcc1e3(0x1c9),'content':_0xbcc1e3(0x1cd)},'permission':{'title':'Authentication\x20Error','content':_0xbcc1e3(0x1d1)},'collaboration':{'single-unit':{'warning':_0xbcc1e3(0x1cb)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0xbcc1e3(0x1da)}};export{e as default};
1
+ const _0x4b95d6=_0xf5b2;(function(_0x23fee9,_0x16b960){const _0x6902f0=_0xf5b2,_0x3f3e38=_0x23fee9();while(!![]){try{const _0x5bbb6a=-parseInt(_0x6902f0(0x1fc))/0x1+-parseInt(_0x6902f0(0x1f4))/0x2+-parseInt(_0x6902f0(0x206))/0x3+-parseInt(_0x6902f0(0x205))/0x4+parseInt(_0x6902f0(0x203))/0x5+parseInt(_0x6902f0(0x201))/0x6*(parseInt(_0x6902f0(0x1f9))/0x7)+parseInt(_0x6902f0(0x1f5))/0x8;if(_0x5bbb6a===_0x16b960)break;else _0x3f3e38['push'](_0x3f3e38['shift']());}catch(_0x4d7db7){_0x3f3e38['push'](_0x3f3e38['shift']());}}}(_0x1835,0x35e6a));const e={'collab-client':{'tooltip':{'reconnect':_0x4b95d6(0x1ff)}},'collabStatus':{'fetchMiss':_0x4b95d6(0x200),'conflict':_0x4b95d6(0x1f3),'notCollab':_0x4b95d6(0x1f7),'synced':'Synced','syncing':_0x4b95d6(0x1fb),'offline':_0x4b95d6(0x1f8)},'session':{'connection-failed':_0x4b95d6(0x1fd),'will-retry':_0x4b95d6(0x1ef),'room-full':_0x4b95d6(0x202),'collaboration-timeout':_0x4b95d6(0x1f1)},'conflict':{'title':_0x4b95d6(0x1fe),'content':_0x4b95d6(0x1f2)},'permission':{'title':_0x4b95d6(0x204),'content':_0x4b95d6(0x1f6)},'collaboration':{'single-unit':{'warning':_0x4b95d6(0x207)},'closeRoom':_0x4b95d6(0x1fa)},'auth':{'needGotoLoginAlert':_0x4b95d6(0x1f0)}};function _0xf5b2(_0x4614be,_0x20bee6){const _0x183519=_0x1835();return _0xf5b2=function(_0xf5b2e2,_0x12186a){_0xf5b2e2=_0xf5b2e2-0x1ef;let _0xef7095=_0x183519[_0xf5b2e2];return _0xef7095;},_0xf5b2(_0x4614be,_0x20bee6);}export{e as default};function _0x1835(){const _0x4eefe2=['Authentication\x20Error','52924vYfOGC','530379EIcUrU','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Edit\x20conflicts','77978lqCWFx','1242936xpkSOS','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Local\x20file','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','7GGZyeM','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Syncing...','154539GojgWk','Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20Conflict','Click\x20to\x20Reconnect','Syncing\x20server\x20data...','1136682JTyAGr','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','1297580thYhKR'];_0x1835=function(){return _0x4eefe2;};return _0x1835();}
@@ -1 +1 @@
1
- const _0x4da399=_0x5738;function _0x265e(){const _0x5a8363=['در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','6484680aPctyk','643806ZkaoWG','در\x20حال\x20همگام\x20سازی...','15370iQiYDU','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','همگام\x20سازی','7drHwsq','4227acXxAc','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','پرونده\x20محلی','تداخل\x20ویرایش','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','خطای\x20اعتبارسنجی','101259epdyku','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','392hNMDzm','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','تداخل\x20همکاری','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','419500xvRphU','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','770AtWveO','94909kGaITk'];_0x265e=function(){return _0x5a8363;};return _0x265e();}function _0x5738(_0x1d480b,_0xac3824){const _0x265eda=_0x265e();return _0x5738=function(_0x573832,_0x5e2711){_0x573832=_0x573832-0x142;let _0x4a715f=_0x265eda[_0x573832];return _0x4a715f;},_0x5738(_0x1d480b,_0xac3824);}(function(_0x4ba7ea,_0x509443){const _0x17e6d6=_0x5738,_0x2daf9f=_0x4ba7ea();while(!![]){try{const _0x160561=-parseInt(_0x17e6d6(0x151))/0x1+-parseInt(_0x17e6d6(0x150))/0x2*(parseInt(_0x17e6d6(0x15b))/0x3)+-parseInt(_0x17e6d6(0x14e))/0x4+-parseInt(_0x17e6d6(0x157))/0x5+-parseInt(_0x17e6d6(0x155))/0x6*(parseInt(_0x17e6d6(0x15a))/0x7)+-parseInt(_0x17e6d6(0x14a))/0x8*(-parseInt(_0x17e6d6(0x148))/0x9)+parseInt(_0x17e6d6(0x154))/0xa;if(_0x160561===_0x509443)break;else _0x2daf9f['push'](_0x2daf9f['shift']());}catch(_0x52e7c7){_0x2daf9f['push'](_0x2daf9f['shift']());}}}(_0x265e,0x54c07));const o={'collab-client':{'tooltip':{'reconnect':_0x4da399(0x14d)}},'collabStatus':{'fetchMiss':_0x4da399(0x152),'conflict':_0x4da399(0x145),'notCollab':_0x4da399(0x144),'synced':_0x4da399(0x159),'syncing':_0x4da399(0x156),'offline':_0x4da399(0x14f)},'session':{'connection-failed':_0x4da399(0x143),'will-retry':'اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','room-full':_0x4da399(0x142),'collaboration-timeout':_0x4da399(0x153)},'conflict':{'title':_0x4da399(0x14c),'content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':_0x4da399(0x147),'content':_0x4da399(0x14b)},'collaboration':{'single-unit':{'warning':_0x4da399(0x158)},'closeRoom':_0x4da399(0x146)},'auth':{'needGotoLoginAlert':_0x4da399(0x149)}};export{o as default};
1
+ function _0x16bd(){const _0x48c856=['اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','1167996xCKtgs','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','144862YeqCND','در\x20حال\x20همگام\x20سازی...','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','4cZAkny','تداخل\x20ویرایش','1507824MYhAJY','20200cWZmnw','3156EWIIsE','79896VoCnbn','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','1709587YfLJNo','خطای\x20اعتبارسنجی','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','84FRvZdH','تداخل\x20همکاری','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','909nPHomg','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','پرونده\x20محلی','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','955GDecQY','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','همگام\x20سازی'];_0x16bd=function(){return _0x48c856;};return _0x16bd();}function _0x482d(_0x533313,_0x5910c7){const _0x16bd3c=_0x16bd();return _0x482d=function(_0x482d05,_0x5cc292){_0x482d05=_0x482d05-0x15b;let _0x3a86fb=_0x16bd3c[_0x482d05];return _0x3a86fb;},_0x482d(_0x533313,_0x5910c7);}const _0x247992=_0x482d;(function(_0x3b2b3d,_0x4233d8){const _0x392dbd=_0x482d,_0x59b2eb=_0x3b2b3d();while(!![]){try{const _0x74051d=parseInt(_0x392dbd(0x168))/0x1*(parseInt(_0x392dbd(0x165))/0x2)+parseInt(_0x392dbd(0x163))/0x3+-parseInt(_0x392dbd(0x16a))/0x4+parseInt(_0x392dbd(0x15f))/0x5*(parseInt(_0x392dbd(0x16c))/0x6)+-parseInt(_0x392dbd(0x173))/0x7*(parseInt(_0x392dbd(0x16d))/0x8)+-parseInt(_0x392dbd(0x15b))/0x9*(parseInt(_0x392dbd(0x16b))/0xa)+parseInt(_0x392dbd(0x170))/0xb;if(_0x74051d===_0x4233d8)break;else _0x59b2eb['push'](_0x59b2eb['shift']());}catch(_0x34c937){_0x59b2eb['push'](_0x59b2eb['shift']());}}}(_0x16bd,0x39287));const o={'collab-client':{'tooltip':{'reconnect':_0x247992(0x15c)}},'collabStatus':{'fetchMiss':_0x247992(0x167),'conflict':_0x247992(0x169),'notCollab':_0x247992(0x15d),'synced':_0x247992(0x161),'syncing':_0x247992(0x166),'offline':_0x247992(0x16e)},'session':{'connection-failed':_0x247992(0x15e),'will-retry':_0x247992(0x164),'room-full':_0x247992(0x162),'collaboration-timeout':_0x247992(0x160)},'conflict':{'title':_0x247992(0x174),'content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':_0x247992(0x171),'content':_0x247992(0x16f)},'collaboration':{'single-unit':{'warning':_0x247992(0x172)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x247992(0x175)}};export{o as default};