@univerjs-pro/collaboration-client-ui 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251211-c28f914
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3fd5ef=_0x3680;(function(_0x56e791,_0x4f42f7){const _0xb07d77=_0x3680,_0x433119=_0x56e791();while(!![]){try{const _0x3cfe0f=parseInt(_0xb07d77(0x32e))/0x1*(parseInt(_0xb07d77(0x258))/0x2)+-parseInt(_0xb07d77(0x145))/0x3+-parseInt(_0xb07d77(0x2c7))/0x4+parseInt(_0xb07d77(0x14f))/0x5*(-parseInt(_0xb07d77(0x1b0))/0x6)+parseInt(_0xb07d77(0x305))/0x7*(-parseInt(_0xb07d77(0x2ad))/0x8)+-parseInt(_0xb07d77(0x116))/0x9*(parseInt(_0xb07d77(0x275))/0xa)+parseInt(_0xb07d77(0x130))/0xb;if(_0x3cfe0f===_0x4f42f7)break;else _0x433119['push'](_0x433119['shift']());}catch(_0x3437bf){_0x433119['push'](_0x433119['shift']());}}}(_0x11c5,0xd2028));var Yt=Object['defineProperty'],Wt=(_0x2cf54a,_0x238243,_0x537bfb)=>_0x238243 in _0x2cf54a?Yt(_0x2cf54a,_0x238243,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x537bfb}):_0x2cf54a[_0x238243]=_0x537bfb,_=(_0x3bf5e3,_0x429641,_0x1c303e)=>Wt(_0x3bf5e3,typeof _0x429641!=_0x3fd5ef(0x2dd)?_0x429641+'':_0x429641,_0x1c303e);import{jsx as _0x483ff2,jsxs as _0x5153a5}from'react/jsx-runtime';import{CollaborationStatus as _0x1c9331,CollaborationSessionService as _0x4b2370,CollaborationController as _0x2d6c5e,DataLoaderService as _0x46419b,MemberService as _0x21ac54,SessionStatus as _0x2c6b0c,ILocalCacheService as _0x2d1fcf,CollaborationUIEventService as _0x18654a,CollaborationUIEventId as _0x334803,DocCollaborationEntity as _0x1609bb,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3b3566,getLocalCacheKey as _0x41c94c,LOCAL_CACHE_INTERVAL as _0x222c32,LOCAL_CACHE_INTERVAL_KEY as _0x3bfdc4,UniverCollaborationClientPlugin as _0x45f3f2,CollaborationSocketService as _0x108e7d,DEFAULT_WS_SESSION_TICKET_URL as _0xbe5095,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3dc8dc,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x39e636,UnitStatus as _0x608ac7}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xf97bb8,IUniverInstanceService as _0x2ad077,Inject as _0x5be279,Injector as _0x4442ad,Disposable as _0x4f00b7,createIdentifier as _0x3a372c,ILogService as _0x25626e,ICommandService as _0x52fbf7,Optional as _0x17d6fa,RxDisposable as _0x54976c,Workbook as _0x36a522,DOC_RANGE_TYPE as _0x4944de,debounce as _0x23fefb,Rectangle as _0x23054e,DisposableCollection as _0xe7f0b,toDisposable as _0x2e8f72,UniverInstanceType as _0x1d3b10,generateRandomId as _0xba23d8,COLORS as _0x3b0bff,ColorKit as _0x4ee345,ThemeService as _0x27077f,fromEventSubject as _0xe44c5,Tools as _0x2b2135,CommandType as _0x5419f7,IConfigService as _0x35b32a,CanceledError as _0x42ff66,isFormulaString as _0x535a76,isFormulaId as _0x415212,ILocalStorageService as _0x494af5,DependentOn as _0x4fbb73,Plugin as _0x28d2ed,merge as _0x3e7f1c,registerDependencies as _0x28bcb4,mergeOverrideWithDependencies as _0x4720d5,touchDependencies as _0x4626f1}from'@univerjs/core';import{useObservable as _0x3b6c37,useDependency as _0x3e5812,IUIPartsService as _0x1f3df8,BuiltInUIPart as _0x5e93fc,connectInjector as _0x27af71,IBeforeCloseService as _0x420154,IMessageService as _0x968e7c,INotificationService as _0x27058d}from'@univerjs/ui';import{BehaviorSubject as _0x35a309,switchMap as _0x4773fc,of as _0x35ec2a,takeUntil as _0x5e42cd,debounceTime as _0x2b68b5,Subject as _0x227c19,filter as _0x3935fb,merge as _0xa1f736,combineLatest as _0x41494d,fromEvent as _0x22a663,shareReplay as _0x1d7304,mapTo as _0x1d3877,distinctUntilChanged as _0x2ed732}from'rxjs';import{Tooltip as _0xa6af63,clsx as _0x3a332a,MessageType as _0x5db869}from'@univerjs/design';import{useRef as _0x438dba,createElement as _0x1df529,forwardRef as _0x1d8c0b,useCallback as _0x399c7b}from'react';import{IRemoteInstanceService as _0x45dee2}from'@univerjs/rpc';function _0x3680(_0x591f56,_0x54452d){_0x591f56=_0x591f56-0xf9;const _0x11c516=_0x11c5();let _0x36800d=_0x11c516[_0x591f56];return _0x36800d;}import{SetWorksheetActivateCommand as _0x46f4df,RefRangeService as _0x185a02,SetSelectionsOperation as _0x49a9fc,SheetsSelectionsService as _0x3b49f0,EffectRefRangId as _0x1b53c3,handleIRemoveRow as _0x309a40,handleIRemoveCol as _0x237126,handleMoveRange as _0x33eaa9,handleInsertRow as _0x1af6cf,handleInsertRangeMoveRight as _0x86c9c9,handleInsertRangeMoveDown as _0x4bffa8,handleInsertCol as _0xf25669,handleDeleteRangeMoveUp as _0x4292a9,handleDeleteRangeMoveLeft as _0x883b5a,runRefRangeMutations as _0x3b1589}from'@univerjs/sheets';import{Shape as _0x112b79,Rect as _0x4403cb,getColor as _0x444fcb,RegularPolygon as _0x138f58,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x723e00,Vector2 as _0x1244fe,SHEET_VIEWPORT_KEY as _0x2ecadb,IRenderManagerService as _0x19555c}from'@univerjs/engine-render';import{HTTPService as _0x35064f,ISocketService as _0x2737a6,WebSocketService as _0x1e7bcc}from'@univerjs/network';import{IDocClipboardService as _0x87c54e,NodePositionConvertToCursor as _0x5e5b38,NodePositionConvertToRectRange as _0x1fc4d2,TEXT_RANGE_LAYER_INDEX as _0x95aa8b,SetDocZoomRatioOperation as _0xf95019,DocIMEInputManagerService as _0x5c8d42,DocStateChangeManagerService as _0x580a14}from'@univerjs/docs-ui';import{IImageIoService as _0x1cec28}from'@univerjs/drawing';import{ITransformService as _0x4be4b1,CollaborationEvent as _0x3c97cb,isTransformMutationFailure as _0x3758a8,isTransformMutationsWithChangesetSuccess as _0x463bb2,RevisionService as _0x3c1008,ISnapshotServerService as _0x20bd4a}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x13360e,RichTextEditingMutation as _0x4d93a5,DocSelectionManagerService as _0x2d3f04,DocSkeletonManagerService as _0x168684}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xfaeb74,serializeRangeWithSheet as _0xb57860,FormulaExecuteStageType as _0x533e75,FormulaExecutedStateType as _0x16f1fc,SetFormulaCalculationStartMutation as _0x2753de,SetFormulaCalculationNotificationMutation as _0x58be3c}from'@univerjs/engine-formula';import{map as _0x3ecce4,filter as _0x254313,throttleTime as _0x6ae5f3,takeUntil as _0x51cdc5,switchMap as _0x5769c7}from'rxjs/operators';function _0x11c5(){const _0x14de88=['SUCCESS','loadUnit','some','getCurrent','univer-flex\x20univer-items-center','stack','Loading','getConfig','22384QNWeQH','InsertRangeMoveRightCommandId','_getSheetObject','LOGIN_TOKEN_PROCESSING_FAILED','setParam','_docSyncEditingCollabCursorService','fillRule','urlChange$','post','getCurrentRevOfUnit','_color','isArray','path','getAncestorScale','DATA_SOURCE_TOO_LARGE','_cursors','red.300','_transformPreviousActiveRange','registerComponent','flatMap','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_getFormulaLimitStatus','docStateChange$','NO_OTHER_CLIENTS_EDITING','ENTITLE_CAN_NOT_BUY_LOWER_OTP','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','_initCommandExecutedListener','labelPosition','_uploadLog','1564010SCdNKx','_currentUsage','USERS_LEAVE','getUnitStatus$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','send','_registerRenderDependencies','executionId','entries','UNIVER_SHEET','_configService','override','_toggleOffline','url(#$1','COMPLETION_FINISHED','_config','_anchorDot','_memberService','getActiveSheet','map','?taskId=','_getMergeRange','onPointerLeave$','MoveRangeCommandId','setUndoRedoMutationParamsCache','imageSourceType','_cursor','newValue','getOwnPropertyDescriptor','setConfig','_handleLeaveEvent','DeleteRangeMoveUpCommandId','get','getMemberID','_dataLoaderService','AWAITING','bottom','_hasFormulaInDirtyRanges','setAlpha','getTypeOfUnitAdded$','_refreshCollabCursors','defs','on-line-icon_clip0_910_349','_docTransformStateCacheService','editingUnit','collabStatus.conflict','setTimeout','getVpScrollXYInfoByPosToVp','roomMembers$','_sheetSkeletonManagerService','...','transformIMECache','_initDependencies','off-line-icon_clip0_910_343','onStarting','DeleteRangeMoveLeftCommandId','1313168csvtDb','INVITE_CODE_REQUIRED','selection','APPLY_DUPLICATED','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','actions','_drawTextRange','_ensureSubject','INVALID_INVITE_CODE','ENTITLE_REPORT_LIMIT_EXCEED','shift','clipPath','unshift','mutations','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','_hideTimer','collaboration.offline-data-not-saved','getCellMatrix','OffLineIcon','_pollingInterval','_showGuardMessage','_updateCollabCursors','complete','engine','FromArray','APPLY_REJECT','4155240pmklyA','_roomMembers$','APPLY_REVISION_CONFILICT','getMergeData','SOCKET_FAILED_RETRY','_localStorageService','_name','_onRefRangeChange','debug','tag','Success','_lastResponseTimestamp','_initStatusListener','_transformService','UPDATE_CURSOR','disposeUnit','0\x200\x2016\x2016','none','popstate','asObservable','createInstance','forEach','symbol','_collaborationSessionService','_hover','YUUMI_ASYNCIO_CANCELLED','AUTHORIZE_CODE_ILLEGAL','_uiPartsService','onTransformChange$','univer-mr-2\x20univer-flex\x20univer-text-xl','_httpService','_docClipboardService','PENDING','lineTo','_syncEditingCollabCursorService','collabCursorState$','contains','_eventUnsubscribe','M0\x200H16V16H0z','MUTATION','YUUMI_ALL_TABLES_IS_INVALID','_context','currentTheme$','_renderManagerService','cursorInfo','SNAPSHOT_INVALID_SNAPSHOT','[LogService\x20Error]:\x20','OFFLINE','_urlService','unit','session.connection-failed','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','transformByState','_drawRectRange','CURRENT_STATUS_CANNOT_OPERATE','moveTo','_handleJoinEvent','_id','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','code','Error','REDEMPTION_CODE_INACTIVE','7nhGWZc','_selfUnitIDs','onPointerEnter$','_initEntityListener','_injector','disableLocalCache','TOO_MANY_REQUESTS','replaceState','catch','_collaborationController','endColumn','backgroundColor','getFocusedUnit','_cursorShapes','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','doc.mutation.rich-text-editing','_removeClearOtherTimer','_docSkeletonManagerService','_startSheetCollabCursor','getUndoRedoMutationParamsCache','_document','_registerDependencies','removeEventListener','toString','_labelPosition','color','_docTransformSelectionsService','_scene','max','memberID','[Unhandled\x20Rejection]:\x20','ENTITLE_CHAT_LIMIT_EXCEED','_textBubble','reason','syncEditingCollabCursor','getValue','INVITE_CODE_ALREADY_BOUND','collab-client.tooltip.reconnect','children','column','getStateCache','8euSjhe','getTypeOfUnitDisposed$','_localeService','unload','_createSocketURL','_init','UNDEFINED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','LOGIN_FAILED','getCurrentSelections','assign','_saveTaskMap','_cachedData','LICENSE_DISTRO_REJECTED','_removeCollabCursors','saveOfflineData','saveTaskMap','Warning','RemoveRowCommandId','history','_releaseCalculationLimit','save','onCommandExecuted','REDEMPTION_CODE_NOT_STARTED','disposeWithMe','registerRefRange','_getSessionTicket','collab-text-range-','_draw','_range','LICENSE_EXPORT_SIZE_EXCEEDED','message','height','_collabCursorState$','green.600','PY_RUNTIME_SCRIPT_ERROR','currentUsage','addHandlerCallback','_send','_backgroundColor','YUUMI_URL_COL_OUT_OF_RANGE','CONFLICT','MOBILE_HAS_BEEN_BOUND','assignAColorForMemberID','subscribe','transform','ALREADY_EXISTS','REDEMPTION_CODE_FULLY_REDEEMED','status$','body','SNAPSHOT_HAS_BEEN_REMOVED','string','_session','registerRenderModule','rgba(255,\x20255,\x20255,\x200.01)','ENTITLE_DUP_SUBSCRIPTION','OnLineIcon','InsertColCommandId','_memberID','startFormulaLimitUrl','setStateCache','searchParams','_colorAssignService','length','getSheetId','origin','restore','INVALID_ARGUMENT','APPLY_PERMISSION_DENIED','USER_IS_ANONYMOUS','_setupBeforeClosingHandler','_maxFormulaLimit','_handleEvent','9nIjzEa','LICENSE_IMPORT_SIZE_EXCEEDED','_initResize','REDEMPTION_USER_NOT_ELIGIBLE','transformSelections','[Window\x20Error]:\x20','runOnServer','trim','exhaustSavingTask','subscribeEvent','LICENSE_MAX_UNITS_EXCEEDED','getformulaLimitStatusUrl','ERROR_AGAIN','getOffsetConfig','/universer-api/license/formula/limit/status','permission.title','_getAnchorBounding','YUUMI_RATE_OVER_LIMIT','NOT_COLLAB','now','key','unhandledrejection','lineno','arc','translate(.97)','_scheduleClearOtherTimer','38896154qdcDUA','selections','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_unitOnClients','div','url(#off-line-icon_clip0_910_343)','from','getParam','_doCreateSocket','includes','split','type','_transformUndoRedoStack','_messageService','filename','RECT','onLocalMutation','runId','REDEMPTION_INVALID_CODE','has','_setupSubUnitSync','814242abvxZr','focused$','collabStatus.synced','_startDocCollabCursor','/universer-api/frontend/logs','session.will-retry','collab-rect-range-','REDEMPTION_CODE_HAS_BEEN_CREATED','_heartbeatTimer','setInterval','5yUDRFy','stage','getUnitId','getCollabEntity$','_scheduleHeartbeat','then','roomMembers','_onCursorDelete','href','/universer-api/license/formula/limit/done','enableLocalCache','getRelativeToViewportCoord','EMAIL_HAS_BEEN_BOUND','0\x200\x2017\x2016','transformRemoteChangeset','setItem','_colorIndex','unitId','fillStyle','idSuffix','source','_initCommandInterceptor','ENSURE_SNAPSHOT_EXECUTION','add','_clearPolling','_online','defIds','SYNCED','measureText','YUUMI_SUBSCRIPTION_NOT_FOUND','onMouseMove','_applyCommand','pipe','formula.calculation.started','registerBeforeClose','data','random','collabStatus.offline','SUBMIT_CHANGESET_TIMEOUT','subunit','activeSheet$','isEditing','loadOfflineData','_entities','cursorInfo$','getDocRanges','colorChannel1','_taskIds','USER_NOT_FOUND','dirtyRanges','getRangePointData','INVITE_CODE_HAS_BEEN_UES','OTHER_CLIENTS_EDITING','addEventListener','executeCommand','endRow','Failed','_clearOtherTimers','_cursorInfo$','displayName','getItem','addClipboardHook','enableFrontendLog','TEXT','storage','set','getCellPositionByOffset','next','white','ENTITLE_COUPON_USED_UP','PERMISSION_DENIED','_docStateChangeManagerService','/run/','getActiveRange','getCurrentUnitForType','ticket','subUnitId','_setFormulaLimitStatus','find','UNIVER_DOC','RemoveColCommandId','stageInfo','currentColor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','skeleton','_collaborationUIEventService','_univerInstanceService','NOT_FOUND','substring','params','row','_initEvent','event$','beginPath','1em','maxFormulaLimit','attrs','6807474LciQJv','textRanges','search','width','ONLINE','isActive','top','sessionStatus$','_initUnhandledRejectionListener','_commandService','_refRangeService','getRenderById','_handleHover','m1Prime','fill','collabStatus.fetchMiss','collabStatus.notCollab','clearInterval','round','_lastPointer','ENTITLE_INSUFFICIENT_QUOTA','_saveCache','parseInt','_onCursorUpdate','_imageIoService','_revisionService','hovered','drawWith','_notificationService','wsSessionTicketUrl','replace','OTHER_CLIENT_EDITING','YUUMI_UNABLE_LOAD_URL','_checkAndWaitForCalculationPermission','bind','jiqing.500','getCollabCursors$','getColorFromTheme','sessionTicket','totalFormulasToCalculate','_disabled','startColumn','ENTITLE_INVALID_COUPON_CODE','_updateSubUnitFromURLParams','on-line-icon','transformStateCache','unsubscribe','_handleHeartbeatEvent','ENTITLE_COUPON_EXPIRED','getSheetBySheetId','socket$','evenodd','YUUMI_AI_RUN_FAILED','_collabCursorController','makeDirty','_docTransformIMECacheService','_logService','_shapes','getViewport','collaboration.single-unit.warning','\x20at\x20','UNRECOGNIZED','_beforeCloseService','reconnect','_instanceService','Unknown\x20user','dispose','_initStatusComponent','_render','findNodePositionByCharIndex','ENTITLE_NEED_BILLING_ADDRESS','startRow','url(#on-line-icon_clip0_910_349)','_updateLocalCursor','toRgbString','_collabSessionService','EMAIL_VERIFY_CODE_MISMATCH','releaseFormulaLimitUrl','CHANGESET_REVISION_CONFILICT','beforeCommandExecuted','SOCKET_FAILED','mask','uni.network.url-service','dispose$','FETCH_MISS','unitID','getUniverSheetInstance','with','_entityInit$','_localCacheService','_toggleOnline','_assignedColors','off-line-icon','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_updateURLWithCurrentState','show','_monkeyPatchLogService','WECHAT_HAS_BEEN_BOUND','_drawAnchor','_checkCalculationAvailable','xlink:href','YUUMI_CONNECTOR_URL_NOT_FOUND','startsWith','stringify','eventID','closePath','updateOfflineData','ACTIVE_UNIT_EVENT_CHANNEL','name','collaboration-client-ui.config','UNAUTHENTICATED','_initWindowErrorListener','http://www.w3.org/2000/svg','push','requireSession','black','formula.calculation.unable','entityInit$','_initUserListener','getSkeleton','_themeService','_status$','size','AWAITING_WITH_PENDING','colno','sheetId','svg','_unitStatus','_getSaveTimeout','transformMutationsWithChangeset','error','deepClone','limitInfo','pushState','delete','InsertRowCommandId','fillText','ranges','getMember','hide','setShapeProps','values','_hovered','current','USER_NOT_INVITED_CODE','_getScale','transformMutation','init','_startCalculationLimit','_anchor','_docSkeleton','CONNECTOR_DATA_TOO_LARGE','m2Prime','addObject','location','redoState','text','INTERNAL_ERROR','undoState','START_CALCULATION'];_0x11c5=function(){return _0x14de88;};return _0x11c5();}import{SheetSkeletonManagerService as _0x103263,getCoordByCell as _0x3294e3,getSheetObject as _0x59fce6}from'@univerjs/sheets-ui';function Ge({ref:_0x86f595,..._0x43e13e}){const _0x54290f=_0x3fd5ef,{icon:_0x13eb18,id:_0x17fd6c,className:_0x28f08e,extend:_0x334875,..._0x3989f2}=_0x43e13e,_0x2d43bd=('univerjs-icon\x20univerjs-icon-'+_0x17fd6c+'\x20'+(_0x28f08e||''))[_0x54290f(0x11d)](),_0x3f5728=_0x438dba('_'+vi());return At(_0x13eb18,''+_0x17fd6c,{'defIds':_0x13eb18[_0x54290f(0x169)],'idSuffix':_0x3f5728[_0x54290f(0x23f)]},{'ref':_0x86f595,'className':_0x2d43bd,..._0x3989f2},_0x334875);}function At(_0x3296d0,_0x30c765,_0x326bee,_0x83d4d7,_0x17bb04){const _0x27b907=_0x3fd5ef;return _0x1df529(_0x3296d0[_0x27b907(0x2d0)],{'key':_0x30c765,...gi(_0x3296d0,_0x326bee,_0x17bb04),..._0x83d4d7},(Ei(_0x3296d0,_0x326bee)[_0x27b907(0x32b)]||[])[_0x27b907(0x288)]((_0x4cbc35,_0x2ac765)=>At(_0x4cbc35,_0x30c765+'-'+_0x3296d0[_0x27b907(0x2d0)]+'-'+_0x2ac765,_0x326bee,void 0x0,_0x17bb04)));}function gi(_0x2bd2ae,_0xfae266,_0xe6fd7b){const _0x2a9d45=_0x3fd5ef,_0x148adb={..._0x2bd2ae[_0x2a9d45(0x1af)]};_0xe6fd7b!=null&&_0xe6fd7b[_0x2a9d45(0x17d)]&&_0x148adb[_0x2a9d45(0x1be)]===_0x2a9d45(0x17d)&&(_0x148adb[_0x2a9d45(0x1be)]=_0xe6fd7b[_0x2a9d45(0x17d)]),_0x2bd2ae['tag']===_0x2a9d45(0x201)&&_0x148adb['id']&&(_0x148adb['id']=_0x148adb['id']+_0xfae266['idSuffix']),Object[_0x2a9d45(0x27d)](_0x148adb)[_0x2a9d45(0x2dc)](([_0x372771,_0x42ac39])=>{const _0x6986f=_0x2a9d45;_0x372771===_0x6986f(0x201)&&typeof _0x42ac39==_0x6986f(0x100)&&(_0x148adb[_0x372771]=_0x42ac39[_0x6986f(0x1ce)](/url\(#(.*)\)/,_0x6986f(0x282)+_0xfae266[_0x6986f(0x162)]+')'));});const {defIds:_0x4e56b6}=_0xfae266;return!_0x4e56b6||_0x4e56b6[_0x2a9d45(0x10c)]===0x0||(_0x2bd2ae[_0x2a9d45(0x2d0)]==='use'&&_0x148adb['xlink:href']&&(_0x148adb[_0x2a9d45(0x214)]=_0x148adb['xlink:href']+_0xfae266[_0x2a9d45(0x162)]),Object['entries'](_0x148adb)[_0x2a9d45(0x2dc)](([_0x3ef5d5,_0xb3fac7])=>{const _0x1283e9=_0x2a9d45;typeof _0xb3fac7==_0x1283e9(0x100)&&(_0x148adb[_0x3ef5d5]=_0xb3fac7[_0x1283e9(0x1ce)](/url\(#(.*)\)/,_0x1283e9(0x282)+_0xfae266[_0x1283e9(0x162)]+')'));})),_0x148adb;}function Ei(_0x4c14fa,_0x28fa47){const _0x5f3784=_0x3fd5ef;var _0x2c8e32;const {defIds:_0x325bfa}=_0x28fa47;return!_0x325bfa||_0x325bfa[_0x5f3784(0x10c)]===0x0?_0x4c14fa:_0x4c14fa['tag']===_0x5f3784(0x29e)&&((_0x2c8e32=_0x4c14fa['children'])!=null&&_0x2c8e32[_0x5f3784(0x10c)])?{..._0x4c14fa,'children':_0x4c14fa[_0x5f3784(0x32b)][_0x5f3784(0x288)](_0x42bc1c=>typeof _0x42bc1c['attrs']['id']=='string'&&_0x325bfa&&_0x325bfa[_0x5f3784(0x139)](_0x42bc1c[_0x5f3784(0x1af)]['id'])?{..._0x42bc1c,'attrs':{..._0x42bc1c[_0x5f3784(0x1af)],'id':_0x42bc1c['attrs']['id']+_0x28fa47['idSuffix']}}:_0x42bc1c)}:_0x4c14fa;}function vi(){const _0x27f713=_0x3fd5ef;return Math[_0x27f713(0x173)]()[_0x27f713(0x31c)](0x24)[_0x27f713(0x1a7)](0x2,0x8);}Ge[_0x3fd5ef(0x18a)]='UniverIcon';const pi={'tag':_0x3fd5ef(0x22e),'attrs':{'xmlns':_0x3fd5ef(0x220),'fill':_0x3fd5ef(0x2d8),'viewBox':_0x3fd5ef(0x2d7),'width':_0x3fd5ef(0x1ad),'height':_0x3fd5ef(0x1ad)},'children':[{'tag':'g','attrs':{'clipPath':_0x3fd5ef(0x135)},'children':[{'tag':_0x3fd5ef(0x264),'attrs':{'stroke':_0x3fd5ef(0x1a1),'d':_0x3fd5ef(0x271),'strokeLinecap':_0x3fd5ef(0x1c2),'strokeLinejoin':_0x3fd5ef(0x1c2),'strokeWidth':1.2}}]},{'tag':_0x3fd5ef(0x29e),'attrs':{},'children':[{'tag':_0x3fd5ef(0x2b8),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3fd5ef(0x193),'d':_0x3fd5ef(0x2ed)}}]}]}],'defIds':[_0x3fd5ef(0x2aa)]},Pt=_0x1d8c0b(function(_0x484aff,_0x5c43b4){const _0x219ce4=_0x3fd5ef;return _0x1df529(Ge,Object[_0x219ce4(0x338)]({},_0x484aff,{'id':_0x219ce4(0x20c),'ref':_0x5c43b4,'icon':pi}));});Pt[_0x3fd5ef(0x18a)]=_0x3fd5ef(0x2bf);const Oi={'tag':_0x3fd5ef(0x22e),'attrs':{'xmlns':_0x3fd5ef(0x220),'fill':'none','viewBox':_0x3fd5ef(0x15c),'width':_0x3fd5ef(0x1ad),'height':_0x3fd5ef(0x1ad)},'children':[{'tag':'g','attrs':{'clipPath':_0x3fd5ef(0x1f8)},'children':[{'tag':_0x3fd5ef(0x264),'attrs':{'stroke':_0x3fd5ef(0x1a1),'d':_0x3fd5ef(0x2bb),'strokeLinecap':_0x3fd5ef(0x1c2),'strokeLinejoin':_0x3fd5ef(0x1c2),'strokeWidth':1.2}}]},{'tag':_0x3fd5ef(0x29e),'attrs':{},'children':[{'tag':_0x3fd5ef(0x2b8),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3fd5ef(0x264),'attrs':{'fill':_0x3fd5ef(0x193),'d':_0x3fd5ef(0x2ed),'transform':_0x3fd5ef(0x12e)}}]}]}],'defIds':[_0x3fd5ef(0x29f)]},wt=_0x1d8c0b(function(_0x580db5,_0x5b513b){const _0x99472e=_0x3fd5ef;return _0x1df529(Ge,Object[_0x99472e(0x338)]({},_0x580db5,{'id':_0x99472e(0x1dc),'ref':_0x5b513b,'icon':Oi}));});wt['displayName']=_0x3fd5ef(0x105);function Ti(_0x126a0a){const _0x5b6539=_0x3fd5ef;switch(_0x126a0a){case _0x1c9331[_0x5b6539(0x2f6)]:return _0x5b6539(0x174);case _0x1c9331[_0x5b6539(0x357)]:return _0x5b6539(0x2a2);case _0x1c9331[_0x5b6539(0x204)]:return _0x5b6539(0x1bf);case _0x1c9331[_0x5b6539(0x128)]:return _0x5b6539(0x1c0);case _0x1c9331[_0x5b6539(0x298)]:case _0x1c9331[_0x5b6539(0x22b)]:return'collabStatus.syncing';case _0x1c9331[_0x5b6539(0x16a)]:case _0x1c9331[_0x5b6539(0x2e7)]:return _0x5b6539(0x147);}}function Ci(_0x53eb24){const _0xfff541=_0x3fd5ef,{status$:_0x2ae42e}=_0x53eb24,_0x1c7161=_0x3b6c37(_0x2ae42e,_0x1c9331[_0xfff541(0x128)]),_0x247da8=_0x3e5812(_0xf97bb8),_0x6aff8a=_0x3e5812(_0x4b2370),_0x1c0b7a=_0x1c7161!==_0x1c9331['OFFLINE'],_0x4456f2=_0x247da8['t'](Ti(_0x1c7161)),_0x1e73a9=_0x1c0b7a?_0x483ff2(wt,{}):_0x483ff2(Pt,{}),_0x13dd8d=_0x399c7b(()=>{const _0x572045=_0xfff541;_0x1c0b7a||_0x6aff8a[_0x572045(0x1ef)]();},[_0x1c0b7a,_0x6aff8a]);function _0x3bd6a0(){const _0x222712=_0xfff541;return _0x5153a5(_0x222712(0x134),{'className':_0x222712(0x254),'onClick':_0x13dd8d,'children':[_0x483ff2(_0x222712(0x134),{'className':_0x3a332a(_0x222712(0x2e4),{'univer-text-green-500':_0x1c0b7a,'univer-text-red-500':!_0x1c0b7a}),'children':_0x1e73a9}),_0x483ff2(_0x222712(0x134),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4456f2})]});}return _0x1c0b7a?_0x3bd6a0():_0x483ff2(_0xa6af63,{'title':_0x247da8['t'](_0xfff541(0x32a)),'children':_0x3bd6a0()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x5b1278,_0x8c5b7d,_0x2c61f3,_0x599af7)=>{const _0x44b6c3=_0x3fd5ef;for(var _0x1d5c92=_0x599af7>0x1?void 0x0:_0x599af7?Ri(_0x8c5b7d,_0x2c61f3):_0x8c5b7d,_0x3712b4=_0x5b1278[_0x44b6c3(0x10c)]-0x1,_0x37a264;_0x3712b4>=0x0;_0x3712b4--)(_0x37a264=_0x5b1278[_0x3712b4])&&(_0x1d5c92=_0x37a264(_0x1d5c92)||_0x1d5c92);return _0x1d5c92;},se=(_0x1ce305,_0x114786)=>(_0x586456,_0x319c2e)=>_0x114786(_0x586456,_0x319c2e,_0x1ce305);let ae=class extends _0x4f00b7{constructor(_0x3b0a9f,_0x51201d,_0x18d5d6,_0x3fe0bd){const _0x45dd26=_0x3fd5ef;super(),_(this,_0x45dd26(0x229),new _0x35a309(_0x1c9331[_0x45dd26(0x128)])),(this['_univerInstanceService']=_0x3b0a9f,this[_0x45dd26(0x309)]=_0x51201d,this[_0x45dd26(0x30e)]=_0x18d5d6,this[_0x45dd26(0x2e2)]=_0x3fe0bd,this[_0x45dd26(0x1f3)](),this['_initStatusListener']());}[_0x3fd5ef(0x2d3)](){const _0x3a7838=_0x3fd5ef;this['disposeWithMe'](this[_0x3a7838(0x1a5)][_0x3a7838(0x146)][_0x3a7838(0x16f)](_0x4773fc(()=>{const _0x185998=_0x3a7838,_0x26eb73=this[_0x185998(0x1a5)][_0x185998(0x311)]();return _0x26eb73?this[_0x185998(0x30e)][_0x185998(0x152)](_0x26eb73[_0x185998(0x151)]()):_0x35ec2a(null);}),_0x4773fc(_0x540928=>_0x540928?_0x540928[_0x3a7838(0xfd)]:_0x35ec2a(_0x1c9331[_0x3a7838(0x128)])))[_0x3a7838(0xf9)](_0xee58c7=>{const _0x4133ec=_0x3a7838;this[_0x4133ec(0x229)][_0x4133ec(0x192)](_0xee58c7);}));}['_initStatusComponent'](){const _0x5d5ed2=_0x3fd5ef;this[_0x5d5ed2(0x346)](this['_uiPartsService'][_0x5d5ed2(0x26a)](_0x5e93fc['HEADER_MENU'],()=>_0x27af71(Ni({'status$':this[_0x5d5ed2(0x229)][_0x5d5ed2(0x2da)]()}),this[_0x5d5ed2(0x309)])));}};ae=Di([se(0x0,_0x2ad077),se(0x1,_0x5be279(_0x4442ad)),se(0x2,_0x5be279(_0x2d6c5e)),se(0x3,_0x1f3df8)],ae);function Ni(_0x35bc1d){const {status$:_0x378dcd}=_0x35bc1d;return function(){return _0x483ff2(Ci,{'status$':_0x378dcd});};}const yt=_0x3a372c(_0x3fd5ef(0x202));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x54948e,_0x5f4b17,_0x53dc25,_0x4223b3)=>{const _0x15ee98=_0x3fd5ef;for(var _0x4c6f60=_0x4223b3>0x1?void 0x0:_0x4223b3?bi(_0x5f4b17,_0x53dc25):_0x5f4b17,_0x13e45c=_0x54948e[_0x15ee98(0x10c)]-0x1,_0x233495;_0x13e45c>=0x0;_0x13e45c--)(_0x233495=_0x54948e[_0x13e45c])&&(_0x4c6f60=_0x233495(_0x4c6f60)||_0x4c6f60);return _0x4c6f60;},K=(_0x4dbba2,_0x5cad9b)=>(_0x318eb4,_0x274365)=>_0x5cad9b(_0x318eb4,_0x274365,_0x4dbba2);let ce=class extends _0x54976c{constructor(_0x2a8b1e,_0xf0042f,_0x1e0faf,_0x763352,_0x24686a){const _0x566a61=_0x3fd5ef;super(),this[_0x566a61(0x2f7)]=_0x2a8b1e,this['_logService']=_0xf0042f,this[_0x566a61(0x1b9)]=_0x1e0faf,this[_0x566a61(0x297)]=_0x763352,_0x24686a?_0x24686a==null||_0x24686a['whenReady']()[_0x566a61(0x154)](()=>this[_0x566a61(0x333)]()):(this[_0x566a61(0x1e8)][_0x566a61(0x2cf)]('[CollaborationDataLoaderController]',_0x566a61(0x132)),this[_0x566a61(0x333)]());}async[_0x3fd5ef(0x333)](){const _0x3273a8=_0x3fd5ef,_0x546db8=this[_0x3273a8(0x2f7)][_0x3273a8(0x137)](_0x3273a8(0x2f8)),_0x346d29=this[_0x3273a8(0x2f7)]['getParam'](_0x3273a8(0x13b)),_0x49091d=this[_0x3273a8(0x2f7)]['getParam'](_0x3273a8(0x176));if(!_0x546db8||!_0x346d29){this[_0x3273a8(0x1e8)]['debug']('[CollaborationDataLoaderController]',_0x3273a8(0x20d));return;}const _0x1fe2f5=await this[_0x3273a8(0x297)][_0x3273a8(0x251)](_0x546db8,Number(_0x346d29),_0x49091d);_0x1fe2f5&&_0x1fe2f5 instanceof _0x36a522&&this[_0x3273a8(0x144)](_0x1fe2f5);}async[_0x3fd5ef(0x144)](_0x41a9e4){const _0x56c2f4=_0x3fd5ef;await this[_0x56c2f4(0x1db)](_0x41a9e4),_0x41a9e4[_0x56c2f4(0x177)]['pipe'](_0x5e42cd(this[_0x56c2f4(0x203)]))[_0x56c2f4(0xf9)](_0x478495=>{const _0x5b4a86=_0x56c2f4;_0x478495&&this[_0x5b4a86(0x20e)](_0x478495);}),this[_0x56c2f4(0x2f7)]['urlChange$'][_0x56c2f4(0x16f)](_0x5e42cd(this[_0x56c2f4(0x203)]))[_0x56c2f4(0xf9)](()=>this['_updateSubUnitFromURLParams'](_0x41a9e4));}[_0x3fd5ef(0x20e)](_0x504a56,_0x38db87=!0x1){const _0x1633dc=_0x3fd5ef,_0x1f56c3=this['_urlService'][_0x1633dc(0x137)](_0x1633dc(0x176));_0x504a56[_0x1633dc(0x10d)]()!==_0x1f56c3&&this[_0x1633dc(0x2f7)][_0x1633dc(0x25c)](_0x1633dc(0x176),_0x504a56[_0x1633dc(0x10d)](),_0x38db87);}async[_0x3fd5ef(0x1db)](_0x44c8ab){const _0x3acc5c=_0x3fd5ef;var _0x485893;const _0xb4270e=this[_0x3acc5c(0x2f7)][_0x3acc5c(0x137)]('subunit');if(!_0xb4270e||!_0x44c8ab['getSheetBySheetId'](_0xb4270e)){const _0xe1dc07=_0x44c8ab['getUnhiddenWorksheets']()[0x0],_0x7d2a1b=_0x44c8ab[_0x3acc5c(0x1e1)](_0xe1dc07);if(!_0x7d2a1b)return;this['_updateURLWithCurrentState'](_0x7d2a1b,!0x0),await this[_0x3acc5c(0x1b9)][_0x3acc5c(0x185)](_0x46f4df['id'],{'unitId':_0x44c8ab[_0x3acc5c(0x151)](),'subUnitId':_0xe1dc07});return;}((_0x485893=_0x44c8ab[_0x3acc5c(0x287)]())==null?void 0x0:_0x485893[_0x3acc5c(0x10d)]())!==_0xb4270e&&await this[_0x3acc5c(0x1b9)][_0x3acc5c(0x185)](_0x46f4df['id'],{'unitId':_0x44c8ab['getUnitId'](),'subUnitId':_0xb4270e});}};ce=Li([K(0x0,yt),K(0x1,_0x25626e),K(0x2,_0x52fbf7),K(0x3,_0x5be279(_0x46419b)),K(0x4,_0x17d6fa(_0x45dee2))],ce);var Ui=Object[_0x3fd5ef(0x291)],Mi=(_0x58bd3d,_0x58cdb3,_0x269dc8,_0x43e18e)=>{const _0x3a5209=_0x3fd5ef;for(var _0x130044=_0x43e18e>0x1?void 0x0:_0x43e18e?Ui(_0x58cdb3,_0x269dc8):_0x58cdb3,_0x8d005c=_0x58bd3d[_0x3a5209(0x10c)]-0x1,_0x3fd5be;_0x8d005c>=0x0;_0x8d005c--)(_0x3fd5be=_0x58bd3d[_0x8d005c])&&(_0x130044=_0x3fd5be(_0x130044)||_0x130044);return _0x130044;},rt=(_0x68e218,_0x4f53df)=>(_0x77d139,_0x15c35b)=>_0x4f53df(_0x77d139,_0x15c35b,_0x68e218);let $e=class extends _0x54976c{constructor(_0x13d4e3,_0x1ab985){const _0x1ed2bc=_0x3fd5ef;super(),this[_0x1ed2bc(0x2e6)]=_0x13d4e3,this[_0x1ed2bc(0x1c8)]=_0x1ab985,this['_init']();}['_init'](){const _0x3dfc84=_0x3fd5ef,_0x1d80cc=this;this[_0x3dfc84(0x346)](this[_0x3dfc84(0x2e6)][_0x3dfc84(0x18c)]({'onBeforePasteImage':async _0x155949=>{const _0x18777c=_0x3dfc84,_0x1d581f=await _0x1d80cc[_0x18777c(0x1c8)]['saveImage'](_0x155949);return _0x1d581f?{'source':_0x1d581f[_0x18777c(0x163)],'imageSourceType':_0x1d581f[_0x18777c(0x28e)]}:null;}}));}};$e=Mi([rt(0x0,_0x87c54e),rt(0x1,_0x1cec28)],$e);const ot=['purple.300',_0x3fd5ef(0x1d3),_0x3fd5ef(0x350),_0x3fd5ef(0x268),'blue.400','yellow.400'];class Ke extends _0x4f00b7{constructor(){const _0x5b27cc=_0x3fd5ef;super(...arguments),_(this,_0x5b27cc(0x20b),new Map()),_(this,'_colorIndex',0x0);}[_0x3fd5ef(0x359)](_0x110801){const _0x8df7df=_0x3fd5ef;if(this[_0x8df7df(0x20b)][_0x8df7df(0x143)](_0x110801))return this['_assignedColors']['get'](_0x110801);const _0x3b8a35=ot[this[_0x8df7df(0x15f)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%ot[_0x8df7df(0x10c)],this[_0x8df7df(0x20b)][_0x8df7df(0x190)](_0x110801,_0x3b8a35),_0x3b8a35;}}function $t(_0x18f357){let _0x3de91c='';for(const _0x45e21d of _0x18f357){const {startOffset:_0x5f4bca,endOffset:_0x121099,isActive:_0x2eb448,rangeType:_0x2755cd,segmentId:_0xd919c4,segmentPage:_0x564cc}=_0x45e21d;_0x3de91c['length']&&(_0x3de91c+=','),_0x3de91c+=_0x5f4bca+':'+_0x121099+':'+(_0x2eb448?'1':'0')+':'+_0x2755cd+':'+_0xd919c4+':'+_0x564cc;}return _0x3de91c;}function Ai(_0x5709fc){const _0x3d2830=_0x3fd5ef,_0x3d47bf=_0x5709fc[_0x3d2830(0x13a)](','),_0x58e0e8=[];for(const _0x1b7422 of _0x3d47bf){const [_0x3b6f6e,_0x21edd8,_0x360e7c,_0x186c47,_0x35a291,_0x46927c]=_0x1b7422[_0x3d2830(0x13a)](':');_0x58e0e8[_0x3d2830(0x221)]({'startOffset':Number(_0x3b6f6e),'endOffset':Number(_0x21edd8),'collapsed':_0x3b6f6e===_0x21edd8,'isActive':_0x360e7c==='1','rangeType':_0x186c47===_0x4944de[_0x3d2830(0x18e)]?_0x4944de[_0x3d2830(0x18e)]:_0x4944de[_0x3d2830(0x13f)],'segmentId':typeof _0x35a291==_0x3d2830(0x100)?String(_0x35a291):'','segmentPage':Number(_0x46927c!=null?_0x46927c:-0x1)});}return _0x58e0e8[_0x3d2830(0x252)](_0x3be3f7=>_0x3be3f7[_0x3d2830(0x1b5)])||(_0x58e0e8[0x0][_0x3d2830(0x1b5)]=!0x0),_0x58e0e8;}class ze extends _0x54976c{constructor(){const _0xb09b06=_0x3fd5ef;super(...arguments),_(this,_0xb09b06(0x34f),new _0x35a309(null)),_(this,'collabCursorState$',this[_0xb09b06(0x34f)][_0xb09b06(0x2da)]());}[_0x3fd5ef(0x327)](_0x475380){const _0x45ab52=_0x3fd5ef,{unitID:_0x59c384,memberID:_0x469c19,textRanges:_0x2b0b65}=_0x475380,_0x223021=$t(_0x2b0b65);if(_0x223021==='')return;const _0x2dd059={'unitID':_0x59c384,'memberID':_0x469c19,'selection':_0x223021};this['_collabCursorState$'][_0x45ab52(0x192)](_0x2dd059);}}var Pi=Object[_0x3fd5ef(0x291)],wi=(_0x55d91d,_0x55e47f,_0x5d7ce4,_0x5e0e0c)=>{const _0x518a29=_0x3fd5ef;for(var _0x144125=_0x5e0e0c>0x1?void 0x0:_0x5e0e0c?Pi(_0x55e47f,_0x5d7ce4):_0x55e47f,_0x306ce7=_0x55d91d[_0x518a29(0x10c)]-0x1,_0x577286;_0x306ce7>=0x0;_0x306ce7--)(_0x577286=_0x55d91d[_0x306ce7])&&(_0x144125=_0x577286(_0x144125)||_0x144125);return _0x144125;},A=(_0x24e6ee,_0x4e843d)=>(_0xed2bae,_0x136fc2)=>_0x4e843d(_0xed2bae,_0x136fc2,_0x24e6ee);const yi=0x12c,$i=0x64;let xe=class extends _0x54976c{constructor(_0x58c24f,_0x384927,_0x1dd750,_0x54e35b,_0x1bb591,_0x55f521,_0x243e48,_0x5d09db,_0x177cd0){const _0x12539b=_0x3fd5ef;super(),_(this,_0x12539b(0x168),!0x1),_(this,_0x12539b(0x333),!0x1),_(this,'_cursorInfo$',new _0x35a309(new Map())),_(this,_0x12539b(0x17b),this[_0x12539b(0x189)]['asObservable']()),_(this,_0x12539b(0x2c8),new _0x35a309([])),_(this,_0x12539b(0x2a5),this[_0x12539b(0x2c8)][_0x12539b(0x16f)](_0x2b68b5(yi))),_(this,_0x12539b(0x1f9),_0x23fefb(_0x81deab=>{const _0x21f9a1=_0x12539b,_0x5d3f89={'eventID':_0x3c97cb[_0x21f9a1(0x2d5)],'data':{'unitID':this[_0x21f9a1(0x205)],'memberID':this[_0x21f9a1(0x101)][_0x21f9a1(0x296)](),'selection':$t(_0x81deab)}};this['_session'][_0x21f9a1(0x27a)](_0x5d3f89,this[_0x21f9a1(0x205)]);},$i)),(this['unitID']=_0x58c24f,this['_session']=_0x384927,this['_injector']=_0x1dd750,this[_0x12539b(0x10b)]=_0x54e35b,this['_memberService']=_0x1bb591,this[_0x12539b(0x2e9)]=_0x55f521,this['_transformService']=_0x243e48,this[_0x12539b(0x1a5)]=_0x5d09db,this['_commandService']=_0x177cd0);}get['cursorInfo'](){const _0x3bf632=_0x3fd5ef;return this[_0x3bf632(0x189)][_0x3bf632(0x328)]();}get[_0x3fd5ef(0x155)](){const _0x2ae22f=_0x3fd5ef;return this[_0x2ae22f(0x2c8)][_0x2ae22f(0x328)]();}[_0x3fd5ef(0x1f2)](){const _0x35d242=_0x3fd5ef;super[_0x35d242(0x1f2)](),this[_0x35d242(0x189)][_0x35d242(0x192)](new Map()),this['_cursorInfo$'][_0x35d242(0x2c3)](),this['_roomMembers$'][_0x35d242(0x192)]([]),this['_roomMembers$'][_0x35d242(0x2c3)]();}[_0x3fd5ef(0x243)](){const _0x5b92c3=_0x3fd5ef;this[_0x5b92c3(0x333)]||(this['_init']=!0x0,this[_0x5b92c3(0x101)][_0x5b92c3(0x1b7)][_0x5b92c3(0x16f)](_0x5e42cd(this[_0x5b92c3(0x203)]))[_0x5b92c3(0xf9)](_0xc4ad02=>{const _0xf96dfb=_0x5b92c3;_0xc4ad02===_0x2c6b0c[_0xf96dfb(0x1b4)]?this[_0xf96dfb(0x20a)]():this[_0xf96dfb(0x281)]();}),this['_session'][_0x5b92c3(0x1ab)]['pipe'](_0x5e42cd(this[_0x5b92c3(0x203)]))['subscribe'](_0xf47dd4=>{const _0x534d86=_0x5b92c3,_0x555192=_0xf47dd4[_0x534d86(0x218)];_0x555192===_0x3c97cb['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xf47dd4),_0x555192===_0x3c97cb[_0x534d86(0x277)]&&this[_0x534d86(0x156)](_0xf47dd4);}),this[_0x5b92c3(0x346)](this[_0x5b92c3(0x1b9)][_0x5b92c3(0x344)](_0x19c546=>{const _0x43d47e=_0x5b92c3,_0x50033a=_0x19c546[_0x43d47e(0x1a8)];_0x50033a!=null&&this['_online']&&_0x19c546['id']===_0x13360e['id']&&_0x50033a['unitId']===this[_0x43d47e(0x205)]&&_0x50033a[_0x43d47e(0x178)]===!0x1&&_0x50033a['ranges'][_0x43d47e(0x10c)]>0x0&&this['_updateLocalCursor'](_0x50033a['ranges']);})),this[_0x5b92c3(0x2e9)][_0x5b92c3(0x2ea)]['pipe'](_0x5e42cd(this['dispose$']))['subscribe'](_0xf7b7c2=>{const _0x15796c=_0x5b92c3;if((_0xf7b7c2==null?void 0x0:_0xf7b7c2['unitID'])!==this['unitID'])return;const _0x22b2bc={'eventID':_0x3c97cb['UPDATE_CURSOR'],'data':_0xf7b7c2};this[_0x15796c(0x1c7)](_0x22b2bc);}),this[_0x5b92c3(0x346)](this[_0x5b92c3(0x1b9)][_0x5b92c3(0x344)](_0xddbe46=>{const _0x4f6e94=_0x5b92c3;if(_0xddbe46['params']==null)return;const _0x5778dc=_0xddbe46[_0x4f6e94(0x1a8)];if(_0xddbe46['id']!==_0x4d93a5['id']||_0x5778dc['unitId']!==this[_0x4f6e94(0x205)])return;const _0xa335bf={'id':_0x4f6e94(0x314),'params':_0x5778dc},_0x1a1679=this[_0x4f6e94(0x2f3)];for(const [_0x22a35a,_0x292f93]of _0x1a1679){const _0x115b2e={'id':_0x4f6e94(0x314),'params':{'unitId':this[_0x4f6e94(0x205)],'actions':null,'textRanges':_0x292f93[_0x4f6e94(0x239)]}},_0x53aa1f=this[_0x4f6e94(0x2d4)][_0x4f6e94(0x242)](_0xa335bf,_0x115b2e,!0x1);if(_0x3758a8(_0x53aa1f))throw _0x53aa1f['error'];_0x1a1679[_0x4f6e94(0x190)](_0x22a35a,{..._0x292f93,'ranges':_0x53aa1f[_0x4f6e94(0x248)]['params']['textRanges']});}queueMicrotask(()=>{const _0x444ee6=_0x4f6e94;this['_cursorInfo$'][_0x444ee6(0x192)](_0x1a1679);});})));}[_0x3fd5ef(0x1c7)](_0x2fafd2){const _0x3e4708=_0x3fd5ef;var _0x47e666,_0x550882;const {memberID:_0xf2b15c,selection:_0x5dcfc4}=_0x2fafd2[_0x3e4708(0x172)],_0x3fa161=Ai(_0x5dcfc4),_0x3bd98c=(_0x550882=(_0x47e666=this['_memberService']['getMember'](this[_0x3e4708(0x205)],_0xf2b15c))==null?void 0x0:_0x47e666[_0x3e4708(0x21c)])!=null?_0x550882:_0x3e4708(0x1f1),_0x4ef845={'color':this['_colorAssignService']['assignAColorForMemberID'](_0xf2b15c),'name':_0x3bd98c,'ranges':_0x3fa161},_0x2a48f8=this[_0x3e4708(0x2f3)];_0x2a48f8['set'](_0xf2b15c,_0x4ef845),this[_0x3e4708(0x189)][_0x3e4708(0x192)](_0x2a48f8);}[_0x3fd5ef(0x156)](_0x1b5a0f){const _0xbb72e0=_0x3fd5ef,{memberID:_0x4b3f9c}=_0x1b5a0f[_0xbb72e0(0x172)],_0xa91edc=this['cursorInfo'];_0xa91edc[_0xbb72e0(0x236)](_0x4b3f9c),this[_0xbb72e0(0x189)][_0xbb72e0(0x192)](_0xa91edc);}[_0x3fd5ef(0x20a)](){const _0x428084=_0x3fd5ef;var _0x372859;if(this[_0x428084(0x168)]=!0x0,((_0x372859=this[_0x428084(0x1a5)]['getFocusedUnit']())==null?void 0x0:_0x372859['getUnitId']())!==this[_0x428084(0x205)])return;const _0x5dcc34=this[_0x428084(0x309)][_0x428084(0x295)](_0x2d3f04)[_0x428084(0x17c)]();Array['isArray'](_0x5dcc34)&&_0x5dcc34[_0x428084(0x10c)]>0x0&&this[_0x428084(0x1f9)](_0x5dcc34);}['_toggleOffline'](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x5be279(_0x4442ad)),A(0x3,_0x5be279(Ke)),A(0x4,_0x5be279(_0x21ac54)),A(0x5,_0x5be279(ze)),A(0x6,_0x4be4b1),A(0x7,_0x2ad077),A(0x8,_0x52fbf7)],xe);var xi=Object[_0x3fd5ef(0x291)],Bi=(_0x5e815a,_0x16c29f,_0x54aa8d,_0x3f10c7)=>{const _0x540420=_0x3fd5ef;for(var _0x563144=_0x3f10c7>0x1?void 0x0:_0x3f10c7?xi(_0x16c29f,_0x54aa8d):_0x16c29f,_0x30d882=_0x5e815a[_0x540420(0x10c)]-0x1,_0x30dc2d;_0x30d882>=0x0;_0x30d882--)(_0x30dc2d=_0x5e815a[_0x30d882])&&(_0x563144=_0x30dc2d(_0x563144)||_0x563144);return _0x563144;},B=(_0x414595,_0xb53762)=>(_0x404a0e,_0x20812d)=>_0xb53762(_0x404a0e,_0x20812d,_0x414595);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x266263=[],_0x25ded7=!0x1;return _0xc460ef=>{const _0x1a3692=_0x3680;_0x266263[_0x1a3692(0x221)](_0xc460ef),_0x25ded7||(_0x25ded7=!0x0,setTimeout(()=>{const _0x156ac7=_0x1a3692;_0x266263[_0x156ac7(0x2dc)](_0x2be879=>_0x2be879()),_0x266263=[],_0x25ded7=!0x1;}));};};let Be=class extends _0x54976c{constructor(_0x2bcf2d,_0x217dd8,_0x48d814,_0x1d29a9,_0x417e31,_0x230093,_0x28262f,_0x1cf6d8){const _0x4fe897=_0x3fd5ef;super(),_(this,_0x4fe897(0x168),!0x1),_(this,_0x4fe897(0x333),!0x1),_(this,'_cursorInfo$',new _0x35a309(new Map())),_(this,_0x4fe897(0x17b),this[_0x4fe897(0x189)][_0x4fe897(0x2da)]()),_(this,_0x4fe897(0x2c8),new _0x35a309([])),_(this,_0x4fe897(0x2a5),this['_roomMembers$'][_0x4fe897(0x16f)](_0x2b68b5(Fi))),_(this,'_updateLocalCursor',_0x23fefb((_0x580b34,_0x51772f)=>{const _0x43eebd=_0x4fe897,_0x28eae4={'eventID':_0x3c97cb['UPDATE_CURSOR'],'data':{'unitID':this[_0x43eebd(0x205)],'memberID':this[_0x43eebd(0x101)]['getMemberID'](),'selection':_0xb57860(_0x580b34,_0x51772f['range'])}};this[_0x43eebd(0x101)][_0x43eebd(0x27a)](_0x28eae4,this[_0x43eebd(0x205)]);},ki)),(this['unitID']=_0x2bcf2d,this['_session']=_0x217dd8,this[_0x4fe897(0x309)]=_0x48d814,this['_colorAssignService']=_0x1d29a9,this[_0x4fe897(0x286)]=_0x417e31,this[_0x4fe897(0x1a5)]=_0x230093,this[_0x4fe897(0x1b9)]=_0x28262f,this[_0x4fe897(0x1ba)]=_0x1cf6d8);}get[_0x3fd5ef(0x2f3)](){const _0x1e0025=_0x3fd5ef;return this[_0x1e0025(0x189)][_0x1e0025(0x328)]();}get[_0x3fd5ef(0x155)](){const _0x16f315=_0x3fd5ef;return this['_roomMembers$'][_0x16f315(0x328)]();}['dispose'](){const _0x5624be=_0x3fd5ef;super[_0x5624be(0x1f2)](),this[_0x5624be(0x189)][_0x5624be(0x192)](new Map()),this[_0x5624be(0x189)][_0x5624be(0x2c3)](),this[_0x5624be(0x2c8)][_0x5624be(0x192)]([]),this[_0x5624be(0x2c8)][_0x5624be(0x2c3)]();}[_0x3fd5ef(0x243)](){const _0x2ac1df=_0x3fd5ef;this[_0x2ac1df(0x333)]||(this[_0x2ac1df(0x333)]=!0x0,this[_0x2ac1df(0x101)][_0x2ac1df(0x1b7)][_0x2ac1df(0x16f)](_0x5e42cd(this[_0x2ac1df(0x203)]))['subscribe'](_0x3ffe3e=>{const _0x4a5525=_0x2ac1df;_0x3ffe3e===_0x2c6b0c[_0x4a5525(0x1b4)]?this[_0x4a5525(0x20a)]():this[_0x4a5525(0x281)]();}),this[_0x2ac1df(0x101)][_0x2ac1df(0x1ab)][_0x2ac1df(0x16f)](_0x5e42cd(this[_0x2ac1df(0x203)]))['subscribe'](_0x28a82d=>{const _0x33625a=_0x2ac1df,_0x4f1b73=_0x28a82d[_0x33625a(0x218)];_0x4f1b73===_0x3c97cb['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x28a82d),_0x4f1b73===_0x3c97cb['USERS_LEAVE']&&this[_0x33625a(0x156)](_0x28a82d);}),this[_0x2ac1df(0x2ce)](),this[_0x2ac1df(0x346)](this[_0x2ac1df(0x1b9)][_0x2ac1df(0x344)](_0x20a3ae=>{const _0x1b464e=_0x2ac1df;if(this['_online']&&_0x20a3ae['id']===_0x49a9fc['id']&&_0x20a3ae['params'][_0x1b464e(0x160)]===this[_0x1b464e(0x205)]){const _0x1805d9=_0x20a3ae[_0x1b464e(0x1a8)];this[_0x1b464e(0x1f9)](_0x1805d9[_0x1b464e(0x19b)],_0x1805d9[_0x1b464e(0x131)][0x0]);}})));}['_onCursorUpdate'](_0x3c434b){const _0x2da5f7=_0x3fd5ef;var _0x43f158,_0x2cb6f6;const {memberID:_0x4626e3,selection:_0x3be5b9}=_0x3c434b[_0x2da5f7(0x172)],{sheetName:_0x275d9b,range:_0x52eb0c}=_0xfaeb74(_0x3be5b9),_0x41344f={'name':(_0x2cb6f6=(_0x43f158=this[_0x2da5f7(0x286)][_0x2da5f7(0x23a)](this['unitID'],_0x4626e3))==null?void 0x0:_0x43f158[_0x2da5f7(0x21c)])!=null?_0x2cb6f6:_0x2da5f7(0x1f1),'range':this[_0x2da5f7(0x28a)](_0x275d9b,_0x52eb0c),'sheetID':_0x275d9b,'color':this[_0x2da5f7(0x10b)][_0x2da5f7(0x359)](_0x4626e3),'selection':_0x3be5b9},_0x237e35=this[_0x2da5f7(0x2f3)];_0x237e35[_0x2da5f7(0x190)](_0x4626e3,_0x41344f),this[_0x2da5f7(0x189)][_0x2da5f7(0x192)](_0x237e35);}[_0x3fd5ef(0x156)](_0x114f77){const _0x4ae805=_0x3fd5ef,{memberID:_0x2af474}=_0x114f77[_0x4ae805(0x172)],_0x3b80da=this['cursorInfo'];_0x3b80da[_0x4ae805(0x236)](_0x2af474),this[_0x4ae805(0x189)]['next'](_0x3b80da);}[_0x3fd5ef(0x28a)](_0x402a98,_0x5307f4){const _0x461755=_0x3fd5ef;var _0x3be476,_0x5c96cb;const _0x3b975d=(_0x5c96cb=(_0x3be476=this['_univerInstanceService'][_0x461755(0x206)](this[_0x461755(0x205)]))==null?void 0x0:_0x3be476[_0x461755(0x1e1)](_0x402a98))==null?void 0x0:_0x5c96cb[_0x461755(0x2ca)]();return(_0x3b975d==null?void 0x0:_0x3b975d[_0x461755(0x19d)](_0x14afa1=>_0x23054e[_0x461755(0x2eb)](_0x14afa1,_0x5307f4)))||_0x5307f4;}[_0x3fd5ef(0x2ce)](){const _0x3c467d=_0x3fd5ef,_0x3517b5=new _0xe7f0b(),_0x469dfe=Hi(),_0x45e0a2=()=>{const _0x278744=_0x3680;_0x3517b5[_0x278744(0x1f2)]();const _0x3b88ba=(_0x559703,_0x511d2e,_0x53325c,_0x3db840)=>{const _0x4885bf=_0x278744;let _0x4d1d9d=[];switch(_0x559703['id']){case _0x1b53c3[_0x4885bf(0x2ac)]:{_0x4d1d9d=_0x883b5a(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x294)]:{_0x4d1d9d=_0x4292a9(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x106)]:{_0x4d1d9d=_0xf25669(_0x559703,_0x3db840);break;}case _0x1b53c3['InsertRangeMoveDownCommandId']:{_0x4d1d9d=_0x4bffa8(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x259)]:{_0x4d1d9d=_0x86c9c9(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x237)]:{_0x4d1d9d=_0x1af6cf(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x28c)]:{_0x4d1d9d=_0x33eaa9(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x19f)]:{_0x4d1d9d=_0x237126(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x340)]:{_0x4d1d9d=_0x309a40(_0x559703,_0x3db840);break;}}const _0x435e98=_0x3b1589(_0x4d1d9d,_0x3db840),_0x1ef527=this[_0x4885bf(0x2f3)][_0x4885bf(0x295)](_0x511d2e);if(_0x1ef527&&_0x435e98){const _0x57026e={..._0x1ef527,'range':_0x435e98};this[_0x4885bf(0x2f3)][_0x4885bf(0x190)](_0x511d2e,_0x57026e),_0x469dfe(()=>{const _0x155415=_0x4885bf,_0x4adcc7=this[_0x155415(0x1ba)]['registerRefRange'](_0x435e98,_0x222e7f=>(_0x4adcc7[_0x155415(0x1f2)](),_0x3b88ba(_0x222e7f,_0x511d2e,_0x53325c,_0x435e98)));_0x3517b5[_0x155415(0x166)](_0x4adcc7);});}return{'redos':[],'undos':[]};};this[_0x278744(0x2f3)][_0x278744(0x2dc)]((_0x33e9f1,_0x856093)=>{const _0x3f1dfb=_0x278744,{range:_0x5aa036,sheetID:_0x3634b3}=_0x33e9f1,_0x55b334=this[_0x3f1dfb(0x1ba)][_0x3f1dfb(0x347)](_0x5aa036,_0x522fb8=>(_0x55b334[_0x3f1dfb(0x1f2)](),_0x3b88ba(_0x522fb8,_0x856093,_0x3634b3,_0x5aa036)));_0x3517b5[_0x3f1dfb(0x166)](_0x55b334);});};this[_0x3c467d(0x346)](_0x2e8f72(this[_0x3c467d(0x189)][_0x3c467d(0xf9)](()=>{_0x45e0a2();})));}[_0x3fd5ef(0x20a)](){const _0x597960=_0x3fd5ef;var _0x502f4c,_0x1cab9e;if(this[_0x597960(0x168)]=!0x0,((_0x502f4c=this[_0x597960(0x1a5)]['getFocusedUnit']())==null?void 0x0:_0x502f4c[_0x597960(0x151)]())!==this[_0x597960(0x205)])return;const _0x3309df=(_0x1cab9e=this['_injector']['get'](_0x3b49f0)[_0x597960(0x337)]())==null?void 0x0:_0x1cab9e[0x0],_0x338f10=this[_0x597960(0x1a5)][_0x597960(0x199)](_0x1d3b10[_0x597960(0x27e)])[_0x597960(0x287)]();_0x3309df&&_0x338f10&&this[_0x597960(0x1f9)](_0x338f10[_0x597960(0x10d)](),_0x3309df);}[_0x3fd5ef(0x281)](){const _0x5d95fd=_0x3fd5ef;this[_0x5d95fd(0x168)]=!0x1;}};Be=Bi([B(0x2,_0x5be279(_0x4442ad)),B(0x3,_0x5be279(Ke)),B(0x4,_0x5be279(_0x21ac54)),B(0x5,_0x2ad077),B(0x6,_0x52fbf7),B(0x7,_0x5be279(_0x185a02))],Be);var Yi=Object[_0x3fd5ef(0x291)],Wi=(_0x57b96e,_0x4d7357,_0x2c2a40,_0x49842b)=>{for(var _0x327b6d=_0x49842b>0x1?void 0x0:_0x49842b?Yi(_0x4d7357,_0x2c2a40):_0x4d7357,_0x169c11=_0x57b96e['length']-0x1,_0x2835b3;_0x169c11>=0x0;_0x169c11--)(_0x2835b3=_0x57b96e[_0x169c11])&&(_0x327b6d=_0x2835b3(_0x327b6d)||_0x327b6d);return _0x327b6d;},Ce=(_0x4f0212,_0x5753)=>(_0x58e127,_0x494d1e)=>_0x5753(_0x58e127,_0x494d1e,_0x4f0212);let H=class extends _0x54976c{constructor(_0x1d385b,_0x1e7cb7,_0x32a01c){const _0xf4dfda=_0x3fd5ef;super(),_(this,_0xf4dfda(0x17a),new Map()),_(this,'_entityInit$',new _0x227c19()),(this[_0xf4dfda(0x1a5)]=_0x1d385b,this[_0xf4dfda(0x309)]=_0x1e7cb7,this[_0xf4dfda(0x1fb)]=_0x32a01c,this[_0xf4dfda(0x333)]());}[_0x3fd5ef(0x1f2)](){const _0x4dd907=_0x3fd5ef;super[_0x4dd907(0x1f2)](),this[_0x4dd907(0x208)][_0x4dd907(0x2c3)](),this['_entities']['forEach'](_0x1229ac=>_0x1229ac[_0x4dd907(0x1f2)]());}[_0x3fd5ef(0x1d4)](_0x1a6fa2){const _0x3bfb9d=_0x3fd5ef;return this[_0x3bfb9d(0x17a)][_0x3bfb9d(0x143)](_0x1a6fa2)?this['_entities']['get'](_0x1a6fa2)[_0x3bfb9d(0x17b)]:this[_0x3bfb9d(0x208)]['pipe'](_0x3935fb(_0x5701ab=>_0x5701ab[_0x3bfb9d(0x205)]===_0x1a6fa2),_0x4773fc(_0x1c941c=>_0x1c941c[_0x3bfb9d(0x17b)]));}[_0x3fd5ef(0x333)](){const _0x9e34e2=_0x3fd5ef;this['_univerInstanceService'][_0x9e34e2(0x29c)](_0x1d3b10[_0x9e34e2(0x27e)])[_0x9e34e2(0x16f)](_0x5e42cd(this['dispose$']))[_0x9e34e2(0xf9)](async _0x4a6997=>{const _0x3b05e5=_0x9e34e2,_0x572459=_0x4a6997[_0x3b05e5(0x151)](),_0x3acf08=await this[_0x3b05e5(0x317)](_0x572459);this[_0x3b05e5(0x208)]['next'](_0x3acf08),this[_0x3b05e5(0x17a)][_0x3b05e5(0x190)](_0x572459,_0x3acf08);}),this[_0x9e34e2(0x1a5)][_0x9e34e2(0x29c)](_0x1d3b10[_0x9e34e2(0x19e)])[_0x9e34e2(0x16f)](_0x5e42cd(this[_0x9e34e2(0x203)]))[_0x9e34e2(0x16f)](_0x3935fb(_0x4954cb=>!_0x4954cb['getUnitId']()[_0x9e34e2(0x216)]('__')))[_0x9e34e2(0xf9)](async _0x54ffb7=>{const _0x57e4f3=_0x9e34e2,_0x26112d=_0x54ffb7['getUnitId'](),_0x5cdf91=await this[_0x57e4f3(0x148)](_0x26112d);this[_0x57e4f3(0x208)][_0x57e4f3(0x192)](_0x5cdf91),this[_0x57e4f3(0x17a)]['set'](_0x26112d,_0x5cdf91);}),_0xa1f736(this[_0x9e34e2(0x1a5)][_0x9e34e2(0x32f)](_0x1d3b10[_0x9e34e2(0x19e)]),this[_0x9e34e2(0x1a5)]['getTypeOfUnitDisposed$'](_0x1d3b10['UNIVER_SHEET']))[_0x9e34e2(0x16f)](_0x5e42cd(this['dispose$']))['subscribe'](_0x2c7296=>{const _0x89f8b=_0x9e34e2,_0x393ff4=_0x2c7296['getUnitId'](),_0x55aae7=this['_entities']['get'](_0x393ff4);_0x55aae7&&(_0x55aae7['dispose'](),this[_0x89f8b(0x17a)][_0x89f8b(0x236)](_0x393ff4));});}async[_0x3fd5ef(0x317)](_0x304cbf){const _0x1286af=_0x3fd5ef,_0x29ab94=await this[_0x1286af(0x1fb)][_0x1286af(0x222)](_0x304cbf),_0x4258fe=this['_injector'][_0x1286af(0x2db)](Be,_0x304cbf,_0x29ab94);return _0x4258fe[_0x1286af(0x243)](),_0x4258fe;}async['_startDocCollabCursor'](_0x3f6baf){const _0x1e87ea=_0x3fd5ef,_0x2a7fb9=await this[_0x1e87ea(0x1fb)][_0x1e87ea(0x222)](_0x3f6baf),_0x251c7b=this['_injector'][_0x1e87ea(0x2db)](xe,_0x3f6baf,_0x2a7fb9);return _0x251c7b[_0x1e87ea(0x243)](),_0x251c7b;}};H=Wi([Ce(0x0,_0x2ad077),Ce(0x1,_0x5be279(_0x4442ad)),Ce(0x2,_0x5be279(_0x4b2370))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x12d7ff,_0x308f01){const _0x5773d2=_0x3fd5ef;let {radius:_0xf4e4ca,width:_0x431aae,height:_0x5c0c8b}=_0x308f01;_0xf4e4ca=_0xf4e4ca!=null?_0xf4e4ca:0x0,_0x431aae=_0x431aae!=null?_0x431aae:0x1e,_0x5c0c8b=_0x5c0c8b!=null?_0x5c0c8b:0x1e;let _0x4923b3=0x0,_0x2cc227=0x0,_0xea909=0x0;_0x4923b3=_0x2cc227=_0xea909=Math['min'](_0xf4e4ca,_0x431aae/0x2,_0x5c0c8b/0x2),_0x12d7ff[_0x5773d2(0x1ac)](),_0x12d7ff[_0x5773d2(0x2fe)](_0x4923b3,0x0),_0x12d7ff['lineTo'](_0x431aae-_0x2cc227,0x0),_0x12d7ff[_0x5773d2(0x12d)](_0x431aae-_0x2cc227,_0x2cc227,_0x2cc227,Math['PI']*0x3/0x2,0x0,!0x1),_0x12d7ff[_0x5773d2(0x2e8)](_0x431aae,_0x5c0c8b-_0xea909),_0x12d7ff[_0x5773d2(0x12d)](_0x431aae-_0xea909,_0x5c0c8b-_0xea909,_0xea909,0x0,Math['PI']/0x2,!0x1),_0x12d7ff['lineTo'](0x0,_0x5c0c8b),_0x12d7ff['lineTo'](0x0,_0x4923b3),_0x12d7ff['arc'](_0x4923b3,_0x4923b3,_0x4923b3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x12d7ff[_0x5773d2(0x219)](),_0x308f01[_0x5773d2(0x1be)]&&(_0x12d7ff[_0x5773d2(0x343)](),_0x12d7ff[_0x5773d2(0x161)]=_0x308f01['fill'],_0x308f01[_0x5773d2(0x25e)]===_0x5773d2(0x1e3)?_0x12d7ff[_0x5773d2(0x1be)]('evenodd'):_0x12d7ff[_0x5773d2(0x1be)](),_0x12d7ff['restore']());}class ve extends _0x112b79{constructor(_0x515a39,_0x46977e){const _0x124241=_0x3fd5ef;super(_0x515a39,_0x46977e),_(this,_0x124241(0x31e)),_(this,'text'),(this['color']=_0x46977e==null?void 0x0:_0x46977e[_0x124241(0x31e)],this[_0x124241(0x24c)]=_0x46977e==null?void 0x0:_0x46977e[_0x124241(0x24c)]);}static[_0x3fd5ef(0x1cb)](_0x59d9af,_0x558ebf){const _0x444a1a=_0x3fd5ef,{text:_0x4e9907,color:_0x1ccbab}=_0x558ebf;_0x59d9af[_0x444a1a(0x343)](),_0x59d9af['font']=_0x444a1a(0x1a2);const _0x135457=_0x59d9af[_0x444a1a(0x16b)](_0x4e9907)[_0x444a1a(0x1b3)],_0x3ad710=Math['min'](_0x135457+0x2*Re,at);ji(_0x59d9af,{'height':Q,'radius':0x4,'width':_0x3ad710,'fill':_0x1ccbab}),_0x59d9af[_0x444a1a(0x161)]='#FFF';const _0x219ae1=Re,_0x4c2e6f=Q-Vi,_0x5e40bf=at-0x2*Re;if(_0x135457>_0x5e40bf){let _0x206c82='',_0x5382a8=0x0;for(const _0x2e7e6a of _0x4e9907){const _0x33bac6=_0x59d9af[_0x444a1a(0x16b)](_0x2e7e6a)['width'];if(_0x5382a8+_0x33bac6<=_0x5e40bf-_0x59d9af[_0x444a1a(0x16b)](_0x444a1a(0x2a7))['width'])_0x206c82+=_0x2e7e6a,_0x5382a8+=_0x33bac6;else{_0x206c82+='...';break;}}_0x59d9af[_0x444a1a(0x238)](_0x206c82,_0x219ae1,_0x4c2e6f);}else _0x59d9af[_0x444a1a(0x238)](_0x4e9907,_0x219ae1,_0x4c2e6f);_0x59d9af['restore']();}[_0x3fd5ef(0x34a)](_0x119130){const _0x39e613=_0x3fd5ef;ve[_0x39e613(0x1cb)](_0x119130,this);}}const De='collab-text-anchor-',Xi=_0x3fd5ef(0x349),Gi=_0x3fd5ef(0x14b),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3fd5ef(0x103);class ct{constructor(_0x49dc6b,_0x3bcd80,_0x54cdbe,_0x7003ba){const _0x4b38ad=_0x3fd5ef;_(this,_0x4b38ad(0x1e9),[]),_(this,_0x4b38ad(0x245),null),_(this,_0x4b38ad(0x325),null),_(this,_0x4b38ad(0x285),null),_(this,_0x4b38ad(0x2bc),null),_(this,_0x4b38ad(0x2ec),null),(this[_0x4b38ad(0x28f)]=_0x49dc6b,this[_0x4b38ad(0x320)]=_0x3bcd80,this[_0x4b38ad(0x246)]=_0x54cdbe,this[_0x4b38ad(0x319)]=_0x7003ba,this[_0x4b38ad(0x1f4)]());}set['_hover'](_0x37ce89){const _0x11bed3=_0x3fd5ef;_0x37ce89?(this[_0x11bed3(0x285)]&&this[_0x11bed3(0x285)][_0x11bed3(0x23b)](),this[_0x11bed3(0x325)]&&this[_0x11bed3(0x325)][_0x11bed3(0x20f)]()):(this[_0x11bed3(0x285)]&&this[_0x11bed3(0x285)][_0x11bed3(0x20f)](),this['_textBubble']&&this[_0x11bed3(0x325)][_0x11bed3(0x23b)]());}[_0x3fd5ef(0x1f2)](){const _0x5bd1b5=_0x3fd5ef;for(const _0x4b83af of this[_0x5bd1b5(0x1e9)])_0x4b83af[_0x5bd1b5(0x1f2)]();this[_0x5bd1b5(0x325)]&&this[_0x5bd1b5(0x325)][_0x5bd1b5(0x1f2)](),this[_0x5bd1b5(0x285)]&&this['_anchorDot'][_0x5bd1b5(0x1f2)](),this['_anchor']&&this[_0x5bd1b5(0x245)][_0x5bd1b5(0x1f2)](),this[_0x5bd1b5(0x2ec)]&&this[_0x5bd1b5(0x2ec)]();}[_0x3fd5ef(0x1f4)](){const _0x58f36d=_0x3fd5ef;var _0x2896af;const {_docSkeleton:_0x457c0f,_document:_0x434d7e}=this,{color:_0x2f92ee,name:_0x215493,ranges:_0x36f07c}=this[_0x58f36d(0x28f)],_0x3c5f52=_0x434d7e[_0x58f36d(0x123)](),{docsLeft:_0x37f149,docsTop:_0x18a6b9}=_0x3c5f52,_0xc4510d=new _0x5e5b38(_0x3c5f52,_0x457c0f);for(const {startOffset:_0x48ad60,endOffset:_0x1d949b,rangeType:_0x2fdc3e,segmentId:_0x1a72f5,segmentPage:_0x4fc6b9,collapsed:_0x1900eb,isActive:_0x5ed2af}of _0x36f07c){const _0x2bb1a6=_0x457c0f[_0x58f36d(0x1f5)](_0x48ad60,!0x0,_0x1a72f5,_0x4fc6b9);let _0x98a09f=_0x457c0f[_0x58f36d(0x1f5)](_0x1d949b,!0x0,_0x1a72f5,_0x4fc6b9);if(_0x98a09f==null&&(_0x98a09f=_0x457c0f['findNodePositionByCharIndex'](_0x1d949b-0x1,!0x1,_0x1a72f5,_0x4fc6b9)),_0x5ed2af){const {contentBoxPointGroup:_0x2fa14b}=_0xc4510d[_0x58f36d(0x181)](_0x98a09f,_0x98a09f);if(_0x2fa14b['length']===0x0)continue;this[_0x58f36d(0x212)](_0x2f92ee,_0x2fa14b,_0x37f149,_0x18a6b9,_0x215493),this[_0x58f36d(0x2ec)]=this[_0x58f36d(0x1bc)]();}if(_0x2bb1a6&&_0x98a09f){if(_0x2fdc3e===_0x4944de['RECT']){const _0x48ad0c=new _0x1fc4d2(_0x3c5f52,_0x457c0f),{pointGroup:_0x5aefaa}=(_0x2896af=_0x48ad0c[_0x58f36d(0x181)](_0x2bb1a6,_0x98a09f))!=null?_0x2896af:{};if(_0x5aefaa==null||_0x5aefaa['length']===0x0)continue;this[_0x58f36d(0x2fc)](_0x2f92ee,_0x5aefaa,_0x37f149,_0x18a6b9);}else{if(!_0x1900eb){const {borderBoxPointGroup:_0x35ef42}=_0xc4510d[_0x58f36d(0x181)](_0x2bb1a6,_0x98a09f);if(_0x35ef42['length']===0x0)continue;this[_0x58f36d(0x2b3)](_0x2f92ee,_0x35ef42,_0x37f149,_0x18a6b9);}}}}}[_0x3fd5ef(0x212)](_0x5af18b,_0x1da5fa,_0x407f48,_0x56f3ff,_0x6d4c5){const _0x29a1bf=_0x3fd5ef,_0x9afd87=this[_0x29a1bf(0x126)](_0x1da5fa),{left:_0x249b74,top:_0x2dced1,height:_0x589fb9}=_0x9afd87,_0x1bf6e0=this[_0x29a1bf(0x241)](),_0x2f63aa=zi/_0x1bf6e0,_0x366007=new _0x4403cb(De+_0xba23d8(z),{'left':_0x249b74+_0x407f48-_0x2f63aa,'top':_0x2dced1+_0x56f3ff,'height':_0x589fb9,'width':Ki,'fill':_0x5af18b||_0x444fcb(_0x3b0bff[_0x29a1bf(0x223)],0x0),'strokeWidth':_0x2f63aa,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x366007,this[_0x29a1bf(0x320)][_0x29a1bf(0x249)](_0x366007,_0x95aa8b);const _0x416d28=new _0x4403cb(De+_0xba23d8(z),{'left':_0x249b74+_0x407f48-_0x2f63aa,'top':_0x2dced1+_0x56f3ff-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x5af18b||_0x444fcb(_0x3b0bff[_0x29a1bf(0x223)],0x0),'strokeWidth':0x0,'stroke':_0x5af18b||_0x444fcb(_0x3b0bff[_0x29a1bf(0x223)],0x0),'evented':!0x1});this['_anchorDot']=_0x416d28,this[_0x29a1bf(0x320)][_0x29a1bf(0x249)](_0x416d28,_0x95aa8b);const _0x401ad8=new ve(De+_0xba23d8(z),{'left':_0x249b74+_0x407f48-_0x2f63aa,'top':_0x2dced1+_0x56f3ff-Q,'text':_0x6d4c5,'color':_0x5af18b});this[_0x29a1bf(0x325)]=_0x401ad8,this[_0x29a1bf(0x320)][_0x29a1bf(0x249)](_0x401ad8,_0x95aa8b),this[_0x29a1bf(0x2df)]=!0x1;}[_0x3fd5ef(0x1bc)](){const _0x52300d=_0x3fd5ef,_0x124c3d=this['_anchor'][_0x52300d(0x307)][_0x52300d(0x11f)](()=>{const _0xbe7f37=_0x52300d;this[_0xbe7f37(0x2df)]=!0x0;}),_0x1e9b07=this[_0x52300d(0x245)][_0x52300d(0x28b)][_0x52300d(0x11f)](()=>{const _0x4c43cb=_0x52300d;this[_0x4c43cb(0x2bc)]&&clearTimeout(this[_0x4c43cb(0x2bc)]),this[_0x4c43cb(0x2bc)]=setTimeout(()=>{const _0x20490e=_0x4c43cb;this[_0x20490e(0x2df)]=!0x1;},0x7d0);});return()=>{const _0x1148dd=_0x52300d;_0x124c3d[_0x1148dd(0x1de)](),_0x1e9b07[_0x1148dd(0x1de)]();};}['_drawTextRange'](_0x419b72,_0x344579,_0x11d5b4,_0x22cf7d){const _0x303e71=_0x3fd5ef,_0x4e552a=new _0x4ee345(_0x419b72)[_0x303e71(0x29b)](0.2)['toRgbString'](),_0x9fac1a=new _0x138f58(Xi+_0xba23d8(z),{'pointsGroup':_0x344579,'fill':_0x4e552a||_0x444fcb(_0x3b0bff[_0x303e71(0x223)],0.2),'left':_0x11d5b4,'top':_0x22cf7d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x303e71(0x221)](_0x9fac1a),this[_0x303e71(0x320)][_0x303e71(0x249)](_0x9fac1a,_0x95aa8b);}[_0x3fd5ef(0x2fc)](_0x2aa4ce,_0xe4e8ce,_0x444d4a,_0x5da4fb){const _0x196ab4=_0x3fd5ef,_0xc03481=new _0x4ee345(_0x2aa4ce)[_0x196ab4(0x29b)](0.2)[_0x196ab4(0x1fa)](),_0x3952de=new _0x138f58(Gi+_0xba23d8(z),{'pointsGroup':_0xe4e8ce,'fill':_0xc03481||_0x444fcb(_0x3b0bff[_0x196ab4(0x223)],0.2),'left':_0x444d4a,'top':_0x5da4fb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x196ab4(0x1e9)][_0x196ab4(0x221)](_0x3952de),this[_0x196ab4(0x320)][_0x196ab4(0x249)](_0x3952de,_0x95aa8b);}[_0x3fd5ef(0x126)](_0x2f2404){const _0x223c50=_0x2f2404[0x0],_0x10987a=_0x223c50[0x0],_0x30fa66=_0x223c50[0x2],{x:_0x268b4f,y:_0x2d0730}=_0x10987a,{x:_0x25bc4b,y:_0x3e878b}=_0x30fa66;return{'left':_0x268b4f,'top':_0x2d0730,'width':_0x25bc4b-_0x268b4f,'height':_0x3e878b-_0x2d0730};}[_0x3fd5ef(0x241)](){const _0x3b0d56=_0x3fd5ef,{scaleX:_0x53234b,scaleY:_0x359709}=this[_0x3b0d56(0x320)][_0x3b0d56(0x265)]();return Math[_0x3b0d56(0x321)](_0x53234b,_0x359709);}}var Zi=Object[_0x3fd5ef(0x291)],Qi=(_0x28367e,_0x1875c5,_0x4f5085,_0x7e178b)=>{const _0x3ec2e4=_0x3fd5ef;for(var _0x5b3443=_0x7e178b>0x1?void 0x0:_0x7e178b?Zi(_0x1875c5,_0x4f5085):_0x1875c5,_0x24b4a5=_0x28367e[_0x3ec2e4(0x10c)]-0x1,_0x4f4be9;_0x24b4a5>=0x0;_0x24b4a5--)(_0x4f4be9=_0x28367e[_0x24b4a5])&&(_0x5b3443=_0x4f4be9(_0x5b3443)||_0x5b3443);return _0x5b3443;},ie=(_0x17a992,_0x55e5fe)=>(_0x3c0e1c,_0xec51bf)=>_0x55e5fe(_0x3c0e1c,_0xec51bf,_0x17a992);let Fe=class extends _0x54976c{constructor(_0x58bdf4,_0x3e36c6,_0x90f470,_0x4ebe01,_0x4f1796){const _0x814174=_0x3fd5ef;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x814174(0x2f0)]=_0x58bdf4,this[_0x814174(0x316)]=_0x3e36c6,this[_0x814174(0x1e5)]=_0x90f470,this[_0x814174(0x1b9)]=_0x4ebe01,this[_0x814174(0x228)]=_0x4f1796,this[_0x814174(0x333)]());}['_init'](){const _0x375328=_0x3fd5ef,_0x5b762c=this[_0x375328(0x2f0)]['unitId'],_0x44eb38=this[_0x375328(0x316)];this[_0x375328(0x346)](_0x41494d([this[_0x375328(0x1e5)][_0x375328(0x1d4)](_0x5b762c),this[_0x375328(0x228)][_0x375328(0x2f1)]])[_0x375328(0x16f)](_0x3ecce4(([_0x4b2b85,_0xdf2b12])=>({'skeleton':_0x44eb38[_0x375328(0x227)](),'cursors':[..._0x4b2b85[_0x375328(0x23d)]()][_0x375328(0x26b)](_0x25ec59=>({..._0x25ec59,'color':this['_themeService'][_0x375328(0x1d5)](_0x25ec59[_0x375328(0x31e)])}))})))[_0x375328(0xf9)](_0x18c05a=>{const _0xb21d49=_0x375328;if(this[_0xb21d49(0x33c)](),_0x18c05a){const {skeleton:_0x5d8766,cursors:_0x4598d6}=_0x18c05a;this[_0xb21d49(0x2c2)](_0x5d8766,_0x4598d6);}})),this[_0x375328(0x118)](),this[_0x375328(0x272)]();}[_0x3fd5ef(0x2c2)](_0x148853,_0x34d654){const _0x1b2b81=_0x3fd5ef,{scene:_0x56fb5c,mainComponent:_0x202815}=this[_0x1b2b81(0x2f0)],_0x23c98e=_0x34d654['map'](_0x508ed2=>new ct(_0x508ed2,_0x56fb5c,_0x148853,_0x202815));this[_0x1b2b81(0x312)]=_0x23c98e,this[_0x1b2b81(0x267)]=_0x34d654;}[_0x3fd5ef(0x29d)](){const _0x287812=_0x3fd5ef;this[_0x287812(0x33c)]();const {scene:_0x1a399f,mainComponent:_0x5b4402}=this[_0x287812(0x2f0)],_0x201859=this[_0x287812(0x316)][_0x287812(0x227)](),_0x13d62f=this[_0x287812(0x267)][_0x287812(0x288)](_0x27192f=>new ct(_0x27192f,_0x1a399f,_0x201859,_0x5b4402));this['_cursorShapes']=_0x13d62f;}[_0x3fd5ef(0x33c)](){const _0x2c85e1=_0x3fd5ef;this[_0x2c85e1(0x312)][_0x2c85e1(0x2dc)](_0x84f7b8=>_0x84f7b8['dispose']()),this[_0x2c85e1(0x312)]=[];}[_0x3fd5ef(0x272)](){const _0x475761=_0x3fd5ef,_0x50c962=[_0xf95019['id']];this[_0x475761(0x346)](this[_0x475761(0x1b9)][_0x475761(0x344)](_0x2c31f6=>{const _0x20119d=_0x475761;_0x50c962[_0x20119d(0x139)](_0x2c31f6['id'])&&_0x2c31f6['params'][_0x20119d(0x160)]===this[_0x20119d(0x2f0)][_0x20119d(0x160)]&&this[_0x20119d(0x29d)]();}));}['_initResize'](){const _0x4ae668=_0x3fd5ef;this[_0x4ae668(0x346)](_0xe44c5(this['_context'][_0x4ae668(0x2c4)][_0x4ae668(0x2e3)])[_0x4ae668(0x16f)](_0x254313(_0x332b28=>_0x332b28['type']===_0x723e00['resize']),_0x6ae5f3(0x10))['subscribe'](()=>{const _0x4082b9=_0x4ae668;this[_0x4082b9(0x29d)]();}));}};Fe=Qi([ie(0x1,_0x5be279(_0x168684)),ie(0x2,_0x5be279(H)),ie(0x3,_0x52fbf7),ie(0x4,_0x5be279(_0x27077f))],Fe);const qi=0x1,en=1.5;class tn extends _0x112b79{constructor(_0x4667a4,_0x4e5c29){const _0x375452=_0x3fd5ef;super(_0x4667a4,_0x4e5c29),_(this,'_color'),_(this,'_hovered',!0x1),_(this,'_range'),_(this,'_name',''),_(this,'_labelPosition',_0x375452(0x1b6)),_(this,_0x375452(0x355)),(_0x4e5c29&&this['setShapeProps'](_0x4e5c29),this[_0x375452(0x307)][_0x375452(0x11f)](()=>this[_0x375452(0x23c)]({'hovered':!0x0})),this['onPointerLeave$'][_0x375452(0x11f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3fd5ef(0x23c)](_0x3ad60e){const _0x16fabf=_0x3fd5ef;var _0x4cc861,_0x2978c5,_0x502576,_0x2ff8d8,_0x430721,_0x477f99;this[_0x16fabf(0x262)]=(_0x4cc861=_0x3ad60e['color'])!=null?_0x4cc861:this[_0x16fabf(0x262)],this[_0x16fabf(0x23e)]=(_0x2978c5=_0x3ad60e[_0x16fabf(0x1ca)])!=null?_0x2978c5:this[_0x16fabf(0x23e)],this['_range']=(_0x502576=_0x3ad60e['range'])!=null?_0x502576:this[_0x16fabf(0x34b)],this['_name']=(_0x2ff8d8=_0x3ad60e['name'])!=null?_0x2ff8d8:this[_0x16fabf(0x2cd)],this[_0x16fabf(0x31d)]=(_0x430721=_0x3ad60e[_0x16fabf(0x273)])!=null?_0x430721:this[_0x16fabf(0x31d)],this[_0x16fabf(0x355)]=(_0x477f99=_0x3ad60e[_0x16fabf(0x310)])!=null?_0x477f99:this[_0x16fabf(0x355)],this[_0x16fabf(0x2fb)]({'width':_0x3ad60e[_0x16fabf(0x1b3)],'height':_0x3ad60e[_0x16fabf(0x34e)]});}[_0x3fd5ef(0x16d)](_0x5e4f9c){const _0x326b18=_0x3fd5ef,{row:_0x3efb93,column:_0x5f2954}=_0x5e4f9c;if(_0x3efb93>=this['_range'][_0x326b18(0x1f7)]&&_0x3efb93<=this['_range']['endRow']&&_0x5f2954>=this[_0x326b18(0x34b)][_0x326b18(0x1d9)]&&_0x5f2954<=this[_0x326b18(0x34b)][_0x326b18(0x30f)]){this[_0x326b18(0x23c)]({'hovered':!0x0});return;}this[_0x326b18(0x23c)]({'hovered':!0x1});}['triggerDblclick'](_0xf96ed3){return!0x1;}[_0x3fd5ef(0x34a)](_0x49b5f5){const _0x19a090=_0x3fd5ef;_0x4403cb[_0x19a090(0x1cb)](_0x49b5f5,{'width':this[_0x19a090(0x1b3)],'height':this[_0x19a090(0x34e)],'strokeWidth':en,'stroke':this[_0x19a090(0x262)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x49b5f5[_0x19a090(0x343)](),_0x49b5f5[_0x19a090(0xfa)](0x1,0x0,0x0,0x1,this[_0x19a090(0x1b3)],this[_0x19a090(0x31d)]===_0x19a090(0x299)?0x0:-Q),ve['drawWith'](_0x49b5f5,{'text':this[_0x19a090(0x2cd)],'color':this['_color']}),_0x49b5f5[_0x19a090(0x10f)]());}}var sn=Object[_0x3fd5ef(0x291)],nn=(_0x4c982b,_0x153115,_0xf2aab1,_0x26660e)=>{for(var _0x5e878d=_0x26660e>0x1?void 0x0:_0x26660e?sn(_0x153115,_0xf2aab1):_0x153115,_0x4ec001=_0x4c982b['length']-0x1,_0x146e0a;_0x4ec001>=0x0;_0x4ec001--)(_0x146e0a=_0x4c982b[_0x4ec001])&&(_0x5e878d=_0x146e0a(_0x5e878d)||_0x5e878d);return _0x5e878d;},be=(_0x28f49e,_0x1f4982)=>(_0x124323,_0x54f19b)=>_0x1f4982(_0x124323,_0x54f19b,_0x28f49e);const rn=0x1389;let ke=class extends _0x54976c{constructor(_0x31bbb3,_0x57d414,_0x4970d6,_0x5d29a4){const _0x13edf6=_0x3fd5ef;super(),_(this,_0x13edf6(0x267),new Set()),_(this,_0x13edf6(0x1c3),null),(this[_0x13edf6(0x2f0)]=_0x31bbb3,this['_sheetSkeletonManagerService']=_0x57d414,this[_0x13edf6(0x1e5)]=_0x4970d6,this[_0x13edf6(0x228)]=_0x5d29a4,this[_0x13edf6(0x333)]());}[_0x3fd5ef(0x333)](){const _0x3fa556=_0x3fd5ef;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3fa556(0x16f)](_0x51cdc5(this[_0x3fa556(0x203)]),_0x5769c7(_0x489c9d=>{const _0x3c9061=_0x3fa556;if(_0x489c9d){const _0x49e137=_0x489c9d[_0x3c9061(0x22d)];return _0x41494d(this[_0x3c9061(0x1e5)][_0x3c9061(0x1d4)](this[_0x3c9061(0x2f0)]['unitId']),this[_0x3c9061(0x228)]['currentTheme$'])[_0x3c9061(0x16f)](_0x3ecce4(([_0x2ab1fa,_0x2da5c4])=>{const _0x1f2781=_0x3c9061,_0x302f64=new Map();return _0x2ab1fa[_0x1f2781(0x2dc)]((_0x9eb466,_0x23f34d)=>{const _0xa8752=_0x1f2781;if(_0x9eb466['sheetID']===_0x49e137){const _0x13f514={..._0x9eb466};_0x13f514['color']=this[_0xa8752(0x228)][_0xa8752(0x1d5)](_0x9eb466[_0xa8752(0x31e)]),_0x302f64['set'](_0x23f34d,_0x13f514);}}),{'skeleton':_0x489c9d,'cursors':_0x302f64};}));}return _0x35ec2a({'skeleton':null,'cursors':new Map()});}))[_0x3fa556(0xf9)](({skeleton:_0x362623,cursors:_0x58f6ce})=>{const _0x30d44c=_0x3fa556;this[_0x30d44c(0x33c)](),_0x362623&&this[_0x30d44c(0x2c2)](_0x362623,_0x58f6ce);}),this[_0x3fa556(0x2a6)]['currentSkeleton$'][_0x3fa556(0xf9)](_0x8ff5ad=>{const _0x4e3440=_0x3fa556;if(_0x8ff5ad==null)return;const {skeleton:_0x3bd776}=_0x8ff5ad,{scene:_0x387a30}=this[_0x4e3440(0x2f0)];_0x387a30['onPointerMove$'][_0x4e3440(0x11f)](_0x23fefb(_0x87826d=>{const _0x6a33d5=_0x4e3440;var _0x519f16,_0x4b82ce;const {offsetX:_0x275c1d,offsetY:_0x11ccba}=_0x87826d,{x:_0x50b1f8,y:_0x133f2c}=_0x387a30[_0x6a33d5(0x15a)](_0x1244fe[_0x6a33d5(0x2c5)]([_0x275c1d,_0x11ccba])),{scaleX:_0x2ed3b4,scaleY:_0x923999}=_0x387a30['getAncestorScale'](),_0x4c4df1=_0x387a30[_0x6a33d5(0x1ea)](_0x2ecadb['VIEW_MAIN']),_0x4b788f=_0x387a30[_0x6a33d5(0x2a4)](_0x1244fe[_0x6a33d5(0x2c5)]([_0x50b1f8,_0x133f2c]),_0x4c4df1),_0x4abd13=_0x3bd776[_0x6a33d5(0x191)](_0x275c1d,_0x11ccba,_0x2ed3b4,_0x923999,_0x4b788f);((_0x519f16=this[_0x6a33d5(0x1c3)])==null?void 0x0:_0x519f16[_0x6a33d5(0x32c)])===_0x4abd13[_0x6a33d5(0x32c)]&&((_0x4b82ce=this['_lastPointer'])==null?void 0x0:_0x4b82ce['row'])===_0x4abd13[_0x6a33d5(0x1a9)]||this[_0x6a33d5(0x267)][_0x6a33d5(0x2dc)](_0x2c2742=>{const _0x5aea4e=_0x6a33d5;_0x2c2742[_0x5aea4e(0x16d)](_0x4abd13);});},0x64));});}[_0x3fd5ef(0x2c2)](_0x5025a8,_0x4e5435){const _0x545094=_0x3fd5ef;var _0x4014da;const _0x1196fd=(_0x4014da=this[_0x545094(0x2a6)][_0x545094(0x253)]())==null?void 0x0:_0x4014da[_0x545094(0x1a3)];if(!_0x1196fd)return;const _0x4f166c=this['_getSheetObject']();if(!_0x4f166c)return;this[_0x545094(0x267)][_0x545094(0x2dc)](_0x57d210=>{const _0x3de79a=_0x545094;_0x57d210[_0x3de79a(0x1e6)]();});const {scene:_0xee2e25}=_0x4f166c,_0x45fd4c=on(Array[_0x545094(0x136)](_0x4e5435['values']()))[_0x545094(0x288)](_0x2d9a1e=>{const _0x4641b6=_0x545094,{color:_0x28aebc,range:_0x431536,name:_0x4190c3,selection:_0xbf3500,sheetID:_0x452483}=_0x2d9a1e,{startColumn:_0x58b31e,startRow:_0x3856c2,endColumn:_0x68cff2,endRow:_0x1e2377}=_0x431536,_0x545428=_0x3294e3(_0x3856c2,_0x58b31e,_0xee2e25,_0x1196fd),_0x2b89a9=_0x3294e3(_0x1e2377,_0x68cff2,_0xee2e25,_0x1196fd),{columnHeaderHeightAndMarginTop:_0x121f6c}=_0x1196fd,{startX:_0x1174cc,startY:_0x3773f1}=_0x545428,{endX:_0x3209e5,endY:_0x306a55}=_0x2b89a9,_0x1a267e=_0x3209e5-_0x1174cc,_0x16da17=_0x306a55-_0x3773f1,_0x22d61d={'labelPosition':_0x3773f1-_0x121f6c>=Q?_0x4641b6(0x1b6):_0x4641b6(0x299),'sheetID':_0x452483,'range':_0x431536,'color':_0x28aebc,'name':_0x4190c3,'selection':_0xbf3500,'left':_0x1174cc,'top':_0x3773f1,'width':_0x1a267e,'height':_0x16da17,'evented':!0x1,'zIndex':rn};return new tn(_0x4190c3,_0x22d61d);});_0xee2e25['addObjects'](_0x45fd4c,qi),this[_0x545094(0x267)]=new Set(_0x45fd4c);}[_0x3fd5ef(0x33c)](){const _0x71048c=_0x3fd5ef;var _0x2b0f4c;(_0x2b0f4c=this[_0x71048c(0x267)])==null||_0x2b0f4c[_0x71048c(0x2dc)](_0x519d0e=>_0x519d0e[_0x71048c(0x1f2)]());}[_0x3fd5ef(0x25a)](){const _0x4b7081=_0x3fd5ef;return _0x59fce6(this[_0x4b7081(0x2f0)]['unit'],this[_0x4b7081(0x2f0)]);}};ke=nn([be(0x1,_0x5be279(_0x103263)),be(0x2,_0x5be279(H)),be(0x3,_0x5be279(_0x27077f))],ke);function on(_0x1d4bfe){const _0x1ddd05=_0x3fd5ef,_0x37b73b=new Map();return _0x1d4bfe['forEach'](_0x4bb2aa=>{const _0x270d5a=_0x3680;if(_0x37b73b['has'](_0x4bb2aa[_0x270d5a(0x2af)])){const _0xfbf8ba=_0x37b73b[_0x270d5a(0x295)](_0x4bb2aa['selection']);_0xfbf8ba[_0x270d5a(0x21c)]+=',\x20'+_0x4bb2aa[_0x270d5a(0x21c)];}else _0x37b73b[_0x270d5a(0x190)](_0x4bb2aa[_0x270d5a(0x2af)],_0x4bb2aa);}),Array[_0x1ddd05(0x136)](_0x37b73b['values']());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x403cc3,_0x202d4d,_0x541a43,_0x3d2bdd)=>{const _0x5c735d=_0x3fd5ef;for(var _0x1485d3=_0x3d2bdd>0x1?void 0x0:_0x3d2bdd?an(_0x202d4d,_0x541a43):_0x202d4d,_0x43ed89=_0x403cc3[_0x5c735d(0x10c)]-0x1,_0x177ca6;_0x43ed89>=0x0;_0x43ed89--)(_0x177ca6=_0x403cc3[_0x43ed89])&&(_0x1485d3=_0x177ca6(_0x1485d3)||_0x1485d3);return _0x1485d3;},F=(_0x11ac83,_0x5bbaff)=>(_0x462a2d,_0x4dc489)=>_0x5bbaff(_0x462a2d,_0x4dc489,_0x11ac83);let _e=class extends _0x4f00b7{constructor(_0x51ff37,_0x46e624,_0x50755b,_0x4fdd76,_0x55c44a,_0x28b20b){const _0x3b671a=_0x3fd5ef;super(),this['_beforeCloseService']=_0x51ff37,this[_0x3b671a(0x209)]=_0x46e624,this[_0x3b671a(0x1a4)]=_0x50755b,this[_0x3b671a(0x13d)]=_0x4fdd76,this[_0x3b671a(0x1cc)]=_0x55c44a,this[_0x3b671a(0x330)]=_0x28b20b,this['_setupBeforeClosingHandler'](),this[_0x3b671a(0x1aa)]();}[_0x3fd5ef(0x113)](){const _0x3fa6a0=_0x3fd5ef;this['disposeWithMe'](this[_0x3fa6a0(0x1ee)][_0x3fa6a0(0x171)](()=>{const _0x49073d=_0x3fa6a0;if(this[_0x49073d(0x209)][_0x49073d(0x33e)][_0x49073d(0x22a)])return this[_0x49073d(0x330)]['t'](_0x49073d(0x2bd));}));}[_0x3fd5ef(0x1aa)](){const _0xaf0d32=_0x3fd5ef;this[_0xaf0d32(0x346)](this[_0xaf0d32(0x1a4)][_0xaf0d32(0x1ab)][_0xaf0d32(0xf9)](_0x51e94d=>{const _0x377254=_0xaf0d32;_0x51e94d['id']===_0x334803[_0x377254(0x1cf)]&&this[_0x377254(0x13d)][_0x377254(0x20f)]({'type':_0x5db869[_0x377254(0x33f)],'content':this[_0x377254(0x330)]['t'](_0x377254(0x1eb))}),_0x51e94d['id']===_0x334803['CLOSE_ROOM']&&this[_0x377254(0x13d)]['show']({'type':_0x5db869['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x51e94d['id']===_0x334803[_0x377254(0x195)]&&this[_0x377254(0x1cc)][_0x377254(0x20f)]({'title':this[_0x377254(0x330)]['t'](_0x377254(0x125)),'content':this[_0x377254(0x330)]['t']('permission.content'),'type':_0x377254(0x232),'duration':0x0}),_0x51e94d['id']===_0x334803['CONFLICT']&&this['_messageService'][_0x377254(0x20f)]({'type':_0x5db869[_0x377254(0x303)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x51e94d[_0x377254(0x172)]+')'}),_0x51e94d['id']===_0x334803['JOIN_ROOM_FAILED']&&this['_messageService'][_0x377254(0x20f)]({'type':_0x5db869['Warning'],'content':this[_0x377254(0x330)]['t'](_0x51e94d['data']||'')}),_0x51e94d['id']===_0x334803[_0x377254(0x2cb)]&&this['_messageService']['show']({'type':_0x5db869[_0x377254(0x33f)],'content':this['_localeService']['t'](_0x377254(0x14a))}),_0x51e94d['id']===_0x334803[_0x377254(0x200)]&&this[_0x377254(0x13d)][_0x377254(0x20f)]({'type':_0x5db869['Error'],'content':this[_0x377254(0x330)]['t'](_0x377254(0x2f9))}),_0x51e94d['id']===_0x334803[_0x377254(0x175)]&&this['_messageService'][_0x377254(0x20f)]({'type':_0x5db869['Error'],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x420154),F(0x1,_0x2d1fcf),F(0x2,_0x5be279(_0x18654a)),F(0x3,_0x968e7c),F(0x4,_0x27058d),F(0x5,_0x5be279(_0xf97bb8))],_e);var _n=Object[_0x3fd5ef(0x291)],ln=(_0x3bc833,_0x4aedda,_0x67a199,_0x1ca166)=>{const _0x2d464f=_0x3fd5ef;for(var _0x102eab=_0x1ca166>0x1?void 0x0:_0x1ca166?_n(_0x4aedda,_0x67a199):_0x4aedda,_0x4a022d=_0x3bc833[_0x2d464f(0x10c)]-0x1,_0x1d984e;_0x4a022d>=0x0;_0x4a022d--)(_0x1d984e=_0x3bc833[_0x4a022d])&&(_0x102eab=_0x1d984e(_0x102eab)||_0x102eab);return _0x102eab;},ne=(_0x2e7728,_0x7d90c6)=>(_0x2cdbb6,_0x24977e)=>_0x7d90c6(_0x2cdbb6,_0x24977e,_0x2e7728);let le=class extends _0x4f00b7{constructor(_0x25857a,_0x4bf358,_0x925b53,_0x17b59a){const _0x1fb072=_0x3fd5ef;super(),_(this,_0x1fb072(0x107)),(this[_0x1fb072(0x309)]=_0x25857a,this[_0x1fb072(0x2e5)]=_0x4bf358,this[_0x1fb072(0x1e8)]=_0x925b53,this[_0x1fb072(0x2de)]=_0x17b59a,this[_0x1fb072(0x333)]());}['_init'](){const _0x30dd8d=_0x3fd5ef;this[_0x30dd8d(0x21f)](),this[_0x30dd8d(0x1b8)](),this[_0x30dd8d(0x210)](),this['_initUserListener']();}[_0x3fd5ef(0x226)](){const _0x5e2cbd=_0x3fd5ef;this[_0x5e2cbd(0x346)](this[_0x5e2cbd(0x2de)][_0x5e2cbd(0x1e2)]['subscribe'](_0x1f9162=>{const _0x5af78b=_0x5e2cbd;this[_0x5af78b(0x107)]=_0x1f9162==null?void 0x0:_0x1f9162[_0x5af78b(0x322)];}));}['_initWindowErrorListener'](){const _0x462929=_0x3fd5ef,_0x4c10b2=_0x3f69c6=>{const _0x46a3ff=_0x3680;var _0x3796d3;this[_0x46a3ff(0x274)]('error',_0x46a3ff(0x11b)+_0x3f69c6['message']+_0x46a3ff(0x1ec)+_0x3f69c6[_0x46a3ff(0x13e)]+':'+_0x3f69c6[_0x46a3ff(0x12c)]+':'+_0x3f69c6[_0x46a3ff(0x22c)]+'\x0a'+(((_0x3796d3=_0x3f69c6['error'])==null?void 0x0:_0x3796d3[_0x46a3ff(0x255)])||''));};window[_0x462929(0x184)]('error',_0x4c10b2),this['disposeWithMe'](()=>{const _0x222504=_0x462929;window['removeEventListener'](_0x222504(0x232),_0x4c10b2);});}[_0x3fd5ef(0x1b8)](){const _0x311cfb=_0x3fd5ef,_0x1c0b96=_0x22b161=>{const _0x5a2dc0=_0x3680;this[_0x5a2dc0(0x274)](_0x5a2dc0(0x232),_0x5a2dc0(0x323)+_0x22b161[_0x5a2dc0(0x326)]);};window[_0x311cfb(0x184)](_0x311cfb(0x12b),_0x1c0b96),this[_0x311cfb(0x346)](()=>{const _0x43a277=_0x311cfb;window[_0x43a277(0x31b)]('unhandledrejection',_0x1c0b96);});}['_monkeyPatchLogService'](){const _0x3c10c1=_0x3fd5ef,_0x6edb29=this[_0x3c10c1(0x1e8)]['error'][_0x3c10c1(0x1d2)](this[_0x3c10c1(0x1e8)]);this[_0x3c10c1(0x1e8)][_0x3c10c1(0x232)]=(..._0x68d0b6)=>{const _0x2bdc7c=_0x3c10c1,_0x2d9100=_0x68d0b6[_0x2bdc7c(0x288)](_0x3d5588=>_0x3d5588 instanceof Error?_0x3d5588[_0x2bdc7c(0x34d)]+'\x0a'+_0x3d5588[_0x2bdc7c(0x255)]:String(_0x3d5588))['join']('\x20');this[_0x2bdc7c(0x274)]('error',_0x2bdc7c(0x2f5)+_0x2d9100),_0x6edb29(..._0x68d0b6);},this['disposeWithMe'](()=>{this['_logService']['error']=_0x6edb29;});}[_0x3fd5ef(0x274)](_0xc81a9e,_0x18383a){const _0x1ea0be=_0x3fd5ef;try{const _0x4b6922={'userId':this[_0x1ea0be(0x107)],'logLabel':_0xc81a9e,'content':_0x18383a};this['_httpService']['post'](_0x1ea0be(0x149),{'body':_0x4b6922})[_0x1ea0be(0x30d)](()=>{});}catch{}}};le=ln([ne(0x0,_0x5be279(_0x4442ad)),ne(0x1,_0x5be279(_0x35064f)),ne(0x2,_0x25626e),ne(0x3,_0x5be279(_0x4b2370))],le);const hn=_0x3fd5ef(0x21d),_t={};var un=Object[_0x3fd5ef(0x291)],dn=(_0x5f09bb,_0x3cf045,_0xafc153,_0x2278b4)=>{const _0x3f39b0=_0x3fd5ef;for(var _0x2edec1=_0x2278b4>0x1?void 0x0:_0x2278b4?un(_0x3cf045,_0xafc153):_0x3cf045,_0x18445b=_0x5f09bb[_0x3f39b0(0x10c)]-0x1,_0x5b3cf5;_0x18445b>=0x0;_0x18445b--)(_0x5b3cf5=_0x5f09bb[_0x18445b])&&(_0x2edec1=_0x5b3cf5(_0x2edec1)||_0x2edec1);return _0x2edec1;},lt=(_0x22a93c,_0x5ec35d)=>(_0x3126dd,_0x247891)=>_0x5ec35d(_0x3126dd,_0x247891,_0x22a93c);let he=class{constructor(_0x36c5a5,_0x3ef72c){const _0x37b122=_0x3fd5ef;this[_0x37b122(0x2d4)]=_0x36c5a5,this[_0x37b122(0x2f2)]=_0x3ef72c;}[_0x3fd5ef(0x2a8)](_0x798b47){const _0xd2f296=_0x3fd5ef;this['_transformUndoRedoStack'](_0x798b47),this[_0xd2f296(0x269)](_0x798b47);}[_0x3fd5ef(0x15d)](_0x3bd12b){const _0xb86616=_0x3fd5ef,{unitID:_0x1d462d}=_0x3bd12b,_0x21ce7e=this[_0xb86616(0x2f2)][_0xb86616(0x1bb)](_0x1d462d)['with'](_0x5c8d42),{redoCache:_0x5b7da4}=_0x21ce7e[_0xb86616(0x318)]();if(_0x5b7da4[_0xb86616(0x10c)]===0x0)return _0x3bd12b;let _0x411edc=_0x2b2135[_0xb86616(0x233)](_0x3bd12b[_0xb86616(0x2ba)][0x0]);for(let _0x13cc15=0x0;_0x13cc15<_0x5b7da4['length'];_0x13cc15++){const _0x350b2b={'id':_0xb86616(0x314),'params':{..._0x5b7da4[_0x13cc15]}},_0x1f6c54=this[_0xb86616(0x2d4)][_0xb86616(0x242)](_0x411edc,_0x350b2b,!0x1);if(_0x3758a8(_0x1f6c54))throw _0x1f6c54[_0xb86616(0x232)];_0x411edc=_0x1f6c54['m1Prime'];}return{..._0x2b2135[_0xb86616(0x233)](_0x3bd12b),'mutations':[_0x411edc]};}[_0x3fd5ef(0x13c)](_0x3695fc){const _0xd8b1ac=_0x3fd5ef,{unitID:_0xd7889d}=_0x3695fc,_0x2a6c92=this[_0xd8b1ac(0x2f2)][_0xd8b1ac(0x1bb)](_0xd7889d)[_0xd8b1ac(0x207)](_0x5c8d42),{undoCache:_0x426010,redoCache:_0x39c5ec}=_0x2a6c92['getUndoRedoMutationParamsCache']();if(_0x426010[_0xd8b1ac(0x10c)]===0x0||_0x39c5ec[_0xd8b1ac(0x10c)]===0x0)return;const _0x1b786c=[],_0x12210c=[];let _0x2bd816=_0x2b2135[_0xd8b1ac(0x233)](_0x3695fc[_0xd8b1ac(0x2ba)][0x0]),_0x202231=_0x2b2135[_0xd8b1ac(0x233)](_0x3695fc[_0xd8b1ac(0x2ba)][0x0]);for(let _0x195d9f=_0x426010[_0xd8b1ac(0x10c)]-0x1;_0x195d9f>=0x0;_0x195d9f--){const _0x123b04={'id':_0xd8b1ac(0x314),'params':{..._0x426010[_0x195d9f]}},_0xae8756={'id':_0xd8b1ac(0x314),'params':{..._0x39c5ec[_0x195d9f]}},_0x35ca79=this['_transformService'][_0xd8b1ac(0x242)](_0x2bd816,_0x123b04,!0x1),_0x347e0c=this[_0xd8b1ac(0x2d4)]['transformMutation'](_0x202231,_0xae8756,!0x1);if(_0x3758a8(_0x35ca79))throw _0x35ca79['error'];if(_0x3758a8(_0x347e0c))throw _0x347e0c['error'];_0x1b786c[_0xd8b1ac(0x2b9)](_0x35ca79[_0xd8b1ac(0x248)][_0xd8b1ac(0x1a8)]),_0x12210c[_0xd8b1ac(0x2b9)](_0x347e0c[_0xd8b1ac(0x248)][_0xd8b1ac(0x1a8)]),_0x2bd816=_0x35ca79[_0xd8b1ac(0x1bd)],_0x202231=_0x347e0c[_0xd8b1ac(0x1bd)];}_0x2a6c92[_0xd8b1ac(0x28d)]({'undoCache':_0x1b786c,'redoCache':_0x12210c});}[_0x3fd5ef(0x269)](_0x277456){const _0xa7ba7e=_0x3fd5ef,{unitID:_0x2ab50a}=_0x277456,_0x44fe8a=this['_renderManagerService']['getRenderById'](_0x2ab50a)[_0xa7ba7e(0x207)](_0x5c8d42),_0xbc39a0=_0x44fe8a[_0xa7ba7e(0x198)]();if(_0xbc39a0==null)return;const _0x3986be=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x277456[_0xa7ba7e(0x205)],'actions':null,'textRanges':[_0xbc39a0]}}],_0x5b5a89=this['_transformService'][_0xa7ba7e(0x231)](_0x277456,_0x3986be);if(!_0x463bb2(_0x5b5a89))throw _0x5b5a89[_0xa7ba7e(0x232)];const _0x218368=_0x5b5a89['m2Prime'][0x0][_0xa7ba7e(0x1a8)][_0xa7ba7e(0x1b1)];Array[_0xa7ba7e(0x263)](_0x218368)&&_0x218368['length']&&_0x44fe8a['setActiveRange'](_0x218368[0x0]);}};he=dn([lt(0x0,_0x4be4b1),lt(0x1,_0x19555c)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x2f0165,_0x6defc2,_0x1679f7,_0x12eccf)=>{const _0x4b30e8=_0x3fd5ef;for(var _0x4760d1=_0x12eccf>0x1?void 0x0:_0x12eccf?Sn(_0x6defc2,_0x1679f7):_0x6defc2,_0x1f5cd2=_0x2f0165[_0x4b30e8(0x10c)]-0x1,_0x34aeec;_0x1f5cd2>=0x0;_0x1f5cd2--)(_0x34aeec=_0x2f0165[_0x1f5cd2])&&(_0x4760d1=_0x34aeec(_0x4760d1)||_0x4760d1);return _0x4760d1;},Le=(_0x5bae71,_0x4b81ac)=>(_0x545749,_0x1328e8)=>_0x4b81ac(_0x545749,_0x1328e8,_0x5bae71);let ue=class{constructor(_0x31531d,_0x4b62f9,_0x38658b){const _0x49c029=_0x3fd5ef;this[_0x49c029(0x309)]=_0x31531d,this['_transformService']=_0x4b62f9,this['_docStateChangeManagerService']=_0x38658b;}[_0x3fd5ef(0x1dd)](_0x1eeccd){this['_transformHistoryAndStateStack'](_0x1eeccd);}[_0x3fd5ef(0x15d)](_0x3fdb59){const _0x1d16cf=_0x3fd5ef,{unitID:_0x3bd23b}=_0x3fdb59,{collaboration:_0x124c68}=this['_docStateChangeManagerService'][_0x1d16cf(0x32d)](_0x3bd23b);if(_0x124c68[_0x1d16cf(0x10c)]===0x0)return _0x3fdb59;let _0x31dcfe=_0x2b2135[_0x1d16cf(0x233)](_0x3fdb59['mutations'][0x0]);for(let _0x264387=0x0;_0x264387<_0x124c68[_0x1d16cf(0x10c)];_0x264387++){const _0x4f8708={'id':_0x1d16cf(0x314),'params':{'unitId':_0x124c68[_0x264387]['unitId'],..._0x124c68[_0x264387][_0x1d16cf(0x24b)]}},_0x5c0b87=this[_0x1d16cf(0x2d4)][_0x1d16cf(0x242)](_0x31dcfe,_0x4f8708,!0x1);if(_0x3758a8(_0x5c0b87))throw _0x5c0b87['error'];_0x31dcfe=_0x5c0b87['m1Prime'];}return{..._0x2b2135[_0x1d16cf(0x233)](_0x3fdb59),'mutations':[_0x31dcfe]};}['_transformHistoryAndStateStack'](_0x28b045){const _0x16e9c9=_0x3fd5ef,{unitID:_0x411748}=_0x28b045,{history:_0x41f5b5,collaboration:_0xc4ef87}=this[_0x16e9c9(0x196)][_0x16e9c9(0x32d)](_0x411748);if(_0x41f5b5['length']===0x0&&_0xc4ef87[_0x16e9c9(0x10c)]===0x0)return;const _0x3adcb9=[],_0x237da7=[];let _0x39eb50=_0x2b2135[_0x16e9c9(0x233)](_0x28b045['mutations'][0x0]),_0x49d604=_0x2b2135[_0x16e9c9(0x233)](_0x28b045[_0x16e9c9(0x2ba)][0x0]);for(let _0x142089=_0x41f5b5[_0x16e9c9(0x10c)]-0x1;_0x142089>=0x0;_0x142089--){const _0x5352de={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41f5b5[_0x142089][_0x16e9c9(0x160)],..._0x41f5b5[_0x142089]['undoState']}},_0x5a73b3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41f5b5[_0x142089]['unitId'],..._0x41f5b5[_0x142089][_0x16e9c9(0x24b)]}},_0x40beb9=this[_0x16e9c9(0x2d4)]['transformMutation'](_0x39eb50,_0x5352de,!0x1),_0x53bace=this[_0x16e9c9(0x2d4)]['transformMutation'](_0x49d604,_0x5a73b3,!0x1);if(_0x3758a8(_0x40beb9))throw _0x40beb9[_0x16e9c9(0x232)];if(_0x3758a8(_0x53bace))throw _0x53bace[_0x16e9c9(0x232)];_0x3adcb9[_0x16e9c9(0x2b9)]({..._0x41f5b5[_0x142089],'undoState':_0x40beb9[_0x16e9c9(0x248)][_0x16e9c9(0x1a8)],'redoState':_0x53bace[_0x16e9c9(0x248)][_0x16e9c9(0x1a8)]}),_0x39eb50=_0x40beb9[_0x16e9c9(0x1bd)],_0x49d604=_0x53bace[_0x16e9c9(0x1bd)];}_0x39eb50=_0x2b2135[_0x16e9c9(0x233)](_0x28b045[_0x16e9c9(0x2ba)][0x0]),_0x49d604=_0x2b2135['deepClone'](_0x28b045[_0x16e9c9(0x2ba)][0x0]);for(let _0x57642e=_0xc4ef87[_0x16e9c9(0x10c)]-0x1;_0x57642e>=0x0;_0x57642e--){const _0x582c3c={'id':_0x16e9c9(0x314),'params':{'unitId':_0xc4ef87[_0x57642e][_0x16e9c9(0x160)],..._0xc4ef87[_0x57642e][_0x16e9c9(0x24e)]}},_0x479ef7={'id':_0x16e9c9(0x314),'params':{'unitId':_0xc4ef87[_0x57642e][_0x16e9c9(0x160)],..._0xc4ef87[_0x57642e][_0x16e9c9(0x24b)]}},_0x422060=this[_0x16e9c9(0x2d4)][_0x16e9c9(0x242)](_0x39eb50,_0x582c3c,!0x1),_0x56594b=this[_0x16e9c9(0x2d4)][_0x16e9c9(0x242)](_0x49d604,_0x479ef7,!0x1);if(_0x3758a8(_0x422060))throw _0x422060[_0x16e9c9(0x232)];if(_0x3758a8(_0x56594b))throw _0x56594b[_0x16e9c9(0x232)];_0x237da7['unshift']({..._0xc4ef87[_0x57642e],'undoState':_0x422060[_0x16e9c9(0x248)][_0x16e9c9(0x1a8)],'redoState':_0x56594b[_0x16e9c9(0x248)][_0x16e9c9(0x1a8)]}),_0x39eb50=_0x422060['m1Prime'],_0x49d604=_0x56594b[_0x16e9c9(0x1bd)];}this['_docStateChangeManagerService'][_0x16e9c9(0x109)](_0x411748,{'history':_0x3adcb9,'collaboration':_0x237da7});}};ue=In([Le(0x0,_0x5be279(_0x4442ad)),Le(0x1,_0x4be4b1),Le(0x2,_0x5be279(_0x580a14))],ue);var mn=Object[_0x3fd5ef(0x291)],fn=(_0x23fa7f,_0xff3c18,_0x37e0ef,_0x48f4f2)=>{const _0x543b15=_0x3fd5ef;for(var _0x31219a=_0x48f4f2>0x1?void 0x0:_0x48f4f2?mn(_0xff3c18,_0x37e0ef):_0xff3c18,_0x147050=_0x23fa7f[_0x543b15(0x10c)]-0x1,_0x9ae051;_0x147050>=0x0;_0x147050--)(_0x9ae051=_0x23fa7f[_0x147050])&&(_0x31219a=_0x9ae051(_0x31219a)||_0x31219a);return _0x31219a;},ht=(_0x5363b9,_0x234f13)=>(_0x56478b,_0xcc2271)=>_0x234f13(_0x56478b,_0xcc2271,_0x5363b9);let de=class{constructor(_0x577fdd,_0x160259){const _0xddf828=_0x3fd5ef;this[_0xddf828(0x309)]=_0x577fdd,this[_0xddf828(0x2d4)]=_0x160259;}[_0x3fd5ef(0x11a)](_0xb9c2e1){const _0x138a8c=_0x3fd5ef;var _0x4bfdbc;const _0x1b47e1=this[_0x138a8c(0x309)][_0x138a8c(0x295)](_0x2d3f04),_0x3b2e61=(_0x4bfdbc=_0x1b47e1['getDocRanges']())!=null?_0x4bfdbc:[];if(_0x3b2e61['length']===0x0)return;const _0x4f2a33=_0xb9c2e1[_0x138a8c(0x205)],_0x17bc96=[{'id':_0x138a8c(0x314),'params':{'unitId':_0x4f2a33,'actions':null,'textRanges':_0x3b2e61}}],_0x236dd7=this['_transformService'][_0x138a8c(0x231)](_0xb9c2e1,_0x17bc96);if(!_0x463bb2(_0x236dd7))throw _0x236dd7[_0x138a8c(0x232)];const _0x1e33b2=_0x236dd7[_0x138a8c(0x248)][0x0][_0x138a8c(0x1a8)]['textRanges'];Array[_0x138a8c(0x263)](_0x1e33b2)&&_0x1e33b2[_0x138a8c(0x10c)]&&_0x1b47e1['replaceDocRanges'](_0x1e33b2,{'unitId':_0x4f2a33,'subUnitId':_0x4f2a33},!0x1);}};de=fn([ht(0x0,_0x5be279(_0x4442ad)),ht(0x1,_0x4be4b1)],de);var gn=Object[_0x3fd5ef(0x291)],En=(_0x14696b,_0x5f5bc2,_0x2dbe87,_0x23a790)=>{const _0x3fe6a7=_0x3fd5ef;for(var _0x45c3ff=_0x23a790>0x1?void 0x0:_0x23a790?gn(_0x5f5bc2,_0x2dbe87):_0x5f5bc2,_0x1e2d7a=_0x14696b[_0x3fe6a7(0x10c)]-0x1,_0xe9b200;_0x1e2d7a>=0x0;_0x1e2d7a--)(_0xe9b200=_0x14696b[_0x1e2d7a])&&(_0x45c3ff=_0xe9b200(_0x45c3ff)||_0x45c3ff);return _0x45c3ff;},U=(_0x5afb91,_0x310559)=>(_0x45aba5,_0x3dcd62)=>_0x310559(_0x45aba5,_0x3dcd62,_0x5afb91);let Se=class extends _0x4f00b7{constructor(_0x4da126,_0x565333,_0x1a4ca0,_0xcef059,_0x5aa9ec,_0x2a24ec,_0xec8bab,_0x585098){const _0x178d31=_0x3fd5ef;super(),_(this,_0x178d31(0x229),new _0x35a309(_0x1c9331[_0x178d31(0x128)])),(this['_docStateChangeManagerService']=_0x4da126,this[_0x178d31(0x30e)]=_0x565333,this[_0x178d31(0x1e7)]=_0x1a4ca0,this[_0x178d31(0x2a0)]=_0xcef059,this[_0x178d31(0x31f)]=_0x5aa9ec,this[_0x178d31(0x25d)]=_0x2a24ec,this[_0x178d31(0x13d)]=_0xec8bab,this[_0x178d31(0x330)]=_0x585098,this['_initEntityListener']());}[_0x3fd5ef(0x308)](){const _0x48fcd7=_0x3fd5ef;this[_0x48fcd7(0x346)](this[_0x48fcd7(0x30e)][_0x48fcd7(0x225)][_0x48fcd7(0xf9)](_0x5bd395=>{const _0x2fd2e3=_0x48fcd7,_0x55b904=this[_0x2fd2e3(0x196)][_0x2fd2e3(0x26e)][_0x2fd2e3(0xf9)](_0x55967b=>{const _0x1361a8=_0x2fd2e3;if(_0x55967b==null)return;const {unitId:_0x3ca0ea,redoState:_0x36ab44,commandId:_0x10bb05}=_0x55967b;if(_0x3ca0ea!==_0x5bd395[_0x1361a8(0x205)])return;const _0x3ef177={'id':_0x10bb05,'type':_0x5419f7[_0x1361a8(0x2ee)],'params':{'unitId':_0x3ca0ea,'actions':_0x36ab44[_0x1361a8(0x2b2)],'textRanges':null}};_0x5bd395[_0x1361a8(0x140)](_0x3ef177);});if(_0x5bd395[_0x2fd2e3(0x346)](_0x55b904),_0x5bd395 instanceof _0x1609bb){const _0x4d0f39={'onTransformIME':_0x4a826f=>this[_0x2fd2e3(0x1e7)][_0x2fd2e3(0x2a8)](_0x4a826f),'onTransformState':_0x51a9c8=>this[_0x2fd2e3(0x2a0)][_0x2fd2e3(0x1dd)](_0x51a9c8),'onTransformSelections':_0x154999=>this[_0x2fd2e3(0x31f)][_0x2fd2e3(0x11a)](_0x154999),'onSyncEditingCollabCursor':_0x6d1944=>this[_0x2fd2e3(0x25d)][_0x2fd2e3(0x327)](_0x6d1944),'onTransformRemoteChangesetByIMECache':_0x2412e0=>this['_docTransformIMECacheService'][_0x2fd2e3(0x15d)](_0x2412e0),'onTransformRemoteChangesetByStateCache':_0x471d6d=>this[_0x2fd2e3(0x2a0)][_0x2fd2e3(0x15d)](_0x471d6d)};_0x5bd395[_0x2fd2e3(0x353)](_0x4d0f39);}}));}};Se=En([U(0x0,_0x5be279(_0x580a14)),U(0x1,_0x5be279(_0x2d6c5e)),U(0x2,_0x5be279(he)),U(0x3,_0x5be279(ue)),U(0x4,_0x5be279(de)),U(0x5,_0x5be279(ze)),U(0x6,_0x968e7c),U(0x7,_0x5be279(_0xf97bb8))],Se);var Z=(_0xd878a8=>(_0xd878a8[_0xd878a8[_0x3fd5ef(0x334)]=0x0]=_0x3fd5ef(0x334),_0xd878a8[_0xd878a8['OK']=0x1]='OK',_0xd878a8[_0xd878a8[_0x3fd5ef(0x24d)]=0x2]=_0x3fd5ef(0x24d),_0xd878a8[_0xd878a8[_0x3fd5ef(0x195)]=0x3]=_0x3fd5ef(0x195),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1a6)]=0x4]=_0x3fd5ef(0x1a6),_0xd878a8[_0xd878a8[_0x3fd5ef(0x21e)]=0x5]=_0x3fd5ef(0x21e),_0xd878a8[_0xd878a8[_0x3fd5ef(0xfb)]=0x6]=_0x3fd5ef(0xfb),_0xd878a8[_0xd878a8[_0x3fd5ef(0x110)]=0x7]=_0x3fd5ef(0x110),_0xd878a8[_0xd878a8['TOO_MANY_REQUESTS']=0x8]=_0x3fd5ef(0x30b),_0xd878a8[_0xd878a8[_0x3fd5ef(0x283)]=0x9]=_0x3fd5ef(0x283),_0xd878a8[_0xd878a8['LOGIN_FAILED']=0xa]=_0x3fd5ef(0x336),_0xd878a8[_0xd878a8['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0xd878a8[_0xd878a8[_0x3fd5ef(0x2fa)]=0xc]=_0x3fd5ef(0x2fa),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1fc)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xd878a8[_0xd878a8['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xd878a8[_0xd878a8['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x3fd5ef(0x2e1),_0xd878a8[_0xd878a8[_0x3fd5ef(0x25b)]=0x10]=_0x3fd5ef(0x25b),_0xd878a8[_0xd878a8['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x3fd5ef(0x2fd),_0xd878a8[_0xd878a8[_0x3fd5ef(0x122)]=0x65]=_0x3fd5ef(0x122),_0xd878a8[_0xd878a8[_0x3fd5ef(0x17f)]=0xc9]=_0x3fd5ef(0x17f),_0xd878a8[_0xd878a8['USER_IS_ANONYMOUS']=0xca]=_0x3fd5ef(0x112),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1fe)]=0x1389]=_0x3fd5ef(0x1fe),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2f4)]=0x1771]=_0x3fd5ef(0x2f4),_0xd878a8[_0xd878a8[_0x3fd5ef(0xff)]=0x1772]=_0x3fd5ef(0xff),_0xd878a8[_0xd878a8[_0x3fd5ef(0x165)]=0x1773]=_0x3fd5ef(0x165),_0xd878a8[_0xd878a8['APPLY_REJECT']=0x1b59]=_0x3fd5ef(0x2c6),_0xd878a8[_0xd878a8['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xd878a8[_0xd878a8[_0x3fd5ef(0x2c9)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0xd878a8[_0xd878a8[_0x3fd5ef(0x111)]=0x1b5c]=_0x3fd5ef(0x111),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2b0)]=0x1b5d]=_0x3fd5ef(0x2b0),_0xd878a8[_0xd878a8[_0x3fd5ef(0x247)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xd878a8[_0xd878a8[_0x3fd5ef(0x120)]=0x2329]=_0x3fd5ef(0x120),_0xd878a8[_0xd878a8['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3fd5ef(0x301),_0xd878a8[_0xd878a8[_0x3fd5ef(0x117)]=0x232b]=_0x3fd5ef(0x117),_0xd878a8[_0xd878a8[_0x3fd5ef(0x34c)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xd878a8[_0xd878a8['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3fd5ef(0x33b),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1d0)]=0x2711]=_0x3fd5ef(0x1d0),_0xd878a8[_0xd878a8['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3fd5ef(0x356),_0xd878a8[_0xd878a8['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3fd5ef(0x127),_0xd878a8[_0xd878a8[_0x3fd5ef(0x16c)]=0x2714]=_0x3fd5ef(0x16c),_0xd878a8[_0xd878a8['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xd878a8[_0xd878a8[_0x3fd5ef(0x2e0)]=0x271b]=_0x3fd5ef(0x2e0),_0xd878a8[_0xd878a8['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3fd5ef(0x335),_0xd878a8[_0xd878a8['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x3fd5ef(0x2ef),_0xd878a8[_0xd878a8[_0x3fd5ef(0x313)]=0x271e]=_0x3fd5ef(0x313),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1e4)]=0x271f]=_0x3fd5ef(0x1e4),_0xd878a8[_0xd878a8['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x3fd5ef(0x215),_0xd878a8[_0xd878a8[_0x3fd5ef(0x351)]=0x2af9]=_0x3fd5ef(0x351),_0xd878a8[_0xd878a8['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3fd5ef(0x182),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2b5)]=0x2ee2]=_0x3fd5ef(0x2b5),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2ae)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xd878a8[_0xd878a8['USER_NOT_INVITED_CODE']=0x2ee4]=_0x3fd5ef(0x240),_0xd878a8[_0xd878a8[_0x3fd5ef(0x329)]=0x2ee5]=_0x3fd5ef(0x329),_0xd878a8[_0xd878a8[_0x3fd5ef(0x211)]=0x32c9]=_0x3fd5ef(0x211),_0xd878a8[_0xd878a8[_0x3fd5ef(0x358)]=0x32ca]=_0x3fd5ef(0x358),_0xd878a8[_0xd878a8[_0x3fd5ef(0x15b)]=0x32cb]=_0x3fd5ef(0x15b),_0xd878a8[_0xd878a8[_0x3fd5ef(0x270)]=0x36b1]=_0x3fd5ef(0x270),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2b1)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0xd878a8[_0xd878a8[_0x3fd5ef(0x104)]=0x36b3]=_0x3fd5ef(0x104),_0xd878a8[_0xd878a8['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0xd878a8[_0xd878a8[_0x3fd5ef(0x1da)]=0x36b5]=_0x3fd5ef(0x1da),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1e0)]=0x36b6]=_0x3fd5ef(0x1e0),_0xd878a8[_0xd878a8['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x3fd5ef(0x194),_0xd878a8[_0xd878a8[_0x3fd5ef(0x26c)]=0x36b8]=_0x3fd5ef(0x26c),_0xd878a8[_0xd878a8['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x3fd5ef(0x324),_0xd878a8[_0xd878a8['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x3fd5ef(0x2b6),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1c4)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xd878a8[_0xd878a8[_0x3fd5ef(0x1f6)]=0x37dd]=_0x3fd5ef(0x1f6),_0xd878a8[_0xd878a8['REDEMPTION_INVALID_CODE']=0x3a99]=_0x3fd5ef(0x142),_0xd878a8[_0xd878a8['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3fd5ef(0x304),_0xd878a8[_0xd878a8[_0x3fd5ef(0xfc)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0xd878a8[_0xd878a8[_0x3fd5ef(0x345)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0xd878a8[_0xd878a8[_0x3fd5ef(0x119)]=0x3a9d]=_0x3fd5ef(0x119),_0xd878a8[_0xd878a8[_0x3fd5ef(0x279)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0xd878a8[_0xd878a8[_0x3fd5ef(0x14c)]=0x3a9f]=_0x3fd5ef(0x14c),_0xd878a8[_0xd878a8[_0x3fd5ef(0x266)]=0x3e81]=_0x3fd5ef(0x266),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1ed)]=-0x1]=_0x3fd5ef(0x1ed),_0xd878a8))(Z||{});function vn(_0x1925b9){const _0x13a026=_0x3fd5ef;var _0x1ba6bf,_0x1516df;const _0x43d840=(_0x1ba6bf=_0x1925b9['stageInfo'])==null?void 0x0:_0x1ba6bf[_0x13a026(0x150)],_0x131295=((_0x1516df=_0x1925b9[_0x13a026(0x1a0)])==null?void 0x0:_0x1516df[_0x13a026(0x1d7)])||0x0;return _0x43d840===_0x533e75[_0x13a026(0x24f)]&&_0x131295>0x0;}function pn(_0x2c5aa8){const _0x408abb=_0x3fd5ef;return _0x2c5aa8['functionsExecutedState']===_0x16f1fc[_0x408abb(0x250)];}var On=Object[_0x3fd5ef(0x291)],Tn=(_0x570bcd,_0x1d9be6,_0xe49c1a,_0x58a363)=>{const _0x1f36d3=_0x3fd5ef;for(var _0x50f8cc=_0x58a363>0x1?void 0x0:_0x58a363?On(_0x1d9be6,_0xe49c1a):_0x1d9be6,_0x4a35a6=_0x570bcd[_0x1f36d3(0x10c)]-0x1,_0x5c230b;_0x4a35a6>=0x0;_0x4a35a6--)(_0x5c230b=_0x570bcd[_0x4a35a6])&&(_0x50f8cc=_0x5c230b(_0x50f8cc)||_0x50f8cc);return _0x50f8cc;},P=(_0x3b5a1b,_0x12841b)=>(_0xaf753e,_0x2fdb2b)=>_0x12841b(_0xaf753e,_0x2fdb2b,_0x3b5a1b);const Cn=_0x3fd5ef(0x124),Rn='/universer-api/license/formula/limit/start',Dn=_0x3fd5ef(0x158);let Ie=class extends _0x4f00b7{constructor(_0x27e69d,_0x9472c2,_0x168cee,_0x521c87,_0x53eb08,_0x1b5dc5,_0x5605fb){const _0x2f9fd9=_0x3fd5ef;super(),_(this,_0x2f9fd9(0x2c0),null),_(this,_0x2f9fd9(0x114),0x0),_(this,_0x2f9fd9(0x276),0x0),_(this,_0x2f9fd9(0x17e),[]),_(this,'_lastResponseTimestamp',0x0),(this['_messageService']=_0x27e69d,this[_0x2f9fd9(0x1b9)]=_0x9472c2,this[_0x2f9fd9(0x27f)]=_0x168cee,this[_0x2f9fd9(0x2e5)]=_0x521c87,this[_0x2f9fd9(0x1a5)]=_0x53eb08,this[_0x2f9fd9(0x1e8)]=_0x1b5dc5,this[_0x2f9fd9(0x330)]=_0x5605fb,this[_0x2f9fd9(0x164)]());}['_initCommandInterceptor'](){const _0x5bf062=_0x3fd5ef;this['disposeWithMe'](this['_commandService'][_0x5bf062(0x1ff)]((_0x3d2378,_0x3f84a7)=>{const _0xe2ffd0=_0x5bf062;var _0x35cb09;if(_0x3d2378['id']!==_0x2753de['id'])return;const _0x5963ee=_0x3d2378['params'];if(!this[_0xe2ffd0(0x29a)]((_0x35cb09=_0x5963ee[_0xe2ffd0(0x180)])!=null?_0x35cb09:[]))return;if(!this[_0xe2ffd0(0x213)]())throw this[_0xe2ffd0(0x1d1)](_0x3d2378,_0x3f84a7),this[_0xe2ffd0(0x2c1)](),new _0x42ff66();})),this[_0x5bf062(0x346)](this[_0x5bf062(0x1b9)][_0x5bf062(0x344)]((_0x2e3086,_0x1335d7)=>{const _0x5181e7=_0x5bf062;if(_0x2e3086['id']!==_0x58be3c['id'])return;const _0x41e5d9=_0x2e3086['params'];if(vn(_0x41e5d9)){const _0x3e8116=_0xba23d8();this['_taskIds']['push'](_0x3e8116),this[_0x5181e7(0x244)](_0x3e8116);}else{if(pn(_0x41e5d9)&&this[_0x5181e7(0x17e)][_0x5181e7(0x10c)]>0x0){const _0x453303=this['_taskIds'][_0x5181e7(0x2b7)]();this[_0x5181e7(0x342)](_0x453303);}}}));}[_0x3fd5ef(0x1f2)](){const _0x420e2b=_0x3fd5ef;super[_0x420e2b(0x1f2)](),this[_0x420e2b(0x167)](),this[_0x420e2b(0x17e)]=[],this[_0x420e2b(0x276)]=0x0,this[_0x420e2b(0x114)]=0x0,this[_0x420e2b(0x2d2)]=0x0;}async[_0x3fd5ef(0x1d1)](_0x21a798,_0x3b546d){const _0x13664a=_0x3fd5ef;for(let _0x127223=0x0;_0x127223<0x1e;_0x127223++)try{if(await this[_0x13664a(0x26d)](),this[_0x13664a(0x213)]()){this[_0x13664a(0x16e)](_0x21a798,_0x3b546d),this[_0x13664a(0x13d)]['show']({'content':this[_0x13664a(0x330)]['t'](_0x13664a(0x170)),'type':_0x5db869[_0x13664a(0x2d1)]});return;}await new Promise(_0x4ba601=>{const _0xe4fa3c=_0x13664a;this[_0xe4fa3c(0x2c0)]=window[_0xe4fa3c(0x2a3)](_0x4ba601,0x3e8);});}catch(_0x446bfb){this[_0x13664a(0x1e8)][_0x13664a(0x232)](_0x446bfb);}this['_messageService'][_0x13664a(0x20f)]({'content':this[_0x13664a(0x330)]['t'](_0x13664a(0x224)),'type':_0x5db869[_0x13664a(0x303)]});}[_0x3fd5ef(0x16e)](_0x358665,_0x45a7e6){const _0x6b51dc=_0x3fd5ef;try{this['_commandService']['executeCommand'](_0x358665['id'],_0x358665['params'],_0x45a7e6);}catch(_0x17aed0){this[_0x6b51dc(0x1e8)][_0x6b51dc(0x232)](_0x17aed0);}}[_0x3fd5ef(0x19c)](_0x4a73b5,_0x1daa14){const _0x4fd93f=_0x3fd5ef;_0x1daa14<this[_0x4fd93f(0x2d2)]||(this['_lastResponseTimestamp']=_0x1daa14,this[_0x4fd93f(0x114)]=Number['parseInt'](_0x4a73b5[_0x4fd93f(0x1ae)]),this[_0x4fd93f(0x276)]=Number[_0x4fd93f(0x1c6)](_0x4a73b5[_0x4fd93f(0x352)]));}async[_0x3fd5ef(0x244)](_0x6d028a){const _0x1e0bd7=_0x3fd5ef;var _0x588460,_0x39c6c7;const _0x1f1eb9=Date[_0x1e0bd7(0x129)]();try{const _0xaec0b2=((_0x588460=this['_configService'][_0x1e0bd7(0x257)](_0x3b3566))==null?void 0x0:_0x588460[_0x1e0bd7(0x108)])||Rn,_0x1c8a00=(await this[_0x1e0bd7(0x2e5)][_0x1e0bd7(0x260)](_0xaec0b2,{'body':JSON['stringify']({'taskId':_0x6d028a})}))['body'];if(((_0x39c6c7=_0x1c8a00[_0x1e0bd7(0x232)])==null?void 0x0:_0x39c6c7[_0x1e0bd7(0x302)])!==Z['OK'])return;this[_0x1e0bd7(0x19c)](_0x1c8a00[_0x1e0bd7(0x234)],_0x1f1eb9);}catch(_0x2ec7ad){this[_0x1e0bd7(0x1e8)][_0x1e0bd7(0x232)](_0x2ec7ad);}}async['_getFormulaLimitStatus'](_0x536675){const _0x5b7e39=_0x3fd5ef;var _0x12912f,_0x1c6a9c;const _0x2ef4f5=Date[_0x5b7e39(0x129)]();try{const _0x42d58d=((_0x12912f=this[_0x5b7e39(0x27f)][_0x5b7e39(0x257)](_0x3b3566))==null?void 0x0:_0x12912f[_0x5b7e39(0x121)])||Cn,_0x320685=_0x536675?_0x42d58d+_0x5b7e39(0x289)+encodeURIComponent(_0x536675):_0x42d58d,_0x2ac7ca=(await this['_httpService'][_0x5b7e39(0x295)](_0x320685))['body'];if(((_0x1c6a9c=_0x2ac7ca[_0x5b7e39(0x232)])==null?void 0x0:_0x1c6a9c['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x2ac7ca[_0x5b7e39(0x234)],_0x2ef4f5);}catch(_0x3e7381){this[_0x5b7e39(0x1e8)]['error'](_0x3e7381);}}async[_0x3fd5ef(0x342)](_0x383cf3){const _0x205020=_0x3fd5ef;var _0x257f8c,_0x769b26;const _0x2f5d54=Date[_0x205020(0x129)]();try{const _0xb725eb=((_0x257f8c=this[_0x205020(0x27f)][_0x205020(0x257)](_0x3b3566))==null?void 0x0:_0x257f8c[_0x205020(0x1fd)])||Dn,_0x56a699=(await this['_httpService'][_0x205020(0x260)](_0xb725eb,{'body':JSON[_0x205020(0x217)]({'taskId':_0x383cf3})}))[_0x205020(0xfe)];if(((_0x769b26=_0x56a699[_0x205020(0x232)])==null?void 0x0:_0x769b26['code'])!==Z['OK'])return;this[_0x205020(0x19c)](_0x56a699[_0x205020(0x234)],_0x2f5d54);}catch(_0x9c9854){this[_0x205020(0x1e8)]['error'](_0x9c9854);}}['_checkCalculationAvailable'](){const _0x43de05=_0x3fd5ef;return this[_0x43de05(0x114)]===0x0?!0x0:this[_0x43de05(0x114)]-this['_currentUsage']>0x0;}[_0x3fd5ef(0x167)](){const _0x1a0450=_0x3fd5ef;this[_0x1a0450(0x2c0)]&&(clearTimeout(this['_pollingInterval']),this[_0x1a0450(0x2c0)]=null);}[_0x3fd5ef(0x2c1)](){const _0x42f1c5=_0x3fd5ef;this[_0x42f1c5(0x13d)][_0x42f1c5(0x20f)]({'content':this[_0x42f1c5(0x330)]['t']('formula.calculation.waiting'),'type':_0x5db869[_0x42f1c5(0x256)]});}[_0x3fd5ef(0x29a)](_0x239477){const _0x40ef34=_0x3fd5ef;for(const _0x24dee5 of _0x239477){const {unitId:_0x43cdff,sheetId:_0x3df06b,range:_0x1f9956}=_0x24dee5,_0x41b449=this[_0x40ef34(0x1a5)]['getUnit'](_0x43cdff);if(!_0x41b449)continue;const _0x196d83=_0x41b449[_0x40ef34(0x1e1)](_0x3df06b);if(!_0x196d83)continue;const _0xa2fd3f=_0x196d83[_0x40ef34(0x2be)]();for(let _0x1270ed=_0x1f9956[_0x40ef34(0x1f7)];_0x1270ed<=_0x1f9956[_0x40ef34(0x186)];_0x1270ed++)for(let _0x5782cb=_0x1f9956[_0x40ef34(0x1d9)];_0x5782cb<=_0x1f9956[_0x40ef34(0x30f)];_0x5782cb++){const _0x4ac4f1=_0xa2fd3f[_0x40ef34(0x328)](_0x1270ed,_0x5782cb);if(_0x4ac4f1&&(_0x535a76(_0x4ac4f1['f'])||_0x415212(_0x4ac4f1['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x5be279(_0x968e7c)),P(0x1,_0x52fbf7),P(0x2,_0x35b32a),P(0x3,_0x5be279(_0x35064f)),P(0x4,_0x2ad077),P(0x5,_0x25626e),P(0x6,_0x5be279(_0xf97bb8))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0xaf41e,_0x3d468d,_0x478d6c,_0x346376)=>{for(var _0x388bd2=_0x346376>0x1?void 0x0:_0x346376?Nn(_0x3d468d,_0x478d6c):_0x3d468d,_0x367e23=_0xaf41e['length']-0x1,_0xe7f90f;_0x367e23>=0x0;_0x367e23--)(_0xe7f90f=_0xaf41e[_0x367e23])&&(_0x388bd2=_0xe7f90f(_0x388bd2)||_0x388bd2);return _0x388bd2;},Ue=(_0x2e1259,_0x39010d)=>(_0xd0061,_0x39a0b7)=>_0x39010d(_0xd0061,_0x39a0b7,_0x2e1259);let He=class extends _0x4f00b7{constructor(_0x53b2dd,_0x30b472,_0x10381a){const _0x39473c=_0x3fd5ef;super(),_(this,_0x39473c(0x33a),new Map()),_(this,_0x39473c(0x339),new Map()),_(this,_0x39473c(0x1d8),!0x1),(this[_0x39473c(0x27f)]=_0x53b2dd,this['_localStorageService']=_0x30b472,this[_0x39473c(0x1c9)]=_0x10381a);}[_0x3fd5ef(0x30a)](){const _0x2c75fe=_0x3fd5ef;this[_0x2c75fe(0x1d8)]=!0x0;}[_0x3fd5ef(0x159)](){const _0x1a5658=_0x3fd5ef;this[_0x1a5658(0x1d8)]=!0x1;}get['saveTaskMap'](){const _0x3c85bc=_0x3fd5ef;return this[_0x3c85bc(0x339)];}[_0x3fd5ef(0x1f2)](){const _0x2168b9=_0x3fd5ef;this['exhaustSavingTask']()[_0x2168b9(0x154)](()=>super[_0x2168b9(0x1f2)]());}async[_0x3fd5ef(0x179)](_0x5d13fb){const _0x40ece2=_0x3fd5ef;return this[_0x40ece2(0x1d8)]?null:this[_0x40ece2(0x2cc)][_0x40ece2(0x18b)](_0x41c94c(_0x5d13fb));}async[_0x3fd5ef(0x33d)](_0x4435b3,_0x10d837){const _0x14f357=_0x3fd5ef;return!!this[_0x14f357(0x2cc)][_0x14f357(0x15e)](_0x4435b3,_0x10d837);}[_0x3fd5ef(0x21a)](_0x255caa,_0x5cd506,_0x3310e8,_0x1f30d6){const _0x1d47df=_0x3fd5ef,_0x381806=this[_0x1d47df(0x1c9)][_0x1d47df(0x261)](_0x255caa);this['_cachedData'][_0x1d47df(0x190)](_0x255caa,{'unitID':_0x255caa,'type':_0x5cd506,'awaitingChangeset':_0x3310e8,'mutations':_0x1f30d6,'rev':_0x381806}),this[_0x1d47df(0x339)][_0x1d47df(0x143)](_0x255caa)||this['_scheduleSaving'](_0x255caa);}['_scheduleSaving'](_0x551f37){const _0x57477b=_0x3fd5ef,_0xec0bf5=this[_0x57477b(0x230)]();_0xec0bf5===0x0?this[_0x57477b(0x1c5)](_0x551f37):this['_saveTaskMap'][_0x57477b(0x190)](_0x551f37,setTimeout(()=>this['_saveCache'](_0x551f37),_0xec0bf5));}[_0x3fd5ef(0x230)](){const _0x3611a3=_0x3fd5ef;var _0x12ff1a;return(_0x12ff1a=this[_0x3611a3(0x27f)][_0x3611a3(0x257)](_0x3bfdc4))!=null?_0x12ff1a:_0x222c32;}['_saveCache'](_0x687f74){const _0x38923b=_0x3fd5ef,_0x28c747=this[_0x38923b(0x339)][_0x38923b(0x295)](_0x687f74);return _0x28c747!==void 0x0&&window['clearTimeout'](_0x28c747),this[_0x38923b(0x2cc)][_0x38923b(0x15e)](_0x41c94c(_0x687f74),this[_0x38923b(0x33a)][_0x38923b(0x295)](_0x687f74))[_0x38923b(0x154)](()=>this[_0x38923b(0x339)][_0x38923b(0x236)](_0x687f74));}async[_0x3fd5ef(0x11e)](){const _0x2aac36=_0x3fd5ef,_0x4ea163=[];this[_0x2aac36(0x339)]['forEach']((_0x196eb5,_0x563a81)=>{const _0x3a6fab=_0x2aac36;window['clearTimeout'](_0x196eb5),_0x4ea163['push'](this[_0x3a6fab(0x1c5)](_0x563a81)[_0x3a6fab(0x154)](()=>{const _0x2ac147=_0x3a6fab;this['_saveTaskMap'][_0x2ac147(0x236)](_0x563a81);}));}),await Promise['all'](_0x4ea163);}};He=bn([Ue(0x0,_0x35b32a),Ue(0x1,_0x494af5),Ue(0x2,_0x5be279(_0x3c1008))],He);class Ln extends _0x54976c{constructor(){const _0x49d824=_0x3fd5ef;super(),_(this,_0x49d824(0x25f)),this['urlChange$']=_0x22a663(window,_0x49d824(0x2d9))['pipe'](_0x5e42cd(this[_0x49d824(0x203)]),_0x1d7304(0x1),_0x1d3877(void 0x0));}[_0x3fd5ef(0x25c)](_0x3082e2,_0x3649a9,_0x354757=!0x1){const _0x211dab=_0x3fd5ef,_0x4bb908=new URL(window[_0x211dab(0x24a)][_0x211dab(0x157)]);_0x4bb908['searchParams'][_0x211dab(0x190)](_0x3082e2,_0x3649a9),_0x354757?window[_0x211dab(0x341)][_0x211dab(0x30c)]('','',_0x4bb908[_0x211dab(0x31c)]()):window[_0x211dab(0x341)][_0x211dab(0x235)]('','',_0x4bb908[_0x211dab(0x31c)]());}['removeParam'](_0x2a3742,_0x26ec69=!0x1){const _0x3c918d=_0x3fd5ef,_0x124151=new URL(window['location'][_0x3c918d(0x157)]);_0x124151[_0x3c918d(0x10a)][_0x3c918d(0x236)](_0x2a3742),_0x26ec69?window[_0x3c918d(0x341)][_0x3c918d(0x30c)]('','',_0x124151['toString']()):window[_0x3c918d(0x341)][_0x3c918d(0x235)]('','',_0x124151[_0x3c918d(0x31c)]());}['getParam'](_0x4c6990){const _0x7ee2c7=_0x3fd5ef;var _0x45f58c;return(_0x45f58c=new URL(window[_0x7ee2c7(0x24a)][_0x7ee2c7(0x157)])[_0x7ee2c7(0x10a)][_0x7ee2c7(0x295)](_0x4c6990))!=null?_0x45f58c:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x3fd5ef(0x291)],An=(_0x1e605f,_0x1629cd,_0x51fa2d)=>_0x1629cd in _0x1e605f?Un(_0x1e605f,_0x1629cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51fa2d}):_0x1e605f[_0x1629cd]=_0x51fa2d,Pn=(_0x37fa6a,_0x1f486c,_0xc13c20,_0x2afd58)=>{const _0x2559dc=_0x3fd5ef;for(var _0x483b7f=_0x2afd58>0x1?void 0x0:_0x2afd58?Mn(_0x1f486c,_0xc13c20):_0x1f486c,_0x1f3682=_0x37fa6a[_0x2559dc(0x10c)]-0x1,_0x733c18;_0x1f3682>=0x0;_0x1f3682--)(_0x733c18=_0x37fa6a[_0x1f3682])&&(_0x483b7f=_0x733c18(_0x483b7f)||_0x483b7f);return _0x483b7f;},Me=(_0x1fb239,_0x1b4abb)=>(_0x14a0ff,_0x3971c4)=>_0x1b4abb(_0x14a0ff,_0x3971c4,_0x1fb239),wn=(_0x396e19,_0x248286,_0x3fad6b)=>An(_0x396e19,_0x248286+'',_0x3fad6b);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x28d2ed{constructor(_0x12f65f=_t,_0x3aa4af,_0x2008ff,_0x388726){const _0x1b2f5b=_0x3fd5ef;super(),this[_0x1b2f5b(0x284)]=_0x12f65f,this[_0x1b2f5b(0x2f2)]=_0x3aa4af,this[_0x1b2f5b(0x309)]=_0x2008ff,this[_0x1b2f5b(0x27f)]=_0x388726;const {..._0x4c7248}=_0x3e7f1c({},_t,this[_0x1b2f5b(0x284)]);this[_0x1b2f5b(0x27f)][_0x1b2f5b(0x292)](hn,_0x4c7248);}[_0x3fd5ef(0x2ab)](){const _0x45acd4=_0x3fd5ef;this[_0x45acd4(0x31a)](),this[_0x45acd4(0x2a9)]();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x495773=_0x3fd5ef;var _0x13e213;const _0x59a8d7=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2737a6,{'useClass':_0x1e7bcc}],[_0x2d1fcf,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x495773(0x284)][_0x495773(0x18d)]&&_0x59a8d7[_0x495773(0x221)]([le]),_0x28bcb4(this[_0x495773(0x309)],_0x4720d5(_0x59a8d7,(_0x13e213=this[_0x495773(0x284)])==null?void 0x0:_0x13e213[_0x495773(0x280)]));}[_0x3fd5ef(0x27b)](){const _0x5d5582=_0x3fd5ef;this[_0x5d5582(0x346)](this[_0x5d5582(0x2f2)]['registerRenderModule'](_0x1d3b10[_0x5d5582(0x19e)],[Fe])),this['disposeWithMe'](this[_0x5d5582(0x2f2)][_0x5d5582(0x102)](_0x1d3b10[_0x5d5582(0x27e)],[ke]));}[_0x3fd5ef(0x2a9)](){const _0x5536a4=_0x3fd5ef;_0x4626f1(this[_0x5536a4(0x309)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5536a4(0x284)]['enableFrontendLog']&&_0x4626f1(this[_0x5536a4(0x309)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x4fbb73(_0x45f3f2),Me(0x1,_0x19555c),Me(0x2,_0x5be279(_0x4442ad)),Me(0x3,_0x35b32a)],Ye);var $n=Object[_0x3fd5ef(0x291)],xn=(_0x241ce3,_0x14130d,_0x3700c7,_0x233bb0)=>{const _0x2b199b=_0x3fd5ef;for(var _0x26276b=_0x233bb0>0x1?void 0x0:_0x233bb0?$n(_0x14130d,_0x3700c7):_0x14130d,_0x4be451=_0x241ce3[_0x2b199b(0x10c)]-0x1,_0x577a20;_0x4be451>=0x0;_0x4be451--)(_0x577a20=_0x241ce3[_0x4be451])&&(_0x26276b=_0x577a20(_0x26276b)||_0x26276b);return _0x26276b;},J=(_0xf3541e,_0xa5936c)=>(_0x539319,_0x50169f)=>_0xa5936c(_0x539319,_0x50169f,_0xf3541e);let ut=class extends _0x108e7d{constructor(_0x222d3d,_0x313cac,_0x28075d,_0x1fda28,_0xe44236){super(_0x222d3d,_0x313cac,_0x28075d,_0x1fda28,_0xe44236);}async['createSocket'](_0x2c054b){const _0x234702=_0x3fd5ef,_0x238583=await this[_0x234702(0x348)](),_0x5ba396=this[_0x234702(0x332)](_0x2c054b,_0x238583);return this[_0x234702(0x138)](_0x5ba396);}[_0x3fd5ef(0x332)](_0x477010,_0x21c398){const _0x121a8b=_0x3fd5ef,_0x469fef=typeof window>'u'?new URL(_0x477010):new URL(_0x477010,window[_0x121a8b(0x24a)][_0x121a8b(0x10e)]);_0x469fef['searchParams'][_0x121a8b(0x190)](_0x121a8b(0x1d6),_0x21c398);const _0x2f1875=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x121a8b(0x24a)][_0x121a8b(0x1b2)]);return _0x2f1875['get'](_0x121a8b(0x141))&&_0x469fef['searchParams']['set'](_0x121a8b(0x141),_0x2f1875[_0x121a8b(0x295)]('runId')),_0x469fef[_0x121a8b(0x31c)]();}async[_0x3fd5ef(0x348)](){const _0x28d217=_0x3fd5ef;var _0x1a8053,_0x43f404,_0x281035;const _0x4c00c9=this['_configService'][_0x28d217(0x257)](_0x3b3566),_0x48699c=(_0x1a8053=_0x4c00c9==null?void 0x0:_0x4c00c9[_0x28d217(0x1cd)])!=null?_0x1a8053:_0xbe5095;return(_0x281035=(_0x43f404=(await this[_0x28d217(0x2e5)][_0x28d217(0x295)](_0x48699c,{'headers':{'Content-Type':'application/json'}}))[_0x28d217(0xfe)])==null?void 0x0:_0x43f404[_0x28d217(0x19a)])!=null?_0x281035:'';}};ut=xn([J(0x0,_0x5be279(_0x4442ad)),J(0x1,_0x5be279(_0x35064f)),J(0x2,_0x35b32a),J(0x3,_0x25626e),J(0x4,_0x20bd4a)],ut);var Bn=Object[_0x3fd5ef(0x291)],Fn=(_0x5d7fb4,_0x4d4a4e,_0x33c39e,_0xcdf7a2)=>{const _0x4603ee=_0x3fd5ef;for(var _0x57a063=_0xcdf7a2>0x1?void 0x0:_0xcdf7a2?Bn(_0x4d4a4e,_0x33c39e):_0x4d4a4e,_0x510e22=_0x5d7fb4[_0x4603ee(0x10c)]-0x1,_0x2cdf17;_0x510e22>=0x0;_0x510e22--)(_0x2cdf17=_0x5d7fb4[_0x510e22])&&(_0x57a063=_0x2cdf17(_0x57a063)||_0x57a063);return _0x57a063;},Ae=(_0x267621,_0x3dbb8b)=>(_0x5f1b9c,_0x463220)=>_0x3dbb8b(_0x5f1b9c,_0x463220,_0x267621);let dt=class extends _0x4f00b7{constructor(_0x2fb3ac,_0x2b8853,_0x31cb9e){const _0x54c03f=_0x3fd5ef;super(),this[_0x54c03f(0x1f0)]=_0x2fb3ac,this[_0x54c03f(0x2e5)]=_0x2b8853,this[_0x54c03f(0x27f)]=_0x31cb9e;}async[_0x3fd5ef(0x11c)](_0x3a98e4,_0x2d5190,_0x12c35e,..._0x2d107d){const _0x518d25=_0x3fd5ef;var _0xbd33ca,_0x147bba,_0x2a2adb,_0x1bbe19;const _0x5ac90d=this[_0x518d25(0x1f0)][_0x518d25(0x311)]();if(!_0x5ac90d)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1b0ca2=((_0xbd33ca=this[_0x518d25(0x27f)][_0x518d25(0x257)](_0x3dc8dc))!=null?_0xbd33ca:_0x39e636)+'/'+_0x3a98e4+_0x518d25(0x197)+_0x2d5190,_0x5e62a4=new URL(window[_0x518d25(0x24a)][_0x518d25(0x157)]),_0x117dd0={'scriptId':_0x3a98e4,'runId':(_0x147bba=_0x5e62a4[_0x518d25(0x10a)][_0x518d25(0x295)](_0x518d25(0x141)))!=null?_0x147bba:'','function':_0x2d5190,'unitId':_0x5ac90d['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x2d107d),'invokeId':(_0x2a2adb=_0x12c35e['invokeId'])!=null?_0x2a2adb:'','executionId':(_0x1bbe19=_0x12c35e[_0x518d25(0x27c)])!=null?_0x1bbe19:''};try{const _0x1b8e01=await this[_0x518d25(0x2e5)][_0x518d25(0x260)](_0x1b0ca2,{'body':_0x117dd0});return _0x1b8e01[_0x518d25(0xfe)][_0x518d25(0x232)]&&_0x1b8e01[_0x518d25(0xfe)][_0x518d25(0x232)][_0x518d25(0x302)]!==Z['OK']?_0x518d25(0x187):_0x1b8e01['body']['result'];}catch{return _0x518d25(0x187);}}};dt=Fn([Ae(0x0,_0x2ad077),Ae(0x1,_0x5be279(_0x35064f)),Ae(0x2,_0x35b32a)],dt);const St=0x7530,It=_0x3fd5ef(0x21b);class rr extends _0x4f00b7{constructor(){const _0x4ad7a5=_0x3fd5ef;super(),_(this,_0x4ad7a5(0x300),_0xba23d8()),_(this,_0x4ad7a5(0x306),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,_0x4ad7a5(0x188),new Map()),_(this,_0x4ad7a5(0x22f),new Map()),this[_0x4ad7a5(0x333)]();}[_0x3fd5ef(0x1f2)](){const _0x45a5c7=_0x3fd5ef;super['dispose'](),this['_clearOtherTimers'][_0x45a5c7(0x2dc)]((_0x38ddca,_0x579dac)=>this[_0x45a5c7(0x315)](_0x579dac)),this[_0x45a5c7(0x14d)]&&window['clearInterval'](this[_0x45a5c7(0x14d)]);}[_0x3fd5ef(0x278)](_0x55147f){return this['_ensureSubject'](_0x55147f)['pipe'](_0x2ed732());}[_0x3fd5ef(0x2a1)](_0x124ce1){const _0x46a150=_0x3fd5ef;this['_selfUnitIDs'][_0x46a150(0x22a)]===0x0&&this[_0x46a150(0x153)](),this[_0x46a150(0x306)][_0x46a150(0x166)](_0x124ce1),this[_0x46a150(0x354)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x124ce1],'isForwarded':!0x1});}[_0x3fd5ef(0x2d6)](_0x216d2a){const _0x475a19=_0x3fd5ef;this[_0x475a19(0x306)][_0x475a19(0x236)](_0x216d2a),this[_0x475a19(0x306)]['size']===0x0&&this[_0x475a19(0x14d)]&&window[_0x475a19(0x1c1)](this[_0x475a19(0x14d)]);}[_0x3fd5ef(0x333)](){const _0x420497=_0x3fd5ef;this[_0x420497(0x346)](_0x2e8f72(_0x22a663(window,_0x420497(0x18f))[_0x420497(0xf9)](_0x4fd073=>{const _0xda49c2=_0x420497;if(_0x4fd073[_0xda49c2(0x12a)]!==It||!_0x4fd073['newValue'])return;const _0x3f81df=JSON['parse'](_0x4fd073[_0xda49c2(0x290)]);this[_0xda49c2(0x115)](_0x3f81df);}))),window[_0x420497(0x184)](_0x420497(0x331),()=>this[_0x420497(0x354)]({'type':0x1,'memberID':this[_0x420497(0x300)],'unitIDs':Array[_0x420497(0x136)](this[_0x420497(0x306)])}));}[_0x3fd5ef(0x115)](_0xd44c04){const _0x41a93f=_0x3fd5ef;switch(_0xd44c04['type']){case 0x0:this[_0x41a93f(0x2ff)](_0xd44c04);break;case 0x1:this[_0x41a93f(0x293)](_0xd44c04);break;case 0x2:this[_0x41a93f(0x1df)](_0xd44c04);break;}}[_0x3fd5ef(0x2ff)](_0x4f5448){const _0x4a7cd5=_0x3fd5ef,{unitIDs:_0x497d36,memberID:_0x5529c6,isForwarded:_0x2d1cdc}=_0x4f5448;_0x497d36[_0x4a7cd5(0x2dc)](_0x188dce=>{const _0x1ace6d=_0x4a7cd5;if(!_0x2d1cdc&&this[_0x1ace6d(0x133)][_0x1ace6d(0x143)](_0x188dce)&&this['_ensureSubject'](_0x188dce)[_0x1ace6d(0x192)](_0x608ac7[_0x1ace6d(0x183)]),!this[_0x1ace6d(0x133)][_0x1ace6d(0x143)](_0x188dce)||!this[_0x1ace6d(0x133)]['get'](_0x188dce)['has'](_0x5529c6)){const _0x5851f4=this[_0x1ace6d(0x133)][_0x1ace6d(0x295)](_0x188dce)||new Set();_0x5851f4[_0x1ace6d(0x166)](_0x5529c6),this[_0x1ace6d(0x133)][_0x1ace6d(0x190)](_0x188dce,_0x5851f4),this[_0x1ace6d(0x12f)](_0x5529c6);}}),_0x2d1cdc||this['_send']({'type':0x0,'memberID':this[_0x4a7cd5(0x300)],'unitIDs':[...this[_0x4a7cd5(0x306)]],'isForwarded':!0x0});}[_0x3fd5ef(0x12f)](_0x4dc07d){const _0x4e334b=_0x3fd5ef;this[_0x4e334b(0x315)](_0x4dc07d);const _0x29e47c=window['setTimeout'](()=>{const _0x554eec=_0x4e334b;this['_unitOnClients'][_0x554eec(0x2dc)](_0x4a097a=>{const _0x3849b5=_0x554eec;_0x4a097a[_0x3849b5(0x236)](_0x4dc07d);});},St*0x2);this['_clearOtherTimers'][_0x4e334b(0x190)](_0x4dc07d,_0x29e47c);}['_removeClearOtherTimer'](_0x387e05){const _0x662c61=_0x3fd5ef;if(this['_clearOtherTimers'][_0x662c61(0x143)](_0x387e05)){const _0x41bd54=this[_0x662c61(0x188)][_0x662c61(0x295)](_0x387e05);_0x41bd54&&window['clearTimeout'](_0x41bd54),this[_0x662c61(0x188)][_0x662c61(0x190)](_0x387e05,null);}}[_0x3fd5ef(0x293)](_0x46a8f4){const _0x2e41da=_0x3fd5ef,{memberID:_0x454005,unitIDs:_0x88eb50}=_0x46a8f4;_0x88eb50[_0x2e41da(0x2dc)](_0x8fc30d=>{const _0x126d5f=_0x2e41da;var _0x1194bb;const _0x4eb1c3=this['_unitOnClients'][_0x126d5f(0x295)](_0x8fc30d);_0x4eb1c3&&(_0x4eb1c3[_0x126d5f(0x236)](_0x454005),(_0x1194bb=this[_0x126d5f(0x2b4)](_0x8fc30d))==null||_0x1194bb[_0x126d5f(0x192)](_0x4eb1c3['size']===0x0?_0x608ac7[_0x126d5f(0x26f)]:_0x608ac7[_0x126d5f(0x183)]));}),this[_0x2e41da(0x315)](_0x454005);}['_handleHeartbeatEvent'](_0x426edb){const _0x3c3cf3=_0x3fd5ef;this[_0x3c3cf3(0x12f)](_0x426edb[_0x3c3cf3(0x322)]);}['_send'](_0x3e75cd){localStorage['setItem'](It,JSON['stringify'](_0x3e75cd));}['_scheduleHeartbeat'](){const _0x580191=_0x3fd5ef;this['_heartbeatTimer']=window[_0x580191(0x14e)](()=>{const _0x54416b=_0x580191;this[_0x54416b(0x354)]({'type':0x2,'memberID':this['_id']});},St);}[_0x3fd5ef(0x2b4)](_0x269165){const _0x18cd43=_0x3fd5ef;return this[_0x18cd43(0x22f)][_0x18cd43(0x143)](_0x269165)||this['_unitStatus'][_0x18cd43(0x190)](_0x269165,new _0x35a309(_0x608ac7[_0x18cd43(0x26f)])),this['_unitStatus']['get'](_0x269165);}}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 _0x3ec352=_0x437b;(function(_0x533c5d,_0x26e353){const _0xe06bac=_0x437b,_0x479897=_0x533c5d();while(!![]){try{const _0x55442c=-parseInt(_0xe06bac(0x120))/0x1+parseInt(_0xe06bac(0x2d0))/0x2*(parseInt(_0xe06bac(0x2fc))/0x3)+parseInt(_0xe06bac(0x2d6))/0x4*(parseInt(_0xe06bac(0x35b))/0x5)+-parseInt(_0xe06bac(0x109))/0x6+-parseInt(_0xe06bac(0x1d6))/0x7+-parseInt(_0xe06bac(0x346))/0x8+parseInt(_0xe06bac(0x342))/0x9*(parseInt(_0xe06bac(0x25f))/0xa);if(_0x55442c===_0x26e353)break;else _0x479897['push'](_0x479897['shift']());}catch(_0x325f13){_0x479897['push'](_0x479897['shift']());}}}(_0x25ec,0xe45ab));var Yt=Object[_0x3ec352(0x16d)],Wt=(_0xbf55ab,_0x5243bc,_0x287123)=>_0x5243bc in _0xbf55ab?Yt(_0xbf55ab,_0x5243bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x287123}):_0xbf55ab[_0x5243bc]=_0x287123,_=(_0x15d98f,_0x3bb01c,_0x4eedf1)=>Wt(_0x15d98f,typeof _0x3bb01c!=_0x3ec352(0x32c)?_0x3bb01c+'':_0x3bb01c,_0x4eedf1);import{jsx as _0x520643,jsxs as _0x46b063}from'react/jsx-runtime';import{CollaborationStatus as _0xed7e82,CollaborationSessionService as _0x19842d,CollaborationController as _0x55b9c2,DataLoaderService as _0x55b3a4,MemberService as _0xcda09a,SessionStatus as _0x1f3d15,ILocalCacheService as _0x223ca0,CollaborationUIEventService as _0x1fe96a,CollaborationUIEventId as _0x5a7f32,DocCollaborationEntity as _0x5aa8f0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2fa9c5,getLocalCacheKey as _0x4cf3d4,LOCAL_CACHE_INTERVAL as _0x161007,LOCAL_CACHE_INTERVAL_KEY as _0xb0b56,UniverCollaborationClientPlugin as _0x303e23,CollaborationSocketService as _0xf24f53,DEFAULT_WS_SESSION_TICKET_URL as _0x66e85b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5c50fc,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x38e1dc,UnitStatus as _0x5c1bd0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x498bd0,IUniverInstanceService as _0x5bb534,Inject as _0x4c0fac,Injector as _0x241db3,Disposable as _0xbbfd04,createIdentifier as _0x19144e,ILogService as _0x54cafd,ICommandService as _0x234cad,Optional as _0x2fa6ba,RxDisposable as _0x4e9bf2,Workbook as _0x469424,DOC_RANGE_TYPE as _0x61a77c,debounce as _0x454746,Rectangle as _0xbdc8de,DisposableCollection as _0x3cfaf3,toDisposable as _0x2c5ac1,UniverInstanceType as _0x560022,generateRandomId as _0x1f3cf5,COLORS as _0x3cc9d6,ColorKit as _0x585da0,ThemeService as _0x334c7e,fromEventSubject as _0x4dedaf,Tools as _0x2aaf32,CommandType as _0x2dbe42,IConfigService as _0x305bbd,CanceledError as _0x3316fd,isFormulaString as _0x1136c8,isFormulaId as _0x50cc37,ILocalStorageService as _0x465dbb,DependentOn as _0x584864,Plugin as _0x5d525e,merge as _0x286f03,registerDependencies as _0x5ffac1,mergeOverrideWithDependencies as _0x25bca4,touchDependencies as _0x2983e0}from'@univerjs/core';import{useObservable as _0x270a84,useDependency as _0x18f4a3,IUIPartsService as _0x464485,BuiltInUIPart as _0x5edbb3,connectInjector as _0x48cea3,IBeforeCloseService as _0x488919,IMessageService as _0x12f42d,INotificationService as _0x26656e}from'@univerjs/ui';import{BehaviorSubject as _0x16c712,switchMap as _0x29d1a7,of as _0x4c8a6d,takeUntil as _0x451ca1,debounceTime as _0x1e2f8f,Subject as _0x201adb,filter as _0x11df95,merge as _0x42d0c5,combineLatest as _0x4e3cde,fromEvent as _0x27f9ea,shareReplay as _0x504a7c,mapTo as _0x13be9d,distinctUntilChanged as _0xb831}from'rxjs';import{Tooltip as _0x1a1384,clsx as _0x3067b0,MessageType as _0x5187ea}from'@univerjs/design';import{useRef as _0x2e394a,createElement as _0x44d82c,forwardRef as _0x335a3d,useCallback as _0x11197c}from'react';import{IRemoteInstanceService as _0x43d2e2}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x11be8a,RefRangeService as _0x47b355,SetSelectionsOperation as _0x34681b,SheetsSelectionsService as _0x167a90,EffectRefRangId as _0xf1a21,handleIRemoveRow as _0x3966d1,handleIRemoveCol as _0x283883,handleMoveRange as _0x2a999d,handleInsertRow as _0x2c2b92,handleInsertRangeMoveRight as _0x2aaf9c,handleInsertRangeMoveDown as _0x370511,handleInsertCol as _0x1174ae,handleDeleteRangeMoveUp as _0x19454f,handleDeleteRangeMoveLeft as _0x1e88dd,runRefRangeMutations as _0x33e6ae}from'@univerjs/sheets';import{Shape as _0x2831b2,Rect as _0x2c78d1,getColor as _0x18ff82,RegularPolygon as _0x3e0ab3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x36a1db,Vector2 as _0x533d50,SHEET_VIEWPORT_KEY as _0x509f66,IRenderManagerService as _0x5c6014}from'@univerjs/engine-render';import{HTTPService as _0x90f763,ISocketService as _0x3c33c4,WebSocketService as _0x5d4b34}from'@univerjs/network';import{IDocClipboardService as _0x3200ba,NodePositionConvertToCursor as _0x592cf6,NodePositionConvertToRectRange as _0x622a72,TEXT_RANGE_LAYER_INDEX as _0x5e29a0,SetDocZoomRatioOperation as _0x400b0f,DocIMEInputManagerService as _0x502bd3,DocStateChangeManagerService as _0x234a8a}from'@univerjs/docs-ui';import{IImageIoService as _0x1d5733}from'@univerjs/drawing';import{ITransformService as _0x1d7b40,CollaborationEvent as _0x39fec4,isTransformMutationFailure as _0x50e290,isTransformMutationsWithChangesetSuccess as _0x22b4d1,RevisionService as _0x409ba3,ISnapshotServerService as _0x4a8570}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x57c58c,RichTextEditingMutation as _0x5892c8,DocSelectionManagerService as _0x2c81c4,DocSkeletonManagerService as _0x2f9fae}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3bf6a5,serializeRangeWithSheet as _0x1e0c19,FormulaExecuteStageType as _0x27c50c,FormulaExecutedStateType as _0x290d6f,SetFormulaCalculationStartMutation as _0x27aca5,SetFormulaCalculationNotificationMutation as _0x1bfb73}from'@univerjs/engine-formula';import{map as _0x108aa2,filter as _0x332e97,throttleTime as _0x572a55,takeUntil as _0x4b0b95,switchMap as _0x54129b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x42e4bb,getCoordByCell as _0x5669fa,getSheetObject as _0x5304d4}from'@univerjs/sheets-ui';function Ge({ref:_0x13c045,..._0x3cee28}){const _0x40142c=_0x3ec352,{icon:_0x1bcee4,id:_0x5b88ce,className:_0x4ddb8e,extend:_0x48062,..._0x467449}=_0x3cee28,_0xd08bae=(_0x40142c(0x235)+_0x5b88ce+'\x20'+(_0x4ddb8e||''))[_0x40142c(0x172)](),_0xec868b=_0x2e394a('_'+vi());return At(_0x1bcee4,''+_0x5b88ce,{'defIds':_0x1bcee4[_0x40142c(0x2e2)],'idSuffix':_0xec868b['current']},{'ref':_0x13c045,'className':_0xd08bae,..._0x467449},_0x48062);}function At(_0x2f9a25,_0x20f71d,_0x39f57a,_0x4f2b86,_0x341f46){const _0xeb6309=_0x3ec352;return _0x44d82c(_0x2f9a25[_0xeb6309(0x31c)],{'key':_0x20f71d,...gi(_0x2f9a25,_0x39f57a,_0x341f46),..._0x4f2b86},(Ei(_0x2f9a25,_0x39f57a)['children']||[])['map']((_0x59adcf,_0x5621c0)=>At(_0x59adcf,_0x20f71d+'-'+_0x2f9a25['tag']+'-'+_0x5621c0,_0x39f57a,void 0x0,_0x341f46)));}function gi(_0x12f9ff,_0x363879,_0x4c84d7){const _0x4b4b93=_0x3ec352,_0x245b6a={..._0x12f9ff[_0x4b4b93(0x1e4)]};_0x4c84d7!=null&&_0x4c84d7[_0x4b4b93(0x187)]&&_0x245b6a['fill']==='colorChannel1'&&(_0x245b6a[_0x4b4b93(0x14e)]=_0x4c84d7[_0x4b4b93(0x187)]),_0x12f9ff['tag']===_0x4b4b93(0x327)&&_0x245b6a['id']&&(_0x245b6a['id']=_0x245b6a['id']+_0x363879['idSuffix']),Object['entries'](_0x245b6a)[_0x4b4b93(0x2af)](([_0x14f559,_0x39a56c])=>{const _0x4641fd=_0x4b4b93;_0x14f559===_0x4641fd(0x327)&&typeof _0x39a56c==_0x4641fd(0x252)&&(_0x245b6a[_0x14f559]=_0x39a56c[_0x4641fd(0x195)](/url\(#(.*)\)/,_0x4641fd(0x2db)+_0x363879[_0x4641fd(0x222)]+')'));});const {defIds:_0x56ef42}=_0x363879;return!_0x56ef42||_0x56ef42[_0x4b4b93(0x2ab)]===0x0||(_0x12f9ff[_0x4b4b93(0x31c)]===_0x4b4b93(0x259)&&_0x245b6a[_0x4b4b93(0x23d)]&&(_0x245b6a['xlink:href']=_0x245b6a[_0x4b4b93(0x23d)]+_0x363879['idSuffix']),Object[_0x4b4b93(0x138)](_0x245b6a)['forEach'](([_0x2300c3,_0x136540])=>{const _0xf10007=_0x4b4b93;typeof _0x136540==_0xf10007(0x252)&&(_0x245b6a[_0x2300c3]=_0x136540[_0xf10007(0x195)](/url\(#(.*)\)/,_0xf10007(0x2db)+_0x363879[_0xf10007(0x222)]+')'));})),_0x245b6a;}function Ei(_0x3e026a,_0x5ca611){const _0x1f169e=_0x3ec352;var _0x330f04;const {defIds:_0xa72653}=_0x5ca611;return!_0xa72653||_0xa72653[_0x1f169e(0x2ab)]===0x0?_0x3e026a:_0x3e026a['tag']===_0x1f169e(0x2e0)&&((_0x330f04=_0x3e026a[_0x1f169e(0x1cb)])!=null&&_0x330f04[_0x1f169e(0x2ab)])?{..._0x3e026a,'children':_0x3e026a['children']['map'](_0x1b0338=>typeof _0x1b0338[_0x1f169e(0x1e4)]['id']==_0x1f169e(0x252)&&_0xa72653&&_0xa72653[_0x1f169e(0x1ad)](_0x1b0338[_0x1f169e(0x1e4)]['id'])?{..._0x1b0338,'attrs':{..._0x1b0338[_0x1f169e(0x1e4)],'id':_0x1b0338[_0x1f169e(0x1e4)]['id']+_0x5ca611[_0x1f169e(0x222)]}}:_0x1b0338)}:_0x3e026a;}function vi(){const _0x4e6641=_0x3ec352;return Math[_0x4e6641(0x161)]()[_0x4e6641(0x118)](0x24)[_0x4e6641(0x2ea)](0x2,0x8);}Ge[_0x3ec352(0x1dd)]='UniverIcon';const pi={'tag':_0x3ec352(0x329),'attrs':{'xmlns':_0x3ec352(0x1a8),'fill':_0x3ec352(0x233),'viewBox':_0x3ec352(0x2a9),'width':'1em','height':_0x3ec352(0x257)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x3ec352(0x30e),'d':_0x3ec352(0x2aa),'strokeLinecap':_0x3ec352(0x2a7),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3ec352(0x2e0),'attrs':{},'children':[{'tag':_0x3ec352(0x18a),'attrs':{'id':_0x3ec352(0x2d2)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'fill':'white','d':_0x3ec352(0x298)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x335a3d(function(_0x5d820e,_0x2190fa){const _0x17d29c=_0x3ec352;return _0x44d82c(Ge,Object[_0x17d29c(0x271)]({},_0x5d820e,{'id':_0x17d29c(0x351),'ref':_0x2190fa,'icon':pi}));});Pt[_0x3ec352(0x1dd)]=_0x3ec352(0x2fa);const Oi={'tag':_0x3ec352(0x329),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3ec352(0x233),'viewBox':_0x3ec352(0x292),'width':'1em','height':_0x3ec352(0x257)},'children':[{'tag':'g','attrs':{'clipPath':_0x3ec352(0x250)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'stroke':_0x3ec352(0x30e),'d':_0x3ec352(0x186),'strokeLinecap':_0x3ec352(0x2a7),'strokeLinejoin':_0x3ec352(0x2a7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3ec352(0x18a),'attrs':{'id':_0x3ec352(0x176)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'fill':_0x3ec352(0x2d7),'d':_0x3ec352(0x298),'transform':_0x3ec352(0x224)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x335a3d(function(_0x478d9e,_0x103084){const _0x2a722d=_0x3ec352;return _0x44d82c(Ge,Object[_0x2a722d(0x271)]({},_0x478d9e,{'id':'on-line-icon','ref':_0x103084,'icon':Oi}));});wt['displayName']=_0x3ec352(0x260);function Ti(_0x31981b){const _0x144dfe=_0x3ec352;switch(_0x31981b){case _0xed7e82[_0x144dfe(0x27b)]:return _0x144dfe(0x1d0);case _0xed7e82[_0x144dfe(0x22a)]:return _0x144dfe(0x234);case _0xed7e82[_0x144dfe(0x158)]:return'collabStatus.fetchMiss';case _0xed7e82[_0x144dfe(0x2a3)]:return _0x144dfe(0x299);case _0xed7e82[_0x144dfe(0x311)]:case _0xed7e82['AWAITING_WITH_PENDING']:return _0x144dfe(0x340);case _0xed7e82[_0x144dfe(0x21e)]:case _0xed7e82[_0x144dfe(0x17f)]:return _0x144dfe(0x1ba);}}function Ci(_0x25628c){const _0x2c8725=_0x3ec352,{status$:_0x38d13}=_0x25628c,_0x2727f5=_0x270a84(_0x38d13,_0xed7e82[_0x2c8725(0x2a3)]),_0x5071bb=_0x18f4a3(_0x498bd0),_0x548cfb=_0x18f4a3(_0x19842d),_0x303cc4=_0x2727f5!==_0xed7e82[_0x2c8725(0x27b)],_0x5302f7=_0x5071bb['t'](Ti(_0x2727f5)),_0x5ae04e=_0x303cc4?_0x520643(wt,{}):_0x520643(Pt,{}),_0x139c4e=_0x11197c(()=>{const _0x450a71=_0x2c8725;_0x303cc4||_0x548cfb[_0x450a71(0x24d)]();},[_0x303cc4,_0x548cfb]);function _0x4a2818(){const _0x4449ad=_0x2c8725;return _0x46b063(_0x4449ad(0x1c9),{'className':_0x4449ad(0x31e),'onClick':_0x139c4e,'children':[_0x520643(_0x4449ad(0x1c9),{'className':_0x3067b0(_0x4449ad(0x21c),{'univer-text-green-500':_0x303cc4,'univer-text-red-500':!_0x303cc4}),'children':_0x5ae04e}),_0x520643(_0x4449ad(0x1c9),{'className':_0x4449ad(0x11c),'children':_0x5302f7})]});}return _0x303cc4?_0x4a2818():_0x520643(_0x1a1384,{'title':_0x5071bb['t'](_0x2c8725(0x16a)),'children':_0x4a2818()});}var Ri=Object[_0x3ec352(0x232)],Di=(_0x5b1b43,_0x4312a4,_0x47068f,_0x2da695)=>{const _0x4564b9=_0x3ec352;for(var _0x4d2768=_0x2da695>0x1?void 0x0:_0x2da695?Ri(_0x4312a4,_0x47068f):_0x4312a4,_0x1fb67d=_0x5b1b43[_0x4564b9(0x2ab)]-0x1,_0x39ae3d;_0x1fb67d>=0x0;_0x1fb67d--)(_0x39ae3d=_0x5b1b43[_0x1fb67d])&&(_0x4d2768=_0x39ae3d(_0x4d2768)||_0x4d2768);return _0x4d2768;},se=(_0x251d7f,_0x789892)=>(_0x370f9b,_0x3960a7)=>_0x789892(_0x370f9b,_0x3960a7,_0x251d7f);let ae=class extends _0xbbfd04{constructor(_0x13e2a5,_0x36f446,_0x2f17de,_0xdb6781){const _0x18e999=_0x3ec352;super(),_(this,_0x18e999(0x2cd),new _0x16c712(_0xed7e82['NOT_COLLAB'])),(this[_0x18e999(0x334)]=_0x13e2a5,this[_0x18e999(0x344)]=_0x36f446,this[_0x18e999(0x354)]=_0x2f17de,this[_0x18e999(0x315)]=_0xdb6781,this['_initStatusComponent'](),this[_0x18e999(0x192)]());}[_0x3ec352(0x192)](){const _0x571370=_0x3ec352;this[_0x571370(0x29b)](this[_0x571370(0x334)][_0x571370(0x2a8)][_0x571370(0x1cf)](_0x29d1a7(()=>{const _0x1f6e46=_0x571370,_0x562c57=this[_0x1f6e46(0x334)][_0x1f6e46(0x274)]();return _0x562c57?this[_0x1f6e46(0x354)][_0x1f6e46(0x294)](_0x562c57[_0x1f6e46(0x15c)]()):_0x4c8a6d(null);}),_0x29d1a7(_0x5a2409=>_0x5a2409?_0x5a2409['status$']:_0x4c8a6d(_0xed7e82[_0x571370(0x2a3)])))[_0x571370(0x261)](_0x309213=>{const _0x20edad=_0x571370;this[_0x20edad(0x2cd)]['next'](_0x309213);}));}[_0x3ec352(0x2ad)](){const _0x35668f=_0x3ec352;this[_0x35668f(0x29b)](this['_uiPartsService']['registerComponent'](_0x5edbb3[_0x35668f(0x2de)],()=>_0x48cea3(Ni({'status$':this['_status$'][_0x35668f(0x2c6)]()}),this[_0x35668f(0x344)])));}};ae=Di([se(0x0,_0x5bb534),se(0x1,_0x4c0fac(_0x241db3)),se(0x2,_0x4c0fac(_0x55b9c2)),se(0x3,_0x464485)],ae);function Ni(_0x405a90){const {status$:_0xbff4bc}=_0x405a90;return function(){return _0x520643(Ci,{'status$':_0xbff4bc});};}function _0x25ec(){const _0x26cd5f=['newValue','_urlService','UNAUTHENTICATED','34607540kGHmsj','OnLineIcon','subscribe','_handleJoinEvent','textRanges','get','?taskId=','RemoveRowCommandId','_getFormulaLimitStatus','_localeService','_heartbeatTimer','_collaborationUIEventService','[Window\x20Error]:\x20','transformStateCache','fillStyle','USERS_LEAVE','_initUserListener','_startSheetCollabCursor','assign','UNIVER_DOC','transformIMECache','getFocusedUnit','REDEMPTION_CODE_HAS_BEEN_CREATED','storage','SNAPSHOT_HAS_BEEN_REMOVED','delete','collab-text-anchor-','getSkeleton','OFFLINE','getMemberID','saveImage','code','_logService','color','_anchor','YUUMI_ASYNCIO_CANCELLED','values','/universer-api/license/formula/limit/start','_cursors','getValue','_dataLoaderService','endRow','getColorFromTheme','filename','_hasFormulaInDirtyRanges','undoState','stringify','then','_pollingInterval','_initCommandInterceptor','NO_OTHER_CLIENTS_EDITING','0\x200\x2017\x2016','InsertRowCommandId','getCollabEntity$','docStateChange$','startColumn','_initUnhandledRejectionListener','M0\x200H16V16H0z','collabStatus.notCollab','loadOfflineData','disposeWithMe','collab-text-range-','resize','addHandlerCallback','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','body','_config','editingUnit','NOT_COLLAB','search','_onRefRangeChange','_docStateChangeManagerService','round','focused$','0\x200\x2016\x2016','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','length','range','_initStatusComponent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','forEach','currentTheme$','ONLINE','with','_registerDependencies','_getAnchorBounding','saveTaskMap','getAncestorScale','skeleton','#FFF','YUUMI_URL_COL_OUT_OF_RANGE','loadUnit','REDEMPTION_CODE_NOT_STARTED','pluginName','_onCursorDelete','send','_taskIds','red.300','_uploadLog','transformMutation','triggerDblclick','getParam','APPLY_REJECT','asObservable','push','collab-rect-range-','_drawTextRange','m1Prime','_docTransformIMECacheService','_backgroundColor','_status$','shift','_scheduleClearOtherTimer','2278zjcesx','_handleHeartbeatEvent','off-line-icon_clip0_910_343','bottom','getCellPositionByOffset','deepClone','4odmKEb','white','drawWith','ENTITLE_COUPON_EXPIRED','getOffsetConfig','url(#$1','totalFormulasToCalculate','EMAIL_VERIFY_CODE_MISMATCH','HEADER_MENU','_initResize','defs','_applyCommand','defIds','SUBMIT_CHANGESET_TIMEOUT','...','backgroundColor','column','roomMembers$','post','clearTimeout','substring','YUUMI_ALL_TABLES_IS_INVALID','_renderManagerService','onPointerMove$','sessionTicket','setItem','AUTHORIZE_CODE_ILLEGAL','jiqing.500','_textBubble','redoState','onPointerEnter$','_saveCache','restore','_entities','executionId','_updateSubUnitFromURLParams','OffLineIcon','MOBILE_HAS_BEEN_BOUND','3114zZjiKN','getVpScrollXYInfoByPosToVp','exhaustSavingTask','ENTITLE_REPORT_LIMIT_EXCEED','_setupBeforeClosingHandler','transformRemoteChangeset','isEditing','max','engine','complete','WECHAT_HAS_BEEN_BOUND','_docSyncEditingCollabCursorService','_toggleOnline','_initEntityListener','APPLY_NON_SEQUENTIAL_REVISION','_document','registerRenderModule','_anchorDot','currentColor','ACTIVE_UNIT_EVENT_CHANNEL','size','AWAITING','getRangePointData','min','assignAColorForMemberID','_uiPartsService','measureText','SNAPSHOT_INVALID_SNAPSHOT','collaboration.offline-data-not-saved','_send','_docSkeleton','session.will-retry','tag','startFormulaLimitUrl','univer-flex\x20univer-items-center','subscribeEvent','_cursorShapes','_refRangeService','setShapeProps','getCollabCursors$','ENTITLE_USE_COUPON_NOT_1ST_TRADE','formula.calculation.started','_checkAndWaitForCalculationPermission','mask','session.connection-failed','svg','COMPLETION_FINISHED','invokeId','symbol','next','REDEMPTION_USER_NOT_ELIGIBLE','_getMergeRange','_entityInit$','_drawAnchor','_themeService','YUUMI_RATE_OVER_LIMIT','_univerInstanceService','_cursor','/universer-api/license/formula/limit/status','ENSURE_SNAPSHOT_EXECUTION','add','addObjects','_render','UNIVER_SHEET','replaceDocRanges','_docClipboardService','_currentUsage','unshift','collabStatus.syncing','cursorInfo','9kZLfoj','APPLY_PERMISSION_DENIED','_injector','YUUMI_NO_CUBOID_FOR_QUESTION','8302968ivfvXR','getUniverSheetInstance','findNodePositionByCharIndex','SOCKET_FAILED_RETRY','_lastResponseTimestamp','onTransformChange$','_beforeCloseService','parse','setParam','registerRefRange','_memberService','off-line-icon','imageSourceType','UPDATE_CURSOR','_collaborationController','searchParams','getActiveSheet','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnhiddenWorksheets','result','getViewport','3626945KHFLfj','getCurrentRevOfUnit','_docTransformStateCacheService','type','8148054vZidMT','INVITE_CODE_ALREADY_BOUND','syncEditingCollabCursor','/run/','[RemoteUniscriptService]:\x20no\x20focused\x20unit','setActiveRange','PAYMENT_CHANNEL_NOT_SUPPORT','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_colorIndex','_collabCursorState$','_init','_docTransformSelectionsService','disposeUnit','Unknown\x20user','INVITE_CODE_HAS_BEEN_UES','toString','lineTo','sheetId','FromArray','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','unit','fillRule','getRenderById','956244hfveFp','_monkeyPatchLogService','key','REDEMPTION_INVALID_CODE','top','CURRENT_STATUS_CANNOT_OPERATE','getItem','addObject','join','saveOfflineData','getSheetId','USER_IS_ANONYMOUS','Error','_color','CONNECTOR_DATA_TOO_LARGE','limitInfo','_context','path','_maxFormulaLimit','INVITE_CODE_REQUIRED','sessionStatus$','_disabled','_transformService','CHANGESET_REVISION_CONFILICT','entries','socket$','_assignedColors','ENTITLE_CAN_NOT_BUY_LOWER_OTP','init','permission.title','executeCommand','unsubscribe','collaboration-client-ui.config','updateOfflineData','height','location','_shapes','PY_RUNTIME_SCRIPT_ERROR','UNRECOGNIZED','INVALID_INVITE_CODE','runId','_roomMembers$','_onCursorUpdate','_transformUndoRedoStack','YUUMI_UNABLE_LOAD_URL','params','fill','_localCacheService','APPLY_DUPLICATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','doc.mutation.rich-text-editing','black','dirtyRanges','ERROR_AGAIN','m2Prime','_configService','FETCH_MISS','all','some','_eventUnsubscribe','getUnitId','_imageIoService','hide','uni.network.url-service','USER_NOT_FOUND','random','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','setUndoRedoMutationParamsCache','text','_scene','[LogService\x20Error]:\x20','setTimeout','closePath','_saveTaskMap','collab-client.tooltip.reconnect','LICENSE_EXPORT_SIZE_EXCEEDED','_syncEditingCollabCursorService','defineProperty','INVALID_ARGUMENT','isArray','INTERNAL_ERROR','_collabCursorController','trim','getTypeOfUnitAdded$','moveTo','_id','on-line-icon_clip0_910_349','has','_instanceService','_getScale','_startDocCollabCursor','Success','removeEventListener','_revisionService','_toggleOffline','PENDING','roomMembers','selection','getMember','_lastPointer','JOIN_ROOM_FAILED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','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','colorChannel1','_hideTimer','labelPosition','clipPath','_localStorageService','[CollaborationDataLoaderController]','_cursorInfo$','name','LOGIN_FAILED','beginPath','unitId','_initStatusListener','_clearPolling','_scheduleSaving','replace','save','_releaseCalculationLimit','_hover','currentSkeleton$','TEXT','error','\x20at\x20','Failed','ENTITLE_INSUFFICIENT_QUOTA','_name','eventID','_scheduleHeartbeat','_hovered','transformSelections','from','LICENSE_IMPORT_SIZE_EXCEEDED','event$','set','http://www.w3.org/2000/svg','UNDEFINED','catch','beforeCommandExecuted','formula.calculation.waiting','includes','ALREADY_EXISTS','colno','_handleLeaveEvent','ticket','_getSheetObject','_updateLocalCursor','isActive','RemoveColCommandId','addClipboardHook','_range','enableFrontendLog','functionsExecutedState','collabStatus.synced','now','yellow.400','EMAIL_HAS_BEEN_BOUND','clearInterval','_drawRectRange','REDEMPTION_CODE_FULLY_REDEEMED','onCommandExecuted','NOT_FOUND','_unitStatus','YUUMI_CONNECTOR_URL_NOT_FOUND','formula.calculation.unable','wsSessionTicketUrl','getStateCache','ranges','div','map','children','_labelPosition','_initWindowErrorListener','createInstance','pipe','collabStatus.offline','MUTATION','_collabSessionService','href','_setFormulaLimitStatus','LOGIN_TOKEN_PROCESSING_FAILED','7566734LMwHOk','subunit','getConfig','show','_colorAssignService','evenodd','fillText','displayName','VIEW_MAIN','_messageService','CLOSE_ROOM','debug','rgba(255,\x20255,\x20255,\x200.01)','transformMutationsWithChangeset','attrs','stack','subUnitId','urlChange$','_initEvent','getUndoRedoMutationParamsCache','setStateCache','_updateURLWithCurrentState','START_CALCULATION','getMergeData','_cachedData','MoveRangeCommandId','_removeClearOtherTimer','stageInfo','unhandledrejection','_checkCalculationAvailable','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','addEventListener','_handleEvent','hovered','setAlpha','DATA_SOURCE_TOO_LARGE','getTypeOfUnitDisposed$','bind','ENTITLE_COUPON_USED_UP','transform','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_online','_session','_handleHover','_showGuardMessage','DeleteRangeMoveUpCommandId','getformulaLimitStatusUrl','data','_sheetSkeletonManagerService','_selfUnitIDs','_removeCollabCursors','USER_NOT_INVITED_CODE','endColumn','getSheetBySheetId','setInterval','collabCursorState$','PERMISSION_DENIED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','width','permission.content','split','session.collaboration-timeout','collaboration.single-unit.warning','Warning','_docSkeletonManagerService','unload','/universer-api/license/formula/limit/done','_refreshCollabCursors','OTHER_CLIENTS_EDITING','getCurrentSelections','univer-mr-2\x20univer-flex\x20univer-text-xl','_httpService','SYNCED','_updateCollabCursors','_startCalculationLimit','toRgbString','idSuffix','getUnitStatus$','translate(.97)','arc','_getSaveTimeout','InsertRangeMoveDownCommandId','requireSession','_setupSubUnitSync','CONFLICT','_notificationService','dispose','message','_transformPreviousActiveRange','APPLY_REVISION_CONFILICT','LICENSE_MAX_UNITS_EXCEEDED','_clearOtherTimers','getOwnPropertyDescriptor','none','collabStatus.conflict','univerjs-icon\x20univerjs-icon-','_draw','_unitOnClients','unitID','replaceState','history','mutations','startRow','xlink:href','_transformHistoryAndStateStack','application/json','origin','RECT','_ensureSubject','REDEMPTION_CODE_INACTIVE','blue.400','entityInit$','maxFormulaLimit','InsertRangeMoveRightCommandId','[Unhandled\x20Rejection]:\x20','contains','memberID','_memberID','dispose$','reconnect','_commandService','row','url(#on-line-icon_clip0_910_349)','_createSocketURL','string','getRelativeToViewportCoord','_collaborationSessionService','LICENSE_DISTRO_REJECTED','onMouseMove','1em','YUUMI_SUBSCRIPTION_NOT_FOUND','use','cursorInfo$','/universer-api/frontend/logs'];_0x25ec=function(){return _0x26cd5f;};return _0x25ec();}const yt=_0x19144e(_0x3ec352(0x15f));var bi=Object[_0x3ec352(0x232)],Li=(_0xd4a5fd,_0x1a0064,_0x4dc3f5,_0xb7f7eb)=>{for(var _0x1d88ec=_0xb7f7eb>0x1?void 0x0:_0xb7f7eb?bi(_0x1a0064,_0x4dc3f5):_0x1a0064,_0x211557=_0xd4a5fd['length']-0x1,_0x9d97e8;_0x211557>=0x0;_0x211557--)(_0x9d97e8=_0xd4a5fd[_0x211557])&&(_0x1d88ec=_0x9d97e8(_0x1d88ec)||_0x1d88ec);return _0x1d88ec;},K=(_0x3d1655,_0x39ef9c)=>(_0x35c2d3,_0x173f97)=>_0x39ef9c(_0x35c2d3,_0x173f97,_0x3d1655);let ce=class extends _0x4e9bf2{constructor(_0x470534,_0x403277,_0x406099,_0x4a3853,_0x58b8d2){const _0x51dd33=_0x3ec352;super(),this['_urlService']=_0x470534,this[_0x51dd33(0x27f)]=_0x403277,this[_0x51dd33(0x24e)]=_0x406099,this['_dataLoaderService']=_0x4a3853,_0x58b8d2?_0x58b8d2==null||_0x58b8d2['whenReady']()[_0x51dd33(0x28e)](()=>this['_init']()):(this[_0x51dd33(0x27f)][_0x51dd33(0x1e1)](_0x51dd33(0x18c),_0x51dd33(0x2ae)),this[_0x51dd33(0x113)]());}async['_init'](){const _0x4a937c=_0x3ec352,_0x368a00=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)](_0x4a937c(0x11d)),_0x2eeeec=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)](_0x4a937c(0x35e)),_0x5e272a=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)]('subunit');if(!_0x368a00||!_0x2eeeec){this[_0x4a937c(0x27f)][_0x4a937c(0x1e1)]('[CollaborationDataLoaderController]',_0x4a937c(0x357));return;}const _0x181d36=await this[_0x4a937c(0x287)][_0x4a937c(0x2ba)](_0x368a00,Number(_0x2eeeec),_0x5e272a);_0x181d36&&_0x181d36 instanceof _0x469424&&this[_0x4a937c(0x229)](_0x181d36);}async[_0x3ec352(0x229)](_0x5b5b92){const _0xe7180d=_0x3ec352;await this['_updateSubUnitFromURLParams'](_0x5b5b92),_0x5b5b92['activeSheet$']['pipe'](_0x451ca1(this[_0xe7180d(0x24c)]))[_0xe7180d(0x261)](_0xdd9e22=>{const _0x56a313=_0xe7180d;_0xdd9e22&&this[_0x56a313(0x1eb)](_0xdd9e22);}),this[_0xe7180d(0x25d)][_0xe7180d(0x1e7)][_0xe7180d(0x1cf)](_0x451ca1(this[_0xe7180d(0x24c)]))['subscribe'](()=>this[_0xe7180d(0x2f9)](_0x5b5b92));}[_0x3ec352(0x1eb)](_0x1bb1d9,_0x4a1ca9=!0x1){const _0x507946=_0x3ec352,_0x179c2b=this[_0x507946(0x25d)]['getParam'](_0x507946(0x1d7));_0x1bb1d9[_0x507946(0x12a)]()!==_0x179c2b&&this['_urlService'][_0x507946(0x34e)](_0x507946(0x1d7),_0x1bb1d9[_0x507946(0x12a)](),_0x4a1ca9);}async[_0x3ec352(0x2f9)](_0x61522c){const _0x199bd2=_0x3ec352;var _0x4a231b;const _0x3796fe=this[_0x199bd2(0x25d)]['getParam'](_0x199bd2(0x1d7));if(!_0x3796fe||!_0x61522c[_0x199bd2(0x20b)](_0x3796fe)){const _0x55da6b=_0x61522c[_0x199bd2(0x358)]()[0x0],_0x134f1a=_0x61522c[_0x199bd2(0x20b)](_0x55da6b);if(!_0x134f1a)return;this['_updateURLWithCurrentState'](_0x134f1a,!0x0),await this['_commandService'][_0x199bd2(0x13e)](_0x11be8a['id'],{'unitId':_0x61522c[_0x199bd2(0x15c)](),'subUnitId':_0x55da6b});return;}((_0x4a231b=_0x61522c[_0x199bd2(0x356)]())==null?void 0x0:_0x4a231b[_0x199bd2(0x12a)]())!==_0x3796fe&&await this['_commandService'][_0x199bd2(0x13e)](_0x11be8a['id'],{'unitId':_0x61522c['getUnitId'](),'subUnitId':_0x3796fe});}};ce=Li([K(0x0,yt),K(0x1,_0x54cafd),K(0x2,_0x234cad),K(0x3,_0x4c0fac(_0x55b3a4)),K(0x4,_0x2fa6ba(_0x43d2e2))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x49d543,_0xcda593,_0x58fc7d,_0x10c688)=>{const _0x37fb66=_0x3ec352;for(var _0x4202b6=_0x10c688>0x1?void 0x0:_0x10c688?Ui(_0xcda593,_0x58fc7d):_0xcda593,_0x8fe33f=_0x49d543[_0x37fb66(0x2ab)]-0x1,_0x42e3e3;_0x8fe33f>=0x0;_0x8fe33f--)(_0x42e3e3=_0x49d543[_0x8fe33f])&&(_0x4202b6=_0x42e3e3(_0x4202b6)||_0x4202b6);return _0x4202b6;},rt=(_0x4b0b51,_0x2ed4d2)=>(_0x8b13c8,_0x3217c7)=>_0x2ed4d2(_0x8b13c8,_0x3217c7,_0x4b0b51);let $e=class extends _0x4e9bf2{constructor(_0x5ce3e1,_0x55a491){const _0x3a4f0a=_0x3ec352;super(),this[_0x3a4f0a(0x33d)]=_0x5ce3e1,this[_0x3a4f0a(0x15d)]=_0x55a491,this[_0x3a4f0a(0x113)]();}[_0x3ec352(0x113)](){const _0x537fde=_0x3ec352,_0x517a6e=this;this[_0x537fde(0x29b)](this[_0x537fde(0x33d)][_0x537fde(0x1b6)]({'onBeforePasteImage':async _0x43bb3e=>{const _0x3e77ee=_0x537fde,_0x8b13a2=await _0x517a6e[_0x3e77ee(0x15d)][_0x3e77ee(0x27d)](_0x43bb3e);return _0x8b13a2?{'source':_0x8b13a2['source'],'imageSourceType':_0x8b13a2[_0x3e77ee(0x352)]}:null;}}));}};$e=Mi([rt(0x0,_0x3200ba),rt(0x1,_0x1d5733)],$e);const ot=['purple.300',_0x3ec352(0x2f1),'green.600',_0x3ec352(0x2c0),_0x3ec352(0x244),_0x3ec352(0x1bc)];class Ke extends _0xbbfd04{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x3ec352(0x314)](_0x35bcf1){const _0x4c973d=_0x3ec352;if(this[_0x4c973d(0x13a)]['has'](_0x35bcf1))return this[_0x4c973d(0x13a)][_0x4c973d(0x264)](_0x35bcf1);const _0x4f52b8=ot[this['_colorIndex']];return this[_0x4c973d(0x111)]=(this[_0x4c973d(0x111)]+0x1)%ot[_0x4c973d(0x2ab)],this[_0x4c973d(0x13a)]['set'](_0x35bcf1,_0x4f52b8),_0x4f52b8;}}function $t(_0x40ece6){let _0x4ec171='';for(const _0x588875 of _0x40ece6){const {startOffset:_0x5cffd6,endOffset:_0x1dae30,isActive:_0x491f73,rangeType:_0x4eb3d8,segmentId:_0x171166,segmentPage:_0x287d62}=_0x588875;_0x4ec171['length']&&(_0x4ec171+=','),_0x4ec171+=_0x5cffd6+':'+_0x1dae30+':'+(_0x491f73?'1':'0')+':'+_0x4eb3d8+':'+_0x171166+':'+_0x287d62;}return _0x4ec171;}function Ai(_0x47b824){const _0x225a54=_0x3ec352,_0x25269d=_0x47b824[_0x225a54(0x212)](','),_0x272c3e=[];for(const _0x5a86ef of _0x25269d){const [_0x1f412d,_0xb370e1,_0x220d85,_0x3e537f,_0x499984,_0x45b876]=_0x5a86ef[_0x225a54(0x212)](':');_0x272c3e['push']({'startOffset':Number(_0x1f412d),'endOffset':Number(_0xb370e1),'collapsed':_0x1f412d===_0xb370e1,'isActive':_0x220d85==='1','rangeType':_0x3e537f===_0x61a77c[_0x225a54(0x19a)]?_0x61a77c[_0x225a54(0x19a)]:_0x61a77c[_0x225a54(0x241)],'segmentId':typeof _0x499984==_0x225a54(0x252)?String(_0x499984):'','segmentPage':Number(_0x45b876!=null?_0x45b876:-0x1)});}return _0x272c3e[_0x225a54(0x15a)](_0x4cffc5=>_0x4cffc5[_0x225a54(0x1b4)])||(_0x272c3e[0x0][_0x225a54(0x1b4)]=!0x0),_0x272c3e;}class ze extends _0x4e9bf2{constructor(){const _0x5bf69c=_0x3ec352;super(...arguments),_(this,_0x5bf69c(0x112),new _0x16c712(null)),_(this,_0x5bf69c(0x20d),this[_0x5bf69c(0x112)]['asObservable']());}[_0x3ec352(0x10b)](_0x3843d0){const {unitID:_0x552898,memberID:_0x53dba5,textRanges:_0x35901b}=_0x3843d0,_0x277318=$t(_0x35901b);if(_0x277318==='')return;const _0x294ec0={'unitID':_0x552898,'memberID':_0x53dba5,'selection':_0x277318};this['_collabCursorState$']['next'](_0x294ec0);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x148e1e,_0x3b2c56,_0x20b0c6,_0x2a7ad8)=>{const _0x395e57=_0x3ec352;for(var _0x5dc670=_0x2a7ad8>0x1?void 0x0:_0x2a7ad8?Pi(_0x3b2c56,_0x20b0c6):_0x3b2c56,_0x454573=_0x148e1e[_0x395e57(0x2ab)]-0x1,_0x45c127;_0x454573>=0x0;_0x454573--)(_0x45c127=_0x148e1e[_0x454573])&&(_0x5dc670=_0x45c127(_0x5dc670)||_0x5dc670);return _0x5dc670;},A=(_0x4ac9ee,_0x335bd9)=>(_0x57a6b9,_0x52dffc)=>_0x335bd9(_0x57a6b9,_0x52dffc,_0x4ac9ee);const yi=0x12c,$i=0x64;let xe=class extends _0x4e9bf2{constructor(_0x455843,_0x3f7856,_0x32e282,_0x562be0,_0x2f7414,_0x5a4435,_0x410504,_0x575f69,_0x3c76e2){const _0x1bc176=_0x3ec352;super(),_(this,_0x1bc176(0x1ff),!0x1),_(this,'_init',!0x1),_(this,_0x1bc176(0x18d),new _0x16c712(new Map())),_(this,_0x1bc176(0x25a),this[_0x1bc176(0x18d)]['asObservable']()),_(this,_0x1bc176(0x149),new _0x16c712([])),_(this,_0x1bc176(0x2e7),this[_0x1bc176(0x149)][_0x1bc176(0x1cf)](_0x1e2f8f(yi))),_(this,'_updateLocalCursor',_0x454746(_0x954021=>{const _0xaf508c=_0x1bc176,_0x4fac75={'eventID':_0x39fec4[_0xaf508c(0x353)],'data':{'unitID':this[_0xaf508c(0x238)],'memberID':this[_0xaf508c(0x200)][_0xaf508c(0x27c)](),'selection':$t(_0x954021)}};this['_session'][_0xaf508c(0x2be)](_0x4fac75,this[_0xaf508c(0x238)]);},$i)),(this['unitID']=_0x455843,this['_session']=_0x3f7856,this[_0x1bc176(0x344)]=_0x32e282,this[_0x1bc176(0x1da)]=_0x562be0,this['_memberService']=_0x2f7414,this[_0x1bc176(0x16c)]=_0x5a4435,this[_0x1bc176(0x136)]=_0x410504,this[_0x1bc176(0x334)]=_0x575f69,this[_0x1bc176(0x24e)]=_0x3c76e2);}get[_0x3ec352(0x341)](){const _0x35e335=_0x3ec352;return this[_0x35e335(0x18d)]['getValue']();}get[_0x3ec352(0x180)](){const _0x10be6f=_0x3ec352;return this[_0x10be6f(0x149)][_0x10be6f(0x286)]();}['dispose'](){const _0x2d7c92=_0x3ec352;super[_0x2d7c92(0x22c)](),this[_0x2d7c92(0x18d)][_0x2d7c92(0x32d)](new Map()),this['_cursorInfo$'][_0x2d7c92(0x305)](),this[_0x2d7c92(0x149)][_0x2d7c92(0x32d)]([]),this[_0x2d7c92(0x149)][_0x2d7c92(0x305)]();}['init'](){const _0x3f6f75=_0x3ec352;this['_init']||(this[_0x3f6f75(0x113)]=!0x0,this[_0x3f6f75(0x200)][_0x3f6f75(0x134)][_0x3f6f75(0x1cf)](_0x451ca1(this[_0x3f6f75(0x24c)]))[_0x3f6f75(0x261)](_0x18d3f6=>{const _0x5d4705=_0x3f6f75;_0x18d3f6===_0x1f3d15[_0x5d4705(0x2b1)]?this['_toggleOnline']():this[_0x5d4705(0x17e)]();}),this[_0x3f6f75(0x200)][_0x3f6f75(0x1a6)][_0x3f6f75(0x1cf)](_0x451ca1(this['dispose$']))[_0x3f6f75(0x261)](_0x571606=>{const _0x318c52=_0x3f6f75,_0x48d8e1=_0x571606['eventID'];_0x48d8e1===_0x39fec4[_0x318c52(0x353)]&&this[_0x318c52(0x14a)](_0x571606),_0x48d8e1===_0x39fec4[_0x318c52(0x26e)]&&this[_0x318c52(0x2bd)](_0x571606);}),this[_0x3f6f75(0x29b)](this[_0x3f6f75(0x24e)][_0x3f6f75(0x1c1)](_0x35bbe7=>{const _0x2690b1=_0x3f6f75,_0x5d0877=_0x35bbe7[_0x2690b1(0x14d)];_0x5d0877!=null&&this[_0x2690b1(0x1ff)]&&_0x35bbe7['id']===_0x57c58c['id']&&_0x5d0877[_0x2690b1(0x191)]===this['unitID']&&_0x5d0877[_0x2690b1(0x302)]===!0x1&&_0x5d0877['ranges']['length']>0x0&&this[_0x2690b1(0x1b3)](_0x5d0877[_0x2690b1(0x1c8)]);})),this[_0x3f6f75(0x16c)][_0x3f6f75(0x20d)][_0x3f6f75(0x1cf)](_0x451ca1(this[_0x3f6f75(0x24c)]))[_0x3f6f75(0x261)](_0xf28b78=>{const _0x598453=_0x3f6f75;if((_0xf28b78==null?void 0x0:_0xf28b78[_0x598453(0x238)])!==this[_0x598453(0x238)])return;const _0x534e3f={'eventID':_0x39fec4['UPDATE_CURSOR'],'data':_0xf28b78};this[_0x598453(0x14a)](_0x534e3f);}),this[_0x3f6f75(0x29b)](this[_0x3f6f75(0x24e)][_0x3f6f75(0x1c1)](_0x11aed7=>{const _0x313358=_0x3f6f75;if(_0x11aed7[_0x313358(0x14d)]==null)return;const _0x2d8d38=_0x11aed7[_0x313358(0x14d)];if(_0x11aed7['id']!==_0x5892c8['id']||_0x2d8d38['unitId']!==this[_0x313358(0x238)])return;const _0x9a2375={'id':_0x313358(0x152),'params':_0x2d8d38},_0x7489e2=this[_0x313358(0x341)];for(const [_0x40b57f,_0x58644e]of _0x7489e2){const _0x390803={'id':_0x313358(0x152),'params':{'unitId':this[_0x313358(0x238)],'actions':null,'textRanges':_0x58644e['ranges']}},_0x463073=this['_transformService'][_0x313358(0x2c2)](_0x9a2375,_0x390803,!0x1);if(_0x50e290(_0x463073))throw _0x463073[_0x313358(0x19b)];_0x7489e2['set'](_0x40b57f,{..._0x58644e,'ranges':_0x463073[_0x313358(0x156)]['params'][_0x313358(0x263)]});}queueMicrotask(()=>{const _0x5f3446=_0x313358;this['_cursorInfo$'][_0x5f3446(0x32d)](_0x7489e2);});})));}[_0x3ec352(0x14a)](_0x22b86e){const _0x3b5a21=_0x3ec352;var _0x3c359e,_0x2bee0e;const {memberID:_0x5bbde6,selection:_0x3ea2b6}=_0x22b86e[_0x3b5a21(0x205)],_0x55931a=Ai(_0x3ea2b6),_0x45802f=(_0x2bee0e=(_0x3c359e=this[_0x3b5a21(0x350)][_0x3b5a21(0x182)](this['unitID'],_0x5bbde6))==null?void 0x0:_0x3c359e[_0x3b5a21(0x18e)])!=null?_0x2bee0e:_0x3b5a21(0x116),_0x3e1001={'color':this['_colorAssignService'][_0x3b5a21(0x314)](_0x5bbde6),'name':_0x45802f,'ranges':_0x55931a},_0x5dcf4c=this[_0x3b5a21(0x341)];_0x5dcf4c[_0x3b5a21(0x1a7)](_0x5bbde6,_0x3e1001),this[_0x3b5a21(0x18d)]['next'](_0x5dcf4c);}[_0x3ec352(0x2bd)](_0x4514cd){const _0x3ffd47=_0x3ec352,{memberID:_0xcd9177}=_0x4514cd[_0x3ffd47(0x205)],_0x59451f=this[_0x3ffd47(0x341)];_0x59451f[_0x3ffd47(0x278)](_0xcd9177),this[_0x3ffd47(0x18d)]['next'](_0x59451f);}[_0x3ec352(0x308)](){const _0x509ae3=_0x3ec352;var _0x4c4d9a;if(this[_0x509ae3(0x1ff)]=!0x0,((_0x4c4d9a=this[_0x509ae3(0x334)]['getFocusedUnit']())==null?void 0x0:_0x4c4d9a[_0x509ae3(0x15c)]())!==this['unitID'])return;const _0x1774ea=this['_injector'][_0x509ae3(0x264)](_0x2c81c4)['getDocRanges']();Array[_0x509ae3(0x16f)](_0x1774ea)&&_0x1774ea[_0x509ae3(0x2ab)]>0x0&&this[_0x509ae3(0x1b3)](_0x1774ea);}[_0x3ec352(0x17e)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x4c0fac(_0x241db3)),A(0x3,_0x4c0fac(Ke)),A(0x4,_0x4c0fac(_0xcda09a)),A(0x5,_0x4c0fac(ze)),A(0x6,_0x1d7b40),A(0x7,_0x5bb534),A(0x8,_0x234cad)],xe);var xi=Object[_0x3ec352(0x232)],Bi=(_0x458361,_0x77e7b,_0x58b2e8,_0x2e43b4)=>{for(var _0x219891=_0x2e43b4>0x1?void 0x0:_0x2e43b4?xi(_0x77e7b,_0x58b2e8):_0x77e7b,_0x1dfa8c=_0x458361['length']-0x1,_0x476027;_0x1dfa8c>=0x0;_0x1dfa8c--)(_0x476027=_0x458361[_0x1dfa8c])&&(_0x219891=_0x476027(_0x219891)||_0x219891);return _0x219891;},B=(_0x5ccf8e,_0x2bed96)=>(_0x2501ee,_0xd0f676)=>_0x2bed96(_0x2501ee,_0xd0f676,_0x5ccf8e);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x172bd2=[],_0x5d42cb=!0x1;return _0x90d159=>{_0x172bd2['push'](_0x90d159),_0x5d42cb||(_0x5d42cb=!0x0,setTimeout(()=>{_0x172bd2['forEach'](_0x156dd7=>_0x156dd7()),_0x172bd2=[],_0x5d42cb=!0x1;}));};};let Be=class extends _0x4e9bf2{constructor(_0x10b75b,_0x15d919,_0x4182e9,_0x38d8a1,_0x3cf58b,_0x5b1fd5,_0x5d28ff,_0x22b031){const _0x391bb3=_0x3ec352;super(),_(this,_0x391bb3(0x1ff),!0x1),_(this,_0x391bb3(0x113),!0x1),_(this,'_cursorInfo$',new _0x16c712(new Map())),_(this,_0x391bb3(0x25a),this[_0x391bb3(0x18d)][_0x391bb3(0x2c6)]()),_(this,'_roomMembers$',new _0x16c712([])),_(this,'roomMembers$',this[_0x391bb3(0x149)][_0x391bb3(0x1cf)](_0x1e2f8f(Fi))),_(this,_0x391bb3(0x1b3),_0x454746((_0x420d69,_0x37618a)=>{const _0xff71a6=_0x391bb3,_0x4d22ac={'eventID':_0x39fec4[_0xff71a6(0x353)],'data':{'unitID':this['unitID'],'memberID':this[_0xff71a6(0x200)][_0xff71a6(0x27c)](),'selection':_0x1e0c19(_0x420d69,_0x37618a[_0xff71a6(0x2ac)])}};this['_session']['send'](_0x4d22ac,this[_0xff71a6(0x238)]);},ki)),(this['unitID']=_0x10b75b,this[_0x391bb3(0x200)]=_0x15d919,this[_0x391bb3(0x344)]=_0x4182e9,this['_colorAssignService']=_0x38d8a1,this[_0x391bb3(0x350)]=_0x3cf58b,this[_0x391bb3(0x334)]=_0x5b1fd5,this['_commandService']=_0x5d28ff,this[_0x391bb3(0x321)]=_0x22b031);}get[_0x3ec352(0x341)](){const _0x44b1be=_0x3ec352;return this[_0x44b1be(0x18d)][_0x44b1be(0x286)]();}get[_0x3ec352(0x180)](){const _0x46671b=_0x3ec352;return this['_roomMembers$'][_0x46671b(0x286)]();}['dispose'](){const _0x3c05a3=_0x3ec352;super[_0x3c05a3(0x22c)](),this['_cursorInfo$'][_0x3c05a3(0x32d)](new Map()),this[_0x3c05a3(0x18d)][_0x3c05a3(0x305)](),this[_0x3c05a3(0x149)][_0x3c05a3(0x32d)]([]),this[_0x3c05a3(0x149)][_0x3c05a3(0x305)]();}[_0x3ec352(0x13c)](){const _0x2fe68f=_0x3ec352;this[_0x2fe68f(0x113)]||(this[_0x2fe68f(0x113)]=!0x0,this[_0x2fe68f(0x200)][_0x2fe68f(0x134)]['pipe'](_0x451ca1(this[_0x2fe68f(0x24c)]))[_0x2fe68f(0x261)](_0x38f03d=>{const _0x239881=_0x2fe68f;_0x38f03d===_0x1f3d15[_0x239881(0x2b1)]?this[_0x239881(0x308)]():this['_toggleOffline']();}),this[_0x2fe68f(0x200)][_0x2fe68f(0x1a6)][_0x2fe68f(0x1cf)](_0x451ca1(this['dispose$']))[_0x2fe68f(0x261)](_0x14caa0=>{const _0x379dab=_0x2fe68f,_0x168fb5=_0x14caa0[_0x379dab(0x1a0)];_0x168fb5===_0x39fec4[_0x379dab(0x353)]&&this[_0x379dab(0x14a)](_0x14caa0),_0x168fb5===_0x39fec4[_0x379dab(0x26e)]&&this[_0x379dab(0x2bd)](_0x14caa0);}),this[_0x2fe68f(0x2a5)](),this['disposeWithMe'](this[_0x2fe68f(0x24e)][_0x2fe68f(0x1c1)](_0x153a58=>{const _0x2fc93e=_0x2fe68f;if(this['_online']&&_0x153a58['id']===_0x34681b['id']&&_0x153a58[_0x2fc93e(0x14d)]['unitId']===this[_0x2fc93e(0x238)]){const _0x6d0087=_0x153a58['params'];this[_0x2fc93e(0x1b3)](_0x6d0087[_0x2fc93e(0x1e6)],_0x6d0087['selections'][0x0]);}})));}['_onCursorUpdate'](_0x17d366){const _0x5e9476=_0x3ec352;var _0x2e37c7,_0x291840;const {memberID:_0x471442,selection:_0x53244b}=_0x17d366[_0x5e9476(0x205)],{sheetName:_0x5ac267,range:_0x4600a3}=_0x3bf6a5(_0x53244b),_0xc4b085={'name':(_0x291840=(_0x2e37c7=this['_memberService']['getMember'](this[_0x5e9476(0x238)],_0x471442))==null?void 0x0:_0x2e37c7[_0x5e9476(0x18e)])!=null?_0x291840:_0x5e9476(0x116),'range':this[_0x5e9476(0x32f)](_0x5ac267,_0x4600a3),'sheetID':_0x5ac267,'color':this[_0x5e9476(0x1da)][_0x5e9476(0x314)](_0x471442),'selection':_0x53244b},_0x29b30b=this[_0x5e9476(0x341)];_0x29b30b['set'](_0x471442,_0xc4b085),this['_cursorInfo$']['next'](_0x29b30b);}[_0x3ec352(0x2bd)](_0x5c4f5b){const _0x353d3c=_0x3ec352,{memberID:_0x45e164}=_0x5c4f5b[_0x353d3c(0x205)],_0xf87a9=this[_0x353d3c(0x341)];_0xf87a9[_0x353d3c(0x278)](_0x45e164),this[_0x353d3c(0x18d)]['next'](_0xf87a9);}['_getMergeRange'](_0x529051,_0x5c391a){const _0x2956ba=_0x3ec352;var _0x4ac10a,_0x107dad;const _0x3ad84e=(_0x107dad=(_0x4ac10a=this['_univerInstanceService'][_0x2956ba(0x347)](this['unitID']))==null?void 0x0:_0x4ac10a[_0x2956ba(0x20b)](_0x529051))==null?void 0x0:_0x107dad[_0x2956ba(0x1ed)]();return(_0x3ad84e==null?void 0x0:_0x3ad84e['find'](_0x7a82fb=>_0xbdc8de[_0x2956ba(0x249)](_0x7a82fb,_0x5c391a)))||_0x5c391a;}[_0x3ec352(0x2a5)](){const _0x4d687a=_0x3ec352,_0xd54a42=new _0x3cfaf3(),_0x356417=Hi(),_0x286293=()=>{const _0x612a56=_0x437b;_0xd54a42[_0x612a56(0x22c)]();const _0x3b28a1=(_0x1d08ee,_0x42db46,_0x45651b,_0x420fd5)=>{const _0x431a34=_0x612a56;let _0x411426=[];switch(_0x1d08ee['id']){case _0xf1a21['DeleteRangeMoveLeftCommandId']:{_0x411426=_0x1e88dd(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x203)]:{_0x411426=_0x19454f(_0x1d08ee,_0x420fd5);break;}case _0xf1a21['InsertColCommandId']:{_0x411426=_0x1174ae(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x227)]:{_0x411426=_0x370511(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x247)]:{_0x411426=_0x2aaf9c(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x293)]:{_0x411426=_0x2c2b92(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x1ef)]:{_0x411426=_0x2a999d(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x1b5)]:{_0x411426=_0x283883(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x266)]:{_0x411426=_0x3966d1(_0x1d08ee,_0x420fd5);break;}}const _0x4c5a81=_0x33e6ae(_0x411426,_0x420fd5),_0x56f45e=this[_0x431a34(0x341)][_0x431a34(0x264)](_0x42db46);if(_0x56f45e&&_0x4c5a81){const _0x2cc87f={..._0x56f45e,'range':_0x4c5a81};this['cursorInfo']['set'](_0x42db46,_0x2cc87f),_0x356417(()=>{const _0x55ddc4=_0x431a34,_0x2b46df=this[_0x55ddc4(0x321)][_0x55ddc4(0x34f)](_0x4c5a81,_0xdc14ff=>(_0x2b46df['dispose'](),_0x3b28a1(_0xdc14ff,_0x42db46,_0x45651b,_0x4c5a81)));_0xd54a42[_0x55ddc4(0x338)](_0x2b46df);});}return{'redos':[],'undos':[]};};this[_0x612a56(0x341)]['forEach']((_0x374efe,_0x5c5e4e)=>{const _0x42e039=_0x612a56,{range:_0x4e205a,sheetID:_0x3cf1ed}=_0x374efe,_0x581106=this['_refRangeService'][_0x42e039(0x34f)](_0x4e205a,_0x380c94=>(_0x581106[_0x42e039(0x22c)](),_0x3b28a1(_0x380c94,_0x5c5e4e,_0x3cf1ed,_0x4e205a)));_0xd54a42[_0x42e039(0x338)](_0x581106);});};this[_0x4d687a(0x29b)](_0x2c5ac1(this[_0x4d687a(0x18d)][_0x4d687a(0x261)](()=>{_0x286293();})));}[_0x3ec352(0x308)](){const _0x4862ed=_0x3ec352;var _0x41de80,_0x1c3fa8;if(this[_0x4862ed(0x1ff)]=!0x0,((_0x41de80=this[_0x4862ed(0x334)]['getFocusedUnit']())==null?void 0x0:_0x41de80[_0x4862ed(0x15c)]())!==this['unitID'])return;const _0x5d50a7=(_0x1c3fa8=this[_0x4862ed(0x344)][_0x4862ed(0x264)](_0x167a90)[_0x4862ed(0x21b)]())==null?void 0x0:_0x1c3fa8[0x0],_0x1795f1=this[_0x4862ed(0x334)]['getCurrentUnitForType'](_0x560022[_0x4862ed(0x33b)])[_0x4862ed(0x356)]();_0x5d50a7&&_0x1795f1&&this[_0x4862ed(0x1b3)](_0x1795f1[_0x4862ed(0x12a)](),_0x5d50a7);}[_0x3ec352(0x17e)](){const _0x1ecc11=_0x3ec352;this[_0x1ecc11(0x1ff)]=!0x1;}};Be=Bi([B(0x2,_0x4c0fac(_0x241db3)),B(0x3,_0x4c0fac(Ke)),B(0x4,_0x4c0fac(_0xcda09a)),B(0x5,_0x5bb534),B(0x6,_0x234cad),B(0x7,_0x4c0fac(_0x47b355))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x42c416,_0x1fe2ce,_0x1bde4e,_0x5cc64c)=>{const _0x5b26f5=_0x3ec352;for(var _0x1cef80=_0x5cc64c>0x1?void 0x0:_0x5cc64c?Yi(_0x1fe2ce,_0x1bde4e):_0x1fe2ce,_0x233bc3=_0x42c416[_0x5b26f5(0x2ab)]-0x1,_0x91fa9e;_0x233bc3>=0x0;_0x233bc3--)(_0x91fa9e=_0x42c416[_0x233bc3])&&(_0x1cef80=_0x91fa9e(_0x1cef80)||_0x1cef80);return _0x1cef80;},Ce=(_0xd6a030,_0x22cd99)=>(_0x5a1563,_0x549f3c)=>_0x22cd99(_0x5a1563,_0x549f3c,_0xd6a030);let H=class extends _0x4e9bf2{constructor(_0x2a2840,_0xe58774,_0x5ab5c2){const _0x5e9ef7=_0x3ec352;super(),_(this,'_entities',new Map()),_(this,_0x5e9ef7(0x330),new _0x201adb()),(this['_univerInstanceService']=_0x2a2840,this[_0x5e9ef7(0x344)]=_0xe58774,this[_0x5e9ef7(0x1d2)]=_0x5ab5c2,this[_0x5e9ef7(0x113)]());}[_0x3ec352(0x22c)](){const _0x26fc14=_0x3ec352;super[_0x26fc14(0x22c)](),this[_0x26fc14(0x330)][_0x26fc14(0x305)](),this[_0x26fc14(0x2f7)]['forEach'](_0x2f35bb=>_0x2f35bb[_0x26fc14(0x22c)]());}['getCollabCursors$'](_0x41c856){const _0x439266=_0x3ec352;return this[_0x439266(0x2f7)]['has'](_0x41c856)?this[_0x439266(0x2f7)]['get'](_0x41c856)[_0x439266(0x25a)]:this[_0x439266(0x330)][_0x439266(0x1cf)](_0x11df95(_0xc96698=>_0xc96698[_0x439266(0x238)]===_0x41c856),_0x29d1a7(_0x286673=>_0x286673[_0x439266(0x25a)]));}[_0x3ec352(0x113)](){const _0x421418=_0x3ec352;this[_0x421418(0x334)][_0x421418(0x173)](_0x560022[_0x421418(0x33b)])[_0x421418(0x1cf)](_0x451ca1(this['dispose$']))[_0x421418(0x261)](async _0xe202e4=>{const _0x35030d=_0x421418,_0x255629=_0xe202e4[_0x35030d(0x15c)](),_0xe2619=await this[_0x35030d(0x270)](_0x255629);this[_0x35030d(0x330)][_0x35030d(0x32d)](_0xe2619),this[_0x35030d(0x2f7)][_0x35030d(0x1a7)](_0x255629,_0xe2619);}),this[_0x421418(0x334)][_0x421418(0x173)](_0x560022['UNIVER_DOC'])['pipe'](_0x451ca1(this['dispose$']))['pipe'](_0x11df95(_0x51c8d3=>!_0x51c8d3['getUnitId']()['startsWith']('__')))['subscribe'](async _0x3b0c2a=>{const _0x3ac8ae=_0x421418,_0x435489=_0x3b0c2a['getUnitId'](),_0x195181=await this[_0x3ac8ae(0x17a)](_0x435489);this[_0x3ac8ae(0x330)][_0x3ac8ae(0x32d)](_0x195181),this[_0x3ac8ae(0x2f7)][_0x3ac8ae(0x1a7)](_0x435489,_0x195181);}),_0x42d0c5(this[_0x421418(0x334)][_0x421418(0x1fa)](_0x560022[_0x421418(0x272)]),this[_0x421418(0x334)]['getTypeOfUnitDisposed$'](_0x560022[_0x421418(0x33b)]))[_0x421418(0x1cf)](_0x451ca1(this[_0x421418(0x24c)]))[_0x421418(0x261)](_0x5abefc=>{const _0x2777ec=_0x421418,_0x18c24c=_0x5abefc[_0x2777ec(0x15c)](),_0x27480e=this[_0x2777ec(0x2f7)][_0x2777ec(0x264)](_0x18c24c);_0x27480e&&(_0x27480e[_0x2777ec(0x22c)](),this['_entities'][_0x2777ec(0x278)](_0x18c24c));});}async[_0x3ec352(0x270)](_0x2c69fb){const _0x2e13ff=_0x3ec352,_0x57dda2=await this[_0x2e13ff(0x1d2)][_0x2e13ff(0x228)](_0x2c69fb),_0x487022=this['_injector'][_0x2e13ff(0x1ce)](Be,_0x2c69fb,_0x57dda2);return _0x487022[_0x2e13ff(0x13c)](),_0x487022;}async[_0x3ec352(0x17a)](_0x26aea3){const _0x4a96ec=_0x3ec352,_0x52c9a5=await this[_0x4a96ec(0x1d2)][_0x4a96ec(0x228)](_0x26aea3),_0x492124=this[_0x4a96ec(0x344)]['createInstance'](xe,_0x26aea3,_0x52c9a5);return _0x492124[_0x4a96ec(0x13c)](),_0x492124;}};H=Wi([Ce(0x0,_0x5bb534),Ce(0x1,_0x4c0fac(_0x241db3)),Ce(0x2,_0x4c0fac(_0x19842d))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x41aaa4,_0x94a507){const _0x10b6b8=_0x3ec352;let {radius:_0x2c4099,width:_0x2af269,height:_0x5d58b2}=_0x94a507;_0x2c4099=_0x2c4099!=null?_0x2c4099:0x0,_0x2af269=_0x2af269!=null?_0x2af269:0x1e,_0x5d58b2=_0x5d58b2!=null?_0x5d58b2:0x1e;let _0x50bf2a=0x0,_0x339f0b=0x0,_0x404833=0x0;_0x50bf2a=_0x339f0b=_0x404833=Math[_0x10b6b8(0x313)](_0x2c4099,_0x2af269/0x2,_0x5d58b2/0x2),_0x41aaa4[_0x10b6b8(0x190)](),_0x41aaa4[_0x10b6b8(0x174)](_0x50bf2a,0x0),_0x41aaa4['lineTo'](_0x2af269-_0x339f0b,0x0),_0x41aaa4[_0x10b6b8(0x225)](_0x2af269-_0x339f0b,_0x339f0b,_0x339f0b,Math['PI']*0x3/0x2,0x0,!0x1),_0x41aaa4[_0x10b6b8(0x119)](_0x2af269,_0x5d58b2-_0x404833),_0x41aaa4['arc'](_0x2af269-_0x404833,_0x5d58b2-_0x404833,_0x404833,0x0,Math['PI']/0x2,!0x1),_0x41aaa4[_0x10b6b8(0x119)](0x0,_0x5d58b2),_0x41aaa4['lineTo'](0x0,_0x50bf2a),_0x41aaa4['arc'](_0x50bf2a,_0x50bf2a,_0x50bf2a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x41aaa4[_0x10b6b8(0x168)](),_0x94a507[_0x10b6b8(0x14e)]&&(_0x41aaa4[_0x10b6b8(0x196)](),_0x41aaa4[_0x10b6b8(0x26d)]=_0x94a507[_0x10b6b8(0x14e)],_0x94a507[_0x10b6b8(0x11e)]===_0x10b6b8(0x1db)?_0x41aaa4['fill'](_0x10b6b8(0x1db)):_0x41aaa4[_0x10b6b8(0x14e)](),_0x41aaa4[_0x10b6b8(0x2f6)]());}class ve extends _0x2831b2{constructor(_0xa24be4,_0x48c7a6){const _0x16bff5=_0x3ec352;super(_0xa24be4,_0x48c7a6),_(this,_0x16bff5(0x280)),_(this,'text'),(this[_0x16bff5(0x280)]=_0x48c7a6==null?void 0x0:_0x48c7a6[_0x16bff5(0x280)],this[_0x16bff5(0x164)]=_0x48c7a6==null?void 0x0:_0x48c7a6[_0x16bff5(0x164)]);}static[_0x3ec352(0x2d8)](_0x4c7a8b,_0x4e7eff){const _0x21f014=_0x3ec352,{text:_0x57b29c,color:_0x3c0a4}=_0x4e7eff;_0x4c7a8b['save'](),_0x4c7a8b['font']=_0x21f014(0x29f);const _0x18739b=_0x4c7a8b[_0x21f014(0x316)](_0x57b29c)[_0x21f014(0x210)],_0x3b6f2f=Math['min'](_0x18739b+0x2*Re,at);ji(_0x4c7a8b,{'height':Q,'radius':0x4,'width':_0x3b6f2f,'fill':_0x3c0a4}),_0x4c7a8b[_0x21f014(0x26d)]=_0x21f014(0x2b8);const _0x330cf7=Re,_0x593d24=Q-Vi,_0x34487b=at-0x2*Re;if(_0x18739b>_0x34487b){let _0x472c30='',_0x1f50b0=0x0;for(const _0x41ff48 of _0x57b29c){const _0x120e6b=_0x4c7a8b[_0x21f014(0x316)](_0x41ff48)['width'];if(_0x1f50b0+_0x120e6b<=_0x34487b-_0x4c7a8b[_0x21f014(0x316)](_0x21f014(0x2e4))['width'])_0x472c30+=_0x41ff48,_0x1f50b0+=_0x120e6b;else{_0x472c30+='...';break;}}_0x4c7a8b[_0x21f014(0x1dc)](_0x472c30,_0x330cf7,_0x593d24);}else _0x4c7a8b[_0x21f014(0x1dc)](_0x57b29c,_0x330cf7,_0x593d24);_0x4c7a8b[_0x21f014(0x2f6)]();}[_0x3ec352(0x236)](_0x33282e){const _0x1320ae=_0x3ec352;ve[_0x1320ae(0x2d8)](_0x33282e,this);}}const De=_0x3ec352(0x279),Xi=_0x3ec352(0x29c),Gi=_0x3ec352(0x2c8),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3ec352(0x1e2);class ct{constructor(_0x46c986,_0x5a7eb2,_0xfae27d,_0x2757fd){const _0x1d502a=_0x3ec352;_(this,_0x1d502a(0x144),[]),_(this,_0x1d502a(0x281),null),_(this,'_textBubble',null),_(this,_0x1d502a(0x30d),null),_(this,'_hideTimer',null),_(this,_0x1d502a(0x15b),null),(this[_0x1d502a(0x335)]=_0x46c986,this[_0x1d502a(0x165)]=_0x5a7eb2,this[_0x1d502a(0x31a)]=_0xfae27d,this[_0x1d502a(0x30b)]=_0x2757fd,this[_0x1d502a(0x33a)]());}set[_0x3ec352(0x198)](_0x4f94ae){const _0xc17f0e=_0x3ec352;_0x4f94ae?(this[_0xc17f0e(0x30d)]&&this['_anchorDot']['hide'](),this[_0xc17f0e(0x2f2)]&&this[_0xc17f0e(0x2f2)][_0xc17f0e(0x1d9)]()):(this[_0xc17f0e(0x30d)]&&this['_anchorDot'][_0xc17f0e(0x1d9)](),this[_0xc17f0e(0x2f2)]&&this[_0xc17f0e(0x2f2)][_0xc17f0e(0x15e)]());}[_0x3ec352(0x22c)](){const _0x1202ef=_0x3ec352;for(const _0x1fc389 of this[_0x1202ef(0x144)])_0x1fc389[_0x1202ef(0x22c)]();this['_textBubble']&&this[_0x1202ef(0x2f2)][_0x1202ef(0x22c)](),this[_0x1202ef(0x30d)]&&this[_0x1202ef(0x30d)][_0x1202ef(0x22c)](),this[_0x1202ef(0x281)]&&this[_0x1202ef(0x281)][_0x1202ef(0x22c)](),this[_0x1202ef(0x15b)]&&this[_0x1202ef(0x15b)]();}[_0x3ec352(0x33a)](){const _0x5e5553=_0x3ec352;var _0x49be1e;const {_docSkeleton:_0x38364b,_document:_0x560065}=this,{color:_0x16dc47,name:_0x1d6dcf,ranges:_0x5af606}=this[_0x5e5553(0x335)],_0x4b55f1=_0x560065[_0x5e5553(0x2da)](),{docsLeft:_0x1a1ddf,docsTop:_0x4a093a}=_0x4b55f1,_0x15bbad=new _0x592cf6(_0x4b55f1,_0x38364b);for(const {startOffset:_0x2360b1,endOffset:_0x2711c3,rangeType:_0x1722f3,segmentId:_0x50e016,segmentPage:_0x3a0004,collapsed:_0x59e2a0,isActive:_0x2a3619}of _0x5af606){const _0x4cc002=_0x38364b[_0x5e5553(0x348)](_0x2360b1,!0x0,_0x50e016,_0x3a0004);let _0x1c3613=_0x38364b[_0x5e5553(0x348)](_0x2711c3,!0x0,_0x50e016,_0x3a0004);if(_0x1c3613==null&&(_0x1c3613=_0x38364b[_0x5e5553(0x348)](_0x2711c3-0x1,!0x1,_0x50e016,_0x3a0004)),_0x2a3619){const {contentBoxPointGroup:_0x218756}=_0x15bbad[_0x5e5553(0x312)](_0x1c3613,_0x1c3613);if(_0x218756['length']===0x0)continue;this[_0x5e5553(0x331)](_0x16dc47,_0x218756,_0x1a1ddf,_0x4a093a,_0x1d6dcf),this[_0x5e5553(0x15b)]=this[_0x5e5553(0x201)]();}if(_0x4cc002&&_0x1c3613){if(_0x1722f3===_0x61a77c[_0x5e5553(0x241)]){const _0x4e70dc=new _0x622a72(_0x4b55f1,_0x38364b),{pointGroup:_0x45b45b}=(_0x49be1e=_0x4e70dc[_0x5e5553(0x312)](_0x4cc002,_0x1c3613))!=null?_0x49be1e:{};if(_0x45b45b==null||_0x45b45b['length']===0x0)continue;this['_drawRectRange'](_0x16dc47,_0x45b45b,_0x1a1ddf,_0x4a093a);}else{if(!_0x59e2a0){const {borderBoxPointGroup:_0x5e7bc7}=_0x15bbad[_0x5e5553(0x312)](_0x4cc002,_0x1c3613);if(_0x5e7bc7[_0x5e5553(0x2ab)]===0x0)continue;this[_0x5e5553(0x2c9)](_0x16dc47,_0x5e7bc7,_0x1a1ddf,_0x4a093a);}}}}}[_0x3ec352(0x331)](_0x32e88a,_0x4766b6,_0xfdd71,_0x5b0ca9,_0x5d883f){const _0x4f368e=_0x3ec352,_0x3439a7=this[_0x4f368e(0x2b4)](_0x4766b6),{left:_0x59b64f,top:_0x413947,height:_0xff9de0}=_0x3439a7,_0x544cfd=this[_0x4f368e(0x179)](),_0x67b596=zi/_0x544cfd,_0x1a7597=new _0x2c78d1(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9,'height':_0xff9de0,'width':Ki,'fill':_0x32e88a||_0x18ff82(_0x3cc9d6[_0x4f368e(0x153)],0x0),'strokeWidth':_0x67b596,'stroke':Ji,'evented':!0x0});this[_0x4f368e(0x281)]=_0x1a7597,this[_0x4f368e(0x165)][_0x4f368e(0x127)](_0x1a7597,_0x5e29a0);const _0x140fa3=new _0x2c78d1(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x32e88a||_0x18ff82(_0x3cc9d6[_0x4f368e(0x153)],0x0),'strokeWidth':0x0,'stroke':_0x32e88a||_0x18ff82(_0x3cc9d6['black'],0x0),'evented':!0x1});this[_0x4f368e(0x30d)]=_0x140fa3,this['_scene'][_0x4f368e(0x127)](_0x140fa3,_0x5e29a0);const _0x5254c6=new ve(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9-Q,'text':_0x5d883f,'color':_0x32e88a});this['_textBubble']=_0x5254c6,this[_0x4f368e(0x165)][_0x4f368e(0x127)](_0x5254c6,_0x5e29a0),this['_hover']=!0x1;}[_0x3ec352(0x201)](){const _0x4717f7=_0x3ec352,_0x3b741c=this['_anchor']['onPointerEnter$'][_0x4717f7(0x31f)](()=>{const _0x4db299=_0x4717f7;this[_0x4db299(0x198)]=!0x0;}),_0x642b6=this[_0x4717f7(0x281)]['onPointerLeave$'][_0x4717f7(0x31f)](()=>{const _0x933658=_0x4717f7;this[_0x933658(0x188)]&&clearTimeout(this[_0x933658(0x188)]),this[_0x933658(0x188)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3e3e14=_0x4717f7;_0x3b741c[_0x3e3e14(0x13f)](),_0x642b6[_0x3e3e14(0x13f)]();};}[_0x3ec352(0x2c9)](_0x2493e4,_0x48d85c,_0x2753aa,_0x29125c){const _0x4dc284=_0x3ec352,_0x16d38e=new _0x585da0(_0x2493e4)[_0x4dc284(0x1f8)](0.2)[_0x4dc284(0x221)](),_0x5d0558=new _0x3e0ab3(Xi+_0x1f3cf5(z),{'pointsGroup':_0x48d85c,'fill':_0x16d38e||_0x18ff82(_0x3cc9d6[_0x4dc284(0x153)],0.2),'left':_0x2753aa,'top':_0x29125c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4dc284(0x144)]['push'](_0x5d0558),this['_scene']['addObject'](_0x5d0558,_0x5e29a0);}[_0x3ec352(0x1bf)](_0x2c3f11,_0x35e9f6,_0x2d69c8,_0x367dca){const _0x2c4944=_0x3ec352,_0x25353e=new _0x585da0(_0x2c3f11)[_0x2c4944(0x1f8)](0.2)[_0x2c4944(0x221)](),_0x274608=new _0x3e0ab3(Gi+_0x1f3cf5(z),{'pointsGroup':_0x35e9f6,'fill':_0x25353e||_0x18ff82(_0x3cc9d6['black'],0.2),'left':_0x2d69c8,'top':_0x367dca,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c4944(0x144)]['push'](_0x274608),this['_scene']['addObject'](_0x274608,_0x5e29a0);}[_0x3ec352(0x2b4)](_0x333159){const _0x4aeb76=_0x333159[0x0],_0xf7518d=_0x4aeb76[0x0],_0x2b9fe9=_0x4aeb76[0x2],{x:_0x38110d,y:_0x103fda}=_0xf7518d,{x:_0x4c6bc2,y:_0x355804}=_0x2b9fe9;return{'left':_0x38110d,'top':_0x103fda,'width':_0x4c6bc2-_0x38110d,'height':_0x355804-_0x103fda};}[_0x3ec352(0x179)](){const _0x15d644=_0x3ec352,{scaleX:_0x53ca4c,scaleY:_0xf40ca4}=this[_0x15d644(0x165)][_0x15d644(0x2b6)]();return Math[_0x15d644(0x303)](_0x53ca4c,_0xf40ca4);}}var Zi=Object[_0x3ec352(0x232)],Qi=(_0x5d9e38,_0x4543c2,_0x28f987,_0x163eac)=>{const _0x2bb6ad=_0x3ec352;for(var _0x244af1=_0x163eac>0x1?void 0x0:_0x163eac?Zi(_0x4543c2,_0x28f987):_0x4543c2,_0x226490=_0x5d9e38[_0x2bb6ad(0x2ab)]-0x1,_0x24c570;_0x226490>=0x0;_0x226490--)(_0x24c570=_0x5d9e38[_0x226490])&&(_0x244af1=_0x24c570(_0x244af1)||_0x244af1);return _0x244af1;},ie=(_0x22cbbc,_0x53ef4f)=>(_0x5c22c6,_0x4efd35)=>_0x53ef4f(_0x5c22c6,_0x4efd35,_0x22cbbc);let Fe=class extends _0x4e9bf2{constructor(_0x39716e,_0x1b0720,_0x235c9b,_0x336934,_0xe1217f){const _0x5396ce=_0x3ec352;super(),_(this,'_cursorShapes',[]),_(this,_0x5396ce(0x285),[]),(this[_0x5396ce(0x130)]=_0x39716e,this[_0x5396ce(0x216)]=_0x1b0720,this[_0x5396ce(0x171)]=_0x235c9b,this[_0x5396ce(0x24e)]=_0x336934,this['_themeService']=_0xe1217f,this[_0x5396ce(0x113)]());}[_0x3ec352(0x113)](){const _0x2979d5=_0x3ec352,_0xef9fed=this[_0x2979d5(0x130)]['unitId'],_0x287bc2=this[_0x2979d5(0x216)];this['disposeWithMe'](_0x4e3cde([this[_0x2979d5(0x171)]['getCollabCursors$'](_0xef9fed),this['_themeService'][_0x2979d5(0x2b0)]])[_0x2979d5(0x1cf)](_0x108aa2(([_0x14722d,_0x3729d8])=>({'skeleton':_0x287bc2[_0x2979d5(0x27a)](),'cursors':[..._0x14722d['values']()]['flatMap'](_0x364b48=>({..._0x364b48,'color':this[_0x2979d5(0x332)]['getColorFromTheme'](_0x364b48[_0x2979d5(0x280)])}))})))['subscribe'](_0x5d0251=>{const _0x69551d=_0x2979d5;if(this[_0x69551d(0x208)](),_0x5d0251){const {skeleton:_0x2ec964,cursors:_0x79af81}=_0x5d0251;this['_updateCollabCursors'](_0x2ec964,_0x79af81);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x3ec352(0x21f)](_0x2ca216,_0x4d6ff4){const _0x41c104=_0x3ec352,{scene:_0x1dc76a,mainComponent:_0x345dab}=this[_0x41c104(0x130)],_0x108f51=_0x4d6ff4[_0x41c104(0x1ca)](_0x3874e2=>new ct(_0x3874e2,_0x1dc76a,_0x2ca216,_0x345dab));this[_0x41c104(0x320)]=_0x108f51,this['_cursors']=_0x4d6ff4;}['_refreshCollabCursors'](){const _0x298079=_0x3ec352;this['_removeCollabCursors']();const {scene:_0x3c4b7f,mainComponent:_0x4c668b}=this['_context'],_0x48abdc=this[_0x298079(0x216)][_0x298079(0x27a)](),_0x2b186c=this[_0x298079(0x285)][_0x298079(0x1ca)](_0x1d09f5=>new ct(_0x1d09f5,_0x3c4b7f,_0x48abdc,_0x4c668b));this[_0x298079(0x320)]=_0x2b186c;}[_0x3ec352(0x208)](){const _0x5a9f91=_0x3ec352;this['_cursorShapes']['forEach'](_0x2fc322=>_0x2fc322['dispose']()),this[_0x5a9f91(0x320)]=[];}['_initCommandExecutedListener'](){const _0x806c9=_0x3ec352,_0x3589ab=[_0x400b0f['id']];this[_0x806c9(0x29b)](this[_0x806c9(0x24e)][_0x806c9(0x1c1)](_0x1f5495=>{const _0x1b0ab7=_0x806c9;_0x3589ab[_0x1b0ab7(0x1ad)](_0x1f5495['id'])&&_0x1f5495[_0x1b0ab7(0x14d)]['unitId']===this['_context'][_0x1b0ab7(0x191)]&&this['_refreshCollabCursors']();}));}[_0x3ec352(0x2df)](){const _0x336b3b=_0x3ec352;this[_0x336b3b(0x29b)](_0x4dedaf(this[_0x336b3b(0x130)][_0x336b3b(0x304)][_0x336b3b(0x34b)])[_0x336b3b(0x1cf)](_0x332e97(_0x2eeda5=>_0x2eeda5[_0x336b3b(0x35e)]===_0x36a1db[_0x336b3b(0x29d)]),_0x572a55(0x10))[_0x336b3b(0x261)](()=>{const _0x4df68f=_0x336b3b;this[_0x4df68f(0x219)]();}));}};Fe=Qi([ie(0x1,_0x4c0fac(_0x2f9fae)),ie(0x2,_0x4c0fac(H)),ie(0x3,_0x234cad),ie(0x4,_0x4c0fac(_0x334c7e))],Fe);const qi=0x1,en=1.5;class tn extends _0x2831b2{constructor(_0x5c9489,_0x395464){const _0x16fb20=_0x3ec352;super(_0x5c9489,_0x395464),_(this,_0x16fb20(0x12d)),_(this,_0x16fb20(0x1a2),!0x1),_(this,_0x16fb20(0x1b7)),_(this,'_name',''),_(this,_0x16fb20(0x1cc),_0x16fb20(0x124)),_(this,_0x16fb20(0x2cc)),(_0x395464&&this[_0x16fb20(0x322)](_0x395464),this[_0x16fb20(0x2f4)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x16fb20(0x322)]({'hovered':!0x1})));}[_0x3ec352(0x322)](_0x4a38cf){const _0x3a73ee=_0x3ec352;var _0x5c2bc2,_0x163150,_0x3e5612,_0x2a6d3a,_0x56468e,_0x3baa4e;this[_0x3a73ee(0x12d)]=(_0x5c2bc2=_0x4a38cf[_0x3a73ee(0x280)])!=null?_0x5c2bc2:this[_0x3a73ee(0x12d)],this[_0x3a73ee(0x1a2)]=(_0x163150=_0x4a38cf[_0x3a73ee(0x1f7)])!=null?_0x163150:this[_0x3a73ee(0x1a2)],this[_0x3a73ee(0x1b7)]=(_0x3e5612=_0x4a38cf[_0x3a73ee(0x2ac)])!=null?_0x3e5612:this[_0x3a73ee(0x1b7)],this[_0x3a73ee(0x19f)]=(_0x2a6d3a=_0x4a38cf['name'])!=null?_0x2a6d3a:this[_0x3a73ee(0x19f)],this[_0x3a73ee(0x1cc)]=(_0x56468e=_0x4a38cf[_0x3a73ee(0x189)])!=null?_0x56468e:this[_0x3a73ee(0x1cc)],this[_0x3a73ee(0x2cc)]=(_0x3baa4e=_0x4a38cf[_0x3a73ee(0x2e5)])!=null?_0x3baa4e:this[_0x3a73ee(0x2cc)],this['transformByState']({'width':_0x4a38cf[_0x3a73ee(0x210)],'height':_0x4a38cf[_0x3a73ee(0x142)]});}[_0x3ec352(0x256)](_0x5b1f5e){const _0x28d770=_0x3ec352,{row:_0x48de84,column:_0x479223}=_0x5b1f5e;if(_0x48de84>=this[_0x28d770(0x1b7)][_0x28d770(0x23c)]&&_0x48de84<=this['_range'][_0x28d770(0x288)]&&_0x479223>=this[_0x28d770(0x1b7)][_0x28d770(0x296)]&&_0x479223<=this[_0x28d770(0x1b7)]['endColumn']){this[_0x28d770(0x322)]({'hovered':!0x0});return;}this[_0x28d770(0x322)]({'hovered':!0x1});}[_0x3ec352(0x2c3)](_0x359fee){return!0x1;}[_0x3ec352(0x236)](_0x17974c){const _0x5a7e75=_0x3ec352;_0x2c78d1['drawWith'](_0x17974c,{'width':this['width'],'height':this[_0x5a7e75(0x142)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5a7e75(0x2cc)]}),this[_0x5a7e75(0x1a2)]&&(_0x17974c[_0x5a7e75(0x196)](),_0x17974c[_0x5a7e75(0x1fd)](0x1,0x0,0x0,0x1,this[_0x5a7e75(0x210)],this[_0x5a7e75(0x1cc)]===_0x5a7e75(0x2d3)?0x0:-Q),ve[_0x5a7e75(0x2d8)](_0x17974c,{'text':this[_0x5a7e75(0x19f)],'color':this[_0x5a7e75(0x12d)]}),_0x17974c['restore']());}}var sn=Object[_0x3ec352(0x232)],nn=(_0x4f9bc5,_0x331df3,_0x5c02cd,_0x16dee1)=>{const _0xf06843=_0x3ec352;for(var _0x53ec9c=_0x16dee1>0x1?void 0x0:_0x16dee1?sn(_0x331df3,_0x5c02cd):_0x331df3,_0x380566=_0x4f9bc5[_0xf06843(0x2ab)]-0x1,_0x33eaa3;_0x380566>=0x0;_0x380566--)(_0x33eaa3=_0x4f9bc5[_0x380566])&&(_0x53ec9c=_0x33eaa3(_0x53ec9c)||_0x53ec9c);return _0x53ec9c;},be=(_0x1395a8,_0x1e170c)=>(_0x2ff119,_0x1f891a)=>_0x1e170c(_0x2ff119,_0x1f891a,_0x1395a8);const rn=0x1389;let ke=class extends _0x4e9bf2{constructor(_0x57fa62,_0x5b9e43,_0x2edacc,_0x362358){const _0x2136e2=_0x3ec352;super(),_(this,_0x2136e2(0x285),new Set()),_(this,_0x2136e2(0x183),null),(this['_context']=_0x57fa62,this[_0x2136e2(0x206)]=_0x5b9e43,this[_0x2136e2(0x171)]=_0x2edacc,this[_0x2136e2(0x332)]=_0x362358,this[_0x2136e2(0x113)]());}[_0x3ec352(0x113)](){const _0x3ebee2=_0x3ec352;this[_0x3ebee2(0x206)][_0x3ebee2(0x199)][_0x3ebee2(0x1cf)](_0x4b0b95(this[_0x3ebee2(0x24c)]),_0x54129b(_0x1697b5=>{const _0x29e219=_0x3ebee2;if(_0x1697b5){const _0x3bf00a=_0x1697b5[_0x29e219(0x11a)];return _0x4e3cde(this[_0x29e219(0x171)][_0x29e219(0x323)](this[_0x29e219(0x130)][_0x29e219(0x191)]),this['_themeService']['currentTheme$'])[_0x29e219(0x1cf)](_0x108aa2(([_0x42cb9d,_0x475cba])=>{const _0x26bf55=new Map();return _0x42cb9d['forEach']((_0x398e0c,_0x587578)=>{const _0x53687e=_0x437b;if(_0x398e0c['sheetID']===_0x3bf00a){const _0x3098e4={..._0x398e0c};_0x3098e4[_0x53687e(0x280)]=this[_0x53687e(0x332)][_0x53687e(0x289)](_0x398e0c[_0x53687e(0x280)]),_0x26bf55[_0x53687e(0x1a7)](_0x587578,_0x3098e4);}}),{'skeleton':_0x1697b5,'cursors':_0x26bf55};}));}return _0x4c8a6d({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3b1524,cursors:_0x178339})=>{const _0x27217f=_0x3ebee2;this[_0x27217f(0x208)](),_0x3b1524&&this[_0x27217f(0x21f)](_0x3b1524,_0x178339);}),this[_0x3ebee2(0x206)]['currentSkeleton$'][_0x3ebee2(0x261)](_0x4941e0=>{const _0x5d6f27=_0x3ebee2;if(_0x4941e0==null)return;const {skeleton:_0x16fba3}=_0x4941e0,{scene:_0x33415b}=this['_context'];_0x33415b[_0x5d6f27(0x2ed)][_0x5d6f27(0x31f)](_0x454746(_0x41869a=>{const _0x2e8953=_0x5d6f27;var _0x412ce1,_0x486692;const {offsetX:_0x51f261,offsetY:_0x27ce3d}=_0x41869a,{x:_0x1fb76b,y:_0x4b1d54}=_0x33415b[_0x2e8953(0x253)](_0x533d50[_0x2e8953(0x11b)]([_0x51f261,_0x27ce3d])),{scaleX:_0x175b87,scaleY:_0x58d398}=_0x33415b['getAncestorScale'](),_0x3d2af2=_0x33415b[_0x2e8953(0x35a)](_0x509f66[_0x2e8953(0x1de)]),_0x2f5109=_0x33415b[_0x2e8953(0x2fd)](_0x533d50[_0x2e8953(0x11b)]([_0x1fb76b,_0x4b1d54]),_0x3d2af2),_0x144786=_0x16fba3[_0x2e8953(0x2d4)](_0x51f261,_0x27ce3d,_0x175b87,_0x58d398,_0x2f5109);((_0x412ce1=this[_0x2e8953(0x183)])==null?void 0x0:_0x412ce1[_0x2e8953(0x2e6)])===_0x144786['column']&&((_0x486692=this[_0x2e8953(0x183)])==null?void 0x0:_0x486692[_0x2e8953(0x24f)])===_0x144786[_0x2e8953(0x24f)]||this[_0x2e8953(0x285)][_0x2e8953(0x2af)](_0x2676ac=>{const _0x155cc7=_0x2e8953;_0x2676ac[_0x155cc7(0x256)](_0x144786);});},0x64));});}[_0x3ec352(0x21f)](_0x2d6e08,_0x26c9ec){const _0xc6170f=_0x3ec352;var _0x547e5d;const _0x4574a3=(_0x547e5d=this[_0xc6170f(0x206)]['getCurrent']())==null?void 0x0:_0x547e5d[_0xc6170f(0x2b7)];if(!_0x4574a3)return;const _0x519eaa=this[_0xc6170f(0x1b2)]();if(!_0x519eaa)return;this[_0xc6170f(0x285)]['forEach'](_0x226624=>{_0x226624['makeDirty']();});const {scene:_0x84c75b}=_0x519eaa,_0x2c008e=on(Array[_0xc6170f(0x1a4)](_0x26c9ec[_0xc6170f(0x283)]()))[_0xc6170f(0x1ca)](_0x3dbfea=>{const _0x4d7e3d=_0xc6170f,{color:_0x22c35e,range:_0x157b3e,name:_0x379071,selection:_0x36f955,sheetID:_0x5a662e}=_0x3dbfea,{startColumn:_0x1978fa,startRow:_0x2bfef9,endColumn:_0x2019bb,endRow:_0x36ede0}=_0x157b3e,_0x239d6d=_0x5669fa(_0x2bfef9,_0x1978fa,_0x84c75b,_0x4574a3),_0x4a5955=_0x5669fa(_0x36ede0,_0x2019bb,_0x84c75b,_0x4574a3),{columnHeaderHeightAndMarginTop:_0xfdc1ab}=_0x4574a3,{startX:_0x3e69ba,startY:_0x4cb094}=_0x239d6d,{endX:_0x27a453,endY:_0x3800fa}=_0x4a5955,_0x4aa8e3=_0x27a453-_0x3e69ba,_0x7154fa=_0x3800fa-_0x4cb094,_0x32efa3={'labelPosition':_0x4cb094-_0xfdc1ab>=Q?_0x4d7e3d(0x124):_0x4d7e3d(0x2d3),'sheetID':_0x5a662e,'range':_0x157b3e,'color':_0x22c35e,'name':_0x379071,'selection':_0x36f955,'left':_0x3e69ba,'top':_0x4cb094,'width':_0x4aa8e3,'height':_0x7154fa,'evented':!0x1,'zIndex':rn};return new tn(_0x379071,_0x32efa3);});_0x84c75b[_0xc6170f(0x339)](_0x2c008e,qi),this[_0xc6170f(0x285)]=new Set(_0x2c008e);}['_removeCollabCursors'](){const _0xd2a6ae=_0x3ec352;var _0x32865b;(_0x32865b=this[_0xd2a6ae(0x285)])==null||_0x32865b[_0xd2a6ae(0x2af)](_0xe729bf=>_0xe729bf[_0xd2a6ae(0x22c)]());}[_0x3ec352(0x1b2)](){const _0x42f2eb=_0x3ec352;return _0x5304d4(this[_0x42f2eb(0x130)]['unit'],this['_context']);}};ke=nn([be(0x1,_0x4c0fac(_0x42e4bb)),be(0x2,_0x4c0fac(H)),be(0x3,_0x4c0fac(_0x334c7e))],ke);function on(_0x547d97){const _0x19994e=_0x3ec352,_0x50b174=new Map();return _0x547d97['forEach'](_0xf37ef6=>{const _0x39e27e=_0x437b;if(_0x50b174[_0x39e27e(0x177)](_0xf37ef6[_0x39e27e(0x181)])){const _0x33e94f=_0x50b174[_0x39e27e(0x264)](_0xf37ef6[_0x39e27e(0x181)]);_0x33e94f[_0x39e27e(0x18e)]+=',\x20'+_0xf37ef6[_0x39e27e(0x18e)];}else _0x50b174[_0x39e27e(0x1a7)](_0xf37ef6[_0x39e27e(0x181)],_0xf37ef6);}),Array[_0x19994e(0x1a4)](_0x50b174[_0x19994e(0x283)]());}var an=Object[_0x3ec352(0x232)],cn=(_0x55a3cb,_0x26712a,_0x4f9ec8,_0x2dba82)=>{for(var _0x5bfd7e=_0x2dba82>0x1?void 0x0:_0x2dba82?an(_0x26712a,_0x4f9ec8):_0x26712a,_0x30749f=_0x55a3cb['length']-0x1,_0x3c3904;_0x30749f>=0x0;_0x30749f--)(_0x3c3904=_0x55a3cb[_0x30749f])&&(_0x5bfd7e=_0x3c3904(_0x5bfd7e)||_0x5bfd7e);return _0x5bfd7e;},F=(_0x2e4935,_0x1b2913)=>(_0x51f44f,_0x1743e4)=>_0x1b2913(_0x51f44f,_0x1743e4,_0x2e4935);let _e=class extends _0xbbfd04{constructor(_0xe69de7,_0x4e5521,_0x5cb676,_0x1cf278,_0x5ed07e,_0x289d3c){const _0x263c02=_0x3ec352;super(),this[_0x263c02(0x34c)]=_0xe69de7,this[_0x263c02(0x14f)]=_0x4e5521,this['_collaborationUIEventService']=_0x5cb676,this[_0x263c02(0x1df)]=_0x1cf278,this['_notificationService']=_0x5ed07e,this[_0x263c02(0x268)]=_0x289d3c,this['_setupBeforeClosingHandler'](),this[_0x263c02(0x1e8)]();}[_0x3ec352(0x300)](){const _0x5ba990=_0x3ec352;this[_0x5ba990(0x29b)](this[_0x5ba990(0x34c)]['registerBeforeClose'](()=>{const _0x242c40=_0x5ba990;if(this[_0x242c40(0x14f)][_0x242c40(0x2b5)][_0x242c40(0x310)])return this[_0x242c40(0x268)]['t'](_0x242c40(0x318));}));}[_0x3ec352(0x1e8)](){const _0x1cd6cf=_0x3ec352;this[_0x1cd6cf(0x29b)](this[_0x1cd6cf(0x26a)][_0x1cd6cf(0x1a6)][_0x1cd6cf(0x261)](_0x382c4b=>{const _0xb0153e=_0x1cd6cf;_0x382c4b['id']===_0x5a7f32['OTHER_CLIENT_EDITING']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea['Warning'],'content':this[_0xb0153e(0x268)]['t'](_0xb0153e(0x214))}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x1e0)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t']('collaboration.closeRoom')}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x20e)]&&this[_0xb0153e(0x22b)][_0xb0153e(0x1d9)]({'title':this['_localeService']['t'](_0xb0153e(0x13d)),'content':this['_localeService']['t'](_0xb0153e(0x211)),'type':_0xb0153e(0x19b),'duration':0x0}),_0x382c4b['id']===_0x5a7f32['CONFLICT']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this[_0xb0153e(0x268)]['t']('collaboration.closeRoom')+'('+_0x382c4b[_0xb0153e(0x205)]+')'}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x184)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t'](_0x382c4b[_0xb0153e(0x205)]||'')}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x349)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t'](_0xb0153e(0x31b))}),_0x382c4b['id']===_0x5a7f32['SOCKET_FAILED']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this['_localeService']['t'](_0xb0153e(0x328))}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x2e3)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this['_localeService']['t'](_0xb0153e(0x213))});}));}};_e=cn([F(0x0,_0x488919),F(0x1,_0x223ca0),F(0x2,_0x4c0fac(_0x1fe96a)),F(0x3,_0x12f42d),F(0x4,_0x26656e),F(0x5,_0x4c0fac(_0x498bd0))],_e);var _n=Object[_0x3ec352(0x232)],ln=(_0x38face,_0x49bf69,_0x9eee44,_0x2792b5)=>{const _0x1ce0bc=_0x3ec352;for(var _0x9ac260=_0x2792b5>0x1?void 0x0:_0x2792b5?_n(_0x49bf69,_0x9eee44):_0x49bf69,_0xf83849=_0x38face[_0x1ce0bc(0x2ab)]-0x1,_0x2c4158;_0xf83849>=0x0;_0xf83849--)(_0x2c4158=_0x38face[_0xf83849])&&(_0x9ac260=_0x2c4158(_0x9ac260)||_0x9ac260);return _0x9ac260;},ne=(_0xe1db03,_0x310eff)=>(_0x3f6537,_0x2a28e1)=>_0x310eff(_0x3f6537,_0x2a28e1,_0xe1db03);let le=class extends _0xbbfd04{constructor(_0x1b7420,_0x51e627,_0x46d2b0,_0x4cca55){const _0x59f74d=_0x3ec352;super(),_(this,'_memberID'),(this[_0x59f74d(0x344)]=_0x1b7420,this[_0x59f74d(0x21d)]=_0x51e627,this[_0x59f74d(0x27f)]=_0x46d2b0,this[_0x59f74d(0x254)]=_0x4cca55,this['_init']());}[_0x3ec352(0x113)](){const _0x262a6e=_0x3ec352;this[_0x262a6e(0x1cd)](),this['_initUnhandledRejectionListener'](),this[_0x262a6e(0x121)](),this[_0x262a6e(0x26f)]();}[_0x3ec352(0x26f)](){const _0x2f8664=_0x3ec352;this[_0x2f8664(0x29b)](this[_0x2f8664(0x254)][_0x2f8664(0x139)]['subscribe'](_0xb76be9=>{const _0x3a7508=_0x2f8664;this[_0x3a7508(0x24b)]=_0xb76be9==null?void 0x0:_0xb76be9[_0x3a7508(0x24a)];}));}[_0x3ec352(0x1cd)](){const _0x41d78e=_0x3ec352,_0x938c51=_0x1fc68d=>{const _0x43353e=_0x437b;var _0xcb5ec7;this[_0x43353e(0x2c1)](_0x43353e(0x19b),_0x43353e(0x26b)+_0x1fc68d[_0x43353e(0x22d)]+_0x43353e(0x19c)+_0x1fc68d[_0x43353e(0x28a)]+':'+_0x1fc68d['lineno']+':'+_0x1fc68d[_0x43353e(0x1af)]+'\x0a'+(((_0xcb5ec7=_0x1fc68d['error'])==null?void 0x0:_0xcb5ec7[_0x43353e(0x1e5)])||''));};window[_0x41d78e(0x1f5)](_0x41d78e(0x19b),_0x938c51),this[_0x41d78e(0x29b)](()=>{const _0x2c04a6=_0x41d78e;window[_0x2c04a6(0x17c)](_0x2c04a6(0x19b),_0x938c51);});}[_0x3ec352(0x297)](){const _0x41e080=_0x3ec352,_0x22d711=_0x31a3b4=>{const _0x2926e1=_0x437b;this[_0x2926e1(0x2c1)](_0x2926e1(0x19b),_0x2926e1(0x248)+_0x31a3b4['reason']);};window[_0x41e080(0x1f5)](_0x41e080(0x1f2),_0x22d711),this[_0x41e080(0x29b)](()=>{const _0x433e85=_0x41e080;window[_0x433e85(0x17c)]('unhandledrejection',_0x22d711);});}[_0x3ec352(0x121)](){const _0x134192=_0x3ec352,_0x5ddd1e=this[_0x134192(0x27f)][_0x134192(0x19b)][_0x134192(0x1fb)](this[_0x134192(0x27f)]);this[_0x134192(0x27f)][_0x134192(0x19b)]=(..._0xd2d61e)=>{const _0x5c4111=_0x134192,_0x24b221=_0xd2d61e['map'](_0xb72582=>_0xb72582 instanceof Error?_0xb72582[_0x5c4111(0x22d)]+'\x0a'+_0xb72582[_0x5c4111(0x1e5)]:String(_0xb72582))[_0x5c4111(0x128)]('\x20');this[_0x5c4111(0x2c1)](_0x5c4111(0x19b),_0x5c4111(0x166)+_0x24b221),_0x5ddd1e(..._0xd2d61e);},this[_0x134192(0x29b)](()=>{const _0x658ab6=_0x134192;this[_0x658ab6(0x27f)][_0x658ab6(0x19b)]=_0x5ddd1e;});}[_0x3ec352(0x2c1)](_0x1d90aa,_0x53f992){const _0x507d55=_0x3ec352;try{const _0x21f31e={'userId':this[_0x507d55(0x24b)],'logLabel':_0x1d90aa,'content':_0x53f992};this['_httpService'][_0x507d55(0x2e8)](_0x507d55(0x25b),{'body':_0x21f31e})[_0x507d55(0x1aa)](()=>{});}catch{}}};le=ln([ne(0x0,_0x4c0fac(_0x241db3)),ne(0x1,_0x4c0fac(_0x90f763)),ne(0x2,_0x54cafd),ne(0x3,_0x4c0fac(_0x19842d))],le);const hn=_0x3ec352(0x140),_t={};var un=Object[_0x3ec352(0x232)],dn=(_0x3f0d62,_0x357265,_0x3153c3,_0x1367eb)=>{const _0x14619e=_0x3ec352;for(var _0x4e9e46=_0x1367eb>0x1?void 0x0:_0x1367eb?un(_0x357265,_0x3153c3):_0x357265,_0x117e71=_0x3f0d62[_0x14619e(0x2ab)]-0x1,_0x14c80a;_0x117e71>=0x0;_0x117e71--)(_0x14c80a=_0x3f0d62[_0x117e71])&&(_0x4e9e46=_0x14c80a(_0x4e9e46)||_0x4e9e46);return _0x4e9e46;},lt=(_0x3affd5,_0x57a4bb)=>(_0x490f61,_0x346b7d)=>_0x57a4bb(_0x490f61,_0x346b7d,_0x3affd5);let he=class{constructor(_0x2fba92,_0x2446bd){const _0x41e954=_0x3ec352;this['_transformService']=_0x2fba92,this[_0x41e954(0x2ec)]=_0x2446bd;}[_0x3ec352(0x273)](_0x327974){const _0x250ee0=_0x3ec352;this['_transformUndoRedoStack'](_0x327974),this[_0x250ee0(0x22e)](_0x327974);}[_0x3ec352(0x301)](_0x41fbb1){const _0x2865fa=_0x3ec352,{unitID:_0x3cfdd1}=_0x41fbb1,_0x33e25c=this[_0x2865fa(0x2ec)][_0x2865fa(0x11f)](_0x3cfdd1)['with'](_0x502bd3),{redoCache:_0x24214a}=_0x33e25c[_0x2865fa(0x1e9)]();if(_0x24214a['length']===0x0)return _0x41fbb1;let _0x80d412=_0x2aaf32[_0x2865fa(0x2d5)](_0x41fbb1[_0x2865fa(0x23b)][0x0]);for(let _0xe3ba0=0x0;_0xe3ba0<_0x24214a['length'];_0xe3ba0++){const _0x168ba4={'id':'doc.mutation.rich-text-editing','params':{..._0x24214a[_0xe3ba0]}},_0xe7f46f=this['_transformService'][_0x2865fa(0x2c2)](_0x80d412,_0x168ba4,!0x1);if(_0x50e290(_0xe7f46f))throw _0xe7f46f[_0x2865fa(0x19b)];_0x80d412=_0xe7f46f['m1Prime'];}return{..._0x2aaf32['deepClone'](_0x41fbb1),'mutations':[_0x80d412]};}[_0x3ec352(0x14b)](_0x36ed5f){const _0xe3b803=_0x3ec352,{unitID:_0x45da37}=_0x36ed5f,_0x282bbb=this[_0xe3b803(0x2ec)][_0xe3b803(0x11f)](_0x45da37)['with'](_0x502bd3),{undoCache:_0x4b86ab,redoCache:_0x5db79f}=_0x282bbb[_0xe3b803(0x1e9)]();if(_0x4b86ab['length']===0x0||_0x5db79f[_0xe3b803(0x2ab)]===0x0)return;const _0x546951=[],_0x2bd1f6=[];let _0x493ffb=_0x2aaf32['deepClone'](_0x36ed5f[_0xe3b803(0x23b)][0x0]),_0x68c65f=_0x2aaf32[_0xe3b803(0x2d5)](_0x36ed5f[_0xe3b803(0x23b)][0x0]);for(let _0x5d7200=_0x4b86ab[_0xe3b803(0x2ab)]-0x1;_0x5d7200>=0x0;_0x5d7200--){const _0x1b4173={'id':_0xe3b803(0x152),'params':{..._0x4b86ab[_0x5d7200]}},_0x4c01e1={'id':_0xe3b803(0x152),'params':{..._0x5db79f[_0x5d7200]}},_0x15d481=this[_0xe3b803(0x136)]['transformMutation'](_0x493ffb,_0x1b4173,!0x1),_0x3ee8fd=this[_0xe3b803(0x136)]['transformMutation'](_0x68c65f,_0x4c01e1,!0x1);if(_0x50e290(_0x15d481))throw _0x15d481[_0xe3b803(0x19b)];if(_0x50e290(_0x3ee8fd))throw _0x3ee8fd[_0xe3b803(0x19b)];_0x546951[_0xe3b803(0x33f)](_0x15d481['m2Prime'][_0xe3b803(0x14d)]),_0x2bd1f6[_0xe3b803(0x33f)](_0x3ee8fd['m2Prime'][_0xe3b803(0x14d)]),_0x493ffb=_0x15d481[_0xe3b803(0x2ca)],_0x68c65f=_0x3ee8fd[_0xe3b803(0x2ca)];}_0x282bbb[_0xe3b803(0x163)]({'undoCache':_0x546951,'redoCache':_0x2bd1f6});}[_0x3ec352(0x22e)](_0x2766d5){const _0x42aad1=_0x3ec352,{unitID:_0x4ed9}=_0x2766d5,_0x16a7bd=this['_renderManagerService'][_0x42aad1(0x11f)](_0x4ed9)[_0x42aad1(0x2b2)](_0x502bd3),_0x4bcd2b=_0x16a7bd['getActiveRange']();if(_0x4bcd2b==null)return;const _0x542d16=[{'id':_0x42aad1(0x152),'params':{'unitId':_0x2766d5['unitID'],'actions':null,'textRanges':[_0x4bcd2b]}}],_0x4fe615=this['_transformService'][_0x42aad1(0x1e3)](_0x2766d5,_0x542d16);if(!_0x22b4d1(_0x4fe615))throw _0x4fe615[_0x42aad1(0x19b)];const _0x5c7b7f=_0x4fe615[_0x42aad1(0x156)][0x0][_0x42aad1(0x14d)][_0x42aad1(0x263)];Array[_0x42aad1(0x16f)](_0x5c7b7f)&&_0x5c7b7f['length']&&_0x16a7bd[_0x42aad1(0x10e)](_0x5c7b7f[0x0]);}};he=dn([lt(0x0,_0x1d7b40),lt(0x1,_0x5c6014)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x3fc985,_0x9f345a,_0x4f2540,_0x3dc303)=>{const _0x12d4f6=_0x3ec352;for(var _0x5e8001=_0x3dc303>0x1?void 0x0:_0x3dc303?Sn(_0x9f345a,_0x4f2540):_0x9f345a,_0x362593=_0x3fc985[_0x12d4f6(0x2ab)]-0x1,_0x420623;_0x362593>=0x0;_0x362593--)(_0x420623=_0x3fc985[_0x362593])&&(_0x5e8001=_0x420623(_0x5e8001)||_0x5e8001);return _0x5e8001;},Le=(_0x123b94,_0x812744)=>(_0x3ea669,_0x5d6271)=>_0x812744(_0x3ea669,_0x5d6271,_0x123b94);let ue=class{constructor(_0x295dc9,_0x37d6d2,_0x20df76){const _0x43ce28=_0x3ec352;this['_injector']=_0x295dc9,this[_0x43ce28(0x136)]=_0x37d6d2,this[_0x43ce28(0x2a6)]=_0x20df76;}[_0x3ec352(0x26c)](_0x418327){const _0x7b2d07=_0x3ec352;this[_0x7b2d07(0x23e)](_0x418327);}[_0x3ec352(0x301)](_0x430d0a){const _0x587067=_0x3ec352,{unitID:_0x665a46}=_0x430d0a,{collaboration:_0xf671b7}=this[_0x587067(0x2a6)][_0x587067(0x1c7)](_0x665a46);if(_0xf671b7[_0x587067(0x2ab)]===0x0)return _0x430d0a;let _0x8f950f=_0x2aaf32[_0x587067(0x2d5)](_0x430d0a[_0x587067(0x23b)][0x0]);for(let _0x132c7a=0x0;_0x132c7a<_0xf671b7[_0x587067(0x2ab)];_0x132c7a++){const _0x4d6f44={'id':_0x587067(0x152),'params':{'unitId':_0xf671b7[_0x132c7a][_0x587067(0x191)],..._0xf671b7[_0x132c7a][_0x587067(0x2f3)]}},_0x1864f9=this['_transformService'][_0x587067(0x2c2)](_0x8f950f,_0x4d6f44,!0x1);if(_0x50e290(_0x1864f9))throw _0x1864f9['error'];_0x8f950f=_0x1864f9[_0x587067(0x2ca)];}return{..._0x2aaf32[_0x587067(0x2d5)](_0x430d0a),'mutations':[_0x8f950f]};}['_transformHistoryAndStateStack'](_0xf2fefd){const _0x36e706=_0x3ec352,{unitID:_0x48e704}=_0xf2fefd,{history:_0x14fb09,collaboration:_0x460b37}=this[_0x36e706(0x2a6)][_0x36e706(0x1c7)](_0x48e704);if(_0x14fb09[_0x36e706(0x2ab)]===0x0&&_0x460b37['length']===0x0)return;const _0x5c82a0=[],_0x1ac42e=[];let _0x221bc6=_0x2aaf32['deepClone'](_0xf2fefd[_0x36e706(0x23b)][0x0]),_0x4b6147=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd['mutations'][0x0]);for(let _0x52cc27=_0x14fb09[_0x36e706(0x2ab)]-0x1;_0x52cc27>=0x0;_0x52cc27--){const _0x42ac67={'id':_0x36e706(0x152),'params':{'unitId':_0x14fb09[_0x52cc27][_0x36e706(0x191)],..._0x14fb09[_0x52cc27][_0x36e706(0x28c)]}},_0xcb7312={'id':_0x36e706(0x152),'params':{'unitId':_0x14fb09[_0x52cc27]['unitId'],..._0x14fb09[_0x52cc27]['redoState']}},_0x776a60=this['_transformService'][_0x36e706(0x2c2)](_0x221bc6,_0x42ac67,!0x1),_0x396521=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x4b6147,_0xcb7312,!0x1);if(_0x50e290(_0x776a60))throw _0x776a60[_0x36e706(0x19b)];if(_0x50e290(_0x396521))throw _0x396521[_0x36e706(0x19b)];_0x5c82a0['unshift']({..._0x14fb09[_0x52cc27],'undoState':_0x776a60[_0x36e706(0x156)]['params'],'redoState':_0x396521[_0x36e706(0x156)][_0x36e706(0x14d)]}),_0x221bc6=_0x776a60[_0x36e706(0x2ca)],_0x4b6147=_0x396521[_0x36e706(0x2ca)];}_0x221bc6=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd[_0x36e706(0x23b)][0x0]),_0x4b6147=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd['mutations'][0x0]);for(let _0x5600c1=_0x460b37[_0x36e706(0x2ab)]-0x1;_0x5600c1>=0x0;_0x5600c1--){const _0x4863ec={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x460b37[_0x5600c1]['unitId'],..._0x460b37[_0x5600c1][_0x36e706(0x28c)]}},_0x5390ae={'id':_0x36e706(0x152),'params':{'unitId':_0x460b37[_0x5600c1][_0x36e706(0x191)],..._0x460b37[_0x5600c1][_0x36e706(0x2f3)]}},_0x14ed35=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x221bc6,_0x4863ec,!0x1),_0x159030=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x4b6147,_0x5390ae,!0x1);if(_0x50e290(_0x14ed35))throw _0x14ed35['error'];if(_0x50e290(_0x159030))throw _0x159030[_0x36e706(0x19b)];_0x1ac42e[_0x36e706(0x33f)]({..._0x460b37[_0x5600c1],'undoState':_0x14ed35[_0x36e706(0x156)][_0x36e706(0x14d)],'redoState':_0x159030[_0x36e706(0x156)][_0x36e706(0x14d)]}),_0x221bc6=_0x14ed35[_0x36e706(0x2ca)],_0x4b6147=_0x159030[_0x36e706(0x2ca)];}this['_docStateChangeManagerService'][_0x36e706(0x1ea)](_0x48e704,{'history':_0x5c82a0,'collaboration':_0x1ac42e});}};ue=In([Le(0x0,_0x4c0fac(_0x241db3)),Le(0x1,_0x1d7b40),Le(0x2,_0x4c0fac(_0x234a8a))],ue);var mn=Object[_0x3ec352(0x232)],fn=(_0x3f1c5a,_0x53b8b2,_0x476a84,_0xbc9a2f)=>{const _0x13985e=_0x3ec352;for(var _0x3b7de6=_0xbc9a2f>0x1?void 0x0:_0xbc9a2f?mn(_0x53b8b2,_0x476a84):_0x53b8b2,_0x162c06=_0x3f1c5a[_0x13985e(0x2ab)]-0x1,_0x54d3ae;_0x162c06>=0x0;_0x162c06--)(_0x54d3ae=_0x3f1c5a[_0x162c06])&&(_0x3b7de6=_0x54d3ae(_0x3b7de6)||_0x3b7de6);return _0x3b7de6;},ht=(_0x1f7959,_0x4be362)=>(_0x38c645,_0x5b8e54)=>_0x4be362(_0x38c645,_0x5b8e54,_0x1f7959);let de=class{constructor(_0x570dc2,_0x1c8f55){const _0x38ad47=_0x3ec352;this[_0x38ad47(0x344)]=_0x570dc2,this[_0x38ad47(0x136)]=_0x1c8f55;}[_0x3ec352(0x1a3)](_0x4f86b3){const _0x21ce6b=_0x3ec352;var _0x297c69;const _0x1555c0=this['_injector'][_0x21ce6b(0x264)](_0x2c81c4),_0xaef794=(_0x297c69=_0x1555c0['getDocRanges']())!=null?_0x297c69:[];if(_0xaef794['length']===0x0)return;const _0x5817ed=_0x4f86b3[_0x21ce6b(0x238)],_0xa6a1b0=[{'id':_0x21ce6b(0x152),'params':{'unitId':_0x5817ed,'actions':null,'textRanges':_0xaef794}}],_0x2e81bf=this[_0x21ce6b(0x136)][_0x21ce6b(0x1e3)](_0x4f86b3,_0xa6a1b0);if(!_0x22b4d1(_0x2e81bf))throw _0x2e81bf[_0x21ce6b(0x19b)];const _0x41b0e3=_0x2e81bf['m2Prime'][0x0][_0x21ce6b(0x14d)]['textRanges'];Array[_0x21ce6b(0x16f)](_0x41b0e3)&&_0x41b0e3[_0x21ce6b(0x2ab)]&&_0x1555c0[_0x21ce6b(0x33c)](_0x41b0e3,{'unitId':_0x5817ed,'subUnitId':_0x5817ed},!0x1);}};de=fn([ht(0x0,_0x4c0fac(_0x241db3)),ht(0x1,_0x1d7b40)],de);var gn=Object[_0x3ec352(0x232)],En=(_0x5c90b2,_0x353d79,_0x176ca0,_0x2fd5c8)=>{for(var _0x3ade86=_0x2fd5c8>0x1?void 0x0:_0x2fd5c8?gn(_0x353d79,_0x176ca0):_0x353d79,_0x1b4bb6=_0x5c90b2['length']-0x1,_0x208d83;_0x1b4bb6>=0x0;_0x1b4bb6--)(_0x208d83=_0x5c90b2[_0x1b4bb6])&&(_0x3ade86=_0x208d83(_0x3ade86)||_0x3ade86);return _0x3ade86;},U=(_0x2bf165,_0x575806)=>(_0x43ea91,_0x1bcd07)=>_0x575806(_0x43ea91,_0x1bcd07,_0x2bf165);let Se=class extends _0xbbfd04{constructor(_0x2d5d0e,_0x5b3525,_0x45de1d,_0x38e3ec,_0x48aab4,_0x1dd107,_0x30e74e,_0xb148de){const _0x41212f=_0x3ec352;super(),_(this,_0x41212f(0x2cd),new _0x16c712(_0xed7e82[_0x41212f(0x2a3)])),(this['_docStateChangeManagerService']=_0x2d5d0e,this[_0x41212f(0x354)]=_0x5b3525,this[_0x41212f(0x2cb)]=_0x45de1d,this[_0x41212f(0x35d)]=_0x38e3ec,this[_0x41212f(0x114)]=_0x48aab4,this[_0x41212f(0x307)]=_0x1dd107,this[_0x41212f(0x1df)]=_0x30e74e,this[_0x41212f(0x268)]=_0xb148de,this[_0x41212f(0x309)]());}[_0x3ec352(0x309)](){const _0x275bfc=_0x3ec352;this[_0x275bfc(0x29b)](this[_0x275bfc(0x354)][_0x275bfc(0x245)][_0x275bfc(0x261)](_0x50c4f0=>{const _0x3b0db3=_0x275bfc,_0x5c9e40=this[_0x3b0db3(0x2a6)][_0x3b0db3(0x295)][_0x3b0db3(0x261)](_0x5ae503=>{const _0x53e268=_0x3b0db3;if(_0x5ae503==null)return;const {unitId:_0x3697fb,redoState:_0x7e4c8f,commandId:_0xfc5027}=_0x5ae503;if(_0x3697fb!==_0x50c4f0[_0x53e268(0x238)])return;const _0x375b27={'id':_0xfc5027,'type':_0x2dbe42[_0x53e268(0x1d1)],'params':{'unitId':_0x3697fb,'actions':_0x7e4c8f['actions'],'textRanges':null}};_0x50c4f0['onLocalMutation'](_0x375b27);});if(_0x50c4f0[_0x3b0db3(0x29b)](_0x5c9e40),_0x50c4f0 instanceof _0x5aa8f0){const _0x5e186f={'onTransformIME':_0x745d56=>this[_0x3b0db3(0x2cb)][_0x3b0db3(0x273)](_0x745d56),'onTransformState':_0x212e76=>this[_0x3b0db3(0x35d)][_0x3b0db3(0x26c)](_0x212e76),'onTransformSelections':_0xf49515=>this[_0x3b0db3(0x114)]['transformSelections'](_0xf49515),'onSyncEditingCollabCursor':_0x49b33a=>this[_0x3b0db3(0x307)]['syncEditingCollabCursor'](_0x49b33a),'onTransformRemoteChangesetByIMECache':_0x3476b0=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3476b0),'onTransformRemoteChangesetByStateCache':_0x2898ba=>this[_0x3b0db3(0x35d)][_0x3b0db3(0x301)](_0x2898ba)};_0x50c4f0[_0x3b0db3(0x29e)](_0x5e186f);}}));}};Se=En([U(0x0,_0x4c0fac(_0x234a8a)),U(0x1,_0x4c0fac(_0x55b9c2)),U(0x2,_0x4c0fac(he)),U(0x3,_0x4c0fac(ue)),U(0x4,_0x4c0fac(de)),U(0x5,_0x4c0fac(ze)),U(0x6,_0x12f42d),U(0x7,_0x4c0fac(_0x498bd0))],Se);var Z=(_0x40fd69=>(_0x40fd69[_0x40fd69['UNDEFINED']=0x0]=_0x3ec352(0x1a9),_0x40fd69[_0x40fd69['OK']=0x1]='OK',_0x40fd69[_0x40fd69[_0x3ec352(0x170)]=0x2]=_0x3ec352(0x170),_0x40fd69[_0x40fd69['PERMISSION_DENIED']=0x3]=_0x3ec352(0x20e),_0x40fd69[_0x40fd69[_0x3ec352(0x1c2)]=0x4]=_0x3ec352(0x1c2),_0x40fd69[_0x40fd69['UNAUTHENTICATED']=0x5]=_0x3ec352(0x25e),_0x40fd69[_0x40fd69[_0x3ec352(0x1ae)]=0x6]='ALREADY_EXISTS',_0x40fd69[_0x40fd69[_0x3ec352(0x16e)]=0x7]='INVALID_ARGUMENT',_0x40fd69[_0x40fd69['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x40fd69[_0x40fd69[_0x3ec352(0x32a)]=0x9]=_0x3ec352(0x32a),_0x40fd69[_0x40fd69[_0x3ec352(0x18f)]=0xa]=_0x3ec352(0x18f),_0x40fd69[_0x40fd69['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x40fd69[_0x40fd69[_0x3ec352(0x1fe)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40fd69[_0x40fd69[_0x3ec352(0x2dd)]=0xd]=_0x3ec352(0x2dd),_0x40fd69[_0x40fd69[_0x3ec352(0x162)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40fd69[_0x40fd69[_0x3ec352(0x2f0)]=0xf]=_0x3ec352(0x2f0),_0x40fd69[_0x40fd69[_0x3ec352(0x1d5)]=0x10]=_0x3ec352(0x1d5),_0x40fd69[_0x40fd69[_0x3ec352(0x125)]=0x64]=_0x3ec352(0x125),_0x40fd69[_0x40fd69[_0x3ec352(0x155)]=0x65]=_0x3ec352(0x155),_0x40fd69[_0x40fd69[_0x3ec352(0x160)]=0xc9]=_0x3ec352(0x160),_0x40fd69[_0x40fd69['USER_IS_ANONYMOUS']=0xca]=_0x3ec352(0x12b),_0x40fd69[_0x40fd69[_0x3ec352(0x137)]=0x1389]=_0x3ec352(0x137),_0x40fd69[_0x40fd69[_0x3ec352(0x317)]=0x1771]=_0x3ec352(0x317),_0x40fd69[_0x40fd69[_0x3ec352(0x277)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x40fd69[_0x40fd69[_0x3ec352(0x337)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x40fd69[_0x40fd69[_0x3ec352(0x2c5)]=0x1b59]='APPLY_REJECT',_0x40fd69[_0x40fd69['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3ec352(0x30a),_0x40fd69[_0x40fd69[_0x3ec352(0x22f)]=0x1b5b]=_0x3ec352(0x22f),_0x40fd69[_0x40fd69[_0x3ec352(0x343)]=0x1b5c]=_0x3ec352(0x343),_0x40fd69[_0x40fd69[_0x3ec352(0x150)]=0x1b5d]=_0x3ec352(0x150),_0x40fd69[_0x40fd69[_0x3ec352(0x12e)]=0x1f41]=_0x3ec352(0x12e),_0x40fd69[_0x40fd69[_0x3ec352(0x230)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x40fd69[_0x40fd69[_0x3ec352(0x151)]=0x232a]=_0x3ec352(0x151),_0x40fd69[_0x40fd69['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3ec352(0x1a5),_0x40fd69[_0x40fd69[_0x3ec352(0x16b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x40fd69[_0x40fd69['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3ec352(0x255),_0x40fd69[_0x40fd69[_0x3ec352(0x14c)]=0x2711]=_0x3ec352(0x14c),_0x40fd69[_0x40fd69[_0x3ec352(0x2b9)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x40fd69[_0x40fd69[_0x3ec352(0x333)]=0x2713]=_0x3ec352(0x333),_0x40fd69[_0x40fd69[_0x3ec352(0x258)]=0x2714]=_0x3ec352(0x258),_0x40fd69[_0x40fd69[_0x3ec352(0x345)]=0x271a]=_0x3ec352(0x345),_0x40fd69[_0x40fd69[_0x3ec352(0x282)]=0x271b]=_0x3ec352(0x282),_0x40fd69[_0x40fd69['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3ec352(0x20f),_0x40fd69[_0x40fd69[_0x3ec352(0x2eb)]=0x271d]=_0x3ec352(0x2eb),_0x40fd69[_0x40fd69[_0x3ec352(0x1f4)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x40fd69[_0x40fd69['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x40fd69[_0x40fd69[_0x3ec352(0x1c4)]=0x2720]=_0x3ec352(0x1c4),_0x40fd69[_0x40fd69[_0x3ec352(0x145)]=0x2af9]=_0x3ec352(0x145),_0x40fd69[_0x40fd69[_0x3ec352(0x117)]=0x2ee1]=_0x3ec352(0x117),_0x40fd69[_0x40fd69[_0x3ec352(0x147)]=0x2ee2]=_0x3ec352(0x147),_0x40fd69[_0x40fd69[_0x3ec352(0x133)]=0x2ee3]=_0x3ec352(0x133),_0x40fd69[_0x40fd69[_0x3ec352(0x209)]=0x2ee4]=_0x3ec352(0x209),_0x40fd69[_0x40fd69[_0x3ec352(0x10a)]=0x2ee5]=_0x3ec352(0x10a),_0x40fd69[_0x40fd69[_0x3ec352(0x306)]=0x32c9]=_0x3ec352(0x306),_0x40fd69[_0x40fd69[_0x3ec352(0x2fb)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x40fd69[_0x40fd69['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3ec352(0x1bd),_0x40fd69[_0x40fd69[_0x3ec352(0x13b)]=0x36b1]=_0x3ec352(0x13b),_0x40fd69[_0x40fd69[_0x3ec352(0x110)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x40fd69[_0x40fd69['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x40fd69[_0x40fd69[_0x3ec352(0x10f)]=0x36b4]=_0x3ec352(0x10f),_0x40fd69[_0x40fd69['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x40fd69[_0x40fd69['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x3ec352(0x2d9),_0x40fd69[_0x40fd69[_0x3ec352(0x1fc)]=0x36b7]=_0x3ec352(0x1fc),_0x40fd69[_0x40fd69[_0x3ec352(0x324)]=0x36b8]=_0x3ec352(0x324),_0x40fd69[_0x40fd69['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x40fd69[_0x40fd69['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x3ec352(0x2ff),_0x40fd69[_0x40fd69[_0x3ec352(0x19e)]=0x3717]=_0x3ec352(0x19e),_0x40fd69[_0x40fd69['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x40fd69[_0x40fd69[_0x3ec352(0x123)]=0x3a99]=_0x3ec352(0x123),_0x40fd69[_0x40fd69['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3ec352(0x243),_0x40fd69[_0x40fd69[_0x3ec352(0x1c0)]=0x3a9b]=_0x3ec352(0x1c0),_0x40fd69[_0x40fd69[_0x3ec352(0x2bb)]=0x3a9c]=_0x3ec352(0x2bb),_0x40fd69[_0x40fd69['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x3ec352(0x32e),_0x40fd69[_0x40fd69[_0x3ec352(0x185)]=0x3a9e]=_0x3ec352(0x185),_0x40fd69[_0x40fd69[_0x3ec352(0x275)]=0x3a9f]=_0x3ec352(0x275),_0x40fd69[_0x40fd69[_0x3ec352(0x1f9)]=0x3e81]=_0x3ec352(0x1f9),_0x40fd69[_0x40fd69[_0x3ec352(0x146)]=-0x1]=_0x3ec352(0x146),_0x40fd69))(Z||{});function vn(_0x52eaf3){const _0x1275f3=_0x3ec352;var _0x464cc8,_0x26ff56;const _0x13faf4=(_0x464cc8=_0x52eaf3[_0x1275f3(0x1f1)])==null?void 0x0:_0x464cc8['stage'],_0x529577=((_0x26ff56=_0x52eaf3[_0x1275f3(0x1f1)])==null?void 0x0:_0x26ff56[_0x1275f3(0x2dc)])||0x0;return _0x13faf4===_0x27c50c[_0x1275f3(0x1ec)]&&_0x529577>0x0;}function pn(_0x1463e3){const _0x40bb70=_0x3ec352;return _0x1463e3[_0x40bb70(0x1b9)]===_0x290d6f['SUCCESS'];}var On=Object[_0x3ec352(0x232)],Tn=(_0x3a12d4,_0x1ca3d8,_0x22591b,_0x8f6f47)=>{const _0x4bdd47=_0x3ec352;for(var _0x426852=_0x8f6f47>0x1?void 0x0:_0x8f6f47?On(_0x1ca3d8,_0x22591b):_0x1ca3d8,_0x411a3b=_0x3a12d4[_0x4bdd47(0x2ab)]-0x1,_0x114ea6;_0x411a3b>=0x0;_0x411a3b--)(_0x114ea6=_0x3a12d4[_0x411a3b])&&(_0x426852=_0x114ea6(_0x426852)||_0x426852);return _0x426852;},P=(_0x4977db,_0x243d75)=>(_0x1dc6a7,_0x2722c9)=>_0x243d75(_0x1dc6a7,_0x2722c9,_0x4977db);const Cn=_0x3ec352(0x336),Rn=_0x3ec352(0x284),Dn=_0x3ec352(0x218);let Ie=class extends _0xbbfd04{constructor(_0x29bc55,_0xdbca3e,_0x36bef3,_0x3a13d0,_0x4be349,_0x5e251e,_0x66a8dd){const _0x45e801=_0x3ec352;super(),_(this,_0x45e801(0x28f),null),_(this,_0x45e801(0x132),0x0),_(this,'_currentUsage',0x0),_(this,'_taskIds',[]),_(this,_0x45e801(0x34a),0x0),(this[_0x45e801(0x1df)]=_0x29bc55,this[_0x45e801(0x24e)]=_0xdbca3e,this[_0x45e801(0x157)]=_0x36bef3,this[_0x45e801(0x21d)]=_0x3a13d0,this[_0x45e801(0x334)]=_0x4be349,this[_0x45e801(0x27f)]=_0x5e251e,this[_0x45e801(0x268)]=_0x66a8dd,this[_0x45e801(0x290)]());}[_0x3ec352(0x290)](){const _0xaf05b=_0x3ec352;this[_0xaf05b(0x29b)](this[_0xaf05b(0x24e)][_0xaf05b(0x1ab)]((_0x584c5d,_0x2a4114)=>{const _0x44dcf3=_0xaf05b;var _0x136886;if(_0x584c5d['id']!==_0x27aca5['id'])return;const _0x36437e=_0x584c5d[_0x44dcf3(0x14d)];if(!this[_0x44dcf3(0x28b)]((_0x136886=_0x36437e[_0x44dcf3(0x154)])!=null?_0x136886:[]))return;if(!this[_0x44dcf3(0x1f3)]())throw this['_checkAndWaitForCalculationPermission'](_0x584c5d,_0x2a4114),this[_0x44dcf3(0x202)](),new _0x3316fd();})),this[_0xaf05b(0x29b)](this[_0xaf05b(0x24e)][_0xaf05b(0x1c1)]((_0x2d5fe3,_0x26219f)=>{const _0x6173a3=_0xaf05b;if(_0x2d5fe3['id']!==_0x1bfb73['id'])return;const _0x42da30=_0x2d5fe3[_0x6173a3(0x14d)];if(vn(_0x42da30)){const _0x4e5b38=_0x1f3cf5();this[_0x6173a3(0x2bf)][_0x6173a3(0x2c7)](_0x4e5b38),this[_0x6173a3(0x220)](_0x4e5b38);}else{if(pn(_0x42da30)&&this[_0x6173a3(0x2bf)]['length']>0x0){const _0x3d4c8c=this['_taskIds'][_0x6173a3(0x2ce)]();this[_0x6173a3(0x197)](_0x3d4c8c);}}}));}[_0x3ec352(0x22c)](){const _0x5f152f=_0x3ec352;super[_0x5f152f(0x22c)](),this[_0x5f152f(0x193)](),this['_taskIds']=[],this[_0x5f152f(0x33e)]=0x0,this[_0x5f152f(0x132)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3ec352(0x326)](_0x1d1aee,_0x127a98){const _0x3fa590=_0x3ec352;for(let _0x70d0aa=0x0;_0x70d0aa<0x1e;_0x70d0aa++)try{if(await this['_getFormulaLimitStatus'](),this[_0x3fa590(0x1f3)]()){this[_0x3fa590(0x2e1)](_0x1d1aee,_0x127a98),this['_messageService'][_0x3fa590(0x1d9)]({'content':this['_localeService']['t'](_0x3fa590(0x325)),'type':_0x5187ea[_0x3fa590(0x17b)]});return;}await new Promise(_0x2efc2a=>{const _0x28cabb=_0x3fa590;this[_0x28cabb(0x28f)]=window[_0x28cabb(0x167)](_0x2efc2a,0x3e8);});}catch(_0x7a6425){this[_0x3fa590(0x27f)][_0x3fa590(0x19b)](_0x7a6425);}this[_0x3fa590(0x1df)]['show']({'content':this['_localeService']['t'](_0x3fa590(0x1c5)),'type':_0x5187ea[_0x3fa590(0x12c)]});}['_applyCommand'](_0x258b44,_0x1f7d05){const _0x13d1f2=_0x3ec352;try{this['_commandService']['executeCommand'](_0x258b44['id'],_0x258b44[_0x13d1f2(0x14d)],_0x1f7d05);}catch(_0x192f75){this['_logService'][_0x13d1f2(0x19b)](_0x192f75);}}['_setFormulaLimitStatus'](_0x17e76e,_0x121013){const _0x8a6b01=_0x3ec352;_0x121013<this[_0x8a6b01(0x34a)]||(this[_0x8a6b01(0x34a)]=_0x121013,this[_0x8a6b01(0x132)]=Number['parseInt'](_0x17e76e[_0x8a6b01(0x246)]),this[_0x8a6b01(0x33e)]=Number['parseInt'](_0x17e76e['currentUsage']));}async[_0x3ec352(0x220)](_0x593a9b){const _0x1f5a73=_0x3ec352;var _0x4a92d3,_0x6bf7d;const _0x421460=Date[_0x1f5a73(0x1bb)]();try{const _0x142429=((_0x4a92d3=this[_0x1f5a73(0x157)]['getConfig'](_0x2fa9c5))==null?void 0x0:_0x4a92d3[_0x1f5a73(0x31d)])||Rn,_0xc83e46=(await this[_0x1f5a73(0x21d)][_0x1f5a73(0x2e8)](_0x142429,{'body':JSON['stringify']({'taskId':_0x593a9b})}))['body'];if(((_0x6bf7d=_0xc83e46[_0x1f5a73(0x19b)])==null?void 0x0:_0x6bf7d[_0x1f5a73(0x27e)])!==Z['OK'])return;this[_0x1f5a73(0x1d4)](_0xc83e46[_0x1f5a73(0x12f)],_0x421460);}catch(_0x20f19b){this[_0x1f5a73(0x27f)][_0x1f5a73(0x19b)](_0x20f19b);}}async[_0x3ec352(0x267)](_0x2608c3){const _0x281302=_0x3ec352;var _0x51b098,_0x36b185;const _0x496bca=Date['now']();try{const _0x3d1392=((_0x51b098=this[_0x281302(0x157)][_0x281302(0x1d8)](_0x2fa9c5))==null?void 0x0:_0x51b098[_0x281302(0x204)])||Cn,_0x4977fc=_0x2608c3?_0x3d1392+_0x281302(0x265)+encodeURIComponent(_0x2608c3):_0x3d1392,_0x47f6a0=(await this['_httpService'][_0x281302(0x264)](_0x4977fc))[_0x281302(0x2a0)];if(((_0x36b185=_0x47f6a0[_0x281302(0x19b)])==null?void 0x0:_0x36b185[_0x281302(0x27e)])!==Z['OK'])return;this[_0x281302(0x1d4)](_0x47f6a0['limitInfo'],_0x496bca);}catch(_0x27bf11){this[_0x281302(0x27f)][_0x281302(0x19b)](_0x27bf11);}}async['_releaseCalculationLimit'](_0x14340f){const _0x4c2e8b=_0x3ec352;var _0x57e764,_0x329e8a;const _0x46330b=Date['now']();try{const _0x8a1b50=((_0x57e764=this[_0x4c2e8b(0x157)][_0x4c2e8b(0x1d8)](_0x2fa9c5))==null?void 0x0:_0x57e764['releaseFormulaLimitUrl'])||Dn,_0x349e48=(await this[_0x4c2e8b(0x21d)][_0x4c2e8b(0x2e8)](_0x8a1b50,{'body':JSON[_0x4c2e8b(0x28d)]({'taskId':_0x14340f})}))['body'];if(((_0x329e8a=_0x349e48[_0x4c2e8b(0x19b)])==null?void 0x0:_0x329e8a[_0x4c2e8b(0x27e)])!==Z['OK'])return;this[_0x4c2e8b(0x1d4)](_0x349e48[_0x4c2e8b(0x12f)],_0x46330b);}catch(_0x1a9f5b){this[_0x4c2e8b(0x27f)][_0x4c2e8b(0x19b)](_0x1a9f5b);}}[_0x3ec352(0x1f3)](){const _0x5e8152=_0x3ec352;return this[_0x5e8152(0x132)]===0x0?!0x0:this[_0x5e8152(0x132)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x5dc0c7=_0x3ec352;this[_0x5dc0c7(0x28f)]&&(clearTimeout(this[_0x5dc0c7(0x28f)]),this[_0x5dc0c7(0x28f)]=null);}[_0x3ec352(0x202)](){const _0x1a20e1=_0x3ec352;this[_0x1a20e1(0x1df)][_0x1a20e1(0x1d9)]({'content':this[_0x1a20e1(0x268)]['t'](_0x1a20e1(0x1ac)),'type':_0x5187ea['Loading']});}[_0x3ec352(0x28b)](_0x4fae1a){const _0x1b69e0=_0x3ec352;for(const _0x396cc9 of _0x4fae1a){const {unitId:_0x4658d8,sheetId:_0x4f7196,range:_0x52408d}=_0x396cc9,_0x8c3659=this[_0x1b69e0(0x334)]['getUnit'](_0x4658d8);if(!_0x8c3659)continue;const _0x4986d3=_0x8c3659[_0x1b69e0(0x20b)](_0x4f7196);if(!_0x4986d3)continue;const _0x40177a=_0x4986d3['getCellMatrix']();for(let _0xacc61e=_0x52408d['startRow'];_0xacc61e<=_0x52408d[_0x1b69e0(0x288)];_0xacc61e++)for(let _0x3d65c3=_0x52408d['startColumn'];_0x3d65c3<=_0x52408d[_0x1b69e0(0x20a)];_0x3d65c3++){const _0x4f2406=_0x40177a['getValue'](_0xacc61e,_0x3d65c3);if(_0x4f2406&&(_0x1136c8(_0x4f2406['f'])||_0x50cc37(_0x4f2406['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x4c0fac(_0x12f42d)),P(0x1,_0x234cad),P(0x2,_0x305bbd),P(0x3,_0x4c0fac(_0x90f763)),P(0x4,_0x5bb534),P(0x5,_0x54cafd),P(0x6,_0x4c0fac(_0x498bd0))],Ie);var Nn=Object[_0x3ec352(0x232)],bn=(_0x41b1f6,_0x230ae9,_0x44b963,_0x324a02)=>{const _0x40aaab=_0x3ec352;for(var _0x219fac=_0x324a02>0x1?void 0x0:_0x324a02?Nn(_0x230ae9,_0x44b963):_0x230ae9,_0x552917=_0x41b1f6[_0x40aaab(0x2ab)]-0x1,_0x5c0f9b;_0x552917>=0x0;_0x552917--)(_0x5c0f9b=_0x41b1f6[_0x552917])&&(_0x219fac=_0x5c0f9b(_0x219fac)||_0x219fac);return _0x219fac;},Ue=(_0x355a61,_0x1dee74)=>(_0x5eb698,_0x32f2d0)=>_0x1dee74(_0x5eb698,_0x32f2d0,_0x355a61);function _0x437b(_0x485937,_0x3ce060){_0x485937=_0x485937-0x109;const _0x25ec54=_0x25ec();let _0x437bda=_0x25ec54[_0x485937];return _0x437bda;}let He=class extends _0xbbfd04{constructor(_0x1d91ea,_0x5b46b1,_0x35f56b){const _0x135d4b=_0x3ec352;super(),_(this,_0x135d4b(0x1ee),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x135d4b(0x157)]=_0x1d91ea,this[_0x135d4b(0x18b)]=_0x5b46b1,this[_0x135d4b(0x17d)]=_0x35f56b);}['disableLocalCache'](){const _0x4cc504=_0x3ec352;this[_0x4cc504(0x135)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x3ec352(0x2b5)](){const _0x420850=_0x3ec352;return this[_0x420850(0x169)];}['dispose'](){const _0x5c9dcf=_0x3ec352;this[_0x5c9dcf(0x2fe)]()[_0x5c9dcf(0x28e)](()=>super['dispose']());}async[_0x3ec352(0x29a)](_0xf9ba17){const _0x99df8=_0x3ec352;return this['_disabled']?null:this[_0x99df8(0x18b)][_0x99df8(0x126)](_0x4cf3d4(_0xf9ba17));}async[_0x3ec352(0x129)](_0x5e257a,_0x4031e1){const _0x8071b9=_0x3ec352;return!!this[_0x8071b9(0x18b)][_0x8071b9(0x2ef)](_0x5e257a,_0x4031e1);}[_0x3ec352(0x141)](_0x90a1e0,_0x132b28,_0x2d334a,_0x277067){const _0x5c6102=_0x3ec352,_0x1bdd4b=this[_0x5c6102(0x17d)][_0x5c6102(0x35c)](_0x90a1e0);this[_0x5c6102(0x1ee)][_0x5c6102(0x1a7)](_0x90a1e0,{'unitID':_0x90a1e0,'type':_0x132b28,'awaitingChangeset':_0x2d334a,'mutations':_0x277067,'rev':_0x1bdd4b}),this[_0x5c6102(0x169)][_0x5c6102(0x177)](_0x90a1e0)||this[_0x5c6102(0x194)](_0x90a1e0);}[_0x3ec352(0x194)](_0x15541b){const _0x13d6ee=_0x3ec352,_0x43cb76=this[_0x13d6ee(0x226)]();_0x43cb76===0x0?this[_0x13d6ee(0x2f5)](_0x15541b):this[_0x13d6ee(0x169)][_0x13d6ee(0x1a7)](_0x15541b,setTimeout(()=>this[_0x13d6ee(0x2f5)](_0x15541b),_0x43cb76));}[_0x3ec352(0x226)](){const _0x2c8b1a=_0x3ec352;var _0x506226;return(_0x506226=this[_0x2c8b1a(0x157)][_0x2c8b1a(0x1d8)](_0xb0b56))!=null?_0x506226:_0x161007;}[_0x3ec352(0x2f5)](_0x22343a){const _0x11adaf=_0x3ec352,_0x4c53d2=this[_0x11adaf(0x169)][_0x11adaf(0x264)](_0x22343a);return _0x4c53d2!==void 0x0&&window['clearTimeout'](_0x4c53d2),this[_0x11adaf(0x18b)]['setItem'](_0x4cf3d4(_0x22343a),this[_0x11adaf(0x1ee)][_0x11adaf(0x264)](_0x22343a))[_0x11adaf(0x28e)](()=>this['_saveTaskMap'][_0x11adaf(0x278)](_0x22343a));}async['exhaustSavingTask'](){const _0x26a2e4=_0x3ec352,_0x250b2f=[];this['_saveTaskMap']['forEach']((_0x226f57,_0x50c3ae)=>{const _0x526280=_0x437b;window[_0x526280(0x2e9)](_0x226f57),_0x250b2f['push'](this[_0x526280(0x2f5)](_0x50c3ae)[_0x526280(0x28e)](()=>{const _0x10f71d=_0x526280;this[_0x10f71d(0x169)][_0x10f71d(0x278)](_0x50c3ae);}));}),await Promise[_0x26a2e4(0x159)](_0x250b2f);}};He=bn([Ue(0x0,_0x305bbd),Ue(0x1,_0x465dbb),Ue(0x2,_0x4c0fac(_0x409ba3))],He);class Ln extends _0x4e9bf2{constructor(){const _0x44160b=_0x3ec352;super(),_(this,_0x44160b(0x1e7)),this[_0x44160b(0x1e7)]=_0x27f9ea(window,'popstate')[_0x44160b(0x1cf)](_0x451ca1(this[_0x44160b(0x24c)]),_0x504a7c(0x1),_0x13be9d(void 0x0));}['setParam'](_0x172ce7,_0x485a49,_0x1a8f97=!0x1){const _0xa722dd=_0x3ec352,_0x2156db=new URL(window[_0xa722dd(0x143)][_0xa722dd(0x1d3)]);_0x2156db['searchParams'][_0xa722dd(0x1a7)](_0x172ce7,_0x485a49),_0x1a8f97?window[_0xa722dd(0x23a)]['replaceState']('','',_0x2156db[_0xa722dd(0x118)]()):window[_0xa722dd(0x23a)]['pushState']('','',_0x2156db['toString']());}['removeParam'](_0x204cb2,_0x545108=!0x1){const _0x497734=_0x3ec352,_0x3ede6b=new URL(window['location'][_0x497734(0x1d3)]);_0x3ede6b['searchParams'][_0x497734(0x278)](_0x204cb2),_0x545108?window[_0x497734(0x23a)][_0x497734(0x239)]('','',_0x3ede6b[_0x497734(0x118)]()):window['history']['pushState']('','',_0x3ede6b[_0x497734(0x118)]());}[_0x3ec352(0x2c4)](_0x520c21){const _0x2d1ea7=_0x3ec352;var _0x303fbd;return(_0x303fbd=new URL(window[_0x2d1ea7(0x143)][_0x2d1ea7(0x1d3)])[_0x2d1ea7(0x355)][_0x2d1ea7(0x264)](_0x520c21))!=null?_0x303fbd:void 0x0;}}var Un=Object[_0x3ec352(0x16d)],Mn=Object[_0x3ec352(0x232)],An=(_0x1afb1b,_0x5577ad,_0x2117fe)=>_0x5577ad in _0x1afb1b?Un(_0x1afb1b,_0x5577ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2117fe}):_0x1afb1b[_0x5577ad]=_0x2117fe,Pn=(_0x214f6,_0x23cce3,_0x229e5a,_0x22c003)=>{const _0x5da74f=_0x3ec352;for(var _0x189337=_0x22c003>0x1?void 0x0:_0x22c003?Mn(_0x23cce3,_0x229e5a):_0x23cce3,_0x1ea1cb=_0x214f6[_0x5da74f(0x2ab)]-0x1,_0x33458a;_0x1ea1cb>=0x0;_0x1ea1cb--)(_0x33458a=_0x214f6[_0x1ea1cb])&&(_0x189337=_0x33458a(_0x189337)||_0x189337);return _0x189337;},Me=(_0x6bd5a2,_0x3b47a8)=>(_0x20b9f1,_0x435ada)=>_0x3b47a8(_0x20b9f1,_0x435ada,_0x6bd5a2),wn=(_0x4427a0,_0x367d4a,_0x55672b)=>An(_0x4427a0,_0x367d4a+'',_0x55672b);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x5d525e{constructor(_0x4d35b7=_t,_0x3f06b8,_0x41875e,_0x4b65d5){const _0x211de3=_0x3ec352;super(),this['_config']=_0x4d35b7,this[_0x211de3(0x2ec)]=_0x3f06b8,this[_0x211de3(0x344)]=_0x41875e,this['_configService']=_0x4b65d5;const {..._0x38c01d}=_0x286f03({},_t,this[_0x211de3(0x2a1)]);this[_0x211de3(0x157)]['setConfig'](hn,_0x38c01d);}['onStarting'](){const _0x3ec21c=_0x3ec352;this[_0x3ec21c(0x2b3)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3ec352(0x2b3)](){const _0x2bf03b=_0x3ec352;var _0x20b50b;const _0x49ef4b=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x3c33c4,{'useClass':_0x5d4b34}],[_0x223ca0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2bf03b(0x2a1)][_0x2bf03b(0x1b8)]&&_0x49ef4b['push']([le]),_0x5ffac1(this[_0x2bf03b(0x344)],_0x25bca4(_0x49ef4b,(_0x20b50b=this[_0x2bf03b(0x2a1)])==null?void 0x0:_0x20b50b['override']));}['_registerRenderDependencies'](){const _0xf9e988=_0x3ec352;this[_0xf9e988(0x29b)](this[_0xf9e988(0x2ec)][_0xf9e988(0x30c)](_0x560022[_0xf9e988(0x272)],[Fe])),this[_0xf9e988(0x29b)](this[_0xf9e988(0x2ec)]['registerRenderModule'](_0x560022[_0xf9e988(0x33b)],[ke]));}['_initDependencies'](){const _0x313329=_0x3ec352;_0x2983e0(this[_0x313329(0x344)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x313329(0x2a1)][_0x313329(0x1b8)]&&_0x2983e0(this[_0x313329(0x344)],[[le]]);}};wn(Ye,_0x3ec352(0x2bc),yn),Ye=Pn([_0x584864(_0x303e23),Me(0x1,_0x5c6014),Me(0x2,_0x4c0fac(_0x241db3)),Me(0x3,_0x305bbd)],Ye);var $n=Object[_0x3ec352(0x232)],xn=(_0x1b63fa,_0x34161a,_0x524dee,_0x1ddbcf)=>{const _0x37bd0b=_0x3ec352;for(var _0x484cc7=_0x1ddbcf>0x1?void 0x0:_0x1ddbcf?$n(_0x34161a,_0x524dee):_0x34161a,_0x5bbcfa=_0x1b63fa[_0x37bd0b(0x2ab)]-0x1,_0x19f6c8;_0x5bbcfa>=0x0;_0x5bbcfa--)(_0x19f6c8=_0x1b63fa[_0x5bbcfa])&&(_0x484cc7=_0x19f6c8(_0x484cc7)||_0x484cc7);return _0x484cc7;},J=(_0x46c391,_0x2e7d78)=>(_0x276aab,_0x2467df)=>_0x2e7d78(_0x276aab,_0x2467df,_0x46c391);let ut=class extends _0xf24f53{constructor(_0x32acee,_0x3af245,_0x5db671,_0x585904,_0x98102a){super(_0x32acee,_0x3af245,_0x5db671,_0x585904,_0x98102a);}async['createSocket'](_0x5da39b){const _0x56617d=await this['_getSessionTicket'](),_0x1f6418=this['_createSocketURL'](_0x5da39b,_0x56617d);return this['_doCreateSocket'](_0x1f6418);}[_0x3ec352(0x251)](_0x270b4e,_0x59e8ed){const _0x20dbd9=_0x3ec352,_0x2b1438=typeof window>'u'?new URL(_0x270b4e):new URL(_0x270b4e,window['location'][_0x20dbd9(0x240)]);_0x2b1438[_0x20dbd9(0x355)][_0x20dbd9(0x1a7)](_0x20dbd9(0x2ee),_0x59e8ed);const _0x3a858b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x20dbd9(0x143)][_0x20dbd9(0x2a4)]);return _0x3a858b[_0x20dbd9(0x264)](_0x20dbd9(0x148))&&_0x2b1438['searchParams'][_0x20dbd9(0x1a7)]('runId',_0x3a858b['get'](_0x20dbd9(0x148))),_0x2b1438[_0x20dbd9(0x118)]();}async['_getSessionTicket'](){const _0x1a7529=_0x3ec352;var _0x5dab59,_0xce5feb,_0x3e955c;const _0x1a3816=this['_configService']['getConfig'](_0x2fa9c5),_0x5b15c2=(_0x5dab59=_0x1a3816==null?void 0x0:_0x1a3816[_0x1a7529(0x1c6)])!=null?_0x5dab59:_0x66e85b;return(_0x3e955c=(_0xce5feb=(await this[_0x1a7529(0x21d)][_0x1a7529(0x264)](_0x5b15c2,{'headers':{'Content-Type':_0x1a7529(0x23f)}}))['body'])==null?void 0x0:_0xce5feb[_0x1a7529(0x1b1)])!=null?_0x3e955c:'';}};ut=xn([J(0x0,_0x4c0fac(_0x241db3)),J(0x1,_0x4c0fac(_0x90f763)),J(0x2,_0x305bbd),J(0x3,_0x54cafd),J(0x4,_0x4a8570)],ut);var Bn=Object[_0x3ec352(0x232)],Fn=(_0x241b06,_0x273f93,_0x58489f,_0x569842)=>{const _0x2957f1=_0x3ec352;for(var _0x9b55dd=_0x569842>0x1?void 0x0:_0x569842?Bn(_0x273f93,_0x58489f):_0x273f93,_0x302ef8=_0x241b06[_0x2957f1(0x2ab)]-0x1,_0x5d7f2f;_0x302ef8>=0x0;_0x302ef8--)(_0x5d7f2f=_0x241b06[_0x302ef8])&&(_0x9b55dd=_0x5d7f2f(_0x9b55dd)||_0x9b55dd);return _0x9b55dd;},Ae=(_0x843cfa,_0xa27608)=>(_0x5a7a80,_0x4c6f08)=>_0xa27608(_0x5a7a80,_0x4c6f08,_0x843cfa);let dt=class extends _0xbbfd04{constructor(_0x58fbf7,_0x57e5ab,_0x1018fc){const _0xaed001=_0x3ec352;super(),this[_0xaed001(0x178)]=_0x58fbf7,this['_httpService']=_0x57e5ab,this[_0xaed001(0x157)]=_0x1018fc;}async['runOnServer'](_0x34c391,_0x5f3066,_0x331855,..._0x4b84ab){const _0x176872=_0x3ec352;var _0xe95614,_0x58c324,_0x538813,_0x3c4705;const _0x5b376f=this[_0x176872(0x178)][_0x176872(0x274)]();if(!_0x5b376f)throw new Error(_0x176872(0x10d));const _0x2ad66a=((_0xe95614=this[_0x176872(0x157)]['getConfig'](_0x5c50fc))!=null?_0xe95614:_0x38e1dc)+'/'+_0x34c391+_0x176872(0x10c)+_0x5f3066,_0x4ecc75=new URL(window[_0x176872(0x143)][_0x176872(0x1d3)]),_0x1b4d0d={'scriptId':_0x34c391,'runId':(_0x58c324=_0x4ecc75['searchParams'][_0x176872(0x264)](_0x176872(0x148)))!=null?_0x58c324:'','function':_0x5f3066,'unitId':_0x5b376f[_0x176872(0x15c)](),'argsOfFunction':JSON[_0x176872(0x28d)](_0x4b84ab),'invokeId':(_0x538813=_0x331855[_0x176872(0x32b)])!=null?_0x538813:'','executionId':(_0x3c4705=_0x331855[_0x176872(0x2f8)])!=null?_0x3c4705:''};try{const _0x3e45ec=await this[_0x176872(0x21d)]['post'](_0x2ad66a,{'body':_0x1b4d0d});return _0x3e45ec[_0x176872(0x2a0)]['error']&&_0x3e45ec[_0x176872(0x2a0)]['error'][_0x176872(0x27e)]!==Z['OK']?_0x176872(0x19d):_0x3e45ec[_0x176872(0x2a0)][_0x176872(0x359)];}catch{return _0x176872(0x19d);}}};dt=Fn([Ae(0x0,_0x5bb534),Ae(0x1,_0x4c0fac(_0x90f763)),Ae(0x2,_0x305bbd)],dt);const St=0x7530,It=_0x3ec352(0x30f);class rr extends _0xbbfd04{constructor(){const _0x35e61e=_0x3ec352;super(),_(this,_0x35e61e(0x175),_0x1f3cf5()),_(this,_0x35e61e(0x207),new Set()),_(this,_0x35e61e(0x237),new Map()),_(this,_0x35e61e(0x269),null),_(this,_0x35e61e(0x231),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}[_0x3ec352(0x22c)](){const _0x2ebc81=_0x3ec352;super['dispose'](),this[_0x2ebc81(0x231)][_0x2ebc81(0x2af)]((_0x21ac7c,_0x5f2219)=>this['_removeClearOtherTimer'](_0x5f2219)),this[_0x2ebc81(0x269)]&&window[_0x2ebc81(0x1be)](this[_0x2ebc81(0x269)]);}[_0x3ec352(0x223)](_0x4cfe0d){const _0x271f9c=_0x3ec352;return this[_0x271f9c(0x242)](_0x4cfe0d)['pipe'](_0xb831());}[_0x3ec352(0x2a2)](_0x26f37b){const _0x337dbe=_0x3ec352;this['_selfUnitIDs'][_0x337dbe(0x310)]===0x0&&this[_0x337dbe(0x1a1)](),this[_0x337dbe(0x207)][_0x337dbe(0x338)](_0x26f37b),this[_0x337dbe(0x319)]({'type':0x0,'memberID':this[_0x337dbe(0x175)],'unitIDs':[_0x26f37b],'isForwarded':!0x1});}[_0x3ec352(0x115)](_0x48145a){const _0xb95d82=_0x3ec352;this[_0xb95d82(0x207)][_0xb95d82(0x278)](_0x48145a),this[_0xb95d82(0x207)][_0xb95d82(0x310)]===0x0&&this[_0xb95d82(0x269)]&&window[_0xb95d82(0x1be)](this[_0xb95d82(0x269)]);}[_0x3ec352(0x113)](){const _0x3cb49a=_0x3ec352;this[_0x3cb49a(0x29b)](_0x2c5ac1(_0x27f9ea(window,_0x3cb49a(0x276))[_0x3cb49a(0x261)](_0x1a7ba3=>{const _0x2a2e32=_0x3cb49a;if(_0x1a7ba3[_0x2a2e32(0x122)]!==It||!_0x1a7ba3[_0x2a2e32(0x25c)])return;const _0x3c11cf=JSON[_0x2a2e32(0x34d)](_0x1a7ba3[_0x2a2e32(0x25c)]);this['_handleEvent'](_0x3c11cf);}))),window[_0x3cb49a(0x1f5)](_0x3cb49a(0x217),()=>this[_0x3cb49a(0x319)]({'type':0x1,'memberID':this[_0x3cb49a(0x175)],'unitIDs':Array[_0x3cb49a(0x1a4)](this[_0x3cb49a(0x207)])}));}[_0x3ec352(0x1f6)](_0x1d7125){const _0x83de07=_0x3ec352;switch(_0x1d7125[_0x83de07(0x35e)]){case 0x0:this[_0x83de07(0x262)](_0x1d7125);break;case 0x1:this[_0x83de07(0x1b0)](_0x1d7125);break;case 0x2:this[_0x83de07(0x2d1)](_0x1d7125);break;}}['_handleJoinEvent'](_0x36d367){const _0xd4943e=_0x3ec352,{unitIDs:_0x6d406a,memberID:_0x1be3c5,isForwarded:_0x150d7f}=_0x36d367;_0x6d406a[_0xd4943e(0x2af)](_0x1675fa=>{const _0x276704=_0xd4943e;if(!_0x150d7f&&this[_0x276704(0x237)][_0x276704(0x177)](_0x1675fa)&&this[_0x276704(0x242)](_0x1675fa)[_0x276704(0x32d)](_0x5c1bd0['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x276704(0x177)](_0x1675fa)||!this['_unitOnClients']['get'](_0x1675fa)[_0x276704(0x177)](_0x1be3c5)){const _0x3e1e9a=this[_0x276704(0x237)][_0x276704(0x264)](_0x1675fa)||new Set();_0x3e1e9a['add'](_0x1be3c5),this[_0x276704(0x237)]['set'](_0x1675fa,_0x3e1e9a),this['_scheduleClearOtherTimer'](_0x1be3c5);}}),_0x150d7f||this[_0xd4943e(0x319)]({'type':0x0,'memberID':this[_0xd4943e(0x175)],'unitIDs':[...this[_0xd4943e(0x207)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x6e1240){const _0x5d0e0d=_0x3ec352;this[_0x5d0e0d(0x1f0)](_0x6e1240);const _0x487078=window[_0x5d0e0d(0x167)](()=>{const _0x449cff=_0x5d0e0d;this['_unitOnClients'][_0x449cff(0x2af)](_0x2ca13c=>{const _0x28f588=_0x449cff;_0x2ca13c[_0x28f588(0x278)](_0x6e1240);});},St*0x2);this[_0x5d0e0d(0x231)][_0x5d0e0d(0x1a7)](_0x6e1240,_0x487078);}[_0x3ec352(0x1f0)](_0x3ff7de){const _0x4bd5e4=_0x3ec352;if(this[_0x4bd5e4(0x231)][_0x4bd5e4(0x177)](_0x3ff7de)){const _0x431656=this[_0x4bd5e4(0x231)][_0x4bd5e4(0x264)](_0x3ff7de);_0x431656&&window[_0x4bd5e4(0x2e9)](_0x431656),this[_0x4bd5e4(0x231)]['set'](_0x3ff7de,null);}}[_0x3ec352(0x1b0)](_0x43ec3b){const _0x25cb2a=_0x3ec352,{memberID:_0x457535,unitIDs:_0xc7a95f}=_0x43ec3b;_0xc7a95f[_0x25cb2a(0x2af)](_0x357326=>{const _0xbee4ff=_0x25cb2a;var _0xf9ec68;const _0x3564b6=this[_0xbee4ff(0x237)][_0xbee4ff(0x264)](_0x357326);_0x3564b6&&(_0x3564b6['delete'](_0x457535),(_0xf9ec68=this[_0xbee4ff(0x242)](_0x357326))==null||_0xf9ec68[_0xbee4ff(0x32d)](_0x3564b6[_0xbee4ff(0x310)]===0x0?_0x5c1bd0['NO_OTHER_CLIENTS_EDITING']:_0x5c1bd0[_0xbee4ff(0x21a)]));}),this[_0x25cb2a(0x1f0)](_0x457535);}[_0x3ec352(0x2d1)](_0x49f12c){const _0x7fa9b=_0x3ec352;this[_0x7fa9b(0x2cf)](_0x49f12c[_0x7fa9b(0x24a)]);}['_send'](_0x4fdabd){const _0x242c38=_0x3ec352;localStorage[_0x242c38(0x2ef)](It,JSON[_0x242c38(0x28d)](_0x4fdabd));}[_0x3ec352(0x1a1)](){const _0x500938=_0x3ec352;this[_0x500938(0x269)]=window[_0x500938(0x20c)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},St);}[_0x3ec352(0x242)](_0x21837f){const _0x37c692=_0x3ec352;return this[_0x37c692(0x1c3)][_0x37c692(0x177)](_0x21837f)||this[_0x37c692(0x1c3)][_0x37c692(0x1a7)](_0x21837f,new _0x16c712(_0x5c1bd0[_0x37c692(0x291)])),this[_0x37c692(0x1c3)][_0x37c692(0x264)](_0x21837f);}}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};
|