@univerjs-pro/collaboration-client-ui 0.13.0-insiders.20251215-64041bb → 0.13.0-insiders.20251216-1519cb7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x15b5c6=_0x31d6;(function(_0x1f7d07,_0x4c3001){const _0x248e9b=_0x31d6,_0x1eceea=_0x1f7d07();while(!![]){try{const _0x521017=parseInt(_0x248e9b(0x363))/0x1+-parseInt(_0x248e9b(0x233))/0x2+-parseInt(_0x248e9b(0x34b))/0x3+parseInt(_0x248e9b(0x2bf))/0x4+-parseInt(_0x248e9b(0x34c))/0x5*(parseInt(_0x248e9b(0x2c0))/0x6)+-parseInt(_0x248e9b(0x20e))/0x7*(parseInt(_0x248e9b(0x277))/0x8)+-parseInt(_0x248e9b(0x43e))/0x9*(-parseInt(_0x248e9b(0x218))/0xa);if(_0x521017===_0x4c3001)break;else _0x1eceea['push'](_0x1eceea['shift']());}catch(_0x134a74){_0x1eceea['push'](_0x1eceea['shift']());}}}(_0x2c56,0xac265));var Xe=Object[_0x15b5c6(0x443)],Ke=(_0x28f704,_0x488b08,_0x5dfca5)=>_0x488b08 in _0x28f704?Xe(_0x28f704,_0x488b08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dfca5}):_0x28f704[_0x488b08]=_0x5dfca5,_=(_0x58a3bb,_0x100e07,_0x3376ef)=>Ke(_0x58a3bb,typeof _0x100e07!=_0x15b5c6(0x2e2)?_0x100e07+'':_0x100e07,_0x3376ef);function _0x2c56(){const _0x26ae5b=['_context','onPointerEnter$','updateOfflineData','_initCommandExecutedListener','_startDocCollabCursor','_themeService','docStateChange$','sessionTicket','_onRefRangeChange','memberID','red.300','useCallback','_updateCollabCursors','CURRENT_STATUS_CANNOT_OPERATE','DeleteRangeMoveUpCommandId','error','triggerDblclick','restore','runId','transformStateCache','RevisionService','_updateURLWithCurrentState','getSheetBySheetId','session.connection-failed','subscribe','ENTITLE_COUPON_EXPIRED','defs','REDEMPTION_INVALID_CODE','name','ColorKit','all','HTTPService','findNodePositionByCharIndex','_handleHover','exhaustSavingTask','_showGuardMessage','_setupBeforeClosingHandler','ENTITLE_REPORT_LIMIT_EXCEED','popstate','addClipboardHook','getParam','pluginName','dirtyRanges','Workbook','AWAITING_WITH_PENDING','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[CollaborationDataLoaderController]','_onCursorDelete','getColor','mutations','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REJECT','init','IImageIoService','DocSkeletonManagerService','_backgroundColor','_docTransformStateCacheService','data','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_configService','registerBeforeClose','assign','...','_hasFormulaInDirtyRanges','save','disposeWithMe','UNAUTHENTICATED','hide','Vector2','currentColor','distinctUntilChanged','loadUnit','transformSelections','OTHER_CLIENTS_EDITING','MoveRangeCommandId','use','onLocalMutation','Failed','asObservable','BehaviorSubject','ILogService','_memberID','_initUserListener','NOT_COLLAB','_checkAndWaitForCalculationPermission','CanceledError','useDependency','AUTHORIZE_CODE_ILLEGAL','DeleteRangeMoveLeftCommandId','getOwnPropertyDescriptor','63JrXHbU','univer-flex\x20univer-items-center','_onCursorUpdate','getValue','attrs','defineProperty','NodePositionConvertToCursor','handleIRemoveCol','_maxFormulaLimit','beginPath','_collaborationSessionService','forEach','jsx','replaceDocRanges','TEXT_RANGE_LAYER_INDEX','handleInsertRow','Disposable','REDEMPTION_CODE_FULLY_REDEEMED','_memberService','NOT_FOUND','column','#FFF','debounceTime','handleInsertCol','pushState','CHANGESET_REVISION_CONFILICT','_refreshCollabCursors','LICENSE_EXPORT_SIZE_EXCEEDED','registerRenderModule','WebURLService','length','COLORS','_drawTextRange','imageSourceType','filename','isActive','_init','catch','set','subUnitId','DataLoaderService','/universer-api/license/formula/limit/status','path','_transformHistoryAndStateStack','SetSelectionsOperation','setTimeout','then','_getFormulaLimitStatus','engine','ACTIVE_UNIT_EVENT_CHANNEL','SHEET_VIEWPORT_KEY','_send','newValue','getColorFromTheme','JOIN_ROOM_FAILED','EffectRefRangId','START_CALCULATION','endColumn','SYNCED','_imageIoService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','values','_docSkeletonManagerService','getOffsetConfig','getUniverSheetInstance','_initResize','_taskIds','jsxs','syncEditingCollabCursor','roomMembers','onPointerMove$','Tooltip','1em','_anchorDot','getUnit','mask','bottom','permission.title','jiqing.500','onPointerLeave$','_sheetSkeletonManagerService','useObservable','_range','RemoveColCommandId','setShapeProps','complete','INVALID_INVITE_CODE','currentTheme$','Injector','?taskId=','getMemberID','rgba(255,\x20255,\x20255,\x200.01)','_disabled','fill','NodePositionConvertToRectRange','endRow','handleDeleteRangeMoveLeft','getViewport','includes','_checkCalculationAvailable','unitID','_logService','CONNECTOR_DATA_TOO_LARGE','0\x200\x2017\x2016','getCellPositionByOffset','createInstance','_getSheetObject','override','roomMembers$','generateRandomId','has','split','USER_NOT_INVITED_CODE','transformIMECache','round','getCollabCursors$','MOBILE_HAS_BEEN_BOUND','PENDING','disableLocalCache','IRenderManagerService','_cachedData','_scene','_transformService','getTypeOfUnitAdded$','_refRangeService','closePath','useRef','INVITE_CODE_HAS_BEEN_UES','getCellMatrix','_lastPointer','_id','executionId','entries','sheetID','white','clsx','TEXT','resize','_textBubble','Plugin','getSkeleton','_unitStatus','setItem','getUnitStatus$','MemberService','_injector','row','LOCAL_CACHE_INTERVAL','YUUMI_TABLE_NOT_FOUND_IN_UNIT','post','_monkeyPatchLogService','merge','IUIPartsService','_uiPartsService','RECT','makeDirty','DesktopCollaborationStatusDisplayController','MOBILE_VERIFY_CODE_MISMATCH','385DxYwmt','maxFormulaLimit','_eventUnsubscribe','addEventListener','CollaborationUIEventService','saveOfflineData','flatMap','unload','registerDependencies','uni.network.url-service','2662610wyttlp','blue.400','Shape','subunit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','functionsExecutedState','_localeService','_messageService','PY_RUNTIME_SCRIPT_ERROR','LICENSE_IMPORT_SIZE_EXCEEDED','DocCollaborationEntity','_startSheetCollabCursor','ticket','sheetId','parseInt','/run/','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','FromArray','message','black','_ensureSubject','SetFormulaCalculationNotificationMutation','SetFormulaCalculationStartMutation','send','_initUnhandledRejectionListener','addObject','INVALID_ARGUMENT','2388962LpbDDS','_localStorageService','UniverIcon','SessionStatus','REDEMPTION_CODE_HAS_BEEN_CREATED','collabCursorState$','WECHAT_HAS_BEEN_BOUND','_hovered','div','onTransformChange$','enableLocalCache','ALREADY_EXISTS','_roomMembers$','doc.mutation.rich-text-editing','handleMoveRange','setConfig','current','BrowserCollaborationSocketService','transform','min','_color','evenodd','VIEW_MAIN','pipe','toRgbString','APPLY_PERMISSION_DENIED','RemoteUniscriptService','DocStateChangeManagerService','WebSocketService','collabStatus.notCollab','measureText','setStateCache','REDEMPTION_CODE_NOT_STARTED','_scheduleSaving','_toggleOffline','_registerRenderDependencies','Loading','FormulaExecutedStateType','ENSURE_SNAPSHOT_EXECUTION','search','ERROR_AGAIN','clearInterval','clipPath','RefRangeService','SetWorksheetActivateCommand','editingUnit','isEditing','InsertRowCommandId','transformByState','DependentOn','getMember','debug','IBeforeCloseService','unsubscribe','_removeClearOtherTimer','_saveCache','_cursorInfo$','eventID','TOO_MANY_REQUESTS','_cursors','_updateSubUnitFromURLParams','startRow','CONFLICT','ENTITLE_CAN_NOT_BUY_LOWER_OTP','stage','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','session.collaboration-timeout','_setFormulaLimitStatus','176216ycPngL','_entityInit$','disposeUnit','random','SUBMIT_CHANGESET_TIMEOUT','getStateCache','toString','handleDeleteRangeMoveUp','_beforeCloseService','_renderManagerService','source','requireSession','SetTextSelectionsOperation','getCurrentRevOfUnit','ICommandService','getUndoRedoMutationParamsCache','ONLINE','SUCCESS','deepClone','assignAColorForMemberID','_heartbeatTimer','executeCommand','subscribeEvent','UNIVER_DOC','_clearOtherTimers','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','children','MessageType','params','_config','UniverInstanceType','_initEntityListener','FormulaExecuteStageType','CollaborationDataLoaderController','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','_clearPolling','text','unitId','range','_initCommandInterceptor','unhandledrejection','_initStatusComponent','body','_collabCursorState$','throttleTime','translate(.97)','collabStatus.fetchMiss','m2Prime','_draw','onCommandExecuted','_getAnchorBounding','getTypeOfUnitDisposed$','getLocalCacheKey','ENTITLE_NEED_BILLING_ADDRESS','_collaborationController','UNIVER_SHEET','Success','idSuffix','addHandlerCallback','UniverCollaborationClientPlugin','_shapes','_initWindowErrorListener','_hover','font','collabStatus.conflict','_applyCommand','getVpScrollXYInfoByPosToVp','DATA_SOURCE_TOO_LARGE','_notificationService','collaboration-client-ui.config','startFormulaLimitUrl','FETCH_MISS','2920016UAWuBw','199236qMTgYf','ENTITLE_INSUFFICIENT_QUOTA','_handleLeaveEvent','_getSessionTicket','stageInfo','off-line-icon_clip0_910_343','Warning','INVITE_CODE_REQUIRED','UNRECOGNIZED','get','unit','_saveTaskMap','_lastResponseTimestamp','_transformPreviousActiveRange','application/json','url(#$1','event$','_docStateChangeManagerService','_hideTimer','getRangePointData','getCollabEntity$','currentUsage','REDEMPTION_USER_NOT_ELIGIBLE','switchMap','shareReplay','_selfUnitIDs','YUUMI_SUBSCRIPTION_NOT_FOUND','fillText','_dataLoaderService','isFormulaString','height','IConfigService','ILocalStorageService','APPLY_NON_SEQUENTIAL_REVISION','symbol','find','_docTransformSelectionsService','_cursorShapes','Optional','sessionStatus$','debounce','transformMutationsWithChangeset','_drawRectRange','YUUMI_UNABLE_LOAD_URL','collab-text-anchor-','permission.content','stringify','type','SheetsSelectionsService','_scheduleClearOtherTimer','toDisposable','OFFLINE','Error','M0\x200H16V16H0z','transformMutation','combineLatest','_pollingInterval','mergeOverrideWithDependencies','clearTimeout','ENTITLE_INVALID_COUPON_CODE','_univerInstanceService','_entities','width','loadOfflineData','socket$','cursorInfo$','limitInfo','SheetCollabCursorShape','purple.300','_handleEvent','_syncEditingCollabCursorService','YUUMI_ASYNCIO_CANCELLED','_online','PAYMENT_CHANNEL_NOT_SUPPORT','totalFormulasToCalculate','[Unhandled\x20Rejection]:\x20','UNDEFINED','RxDisposable','getSheetObject','textRanges','CollaborationSocketService','storage','ENTITLE_DUP_SUBSCRIPTION','drawWith','_createSocketURL','USER_IS_ANONYMOUS','colorChannel1','green.600','arc','key','lineno','replace','LICENSE_DISTRO_REJECTED','EMAIL_VERIFY_CODE_MISMATCH','_anchor','_name','push','_handleHeartbeatEvent','bind','trim','_getMergeRange','NO_OTHER_CLIENTS_EDITING','tag','dispose','releaseFormulaLimitUrl','delete','with','fromEvent','UnitStatus','YUUMI_AI_RUN_FAILED','unshift','redoState','fromEventSubject','OTHER_CLIENT_EDITING','size','IUniverInstanceService','collaboration.closeRoom','_updateLocalCursor','DocIMEInputManagerService','next','urlChange$','_currentUsage','now','setActiveRange','startColumn','CollaborationEvent','_instanceService','YUUMI_NO_CUBOID_FOR_QUESTION','_commandService','getConfig','code','map','takeUntil','getSheetId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','location','_transformUndoRedoStack','ThemeService','setAlpha','1301313ezTmsd','10jrSqOL','USERS_LEAVE','dispose$','getFocusedUnit','YUUMI_ALL_TABLES_IS_INVALID','/universer-api/license/formula/limit/start','svg','_session','SOCKET_FAILED_RETRY','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','some','fillStyle','collabStatus.synced','_docTransformIMECacheService','stack','fillRule','DOC_RANGE_TYPE','collabStatus.offline','_revisionService','collab-rect-range-','max','WebBrowserSingleActiveUnitService','isTransformMutationsWithChangesetSuccess','1017443qYLTFM','CollaborationStatus','getCurrentUnitForType','saveImage','getCoordByCell','_getSaveTimeout','_render','string','top','onMouseMove','collaboration.offline-data-not-saved','color','getUnitId','cursorInfo','_getScale','shift','displayName','PERMISSION_DENIED','REDEMPTION_CODE_INACTIVE','LocaleService','m1Prime','CommandType','LICENSE_MAX_UNITS_EXCEEDED','_setupSubUnitSync','show','_document','UniverCollaborationClientUIPlugin','onStarting','createElement','lineTo','xlink:href','focused$','enableFrontendLog','transformRemoteChangeset','_doCreateSocket','APPLY_DUPLICATED','startsWith','http://www.w3.org/2000/svg','_initStatusListener','getActiveSheet','getRenderById','CollaborationSessionService','from','_handleJoinEvent','_scheduleHeartbeat','collaboration.single-unit.warning','filter','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_collabSessionService','serializeRangeWithSheet','ENTITLE_USE_COUPON_NOT_1ST_TRADE','Tools','selection','_urlService','touchDependencies','IRemoteInstanceService','_colorAssignService','LOGIN_FAILED','[LogService\x20Error]:\x20','EMAIL_HAS_BEEN_BOUND','/universer-api/frontend/logs','Unknown\x20user','getMergeData','_unitOnClients','on-line-icon_clip0_910_349','isTransformMutationFailure','_registerDependencies','SOCKET_FAILED','ENTITLE_CHAT_LIMIT_EXCEED','Subject','isArray','none','_collabCursorController','ranges','selections','getRelativeToViewportCoord','CollaborationController','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Rect','DocSelectionManagerService','IURLService','_httpService','\x20at\x20','beforeCommandExecuted','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_status$','removeEventListener','ILocalCacheService','Inject','getAncestorScale','_toggleOnline','YUUMI_CONNECTOR_URL_NOT_FOUND','add','getDocRanges','getUnhiddenWorksheets','LOGIN_TOKEN_PROCESSING_FAILED','history','USER_NOT_FOUND','INVITE_CODE_ALREADY_BOUND','registerRefRange','status$','off-line-icon','IDocClipboardService','_uploadLog','_startCalculationLimit','collab-text-range-','APPLY_REVISION_CONFILICT','UPDATE_CURSOR','_assignedColors','SNAPSHOT_INVALID_SNAPSHOT','CLOSE_ROOM','_docClipboardService','_cursor','saveTaskMap','_collaborationUIEventService','_colorIndex','activeSheet$','searchParams','forwardRef','handleInsertRangeMoveDown','href','handleInsertRangeMoveRight','join','formula.calculation.unable','labelPosition','_removeCollabCursors','getItem','ITransformService','CollaborationUIEventId'];_0x2c56=function(){return _0x26ae5b;};return _0x2c56();}Object[_0x15b5c6(0x443)](exports,Symbol['toStringTag'],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x29a45c,..._0x413b1b}){const _0x1483d2=_0x15b5c6,{icon:_0x39b288,id:_0xe703b0,className:_0x371fa2,extend:_0x109b4e,..._0x42c9f7}=_0x413b1b,_0x903ccc=('univerjs-icon\x20univerjs-icon-'+_0xe703b0+'\x20'+(_0x371fa2||''))[_0x1483d2(0x323)](),_0x1e6246=A[_0x1483d2(0x1ee)]('_'+Qe());return $e(_0x39b288,''+_0xe703b0,{'defIds':_0x39b288['defIds'],'idSuffix':_0x1e6246[_0x1483d2(0x243)]},{'ref':_0x29a45c,'className':_0x903ccc,..._0x42c9f7},_0x109b4e);}function $e(_0x31ae1d,_0x5631d1,_0x1f68ce,_0x4b0dd6,_0x4af934){const _0xbbd233=_0x15b5c6;return A[_0xbbd233(0x37f)](_0x31ae1d['tag'],{'key':_0x5631d1,...Je(_0x31ae1d,_0x1f68ce,_0x4af934),..._0x4b0dd6},(Ze(_0x31ae1d,_0x1f68ce)[_0xbbd233(0x291)]||[])[_0xbbd233(0x343)]((_0x3683ec,_0x246347)=>$e(_0x3683ec,_0x5631d1+'-'+_0x31ae1d[_0xbbd233(0x326)]+'-'+_0x246347,_0x1f68ce,void 0x0,_0x4af934)));}function Je(_0x1d7e87,_0x123b08,_0x3f12c3){const _0x512af1=_0x15b5c6,_0x1a6a15={..._0x1d7e87['attrs']};_0x3f12c3!=null&&_0x3f12c3[_0x512af1(0x316)]&&_0x1a6a15['fill']==='colorChannel1'&&(_0x1a6a15[_0x512af1(0x1cd)]=_0x3f12c3['colorChannel1']),_0x1d7e87[_0x512af1(0x326)]===_0x512af1(0x1bb)&&_0x1a6a15['id']&&(_0x1a6a15['id']=_0x1a6a15['id']+_0x123b08['idSuffix']),Object[_0x512af1(0x1f4)](_0x1a6a15)[_0x512af1(0x449)](([_0x1ec492,_0x1ff426])=>{const _0x445416=_0x512af1;_0x1ec492===_0x445416(0x1bb)&&typeof _0x1ff426==_0x445416(0x36a)&&(_0x1a6a15[_0x1ec492]=_0x1ff426[_0x445416(0x31b)](/url\(#(.*)\)/,_0x445416(0x2cf)+_0x123b08['idSuffix']+')'));});const {defIds:_0x4e5b5b}=_0x123b08;return!_0x4e5b5b||_0x4e5b5b[_0x512af1(0x45c)]===0x0||(_0x1d7e87[_0x512af1(0x326)]===_0x512af1(0x42f)&&_0x1a6a15[_0x512af1(0x381)]&&(_0x1a6a15['xlink:href']=_0x1a6a15[_0x512af1(0x381)]+_0x123b08['idSuffix']),Object[_0x512af1(0x1f4)](_0x1a6a15)['forEach'](([_0x290815,_0x3e4e43])=>{typeof _0x3e4e43=='string'&&(_0x1a6a15[_0x290815]=_0x3e4e43['replace'](/url\(#(.*)\)/,'url(#$1'+_0x123b08['idSuffix']+')'));})),_0x1a6a15;}function Ze(_0x242c7c,_0x4fc55a){const _0x3cac89=_0x15b5c6;var _0x530b75;const {defIds:_0x10a597}=_0x4fc55a;return!_0x10a597||_0x10a597[_0x3cac89(0x45c)]===0x0?_0x242c7c:_0x242c7c[_0x3cac89(0x326)]===_0x3cac89(0x3fe)&&((_0x530b75=_0x242c7c[_0x3cac89(0x291)])!=null&&_0x530b75[_0x3cac89(0x45c)])?{..._0x242c7c,'children':_0x242c7c[_0x3cac89(0x291)][_0x3cac89(0x343)](_0x2af1fc=>typeof _0x2af1fc[_0x3cac89(0x442)]['id']==_0x3cac89(0x36a)&&_0x10a597&&_0x10a597[_0x3cac89(0x1d2)](_0x2af1fc[_0x3cac89(0x442)]['id'])?{..._0x2af1fc,'attrs':{..._0x2af1fc[_0x3cac89(0x442)],'id':_0x2af1fc['attrs']['id']+_0x4fc55a[_0x3cac89(0x2b0)]}}:_0x2af1fc)}:_0x242c7c;}function Qe(){const _0x43d053=_0x15b5c6;return Math[_0x43d053(0x27a)]()[_0x43d053(0x27d)](0x24)['substring'](0x2,0x8);}pe['displayName']=_0x15b5c6(0x235);const et={'tag':_0x15b5c6(0x352),'attrs':{'xmlns':_0x15b5c6(0x388),'fill':_0x15b5c6(0x3aa),'viewBox':'0\x200\x2016\x2016','width':_0x15b5c6(0x1b8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x15b5c6(0x19a),'attrs':{'stroke':'currentColor','d':_0x15b5c6(0x299),'strokeLinecap':_0x15b5c6(0x1e2),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x15b5c6(0x3fe),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x15b5c6(0x2c5)},'children':[{'tag':_0x15b5c6(0x19a),'attrs':{'fill':_0x15b5c6(0x1f6),'d':_0x15b5c6(0x2f5)}}]}]}],'defIds':[_0x15b5c6(0x2c5)]},xe=A[_0x15b5c6(0x3d9)](function(_0x4b5a14,_0x5a8b63){const _0x1d733e=_0x15b5c6;return A['createElement'](pe,Object[_0x1d733e(0x421)]({},_0x4b5a14,{'id':_0x1d733e(0x3c8),'ref':_0x5a8b63,'icon':et}));});xe[_0x15b5c6(0x373)]='OffLineIcon';const tt={'tag':'svg','attrs':{'xmlns':_0x15b5c6(0x388),'fill':_0x15b5c6(0x3aa),'viewBox':_0x15b5c6(0x1d7),'width':_0x15b5c6(0x1b8),'height':_0x15b5c6(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x15b5c6(0x429),'d':_0x15b5c6(0x274),'strokeLinecap':_0x15b5c6(0x1e2),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x15b5c6(0x3fe),'attrs':{},'children':[{'tag':_0x15b5c6(0x25d),'attrs':{'id':_0x15b5c6(0x3a3)},'children':[{'tag':'path','attrs':{'fill':_0x15b5c6(0x1f6),'d':_0x15b5c6(0x2f5),'transform':_0x15b5c6(0x2a4)}}]}]}],'defIds':[_0x15b5c6(0x3a3)]},Be=A[_0x15b5c6(0x3d9)](function(_0x499a61,_0x248937){const _0xea2fb3=_0x15b5c6;return A[_0xea2fb3(0x37f)](pe,Object[_0xea2fb3(0x421)]({},_0x499a61,{'id':'on-line-icon','ref':_0x248937,'icon':tt}));});Be[_0x15b5c6(0x373)]='OnLineIcon';function st(_0x153167){const _0x3862d7=_0x15b5c6;switch(_0x153167){case u[_0x3862d7(0x364)][_0x3862d7(0x2f3)]:return _0x3862d7(0x35d);case u[_0x3862d7(0x364)][_0x3862d7(0x271)]:return _0x3862d7(0x2b7);case u['CollaborationStatus'][_0x3862d7(0x2be)]:return _0x3862d7(0x2a5);case u['CollaborationStatus']['NOT_COLLAB']:return _0x3862d7(0x250);case u[_0x3862d7(0x364)]['AWAITING']:case u['CollaborationStatus'][_0x3862d7(0x410)]:return'collabStatus.syncing';case u[_0x3862d7(0x364)][_0x3862d7(0x1aa)]:case u[_0x3862d7(0x364)][_0x3862d7(0x1e5)]:return _0x3862d7(0x358);}}function it(_0x39cfca){const _0x58d760=_0x15b5c6,{status$:_0x3ae539}=_0x39cfca,_0x27e36f=O[_0x58d760(0x1c1)](_0x3ae539,u[_0x58d760(0x364)][_0x58d760(0x437)]),_0x262cb6=O[_0x58d760(0x43a)](a[_0x58d760(0x376)]),_0x2f9efe=O['useDependency'](u[_0x58d760(0x38c)]),_0x540ee0=_0x27e36f!==u[_0x58d760(0x364)]['OFFLINE'],_0x1570ba=_0x262cb6['t'](st(_0x27e36f)),_0x146f0f=_0x540ee0?M[_0x58d760(0x44a)](Be,{}):M[_0x58d760(0x44a)](xe,{}),_0x888d48=A[_0x58d760(0x3ef)](()=>{_0x540ee0||_0x2f9efe['reconnect']();},[_0x540ee0,_0x2f9efe]);function _0x414690(){const _0x4d059d=_0x58d760;return M[_0x4d059d(0x1b3)](_0x4d059d(0x23b),{'className':_0x4d059d(0x43f),'onClick':_0x888d48,'children':[M['jsx'](_0x4d059d(0x23b),{'className':p[_0x4d059d(0x1f7)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x540ee0,'univer-text-red-500':!_0x540ee0}),'children':_0x146f0f}),M[_0x4d059d(0x44a)](_0x4d059d(0x23b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1570ba})]});}return _0x540ee0?_0x414690():M[_0x58d760(0x44a)](p[_0x58d760(0x1b7)],{'title':_0x262cb6['t']('collab-client.tooltip.reconnect'),'children':_0x414690()});}var nt=Object[_0x15b5c6(0x43d)],rt=(_0x4e86e6,_0x371205,_0x2fcbd6,_0x32daad)=>{const _0x2ad883=_0x15b5c6;for(var _0x3371dd=_0x32daad>0x1?void 0x0:_0x32daad?nt(_0x371205,_0x2fcbd6):_0x371205,_0x58969d=_0x4e86e6[_0x2ad883(0x45c)]-0x1,_0x39659a;_0x58969d>=0x0;_0x58969d--)(_0x39659a=_0x4e86e6[_0x58969d])&&(_0x3371dd=_0x39659a(_0x3371dd)||_0x3371dd);return _0x3371dd;},K=(_0x3fac2e,_0x1d4f24)=>(_0x634f23,_0x3d286d)=>_0x1d4f24(_0x634f23,_0x3d286d,_0x3fac2e);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x15b5c6(0x44e)]{constructor(_0x4badaa,_0x456e24,_0x4a5e5f,_0x17648c){const _0x7de1f8=_0x15b5c6;super(),_(this,_0x7de1f8(0x3b8),new I[(_0x7de1f8(0x433))](u[_0x7de1f8(0x364)][_0x7de1f8(0x437)])),(this[_0x7de1f8(0x2fc)]=_0x4badaa,this[_0x7de1f8(0x201)]=_0x456e24,this[_0x7de1f8(0x2ad)]=_0x4a5e5f,this[_0x7de1f8(0x209)]=_0x17648c,this['_initStatusComponent'](),this[_0x7de1f8(0x389)]());}[_0x15b5c6(0x389)](){const _0x4bbf05=_0x15b5c6;this['disposeWithMe'](this['_univerInstanceService'][_0x4bbf05(0x382)][_0x4bbf05(0x24a)](I[_0x4bbf05(0x2d7)](()=>{const _0x144f5b=_0x4bbf05,_0x53c13e=this[_0x144f5b(0x2fc)][_0x144f5b(0x34f)]();return _0x53c13e?this[_0x144f5b(0x2ad)][_0x144f5b(0x2d4)](_0x53c13e[_0x144f5b(0x36f)]()):I['of'](null);}),I['switchMap'](_0x53492a=>_0x53492a?_0x53492a[_0x4bbf05(0x3c7)]:I['of'](u[_0x4bbf05(0x364)][_0x4bbf05(0x437)])))[_0x4bbf05(0x3fc)](_0x5ee996=>{const _0x26586e=_0x4bbf05;this[_0x26586e(0x3b8)]['next'](_0x5ee996);}));}[_0x15b5c6(0x2a0)](){const _0x25db2f=_0x15b5c6;this[_0x25db2f(0x425)](this[_0x25db2f(0x209)]['registerComponent'](O['BuiltInUIPart']['HEADER_MENU'],()=>O['connectInjector'](ot({'status$':this['_status$'][_0x25db2f(0x432)]()}),this['_injector'])));}},exports[_0x15b5c6(0x20c)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a[_0x15b5c6(0x1c8)])),K(0x2,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x3af)])),K(0x3,O[_0x15b5c6(0x208)])],exports[_0x15b5c6(0x20c)]);function ot(_0x18927d){const {status$:_0x3eb1cc}=_0x18927d;return function(){const _0x2dff4f=_0x31d6;return M[_0x2dff4f(0x44a)](it,{'status$':_0x3eb1cc});};}const Oe=a['createIdentifier'](_0x15b5c6(0x217));var at=Object[_0x15b5c6(0x43d)],ct=(_0x220b8b,_0x3b3fc6,_0x38b0ce,_0x57c6f3)=>{const _0x1ea34e=_0x15b5c6;for(var _0x3b43cf=_0x57c6f3>0x1?void 0x0:_0x57c6f3?at(_0x3b3fc6,_0x38b0ce):_0x3b3fc6,_0x416fa5=_0x220b8b[_0x1ea34e(0x45c)]-0x1,_0x12d188;_0x416fa5>=0x0;_0x416fa5--)(_0x12d188=_0x220b8b[_0x416fa5])&&(_0x3b43cf=_0x12d188(_0x3b43cf)||_0x3b43cf);return _0x3b43cf;},Y=(_0x4cbbcc,_0x16ae75)=>(_0x196bf8,_0x2920bb)=>_0x16ae75(_0x196bf8,_0x2920bb,_0x4cbbcc);exports['CollaborationDataLoaderController']=class extends a[_0x15b5c6(0x30d)]{constructor(_0x17d532,_0x321697,_0x4409fd,_0x1d58b2,_0x4e6d4c){const _0x496d78=_0x15b5c6;super(),this['_urlService']=_0x17d532,this['_logService']=_0x321697,this[_0x496d78(0x340)]=_0x4409fd,this[_0x496d78(0x2dc)]=_0x1d58b2,_0x4e6d4c?_0x4e6d4c==null||_0x4e6d4c['whenReady']()[_0x496d78(0x19e)](()=>this[_0x496d78(0x462)]()):(this[_0x496d78(0x1d5)][_0x496d78(0x266)](_0x496d78(0x412),_0x496d78(0x21c)),this[_0x496d78(0x462)]());}async[_0x15b5c6(0x462)](){const _0x2d4ec9=_0x15b5c6,_0x1ed6ed=this['_urlService'][_0x2d4ec9(0x40c)](_0x2d4ec9(0x2ca)),_0x44f7f5=this[_0x2d4ec9(0x398)][_0x2d4ec9(0x40c)](_0x2d4ec9(0x2ef)),_0x293ef4=this[_0x2d4ec9(0x398)]['getParam'](_0x2d4ec9(0x21b));if(!_0x1ed6ed||!_0x44f7f5){this[_0x2d4ec9(0x1d5)][_0x2d4ec9(0x266)]('[CollaborationDataLoaderController]',_0x2d4ec9(0x41e));return;}const _0x537c46=await this[_0x2d4ec9(0x2dc)][_0x2d4ec9(0x42b)](_0x1ed6ed,Number(_0x44f7f5),_0x293ef4);_0x537c46&&_0x537c46 instanceof a[_0x2d4ec9(0x40f)]&&this['_setupSubUnitSync'](_0x537c46);}async[_0x15b5c6(0x37a)](_0x2a71c2){const _0x14fa6e=_0x15b5c6;await this[_0x14fa6e(0x26f)](_0x2a71c2),_0x2a71c2[_0x14fa6e(0x3d7)][_0x14fa6e(0x24a)](I['takeUntil'](this[_0x14fa6e(0x34e)]))[_0x14fa6e(0x3fc)](_0x113eaa=>{const _0x983af8=_0x14fa6e;_0x113eaa&&this[_0x983af8(0x3f9)](_0x113eaa);}),this[_0x14fa6e(0x398)]['urlChange$']['pipe'](I['takeUntil'](this[_0x14fa6e(0x34e)]))[_0x14fa6e(0x3fc)](()=>this[_0x14fa6e(0x26f)](_0x2a71c2));}[_0x15b5c6(0x3f9)](_0x3a95ae,_0x258f50=!0x1){const _0x589f69=_0x15b5c6,_0x21e38c=this['_urlService'][_0x589f69(0x40c)](_0x589f69(0x21b));_0x3a95ae[_0x589f69(0x345)]()!==_0x21e38c&&this['_urlService']['setParam'](_0x589f69(0x21b),_0x3a95ae[_0x589f69(0x345)](),_0x258f50);}async['_updateSubUnitFromURLParams'](_0x41ec4b){const _0x2b7670=_0x15b5c6;var _0x57f93f;const _0x9b485c=this['_urlService'][_0x2b7670(0x40c)](_0x2b7670(0x21b));if(!_0x9b485c||!_0x41ec4b['getSheetBySheetId'](_0x9b485c)){const _0x2c4cfd=_0x41ec4b[_0x2b7670(0x3c1)]()[0x0],_0x18765b=_0x41ec4b[_0x2b7670(0x3fa)](_0x2c4cfd);if(!_0x18765b)return;this[_0x2b7670(0x3f9)](_0x18765b,!0x0),await this[_0x2b7670(0x340)][_0x2b7670(0x28c)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x41ec4b[_0x2b7670(0x36f)](),'subUnitId':_0x2c4cfd});return;}((_0x57f93f=_0x41ec4b[_0x2b7670(0x38a)]())==null?void 0x0:_0x57f93f[_0x2b7670(0x345)]())!==_0x9b485c&&await this[_0x2b7670(0x340)][_0x2b7670(0x28c)](v[_0x2b7670(0x25f)]['id'],{'unitId':_0x41ec4b[_0x2b7670(0x36f)](),'subUnitId':_0x9b485c});}},exports[_0x15b5c6(0x298)]=ct([Y(0x0,Oe),Y(0x1,a[_0x15b5c6(0x434)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x198)])),Y(0x4,a[_0x15b5c6(0x2e6)](qe[_0x15b5c6(0x39a)]))],exports[_0x15b5c6(0x298)]);var lt=Object[_0x15b5c6(0x43d)],_t=(_0x1d3a6d,_0x12592e,_0x426c50,_0x56f606)=>{const _0x5dd811=_0x15b5c6;for(var _0x5aec8b=_0x56f606>0x1?void 0x0:_0x56f606?lt(_0x12592e,_0x426c50):_0x12592e,_0x111f83=_0x1d3a6d[_0x5dd811(0x45c)]-0x1,_0x406509;_0x111f83>=0x0;_0x111f83--)(_0x406509=_0x1d3a6d[_0x111f83])&&(_0x5aec8b=_0x406509(_0x5aec8b)||_0x5aec8b);return _0x5aec8b;},De=(_0x49fb38,_0x2bd745)=>(_0x141bd7,_0x480d9a)=>_0x2bd745(_0x141bd7,_0x480d9a,_0x49fb38);let me=class extends a['RxDisposable']{constructor(_0xf6a411,_0x362c7c){const _0x12df5c=_0x15b5c6;super(),this[_0x12df5c(0x3d2)]=_0xf6a411,this['_imageIoService']=_0x362c7c,this[_0x12df5c(0x462)]();}['_init'](){const _0x172b19=_0x15b5c6,_0x3cf2e4=this;this['disposeWithMe'](this[_0x172b19(0x3d2)][_0x172b19(0x40b)]({'onBeforePasteImage':async _0x505bd4=>{const _0x751a17=_0x172b19,_0x5f0277=await _0x3cf2e4[_0x751a17(0x1ab)][_0x751a17(0x366)](_0x505bd4);return _0x5f0277?{'source':_0x5f0277[_0x751a17(0x281)],'imageSourceType':_0x5f0277[_0x751a17(0x45f)]}:null;}}));}};me=_t([De(0x0,T[_0x15b5c6(0x3c9)]),De(0x1,ze[_0x15b5c6(0x419)])],me);const Ne=[_0x15b5c6(0x304),_0x15b5c6(0x1be),_0x15b5c6(0x317),_0x15b5c6(0x3ee),_0x15b5c6(0x219),'yellow.400'];class Re extends a['Disposable']{constructor(){const _0x8f5ae0=_0x15b5c6;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x8f5ae0(0x3d6),0x0);}[_0x15b5c6(0x28a)](_0x21000e){const _0x16376e=_0x15b5c6;if(this['_assignedColors'][_0x16376e(0x1de)](_0x21000e))return this[_0x16376e(0x3cf)][_0x16376e(0x2c9)](_0x21000e);const _0x42f451=Ne[this['_colorIndex']];return this[_0x16376e(0x3d6)]=(this[_0x16376e(0x3d6)]+0x1)%Ne[_0x16376e(0x45c)],this[_0x16376e(0x3cf)][_0x16376e(0x196)](_0x21000e,_0x42f451),_0x42f451;}}function Fe(_0x148472){let _0xef8e43='';for(const _0x386a65 of _0x148472){const {startOffset:_0x545688,endOffset:_0x2d704c,isActive:_0x375a9e,rangeType:_0x16a7d1,segmentId:_0x58b03b,segmentPage:_0x587939}=_0x386a65;_0xef8e43['length']&&(_0xef8e43+=','),_0xef8e43+=_0x545688+':'+_0x2d704c+':'+(_0x375a9e?'1':'0')+':'+_0x16a7d1+':'+_0x58b03b+':'+_0x587939;}return _0xef8e43;}function ht(_0x3de447){const _0x8ee5c5=_0x15b5c6,_0x213ddb=_0x3de447['split'](','),_0x51fe30=[];for(const _0x8c77f0 of _0x213ddb){const [_0x398067,_0xd57744,_0x219f6c,_0x53cdbf,_0x25f064,_0x28e34c]=_0x8c77f0[_0x8ee5c5(0x1df)](':');_0x51fe30[_0x8ee5c5(0x320)]({'startOffset':Number(_0x398067),'endOffset':Number(_0xd57744),'collapsed':_0x398067===_0xd57744,'isActive':_0x219f6c==='1','rangeType':_0x53cdbf===a[_0x8ee5c5(0x35c)][_0x8ee5c5(0x1f8)]?a[_0x8ee5c5(0x35c)][_0x8ee5c5(0x1f8)]:a[_0x8ee5c5(0x35c)][_0x8ee5c5(0x20a)],'segmentId':typeof _0x25f064==_0x8ee5c5(0x36a)?String(_0x25f064):'','segmentPage':Number(_0x28e34c!=null?_0x28e34c:-0x1)});}return _0x51fe30[_0x8ee5c5(0x356)](_0x429df2=>_0x429df2[_0x8ee5c5(0x461)])||(_0x51fe30[0x0]['isActive']=!0x0),_0x51fe30;}class be extends a[_0x15b5c6(0x30d)]{constructor(){const _0x25eee7=_0x15b5c6;super(...arguments),_(this,_0x25eee7(0x2a2),new I[(_0x25eee7(0x433))](null)),_(this,_0x25eee7(0x238),this[_0x25eee7(0x2a2)][_0x25eee7(0x432)]());}[_0x15b5c6(0x1b4)](_0x4ce908){const _0x1a7a00=_0x15b5c6,{unitID:_0x4bda4a,memberID:_0x5b047d,textRanges:_0x34c864}=_0x4ce908,_0x520538=Fe(_0x34c864);if(_0x520538==='')return;const _0x4fa53a={'unitID':_0x4bda4a,'memberID':_0x5b047d,'selection':_0x520538};this['_collabCursorState$'][_0x1a7a00(0x337)](_0x4fa53a);}}var ut=Object[_0x15b5c6(0x43d)],It=(_0x3d587d,_0x2f6a2c,_0x1dd5aa,_0x2cbe76)=>{const _0x5572f3=_0x15b5c6;for(var _0x117ef5=_0x2cbe76>0x1?void 0x0:_0x2cbe76?ut(_0x2f6a2c,_0x1dd5aa):_0x2f6a2c,_0xe59b12=_0x3d587d[_0x5572f3(0x45c)]-0x1,_0x47e69b;_0xe59b12>=0x0;_0xe59b12--)(_0x47e69b=_0x3d587d[_0xe59b12])&&(_0x117ef5=_0x47e69b(_0x117ef5)||_0x117ef5);return _0x117ef5;},U=(_0x526e78,_0x1c2b9a)=>(_0x39cd1e,_0x2b8b39)=>_0x1c2b9a(_0x39cd1e,_0x2b8b39,_0x526e78);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x37f403,_0x8a2dd0,_0x270710,_0x39a7bf,_0x2c61f1,_0xf107ee,_0x3d2ede,_0x1d3d39,_0xf4eae1){const _0x3bf391=_0x15b5c6;super(),_(this,_0x3bf391(0x308),!0x1),_(this,_0x3bf391(0x462),!0x1),_(this,'_cursorInfo$',new I[(_0x3bf391(0x433))](new Map())),_(this,_0x3bf391(0x301),this['_cursorInfo$'][_0x3bf391(0x432)]()),_(this,_0x3bf391(0x23f),new I[(_0x3bf391(0x433))]([])),_(this,_0x3bf391(0x1dc),this[_0x3bf391(0x23f)][_0x3bf391(0x24a)](I[_0x3bf391(0x454)](St))),_(this,_0x3bf391(0x335),a[_0x3bf391(0x2e8)](_0x4090d1=>{const _0x5a4614=_0x3bf391,_0x5b0384={'eventID':g[_0x5a4614(0x33d)][_0x5a4614(0x3ce)],'data':{'unitID':this[_0x5a4614(0x1d4)],'memberID':this[_0x5a4614(0x353)][_0x5a4614(0x1ca)](),'selection':Fe(_0x4090d1)}};this['_session']['send'](_0x5b0384,this[_0x5a4614(0x1d4)]);},dt)),(this[_0x3bf391(0x1d4)]=_0x37f403,this[_0x3bf391(0x353)]=_0x8a2dd0,this[_0x3bf391(0x201)]=_0x270710,this[_0x3bf391(0x39b)]=_0x39a7bf,this[_0x3bf391(0x450)]=_0x2c61f1,this[_0x3bf391(0x306)]=_0xf107ee,this['_transformService']=_0x3d2ede,this[_0x3bf391(0x2fc)]=_0x1d3d39,this[_0x3bf391(0x340)]=_0xf4eae1);}get[_0x15b5c6(0x370)](){return this['_cursorInfo$']['getValue']();}get[_0x15b5c6(0x1b5)](){const _0x273b73=_0x15b5c6;return this['_roomMembers$'][_0x273b73(0x441)]();}[_0x15b5c6(0x327)](){const _0x186f58=_0x15b5c6;super[_0x186f58(0x327)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x186f58(0x1c5)](),this[_0x186f58(0x23f)][_0x186f58(0x337)]([]),this[_0x186f58(0x23f)][_0x186f58(0x1c5)]();}[_0x15b5c6(0x418)](){const _0x516d2f=_0x15b5c6;this[_0x516d2f(0x462)]||(this[_0x516d2f(0x462)]=!0x0,this[_0x516d2f(0x353)][_0x516d2f(0x2e7)][_0x516d2f(0x24a)](I[_0x516d2f(0x344)](this[_0x516d2f(0x34e)]))['subscribe'](_0x22b838=>{const _0x15f22f=_0x516d2f;_0x22b838===u[_0x15f22f(0x236)][_0x15f22f(0x287)]?this[_0x15f22f(0x3bd)]():this[_0x15f22f(0x255)]();}),this['_session'][_0x516d2f(0x2d0)][_0x516d2f(0x24a)](I[_0x516d2f(0x344)](this['dispose$']))[_0x516d2f(0x3fc)](_0x155aac=>{const _0x1558de=_0x516d2f,_0x355454=_0x155aac['eventID'];_0x355454===g[_0x1558de(0x33d)][_0x1558de(0x3ce)]&&this['_onCursorUpdate'](_0x155aac),_0x355454===g[_0x1558de(0x33d)][_0x1558de(0x34d)]&&this[_0x1558de(0x413)](_0x155aac);}),this[_0x516d2f(0x425)](this['_commandService'][_0x516d2f(0x2a8)](_0x48a70f=>{const _0xdc5abe=_0x516d2f,_0x436943=_0x48a70f[_0xdc5abe(0x293)];_0x436943!=null&&this[_0xdc5abe(0x308)]&&_0x48a70f['id']===V[_0xdc5abe(0x283)]['id']&&_0x436943['unitId']===this[_0xdc5abe(0x1d4)]&&_0x436943[_0xdc5abe(0x261)]===!0x1&&_0x436943[_0xdc5abe(0x3ac)][_0xdc5abe(0x45c)]>0x0&&this['_updateLocalCursor'](_0x436943['ranges']);})),this[_0x516d2f(0x306)][_0x516d2f(0x238)][_0x516d2f(0x24a)](I[_0x516d2f(0x344)](this['dispose$']))[_0x516d2f(0x3fc)](_0x4f6f32=>{const _0x6e0b53=_0x516d2f;if((_0x4f6f32==null?void 0x0:_0x4f6f32[_0x6e0b53(0x1d4)])!==this['unitID'])return;const _0xf95a71={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4f6f32};this[_0x6e0b53(0x440)](_0xf95a71);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x4b5d2c=>{const _0x1c81c2=_0x516d2f;if(_0x4b5d2c[_0x1c81c2(0x293)]==null)return;const _0x1f97f1=_0x4b5d2c[_0x1c81c2(0x293)];if(_0x4b5d2c['id']!==V['RichTextEditingMutation']['id']||_0x1f97f1[_0x1c81c2(0x29c)]!==this[_0x1c81c2(0x1d4)])return;const _0x4bdd73={'id':'doc.mutation.rich-text-editing','params':_0x1f97f1},_0x3614d5=this[_0x1c81c2(0x370)];for(const [_0x22836c,_0x53b247]of _0x3614d5){const _0x332685={'id':_0x1c81c2(0x240),'params':{'unitId':this[_0x1c81c2(0x1d4)],'actions':null,'textRanges':_0x53b247[_0x1c81c2(0x3ac)]}},_0x29bed4=this[_0x1c81c2(0x1ea)][_0x1c81c2(0x2f6)](_0x4bdd73,_0x332685,!0x1);if(g[_0x1c81c2(0x3a4)](_0x29bed4))throw _0x29bed4[_0x1c81c2(0x3f3)];_0x3614d5[_0x1c81c2(0x196)](_0x22836c,{..._0x53b247,'ranges':_0x29bed4['m2Prime'][_0x1c81c2(0x293)][_0x1c81c2(0x30f)]});}queueMicrotask(()=>{const _0x2bac56=_0x1c81c2;this[_0x2bac56(0x26b)][_0x2bac56(0x337)](_0x3614d5);});})));}['_onCursorUpdate'](_0x5a9cf5){const _0x2f6d96=_0x15b5c6;var _0x3d886b,_0x108ad7;const {memberID:_0x487d9e,selection:_0x2191ac}=_0x5a9cf5['data'],_0x43d4f4=ht(_0x2191ac),_0x323684=(_0x108ad7=(_0x3d886b=this[_0x2f6d96(0x450)][_0x2f6d96(0x265)](this[_0x2f6d96(0x1d4)],_0x487d9e))==null?void 0x0:_0x3d886b[_0x2f6d96(0x400)])!=null?_0x108ad7:'Unknown\x20user',_0x47d3b7={'color':this[_0x2f6d96(0x39b)][_0x2f6d96(0x28a)](_0x487d9e),'name':_0x323684,'ranges':_0x43d4f4},_0x4f0de8=this['cursorInfo'];_0x4f0de8[_0x2f6d96(0x196)](_0x487d9e,_0x47d3b7),this[_0x2f6d96(0x26b)]['next'](_0x4f0de8);}[_0x15b5c6(0x413)](_0x4c168e){const _0x30fc9c=_0x15b5c6,{memberID:_0x556979}=_0x4c168e[_0x30fc9c(0x41d)],_0x5e6f9d=this['cursorInfo'];_0x5e6f9d[_0x30fc9c(0x329)](_0x556979),this[_0x30fc9c(0x26b)]['next'](_0x5e6f9d);}['_toggleOnline'](){const _0x15c4d9=_0x15b5c6;var _0x3147b3;if(this[_0x15c4d9(0x308)]=!0x0,((_0x3147b3=this[_0x15c4d9(0x2fc)]['getFocusedUnit']())==null?void 0x0:_0x3147b3[_0x15c4d9(0x36f)]())!==this['unitID'])return;const _0x2a68c8=this[_0x15c4d9(0x201)]['get'](V[_0x15c4d9(0x3b2)])['getDocRanges']();Array[_0x15c4d9(0x3a9)](_0x2a68c8)&&_0x2a68c8[_0x15c4d9(0x45c)]>0x0&&this[_0x15c4d9(0x335)](_0x2a68c8);}['_toggleOffline'](){const _0x390a3b=_0x15b5c6;this[_0x390a3b(0x308)]=!0x1;}};ve=It([U(0x2,a[_0x15b5c6(0x3bb)](a['Injector'])),U(0x3,a[_0x15b5c6(0x3bb)](Re)),U(0x4,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x200)])),U(0x5,a[_0x15b5c6(0x3bb)](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x15b5c6(0x333)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x15b5c6(0x43d)],mt=(_0x5c25ef,_0x3cf3e4,_0x56dbef,_0x2b1c28)=>{const _0x3155a7=_0x15b5c6;for(var _0x1101f8=_0x2b1c28>0x1?void 0x0:_0x2b1c28?ft(_0x3cf3e4,_0x56dbef):_0x3cf3e4,_0x21841f=_0x5c25ef[_0x3155a7(0x45c)]-0x1,_0x1f186a;_0x21841f>=0x0;_0x21841f--)(_0x1f186a=_0x5c25ef[_0x21841f])&&(_0x1101f8=_0x1f186a(_0x1101f8)||_0x1101f8);return _0x1101f8;},w=(_0x3180c0,_0x1a385b)=>(_0x392ac2,_0x384cf)=>_0x1a385b(_0x392ac2,_0x384cf,_0x3180c0);const vt=0x12c,gt=0x64,Et=()=>{let _0x164e6b=[],_0x583df8=!0x1;return _0x381c0b=>{_0x164e6b['push'](_0x381c0b),_0x583df8||(_0x583df8=!0x0,setTimeout(()=>{_0x164e6b['forEach'](_0x12df78=>_0x12df78()),_0x164e6b=[],_0x583df8=!0x1;}));};};let ge=class extends a[_0x15b5c6(0x30d)]{constructor(_0x2c8dd1,_0x38d2e5,_0x3acbd9,_0x181956,_0x9ad81e,_0x19b750,_0xbdb62f,_0x9bb0df){const _0x191e8d=_0x15b5c6;super(),_(this,_0x191e8d(0x308),!0x1),_(this,_0x191e8d(0x462),!0x1),_(this,_0x191e8d(0x26b),new I[(_0x191e8d(0x433))](new Map())),_(this,_0x191e8d(0x301),this[_0x191e8d(0x26b)][_0x191e8d(0x432)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,'roomMembers$',this[_0x191e8d(0x23f)][_0x191e8d(0x24a)](I[_0x191e8d(0x454)](vt))),_(this,_0x191e8d(0x335),a[_0x191e8d(0x2e8)]((_0x4dc75d,_0x77614)=>{const _0x41ce2b=_0x191e8d,_0x2244cd={'eventID':g[_0x41ce2b(0x33d)][_0x41ce2b(0x3ce)],'data':{'unitID':this[_0x41ce2b(0x1d4)],'memberID':this[_0x41ce2b(0x353)][_0x41ce2b(0x1ca)](),'selection':B[_0x41ce2b(0x394)](_0x4dc75d,_0x77614['range'])}};this['_session'][_0x41ce2b(0x22f)](_0x2244cd,this[_0x41ce2b(0x1d4)]);},gt)),(this[_0x191e8d(0x1d4)]=_0x2c8dd1,this['_session']=_0x38d2e5,this[_0x191e8d(0x201)]=_0x3acbd9,this[_0x191e8d(0x39b)]=_0x181956,this[_0x191e8d(0x450)]=_0x9ad81e,this[_0x191e8d(0x2fc)]=_0x19b750,this[_0x191e8d(0x340)]=_0xbdb62f,this['_refRangeService']=_0x9bb0df);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x15b5c6(0x1b5)](){const _0x3e0a0e=_0x15b5c6;return this[_0x3e0a0e(0x23f)][_0x3e0a0e(0x441)]();}['dispose'](){const _0x340d4d=_0x15b5c6;super[_0x340d4d(0x327)](),this[_0x340d4d(0x26b)]['next'](new Map()),this['_cursorInfo$'][_0x340d4d(0x1c5)](),this['_roomMembers$'][_0x340d4d(0x337)]([]),this[_0x340d4d(0x23f)][_0x340d4d(0x1c5)]();}[_0x15b5c6(0x418)](){const _0x3a8022=_0x15b5c6;this[_0x3a8022(0x462)]||(this[_0x3a8022(0x462)]=!0x0,this[_0x3a8022(0x353)][_0x3a8022(0x2e7)][_0x3a8022(0x24a)](I['takeUntil'](this[_0x3a8022(0x34e)]))[_0x3a8022(0x3fc)](_0x26b628=>{const _0x8c7752=_0x3a8022;_0x26b628===u[_0x8c7752(0x236)][_0x8c7752(0x287)]?this[_0x8c7752(0x3bd)]():this[_0x8c7752(0x255)]();}),this[_0x3a8022(0x353)][_0x3a8022(0x2d0)][_0x3a8022(0x24a)](I[_0x3a8022(0x344)](this[_0x3a8022(0x34e)]))['subscribe'](_0xd03d55=>{const _0x334c44=_0x3a8022,_0x559663=_0xd03d55[_0x334c44(0x26c)];_0x559663===g[_0x334c44(0x33d)][_0x334c44(0x3ce)]&&this[_0x334c44(0x440)](_0xd03d55),_0x559663===g['CollaborationEvent'][_0x334c44(0x34d)]&&this['_onCursorDelete'](_0xd03d55);}),this[_0x3a8022(0x3ec)](),this[_0x3a8022(0x425)](this[_0x3a8022(0x340)]['onCommandExecuted'](_0x1152b4=>{const _0x2968e5=_0x3a8022;if(this[_0x2968e5(0x308)]&&_0x1152b4['id']===v[_0x2968e5(0x19c)]['id']&&_0x1152b4[_0x2968e5(0x293)][_0x2968e5(0x29c)]===this[_0x2968e5(0x1d4)]){const _0x33b8ea=_0x1152b4[_0x2968e5(0x293)];this['_updateLocalCursor'](_0x33b8ea[_0x2968e5(0x197)],_0x33b8ea[_0x2968e5(0x3ad)][0x0]);}})));}['_onCursorUpdate'](_0x3dae9c){const _0x39a663=_0x15b5c6;var _0x590d98,_0x137605;const {memberID:_0x236414,selection:_0x16ae88}=_0x3dae9c[_0x39a663(0x41d)],{sheetName:_0x5ca47a,range:_0x13bfa8}=B['deserializeRangeWithSheet'](_0x16ae88),_0x3bf8d0={'name':(_0x137605=(_0x590d98=this[_0x39a663(0x450)][_0x39a663(0x265)](this['unitID'],_0x236414))==null?void 0x0:_0x590d98[_0x39a663(0x400)])!=null?_0x137605:_0x39a663(0x3a0),'range':this['_getMergeRange'](_0x5ca47a,_0x13bfa8),'sheetID':_0x5ca47a,'color':this[_0x39a663(0x39b)][_0x39a663(0x28a)](_0x236414),'selection':_0x16ae88},_0x5c9c97=this[_0x39a663(0x370)];_0x5c9c97['set'](_0x236414,_0x3bf8d0),this[_0x39a663(0x26b)][_0x39a663(0x337)](_0x5c9c97);}['_onCursorDelete'](_0x5bf54e){const _0x179146=_0x15b5c6,{memberID:_0x5bde33}=_0x5bf54e['data'],_0x137589=this[_0x179146(0x370)];_0x137589[_0x179146(0x329)](_0x5bde33),this['_cursorInfo$'][_0x179146(0x337)](_0x137589);}[_0x15b5c6(0x324)](_0xf91878,_0x14a1a9){const _0x151ecd=_0x15b5c6;var _0xdf69cd,_0x5ad7d4;const _0x31c8f2=(_0x5ad7d4=(_0xdf69cd=this[_0x151ecd(0x2fc)][_0x151ecd(0x1b0)](this['unitID']))==null?void 0x0:_0xdf69cd[_0x151ecd(0x3fa)](_0xf91878))==null?void 0x0:_0x5ad7d4[_0x151ecd(0x3a1)]();return(_0x31c8f2==null?void 0x0:_0x31c8f2[_0x151ecd(0x2e3)](_0xe4aba7=>a['Rectangle']['contains'](_0xe4aba7,_0x14a1a9)))||_0x14a1a9;}['_onRefRangeChange'](){const _0x5491c4=_0x15b5c6,_0x469439=new a['DisposableCollection'](),_0x6f6f3f=Et(),_0x4a4355=()=>{const _0x41bba5=_0x31d6;_0x469439['dispose']();const _0xd92e80=(_0x55f8ed,_0x36a099,_0x5cae67,_0x43553c)=>{const _0x18b613=_0x31d6;let _0x4ea7ab=[];switch(_0x55f8ed['id']){case v[_0x18b613(0x1a7)][_0x18b613(0x43c)]:{_0x4ea7ab=v[_0x18b613(0x1d0)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)][_0x18b613(0x3f2)]:{_0x4ea7ab=v[_0x18b613(0x27e)](_0x55f8ed,_0x43553c);break;}case v['EffectRefRangId']['InsertColCommandId']:{_0x4ea7ab=v[_0x18b613(0x455)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)]['InsertRangeMoveDownCommandId']:{_0x4ea7ab=v[_0x18b613(0x3da)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)]['InsertRangeMoveRightCommandId']:{_0x4ea7ab=v[_0x18b613(0x3dc)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)][_0x18b613(0x262)]:{_0x4ea7ab=v[_0x18b613(0x44d)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)][_0x18b613(0x42e)]:{_0x4ea7ab=v[_0x18b613(0x241)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)][_0x18b613(0x1c3)]:{_0x4ea7ab=v[_0x18b613(0x445)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)]['RemoveRowCommandId']:{_0x4ea7ab=v['handleIRemoveRow'](_0x55f8ed,_0x43553c);break;}}const _0x2dde6a=v['runRefRangeMutations'](_0x4ea7ab,_0x43553c),_0x5178c4=this[_0x18b613(0x370)][_0x18b613(0x2c9)](_0x36a099);if(_0x5178c4&&_0x2dde6a){const _0x59fe32={..._0x5178c4,'range':_0x2dde6a};this[_0x18b613(0x370)]['set'](_0x36a099,_0x59fe32),_0x6f6f3f(()=>{const _0x23d6f3=_0x18b613,_0x52422b=this['_refRangeService']['registerRefRange'](_0x2dde6a,_0x3679d6=>(_0x52422b[_0x23d6f3(0x327)](),_0xd92e80(_0x3679d6,_0x36a099,_0x5cae67,_0x2dde6a)));_0x469439[_0x23d6f3(0x3bf)](_0x52422b);});}return{'redos':[],'undos':[]};};this[_0x41bba5(0x370)][_0x41bba5(0x449)]((_0x3998ae,_0x1fff79)=>{const _0x171114=_0x41bba5,{range:_0x298c53,sheetID:_0x230ac3}=_0x3998ae,_0x497d10=this[_0x171114(0x1ec)][_0x171114(0x3c6)](_0x298c53,_0x1b5488=>(_0x497d10[_0x171114(0x327)](),_0xd92e80(_0x1b5488,_0x1fff79,_0x230ac3,_0x298c53)));_0x469439[_0x171114(0x3bf)](_0x497d10);});};this[_0x5491c4(0x425)](a[_0x5491c4(0x2f2)](this[_0x5491c4(0x26b)]['subscribe'](()=>{_0x4a4355();})));}[_0x15b5c6(0x3bd)](){const _0x42570c=_0x15b5c6;var _0x1a60bf,_0x53853c;if(this[_0x42570c(0x308)]=!0x0,((_0x1a60bf=this['_univerInstanceService'][_0x42570c(0x34f)]())==null?void 0x0:_0x1a60bf[_0x42570c(0x36f)]())!==this[_0x42570c(0x1d4)])return;const _0x11b0fc=(_0x53853c=this[_0x42570c(0x201)][_0x42570c(0x2c9)](v[_0x42570c(0x2f0)])['getCurrentSelections']())==null?void 0x0:_0x53853c[0x0],_0x387f1b=this[_0x42570c(0x2fc)][_0x42570c(0x365)](a[_0x42570c(0x295)][_0x42570c(0x2ae)])['getActiveSheet']();_0x11b0fc&&_0x387f1b&&this[_0x42570c(0x335)](_0x387f1b[_0x42570c(0x345)](),_0x11b0fc);}[_0x15b5c6(0x255)](){const _0x3aeecc=_0x15b5c6;this[_0x3aeecc(0x308)]=!0x1;}};ge=mt([w(0x2,a['Inject'](a[_0x15b5c6(0x1c8)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x200)])),w(0x5,a[_0x15b5c6(0x333)]),w(0x6,a[_0x15b5c6(0x285)]),w(0x7,a[_0x15b5c6(0x3bb)](v[_0x15b5c6(0x25e)]))],ge);var Ct=Object[_0x15b5c6(0x43d)],Tt=(_0x5627d8,_0x509d44,_0x48295c,_0x261de5)=>{for(var _0x497ba0=_0x261de5>0x1?void 0x0:_0x261de5?Ct(_0x509d44,_0x48295c):_0x509d44,_0x3ba843=_0x5627d8['length']-0x1,_0x2ab133;_0x3ba843>=0x0;_0x3ba843--)(_0x2ab133=_0x5627d8[_0x3ba843])&&(_0x497ba0=_0x2ab133(_0x497ba0)||_0x497ba0);return _0x497ba0;},ce=(_0x3f3bd0,_0xb933fc)=>(_0x415c60,_0x4db606)=>_0xb933fc(_0x415c60,_0x4db606,_0x3f3bd0);let F=class extends a[_0x15b5c6(0x30d)]{constructor(_0x579e7e,_0x110220,_0x35e8ec){const _0x56f075=_0x15b5c6;super(),_(this,'_entities',new Map()),_(this,_0x56f075(0x278),new I[(_0x56f075(0x3a8))]()),(this[_0x56f075(0x2fc)]=_0x579e7e,this[_0x56f075(0x201)]=_0x110220,this[_0x56f075(0x393)]=_0x35e8ec,this[_0x56f075(0x462)]());}[_0x15b5c6(0x327)](){const _0x5fdd82=_0x15b5c6;super[_0x5fdd82(0x327)](),this[_0x5fdd82(0x278)][_0x5fdd82(0x1c5)](),this[_0x5fdd82(0x2fd)][_0x5fdd82(0x449)](_0x287985=>_0x287985[_0x5fdd82(0x327)]());}[_0x15b5c6(0x1e3)](_0x552334){const _0x195ce6=_0x15b5c6;return this['_entities'][_0x195ce6(0x1de)](_0x552334)?this[_0x195ce6(0x2fd)][_0x195ce6(0x2c9)](_0x552334)[_0x195ce6(0x301)]:this[_0x195ce6(0x278)][_0x195ce6(0x24a)](I[_0x195ce6(0x391)](_0x37a86f=>_0x37a86f['unitID']===_0x552334),I[_0x195ce6(0x2d7)](_0x3c5254=>_0x3c5254[_0x195ce6(0x301)]));}[_0x15b5c6(0x462)](){const _0x546a65=_0x15b5c6;this['_univerInstanceService'][_0x546a65(0x1eb)](a[_0x546a65(0x295)]['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x546a65(0x34e)]))[_0x546a65(0x3fc)](async _0x41b0e1=>{const _0x2db410=_0x546a65,_0xe95314=_0x41b0e1[_0x2db410(0x36f)](),_0x25652b=await this['_startSheetCollabCursor'](_0xe95314);this[_0x2db410(0x278)][_0x2db410(0x337)](_0x25652b),this['_entities'][_0x2db410(0x196)](_0xe95314,_0x25652b);}),this[_0x546a65(0x2fc)][_0x546a65(0x1eb)](a['UniverInstanceType'][_0x546a65(0x28e)])[_0x546a65(0x24a)](I[_0x546a65(0x344)](this[_0x546a65(0x34e)]))[_0x546a65(0x24a)](I[_0x546a65(0x391)](_0xd79f97=>!_0xd79f97[_0x546a65(0x36f)]()[_0x546a65(0x387)]('__')))['subscribe'](async _0x252227=>{const _0x3ea298=_0x546a65,_0x1c3ad6=_0x252227[_0x3ea298(0x36f)](),_0x3b826a=await this[_0x3ea298(0x3e8)](_0x1c3ad6);this[_0x3ea298(0x278)]['next'](_0x3b826a),this['_entities'][_0x3ea298(0x196)](_0x1c3ad6,_0x3b826a);}),I[_0x546a65(0x207)](this[_0x546a65(0x2fc)][_0x546a65(0x2aa)](a[_0x546a65(0x295)][_0x546a65(0x28e)]),this[_0x546a65(0x2fc)][_0x546a65(0x2aa)](a[_0x546a65(0x295)][_0x546a65(0x2ae)]))[_0x546a65(0x24a)](I[_0x546a65(0x344)](this[_0x546a65(0x34e)]))[_0x546a65(0x3fc)](_0x2720c2=>{const _0x573e0b=_0x546a65,_0x238d73=_0x2720c2[_0x573e0b(0x36f)](),_0x1c53ad=this[_0x573e0b(0x2fd)][_0x573e0b(0x2c9)](_0x238d73);_0x1c53ad&&(_0x1c53ad[_0x573e0b(0x327)](),this[_0x573e0b(0x2fd)]['delete'](_0x238d73));});}async[_0x15b5c6(0x223)](_0x51c68){const _0x36d468=_0x15b5c6,_0x30a29a=await this['_collabSessionService']['requireSession'](_0x51c68),_0x112b1b=this['_injector']['createInstance'](ge,_0x51c68,_0x30a29a);return _0x112b1b[_0x36d468(0x418)](),_0x112b1b;}async[_0x15b5c6(0x3e8)](_0x3c163c){const _0x2f87bb=_0x15b5c6,_0x2fe1ee=await this[_0x2f87bb(0x393)][_0x2f87bb(0x282)](_0x3c163c),_0x599c2e=this[_0x2f87bb(0x201)][_0x2f87bb(0x1d9)](ve,_0x3c163c,_0x2fe1ee);return _0x599c2e[_0x2f87bb(0x418)](),_0x599c2e;}};F=Tt([ce(0x0,a[_0x15b5c6(0x333)]),ce(0x1,a[_0x15b5c6(0x3bb)](a['Injector'])),ce(0x2,a['Inject'](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x40ef9e,_0x365878){const _0x2589a4=_0x15b5c6;let {radius:_0x31bcdb,width:_0x4ad7ae,height:_0x1f74a6}=_0x365878;_0x31bcdb=_0x31bcdb!=null?_0x31bcdb:0x0,_0x4ad7ae=_0x4ad7ae!=null?_0x4ad7ae:0x1e,_0x1f74a6=_0x1f74a6!=null?_0x1f74a6:0x1e;let _0x39ff56=0x0,_0x55f79b=0x0,_0x5b8489=0x0;_0x39ff56=_0x55f79b=_0x5b8489=Math[_0x2589a4(0x246)](_0x31bcdb,_0x4ad7ae/0x2,_0x1f74a6/0x2),_0x40ef9e[_0x2589a4(0x447)](),_0x40ef9e['moveTo'](_0x39ff56,0x0),_0x40ef9e[_0x2589a4(0x380)](_0x4ad7ae-_0x55f79b,0x0),_0x40ef9e[_0x2589a4(0x318)](_0x4ad7ae-_0x55f79b,_0x55f79b,_0x55f79b,Math['PI']*0x3/0x2,0x0,!0x1),_0x40ef9e['lineTo'](_0x4ad7ae,_0x1f74a6-_0x5b8489),_0x40ef9e[_0x2589a4(0x318)](_0x4ad7ae-_0x5b8489,_0x1f74a6-_0x5b8489,_0x5b8489,0x0,Math['PI']/0x2,!0x1),_0x40ef9e[_0x2589a4(0x380)](0x0,_0x1f74a6),_0x40ef9e[_0x2589a4(0x380)](0x0,_0x39ff56),_0x40ef9e[_0x2589a4(0x318)](_0x39ff56,_0x39ff56,_0x39ff56,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x40ef9e[_0x2589a4(0x1ed)](),_0x365878[_0x2589a4(0x1cd)]&&(_0x40ef9e[_0x2589a4(0x424)](),_0x40ef9e['fillStyle']=_0x365878[_0x2589a4(0x1cd)],_0x365878[_0x2589a4(0x35b)]===_0x2589a4(0x248)?_0x40ef9e[_0x2589a4(0x1cd)](_0x2589a4(0x248)):_0x40ef9e[_0x2589a4(0x1cd)](),_0x40ef9e[_0x2589a4(0x3f5)]());}class re extends C[_0x15b5c6(0x21a)]{constructor(_0x4005f0,_0xddfb12){const _0x5601f5=_0x15b5c6;super(_0x4005f0,_0xddfb12),_(this,'color'),_(this,'text'),(this['color']=_0xddfb12==null?void 0x0:_0xddfb12['color'],this[_0x5601f5(0x29b)]=_0xddfb12==null?void 0x0:_0xddfb12[_0x5601f5(0x29b)]);}static[_0x15b5c6(0x313)](_0x16eca2,_0x2298df){const _0x52ecdc=_0x15b5c6,{text:_0x224bf5,color:_0x249aaa}=_0x2298df;_0x16eca2[_0x52ecdc(0x424)](),_0x16eca2[_0x52ecdc(0x2b6)]=_0x52ecdc(0x355);const _0x320d5b=_0x16eca2['measureText'](_0x224bf5)[_0x52ecdc(0x2fe)],_0x52f550=Math[_0x52ecdc(0x246)](_0x320d5b+0x2*le,Ue);Ot(_0x16eca2,{'height':X,'radius':0x4,'width':_0x52f550,'fill':_0x249aaa}),_0x16eca2[_0x52ecdc(0x357)]=_0x52ecdc(0x453);const _0x1b3573=le,_0x4b5bb3=X-pt,_0x3996f6=Ue-0x2*le;if(_0x320d5b>_0x3996f6){let _0x500bab='',_0x1875f9=0x0;for(const _0x5a66a5 of _0x224bf5){const _0x47f2ec=_0x16eca2['measureText'](_0x5a66a5)['width'];if(_0x1875f9+_0x47f2ec<=_0x3996f6-_0x16eca2[_0x52ecdc(0x251)]('...')[_0x52ecdc(0x2fe)])_0x500bab+=_0x5a66a5,_0x1875f9+=_0x47f2ec;else{_0x500bab+=_0x52ecdc(0x422);break;}}_0x16eca2[_0x52ecdc(0x2db)](_0x500bab,_0x1b3573,_0x4b5bb3);}else _0x16eca2[_0x52ecdc(0x2db)](_0x224bf5,_0x1b3573,_0x4b5bb3);_0x16eca2[_0x52ecdc(0x3f5)]();}[_0x15b5c6(0x2a7)](_0x3759a3){const _0x194c3a=_0x15b5c6;re[_0x194c3a(0x313)](_0x3759a3,this);}}const _e=_0x15b5c6(0x2ec),Rt=_0x15b5c6(0x3cc),bt=_0x15b5c6(0x35f),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x15b5c6(0x1cb);class Le{constructor(_0x433c6a,_0x4a87f1,_0x2cffa0,_0x4e0b37){const _0x2680c9=_0x15b5c6;_(this,_0x2680c9(0x2b3),[]),_(this,_0x2680c9(0x31e),null),_(this,_0x2680c9(0x1fa),null),_(this,_0x2680c9(0x1b9),null),_(this,_0x2680c9(0x2d2),null),_(this,_0x2680c9(0x210),null),(this['_cursor']=_0x433c6a,this[_0x2680c9(0x1e9)]=_0x4a87f1,this['_docSkeleton']=_0x2cffa0,this[_0x2680c9(0x37c)]=_0x4e0b37,this[_0x2680c9(0x369)]());}set[_0x15b5c6(0x2b5)](_0x3ac85e){const _0x18e9ad=_0x15b5c6;_0x3ac85e?(this['_anchorDot']&&this[_0x18e9ad(0x1b9)][_0x18e9ad(0x427)](),this[_0x18e9ad(0x1fa)]&&this[_0x18e9ad(0x1fa)][_0x18e9ad(0x37b)]()):(this[_0x18e9ad(0x1b9)]&&this[_0x18e9ad(0x1b9)]['show'](),this[_0x18e9ad(0x1fa)]&&this[_0x18e9ad(0x1fa)][_0x18e9ad(0x427)]());}['dispose'](){const _0x211ee0=_0x15b5c6;for(const _0xd39722 of this[_0x211ee0(0x2b3)])_0xd39722[_0x211ee0(0x327)]();this[_0x211ee0(0x1fa)]&&this[_0x211ee0(0x1fa)][_0x211ee0(0x327)](),this[_0x211ee0(0x1b9)]&&this[_0x211ee0(0x1b9)]['dispose'](),this[_0x211ee0(0x31e)]&&this[_0x211ee0(0x31e)][_0x211ee0(0x327)](),this[_0x211ee0(0x210)]&&this['_eventUnsubscribe']();}[_0x15b5c6(0x369)](){const _0x47c8aa=_0x15b5c6;var _0x4246b5;const {_docSkeleton:_0x5619e6,_document:_0x59779c}=this,{color:_0x5207fd,name:_0x1a831c,ranges:_0x20519b}=this[_0x47c8aa(0x3d3)],_0xb259f4=_0x59779c[_0x47c8aa(0x1af)](),{docsLeft:_0x34cb08,docsTop:_0x52c418}=_0xb259f4,_0x1996f8=new T[(_0x47c8aa(0x444))](_0xb259f4,_0x5619e6);for(const {startOffset:_0x5e525c,endOffset:_0x212204,rangeType:_0x91fe2,segmentId:_0x471613,segmentPage:_0x27b26d,collapsed:_0x5fd79,isActive:_0x2ed171}of _0x20519b){const _0x467ce4=_0x5619e6['findNodePositionByCharIndex'](_0x5e525c,!0x0,_0x471613,_0x27b26d);let _0x43eb63=_0x5619e6['findNodePositionByCharIndex'](_0x212204,!0x0,_0x471613,_0x27b26d);if(_0x43eb63==null&&(_0x43eb63=_0x5619e6[_0x47c8aa(0x404)](_0x212204-0x1,!0x1,_0x471613,_0x27b26d)),_0x2ed171){const {contentBoxPointGroup:_0x5b0a53}=_0x1996f8[_0x47c8aa(0x2d3)](_0x43eb63,_0x43eb63);if(_0x5b0a53[_0x47c8aa(0x45c)]===0x0)continue;this['_drawAnchor'](_0x5207fd,_0x5b0a53,_0x34cb08,_0x52c418,_0x1a831c),this['_eventUnsubscribe']=this[_0x47c8aa(0x405)]();}if(_0x467ce4&&_0x43eb63){if(_0x91fe2===a[_0x47c8aa(0x35c)]['RECT']){const _0x41d045=new T[(_0x47c8aa(0x1ce))](_0xb259f4,_0x5619e6),{pointGroup:_0x54a4d6}=(_0x4246b5=_0x41d045[_0x47c8aa(0x2d3)](_0x467ce4,_0x43eb63))!=null?_0x4246b5:{};if(_0x54a4d6==null||_0x54a4d6['length']===0x0)continue;this['_drawRectRange'](_0x5207fd,_0x54a4d6,_0x34cb08,_0x52c418);}else{if(!_0x5fd79){const {borderBoxPointGroup:_0x30d6ca}=_0x1996f8[_0x47c8aa(0x2d3)](_0x467ce4,_0x43eb63);if(_0x30d6ca[_0x47c8aa(0x45c)]===0x0)continue;this[_0x47c8aa(0x45e)](_0x5207fd,_0x30d6ca,_0x34cb08,_0x52c418);}}}}}['_drawAnchor'](_0x5d6f30,_0x1ea417,_0x54e091,_0x35f6a2,_0x117aeb){const _0x2833b8=_0x15b5c6,_0x51e728=this[_0x2833b8(0x2a9)](_0x1ea417),{left:_0x58f0f0,top:_0x586c99,height:_0x2c0611}=_0x51e728,_0x47af4b=this[_0x2833b8(0x371)](),_0x2cc658=Nt/_0x47af4b,_0x42eb71=new C[(_0x2833b8(0x3b1))](_e+a[_0x2833b8(0x1dd)](H),{'left':_0x58f0f0+_0x54e091-_0x2cc658,'top':_0x586c99+_0x35f6a2,'height':_0x2c0611,'width':Dt,'fill':_0x5d6f30||C[_0x2833b8(0x414)](a[_0x2833b8(0x45d)][_0x2833b8(0x22b)],0x0),'strokeWidth':_0x2cc658,'stroke':Ut,'evented':!0x0});this[_0x2833b8(0x31e)]=_0x42eb71,this[_0x2833b8(0x1e9)][_0x2833b8(0x231)](_0x42eb71,T[_0x2833b8(0x44c)]);const _0x3bf46a=new C['Rect'](_e+a[_0x2833b8(0x1dd)](H),{'left':_0x58f0f0+_0x54e091-_0x2cc658,'top':_0x586c99+_0x35f6a2-he/0x2,'height':he,'width':he,'fill':_0x5d6f30||C['getColor'](a[_0x2833b8(0x45d)][_0x2833b8(0x22b)],0x0),'strokeWidth':0x0,'stroke':_0x5d6f30||C['getColor'](a[_0x2833b8(0x45d)]['black'],0x0),'evented':!0x1});this[_0x2833b8(0x1b9)]=_0x3bf46a,this[_0x2833b8(0x1e9)]['addObject'](_0x3bf46a,T[_0x2833b8(0x44c)]);const _0x20e64f=new re(_e+a[_0x2833b8(0x1dd)](H),{'left':_0x58f0f0+_0x54e091-_0x2cc658,'top':_0x586c99+_0x35f6a2-X,'text':_0x117aeb,'color':_0x5d6f30});this['_textBubble']=_0x20e64f,this[_0x2833b8(0x1e9)]['addObject'](_0x20e64f,T['TEXT_RANGE_LAYER_INDEX']),this[_0x2833b8(0x2b5)]=!0x1;}['_handleHover'](){const _0x5144d9=_0x15b5c6,_0x15e276=this['_anchor']['onPointerEnter$'][_0x5144d9(0x28d)](()=>{this['_hover']=!0x0;}),_0x501a36=this[_0x5144d9(0x31e)][_0x5144d9(0x1bf)][_0x5144d9(0x28d)](()=>{const _0x3c6b4b=_0x5144d9;this[_0x3c6b4b(0x2d2)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x19d349=_0x3c6b4b;this[_0x19d349(0x2b5)]=!0x1;},0x7d0);});return()=>{const _0x292d4c=_0x5144d9;_0x15e276[_0x292d4c(0x268)](),_0x501a36['unsubscribe']();};}['_drawTextRange'](_0x2928ce,_0x194158,_0x342660,_0xe34014){const _0xe28a52=_0x15b5c6,_0x293243=new a[(_0xe28a52(0x401))](_0x2928ce)['setAlpha'](0.2)[_0xe28a52(0x24b)](),_0xbfd6d=new C['RegularPolygon'](Rt+a[_0xe28a52(0x1dd)](H),{'pointsGroup':_0x194158,'fill':_0x293243||C[_0xe28a52(0x414)](a[_0xe28a52(0x45d)][_0xe28a52(0x22b)],0.2),'left':_0x342660,'top':_0xe34014,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe28a52(0x2b3)][_0xe28a52(0x320)](_0xbfd6d),this[_0xe28a52(0x1e9)][_0xe28a52(0x231)](_0xbfd6d,T[_0xe28a52(0x44c)]);}[_0x15b5c6(0x2ea)](_0x2a408d,_0x1428b9,_0x4652d3,_0x1d750c){const _0x25db0b=_0x15b5c6,_0x2fcd44=new a['ColorKit'](_0x2a408d)[_0x25db0b(0x34a)](0.2)[_0x25db0b(0x24b)](),_0xb27167=new C['RegularPolygon'](bt+a[_0x25db0b(0x1dd)](H),{'pointsGroup':_0x1428b9,'fill':_0x2fcd44||C[_0x25db0b(0x414)](a[_0x25db0b(0x45d)]['black'],0.2),'left':_0x4652d3,'top':_0x1d750c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25db0b(0x2b3)][_0x25db0b(0x320)](_0xb27167),this[_0x25db0b(0x1e9)][_0x25db0b(0x231)](_0xb27167,T[_0x25db0b(0x44c)]);}[_0x15b5c6(0x2a9)](_0x3ff748){const _0xa4e7b1=_0x3ff748[0x0],_0x37023e=_0xa4e7b1[0x0],_0x235203=_0xa4e7b1[0x2],{x:_0x21bf77,y:_0x474481}=_0x37023e,{x:_0x56018f,y:_0x59d683}=_0x235203;return{'left':_0x21bf77,'top':_0x474481,'width':_0x56018f-_0x21bf77,'height':_0x59d683-_0x474481};}[_0x15b5c6(0x371)](){const _0x322b4f=_0x15b5c6,{scaleX:_0x7e457b,scaleY:_0x40db02}=this[_0x322b4f(0x1e9)][_0x322b4f(0x3bc)]();return Math[_0x322b4f(0x360)](_0x7e457b,_0x40db02);}}var Lt=Object[_0x15b5c6(0x43d)],Mt=(_0x4c8029,_0x57f753,_0x3cbe8e,_0x273717)=>{const _0x30d8cf=_0x15b5c6;for(var _0x953a61=_0x273717>0x1?void 0x0:_0x273717?Lt(_0x57f753,_0x3cbe8e):_0x57f753,_0x1cdb6b=_0x4c8029[_0x30d8cf(0x45c)]-0x1,_0x588075;_0x1cdb6b>=0x0;_0x1cdb6b--)(_0x588075=_0x4c8029[_0x1cdb6b])&&(_0x953a61=_0x588075(_0x953a61)||_0x953a61);return _0x953a61;},q=(_0x322a7d,_0x43d78c)=>(_0x18bdce,_0x522948)=>_0x43d78c(_0x18bdce,_0x522948,_0x322a7d);let Ee=class extends a[_0x15b5c6(0x30d)]{constructor(_0x32d79d,_0x489830,_0xf63f7c,_0x249cd7,_0x381529){const _0xf6a307=_0x15b5c6;super(),_(this,_0xf6a307(0x2e5),[]),_(this,_0xf6a307(0x26e),[]),(this[_0xf6a307(0x3e4)]=_0x32d79d,this['_docSkeletonManagerService']=_0x489830,this[_0xf6a307(0x3ab)]=_0xf63f7c,this[_0xf6a307(0x340)]=_0x249cd7,this[_0xf6a307(0x3e9)]=_0x381529,this[_0xf6a307(0x462)]());}[_0x15b5c6(0x462)](){const _0xdd1e8b=_0x15b5c6,_0x27ce5e=this[_0xdd1e8b(0x3e4)][_0xdd1e8b(0x29c)],_0x5a93f8=this[_0xdd1e8b(0x1ae)];this[_0xdd1e8b(0x425)](I[_0xdd1e8b(0x2f7)]([this[_0xdd1e8b(0x3ab)][_0xdd1e8b(0x1e3)](_0x27ce5e),this[_0xdd1e8b(0x3e9)][_0xdd1e8b(0x1c7)]])[_0xdd1e8b(0x24a)]($[_0xdd1e8b(0x343)](([_0x532384,_0x33be41])=>({'skeleton':_0x5a93f8[_0xdd1e8b(0x1fc)](),'cursors':[..._0x532384[_0xdd1e8b(0x1ad)]()][_0xdd1e8b(0x214)](_0x58e649=>({..._0x58e649,'color':this['_themeService'][_0xdd1e8b(0x1a5)](_0x58e649[_0xdd1e8b(0x36e)])}))})))[_0xdd1e8b(0x3fc)](_0x33440c=>{const _0x31c5af=_0xdd1e8b;if(this['_removeCollabCursors'](),_0x33440c){const {skeleton:_0x4eb1d1,cursors:_0x5efa97}=_0x33440c;this[_0x31c5af(0x3f0)](_0x4eb1d1,_0x5efa97);}})),this[_0xdd1e8b(0x1b1)](),this[_0xdd1e8b(0x3e7)]();}[_0x15b5c6(0x3f0)](_0x2bc467,_0x44c491){const _0x40eacf=_0x15b5c6,{scene:_0x3a71b1,mainComponent:_0x5ea39d}=this[_0x40eacf(0x3e4)],_0x4d19e0=_0x44c491['map'](_0x4c5e11=>new Le(_0x4c5e11,_0x3a71b1,_0x2bc467,_0x5ea39d));this[_0x40eacf(0x2e5)]=_0x4d19e0,this['_cursors']=_0x44c491;}[_0x15b5c6(0x458)](){const _0x29e5db=_0x15b5c6;this['_removeCollabCursors']();const {scene:_0x52e92e,mainComponent:_0xefbaab}=this['_context'],_0x50df88=this['_docSkeletonManagerService'][_0x29e5db(0x1fc)](),_0x12ad2d=this[_0x29e5db(0x26e)][_0x29e5db(0x343)](_0x78b075=>new Le(_0x78b075,_0x52e92e,_0x50df88,_0xefbaab));this[_0x29e5db(0x2e5)]=_0x12ad2d;}['_removeCollabCursors'](){const _0x718bfb=_0x15b5c6;this[_0x718bfb(0x2e5)][_0x718bfb(0x449)](_0x1c342b=>_0x1c342b[_0x718bfb(0x327)]()),this[_0x718bfb(0x2e5)]=[];}['_initCommandExecutedListener'](){const _0x110bfd=_0x15b5c6,_0x4b100f=[T['SetDocZoomRatioOperation']['id']];this[_0x110bfd(0x425)](this[_0x110bfd(0x340)][_0x110bfd(0x2a8)](_0x46f632=>{const _0x5b2e95=_0x110bfd;_0x4b100f[_0x5b2e95(0x1d2)](_0x46f632['id'])&&_0x46f632['params']['unitId']===this[_0x5b2e95(0x3e4)][_0x5b2e95(0x29c)]&&this[_0x5b2e95(0x458)]();}));}[_0x15b5c6(0x1b1)](){const _0x43ad20=_0x15b5c6;this[_0x43ad20(0x425)](a[_0x43ad20(0x330)](this['_context'][_0x43ad20(0x1a0)][_0x43ad20(0x23c)])[_0x43ad20(0x24a)]($['filter'](_0x2878e0=>_0x2878e0['type']===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x43ad20(0x1f9)]),$[_0x43ad20(0x2a3)](0x10))['subscribe'](()=>{const _0x5be0f6=_0x43ad20;this[_0x5be0f6(0x458)]();}));}};Ee=Mt([q(0x1,a[_0x15b5c6(0x3bb)](V[_0x15b5c6(0x41a)])),q(0x2,a[_0x15b5c6(0x3bb)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x15b5c6(0x3bb)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x15b5c6(0x21a)]{constructor(_0x3aa5d6,_0x36b0f){const _0x112411=_0x15b5c6;super(_0x3aa5d6,_0x36b0f),_(this,_0x112411(0x247)),_(this,_0x112411(0x23a),!0x1),_(this,_0x112411(0x1c2)),_(this,'_name',''),_(this,'_labelPosition',_0x112411(0x36b)),_(this,'_backgroundColor'),(_0x36b0f&&this[_0x112411(0x1c4)](_0x36b0f),this[_0x112411(0x3e5)][_0x112411(0x28d)](()=>this[_0x112411(0x1c4)]({'hovered':!0x0})),this[_0x112411(0x1bf)]['subscribeEvent'](()=>this[_0x112411(0x1c4)]({'hovered':!0x1})));}[_0x15b5c6(0x1c4)](_0x4c5883){const _0x25b6de=_0x15b5c6;var _0x144311,_0x4c9290,_0xc9f030,_0x13f236,_0x212d1b,_0x23b88a;this[_0x25b6de(0x247)]=(_0x144311=_0x4c5883['color'])!=null?_0x144311:this[_0x25b6de(0x247)],this[_0x25b6de(0x23a)]=(_0x4c9290=_0x4c5883['hovered'])!=null?_0x4c9290:this['_hovered'],this[_0x25b6de(0x1c2)]=(_0xc9f030=_0x4c5883[_0x25b6de(0x29d)])!=null?_0xc9f030:this[_0x25b6de(0x1c2)],this[_0x25b6de(0x31f)]=(_0x13f236=_0x4c5883['name'])!=null?_0x13f236:this['_name'],this['_labelPosition']=(_0x212d1b=_0x4c5883[_0x25b6de(0x3df)])!=null?_0x212d1b:this['_labelPosition'],this['_backgroundColor']=(_0x23b88a=_0x4c5883['backgroundColor'])!=null?_0x23b88a:this[_0x25b6de(0x41b)],this[_0x25b6de(0x263)]({'width':_0x4c5883[_0x25b6de(0x2fe)],'height':_0x4c5883['height']});}['onMouseMove'](_0x362987){const _0x12b1dc=_0x15b5c6,{row:_0x46b564,column:_0x309183}=_0x362987;if(_0x46b564>=this['_range']['startRow']&&_0x46b564<=this['_range']['endRow']&&_0x309183>=this[_0x12b1dc(0x1c2)][_0x12b1dc(0x33c)]&&_0x309183<=this[_0x12b1dc(0x1c2)][_0x12b1dc(0x1a9)]){this[_0x12b1dc(0x1c4)]({'hovered':!0x0});return;}this[_0x12b1dc(0x1c4)]({'hovered':!0x1});}[_0x15b5c6(0x3f4)](_0x10d9cf){return!0x1;}[_0x15b5c6(0x2a7)](_0x3a95cc){const _0x414b1f=_0x15b5c6;C[_0x414b1f(0x3b1)][_0x414b1f(0x313)](_0x3a95cc,{'width':this[_0x414b1f(0x2fe)],'height':this[_0x414b1f(0x2de)],'strokeWidth':Pt,'stroke':this[_0x414b1f(0x247)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x3a95cc[_0x414b1f(0x424)](),_0x3a95cc[_0x414b1f(0x245)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x414b1f(0x1bc)?0x0:-X),re['drawWith'](_0x3a95cc,{'text':this[_0x414b1f(0x31f)],'color':this[_0x414b1f(0x247)]}),_0x3a95cc[_0x414b1f(0x3f5)]());}}var wt=Object[_0x15b5c6(0x43d)],yt=(_0x19b1ef,_0x34afc0,_0x5a5cb3,_0x1ba911)=>{const _0x194d82=_0x15b5c6;for(var _0x58a10c=_0x1ba911>0x1?void 0x0:_0x1ba911?wt(_0x34afc0,_0x5a5cb3):_0x34afc0,_0x59afe8=_0x19b1ef[_0x194d82(0x45c)]-0x1,_0xa9aeae;_0x59afe8>=0x0;_0x59afe8--)(_0xa9aeae=_0x19b1ef[_0x59afe8])&&(_0x58a10c=_0xa9aeae(_0x58a10c)||_0x58a10c);return _0x58a10c;},ue=(_0xf1e2ee,_0x4c19e7)=>(_0x4a48ca,_0x50d73b)=>_0x4c19e7(_0x4a48ca,_0x50d73b,_0xf1e2ee);const $t=0x1389;let Ce=class extends a[_0x15b5c6(0x30d)]{constructor(_0x2e2755,_0x107957,_0x36b16a,_0x522a8b){const _0x37c4b4=_0x15b5c6;super(),_(this,_0x37c4b4(0x26e),new Set()),_(this,_0x37c4b4(0x1f1),null),(this[_0x37c4b4(0x3e4)]=_0x2e2755,this[_0x37c4b4(0x1c0)]=_0x107957,this[_0x37c4b4(0x3ab)]=_0x36b16a,this[_0x37c4b4(0x3e9)]=_0x522a8b,this[_0x37c4b4(0x462)]());}[_0x15b5c6(0x462)](){const _0x34a278=_0x15b5c6;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x34a278(0x24a)]($[_0x34a278(0x344)](this['dispose$']),$[_0x34a278(0x2d7)](_0x28303b=>{const _0x38527f=_0x34a278;if(_0x28303b){const _0x3d0fdd=_0x28303b[_0x38527f(0x225)];return I[_0x38527f(0x2f7)](this['_collabCursorController'][_0x38527f(0x1e3)](this[_0x38527f(0x3e4)]['unitId']),this['_themeService'][_0x38527f(0x1c7)])['pipe']($['map'](([_0x4df80c,_0x2886e1])=>{const _0x2e5d09=new Map();return _0x4df80c['forEach']((_0x5ce296,_0x536fb7)=>{const _0x20c431=_0x31d6;if(_0x5ce296[_0x20c431(0x1f5)]===_0x3d0fdd){const _0x149f71={..._0x5ce296};_0x149f71[_0x20c431(0x36e)]=this[_0x20c431(0x3e9)][_0x20c431(0x1a5)](_0x5ce296['color']),_0x2e5d09[_0x20c431(0x196)](_0x536fb7,_0x149f71);}}),{'skeleton':_0x28303b,'cursors':_0x2e5d09};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x9574e3,cursors:_0x48a515})=>{const _0x43ea56=_0x34a278;this[_0x43ea56(0x3e0)](),_0x9574e3&&this[_0x43ea56(0x3f0)](_0x9574e3,_0x48a515);}),this[_0x34a278(0x1c0)]['currentSkeleton$'][_0x34a278(0x3fc)](_0x563d16=>{const _0x5978e8=_0x34a278;if(_0x563d16==null)return;const {skeleton:_0x5ac063}=_0x563d16,{scene:_0x5b9407}=this['_context'];_0x5b9407[_0x5978e8(0x1b6)][_0x5978e8(0x28d)](a[_0x5978e8(0x2e8)](_0x4d9c5c=>{const _0x32caed=_0x5978e8;var _0x4c0d45,_0x5b13ff;const {offsetX:_0x404d0b,offsetY:_0x7d3a19}=_0x4d9c5c,{x:_0x34bd9e,y:_0x5580df}=_0x5b9407[_0x32caed(0x3ae)](C[_0x32caed(0x428)][_0x32caed(0x229)]([_0x404d0b,_0x7d3a19])),{scaleX:_0x5b5db1,scaleY:_0x26e2bb}=_0x5b9407['getAncestorScale'](),_0x4d48e5=_0x5b9407[_0x32caed(0x1d1)](C[_0x32caed(0x1a2)][_0x32caed(0x249)]),_0x422c6d=_0x5b9407[_0x32caed(0x2b9)](C[_0x32caed(0x428)][_0x32caed(0x229)]([_0x34bd9e,_0x5580df]),_0x4d48e5),_0x5061a1=_0x5ac063[_0x32caed(0x1d8)](_0x404d0b,_0x7d3a19,_0x5b5db1,_0x26e2bb,_0x422c6d);((_0x4c0d45=this[_0x32caed(0x1f1)])==null?void 0x0:_0x4c0d45[_0x32caed(0x452)])===_0x5061a1[_0x32caed(0x452)]&&((_0x5b13ff=this[_0x32caed(0x1f1)])==null?void 0x0:_0x5b13ff[_0x32caed(0x202)])===_0x5061a1[_0x32caed(0x202)]||this[_0x32caed(0x26e)][_0x32caed(0x449)](_0x59c65d=>{const _0x2535bb=_0x32caed;_0x59c65d[_0x2535bb(0x36c)](_0x5061a1);});},0x64));});}[_0x15b5c6(0x3f0)](_0x367d35,_0x5d08ae){const _0x345e72=_0x15b5c6;var _0x14c350;const _0x3dc05b=(_0x14c350=this[_0x345e72(0x1c0)]['getCurrent']())==null?void 0x0:_0x14c350['skeleton'];if(!_0x3dc05b)return;const _0x336574=this[_0x345e72(0x1da)]();if(!_0x336574)return;this[_0x345e72(0x26e)][_0x345e72(0x449)](_0x5f261c=>{const _0x4df14a=_0x345e72;_0x5f261c[_0x4df14a(0x20b)]();});const {scene:_0x49b696}=_0x336574,_0x11b21a=xt(Array['from'](_0x5d08ae[_0x345e72(0x1ad)]()))[_0x345e72(0x343)](_0x364a15=>{const _0x562d76=_0x345e72,{color:_0x18f479,range:_0x2637cf,name:_0x17439b,selection:_0x1a2806,sheetID:_0x4af727}=_0x364a15,{startColumn:_0x1add9c,startRow:_0x54ef59,endColumn:_0x15ebee,endRow:_0x109910}=_0x2637cf,_0xd82f9=J[_0x562d76(0x367)](_0x54ef59,_0x1add9c,_0x49b696,_0x3dc05b),_0x5f3990=J['getCoordByCell'](_0x109910,_0x15ebee,_0x49b696,_0x3dc05b),{columnHeaderHeightAndMarginTop:_0x37a770}=_0x3dc05b,{startX:_0xd1c6a1,startY:_0x1f9dc4}=_0xd82f9,{endX:_0x45f2a9,endY:_0x4cb9ce}=_0x5f3990,_0x7169a=_0x45f2a9-_0xd1c6a1,_0x2b9d3c=_0x4cb9ce-_0x1f9dc4,_0x1a8a41={'labelPosition':_0x1f9dc4-_0x37a770>=X?_0x562d76(0x36b):_0x562d76(0x1bc),'sheetID':_0x4af727,'range':_0x2637cf,'color':_0x18f479,'name':_0x17439b,'selection':_0x1a2806,'left':_0xd1c6a1,'top':_0x1f9dc4,'width':_0x7169a,'height':_0x2b9d3c,'evented':!0x1,'zIndex':$t};return new je(_0x17439b,_0x1a8a41);});_0x49b696['addObjects'](_0x11b21a,At),this[_0x345e72(0x26e)]=new Set(_0x11b21a);}['_removeCollabCursors'](){const _0x3cc5ef=_0x15b5c6;var _0x1c4432;(_0x1c4432=this[_0x3cc5ef(0x26e)])==null||_0x1c4432[_0x3cc5ef(0x449)](_0x41fdaf=>_0x41fdaf[_0x3cc5ef(0x327)]());}['_getSheetObject'](){const _0x22c107=_0x15b5c6;return J[_0x22c107(0x30e)](this[_0x22c107(0x3e4)]['unit'],this[_0x22c107(0x3e4)]);}};Ce=yt([ue(0x1,a[_0x15b5c6(0x3bb)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x15b5c6(0x3bb)](F)),ue(0x3,a[_0x15b5c6(0x3bb)](a[_0x15b5c6(0x349)]))],Ce);function xt(_0x4930aa){const _0x1a8315=_0x15b5c6,_0x372ae1=new Map();return _0x4930aa[_0x1a8315(0x449)](_0x19aa47=>{const _0x4e6e93=_0x1a8315;if(_0x372ae1[_0x4e6e93(0x1de)](_0x19aa47[_0x4e6e93(0x397)])){const _0x2f5300=_0x372ae1[_0x4e6e93(0x2c9)](_0x19aa47['selection']);_0x2f5300[_0x4e6e93(0x400)]+=',\x20'+_0x19aa47[_0x4e6e93(0x400)];}else _0x372ae1[_0x4e6e93(0x196)](_0x19aa47[_0x4e6e93(0x397)],_0x19aa47);}),Array[_0x1a8315(0x38d)](_0x372ae1['values']());}var Bt=Object[_0x15b5c6(0x43d)],Ft=(_0x4ad450,_0x534189,_0xff0639,_0x220e5a)=>{for(var _0x5d75ea=_0x220e5a>0x1?void 0x0:_0x220e5a?Bt(_0x534189,_0xff0639):_0x534189,_0x21a9e1=_0x4ad450['length']-0x1,_0x3c7ab8;_0x21a9e1>=0x0;_0x21a9e1--)(_0x3c7ab8=_0x4ad450[_0x21a9e1])&&(_0x5d75ea=_0x3c7ab8(_0x5d75ea)||_0x5d75ea);return _0x5d75ea;},y=(_0x49d43e,_0x18bfdd)=>(_0x46ae90,_0x5acb48)=>_0x18bfdd(_0x46ae90,_0x5acb48,_0x49d43e);let Z=class extends a[_0x15b5c6(0x44e)]{constructor(_0x380eef,_0x47ffe9,_0x3dc0b6,_0x2f8b52,_0x25478f,_0xbe166f){const _0x530c08=_0x15b5c6;super(),this['_beforeCloseService']=_0x380eef,this['_localCacheService']=_0x47ffe9,this['_collaborationUIEventService']=_0x3dc0b6,this[_0x530c08(0x21f)]=_0x2f8b52,this[_0x530c08(0x2bb)]=_0x25478f,this[_0x530c08(0x21e)]=_0xbe166f,this[_0x530c08(0x408)](),this['_initEvent']();}[_0x15b5c6(0x408)](){const _0x1b4e5e=_0x15b5c6;this['disposeWithMe'](this[_0x1b4e5e(0x27f)][_0x1b4e5e(0x420)](()=>{const _0x373da6=_0x1b4e5e;if(this['_localCacheService']['saveTaskMap'][_0x373da6(0x332)])return this[_0x373da6(0x21e)]['t'](_0x373da6(0x36d));}));}['_initEvent'](){const _0x54cf90=_0x15b5c6;this['disposeWithMe'](this[_0x54cf90(0x3d5)][_0x54cf90(0x2d0)]['subscribe'](_0x3179f1=>{const _0x488497=_0x54cf90;_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x331)]&&this[_0x488497(0x21f)][_0x488497(0x37b)]({'type':p[_0x488497(0x292)][_0x488497(0x2c6)],'content':this[_0x488497(0x21e)]['t'](_0x488497(0x390))}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x3d1)]&&this[_0x488497(0x21f)]['show']({'type':p[_0x488497(0x292)][_0x488497(0x2c6)],'content':this[_0x488497(0x21e)]['t'](_0x488497(0x334))}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x374)]&&this[_0x488497(0x2bb)]['show']({'title':this[_0x488497(0x21e)]['t'](_0x488497(0x1bd)),'content':this['_localeService']['t'](_0x488497(0x2ed)),'type':_0x488497(0x3f3),'duration':0x0}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x271)]&&this[_0x488497(0x21f)][_0x488497(0x37b)]({'type':p[_0x488497(0x292)][_0x488497(0x2f4)],'content':this[_0x488497(0x21e)]['t'](_0x488497(0x334))+'('+_0x3179f1[_0x488497(0x41d)]+')'}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x1a6)]&&this[_0x488497(0x21f)][_0x488497(0x37b)]({'type':p[_0x488497(0x292)]['Warning'],'content':this['_localeService']['t'](_0x3179f1[_0x488497(0x41d)]||'')}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x354)]&&this['_messageService'][_0x488497(0x37b)]({'type':p['MessageType']['Warning'],'content':this[_0x488497(0x21e)]['t']('session.will-retry')}),_0x3179f1['id']===u['CollaborationUIEventId'][_0x488497(0x3a6)]&&this[_0x488497(0x21f)]['show']({'type':p[_0x488497(0x292)][_0x488497(0x2f4)],'content':this[_0x488497(0x21e)]['t'](_0x488497(0x3fb))}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x27b)]&&this[_0x488497(0x21f)][_0x488497(0x37b)]({'type':p[_0x488497(0x292)][_0x488497(0x2f4)],'content':this['_localeService']['t'](_0x488497(0x275))});}));}};Z=Ft([y(0x0,O[_0x15b5c6(0x267)]),y(0x1,u[_0x15b5c6(0x3ba)]),y(0x2,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x212)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x15b5c6(0x3bb)](a[_0x15b5c6(0x376)]))],Z);var jt=Object[_0x15b5c6(0x43d)],kt=(_0x1a1662,_0x153466,_0x560e8c,_0x14095b)=>{const _0x4f4337=_0x15b5c6;for(var _0x5b3f23=_0x14095b>0x1?void 0x0:_0x14095b?jt(_0x153466,_0x560e8c):_0x153466,_0x4b88f0=_0x1a1662[_0x4f4337(0x45c)]-0x1,_0x59b52d;_0x4b88f0>=0x0;_0x4b88f0--)(_0x59b52d=_0x1a1662[_0x4b88f0])&&(_0x5b3f23=_0x59b52d(_0x5b3f23)||_0x5b3f23);return _0x5b3f23;},z=(_0x3c362a,_0x229788)=>(_0x12d3f6,_0x245938)=>_0x229788(_0x12d3f6,_0x245938,_0x3c362a);let Q=class extends a[_0x15b5c6(0x44e)]{constructor(_0x41498f,_0xe2d40e,_0x444a9f,_0x5f55a8){const _0x1a9ff8=_0x15b5c6;super(),_(this,_0x1a9ff8(0x435)),(this[_0x1a9ff8(0x201)]=_0x41498f,this[_0x1a9ff8(0x3b4)]=_0xe2d40e,this[_0x1a9ff8(0x1d5)]=_0x444a9f,this[_0x1a9ff8(0x448)]=_0x5f55a8,this[_0x1a9ff8(0x462)]());}[_0x15b5c6(0x462)](){const _0x5acad9=_0x15b5c6;this[_0x5acad9(0x2b4)](),this[_0x5acad9(0x230)](),this['_monkeyPatchLogService'](),this[_0x5acad9(0x436)]();}[_0x15b5c6(0x436)](){const _0x1f3269=_0x15b5c6;this[_0x1f3269(0x425)](this[_0x1f3269(0x448)][_0x1f3269(0x300)]['subscribe'](_0x2586ad=>{const _0x21344d=_0x1f3269;this[_0x21344d(0x435)]=_0x2586ad==null?void 0x0:_0x2586ad[_0x21344d(0x3ed)];}));}[_0x15b5c6(0x2b4)](){const _0x485feb=_0x15b5c6,_0x50a1b7=_0x1ffbaa=>{const _0x4b212e=_0x31d6;var _0x378058;this[_0x4b212e(0x3ca)](_0x4b212e(0x3f3),'[Window\x20Error]:\x20'+_0x1ffbaa['message']+_0x4b212e(0x3b5)+_0x1ffbaa[_0x4b212e(0x460)]+':'+_0x1ffbaa[_0x4b212e(0x31a)]+':'+_0x1ffbaa['colno']+'\x0a'+(((_0x378058=_0x1ffbaa[_0x4b212e(0x3f3)])==null?void 0x0:_0x378058[_0x4b212e(0x35a)])||''));};window[_0x485feb(0x211)](_0x485feb(0x3f3),_0x50a1b7),this['disposeWithMe'](()=>{const _0x1d37a9=_0x485feb;window[_0x1d37a9(0x3b9)](_0x1d37a9(0x3f3),_0x50a1b7);});}[_0x15b5c6(0x230)](){const _0x322900=_0x15b5c6,_0x320b48=_0x28d87d=>{const _0x22097f=_0x31d6;this[_0x22097f(0x3ca)]('error',_0x22097f(0x30b)+_0x28d87d['reason']);};window[_0x322900(0x211)](_0x322900(0x29f),_0x320b48),this[_0x322900(0x425)](()=>{const _0x5db047=_0x322900;window[_0x5db047(0x3b9)](_0x5db047(0x29f),_0x320b48);});}[_0x15b5c6(0x206)](){const _0x1d9c5a=_0x15b5c6,_0x288029=this[_0x1d9c5a(0x1d5)][_0x1d9c5a(0x3f3)][_0x1d9c5a(0x322)](this[_0x1d9c5a(0x1d5)]);this['_logService'][_0x1d9c5a(0x3f3)]=(..._0x40f93d)=>{const _0x47e332=_0x1d9c5a,_0x41de9b=_0x40f93d[_0x47e332(0x343)](_0x130091=>_0x130091 instanceof Error?_0x130091[_0x47e332(0x22a)]+'\x0a'+_0x130091[_0x47e332(0x35a)]:String(_0x130091))[_0x47e332(0x3dd)]('\x20');this['_uploadLog'](_0x47e332(0x3f3),_0x47e332(0x39d)+_0x41de9b),_0x288029(..._0x40f93d);},this['disposeWithMe'](()=>{const _0x5528d2=_0x1d9c5a;this[_0x5528d2(0x1d5)][_0x5528d2(0x3f3)]=_0x288029;});}['_uploadLog'](_0x29c9f5,_0x4ef14b){const _0x178cc7=_0x15b5c6;try{const _0x2f6bea={'userId':this[_0x178cc7(0x435)],'logLabel':_0x29c9f5,'content':_0x4ef14b};this[_0x178cc7(0x3b4)]['post'](_0x178cc7(0x39f),{'body':_0x2f6bea})[_0x178cc7(0x195)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x15b5c6(0x3bb)](a['Injector'])),z(0x1,a[_0x15b5c6(0x3bb)](x[_0x15b5c6(0x403)])),z(0x2,a[_0x15b5c6(0x434)]),z(0x3,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x38c)]))],Q);const Yt=_0x15b5c6(0x2bc),Me={};var Ht=Object[_0x15b5c6(0x43d)],Wt=(_0x4d59de,_0x426218,_0x248f4d,_0x3f0395)=>{const _0x32cbf9=_0x15b5c6;for(var _0x1dfd23=_0x3f0395>0x1?void 0x0:_0x3f0395?Ht(_0x426218,_0x248f4d):_0x426218,_0x2da76c=_0x4d59de[_0x32cbf9(0x45c)]-0x1,_0x3bf56f;_0x2da76c>=0x0;_0x2da76c--)(_0x3bf56f=_0x4d59de[_0x2da76c])&&(_0x1dfd23=_0x3bf56f(_0x1dfd23)||_0x1dfd23);return _0x1dfd23;},Ae=(_0x4c253b,_0x553e43)=>(_0x2abb81,_0x5f4b37)=>_0x553e43(_0x2abb81,_0x5f4b37,_0x4c253b);function _0x31d6(_0x339782,_0x5062cf){_0x339782=_0x339782-0x195;const _0x2c5675=_0x2c56();let _0x31d685=_0x2c5675[_0x339782];return _0x31d685;}let ee=class{constructor(_0x2586ae,_0x1caac0){const _0x5996fc=_0x15b5c6;this[_0x5996fc(0x1ea)]=_0x2586ae,this['_renderManagerService']=_0x1caac0;}[_0x15b5c6(0x1e1)](_0x51a37f){const _0x5d7530=_0x15b5c6;this['_transformUndoRedoStack'](_0x51a37f),this[_0x5d7530(0x2cd)](_0x51a37f);}[_0x15b5c6(0x384)](_0x4e0546){const _0x5d821a=_0x15b5c6,{unitID:_0x3f7e06}=_0x4e0546,_0x5f5637=this[_0x5d821a(0x280)][_0x5d821a(0x38b)](_0x3f7e06)[_0x5d821a(0x32a)](T[_0x5d821a(0x336)]),{redoCache:_0xb083ff}=_0x5f5637[_0x5d821a(0x286)]();if(_0xb083ff[_0x5d821a(0x45c)]===0x0)return _0x4e0546;let _0x417e5a=a[_0x5d821a(0x396)][_0x5d821a(0x289)](_0x4e0546[_0x5d821a(0x415)][0x0]);for(let _0x500047=0x0;_0x500047<_0xb083ff[_0x5d821a(0x45c)];_0x500047++){const _0x421c53={'id':'doc.mutation.rich-text-editing','params':{..._0xb083ff[_0x500047]}},_0x553fb6=this[_0x5d821a(0x1ea)][_0x5d821a(0x2f6)](_0x417e5a,_0x421c53,!0x1);if(g['isTransformMutationFailure'](_0x553fb6))throw _0x553fb6[_0x5d821a(0x3f3)];_0x417e5a=_0x553fb6[_0x5d821a(0x377)];}return{...a[_0x5d821a(0x396)][_0x5d821a(0x289)](_0x4e0546),'mutations':[_0x417e5a]};}[_0x15b5c6(0x348)](_0x20b026){const _0x2bfd74=_0x15b5c6,{unitID:_0x13cf99}=_0x20b026,_0x36361c=this[_0x2bfd74(0x280)][_0x2bfd74(0x38b)](_0x13cf99)[_0x2bfd74(0x32a)](T[_0x2bfd74(0x336)]),{undoCache:_0x1f6eaa,redoCache:_0x1de6e8}=_0x36361c[_0x2bfd74(0x286)]();if(_0x1f6eaa[_0x2bfd74(0x45c)]===0x0||_0x1de6e8['length']===0x0)return;const _0x1498ce=[],_0x47aa5e=[];let _0x3930e5=a[_0x2bfd74(0x396)][_0x2bfd74(0x289)](_0x20b026[_0x2bfd74(0x415)][0x0]),_0x26ecb2=a[_0x2bfd74(0x396)][_0x2bfd74(0x289)](_0x20b026[_0x2bfd74(0x415)][0x0]);for(let _0x3bd9ef=_0x1f6eaa[_0x2bfd74(0x45c)]-0x1;_0x3bd9ef>=0x0;_0x3bd9ef--){const _0x125952={'id':_0x2bfd74(0x240),'params':{..._0x1f6eaa[_0x3bd9ef]}},_0x2c016b={'id':_0x2bfd74(0x240),'params':{..._0x1de6e8[_0x3bd9ef]}},_0x52ca5f=this[_0x2bfd74(0x1ea)][_0x2bfd74(0x2f6)](_0x3930e5,_0x125952,!0x1),_0xba129d=this[_0x2bfd74(0x1ea)]['transformMutation'](_0x26ecb2,_0x2c016b,!0x1);if(g[_0x2bfd74(0x3a4)](_0x52ca5f))throw _0x52ca5f[_0x2bfd74(0x3f3)];if(g[_0x2bfd74(0x3a4)](_0xba129d))throw _0xba129d[_0x2bfd74(0x3f3)];_0x1498ce['unshift'](_0x52ca5f[_0x2bfd74(0x2a6)][_0x2bfd74(0x293)]),_0x47aa5e[_0x2bfd74(0x32e)](_0xba129d[_0x2bfd74(0x2a6)][_0x2bfd74(0x293)]),_0x3930e5=_0x52ca5f[_0x2bfd74(0x377)],_0x26ecb2=_0xba129d[_0x2bfd74(0x377)];}_0x36361c['setUndoRedoMutationParamsCache']({'undoCache':_0x1498ce,'redoCache':_0x47aa5e});}['_transformPreviousActiveRange'](_0x2515f8){const _0x594af0=_0x15b5c6,{unitID:_0x5c3ce0}=_0x2515f8,_0x5e6cac=this[_0x594af0(0x280)]['getRenderById'](_0x5c3ce0)[_0x594af0(0x32a)](T[_0x594af0(0x336)]),_0x5c0cbc=_0x5e6cac['getActiveRange']();if(_0x5c0cbc==null)return;const _0x4173fa=[{'id':_0x594af0(0x240),'params':{'unitId':_0x2515f8['unitID'],'actions':null,'textRanges':[_0x5c0cbc]}}],_0x51274b=this[_0x594af0(0x1ea)][_0x594af0(0x2e9)](_0x2515f8,_0x4173fa);if(!g[_0x594af0(0x362)](_0x51274b))throw _0x51274b[_0x594af0(0x3f3)];const _0x5c5933=_0x51274b[_0x594af0(0x2a6)][0x0]['params'][_0x594af0(0x30f)];Array['isArray'](_0x5c5933)&&_0x5c5933['length']&&_0x5e6cac[_0x594af0(0x33b)](_0x5c5933[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x15b5c6(0x1e7)])],ee);var Vt=Object[_0x15b5c6(0x43d)],Gt=(_0x23aa58,_0x221996,_0x1cbf6e,_0xb083ba)=>{const _0x5a422b=_0x15b5c6;for(var _0x1daf34=_0xb083ba>0x1?void 0x0:_0xb083ba?Vt(_0x221996,_0x1cbf6e):_0x221996,_0x29fb99=_0x23aa58[_0x5a422b(0x45c)]-0x1,_0x56f78d;_0x29fb99>=0x0;_0x29fb99--)(_0x56f78d=_0x23aa58[_0x29fb99])&&(_0x1daf34=_0x56f78d(_0x1daf34)||_0x1daf34);return _0x1daf34;},Ie=(_0x5e4036,_0x3bc665)=>(_0x53a5e2,_0x61e328)=>_0x3bc665(_0x53a5e2,_0x61e328,_0x5e4036);let te=class{constructor(_0x2e3d1a,_0x15a74e,_0x399b7f){const _0x3a5595=_0x15b5c6;this[_0x3a5595(0x201)]=_0x2e3d1a,this[_0x3a5595(0x1ea)]=_0x15a74e,this['_docStateChangeManagerService']=_0x399b7f;}['transformStateCache'](_0x5dc025){const _0x585301=_0x15b5c6;this[_0x585301(0x19b)](_0x5dc025);}['transformRemoteChangeset'](_0x58b8ae){const _0x39f361=_0x15b5c6,{unitID:_0x2a7453}=_0x58b8ae,{collaboration:_0x3ee22b}=this[_0x39f361(0x2d1)][_0x39f361(0x27c)](_0x2a7453);if(_0x3ee22b[_0x39f361(0x45c)]===0x0)return _0x58b8ae;let _0x5e17f5=a[_0x39f361(0x396)]['deepClone'](_0x58b8ae[_0x39f361(0x415)][0x0]);for(let _0xf88f92=0x0;_0xf88f92<_0x3ee22b['length'];_0xf88f92++){const _0xa07782={'id':_0x39f361(0x240),'params':{'unitId':_0x3ee22b[_0xf88f92][_0x39f361(0x29c)],..._0x3ee22b[_0xf88f92][_0x39f361(0x32f)]}},_0x2e9b2c=this[_0x39f361(0x1ea)][_0x39f361(0x2f6)](_0x5e17f5,_0xa07782,!0x1);if(g[_0x39f361(0x3a4)](_0x2e9b2c))throw _0x2e9b2c[_0x39f361(0x3f3)];_0x5e17f5=_0x2e9b2c[_0x39f361(0x377)];}return{...a['Tools'][_0x39f361(0x289)](_0x58b8ae),'mutations':[_0x5e17f5]};}[_0x15b5c6(0x19b)](_0x2fbb14){const _0x42811e=_0x15b5c6,{unitID:_0x44cd5d}=_0x2fbb14,{history:_0x9b021a,collaboration:_0x2ce0ba}=this[_0x42811e(0x2d1)]['getStateCache'](_0x44cd5d);if(_0x9b021a[_0x42811e(0x45c)]===0x0&&_0x2ce0ba[_0x42811e(0x45c)]===0x0)return;const _0x14bad3=[],_0x430e24=[];let _0x5bcf7d=a[_0x42811e(0x396)]['deepClone'](_0x2fbb14['mutations'][0x0]),_0x1ca309=a['Tools']['deepClone'](_0x2fbb14['mutations'][0x0]);for(let _0x1dbb13=_0x9b021a[_0x42811e(0x45c)]-0x1;_0x1dbb13>=0x0;_0x1dbb13--){const _0x5b3a15={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x9b021a[_0x1dbb13][_0x42811e(0x29c)],..._0x9b021a[_0x1dbb13]['undoState']}},_0x1e1b35={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x9b021a[_0x1dbb13][_0x42811e(0x29c)],..._0x9b021a[_0x1dbb13]['redoState']}},_0x354c5d=this[_0x42811e(0x1ea)][_0x42811e(0x2f6)](_0x5bcf7d,_0x5b3a15,!0x1),_0x5d591d=this['_transformService'][_0x42811e(0x2f6)](_0x1ca309,_0x1e1b35,!0x1);if(g[_0x42811e(0x3a4)](_0x354c5d))throw _0x354c5d[_0x42811e(0x3f3)];if(g[_0x42811e(0x3a4)](_0x5d591d))throw _0x5d591d[_0x42811e(0x3f3)];_0x14bad3['unshift']({..._0x9b021a[_0x1dbb13],'undoState':_0x354c5d[_0x42811e(0x2a6)]['params'],'redoState':_0x5d591d[_0x42811e(0x2a6)]['params']}),_0x5bcf7d=_0x354c5d['m1Prime'],_0x1ca309=_0x5d591d[_0x42811e(0x377)];}_0x5bcf7d=a['Tools'][_0x42811e(0x289)](_0x2fbb14[_0x42811e(0x415)][0x0]),_0x1ca309=a[_0x42811e(0x396)][_0x42811e(0x289)](_0x2fbb14[_0x42811e(0x415)][0x0]);for(let _0x4667e1=_0x2ce0ba[_0x42811e(0x45c)]-0x1;_0x4667e1>=0x0;_0x4667e1--){const _0x36e558={'id':_0x42811e(0x240),'params':{'unitId':_0x2ce0ba[_0x4667e1][_0x42811e(0x29c)],..._0x2ce0ba[_0x4667e1]['undoState']}},_0x4e8604={'id':_0x42811e(0x240),'params':{'unitId':_0x2ce0ba[_0x4667e1][_0x42811e(0x29c)],..._0x2ce0ba[_0x4667e1]['redoState']}},_0x22c5ca=this[_0x42811e(0x1ea)][_0x42811e(0x2f6)](_0x5bcf7d,_0x36e558,!0x1),_0x3e914f=this[_0x42811e(0x1ea)][_0x42811e(0x2f6)](_0x1ca309,_0x4e8604,!0x1);if(g[_0x42811e(0x3a4)](_0x22c5ca))throw _0x22c5ca[_0x42811e(0x3f3)];if(g['isTransformMutationFailure'](_0x3e914f))throw _0x3e914f['error'];_0x430e24[_0x42811e(0x32e)]({..._0x2ce0ba[_0x4667e1],'undoState':_0x22c5ca[_0x42811e(0x2a6)][_0x42811e(0x293)],'redoState':_0x3e914f[_0x42811e(0x2a6)][_0x42811e(0x293)]}),_0x5bcf7d=_0x22c5ca['m1Prime'],_0x1ca309=_0x3e914f['m1Prime'];}this[_0x42811e(0x2d1)][_0x42811e(0x252)](_0x44cd5d,{'history':_0x14bad3,'collaboration':_0x430e24});}};te=Gt([Ie(0x0,a['Inject'](a[_0x15b5c6(0x1c8)])),Ie(0x1,g[_0x15b5c6(0x3e2)]),Ie(0x2,a[_0x15b5c6(0x3bb)](T['DocStateChangeManagerService']))],te);var Xt=Object[_0x15b5c6(0x43d)],Kt=(_0x4c0568,_0xa43728,_0x13a254,_0x3ebfa4)=>{const _0x26cd40=_0x15b5c6;for(var _0x44559c=_0x3ebfa4>0x1?void 0x0:_0x3ebfa4?Xt(_0xa43728,_0x13a254):_0xa43728,_0x384787=_0x4c0568[_0x26cd40(0x45c)]-0x1,_0x1a4168;_0x384787>=0x0;_0x384787--)(_0x1a4168=_0x4c0568[_0x384787])&&(_0x44559c=_0x1a4168(_0x44559c)||_0x44559c);return _0x44559c;},Pe=(_0x362b97,_0x4d219c)=>(_0x15df47,_0x3a8076)=>_0x4d219c(_0x15df47,_0x3a8076,_0x362b97);let se=class{constructor(_0x47f918,_0x556b62){const _0x20f3ff=_0x15b5c6;this[_0x20f3ff(0x201)]=_0x47f918,this[_0x20f3ff(0x1ea)]=_0x556b62;}[_0x15b5c6(0x42c)](_0x55dec0){const _0x121c93=_0x15b5c6;var _0x16e1c5;const _0x43609e=this[_0x121c93(0x201)]['get'](V['DocSelectionManagerService']),_0x26f791=(_0x16e1c5=_0x43609e[_0x121c93(0x3c0)]())!=null?_0x16e1c5:[];if(_0x26f791[_0x121c93(0x45c)]===0x0)return;const _0x10c0ad=_0x55dec0[_0x121c93(0x1d4)],_0x463009=[{'id':_0x121c93(0x240),'params':{'unitId':_0x10c0ad,'actions':null,'textRanges':_0x26f791}}],_0x2ad0ca=this['_transformService']['transformMutationsWithChangeset'](_0x55dec0,_0x463009);if(!g[_0x121c93(0x362)](_0x2ad0ca))throw _0x2ad0ca[_0x121c93(0x3f3)];const _0x3b483e=_0x2ad0ca[_0x121c93(0x2a6)][0x0][_0x121c93(0x293)][_0x121c93(0x30f)];Array[_0x121c93(0x3a9)](_0x3b483e)&&_0x3b483e['length']&&_0x43609e[_0x121c93(0x44b)](_0x3b483e,{'unitId':_0x10c0ad,'subUnitId':_0x10c0ad},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x15b5c6(0x1c8)])),Pe(0x1,g[_0x15b5c6(0x3e2)])],se);var qt=Object[_0x15b5c6(0x43d)],zt=(_0x233b80,_0xa35027,_0x53f99e,_0x1cc0a2)=>{const _0x24bd1d=_0x15b5c6;for(var _0x253506=_0x1cc0a2>0x1?void 0x0:_0x1cc0a2?qt(_0xa35027,_0x53f99e):_0xa35027,_0x4879d6=_0x233b80[_0x24bd1d(0x45c)]-0x1,_0x3dc2b1;_0x4879d6>=0x0;_0x4879d6--)(_0x3dc2b1=_0x233b80[_0x4879d6])&&(_0x253506=_0x3dc2b1(_0x253506)||_0x253506);return _0x253506;},N=(_0x29f32d,_0x9f9c97)=>(_0x466f8e,_0xcfb1df)=>_0x9f9c97(_0x466f8e,_0xcfb1df,_0x29f32d);let ie=class extends a[_0x15b5c6(0x44e)]{constructor(_0x535ffa,_0x102925,_0x50953a,_0xdb17f,_0x567963,_0x562423,_0x5754b0,_0x328e58){const _0x11cb12=_0x15b5c6;super(),_(this,'_status$',new I[(_0x11cb12(0x433))](u[_0x11cb12(0x364)][_0x11cb12(0x437)])),(this[_0x11cb12(0x2d1)]=_0x535ffa,this[_0x11cb12(0x2ad)]=_0x102925,this[_0x11cb12(0x359)]=_0x50953a,this[_0x11cb12(0x41c)]=_0xdb17f,this[_0x11cb12(0x2e4)]=_0x567963,this['_docSyncEditingCollabCursorService']=_0x562423,this['_messageService']=_0x5754b0,this[_0x11cb12(0x21e)]=_0x328e58,this[_0x11cb12(0x296)]());}['_initEntityListener'](){const _0x12e8a1=_0x15b5c6;this[_0x12e8a1(0x425)](this[_0x12e8a1(0x2ad)]['entityInit$'][_0x12e8a1(0x3fc)](_0x87d6c6=>{const _0xafd880=_0x12e8a1,_0x349176=this[_0xafd880(0x2d1)][_0xafd880(0x3ea)][_0xafd880(0x3fc)](_0x5b84d5=>{const _0xaceb0e=_0xafd880;if(_0x5b84d5==null)return;const {unitId:_0x3e1e13,redoState:_0xf52de4,commandId:_0x57f02a}=_0x5b84d5;if(_0x3e1e13!==_0x87d6c6[_0xaceb0e(0x1d4)])return;const _0x1bbf2c={'id':_0x57f02a,'type':a[_0xaceb0e(0x378)]['MUTATION'],'params':{'unitId':_0x3e1e13,'actions':_0xf52de4['actions'],'textRanges':null}};_0x87d6c6[_0xaceb0e(0x430)](_0x1bbf2c);});if(_0x87d6c6[_0xafd880(0x425)](_0x349176),_0x87d6c6 instanceof u[_0xafd880(0x222)]){const _0x26ce20={'onTransformIME':_0x35654a=>this[_0xafd880(0x359)]['transformIMECache'](_0x35654a),'onTransformState':_0x3b40b8=>this[_0xafd880(0x41c)][_0xafd880(0x3f7)](_0x3b40b8),'onTransformSelections':_0xb69ec5=>this['_docTransformSelectionsService'][_0xafd880(0x42c)](_0xb69ec5),'onSyncEditingCollabCursor':_0x43abe0=>this['_docSyncEditingCollabCursorService'][_0xafd880(0x1b4)](_0x43abe0),'onTransformRemoteChangesetByIMECache':_0x53e284=>this[_0xafd880(0x359)][_0xafd880(0x384)](_0x53e284),'onTransformRemoteChangesetByStateCache':_0x31ae96=>this[_0xafd880(0x41c)][_0xafd880(0x384)](_0x31ae96)};_0x87d6c6[_0xafd880(0x2b1)](_0x26ce20);}}));}};ie=zt([N(0x0,a[_0x15b5c6(0x3bb)](T[_0x15b5c6(0x24e)])),N(0x1,a['Inject'](u[_0x15b5c6(0x3af)])),N(0x2,a[_0x15b5c6(0x3bb)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x15b5c6(0x3bb)](se)),N(0x5,a[_0x15b5c6(0x3bb)](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x15b5c6(0x3bb)](a[_0x15b5c6(0x376)]))],ie);var G=(_0x1afcba=>(_0x1afcba[_0x1afcba[_0x15b5c6(0x30c)]=0x0]=_0x15b5c6(0x30c),_0x1afcba[_0x1afcba['OK']=0x1]='OK',_0x1afcba[_0x1afcba['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x1afcba[_0x1afcba[_0x15b5c6(0x374)]=0x3]=_0x15b5c6(0x374),_0x1afcba[_0x1afcba[_0x15b5c6(0x451)]=0x4]=_0x15b5c6(0x451),_0x1afcba[_0x1afcba[_0x15b5c6(0x426)]=0x5]=_0x15b5c6(0x426),_0x1afcba[_0x1afcba[_0x15b5c6(0x23e)]=0x6]='ALREADY_EXISTS',_0x1afcba[_0x1afcba[_0x15b5c6(0x232)]=0x7]='INVALID_ARGUMENT',_0x1afcba[_0x1afcba[_0x15b5c6(0x26d)]=0x8]='TOO_MANY_REQUESTS',_0x1afcba[_0x1afcba['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x1afcba[_0x1afcba[_0x15b5c6(0x39c)]=0xa]=_0x15b5c6(0x39c),_0x1afcba[_0x1afcba[_0x15b5c6(0x20d)]=0xb]=_0x15b5c6(0x20d),_0x1afcba[_0x1afcba[_0x15b5c6(0x1ac)]=0xc]=_0x15b5c6(0x1ac),_0x1afcba[_0x1afcba[_0x15b5c6(0x31d)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x1afcba[_0x1afcba[_0x15b5c6(0x416)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x1afcba[_0x1afcba[_0x15b5c6(0x43b)]=0xf]=_0x15b5c6(0x43b),_0x1afcba[_0x1afcba[_0x15b5c6(0x3c2)]=0x10]=_0x15b5c6(0x3c2),_0x1afcba[_0x1afcba[_0x15b5c6(0x3f1)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x1afcba[_0x1afcba[_0x15b5c6(0x25b)]=0x65]=_0x15b5c6(0x25b),_0x1afcba[_0x1afcba[_0x15b5c6(0x3c4)]=0xc9]=_0x15b5c6(0x3c4),_0x1afcba[_0x1afcba[_0x15b5c6(0x315)]=0xca]=_0x15b5c6(0x315),_0x1afcba[_0x1afcba[_0x15b5c6(0x457)]=0x1389]=_0x15b5c6(0x457),_0x1afcba[_0x1afcba['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x15b5c6(0x3d0),_0x1afcba[_0x1afcba['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1afcba[_0x1afcba['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x15b5c6(0x259),_0x1afcba[_0x1afcba[_0x15b5c6(0x417)]=0x1b59]='APPLY_REJECT',_0x1afcba[_0x1afcba[_0x15b5c6(0x2e1)]=0x1b5a]=_0x15b5c6(0x2e1),_0x1afcba[_0x1afcba[_0x15b5c6(0x3cd)]=0x1b5b]=_0x15b5c6(0x3cd),_0x1afcba[_0x1afcba['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x15b5c6(0x24c),_0x1afcba[_0x1afcba[_0x15b5c6(0x386)]=0x1b5d]=_0x15b5c6(0x386),_0x1afcba[_0x1afcba[_0x15b5c6(0x1d6)]=0x1f41]=_0x15b5c6(0x1d6),_0x1afcba[_0x1afcba[_0x15b5c6(0x379)]=0x2329]=_0x15b5c6(0x379),_0x1afcba[_0x1afcba[_0x15b5c6(0x290)]=0x232a]=_0x15b5c6(0x290),_0x1afcba[_0x1afcba[_0x15b5c6(0x221)]=0x232b]=_0x15b5c6(0x221),_0x1afcba[_0x1afcba[_0x15b5c6(0x459)]=0x232c]=_0x15b5c6(0x459),_0x1afcba[_0x1afcba[_0x15b5c6(0x31c)]=0x232d]=_0x15b5c6(0x31c),_0x1afcba[_0x1afcba[_0x15b5c6(0x2eb)]=0x2711]=_0x15b5c6(0x2eb),_0x1afcba[_0x1afcba['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1afcba[_0x1afcba['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1afcba[_0x1afcba[_0x15b5c6(0x2da)]=0x2714]=_0x15b5c6(0x2da),_0x1afcba[_0x1afcba[_0x15b5c6(0x33f)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x1afcba[_0x1afcba[_0x15b5c6(0x307)]=0x271b]=_0x15b5c6(0x307),_0x1afcba[_0x1afcba[_0x15b5c6(0x204)]=0x271c]=_0x15b5c6(0x204),_0x1afcba[_0x1afcba['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x15b5c6(0x350),_0x1afcba[_0x1afcba[_0x15b5c6(0x346)]=0x271e]=_0x15b5c6(0x346),_0x1afcba[_0x1afcba['YUUMI_AI_RUN_FAILED']=0x271f]=_0x15b5c6(0x32d),_0x1afcba[_0x1afcba[_0x15b5c6(0x3be)]=0x2720]=_0x15b5c6(0x3be),_0x1afcba[_0x1afcba['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x15b5c6(0x220),_0x1afcba[_0x1afcba['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x15b5c6(0x1ef),_0x1afcba[_0x1afcba[_0x15b5c6(0x1c6)]=0x2ee2]='INVALID_INVITE_CODE',_0x1afcba[_0x1afcba[_0x15b5c6(0x2c7)]=0x2ee3]=_0x15b5c6(0x2c7),_0x1afcba[_0x1afcba[_0x15b5c6(0x1e0)]=0x2ee4]=_0x15b5c6(0x1e0),_0x1afcba[_0x1afcba['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x15b5c6(0x3c5),_0x1afcba[_0x1afcba[_0x15b5c6(0x239)]=0x32c9]=_0x15b5c6(0x239),_0x1afcba[_0x1afcba[_0x15b5c6(0x1e4)]=0x32ca]=_0x15b5c6(0x1e4),_0x1afcba[_0x1afcba[_0x15b5c6(0x39e)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x1afcba[_0x1afcba[_0x15b5c6(0x272)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x1afcba[_0x1afcba[_0x15b5c6(0x392)]=0x36b2]=_0x15b5c6(0x392),_0x1afcba[_0x1afcba[_0x15b5c6(0x312)]=0x36b3]=_0x15b5c6(0x312),_0x1afcba[_0x1afcba['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x15b5c6(0x309),_0x1afcba[_0x1afcba[_0x15b5c6(0x2fb)]=0x36b5]=_0x15b5c6(0x2fb),_0x1afcba[_0x1afcba[_0x15b5c6(0x3fd)]=0x36b6]=_0x15b5c6(0x3fd),_0x1afcba[_0x1afcba['ENTITLE_COUPON_USED_UP']=0x36b7]='ENTITLE_COUPON_USED_UP',_0x1afcba[_0x1afcba[_0x15b5c6(0x395)]=0x36b8]=_0x15b5c6(0x395),_0x1afcba[_0x1afcba[_0x15b5c6(0x3a7)]=0x3715]=_0x15b5c6(0x3a7),_0x1afcba[_0x1afcba[_0x15b5c6(0x409)]=0x3716]=_0x15b5c6(0x409),_0x1afcba[_0x1afcba[_0x15b5c6(0x2c1)]=0x3717]=_0x15b5c6(0x2c1),_0x1afcba[_0x1afcba[_0x15b5c6(0x2ac)]=0x37dd]=_0x15b5c6(0x2ac),_0x1afcba[_0x1afcba[_0x15b5c6(0x3ff)]=0x3a99]=_0x15b5c6(0x3ff),_0x1afcba[_0x1afcba[_0x15b5c6(0x375)]=0x3a9a]=_0x15b5c6(0x375),_0x1afcba[_0x1afcba['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x15b5c6(0x44f),_0x1afcba[_0x1afcba['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x15b5c6(0x253),_0x1afcba[_0x1afcba[_0x15b5c6(0x2d6)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x1afcba[_0x1afcba['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x1afcba[_0x1afcba[_0x15b5c6(0x237)]=0x3a9f]=_0x15b5c6(0x237),_0x1afcba[_0x1afcba['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x15b5c6(0x2ba),_0x1afcba[_0x1afcba[_0x15b5c6(0x2c8)]=-0x1]=_0x15b5c6(0x2c8),_0x1afcba))(G||{});function Jt(_0x3cb16c){const _0x1b7b2b=_0x15b5c6;var _0x52d354,_0x30cc31;const _0x1f3a37=(_0x52d354=_0x3cb16c[_0x1b7b2b(0x2c4)])==null?void 0x0:_0x52d354[_0x1b7b2b(0x273)],_0x48d57d=((_0x30cc31=_0x3cb16c[_0x1b7b2b(0x2c4)])==null?void 0x0:_0x30cc31[_0x1b7b2b(0x30a)])||0x0;return _0x1f3a37===B[_0x1b7b2b(0x297)][_0x1b7b2b(0x1a8)]&&_0x48d57d>0x0;}function Zt(_0x17fe05){const _0x2badfa=_0x15b5c6;return _0x17fe05[_0x2badfa(0x21d)]===B[_0x2badfa(0x258)][_0x2badfa(0x288)];}var Qt=Object[_0x15b5c6(0x43d)],es=(_0xb390de,_0x1ffbf3,_0x2288e8,_0x4b44fd)=>{const _0x3f7833=_0x15b5c6;for(var _0x5c43be=_0x4b44fd>0x1?void 0x0:_0x4b44fd?Qt(_0x1ffbf3,_0x2288e8):_0x1ffbf3,_0x1ecb87=_0xb390de[_0x3f7833(0x45c)]-0x1,_0xe98548;_0x1ecb87>=0x0;_0x1ecb87--)(_0xe98548=_0xb390de[_0x1ecb87])&&(_0x5c43be=_0xe98548(_0x5c43be)||_0x5c43be);return _0x5c43be;},L=(_0x553398,_0x5437ee)=>(_0x5291f1,_0x561f2b)=>_0x5437ee(_0x5291f1,_0x561f2b,_0x553398);const ts=_0x15b5c6(0x199),ss=_0x15b5c6(0x351),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x15b5c6(0x44e)]{constructor(_0x3da072,_0x33dc82,_0x12a6db,_0x10b2ef,_0x523b38,_0x315dc0,_0x2c7f22){const _0x8bef5a=_0x15b5c6;super(),_(this,'_pollingInterval',null),_(this,_0x8bef5a(0x446),0x0),_(this,'_currentUsage',0x0),_(this,_0x8bef5a(0x1b2),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x8bef5a(0x21f)]=_0x3da072,this[_0x8bef5a(0x340)]=_0x33dc82,this[_0x8bef5a(0x41f)]=_0x12a6db,this['_httpService']=_0x10b2ef,this[_0x8bef5a(0x2fc)]=_0x523b38,this['_logService']=_0x315dc0,this[_0x8bef5a(0x21e)]=_0x2c7f22,this[_0x8bef5a(0x29e)]());}[_0x15b5c6(0x29e)](){const _0x2cc104=_0x15b5c6;this[_0x2cc104(0x425)](this[_0x2cc104(0x340)][_0x2cc104(0x3b6)]((_0x463f46,_0x5c5a84)=>{const _0x39f237=_0x2cc104;var _0x1deca9;if(_0x463f46['id']!==B[_0x39f237(0x22e)]['id'])return;const _0x38f16f=_0x463f46[_0x39f237(0x293)];if(!this['_hasFormulaInDirtyRanges']((_0x1deca9=_0x38f16f[_0x39f237(0x40e)])!=null?_0x1deca9:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x39f237(0x438)](_0x463f46,_0x5c5a84),this['_showGuardMessage'](),new a[(_0x39f237(0x439))]();})),this[_0x2cc104(0x425)](this[_0x2cc104(0x340)][_0x2cc104(0x2a8)]((_0x4bf1f5,_0x5caef2)=>{const _0x45ff97=_0x2cc104;if(_0x4bf1f5['id']!==B[_0x45ff97(0x22d)]['id'])return;const _0x7a14c2=_0x4bf1f5['params'];if(Jt(_0x7a14c2)){const _0x4dd776=a[_0x45ff97(0x1dd)]();this['_taskIds'][_0x45ff97(0x320)](_0x4dd776),this[_0x45ff97(0x3cb)](_0x4dd776);}else{if(Zt(_0x7a14c2)&&this['_taskIds'][_0x45ff97(0x45c)]>0x0){const _0x1abc6d=this['_taskIds'][_0x45ff97(0x372)]();this['_releaseCalculationLimit'](_0x1abc6d);}}}));}[_0x15b5c6(0x327)](){const _0x345fb8=_0x15b5c6;super[_0x345fb8(0x327)](),this[_0x345fb8(0x29a)](),this['_taskIds']=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x15b5c6(0x438)](_0x487213,_0x3dcca9){const _0x2fefda=_0x15b5c6;for(let _0x5abd62=0x0;_0x5abd62<0x1e;_0x5abd62++)try{if(await this[_0x2fefda(0x19f)](),this[_0x2fefda(0x1d3)]()){this[_0x2fefda(0x2b8)](_0x487213,_0x3dcca9),this[_0x2fefda(0x21f)]['show']({'content':this['_localeService']['t']('formula.calculation.started'),'type':p[_0x2fefda(0x292)][_0x2fefda(0x2af)]});return;}await new Promise(_0x15dde2=>{const _0x220a94=_0x2fefda;this[_0x220a94(0x2f8)]=window[_0x220a94(0x19d)](_0x15dde2,0x3e8);});}catch(_0xdc813){this['_logService'][_0x2fefda(0x3f3)](_0xdc813);}this[_0x2fefda(0x21f)][_0x2fefda(0x37b)]({'content':this[_0x2fefda(0x21e)]['t'](_0x2fefda(0x3de)),'type':p['MessageType'][_0x2fefda(0x2f4)]});}[_0x15b5c6(0x2b8)](_0x25780b,_0x366cff){const _0x290b2c=_0x15b5c6;try{this[_0x290b2c(0x340)][_0x290b2c(0x28c)](_0x25780b['id'],_0x25780b[_0x290b2c(0x293)],_0x366cff);}catch(_0x5796de){this[_0x290b2c(0x1d5)]['error'](_0x5796de);}}[_0x15b5c6(0x276)](_0x2641f1,_0x7d023e){const _0x5a5a9a=_0x15b5c6;_0x7d023e<this['_lastResponseTimestamp']||(this[_0x5a5a9a(0x2cc)]=_0x7d023e,this['_maxFormulaLimit']=Number[_0x5a5a9a(0x226)](_0x2641f1[_0x5a5a9a(0x20f)]),this[_0x5a5a9a(0x339)]=Number[_0x5a5a9a(0x226)](_0x2641f1[_0x5a5a9a(0x2d5)]));}async['_startCalculationLimit'](_0x465ce2){const _0xfc4a12=_0x15b5c6;var _0x26e3ef,_0x3bd11c;const _0x34cc58=Date[_0xfc4a12(0x33a)]();try{const _0x47e46a=((_0x26e3ef=this['_configService'][_0xfc4a12(0x341)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x26e3ef[_0xfc4a12(0x2bd)])||ss,_0x1cc4dc=(await this[_0xfc4a12(0x3b4)]['post'](_0x47e46a,{'body':JSON[_0xfc4a12(0x2ee)]({'taskId':_0x465ce2})}))[_0xfc4a12(0x2a1)];if(((_0x3bd11c=_0x1cc4dc[_0xfc4a12(0x3f3)])==null?void 0x0:_0x3bd11c['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x1cc4dc['limitInfo'],_0x34cc58);}catch(_0x22d3b8){this[_0xfc4a12(0x1d5)][_0xfc4a12(0x3f3)](_0x22d3b8);}}async[_0x15b5c6(0x19f)](_0x4c9089){const _0x5b612c=_0x15b5c6;var _0x35ea60,_0x2e5171;const _0x3b91a9=Date[_0x5b612c(0x33a)]();try{const _0x40425d=((_0x35ea60=this[_0x5b612c(0x41f)]['getConfig'](u[_0x5b612c(0x228)]))==null?void 0x0:_0x35ea60['getformulaLimitStatusUrl'])||ts,_0x5d23d6=_0x4c9089?_0x40425d+_0x5b612c(0x1c9)+encodeURIComponent(_0x4c9089):_0x40425d,_0x25f22f=(await this[_0x5b612c(0x3b4)][_0x5b612c(0x2c9)](_0x5d23d6))[_0x5b612c(0x2a1)];if(((_0x2e5171=_0x25f22f[_0x5b612c(0x3f3)])==null?void 0x0:_0x2e5171[_0x5b612c(0x342)])!==G['OK'])return;this[_0x5b612c(0x276)](_0x25f22f[_0x5b612c(0x302)],_0x3b91a9);}catch(_0x2c2128){this[_0x5b612c(0x1d5)][_0x5b612c(0x3f3)](_0x2c2128);}}async['_releaseCalculationLimit'](_0x491251){const _0x4bf6d2=_0x15b5c6;var _0x368513,_0x53b702;const _0x362a4f=Date[_0x4bf6d2(0x33a)]();try{const _0x4208e3=((_0x368513=this[_0x4bf6d2(0x41f)][_0x4bf6d2(0x341)](u[_0x4bf6d2(0x228)]))==null?void 0x0:_0x368513[_0x4bf6d2(0x328)])||is,_0x5aa17e=(await this[_0x4bf6d2(0x3b4)][_0x4bf6d2(0x205)](_0x4208e3,{'body':JSON['stringify']({'taskId':_0x491251})}))[_0x4bf6d2(0x2a1)];if(((_0x53b702=_0x5aa17e[_0x4bf6d2(0x3f3)])==null?void 0x0:_0x53b702['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x5aa17e['limitInfo'],_0x362a4f);}catch(_0xad191c){this[_0x4bf6d2(0x1d5)][_0x4bf6d2(0x3f3)](_0xad191c);}}[_0x15b5c6(0x1d3)](){const _0x2bcf03=_0x15b5c6;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x2bcf03(0x339)]>0x0;}[_0x15b5c6(0x29a)](){const _0xb778c8=_0x15b5c6;this[_0xb778c8(0x2f8)]&&(clearTimeout(this[_0xb778c8(0x2f8)]),this['_pollingInterval']=null);}[_0x15b5c6(0x407)](){const _0x405dff=_0x15b5c6;this[_0x405dff(0x21f)][_0x405dff(0x37b)]({'content':this[_0x405dff(0x21e)]['t']('formula.calculation.waiting'),'type':p[_0x405dff(0x292)][_0x405dff(0x257)]});}[_0x15b5c6(0x423)](_0x2cc9fa){const _0x23d868=_0x15b5c6;for(const _0xd6c0ff of _0x2cc9fa){const {unitId:_0x2a0923,sheetId:_0x2eb941,range:_0x21f421}=_0xd6c0ff,_0x5cc0bb=this[_0x23d868(0x2fc)][_0x23d868(0x1ba)](_0x2a0923);if(!_0x5cc0bb)continue;const _0xa7a579=_0x5cc0bb[_0x23d868(0x3fa)](_0x2eb941);if(!_0xa7a579)continue;const _0x268abc=_0xa7a579[_0x23d868(0x1f0)]();for(let _0x37b93f=_0x21f421[_0x23d868(0x270)];_0x37b93f<=_0x21f421[_0x23d868(0x1cf)];_0x37b93f++)for(let _0x40c7dc=_0x21f421[_0x23d868(0x33c)];_0x40c7dc<=_0x21f421[_0x23d868(0x1a9)];_0x40c7dc++){const _0x1fbb00=_0x268abc[_0x23d868(0x441)](_0x37b93f,_0x40c7dc);if(_0x1fbb00&&(a[_0x23d868(0x2dd)](_0x1fbb00['f'])||a['isFormulaId'](_0x1fbb00['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x15b5c6(0x3bb)](O['IMessageService'])),L(0x1,a[_0x15b5c6(0x285)]),L(0x2,a['IConfigService']),L(0x3,a[_0x15b5c6(0x3bb)](x[_0x15b5c6(0x403)])),L(0x4,a[_0x15b5c6(0x333)]),L(0x5,a['ILogService']),L(0x6,a[_0x15b5c6(0x3bb)](a['LocaleService']))],ne);var ns=Object[_0x15b5c6(0x43d)],rs=(_0x421763,_0x408496,_0x2d10e3,_0x4be742)=>{const _0x23d364=_0x15b5c6;for(var _0x1a0232=_0x4be742>0x1?void 0x0:_0x4be742?ns(_0x408496,_0x2d10e3):_0x408496,_0x145db7=_0x421763[_0x23d364(0x45c)]-0x1,_0x371a62;_0x145db7>=0x0;_0x145db7--)(_0x371a62=_0x421763[_0x145db7])&&(_0x1a0232=_0x371a62(_0x1a0232)||_0x1a0232);return _0x1a0232;},Se=(_0xb6df78,_0x56c92d)=>(_0x1a521b,_0x3580d6)=>_0x56c92d(_0x1a521b,_0x3580d6,_0xb6df78);let Te=class extends a[_0x15b5c6(0x44e)]{constructor(_0x2901fa,_0x299e27,_0x5de06f){const _0x356052=_0x15b5c6;super(),_(this,_0x356052(0x1e8),new Map()),_(this,_0x356052(0x2cb),new Map()),_(this,_0x356052(0x1cc),!0x1),(this[_0x356052(0x41f)]=_0x2901fa,this[_0x356052(0x234)]=_0x299e27,this[_0x356052(0x35e)]=_0x5de06f);}[_0x15b5c6(0x1e6)](){const _0x457167=_0x15b5c6;this[_0x457167(0x1cc)]=!0x0;}[_0x15b5c6(0x23d)](){const _0x34f227=_0x15b5c6;this[_0x34f227(0x1cc)]=!0x1;}get[_0x15b5c6(0x3d4)](){const _0x3b6749=_0x15b5c6;return this[_0x3b6749(0x2cb)];}[_0x15b5c6(0x327)](){const _0x2ffbae=_0x15b5c6;this['exhaustSavingTask']()[_0x2ffbae(0x19e)](()=>super[_0x2ffbae(0x327)]());}async[_0x15b5c6(0x2ff)](_0x62053e){const _0x4b6a40=_0x15b5c6;return this[_0x4b6a40(0x1cc)]?null:this['_localStorageService'][_0x4b6a40(0x3e1)](u[_0x4b6a40(0x2ab)](_0x62053e));}async[_0x15b5c6(0x213)](_0x2c0054,_0x912131){const _0x456009=_0x15b5c6;return!!this[_0x456009(0x234)][_0x456009(0x1fe)](_0x2c0054,_0x912131);}[_0x15b5c6(0x3e6)](_0x2621e1,_0x544d44,_0x50523d,_0x5d5d85){const _0x3468cd=_0x15b5c6,_0x543509=this['_revisionService'][_0x3468cd(0x284)](_0x2621e1);this[_0x3468cd(0x1e8)][_0x3468cd(0x196)](_0x2621e1,{'unitID':_0x2621e1,'type':_0x544d44,'awaitingChangeset':_0x50523d,'mutations':_0x5d5d85,'rev':_0x543509}),this[_0x3468cd(0x2cb)]['has'](_0x2621e1)||this[_0x3468cd(0x254)](_0x2621e1);}[_0x15b5c6(0x254)](_0x1d54b6){const _0x167a1c=_0x15b5c6,_0x5ce4a1=this[_0x167a1c(0x368)]();_0x5ce4a1===0x0?this['_saveCache'](_0x1d54b6):this['_saveTaskMap'][_0x167a1c(0x196)](_0x1d54b6,setTimeout(()=>this[_0x167a1c(0x26a)](_0x1d54b6),_0x5ce4a1));}[_0x15b5c6(0x368)](){const _0x325ba2=_0x15b5c6;var _0x4f9718;return(_0x4f9718=this['_configService'][_0x325ba2(0x341)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x4f9718:u[_0x325ba2(0x203)];}[_0x15b5c6(0x26a)](_0x4401c9){const _0x2c0b85=_0x15b5c6,_0x3f201e=this['_saveTaskMap'][_0x2c0b85(0x2c9)](_0x4401c9);return _0x3f201e!==void 0x0&&window[_0x2c0b85(0x2fa)](_0x3f201e),this[_0x2c0b85(0x234)][_0x2c0b85(0x1fe)](u['getLocalCacheKey'](_0x4401c9),this['_cachedData']['get'](_0x4401c9))[_0x2c0b85(0x19e)](()=>this[_0x2c0b85(0x2cb)][_0x2c0b85(0x329)](_0x4401c9));}async[_0x15b5c6(0x406)](){const _0x238fe4=_0x15b5c6,_0x166e41=[];this['_saveTaskMap'][_0x238fe4(0x449)]((_0x3ec297,_0x240ad9)=>{const _0x33314b=_0x238fe4;window['clearTimeout'](_0x3ec297),_0x166e41[_0x33314b(0x320)](this[_0x33314b(0x26a)](_0x240ad9)['then'](()=>{const _0x31061b=_0x33314b;this['_saveTaskMap'][_0x31061b(0x329)](_0x240ad9);}));}),await Promise[_0x238fe4(0x402)](_0x166e41);}};Te=rs([Se(0x0,a[_0x15b5c6(0x2df)]),Se(0x1,a[_0x15b5c6(0x2e0)]),Se(0x2,a[_0x15b5c6(0x3bb)](g[_0x15b5c6(0x3f8)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x3834d4=_0x15b5c6;super(),_(this,_0x3834d4(0x338)),this['urlChange$']=I[_0x3834d4(0x32b)](window,_0x3834d4(0x40a))[_0x3834d4(0x24a)](I['takeUntil'](this[_0x3834d4(0x34e)]),I[_0x3834d4(0x2d8)](0x1),I['mapTo'](void 0x0));}['setParam'](_0x42f4fa,_0x51d85b,_0x59c368=!0x1){const _0x525fba=_0x15b5c6,_0x24e933=new URL(window['location'][_0x525fba(0x3db)]);_0x24e933[_0x525fba(0x3d8)][_0x525fba(0x196)](_0x42f4fa,_0x51d85b),_0x59c368?window[_0x525fba(0x3c3)]['replaceState']('','',_0x24e933[_0x525fba(0x27d)]()):window[_0x525fba(0x3c3)][_0x525fba(0x456)]('','',_0x24e933[_0x525fba(0x27d)]());}['removeParam'](_0x37220d,_0x4b4c9b=!0x1){const _0x4bb8fb=_0x15b5c6,_0x19224f=new URL(window[_0x4bb8fb(0x347)][_0x4bb8fb(0x3db)]);_0x19224f[_0x4bb8fb(0x3d8)][_0x4bb8fb(0x329)](_0x37220d),_0x4b4c9b?window['history']['replaceState']('','',_0x19224f['toString']()):window['history'][_0x4bb8fb(0x456)]('','',_0x19224f[_0x4bb8fb(0x27d)]());}[_0x15b5c6(0x40c)](_0x189366){const _0x521ffe=_0x15b5c6;var _0x1bde5e;return(_0x1bde5e=new URL(window[_0x521ffe(0x347)][_0x521ffe(0x3db)])[_0x521ffe(0x3d8)][_0x521ffe(0x2c9)](_0x189366))!=null?_0x1bde5e:void 0x0;}}var os=Object[_0x15b5c6(0x443)],as=Object[_0x15b5c6(0x43d)],cs=(_0x51778e,_0x55ca57,_0x41d5b8)=>_0x55ca57 in _0x51778e?os(_0x51778e,_0x55ca57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41d5b8}):_0x51778e[_0x55ca57]=_0x41d5b8,ls=(_0x259750,_0x352383,_0x2e91b2,_0x672c17)=>{const _0x224756=_0x15b5c6;for(var _0x3e73ac=_0x672c17>0x1?void 0x0:_0x672c17?as(_0x352383,_0x2e91b2):_0x352383,_0x4ad25f=_0x259750[_0x224756(0x45c)]-0x1,_0x20aa65;_0x4ad25f>=0x0;_0x4ad25f--)(_0x20aa65=_0x259750[_0x4ad25f])&&(_0x3e73ac=_0x20aa65(_0x3e73ac)||_0x3e73ac);return _0x3e73ac;},de=(_0x44daa7,_0x2daa25)=>(_0x42a767,_0xc0378e)=>_0x2daa25(_0x42a767,_0xc0378e,_0x44daa7),_s=(_0x2afd77,_0x592ef3,_0x554462)=>cs(_0x2afd77,_0x592ef3+'',_0x554462);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x15b5c6(0x1fb)]{constructor(_0x52cc50=Me,_0x54b006,_0x1371c9,_0x5c8fe4){const _0x17a3c6=_0x15b5c6;super(),this[_0x17a3c6(0x294)]=_0x52cc50,this[_0x17a3c6(0x280)]=_0x54b006,this[_0x17a3c6(0x201)]=_0x1371c9,this[_0x17a3c6(0x41f)]=_0x5c8fe4;const {..._0x4891a7}=a[_0x17a3c6(0x207)]({},Me,this[_0x17a3c6(0x294)]);this['_configService'][_0x17a3c6(0x242)](Yt,_0x4891a7);}[_0x15b5c6(0x37e)](){const _0x4259d9=_0x15b5c6;this[_0x4259d9(0x3a5)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x55b537=_0x15b5c6;var _0x626ca0;const _0x4cd872=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x55b537(0x24f)]}],[u[_0x55b537(0x3ba)],{'useClass':Te}],[exports[_0x55b537(0x20c)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x55b537(0x294)][_0x55b537(0x383)]&&_0x4cd872[_0x55b537(0x320)]([Q]),a[_0x55b537(0x216)](this[_0x55b537(0x201)],a[_0x55b537(0x2f9)](_0x4cd872,(_0x626ca0=this[_0x55b537(0x294)])==null?void 0x0:_0x626ca0[_0x55b537(0x1db)]));}[_0x15b5c6(0x256)](){const _0x3e9d95=_0x15b5c6;this['disposeWithMe'](this[_0x3e9d95(0x280)][_0x3e9d95(0x45a)](a[_0x3e9d95(0x295)][_0x3e9d95(0x28e)],[Ee])),this['disposeWithMe'](this[_0x3e9d95(0x280)]['registerRenderModule'](a[_0x3e9d95(0x295)][_0x3e9d95(0x2ae)],[Ce]));}['_initDependencies'](){const _0x52a2c8=_0x15b5c6;a[_0x52a2c8(0x399)](this[_0x52a2c8(0x201)],[[F],[exports[_0x52a2c8(0x20c)]],[ie],[Z],[exports[_0x52a2c8(0x298)]],[ne]]),this[_0x52a2c8(0x294)][_0x52a2c8(0x383)]&&a[_0x52a2c8(0x399)](this['_injector'],[[Q]]);}},_s(exports[_0x15b5c6(0x37d)],_0x15b5c6(0x40d),hs),exports[_0x15b5c6(0x37d)]=ls([a[_0x15b5c6(0x264)](u[_0x15b5c6(0x2b2)]),de(0x1,C[_0x15b5c6(0x1e7)]),de(0x2,a['Inject'](a['Injector'])),de(0x3,a[_0x15b5c6(0x2df)])],exports[_0x15b5c6(0x37d)]);var us=Object[_0x15b5c6(0x43d)],Is=(_0x4e35b3,_0x3885ff,_0x50b906,_0x17f535)=>{const _0x12dbb8=_0x15b5c6;for(var _0x1a57f3=_0x17f535>0x1?void 0x0:_0x17f535?us(_0x3885ff,_0x50b906):_0x3885ff,_0x3b07f9=_0x4e35b3[_0x12dbb8(0x45c)]-0x1,_0x2a2af2;_0x3b07f9>=0x0;_0x3b07f9--)(_0x2a2af2=_0x4e35b3[_0x3b07f9])&&(_0x1a57f3=_0x2a2af2(_0x1a57f3)||_0x1a57f3);return _0x1a57f3;},W=(_0x41ad22,_0x40157d)=>(_0x24dd53,_0xc31374)=>_0x40157d(_0x24dd53,_0xc31374,_0x41ad22);exports['BrowserCollaborationSocketService']=class extends u[_0x15b5c6(0x310)]{constructor(_0x4d96d6,_0x337691,_0x366f44,_0x43dfdb,_0x2237c6){super(_0x4d96d6,_0x337691,_0x366f44,_0x43dfdb,_0x2237c6);}async['createSocket'](_0x175959){const _0xb90d43=_0x15b5c6,_0x4352a6=await this[_0xb90d43(0x2c3)](),_0x5810c3=this[_0xb90d43(0x314)](_0x175959,_0x4352a6);return this[_0xb90d43(0x385)](_0x5810c3);}[_0x15b5c6(0x314)](_0x3a2559,_0x6c0db3){const _0x4a11e5=_0x15b5c6,_0x59f8e3=typeof window>'u'?new URL(_0x3a2559):new URL(_0x3a2559,window[_0x4a11e5(0x347)]['origin']);_0x59f8e3[_0x4a11e5(0x3d8)][_0x4a11e5(0x196)](_0x4a11e5(0x3eb),_0x6c0db3);const _0x16bdf6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4a11e5(0x347)][_0x4a11e5(0x25a)]);return _0x16bdf6[_0x4a11e5(0x2c9)](_0x4a11e5(0x3f6))&&_0x59f8e3[_0x4a11e5(0x3d8)][_0x4a11e5(0x196)]('runId',_0x16bdf6[_0x4a11e5(0x2c9)]('runId')),_0x59f8e3[_0x4a11e5(0x27d)]();}async['_getSessionTicket'](){const _0x59050b=_0x15b5c6;var _0x4d3928,_0x2d7f0,_0x4d4abc;const _0x5a06a8=this[_0x59050b(0x41f)][_0x59050b(0x341)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x3ac534=(_0x4d3928=_0x5a06a8==null?void 0x0:_0x5a06a8['wsSessionTicketUrl'])!=null?_0x4d3928:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4d4abc=(_0x2d7f0=(await this[_0x59050b(0x3b4)][_0x59050b(0x2c9)](_0x3ac534,{'headers':{'Content-Type':_0x59050b(0x2ce)}}))[_0x59050b(0x2a1)])==null?void 0x0:_0x2d7f0[_0x59050b(0x224)])!=null?_0x4d4abc:'';}},exports[_0x15b5c6(0x244)]=Is([W(0x0,a[_0x15b5c6(0x3bb)](a[_0x15b5c6(0x1c8)])),W(0x1,a[_0x15b5c6(0x3bb)](x['HTTPService'])),W(0x2,a['IConfigService']),W(0x3,a[_0x15b5c6(0x434)]),W(0x4,g['ISnapshotServerService'])],exports[_0x15b5c6(0x244)]);var Ss=Object[_0x15b5c6(0x43d)],ds=(_0x1300c8,_0x4cfd4b,_0x377a6f,_0x456530)=>{const _0xa44c56=_0x15b5c6;for(var _0x51dce5=_0x456530>0x1?void 0x0:_0x456530?Ss(_0x4cfd4b,_0x377a6f):_0x4cfd4b,_0x5600af=_0x1300c8[_0xa44c56(0x45c)]-0x1,_0x2b44da;_0x5600af>=0x0;_0x5600af--)(_0x2b44da=_0x1300c8[_0x5600af])&&(_0x51dce5=_0x2b44da(_0x51dce5)||_0x51dce5);return _0x51dce5;},fe=(_0x39e1b9,_0x408376)=>(_0x5a2b0d,_0x5c0bec)=>_0x408376(_0x5a2b0d,_0x5c0bec,_0x39e1b9);exports[_0x15b5c6(0x24d)]=class extends a[_0x15b5c6(0x44e)]{constructor(_0x2600f7,_0x4087ee,_0x2e8ec6){const _0x23c957=_0x15b5c6;super(),this[_0x23c957(0x33e)]=_0x2600f7,this[_0x23c957(0x3b4)]=_0x4087ee,this['_configService']=_0x2e8ec6;}async['runOnServer'](_0x582cc1,_0x1e03f2,_0x2c9a2a,..._0x3e9ef5){const _0x45204b=_0x15b5c6;var _0x58e0bc,_0x269d3d,_0x2fbc5b,_0x3b2b6a;const _0x1c638b=this['_instanceService'][_0x45204b(0x34f)]();if(!_0x1c638b)throw new Error(_0x45204b(0x3b7));const _0x1ac821=((_0x58e0bc=this[_0x45204b(0x41f)][_0x45204b(0x341)](u[_0x45204b(0x3b0)]))!=null?_0x58e0bc:u[_0x45204b(0x411)])+'/'+_0x582cc1+_0x45204b(0x227)+_0x1e03f2,_0x134926=new URL(window[_0x45204b(0x347)][_0x45204b(0x3db)]),_0x2e9911={'scriptId':_0x582cc1,'runId':(_0x269d3d=_0x134926[_0x45204b(0x3d8)][_0x45204b(0x2c9)](_0x45204b(0x3f6)))!=null?_0x269d3d:'','function':_0x1e03f2,'unitId':_0x1c638b[_0x45204b(0x36f)](),'argsOfFunction':JSON['stringify'](_0x3e9ef5),'invokeId':(_0x2fbc5b=_0x2c9a2a['invokeId'])!=null?_0x2fbc5b:'','executionId':(_0x3b2b6a=_0x2c9a2a[_0x45204b(0x1f3)])!=null?_0x3b2b6a:''};try{const _0x577225=await this[_0x45204b(0x3b4)][_0x45204b(0x205)](_0x1ac821,{'body':_0x2e9911});return _0x577225[_0x45204b(0x2a1)][_0x45204b(0x3f3)]&&_0x577225['body'][_0x45204b(0x3f3)][_0x45204b(0x342)]!==G['OK']?_0x45204b(0x431):_0x577225['body']['result'];}catch{return _0x45204b(0x431);}}},exports[_0x15b5c6(0x24d)]=ds([fe(0x0,a[_0x15b5c6(0x333)]),fe(0x1,a[_0x15b5c6(0x3bb)](x[_0x15b5c6(0x403)])),fe(0x2,a[_0x15b5c6(0x2df)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0x15b5c6(0x1a1);class fs extends a[_0x15b5c6(0x44e)]{constructor(){const _0x12ff51=_0x15b5c6;super(),_(this,_0x12ff51(0x1f2),a['generateRandomId']()),_(this,_0x12ff51(0x2d9),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x12ff51(0x28b),null),_(this,_0x12ff51(0x28f),new Map()),_(this,_0x12ff51(0x1fd),new Map()),this[_0x12ff51(0x462)]();}[_0x15b5c6(0x327)](){const _0x2249c3=_0x15b5c6;super[_0x2249c3(0x327)](),this['_clearOtherTimers'][_0x2249c3(0x449)]((_0x4a1bfc,_0x4c5c89)=>this[_0x2249c3(0x269)](_0x4c5c89)),this['_heartbeatTimer']&&window[_0x2249c3(0x25c)](this[_0x2249c3(0x28b)]);}[_0x15b5c6(0x1ff)](_0x3f51e0){const _0xf28826=_0x15b5c6;return this[_0xf28826(0x22c)](_0x3f51e0)['pipe'](I[_0xf28826(0x42a)]());}[_0x15b5c6(0x260)](_0x418c07){const _0x1286fd=_0x15b5c6;this[_0x1286fd(0x2d9)][_0x1286fd(0x332)]===0x0&&this[_0x1286fd(0x38f)](),this['_selfUnitIDs']['add'](_0x418c07),this[_0x1286fd(0x1a3)]({'type':0x0,'memberID':this[_0x1286fd(0x1f2)],'unitIDs':[_0x418c07],'isForwarded':!0x1});}[_0x15b5c6(0x279)](_0x583786){const _0x7e7b5e=_0x15b5c6;this[_0x7e7b5e(0x2d9)][_0x7e7b5e(0x329)](_0x583786),this[_0x7e7b5e(0x2d9)][_0x7e7b5e(0x332)]===0x0&&this[_0x7e7b5e(0x28b)]&&window[_0x7e7b5e(0x25c)](this[_0x7e7b5e(0x28b)]);}[_0x15b5c6(0x462)](){const _0x3ffa4e=_0x15b5c6;this[_0x3ffa4e(0x425)](a['toDisposable'](I[_0x3ffa4e(0x32b)](window,_0x3ffa4e(0x311))[_0x3ffa4e(0x3fc)](_0x174370=>{const _0x2281dd=_0x3ffa4e;if(_0x174370[_0x2281dd(0x319)]!==ye||!_0x174370['newValue'])return;const _0x2a30f3=JSON['parse'](_0x174370[_0x2281dd(0x1a4)]);this[_0x2281dd(0x305)](_0x2a30f3);}))),window[_0x3ffa4e(0x211)](_0x3ffa4e(0x215),()=>this['_send']({'type':0x1,'memberID':this[_0x3ffa4e(0x1f2)],'unitIDs':Array['from'](this[_0x3ffa4e(0x2d9)])}));}[_0x15b5c6(0x305)](_0x439265){const _0x227e49=_0x15b5c6;switch(_0x439265['type']){case 0x0:this['_handleJoinEvent'](_0x439265);break;case 0x1:this[_0x227e49(0x2c2)](_0x439265);break;case 0x2:this['_handleHeartbeatEvent'](_0x439265);break;}}[_0x15b5c6(0x38e)](_0x43fdf6){const _0x2869fe=_0x15b5c6,{unitIDs:_0xf82f49,memberID:_0x5cf691,isForwarded:_0x10290d}=_0x43fdf6;_0xf82f49[_0x2869fe(0x449)](_0x555439=>{const _0x167126=_0x2869fe;if(!_0x10290d&&this['_unitOnClients'][_0x167126(0x1de)](_0x555439)&&this['_ensureSubject'](_0x555439)['next'](u[_0x167126(0x32c)][_0x167126(0x42d)]),!this[_0x167126(0x3a2)]['has'](_0x555439)||!this['_unitOnClients'][_0x167126(0x2c9)](_0x555439)[_0x167126(0x1de)](_0x5cf691)){const _0x1e884a=this[_0x167126(0x3a2)][_0x167126(0x2c9)](_0x555439)||new Set();_0x1e884a[_0x167126(0x3bf)](_0x5cf691),this[_0x167126(0x3a2)]['set'](_0x555439,_0x1e884a),this[_0x167126(0x2f1)](_0x5cf691);}}),_0x10290d||this[_0x2869fe(0x1a3)]({'type':0x0,'memberID':this[_0x2869fe(0x1f2)],'unitIDs':[...this[_0x2869fe(0x2d9)]],'isForwarded':!0x0});}[_0x15b5c6(0x2f1)](_0xb1ab63){const _0x1c8abd=_0x15b5c6;this[_0x1c8abd(0x269)](_0xb1ab63);const _0x11e58f=window['setTimeout'](()=>{const _0x5c9b88=_0x1c8abd;this[_0x5c9b88(0x3a2)][_0x5c9b88(0x449)](_0x35613d=>{_0x35613d['delete'](_0xb1ab63);});},we*0x2);this[_0x1c8abd(0x28f)][_0x1c8abd(0x196)](_0xb1ab63,_0x11e58f);}[_0x15b5c6(0x269)](_0x236d9c){const _0x553c7e=_0x15b5c6;if(this[_0x553c7e(0x28f)]['has'](_0x236d9c)){const _0x280e87=this['_clearOtherTimers']['get'](_0x236d9c);_0x280e87&&window[_0x553c7e(0x2fa)](_0x280e87),this[_0x553c7e(0x28f)]['set'](_0x236d9c,null);}}['_handleLeaveEvent'](_0xc5bdb4){const _0x2aa22f=_0x15b5c6,{memberID:_0x376aa2,unitIDs:_0x2ea100}=_0xc5bdb4;_0x2ea100[_0x2aa22f(0x449)](_0x3181a4=>{const _0x3d34ab=_0x2aa22f;var _0x43e381;const _0x270356=this[_0x3d34ab(0x3a2)][_0x3d34ab(0x2c9)](_0x3181a4);_0x270356&&(_0x270356['delete'](_0x376aa2),(_0x43e381=this[_0x3d34ab(0x22c)](_0x3181a4))==null||_0x43e381[_0x3d34ab(0x337)](_0x270356[_0x3d34ab(0x332)]===0x0?u[_0x3d34ab(0x32c)][_0x3d34ab(0x325)]:u[_0x3d34ab(0x32c)][_0x3d34ab(0x42d)]));}),this[_0x2aa22f(0x269)](_0x376aa2);}[_0x15b5c6(0x321)](_0x71b0b5){const _0x332ad1=_0x15b5c6;this[_0x332ad1(0x2f1)](_0x71b0b5['memberID']);}[_0x15b5c6(0x1a3)](_0x35f204){const _0x45dd93=_0x15b5c6;localStorage[_0x45dd93(0x1fe)](ye,JSON[_0x45dd93(0x2ee)](_0x35f204));}[_0x15b5c6(0x38f)](){const _0x52d43e=_0x15b5c6;this[_0x52d43e(0x28b)]=window['setInterval'](()=>{const _0x25ba50=_0x52d43e;this[_0x25ba50(0x1a3)]({'type':0x2,'memberID':this['_id']});},we);}[_0x15b5c6(0x22c)](_0x1f8cd1){const _0x2467f4=_0x15b5c6;return this['_unitStatus']['has'](_0x1f8cd1)||this['_unitStatus'][_0x2467f4(0x196)](_0x1f8cd1,new I[(_0x2467f4(0x433))](u[_0x2467f4(0x32c)][_0x2467f4(0x325)])),this[_0x2467f4(0x1fd)][_0x2467f4(0x2c9)](_0x1f8cd1);}}exports[_0x15b5c6(0x3b3)]=Oe,exports[_0x15b5c6(0x303)]=je,exports[_0x15b5c6(0x361)]=fs,exports[_0x15b5c6(0x45b)]=ke;
|
|
1
|
+
'use strict';const _0x131176=_0xd4c9;(function(_0x3d1c02,_0x23d02a){const _0x2ad7d2=_0xd4c9,_0x538f53=_0x3d1c02();while(!![]){try{const _0x384dbc=parseInt(_0x2ad7d2(0x49d))/0x1+parseInt(_0x2ad7d2(0x2ca))/0x2*(parseInt(_0x2ad7d2(0x436))/0x3)+parseInt(_0x2ad7d2(0x3b9))/0x4+parseInt(_0x2ad7d2(0x382))/0x5+parseInt(_0x2ad7d2(0x38e))/0x6+parseInt(_0x2ad7d2(0x281))/0x7*(parseInt(_0x2ad7d2(0x3a5))/0x8)+-parseInt(_0x2ad7d2(0x21d))/0x9;if(_0x384dbc===_0x23d02a)break;else _0x538f53['push'](_0x538f53['shift']());}catch(_0x2b775a){_0x538f53['push'](_0x538f53['shift']());}}}(_0x23f6,0x365a6));var Xe=Object['defineProperty'],Ke=(_0x36bd06,_0x3bc57d,_0x2796e5)=>_0x3bc57d in _0x36bd06?Xe(_0x36bd06,_0x3bc57d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2796e5}):_0x36bd06[_0x3bc57d]=_0x2796e5,_=(_0x59b570,_0x3d7705,_0x155d47)=>Ke(_0x59b570,typeof _0x3d7705!='symbol'?_0x3d7705+'':_0x3d7705,_0x155d47);Object[_0x131176(0x335)](exports,Symbol[_0x131176(0x47e)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x364f3f,..._0x19cdab}){const _0x63aa0a=_0x131176,{icon:_0x1c8bcb,id:_0x435f6f,className:_0x34b754,extend:_0x1f7535,..._0x3af05d}=_0x19cdab,_0x52a0dc=(_0x63aa0a(0x2e0)+_0x435f6f+'\x20'+(_0x34b754||''))[_0x63aa0a(0x361)](),_0x99f6a5=A[_0x63aa0a(0x303)]('_'+Qe());return $e(_0x1c8bcb,''+_0x435f6f,{'defIds':_0x1c8bcb[_0x63aa0a(0x1de)],'idSuffix':_0x99f6a5['current']},{'ref':_0x364f3f,'className':_0x52a0dc,..._0x3af05d},_0x1f7535);}function $e(_0x308862,_0x20f0dc,_0x158b45,_0x4e5719,_0x591472){const _0x10cb91=_0x131176;return A[_0x10cb91(0x420)](_0x308862[_0x10cb91(0x454)],{'key':_0x20f0dc,...Je(_0x308862,_0x158b45,_0x591472),..._0x4e5719},(Ze(_0x308862,_0x158b45)[_0x10cb91(0x26f)]||[])[_0x10cb91(0x225)]((_0x4a0475,_0x18b098)=>$e(_0x4a0475,_0x20f0dc+'-'+_0x308862[_0x10cb91(0x454)]+'-'+_0x18b098,_0x158b45,void 0x0,_0x591472)));}function Je(_0x2e59ef,_0x49c5ae,_0x38f1dc){const _0xd9d480=_0x131176,_0xbb02f={..._0x2e59ef[_0xd9d480(0x3dd)]};_0x38f1dc!=null&&_0x38f1dc[_0xd9d480(0x47d)]&&_0xbb02f[_0xd9d480(0x4aa)]===_0xd9d480(0x47d)&&(_0xbb02f[_0xd9d480(0x4aa)]=_0x38f1dc[_0xd9d480(0x47d)]),_0x2e59ef[_0xd9d480(0x454)]===_0xd9d480(0x1fa)&&_0xbb02f['id']&&(_0xbb02f['id']=_0xbb02f['id']+_0x49c5ae[_0xd9d480(0x425)]),Object['entries'](_0xbb02f)[_0xd9d480(0x24a)](([_0x36960a,_0x31bd46])=>{const _0x46e6cb=_0xd9d480;_0x36960a===_0x46e6cb(0x1fa)&&typeof _0x31bd46==_0x46e6cb(0x1e8)&&(_0xbb02f[_0x36960a]=_0x31bd46[_0x46e6cb(0x3b0)](/url\(#(.*)\)/,_0x46e6cb(0x305)+_0x49c5ae[_0x46e6cb(0x425)]+')'));});const {defIds:_0x5d7d06}=_0x49c5ae;return!_0x5d7d06||_0x5d7d06['length']===0x0||(_0x2e59ef[_0xd9d480(0x454)]===_0xd9d480(0x359)&&_0xbb02f['xlink:href']&&(_0xbb02f['xlink:href']=_0xbb02f[_0xd9d480(0x431)]+_0x49c5ae[_0xd9d480(0x425)]),Object[_0xd9d480(0x3e3)](_0xbb02f)[_0xd9d480(0x24a)](([_0x1afbd8,_0x25da96])=>{const _0x1652d6=_0xd9d480;typeof _0x25da96=='string'&&(_0xbb02f[_0x1afbd8]=_0x25da96[_0x1652d6(0x3b0)](/url\(#(.*)\)/,'url(#$1'+_0x49c5ae['idSuffix']+')'));})),_0xbb02f;}function Ze(_0x3937d0,_0x1cd58b){const _0x27ae81=_0x131176;var _0x2b7e81;const {defIds:_0x1b2cd9}=_0x1cd58b;return!_0x1b2cd9||_0x1b2cd9[_0x27ae81(0x2d6)]===0x0?_0x3937d0:_0x3937d0[_0x27ae81(0x454)]===_0x27ae81(0x312)&&((_0x2b7e81=_0x3937d0['children'])!=null&&_0x2b7e81[_0x27ae81(0x2d6)])?{..._0x3937d0,'children':_0x3937d0[_0x27ae81(0x26f)][_0x27ae81(0x225)](_0x52a0f4=>typeof _0x52a0f4['attrs']['id']==_0x27ae81(0x1e8)&&_0x1b2cd9&&_0x1b2cd9['includes'](_0x52a0f4['attrs']['id'])?{..._0x52a0f4,'attrs':{..._0x52a0f4[_0x27ae81(0x3dd)],'id':_0x52a0f4[_0x27ae81(0x3dd)]['id']+_0x1cd58b[_0x27ae81(0x425)]}}:_0x52a0f4)}:_0x3937d0;}function Qe(){const _0x293713=_0x131176;return Math[_0x293713(0x33c)]()[_0x293713(0x1e5)](0x24)[_0x293713(0x405)](0x2,0x8);}pe[_0x131176(0x2c0)]=_0x131176(0x41b);const et={'tag':_0x131176(0x3c9),'attrs':{'xmlns':_0x131176(0x22f),'fill':_0x131176(0x433),'viewBox':_0x131176(0x44a),'width':'1em','height':_0x131176(0x3fd)},'children':[{'tag':'g','attrs':{'clipPath':_0x131176(0x314)},'children':[{'tag':_0x131176(0x37a),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x131176(0x2d1),'strokeWidth':1.2}}]},{'tag':_0x131176(0x312),'attrs':{},'children':[{'tag':_0x131176(0x2c1),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x131176(0x2e1)}}]}]}],'defIds':[_0x131176(0x2a8)]},xe=A[_0x131176(0x2cb)](function(_0x33aaed,_0x11366a){const _0x4ede24=_0x131176;return A[_0x4ede24(0x420)](pe,Object[_0x4ede24(0x362)]({},_0x33aaed,{'id':_0x4ede24(0x24f),'ref':_0x11366a,'icon':et}));});xe[_0x131176(0x2c0)]=_0x131176(0x496);const tt={'tag':_0x131176(0x3c9),'attrs':{'xmlns':_0x131176(0x22f),'fill':_0x131176(0x433),'viewBox':_0x131176(0x3df),'width':_0x131176(0x3fd),'height':_0x131176(0x3fd)},'children':[{'tag':'g','attrs':{'clipPath':_0x131176(0x1eb)},'children':[{'tag':_0x131176(0x37a),'attrs':{'stroke':_0x131176(0x27d),'d':_0x131176(0x3bf),'strokeLinecap':_0x131176(0x2d1),'strokeLinejoin':_0x131176(0x2d1),'strokeWidth':1.2}}]},{'tag':_0x131176(0x312),'attrs':{},'children':[{'tag':_0x131176(0x2c1),'attrs':{'id':_0x131176(0x438)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x131176(0x2e1),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A['forwardRef'](function(_0x5ee9a0,_0x70f69d){const _0x533402=_0x131176;return A['createElement'](pe,Object[_0x533402(0x362)]({},_0x5ee9a0,{'id':_0x533402(0x2ec),'ref':_0x70f69d,'icon':tt}));});Be['displayName']=_0x131176(0x37b);function st(_0x1b8266){const _0x560d26=_0x131176;switch(_0x1b8266){case u[_0x560d26(0x27f)]['OFFLINE']:return _0x560d26(0x25b);case u[_0x560d26(0x27f)][_0x560d26(0x22e)]:return _0x560d26(0x453);case u[_0x560d26(0x27f)][_0x560d26(0x3c4)]:return _0x560d26(0x247);case u[_0x560d26(0x27f)]['NOT_COLLAB']:return _0x560d26(0x216);case u['CollaborationStatus'][_0x560d26(0x3a9)]:case u[_0x560d26(0x27f)][_0x560d26(0x226)]:return _0x560d26(0x30b);case u[_0x560d26(0x27f)][_0x560d26(0x2fc)]:case u[_0x560d26(0x27f)][_0x560d26(0x3db)]:return _0x560d26(0x31b);}}function it(_0x3dff9c){const _0x16ece2=_0x131176,{status$:_0x2e4996}=_0x3dff9c,_0x2cef03=O[_0x16ece2(0x426)](_0x2e4996,u['CollaborationStatus'][_0x16ece2(0x491)]),_0x44bc69=O[_0x16ece2(0x1f6)](a[_0x16ece2(0x3e6)]),_0x133263=O['useDependency'](u[_0x16ece2(0x3e9)]),_0x2583b3=_0x2cef03!==u[_0x16ece2(0x27f)][_0x16ece2(0x34a)],_0x3b913a=_0x44bc69['t'](st(_0x2cef03)),_0x334288=_0x2583b3?M[_0x16ece2(0x36c)](Be,{}):M[_0x16ece2(0x36c)](xe,{}),_0x51fa2b=A[_0x16ece2(0x485)](()=>{const _0x3cda7a=_0x16ece2;_0x2583b3||_0x133263[_0x3cda7a(0x301)]();},[_0x2583b3,_0x133263]);function _0x54de43(){const _0x31ae99=_0x16ece2;return M[_0x31ae99(0x2e4)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x51fa2b,'children':[M[_0x31ae99(0x36c)](_0x31ae99(0x3d5),{'className':p[_0x31ae99(0x29a)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2583b3,'univer-text-red-500':!_0x2583b3}),'children':_0x334288}),M['jsx'](_0x31ae99(0x3d5),{'className':_0x31ae99(0x1da),'children':_0x3b913a})]});}return _0x2583b3?_0x54de43():M[_0x16ece2(0x36c)](p[_0x16ece2(0x3d8)],{'title':_0x44bc69['t'](_0x16ece2(0x3f4)),'children':_0x54de43()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x3ed391,_0x4253dc,_0x11658f,_0x3dec56)=>{const _0x4510ab=_0x131176;for(var _0x3f28cf=_0x3dec56>0x1?void 0x0:_0x3dec56?nt(_0x4253dc,_0x11658f):_0x4253dc,_0x2ed1f9=_0x3ed391[_0x4510ab(0x2d6)]-0x1,_0x1c7028;_0x2ed1f9>=0x0;_0x2ed1f9--)(_0x1c7028=_0x3ed391[_0x2ed1f9])&&(_0x3f28cf=_0x1c7028(_0x3f28cf)||_0x3f28cf);return _0x3f28cf;},K=(_0x2097ae,_0xe6e49c)=>(_0x317d5e,_0x466a50)=>_0xe6e49c(_0x317d5e,_0x466a50,_0x2097ae);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x131176(0x2fe)]{constructor(_0x30256f,_0xd70be8,_0x52b4fe,_0x257b4a){const _0x2d417c=_0x131176;super(),_(this,_0x2d417c(0x44c),new I['BehaviorSubject'](u[_0x2d417c(0x27f)][_0x2d417c(0x491)])),(this[_0x2d417c(0x2d9)]=_0x30256f,this['_injector']=_0xd70be8,this[_0x2d417c(0x3f3)]=_0x52b4fe,this[_0x2d417c(0x1ed)]=_0x257b4a,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x3af203=_0x131176;this[_0x3af203(0x2c7)](this[_0x3af203(0x2d9)]['focused$']['pipe'](I[_0x3af203(0x395)](()=>{const _0x404b5c=_0x3af203,_0x287bd4=this['_univerInstanceService']['getFocusedUnit']();return _0x287bd4?this[_0x404b5c(0x3f3)][_0x404b5c(0x3c2)](_0x287bd4['getUnitId']()):I['of'](null);}),I['switchMap'](_0x3a63c1=>_0x3a63c1?_0x3a63c1[_0x3af203(0x1f0)]:I['of'](u[_0x3af203(0x27f)][_0x3af203(0x491)])))[_0x3af203(0x2da)](_0x126d33=>{const _0x251319=_0x3af203;this[_0x251319(0x44c)][_0x251319(0x23b)](_0x126d33);}));}['_initStatusComponent'](){const _0x4060d7=_0x131176;this['disposeWithMe'](this['_uiPartsService'][_0x4060d7(0x3c0)](O[_0x4060d7(0x396)][_0x4060d7(0x245)],()=>O[_0x4060d7(0x1ee)](ot({'status$':this['_status$']['asObservable']()}),this[_0x4060d7(0x268)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x131176(0x36d)]),K(0x1,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),K(0x2,a[_0x131176(0x2e8)](u[_0x131176(0x358)])),K(0x3,O[_0x131176(0x4b4)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x18bf9e){const {status$:_0x566e60}=_0x18bf9e;return function(){const _0x4a9fbc=_0xd4c9;return M[_0x4a9fbc(0x36c)](it,{'status$':_0x566e60});};}const Oe=a[_0x131176(0x253)]('uni.network.url-service');var at=Object[_0x131176(0x40c)],ct=(_0x49e6f1,_0x5453a6,_0x213756,_0x23a021)=>{for(var _0x2ce09b=_0x23a021>0x1?void 0x0:_0x23a021?at(_0x5453a6,_0x213756):_0x5453a6,_0x31bc55=_0x49e6f1['length']-0x1,_0xd8021;_0x31bc55>=0x0;_0x31bc55--)(_0xd8021=_0x49e6f1[_0x31bc55])&&(_0x2ce09b=_0xd8021(_0x2ce09b)||_0x2ce09b);return _0x2ce09b;},Y=(_0x40667f,_0x248c83)=>(_0x1f2557,_0x5121b4)=>_0x248c83(_0x1f2557,_0x5121b4,_0x40667f);exports['CollaborationDataLoaderController']=class extends a[_0x131176(0x338)]{constructor(_0x42863c,_0x445ad0,_0x474477,_0x1994ad,_0x44d10d){const _0x45cdb5=_0x131176;super(),this[_0x45cdb5(0x49f)]=_0x42863c,this[_0x45cdb5(0x419)]=_0x445ad0,this[_0x45cdb5(0x310)]=_0x474477,this[_0x45cdb5(0x394)]=_0x1994ad,_0x44d10d?_0x44d10d==null||_0x44d10d[_0x45cdb5(0x210)]()['then'](()=>this[_0x45cdb5(0x494)]()):(this[_0x45cdb5(0x419)][_0x45cdb5(0x2e2)](_0x45cdb5(0x3b7),_0x45cdb5(0x2a7)),this[_0x45cdb5(0x494)]());}async['_init'](){const _0x3300e9=_0x131176,_0x31c18b=this[_0x3300e9(0x49f)]['getParam'](_0x3300e9(0x330)),_0x1a6100=this[_0x3300e9(0x49f)][_0x3300e9(0x380)](_0x3300e9(0x3ca)),_0x213ea9=this[_0x3300e9(0x49f)][_0x3300e9(0x380)]('subunit');if(!_0x31c18b||!_0x1a6100){this[_0x3300e9(0x419)][_0x3300e9(0x2e2)](_0x3300e9(0x3b7),_0x3300e9(0x375));return;}const _0x103e39=await this[_0x3300e9(0x394)][_0x3300e9(0x45c)](_0x31c18b,Number(_0x1a6100),_0x213ea9);_0x103e39&&_0x103e39 instanceof a[_0x3300e9(0x34e)]&&this[_0x3300e9(0x3ed)](_0x103e39);}async[_0x131176(0x3ed)](_0x72dd05){const _0xcd980f=_0x131176;await this[_0xcd980f(0x498)](_0x72dd05),_0x72dd05[_0xcd980f(0x1fc)][_0xcd980f(0x465)](I[_0xcd980f(0x208)](this[_0xcd980f(0x447)]))[_0xcd980f(0x2da)](_0xe42640=>{const _0x33861f=_0xcd980f;_0xe42640&&this[_0x33861f(0x2b1)](_0xe42640);}),this[_0xcd980f(0x49f)][_0xcd980f(0x441)][_0xcd980f(0x465)](I['takeUntil'](this[_0xcd980f(0x447)]))[_0xcd980f(0x2da)](()=>this[_0xcd980f(0x498)](_0x72dd05));}['_updateURLWithCurrentState'](_0xe0f077,_0x31dadc=!0x1){const _0x36a3a1=_0x131176,_0x3a6c41=this[_0x36a3a1(0x49f)][_0x36a3a1(0x380)](_0x36a3a1(0x290));_0xe0f077['getSheetId']()!==_0x3a6c41&&this[_0x36a3a1(0x49f)][_0x36a3a1(0x1f3)](_0x36a3a1(0x290),_0xe0f077[_0x36a3a1(0x430)](),_0x31dadc);}async[_0x131176(0x498)](_0x41afe3){const _0x4c9c4f=_0x131176;var _0x24a4a5;const _0x298281=this['_urlService']['getParam'](_0x4c9c4f(0x290));if(!_0x298281||!_0x41afe3[_0x4c9c4f(0x275)](_0x298281)){const _0x53e457=_0x41afe3[_0x4c9c4f(0x277)]()[0x0],_0x24b980=_0x41afe3['getSheetBySheetId'](_0x53e457);if(!_0x24b980)return;this[_0x4c9c4f(0x2b1)](_0x24b980,!0x0),await this['_commandService']['executeCommand'](v[_0x4c9c4f(0x413)]['id'],{'unitId':_0x41afe3['getUnitId'](),'subUnitId':_0x53e457});return;}((_0x24a4a5=_0x41afe3['getActiveSheet']())==null?void 0x0:_0x24a4a5[_0x4c9c4f(0x430)]())!==_0x298281&&await this[_0x4c9c4f(0x310)][_0x4c9c4f(0x2bc)](v[_0x4c9c4f(0x413)]['id'],{'unitId':_0x41afe3[_0x4c9c4f(0x46a)](),'subUnitId':_0x298281});}},exports[_0x131176(0x3be)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x131176(0x3b3)]),Y(0x3,a[_0x131176(0x2e8)](u[_0x131176(0x203)])),Y(0x4,a[_0x131176(0x27c)](qe[_0x131176(0x410)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x131176(0x40c)],_t=(_0x2d5ba4,_0x5d53f2,_0x4523c5,_0x50a74b)=>{const _0x4c6b65=_0x131176;for(var _0x5bdae9=_0x50a74b>0x1?void 0x0:_0x50a74b?lt(_0x5d53f2,_0x4523c5):_0x5d53f2,_0x29525c=_0x2d5ba4[_0x4c6b65(0x2d6)]-0x1,_0x59451b;_0x29525c>=0x0;_0x29525c--)(_0x59451b=_0x2d5ba4[_0x29525c])&&(_0x5bdae9=_0x59451b(_0x5bdae9)||_0x5bdae9);return _0x5bdae9;},De=(_0x49e1df,_0x1ea18d)=>(_0x58287f,_0x576d5f)=>_0x1ea18d(_0x58287f,_0x576d5f,_0x49e1df);let me=class extends a['RxDisposable']{constructor(_0x1ca456,_0x29a94d){const _0x307964=_0x131176;super(),this[_0x307964(0x398)]=_0x1ca456,this['_imageIoService']=_0x29a94d,this[_0x307964(0x494)]();}['_init'](){const _0xec9ddb=_0x131176,_0x48aef6=this;this['disposeWithMe'](this[_0xec9ddb(0x398)][_0xec9ddb(0x213)]({'onBeforePasteImage':async _0x1c76ae=>{const _0x342a2e=_0xec9ddb,_0x40d501=await _0x48aef6[_0x342a2e(0x2bb)][_0x342a2e(0x207)](_0x1c76ae);return _0x40d501?{'source':_0x40d501[_0x342a2e(0x4b1)],'imageSourceType':_0x40d501[_0x342a2e(0x2c9)]}:null;}}));}};me=_t([De(0x0,T[_0x131176(0x367)]),De(0x1,ze[_0x131176(0x32e)])],me);const Ne=['purple.300',_0x131176(0x45b),'green.600','red.300',_0x131176(0x2e5),'yellow.400'];class Re extends a[_0x131176(0x2fe)]{constructor(){const _0x5e8d48=_0x131176;super(...arguments),_(this,_0x5e8d48(0x33d),new Map()),_(this,_0x5e8d48(0x3ef),0x0);}['assignAColorForMemberID'](_0x431c92){const _0x2da7b2=_0x131176;if(this[_0x2da7b2(0x33d)]['has'](_0x431c92))return this['_assignedColors'][_0x2da7b2(0x1fe)](_0x431c92);const _0x2e6edd=Ne[this[_0x2da7b2(0x3ef)]];return this[_0x2da7b2(0x3ef)]=(this[_0x2da7b2(0x3ef)]+0x1)%Ne['length'],this['_assignedColors'][_0x2da7b2(0x3d1)](_0x431c92,_0x2e6edd),_0x2e6edd;}}function Fe(_0x3b28fb){const _0x17c064=_0x131176;let _0x4811a9='';for(const _0x23fafb of _0x3b28fb){const {startOffset:_0x3a358,endOffset:_0x49a187,isActive:_0x4a1036,rangeType:_0x1494a4,segmentId:_0x4dd4f1,segmentPage:_0x306a1e}=_0x23fafb;_0x4811a9[_0x17c064(0x2d6)]&&(_0x4811a9+=','),_0x4811a9+=_0x3a358+':'+_0x49a187+':'+(_0x4a1036?'1':'0')+':'+_0x1494a4+':'+_0x4dd4f1+':'+_0x306a1e;}return _0x4811a9;}function ht(_0x4710e3){const _0xb140da=_0x131176,_0x42dd45=_0x4710e3[_0xb140da(0x202)](','),_0x46334f=[];for(const _0xfaa927 of _0x42dd45){const [_0x1602c5,_0x34e3fd,_0x2938d1,_0x3e20c7,_0x3da04e,_0x519e86]=_0xfaa927[_0xb140da(0x202)](':');_0x46334f[_0xb140da(0x1df)]({'startOffset':Number(_0x1602c5),'endOffset':Number(_0x34e3fd),'collapsed':_0x1602c5===_0x34e3fd,'isActive':_0x2938d1==='1','rangeType':_0x3e20c7===a[_0xb140da(0x2ac)][_0xb140da(0x326)]?a[_0xb140da(0x2ac)][_0xb140da(0x326)]:a[_0xb140da(0x2ac)][_0xb140da(0x1ec)],'segmentId':typeof _0x3da04e=='string'?String(_0x3da04e):'','segmentPage':Number(_0x519e86!=null?_0x519e86:-0x1)});}return _0x46334f[_0xb140da(0x2ae)](_0x34153e=>_0x34153e['isActive'])||(_0x46334f[0x0][_0xb140da(0x315)]=!0x0),_0x46334f;}class be extends a['RxDisposable']{constructor(){const _0x5333f1=_0x131176;super(...arguments),_(this,_0x5333f1(0x445),new I['BehaviorSubject'](null)),_(this,_0x5333f1(0x28b),this[_0x5333f1(0x445)]['asObservable']());}[_0x131176(0x328)](_0x35e1f0){const _0x362bd4=_0x131176,{unitID:_0xddd674,memberID:_0x27f5e9,textRanges:_0x2ffea8}=_0x35e1f0,_0x196b03=Fe(_0x2ffea8);if(_0x196b03==='')return;const _0x3cf098={'unitID':_0xddd674,'memberID':_0x27f5e9,'selection':_0x196b03};this[_0x362bd4(0x445)][_0x362bd4(0x23b)](_0x3cf098);}}var ut=Object[_0x131176(0x40c)],It=(_0x1865ed,_0x2c38a2,_0x31cf46,_0x1d9db4)=>{for(var _0x25a1b0=_0x1d9db4>0x1?void 0x0:_0x1d9db4?ut(_0x2c38a2,_0x31cf46):_0x2c38a2,_0x548f9d=_0x1865ed['length']-0x1,_0x73cee;_0x548f9d>=0x0;_0x548f9d--)(_0x73cee=_0x1865ed[_0x548f9d])&&(_0x25a1b0=_0x73cee(_0x25a1b0)||_0x25a1b0);return _0x25a1b0;},U=(_0x2a0a60,_0x54cb28)=>(_0x546a8a,_0x251b9b)=>_0x54cb28(_0x546a8a,_0x251b9b,_0x2a0a60);const St=0x12c,dt=0x64;let ve=class extends a[_0x131176(0x338)]{constructor(_0x499a14,_0x289cc7,_0x425922,_0x52c136,_0x199934,_0x2bca9e,_0x427731,_0x5e2298,_0x11de1f){const _0x38c738=_0x131176;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x38c738(0x214),new I[(_0x38c738(0x3ac))](new Map())),_(this,_0x38c738(0x39c),this[_0x38c738(0x214)][_0x38c738(0x440)]()),_(this,_0x38c738(0x2f8),new I[(_0x38c738(0x3ac))]([])),_(this,_0x38c738(0x417),this[_0x38c738(0x2f8)][_0x38c738(0x465)](I['debounceTime'](St))),_(this,_0x38c738(0x3cc),a['debounce'](_0x32479c=>{const _0x5022c9=_0x38c738,_0x5204ee={'eventID':g[_0x5022c9(0x3a2)][_0x5022c9(0x397)],'data':{'unitID':this[_0x5022c9(0x278)],'memberID':this[_0x5022c9(0x4b0)][_0x5022c9(0x4a3)](),'selection':Fe(_0x32479c)}};this[_0x5022c9(0x4b0)][_0x5022c9(0x260)](_0x5204ee,this[_0x5022c9(0x278)]);},dt)),(this[_0x38c738(0x278)]=_0x499a14,this[_0x38c738(0x4b0)]=_0x289cc7,this[_0x38c738(0x268)]=_0x425922,this[_0x38c738(0x31f)]=_0x52c136,this['_memberService']=_0x199934,this[_0x38c738(0x40e)]=_0x2bca9e,this['_transformService']=_0x427731,this[_0x38c738(0x2d9)]=_0x5e2298,this[_0x38c738(0x310)]=_0x11de1f);}get[_0x131176(0x342)](){const _0x156bd4=_0x131176;return this[_0x156bd4(0x214)][_0x156bd4(0x365)]();}get[_0x131176(0x3f9)](){const _0x3d1e78=_0x131176;return this[_0x3d1e78(0x2f8)][_0x3d1e78(0x365)]();}['dispose'](){const _0x5a05e8=_0x131176;super[_0x5a05e8(0x40d)](),this[_0x5a05e8(0x214)][_0x5a05e8(0x23b)](new Map()),this[_0x5a05e8(0x214)][_0x5a05e8(0x219)](),this['_roomMembers$'][_0x5a05e8(0x23b)]([]),this[_0x5a05e8(0x2f8)]['complete']();}[_0x131176(0x1f8)](){const _0x48c15a=_0x131176;this[_0x48c15a(0x494)]||(this[_0x48c15a(0x494)]=!0x0,this[_0x48c15a(0x4b0)]['sessionStatus$'][_0x48c15a(0x465)](I[_0x48c15a(0x208)](this[_0x48c15a(0x447)]))[_0x48c15a(0x2da)](_0x54384a=>{const _0x53c552=_0x48c15a;_0x54384a===u[_0x53c552(0x3c1)][_0x53c552(0x474)]?this[_0x53c552(0x3aa)]():this['_toggleOffline']();}),this[_0x48c15a(0x4b0)][_0x48c15a(0x3e1)][_0x48c15a(0x465)](I[_0x48c15a(0x208)](this[_0x48c15a(0x447)]))['subscribe'](_0x3afb93=>{const _0x577573=_0x48c15a,_0x29b656=_0x3afb93[_0x577573(0x3a4)];_0x29b656===g[_0x577573(0x3a2)]['UPDATE_CURSOR']&&this[_0x577573(0x41a)](_0x3afb93),_0x29b656===g[_0x577573(0x3a2)][_0x577573(0x28e)]&&this[_0x577573(0x2d8)](_0x3afb93);}),this[_0x48c15a(0x2c7)](this[_0x48c15a(0x310)]['onCommandExecuted'](_0x4de8a5=>{const _0x3c7f6b=_0x48c15a,_0x49c2c0=_0x4de8a5[_0x3c7f6b(0x344)];_0x49c2c0!=null&&this[_0x3c7f6b(0x3e4)]&&_0x4de8a5['id']===V[_0x3c7f6b(0x443)]['id']&&_0x49c2c0[_0x3c7f6b(0x466)]===this[_0x3c7f6b(0x278)]&&_0x49c2c0[_0x3c7f6b(0x279)]===!0x1&&_0x49c2c0[_0x3c7f6b(0x28c)][_0x3c7f6b(0x2d6)]>0x0&&this['_updateLocalCursor'](_0x49c2c0[_0x3c7f6b(0x28c)]);})),this[_0x48c15a(0x40e)]['collabCursorState$'][_0x48c15a(0x465)](I[_0x48c15a(0x208)](this[_0x48c15a(0x447)]))[_0x48c15a(0x2da)](_0x13e676=>{const _0x340e4f=_0x48c15a;if((_0x13e676==null?void 0x0:_0x13e676[_0x340e4f(0x278)])!==this[_0x340e4f(0x278)])return;const _0x5f52ec={'eventID':g[_0x340e4f(0x3a2)][_0x340e4f(0x397)],'data':_0x13e676};this[_0x340e4f(0x41a)](_0x5f52ec);}),this[_0x48c15a(0x2c7)](this[_0x48c15a(0x310)][_0x48c15a(0x27a)](_0xcab9a=>{const _0x2b5f28=_0x48c15a;if(_0xcab9a['params']==null)return;const _0x443fe5=_0xcab9a[_0x2b5f28(0x344)];if(_0xcab9a['id']!==V[_0x2b5f28(0x404)]['id']||_0x443fe5['unitId']!==this[_0x2b5f28(0x278)])return;const _0x13a3e7={'id':_0x2b5f28(0x2b6),'params':_0x443fe5},_0x59a9ff=this['cursorInfo'];for(const [_0x4133d6,_0x1a2733]of _0x59a9ff){const _0xf3662d={'id':_0x2b5f28(0x2b6),'params':{'unitId':this[_0x2b5f28(0x278)],'actions':null,'textRanges':_0x1a2733['ranges']}},_0x5f37f8=this[_0x2b5f28(0x283)][_0x2b5f28(0x2b7)](_0x13a3e7,_0xf3662d,!0x1);if(g[_0x2b5f28(0x20a)](_0x5f37f8))throw _0x5f37f8[_0x2b5f28(0x3c3)];_0x59a9ff[_0x2b5f28(0x3d1)](_0x4133d6,{..._0x1a2733,'ranges':_0x5f37f8[_0x2b5f28(0x42d)][_0x2b5f28(0x344)][_0x2b5f28(0x2f2)]});}queueMicrotask(()=>{const _0x3aaca7=_0x2b5f28;this['_cursorInfo$'][_0x3aaca7(0x23b)](_0x59a9ff);});})));}[_0x131176(0x41a)](_0x306fd1){const _0x4ff796=_0x131176;var _0x23a1e2,_0x67fad7;const {memberID:_0x460168,selection:_0x20efd2}=_0x306fd1['data'],_0x2c2b8c=ht(_0x20efd2),_0x297b1c=(_0x67fad7=(_0x23a1e2=this[_0x4ff796(0x461)][_0x4ff796(0x3e7)](this['unitID'],_0x460168))==null?void 0x0:_0x23a1e2[_0x4ff796(0x386)])!=null?_0x67fad7:_0x4ff796(0x23d),_0x1aef1b={'color':this[_0x4ff796(0x31f)][_0x4ff796(0x1f2)](_0x460168),'name':_0x297b1c,'ranges':_0x2c2b8c},_0x3b3e8c=this['cursorInfo'];_0x3b3e8c['set'](_0x460168,_0x1aef1b),this[_0x4ff796(0x214)][_0x4ff796(0x23b)](_0x3b3e8c);}[_0x131176(0x2d8)](_0x5360ae){const _0x33adec=_0x131176,{memberID:_0x3b9596}=_0x5360ae[_0x33adec(0x318)],_0x5b5c91=this['cursorInfo'];_0x5b5c91[_0x33adec(0x289)](_0x3b9596),this[_0x33adec(0x214)][_0x33adec(0x23b)](_0x5b5c91);}[_0x131176(0x3aa)](){const _0x3d4910=_0x131176;var _0x53b43f;if(this[_0x3d4910(0x3e4)]=!0x0,((_0x53b43f=this['_univerInstanceService'][_0x3d4910(0x2a2)]())==null?void 0x0:_0x53b43f['getUnitId']())!==this['unitID'])return;const _0xe4fb8f=this['_injector']['get'](V[_0x3d4910(0x3ab)])[_0x3d4910(0x355)]();Array['isArray'](_0xe4fb8f)&&_0xe4fb8f['length']>0x0&&this[_0x3d4910(0x3cc)](_0xe4fb8f);}[_0x131176(0x36f)](){const _0xcc0d1e=_0x131176;this[_0xcc0d1e(0x3e4)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x131176(0x24c)])),U(0x3,a[_0x131176(0x2e8)](Re)),U(0x4,a[_0x131176(0x2e8)](u[_0x131176(0x46d)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x131176(0x3f6)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x131176(0x3b3)])],ve);var ft=Object[_0x131176(0x40c)],mt=(_0x96d50d,_0x831344,_0x2b429f,_0x1c9b92)=>{const _0x5c0a31=_0x131176;for(var _0x3fa61e=_0x1c9b92>0x1?void 0x0:_0x1c9b92?ft(_0x831344,_0x2b429f):_0x831344,_0x54ea88=_0x96d50d[_0x5c0a31(0x2d6)]-0x1,_0x25d276;_0x54ea88>=0x0;_0x54ea88--)(_0x25d276=_0x96d50d[_0x54ea88])&&(_0x3fa61e=_0x25d276(_0x3fa61e)||_0x3fa61e);return _0x3fa61e;},w=(_0x1af1d6,_0x3615de)=>(_0x672e09,_0x870a42)=>_0x3615de(_0x672e09,_0x870a42,_0x1af1d6);const vt=0x12c,gt=0x64,Et=()=>{let _0x5962d0=[],_0x41da7b=!0x1;return _0x3b5157=>{const _0x3797a5=_0xd4c9;_0x5962d0[_0x3797a5(0x1df)](_0x3b5157),_0x41da7b||(_0x41da7b=!0x0,setTimeout(()=>{const _0x234c90=_0x3797a5;_0x5962d0[_0x234c90(0x24a)](_0xe8f450=>_0xe8f450()),_0x5962d0=[],_0x41da7b=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0xe7a162,_0x10e358,_0x29b9e0,_0x4c1e57,_0x512b72,_0x117bc5,_0xe83f31,_0x41cffe){const _0x3365ba=_0x131176;super(),_(this,_0x3365ba(0x3e4),!0x1),_(this,_0x3365ba(0x494),!0x1),_(this,_0x3365ba(0x214),new I[(_0x3365ba(0x3ac))](new Map())),_(this,_0x3365ba(0x39c),this[_0x3365ba(0x214)]['asObservable']()),_(this,_0x3365ba(0x2f8),new I['BehaviorSubject']([])),_(this,_0x3365ba(0x417),this['_roomMembers$'][_0x3365ba(0x465)](I[_0x3365ba(0x45d)](vt))),_(this,_0x3365ba(0x3cc),a[_0x3365ba(0x40a)]((_0x38e3ff,_0x481d18)=>{const _0x3f4e66=_0x3365ba,_0x42fa36={'eventID':g[_0x3f4e66(0x3a2)][_0x3f4e66(0x397)],'data':{'unitID':this[_0x3f4e66(0x278)],'memberID':this[_0x3f4e66(0x4b0)][_0x3f4e66(0x4a3)](),'selection':B[_0x3f4e66(0x43a)](_0x38e3ff,_0x481d18[_0x3f4e66(0x25f)])}};this[_0x3f4e66(0x4b0)][_0x3f4e66(0x260)](_0x42fa36,this[_0x3f4e66(0x278)]);},gt)),(this[_0x3365ba(0x278)]=_0xe7a162,this[_0x3365ba(0x4b0)]=_0x10e358,this['_injector']=_0x29b9e0,this[_0x3365ba(0x31f)]=_0x4c1e57,this[_0x3365ba(0x461)]=_0x512b72,this['_univerInstanceService']=_0x117bc5,this[_0x3365ba(0x310)]=_0xe83f31,this['_refRangeService']=_0x41cffe);}get['cursorInfo'](){const _0x2f4723=_0x131176;return this[_0x2f4723(0x214)]['getValue']();}get[_0x131176(0x3f9)](){const _0x400f93=_0x131176;return this[_0x400f93(0x2f8)][_0x400f93(0x365)]();}['dispose'](){const _0x2691e7=_0x131176;super[_0x2691e7(0x40d)](),this['_cursorInfo$'][_0x2691e7(0x23b)](new Map()),this[_0x2691e7(0x214)][_0x2691e7(0x219)](),this[_0x2691e7(0x2f8)][_0x2691e7(0x23b)]([]),this[_0x2691e7(0x2f8)][_0x2691e7(0x219)]();}[_0x131176(0x1f8)](){const _0x30dbea=_0x131176;this[_0x30dbea(0x494)]||(this[_0x30dbea(0x494)]=!0x0,this['_session']['sessionStatus$'][_0x30dbea(0x465)](I[_0x30dbea(0x208)](this['dispose$']))['subscribe'](_0x118222=>{const _0x431f01=_0x30dbea;_0x118222===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x431f01(0x36f)]();}),this[_0x30dbea(0x4b0)]['event$'][_0x30dbea(0x465)](I[_0x30dbea(0x208)](this[_0x30dbea(0x447)]))['subscribe'](_0x5cb663=>{const _0x10af63=_0x30dbea,_0x5ba5ad=_0x5cb663['eventID'];_0x5ba5ad===g[_0x10af63(0x3a2)][_0x10af63(0x397)]&&this[_0x10af63(0x41a)](_0x5cb663),_0x5ba5ad===g['CollaborationEvent'][_0x10af63(0x28e)]&&this[_0x10af63(0x2d8)](_0x5cb663);}),this[_0x30dbea(0x319)](),this[_0x30dbea(0x2c7)](this[_0x30dbea(0x310)][_0x30dbea(0x27a)](_0x330f6d=>{const _0x135919=_0x30dbea;if(this[_0x135919(0x3e4)]&&_0x330f6d['id']===v[_0x135919(0x249)]['id']&&_0x330f6d[_0x135919(0x344)][_0x135919(0x466)]===this[_0x135919(0x278)]){const _0x2a8146=_0x330f6d['params'];this[_0x135919(0x3cc)](_0x2a8146['subUnitId'],_0x2a8146[_0x135919(0x2df)][0x0]);}})));}[_0x131176(0x41a)](_0x507877){const _0x2a6509=_0x131176;var _0x126708,_0x5bd686;const {memberID:_0x392043,selection:_0x44cd9e}=_0x507877[_0x2a6509(0x318)],{sheetName:_0x599466,range:_0xd755b6}=B[_0x2a6509(0x20d)](_0x44cd9e),_0x499803={'name':(_0x5bd686=(_0x126708=this[_0x2a6509(0x461)]['getMember'](this[_0x2a6509(0x278)],_0x392043))==null?void 0x0:_0x126708[_0x2a6509(0x386)])!=null?_0x5bd686:_0x2a6509(0x23d),'range':this[_0x2a6509(0x30f)](_0x599466,_0xd755b6),'sheetID':_0x599466,'color':this[_0x2a6509(0x31f)][_0x2a6509(0x1f2)](_0x392043),'selection':_0x44cd9e},_0x3fd816=this[_0x2a6509(0x342)];_0x3fd816[_0x2a6509(0x3d1)](_0x392043,_0x499803),this[_0x2a6509(0x214)][_0x2a6509(0x23b)](_0x3fd816);}[_0x131176(0x2d8)](_0x8dee12){const _0x4b0705=_0x131176,{memberID:_0x1c07b6}=_0x8dee12['data'],_0x3f5253=this[_0x4b0705(0x342)];_0x3f5253[_0x4b0705(0x289)](_0x1c07b6),this[_0x4b0705(0x214)]['next'](_0x3f5253);}[_0x131176(0x30f)](_0x4d9bc0,_0xa3059d){const _0x1279d7=_0x131176;var _0x188f31,_0x5454d1;const _0x5b89ea=(_0x5454d1=(_0x188f31=this['_univerInstanceService'][_0x1279d7(0x384)](this[_0x1279d7(0x278)]))==null?void 0x0:_0x188f31['getSheetBySheetId'](_0x4d9bc0))==null?void 0x0:_0x5454d1[_0x1279d7(0x27e)]();return(_0x5b89ea==null?void 0x0:_0x5b89ea[_0x1279d7(0x1fd)](_0x313f88=>a['Rectangle'][_0x1279d7(0x2d4)](_0x313f88,_0xa3059d)))||_0xa3059d;}[_0x131176(0x319)](){const _0x151541=_0x131176,_0x178a62=new a[(_0x151541(0x36a))](),_0x5dc0c0=Et(),_0x263b69=()=>{const _0x1b5670=_0x151541;_0x178a62['dispose']();const _0x2ea559=(_0x35c0e9,_0xad73e9,_0x497bbd,_0x1d2183)=>{const _0x1bde7a=_0xd4c9;let _0x22e07f=[];switch(_0x35c0e9['id']){case v[_0x1bde7a(0x3e0)]['DeleteRangeMoveLeftCommandId']:{_0x22e07f=v[_0x1bde7a(0x2ce)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)]['DeleteRangeMoveUpCommandId']:{_0x22e07f=v[_0x1bde7a(0x240)](_0x35c0e9,_0x1d2183);break;}case v['EffectRefRangId']['InsertColCommandId']:{_0x22e07f=v[_0x1bde7a(0x26a)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)]['InsertRangeMoveDownCommandId']:{_0x22e07f=v[_0x1bde7a(0x3f0)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)]['InsertRangeMoveRightCommandId']:{_0x22e07f=v[_0x1bde7a(0x1e3)](_0x35c0e9,_0x1d2183);break;}case v['EffectRefRangId'][_0x1bde7a(0x39d)]:{_0x22e07f=v[_0x1bde7a(0x406)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)][_0x1bde7a(0x30d)]:{_0x22e07f=v[_0x1bde7a(0x296)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)][_0x1bde7a(0x3a0)]:{_0x22e07f=v[_0x1bde7a(0x298)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)][_0x1bde7a(0x47c)]:{_0x22e07f=v['handleIRemoveRow'](_0x35c0e9,_0x1d2183);break;}}const _0x32ae55=v[_0x1bde7a(0x267)](_0x22e07f,_0x1d2183),_0x21e7c8=this['cursorInfo'][_0x1bde7a(0x1fe)](_0xad73e9);if(_0x21e7c8&&_0x32ae55){const _0x120d08={..._0x21e7c8,'range':_0x32ae55};this[_0x1bde7a(0x342)][_0x1bde7a(0x3d1)](_0xad73e9,_0x120d08),_0x5dc0c0(()=>{const _0x3fffea=_0x1bde7a,_0x211b7d=this[_0x3fffea(0x241)][_0x3fffea(0x272)](_0x32ae55,_0x423a65=>(_0x211b7d[_0x3fffea(0x40d)](),_0x2ea559(_0x423a65,_0xad73e9,_0x497bbd,_0x32ae55)));_0x178a62[_0x3fffea(0x227)](_0x211b7d);});}return{'redos':[],'undos':[]};};this[_0x1b5670(0x342)][_0x1b5670(0x24a)]((_0x2a0ae8,_0x4adfaa)=>{const _0x2bebd7=_0x1b5670,{range:_0x284e0a,sheetID:_0x3ac6cc}=_0x2a0ae8,_0x41512a=this[_0x2bebd7(0x241)][_0x2bebd7(0x272)](_0x284e0a,_0x27261a=>(_0x41512a['dispose'](),_0x2ea559(_0x27261a,_0x4adfaa,_0x3ac6cc,_0x284e0a)));_0x178a62[_0x2bebd7(0x227)](_0x41512a);});};this['disposeWithMe'](a[_0x151541(0x2ab)](this[_0x151541(0x214)][_0x151541(0x2da)](()=>{_0x263b69();})));}[_0x131176(0x3aa)](){const _0x1be755=_0x131176;var _0x544b02,_0x541948;if(this[_0x1be755(0x3e4)]=!0x0,((_0x544b02=this[_0x1be755(0x2d9)][_0x1be755(0x2a2)]())==null?void 0x0:_0x544b02[_0x1be755(0x46a)]())!==this[_0x1be755(0x278)])return;const _0x53a61a=(_0x541948=this[_0x1be755(0x268)][_0x1be755(0x1fe)](v[_0x1be755(0x424)])['getCurrentSelections']())==null?void 0x0:_0x541948[0x0],_0x1aa9bb=this['_univerInstanceService'][_0x1be755(0x403)](a[_0x1be755(0x2a6)]['UNIVER_SHEET'])['getActiveSheet']();_0x53a61a&&_0x1aa9bb&&this[_0x1be755(0x3cc)](_0x1aa9bb[_0x1be755(0x430)](),_0x53a61a);}['_toggleOffline'](){const _0x476ec4=_0x131176;this[_0x476ec4(0x3e4)]=!0x1;}};ge=mt([w(0x2,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),w(0x3,a[_0x131176(0x2e8)](Re)),w(0x4,a['Inject'](u[_0x131176(0x46d)])),w(0x5,a[_0x131176(0x36d)]),w(0x6,a[_0x131176(0x3b3)]),w(0x7,a[_0x131176(0x2e8)](v[_0x131176(0x270)]))],ge);var Ct=Object[_0x131176(0x40c)],Tt=(_0x27e8c3,_0x1402ab,_0x448877,_0x3cc925)=>{const _0x4b71d0=_0x131176;for(var _0x59155a=_0x3cc925>0x1?void 0x0:_0x3cc925?Ct(_0x1402ab,_0x448877):_0x1402ab,_0x55620d=_0x27e8c3[_0x4b71d0(0x2d6)]-0x1,_0x1256a0;_0x55620d>=0x0;_0x55620d--)(_0x1256a0=_0x27e8c3[_0x55620d])&&(_0x59155a=_0x1256a0(_0x59155a)||_0x59155a);return _0x59155a;},ce=(_0x6fd9f8,_0x53f851)=>(_0x55eb4f,_0x1c1fad)=>_0x53f851(_0x55eb4f,_0x1c1fad,_0x6fd9f8);let F=class extends a[_0x131176(0x338)]{constructor(_0x137c5b,_0x566d44,_0x746918){const _0x1164d7=_0x131176;super(),_(this,_0x1164d7(0x218),new Map()),_(this,_0x1164d7(0x3ea),new I[(_0x1164d7(0x26e))]()),(this[_0x1164d7(0x2d9)]=_0x137c5b,this[_0x1164d7(0x268)]=_0x566d44,this[_0x1164d7(0x48c)]=_0x746918,this['_init']());}['dispose'](){const _0x5c17fb=_0x131176;super[_0x5c17fb(0x40d)](),this[_0x5c17fb(0x3ea)][_0x5c17fb(0x219)](),this['_entities'][_0x5c17fb(0x24a)](_0x550243=>_0x550243[_0x5c17fb(0x40d)]());}[_0x131176(0x351)](_0x1bfde8){const _0x17b58a=_0x131176;return this[_0x17b58a(0x218)][_0x17b58a(0x48d)](_0x1bfde8)?this[_0x17b58a(0x218)][_0x17b58a(0x1fe)](_0x1bfde8)[_0x17b58a(0x39c)]:this[_0x17b58a(0x3ea)]['pipe'](I[_0x17b58a(0x258)](_0x3811c7=>_0x3811c7['unitID']===_0x1bfde8),I['switchMap'](_0x1a0071=>_0x1a0071[_0x17b58a(0x39c)]));}[_0x131176(0x494)](){const _0x327dca=_0x131176;this[_0x327dca(0x2d9)][_0x327dca(0x489)](a[_0x327dca(0x2a6)][_0x327dca(0x469)])[_0x327dca(0x465)](I[_0x327dca(0x208)](this[_0x327dca(0x447)]))[_0x327dca(0x2da)](async _0xfead01=>{const _0x233d6d=_0x327dca,_0x575841=_0xfead01[_0x233d6d(0x46a)](),_0x52283b=await this[_0x233d6d(0x237)](_0x575841);this[_0x233d6d(0x3ea)][_0x233d6d(0x23b)](_0x52283b),this['_entities'][_0x233d6d(0x3d1)](_0x575841,_0x52283b);}),this['_univerInstanceService'][_0x327dca(0x489)](a['UniverInstanceType'][_0x327dca(0x29b)])[_0x327dca(0x465)](I['takeUntil'](this[_0x327dca(0x447)]))[_0x327dca(0x465)](I[_0x327dca(0x258)](_0x129ddf=>!_0x129ddf[_0x327dca(0x46a)]()['startsWith']('__')))[_0x327dca(0x2da)](async _0x29e332=>{const _0x45ecc4=_0x327dca,_0x455588=_0x29e332[_0x45ecc4(0x46a)](),_0x35867d=await this[_0x45ecc4(0x234)](_0x455588);this[_0x45ecc4(0x3ea)][_0x45ecc4(0x23b)](_0x35867d),this[_0x45ecc4(0x218)][_0x45ecc4(0x3d1)](_0x455588,_0x35867d);}),I[_0x327dca(0x229)](this['_univerInstanceService'][_0x327dca(0x3e5)](a[_0x327dca(0x2a6)][_0x327dca(0x29b)]),this[_0x327dca(0x2d9)][_0x327dca(0x3e5)](a['UniverInstanceType'][_0x327dca(0x469)]))['pipe'](I[_0x327dca(0x208)](this['dispose$']))[_0x327dca(0x2da)](_0xad3830=>{const _0x3b9b49=_0x327dca,_0x5a69d5=_0xad3830[_0x3b9b49(0x46a)](),_0x43a2d3=this[_0x3b9b49(0x218)]['get'](_0x5a69d5);_0x43a2d3&&(_0x43a2d3['dispose'](),this[_0x3b9b49(0x218)][_0x3b9b49(0x289)](_0x5a69d5));});}async[_0x131176(0x237)](_0x27a10e){const _0x3c2380=_0x131176,_0x56fd9d=await this['_collabSessionService'][_0x3c2380(0x2dc)](_0x27a10e),_0x52868a=this[_0x3c2380(0x268)][_0x3c2380(0x378)](ge,_0x27a10e,_0x56fd9d);return _0x52868a[_0x3c2380(0x1f8)](),_0x52868a;}async[_0x131176(0x234)](_0x335791){const _0x3461d3=_0x131176,_0x63eee4=await this[_0x3461d3(0x48c)][_0x3461d3(0x2dc)](_0x335791),_0x585dea=this[_0x3461d3(0x268)][_0x3461d3(0x378)](ve,_0x335791,_0x63eee4);return _0x585dea[_0x3461d3(0x1f8)](),_0x585dea;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),ce(0x2,a[_0x131176(0x2e8)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x111c0b,_0x195493){const _0x4c547f=_0x131176;let {radius:_0x14a418,width:_0x3f55cd,height:_0x1557c0}=_0x195493;_0x14a418=_0x14a418!=null?_0x14a418:0x0,_0x3f55cd=_0x3f55cd!=null?_0x3f55cd:0x1e,_0x1557c0=_0x1557c0!=null?_0x1557c0:0x1e;let _0x402488=0x0,_0x397bde=0x0,_0x39b9fe=0x0;_0x402488=_0x397bde=_0x39b9fe=Math['min'](_0x14a418,_0x3f55cd/0x2,_0x1557c0/0x2),_0x111c0b['beginPath'](),_0x111c0b[_0x4c547f(0x468)](_0x402488,0x0),_0x111c0b[_0x4c547f(0x460)](_0x3f55cd-_0x397bde,0x0),_0x111c0b[_0x4c547f(0x414)](_0x3f55cd-_0x397bde,_0x397bde,_0x397bde,Math['PI']*0x3/0x2,0x0,!0x1),_0x111c0b[_0x4c547f(0x460)](_0x3f55cd,_0x1557c0-_0x39b9fe),_0x111c0b[_0x4c547f(0x414)](_0x3f55cd-_0x39b9fe,_0x1557c0-_0x39b9fe,_0x39b9fe,0x0,Math['PI']/0x2,!0x1),_0x111c0b[_0x4c547f(0x460)](0x0,_0x1557c0),_0x111c0b[_0x4c547f(0x460)](0x0,_0x402488),_0x111c0b[_0x4c547f(0x414)](_0x402488,_0x402488,_0x402488,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x111c0b['closePath'](),_0x195493[_0x4c547f(0x4aa)]&&(_0x111c0b[_0x4c547f(0x217)](),_0x111c0b[_0x4c547f(0x2d7)]=_0x195493[_0x4c547f(0x4aa)],_0x195493[_0x4c547f(0x4ad)]==='evenodd'?_0x111c0b[_0x4c547f(0x4aa)](_0x4c547f(0x46b)):_0x111c0b['fill'](),_0x111c0b[_0x4c547f(0x3a3)]());}class re extends C[_0x131176(0x357)]{constructor(_0x57efc7,_0x49bebb){const _0x2f8b9a=_0x131176;super(_0x57efc7,_0x49bebb),_(this,_0x2f8b9a(0x2ad)),_(this,_0x2f8b9a(0x33f)),(this[_0x2f8b9a(0x2ad)]=_0x49bebb==null?void 0x0:_0x49bebb[_0x2f8b9a(0x2ad)],this[_0x2f8b9a(0x33f)]=_0x49bebb==null?void 0x0:_0x49bebb[_0x2f8b9a(0x33f)]);}static[_0x131176(0x36b)](_0x3b5b5e,_0xd0c4e7){const _0x3cf918=_0x131176,{text:_0x4ab3f3,color:_0xbc5b8c}=_0xd0c4e7;_0x3b5b5e[_0x3cf918(0x217)](),_0x3b5b5e['font']=_0x3cf918(0x341);const _0x337e6b=_0x3b5b5e[_0x3cf918(0x44b)](_0x4ab3f3)[_0x3cf918(0x2b9)],_0x3f719c=Math[_0x3cf918(0x4a6)](_0x337e6b+0x2*le,Ue);Ot(_0x3b5b5e,{'height':X,'radius':0x4,'width':_0x3f719c,'fill':_0xbc5b8c}),_0x3b5b5e[_0x3cf918(0x2d7)]='#FFF';const _0x52e475=le,_0x125c4c=X-pt,_0x5c99ca=Ue-0x2*le;if(_0x337e6b>_0x5c99ca){let _0x40748f='',_0x14d34a=0x0;for(const _0x52ef10 of _0x4ab3f3){const _0x2cba27=_0x3b5b5e['measureText'](_0x52ef10)[_0x3cf918(0x2b9)];if(_0x14d34a+_0x2cba27<=_0x5c99ca-_0x3b5b5e[_0x3cf918(0x44b)]('...')['width'])_0x40748f+=_0x52ef10,_0x14d34a+=_0x2cba27;else{_0x40748f+=_0x3cf918(0x224);break;}}_0x3b5b5e['fillText'](_0x40748f,_0x52e475,_0x125c4c);}else _0x3b5b5e['fillText'](_0x4ab3f3,_0x52e475,_0x125c4c);_0x3b5b5e[_0x3cf918(0x3a3)]();}[_0x131176(0x25a)](_0x1be616){re['drawWith'](_0x1be616,this);}}const _e='collab-text-anchor-',Rt=_0x131176(0x1e6),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x131176(0x35e);class Le{constructor(_0x16d651,_0x4acf54,_0x3d3ba6,_0x2325d4){const _0x57113c=_0x131176;_(this,_0x57113c(0x327),[]),_(this,_0x57113c(0x2ba),null),_(this,_0x57113c(0x3da),null),_(this,'_anchorDot',null),_(this,_0x57113c(0x1ef),null),_(this,_0x57113c(0x423),null),(this[_0x57113c(0x3d3)]=_0x16d651,this[_0x57113c(0x28f)]=_0x4acf54,this[_0x57113c(0x1e1)]=_0x3d3ba6,this[_0x57113c(0x254)]=_0x2325d4,this[_0x57113c(0x3d7)]());}set['_hover'](_0x43ea42){const _0x34e0e2=_0x131176;_0x43ea42?(this[_0x34e0e2(0x4a7)]&&this[_0x34e0e2(0x4a7)][_0x34e0e2(0x297)](),this[_0x34e0e2(0x3da)]&&this[_0x34e0e2(0x3da)][_0x34e0e2(0x243)]()):(this['_anchorDot']&&this[_0x34e0e2(0x4a7)]['show'](),this[_0x34e0e2(0x3da)]&&this[_0x34e0e2(0x3da)][_0x34e0e2(0x297)]());}['dispose'](){const _0x55cd8f=_0x131176;for(const _0x1ef0ec of this['_shapes'])_0x1ef0ec[_0x55cd8f(0x40d)]();this[_0x55cd8f(0x3da)]&&this[_0x55cd8f(0x3da)]['dispose'](),this[_0x55cd8f(0x4a7)]&&this[_0x55cd8f(0x4a7)][_0x55cd8f(0x40d)](),this['_anchor']&&this['_anchor'][_0x55cd8f(0x40d)](),this['_eventUnsubscribe']&&this[_0x55cd8f(0x423)]();}[_0x131176(0x3d7)](){const _0x3a43cd=_0x131176;var _0x42b02b;const {_docSkeleton:_0x3950f6,_document:_0x506662}=this,{color:_0x374d00,name:_0x662111,ranges:_0xc35a0b}=this[_0x3a43cd(0x3d3)],_0x118e80=_0x506662[_0x3a43cd(0x418)](),{docsLeft:_0x542105,docsTop:_0x110deb}=_0x118e80,_0x3c481a=new T[(_0x3a43cd(0x415))](_0x118e80,_0x3950f6);for(const {startOffset:_0x367bf5,endOffset:_0x25eb27,rangeType:_0x4f7753,segmentId:_0x564486,segmentPage:_0x432a20,collapsed:_0x494c65,isActive:_0x5b3c72}of _0xc35a0b){const _0x37fcfd=_0x3950f6[_0x3a43cd(0x26d)](_0x367bf5,!0x0,_0x564486,_0x432a20);let _0x184454=_0x3950f6[_0x3a43cd(0x26d)](_0x25eb27,!0x0,_0x564486,_0x432a20);if(_0x184454==null&&(_0x184454=_0x3950f6[_0x3a43cd(0x26d)](_0x25eb27-0x1,!0x1,_0x564486,_0x432a20)),_0x5b3c72){const {contentBoxPointGroup:_0x4a4d6f}=_0x3c481a[_0x3a43cd(0x32a)](_0x184454,_0x184454);if(_0x4a4d6f[_0x3a43cd(0x2d6)]===0x0)continue;this['_drawAnchor'](_0x374d00,_0x4a4d6f,_0x542105,_0x110deb,_0x662111),this[_0x3a43cd(0x423)]=this['_handleHover']();}if(_0x37fcfd&&_0x184454){if(_0x4f7753===a[_0x3a43cd(0x2ac)][_0x3a43cd(0x1ec)]){const _0x3d3e09=new T[(_0x3a43cd(0x39a))](_0x118e80,_0x3950f6),{pointGroup:_0x4881eb}=(_0x42b02b=_0x3d3e09[_0x3a43cd(0x32a)](_0x37fcfd,_0x184454))!=null?_0x42b02b:{};if(_0x4881eb==null||_0x4881eb[_0x3a43cd(0x2d6)]===0x0)continue;this[_0x3a43cd(0x294)](_0x374d00,_0x4881eb,_0x542105,_0x110deb);}else{if(!_0x494c65){const {borderBoxPointGroup:_0x581be1}=_0x3c481a[_0x3a43cd(0x32a)](_0x37fcfd,_0x184454);if(_0x581be1[_0x3a43cd(0x2d6)]===0x0)continue;this['_drawTextRange'](_0x374d00,_0x581be1,_0x542105,_0x110deb);}}}}}[_0x131176(0x242)](_0x183af9,_0x5a6ad1,_0x383d7e,_0x68555,_0x375d7f){const _0x873486=_0x131176,_0x3d848e=this['_getAnchorBounding'](_0x5a6ad1),{left:_0x24290f,top:_0x30bb2b,height:_0xadfc4}=_0x3d848e,_0x35bfe6=this[_0x873486(0x3a1)](),_0x328891=Nt/_0x35bfe6,_0xbb1ddb=new C[(_0x873486(0x331))](_e+a[_0x873486(0x206)](H),{'left':_0x24290f+_0x383d7e-_0x328891,'top':_0x30bb2b+_0x68555,'height':_0xadfc4,'width':Dt,'fill':_0x183af9||C[_0x873486(0x448)](a[_0x873486(0x292)][_0x873486(0x31e)],0x0),'strokeWidth':_0x328891,'stroke':Ut,'evented':!0x0});this[_0x873486(0x2ba)]=_0xbb1ddb,this['_scene']['addObject'](_0xbb1ddb,T[_0x873486(0x1e0)]);const _0x3c802d=new C[(_0x873486(0x331))](_e+a[_0x873486(0x206)](H),{'left':_0x24290f+_0x383d7e-_0x328891,'top':_0x30bb2b+_0x68555-he/0x2,'height':he,'width':he,'fill':_0x183af9||C[_0x873486(0x448)](a['COLORS'][_0x873486(0x31e)],0x0),'strokeWidth':0x0,'stroke':_0x183af9||C[_0x873486(0x448)](a[_0x873486(0x292)]['black'],0x0),'evented':!0x1});this[_0x873486(0x4a7)]=_0x3c802d,this[_0x873486(0x28f)][_0x873486(0x369)](_0x3c802d,T['TEXT_RANGE_LAYER_INDEX']);const _0x24ea60=new re(_e+a[_0x873486(0x206)](H),{'left':_0x24290f+_0x383d7e-_0x328891,'top':_0x30bb2b+_0x68555-X,'text':_0x375d7f,'color':_0x183af9});this[_0x873486(0x3da)]=_0x24ea60,this[_0x873486(0x28f)][_0x873486(0x369)](_0x24ea60,T[_0x873486(0x1e0)]),this[_0x873486(0x2ef)]=!0x1;}[_0x131176(0x3e2)](){const _0x36b1ab=_0x131176,_0x4e1401=this[_0x36b1ab(0x2ba)][_0x36b1ab(0x4b5)][_0x36b1ab(0x38a)](()=>{this['_hover']=!0x0;}),_0x16dd8a=this[_0x36b1ab(0x2ba)]['onPointerLeave$'][_0x36b1ab(0x38a)](()=>{const _0x1d98c3=_0x36b1ab;this[_0x1d98c3(0x1ef)]&&clearTimeout(this[_0x1d98c3(0x1ef)]),this[_0x1d98c3(0x1ef)]=setTimeout(()=>{const _0x3f7406=_0x1d98c3;this[_0x3f7406(0x2ef)]=!0x1;},0x7d0);});return()=>{const _0x163923=_0x36b1ab;_0x4e1401[_0x163923(0x211)](),_0x16dd8a[_0x163923(0x211)]();};}[_0x131176(0x407)](_0x504f83,_0x3d9018,_0x35926e,_0x569946){const _0x21fe11=_0x131176,_0x1b6543=new a[(_0x21fe11(0x389))](_0x504f83)[_0x21fe11(0x21c)](0.2)[_0x21fe11(0x350)](),_0x52f044=new C['RegularPolygon'](Rt+a[_0x21fe11(0x206)](H),{'pointsGroup':_0x3d9018,'fill':_0x1b6543||C[_0x21fe11(0x448)](a[_0x21fe11(0x292)][_0x21fe11(0x31e)],0.2),'left':_0x35926e,'top':_0x569946,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x52f044),this[_0x21fe11(0x28f)]['addObject'](_0x52f044,T[_0x21fe11(0x1e0)]);}[_0x131176(0x294)](_0x9488d6,_0x2cbbba,_0x2eaa8f,_0x46222b){const _0x3f3987=_0x131176,_0x4d0dfc=new a[(_0x3f3987(0x389))](_0x9488d6)['setAlpha'](0.2)[_0x3f3987(0x350)](),_0x23c4b2=new C[(_0x3f3987(0x2db))](bt+a[_0x3f3987(0x206)](H),{'pointsGroup':_0x2cbbba,'fill':_0x4d0dfc||C[_0x3f3987(0x448)](a[_0x3f3987(0x292)][_0x3f3987(0x31e)],0.2),'left':_0x2eaa8f,'top':_0x46222b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f3987(0x327)]['push'](_0x23c4b2),this[_0x3f3987(0x28f)]['addObject'](_0x23c4b2,T['TEXT_RANGE_LAYER_INDEX']);}[_0x131176(0x231)](_0x414645){const _0x19ae34=_0x414645[0x0],_0x28b1a6=_0x19ae34[0x0],_0x1973ac=_0x19ae34[0x2],{x:_0x4d4c93,y:_0x1fdc68}=_0x28b1a6,{x:_0x5c3ca4,y:_0x371690}=_0x1973ac;return{'left':_0x4d4c93,'top':_0x1fdc68,'width':_0x5c3ca4-_0x4d4c93,'height':_0x371690-_0x1fdc68};}[_0x131176(0x3a1)](){const _0x59b80b=_0x131176,{scaleX:_0x3f4864,scaleY:_0xf026c9}=this['_scene']['getAncestorScale']();return Math[_0x59b80b(0x286)](_0x3f4864,_0xf026c9);}}var Lt=Object[_0x131176(0x40c)],Mt=(_0x216e8f,_0x5b8223,_0x43849c,_0x225ba0)=>{const _0x2bf69b=_0x131176;for(var _0x347c6e=_0x225ba0>0x1?void 0x0:_0x225ba0?Lt(_0x5b8223,_0x43849c):_0x5b8223,_0x4708e0=_0x216e8f[_0x2bf69b(0x2d6)]-0x1,_0xa486ab;_0x4708e0>=0x0;_0x4708e0--)(_0xa486ab=_0x216e8f[_0x4708e0])&&(_0x347c6e=_0xa486ab(_0x347c6e)||_0x347c6e);return _0x347c6e;},q=(_0x23ed5a,_0x386f64)=>(_0x4c8f8d,_0x3a24cd)=>_0x386f64(_0x4c8f8d,_0x3a24cd,_0x23ed5a);let Ee=class extends a[_0x131176(0x338)]{constructor(_0xa731d7,_0x52a4a2,_0x254133,_0x930b7d,_0x127e30){const _0x57aa3f=_0x131176;super(),_(this,'_cursorShapes',[]),_(this,_0x57aa3f(0x2be),[]),(this[_0x57aa3f(0x392)]=_0xa731d7,this[_0x57aa3f(0x3b4)]=_0x52a4a2,this[_0x57aa3f(0x322)]=_0x254133,this[_0x57aa3f(0x310)]=_0x930b7d,this[_0x57aa3f(0x35b)]=_0x127e30,this['_init']());}[_0x131176(0x494)](){const _0x468b4b=_0x131176,_0x396af6=this['_context'][_0x468b4b(0x466)],_0x3266ed=this['_docSkeletonManagerService'];this[_0x468b4b(0x2c7)](I[_0x468b4b(0x482)]([this[_0x468b4b(0x322)]['getCollabCursors$'](_0x396af6),this[_0x468b4b(0x35b)][_0x468b4b(0x442)]])[_0x468b4b(0x465)]($[_0x468b4b(0x225)](([_0x484d39,_0x30c31d])=>({'skeleton':_0x3266ed['getSkeleton'](),'cursors':[..._0x484d39[_0x468b4b(0x439)]()][_0x468b4b(0x434)](_0x3e1943=>({..._0x3e1943,'color':this[_0x468b4b(0x35b)][_0x468b4b(0x43c)](_0x3e1943[_0x468b4b(0x2ad)])}))})))[_0x468b4b(0x2da)](_0x516ff8=>{const _0x2240d5=_0x468b4b;if(this[_0x2240d5(0x472)](),_0x516ff8){const {skeleton:_0xebb328,cursors:_0x5038b5}=_0x516ff8;this[_0x2240d5(0x21f)](_0xebb328,_0x5038b5);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x131176(0x21f)](_0x4122af,_0x2015a3){const _0x28efd1=_0x131176,{scene:_0x1615a2,mainComponent:_0x13c54b}=this[_0x28efd1(0x392)],_0x247bd4=_0x2015a3['map'](_0x7e403c=>new Le(_0x7e403c,_0x1615a2,_0x4122af,_0x13c54b));this[_0x28efd1(0x220)]=_0x247bd4,this[_0x28efd1(0x2be)]=_0x2015a3;}[_0x131176(0x3d2)](){const _0x2aeac8=_0x131176;this[_0x2aeac8(0x472)]();const {scene:_0x13d6f0,mainComponent:_0xb74307}=this['_context'],_0x148ce4=this[_0x2aeac8(0x3b4)]['getSkeleton'](),_0x30d98e=this[_0x2aeac8(0x2be)][_0x2aeac8(0x225)](_0x312d9a=>new Le(_0x312d9a,_0x13d6f0,_0x148ce4,_0xb74307));this[_0x2aeac8(0x220)]=_0x30d98e;}[_0x131176(0x472)](){const _0x4edcac=_0x131176;this['_cursorShapes'][_0x4edcac(0x24a)](_0x3be5f6=>_0x3be5f6[_0x4edcac(0x40d)]()),this[_0x4edcac(0x220)]=[];}[_0x131176(0x3fb)](){const _0x2b6d6f=_0x131176,_0x51c1d3=[T[_0x2b6d6f(0x1dc)]['id']];this[_0x2b6d6f(0x2c7)](this[_0x2b6d6f(0x310)]['onCommandExecuted'](_0x5225f3=>{const _0x37cec8=_0x2b6d6f;_0x51c1d3[_0x37cec8(0x2c5)](_0x5225f3['id'])&&_0x5225f3[_0x37cec8(0x344)]['unitId']===this[_0x37cec8(0x392)][_0x37cec8(0x466)]&&this['_refreshCollabCursors']();}));}[_0x131176(0x2f1)](){const _0x55ff99=_0x131176;this[_0x55ff99(0x2c7)](a[_0x55ff99(0x232)](this['_context'][_0x55ff99(0x2b2)][_0x55ff99(0x2b3)])[_0x55ff99(0x465)]($[_0x55ff99(0x258)](_0x546087=>_0x546087[_0x55ff99(0x3ca)]===C[_0x55ff99(0x3eb)][_0x55ff99(0x287)]),$[_0x55ff99(0x235)](0x10))[_0x55ff99(0x2da)](()=>{const _0x11d77b=_0x55ff99;this[_0x11d77b(0x3d2)]();}));}};Ee=Mt([q(0x1,a['Inject'](V[_0x131176(0x383)])),q(0x2,a[_0x131176(0x2e8)](F)),q(0x3,a[_0x131176(0x3b3)]),q(0x4,a['Inject'](a[_0x131176(0x379)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x131176(0x357)]{constructor(_0x23a6ae,_0xc44fa9){const _0x292366=_0x131176;super(_0x23a6ae,_0xc44fa9),_(this,_0x292366(0x4a5)),_(this,_0x292366(0x416),!0x1),_(this,_0x292366(0x427)),_(this,_0x292366(0x45f),''),_(this,'_labelPosition',_0x292366(0x28d)),_(this,'_backgroundColor'),(_0xc44fa9&&this[_0x292366(0x385)](_0xc44fa9),this['onPointerEnter$'][_0x292366(0x38a)](()=>this[_0x292366(0x385)]({'hovered':!0x0})),this[_0x292366(0x1f4)][_0x292366(0x38a)](()=>this[_0x292366(0x385)]({'hovered':!0x1})));}[_0x131176(0x385)](_0x4635da){const _0x5c3ea5=_0x131176;var _0x47ff35,_0x361d8a,_0x198a78,_0xda8f46,_0x4a77fb,_0x3fd2ee;this['_color']=(_0x47ff35=_0x4635da['color'])!=null?_0x47ff35:this[_0x5c3ea5(0x4a5)],this[_0x5c3ea5(0x416)]=(_0x361d8a=_0x4635da[_0x5c3ea5(0x41c)])!=null?_0x361d8a:this[_0x5c3ea5(0x416)],this[_0x5c3ea5(0x427)]=(_0x198a78=_0x4635da[_0x5c3ea5(0x25f)])!=null?_0x198a78:this[_0x5c3ea5(0x427)],this[_0x5c3ea5(0x45f)]=(_0xda8f46=_0x4635da[_0x5c3ea5(0x386)])!=null?_0xda8f46:this[_0x5c3ea5(0x45f)],this['_labelPosition']=(_0x4a77fb=_0x4635da['labelPosition'])!=null?_0x4a77fb:this[_0x5c3ea5(0x402)],this[_0x5c3ea5(0x2d0)]=(_0x3fd2ee=_0x4635da[_0x5c3ea5(0x470)])!=null?_0x3fd2ee:this[_0x5c3ea5(0x2d0)],this[_0x5c3ea5(0x3bb)]({'width':_0x4635da[_0x5c3ea5(0x2b9)],'height':_0x4635da[_0x5c3ea5(0x366)]});}['onMouseMove'](_0x5b45ee){const _0x2c0456=_0x131176,{row:_0xb12409,column:_0x5cd3a0}=_0x5b45ee;if(_0xb12409>=this['_range'][_0x2c0456(0x274)]&&_0xb12409<=this[_0x2c0456(0x427)]['endRow']&&_0x5cd3a0>=this[_0x2c0456(0x427)][_0x2c0456(0x42a)]&&_0x5cd3a0<=this[_0x2c0456(0x427)][_0x2c0456(0x2cf)]){this[_0x2c0456(0x385)]({'hovered':!0x0});return;}this[_0x2c0456(0x385)]({'hovered':!0x1});}[_0x131176(0x2f6)](_0x3e3bde){return!0x1;}[_0x131176(0x25a)](_0x283ad6){const _0x59196e=_0x131176;C[_0x59196e(0x331)][_0x59196e(0x36b)](_0x283ad6,{'width':this[_0x59196e(0x2b9)],'height':this[_0x59196e(0x366)],'strokeWidth':Pt,'stroke':this[_0x59196e(0x4a5)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x59196e(0x416)]&&(_0x283ad6[_0x59196e(0x217)](),_0x283ad6[_0x59196e(0x41d)](0x1,0x0,0x0,0x1,this[_0x59196e(0x2b9)],this['_labelPosition']===_0x59196e(0x34c)?0x0:-X),re[_0x59196e(0x36b)](_0x283ad6,{'text':this[_0x59196e(0x45f)],'color':this[_0x59196e(0x4a5)]}),_0x283ad6[_0x59196e(0x3a3)]());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x302f52,_0x4ce723,_0x2e2c39,_0x3f97d6)=>{const _0x42bb1b=_0x131176;for(var _0x622ed7=_0x3f97d6>0x1?void 0x0:_0x3f97d6?wt(_0x4ce723,_0x2e2c39):_0x4ce723,_0x53b00d=_0x302f52[_0x42bb1b(0x2d6)]-0x1,_0x43ca25;_0x53b00d>=0x0;_0x53b00d--)(_0x43ca25=_0x302f52[_0x53b00d])&&(_0x622ed7=_0x43ca25(_0x622ed7)||_0x622ed7);return _0x622ed7;},ue=(_0x4e1a29,_0xe4315b)=>(_0x29c975,_0x47fedd)=>_0xe4315b(_0x29c975,_0x47fedd,_0x4e1a29);const $t=0x1389;let Ce=class extends a['RxDisposable']{constructor(_0x401f30,_0x37e5b2,_0x28a02f,_0x4b8281){const _0x10e4e1=_0x131176;super(),_(this,_0x10e4e1(0x2be),new Set()),_(this,_0x10e4e1(0x400),null),(this[_0x10e4e1(0x392)]=_0x401f30,this[_0x10e4e1(0x3f2)]=_0x37e5b2,this[_0x10e4e1(0x322)]=_0x28a02f,this['_themeService']=_0x4b8281,this[_0x10e4e1(0x494)]());}['_init'](){const _0x247b08=_0x131176;this[_0x247b08(0x3f2)][_0x247b08(0x457)][_0x247b08(0x465)]($['takeUntil'](this['dispose$']),$[_0x247b08(0x395)](_0x3719b0=>{const _0x3a79d2=_0x247b08;if(_0x3719b0){const _0x514c11=_0x3719b0['sheetId'];return I['combineLatest'](this[_0x3a79d2(0x322)][_0x3a79d2(0x351)](this[_0x3a79d2(0x392)]['unitId']),this[_0x3a79d2(0x35b)][_0x3a79d2(0x442)])['pipe']($[_0x3a79d2(0x225)](([_0x1344d4,_0x2f8268])=>{const _0x546128=_0x3a79d2,_0x469439=new Map();return _0x1344d4[_0x546128(0x24a)]((_0x5090c0,_0x5c75fc)=>{const _0x2a9b6e=_0x546128;if(_0x5090c0[_0x2a9b6e(0x284)]===_0x514c11){const _0x4f1e18={..._0x5090c0};_0x4f1e18[_0x2a9b6e(0x2ad)]=this[_0x2a9b6e(0x35b)]['getColorFromTheme'](_0x5090c0[_0x2a9b6e(0x2ad)]),_0x469439['set'](_0x5c75fc,_0x4f1e18);}}),{'skeleton':_0x3719b0,'cursors':_0x469439};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x247b08(0x2da)](({skeleton:_0x173492,cursors:_0x2b6285})=>{const _0x3c0943=_0x247b08;this['_removeCollabCursors'](),_0x173492&&this[_0x3c0943(0x21f)](_0x173492,_0x2b6285);}),this[_0x247b08(0x3f2)][_0x247b08(0x457)][_0x247b08(0x2da)](_0xaa44d4=>{const _0x4040fc=_0x247b08;if(_0xaa44d4==null)return;const {skeleton:_0x34f125}=_0xaa44d4,{scene:_0xb7759a}=this['_context'];_0xb7759a[_0x4040fc(0x2dd)][_0x4040fc(0x38a)](a[_0x4040fc(0x40a)](_0x55e5ce=>{const _0x34fa35=_0x4040fc;var _0x2e5213,_0x597def;const {offsetX:_0x328271,offsetY:_0x728326}=_0x55e5ce,{x:_0x47df43,y:_0x5e835b}=_0xb7759a[_0x34fa35(0x212)](C['Vector2'][_0x34fa35(0x3d0)]([_0x328271,_0x728326])),{scaleX:_0x203ca9,scaleY:_0x8da801}=_0xb7759a[_0x34fa35(0x352)](),_0x50afd1=_0xb7759a[_0x34fa35(0x33b)](C[_0x34fa35(0x3b6)][_0x34fa35(0x432)]),_0x46e00f=_0xb7759a[_0x34fa35(0x316)](C[_0x34fa35(0x409)]['FromArray']([_0x47df43,_0x5e835b]),_0x50afd1),_0x1e8d37=_0x34f125['getCellPositionByOffset'](_0x328271,_0x728326,_0x203ca9,_0x8da801,_0x46e00f);((_0x2e5213=this['_lastPointer'])==null?void 0x0:_0x2e5213['column'])===_0x1e8d37[_0x34fa35(0x299)]&&((_0x597def=this[_0x34fa35(0x400)])==null?void 0x0:_0x597def[_0x34fa35(0x44e)])===_0x1e8d37[_0x34fa35(0x44e)]||this['_cursors'][_0x34fa35(0x24a)](_0x2c1d13=>{const _0x27ed3c=_0x34fa35;_0x2c1d13[_0x27ed3c(0x484)](_0x1e8d37);});},0x64));});}[_0x131176(0x21f)](_0x1bdafe,_0x4d1ba5){const _0x7578d4=_0x131176;var _0x99f235;const _0x2000ea=(_0x99f235=this[_0x7578d4(0x3f2)]['getCurrent']())==null?void 0x0:_0x99f235['skeleton'];if(!_0x2000ea)return;const _0x26f0a3=this[_0x7578d4(0x1ff)]();if(!_0x26f0a3)return;this[_0x7578d4(0x2be)][_0x7578d4(0x24a)](_0x5848aa=>{const _0x419718=_0x7578d4;_0x5848aa[_0x419718(0x332)]();});const {scene:_0x27d275}=_0x26f0a3,_0x444fa8=xt(Array['from'](_0x4d1ba5[_0x7578d4(0x439)]()))[_0x7578d4(0x225)](_0x4c6dc4=>{const _0x57d27d=_0x7578d4,{color:_0x37940a,range:_0x1f0896,name:_0x3ca3ce,selection:_0x2187a1,sheetID:_0xe40262}=_0x4c6dc4,{startColumn:_0x108f83,startRow:_0x289aff,endColumn:_0x5c375e,endRow:_0x51c11a}=_0x1f0896,_0x4f7cd3=J[_0x57d27d(0x22a)](_0x289aff,_0x108f83,_0x27d275,_0x2000ea),_0x4fde5a=J[_0x57d27d(0x22a)](_0x51c11a,_0x5c375e,_0x27d275,_0x2000ea),{columnHeaderHeightAndMarginTop:_0x1c74aa}=_0x2000ea,{startX:_0x2b8bbd,startY:_0x36b772}=_0x4f7cd3,{endX:_0x408f85,endY:_0x37c8da}=_0x4fde5a,_0xb7e8aa=_0x408f85-_0x2b8bbd,_0x1efb3b=_0x37c8da-_0x36b772,_0x122fc2={'labelPosition':_0x36b772-_0x1c74aa>=X?_0x57d27d(0x28d):_0x57d27d(0x34c),'sheetID':_0xe40262,'range':_0x1f0896,'color':_0x37940a,'name':_0x3ca3ce,'selection':_0x2187a1,'left':_0x2b8bbd,'top':_0x36b772,'width':_0xb7e8aa,'height':_0x1efb3b,'evented':!0x1,'zIndex':$t};return new je(_0x3ca3ce,_0x122fc2);});_0x27d275[_0x7578d4(0x37f)](_0x444fa8,At),this['_cursors']=new Set(_0x444fa8);}[_0x131176(0x472)](){const _0x2e8593=_0x131176;var _0xe0c035;(_0xe0c035=this[_0x2e8593(0x2be)])==null||_0xe0c035['forEach'](_0x1e6819=>_0x1e6819[_0x2e8593(0x40d)]());}[_0x131176(0x1ff)](){const _0x3ab1a7=_0x131176;return J[_0x3ab1a7(0x1f1)](this['_context'][_0x3ab1a7(0x330)],this[_0x3ab1a7(0x392)]);}};Ce=yt([ue(0x1,a[_0x131176(0x2e8)](J[_0x131176(0x2b8)])),ue(0x2,a[_0x131176(0x2e8)](F)),ue(0x3,a['Inject'](a['ThemeService']))],Ce);function xt(_0x645b1e){const _0x49ae9d=_0x131176,_0x5d2ea7=new Map();return _0x645b1e[_0x49ae9d(0x24a)](_0x4d2721=>{const _0x52bb14=_0x49ae9d;if(_0x5d2ea7[_0x52bb14(0x48d)](_0x4d2721['selection'])){const _0x4fa54e=_0x5d2ea7[_0x52bb14(0x1fe)](_0x4d2721[_0x52bb14(0x22d)]);_0x4fa54e['name']+=',\x20'+_0x4d2721[_0x52bb14(0x386)];}else _0x5d2ea7[_0x52bb14(0x3d1)](_0x4d2721[_0x52bb14(0x22d)],_0x4d2721);}),Array['from'](_0x5d2ea7[_0x49ae9d(0x439)]());}var Bt=Object[_0x131176(0x40c)],Ft=(_0x5d5d9a,_0x7d424b,_0x3021f0,_0x3b21f9)=>{const _0x6593e3=_0x131176;for(var _0x2a78a4=_0x3b21f9>0x1?void 0x0:_0x3b21f9?Bt(_0x7d424b,_0x3021f0):_0x7d424b,_0x4243d5=_0x5d5d9a[_0x6593e3(0x2d6)]-0x1,_0x9ecc7d;_0x4243d5>=0x0;_0x4243d5--)(_0x9ecc7d=_0x5d5d9a[_0x4243d5])&&(_0x2a78a4=_0x9ecc7d(_0x2a78a4)||_0x2a78a4);return _0x2a78a4;},y=(_0x45c47e,_0x23fed3)=>(_0x58b53a,_0x333bf3)=>_0x23fed3(_0x58b53a,_0x333bf3,_0x45c47e);let Z=class extends a[_0x131176(0x2fe)]{constructor(_0xffada,_0x5dc426,_0x77f59,_0x11d782,_0x3bf57c,_0x50ac03){const _0x45e69d=_0x131176;super(),this[_0x45e69d(0x47f)]=_0xffada,this[_0x45e69d(0x228)]=_0x5dc426,this[_0x45e69d(0x4ac)]=_0x77f59,this[_0x45e69d(0x370)]=_0x11d782,this[_0x45e69d(0x35d)]=_0x3bf57c,this[_0x45e69d(0x2d5)]=_0x50ac03,this[_0x45e69d(0x3f1)](),this[_0x45e69d(0x428)]();}[_0x131176(0x3f1)](){const _0x1b3028=_0x131176;this[_0x1b3028(0x2c7)](this[_0x1b3028(0x47f)]['registerBeforeClose'](()=>{const _0x50420=_0x1b3028;if(this[_0x50420(0x228)][_0x50420(0x252)]['size'])return this[_0x50420(0x2d5)]['t'](_0x50420(0x2f0));}));}[_0x131176(0x428)](){const _0x56616c=_0x131176;this[_0x56616c(0x2c7)](this[_0x56616c(0x4ac)][_0x56616c(0x3e1)][_0x56616c(0x2da)](_0x198809=>{const _0x1bc4a5=_0x56616c;_0x198809['id']===u[_0x1bc4a5(0x42e)]['OTHER_CLIENT_EDITING']&&this[_0x1bc4a5(0x370)]['show']({'type':p[_0x1bc4a5(0x43d)]['Warning'],'content':this[_0x1bc4a5(0x2d5)]['t'](_0x1bc4a5(0x293))}),_0x198809['id']===u['CollaborationUIEventId'][_0x1bc4a5(0x325)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p[_0x1bc4a5(0x43d)][_0x1bc4a5(0x44d)],'content':this[_0x1bc4a5(0x2d5)]['t'](_0x1bc4a5(0x209))}),_0x198809['id']===u[_0x1bc4a5(0x42e)][_0x1bc4a5(0x2ea)]&&this[_0x1bc4a5(0x35d)]['show']({'title':this[_0x1bc4a5(0x2d5)]['t'](_0x1bc4a5(0x3d4)),'content':this[_0x1bc4a5(0x2d5)]['t']('permission.content'),'type':'error','duration':0x0}),_0x198809['id']===u['CollaborationUIEventId'][_0x1bc4a5(0x22e)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p[_0x1bc4a5(0x43d)][_0x1bc4a5(0x333)],'content':this['_localeService']['t'](_0x1bc4a5(0x209))+'('+_0x198809[_0x1bc4a5(0x318)]+')'}),_0x198809['id']===u['CollaborationUIEventId'][_0x1bc4a5(0x4a0)]&&this[_0x1bc4a5(0x370)]['show']({'type':p[_0x1bc4a5(0x43d)][_0x1bc4a5(0x44d)],'content':this[_0x1bc4a5(0x2d5)]['t'](_0x198809[_0x1bc4a5(0x318)]||'')}),_0x198809['id']===u[_0x1bc4a5(0x42e)][_0x1bc4a5(0x36e)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p[_0x1bc4a5(0x43d)]['Warning'],'content':this['_localeService']['t'](_0x1bc4a5(0x345))}),_0x198809['id']===u[_0x1bc4a5(0x42e)][_0x1bc4a5(0x3ad)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p[_0x1bc4a5(0x43d)][_0x1bc4a5(0x333)],'content':this['_localeService']['t'](_0x1bc4a5(0x29e))}),_0x198809['id']===u[_0x1bc4a5(0x42e)][_0x1bc4a5(0x2c3)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p['MessageType'][_0x1bc4a5(0x333)],'content':this[_0x1bc4a5(0x2d5)]['t'](_0x1bc4a5(0x304))});}));}};Z=Ft([y(0x0,O[_0x131176(0x23e)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x131176(0x2e8)](u['CollaborationUIEventService'])),y(0x3,O[_0x131176(0x2a5)]),y(0x4,O['INotificationService']),y(0x5,a[_0x131176(0x2e8)](a['LocaleService']))],Z);var jt=Object[_0x131176(0x40c)],kt=(_0x39bf44,_0x2a32d6,_0x40e632,_0x3b9127)=>{const _0x58aab3=_0x131176;for(var _0x2bfb12=_0x3b9127>0x1?void 0x0:_0x3b9127?jt(_0x2a32d6,_0x40e632):_0x2a32d6,_0x22ecbf=_0x39bf44[_0x58aab3(0x2d6)]-0x1,_0x26561d;_0x22ecbf>=0x0;_0x22ecbf--)(_0x26561d=_0x39bf44[_0x22ecbf])&&(_0x2bfb12=_0x26561d(_0x2bfb12)||_0x2bfb12);return _0x2bfb12;},z=(_0x492652,_0x4c62b5)=>(_0x2e695a,_0x97081)=>_0x4c62b5(_0x2e695a,_0x97081,_0x492652);let Q=class extends a[_0x131176(0x2fe)]{constructor(_0x843b10,_0x4fffe3,_0x995d61,_0x47c31f){const _0x1c2248=_0x131176;super(),_(this,_0x1c2248(0x233)),(this['_injector']=_0x843b10,this[_0x1c2248(0x35c)]=_0x4fffe3,this[_0x1c2248(0x419)]=_0x995d61,this[_0x1c2248(0x321)]=_0x47c31f,this[_0x1c2248(0x494)]());}[_0x131176(0x494)](){const _0x173140=_0x131176;this[_0x173140(0x25e)](),this[_0x173140(0x291)](),this[_0x173140(0x411)](),this[_0x173140(0x35f)]();}[_0x131176(0x35f)](){const _0x3214bc=_0x131176;this[_0x3214bc(0x2c7)](this[_0x3214bc(0x321)][_0x3214bc(0x246)][_0x3214bc(0x2da)](_0x543dc7=>{const _0x22224b=_0x3214bc;this[_0x22224b(0x233)]=_0x543dc7==null?void 0x0:_0x543dc7[_0x22224b(0x371)];}));}[_0x131176(0x25e)](){const _0x38eea8=_0x131176,_0x988a94=_0x4284b3=>{const _0x1c8377=_0xd4c9;var _0x33a058;this[_0x1c8377(0x3ce)](_0x1c8377(0x3c3),_0x1c8377(0x412)+_0x4284b3[_0x1c8377(0x261)]+'\x20at\x20'+_0x4284b3[_0x1c8377(0x37d)]+':'+_0x4284b3[_0x1c8377(0x23a)]+':'+_0x4284b3[_0x1c8377(0x32f)]+'\x0a'+(((_0x33a058=_0x4284b3[_0x1c8377(0x3c3)])==null?void 0x0:_0x33a058[_0x1c8377(0x38c)])||''));};window[_0x38eea8(0x347)]('error',_0x988a94),this[_0x38eea8(0x2c7)](()=>{const _0x6a0d37=_0x38eea8;window['removeEventListener'](_0x6a0d37(0x3c3),_0x988a94);});}[_0x131176(0x291)](){const _0x33285e=_0x131176,_0x4eef39=_0x334a80=>{const _0x383ee2=_0xd4c9;this[_0x383ee2(0x3ce)]('error',_0x383ee2(0x376)+_0x334a80[_0x383ee2(0x488)]);};window['addEventListener'](_0x33285e(0x3cd),_0x4eef39),this['disposeWithMe'](()=>{const _0x4e1738=_0x33285e;window[_0x4e1738(0x458)](_0x4e1738(0x3cd),_0x4eef39);});}[_0x131176(0x411)](){const _0x57a7b0=_0x131176,_0x2e9d7e=this['_logService'][_0x57a7b0(0x3c3)][_0x57a7b0(0x280)](this[_0x57a7b0(0x419)]);this['_logService'][_0x57a7b0(0x3c3)]=(..._0x418b3d)=>{const _0x375dc5=_0x57a7b0,_0xe20e79=_0x418b3d[_0x375dc5(0x225)](_0x717876=>_0x717876 instanceof Error?_0x717876[_0x375dc5(0x261)]+'\x0a'+_0x717876[_0x375dc5(0x38c)]:String(_0x717876))[_0x375dc5(0x349)]('\x20');this[_0x375dc5(0x3ce)](_0x375dc5(0x3c3),_0x375dc5(0x3c6)+_0xe20e79),_0x2e9d7e(..._0x418b3d);},this[_0x57a7b0(0x2c7)](()=>{const _0x4bfdb8=_0x57a7b0;this[_0x4bfdb8(0x419)]['error']=_0x2e9d7e;});}[_0x131176(0x3ce)](_0x427ee5,_0x36cbe4){const _0x2b4db8=_0x131176;try{const _0xc0f862={'userId':this[_0x2b4db8(0x233)],'logLabel':_0x427ee5,'content':_0x36cbe4};this['_httpService']['post'](_0x2b4db8(0x479),{'body':_0xc0f862})[_0x2b4db8(0x2a9)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),z(0x1,a['Inject'](x[_0x131176(0x20b)])),z(0x2,a[_0x131176(0x493)]),z(0x3,a[_0x131176(0x2e8)](u[_0x131176(0x3e9)]))],Q);function _0xd4c9(_0x215768,_0x3a9bc6){_0x215768=_0x215768-0x1da;const _0x23f678=_0x23f6();let _0xd4c91b=_0x23f678[_0x215768];return _0xd4c91b;}const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x131176(0x40c)],Wt=(_0x5f2f4e,_0x4c83a2,_0x80b4fb,_0x7c301)=>{const _0x29c486=_0x131176;for(var _0x22e2df=_0x7c301>0x1?void 0x0:_0x7c301?Ht(_0x4c83a2,_0x80b4fb):_0x4c83a2,_0x5ef8ac=_0x5f2f4e[_0x29c486(0x2d6)]-0x1,_0x549891;_0x5ef8ac>=0x0;_0x5ef8ac--)(_0x549891=_0x5f2f4e[_0x5ef8ac])&&(_0x22e2df=_0x549891(_0x22e2df)||_0x22e2df);return _0x22e2df;},Ae=(_0xd849ee,_0x48298f)=>(_0x27f080,_0x2fac31)=>_0x48298f(_0x27f080,_0x2fac31,_0xd849ee);let ee=class{constructor(_0xf06277,_0x5ae924){const _0x149e40=_0x131176;this[_0x149e40(0x283)]=_0xf06277,this[_0x149e40(0x37e)]=_0x5ae924;}[_0x131176(0x40b)](_0x38a0fc){const _0x1592c2=_0x131176;this[_0x1592c2(0x481)](_0x38a0fc),this[_0x1592c2(0x339)](_0x38a0fc);}[_0x131176(0x262)](_0x5519a8){const _0x369302=_0x131176,{unitID:_0x270991}=_0x5519a8,_0x32e2c3=this[_0x369302(0x37e)][_0x369302(0x483)](_0x270991)['with'](T[_0x369302(0x43f)]),{redoCache:_0x5e8637}=_0x32e2c3['getUndoRedoMutationParamsCache']();if(_0x5e8637[_0x369302(0x2d6)]===0x0)return _0x5519a8;let _0x1bb236=a[_0x369302(0x313)][_0x369302(0x46f)](_0x5519a8[_0x369302(0x264)][0x0]);for(let _0x10457a=0x0;_0x10457a<_0x5e8637[_0x369302(0x2d6)];_0x10457a++){const _0x28880e={'id':_0x369302(0x2b6),'params':{..._0x5e8637[_0x10457a]}},_0x5f0abe=this[_0x369302(0x283)][_0x369302(0x2b7)](_0x1bb236,_0x28880e,!0x1);if(g[_0x369302(0x20a)](_0x5f0abe))throw _0x5f0abe['error'];_0x1bb236=_0x5f0abe[_0x369302(0x2aa)];}return{...a[_0x369302(0x313)][_0x369302(0x46f)](_0x5519a8),'mutations':[_0x1bb236]};}[_0x131176(0x481)](_0xaff7b8){const _0x174523=_0x131176,{unitID:_0x3e619b}=_0xaff7b8,_0x16a326=this[_0x174523(0x37e)]['getRenderById'](_0x3e619b)[_0x174523(0x3e8)](T['DocIMEInputManagerService']),{undoCache:_0x31fb80,redoCache:_0x17e93d}=_0x16a326[_0x174523(0x29d)]();if(_0x31fb80['length']===0x0||_0x17e93d[_0x174523(0x2d6)]===0x0)return;const _0x7053d8=[],_0x39010b=[];let _0x7b3853=a[_0x174523(0x313)]['deepClone'](_0xaff7b8[_0x174523(0x264)][0x0]),_0x4f022e=a['Tools']['deepClone'](_0xaff7b8[_0x174523(0x264)][0x0]);for(let _0x53c1aa=_0x31fb80['length']-0x1;_0x53c1aa>=0x0;_0x53c1aa--){const _0x184021={'id':_0x174523(0x2b6),'params':{..._0x31fb80[_0x53c1aa]}},_0x41e68c={'id':_0x174523(0x2b6),'params':{..._0x17e93d[_0x53c1aa]}},_0x5169e2=this[_0x174523(0x283)][_0x174523(0x2b7)](_0x7b3853,_0x184021,!0x1),_0x150056=this[_0x174523(0x283)][_0x174523(0x2b7)](_0x4f022e,_0x41e68c,!0x1);if(g[_0x174523(0x20a)](_0x5169e2))throw _0x5169e2[_0x174523(0x3c3)];if(g[_0x174523(0x20a)](_0x150056))throw _0x150056[_0x174523(0x3c3)];_0x7053d8[_0x174523(0x2f3)](_0x5169e2[_0x174523(0x42d)][_0x174523(0x344)]),_0x39010b['unshift'](_0x150056[_0x174523(0x42d)][_0x174523(0x344)]),_0x7b3853=_0x5169e2[_0x174523(0x2aa)],_0x4f022e=_0x150056[_0x174523(0x2aa)];}_0x16a326[_0x174523(0x20c)]({'undoCache':_0x7053d8,'redoCache':_0x39010b});}['_transformPreviousActiveRange'](_0x50aa52){const _0x4b2111=_0x131176,{unitID:_0x50d733}=_0x50aa52,_0x29fd0a=this['_renderManagerService'][_0x4b2111(0x483)](_0x50d733)[_0x4b2111(0x3e8)](T[_0x4b2111(0x43f)]),_0x149e98=_0x29fd0a[_0x4b2111(0x2eb)]();if(_0x149e98==null)return;const _0x4c2d62=[{'id':_0x4b2111(0x2b6),'params':{'unitId':_0x50aa52[_0x4b2111(0x278)],'actions':null,'textRanges':[_0x149e98]}}],_0x5636b5=this['_transformService'][_0x4b2111(0x2a1)](_0x50aa52,_0x4c2d62);if(!g[_0x4b2111(0x42f)](_0x5636b5))throw _0x5636b5[_0x4b2111(0x3c3)];const _0x1fe29c=_0x5636b5['m2Prime'][0x0]['params'][_0x4b2111(0x2f2)];Array[_0x4b2111(0x3d6)](_0x1fe29c)&&_0x1fe29c[_0x4b2111(0x2d6)]&&_0x29fd0a[_0x4b2111(0x42b)](_0x1fe29c[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x131176(0x3ba)])],ee);var Vt=Object[_0x131176(0x40c)],Gt=(_0x55a6d1,_0x3ed5f7,_0x44a519,_0x1d8394)=>{const _0x4fb437=_0x131176;for(var _0x23e93c=_0x1d8394>0x1?void 0x0:_0x1d8394?Vt(_0x3ed5f7,_0x44a519):_0x3ed5f7,_0x4f9ecc=_0x55a6d1[_0x4fb437(0x2d6)]-0x1,_0x28290e;_0x4f9ecc>=0x0;_0x4f9ecc--)(_0x28290e=_0x55a6d1[_0x4f9ecc])&&(_0x23e93c=_0x28290e(_0x23e93c)||_0x23e93c);return _0x23e93c;},Ie=(_0x150dd7,_0x297dfc)=>(_0x526d3f,_0x6c846a)=>_0x297dfc(_0x526d3f,_0x6c846a,_0x150dd7);let te=class{constructor(_0x5aaaf9,_0x53da6e,_0x3d39ef){const _0x46aca7=_0x131176;this[_0x46aca7(0x268)]=_0x5aaaf9,this[_0x46aca7(0x283)]=_0x53da6e,this[_0x46aca7(0x32c)]=_0x3d39ef;}[_0x131176(0x45a)](_0x20f36e){const _0x40b0b5=_0x131176;this[_0x40b0b5(0x3ee)](_0x20f36e);}[_0x131176(0x262)](_0x6b9b45){const _0x4b5970=_0x131176,{unitID:_0x3fe18c}=_0x6b9b45,{collaboration:_0x205bea}=this[_0x4b5970(0x32c)][_0x4b5970(0x205)](_0x3fe18c);if(_0x205bea[_0x4b5970(0x2d6)]===0x0)return _0x6b9b45;let _0x51134f=a[_0x4b5970(0x313)][_0x4b5970(0x46f)](_0x6b9b45[_0x4b5970(0x264)][0x0]);for(let _0x14e348=0x0;_0x14e348<_0x205bea['length'];_0x14e348++){const _0xe368d2={'id':_0x4b5970(0x2b6),'params':{'unitId':_0x205bea[_0x14e348][_0x4b5970(0x466)],..._0x205bea[_0x14e348][_0x4b5970(0x49c)]}},_0x569bd8=this[_0x4b5970(0x283)][_0x4b5970(0x2b7)](_0x51134f,_0xe368d2,!0x1);if(g[_0x4b5970(0x20a)](_0x569bd8))throw _0x569bd8[_0x4b5970(0x3c3)];_0x51134f=_0x569bd8[_0x4b5970(0x2aa)];}return{...a['Tools'][_0x4b5970(0x46f)](_0x6b9b45),'mutations':[_0x51134f]};}[_0x131176(0x3ee)](_0x3786ed){const _0x3e754c=_0x131176,{unitID:_0x5c0875}=_0x3786ed,{history:_0x238351,collaboration:_0x3ce42a}=this[_0x3e754c(0x32c)][_0x3e754c(0x205)](_0x5c0875);if(_0x238351[_0x3e754c(0x2d6)]===0x0&&_0x3ce42a[_0x3e754c(0x2d6)]===0x0)return;const _0x284b78=[],_0x3027d1=[];let _0xd9686f=a['Tools'][_0x3e754c(0x46f)](_0x3786ed['mutations'][0x0]),_0x15d9a8=a[_0x3e754c(0x313)]['deepClone'](_0x3786ed[_0x3e754c(0x264)][0x0]);for(let _0x3d0e55=_0x238351[_0x3e754c(0x2d6)]-0x1;_0x3d0e55>=0x0;_0x3d0e55--){const _0x2b94aa={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x238351[_0x3d0e55][_0x3e754c(0x466)],..._0x238351[_0x3d0e55][_0x3e754c(0x251)]}},_0x421c96={'id':_0x3e754c(0x2b6),'params':{'unitId':_0x238351[_0x3d0e55][_0x3e754c(0x466)],..._0x238351[_0x3d0e55]['redoState']}},_0x4b1748=this['_transformService'][_0x3e754c(0x2b7)](_0xd9686f,_0x2b94aa,!0x1),_0x1ca817=this['_transformService'][_0x3e754c(0x2b7)](_0x15d9a8,_0x421c96,!0x1);if(g[_0x3e754c(0x20a)](_0x4b1748))throw _0x4b1748['error'];if(g[_0x3e754c(0x20a)](_0x1ca817))throw _0x1ca817['error'];_0x284b78[_0x3e754c(0x2f3)]({..._0x238351[_0x3d0e55],'undoState':_0x4b1748['m2Prime'][_0x3e754c(0x344)],'redoState':_0x1ca817[_0x3e754c(0x42d)]['params']}),_0xd9686f=_0x4b1748[_0x3e754c(0x2aa)],_0x15d9a8=_0x1ca817[_0x3e754c(0x2aa)];}_0xd9686f=a[_0x3e754c(0x313)][_0x3e754c(0x46f)](_0x3786ed['mutations'][0x0]),_0x15d9a8=a[_0x3e754c(0x313)]['deepClone'](_0x3786ed[_0x3e754c(0x264)][0x0]);for(let _0x3042e0=_0x3ce42a[_0x3e754c(0x2d6)]-0x1;_0x3042e0>=0x0;_0x3042e0--){const _0x13d648={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ce42a[_0x3042e0][_0x3e754c(0x466)],..._0x3ce42a[_0x3042e0][_0x3e754c(0x251)]}},_0x53ec57={'id':_0x3e754c(0x2b6),'params':{'unitId':_0x3ce42a[_0x3042e0][_0x3e754c(0x466)],..._0x3ce42a[_0x3042e0]['redoState']}},_0x99a53a=this[_0x3e754c(0x283)]['transformMutation'](_0xd9686f,_0x13d648,!0x1),_0x3a1ec0=this['_transformService'][_0x3e754c(0x2b7)](_0x15d9a8,_0x53ec57,!0x1);if(g[_0x3e754c(0x20a)](_0x99a53a))throw _0x99a53a[_0x3e754c(0x3c3)];if(g['isTransformMutationFailure'](_0x3a1ec0))throw _0x3a1ec0[_0x3e754c(0x3c3)];_0x3027d1[_0x3e754c(0x2f3)]({..._0x3ce42a[_0x3042e0],'undoState':_0x99a53a['m2Prime'][_0x3e754c(0x344)],'redoState':_0x3a1ec0[_0x3e754c(0x42d)]['params']}),_0xd9686f=_0x99a53a[_0x3e754c(0x2aa)],_0x15d9a8=_0x3a1ec0[_0x3e754c(0x2aa)];}this['_docStateChangeManagerService'][_0x3e754c(0x3c8)](_0x5c0875,{'history':_0x284b78,'collaboration':_0x3027d1});}};function _0x23f6(){const _0x3e49ea=['[LogService\x20Error]:\x20','_cachedData','setStateCache','svg','type','LICENSE_EXPORT_SIZE_EXCEEDED','_updateLocalCursor','unhandledrejection','_uploadLog','UNAUTHENTICATED','FromArray','set','_refreshCollabCursors','_cursor','permission.title','div','isArray','_render','Tooltip','ENTITLE_NEED_BILLING_ADDRESS','_textBubble','PENDING','invokeId','attrs','setTimeout','0\x200\x2017\x2016','EffectRefRangId','event$','_handleHover','entries','_online','getTypeOfUnitDisposed$','LocaleService','getMember','with','CollaborationSessionService','_entityInit$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getItem','_setupSubUnitSync','_transformHistoryAndStateStack','_colorIndex','handleInsertRangeMoveDown','_setupBeforeClosingHandler','_sheetSkeletonManagerService','_collaborationController','collab-client.tooltip.reconnect','CollaborationSocketService','ITransformService','ISnapshotServerService','shareReplay','roomMembers','ENTITLE_COUPON_EXPIRED','_initCommandExecutedListener','UnitStatus','1em','OTHER_CLIENTS_EDITING','Plugin','_lastPointer','_getSaveTimeout','_labelPosition','getCurrentUnitForType','RichTextEditingMutation','substring','handleInsertRow','_drawTextRange','USER_IS_ANONYMOUS','Vector2','debounce','transformIMECache','getOwnPropertyDescriptor','dispose','_syncEditingCollabCursorService','UNRECOGNIZED','IRemoteInstanceService','_monkeyPatchLogService','[Window\x20Error]:\x20','SetWorksheetActivateCommand','arc','NodePositionConvertToCursor','_hovered','roomMembers$','getOffsetConfig','_logService','_onCursorUpdate','UniverIcon','hovered','transform','FormulaExecuteStageType','/universer-api/license/formula/limit/status','createElement','registerDependencies','enableLocalCache','_eventUnsubscribe','SheetsSelectionsService','idSuffix','useObservable','_range','_initEvent','stageInfo','startColumn','setActiveRange','YUUMI_UNABLE_LOAD_URL','m2Prime','CollaborationUIEventId','isTransformMutationsWithChangesetSuccess','getSheetId','xlink:href','VIEW_MAIN','none','flatMap','LICENSE_IMPORT_SIZE_EXCEEDED','21kYRtcV','exhaustSavingTask','on-line-icon_clip0_910_349','values','serializeRangeWithSheet','PY_RUNTIME_SCRIPT_ERROR','getColorFromTheme','MessageType','entityInit$','DocIMEInputManagerService','asObservable','urlChange$','currentTheme$','SetTextSelectionsOperation','REDEMPTION_CODE_INACTIVE','_collabCursorState$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','dispose$','getColor','_docTransformSelectionsService','0\x200\x2016\x2016','measureText','_status$','Warning','row','WebSocketService','_showGuardMessage','getCurrentRevOfUnit','INVALID_ARGUMENT','collabStatus.conflict','tag','_handleHeartbeatEvent','docStateChange$','currentSkeleton$','removeEventListener','ISocketService','transformStateCache','jiqing.500','loadUnit','debounceTime','INVITE_CODE_ALREADY_BOUND','_name','lineTo','_memberService','MOBILE_VERIFY_CODE_MISMATCH','EMAIL_VERIFY_CODE_MISMATCH','_handleJoinEvent','pipe','unitId','touchDependencies','moveTo','UNIVER_SHEET','getUnitId','evenodd','BrowserCollaborationSocketService','MemberService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','deepClone','backgroundColor','maxFormulaLimit','_removeCollabCursors','mapTo','ONLINE','disableLocalCache','loadOfflineData','_config','transformSelections','/universer-api/frontend/logs','onStarting','sessionTicket','RemoveRowCommandId','colorChannel1','toStringTag','_beforeCloseService','_createSocketURL','_transformUndoRedoStack','combineLatest','getRenderById','onMouseMove','useCallback','ALREADY_EXISTS','CURRENT_STATUS_CANNOT_OPERATE','reason','getTypeOfUnitAdded$','_disabled','_instanceService','_collabSessionService','has','DependentOn','functionsExecutedState','parseInt','NOT_COLLAB','DesktopCollaborationStatusDisplayController','ILogService','_init','CanceledError','OffLineIcon','LOGIN_FAILED','_updateSubUnitFromURLParams','_saveTaskMap','_setFormulaLimitStatus','_clearPolling','redoState','371233lmXmIr','_lastResponseTimestamp','_urlService','JOIN_ROOM_FAILED','_docTransformIMECacheService','_registerDependencies','getMemberID','enableFrontendLog','_color','min','_anchorDot','_docSyncEditingCollabCursorService','pluginName','fill','then','_collaborationUIEventService','fillRule','registerRenderModule','getCellMatrix','_session','source','_releaseCalculationLimit','REDEMPTION_CODE_NOT_STARTED','IUIPartsService','onPointerEnter$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_applyCommand','SetDocZoomRatioOperation','ENTITLE_INSUFFICIENT_QUOTA','defIds','push','TEXT_RANGE_LAYER_INDEX','_docSkeleton','_taskIds','handleInsertRangeMoveRight','history','toString','collab-text-range-','IConfigService','string','unload','getformulaLimitStatusUrl','url(#on-line-icon_clip0_910_349)','RECT','_uiPartsService','connectInjector','_hideTimer','status$','getSheetObject','assignAColorForMemberID','setParam','onPointerLeave$','/universer-api/license/formula/limit/start','useDependency','currentUsage','init','stage','mask','getUnitStatus$','activeSheet$','find','get','_getSheetObject','CHANGESET_REVISION_CONFILICT','_currentUsage','split','DataLoaderService','ILocalStorageService','getStateCache','generateRandomId','saveImage','takeUntil','collaboration.closeRoom','isTransformMutationFailure','HTTPService','setUndoRedoMutationParamsCache','deserializeRangeWithSheet','clearInterval','ENTITLE_INVALID_COUPON_CODE','whenReady','unsubscribe','getRelativeToViewportCoord','addClipboardHook','_cursorInfo$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collabStatus.notCollab','save','_entities','complete','INVITE_CODE_HAS_BEEN_UES','PAYMENT_CHANNEL_NOT_SUPPORT','setAlpha','10546110BGkZpw','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_updateCollabCursors','_cursorShapes','Loading','from','RemoteUniscriptService','...','map','AWAITING_WITH_PENDING','add','_localCacheService','merge','getCoordByCell','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_scheduleClearOtherTimer','selection','CONFLICT','http://www.w3.org/2000/svg','DocStateChangeManagerService','_getAnchorBounding','fromEventSubject','_memberID','_startDocCollabCursor','throttleTime','APPLY_PERMISSION_DENIED','_startSheetCollabCursor','_clearOtherTimers','getConfig','lineno','next','_handleEvent','Unknown\x20user','IBeforeCloseService','RevisionService','handleDeleteRangeMoveUp','_refRangeService','_drawAnchor','show','APPLY_REJECT','HEADER_MENU','socket$','collabStatus.fetchMiss','APPLY_DUPLICATED','SetSelectionsOperation','forEach','UniverCollaborationClientUIPlugin','Injector','startFormulaLimitUrl','totalFormulasToCalculate','off-line-icon','YUUMI_ALL_TABLES_IS_INVALID','undoState','saveTaskMap','createIdentifier','_document','ERROR_AGAIN','WECHAT_HAS_BEEN_BOUND','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','filter','_saveCache','_draw','collabStatus.offline','replaceDocRanges','INVITE_CODE_REQUIRED','_initWindowErrorListener','range','send','message','transformRemoteChangeset','dirtyRanges','mutations','_localStorageService','body','runRefRangeMutations','_injector','_revisionService','handleInsertCol','MOBILE_HAS_BEEN_BOUND','formula.calculation.unable','findNodePositionByCharIndex','Subject','children','RefRangeService','_configService','registerRefRange','CONNECTOR_DATA_TOO_LARGE','startRow','getSheetBySheetId','_getFormulaLimitStatus','getUnhiddenWorksheets','unitID','isEditing','onCommandExecuted','href','Optional','currentColor','getMergeData','CollaborationStatus','bind','126BqLdBY','REDEMPTION_USER_NOT_ELIGIBLE','_transformService','sheetID','onLocalMutation','max','resize','LICENSE_MAX_UNITS_EXCEEDED','delete','SUCCESS','collabCursorState$','ranges','top','USERS_LEAVE','_scene','subunit','_initUnhandledRejectionListener','COLORS','collaboration.single-unit.warning','_drawRectRange','YUUMI_URL_COL_OUT_OF_RANGE','handleMoveRange','hide','handleIRemoveCol','column','clsx','UNIVER_DOC','pushState','getUndoRedoMutationParamsCache','session.connection-failed','_unitOnClients','_initEntityListener','transformMutationsWithChangeset','getFocusedUnit','origin','YUUMI_SUBSCRIPTION_NOT_FOUND','IMessageService','UniverInstanceType','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','off-line-icon_clip0_910_343','catch','m1Prime','toDisposable','DOC_RANGE_TYPE','color','some','SNAPSHOT_INVALID_SNAPSHOT','runId','_updateURLWithCurrentState','engine','onTransformChange$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','LOGIN_TOKEN_PROCESSING_FAILED','doc.mutation.rich-text-editing','transformMutation','SheetSkeletonManagerService','width','_anchor','_imageIoService','executeCommand','APPLY_NON_SEQUENTIAL_REVISION','_cursors','wsSessionTicketUrl','displayName','clipPath','NO_OTHER_CLIENTS_EDITING','SUBMIT_CHANGESET_TIMEOUT','replaceState','includes','ENTITLE_REPORT_LIMIT_EXCEED','disposeWithMe','setItem','imageSourceType','32154PXfWqz','forwardRef','storage','_maxFormulaLimit','handleDeleteRangeMoveLeft','endColumn','_backgroundColor','round','size','application/json','contains','_localeService','length','fillStyle','_onCursorDelete','_univerInstanceService','subscribe','RegularPolygon','requireSession','onPointerMove$','SheetCollabCursorShape','selections','univerjs-icon\x20univerjs-icon-','M0\x200H16V16H0z','debug','_send','jsxs','blue.400','ENTITLE_USE_COUPON_NOT_1ST_TRADE','YUUMI_AI_RUN_FAILED','Inject','result','PERMISSION_DENIED','getActiveRange','on-line-icon','USER_NOT_FOUND','_handleLeaveEvent','_hover','collaboration.offline-data-not-saved','_initResize','textRanges','unshift','REDEMPTION_INVALID_CODE','shift','triggerDblclick','UNDEFINED','_roomMembers$','post','COMPLETION_FINISHED','_checkCalculationAvailable','SYNCED','now','Disposable','ACTIVE_UNIT_EVENT_CHANNEL','NOT_FOUND','reconnect','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','useRef','session.collaboration-timeout','url(#$1','popstate','code','UniverCollaborationClientPlugin','_initCommandInterceptor','newValue','collabStatus.syncing','_ensureSubject','MoveRangeCommandId','ENTITLE_COUPON_USED_UP','_getMergeRange','_commandService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','defs','Tools','url(#off-line-icon_clip0_910_343)','isActive','getVpScrollXYInfoByPosToVp','executionId','data','_onRefRangeChange','_pollingInterval','collabStatus.synced','stringify','formula.calculation.waiting','black','_colorAssignService','_selfUnitIDs','_collaborationSessionService','_collabCursorController','?taskId=','_unitStatus','CLOSE_ROOM','TEXT','_shapes','syncEditingCollabCursor','getUnit','getRangePointData','fromEvent','_docStateChangeManagerService','SNAPSHOT_HAS_BEEN_REMOVED','IImageIoService','colno','unit','Rect','makeDirty','Error','Success','defineProperty','LICENSE_DISTRO_REJECTED','getLocalCacheKey','RxDisposable','_transformPreviousActiveRange','saveOfflineData','getViewport','random','_assignedColors','ENSURE_SNAPSHOT_EXECUTION','text','TOO_MANY_REQUESTS','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','cursorInfo','DATA_SOURCE_TOO_LARGE','params','session.will-retry','APPLY_REVISION_CONFILICT','addEventListener','YUUMI_CONNECTOR_URL_NOT_FOUND','join','OFFLINE','createSocket','bottom','USER_NOT_INVITED_CODE','Workbook','_doCreateSocket','toRgbString','getCollabCursors$','getAncestorScale','setConfig','IURLService','getDocRanges','Failed','Shape','CollaborationController','use','YUUMI_RATE_OVER_LIMIT','_themeService','_httpService','_notificationService','rgba(255,\x20255,\x20255,\x200.01)','_initUserListener','_removeClearOtherTimer','trim','assign','parse','onRendered','getValue','height','IDocClipboardService','searchParams','addObject','DisposableCollection','drawWith','jsx','IUniverInstanceService','SOCKET_FAILED_RETRY','_toggleOffline','_messageService','memberID','_initDependencies','limitInfo','editingUnit','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[Unhandled\x20Rejection]:\x20','_scheduleSaving','createInstance','ThemeService','path','OnLineIcon','_startCalculationLimit','filename','_renderManagerService','addObjects','getParam','INTERNAL_ERROR','999670ymweZj','DocSkeletonManagerService','getUniverSheetInstance','setShapeProps','name','location','ILocalCacheService','ColorKit','subscribeEvent','_checkAndWaitForCalculationPermission','stack','_id','1763436DZeBxi','_hasFormulaInDirtyRanges','AUTHORIZE_CODE_ILLEGAL','REDEMPTION_CODE_FULLY_REDEEMED','_context','_heartbeatTimer','_dataLoaderService','switchMap','BuiltInUIPart','UPDATE_CURSOR','_docClipboardService','actions','NodePositionConvertToRectRange','mergeOverrideWithDependencies','cursorInfo$','InsertRowCommandId','runOnServer','clearTimeout','RemoveColCommandId','_getScale','CollaborationEvent','restore','eventID','38112HhOtGK','FormulaExecutedStateType','WebBrowserSingleActiveUnitService','SetFormulaCalculationNotificationMutation','AWAITING','_toggleOnline','DocSelectionManagerService','BehaviorSubject','SOCKET_FAILED','REDEMPTION_CODE_HAS_BEEN_CREATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','replace','YUUMI_NO_CUBOID_FOR_QUESTION','_docTransformStateCacheService','ICommandService','_docSkeletonManagerService','ENTITLE_CHAT_LIMIT_EXCEED','SHEET_VIEWPORT_KEY','[CollaborationDataLoaderController]','YUUMI_ASYNCIO_CANCELLED','1324224wTQWFE','IRenderManagerService','transformByState','_getSessionTicket','formula.calculation.started','CollaborationDataLoaderController','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','registerComponent','SessionStatus','getCollabEntity$','error','FETCH_MISS','disposeUnit'];_0x23f6=function(){return _0x3e49ea;};return _0x23f6();}te=Gt([Ie(0x0,a[_0x131176(0x2e8)](a['Injector'])),Ie(0x1,g[_0x131176(0x3f6)]),Ie(0x2,a[_0x131176(0x2e8)](T[_0x131176(0x230)]))],te);var Xt=Object[_0x131176(0x40c)],Kt=(_0x52c5db,_0x3cce04,_0x27c410,_0x2d5048)=>{const _0x135534=_0x131176;for(var _0x4fca9c=_0x2d5048>0x1?void 0x0:_0x2d5048?Xt(_0x3cce04,_0x27c410):_0x3cce04,_0x181195=_0x52c5db[_0x135534(0x2d6)]-0x1,_0x51de77;_0x181195>=0x0;_0x181195--)(_0x51de77=_0x52c5db[_0x181195])&&(_0x4fca9c=_0x51de77(_0x4fca9c)||_0x4fca9c);return _0x4fca9c;},Pe=(_0x4d4275,_0x37d0d0)=>(_0x10f9df,_0x3274e9)=>_0x37d0d0(_0x10f9df,_0x3274e9,_0x4d4275);let se=class{constructor(_0x36dd00,_0x35ad0d){const _0xcf886=_0x131176;this[_0xcf886(0x268)]=_0x36dd00,this[_0xcf886(0x283)]=_0x35ad0d;}[_0x131176(0x478)](_0x1ddf19){const _0x473ac1=_0x131176;var _0xd8551a;const _0xadb0aa=this[_0x473ac1(0x268)][_0x473ac1(0x1fe)](V['DocSelectionManagerService']),_0x38a507=(_0xd8551a=_0xadb0aa[_0x473ac1(0x355)]())!=null?_0xd8551a:[];if(_0x38a507[_0x473ac1(0x2d6)]===0x0)return;const _0x29b586=_0x1ddf19['unitID'],_0x3b5a9d=[{'id':_0x473ac1(0x2b6),'params':{'unitId':_0x29b586,'actions':null,'textRanges':_0x38a507}}],_0x20231e=this['_transformService']['transformMutationsWithChangeset'](_0x1ddf19,_0x3b5a9d);if(!g[_0x473ac1(0x42f)](_0x20231e))throw _0x20231e['error'];const _0x10731a=_0x20231e['m2Prime'][0x0][_0x473ac1(0x344)]['textRanges'];Array[_0x473ac1(0x3d6)](_0x10731a)&&_0x10731a[_0x473ac1(0x2d6)]&&_0xadb0aa[_0x473ac1(0x25c)](_0x10731a,{'unitId':_0x29b586,'subUnitId':_0x29b586},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x131176(0x24c)])),Pe(0x1,g[_0x131176(0x3f6)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x4e5a35,_0x459ebb,_0x39ccd6,_0x418cf5)=>{const _0x27d91e=_0x131176;for(var _0x1de8e6=_0x418cf5>0x1?void 0x0:_0x418cf5?qt(_0x459ebb,_0x39ccd6):_0x459ebb,_0x34ee72=_0x4e5a35[_0x27d91e(0x2d6)]-0x1,_0x204f9b;_0x34ee72>=0x0;_0x34ee72--)(_0x204f9b=_0x4e5a35[_0x34ee72])&&(_0x1de8e6=_0x204f9b(_0x1de8e6)||_0x1de8e6);return _0x1de8e6;},N=(_0x941bbf,_0x559bec)=>(_0x1b9882,_0x16ef40)=>_0x559bec(_0x1b9882,_0x16ef40,_0x941bbf);let ie=class extends a[_0x131176(0x2fe)]{constructor(_0x57393e,_0x5c99fe,_0x3001af,_0x3b0263,_0x1d0143,_0x547f2f,_0x15311b,_0x421ed3){const _0x3279f6=_0x131176;super(),_(this,_0x3279f6(0x44c),new I[(_0x3279f6(0x3ac))](u['CollaborationStatus'][_0x3279f6(0x491)])),(this[_0x3279f6(0x32c)]=_0x57393e,this[_0x3279f6(0x3f3)]=_0x5c99fe,this[_0x3279f6(0x4a1)]=_0x3001af,this[_0x3279f6(0x3b2)]=_0x3b0263,this[_0x3279f6(0x449)]=_0x1d0143,this[_0x3279f6(0x4a8)]=_0x547f2f,this[_0x3279f6(0x370)]=_0x15311b,this[_0x3279f6(0x2d5)]=_0x421ed3,this[_0x3279f6(0x2a0)]());}[_0x131176(0x2a0)](){const _0x3c5a66=_0x131176;this[_0x3c5a66(0x2c7)](this['_collaborationController'][_0x3c5a66(0x43e)][_0x3c5a66(0x2da)](_0x1d74e2=>{const _0x4f129f=_0x3c5a66,_0x545853=this[_0x4f129f(0x32c)][_0x4f129f(0x456)][_0x4f129f(0x2da)](_0x50ef0d=>{const _0x44e7de=_0x4f129f;if(_0x50ef0d==null)return;const {unitId:_0x2d3137,redoState:_0x3bf491,commandId:_0x2094b4}=_0x50ef0d;if(_0x2d3137!==_0x1d74e2[_0x44e7de(0x278)])return;const _0x277052={'id':_0x2094b4,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x2d3137,'actions':_0x3bf491[_0x44e7de(0x399)],'textRanges':null}};_0x1d74e2[_0x44e7de(0x285)](_0x277052);});if(_0x1d74e2[_0x4f129f(0x2c7)](_0x545853),_0x1d74e2 instanceof u['DocCollaborationEntity']){const _0x2203ab={'onTransformIME':_0x526963=>this[_0x4f129f(0x4a1)][_0x4f129f(0x40b)](_0x526963),'onTransformState':_0x2144ef=>this[_0x4f129f(0x3b2)]['transformStateCache'](_0x2144ef),'onTransformSelections':_0x2e5739=>this[_0x4f129f(0x449)][_0x4f129f(0x478)](_0x2e5739),'onSyncEditingCollabCursor':_0x1e1f7d=>this[_0x4f129f(0x4a8)]['syncEditingCollabCursor'](_0x1e1f7d),'onTransformRemoteChangesetByIMECache':_0xa761c8=>this[_0x4f129f(0x4a1)][_0x4f129f(0x262)](_0xa761c8),'onTransformRemoteChangesetByStateCache':_0x1754f2=>this[_0x4f129f(0x3b2)][_0x4f129f(0x262)](_0x1754f2)};_0x1d74e2['addHandlerCallback'](_0x2203ab);}}));}};ie=zt([N(0x0,a[_0x131176(0x2e8)](T[_0x131176(0x230)])),N(0x1,a[_0x131176(0x2e8)](u[_0x131176(0x358)])),N(0x2,a[_0x131176(0x2e8)](ee)),N(0x3,a[_0x131176(0x2e8)](te)),N(0x4,a[_0x131176(0x2e8)](se)),N(0x5,a[_0x131176(0x2e8)](be)),N(0x6,O[_0x131176(0x2a5)]),N(0x7,a[_0x131176(0x2e8)](a[_0x131176(0x3e6)]))],ie);var G=(_0x101fa5=>(_0x101fa5[_0x101fa5['UNDEFINED']=0x0]=_0x131176(0x2f7),_0x101fa5[_0x101fa5['OK']=0x1]='OK',_0x101fa5[_0x101fa5[_0x131176(0x381)]=0x2]=_0x131176(0x381),_0x101fa5[_0x101fa5['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x101fa5[_0x101fa5[_0x131176(0x300)]=0x4]=_0x131176(0x300),_0x101fa5[_0x101fa5[_0x131176(0x3cf)]=0x5]=_0x131176(0x3cf),_0x101fa5[_0x101fa5[_0x131176(0x486)]=0x6]=_0x131176(0x486),_0x101fa5[_0x101fa5[_0x131176(0x452)]=0x7]=_0x131176(0x452),_0x101fa5[_0x101fa5['TOO_MANY_REQUESTS']=0x8]=_0x131176(0x340),_0x101fa5[_0x101fa5[_0x131176(0x2fa)]=0x9]=_0x131176(0x2fa),_0x101fa5[_0x101fa5[_0x131176(0x497)]=0xa]=_0x131176(0x497),_0x101fa5[_0x101fa5['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x131176(0x462),_0x101fa5[_0x101fa5[_0x131176(0x257)]=0xc]=_0x131176(0x257),_0x101fa5[_0x101fa5[_0x131176(0x463)]=0xd]=_0x131176(0x463),_0x101fa5[_0x101fa5[_0x131176(0x46e)]=0xe]=_0x131176(0x46e),_0x101fa5[_0x101fa5['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x131176(0x390),_0x101fa5[_0x101fa5[_0x131176(0x2b5)]=0x10]=_0x131176(0x2b5),_0x101fa5[_0x101fa5[_0x131176(0x487)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x101fa5[_0x101fa5[_0x131176(0x255)]=0x65]='ERROR_AGAIN',_0x101fa5[_0x101fa5['USER_NOT_FOUND']=0xc9]=_0x131176(0x2ed),_0x101fa5[_0x101fa5['USER_IS_ANONYMOUS']=0xca]=_0x131176(0x408),_0x101fa5[_0x101fa5[_0x131176(0x200)]=0x1389]=_0x131176(0x200),_0x101fa5[_0x101fa5[_0x131176(0x2af)]=0x1771]=_0x131176(0x2af),_0x101fa5[_0x101fa5[_0x131176(0x32d)]=0x1772]=_0x131176(0x32d),_0x101fa5[_0x101fa5[_0x131176(0x33e)]=0x1773]=_0x131176(0x33e),_0x101fa5[_0x101fa5['APPLY_REJECT']=0x1b59]=_0x131176(0x244),_0x101fa5[_0x101fa5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x131176(0x2bd),_0x101fa5[_0x101fa5[_0x131176(0x346)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x101fa5[_0x101fa5[_0x131176(0x236)]=0x1b5c]=_0x131176(0x236),_0x101fa5[_0x101fa5['APPLY_DUPLICATED']=0x1b5d]=_0x131176(0x248),_0x101fa5[_0x101fa5[_0x131176(0x273)]=0x1f41]=_0x131176(0x273),_0x101fa5[_0x101fa5['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x131176(0x288),_0x101fa5[_0x101fa5[_0x131176(0x3af)]=0x232a]=_0x131176(0x3af),_0x101fa5[_0x101fa5[_0x131176(0x435)]=0x232b]=_0x131176(0x435),_0x101fa5[_0x101fa5[_0x131176(0x3cb)]=0x232c]=_0x131176(0x3cb),_0x101fa5[_0x101fa5[_0x131176(0x336)]=0x232d]=_0x131176(0x336),_0x101fa5[_0x101fa5[_0x131176(0x42c)]=0x2711]=_0x131176(0x42c),_0x101fa5[_0x101fa5[_0x131176(0x295)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x101fa5[_0x101fa5[_0x131176(0x35a)]=0x2713]=_0x131176(0x35a),_0x101fa5[_0x101fa5[_0x131176(0x2a4)]=0x2714]=_0x131176(0x2a4),_0x101fa5[_0x101fa5[_0x131176(0x3b1)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x101fa5[_0x101fa5[_0x131176(0x3b8)]=0x271b]=_0x131176(0x3b8),_0x101fa5[_0x101fa5['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x131176(0x311),_0x101fa5[_0x101fa5[_0x131176(0x250)]=0x271d]=_0x131176(0x250),_0x101fa5[_0x101fa5['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x101fa5[_0x101fa5[_0x131176(0x2e7)]=0x271f]=_0x131176(0x2e7),_0x101fa5[_0x101fa5[_0x131176(0x348)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x101fa5[_0x101fa5[_0x131176(0x43b)]=0x2af9]=_0x131176(0x43b),_0x101fa5[_0x101fa5[_0x131176(0x21a)]=0x2ee1]=_0x131176(0x21a),_0x101fa5[_0x101fa5['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x101fa5[_0x101fa5[_0x131176(0x25d)]=0x2ee3]=_0x131176(0x25d),_0x101fa5[_0x101fa5['USER_NOT_INVITED_CODE']=0x2ee4]=_0x131176(0x34d),_0x101fa5[_0x101fa5[_0x131176(0x45e)]=0x2ee5]=_0x131176(0x45e),_0x101fa5[_0x101fa5[_0x131176(0x256)]=0x32c9]=_0x131176(0x256),_0x101fa5[_0x101fa5['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x131176(0x26b),_0x101fa5[_0x101fa5['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x101fa5[_0x101fa5[_0x131176(0x21e)]=0x36b1]=_0x131176(0x21e),_0x101fa5[_0x101fa5[_0x131176(0x302)]=0x36b2]=_0x131176(0x302),_0x101fa5[_0x101fa5['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x101fa5[_0x101fa5['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x131176(0x21b),_0x101fa5[_0x101fa5[_0x131176(0x20f)]=0x36b5]=_0x131176(0x20f),_0x101fa5[_0x101fa5[_0x131176(0x3fa)]=0x36b6]=_0x131176(0x3fa),_0x101fa5[_0x101fa5['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x131176(0x30e),_0x101fa5[_0x101fa5[_0x131176(0x2e6)]=0x36b8]=_0x131176(0x2e6),_0x101fa5[_0x101fa5[_0x131176(0x3b5)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x101fa5[_0x101fa5[_0x131176(0x2c6)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x101fa5[_0x101fa5[_0x131176(0x1dd)]=0x3717]=_0x131176(0x1dd),_0x101fa5[_0x101fa5[_0x131176(0x3d9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x101fa5[_0x101fa5['REDEMPTION_INVALID_CODE']=0x3a99]=_0x131176(0x2f4),_0x101fa5[_0x101fa5['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x131176(0x444),_0x101fa5[_0x101fa5[_0x131176(0x391)]=0x3a9b]=_0x131176(0x391),_0x101fa5[_0x101fa5[_0x131176(0x4b3)]=0x3a9c]=_0x131176(0x4b3),_0x101fa5[_0x101fa5['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x131176(0x282),_0x101fa5[_0x101fa5[_0x131176(0x2b4)]=0x3a9e]=_0x131176(0x2b4),_0x101fa5[_0x101fa5[_0x131176(0x3ae)]=0x3a9f]=_0x131176(0x3ae),_0x101fa5[_0x101fa5['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x131176(0x343),_0x101fa5[_0x101fa5[_0x131176(0x40f)]=-0x1]=_0x131176(0x40f),_0x101fa5))(G||{});function Jt(_0x55ea1d){const _0xfd8d2=_0x131176;var _0x2c44f9,_0x32634d;const _0x1b13db=(_0x2c44f9=_0x55ea1d[_0xfd8d2(0x429)])==null?void 0x0:_0x2c44f9[_0xfd8d2(0x1f9)],_0x98506d=((_0x32634d=_0x55ea1d[_0xfd8d2(0x429)])==null?void 0x0:_0x32634d[_0xfd8d2(0x24e)])||0x0;return _0x1b13db===B[_0xfd8d2(0x41e)]['START_CALCULATION']&&_0x98506d>0x0;}function Zt(_0x48be14){const _0x31db31=_0x131176;return _0x48be14[_0x31db31(0x48f)]===B[_0x31db31(0x3a6)][_0x31db31(0x28a)];}var Qt=Object[_0x131176(0x40c)],es=(_0x3184cd,_0x2a8783,_0x244f31,_0x3e6a17)=>{const _0xf3b16c=_0x131176;for(var _0x15cb36=_0x3e6a17>0x1?void 0x0:_0x3e6a17?Qt(_0x2a8783,_0x244f31):_0x2a8783,_0x136086=_0x3184cd[_0xf3b16c(0x2d6)]-0x1,_0x3b8c57;_0x136086>=0x0;_0x136086--)(_0x3b8c57=_0x3184cd[_0x136086])&&(_0x15cb36=_0x3b8c57(_0x15cb36)||_0x15cb36);return _0x15cb36;},L=(_0x2e49f7,_0x5c85e1)=>(_0x53cc94,_0xf1b03c)=>_0x5c85e1(_0x53cc94,_0xf1b03c,_0x2e49f7);const ts=_0x131176(0x41f),ss=_0x131176(0x1f5),is='/universer-api/license/formula/limit/done';let ne=class extends a['Disposable']{constructor(_0x2505af,_0x3eb718,_0x4b9773,_0x349887,_0x44165c,_0x1ef7ed,_0x41b386){const _0x4404eb=_0x131176;super(),_(this,_0x4404eb(0x31a),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x4404eb(0x201),0x0),_(this,_0x4404eb(0x1e2),[]),_(this,_0x4404eb(0x49e),0x0),(this[_0x4404eb(0x370)]=_0x2505af,this[_0x4404eb(0x310)]=_0x3eb718,this['_configService']=_0x4b9773,this[_0x4404eb(0x35c)]=_0x349887,this[_0x4404eb(0x2d9)]=_0x44165c,this[_0x4404eb(0x419)]=_0x1ef7ed,this[_0x4404eb(0x2d5)]=_0x41b386,this['_initCommandInterceptor']());}[_0x131176(0x309)](){const _0x456995=_0x131176;this[_0x456995(0x2c7)](this['_commandService']['beforeCommandExecuted']((_0x13c9b6,_0x2c5cc7)=>{const _0x45fdb9=_0x456995;var _0x21b5b1;if(_0x13c9b6['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x33b815=_0x13c9b6['params'];if(!this[_0x45fdb9(0x38f)]((_0x21b5b1=_0x33b815[_0x45fdb9(0x263)])!=null?_0x21b5b1:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x45fdb9(0x38b)](_0x13c9b6,_0x2c5cc7),this[_0x45fdb9(0x450)](),new a[(_0x45fdb9(0x495))]();})),this[_0x456995(0x2c7)](this[_0x456995(0x310)][_0x456995(0x27a)]((_0x592422,_0x5910d0)=>{const _0x59312a=_0x456995;if(_0x592422['id']!==B[_0x59312a(0x3a8)]['id'])return;const _0x327947=_0x592422['params'];if(Jt(_0x327947)){const _0x44c619=a[_0x59312a(0x206)]();this[_0x59312a(0x1e2)][_0x59312a(0x1df)](_0x44c619),this[_0x59312a(0x37c)](_0x44c619);}else{if(Zt(_0x327947)&&this[_0x59312a(0x1e2)]['length']>0x0){const _0x21fd0e=this[_0x59312a(0x1e2)][_0x59312a(0x2f5)]();this[_0x59312a(0x4b2)](_0x21fd0e);}}}));}[_0x131176(0x40d)](){const _0x239875=_0x131176;super[_0x239875(0x40d)](),this[_0x239875(0x49b)](),this[_0x239875(0x1e2)]=[],this[_0x239875(0x201)]=0x0,this[_0x239875(0x2cd)]=0x0,this[_0x239875(0x49e)]=0x0;}async[_0x131176(0x38b)](_0x4bd3bf,_0x4cab03){const _0xbf0ad=_0x131176;for(let _0x262480=0x0;_0x262480<0x1e;_0x262480++)try{if(await this['_getFormulaLimitStatus'](),this[_0xbf0ad(0x2fb)]()){this['_applyCommand'](_0x4bd3bf,_0x4cab03),this['_messageService'][_0xbf0ad(0x243)]({'content':this[_0xbf0ad(0x2d5)]['t'](_0xbf0ad(0x3bd)),'type':p[_0xbf0ad(0x43d)][_0xbf0ad(0x334)]});return;}await new Promise(_0x25fbd3=>{const _0xb881ab=_0xbf0ad;this[_0xb881ab(0x31a)]=window[_0xb881ab(0x3de)](_0x25fbd3,0x3e8);});}catch(_0xb1e4d9){this[_0xbf0ad(0x419)][_0xbf0ad(0x3c3)](_0xb1e4d9);}this[_0xbf0ad(0x370)][_0xbf0ad(0x243)]({'content':this[_0xbf0ad(0x2d5)]['t'](_0xbf0ad(0x26c)),'type':p[_0xbf0ad(0x43d)][_0xbf0ad(0x333)]});}[_0x131176(0x1db)](_0x59f6ef,_0x30261d){const _0x14a01b=_0x131176;try{this[_0x14a01b(0x310)][_0x14a01b(0x2bc)](_0x59f6ef['id'],_0x59f6ef['params'],_0x30261d);}catch(_0x435d79){this[_0x14a01b(0x419)][_0x14a01b(0x3c3)](_0x435d79);}}[_0x131176(0x49a)](_0x28807c,_0x10a887){const _0x25bc08=_0x131176;_0x10a887<this[_0x25bc08(0x49e)]||(this['_lastResponseTimestamp']=_0x10a887,this[_0x25bc08(0x2cd)]=Number['parseInt'](_0x28807c[_0x25bc08(0x471)]),this[_0x25bc08(0x201)]=Number[_0x25bc08(0x490)](_0x28807c[_0x25bc08(0x1f7)]));}async[_0x131176(0x37c)](_0x1f637e){const _0x1e442f=_0x131176;var _0x3ae7e3,_0x11fb6e;const _0x515fc2=Date[_0x1e442f(0x2fd)]();try{const _0x2d0043=((_0x3ae7e3=this[_0x1e442f(0x271)]['getConfig'](u[_0x1e442f(0x446)]))==null?void 0x0:_0x3ae7e3[_0x1e442f(0x24d)])||ss,_0xe27608=(await this['_httpService'][_0x1e442f(0x2f9)](_0x2d0043,{'body':JSON['stringify']({'taskId':_0x1f637e})}))['body'];if(((_0x11fb6e=_0xe27608[_0x1e442f(0x3c3)])==null?void 0x0:_0x11fb6e[_0x1e442f(0x307)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0xe27608['limitInfo'],_0x515fc2);}catch(_0x4e38df){this['_logService']['error'](_0x4e38df);}}async[_0x131176(0x276)](_0x5d3bd6){const _0x1fbe27=_0x131176;var _0x4b5bc9,_0xa020f3;const _0xfe42ef=Date['now']();try{const _0x2d198f=((_0x4b5bc9=this['_configService'][_0x1fbe27(0x239)](u[_0x1fbe27(0x446)]))==null?void 0x0:_0x4b5bc9[_0x1fbe27(0x1ea)])||ts,_0x273dce=_0x5d3bd6?_0x2d198f+_0x1fbe27(0x323)+encodeURIComponent(_0x5d3bd6):_0x2d198f,_0x4edc6a=(await this['_httpService'][_0x1fbe27(0x1fe)](_0x273dce))[_0x1fbe27(0x266)];if(((_0xa020f3=_0x4edc6a[_0x1fbe27(0x3c3)])==null?void 0x0:_0xa020f3[_0x1fbe27(0x307)])!==G['OK'])return;this[_0x1fbe27(0x49a)](_0x4edc6a['limitInfo'],_0xfe42ef);}catch(_0x1c175a){this[_0x1fbe27(0x419)]['error'](_0x1c175a);}}async[_0x131176(0x4b2)](_0x5f4b45){const _0x3b3518=_0x131176;var _0x348712,_0x1737b5;const _0x181909=Date[_0x3b3518(0x2fd)]();try{const _0x4c477c=((_0x348712=this[_0x3b3518(0x271)][_0x3b3518(0x239)](u[_0x3b3518(0x446)]))==null?void 0x0:_0x348712['releaseFormulaLimitUrl'])||is,_0x3eb8ba=(await this[_0x3b3518(0x35c)]['post'](_0x4c477c,{'body':JSON['stringify']({'taskId':_0x5f4b45})}))[_0x3b3518(0x266)];if(((_0x1737b5=_0x3eb8ba['error'])==null?void 0x0:_0x1737b5[_0x3b3518(0x307)])!==G['OK'])return;this[_0x3b3518(0x49a)](_0x3eb8ba[_0x3b3518(0x373)],_0x181909);}catch(_0x206a2b){this['_logService']['error'](_0x206a2b);}}[_0x131176(0x2fb)](){const _0x7728b3=_0x131176;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x7728b3(0x2cd)]-this['_currentUsage']>0x0;}[_0x131176(0x49b)](){const _0x38e4b1=_0x131176;this[_0x38e4b1(0x31a)]&&(clearTimeout(this[_0x38e4b1(0x31a)]),this[_0x38e4b1(0x31a)]=null);}[_0x131176(0x450)](){const _0xfbb606=_0x131176;this[_0xfbb606(0x370)][_0xfbb606(0x243)]({'content':this[_0xfbb606(0x2d5)]['t'](_0xfbb606(0x31d)),'type':p[_0xfbb606(0x43d)][_0xfbb606(0x221)]});}['_hasFormulaInDirtyRanges'](_0x4ca3a9){const _0x27ec82=_0x131176;for(const _0x4761ae of _0x4ca3a9){const {unitId:_0x7d3e9b,sheetId:_0x4af71c,range:_0x3e092c}=_0x4761ae,_0x5a7001=this[_0x27ec82(0x2d9)][_0x27ec82(0x329)](_0x7d3e9b);if(!_0x5a7001)continue;const _0x161977=_0x5a7001['getSheetBySheetId'](_0x4af71c);if(!_0x161977)continue;const _0x51ae39=_0x161977[_0x27ec82(0x4af)]();for(let _0x5833f8=_0x3e092c['startRow'];_0x5833f8<=_0x3e092c['endRow'];_0x5833f8++)for(let _0x38fa73=_0x3e092c[_0x27ec82(0x42a)];_0x38fa73<=_0x3e092c['endColumn'];_0x38fa73++){const _0x21d02a=_0x51ae39['getValue'](_0x5833f8,_0x38fa73);if(_0x21d02a&&(a['isFormulaString'](_0x21d02a['f'])||a['isFormulaId'](_0x21d02a['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x131176(0x2e8)](O[_0x131176(0x2a5)])),L(0x1,a[_0x131176(0x3b3)]),L(0x2,a[_0x131176(0x1e7)]),L(0x3,a[_0x131176(0x2e8)](x['HTTPService'])),L(0x4,a[_0x131176(0x36d)]),L(0x5,a['ILogService']),L(0x6,a[_0x131176(0x2e8)](a[_0x131176(0x3e6)]))],ne);var ns=Object[_0x131176(0x40c)],rs=(_0x2a3e84,_0x41cb2b,_0x2948ef,_0x346ea5)=>{const _0x1045a1=_0x131176;for(var _0x26c0cf=_0x346ea5>0x1?void 0x0:_0x346ea5?ns(_0x41cb2b,_0x2948ef):_0x41cb2b,_0x562716=_0x2a3e84[_0x1045a1(0x2d6)]-0x1,_0x560bb2;_0x562716>=0x0;_0x562716--)(_0x560bb2=_0x2a3e84[_0x562716])&&(_0x26c0cf=_0x560bb2(_0x26c0cf)||_0x26c0cf);return _0x26c0cf;},Se=(_0x150d13,_0x5579a1)=>(_0x4a3d75,_0x3dba4d)=>_0x5579a1(_0x4a3d75,_0x3dba4d,_0x150d13);let Te=class extends a[_0x131176(0x2fe)]{constructor(_0x2c354e,_0x1fb6be,_0x16fa07){const _0x3e7966=_0x131176;super(),_(this,_0x3e7966(0x3c7),new Map()),_(this,_0x3e7966(0x499),new Map()),_(this,_0x3e7966(0x48a),!0x1),(this[_0x3e7966(0x271)]=_0x2c354e,this[_0x3e7966(0x265)]=_0x1fb6be,this[_0x3e7966(0x269)]=_0x16fa07);}[_0x131176(0x475)](){const _0x4df662=_0x131176;this[_0x4df662(0x48a)]=!0x0;}[_0x131176(0x422)](){const _0x2214bd=_0x131176;this[_0x2214bd(0x48a)]=!0x1;}get[_0x131176(0x252)](){const _0xc6d86f=_0x131176;return this[_0xc6d86f(0x499)];}['dispose'](){const _0x57245b=_0x131176;this[_0x57245b(0x437)]()[_0x57245b(0x4ab)](()=>super[_0x57245b(0x40d)]());}async[_0x131176(0x476)](_0x64dbf2){const _0x497997=_0x131176;return this[_0x497997(0x48a)]?null:this[_0x497997(0x265)][_0x497997(0x3ec)](u[_0x497997(0x337)](_0x64dbf2));}async[_0x131176(0x33a)](_0x1c0050,_0x52d4eb){const _0xd84632=_0x131176;return!!this[_0xd84632(0x265)]['setItem'](_0x1c0050,_0x52d4eb);}['updateOfflineData'](_0x358379,_0x8332fe,_0x5b4eb7,_0x3d3322){const _0xdbcf25=_0x131176,_0x275cbc=this['_revisionService'][_0xdbcf25(0x451)](_0x358379);this[_0xdbcf25(0x3c7)][_0xdbcf25(0x3d1)](_0x358379,{'unitID':_0x358379,'type':_0x8332fe,'awaitingChangeset':_0x5b4eb7,'mutations':_0x3d3322,'rev':_0x275cbc}),this[_0xdbcf25(0x499)]['has'](_0x358379)||this[_0xdbcf25(0x377)](_0x358379);}[_0x131176(0x377)](_0xa4c0a){const _0x36276f=_0x131176,_0x2e319b=this['_getSaveTimeout']();_0x2e319b===0x0?this[_0x36276f(0x259)](_0xa4c0a):this[_0x36276f(0x499)][_0x36276f(0x3d1)](_0xa4c0a,setTimeout(()=>this[_0x36276f(0x259)](_0xa4c0a),_0x2e319b));}[_0x131176(0x401)](){const _0x49e196=_0x131176;var _0xf77e1a;return(_0xf77e1a=this[_0x49e196(0x271)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xf77e1a:u['LOCAL_CACHE_INTERVAL'];}[_0x131176(0x259)](_0x59521a){const _0x54ab6a=_0x131176,_0x53ef32=this[_0x54ab6a(0x499)][_0x54ab6a(0x1fe)](_0x59521a);return _0x53ef32!==void 0x0&&window[_0x54ab6a(0x39f)](_0x53ef32),this[_0x54ab6a(0x265)][_0x54ab6a(0x2c8)](u['getLocalCacheKey'](_0x59521a),this[_0x54ab6a(0x3c7)][_0x54ab6a(0x1fe)](_0x59521a))[_0x54ab6a(0x4ab)](()=>this[_0x54ab6a(0x499)][_0x54ab6a(0x289)](_0x59521a));}async[_0x131176(0x437)](){const _0x5ee840=[];this['_saveTaskMap']['forEach']((_0x3eece5,_0x1a0828)=>{const _0x100351=_0xd4c9;window[_0x100351(0x39f)](_0x3eece5),_0x5ee840['push'](this[_0x100351(0x259)](_0x1a0828)['then'](()=>{const _0x527bba=_0x100351;this[_0x527bba(0x499)][_0x527bba(0x289)](_0x1a0828);}));}),await Promise['all'](_0x5ee840);}};Te=rs([Se(0x0,a[_0x131176(0x1e7)]),Se(0x1,a[_0x131176(0x204)]),Se(0x2,a['Inject'](g[_0x131176(0x23f)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x2c59e7=_0x131176;super(),_(this,_0x2c59e7(0x441)),this['urlChange$']=I[_0x2c59e7(0x32b)](window,_0x2c59e7(0x306))[_0x2c59e7(0x465)](I[_0x2c59e7(0x208)](this['dispose$']),I[_0x2c59e7(0x3f8)](0x1),I[_0x2c59e7(0x473)](void 0x0));}[_0x131176(0x1f3)](_0x46625f,_0x4e5ca4,_0x6f1aed=!0x1){const _0x597b1d=_0x131176,_0x39a994=new URL(window[_0x597b1d(0x387)][_0x597b1d(0x27b)]);_0x39a994[_0x597b1d(0x368)]['set'](_0x46625f,_0x4e5ca4),_0x6f1aed?window['history'][_0x597b1d(0x2c4)]('','',_0x39a994[_0x597b1d(0x1e5)]()):window[_0x597b1d(0x1e4)][_0x597b1d(0x29c)]('','',_0x39a994[_0x597b1d(0x1e5)]());}['removeParam'](_0x5aedba,_0x41d5b3=!0x1){const _0x351093=_0x131176,_0x319551=new URL(window[_0x351093(0x387)][_0x351093(0x27b)]);_0x319551['searchParams'][_0x351093(0x289)](_0x5aedba),_0x41d5b3?window[_0x351093(0x1e4)][_0x351093(0x2c4)]('','',_0x319551[_0x351093(0x1e5)]()):window[_0x351093(0x1e4)][_0x351093(0x29c)]('','',_0x319551['toString']());}[_0x131176(0x380)](_0x2e2c62){const _0x461159=_0x131176;var _0x5c2616;return(_0x5c2616=new URL(window[_0x461159(0x387)][_0x461159(0x27b)])[_0x461159(0x368)][_0x461159(0x1fe)](_0x2e2c62))!=null?_0x5c2616:void 0x0;}}var os=Object[_0x131176(0x335)],as=Object[_0x131176(0x40c)],cs=(_0x285062,_0x25c0e4,_0x5d6d9b)=>_0x25c0e4 in _0x285062?os(_0x285062,_0x25c0e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d6d9b}):_0x285062[_0x25c0e4]=_0x5d6d9b,ls=(_0x123dce,_0x105f30,_0x5deb4f,_0x350947)=>{for(var _0x5a851e=_0x350947>0x1?void 0x0:_0x350947?as(_0x105f30,_0x5deb4f):_0x105f30,_0x4733bd=_0x123dce['length']-0x1,_0xc25cc5;_0x4733bd>=0x0;_0x4733bd--)(_0xc25cc5=_0x123dce[_0x4733bd])&&(_0x5a851e=_0xc25cc5(_0x5a851e)||_0x5a851e);return _0x5a851e;},de=(_0x48ff1d,_0x47bf7f)=>(_0x562c3a,_0x399ea7)=>_0x47bf7f(_0x562c3a,_0x399ea7,_0x48ff1d),_s=(_0x3cacc2,_0x93cfb,_0x3be3fb)=>cs(_0x3cacc2,_0x93cfb+'',_0x3be3fb);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x131176(0x24b)]=class extends a[_0x131176(0x3ff)]{constructor(_0x163a61=Me,_0x29ff4a,_0x155b31,_0x14bb61){const _0x6b4113=_0x131176;super(),this[_0x6b4113(0x477)]=_0x163a61,this[_0x6b4113(0x37e)]=_0x29ff4a,this['_injector']=_0x155b31,this['_configService']=_0x14bb61;const {..._0x36fc57}=a['merge']({},Me,this[_0x6b4113(0x477)]);this[_0x6b4113(0x271)][_0x6b4113(0x353)](Yt,_0x36fc57);}[_0x131176(0x47a)](){const _0x315131=_0x131176;this[_0x315131(0x4a2)](),this[_0x315131(0x372)]();}[_0x131176(0x364)](){this['_registerRenderDependencies']();}[_0x131176(0x4a2)](){const _0x31e8a1=_0x131176;var _0x53b2ab;const _0x9e6dc3=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x31e8a1(0x459)],{'useClass':x[_0x31e8a1(0x44f)]}],[u[_0x31e8a1(0x388)],{'useClass':Te}],[exports[_0x31e8a1(0x492)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this['_config'][_0x31e8a1(0x4a4)]&&_0x9e6dc3[_0x31e8a1(0x1df)]([Q]),a[_0x31e8a1(0x421)](this[_0x31e8a1(0x268)],a[_0x31e8a1(0x39b)](_0x9e6dc3,(_0x53b2ab=this['_config'])==null?void 0x0:_0x53b2ab['override']));}['_registerRenderDependencies'](){const _0x24fc83=_0x131176;this['disposeWithMe'](this[_0x24fc83(0x37e)][_0x24fc83(0x4ae)](a[_0x24fc83(0x2a6)]['UNIVER_DOC'],[Ee])),this[_0x24fc83(0x2c7)](this[_0x24fc83(0x37e)]['registerRenderModule'](a[_0x24fc83(0x2a6)][_0x24fc83(0x469)],[Ce]));}[_0x131176(0x372)](){const _0x5ac777=_0x131176;a[_0x5ac777(0x467)](this['_injector'],[[F],[exports[_0x5ac777(0x492)]],[ie],[Z],[exports[_0x5ac777(0x3be)]],[ne]]),this[_0x5ac777(0x477)][_0x5ac777(0x4a4)]&&a['touchDependencies'](this[_0x5ac777(0x268)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x131176(0x4a9),hs),exports[_0x131176(0x24b)]=ls([a[_0x131176(0x48e)](u[_0x131176(0x308)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),de(0x3,a[_0x131176(0x1e7)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x131176(0x40c)],Is=(_0x43127b,_0x333d7d,_0x58be38,_0x4d733a)=>{const _0x276bb7=_0x131176;for(var _0x583100=_0x4d733a>0x1?void 0x0:_0x4d733a?us(_0x333d7d,_0x58be38):_0x333d7d,_0x31f407=_0x43127b[_0x276bb7(0x2d6)]-0x1,_0x1e3325;_0x31f407>=0x0;_0x31f407--)(_0x1e3325=_0x43127b[_0x31f407])&&(_0x583100=_0x1e3325(_0x583100)||_0x583100);return _0x583100;},W=(_0x589483,_0x5f5bf9)=>(_0x4585ed,_0x14be17)=>_0x5f5bf9(_0x4585ed,_0x14be17,_0x589483);exports[_0x131176(0x46c)]=class extends u[_0x131176(0x3f5)]{constructor(_0x2f5a75,_0x241834,_0x545339,_0x26057f,_0x587a3a){super(_0x2f5a75,_0x241834,_0x545339,_0x26057f,_0x587a3a);}async[_0x131176(0x34b)](_0x444ab7){const _0x228d8e=_0x131176,_0x14a4b5=await this[_0x228d8e(0x3bc)](),_0x2b58ca=this['_createSocketURL'](_0x444ab7,_0x14a4b5);return this[_0x228d8e(0x34f)](_0x2b58ca);}[_0x131176(0x480)](_0x2f74ca,_0x58978d){const _0x3e00c6=_0x131176,_0x541319=typeof window>'u'?new URL(_0x2f74ca):new URL(_0x2f74ca,window[_0x3e00c6(0x387)][_0x3e00c6(0x2a3)]);_0x541319[_0x3e00c6(0x368)][_0x3e00c6(0x3d1)](_0x3e00c6(0x47b),_0x58978d);const _0x4b82cb=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3e00c6(0x387)]['search']);return _0x4b82cb[_0x3e00c6(0x1fe)](_0x3e00c6(0x2b0))&&_0x541319[_0x3e00c6(0x368)][_0x3e00c6(0x3d1)](_0x3e00c6(0x2b0),_0x4b82cb['get'](_0x3e00c6(0x2b0))),_0x541319[_0x3e00c6(0x1e5)]();}async[_0x131176(0x3bc)](){const _0x18a694=_0x131176;var _0x3303ae,_0x455695,_0x52f83d;const _0x25ae29=this[_0x18a694(0x271)][_0x18a694(0x239)](u[_0x18a694(0x446)]),_0x3967a5=(_0x3303ae=_0x25ae29==null?void 0x0:_0x25ae29[_0x18a694(0x2bf)])!=null?_0x3303ae:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x52f83d=(_0x455695=(await this[_0x18a694(0x35c)][_0x18a694(0x1fe)](_0x3967a5,{'headers':{'Content-Type':_0x18a694(0x2d3)}}))[_0x18a694(0x266)])==null?void 0x0:_0x455695['ticket'])!=null?_0x52f83d:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x131176(0x2e8)](a['Injector'])),W(0x1,a[_0x131176(0x2e8)](x['HTTPService'])),W(0x2,a[_0x131176(0x1e7)]),W(0x3,a[_0x131176(0x493)]),W(0x4,g[_0x131176(0x3f7)])],exports[_0x131176(0x46c)]);var Ss=Object[_0x131176(0x40c)],ds=(_0x2b2ccc,_0x216480,_0x1a0208,_0xe67bea)=>{for(var _0x128976=_0xe67bea>0x1?void 0x0:_0xe67bea?Ss(_0x216480,_0x1a0208):_0x216480,_0x2f9dd4=_0x2b2ccc['length']-0x1,_0x119771;_0x2f9dd4>=0x0;_0x2f9dd4--)(_0x119771=_0x2b2ccc[_0x2f9dd4])&&(_0x128976=_0x119771(_0x128976)||_0x128976);return _0x128976;},fe=(_0x5d7edc,_0x12e35a)=>(_0x5ec5d8,_0x4f362d)=>_0x12e35a(_0x5ec5d8,_0x4f362d,_0x5d7edc);exports[_0x131176(0x223)]=class extends a['Disposable']{constructor(_0x3df36d,_0x1cdaee,_0x4def24){const _0x5b38bb=_0x131176;super(),this['_instanceService']=_0x3df36d,this[_0x5b38bb(0x35c)]=_0x1cdaee,this['_configService']=_0x4def24;}async[_0x131176(0x39e)](_0x467aff,_0x13ee4c,_0x937ce6,..._0xf96a09){const _0xd1c064=_0x131176;var _0x4f7b42,_0x2bf883,_0x160231,_0x2278e6;const _0x402471=this[_0xd1c064(0x48b)][_0xd1c064(0x2a2)]();if(!_0x402471)throw new Error(_0xd1c064(0x215));const _0x3ebe36=((_0x4f7b42=this[_0xd1c064(0x271)]['getConfig'](u[_0xd1c064(0x22b)]))!=null?_0x4f7b42:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x467aff+'/run/'+_0x13ee4c,_0x56a9a8=new URL(window['location'][_0xd1c064(0x27b)]),_0x257ad5={'scriptId':_0x467aff,'runId':(_0x2bf883=_0x56a9a8[_0xd1c064(0x368)]['get'](_0xd1c064(0x2b0)))!=null?_0x2bf883:'','function':_0x13ee4c,'unitId':_0x402471['getUnitId'](),'argsOfFunction':JSON[_0xd1c064(0x31c)](_0xf96a09),'invokeId':(_0x160231=_0x937ce6[_0xd1c064(0x3dc)])!=null?_0x160231:'','executionId':(_0x2278e6=_0x937ce6[_0xd1c064(0x317)])!=null?_0x2278e6:''};try{const _0x59a3fb=await this[_0xd1c064(0x35c)]['post'](_0x3ebe36,{'body':_0x257ad5});return _0x59a3fb[_0xd1c064(0x266)]['error']&&_0x59a3fb[_0xd1c064(0x266)][_0xd1c064(0x3c3)]['code']!==G['OK']?_0xd1c064(0x356):_0x59a3fb[_0xd1c064(0x266)][_0xd1c064(0x2e9)];}catch{return _0xd1c064(0x356);}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x131176(0x36d)]),fe(0x1,a[_0x131176(0x2e8)](x[_0x131176(0x20b)])),fe(0x2,a['IConfigService'])],exports[_0x131176(0x223)]);const we=0x7530,ye=_0x131176(0x2ff);class fs extends a[_0x131176(0x2fe)]{constructor(){const _0x57eca3=_0x131176;super(),_(this,_0x57eca3(0x38d),a[_0x57eca3(0x206)]()),_(this,_0x57eca3(0x320),new Set()),_(this,_0x57eca3(0x29f),new Map()),_(this,_0x57eca3(0x393),null),_(this,_0x57eca3(0x238),new Map()),_(this,_0x57eca3(0x324),new Map()),this['_init']();}[_0x131176(0x40d)](){const _0x1e90fd=_0x131176;super['dispose'](),this['_clearOtherTimers'][_0x1e90fd(0x24a)]((_0x3ab266,_0x24bdb5)=>this['_removeClearOtherTimer'](_0x24bdb5)),this[_0x1e90fd(0x393)]&&window[_0x1e90fd(0x20e)](this[_0x1e90fd(0x393)]);}[_0x131176(0x1fb)](_0x303e2c){const _0x56ea6c=_0x131176;return this[_0x56ea6c(0x30c)](_0x303e2c)[_0x56ea6c(0x465)](I['distinctUntilChanged']());}[_0x131176(0x374)](_0x4c8001){const _0x303d41=_0x131176;this[_0x303d41(0x320)][_0x303d41(0x2d2)]===0x0&&this['_scheduleHeartbeat'](),this[_0x303d41(0x320)][_0x303d41(0x227)](_0x4c8001),this[_0x303d41(0x2e3)]({'type':0x0,'memberID':this[_0x303d41(0x38d)],'unitIDs':[_0x4c8001],'isForwarded':!0x1});}[_0x131176(0x3c5)](_0x324169){const _0x36dd7e=_0x131176;this[_0x36dd7e(0x320)][_0x36dd7e(0x289)](_0x324169),this[_0x36dd7e(0x320)][_0x36dd7e(0x2d2)]===0x0&&this[_0x36dd7e(0x393)]&&window[_0x36dd7e(0x20e)](this['_heartbeatTimer']);}[_0x131176(0x494)](){const _0x2ab966=_0x131176;this['disposeWithMe'](a['toDisposable'](I[_0x2ab966(0x32b)](window,_0x2ab966(0x2cc))[_0x2ab966(0x2da)](_0x3b95b8=>{const _0x3646d5=_0x2ab966;if(_0x3b95b8['key']!==ye||!_0x3b95b8['newValue'])return;const _0x438dc6=JSON[_0x3646d5(0x363)](_0x3b95b8[_0x3646d5(0x30a)]);this[_0x3646d5(0x23c)](_0x438dc6);}))),window[_0x2ab966(0x347)](_0x2ab966(0x1e9),()=>this[_0x2ab966(0x2e3)]({'type':0x1,'memberID':this[_0x2ab966(0x38d)],'unitIDs':Array[_0x2ab966(0x222)](this[_0x2ab966(0x320)])}));}['_handleEvent'](_0x532e8e){const _0x4c2ad6=_0x131176;switch(_0x532e8e['type']){case 0x0:this[_0x4c2ad6(0x464)](_0x532e8e);break;case 0x1:this[_0x4c2ad6(0x2ee)](_0x532e8e);break;case 0x2:this[_0x4c2ad6(0x455)](_0x532e8e);break;}}[_0x131176(0x464)](_0x2e95e0){const _0xb455c6=_0x131176,{unitIDs:_0x40c506,memberID:_0x5ec63d,isForwarded:_0x5c63b4}=_0x2e95e0;_0x40c506[_0xb455c6(0x24a)](_0x14276a=>{const _0x173594=_0xb455c6;if(!_0x5c63b4&&this[_0x173594(0x29f)]['has'](_0x14276a)&&this['_ensureSubject'](_0x14276a)[_0x173594(0x23b)](u[_0x173594(0x3fc)][_0x173594(0x3fe)]),!this['_unitOnClients'][_0x173594(0x48d)](_0x14276a)||!this[_0x173594(0x29f)][_0x173594(0x1fe)](_0x14276a)[_0x173594(0x48d)](_0x5ec63d)){const _0x573792=this['_unitOnClients'][_0x173594(0x1fe)](_0x14276a)||new Set();_0x573792[_0x173594(0x227)](_0x5ec63d),this[_0x173594(0x29f)][_0x173594(0x3d1)](_0x14276a,_0x573792),this[_0x173594(0x22c)](_0x5ec63d);}}),_0x5c63b4||this[_0xb455c6(0x2e3)]({'type':0x0,'memberID':this[_0xb455c6(0x38d)],'unitIDs':[...this[_0xb455c6(0x320)]],'isForwarded':!0x0});}[_0x131176(0x22c)](_0x1cca57){const _0x2f3c08=_0x131176;this[_0x2f3c08(0x360)](_0x1cca57);const _0x198607=window[_0x2f3c08(0x3de)](()=>{const _0x5eae36=_0x2f3c08;this[_0x5eae36(0x29f)][_0x5eae36(0x24a)](_0x548364=>{const _0x30fe25=_0x5eae36;_0x548364[_0x30fe25(0x289)](_0x1cca57);});},we*0x2);this[_0x2f3c08(0x238)][_0x2f3c08(0x3d1)](_0x1cca57,_0x198607);}['_removeClearOtherTimer'](_0x1fa957){const _0x125769=_0x131176;if(this[_0x125769(0x238)][_0x125769(0x48d)](_0x1fa957)){const _0x466b9b=this['_clearOtherTimers'][_0x125769(0x1fe)](_0x1fa957);_0x466b9b&&window[_0x125769(0x39f)](_0x466b9b),this[_0x125769(0x238)][_0x125769(0x3d1)](_0x1fa957,null);}}['_handleLeaveEvent'](_0x1b4154){const _0x5b9ef1=_0x131176,{memberID:_0x19d663,unitIDs:_0x4f7078}=_0x1b4154;_0x4f7078[_0x5b9ef1(0x24a)](_0x191a1c=>{const _0x3b2fa3=_0x5b9ef1;var _0x5c0fce;const _0x52ced5=this[_0x3b2fa3(0x29f)][_0x3b2fa3(0x1fe)](_0x191a1c);_0x52ced5&&(_0x52ced5['delete'](_0x19d663),(_0x5c0fce=this[_0x3b2fa3(0x30c)](_0x191a1c))==null||_0x5c0fce[_0x3b2fa3(0x23b)](_0x52ced5[_0x3b2fa3(0x2d2)]===0x0?u[_0x3b2fa3(0x3fc)]['NO_OTHER_CLIENTS_EDITING']:u[_0x3b2fa3(0x3fc)]['OTHER_CLIENTS_EDITING']));}),this[_0x5b9ef1(0x360)](_0x19d663);}[_0x131176(0x455)](_0x46d377){const _0x16178f=_0x131176;this[_0x16178f(0x22c)](_0x46d377[_0x16178f(0x371)]);}[_0x131176(0x2e3)](_0x2be0e5){const _0x1ab178=_0x131176;localStorage[_0x1ab178(0x2c8)](ye,JSON[_0x1ab178(0x31c)](_0x2be0e5));}['_scheduleHeartbeat'](){const _0xf5d068=_0x131176;this[_0xf5d068(0x393)]=window['setInterval'](()=>{const _0x48c3e3=_0xf5d068;this[_0x48c3e3(0x2e3)]({'type':0x2,'memberID':this[_0x48c3e3(0x38d)]});},we);}[_0x131176(0x30c)](_0x30a12c){const _0x46f5d6=_0x131176;return this['_unitStatus'][_0x46f5d6(0x48d)](_0x30a12c)||this[_0x46f5d6(0x324)]['set'](_0x30a12c,new I[(_0x46f5d6(0x3ac))](u[_0x46f5d6(0x3fc)][_0x46f5d6(0x2c2)])),this[_0x46f5d6(0x324)][_0x46f5d6(0x1fe)](_0x30a12c);}}exports[_0x131176(0x354)]=Oe,exports[_0x131176(0x2de)]=je,exports[_0x131176(0x3a7)]=fs,exports['WebURLService']=ke;
|