@univerjs-pro/collaboration-client-ui 0.12.1 → 0.12.2-nightly.202511241159

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 _0x5e6c41=_0x3e50;(function(_0x1b5b0e,_0x250e4a){const _0x4d074e=_0x3e50,_0x2185cf=_0x1b5b0e();while(!![]){try{const _0x194398=parseInt(_0x4d074e(0x20d))/0x1*(-parseInt(_0x4d074e(0x3e7))/0x2)+-parseInt(_0x4d074e(0x421))/0x3*(parseInt(_0x4d074e(0x329))/0x4)+-parseInt(_0x4d074e(0x3c1))/0x5*(parseInt(_0x4d074e(0x358))/0x6)+-parseInt(_0x4d074e(0x227))/0x7+-parseInt(_0x4d074e(0x3fe))/0x8+-parseInt(_0x4d074e(0x24d))/0x9*(parseInt(_0x4d074e(0x42d))/0xa)+-parseInt(_0x4d074e(0x27b))/0xb*(-parseInt(_0x4d074e(0x3c6))/0xc);if(_0x194398===_0x250e4a)break;else _0x2185cf['push'](_0x2185cf['shift']());}catch(_0x18b8a4){_0x2185cf['push'](_0x2185cf['shift']());}}}(_0x4cf4,0xdb35e));var Yt=Object[_0x5e6c41(0x26e)],Wt=(_0x11c925,_0x551955,_0x7f9cb1)=>_0x551955 in _0x11c925?Yt(_0x11c925,_0x551955,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7f9cb1}):_0x11c925[_0x551955]=_0x7f9cb1,_=(_0xa4ba8f,_0x62bf81,_0x57e4d3)=>Wt(_0xa4ba8f,typeof _0x62bf81!='symbol'?_0x62bf81+'':_0x62bf81,_0x57e4d3);import{jsx as _0x4dce54,jsxs as _0x23cd24}from'react/jsx-runtime';import{CollaborationStatus as _0x54c613,CollaborationSessionService as _0x48a112,CollaborationController as _0xba3a41,DataLoaderService as _0x3a7b43,MemberService as _0x365024,SessionStatus as _0xbe9bd5,ILocalCacheService as _0x588b9c,CollaborationUIEventService as _0x56bb29,CollaborationUIEventId as _0x1e6779,DocCollaborationEntity as _0x35f55c,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x554969,getLocalCacheKey as _0x46d1c9,LOCAL_CACHE_INTERVAL as _0x239433,LOCAL_CACHE_INTERVAL_KEY as _0x16e84e,UniverCollaborationClientPlugin as _0x53849a,CollaborationSocketService as _0x1362c8,DEFAULT_WS_SESSION_TICKET_URL as _0x4482a6,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3edb34,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3027c6,UnitStatus as _0x1de409}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x353f39,IUniverInstanceService as _0x49c215,Inject as _0x393365,Injector as _0xaa1b4f,Disposable as _0x52c1c5,createIdentifier as _0x44b024,ILogService as _0x4fe5ec,ICommandService as _0x51b600,Optional as _0xedba1f,RxDisposable as _0x4e0967,Workbook as _0x45ab4a,DOC_RANGE_TYPE as _0x471f62,debounce as _0x2e72cf,Rectangle as _0xbac35e,DisposableCollection as _0x57df36,toDisposable as _0x4d6e0f,UniverInstanceType as _0x3f2b66,generateRandomId as _0x220a66,COLORS as _0x1273e0,ColorKit as _0x67e137,ThemeService as _0x348b48,fromEventSubject as _0x386729,Tools as _0x27b6c8,CommandType as _0xae5b06,IConfigService as _0x4642c4,CanceledError as _0x492649,isFormulaString as _0x3b833f,isFormulaId as _0x4a4bd8,ILocalStorageService as _0x94686d,DependentOn as _0x3f7a7f,Plugin as _0x43ff47,merge as _0x1dccc9,registerDependencies as _0x4e9344,mergeOverrideWithDependencies as _0x587b20,touchDependencies as _0x5cb758}from'@univerjs/core';import{useObservable as _0x371cb0,useDependency as _0x2f6081,IUIPartsService as _0x3cb359,BuiltInUIPart as _0x8de4b2,connectInjector as _0x11e8d0,IBeforeCloseService as _0x35341e,IMessageService as _0xe75bb,INotificationService as _0x4344a2}from'@univerjs/ui';import{BehaviorSubject as _0x1a4d1e,switchMap as _0x3c03a3,of as _0x549864,takeUntil as _0x2c10e9,debounceTime as _0x554f5e,Subject as _0x1763c5,filter as _0x34512d,merge as _0x571abd,combineLatest as _0x3c0103,fromEvent as _0x138141,shareReplay as _0x369b94,mapTo as _0x56e65c,distinctUntilChanged as _0x20bda3}from'rxjs';import{Tooltip as _0x3a6a0e,clsx as _0x370eaf,MessageType as _0x248756}from'@univerjs/design';import{useRef as _0x54cad1,createElement as _0x255fc1,forwardRef as _0x51965d,useCallback as _0x39adb1}from'react';import{IRemoteInstanceService as _0x18359a}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x10d0b0,RefRangeService as _0x248d6f,SetSelectionsOperation as _0x373183,SheetsSelectionsService as _0x211a3e,EffectRefRangId as _0x4d4aef,handleIRemoveRow as _0x3e1616,handleIRemoveCol as _0x1adf19,handleMoveRange as _0x51febe,handleInsertRow as _0x2e721c,handleInsertRangeMoveRight as _0x5c68e5,handleInsertRangeMoveDown as _0x31cf40,handleInsertCol as _0x1ffe26,handleDeleteRangeMoveUp as _0x221b9b,handleDeleteRangeMoveLeft as _0x41fb43,runRefRangeMutations as _0x3019e5}from'@univerjs/sheets';import{Shape as _0x8dc89a,Rect as _0x1b61d8,getColor as _0x3af192,RegularPolygon as _0x358fac,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1681f6,Vector2 as _0x47aacb,SHEET_VIEWPORT_KEY as _0x354b10,IRenderManagerService as _0x1f8720}from'@univerjs/engine-render';import{HTTPService as _0x2cb535,ISocketService as _0x1363ef,WebSocketService as _0x9fbd32}from'@univerjs/network';import{IDocClipboardService as _0x1cfd89,NodePositionConvertToCursor as _0x4d070d,NodePositionConvertToRectRange as _0x440298,TEXT_RANGE_LAYER_INDEX as _0x2ff152,SetDocZoomRatioOperation as _0x1d3151,DocIMEInputManagerService as _0x5301d8,DocStateChangeManagerService as _0x5173c7}from'@univerjs/docs-ui';import{IImageIoService as _0x5e9532}from'@univerjs/drawing';import{ITransformService as _0x59b3e4,CollaborationEvent as _0xcc84c4,isTransformMutationFailure as _0xb2c014,isTransformMutationsWithChangesetSuccess as _0xa6f19a,RevisionService as _0x30d137,ISnapshotServerService as _0x556089}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x1b756a,RichTextEditingMutation as _0x521baf,DocSelectionManagerService as _0x406d1c,DocSkeletonManagerService as _0x16f56d}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x542628,serializeRangeWithSheet as _0x32ee88,FormulaExecuteStageType as _0x11ebd6,FormulaExecutedStateType as _0x12ebe4,SetFormulaCalculationStartMutation as _0x4727ae,SetFormulaCalculationNotificationMutation as _0x3be4e3}from'@univerjs/engine-formula';import{map as _0x4770b7,filter as _0x2fc674,throttleTime as _0x1c2466,takeUntil as _0x45e81d,switchMap as _0x5b8bb5}from'rxjs/operators';import{SheetSkeletonManagerService as _0x33d450,getCoordByCell as _0x58af9c,getSheetObject as _0x381575}from'@univerjs/sheets-ui';function Ge({ref:_0x70c70d,..._0x28e408}){const _0x538139=_0x5e6c41,{icon:_0x2798df,id:_0x45e92b,className:_0x4acf31,extend:_0x3eb3e3,..._0x5ed252}=_0x28e408,_0x485f5c=(_0x538139(0x40c)+_0x45e92b+'\x20'+(_0x4acf31||''))['trim'](),_0x5290db=_0x54cad1('_'+Ei());return At(_0x2798df,''+_0x45e92b,{'defIds':_0x2798df['defIds'],'idSuffix':_0x5290db[_0x538139(0x225)]},{'ref':_0x70c70d,'className':_0x485f5c,..._0x5ed252},_0x3eb3e3);}function At(_0x149456,_0x9434fd,_0x4bfd8f,_0x35c0f8,_0x3e27de){const _0x1ebe2=_0x5e6c41;return _0x255fc1(_0x149456['tag'],{'key':_0x9434fd,...gi(_0x149456,_0x4bfd8f,_0x3e27de),..._0x35c0f8},(vi(_0x149456,_0x4bfd8f)[_0x1ebe2(0x416)]||[])['map']((_0x597573,_0xe5f956)=>At(_0x597573,_0x9434fd+'-'+_0x149456[_0x1ebe2(0x3c8)]+'-'+_0xe5f956,_0x4bfd8f,void 0x0,_0x3e27de)));}function gi(_0x352294,_0x2cfdbb,_0x9d0870){const _0x53fb7f=_0x5e6c41,_0x3ee48e={..._0x352294[_0x53fb7f(0x418)]};_0x9d0870!=null&&_0x9d0870[_0x53fb7f(0x3f2)]&&_0x3ee48e['fill']==='colorChannel1'&&(_0x3ee48e[_0x53fb7f(0x387)]=_0x9d0870[_0x53fb7f(0x3f2)]),_0x352294[_0x53fb7f(0x3c8)]===_0x53fb7f(0x27f)&&_0x3ee48e['id']&&(_0x3ee48e['id']=_0x3ee48e['id']+_0x2cfdbb[_0x53fb7f(0x3d1)]),Object[_0x53fb7f(0x401)](_0x3ee48e)['forEach'](([_0x35be2a,_0x2a114a])=>{const _0x3f7071=_0x53fb7f;_0x35be2a===_0x3f7071(0x27f)&&typeof _0x2a114a==_0x3f7071(0x407)&&(_0x3ee48e[_0x35be2a]=_0x2a114a[_0x3f7071(0x25f)](/url\(#(.*)\)/,_0x3f7071(0x24a)+_0x2cfdbb[_0x3f7071(0x3d1)]+')'));});const {defIds:_0x109d68}=_0x2cfdbb;return!_0x109d68||_0x109d68[_0x53fb7f(0x3f6)]===0x0||(_0x352294[_0x53fb7f(0x3c8)]===_0x53fb7f(0x3e6)&&_0x3ee48e[_0x53fb7f(0x31d)]&&(_0x3ee48e['xlink:href']=_0x3ee48e[_0x53fb7f(0x31d)]+_0x2cfdbb['idSuffix']),Object[_0x53fb7f(0x401)](_0x3ee48e)[_0x53fb7f(0x396)](([_0x513bc6,_0x159fce])=>{const _0x19e6ee=_0x53fb7f;typeof _0x159fce=='string'&&(_0x3ee48e[_0x513bc6]=_0x159fce['replace'](/url\(#(.*)\)/,_0x19e6ee(0x24a)+_0x2cfdbb[_0x19e6ee(0x3d1)]+')'));})),_0x3ee48e;}function vi(_0x3c690c,_0x3d3a30){const _0x4efee4=_0x5e6c41;var _0x2ff0cd;const {defIds:_0x2e81b2}=_0x3d3a30;return!_0x2e81b2||_0x2e81b2[_0x4efee4(0x3f6)]===0x0?_0x3c690c:_0x3c690c[_0x4efee4(0x3c8)]===_0x4efee4(0x345)&&((_0x2ff0cd=_0x3c690c[_0x4efee4(0x416)])!=null&&_0x2ff0cd[_0x4efee4(0x3f6)])?{..._0x3c690c,'children':_0x3c690c[_0x4efee4(0x416)]['map'](_0x8c6158=>typeof _0x8c6158[_0x4efee4(0x418)]['id']==_0x4efee4(0x407)&&_0x2e81b2&&_0x2e81b2[_0x4efee4(0x376)](_0x8c6158[_0x4efee4(0x418)]['id'])?{..._0x8c6158,'attrs':{..._0x8c6158['attrs'],'id':_0x8c6158[_0x4efee4(0x418)]['id']+_0x3d3a30[_0x4efee4(0x3d1)]}}:_0x8c6158)}:_0x3c690c;}function Ei(){const _0x4ab879=_0x5e6c41;return Math['random']()[_0x4ab879(0x373)](0x24)['substring'](0x2,0x8);}Ge['displayName']=_0x5e6c41(0x3d0);const pi={'tag':_0x5e6c41(0x276),'attrs':{'xmlns':_0x5e6c41(0x1fb),'fill':_0x5e6c41(0x3f7),'viewBox':_0x5e6c41(0x234),'width':'1em','height':_0x5e6c41(0x38b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x5e6c41(0x2da),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5e6c41(0x405),'strokeLinejoin':_0x5e6c41(0x405),'strokeWidth':1.2}}]},{'tag':_0x5e6c41(0x345),'attrs':{},'children':[{'tag':_0x5e6c41(0x2b1),'attrs':{'id':_0x5e6c41(0x3f9)},'children':[{'tag':_0x5e6c41(0x2fa),'attrs':{'fill':_0x5e6c41(0x25d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5e6c41(0x3f9)]},Pt=_0x51965d(function(_0x3b2935,_0x4c05c5){const _0xf6b2b9=_0x5e6c41;return _0x255fc1(Ge,Object['assign']({},_0x3b2935,{'id':_0xf6b2b9(0x236),'ref':_0x4c05c5,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5e6c41(0x3f7),'viewBox':_0x5e6c41(0x2ad),'width':'1em','height':_0x5e6c41(0x38b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x5e6c41(0x37f),'strokeLinecap':_0x5e6c41(0x405),'strokeLinejoin':_0x5e6c41(0x405),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5e6c41(0x2b1),'attrs':{'id':_0x5e6c41(0x342)},'children':[{'tag':_0x5e6c41(0x2fa),'attrs':{'fill':_0x5e6c41(0x25d),'d':_0x5e6c41(0x43d),'transform':_0x5e6c41(0x250)}}]}]}],'defIds':[_0x5e6c41(0x342)]},wt=_0x51965d(function(_0xe572f0,_0x549bcf){const _0x13d4dc=_0x5e6c41;return _0x255fc1(Ge,Object[_0x13d4dc(0x381)]({},_0xe572f0,{'id':_0x13d4dc(0x400),'ref':_0x549bcf,'icon':Oi}));});wt[_0x5e6c41(0x230)]='OnLineIcon';function Ti(_0x222e54){const _0x3031f4=_0x5e6c41;switch(_0x222e54){case _0x54c613[_0x3031f4(0x390)]:return'collabStatus.offline';case _0x54c613[_0x3031f4(0x26c)]:return _0x3031f4(0x2ef);case _0x54c613[_0x3031f4(0x2f1)]:return _0x3031f4(0x289);case _0x54c613[_0x3031f4(0x378)]:return'collabStatus.notCollab';case _0x54c613[_0x3031f4(0x419)]:case _0x54c613[_0x3031f4(0x302)]:return'collabStatus.syncing';case _0x54c613[_0x3031f4(0x3ab)]:case _0x54c613[_0x3031f4(0x2e5)]:return _0x3031f4(0x3e2);}}function Ci(_0x38d16d){const _0x480687=_0x5e6c41,{status$:_0x275611}=_0x38d16d,_0x58f564=_0x371cb0(_0x275611,_0x54c613[_0x480687(0x378)]),_0x47c621=_0x2f6081(_0x353f39),_0x4a74ab=_0x2f6081(_0x48a112),_0x4adcd3=_0x58f564!==_0x54c613[_0x480687(0x390)],_0x1f600a=_0x47c621['t'](Ti(_0x58f564)),_0x7b4a83=_0x4adcd3?_0x4dce54(wt,{}):_0x4dce54(Pt,{}),_0x25707e=_0x39adb1(()=>{_0x4adcd3||_0x4a74ab['reconnect']();},[_0x4adcd3,_0x4a74ab]);function _0x172aee(){const _0x42f2e3=_0x480687;return _0x23cd24(_0x42f2e3(0x2fd),{'className':_0x42f2e3(0x317),'onClick':_0x25707e,'children':[_0x4dce54(_0x42f2e3(0x2fd),{'className':_0x370eaf(_0x42f2e3(0x25a),{'univer-text-green-500':_0x4adcd3,'univer-text-red-500':!_0x4adcd3}),'children':_0x7b4a83}),_0x4dce54('div',{'className':_0x42f2e3(0x33e),'children':_0x1f600a})]});}return _0x4adcd3?_0x172aee():_0x4dce54(_0x3a6a0e,{'title':_0x47c621['t'](_0x480687(0x2a5)),'children':_0x172aee()});}var Ri=Object[_0x5e6c41(0x3e4)],Di=(_0x10da4b,_0x419c55,_0x2bdcc5,_0x31b3c7)=>{const _0x114967=_0x5e6c41;for(var _0x39e56b=_0x31b3c7>0x1?void 0x0:_0x31b3c7?Ri(_0x419c55,_0x2bdcc5):_0x419c55,_0x558612=_0x10da4b[_0x114967(0x3f6)]-0x1,_0x542ea2;_0x558612>=0x0;_0x558612--)(_0x542ea2=_0x10da4b[_0x558612])&&(_0x39e56b=_0x542ea2(_0x39e56b)||_0x39e56b);return _0x39e56b;},se=(_0x5e46ca,_0x498370)=>(_0x5b1bac,_0x3c476c)=>_0x498370(_0x5b1bac,_0x3c476c,_0x5e46ca);let ae=class extends _0x52c1c5{constructor(_0x1a3df6,_0x2b1b9d,_0x7ec3bd,_0x2403cf){const _0x1ee047=_0x5e6c41;super(),_(this,_0x1ee047(0x211),new _0x1a4d1e(_0x54c613['NOT_COLLAB'])),(this[_0x1ee047(0x3d4)]=_0x1a3df6,this['_injector']=_0x2b1b9d,this[_0x1ee047(0x3a9)]=_0x7ec3bd,this[_0x1ee047(0x385)]=_0x2403cf,this[_0x1ee047(0x324)](),this[_0x1ee047(0x362)]());}[_0x5e6c41(0x362)](){const _0x261db4=_0x5e6c41;this[_0x261db4(0x3be)](this['_univerInstanceService'][_0x261db4(0x3a8)][_0x261db4(0x446)](_0x3c03a3(()=>{const _0x4d5b5e=_0x261db4,_0x314ed9=this[_0x4d5b5e(0x3d4)][_0x4d5b5e(0x2af)]();return _0x314ed9?this[_0x4d5b5e(0x3a9)][_0x4d5b5e(0x280)](_0x314ed9[_0x4d5b5e(0x37d)]()):_0x549864(null);}),_0x3c03a3(_0x825adf=>_0x825adf?_0x825adf[_0x261db4(0x209)]:_0x549864(_0x54c613[_0x261db4(0x378)])))[_0x261db4(0x377)](_0x471d33=>{const _0xff59d9=_0x261db4;this[_0xff59d9(0x211)]['next'](_0x471d33);}));}['_initStatusComponent'](){const _0x27522f=_0x5e6c41;this[_0x27522f(0x3be)](this[_0x27522f(0x385)]['registerComponent'](_0x8de4b2[_0x27522f(0x23a)],()=>_0x11e8d0(bi({'status$':this[_0x27522f(0x211)][_0x27522f(0x2a8)]()}),this[_0x27522f(0x254)])));}};ae=Di([se(0x0,_0x49c215),se(0x1,_0x393365(_0xaa1b4f)),se(0x2,_0x393365(_0xba3a41)),se(0x3,_0x3cb359)],ae);function _0x4cf4(){const _0x519280=['_onCursorUpdate','_logService','roomMembers','_registerRenderDependencies','with','init','_localCacheService','clearInterval','UNDEFINED','collabCursorState$','DeleteRangeMoveLeftCommandId','USER_NOT_FOUND','map','_taskIds','univer-flex\x20univer-items-center','removeParam','rgba(255,\x20255,\x20255,\x200.01)','YUUMI_ASYNCIO_CANCELLED','_onRefRangeChange','urlChange$','xlink:href','_shapes','_handleHeartbeatEvent','min','_imageIoService','next','getVpScrollXYInfoByPosToVp','_initStatusComponent','_scheduleSaving','fillStyle','selections','_saveCache','145988PoCmIS','transformMutationsWithChangeset','_getFormulaLimitStatus','_uploadLog','_initUnhandledRejectionListener','getDocRanges','session.collaboration-timeout','createInstance','_setupSubUnitSync','_render','_httpService','storage','UPDATE_CURSOR','m2Prime','transformIMECache','getUnit','setAlpha','session.will-retry','executeCommand','currentTheme$','size','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','text','_startDocCollabCursor','_collaborationUIEventService','on-line-icon_clip0_910_349','DeleteRangeMoveUpCommandId','/run/','defs','startsWith','SOCKET_FAILED','updateOfflineData','getCollabCursors$','_clearOtherTimers','endColumn','toRgbString','_docClipboardService','RemoveColCommandId','loadOfflineData','_sheetSkeletonManagerService','debug','APPLY_DUPLICATED','_docSyncEditingCollabCursorService','_eventUnsubscribe','_refRangeService','undoState','max','1182462XJRmFl','_monkeyPatchLogService','stack','getOffsetConfig','reason','stage','black','dispose','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationDataLoaderController]','_initStatusListener','replaceState','getColorFromTheme','subunit','body','Warning','_entityInit$','OTHER_CLIENT_EDITING','makeDirty','_initCommandExecutedListener','_getScale','_checkAndWaitForCalculationPermission','application/json','_releaseCalculationLimit','measureText','INVALID_ARGUMENT','params','toString','bottom','_handleLeaveEvent','includes','subscribe','NOT_COLLAB','getMember','MOBILE_VERIFY_CODE_MISMATCH','getConfig','unitID','getUnitId','save','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','transformMutation','assign','from','onCommandExecuted','textRanges','_uiPartsService','LOGIN_TOKEN_PROCESSING_FAILED','fill','collaboration-client-ui.config','_localStorageService','_toggleOffline','1em','get','addObject','clearTimeout','_removeClearOtherTimer','OFFLINE','ENTITLE_CAN_NOT_BUY_LOWER_OTP','values','beginPath','[Window\x20Error]:\x20','ticket','forEach','formula.calculation.unable','_color','m1Prime','_handleHover','color','_removeCollabCursors','RECT','some','message','currentSkeleton$','add','getUnitStatus$','_init','has','drawWith','TEXT','APPLY_REJECT','focused$','_collaborationController','Failed','SYNCED','redoState','INVITE_CODE_HAS_BEEN_UES','whenReady','_unitStatus','href','_scheduleClearOtherTimer','collab-text-anchor-','roomMembers$','_hasFormulaInDirtyRanges','_heartbeatTimer','_cachedData','getStateCache','COMPLETION_FINISHED','parse','ENTITLE_INSUFFICIENT_QUOTA','_notificationService','_selfUnitIDs','getRenderById','disposeWithMe','then','_handleEvent','25rkRBLM','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getSkeleton','catch','InsertRowCommandId','62349204FUnoOi','Loading','tag','key','UNIVER_SHEET','history','_lastResponseTimestamp','PERMISSION_DENIED','_colorAssignService','_memberService','UniverIcon','idSuffix','APPLY_PERMISSION_DENIED','JOIN_ROOM_FAILED','_univerInstanceService','Unknown\x20user','height','getTypeOfUnitDisposed$','[Unhandled\x20Rejection]:\x20','eventID','hovered','collab-text-range-','runId','unshift','_refreshCollabCursors','totalFormulasToCalculate','_onCursorDelete','createSocket','collabStatus.synced','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getOwnPropertyDescriptor','getTypeOfUnitAdded$','use','795694sKwFCn','_syncEditingCollabCursorService','ERROR_AGAIN','_docTransformSelectionsService','setActiveRange','INVITE_CODE_REQUIRED','_doCreateSocket','onTransformChange$','getCurrentUnitForType','activeSheet$','_ensureSubject','colorChannel1','colno','_hover','backgroundColor','length','none','post','off-line-icon_clip0_910_343','ACTIVE_UNIT_EVENT_CHANNEL','doc.mutation.rich-text-editing','error','resize','8353728YqyZYj','USER_NOT_INVITED_CODE','on-line-icon','entries','getCurrent','releaseFormulaLimitUrl','permission.title','round','getRelativeToViewportCoord','string','requireSession','pushState','popstate','imageSourceType','univerjs-icon\x20univerjs-icon-','fillText','onLocalMutation','_localeService','_renderManagerService','VIEW_MAIN','code','_draw','memberID','event$','children','_updateSubUnitFromURLParams','attrs','AWAITING','_drawAnchor','INTERNAL_ERROR','InsertColCommandId','_initResize','YUUMI_AI_RUN_FAILED','/universer-api/license/formula/limit/done','labelPosition','6CWkpFC','functionsExecutedState','dispose$','YUUMI_RATE_OVER_LIMIT','data','unitId','CHANGESET_REVISION_CONFILICT','getValue','SNAPSHOT_INVALID_SNAPSHOT','_saveTaskMap','subscribeEvent','show','30tspNvQ','session.connection-failed','ENTITLE_DUP_SUBSCRIPTION','sessionStatus$','dirtyRanges','YUUMI_SUBSCRIPTION_NOT_FOUND','getCellMatrix','pluginName','find','searchParams','_assignedColors','_pollingInterval','_getSheetObject','USERS_LEAVE','now','setShapeProps','M0\x200H16V16H0z','onPointerEnter$','beforeCommandExecuted','filename','REDEMPTION_CODE_NOT_STARTED','getActiveSheet','getCellPositionByOffset','getMemberID','_roomMembers$','pipe','SOCKET_FAILED_RETRY','_cursors','blue.400','_memberID','APPLY_REVISION_CONFILICT','row','uni.network.url-service','_cursorInfo$','fillRule','getCurrentRevOfUnit','SNAPSHOT_HAS_BEEN_REMOVED','complete','REDEMPTION_CODE_INACTIVE','getItem','_collabCursorState$','_scheduleHeartbeat','_docTransformStateCacheService','_lastPointer','LICENSE_EXPORT_SIZE_EXCEEDED','_unitOnClients','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','set','name','ENTITLE_NEED_BILLING_ADDRESS','origin','http://www.w3.org/2000/svg','setTimeout','red.300','MoveRangeCommandId','_config','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_maxFormulaLimit','UNRECOGNIZED','_applyCommand','UNAUTHENTICATED','arc','_docTransformIMECacheService','collab-rect-range-','replaceDocRanges','status$','_id','/universer-api/license/formula/limit/status','_backgroundColor','1RFaCUv','selection','send','_send','_status$','REDEMPTION_USER_NOT_ELIGIBLE','stringify','executionId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','MOBILE_HAS_BEEN_BOUND','socket$','limitInfo','_collaborationSessionService','findNodePositionByCharIndex','_currentUsage','unsubscribe','_registerDependencies','YUUMI_ALL_TABLES_IS_INVALID','cursorInfo','_dataLoaderService','_getAnchorBounding','YUUMI_TABLE_NOT_FOUND_IN_UNIT','...','_showGuardMessage','current','getAncestorScale','11997433Frqjnz','_cursor','syncEditingCollabCursor','_updateLocalCursor','override','REDEMPTION_CODE_HAS_BEEN_CREATED','type','exhaustSavingTask','subUnitId','displayName','split','_drawTextRange','_updateURLWithCurrentState','0\x200\x2016\x2016','result','off-line-icon','INVITE_CODE_ALREADY_BOUND','range','moveTo','HEADER_MENU','getUndoRedoMutationParamsCache','_updateCollabCursors','_instanceService','_collabCursorController','INVALID_INVITE_CODE','triggerDblclick','getSheetBySheetId','YUUMI_URL_COL_OUT_OF_RANGE','/universer-api/frontend/logs','_clearPolling','startFormulaLimitUrl','addClipboardHook','InsertRangeMoveRightCommandId','setConfig','_drawRectRange','url(#$1','WECHAT_HAS_BEEN_BOUND','_hideTimer','250560Mrrxrw','getSheetId','REDEMPTION_INVALID_CODE','translate(.97)','onPointerLeave$','getRangePointData','jiqing.500','_injector','FromArray','ENSURE_SNAPSHOT_EXECUTION','stageInfo','saveTaskMap','_initEvent','univer-mr-2\x20univer-flex\x20univer-text-xl','delete','_initEntityListener','white','_context','replace','?taskId=','addEventListener','_transformPreviousActiveRange','CURRENT_STATUS_CANNOT_OPERATE','enableFrontendLog','SUBMIT_CHANGESET_TIMEOUT','NO_OTHER_CLIENTS_EDITING','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ALREADY_EXISTS','_createSocketURL','editingUnit','registerRefRange','CONFLICT','_docStateChangeManagerService','defineProperty','_toggleOnline','TOO_MANY_REQUESTS','YUUMI_UNABLE_LOAD_URL','font','sheetID','/universer-api/license/formula/limit/start','cursorInfo$','svg','_textBubble','_startCalculationLimit','_anchorDot','CONNECTOR_DATA_TOO_LARGE','11xxdCNz','_getMergeRange','_collabSessionService','isActive','mask','getCollabEntity$','search','APPLY_NON_SEQUENTIAL_REVISION','lineTo','_range','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','#FFF','_hovered','unhandledrejection','collabStatus.fetchMiss','mutations','onStarting','_docSkeletonManagerService','unit','join','_initDependencies','ENTITLE_REPORT_LIMIT_EXCEED','_disabled','_commandService','EMAIL_HAS_BEEN_BOUND','column','evenodd','permission.content','InsertRangeMoveDownCommandId','_startSheetCollabCursor','contains','lineno','width','_name','_setupBeforeClosingHandler','hide','_getSaveTimeout','maxFormulaLimit','addHandlerCallback','enableLocalCache','ranges','_initUserListener','collab-client.tooltip.reconnect','onRendered','_initCommandInterceptor','asObservable','_transformHistoryAndStateStack','push','assignAColorForMemberID','green.600','0\x200\x2017\x2016','newValue','getFocusedUnit','DATA_SOURCE_TOO_LARGE','clipPath','deepClone','getActiveRange','_revisionService','LICENSE_IMPORT_SIZE_EXCEEDED','REDEMPTION_CODE_FULLY_REDEEMED','_entities','isEditing','flatMap','Error','parseInt','registerRenderModule','startRow','EMAIL_VERIFY_CODE_MISMATCH','_session','_getSessionTicket','restore','_urlService','UNIVER_DOC','isArray','collaboration.closeRoom','_labelPosition','PAYMENT_CHANNEL_NOT_SUPPORT','_themeService','_initWindowErrorListener','_setFormulaLimitStatus','collaboration.single-unit.warning','all','ENTITLE_CHAT_LIMIT_EXCEED','closePath','transformRemoteChangeset','YUUMI_CONNECTOR_URL_NOT_FOUND','formula.calculation.waiting','_online','transformByState','_beforeCloseService','docStateChange$','top','getParam','saveImage','transform','currentColor','source','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_messageService','skeleton','onMouseMove','removeEventListener','setUndoRedoMutationParamsCache','USER_IS_ANONYMOUS','getCurrentSelections','_transformService','PENDING','_checkCalculationAvailable','RemoveRowCommandId','setItem','_handleJoinEvent','_configService','startColumn','sheetId','_scene','formula.calculation.started','collabStatus.conflict','getViewport','FETCH_MISS','YUUMI_NO_CUBOID_FOR_QUESTION','_anchor','_transformUndoRedoStack','NOT_FOUND','setInterval','[LogService\x20Error]:\x20','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','endRow','path','yellow.400','_cursorShapes','div','location','CLOSE_ROOM','loadUnit','LICENSE_DISTRO_REJECTED','AWAITING_WITH_PENDING','getformulaLimitStatusUrl','addObjects','ONLINE','transformStateCache','actions','collaboration-client.offline-data-not-saved'];_0x4cf4=function(){return _0x519280;};return _0x4cf4();}function bi(_0x10146b){const {status$:_0x565b6f}=_0x10146b;return function(){return _0x4dce54(Ci,{'status$':_0x565b6f});};}const yt=_0x44b024(_0x5e6c41(0x1e8));var Ni=Object[_0x5e6c41(0x3e4)],Li=(_0x253ee5,_0x55276b,_0xa5b293,_0x202d09)=>{const _0x39b1b6=_0x5e6c41;for(var _0x27edb5=_0x202d09>0x1?void 0x0:_0x202d09?Ni(_0x55276b,_0xa5b293):_0x55276b,_0x483d18=_0x253ee5[_0x39b1b6(0x3f6)]-0x1,_0x2f548e;_0x483d18>=0x0;_0x483d18--)(_0x2f548e=_0x253ee5[_0x483d18])&&(_0x27edb5=_0x2f548e(_0x27edb5)||_0x27edb5);return _0x27edb5;},K=(_0x4384f0,_0xc64609)=>(_0x26b751,_0x136e4a)=>_0xc64609(_0x26b751,_0x136e4a,_0x4384f0);let ce=class extends _0x4e0967{constructor(_0x4b53a8,_0x98eda6,_0x38a1eb,_0x4bef9f,_0x400a5c){const _0x45e8be=_0x5e6c41;super(),this[_0x45e8be(0x2c2)]=_0x4b53a8,this[_0x45e8be(0x30a)]=_0x98eda6,this[_0x45e8be(0x292)]=_0x38a1eb,this[_0x45e8be(0x220)]=_0x4bef9f,_0x400a5c?_0x400a5c==null||_0x400a5c[_0x45e8be(0x3ae)]()['then'](()=>this[_0x45e8be(0x3a3)]()):(this[_0x45e8be(0x30a)][_0x45e8be(0x351)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x45e8be(0x3a3)]());}async['_init'](){const _0x52a52a=_0x5e6c41,_0x5448dd=this[_0x52a52a(0x2c2)][_0x52a52a(0x2d7)](_0x52a52a(0x28d)),_0x3575cf=this[_0x52a52a(0x2c2)][_0x52a52a(0x2d7)](_0x52a52a(0x22d)),_0x12885a=this[_0x52a52a(0x2c2)][_0x52a52a(0x2d7)](_0x52a52a(0x365));if(!_0x5448dd||!_0x3575cf){this[_0x52a52a(0x30a)][_0x52a52a(0x351)](_0x52a52a(0x361),_0x52a52a(0x215));return;}const _0x287c02=await this[_0x52a52a(0x220)][_0x52a52a(0x300)](_0x5448dd,Number(_0x3575cf),_0x12885a);_0x287c02&&_0x287c02 instanceof _0x45ab4a&&this[_0x52a52a(0x331)](_0x287c02);}async[_0x5e6c41(0x331)](_0x412a54){const _0x57e09c=_0x5e6c41;await this[_0x57e09c(0x417)](_0x412a54),_0x412a54[_0x57e09c(0x3f0)][_0x57e09c(0x446)](_0x2c10e9(this[_0x57e09c(0x423)]))[_0x57e09c(0x377)](_0x518237=>{const _0x1fee97=_0x57e09c;_0x518237&&this[_0x1fee97(0x233)](_0x518237);}),this[_0x57e09c(0x2c2)][_0x57e09c(0x31c)]['pipe'](_0x2c10e9(this['dispose$']))['subscribe'](()=>this[_0x57e09c(0x417)](_0x412a54));}['_updateURLWithCurrentState'](_0x3cceea,_0x476730=!0x1){const _0x51d29e=_0x5e6c41,_0x1dc093=this['_urlService'][_0x51d29e(0x2d7)](_0x51d29e(0x365));_0x3cceea['getSheetId']()!==_0x1dc093&&this[_0x51d29e(0x2c2)]['setParam']('subunit',_0x3cceea['getSheetId'](),_0x476730);}async['_updateSubUnitFromURLParams'](_0x4da5f9){const _0x301909=_0x5e6c41;var _0x26155f;const _0x175e62=this[_0x301909(0x2c2)][_0x301909(0x2d7)](_0x301909(0x365));if(!_0x175e62||!_0x4da5f9[_0x301909(0x241)](_0x175e62)){const _0x544285=_0x4da5f9['getUnhiddenWorksheets']()[0x0],_0x141d2c=_0x4da5f9[_0x301909(0x241)](_0x544285);if(!_0x141d2c)return;this[_0x301909(0x233)](_0x141d2c,!0x0),await this[_0x301909(0x292)][_0x301909(0x33b)](_0x10d0b0['id'],{'unitId':_0x4da5f9[_0x301909(0x37d)](),'subUnitId':_0x544285});return;}((_0x26155f=_0x4da5f9[_0x301909(0x442)]())==null?void 0x0:_0x26155f[_0x301909(0x24e)]())!==_0x175e62&&await this[_0x301909(0x292)][_0x301909(0x33b)](_0x10d0b0['id'],{'unitId':_0x4da5f9[_0x301909(0x37d)](),'subUnitId':_0x175e62});}};ce=Li([K(0x0,yt),K(0x1,_0x4fe5ec),K(0x2,_0x51b600),K(0x3,_0x393365(_0x3a7b43)),K(0x4,_0xedba1f(_0x18359a))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0xba13f9,_0xebabcf,_0x21bf81,_0x3beadd)=>{const _0x45b18c=_0x5e6c41;for(var _0x2c1e2e=_0x3beadd>0x1?void 0x0:_0x3beadd?Ui(_0xebabcf,_0x21bf81):_0xebabcf,_0x5b731e=_0xba13f9[_0x45b18c(0x3f6)]-0x1,_0xb41578;_0x5b731e>=0x0;_0x5b731e--)(_0xb41578=_0xba13f9[_0x5b731e])&&(_0x2c1e2e=_0xb41578(_0x2c1e2e)||_0x2c1e2e);return _0x2c1e2e;},rt=(_0x55fced,_0x3efeca)=>(_0x4697a2,_0x160ea4)=>_0x3efeca(_0x4697a2,_0x160ea4,_0x55fced);let $e=class extends _0x4e0967{constructor(_0x3b0a9b,_0x54fd81){const _0x23d24f=_0x5e6c41;super(),this[_0x23d24f(0x34d)]=_0x3b0a9b,this[_0x23d24f(0x321)]=_0x54fd81,this[_0x23d24f(0x3a3)]();}[_0x5e6c41(0x3a3)](){const _0x457aae=_0x5e6c41,_0x3545a0=this;this[_0x457aae(0x3be)](this['_docClipboardService'][_0x457aae(0x246)]({'onBeforePasteImage':async _0x13c9a1=>{const _0x3ddb54=_0x457aae,_0x568d41=await _0x3545a0[_0x3ddb54(0x321)][_0x3ddb54(0x2d8)](_0x13c9a1);return _0x568d41?{'source':_0x568d41[_0x3ddb54(0x2db)],'imageSourceType':_0x568d41[_0x3ddb54(0x40b)]}:null;}}));}};$e=Mi([rt(0x0,_0x1cfd89),rt(0x1,_0x5e9532)],$e);const ot=['purple.300',_0x5e6c41(0x253),_0x5e6c41(0x2ac),_0x5e6c41(0x1fd),_0x5e6c41(0x449),_0x5e6c41(0x2fb)];class Ke extends _0x52c1c5{constructor(){const _0x2b64ce=_0x5e6c41;super(...arguments),_(this,_0x2b64ce(0x437),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x5bcf11){const _0x6a1090=_0x5e6c41;if(this[_0x6a1090(0x437)][_0x6a1090(0x3a4)](_0x5bcf11))return this[_0x6a1090(0x437)][_0x6a1090(0x38c)](_0x5bcf11);const _0x1b719f=ot[this['_colorIndex']];return this['_colorIndex']=(this['_colorIndex']+0x1)%ot[_0x6a1090(0x3f6)],this[_0x6a1090(0x437)][_0x6a1090(0x1f7)](_0x5bcf11,_0x1b719f),_0x1b719f;}}function $t(_0x163341){const _0xbd148b=_0x5e6c41;let _0x2b8ac6='';for(const _0x12fd3f of _0x163341){const {startOffset:_0x3c8789,endOffset:_0x3595c0,isActive:_0x57340f,rangeType:_0x295869,segmentId:_0x2d20c4,segmentPage:_0x5a72ec}=_0x12fd3f;_0x2b8ac6[_0xbd148b(0x3f6)]&&(_0x2b8ac6+=','),_0x2b8ac6+=_0x3c8789+':'+_0x3595c0+':'+(_0x57340f?'1':'0')+':'+_0x295869+':'+_0x2d20c4+':'+_0x5a72ec;}return _0x2b8ac6;}function Ai(_0x295f70){const _0x22dcfd=_0x5e6c41,_0x105cb0=_0x295f70[_0x22dcfd(0x231)](','),_0x346d42=[];for(const _0x23366d of _0x105cb0){const [_0x6ea81,_0x2c70f9,_0x21e03e,_0x5460bf,_0x5d88dd,_0x501915]=_0x23366d[_0x22dcfd(0x231)](':');_0x346d42[_0x22dcfd(0x2aa)]({'startOffset':Number(_0x6ea81),'endOffset':Number(_0x2c70f9),'collapsed':_0x6ea81===_0x2c70f9,'isActive':_0x21e03e==='1','rangeType':_0x5460bf===_0x471f62[_0x22dcfd(0x3a6)]?_0x471f62['TEXT']:_0x471f62['RECT'],'segmentId':typeof _0x5d88dd==_0x22dcfd(0x407)?String(_0x5d88dd):'','segmentPage':Number(_0x501915!=null?_0x501915:-0x1)});}return _0x346d42[_0x22dcfd(0x39e)](_0x41110a=>_0x41110a[_0x22dcfd(0x27e)])||(_0x346d42[0x0][_0x22dcfd(0x27e)]=!0x0),_0x346d42;}class ze extends _0x4e0967{constructor(){const _0x1dd4cb=_0x5e6c41;super(...arguments),_(this,_0x1dd4cb(0x1f0),new _0x1a4d1e(null)),_(this,'collabCursorState$',this[_0x1dd4cb(0x1f0)][_0x1dd4cb(0x2a8)]());}[_0x5e6c41(0x229)](_0x1acca4){const _0x1b255f=_0x5e6c41,{unitID:_0x5218f1,memberID:_0x1c3a7c,textRanges:_0x563484}=_0x1acca4,_0x1410c7=$t(_0x563484);if(_0x1410c7==='')return;const _0x279842={'unitID':_0x5218f1,'memberID':_0x1c3a7c,'selection':_0x1410c7};this[_0x1b255f(0x1f0)][_0x1b255f(0x322)](_0x279842);}}var Pi=Object[_0x5e6c41(0x3e4)],wi=(_0x113ab8,_0xab2ef2,_0xe6478b,_0x2b0f24)=>{for(var _0x12f9fb=_0x2b0f24>0x1?void 0x0:_0x2b0f24?Pi(_0xab2ef2,_0xe6478b):_0xab2ef2,_0x26f1d1=_0x113ab8['length']-0x1,_0x1e18f6;_0x26f1d1>=0x0;_0x26f1d1--)(_0x1e18f6=_0x113ab8[_0x26f1d1])&&(_0x12f9fb=_0x1e18f6(_0x12f9fb)||_0x12f9fb);return _0x12f9fb;},A=(_0x1703a3,_0x17003b)=>(_0x261acc,_0x4bf573)=>_0x17003b(_0x261acc,_0x4bf573,_0x1703a3);const yi=0x12c,$i=0x64;let xe=class extends _0x4e0967{constructor(_0x4dce36,_0x53bf93,_0x47eeb3,_0x36f67a,_0x1fa032,_0x2733ab,_0x3a4d9a,_0xf91288,_0x184e2b){const _0x2bb5c1=_0x5e6c41;super(),_(this,_0x2bb5c1(0x2d2),!0x1),_(this,_0x2bb5c1(0x3a3),!0x1),_(this,'_cursorInfo$',new _0x1a4d1e(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x2bb5c1(0x2a8)]()),_(this,_0x2bb5c1(0x445),new _0x1a4d1e([])),_(this,_0x2bb5c1(0x3b3),this[_0x2bb5c1(0x445)][_0x2bb5c1(0x446)](_0x554f5e(yi))),_(this,_0x2bb5c1(0x22a),_0x2e72cf(_0x236a0f=>{const _0x26a0fc=_0x2bb5c1,_0x46c6d3={'eventID':_0xcc84c4[_0x26a0fc(0x335)],'data':{'unitID':this[_0x26a0fc(0x37c)],'memberID':this['_session'][_0x26a0fc(0x444)](),'selection':$t(_0x236a0f)}};this[_0x26a0fc(0x2bf)][_0x26a0fc(0x20f)](_0x46c6d3,this['unitID']);},$i)),(this['unitID']=_0x4dce36,this[_0x2bb5c1(0x2bf)]=_0x53bf93,this[_0x2bb5c1(0x254)]=_0x47eeb3,this[_0x2bb5c1(0x3ce)]=_0x36f67a,this[_0x2bb5c1(0x3cf)]=_0x1fa032,this[_0x2bb5c1(0x3e8)]=_0x2733ab,this[_0x2bb5c1(0x2e4)]=_0x3a4d9a,this[_0x2bb5c1(0x3d4)]=_0xf91288,this[_0x2bb5c1(0x292)]=_0x184e2b);}get[_0x5e6c41(0x21f)](){return this['_cursorInfo$']['getValue']();}get[_0x5e6c41(0x30b)](){const _0x476559=_0x5e6c41;return this['_roomMembers$'][_0x476559(0x428)]();}[_0x5e6c41(0x35f)](){const _0x4e7d73=_0x5e6c41;super[_0x4e7d73(0x35f)](),this[_0x4e7d73(0x1e9)]['next'](new Map()),this[_0x4e7d73(0x1e9)]['complete'](),this[_0x4e7d73(0x445)]['next']([]),this['_roomMembers$'][_0x4e7d73(0x1ed)]();}[_0x5e6c41(0x30e)](){const _0xd7d7f9=_0x5e6c41;this[_0xd7d7f9(0x3a3)]||(this['_init']=!0x0,this[_0xd7d7f9(0x2bf)][_0xd7d7f9(0x430)][_0xd7d7f9(0x446)](_0x2c10e9(this[_0xd7d7f9(0x423)]))[_0xd7d7f9(0x377)](_0x5836e5=>{const _0x6b015d=_0xd7d7f9;_0x5836e5===_0xbe9bd5[_0x6b015d(0x305)]?this[_0x6b015d(0x26f)]():this[_0x6b015d(0x38a)]();}),this[_0xd7d7f9(0x2bf)][_0xd7d7f9(0x415)][_0xd7d7f9(0x446)](_0x2c10e9(this['dispose$']))[_0xd7d7f9(0x377)](_0x221b0a=>{const _0x14d119=_0xd7d7f9,_0x504c3e=_0x221b0a[_0x14d119(0x3d9)];_0x504c3e===_0xcc84c4[_0x14d119(0x335)]&&this['_onCursorUpdate'](_0x221b0a),_0x504c3e===_0xcc84c4[_0x14d119(0x43a)]&&this[_0x14d119(0x3e0)](_0x221b0a);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2b3df3=>{const _0x382c33=_0xd7d7f9,_0x4049d7=_0x2b3df3[_0x382c33(0x372)];_0x4049d7!=null&&this['_online']&&_0x2b3df3['id']===_0x1b756a['id']&&_0x4049d7[_0x382c33(0x426)]===this[_0x382c33(0x37c)]&&_0x4049d7[_0x382c33(0x2b8)]===!0x1&&_0x4049d7[_0x382c33(0x2a3)]['length']>0x0&&this[_0x382c33(0x22a)](_0x4049d7[_0x382c33(0x2a3)]);})),this['_syncEditingCollabCursorService'][_0xd7d7f9(0x312)]['pipe'](_0x2c10e9(this[_0xd7d7f9(0x423)]))[_0xd7d7f9(0x377)](_0x13671b=>{const _0x4f606e=_0xd7d7f9;if((_0x13671b==null?void 0x0:_0x13671b[_0x4f606e(0x37c)])!==this[_0x4f606e(0x37c)])return;const _0x51f840={'eventID':_0xcc84c4[_0x4f606e(0x335)],'data':_0x13671b};this[_0x4f606e(0x309)](_0x51f840);}),this[_0xd7d7f9(0x3be)](this[_0xd7d7f9(0x292)][_0xd7d7f9(0x383)](_0x21b331=>{const _0x53c73d=_0xd7d7f9;if(_0x21b331['params']==null)return;const _0x469031=_0x21b331['params'];if(_0x21b331['id']!==_0x521baf['id']||_0x469031[_0x53c73d(0x426)]!==this['unitID'])return;const _0x2ef030={'id':_0x53c73d(0x3fb),'params':_0x469031},_0x2f86b3=this[_0x53c73d(0x21f)];for(const [_0x5a12c7,_0x5db8ce]of _0x2f86b3){const _0x122acd={'id':_0x53c73d(0x3fb),'params':{'unitId':this[_0x53c73d(0x37c)],'actions':null,'textRanges':_0x5db8ce[_0x53c73d(0x2a3)]}},_0x4a4ffd=this[_0x53c73d(0x2e4)][_0x53c73d(0x380)](_0x2ef030,_0x122acd,!0x1);if(_0xb2c014(_0x4a4ffd))throw _0x4a4ffd[_0x53c73d(0x3fc)];_0x2f86b3[_0x53c73d(0x1f7)](_0x5a12c7,{..._0x5db8ce,'ranges':_0x4a4ffd[_0x53c73d(0x336)][_0x53c73d(0x372)]['textRanges']});}queueMicrotask(()=>{const _0x4ba886=_0x53c73d;this[_0x4ba886(0x1e9)][_0x4ba886(0x322)](_0x2f86b3);});})));}[_0x5e6c41(0x309)](_0x585d49){const _0x541488=_0x5e6c41;var _0x95e4ca,_0x4d9f44;const {memberID:_0x442794,selection:_0x571875}=_0x585d49[_0x541488(0x425)],_0x4ff7ed=Ai(_0x571875),_0x37f56c=(_0x4d9f44=(_0x95e4ca=this['_memberService'][_0x541488(0x379)](this['unitID'],_0x442794))==null?void 0x0:_0x95e4ca[_0x541488(0x1f8)])!=null?_0x4d9f44:_0x541488(0x3d5),_0x4bc323={'color':this['_colorAssignService'][_0x541488(0x2ab)](_0x442794),'name':_0x37f56c,'ranges':_0x4ff7ed},_0x2314de=this[_0x541488(0x21f)];_0x2314de[_0x541488(0x1f7)](_0x442794,_0x4bc323),this[_0x541488(0x1e9)][_0x541488(0x322)](_0x2314de);}[_0x5e6c41(0x3e0)](_0x5a9d86){const _0x21455d=_0x5e6c41,{memberID:_0x55ece6}=_0x5a9d86[_0x21455d(0x425)],_0x3ca20d=this['cursorInfo'];_0x3ca20d[_0x21455d(0x25b)](_0x55ece6),this[_0x21455d(0x1e9)]['next'](_0x3ca20d);}[_0x5e6c41(0x26f)](){const _0x1a13ec=_0x5e6c41;var _0x3800d2;if(this[_0x1a13ec(0x2d2)]=!0x0,((_0x3800d2=this[_0x1a13ec(0x3d4)][_0x1a13ec(0x2af)]())==null?void 0x0:_0x3800d2[_0x1a13ec(0x37d)]())!==this[_0x1a13ec(0x37c)])return;const _0x367028=this[_0x1a13ec(0x254)][_0x1a13ec(0x38c)](_0x406d1c)['getDocRanges']();Array['isArray'](_0x367028)&&_0x367028['length']>0x0&&this[_0x1a13ec(0x22a)](_0x367028);}['_toggleOffline'](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x393365(_0xaa1b4f)),A(0x3,_0x393365(Ke)),A(0x4,_0x393365(_0x365024)),A(0x5,_0x393365(ze)),A(0x6,_0x59b3e4),A(0x7,_0x49c215),A(0x8,_0x51b600)],xe);var xi=Object[_0x5e6c41(0x3e4)],Bi=(_0xb025f2,_0x29984d,_0x5f1e5d,_0x5ede02)=>{for(var _0x29461d=_0x5ede02>0x1?void 0x0:_0x5ede02?xi(_0x29984d,_0x5f1e5d):_0x29984d,_0x3028a9=_0xb025f2['length']-0x1,_0x5952b4;_0x3028a9>=0x0;_0x3028a9--)(_0x5952b4=_0xb025f2[_0x3028a9])&&(_0x29461d=_0x5952b4(_0x29461d)||_0x29461d);return _0x29461d;},B=(_0x4c4060,_0x141585)=>(_0x2be662,_0x2b1811)=>_0x141585(_0x2be662,_0x2b1811,_0x4c4060);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x13f907=[],_0x452f31=!0x1;return _0x966fbb=>{_0x13f907['push'](_0x966fbb),_0x452f31||(_0x452f31=!0x0,setTimeout(()=>{_0x13f907['forEach'](_0x435470=>_0x435470()),_0x13f907=[],_0x452f31=!0x1;}));};};let Be=class extends _0x4e0967{constructor(_0x30dd70,_0x1a1cd4,_0x43f875,_0x16abfe,_0x33f862,_0xdf9f19,_0x3f5687,_0x4bc1c5){const _0x5937c1=_0x5e6c41;super(),_(this,_0x5937c1(0x2d2),!0x1),_(this,_0x5937c1(0x3a3),!0x1),_(this,'_cursorInfo$',new _0x1a4d1e(new Map())),_(this,_0x5937c1(0x275),this[_0x5937c1(0x1e9)][_0x5937c1(0x2a8)]()),_(this,_0x5937c1(0x445),new _0x1a4d1e([])),_(this,_0x5937c1(0x3b3),this['_roomMembers$'][_0x5937c1(0x446)](_0x554f5e(Fi))),_(this,_0x5937c1(0x22a),_0x2e72cf((_0x3ef711,_0x379115)=>{const _0x44710d=_0x5937c1,_0x597b57={'eventID':_0xcc84c4[_0x44710d(0x335)],'data':{'unitID':this[_0x44710d(0x37c)],'memberID':this[_0x44710d(0x2bf)][_0x44710d(0x444)](),'selection':_0x32ee88(_0x3ef711,_0x379115[_0x44710d(0x238)])}};this[_0x44710d(0x2bf)][_0x44710d(0x20f)](_0x597b57,this[_0x44710d(0x37c)]);},ki)),(this[_0x5937c1(0x37c)]=_0x30dd70,this[_0x5937c1(0x2bf)]=_0x1a1cd4,this[_0x5937c1(0x254)]=_0x43f875,this[_0x5937c1(0x3ce)]=_0x16abfe,this[_0x5937c1(0x3cf)]=_0x33f862,this[_0x5937c1(0x3d4)]=_0xdf9f19,this['_commandService']=_0x3f5687,this[_0x5937c1(0x355)]=_0x4bc1c5);}get[_0x5e6c41(0x21f)](){const _0x45cddb=_0x5e6c41;return this[_0x45cddb(0x1e9)]['getValue']();}get[_0x5e6c41(0x30b)](){const _0x2bf8de=_0x5e6c41;return this[_0x2bf8de(0x445)][_0x2bf8de(0x428)]();}['dispose'](){const _0x1b72d9=_0x5e6c41;super[_0x1b72d9(0x35f)](),this[_0x1b72d9(0x1e9)]['next'](new Map()),this[_0x1b72d9(0x1e9)][_0x1b72d9(0x1ed)](),this[_0x1b72d9(0x445)][_0x1b72d9(0x322)]([]),this[_0x1b72d9(0x445)]['complete']();}[_0x5e6c41(0x30e)](){const _0x2695dc=_0x5e6c41;this[_0x2695dc(0x3a3)]||(this[_0x2695dc(0x3a3)]=!0x0,this[_0x2695dc(0x2bf)][_0x2695dc(0x430)][_0x2695dc(0x446)](_0x2c10e9(this[_0x2695dc(0x423)]))[_0x2695dc(0x377)](_0x3cb893=>{const _0x202f94=_0x2695dc;_0x3cb893===_0xbe9bd5[_0x202f94(0x305)]?this[_0x202f94(0x26f)]():this[_0x202f94(0x38a)]();}),this[_0x2695dc(0x2bf)][_0x2695dc(0x415)][_0x2695dc(0x446)](_0x2c10e9(this[_0x2695dc(0x423)]))[_0x2695dc(0x377)](_0x41e00d=>{const _0x62890c=_0x2695dc,_0x2b73d2=_0x41e00d[_0x62890c(0x3d9)];_0x2b73d2===_0xcc84c4[_0x62890c(0x335)]&&this[_0x62890c(0x309)](_0x41e00d),_0x2b73d2===_0xcc84c4[_0x62890c(0x43a)]&&this['_onCursorDelete'](_0x41e00d);}),this[_0x2695dc(0x31b)](),this[_0x2695dc(0x3be)](this[_0x2695dc(0x292)][_0x2695dc(0x383)](_0x3a8f5a=>{const _0x52db42=_0x2695dc;if(this['_online']&&_0x3a8f5a['id']===_0x373183['id']&&_0x3a8f5a[_0x52db42(0x372)][_0x52db42(0x426)]===this[_0x52db42(0x37c)]){const _0x263a74=_0x3a8f5a[_0x52db42(0x372)];this['_updateLocalCursor'](_0x263a74[_0x52db42(0x22f)],_0x263a74[_0x52db42(0x327)][0x0]);}})));}['_onCursorUpdate'](_0x361a40){const _0x3f6a64=_0x5e6c41;var _0x5456af,_0x564b75;const {memberID:_0x4ddc48,selection:_0x41422c}=_0x361a40['data'],{sheetName:_0x1e9f85,range:_0x1c28aa}=_0x542628(_0x41422c),_0x107e84={'name':(_0x564b75=(_0x5456af=this[_0x3f6a64(0x3cf)]['getMember'](this[_0x3f6a64(0x37c)],_0x4ddc48))==null?void 0x0:_0x5456af[_0x3f6a64(0x1f8)])!=null?_0x564b75:_0x3f6a64(0x3d5),'range':this[_0x3f6a64(0x27c)](_0x1e9f85,_0x1c28aa),'sheetID':_0x1e9f85,'color':this[_0x3f6a64(0x3ce)][_0x3f6a64(0x2ab)](_0x4ddc48),'selection':_0x41422c},_0x27be00=this['cursorInfo'];_0x27be00['set'](_0x4ddc48,_0x107e84),this[_0x3f6a64(0x1e9)][_0x3f6a64(0x322)](_0x27be00);}[_0x5e6c41(0x3e0)](_0x2e84e2){const _0x26d202=_0x5e6c41,{memberID:_0x37d78d}=_0x2e84e2['data'],_0x39fe34=this[_0x26d202(0x21f)];_0x39fe34[_0x26d202(0x25b)](_0x37d78d),this[_0x26d202(0x1e9)][_0x26d202(0x322)](_0x39fe34);}[_0x5e6c41(0x27c)](_0x445b6e,_0x32af19){const _0x3bc3a3=_0x5e6c41;var _0x4aeb69,_0x1ba46b;const _0x41ed11=(_0x1ba46b=(_0x4aeb69=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x3bc3a3(0x37c)]))==null?void 0x0:_0x4aeb69[_0x3bc3a3(0x241)](_0x445b6e))==null?void 0x0:_0x1ba46b['getMergeData']();return(_0x41ed11==null?void 0x0:_0x41ed11[_0x3bc3a3(0x435)](_0x434a26=>_0xbac35e[_0x3bc3a3(0x299)](_0x434a26,_0x32af19)))||_0x32af19;}[_0x5e6c41(0x31b)](){const _0x5a6bb1=_0x5e6c41,_0xbb3b=new _0x57df36(),_0x442dd1=Hi(),_0x482bee=()=>{const _0xbe0b2f=_0x3e50;_0xbb3b[_0xbe0b2f(0x35f)]();const _0x393e90=(_0x2a4d00,_0x3f6164,_0x5bfd5b,_0x419d90)=>{const _0x400d9d=_0xbe0b2f;let _0x362911=[];switch(_0x2a4d00['id']){case _0x4d4aef[_0x400d9d(0x313)]:{_0x362911=_0x41fb43(_0x2a4d00,_0x419d90);break;}case _0x4d4aef[_0x400d9d(0x343)]:{_0x362911=_0x221b9b(_0x2a4d00,_0x419d90);break;}case _0x4d4aef[_0x400d9d(0x41c)]:{_0x362911=_0x1ffe26(_0x2a4d00,_0x419d90);break;}case _0x4d4aef[_0x400d9d(0x297)]:{_0x362911=_0x31cf40(_0x2a4d00,_0x419d90);break;}case _0x4d4aef[_0x400d9d(0x247)]:{_0x362911=_0x5c68e5(_0x2a4d00,_0x419d90);break;}case _0x4d4aef[_0x400d9d(0x3c5)]:{_0x362911=_0x2e721c(_0x2a4d00,_0x419d90);break;}case _0x4d4aef[_0x400d9d(0x1fe)]:{_0x362911=_0x51febe(_0x2a4d00,_0x419d90);break;}case _0x4d4aef[_0x400d9d(0x34e)]:{_0x362911=_0x1adf19(_0x2a4d00,_0x419d90);break;}case _0x4d4aef[_0x400d9d(0x2e7)]:{_0x362911=_0x3e1616(_0x2a4d00,_0x419d90);break;}}const _0x2619c1=_0x3019e5(_0x362911,_0x419d90),_0xeba6e5=this[_0x400d9d(0x21f)][_0x400d9d(0x38c)](_0x3f6164);if(_0xeba6e5&&_0x2619c1){const _0x396095={..._0xeba6e5,'range':_0x2619c1};this[_0x400d9d(0x21f)]['set'](_0x3f6164,_0x396095),_0x442dd1(()=>{const _0x2901b1=_0x400d9d,_0x588055=this[_0x2901b1(0x355)]['registerRefRange'](_0x2619c1,_0x2e27bb=>(_0x588055['dispose'](),_0x393e90(_0x2e27bb,_0x3f6164,_0x5bfd5b,_0x2619c1)));_0xbb3b['add'](_0x588055);});}return{'redos':[],'undos':[]};};this[_0xbe0b2f(0x21f)][_0xbe0b2f(0x396)]((_0xc730c2,_0x1d8b98)=>{const _0x38785a=_0xbe0b2f,{range:_0x1afeab,sheetID:_0x435308}=_0xc730c2,_0xfb97d7=this[_0x38785a(0x355)][_0x38785a(0x26b)](_0x1afeab,_0x4bdaca=>(_0xfb97d7[_0x38785a(0x35f)](),_0x393e90(_0x4bdaca,_0x1d8b98,_0x435308,_0x1afeab)));_0xbb3b[_0x38785a(0x3a1)](_0xfb97d7);});};this[_0x5a6bb1(0x3be)](_0x4d6e0f(this[_0x5a6bb1(0x1e9)][_0x5a6bb1(0x377)](()=>{_0x482bee();})));}[_0x5e6c41(0x26f)](){const _0xa691b4=_0x5e6c41;var _0x267e0f,_0x3deeb9;if(this[_0xa691b4(0x2d2)]=!0x0,((_0x267e0f=this[_0xa691b4(0x3d4)][_0xa691b4(0x2af)]())==null?void 0x0:_0x267e0f['getUnitId']())!==this['unitID'])return;const _0x21ed77=(_0x3deeb9=this[_0xa691b4(0x254)][_0xa691b4(0x38c)](_0x211a3e)[_0xa691b4(0x2e3)]())==null?void 0x0:_0x3deeb9[0x0],_0xecbb1f=this[_0xa691b4(0x3d4)][_0xa691b4(0x3ef)](_0x3f2b66['UNIVER_SHEET'])['getActiveSheet']();_0x21ed77&&_0xecbb1f&&this[_0xa691b4(0x22a)](_0xecbb1f[_0xa691b4(0x24e)](),_0x21ed77);}['_toggleOffline'](){this['_online']=!0x1;}};function _0x3e50(_0x4502c5,_0x4cd0d4){const _0x4cf4bd=_0x4cf4();return _0x3e50=function(_0x3e50e9,_0x492496){_0x3e50e9=_0x3e50e9-0x1e7;let _0xc3029e=_0x4cf4bd[_0x3e50e9];return _0xc3029e;},_0x3e50(_0x4502c5,_0x4cd0d4);}Be=Bi([B(0x2,_0x393365(_0xaa1b4f)),B(0x3,_0x393365(Ke)),B(0x4,_0x393365(_0x365024)),B(0x5,_0x49c215),B(0x6,_0x51b600),B(0x7,_0x393365(_0x248d6f))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x5a7bce,_0x16dd7f,_0x3c7570,_0x1b0cb8)=>{for(var _0x334ce2=_0x1b0cb8>0x1?void 0x0:_0x1b0cb8?Yi(_0x16dd7f,_0x3c7570):_0x16dd7f,_0x15b276=_0x5a7bce['length']-0x1,_0x487afc;_0x15b276>=0x0;_0x15b276--)(_0x487afc=_0x5a7bce[_0x15b276])&&(_0x334ce2=_0x487afc(_0x334ce2)||_0x334ce2);return _0x334ce2;},Ce=(_0x4d2dd5,_0x46b57c)=>(_0x23dcc4,_0x3d249e)=>_0x46b57c(_0x23dcc4,_0x3d249e,_0x4d2dd5);let H=class extends _0x4e0967{constructor(_0x25cdb0,_0x58cfec,_0x9d6340){const _0x5b975a=_0x5e6c41;super(),_(this,_0x5b975a(0x2b7),new Map()),_(this,'_entityInit$',new _0x1763c5()),(this[_0x5b975a(0x3d4)]=_0x25cdb0,this[_0x5b975a(0x254)]=_0x58cfec,this[_0x5b975a(0x27d)]=_0x9d6340,this[_0x5b975a(0x3a3)]());}['dispose'](){const _0x3e07c5=_0x5e6c41;super[_0x3e07c5(0x35f)](),this[_0x3e07c5(0x368)][_0x3e07c5(0x1ed)](),this[_0x3e07c5(0x2b7)][_0x3e07c5(0x396)](_0x25b19e=>_0x25b19e[_0x3e07c5(0x35f)]());}['getCollabCursors$'](_0xe78be7){const _0x1d250d=_0x5e6c41;return this[_0x1d250d(0x2b7)]['has'](_0xe78be7)?this[_0x1d250d(0x2b7)][_0x1d250d(0x38c)](_0xe78be7)[_0x1d250d(0x275)]:this[_0x1d250d(0x368)][_0x1d250d(0x446)](_0x34512d(_0xc9b8ce=>_0xc9b8ce[_0x1d250d(0x37c)]===_0xe78be7),_0x3c03a3(_0x31bbdf=>_0x31bbdf[_0x1d250d(0x275)]));}[_0x5e6c41(0x3a3)](){const _0x3b689d=_0x5e6c41;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3f2b66[_0x3b689d(0x3ca)])[_0x3b689d(0x446)](_0x2c10e9(this['dispose$']))[_0x3b689d(0x377)](async _0x517a70=>{const _0xac04cf=_0x3b689d,_0x4d48ce=_0x517a70[_0xac04cf(0x37d)](),_0x35fa1f=await this[_0xac04cf(0x298)](_0x4d48ce);this[_0xac04cf(0x368)]['next'](_0x35fa1f),this[_0xac04cf(0x2b7)]['set'](_0x4d48ce,_0x35fa1f);}),this[_0x3b689d(0x3d4)][_0x3b689d(0x3e5)](_0x3f2b66[_0x3b689d(0x2c3)])[_0x3b689d(0x446)](_0x2c10e9(this[_0x3b689d(0x423)]))['pipe'](_0x34512d(_0x7dbe28=>!_0x7dbe28[_0x3b689d(0x37d)]()[_0x3b689d(0x346)]('__')))[_0x3b689d(0x377)](async _0x346c96=>{const _0xc01cf6=_0x3b689d,_0x2aabdb=_0x346c96['getUnitId'](),_0x15395d=await this[_0xc01cf6(0x340)](_0x2aabdb);this[_0xc01cf6(0x368)][_0xc01cf6(0x322)](_0x15395d),this[_0xc01cf6(0x2b7)][_0xc01cf6(0x1f7)](_0x2aabdb,_0x15395d);}),_0x571abd(this['_univerInstanceService'][_0x3b689d(0x3d7)](_0x3f2b66[_0x3b689d(0x2c3)]),this[_0x3b689d(0x3d4)][_0x3b689d(0x3d7)](_0x3f2b66[_0x3b689d(0x3ca)]))[_0x3b689d(0x446)](_0x2c10e9(this[_0x3b689d(0x423)]))[_0x3b689d(0x377)](_0x373d97=>{const _0x56a292=_0x3b689d,_0x14b6e7=_0x373d97['getUnitId'](),_0x5dbb5e=this[_0x56a292(0x2b7)][_0x56a292(0x38c)](_0x14b6e7);_0x5dbb5e&&(_0x5dbb5e[_0x56a292(0x35f)](),this[_0x56a292(0x2b7)][_0x56a292(0x25b)](_0x14b6e7));});}async[_0x5e6c41(0x298)](_0x1f046d){const _0x2630ad=_0x5e6c41,_0x291217=await this[_0x2630ad(0x27d)][_0x2630ad(0x408)](_0x1f046d),_0x498d98=this[_0x2630ad(0x254)][_0x2630ad(0x330)](Be,_0x1f046d,_0x291217);return _0x498d98[_0x2630ad(0x30e)](),_0x498d98;}async[_0x5e6c41(0x340)](_0x475252){const _0x5e6575=_0x5e6c41,_0x65277b=await this['_collabSessionService'][_0x5e6575(0x408)](_0x475252),_0xcd1ce0=this[_0x5e6575(0x254)][_0x5e6575(0x330)](xe,_0x475252,_0x65277b);return _0xcd1ce0['init'](),_0xcd1ce0;}};H=Wi([Ce(0x0,_0x49c215),Ce(0x1,_0x393365(_0xaa1b4f)),Ce(0x2,_0x393365(_0x48a112))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x4784e4,_0x4bb41e){const _0x11eafc=_0x5e6c41;let {radius:_0x3fbb3a,width:_0x21eff4,height:_0x55b304}=_0x4bb41e;_0x3fbb3a=_0x3fbb3a!=null?_0x3fbb3a:0x0,_0x21eff4=_0x21eff4!=null?_0x21eff4:0x1e,_0x55b304=_0x55b304!=null?_0x55b304:0x1e;let _0x200752=0x0,_0x6ddfd4=0x0,_0x34acae=0x0;_0x200752=_0x6ddfd4=_0x34acae=Math[_0x11eafc(0x320)](_0x3fbb3a,_0x21eff4/0x2,_0x55b304/0x2),_0x4784e4[_0x11eafc(0x393)](),_0x4784e4[_0x11eafc(0x239)](_0x200752,0x0),_0x4784e4['lineTo'](_0x21eff4-_0x6ddfd4,0x0),_0x4784e4[_0x11eafc(0x205)](_0x21eff4-_0x6ddfd4,_0x6ddfd4,_0x6ddfd4,Math['PI']*0x3/0x2,0x0,!0x1),_0x4784e4[_0x11eafc(0x283)](_0x21eff4,_0x55b304-_0x34acae),_0x4784e4['arc'](_0x21eff4-_0x34acae,_0x55b304-_0x34acae,_0x34acae,0x0,Math['PI']/0x2,!0x1),_0x4784e4[_0x11eafc(0x283)](0x0,_0x55b304),_0x4784e4[_0x11eafc(0x283)](0x0,_0x200752),_0x4784e4[_0x11eafc(0x205)](_0x200752,_0x200752,_0x200752,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4784e4[_0x11eafc(0x2ce)](),_0x4bb41e[_0x11eafc(0x387)]&&(_0x4784e4[_0x11eafc(0x37e)](),_0x4784e4[_0x11eafc(0x326)]=_0x4bb41e[_0x11eafc(0x387)],_0x4bb41e[_0x11eafc(0x1ea)]==='evenodd'?_0x4784e4['fill'](_0x11eafc(0x295)):_0x4784e4[_0x11eafc(0x387)](),_0x4784e4[_0x11eafc(0x2c1)]());}class Ee extends _0x8dc89a{constructor(_0x559acb,_0x23cb92){const _0x3ac249=_0x5e6c41;super(_0x559acb,_0x23cb92),_(this,_0x3ac249(0x39b)),_(this,_0x3ac249(0x33f)),(this[_0x3ac249(0x39b)]=_0x23cb92==null?void 0x0:_0x23cb92[_0x3ac249(0x39b)],this[_0x3ac249(0x33f)]=_0x23cb92==null?void 0x0:_0x23cb92[_0x3ac249(0x33f)]);}static[_0x5e6c41(0x3a5)](_0x11ce6d,_0x5e26e6){const _0x290f95=_0x5e6c41,{text:_0xb6c60b,color:_0x5e2708}=_0x5e26e6;_0x11ce6d[_0x290f95(0x37e)](),_0x11ce6d[_0x290f95(0x272)]=_0x290f95(0x2f8);const _0x31a285=_0x11ce6d[_0x290f95(0x370)](_0xb6c60b)[_0x290f95(0x29b)],_0x4b17c3=Math[_0x290f95(0x320)](_0x31a285+0x2*Re,at);Vi(_0x11ce6d,{'height':Q,'radius':0x4,'width':_0x4b17c3,'fill':_0x5e2708}),_0x11ce6d['fillStyle']=_0x290f95(0x286);const _0x53c458=Re,_0x24a117=Q-ji,_0xba5fe9=at-0x2*Re;if(_0x31a285>_0xba5fe9){let _0x1fb703='',_0x248d03=0x0;for(const _0x565f66 of _0xb6c60b){const _0x555a3a=_0x11ce6d['measureText'](_0x565f66)[_0x290f95(0x29b)];if(_0x248d03+_0x555a3a<=_0xba5fe9-_0x11ce6d[_0x290f95(0x370)]('...')[_0x290f95(0x29b)])_0x1fb703+=_0x565f66,_0x248d03+=_0x555a3a;else{_0x1fb703+=_0x290f95(0x223);break;}}_0x11ce6d['fillText'](_0x1fb703,_0x53c458,_0x24a117);}else _0x11ce6d[_0x290f95(0x40d)](_0xb6c60b,_0x53c458,_0x24a117);_0x11ce6d[_0x290f95(0x2c1)]();}[_0x5e6c41(0x413)](_0x2d81cf){const _0x2331eb=_0x5e6c41;Ee[_0x2331eb(0x3a5)](_0x2d81cf,this);}}const De=_0x5e6c41(0x3b2),Xi=_0x5e6c41(0x3db),Gi=_0x5e6c41(0x207),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x5e6c41(0x319);class ct{constructor(_0x2c77e0,_0x47fae2,_0x366452,_0x1aea65){const _0x22ebf0=_0x5e6c41;_(this,_0x22ebf0(0x31e),[]),_(this,_0x22ebf0(0x2f3),null),_(this,_0x22ebf0(0x277),null),_(this,_0x22ebf0(0x279),null),_(this,'_hideTimer',null),_(this,_0x22ebf0(0x354),null),(this[_0x22ebf0(0x228)]=_0x2c77e0,this[_0x22ebf0(0x2ed)]=_0x47fae2,this['_docSkeleton']=_0x366452,this['_document']=_0x1aea65,this[_0x22ebf0(0x332)]());}set[_0x5e6c41(0x3f4)](_0x4922c7){const _0x20238c=_0x5e6c41;_0x4922c7?(this[_0x20238c(0x279)]&&this[_0x20238c(0x279)][_0x20238c(0x29e)](),this['_textBubble']&&this['_textBubble'][_0x20238c(0x42c)]()):(this[_0x20238c(0x279)]&&this[_0x20238c(0x279)][_0x20238c(0x42c)](),this[_0x20238c(0x277)]&&this['_textBubble']['hide']());}[_0x5e6c41(0x35f)](){const _0x49e527=_0x5e6c41;for(const _0x622aaa of this['_shapes'])_0x622aaa[_0x49e527(0x35f)]();this['_textBubble']&&this[_0x49e527(0x277)]['dispose'](),this['_anchorDot']&&this[_0x49e527(0x279)][_0x49e527(0x35f)](),this[_0x49e527(0x2f3)]&&this[_0x49e527(0x2f3)][_0x49e527(0x35f)](),this[_0x49e527(0x354)]&&this[_0x49e527(0x354)]();}[_0x5e6c41(0x332)](){const _0x4d1a07=_0x5e6c41;var _0x54976a;const {_docSkeleton:_0x487fa4,_document:_0x2978c1}=this,{color:_0x28cfcf,name:_0x4e8346,ranges:_0x7c2f87}=this['_cursor'],_0x10c079=_0x2978c1[_0x4d1a07(0x35b)](),{docsLeft:_0x5e0340,docsTop:_0x785d64}=_0x10c079,_0x40a1af=new _0x4d070d(_0x10c079,_0x487fa4);for(const {startOffset:_0x41c06c,endOffset:_0x3bd333,rangeType:_0x27700c,segmentId:_0x2ec11c,segmentPage:_0x5ca3a7,collapsed:_0x47b13a,isActive:_0x68fc83}of _0x7c2f87){const _0x44595f=_0x487fa4[_0x4d1a07(0x21a)](_0x41c06c,!0x0,_0x2ec11c,_0x5ca3a7);let _0x8359e4=_0x487fa4[_0x4d1a07(0x21a)](_0x3bd333,!0x0,_0x2ec11c,_0x5ca3a7);if(_0x8359e4==null&&(_0x8359e4=_0x487fa4[_0x4d1a07(0x21a)](_0x3bd333-0x1,!0x1,_0x2ec11c,_0x5ca3a7)),_0x68fc83){const {contentBoxPointGroup:_0x4d2a4c}=_0x40a1af[_0x4d1a07(0x252)](_0x8359e4,_0x8359e4);if(_0x4d2a4c[_0x4d1a07(0x3f6)]===0x0)continue;this[_0x4d1a07(0x41a)](_0x28cfcf,_0x4d2a4c,_0x5e0340,_0x785d64,_0x4e8346),this[_0x4d1a07(0x354)]=this[_0x4d1a07(0x39a)]();}if(_0x44595f&&_0x8359e4){if(_0x27700c===_0x471f62[_0x4d1a07(0x39d)]){const _0x462332=new _0x440298(_0x10c079,_0x487fa4),{pointGroup:_0x204891}=(_0x54976a=_0x462332[_0x4d1a07(0x252)](_0x44595f,_0x8359e4))!=null?_0x54976a:{};if(_0x204891==null||_0x204891[_0x4d1a07(0x3f6)]===0x0)continue;this[_0x4d1a07(0x249)](_0x28cfcf,_0x204891,_0x5e0340,_0x785d64);}else{if(!_0x47b13a){const {borderBoxPointGroup:_0x535127}=_0x40a1af[_0x4d1a07(0x252)](_0x44595f,_0x8359e4);if(_0x535127[_0x4d1a07(0x3f6)]===0x0)continue;this[_0x4d1a07(0x232)](_0x28cfcf,_0x535127,_0x5e0340,_0x785d64);}}}}}[_0x5e6c41(0x41a)](_0x494ecd,_0x582ce7,_0x431fea,_0x1914e1,_0x5b77fa){const _0x4166fc=_0x5e6c41,_0x46a981=this[_0x4166fc(0x221)](_0x582ce7),{left:_0x135267,top:_0x9789ae,height:_0x197c9b}=_0x46a981,_0x5441b9=this['_getScale'](),_0x277865=zi/_0x5441b9,_0x5e33fb=new _0x1b61d8(De+_0x220a66(z),{'left':_0x135267+_0x431fea-_0x277865,'top':_0x9789ae+_0x1914e1,'height':_0x197c9b,'width':Ki,'fill':_0x494ecd||_0x3af192(_0x1273e0['black'],0x0),'strokeWidth':_0x277865,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x5e33fb,this[_0x4166fc(0x2ed)][_0x4166fc(0x38d)](_0x5e33fb,_0x2ff152);const _0xbf17f9=new _0x1b61d8(De+_0x220a66(z),{'left':_0x135267+_0x431fea-_0x277865,'top':_0x9789ae+_0x1914e1-be/0x2,'height':be,'width':be,'fill':_0x494ecd||_0x3af192(_0x1273e0[_0x4166fc(0x35e)],0x0),'strokeWidth':0x0,'stroke':_0x494ecd||_0x3af192(_0x1273e0[_0x4166fc(0x35e)],0x0),'evented':!0x1});this[_0x4166fc(0x279)]=_0xbf17f9,this['_scene'][_0x4166fc(0x38d)](_0xbf17f9,_0x2ff152);const _0x43695b=new Ee(De+_0x220a66(z),{'left':_0x135267+_0x431fea-_0x277865,'top':_0x9789ae+_0x1914e1-Q,'text':_0x5b77fa,'color':_0x494ecd});this[_0x4166fc(0x277)]=_0x43695b,this[_0x4166fc(0x2ed)]['addObject'](_0x43695b,_0x2ff152),this['_hover']=!0x1;}['_handleHover'](){const _0x51ade4=_0x5e6c41,_0x2421f8=this[_0x51ade4(0x2f3)][_0x51ade4(0x43e)][_0x51ade4(0x42b)](()=>{const _0x319bf7=_0x51ade4;this[_0x319bf7(0x3f4)]=!0x0;}),_0xfee64a=this[_0x51ade4(0x2f3)][_0x51ade4(0x251)][_0x51ade4(0x42b)](()=>{const _0x520307=_0x51ade4;this[_0x520307(0x24c)]&&clearTimeout(this[_0x520307(0x24c)]),this[_0x520307(0x24c)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x131caf=_0x51ade4;_0x2421f8[_0x131caf(0x21c)](),_0xfee64a[_0x131caf(0x21c)]();};}[_0x5e6c41(0x232)](_0x18b269,_0xbcb5a4,_0x45fb4e,_0x944c70){const _0x46e3e0=_0x5e6c41,_0x312730=new _0x67e137(_0x18b269)[_0x46e3e0(0x339)](0.2)[_0x46e3e0(0x34c)](),_0x14a05f=new _0x358fac(Xi+_0x220a66(z),{'pointsGroup':_0xbcb5a4,'fill':_0x312730||_0x3af192(_0x1273e0[_0x46e3e0(0x35e)],0.2),'left':_0x45fb4e,'top':_0x944c70,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x46e3e0(0x31e)][_0x46e3e0(0x2aa)](_0x14a05f),this['_scene'][_0x46e3e0(0x38d)](_0x14a05f,_0x2ff152);}[_0x5e6c41(0x249)](_0x54ecfe,_0x19d9ac,_0x5f53fa,_0xf97d8f){const _0xa94d28=_0x5e6c41,_0x37cc8d=new _0x67e137(_0x54ecfe)[_0xa94d28(0x339)](0.2)['toRgbString'](),_0x3eabf8=new _0x358fac(Gi+_0x220a66(z),{'pointsGroup':_0x19d9ac,'fill':_0x37cc8d||_0x3af192(_0x1273e0[_0xa94d28(0x35e)],0.2),'left':_0x5f53fa,'top':_0xf97d8f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xa94d28(0x2aa)](_0x3eabf8),this[_0xa94d28(0x2ed)]['addObject'](_0x3eabf8,_0x2ff152);}['_getAnchorBounding'](_0x4359b1){const _0x4e0602=_0x4359b1[0x0],_0x534250=_0x4e0602[0x0],_0x41b6b6=_0x4e0602[0x2],{x:_0x4b85c1,y:_0x329d01}=_0x534250,{x:_0x305e4a,y:_0xa51b27}=_0x41b6b6;return{'left':_0x4b85c1,'top':_0x329d01,'width':_0x305e4a-_0x4b85c1,'height':_0xa51b27-_0x329d01};}[_0x5e6c41(0x36c)](){const _0x47905f=_0x5e6c41,{scaleX:_0x3cf0fe,scaleY:_0x5ab148}=this['_scene'][_0x47905f(0x226)]();return Math[_0x47905f(0x357)](_0x3cf0fe,_0x5ab148);}}var Zi=Object[_0x5e6c41(0x3e4)],Qi=(_0x468ef7,_0xdd36cd,_0x4f0404,_0x1e7f37)=>{for(var _0x37d1af=_0x1e7f37>0x1?void 0x0:_0x1e7f37?Zi(_0xdd36cd,_0x4f0404):_0xdd36cd,_0x368576=_0x468ef7['length']-0x1,_0x5047fa;_0x368576>=0x0;_0x368576--)(_0x5047fa=_0x468ef7[_0x368576])&&(_0x37d1af=_0x5047fa(_0x37d1af)||_0x37d1af);return _0x37d1af;},ie=(_0x4ec232,_0x1ff3f2)=>(_0x5b9b21,_0x1e0460)=>_0x1ff3f2(_0x5b9b21,_0x1e0460,_0x4ec232);let Fe=class extends _0x4e0967{constructor(_0x224669,_0x3e2e87,_0x469b93,_0xe2fff9,_0x4ca898){const _0x100605=_0x5e6c41;super(),_(this,_0x100605(0x2fc),[]),_(this,_0x100605(0x448),[]),(this[_0x100605(0x25e)]=_0x224669,this[_0x100605(0x28c)]=_0x3e2e87,this[_0x100605(0x23e)]=_0x469b93,this[_0x100605(0x292)]=_0xe2fff9,this[_0x100605(0x2c8)]=_0x4ca898,this[_0x100605(0x3a3)]());}[_0x5e6c41(0x3a3)](){const _0x40d06a=_0x5e6c41,_0x5092a2=this[_0x40d06a(0x25e)][_0x40d06a(0x426)],_0xfc89e8=this[_0x40d06a(0x28c)];this['disposeWithMe'](_0x3c0103([this[_0x40d06a(0x23e)][_0x40d06a(0x349)](_0x5092a2),this[_0x40d06a(0x2c8)][_0x40d06a(0x33c)]])[_0x40d06a(0x446)](_0x4770b7(([_0x5caf3a,_0x13f2f8])=>({'skeleton':_0xfc89e8[_0x40d06a(0x3c3)](),'cursors':[..._0x5caf3a[_0x40d06a(0x392)]()][_0x40d06a(0x2b9)](_0x4de87c=>({..._0x4de87c,'color':this['_themeService']['getColorFromTheme'](_0x4de87c[_0x40d06a(0x39b)])}))})))[_0x40d06a(0x377)](_0x5640b8=>{const _0x23dc2c=_0x40d06a;if(this[_0x23dc2c(0x39c)](),_0x5640b8){const {skeleton:_0x221414,cursors:_0x3f5c24}=_0x5640b8;this[_0x23dc2c(0x23c)](_0x221414,_0x3f5c24);}})),this[_0x40d06a(0x41d)](),this[_0x40d06a(0x36b)]();}[_0x5e6c41(0x23c)](_0x3772b7,_0x156116){const _0x394d79=_0x5e6c41,{scene:_0x5176d2,mainComponent:_0x4fb248}=this[_0x394d79(0x25e)],_0x5ef58f=_0x156116['map'](_0x555da2=>new ct(_0x555da2,_0x5176d2,_0x3772b7,_0x4fb248));this[_0x394d79(0x2fc)]=_0x5ef58f,this[_0x394d79(0x448)]=_0x156116;}[_0x5e6c41(0x3de)](){const _0x3ddec9=_0x5e6c41;this[_0x3ddec9(0x39c)]();const {scene:_0x5519f4,mainComponent:_0x5ecf5d}=this[_0x3ddec9(0x25e)],_0x4be27f=this[_0x3ddec9(0x28c)][_0x3ddec9(0x3c3)](),_0x4ddd61=this[_0x3ddec9(0x448)][_0x3ddec9(0x315)](_0x24ca73=>new ct(_0x24ca73,_0x5519f4,_0x4be27f,_0x5ecf5d));this[_0x3ddec9(0x2fc)]=_0x4ddd61;}[_0x5e6c41(0x39c)](){const _0x421402=_0x5e6c41;this[_0x421402(0x2fc)]['forEach'](_0x1d743f=>_0x1d743f['dispose']()),this[_0x421402(0x2fc)]=[];}[_0x5e6c41(0x36b)](){const _0x2e9d51=_0x5e6c41,_0xd1ad44=[_0x1d3151['id']];this['disposeWithMe'](this[_0x2e9d51(0x292)]['onCommandExecuted'](_0x1e1d28=>{const _0x4ecb94=_0x2e9d51;_0xd1ad44['includes'](_0x1e1d28['id'])&&_0x1e1d28['params']['unitId']===this['_context'][_0x4ecb94(0x426)]&&this[_0x4ecb94(0x3de)]();}));}[_0x5e6c41(0x41d)](){const _0x1503a7=_0x5e6c41;this[_0x1503a7(0x3be)](_0x386729(this['_context']['engine'][_0x1503a7(0x3ee)])[_0x1503a7(0x446)](_0x2fc674(_0x19e403=>_0x19e403[_0x1503a7(0x22d)]===_0x1681f6[_0x1503a7(0x3fd)]),_0x1c2466(0x10))[_0x1503a7(0x377)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x393365(_0x16f56d)),ie(0x2,_0x393365(H)),ie(0x3,_0x51b600),ie(0x4,_0x393365(_0x348b48))],Fe);const qi=0x1,en=1.5;class tn extends _0x8dc89a{constructor(_0x1da5b7,_0x2b1bde){const _0x2a4c55=_0x5e6c41;super(_0x1da5b7,_0x2b1bde),_(this,_0x2a4c55(0x398)),_(this,'_hovered',!0x1),_(this,_0x2a4c55(0x284)),_(this,_0x2a4c55(0x29c),''),_(this,_0x2a4c55(0x2c6),_0x2a4c55(0x2d6)),_(this,_0x2a4c55(0x20c)),(_0x2b1bde&&this[_0x2a4c55(0x43c)](_0x2b1bde),this[_0x2a4c55(0x43e)][_0x2a4c55(0x42b)](()=>this[_0x2a4c55(0x43c)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2a4c55(0x42b)](()=>this[_0x2a4c55(0x43c)]({'hovered':!0x1})));}['setShapeProps'](_0x45a963){const _0x3b2e65=_0x5e6c41;var _0xedbad6,_0x4a8791,_0x5c323b,_0x14329c,_0x16d907,_0x2c1b00;this[_0x3b2e65(0x398)]=(_0xedbad6=_0x45a963[_0x3b2e65(0x39b)])!=null?_0xedbad6:this[_0x3b2e65(0x398)],this[_0x3b2e65(0x287)]=(_0x4a8791=_0x45a963[_0x3b2e65(0x3da)])!=null?_0x4a8791:this['_hovered'],this[_0x3b2e65(0x284)]=(_0x5c323b=_0x45a963[_0x3b2e65(0x238)])!=null?_0x5c323b:this[_0x3b2e65(0x284)],this[_0x3b2e65(0x29c)]=(_0x14329c=_0x45a963[_0x3b2e65(0x1f8)])!=null?_0x14329c:this[_0x3b2e65(0x29c)],this[_0x3b2e65(0x2c6)]=(_0x16d907=_0x45a963[_0x3b2e65(0x420)])!=null?_0x16d907:this[_0x3b2e65(0x2c6)],this[_0x3b2e65(0x20c)]=(_0x2c1b00=_0x45a963[_0x3b2e65(0x3f5)])!=null?_0x2c1b00:this[_0x3b2e65(0x20c)],this[_0x3b2e65(0x2d3)]({'width':_0x45a963[_0x3b2e65(0x29b)],'height':_0x45a963[_0x3b2e65(0x3d6)]});}[_0x5e6c41(0x2df)](_0x4da0cf){const _0x11c052=_0x5e6c41,{row:_0x53d4ea,column:_0x4dc1b8}=_0x4da0cf;if(_0x53d4ea>=this[_0x11c052(0x284)][_0x11c052(0x2bd)]&&_0x53d4ea<=this['_range'][_0x11c052(0x2f9)]&&_0x4dc1b8>=this[_0x11c052(0x284)][_0x11c052(0x2eb)]&&_0x4dc1b8<=this[_0x11c052(0x284)][_0x11c052(0x34b)]){this[_0x11c052(0x43c)]({'hovered':!0x0});return;}this[_0x11c052(0x43c)]({'hovered':!0x1});}[_0x5e6c41(0x240)](_0x1d4b39){return!0x1;}[_0x5e6c41(0x413)](_0x134e37){const _0x510450=_0x5e6c41;_0x1b61d8[_0x510450(0x3a5)](_0x134e37,{'width':this[_0x510450(0x29b)],'height':this[_0x510450(0x3d6)],'strokeWidth':en,'stroke':this[_0x510450(0x398)],'evented':!0x1,'fill':this[_0x510450(0x20c)]}),this['_hovered']&&(_0x134e37['save'](),_0x134e37[_0x510450(0x2d9)](0x1,0x0,0x0,0x1,this[_0x510450(0x29b)],this[_0x510450(0x2c6)]===_0x510450(0x374)?0x0:-Q),Ee[_0x510450(0x3a5)](_0x134e37,{'text':this[_0x510450(0x29c)],'color':this['_color']}),_0x134e37['restore']());}}var sn=Object[_0x5e6c41(0x3e4)],nn=(_0x44c12d,_0x18e083,_0x5e71da,_0x1a0ac4)=>{const _0x103f7d=_0x5e6c41;for(var _0x4278ab=_0x1a0ac4>0x1?void 0x0:_0x1a0ac4?sn(_0x18e083,_0x5e71da):_0x18e083,_0x3784e8=_0x44c12d[_0x103f7d(0x3f6)]-0x1,_0x29ef84;_0x3784e8>=0x0;_0x3784e8--)(_0x29ef84=_0x44c12d[_0x3784e8])&&(_0x4278ab=_0x29ef84(_0x4278ab)||_0x4278ab);return _0x4278ab;},Ne=(_0x1f351c,_0x114b4b)=>(_0x134d87,_0x440203)=>_0x114b4b(_0x134d87,_0x440203,_0x1f351c);const rn=0x1389;let ke=class extends _0x4e0967{constructor(_0x2a7ed3,_0x33a2b8,_0x3825bd,_0x24e6bd){const _0xa4e32c=_0x5e6c41;super(),_(this,'_cursors',new Set()),_(this,_0xa4e32c(0x1f3),null),(this[_0xa4e32c(0x25e)]=_0x2a7ed3,this[_0xa4e32c(0x350)]=_0x33a2b8,this['_collabCursorController']=_0x3825bd,this[_0xa4e32c(0x2c8)]=_0x24e6bd,this['_init']());}[_0x5e6c41(0x3a3)](){const _0x4c7f2c=_0x5e6c41;this[_0x4c7f2c(0x350)][_0x4c7f2c(0x3a0)][_0x4c7f2c(0x446)](_0x45e81d(this[_0x4c7f2c(0x423)]),_0x5b8bb5(_0x20e192=>{const _0x59a916=_0x4c7f2c;if(_0x20e192){const _0x521f20=_0x20e192[_0x59a916(0x2ec)];return _0x3c0103(this['_collabCursorController'][_0x59a916(0x349)](this[_0x59a916(0x25e)][_0x59a916(0x426)]),this[_0x59a916(0x2c8)][_0x59a916(0x33c)])['pipe'](_0x4770b7(([_0x52ad77,_0xbe9917])=>{const _0x420384=new Map();return _0x52ad77['forEach']((_0x582aff,_0xdf680e)=>{const _0x7910aa=_0x3e50;if(_0x582aff[_0x7910aa(0x273)]===_0x521f20){const _0x3d80c2={..._0x582aff};_0x3d80c2[_0x7910aa(0x39b)]=this[_0x7910aa(0x2c8)][_0x7910aa(0x364)](_0x582aff[_0x7910aa(0x39b)]),_0x420384[_0x7910aa(0x1f7)](_0xdf680e,_0x3d80c2);}}),{'skeleton':_0x20e192,'cursors':_0x420384};}));}return _0x549864({'skeleton':null,'cursors':new Map()});}))[_0x4c7f2c(0x377)](({skeleton:_0x965c99,cursors:_0x5cfb62})=>{const _0x181fe7=_0x4c7f2c;this[_0x181fe7(0x39c)](),_0x965c99&&this[_0x181fe7(0x23c)](_0x965c99,_0x5cfb62);}),this[_0x4c7f2c(0x350)]['currentSkeleton$'][_0x4c7f2c(0x377)](_0xa86c67=>{const _0x5af62d=_0x4c7f2c;if(_0xa86c67==null)return;const {skeleton:_0x553bcf}=_0xa86c67,{scene:_0xea045c}=this[_0x5af62d(0x25e)];_0xea045c['onPointerMove$'][_0x5af62d(0x42b)](_0x2e72cf(_0xed6c1=>{const _0x5dbfd3=_0x5af62d;var _0x48a257,_0x50320f;const {offsetX:_0x33a412,offsetY:_0x2ae905}=_0xed6c1,{x:_0x176b09,y:_0x38cd87}=_0xea045c[_0x5dbfd3(0x406)](_0x47aacb[_0x5dbfd3(0x255)]([_0x33a412,_0x2ae905])),{scaleX:_0x97468b,scaleY:_0x43c1ff}=_0xea045c['getAncestorScale'](),_0x112241=_0xea045c[_0x5dbfd3(0x2f0)](_0x354b10[_0x5dbfd3(0x411)]),_0x2713eb=_0xea045c[_0x5dbfd3(0x323)](_0x47aacb[_0x5dbfd3(0x255)]([_0x176b09,_0x38cd87]),_0x112241),_0x33c649=_0x553bcf[_0x5dbfd3(0x443)](_0x33a412,_0x2ae905,_0x97468b,_0x43c1ff,_0x2713eb);((_0x48a257=this[_0x5dbfd3(0x1f3)])==null?void 0x0:_0x48a257['column'])===_0x33c649[_0x5dbfd3(0x294)]&&((_0x50320f=this[_0x5dbfd3(0x1f3)])==null?void 0x0:_0x50320f[_0x5dbfd3(0x1e7)])===_0x33c649[_0x5dbfd3(0x1e7)]||this[_0x5dbfd3(0x448)][_0x5dbfd3(0x396)](_0xeab0e3=>{const _0x3a1b4c=_0x5dbfd3;_0xeab0e3[_0x3a1b4c(0x2df)](_0x33c649);});},0x64));});}[_0x5e6c41(0x23c)](_0x1fada3,_0x27aeb9){const _0x2988cc=_0x5e6c41;var _0x3daf5e;const _0x2f45aa=(_0x3daf5e=this[_0x2988cc(0x350)][_0x2988cc(0x402)]())==null?void 0x0:_0x3daf5e[_0x2988cc(0x2de)];if(!_0x2f45aa)return;const _0x53fdb7=this[_0x2988cc(0x439)]();if(!_0x53fdb7)return;this[_0x2988cc(0x448)][_0x2988cc(0x396)](_0x427c7f=>{const _0x61af61=_0x2988cc;_0x427c7f[_0x61af61(0x36a)]();});const {scene:_0x1e8210}=_0x53fdb7,_0x25d175=on(Array[_0x2988cc(0x382)](_0x27aeb9[_0x2988cc(0x392)]()))[_0x2988cc(0x315)](_0x48d257=>{const {color:_0x27fc32,range:_0x27fc86,name:_0x58b387,selection:_0x4bd982,sheetID:_0xbdf4c3}=_0x48d257,{startColumn:_0x56bb18,startRow:_0x554b55,endColumn:_0xc4404c,endRow:_0x569f1a}=_0x27fc86,_0x20ec07=_0x58af9c(_0x554b55,_0x56bb18,_0x1e8210,_0x2f45aa),_0x24dda7=_0x58af9c(_0x569f1a,_0xc4404c,_0x1e8210,_0x2f45aa),{columnHeaderHeightAndMarginTop:_0x512e52}=_0x2f45aa,{startX:_0x12ce62,startY:_0x50a6b2}=_0x20ec07,{endX:_0x4b11d6,endY:_0x36bc85}=_0x24dda7,_0x517b02=_0x4b11d6-_0x12ce62,_0x447e78=_0x36bc85-_0x50a6b2,_0x1c5039={'labelPosition':_0x50a6b2-_0x512e52>=Q?'top':'bottom','sheetID':_0xbdf4c3,'range':_0x27fc86,'color':_0x27fc32,'name':_0x58b387,'selection':_0x4bd982,'left':_0x12ce62,'top':_0x50a6b2,'width':_0x517b02,'height':_0x447e78,'evented':!0x1,'zIndex':rn};return new tn(_0x58b387,_0x1c5039);});_0x1e8210[_0x2988cc(0x304)](_0x25d175,qi),this[_0x2988cc(0x448)]=new Set(_0x25d175);}[_0x5e6c41(0x39c)](){const _0x4b8079=_0x5e6c41;var _0x1377bf;(_0x1377bf=this[_0x4b8079(0x448)])==null||_0x1377bf[_0x4b8079(0x396)](_0x2ece57=>_0x2ece57[_0x4b8079(0x35f)]());}[_0x5e6c41(0x439)](){const _0x2b14ba=_0x5e6c41;return _0x381575(this[_0x2b14ba(0x25e)][_0x2b14ba(0x28d)],this[_0x2b14ba(0x25e)]);}};ke=nn([Ne(0x1,_0x393365(_0x33d450)),Ne(0x2,_0x393365(H)),Ne(0x3,_0x393365(_0x348b48))],ke);function on(_0x2dff3f){const _0x1d9a69=_0x5e6c41,_0x248967=new Map();return _0x2dff3f[_0x1d9a69(0x396)](_0x475e52=>{const _0xc0e83c=_0x1d9a69;if(_0x248967['has'](_0x475e52[_0xc0e83c(0x20e)])){const _0x4dc576=_0x248967[_0xc0e83c(0x38c)](_0x475e52[_0xc0e83c(0x20e)]);_0x4dc576[_0xc0e83c(0x1f8)]+=',\x20'+_0x475e52[_0xc0e83c(0x1f8)];}else _0x248967['set'](_0x475e52['selection'],_0x475e52);}),Array[_0x1d9a69(0x382)](_0x248967[_0x1d9a69(0x392)]());}var an=Object[_0x5e6c41(0x3e4)],cn=(_0x795bc4,_0x543f20,_0x43c6db,_0x495a3f)=>{const _0x549cee=_0x5e6c41;for(var _0x153659=_0x495a3f>0x1?void 0x0:_0x495a3f?an(_0x543f20,_0x43c6db):_0x543f20,_0x2d556e=_0x795bc4[_0x549cee(0x3f6)]-0x1,_0x23517b;_0x2d556e>=0x0;_0x2d556e--)(_0x23517b=_0x795bc4[_0x2d556e])&&(_0x153659=_0x23517b(_0x153659)||_0x153659);return _0x153659;},F=(_0x45ff76,_0xff99cc)=>(_0x4669e1,_0xc78ac8)=>_0xff99cc(_0x4669e1,_0xc78ac8,_0x45ff76);let _e=class extends _0x52c1c5{constructor(_0x1bce63,_0x75263b,_0x2b077b,_0x262fd2,_0x2deef5,_0x419edf){const _0x5092cb=_0x5e6c41;super(),this['_beforeCloseService']=_0x1bce63,this[_0x5092cb(0x30f)]=_0x75263b,this['_collaborationUIEventService']=_0x2b077b,this[_0x5092cb(0x2dd)]=_0x262fd2,this[_0x5092cb(0x3bb)]=_0x2deef5,this[_0x5092cb(0x40f)]=_0x419edf,this[_0x5092cb(0x29d)](),this['_initEvent']();}[_0x5e6c41(0x29d)](){const _0xf8be29=_0x5e6c41;this['disposeWithMe'](this[_0xf8be29(0x2d4)]['registerBeforeClose'](()=>{const _0x40dfe2=_0xf8be29;if(this[_0x40dfe2(0x30f)][_0x40dfe2(0x258)]['size'])return this[_0x40dfe2(0x40f)]['t'](_0x40dfe2(0x308));}));}[_0x5e6c41(0x259)](){const _0x35091b=_0x5e6c41;this[_0x35091b(0x3be)](this[_0x35091b(0x341)][_0x35091b(0x415)][_0x35091b(0x377)](_0x4eec49=>{const _0x53b200=_0x35091b;_0x4eec49['id']===_0x1e6779[_0x53b200(0x369)]&&this['_messageService'][_0x53b200(0x42c)]({'type':_0x248756['Warning'],'content':this[_0x53b200(0x40f)]['t'](_0x53b200(0x2cb))}),_0x4eec49['id']===_0x1e6779[_0x53b200(0x2ff)]&&this[_0x53b200(0x2dd)][_0x53b200(0x42c)]({'type':_0x248756['Warning'],'content':this['_localeService']['t'](_0x53b200(0x2c5))}),_0x4eec49['id']===_0x1e6779[_0x53b200(0x3cd)]&&this['_notificationService'][_0x53b200(0x42c)]({'title':this[_0x53b200(0x40f)]['t'](_0x53b200(0x404)),'content':this[_0x53b200(0x40f)]['t'](_0x53b200(0x296)),'type':'error','duration':0x0}),_0x4eec49['id']===_0x1e6779[_0x53b200(0x26c)]&&this[_0x53b200(0x2dd)]['show']({'type':_0x248756[_0x53b200(0x2ba)],'content':this[_0x53b200(0x40f)]['t'](_0x53b200(0x2c5))+'('+_0x4eec49['data']+')'}),_0x4eec49['id']===_0x1e6779[_0x53b200(0x3d3)]&&this['_messageService'][_0x53b200(0x42c)]({'type':_0x248756[_0x53b200(0x367)],'content':this[_0x53b200(0x40f)]['t'](_0x4eec49[_0x53b200(0x425)]||'')}),_0x4eec49['id']===_0x1e6779[_0x53b200(0x447)]&&this[_0x53b200(0x2dd)][_0x53b200(0x42c)]({'type':_0x248756[_0x53b200(0x367)],'content':this[_0x53b200(0x40f)]['t'](_0x53b200(0x33a))}),_0x4eec49['id']===_0x1e6779[_0x53b200(0x347)]&&this[_0x53b200(0x2dd)][_0x53b200(0x42c)]({'type':_0x248756[_0x53b200(0x2ba)],'content':this[_0x53b200(0x40f)]['t'](_0x53b200(0x42e))}),_0x4eec49['id']===_0x1e6779[_0x53b200(0x265)]&&this[_0x53b200(0x2dd)][_0x53b200(0x42c)]({'type':_0x248756[_0x53b200(0x2ba)],'content':this['_localeService']['t'](_0x53b200(0x32f))});}));}};_e=cn([F(0x0,_0x35341e),F(0x1,_0x588b9c),F(0x2,_0x393365(_0x56bb29)),F(0x3,_0xe75bb),F(0x4,_0x4344a2),F(0x5,_0x393365(_0x353f39))],_e);var _n=Object[_0x5e6c41(0x3e4)],ln=(_0x5a34f2,_0x32fd30,_0x116017,_0x275214)=>{const _0x5481a1=_0x5e6c41;for(var _0x45a902=_0x275214>0x1?void 0x0:_0x275214?_n(_0x32fd30,_0x116017):_0x32fd30,_0x3f4bae=_0x5a34f2[_0x5481a1(0x3f6)]-0x1,_0x4617f9;_0x3f4bae>=0x0;_0x3f4bae--)(_0x4617f9=_0x5a34f2[_0x3f4bae])&&(_0x45a902=_0x4617f9(_0x45a902)||_0x45a902);return _0x45a902;},ne=(_0x3d676c,_0x54ab66)=>(_0x1da8d5,_0x2a497f)=>_0x54ab66(_0x1da8d5,_0x2a497f,_0x3d676c);let le=class extends _0x52c1c5{constructor(_0x1d6021,_0x4e5b08,_0x27a8fb,_0x3d35c0){const _0x42bc08=_0x5e6c41;super(),_(this,'_memberID'),(this[_0x42bc08(0x254)]=_0x1d6021,this[_0x42bc08(0x333)]=_0x4e5b08,this[_0x42bc08(0x30a)]=_0x27a8fb,this[_0x42bc08(0x219)]=_0x3d35c0,this[_0x42bc08(0x3a3)]());}[_0x5e6c41(0x3a3)](){const _0x3c3c32=_0x5e6c41;this[_0x3c3c32(0x2c9)](),this[_0x3c3c32(0x32d)](),this['_monkeyPatchLogService'](),this[_0x3c3c32(0x2a4)]();}['_initUserListener'](){const _0x3848ce=_0x5e6c41;this[_0x3848ce(0x3be)](this['_collaborationSessionService'][_0x3848ce(0x217)]['subscribe'](_0x54a969=>{const _0x36f6be=_0x3848ce;this[_0x36f6be(0x44a)]=_0x54a969==null?void 0x0:_0x54a969[_0x36f6be(0x414)];}));}[_0x5e6c41(0x2c9)](){const _0x162c10=_0x5e6c41,_0x44c30a=_0xdf4bc7=>{const _0x4f1b45=_0x3e50;var _0x476d01;this['_uploadLog']('error',_0x4f1b45(0x394)+_0xdf4bc7[_0x4f1b45(0x39f)]+'\x20at\x20'+_0xdf4bc7[_0x4f1b45(0x440)]+':'+_0xdf4bc7[_0x4f1b45(0x29a)]+':'+_0xdf4bc7[_0x4f1b45(0x3f3)]+'\x0a'+(((_0x476d01=_0xdf4bc7[_0x4f1b45(0x3fc)])==null?void 0x0:_0x476d01[_0x4f1b45(0x35a)])||''));};window[_0x162c10(0x261)](_0x162c10(0x3fc),_0x44c30a),this[_0x162c10(0x3be)](()=>{const _0xa207bd=_0x162c10;window['removeEventListener'](_0xa207bd(0x3fc),_0x44c30a);});}['_initUnhandledRejectionListener'](){const _0x252c4c=_0x5e6c41,_0x553df3=_0x1838f7=>{const _0x547016=_0x3e50;this['_uploadLog'](_0x547016(0x3fc),_0x547016(0x3d8)+_0x1838f7[_0x547016(0x35c)]);};window[_0x252c4c(0x261)]('unhandledrejection',_0x553df3),this[_0x252c4c(0x3be)](()=>{const _0x284e68=_0x252c4c;window[_0x284e68(0x2e0)](_0x284e68(0x288),_0x553df3);});}[_0x5e6c41(0x359)](){const _0x424e53=_0x5e6c41,_0x3e2ea7=this['_logService'][_0x424e53(0x3fc)]['bind'](this[_0x424e53(0x30a)]);this[_0x424e53(0x30a)]['error']=(..._0x84ad3f)=>{const _0x3805f3=_0x424e53,_0x4d344d=_0x84ad3f[_0x3805f3(0x315)](_0x32c99e=>_0x32c99e instanceof Error?_0x32c99e['message']+'\x0a'+_0x32c99e['stack']:String(_0x32c99e))[_0x3805f3(0x28e)]('\x20');this['_uploadLog'](_0x3805f3(0x3fc),_0x3805f3(0x2f7)+_0x4d344d),_0x3e2ea7(..._0x84ad3f);},this[_0x424e53(0x3be)](()=>{const _0x3389e7=_0x424e53;this['_logService'][_0x3389e7(0x3fc)]=_0x3e2ea7;});}[_0x5e6c41(0x32c)](_0x32337c,_0x4080ed){const _0x440a5d=_0x5e6c41;try{const _0x33ee9d={'userId':this['_memberID'],'logLabel':_0x32337c,'content':_0x4080ed};this[_0x440a5d(0x333)][_0x440a5d(0x3f8)](_0x440a5d(0x243),{'body':_0x33ee9d})[_0x440a5d(0x3c4)](()=>{});}catch{}}};le=ln([ne(0x0,_0x393365(_0xaa1b4f)),ne(0x1,_0x393365(_0x2cb535)),ne(0x2,_0x4fe5ec),ne(0x3,_0x393365(_0x48a112))],le);const hn=_0x5e6c41(0x388),_t={};var un=Object[_0x5e6c41(0x3e4)],dn=(_0x3207cb,_0x4203c0,_0x271d69,_0x10b11c)=>{const _0x4c8620=_0x5e6c41;for(var _0x5bccf3=_0x10b11c>0x1?void 0x0:_0x10b11c?un(_0x4203c0,_0x271d69):_0x4203c0,_0x286b62=_0x3207cb[_0x4c8620(0x3f6)]-0x1,_0x106d8d;_0x286b62>=0x0;_0x286b62--)(_0x106d8d=_0x3207cb[_0x286b62])&&(_0x5bccf3=_0x106d8d(_0x5bccf3)||_0x5bccf3);return _0x5bccf3;},lt=(_0x1058f6,_0x46017d)=>(_0x4be9d1,_0x3797e3)=>_0x46017d(_0x4be9d1,_0x3797e3,_0x1058f6);let he=class{constructor(_0x3e3f61,_0x347c7e){const _0x39d1bf=_0x5e6c41;this[_0x39d1bf(0x2e4)]=_0x3e3f61,this[_0x39d1bf(0x410)]=_0x347c7e;}[_0x5e6c41(0x337)](_0x2a8ebd){const _0x3cc3b2=_0x5e6c41;this[_0x3cc3b2(0x2f4)](_0x2a8ebd),this[_0x3cc3b2(0x262)](_0x2a8ebd);}[_0x5e6c41(0x2cf)](_0x514e86){const _0x558152=_0x5e6c41,{unitID:_0x47e80b}=_0x514e86,_0x1950ca=this[_0x558152(0x410)][_0x558152(0x3bd)](_0x47e80b)[_0x558152(0x30d)](_0x5301d8),{redoCache:_0x274e9d}=_0x1950ca[_0x558152(0x23b)]();if(_0x274e9d['length']===0x0)return _0x514e86;let _0x3191d8=_0x27b6c8[_0x558152(0x2b2)](_0x514e86[_0x558152(0x28a)][0x0]);for(let _0x3a733d=0x0;_0x3a733d<_0x274e9d[_0x558152(0x3f6)];_0x3a733d++){const _0x144209={'id':'doc.mutation.rich-text-editing','params':{..._0x274e9d[_0x3a733d]}},_0x2c97e1=this[_0x558152(0x2e4)]['transformMutation'](_0x3191d8,_0x144209,!0x1);if(_0xb2c014(_0x2c97e1))throw _0x2c97e1[_0x558152(0x3fc)];_0x3191d8=_0x2c97e1[_0x558152(0x399)];}return{..._0x27b6c8[_0x558152(0x2b2)](_0x514e86),'mutations':[_0x3191d8]};}[_0x5e6c41(0x2f4)](_0xb51ebc){const _0x180814=_0x5e6c41,{unitID:_0x2eef1d}=_0xb51ebc,_0x563548=this['_renderManagerService']['getRenderById'](_0x2eef1d)[_0x180814(0x30d)](_0x5301d8),{undoCache:_0x4b0970,redoCache:_0x24231c}=_0x563548['getUndoRedoMutationParamsCache']();if(_0x4b0970[_0x180814(0x3f6)]===0x0||_0x24231c[_0x180814(0x3f6)]===0x0)return;const _0x40053c=[],_0x1063fb=[];let _0x417d8d=_0x27b6c8[_0x180814(0x2b2)](_0xb51ebc[_0x180814(0x28a)][0x0]),_0xf2b0f2=_0x27b6c8[_0x180814(0x2b2)](_0xb51ebc['mutations'][0x0]);for(let _0x45b49=_0x4b0970[_0x180814(0x3f6)]-0x1;_0x45b49>=0x0;_0x45b49--){const _0x48e95e={'id':'doc.mutation.rich-text-editing','params':{..._0x4b0970[_0x45b49]}},_0x2c3be5={'id':'doc.mutation.rich-text-editing','params':{..._0x24231c[_0x45b49]}},_0x1266d2=this[_0x180814(0x2e4)][_0x180814(0x380)](_0x417d8d,_0x48e95e,!0x1),_0x66d7ab=this['_transformService'][_0x180814(0x380)](_0xf2b0f2,_0x2c3be5,!0x1);if(_0xb2c014(_0x1266d2))throw _0x1266d2[_0x180814(0x3fc)];if(_0xb2c014(_0x66d7ab))throw _0x66d7ab[_0x180814(0x3fc)];_0x40053c[_0x180814(0x3dd)](_0x1266d2[_0x180814(0x336)][_0x180814(0x372)]),_0x1063fb['unshift'](_0x66d7ab['m2Prime'][_0x180814(0x372)]),_0x417d8d=_0x1266d2[_0x180814(0x399)],_0xf2b0f2=_0x66d7ab[_0x180814(0x399)];}_0x563548[_0x180814(0x2e1)]({'undoCache':_0x40053c,'redoCache':_0x1063fb});}[_0x5e6c41(0x262)](_0x496b83){const _0x2be881=_0x5e6c41,{unitID:_0x4a74a5}=_0x496b83,_0x421c8b=this['_renderManagerService'][_0x2be881(0x3bd)](_0x4a74a5)[_0x2be881(0x30d)](_0x5301d8),_0x4422d6=_0x421c8b[_0x2be881(0x2b3)]();if(_0x4422d6==null)return;const _0x2c5eff=[{'id':_0x2be881(0x3fb),'params':{'unitId':_0x496b83[_0x2be881(0x37c)],'actions':null,'textRanges':[_0x4422d6]}}],_0x6cfd6b=this[_0x2be881(0x2e4)]['transformMutationsWithChangeset'](_0x496b83,_0x2c5eff);if(!_0xa6f19a(_0x6cfd6b))throw _0x6cfd6b[_0x2be881(0x3fc)];const _0x64e8b8=_0x6cfd6b[_0x2be881(0x336)][0x0][_0x2be881(0x372)]['textRanges'];Array[_0x2be881(0x2c4)](_0x64e8b8)&&_0x64e8b8[_0x2be881(0x3f6)]&&_0x421c8b[_0x2be881(0x3eb)](_0x64e8b8[0x0]);}};he=dn([lt(0x0,_0x59b3e4),lt(0x1,_0x1f8720)],he);var Sn=Object['getOwnPropertyDescriptor'],mn=(_0x4c77aa,_0x4dac18,_0x5253ab,_0x1e61bf)=>{const _0x598ec1=_0x5e6c41;for(var _0x1aa6f8=_0x1e61bf>0x1?void 0x0:_0x1e61bf?Sn(_0x4dac18,_0x5253ab):_0x4dac18,_0x315aac=_0x4c77aa[_0x598ec1(0x3f6)]-0x1,_0x8a3283;_0x315aac>=0x0;_0x315aac--)(_0x8a3283=_0x4c77aa[_0x315aac])&&(_0x1aa6f8=_0x8a3283(_0x1aa6f8)||_0x1aa6f8);return _0x1aa6f8;},Le=(_0x55029b,_0x282058)=>(_0x566840,_0x288aac)=>_0x282058(_0x566840,_0x288aac,_0x55029b);let ue=class{constructor(_0xca8e7c,_0x299680,_0x187469){const _0x1f4951=_0x5e6c41;this[_0x1f4951(0x254)]=_0xca8e7c,this[_0x1f4951(0x2e4)]=_0x299680,this['_docStateChangeManagerService']=_0x187469;}[_0x5e6c41(0x306)](_0x2e7b6e){this['_transformHistoryAndStateStack'](_0x2e7b6e);}[_0x5e6c41(0x2cf)](_0x7888ef){const _0x391268=_0x5e6c41,{unitID:_0x46afe3}=_0x7888ef,{collaboration:_0x1ac9f4}=this[_0x391268(0x26d)][_0x391268(0x3b7)](_0x46afe3);if(_0x1ac9f4['length']===0x0)return _0x7888ef;let _0x5172eb=_0x27b6c8['deepClone'](_0x7888ef['mutations'][0x0]);for(let _0xb72b68=0x0;_0xb72b68<_0x1ac9f4[_0x391268(0x3f6)];_0xb72b68++){const _0x4defed={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ac9f4[_0xb72b68][_0x391268(0x426)],..._0x1ac9f4[_0xb72b68][_0x391268(0x3ac)]}},_0x490795=this[_0x391268(0x2e4)][_0x391268(0x380)](_0x5172eb,_0x4defed,!0x1);if(_0xb2c014(_0x490795))throw _0x490795[_0x391268(0x3fc)];_0x5172eb=_0x490795[_0x391268(0x399)];}return{..._0x27b6c8[_0x391268(0x2b2)](_0x7888ef),'mutations':[_0x5172eb]};}[_0x5e6c41(0x2a9)](_0x1076ae){const _0x1e0651=_0x5e6c41,{unitID:_0xdff569}=_0x1076ae,{history:_0x37ec0b,collaboration:_0x4d9d18}=this[_0x1e0651(0x26d)][_0x1e0651(0x3b7)](_0xdff569);if(_0x37ec0b[_0x1e0651(0x3f6)]===0x0&&_0x4d9d18[_0x1e0651(0x3f6)]===0x0)return;const _0x320a5c=[],_0x2dbf9b=[];let _0x3a5869=_0x27b6c8[_0x1e0651(0x2b2)](_0x1076ae[_0x1e0651(0x28a)][0x0]),_0x14b083=_0x27b6c8[_0x1e0651(0x2b2)](_0x1076ae[_0x1e0651(0x28a)][0x0]);for(let _0x4685a6=_0x37ec0b['length']-0x1;_0x4685a6>=0x0;_0x4685a6--){const _0x2279ab={'id':_0x1e0651(0x3fb),'params':{'unitId':_0x37ec0b[_0x4685a6][_0x1e0651(0x426)],..._0x37ec0b[_0x4685a6][_0x1e0651(0x356)]}},_0x11224b={'id':_0x1e0651(0x3fb),'params':{'unitId':_0x37ec0b[_0x4685a6]['unitId'],..._0x37ec0b[_0x4685a6][_0x1e0651(0x3ac)]}},_0x1d9db6=this[_0x1e0651(0x2e4)][_0x1e0651(0x380)](_0x3a5869,_0x2279ab,!0x1),_0x7d878e=this[_0x1e0651(0x2e4)][_0x1e0651(0x380)](_0x14b083,_0x11224b,!0x1);if(_0xb2c014(_0x1d9db6))throw _0x1d9db6['error'];if(_0xb2c014(_0x7d878e))throw _0x7d878e[_0x1e0651(0x3fc)];_0x320a5c[_0x1e0651(0x3dd)]({..._0x37ec0b[_0x4685a6],'undoState':_0x1d9db6[_0x1e0651(0x336)]['params'],'redoState':_0x7d878e[_0x1e0651(0x336)][_0x1e0651(0x372)]}),_0x3a5869=_0x1d9db6['m1Prime'],_0x14b083=_0x7d878e[_0x1e0651(0x399)];}_0x3a5869=_0x27b6c8[_0x1e0651(0x2b2)](_0x1076ae[_0x1e0651(0x28a)][0x0]),_0x14b083=_0x27b6c8[_0x1e0651(0x2b2)](_0x1076ae[_0x1e0651(0x28a)][0x0]);for(let _0x540ccb=_0x4d9d18[_0x1e0651(0x3f6)]-0x1;_0x540ccb>=0x0;_0x540ccb--){const _0x4c8bc5={'id':_0x1e0651(0x3fb),'params':{'unitId':_0x4d9d18[_0x540ccb][_0x1e0651(0x426)],..._0x4d9d18[_0x540ccb]['undoState']}},_0x4aee5c={'id':_0x1e0651(0x3fb),'params':{'unitId':_0x4d9d18[_0x540ccb][_0x1e0651(0x426)],..._0x4d9d18[_0x540ccb][_0x1e0651(0x3ac)]}},_0x2afdcd=this[_0x1e0651(0x2e4)]['transformMutation'](_0x3a5869,_0x4c8bc5,!0x1),_0x24d6e0=this[_0x1e0651(0x2e4)][_0x1e0651(0x380)](_0x14b083,_0x4aee5c,!0x1);if(_0xb2c014(_0x2afdcd))throw _0x2afdcd[_0x1e0651(0x3fc)];if(_0xb2c014(_0x24d6e0))throw _0x24d6e0[_0x1e0651(0x3fc)];_0x2dbf9b[_0x1e0651(0x3dd)]({..._0x4d9d18[_0x540ccb],'undoState':_0x2afdcd[_0x1e0651(0x336)][_0x1e0651(0x372)],'redoState':_0x24d6e0[_0x1e0651(0x336)][_0x1e0651(0x372)]}),_0x3a5869=_0x2afdcd[_0x1e0651(0x399)],_0x14b083=_0x24d6e0[_0x1e0651(0x399)];}this[_0x1e0651(0x26d)]['setStateCache'](_0xdff569,{'history':_0x320a5c,'collaboration':_0x2dbf9b});}};ue=mn([Le(0x0,_0x393365(_0xaa1b4f)),Le(0x1,_0x59b3e4),Le(0x2,_0x393365(_0x5173c7))],ue);var In=Object[_0x5e6c41(0x3e4)],fn=(_0x5da53d,_0x499fda,_0x1d8929,_0x1debf2)=>{const _0x349fdb=_0x5e6c41;for(var _0x5d55c6=_0x1debf2>0x1?void 0x0:_0x1debf2?In(_0x499fda,_0x1d8929):_0x499fda,_0x328290=_0x5da53d[_0x349fdb(0x3f6)]-0x1,_0x41efd8;_0x328290>=0x0;_0x328290--)(_0x41efd8=_0x5da53d[_0x328290])&&(_0x5d55c6=_0x41efd8(_0x5d55c6)||_0x5d55c6);return _0x5d55c6;},ht=(_0x460a71,_0x47cc6c)=>(_0x2632af,_0x3f10b2)=>_0x47cc6c(_0x2632af,_0x3f10b2,_0x460a71);let de=class{constructor(_0x288640,_0x3aec73){this['_injector']=_0x288640,this['_transformService']=_0x3aec73;}['transformSelections'](_0x1da89e){const _0x347c9b=_0x5e6c41;var _0x30a2b0;const _0x9b9d22=this[_0x347c9b(0x254)][_0x347c9b(0x38c)](_0x406d1c),_0x273d6f=(_0x30a2b0=_0x9b9d22[_0x347c9b(0x32e)]())!=null?_0x30a2b0:[];if(_0x273d6f[_0x347c9b(0x3f6)]===0x0)return;const _0x32247f=_0x1da89e[_0x347c9b(0x37c)],_0x44e528=[{'id':_0x347c9b(0x3fb),'params':{'unitId':_0x32247f,'actions':null,'textRanges':_0x273d6f}}],_0x17331a=this['_transformService'][_0x347c9b(0x32a)](_0x1da89e,_0x44e528);if(!_0xa6f19a(_0x17331a))throw _0x17331a[_0x347c9b(0x3fc)];const _0x181a58=_0x17331a[_0x347c9b(0x336)][0x0][_0x347c9b(0x372)][_0x347c9b(0x384)];Array['isArray'](_0x181a58)&&_0x181a58[_0x347c9b(0x3f6)]&&_0x9b9d22[_0x347c9b(0x208)](_0x181a58,{'unitId':_0x32247f,'subUnitId':_0x32247f},!0x1);}};de=fn([ht(0x0,_0x393365(_0xaa1b4f)),ht(0x1,_0x59b3e4)],de);var gn=Object[_0x5e6c41(0x3e4)],vn=(_0x2e4078,_0x3dd370,_0x416f92,_0x3310a8)=>{const _0x508cda=_0x5e6c41;for(var _0x54f7ef=_0x3310a8>0x1?void 0x0:_0x3310a8?gn(_0x3dd370,_0x416f92):_0x3dd370,_0xcafa7e=_0x2e4078[_0x508cda(0x3f6)]-0x1,_0x579981;_0xcafa7e>=0x0;_0xcafa7e--)(_0x579981=_0x2e4078[_0xcafa7e])&&(_0x54f7ef=_0x579981(_0x54f7ef)||_0x54f7ef);return _0x54f7ef;},U=(_0x361248,_0x592272)=>(_0x3bf4c3,_0xcb1155)=>_0x592272(_0x3bf4c3,_0xcb1155,_0x361248);let Se=class extends _0x52c1c5{constructor(_0x4e70bc,_0x2a5057,_0x431cfc,_0x2c09f5,_0x5a4d91,_0x303ac2,_0x1d0d24,_0x29c7a5){const _0x477f38=_0x5e6c41;super(),_(this,_0x477f38(0x211),new _0x1a4d1e(_0x54c613[_0x477f38(0x378)])),(this[_0x477f38(0x26d)]=_0x4e70bc,this['_collaborationController']=_0x2a5057,this['_docTransformIMECacheService']=_0x431cfc,this[_0x477f38(0x1f2)]=_0x2c09f5,this[_0x477f38(0x3ea)]=_0x5a4d91,this[_0x477f38(0x353)]=_0x303ac2,this[_0x477f38(0x2dd)]=_0x1d0d24,this[_0x477f38(0x40f)]=_0x29c7a5,this['_initEntityListener']());}[_0x5e6c41(0x25c)](){const _0x5937d4=_0x5e6c41;this[_0x5937d4(0x3be)](this[_0x5937d4(0x3a9)]['entityInit$']['subscribe'](_0x146ad7=>{const _0x17deaf=_0x5937d4,_0x240876=this[_0x17deaf(0x26d)][_0x17deaf(0x2d5)][_0x17deaf(0x377)](_0x18f655=>{const _0xeded39=_0x17deaf;if(_0x18f655==null)return;const {unitId:_0x2fa6e3,redoState:_0x1f0c6b,commandId:_0x427b84}=_0x18f655;if(_0x2fa6e3!==_0x146ad7[_0xeded39(0x37c)])return;const _0x3d6361={'id':_0x427b84,'type':_0xae5b06['MUTATION'],'params':{'unitId':_0x2fa6e3,'actions':_0x1f0c6b[_0xeded39(0x307)],'textRanges':null}};_0x146ad7[_0xeded39(0x40e)](_0x3d6361);});if(_0x146ad7['disposeWithMe'](_0x240876),_0x146ad7 instanceof _0x35f55c){const _0xc9a3a0={'onTransformIME':_0xf421d2=>this['_docTransformIMECacheService'][_0x17deaf(0x337)](_0xf421d2),'onTransformState':_0x1c86f7=>this['_docTransformStateCacheService'][_0x17deaf(0x306)](_0x1c86f7),'onTransformSelections':_0x34be6f=>this[_0x17deaf(0x3ea)]['transformSelections'](_0x34be6f),'onSyncEditingCollabCursor':_0x19b0a5=>this[_0x17deaf(0x353)][_0x17deaf(0x229)](_0x19b0a5),'onTransformRemoteChangesetByIMECache':_0x4fc113=>this[_0x17deaf(0x206)][_0x17deaf(0x2cf)](_0x4fc113),'onTransformRemoteChangesetByStateCache':_0x7ae39f=>this[_0x17deaf(0x1f2)][_0x17deaf(0x2cf)](_0x7ae39f)};_0x146ad7[_0x17deaf(0x2a1)](_0xc9a3a0);}}));}};Se=vn([U(0x0,_0x393365(_0x5173c7)),U(0x1,_0x393365(_0xba3a41)),U(0x2,_0x393365(he)),U(0x3,_0x393365(ue)),U(0x4,_0x393365(de)),U(0x5,_0x393365(ze)),U(0x6,_0xe75bb),U(0x7,_0x393365(_0x353f39))],Se);var Z=(_0x376958=>(_0x376958[_0x376958[_0x5e6c41(0x311)]=0x0]=_0x5e6c41(0x311),_0x376958[_0x376958['OK']=0x1]='OK',_0x376958[_0x376958[_0x5e6c41(0x41b)]=0x2]='INTERNAL_ERROR',_0x376958[_0x376958['PERMISSION_DENIED']=0x3]=_0x5e6c41(0x3cd),_0x376958[_0x376958['NOT_FOUND']=0x4]=_0x5e6c41(0x2f5),_0x376958[_0x376958['UNAUTHENTICATED']=0x5]=_0x5e6c41(0x204),_0x376958[_0x376958[_0x5e6c41(0x268)]=0x6]=_0x5e6c41(0x268),_0x376958[_0x376958[_0x5e6c41(0x371)]=0x7]='INVALID_ARGUMENT',_0x376958[_0x376958['TOO_MANY_REQUESTS']=0x8]=_0x5e6c41(0x270),_0x376958[_0x376958[_0x5e6c41(0x3b8)]=0x9]=_0x5e6c41(0x3b8),_0x376958[_0x376958['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x376958[_0x376958[_0x5e6c41(0x37a)]=0xb]=_0x5e6c41(0x37a),_0x376958[_0x376958[_0x5e6c41(0x2dc)]=0xc]=_0x5e6c41(0x2dc),_0x376958[_0x376958[_0x5e6c41(0x2be)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x376958[_0x376958['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x5e6c41(0x3c2),_0x376958[_0x376958['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x376958[_0x376958[_0x5e6c41(0x386)]=0x10]=_0x5e6c41(0x386),_0x376958[_0x376958['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x5e6c41(0x263),_0x376958[_0x376958[_0x5e6c41(0x3e9)]=0x65]='ERROR_AGAIN',_0x376958[_0x376958[_0x5e6c41(0x314)]=0xc9]=_0x5e6c41(0x314),_0x376958[_0x376958['USER_IS_ANONYMOUS']=0xca]=_0x5e6c41(0x2e2),_0x376958[_0x376958[_0x5e6c41(0x427)]=0x1389]=_0x5e6c41(0x427),_0x376958[_0x376958[_0x5e6c41(0x429)]=0x1771]=_0x5e6c41(0x429),_0x376958[_0x376958[_0x5e6c41(0x1ec)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x376958[_0x376958[_0x5e6c41(0x256)]=0x1773]=_0x5e6c41(0x256),_0x376958[_0x376958[_0x5e6c41(0x3a7)]=0x1b59]=_0x5e6c41(0x3a7),_0x376958[_0x376958[_0x5e6c41(0x282)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x376958[_0x376958[_0x5e6c41(0x44b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x376958[_0x376958[_0x5e6c41(0x3d2)]=0x1b5c]=_0x5e6c41(0x3d2),_0x376958[_0x376958[_0x5e6c41(0x352)]=0x1b5d]=_0x5e6c41(0x352),_0x376958[_0x376958[_0x5e6c41(0x27a)]=0x1f41]=_0x5e6c41(0x27a),_0x376958[_0x376958[_0x5e6c41(0x360)]=0x2329]=_0x5e6c41(0x360),_0x376958[_0x376958[_0x5e6c41(0x1f6)]=0x232a]=_0x5e6c41(0x1f6),_0x376958[_0x376958[_0x5e6c41(0x2b5)]=0x232b]=_0x5e6c41(0x2b5),_0x376958[_0x376958[_0x5e6c41(0x1f4)]=0x232c]=_0x5e6c41(0x1f4),_0x376958[_0x376958[_0x5e6c41(0x301)]=0x232d]=_0x5e6c41(0x301),_0x376958[_0x376958[_0x5e6c41(0x271)]=0x2711]=_0x5e6c41(0x271),_0x376958[_0x376958[_0x5e6c41(0x242)]=0x2712]=_0x5e6c41(0x242),_0x376958[_0x376958[_0x5e6c41(0x424)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x376958[_0x376958[_0x5e6c41(0x432)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x376958[_0x376958[_0x5e6c41(0x2f2)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x376958[_0x376958[_0x5e6c41(0x31a)]=0x271b]=_0x5e6c41(0x31a),_0x376958[_0x376958[_0x5e6c41(0x222)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x376958[_0x376958[_0x5e6c41(0x21e)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x376958[_0x376958[_0x5e6c41(0x285)]=0x271e]=_0x5e6c41(0x285),_0x376958[_0x376958['YUUMI_AI_RUN_FAILED']=0x271f]=_0x5e6c41(0x41e),_0x376958[_0x376958[_0x5e6c41(0x2d0)]=0x2720]=_0x5e6c41(0x2d0),_0x376958[_0x376958['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x376958[_0x376958[_0x5e6c41(0x3ad)]=0x2ee1]=_0x5e6c41(0x3ad),_0x376958[_0x376958[_0x5e6c41(0x23f)]=0x2ee2]='INVALID_INVITE_CODE',_0x376958[_0x376958[_0x5e6c41(0x3ec)]=0x2ee3]=_0x5e6c41(0x3ec),_0x376958[_0x376958['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5e6c41(0x3ff),_0x376958[_0x376958[_0x5e6c41(0x237)]=0x2ee5]=_0x5e6c41(0x237),_0x376958[_0x376958[_0x5e6c41(0x24b)]=0x32c9]=_0x5e6c41(0x24b),_0x376958[_0x376958[_0x5e6c41(0x216)]=0x32ca]=_0x5e6c41(0x216),_0x376958[_0x376958['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x5e6c41(0x293),_0x376958[_0x376958[_0x5e6c41(0x391)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x376958[_0x376958[_0x5e6c41(0x3e3)]=0x36b2]=_0x5e6c41(0x3e3),_0x376958[_0x376958['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x5e6c41(0x42f),_0x376958[_0x376958[_0x5e6c41(0x2c7)]=0x36b4]=_0x5e6c41(0x2c7),_0x376958[_0x376958[_0x5e6c41(0x2cd)]=0x3715]=_0x5e6c41(0x2cd),_0x376958[_0x376958[_0x5e6c41(0x290)]=0x3716]=_0x5e6c41(0x290),_0x376958[_0x376958[_0x5e6c41(0x3ba)]=0x3717]=_0x5e6c41(0x3ba),_0x376958[_0x376958[_0x5e6c41(0x1f9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x376958[_0x376958['REDEMPTION_INVALID_CODE']=0x3a99]=_0x5e6c41(0x24f),_0x376958[_0x376958[_0x5e6c41(0x1ee)]=0x3a9a]=_0x5e6c41(0x1ee),_0x376958[_0x376958['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x5e6c41(0x2b6),_0x376958[_0x376958[_0x5e6c41(0x441)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x376958[_0x376958[_0x5e6c41(0x212)]=0x3a9d]=_0x5e6c41(0x212),_0x376958[_0x376958['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x376958[_0x376958[_0x5e6c41(0x22c)]=0x3a9f]=_0x5e6c41(0x22c),_0x376958[_0x376958[_0x5e6c41(0x2b0)]=0x3e81]=_0x5e6c41(0x2b0),_0x376958[_0x376958[_0x5e6c41(0x202)]=-0x1]=_0x5e6c41(0x202),_0x376958))(Z||{});function En(_0x18a8fa){const _0x151433=_0x5e6c41;var _0x3ea7e6,_0x1a1b65;const _0x5784ab=(_0x3ea7e6=_0x18a8fa['stageInfo'])==null?void 0x0:_0x3ea7e6[_0x151433(0x35d)],_0x4c26aa=((_0x1a1b65=_0x18a8fa[_0x151433(0x257)])==null?void 0x0:_0x1a1b65[_0x151433(0x3df)])||0x0;return _0x5784ab===_0x11ebd6['START_CALCULATION']&&_0x4c26aa>0x0;}function pn(_0x51fb42){const _0x54937b=_0x5e6c41;return _0x51fb42[_0x54937b(0x422)]===_0x12ebe4['SUCCESS'];}var On=Object[_0x5e6c41(0x3e4)],Tn=(_0x1c28d1,_0x5b0725,_0x567035,_0x1a8a4d)=>{for(var _0x59122b=_0x1a8a4d>0x1?void 0x0:_0x1a8a4d?On(_0x5b0725,_0x567035):_0x5b0725,_0x26c056=_0x1c28d1['length']-0x1,_0x2acaa3;_0x26c056>=0x0;_0x26c056--)(_0x2acaa3=_0x1c28d1[_0x26c056])&&(_0x59122b=_0x2acaa3(_0x59122b)||_0x59122b);return _0x59122b;},P=(_0x6d3ea6,_0x53a183)=>(_0x435c7f,_0x4a9ae2)=>_0x53a183(_0x435c7f,_0x4a9ae2,_0x6d3ea6);const Cn=_0x5e6c41(0x20b),Rn=_0x5e6c41(0x274),Dn=_0x5e6c41(0x41f);let me=class extends _0x52c1c5{constructor(_0x3aab81,_0x5221b7,_0x47478d,_0x42d864,_0x3393da,_0x5b557b,_0x460f51){const _0x1cc203=_0x5e6c41;super(),_(this,_0x1cc203(0x438),null),_(this,_0x1cc203(0x201),0x0),_(this,_0x1cc203(0x21b),0x0),_(this,_0x1cc203(0x316),[]),_(this,_0x1cc203(0x3cc),0x0),(this[_0x1cc203(0x2dd)]=_0x3aab81,this[_0x1cc203(0x292)]=_0x5221b7,this[_0x1cc203(0x2ea)]=_0x47478d,this[_0x1cc203(0x333)]=_0x42d864,this[_0x1cc203(0x3d4)]=_0x3393da,this[_0x1cc203(0x30a)]=_0x5b557b,this[_0x1cc203(0x40f)]=_0x460f51,this['_initCommandInterceptor']());}[_0x5e6c41(0x2a7)](){const _0x14f731=_0x5e6c41;this[_0x14f731(0x3be)](this[_0x14f731(0x292)][_0x14f731(0x43f)]((_0x3faf35,_0x547cc4)=>{const _0x40bd6d=_0x14f731;var _0x59088c;if(_0x3faf35['id']!==_0x4727ae['id'])return;const _0x45c4d2=_0x3faf35[_0x40bd6d(0x372)];if(!this[_0x40bd6d(0x3b4)]((_0x59088c=_0x45c4d2[_0x40bd6d(0x431)])!=null?_0x59088c:[]))return;if(!this[_0x40bd6d(0x2e6)]())throw this[_0x40bd6d(0x36d)](_0x3faf35,_0x547cc4),this[_0x40bd6d(0x224)](),new _0x492649();})),this[_0x14f731(0x3be)](this[_0x14f731(0x292)][_0x14f731(0x383)]((_0x1bb70b,_0x5ef3e6)=>{const _0x5ea8f8=_0x14f731;if(_0x1bb70b['id']!==_0x3be4e3['id'])return;const _0x335b4a=_0x1bb70b[_0x5ea8f8(0x372)];if(En(_0x335b4a)){const _0x413fc9=_0x220a66();this[_0x5ea8f8(0x316)][_0x5ea8f8(0x2aa)](_0x413fc9),this['_startCalculationLimit'](_0x413fc9);}else{if(pn(_0x335b4a)&&this['_taskIds']['length']>0x0){const _0x2db0a4=this[_0x5ea8f8(0x316)]['shift']();this[_0x5ea8f8(0x36f)](_0x2db0a4);}}}));}[_0x5e6c41(0x35f)](){const _0x2e2921=_0x5e6c41;super[_0x2e2921(0x35f)](),this[_0x2e2921(0x244)](),this[_0x2e2921(0x316)]=[],this['_currentUsage']=0x0,this[_0x2e2921(0x201)]=0x0,this[_0x2e2921(0x3cc)]=0x0;}async[_0x5e6c41(0x36d)](_0x525439,_0x52ca0b){const _0x22e524=_0x5e6c41;for(let _0x5e5df2=0x0;_0x5e5df2<0x1e;_0x5e5df2++)try{if(await this[_0x22e524(0x32b)](),this[_0x22e524(0x2e6)]()){this[_0x22e524(0x203)](_0x525439,_0x52ca0b),this[_0x22e524(0x2dd)]['show']({'content':this[_0x22e524(0x40f)]['t'](_0x22e524(0x2ee)),'type':_0x248756['Success']});return;}await new Promise(_0x3c9250=>{const _0x45416c=_0x22e524;this['_pollingInterval']=window[_0x45416c(0x1fc)](_0x3c9250,0x3e8);});}catch(_0x48d5a1){this[_0x22e524(0x30a)]['error'](_0x48d5a1);}this[_0x22e524(0x2dd)][_0x22e524(0x42c)]({'content':this['_localeService']['t'](_0x22e524(0x397)),'type':_0x248756[_0x22e524(0x2ba)]});}[_0x5e6c41(0x203)](_0x39742c,_0x414229){const _0x5cbe68=_0x5e6c41;try{this[_0x5cbe68(0x292)][_0x5cbe68(0x33b)](_0x39742c['id'],_0x39742c[_0x5cbe68(0x372)],_0x414229);}catch(_0x17a325){this[_0x5cbe68(0x30a)][_0x5cbe68(0x3fc)](_0x17a325);}}[_0x5e6c41(0x2ca)](_0x410534,_0x1561b1){const _0x2274a2=_0x5e6c41;_0x1561b1<this[_0x2274a2(0x3cc)]||(this[_0x2274a2(0x3cc)]=_0x1561b1,this[_0x2274a2(0x201)]=Number[_0x2274a2(0x2bb)](_0x410534[_0x2274a2(0x2a0)]),this[_0x2274a2(0x21b)]=Number[_0x2274a2(0x2bb)](_0x410534['currentUsage']));}async[_0x5e6c41(0x278)](_0x4f2be8){const _0x2208e4=_0x5e6c41;var _0xf039d8,_0x9b91a9;const _0x59bb05=Date[_0x2208e4(0x43b)]();try{const _0x1e79df=((_0xf039d8=this[_0x2208e4(0x2ea)][_0x2208e4(0x37b)](_0x554969))==null?void 0x0:_0xf039d8[_0x2208e4(0x245)])||Rn,_0x4853a1=(await this[_0x2208e4(0x333)]['post'](_0x1e79df,{'body':JSON[_0x2208e4(0x213)]({'taskId':_0x4f2be8})}))[_0x2208e4(0x366)];if(((_0x9b91a9=_0x4853a1[_0x2208e4(0x3fc)])==null?void 0x0:_0x9b91a9[_0x2208e4(0x412)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x4853a1[_0x2208e4(0x218)],_0x59bb05);}catch(_0xa0c58a){this[_0x2208e4(0x30a)][_0x2208e4(0x3fc)](_0xa0c58a);}}async['_getFormulaLimitStatus'](_0x4e74f0){const _0x3190aa=_0x5e6c41;var _0x17a8b7,_0x253e6c;const _0x1f1c26=Date['now']();try{const _0x5848c1=((_0x17a8b7=this['_configService'][_0x3190aa(0x37b)](_0x554969))==null?void 0x0:_0x17a8b7[_0x3190aa(0x303)])||Cn,_0x15c89e=_0x4e74f0?_0x5848c1+_0x3190aa(0x260)+encodeURIComponent(_0x4e74f0):_0x5848c1,_0x58495f=(await this[_0x3190aa(0x333)][_0x3190aa(0x38c)](_0x15c89e))[_0x3190aa(0x366)];if(((_0x253e6c=_0x58495f['error'])==null?void 0x0:_0x253e6c[_0x3190aa(0x412)])!==Z['OK'])return;this[_0x3190aa(0x2ca)](_0x58495f[_0x3190aa(0x218)],_0x1f1c26);}catch(_0x8918f1){this[_0x3190aa(0x30a)][_0x3190aa(0x3fc)](_0x8918f1);}}async[_0x5e6c41(0x36f)](_0x437caf){const _0x35dc46=_0x5e6c41;var _0x3b30cc,_0x5354b4;const _0x56c279=Date[_0x35dc46(0x43b)]();try{const _0x35df2a=((_0x3b30cc=this[_0x35dc46(0x2ea)][_0x35dc46(0x37b)](_0x554969))==null?void 0x0:_0x3b30cc[_0x35dc46(0x403)])||Dn,_0x1e158f=(await this[_0x35dc46(0x333)][_0x35dc46(0x3f8)](_0x35df2a,{'body':JSON[_0x35dc46(0x213)]({'taskId':_0x437caf})}))[_0x35dc46(0x366)];if(((_0x5354b4=_0x1e158f['error'])==null?void 0x0:_0x5354b4[_0x35dc46(0x412)])!==Z['OK'])return;this[_0x35dc46(0x2ca)](_0x1e158f[_0x35dc46(0x218)],_0x56c279);}catch(_0x490260){this[_0x35dc46(0x30a)]['error'](_0x490260);}}[_0x5e6c41(0x2e6)](){const _0xabdd49=_0x5e6c41;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0xabdd49(0x21b)]>0x0;}[_0x5e6c41(0x244)](){const _0x5c65a7=_0x5e6c41;this[_0x5c65a7(0x438)]&&(clearTimeout(this[_0x5c65a7(0x438)]),this['_pollingInterval']=null);}[_0x5e6c41(0x224)](){const _0x53b8d3=_0x5e6c41;this[_0x53b8d3(0x2dd)][_0x53b8d3(0x42c)]({'content':this[_0x53b8d3(0x40f)]['t'](_0x53b8d3(0x2d1)),'type':_0x248756[_0x53b8d3(0x3c7)]});}['_hasFormulaInDirtyRanges'](_0x39c4c9){const _0x5df7b5=_0x5e6c41;for(const _0x30fda1 of _0x39c4c9){const {unitId:_0x1af2a7,sheetId:_0x292c2a,range:_0x1d16ab}=_0x30fda1,_0x51935c=this[_0x5df7b5(0x3d4)][_0x5df7b5(0x338)](_0x1af2a7);if(!_0x51935c)continue;const _0x3c5fa2=_0x51935c[_0x5df7b5(0x241)](_0x292c2a);if(!_0x3c5fa2)continue;const _0x38d7bb=_0x3c5fa2[_0x5df7b5(0x433)]();for(let _0x311ed9=_0x1d16ab[_0x5df7b5(0x2bd)];_0x311ed9<=_0x1d16ab[_0x5df7b5(0x2f9)];_0x311ed9++)for(let _0x1f98a7=_0x1d16ab['startColumn'];_0x1f98a7<=_0x1d16ab[_0x5df7b5(0x34b)];_0x1f98a7++){const _0x5cab9=_0x38d7bb[_0x5df7b5(0x428)](_0x311ed9,_0x1f98a7);if(_0x5cab9&&(_0x3b833f(_0x5cab9['f'])||_0x4a4bd8(_0x5cab9['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x393365(_0xe75bb)),P(0x1,_0x51b600),P(0x2,_0x4642c4),P(0x3,_0x393365(_0x2cb535)),P(0x4,_0x49c215),P(0x5,_0x4fe5ec),P(0x6,_0x393365(_0x353f39))],me);var bn=Object[_0x5e6c41(0x3e4)],Nn=(_0x22a7a8,_0x2ff653,_0x2fec09,_0xac30d8)=>{const _0x10e0eb=_0x5e6c41;for(var _0x2073ff=_0xac30d8>0x1?void 0x0:_0xac30d8?bn(_0x2ff653,_0x2fec09):_0x2ff653,_0x742645=_0x22a7a8[_0x10e0eb(0x3f6)]-0x1,_0x22469f;_0x742645>=0x0;_0x742645--)(_0x22469f=_0x22a7a8[_0x742645])&&(_0x2073ff=_0x22469f(_0x2073ff)||_0x2073ff);return _0x2073ff;},Ue=(_0x2a45ca,_0x4925eb)=>(_0x124adb,_0x2a69c8)=>_0x4925eb(_0x124adb,_0x2a69c8,_0x2a45ca);let He=class extends _0x52c1c5{constructor(_0x3e1b25,_0x4876e5,_0x529d9d){const _0xdcb121=_0x5e6c41;super(),_(this,_0xdcb121(0x3b6),new Map()),_(this,_0xdcb121(0x42a),new Map()),_(this,_0xdcb121(0x291),!0x1),(this[_0xdcb121(0x2ea)]=_0x3e1b25,this['_localStorageService']=_0x4876e5,this[_0xdcb121(0x2b4)]=_0x529d9d);}['disableLocalCache'](){const _0xec6da6=_0x5e6c41;this[_0xec6da6(0x291)]=!0x0;}[_0x5e6c41(0x2a2)](){const _0x13d0e1=_0x5e6c41;this[_0x13d0e1(0x291)]=!0x1;}get['saveTaskMap'](){const _0x5e337f=_0x5e6c41;return this[_0x5e337f(0x42a)];}[_0x5e6c41(0x35f)](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x5e6c41(0x34f)](_0x2fb506){const _0x403036=_0x5e6c41;return this['_disabled']?null:this[_0x403036(0x389)][_0x403036(0x1ef)](_0x46d1c9(_0x2fb506));}async['saveOfflineData'](_0x107a95,_0x49fe6a){const _0x43a049=_0x5e6c41;return!!this[_0x43a049(0x389)][_0x43a049(0x2e8)](_0x107a95,_0x49fe6a);}[_0x5e6c41(0x348)](_0x487a9c,_0x30d618,_0x2af781,_0x3d4e0e){const _0x276aa8=_0x5e6c41,_0xc20166=this['_revisionService'][_0x276aa8(0x1eb)](_0x487a9c);this[_0x276aa8(0x3b6)][_0x276aa8(0x1f7)](_0x487a9c,{'unitID':_0x487a9c,'type':_0x30d618,'awaitingChangeset':_0x2af781,'mutations':_0x3d4e0e,'rev':_0xc20166}),this[_0x276aa8(0x42a)][_0x276aa8(0x3a4)](_0x487a9c)||this[_0x276aa8(0x325)](_0x487a9c);}[_0x5e6c41(0x325)](_0x5edd6e){const _0x2fb5b2=_0x5e6c41,_0x4c4671=this['_getSaveTimeout']();_0x4c4671===0x0?this[_0x2fb5b2(0x328)](_0x5edd6e):this['_saveTaskMap'][_0x2fb5b2(0x1f7)](_0x5edd6e,setTimeout(()=>this[_0x2fb5b2(0x328)](_0x5edd6e),_0x4c4671));}[_0x5e6c41(0x29f)](){const _0x50fa81=_0x5e6c41;var _0x5a161f;return(_0x5a161f=this[_0x50fa81(0x2ea)][_0x50fa81(0x37b)](_0x16e84e))!=null?_0x5a161f:_0x239433;}['_saveCache'](_0x22e9ce){const _0x48e2a7=_0x5e6c41,_0x16971b=this['_saveTaskMap'][_0x48e2a7(0x38c)](_0x22e9ce);return _0x16971b!==void 0x0&&window['clearTimeout'](_0x16971b),this[_0x48e2a7(0x389)][_0x48e2a7(0x2e8)](_0x46d1c9(_0x22e9ce),this[_0x48e2a7(0x3b6)][_0x48e2a7(0x38c)](_0x22e9ce))[_0x48e2a7(0x3bf)](()=>this[_0x48e2a7(0x42a)]['delete'](_0x22e9ce));}async[_0x5e6c41(0x22e)](){const _0x214dbc=_0x5e6c41,_0x225cb9=[];this[_0x214dbc(0x42a)][_0x214dbc(0x396)]((_0x4c66b7,_0x7750d3)=>{const _0x44b948=_0x214dbc;window['clearTimeout'](_0x4c66b7),_0x225cb9[_0x44b948(0x2aa)](this[_0x44b948(0x328)](_0x7750d3)[_0x44b948(0x3bf)](()=>{const _0xdfcb24=_0x44b948;this[_0xdfcb24(0x42a)][_0xdfcb24(0x25b)](_0x7750d3);}));}),await Promise[_0x214dbc(0x2cc)](_0x225cb9);}};He=Nn([Ue(0x0,_0x4642c4),Ue(0x1,_0x94686d),Ue(0x2,_0x393365(_0x30d137))],He);class Ln extends _0x4e0967{constructor(){const _0x1865d0=_0x5e6c41;super(),_(this,_0x1865d0(0x31c)),this[_0x1865d0(0x31c)]=_0x138141(window,_0x1865d0(0x40a))[_0x1865d0(0x446)](_0x2c10e9(this['dispose$']),_0x369b94(0x1),_0x56e65c(void 0x0));}['setParam'](_0x1da0a0,_0x35bb26,_0x51e902=!0x1){const _0x2b1b65=_0x5e6c41,_0x248817=new URL(window[_0x2b1b65(0x2fe)][_0x2b1b65(0x3b0)]);_0x248817['searchParams'][_0x2b1b65(0x1f7)](_0x1da0a0,_0x35bb26),_0x51e902?window[_0x2b1b65(0x3cb)][_0x2b1b65(0x363)]('','',_0x248817[_0x2b1b65(0x373)]()):window['history'][_0x2b1b65(0x409)]('','',_0x248817['toString']());}[_0x5e6c41(0x318)](_0x2651af,_0x1773bb=!0x1){const _0x35312e=_0x5e6c41,_0x31cc33=new URL(window[_0x35312e(0x2fe)]['href']);_0x31cc33[_0x35312e(0x436)]['delete'](_0x2651af),_0x1773bb?window['history'][_0x35312e(0x363)]('','',_0x31cc33[_0x35312e(0x373)]()):window[_0x35312e(0x3cb)]['pushState']('','',_0x31cc33['toString']());}['getParam'](_0x1217ee){const _0x54cdc7=_0x5e6c41;var _0x58973c;return(_0x58973c=new URL(window[_0x54cdc7(0x2fe)][_0x54cdc7(0x3b0)])[_0x54cdc7(0x436)]['get'](_0x1217ee))!=null?_0x58973c:void 0x0;}}var Un=Object[_0x5e6c41(0x26e)],Mn=Object[_0x5e6c41(0x3e4)],An=(_0x9074b8,_0x1e1b96,_0x36e216)=>_0x1e1b96 in _0x9074b8?Un(_0x9074b8,_0x1e1b96,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36e216}):_0x9074b8[_0x1e1b96]=_0x36e216,Pn=(_0x2cc36e,_0x4b3b07,_0x6a055b,_0x458a5e)=>{for(var _0x271fa7=_0x458a5e>0x1?void 0x0:_0x458a5e?Mn(_0x4b3b07,_0x6a055b):_0x4b3b07,_0x5bdd74=_0x2cc36e['length']-0x1,_0x151fab;_0x5bdd74>=0x0;_0x5bdd74--)(_0x151fab=_0x2cc36e[_0x5bdd74])&&(_0x271fa7=_0x151fab(_0x271fa7)||_0x271fa7);return _0x271fa7;},Me=(_0x4ce4b7,_0xf4102c)=>(_0x22801b,_0xa8e93b)=>_0xf4102c(_0x22801b,_0xa8e93b,_0x4ce4b7),wn=(_0x24d493,_0x52d07e,_0x5ca314)=>An(_0x24d493,_0x52d07e+'',_0x5ca314);const yn=_0x5e6c41(0x267);let Ye=class extends _0x43ff47{constructor(_0x4ebff0=_t,_0xacbd8b,_0xb05506,_0x398240){const _0x3de6b8=_0x5e6c41;super(),this[_0x3de6b8(0x1ff)]=_0x4ebff0,this['_renderManagerService']=_0xacbd8b,this['_injector']=_0xb05506,this[_0x3de6b8(0x2ea)]=_0x398240;const {..._0x2d4a8e}=_0x1dccc9({},_t,this[_0x3de6b8(0x1ff)]);this['_configService'][_0x3de6b8(0x248)](hn,_0x2d4a8e);}[_0x5e6c41(0x28b)](){const _0x3f1095=_0x5e6c41;this[_0x3f1095(0x21d)](),this[_0x3f1095(0x28f)]();}[_0x5e6c41(0x2a6)](){const _0x51f33c=_0x5e6c41;this[_0x51f33c(0x30c)]();}[_0x5e6c41(0x21d)](){const _0xd668f5=_0x5e6c41;var _0x2bcb1a;const _0x31a9af=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x1363ef,{'useClass':_0x9fbd32}],[_0x588b9c,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0xd668f5(0x1ff)]['enableFrontendLog']&&_0x31a9af[_0xd668f5(0x2aa)]([le]),_0x4e9344(this[_0xd668f5(0x254)],_0x587b20(_0x31a9af,(_0x2bcb1a=this[_0xd668f5(0x1ff)])==null?void 0x0:_0x2bcb1a[_0xd668f5(0x22b)]));}[_0x5e6c41(0x30c)](){const _0x5a129b=_0x5e6c41;this[_0x5a129b(0x3be)](this[_0x5a129b(0x410)][_0x5a129b(0x2bc)](_0x3f2b66[_0x5a129b(0x2c3)],[Fe])),this[_0x5a129b(0x3be)](this[_0x5a129b(0x410)][_0x5a129b(0x2bc)](_0x3f2b66['UNIVER_SHEET'],[ke]));}[_0x5e6c41(0x28f)](){const _0x383b87=_0x5e6c41;_0x5cb758(this['_injector'],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x383b87(0x1ff)][_0x383b87(0x264)]&&_0x5cb758(this[_0x383b87(0x254)],[[le]]);}};wn(Ye,_0x5e6c41(0x434),yn),Ye=Pn([_0x3f7a7f(_0x53849a),Me(0x1,_0x1f8720),Me(0x2,_0x393365(_0xaa1b4f)),Me(0x3,_0x4642c4)],Ye);var $n=Object[_0x5e6c41(0x3e4)],xn=(_0x1a3519,_0x297e7d,_0x4c05db,_0x405097)=>{const _0x29e98c=_0x5e6c41;for(var _0x34621f=_0x405097>0x1?void 0x0:_0x405097?$n(_0x297e7d,_0x4c05db):_0x297e7d,_0x25006a=_0x1a3519[_0x29e98c(0x3f6)]-0x1,_0x49276d;_0x25006a>=0x0;_0x25006a--)(_0x49276d=_0x1a3519[_0x25006a])&&(_0x34621f=_0x49276d(_0x34621f)||_0x34621f);return _0x34621f;},J=(_0x3e48ac,_0x321cb9)=>(_0x2ff1b9,_0x9eae7)=>_0x321cb9(_0x2ff1b9,_0x9eae7,_0x3e48ac);let ut=class extends _0x1362c8{constructor(_0x122f3f,_0x89075,_0x3edb61,_0x202037,_0x2468c5){super(_0x122f3f,_0x89075,_0x3edb61,_0x202037,_0x2468c5);}async[_0x5e6c41(0x3e1)](_0x1e5703){const _0x17b18c=_0x5e6c41,_0x1bbea0=await this[_0x17b18c(0x2c0)](),_0x3f9a1e=this['_createSocketURL'](_0x1e5703,_0x1bbea0);return this[_0x17b18c(0x3ed)](_0x3f9a1e);}[_0x5e6c41(0x269)](_0x1cb7d5,_0x1a6e64){const _0x3ce536=_0x5e6c41,_0x434184=typeof window>'u'?new URL(_0x1cb7d5):new URL(_0x1cb7d5,window['location'][_0x3ce536(0x1fa)]);_0x434184[_0x3ce536(0x436)][_0x3ce536(0x1f7)]('sessionTicket',_0x1a6e64);const _0x255b3a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x3ce536(0x281)]);return _0x255b3a[_0x3ce536(0x38c)](_0x3ce536(0x3dc))&&_0x434184[_0x3ce536(0x436)][_0x3ce536(0x1f7)](_0x3ce536(0x3dc),_0x255b3a[_0x3ce536(0x38c)](_0x3ce536(0x3dc))),_0x434184['toString']();}async[_0x5e6c41(0x2c0)](){const _0x43ef1f=_0x5e6c41;var _0x25cadf,_0x503984,_0xe14acc;const _0x13f4ef=this[_0x43ef1f(0x2ea)]['getConfig'](_0x554969),_0x56f65b=(_0x25cadf=_0x13f4ef==null?void 0x0:_0x13f4ef['wsSessionTicketUrl'])!=null?_0x25cadf:_0x4482a6;return(_0xe14acc=(_0x503984=(await this[_0x43ef1f(0x333)][_0x43ef1f(0x38c)](_0x56f65b,{'headers':{'Content-Type':_0x43ef1f(0x36e)}}))[_0x43ef1f(0x366)])==null?void 0x0:_0x503984[_0x43ef1f(0x395)])!=null?_0xe14acc:'';}};ut=xn([J(0x0,_0x393365(_0xaa1b4f)),J(0x1,_0x393365(_0x2cb535)),J(0x2,_0x4642c4),J(0x3,_0x4fe5ec),J(0x4,_0x556089)],ut);var Bn=Object[_0x5e6c41(0x3e4)],Fn=(_0x1f9100,_0x451227,_0x232299,_0x511001)=>{const _0x4aa92f=_0x5e6c41;for(var _0xf896a7=_0x511001>0x1?void 0x0:_0x511001?Bn(_0x451227,_0x232299):_0x451227,_0x36535f=_0x1f9100[_0x4aa92f(0x3f6)]-0x1,_0xb86eed;_0x36535f>=0x0;_0x36535f--)(_0xb86eed=_0x1f9100[_0x36535f])&&(_0xf896a7=_0xb86eed(_0xf896a7)||_0xf896a7);return _0xf896a7;},Ae=(_0x556b70,_0x3661ac)=>(_0x396216,_0xb0d5f5)=>_0x3661ac(_0x396216,_0xb0d5f5,_0x556b70);let dt=class extends _0x52c1c5{constructor(_0x289084,_0x15c0e2,_0x3acec6){const _0xded7e3=_0x5e6c41;super(),this[_0xded7e3(0x23d)]=_0x289084,this[_0xded7e3(0x333)]=_0x15c0e2,this[_0xded7e3(0x2ea)]=_0x3acec6;}async['runOnServer'](_0x313d82,_0x113c82,_0x13205a,..._0x5b3dd9){const _0x2d106b=_0x5e6c41;var _0xbd5e60,_0x3bec13,_0x4940de,_0xa785a0;const _0x36e3c2=this[_0x2d106b(0x23d)][_0x2d106b(0x2af)]();if(!_0x36e3c2)throw new Error(_0x2d106b(0x200));const _0x4adeae=((_0xbd5e60=this['_configService'][_0x2d106b(0x37b)](_0x3edb34))!=null?_0xbd5e60:_0x3027c6)+'/'+_0x313d82+_0x2d106b(0x344)+_0x113c82,_0x3e51bd=new URL(window[_0x2d106b(0x2fe)][_0x2d106b(0x3b0)]),_0x17053e={'scriptId':_0x313d82,'runId':(_0x3bec13=_0x3e51bd['searchParams']['get']('runId'))!=null?_0x3bec13:'','function':_0x113c82,'unitId':_0x36e3c2['getUnitId'](),'argsOfFunction':JSON[_0x2d106b(0x213)](_0x5b3dd9),'invokeId':(_0x4940de=_0x13205a['invokeId'])!=null?_0x4940de:'','executionId':(_0xa785a0=_0x13205a[_0x2d106b(0x214)])!=null?_0xa785a0:''};try{const _0x27c4f7=await this[_0x2d106b(0x333)][_0x2d106b(0x3f8)](_0x4adeae,{'body':_0x17053e});return _0x27c4f7[_0x2d106b(0x366)][_0x2d106b(0x3fc)]&&_0x27c4f7[_0x2d106b(0x366)][_0x2d106b(0x3fc)][_0x2d106b(0x412)]!==Z['OK']?'Failed':_0x27c4f7[_0x2d106b(0x366)][_0x2d106b(0x235)];}catch{return _0x2d106b(0x3aa);}}};dt=Fn([Ae(0x0,_0x49c215),Ae(0x1,_0x393365(_0x2cb535)),Ae(0x2,_0x4642c4)],dt);const St=0x7530,mt=_0x5e6c41(0x3fa);class rr extends _0x52c1c5{constructor(){const _0x13fdab=_0x5e6c41;super(),_(this,_0x13fdab(0x20a),_0x220a66()),_(this,_0x13fdab(0x3bc),new Set()),_(this,_0x13fdab(0x1f5),new Map()),_(this,_0x13fdab(0x3b5),null),_(this,_0x13fdab(0x34a),new Map()),_(this,_0x13fdab(0x3af),new Map()),this[_0x13fdab(0x3a3)]();}[_0x5e6c41(0x35f)](){const _0x401a8c=_0x5e6c41;super[_0x401a8c(0x35f)](),this['_clearOtherTimers'][_0x401a8c(0x396)]((_0x2de1e2,_0x3cd491)=>this[_0x401a8c(0x38f)](_0x3cd491)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x401a8c(0x3b5)]);}[_0x5e6c41(0x3a2)](_0x31176a){const _0x422ce3=_0x5e6c41;return this[_0x422ce3(0x3f1)](_0x31176a)[_0x422ce3(0x446)](_0x20bda3());}[_0x5e6c41(0x26a)](_0x377657){const _0x44dbd2=_0x5e6c41;this[_0x44dbd2(0x3bc)][_0x44dbd2(0x33d)]===0x0&&this[_0x44dbd2(0x1f1)](),this['_selfUnitIDs'][_0x44dbd2(0x3a1)](_0x377657),this[_0x44dbd2(0x210)]({'type':0x0,'memberID':this[_0x44dbd2(0x20a)],'unitIDs':[_0x377657],'isForwarded':!0x1});}['disposeUnit'](_0xdb7ecf){const _0x2c1738=_0x5e6c41;this[_0x2c1738(0x3bc)][_0x2c1738(0x25b)](_0xdb7ecf),this[_0x2c1738(0x3bc)][_0x2c1738(0x33d)]===0x0&&this['_heartbeatTimer']&&window[_0x2c1738(0x310)](this[_0x2c1738(0x3b5)]);}[_0x5e6c41(0x3a3)](){const _0x57de68=_0x5e6c41;this[_0x57de68(0x3be)](_0x4d6e0f(_0x138141(window,_0x57de68(0x334))['subscribe'](_0x3c2c49=>{const _0x1e56a1=_0x57de68;if(_0x3c2c49[_0x1e56a1(0x3c9)]!==mt||!_0x3c2c49[_0x1e56a1(0x2ae)])return;const _0xaf04c7=JSON[_0x1e56a1(0x3b9)](_0x3c2c49['newValue']);this[_0x1e56a1(0x3c0)](_0xaf04c7);}))),window[_0x57de68(0x261)]('unload',()=>this[_0x57de68(0x210)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x57de68(0x382)](this[_0x57de68(0x3bc)])}));}[_0x5e6c41(0x3c0)](_0x3963b6){const _0x904b5e=_0x5e6c41;switch(_0x3963b6[_0x904b5e(0x22d)]){case 0x0:this[_0x904b5e(0x2e9)](_0x3963b6);break;case 0x1:this[_0x904b5e(0x375)](_0x3963b6);break;case 0x2:this[_0x904b5e(0x31f)](_0x3963b6);break;}}[_0x5e6c41(0x2e9)](_0x1fa492){const _0x589396=_0x5e6c41,{unitIDs:_0x5d4cd8,memberID:_0x522cc8,isForwarded:_0x1990c5}=_0x1fa492;_0x5d4cd8[_0x589396(0x396)](_0x25e89d=>{const _0x4be038=_0x589396;if(!_0x1990c5&&this[_0x4be038(0x1f5)]['has'](_0x25e89d)&&this[_0x4be038(0x3f1)](_0x25e89d)[_0x4be038(0x322)](_0x1de409['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x25e89d)||!this[_0x4be038(0x1f5)][_0x4be038(0x38c)](_0x25e89d)[_0x4be038(0x3a4)](_0x522cc8)){const _0x2bb3e6=this[_0x4be038(0x1f5)][_0x4be038(0x38c)](_0x25e89d)||new Set();_0x2bb3e6[_0x4be038(0x3a1)](_0x522cc8),this[_0x4be038(0x1f5)][_0x4be038(0x1f7)](_0x25e89d,_0x2bb3e6),this[_0x4be038(0x3b1)](_0x522cc8);}}),_0x1990c5||this['_send']({'type':0x0,'memberID':this[_0x589396(0x20a)],'unitIDs':[...this[_0x589396(0x3bc)]],'isForwarded':!0x0});}[_0x5e6c41(0x3b1)](_0x576d6a){const _0x293471=_0x5e6c41;this[_0x293471(0x38f)](_0x576d6a);const _0x3e4cad=window[_0x293471(0x1fc)](()=>{const _0x4d02e8=_0x293471;this['_unitOnClients'][_0x4d02e8(0x396)](_0x3bed8a=>{const _0x335a56=_0x4d02e8;_0x3bed8a[_0x335a56(0x25b)](_0x576d6a);});},St*0x2);this['_clearOtherTimers'][_0x293471(0x1f7)](_0x576d6a,_0x3e4cad);}[_0x5e6c41(0x38f)](_0x29a1f8){const _0x2fd017=_0x5e6c41;if(this['_clearOtherTimers'][_0x2fd017(0x3a4)](_0x29a1f8)){const _0x121f95=this['_clearOtherTimers'][_0x2fd017(0x38c)](_0x29a1f8);_0x121f95&&window[_0x2fd017(0x38e)](_0x121f95),this['_clearOtherTimers'][_0x2fd017(0x1f7)](_0x29a1f8,null);}}[_0x5e6c41(0x375)](_0x511cdd){const _0x5baf3e=_0x5e6c41,{memberID:_0x2550a0,unitIDs:_0x48e7ae}=_0x511cdd;_0x48e7ae[_0x5baf3e(0x396)](_0x3b8193=>{const _0x403ae3=_0x5baf3e;var _0x2325d6;const _0x26339a=this[_0x403ae3(0x1f5)]['get'](_0x3b8193);_0x26339a&&(_0x26339a['delete'](_0x2550a0),(_0x2325d6=this[_0x403ae3(0x3f1)](_0x3b8193))==null||_0x2325d6['next'](_0x26339a['size']===0x0?_0x1de409[_0x403ae3(0x266)]:_0x1de409['OTHER_CLIENTS_EDITING']));}),this[_0x5baf3e(0x38f)](_0x2550a0);}[_0x5e6c41(0x31f)](_0x5c6cff){const _0x25cafe=_0x5e6c41;this['_scheduleClearOtherTimer'](_0x5c6cff[_0x25cafe(0x414)]);}[_0x5e6c41(0x210)](_0x490bcb){const _0x428490=_0x5e6c41;localStorage['setItem'](mt,JSON[_0x428490(0x213)](_0x490bcb));}[_0x5e6c41(0x1f1)](){const _0x5c1fd6=_0x5e6c41;this[_0x5c1fd6(0x3b5)]=window[_0x5c1fd6(0x2f6)](()=>{const _0x111c8c=_0x5c1fd6;this['_send']({'type':0x2,'memberID':this[_0x111c8c(0x20a)]});},St);}[_0x5e6c41(0x3f1)](_0x2b2284){const _0x2a7ec8=_0x5e6c41;return this[_0x2a7ec8(0x3af)][_0x2a7ec8(0x3a4)](_0x2b2284)||this[_0x2a7ec8(0x3af)]['set'](_0x2b2284,new _0x1a4d1e(_0x1de409['NO_OTHER_CLIENTS_EDITING'])),this[_0x2a7ec8(0x3af)][_0x2a7ec8(0x38c)](_0x2b2284);}}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};