@univerjs-pro/collaboration-client-ui 0.12.1 → 0.12.2

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.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x10cc18=_0x58c2;(function(_0x1b9ca3,_0x4cf5b1){const _0x461f6f=_0x58c2,_0x5953cf=_0x1b9ca3();while(!![]){try{const _0x3c3633=parseInt(_0x461f6f(0x319))/0x1*(parseInt(_0x461f6f(0x329))/0x2)+parseInt(_0x461f6f(0x236))/0x3+-parseInt(_0x461f6f(0x224))/0x4*(-parseInt(_0x461f6f(0x166))/0x5)+-parseInt(_0x461f6f(0x247))/0x6*(parseInt(_0x461f6f(0x129))/0x7)+parseInt(_0x461f6f(0x235))/0x8*(-parseInt(_0x461f6f(0x15a))/0x9)+parseInt(_0x461f6f(0x19b))/0xa+-parseInt(_0x461f6f(0x266))/0xb*(-parseInt(_0x461f6f(0x314))/0xc);if(_0x3c3633===_0x4cf5b1)break;else _0x5953cf['push'](_0x5953cf['shift']());}catch(_0x316892){_0x5953cf['push'](_0x5953cf['shift']());}}}(_0x270e,0x97fac));var Yt=Object[_0x10cc18(0x1e4)],Wt=(_0x3cb592,_0x8679c5,_0x23aa55)=>_0x8679c5 in _0x3cb592?Yt(_0x3cb592,_0x8679c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23aa55}):_0x3cb592[_0x8679c5]=_0x23aa55,_=(_0x2af420,_0x2e0d11,_0x43dedb)=>Wt(_0x2af420,typeof _0x2e0d11!=_0x10cc18(0x2de)?_0x2e0d11+'':_0x2e0d11,_0x43dedb);import{jsx as _0xccee15,jsxs as _0xc66364}from'react/jsx-runtime';import{CollaborationStatus as _0x3d84ba,CollaborationSessionService as _0x1abc06,CollaborationController as _0x69ed9c,DataLoaderService as _0x382568,MemberService as _0xf95f76,SessionStatus as _0x756bff,ILocalCacheService as _0x3a4f5a,CollaborationUIEventService as _0x32b243,CollaborationUIEventId as _0x5e0b6b,DocCollaborationEntity as _0x59b116,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x209e63,getLocalCacheKey as _0x59f688,LOCAL_CACHE_INTERVAL as _0x4a9fea,LOCAL_CACHE_INTERVAL_KEY as _0x24dd1f,UniverCollaborationClientPlugin as _0x4c184a,CollaborationSocketService as _0x4e6c96,DEFAULT_WS_SESSION_TICKET_URL as _0x45c098,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2d33ca,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x550c3a,UnitStatus as _0x4078f0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xefd7ba,IUniverInstanceService as _0x631d26,Inject as _0x2c9f2f,Injector as _0x3955fb,Disposable as _0x3e748e,createIdentifier as _0x5d6f8c,ILogService as _0x1368e3,ICommandService as _0x526fee,Optional as _0x2f165a,RxDisposable as _0x460db8,Workbook as _0x18daa7,DOC_RANGE_TYPE as _0x22acc,debounce as _0x51b589,Rectangle as _0x40c7c0,DisposableCollection as _0x5a6462,toDisposable as _0x555679,UniverInstanceType as _0x5045e8,generateRandomId as _0x5236ab,COLORS as _0x10fc5a,ColorKit as _0x1a8ee3,ThemeService as _0x31d312,fromEventSubject as _0x2b51fa,Tools as _0x4984ae,CommandType as _0x3e471d,IConfigService as _0x56b98d,CanceledError as _0x20efe7,isFormulaString as _0x5b53ca,isFormulaId as _0x3e9eba,ILocalStorageService as _0x2ba981,DependentOn as _0x5aa65c,Plugin as _0x5ba41c,merge as _0x5c3498,registerDependencies as _0x4b4f71,mergeOverrideWithDependencies as _0x436173,touchDependencies as _0x569f6e}from'@univerjs/core';import{useObservable as _0x3a1844,useDependency as _0x22da28,IUIPartsService as _0x25683e,BuiltInUIPart as _0x4ec0d2,connectInjector as _0x3832e5,IBeforeCloseService as _0x4d68ed,IMessageService as _0x41d342,INotificationService as _0x3c2d52}from'@univerjs/ui';import{BehaviorSubject as _0x1ced39,switchMap as _0x5e120f,of as _0x281440,takeUntil as _0x55bd62,debounceTime as _0x3be16c,Subject as _0x495c27,filter as _0x12a7d2,merge as _0x153e90,combineLatest as _0x5c05c1,fromEvent as _0x5171f8,shareReplay as _0x1b1b8c,mapTo as _0x5a5b3d,distinctUntilChanged as _0x34b2d2}from'rxjs';import{Tooltip as _0x556043,clsx as _0x25975e,MessageType as _0x22c147}from'@univerjs/design';import{useRef as _0x13a3f9,createElement as _0x2bc3c8,forwardRef as _0x21f1d1,useCallback as _0x3ffd3d}from'react';import{IRemoteInstanceService as _0x2cc7be}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3e1701,RefRangeService as _0x4afbe7,SetSelectionsOperation as _0x3c2d3f,SheetsSelectionsService as _0xc9e973,EffectRefRangId as _0xe50d17,handleIRemoveRow as _0x11bbdd,handleIRemoveCol as _0x27e994,handleMoveRange as _0x379eb2,handleInsertRow as _0x524712,handleInsertRangeMoveRight as _0x1916d7,handleInsertRangeMoveDown as _0x3177b4,handleInsertCol as _0x3b58f5,handleDeleteRangeMoveUp as _0x3a245f,handleDeleteRangeMoveLeft as _0xc34664,runRefRangeMutations as _0x178978}from'@univerjs/sheets';import{Shape as _0x28bace,Rect as _0x2dfad6,getColor as _0x44dbc,RegularPolygon as _0x2a7a95,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4c9c8a,Vector2 as _0x4b7404,SHEET_VIEWPORT_KEY as _0x32c43e,IRenderManagerService as _0x20cff4}from'@univerjs/engine-render';import{HTTPService as _0x47ffcb,ISocketService as _0x2befe2,WebSocketService as _0x21a377}from'@univerjs/network';import{IDocClipboardService as _0x401c42,NodePositionConvertToCursor as _0x3f6a22,NodePositionConvertToRectRange as _0x4973b1,TEXT_RANGE_LAYER_INDEX as _0x531506,SetDocZoomRatioOperation as _0x198811,DocIMEInputManagerService as _0x10cfe8,DocStateChangeManagerService as _0x58cfb8}from'@univerjs/docs-ui';import{IImageIoService as _0x3ef8ac}from'@univerjs/drawing';function _0x270e(){const _0x15d413=['hovered','_collabCursorState$','push','OnLineIcon','transform','_renderManagerService','result','ENTITLE_CAN_NOT_BUY_LOWER_OTP','[Unhandled\x20Rejection]:\x20','...','getTypeOfUnitDisposed$','MOBILE_VERIFY_CODE_MISMATCH','UNIVER_SHEET','_status$','_unitOnClients','history','href','resize','sheetID','shift','addHandlerCallback','_toggleOnline','RemoveColCommandId','engine','_uiPartsService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','translate(.97)','mutations','_initCommandExecutedListener','_entities','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_heartbeatTimer','size','filename','onRendered','transformByState','dispose$','clearTimeout','save','YUUMI_ASYNCIO_CANCELLED','_color','black','limitInfo','InsertColCommandId','fillStyle','body','none','on-line-icon_clip0_910_349','_scheduleClearOtherTimer','subUnitId','getSheetBySheetId','m2Prime','_roomMembers$','ALREADY_EXISTS','LICENSE_MAX_UNITS_EXCEEDED','_initUserListener','_registerRenderDependencies','4HZDXFn','init','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','exhaustSavingTask','MUTATION','setActiveRange','getViewport','_initEvent','setStateCache','location','1em','_updateLocalCursor','actions','includes','_handleHover','dispose','addObjects','405616igWxeR','567468NDgWAp','moveTo','UNIVER_DOC','set','path','find','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_startSheetCollabCursor','REDEMPTION_USER_NOT_ELIGIBLE','code','min','fillText','subunit','REDEMPTION_CODE_HAS_BEEN_CREATED','[CollaborationDataLoaderController]','[RemoteUniscriptService]:\x20no\x20focused\x20unit','labelPosition','5616xnmQJA','now','unitID','ticket','UPDATE_CURSOR','REDEMPTION_INVALID_CODE','_getFormulaLimitStatus','getActiveSheet','_initResize','_initWindowErrorListener','removeEventListener','_docStateChangeManagerService','getConfig','_shapes','onPointerMove$','beforeCommandExecuted','deepClone','getCollabEntity$','_document','getUnitId','stack','_clearPolling','defs','_init','_hovered','transformMutation','_draw','getMemberID','_beforeCloseService','delete','currentTheme$','550737xzoXGk','LOGIN_FAILED','searchParams','blue.400','JOIN_ROOM_FAILED','OTHER_CLIENTS_EDITING','key','_sheetSkeletonManagerService','onPointerLeave$','setTimeout','collabStatus.offline','_revisionService','_cursorShapes','runOnServer','_range','ENTITLE_CHAT_LIMIT_EXCEED','_httpService','eventID','_name','_messageService','name','REDEMPTION_USER_REDEEM_TIMES_EXCEED','PY_RUNTIME_SCRIPT_ERROR','pluginName','Unknown\x20user','getValue','startColumn','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','registerRenderModule','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','OFFLINE','drawWith','loadOfflineData','_onCursorDelete','subscribe','_drawAnchor','formula.calculation.waiting','hide','transformMutationsWithChangeset','_transformUndoRedoStack','_onCursorUpdate','executionId','_taskIds','idSuffix','_collaborationSessionService','VIEW_MAIN','tag','getUnitStatus$','endRow','pipe','UniverIcon','top','USER_NOT_FOUND','PENDING','_commandService','url(#on-line-icon_clip0_910_349)','transformSelections','evenodd','_hasFormulaInDirtyRanges','collab-text-anchor-','isActive','setAlpha','sessionTicket','_hover','entries','_memberService','ENTITLE_NEED_BILLING_ADDRESS','_docTransformSelectionsService','m1Prime','collaboration.closeRoom','/run/','SNAPSHOT_HAS_BEEN_REMOVED','/universer-api/license/formula/limit/start','FETCH_MISS','getColorFromTheme','WECHAT_HAS_BEEN_BOUND','/universer-api/license/formula/limit/status','_labelPosition','LICENSE_DISTRO_REJECTED','xlink:href','_online','ENSURE_SNAPSHOT_EXECUTION','PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','RemoveRowCommandId','cursorInfo$','message','has','disposeUnit','http://www.w3.org/2000/svg','column','_currentUsage','_initCommandInterceptor','univer-mr-2\x20univer-flex\x20univer-text-xl','subscribeEvent','_docClipboardService','currentSkeleton$','getMergeData','Warning','formula.calculation.unable','children','random','YUUMI_AI_RUN_FAILED','_applyCommand','_backgroundColor','_updateURLWithCurrentState','newValue','isArray','_handleEvent','use','trim','_initDependencies','/universer-api/frontend/logs','_updateCollabCursors','PAYMENT_CHANNEL_NOT_SUPPORT','mask','DeleteRangeMoveUpCommandId','measureText','univer-flex\x20univer-items-center','?taskId=','symbol','onPointerEnter$','TEXT','getVpScrollXYInfoByPosToVp','memberID','asObservable','_handleLeaveEvent','LICENSE_IMPORT_SIZE_EXCEEDED','_docTransformIMECacheService','YUUMI_NO_CUBOID_FOR_QUESTION','requireSession','_cursors','source','YUUMI_URL_COL_OUT_OF_RANGE','docStateChange$','replace','_localStorageService','from','_saveCache','parse','INVALID_ARGUMENT','TOO_MANY_REQUESTS','font','getTypeOfUnitAdded$','div','_monkeyPatchLogService','_startDocCollabCursor','_cachedData','InsertRangeMoveDownCommandId','map','M0\x200H16V16H0z','unsubscribe','_cursor','setInterval','white','_univerInstanceService','displayName','_localeService','setConfig','clipPath','disableLocalCache','redoState','_maxFormulaLimit','complete','FromArray','getUnit','ONLINE','getCurrentUnitForType','getCellPositionByOffset','collabStatus.conflict','onMouseMove','_memberID','_lastPointer','runId','204kgQtTX','range','toRgbString','HEADER_MENU','collabStatus.syncing','627xEuMYm','lineTo','_send','_startCalculationLimit','transformIMECache','APPLY_REJECT','unhandledrejection','width','APPLY_REVISION_CONFILICT','currentColor','REDEMPTION_CODE_NOT_STARTED','transformRemoteChangeset','addEventListener','yellow.400','getSheetId','_cursorInfo$','578uTxvgC','YUUMI_SUBSCRIPTION_NOT_FOUND','#FFF','status$','_config','restore','_handleJoinEvent','_assignedColors','_collaborationUIEventService','addClipboardHook','_refreshCollabCursors','editingUnit','show','cursorInfo','roomMembers$','_textBubble','_syncEditingCollabCursorService','enableFrontendLog','closePath','SUBMIT_CHANGESET_TIMEOUT','_scheduleHeartbeat','_injector','fillRule','round','CHANGESET_REVISION_CONFILICT','stageInfo','off-line-icon_clip0_910_343','_collabSessionService','startRow','getUndoRedoMutationParamsCache','length','flatMap','_toggleOffline','session.connection-failed','REDEMPTION_CODE_INACTIVE','executeCommand','add','CONNECTOR_DATA_TOO_LARGE','ENTITLE_REPORT_LIMIT_EXCEED','onLocalMutation','imageSourceType','with','getRenderById','doc.mutation.rich-text-editing','selection','backgroundColor','undoState','NOT_COLLAB','_docSkeletonManagerService','_releaseCalculationLimit','_removeCollabCursors','assign','_transformHistoryAndStateStack','getRangePointData','_createSocketURL','_pollingInterval','_saveTaskMap','maxFormulaLimit','_initUnhandledRejectionListener','_removeClearOtherTimer','text','_disabled','getSkeleton','collabStatus.synced','split','_showGuardMessage','ranges','APPLY_PERMISSION_DENIED','_themeService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','permission.content','setShapeProps','_initEntityListener','on-line-icon','getCurrentRevOfUnit','skeleton','get','_localCacheService','7427NdRSZD','INTERNAL_ERROR','string','forEach','registerComponent','collab-text-range-','Success','fill','colorChannel1','INVALID_INVITE_CODE','_drawRectRange','colno','_getSaveTimeout','INVITE_CODE_ALREADY_BOUND','socket$','_initStatusListener','off-line-icon','debug','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','getUniverSheetInstance','_getAnchorBounding','transformStateCache','assignAColorForMemberID','_clearOtherTimers','_setupSubUnitSync','current','NO_OTHER_CLIENTS_EDITING','activeSheet$','_docTransformStateCacheService','REDEMPTION_CODE_FULLY_REDEEMED','svg','session.will-retry','_entityInit$','parseInt','UNRECOGNIZED','addObject','_uploadLog','collab-rect-range-','url(#$1','reconnect','params','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Error','createInstance','_scene','urlChange$','getAncestorScale','APPLY_NON_SEQUENTIAL_REVISION','selections','45PQlhKh','send','DeleteRangeMoveLeftCommandId','override','replaceState','endColumn','USER_NOT_INVITED_CODE','storage','application/json','registerBeforeClose','onCommandExecuted','invokeId','1185875zrVCWH','getFocusedUnit','USERS_LEAVE','origin','unitId','arc','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_transformService','_eventUnsubscribe','stringify','onStarting','setParam','YUUMI_CONNECTOR_URL_NOT_FOUND','contains','UNAUTHENTICATED','join','_drawTextRange','_colorAssignService','popstate','ENTITLE_DUP_SUBSCRIPTION','height','SOCKET_FAILED_RETRY','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_session','_checkCalculationAvailable','_transformPreviousActiveRange','Failed','url(#off-line-icon_clip0_910_343)','_selfUnitIDs','getItem','_onRefRangeChange','getStateCache','totalFormulasToCalculate','_context','rgba(255,\x20255,\x20255,\x200.01)','getCollabCursors$','sheetId','_handleHeartbeatEvent','AWAITING_WITH_PENDING','_dataLoaderService','_imageIoService','_hideTimer','_logService','collabStatus.fetchMiss','_scheduleSaving','_id','collaboration.single-unit.warning','_refRangeService','COMPLETION_FINISHED','_ensureSubject','USER_IS_ANONYMOUS','syncEditingCollabCursor','YUUMI_ALL_TABLES_IS_INVALID','4104410cyGPRQ','_instanceService','_updateSubUnitFromURLParams','getParam','findNodePositionByCharIndex','LICENSE_EXPORT_SIZE_EXCEEDED','_colorIndex','textRanges','_urlService','_docSyncEditingCollabCursorService','setItem','UNDEFINED','_getSessionTicket','SNAPSHOT_INVALID_SNAPSHOT','sessionStatus$','red.300','_setFormulaLimitStatus','error','clearInterval','CONFLICT','then','OTHER_CLIENT_EDITING','uni.network.url-service','purple.300','LOGIN_TOKEN_PROCESSING_FAILED','setUndoRedoMutationParamsCache','unshift','START_CALCULATION','_anchor','_anchorDot','some','NOT_FOUND','INVITE_CODE_HAS_BEEN_UES','disposeWithMe','triggerDblclick','MOBILE_HAS_BEEN_BOUND','AUTHORIZE_CODE_ILLEGAL','MoveRangeCommandId','catch','collab-client.tooltip.reconnect','RECT','getOffsetConfig','event$','collabCursorState$','bottom','_unitStatus','_collaborationController','_configService','DATA_SOURCE_TOO_LARGE','toString','collaboration-client-ui.config','type','EMAIL_HAS_BEEN_BOUND','formula.calculation.started','attrs','_collabCursorController','getCurrent','_setupBeforeClosingHandler','EMAIL_VERIFY_CODE_MISMATCH','_checkAndWaitForCalculationPermission','getActiveRange','getDocRanges','0\x200\x2016\x2016','lineno','_lastResponseTimestamp','currentUsage','ERROR_AGAIN','registerRefRange','saveTaskMap','data','next','_render','post','defineProperty','color','SUCCESS','isEditing','collabStatus.notCollab','getUnhiddenWorksheets','getOwnPropertyDescriptor'];_0x270e=function(){return _0x15d413;};return _0x270e();}import{ITransformService as _0x447d81,CollaborationEvent as _0x56f5f5,isTransformMutationFailure as _0x3ff0c5,isTransformMutationsWithChangesetSuccess as _0x4e8f7d,RevisionService as _0x6cec3d,ISnapshotServerService as _0x4a0d66}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x359fd6,RichTextEditingMutation as _0x15c2de,DocSelectionManagerService as _0x196312,DocSkeletonManagerService as _0x9d459b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xaa972c,serializeRangeWithSheet as _0x5ebf47,FormulaExecuteStageType as _0x915ac4,FormulaExecutedStateType as _0x4723a6,SetFormulaCalculationStartMutation as _0x19bce6,SetFormulaCalculationNotificationMutation as _0x391c35}from'@univerjs/engine-formula';import{map as _0x47b623,filter as _0x3cb932,throttleTime as _0x5756a9,takeUntil as _0x2ea52d,switchMap as _0x33a13a}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2cb62f,getCoordByCell as _0x2094e3,getSheetObject as _0x32f0c0}from'@univerjs/sheets-ui';function Ge({ref:_0x1032b1,..._0x1693ed}){const _0x16917e=_0x10cc18,{icon:_0x470a1d,id:_0x55b0fb,className:_0x5634a5,extend:_0x57258d,..._0xff030d}=_0x1693ed,_0xdc16de=('univerjs-icon\x20univerjs-icon-'+_0x55b0fb+'\x20'+(_0x5634a5||''))[_0x16917e(0x2d4)](),_0x29fe6a=_0x13a3f9('_'+Ei());return At(_0x470a1d,''+_0x55b0fb,{'defIds':_0x470a1d['defIds'],'idSuffix':_0x29fe6a[_0x16917e(0x142)]},{'ref':_0x1032b1,'className':_0xdc16de,..._0xff030d},_0x57258d);}function At(_0x1a7b41,_0x5b6a2d,_0x28ca18,_0x381858,_0x234f54){const _0x1f4b57=_0x10cc18;return _0x2bc3c8(_0x1a7b41[_0x1f4b57(0x294)],{'key':_0x5b6a2d,...gi(_0x1a7b41,_0x28ca18,_0x234f54),..._0x381858},(vi(_0x1a7b41,_0x28ca18)[_0x1f4b57(0x2ca)]||[])['map']((_0x31805a,_0x229cc7)=>At(_0x31805a,_0x5b6a2d+'-'+_0x1a7b41[_0x1f4b57(0x294)]+'-'+_0x229cc7,_0x28ca18,void 0x0,_0x234f54)));}function gi(_0x39d7f2,_0xa8b9d5,_0x37679f){const _0x43dd0e=_0x10cc18,_0x535db8={..._0x39d7f2[_0x43dd0e(0x1d1)]};_0x37679f!=null&&_0x37679f[_0x43dd0e(0x131)]&&_0x535db8[_0x43dd0e(0x130)]===_0x43dd0e(0x131)&&(_0x535db8[_0x43dd0e(0x130)]=_0x37679f[_0x43dd0e(0x131)]),_0x39d7f2['tag']===_0x43dd0e(0x2d9)&&_0x535db8['id']&&(_0x535db8['id']=_0x535db8['id']+_0xa8b9d5[_0x43dd0e(0x291)]),Object[_0x43dd0e(0x2a6)](_0x535db8)[_0x43dd0e(0x12c)](([_0x1f9a06,_0x8b6b6e])=>{const _0x68dbf3=_0x43dd0e;_0x1f9a06==='mask'&&typeof _0x8b6b6e==_0x68dbf3(0x12b)&&(_0x535db8[_0x1f9a06]=_0x8b6b6e[_0x68dbf3(0x2ed)](/url\(#(.*)\)/,'url(#$1'+_0xa8b9d5['idSuffix']+')'));});const {defIds:_0x470cfc}=_0xa8b9d5;return!_0x470cfc||_0x470cfc[_0x43dd0e(0xf9)]===0x0||(_0x39d7f2[_0x43dd0e(0x294)]===_0x43dd0e(0x2d3)&&_0x535db8['xlink:href']&&(_0x535db8[_0x43dd0e(0x2b5)]=_0x535db8[_0x43dd0e(0x2b5)]+_0xa8b9d5['idSuffix']),Object[_0x43dd0e(0x2a6)](_0x535db8)[_0x43dd0e(0x12c)](([_0x532c0e,_0x2a7f81])=>{const _0x4d13f6=_0x43dd0e;typeof _0x2a7f81=='string'&&(_0x535db8[_0x532c0e]=_0x2a7f81['replace'](/url\(#(.*)\)/,_0x4d13f6(0x14f)+_0xa8b9d5[_0x4d13f6(0x291)]+')'));})),_0x535db8;}function vi(_0x311d5e,_0x1fe83c){const _0x2b0b30=_0x10cc18;var _0x19b777;const {defIds:_0x23b623}=_0x1fe83c;return!_0x23b623||_0x23b623[_0x2b0b30(0xf9)]===0x0?_0x311d5e:_0x311d5e['tag']===_0x2b0b30(0x25d)&&((_0x19b777=_0x311d5e['children'])!=null&&_0x19b777[_0x2b0b30(0xf9)])?{..._0x311d5e,'children':_0x311d5e[_0x2b0b30(0x2ca)][_0x2b0b30(0x2fb)](_0x27cb71=>typeof _0x27cb71[_0x2b0b30(0x1d1)]['id']==_0x2b0b30(0x12b)&&_0x23b623&&_0x23b623[_0x2b0b30(0x231)](_0x27cb71[_0x2b0b30(0x1d1)]['id'])?{..._0x27cb71,'attrs':{..._0x27cb71[_0x2b0b30(0x1d1)],'id':_0x27cb71[_0x2b0b30(0x1d1)]['id']+_0x1fe83c['idSuffix']}}:_0x27cb71)}:_0x311d5e;}function Ei(){const _0x47e230=_0x10cc18;return Math[_0x47e230(0x2cb)]()[_0x47e230(0x1cc)](0x24)['substring'](0x2,0x8);}Ge['displayName']=_0x10cc18(0x298);const pi={'tag':_0x10cc18(0x147),'attrs':{'xmlns':_0x10cc18(0x2bf),'fill':_0x10cc18(0x219),'viewBox':_0x10cc18(0x1d9),'width':_0x10cc18(0x22e),'height':_0x10cc18(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x10cc18(0x181)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'stroke':_0x10cc18(0x322),'d':_0x10cc18(0x281),'strokeLinecap':_0x10cc18(0xf2),'strokeLinejoin':_0x10cc18(0xf2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10cc18(0x305),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'fill':_0x10cc18(0x300),'d':_0x10cc18(0x2fc)}}]}]}],'defIds':[_0x10cc18(0xf5)]},Pt=_0x21f1d1(function(_0x50745c,_0x510198){const _0x41abfd=_0x10cc18;return _0x2bc3c8(Ge,Object['assign']({},_0x50745c,{'id':_0x41abfd(0x139),'ref':_0x510198,'icon':pi}));});Pt[_0x10cc18(0x302)]='OffLineIcon';const Oi={'tag':_0x10cc18(0x147),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x10cc18(0x22e),'height':_0x10cc18(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x10cc18(0x29d)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'stroke':_0x10cc18(0x322),'d':_0x10cc18(0x13b),'strokeLinecap':_0x10cc18(0xf2),'strokeLinejoin':_0x10cc18(0xf2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10cc18(0x305),'attrs':{'id':_0x10cc18(0x21a)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'fill':'white','d':_0x10cc18(0x2fc),'transform':_0x10cc18(0x205)}}]}]}],'defIds':[_0x10cc18(0x21a)]},wt=_0x21f1d1(function(_0x35ba9f,_0x555f66){const _0x9e3689=_0x10cc18;return _0x2bc3c8(Ge,Object[_0x9e3689(0x10e)]({},_0x35ba9f,{'id':_0x9e3689(0x124),'ref':_0x555f66,'icon':Oi}));});wt[_0x10cc18(0x302)]=_0x10cc18(0x1ee);function Ti(_0x2f3e4f){const _0x102c38=_0x10cc18;switch(_0x2f3e4f){case _0x3d84ba['OFFLINE']:return _0x102c38(0x270);case _0x3d84ba[_0x102c38(0x1ae)]:return _0x102c38(0x30f);case _0x3d84ba[_0x102c38(0x2af)]:return _0x102c38(0x191);case _0x3d84ba[_0x102c38(0x10a)]:return _0x102c38(0x1e8);case _0x3d84ba['AWAITING']:case _0x3d84ba[_0x102c38(0x18c)]:return _0x102c38(0x318);case _0x3d84ba['SYNCED']:case _0x3d84ba[_0x102c38(0x29b)]:return _0x102c38(0x11a);}}function Ci(_0x51055a){const _0x3e490c=_0x10cc18,{status$:_0x563f5d}=_0x51055a,_0x30171e=_0x3a1844(_0x563f5d,_0x3d84ba[_0x3e490c(0x10a)]),_0xc78957=_0x22da28(_0xefd7ba),_0x2e8536=_0x22da28(_0x1abc06),_0x376bba=_0x30171e!==_0x3d84ba[_0x3e490c(0x284)],_0x407a7b=_0xc78957['t'](Ti(_0x30171e)),_0x4ca82a=_0x376bba?_0xccee15(wt,{}):_0xccee15(Pt,{}),_0x27694d=_0x3ffd3d(()=>{const _0x373b99=_0x3e490c;_0x376bba||_0x2e8536[_0x373b99(0x150)]();},[_0x376bba,_0x2e8536]);function _0x4eda0f(){const _0x18540f=_0x3e490c;return _0xc66364(_0x18540f(0x2f6),{'className':_0x18540f(0x2dc),'onClick':_0x27694d,'children':[_0xccee15(_0x18540f(0x2f6),{'className':_0x25975e(_0x18540f(0x2c3),{'univer-text-green-500':_0x376bba,'univer-text-red-500':!_0x376bba}),'children':_0x4ca82a}),_0xccee15('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x407a7b})]});}return _0x376bba?_0x4eda0f():_0xccee15(_0x556043,{'title':_0xc78957['t'](_0x3e490c(0x1c2)),'children':_0x4eda0f()});}var Ri=Object[_0x10cc18(0x1ea)],Di=(_0x16ece6,_0x440bf3,_0x544c52,_0x12d08c)=>{const _0x29e1c9=_0x10cc18;for(var _0x16574f=_0x12d08c>0x1?void 0x0:_0x12d08c?Ri(_0x440bf3,_0x544c52):_0x440bf3,_0x22b78e=_0x16ece6[_0x29e1c9(0xf9)]-0x1,_0x4358c1;_0x22b78e>=0x0;_0x22b78e--)(_0x4358c1=_0x16ece6[_0x22b78e])&&(_0x16574f=_0x4358c1(_0x16574f)||_0x16574f);return _0x16574f;},se=(_0x33b795,_0x5dda09)=>(_0xa9a24,_0x46ea2e)=>_0x5dda09(_0xa9a24,_0x46ea2e,_0x33b795);let ae=class extends _0x3e748e{constructor(_0x142d47,_0x29b506,_0x426a23,_0x32b696){const _0x15b32f=_0x10cc18;super(),_(this,_0x15b32f(0x1f8),new _0x1ced39(_0x3d84ba[_0x15b32f(0x10a)])),(this[_0x15b32f(0x301)]=_0x142d47,this[_0x15b32f(0xf0)]=_0x29b506,this[_0x15b32f(0x1c9)]=_0x426a23,this[_0x15b32f(0x203)]=_0x32b696,this['_initStatusComponent'](),this[_0x15b32f(0x138)]());}[_0x10cc18(0x138)](){const _0x30ab7d=_0x10cc18;this[_0x30ab7d(0x1bc)](this[_0x30ab7d(0x301)]['focused$'][_0x30ab7d(0x297)](_0x5e120f(()=>{const _0x229351=_0x30ab7d,_0x1a70b9=this['_univerInstanceService'][_0x229351(0x167)]();return _0x1a70b9?this[_0x229351(0x1c9)][_0x229351(0x258)](_0x1a70b9[_0x229351(0x25a)]()):_0x281440(null);}),_0x5e120f(_0x448f90=>_0x448f90?_0x448f90[_0x30ab7d(0x32c)]:_0x281440(_0x3d84ba['NOT_COLLAB'])))[_0x30ab7d(0x288)](_0x571140=>{const _0x2393d1=_0x30ab7d;this[_0x2393d1(0x1f8)][_0x2393d1(0x1e1)](_0x571140);}));}['_initStatusComponent'](){const _0xa63959=_0x10cc18;this[_0xa63959(0x1bc)](this[_0xa63959(0x203)][_0xa63959(0x12d)](_0x4ec0d2[_0xa63959(0x317)],()=>_0x3832e5(bi({'status$':this[_0xa63959(0x1f8)][_0xa63959(0x2e3)]()}),this[_0xa63959(0xf0)])));}};ae=Di([se(0x0,_0x631d26),se(0x1,_0x2c9f2f(_0x3955fb)),se(0x2,_0x2c9f2f(_0x69ed9c)),se(0x3,_0x25683e)],ae);function bi(_0x2d7b45){const {status$:_0x4b6af7}=_0x2d7b45;return function(){return _0xccee15(Ci,{'status$':_0x4b6af7});};}const yt=_0x5d6f8c(_0x10cc18(0x1b1));var Ni=Object[_0x10cc18(0x1ea)],Li=(_0x352138,_0x3ca791,_0x452907,_0x28f9ea)=>{const _0x351152=_0x10cc18;for(var _0x7f6ef1=_0x28f9ea>0x1?void 0x0:_0x28f9ea?Ni(_0x3ca791,_0x452907):_0x3ca791,_0x473383=_0x352138[_0x351152(0xf9)]-0x1,_0x211654;_0x473383>=0x0;_0x473383--)(_0x211654=_0x352138[_0x473383])&&(_0x7f6ef1=_0x211654(_0x7f6ef1)||_0x7f6ef1);return _0x7f6ef1;},K=(_0x446e29,_0x2cc895)=>(_0x2c5901,_0x180b87)=>_0x2cc895(_0x2c5901,_0x180b87,_0x446e29);let ce=class extends _0x460db8{constructor(_0x5a6037,_0x12276a,_0x8dd6c5,_0x3eb531,_0x140903){const _0x20f48c=_0x10cc18;super(),this[_0x20f48c(0x1a3)]=_0x5a6037,this[_0x20f48c(0x190)]=_0x12276a,this[_0x20f48c(0x29c)]=_0x8dd6c5,this[_0x20f48c(0x18d)]=_0x3eb531,_0x140903?_0x140903==null||_0x140903['whenReady']()['then'](()=>this['_init']()):(this[_0x20f48c(0x190)][_0x20f48c(0x13a)](_0x20f48c(0x244),_0x20f48c(0x204)),this[_0x20f48c(0x25e)]());}async[_0x10cc18(0x25e)](){const _0x54663a=_0x10cc18,_0x2a413f=this[_0x54663a(0x1a3)]['getParam']('unit'),_0x2abe4f=this['_urlService'][_0x54663a(0x19e)](_0x54663a(0x1ce)),_0xb594=this['_urlService'][_0x54663a(0x19e)](_0x54663a(0x242));if(!_0x2a413f||!_0x2abe4f){this['_logService']['debug'](_0x54663a(0x244),_0x54663a(0x120));return;}const _0x20f581=await this[_0x54663a(0x18d)]['loadUnit'](_0x2a413f,Number(_0x2abe4f),_0xb594);_0x20f581&&_0x20f581 instanceof _0x18daa7&&this[_0x54663a(0x141)](_0x20f581);}async['_setupSubUnitSync'](_0x289528){const _0x33760c=_0x10cc18;await this[_0x33760c(0x19d)](_0x289528),_0x289528[_0x33760c(0x144)][_0x33760c(0x297)](_0x55bd62(this[_0x33760c(0x20f)]))[_0x33760c(0x288)](_0x361d2c=>{const _0x5e0566=_0x33760c;_0x361d2c&&this[_0x5e0566(0x2cf)](_0x361d2c);}),this[_0x33760c(0x1a3)][_0x33760c(0x156)][_0x33760c(0x297)](_0x55bd62(this[_0x33760c(0x20f)]))[_0x33760c(0x288)](()=>this[_0x33760c(0x19d)](_0x289528));}[_0x10cc18(0x2cf)](_0x339860,_0x3a918e=!0x1){const _0x1c53ca=_0x10cc18,_0x45d35c=this[_0x1c53ca(0x1a3)][_0x1c53ca(0x19e)](_0x1c53ca(0x242));_0x339860[_0x1c53ca(0x327)]()!==_0x45d35c&&this['_urlService'][_0x1c53ca(0x171)](_0x1c53ca(0x242),_0x339860['getSheetId'](),_0x3a918e);}async['_updateSubUnitFromURLParams'](_0x38ceaa){const _0x520efa=_0x10cc18;var _0x416d6e;const _0xdd34f6=this[_0x520efa(0x1a3)][_0x520efa(0x19e)]('subunit');if(!_0xdd34f6||!_0x38ceaa[_0x520efa(0x21d)](_0xdd34f6)){const _0x5d46a2=_0x38ceaa[_0x520efa(0x1e9)]()[0x0],_0x234bf3=_0x38ceaa[_0x520efa(0x21d)](_0x5d46a2);if(!_0x234bf3)return;this[_0x520efa(0x2cf)](_0x234bf3,!0x0),await this[_0x520efa(0x29c)][_0x520efa(0xfe)](_0x3e1701['id'],{'unitId':_0x38ceaa[_0x520efa(0x25a)](),'subUnitId':_0x5d46a2});return;}((_0x416d6e=_0x38ceaa['getActiveSheet']())==null?void 0x0:_0x416d6e[_0x520efa(0x327)]())!==_0xdd34f6&&await this[_0x520efa(0x29c)][_0x520efa(0xfe)](_0x3e1701['id'],{'unitId':_0x38ceaa['getUnitId'](),'subUnitId':_0xdd34f6});}};ce=Li([K(0x0,yt),K(0x1,_0x1368e3),K(0x2,_0x526fee),K(0x3,_0x2c9f2f(_0x382568)),K(0x4,_0x2f165a(_0x2cc7be))],ce);var Ui=Object[_0x10cc18(0x1ea)],Mi=(_0x53ebfe,_0x226c43,_0x5edeae,_0x4bdceb)=>{const _0x2de856=_0x10cc18;for(var _0x161e26=_0x4bdceb>0x1?void 0x0:_0x4bdceb?Ui(_0x226c43,_0x5edeae):_0x226c43,_0x326c9c=_0x53ebfe[_0x2de856(0xf9)]-0x1,_0x456145;_0x326c9c>=0x0;_0x326c9c--)(_0x456145=_0x53ebfe[_0x326c9c])&&(_0x161e26=_0x456145(_0x161e26)||_0x161e26);return _0x161e26;},rt=(_0x103aa0,_0x4b5860)=>(_0x32747d,_0x2dd917)=>_0x4b5860(_0x32747d,_0x2dd917,_0x103aa0);let $e=class extends _0x460db8{constructor(_0x372838,_0x4863dc){const _0x178895=_0x10cc18;super(),this[_0x178895(0x2c5)]=_0x372838,this[_0x178895(0x18e)]=_0x4863dc,this[_0x178895(0x25e)]();}[_0x10cc18(0x25e)](){const _0x59501c=_0x10cc18,_0x5638b1=this;this['disposeWithMe'](this['_docClipboardService'][_0x59501c(0xe4)]({'onBeforePasteImage':async _0x67b28f=>{const _0x5dc87b=_0x59501c,_0x3784ed=await _0x5638b1['_imageIoService']['saveImage'](_0x67b28f);return _0x3784ed?{'source':_0x3784ed[_0x5dc87b(0x2ea)],'imageSourceType':_0x3784ed[_0x5dc87b(0x103)]}:null;}}));}};$e=Mi([rt(0x0,_0x401c42),rt(0x1,_0x3ef8ac)],$e);const ot=[_0x10cc18(0x1b2),'jiqing.500','green.600',_0x10cc18(0x1aa),_0x10cc18(0x269),_0x10cc18(0x326)];class Ke extends _0x3e748e{constructor(){const _0x1011c7=_0x10cc18;super(...arguments),_(this,_0x1011c7(0x330),new Map()),_(this,'_colorIndex',0x0);}[_0x10cc18(0x13f)](_0x50d88e){const _0x4e67a=_0x10cc18;if(this[_0x4e67a(0x330)][_0x4e67a(0x2bd)](_0x50d88e))return this[_0x4e67a(0x330)][_0x4e67a(0x127)](_0x50d88e);const _0x1aeb1b=ot[this[_0x4e67a(0x1a1)]];return this[_0x4e67a(0x1a1)]=(this[_0x4e67a(0x1a1)]+0x1)%ot['length'],this['_assignedColors'][_0x4e67a(0x239)](_0x50d88e,_0x1aeb1b),_0x1aeb1b;}}function $t(_0x447243){const _0x473212=_0x10cc18;let _0x207293='';for(const _0x39304a of _0x447243){const {startOffset:_0x43f161,endOffset:_0x387e89,isActive:_0x4092b6,rangeType:_0x39cd79,segmentId:_0x3b7693,segmentPage:_0x2c721b}=_0x39304a;_0x207293[_0x473212(0xf9)]&&(_0x207293+=','),_0x207293+=_0x43f161+':'+_0x387e89+':'+(_0x4092b6?'1':'0')+':'+_0x39cd79+':'+_0x3b7693+':'+_0x2c721b;}return _0x207293;}function Ai(_0x500333){const _0x2e32ee=_0x10cc18,_0x49f486=_0x500333[_0x2e32ee(0x11b)](','),_0x5ab4ca=[];for(const _0x1eec39 of _0x49f486){const [_0x2107f5,_0x4c31ad,_0x3b535c,_0x34ad93,_0x2e8347,_0x3792e0]=_0x1eec39[_0x2e32ee(0x11b)](':');_0x5ab4ca['push']({'startOffset':Number(_0x2107f5),'endOffset':Number(_0x4c31ad),'collapsed':_0x2107f5===_0x4c31ad,'isActive':_0x3b535c==='1','rangeType':_0x34ad93===_0x22acc[_0x2e32ee(0x2e0)]?_0x22acc[_0x2e32ee(0x2e0)]:_0x22acc[_0x2e32ee(0x1c3)],'segmentId':typeof _0x2e8347==_0x2e32ee(0x12b)?String(_0x2e8347):'','segmentPage':Number(_0x3792e0!=null?_0x3792e0:-0x1)});}return _0x5ab4ca[_0x2e32ee(0x1b9)](_0x5d734f=>_0x5d734f['isActive'])||(_0x5ab4ca[0x0][_0x2e32ee(0x2a2)]=!0x0),_0x5ab4ca;}class ze extends _0x460db8{constructor(){const _0x4d52f5=_0x10cc18;super(...arguments),_(this,_0x4d52f5(0x1ec),new _0x1ced39(null)),_(this,_0x4d52f5(0x1c6),this['_collabCursorState$'][_0x4d52f5(0x2e3)]());}['syncEditingCollabCursor'](_0x399ca6){const _0x500aa2=_0x10cc18,{unitID:_0x4bc344,memberID:_0x562a20,textRanges:_0x80a8a9}=_0x399ca6,_0x457985=$t(_0x80a8a9);if(_0x457985==='')return;const _0x292a3d={'unitID':_0x4bc344,'memberID':_0x562a20,'selection':_0x457985};this[_0x500aa2(0x1ec)]['next'](_0x292a3d);}}var Pi=Object[_0x10cc18(0x1ea)],wi=(_0x204151,_0x29aef1,_0x36b5c7,_0x28796c)=>{for(var _0x491c57=_0x28796c>0x1?void 0x0:_0x28796c?Pi(_0x29aef1,_0x36b5c7):_0x29aef1,_0x534438=_0x204151['length']-0x1,_0x1f528a;_0x534438>=0x0;_0x534438--)(_0x1f528a=_0x204151[_0x534438])&&(_0x491c57=_0x1f528a(_0x491c57)||_0x491c57);return _0x491c57;},A=(_0x3476c8,_0x4ae80f)=>(_0x5d7a3d,_0x1b036e)=>_0x4ae80f(_0x5d7a3d,_0x1b036e,_0x3476c8);const yi=0x12c,$i=0x64;let xe=class extends _0x460db8{constructor(_0x109e1b,_0x451678,_0x267e22,_0x9a37e6,_0x443438,_0x440f75,_0x442ea9,_0x10a945,_0x48caf7){const _0xc31378=_0x10cc18;super(),_(this,_0xc31378(0x2b6),!0x1),_(this,_0xc31378(0x25e),!0x1),_(this,_0xc31378(0x328),new _0x1ced39(new Map())),_(this,_0xc31378(0x2bb),this['_cursorInfo$'][_0xc31378(0x2e3)]()),_(this,_0xc31378(0x21f),new _0x1ced39([])),_(this,'roomMembers$',this['_roomMembers$'][_0xc31378(0x297)](_0x3be16c(yi))),_(this,_0xc31378(0x22f),_0x51b589(_0x2024a9=>{const _0x56204e=_0xc31378,_0x55ce9c={'eventID':_0x56f5f5[_0x56204e(0x24b)],'data':{'unitID':this[_0x56204e(0x249)],'memberID':this[_0x56204e(0x17d)][_0x56204e(0x262)](),'selection':$t(_0x2024a9)}};this[_0x56204e(0x17d)][_0x56204e(0x15b)](_0x55ce9c,this[_0x56204e(0x249)]);},$i)),(this['unitID']=_0x109e1b,this[_0xc31378(0x17d)]=_0x451678,this[_0xc31378(0xf0)]=_0x267e22,this['_colorAssignService']=_0x9a37e6,this[_0xc31378(0x2a7)]=_0x443438,this[_0xc31378(0xeb)]=_0x440f75,this['_transformService']=_0x442ea9,this[_0xc31378(0x301)]=_0x10a945,this[_0xc31378(0x29c)]=_0x48caf7);}get[_0x10cc18(0xe8)](){const _0x43f1cf=_0x10cc18;return this[_0x43f1cf(0x328)][_0x43f1cf(0x27f)]();}get['roomMembers'](){const _0x46e6eb=_0x10cc18;return this[_0x46e6eb(0x21f)][_0x46e6eb(0x27f)]();}[_0x10cc18(0x233)](){const _0x2041b4=_0x10cc18;super[_0x2041b4(0x233)](),this[_0x2041b4(0x328)][_0x2041b4(0x1e1)](new Map()),this[_0x2041b4(0x328)][_0x2041b4(0x309)](),this[_0x2041b4(0x21f)][_0x2041b4(0x1e1)]([]),this[_0x2041b4(0x21f)][_0x2041b4(0x309)]();}['init'](){const _0x7cfb6c=_0x10cc18;this['_init']||(this['_init']=!0x0,this[_0x7cfb6c(0x17d)][_0x7cfb6c(0x1a9)][_0x7cfb6c(0x297)](_0x55bd62(this['dispose$']))[_0x7cfb6c(0x288)](_0x9c9a5=>{const _0x1909b5=_0x7cfb6c;_0x9c9a5===_0x756bff[_0x1909b5(0x30c)]?this[_0x1909b5(0x200)]():this['_toggleOffline']();}),this[_0x7cfb6c(0x17d)][_0x7cfb6c(0x1c5)][_0x7cfb6c(0x297)](_0x55bd62(this[_0x7cfb6c(0x20f)]))[_0x7cfb6c(0x288)](_0x499ab4=>{const _0x5c9b77=_0x7cfb6c,_0x1a8ab2=_0x499ab4['eventID'];_0x1a8ab2===_0x56f5f5['UPDATE_CURSOR']&&this[_0x5c9b77(0x28e)](_0x499ab4),_0x1a8ab2===_0x56f5f5[_0x5c9b77(0x168)]&&this[_0x5c9b77(0x287)](_0x499ab4);}),this[_0x7cfb6c(0x1bc)](this['_commandService'][_0x7cfb6c(0x164)](_0x4013f5=>{const _0x232632=_0x7cfb6c,_0x312db3=_0x4013f5[_0x232632(0x151)];_0x312db3!=null&&this[_0x232632(0x2b6)]&&_0x4013f5['id']===_0x359fd6['id']&&_0x312db3['unitId']===this[_0x232632(0x249)]&&_0x312db3[_0x232632(0x1e7)]===!0x1&&_0x312db3[_0x232632(0x11d)]['length']>0x0&&this[_0x232632(0x22f)](_0x312db3['ranges']);})),this[_0x7cfb6c(0xeb)][_0x7cfb6c(0x1c6)][_0x7cfb6c(0x297)](_0x55bd62(this['dispose$']))[_0x7cfb6c(0x288)](_0x2e5867=>{const _0xd89f4d=_0x7cfb6c;if((_0x2e5867==null?void 0x0:_0x2e5867['unitID'])!==this['unitID'])return;const _0x277e3e={'eventID':_0x56f5f5[_0xd89f4d(0x24b)],'data':_0x2e5867};this[_0xd89f4d(0x28e)](_0x277e3e);}),this['disposeWithMe'](this[_0x7cfb6c(0x29c)][_0x7cfb6c(0x164)](_0x1cd532=>{const _0x2640e4=_0x7cfb6c;if(_0x1cd532[_0x2640e4(0x151)]==null)return;const _0xf6a80b=_0x1cd532[_0x2640e4(0x151)];if(_0x1cd532['id']!==_0x15c2de['id']||_0xf6a80b[_0x2640e4(0x16a)]!==this[_0x2640e4(0x249)])return;const _0x3f6d4d={'id':_0x2640e4(0x106),'params':_0xf6a80b},_0x1ddfbb=this['cursorInfo'];for(const [_0x3b503e,_0x1f5ced]of _0x1ddfbb){const _0x341f0a={'id':_0x2640e4(0x106),'params':{'unitId':this[_0x2640e4(0x249)],'actions':null,'textRanges':_0x1f5ced[_0x2640e4(0x11d)]}},_0x3e99b7=this[_0x2640e4(0x16d)][_0x2640e4(0x260)](_0x3f6d4d,_0x341f0a,!0x1);if(_0x3ff0c5(_0x3e99b7))throw _0x3e99b7['error'];_0x1ddfbb[_0x2640e4(0x239)](_0x3b503e,{..._0x1f5ced,'ranges':_0x3e99b7[_0x2640e4(0x21e)]['params'][_0x2640e4(0x1a2)]});}queueMicrotask(()=>{const _0x4f84f5=_0x2640e4;this['_cursorInfo$'][_0x4f84f5(0x1e1)](_0x1ddfbb);});})));}['_onCursorUpdate'](_0x291b15){const _0x1960bf=_0x10cc18;var _0x59eb20,_0x5e0340;const {memberID:_0x3787d6,selection:_0x33307f}=_0x291b15[_0x1960bf(0x1e0)],_0x4774bc=Ai(_0x33307f),_0x1ff1e5=(_0x5e0340=(_0x59eb20=this[_0x1960bf(0x2a7)]['getMember'](this[_0x1960bf(0x249)],_0x3787d6))==null?void 0x0:_0x59eb20[_0x1960bf(0x27a)])!=null?_0x5e0340:_0x1960bf(0x27e),_0x5dcc5f={'color':this[_0x1960bf(0x177)][_0x1960bf(0x13f)](_0x3787d6),'name':_0x1ff1e5,'ranges':_0x4774bc},_0x210b0a=this[_0x1960bf(0xe8)];_0x210b0a['set'](_0x3787d6,_0x5dcc5f),this[_0x1960bf(0x328)][_0x1960bf(0x1e1)](_0x210b0a);}[_0x10cc18(0x287)](_0x185a96){const _0x5a5fe4=_0x10cc18,{memberID:_0x645ff0}=_0x185a96['data'],_0x2c9e8a=this[_0x5a5fe4(0xe8)];_0x2c9e8a['delete'](_0x645ff0),this[_0x5a5fe4(0x328)]['next'](_0x2c9e8a);}['_toggleOnline'](){const _0x3128f1=_0x10cc18;var _0x2210fa;if(this[_0x3128f1(0x2b6)]=!0x0,((_0x2210fa=this['_univerInstanceService'][_0x3128f1(0x167)]())==null?void 0x0:_0x2210fa[_0x3128f1(0x25a)]())!==this[_0x3128f1(0x249)])return;const _0x5dc587=this[_0x3128f1(0xf0)][_0x3128f1(0x127)](_0x196312)[_0x3128f1(0x1d8)]();Array[_0x3128f1(0x2d1)](_0x5dc587)&&_0x5dc587[_0x3128f1(0xf9)]>0x0&&this[_0x3128f1(0x22f)](_0x5dc587);}[_0x10cc18(0xfb)](){const _0xd10f4d=_0x10cc18;this[_0xd10f4d(0x2b6)]=!0x1;}};xe=wi([A(0x2,_0x2c9f2f(_0x3955fb)),A(0x3,_0x2c9f2f(Ke)),A(0x4,_0x2c9f2f(_0xf95f76)),A(0x5,_0x2c9f2f(ze)),A(0x6,_0x447d81),A(0x7,_0x631d26),A(0x8,_0x526fee)],xe);var xi=Object[_0x10cc18(0x1ea)],Bi=(_0x5a1623,_0x1bc5bc,_0x43a4e5,_0x4b2a5d)=>{const _0x56f50c=_0x10cc18;for(var _0x228745=_0x4b2a5d>0x1?void 0x0:_0x4b2a5d?xi(_0x1bc5bc,_0x43a4e5):_0x1bc5bc,_0x3c21fb=_0x5a1623[_0x56f50c(0xf9)]-0x1,_0x5a56de;_0x3c21fb>=0x0;_0x3c21fb--)(_0x5a56de=_0x5a1623[_0x3c21fb])&&(_0x228745=_0x5a56de(_0x228745)||_0x228745);return _0x228745;},B=(_0x3c6228,_0x584fb6)=>(_0x4dfb40,_0x178084)=>_0x584fb6(_0x4dfb40,_0x178084,_0x3c6228);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x34d026=[],_0x473893=!0x1;return _0x599f40=>{_0x34d026['push'](_0x599f40),_0x473893||(_0x473893=!0x0,setTimeout(()=>{const _0x577561=_0x58c2;_0x34d026[_0x577561(0x12c)](_0x40ec8b=>_0x40ec8b()),_0x34d026=[],_0x473893=!0x1;}));};};let Be=class extends _0x460db8{constructor(_0x4bb8ba,_0x1d4859,_0x4ed454,_0x1a77ce,_0x33fa68,_0x53caa0,_0x5161f8,_0x15b078){const _0x202a8f=_0x10cc18;super(),_(this,_0x202a8f(0x2b6),!0x1),_(this,_0x202a8f(0x25e),!0x1),_(this,'_cursorInfo$',new _0x1ced39(new Map())),_(this,'cursorInfo$',this[_0x202a8f(0x328)]['asObservable']()),_(this,_0x202a8f(0x21f),new _0x1ced39([])),_(this,_0x202a8f(0xe9),this[_0x202a8f(0x21f)]['pipe'](_0x3be16c(Fi))),_(this,'_updateLocalCursor',_0x51b589((_0x5b18f9,_0x37cd3f)=>{const _0x1c9449=_0x202a8f,_0xc51dd5={'eventID':_0x56f5f5[_0x1c9449(0x24b)],'data':{'unitID':this[_0x1c9449(0x249)],'memberID':this[_0x1c9449(0x17d)]['getMemberID'](),'selection':_0x5ebf47(_0x5b18f9,_0x37cd3f[_0x1c9449(0x315)])}};this[_0x1c9449(0x17d)][_0x1c9449(0x15b)](_0xc51dd5,this[_0x1c9449(0x249)]);},ki)),(this[_0x202a8f(0x249)]=_0x4bb8ba,this['_session']=_0x1d4859,this[_0x202a8f(0xf0)]=_0x4ed454,this['_colorAssignService']=_0x1a77ce,this[_0x202a8f(0x2a7)]=_0x33fa68,this[_0x202a8f(0x301)]=_0x53caa0,this[_0x202a8f(0x29c)]=_0x5161f8,this[_0x202a8f(0x195)]=_0x15b078);}get[_0x10cc18(0xe8)](){const _0x13f51b=_0x10cc18;return this['_cursorInfo$'][_0x13f51b(0x27f)]();}get['roomMembers'](){const _0x444e87=_0x10cc18;return this[_0x444e87(0x21f)][_0x444e87(0x27f)]();}[_0x10cc18(0x233)](){const _0x2de668=_0x10cc18;super[_0x2de668(0x233)](),this[_0x2de668(0x328)][_0x2de668(0x1e1)](new Map()),this[_0x2de668(0x328)][_0x2de668(0x309)](),this[_0x2de668(0x21f)]['next']([]),this[_0x2de668(0x21f)][_0x2de668(0x309)]();}[_0x10cc18(0x225)](){const _0x361300=_0x10cc18;this[_0x361300(0x25e)]||(this[_0x361300(0x25e)]=!0x0,this[_0x361300(0x17d)][_0x361300(0x1a9)][_0x361300(0x297)](_0x55bd62(this[_0x361300(0x20f)]))[_0x361300(0x288)](_0x180585=>{const _0x56de3e=_0x361300;_0x180585===_0x756bff['ONLINE']?this[_0x56de3e(0x200)]():this[_0x56de3e(0xfb)]();}),this['_session']['event$'][_0x361300(0x297)](_0x55bd62(this['dispose$']))[_0x361300(0x288)](_0x2f1e85=>{const _0x299aaa=_0x361300,_0x3e9688=_0x2f1e85[_0x299aaa(0x277)];_0x3e9688===_0x56f5f5[_0x299aaa(0x24b)]&&this[_0x299aaa(0x28e)](_0x2f1e85),_0x3e9688===_0x56f5f5['USERS_LEAVE']&&this[_0x299aaa(0x287)](_0x2f1e85);}),this['_onRefRangeChange'](),this[_0x361300(0x1bc)](this['_commandService'][_0x361300(0x164)](_0x420df2=>{const _0x1d6cef=_0x361300;if(this[_0x1d6cef(0x2b6)]&&_0x420df2['id']===_0x3c2d3f['id']&&_0x420df2[_0x1d6cef(0x151)][_0x1d6cef(0x16a)]===this[_0x1d6cef(0x249)]){const _0x5e5a81=_0x420df2[_0x1d6cef(0x151)];this[_0x1d6cef(0x22f)](_0x5e5a81[_0x1d6cef(0x21c)],_0x5e5a81[_0x1d6cef(0x159)][0x0]);}})));}[_0x10cc18(0x28e)](_0x16bfca){const _0x323d8b=_0x10cc18;var _0x280eab,_0x357285;const {memberID:_0x292f39,selection:_0x58f555}=_0x16bfca[_0x323d8b(0x1e0)],{sheetName:_0x60f871,range:_0xe6d72f}=_0xaa972c(_0x58f555),_0x32eb1b={'name':(_0x357285=(_0x280eab=this[_0x323d8b(0x2a7)]['getMember'](this['unitID'],_0x292f39))==null?void 0x0:_0x280eab[_0x323d8b(0x27a)])!=null?_0x357285:_0x323d8b(0x27e),'range':this['_getMergeRange'](_0x60f871,_0xe6d72f),'sheetID':_0x60f871,'color':this[_0x323d8b(0x177)]['assignAColorForMemberID'](_0x292f39),'selection':_0x58f555},_0x304fc5=this['cursorInfo'];_0x304fc5[_0x323d8b(0x239)](_0x292f39,_0x32eb1b),this[_0x323d8b(0x328)][_0x323d8b(0x1e1)](_0x304fc5);}['_onCursorDelete'](_0x1f7364){const _0x46cc1e=_0x10cc18,{memberID:_0x5b2b06}=_0x1f7364[_0x46cc1e(0x1e0)],_0x3f0e5e=this[_0x46cc1e(0xe8)];_0x3f0e5e['delete'](_0x5b2b06),this['_cursorInfo$'][_0x46cc1e(0x1e1)](_0x3f0e5e);}['_getMergeRange'](_0x24646d,_0x278fc8){const _0x19ee48=_0x10cc18;var _0x538625,_0x5587dd;const _0x31395e=(_0x5587dd=(_0x538625=this[_0x19ee48(0x301)][_0x19ee48(0x13c)](this['unitID']))==null?void 0x0:_0x538625[_0x19ee48(0x21d)](_0x24646d))==null?void 0x0:_0x5587dd[_0x19ee48(0x2c7)]();return(_0x31395e==null?void 0x0:_0x31395e[_0x19ee48(0x23b)](_0x21d6a9=>_0x40c7c0[_0x19ee48(0x173)](_0x21d6a9,_0x278fc8)))||_0x278fc8;}[_0x10cc18(0x184)](){const _0x365a09=_0x10cc18,_0x24b7a9=new _0x5a6462(),_0x5c8193=Hi(),_0x2b16fa=()=>{const _0x1bc005=_0x58c2;_0x24b7a9[_0x1bc005(0x233)]();const _0x492bc7=(_0x3c9cb0,_0x452062,_0x5ced80,_0x8865e6)=>{const _0x106601=_0x1bc005;let _0x1f1946=[];switch(_0x3c9cb0['id']){case _0xe50d17[_0x106601(0x15c)]:{_0x1f1946=_0xc34664(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2da)]:{_0x1f1946=_0x3a245f(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x216)]:{_0x1f1946=_0x3b58f5(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2fa)]:{_0x1f1946=_0x3177b4(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17['InsertRangeMoveRightCommandId']:{_0x1f1946=_0x1916d7(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17['InsertRowCommandId']:{_0x1f1946=_0x524712(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x1c0)]:{_0x1f1946=_0x379eb2(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x201)]:{_0x1f1946=_0x27e994(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2ba)]:{_0x1f1946=_0x11bbdd(_0x3c9cb0,_0x8865e6);break;}}const _0x556490=_0x178978(_0x1f1946,_0x8865e6),_0x5328fa=this['cursorInfo'][_0x106601(0x127)](_0x452062);if(_0x5328fa&&_0x556490){const _0x14f963={..._0x5328fa,'range':_0x556490};this[_0x106601(0xe8)][_0x106601(0x239)](_0x452062,_0x14f963),_0x5c8193(()=>{const _0xe2da53=_0x106601,_0x40455b=this['_refRangeService'][_0xe2da53(0x1de)](_0x556490,_0x511074=>(_0x40455b[_0xe2da53(0x233)](),_0x492bc7(_0x511074,_0x452062,_0x5ced80,_0x556490)));_0x24b7a9[_0xe2da53(0xff)](_0x40455b);});}return{'redos':[],'undos':[]};};this[_0x1bc005(0xe8)][_0x1bc005(0x12c)]((_0x5e41a6,_0x1fee50)=>{const _0x457200=_0x1bc005,{range:_0x335f35,sheetID:_0x4d85d0}=_0x5e41a6,_0xc863b8=this[_0x457200(0x195)][_0x457200(0x1de)](_0x335f35,_0x132be=>(_0xc863b8[_0x457200(0x233)](),_0x492bc7(_0x132be,_0x1fee50,_0x4d85d0,_0x335f35)));_0x24b7a9[_0x457200(0xff)](_0xc863b8);});};this[_0x365a09(0x1bc)](_0x555679(this[_0x365a09(0x328)]['subscribe'](()=>{_0x2b16fa();})));}[_0x10cc18(0x200)](){const _0x50cd6f=_0x10cc18;var _0x3ca18e,_0x2a0a1e;if(this[_0x50cd6f(0x2b6)]=!0x0,((_0x3ca18e=this['_univerInstanceService'][_0x50cd6f(0x167)]())==null?void 0x0:_0x3ca18e[_0x50cd6f(0x25a)]())!==this[_0x50cd6f(0x249)])return;const _0x3b781c=(_0x2a0a1e=this[_0x50cd6f(0xf0)][_0x50cd6f(0x127)](_0xc9e973)['getCurrentSelections']())==null?void 0x0:_0x2a0a1e[0x0],_0x3383c1=this[_0x50cd6f(0x301)][_0x50cd6f(0x30d)](_0x5045e8['UNIVER_SHEET'])[_0x50cd6f(0x24e)]();_0x3b781c&&_0x3383c1&&this['_updateLocalCursor'](_0x3383c1[_0x50cd6f(0x327)](),_0x3b781c);}[_0x10cc18(0xfb)](){const _0xd05f8d=_0x10cc18;this[_0xd05f8d(0x2b6)]=!0x1;}};Be=Bi([B(0x2,_0x2c9f2f(_0x3955fb)),B(0x3,_0x2c9f2f(Ke)),B(0x4,_0x2c9f2f(_0xf95f76)),B(0x5,_0x631d26),B(0x6,_0x526fee),B(0x7,_0x2c9f2f(_0x4afbe7))],Be);var Yi=Object[_0x10cc18(0x1ea)],Wi=(_0x2bc50a,_0x1f21cd,_0x350947,_0x4f2b27)=>{for(var _0x16e86c=_0x4f2b27>0x1?void 0x0:_0x4f2b27?Yi(_0x1f21cd,_0x350947):_0x1f21cd,_0x55ceeb=_0x2bc50a['length']-0x1,_0x479cb9;_0x55ceeb>=0x0;_0x55ceeb--)(_0x479cb9=_0x2bc50a[_0x55ceeb])&&(_0x16e86c=_0x479cb9(_0x16e86c)||_0x16e86c);return _0x16e86c;},Ce=(_0x57bc08,_0x5cc3ee)=>(_0x542fc7,_0x1a1848)=>_0x5cc3ee(_0x542fc7,_0x1a1848,_0x57bc08);let H=class extends _0x460db8{constructor(_0xa3c911,_0x7ea805,_0x297687){const _0x37e8e3=_0x10cc18;super(),_(this,_0x37e8e3(0x208),new Map()),_(this,_0x37e8e3(0x149),new _0x495c27()),(this[_0x37e8e3(0x301)]=_0xa3c911,this['_injector']=_0x7ea805,this[_0x37e8e3(0xf6)]=_0x297687,this['_init']());}['dispose'](){const _0x33184d=_0x10cc18;super[_0x33184d(0x233)](),this[_0x33184d(0x149)][_0x33184d(0x309)](),this[_0x33184d(0x208)][_0x33184d(0x12c)](_0x5d2c38=>_0x5d2c38[_0x33184d(0x233)]());}['getCollabCursors$'](_0x28fb90){const _0x73c0ea=_0x10cc18;return this[_0x73c0ea(0x208)][_0x73c0ea(0x2bd)](_0x28fb90)?this[_0x73c0ea(0x208)][_0x73c0ea(0x127)](_0x28fb90)[_0x73c0ea(0x2bb)]:this[_0x73c0ea(0x149)]['pipe'](_0x12a7d2(_0x4f3f82=>_0x4f3f82['unitID']===_0x28fb90),_0x5e120f(_0x418ba0=>_0x418ba0['cursorInfo$']));}['_init'](){const _0x565a96=_0x10cc18;this[_0x565a96(0x301)][_0x565a96(0x2f5)](_0x5045e8[_0x565a96(0x1f7)])['pipe'](_0x55bd62(this[_0x565a96(0x20f)]))[_0x565a96(0x288)](async _0x3918db=>{const _0x4c8128=_0x565a96,_0x27d827=_0x3918db[_0x4c8128(0x25a)](),_0x5a6bda=await this[_0x4c8128(0x23d)](_0x27d827);this[_0x4c8128(0x149)][_0x4c8128(0x1e1)](_0x5a6bda),this[_0x4c8128(0x208)]['set'](_0x27d827,_0x5a6bda);}),this[_0x565a96(0x301)][_0x565a96(0x2f5)](_0x5045e8['UNIVER_DOC'])[_0x565a96(0x297)](_0x55bd62(this[_0x565a96(0x20f)]))[_0x565a96(0x297)](_0x12a7d2(_0x5ef585=>!_0x5ef585[_0x565a96(0x25a)]()['startsWith']('__')))[_0x565a96(0x288)](async _0x5aa716=>{const _0x186b9e=_0x565a96,_0x3695e1=_0x5aa716[_0x186b9e(0x25a)](),_0x11ceec=await this[_0x186b9e(0x2f8)](_0x3695e1);this[_0x186b9e(0x149)][_0x186b9e(0x1e1)](_0x11ceec),this[_0x186b9e(0x208)][_0x186b9e(0x239)](_0x3695e1,_0x11ceec);}),_0x153e90(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5045e8['UNIVER_DOC']),this[_0x565a96(0x301)][_0x565a96(0x1f5)](_0x5045e8['UNIVER_SHEET']))['pipe'](_0x55bd62(this[_0x565a96(0x20f)]))['subscribe'](_0x390ced=>{const _0x230285=_0x565a96,_0x499d10=_0x390ced[_0x230285(0x25a)](),_0x588299=this[_0x230285(0x208)][_0x230285(0x127)](_0x499d10);_0x588299&&(_0x588299[_0x230285(0x233)](),this[_0x230285(0x208)][_0x230285(0x264)](_0x499d10));});}async[_0x10cc18(0x23d)](_0x3bc658){const _0x355154=_0x10cc18,_0x11b944=await this[_0x355154(0xf6)][_0x355154(0x2e8)](_0x3bc658),_0x77159d=this[_0x355154(0xf0)]['createInstance'](Be,_0x3bc658,_0x11b944);return _0x77159d[_0x355154(0x225)](),_0x77159d;}async[_0x10cc18(0x2f8)](_0x383db6){const _0x242c7b=_0x10cc18,_0x9a005=await this[_0x242c7b(0xf6)][_0x242c7b(0x2e8)](_0x383db6),_0x93bcd=this[_0x242c7b(0xf0)][_0x242c7b(0x154)](xe,_0x383db6,_0x9a005);return _0x93bcd[_0x242c7b(0x225)](),_0x93bcd;}};H=Wi([Ce(0x0,_0x631d26),Ce(0x1,_0x2c9f2f(_0x3955fb)),Ce(0x2,_0x2c9f2f(_0x1abc06))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x5c043e,_0xa0f5d6){const _0x599c63=_0x10cc18;let {radius:_0x897ebc,width:_0x8c4328,height:_0x142d15}=_0xa0f5d6;_0x897ebc=_0x897ebc!=null?_0x897ebc:0x0,_0x8c4328=_0x8c4328!=null?_0x8c4328:0x1e,_0x142d15=_0x142d15!=null?_0x142d15:0x1e;let _0x3aa4de=0x0,_0x5ae3cb=0x0,_0x3ea7a2=0x0;_0x3aa4de=_0x5ae3cb=_0x3ea7a2=Math[_0x599c63(0x240)](_0x897ebc,_0x8c4328/0x2,_0x142d15/0x2),_0x5c043e['beginPath'](),_0x5c043e[_0x599c63(0x237)](_0x3aa4de,0x0),_0x5c043e[_0x599c63(0x31a)](_0x8c4328-_0x5ae3cb,0x0),_0x5c043e['arc'](_0x8c4328-_0x5ae3cb,_0x5ae3cb,_0x5ae3cb,Math['PI']*0x3/0x2,0x0,!0x1),_0x5c043e[_0x599c63(0x31a)](_0x8c4328,_0x142d15-_0x3ea7a2),_0x5c043e[_0x599c63(0x16b)](_0x8c4328-_0x3ea7a2,_0x142d15-_0x3ea7a2,_0x3ea7a2,0x0,Math['PI']/0x2,!0x1),_0x5c043e[_0x599c63(0x31a)](0x0,_0x142d15),_0x5c043e['lineTo'](0x0,_0x3aa4de),_0x5c043e[_0x599c63(0x16b)](_0x3aa4de,_0x3aa4de,_0x3aa4de,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5c043e[_0x599c63(0xed)](),_0xa0f5d6['fill']&&(_0x5c043e[_0x599c63(0x211)](),_0x5c043e['fillStyle']=_0xa0f5d6['fill'],_0xa0f5d6[_0x599c63(0xf1)]===_0x599c63(0x29f)?_0x5c043e[_0x599c63(0x130)](_0x599c63(0x29f)):_0x5c043e[_0x599c63(0x130)](),_0x5c043e[_0x599c63(0x32e)]());}class Ee extends _0x28bace{constructor(_0x552ba7,_0x224522){const _0x7fc531=_0x10cc18;super(_0x552ba7,_0x224522),_(this,_0x7fc531(0x1e5)),_(this,'text'),(this[_0x7fc531(0x1e5)]=_0x224522==null?void 0x0:_0x224522['color'],this[_0x7fc531(0x117)]=_0x224522==null?void 0x0:_0x224522[_0x7fc531(0x117)]);}static[_0x10cc18(0x285)](_0x761801,_0x45fddc){const _0x22d59f=_0x10cc18,{text:_0x1232c7,color:_0x241547}=_0x45fddc;_0x761801[_0x22d59f(0x211)](),_0x761801[_0x22d59f(0x2f4)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x806c61=_0x761801[_0x22d59f(0x2db)](_0x1232c7)['width'],_0x111ac9=Math[_0x22d59f(0x240)](_0x806c61+0x2*Re,at);Vi(_0x761801,{'height':Q,'radius':0x4,'width':_0x111ac9,'fill':_0x241547}),_0x761801[_0x22d59f(0x217)]=_0x22d59f(0x32b);const _0xcf3420=Re,_0x492173=Q-ji,_0x164288=at-0x2*Re;if(_0x806c61>_0x164288){let _0x3b1e32='',_0x33f493=0x0;for(const _0x4dd338 of _0x1232c7){const _0x2cb55f=_0x761801[_0x22d59f(0x2db)](_0x4dd338)[_0x22d59f(0x320)];if(_0x33f493+_0x2cb55f<=_0x164288-_0x761801[_0x22d59f(0x2db)](_0x22d59f(0x1f4))[_0x22d59f(0x320)])_0x3b1e32+=_0x4dd338,_0x33f493+=_0x2cb55f;else{_0x3b1e32+='...';break;}}_0x761801[_0x22d59f(0x241)](_0x3b1e32,_0xcf3420,_0x492173);}else _0x761801[_0x22d59f(0x241)](_0x1232c7,_0xcf3420,_0x492173);_0x761801[_0x22d59f(0x32e)]();}[_0x10cc18(0x261)](_0x467208){Ee['drawWith'](_0x467208,this);}}const De=_0x10cc18(0x2a1),Xi=_0x10cc18(0x12e),Gi=_0x10cc18(0x14e),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x10cc18(0x188);class ct{constructor(_0x32714c,_0x4e4490,_0xea590d,_0x55f794){const _0x36f487=_0x10cc18;_(this,_0x36f487(0x254),[]),_(this,'_anchor',null),_(this,_0x36f487(0xea),null),_(this,_0x36f487(0x1b8),null),_(this,'_hideTimer',null),_(this,_0x36f487(0x16e),null),(this[_0x36f487(0x2fe)]=_0x32714c,this[_0x36f487(0x155)]=_0x4e4490,this['_docSkeleton']=_0xea590d,this[_0x36f487(0x259)]=_0x55f794,this['_render']());}set[_0x10cc18(0x2a5)](_0x5f13b6){const _0x2b6943=_0x10cc18;_0x5f13b6?(this[_0x2b6943(0x1b8)]&&this['_anchorDot'][_0x2b6943(0x28b)](),this[_0x2b6943(0xea)]&&this[_0x2b6943(0xea)]['show']()):(this[_0x2b6943(0x1b8)]&&this[_0x2b6943(0x1b8)]['show'](),this[_0x2b6943(0xea)]&&this[_0x2b6943(0xea)][_0x2b6943(0x28b)]());}[_0x10cc18(0x233)](){const _0x422e6a=_0x10cc18;for(const _0x5a6e12 of this[_0x422e6a(0x254)])_0x5a6e12['dispose']();this[_0x422e6a(0xea)]&&this['_textBubble'][_0x422e6a(0x233)](),this[_0x422e6a(0x1b8)]&&this[_0x422e6a(0x1b8)]['dispose'](),this[_0x422e6a(0x1b7)]&&this[_0x422e6a(0x1b7)][_0x422e6a(0x233)](),this['_eventUnsubscribe']&&this[_0x422e6a(0x16e)]();}[_0x10cc18(0x1e2)](){const _0x1eb34d=_0x10cc18;var _0x14a0db;const {_docSkeleton:_0x146965,_document:_0x2bdef0}=this,{color:_0x41c1d9,name:_0x2c821a,ranges:_0x2f4f30}=this['_cursor'],_0x74b5e0=_0x2bdef0[_0x1eb34d(0x1c4)](),{docsLeft:_0x410c3e,docsTop:_0x166715}=_0x74b5e0,_0xbdf07=new _0x3f6a22(_0x74b5e0,_0x146965);for(const {startOffset:_0x7a5156,endOffset:_0x1dc063,rangeType:_0x120223,segmentId:_0x4dd1ae,segmentPage:_0x4d085c,collapsed:_0x32cb2c,isActive:_0x3c23a1}of _0x2f4f30){const _0x4c0c36=_0x146965['findNodePositionByCharIndex'](_0x7a5156,!0x0,_0x4dd1ae,_0x4d085c);let _0x45b6e5=_0x146965[_0x1eb34d(0x19f)](_0x1dc063,!0x0,_0x4dd1ae,_0x4d085c);if(_0x45b6e5==null&&(_0x45b6e5=_0x146965[_0x1eb34d(0x19f)](_0x1dc063-0x1,!0x1,_0x4dd1ae,_0x4d085c)),_0x3c23a1){const {contentBoxPointGroup:_0x44f803}=_0xbdf07[_0x1eb34d(0x110)](_0x45b6e5,_0x45b6e5);if(_0x44f803[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x289)](_0x41c1d9,_0x44f803,_0x410c3e,_0x166715,_0x2c821a),this[_0x1eb34d(0x16e)]=this[_0x1eb34d(0x232)]();}if(_0x4c0c36&&_0x45b6e5){if(_0x120223===_0x22acc['RECT']){const _0x4fca71=new _0x4973b1(_0x74b5e0,_0x146965),{pointGroup:_0x3cbc59}=(_0x14a0db=_0x4fca71[_0x1eb34d(0x110)](_0x4c0c36,_0x45b6e5))!=null?_0x14a0db:{};if(_0x3cbc59==null||_0x3cbc59[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x133)](_0x41c1d9,_0x3cbc59,_0x410c3e,_0x166715);}else{if(!_0x32cb2c){const {borderBoxPointGroup:_0xc0056d}=_0xbdf07['getRangePointData'](_0x4c0c36,_0x45b6e5);if(_0xc0056d[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x176)](_0x41c1d9,_0xc0056d,_0x410c3e,_0x166715);}}}}}[_0x10cc18(0x289)](_0xe8b98d,_0x57f570,_0x4e8479,_0xbeaf50,_0x1e99a6){const _0x3c9161=_0x10cc18,_0x12c95c=this[_0x3c9161(0x13d)](_0x57f570),{left:_0x4fa335,top:_0x4875c0,height:_0x177b51}=_0x12c95c,_0x400bd7=this['_getScale'](),_0x178504=zi/_0x400bd7,_0x336a9d=new _0x2dfad6(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50,'height':_0x177b51,'width':Ki,'fill':_0xe8b98d||_0x44dbc(_0x10fc5a[_0x3c9161(0x214)],0x0),'strokeWidth':_0x178504,'stroke':Ji,'evented':!0x0});this[_0x3c9161(0x1b7)]=_0x336a9d,this[_0x3c9161(0x155)]['addObject'](_0x336a9d,_0x531506);const _0x47a627=new _0x2dfad6(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50-be/0x2,'height':be,'width':be,'fill':_0xe8b98d||_0x44dbc(_0x10fc5a['black'],0x0),'strokeWidth':0x0,'stroke':_0xe8b98d||_0x44dbc(_0x10fc5a['black'],0x0),'evented':!0x1});this[_0x3c9161(0x1b8)]=_0x47a627,this[_0x3c9161(0x155)][_0x3c9161(0x14c)](_0x47a627,_0x531506);const _0x5d09f3=new Ee(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50-Q,'text':_0x1e99a6,'color':_0xe8b98d});this[_0x3c9161(0xea)]=_0x5d09f3,this[_0x3c9161(0x155)][_0x3c9161(0x14c)](_0x5d09f3,_0x531506),this['_hover']=!0x1;}['_handleHover'](){const _0x3dd158=_0x10cc18,_0x4d490e=this[_0x3dd158(0x1b7)][_0x3dd158(0x2df)][_0x3dd158(0x2c4)](()=>{const _0x5b7c11=_0x3dd158;this[_0x5b7c11(0x2a5)]=!0x0;}),_0x13be7e=this[_0x3dd158(0x1b7)][_0x3dd158(0x26e)][_0x3dd158(0x2c4)](()=>{const _0x57145d=_0x3dd158;this[_0x57145d(0x18f)]&&clearTimeout(this[_0x57145d(0x18f)]),this[_0x57145d(0x18f)]=setTimeout(()=>{const _0x9ed6bd=_0x57145d;this[_0x9ed6bd(0x2a5)]=!0x1;},0x7d0);});return()=>{const _0x9a2a5c=_0x3dd158;_0x4d490e[_0x9a2a5c(0x2fd)](),_0x13be7e[_0x9a2a5c(0x2fd)]();};}['_drawTextRange'](_0x55556f,_0x3d5fdf,_0x16f1ca,_0x1417b8){const _0x4856dc=_0x10cc18,_0x2b6374=new _0x1a8ee3(_0x55556f)['setAlpha'](0.2)[_0x4856dc(0x316)](),_0x169ec0=new _0x2a7a95(Xi+_0x5236ab(z),{'pointsGroup':_0x3d5fdf,'fill':_0x2b6374||_0x44dbc(_0x10fc5a[_0x4856dc(0x214)],0.2),'left':_0x16f1ca,'top':_0x1417b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4856dc(0x254)]['push'](_0x169ec0),this[_0x4856dc(0x155)]['addObject'](_0x169ec0,_0x531506);}['_drawRectRange'](_0x458807,_0x1244ce,_0x406ad8,_0x37c77f){const _0x397297=_0x10cc18,_0x2bba6d=new _0x1a8ee3(_0x458807)[_0x397297(0x2a3)](0.2)[_0x397297(0x316)](),_0x4fb0b3=new _0x2a7a95(Gi+_0x5236ab(z),{'pointsGroup':_0x1244ce,'fill':_0x2bba6d||_0x44dbc(_0x10fc5a[_0x397297(0x214)],0.2),'left':_0x406ad8,'top':_0x37c77f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x397297(0x254)][_0x397297(0x1ed)](_0x4fb0b3),this['_scene'][_0x397297(0x14c)](_0x4fb0b3,_0x531506);}[_0x10cc18(0x13d)](_0x1fec42){const _0x165c78=_0x1fec42[0x0],_0x610946=_0x165c78[0x0],_0x4e56ac=_0x165c78[0x2],{x:_0x24a990,y:_0x3acee6}=_0x610946,{x:_0x5bfb35,y:_0x5c1bc9}=_0x4e56ac;return{'left':_0x24a990,'top':_0x3acee6,'width':_0x5bfb35-_0x24a990,'height':_0x5c1bc9-_0x3acee6};}['_getScale'](){const _0x373f93=_0x10cc18,{scaleX:_0x3cf3ac,scaleY:_0x15eb97}=this[_0x373f93(0x155)][_0x373f93(0x157)]();return Math['max'](_0x3cf3ac,_0x15eb97);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x3302e9,_0x27faca,_0x5cbdc7,_0x2912c3)=>{const _0xced644=_0x10cc18;for(var _0x2594f2=_0x2912c3>0x1?void 0x0:_0x2912c3?Zi(_0x27faca,_0x5cbdc7):_0x27faca,_0x39b844=_0x3302e9[_0xced644(0xf9)]-0x1,_0x4add4d;_0x39b844>=0x0;_0x39b844--)(_0x4add4d=_0x3302e9[_0x39b844])&&(_0x2594f2=_0x4add4d(_0x2594f2)||_0x2594f2);return _0x2594f2;},ie=(_0xa1a12a,_0x2bdbc0)=>(_0x3d4e3b,_0x38f83d)=>_0x2bdbc0(_0x3d4e3b,_0x38f83d,_0xa1a12a);let Fe=class extends _0x460db8{constructor(_0x8fde48,_0x810d11,_0x265390,_0x43256d,_0xd822fb){const _0x5f1e4b=_0x10cc18;super(),_(this,_0x5f1e4b(0x272),[]),_(this,'_cursors',[]),(this[_0x5f1e4b(0x187)]=_0x8fde48,this[_0x5f1e4b(0x10b)]=_0x810d11,this['_collabCursorController']=_0x265390,this[_0x5f1e4b(0x29c)]=_0x43256d,this[_0x5f1e4b(0x11f)]=_0xd822fb,this[_0x5f1e4b(0x25e)]());}['_init'](){const _0x3dac2f=_0x10cc18,_0x4f6aff=this[_0x3dac2f(0x187)][_0x3dac2f(0x16a)],_0x2ef8e9=this[_0x3dac2f(0x10b)];this[_0x3dac2f(0x1bc)](_0x5c05c1([this[_0x3dac2f(0x1d2)][_0x3dac2f(0x189)](_0x4f6aff),this[_0x3dac2f(0x11f)]['currentTheme$']])[_0x3dac2f(0x297)](_0x47b623(([_0x4a02cd,_0x194490])=>({'skeleton':_0x2ef8e9[_0x3dac2f(0x119)](),'cursors':[..._0x4a02cd['values']()][_0x3dac2f(0xfa)](_0x100a2a=>({..._0x100a2a,'color':this[_0x3dac2f(0x11f)][_0x3dac2f(0x2b0)](_0x100a2a[_0x3dac2f(0x1e5)])}))})))[_0x3dac2f(0x288)](_0x28a8c5=>{const _0x52a3f0=_0x3dac2f;if(this[_0x52a3f0(0x10d)](),_0x28a8c5){const {skeleton:_0x3edfb5,cursors:_0x5c3ca1}=_0x28a8c5;this[_0x52a3f0(0x2d7)](_0x3edfb5,_0x5c3ca1);}})),this[_0x3dac2f(0x24f)](),this[_0x3dac2f(0x207)]();}[_0x10cc18(0x2d7)](_0x9a82b6,_0x3f18db){const _0x2d7862=_0x10cc18,{scene:_0x64ffb6,mainComponent:_0x505401}=this[_0x2d7862(0x187)],_0x4e5207=_0x3f18db[_0x2d7862(0x2fb)](_0x2c7ddc=>new ct(_0x2c7ddc,_0x64ffb6,_0x9a82b6,_0x505401));this[_0x2d7862(0x272)]=_0x4e5207,this[_0x2d7862(0x2e9)]=_0x3f18db;}[_0x10cc18(0xe5)](){const _0x28a722=_0x10cc18;this['_removeCollabCursors']();const {scene:_0x58b5c5,mainComponent:_0x5c2be1}=this[_0x28a722(0x187)],_0x39859f=this[_0x28a722(0x10b)][_0x28a722(0x119)](),_0x5818a3=this['_cursors'][_0x28a722(0x2fb)](_0x690e53=>new ct(_0x690e53,_0x58b5c5,_0x39859f,_0x5c2be1));this[_0x28a722(0x272)]=_0x5818a3;}[_0x10cc18(0x10d)](){const _0x26e20e=_0x10cc18;this['_cursorShapes'][_0x26e20e(0x12c)](_0x1f0114=>_0x1f0114[_0x26e20e(0x233)]()),this['_cursorShapes']=[];}[_0x10cc18(0x207)](){const _0x51dab9=_0x10cc18,_0x4dec36=[_0x198811['id']];this[_0x51dab9(0x1bc)](this[_0x51dab9(0x29c)][_0x51dab9(0x164)](_0x20a7ec=>{const _0x224ba8=_0x51dab9;_0x4dec36[_0x224ba8(0x231)](_0x20a7ec['id'])&&_0x20a7ec['params']['unitId']===this[_0x224ba8(0x187)][_0x224ba8(0x16a)]&&this[_0x224ba8(0xe5)]();}));}[_0x10cc18(0x24f)](){const _0x2c14f7=_0x10cc18;this[_0x2c14f7(0x1bc)](_0x2b51fa(this[_0x2c14f7(0x187)][_0x2c14f7(0x202)]['onTransformChange$'])[_0x2c14f7(0x297)](_0x3cb932(_0x160482=>_0x160482[_0x2c14f7(0x1ce)]===_0x4c9c8a[_0x2c14f7(0x1fc)]),_0x5756a9(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x2c9f2f(_0x9d459b)),ie(0x2,_0x2c9f2f(H)),ie(0x3,_0x526fee),ie(0x4,_0x2c9f2f(_0x31d312))],Fe);const qi=0x1,en=1.5;class tn extends _0x28bace{constructor(_0x14037f,_0x6a4e50){const _0x224016=_0x10cc18;super(_0x14037f,_0x6a4e50),_(this,_0x224016(0x213)),_(this,_0x224016(0x25f),!0x1),_(this,_0x224016(0x274)),_(this,_0x224016(0x278),''),_(this,_0x224016(0x2b3),_0x224016(0x299)),_(this,_0x224016(0x2ce)),(_0x6a4e50&&this[_0x224016(0x122)](_0x6a4e50),this['onPointerEnter$'][_0x224016(0x2c4)](()=>this[_0x224016(0x122)]({'hovered':!0x0})),this[_0x224016(0x26e)][_0x224016(0x2c4)](()=>this[_0x224016(0x122)]({'hovered':!0x1})));}[_0x10cc18(0x122)](_0x2d086f){const _0x554365=_0x10cc18;var _0x5bc9fc,_0xa9aedd,_0x420879,_0x309937,_0x258cba,_0x59dfc4;this['_color']=(_0x5bc9fc=_0x2d086f[_0x554365(0x1e5)])!=null?_0x5bc9fc:this[_0x554365(0x213)],this[_0x554365(0x25f)]=(_0xa9aedd=_0x2d086f[_0x554365(0x1eb)])!=null?_0xa9aedd:this['_hovered'],this['_range']=(_0x420879=_0x2d086f['range'])!=null?_0x420879:this[_0x554365(0x274)],this[_0x554365(0x278)]=(_0x309937=_0x2d086f[_0x554365(0x27a)])!=null?_0x309937:this['_name'],this[_0x554365(0x2b3)]=(_0x258cba=_0x2d086f[_0x554365(0x246)])!=null?_0x258cba:this['_labelPosition'],this[_0x554365(0x2ce)]=(_0x59dfc4=_0x2d086f[_0x554365(0x108)])!=null?_0x59dfc4:this[_0x554365(0x2ce)],this[_0x554365(0x20e)]({'width':_0x2d086f[_0x554365(0x320)],'height':_0x2d086f['height']});}[_0x10cc18(0x310)](_0x53a791){const _0xf43080=_0x10cc18,{row:_0x44ffb8,column:_0x509269}=_0x53a791;if(_0x44ffb8>=this[_0xf43080(0x274)][_0xf43080(0xf7)]&&_0x44ffb8<=this['_range'][_0xf43080(0x296)]&&_0x509269>=this[_0xf43080(0x274)][_0xf43080(0x280)]&&_0x509269<=this[_0xf43080(0x274)][_0xf43080(0x15f)]){this[_0xf43080(0x122)]({'hovered':!0x0});return;}this[_0xf43080(0x122)]({'hovered':!0x1});}[_0x10cc18(0x1bd)](_0x4f04f4){return!0x1;}[_0x10cc18(0x261)](_0x4cc091){const _0x52a3ff=_0x10cc18;_0x2dfad6[_0x52a3ff(0x285)](_0x4cc091,{'width':this[_0x52a3ff(0x320)],'height':this[_0x52a3ff(0x17a)],'strokeWidth':en,'stroke':this[_0x52a3ff(0x213)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x4cc091[_0x52a3ff(0x211)](),_0x4cc091[_0x52a3ff(0x1ef)](0x1,0x0,0x0,0x1,this[_0x52a3ff(0x320)],this[_0x52a3ff(0x2b3)]==='bottom'?0x0:-Q),Ee[_0x52a3ff(0x285)](_0x4cc091,{'text':this[_0x52a3ff(0x278)],'color':this['_color']}),_0x4cc091[_0x52a3ff(0x32e)]());}}var sn=Object[_0x10cc18(0x1ea)],nn=(_0x3a883b,_0x3ff8e9,_0x17202e,_0x329391)=>{const _0x418071=_0x10cc18;for(var _0x3fe8a5=_0x329391>0x1?void 0x0:_0x329391?sn(_0x3ff8e9,_0x17202e):_0x3ff8e9,_0x1014ed=_0x3a883b[_0x418071(0xf9)]-0x1,_0x1d8579;_0x1014ed>=0x0;_0x1014ed--)(_0x1d8579=_0x3a883b[_0x1014ed])&&(_0x3fe8a5=_0x1d8579(_0x3fe8a5)||_0x3fe8a5);return _0x3fe8a5;},Ne=(_0x503935,_0x1ea326)=>(_0x4b8e5d,_0x4e404c)=>_0x1ea326(_0x4b8e5d,_0x4e404c,_0x503935);const rn=0x1389;let ke=class extends _0x460db8{constructor(_0x9d1720,_0x53187c,_0x3bc7c,_0x103db0){const _0x297507=_0x10cc18;super(),_(this,_0x297507(0x2e9),new Set()),_(this,_0x297507(0x312),null),(this[_0x297507(0x187)]=_0x9d1720,this['_sheetSkeletonManagerService']=_0x53187c,this[_0x297507(0x1d2)]=_0x3bc7c,this[_0x297507(0x11f)]=_0x103db0,this['_init']());}[_0x10cc18(0x25e)](){const _0x358e93=_0x10cc18;this[_0x358e93(0x26d)][_0x358e93(0x2c6)][_0x358e93(0x297)](_0x2ea52d(this[_0x358e93(0x20f)]),_0x33a13a(_0x3786f1=>{const _0x5e49a7=_0x358e93;if(_0x3786f1){const _0x57cc08=_0x3786f1[_0x5e49a7(0x18a)];return _0x5c05c1(this[_0x5e49a7(0x1d2)][_0x5e49a7(0x189)](this[_0x5e49a7(0x187)]['unitId']),this[_0x5e49a7(0x11f)][_0x5e49a7(0x265)])[_0x5e49a7(0x297)](_0x47b623(([_0x5e4721,_0x1d058e])=>{const _0xafe4b1=_0x5e49a7,_0x26ce0b=new Map();return _0x5e4721[_0xafe4b1(0x12c)]((_0x2039a8,_0x507d1f)=>{const _0x1360fb=_0xafe4b1;if(_0x2039a8[_0x1360fb(0x1fd)]===_0x57cc08){const _0x379bca={..._0x2039a8};_0x379bca[_0x1360fb(0x1e5)]=this[_0x1360fb(0x11f)][_0x1360fb(0x2b0)](_0x2039a8[_0x1360fb(0x1e5)]),_0x26ce0b['set'](_0x507d1f,_0x379bca);}}),{'skeleton':_0x3786f1,'cursors':_0x26ce0b};}));}return _0x281440({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x56a350,cursors:_0x34125d})=>{const _0x39c58b=_0x358e93;this[_0x39c58b(0x10d)](),_0x56a350&&this[_0x39c58b(0x2d7)](_0x56a350,_0x34125d);}),this[_0x358e93(0x26d)][_0x358e93(0x2c6)][_0x358e93(0x288)](_0xd2c59c=>{const _0x9f3589=_0x358e93;if(_0xd2c59c==null)return;const {skeleton:_0x23ae51}=_0xd2c59c,{scene:_0x5044e5}=this[_0x9f3589(0x187)];_0x5044e5[_0x9f3589(0x255)][_0x9f3589(0x2c4)](_0x51b589(_0x1263ac=>{const _0x12055b=_0x9f3589;var _0x12db83,_0x181477;const {offsetX:_0x26ee5c,offsetY:_0x3a6003}=_0x1263ac,{x:_0x8fdd29,y:_0x3d666d}=_0x5044e5['getRelativeToViewportCoord'](_0x4b7404[_0x12055b(0x30a)]([_0x26ee5c,_0x3a6003])),{scaleX:_0x44fb37,scaleY:_0x188103}=_0x5044e5[_0x12055b(0x157)](),_0x2c0a89=_0x5044e5[_0x12055b(0x22a)](_0x32c43e[_0x12055b(0x293)]),_0xc8f162=_0x5044e5[_0x12055b(0x2e1)](_0x4b7404[_0x12055b(0x30a)]([_0x8fdd29,_0x3d666d]),_0x2c0a89),_0x58272c=_0x23ae51[_0x12055b(0x30e)](_0x26ee5c,_0x3a6003,_0x44fb37,_0x188103,_0xc8f162);((_0x12db83=this[_0x12055b(0x312)])==null?void 0x0:_0x12db83[_0x12055b(0x2c0)])===_0x58272c[_0x12055b(0x2c0)]&&((_0x181477=this[_0x12055b(0x312)])==null?void 0x0:_0x181477['row'])===_0x58272c['row']||this[_0x12055b(0x2e9)][_0x12055b(0x12c)](_0x4e8385=>{const _0x16affd=_0x12055b;_0x4e8385[_0x16affd(0x310)](_0x58272c);});},0x64));});}[_0x10cc18(0x2d7)](_0x204b77,_0xda0728){const _0x515e90=_0x10cc18;var _0x312c29;const _0x59a503=(_0x312c29=this[_0x515e90(0x26d)][_0x515e90(0x1d3)]())==null?void 0x0:_0x312c29[_0x515e90(0x126)];if(!_0x59a503)return;const _0x13bbde=this['_getSheetObject']();if(!_0x13bbde)return;this[_0x515e90(0x2e9)][_0x515e90(0x12c)](_0x58d37b=>{_0x58d37b['makeDirty']();});const {scene:_0x5efa8c}=_0x13bbde,_0x141f09=on(Array['from'](_0xda0728['values']()))[_0x515e90(0x2fb)](_0xc0f61f=>{const _0x5ea3e2=_0x515e90,{color:_0x36b2ce,range:_0x929e7c,name:_0x2734ed,selection:_0x3e45e4,sheetID:_0x2d1435}=_0xc0f61f,{startColumn:_0x576b6c,startRow:_0x500a1b,endColumn:_0x22f339,endRow:_0x38bb72}=_0x929e7c,_0x3790f2=_0x2094e3(_0x500a1b,_0x576b6c,_0x5efa8c,_0x59a503),_0x430db7=_0x2094e3(_0x38bb72,_0x22f339,_0x5efa8c,_0x59a503),{columnHeaderHeightAndMarginTop:_0x386d5b}=_0x59a503,{startX:_0x166b2c,startY:_0x3c6201}=_0x3790f2,{endX:_0xb37cb6,endY:_0x241798}=_0x430db7,_0x1bb7c2=_0xb37cb6-_0x166b2c,_0x3ee683=_0x241798-_0x3c6201,_0x5a5e92={'labelPosition':_0x3c6201-_0x386d5b>=Q?_0x5ea3e2(0x299):_0x5ea3e2(0x1c7),'sheetID':_0x2d1435,'range':_0x929e7c,'color':_0x36b2ce,'name':_0x2734ed,'selection':_0x3e45e4,'left':_0x166b2c,'top':_0x3c6201,'width':_0x1bb7c2,'height':_0x3ee683,'evented':!0x1,'zIndex':rn};return new tn(_0x2734ed,_0x5a5e92);});_0x5efa8c[_0x515e90(0x234)](_0x141f09,qi),this[_0x515e90(0x2e9)]=new Set(_0x141f09);}['_removeCollabCursors'](){const _0x3a2492=_0x10cc18;var _0x51c7a7;(_0x51c7a7=this[_0x3a2492(0x2e9)])==null||_0x51c7a7[_0x3a2492(0x12c)](_0x4be8e1=>_0x4be8e1[_0x3a2492(0x233)]());}['_getSheetObject'](){const _0x5e2722=_0x10cc18;return _0x32f0c0(this[_0x5e2722(0x187)]['unit'],this['_context']);}};ke=nn([Ne(0x1,_0x2c9f2f(_0x2cb62f)),Ne(0x2,_0x2c9f2f(H)),Ne(0x3,_0x2c9f2f(_0x31d312))],ke);function on(_0x2e25dc){const _0x41b685=_0x10cc18,_0x3981c2=new Map();return _0x2e25dc[_0x41b685(0x12c)](_0xca24a9=>{const _0x2c4c04=_0x41b685;if(_0x3981c2[_0x2c4c04(0x2bd)](_0xca24a9[_0x2c4c04(0x107)])){const _0x503722=_0x3981c2[_0x2c4c04(0x127)](_0xca24a9[_0x2c4c04(0x107)]);_0x503722[_0x2c4c04(0x27a)]+=',\x20'+_0xca24a9[_0x2c4c04(0x27a)];}else _0x3981c2[_0x2c4c04(0x239)](_0xca24a9['selection'],_0xca24a9);}),Array['from'](_0x3981c2['values']());}function _0x58c2(_0x1ab2b1,_0x39d731){const _0x270efc=_0x270e();return _0x58c2=function(_0x58c22a,_0x4188ba){_0x58c22a=_0x58c22a-0xe4;let _0xc3c535=_0x270efc[_0x58c22a];return _0xc3c535;},_0x58c2(_0x1ab2b1,_0x39d731);}var an=Object[_0x10cc18(0x1ea)],cn=(_0x1c75eb,_0xfdd4d8,_0x9389de,_0x28ae0a)=>{const _0x5cc2cd=_0x10cc18;for(var _0x1dda77=_0x28ae0a>0x1?void 0x0:_0x28ae0a?an(_0xfdd4d8,_0x9389de):_0xfdd4d8,_0x527467=_0x1c75eb[_0x5cc2cd(0xf9)]-0x1,_0x4b383c;_0x527467>=0x0;_0x527467--)(_0x4b383c=_0x1c75eb[_0x527467])&&(_0x1dda77=_0x4b383c(_0x1dda77)||_0x1dda77);return _0x1dda77;},F=(_0x4d0cf7,_0x565d54)=>(_0x330465,_0x25a67b)=>_0x565d54(_0x330465,_0x25a67b,_0x4d0cf7);let _e=class extends _0x3e748e{constructor(_0x4d5f76,_0x3cd275,_0x232be5,_0xfd79f3,_0x2bfebd,_0xb5f199){const _0x1f3029=_0x10cc18;super(),this[_0x1f3029(0x263)]=_0x4d5f76,this[_0x1f3029(0x128)]=_0x3cd275,this[_0x1f3029(0x331)]=_0x232be5,this[_0x1f3029(0x279)]=_0xfd79f3,this['_notificationService']=_0x2bfebd,this[_0x1f3029(0x303)]=_0xb5f199,this[_0x1f3029(0x1d4)](),this[_0x1f3029(0x22b)]();}[_0x10cc18(0x1d4)](){const _0x75c75a=_0x10cc18;this['disposeWithMe'](this[_0x75c75a(0x263)][_0x75c75a(0x163)](()=>{const _0x196a53=_0x75c75a;if(this[_0x196a53(0x128)][_0x196a53(0x1df)][_0x196a53(0x20b)])return this[_0x196a53(0x303)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x10cc18(0x22b)](){const _0x5132eb=_0x10cc18;this[_0x5132eb(0x1bc)](this[_0x5132eb(0x331)][_0x5132eb(0x1c5)][_0x5132eb(0x288)](_0x15a3de=>{const _0x410494=_0x5132eb;_0x15a3de['id']===_0x5e0b6b[_0x410494(0x1b0)]&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147['Warning'],'content':this[_0x410494(0x303)]['t'](_0x410494(0x194))}),_0x15a3de['id']===_0x5e0b6b['CLOSE_ROOM']&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x2c8)],'content':this['_localeService']['t'](_0x410494(0x2ab))}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x2b8)]&&this['_notificationService'][_0x410494(0xe7)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x410494(0x303)]['t'](_0x410494(0x121)),'type':_0x410494(0x1ac),'duration':0x0}),_0x15a3de['id']===_0x5e0b6b['CONFLICT']&&this['_messageService'][_0x410494(0xe7)]({'type':_0x22c147['Error'],'content':this[_0x410494(0x303)]['t'](_0x410494(0x2ab))+'('+_0x15a3de[_0x410494(0x1e0)]+')'}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x26a)]&&this[_0x410494(0x279)]['show']({'type':_0x22c147[_0x410494(0x2c8)],'content':this[_0x410494(0x303)]['t'](_0x15a3de['data']||'')}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x17b)]&&this['_messageService'][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x2c8)],'content':this[_0x410494(0x303)]['t'](_0x410494(0x148))}),_0x15a3de['id']===_0x5e0b6b['SOCKET_FAILED']&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x153)],'content':this['_localeService']['t'](_0x410494(0xfc))}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0xee)]&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x153)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x4d68ed),F(0x1,_0x3a4f5a),F(0x2,_0x2c9f2f(_0x32b243)),F(0x3,_0x41d342),F(0x4,_0x3c2d52),F(0x5,_0x2c9f2f(_0xefd7ba))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x239ad6,_0x4e12a5,_0xd103a9,_0x2256da)=>{for(var _0x1ebdb5=_0x2256da>0x1?void 0x0:_0x2256da?_n(_0x4e12a5,_0xd103a9):_0x4e12a5,_0x3c41c7=_0x239ad6['length']-0x1,_0x3f1378;_0x3c41c7>=0x0;_0x3c41c7--)(_0x3f1378=_0x239ad6[_0x3c41c7])&&(_0x1ebdb5=_0x3f1378(_0x1ebdb5)||_0x1ebdb5);return _0x1ebdb5;},ne=(_0x55032a,_0x3c8d61)=>(_0x31ed82,_0x58a613)=>_0x3c8d61(_0x31ed82,_0x58a613,_0x55032a);let le=class extends _0x3e748e{constructor(_0x2f4959,_0x506dbb,_0x5cd175,_0x159810){const _0xa5353f=_0x10cc18;super(),_(this,'_memberID'),(this['_injector']=_0x2f4959,this[_0xa5353f(0x276)]=_0x506dbb,this['_logService']=_0x5cd175,this['_collaborationSessionService']=_0x159810,this['_init']());}[_0x10cc18(0x25e)](){const _0x2ebc47=_0x10cc18;this[_0x2ebc47(0x250)](),this['_initUnhandledRejectionListener'](),this[_0x2ebc47(0x2f7)](),this[_0x2ebc47(0x222)]();}[_0x10cc18(0x222)](){const _0x4b80a7=_0x10cc18;this['disposeWithMe'](this[_0x4b80a7(0x292)][_0x4b80a7(0x137)][_0x4b80a7(0x288)](_0x5c302b=>{this['_memberID']=_0x5c302b==null?void 0x0:_0x5c302b['memberID'];}));}[_0x10cc18(0x250)](){const _0x204d12=_0x10cc18,_0x447b60=_0x5e777b=>{const _0x1ad90c=_0x58c2;var _0x6c6291;this[_0x1ad90c(0x14d)](_0x1ad90c(0x1ac),'[Window\x20Error]:\x20'+_0x5e777b['message']+'\x20at\x20'+_0x5e777b[_0x1ad90c(0x20c)]+':'+_0x5e777b[_0x1ad90c(0x1da)]+':'+_0x5e777b[_0x1ad90c(0x134)]+'\x0a'+(((_0x6c6291=_0x5e777b[_0x1ad90c(0x1ac)])==null?void 0x0:_0x6c6291[_0x1ad90c(0x25b)])||''));};window[_0x204d12(0x325)](_0x204d12(0x1ac),_0x447b60),this[_0x204d12(0x1bc)](()=>{const _0x4877b5=_0x204d12;window[_0x4877b5(0x251)](_0x4877b5(0x1ac),_0x447b60);});}[_0x10cc18(0x115)](){const _0x8b2f99=_0x10cc18,_0x183213=_0x1c6e99=>{const _0x329052=_0x58c2;this[_0x329052(0x14d)](_0x329052(0x1ac),_0x329052(0x1f3)+_0x1c6e99['reason']);};window[_0x8b2f99(0x325)](_0x8b2f99(0x31f),_0x183213),this[_0x8b2f99(0x1bc)](()=>{const _0x143a93=_0x8b2f99;window[_0x143a93(0x251)]('unhandledrejection',_0x183213);});}[_0x10cc18(0x2f7)](){const _0x4f7c40=_0x10cc18,_0x195ac2=this[_0x4f7c40(0x190)][_0x4f7c40(0x1ac)]['bind'](this[_0x4f7c40(0x190)]);this[_0x4f7c40(0x190)][_0x4f7c40(0x1ac)]=(..._0x44ab1e)=>{const _0x264ede=_0x4f7c40,_0x374341=_0x44ab1e[_0x264ede(0x2fb)](_0x18554c=>_0x18554c instanceof Error?_0x18554c[_0x264ede(0x2bc)]+'\x0a'+_0x18554c['stack']:String(_0x18554c))[_0x264ede(0x175)]('\x20');this['_uploadLog']('error','[LogService\x20Error]:\x20'+_0x374341),_0x195ac2(..._0x44ab1e);},this['disposeWithMe'](()=>{const _0x512447=_0x4f7c40;this[_0x512447(0x190)][_0x512447(0x1ac)]=_0x195ac2;});}[_0x10cc18(0x14d)](_0x130334,_0x41781b){const _0x53081c=_0x10cc18;try{const _0x5c6fd1={'userId':this[_0x53081c(0x311)],'logLabel':_0x130334,'content':_0x41781b};this['_httpService']['post'](_0x53081c(0x2d6),{'body':_0x5c6fd1})[_0x53081c(0x1c1)](()=>{});}catch{}}};le=ln([ne(0x0,_0x2c9f2f(_0x3955fb)),ne(0x1,_0x2c9f2f(_0x47ffcb)),ne(0x2,_0x1368e3),ne(0x3,_0x2c9f2f(_0x1abc06))],le);const hn=_0x10cc18(0x1cd),_t={};var un=Object[_0x10cc18(0x1ea)],dn=(_0x1a4275,_0x34d69d,_0x3d2f91,_0x3e50e6)=>{const _0x106de8=_0x10cc18;for(var _0x2ff2b2=_0x3e50e6>0x1?void 0x0:_0x3e50e6?un(_0x34d69d,_0x3d2f91):_0x34d69d,_0x3f53c6=_0x1a4275[_0x106de8(0xf9)]-0x1,_0x2a8361;_0x3f53c6>=0x0;_0x3f53c6--)(_0x2a8361=_0x1a4275[_0x3f53c6])&&(_0x2ff2b2=_0x2a8361(_0x2ff2b2)||_0x2ff2b2);return _0x2ff2b2;},lt=(_0x45250e,_0x19f61d)=>(_0x28be00,_0x45e56d)=>_0x19f61d(_0x28be00,_0x45e56d,_0x45250e);let he=class{constructor(_0x453437,_0x4a39f3){const _0x1fe490=_0x10cc18;this[_0x1fe490(0x16d)]=_0x453437,this[_0x1fe490(0x1f0)]=_0x4a39f3;}[_0x10cc18(0x31d)](_0x4c8e55){const _0x553d2e=_0x10cc18;this[_0x553d2e(0x28d)](_0x4c8e55),this[_0x553d2e(0x17f)](_0x4c8e55);}[_0x10cc18(0x324)](_0x3e2eca){const _0x2138b4=_0x10cc18,{unitID:_0x2b3adb}=_0x3e2eca,_0x54eee6=this[_0x2138b4(0x1f0)][_0x2138b4(0x105)](_0x2b3adb)['with'](_0x10cfe8),{redoCache:_0x2fc7fc}=_0x54eee6['getUndoRedoMutationParamsCache']();if(_0x2fc7fc['length']===0x0)return _0x3e2eca;let _0x4ceb1d=_0x4984ae[_0x2138b4(0x257)](_0x3e2eca[_0x2138b4(0x206)][0x0]);for(let _0x42a7dc=0x0;_0x42a7dc<_0x2fc7fc[_0x2138b4(0xf9)];_0x42a7dc++){const _0x1f7be6={'id':_0x2138b4(0x106),'params':{..._0x2fc7fc[_0x42a7dc]}},_0x5a9468=this[_0x2138b4(0x16d)][_0x2138b4(0x260)](_0x4ceb1d,_0x1f7be6,!0x1);if(_0x3ff0c5(_0x5a9468))throw _0x5a9468[_0x2138b4(0x1ac)];_0x4ceb1d=_0x5a9468[_0x2138b4(0x2aa)];}return{..._0x4984ae['deepClone'](_0x3e2eca),'mutations':[_0x4ceb1d]};}[_0x10cc18(0x28d)](_0x49ccb4){const _0x55b193=_0x10cc18,{unitID:_0x3d2929}=_0x49ccb4,_0x28da71=this[_0x55b193(0x1f0)]['getRenderById'](_0x3d2929)[_0x55b193(0x104)](_0x10cfe8),{undoCache:_0x248e4c,redoCache:_0x49f272}=_0x28da71[_0x55b193(0xf8)]();if(_0x248e4c['length']===0x0||_0x49f272['length']===0x0)return;const _0x207a6c=[],_0x250641=[];let _0x4b7507=_0x4984ae[_0x55b193(0x257)](_0x49ccb4[_0x55b193(0x206)][0x0]),_0x4a72cd=_0x4984ae[_0x55b193(0x257)](_0x49ccb4[_0x55b193(0x206)][0x0]);for(let _0x40c2c1=_0x248e4c[_0x55b193(0xf9)]-0x1;_0x40c2c1>=0x0;_0x40c2c1--){const _0xc4d525={'id':_0x55b193(0x106),'params':{..._0x248e4c[_0x40c2c1]}},_0x1b466d={'id':_0x55b193(0x106),'params':{..._0x49f272[_0x40c2c1]}},_0x5adc51=this[_0x55b193(0x16d)][_0x55b193(0x260)](_0x4b7507,_0xc4d525,!0x1),_0xcb3f84=this['_transformService']['transformMutation'](_0x4a72cd,_0x1b466d,!0x1);if(_0x3ff0c5(_0x5adc51))throw _0x5adc51[_0x55b193(0x1ac)];if(_0x3ff0c5(_0xcb3f84))throw _0xcb3f84['error'];_0x207a6c[_0x55b193(0x1b5)](_0x5adc51[_0x55b193(0x21e)][_0x55b193(0x151)]),_0x250641[_0x55b193(0x1b5)](_0xcb3f84[_0x55b193(0x21e)][_0x55b193(0x151)]),_0x4b7507=_0x5adc51['m1Prime'],_0x4a72cd=_0xcb3f84['m1Prime'];}_0x28da71[_0x55b193(0x1b4)]({'undoCache':_0x207a6c,'redoCache':_0x250641});}['_transformPreviousActiveRange'](_0x4126d3){const _0x397984=_0x10cc18,{unitID:_0x484b5e}=_0x4126d3,_0x52eae8=this[_0x397984(0x1f0)][_0x397984(0x105)](_0x484b5e)[_0x397984(0x104)](_0x10cfe8),_0x2c48eb=_0x52eae8[_0x397984(0x1d7)]();if(_0x2c48eb==null)return;const _0x3dfb56=[{'id':_0x397984(0x106),'params':{'unitId':_0x4126d3[_0x397984(0x249)],'actions':null,'textRanges':[_0x2c48eb]}}],_0x2bf1b9=this[_0x397984(0x16d)][_0x397984(0x28c)](_0x4126d3,_0x3dfb56);if(!_0x4e8f7d(_0x2bf1b9))throw _0x2bf1b9[_0x397984(0x1ac)];const _0x10553d=_0x2bf1b9['m2Prime'][0x0][_0x397984(0x151)]['textRanges'];Array['isArray'](_0x10553d)&&_0x10553d[_0x397984(0xf9)]&&_0x52eae8[_0x397984(0x229)](_0x10553d[0x0]);}};he=dn([lt(0x0,_0x447d81),lt(0x1,_0x20cff4)],he);var Sn=Object[_0x10cc18(0x1ea)],mn=(_0x21a8ce,_0x285d38,_0x1a8836,_0x26e98b)=>{const _0x2860a6=_0x10cc18;for(var _0x24007f=_0x26e98b>0x1?void 0x0:_0x26e98b?Sn(_0x285d38,_0x1a8836):_0x285d38,_0x592092=_0x21a8ce[_0x2860a6(0xf9)]-0x1,_0x59e972;_0x592092>=0x0;_0x592092--)(_0x59e972=_0x21a8ce[_0x592092])&&(_0x24007f=_0x59e972(_0x24007f)||_0x24007f);return _0x24007f;},Le=(_0x16e17a,_0x4b1f4f)=>(_0xf3f0b1,_0x5f2651)=>_0x4b1f4f(_0xf3f0b1,_0x5f2651,_0x16e17a);let ue=class{constructor(_0x520da4,_0x9473e2,_0x40dc1f){const _0x30331f=_0x10cc18;this['_injector']=_0x520da4,this[_0x30331f(0x16d)]=_0x9473e2,this['_docStateChangeManagerService']=_0x40dc1f;}[_0x10cc18(0x13e)](_0x128609){const _0x4306a9=_0x10cc18;this[_0x4306a9(0x10f)](_0x128609);}[_0x10cc18(0x324)](_0x2171e1){const _0x44447a=_0x10cc18,{unitID:_0x36eb05}=_0x2171e1,{collaboration:_0x4016e3}=this[_0x44447a(0x252)]['getStateCache'](_0x36eb05);if(_0x4016e3[_0x44447a(0xf9)]===0x0)return _0x2171e1;let _0x4613f2=_0x4984ae[_0x44447a(0x257)](_0x2171e1['mutations'][0x0]);for(let _0x5a606b=0x0;_0x5a606b<_0x4016e3[_0x44447a(0xf9)];_0x5a606b++){const _0x55e158={'id':_0x44447a(0x106),'params':{'unitId':_0x4016e3[_0x5a606b][_0x44447a(0x16a)],..._0x4016e3[_0x5a606b][_0x44447a(0x307)]}},_0x2a9e0c=this['_transformService'][_0x44447a(0x260)](_0x4613f2,_0x55e158,!0x1);if(_0x3ff0c5(_0x2a9e0c))throw _0x2a9e0c[_0x44447a(0x1ac)];_0x4613f2=_0x2a9e0c['m1Prime'];}return{..._0x4984ae[_0x44447a(0x257)](_0x2171e1),'mutations':[_0x4613f2]};}[_0x10cc18(0x10f)](_0x9ef506){const _0x54986f=_0x10cc18,{unitID:_0x3d55b2}=_0x9ef506,{history:_0x620009,collaboration:_0x4b6721}=this[_0x54986f(0x252)][_0x54986f(0x185)](_0x3d55b2);if(_0x620009[_0x54986f(0xf9)]===0x0&&_0x4b6721[_0x54986f(0xf9)]===0x0)return;const _0x460992=[],_0x56d0ce=[];let _0x494900=_0x4984ae['deepClone'](_0x9ef506[_0x54986f(0x206)][0x0]),_0x4a20fa=_0x4984ae[_0x54986f(0x257)](_0x9ef506['mutations'][0x0]);for(let _0x1320a7=_0x620009[_0x54986f(0xf9)]-0x1;_0x1320a7>=0x0;_0x1320a7--){const _0x33513e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x620009[_0x1320a7][_0x54986f(0x16a)],..._0x620009[_0x1320a7][_0x54986f(0x109)]}},_0x192a10={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x620009[_0x1320a7]['unitId'],..._0x620009[_0x1320a7]['redoState']}},_0xd1f02b=this['_transformService']['transformMutation'](_0x494900,_0x33513e,!0x1),_0x5821dc=this[_0x54986f(0x16d)]['transformMutation'](_0x4a20fa,_0x192a10,!0x1);if(_0x3ff0c5(_0xd1f02b))throw _0xd1f02b[_0x54986f(0x1ac)];if(_0x3ff0c5(_0x5821dc))throw _0x5821dc[_0x54986f(0x1ac)];_0x460992[_0x54986f(0x1b5)]({..._0x620009[_0x1320a7],'undoState':_0xd1f02b['m2Prime'][_0x54986f(0x151)],'redoState':_0x5821dc[_0x54986f(0x21e)]['params']}),_0x494900=_0xd1f02b[_0x54986f(0x2aa)],_0x4a20fa=_0x5821dc['m1Prime'];}_0x494900=_0x4984ae[_0x54986f(0x257)](_0x9ef506[_0x54986f(0x206)][0x0]),_0x4a20fa=_0x4984ae[_0x54986f(0x257)](_0x9ef506['mutations'][0x0]);for(let _0x252832=_0x4b6721[_0x54986f(0xf9)]-0x1;_0x252832>=0x0;_0x252832--){const _0x85f924={'id':_0x54986f(0x106),'params':{'unitId':_0x4b6721[_0x252832][_0x54986f(0x16a)],..._0x4b6721[_0x252832][_0x54986f(0x109)]}},_0x13e0fa={'id':_0x54986f(0x106),'params':{'unitId':_0x4b6721[_0x252832][_0x54986f(0x16a)],..._0x4b6721[_0x252832][_0x54986f(0x307)]}},_0x4a5a3c=this['_transformService'][_0x54986f(0x260)](_0x494900,_0x85f924,!0x1),_0x2d8042=this['_transformService'][_0x54986f(0x260)](_0x4a20fa,_0x13e0fa,!0x1);if(_0x3ff0c5(_0x4a5a3c))throw _0x4a5a3c[_0x54986f(0x1ac)];if(_0x3ff0c5(_0x2d8042))throw _0x2d8042['error'];_0x56d0ce[_0x54986f(0x1b5)]({..._0x4b6721[_0x252832],'undoState':_0x4a5a3c[_0x54986f(0x21e)][_0x54986f(0x151)],'redoState':_0x2d8042['m2Prime']['params']}),_0x494900=_0x4a5a3c[_0x54986f(0x2aa)],_0x4a20fa=_0x2d8042[_0x54986f(0x2aa)];}this[_0x54986f(0x252)][_0x54986f(0x22c)](_0x3d55b2,{'history':_0x460992,'collaboration':_0x56d0ce});}};ue=mn([Le(0x0,_0x2c9f2f(_0x3955fb)),Le(0x1,_0x447d81),Le(0x2,_0x2c9f2f(_0x58cfb8))],ue);var In=Object[_0x10cc18(0x1ea)],fn=(_0x50f8f6,_0x25b639,_0x52f4ed,_0xe87461)=>{for(var _0x148cca=_0xe87461>0x1?void 0x0:_0xe87461?In(_0x25b639,_0x52f4ed):_0x25b639,_0x7f7a08=_0x50f8f6['length']-0x1,_0x2904c3;_0x7f7a08>=0x0;_0x7f7a08--)(_0x2904c3=_0x50f8f6[_0x7f7a08])&&(_0x148cca=_0x2904c3(_0x148cca)||_0x148cca);return _0x148cca;},ht=(_0xb998d8,_0x44ceed)=>(_0x5818ad,_0x1cacb8)=>_0x44ceed(_0x5818ad,_0x1cacb8,_0xb998d8);let de=class{constructor(_0x309edc,_0x44d1ad){const _0x43b9d3=_0x10cc18;this[_0x43b9d3(0xf0)]=_0x309edc,this[_0x43b9d3(0x16d)]=_0x44d1ad;}['transformSelections'](_0x598361){const _0xef872e=_0x10cc18;var _0x37cbae;const _0x4dc4e6=this[_0xef872e(0xf0)][_0xef872e(0x127)](_0x196312),_0x8dcbf0=(_0x37cbae=_0x4dc4e6[_0xef872e(0x1d8)]())!=null?_0x37cbae:[];if(_0x8dcbf0[_0xef872e(0xf9)]===0x0)return;const _0x490675=_0x598361[_0xef872e(0x249)],_0x2a67f5=[{'id':_0xef872e(0x106),'params':{'unitId':_0x490675,'actions':null,'textRanges':_0x8dcbf0}}],_0x2430f8=this[_0xef872e(0x16d)][_0xef872e(0x28c)](_0x598361,_0x2a67f5);if(!_0x4e8f7d(_0x2430f8))throw _0x2430f8[_0xef872e(0x1ac)];const _0x50439a=_0x2430f8[_0xef872e(0x21e)][0x0][_0xef872e(0x151)][_0xef872e(0x1a2)];Array[_0xef872e(0x2d1)](_0x50439a)&&_0x50439a[_0xef872e(0xf9)]&&_0x4dc4e6['replaceDocRanges'](_0x50439a,{'unitId':_0x490675,'subUnitId':_0x490675},!0x1);}};de=fn([ht(0x0,_0x2c9f2f(_0x3955fb)),ht(0x1,_0x447d81)],de);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x464b87,_0x2647aa,_0x3e4df8,_0x23a408)=>{const _0x5d2288=_0x10cc18;for(var _0xc1784c=_0x23a408>0x1?void 0x0:_0x23a408?gn(_0x2647aa,_0x3e4df8):_0x2647aa,_0x11304a=_0x464b87[_0x5d2288(0xf9)]-0x1,_0x8b6e8f;_0x11304a>=0x0;_0x11304a--)(_0x8b6e8f=_0x464b87[_0x11304a])&&(_0xc1784c=_0x8b6e8f(_0xc1784c)||_0xc1784c);return _0xc1784c;},U=(_0xcadf04,_0x305096)=>(_0xf4f47a,_0x28f1bd)=>_0x305096(_0xf4f47a,_0x28f1bd,_0xcadf04);let Se=class extends _0x3e748e{constructor(_0x1e18af,_0x25be45,_0x480daf,_0x2c6318,_0x30caa3,_0x447c82,_0x42a86a,_0x159519){const _0x195893=_0x10cc18;super(),_(this,_0x195893(0x1f8),new _0x1ced39(_0x3d84ba['NOT_COLLAB'])),(this[_0x195893(0x252)]=_0x1e18af,this[_0x195893(0x1c9)]=_0x25be45,this['_docTransformIMECacheService']=_0x480daf,this[_0x195893(0x145)]=_0x2c6318,this[_0x195893(0x2a9)]=_0x30caa3,this['_docSyncEditingCollabCursorService']=_0x447c82,this[_0x195893(0x279)]=_0x42a86a,this[_0x195893(0x303)]=_0x159519,this[_0x195893(0x123)]());}[_0x10cc18(0x123)](){const _0x267b2e=_0x10cc18;this['disposeWithMe'](this[_0x267b2e(0x1c9)]['entityInit$']['subscribe'](_0x536905=>{const _0x5a481f=_0x267b2e,_0x52c5c0=this['_docStateChangeManagerService'][_0x5a481f(0x2ec)]['subscribe'](_0x6cce2e=>{const _0x35e53f=_0x5a481f;if(_0x6cce2e==null)return;const {unitId:_0x34650a,redoState:_0x372c23,commandId:_0x3f4612}=_0x6cce2e;if(_0x34650a!==_0x536905[_0x35e53f(0x249)])return;const _0x33b1f8={'id':_0x3f4612,'type':_0x3e471d[_0x35e53f(0x228)],'params':{'unitId':_0x34650a,'actions':_0x372c23[_0x35e53f(0x230)],'textRanges':null}};_0x536905[_0x35e53f(0x102)](_0x33b1f8);});if(_0x536905[_0x5a481f(0x1bc)](_0x52c5c0),_0x536905 instanceof _0x59b116){const _0x404b56={'onTransformIME':_0x3fd6a5=>this[_0x5a481f(0x2e6)][_0x5a481f(0x31d)](_0x3fd6a5),'onTransformState':_0x534a90=>this['_docTransformStateCacheService'][_0x5a481f(0x13e)](_0x534a90),'onTransformSelections':_0x59dfc9=>this[_0x5a481f(0x2a9)][_0x5a481f(0x29e)](_0x59dfc9),'onSyncEditingCollabCursor':_0x102a84=>this[_0x5a481f(0x1a4)][_0x5a481f(0x199)](_0x102a84),'onTransformRemoteChangesetByIMECache':_0x3bc2ec=>this[_0x5a481f(0x2e6)][_0x5a481f(0x324)](_0x3bc2ec),'onTransformRemoteChangesetByStateCache':_0x178f40=>this[_0x5a481f(0x145)][_0x5a481f(0x324)](_0x178f40)};_0x536905[_0x5a481f(0x1ff)](_0x404b56);}}));}};Se=vn([U(0x0,_0x2c9f2f(_0x58cfb8)),U(0x1,_0x2c9f2f(_0x69ed9c)),U(0x2,_0x2c9f2f(he)),U(0x3,_0x2c9f2f(ue)),U(0x4,_0x2c9f2f(de)),U(0x5,_0x2c9f2f(ze)),U(0x6,_0x41d342),U(0x7,_0x2c9f2f(_0xefd7ba))],Se);var Z=(_0x2988cf=>(_0x2988cf[_0x2988cf[_0x10cc18(0x1a6)]=0x0]=_0x10cc18(0x1a6),_0x2988cf[_0x2988cf['OK']=0x1]='OK',_0x2988cf[_0x2988cf[_0x10cc18(0x12a)]=0x2]=_0x10cc18(0x12a),_0x2988cf[_0x2988cf[_0x10cc18(0x2b8)]=0x3]=_0x10cc18(0x2b8),_0x2988cf[_0x2988cf[_0x10cc18(0x1ba)]=0x4]=_0x10cc18(0x1ba),_0x2988cf[_0x2988cf[_0x10cc18(0x174)]=0x5]='UNAUTHENTICATED',_0x2988cf[_0x2988cf[_0x10cc18(0x220)]=0x6]=_0x10cc18(0x220),_0x2988cf[_0x2988cf[_0x10cc18(0x2f2)]=0x7]=_0x10cc18(0x2f2),_0x2988cf[_0x2988cf['TOO_MANY_REQUESTS']=0x8]=_0x10cc18(0x2f3),_0x2988cf[_0x2988cf[_0x10cc18(0x196)]=0x9]=_0x10cc18(0x196),_0x2988cf[_0x2988cf['LOGIN_FAILED']=0xa]=_0x10cc18(0x267),_0x2988cf[_0x2988cf[_0x10cc18(0x1f6)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2988cf[_0x2988cf[_0x10cc18(0x17c)]=0xc]=_0x10cc18(0x17c),_0x2988cf[_0x2988cf[_0x10cc18(0x1d5)]=0xd]=_0x10cc18(0x1d5),_0x2988cf[_0x2988cf[_0x10cc18(0x283)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2988cf[_0x2988cf[_0x10cc18(0x1bf)]=0xf]=_0x10cc18(0x1bf),_0x2988cf[_0x2988cf[_0x10cc18(0x1b3)]=0x10]=_0x10cc18(0x1b3),_0x2988cf[_0x2988cf['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2988cf[_0x2988cf['ERROR_AGAIN']=0x65]=_0x10cc18(0x1dd),_0x2988cf[_0x2988cf[_0x10cc18(0x29a)]=0xc9]=_0x10cc18(0x29a),_0x2988cf[_0x2988cf[_0x10cc18(0x198)]=0xca]='USER_IS_ANONYMOUS',_0x2988cf[_0x2988cf[_0x10cc18(0xf3)]=0x1389]=_0x10cc18(0xf3),_0x2988cf[_0x2988cf[_0x10cc18(0x1a8)]=0x1771]=_0x10cc18(0x1a8),_0x2988cf[_0x2988cf[_0x10cc18(0x2ad)]=0x1772]=_0x10cc18(0x2ad),_0x2988cf[_0x2988cf['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x10cc18(0x2b7),_0x2988cf[_0x2988cf[_0x10cc18(0x31e)]=0x1b59]=_0x10cc18(0x31e),_0x2988cf[_0x2988cf['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x10cc18(0x158),_0x2988cf[_0x2988cf[_0x10cc18(0x321)]=0x1b5b]=_0x10cc18(0x321),_0x2988cf[_0x2988cf[_0x10cc18(0x11e)]=0x1b5c]=_0x10cc18(0x11e),_0x2988cf[_0x2988cf['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2988cf[_0x2988cf[_0x10cc18(0x100)]=0x1f41]=_0x10cc18(0x100),_0x2988cf[_0x2988cf['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x10cc18(0x221),_0x2988cf[_0x2988cf[_0x10cc18(0x226)]=0x232a]=_0x10cc18(0x226),_0x2988cf[_0x2988cf[_0x10cc18(0x2e5)]=0x232b]=_0x10cc18(0x2e5),_0x2988cf[_0x2988cf['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x10cc18(0x1a0),_0x2988cf[_0x2988cf[_0x10cc18(0x2b4)]=0x232d]=_0x10cc18(0x2b4),_0x2988cf[_0x2988cf['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2988cf[_0x2988cf[_0x10cc18(0x2eb)]=0x2712]=_0x10cc18(0x2eb),_0x2988cf[_0x2988cf['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x10cc18(0x2b9),_0x2988cf[_0x2988cf[_0x10cc18(0x32a)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2988cf[_0x2988cf[_0x10cc18(0x2e7)]=0x271a]=_0x10cc18(0x2e7),_0x2988cf[_0x2988cf[_0x10cc18(0x212)]=0x271b]=_0x10cc18(0x212),_0x2988cf[_0x2988cf[_0x10cc18(0x152)]=0x271c]=_0x10cc18(0x152),_0x2988cf[_0x2988cf[_0x10cc18(0x19a)]=0x271d]=_0x10cc18(0x19a),_0x2988cf[_0x2988cf[_0x10cc18(0x209)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2988cf[_0x2988cf[_0x10cc18(0x2cc)]=0x271f]=_0x10cc18(0x2cc),_0x2988cf[_0x2988cf['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x10cc18(0x172),_0x2988cf[_0x2988cf[_0x10cc18(0x27c)]=0x2af9]=_0x10cc18(0x27c),_0x2988cf[_0x2988cf['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x10cc18(0x1bb),_0x2988cf[_0x2988cf[_0x10cc18(0x132)]=0x2ee2]='INVALID_INVITE_CODE',_0x2988cf[_0x2988cf['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x2988cf[_0x2988cf[_0x10cc18(0x160)]=0x2ee4]=_0x10cc18(0x160),_0x2988cf[_0x2988cf[_0x10cc18(0x136)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2988cf[_0x2988cf['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x10cc18(0x2b1),_0x2988cf[_0x2988cf['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x10cc18(0x1be),_0x2988cf[_0x2988cf[_0x10cc18(0x1cf)]=0x32cb]=_0x10cc18(0x1cf),_0x2988cf[_0x2988cf[_0x10cc18(0x1f2)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2988cf[_0x2988cf[_0x10cc18(0x16c)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2988cf[_0x2988cf[_0x10cc18(0x179)]=0x36b3]=_0x10cc18(0x179),_0x2988cf[_0x2988cf[_0x10cc18(0x2d8)]=0x36b4]=_0x10cc18(0x2d8),_0x2988cf[_0x2988cf[_0x10cc18(0x275)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2988cf[_0x2988cf[_0x10cc18(0x101)]=0x3716]=_0x10cc18(0x101),_0x2988cf[_0x2988cf['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2988cf[_0x2988cf['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x10cc18(0x2a8),_0x2988cf[_0x2988cf[_0x10cc18(0x24c)]=0x3a99]=_0x10cc18(0x24c),_0x2988cf[_0x2988cf['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x10cc18(0xfd),_0x2988cf[_0x2988cf['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x10cc18(0x146),_0x2988cf[_0x2988cf[_0x10cc18(0x323)]=0x3a9c]=_0x10cc18(0x323),_0x2988cf[_0x2988cf[_0x10cc18(0x23e)]=0x3a9d]=_0x10cc18(0x23e),_0x2988cf[_0x2988cf['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x10cc18(0x27b),_0x2988cf[_0x2988cf[_0x10cc18(0x243)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2988cf[_0x2988cf[_0x10cc18(0x1cb)]=0x3e81]=_0x10cc18(0x1cb),_0x2988cf[_0x2988cf[_0x10cc18(0x14b)]=-0x1]=_0x10cc18(0x14b),_0x2988cf))(Z||{});function En(_0x588148){const _0x339717=_0x10cc18;var _0xa58ff5,_0x492ba2;const _0x7da222=(_0xa58ff5=_0x588148[_0x339717(0xf4)])==null?void 0x0:_0xa58ff5['stage'],_0x8765a0=((_0x492ba2=_0x588148[_0x339717(0xf4)])==null?void 0x0:_0x492ba2[_0x339717(0x186)])||0x0;return _0x7da222===_0x915ac4[_0x339717(0x1b6)]&&_0x8765a0>0x0;}function pn(_0x59f19e){const _0x239b97=_0x10cc18;return _0x59f19e['functionsExecutedState']===_0x4723a6[_0x239b97(0x1e6)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4c2b13,_0x59b739,_0x4ca5b0,_0x50983a)=>{const _0x4be405=_0x10cc18;for(var _0x4d320c=_0x50983a>0x1?void 0x0:_0x50983a?On(_0x59b739,_0x4ca5b0):_0x59b739,_0x35f12a=_0x4c2b13[_0x4be405(0xf9)]-0x1,_0x492216;_0x35f12a>=0x0;_0x35f12a--)(_0x492216=_0x4c2b13[_0x35f12a])&&(_0x4d320c=_0x492216(_0x4d320c)||_0x4d320c);return _0x4d320c;},P=(_0x5b3396,_0x36bccc)=>(_0x3cc557,_0x5ab87c)=>_0x36bccc(_0x3cc557,_0x5ab87c,_0x5b3396);const Cn=_0x10cc18(0x2b2),Rn=_0x10cc18(0x2ae),Dn='/universer-api/license/formula/limit/done';let me=class extends _0x3e748e{constructor(_0x4dec20,_0x2d442e,_0x5d9dee,_0x879938,_0x15f059,_0x2be7f6,_0xc84276){const _0x34b80b=_0x10cc18;super(),_(this,'_pollingInterval',null),_(this,_0x34b80b(0x308),0x0),_(this,'_currentUsage',0x0),_(this,_0x34b80b(0x290),[]),_(this,_0x34b80b(0x1db),0x0),(this[_0x34b80b(0x279)]=_0x4dec20,this[_0x34b80b(0x29c)]=_0x2d442e,this['_configService']=_0x5d9dee,this['_httpService']=_0x879938,this[_0x34b80b(0x301)]=_0x15f059,this[_0x34b80b(0x190)]=_0x2be7f6,this[_0x34b80b(0x303)]=_0xc84276,this[_0x34b80b(0x2c2)]());}['_initCommandInterceptor'](){const _0x3f36cf=_0x10cc18;this[_0x3f36cf(0x1bc)](this['_commandService'][_0x3f36cf(0x256)]((_0x55a370,_0x5bf829)=>{const _0x44fd3f=_0x3f36cf;var _0x302426;if(_0x55a370['id']!==_0x19bce6['id'])return;const _0x504c6b=_0x55a370[_0x44fd3f(0x151)];if(!this[_0x44fd3f(0x2a0)]((_0x302426=_0x504c6b['dirtyRanges'])!=null?_0x302426:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x44fd3f(0x1d6)](_0x55a370,_0x5bf829),this[_0x44fd3f(0x11c)](),new _0x20efe7();})),this['disposeWithMe'](this[_0x3f36cf(0x29c)][_0x3f36cf(0x164)]((_0x380da4,_0x26e2a8)=>{const _0x5725e6=_0x3f36cf;if(_0x380da4['id']!==_0x391c35['id'])return;const _0x46873d=_0x380da4[_0x5725e6(0x151)];if(En(_0x46873d)){const _0x17041a=_0x5236ab();this[_0x5725e6(0x290)][_0x5725e6(0x1ed)](_0x17041a),this[_0x5725e6(0x31c)](_0x17041a);}else{if(pn(_0x46873d)&&this[_0x5725e6(0x290)][_0x5725e6(0xf9)]>0x0){const _0x2489cb=this[_0x5725e6(0x290)][_0x5725e6(0x1fe)]();this[_0x5725e6(0x10c)](_0x2489cb);}}}));}[_0x10cc18(0x233)](){const _0x3d5236=_0x10cc18;super[_0x3d5236(0x233)](),this[_0x3d5236(0x25c)](),this[_0x3d5236(0x290)]=[],this[_0x3d5236(0x2c1)]=0x0,this[_0x3d5236(0x308)]=0x0,this[_0x3d5236(0x1db)]=0x0;}async[_0x10cc18(0x1d6)](_0x4fac1e,_0x15977b){const _0x132adc=_0x10cc18;for(let _0x435a35=0x0;_0x435a35<0x1e;_0x435a35++)try{if(await this[_0x132adc(0x24d)](),this['_checkCalculationAvailable']()){this[_0x132adc(0x2cd)](_0x4fac1e,_0x15977b),this['_messageService'][_0x132adc(0xe7)]({'content':this[_0x132adc(0x303)]['t'](_0x132adc(0x1d0)),'type':_0x22c147[_0x132adc(0x12f)]});return;}await new Promise(_0x13c1b8=>{const _0x216f7a=_0x132adc;this[_0x216f7a(0x112)]=window[_0x216f7a(0x26f)](_0x13c1b8,0x3e8);});}catch(_0x5d560b){this[_0x132adc(0x190)][_0x132adc(0x1ac)](_0x5d560b);}this[_0x132adc(0x279)][_0x132adc(0xe7)]({'content':this[_0x132adc(0x303)]['t'](_0x132adc(0x2c9)),'type':_0x22c147[_0x132adc(0x153)]});}[_0x10cc18(0x2cd)](_0x1ebad2,_0x2feae3){const _0x48e03b=_0x10cc18;try{this[_0x48e03b(0x29c)][_0x48e03b(0xfe)](_0x1ebad2['id'],_0x1ebad2['params'],_0x2feae3);}catch(_0x408758){this[_0x48e03b(0x190)][_0x48e03b(0x1ac)](_0x408758);}}[_0x10cc18(0x1ab)](_0x239057,_0x2a137d){const _0x19bdab=_0x10cc18;_0x2a137d<this['_lastResponseTimestamp']||(this[_0x19bdab(0x1db)]=_0x2a137d,this[_0x19bdab(0x308)]=Number[_0x19bdab(0x14a)](_0x239057[_0x19bdab(0x114)]),this['_currentUsage']=Number[_0x19bdab(0x14a)](_0x239057[_0x19bdab(0x1dc)]));}async[_0x10cc18(0x31c)](_0x40757c){const _0x177391=_0x10cc18;var _0x43ae04,_0x1eacac;const _0x48cdda=Date['now']();try{const _0x75aa=((_0x43ae04=this[_0x177391(0x1ca)][_0x177391(0x253)](_0x209e63))==null?void 0x0:_0x43ae04['startFormulaLimitUrl'])||Rn,_0xf07c7c=(await this['_httpService'][_0x177391(0x1e3)](_0x75aa,{'body':JSON[_0x177391(0x16f)]({'taskId':_0x40757c})}))[_0x177391(0x218)];if(((_0x1eacac=_0xf07c7c['error'])==null?void 0x0:_0x1eacac[_0x177391(0x23f)])!==Z['OK'])return;this[_0x177391(0x1ab)](_0xf07c7c['limitInfo'],_0x48cdda);}catch(_0x10e490){this[_0x177391(0x190)][_0x177391(0x1ac)](_0x10e490);}}async[_0x10cc18(0x24d)](_0x5b693e){const _0x3d6cf1=_0x10cc18;var _0x4bb7fc,_0xf0ca8c;const _0x31774c=Date[_0x3d6cf1(0x248)]();try{const _0x5c9066=((_0x4bb7fc=this[_0x3d6cf1(0x1ca)][_0x3d6cf1(0x253)](_0x209e63))==null?void 0x0:_0x4bb7fc['getformulaLimitStatusUrl'])||Cn,_0x426c71=_0x5b693e?_0x5c9066+_0x3d6cf1(0x2dd)+encodeURIComponent(_0x5b693e):_0x5c9066,_0xa02a4e=(await this['_httpService'][_0x3d6cf1(0x127)](_0x426c71))[_0x3d6cf1(0x218)];if(((_0xf0ca8c=_0xa02a4e[_0x3d6cf1(0x1ac)])==null?void 0x0:_0xf0ca8c[_0x3d6cf1(0x23f)])!==Z['OK'])return;this[_0x3d6cf1(0x1ab)](_0xa02a4e[_0x3d6cf1(0x215)],_0x31774c);}catch(_0x526784){this[_0x3d6cf1(0x190)]['error'](_0x526784);}}async[_0x10cc18(0x10c)](_0x54fa31){const _0x4999f7=_0x10cc18;var _0x39846e,_0x1acce6;const _0x524c8f=Date[_0x4999f7(0x248)]();try{const _0x54ec01=((_0x39846e=this[_0x4999f7(0x1ca)][_0x4999f7(0x253)](_0x209e63))==null?void 0x0:_0x39846e['releaseFormulaLimitUrl'])||Dn,_0x58f0e4=(await this[_0x4999f7(0x276)][_0x4999f7(0x1e3)](_0x54ec01,{'body':JSON[_0x4999f7(0x16f)]({'taskId':_0x54fa31})}))[_0x4999f7(0x218)];if(((_0x1acce6=_0x58f0e4[_0x4999f7(0x1ac)])==null?void 0x0:_0x1acce6[_0x4999f7(0x23f)])!==Z['OK'])return;this[_0x4999f7(0x1ab)](_0x58f0e4[_0x4999f7(0x215)],_0x524c8f);}catch(_0x26ac90){this[_0x4999f7(0x190)][_0x4999f7(0x1ac)](_0x26ac90);}}[_0x10cc18(0x17e)](){const _0x486023=_0x10cc18;return this[_0x486023(0x308)]===0x0?!0x0:this[_0x486023(0x308)]-this[_0x486023(0x2c1)]>0x0;}['_clearPolling'](){const _0x5f5061=_0x10cc18;this[_0x5f5061(0x112)]&&(clearTimeout(this[_0x5f5061(0x112)]),this[_0x5f5061(0x112)]=null);}[_0x10cc18(0x11c)](){const _0x3fc532=_0x10cc18;this['_messageService']['show']({'content':this['_localeService']['t'](_0x3fc532(0x28a)),'type':_0x22c147['Loading']});}['_hasFormulaInDirtyRanges'](_0x4d703e){const _0x5400d9=_0x10cc18;for(const _0xa31837 of _0x4d703e){const {unitId:_0x58189d,sheetId:_0x42ae4a,range:_0x3f34ae}=_0xa31837,_0x22ad5e=this['_univerInstanceService'][_0x5400d9(0x30b)](_0x58189d);if(!_0x22ad5e)continue;const _0x3ecccb=_0x22ad5e[_0x5400d9(0x21d)](_0x42ae4a);if(!_0x3ecccb)continue;const _0xa9be59=_0x3ecccb['getCellMatrix']();for(let _0x131aca=_0x3f34ae['startRow'];_0x131aca<=_0x3f34ae[_0x5400d9(0x296)];_0x131aca++)for(let _0x3be568=_0x3f34ae[_0x5400d9(0x280)];_0x3be568<=_0x3f34ae[_0x5400d9(0x15f)];_0x3be568++){const _0x970438=_0xa9be59[_0x5400d9(0x27f)](_0x131aca,_0x3be568);if(_0x970438&&(_0x5b53ca(_0x970438['f'])||_0x3e9eba(_0x970438['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x2c9f2f(_0x41d342)),P(0x1,_0x526fee),P(0x2,_0x56b98d),P(0x3,_0x2c9f2f(_0x47ffcb)),P(0x4,_0x631d26),P(0x5,_0x1368e3),P(0x6,_0x2c9f2f(_0xefd7ba))],me);var bn=Object[_0x10cc18(0x1ea)],Nn=(_0x319729,_0x5f370c,_0x5c45fd,_0x2926dc)=>{const _0x4eaab6=_0x10cc18;for(var _0x15db89=_0x2926dc>0x1?void 0x0:_0x2926dc?bn(_0x5f370c,_0x5c45fd):_0x5f370c,_0x4ac0c5=_0x319729[_0x4eaab6(0xf9)]-0x1,_0x17ddaf;_0x4ac0c5>=0x0;_0x4ac0c5--)(_0x17ddaf=_0x319729[_0x4ac0c5])&&(_0x15db89=_0x17ddaf(_0x15db89)||_0x15db89);return _0x15db89;},Ue=(_0x73662f,_0x465a86)=>(_0x1d7436,_0x453bf6)=>_0x465a86(_0x1d7436,_0x453bf6,_0x73662f);let He=class extends _0x3e748e{constructor(_0x3aab84,_0x5cc44c,_0x4579e9){const _0x77a84d=_0x10cc18;super(),_(this,_0x77a84d(0x2f9),new Map()),_(this,_0x77a84d(0x113),new Map()),_(this,_0x77a84d(0x118),!0x1),(this[_0x77a84d(0x1ca)]=_0x3aab84,this[_0x77a84d(0x2ee)]=_0x5cc44c,this['_revisionService']=_0x4579e9);}[_0x10cc18(0x306)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2ef407=_0x10cc18;this[_0x2ef407(0x118)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x2aa743=_0x10cc18;this[_0x2aa743(0x227)]()[_0x2aa743(0x1af)](()=>super[_0x2aa743(0x233)]());}async[_0x10cc18(0x286)](_0x12a3db){const _0x59febf=_0x10cc18;return this[_0x59febf(0x118)]?null:this[_0x59febf(0x2ee)][_0x59febf(0x183)](_0x59f688(_0x12a3db));}async['saveOfflineData'](_0x10c72f,_0x26ed98){const _0x448d62=_0x10cc18;return!!this[_0x448d62(0x2ee)][_0x448d62(0x1a5)](_0x10c72f,_0x26ed98);}['updateOfflineData'](_0x5f7ebf,_0x38a9d8,_0x26dea1,_0x9fcaa0){const _0x3186d6=_0x10cc18,_0x2c4d2f=this[_0x3186d6(0x271)][_0x3186d6(0x125)](_0x5f7ebf);this[_0x3186d6(0x2f9)][_0x3186d6(0x239)](_0x5f7ebf,{'unitID':_0x5f7ebf,'type':_0x38a9d8,'awaitingChangeset':_0x26dea1,'mutations':_0x9fcaa0,'rev':_0x2c4d2f}),this['_saveTaskMap'][_0x3186d6(0x2bd)](_0x5f7ebf)||this['_scheduleSaving'](_0x5f7ebf);}[_0x10cc18(0x192)](_0x4d405a){const _0x1739ea=_0x10cc18,_0xaa4964=this['_getSaveTimeout']();_0xaa4964===0x0?this[_0x1739ea(0x2f0)](_0x4d405a):this[_0x1739ea(0x113)]['set'](_0x4d405a,setTimeout(()=>this[_0x1739ea(0x2f0)](_0x4d405a),_0xaa4964));}[_0x10cc18(0x135)](){const _0x40f0a2=_0x10cc18;var _0x3ea499;return(_0x3ea499=this[_0x40f0a2(0x1ca)][_0x40f0a2(0x253)](_0x24dd1f))!=null?_0x3ea499:_0x4a9fea;}[_0x10cc18(0x2f0)](_0x5829f3){const _0x5476f8=_0x10cc18,_0x551406=this[_0x5476f8(0x113)]['get'](_0x5829f3);return _0x551406!==void 0x0&&window['clearTimeout'](_0x551406),this[_0x5476f8(0x2ee)]['setItem'](_0x59f688(_0x5829f3),this[_0x5476f8(0x2f9)][_0x5476f8(0x127)](_0x5829f3))[_0x5476f8(0x1af)](()=>this[_0x5476f8(0x113)]['delete'](_0x5829f3));}async[_0x10cc18(0x227)](){const _0x54606a=_0x10cc18,_0x2c46d0=[];this[_0x54606a(0x113)][_0x54606a(0x12c)]((_0x5a8c95,_0x4d6886)=>{const _0x2f714e=_0x54606a;window[_0x2f714e(0x210)](_0x5a8c95),_0x2c46d0[_0x2f714e(0x1ed)](this[_0x2f714e(0x2f0)](_0x4d6886)['then'](()=>{const _0x419443=_0x2f714e;this['_saveTaskMap'][_0x419443(0x264)](_0x4d6886);}));}),await Promise['all'](_0x2c46d0);}};He=Nn([Ue(0x0,_0x56b98d),Ue(0x1,_0x2ba981),Ue(0x2,_0x2c9f2f(_0x6cec3d))],He);class Ln extends _0x460db8{constructor(){const _0x968c34=_0x10cc18;super(),_(this,_0x968c34(0x156)),this['urlChange$']=_0x5171f8(window,_0x968c34(0x178))[_0x968c34(0x297)](_0x55bd62(this[_0x968c34(0x20f)]),_0x1b1b8c(0x1),_0x5a5b3d(void 0x0));}['setParam'](_0xbb5dc2,_0x57483e,_0x7da0e4=!0x1){const _0x38b1d0=_0x10cc18,_0x2f8841=new URL(window[_0x38b1d0(0x22d)]['href']);_0x2f8841['searchParams'][_0x38b1d0(0x239)](_0xbb5dc2,_0x57483e),_0x7da0e4?window['history']['replaceState']('','',_0x2f8841['toString']()):window[_0x38b1d0(0x1fa)]['pushState']('','',_0x2f8841[_0x38b1d0(0x1cc)]());}['removeParam'](_0x2c0bb9,_0x1c06cc=!0x1){const _0x3e1cdc=_0x10cc18,_0x110853=new URL(window[_0x3e1cdc(0x22d)][_0x3e1cdc(0x1fb)]);_0x110853['searchParams'][_0x3e1cdc(0x264)](_0x2c0bb9),_0x1c06cc?window[_0x3e1cdc(0x1fa)][_0x3e1cdc(0x15e)]('','',_0x110853[_0x3e1cdc(0x1cc)]()):window[_0x3e1cdc(0x1fa)]['pushState']('','',_0x110853[_0x3e1cdc(0x1cc)]());}[_0x10cc18(0x19e)](_0x21d338){const _0x424f34=_0x10cc18;var _0x2b79eb;return(_0x2b79eb=new URL(window['location'][_0x424f34(0x1fb)])[_0x424f34(0x268)][_0x424f34(0x127)](_0x21d338))!=null?_0x2b79eb:void 0x0;}}var Un=Object[_0x10cc18(0x1e4)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x91efb5,_0x36a199,_0x58275f)=>_0x36a199 in _0x91efb5?Un(_0x91efb5,_0x36a199,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58275f}):_0x91efb5[_0x36a199]=_0x58275f,Pn=(_0x4cb136,_0x255336,_0x271932,_0x37d324)=>{const _0x2f0fe3=_0x10cc18;for(var _0x318a6a=_0x37d324>0x1?void 0x0:_0x37d324?Mn(_0x255336,_0x271932):_0x255336,_0x2be757=_0x4cb136[_0x2f0fe3(0xf9)]-0x1,_0x1d9d1d;_0x2be757>=0x0;_0x2be757--)(_0x1d9d1d=_0x4cb136[_0x2be757])&&(_0x318a6a=_0x1d9d1d(_0x318a6a)||_0x318a6a);return _0x318a6a;},Me=(_0x1bb5fe,_0x2b4022)=>(_0x37b692,_0x5db2ac)=>_0x2b4022(_0x37b692,_0x5db2ac,_0x1bb5fe),wn=(_0x1a0a10,_0x832b9d,_0x4495ca)=>An(_0x1a0a10,_0x832b9d+'',_0x4495ca);const yn=_0x10cc18(0x23c);let Ye=class extends _0x5ba41c{constructor(_0x4ff199=_t,_0x101755,_0x52d32c,_0x15e84e){const _0x9994fb=_0x10cc18;super(),this[_0x9994fb(0x32d)]=_0x4ff199,this[_0x9994fb(0x1f0)]=_0x101755,this[_0x9994fb(0xf0)]=_0x52d32c,this[_0x9994fb(0x1ca)]=_0x15e84e;const {..._0x3fd4c3}=_0x5c3498({},_t,this[_0x9994fb(0x32d)]);this[_0x9994fb(0x1ca)][_0x9994fb(0x304)](hn,_0x3fd4c3);}[_0x10cc18(0x170)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x10cc18(0x20d)](){const _0x5eacef=_0x10cc18;this[_0x5eacef(0x223)]();}['_registerDependencies'](){const _0x5c6086=_0x10cc18;var _0x1300f6;const _0x43486e=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2befe2,{'useClass':_0x21a377}],[_0x3a4f5a,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x5c6086(0x32d)][_0x5c6086(0xec)]&&_0x43486e[_0x5c6086(0x1ed)]([le]),_0x4b4f71(this[_0x5c6086(0xf0)],_0x436173(_0x43486e,(_0x1300f6=this[_0x5c6086(0x32d)])==null?void 0x0:_0x1300f6[_0x5c6086(0x15d)]));}[_0x10cc18(0x223)](){const _0x143203=_0x10cc18;this[_0x143203(0x1bc)](this[_0x143203(0x1f0)]['registerRenderModule'](_0x5045e8[_0x143203(0x238)],[Fe])),this[_0x143203(0x1bc)](this['_renderManagerService'][_0x143203(0x282)](_0x5045e8[_0x143203(0x1f7)],[ke]));}[_0x10cc18(0x2d5)](){const _0x20bf6c=_0x10cc18;_0x569f6e(this['_injector'],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x20bf6c(0x32d)][_0x20bf6c(0xec)]&&_0x569f6e(this[_0x20bf6c(0xf0)],[[le]]);}};wn(Ye,_0x10cc18(0x27d),yn),Ye=Pn([_0x5aa65c(_0x4c184a),Me(0x1,_0x20cff4),Me(0x2,_0x2c9f2f(_0x3955fb)),Me(0x3,_0x56b98d)],Ye);var $n=Object[_0x10cc18(0x1ea)],xn=(_0x2cda49,_0x2a7bb9,_0x264cab,_0x353d96)=>{for(var _0x199d1b=_0x353d96>0x1?void 0x0:_0x353d96?$n(_0x2a7bb9,_0x264cab):_0x2a7bb9,_0x2a9cc7=_0x2cda49['length']-0x1,_0x547287;_0x2a9cc7>=0x0;_0x2a9cc7--)(_0x547287=_0x2cda49[_0x2a9cc7])&&(_0x199d1b=_0x547287(_0x199d1b)||_0x199d1b);return _0x199d1b;},J=(_0x37f494,_0x345cb0)=>(_0x2302d9,_0x1a8027)=>_0x345cb0(_0x2302d9,_0x1a8027,_0x37f494);let ut=class extends _0x4e6c96{constructor(_0x51a5ff,_0x357894,_0x58dd81,_0xc7c605,_0x16f00e){super(_0x51a5ff,_0x357894,_0x58dd81,_0xc7c605,_0x16f00e);}async['createSocket'](_0x114931){const _0xff6cf4=_0x10cc18,_0x53ad48=await this[_0xff6cf4(0x1a7)](),_0x50eb7d=this[_0xff6cf4(0x111)](_0x114931,_0x53ad48);return this['_doCreateSocket'](_0x50eb7d);}[_0x10cc18(0x111)](_0x38f540,_0x398c04){const _0x62bedd=_0x10cc18,_0x1857a4=typeof window>'u'?new URL(_0x38f540):new URL(_0x38f540,window[_0x62bedd(0x22d)][_0x62bedd(0x169)]);_0x1857a4['searchParams'][_0x62bedd(0x239)](_0x62bedd(0x2a4),_0x398c04);const _0x187d87=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x62bedd(0x22d)]['search']);return _0x187d87[_0x62bedd(0x127)]('runId')&&_0x1857a4[_0x62bedd(0x268)][_0x62bedd(0x239)](_0x62bedd(0x313),_0x187d87[_0x62bedd(0x127)](_0x62bedd(0x313))),_0x1857a4[_0x62bedd(0x1cc)]();}async[_0x10cc18(0x1a7)](){const _0x2eddaa=_0x10cc18;var _0xaacdb,_0x9d68d9,_0x3d4511;const _0x199628=this[_0x2eddaa(0x1ca)]['getConfig'](_0x209e63),_0x2b7053=(_0xaacdb=_0x199628==null?void 0x0:_0x199628['wsSessionTicketUrl'])!=null?_0xaacdb:_0x45c098;return(_0x3d4511=(_0x9d68d9=(await this[_0x2eddaa(0x276)]['get'](_0x2b7053,{'headers':{'Content-Type':_0x2eddaa(0x162)}}))[_0x2eddaa(0x218)])==null?void 0x0:_0x9d68d9[_0x2eddaa(0x24a)])!=null?_0x3d4511:'';}};ut=xn([J(0x0,_0x2c9f2f(_0x3955fb)),J(0x1,_0x2c9f2f(_0x47ffcb)),J(0x2,_0x56b98d),J(0x3,_0x1368e3),J(0x4,_0x4a0d66)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x3af744,_0x2d80a9,_0x2f82ce,_0x56e808)=>{for(var _0x3b51bf=_0x56e808>0x1?void 0x0:_0x56e808?Bn(_0x2d80a9,_0x2f82ce):_0x2d80a9,_0x56b40c=_0x3af744['length']-0x1,_0x20fa39;_0x56b40c>=0x0;_0x56b40c--)(_0x20fa39=_0x3af744[_0x56b40c])&&(_0x3b51bf=_0x20fa39(_0x3b51bf)||_0x3b51bf);return _0x3b51bf;},Ae=(_0x4ef56f,_0x33b4c1)=>(_0x1ce0eb,_0x29052b)=>_0x33b4c1(_0x1ce0eb,_0x29052b,_0x4ef56f);let dt=class extends _0x3e748e{constructor(_0x1f5809,_0x26244d,_0xef789e){const _0x3ee5ff=_0x10cc18;super(),this[_0x3ee5ff(0x19c)]=_0x1f5809,this[_0x3ee5ff(0x276)]=_0x26244d,this[_0x3ee5ff(0x1ca)]=_0xef789e;}async[_0x10cc18(0x273)](_0x5a2c86,_0x2b267c,_0x46e808,..._0x18d2ce){const _0x313f05=_0x10cc18;var _0x468ed3,_0x579cd8,_0x2d6080,_0x2f834a;const _0x2db994=this[_0x313f05(0x19c)][_0x313f05(0x167)]();if(!_0x2db994)throw new Error(_0x313f05(0x245));const _0x81eb29=((_0x468ed3=this['_configService'][_0x313f05(0x253)](_0x2d33ca))!=null?_0x468ed3:_0x550c3a)+'/'+_0x5a2c86+_0x313f05(0x2ac)+_0x2b267c,_0x543ad3=new URL(window[_0x313f05(0x22d)][_0x313f05(0x1fb)]),_0x8a8c19={'scriptId':_0x5a2c86,'runId':(_0x579cd8=_0x543ad3[_0x313f05(0x268)][_0x313f05(0x127)](_0x313f05(0x313)))!=null?_0x579cd8:'','function':_0x2b267c,'unitId':_0x2db994[_0x313f05(0x25a)](),'argsOfFunction':JSON[_0x313f05(0x16f)](_0x18d2ce),'invokeId':(_0x2d6080=_0x46e808[_0x313f05(0x165)])!=null?_0x2d6080:'','executionId':(_0x2f834a=_0x46e808[_0x313f05(0x28f)])!=null?_0x2f834a:''};try{const _0x21fdb2=await this['_httpService'][_0x313f05(0x1e3)](_0x81eb29,{'body':_0x8a8c19});return _0x21fdb2[_0x313f05(0x218)][_0x313f05(0x1ac)]&&_0x21fdb2['body'][_0x313f05(0x1ac)][_0x313f05(0x23f)]!==Z['OK']?_0x313f05(0x180):_0x21fdb2['body'][_0x313f05(0x1f1)];}catch{return _0x313f05(0x180);}}};dt=Fn([Ae(0x0,_0x631d26),Ae(0x1,_0x2c9f2f(_0x47ffcb)),Ae(0x2,_0x56b98d)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x3e748e{constructor(){const _0x22a3f0=_0x10cc18;super(),_(this,_0x22a3f0(0x193),_0x5236ab()),_(this,_0x22a3f0(0x182),new Set()),_(this,_0x22a3f0(0x1f9),new Map()),_(this,_0x22a3f0(0x20a),null),_(this,_0x22a3f0(0x140),new Map()),_(this,_0x22a3f0(0x1c8),new Map()),this[_0x22a3f0(0x25e)]();}[_0x10cc18(0x233)](){const _0x379395=_0x10cc18;super[_0x379395(0x233)](),this['_clearOtherTimers'][_0x379395(0x12c)]((_0x24c887,_0x5d6e06)=>this[_0x379395(0x116)](_0x5d6e06)),this['_heartbeatTimer']&&window[_0x379395(0x1ad)](this[_0x379395(0x20a)]);}[_0x10cc18(0x295)](_0x234293){const _0x57ea34=_0x10cc18;return this['_ensureSubject'](_0x234293)[_0x57ea34(0x297)](_0x34b2d2());}[_0x10cc18(0xe6)](_0x36c3e2){const _0x543cf3=_0x10cc18;this[_0x543cf3(0x182)][_0x543cf3(0x20b)]===0x0&&this[_0x543cf3(0xef)](),this[_0x543cf3(0x182)][_0x543cf3(0xff)](_0x36c3e2),this[_0x543cf3(0x31b)]({'type':0x0,'memberID':this[_0x543cf3(0x193)],'unitIDs':[_0x36c3e2],'isForwarded':!0x1});}[_0x10cc18(0x2be)](_0x4dd8e7){const _0x143b7b=_0x10cc18;this[_0x143b7b(0x182)][_0x143b7b(0x264)](_0x4dd8e7),this['_selfUnitIDs'][_0x143b7b(0x20b)]===0x0&&this[_0x143b7b(0x20a)]&&window[_0x143b7b(0x1ad)](this[_0x143b7b(0x20a)]);}['_init'](){const _0x11f171=_0x10cc18;this[_0x11f171(0x1bc)](_0x555679(_0x5171f8(window,_0x11f171(0x161))[_0x11f171(0x288)](_0x25825a=>{const _0x3daa5a=_0x11f171;if(_0x25825a[_0x3daa5a(0x26c)]!==mt||!_0x25825a[_0x3daa5a(0x2d0)])return;const _0x531686=JSON[_0x3daa5a(0x2f1)](_0x25825a[_0x3daa5a(0x2d0)]);this[_0x3daa5a(0x2d2)](_0x531686);}))),window['addEventListener']('unload',()=>this[_0x11f171(0x31b)]({'type':0x1,'memberID':this[_0x11f171(0x193)],'unitIDs':Array[_0x11f171(0x2ef)](this[_0x11f171(0x182)])}));}[_0x10cc18(0x2d2)](_0x441807){const _0x2789bb=_0x10cc18;switch(_0x441807['type']){case 0x0:this['_handleJoinEvent'](_0x441807);break;case 0x1:this['_handleLeaveEvent'](_0x441807);break;case 0x2:this[_0x2789bb(0x18b)](_0x441807);break;}}[_0x10cc18(0x32f)](_0xa26ff4){const {unitIDs:_0x2f5912,memberID:_0x17e488,isForwarded:_0x5e820f}=_0xa26ff4;_0x2f5912['forEach'](_0x3a5e9e=>{const _0x52d019=_0x58c2;if(!_0x5e820f&&this[_0x52d019(0x1f9)][_0x52d019(0x2bd)](_0x3a5e9e)&&this['_ensureSubject'](_0x3a5e9e)[_0x52d019(0x1e1)](_0x4078f0[_0x52d019(0x26b)]),!this[_0x52d019(0x1f9)]['has'](_0x3a5e9e)||!this[_0x52d019(0x1f9)]['get'](_0x3a5e9e)[_0x52d019(0x2bd)](_0x17e488)){const _0xa7913d=this[_0x52d019(0x1f9)][_0x52d019(0x127)](_0x3a5e9e)||new Set();_0xa7913d['add'](_0x17e488),this[_0x52d019(0x1f9)][_0x52d019(0x239)](_0x3a5e9e,_0xa7913d),this[_0x52d019(0x21b)](_0x17e488);}}),_0x5e820f||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x10cc18(0x21b)](_0x33cb75){const _0x15136a=_0x10cc18;this[_0x15136a(0x116)](_0x33cb75);const _0x4737d9=window[_0x15136a(0x26f)](()=>{this['_unitOnClients']['forEach'](_0x4864ff=>{const _0x5a0c73=_0x58c2;_0x4864ff[_0x5a0c73(0x264)](_0x33cb75);});},St*0x2);this[_0x15136a(0x140)]['set'](_0x33cb75,_0x4737d9);}[_0x10cc18(0x116)](_0x252d8d){const _0x2dacad=_0x10cc18;if(this[_0x2dacad(0x140)][_0x2dacad(0x2bd)](_0x252d8d)){const _0x406672=this[_0x2dacad(0x140)][_0x2dacad(0x127)](_0x252d8d);_0x406672&&window[_0x2dacad(0x210)](_0x406672),this[_0x2dacad(0x140)][_0x2dacad(0x239)](_0x252d8d,null);}}[_0x10cc18(0x2e4)](_0x40e046){const _0x154c8f=_0x10cc18,{memberID:_0x3e7fa7,unitIDs:_0x4ac60b}=_0x40e046;_0x4ac60b[_0x154c8f(0x12c)](_0x5984ee=>{const _0x4ac451=_0x154c8f;var _0x1c66e0;const _0x502ec6=this[_0x4ac451(0x1f9)][_0x4ac451(0x127)](_0x5984ee);_0x502ec6&&(_0x502ec6[_0x4ac451(0x264)](_0x3e7fa7),(_0x1c66e0=this[_0x4ac451(0x197)](_0x5984ee))==null||_0x1c66e0[_0x4ac451(0x1e1)](_0x502ec6[_0x4ac451(0x20b)]===0x0?_0x4078f0[_0x4ac451(0x143)]:_0x4078f0[_0x4ac451(0x26b)]));}),this['_removeClearOtherTimer'](_0x3e7fa7);}['_handleHeartbeatEvent'](_0x31b9ea){const _0x3d5b5d=_0x10cc18;this[_0x3d5b5d(0x21b)](_0x31b9ea[_0x3d5b5d(0x2e2)]);}[_0x10cc18(0x31b)](_0x5167f7){const _0x44c52d=_0x10cc18;localStorage['setItem'](mt,JSON[_0x44c52d(0x16f)](_0x5167f7));}[_0x10cc18(0xef)](){const _0xb654e6=_0x10cc18;this[_0xb654e6(0x20a)]=window[_0xb654e6(0x2ff)](()=>{const _0x52e312=_0xb654e6;this[_0x52e312(0x31b)]({'type':0x2,'memberID':this['_id']});},St);}[_0x10cc18(0x197)](_0x2c9fdb){const _0x4c26e8=_0x10cc18;return this[_0x4c26e8(0x1c8)][_0x4c26e8(0x2bd)](_0x2c9fdb)||this[_0x4c26e8(0x1c8)]['set'](_0x2c9fdb,new _0x1ced39(_0x4078f0[_0x4c26e8(0x143)])),this['_unitStatus'][_0x4c26e8(0x127)](_0x2c9fdb);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x331486=_0x512f;(function(_0x1679de,_0x38e1da){const _0x32c275=_0x512f,_0x41f668=_0x1679de();while(!![]){try{const _0xdd3bcc=parseInt(_0x32c275(0x151))/0x1*(parseInt(_0x32c275(0x97))/0x2)+parseInt(_0x32c275(0x21a))/0x3+parseInt(_0x32c275(0x226))/0x4*(parseInt(_0x32c275(0x258))/0x5)+parseInt(_0x32c275(0x1a7))/0x6+-parseInt(_0x32c275(0x1d6))/0x7*(-parseInt(_0x32c275(0x1c6))/0x8)+-parseInt(_0x32c275(0x1a8))/0x9+-parseInt(_0x32c275(0x1b3))/0xa;if(_0xdd3bcc===_0x38e1da)break;else _0x41f668['push'](_0x41f668['shift']());}catch(_0x1dddc3){_0x41f668['push'](_0x41f668['shift']());}}}(_0x5658,0x455ff));var Yt=Object[_0x331486(0x10c)],Wt=(_0x2c3d55,_0x4066e3,_0x16202c)=>_0x4066e3 in _0x2c3d55?Yt(_0x2c3d55,_0x4066e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16202c}):_0x2c3d55[_0x4066e3]=_0x16202c,_=(_0x275655,_0x3920ff,_0x20ed2f)=>Wt(_0x275655,typeof _0x3920ff!='symbol'?_0x3920ff+'':_0x3920ff,_0x20ed2f);import{jsx as _0x5d25a9,jsxs as _0x88859b}from'react/jsx-runtime';import{CollaborationStatus as _0x1917c2,CollaborationSessionService as _0x46dc37,CollaborationController as _0x24f9da,DataLoaderService as _0x413219,MemberService as _0x5bfe2e,SessionStatus as _0x267c32,ILocalCacheService as _0x24b451,CollaborationUIEventService as _0x1939b6,CollaborationUIEventId as _0x282a4d,DocCollaborationEntity as _0x1fd1f0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x317300,getLocalCacheKey as _0x4579ea,LOCAL_CACHE_INTERVAL as _0x3e4b99,LOCAL_CACHE_INTERVAL_KEY as _0x17b7f2,UniverCollaborationClientPlugin as _0x545449,CollaborationSocketService as _0x1af29f,DEFAULT_WS_SESSION_TICKET_URL as _0x87d114,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x10f6ab,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4d4beb,UnitStatus as _0x3fa58f}from'@univerjs-pro/collaboration-client';function _0x512f(_0x5545e5,_0x24944d){const _0x5658b0=_0x5658();return _0x512f=function(_0x512ffe,_0x66d224){_0x512ffe=_0x512ffe-0x88;let _0x38c066=_0x5658b0[_0x512ffe];return _0x38c066;},_0x512f(_0x5545e5,_0x24944d);}import{LocaleService as _0x4b3f44,IUniverInstanceService as _0x34a5b3,Inject as _0x384b36,Injector as _0x2975ff,Disposable as _0x4064cc,createIdentifier as _0x201af0,ILogService as _0x1f29f4,ICommandService as _0xd74a37,Optional as _0x36f410,RxDisposable as _0x57605c,Workbook as _0x2745c9,DOC_RANGE_TYPE as _0x80033e,debounce as _0x3554ba,Rectangle as _0x16bdf7,DisposableCollection as _0x112c0e,toDisposable as _0x385cfe,UniverInstanceType as _0x4e690a,generateRandomId as _0x460716,COLORS as _0x572559,ColorKit as _0x3e6889,ThemeService as _0x4502e6,fromEventSubject as _0x13584e,Tools as _0x24ffc8,CommandType as _0x224740,IConfigService as _0x5f43ff,CanceledError as _0x2e132b,isFormulaString as _0x365838,isFormulaId as _0x31b7fb,ILocalStorageService as _0x25196f,DependentOn as _0x145aff,Plugin as _0x1d5629,merge as _0x1e7bf4,registerDependencies as _0x5c8afa,mergeOverrideWithDependencies as _0xf081e9,touchDependencies as _0x485043}from'@univerjs/core';import{useObservable as _0x45cd22,useDependency as _0x3e9eed,IUIPartsService as _0x559491,BuiltInUIPart as _0x17e272,connectInjector as _0x5a631e,IBeforeCloseService as _0x113bc4,IMessageService as _0xc89ae7,INotificationService as _0x10311c}from'@univerjs/ui';import{BehaviorSubject as _0x5adb5d,switchMap as _0x4ce806,of as _0x218df2,takeUntil as _0x136c33,debounceTime as _0x61f829,Subject as _0x49c822,filter as _0x5ad315,merge as _0x5486e4,combineLatest as _0x48dc8f,fromEvent as _0x1059cc,shareReplay as _0x266c9a,mapTo as _0x569761,distinctUntilChanged as _0x46c569}from'rxjs';import{Tooltip as _0x4d8ab2,clsx as _0x263bd8,MessageType as _0x27e95d}from'@univerjs/design';import{useRef as _0x6b64d9,createElement as _0x559a33,forwardRef as _0x1e262a,useCallback as _0xf2d695}from'react';import{IRemoteInstanceService as _0x9b3096}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x565bcb,RefRangeService as _0x59856c,SetSelectionsOperation as _0x4a1b82,SheetsSelectionsService as _0x318b21,EffectRefRangId as _0x5ab1aa,handleIRemoveRow as _0x2d3dff,handleIRemoveCol as _0x50a710,handleMoveRange as _0x240f5e,handleInsertRow as _0x14d58d,handleInsertRangeMoveRight as _0x2ba715,handleInsertRangeMoveDown as _0x4d752e,handleInsertCol as _0x5dd904,handleDeleteRangeMoveUp as _0x11ddcb,handleDeleteRangeMoveLeft as _0x31ca5c,runRefRangeMutations as _0x34ca57}from'@univerjs/sheets';import{Shape as _0x16364b,Rect as _0x38eea8,getColor as _0x57c8a3,RegularPolygon as _0x45a19c,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x30decc,Vector2 as _0x321485,SHEET_VIEWPORT_KEY as _0x1253b5,IRenderManagerService as _0x450a3a}from'@univerjs/engine-render';import{HTTPService as _0x3fa719,ISocketService as _0x48e0d4,WebSocketService as _0x5d29c5}from'@univerjs/network';import{IDocClipboardService as _0x54ca08,NodePositionConvertToCursor as _0x3ad41d,NodePositionConvertToRectRange as _0x545a0f,TEXT_RANGE_LAYER_INDEX as _0x53e827,SetDocZoomRatioOperation as _0x56b6e8,DocIMEInputManagerService as _0x4518ea,DocStateChangeManagerService as _0x31ecfe}from'@univerjs/docs-ui';import{IImageIoService as _0x331a67}from'@univerjs/drawing';import{ITransformService as _0x2843ad,CollaborationEvent as _0x2fc4d1,isTransformMutationFailure as _0x3d60d7,isTransformMutationsWithChangesetSuccess as _0xa9160d,RevisionService as _0x21d43a,ISnapshotServerService as _0x5eb23d}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x577316,RichTextEditingMutation as _0x206466,DocSelectionManagerService as _0x1bc8e5,DocSkeletonManagerService as _0x120002}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x51524b,serializeRangeWithSheet as _0x495e5f,FormulaExecuteStageType as _0x238a49,FormulaExecutedStateType as _0x144892,SetFormulaCalculationStartMutation as _0x96febf,SetFormulaCalculationNotificationMutation as _0x2312b3}from'@univerjs/engine-formula';import{map as _0x442185,filter as _0x28f0a4,throttleTime as _0x767ecc,takeUntil as _0x4acc07,switchMap as _0x120aca}from'rxjs/operators';import{SheetSkeletonManagerService as _0x362389,getCoordByCell as _0x50883c,getSheetObject as _0x128286}from'@univerjs/sheets-ui';function Ge({ref:_0x424f4e,..._0x34153a}){const _0x4b4853=_0x331486,{icon:_0x3bf4fc,id:_0x1f50b2,className:_0x193c0f,extend:_0x4a61af,..._0x36aa28}=_0x34153a,_0x347457=(_0x4b4853(0x18f)+_0x1f50b2+'\x20'+(_0x193c0f||''))[_0x4b4853(0x1b4)](),_0x5e2479=_0x6b64d9('_'+Ei());return At(_0x3bf4fc,''+_0x1f50b2,{'defIds':_0x3bf4fc[_0x4b4853(0x1bd)],'idSuffix':_0x5e2479[_0x4b4853(0xad)]},{'ref':_0x424f4e,'className':_0x347457,..._0x36aa28},_0x4a61af);}function At(_0x3347af,_0x3dc93b,_0x2b6a30,_0x789c69,_0x302039){const _0x3e49d6=_0x331486;return _0x559a33(_0x3347af[_0x3e49d6(0xc4)],{'key':_0x3dc93b,...gi(_0x3347af,_0x2b6a30,_0x302039),..._0x789c69},(vi(_0x3347af,_0x2b6a30)[_0x3e49d6(0x13d)]||[])[_0x3e49d6(0x2b6)]((_0x5e2d84,_0x4b7d76)=>At(_0x5e2d84,_0x3dc93b+'-'+_0x3347af[_0x3e49d6(0xc4)]+'-'+_0x4b7d76,_0x2b6a30,void 0x0,_0x302039)));}function gi(_0x3a4286,_0x353e93,_0x2f69bd){const _0x46ab78=_0x331486,_0x578d6b={..._0x3a4286[_0x46ab78(0x146)]};_0x2f69bd!=null&&_0x2f69bd['colorChannel1']&&_0x578d6b[_0x46ab78(0x2d9)]==='colorChannel1'&&(_0x578d6b[_0x46ab78(0x2d9)]=_0x2f69bd[_0x46ab78(0x212)]),_0x3a4286[_0x46ab78(0xc4)]===_0x46ab78(0x277)&&_0x578d6b['id']&&(_0x578d6b['id']=_0x578d6b['id']+_0x353e93[_0x46ab78(0x213)]),Object[_0x46ab78(0x25d)](_0x578d6b)[_0x46ab78(0x210)](([_0x18218e,_0x120626])=>{const _0x287128=_0x46ab78;_0x18218e===_0x287128(0x277)&&typeof _0x120626==_0x287128(0x1c1)&&(_0x578d6b[_0x18218e]=_0x120626['replace'](/url\(#(.*)\)/,_0x287128(0x17c)+_0x353e93[_0x287128(0x213)]+')'));});const {defIds:_0x381e60}=_0x353e93;return!_0x381e60||_0x381e60['length']===0x0||(_0x3a4286[_0x46ab78(0xc4)]===_0x46ab78(0xe1)&&_0x578d6b[_0x46ab78(0x23c)]&&(_0x578d6b[_0x46ab78(0x23c)]=_0x578d6b[_0x46ab78(0x23c)]+_0x353e93[_0x46ab78(0x213)]),Object[_0x46ab78(0x25d)](_0x578d6b)[_0x46ab78(0x210)](([_0x4f35b0,_0xa47daf])=>{const _0x566723=_0x46ab78;typeof _0xa47daf==_0x566723(0x1c1)&&(_0x578d6b[_0x4f35b0]=_0xa47daf['replace'](/url\(#(.*)\)/,_0x566723(0x17c)+_0x353e93[_0x566723(0x213)]+')'));})),_0x578d6b;}function vi(_0x1c5623,_0x58d8a6){const _0x314842=_0x331486;var _0x5da6c0;const {defIds:_0x1cb543}=_0x58d8a6;return!_0x1cb543||_0x1cb543[_0x314842(0xea)]===0x0?_0x1c5623:_0x1c5623[_0x314842(0xc4)]===_0x314842(0x9e)&&((_0x5da6c0=_0x1c5623[_0x314842(0x13d)])!=null&&_0x5da6c0[_0x314842(0xea)])?{..._0x1c5623,'children':_0x1c5623[_0x314842(0x13d)]['map'](_0x515c33=>typeof _0x515c33[_0x314842(0x146)]['id']=='string'&&_0x1cb543&&_0x1cb543['includes'](_0x515c33[_0x314842(0x146)]['id'])?{..._0x515c33,'attrs':{..._0x515c33['attrs'],'id':_0x515c33[_0x314842(0x146)]['id']+_0x58d8a6['idSuffix']}}:_0x515c33)}:_0x1c5623;}function Ei(){const _0x18fede=_0x331486;return Math[_0x18fede(0x17f)]()[_0x18fede(0x130)](0x24)[_0x18fede(0x161)](0x2,0x8);}Ge[_0x331486(0x13a)]=_0x331486(0x22a);const pi={'tag':'svg','attrs':{'xmlns':_0x331486(0x23a),'fill':_0x331486(0x14a),'viewBox':_0x331486(0xe5),'width':'1em','height':_0x331486(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x331486(0xb2)},'children':[{'tag':_0x331486(0xee),'attrs':{'stroke':'currentColor','d':_0x331486(0x2c9),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x331486(0x9e),'attrs':{},'children':[{'tag':_0x331486(0xf2),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x331486(0xee),'attrs':{'fill':_0x331486(0xca),'d':_0x331486(0x1f8)}}]}]}],'defIds':[_0x331486(0x23f)]},Pt=_0x1e262a(function(_0x4bb0a1,_0x36ee4f){return _0x559a33(Ge,Object['assign']({},_0x4bb0a1,{'id':'off-line-icon','ref':_0x36ee4f,'icon':pi}));});Pt[_0x331486(0x13a)]='OffLineIcon';const Oi={'tag':_0x331486(0x1b6),'attrs':{'xmlns':_0x331486(0x23a),'fill':_0x331486(0x14a),'viewBox':_0x331486(0x228),'width':_0x331486(0x25e),'height':_0x331486(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x331486(0x192)},'children':[{'tag':'path','attrs':{'stroke':_0x331486(0x1c7),'d':_0x331486(0x1fc),'strokeLinecap':_0x331486(0x20b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x331486(0xf2),'attrs':{'id':_0x331486(0x1c9)},'children':[{'tag':_0x331486(0xee),'attrs':{'fill':'white','d':_0x331486(0x1f8),'transform':_0x331486(0x21c)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x1e262a(function(_0x5a2320,_0x2818bc){const _0x426e41=_0x331486;return _0x559a33(Ge,Object[_0x426e41(0x141)]({},_0x5a2320,{'id':_0x426e41(0xe2),'ref':_0x2818bc,'icon':Oi}));});wt[_0x331486(0x13a)]=_0x331486(0x90);function Ti(_0x1834af){const _0x34e413=_0x331486;switch(_0x1834af){case _0x1917c2[_0x34e413(0x285)]:return _0x34e413(0x282);case _0x1917c2[_0x34e413(0x28a)]:return _0x34e413(0x224);case _0x1917c2[_0x34e413(0x29a)]:return'collabStatus.fetchMiss';case _0x1917c2[_0x34e413(0x1e9)]:return _0x34e413(0x2a7);case _0x1917c2[_0x34e413(0x1de)]:case _0x1917c2[_0x34e413(0xac)]:return'collabStatus.syncing';case _0x1917c2['SYNCED']:case _0x1917c2[_0x34e413(0x296)]:return _0x34e413(0x20d);}}function Ci(_0x4c78dd){const _0x30162b=_0x331486,{status$:_0x218754}=_0x4c78dd,_0x3b24d5=_0x45cd22(_0x218754,_0x1917c2[_0x30162b(0x1e9)]),_0x363bff=_0x3e9eed(_0x4b3f44),_0x57a3e9=_0x3e9eed(_0x46dc37),_0x2c8dc5=_0x3b24d5!==_0x1917c2[_0x30162b(0x285)],_0x3e98bc=_0x363bff['t'](Ti(_0x3b24d5)),_0x587ee4=_0x2c8dc5?_0x5d25a9(wt,{}):_0x5d25a9(Pt,{}),_0x1a9f4f=_0xf2d695(()=>{_0x2c8dc5||_0x57a3e9['reconnect']();},[_0x2c8dc5,_0x57a3e9]);function _0x22ed15(){const _0x35e691=_0x30162b;return _0x88859b(_0x35e691(0x257),{'className':_0x35e691(0xf6),'onClick':_0x1a9f4f,'children':[_0x5d25a9(_0x35e691(0x257),{'className':_0x263bd8('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2c8dc5,'univer-text-red-500':!_0x2c8dc5}),'children':_0x587ee4}),_0x5d25a9(_0x35e691(0x257),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3e98bc})]});}return _0x2c8dc5?_0x22ed15():_0x5d25a9(_0x4d8ab2,{'title':_0x363bff['t']('collab-client.tooltip.reconnect'),'children':_0x22ed15()});}var Ri=Object[_0x331486(0x1ca)],Di=(_0x238ad1,_0x2d52b7,_0x35d1d6,_0x267e53)=>{const _0x2c2a0f=_0x331486;for(var _0x538944=_0x267e53>0x1?void 0x0:_0x267e53?Ri(_0x2d52b7,_0x35d1d6):_0x2d52b7,_0x215680=_0x238ad1[_0x2c2a0f(0xea)]-0x1,_0xdd238e;_0x215680>=0x0;_0x215680--)(_0xdd238e=_0x238ad1[_0x215680])&&(_0x538944=_0xdd238e(_0x538944)||_0x538944);return _0x538944;},se=(_0xa6fbd,_0x96cbb2)=>(_0x12a7cb,_0x5436ba)=>_0x96cbb2(_0x12a7cb,_0x5436ba,_0xa6fbd);let ae=class extends _0x4064cc{constructor(_0x27cf5c,_0x2eec9a,_0x2642ae,_0x29ee83){const _0x16063c=_0x331486;super(),_(this,_0x16063c(0xeb),new _0x5adb5d(_0x1917c2[_0x16063c(0x1e9)])),(this[_0x16063c(0xed)]=_0x27cf5c,this[_0x16063c(0x1fb)]=_0x2eec9a,this[_0x16063c(0x233)]=_0x2642ae,this[_0x16063c(0x175)]=_0x29ee83,this[_0x16063c(0xae)](),this[_0x16063c(0x22d)]());}[_0x331486(0x22d)](){const _0x281483=_0x331486;this[_0x281483(0xf5)](this[_0x281483(0xed)][_0x281483(0x20f)][_0x281483(0x181)](_0x4ce806(()=>{const _0x5b7b18=_0x281483,_0x1eba79=this[_0x5b7b18(0xed)]['getFocusedUnit']();return _0x1eba79?this[_0x5b7b18(0x233)][_0x5b7b18(0x112)](_0x1eba79['getUnitId']()):_0x218df2(null);}),_0x4ce806(_0x1ada31=>_0x1ada31?_0x1ada31[_0x281483(0x1b9)]:_0x218df2(_0x1917c2['NOT_COLLAB'])))[_0x281483(0x1e8)](_0x31ea82=>{const _0x36667a=_0x281483;this[_0x36667a(0xeb)]['next'](_0x31ea82);}));}['_initStatusComponent'](){const _0xfbcfe9=_0x331486;this[_0xfbcfe9(0xf5)](this[_0xfbcfe9(0x175)][_0xfbcfe9(0xa9)](_0x17e272[_0xfbcfe9(0x10f)],()=>_0x5a631e(bi({'status$':this['_status$']['asObservable']()}),this[_0xfbcfe9(0x1fb)])));}};ae=Di([se(0x0,_0x34a5b3),se(0x1,_0x384b36(_0x2975ff)),se(0x2,_0x384b36(_0x24f9da)),se(0x3,_0x559491)],ae);function bi(_0x16d255){const {status$:_0x1e6311}=_0x16d255;return function(){return _0x5d25a9(Ci,{'status$':_0x1e6311});};}const yt=_0x201af0('uni.network.url-service');var Ni=Object[_0x331486(0x1ca)],Li=(_0x47e3f6,_0x40e517,_0x4c88bb,_0x4ce20e)=>{const _0x4322f0=_0x331486;for(var _0x1feb6f=_0x4ce20e>0x1?void 0x0:_0x4ce20e?Ni(_0x40e517,_0x4c88bb):_0x40e517,_0x51a975=_0x47e3f6[_0x4322f0(0xea)]-0x1,_0x1c4dfe;_0x51a975>=0x0;_0x51a975--)(_0x1c4dfe=_0x47e3f6[_0x51a975])&&(_0x1feb6f=_0x1c4dfe(_0x1feb6f)||_0x1feb6f);return _0x1feb6f;},K=(_0x38b928,_0x45772b)=>(_0x108bbb,_0x1fcb9b)=>_0x45772b(_0x108bbb,_0x1fcb9b,_0x38b928);let ce=class extends _0x57605c{constructor(_0x1d6e59,_0x58eb4f,_0x5b8146,_0x3d69e7,_0x1bca4a){const _0x4b2e65=_0x331486;super(),this['_urlService']=_0x1d6e59,this[_0x4b2e65(0xb6)]=_0x58eb4f,this[_0x4b2e65(0x124)]=_0x5b8146,this['_dataLoaderService']=_0x3d69e7,_0x1bca4a?_0x1bca4a==null||_0x1bca4a[_0x4b2e65(0x207)]()['then'](()=>this[_0x4b2e65(0x119)]()):(this[_0x4b2e65(0xb6)][_0x4b2e65(0x1f9)]('[CollaborationDataLoaderController]',_0x4b2e65(0x26a)),this[_0x4b2e65(0x119)]());}async['_init'](){const _0x1d69a2=_0x331486,_0xca79ab=this[_0x1d69a2(0x231)][_0x1d69a2(0xdd)]('unit'),_0x471d71=this[_0x1d69a2(0x231)][_0x1d69a2(0xdd)](_0x1d69a2(0x1d3)),_0x150b27=this[_0x1d69a2(0x231)]['getParam'](_0x1d69a2(0x1df));if(!_0xca79ab||!_0x471d71){this[_0x1d69a2(0xb6)][_0x1d69a2(0x1f9)]('[CollaborationDataLoaderController]',_0x1d69a2(0x28c));return;}const _0x4eac15=await this[_0x1d69a2(0x159)][_0x1d69a2(0x23e)](_0xca79ab,Number(_0x471d71),_0x150b27);_0x4eac15&&_0x4eac15 instanceof _0x2745c9&&this['_setupSubUnitSync'](_0x4eac15);}async[_0x331486(0x139)](_0x38a98e){const _0x156950=_0x331486;await this[_0x156950(0x167)](_0x38a98e),_0x38a98e[_0x156950(0x26b)][_0x156950(0x181)](_0x136c33(this[_0x156950(0x134)]))[_0x156950(0x1e8)](_0x5b6ac7=>{const _0x5a8cc5=_0x156950;_0x5b6ac7&&this[_0x5a8cc5(0x2c8)](_0x5b6ac7);}),this[_0x156950(0x231)]['urlChange$'][_0x156950(0x181)](_0x136c33(this[_0x156950(0x134)]))[_0x156950(0x1e8)](()=>this[_0x156950(0x167)](_0x38a98e));}[_0x331486(0x2c8)](_0x1867de,_0x17003a=!0x1){const _0x5264db=_0x331486,_0x2b53f4=this[_0x5264db(0x231)][_0x5264db(0xdd)]('subunit');_0x1867de['getSheetId']()!==_0x2b53f4&&this[_0x5264db(0x231)][_0x5264db(0xe8)](_0x5264db(0x1df),_0x1867de[_0x5264db(0x1d2)](),_0x17003a);}async[_0x331486(0x167)](_0x1b33fb){const _0x2193f3=_0x331486;var _0x1c6e97;const _0x5e59b3=this[_0x2193f3(0x231)][_0x2193f3(0xdd)](_0x2193f3(0x1df));if(!_0x5e59b3||!_0x1b33fb[_0x2193f3(0x2cf)](_0x5e59b3)){const _0x2ae776=_0x1b33fb['getUnhiddenWorksheets']()[0x0],_0x83f55f=_0x1b33fb[_0x2193f3(0x2cf)](_0x2ae776);if(!_0x83f55f)return;this['_updateURLWithCurrentState'](_0x83f55f,!0x0),await this[_0x2193f3(0x124)][_0x2193f3(0x255)](_0x565bcb['id'],{'unitId':_0x1b33fb['getUnitId'](),'subUnitId':_0x2ae776});return;}((_0x1c6e97=_0x1b33fb[_0x2193f3(0x145)]())==null?void 0x0:_0x1c6e97[_0x2193f3(0x1d2)]())!==_0x5e59b3&&await this['_commandService'][_0x2193f3(0x255)](_0x565bcb['id'],{'unitId':_0x1b33fb['getUnitId'](),'subUnitId':_0x5e59b3});}};ce=Li([K(0x0,yt),K(0x1,_0x1f29f4),K(0x2,_0xd74a37),K(0x3,_0x384b36(_0x413219)),K(0x4,_0x36f410(_0x9b3096))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x473793,_0x470c43,_0x353253,_0x447dd4)=>{const _0x193748=_0x331486;for(var _0x389849=_0x447dd4>0x1?void 0x0:_0x447dd4?Ui(_0x470c43,_0x353253):_0x470c43,_0x1f482e=_0x473793[_0x193748(0xea)]-0x1,_0x54c819;_0x1f482e>=0x0;_0x1f482e--)(_0x54c819=_0x473793[_0x1f482e])&&(_0x389849=_0x54c819(_0x389849)||_0x389849);return _0x389849;},rt=(_0x38e646,_0xfcfb8d)=>(_0x7644e8,_0x5a9a08)=>_0xfcfb8d(_0x7644e8,_0x5a9a08,_0x38e646);let $e=class extends _0x57605c{constructor(_0x404724,_0x12cf71){const _0x4d4779=_0x331486;super(),this['_docClipboardService']=_0x404724,this[_0x4d4779(0x275)]=_0x12cf71,this[_0x4d4779(0x119)]();}['_init'](){const _0x54cd3c=_0x331486,_0x159486=this;this[_0x54cd3c(0xf5)](this[_0x54cd3c(0xbd)]['addClipboardHook']({'onBeforePasteImage':async _0x37c6bb=>{const _0x378404=_0x54cd3c,_0x5cf93e=await _0x159486[_0x378404(0x275)][_0x378404(0x2d3)](_0x37c6bb);return _0x5cf93e?{'source':_0x5cf93e['source'],'imageSourceType':_0x5cf93e[_0x378404(0x1a5)]}:null;}}));}};$e=Mi([rt(0x0,_0x54ca08),rt(0x1,_0x331a67)],$e);const ot=[_0x331486(0x158),'jiqing.500',_0x331486(0x1d5),_0x331486(0x2b9),_0x331486(0x221),_0x331486(0x168)];class Ke extends _0x4064cc{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x331486(0x12a)](_0x30d743){const _0x2296cf=_0x331486;if(this[_0x2296cf(0x180)][_0x2296cf(0x1ef)](_0x30d743))return this['_assignedColors']['get'](_0x30d743);const _0x4a3119=ot[this[_0x2296cf(0x142)]];return this['_colorIndex']=(this[_0x2296cf(0x142)]+0x1)%ot[_0x2296cf(0xea)],this['_assignedColors'][_0x2296cf(0x1c0)](_0x30d743,_0x4a3119),_0x4a3119;}}function $t(_0x28ba6b){let _0x4e150a='';for(const _0x55b3d4 of _0x28ba6b){const {startOffset:_0x3d8647,endOffset:_0x1c229f,isActive:_0x1867a0,rangeType:_0x569997,segmentId:_0xdb6b78,segmentPage:_0x29347b}=_0x55b3d4;_0x4e150a['length']&&(_0x4e150a+=','),_0x4e150a+=_0x3d8647+':'+_0x1c229f+':'+(_0x1867a0?'1':'0')+':'+_0x569997+':'+_0xdb6b78+':'+_0x29347b;}return _0x4e150a;}function Ai(_0x47ba73){const _0x431a3e=_0x331486,_0x53a936=_0x47ba73[_0x431a3e(0x1fa)](','),_0x31aead=[];for(const _0x45a418 of _0x53a936){const [_0x46c4db,_0x5ac9a5,_0x23dbf5,_0x239709,_0xb0198e,_0x2da7a7]=_0x45a418[_0x431a3e(0x1fa)](':');_0x31aead['push']({'startOffset':Number(_0x46c4db),'endOffset':Number(_0x5ac9a5),'collapsed':_0x46c4db===_0x5ac9a5,'isActive':_0x23dbf5==='1','rangeType':_0x239709===_0x80033e['TEXT']?_0x80033e['TEXT']:_0x80033e[_0x431a3e(0xf4)],'segmentId':typeof _0xb0198e==_0x431a3e(0x1c1)?String(_0xb0198e):'','segmentPage':Number(_0x2da7a7!=null?_0x2da7a7:-0x1)});}return _0x31aead[_0x431a3e(0x244)](_0x238c0b=>_0x238c0b['isActive'])||(_0x31aead[0x0][_0x431a3e(0x91)]=!0x0),_0x31aead;}class ze extends _0x57605c{constructor(){const _0x387947=_0x331486;super(...arguments),_(this,'_collabCursorState$',new _0x5adb5d(null)),_(this,'collabCursorState$',this[_0x387947(0x162)]['asObservable']());}['syncEditingCollabCursor'](_0x22bd83){const _0x4ec336=_0x331486,{unitID:_0x4e2d6f,memberID:_0x32e591,textRanges:_0x317303}=_0x22bd83,_0xc2cbf7=$t(_0x317303);if(_0xc2cbf7==='')return;const _0x1539e0={'unitID':_0x4e2d6f,'memberID':_0x32e591,'selection':_0xc2cbf7};this[_0x4ec336(0x162)][_0x4ec336(0x1c4)](_0x1539e0);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x3c5a60,_0x24b2e0,_0xb5b58,_0x27b12c)=>{const _0x52c88a=_0x331486;for(var _0x2793f2=_0x27b12c>0x1?void 0x0:_0x27b12c?Pi(_0x24b2e0,_0xb5b58):_0x24b2e0,_0x3a9712=_0x3c5a60[_0x52c88a(0xea)]-0x1,_0x33da9e;_0x3a9712>=0x0;_0x3a9712--)(_0x33da9e=_0x3c5a60[_0x3a9712])&&(_0x2793f2=_0x33da9e(_0x2793f2)||_0x2793f2);return _0x2793f2;},A=(_0x3e5f8e,_0x4cbafd)=>(_0x55b439,_0x4e139b)=>_0x4cbafd(_0x55b439,_0x4e139b,_0x3e5f8e);const yi=0x12c,$i=0x64;let xe=class extends _0x57605c{constructor(_0x45209f,_0x200c7a,_0x5f55b5,_0x4f56b4,_0x4d31de,_0x15c22e,_0x422529,_0x469c3e,_0x59749a){const _0x1e9a4e=_0x331486;super(),_(this,_0x1e9a4e(0x280),!0x1),_(this,_0x1e9a4e(0x119),!0x1),_(this,'_cursorInfo$',new _0x5adb5d(new Map())),_(this,_0x1e9a4e(0x2b8),this[_0x1e9a4e(0x24e)]['asObservable']()),_(this,_0x1e9a4e(0x1c2),new _0x5adb5d([])),_(this,_0x1e9a4e(0x104),this['_roomMembers$'][_0x1e9a4e(0x181)](_0x61f829(yi))),_(this,'_updateLocalCursor',_0x3554ba(_0x153a03=>{const _0x14e977=_0x1e9a4e,_0x35b81e={'eventID':_0x2fc4d1[_0x14e977(0x194)],'data':{'unitID':this['unitID'],'memberID':this[_0x14e977(0x2c7)][_0x14e977(0x173)](),'selection':$t(_0x153a03)}};this[_0x14e977(0x2c7)][_0x14e977(0x1e3)](_0x35b81e,this[_0x14e977(0x203)]);},$i)),(this['unitID']=_0x45209f,this[_0x1e9a4e(0x2c7)]=_0x200c7a,this[_0x1e9a4e(0x1fb)]=_0x5f55b5,this[_0x1e9a4e(0x157)]=_0x4f56b4,this['_memberService']=_0x4d31de,this[_0x1e9a4e(0x123)]=_0x15c22e,this['_transformService']=_0x422529,this[_0x1e9a4e(0xed)]=_0x469c3e,this[_0x1e9a4e(0x124)]=_0x59749a);}get[_0x331486(0x2b3)](){const _0x28e2fd=_0x331486;return this[_0x28e2fd(0x24e)][_0x28e2fd(0xf0)]();}get[_0x331486(0x28b)](){const _0x4c3240=_0x331486;return this[_0x4c3240(0x1c2)][_0x4c3240(0xf0)]();}[_0x331486(0x1af)](){const _0x37bcb6=_0x331486;super[_0x37bcb6(0x1af)](),this[_0x37bcb6(0x24e)][_0x37bcb6(0x1c4)](new Map()),this[_0x37bcb6(0x24e)][_0x37bcb6(0x25a)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x37bcb6(0x25a)]();}[_0x331486(0x2ba)](){const _0x53fbdc=_0x331486;this[_0x53fbdc(0x119)]||(this[_0x53fbdc(0x119)]=!0x0,this[_0x53fbdc(0x2c7)][_0x53fbdc(0x21b)][_0x53fbdc(0x181)](_0x136c33(this[_0x53fbdc(0x134)]))['subscribe'](_0x219175=>{const _0x59efdf=_0x53fbdc;_0x219175===_0x267c32[_0x59efdf(0x10b)]?this[_0x59efdf(0x2d4)]():this[_0x59efdf(0x1c3)]();}),this[_0x53fbdc(0x2c7)][_0x53fbdc(0x18a)][_0x53fbdc(0x181)](_0x136c33(this['dispose$']))[_0x53fbdc(0x1e8)](_0x4c7c92=>{const _0x374fa9=_0x53fbdc,_0x353ac2=_0x4c7c92[_0x374fa9(0x163)];_0x353ac2===_0x2fc4d1[_0x374fa9(0x194)]&&this[_0x374fa9(0x2d8)](_0x4c7c92),_0x353ac2===_0x2fc4d1[_0x374fa9(0xf1)]&&this['_onCursorDelete'](_0x4c7c92);}),this[_0x53fbdc(0xf5)](this[_0x53fbdc(0x124)][_0x53fbdc(0x2b2)](_0x5687f1=>{const _0x2dd774=_0x53fbdc,_0x378355=_0x5687f1[_0x2dd774(0x8f)];_0x378355!=null&&this['_online']&&_0x5687f1['id']===_0x577316['id']&&_0x378355[_0x2dd774(0x19a)]===this[_0x2dd774(0x203)]&&_0x378355[_0x2dd774(0x111)]===!0x1&&_0x378355[_0x2dd774(0x291)][_0x2dd774(0xea)]>0x0&&this[_0x2dd774(0x16e)](_0x378355[_0x2dd774(0x291)]);})),this[_0x53fbdc(0x123)]['collabCursorState$'][_0x53fbdc(0x181)](_0x136c33(this[_0x53fbdc(0x134)]))[_0x53fbdc(0x1e8)](_0x1436f4=>{const _0x47ea70=_0x53fbdc;if((_0x1436f4==null?void 0x0:_0x1436f4[_0x47ea70(0x203)])!==this['unitID'])return;const _0x51db92={'eventID':_0x2fc4d1[_0x47ea70(0x194)],'data':_0x1436f4};this[_0x47ea70(0x2d8)](_0x51db92);}),this[_0x53fbdc(0xf5)](this['_commandService'][_0x53fbdc(0x2b2)](_0x38b82d=>{const _0x16de92=_0x53fbdc;if(_0x38b82d[_0x16de92(0x8f)]==null)return;const _0x210477=_0x38b82d[_0x16de92(0x8f)];if(_0x38b82d['id']!==_0x206466['id']||_0x210477['unitId']!==this[_0x16de92(0x203)])return;const _0x2ed1a3={'id':_0x16de92(0xb1),'params':_0x210477},_0x575ecc=this[_0x16de92(0x2b3)];for(const [_0x3c5d9,_0x21d7d4]of _0x575ecc){const _0x4e42a7={'id':_0x16de92(0xb1),'params':{'unitId':this[_0x16de92(0x203)],'actions':null,'textRanges':_0x21d7d4[_0x16de92(0x291)]}},_0x285042=this['_transformService'][_0x16de92(0x2d0)](_0x2ed1a3,_0x4e42a7,!0x1);if(_0x3d60d7(_0x285042))throw _0x285042[_0x16de92(0x17e)];_0x575ecc[_0x16de92(0x1c0)](_0x3c5d9,{..._0x21d7d4,'ranges':_0x285042[_0x16de92(0x264)][_0x16de92(0x8f)][_0x16de92(0x1d1)]});}queueMicrotask(()=>{const _0x30408d=_0x16de92;this[_0x30408d(0x24e)][_0x30408d(0x1c4)](_0x575ecc);});})));}['_onCursorUpdate'](_0x14f971){const _0x100b23=_0x331486;var _0x4ad882,_0x31ef98;const {memberID:_0x1bd41b,selection:_0x24fac2}=_0x14f971['data'],_0x31ef9e=Ai(_0x24fac2),_0x17ea68=(_0x31ef98=(_0x4ad882=this[_0x100b23(0xd9)][_0x100b23(0x2d1)](this[_0x100b23(0x203)],_0x1bd41b))==null?void 0x0:_0x4ad882[_0x100b23(0x169)])!=null?_0x31ef98:_0x100b23(0xd1),_0x2cf1e4={'color':this[_0x100b23(0x157)]['assignAColorForMemberID'](_0x1bd41b),'name':_0x17ea68,'ranges':_0x31ef9e},_0x24041a=this[_0x100b23(0x2b3)];_0x24041a['set'](_0x1bd41b,_0x2cf1e4),this[_0x100b23(0x24e)][_0x100b23(0x1c4)](_0x24041a);}[_0x331486(0x220)](_0x57c357){const _0x25dd84=_0x331486,{memberID:_0x199527}=_0x57c357['data'],_0xd8eeb6=this['cursorInfo'];_0xd8eeb6['delete'](_0x199527),this[_0x25dd84(0x24e)][_0x25dd84(0x1c4)](_0xd8eeb6);}['_toggleOnline'](){const _0x577493=_0x331486;var _0x4276f7;if(this[_0x577493(0x280)]=!0x0,((_0x4276f7=this[_0x577493(0xed)][_0x577493(0xcb)]())==null?void 0x0:_0x4276f7[_0x577493(0x18c)]())!==this['unitID'])return;const _0x4d285e=this['_injector']['get'](_0x1bc8e5)[_0x577493(0x13f)]();Array[_0x577493(0x238)](_0x4d285e)&&_0x4d285e[_0x577493(0xea)]>0x0&&this['_updateLocalCursor'](_0x4d285e);}['_toggleOffline'](){const _0x2d5c67=_0x331486;this[_0x2d5c67(0x280)]=!0x1;}};xe=wi([A(0x2,_0x384b36(_0x2975ff)),A(0x3,_0x384b36(Ke)),A(0x4,_0x384b36(_0x5bfe2e)),A(0x5,_0x384b36(ze)),A(0x6,_0x2843ad),A(0x7,_0x34a5b3),A(0x8,_0xd74a37)],xe);var xi=Object[_0x331486(0x1ca)],Bi=(_0x3df158,_0x396d24,_0x3165c5,_0x396ded)=>{const _0x24e981=_0x331486;for(var _0x1136cb=_0x396ded>0x1?void 0x0:_0x396ded?xi(_0x396d24,_0x3165c5):_0x396d24,_0x20532b=_0x3df158[_0x24e981(0xea)]-0x1,_0x4998b1;_0x20532b>=0x0;_0x20532b--)(_0x4998b1=_0x3df158[_0x20532b])&&(_0x1136cb=_0x4998b1(_0x1136cb)||_0x1136cb);return _0x1136cb;},B=(_0x457f98,_0x4111af)=>(_0xecdfe3,_0x6ccdb8)=>_0x4111af(_0xecdfe3,_0x6ccdb8,_0x457f98);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4ef1a9=[],_0x2c8f8c=!0x1;return _0x5e419a=>{const _0x44b52b=_0x512f;_0x4ef1a9[_0x44b52b(0x118)](_0x5e419a),_0x2c8f8c||(_0x2c8f8c=!0x0,setTimeout(()=>{const _0x162cf2=_0x44b52b;_0x4ef1a9[_0x162cf2(0x210)](_0x5a1582=>_0x5a1582()),_0x4ef1a9=[],_0x2c8f8c=!0x1;}));};};let Be=class extends _0x57605c{constructor(_0x2a0b8e,_0x4d05c3,_0x18d0bb,_0xbdf7b7,_0x1082ac,_0x1e718a,_0x1a7891,_0x3f87ea){const _0x5a44fa=_0x331486;super(),_(this,_0x5a44fa(0x280),!0x1),_(this,_0x5a44fa(0x119),!0x1),_(this,_0x5a44fa(0x24e),new _0x5adb5d(new Map())),_(this,_0x5a44fa(0x2b8),this[_0x5a44fa(0x24e)][_0x5a44fa(0x149)]()),_(this,_0x5a44fa(0x1c2),new _0x5adb5d([])),_(this,'roomMembers$',this[_0x5a44fa(0x1c2)][_0x5a44fa(0x181)](_0x61f829(Fi))),_(this,_0x5a44fa(0x16e),_0x3554ba((_0x45eec5,_0x591b80)=>{const _0x123c0b=_0x5a44fa,_0x3d0c95={'eventID':_0x2fc4d1[_0x123c0b(0x194)],'data':{'unitID':this[_0x123c0b(0x203)],'memberID':this[_0x123c0b(0x2c7)][_0x123c0b(0x173)](),'selection':_0x495e5f(_0x45eec5,_0x591b80[_0x123c0b(0xe7)])}};this[_0x123c0b(0x2c7)][_0x123c0b(0x1e3)](_0x3d0c95,this[_0x123c0b(0x203)]);},ki)),(this[_0x5a44fa(0x203)]=_0x2a0b8e,this[_0x5a44fa(0x2c7)]=_0x4d05c3,this[_0x5a44fa(0x1fb)]=_0x18d0bb,this[_0x5a44fa(0x157)]=_0xbdf7b7,this['_memberService']=_0x1082ac,this[_0x5a44fa(0xed)]=_0x1e718a,this[_0x5a44fa(0x124)]=_0x1a7891,this['_refRangeService']=_0x3f87ea);}get[_0x331486(0x2b3)](){const _0x4899a3=_0x331486;return this['_cursorInfo$'][_0x4899a3(0xf0)]();}get[_0x331486(0x28b)](){const _0x547bf5=_0x331486;return this['_roomMembers$'][_0x547bf5(0xf0)]();}[_0x331486(0x1af)](){const _0x16f80c=_0x331486;super[_0x16f80c(0x1af)](),this[_0x16f80c(0x24e)]['next'](new Map()),this[_0x16f80c(0x24e)][_0x16f80c(0x25a)](),this[_0x16f80c(0x1c2)]['next']([]),this['_roomMembers$'][_0x16f80c(0x25a)]();}[_0x331486(0x2ba)](){const _0x2af471=_0x331486;this['_init']||(this[_0x2af471(0x119)]=!0x0,this['_session'][_0x2af471(0x21b)][_0x2af471(0x181)](_0x136c33(this[_0x2af471(0x134)]))[_0x2af471(0x1e8)](_0xf812c6=>{const _0x3cf755=_0x2af471;_0xf812c6===_0x267c32[_0x3cf755(0x10b)]?this[_0x3cf755(0x2d4)]():this[_0x3cf755(0x1c3)]();}),this['_session'][_0x2af471(0x18a)][_0x2af471(0x181)](_0x136c33(this[_0x2af471(0x134)]))['subscribe'](_0x31dd76=>{const _0x2592d5=_0x2af471,_0x93bf79=_0x31dd76[_0x2592d5(0x163)];_0x93bf79===_0x2fc4d1['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x31dd76),_0x93bf79===_0x2fc4d1['USERS_LEAVE']&&this[_0x2592d5(0x220)](_0x31dd76);}),this[_0x2af471(0x218)](),this[_0x2af471(0xf5)](this['_commandService'][_0x2af471(0x2b2)](_0x5aa271=>{const _0x215a15=_0x2af471;if(this[_0x215a15(0x280)]&&_0x5aa271['id']===_0x4a1b82['id']&&_0x5aa271[_0x215a15(0x8f)]['unitId']===this[_0x215a15(0x203)]){const _0x3b4b94=_0x5aa271[_0x215a15(0x8f)];this['_updateLocalCursor'](_0x3b4b94[_0x215a15(0xfd)],_0x3b4b94[_0x215a15(0x11a)][0x0]);}})));}[_0x331486(0x2d8)](_0x581d36){const _0x428a36=_0x331486;var _0x2eeee5,_0x148ee8;const {memberID:_0x78f743,selection:_0x5e0b9b}=_0x581d36['data'],{sheetName:_0x164cda,range:_0x264bfb}=_0x51524b(_0x5e0b9b),_0x4f864f={'name':(_0x148ee8=(_0x2eeee5=this[_0x428a36(0xd9)]['getMember'](this['unitID'],_0x78f743))==null?void 0x0:_0x2eeee5[_0x428a36(0x169)])!=null?_0x148ee8:_0x428a36(0xd1),'range':this[_0x428a36(0x1cc)](_0x164cda,_0x264bfb),'sheetID':_0x164cda,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x78f743),'selection':_0x5e0b9b},_0x59316b=this[_0x428a36(0x2b3)];_0x59316b[_0x428a36(0x1c0)](_0x78f743,_0x4f864f),this[_0x428a36(0x24e)][_0x428a36(0x1c4)](_0x59316b);}[_0x331486(0x220)](_0x4f1a3e){const _0x1a3eb3=_0x331486,{memberID:_0x5034e6}=_0x4f1a3e[_0x1a3eb3(0x126)],_0x471cd1=this[_0x1a3eb3(0x2b3)];_0x471cd1[_0x1a3eb3(0x211)](_0x5034e6),this[_0x1a3eb3(0x24e)]['next'](_0x471cd1);}[_0x331486(0x1cc)](_0x498337,_0x526604){const _0x2ae91f=_0x331486;var _0x4d041b,_0x2312bc;const _0x4e8507=(_0x2312bc=(_0x4d041b=this[_0x2ae91f(0xed)][_0x2ae91f(0x1ce)](this[_0x2ae91f(0x203)]))==null?void 0x0:_0x4d041b['getSheetBySheetId'](_0x498337))==null?void 0x0:_0x2312bc[_0x2ae91f(0x29b)]();return(_0x4e8507==null?void 0x0:_0x4e8507[_0x2ae91f(0xa3)](_0x47d55a=>_0x16bdf7[_0x2ae91f(0x28d)](_0x47d55a,_0x526604)))||_0x526604;}[_0x331486(0x218)](){const _0x38f171=_0x331486,_0x3a9d77=new _0x112c0e(),_0x3346ff=Hi(),_0x8ac394=()=>{const _0x4c88bf=_0x512f;_0x3a9d77['dispose']();const _0x18f6d7=(_0x58fbb1,_0x4006de,_0x4b2cad,_0x58dd61)=>{const _0x3628f6=_0x512f;let _0x2fcd97=[];switch(_0x58fbb1['id']){case _0x5ab1aa[_0x3628f6(0x14c)]:{_0x2fcd97=_0x31ca5c(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['DeleteRangeMoveUpCommandId']:{_0x2fcd97=_0x11ddcb(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x1f5)]:{_0x2fcd97=_0x5dd904(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['InsertRangeMoveDownCommandId']:{_0x2fcd97=_0x4d752e(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x25f)]:{_0x2fcd97=_0x2ba715(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0xc5)]:{_0x2fcd97=_0x14d58d(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['MoveRangeCommandId']:{_0x2fcd97=_0x240f5e(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x11b)]:{_0x2fcd97=_0x50a710(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['RemoveRowCommandId']:{_0x2fcd97=_0x2d3dff(_0x58fbb1,_0x58dd61);break;}}const _0x558288=_0x34ca57(_0x2fcd97,_0x58dd61),_0x4430de=this[_0x3628f6(0x2b3)]['get'](_0x4006de);if(_0x4430de&&_0x558288){const _0x59e3f0={..._0x4430de,'range':_0x558288};this['cursorInfo'][_0x3628f6(0x1c0)](_0x4006de,_0x59e3f0),_0x3346ff(()=>{const _0x45215f=_0x3628f6,_0x51aedd=this['_refRangeService'][_0x45215f(0xa5)](_0x558288,_0x5beb84=>(_0x51aedd['dispose'](),_0x18f6d7(_0x5beb84,_0x4006de,_0x4b2cad,_0x558288)));_0x3a9d77['add'](_0x51aedd);});}return{'redos':[],'undos':[]};};this[_0x4c88bf(0x2b3)][_0x4c88bf(0x210)]((_0x57255d,_0x9fb244)=>{const _0x50f871=_0x4c88bf,{range:_0x2b35cb,sheetID:_0x9e8dff}=_0x57255d,_0x415ec7=this[_0x50f871(0xc9)][_0x50f871(0xa5)](_0x2b35cb,_0x537bd1=>(_0x415ec7['dispose'](),_0x18f6d7(_0x537bd1,_0x9fb244,_0x9e8dff,_0x2b35cb)));_0x3a9d77['add'](_0x415ec7);});};this[_0x38f171(0xf5)](_0x385cfe(this[_0x38f171(0x24e)][_0x38f171(0x1e8)](()=>{_0x8ac394();})));}[_0x331486(0x2d4)](){const _0x4212d3=_0x331486;var _0x1d4d60,_0x452789;if(this[_0x4212d3(0x280)]=!0x0,((_0x1d4d60=this['_univerInstanceService'][_0x4212d3(0xcb)]())==null?void 0x0:_0x1d4d60[_0x4212d3(0x18c)]())!==this['unitID'])return;const _0x338a0a=(_0x452789=this['_injector'][_0x4212d3(0x1e7)](_0x318b21)['getCurrentSelections']())==null?void 0x0:_0x452789[0x0],_0x42342f=this[_0x4212d3(0xed)][_0x4212d3(0x132)](_0x4e690a[_0x4212d3(0x153)])['getActiveSheet']();_0x338a0a&&_0x42342f&&this['_updateLocalCursor'](_0x42342f[_0x4212d3(0x1d2)](),_0x338a0a);}[_0x331486(0x1c3)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x384b36(_0x2975ff)),B(0x3,_0x384b36(Ke)),B(0x4,_0x384b36(_0x5bfe2e)),B(0x5,_0x34a5b3),B(0x6,_0xd74a37),B(0x7,_0x384b36(_0x59856c))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0xebd1a9,_0x40f95c,_0x245a97,_0x37fce2)=>{const _0x5923ab=_0x331486;for(var _0x3aadbf=_0x37fce2>0x1?void 0x0:_0x37fce2?Yi(_0x40f95c,_0x245a97):_0x40f95c,_0x3caf7e=_0xebd1a9[_0x5923ab(0xea)]-0x1,_0x30155c;_0x3caf7e>=0x0;_0x3caf7e--)(_0x30155c=_0xebd1a9[_0x3caf7e])&&(_0x3aadbf=_0x30155c(_0x3aadbf)||_0x3aadbf);return _0x3aadbf;},Ce=(_0x263202,_0x2cd8f1)=>(_0x52b8e8,_0x108138)=>_0x2cd8f1(_0x52b8e8,_0x108138,_0x263202);let H=class extends _0x57605c{constructor(_0x5d18fd,_0x130005,_0x53ae13){const _0x1005d3=_0x331486;super(),_(this,_0x1005d3(0x1f7),new Map()),_(this,_0x1005d3(0x12f),new _0x49c822()),(this[_0x1005d3(0xed)]=_0x5d18fd,this[_0x1005d3(0x1fb)]=_0x130005,this['_collabSessionService']=_0x53ae13,this[_0x1005d3(0x119)]());}['dispose'](){const _0x1d97c8=_0x331486;super[_0x1d97c8(0x1af)](),this[_0x1d97c8(0x12f)][_0x1d97c8(0x25a)](),this[_0x1d97c8(0x1f7)][_0x1d97c8(0x210)](_0x3db908=>_0x3db908[_0x1d97c8(0x1af)]());}[_0x331486(0x2a5)](_0x35855c){const _0x23e57b=_0x331486;return this['_entities'][_0x23e57b(0x1ef)](_0x35855c)?this['_entities']['get'](_0x35855c)[_0x23e57b(0x2b8)]:this[_0x23e57b(0x12f)][_0x23e57b(0x181)](_0x5ad315(_0x59bc33=>_0x59bc33[_0x23e57b(0x203)]===_0x35855c),_0x4ce806(_0x44c453=>_0x44c453[_0x23e57b(0x2b8)]));}[_0x331486(0x119)](){const _0x5ddd14=_0x331486;this[_0x5ddd14(0xed)]['getTypeOfUnitAdded$'](_0x4e690a[_0x5ddd14(0x153)])[_0x5ddd14(0x181)](_0x136c33(this[_0x5ddd14(0x134)]))[_0x5ddd14(0x1e8)](async _0x152231=>{const _0x180656=_0x5ddd14,_0x337b57=_0x152231['getUnitId'](),_0x431f12=await this[_0x180656(0x1d7)](_0x337b57);this['_entityInit$'][_0x180656(0x1c4)](_0x431f12),this['_entities'][_0x180656(0x1c0)](_0x337b57,_0x431f12);}),this['_univerInstanceService'][_0x5ddd14(0x19b)](_0x4e690a['UNIVER_DOC'])[_0x5ddd14(0x181)](_0x136c33(this['dispose$']))[_0x5ddd14(0x181)](_0x5ad315(_0x86f30e=>!_0x86f30e[_0x5ddd14(0x18c)]()[_0x5ddd14(0x113)]('__')))[_0x5ddd14(0x1e8)](async _0x9c9b64=>{const _0x2ec667=_0x5ddd14,_0x1d3cc3=_0x9c9b64['getUnitId'](),_0xf902ec=await this[_0x2ec667(0xba)](_0x1d3cc3);this[_0x2ec667(0x12f)][_0x2ec667(0x1c4)](_0xf902ec),this[_0x2ec667(0x1f7)][_0x2ec667(0x1c0)](_0x1d3cc3,_0xf902ec);}),_0x5486e4(this[_0x5ddd14(0xed)][_0x5ddd14(0x89)](_0x4e690a[_0x5ddd14(0x237)]),this[_0x5ddd14(0xed)][_0x5ddd14(0x89)](_0x4e690a[_0x5ddd14(0x153)]))[_0x5ddd14(0x181)](_0x136c33(this['dispose$']))[_0x5ddd14(0x1e8)](_0x452ff6=>{const _0x4ac274=_0x5ddd14,_0x36f68e=_0x452ff6['getUnitId'](),_0x329706=this[_0x4ac274(0x1f7)][_0x4ac274(0x1e7)](_0x36f68e);_0x329706&&(_0x329706[_0x4ac274(0x1af)](),this[_0x4ac274(0x1f7)][_0x4ac274(0x211)](_0x36f68e));});}async[_0x331486(0x1d7)](_0x5cfc4f){const _0x437a22=_0x331486,_0x8546cf=await this[_0x437a22(0xbf)][_0x437a22(0x127)](_0x5cfc4f),_0x51faa2=this['_injector'][_0x437a22(0x232)](Be,_0x5cfc4f,_0x8546cf);return _0x51faa2[_0x437a22(0x2ba)](),_0x51faa2;}async['_startDocCollabCursor'](_0x39477e){const _0x335d4e=_0x331486,_0x12b4aa=await this[_0x335d4e(0xbf)]['requireSession'](_0x39477e),_0x1cc4a6=this[_0x335d4e(0x1fb)][_0x335d4e(0x232)](xe,_0x39477e,_0x12b4aa);return _0x1cc4a6[_0x335d4e(0x2ba)](),_0x1cc4a6;}};H=Wi([Ce(0x0,_0x34a5b3),Ce(0x1,_0x384b36(_0x2975ff)),Ce(0x2,_0x384b36(_0x46dc37))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x518250,_0x5434ad){const _0x59b74b=_0x331486;let {radius:_0x189943,width:_0x2c0186,height:_0x1ffd03}=_0x5434ad;_0x189943=_0x189943!=null?_0x189943:0x0,_0x2c0186=_0x2c0186!=null?_0x2c0186:0x1e,_0x1ffd03=_0x1ffd03!=null?_0x1ffd03:0x1e;let _0x321514=0x0,_0x3f59a9=0x0,_0x39d997=0x0;_0x321514=_0x3f59a9=_0x39d997=Math[_0x59b74b(0x8d)](_0x189943,_0x2c0186/0x2,_0x1ffd03/0x2),_0x518250[_0x59b74b(0x16a)](),_0x518250[_0x59b74b(0x189)](_0x321514,0x0),_0x518250['lineTo'](_0x2c0186-_0x3f59a9,0x0),_0x518250[_0x59b74b(0x1cf)](_0x2c0186-_0x3f59a9,_0x3f59a9,_0x3f59a9,Math['PI']*0x3/0x2,0x0,!0x1),_0x518250[_0x59b74b(0x263)](_0x2c0186,_0x1ffd03-_0x39d997),_0x518250[_0x59b74b(0x1cf)](_0x2c0186-_0x39d997,_0x1ffd03-_0x39d997,_0x39d997,0x0,Math['PI']/0x2,!0x1),_0x518250[_0x59b74b(0x263)](0x0,_0x1ffd03),_0x518250[_0x59b74b(0x263)](0x0,_0x321514),_0x518250['arc'](_0x321514,_0x321514,_0x321514,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x518250[_0x59b74b(0x2b1)](),_0x5434ad[_0x59b74b(0x2d9)]&&(_0x518250[_0x59b74b(0x102)](),_0x518250[_0x59b74b(0x19f)]=_0x5434ad['fill'],_0x5434ad[_0x59b74b(0x215)]==='evenodd'?_0x518250[_0x59b74b(0x2d9)](_0x59b74b(0x14b)):_0x518250[_0x59b74b(0x2d9)](),_0x518250['restore']());}class Ee extends _0x16364b{constructor(_0x1468ae,_0x5c5556){const _0x33bc45=_0x331486;super(_0x1468ae,_0x5c5556),_(this,_0x33bc45(0x15d)),_(this,_0x33bc45(0xd3)),(this[_0x33bc45(0x15d)]=_0x5c5556==null?void 0x0:_0x5c5556[_0x33bc45(0x15d)],this[_0x33bc45(0xd3)]=_0x5c5556==null?void 0x0:_0x5c5556[_0x33bc45(0xd3)]);}static[_0x331486(0xbb)](_0xcbd59d,_0x59d664){const _0x3bd56e=_0x331486,{text:_0x36e425,color:_0x25dce5}=_0x59d664;_0xcbd59d[_0x3bd56e(0x102)](),_0xcbd59d[_0x3bd56e(0x109)]=_0x3bd56e(0xcc);const _0x491192=_0xcbd59d['measureText'](_0x36e425)[_0x3bd56e(0x1fd)],_0x1ebe58=Math[_0x3bd56e(0x8d)](_0x491192+0x2*Re,at);Vi(_0xcbd59d,{'height':Q,'radius':0x4,'width':_0x1ebe58,'fill':_0x25dce5}),_0xcbd59d['fillStyle']=_0x3bd56e(0x274);const _0x29723d=Re,_0x466360=Q-ji,_0x1b5a91=at-0x2*Re;if(_0x491192>_0x1b5a91){let _0x2fbee5='',_0x45fed1=0x0;for(const _0x147c28 of _0x36e425){const _0x200c1c=_0xcbd59d[_0x3bd56e(0x122)](_0x147c28)['width'];if(_0x45fed1+_0x200c1c<=_0x1b5a91-_0xcbd59d[_0x3bd56e(0x122)](_0x3bd56e(0x271))[_0x3bd56e(0x1fd)])_0x2fbee5+=_0x147c28,_0x45fed1+=_0x200c1c;else{_0x2fbee5+='...';break;}}_0xcbd59d['fillText'](_0x2fbee5,_0x29723d,_0x466360);}else _0xcbd59d[_0x3bd56e(0x1be)](_0x36e425,_0x29723d,_0x466360);_0xcbd59d[_0x3bd56e(0xb7)]();}[_0x331486(0x9a)](_0x26e613){Ee['drawWith'](_0x26e613,this);}}const De=_0x331486(0x107),Xi=_0x331486(0x2c4),Gi='collab-rect-range-',z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x331486(0x243);class ct{constructor(_0xd853c3,_0x2b728f,_0x5d7b5e,_0x3fbd7f){const _0x24cf53=_0x331486;_(this,_0x24cf53(0x1b0),[]),_(this,'_anchor',null),_(this,_0x24cf53(0xaa),null),_(this,_0x24cf53(0x251),null),_(this,_0x24cf53(0xd4),null),_(this,'_eventUnsubscribe',null),(this['_cursor']=_0xd853c3,this[_0x24cf53(0x13b)]=_0x2b728f,this[_0x24cf53(0xe6)]=_0x5d7b5e,this[_0x24cf53(0xe9)]=_0x3fbd7f,this[_0x24cf53(0x120)]());}set[_0x331486(0x247)](_0x4b407e){const _0x3e001f=_0x331486;_0x4b407e?(this[_0x3e001f(0x251)]&&this[_0x3e001f(0x251)]['hide'](),this[_0x3e001f(0xaa)]&&this[_0x3e001f(0xaa)][_0x3e001f(0x268)]()):(this[_0x3e001f(0x251)]&&this['_anchorDot'][_0x3e001f(0x268)](),this['_textBubble']&&this['_textBubble'][_0x3e001f(0xb8)]());}[_0x331486(0x1af)](){const _0x59da4d=_0x331486;for(const _0x271db6 of this[_0x59da4d(0x1b0)])_0x271db6[_0x59da4d(0x1af)]();this[_0x59da4d(0xaa)]&&this['_textBubble'][_0x59da4d(0x1af)](),this['_anchorDot']&&this[_0x59da4d(0x251)][_0x59da4d(0x1af)](),this[_0x59da4d(0x197)]&&this[_0x59da4d(0x197)][_0x59da4d(0x1af)](),this[_0x59da4d(0x2c0)]&&this[_0x59da4d(0x2c0)]();}[_0x331486(0x120)](){const _0x11bc4f=_0x331486;var _0x3ce2c4;const {_docSkeleton:_0x137d0e,_document:_0x37d802}=this,{color:_0x8427c3,name:_0x2cac76,ranges:_0x39ad53}=this[_0x11bc4f(0x1bc)],_0x3d9dba=_0x37d802[_0x11bc4f(0x2d6)](),{docsLeft:_0x53dd23,docsTop:_0x5bd168}=_0x3d9dba,_0x2e94c0=new _0x3ad41d(_0x3d9dba,_0x137d0e);for(const {startOffset:_0x5b962c,endOffset:_0x256879,rangeType:_0x2ccc79,segmentId:_0x3083d1,segmentPage:_0x5ad325,collapsed:_0x1ec32f,isActive:_0x55046a}of _0x39ad53){const _0x164a60=_0x137d0e[_0x11bc4f(0x12e)](_0x5b962c,!0x0,_0x3083d1,_0x5ad325);let _0x5abf21=_0x137d0e[_0x11bc4f(0x12e)](_0x256879,!0x0,_0x3083d1,_0x5ad325);if(_0x5abf21==null&&(_0x5abf21=_0x137d0e['findNodePositionByCharIndex'](_0x256879-0x1,!0x1,_0x3083d1,_0x5ad325)),_0x55046a){const {contentBoxPointGroup:_0x73b49b}=_0x2e94c0[_0x11bc4f(0xa1)](_0x5abf21,_0x5abf21);if(_0x73b49b[_0x11bc4f(0xea)]===0x0)continue;this[_0x11bc4f(0x1d4)](_0x8427c3,_0x73b49b,_0x53dd23,_0x5bd168,_0x2cac76),this[_0x11bc4f(0x2c0)]=this[_0x11bc4f(0x24a)]();}if(_0x164a60&&_0x5abf21){if(_0x2ccc79===_0x80033e[_0x11bc4f(0xf4)]){const _0x463498=new _0x545a0f(_0x3d9dba,_0x137d0e),{pointGroup:_0x114f8e}=(_0x3ce2c4=_0x463498[_0x11bc4f(0xa1)](_0x164a60,_0x5abf21))!=null?_0x3ce2c4:{};if(_0x114f8e==null||_0x114f8e[_0x11bc4f(0xea)]===0x0)continue;this[_0x11bc4f(0x187)](_0x8427c3,_0x114f8e,_0x53dd23,_0x5bd168);}else{if(!_0x1ec32f){const {borderBoxPointGroup:_0x2b0da3}=_0x2e94c0[_0x11bc4f(0xa1)](_0x164a60,_0x5abf21);if(_0x2b0da3[_0x11bc4f(0xea)]===0x0)continue;this['_drawTextRange'](_0x8427c3,_0x2b0da3,_0x53dd23,_0x5bd168);}}}}}[_0x331486(0x1d4)](_0x1ecb8a,_0x33fce3,_0x1dd523,_0x14dca8,_0x541797){const _0x51fd5b=_0x331486,_0x29f9e1=this[_0x51fd5b(0x13c)](_0x33fce3),{left:_0x213bbb,top:_0x1af0a2,height:_0x2f419d}=_0x29f9e1,_0x18b2f2=this[_0x51fd5b(0x27b)](),_0x1bf836=zi/_0x18b2f2,_0x145c64=new _0x38eea8(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8,'height':_0x2f419d,'width':Ki,'fill':_0x1ecb8a||_0x57c8a3(_0x572559[_0x51fd5b(0x12c)],0x0),'strokeWidth':_0x1bf836,'stroke':Ji,'evented':!0x0});this[_0x51fd5b(0x197)]=_0x145c64,this[_0x51fd5b(0x13b)][_0x51fd5b(0x256)](_0x145c64,_0x53e827);const _0x32925a=new _0x38eea8(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8-be/0x2,'height':be,'width':be,'fill':_0x1ecb8a||_0x57c8a3(_0x572559[_0x51fd5b(0x12c)],0x0),'strokeWidth':0x0,'stroke':_0x1ecb8a||_0x57c8a3(_0x572559['black'],0x0),'evented':!0x1});this[_0x51fd5b(0x251)]=_0x32925a,this[_0x51fd5b(0x13b)]['addObject'](_0x32925a,_0x53e827);const _0x289771=new Ee(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8-Q,'text':_0x541797,'color':_0x1ecb8a});this['_textBubble']=_0x289771,this[_0x51fd5b(0x13b)][_0x51fd5b(0x256)](_0x289771,_0x53e827),this['_hover']=!0x1;}[_0x331486(0x24a)](){const _0x5cfd86=_0x331486,_0x49ba35=this[_0x5cfd86(0x197)][_0x5cfd86(0x2bd)]['subscribeEvent'](()=>{const _0x59a599=_0x5cfd86;this[_0x59a599(0x247)]=!0x0;}),_0x532a46=this[_0x5cfd86(0x197)][_0x5cfd86(0x165)][_0x5cfd86(0xe3)](()=>{const _0x212fb0=_0x5cfd86;this[_0x212fb0(0xd4)]&&clearTimeout(this[_0x212fb0(0xd4)]),this[_0x212fb0(0xd4)]=setTimeout(()=>{const _0xcdb1bb=_0x212fb0;this[_0xcdb1bb(0x247)]=!0x1;},0x7d0);});return()=>{const _0x2b1650=_0x5cfd86;_0x49ba35[_0x2b1650(0x290)](),_0x532a46['unsubscribe']();};}[_0x331486(0x154)](_0x3adaf7,_0x1a320d,_0x60a93e,_0x49d7c8){const _0xe3dfee=_0x331486,_0xcf5def=new _0x3e6889(_0x3adaf7)[_0xe3dfee(0x2bf)](0.2)[_0xe3dfee(0x1fe)](),_0x31d882=new _0x45a19c(Xi+_0x460716(z),{'pointsGroup':_0x1a320d,'fill':_0xcf5def||_0x57c8a3(_0x572559['black'],0.2),'left':_0x60a93e,'top':_0x49d7c8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe3dfee(0x1b0)][_0xe3dfee(0x118)](_0x31d882),this[_0xe3dfee(0x13b)][_0xe3dfee(0x256)](_0x31d882,_0x53e827);}[_0x331486(0x187)](_0x3064d2,_0x54a1a8,_0x1bc4bb,_0x889c68){const _0x14e529=_0x331486,_0x346e0c=new _0x3e6889(_0x3064d2)[_0x14e529(0x2bf)](0.2)[_0x14e529(0x1fe)](),_0x2af30c=new _0x45a19c(Gi+_0x460716(z),{'pointsGroup':_0x54a1a8,'fill':_0x346e0c||_0x57c8a3(_0x572559['black'],0.2),'left':_0x1bc4bb,'top':_0x889c68,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x14e529(0x1b0)]['push'](_0x2af30c),this[_0x14e529(0x13b)][_0x14e529(0x256)](_0x2af30c,_0x53e827);}['_getAnchorBounding'](_0x4d0cfd){const _0x4ff2c3=_0x4d0cfd[0x0],_0x58e4c9=_0x4ff2c3[0x0],_0x3db56a=_0x4ff2c3[0x2],{x:_0x56494a,y:_0x3befd0}=_0x58e4c9,{x:_0x100f7f,y:_0x20d9ab}=_0x3db56a;return{'left':_0x56494a,'top':_0x3befd0,'width':_0x100f7f-_0x56494a,'height':_0x20d9ab-_0x3befd0};}[_0x331486(0x27b)](){const _0x52ef95=_0x331486,{scaleX:_0x197f89,scaleY:_0x28b820}=this['_scene'][_0x52ef95(0x239)]();return Math[_0x52ef95(0x2c5)](_0x197f89,_0x28b820);}}var Zi=Object[_0x331486(0x1ca)],Qi=(_0x3f326c,_0x5d2821,_0x4ac20d,_0x2bd422)=>{const _0x1f729c=_0x331486;for(var _0x5c003a=_0x2bd422>0x1?void 0x0:_0x2bd422?Zi(_0x5d2821,_0x4ac20d):_0x5d2821,_0x363688=_0x3f326c[_0x1f729c(0xea)]-0x1,_0x14e898;_0x363688>=0x0;_0x363688--)(_0x14e898=_0x3f326c[_0x363688])&&(_0x5c003a=_0x14e898(_0x5c003a)||_0x5c003a);return _0x5c003a;},ie=(_0x3d3b8e,_0xb4e722)=>(_0x5d07a2,_0x121a37)=>_0xb4e722(_0x5d07a2,_0x121a37,_0x3d3b8e);let Fe=class extends _0x57605c{constructor(_0x4a35f0,_0x378bc5,_0x13f1f5,_0x216c95,_0x24670f){const _0x7476bd=_0x331486;super(),_(this,_0x7476bd(0x281),[]),_(this,_0x7476bd(0x1f6),[]),(this[_0x7476bd(0x17b)]=_0x4a35f0,this['_docSkeletonManagerService']=_0x378bc5,this[_0x7476bd(0x2bb)]=_0x13f1f5,this['_commandService']=_0x216c95,this[_0x7476bd(0x216)]=_0x24670f,this['_init']());}[_0x331486(0x119)](){const _0x3aa802=_0x331486,_0x2b89de=this[_0x3aa802(0x17b)][_0x3aa802(0x19a)],_0x9b10b=this[_0x3aa802(0xef)];this[_0x3aa802(0xf5)](_0x48dc8f([this[_0x3aa802(0x2bb)][_0x3aa802(0x2a5)](_0x2b89de),this[_0x3aa802(0x216)][_0x3aa802(0x1e0)]])[_0x3aa802(0x181)](_0x442185(([_0x19b816,_0x73a1])=>({'skeleton':_0x9b10b['getSkeleton'](),'cursors':[..._0x19b816[_0x3aa802(0x125)]()][_0x3aa802(0x24f)](_0x6a9d03=>({..._0x6a9d03,'color':this[_0x3aa802(0x216)][_0x3aa802(0x269)](_0x6a9d03[_0x3aa802(0x15d)])}))})))[_0x3aa802(0x1e8)](_0x2d804a=>{const _0x16dd6d=_0x3aa802;if(this[_0x16dd6d(0xa0)](),_0x2d804a){const {skeleton:_0x461992,cursors:_0x319e09}=_0x2d804a;this[_0x16dd6d(0x249)](_0x461992,_0x319e09);}})),this[_0x3aa802(0x182)](),this[_0x3aa802(0x2a6)]();}['_updateCollabCursors'](_0x4209be,_0x3b481b){const _0x467cf2=_0x331486,{scene:_0x4c6fa8,mainComponent:_0x14a1dc}=this[_0x467cf2(0x17b)],_0x18d3f3=_0x3b481b[_0x467cf2(0x2b6)](_0x523a3e=>new ct(_0x523a3e,_0x4c6fa8,_0x4209be,_0x14a1dc));this[_0x467cf2(0x281)]=_0x18d3f3,this[_0x467cf2(0x1f6)]=_0x3b481b;}['_refreshCollabCursors'](){const _0x2da78b=_0x331486;this['_removeCollabCursors']();const {scene:_0x118df6,mainComponent:_0x2f9819}=this['_context'],_0x26c412=this[_0x2da78b(0xef)][_0x2da78b(0x103)](),_0x21a1c3=this[_0x2da78b(0x1f6)][_0x2da78b(0x2b6)](_0x1fb597=>new ct(_0x1fb597,_0x118df6,_0x26c412,_0x2f9819));this[_0x2da78b(0x281)]=_0x21a1c3;}['_removeCollabCursors'](){const _0x177454=_0x331486;this[_0x177454(0x281)][_0x177454(0x210)](_0x47b1c3=>_0x47b1c3[_0x177454(0x1af)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2b117e=_0x331486,_0x29fdef=[_0x56b6e8['id']];this[_0x2b117e(0xf5)](this['_commandService'][_0x2b117e(0x2b2)](_0x20137=>{const _0x5f4824=_0x2b117e;_0x29fdef[_0x5f4824(0x24d)](_0x20137['id'])&&_0x20137[_0x5f4824(0x8f)]['unitId']===this[_0x5f4824(0x17b)][_0x5f4824(0x19a)]&&this['_refreshCollabCursors']();}));}[_0x331486(0x182)](){const _0x28b0ce=_0x331486;this[_0x28b0ce(0xf5)](_0x13584e(this[_0x28b0ce(0x17b)][_0x28b0ce(0x190)][_0x28b0ce(0xb5)])['pipe'](_0x28f0a4(_0x3db997=>_0x3db997[_0x28b0ce(0x1d3)]===_0x30decc['resize']),_0x767ecc(0x10))[_0x28b0ce(0x1e8)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x384b36(_0x120002)),ie(0x2,_0x384b36(H)),ie(0x3,_0xd74a37),ie(0x4,_0x384b36(_0x4502e6))],Fe);const qi=0x1,en=1.5;class tn extends _0x16364b{constructor(_0x3b95e8,_0x563b2b){const _0x4723aa=_0x331486;super(_0x3b95e8,_0x563b2b),_(this,'_color'),_(this,_0x4723aa(0x204),!0x1),_(this,_0x4723aa(0x20e)),_(this,'_name',''),_(this,'_labelPosition',_0x4723aa(0x2bc)),_(this,_0x4723aa(0x15a)),(_0x563b2b&&this[_0x4723aa(0x1ff)](_0x563b2b),this[_0x4723aa(0x2bd)][_0x4723aa(0xe3)](()=>this[_0x4723aa(0x1ff)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4723aa(0x1ff)]({'hovered':!0x1})));}[_0x331486(0x1ff)](_0x225f11){const _0x1a0732=_0x331486;var _0x5d8b3f,_0x4441d0,_0x69c480,_0x349b5c,_0x5ee8ea,_0x209f8f;this[_0x1a0732(0x121)]=(_0x5d8b3f=_0x225f11[_0x1a0732(0x15d)])!=null?_0x5d8b3f:this[_0x1a0732(0x121)],this[_0x1a0732(0x204)]=(_0x4441d0=_0x225f11[_0x1a0732(0x16b)])!=null?_0x4441d0:this[_0x1a0732(0x204)],this['_range']=(_0x69c480=_0x225f11[_0x1a0732(0xe7)])!=null?_0x69c480:this[_0x1a0732(0x20e)],this[_0x1a0732(0x248)]=(_0x349b5c=_0x225f11['name'])!=null?_0x349b5c:this[_0x1a0732(0x248)],this['_labelPosition']=(_0x5ee8ea=_0x225f11[_0x1a0732(0xcd)])!=null?_0x5ee8ea:this[_0x1a0732(0x147)],this[_0x1a0732(0x15a)]=(_0x209f8f=_0x225f11[_0x1a0732(0x116)])!=null?_0x209f8f:this['_backgroundColor'],this['transformByState']({'width':_0x225f11['width'],'height':_0x225f11[_0x1a0732(0x25c)]});}['onMouseMove'](_0x44c46f){const _0xa87512=_0x331486,{row:_0x57ca29,column:_0xb9e51a}=_0x44c46f;if(_0x57ca29>=this[_0xa87512(0x20e)][_0xa87512(0x260)]&&_0x57ca29<=this['_range'][_0xa87512(0xf7)]&&_0xb9e51a>=this['_range'][_0xa87512(0x262)]&&_0xb9e51a<=this[_0xa87512(0x20e)]['endColumn']){this[_0xa87512(0x1ff)]({'hovered':!0x0});return;}this[_0xa87512(0x1ff)]({'hovered':!0x1});}['triggerDblclick'](_0x3e3887){return!0x1;}[_0x331486(0x9a)](_0x3e5066){const _0x46b4c5=_0x331486;_0x38eea8[_0x46b4c5(0xbb)](_0x3e5066,{'width':this['width'],'height':this['height'],'strokeWidth':en,'stroke':this[_0x46b4c5(0x121)],'evented':!0x1,'fill':this[_0x46b4c5(0x15a)]}),this['_hovered']&&(_0x3e5066[_0x46b4c5(0x102)](),_0x3e5066['transform'](0x1,0x0,0x0,0x1,this[_0x46b4c5(0x1fd)],this[_0x46b4c5(0x147)]==='bottom'?0x0:-Q),Ee[_0x46b4c5(0xbb)](_0x3e5066,{'text':this[_0x46b4c5(0x248)],'color':this[_0x46b4c5(0x121)]}),_0x3e5066[_0x46b4c5(0xb7)]());}}var sn=Object[_0x331486(0x1ca)],nn=(_0x28e373,_0x2ca278,_0x2d8c4d,_0x2cb800)=>{const _0x1ef949=_0x331486;for(var _0x3239c3=_0x2cb800>0x1?void 0x0:_0x2cb800?sn(_0x2ca278,_0x2d8c4d):_0x2ca278,_0x45f2d0=_0x28e373[_0x1ef949(0xea)]-0x1,_0xc8c934;_0x45f2d0>=0x0;_0x45f2d0--)(_0xc8c934=_0x28e373[_0x45f2d0])&&(_0x3239c3=_0xc8c934(_0x3239c3)||_0x3239c3);return _0x3239c3;},Ne=(_0x35c0e8,_0xfca416)=>(_0xa2c77e,_0x5107d7)=>_0xfca416(_0xa2c77e,_0x5107d7,_0x35c0e8);const rn=0x1389;let ke=class extends _0x57605c{constructor(_0x1b33e5,_0x58ef0c,_0x3e31a4,_0x17f500){const _0x235db9=_0x331486;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x235db9(0x17b)]=_0x1b33e5,this[_0x235db9(0x1ea)]=_0x58ef0c,this[_0x235db9(0x2bb)]=_0x3e31a4,this[_0x235db9(0x216)]=_0x17f500,this[_0x235db9(0x119)]());}[_0x331486(0x119)](){const _0x3d573b=_0x331486;this[_0x3d573b(0x1ea)][_0x3d573b(0x208)]['pipe'](_0x4acc07(this[_0x3d573b(0x134)]),_0x120aca(_0x5ef28e=>{const _0xeabd56=_0x3d573b;if(_0x5ef28e){const _0x4aed48=_0x5ef28e[_0xeabd56(0x95)];return _0x48dc8f(this['_collabCursorController'][_0xeabd56(0x2a5)](this[_0xeabd56(0x17b)][_0xeabd56(0x19a)]),this[_0xeabd56(0x216)]['currentTheme$'])[_0xeabd56(0x181)](_0x442185(([_0x3bb9cd,_0x56ff92])=>{const _0x557198=_0xeabd56,_0x23d14d=new Map();return _0x3bb9cd[_0x557198(0x210)]((_0x5467ff,_0x3a6158)=>{const _0x3612c7=_0x557198;if(_0x5467ff[_0x3612c7(0xe0)]===_0x4aed48){const _0xa94771={..._0x5467ff};_0xa94771['color']=this[_0x3612c7(0x216)][_0x3612c7(0x269)](_0x5467ff['color']),_0x23d14d[_0x3612c7(0x1c0)](_0x3a6158,_0xa94771);}}),{'skeleton':_0x5ef28e,'cursors':_0x23d14d};}));}return _0x218df2({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28883b,cursors:_0x34001a})=>{const _0x28601b=_0x3d573b;this[_0x28601b(0xa0)](),_0x28883b&&this['_updateCollabCursors'](_0x28883b,_0x34001a);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3d573b(0x1e8)](_0x37d511=>{const _0x1cf976=_0x3d573b;if(_0x37d511==null)return;const {skeleton:_0x3ab48c}=_0x37d511,{scene:_0x18fc22}=this[_0x1cf976(0x17b)];_0x18fc22[_0x1cf976(0x114)]['subscribeEvent'](_0x3554ba(_0xc43b61=>{const _0x45dd20=_0x1cf976;var _0x2d290f,_0x4b56e8;const {offsetX:_0x54b6e6,offsetY:_0x3155df}=_0xc43b61,{x:_0x38fcb9,y:_0x5c207c}=_0x18fc22[_0x45dd20(0x198)](_0x321485[_0x45dd20(0x259)]([_0x54b6e6,_0x3155df])),{scaleX:_0x2737a5,scaleY:_0x4e0e3c}=_0x18fc22['getAncestorScale'](),_0x588006=_0x18fc22[_0x45dd20(0x2ca)](_0x1253b5[_0x45dd20(0x193)]),_0x592a61=_0x18fc22[_0x45dd20(0x136)](_0x321485[_0x45dd20(0x259)]([_0x38fcb9,_0x5c207c]),_0x588006),_0x44715d=_0x3ab48c[_0x45dd20(0x15e)](_0x54b6e6,_0x3155df,_0x2737a5,_0x4e0e3c,_0x592a61);((_0x2d290f=this['_lastPointer'])==null?void 0x0:_0x2d290f[_0x45dd20(0xd6)])===_0x44715d['column']&&((_0x4b56e8=this[_0x45dd20(0x1f0)])==null?void 0x0:_0x4b56e8[_0x45dd20(0xfb)])===_0x44715d[_0x45dd20(0xfb)]||this['_cursors'][_0x45dd20(0x210)](_0x139898=>{const _0x182826=_0x45dd20;_0x139898[_0x182826(0x26e)](_0x44715d);});},0x64));});}[_0x331486(0x249)](_0xd7c038,_0xc96244){const _0x31af78=_0x331486;var _0x6bb6a0;const _0x53195c=(_0x6bb6a0=this[_0x31af78(0x1ea)][_0x31af78(0x29e)]())==null?void 0x0:_0x6bb6a0['skeleton'];if(!_0x53195c)return;const _0xce5588=this[_0x31af78(0x140)]();if(!_0xce5588)return;this[_0x31af78(0x1f6)]['forEach'](_0x1adee9=>{const _0x164259=_0x31af78;_0x1adee9[_0x164259(0x27c)]();});const {scene:_0x29c554}=_0xce5588,_0x26b877=on(Array[_0x31af78(0x2cc)](_0xc96244[_0x31af78(0x125)]()))[_0x31af78(0x2b6)](_0x2ee567=>{const _0x44762c=_0x31af78,{color:_0x3fdaa1,range:_0x8e2e87,name:_0xfb95fe,selection:_0x56259a,sheetID:_0x206738}=_0x2ee567,{startColumn:_0x2bc6f5,startRow:_0x37ead4,endColumn:_0x14ea3a,endRow:_0x59eef4}=_0x8e2e87,_0x4d0005=_0x50883c(_0x37ead4,_0x2bc6f5,_0x29c554,_0x53195c),_0x5aab03=_0x50883c(_0x59eef4,_0x14ea3a,_0x29c554,_0x53195c),{columnHeaderHeightAndMarginTop:_0x52f8f5}=_0x53195c,{startX:_0x21742c,startY:_0x13555c}=_0x4d0005,{endX:_0x1917df,endY:_0x2608ce}=_0x5aab03,_0xe50a30=_0x1917df-_0x21742c,_0x1d5429=_0x2608ce-_0x13555c,_0x430b1e={'labelPosition':_0x13555c-_0x52f8f5>=Q?_0x44762c(0x2bc):_0x44762c(0x22b),'sheetID':_0x206738,'range':_0x8e2e87,'color':_0x3fdaa1,'name':_0xfb95fe,'selection':_0x56259a,'left':_0x21742c,'top':_0x13555c,'width':_0xe50a30,'height':_0x1d5429,'evented':!0x1,'zIndex':rn};return new tn(_0xfb95fe,_0x430b1e);});_0x29c554[_0x31af78(0x2b4)](_0x26b877,qi),this[_0x31af78(0x1f6)]=new Set(_0x26b877);}[_0x331486(0xa0)](){const _0x1e822f=_0x331486;var _0x345513;(_0x345513=this[_0x1e822f(0x1f6)])==null||_0x345513[_0x1e822f(0x210)](_0x27d884=>_0x27d884[_0x1e822f(0x1af)]());}[_0x331486(0x140)](){const _0x3d200a=_0x331486;return _0x128286(this[_0x3d200a(0x17b)][_0x3d200a(0x164)],this[_0x3d200a(0x17b)]);}};ke=nn([Ne(0x1,_0x384b36(_0x362389)),Ne(0x2,_0x384b36(H)),Ne(0x3,_0x384b36(_0x4502e6))],ke);function on(_0x581907){const _0x3dc4bf=_0x331486,_0x271f84=new Map();return _0x581907[_0x3dc4bf(0x210)](_0x12100d=>{const _0x5ef4b0=_0x3dc4bf;if(_0x271f84[_0x5ef4b0(0x1ef)](_0x12100d[_0x5ef4b0(0x1b5)])){const _0x105953=_0x271f84['get'](_0x12100d[_0x5ef4b0(0x1b5)]);_0x105953['name']+=',\x20'+_0x12100d[_0x5ef4b0(0x169)];}else _0x271f84[_0x5ef4b0(0x1c0)](_0x12100d['selection'],_0x12100d);}),Array[_0x3dc4bf(0x2cc)](_0x271f84[_0x3dc4bf(0x125)]());}var an=Object[_0x331486(0x1ca)],cn=(_0x4552af,_0x1f176d,_0x50be84,_0x38339b)=>{const _0x1e1bcf=_0x331486;for(var _0xc0fd13=_0x38339b>0x1?void 0x0:_0x38339b?an(_0x1f176d,_0x50be84):_0x1f176d,_0xdc0c96=_0x4552af[_0x1e1bcf(0xea)]-0x1,_0x853895;_0xdc0c96>=0x0;_0xdc0c96--)(_0x853895=_0x4552af[_0xdc0c96])&&(_0xc0fd13=_0x853895(_0xc0fd13)||_0xc0fd13);return _0xc0fd13;},F=(_0x4f4e95,_0x359e0b)=>(_0x5cec0a,_0x896973)=>_0x359e0b(_0x5cec0a,_0x896973,_0x4f4e95);let _e=class extends _0x4064cc{constructor(_0xb85c34,_0x511902,_0x2ae308,_0x35ada1,_0x58fff4,_0x24aaa1){const _0x48c5f3=_0x331486;super(),this[_0x48c5f3(0x27d)]=_0xb85c34,this['_localCacheService']=_0x511902,this[_0x48c5f3(0x117)]=_0x2ae308,this['_messageService']=_0x35ada1,this[_0x48c5f3(0x188)]=_0x58fff4,this[_0x48c5f3(0x2d5)]=_0x24aaa1,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x331486(0x133)](){const _0x39adb1=_0x331486;this[_0x39adb1(0xf5)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x127fb7=_0x39adb1;if(this[_0x127fb7(0x27a)][_0x127fb7(0x177)][_0x127fb7(0x209)])return this[_0x127fb7(0x2d5)]['t'](_0x127fb7(0x1dd));}));}[_0x331486(0x11c)](){const _0x1be63d=_0x331486;this[_0x1be63d(0xf5)](this[_0x1be63d(0x117)][_0x1be63d(0x18a)][_0x1be63d(0x1e8)](_0x269aa6=>{const _0x16f943=_0x1be63d;_0x269aa6['id']===_0x282a4d[_0x16f943(0xce)]&&this[_0x16f943(0x17a)]['show']({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x11e))}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x148)]&&this[_0x16f943(0x17a)]['show']({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x245))}),_0x269aa6['id']===_0x282a4d['PERMISSION_DENIED']&&this[_0x16f943(0x188)][_0x16f943(0x268)]({'title':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x294)),'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x9c)),'type':_0x16f943(0x17e),'duration':0x0}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x28a)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x2a0)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x245))+'('+_0x269aa6[_0x16f943(0x126)]+')'}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x11d)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x269aa6[_0x16f943(0x126)]||'')}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x22c)]&&this['_messageService'][_0x16f943(0x268)]({'type':_0x27e95d['Warning'],'content':this['_localeService']['t'](_0x16f943(0x272))}),_0x269aa6['id']===_0x282a4d['SOCKET_FAILED']&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d['Error'],'content':this[_0x16f943(0x2d5)]['t']('session.connection-failed')}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x230)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x2a0)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x171))});}));}};_e=cn([F(0x0,_0x113bc4),F(0x1,_0x24b451),F(0x2,_0x384b36(_0x1939b6)),F(0x3,_0xc89ae7),F(0x4,_0x10311c),F(0x5,_0x384b36(_0x4b3f44))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x109d8b,_0x1db62d,_0x53d2e0,_0xa947af)=>{for(var _0x94b11f=_0xa947af>0x1?void 0x0:_0xa947af?_n(_0x1db62d,_0x53d2e0):_0x1db62d,_0x280584=_0x109d8b['length']-0x1,_0x21bbf7;_0x280584>=0x0;_0x280584--)(_0x21bbf7=_0x109d8b[_0x280584])&&(_0x94b11f=_0x21bbf7(_0x94b11f)||_0x94b11f);return _0x94b11f;},ne=(_0x8e670b,_0x5e1b59)=>(_0x511d12,_0x77df77)=>_0x5e1b59(_0x511d12,_0x77df77,_0x8e670b);let le=class extends _0x4064cc{constructor(_0x18fac6,_0x45b201,_0x4932dd,_0xe6b611){const _0x183a65=_0x331486;super(),_(this,_0x183a65(0x199)),(this[_0x183a65(0x1fb)]=_0x18fac6,this[_0x183a65(0x202)]=_0x45b201,this[_0x183a65(0xb6)]=_0x4932dd,this['_collaborationSessionService']=_0xe6b611,this[_0x183a65(0x119)]());}[_0x331486(0x119)](){const _0xa69f1c=_0x331486;this['_initWindowErrorListener'](),this[_0xa69f1c(0x206)](),this[_0xa69f1c(0x186)](),this['_initUserListener']();}[_0x331486(0x170)](){const _0x1e884b=_0x331486;this[_0x1e884b(0xf5)](this[_0x1e884b(0x18b)][_0x1e884b(0xec)][_0x1e884b(0x1e8)](_0x38520f=>{const _0x20ef46=_0x1e884b;this[_0x20ef46(0x199)]=_0x38520f==null?void 0x0:_0x38520f[_0x20ef46(0x98)];}));}[_0x331486(0x278)](){const _0x4830c9=_0x331486,_0x480158=_0x1a0c1e=>{const _0x409b3e=_0x512f;var _0x48482b;this[_0x409b3e(0xc8)](_0x409b3e(0x17e),_0x409b3e(0xd5)+_0x1a0c1e['message']+'\x20at\x20'+_0x1a0c1e[_0x409b3e(0x1f1)]+':'+_0x1a0c1e['lineno']+':'+_0x1a0c1e[_0x409b3e(0x241)]+'\x0a'+(((_0x48482b=_0x1a0c1e['error'])==null?void 0x0:_0x48482b[_0x409b3e(0x178)])||''));};window[_0x4830c9(0x21f)]('error',_0x480158),this['disposeWithMe'](()=>{const _0x5bf946=_0x4830c9;window[_0x5bf946(0xf3)](_0x5bf946(0x17e),_0x480158);});}[_0x331486(0x206)](){const _0x254b37=_0x331486,_0x26324f=_0x331563=>{const _0x4dc70f=_0x512f;this[_0x4dc70f(0xc8)](_0x4dc70f(0x17e),_0x4dc70f(0x1dc)+_0x331563['reason']);};window[_0x254b37(0x21f)](_0x254b37(0xb3),_0x26324f),this['disposeWithMe'](()=>{const _0x19a37c=_0x254b37;window[_0x19a37c(0xf3)](_0x19a37c(0xb3),_0x26324f);});}['_monkeyPatchLogService'](){const _0x4a85b6=_0x331486,_0x424eb7=this['_logService']['error']['bind'](this[_0x4a85b6(0xb6)]);this[_0x4a85b6(0xb6)][_0x4a85b6(0x17e)]=(..._0x5d2399)=>{const _0x423ff9=_0x4a85b6,_0x39f1d5=_0x5d2399[_0x423ff9(0x2b6)](_0xab3446=>_0xab3446 instanceof Error?_0xab3446[_0x423ff9(0x8c)]+'\x0a'+_0xab3446[_0x423ff9(0x178)]:String(_0xab3446))[_0x423ff9(0x2b0)]('\x20');this[_0x423ff9(0xc8)]('error',_0x423ff9(0xc7)+_0x39f1d5),_0x424eb7(..._0x5d2399);},this['disposeWithMe'](()=>{const _0x248a7e=_0x4a85b6;this[_0x248a7e(0xb6)][_0x248a7e(0x17e)]=_0x424eb7;});}[_0x331486(0xc8)](_0xb8385d,_0x552299){const _0x25ba2e=_0x331486;try{const _0xa035d7={'userId':this[_0x25ba2e(0x199)],'logLabel':_0xb8385d,'content':_0x552299};this['_httpService'][_0x25ba2e(0x18e)](_0x25ba2e(0x273),{'body':_0xa035d7})[_0x25ba2e(0x1aa)](()=>{});}catch{}}};le=ln([ne(0x0,_0x384b36(_0x2975ff)),ne(0x1,_0x384b36(_0x3fa719)),ne(0x2,_0x1f29f4),ne(0x3,_0x384b36(_0x46dc37))],le);const hn=_0x331486(0x1bb),_t={};var un=Object[_0x331486(0x1ca)],dn=(_0x5384fe,_0x3a1f20,_0x54147a,_0x43fa9d)=>{const _0x350aa9=_0x331486;for(var _0x14c58d=_0x43fa9d>0x1?void 0x0:_0x43fa9d?un(_0x3a1f20,_0x54147a):_0x3a1f20,_0x5dd4f1=_0x5384fe[_0x350aa9(0xea)]-0x1,_0x475d90;_0x5dd4f1>=0x0;_0x5dd4f1--)(_0x475d90=_0x5384fe[_0x5dd4f1])&&(_0x14c58d=_0x475d90(_0x14c58d)||_0x14c58d);return _0x14c58d;},lt=(_0x1718b5,_0x53871b)=>(_0x31b3b3,_0x390e73)=>_0x53871b(_0x31b3b3,_0x390e73,_0x1718b5);let he=class{constructor(_0x1cec2b,_0x20ab8c){const _0x1c0645=_0x331486;this[_0x1c0645(0xfc)]=_0x1cec2b,this['_renderManagerService']=_0x20ab8c;}[_0x331486(0xa6)](_0x4a2ecf){const _0x49652a=_0x331486;this[_0x49652a(0x1e1)](_0x4a2ecf),this[_0x49652a(0x128)](_0x4a2ecf);}[_0x331486(0xa2)](_0x2bbf2d){const _0x2e439b=_0x331486,{unitID:_0x4184a7}=_0x2bbf2d,_0x1f95ac=this[_0x2e439b(0x13e)][_0x2e439b(0x1d9)](_0x4184a7)['with'](_0x4518ea),{redoCache:_0x3c278f}=_0x1f95ac['getUndoRedoMutationParamsCache']();if(_0x3c278f[_0x2e439b(0xea)]===0x0)return _0x2bbf2d;let _0x278246=_0x24ffc8[_0x2e439b(0x1ee)](_0x2bbf2d[_0x2e439b(0x2ae)][0x0]);for(let _0x3bcabc=0x0;_0x3bcabc<_0x3c278f[_0x2e439b(0xea)];_0x3bcabc++){const _0x843686={'id':_0x2e439b(0xb1),'params':{..._0x3c278f[_0x3bcabc]}},_0x3e9170=this[_0x2e439b(0xfc)]['transformMutation'](_0x278246,_0x843686,!0x1);if(_0x3d60d7(_0x3e9170))throw _0x3e9170[_0x2e439b(0x17e)];_0x278246=_0x3e9170['m1Prime'];}return{..._0x24ffc8[_0x2e439b(0x1ee)](_0x2bbf2d),'mutations':[_0x278246]};}[_0x331486(0x1e1)](_0x466eff){const _0x42b516=_0x331486,{unitID:_0x4cb995}=_0x466eff,_0x1aa7a0=this[_0x42b516(0x13e)][_0x42b516(0x1d9)](_0x4cb995)[_0x42b516(0x222)](_0x4518ea),{undoCache:_0xa008f0,redoCache:_0xeb939c}=_0x1aa7a0[_0x42b516(0x9f)]();if(_0xa008f0[_0x42b516(0xea)]===0x0||_0xeb939c['length']===0x0)return;const _0x1cc449=[],_0x4c8fd2=[];let _0x2dad01=_0x24ffc8['deepClone'](_0x466eff[_0x42b516(0x2ae)][0x0]),_0x3a5926=_0x24ffc8['deepClone'](_0x466eff['mutations'][0x0]);for(let _0x19e310=_0xa008f0[_0x42b516(0xea)]-0x1;_0x19e310>=0x0;_0x19e310--){const _0x137780={'id':_0x42b516(0xb1),'params':{..._0xa008f0[_0x19e310]}},_0x3d824a={'id':'doc.mutation.rich-text-editing','params':{..._0xeb939c[_0x19e310]}},_0x1f5d9c=this[_0x42b516(0xfc)][_0x42b516(0x2d0)](_0x2dad01,_0x137780,!0x1),_0x203bc0=this[_0x42b516(0xfc)][_0x42b516(0x2d0)](_0x3a5926,_0x3d824a,!0x1);if(_0x3d60d7(_0x1f5d9c))throw _0x1f5d9c[_0x42b516(0x17e)];if(_0x3d60d7(_0x203bc0))throw _0x203bc0[_0x42b516(0x17e)];_0x1cc449[_0x42b516(0x2b5)](_0x1f5d9c['m2Prime'][_0x42b516(0x8f)]),_0x4c8fd2[_0x42b516(0x2b5)](_0x203bc0[_0x42b516(0x264)][_0x42b516(0x8f)]),_0x2dad01=_0x1f5d9c[_0x42b516(0x25b)],_0x3a5926=_0x203bc0[_0x42b516(0x25b)];}_0x1aa7a0['setUndoRedoMutationParamsCache']({'undoCache':_0x1cc449,'redoCache':_0x4c8fd2});}[_0x331486(0x128)](_0x60b45){const _0x126672=_0x331486,{unitID:_0x26b203}=_0x60b45,_0x3cc720=this['_renderManagerService']['getRenderById'](_0x26b203)[_0x126672(0x222)](_0x4518ea),_0x36f1cc=_0x3cc720['getActiveRange']();if(_0x36f1cc==null)return;const _0xeeef3c=[{'id':_0x126672(0xb1),'params':{'unitId':_0x60b45[_0x126672(0x203)],'actions':null,'textRanges':[_0x36f1cc]}}],_0x53be24=this[_0x126672(0xfc)][_0x126672(0x172)](_0x60b45,_0xeeef3c);if(!_0xa9160d(_0x53be24))throw _0x53be24[_0x126672(0x17e)];const _0x5c6985=_0x53be24[_0x126672(0x264)][0x0][_0x126672(0x8f)][_0x126672(0x1d1)];Array['isArray'](_0x5c6985)&&_0x5c6985[_0x126672(0xea)]&&_0x3cc720[_0x126672(0x1f4)](_0x5c6985[0x0]);}};he=dn([lt(0x0,_0x2843ad),lt(0x1,_0x450a3a)],he);var Sn=Object['getOwnPropertyDescriptor'],mn=(_0x4fd97b,_0x38937a,_0x33ab1a,_0x34a1e3)=>{for(var _0x31f894=_0x34a1e3>0x1?void 0x0:_0x34a1e3?Sn(_0x38937a,_0x33ab1a):_0x38937a,_0x38c346=_0x4fd97b['length']-0x1,_0x2f6aec;_0x38c346>=0x0;_0x38c346--)(_0x2f6aec=_0x4fd97b[_0x38c346])&&(_0x31f894=_0x2f6aec(_0x31f894)||_0x31f894);return _0x31f894;},Le=(_0x4c661c,_0x215cd6)=>(_0x28ef81,_0x438a07)=>_0x215cd6(_0x28ef81,_0x438a07,_0x4c661c);let ue=class{constructor(_0x4aad44,_0xd61b75,_0x1bf591){const _0x29d332=_0x331486;this[_0x29d332(0x1fb)]=_0x4aad44,this[_0x29d332(0xfc)]=_0xd61b75,this[_0x29d332(0x267)]=_0x1bf591;}[_0x331486(0xf8)](_0x4eba7){const _0x1c0aad=_0x331486;this[_0x1c0aad(0x26d)](_0x4eba7);}['transformRemoteChangeset'](_0x29aa66){const _0x528b9d=_0x331486,{unitID:_0x4407b0}=_0x29aa66,{collaboration:_0x5b0bbb}=this[_0x528b9d(0x267)][_0x528b9d(0x1cd)](_0x4407b0);if(_0x5b0bbb[_0x528b9d(0xea)]===0x0)return _0x29aa66;let _0x3c4146=_0x24ffc8['deepClone'](_0x29aa66[_0x528b9d(0x2ae)][0x0]);for(let _0x4cfb88=0x0;_0x4cfb88<_0x5b0bbb[_0x528b9d(0xea)];_0x4cfb88++){const _0x12a0c9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b0bbb[_0x4cfb88]['unitId'],..._0x5b0bbb[_0x4cfb88][_0x528b9d(0x1ed)]}},_0x2ab49f=this['_transformService'][_0x528b9d(0x2d0)](_0x3c4146,_0x12a0c9,!0x1);if(_0x3d60d7(_0x2ab49f))throw _0x2ab49f[_0x528b9d(0x17e)];_0x3c4146=_0x2ab49f[_0x528b9d(0x25b)];}return{..._0x24ffc8['deepClone'](_0x29aa66),'mutations':[_0x3c4146]};}[_0x331486(0x26d)](_0x3130e8){const _0x5ed594=_0x331486,{unitID:_0x3a049a}=_0x3130e8,{history:_0x3ccb97,collaboration:_0x50e49e}=this[_0x5ed594(0x267)]['getStateCache'](_0x3a049a);if(_0x3ccb97['length']===0x0&&_0x50e49e[_0x5ed594(0xea)]===0x0)return;const _0x5b977a=[],_0x39c935=[];let _0xd6af5a=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]),_0x285cc4=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8['mutations'][0x0]);for(let _0xb8e52a=_0x3ccb97[_0x5ed594(0xea)]-0x1;_0xb8e52a>=0x0;_0xb8e52a--){const _0x5f1057={'id':_0x5ed594(0xb1),'params':{'unitId':_0x3ccb97[_0xb8e52a][_0x5ed594(0x19a)],..._0x3ccb97[_0xb8e52a][_0x5ed594(0x293)]}},_0x58f4c9={'id':_0x5ed594(0xb1),'params':{'unitId':_0x3ccb97[_0xb8e52a]['unitId'],..._0x3ccb97[_0xb8e52a][_0x5ed594(0x1ed)]}},_0x3d5e1a=this[_0x5ed594(0xfc)][_0x5ed594(0x2d0)](_0xd6af5a,_0x5f1057,!0x1),_0x54403b=this['_transformService'][_0x5ed594(0x2d0)](_0x285cc4,_0x58f4c9,!0x1);if(_0x3d60d7(_0x3d5e1a))throw _0x3d5e1a[_0x5ed594(0x17e)];if(_0x3d60d7(_0x54403b))throw _0x54403b['error'];_0x5b977a[_0x5ed594(0x2b5)]({..._0x3ccb97[_0xb8e52a],'undoState':_0x3d5e1a[_0x5ed594(0x264)][_0x5ed594(0x8f)],'redoState':_0x54403b[_0x5ed594(0x264)][_0x5ed594(0x8f)]}),_0xd6af5a=_0x3d5e1a[_0x5ed594(0x25b)],_0x285cc4=_0x54403b[_0x5ed594(0x25b)];}_0xd6af5a=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]),_0x285cc4=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]);for(let _0x299179=_0x50e49e[_0x5ed594(0xea)]-0x1;_0x299179>=0x0;_0x299179--){const _0x1a222f={'id':_0x5ed594(0xb1),'params':{'unitId':_0x50e49e[_0x299179]['unitId'],..._0x50e49e[_0x299179][_0x5ed594(0x293)]}},_0x379e5c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50e49e[_0x299179][_0x5ed594(0x19a)],..._0x50e49e[_0x299179]['redoState']}},_0x2e1d90=this[_0x5ed594(0xfc)][_0x5ed594(0x2d0)](_0xd6af5a,_0x1a222f,!0x1),_0x5be10e=this[_0x5ed594(0xfc)]['transformMutation'](_0x285cc4,_0x379e5c,!0x1);if(_0x3d60d7(_0x2e1d90))throw _0x2e1d90[_0x5ed594(0x17e)];if(_0x3d60d7(_0x5be10e))throw _0x5be10e['error'];_0x39c935['unshift']({..._0x50e49e[_0x299179],'undoState':_0x2e1d90[_0x5ed594(0x264)]['params'],'redoState':_0x5be10e[_0x5ed594(0x264)][_0x5ed594(0x8f)]}),_0xd6af5a=_0x2e1d90[_0x5ed594(0x25b)],_0x285cc4=_0x5be10e[_0x5ed594(0x25b)];}this[_0x5ed594(0x267)][_0x5ed594(0x16f)](_0x3a049a,{'history':_0x5b977a,'collaboration':_0x39c935});}};ue=mn([Le(0x0,_0x384b36(_0x2975ff)),Le(0x1,_0x2843ad),Le(0x2,_0x384b36(_0x31ecfe))],ue);var In=Object[_0x331486(0x1ca)],fn=(_0x1d6bde,_0x395464,_0x51244e,_0x10134d)=>{const _0x360076=_0x331486;for(var _0x1577aa=_0x10134d>0x1?void 0x0:_0x10134d?In(_0x395464,_0x51244e):_0x395464,_0x54623e=_0x1d6bde[_0x360076(0xea)]-0x1,_0x261cc8;_0x54623e>=0x0;_0x54623e--)(_0x261cc8=_0x1d6bde[_0x54623e])&&(_0x1577aa=_0x261cc8(_0x1577aa)||_0x1577aa);return _0x1577aa;},ht=(_0x45e98d,_0x168e46)=>(_0x47f746,_0x4d9156)=>_0x168e46(_0x47f746,_0x4d9156,_0x45e98d);let de=class{constructor(_0x36b54c,_0xdde101){const _0x355d50=_0x331486;this[_0x355d50(0x1fb)]=_0x36b54c,this[_0x355d50(0xfc)]=_0xdde101;}[_0x331486(0x1b8)](_0x9a63f){const _0x277452=_0x331486;var _0x1bc2c3;const _0x180982=this[_0x277452(0x1fb)][_0x277452(0x1e7)](_0x1bc8e5),_0x57b81b=(_0x1bc2c3=_0x180982[_0x277452(0x13f)]())!=null?_0x1bc2c3:[];if(_0x57b81b[_0x277452(0xea)]===0x0)return;const _0x1b47d1=_0x9a63f[_0x277452(0x203)],_0x1482ec=[{'id':_0x277452(0xb1),'params':{'unitId':_0x1b47d1,'actions':null,'textRanges':_0x57b81b}}],_0x1e2f8f=this['_transformService'][_0x277452(0x172)](_0x9a63f,_0x1482ec);if(!_0xa9160d(_0x1e2f8f))throw _0x1e2f8f[_0x277452(0x17e)];const _0x25948a=_0x1e2f8f['m2Prime'][0x0][_0x277452(0x8f)][_0x277452(0x1d1)];Array[_0x277452(0x238)](_0x25948a)&&_0x25948a['length']&&_0x180982[_0x277452(0xbe)](_0x25948a,{'unitId':_0x1b47d1,'subUnitId':_0x1b47d1},!0x1);}};de=fn([ht(0x0,_0x384b36(_0x2975ff)),ht(0x1,_0x2843ad)],de);var gn=Object[_0x331486(0x1ca)],vn=(_0x4aeeb4,_0x47d1f5,_0x2c963d,_0x3421e7)=>{for(var _0x54f66a=_0x3421e7>0x1?void 0x0:_0x3421e7?gn(_0x47d1f5,_0x2c963d):_0x47d1f5,_0xfc6fb0=_0x4aeeb4['length']-0x1,_0x23b85a;_0xfc6fb0>=0x0;_0xfc6fb0--)(_0x23b85a=_0x4aeeb4[_0xfc6fb0])&&(_0x54f66a=_0x23b85a(_0x54f66a)||_0x54f66a);return _0x54f66a;},U=(_0x582e1a,_0x33d608)=>(_0x4d963e,_0x1be16e)=>_0x33d608(_0x4d963e,_0x1be16e,_0x582e1a);let Se=class extends _0x4064cc{constructor(_0x4c083d,_0x22af3a,_0x5323a6,_0xdd80e7,_0x389200,_0x1fa679,_0x1aa028,_0xecab3e){const _0x4780b6=_0x331486;super(),_(this,'_status$',new _0x5adb5d(_0x1917c2['NOT_COLLAB'])),(this[_0x4780b6(0x267)]=_0x4c083d,this[_0x4780b6(0x233)]=_0x22af3a,this['_docTransformIMECacheService']=_0x5323a6,this[_0x4780b6(0x283)]=_0xdd80e7,this['_docTransformSelectionsService']=_0x389200,this['_docSyncEditingCollabCursorService']=_0x1fa679,this['_messageService']=_0x1aa028,this[_0x4780b6(0x2d5)]=_0xecab3e,this[_0x4780b6(0x298)]());}[_0x331486(0x298)](){const _0x2aeaee=_0x331486;this['disposeWithMe'](this[_0x2aeaee(0x233)][_0x2aeaee(0x12d)]['subscribe'](_0x33dd6c=>{const _0x295d57=_0x2aeaee,_0x1814a7=this[_0x295d57(0x267)][_0x295d57(0xde)][_0x295d57(0x1e8)](_0x4ceb80=>{const _0x5729b3=_0x295d57;if(_0x4ceb80==null)return;const {unitId:_0x2c5251,redoState:_0x2bf0ae,commandId:_0x42158d}=_0x4ceb80;if(_0x2c5251!==_0x33dd6c['unitID'])return;const _0x5c6f9b={'id':_0x42158d,'type':_0x224740[_0x5729b3(0x214)],'params':{'unitId':_0x2c5251,'actions':_0x2bf0ae[_0x5729b3(0x1d0)],'textRanges':null}};_0x33dd6c[_0x5729b3(0x299)](_0x5c6f9b);});if(_0x33dd6c[_0x295d57(0xf5)](_0x1814a7),_0x33dd6c instanceof _0x1fd1f0){const _0x1c35dd={'onTransformIME':_0x473ce2=>this[_0x295d57(0x201)][_0x295d57(0xa6)](_0x473ce2),'onTransformState':_0x1553bb=>this[_0x295d57(0x283)]['transformStateCache'](_0x1553bb),'onTransformSelections':_0x2f3848=>this[_0x295d57(0x2a9)][_0x295d57(0x1b8)](_0x2f3848),'onSyncEditingCollabCursor':_0x5257ad=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x5257ad),'onTransformRemoteChangesetByIMECache':_0xe76efd=>this[_0x295d57(0x201)][_0x295d57(0xa2)](_0xe76efd),'onTransformRemoteChangesetByStateCache':_0xc10c06=>this[_0x295d57(0x283)][_0x295d57(0xa2)](_0xc10c06)};_0x33dd6c[_0x295d57(0x227)](_0x1c35dd);}}));}};Se=vn([U(0x0,_0x384b36(_0x31ecfe)),U(0x1,_0x384b36(_0x24f9da)),U(0x2,_0x384b36(he)),U(0x3,_0x384b36(ue)),U(0x4,_0x384b36(de)),U(0x5,_0x384b36(ze)),U(0x6,_0xc89ae7),U(0x7,_0x384b36(_0x4b3f44))],Se);var Z=(_0x10e411=>(_0x10e411[_0x10e411[_0x331486(0xb4)]=0x0]=_0x331486(0xb4),_0x10e411[_0x10e411['OK']=0x1]='OK',_0x10e411[_0x10e411[_0x331486(0xc0)]=0x2]=_0x331486(0xc0),_0x10e411[_0x10e411['PERMISSION_DENIED']=0x3]=_0x331486(0x297),_0x10e411[_0x10e411[_0x331486(0xda)]=0x4]='NOT_FOUND',_0x10e411[_0x10e411['UNAUTHENTICATED']=0x5]=_0x331486(0xc3),_0x10e411[_0x10e411[_0x331486(0x10a)]=0x6]=_0x331486(0x10a),_0x10e411[_0x10e411[_0x331486(0x1a4)]=0x7]='INVALID_ARGUMENT',_0x10e411[_0x10e411[_0x331486(0x1b2)]=0x8]='TOO_MANY_REQUESTS',_0x10e411[_0x10e411[_0x331486(0x2ac)]=0x9]=_0x331486(0x2ac),_0x10e411[_0x10e411[_0x331486(0x12b)]=0xa]=_0x331486(0x12b),_0x10e411[_0x10e411[_0x331486(0x24c)]=0xb]=_0x331486(0x24c),_0x10e411[_0x10e411[_0x331486(0x1a6)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x10e411[_0x10e411['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x10e411[_0x10e411[_0x331486(0x2a2)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x10e411[_0x10e411['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x10e411[_0x10e411[_0x331486(0x242)]=0x10]=_0x331486(0x242),_0x10e411[_0x10e411[_0x331486(0xff)]=0x64]=_0x331486(0xff),_0x10e411[_0x10e411[_0x331486(0x253)]=0x65]=_0x331486(0x253),_0x10e411[_0x10e411[_0x331486(0x26f)]=0xc9]='USER_NOT_FOUND',_0x10e411[_0x10e411['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x10e411[_0x10e411[_0x331486(0x2cb)]=0x1389]=_0x331486(0x2cb),_0x10e411[_0x10e411[_0x331486(0x8a)]=0x1771]=_0x331486(0x8a),_0x10e411[_0x10e411[_0x331486(0xb9)]=0x1772]=_0x331486(0xb9),_0x10e411[_0x10e411[_0x331486(0x229)]=0x1773]=_0x331486(0x229),_0x10e411[_0x10e411[_0x331486(0x1e5)]=0x1b59]=_0x331486(0x1e5),_0x10e411[_0x10e411[_0x331486(0xfe)]=0x1b5a]=_0x331486(0xfe),_0x10e411[_0x10e411[_0x331486(0x16c)]=0x1b5b]=_0x331486(0x16c),_0x10e411[_0x10e411['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x331486(0x2d2),_0x10e411[_0x10e411[_0x331486(0xd7)]=0x1b5d]=_0x331486(0xd7),_0x10e411[_0x10e411[_0x331486(0x2a8)]=0x1f41]=_0x331486(0x2a8),_0x10e411[_0x10e411[_0x331486(0x217)]=0x2329]=_0x331486(0x217),_0x10e411[_0x10e411[_0x331486(0x8b)]=0x232a]=_0x331486(0x8b),_0x10e411[_0x10e411['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x331486(0x240),_0x10e411[_0x10e411[_0x331486(0xdc)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x10e411[_0x10e411[_0x331486(0x2c6)]=0x232d]=_0x331486(0x2c6),_0x10e411[_0x10e411[_0x331486(0x2a3)]=0x2711]=_0x331486(0x2a3),_0x10e411[_0x10e411['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x10e411[_0x10e411[_0x331486(0x219)]=0x2713]=_0x331486(0x219),_0x10e411[_0x10e411[_0x331486(0x131)]=0x2714]=_0x331486(0x131),_0x10e411[_0x10e411[_0x331486(0xcf)]=0x271a]=_0x331486(0xcf),_0x10e411[_0x10e411[_0x331486(0xc6)]=0x271b]=_0x331486(0xc6),_0x10e411[_0x10e411[_0x331486(0x1ec)]=0x271c]=_0x331486(0x1ec),_0x10e411[_0x10e411[_0x331486(0x236)]=0x271d]=_0x331486(0x236),_0x10e411[_0x10e411[_0x331486(0x1a0)]=0x271e]=_0x331486(0x1a0),_0x10e411[_0x10e411[_0x331486(0x93)]=0x271f]=_0x331486(0x93),_0x10e411[_0x10e411[_0x331486(0x295)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x10e411[_0x10e411[_0x331486(0x17d)]=0x2af9]=_0x331486(0x17d),_0x10e411[_0x10e411[_0x331486(0x184)]=0x2ee1]=_0x331486(0x184),_0x10e411[_0x10e411[_0x331486(0xc1)]=0x2ee2]=_0x331486(0xc1),_0x10e411[_0x10e411[_0x331486(0x225)]=0x2ee3]=_0x331486(0x225),_0x10e411[_0x10e411[_0x331486(0x143)]=0x2ee4]=_0x331486(0x143),_0x10e411[_0x10e411[_0x331486(0x138)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x10e411[_0x10e411[_0x331486(0x28e)]=0x32c9]=_0x331486(0x28e),_0x10e411[_0x10e411['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x331486(0x10d),_0x10e411[_0x10e411[_0x331486(0x11f)]=0x32cb]=_0x331486(0x11f),_0x10e411[_0x10e411[_0x331486(0xbc)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x10e411[_0x10e411[_0x331486(0x24b)]=0x36b2]=_0x331486(0x24b),_0x10e411[_0x10e411[_0x331486(0x110)]=0x36b3]=_0x331486(0x110),_0x10e411[_0x10e411[_0x331486(0x106)]=0x36b4]=_0x331486(0x106),_0x10e411[_0x10e411[_0x331486(0x2cd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x10e411[_0x10e411['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x331486(0x252),_0x10e411[_0x10e411[_0x331486(0x292)]=0x3717]=_0x331486(0x292),_0x10e411[_0x10e411[_0x331486(0x21d)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x10e411[_0x10e411[_0x331486(0x1db)]=0x3a99]=_0x331486(0x1db),_0x10e411[_0x10e411[_0x331486(0x279)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x10e411[_0x10e411['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x331486(0x266),_0x10e411[_0x10e411['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x331486(0x250),_0x10e411[_0x10e411[_0x331486(0x88)]=0x3a9d]=_0x331486(0x88),_0x10e411[_0x10e411['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x331486(0x96),_0x10e411[_0x10e411[_0x331486(0x270)]=0x3a9f]=_0x331486(0x270),_0x10e411[_0x10e411[_0x331486(0x26c)]=0x3e81]=_0x331486(0x26c),_0x10e411[_0x10e411['UNRECOGNIZED']=-0x1]=_0x331486(0x14e),_0x10e411))(Z||{});function En(_0x206209){const _0x2ec86a=_0x331486;var _0x9a32ad,_0x1cf2af;const _0x29d737=(_0x9a32ad=_0x206209[_0x2ec86a(0xd0)])==null?void 0x0:_0x9a32ad[_0x2ec86a(0x101)],_0x3cb1f9=((_0x1cf2af=_0x206209[_0x2ec86a(0xd0)])==null?void 0x0:_0x1cf2af[_0x2ec86a(0x28f)])||0x0;return _0x29d737===_0x238a49['START_CALCULATION']&&_0x3cb1f9>0x0;}function pn(_0x30ac10){const _0x2af581=_0x331486;return _0x30ac10[_0x2af581(0x284)]===_0x144892['SUCCESS'];}var On=Object[_0x331486(0x1ca)],Tn=(_0x4dc537,_0xb57314,_0x2a634e,_0x5dc7c3)=>{for(var _0x33ea86=_0x5dc7c3>0x1?void 0x0:_0x5dc7c3?On(_0xb57314,_0x2a634e):_0xb57314,_0x6b4294=_0x4dc537['length']-0x1,_0x3f5369;_0x6b4294>=0x0;_0x6b4294--)(_0x3f5369=_0x4dc537[_0x6b4294])&&(_0x33ea86=_0x3f5369(_0x33ea86)||_0x33ea86);return _0x33ea86;},P=(_0x16ecd2,_0x533ed3)=>(_0x50e7df,_0x4818b4)=>_0x533ed3(_0x50e7df,_0x4818b4,_0x16ecd2);const Cn=_0x331486(0x289),Rn=_0x331486(0x9d),Dn=_0x331486(0x288);let me=class extends _0x4064cc{constructor(_0x2790e1,_0x267107,_0xb0abf3,_0x2a797c,_0x14c596,_0x2dad5c,_0x5a58d2){const _0x53aa52=_0x331486;super(),_(this,_0x53aa52(0x265),null),_(this,_0x53aa52(0xa7),0x0),_(this,_0x53aa52(0xaf),0x0),_(this,'_taskIds',[]),_(this,_0x53aa52(0x1bf),0x0),(this[_0x53aa52(0x17a)]=_0x2790e1,this[_0x53aa52(0x124)]=_0x267107,this[_0x53aa52(0x200)]=_0xb0abf3,this[_0x53aa52(0x202)]=_0x2a797c,this[_0x53aa52(0xed)]=_0x14c596,this['_logService']=_0x2dad5c,this[_0x53aa52(0x2d5)]=_0x5a58d2,this[_0x53aa52(0xdb)]());}[_0x331486(0xdb)](){const _0x5a6cf7=_0x331486;this[_0x5a6cf7(0xf5)](this['_commandService']['beforeCommandExecuted']((_0x366b62,_0x4f57c1)=>{const _0x9bba60=_0x5a6cf7;var _0xfef4ad;if(_0x366b62['id']!==_0x96febf['id'])return;const _0x2ea014=_0x366b62[_0x9bba60(0x8f)];if(!this[_0x9bba60(0x2aa)]((_0xfef4ad=_0x2ea014[_0x9bba60(0x1eb)])!=null?_0xfef4ad:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x366b62,_0x4f57c1),this[_0x9bba60(0x2ce)](),new _0x2e132b();})),this[_0x5a6cf7(0xf5)](this[_0x5a6cf7(0x124)][_0x5a6cf7(0x2b2)]((_0x3686d6,_0x506814)=>{const _0x3656db=_0x5a6cf7;if(_0x3686d6['id']!==_0x2312b3['id'])return;const _0x5d0895=_0x3686d6[_0x3656db(0x8f)];if(En(_0x5d0895)){const _0x5e06ca=_0x460716();this['_taskIds'][_0x3656db(0x118)](_0x5e06ca),this[_0x3656db(0x176)](_0x5e06ca);}else{if(pn(_0x5d0895)&&this[_0x3656db(0x1ac)]['length']>0x0){const _0x59c2d3=this['_taskIds'][_0x3656db(0x191)]();this['_releaseCalculationLimit'](_0x59c2d3);}}}));}['dispose'](){const _0x560309=_0x331486;super['dispose'](),this['_clearPolling'](),this[_0x560309(0x1ac)]=[],this[_0x560309(0xaf)]=0x0,this[_0x560309(0xa7)]=0x0,this[_0x560309(0x1bf)]=0x0;}async[_0x331486(0x1d8)](_0xd2d542,_0x127f50){const _0x3a5c88=_0x331486;for(let _0x393a59=0x0;_0x393a59<0x1e;_0x393a59++)try{if(await this[_0x3a5c88(0x21e)](),this[_0x3a5c88(0xf9)]()){this['_applyCommand'](_0xd2d542,_0x127f50),this[_0x3a5c88(0x17a)][_0x3a5c88(0x268)]({'content':this[_0x3a5c88(0x2d5)]['t'](_0x3a5c88(0x1b1)),'type':_0x27e95d['Success']});return;}await new Promise(_0x45de95=>{const _0x19a9c6=_0x3a5c88;this[_0x19a9c6(0x265)]=window[_0x19a9c6(0x2c2)](_0x45de95,0x3e8);});}catch(_0x23f3c2){this[_0x3a5c88(0xb6)][_0x3a5c88(0x17e)](_0x23f3c2);}this[_0x3a5c88(0x17a)][_0x3a5c88(0x268)]({'content':this[_0x3a5c88(0x2d5)]['t']('formula.calculation.unable'),'type':_0x27e95d[_0x3a5c88(0x2a0)]});}[_0x331486(0x19c)](_0x21fd79,_0x19e494){const _0x556dd5=_0x331486;try{this[_0x556dd5(0x124)][_0x556dd5(0x255)](_0x21fd79['id'],_0x21fd79[_0x556dd5(0x8f)],_0x19e494);}catch(_0x1be405){this[_0x556dd5(0xb6)][_0x556dd5(0x17e)](_0x1be405);}}[_0x331486(0x205)](_0x4dda3c,_0x147314){const _0x5023f0=_0x331486;_0x147314<this[_0x5023f0(0x1bf)]||(this[_0x5023f0(0x1bf)]=_0x147314,this[_0x5023f0(0xa7)]=Number['parseInt'](_0x4dda3c[_0x5023f0(0x185)]),this[_0x5023f0(0xaf)]=Number[_0x5023f0(0x29c)](_0x4dda3c[_0x5023f0(0x19d)]));}async[_0x331486(0x176)](_0x445dfa){const _0x472796=_0x331486;var _0x12bd0e,_0x32b39b;const _0x337679=Date[_0x472796(0x29d)]();try{const _0xabdf8=((_0x12bd0e=this[_0x472796(0x200)]['getConfig'](_0x317300))==null?void 0x0:_0x12bd0e[_0x472796(0x1f3)])||Rn,_0x1eb757=(await this[_0x472796(0x202)][_0x472796(0x18e)](_0xabdf8,{'body':JSON['stringify']({'taskId':_0x445dfa})}))['body'];if(((_0x32b39b=_0x1eb757['error'])==null?void 0x0:_0x32b39b[_0x472796(0x2c1)])!==Z['OK'])return;this[_0x472796(0x205)](_0x1eb757[_0x472796(0x160)],_0x337679);}catch(_0xcf6cbe){this[_0x472796(0xb6)][_0x472796(0x17e)](_0xcf6cbe);}}async['_getFormulaLimitStatus'](_0x253b70){const _0xa479ad=_0x331486;var _0x4f41ef,_0xc56bd7;const _0x2283eb=Date[_0xa479ad(0x29d)]();try{const _0x2b843f=((_0x4f41ef=this[_0xa479ad(0x200)]['getConfig'](_0x317300))==null?void 0x0:_0x4f41ef[_0xa479ad(0x1a2)])||Cn,_0x896f33=_0x253b70?_0x2b843f+'?taskId='+encodeURIComponent(_0x253b70):_0x2b843f,_0x860464=(await this[_0xa479ad(0x202)]['get'](_0x896f33))['body'];if(((_0xc56bd7=_0x860464['error'])==null?void 0x0:_0xc56bd7['code'])!==Z['OK'])return;this[_0xa479ad(0x205)](_0x860464[_0xa479ad(0x160)],_0x2283eb);}catch(_0x47e03f){this[_0xa479ad(0xb6)]['error'](_0x47e03f);}}async['_releaseCalculationLimit'](_0x1f3a9e){const _0x3472fb=_0x331486;var _0x54eb9f,_0x3d89cf;const _0x5d239e=Date[_0x3472fb(0x29d)]();try{const _0x24f8f0=((_0x54eb9f=this[_0x3472fb(0x200)][_0x3472fb(0x135)](_0x317300))==null?void 0x0:_0x54eb9f[_0x3472fb(0x1ad)])||Dn,_0x354cb2=(await this[_0x3472fb(0x202)][_0x3472fb(0x18e)](_0x24f8f0,{'body':JSON[_0x3472fb(0x20a)]({'taskId':_0x1f3a9e})}))['body'];if(((_0x3d89cf=_0x354cb2['error'])==null?void 0x0:_0x3d89cf[_0x3472fb(0x2c1)])!==Z['OK'])return;this[_0x3472fb(0x205)](_0x354cb2[_0x3472fb(0x160)],_0x5d239e);}catch(_0x74c500){this['_logService'][_0x3472fb(0x17e)](_0x74c500);}}[_0x331486(0xf9)](){const _0x4249a3=_0x331486;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x4249a3(0xa7)]-this[_0x4249a3(0xaf)]>0x0;}[_0x331486(0x129)](){const _0x3f972f=_0x331486;this[_0x3f972f(0x265)]&&(clearTimeout(this['_pollingInterval']),this[_0x3f972f(0x265)]=null);}[_0x331486(0x2ce)](){const _0x4ecad3=_0x331486;this[_0x4ecad3(0x17a)][_0x4ecad3(0x268)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x27e95d[_0x4ecad3(0x20c)]});}[_0x331486(0x2aa)](_0x18893e){const _0x33f48d=_0x331486;for(const _0x1fbbf6 of _0x18893e){const {unitId:_0x2b1257,sheetId:_0x359ae9,range:_0x3760f9}=_0x1fbbf6,_0x4c224d=this[_0x33f48d(0xed)][_0x33f48d(0x99)](_0x2b1257);if(!_0x4c224d)continue;const _0x27014e=_0x4c224d['getSheetBySheetId'](_0x359ae9);if(!_0x27014e)continue;const _0x204bd0=_0x27014e[_0x33f48d(0x1c5)]();for(let _0x583f16=_0x3760f9[_0x33f48d(0x260)];_0x583f16<=_0x3760f9[_0x33f48d(0xf7)];_0x583f16++)for(let _0xf190af=_0x3760f9[_0x33f48d(0x262)];_0xf190af<=_0x3760f9[_0x33f48d(0x108)];_0xf190af++){const _0x4d311e=_0x204bd0[_0x33f48d(0xf0)](_0x583f16,_0xf190af);if(_0x4d311e&&(_0x365838(_0x4d311e['f'])||_0x31b7fb(_0x4d311e['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x384b36(_0xc89ae7)),P(0x1,_0xd74a37),P(0x2,_0x5f43ff),P(0x3,_0x384b36(_0x3fa719)),P(0x4,_0x34a5b3),P(0x5,_0x1f29f4),P(0x6,_0x384b36(_0x4b3f44))],me);var bn=Object['getOwnPropertyDescriptor'],Nn=(_0x41a218,_0x4ce37d,_0x261691,_0xf5804c)=>{for(var _0x3329e4=_0xf5804c>0x1?void 0x0:_0xf5804c?bn(_0x4ce37d,_0x261691):_0x4ce37d,_0x2cd630=_0x41a218['length']-0x1,_0x4aaf2d;_0x2cd630>=0x0;_0x2cd630--)(_0x4aaf2d=_0x41a218[_0x2cd630])&&(_0x3329e4=_0x4aaf2d(_0x3329e4)||_0x3329e4);return _0x3329e4;},Ue=(_0x27c545,_0x977477)=>(_0x51938f,_0x41ab5b)=>_0x977477(_0x51938f,_0x41ab5b,_0x27c545);let He=class extends _0x4064cc{constructor(_0x4f4f6c,_0xa6e37,_0x1852f8){const _0x34b9b7=_0x331486;super(),_(this,_0x34b9b7(0x261),new Map()),_(this,_0x34b9b7(0x23d),new Map()),_(this,_0x34b9b7(0x15b),!0x1),(this[_0x34b9b7(0x200)]=_0x4f4f6c,this[_0x34b9b7(0x1cb)]=_0xa6e37,this[_0x34b9b7(0x1da)]=_0x1852f8);}[_0x331486(0x22e)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x5aee88=_0x331486;this[_0x5aee88(0x15b)]=!0x1;}get[_0x331486(0x177)](){const _0x4cd187=_0x331486;return this[_0x4cd187(0x23d)];}[_0x331486(0x1af)](){const _0x470471=_0x331486;this[_0x470471(0x1a1)]()[_0x470471(0x287)](()=>super['dispose']());}async[_0x331486(0x179)](_0x3fabd7){const _0x4cde60=_0x331486;return this[_0x4cde60(0x15b)]?null:this[_0x4cde60(0x1cb)][_0x4cde60(0x2af)](_0x4579ea(_0x3fabd7));}async['saveOfflineData'](_0x2e682e,_0x42c70c){const _0x1e1851=_0x331486;return!!this[_0x1e1851(0x1cb)][_0x1e1851(0x174)](_0x2e682e,_0x42c70c);}[_0x331486(0xe4)](_0x535949,_0xce44f2,_0x5148a2,_0x1259dd){const _0x17234e=_0x331486,_0xa1d654=this[_0x17234e(0x1da)][_0x17234e(0x2d7)](_0x535949);this[_0x17234e(0x261)][_0x17234e(0x1c0)](_0x535949,{'unitID':_0x535949,'type':_0xce44f2,'awaitingChangeset':_0x5148a2,'mutations':_0x1259dd,'rev':_0xa1d654}),this[_0x17234e(0x23d)][_0x17234e(0x1ef)](_0x535949)||this['_scheduleSaving'](_0x535949);}[_0x331486(0xd2)](_0x4c826f){const _0x49b45f=_0x331486,_0x1fddb7=this[_0x49b45f(0x23b)]();_0x1fddb7===0x0?this['_saveCache'](_0x4c826f):this['_saveTaskMap']['set'](_0x4c826f,setTimeout(()=>this['_saveCache'](_0x4c826f),_0x1fddb7));}[_0x331486(0x23b)](){const _0x305ade=_0x331486;var _0x309924;return(_0x309924=this[_0x305ade(0x200)]['getConfig'](_0x17b7f2))!=null?_0x309924:_0x3e4b99;}[_0x331486(0x183)](_0x50e3a8){const _0xe361ba=_0x331486,_0x2f66f7=this['_saveTaskMap'][_0xe361ba(0x1e7)](_0x50e3a8);return _0x2f66f7!==void 0x0&&window[_0xe361ba(0x286)](_0x2f66f7),this[_0xe361ba(0x1cb)][_0xe361ba(0x174)](_0x4579ea(_0x50e3a8),this[_0xe361ba(0x261)][_0xe361ba(0x1e7)](_0x50e3a8))[_0xe361ba(0x287)](()=>this[_0xe361ba(0x23d)][_0xe361ba(0x211)](_0x50e3a8));}async[_0x331486(0x1a1)](){const _0x23bbe6=_0x331486,_0x334683=[];this['_saveTaskMap'][_0x23bbe6(0x210)]((_0x36f002,_0x4a88e5)=>{const _0xa92ff6=_0x23bbe6;window[_0xa92ff6(0x286)](_0x36f002),_0x334683['push'](this[_0xa92ff6(0x183)](_0x4a88e5)['then'](()=>{const _0x3a298b=_0xa92ff6;this[_0x3a298b(0x23d)][_0x3a298b(0x211)](_0x4a88e5);}));}),await Promise[_0x23bbe6(0x196)](_0x334683);}};He=Nn([Ue(0x0,_0x5f43ff),Ue(0x1,_0x25196f),Ue(0x2,_0x384b36(_0x21d43a))],He);class Ln extends _0x57605c{constructor(){const _0x237385=_0x331486;super(),_(this,_0x237385(0x29f)),this[_0x237385(0x29f)]=_0x1059cc(window,'popstate')[_0x237385(0x181)](_0x136c33(this['dispose$']),_0x266c9a(0x1),_0x569761(void 0x0));}[_0x331486(0xe8)](_0x237917,_0x27a30c,_0x697cd2=!0x1){const _0x24be7e=_0x331486,_0x4f2169=new URL(window[_0x24be7e(0x1e4)][_0x24be7e(0x92)]);_0x4f2169[_0x24be7e(0xb0)][_0x24be7e(0x1c0)](_0x237917,_0x27a30c),_0x697cd2?window['history'][_0x24be7e(0x1ab)]('','',_0x4f2169[_0x24be7e(0x130)]()):window[_0x24be7e(0x276)][_0x24be7e(0xdf)]('','',_0x4f2169[_0x24be7e(0x130)]());}[_0x331486(0x1a9)](_0x4c0d75,_0x358427=!0x1){const _0x283200=_0x331486,_0x571977=new URL(window[_0x283200(0x1e4)][_0x283200(0x92)]);_0x571977[_0x283200(0xb0)][_0x283200(0x211)](_0x4c0d75),_0x358427?window[_0x283200(0x276)][_0x283200(0x1ab)]('','',_0x571977[_0x283200(0x130)]()):window[_0x283200(0x276)][_0x283200(0xdf)]('','',_0x571977[_0x283200(0x130)]());}[_0x331486(0xdd)](_0x4ca0b7){const _0x321923=_0x331486;var _0x32d51c;return(_0x32d51c=new URL(window[_0x321923(0x1e4)]['href'])[_0x321923(0xb0)][_0x321923(0x1e7)](_0x4ca0b7))!=null?_0x32d51c:void 0x0;}}var Un=Object[_0x331486(0x10c)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x1b1f02,_0x4ea02e,_0xb02b00)=>_0x4ea02e in _0x1b1f02?Un(_0x1b1f02,_0x4ea02e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb02b00}):_0x1b1f02[_0x4ea02e]=_0xb02b00,Pn=(_0x1065bc,_0x1c314b,_0x3e57ca,_0x582792)=>{const _0x554d1b=_0x331486;for(var _0x313611=_0x582792>0x1?void 0x0:_0x582792?Mn(_0x1c314b,_0x3e57ca):_0x1c314b,_0x2991e3=_0x1065bc[_0x554d1b(0xea)]-0x1,_0x5abaca;_0x2991e3>=0x0;_0x2991e3--)(_0x5abaca=_0x1065bc[_0x2991e3])&&(_0x313611=_0x5abaca(_0x313611)||_0x313611);return _0x313611;},Me=(_0x3f93e2,_0x52de8b)=>(_0x31d580,_0x4c9f89)=>_0x52de8b(_0x31d580,_0x4c9f89,_0x3f93e2),wn=(_0x55a40f,_0x51c5a1,_0x22018b)=>An(_0x55a40f,_0x51c5a1+'',_0x22018b);const yn=_0x331486(0x15c);let Ye=class extends _0x1d5629{constructor(_0x217043=_t,_0x1c7fef,_0x2bbe3c,_0x4d1a41){const _0x43c28a=_0x331486;super(),this['_config']=_0x217043,this['_renderManagerService']=_0x1c7fef,this[_0x43c28a(0x1fb)]=_0x2bbe3c,this[_0x43c28a(0x200)]=_0x4d1a41;const {..._0x71853a}=_0x1e7bf4({},_t,this[_0x43c28a(0x137)]);this['_configService']['setConfig'](hn,_0x71853a);}[_0x331486(0x150)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x331486(0x15f)](){const _0x24cdbf=_0x331486;this[_0x24cdbf(0x16d)]();}[_0x331486(0x156)](){const _0x22e174=_0x331486;var _0x1f5c52;const _0x37c168=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x48e0d4,{'useClass':_0x5d29c5}],[_0x24b451,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x22e174(0x137)][_0x22e174(0x1e2)]&&_0x37c168[_0x22e174(0x118)]([le]),_0x5c8afa(this[_0x22e174(0x1fb)],_0xf081e9(_0x37c168,(_0x1f5c52=this[_0x22e174(0x137)])==null?void 0x0:_0x1f5c52[_0x22e174(0x1e6)]));}[_0x331486(0x16d)](){const _0x5c9aa7=_0x331486;this[_0x5c9aa7(0xf5)](this[_0x5c9aa7(0x13e)][_0x5c9aa7(0x235)](_0x4e690a[_0x5c9aa7(0x237)],[Fe])),this['disposeWithMe'](this['_renderManagerService'][_0x5c9aa7(0x235)](_0x4e690a[_0x5c9aa7(0x153)],[ke]));}[_0x331486(0x144)](){const _0x41cb2f=_0x331486;_0x485043(this[_0x41cb2f(0x1fb)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x41cb2f(0x137)]['enableFrontendLog']&&_0x485043(this[_0x41cb2f(0x1fb)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x145aff(_0x545449),Me(0x1,_0x450a3a),Me(0x2,_0x384b36(_0x2975ff)),Me(0x3,_0x5f43ff)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x234165,_0x52e2ef,_0x107f8b,_0x19f190)=>{const _0x325119=_0x331486;for(var _0x397fc9=_0x19f190>0x1?void 0x0:_0x19f190?$n(_0x52e2ef,_0x107f8b):_0x52e2ef,_0x43996d=_0x234165[_0x325119(0xea)]-0x1,_0x1c3483;_0x43996d>=0x0;_0x43996d--)(_0x1c3483=_0x234165[_0x43996d])&&(_0x397fc9=_0x1c3483(_0x397fc9)||_0x397fc9);return _0x397fc9;},J=(_0x33f251,_0x595f73)=>(_0xb4c193,_0x394927)=>_0x595f73(_0xb4c193,_0x394927,_0x33f251);let ut=class extends _0x1af29f{constructor(_0x314a8c,_0x488b3e,_0x2462e4,_0x1c3a5c,_0x4dae4c){super(_0x314a8c,_0x488b3e,_0x2462e4,_0x1c3a5c,_0x4dae4c);}async[_0x331486(0xa8)](_0x3f3758){const _0x5414fa=_0x331486,_0x3e6c18=await this[_0x5414fa(0x2a4)](),_0x28fba6=this['_createSocketURL'](_0x3f3758,_0x3e6c18);return this[_0x5414fa(0x2b7)](_0x28fba6);}['_createSocketURL'](_0x51fb26,_0x4b89bd){const _0x417aba=_0x331486,_0x41ff1f=typeof window>'u'?new URL(_0x51fb26):new URL(_0x51fb26,window[_0x417aba(0x1e4)][_0x417aba(0x246)]);_0x41ff1f[_0x417aba(0xb0)][_0x417aba(0x1c0)](_0x417aba(0xab),_0x4b89bd);const _0x17acb1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x417aba(0x1e4)]['search']);return _0x17acb1[_0x417aba(0x1e7)]('runId')&&_0x41ff1f[_0x417aba(0xb0)][_0x417aba(0x1c0)](_0x417aba(0x234),_0x17acb1[_0x417aba(0x1e7)](_0x417aba(0x234))),_0x41ff1f['toString']();}async['_getSessionTicket'](){const _0x1690be=_0x331486;var _0x48ed73,_0x1be1c0,_0x2c8be8;const _0x1ebe1b=this[_0x1690be(0x200)][_0x1690be(0x135)](_0x317300),_0x8fdd74=(_0x48ed73=_0x1ebe1b==null?void 0x0:_0x1ebe1b['wsSessionTicketUrl'])!=null?_0x48ed73:_0x87d114;return(_0x2c8be8=(_0x1be1c0=(await this[_0x1690be(0x202)][_0x1690be(0x1e7)](_0x8fdd74,{'headers':{'Content-Type':_0x1690be(0x14d)}}))[_0x1690be(0x223)])==null?void 0x0:_0x1be1c0['ticket'])!=null?_0x2c8be8:'';}};ut=xn([J(0x0,_0x384b36(_0x2975ff)),J(0x1,_0x384b36(_0x3fa719)),J(0x2,_0x5f43ff),J(0x3,_0x1f29f4),J(0x4,_0x5eb23d)],ut);var Bn=Object[_0x331486(0x1ca)],Fn=(_0x432744,_0x1ff292,_0x46a823,_0x286597)=>{const _0x385507=_0x331486;for(var _0x6071eb=_0x286597>0x1?void 0x0:_0x286597?Bn(_0x1ff292,_0x46a823):_0x1ff292,_0x1ad194=_0x432744[_0x385507(0xea)]-0x1,_0x233ee7;_0x1ad194>=0x0;_0x1ad194--)(_0x233ee7=_0x432744[_0x1ad194])&&(_0x6071eb=_0x233ee7(_0x6071eb)||_0x6071eb);return _0x6071eb;},Ae=(_0x1aed35,_0x36b337)=>(_0x15a35f,_0x2968b5)=>_0x36b337(_0x15a35f,_0x2968b5,_0x1aed35);let dt=class extends _0x4064cc{constructor(_0x8321f9,_0x1c5444,_0x810778){const _0x16fea6=_0x331486;super(),this[_0x16fea6(0xc2)]=_0x8321f9,this[_0x16fea6(0x202)]=_0x1c5444,this[_0x16fea6(0x200)]=_0x810778;}async[_0x331486(0x27f)](_0x507b0d,_0x30dfc7,_0x54850f,..._0x346dc8){const _0x378229=_0x331486;var _0x49d205,_0x24c6b0,_0x313a32,_0x3b63b4;const _0x34052e=this[_0x378229(0xc2)][_0x378229(0xcb)]();if(!_0x34052e)throw new Error(_0x378229(0xd8));const _0x3fd513=((_0x49d205=this[_0x378229(0x200)][_0x378229(0x135)](_0x10f6ab))!=null?_0x49d205:_0x4d4beb)+'/'+_0x507b0d+'/run/'+_0x30dfc7,_0x46e5f7=new URL(window['location'][_0x378229(0x92)]),_0x4ea777={'scriptId':_0x507b0d,'runId':(_0x24c6b0=_0x46e5f7[_0x378229(0xb0)][_0x378229(0x1e7)]('runId'))!=null?_0x24c6b0:'','function':_0x30dfc7,'unitId':_0x34052e['getUnitId'](),'argsOfFunction':JSON[_0x378229(0x20a)](_0x346dc8),'invokeId':(_0x313a32=_0x54850f[_0x378229(0x18d)])!=null?_0x313a32:'','executionId':(_0x3b63b4=_0x54850f[_0x378229(0x2ab)])!=null?_0x3b63b4:''};try{const _0x3c054f=await this[_0x378229(0x202)][_0x378229(0x18e)](_0x3fd513,{'body':_0x4ea777});return _0x3c054f['body'][_0x378229(0x17e)]&&_0x3c054f['body'][_0x378229(0x17e)]['code']!==Z['OK']?'Failed':_0x3c054f[_0x378229(0x223)][_0x378229(0x2be)];}catch{return _0x378229(0x1f2);}}};dt=Fn([Ae(0x0,_0x34a5b3),Ae(0x1,_0x384b36(_0x3fa719)),Ae(0x2,_0x5f43ff)],dt);const St=0x7530,mt=_0x331486(0x1ae);class rr extends _0x4064cc{constructor(){const _0x541194=_0x331486;super(),_(this,_0x541194(0x1a3),_0x460716()),_(this,_0x541194(0xfa),new Set()),_(this,_0x541194(0x10e),new Map()),_(this,_0x541194(0x155),null),_(this,_0x541194(0x2a1),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x23d44b=_0x331486;super[_0x23d44b(0x1af)](),this[_0x23d44b(0x2a1)][_0x23d44b(0x210)]((_0x49e18d,_0x32a63e)=>this[_0x23d44b(0xa4)](_0x32a63e)),this[_0x23d44b(0x155)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x331486(0x1c8)](_0x391020){const _0x5e81d3=_0x331486;return this[_0x5e81d3(0x8e)](_0x391020)[_0x5e81d3(0x181)](_0x46c569());}[_0x331486(0x27e)](_0x5df393){const _0x43dd21=_0x331486;this[_0x43dd21(0xfa)][_0x43dd21(0x209)]===0x0&&this['_scheduleHeartbeat'](),this[_0x43dd21(0xfa)]['add'](_0x5df393),this[_0x43dd21(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5df393],'isForwarded':!0x1});}['disposeUnit'](_0x38a5df){const _0x423b46=_0x331486;this[_0x423b46(0xfa)]['delete'](_0x38a5df),this[_0x423b46(0xfa)][_0x423b46(0x209)]===0x0&&this[_0x423b46(0x155)]&&window[_0x423b46(0x1ba)](this['_heartbeatTimer']);}[_0x331486(0x119)](){const _0x2dfbfc=_0x331486;this[_0x2dfbfc(0xf5)](_0x385cfe(_0x1059cc(window,'storage')[_0x2dfbfc(0x1e8)](_0x3fdabd=>{const _0x57d155=_0x2dfbfc;if(_0x3fdabd[_0x57d155(0x14f)]!==mt||!_0x3fdabd[_0x57d155(0x166)])return;const _0x2a7138=JSON['parse'](_0x3fdabd[_0x57d155(0x166)]);this[_0x57d155(0x19e)](_0x2a7138);}))),window[_0x2dfbfc(0x21f)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x2dfbfc(0x1a3)],'unitIDs':Array[_0x2dfbfc(0x2cc)](this[_0x2dfbfc(0xfa)])}));}['_handleEvent'](_0x4a045b){const _0x1488d5=_0x331486;switch(_0x4a045b[_0x1488d5(0x1d3)]){case 0x0:this[_0x1488d5(0x115)](_0x4a045b);break;case 0x1:this[_0x1488d5(0x105)](_0x4a045b);break;case 0x2:this[_0x1488d5(0x22f)](_0x4a045b);break;}}[_0x331486(0x115)](_0x205c27){const _0x23991c=_0x331486,{unitIDs:_0x119dd5,memberID:_0x16bf12,isForwarded:_0x3b70a5}=_0x205c27;_0x119dd5[_0x23991c(0x210)](_0x5c7e6a=>{const _0x5f5160=_0x23991c;if(!_0x3b70a5&&this[_0x5f5160(0x10e)]['has'](_0x5c7e6a)&&this[_0x5f5160(0x8e)](_0x5c7e6a)['next'](_0x3fa58f[_0x5f5160(0x195)]),!this[_0x5f5160(0x10e)][_0x5f5160(0x1ef)](_0x5c7e6a)||!this[_0x5f5160(0x10e)][_0x5f5160(0x1e7)](_0x5c7e6a)['has'](_0x16bf12)){const _0x2daaca=this['_unitOnClients'][_0x5f5160(0x1e7)](_0x5c7e6a)||new Set();_0x2daaca[_0x5f5160(0x1b7)](_0x16bf12),this['_unitOnClients']['set'](_0x5c7e6a,_0x2daaca),this[_0x5f5160(0x94)](_0x16bf12);}}),_0x3b70a5||this[_0x23991c(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x331486(0x94)](_0xa5724e){const _0x408e21=_0x331486;this['_removeClearOtherTimer'](_0xa5724e);const _0x259825=window[_0x408e21(0x2c2)](()=>{const _0xefaf5c=_0x408e21;this[_0xefaf5c(0x10e)][_0xefaf5c(0x210)](_0x45e397=>{const _0x594561=_0xefaf5c;_0x45e397[_0x594561(0x211)](_0xa5724e);});},St*0x2);this[_0x408e21(0x2a1)][_0x408e21(0x1c0)](_0xa5724e,_0x259825);}[_0x331486(0xa4)](_0x1f3d15){const _0x48363e=_0x331486;if(this[_0x48363e(0x2a1)][_0x48363e(0x1ef)](_0x1f3d15)){const _0x5d35fb=this[_0x48363e(0x2a1)]['get'](_0x1f3d15);_0x5d35fb&&window[_0x48363e(0x286)](_0x5d35fb),this[_0x48363e(0x2a1)][_0x48363e(0x1c0)](_0x1f3d15,null);}}[_0x331486(0x105)](_0x51afb9){const _0x331a=_0x331486,{memberID:_0x59f35c,unitIDs:_0x2210c4}=_0x51afb9;_0x2210c4['forEach'](_0x19e6f7=>{const _0x3a75a4=_0x512f;var _0x298775;const _0x1e8f1f=this['_unitOnClients'][_0x3a75a4(0x1e7)](_0x19e6f7);_0x1e8f1f&&(_0x1e8f1f['delete'](_0x59f35c),(_0x298775=this[_0x3a75a4(0x8e)](_0x19e6f7))==null||_0x298775['next'](_0x1e8f1f[_0x3a75a4(0x209)]===0x0?_0x3fa58f[_0x3a75a4(0x9b)]:_0x3fa58f[_0x3a75a4(0x195)]));}),this[_0x331a(0xa4)](_0x59f35c);}[_0x331486(0x22f)](_0x11af1f){const _0x61cb7c=_0x331486;this[_0x61cb7c(0x94)](_0x11af1f[_0x61cb7c(0x98)]);}[_0x331486(0x254)](_0x374b37){const _0x57564b=_0x331486;localStorage[_0x57564b(0x174)](mt,JSON[_0x57564b(0x20a)](_0x374b37));}[_0x331486(0x2c3)](){const _0x1dd7ef=_0x331486;this[_0x1dd7ef(0x155)]=window[_0x1dd7ef(0x100)](()=>{const _0x41d28c=_0x1dd7ef;this[_0x41d28c(0x254)]({'type':0x2,'memberID':this[_0x41d28c(0x1a3)]});},St);}['_ensureSubject'](_0x1155e6){const _0x1f3928=_0x331486;return this['_unitStatus'][_0x1f3928(0x1ef)](_0x1155e6)||this[_0x1f3928(0x2ad)][_0x1f3928(0x1c0)](_0x1155e6,new _0x5adb5d(_0x3fa58f[_0x1f3928(0x9b)])),this[_0x1f3928(0x2ad)][_0x1f3928(0x1e7)](_0x1155e6);}}function _0x5658(){const _0x20e3f8=['ENTITLE_REPORT_LIMIT_EXCEED','ERROR_AGAIN','_send','executeCommand','addObject','div','701115QlHFLc','FromArray','complete','m1Prime','height','entries','1em','InsertRangeMoveRightCommandId','startRow','_cachedData','startColumn','lineTo','m2Prime','_pollingInterval','REDEMPTION_CODE_FULLY_REDEEMED','_docStateChangeManagerService','show','getColorFromTheme','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','activeSheet$','DATA_SOURCE_TOO_LARGE','_transformHistoryAndStateStack','onMouseMove','USER_NOT_FOUND','REDEMPTION_CODE_HAS_BEEN_CREATED','...','session.will-retry','/universer-api/frontend/logs','#FFF','_imageIoService','history','mask','_initWindowErrorListener','REDEMPTION_CODE_INACTIVE','_localCacheService','_getScale','makeDirty','_beforeCloseService','editingUnit','runOnServer','_online','_cursorShapes','collabStatus.offline','_docTransformStateCacheService','functionsExecutedState','OFFLINE','clearTimeout','then','/universer-api/license/formula/limit/done','/universer-api/license/formula/limit/status','CONFLICT','roomMembers','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','contains','WECHAT_HAS_BEEN_BOUND','totalFormulasToCalculate','unsubscribe','ranges','ENTITLE_INSUFFICIENT_QUOTA','undoState','permission.title','YUUMI_CONNECTOR_URL_NOT_FOUND','PENDING','PERMISSION_DENIED','_initEntityListener','onLocalMutation','FETCH_MISS','getMergeData','parseInt','now','getCurrent','urlChange$','Error','_clearOtherTimers','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_UNABLE_LOAD_URL','_getSessionTicket','getCollabCursors$','_initCommandExecutedListener','collabStatus.notCollab','CONNECTOR_DATA_TOO_LARGE','_docTransformSelectionsService','_hasFormulaInDirtyRanges','executionId','COMPLETION_FINISHED','_unitStatus','mutations','getItem','join','closePath','onCommandExecuted','cursorInfo','addObjects','unshift','map','_doCreateSocket','cursorInfo$','red.300','init','_collabCursorController','top','onPointerEnter$','result','setAlpha','_eventUnsubscribe','code','setTimeout','_scheduleHeartbeat','collab-text-range-','max','LICENSE_DISTRO_REJECTED','_session','_updateURLWithCurrentState','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','getViewport','CHANGESET_REVISION_CONFILICT','from','ENTITLE_CHAT_LIMIT_EXCEED','_showGuardMessage','getSheetBySheetId','transformMutation','getMember','APPLY_PERMISSION_DENIED','saveImage','_toggleOnline','_localeService','getOffsetConfig','getCurrentRevOfUnit','_onCursorUpdate','fill','REDEMPTION_USER_NOT_ELIGIBLE','getTypeOfUnitDisposed$','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','message','min','_ensureSubject','params','OnLineIcon','isActive','href','YUUMI_AI_RUN_FAILED','_scheduleClearOtherTimer','sheetId','REDEMPTION_USER_REDEEM_TIMES_EXCEED','61414mkZLMn','memberID','getUnit','_draw','NO_OTHER_CLIENTS_EDITING','permission.content','/universer-api/license/formula/limit/start','defs','getUndoRedoMutationParamsCache','_removeCollabCursors','getRangePointData','transformRemoteChangeset','find','_removeClearOtherTimer','registerRefRange','transformIMECache','_maxFormulaLimit','createSocket','registerComponent','_textBubble','sessionTicket','AWAITING_WITH_PENDING','current','_initStatusComponent','_currentUsage','searchParams','doc.mutation.rich-text-editing','url(#off-line-icon_clip0_910_343)','unhandledrejection','UNDEFINED','onTransformChange$','_logService','restore','hide','SNAPSHOT_HAS_BEEN_REMOVED','_startDocCollabCursor','drawWith','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_docClipboardService','replaceDocRanges','_collabSessionService','INTERNAL_ERROR','INVALID_INVITE_CODE','_instanceService','UNAUTHENTICATED','tag','InsertRowCommandId','YUUMI_ASYNCIO_CANCELLED','[LogService\x20Error]:\x20','_uploadLog','_refRangeService','white','getFocusedUnit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','labelPosition','OTHER_CLIENT_EDITING','YUUMI_NO_CUBOID_FOR_QUESTION','stageInfo','Unknown\x20user','_scheduleSaving','text','_hideTimer','[Window\x20Error]:\x20','column','APPLY_DUPLICATED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_memberService','NOT_FOUND','_initCommandInterceptor','LICENSE_EXPORT_SIZE_EXCEEDED','getParam','docStateChange$','pushState','sheetID','use','on-line-icon','subscribeEvent','updateOfflineData','0\x200\x2016\x2016','_docSkeleton','range','setParam','_document','length','_status$','socket$','_univerInstanceService','path','_docSkeletonManagerService','getValue','USERS_LEAVE','clipPath','removeEventListener','RECT','disposeWithMe','univer-flex\x20univer-items-center','endRow','transformStateCache','_checkCalculationAvailable','_selfUnitIDs','row','_transformService','subUnitId','APPLY_NON_SEQUENTIAL_REVISION','CURRENT_STATUS_CANNOT_OPERATE','setInterval','stage','save','getSkeleton','roomMembers$','_handleLeaveEvent','PAYMENT_CHANNEL_NOT_SUPPORT','collab-text-anchor-','endColumn','font','ALREADY_EXISTS','ONLINE','defineProperty','MOBILE_HAS_BEEN_BOUND','_unitOnClients','HEADER_MENU','ENTITLE_DUP_SUBSCRIPTION','isEditing','getCollabEntity$','startsWith','onPointerMove$','_handleJoinEvent','backgroundColor','_collaborationUIEventService','push','_init','selections','RemoveColCommandId','_initEvent','JOIN_ROOM_FAILED','collaboration.single-unit.warning','EMAIL_HAS_BEEN_BOUND','_render','_color','measureText','_syncEditingCollabCursorService','_commandService','values','data','requireSession','_transformPreviousActiveRange','_clearPolling','assignAColorForMemberID','LOGIN_FAILED','black','entityInit$','findNodePositionByCharIndex','_entityInit$','toString','YUUMI_SUBSCRIPTION_NOT_FOUND','getCurrentUnitForType','_setupBeforeClosingHandler','dispose$','getConfig','getVpScrollXYInfoByPosToVp','_config','INVITE_CODE_ALREADY_BOUND','_setupSubUnitSync','displayName','_scene','_getAnchorBounding','children','_renderManagerService','getDocRanges','_getSheetObject','assign','_colorIndex','USER_NOT_INVITED_CODE','_initDependencies','getActiveSheet','attrs','_labelPosition','CLOSE_ROOM','asObservable','none','evenodd','DeleteRangeMoveLeftCommandId','application/json','UNRECOGNIZED','key','onStarting','17asFloy','Warning','UNIVER_SHEET','_drawTextRange','_heartbeatTimer','_registerDependencies','_colorAssignService','purple.300','_dataLoaderService','_backgroundColor','_disabled','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','color','getCellPositionByOffset','onRendered','limitInfo','substring','_collabCursorState$','eventID','unit','onPointerLeave$','newValue','_updateSubUnitFromURLParams','yellow.400','name','beginPath','hovered','APPLY_REVISION_CONFILICT','_registerRenderDependencies','_updateLocalCursor','setStateCache','_initUserListener','session.collaboration-timeout','transformMutationsWithChangeset','getMemberID','setItem','_uiPartsService','_startCalculationLimit','saveTaskMap','stack','loadOfflineData','_messageService','_context','url(#$1','PY_RUNTIME_SCRIPT_ERROR','error','random','_assignedColors','pipe','_initResize','_saveCache','INVITE_CODE_HAS_BEEN_UES','maxFormulaLimit','_monkeyPatchLogService','_drawRectRange','_notificationService','moveTo','event$','_collaborationSessionService','getUnitId','invokeId','post','univerjs-icon\x20univerjs-icon-','engine','shift','url(#on-line-icon_clip0_910_349)','VIEW_MAIN','UPDATE_CURSOR','OTHER_CLIENTS_EDITING','all','_anchor','getRelativeToViewportCoord','_memberID','unitId','getTypeOfUnitAdded$','_applyCommand','currentUsage','_handleEvent','fillStyle','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','exhaustSavingTask','getformulaLimitStatusUrl','_id','INVALID_ARGUMENT','imageSourceType','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','79848MItGVJ','2535660oYkxjg','removeParam','catch','replaceState','_taskIds','releaseFormulaLimitUrl','ACTIVE_UNIT_EVENT_CHANNEL','dispose','_shapes','formula.calculation.started','TOO_MANY_REQUESTS','9510330MmEWFU','trim','selection','svg','add','transformSelections','status$','clearInterval','collaboration-client-ui.config','_cursor','defIds','fillText','_lastResponseTimestamp','set','string','_roomMembers$','_toggleOffline','next','getCellMatrix','8JeksLP','currentColor','getUnitStatus$','on-line-icon_clip0_910_349','getOwnPropertyDescriptor','_localStorageService','_getMergeRange','getStateCache','getUniverSheetInstance','arc','actions','textRanges','getSheetId','type','_drawAnchor','green.600','2533244UaoyoP','_startSheetCollabCursor','_checkAndWaitForCalculationPermission','getRenderById','_revisionService','REDEMPTION_INVALID_CODE','[Unhandled\x20Rejection]:\x20','collaboration-client.offline-data-not-saved','AWAITING','subunit','currentTheme$','_transformUndoRedoStack','enableFrontendLog','send','location','APPLY_REJECT','override','get','subscribe','NOT_COLLAB','_sheetSkeletonManagerService','dirtyRanges','YUUMI_TABLE_NOT_FOUND_IN_UNIT','redoState','deepClone','has','_lastPointer','filename','Failed','startFormulaLimitUrl','setActiveRange','InsertColCommandId','_cursors','_entities','M0\x200H16V16H0z','debug','split','_injector','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','width','toRgbString','setShapeProps','_configService','_docTransformIMECacheService','_httpService','unitID','_hovered','_setFormulaLimitStatus','_initUnhandledRejectionListener','whenReady','currentSkeleton$','size','stringify','round','Loading','collabStatus.synced','_range','focused$','forEach','delete','colorChannel1','idSuffix','MUTATION','fillRule','_themeService','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','YUUMI_RATE_OVER_LIMIT','1438470wXBDsW','sessionStatus$','translate(.97)','ENTITLE_NEED_BILLING_ADDRESS','_getFormulaLimitStatus','addEventListener','_onCursorDelete','blue.400','with','body','collabStatus.conflict','INVITE_CODE_REQUIRED','4jtOEjx','addHandlerCallback','0\x200\x2017\x2016','ENSURE_SNAPSHOT_EXECUTION','UniverIcon','bottom','SOCKET_FAILED_RETRY','_initStatusListener','disableLocalCache','_handleHeartbeatEvent','SUBMIT_CHANGESET_TIMEOUT','_urlService','createInstance','_collaborationController','runId','registerRenderModule','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_DOC','isArray','getAncestorScale','http://www.w3.org/2000/svg','_getSaveTimeout','xlink:href','_saveTaskMap','loadUnit','off-line-icon_clip0_910_343','LICENSE_IMPORT_SIZE_EXCEEDED','colno','LOGIN_TOKEN_PROCESSING_FAILED','rgba(255,\x20255,\x20255,\x200.01)','some','collaboration.closeRoom','origin','_hover','_name','_updateCollabCursors','_handleHover','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','MOBILE_VERIFY_CODE_MISMATCH','includes','_cursorInfo$','flatMap','REDEMPTION_CODE_NOT_STARTED','_anchorDot'];_0x5658=function(){return _0x20e3f8;};return _0x5658();}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};