@univerjs-pro/collaboration-client-ui 0.11.0-nightly.202511151013 → 0.12.0
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 +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x661f9=_0x33d9;(function(_0x29a9f1,_0x4fb28b){const _0x4e1df2=_0x33d9,_0x1c5b2c=_0x29a9f1();while(!![]){try{const _0x2af29c=parseInt(_0x4e1df2(0x22d))/0x1*(-parseInt(_0x4e1df2(0x36c))/0x2)+parseInt(_0x4e1df2(0x359))/0x3*(-parseInt(_0x4e1df2(0x3df))/0x4)+-parseInt(_0x4e1df2(0x342))/0x5*(-parseInt(_0x4e1df2(0x284))/0x6)+-parseInt(_0x4e1df2(0x307))/0x7+parseInt(_0x4e1df2(0x213))/0x8*(-parseInt(_0x4e1df2(0x3cc))/0x9)+parseInt(_0x4e1df2(0x2bd))/0xa+parseInt(_0x4e1df2(0x234))/0xb;if(_0x2af29c===_0x4fb28b)break;else _0x1c5b2c['push'](_0x1c5b2c['shift']());}catch(_0x5374a4){_0x1c5b2c['push'](_0x1c5b2c['shift']());}}}(_0x1d83,0x35dc9));var Ve=Object[_0x661f9(0x235)],Ge=(_0x155ec0,_0x33811d,_0x3b8fd0)=>_0x33811d in _0x155ec0?Ve(_0x155ec0,_0x33811d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b8fd0}):_0x155ec0[_0x33811d]=_0x3b8fd0,_=(_0x1e19be,_0x40e4bd,_0x482ee5)=>Ge(_0x1e19be,typeof _0x40e4bd!=_0x661f9(0x3e7)?_0x40e4bd+'':_0x40e4bd,_0x482ee5);Object[_0x661f9(0x235)](exports,Symbol[_0x661f9(0x259)],{'value':_0x661f9(0x29f)});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'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x177d4d,..._0x74668a}){const _0x30105f=_0x661f9,{icon:_0x2a8fd3,id:_0x352ec2,className:_0x422934,extend:_0x25865f,..._0x543710}=_0x74668a,_0x308708=('univerjs-icon\x20univerjs-icon-'+_0x352ec2+'\x20'+(_0x422934||''))[_0x30105f(0x203)](),_0x533fe7=A[_0x30105f(0x292)]('_'+Je());return we(_0x2a8fd3,''+_0x352ec2,{'defIds':_0x2a8fd3[_0x30105f(0x3c4)],'idSuffix':_0x533fe7[_0x30105f(0x361)]},{'ref':_0x177d4d,'className':_0x308708,..._0x543710},_0x25865f);}function we(_0xce301f,_0x20c450,_0xeba707,_0x103d5f,_0x5ef69c){const _0x4dd169=_0x661f9;return A['createElement'](_0xce301f[_0x4dd169(0x195)],{'key':_0x20c450,...qe(_0xce301f,_0xeba707,_0x5ef69c),..._0x103d5f},(ze(_0xce301f,_0xeba707)['children']||[])[_0x4dd169(0x38e)]((_0x5aff68,_0x4cfcf4)=>we(_0x5aff68,_0x20c450+'-'+_0xce301f[_0x4dd169(0x195)]+'-'+_0x4cfcf4,_0xeba707,void 0x0,_0x5ef69c)));}function qe(_0x56f4db,_0xe6996d,_0x11d52e){const _0x580dec=_0x661f9,_0x40dd16={..._0x56f4db[_0x580dec(0x420)]};_0x11d52e!=null&&_0x11d52e[_0x580dec(0x301)]&&_0x40dd16[_0x580dec(0x3e9)]===_0x580dec(0x301)&&(_0x40dd16[_0x580dec(0x3e9)]=_0x11d52e['colorChannel1']),_0x56f4db[_0x580dec(0x195)]===_0x580dec(0x31d)&&_0x40dd16['id']&&(_0x40dd16['id']=_0x40dd16['id']+_0xe6996d[_0x580dec(0x211)]),Object['entries'](_0x40dd16)[_0x580dec(0x30f)](([_0x539a97,_0x3ed1d8])=>{const _0x31669c=_0x580dec;_0x539a97===_0x31669c(0x31d)&&typeof _0x3ed1d8==_0x31669c(0x2df)&&(_0x40dd16[_0x539a97]=_0x3ed1d8[_0x31669c(0x1a5)](/url\(#(.*)\)/,_0x31669c(0x215)+_0xe6996d[_0x31669c(0x211)]+')'));});const {defIds:_0x476cdd}=_0xe6996d;return!_0x476cdd||_0x476cdd[_0x580dec(0x3e2)]===0x0||(_0x56f4db[_0x580dec(0x195)]===_0x580dec(0x201)&&_0x40dd16['xlink:href']&&(_0x40dd16['xlink:href']=_0x40dd16[_0x580dec(0x2d6)]+_0xe6996d[_0x580dec(0x211)]),Object[_0x580dec(0x1ad)](_0x40dd16)['forEach'](([_0x401865,_0x36de95])=>{const _0x334beb=_0x580dec;typeof _0x36de95==_0x334beb(0x2df)&&(_0x40dd16[_0x401865]=_0x36de95[_0x334beb(0x1a5)](/url\(#(.*)\)/,_0x334beb(0x215)+_0xe6996d[_0x334beb(0x211)]+')'));})),_0x40dd16;}function ze(_0x68ab87,_0x2e09ff){const _0x4e234d=_0x661f9;var _0x286357;const {defIds:_0x1c2457}=_0x2e09ff;return!_0x1c2457||_0x1c2457[_0x4e234d(0x3e2)]===0x0?_0x68ab87:_0x68ab87['tag']==='defs'&&((_0x286357=_0x68ab87['children'])!=null&&_0x286357[_0x4e234d(0x3e2)])?{..._0x68ab87,'children':_0x68ab87[_0x4e234d(0x1ea)][_0x4e234d(0x38e)](_0x3f3004=>typeof _0x3f3004['attrs']['id']==_0x4e234d(0x2df)&&_0x1c2457&&_0x1c2457['includes'](_0x3f3004[_0x4e234d(0x420)]['id'])?{..._0x3f3004,'attrs':{..._0x3f3004['attrs'],'id':_0x3f3004[_0x4e234d(0x420)]['id']+_0x2e09ff[_0x4e234d(0x211)]}}:_0x3f3004)}:_0x68ab87;}function Je(){const _0x7425f6=_0x661f9;return Math[_0x7425f6(0x3fb)]()[_0x7425f6(0x2c3)](0x24)[_0x7425f6(0x36b)](0x2,0x8);}Ce[_0x661f9(0x3c0)]='UniverIcon';function _0x1d83(){const _0x3a45a4=['getMemberID','getMergeData','startColumn','save','_registerDependencies','DEFAULT_WS_SESSION_TICKET_URL','_transformUndoRedoStack','session.will-retry','_docSyncEditingCollabCursorService','CURRENT_STATUS_CANNOT_OPERATE','subUnitId','_localeService','ThemeService','_unitOnClients','USER_NOT_FOUND','height','SetFormulaCalculationStartMutation','registerRenderModule','_status$','init','_drawRectRange','split','LICENSE_IMPORT_SIZE_EXCEEDED','OTHER_CLIENTS_EDITING','REDEMPTION_CODE_FULLY_REDEEMED','SOCKET_FAILED_RETRY','UniverCollaborationClientUIPlugin','2813030tcdoKE','jiqing.500','DesktopCollaborationStatusDisplayController','handleDeleteRangeMoveUp','_handleEvent','Inject','toString','width','bottom','_getScale','beginPath','UniverCollaborationClientPlugin','urlChange$','closePath','toRgbString','wsSessionTicketUrl','collabStatus.syncing','distinctUntilChanged','_registerRenderDependencies','_onCursorUpdate','UPDATE_CURSOR','_dataLoaderService','COMPLETION_FINISHED','shift','0\x200\x2016\x2016','xlink:href','replaceDocRanges','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_removeCollabCursors','addEventListener','findNodePositionByCharIndex','collaboration-client.offline-data-not-saved','YUUMI_CONNECTOR_URL_NOT_FOUND','connectInjector','string','_updateURLWithCurrentState','INVITE_CODE_ALREADY_BOUND','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_assignedColors','params','cursorInfo$','_docTransformSelectionsService','_ensureSubject','univer-mr-2\x20univer-flex\x20univer-text-xl','InsertRowCommandId','collaboration-client-ui.config','div','color','handleInsertCol','saveOfflineData','DocStateChangeManagerService','Workbook','CollaborationUIEventId','handleIRemoveCol','maxFormulaLimit','OFFLINE','_themeService','getCollabEntity$','setInterval','Injector','uni.network.url-service','get','APPLY_NON_SEQUENTIAL_REVISION','dirtyRanges','IMessageService','_renderManagerService','_lastPointer','Tools','colorChannel1','getRelativeToViewportCoord','_localStorageService','executionId','location','NodePositionConvertToRectRange','2232538dKgOxs','measureText','collab-rect-range-','column','subscribe','HEADER_MENU','loadOfflineData','_cursors','forEach','_heartbeatTimer','UniverInstanceType','_selfUnitIDs','SHEET_VIEWPORT_KEY','clearInterval','data','find','green.600','UNIVER_DOC','LOGIN_TOKEN_PROCESSING_FAILED','getConfig','hovered','fromEvent','mask','yellow.400','LOCAL_CACHE_INTERVAL_KEY','combineLatest','startRow','/universer-api/license/formula/limit/status','delete','ONLINE','CanceledError','dispose$','includes','makeDirty','_setupSubUnitSync','_messageService','IUniverInstanceService','moveTo','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','unload','_backgroundColor','isFormulaId','startFormulaLimitUrl','useDependency','contains','ColorKit','show','TEXT','_config','IURLService','collabStatus.fetchMiss','_setupBeforeClosingHandler','SheetCollabCursorShape','/run/','registerComponent','disableLocalCache','_docSkeleton','_entityInit$','getUndoRedoMutationParamsCache','10bwGihv','size','setStateCache','INotificationService','getSheetId','memberID','_taskIds','body','LOGIN_FAILED','InsertColCommandId','sessionStatus$','getOffsetConfig','stageInfo','currentTheme$','_range','ITransformService','_injector','getUnhiddenWorksheets','_onCursorDelete','_showGuardMessage','evenodd','getActiveRange','enableLocalCache','294ijPZHX','currentUsage','CLOSE_ROOM','getLocalCacheKey','restore','getColorFromTheme','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_color','current','pipe','_cursor','HTTPService','UNRECOGNIZED','BuiltInUIPart','ENTITLE_INSUFFICIENT_QUOTA','_collabCursorState$','ENTITLE_NEED_BILLING_ADDRESS','RECT','substring','783656XPEeJv','_id','YUUMI_ALL_TABLES_IS_INVALID','_applyCommand','mergeOverrideWithDependencies','EMAIL_HAS_BEEN_BOUND','removeParam','getSheetBySheetId','_startDocCollabCursor','http://www.w3.org/2000/svg','all','InsertRangeMoveDownCommandId','_getFormulaLimitStatus','UNAUTHENTICATED','disposeWithMe','AUTHORIZE_CODE_ILLEGAL','backgroundColor','merge','subunit','_checkAndWaitForCalculationPermission','getParam','releaseFormulaLimitUrl','LICENSE_MAX_UNITS_EXCEEDED','ISocketService','CommandType','_shapes','SUCCESS','OnLineIcon','name','onPointerEnter$','_checkCalculationAvailable','addClipboardHook','#FFF','shareReplay','map','_draw','_cachedData','pushState','_initEntityListener','source','docStateChange$','CollaborationStatus','key','setParam','setAlpha','_initStatusComponent','INTERNAL_ERROR','path','deepClone','_saveCache','_onRefRangeChange','executeCommand','touchDependencies','formula.calculation.started','endRow','isEditing','hide','_refreshCollabCursors','SOCKET_FAILED','permission.content','send','handleInsertRangeMoveDown','getTypeOfUnitDisposed$','onPointerMove$','LICENSE_DISTRO_REJECTED','values','runRefRangeMutations','collab-client.tooltip.reconnect','_render','START_CALCULATION','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','eventID','univer-flex\x20univer-items-center','ALREADY_EXISTS','setItem','Rect','_hasFormulaInDirtyRanges','_drawAnchor','_removeClearOtherTimer','_releaseCalculationLimit','_init','Warning','startsWith','REDEMPTION_INVALID_CODE','displayName','ENSURE_SNAPSHOT_EXECUTION','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','YUUMI_URL_COL_OUT_OF_RANGE','defIds','getValue','_initEvent','stringify','saveImage','on-line-icon_clip0_910_349','_saveTaskMap','_maxFormulaLimit','3195ueYGhh','SNAPSHOT_HAS_BEEN_REMOVED','m2Prime','ILogService','_updateLocalCursor','CollaborationUIEventService','asObservable','_localCacheService','NOT_FOUND','CONNECTOR_DATA_TOO_LARGE','on-line-icon','YUUMI_RATE_OVER_LIMIT','LICENSE_EXPORT_SIZE_EXCEEDED','_handleLeaveEvent','session.connection-failed','DocSelectionManagerService','_send','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','debounce','13496hQMUVu','FromArray','max','length','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','unsubscribe','_roomMembers$','_docStateChangeManagerService','symbol','roomMembers','fill','RemoteUniscriptService','takeUntil','none','_startCalculationLimit','DependentOn','getActiveSheet','getStateCache','PENDING','EffectRefRangId','Unknown\x20user','_scheduleClearOtherTimer','_commandService','transformMutation','text','_docTransformIMECacheService','_createSocketURL','exhaustSavingTask','random','getTypeOfUnitAdded$','assignAColorForMemberID','IConfigService','YUUMI_ASYNCIO_CANCELLED','ICommandService','url(#on-line-icon_clip0_910_349)','ranges','formula.calculation.unable','ENTITLE_REPORT_LIMIT_EXCEED','top','set','MOBILE_VERIFY_CODE_MISMATCH','APPLY_REVISION_CONFILICT','getFocusedUnit','APPLY_DUPLICATED','_labelPosition','_toggleOnline','clearTimeout','reconnect','SheetSkeletonManagerService','ENTITLE_DUP_SUBSCRIPTION','SetFormulaCalculationNotificationMutation','EMAIL_VERIFY_CODE_MISMATCH','LocaleService','drawWith','REDEMPTION_CODE_INACTIVE','unitId','getDocRanges','RevisionService','_docSkeletonManagerService','IDocClipboardService','_clearOtherTimers','setShapeProps','_drawTextRange','CONFLICT','svg','attrs','APPLY_PERMISSION_DENIED','DOC_RANGE_TYPE','purple.300','post','updateOfflineData','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','registerRefRange','transformIMECache','type','unit','USERS_LEAVE','getformulaLimitStatusUrl','ACTIVE_UNIT_EVENT_CHANNEL','1em','UNIVER_SHEET','addObjects','white','SheetsSelectionsService','RxDisposable','with','_univerInstanceService','_session','ISnapshotServerService','BehaviorSubject','_document','mutations','_initCommandInterceptor','debug','M0\x200H16V16H0z','switchMap','currentColor','_unitStatus','_lastResponseTimestamp','endColumn','createInstance','throttleTime','transformRemoteChangeset','clipPath','_transformService','now','_cursorShapes','black','_context','_anchorDot','_scheduleHeartbeat','font','/universer-api/license/formula/limit/done','_eventUnsubscribe','unshift','isArray','DataLoaderService','_toggleOffline','_httpService','labelPosition','handleInsertRow','tag','_initStatusListener','_configService','storage','registerBeforeClose','isTransformMutationFailure','getItem','searchParams','transform','_getSaveTimeout','from','Success','formula.calculation.waiting','YUUMI_SUBSCRIPTION_NOT_FOUND','INVALID_ARGUMENT','BrowserCollaborationSocketService','replace','getSkeleton','loadUnit','WebBrowserSingleActiveUnitService','_textBubble','REDEMPTION_CODE_HAS_BEEN_CREATED','_online','_transformPreviousActiveRange','entries','actions','unitID','FormulaExecuteStageType','getRangePointData','invokeId','textRanges','transformStateCache','SetWorksheetActivateCommand','parse','IBeforeCloseService','INVITE_CODE_HAS_BEEN_UES','editingUnit','collaboration.single-unit.warning','?taskId=','transformByState','_scene','WECHAT_HAS_BEEN_BOUND','MoveRangeCommandId','_collabCursorController','INVITE_CODE_REQUIRED','isTransformMutationsWithChangesetSuccess','Shape','RegularPolygon','_getSheetObject','error','parseInt','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_docTransformStateCacheService','registerDependencies','Error','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','FormulaExecutedStateType','transformSelections','_revisionService','then','SetSelectionsOperation','has','SUBMIT_CHANGESET_TIMEOUT','getViewport','_getMergeRange','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationSessionService','SYNCED','_collabSessionService','_docClipboardService','handleInsertRangeMoveRight','add','debounceTime','_updateCollabCursors','AWAITING_WITH_PENDING','fillStyle','DeleteRangeMoveUpCommandId','_beforeCloseService','serializeRangeWithSheet','fillText','redoState','code','TOO_MANY_REQUESTS','Failed','_pollingInterval','children','UnitStatus','InsertRangeMoveRightCommandId','forwardRef','Subject','Vector2','undoState','getVpScrollXYInfoByPosToVp','filter','NO_OTHER_CLIENTS_EDITING','SNAPSHOT_INVALID_SNAPSHOT','_instanceService','disposeUnit','defs','_sheetSkeletonManagerService','_getAnchorBounding','_updateSubUnitFromURLParams','RemoveColCommandId','_notificationService','selections','CollaborationEvent','dispose','doc.mutation.rich-text-editing','use','toDisposable','trim','getCurrentRevOfUnit','_collaborationUIEventService','popstate','RichTextEditingMutation','_colorIndex','row','range','_entities','IUIPartsService','selection','saveTaskMap','_urlService','[CollaborationDataLoaderController]','idSuffix','subscribeEvent','1824umNXmD','setTimeout','url(#$1','_initCommandExecutedListener','Rectangle','COLORS','ILocalCacheService','cursorInfo','syncEditingCollabCursor','VIEW_MAIN','_colorAssignService','_collaborationController','_initResize','CollaborationDataLoaderController','MOBILE_HAS_BEEN_BOUND','getCurrentUnitForType','getUnit','onMouseMove','createSocket','DisposableCollection','resize','_hideTimer','addObject','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','APPLY_REJECT','_uiPartsService','1LziXDt','OffLineIcon','_disabled','round','_setFormulaLimitStatus','currentSkeleton$','WebURLService','9754162uVSqlj','defineProperty','lineTo','permission.title','_refRangeService','newValue','getRenderById','CollaborationController','LOCAL_CACHE_INTERVAL','generateRandomId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCellMatrix','_clearPolling','arc','CHANGESET_REVISION_CONFILICT','NOT_COLLAB','createElement','UNDEFINED','skeleton','YUUMI_AI_RUN_FAILED','getCurrentSelections','fromEventSubject','OTHER_CLIENT_EDITING','_handleJoinEvent','history','fillRule','_doCreateSocket','_name','m1Prime','_hover','getAncestorScale','IRenderManagerService','collaboration.closeRoom','clsx','_getSessionTicket','_hovered','DocIMEInputManagerService','toStringTag','getCollabCursors$','red.300','0\x200\x2017\x2016','whenReady','beforeCommandExecuted','_logService','SessionStatus','some','off-line-icon','onTransformChange$','PAYMENT_CHANNEL_NOT_SUPPORT','handleDeleteRangeMoveLeft','complete','getCellPositionByOffset','MUTATION','USER_IS_ANONYMOUS','Disposable','_handleHover','collabCursorState$','RemoveRowCommandId','PERMISSION_DENIED','NodePositionConvertToCursor','handleIRemoveRow','imageSourceType','getCoordByCell','functionsExecutedState','totalFormulasToCalculate','collabStatus.notCollab','PY_RUNTIME_SCRIPT_ERROR','_currentUsage','MessageType','YUUMI_UNABLE_LOAD_URL','setUndoRedoMutationParamsCache','getOwnPropertyDescriptor','getColor','USER_NOT_INVITED_CODE','isActive','application/json','assign','limitInfo','collabStatus.offline','event$','524778GNDrlH','_scheduleSaving','jsx','TEXT_RANGE_LAYER_INDEX','runId','activeSheet$','onCommandExecuted','getUnitId','MemberService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','href','push','_imageIoService','ILocalStorageService','useRef','getMember','entityInit$','REDEMPTION_CODE_NOT_STARTED','min','ENTITLE_CAN_NOT_BUY_LOWER_OTP','SetTextSelectionsOperation','search','replaceState','_anchor','_memberService','next','_initDependencies','Module','_cursorInfo$','onLocalMutation'];_0x1d83=function(){return _0x3a45a4;};return _0x1d83();}const Ze={'tag':_0x661f9(0x41f),'attrs':{'xmlns':_0x661f9(0x375),'fill':_0x661f9(0x3ec),'viewBox':_0x661f9(0x2d5),'width':_0x661f9(0x42e),'height':_0x661f9(0x42e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x661f9(0x39b),'attrs':{'stroke':_0x661f9(0x17c),'d':_0x661f9(0x3c2),'strokeLinecap':_0x661f9(0x230),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x661f9(0x1f7),'attrs':{},'children':[{'tag':_0x661f9(0x183),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x661f9(0x39b),'attrs':{'fill':_0x661f9(0x431),'d':_0x661f9(0x17a)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=A[_0x661f9(0x1ed)](function(_0x2c6009,_0x248792){const _0x2ef020=_0x661f9;return A[_0x2ef020(0x244)](Ce,Object[_0x2ef020(0x280)]({},_0x2c6009,{'id':_0x2ef020(0x262),'ref':_0x248792,'icon':Ze}));});ye['displayName']=_0x661f9(0x22e);const Qe={'tag':_0x661f9(0x41f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x661f9(0x3ec),'viewBox':_0x661f9(0x25c),'width':'1em','height':_0x661f9(0x42e)},'children':[{'tag':'g','attrs':{'clipPath':_0x661f9(0x401)},'children':[{'tag':_0x661f9(0x39b),'attrs':{'stroke':_0x661f9(0x17c),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x661f9(0x230),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x661f9(0x1f7),'attrs':{},'children':[{'tag':_0x661f9(0x183),'attrs':{'id':_0x661f9(0x3c9)},'children':[{'tag':_0x661f9(0x39b),'attrs':{'fill':_0x661f9(0x431),'d':_0x661f9(0x17a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x661f9(0x3c9)]},$e=A[_0x661f9(0x1ed)](function(_0x258783,_0x25ee40){const _0x5ef48b=_0x661f9;return A[_0x5ef48b(0x244)](Ce,Object[_0x5ef48b(0x280)]({},_0x258783,{'id':_0x5ef48b(0x3d6),'ref':_0x25ee40,'icon':Qe}));});$e['displayName']=_0x661f9(0x387);function et(_0x595931){const _0x16aeea=_0x661f9;switch(_0x595931){case u['CollaborationStatus'][_0x16aeea(0x2f4)]:return _0x16aeea(0x282);case u['CollaborationStatus']['CONFLICT']:return'collabStatus.conflict';case u[_0x16aeea(0x395)]['FETCH_MISS']:return _0x16aeea(0x339);case u[_0x16aeea(0x395)][_0x16aeea(0x243)]:return _0x16aeea(0x275);case u['CollaborationStatus']['AWAITING']:case u[_0x16aeea(0x395)][_0x16aeea(0x1df)]:return _0x16aeea(0x2cd);case u[_0x16aeea(0x395)][_0x16aeea(0x1d8)]:case u['CollaborationStatus'][_0x16aeea(0x3f1)]:return'collabStatus.synced';}}function tt(_0x3031cb){const _0x6f1371=_0x661f9,{status$:_0x4ca67}=_0x3031cb,_0xf0a218=O['useObservable'](_0x4ca67,u[_0x6f1371(0x395)][_0x6f1371(0x243)]),_0x486e9b=O['useDependency'](a[_0x6f1371(0x413)]),_0xe65329=O[_0x6f1371(0x332)](u['CollaborationSessionService']),_0x1a3753=_0xf0a218!==u['CollaborationStatus'][_0x6f1371(0x2f4)],_0x2f1d03=_0x486e9b['t'](et(_0xf0a218)),_0x139b11=_0x1a3753?M[_0x6f1371(0x286)]($e,{}):M[_0x6f1371(0x286)](ye,{}),_0x175ac5=A['useCallback'](()=>{const _0x14e389=_0x6f1371;_0x1a3753||_0xe65329[_0x14e389(0x40e)]();},[_0x1a3753,_0xe65329]);function _0x30d9b4(){const _0x336c2c=_0x6f1371;return M['jsxs'](_0x336c2c(0x2eb),{'className':_0x336c2c(0x3b4),'onClick':_0x175ac5,'children':[M[_0x336c2c(0x286)](_0x336c2c(0x2eb),{'className':p[_0x336c2c(0x255)](_0x336c2c(0x2e8),{'univer-text-green-500':_0x1a3753,'univer-text-red-500':!_0x1a3753}),'children':_0x139b11}),M['jsx'](_0x336c2c(0x2eb),{'className':_0x336c2c(0x22a),'children':_0x2f1d03})]});}return _0x1a3753?_0x30d9b4():M['jsx'](p['Tooltip'],{'title':_0x486e9b['t'](_0x6f1371(0x3af)),'children':_0x30d9b4()});}var st=Object[_0x661f9(0x27b)],it=(_0x5cbaf4,_0x5cc315,_0x487874,_0x3034e1)=>{for(var _0x541262=_0x3034e1>0x1?void 0x0:_0x3034e1?st(_0x5cc315,_0x487874):_0x5cc315,_0x2b0ad2=_0x5cbaf4['length']-0x1,_0x5fd8e5;_0x2b0ad2>=0x0;_0x2b0ad2--)(_0x5fd8e5=_0x5cbaf4[_0x2b0ad2])&&(_0x541262=_0x5fd8e5(_0x541262)||_0x541262);return _0x541262;},K=(_0x250346,_0x53ceb4)=>(_0x3b65f7,_0x4abfc4)=>_0x53ceb4(_0x3b65f7,_0x4abfc4,_0x250346);exports[_0x661f9(0x2bf)]=class extends a['Disposable']{constructor(_0x2b52a5,_0x206f47,_0x51b606,_0x2992b7){const _0x58469b=_0x661f9;super(),_(this,_0x58469b(0x2b4),new I[(_0x58469b(0x175))](u['CollaborationStatus'][_0x58469b(0x243)])),(this[_0x58469b(0x172)]=_0x2b52a5,this[_0x58469b(0x352)]=_0x206f47,this[_0x58469b(0x21e)]=_0x51b606,this[_0x58469b(0x22c)]=_0x2992b7,this[_0x58469b(0x399)](),this[_0x58469b(0x196)]());}[_0x661f9(0x196)](){const _0x3341e2=_0x661f9;this[_0x3341e2(0x37a)](this[_0x3341e2(0x172)]['focused$'][_0x3341e2(0x362)](I['switchMap'](()=>{const _0x299205=_0x3341e2,_0x36d3e8=this[_0x299205(0x172)][_0x299205(0x409)]();return _0x36d3e8?this[_0x299205(0x21e)][_0x299205(0x2f6)](_0x36d3e8[_0x299205(0x28b)]()):I['of'](null);}),I[_0x3341e2(0x17b)](_0xab8bf3=>_0xab8bf3?_0xab8bf3['status$']:I['of'](u['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x2d2bc6=>{const _0xdcac08=_0x3341e2;this[_0xdcac08(0x2b4)]['next'](_0x2d2bc6);}));}[_0x661f9(0x399)](){const _0x2370fd=_0x661f9;this[_0x2370fd(0x37a)](this[_0x2370fd(0x22c)][_0x2370fd(0x33d)](O[_0x2370fd(0x366)][_0x2370fd(0x30c)],()=>O[_0x2370fd(0x2de)](nt({'status$':this[_0x2370fd(0x2b4)][_0x2370fd(0x3d2)]()}),this['_injector'])));}},exports[_0x661f9(0x2bf)]=it([K(0x0,a[_0x661f9(0x32b)]),K(0x1,a[_0x661f9(0x2c2)](a['Injector'])),K(0x2,a['Inject'](u[_0x661f9(0x23b)])),K(0x3,O[_0x661f9(0x20c)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x365ab4){const {status$:_0x43f295}=_0x365ab4;return function(){const _0x5876fa=_0x33d9;return M[_0x5876fa(0x286)](tt,{'status$':_0x43f295});};}const Te=a['createIdentifier'](_0x661f9(0x2f9));var rt=Object[_0x661f9(0x27b)],ot=(_0x273dd0,_0x82efc7,_0x5065a7,_0x39b037)=>{const _0x53bcbb=_0x661f9;for(var _0x3f9eaa=_0x39b037>0x1?void 0x0:_0x39b037?rt(_0x82efc7,_0x5065a7):_0x82efc7,_0x54e26e=_0x273dd0[_0x53bcbb(0x3e2)]-0x1,_0x3ae339;_0x54e26e>=0x0;_0x54e26e--)(_0x3ae339=_0x273dd0[_0x54e26e])&&(_0x3f9eaa=_0x3ae339(_0x3f9eaa)||_0x3f9eaa);return _0x3f9eaa;},j=(_0xa4f6d0,_0x6d91a0)=>(_0x53248a,_0x217766)=>_0x6d91a0(_0x53248a,_0x217766,_0xa4f6d0);exports[_0x661f9(0x220)]=class extends a[_0x661f9(0x170)]{constructor(_0x1eb8cb,_0x366367,_0x5acf03,_0xb6dbde,_0x6c1b21){const _0x415f02=_0x661f9;super(),this[_0x415f02(0x20f)]=_0x1eb8cb,this[_0x415f02(0x25f)]=_0x366367,this[_0x415f02(0x3f5)]=_0x5acf03,this[_0x415f02(0x2d2)]=_0xb6dbde,_0x6c1b21?_0x6c1b21==null||_0x6c1b21[_0x415f02(0x25d)]()[_0x415f02(0x1d0)](()=>this[_0x415f02(0x3bc)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x415f02(0x3bc)]());}async[_0x661f9(0x3bc)](){const _0x52585d=_0x661f9,_0x2c57ba=this[_0x52585d(0x20f)][_0x52585d(0x380)](_0x52585d(0x42a)),_0x294859=this['_urlService'][_0x52585d(0x380)]('type'),_0xf77063=this[_0x52585d(0x20f)][_0x52585d(0x380)](_0x52585d(0x37e));if(!_0x2c57ba||!_0x294859){this[_0x52585d(0x25f)][_0x52585d(0x179)](_0x52585d(0x210),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x5db015=await this[_0x52585d(0x2d2)][_0x52585d(0x1a7)](_0x2c57ba,Number(_0x294859),_0xf77063);_0x5db015&&_0x5db015 instanceof a[_0x52585d(0x2f0)]&&this[_0x52585d(0x329)](_0x5db015);}async['_setupSubUnitSync'](_0x3fad64){const _0xb69b63=_0x661f9;await this['_updateSubUnitFromURLParams'](_0x3fad64),_0x3fad64[_0xb69b63(0x289)][_0xb69b63(0x362)](I[_0xb69b63(0x3eb)](this['dispose$']))[_0xb69b63(0x30b)](_0x4f5283=>{_0x4f5283&&this['_updateURLWithCurrentState'](_0x4f5283);}),this[_0xb69b63(0x20f)]['urlChange$'][_0xb69b63(0x362)](I[_0xb69b63(0x3eb)](this[_0xb69b63(0x326)]))[_0xb69b63(0x30b)](()=>this[_0xb69b63(0x1fa)](_0x3fad64));}[_0x661f9(0x2e0)](_0x2f0f4c,_0x15a5f4=!0x1){const _0xf29fcb=_0x661f9,_0x47f853=this[_0xf29fcb(0x20f)][_0xf29fcb(0x380)](_0xf29fcb(0x37e));_0x2f0f4c[_0xf29fcb(0x346)]()!==_0x47f853&&this[_0xf29fcb(0x20f)][_0xf29fcb(0x397)](_0xf29fcb(0x37e),_0x2f0f4c['getSheetId'](),_0x15a5f4);}async[_0x661f9(0x1fa)](_0x5e428d){const _0x23a86a=_0x661f9;var _0x13736c;const _0x1f51bc=this['_urlService'][_0x23a86a(0x380)]('subunit');if(!_0x1f51bc||!_0x5e428d['getSheetBySheetId'](_0x1f51bc)){const _0x19947c=_0x5e428d[_0x23a86a(0x353)]()[0x0],_0x744e9c=_0x5e428d['getSheetBySheetId'](_0x19947c);if(!_0x744e9c)return;this[_0x23a86a(0x2e0)](_0x744e9c,!0x0),await this['_commandService'][_0x23a86a(0x39f)](g[_0x23a86a(0x1b5)]['id'],{'unitId':_0x5e428d[_0x23a86a(0x28b)](),'subUnitId':_0x19947c});return;}((_0x13736c=_0x5e428d[_0x23a86a(0x3ef)]())==null?void 0x0:_0x13736c['getSheetId']())!==_0x1f51bc&&await this[_0x23a86a(0x3f5)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5e428d[_0x23a86a(0x28b)](),'subUnitId':_0x1f51bc});}},exports[_0x661f9(0x220)]=ot([j(0x0,Te),j(0x1,a[_0x661f9(0x3cf)]),j(0x2,a[_0x661f9(0x400)]),j(0x3,a['Inject'](u[_0x661f9(0x190)])),j(0x4,a['Optional'](Xe['IRemoteInstanceService']))],exports[_0x661f9(0x220)]);var at=Object['getOwnPropertyDescriptor'],ct=(_0x29ec62,_0x1cf74a,_0x1425b1,_0x33d7a8)=>{const _0x4db9e4=_0x661f9;for(var _0x2d40b1=_0x33d7a8>0x1?void 0x0:_0x33d7a8?at(_0x1cf74a,_0x1425b1):_0x1cf74a,_0x3752a9=_0x29ec62[_0x4db9e4(0x3e2)]-0x1,_0x52d01c;_0x3752a9>=0x0;_0x3752a9--)(_0x52d01c=_0x29ec62[_0x3752a9])&&(_0x2d40b1=_0x52d01c(_0x2d40b1)||_0x2d40b1);return _0x2d40b1;},Re=(_0x5b9631,_0x1ed0d4)=>(_0x361a80,_0xcefafa)=>_0x1ed0d4(_0x361a80,_0xcefafa,_0x5b9631);let de=class extends a['RxDisposable']{constructor(_0x4daf76,_0x3a4ea5){const _0x4a67be=_0x661f9;super(),this[_0x4a67be(0x1da)]=_0x4daf76,this[_0x4a67be(0x290)]=_0x3a4ea5,this[_0x4a67be(0x3bc)]();}[_0x661f9(0x3bc)](){const _0x4c6057=_0x661f9,_0x384a04=this;this['disposeWithMe'](this[_0x4c6057(0x1da)][_0x4c6057(0x38b)]({'onBeforePasteImage':async _0x151174=>{const _0x42cd8c=_0x4c6057,_0x153b0b=await _0x384a04[_0x42cd8c(0x290)][_0x42cd8c(0x3c8)](_0x151174);return _0x153b0b?{'source':_0x153b0b[_0x42cd8c(0x393)],'imageSourceType':_0x153b0b[_0x42cd8c(0x271)]}:null;}}));}};de=ct([Re(0x0,T[_0x661f9(0x41a)]),Re(0x1,Ke['IImageIoService'])],de);const be=[_0x661f9(0x423),_0x661f9(0x2be),_0x661f9(0x317),_0x661f9(0x25b),'blue.400',_0x661f9(0x31e)];class pe extends a['Disposable']{constructor(){const _0x358b8a=_0x661f9;super(...arguments),_(this,_0x358b8a(0x2e3),new Map()),_(this,_0x358b8a(0x208),0x0);}['assignAColorForMemberID'](_0x21ca9c){const _0x533c37=_0x661f9;if(this['_assignedColors'][_0x533c37(0x1d2)](_0x21ca9c))return this[_0x533c37(0x2e3)][_0x533c37(0x2fa)](_0x21ca9c);const _0x5b33a2=be[this[_0x533c37(0x208)]];return this[_0x533c37(0x208)]=(this[_0x533c37(0x208)]+0x1)%be[_0x533c37(0x3e2)],this[_0x533c37(0x2e3)][_0x533c37(0x406)](_0x21ca9c,_0x5b33a2),_0x5b33a2;}}function xe(_0x5a0b44){const _0x4be8ed=_0x661f9;let _0x42d685='';for(const _0x17db2f of _0x5a0b44){const {startOffset:_0xe6e88e,endOffset:_0x2007d4,isActive:_0x9e4f39,rangeType:_0x4fe2f3,segmentId:_0x47e3a3,segmentPage:_0x3ccf54}=_0x17db2f;_0x42d685[_0x4be8ed(0x3e2)]&&(_0x42d685+=','),_0x42d685+=_0xe6e88e+':'+_0x2007d4+':'+(_0x9e4f39?'1':'0')+':'+_0x4fe2f3+':'+_0x47e3a3+':'+_0x3ccf54;}return _0x42d685;}function lt(_0x3f56ac){const _0x110703=_0x661f9,_0x33e628=_0x3f56ac['split'](','),_0x319071=[];for(const _0x31952b of _0x33e628){const [_0x5475c5,_0x181a15,_0xbbc8bc,_0x4b44ba,_0x153622,_0x32ca26]=_0x31952b[_0x110703(0x2b7)](':');_0x319071[_0x110703(0x28f)]({'startOffset':Number(_0x5475c5),'endOffset':Number(_0x181a15),'collapsed':_0x5475c5===_0x181a15,'isActive':_0xbbc8bc==='1','rangeType':_0x4b44ba===a[_0x110703(0x422)]['TEXT']?a[_0x110703(0x422)][_0x110703(0x336)]:a[_0x110703(0x422)]['RECT'],'segmentId':typeof _0x153622==_0x110703(0x2df)?String(_0x153622):'','segmentPage':Number(_0x32ca26!=null?_0x32ca26:-0x1)});}return _0x319071[_0x110703(0x261)](_0x36c1bc=>_0x36c1bc[_0x110703(0x27e)])||(_0x319071[0x0][_0x110703(0x27e)]=!0x0),_0x319071;}class Oe extends a[_0x661f9(0x170)]{constructor(){const _0x6a12af=_0x661f9;super(...arguments),_(this,_0x6a12af(0x368),new I[(_0x6a12af(0x175))](null)),_(this,'collabCursorState$',this[_0x6a12af(0x368)][_0x6a12af(0x3d2)]());}[_0x661f9(0x21b)](_0x220905){const _0x2a9c00=_0x661f9,{unitID:_0x4daf9d,memberID:_0x1e512a,textRanges:_0x5d3246}=_0x220905,_0x3ebdb5=xe(_0x5d3246);if(_0x3ebdb5==='')return;const _0x428005={'unitID':_0x4daf9d,'memberID':_0x1e512a,'selection':_0x3ebdb5};this[_0x2a9c00(0x368)][_0x2a9c00(0x29d)](_0x428005);}}var _t=Object[_0x661f9(0x27b)],ht=(_0x51b26e,_0xba8331,_0x5a8f37,_0x178e17)=>{const _0x177ab5=_0x661f9;for(var _0x4a9315=_0x178e17>0x1?void 0x0:_0x178e17?_t(_0xba8331,_0x5a8f37):_0xba8331,_0xc38c1d=_0x51b26e[_0x177ab5(0x3e2)]-0x1,_0x5b62c7;_0xc38c1d>=0x0;_0xc38c1d--)(_0x5b62c7=_0x51b26e[_0xc38c1d])&&(_0x4a9315=_0x5b62c7(_0x4a9315)||_0x4a9315);return _0x4a9315;},U=(_0x7d4eb8,_0x4a3a10)=>(_0x22b7ac,_0x13c164)=>_0x4a3a10(_0x22b7ac,_0x13c164,_0x7d4eb8);const ut=0x12c,It=0x64;let fe=class extends a[_0x661f9(0x170)]{constructor(_0x31657e,_0x9353c7,_0x73f4c1,_0x20c27d,_0xb623f8,_0xe83ddf,_0x51886a,_0x2bbbd1,_0x1db289){const _0x33ba6c=_0x661f9;super(),_(this,_0x33ba6c(0x1ab),!0x1),_(this,_0x33ba6c(0x3bc),!0x1),_(this,_0x33ba6c(0x2a0),new I['BehaviorSubject'](new Map())),_(this,_0x33ba6c(0x2e5),this[_0x33ba6c(0x2a0)][_0x33ba6c(0x3d2)]()),_(this,_0x33ba6c(0x3e5),new I[(_0x33ba6c(0x175))]([])),_(this,'roomMembers$',this[_0x33ba6c(0x3e5)][_0x33ba6c(0x362)](I[_0x33ba6c(0x1dd)](ut))),_(this,_0x33ba6c(0x3d0),a[_0x33ba6c(0x3de)](_0x11e4a8=>{const _0x4792f0=_0x33ba6c,_0x20e2d8={'eventID':v[_0x4792f0(0x1fe)][_0x4792f0(0x2d1)],'data':{'unitID':this[_0x4792f0(0x1af)],'memberID':this[_0x4792f0(0x173)][_0x4792f0(0x2a2)](),'selection':xe(_0x11e4a8)}};this['_session'][_0x4792f0(0x3a8)](_0x20e2d8,this[_0x4792f0(0x1af)]);},It)),(this[_0x33ba6c(0x1af)]=_0x31657e,this[_0x33ba6c(0x173)]=_0x9353c7,this[_0x33ba6c(0x352)]=_0x73f4c1,this[_0x33ba6c(0x21d)]=_0x20c27d,this[_0x33ba6c(0x29c)]=_0xb623f8,this['_syncEditingCollabCursorService']=_0xe83ddf,this[_0x33ba6c(0x184)]=_0x51886a,this[_0x33ba6c(0x172)]=_0x2bbbd1,this[_0x33ba6c(0x3f5)]=_0x1db289);}get['cursorInfo'](){const _0x44fbea=_0x661f9;return this[_0x44fbea(0x2a0)][_0x44fbea(0x3c5)]();}get[_0x661f9(0x3e8)](){const _0x223085=_0x661f9;return this[_0x223085(0x3e5)]['getValue']();}[_0x661f9(0x1ff)](){const _0x515d9f=_0x661f9;super[_0x515d9f(0x1ff)](),this[_0x515d9f(0x2a0)][_0x515d9f(0x29d)](new Map()),this[_0x515d9f(0x2a0)]['complete'](),this[_0x515d9f(0x3e5)]['next']([]),this[_0x515d9f(0x3e5)][_0x515d9f(0x266)]();}[_0x661f9(0x2b5)](){const _0x20b645=_0x661f9;this[_0x20b645(0x3bc)]||(this[_0x20b645(0x3bc)]=!0x0,this[_0x20b645(0x173)][_0x20b645(0x34c)][_0x20b645(0x362)](I[_0x20b645(0x3eb)](this[_0x20b645(0x326)]))['subscribe'](_0xd4b02f=>{const _0x502ddf=_0x20b645;_0xd4b02f===u[_0x502ddf(0x260)][_0x502ddf(0x324)]?this[_0x502ddf(0x40c)]():this[_0x502ddf(0x191)]();}),this[_0x20b645(0x173)][_0x20b645(0x283)][_0x20b645(0x362)](I[_0x20b645(0x3eb)](this['dispose$']))[_0x20b645(0x30b)](_0x31ca42=>{const _0x29f772=_0x20b645,_0x1a27ba=_0x31ca42['eventID'];_0x1a27ba===v[_0x29f772(0x1fe)][_0x29f772(0x2d1)]&&this[_0x29f772(0x2d0)](_0x31ca42),_0x1a27ba===v[_0x29f772(0x1fe)]['USERS_LEAVE']&&this[_0x29f772(0x354)](_0x31ca42);}),this[_0x20b645(0x37a)](this[_0x20b645(0x3f5)][_0x20b645(0x28a)](_0xb24004=>{const _0x2b4ca6=_0x20b645,_0x376f35=_0xb24004[_0x2b4ca6(0x2e4)];_0x376f35!=null&&this[_0x2b4ca6(0x1ab)]&&_0xb24004['id']===W[_0x2b4ca6(0x298)]['id']&&_0x376f35[_0x2b4ca6(0x416)]===this[_0x2b4ca6(0x1af)]&&_0x376f35[_0x2b4ca6(0x3a3)]===!0x1&&_0x376f35[_0x2b4ca6(0x402)][_0x2b4ca6(0x3e2)]>0x0&&this[_0x2b4ca6(0x3d0)](_0x376f35['ranges']);})),this['_syncEditingCollabCursorService'][_0x20b645(0x26c)][_0x20b645(0x362)](I['takeUntil'](this[_0x20b645(0x326)]))[_0x20b645(0x30b)](_0x48a7ae=>{const _0x3cf914=_0x20b645;if((_0x48a7ae==null?void 0x0:_0x48a7ae[_0x3cf914(0x1af)])!==this['unitID'])return;const _0x481895={'eventID':v[_0x3cf914(0x1fe)][_0x3cf914(0x2d1)],'data':_0x48a7ae};this['_onCursorUpdate'](_0x481895);}),this[_0x20b645(0x37a)](this[_0x20b645(0x3f5)]['onCommandExecuted'](_0x454f1a=>{const _0xe59fa7=_0x20b645;if(_0x454f1a[_0xe59fa7(0x2e4)]==null)return;const _0x599bce=_0x454f1a['params'];if(_0x454f1a['id']!==W[_0xe59fa7(0x207)]['id']||_0x599bce[_0xe59fa7(0x416)]!==this[_0xe59fa7(0x1af)])return;const _0x4f20ce={'id':_0xe59fa7(0x200),'params':_0x599bce},_0x595e2f=this[_0xe59fa7(0x21a)];for(const [_0x6ea366,_0x15e4a9]of _0x595e2f){const _0x31404d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15e4a9[_0xe59fa7(0x402)]}},_0x46a2f4=this['_transformService']['transformMutation'](_0x4f20ce,_0x31404d,!0x1);if(v[_0xe59fa7(0x19a)](_0x46a2f4))throw _0x46a2f4['error'];_0x595e2f[_0xe59fa7(0x406)](_0x6ea366,{..._0x15e4a9,'ranges':_0x46a2f4['m2Prime']['params'][_0xe59fa7(0x1b3)]});}queueMicrotask(()=>{const _0x421014=_0xe59fa7;this[_0x421014(0x2a0)][_0x421014(0x29d)](_0x595e2f);});})));}[_0x661f9(0x2d0)](_0x1572fa){const _0x5af920=_0x661f9;var _0x444e32,_0x2b0011;const {memberID:_0x42726b,selection:_0x3371e4}=_0x1572fa['data'],_0x4eb3ad=lt(_0x3371e4),_0x20bbb0=(_0x2b0011=(_0x444e32=this[_0x5af920(0x29c)]['getMember'](this['unitID'],_0x42726b))==null?void 0x0:_0x444e32[_0x5af920(0x388)])!=null?_0x2b0011:_0x5af920(0x3f3),_0x403611={'color':this[_0x5af920(0x21d)][_0x5af920(0x3fd)](_0x42726b),'name':_0x20bbb0,'ranges':_0x4eb3ad},_0xb94940=this[_0x5af920(0x21a)];_0xb94940[_0x5af920(0x406)](_0x42726b,_0x403611),this['_cursorInfo$'][_0x5af920(0x29d)](_0xb94940);}['_onCursorDelete'](_0x316e5b){const _0x45d2a0=_0x661f9,{memberID:_0x4e3de1}=_0x316e5b[_0x45d2a0(0x315)],_0x345862=this[_0x45d2a0(0x21a)];_0x345862[_0x45d2a0(0x323)](_0x4e3de1),this[_0x45d2a0(0x2a0)][_0x45d2a0(0x29d)](_0x345862);}[_0x661f9(0x40c)](){const _0x41a801=_0x661f9;var _0xc589e9;if(this['_online']=!0x0,((_0xc589e9=this[_0x41a801(0x172)][_0x41a801(0x409)]())==null?void 0x0:_0xc589e9['getUnitId']())!==this[_0x41a801(0x1af)])return;const _0x80dd62=this[_0x41a801(0x352)][_0x41a801(0x2fa)](W['DocSelectionManagerService'])[_0x41a801(0x417)]();Array[_0x41a801(0x18f)](_0x80dd62)&&_0x80dd62[_0x41a801(0x3e2)]>0x0&&this['_updateLocalCursor'](_0x80dd62);}[_0x661f9(0x191)](){const _0x25ee71=_0x661f9;this[_0x25ee71(0x1ab)]=!0x1;}};function _0x33d9(_0x4cb6d4,_0x4faa6a){const _0x1d839e=_0x1d83();return _0x33d9=function(_0x33d99d,_0x87e99b){_0x33d99d=_0x33d99d-0x170;let _0x23a7df=_0x1d839e[_0x33d99d];return _0x23a7df;},_0x33d9(_0x4cb6d4,_0x4faa6a);}fe=ht([U(0x2,a[_0x661f9(0x2c2)](a[_0x661f9(0x2f8)])),U(0x3,a['Inject'](pe)),U(0x4,a[_0x661f9(0x2c2)](u[_0x661f9(0x28c)])),U(0x5,a[_0x661f9(0x2c2)](Oe)),U(0x6,v[_0x661f9(0x351)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x661f9(0x400)])],fe);var St=Object[_0x661f9(0x27b)],dt=(_0x26d57d,_0x455df0,_0x3af723,_0x235b70)=>{const _0x36c35d=_0x661f9;for(var _0x7f7914=_0x235b70>0x1?void 0x0:_0x235b70?St(_0x455df0,_0x3af723):_0x455df0,_0x2624ee=_0x26d57d[_0x36c35d(0x3e2)]-0x1,_0x1b836e;_0x2624ee>=0x0;_0x2624ee--)(_0x1b836e=_0x26d57d[_0x2624ee])&&(_0x7f7914=_0x1b836e(_0x7f7914)||_0x7f7914);return _0x7f7914;},w=(_0x4cde97,_0x6c333f)=>(_0x4aa201,_0x50d447)=>_0x6c333f(_0x4aa201,_0x50d447,_0x4cde97);const ft=0x12c,mt=0x64,gt=()=>{let _0x1d8cb7=[],_0x3ae239=!0x1;return _0xe544ba=>{_0x1d8cb7['push'](_0xe544ba),_0x3ae239||(_0x3ae239=!0x0,setTimeout(()=>{const _0x1c6919=_0x33d9;_0x1d8cb7[_0x1c6919(0x30f)](_0x3b9b8e=>_0x3b9b8e()),_0x1d8cb7=[],_0x3ae239=!0x1;}));};};let me=class extends a[_0x661f9(0x170)]{constructor(_0x15d007,_0x26907a,_0x4a5861,_0x405567,_0xc67a23,_0x178622,_0x142da1,_0x52d3d7){const _0x153957=_0x661f9;super(),_(this,_0x153957(0x1ab),!0x1),_(this,_0x153957(0x3bc),!0x1),_(this,'_cursorInfo$',new I[(_0x153957(0x175))](new Map())),_(this,_0x153957(0x2e5),this[_0x153957(0x2a0)]['asObservable']()),_(this,_0x153957(0x3e5),new I[(_0x153957(0x175))]([])),_(this,'roomMembers$',this[_0x153957(0x3e5)][_0x153957(0x362)](I[_0x153957(0x1dd)](ft))),_(this,_0x153957(0x3d0),a['debounce']((_0x18d8f9,_0x101f57)=>{const _0x43e488=_0x153957,_0x15a243={'eventID':v[_0x43e488(0x1fe)][_0x43e488(0x2d1)],'data':{'unitID':this[_0x43e488(0x1af)],'memberID':this[_0x43e488(0x173)]['getMemberID'](),'selection':x[_0x43e488(0x1e3)](_0x18d8f9,_0x101f57[_0x43e488(0x20a)])}};this['_session']['send'](_0x15a243,this['unitID']);},mt)),(this[_0x153957(0x1af)]=_0x15d007,this[_0x153957(0x173)]=_0x26907a,this[_0x153957(0x352)]=_0x4a5861,this['_colorAssignService']=_0x405567,this[_0x153957(0x29c)]=_0xc67a23,this[_0x153957(0x172)]=_0x178622,this[_0x153957(0x3f5)]=_0x142da1,this[_0x153957(0x238)]=_0x52d3d7);}get['cursorInfo'](){const _0x11220f=_0x661f9;return this[_0x11220f(0x2a0)][_0x11220f(0x3c5)]();}get[_0x661f9(0x3e8)](){const _0x15a6d9=_0x661f9;return this[_0x15a6d9(0x3e5)][_0x15a6d9(0x3c5)]();}[_0x661f9(0x1ff)](){const _0x2aa58f=_0x661f9;super['dispose'](),this[_0x2aa58f(0x2a0)][_0x2aa58f(0x29d)](new Map()),this[_0x2aa58f(0x2a0)][_0x2aa58f(0x266)](),this['_roomMembers$'][_0x2aa58f(0x29d)]([]),this[_0x2aa58f(0x3e5)][_0x2aa58f(0x266)]();}[_0x661f9(0x2b5)](){const _0x1424ac=_0x661f9;this[_0x1424ac(0x3bc)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x1424ac(0x362)](I['takeUntil'](this[_0x1424ac(0x326)]))['subscribe'](_0x3053cd=>{const _0x38182a=_0x1424ac;_0x3053cd===u[_0x38182a(0x260)][_0x38182a(0x324)]?this[_0x38182a(0x40c)]():this[_0x38182a(0x191)]();}),this[_0x1424ac(0x173)][_0x1424ac(0x283)][_0x1424ac(0x362)](I[_0x1424ac(0x3eb)](this[_0x1424ac(0x326)]))[_0x1424ac(0x30b)](_0x1c2b85=>{const _0x27721b=_0x1424ac,_0x418fc6=_0x1c2b85[_0x27721b(0x3b3)];_0x418fc6===v['CollaborationEvent'][_0x27721b(0x2d1)]&&this['_onCursorUpdate'](_0x1c2b85),_0x418fc6===v['CollaborationEvent'][_0x27721b(0x42b)]&&this[_0x27721b(0x354)](_0x1c2b85);}),this[_0x1424ac(0x39e)](),this['disposeWithMe'](this[_0x1424ac(0x3f5)][_0x1424ac(0x28a)](_0x34bf8d=>{const _0x57c5d8=_0x1424ac;if(this[_0x57c5d8(0x1ab)]&&_0x34bf8d['id']===g[_0x57c5d8(0x1d1)]['id']&&_0x34bf8d['params']['unitId']===this[_0x57c5d8(0x1af)]){const _0x3756a6=_0x34bf8d[_0x57c5d8(0x2e4)];this[_0x57c5d8(0x3d0)](_0x3756a6[_0x57c5d8(0x2ac)],_0x3756a6[_0x57c5d8(0x1fd)][0x0]);}})));}[_0x661f9(0x2d0)](_0x28937b){const _0x2dfc3c=_0x661f9;var _0x1d2ed9,_0x591396;const {memberID:_0x44160d,selection:_0x44bdba}=_0x28937b[_0x2dfc3c(0x315)],{sheetName:_0x9b944c,range:_0x3a9691}=x['deserializeRangeWithSheet'](_0x44bdba),_0x95f536={'name':(_0x591396=(_0x1d2ed9=this[_0x2dfc3c(0x29c)][_0x2dfc3c(0x293)](this[_0x2dfc3c(0x1af)],_0x44160d))==null?void 0x0:_0x1d2ed9[_0x2dfc3c(0x388)])!=null?_0x591396:_0x2dfc3c(0x3f3),'range':this[_0x2dfc3c(0x1d5)](_0x9b944c,_0x3a9691),'sheetID':_0x9b944c,'color':this[_0x2dfc3c(0x21d)][_0x2dfc3c(0x3fd)](_0x44160d),'selection':_0x44bdba},_0x1b8cf6=this['cursorInfo'];_0x1b8cf6[_0x2dfc3c(0x406)](_0x44160d,_0x95f536),this[_0x2dfc3c(0x2a0)][_0x2dfc3c(0x29d)](_0x1b8cf6);}[_0x661f9(0x354)](_0x4faf1a){const _0x3ccb06=_0x661f9,{memberID:_0x18f405}=_0x4faf1a['data'],_0x5c4114=this[_0x3ccb06(0x21a)];_0x5c4114[_0x3ccb06(0x323)](_0x18f405),this['_cursorInfo$'][_0x3ccb06(0x29d)](_0x5c4114);}['_getMergeRange'](_0x462762,_0x122fd8){const _0x3dbe9f=_0x661f9;var _0x2593b2,_0x35adb8;const _0x4fc93c=(_0x35adb8=(_0x2593b2=this[_0x3dbe9f(0x172)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x2593b2[_0x3dbe9f(0x373)](_0x462762))==null?void 0x0:_0x35adb8[_0x3dbe9f(0x2a3)]();return(_0x4fc93c==null?void 0x0:_0x4fc93c[_0x3dbe9f(0x316)](_0x17dae9=>a[_0x3dbe9f(0x217)][_0x3dbe9f(0x333)](_0x17dae9,_0x122fd8)))||_0x122fd8;}['_onRefRangeChange'](){const _0x27d041=_0x661f9,_0x46570a=new a[(_0x27d041(0x226))](),_0x584df8=gt(),_0x328f52=()=>{const _0x5e673b=_0x27d041;_0x46570a[_0x5e673b(0x1ff)]();const _0x48e1c1=(_0x5028e1,_0x1435ae,_0x354c0b,_0x125b06)=>{const _0x551fb0=_0x5e673b;let _0x2e649d=[];switch(_0x5028e1['id']){case g[_0x551fb0(0x3f2)]['DeleteRangeMoveLeftCommandId']:{_0x2e649d=g[_0x551fb0(0x265)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x1e1)]:{_0x2e649d=g[_0x551fb0(0x2c0)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x34b)]:{_0x2e649d=g[_0x551fb0(0x2ed)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x377)]:{_0x2e649d=g[_0x551fb0(0x3a9)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x1ec)]:{_0x2e649d=g[_0x551fb0(0x1db)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x2e9)]:{_0x2e649d=g[_0x551fb0(0x194)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x1bf)]:{_0x2e649d=g['handleMoveRange'](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x1fb)]:{_0x2e649d=g[_0x551fb0(0x2f2)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x26d)]:{_0x2e649d=g[_0x551fb0(0x270)](_0x5028e1,_0x125b06);break;}}const _0x35a2ed=g[_0x551fb0(0x3ae)](_0x2e649d,_0x125b06),_0x5f5bc7=this[_0x551fb0(0x21a)][_0x551fb0(0x2fa)](_0x1435ae);if(_0x5f5bc7&&_0x35a2ed){const _0x2e2bf8={..._0x5f5bc7,'range':_0x35a2ed};this['cursorInfo']['set'](_0x1435ae,_0x2e2bf8),_0x584df8(()=>{const _0x11ec60=_0x551fb0,_0x8d0951=this[_0x11ec60(0x238)][_0x11ec60(0x427)](_0x35a2ed,_0x39dc3c=>(_0x8d0951[_0x11ec60(0x1ff)](),_0x48e1c1(_0x39dc3c,_0x1435ae,_0x354c0b,_0x35a2ed)));_0x46570a[_0x11ec60(0x1dc)](_0x8d0951);});}return{'redos':[],'undos':[]};};this[_0x5e673b(0x21a)][_0x5e673b(0x30f)]((_0x2a6eb,_0x1ef1d4)=>{const _0x28dc3d=_0x5e673b,{range:_0x2d51ba,sheetID:_0x57de81}=_0x2a6eb,_0x4d8cc4=this[_0x28dc3d(0x238)][_0x28dc3d(0x427)](_0x2d51ba,_0x47c14d=>(_0x4d8cc4[_0x28dc3d(0x1ff)](),_0x48e1c1(_0x47c14d,_0x1ef1d4,_0x57de81,_0x2d51ba)));_0x46570a[_0x28dc3d(0x1dc)](_0x4d8cc4);});};this[_0x27d041(0x37a)](a['toDisposable'](this[_0x27d041(0x2a0)][_0x27d041(0x30b)](()=>{_0x328f52();})));}[_0x661f9(0x40c)](){const _0x147481=_0x661f9;var _0x426f08,_0x1a0802;if(this[_0x147481(0x1ab)]=!0x0,((_0x426f08=this[_0x147481(0x172)][_0x147481(0x409)]())==null?void 0x0:_0x426f08[_0x147481(0x28b)]())!==this['unitID'])return;const _0x5312de=(_0x1a0802=this['_injector'][_0x147481(0x2fa)](g[_0x147481(0x432)])[_0x147481(0x248)]())==null?void 0x0:_0x1a0802[0x0],_0x168de0=this[_0x147481(0x172)][_0x147481(0x222)](a[_0x147481(0x311)][_0x147481(0x42f)])[_0x147481(0x3ef)]();_0x5312de&&_0x168de0&&this[_0x147481(0x3d0)](_0x168de0[_0x147481(0x346)](),_0x5312de);}['_toggleOffline'](){const _0x1058ca=_0x661f9;this[_0x1058ca(0x1ab)]=!0x1;}};me=dt([w(0x2,a[_0x661f9(0x2c2)](a[_0x661f9(0x2f8)])),w(0x3,a[_0x661f9(0x2c2)](pe)),w(0x4,a[_0x661f9(0x2c2)](u[_0x661f9(0x28c)])),w(0x5,a[_0x661f9(0x32b)]),w(0x6,a['ICommandService']),w(0x7,a[_0x661f9(0x2c2)](g['RefRangeService']))],me);var vt=Object[_0x661f9(0x27b)],Et=(_0x2ef660,_0x27d96c,_0x50e1a2,_0x347ead)=>{for(var _0x5d9904=_0x347ead>0x1?void 0x0:_0x347ead?vt(_0x27d96c,_0x50e1a2):_0x27d96c,_0x115f90=_0x2ef660['length']-0x1,_0x79d82f;_0x115f90>=0x0;_0x115f90--)(_0x79d82f=_0x2ef660[_0x115f90])&&(_0x5d9904=_0x79d82f(_0x5d9904)||_0x5d9904);return _0x5d9904;},oe=(_0x191ea8,_0x3e4dc9)=>(_0x29816f,_0x34ff37)=>_0x3e4dc9(_0x29816f,_0x34ff37,_0x191ea8);let B=class extends a['RxDisposable']{constructor(_0x4c9b63,_0x3a0616,_0x551386){const _0x92e287=_0x661f9;super(),_(this,'_entities',new Map()),_(this,_0x92e287(0x340),new I[(_0x92e287(0x1ee))]()),(this[_0x92e287(0x172)]=_0x4c9b63,this[_0x92e287(0x352)]=_0x3a0616,this[_0x92e287(0x1d9)]=_0x551386,this[_0x92e287(0x3bc)]());}['dispose'](){const _0x39104d=_0x661f9;super[_0x39104d(0x1ff)](),this[_0x39104d(0x340)][_0x39104d(0x266)](),this[_0x39104d(0x20b)][_0x39104d(0x30f)](_0x5ae4e1=>_0x5ae4e1[_0x39104d(0x1ff)]());}[_0x661f9(0x25a)](_0x19fa50){const _0x2923b9=_0x661f9;return this['_entities'][_0x2923b9(0x1d2)](_0x19fa50)?this[_0x2923b9(0x20b)][_0x2923b9(0x2fa)](_0x19fa50)[_0x2923b9(0x2e5)]:this[_0x2923b9(0x340)][_0x2923b9(0x362)](I['filter'](_0x5f2480=>_0x5f2480[_0x2923b9(0x1af)]===_0x19fa50),I[_0x2923b9(0x17b)](_0x4b1641=>_0x4b1641[_0x2923b9(0x2e5)]));}[_0x661f9(0x3bc)](){const _0x34472b=_0x661f9;this[_0x34472b(0x172)][_0x34472b(0x3fc)](a[_0x34472b(0x311)][_0x34472b(0x42f)])['pipe'](I[_0x34472b(0x3eb)](this[_0x34472b(0x326)]))['subscribe'](async _0xd37762=>{const _0x35d240=_0x34472b,_0x2668b1=_0xd37762['getUnitId'](),_0x22dece=await this['_startSheetCollabCursor'](_0x2668b1);this['_entityInit$']['next'](_0x22dece),this[_0x35d240(0x20b)][_0x35d240(0x406)](_0x2668b1,_0x22dece);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x34472b(0x311)][_0x34472b(0x318)])[_0x34472b(0x362)](I['takeUntil'](this[_0x34472b(0x326)]))[_0x34472b(0x362)](I[_0x34472b(0x1f2)](_0xce9f90=>!_0xce9f90[_0x34472b(0x28b)]()[_0x34472b(0x3be)]('__')))[_0x34472b(0x30b)](async _0x133d86=>{const _0x1f1d46=_0x34472b,_0x54584d=_0x133d86[_0x1f1d46(0x28b)](),_0x360844=await this[_0x1f1d46(0x374)](_0x54584d);this['_entityInit$'][_0x1f1d46(0x29d)](_0x360844),this['_entities']['set'](_0x54584d,_0x360844);}),I[_0x34472b(0x37d)](this['_univerInstanceService'][_0x34472b(0x3aa)](a[_0x34472b(0x311)]['UNIVER_DOC']),this['_univerInstanceService'][_0x34472b(0x3aa)](a[_0x34472b(0x311)][_0x34472b(0x42f)]))['pipe'](I[_0x34472b(0x3eb)](this[_0x34472b(0x326)]))['subscribe'](_0x378609=>{const _0x30e4e6=_0x34472b,_0x101710=_0x378609[_0x30e4e6(0x28b)](),_0x112fa4=this[_0x30e4e6(0x20b)][_0x30e4e6(0x2fa)](_0x101710);_0x112fa4&&(_0x112fa4[_0x30e4e6(0x1ff)](),this[_0x30e4e6(0x20b)]['delete'](_0x101710));});}async['_startSheetCollabCursor'](_0x4e91c7){const _0x5059b7=_0x661f9,_0x482b30=await this[_0x5059b7(0x1d9)]['requireSession'](_0x4e91c7),_0x113d9d=this[_0x5059b7(0x352)][_0x5059b7(0x180)](me,_0x4e91c7,_0x482b30);return _0x113d9d['init'](),_0x113d9d;}async['_startDocCollabCursor'](_0x17ef96){const _0x768199=_0x661f9,_0x2f74cd=await this[_0x768199(0x1d9)]['requireSession'](_0x17ef96),_0x3757ac=this[_0x768199(0x352)][_0x768199(0x180)](fe,_0x17ef96,_0x2f74cd);return _0x3757ac[_0x768199(0x2b5)](),_0x3757ac;}};B=Et([oe(0x0,a[_0x661f9(0x32b)]),oe(0x1,a[_0x661f9(0x2c2)](a[_0x661f9(0x2f8)])),oe(0x2,a[_0x661f9(0x2c2)](u[_0x661f9(0x1d7)]))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function Tt(_0x5b6e43,_0x5328d7){const _0x477189=_0x661f9;let {radius:_0x5c9823,width:_0x4e2f1d,height:_0x6161b9}=_0x5328d7;_0x5c9823=_0x5c9823!=null?_0x5c9823:0x0,_0x4e2f1d=_0x4e2f1d!=null?_0x4e2f1d:0x1e,_0x6161b9=_0x6161b9!=null?_0x6161b9:0x1e;let _0x1cec61=0x0,_0x3835ae=0x0,_0x42a089=0x0;_0x1cec61=_0x3835ae=_0x42a089=Math[_0x477189(0x296)](_0x5c9823,_0x4e2f1d/0x2,_0x6161b9/0x2),_0x5b6e43[_0x477189(0x2c7)](),_0x5b6e43[_0x477189(0x32c)](_0x1cec61,0x0),_0x5b6e43[_0x477189(0x236)](_0x4e2f1d-_0x3835ae,0x0),_0x5b6e43[_0x477189(0x241)](_0x4e2f1d-_0x3835ae,_0x3835ae,_0x3835ae,Math['PI']*0x3/0x2,0x0,!0x1),_0x5b6e43[_0x477189(0x236)](_0x4e2f1d,_0x6161b9-_0x42a089),_0x5b6e43[_0x477189(0x241)](_0x4e2f1d-_0x42a089,_0x6161b9-_0x42a089,_0x42a089,0x0,Math['PI']/0x2,!0x1),_0x5b6e43['lineTo'](0x0,_0x6161b9),_0x5b6e43[_0x477189(0x236)](0x0,_0x1cec61),_0x5b6e43[_0x477189(0x241)](_0x1cec61,_0x1cec61,_0x1cec61,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5b6e43[_0x477189(0x2ca)](),_0x5328d7[_0x477189(0x3e9)]&&(_0x5b6e43[_0x477189(0x2a5)](),_0x5b6e43[_0x477189(0x1e0)]=_0x5328d7[_0x477189(0x3e9)],_0x5328d7[_0x477189(0x24d)]===_0x477189(0x356)?_0x5b6e43[_0x477189(0x3e9)](_0x477189(0x356)):_0x5b6e43[_0x477189(0x3e9)](),_0x5b6e43[_0x477189(0x35d)]());}class ie extends C[_0x661f9(0x1c3)]{constructor(_0x515a0d,_0x2e4eea){const _0x1eece0=_0x661f9;super(_0x515a0d,_0x2e4eea),_(this,_0x1eece0(0x2ec)),_(this,_0x1eece0(0x3f7)),(this[_0x1eece0(0x2ec)]=_0x2e4eea==null?void 0x0:_0x2e4eea[_0x1eece0(0x2ec)],this[_0x1eece0(0x3f7)]=_0x2e4eea==null?void 0x0:_0x2e4eea[_0x1eece0(0x3f7)]);}static['drawWith'](_0x4cca21,_0x2a7747){const _0x60f28b=_0x661f9,{text:_0x24ec07,color:_0x12e7f4}=_0x2a7747;_0x4cca21[_0x60f28b(0x2a5)](),_0x4cca21[_0x60f28b(0x18b)]=_0x60f28b(0x3b2);const _0x407b19=_0x4cca21[_0x60f28b(0x308)](_0x24ec07)['width'],_0x4cb378=Math[_0x60f28b(0x296)](_0x407b19+0x2*ae,De);Tt(_0x4cca21,{'height':X,'radius':0x4,'width':_0x4cb378,'fill':_0x12e7f4}),_0x4cca21[_0x60f28b(0x1e0)]=_0x60f28b(0x38c);const _0x4b16f4=ae,_0x5a04bc=X-Ct,_0x13754e=De-0x2*ae;if(_0x407b19>_0x13754e){let _0x187af2='',_0x223270=0x0;for(const _0x51feec of _0x24ec07){const _0x58e7fc=_0x4cca21['measureText'](_0x51feec)[_0x60f28b(0x2c4)];if(_0x223270+_0x58e7fc<=_0x13754e-_0x4cca21['measureText']('...')[_0x60f28b(0x2c4)])_0x187af2+=_0x51feec,_0x223270+=_0x58e7fc;else{_0x187af2+='...';break;}}_0x4cca21[_0x60f28b(0x1e4)](_0x187af2,_0x4b16f4,_0x5a04bc);}else _0x4cca21[_0x60f28b(0x1e4)](_0x24ec07,_0x4b16f4,_0x5a04bc);_0x4cca21[_0x60f28b(0x35d)]();}[_0x661f9(0x38f)](_0x37c36f){ie['drawWith'](_0x37c36f,this);}}const ce='collab-text-anchor-',pt='collab-text-range-',Ot=_0x661f9(0x309),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt='rgba(255,\x20255,\x20255,\x200.01)';class Ne{constructor(_0x28b60b,_0x21c5ae,_0x4c2624,_0x2537a0){const _0xf9a857=_0x661f9;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0xf9a857(0x189),null),_(this,_0xf9a857(0x228),null),_(this,_0xf9a857(0x18d),null),(this[_0xf9a857(0x363)]=_0x28b60b,this[_0xf9a857(0x1bd)]=_0x21c5ae,this[_0xf9a857(0x33f)]=_0x4c2624,this[_0xf9a857(0x176)]=_0x2537a0,this[_0xf9a857(0x3b0)]());}set[_0x661f9(0x251)](_0x28ec34){const _0xfe3f80=_0x661f9;_0x28ec34?(this[_0xfe3f80(0x189)]&&this[_0xfe3f80(0x189)][_0xfe3f80(0x3a4)](),this[_0xfe3f80(0x1a9)]&&this['_textBubble']['show']()):(this['_anchorDot']&&this[_0xfe3f80(0x189)]['show'](),this[_0xfe3f80(0x1a9)]&&this[_0xfe3f80(0x1a9)][_0xfe3f80(0x3a4)]());}[_0x661f9(0x1ff)](){const _0x2c076b=_0x661f9;for(const _0x2f5400 of this['_shapes'])_0x2f5400['dispose']();this['_textBubble']&&this[_0x2c076b(0x1a9)][_0x2c076b(0x1ff)](),this[_0x2c076b(0x189)]&&this[_0x2c076b(0x189)][_0x2c076b(0x1ff)](),this['_anchor']&&this[_0x2c076b(0x29b)]['dispose'](),this[_0x2c076b(0x18d)]&&this[_0x2c076b(0x18d)]();}['_render'](){const _0x459adf=_0x661f9;var _0x4d3fd8;const {_docSkeleton:_0x58318a,_document:_0x25b64c}=this,{color:_0x5680a8,name:_0xe96291,ranges:_0x2a7d87}=this['_cursor'],_0x40df67=_0x25b64c[_0x459adf(0x34d)](),{docsLeft:_0x292460,docsTop:_0x27dea0}=_0x40df67,_0x46b1f9=new T[(_0x459adf(0x26f))](_0x40df67,_0x58318a);for(const {startOffset:_0x4c1374,endOffset:_0x4096ac,rangeType:_0x4c0883,segmentId:_0x14e807,segmentPage:_0x3b776e,collapsed:_0xf23fa4,isActive:_0x392d1d}of _0x2a7d87){const _0x2c0131=_0x58318a['findNodePositionByCharIndex'](_0x4c1374,!0x0,_0x14e807,_0x3b776e);let _0x2e0f5a=_0x58318a['findNodePositionByCharIndex'](_0x4096ac,!0x0,_0x14e807,_0x3b776e);if(_0x2e0f5a==null&&(_0x2e0f5a=_0x58318a[_0x459adf(0x2db)](_0x4096ac-0x1,!0x1,_0x14e807,_0x3b776e)),_0x392d1d){const {contentBoxPointGroup:_0x4636c0}=_0x46b1f9[_0x459adf(0x1b1)](_0x2e0f5a,_0x2e0f5a);if(_0x4636c0['length']===0x0)continue;this[_0x459adf(0x3b9)](_0x5680a8,_0x4636c0,_0x292460,_0x27dea0,_0xe96291),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x2c0131&&_0x2e0f5a){if(_0x4c0883===a[_0x459adf(0x422)][_0x459adf(0x36a)]){const _0x5358bb=new T[(_0x459adf(0x306))](_0x40df67,_0x58318a),{pointGroup:_0x272c8b}=(_0x4d3fd8=_0x5358bb[_0x459adf(0x1b1)](_0x2c0131,_0x2e0f5a))!=null?_0x4d3fd8:{};if(_0x272c8b==null||_0x272c8b[_0x459adf(0x3e2)]===0x0)continue;this[_0x459adf(0x2b6)](_0x5680a8,_0x272c8b,_0x292460,_0x27dea0);}else{if(!_0xf23fa4){const {borderBoxPointGroup:_0x27cfac}=_0x46b1f9[_0x459adf(0x1b1)](_0x2c0131,_0x2e0f5a);if(_0x27cfac[_0x459adf(0x3e2)]===0x0)continue;this['_drawTextRange'](_0x5680a8,_0x27cfac,_0x292460,_0x27dea0);}}}}}['_drawAnchor'](_0x5a466a,_0x586f2a,_0x39ad42,_0x1025ce,_0x166373){const _0x350d75=_0x661f9,_0x30ca52=this[_0x350d75(0x1f9)](_0x586f2a),{left:_0x243d3e,top:_0x2a1d59,height:_0x53a60a}=_0x30ca52,_0x1c1726=this[_0x350d75(0x2c6)](),_0x4e96a7=bt/_0x1c1726,_0x51912a=new C[(_0x350d75(0x3b7))](ce+a['generateRandomId'](Y),{'left':_0x243d3e+_0x39ad42-_0x4e96a7,'top':_0x2a1d59+_0x1025ce,'height':_0x53a60a,'width':Rt,'fill':_0x5a466a||C[_0x350d75(0x27c)](a[_0x350d75(0x218)][_0x350d75(0x187)],0x0),'strokeWidth':_0x4e96a7,'stroke':Dt,'evented':!0x0});this[_0x350d75(0x29b)]=_0x51912a,this[_0x350d75(0x1bd)][_0x350d75(0x229)](_0x51912a,T[_0x350d75(0x287)]);const _0x1f0408=new C[(_0x350d75(0x3b7))](ce+a[_0x350d75(0x23d)](Y),{'left':_0x243d3e+_0x39ad42-_0x4e96a7,'top':_0x2a1d59+_0x1025ce-le/0x2,'height':le,'width':le,'fill':_0x5a466a||C[_0x350d75(0x27c)](a['COLORS'][_0x350d75(0x187)],0x0),'strokeWidth':0x0,'stroke':_0x5a466a||C[_0x350d75(0x27c)](a[_0x350d75(0x218)]['black'],0x0),'evented':!0x1});this[_0x350d75(0x189)]=_0x1f0408,this[_0x350d75(0x1bd)][_0x350d75(0x229)](_0x1f0408,T[_0x350d75(0x287)]);const _0x2d2e99=new ie(ce+a[_0x350d75(0x23d)](Y),{'left':_0x243d3e+_0x39ad42-_0x4e96a7,'top':_0x2a1d59+_0x1025ce-X,'text':_0x166373,'color':_0x5a466a});this[_0x350d75(0x1a9)]=_0x2d2e99,this[_0x350d75(0x1bd)][_0x350d75(0x229)](_0x2d2e99,T[_0x350d75(0x287)]),this[_0x350d75(0x251)]=!0x1;}[_0x661f9(0x26b)](){const _0x54366b=_0x661f9,_0x3489c5=this[_0x54366b(0x29b)][_0x54366b(0x389)][_0x54366b(0x212)](()=>{this['_hover']=!0x0;}),_0x52aded=this[_0x54366b(0x29b)]['onPointerLeave$'][_0x54366b(0x212)](()=>{const _0x1e0734=_0x54366b;this[_0x1e0734(0x228)]&&clearTimeout(this['_hideTimer']),this[_0x1e0734(0x228)]=setTimeout(()=>{const _0x784f0f=_0x1e0734;this[_0x784f0f(0x251)]=!0x1;},0x7d0);});return()=>{const _0x4310ad=_0x54366b;_0x3489c5[_0x4310ad(0x3e4)](),_0x52aded[_0x4310ad(0x3e4)]();};}[_0x661f9(0x41d)](_0x4cb49d,_0xdbcc24,_0x3df097,_0x3e8c66){const _0x3e1a1b=_0x661f9,_0x1a0e0c=new a[(_0x3e1a1b(0x334))](_0x4cb49d)[_0x3e1a1b(0x398)](0.2)[_0x3e1a1b(0x2cb)](),_0x521fb6=new C[(_0x3e1a1b(0x1c4))](pt+a[_0x3e1a1b(0x23d)](Y),{'pointsGroup':_0xdbcc24,'fill':_0x1a0e0c||C[_0x3e1a1b(0x27c)](a['COLORS'][_0x3e1a1b(0x187)],0.2),'left':_0x3df097,'top':_0x3e8c66,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3e1a1b(0x28f)](_0x521fb6),this[_0x3e1a1b(0x1bd)]['addObject'](_0x521fb6,T[_0x3e1a1b(0x287)]);}[_0x661f9(0x2b6)](_0x5729ec,_0x374138,_0x194ea7,_0x41ef2c){const _0x385adf=_0x661f9,_0x2b41a9=new a['ColorKit'](_0x5729ec)[_0x385adf(0x398)](0.2)[_0x385adf(0x2cb)](),_0x5dff9a=new C[(_0x385adf(0x1c4))](Ot+a[_0x385adf(0x23d)](Y),{'pointsGroup':_0x374138,'fill':_0x2b41a9||C[_0x385adf(0x27c)](a[_0x385adf(0x218)][_0x385adf(0x187)],0.2),'left':_0x194ea7,'top':_0x41ef2c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x385adf(0x385)]['push'](_0x5dff9a),this['_scene'][_0x385adf(0x229)](_0x5dff9a,T['TEXT_RANGE_LAYER_INDEX']);}[_0x661f9(0x1f9)](_0x45a021){const _0x553283=_0x45a021[0x0],_0x2d825d=_0x553283[0x0],_0x3d6f50=_0x553283[0x2],{x:_0x341ef9,y:_0x14d582}=_0x2d825d,{x:_0x3eaffc,y:_0x3daee}=_0x3d6f50;return{'left':_0x341ef9,'top':_0x14d582,'width':_0x3eaffc-_0x341ef9,'height':_0x3daee-_0x14d582};}['_getScale'](){const _0x5bafb7=_0x661f9,{scaleX:_0x268eea,scaleY:_0x270f36}=this[_0x5bafb7(0x1bd)][_0x5bafb7(0x252)]();return Math[_0x5bafb7(0x3e1)](_0x268eea,_0x270f36);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x3ccafe,_0x2981a1,_0x2c7c74,_0x51fb41)=>{const _0x5db47c=_0x661f9;for(var _0x3d9ba5=_0x51fb41>0x1?void 0x0:_0x51fb41?Nt(_0x2981a1,_0x2c7c74):_0x2981a1,_0x3ec2e9=_0x3ccafe[_0x5db47c(0x3e2)]-0x1,_0x3d1ee9;_0x3ec2e9>=0x0;_0x3ec2e9--)(_0x3d1ee9=_0x3ccafe[_0x3ec2e9])&&(_0x3d9ba5=_0x3d1ee9(_0x3d9ba5)||_0x3d9ba5);return _0x3d9ba5;},q=(_0x32da7c,_0x548e41)=>(_0x26efe5,_0x3fb3df)=>_0x548e41(_0x26efe5,_0x3fb3df,_0x32da7c);let ge=class extends a['RxDisposable']{constructor(_0x727cf,_0x41b9f5,_0x112ddf,_0x261895,_0x484bb0){const _0xe31a3d=_0x661f9;super(),_(this,_0xe31a3d(0x186),[]),_(this,'_cursors',[]),(this[_0xe31a3d(0x188)]=_0x727cf,this[_0xe31a3d(0x419)]=_0x41b9f5,this[_0xe31a3d(0x1c0)]=_0x112ddf,this['_commandService']=_0x261895,this[_0xe31a3d(0x2f5)]=_0x484bb0,this[_0xe31a3d(0x3bc)]());}[_0x661f9(0x3bc)](){const _0x833706=_0x661f9,_0x1c84a7=this['_context'][_0x833706(0x416)],_0xc8c858=this[_0x833706(0x419)];this['disposeWithMe'](I[_0x833706(0x320)]([this[_0x833706(0x1c0)][_0x833706(0x25a)](_0x1c84a7),this[_0x833706(0x2f5)][_0x833706(0x34f)]])['pipe']($['map'](([_0x2b3fd6,_0x49ffd6])=>({'skeleton':_0xc8c858[_0x833706(0x1a6)](),'cursors':[..._0x2b3fd6['values']()]['flatMap'](_0x5cce29=>({..._0x5cce29,'color':this[_0x833706(0x2f5)][_0x833706(0x35e)](_0x5cce29[_0x833706(0x2ec)])}))})))[_0x833706(0x30b)](_0x388dcb=>{const _0x2c783d=_0x833706;if(this[_0x2c783d(0x2d9)](),_0x388dcb){const {skeleton:_0x2ef2b7,cursors:_0x834781}=_0x388dcb;this['_updateCollabCursors'](_0x2ef2b7,_0x834781);}})),this[_0x833706(0x21f)](),this[_0x833706(0x216)]();}[_0x661f9(0x1de)](_0x45bb0d,_0x4da0e2){const _0x488d38=_0x661f9,{scene:_0x1741f4,mainComponent:_0x566b7d}=this['_context'],_0x45b7bc=_0x4da0e2['map'](_0x153986=>new Ne(_0x153986,_0x1741f4,_0x45bb0d,_0x566b7d));this['_cursorShapes']=_0x45b7bc,this[_0x488d38(0x30e)]=_0x4da0e2;}[_0x661f9(0x3a5)](){const _0x5ab374=_0x661f9;this['_removeCollabCursors']();const {scene:_0x529396,mainComponent:_0x4c5149}=this[_0x5ab374(0x188)],_0x3b7dca=this[_0x5ab374(0x419)]['getSkeleton'](),_0x2f2b1f=this[_0x5ab374(0x30e)]['map'](_0x4183db=>new Ne(_0x4183db,_0x529396,_0x3b7dca,_0x4c5149));this[_0x5ab374(0x186)]=_0x2f2b1f;}['_removeCollabCursors'](){const _0x2e4b88=_0x661f9;this[_0x2e4b88(0x186)][_0x2e4b88(0x30f)](_0xe10c1d=>_0xe10c1d['dispose']()),this[_0x2e4b88(0x186)]=[];}[_0x661f9(0x216)](){const _0x363f1f=_0x661f9,_0x3074be=[T['SetDocZoomRatioOperation']['id']];this[_0x363f1f(0x37a)](this[_0x363f1f(0x3f5)]['onCommandExecuted'](_0x5efa05=>{const _0x35e36c=_0x363f1f;_0x3074be[_0x35e36c(0x327)](_0x5efa05['id'])&&_0x5efa05['params'][_0x35e36c(0x416)]===this['_context'][_0x35e36c(0x416)]&&this[_0x35e36c(0x3a5)]();}));}[_0x661f9(0x21f)](){const _0x249c0c=_0x661f9;this[_0x249c0c(0x37a)](a[_0x249c0c(0x249)](this[_0x249c0c(0x188)]['engine'][_0x249c0c(0x263)])[_0x249c0c(0x362)]($[_0x249c0c(0x1f2)](_0x450679=>_0x450679[_0x249c0c(0x429)]===C[_0x249c0c(0x1c8)][_0x249c0c(0x227)]),$[_0x249c0c(0x181)](0x10))[_0x249c0c(0x30b)](()=>{const _0x31eb63=_0x249c0c;this[_0x31eb63(0x3a5)]();}));}};ge=Ut([q(0x1,a['Inject'](W['DocSkeletonManagerService'])),q(0x2,a['Inject'](B)),q(0x3,a[_0x661f9(0x400)]),q(0x4,a['Inject'](a[_0x661f9(0x2ae)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C['Shape']{constructor(_0x4672de,_0x229e09){const _0x1ae865=_0x661f9;super(_0x4672de,_0x229e09),_(this,_0x1ae865(0x360)),_(this,_0x1ae865(0x257),!0x1),_(this,'_range'),_(this,_0x1ae865(0x24f),''),_(this,_0x1ae865(0x40b),_0x1ae865(0x405)),_(this,_0x1ae865(0x32f)),(_0x229e09&&this[_0x1ae865(0x41c)](_0x229e09),this[_0x1ae865(0x389)][_0x1ae865(0x212)](()=>this[_0x1ae865(0x41c)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x1ae865(0x41c)]({'hovered':!0x1})));}[_0x661f9(0x41c)](_0x4d6793){const _0x3e910e=_0x661f9;var _0xe33504,_0x74eaab,_0x5b2ea9,_0x3f7ddb,_0x3ae307,_0x4c9d9d;this[_0x3e910e(0x360)]=(_0xe33504=_0x4d6793[_0x3e910e(0x2ec)])!=null?_0xe33504:this[_0x3e910e(0x360)],this[_0x3e910e(0x257)]=(_0x74eaab=_0x4d6793[_0x3e910e(0x31b)])!=null?_0x74eaab:this[_0x3e910e(0x257)],this['_range']=(_0x5b2ea9=_0x4d6793['range'])!=null?_0x5b2ea9:this[_0x3e910e(0x350)],this[_0x3e910e(0x24f)]=(_0x3f7ddb=_0x4d6793[_0x3e910e(0x388)])!=null?_0x3f7ddb:this[_0x3e910e(0x24f)],this[_0x3e910e(0x40b)]=(_0x3ae307=_0x4d6793[_0x3e910e(0x193)])!=null?_0x3ae307:this['_labelPosition'],this[_0x3e910e(0x32f)]=(_0x4c9d9d=_0x4d6793[_0x3e910e(0x37c)])!=null?_0x4c9d9d:this[_0x3e910e(0x32f)],this[_0x3e910e(0x1bc)]({'width':_0x4d6793[_0x3e910e(0x2c4)],'height':_0x4d6793[_0x3e910e(0x2b1)]});}[_0x661f9(0x224)](_0x4e23c6){const _0x21452a=_0x661f9,{row:_0x227b71,column:_0x10f8e9}=_0x4e23c6;if(_0x227b71>=this[_0x21452a(0x350)][_0x21452a(0x321)]&&_0x227b71<=this[_0x21452a(0x350)][_0x21452a(0x3a2)]&&_0x10f8e9>=this['_range'][_0x21452a(0x2a4)]&&_0x10f8e9<=this[_0x21452a(0x350)][_0x21452a(0x17f)]){this[_0x21452a(0x41c)]({'hovered':!0x0});return;}this[_0x21452a(0x41c)]({'hovered':!0x1});}['triggerDblclick'](_0x252304){return!0x1;}[_0x661f9(0x38f)](_0x11060b){const _0xbbba57=_0x661f9;C[_0xbbba57(0x3b7)]['drawWith'](_0x11060b,{'width':this[_0xbbba57(0x2c4)],'height':this[_0xbbba57(0x2b1)],'strokeWidth':Mt,'stroke':this[_0xbbba57(0x360)],'evented':!0x1,'fill':this[_0xbbba57(0x32f)]}),this[_0xbbba57(0x257)]&&(_0x11060b[_0xbbba57(0x2a5)](),_0x11060b[_0xbbba57(0x19d)](0x1,0x0,0x0,0x1,this[_0xbbba57(0x2c4)],this[_0xbbba57(0x40b)]==='bottom'?0x0:-X),ie[_0xbbba57(0x414)](_0x11060b,{'text':this[_0xbbba57(0x24f)],'color':this['_color']}),_0x11060b[_0xbbba57(0x35d)]());}}var At=Object['getOwnPropertyDescriptor'],Pt=(_0x23f528,_0x43e323,_0x2adad6,_0x536074)=>{const _0x478c5e=_0x661f9;for(var _0x58f11b=_0x536074>0x1?void 0x0:_0x536074?At(_0x43e323,_0x2adad6):_0x43e323,_0x3d8300=_0x23f528[_0x478c5e(0x3e2)]-0x1,_0x2dc1e3;_0x3d8300>=0x0;_0x3d8300--)(_0x2dc1e3=_0x23f528[_0x3d8300])&&(_0x58f11b=_0x2dc1e3(_0x58f11b)||_0x58f11b);return _0x58f11b;},_e=(_0x1045f6,_0x1e3515)=>(_0xa04961,_0x3506d4)=>_0x1e3515(_0xa04961,_0x3506d4,_0x1045f6);const wt=0x1389;let ve=class extends a[_0x661f9(0x170)]{constructor(_0xdc9570,_0x5bb875,_0x482258,_0x5effab){const _0x753fff=_0x661f9;super(),_(this,_0x753fff(0x30e),new Set()),_(this,'_lastPointer',null),(this['_context']=_0xdc9570,this['_sheetSkeletonManagerService']=_0x5bb875,this[_0x753fff(0x1c0)]=_0x482258,this[_0x753fff(0x2f5)]=_0x5effab,this[_0x753fff(0x3bc)]());}['_init'](){const _0x54048c=_0x661f9;this['_sheetSkeletonManagerService'][_0x54048c(0x232)]['pipe']($[_0x54048c(0x3eb)](this[_0x54048c(0x326)]),$['switchMap'](_0x49af86=>{const _0x271615=_0x54048c;if(_0x49af86){const _0x38bb60=_0x49af86['sheetId'];return I[_0x271615(0x320)](this[_0x271615(0x1c0)][_0x271615(0x25a)](this[_0x271615(0x188)][_0x271615(0x416)]),this[_0x271615(0x2f5)]['currentTheme$'])[_0x271615(0x362)]($[_0x271615(0x38e)](([_0x17c48d,_0x1892bd])=>{const _0x48a731=_0x271615,_0x21c068=new Map();return _0x17c48d[_0x48a731(0x30f)]((_0x28de8e,_0x3997de)=>{const _0x550e21=_0x48a731;if(_0x28de8e['sheetID']===_0x38bb60){const _0x425de8={..._0x28de8e};_0x425de8[_0x550e21(0x2ec)]=this[_0x550e21(0x2f5)][_0x550e21(0x35e)](_0x28de8e[_0x550e21(0x2ec)]),_0x21c068[_0x550e21(0x406)](_0x3997de,_0x425de8);}}),{'skeleton':_0x49af86,'cursors':_0x21c068};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x54048c(0x30b)](({skeleton:_0x50c1fc,cursors:_0x27202e})=>{const _0x3c6991=_0x54048c;this[_0x3c6991(0x2d9)](),_0x50c1fc&&this['_updateCollabCursors'](_0x50c1fc,_0x27202e);}),this[_0x54048c(0x1f8)][_0x54048c(0x232)][_0x54048c(0x30b)](_0x214dca=>{const _0x37ce67=_0x54048c;if(_0x214dca==null)return;const {skeleton:_0x153397}=_0x214dca,{scene:_0x326dad}=this[_0x37ce67(0x188)];_0x326dad[_0x37ce67(0x3ab)][_0x37ce67(0x212)](a[_0x37ce67(0x3de)](_0x1852d0=>{const _0x29f627=_0x37ce67;var _0x5ef739,_0x20a537;const {offsetX:_0x6b9805,offsetY:_0x4f168c}=_0x1852d0,{x:_0x40c7a6,y:_0x48614a}=_0x326dad[_0x29f627(0x302)](C[_0x29f627(0x1ef)][_0x29f627(0x3e0)]([_0x6b9805,_0x4f168c])),{scaleX:_0x51a0cf,scaleY:_0x3951b0}=_0x326dad[_0x29f627(0x252)](),_0x35f188=_0x326dad[_0x29f627(0x1d4)](C[_0x29f627(0x313)][_0x29f627(0x21c)]),_0x5a4995=_0x326dad[_0x29f627(0x1f1)](C[_0x29f627(0x1ef)][_0x29f627(0x3e0)]([_0x40c7a6,_0x48614a]),_0x35f188),_0x55420c=_0x153397[_0x29f627(0x267)](_0x6b9805,_0x4f168c,_0x51a0cf,_0x3951b0,_0x5a4995);((_0x5ef739=this[_0x29f627(0x2ff)])==null?void 0x0:_0x5ef739[_0x29f627(0x30a)])===_0x55420c['column']&&((_0x20a537=this[_0x29f627(0x2ff)])==null?void 0x0:_0x20a537[_0x29f627(0x209)])===_0x55420c[_0x29f627(0x209)]||this[_0x29f627(0x30e)][_0x29f627(0x30f)](_0x35fe61=>{const _0x709ffe=_0x29f627;_0x35fe61[_0x709ffe(0x224)](_0x55420c);});},0x64));});}[_0x661f9(0x1de)](_0x5b472b,_0x4c4c6d){const _0x439281=_0x661f9;var _0x346e79;const _0x187649=(_0x346e79=this[_0x439281(0x1f8)]['getCurrent']())==null?void 0x0:_0x346e79[_0x439281(0x246)];if(!_0x187649)return;const _0x1668ca=this[_0x439281(0x1c5)]();if(!_0x1668ca)return;this['_cursors'][_0x439281(0x30f)](_0x49d3c6=>{const _0x55a8b9=_0x439281;_0x49d3c6[_0x55a8b9(0x328)]();});const {scene:_0x4d53b8}=_0x1668ca,_0x1f406b=yt(Array[_0x439281(0x19f)](_0x4c4c6d['values']()))[_0x439281(0x38e)](_0x515334=>{const _0x107d3e=_0x439281,{color:_0x41951c,range:_0x4d4ec7,name:_0x26ac8e,selection:_0x4540a5,sheetID:_0x519ad3}=_0x515334,{startColumn:_0x4f0e89,startRow:_0x448ce3,endColumn:_0xca8b79,endRow:_0x3a8234}=_0x4d4ec7,_0x5f26c8=z[_0x107d3e(0x272)](_0x448ce3,_0x4f0e89,_0x4d53b8,_0x187649),_0x3de4a2=z[_0x107d3e(0x272)](_0x3a8234,_0xca8b79,_0x4d53b8,_0x187649),{columnHeaderHeightAndMarginTop:_0x29bcbe}=_0x187649,{startX:_0x3d8439,startY:_0x27fcdc}=_0x5f26c8,{endX:_0x18ca9b,endY:_0x1fee6b}=_0x3de4a2,_0x4bb51b=_0x18ca9b-_0x3d8439,_0x141fdb=_0x1fee6b-_0x27fcdc,_0x165719={'labelPosition':_0x27fcdc-_0x29bcbe>=X?_0x107d3e(0x405):_0x107d3e(0x2c5),'sheetID':_0x519ad3,'range':_0x4d4ec7,'color':_0x41951c,'name':_0x26ac8e,'selection':_0x4540a5,'left':_0x3d8439,'top':_0x27fcdc,'width':_0x4bb51b,'height':_0x141fdb,'evented':!0x1,'zIndex':wt};return new Be(_0x26ac8e,_0x165719);});_0x4d53b8[_0x439281(0x430)](_0x1f406b,Lt),this['_cursors']=new Set(_0x1f406b);}[_0x661f9(0x2d9)](){const _0x397ff4=_0x661f9;var _0x45f6d4;(_0x45f6d4=this[_0x397ff4(0x30e)])==null||_0x45f6d4[_0x397ff4(0x30f)](_0x4c94e0=>_0x4c94e0['dispose']());}[_0x661f9(0x1c5)](){const _0xf3a814=_0x661f9;return z['getSheetObject'](this[_0xf3a814(0x188)][_0xf3a814(0x42a)],this[_0xf3a814(0x188)]);}};ve=Pt([_e(0x1,a[_0x661f9(0x2c2)](z[_0x661f9(0x40f)])),_e(0x2,a[_0x661f9(0x2c2)](B)),_e(0x3,a[_0x661f9(0x2c2)](a[_0x661f9(0x2ae)]))],ve);function yt(_0x557352){const _0x2783bd=_0x661f9,_0x8fb0df=new Map();return _0x557352[_0x2783bd(0x30f)](_0x30af35=>{const _0x35c0ea=_0x2783bd;if(_0x8fb0df['has'](_0x30af35[_0x35c0ea(0x20d)])){const _0x483008=_0x8fb0df[_0x35c0ea(0x2fa)](_0x30af35['selection']);_0x483008['name']+=',\x20'+_0x30af35[_0x35c0ea(0x388)];}else _0x8fb0df[_0x35c0ea(0x406)](_0x30af35[_0x35c0ea(0x20d)],_0x30af35);}),Array[_0x2783bd(0x19f)](_0x8fb0df[_0x2783bd(0x3ad)]());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x1af9ae,_0x2ff5d3,_0x1fce48,_0x31249e)=>{const _0x437497=_0x661f9;for(var _0xedab14=_0x31249e>0x1?void 0x0:_0x31249e?$t(_0x2ff5d3,_0x1fce48):_0x2ff5d3,_0x36952d=_0x1af9ae[_0x437497(0x3e2)]-0x1,_0x4bd682;_0x36952d>=0x0;_0x36952d--)(_0x4bd682=_0x1af9ae[_0x36952d])&&(_0xedab14=_0x4bd682(_0xedab14)||_0xedab14);return _0xedab14;},y=(_0x16dc60,_0x2fb74a)=>(_0x349bcf,_0x227e8d)=>_0x2fb74a(_0x349bcf,_0x227e8d,_0x16dc60);let J=class extends a[_0x661f9(0x26a)]{constructor(_0x51367d,_0x342076,_0x2077a8,_0x1a9d70,_0x44e492,_0x2a0c7f){const _0x3cce2a=_0x661f9;super(),this[_0x3cce2a(0x1e2)]=_0x51367d,this['_localCacheService']=_0x342076,this['_collaborationUIEventService']=_0x2077a8,this[_0x3cce2a(0x32a)]=_0x1a9d70,this[_0x3cce2a(0x1fc)]=_0x44e492,this[_0x3cce2a(0x2ad)]=_0x2a0c7f,this['_setupBeforeClosingHandler'](),this[_0x3cce2a(0x3c6)]();}[_0x661f9(0x33a)](){const _0x2e25e7=_0x661f9;this['disposeWithMe'](this['_beforeCloseService'][_0x2e25e7(0x199)](()=>{const _0x5064f8=_0x2e25e7;if(this[_0x5064f8(0x3d3)][_0x5064f8(0x20e)][_0x5064f8(0x343)])return this['_localeService']['t'](_0x5064f8(0x2dc));}));}['_initEvent'](){const _0x182fa7=_0x661f9;this['disposeWithMe'](this[_0x182fa7(0x205)][_0x182fa7(0x283)][_0x182fa7(0x30b)](_0x275a73=>{const _0x28401b=_0x182fa7;_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x24a)]&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p[_0x28401b(0x278)][_0x28401b(0x3bd)],'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x1ba))}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x35b)]&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p[_0x28401b(0x278)][_0x28401b(0x3bd)],'content':this[_0x28401b(0x2ad)]['t']('collaboration.closeRoom')}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x26e)]&&this[_0x28401b(0x1fc)][_0x28401b(0x335)]({'title':this['_localeService']['t'](_0x28401b(0x237)),'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x3a7)),'type':_0x28401b(0x1c6),'duration':0x0}),_0x275a73['id']===u['CollaborationUIEventId'][_0x28401b(0x41e)]&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p[_0x28401b(0x278)][_0x28401b(0x1cb)],'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x254))+'('+_0x275a73[_0x28401b(0x315)]+')'}),_0x275a73['id']===u[_0x28401b(0x2f1)]['JOIN_ROOM_FAILED']&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p[_0x28401b(0x278)][_0x28401b(0x3bd)],'content':this[_0x28401b(0x2ad)]['t'](_0x275a73[_0x28401b(0x315)]||'')}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x2bb)]&&this[_0x28401b(0x32a)]['show']({'type':p[_0x28401b(0x278)]['Warning'],'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x2a9))}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x3a6)]&&this['_messageService']['show']({'type':p[_0x28401b(0x278)]['Error'],'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x3da))}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x1d3)]&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p['MessageType']['Error'],'content':this[_0x28401b(0x2ad)]['t']('session.collaboration-timeout')});}));}};J=xt([y(0x0,O[_0x661f9(0x1b7)]),y(0x1,u[_0x661f9(0x219)]),y(0x2,a[_0x661f9(0x2c2)](u[_0x661f9(0x3d1)])),y(0x3,O['IMessageService']),y(0x4,O[_0x661f9(0x345)]),y(0x5,a['Inject'](a[_0x661f9(0x413)]))],J);const Bt=_0x661f9(0x2ea),Ue={};var Ft=Object[_0x661f9(0x27b)],kt=(_0xec17ac,_0x5bc8a1,_0x195bab,_0x153113)=>{const _0x370ba3=_0x661f9;for(var _0x3af605=_0x153113>0x1?void 0x0:_0x153113?Ft(_0x5bc8a1,_0x195bab):_0x5bc8a1,_0x3affd0=_0xec17ac[_0x370ba3(0x3e2)]-0x1,_0xc14f91;_0x3affd0>=0x0;_0x3affd0--)(_0xc14f91=_0xec17ac[_0x3affd0])&&(_0x3af605=_0xc14f91(_0x3af605)||_0x3af605);return _0x3af605;},Le=(_0x5f5442,_0x2d398a)=>(_0x2c3156,_0x4c3cb6)=>_0x2d398a(_0x2c3156,_0x4c3cb6,_0x5f5442);let Z=class{constructor(_0x253efe,_0x42e2a2){const _0x36c2bd=_0x661f9;this[_0x36c2bd(0x184)]=_0x253efe,this[_0x36c2bd(0x2fe)]=_0x42e2a2;}['transformIMECache'](_0x45f23a){const _0x4866ff=_0x661f9;this['_transformUndoRedoStack'](_0x45f23a),this[_0x4866ff(0x1ac)](_0x45f23a);}['transformRemoteChangeset'](_0x4ecef7){const _0x3abbb3=_0x661f9,{unitID:_0x4b55c9}=_0x4ecef7,_0x11a2a3=this[_0x3abbb3(0x2fe)][_0x3abbb3(0x23a)](_0x4b55c9)[_0x3abbb3(0x171)](T[_0x3abbb3(0x258)]),{redoCache:_0x4000d5}=_0x11a2a3['getUndoRedoMutationParamsCache']();if(_0x4000d5[_0x3abbb3(0x3e2)]===0x0)return _0x4ecef7;let _0x368b80=a[_0x3abbb3(0x300)][_0x3abbb3(0x39c)](_0x4ecef7['mutations'][0x0]);for(let _0x25cfc3=0x0;_0x25cfc3<_0x4000d5[_0x3abbb3(0x3e2)];_0x25cfc3++){const _0x47a0bf={'id':_0x3abbb3(0x200),'params':{..._0x4000d5[_0x25cfc3]}},_0x4128fe=this['_transformService'][_0x3abbb3(0x3f6)](_0x368b80,_0x47a0bf,!0x1);if(v[_0x3abbb3(0x19a)](_0x4128fe))throw _0x4128fe['error'];_0x368b80=_0x4128fe[_0x3abbb3(0x250)];}return{...a['Tools'][_0x3abbb3(0x39c)](_0x4ecef7),'mutations':[_0x368b80]};}[_0x661f9(0x2a8)](_0x5e456e){const _0xe6e6b4=_0x661f9,{unitID:_0x499e04}=_0x5e456e,_0x52255c=this[_0xe6e6b4(0x2fe)]['getRenderById'](_0x499e04)[_0xe6e6b4(0x171)](T[_0xe6e6b4(0x258)]),{undoCache:_0xadfb9b,redoCache:_0xe7c80b}=_0x52255c[_0xe6e6b4(0x341)]();if(_0xadfb9b[_0xe6e6b4(0x3e2)]===0x0||_0xe7c80b[_0xe6e6b4(0x3e2)]===0x0)return;const _0x46914e=[],_0x5a7336=[];let _0x3e8298=a[_0xe6e6b4(0x300)][_0xe6e6b4(0x39c)](_0x5e456e[_0xe6e6b4(0x177)][0x0]),_0x17a1d0=a[_0xe6e6b4(0x300)]['deepClone'](_0x5e456e[_0xe6e6b4(0x177)][0x0]);for(let _0x11bd6c=_0xadfb9b[_0xe6e6b4(0x3e2)]-0x1;_0x11bd6c>=0x0;_0x11bd6c--){const _0x3bc3ec={'id':'doc.mutation.rich-text-editing','params':{..._0xadfb9b[_0x11bd6c]}},_0x1704d6={'id':'doc.mutation.rich-text-editing','params':{..._0xe7c80b[_0x11bd6c]}},_0x5e4dd1=this[_0xe6e6b4(0x184)][_0xe6e6b4(0x3f6)](_0x3e8298,_0x3bc3ec,!0x1),_0x18f30a=this[_0xe6e6b4(0x184)][_0xe6e6b4(0x3f6)](_0x17a1d0,_0x1704d6,!0x1);if(v[_0xe6e6b4(0x19a)](_0x5e4dd1))throw _0x5e4dd1[_0xe6e6b4(0x1c6)];if(v[_0xe6e6b4(0x19a)](_0x18f30a))throw _0x18f30a['error'];_0x46914e[_0xe6e6b4(0x18e)](_0x5e4dd1[_0xe6e6b4(0x3ce)][_0xe6e6b4(0x2e4)]),_0x5a7336['unshift'](_0x18f30a['m2Prime'][_0xe6e6b4(0x2e4)]),_0x3e8298=_0x5e4dd1[_0xe6e6b4(0x250)],_0x17a1d0=_0x18f30a[_0xe6e6b4(0x250)];}_0x52255c[_0xe6e6b4(0x27a)]({'undoCache':_0x46914e,'redoCache':_0x5a7336});}['_transformPreviousActiveRange'](_0x5197e9){const _0x4c3b64=_0x661f9,{unitID:_0x1ca365}=_0x5197e9,_0x17e96f=this[_0x4c3b64(0x2fe)][_0x4c3b64(0x23a)](_0x1ca365)[_0x4c3b64(0x171)](T[_0x4c3b64(0x258)]),_0x4655b6=_0x17e96f[_0x4c3b64(0x357)]();if(_0x4655b6==null)return;const _0x30920c=[{'id':_0x4c3b64(0x200),'params':{'unitId':_0x5197e9[_0x4c3b64(0x1af)],'actions':null,'textRanges':[_0x4655b6]}}],_0x552e6e=this[_0x4c3b64(0x184)]['transformMutationsWithChangeset'](_0x5197e9,_0x30920c);if(!v[_0x4c3b64(0x1c2)](_0x552e6e))throw _0x552e6e[_0x4c3b64(0x1c6)];const _0x264ae2=_0x552e6e[_0x4c3b64(0x3ce)][0x0][_0x4c3b64(0x2e4)][_0x4c3b64(0x1b3)];Array[_0x4c3b64(0x18f)](_0x264ae2)&&_0x264ae2[_0x4c3b64(0x3e2)]&&_0x17e96f['setActiveRange'](_0x264ae2[0x0]);}};Z=kt([Le(0x0,v[_0x661f9(0x351)]),Le(0x1,C[_0x661f9(0x253)])],Z);var jt=Object[_0x661f9(0x27b)],Yt=(_0x5771f4,_0x1e7c93,_0x2f9c1e,_0x514f67)=>{for(var _0x4ea7c7=_0x514f67>0x1?void 0x0:_0x514f67?jt(_0x1e7c93,_0x2f9c1e):_0x1e7c93,_0x20d290=_0x5771f4['length']-0x1,_0x4e6dbf;_0x20d290>=0x0;_0x20d290--)(_0x4e6dbf=_0x5771f4[_0x20d290])&&(_0x4ea7c7=_0x4e6dbf(_0x4ea7c7)||_0x4ea7c7);return _0x4ea7c7;},he=(_0x58de33,_0x167245)=>(_0x4949f8,_0x58f6d3)=>_0x167245(_0x4949f8,_0x58f6d3,_0x58de33);let Q=class{constructor(_0x5a53ed,_0x3372e7,_0x1978f7){const _0x4158a7=_0x661f9;this[_0x4158a7(0x352)]=_0x5a53ed,this['_transformService']=_0x3372e7,this[_0x4158a7(0x3e6)]=_0x1978f7;}[_0x661f9(0x1b4)](_0x281e93){this['_transformHistoryAndStateStack'](_0x281e93);}[_0x661f9(0x182)](_0x16e629){const _0x2946cd=_0x661f9,{unitID:_0x330690}=_0x16e629,{collaboration:_0x2cf09c}=this[_0x2946cd(0x3e6)]['getStateCache'](_0x330690);if(_0x2cf09c[_0x2946cd(0x3e2)]===0x0)return _0x16e629;let _0x41c832=a[_0x2946cd(0x300)][_0x2946cd(0x39c)](_0x16e629[_0x2946cd(0x177)][0x0]);for(let _0x254876=0x0;_0x254876<_0x2cf09c[_0x2946cd(0x3e2)];_0x254876++){const _0x49ba06={'id':_0x2946cd(0x200),'params':{'unitId':_0x2cf09c[_0x254876][_0x2946cd(0x416)],..._0x2cf09c[_0x254876]['redoState']}},_0x53ac05=this[_0x2946cd(0x184)][_0x2946cd(0x3f6)](_0x41c832,_0x49ba06,!0x1);if(v[_0x2946cd(0x19a)](_0x53ac05))throw _0x53ac05[_0x2946cd(0x1c6)];_0x41c832=_0x53ac05[_0x2946cd(0x250)];}return{...a[_0x2946cd(0x300)][_0x2946cd(0x39c)](_0x16e629),'mutations':[_0x41c832]};}['_transformHistoryAndStateStack'](_0x2faf10){const _0x3f19b8=_0x661f9,{unitID:_0x4105a9}=_0x2faf10,{history:_0xd4df68,collaboration:_0x6f6490}=this[_0x3f19b8(0x3e6)][_0x3f19b8(0x3f0)](_0x4105a9);if(_0xd4df68['length']===0x0&&_0x6f6490[_0x3f19b8(0x3e2)]===0x0)return;const _0x288574=[],_0x1b9edf=[];let _0x560e0f=a[_0x3f19b8(0x300)][_0x3f19b8(0x39c)](_0x2faf10[_0x3f19b8(0x177)][0x0]),_0x5b8bda=a['Tools']['deepClone'](_0x2faf10[_0x3f19b8(0x177)][0x0]);for(let _0x276041=_0xd4df68[_0x3f19b8(0x3e2)]-0x1;_0x276041>=0x0;_0x276041--){const _0x41aa80={'id':_0x3f19b8(0x200),'params':{'unitId':_0xd4df68[_0x276041][_0x3f19b8(0x416)],..._0xd4df68[_0x276041][_0x3f19b8(0x1f0)]}},_0x13a980={'id':_0x3f19b8(0x200),'params':{'unitId':_0xd4df68[_0x276041][_0x3f19b8(0x416)],..._0xd4df68[_0x276041][_0x3f19b8(0x1e5)]}},_0xcaf20e=this[_0x3f19b8(0x184)][_0x3f19b8(0x3f6)](_0x560e0f,_0x41aa80,!0x1),_0x1e4127=this[_0x3f19b8(0x184)][_0x3f19b8(0x3f6)](_0x5b8bda,_0x13a980,!0x1);if(v[_0x3f19b8(0x19a)](_0xcaf20e))throw _0xcaf20e[_0x3f19b8(0x1c6)];if(v[_0x3f19b8(0x19a)](_0x1e4127))throw _0x1e4127[_0x3f19b8(0x1c6)];_0x288574[_0x3f19b8(0x18e)]({..._0xd4df68[_0x276041],'undoState':_0xcaf20e['m2Prime'][_0x3f19b8(0x2e4)],'redoState':_0x1e4127[_0x3f19b8(0x3ce)][_0x3f19b8(0x2e4)]}),_0x560e0f=_0xcaf20e[_0x3f19b8(0x250)],_0x5b8bda=_0x1e4127[_0x3f19b8(0x250)];}_0x560e0f=a['Tools'][_0x3f19b8(0x39c)](_0x2faf10['mutations'][0x0]),_0x5b8bda=a['Tools']['deepClone'](_0x2faf10['mutations'][0x0]);for(let _0x586491=_0x6f6490[_0x3f19b8(0x3e2)]-0x1;_0x586491>=0x0;_0x586491--){const _0x3ae036={'id':_0x3f19b8(0x200),'params':{'unitId':_0x6f6490[_0x586491][_0x3f19b8(0x416)],..._0x6f6490[_0x586491][_0x3f19b8(0x1f0)]}},_0xc8ec5b={'id':_0x3f19b8(0x200),'params':{'unitId':_0x6f6490[_0x586491][_0x3f19b8(0x416)],..._0x6f6490[_0x586491][_0x3f19b8(0x1e5)]}},_0x272664=this['_transformService'][_0x3f19b8(0x3f6)](_0x560e0f,_0x3ae036,!0x1),_0x5b6ac6=this[_0x3f19b8(0x184)][_0x3f19b8(0x3f6)](_0x5b8bda,_0xc8ec5b,!0x1);if(v[_0x3f19b8(0x19a)](_0x272664))throw _0x272664[_0x3f19b8(0x1c6)];if(v[_0x3f19b8(0x19a)](_0x5b6ac6))throw _0x5b6ac6[_0x3f19b8(0x1c6)];_0x1b9edf['unshift']({..._0x6f6490[_0x586491],'undoState':_0x272664[_0x3f19b8(0x3ce)][_0x3f19b8(0x2e4)],'redoState':_0x5b6ac6['m2Prime']['params']}),_0x560e0f=_0x272664[_0x3f19b8(0x250)],_0x5b8bda=_0x5b6ac6[_0x3f19b8(0x250)];}this[_0x3f19b8(0x3e6)][_0x3f19b8(0x344)](_0x4105a9,{'history':_0x288574,'collaboration':_0x1b9edf});}};Q=Yt([he(0x0,a['Inject'](a['Injector'])),he(0x1,v[_0x661f9(0x351)]),he(0x2,a[_0x661f9(0x2c2)](T[_0x661f9(0x2ef)]))],Q);var Ht=Object[_0x661f9(0x27b)],Wt=(_0x524cd4,_0x2c4f7b,_0x1dbf6f,_0x371224)=>{const _0x3c77c1=_0x661f9;for(var _0x9decd9=_0x371224>0x1?void 0x0:_0x371224?Ht(_0x2c4f7b,_0x1dbf6f):_0x2c4f7b,_0x2e455d=_0x524cd4[_0x3c77c1(0x3e2)]-0x1,_0x1b9e97;_0x2e455d>=0x0;_0x2e455d--)(_0x1b9e97=_0x524cd4[_0x2e455d])&&(_0x9decd9=_0x1b9e97(_0x9decd9)||_0x9decd9);return _0x9decd9;},Me=(_0x165fb5,_0xb208a6)=>(_0xd28edd,_0x2173a2)=>_0xb208a6(_0xd28edd,_0x2173a2,_0x165fb5);let ee=class{constructor(_0x1894df,_0x5e6660){const _0x3cbfe0=_0x661f9;this[_0x3cbfe0(0x352)]=_0x1894df,this['_transformService']=_0x5e6660;}[_0x661f9(0x1ce)](_0x2c4b44){const _0x3d71ed=_0x661f9;var _0x2b8d4c;const _0x28d8f9=this['_injector'][_0x3d71ed(0x2fa)](W[_0x3d71ed(0x3db)]),_0x55327f=(_0x2b8d4c=_0x28d8f9['getDocRanges']())!=null?_0x2b8d4c:[];if(_0x55327f['length']===0x0)return;const _0x2b03ac=_0x2c4b44[_0x3d71ed(0x1af)],_0x3cdeaa=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b03ac,'actions':null,'textRanges':_0x55327f}}],_0x33d7f9=this[_0x3d71ed(0x184)]['transformMutationsWithChangeset'](_0x2c4b44,_0x3cdeaa);if(!v[_0x3d71ed(0x1c2)](_0x33d7f9))throw _0x33d7f9[_0x3d71ed(0x1c6)];const _0xfee209=_0x33d7f9[_0x3d71ed(0x3ce)][0x0][_0x3d71ed(0x2e4)][_0x3d71ed(0x1b3)];Array[_0x3d71ed(0x18f)](_0xfee209)&&_0xfee209['length']&&_0x28d8f9[_0x3d71ed(0x2d7)](_0xfee209,{'unitId':_0x2b03ac,'subUnitId':_0x2b03ac},!0x1);}};ee=Wt([Me(0x0,a[_0x661f9(0x2c2)](a[_0x661f9(0x2f8)])),Me(0x1,v[_0x661f9(0x351)])],ee);var Vt=Object[_0x661f9(0x27b)],Gt=(_0x16e14f,_0x522589,_0x5be6a9,_0x19605e)=>{for(var _0x1d15a6=_0x19605e>0x1?void 0x0:_0x19605e?Vt(_0x522589,_0x5be6a9):_0x522589,_0x399f48=_0x16e14f['length']-0x1,_0x20a3b7;_0x399f48>=0x0;_0x399f48--)(_0x20a3b7=_0x16e14f[_0x399f48])&&(_0x1d15a6=_0x20a3b7(_0x1d15a6)||_0x1d15a6);return _0x1d15a6;},N=(_0x371eae,_0x3d42be)=>(_0x57931c,_0x364d32)=>_0x3d42be(_0x57931c,_0x364d32,_0x371eae);let te=class extends a[_0x661f9(0x26a)]{constructor(_0x24d631,_0x3b1ee4,_0x4f47af,_0x591489,_0x133773,_0x3ec2de,_0x2fcd81,_0x17bb06){const _0xb36fa0=_0x661f9;super(),_(this,_0xb36fa0(0x2b4),new I[(_0xb36fa0(0x175))](u[_0xb36fa0(0x395)][_0xb36fa0(0x243)])),(this[_0xb36fa0(0x3e6)]=_0x24d631,this[_0xb36fa0(0x21e)]=_0x3b1ee4,this[_0xb36fa0(0x3f8)]=_0x4f47af,this['_docTransformStateCacheService']=_0x591489,this['_docTransformSelectionsService']=_0x133773,this[_0xb36fa0(0x2aa)]=_0x3ec2de,this[_0xb36fa0(0x32a)]=_0x2fcd81,this[_0xb36fa0(0x2ad)]=_0x17bb06,this[_0xb36fa0(0x392)]());}[_0x661f9(0x392)](){const _0x50d986=_0x661f9;this['disposeWithMe'](this[_0x50d986(0x21e)][_0x50d986(0x294)][_0x50d986(0x30b)](_0x14d1a3=>{const _0x3698ea=_0x50d986,_0x3197e9=this[_0x3698ea(0x3e6)][_0x3698ea(0x394)][_0x3698ea(0x30b)](_0x14d745=>{const _0xd752c5=_0x3698ea;if(_0x14d745==null)return;const {unitId:_0xa48556,redoState:_0x418caa,commandId:_0x31ad71}=_0x14d745;if(_0xa48556!==_0x14d1a3['unitID'])return;const _0x12fde6={'id':_0x31ad71,'type':a[_0xd752c5(0x384)][_0xd752c5(0x268)],'params':{'unitId':_0xa48556,'actions':_0x418caa[_0xd752c5(0x1ae)],'textRanges':null}};_0x14d1a3[_0xd752c5(0x2a1)](_0x12fde6);});if(_0x14d1a3[_0x3698ea(0x37a)](_0x3197e9),_0x14d1a3 instanceof u['DocCollaborationEntity']){const _0x3c4eba={'onTransformIME':_0x20e2aa=>this[_0x3698ea(0x3f8)][_0x3698ea(0x428)](_0x20e2aa),'onTransformState':_0x11e4a4=>this[_0x3698ea(0x1c9)][_0x3698ea(0x1b4)](_0x11e4a4),'onTransformSelections':_0x3dc624=>this[_0x3698ea(0x2e6)]['transformSelections'](_0x3dc624),'onSyncEditingCollabCursor':_0x45e04c=>this[_0x3698ea(0x2aa)][_0x3698ea(0x21b)](_0x45e04c),'onTransformRemoteChangesetByIMECache':_0x777e97=>this[_0x3698ea(0x3f8)][_0x3698ea(0x182)](_0x777e97),'onTransformRemoteChangesetByStateCache':_0x978282=>this['_docTransformStateCacheService'][_0x3698ea(0x182)](_0x978282)};_0x14d1a3['addHandlerCallback'](_0x3c4eba);}}));}};te=Gt([N(0x0,a[_0x661f9(0x2c2)](T[_0x661f9(0x2ef)])),N(0x1,a[_0x661f9(0x2c2)](u[_0x661f9(0x23b)])),N(0x2,a[_0x661f9(0x2c2)](Z)),N(0x3,a[_0x661f9(0x2c2)](Q)),N(0x4,a[_0x661f9(0x2c2)](ee)),N(0x5,a[_0x661f9(0x2c2)](Oe)),N(0x6,O['IMessageService']),N(0x7,a[_0x661f9(0x2c2)](a[_0x661f9(0x413)]))],te);var V=(_0x139da5=>(_0x139da5[_0x139da5['UNDEFINED']=0x0]=_0x661f9(0x245),_0x139da5[_0x139da5['OK']=0x1]='OK',_0x139da5[_0x139da5[_0x661f9(0x39a)]=0x2]=_0x661f9(0x39a),_0x139da5[_0x139da5[_0x661f9(0x26e)]=0x3]=_0x661f9(0x26e),_0x139da5[_0x139da5[_0x661f9(0x3d4)]=0x4]='NOT_FOUND',_0x139da5[_0x139da5[_0x661f9(0x379)]=0x5]=_0x661f9(0x379),_0x139da5[_0x139da5[_0x661f9(0x3b5)]=0x6]=_0x661f9(0x3b5),_0x139da5[_0x139da5[_0x661f9(0x1a3)]=0x7]=_0x661f9(0x1a3),_0x139da5[_0x139da5[_0x661f9(0x1e7)]=0x8]='TOO_MANY_REQUESTS',_0x139da5[_0x139da5[_0x661f9(0x2d3)]=0x9]=_0x661f9(0x2d3),_0x139da5[_0x139da5[_0x661f9(0x34a)]=0xa]=_0x661f9(0x34a),_0x139da5[_0x139da5[_0x661f9(0x407)]=0xb]=_0x661f9(0x407),_0x139da5[_0x139da5[_0x661f9(0x2d8)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x139da5[_0x139da5[_0x661f9(0x412)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x139da5[_0x139da5[_0x661f9(0x1d6)]=0xe]=_0x661f9(0x1d6),_0x139da5[_0x139da5[_0x661f9(0x37b)]=0xf]=_0x661f9(0x37b),_0x139da5[_0x139da5[_0x661f9(0x319)]=0x10]=_0x661f9(0x319),_0x139da5[_0x139da5[_0x661f9(0x2ab)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x139da5[_0x139da5['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x139da5[_0x139da5[_0x661f9(0x2b0)]=0xc9]=_0x661f9(0x2b0),_0x139da5[_0x139da5[_0x661f9(0x269)]=0xca]=_0x661f9(0x269),_0x139da5[_0x139da5['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x661f9(0x242),_0x139da5[_0x139da5[_0x661f9(0x1f4)]=0x1771]=_0x661f9(0x1f4),_0x139da5[_0x139da5[_0x661f9(0x3cd)]=0x1772]=_0x661f9(0x3cd),_0x139da5[_0x139da5[_0x661f9(0x3c1)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x139da5[_0x139da5[_0x661f9(0x22b)]=0x1b59]=_0x661f9(0x22b),_0x139da5[_0x139da5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x661f9(0x2fb),_0x139da5[_0x139da5[_0x661f9(0x408)]=0x1b5b]=_0x661f9(0x408),_0x139da5[_0x139da5[_0x661f9(0x421)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x139da5[_0x139da5[_0x661f9(0x40a)]=0x1b5d]=_0x661f9(0x40a),_0x139da5[_0x139da5[_0x661f9(0x3d5)]=0x1f41]=_0x661f9(0x3d5),_0x139da5[_0x139da5[_0x661f9(0x382)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x139da5[_0x139da5[_0x661f9(0x1cc)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x139da5[_0x139da5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x661f9(0x2b8),_0x139da5[_0x139da5[_0x661f9(0x3d8)]=0x232c]=_0x661f9(0x3d8),_0x139da5[_0x139da5[_0x661f9(0x3ac)]=0x232d]=_0x661f9(0x3ac),_0x139da5[_0x139da5['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x661f9(0x279),_0x139da5[_0x139da5['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x661f9(0x3c3),_0x139da5[_0x139da5[_0x661f9(0x3d7)]=0x2713]=_0x661f9(0x3d7),_0x139da5[_0x139da5[_0x661f9(0x1a2)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x139da5[_0x139da5['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x139da5[_0x139da5[_0x661f9(0x3ff)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x139da5[_0x139da5[_0x661f9(0x2e2)]=0x271c]=_0x661f9(0x2e2),_0x139da5[_0x139da5[_0x661f9(0x36e)]=0x271d]=_0x661f9(0x36e),_0x139da5[_0x139da5[_0x661f9(0x23e)]=0x271e]=_0x661f9(0x23e),_0x139da5[_0x139da5[_0x661f9(0x247)]=0x271f]=_0x661f9(0x247),_0x139da5[_0x139da5[_0x661f9(0x2dd)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x139da5[_0x139da5['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x661f9(0x276),_0x139da5[_0x139da5[_0x661f9(0x1b8)]=0x2ee1]=_0x661f9(0x1b8),_0x139da5[_0x139da5['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x139da5[_0x139da5[_0x661f9(0x1c1)]=0x2ee3]=_0x661f9(0x1c1),_0x139da5[_0x139da5[_0x661f9(0x27d)]=0x2ee4]=_0x661f9(0x27d),_0x139da5[_0x139da5[_0x661f9(0x2e1)]=0x2ee5]=_0x661f9(0x2e1),_0x139da5[_0x139da5[_0x661f9(0x1be)]=0x32c9]=_0x661f9(0x1be),_0x139da5[_0x139da5['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x661f9(0x221),_0x139da5[_0x139da5[_0x661f9(0x371)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x139da5[_0x139da5[_0x661f9(0x297)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x139da5[_0x139da5[_0x661f9(0x3dd)]=0x36b2]=_0x661f9(0x3dd),_0x139da5[_0x139da5['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x661f9(0x410),_0x139da5[_0x139da5[_0x661f9(0x264)]=0x36b4]=_0x661f9(0x264),_0x139da5[_0x139da5['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x139da5[_0x139da5['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x661f9(0x404),_0x139da5[_0x139da5[_0x661f9(0x367)]=0x3717]=_0x661f9(0x367),_0x139da5[_0x139da5['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x661f9(0x369),_0x139da5[_0x139da5['REDEMPTION_INVALID_CODE']=0x3a99]=_0x661f9(0x3bf),_0x139da5[_0x139da5['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x661f9(0x415),_0x139da5[_0x139da5[_0x661f9(0x2ba)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x139da5[_0x139da5[_0x661f9(0x295)]=0x3a9c]=_0x661f9(0x295),_0x139da5[_0x139da5['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x139da5[_0x139da5[_0x661f9(0x28d)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x139da5[_0x139da5['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x661f9(0x1aa),_0x139da5[_0x139da5['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x139da5[_0x139da5[_0x661f9(0x365)]=-0x1]=_0x661f9(0x365),_0x139da5))(V||{});function Xt(_0x40b752){const _0x194718=_0x661f9;var _0x19cc9d,_0x30149a;const _0x20037d=(_0x19cc9d=_0x40b752[_0x194718(0x34e)])==null?void 0x0:_0x19cc9d['stage'],_0x294d2a=((_0x30149a=_0x40b752[_0x194718(0x34e)])==null?void 0x0:_0x30149a[_0x194718(0x274)])||0x0;return _0x20037d===x[_0x194718(0x1b0)][_0x194718(0x3b1)]&&_0x294d2a>0x0;}function Kt(_0xdb746f){const _0x3df804=_0x661f9;return _0xdb746f[_0x3df804(0x273)]===x[_0x3df804(0x1cd)][_0x3df804(0x386)];}var qt=Object[_0x661f9(0x27b)],zt=(_0x3aefc4,_0x3cf52b,_0x2ba465,_0x4ccc20)=>{const _0x363d54=_0x661f9;for(var _0x2e4f10=_0x4ccc20>0x1?void 0x0:_0x4ccc20?qt(_0x3cf52b,_0x2ba465):_0x3cf52b,_0x2cf0e5=_0x3aefc4[_0x363d54(0x3e2)]-0x1,_0x3621e3;_0x2cf0e5>=0x0;_0x2cf0e5--)(_0x3621e3=_0x3aefc4[_0x2cf0e5])&&(_0x2e4f10=_0x3621e3(_0x2e4f10)||_0x2e4f10);return _0x2e4f10;},L=(_0x5b5738,_0x51ea48)=>(_0x425044,_0x745f27)=>_0x51ea48(_0x425044,_0x745f27,_0x5b5738);const Jt=_0x661f9(0x322),Zt='/universer-api/license/formula/limit/start',Qt=_0x661f9(0x18c);let se=class extends a['Disposable']{constructor(_0x3690ef,_0x160593,_0x3cd582,_0x2f0ecf,_0x1dfb69,_0x363d63,_0x1f2da0){const _0x4231c7=_0x661f9;super(),_(this,_0x4231c7(0x1e9),null),_(this,_0x4231c7(0x3cb),0x0),_(this,'_currentUsage',0x0),_(this,_0x4231c7(0x348),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x4231c7(0x32a)]=_0x3690ef,this[_0x4231c7(0x3f5)]=_0x160593,this['_configService']=_0x3cd582,this[_0x4231c7(0x192)]=_0x2f0ecf,this['_univerInstanceService']=_0x1dfb69,this[_0x4231c7(0x25f)]=_0x363d63,this[_0x4231c7(0x2ad)]=_0x1f2da0,this[_0x4231c7(0x178)]());}[_0x661f9(0x178)](){const _0x1efbfa=_0x661f9;this['disposeWithMe'](this['_commandService'][_0x1efbfa(0x25e)]((_0x483744,_0x358e18)=>{const _0x5263bd=_0x1efbfa;var _0x1458c6;if(_0x483744['id']!==x[_0x5263bd(0x2b2)]['id'])return;const _0x1751b4=_0x483744[_0x5263bd(0x2e4)];if(!this[_0x5263bd(0x3b8)]((_0x1458c6=_0x1751b4[_0x5263bd(0x2fc)])!=null?_0x1458c6:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x483744,_0x358e18),this[_0x5263bd(0x355)](),new a[(_0x5263bd(0x325))]();})),this[_0x1efbfa(0x37a)](this[_0x1efbfa(0x3f5)][_0x1efbfa(0x28a)]((_0xc24fb5,_0x555baf)=>{const _0x3a05a7=_0x1efbfa;if(_0xc24fb5['id']!==x[_0x3a05a7(0x411)]['id'])return;const _0x383af5=_0xc24fb5[_0x3a05a7(0x2e4)];if(Xt(_0x383af5)){const _0x3cac60=a[_0x3a05a7(0x23d)]();this['_taskIds'][_0x3a05a7(0x28f)](_0x3cac60),this['_startCalculationLimit'](_0x3cac60);}else{if(Kt(_0x383af5)&&this[_0x3a05a7(0x348)][_0x3a05a7(0x3e2)]>0x0){const _0x2c3905=this[_0x3a05a7(0x348)][_0x3a05a7(0x2d4)]();this[_0x3a05a7(0x3bb)](_0x2c3905);}}}));}[_0x661f9(0x1ff)](){const _0x39641b=_0x661f9;super[_0x39641b(0x1ff)](),this[_0x39641b(0x240)](),this[_0x39641b(0x348)]=[],this[_0x39641b(0x277)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x39641b(0x17e)]=0x0;}async[_0x661f9(0x37f)](_0x3d700d,_0x477c89){const _0x1a649f=_0x661f9;for(let _0x4d3c5a=0x0;_0x4d3c5a<0x1e;_0x4d3c5a++)try{if(await this[_0x1a649f(0x378)](),this['_checkCalculationAvailable']()){this[_0x1a649f(0x36f)](_0x3d700d,_0x477c89),this[_0x1a649f(0x32a)][_0x1a649f(0x335)]({'content':this['_localeService']['t'](_0x1a649f(0x3a1)),'type':p[_0x1a649f(0x278)][_0x1a649f(0x1a0)]});return;}await new Promise(_0x3844ae=>{const _0x3ed752=_0x1a649f;this[_0x3ed752(0x1e9)]=window['setTimeout'](_0x3844ae,0x3e8);});}catch(_0x370226){this[_0x1a649f(0x25f)][_0x1a649f(0x1c6)](_0x370226);}this['_messageService'][_0x1a649f(0x335)]({'content':this['_localeService']['t'](_0x1a649f(0x403)),'type':p[_0x1a649f(0x278)][_0x1a649f(0x1cb)]});}[_0x661f9(0x36f)](_0xc87abb,_0x39b82e){const _0x11bb6d=_0x661f9;try{this['_commandService'][_0x11bb6d(0x39f)](_0xc87abb['id'],_0xc87abb[_0x11bb6d(0x2e4)],_0x39b82e);}catch(_0x120942){this[_0x11bb6d(0x25f)][_0x11bb6d(0x1c6)](_0x120942);}}[_0x661f9(0x231)](_0x53a3c9,_0x2082f5){const _0x1d1218=_0x661f9;_0x2082f5<this[_0x1d1218(0x17e)]||(this['_lastResponseTimestamp']=_0x2082f5,this['_maxFormulaLimit']=Number[_0x1d1218(0x1c7)](_0x53a3c9[_0x1d1218(0x2f3)]),this[_0x1d1218(0x277)]=Number[_0x1d1218(0x1c7)](_0x53a3c9[_0x1d1218(0x35a)]));}async[_0x661f9(0x3ed)](_0x11aa86){const _0x5b99e1=_0x661f9;var _0x67d647,_0x1296c5;const _0x2ce35e=Date[_0x5b99e1(0x185)]();try{const _0x3fec71=((_0x67d647=this['_configService'][_0x5b99e1(0x31a)](u[_0x5b99e1(0x32d)]))==null?void 0x0:_0x67d647[_0x5b99e1(0x331)])||Zt,_0x47d82e=(await this['_httpService'][_0x5b99e1(0x424)](_0x3fec71,{'body':JSON[_0x5b99e1(0x3c7)]({'taskId':_0x11aa86})}))[_0x5b99e1(0x349)];if(((_0x1296c5=_0x47d82e['error'])==null?void 0x0:_0x1296c5[_0x5b99e1(0x1e6)])!==V['OK'])return;this[_0x5b99e1(0x231)](_0x47d82e[_0x5b99e1(0x281)],_0x2ce35e);}catch(_0x228bf3){this[_0x5b99e1(0x25f)]['error'](_0x228bf3);}}async[_0x661f9(0x378)](_0x186fc3){const _0x428c0d=_0x661f9;var _0x86b935,_0x2f60c5;const _0x299292=Date['now']();try{const _0x35cfd6=((_0x86b935=this[_0x428c0d(0x197)][_0x428c0d(0x31a)](u[_0x428c0d(0x32d)]))==null?void 0x0:_0x86b935[_0x428c0d(0x42c)])||Jt,_0x293b35=_0x186fc3?_0x35cfd6+_0x428c0d(0x1bb)+encodeURIComponent(_0x186fc3):_0x35cfd6,_0x3131db=(await this[_0x428c0d(0x192)]['get'](_0x293b35))[_0x428c0d(0x349)];if(((_0x2f60c5=_0x3131db[_0x428c0d(0x1c6)])==null?void 0x0:_0x2f60c5[_0x428c0d(0x1e6)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x3131db[_0x428c0d(0x281)],_0x299292);}catch(_0x38d3e1){this[_0x428c0d(0x25f)][_0x428c0d(0x1c6)](_0x38d3e1);}}async[_0x661f9(0x3bb)](_0x27805f){const _0x303c2e=_0x661f9;var _0x1dfd15,_0x42626d;const _0x136421=Date[_0x303c2e(0x185)]();try{const _0x5d3bfa=((_0x1dfd15=this[_0x303c2e(0x197)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x1dfd15[_0x303c2e(0x381)])||Qt,_0x4fb751=(await this[_0x303c2e(0x192)][_0x303c2e(0x424)](_0x5d3bfa,{'body':JSON[_0x303c2e(0x3c7)]({'taskId':_0x27805f})}))['body'];if(((_0x42626d=_0x4fb751[_0x303c2e(0x1c6)])==null?void 0x0:_0x42626d[_0x303c2e(0x1e6)])!==V['OK'])return;this[_0x303c2e(0x231)](_0x4fb751['limitInfo'],_0x136421);}catch(_0x3e7a0e){this[_0x303c2e(0x25f)][_0x303c2e(0x1c6)](_0x3e7a0e);}}[_0x661f9(0x38a)](){const _0x4bbf8c=_0x661f9;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x4bbf8c(0x277)]>0x0;}[_0x661f9(0x240)](){const _0x5a4ccd=_0x661f9;this[_0x5a4ccd(0x1e9)]&&(clearTimeout(this[_0x5a4ccd(0x1e9)]),this[_0x5a4ccd(0x1e9)]=null);}[_0x661f9(0x355)](){const _0x2f4851=_0x661f9;this[_0x2f4851(0x32a)][_0x2f4851(0x335)]({'content':this[_0x2f4851(0x2ad)]['t'](_0x2f4851(0x1a1)),'type':p[_0x2f4851(0x278)]['Loading']});}[_0x661f9(0x3b8)](_0x52999f){const _0x225ff6=_0x661f9;for(const _0x7bc043 of _0x52999f){const {unitId:_0x3218d2,sheetId:_0x145be5,range:_0x236f3b}=_0x7bc043,_0x44913c=this[_0x225ff6(0x172)][_0x225ff6(0x223)](_0x3218d2);if(!_0x44913c)continue;const _0x557eb7=_0x44913c['getSheetBySheetId'](_0x145be5);if(!_0x557eb7)continue;const _0xe1335=_0x557eb7[_0x225ff6(0x23f)]();for(let _0x37bd18=_0x236f3b['startRow'];_0x37bd18<=_0x236f3b[_0x225ff6(0x3a2)];_0x37bd18++)for(let _0x41d152=_0x236f3b[_0x225ff6(0x2a4)];_0x41d152<=_0x236f3b[_0x225ff6(0x17f)];_0x41d152++){const _0x514cc3=_0xe1335[_0x225ff6(0x3c5)](_0x37bd18,_0x41d152);if(_0x514cc3&&(a['isFormulaString'](_0x514cc3['f'])||a[_0x225ff6(0x330)](_0x514cc3['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x661f9(0x2c2)](O[_0x661f9(0x2fd)])),L(0x1,a[_0x661f9(0x400)]),L(0x2,a[_0x661f9(0x3fe)]),L(0x3,a[_0x661f9(0x2c2)](G[_0x661f9(0x364)])),L(0x4,a[_0x661f9(0x32b)]),L(0x5,a[_0x661f9(0x3cf)]),L(0x6,a[_0x661f9(0x2c2)](a['LocaleService']))],se);var es=Object[_0x661f9(0x27b)],ts=(_0x4e1730,_0x417d18,_0x3b3643,_0x15958a)=>{const _0x4eb368=_0x661f9;for(var _0x400166=_0x15958a>0x1?void 0x0:_0x15958a?es(_0x417d18,_0x3b3643):_0x417d18,_0xf39bbe=_0x4e1730[_0x4eb368(0x3e2)]-0x1,_0x4f7922;_0xf39bbe>=0x0;_0xf39bbe--)(_0x4f7922=_0x4e1730[_0xf39bbe])&&(_0x400166=_0x4f7922(_0x400166)||_0x400166);return _0x400166;},ue=(_0x162fe5,_0x5143bb)=>(_0x2bfbdc,_0x3470ba)=>_0x5143bb(_0x2bfbdc,_0x3470ba,_0x162fe5);let Ee=class extends a['Disposable']{constructor(_0x3b665c,_0x1d4f66,_0x3220c2){const _0x3d7de5=_0x661f9;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x3d7de5(0x22f),!0x1),(this[_0x3d7de5(0x197)]=_0x3b665c,this[_0x3d7de5(0x303)]=_0x1d4f66,this[_0x3d7de5(0x1cf)]=_0x3220c2);}[_0x661f9(0x33e)](){const _0xd1a9e1=_0x661f9;this[_0xd1a9e1(0x22f)]=!0x0;}[_0x661f9(0x358)](){this['_disabled']=!0x1;}get[_0x661f9(0x20e)](){return this['_saveTaskMap'];}[_0x661f9(0x1ff)](){const _0x53034a=_0x661f9;this[_0x53034a(0x3fa)]()[_0x53034a(0x1d0)](()=>super['dispose']());}async[_0x661f9(0x30d)](_0x4bea55){const _0x7569e3=_0x661f9;return this['_disabled']?null:this['_localStorageService'][_0x7569e3(0x19b)](u[_0x7569e3(0x35c)](_0x4bea55));}async[_0x661f9(0x2ee)](_0x4d0307,_0x79f4d2){const _0xbbb17f=_0x661f9;return!!this[_0xbbb17f(0x303)]['setItem'](_0x4d0307,_0x79f4d2);}[_0x661f9(0x425)](_0x3212bb,_0x17ff46,_0x4ee6c0,_0x904c1){const _0xc384ba=_0x661f9,_0x1b6c50=this[_0xc384ba(0x1cf)][_0xc384ba(0x204)](_0x3212bb);this['_cachedData']['set'](_0x3212bb,{'unitID':_0x3212bb,'type':_0x17ff46,'awaitingChangeset':_0x4ee6c0,'mutations':_0x904c1,'rev':_0x1b6c50}),this['_saveTaskMap'][_0xc384ba(0x1d2)](_0x3212bb)||this[_0xc384ba(0x285)](_0x3212bb);}[_0x661f9(0x285)](_0xea7895){const _0xe3989=_0x661f9,_0x1975a2=this[_0xe3989(0x19e)]();_0x1975a2===0x0?this[_0xe3989(0x39d)](_0xea7895):this[_0xe3989(0x3ca)][_0xe3989(0x406)](_0xea7895,setTimeout(()=>this['_saveCache'](_0xea7895),_0x1975a2));}[_0x661f9(0x19e)](){const _0x3f4e92=_0x661f9;var _0x4dec9e;return(_0x4dec9e=this[_0x3f4e92(0x197)][_0x3f4e92(0x31a)](u[_0x3f4e92(0x31f)]))!=null?_0x4dec9e:u[_0x3f4e92(0x23c)];}[_0x661f9(0x39d)](_0xa4c54){const _0x2cf1f6=_0x661f9,_0x28d1c9=this['_saveTaskMap'][_0x2cf1f6(0x2fa)](_0xa4c54);return _0x28d1c9!==void 0x0&&window['clearTimeout'](_0x28d1c9),this['_localStorageService'][_0x2cf1f6(0x3b6)](u[_0x2cf1f6(0x35c)](_0xa4c54),this[_0x2cf1f6(0x390)]['get'](_0xa4c54))[_0x2cf1f6(0x1d0)](()=>this[_0x2cf1f6(0x3ca)][_0x2cf1f6(0x323)](_0xa4c54));}async[_0x661f9(0x3fa)](){const _0x542309=_0x661f9,_0x24e8ed=[];this['_saveTaskMap'][_0x542309(0x30f)]((_0x1c5d76,_0x2ec56a)=>{const _0x2f9aaf=_0x542309;window[_0x2f9aaf(0x40d)](_0x1c5d76),_0x24e8ed[_0x2f9aaf(0x28f)](this[_0x2f9aaf(0x39d)](_0x2ec56a)['then'](()=>{const _0x4ae396=_0x2f9aaf;this[_0x4ae396(0x3ca)]['delete'](_0x2ec56a);}));}),await Promise[_0x542309(0x376)](_0x24e8ed);}};Ee=ts([ue(0x0,a['IConfigService']),ue(0x1,a[_0x661f9(0x291)]),ue(0x2,a['Inject'](v[_0x661f9(0x418)]))],Ee);class Fe extends a[_0x661f9(0x170)]{constructor(){const _0x52d1ef=_0x661f9;super(),_(this,'urlChange$'),this[_0x52d1ef(0x2c9)]=I[_0x52d1ef(0x31c)](window,_0x52d1ef(0x206))[_0x52d1ef(0x362)](I[_0x52d1ef(0x3eb)](this[_0x52d1ef(0x326)]),I[_0x52d1ef(0x38d)](0x1),I['mapTo'](void 0x0));}[_0x661f9(0x397)](_0x271ebc,_0x58a862,_0x295fea=!0x1){const _0x1e9f48=_0x661f9,_0x494d93=new URL(window[_0x1e9f48(0x305)][_0x1e9f48(0x28e)]);_0x494d93['searchParams']['set'](_0x271ebc,_0x58a862),_0x295fea?window['history'][_0x1e9f48(0x29a)]('','',_0x494d93[_0x1e9f48(0x2c3)]()):window[_0x1e9f48(0x24c)]['pushState']('','',_0x494d93[_0x1e9f48(0x2c3)]());}[_0x661f9(0x372)](_0x5b9446,_0x45bd08=!0x1){const _0x3f444f=_0x661f9,_0x2ffb6d=new URL(window['location'][_0x3f444f(0x28e)]);_0x2ffb6d[_0x3f444f(0x19c)][_0x3f444f(0x323)](_0x5b9446),_0x45bd08?window[_0x3f444f(0x24c)]['replaceState']('','',_0x2ffb6d[_0x3f444f(0x2c3)]()):window[_0x3f444f(0x24c)][_0x3f444f(0x391)]('','',_0x2ffb6d['toString']());}[_0x661f9(0x380)](_0x105f5b){const _0x5ea5c3=_0x661f9;var _0x301274;return(_0x301274=new URL(window[_0x5ea5c3(0x305)][_0x5ea5c3(0x28e)])[_0x5ea5c3(0x19c)][_0x5ea5c3(0x2fa)](_0x105f5b))!=null?_0x301274:void 0x0;}}var ss=Object[_0x661f9(0x235)],is=Object[_0x661f9(0x27b)],ns=(_0x5f375b,_0x5a767d,_0x2fe531)=>_0x5a767d in _0x5f375b?ss(_0x5f375b,_0x5a767d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fe531}):_0x5f375b[_0x5a767d]=_0x2fe531,rs=(_0x3dcfb9,_0x4d9359,_0x3142a9,_0x59c3ac)=>{const _0x550807=_0x661f9;for(var _0x425e14=_0x59c3ac>0x1?void 0x0:_0x59c3ac?is(_0x4d9359,_0x3142a9):_0x4d9359,_0x30aa9f=_0x3dcfb9[_0x550807(0x3e2)]-0x1,_0x363b7a;_0x30aa9f>=0x0;_0x30aa9f--)(_0x363b7a=_0x3dcfb9[_0x30aa9f])&&(_0x425e14=_0x363b7a(_0x425e14)||_0x425e14);return _0x425e14;},Ie=(_0x12059b,_0x20ca74)=>(_0x5581ec,_0x55e32f)=>_0x20ca74(_0x5581ec,_0x55e32f,_0x12059b),os=(_0x354138,_0x96ba3,_0x4bbab0)=>ns(_0x354138,_0x96ba3+'',_0x4bbab0);const as=_0x661f9(0x35f);exports[_0x661f9(0x2bc)]=class extends a['Plugin']{constructor(_0x27ec86=Ue,_0x36401e,_0x3ec487,_0x41e392){const _0x23b615=_0x661f9;super(),this[_0x23b615(0x337)]=_0x27ec86,this['_renderManagerService']=_0x36401e,this[_0x23b615(0x352)]=_0x3ec487,this[_0x23b615(0x197)]=_0x41e392;const {..._0x84d2a3}=a['merge']({},Ue,this[_0x23b615(0x337)]);this['_configService']['setConfig'](Bt,_0x84d2a3);}['onStarting'](){const _0x3a3a53=_0x661f9;this[_0x3a3a53(0x2a6)](),this[_0x3a3a53(0x29e)]();}['onRendered'](){const _0x521d4d=_0x661f9;this[_0x521d4d(0x2cf)]();}[_0x661f9(0x2a6)](){const _0x4e3e66=_0x661f9;var _0x4c7bce;const _0x501b04=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G[_0x4e3e66(0x383)],{'useClass':G['WebSocketService']}],[u[_0x4e3e66(0x219)],{'useClass':Ee}],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[B],[de],[exports[_0x4e3e66(0x220)]]];a[_0x4e3e66(0x1ca)](this[_0x4e3e66(0x352)],a[_0x4e3e66(0x370)](_0x501b04,(_0x4c7bce=this[_0x4e3e66(0x337)])==null?void 0x0:_0x4c7bce['override']));}[_0x661f9(0x2cf)](){const _0x33d5d4=_0x661f9;this[_0x33d5d4(0x37a)](this[_0x33d5d4(0x2fe)][_0x33d5d4(0x2b3)](a[_0x33d5d4(0x311)][_0x33d5d4(0x318)],[ge])),this[_0x33d5d4(0x37a)](this['_renderManagerService'][_0x33d5d4(0x2b3)](a['UniverInstanceType']['UNIVER_SHEET'],[ve]));}[_0x661f9(0x29e)](){const _0x42c5d3=_0x661f9;a[_0x42c5d3(0x3a0)](this[_0x42c5d3(0x352)],[[B],[exports[_0x42c5d3(0x2bf)]],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x661f9(0x2bc)],'pluginName',as),exports['UniverCollaborationClientUIPlugin']=rs([a[_0x661f9(0x3ee)](u[_0x661f9(0x2c8)]),Ie(0x1,C[_0x661f9(0x253)]),Ie(0x2,a[_0x661f9(0x2c2)](a['Injector'])),Ie(0x3,a['IConfigService'])],exports[_0x661f9(0x2bc)]);var cs=Object['getOwnPropertyDescriptor'],ls=(_0x3bd46b,_0x4465b6,_0x5a88aa,_0x464ca3)=>{const _0x467b7a=_0x661f9;for(var _0x4f951e=_0x464ca3>0x1?void 0x0:_0x464ca3?cs(_0x4465b6,_0x5a88aa):_0x4465b6,_0x3b4f96=_0x3bd46b[_0x467b7a(0x3e2)]-0x1,_0x231df1;_0x3b4f96>=0x0;_0x3b4f96--)(_0x231df1=_0x3bd46b[_0x3b4f96])&&(_0x4f951e=_0x231df1(_0x4f951e)||_0x4f951e);return _0x4f951e;},H=(_0x1f2114,_0x48ddb9)=>(_0x43b12c,_0x1cb2ad)=>_0x48ddb9(_0x43b12c,_0x1cb2ad,_0x1f2114);exports[_0x661f9(0x1a4)]=class extends u['CollaborationSocketService']{constructor(_0x10483e,_0x9f832b,_0x287759,_0x494fef,_0x379d69){super(_0x10483e,_0x9f832b,_0x287759,_0x494fef,_0x379d69);}async[_0x661f9(0x225)](_0x398edc){const _0x5a3e83=_0x661f9,_0x58b335=await this['_getSessionTicket'](),_0x4113f6=this[_0x5a3e83(0x3f9)](_0x398edc,_0x58b335);return this[_0x5a3e83(0x24e)](_0x4113f6);}[_0x661f9(0x3f9)](_0x4d399e,_0x26616c){const _0xf57ad4=_0x661f9,_0x23e8a4=typeof window>'u'?new URL(_0x4d399e):new URL(_0x4d399e,window['location']['origin']);_0x23e8a4[_0xf57ad4(0x19c)][_0xf57ad4(0x406)]('sessionTicket',_0x26616c);const _0x2eb91c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xf57ad4(0x305)][_0xf57ad4(0x299)]);return _0x2eb91c[_0xf57ad4(0x2fa)](_0xf57ad4(0x288))&&_0x23e8a4['searchParams']['set'](_0xf57ad4(0x288),_0x2eb91c[_0xf57ad4(0x2fa)](_0xf57ad4(0x288))),_0x23e8a4[_0xf57ad4(0x2c3)]();}async[_0x661f9(0x256)](){const _0x4706fc=_0x661f9;var _0x50352e,_0x2fd737,_0x51212d;const _0x5a6fc5=this[_0x4706fc(0x197)]['getConfig'](u[_0x4706fc(0x32d)]),_0x1a72b3=(_0x50352e=_0x5a6fc5==null?void 0x0:_0x5a6fc5[_0x4706fc(0x2cc)])!=null?_0x50352e:u[_0x4706fc(0x2a7)];return(_0x51212d=(_0x2fd737=(await this['_httpService'][_0x4706fc(0x2fa)](_0x1a72b3,{'headers':{'Content-Type':_0x4706fc(0x27f)}}))['body'])==null?void 0x0:_0x2fd737['ticket'])!=null?_0x51212d:'';}},exports[_0x661f9(0x1a4)]=ls([H(0x0,a['Inject'](a['Injector'])),H(0x1,a[_0x661f9(0x2c2)](G[_0x661f9(0x364)])),H(0x2,a['IConfigService']),H(0x3,a[_0x661f9(0x3cf)]),H(0x4,v[_0x661f9(0x174)])],exports[_0x661f9(0x1a4)]);var _s=Object[_0x661f9(0x27b)],hs=(_0x3f9ad0,_0x5a6e4a,_0x58e607,_0x599c4b)=>{const _0x19b263=_0x661f9;for(var _0x3139d4=_0x599c4b>0x1?void 0x0:_0x599c4b?_s(_0x5a6e4a,_0x58e607):_0x5a6e4a,_0x501f0b=_0x3f9ad0[_0x19b263(0x3e2)]-0x1,_0x9ba024;_0x501f0b>=0x0;_0x501f0b--)(_0x9ba024=_0x3f9ad0[_0x501f0b])&&(_0x3139d4=_0x9ba024(_0x3139d4)||_0x3139d4);return _0x3139d4;},Se=(_0x3489e3,_0xd21ca7)=>(_0x40758e,_0xa9a4ea)=>_0xd21ca7(_0x40758e,_0xa9a4ea,_0x3489e3);exports[_0x661f9(0x3ea)]=class extends a[_0x661f9(0x26a)]{constructor(_0x20f8e0,_0x368d01,_0x508d8c){const _0x57f00a=_0x661f9;super(),this[_0x57f00a(0x1f5)]=_0x20f8e0,this[_0x57f00a(0x192)]=_0x368d01,this[_0x57f00a(0x197)]=_0x508d8c;}async['runOnServer'](_0xa1f8a1,_0x442725,_0x128359,..._0x4ef673){const _0xaeb488=_0x661f9;var _0x1da326,_0x69f5f8,_0x356348,_0x3f34a0;const _0x3efc2f=this[_0xaeb488(0x1f5)][_0xaeb488(0x409)]();if(!_0x3efc2f)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x52eea5=((_0x1da326=this['_configService'][_0xaeb488(0x31a)](u[_0xaeb488(0x426)]))!=null?_0x1da326:u[_0xaeb488(0x3e3)])+'/'+_0xa1f8a1+_0xaeb488(0x33c)+_0x442725,_0x426906=new URL(window[_0xaeb488(0x305)][_0xaeb488(0x28e)]),_0x2ebcac={'scriptId':_0xa1f8a1,'runId':(_0x69f5f8=_0x426906[_0xaeb488(0x19c)][_0xaeb488(0x2fa)](_0xaeb488(0x288)))!=null?_0x69f5f8:'','function':_0x442725,'unitId':_0x3efc2f['getUnitId'](),'argsOfFunction':JSON[_0xaeb488(0x3c7)](_0x4ef673),'invokeId':(_0x356348=_0x128359[_0xaeb488(0x1b2)])!=null?_0x356348:'','executionId':(_0x3f34a0=_0x128359[_0xaeb488(0x304)])!=null?_0x3f34a0:''};try{const _0x23fe83=await this[_0xaeb488(0x192)]['post'](_0x52eea5,{'body':_0x2ebcac});return _0x23fe83[_0xaeb488(0x349)]['error']&&_0x23fe83['body'][_0xaeb488(0x1c6)]['code']!==V['OK']?_0xaeb488(0x1e8):_0x23fe83['body']['result'];}catch{return _0xaeb488(0x1e8);}}},exports[_0x661f9(0x3ea)]=hs([Se(0x0,a[_0x661f9(0x32b)]),Se(0x1,a[_0x661f9(0x2c2)](G['HTTPService'])),Se(0x2,a[_0x661f9(0x3fe)])],exports['RemoteUniscriptService']);const Ae=0x7530,Pe=_0x661f9(0x42d);class us extends a['Disposable']{constructor(){const _0x4d9c40=_0x661f9;super(),_(this,_0x4d9c40(0x36d),a[_0x4d9c40(0x23d)]()),_(this,_0x4d9c40(0x312),new Set()),_(this,_0x4d9c40(0x2af),new Map()),_(this,_0x4d9c40(0x310),null),_(this,_0x4d9c40(0x41b),new Map()),_(this,'_unitStatus',new Map()),this[_0x4d9c40(0x3bc)]();}[_0x661f9(0x1ff)](){const _0x300a00=_0x661f9;super['dispose'](),this[_0x300a00(0x41b)][_0x300a00(0x30f)]((_0x6c717c,_0x420cb1)=>this[_0x300a00(0x3ba)](_0x420cb1)),this[_0x300a00(0x310)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x3092f1){const _0x3f1393=_0x661f9;return this[_0x3f1393(0x2e7)](_0x3092f1)[_0x3f1393(0x362)](I[_0x3f1393(0x2ce)]());}[_0x661f9(0x1b9)](_0x36fcf7){const _0x33431d=_0x661f9;this[_0x33431d(0x312)][_0x33431d(0x343)]===0x0&&this[_0x33431d(0x18a)](),this[_0x33431d(0x312)][_0x33431d(0x1dc)](_0x36fcf7),this[_0x33431d(0x3dc)]({'type':0x0,'memberID':this[_0x33431d(0x36d)],'unitIDs':[_0x36fcf7],'isForwarded':!0x1});}[_0x661f9(0x1f6)](_0x48b6cb){const _0x17f0a3=_0x661f9;this[_0x17f0a3(0x312)]['delete'](_0x48b6cb),this[_0x17f0a3(0x312)][_0x17f0a3(0x343)]===0x0&&this[_0x17f0a3(0x310)]&&window[_0x17f0a3(0x314)](this[_0x17f0a3(0x310)]);}['_init'](){const _0x3a1af0=_0x661f9;this[_0x3a1af0(0x37a)](a[_0x3a1af0(0x202)](I['fromEvent'](window,_0x3a1af0(0x198))['subscribe'](_0x1e552e=>{const _0x4cc8ca=_0x3a1af0;if(_0x1e552e[_0x4cc8ca(0x396)]!==Pe||!_0x1e552e[_0x4cc8ca(0x239)])return;const _0x26cff1=JSON[_0x4cc8ca(0x1b6)](_0x1e552e['newValue']);this[_0x4cc8ca(0x2c1)](_0x26cff1);}))),window[_0x3a1af0(0x2da)](_0x3a1af0(0x32e),()=>this[_0x3a1af0(0x3dc)]({'type':0x1,'memberID':this[_0x3a1af0(0x36d)],'unitIDs':Array[_0x3a1af0(0x19f)](this[_0x3a1af0(0x312)])}));}[_0x661f9(0x2c1)](_0x1fd10c){const _0x48eb2a=_0x661f9;switch(_0x1fd10c['type']){case 0x0:this[_0x48eb2a(0x24b)](_0x1fd10c);break;case 0x1:this['_handleLeaveEvent'](_0x1fd10c);break;case 0x2:this['_handleHeartbeatEvent'](_0x1fd10c);break;}}[_0x661f9(0x24b)](_0x5d7808){const _0x15522a=_0x661f9,{unitIDs:_0x586ee2,memberID:_0x3f0916,isForwarded:_0x4fd7f0}=_0x5d7808;_0x586ee2[_0x15522a(0x30f)](_0x421606=>{const _0x2d041b=_0x15522a;if(!_0x4fd7f0&&this['_unitOnClients'][_0x2d041b(0x1d2)](_0x421606)&&this['_ensureSubject'](_0x421606)['next'](u[_0x2d041b(0x1eb)][_0x2d041b(0x2b9)]),!this[_0x2d041b(0x2af)][_0x2d041b(0x1d2)](_0x421606)||!this[_0x2d041b(0x2af)]['get'](_0x421606)[_0x2d041b(0x1d2)](_0x3f0916)){const _0x3615df=this['_unitOnClients'][_0x2d041b(0x2fa)](_0x421606)||new Set();_0x3615df[_0x2d041b(0x1dc)](_0x3f0916),this[_0x2d041b(0x2af)][_0x2d041b(0x406)](_0x421606,_0x3615df),this[_0x2d041b(0x3f4)](_0x3f0916);}}),_0x4fd7f0||this['_send']({'type':0x0,'memberID':this[_0x15522a(0x36d)],'unitIDs':[...this[_0x15522a(0x312)]],'isForwarded':!0x0});}[_0x661f9(0x3f4)](_0x40d341){const _0x42aa2f=_0x661f9;this[_0x42aa2f(0x3ba)](_0x40d341);const _0x5894d5=window[_0x42aa2f(0x214)](()=>{this['_unitOnClients']['forEach'](_0x2fb06d=>{const _0xcdcce5=_0x33d9;_0x2fb06d[_0xcdcce5(0x323)](_0x40d341);});},Ae*0x2);this[_0x42aa2f(0x41b)]['set'](_0x40d341,_0x5894d5);}['_removeClearOtherTimer'](_0x47f980){const _0x367e4c=_0x661f9;if(this[_0x367e4c(0x41b)][_0x367e4c(0x1d2)](_0x47f980)){const _0x442c48=this[_0x367e4c(0x41b)][_0x367e4c(0x2fa)](_0x47f980);_0x442c48&&window[_0x367e4c(0x40d)](_0x442c48),this[_0x367e4c(0x41b)][_0x367e4c(0x406)](_0x47f980,null);}}[_0x661f9(0x3d9)](_0x5436e9){const _0xa63861=_0x661f9,{memberID:_0x190159,unitIDs:_0x53cbc6}=_0x5436e9;_0x53cbc6[_0xa63861(0x30f)](_0x25134a=>{const _0x2d3dca=_0xa63861;var _0x5dd58b;const _0xcfa307=this[_0x2d3dca(0x2af)][_0x2d3dca(0x2fa)](_0x25134a);_0xcfa307&&(_0xcfa307[_0x2d3dca(0x323)](_0x190159),(_0x5dd58b=this[_0x2d3dca(0x2e7)](_0x25134a))==null||_0x5dd58b[_0x2d3dca(0x29d)](_0xcfa307[_0x2d3dca(0x343)]===0x0?u['UnitStatus'][_0x2d3dca(0x1f3)]:u[_0x2d3dca(0x1eb)][_0x2d3dca(0x2b9)]));}),this[_0xa63861(0x3ba)](_0x190159);}['_handleHeartbeatEvent'](_0x247fce){const _0x322263=_0x661f9;this[_0x322263(0x3f4)](_0x247fce[_0x322263(0x347)]);}[_0x661f9(0x3dc)](_0x3f93bb){const _0x1151b4=_0x661f9;localStorage['setItem'](Pe,JSON[_0x1151b4(0x3c7)](_0x3f93bb));}[_0x661f9(0x18a)](){const _0x34f9dd=_0x661f9;this[_0x34f9dd(0x310)]=window[_0x34f9dd(0x2f7)](()=>{const _0x49b2b7=_0x34f9dd;this[_0x49b2b7(0x3dc)]({'type':0x2,'memberID':this[_0x49b2b7(0x36d)]});},Ae);}[_0x661f9(0x2e7)](_0x41853f){const _0x1096e3=_0x661f9;return this[_0x1096e3(0x17d)][_0x1096e3(0x1d2)](_0x41853f)||this['_unitStatus'][_0x1096e3(0x406)](_0x41853f,new I[(_0x1096e3(0x175))](u[_0x1096e3(0x1eb)][_0x1096e3(0x1f3)])),this[_0x1096e3(0x17d)]['get'](_0x41853f);}}exports[_0x661f9(0x338)]=Te,exports[_0x661f9(0x33b)]=Be,exports[_0x661f9(0x1a8)]=us,exports[_0x661f9(0x233)]=Fe;
|
|
1
|
+
'use strict';const _0x2dd085=_0x3d42;(function(_0x4d18bb,_0x27ee59){const _0x3ce725=_0x3d42,_0x5a67c5=_0x4d18bb();while(!![]){try{const _0x429f36=-parseInt(_0x3ce725(0x355))/0x1+-parseInt(_0x3ce725(0x255))/0x2+-parseInt(_0x3ce725(0x289))/0x3+parseInt(_0x3ce725(0x406))/0x4+-parseInt(_0x3ce725(0x40b))/0x5+-parseInt(_0x3ce725(0x3ad))/0x6+parseInt(_0x3ce725(0x334))/0x7*(parseInt(_0x3ce725(0x356))/0x8);if(_0x429f36===_0x27ee59)break;else _0x5a67c5['push'](_0x5a67c5['shift']());}catch(_0x5e96f3){_0x5a67c5['push'](_0x5a67c5['shift']());}}}(_0x3083,0x1ec08));var Ve=Object[_0x2dd085(0x3b1)],Ge=(_0x4a07fe,_0x36122a,_0x110488)=>_0x36122a in _0x4a07fe?Ve(_0x4a07fe,_0x36122a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x110488}):_0x4a07fe[_0x36122a]=_0x110488,_=(_0x526e85,_0x2516a0,_0x24c3ca)=>Ge(_0x526e85,typeof _0x2516a0!=_0x2dd085(0x1e1)?_0x2516a0+'':_0x2516a0,_0x24c3ca);Object[_0x2dd085(0x3b1)](exports,Symbol['toStringTag'],{'value':_0x2dd085(0x232)});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'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x55d5bb,..._0x1f4acc}){const _0xe83d97=_0x2dd085,{icon:_0x326d31,id:_0x4fac2b,className:_0x42fcc3,extend:_0x23fcc7,..._0x474f16}=_0x1f4acc,_0x423242=(_0xe83d97(0x3ae)+_0x4fac2b+'\x20'+(_0x42fcc3||''))[_0xe83d97(0x329)](),_0x4935f0=A[_0xe83d97(0x1a7)]('_'+Je());return we(_0x326d31,''+_0x4fac2b,{'defIds':_0x326d31[_0xe83d97(0x2ce)],'idSuffix':_0x4935f0['current']},{'ref':_0x55d5bb,'className':_0x423242,..._0x474f16},_0x23fcc7);}function we(_0x22d1f1,_0x260985,_0xc5a363,_0x44f055,_0x15e318){const _0x233058=_0x2dd085;return A[_0x233058(0x24c)](_0x22d1f1['tag'],{'key':_0x260985,...qe(_0x22d1f1,_0xc5a363,_0x15e318),..._0x44f055},(ze(_0x22d1f1,_0xc5a363)[_0x233058(0x212)]||[])[_0x233058(0x2c0)]((_0x2c10da,_0x2a4c96)=>we(_0x2c10da,_0x260985+'-'+_0x22d1f1[_0x233058(0x3f9)]+'-'+_0x2a4c96,_0xc5a363,void 0x0,_0x15e318)));}function qe(_0x570e89,_0xbe2820,_0x2751ef){const _0x599f97=_0x2dd085,_0x5d9d64={..._0x570e89[_0x599f97(0x3f2)]};_0x2751ef!=null&&_0x2751ef['colorChannel1']&&_0x5d9d64[_0x599f97(0x421)]===_0x599f97(0x27a)&&(_0x5d9d64[_0x599f97(0x421)]=_0x2751ef['colorChannel1']),_0x570e89[_0x599f97(0x3f9)]===_0x599f97(0x296)&&_0x5d9d64['id']&&(_0x5d9d64['id']=_0x5d9d64['id']+_0xbe2820[_0x599f97(0x3da)]),Object[_0x599f97(0x341)](_0x5d9d64)[_0x599f97(0x3d6)](([_0xee9fce,_0x49df4a])=>{const _0x454b63=_0x599f97;_0xee9fce===_0x454b63(0x296)&&typeof _0x49df4a==_0x454b63(0x3ec)&&(_0x5d9d64[_0xee9fce]=_0x49df4a[_0x454b63(0x3d8)](/url\(#(.*)\)/,_0x454b63(0x35f)+_0xbe2820[_0x454b63(0x3da)]+')'));});const {defIds:_0x25a37b}=_0xbe2820;return!_0x25a37b||_0x25a37b['length']===0x0||(_0x570e89['tag']==='use'&&_0x5d9d64['xlink:href']&&(_0x5d9d64[_0x599f97(0x1da)]=_0x5d9d64['xlink:href']+_0xbe2820[_0x599f97(0x3da)]),Object['entries'](_0x5d9d64)[_0x599f97(0x3d6)](([_0x384de0,_0x1ebbd0])=>{const _0x354e89=_0x599f97;typeof _0x1ebbd0==_0x354e89(0x3ec)&&(_0x5d9d64[_0x384de0]=_0x1ebbd0[_0x354e89(0x3d8)](/url\(#(.*)\)/,_0x354e89(0x35f)+_0xbe2820['idSuffix']+')'));})),_0x5d9d64;}function _0x3d42(_0x4b9e98,_0x15c97d){const _0x308322=_0x3083();return _0x3d42=function(_0x3d42b9,_0x5043cc){_0x3d42b9=_0x3d42b9-0x192;let _0x44c8fa=_0x308322[_0x3d42b9];return _0x44c8fa;},_0x3d42(_0x4b9e98,_0x15c97d);}function ze(_0x10cd37,_0x3e4128){const _0x56dd87=_0x2dd085;var _0x3eda72;const {defIds:_0x170e3b}=_0x3e4128;return!_0x170e3b||_0x170e3b[_0x56dd87(0x37e)]===0x0?_0x10cd37:_0x10cd37[_0x56dd87(0x3f9)]===_0x56dd87(0x29a)&&((_0x3eda72=_0x10cd37[_0x56dd87(0x212)])!=null&&_0x3eda72[_0x56dd87(0x37e)])?{..._0x10cd37,'children':_0x10cd37['children'][_0x56dd87(0x2c0)](_0x5868f9=>typeof _0x5868f9['attrs']['id']==_0x56dd87(0x3ec)&&_0x170e3b&&_0x170e3b[_0x56dd87(0x3c2)](_0x5868f9[_0x56dd87(0x3f2)]['id'])?{..._0x5868f9,'attrs':{..._0x5868f9[_0x56dd87(0x3f2)],'id':_0x5868f9['attrs']['id']+_0x3e4128[_0x56dd87(0x3da)]}}:_0x5868f9)}:_0x10cd37;}function Je(){const _0x4e12d4=_0x2dd085;return Math['random']()['toString'](0x24)[_0x4e12d4(0x1cc)](0x2,0x8);}Ce[_0x2dd085(0x43e)]='UniverIcon';const Ze={'tag':_0x2dd085(0x313),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2dd085(0x2b3),'viewBox':'0\x200\x2016\x2016','width':_0x2dd085(0x304),'height':_0x2dd085(0x304)},'children':[{'tag':'g','attrs':{'clipPath':_0x2dd085(0x1f1)},'children':[{'tag':_0x2dd085(0x3d9),'attrs':{'stroke':_0x2dd085(0x2d5),'d':_0x2dd085(0x39f),'strokeLinecap':_0x2dd085(0x1a2),'strokeLinejoin':_0x2dd085(0x1a2),'strokeWidth':1.2}}]},{'tag':_0x2dd085(0x29a),'attrs':{},'children':[{'tag':_0x2dd085(0x1ab),'attrs':{'id':_0x2dd085(0x3ab)},'children':[{'tag':_0x2dd085(0x3d9),'attrs':{'fill':_0x2dd085(0x1b5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2dd085(0x3ab)]},ye=A[_0x2dd085(0x3f6)](function(_0x4b68e1,_0x2c851d){const _0x583cc1=_0x2dd085;return A[_0x583cc1(0x24c)](Ce,Object['assign']({},_0x4b68e1,{'id':_0x583cc1(0x3cd),'ref':_0x2c851d,'icon':Ze}));});ye['displayName']=_0x2dd085(0x1de);const Qe={'tag':_0x2dd085(0x313),'attrs':{'xmlns':_0x2dd085(0x40a),'fill':_0x2dd085(0x2b3),'viewBox':_0x2dd085(0x229),'width':_0x2dd085(0x304),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x2dd085(0x2d5),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2dd085(0x1a2),'strokeLinejoin':_0x2dd085(0x1a2),'strokeWidth':1.2}}]},{'tag':_0x2dd085(0x29a),'attrs':{},'children':[{'tag':_0x2dd085(0x1ab),'attrs':{'id':_0x2dd085(0x2af)},'children':[{'tag':_0x2dd085(0x3d9),'attrs':{'fill':_0x2dd085(0x1b5),'d':_0x2dd085(0x3c1),'transform':_0x2dd085(0x330)}}]}]}],'defIds':[_0x2dd085(0x2af)]},$e=A[_0x2dd085(0x3f6)](function(_0x26fe0c,_0xccd26e){const _0x450e33=_0x2dd085;return A[_0x450e33(0x24c)](Ce,Object[_0x450e33(0x389)]({},_0x26fe0c,{'id':_0x450e33(0x279),'ref':_0xccd26e,'icon':Qe}));});$e[_0x2dd085(0x43e)]='OnLineIcon';function et(_0x283880){const _0x4cc55b=_0x2dd085;switch(_0x283880){case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x36a)]:return _0x4cc55b(0x411);case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x25f)]:return'collabStatus.conflict';case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x1f6)]:return'collabStatus.fetchMiss';case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x19f)]:return _0x4cc55b(0x1e8);case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x3bf)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x4cc55b(0x2fe);case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x36c)]:case u[_0x4cc55b(0x3f8)]['PENDING']:return'collabStatus.synced';}}function tt(_0x2cba83){const _0x24e65e=_0x2dd085,{status$:_0x3b7c62}=_0x2cba83,_0x2af2c1=O[_0x24e65e(0x32f)](_0x3b7c62,u[_0x24e65e(0x3f8)][_0x24e65e(0x19f)]),_0x3406b9=O[_0x24e65e(0x22a)](a[_0x24e65e(0x388)]),_0x306236=O[_0x24e65e(0x22a)](u[_0x24e65e(0x395)]),_0x52a2a4=_0x2af2c1!==u['CollaborationStatus'][_0x24e65e(0x36a)],_0x1580c7=_0x3406b9['t'](et(_0x2af2c1)),_0x374bbd=_0x52a2a4?M[_0x24e65e(0x420)]($e,{}):M[_0x24e65e(0x420)](ye,{}),_0x461fdd=A['useCallback'](()=>{const _0x15c25e=_0x24e65e;_0x52a2a4||_0x306236[_0x15c25e(0x32b)]();},[_0x52a2a4,_0x306236]);function _0x56d4cc(){const _0x4f4e1c=_0x24e65e;return M['jsxs'](_0x4f4e1c(0x2d6),{'className':_0x4f4e1c(0x336),'onClick':_0x461fdd,'children':[M[_0x4f4e1c(0x420)](_0x4f4e1c(0x2d6),{'className':p[_0x4f4e1c(0x2ec)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x52a2a4,'univer-text-red-500':!_0x52a2a4}),'children':_0x374bbd}),M[_0x4f4e1c(0x420)](_0x4f4e1c(0x2d6),{'className':_0x4f4e1c(0x1e3),'children':_0x1580c7})]});}return _0x52a2a4?_0x56d4cc():M[_0x24e65e(0x420)](p[_0x24e65e(0x387)],{'title':_0x3406b9['t'](_0x24e65e(0x38e)),'children':_0x56d4cc()});}var st=Object[_0x2dd085(0x251)],it=(_0x2408ca,_0x411b08,_0x4fd7aa,_0x3af11a)=>{const _0x560fa1=_0x2dd085;for(var _0x359816=_0x3af11a>0x1?void 0x0:_0x3af11a?st(_0x411b08,_0x4fd7aa):_0x411b08,_0x1f01db=_0x2408ca[_0x560fa1(0x37e)]-0x1,_0x480f78;_0x1f01db>=0x0;_0x1f01db--)(_0x480f78=_0x2408ca[_0x1f01db])&&(_0x359816=_0x480f78(_0x359816)||_0x359816);return _0x359816;},K=(_0x2b5926,_0x2df599)=>(_0x210104,_0x2d85d8)=>_0x2df599(_0x210104,_0x2d85d8,_0x2b5926);exports[_0x2dd085(0x333)]=class extends a[_0x2dd085(0x41f)]{constructor(_0x214d8a,_0x36006c,_0x371819,_0x3b38a2){const _0x344c5a=_0x2dd085;super(),_(this,_0x344c5a(0x36b),new I[(_0x344c5a(0x21a))](u[_0x344c5a(0x3f8)][_0x344c5a(0x19f)])),(this[_0x344c5a(0x1b7)]=_0x214d8a,this[_0x344c5a(0x196)]=_0x36006c,this[_0x344c5a(0x240)]=_0x371819,this['_uiPartsService']=_0x3b38a2,this[_0x344c5a(0x3d5)](),this[_0x344c5a(0x20b)]());}[_0x2dd085(0x20b)](){const _0x268901=_0x2dd085;this[_0x268901(0x34a)](this[_0x268901(0x1b7)]['focused$'][_0x268901(0x3c3)](I[_0x268901(0x38b)](()=>{const _0x44ba29=_0x268901,_0x1e3070=this[_0x44ba29(0x1b7)][_0x44ba29(0x215)]();return _0x1e3070?this[_0x44ba29(0x240)]['getCollabEntity$'](_0x1e3070[_0x44ba29(0x343)]()):I['of'](null);}),I['switchMap'](_0x1b0286=>_0x1b0286?_0x1b0286[_0x268901(0x3fb)]:I['of'](u[_0x268901(0x3f8)][_0x268901(0x19f)])))[_0x268901(0x2f1)](_0x21838e=>{const _0x3b448b=_0x268901;this[_0x3b448b(0x36b)][_0x3b448b(0x1ea)](_0x21838e);}));}[_0x2dd085(0x3d5)](){const _0x6553a6=_0x2dd085;this[_0x6553a6(0x34a)](this['_uiPartsService']['registerComponent'](O['BuiltInUIPart']['HEADER_MENU'],()=>O[_0x6553a6(0x2bc)](nt({'status$':this['_status$'][_0x6553a6(0x433)]()}),this[_0x6553a6(0x196)])));}},exports[_0x2dd085(0x333)]=it([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x2dd085(0x287)](a[_0x2dd085(0x297)])),K(0x2,a[_0x2dd085(0x287)](u['CollaborationController'])),K(0x3,O[_0x2dd085(0x1f4)])],exports[_0x2dd085(0x333)]);function nt(_0x1e6bd9){const {status$:_0x459dbb}=_0x1e6bd9;return function(){const _0x51e92e=_0x3d42;return M[_0x51e92e(0x420)](tt,{'status$':_0x459dbb});};}const Te=a[_0x2dd085(0x381)](_0x2dd085(0x34e));var rt=Object['getOwnPropertyDescriptor'],ot=(_0x60de5,_0x1a5ac5,_0x506f37,_0x4f4670)=>{const _0x3ec232=_0x2dd085;for(var _0x298edd=_0x4f4670>0x1?void 0x0:_0x4f4670?rt(_0x1a5ac5,_0x506f37):_0x1a5ac5,_0xfcde6b=_0x60de5[_0x3ec232(0x37e)]-0x1,_0x12f051;_0xfcde6b>=0x0;_0xfcde6b--)(_0x12f051=_0x60de5[_0xfcde6b])&&(_0x298edd=_0x12f051(_0x298edd)||_0x298edd);return _0x298edd;},j=(_0x4e679c,_0x1dadb8)=>(_0x31c133,_0x4f1d8d)=>_0x1dadb8(_0x31c133,_0x4f1d8d,_0x4e679c);exports[_0x2dd085(0x2b7)]=class extends a[_0x2dd085(0x221)]{constructor(_0x3c2472,_0x4a3c88,_0xd45972,_0x460bb0,_0x5153d8){const _0x493ee9=_0x2dd085;super(),this[_0x493ee9(0x238)]=_0x3c2472,this['_logService']=_0x4a3c88,this[_0x493ee9(0x274)]=_0xd45972,this[_0x493ee9(0x30c)]=_0x460bb0,_0x5153d8?_0x5153d8==null||_0x5153d8['whenReady']()[_0x493ee9(0x36d)](()=>this[_0x493ee9(0x34b)]()):(this[_0x493ee9(0x31e)]['debug'](_0x493ee9(0x3a1),_0x493ee9(0x370)),this[_0x493ee9(0x34b)]());}async[_0x2dd085(0x34b)](){const _0x221051=_0x2dd085,_0x43265a=this['_urlService'][_0x221051(0x2cf)](_0x221051(0x258)),_0x1b2f4e=this['_urlService']['getParam'](_0x221051(0x2d1)),_0x5e729c=this[_0x221051(0x238)][_0x221051(0x2cf)]('subunit');if(!_0x43265a||!_0x1b2f4e){this[_0x221051(0x31e)]['debug'](_0x221051(0x3a1),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x23a832=await this[_0x221051(0x30c)][_0x221051(0x422)](_0x43265a,Number(_0x1b2f4e),_0x5e729c);_0x23a832&&_0x23a832 instanceof a[_0x221051(0x261)]&&this[_0x221051(0x3b5)](_0x23a832);}async['_setupSubUnitSync'](_0x5d97e1){const _0x1ba3d2=_0x2dd085;await this[_0x1ba3d2(0x23c)](_0x5d97e1),_0x5d97e1[_0x1ba3d2(0x1ef)]['pipe'](I[_0x1ba3d2(0x1af)](this[_0x1ba3d2(0x29d)]))[_0x1ba3d2(0x2f1)](_0x4d9b44=>{_0x4d9b44&&this['_updateURLWithCurrentState'](_0x4d9b44);}),this[_0x1ba3d2(0x238)][_0x1ba3d2(0x222)]['pipe'](I[_0x1ba3d2(0x1af)](this[_0x1ba3d2(0x29d)]))[_0x1ba3d2(0x2f1)](()=>this[_0x1ba3d2(0x23c)](_0x5d97e1));}[_0x2dd085(0x3ba)](_0x2b5c88,_0x5d2e48=!0x1){const _0x5eb465=_0x2dd085,_0x47a5a1=this[_0x5eb465(0x238)][_0x5eb465(0x2cf)](_0x5eb465(0x371));_0x2b5c88['getSheetId']()!==_0x47a5a1&&this[_0x5eb465(0x238)][_0x5eb465(0x292)](_0x5eb465(0x371),_0x2b5c88[_0x5eb465(0x29f)](),_0x5d2e48);}async['_updateSubUnitFromURLParams'](_0x2fd32c){const _0x2059b4=_0x2dd085;var _0x5367d0;const _0x563e83=this['_urlService']['getParam'](_0x2059b4(0x371));if(!_0x563e83||!_0x2fd32c[_0x2059b4(0x417)](_0x563e83)){const _0x73e20c=_0x2fd32c['getUnhiddenWorksheets']()[0x0],_0x1f8d3e=_0x2fd32c['getSheetBySheetId'](_0x73e20c);if(!_0x1f8d3e)return;this[_0x2059b4(0x3ba)](_0x1f8d3e,!0x0),await this[_0x2059b4(0x274)]['executeCommand'](g[_0x2059b4(0x42f)]['id'],{'unitId':_0x2fd32c[_0x2059b4(0x343)](),'subUnitId':_0x73e20c});return;}((_0x5367d0=_0x2fd32c[_0x2059b4(0x362)]())==null?void 0x0:_0x5367d0['getSheetId']())!==_0x563e83&&await this[_0x2059b4(0x274)][_0x2059b4(0x32e)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2fd32c[_0x2059b4(0x343)](),'subUnitId':_0x563e83});}},exports[_0x2dd085(0x2b7)]=ot([j(0x0,Te),j(0x1,a[_0x2dd085(0x19a)]),j(0x2,a[_0x2dd085(0x425)]),j(0x3,a[_0x2dd085(0x287)](u['DataLoaderService'])),j(0x4,a[_0x2dd085(0x402)](Xe[_0x2dd085(0x1e6)]))],exports[_0x2dd085(0x2b7)]);var at=Object['getOwnPropertyDescriptor'],ct=(_0x5bf6c9,_0x42b807,_0x160919,_0x28075e)=>{const _0x4e1b39=_0x2dd085;for(var _0x214a1c=_0x28075e>0x1?void 0x0:_0x28075e?at(_0x42b807,_0x160919):_0x42b807,_0x21292d=_0x5bf6c9[_0x4e1b39(0x37e)]-0x1,_0x14db62;_0x21292d>=0x0;_0x21292d--)(_0x14db62=_0x5bf6c9[_0x21292d])&&(_0x214a1c=_0x14db62(_0x214a1c)||_0x214a1c);return _0x214a1c;},Re=(_0x4d5de5,_0x1de776)=>(_0x30829f,_0x16ab7c)=>_0x1de776(_0x30829f,_0x16ab7c,_0x4d5de5);let de=class extends a[_0x2dd085(0x221)]{constructor(_0x3bf2d7,_0x555cdf){const _0x43b1bb=_0x2dd085;super(),this[_0x43b1bb(0x323)]=_0x3bf2d7,this[_0x43b1bb(0x1b3)]=_0x555cdf,this[_0x43b1bb(0x34b)]();}['_init'](){const _0x215bbb=_0x2dd085,_0x5a425f=this;this[_0x215bbb(0x34a)](this[_0x215bbb(0x323)][_0x215bbb(0x2d7)]({'onBeforePasteImage':async _0x189808=>{const _0x1172d1=_0x215bbb,_0x1714e9=await _0x5a425f[_0x1172d1(0x1b3)][_0x1172d1(0x2ee)](_0x189808);return _0x1714e9?{'source':_0x1714e9[_0x1172d1(0x308)],'imageSourceType':_0x1714e9['imageSourceType']}:null;}}));}};de=ct([Re(0x0,T[_0x2dd085(0x31c)]),Re(0x1,Ke[_0x2dd085(0x1f3)])],de);const be=['purple.300',_0x2dd085(0x1bb),_0x2dd085(0x2fd),_0x2dd085(0x270),'blue.400',_0x2dd085(0x272)];class pe extends a[_0x2dd085(0x41f)]{constructor(){const _0x2d1434=_0x2dd085;super(...arguments),_(this,_0x2d1434(0x2ac),new Map()),_(this,_0x2d1434(0x28a),0x0);}[_0x2dd085(0x1e7)](_0x45b3aa){const _0x1c84c3=_0x2dd085;if(this[_0x1c84c3(0x2ac)][_0x1c84c3(0x3c7)](_0x45b3aa))return this['_assignedColors']['get'](_0x45b3aa);const _0x30ac3f=be[this[_0x1c84c3(0x28a)]];return this[_0x1c84c3(0x28a)]=(this[_0x1c84c3(0x28a)]+0x1)%be['length'],this[_0x1c84c3(0x2ac)][_0x1c84c3(0x262)](_0x45b3aa,_0x30ac3f),_0x30ac3f;}}function xe(_0x17eafb){const _0x5f37d2=_0x2dd085;let _0x322ba1='';for(const _0x1477ee of _0x17eafb){const {startOffset:_0x2e32d8,endOffset:_0x3dc181,isActive:_0x4fdca9,rangeType:_0xfccdea,segmentId:_0x512a2d,segmentPage:_0x14b848}=_0x1477ee;_0x322ba1[_0x5f37d2(0x37e)]&&(_0x322ba1+=','),_0x322ba1+=_0x2e32d8+':'+_0x3dc181+':'+(_0x4fdca9?'1':'0')+':'+_0xfccdea+':'+_0x512a2d+':'+_0x14b848;}return _0x322ba1;}function lt(_0x1111a3){const _0x13f3e3=_0x2dd085,_0xe27b95=_0x1111a3['split'](','),_0x6def58=[];for(const _0x10b69e of _0xe27b95){const [_0x563170,_0x2b3a13,_0x24d984,_0x554b96,_0x5712a9,_0x1999d6]=_0x10b69e[_0x13f3e3(0x399)](':');_0x6def58['push']({'startOffset':Number(_0x563170),'endOffset':Number(_0x2b3a13),'collapsed':_0x563170===_0x2b3a13,'isActive':_0x24d984==='1','rangeType':_0x554b96===a[_0x13f3e3(0x38f)]['TEXT']?a[_0x13f3e3(0x38f)][_0x13f3e3(0x3c6)]:a[_0x13f3e3(0x38f)][_0x13f3e3(0x219)],'segmentId':typeof _0x5712a9==_0x13f3e3(0x3ec)?String(_0x5712a9):'','segmentPage':Number(_0x1999d6!=null?_0x1999d6:-0x1)});}return _0x6def58['some'](_0x5764aa=>_0x5764aa[_0x13f3e3(0x408)])||(_0x6def58[0x0][_0x13f3e3(0x408)]=!0x0),_0x6def58;}class Oe extends a[_0x2dd085(0x221)]{constructor(){super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,'collabCursorState$',this['_collabCursorState$']['asObservable']());}[_0x2dd085(0x23e)](_0x275be4){const _0x1513d1=_0x2dd085,{unitID:_0x1cfbcd,memberID:_0x482dd4,textRanges:_0x1819ef}=_0x275be4,_0x15e95b=xe(_0x1819ef);if(_0x15e95b==='')return;const _0x50ccb4={'unitID':_0x1cfbcd,'memberID':_0x482dd4,'selection':_0x15e95b};this[_0x1513d1(0x37d)][_0x1513d1(0x1ea)](_0x50ccb4);}}var _t=Object[_0x2dd085(0x251)],ht=(_0x535fe,_0x35cbff,_0x31f5e3,_0x2a889e)=>{const _0x441585=_0x2dd085;for(var _0x269c6d=_0x2a889e>0x1?void 0x0:_0x2a889e?_t(_0x35cbff,_0x31f5e3):_0x35cbff,_0x40329b=_0x535fe[_0x441585(0x37e)]-0x1,_0x56e145;_0x40329b>=0x0;_0x40329b--)(_0x56e145=_0x535fe[_0x40329b])&&(_0x269c6d=_0x56e145(_0x269c6d)||_0x269c6d);return _0x269c6d;},U=(_0x4c9c6a,_0x44da04)=>(_0xaec59a,_0x43236)=>_0x44da04(_0xaec59a,_0x43236,_0x4c9c6a);const ut=0x12c,It=0x64;let fe=class extends a[_0x2dd085(0x221)]{constructor(_0x49dd96,_0x23f165,_0x16f53a,_0x44c9f4,_0x1b4901,_0x38d1f1,_0x32396a,_0x45b20b,_0x4d6fee){const _0x37fba8=_0x2dd085;super(),_(this,_0x37fba8(0x276),!0x1),_(this,_0x37fba8(0x34b),!0x1),_(this,_0x37fba8(0x291),new I[(_0x37fba8(0x21a))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0x37fba8(0x1a9),new I[(_0x37fba8(0x21a))]([])),_(this,'roomMembers$',this[_0x37fba8(0x1a9)][_0x37fba8(0x3c3)](I[_0x37fba8(0x1bd)](ut))),_(this,'_updateLocalCursor',a[_0x37fba8(0x2fa)](_0x5a5191=>{const _0x10833a=_0x37fba8,_0x374555={'eventID':v['CollaborationEvent'][_0x10833a(0x25d)],'data':{'unitID':this[_0x10833a(0x1b8)],'memberID':this[_0x10833a(0x2c7)][_0x10833a(0x368)](),'selection':xe(_0x5a5191)}};this[_0x10833a(0x2c7)][_0x10833a(0x2a3)](_0x374555,this[_0x10833a(0x1b8)]);},It)),(this['unitID']=_0x49dd96,this[_0x37fba8(0x2c7)]=_0x23f165,this[_0x37fba8(0x196)]=_0x16f53a,this[_0x37fba8(0x1a0)]=_0x44c9f4,this[_0x37fba8(0x2e7)]=_0x1b4901,this[_0x37fba8(0x436)]=_0x38d1f1,this['_transformService']=_0x32396a,this[_0x37fba8(0x1b7)]=_0x45b20b,this[_0x37fba8(0x274)]=_0x4d6fee);}get[_0x2dd085(0x216)](){const _0x45c55e=_0x2dd085;return this[_0x45c55e(0x291)][_0x45c55e(0x33a)]();}get[_0x2dd085(0x314)](){const _0x8f6d42=_0x2dd085;return this[_0x8f6d42(0x1a9)][_0x8f6d42(0x33a)]();}[_0x2dd085(0x20f)](){const _0x1f8e22=_0x2dd085;super[_0x1f8e22(0x20f)](),this[_0x1f8e22(0x291)][_0x1f8e22(0x1ea)](new Map()),this['_cursorInfo$'][_0x1f8e22(0x412)](),this[_0x1f8e22(0x1a9)]['next']([]),this[_0x1f8e22(0x1a9)][_0x1f8e22(0x412)]();}[_0x2dd085(0x331)](){const _0x5a16c8=_0x2dd085;this[_0x5a16c8(0x34b)]||(this[_0x5a16c8(0x34b)]=!0x0,this['_session'][_0x5a16c8(0x3a0)][_0x5a16c8(0x3c3)](I['takeUntil'](this['dispose$']))['subscribe'](_0x456dc6=>{const _0x59ac2f=_0x5a16c8;_0x456dc6===u['SessionStatus'][_0x59ac2f(0x1f2)]?this['_toggleOnline']():this[_0x59ac2f(0x237)]();}),this[_0x5a16c8(0x2c7)][_0x5a16c8(0x375)][_0x5a16c8(0x3c3)](I[_0x5a16c8(0x1af)](this[_0x5a16c8(0x29d)]))[_0x5a16c8(0x2f1)](_0x3e1310=>{const _0x1a191d=_0x5a16c8,_0x1a9b0b=_0x3e1310[_0x1a191d(0x2d4)];_0x1a9b0b===v[_0x1a191d(0x3bc)][_0x1a191d(0x25d)]&&this[_0x1a191d(0x265)](_0x3e1310),_0x1a9b0b===v[_0x1a191d(0x3bc)][_0x1a191d(0x34d)]&&this[_0x1a191d(0x2e3)](_0x3e1310);}),this[_0x5a16c8(0x34a)](this[_0x5a16c8(0x274)][_0x5a16c8(0x2dc)](_0xe5fb48=>{const _0x24cd68=_0x5a16c8,_0x3d286f=_0xe5fb48[_0x24cd68(0x1e2)];_0x3d286f!=null&&this[_0x24cd68(0x276)]&&_0xe5fb48['id']===W[_0x24cd68(0x21e)]['id']&&_0x3d286f[_0x24cd68(0x1b1)]===this[_0x24cd68(0x1b8)]&&_0x3d286f['isEditing']===!0x1&&_0x3d286f[_0x24cd68(0x3e3)][_0x24cd68(0x37e)]>0x0&&this[_0x24cd68(0x2bd)](_0x3d286f[_0x24cd68(0x3e3)]);})),this[_0x5a16c8(0x436)][_0x5a16c8(0x2ea)]['pipe'](I[_0x5a16c8(0x1af)](this[_0x5a16c8(0x29d)]))[_0x5a16c8(0x2f1)](_0x21f635=>{const _0x22d0ce=_0x5a16c8;if((_0x21f635==null?void 0x0:_0x21f635[_0x22d0ce(0x1b8)])!==this[_0x22d0ce(0x1b8)])return;const _0x2e4434={'eventID':v[_0x22d0ce(0x3bc)][_0x22d0ce(0x25d)],'data':_0x21f635};this[_0x22d0ce(0x265)](_0x2e4434);}),this[_0x5a16c8(0x34a)](this[_0x5a16c8(0x274)][_0x5a16c8(0x2dc)](_0x1c3b17=>{const _0x36245c=_0x5a16c8;if(_0x1c3b17['params']==null)return;const _0xe4fcb5=_0x1c3b17[_0x36245c(0x1e2)];if(_0x1c3b17['id']!==W[_0x36245c(0x3db)]['id']||_0xe4fcb5[_0x36245c(0x1b1)]!==this[_0x36245c(0x1b8)])return;const _0x370e63={'id':_0x36245c(0x1d0),'params':_0xe4fcb5},_0x1d5023=this[_0x36245c(0x216)];for(const [_0x294db2,_0x539dac]of _0x1d5023){const _0x17bc62={'id':_0x36245c(0x1d0),'params':{'unitId':this[_0x36245c(0x1b8)],'actions':null,'textRanges':_0x539dac[_0x36245c(0x3e3)]}},_0x1eb22d=this['_transformService'][_0x36245c(0x320)](_0x370e63,_0x17bc62,!0x1);if(v[_0x36245c(0x24f)](_0x1eb22d))throw _0x1eb22d['error'];_0x1d5023['set'](_0x294db2,{..._0x539dac,'ranges':_0x1eb22d[_0x36245c(0x27e)][_0x36245c(0x1e2)][_0x36245c(0x2ad)]});}queueMicrotask(()=>{const _0x3255e8=_0x36245c;this[_0x3255e8(0x291)][_0x3255e8(0x1ea)](_0x1d5023);});})));}[_0x2dd085(0x265)](_0x232018){const _0x49becb=_0x2dd085;var _0x76faa1,_0xf37a15;const {memberID:_0x37616d,selection:_0x13ec4a}=_0x232018[_0x49becb(0x332)],_0x13a494=lt(_0x13ec4a),_0x173bec=(_0xf37a15=(_0x76faa1=this['_memberService']['getMember'](this[_0x49becb(0x1b8)],_0x37616d))==null?void 0x0:_0x76faa1[_0x49becb(0x31f)])!=null?_0xf37a15:_0x49becb(0x2f0),_0x33b1ab={'color':this[_0x49becb(0x1a0)]['assignAColorForMemberID'](_0x37616d),'name':_0x173bec,'ranges':_0x13a494},_0x397b9c=this[_0x49becb(0x216)];_0x397b9c['set'](_0x37616d,_0x33b1ab),this[_0x49becb(0x291)][_0x49becb(0x1ea)](_0x397b9c);}[_0x2dd085(0x2e3)](_0x2017d4){const _0xd2c708=_0x2dd085,{memberID:_0x84a595}=_0x2017d4[_0xd2c708(0x332)],_0x19de49=this[_0xd2c708(0x216)];_0x19de49[_0xd2c708(0x35c)](_0x84a595),this['_cursorInfo$']['next'](_0x19de49);}[_0x2dd085(0x30b)](){const _0x290760=_0x2dd085;var _0x26645e;if(this[_0x290760(0x276)]=!0x0,((_0x26645e=this[_0x290760(0x1b7)][_0x290760(0x215)]())==null?void 0x0:_0x26645e['getUnitId']())!==this[_0x290760(0x1b8)])return;const _0x255180=this['_injector'][_0x290760(0x1d6)](W[_0x290760(0x202)])[_0x290760(0x3c8)]();Array[_0x290760(0x2d8)](_0x255180)&&_0x255180[_0x290760(0x37e)]>0x0&&this[_0x290760(0x2bd)](_0x255180);}[_0x2dd085(0x237)](){const _0x1eaeac=_0x2dd085;this[_0x1eaeac(0x276)]=!0x1;}};fe=ht([U(0x2,a['Inject'](a['Injector'])),U(0x3,a['Inject'](pe)),U(0x4,a[_0x2dd085(0x287)](u[_0x2dd085(0x31b)])),U(0x5,a[_0x2dd085(0x287)](Oe)),U(0x6,v[_0x2dd085(0x268)]),U(0x7,a[_0x2dd085(0x23a)]),U(0x8,a['ICommandService'])],fe);var St=Object[_0x2dd085(0x251)],dt=(_0x2a5112,_0x23ad92,_0x1d554f,_0x3c71c5)=>{const _0x3f7712=_0x2dd085;for(var _0x484c28=_0x3c71c5>0x1?void 0x0:_0x3c71c5?St(_0x23ad92,_0x1d554f):_0x23ad92,_0x40b6a8=_0x2a5112[_0x3f7712(0x37e)]-0x1,_0x1d2bca;_0x40b6a8>=0x0;_0x40b6a8--)(_0x1d2bca=_0x2a5112[_0x40b6a8])&&(_0x484c28=_0x1d2bca(_0x484c28)||_0x484c28);return _0x484c28;},w=(_0x3c36f8,_0xd882fb)=>(_0x102b20,_0x3e7958)=>_0xd882fb(_0x102b20,_0x3e7958,_0x3c36f8);const ft=0x12c,mt=0x64,gt=()=>{let _0x50d659=[],_0x451ef4=!0x1;return _0x5c4eef=>{const _0x2c5478=_0x3d42;_0x50d659[_0x2c5478(0x3f7)](_0x5c4eef),_0x451ef4||(_0x451ef4=!0x0,setTimeout(()=>{const _0x2e30e3=_0x2c5478;_0x50d659[_0x2e30e3(0x3d6)](_0xd3f6ea=>_0xd3f6ea()),_0x50d659=[],_0x451ef4=!0x1;}));};};let me=class extends a[_0x2dd085(0x221)]{constructor(_0x1f4453,_0x43598d,_0x5c16e3,_0x58aba2,_0x1caf80,_0x4483a4,_0x304e6c,_0x1b8867){const _0x2b252d=_0x2dd085;super(),_(this,_0x2b252d(0x276),!0x1),_(this,_0x2b252d(0x34b),!0x1),_(this,_0x2b252d(0x291),new I[(_0x2b252d(0x21a))](new Map())),_(this,_0x2b252d(0x3cb),this[_0x2b252d(0x291)][_0x2b252d(0x433)]()),_(this,_0x2b252d(0x1a9),new I[(_0x2b252d(0x21a))]([])),_(this,_0x2b252d(0x250),this[_0x2b252d(0x1a9)][_0x2b252d(0x3c3)](I[_0x2b252d(0x1bd)](ft))),_(this,_0x2b252d(0x2bd),a[_0x2b252d(0x2fa)]((_0x511181,_0x357fef)=>{const _0x1ee5ba=_0x2b252d,_0x1014bd={'eventID':v[_0x1ee5ba(0x3bc)][_0x1ee5ba(0x25d)],'data':{'unitID':this[_0x1ee5ba(0x1b8)],'memberID':this[_0x1ee5ba(0x2c7)][_0x1ee5ba(0x368)](),'selection':x[_0x1ee5ba(0x428)](_0x511181,_0x357fef[_0x1ee5ba(0x3e8)])}};this[_0x1ee5ba(0x2c7)][_0x1ee5ba(0x2a3)](_0x1014bd,this[_0x1ee5ba(0x1b8)]);},mt)),(this[_0x2b252d(0x1b8)]=_0x1f4453,this[_0x2b252d(0x2c7)]=_0x43598d,this[_0x2b252d(0x196)]=_0x5c16e3,this[_0x2b252d(0x1a0)]=_0x58aba2,this[_0x2b252d(0x2e7)]=_0x1caf80,this['_univerInstanceService']=_0x4483a4,this['_commandService']=_0x304e6c,this[_0x2b252d(0x247)]=_0x1b8867);}get[_0x2dd085(0x216)](){const _0x247a6f=_0x2dd085;return this[_0x247a6f(0x291)][_0x247a6f(0x33a)]();}get[_0x2dd085(0x314)](){const _0x131994=_0x2dd085;return this[_0x131994(0x1a9)][_0x131994(0x33a)]();}[_0x2dd085(0x20f)](){const _0x39b61c=_0x2dd085;super[_0x39b61c(0x20f)](),this['_cursorInfo$']['next'](new Map()),this[_0x39b61c(0x291)][_0x39b61c(0x412)](),this[_0x39b61c(0x1a9)]['next']([]),this[_0x39b61c(0x1a9)][_0x39b61c(0x412)]();}[_0x2dd085(0x331)](){const _0x6133bb=_0x2dd085;this['_init']||(this[_0x6133bb(0x34b)]=!0x0,this[_0x6133bb(0x2c7)][_0x6133bb(0x3a0)][_0x6133bb(0x3c3)](I[_0x6133bb(0x1af)](this[_0x6133bb(0x29d)]))[_0x6133bb(0x2f1)](_0x1f999a=>{const _0x42bbf5=_0x6133bb;_0x1f999a===u['SessionStatus']['ONLINE']?this[_0x42bbf5(0x30b)]():this[_0x42bbf5(0x237)]();}),this[_0x6133bb(0x2c7)][_0x6133bb(0x375)][_0x6133bb(0x3c3)](I[_0x6133bb(0x1af)](this['dispose$']))[_0x6133bb(0x2f1)](_0x419c2c=>{const _0x1f813a=_0x6133bb,_0x97bf97=_0x419c2c['eventID'];_0x97bf97===v[_0x1f813a(0x3bc)][_0x1f813a(0x25d)]&&this[_0x1f813a(0x265)](_0x419c2c),_0x97bf97===v[_0x1f813a(0x3bc)]['USERS_LEAVE']&&this[_0x1f813a(0x2e3)](_0x419c2c);}),this[_0x6133bb(0x31a)](),this[_0x6133bb(0x34a)](this[_0x6133bb(0x274)][_0x6133bb(0x2dc)](_0x5b665e=>{const _0x101ee1=_0x6133bb;if(this[_0x101ee1(0x276)]&&_0x5b665e['id']===g[_0x101ee1(0x1fa)]['id']&&_0x5b665e[_0x101ee1(0x1e2)]['unitId']===this[_0x101ee1(0x1b8)]){const _0x49bf75=_0x5b665e['params'];this['_updateLocalCursor'](_0x49bf75[_0x101ee1(0x38c)],_0x49bf75['selections'][0x0]);}})));}[_0x2dd085(0x265)](_0x3786a6){const _0x20834c=_0x2dd085;var _0x545bcd,_0x5c5bd9;const {memberID:_0x29fcf4,selection:_0x132b96}=_0x3786a6[_0x20834c(0x332)],{sheetName:_0x44c822,range:_0x2c3fbe}=x['deserializeRangeWithSheet'](_0x132b96),_0x57cad7={'name':(_0x5c5bd9=(_0x545bcd=this[_0x20834c(0x2e7)][_0x20834c(0x43b)](this[_0x20834c(0x1b8)],_0x29fcf4))==null?void 0x0:_0x545bcd[_0x20834c(0x31f)])!=null?_0x5c5bd9:'Unknown\x20user','range':this[_0x20834c(0x2e6)](_0x44c822,_0x2c3fbe),'sheetID':_0x44c822,'color':this[_0x20834c(0x1a0)]['assignAColorForMemberID'](_0x29fcf4),'selection':_0x132b96},_0x40c44f=this[_0x20834c(0x216)];_0x40c44f[_0x20834c(0x262)](_0x29fcf4,_0x57cad7),this[_0x20834c(0x291)]['next'](_0x40c44f);}[_0x2dd085(0x2e3)](_0x17e1b6){const _0x52eb7b=_0x2dd085,{memberID:_0x1d8edc}=_0x17e1b6[_0x52eb7b(0x332)],_0xdd4547=this['cursorInfo'];_0xdd4547['delete'](_0x1d8edc),this[_0x52eb7b(0x291)][_0x52eb7b(0x1ea)](_0xdd4547);}[_0x2dd085(0x2e6)](_0x44fe23,_0x5d6015){const _0x2a3b33=_0x2dd085;var _0x43e7d9,_0x57d287;const _0x472940=(_0x57d287=(_0x43e7d9=this[_0x2a3b33(0x1b7)][_0x2a3b33(0x23b)](this['unitID']))==null?void 0x0:_0x43e7d9['getSheetBySheetId'](_0x44fe23))==null?void 0x0:_0x57d287[_0x2a3b33(0x259)]();return(_0x472940==null?void 0x0:_0x472940[_0x2a3b33(0x241)](_0x4d6ce2=>a[_0x2a3b33(0x3e0)]['contains'](_0x4d6ce2,_0x5d6015)))||_0x5d6015;}[_0x2dd085(0x31a)](){const _0x1d0e6b=_0x2dd085,_0x5b956a=new a['DisposableCollection'](),_0x5c6af7=gt(),_0xaf0d78=()=>{const _0x3038f3=_0x3d42;_0x5b956a[_0x3038f3(0x20f)]();const _0x45c623=(_0x2abc85,_0x4748fc,_0xd155f2,_0x1af59f)=>{const _0x540787=_0x3038f3;let _0x4c9944=[];switch(_0x2abc85['id']){case g[_0x540787(0x2c2)][_0x540787(0x434)]:{_0x4c9944=g[_0x540787(0x38d)](_0x2abc85,_0x1af59f);break;}case g[_0x540787(0x2c2)][_0x540787(0x21f)]:{_0x4c9944=g[_0x540787(0x396)](_0x2abc85,_0x1af59f);break;}case g['EffectRefRangId'][_0x540787(0x214)]:{_0x4c9944=g[_0x540787(0x2b5)](_0x2abc85,_0x1af59f);break;}case g[_0x540787(0x2c2)][_0x540787(0x3e5)]:{_0x4c9944=g[_0x540787(0x235)](_0x2abc85,_0x1af59f);break;}case g['EffectRefRangId'][_0x540787(0x41a)]:{_0x4c9944=g['handleInsertRangeMoveRight'](_0x2abc85,_0x1af59f);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x4c9944=g[_0x540787(0x372)](_0x2abc85,_0x1af59f);break;}case g[_0x540787(0x2c2)]['MoveRangeCommandId']:{_0x4c9944=g[_0x540787(0x21c)](_0x2abc85,_0x1af59f);break;}case g[_0x540787(0x2c2)]['RemoveColCommandId']:{_0x4c9944=g[_0x540787(0x35e)](_0x2abc85,_0x1af59f);break;}case g['EffectRefRangId'][_0x540787(0x340)]:{_0x4c9944=g['handleIRemoveRow'](_0x2abc85,_0x1af59f);break;}}const _0x2e5dec=g[_0x540787(0x2bb)](_0x4c9944,_0x1af59f),_0x4800f=this[_0x540787(0x216)][_0x540787(0x1d6)](_0x4748fc);if(_0x4800f&&_0x2e5dec){const _0x585769={..._0x4800f,'range':_0x2e5dec};this[_0x540787(0x216)][_0x540787(0x262)](_0x4748fc,_0x585769),_0x5c6af7(()=>{const _0x4bcf5d=_0x540787,_0x1f10d4=this[_0x4bcf5d(0x247)]['registerRefRange'](_0x2e5dec,_0x2cf851=>(_0x1f10d4[_0x4bcf5d(0x20f)](),_0x45c623(_0x2cf851,_0x4748fc,_0xd155f2,_0x2e5dec)));_0x5b956a[_0x4bcf5d(0x30e)](_0x1f10d4);});}return{'redos':[],'undos':[]};};this[_0x3038f3(0x216)][_0x3038f3(0x3d6)]((_0x54c823,_0x5c48b6)=>{const _0x2a4edd=_0x3038f3,{range:_0x2f14e9,sheetID:_0x44e030}=_0x54c823,_0x6ffe9c=this[_0x2a4edd(0x247)][_0x2a4edd(0x366)](_0x2f14e9,_0x5d8832=>(_0x6ffe9c[_0x2a4edd(0x20f)](),_0x45c623(_0x5d8832,_0x5c48b6,_0x44e030,_0x2f14e9)));_0x5b956a['add'](_0x6ffe9c);});};this['disposeWithMe'](a['toDisposable'](this[_0x1d0e6b(0x291)]['subscribe'](()=>{_0xaf0d78();})));}[_0x2dd085(0x30b)](){const _0x558556=_0x2dd085;var _0x29056a,_0x52812c;if(this[_0x558556(0x276)]=!0x0,((_0x29056a=this[_0x558556(0x1b7)][_0x558556(0x215)]())==null?void 0x0:_0x29056a[_0x558556(0x343)]())!==this[_0x558556(0x1b8)])return;const _0x343f0f=(_0x52812c=this[_0x558556(0x196)][_0x558556(0x1d6)](g[_0x558556(0x1d5)])[_0x558556(0x38a)]())==null?void 0x0:_0x52812c[0x0],_0x23937d=this['_univerInstanceService'][_0x558556(0x384)](a[_0x558556(0x29c)][_0x558556(0x3cf)])[_0x558556(0x362)]();_0x343f0f&&_0x23937d&&this[_0x558556(0x2bd)](_0x23937d[_0x558556(0x29f)](),_0x343f0f);}[_0x2dd085(0x237)](){this['_online']=!0x1;}};me=dt([w(0x2,a['Inject'](a[_0x2dd085(0x297)])),w(0x3,a[_0x2dd085(0x287)](pe)),w(0x4,a['Inject'](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2dd085(0x425)]),w(0x7,a['Inject'](g[_0x2dd085(0x3cc)]))],me);var vt=Object[_0x2dd085(0x251)],Et=(_0x2085d0,_0x27ccd2,_0x4f85b9,_0x1bfc92)=>{for(var _0x571e4f=_0x1bfc92>0x1?void 0x0:_0x1bfc92?vt(_0x27ccd2,_0x4f85b9):_0x27ccd2,_0x304407=_0x2085d0['length']-0x1,_0x1555bc;_0x304407>=0x0;_0x304407--)(_0x1555bc=_0x2085d0[_0x304407])&&(_0x571e4f=_0x1555bc(_0x571e4f)||_0x571e4f);return _0x571e4f;},oe=(_0x56599b,_0x47f3ef)=>(_0x27fb71,_0x2cbecb)=>_0x47f3ef(_0x27fb71,_0x2cbecb,_0x56599b);let B=class extends a['RxDisposable']{constructor(_0x3e482f,_0x3d4831,_0x1610f7){const _0x513f7a=_0x2dd085;super(),_(this,_0x513f7a(0x439),new Map()),_(this,_0x513f7a(0x218),new I[(_0x513f7a(0x1f7))]()),(this[_0x513f7a(0x1b7)]=_0x3e482f,this[_0x513f7a(0x196)]=_0x3d4831,this[_0x513f7a(0x41c)]=_0x1610f7,this[_0x513f7a(0x34b)]());}[_0x2dd085(0x20f)](){const _0x10d5be=_0x2dd085;super[_0x10d5be(0x20f)](),this['_entityInit$'][_0x10d5be(0x412)](),this[_0x10d5be(0x439)][_0x10d5be(0x3d6)](_0x3a0595=>_0x3a0595[_0x10d5be(0x20f)]());}['getCollabCursors$'](_0x476fc4){const _0x5ccc76=_0x2dd085;return this['_entities'][_0x5ccc76(0x3c7)](_0x476fc4)?this[_0x5ccc76(0x439)][_0x5ccc76(0x1d6)](_0x476fc4)[_0x5ccc76(0x3cb)]:this[_0x5ccc76(0x218)][_0x5ccc76(0x3c3)](I[_0x5ccc76(0x2a6)](_0x13937c=>_0x13937c[_0x5ccc76(0x1b8)]===_0x476fc4),I['switchMap'](_0x47b4f6=>_0x47b4f6[_0x5ccc76(0x3cb)]));}['_init'](){const _0x38c819=_0x2dd085;this[_0x38c819(0x1b7)][_0x38c819(0x194)](a[_0x38c819(0x29c)][_0x38c819(0x3cf)])[_0x38c819(0x3c3)](I[_0x38c819(0x1af)](this[_0x38c819(0x29d)]))[_0x38c819(0x2f1)](async _0x4f30df=>{const _0x2f6bcb=_0x38c819,_0x1452bc=_0x4f30df[_0x2f6bcb(0x343)](),_0x254f9d=await this['_startSheetCollabCursor'](_0x1452bc);this[_0x2f6bcb(0x218)]['next'](_0x254f9d),this[_0x2f6bcb(0x439)][_0x2f6bcb(0x262)](_0x1452bc,_0x254f9d);}),this[_0x38c819(0x1b7)][_0x38c819(0x194)](a[_0x38c819(0x29c)][_0x38c819(0x312)])[_0x38c819(0x3c3)](I['takeUntil'](this[_0x38c819(0x29d)]))[_0x38c819(0x3c3)](I[_0x38c819(0x2a6)](_0x2f2876=>!_0x2f2876[_0x38c819(0x343)]()['startsWith']('__')))[_0x38c819(0x2f1)](async _0x42e441=>{const _0x803214=_0x38c819,_0x32308f=_0x42e441[_0x803214(0x343)](),_0x311cda=await this['_startDocCollabCursor'](_0x32308f);this[_0x803214(0x218)]['next'](_0x311cda),this[_0x803214(0x439)]['set'](_0x32308f,_0x311cda);}),I['merge'](this[_0x38c819(0x1b7)][_0x38c819(0x2cd)](a[_0x38c819(0x29c)][_0x38c819(0x312)]),this[_0x38c819(0x1b7)][_0x38c819(0x2cd)](a[_0x38c819(0x29c)][_0x38c819(0x3cf)]))[_0x38c819(0x3c3)](I[_0x38c819(0x1af)](this[_0x38c819(0x29d)]))['subscribe'](_0x36f6b2=>{const _0x47539f=_0x38c819,_0x51855c=_0x36f6b2[_0x47539f(0x343)](),_0x332bea=this[_0x47539f(0x439)][_0x47539f(0x1d6)](_0x51855c);_0x332bea&&(_0x332bea[_0x47539f(0x20f)](),this[_0x47539f(0x439)][_0x47539f(0x35c)](_0x51855c));});}async['_startSheetCollabCursor'](_0x2453d6){const _0x3f11fe=_0x2dd085,_0x394cc3=await this[_0x3f11fe(0x41c)]['requireSession'](_0x2453d6),_0x1a498c=this[_0x3f11fe(0x196)][_0x3f11fe(0x3a9)](me,_0x2453d6,_0x394cc3);return _0x1a498c[_0x3f11fe(0x331)](),_0x1a498c;}async[_0x2dd085(0x28e)](_0x3210c5){const _0x588eb0=_0x2dd085,_0x3aecf6=await this['_collabSessionService'][_0x588eb0(0x2b2)](_0x3210c5),_0x138997=this[_0x588eb0(0x196)]['createInstance'](fe,_0x3210c5,_0x3aecf6);return _0x138997[_0x588eb0(0x331)](),_0x138997;}};B=Et([oe(0x0,a['IUniverInstanceService']),oe(0x1,a['Inject'](a[_0x2dd085(0x297)])),oe(0x2,a[_0x2dd085(0x287)](u['CollaborationSessionService']))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function Tt(_0xd1050b,_0x33a4e0){const _0x51c277=_0x2dd085;let {radius:_0x43a744,width:_0x5aeedf,height:_0x42db10}=_0x33a4e0;_0x43a744=_0x43a744!=null?_0x43a744:0x0,_0x5aeedf=_0x5aeedf!=null?_0x5aeedf:0x1e,_0x42db10=_0x42db10!=null?_0x42db10:0x1e;let _0x279c40=0x0,_0x2b3756=0x0,_0x35bd69=0x0;_0x279c40=_0x2b3756=_0x35bd69=Math['min'](_0x43a744,_0x5aeedf/0x2,_0x42db10/0x2),_0xd1050b['beginPath'](),_0xd1050b[_0x51c277(0x24e)](_0x279c40,0x0),_0xd1050b[_0x51c277(0x283)](_0x5aeedf-_0x2b3756,0x0),_0xd1050b[_0x51c277(0x1be)](_0x5aeedf-_0x2b3756,_0x2b3756,_0x2b3756,Math['PI']*0x3/0x2,0x0,!0x1),_0xd1050b['lineTo'](_0x5aeedf,_0x42db10-_0x35bd69),_0xd1050b[_0x51c277(0x1be)](_0x5aeedf-_0x35bd69,_0x42db10-_0x35bd69,_0x35bd69,0x0,Math['PI']/0x2,!0x1),_0xd1050b[_0x51c277(0x283)](0x0,_0x42db10),_0xd1050b[_0x51c277(0x283)](0x0,_0x279c40),_0xd1050b[_0x51c277(0x1be)](_0x279c40,_0x279c40,_0x279c40,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xd1050b[_0x51c277(0x42e)](),_0x33a4e0[_0x51c277(0x421)]&&(_0xd1050b[_0x51c277(0x301)](),_0xd1050b[_0x51c277(0x349)]=_0x33a4e0['fill'],_0x33a4e0[_0x51c277(0x2bf)]===_0x51c277(0x2b1)?_0xd1050b['fill'](_0x51c277(0x2b1)):_0xd1050b[_0x51c277(0x421)](),_0xd1050b[_0x51c277(0x2da)]());}class ie extends C['Shape']{constructor(_0x7089d3,_0x2e0ee7){const _0x179e80=_0x2dd085;super(_0x7089d3,_0x2e0ee7),_(this,_0x179e80(0x19d)),_(this,_0x179e80(0x33d)),(this[_0x179e80(0x19d)]=_0x2e0ee7==null?void 0x0:_0x2e0ee7[_0x179e80(0x19d)],this[_0x179e80(0x33d)]=_0x2e0ee7==null?void 0x0:_0x2e0ee7[_0x179e80(0x33d)]);}static['drawWith'](_0x35c956,_0x321343){const _0x3bc2c7=_0x2dd085,{text:_0x2a79ec,color:_0x3ab2da}=_0x321343;_0x35c956['save'](),_0x35c956[_0x3bc2c7(0x2f5)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x398a8d=_0x35c956[_0x3bc2c7(0x1e4)](_0x2a79ec)[_0x3bc2c7(0x1cd)],_0x387c1c=Math[_0x3bc2c7(0x3a2)](_0x398a8d+0x2*ae,De);Tt(_0x35c956,{'height':X,'radius':0x4,'width':_0x387c1c,'fill':_0x3ab2da}),_0x35c956[_0x3bc2c7(0x349)]='#FFF';const _0x3ec190=ae,_0x3b7d49=X-Ct,_0x4670f3=De-0x2*ae;if(_0x398a8d>_0x4670f3){let _0x43d775='',_0x28c987=0x0;for(const _0x3d87ac of _0x2a79ec){const _0x23987c=_0x35c956[_0x3bc2c7(0x1e4)](_0x3d87ac)['width'];if(_0x28c987+_0x23987c<=_0x4670f3-_0x35c956['measureText'](_0x3bc2c7(0x3f0))[_0x3bc2c7(0x1cd)])_0x43d775+=_0x3d87ac,_0x28c987+=_0x23987c;else{_0x43d775+=_0x3bc2c7(0x3f0);break;}}_0x35c956[_0x3bc2c7(0x254)](_0x43d775,_0x3ec190,_0x3b7d49);}else _0x35c956['fillText'](_0x2a79ec,_0x3ec190,_0x3b7d49);_0x35c956[_0x3bc2c7(0x2da)]();}['_draw'](_0x5c17e9){const _0x192320=_0x2dd085;ie[_0x192320(0x205)](_0x5c17e9,this);}}const ce=_0x2dd085(0x3d1),pt=_0x2dd085(0x358),Ot=_0x2dd085(0x31d),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x2dd085(0x2ca);class Ne{constructor(_0x36aefe,_0x5bbb3e,_0x30ab7c,_0x444f8c){const _0x3e1ffd=_0x2dd085;_(this,_0x3e1ffd(0x3c9),[]),_(this,_0x3e1ffd(0x20d),null),_(this,_0x3e1ffd(0x256),null),_(this,_0x3e1ffd(0x298),null),_(this,_0x3e1ffd(0x1a4),null),_(this,_0x3e1ffd(0x2d2),null),(this[_0x3e1ffd(0x1e0)]=_0x36aefe,this[_0x3e1ffd(0x1d4)]=_0x5bbb3e,this[_0x3e1ffd(0x41b)]=_0x30ab7c,this[_0x3e1ffd(0x374)]=_0x444f8c,this['_render']());}set[_0x2dd085(0x249)](_0x28430e){const _0x3f555c=_0x2dd085;_0x28430e?(this[_0x3f555c(0x298)]&&this[_0x3f555c(0x298)]['hide'](),this[_0x3f555c(0x256)]&&this[_0x3f555c(0x256)]['show']()):(this['_anchorDot']&&this['_anchorDot'][_0x3f555c(0x3e9)](),this[_0x3f555c(0x256)]&&this[_0x3f555c(0x256)][_0x3f555c(0x28d)]());}['dispose'](){const _0x469b2d=_0x2dd085;for(const _0x58b49d of this[_0x469b2d(0x3c9)])_0x58b49d['dispose']();this[_0x469b2d(0x256)]&&this[_0x469b2d(0x256)]['dispose'](),this['_anchorDot']&&this[_0x469b2d(0x298)]['dispose'](),this[_0x469b2d(0x20d)]&&this['_anchor']['dispose'](),this[_0x469b2d(0x2d2)]&&this['_eventUnsubscribe']();}[_0x2dd085(0x234)](){const _0x1a3374=_0x2dd085;var _0x11c4a1;const {_docSkeleton:_0x2b8ac5,_document:_0x16951f}=this,{color:_0x247317,name:_0x4e9e54,ranges:_0x11ea84}=this[_0x1a3374(0x1e0)],_0x4a9aaa=_0x16951f[_0x1a3374(0x302)](),{docsLeft:_0x4cdc2f,docsTop:_0x1f90ef}=_0x4a9aaa,_0x585a2e=new T[(_0x1a3374(0x239))](_0x4a9aaa,_0x2b8ac5);for(const {startOffset:_0x41d594,endOffset:_0x1e8399,rangeType:_0x15f2b9,segmentId:_0x581454,segmentPage:_0x3fe7e1,collapsed:_0x11cf6b,isActive:_0x59cea4}of _0x11ea84){const _0x3e4867=_0x2b8ac5[_0x1a3374(0x40c)](_0x41d594,!0x0,_0x581454,_0x3fe7e1);let _0xc91586=_0x2b8ac5['findNodePositionByCharIndex'](_0x1e8399,!0x0,_0x581454,_0x3fe7e1);if(_0xc91586==null&&(_0xc91586=_0x2b8ac5[_0x1a3374(0x40c)](_0x1e8399-0x1,!0x1,_0x581454,_0x3fe7e1)),_0x59cea4){const {contentBoxPointGroup:_0x3dafb5}=_0x585a2e[_0x1a3374(0x3b9)](_0xc91586,_0xc91586);if(_0x3dafb5[_0x1a3374(0x37e)]===0x0)continue;this[_0x1a3374(0x200)](_0x247317,_0x3dafb5,_0x4cdc2f,_0x1f90ef,_0x4e9e54),this[_0x1a3374(0x2d2)]=this['_handleHover']();}if(_0x3e4867&&_0xc91586){if(_0x15f2b9===a['DOC_RANGE_TYPE'][_0x1a3374(0x219)]){const _0x3f41bd=new T[(_0x1a3374(0x380))](_0x4a9aaa,_0x2b8ac5),{pointGroup:_0x5c1812}=(_0x11c4a1=_0x3f41bd[_0x1a3374(0x3b9)](_0x3e4867,_0xc91586))!=null?_0x11c4a1:{};if(_0x5c1812==null||_0x5c1812[_0x1a3374(0x37e)]===0x0)continue;this['_drawRectRange'](_0x247317,_0x5c1812,_0x4cdc2f,_0x1f90ef);}else{if(!_0x11cf6b){const {borderBoxPointGroup:_0xa39916}=_0x585a2e[_0x1a3374(0x3b9)](_0x3e4867,_0xc91586);if(_0xa39916[_0x1a3374(0x37e)]===0x0)continue;this[_0x1a3374(0x1c9)](_0x247317,_0xa39916,_0x4cdc2f,_0x1f90ef);}}}}}['_drawAnchor'](_0x346d78,_0x41bc70,_0x2dc2fa,_0x108017,_0x5daed5){const _0x50eb4c=_0x2dd085,_0x18e91e=this['_getAnchorBounding'](_0x41bc70),{left:_0x364fb6,top:_0x136b26,height:_0x374552}=_0x18e91e,_0x53a341=this[_0x50eb4c(0x37c)](),_0x191b56=bt/_0x53a341,_0x4a1588=new C[(_0x50eb4c(0x338))](ce+a[_0x50eb4c(0x414)](Y),{'left':_0x364fb6+_0x2dc2fa-_0x191b56,'top':_0x136b26+_0x108017,'height':_0x374552,'width':Rt,'fill':_0x346d78||C[_0x50eb4c(0x3a8)](a[_0x50eb4c(0x424)][_0x50eb4c(0x309)],0x0),'strokeWidth':_0x191b56,'stroke':Dt,'evented':!0x0});this['_anchor']=_0x4a1588,this[_0x50eb4c(0x1d4)]['addObject'](_0x4a1588,T[_0x50eb4c(0x1ad)]);const _0x5f1419=new C[(_0x50eb4c(0x338))](ce+a[_0x50eb4c(0x414)](Y),{'left':_0x364fb6+_0x2dc2fa-_0x191b56,'top':_0x136b26+_0x108017-le/0x2,'height':le,'width':le,'fill':_0x346d78||C[_0x50eb4c(0x3a8)](a[_0x50eb4c(0x424)][_0x50eb4c(0x309)],0x0),'strokeWidth':0x0,'stroke':_0x346d78||C[_0x50eb4c(0x3a8)](a[_0x50eb4c(0x424)]['black'],0x0),'evented':!0x1});this[_0x50eb4c(0x298)]=_0x5f1419,this['_scene'][_0x50eb4c(0x1e9)](_0x5f1419,T[_0x50eb4c(0x1ad)]);const _0x17c4df=new ie(ce+a[_0x50eb4c(0x414)](Y),{'left':_0x364fb6+_0x2dc2fa-_0x191b56,'top':_0x136b26+_0x108017-X,'text':_0x5daed5,'color':_0x346d78});this['_textBubble']=_0x17c4df,this[_0x50eb4c(0x1d4)]['addObject'](_0x17c4df,T[_0x50eb4c(0x1ad)]),this['_hover']=!0x1;}[_0x2dd085(0x1ed)](){const _0xd08840=_0x2dd085,_0xf8c0d0=this[_0xd08840(0x20d)][_0xd08840(0x1c0)]['subscribeEvent'](()=>{const _0x12f54f=_0xd08840;this[_0x12f54f(0x249)]=!0x0;}),_0x40ab48=this[_0xd08840(0x20d)][_0xd08840(0x1d7)][_0xd08840(0x2ae)](()=>{const _0x393240=_0xd08840;this[_0x393240(0x1a4)]&&clearTimeout(this['_hideTimer']),this[_0x393240(0x1a4)]=setTimeout(()=>{const _0xdec7ae=_0x393240;this[_0xdec7ae(0x249)]=!0x1;},0x7d0);});return()=>{const _0x1e78ec=_0xd08840;_0xf8c0d0[_0x1e78ec(0x24a)](),_0x40ab48[_0x1e78ec(0x24a)]();};}['_drawTextRange'](_0x2e15b0,_0x4b78c0,_0x2149f5,_0x76b8a6){const _0x5e9e26=_0x2dd085,_0xda409a=new a[(_0x5e9e26(0x294))](_0x2e15b0)[_0x5e9e26(0x1c4)](0.2)['toRgbString'](),_0x433ac0=new C[(_0x5e9e26(0x26e))](pt+a[_0x5e9e26(0x414)](Y),{'pointsGroup':_0x4b78c0,'fill':_0xda409a||C[_0x5e9e26(0x3a8)](a[_0x5e9e26(0x424)][_0x5e9e26(0x309)],0.2),'left':_0x2149f5,'top':_0x76b8a6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e9e26(0x3c9)][_0x5e9e26(0x3f7)](_0x433ac0),this[_0x5e9e26(0x1d4)][_0x5e9e26(0x1e9)](_0x433ac0,T[_0x5e9e26(0x1ad)]);}[_0x2dd085(0x1bc)](_0x4a5df6,_0xbf0df6,_0x36dfd9,_0x40d07c){const _0xc11fe0=_0x2dd085,_0x2a0c6c=new a[(_0xc11fe0(0x294))](_0x4a5df6)[_0xc11fe0(0x1c4)](0.2)[_0xc11fe0(0x33c)](),_0x12627d=new C['RegularPolygon'](Ot+a[_0xc11fe0(0x414)](Y),{'pointsGroup':_0xbf0df6,'fill':_0x2a0c6c||C['getColor'](a[_0xc11fe0(0x424)][_0xc11fe0(0x309)],0.2),'left':_0x36dfd9,'top':_0x40d07c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x12627d),this[_0xc11fe0(0x1d4)][_0xc11fe0(0x1e9)](_0x12627d,T['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x28784c){const _0x2d1501=_0x28784c[0x0],_0x180c76=_0x2d1501[0x0],_0x14cd70=_0x2d1501[0x2],{x:_0x5eb010,y:_0x113765}=_0x180c76,{x:_0x3de0f2,y:_0x4afe34}=_0x14cd70;return{'left':_0x5eb010,'top':_0x113765,'width':_0x3de0f2-_0x5eb010,'height':_0x4afe34-_0x113765};}[_0x2dd085(0x37c)](){const _0x2c1b31=_0x2dd085,{scaleX:_0x452249,scaleY:_0x4524db}=this[_0x2c1b31(0x1d4)]['getAncestorScale']();return Math[_0x2c1b31(0x2b0)](_0x452249,_0x4524db);}}var Nt=Object[_0x2dd085(0x251)],Ut=(_0x91f7b7,_0x4f107d,_0x31be50,_0x21f7f4)=>{for(var _0x2bb3d4=_0x21f7f4>0x1?void 0x0:_0x21f7f4?Nt(_0x4f107d,_0x31be50):_0x4f107d,_0x482bed=_0x91f7b7['length']-0x1,_0x1a25fc;_0x482bed>=0x0;_0x482bed--)(_0x1a25fc=_0x91f7b7[_0x482bed])&&(_0x2bb3d4=_0x1a25fc(_0x2bb3d4)||_0x2bb3d4);return _0x2bb3d4;},q=(_0x49ff4d,_0x57e354)=>(_0x499d58,_0x413a64)=>_0x57e354(_0x499d58,_0x413a64,_0x49ff4d);let ge=class extends a[_0x2dd085(0x221)]{constructor(_0x437aff,_0x200325,_0x38228c,_0x4a7f30,_0x52712e){const _0x2ab210=_0x2dd085;super(),_(this,_0x2ab210(0x20e),[]),_(this,_0x2ab210(0x26b),[]),(this[_0x2ab210(0x3f1)]=_0x437aff,this[_0x2ab210(0x25b)]=_0x200325,this[_0x2ab210(0x20a)]=_0x38228c,this[_0x2ab210(0x274)]=_0x4a7f30,this['_themeService']=_0x52712e,this[_0x2ab210(0x34b)]());}[_0x2dd085(0x34b)](){const _0x20d2ab=_0x2dd085,_0x5d2ead=this[_0x20d2ab(0x3f1)][_0x20d2ab(0x1b1)],_0x48ac74=this['_docSkeletonManagerService'];this[_0x20d2ab(0x34a)](I[_0x20d2ab(0x263)]([this[_0x20d2ab(0x20a)][_0x20d2ab(0x252)](_0x5d2ead),this['_themeService'][_0x20d2ab(0x3fa)]])[_0x20d2ab(0x3c3)]($['map'](([_0x29c700,_0x19544d])=>({'skeleton':_0x48ac74[_0x20d2ab(0x2e5)](),'cursors':[..._0x29c700[_0x20d2ab(0x383)]()]['flatMap'](_0xdb393d=>({..._0xdb393d,'color':this[_0x20d2ab(0x39e)]['getColorFromTheme'](_0xdb393d['color'])}))})))[_0x20d2ab(0x2f1)](_0x3ea4b3=>{const _0x442f4d=_0x20d2ab;if(this[_0x442f4d(0x382)](),_0x3ea4b3){const {skeleton:_0x2d1a2a,cursors:_0x1b76d9}=_0x3ea4b3;this[_0x442f4d(0x392)](_0x2d1a2a,_0x1b76d9);}})),this[_0x20d2ab(0x246)](),this[_0x20d2ab(0x1f5)]();}[_0x2dd085(0x392)](_0x262008,_0x3c33fb){const _0x11cf08=_0x2dd085,{scene:_0x63f082,mainComponent:_0x191410}=this[_0x11cf08(0x3f1)],_0x448aa2=_0x3c33fb[_0x11cf08(0x2c0)](_0x1ac4db=>new Ne(_0x1ac4db,_0x63f082,_0x262008,_0x191410));this['_cursorShapes']=_0x448aa2,this['_cursors']=_0x3c33fb;}[_0x2dd085(0x305)](){const _0x1f691e=_0x2dd085;this['_removeCollabCursors']();const {scene:_0x2c120b,mainComponent:_0x2a6b65}=this[_0x1f691e(0x3f1)],_0x11af8a=this[_0x1f691e(0x25b)][_0x1f691e(0x2e5)](),_0x5761ed=this[_0x1f691e(0x26b)]['map'](_0x5c27a7=>new Ne(_0x5c27a7,_0x2c120b,_0x11af8a,_0x2a6b65));this['_cursorShapes']=_0x5761ed;}[_0x2dd085(0x382)](){const _0xfcab9b=_0x2dd085;this[_0xfcab9b(0x20e)][_0xfcab9b(0x3d6)](_0x3bcb88=>_0x3bcb88[_0xfcab9b(0x20f)]()),this[_0xfcab9b(0x20e)]=[];}[_0x2dd085(0x1f5)](){const _0x130a53=_0x2dd085,_0x5f231d=[T[_0x130a53(0x40e)]['id']];this['disposeWithMe'](this['_commandService'][_0x130a53(0x2dc)](_0x46623d=>{const _0x27efad=_0x130a53;_0x5f231d[_0x27efad(0x3c2)](_0x46623d['id'])&&_0x46623d[_0x27efad(0x1e2)][_0x27efad(0x1b1)]===this[_0x27efad(0x3f1)][_0x27efad(0x1b1)]&&this[_0x27efad(0x305)]();}));}['_initResize'](){const _0x30124d=_0x2dd085;this['disposeWithMe'](a['fromEventSubject'](this[_0x30124d(0x3f1)][_0x30124d(0x42b)][_0x30124d(0x394)])['pipe']($[_0x30124d(0x2a6)](_0x4fa02b=>_0x4fa02b[_0x30124d(0x2d1)]===C[_0x30124d(0x195)][_0x30124d(0x2f4)]),$['throttleTime'](0x10))[_0x30124d(0x2f1)](()=>{const _0x5b810d=_0x30124d;this[_0x5b810d(0x305)]();}));}};ge=Ut([q(0x1,a['Inject'](W[_0x2dd085(0x300)])),q(0x2,a[_0x2dd085(0x287)](B)),q(0x3,a['ICommandService']),q(0x4,a[_0x2dd085(0x287)](a[_0x2dd085(0x28c)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C['Shape']{constructor(_0x44c563,_0x5a16aa){const _0x205c89=_0x2dd085;super(_0x44c563,_0x5a16aa),_(this,_0x205c89(0x197)),_(this,_0x205c89(0x405),!0x1),_(this,_0x205c89(0x3df)),_(this,_0x205c89(0x327),''),_(this,'_labelPosition',_0x205c89(0x273)),_(this,_0x205c89(0x2db)),(_0x5a16aa&&this['setShapeProps'](_0x5a16aa),this[_0x205c89(0x1c0)]['subscribeEvent'](()=>this[_0x205c89(0x35d)]({'hovered':!0x0})),this['onPointerLeave$'][_0x205c89(0x2ae)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2dd085(0x35d)](_0x44ce83){const _0x190ebe=_0x2dd085;var _0x2598a8,_0x123482,_0x34fffa,_0x460659,_0x5284e5,_0x58a06c;this[_0x190ebe(0x197)]=(_0x2598a8=_0x44ce83[_0x190ebe(0x19d)])!=null?_0x2598a8:this[_0x190ebe(0x197)],this[_0x190ebe(0x405)]=(_0x123482=_0x44ce83[_0x190ebe(0x2f3)])!=null?_0x123482:this[_0x190ebe(0x405)],this[_0x190ebe(0x3df)]=(_0x34fffa=_0x44ce83[_0x190ebe(0x3e8)])!=null?_0x34fffa:this[_0x190ebe(0x3df)],this[_0x190ebe(0x327)]=(_0x460659=_0x44ce83[_0x190ebe(0x31f)])!=null?_0x460659:this[_0x190ebe(0x327)],this[_0x190ebe(0x198)]=(_0x5284e5=_0x44ce83[_0x190ebe(0x303)])!=null?_0x5284e5:this[_0x190ebe(0x198)],this[_0x190ebe(0x2db)]=(_0x58a06c=_0x44ce83[_0x190ebe(0x1cb)])!=null?_0x58a06c:this['_backgroundColor'],this[_0x190ebe(0x1a5)]({'width':_0x44ce83['width'],'height':_0x44ce83['height']});}[_0x2dd085(0x3d0)](_0x38906d){const _0x26e3c9=_0x2dd085,{row:_0x5bfb8f,column:_0x3ad126}=_0x38906d;if(_0x5bfb8f>=this['_range'][_0x26e3c9(0x1ec)]&&_0x5bfb8f<=this[_0x26e3c9(0x3df)][_0x26e3c9(0x37f)]&&_0x3ad126>=this[_0x26e3c9(0x3df)][_0x26e3c9(0x23d)]&&_0x3ad126<=this['_range']['endColumn']){this[_0x26e3c9(0x35d)]({'hovered':!0x0});return;}this[_0x26e3c9(0x35d)]({'hovered':!0x1});}['triggerDblclick'](_0x1ee459){return!0x1;}[_0x2dd085(0x2f6)](_0x1a08df){const _0x18e978=_0x2dd085;C[_0x18e978(0x338)][_0x18e978(0x205)](_0x1a08df,{'width':this[_0x18e978(0x1cd)],'height':this[_0x18e978(0x3b2)],'strokeWidth':Mt,'stroke':this[_0x18e978(0x197)],'evented':!0x1,'fill':this[_0x18e978(0x2db)]}),this[_0x18e978(0x405)]&&(_0x1a08df[_0x18e978(0x301)](),_0x1a08df['transform'](0x1,0x0,0x0,0x1,this[_0x18e978(0x1cd)],this[_0x18e978(0x198)]==='bottom'?0x0:-X),ie[_0x18e978(0x205)](_0x1a08df,{'text':this[_0x18e978(0x327)],'color':this['_color']}),_0x1a08df[_0x18e978(0x2da)]());}}var At=Object[_0x2dd085(0x251)],Pt=(_0x1c22a7,_0x110cb1,_0x56e436,_0x2ec545)=>{const _0x5aa79a=_0x2dd085;for(var _0x2c1ea4=_0x2ec545>0x1?void 0x0:_0x2ec545?At(_0x110cb1,_0x56e436):_0x110cb1,_0x2909d5=_0x1c22a7[_0x5aa79a(0x37e)]-0x1,_0x1f3c6a;_0x2909d5>=0x0;_0x2909d5--)(_0x1f3c6a=_0x1c22a7[_0x2909d5])&&(_0x2c1ea4=_0x1f3c6a(_0x2c1ea4)||_0x2c1ea4);return _0x2c1ea4;},_e=(_0x45c276,_0x4465e0)=>(_0x55d0ac,_0x29fae7)=>_0x4465e0(_0x55d0ac,_0x29fae7,_0x45c276);const wt=0x1389;let ve=class extends a[_0x2dd085(0x221)]{constructor(_0x3e7c12,_0x3ad054,_0x30ef29,_0x1de3a8){const _0xa094de=_0x2dd085;super(),_(this,_0xa094de(0x26b),new Set()),_(this,_0xa094de(0x2c8),null),(this[_0xa094de(0x3f1)]=_0x3e7c12,this[_0xa094de(0x1dc)]=_0x3ad054,this[_0xa094de(0x20a)]=_0x30ef29,this[_0xa094de(0x39e)]=_0x1de3a8,this[_0xa094de(0x34b)]());}[_0x2dd085(0x34b)](){const _0x122271=_0x2dd085;this[_0x122271(0x1dc)][_0x122271(0x201)][_0x122271(0x3c3)]($[_0x122271(0x1af)](this[_0x122271(0x29d)]),$['switchMap'](_0xcddd0=>{const _0x1e61f8=_0x122271;if(_0xcddd0){const _0x11115c=_0xcddd0[_0x1e61f8(0x25a)];return I['combineLatest'](this['_collabCursorController'][_0x1e61f8(0x252)](this[_0x1e61f8(0x3f1)][_0x1e61f8(0x1b1)]),this['_themeService'][_0x1e61f8(0x3fa)])['pipe']($[_0x1e61f8(0x2c0)](([_0x41e12f,_0x944caf])=>{const _0x418e51=_0x1e61f8,_0xc3e0d7=new Map();return _0x41e12f[_0x418e51(0x3d6)]((_0x5751e6,_0x4a80ac)=>{const _0x1b78d1=_0x418e51;if(_0x5751e6[_0x1b78d1(0x26d)]===_0x11115c){const _0x179be6={..._0x5751e6};_0x179be6['color']=this[_0x1b78d1(0x39e)]['getColorFromTheme'](_0x5751e6[_0x1b78d1(0x19d)]),_0xc3e0d7['set'](_0x4a80ac,_0x179be6);}}),{'skeleton':_0xcddd0,'cursors':_0xc3e0d7};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x122271(0x2f1)](({skeleton:_0x55dedd,cursors:_0x560831})=>{const _0x1e2bd9=_0x122271;this[_0x1e2bd9(0x382)](),_0x55dedd&&this[_0x1e2bd9(0x392)](_0x55dedd,_0x560831);}),this[_0x122271(0x1dc)][_0x122271(0x201)][_0x122271(0x2f1)](_0x3b09d3=>{const _0x43e10a=_0x122271;if(_0x3b09d3==null)return;const {skeleton:_0x40e2c0}=_0x3b09d3,{scene:_0xf12a3e}=this['_context'];_0xf12a3e[_0x43e10a(0x26f)][_0x43e10a(0x2ae)](a['debounce'](_0x53ad14=>{const _0x77b7af=_0x43e10a;var _0xb485d0,_0x14c4b5;const {offsetX:_0x3608d2,offsetY:_0x4ae748}=_0x53ad14,{x:_0xdc5f4b,y:_0x26911b}=_0xf12a3e[_0x77b7af(0x319)](C[_0x77b7af(0x400)][_0x77b7af(0x429)]([_0x3608d2,_0x4ae748])),{scaleX:_0x412853,scaleY:_0x3f8ff3}=_0xf12a3e[_0x77b7af(0x1ee)](),_0x4038a7=_0xf12a3e[_0x77b7af(0x253)](C[_0x77b7af(0x42d)][_0x77b7af(0x2c4)]),_0x115042=_0xf12a3e[_0x77b7af(0x1ac)](C[_0x77b7af(0x400)][_0x77b7af(0x429)]([_0xdc5f4b,_0x26911b]),_0x4038a7),_0x289851=_0x40e2c0[_0x77b7af(0x295)](_0x3608d2,_0x4ae748,_0x412853,_0x3f8ff3,_0x115042);((_0xb485d0=this[_0x77b7af(0x2c8)])==null?void 0x0:_0xb485d0[_0x77b7af(0x311)])===_0x289851[_0x77b7af(0x311)]&&((_0x14c4b5=this['_lastPointer'])==null?void 0x0:_0x14c4b5['row'])===_0x289851[_0x77b7af(0x43d)]||this['_cursors'][_0x77b7af(0x3d6)](_0x56644d=>{const _0x1b815e=_0x77b7af;_0x56644d[_0x1b815e(0x3d0)](_0x289851);});},0x64));});}[_0x2dd085(0x392)](_0x18bcd4,_0x4d8891){const _0x31b012=_0x2dd085;var _0x2393b6;const _0x4cb7a8=(_0x2393b6=this[_0x31b012(0x1dc)]['getCurrent']())==null?void 0x0:_0x2393b6[_0x31b012(0x243)];if(!_0x4cb7a8)return;const _0x1c06a2=this[_0x31b012(0x3ea)]();if(!_0x1c06a2)return;this['_cursors']['forEach'](_0x33743e=>{const _0x382fe3=_0x31b012;_0x33743e[_0x382fe3(0x342)]();});const {scene:_0x5413ac}=_0x1c06a2,_0x5d6e88=yt(Array['from'](_0x4d8891[_0x31b012(0x383)]()))[_0x31b012(0x2c0)](_0x1279a4=>{const _0xf1ef07=_0x31b012,{color:_0x44809e,range:_0x419036,name:_0x79ecd4,selection:_0x3827e1,sheetID:_0x23cbbd}=_0x1279a4,{startColumn:_0x4f5481,startRow:_0x5b5903,endColumn:_0x384c6a,endRow:_0x284abc}=_0x419036,_0x32ef39=z[_0xf1ef07(0x403)](_0x5b5903,_0x4f5481,_0x5413ac,_0x4cb7a8),_0xd490f7=z['getCoordByCell'](_0x284abc,_0x384c6a,_0x5413ac,_0x4cb7a8),{columnHeaderHeightAndMarginTop:_0x4ca36f}=_0x4cb7a8,{startX:_0x1ba674,startY:_0x320329}=_0x32ef39,{endX:_0x1ed138,endY:_0x47272e}=_0xd490f7,_0x2e13f9=_0x1ed138-_0x1ba674,_0x3a4c62=_0x47272e-_0x320329,_0x5289b5={'labelPosition':_0x320329-_0x4ca36f>=X?_0xf1ef07(0x273):'bottom','sheetID':_0x23cbbd,'range':_0x419036,'color':_0x44809e,'name':_0x79ecd4,'selection':_0x3827e1,'left':_0x1ba674,'top':_0x320329,'width':_0x2e13f9,'height':_0x3a4c62,'evented':!0x1,'zIndex':wt};return new Be(_0x79ecd4,_0x5289b5);});_0x5413ac['addObjects'](_0x5d6e88,Lt),this[_0x31b012(0x26b)]=new Set(_0x5d6e88);}[_0x2dd085(0x382)](){const _0x3ebdae=_0x2dd085;var _0x3d9ab1;(_0x3d9ab1=this[_0x3ebdae(0x26b)])==null||_0x3d9ab1[_0x3ebdae(0x3d6)](_0x4b55d5=>_0x4b55d5[_0x3ebdae(0x20f)]());}[_0x2dd085(0x3ea)](){const _0x3e9c13=_0x2dd085;return z['getSheetObject'](this[_0x3e9c13(0x3f1)][_0x3e9c13(0x258)],this[_0x3e9c13(0x3f1)]);}};ve=Pt([_e(0x1,a['Inject'](z[_0x2dd085(0x285)])),_e(0x2,a[_0x2dd085(0x287)](B)),_e(0x3,a[_0x2dd085(0x287)](a['ThemeService']))],ve);function yt(_0x3c311f){const _0x31d36f=_0x2dd085,_0x25a60e=new Map();return _0x3c311f[_0x31d36f(0x3d6)](_0x60fc0e=>{const _0x4c69c0=_0x31d36f;if(_0x25a60e['has'](_0x60fc0e[_0x4c69c0(0x1b6)])){const _0x2200f9=_0x25a60e[_0x4c69c0(0x1d6)](_0x60fc0e[_0x4c69c0(0x1b6)]);_0x2200f9[_0x4c69c0(0x31f)]+=',\x20'+_0x60fc0e[_0x4c69c0(0x31f)];}else _0x25a60e[_0x4c69c0(0x262)](_0x60fc0e[_0x4c69c0(0x1b6)],_0x60fc0e);}),Array['from'](_0x25a60e['values']());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x287195,_0x1ae2a5,_0x14ae5c,_0x2bd4f3)=>{for(var _0x580dac=_0x2bd4f3>0x1?void 0x0:_0x2bd4f3?$t(_0x1ae2a5,_0x14ae5c):_0x1ae2a5,_0x339d95=_0x287195['length']-0x1,_0x114dcd;_0x339d95>=0x0;_0x339d95--)(_0x114dcd=_0x287195[_0x339d95])&&(_0x580dac=_0x114dcd(_0x580dac)||_0x580dac);return _0x580dac;},y=(_0x42c4c7,_0x2f9786)=>(_0x25827e,_0x4548b4)=>_0x2f9786(_0x25827e,_0x4548b4,_0x42c4c7);let J=class extends a[_0x2dd085(0x41f)]{constructor(_0x5d80f2,_0x53d8b1,_0xcdc3da,_0x139d14,_0xd6e0a7,_0x35033){const _0x29b76d=_0x2dd085;super(),this[_0x29b76d(0x290)]=_0x5d80f2,this['_localCacheService']=_0x53d8b1,this[_0x29b76d(0x22c)]=_0xcdc3da,this[_0x29b76d(0x2b8)]=_0x139d14,this['_notificationService']=_0xd6e0a7,this[_0x29b76d(0x427)]=_0x35033,this[_0x29b76d(0x40f)](),this[_0x29b76d(0x3a4)]();}[_0x2dd085(0x40f)](){const _0x3e40ec=_0x2dd085;this['disposeWithMe'](this[_0x3e40ec(0x290)][_0x3e40ec(0x39a)](()=>{const _0x1a5519=_0x3e40ec;if(this[_0x1a5519(0x2a5)]['saveTaskMap'][_0x1a5519(0x1bf)])return this[_0x1a5519(0x427)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2dd085(0x3a4)](){const _0x333013=_0x2dd085;this[_0x333013(0x34a)](this['_collaborationUIEventService'][_0x333013(0x375)][_0x333013(0x2f1)](_0x4e11c1=>{const _0x3cd47a=_0x333013;_0x4e11c1['id']===u[_0x3cd47a(0x2a0)][_0x3cd47a(0x1b2)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p['MessageType']['Warning'],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x4e11c1['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)][_0x3cd47a(0x281)],'content':this[_0x3cd47a(0x427)]['t']('collaboration.closeRoom')}),_0x4e11c1['id']===u[_0x3cd47a(0x2a0)]['PERMISSION_DENIED']&&this[_0x3cd47a(0x397)][_0x3cd47a(0x3e9)]({'title':this[_0x3cd47a(0x427)]['t'](_0x3cd47a(0x21b)),'content':this[_0x3cd47a(0x427)]['t'](_0x3cd47a(0x1d1)),'type':_0x3cd47a(0x409),'duration':0x0}),_0x4e11c1['id']===u['CollaborationUIEventId'][_0x3cd47a(0x25f)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)]['Error'],'content':this[_0x3cd47a(0x427)]['t']('collaboration.closeRoom')+'('+_0x4e11c1[_0x3cd47a(0x332)]+')'}),_0x4e11c1['id']===u['CollaborationUIEventId'][_0x3cd47a(0x2be)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)][_0x3cd47a(0x281)],'content':this[_0x3cd47a(0x427)]['t'](_0x4e11c1['data']||'')}),_0x4e11c1['id']===u['CollaborationUIEventId'][_0x3cd47a(0x39d)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)][_0x3cd47a(0x281)],'content':this['_localeService']['t'](_0x3cd47a(0x29b))}),_0x4e11c1['id']===u[_0x3cd47a(0x2a0)][_0x3cd47a(0x3ef)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p['MessageType'][_0x3cd47a(0x2ff)],'content':this[_0x3cd47a(0x427)]['t'](_0x3cd47a(0x404))}),_0x4e11c1['id']===u[_0x3cd47a(0x2a0)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)][_0x3cd47a(0x2ff)],'content':this[_0x3cd47a(0x427)]['t']('session.collaboration-timeout')});}));}};J=xt([y(0x0,O[_0x2dd085(0x3ca)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x2dd085(0x287)](u[_0x2dd085(0x208)])),y(0x3,O[_0x2dd085(0x264)]),y(0x4,O[_0x2dd085(0x282)]),y(0x5,a[_0x2dd085(0x287)](a[_0x2dd085(0x388)]))],J);const Bt=_0x2dd085(0x3f3),Ue={};var Ft=Object['getOwnPropertyDescriptor'],kt=(_0x1f60f5,_0x11fa26,_0x3f4e2a,_0x5efa3d)=>{const _0x8c0c64=_0x2dd085;for(var _0x5110f1=_0x5efa3d>0x1?void 0x0:_0x5efa3d?Ft(_0x11fa26,_0x3f4e2a):_0x11fa26,_0x9bada2=_0x1f60f5[_0x8c0c64(0x37e)]-0x1,_0x40c577;_0x9bada2>=0x0;_0x9bada2--)(_0x40c577=_0x1f60f5[_0x9bada2])&&(_0x5110f1=_0x40c577(_0x5110f1)||_0x5110f1);return _0x5110f1;},Le=(_0x78b0c0,_0x711cdf)=>(_0x4f184c,_0x2003df)=>_0x711cdf(_0x4f184c,_0x2003df,_0x78b0c0);let Z=class{constructor(_0x3a8220,_0x357284){const _0x224181=_0x2dd085;this['_transformService']=_0x3a8220,this[_0x224181(0x36f)]=_0x357284;}[_0x2dd085(0x1fd)](_0x5506a2){const _0x2a7229=_0x2dd085;this[_0x2a7229(0x286)](_0x5506a2),this[_0x2a7229(0x306)](_0x5506a2);}[_0x2dd085(0x25c)](_0x617324){const _0x4f9d2c=_0x2dd085,{unitID:_0x1ae052}=_0x617324,_0xa7e45f=this[_0x4f9d2c(0x36f)]['getRenderById'](_0x1ae052)[_0x4f9d2c(0x1e5)](T['DocIMEInputManagerService']),{redoCache:_0x2b8031}=_0xa7e45f[_0x4f9d2c(0x1a8)]();if(_0x2b8031[_0x4f9d2c(0x37e)]===0x0)return _0x617324;let _0x3859d6=a[_0x4f9d2c(0x3de)][_0x4f9d2c(0x1c1)](_0x617324[_0x4f9d2c(0x278)][0x0]);for(let _0x447ca6=0x0;_0x447ca6<_0x2b8031[_0x4f9d2c(0x37e)];_0x447ca6++){const _0x5b3430={'id':'doc.mutation.rich-text-editing','params':{..._0x2b8031[_0x447ca6]}},_0x56b959=this['_transformService']['transformMutation'](_0x3859d6,_0x5b3430,!0x1);if(v[_0x4f9d2c(0x24f)](_0x56b959))throw _0x56b959[_0x4f9d2c(0x409)];_0x3859d6=_0x56b959['m1Prime'];}return{...a[_0x4f9d2c(0x3de)][_0x4f9d2c(0x1c1)](_0x617324),'mutations':[_0x3859d6]};}[_0x2dd085(0x286)](_0x1dbaba){const _0x46bf1d=_0x2dd085,{unitID:_0x2cdcf5}=_0x1dbaba,_0x365bb4=this[_0x46bf1d(0x36f)][_0x46bf1d(0x22f)](_0x2cdcf5)[_0x46bf1d(0x1e5)](T[_0x46bf1d(0x2e1)]),{undoCache:_0xfce326,redoCache:_0x635494}=_0x365bb4['getUndoRedoMutationParamsCache']();if(_0xfce326[_0x46bf1d(0x37e)]===0x0||_0x635494[_0x46bf1d(0x37e)]===0x0)return;const _0x2cd082=[],_0x4264b9=[];let _0x2fac8b=a[_0x46bf1d(0x3de)]['deepClone'](_0x1dbaba[_0x46bf1d(0x278)][0x0]),_0x2e0231=a[_0x46bf1d(0x3de)][_0x46bf1d(0x1c1)](_0x1dbaba[_0x46bf1d(0x278)][0x0]);for(let _0x1ed7ea=_0xfce326['length']-0x1;_0x1ed7ea>=0x0;_0x1ed7ea--){const _0x2b3ea5={'id':_0x46bf1d(0x1d0),'params':{..._0xfce326[_0x1ed7ea]}},_0xfd5d92={'id':'doc.mutation.rich-text-editing','params':{..._0x635494[_0x1ed7ea]}},_0x339c11=this[_0x46bf1d(0x3fe)][_0x46bf1d(0x320)](_0x2fac8b,_0x2b3ea5,!0x1),_0x435099=this[_0x46bf1d(0x3fe)][_0x46bf1d(0x320)](_0x2e0231,_0xfd5d92,!0x1);if(v[_0x46bf1d(0x24f)](_0x339c11))throw _0x339c11[_0x46bf1d(0x409)];if(v[_0x46bf1d(0x24f)](_0x435099))throw _0x435099[_0x46bf1d(0x409)];_0x2cd082[_0x46bf1d(0x3b0)](_0x339c11[_0x46bf1d(0x27e)][_0x46bf1d(0x1e2)]),_0x4264b9[_0x46bf1d(0x3b0)](_0x435099['m2Prime'][_0x46bf1d(0x1e2)]),_0x2fac8b=_0x339c11[_0x46bf1d(0x242)],_0x2e0231=_0x435099[_0x46bf1d(0x242)];}_0x365bb4[_0x46bf1d(0x2cc)]({'undoCache':_0x2cd082,'redoCache':_0x4264b9});}[_0x2dd085(0x306)](_0x32fc50){const _0x41dd35=_0x2dd085,{unitID:_0x136205}=_0x32fc50,_0x3e2b06=this[_0x41dd35(0x36f)]['getRenderById'](_0x136205)[_0x41dd35(0x1e5)](T[_0x41dd35(0x2e1)]),_0x4d820e=_0x3e2b06[_0x41dd35(0x2c1)]();if(_0x4d820e==null)return;const _0x129c60=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x32fc50[_0x41dd35(0x1b8)],'actions':null,'textRanges':[_0x4d820e]}}],_0x2aa2bb=this['_transformService'][_0x41dd35(0x407)](_0x32fc50,_0x129c60);if(!v['isTransformMutationsWithChangesetSuccess'](_0x2aa2bb))throw _0x2aa2bb['error'];const _0x3d272c=_0x2aa2bb['m2Prime'][0x0][_0x41dd35(0x1e2)]['textRanges'];Array[_0x41dd35(0x2d8)](_0x3d272c)&&_0x3d272c['length']&&_0x3e2b06['setActiveRange'](_0x3d272c[0x0]);}};Z=kt([Le(0x0,v['ITransformService']),Le(0x1,C['IRenderManagerService'])],Z);var jt=Object[_0x2dd085(0x251)],Yt=(_0xecdd7,_0x40207c,_0x24b7c5,_0x4f0d93)=>{const _0x12ef50=_0x2dd085;for(var _0x56b857=_0x4f0d93>0x1?void 0x0:_0x4f0d93?jt(_0x40207c,_0x24b7c5):_0x40207c,_0x1b2b6f=_0xecdd7[_0x12ef50(0x37e)]-0x1,_0x4ba242;_0x1b2b6f>=0x0;_0x1b2b6f--)(_0x4ba242=_0xecdd7[_0x1b2b6f])&&(_0x56b857=_0x4ba242(_0x56b857)||_0x56b857);return _0x56b857;},he=(_0x1f4f65,_0x15a7da)=>(_0x20add3,_0x4ff444)=>_0x15a7da(_0x20add3,_0x4ff444,_0x1f4f65);let Q=class{constructor(_0x20e15e,_0x37e8d1,_0x1b7214){const _0x355cc3=_0x2dd085;this['_injector']=_0x20e15e,this[_0x355cc3(0x3fe)]=_0x37e8d1,this[_0x355cc3(0x3e7)]=_0x1b7214;}[_0x2dd085(0x360)](_0x3db909){const _0x9b1512=_0x2dd085;this[_0x9b1512(0x227)](_0x3db909);}['transformRemoteChangeset'](_0x481a7c){const _0x322114=_0x2dd085,{unitID:_0x29a4b7}=_0x481a7c,{collaboration:_0x244f14}=this['_docStateChangeManagerService'][_0x322114(0x345)](_0x29a4b7);if(_0x244f14[_0x322114(0x37e)]===0x0)return _0x481a7c;let _0x1507af=a[_0x322114(0x3de)][_0x322114(0x1c1)](_0x481a7c[_0x322114(0x278)][0x0]);for(let _0x42ff26=0x0;_0x42ff26<_0x244f14[_0x322114(0x37e)];_0x42ff26++){const _0xe34485={'id':_0x322114(0x1d0),'params':{'unitId':_0x244f14[_0x42ff26]['unitId'],..._0x244f14[_0x42ff26][_0x322114(0x1a3)]}},_0x288402=this[_0x322114(0x3fe)][_0x322114(0x320)](_0x1507af,_0xe34485,!0x1);if(v[_0x322114(0x24f)](_0x288402))throw _0x288402[_0x322114(0x409)];_0x1507af=_0x288402[_0x322114(0x242)];}return{...a['Tools'][_0x322114(0x1c1)](_0x481a7c),'mutations':[_0x1507af]};}['_transformHistoryAndStateStack'](_0xbd5297){const _0x3d31a8=_0x2dd085,{unitID:_0xa6f4c7}=_0xbd5297,{history:_0x417143,collaboration:_0x3c471d}=this[_0x3d31a8(0x3e7)][_0x3d31a8(0x345)](_0xa6f4c7);if(_0x417143[_0x3d31a8(0x37e)]===0x0&&_0x3c471d[_0x3d31a8(0x37e)]===0x0)return;const _0x40b3f1=[],_0x582269=[];let _0x49d75e=a[_0x3d31a8(0x3de)][_0x3d31a8(0x1c1)](_0xbd5297[_0x3d31a8(0x278)][0x0]),_0x1fb9d0=a['Tools'][_0x3d31a8(0x1c1)](_0xbd5297[_0x3d31a8(0x278)][0x0]);for(let _0x508804=_0x417143[_0x3d31a8(0x37e)]-0x1;_0x508804>=0x0;_0x508804--){const _0x205954={'id':_0x3d31a8(0x1d0),'params':{'unitId':_0x417143[_0x508804]['unitId'],..._0x417143[_0x508804]['undoState']}},_0x5a8603={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x417143[_0x508804][_0x3d31a8(0x1b1)],..._0x417143[_0x508804]['redoState']}},_0x486093=this[_0x3d31a8(0x3fe)][_0x3d31a8(0x320)](_0x49d75e,_0x205954,!0x1),_0x41fdc4=this[_0x3d31a8(0x3fe)]['transformMutation'](_0x1fb9d0,_0x5a8603,!0x1);if(v[_0x3d31a8(0x24f)](_0x486093))throw _0x486093[_0x3d31a8(0x409)];if(v['isTransformMutationFailure'](_0x41fdc4))throw _0x41fdc4['error'];_0x40b3f1[_0x3d31a8(0x3b0)]({..._0x417143[_0x508804],'undoState':_0x486093[_0x3d31a8(0x27e)][_0x3d31a8(0x1e2)],'redoState':_0x41fdc4[_0x3d31a8(0x27e)][_0x3d31a8(0x1e2)]}),_0x49d75e=_0x486093[_0x3d31a8(0x242)],_0x1fb9d0=_0x41fdc4[_0x3d31a8(0x242)];}_0x49d75e=a['Tools'][_0x3d31a8(0x1c1)](_0xbd5297[_0x3d31a8(0x278)][0x0]),_0x1fb9d0=a[_0x3d31a8(0x3de)][_0x3d31a8(0x1c1)](_0xbd5297[_0x3d31a8(0x278)][0x0]);for(let _0x54717e=_0x3c471d[_0x3d31a8(0x37e)]-0x1;_0x54717e>=0x0;_0x54717e--){const _0x1b95a7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3c471d[_0x54717e][_0x3d31a8(0x1b1)],..._0x3c471d[_0x54717e][_0x3d31a8(0x3ac)]}},_0x361d8e={'id':_0x3d31a8(0x1d0),'params':{'unitId':_0x3c471d[_0x54717e]['unitId'],..._0x3c471d[_0x54717e][_0x3d31a8(0x1a3)]}},_0x435b2f=this[_0x3d31a8(0x3fe)]['transformMutation'](_0x49d75e,_0x1b95a7,!0x1),_0x1e4b40=this['_transformService'][_0x3d31a8(0x320)](_0x1fb9d0,_0x361d8e,!0x1);if(v[_0x3d31a8(0x24f)](_0x435b2f))throw _0x435b2f['error'];if(v[_0x3d31a8(0x24f)](_0x1e4b40))throw _0x1e4b40[_0x3d31a8(0x409)];_0x582269[_0x3d31a8(0x3b0)]({..._0x3c471d[_0x54717e],'undoState':_0x435b2f[_0x3d31a8(0x27e)][_0x3d31a8(0x1e2)],'redoState':_0x1e4b40['m2Prime'][_0x3d31a8(0x1e2)]}),_0x49d75e=_0x435b2f[_0x3d31a8(0x242)],_0x1fb9d0=_0x1e4b40[_0x3d31a8(0x242)];}this[_0x3d31a8(0x3e7)][_0x3d31a8(0x41d)](_0xa6f4c7,{'history':_0x40b3f1,'collaboration':_0x582269});}};Q=Yt([he(0x0,a[_0x2dd085(0x287)](a['Injector'])),he(0x1,v[_0x2dd085(0x268)]),he(0x2,a[_0x2dd085(0x287)](T[_0x2dd085(0x348)]))],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x5e1075,_0x39fc25,_0x35b058,_0x1fca00)=>{const _0x1e76a7=_0x2dd085;for(var _0x446969=_0x1fca00>0x1?void 0x0:_0x1fca00?Ht(_0x39fc25,_0x35b058):_0x39fc25,_0x3222e4=_0x5e1075[_0x1e76a7(0x37e)]-0x1,_0x125783;_0x3222e4>=0x0;_0x3222e4--)(_0x125783=_0x5e1075[_0x3222e4])&&(_0x446969=_0x125783(_0x446969)||_0x446969);return _0x446969;},Me=(_0x36f081,_0x88c4dd)=>(_0x392a66,_0x90d42f)=>_0x88c4dd(_0x392a66,_0x90d42f,_0x36f081);let ee=class{constructor(_0x4ca4ec,_0x3d0687){const _0x3042fb=_0x2dd085;this[_0x3042fb(0x196)]=_0x4ca4ec,this[_0x3042fb(0x3fe)]=_0x3d0687;}[_0x2dd085(0x1b0)](_0x17aec7){const _0x1c8090=_0x2dd085;var _0x1e6bd3;const _0x4b6ece=this[_0x1c8090(0x196)][_0x1c8090(0x1d6)](W[_0x1c8090(0x202)]),_0x54d284=(_0x1e6bd3=_0x4b6ece[_0x1c8090(0x3c8)]())!=null?_0x1e6bd3:[];if(_0x54d284[_0x1c8090(0x37e)]===0x0)return;const _0x1f917f=_0x17aec7[_0x1c8090(0x1b8)],_0x58ef47=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1f917f,'actions':null,'textRanges':_0x54d284}}],_0x665a1f=this[_0x1c8090(0x3fe)][_0x1c8090(0x407)](_0x17aec7,_0x58ef47);if(!v[_0x1c8090(0x30d)](_0x665a1f))throw _0x665a1f[_0x1c8090(0x409)];const _0x535b69=_0x665a1f[_0x1c8090(0x27e)][0x0][_0x1c8090(0x1e2)][_0x1c8090(0x2ad)];Array[_0x1c8090(0x2d8)](_0x535b69)&&_0x535b69['length']&&_0x4b6ece[_0x1c8090(0x3eb)](_0x535b69,{'unitId':_0x1f917f,'subUnitId':_0x1f917f},!0x1);}};ee=Wt([Me(0x0,a[_0x2dd085(0x287)](a[_0x2dd085(0x297)])),Me(0x1,v['ITransformService'])],ee);var Vt=Object[_0x2dd085(0x251)],Gt=(_0x81727,_0x635694,_0x4a3a32,_0x1159e8)=>{for(var _0x6e7e0d=_0x1159e8>0x1?void 0x0:_0x1159e8?Vt(_0x635694,_0x4a3a32):_0x635694,_0x8c0b60=_0x81727['length']-0x1,_0x3229da;_0x8c0b60>=0x0;_0x8c0b60--)(_0x3229da=_0x81727[_0x8c0b60])&&(_0x6e7e0d=_0x3229da(_0x6e7e0d)||_0x6e7e0d);return _0x6e7e0d;},N=(_0xeef8e0,_0x594ae4)=>(_0x50b75b,_0x157301)=>_0x594ae4(_0x50b75b,_0x157301,_0xeef8e0);let te=class extends a['Disposable']{constructor(_0x4f1169,_0x18cf75,_0x183120,_0x5529b1,_0x89ff19,_0x56315c,_0x602118,_0x3e9452){const _0x5b598c=_0x2dd085;super(),_(this,_0x5b598c(0x36b),new I[(_0x5b598c(0x21a))](u[_0x5b598c(0x3f8)][_0x5b598c(0x19f)])),(this['_docStateChangeManagerService']=_0x4f1169,this[_0x5b598c(0x240)]=_0x18cf75,this['_docTransformIMECacheService']=_0x183120,this[_0x5b598c(0x2d9)]=_0x5529b1,this[_0x5b598c(0x2aa)]=_0x89ff19,this['_docSyncEditingCollabCursorService']=_0x56315c,this[_0x5b598c(0x2b8)]=_0x602118,this[_0x5b598c(0x427)]=_0x3e9452,this[_0x5b598c(0x2e4)]());}[_0x2dd085(0x2e4)](){const _0x1bdce0=_0x2dd085;this['disposeWithMe'](this[_0x1bdce0(0x240)][_0x1bdce0(0x418)]['subscribe'](_0x2b6153=>{const _0x73d7d3=_0x1bdce0,_0x3d470b=this[_0x73d7d3(0x3e7)]['docStateChange$'][_0x73d7d3(0x2f1)](_0x1de607=>{const _0xf612cc=_0x73d7d3;if(_0x1de607==null)return;const {unitId:_0xcb0b7b,redoState:_0x371f4b,commandId:_0x637993}=_0x1de607;if(_0xcb0b7b!==_0x2b6153[_0xf612cc(0x1b8)])return;const _0x10613b={'id':_0x637993,'type':a[_0xf612cc(0x344)][_0xf612cc(0x325)],'params':{'unitId':_0xcb0b7b,'actions':_0x371f4b[_0xf612cc(0x26a)],'textRanges':null}};_0x2b6153['onLocalMutation'](_0x10613b);});if(_0x2b6153[_0x73d7d3(0x34a)](_0x3d470b),_0x2b6153 instanceof u['DocCollaborationEntity']){const _0xe9a692={'onTransformIME':_0x396dd3=>this[_0x73d7d3(0x30a)][_0x73d7d3(0x1fd)](_0x396dd3),'onTransformState':_0x392f75=>this[_0x73d7d3(0x2d9)][_0x73d7d3(0x360)](_0x392f75),'onTransformSelections':_0x52245b=>this['_docTransformSelectionsService'][_0x73d7d3(0x1b0)](_0x52245b),'onSyncEditingCollabCursor':_0x4b416d=>this[_0x73d7d3(0x1c2)][_0x73d7d3(0x23e)](_0x4b416d),'onTransformRemoteChangesetByIMECache':_0x4f28a5=>this[_0x73d7d3(0x30a)][_0x73d7d3(0x25c)](_0x4f28a5),'onTransformRemoteChangesetByStateCache':_0x58ca1a=>this['_docTransformStateCacheService'][_0x73d7d3(0x25c)](_0x58ca1a)};_0x2b6153[_0x73d7d3(0x1b9)](_0xe9a692);}}));}};te=Gt([N(0x0,a[_0x2dd085(0x287)](T['DocStateChangeManagerService'])),N(0x1,a[_0x2dd085(0x287)](u['CollaborationController'])),N(0x2,a[_0x2dd085(0x287)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a[_0x2dd085(0x287)](ee)),N(0x5,a[_0x2dd085(0x287)](Oe)),N(0x6,O[_0x2dd085(0x264)]),N(0x7,a[_0x2dd085(0x287)](a[_0x2dd085(0x388)]))],te);function _0x3083(){const _0x588f79=['cursorInfo$','RefRangeService','off-line-icon','unload','UNIVER_SHEET','onMouseMove','collab-text-anchor-','formula.calculation.started','runOnServer','_currentUsage','_initStatusComponent','forEach','storage','replace','path','idSuffix','RichTextEditingMutation','SetFormulaCalculationStartMutation','_showGuardMessage','Tools','_range','Rectangle','enableLocalCache','_applyCommand','ranges','invokeId','InsertRangeMoveDownCommandId','INVALID_INVITE_CODE','_docStateChangeManagerService','range','show','_getSheetObject','replaceDocRanges','string','UNAUTHENTICATED','executionId','SOCKET_FAILED','...','_context','attrs','collaboration-client-ui.config','APPLY_DUPLICATED','LOGIN_FAILED','forwardRef','push','CollaborationStatus','tag','currentTheme$','status$','APPLY_REVISION_CONFILICT','YUUMI_RATE_OVER_LIMIT','_transformService','ERROR_AGAIN','Vector2','WebURLService','Optional','getCoordByCell','session.connection-failed','_hovered','532348tshTWZ','transformMutationsWithChangeset','isActive','error','http://www.w3.org/2000/svg','713705uWhvGp','findNodePositionByCharIndex','?taskId=','SetDocZoomRatioOperation','_setupBeforeClosingHandler','APPLY_NON_SEQUENTIAL_REVISION','collabStatus.offline','complete','EMAIL_HAS_BEEN_BOUND','generateRandomId','REDEMPTION_USER_REDEEM_TIMES_EXCEED','isFormulaString','getSheetBySheetId','entityInit$','code','InsertRangeMoveRightCommandId','_docSkeleton','_collabSessionService','setStateCache','editingUnit','Disposable','jsx','fill','loadUnit','ENSURE_SNAPSHOT_EXECUTION','COLORS','ICommandService','body','_localeService','serializeRangeWithSheet','FromArray','_getSessionTicket','engine','CONNECTOR_DATA_TOO_LARGE','SHEET_VIEWPORT_KEY','closePath','SetWorksheetActivateCommand','YUUMI_TABLE_NOT_FOUND_IN_UNIT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','asObservable','DeleteRangeMoveLeftCommandId','SNAPSHOT_HAS_BEEN_REMOVED','_syncEditingCollabCursorService','setInterval','override','_entities','USER_NOT_INVITED_CODE','getMember','ALREADY_EXISTS','row','displayName','history','MOBILE_HAS_BEEN_BOUND','getTypeOfUnitAdded$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_injector','_color','_labelPosition','startFormulaLimitUrl','ILogService','_hasFormulaInDirtyRanges','REDEMPTION_USER_NOT_ELIGIBLE','color','_ensureSubject','NOT_COLLAB','_colorAssignService','_taskIds','round','redoState','_hideTimer','transformByState','_registerRenderDependencies','useRef','getUndoRedoMutationParamsCache','_roomMembers$','UnitStatus','clipPath','getVpScrollXYInfoByPosToVp','TEXT_RANGE_LAYER_INDEX','disableLocalCache','takeUntil','transformSelections','unitId','OTHER_CLIENT_EDITING','_imageIoService','onStarting','white','selection','_univerInstanceService','unitID','addHandlerCallback','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','jiqing.500','_drawRectRange','debounceTime','arc','size','onPointerEnter$','deepClone','_docSyncEditingCollabCursorService','_handleLeaveEvent','setAlpha','_disabled','_pollingInterval','ticket','INTERNAL_ERROR','_drawTextRange','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','backgroundColor','substring','width','INVITE_CODE_REQUIRED','getformulaLimitStatusUrl','doc.mutation.rich-text-editing','permission.content','registerRenderModule','from','_scene','SheetsSelectionsService','get','onPointerLeave$','YUUMI_CONNECTOR_URL_NOT_FOUND','LOCAL_CACHE_INTERVAL','xlink:href','shift','_sheetSkeletonManagerService','REDEMPTION_CODE_INACTIVE','OffLineIcon','_cachedData','_cursor','symbol','params','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','measureText','with','IRemoteInstanceService','assignAColorForMemberID','collabStatus.notCollab','addObject','next','_initCommandInterceptor','startRow','_handleHover','getAncestorScale','activeSheet$','WECHAT_HAS_BEEN_BOUND','url(#off-line-icon_clip0_910_343)','ONLINE','IImageIoService','IUIPartsService','_initCommandExecutedListener','FETCH_MISS','Subject','UNDEFINED','result','SetSelectionsOperation','toDisposable','onRendered','transformIMECache','PY_RUNTIME_SCRIPT_ERROR','_unitOnClients','_drawAnchor','currentSkeleton$','DocSelectionManagerService','ENTITLE_REPORT_LIMIT_EXCEED','_scheduleClearOtherTimer','drawWith','search','_scheduleHeartbeat','CollaborationUIEventService','USER_NOT_FOUND','_collabCursorController','_initStatusListener','_saveCache','_anchor','_cursorShapes','dispose','formula.calculation.waiting','HTTPService','children','saveTaskMap','InsertColCommandId','getFocusedUnit','cursorInfo','ILocalStorageService','_entityInit$','RECT','BehaviorSubject','permission.title','handleMoveRange','_revisionService','SetTextSelectionsOperation','DeleteRangeMoveUpCommandId','YUUMI_SUBSCRIPTION_NOT_FOUND','RxDisposable','urlChange$','/universer-api/license/formula/limit/status','href','_maxFormulaLimit','_removeClearOtherTimer','_transformHistoryAndStateStack','ENTITLE_INSUFFICIENT_QUOTA','0\x200\x2017\x2016','useDependency','replaceState','_collaborationUIEventService','pushState','newValue','getRenderById','MOBILE_VERIFY_CODE_MISMATCH','IRenderManagerService','Module','_config','_render','handleInsertRangeMoveDown','stage','_toggleOffline','_urlService','NodePositionConvertToCursor','IUniverInstanceService','getUniverSheetInstance','_updateSubUnitFromURLParams','startColumn','syncEditingCollabCursor','SheetCollabCursorShape','_collaborationController','find','m1Prime','skeleton','sessionTicket','formula.calculation.unable','_initResize','_refRangeService','ENTITLE_CHAT_LIMIT_EXCEED','_hover','unsubscribe','ILocalCacheService','createElement','clearInterval','moveTo','isTransformMutationFailure','roomMembers$','getOwnPropertyDescriptor','getCollabCursors$','getViewport','fillText','158062cMfmko','_textBubble','getCellMatrix','unit','getMergeData','sheetId','_docSkeletonManagerService','transformRemoteChangeset','UPDATE_CURSOR','INVITE_CODE_HAS_BEEN_UES','CONFLICT','setItem','Workbook','set','combineLatest','IMessageService','_onCursorUpdate','SNAPSHOT_INVALID_SNAPSHOT','DATA_SOURCE_TOO_LARGE','ITransformService','_id','actions','_cursors','wsSessionTicketUrl','sheetID','RegularPolygon','onPointerMove$','red.300','pluginName','yellow.400','top','_commandService','getUnit','_online','_unitStatus','mutations','on-line-icon','colorChannel1','runId','_getSaveTimeout','getConfig','m2Prime','ENTITLE_NEED_BILLING_ADDRESS','ISnapshotServerService','Warning','INotificationService','lineTo','maxFormulaLimit','SheetSkeletonManagerService','_transformUndoRedoStack','Inject','setConfig','387630eZIwIZ','_colorIndex','LOCAL_CACHE_INTERVAL_KEY','ThemeService','hide','_startDocCollabCursor','LICENSE_EXPORT_SIZE_EXCEEDED','_beforeCloseService','_cursorInfo$','setParam','YUUMI_ASYNCIO_CANCELLED','ColorKit','getCellPositionByOffset','mask','Injector','_anchorDot','_clearPolling','defs','session.will-retry','UniverInstanceType','dispose$','NO_OTHER_CLIENTS_EDITING','getSheetId','CollaborationUIEventId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','touchDependencies','send','TOO_MANY_REQUESTS','_localCacheService','filter','RemoteUniscriptService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_releaseCalculationLimit','_docTransformSelectionsService','_httpService','_assignedColors','textRanges','subscribeEvent','on-line-icon_clip0_910_349','max','evenodd','requireSession','none','EMAIL_VERIFY_CODE_MISMATCH','handleInsertCol','SUCCESS','CollaborationDataLoaderController','_messageService','_initDependencies','limitInfo','runRefRangeMutations','connectInjector','_updateLocalCursor','JOIN_ROOM_FAILED','fillRule','map','getActiveRange','EffectRefRangId','removeParam','VIEW_MAIN','CHANGESET_REVISION_CONFILICT','_clearOtherTimers','_session','_lastPointer','REDEMPTION_CODE_NOT_STARTED','rgba(255,\x20255,\x20255,\x200.01)','_checkCalculationAvailable','setUndoRedoMutationParamsCache','getTypeOfUnitDisposed$','defIds','getParam','LICENSE_DISTRO_REJECTED','type','_eventUnsubscribe','INVALID_ARGUMENT','eventID','currentColor','div','addClipboardHook','isArray','_docTransformStateCacheService','restore','_backgroundColor','onCommandExecuted','DependentOn','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','NOT_FOUND','saveOfflineData','DocIMEInputManagerService','_getFormulaLimitStatus','_onCursorDelete','_initEntityListener','getSkeleton','_getMergeRange','_memberService','YUUMI_UNABLE_LOAD_URL','mergeOverrideWithDependencies','collabCursorState$','COMPLETION_FINISHED','clsx','_scheduleSaving','saveImage','YUUMI_URL_COL_OUT_OF_RANGE','Unknown\x20user','subscribe','REDEMPTION_INVALID_CODE','hovered','resize','font','_draw','UniverCollaborationClientUIPlugin','YUUMI_ALL_TABLES_IS_INVALID','IURLService','debounce','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_createSocketURL','green.600','collabStatus.syncing','Error','DocSkeletonManagerService','save','getOffsetConfig','labelPosition','1em','_refreshCollabCursors','_transformPreviousActiveRange','ACTIVE_UNIT_EVENT_CHANNEL','source','black','_docTransformIMECacheService','_toggleOnline','_dataLoaderService','isTransformMutationsWithChangesetSuccess','add','APPLY_REJECT','shareReplay','column','UNIVER_DOC','svg','roomMembers','_localStorageService','popstate','IConfigService','Success','getRelativeToViewportCoord','_onRefRangeChange','MemberService','IDocClipboardService','collab-rect-range-','_logService','name','transformMutation','_handleHeartbeatEvent','_startCalculationLimit','_docClipboardService','OTHER_CLIENTS_EDITING','MUTATION','AUTHORIZE_CODE_ILLEGAL','_name','_instanceService','trim','now','reconnect','_handleJoinEvent','_handleEvent','executeCommand','useObservable','translate(.97)','init','data','DesktopCollaborationStatusDisplayController','70wDXTxm','_send','univer-flex\x20univer-items-center','fromEvent','Rect','registerDependencies','getValue','/universer-api/license/formula/limit/done','toRgbString','text','_selfUnitIDs','ENTITLE_DUP_SUBSCRIPTION','RemoveRowCommandId','entries','makeDirty','getUnitId','CommandType','getStateCache','_saveTaskMap','post','DocStateChangeManagerService','fillStyle','disposeWithMe','_init','SetFormulaCalculationNotificationMutation','USERS_LEAVE','uni.network.url-service','CanceledError','_heartbeatTimer','CollaborationSocketService','LICENSE_IMPORT_SIZE_EXCEEDED','CURRENT_STATUS_CANNOT_OPERATE','WebSocketService','57878utiMPr','396272mgkyaT','REDEMPTION_CODE_FULLY_REDEEMED','collab-text-range-','parseInt','location','UNRECOGNIZED','delete','setShapeProps','handleIRemoveCol','url(#$1','transformStateCache','distinctUntilChanged','getActiveSheet','LOGIN_TOKEN_PROCESSING_FAILED','loadOfflineData','REDEMPTION_CODE_HAS_BEEN_CREATED','registerRefRange','getLocalCacheKey','getMemberID','mapTo','OFFLINE','_status$','SYNCED','then','BrowserCollaborationSocketService','_renderManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','subunit','handleInsertRow','PERMISSION_DENIED','_document','event$','DEFAULT_WS_SESSION_TICKET_URL','APPLY_PERMISSION_DENIED','searchParams','YUUMI_AI_RUN_FAILED','_doCreateSocket','USER_IS_ANONYMOUS','_getScale','_collabCursorState$','length','endRow','NodePositionConvertToRectRange','createIdentifier','_removeCollabCursors','values','getCurrentUnitForType','stringify','releaseFormulaLimitUrl','Tooltip','LocaleService','assign','getCurrentSelections','switchMap','subUnitId','handleDeleteRangeMoveLeft','collab-client.tooltip.reconnect','DOC_RANGE_TYPE','_configService','MessageType','_updateCollabCursors','setTimeout','onTransformChange$','CollaborationSessionService','handleDeleteRangeMoveUp','_notificationService','_checkAndWaitForCalculationPermission','split','registerBeforeClose','updateOfflineData','PAYMENT_CHANNEL_NOT_SUPPORT','SOCKET_FAILED_RETRY','_themeService','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','sessionStatus$','[CollaborationDataLoaderController]','min','parse','_initEvent','FormulaExecuteStageType','addEventListener','toString','getColor','createInstance','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','off-line-icon_clip0_910_343','undoState','561642wyehIz','univerjs-icon\x20univerjs-icon-','beforeCommandExecuted','unshift','defineProperty','height','/run/','START_CALCULATION','_setupSubUnitSync','Plugin','getUnitStatus$','_lastResponseTimestamp','getRangePointData','_updateURLWithCurrentState','totalFormulasToCalculate','CollaborationEvent','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','WebBrowserSingleActiveUnitService','AWAITING','merge','M0\x200H16V16H0z','includes','pipe','_setFormulaLimitStatus','clearTimeout','TEXT','has','getDocRanges','_shapes','IBeforeCloseService'];_0x3083=function(){return _0x588f79;};return _0x3083();}var V=(_0x68502c=>(_0x68502c[_0x68502c[_0x2dd085(0x1f8)]=0x0]='UNDEFINED',_0x68502c[_0x68502c['OK']=0x1]='OK',_0x68502c[_0x68502c[_0x2dd085(0x1c8)]=0x2]=_0x2dd085(0x1c8),_0x68502c[_0x68502c[_0x2dd085(0x373)]=0x3]=_0x2dd085(0x373),_0x68502c[_0x68502c[_0x2dd085(0x2df)]=0x4]=_0x2dd085(0x2df),_0x68502c[_0x68502c[_0x2dd085(0x3ed)]=0x5]=_0x2dd085(0x3ed),_0x68502c[_0x68502c[_0x2dd085(0x43c)]=0x6]=_0x2dd085(0x43c),_0x68502c[_0x68502c['INVALID_ARGUMENT']=0x7]=_0x2dd085(0x2d3),_0x68502c[_0x68502c['TOO_MANY_REQUESTS']=0x8]=_0x2dd085(0x2a4),_0x68502c[_0x68502c[_0x2dd085(0x2eb)]=0x9]='COMPLETION_FINISHED',_0x68502c[_0x68502c[_0x2dd085(0x3f5)]=0xa]=_0x2dd085(0x3f5),_0x68502c[_0x68502c[_0x2dd085(0x230)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x68502c[_0x68502c[_0x2dd085(0x3bd)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x68502c[_0x68502c[_0x2dd085(0x2b4)]=0xd]=_0x2dd085(0x2b4),_0x68502c[_0x68502c['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x2dd085(0x2a1),_0x68502c[_0x68502c['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2dd085(0x326),_0x68502c[_0x68502c['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x2dd085(0x363),_0x68502c[_0x68502c['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x2dd085(0x353),_0x68502c[_0x68502c[_0x2dd085(0x3ff)]=0x65]='ERROR_AGAIN',_0x68502c[_0x68502c[_0x2dd085(0x209)]=0xc9]=_0x2dd085(0x209),_0x68502c[_0x68502c[_0x2dd085(0x37b)]=0xca]=_0x2dd085(0x37b),_0x68502c[_0x68502c[_0x2dd085(0x2c5)]=0x1389]=_0x2dd085(0x2c5),_0x68502c[_0x68502c[_0x2dd085(0x266)]=0x1771]=_0x2dd085(0x266),_0x68502c[_0x68502c[_0x2dd085(0x435)]=0x1772]=_0x2dd085(0x435),_0x68502c[_0x68502c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2dd085(0x423),_0x68502c[_0x68502c['APPLY_REJECT']=0x1b59]=_0x2dd085(0x30f),_0x68502c[_0x68502c[_0x2dd085(0x410)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x68502c[_0x68502c[_0x2dd085(0x3fc)]=0x1b5b]=_0x2dd085(0x3fc),_0x68502c[_0x68502c[_0x2dd085(0x377)]=0x1b5c]=_0x2dd085(0x377),_0x68502c[_0x68502c[_0x2dd085(0x3f4)]=0x1b5d]=_0x2dd085(0x3f4),_0x68502c[_0x68502c[_0x2dd085(0x42c)]=0x1f41]=_0x2dd085(0x42c),_0x68502c[_0x68502c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x68502c[_0x68502c[_0x2dd085(0x431)]=0x232a]=_0x2dd085(0x431),_0x68502c[_0x68502c[_0x2dd085(0x352)]=0x232b]=_0x2dd085(0x352),_0x68502c[_0x68502c[_0x2dd085(0x28f)]=0x232c]=_0x2dd085(0x28f),_0x68502c[_0x68502c[_0x2dd085(0x2d0)]=0x232d]=_0x2dd085(0x2d0),_0x68502c[_0x68502c[_0x2dd085(0x2e8)]=0x2711]=_0x2dd085(0x2e8),_0x68502c[_0x68502c[_0x2dd085(0x2ef)]=0x2712]=_0x2dd085(0x2ef),_0x68502c[_0x68502c[_0x2dd085(0x3fd)]=0x2713]=_0x2dd085(0x3fd),_0x68502c[_0x68502c[_0x2dd085(0x220)]=0x2714]=_0x2dd085(0x220),_0x68502c[_0x68502c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x68502c[_0x68502c[_0x2dd085(0x293)]=0x271b]=_0x2dd085(0x293),_0x68502c[_0x68502c[_0x2dd085(0x430)]=0x271c]=_0x2dd085(0x430),_0x68502c[_0x68502c[_0x2dd085(0x2f8)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x68502c[_0x68502c['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2dd085(0x1ba),_0x68502c[_0x68502c[_0x2dd085(0x379)]=0x271f]=_0x2dd085(0x379),_0x68502c[_0x68502c[_0x2dd085(0x1d8)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x68502c[_0x68502c[_0x2dd085(0x1fe)]=0x2af9]=_0x2dd085(0x1fe),_0x68502c[_0x68502c[_0x2dd085(0x25e)]=0x2ee1]=_0x2dd085(0x25e),_0x68502c[_0x68502c[_0x2dd085(0x3e6)]=0x2ee2]='INVALID_INVITE_CODE',_0x68502c[_0x68502c[_0x2dd085(0x1ce)]=0x2ee3]=_0x2dd085(0x1ce),_0x68502c[_0x68502c[_0x2dd085(0x43a)]=0x2ee4]=_0x2dd085(0x43a),_0x68502c[_0x68502c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x68502c[_0x68502c[_0x2dd085(0x1f0)]=0x32c9]=_0x2dd085(0x1f0),_0x68502c[_0x68502c[_0x2dd085(0x193)]=0x32ca]=_0x2dd085(0x193),_0x68502c[_0x68502c[_0x2dd085(0x413)]=0x32cb]=_0x2dd085(0x413),_0x68502c[_0x68502c[_0x2dd085(0x2fb)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x68502c[_0x68502c['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x68502c[_0x68502c[_0x2dd085(0x33f)]=0x36b3]=_0x2dd085(0x33f),_0x68502c[_0x68502c[_0x2dd085(0x39c)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x68502c[_0x68502c[_0x2dd085(0x248)]=0x3715]=_0x2dd085(0x248),_0x68502c[_0x68502c[_0x2dd085(0x203)]=0x3716]=_0x2dd085(0x203),_0x68502c[_0x68502c[_0x2dd085(0x228)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x68502c[_0x68502c[_0x2dd085(0x27f)]=0x37dd]=_0x2dd085(0x27f),_0x68502c[_0x68502c[_0x2dd085(0x2f2)]=0x3a99]=_0x2dd085(0x2f2),_0x68502c[_0x68502c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x2dd085(0x1dd),_0x68502c[_0x68502c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2dd085(0x357),_0x68502c[_0x68502c[_0x2dd085(0x2c9)]=0x3a9c]=_0x2dd085(0x2c9),_0x68502c[_0x68502c[_0x2dd085(0x19c)]=0x3a9d]=_0x2dd085(0x19c),_0x68502c[_0x68502c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x2dd085(0x415),_0x68502c[_0x68502c['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x2dd085(0x365),_0x68502c[_0x68502c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x2dd085(0x267),_0x68502c[_0x68502c[_0x2dd085(0x35b)]=-0x1]='UNRECOGNIZED',_0x68502c))(V||{});function Xt(_0x3fed80){const _0x413a2f=_0x2dd085;var _0x127703,_0x29bfc5;const _0x1d78b8=(_0x127703=_0x3fed80['stageInfo'])==null?void 0x0:_0x127703[_0x413a2f(0x236)],_0x4ac632=((_0x29bfc5=_0x3fed80['stageInfo'])==null?void 0x0:_0x29bfc5[_0x413a2f(0x3bb)])||0x0;return _0x1d78b8===x[_0x413a2f(0x3a5)][_0x413a2f(0x3b4)]&&_0x4ac632>0x0;}function Kt(_0x3d268f){const _0x26b4c1=_0x2dd085;return _0x3d268f['functionsExecutedState']===x['FormulaExecutedStateType'][_0x26b4c1(0x2b6)];}var qt=Object[_0x2dd085(0x251)],zt=(_0x407a38,_0x2406fd,_0x319d2b,_0xd8ebf7)=>{const _0x2393dd=_0x2dd085;for(var _0x5a5790=_0xd8ebf7>0x1?void 0x0:_0xd8ebf7?qt(_0x2406fd,_0x319d2b):_0x2406fd,_0x4edcd5=_0x407a38[_0x2393dd(0x37e)]-0x1,_0x588f8b;_0x4edcd5>=0x0;_0x4edcd5--)(_0x588f8b=_0x407a38[_0x4edcd5])&&(_0x5a5790=_0x588f8b(_0x5a5790)||_0x5a5790);return _0x5a5790;},L=(_0x278d92,_0x6bd16e)=>(_0x9bd178,_0x29c903)=>_0x6bd16e(_0x9bd178,_0x29c903,_0x278d92);const Jt=_0x2dd085(0x223),Zt='/universer-api/license/formula/limit/start',Qt=_0x2dd085(0x33b);let se=class extends a[_0x2dd085(0x41f)]{constructor(_0x41e539,_0x4416ef,_0x15ec56,_0x2ab4de,_0x4d79de,_0x4e4182,_0x26bf4c){const _0xb6fc3c=_0x2dd085;super(),_(this,_0xb6fc3c(0x1c6),null),_(this,_0xb6fc3c(0x225),0x0),_(this,'_currentUsage',0x0),_(this,_0xb6fc3c(0x1a1),[]),_(this,_0xb6fc3c(0x3b8),0x0),(this[_0xb6fc3c(0x2b8)]=_0x41e539,this['_commandService']=_0x4416ef,this[_0xb6fc3c(0x390)]=_0x15ec56,this[_0xb6fc3c(0x2ab)]=_0x2ab4de,this[_0xb6fc3c(0x1b7)]=_0x4d79de,this['_logService']=_0x4e4182,this[_0xb6fc3c(0x427)]=_0x26bf4c,this['_initCommandInterceptor']());}[_0x2dd085(0x1eb)](){const _0x49dda2=_0x2dd085;this[_0x49dda2(0x34a)](this[_0x49dda2(0x274)][_0x49dda2(0x3af)]((_0x4866d0,_0x11c4a3)=>{const _0x19487c=_0x49dda2;var _0x1e7365;if(_0x4866d0['id']!==x[_0x19487c(0x3dc)]['id'])return;const _0x4a3d73=_0x4866d0[_0x19487c(0x1e2)];if(!this[_0x19487c(0x19b)]((_0x1e7365=_0x4a3d73['dirtyRanges'])!=null?_0x1e7365:[]))return;if(!this[_0x19487c(0x2cb)]())throw this['_checkAndWaitForCalculationPermission'](_0x4866d0,_0x11c4a3),this[_0x19487c(0x3dd)](),new a[(_0x19487c(0x34f))]();})),this['disposeWithMe'](this[_0x49dda2(0x274)][_0x49dda2(0x2dc)]((_0x1d70ad,_0x3e3b8d)=>{const _0x3787f6=_0x49dda2;if(_0x1d70ad['id']!==x[_0x3787f6(0x34c)]['id'])return;const _0x5b5ff9=_0x1d70ad[_0x3787f6(0x1e2)];if(Xt(_0x5b5ff9)){const _0x4a0b40=a[_0x3787f6(0x414)]();this[_0x3787f6(0x1a1)][_0x3787f6(0x3f7)](_0x4a0b40),this[_0x3787f6(0x322)](_0x4a0b40);}else{if(Kt(_0x5b5ff9)&&this['_taskIds'][_0x3787f6(0x37e)]>0x0){const _0x442c65=this[_0x3787f6(0x1a1)][_0x3787f6(0x1db)]();this[_0x3787f6(0x2a9)](_0x442c65);}}}));}[_0x2dd085(0x20f)](){const _0x99a743=_0x2dd085;super['dispose'](),this[_0x99a743(0x299)](),this[_0x99a743(0x1a1)]=[],this[_0x99a743(0x3d4)]=0x0,this[_0x99a743(0x225)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x2dd085(0x398)](_0x486f77,_0x4ec6c2){const _0x178863=_0x2dd085;for(let _0x43472e=0x0;_0x43472e<0x1e;_0x43472e++)try{if(await this[_0x178863(0x2e2)](),this[_0x178863(0x2cb)]()){this[_0x178863(0x3e2)](_0x486f77,_0x4ec6c2),this[_0x178863(0x2b8)][_0x178863(0x3e9)]({'content':this[_0x178863(0x427)]['t'](_0x178863(0x3d2)),'type':p['MessageType'][_0x178863(0x318)]});return;}await new Promise(_0x4166f1=>{const _0x1d0f17=_0x178863;this['_pollingInterval']=window[_0x1d0f17(0x393)](_0x4166f1,0x3e8);});}catch(_0x3855b0){this[_0x178863(0x31e)][_0x178863(0x409)](_0x3855b0);}this[_0x178863(0x2b8)][_0x178863(0x3e9)]({'content':this['_localeService']['t'](_0x178863(0x245)),'type':p[_0x178863(0x391)][_0x178863(0x2ff)]});}['_applyCommand'](_0x549a90,_0x4b7060){const _0x528e1e=_0x2dd085;try{this[_0x528e1e(0x274)][_0x528e1e(0x32e)](_0x549a90['id'],_0x549a90['params'],_0x4b7060);}catch(_0x4e1256){this[_0x528e1e(0x31e)]['error'](_0x4e1256);}}[_0x2dd085(0x3c4)](_0x3dde91,_0x398a92){const _0x5564dd=_0x2dd085;_0x398a92<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x398a92,this[_0x5564dd(0x225)]=Number['parseInt'](_0x3dde91[_0x5564dd(0x284)]),this[_0x5564dd(0x3d4)]=Number[_0x5564dd(0x359)](_0x3dde91['currentUsage']));}async[_0x2dd085(0x322)](_0x1d6f48){const _0x6d0ea2=_0x2dd085;var _0xd3a75b,_0x2e1ed3;const _0x586610=Date['now']();try{const _0x565d6e=((_0xd3a75b=this[_0x6d0ea2(0x390)][_0x6d0ea2(0x27d)](u[_0x6d0ea2(0x3aa)]))==null?void 0x0:_0xd3a75b[_0x6d0ea2(0x199)])||Zt,_0x1f0ccb=(await this[_0x6d0ea2(0x2ab)][_0x6d0ea2(0x347)](_0x565d6e,{'body':JSON[_0x6d0ea2(0x385)]({'taskId':_0x1d6f48})}))[_0x6d0ea2(0x426)];if(((_0x2e1ed3=_0x1f0ccb[_0x6d0ea2(0x409)])==null?void 0x0:_0x2e1ed3[_0x6d0ea2(0x419)])!==V['OK'])return;this[_0x6d0ea2(0x3c4)](_0x1f0ccb[_0x6d0ea2(0x2ba)],_0x586610);}catch(_0x560345){this[_0x6d0ea2(0x31e)][_0x6d0ea2(0x409)](_0x560345);}}async[_0x2dd085(0x2e2)](_0x12fdec){const _0x256722=_0x2dd085;var _0xefaff6,_0x3c6154;const _0x38da6f=Date[_0x256722(0x32a)]();try{const _0x15ece1=((_0xefaff6=this[_0x256722(0x390)][_0x256722(0x27d)](u[_0x256722(0x3aa)]))==null?void 0x0:_0xefaff6[_0x256722(0x1cf)])||Jt,_0x6246a9=_0x12fdec?_0x15ece1+_0x256722(0x40d)+encodeURIComponent(_0x12fdec):_0x15ece1,_0x33d409=(await this['_httpService'][_0x256722(0x1d6)](_0x6246a9))[_0x256722(0x426)];if(((_0x3c6154=_0x33d409[_0x256722(0x409)])==null?void 0x0:_0x3c6154['code'])!==V['OK'])return;this[_0x256722(0x3c4)](_0x33d409[_0x256722(0x2ba)],_0x38da6f);}catch(_0x5c6754){this[_0x256722(0x31e)][_0x256722(0x409)](_0x5c6754);}}async['_releaseCalculationLimit'](_0x5e9621){const _0x2e04aa=_0x2dd085;var _0x170562,_0xf81732;const _0x134f04=Date['now']();try{const _0x2fc1c5=((_0x170562=this[_0x2e04aa(0x390)]['getConfig'](u[_0x2e04aa(0x3aa)]))==null?void 0x0:_0x170562[_0x2e04aa(0x386)])||Qt,_0x40f9c1=(await this[_0x2e04aa(0x2ab)][_0x2e04aa(0x347)](_0x2fc1c5,{'body':JSON[_0x2e04aa(0x385)]({'taskId':_0x5e9621})}))[_0x2e04aa(0x426)];if(((_0xf81732=_0x40f9c1['error'])==null?void 0x0:_0xf81732['code'])!==V['OK'])return;this[_0x2e04aa(0x3c4)](_0x40f9c1[_0x2e04aa(0x2ba)],_0x134f04);}catch(_0x42fecd){this['_logService'][_0x2e04aa(0x409)](_0x42fecd);}}[_0x2dd085(0x2cb)](){const _0x5d4495=_0x2dd085;return this[_0x5d4495(0x225)]===0x0?!0x0:this[_0x5d4495(0x225)]-this[_0x5d4495(0x3d4)]>0x0;}[_0x2dd085(0x299)](){const _0x1234ac=_0x2dd085;this[_0x1234ac(0x1c6)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x2dd085(0x3dd)](){const _0x5d0295=_0x2dd085;this[_0x5d0295(0x2b8)][_0x5d0295(0x3e9)]({'content':this[_0x5d0295(0x427)]['t'](_0x5d0295(0x210)),'type':p['MessageType']['Loading']});}[_0x2dd085(0x19b)](_0x510639){const _0x3aa0b4=_0x2dd085;for(const _0x481ed9 of _0x510639){const {unitId:_0x4e86db,sheetId:_0x55a565,range:_0x6cc34}=_0x481ed9,_0x472a29=this[_0x3aa0b4(0x1b7)][_0x3aa0b4(0x275)](_0x4e86db);if(!_0x472a29)continue;const _0x11d5da=_0x472a29['getSheetBySheetId'](_0x55a565);if(!_0x11d5da)continue;const _0x121651=_0x11d5da[_0x3aa0b4(0x257)]();for(let _0x180a6b=_0x6cc34[_0x3aa0b4(0x1ec)];_0x180a6b<=_0x6cc34[_0x3aa0b4(0x37f)];_0x180a6b++)for(let _0xbff3a2=_0x6cc34[_0x3aa0b4(0x23d)];_0xbff3a2<=_0x6cc34['endColumn'];_0xbff3a2++){const _0x104bf5=_0x121651[_0x3aa0b4(0x33a)](_0x180a6b,_0xbff3a2);if(_0x104bf5&&(a[_0x3aa0b4(0x416)](_0x104bf5['f'])||a['isFormulaId'](_0x104bf5['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x2dd085(0x287)](O[_0x2dd085(0x264)])),L(0x1,a[_0x2dd085(0x425)]),L(0x2,a[_0x2dd085(0x317)]),L(0x3,a['Inject'](G[_0x2dd085(0x211)])),L(0x4,a[_0x2dd085(0x23a)]),L(0x5,a[_0x2dd085(0x19a)]),L(0x6,a[_0x2dd085(0x287)](a[_0x2dd085(0x388)]))],se);var es=Object[_0x2dd085(0x251)],ts=(_0x56ba18,_0x55b7fd,_0x28997d,_0x2ef7c2)=>{const _0x44ebc0=_0x2dd085;for(var _0x36bcbd=_0x2ef7c2>0x1?void 0x0:_0x2ef7c2?es(_0x55b7fd,_0x28997d):_0x55b7fd,_0x3eae39=_0x56ba18[_0x44ebc0(0x37e)]-0x1,_0x1e9876;_0x3eae39>=0x0;_0x3eae39--)(_0x1e9876=_0x56ba18[_0x3eae39])&&(_0x36bcbd=_0x1e9876(_0x36bcbd)||_0x36bcbd);return _0x36bcbd;},ue=(_0x1464ef,_0x45b40f)=>(_0x3a72c8,_0x50d940)=>_0x45b40f(_0x3a72c8,_0x50d940,_0x1464ef);let Ee=class extends a[_0x2dd085(0x41f)]{constructor(_0x1d8cfa,_0x52de0e,_0x4d0258){const _0x3708ff=_0x2dd085;super(),_(this,'_cachedData',new Map()),_(this,_0x3708ff(0x346),new Map()),_(this,_0x3708ff(0x1c5),!0x1),(this['_configService']=_0x1d8cfa,this['_localStorageService']=_0x52de0e,this[_0x3708ff(0x21d)]=_0x4d0258);}[_0x2dd085(0x1ae)](){const _0x640f50=_0x2dd085;this[_0x640f50(0x1c5)]=!0x0;}[_0x2dd085(0x3e1)](){const _0x39f407=_0x2dd085;this[_0x39f407(0x1c5)]=!0x1;}get[_0x2dd085(0x213)](){const _0x2e7ec0=_0x2dd085;return this[_0x2e7ec0(0x346)];}[_0x2dd085(0x20f)](){const _0x4a2827=_0x2dd085;this['exhaustSavingTask']()[_0x4a2827(0x36d)](()=>super[_0x4a2827(0x20f)]());}async[_0x2dd085(0x364)](_0x5c82d0){const _0x1ae0f8=_0x2dd085;return this[_0x1ae0f8(0x1c5)]?null:this[_0x1ae0f8(0x315)]['getItem'](u['getLocalCacheKey'](_0x5c82d0));}async[_0x2dd085(0x2e0)](_0x487601,_0x5e6a25){const _0x39c9b5=_0x2dd085;return!!this[_0x39c9b5(0x315)]['setItem'](_0x487601,_0x5e6a25);}[_0x2dd085(0x39b)](_0x247e9a,_0x55ed48,_0x42b297,_0x4f78c9){const _0xd6c55a=_0x2dd085,_0x3a6355=this[_0xd6c55a(0x21d)]['getCurrentRevOfUnit'](_0x247e9a);this[_0xd6c55a(0x1df)][_0xd6c55a(0x262)](_0x247e9a,{'unitID':_0x247e9a,'type':_0x55ed48,'awaitingChangeset':_0x42b297,'mutations':_0x4f78c9,'rev':_0x3a6355}),this[_0xd6c55a(0x346)]['has'](_0x247e9a)||this[_0xd6c55a(0x2ed)](_0x247e9a);}[_0x2dd085(0x2ed)](_0x6cecc8){const _0x2bdc13=_0x2dd085,_0x20715f=this[_0x2bdc13(0x27c)]();_0x20715f===0x0?this['_saveCache'](_0x6cecc8):this[_0x2bdc13(0x346)][_0x2bdc13(0x262)](_0x6cecc8,setTimeout(()=>this['_saveCache'](_0x6cecc8),_0x20715f));}[_0x2dd085(0x27c)](){const _0x4da72f=_0x2dd085;var _0x471535;return(_0x471535=this[_0x4da72f(0x390)][_0x4da72f(0x27d)](u[_0x4da72f(0x28b)]))!=null?_0x471535:u[_0x4da72f(0x1d9)];}[_0x2dd085(0x20c)](_0x35ecab){const _0x3603ca=_0x2dd085,_0x3e3504=this[_0x3603ca(0x346)][_0x3603ca(0x1d6)](_0x35ecab);return _0x3e3504!==void 0x0&&window[_0x3603ca(0x3c5)](_0x3e3504),this[_0x3603ca(0x315)][_0x3603ca(0x260)](u[_0x3603ca(0x367)](_0x35ecab),this['_cachedData'][_0x3603ca(0x1d6)](_0x35ecab))[_0x3603ca(0x36d)](()=>this['_saveTaskMap'][_0x3603ca(0x35c)](_0x35ecab));}async['exhaustSavingTask'](){const _0x50eee6=_0x2dd085,_0x49cf6c=[];this[_0x50eee6(0x346)]['forEach']((_0xa737ff,_0x5472d2)=>{const _0x5d0ebe=_0x50eee6;window[_0x5d0ebe(0x3c5)](_0xa737ff),_0x49cf6c[_0x5d0ebe(0x3f7)](this[_0x5d0ebe(0x20c)](_0x5472d2)[_0x5d0ebe(0x36d)](()=>{const _0x59cc82=_0x5d0ebe;this[_0x59cc82(0x346)][_0x59cc82(0x35c)](_0x5472d2);}));}),await Promise['all'](_0x49cf6c);}};Ee=ts([ue(0x0,a['IConfigService']),ue(0x1,a[_0x2dd085(0x217)]),ue(0x2,a[_0x2dd085(0x287)](v['RevisionService']))],Ee);class Fe extends a[_0x2dd085(0x221)]{constructor(){const _0x2714ff=_0x2dd085;super(),_(this,_0x2714ff(0x222)),this[_0x2714ff(0x222)]=I[_0x2714ff(0x337)](window,_0x2714ff(0x316))[_0x2714ff(0x3c3)](I['takeUntil'](this[_0x2714ff(0x29d)]),I[_0x2714ff(0x310)](0x1),I[_0x2714ff(0x369)](void 0x0));}[_0x2dd085(0x292)](_0x71f4b7,_0x24e398,_0x28ae7f=!0x1){const _0x59c7f9=_0x2dd085,_0x1642e0=new URL(window[_0x59c7f9(0x35a)][_0x59c7f9(0x224)]);_0x1642e0[_0x59c7f9(0x378)][_0x59c7f9(0x262)](_0x71f4b7,_0x24e398),_0x28ae7f?window['history'][_0x59c7f9(0x22b)]('','',_0x1642e0['toString']()):window[_0x59c7f9(0x192)][_0x59c7f9(0x22d)]('','',_0x1642e0[_0x59c7f9(0x3a7)]());}[_0x2dd085(0x2c3)](_0x5a832e,_0x197957=!0x1){const _0x13715c=_0x2dd085,_0x4eca3f=new URL(window['location'][_0x13715c(0x224)]);_0x4eca3f[_0x13715c(0x378)][_0x13715c(0x35c)](_0x5a832e),_0x197957?window[_0x13715c(0x192)][_0x13715c(0x22b)]('','',_0x4eca3f['toString']()):window[_0x13715c(0x192)][_0x13715c(0x22d)]('','',_0x4eca3f[_0x13715c(0x3a7)]());}[_0x2dd085(0x2cf)](_0x47c9e3){const _0x35b4ea=_0x2dd085;var _0x134a7a;return(_0x134a7a=new URL(window[_0x35b4ea(0x35a)][_0x35b4ea(0x224)])[_0x35b4ea(0x378)][_0x35b4ea(0x1d6)](_0x47c9e3))!=null?_0x134a7a:void 0x0;}}var ss=Object[_0x2dd085(0x3b1)],is=Object['getOwnPropertyDescriptor'],ns=(_0x1e2233,_0x521d0e,_0x4a80cc)=>_0x521d0e in _0x1e2233?ss(_0x1e2233,_0x521d0e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a80cc}):_0x1e2233[_0x521d0e]=_0x4a80cc,rs=(_0x365964,_0x57f730,_0x2b8738,_0x304b85)=>{for(var _0x132c17=_0x304b85>0x1?void 0x0:_0x304b85?is(_0x57f730,_0x2b8738):_0x57f730,_0x225247=_0x365964['length']-0x1,_0x2248bb;_0x225247>=0x0;_0x225247--)(_0x2248bb=_0x365964[_0x225247])&&(_0x132c17=_0x2248bb(_0x132c17)||_0x132c17);return _0x132c17;},Ie=(_0x390ff0,_0x1448cf)=>(_0xd43d2a,_0x2be097)=>_0x1448cf(_0xd43d2a,_0x2be097,_0x390ff0),os=(_0x26c05e,_0x2bc53b,_0x202abe)=>ns(_0x26c05e,_0x2bc53b+'',_0x202abe);const as=_0x2dd085(0x432);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x2dd085(0x3b6)]{constructor(_0x2c2e61=Ue,_0x3985a9,_0x36009e,_0x595f84){const _0x37c1dc=_0x2dd085;super(),this[_0x37c1dc(0x233)]=_0x2c2e61,this[_0x37c1dc(0x36f)]=_0x3985a9,this[_0x37c1dc(0x196)]=_0x36009e,this['_configService']=_0x595f84;const {..._0x2f9822}=a[_0x37c1dc(0x3c0)]({},Ue,this[_0x37c1dc(0x233)]);this['_configService'][_0x37c1dc(0x288)](Bt,_0x2f9822);}[_0x2dd085(0x1b4)](){const _0xd08e2=_0x2dd085;this['_registerDependencies'](),this[_0xd08e2(0x2b9)]();}[_0x2dd085(0x1fc)](){const _0x5cc965=_0x2dd085;this[_0x5cc965(0x1a6)]();}['_registerDependencies'](){const _0x536639=_0x2dd085;var _0x21aad2;const _0x1160ce=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G['ISocketService'],{'useClass':G[_0x536639(0x354)]}],[u[_0x536639(0x24b)],{'useClass':Ee}],[exports[_0x536639(0x333)]],[te],[J],[B],[de],[exports['CollaborationDataLoaderController']]];a[_0x536639(0x339)](this[_0x536639(0x196)],a[_0x536639(0x2e9)](_0x1160ce,(_0x21aad2=this[_0x536639(0x233)])==null?void 0x0:_0x21aad2[_0x536639(0x438)]));}['_registerRenderDependencies'](){const _0x493420=_0x2dd085;this[_0x493420(0x34a)](this[_0x493420(0x36f)][_0x493420(0x1d2)](a[_0x493420(0x29c)][_0x493420(0x312)],[ge])),this['disposeWithMe'](this[_0x493420(0x36f)][_0x493420(0x1d2)](a[_0x493420(0x29c)][_0x493420(0x3cf)],[ve]));}['_initDependencies'](){const _0x2d97db=_0x2dd085;a[_0x2d97db(0x2a2)](this['_injector'],[[B],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x2dd085(0x2f7)],_0x2dd085(0x271),as),exports[_0x2dd085(0x2f7)]=rs([a[_0x2dd085(0x2dd)](u['UniverCollaborationClientPlugin']),Ie(0x1,C[_0x2dd085(0x231)]),Ie(0x2,a[_0x2dd085(0x287)](a[_0x2dd085(0x297)])),Ie(0x3,a[_0x2dd085(0x317)])],exports['UniverCollaborationClientUIPlugin']);var cs=Object[_0x2dd085(0x251)],ls=(_0x14fd2f,_0x38cdda,_0x33f582,_0x5435ca)=>{const _0x15f4e7=_0x2dd085;for(var _0x210f2e=_0x5435ca>0x1?void 0x0:_0x5435ca?cs(_0x38cdda,_0x33f582):_0x38cdda,_0x5cf883=_0x14fd2f[_0x15f4e7(0x37e)]-0x1,_0x20fbc8;_0x5cf883>=0x0;_0x5cf883--)(_0x20fbc8=_0x14fd2f[_0x5cf883])&&(_0x210f2e=_0x20fbc8(_0x210f2e)||_0x210f2e);return _0x210f2e;},H=(_0x109414,_0x22f971)=>(_0xacd231,_0xa48b01)=>_0x22f971(_0xacd231,_0xa48b01,_0x109414);exports[_0x2dd085(0x36e)]=class extends u[_0x2dd085(0x351)]{constructor(_0x2b3960,_0x11343a,_0x1a373c,_0x135cfd,_0x1912ae){super(_0x2b3960,_0x11343a,_0x1a373c,_0x135cfd,_0x1912ae);}async['createSocket'](_0x24e081){const _0x3a08fc=_0x2dd085,_0x26696a=await this[_0x3a08fc(0x42a)](),_0xcf6802=this[_0x3a08fc(0x2fc)](_0x24e081,_0x26696a);return this[_0x3a08fc(0x37a)](_0xcf6802);}[_0x2dd085(0x2fc)](_0x835ea3,_0x4e9a2e){const _0x334864=_0x2dd085,_0x301ab5=typeof window>'u'?new URL(_0x835ea3):new URL(_0x835ea3,window[_0x334864(0x35a)]['origin']);_0x301ab5['searchParams'][_0x334864(0x262)](_0x334864(0x244),_0x4e9a2e);const _0x4f8d81=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x334864(0x35a)][_0x334864(0x206)]);return _0x4f8d81['get'](_0x334864(0x27b))&&_0x301ab5[_0x334864(0x378)][_0x334864(0x262)](_0x334864(0x27b),_0x4f8d81['get'](_0x334864(0x27b))),_0x301ab5[_0x334864(0x3a7)]();}async[_0x2dd085(0x42a)](){const _0xd39dda=_0x2dd085;var _0x78a9d6,_0x1c6ace,_0xf2ef1d;const _0x10adb9=this[_0xd39dda(0x390)]['getConfig'](u[_0xd39dda(0x3aa)]),_0x390961=(_0x78a9d6=_0x10adb9==null?void 0x0:_0x10adb9[_0xd39dda(0x26c)])!=null?_0x78a9d6:u[_0xd39dda(0x376)];return(_0xf2ef1d=(_0x1c6ace=(await this[_0xd39dda(0x2ab)][_0xd39dda(0x1d6)](_0x390961,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x1c6ace[_0xd39dda(0x1c7)])!=null?_0xf2ef1d:'';}},exports[_0x2dd085(0x36e)]=ls([H(0x0,a[_0x2dd085(0x287)](a['Injector'])),H(0x1,a[_0x2dd085(0x287)](G[_0x2dd085(0x211)])),H(0x2,a['IConfigService']),H(0x3,a[_0x2dd085(0x19a)]),H(0x4,v[_0x2dd085(0x280)])],exports[_0x2dd085(0x36e)]);var _s=Object[_0x2dd085(0x251)],hs=(_0x3cd048,_0x1f4da5,_0x48a82a,_0x25fe86)=>{const _0x30b2cf=_0x2dd085;for(var _0x507ef0=_0x25fe86>0x1?void 0x0:_0x25fe86?_s(_0x1f4da5,_0x48a82a):_0x1f4da5,_0x565685=_0x3cd048[_0x30b2cf(0x37e)]-0x1,_0x25d96b;_0x565685>=0x0;_0x565685--)(_0x25d96b=_0x3cd048[_0x565685])&&(_0x507ef0=_0x25d96b(_0x507ef0)||_0x507ef0);return _0x507ef0;},Se=(_0x53f164,_0x5348b8)=>(_0x34454d,_0x35714a)=>_0x5348b8(_0x34454d,_0x35714a,_0x53f164);exports[_0x2dd085(0x2a7)]=class extends a[_0x2dd085(0x41f)]{constructor(_0x371d4d,_0x110989,_0x301c7e){const _0x16bdfe=_0x2dd085;super(),this[_0x16bdfe(0x328)]=_0x371d4d,this[_0x16bdfe(0x2ab)]=_0x110989,this[_0x16bdfe(0x390)]=_0x301c7e;}async[_0x2dd085(0x3d3)](_0x4ea711,_0x4e6185,_0xc4a5a0,..._0x148cdc){const _0x1de423=_0x2dd085;var _0x508617,_0x5666e0,_0x3d2c0f,_0x460508;const _0x39e5dd=this['_instanceService'][_0x1de423(0x215)]();if(!_0x39e5dd)throw new Error(_0x1de423(0x2a8));const _0x54946c=((_0x508617=this[_0x1de423(0x390)][_0x1de423(0x27d)](u[_0x1de423(0x1ca)]))!=null?_0x508617:u[_0x1de423(0x2de)])+'/'+_0x4ea711+_0x1de423(0x3b3)+_0x4e6185,_0x40a167=new URL(window[_0x1de423(0x35a)][_0x1de423(0x224)]),_0x4033e4={'scriptId':_0x4ea711,'runId':(_0x5666e0=_0x40a167[_0x1de423(0x378)][_0x1de423(0x1d6)]('runId'))!=null?_0x5666e0:'','function':_0x4e6185,'unitId':_0x39e5dd[_0x1de423(0x343)](),'argsOfFunction':JSON[_0x1de423(0x385)](_0x148cdc),'invokeId':(_0x3d2c0f=_0xc4a5a0[_0x1de423(0x3e4)])!=null?_0x3d2c0f:'','executionId':(_0x460508=_0xc4a5a0[_0x1de423(0x3ee)])!=null?_0x460508:''};try{const _0xc8a1e1=await this[_0x1de423(0x2ab)][_0x1de423(0x347)](_0x54946c,{'body':_0x4033e4});return _0xc8a1e1['body']['error']&&_0xc8a1e1[_0x1de423(0x426)][_0x1de423(0x409)][_0x1de423(0x419)]!==V['OK']?'Failed':_0xc8a1e1[_0x1de423(0x426)][_0x1de423(0x1f9)];}catch{return'Failed';}}},exports[_0x2dd085(0x2a7)]=hs([Se(0x0,a['IUniverInstanceService']),Se(0x1,a[_0x2dd085(0x287)](G[_0x2dd085(0x211)])),Se(0x2,a[_0x2dd085(0x317)])],exports[_0x2dd085(0x2a7)]);const Ae=0x7530,Pe=_0x2dd085(0x307);class us extends a[_0x2dd085(0x41f)]{constructor(){const _0x5762bd=_0x2dd085;super(),_(this,_0x5762bd(0x269),a[_0x5762bd(0x414)]()),_(this,_0x5762bd(0x33e),new Set()),_(this,_0x5762bd(0x1ff),new Map()),_(this,_0x5762bd(0x350),null),_(this,_0x5762bd(0x2c6),new Map()),_(this,_0x5762bd(0x277),new Map()),this['_init']();}[_0x2dd085(0x20f)](){const _0x343bd0=_0x2dd085;super[_0x343bd0(0x20f)](),this[_0x343bd0(0x2c6)][_0x343bd0(0x3d6)]((_0x2d927e,_0x56b7e1)=>this['_removeClearOtherTimer'](_0x56b7e1)),this['_heartbeatTimer']&&window[_0x343bd0(0x24d)](this[_0x343bd0(0x350)]);}[_0x2dd085(0x3b7)](_0xb17895){const _0x2f30b7=_0x2dd085;return this[_0x2f30b7(0x19e)](_0xb17895)[_0x2f30b7(0x3c3)](I[_0x2f30b7(0x361)]());}[_0x2dd085(0x41e)](_0x59aac6){const _0x371d8c=_0x2dd085;this[_0x371d8c(0x33e)]['size']===0x0&&this[_0x371d8c(0x207)](),this[_0x371d8c(0x33e)][_0x371d8c(0x30e)](_0x59aac6),this[_0x371d8c(0x335)]({'type':0x0,'memberID':this[_0x371d8c(0x269)],'unitIDs':[_0x59aac6],'isForwarded':!0x1});}['disposeUnit'](_0xacf0f0){const _0x3dc550=_0x2dd085;this['_selfUnitIDs']['delete'](_0xacf0f0),this[_0x3dc550(0x33e)][_0x3dc550(0x1bf)]===0x0&&this[_0x3dc550(0x350)]&&window[_0x3dc550(0x24d)](this[_0x3dc550(0x350)]);}[_0x2dd085(0x34b)](){const _0x1a6145=_0x2dd085;this[_0x1a6145(0x34a)](a[_0x1a6145(0x1fb)](I['fromEvent'](window,_0x1a6145(0x3d7))['subscribe'](_0x2d514b=>{const _0x3bc27f=_0x1a6145;if(_0x2d514b['key']!==Pe||!_0x2d514b[_0x3bc27f(0x22e)])return;const _0x5302ea=JSON[_0x3bc27f(0x3a3)](_0x2d514b[_0x3bc27f(0x22e)]);this[_0x3bc27f(0x32d)](_0x5302ea);}))),window[_0x1a6145(0x3a6)](_0x1a6145(0x3ce),()=>this[_0x1a6145(0x335)]({'type':0x1,'memberID':this[_0x1a6145(0x269)],'unitIDs':Array[_0x1a6145(0x1d3)](this[_0x1a6145(0x33e)])}));}[_0x2dd085(0x32d)](_0x469428){const _0x5e7752=_0x2dd085;switch(_0x469428['type']){case 0x0:this[_0x5e7752(0x32c)](_0x469428);break;case 0x1:this['_handleLeaveEvent'](_0x469428);break;case 0x2:this[_0x5e7752(0x321)](_0x469428);break;}}[_0x2dd085(0x32c)](_0x4548d7){const _0x4146b1=_0x2dd085,{unitIDs:_0x5c017c,memberID:_0x1e4083,isForwarded:_0x43871f}=_0x4548d7;_0x5c017c['forEach'](_0x1f7989=>{const _0x14f96d=_0x3d42;if(!_0x43871f&&this[_0x14f96d(0x1ff)]['has'](_0x1f7989)&&this['_ensureSubject'](_0x1f7989)[_0x14f96d(0x1ea)](u[_0x14f96d(0x1aa)][_0x14f96d(0x324)]),!this[_0x14f96d(0x1ff)]['has'](_0x1f7989)||!this[_0x14f96d(0x1ff)]['get'](_0x1f7989)[_0x14f96d(0x3c7)](_0x1e4083)){const _0x5789d8=this[_0x14f96d(0x1ff)][_0x14f96d(0x1d6)](_0x1f7989)||new Set();_0x5789d8[_0x14f96d(0x30e)](_0x1e4083),this[_0x14f96d(0x1ff)]['set'](_0x1f7989,_0x5789d8),this[_0x14f96d(0x204)](_0x1e4083);}}),_0x43871f||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4146b1(0x33e)]],'isForwarded':!0x0});}[_0x2dd085(0x204)](_0x42e472){const _0x1d93f1=_0x2dd085;this[_0x1d93f1(0x226)](_0x42e472);const _0x1baf8a=window[_0x1d93f1(0x393)](()=>{const _0x1a7222=_0x1d93f1;this[_0x1a7222(0x1ff)][_0x1a7222(0x3d6)](_0x4a2665=>{const _0x56e378=_0x1a7222;_0x4a2665[_0x56e378(0x35c)](_0x42e472);});},Ae*0x2);this[_0x1d93f1(0x2c6)]['set'](_0x42e472,_0x1baf8a);}[_0x2dd085(0x226)](_0x1451ca){const _0x6bf08f=_0x2dd085;if(this[_0x6bf08f(0x2c6)][_0x6bf08f(0x3c7)](_0x1451ca)){const _0x12fa17=this[_0x6bf08f(0x2c6)][_0x6bf08f(0x1d6)](_0x1451ca);_0x12fa17&&window[_0x6bf08f(0x3c5)](_0x12fa17),this[_0x6bf08f(0x2c6)][_0x6bf08f(0x262)](_0x1451ca,null);}}[_0x2dd085(0x1c3)](_0x4ac2ed){const _0x480f11=_0x2dd085,{memberID:_0x2bfcda,unitIDs:_0x11eb44}=_0x4ac2ed;_0x11eb44[_0x480f11(0x3d6)](_0x1c3051=>{const _0x4bef01=_0x480f11;var _0x107870;const _0x170898=this[_0x4bef01(0x1ff)][_0x4bef01(0x1d6)](_0x1c3051);_0x170898&&(_0x170898['delete'](_0x2bfcda),(_0x107870=this['_ensureSubject'](_0x1c3051))==null||_0x107870[_0x4bef01(0x1ea)](_0x170898['size']===0x0?u[_0x4bef01(0x1aa)][_0x4bef01(0x29e)]:u[_0x4bef01(0x1aa)][_0x4bef01(0x324)]));}),this[_0x480f11(0x226)](_0x2bfcda);}[_0x2dd085(0x321)](_0x1fcdd5){const _0x5da487=_0x2dd085;this[_0x5da487(0x204)](_0x1fcdd5['memberID']);}[_0x2dd085(0x335)](_0x4112d0){const _0x2f8b26=_0x2dd085;localStorage['setItem'](Pe,JSON[_0x2f8b26(0x385)](_0x4112d0));}[_0x2dd085(0x207)](){const _0xd58598=_0x2dd085;this[_0xd58598(0x350)]=window[_0xd58598(0x437)](()=>{const _0x1a4a3e=_0xd58598;this[_0x1a4a3e(0x335)]({'type':0x2,'memberID':this[_0x1a4a3e(0x269)]});},Ae);}[_0x2dd085(0x19e)](_0x3fd0da){const _0x50c891=_0x2dd085;return this[_0x50c891(0x277)][_0x50c891(0x3c7)](_0x3fd0da)||this[_0x50c891(0x277)][_0x50c891(0x262)](_0x3fd0da,new I[(_0x50c891(0x21a))](u[_0x50c891(0x1aa)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x50c891(0x277)][_0x50c891(0x1d6)](_0x3fd0da);}}exports[_0x2dd085(0x2f9)]=Te,exports[_0x2dd085(0x23f)]=Be,exports[_0x2dd085(0x3be)]=us,exports[_0x2dd085(0x401)]=Fe;
|