@univerjs-pro/collaboration-client-ui 0.12.4-experimental.20251208-c4b8a44 → 0.12.4-experimental.20251210-d708bff
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 _0x4ac3a4=_0x3ebe;(function(_0x39dada,_0x2db4fe){const _0x215ebf=_0x3ebe,_0x34207c=_0x39dada();while(!![]){try{const _0x3ceea0=-parseInt(_0x215ebf(0x240))/0x1*(-parseInt(_0x215ebf(0x2d7))/0x2)+-parseInt(_0x215ebf(0x18c))/0x3+-parseInt(_0x215ebf(0x12f))/0x4+-parseInt(_0x215ebf(0x1ef))/0x5*(-parseInt(_0x215ebf(0x202))/0x6)+-parseInt(_0x215ebf(0x255))/0x7+parseInt(_0x215ebf(0x298))/0x8*(parseInt(_0x215ebf(0x1fb))/0x9)+-parseInt(_0x215ebf(0x249))/0xa;if(_0x3ceea0===_0x2db4fe)break;else _0x34207c['push'](_0x34207c['shift']());}catch(_0x7a2650){_0x34207c['push'](_0x34207c['shift']());}}}(_0x4bcd,0x2ee74));var Yt=Object['defineProperty'],Wt=(_0x1a3526,_0x1b16ab,_0x33f743)=>_0x1b16ab in _0x1a3526?Yt(_0x1a3526,_0x1b16ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33f743}):_0x1a3526[_0x1b16ab]=_0x33f743,_=(_0x49716d,_0x1e9ed5,_0x5cdeb0)=>Wt(_0x49716d,typeof _0x1e9ed5!='symbol'?_0x1e9ed5+'':_0x1e9ed5,_0x5cdeb0);function _0x4bcd(){const _0x12b8fe=['ENTITLE_CAN_NOT_BUY_LOWER_OTP','CURRENT_STATUS_CANNOT_OPERATE','_hovered','_instanceService','USERS_LEAVE','on-line-icon_clip0_910_349','m1Prime','stringify','YUUMI_ALL_TABLES_IS_INVALID','ENTITLE_INSUFFICIENT_QUOTA','_hover','catch','url(#$1','104463WDiVXt','_toggleOffline','row','MOBILE_VERIFY_CODE_MISMATCH','1em','parse','_cursorShapes','getUnitStatus$','YUUMI_SUBSCRIPTION_NOT_FOUND','_applyCommand','NOT_FOUND','_onCursorUpdate','runId','deepClone','colorChannel1','textRanges','eventID','UNIVER_SHEET','loadUnit','clearTimeout','UNAUTHENTICATED','_setupBeforeClosingHandler','colno','OTHER_CLIENT_EDITING','LICENSE_EXPORT_SIZE_EXCEEDED','VIEW_MAIN','getViewport','InsertRangeMoveDownCommandId','/universer-api/license/formula/limit/status','stack','_uiPartsService','_imageIoService','_removeCollabCursors','_heartbeatTimer','unitID','INVITE_CODE_ALREADY_BOUND','_updateLocalCursor','transformSelections','_collaborationUIEventService','stage','OnLineIcon','_color','cursorInfo$','_updateCollabCursors','START_CALCULATION','_renderManagerService','code','getCurrent','sessionTicket','set','pipe','init','disposeUnit','defineProperty','_docStateChangeManagerService','lineno','_colorAssignService','getMember','size','PENDING','_maxFormulaLimit','_id','onMouseMove','subscribe','lineTo','_cachedData','_getScale','_initCommandInterceptor','registerRenderModule','subUnitId','saveImage','_startSheetCollabCursor','ENTITLE_REPORT_LIMIT_EXCEED','collab-text-anchor-','_localStorageService','_urlService','engine','idSuffix','fillStyle','_currentUsage','getUnitId','find','translate(.97)','name','min','AWAITING','error','addObjects','_clearPolling','max','session.connection-failed','onPointerEnter$','ENTITLE_COUPON_EXPIRED','body','save','type','session.collaboration-timeout','_saveCache','transformIMECache','60545sJRdKE','setUndoRedoMutationParamsCache','YUUMI_AI_RUN_FAILED','now','_initUserListener','setTimeout','setShapeProps','registerRefRange','_online','entityInit$','collab-client.tooltip.reconnect','APPLY_PERMISSION_DENIED','1620315lDswTp','_saveTaskMap','isArray','_scene','drawWith','PY_RUNTIME_SCRIPT_ERROR','clearInterval','150aWHzbi','location','map','triggerDblclick','_shapes','skeleton','0\x200\x2017\x2016','then','_ensureSubject','complete','UNIVER_DOC','getColorFromTheme','top','_univerInstanceService','pushState','_onRefRangeChange','updateOfflineData','ENSURE_SNAPSHOT_EXECUTION','addEventListener','SUCCESS','totalFormulasToCalculate','collabStatus.synced','SNAPSHOT_INVALID_SNAPSHOT','INVITE_CODE_REQUIRED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','imageSourceType','contains','getValue','_getSaveTimeout','getformulaLimitStatusUrl','_initStatusListener','disableLocalCache','send','_registerRenderDependencies','_clearOtherTimers','LOGIN_FAILED','SNAPSHOT_HAS_BEEN_REMOVED','svg','replaceDocRanges','_getMergeRange','_showGuardMessage','searchParams','_draw','_drawRectRange','fillRule','defs','override','getItem','LOGIN_TOKEN_PROCESSING_FAILED','_backgroundColor','reason','getCollabCursors$','getCurrentRevOfUnit','resize','saveTaskMap','_scheduleClearOtherTimer','docStateChange$','_document','CONNECTOR_DATA_TOO_LARGE','ENTITLE_CHAT_LIMIT_EXCEED','INVALID_INVITE_CODE','6343wGVFrC','add','next','getActiveRange','event$','length','toRgbString','has','_memberID','134800IafXOI','YUUMI_URL_COL_OUT_OF_RANGE','_handleHover','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','onRendered','getParam','getTypeOfUnitAdded$','_docSkeletonManagerService','invokeId','restore','[Window\x20Error]:\x20','_getSessionTicket','912884wHcLxE','runOnServer','REDEMPTION_CODE_FULLY_REDEEMED','getSheetBySheetId','Error','LICENSE_DISTRO_REJECTED','fill','REDEMPTION_CODE_NOT_STARTED','DeleteRangeMoveUpCommandId','font','FromArray','_initEntityListener','_name','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabCursorState$','_docTransformIMECacheService','path','_initUnhandledRejectionListener','assignAColorForMemberID','maxFormulaLimit','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','_notificationService','selections','REDEMPTION_CODE_INACTIVE','ranges','INVALID_ARGUMENT','_collaborationSessionService','saveOfflineData','_pollingInterval','forEach','_docSyncEditingCollabCursorService','Unknown\x20user','getCellMatrix','_themeService','collaboration.offline-data-not-saved','USER_NOT_INVITED_CODE','color','startsWith','YUUMI_TABLE_NOT_FOUND_IN_UNIT','InsertRangeMoveRightCommandId','search','show','_beforeCloseService','InsertColCommandId','use','cursorInfo','_roomMembers$','unload','collaboration.single-unit.warning','exhaustSavingTask','popstate','limitInfo','_initEvent','_init','_cursor','FETCH_MISS','height','getDocRanges','unhandledrejection','tag','JOIN_ROOM_FAILED','findNodePositionByCharIndex','off-line-icon_clip0_910_343','transformRemoteChangeset','#FFF','[CollaborationDataLoaderController]','url(#off-line-icon_clip0_910_343)','8QUCnnY','_revisionService','_registerDependencies','_scheduleSaving','collabStatus.fetchMiss','getFocusedUnit','disposeWithMe','reconnect','message','_checkCalculationAvailable','subunit','getConfig','_textBubble','urlChange$','_transformHistoryAndStateStack','setParam','APPLY_REVISION_CONFILICT','SOCKET_FAILED','formula.calculation.waiting','join','REDEMPTION_INVALID_CODE','_httpService','_status$','OffLineIcon','_docSkeleton','_refRangeService','addObject','rgba(255,\x20255,\x20255,\x200.01)','bind','_monkeyPatchLogService','values','getOffsetConfig','onCommandExecuted','ONLINE','_messageService','get','_updateSubUnitFromURLParams','CHANGESET_REVISION_CONFILICT','getSkeleton','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleEvent','white','redoState','_startCalculationLimit','_anchor','_entities','debug','includes','YUUMI_NO_CUBOID_FOR_QUESTION','_docTransformSelectionsService','RemoveRowCommandId','isActive','entries','key','_transformPreviousActiveRange','onTransformChange$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','unit','roomMembers$','column','YUUMI_RATE_OVER_LIMIT','fillText','APPLY_REJECT','74HtqCIU','USER_IS_ANONYMOUS','_memberService','DeleteRangeMoveLeftCommandId','_colorIndex','TOO_MANY_REQUESTS','width','transformStateCache','children','UNRECOGNIZED','_session','SYNCED','onPointerLeave$','_getSheetObject','http://www.w3.org/2000/svg','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','xlink:href','_cursorInfo$','executionId','_uploadLog','_removeClearOtherTimer','stageInfo','?taskId=','_drawTextRange','currentTheme$','_getAnchorBounding','from','Loading','REDEMPTION_USER_NOT_ELIGIBLE','getCollabEntity$','post','_syncEditingCollabCursorService','unshift','ENTITLE_DUP_SUBSCRIPTION','getCurrentUnitForType','YUUMI_UNABLE_LOAD_URL','getMemberID','enableFrontendLog','_send','_createSocketURL','history','makeDirty','_localeService','dispose','editingUnit','LICENSE_MAX_UNITS_EXCEEDED','_labelPosition','WECHAT_HAS_BEEN_BOUND','unitId','_cursors','functionsExecutedState','_hasFormulaInDirtyRanges','DATA_SOURCE_TOO_LARGE','formula.calculation.unable','params','OFFLINE','currentColor','ticket','string','_logService','_unitOnClients','collab-rect-range-','createInstance','_toggleOnline','_collabCursorState$','_configService','_sheetSkeletonManagerService','filename','dispose$','/universer-api/license/formula/limit/done','ENTITLE_COUPON_USED_UP','CONFLICT','_doCreateSocket','setItem','createSocket','getRenderById','AUTHORIZE_CODE_ILLEGAL','_initDependencies','APPLY_DUPLICATED','addClipboardHook','startRow','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_anchorDot','EMAIL_VERIFY_CODE_MISMATCH','_setupSubUnitSync','onPointerMove$','undoState','data','[Unhandled\x20Rejection]:\x20','AWAITING_WITH_PENDING','clipPath','assign','url(#on-line-icon_clip0_910_349)','OTHER_CLIENTS_EDITING','InsertRowCommandId','_updateURLWithCurrentState','hide','executeCommand','_handleHeartbeatEvent','UniverIcon','href','green.600','currentUsage','hovered','addHandlerCallback','requireSession','univer-flex\x20univer-items-center','delete','TEXT','_releaseCalculationLimit','syncEditingCollabCursor','YUUMI_CONNECTOR_URL_NOT_FOUND','currentSkeleton$','SOCKET_FAILED_RETRY','trim','selection','application/json','text','yellow.400','all','_hideTimer','defIds','socket$','INVITE_CODE_HAS_BEEN_UES','releaseFormulaLimitUrl','backgroundColor','ALREADY_EXISTS','_render','_injector','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','NOT_COLLAB','toString','_transformUndoRedoStack','_docTransformStateCacheService','_collaborationController','transformMutation','sheetId','displayName','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','M0\x200H16V16H0z','beginPath','getSheetId','asObservable','evenodd','purple.300','replace','transform','_context','PERMISSION_DENIED','_localCacheService','round','MUTATION','_dataLoaderService','UNDEFINED','_handleLeaveEvent','/run/','mutations','_selfUnitIDs','ENTITLE_USE_COUPON_NOT_1ST_TRADE','focused$','sessionStatus$','source','m2Prime','1386488JBqqSS','div','_unitStatus','arc','collaboration-client-ui.config','getStateCache','_lastResponseTimestamp','APPLY_NON_SEQUENTIAL_REVISION','registerBeforeClose','_disabled','getRangePointData','getOwnPropertyDescriptor','univerjs-icon\x20univerjs-icon-','doc.mutation.rich-text-editing','USER_NOT_FOUND','whenReady','blue.400','some','parseInt','black','collabStatus.syncing','_collabSessionService','_entityInit$','newValue','measureText','_range','setInterval','storage','_taskIds','getTypeOfUnitDisposed$','getActiveSheet','red.300','shift','with','split','LICENSE_IMPORT_SIZE_EXCEEDED','_startDocCollabCursor','_lastPointer','_commandService','univer-mr-2\x20univer-flex\x20univer-text-xl','...','transformMutationsWithChangeset','permission.content','removeEventListener','_onCursorDelete','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','YUUMI_ASYNCIO_CANCELLED','push','REDEMPTION_CODE_HAS_BEEN_CREATED','getUnit','result','EMAIL_HAS_BEEN_BOUND','Success','memberID','Warning','subscribeEvent','dirtyRanges','_handleJoinEvent','none','attrs','endRow','_config','_refreshCollabCursors','_initStatusComponent','COMPLETION_FINISHED','collabStatus.conflict','getCellPositionByOffset','wsSessionTicketUrl','UPDATE_CURSOR','getAncestorScale','ENTITLE_INVALID_COUPON_CODE','_getFormulaLimitStatus','substring','_setFormulaLimitStatus','PAYMENT_CHANNEL_NOT_SUPPORT','_eventUnsubscribe','replaceState','_transformService','Failed','_assignedColors'];_0x4bcd=function(){return _0x12b8fe;};return _0x4bcd();}import{jsx as _0x137b50,jsxs as _0x317f21}from'react/jsx-runtime';import{CollaborationStatus as _0x259f40,CollaborationSessionService as _0x1965e1,CollaborationController as _0x333941,DataLoaderService as _0x350235,MemberService as _0x19374d,SessionStatus as _0x241864,ILocalCacheService as _0x3a9230,CollaborationUIEventService as _0x31aad7,CollaborationUIEventId as _0x1654c3,DocCollaborationEntity as _0x1a9dac,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2ec864,getLocalCacheKey as _0x3b4797,LOCAL_CACHE_INTERVAL as _0xa34fe,LOCAL_CACHE_INTERVAL_KEY as _0x3860a1,UniverCollaborationClientPlugin as _0x18270b,CollaborationSocketService as _0x303847,DEFAULT_WS_SESSION_TICKET_URL as _0x4319b2,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3a10f9,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4797d0,UnitStatus as _0x49a5c0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x55ece3,IUniverInstanceService as _0x4711cc,Inject as _0x5f06d0,Injector as _0x1d4bde,Disposable as _0x2119f0,createIdentifier as _0x25c1c5,ILogService as _0x87d10f,ICommandService as _0x222551,Optional as _0x493271,RxDisposable as _0x3004d6,Workbook as _0x59329c,DOC_RANGE_TYPE as _0x422485,debounce as _0x4b634b,Rectangle as _0x581118,DisposableCollection as _0x1b660f,toDisposable as _0x31a568,UniverInstanceType as _0x382bbd,generateRandomId as _0x40f13c,COLORS as _0x375f0c,ColorKit as _0x1d9650,ThemeService as _0x418e65,fromEventSubject as _0x2b491c,Tools as _0x133bef,CommandType as _0x1193c0,IConfigService as _0x132ac0,CanceledError as _0x3ae488,isFormulaString as _0x11bcf0,isFormulaId as _0x31786f,ILocalStorageService as _0x1e7698,DependentOn as _0x3bcc9a,Plugin as _0x1fdda0,merge as _0x25b436,registerDependencies as _0x269076,mergeOverrideWithDependencies as _0x170b3e,touchDependencies as _0x134778}from'@univerjs/core';import{useObservable as _0x1547a9,useDependency as _0x30d903,IUIPartsService as _0x1036d1,BuiltInUIPart as _0x332ffb,connectInjector as _0x433bb0,IBeforeCloseService as _0x1bf845,IMessageService as _0x56b023,INotificationService as _0x3b98d2}from'@univerjs/ui';import{BehaviorSubject as _0x1d7743,switchMap as _0x14aa89,of as _0x3d3910,takeUntil as _0x141c76,debounceTime as _0x5eb71b,Subject as _0x58442f,filter as _0xa755f2,merge as _0x4aa928,combineLatest as _0x5db83e,fromEvent as _0x442efa,shareReplay as _0x1eabca,mapTo as _0xacfd24,distinctUntilChanged as _0x12560e}from'rxjs';import{Tooltip as _0x4d1729,clsx as _0x4a4dc0,MessageType as _0x2d3519}from'@univerjs/design';import{useRef as _0x4c358d,createElement as _0x112968,forwardRef as _0x46b37a,useCallback as _0x5bb056}from'react';import{IRemoteInstanceService as _0x506e93}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x2a4294,RefRangeService as _0x4ca417,SetSelectionsOperation as _0x51c17b,SheetsSelectionsService as _0x5169e0,EffectRefRangId as _0x2ed0ad,handleIRemoveRow as _0x53c1f6,handleIRemoveCol as _0x5450a1,handleMoveRange as _0x5eb746,handleInsertRow as _0x473ecd,handleInsertRangeMoveRight as _0x77a863,handleInsertRangeMoveDown as _0x4b051c,handleInsertCol as _0x1223d2,handleDeleteRangeMoveUp as _0x21d932,handleDeleteRangeMoveLeft as _0x2ca480,runRefRangeMutations as _0x4232ef}from'@univerjs/sheets';import{Shape as _0x475d95,Rect as _0x2cd40e,getColor as _0x56f14b,RegularPolygon as _0x2ac1af,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x57400c,Vector2 as _0x6cd03a,SHEET_VIEWPORT_KEY as _0x2b3764,IRenderManagerService as _0x2004a5}from'@univerjs/engine-render';import{HTTPService as _0x593501,ISocketService as _0x66d66e,WebSocketService as _0x7c8640}from'@univerjs/network';import{IDocClipboardService as _0x4488cb,NodePositionConvertToCursor as _0x5f079a,NodePositionConvertToRectRange as _0x283ffc,TEXT_RANGE_LAYER_INDEX as _0xab4bd6,SetDocZoomRatioOperation as _0x3522ae,DocIMEInputManagerService as _0x1ec03d,DocStateChangeManagerService as _0x2c2e66}from'@univerjs/docs-ui';import{IImageIoService as _0x28e137}from'@univerjs/drawing';import{ITransformService as _0x190171,CollaborationEvent as _0x33ce2e,isTransformMutationFailure as _0x747370,isTransformMutationsWithChangesetSuccess as _0x18535b,RevisionService as _0x1be0dc,ISnapshotServerService as _0x34af7f}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5aa79d,RichTextEditingMutation as _0x5cfcf4,DocSelectionManagerService as _0x474edc,DocSkeletonManagerService as _0x6cf076}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1d8a17,serializeRangeWithSheet as _0x5dd673,FormulaExecuteStageType as _0x5d4b67,FormulaExecutedStateType as _0x4949e9,SetFormulaCalculationStartMutation as _0x3494f4,SetFormulaCalculationNotificationMutation as _0x257e21}from'@univerjs/engine-formula';import{map as _0x410986,filter as _0x4b4063,throttleTime as _0x326fba,takeUntil as _0x5ba992,switchMap as _0x4576a}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3f9887,getCoordByCell as _0xf00378,getSheetObject as _0xcfa136}from'@univerjs/sheets-ui';function Ge({ref:_0x1b4b4a,..._0x5aeb95}){const _0xc859d0=_0x3ebe,{icon:_0x2a341c,id:_0x31a0d1,className:_0xe4e2b4,extend:_0x1653d2,..._0x57f10e}=_0x5aeb95,_0x2221c0=(_0xc859d0(0x13b)+_0x31a0d1+'\x20'+(_0xe4e2b4||''))[_0xc859d0(0x349)](),_0x2fc2e1=_0x4c358d('_'+vi());return At(_0x2a341c,''+_0x31a0d1,{'defIds':_0x2a341c[_0xc859d0(0x350)],'idSuffix':_0x2fc2e1['current']},{'ref':_0x1b4b4a,'className':_0x2221c0,..._0x57f10e},_0x1653d2);}function At(_0x62f512,_0x42c429,_0x210272,_0x5ab8cb,_0x5e1639){const _0x2add27=_0x3ebe;return _0x112968(_0x62f512[_0x2add27(0x290)],{'key':_0x42c429,...gi(_0x62f512,_0x210272,_0x5e1639),..._0x5ab8cb},(Ei(_0x62f512,_0x210272)[_0x2add27(0x2df)]||[])[_0x2add27(0x204)]((_0x5ccbf0,_0x4fd6ab)=>At(_0x5ccbf0,_0x42c429+'-'+_0x62f512[_0x2add27(0x290)]+'-'+_0x4fd6ab,_0x210272,void 0x0,_0x5e1639)));}function gi(_0xc85140,_0x583568,_0x4fc0a7){const _0x3107f5=_0x3ebe,_0x453e8e={..._0xc85140['attrs']};_0x4fc0a7!=null&&_0x4fc0a7[_0x3107f5(0x19a)]&&_0x453e8e['fill']===_0x3107f5(0x19a)&&(_0x453e8e[_0x3107f5(0x25b)]=_0x4fc0a7['colorChannel1']),_0xc85140[_0x3107f5(0x290)]==='mask'&&_0x453e8e['id']&&(_0x453e8e['id']=_0x453e8e['id']+_0x583568[_0x3107f5(0x1d9)]),Object[_0x3107f5(0x2cc)](_0x453e8e)[_0x3107f5(0x272)](([_0x36875e,_0x5dfe2a])=>{const _0x37236b=_0x3107f5;_0x36875e==='mask'&&typeof _0x5dfe2a==_0x37236b(0x311)&&(_0x453e8e[_0x36875e]=_0x5dfe2a[_0x37236b(0x11d)](/url\(#(.*)\)/,_0x37236b(0x18b)+_0x583568[_0x37236b(0x1d9)]+')'));});const {defIds:_0x45b1c5}=_0x583568;return!_0x45b1c5||_0x45b1c5['length']===0x0||(_0xc85140['tag']===_0x3107f5(0x281)&&_0x453e8e[_0x3107f5(0x2e7)]&&(_0x453e8e[_0x3107f5(0x2e7)]=_0x453e8e['xlink:href']+_0x583568[_0x3107f5(0x1d9)]),Object[_0x3107f5(0x2cc)](_0x453e8e)[_0x3107f5(0x272)](([_0x45aead,_0xa692c6])=>{const _0x18e025=_0x3107f5;typeof _0xa692c6==_0x18e025(0x311)&&(_0x453e8e[_0x45aead]=_0xa692c6['replace'](/url\(#(.*)\)/,_0x18e025(0x18b)+_0x583568['idSuffix']+')'));})),_0x453e8e;}function Ei(_0x19360e,_0x43159c){const _0x2e1e55=_0x3ebe;var _0x486dd3;const {defIds:_0x2f1a21}=_0x43159c;return!_0x2f1a21||_0x2f1a21[_0x2e1e55(0x245)]===0x0?_0x19360e:_0x19360e['tag']===_0x2e1e55(0x230)&&((_0x486dd3=_0x19360e[_0x2e1e55(0x2df)])!=null&&_0x486dd3[_0x2e1e55(0x245)])?{..._0x19360e,'children':_0x19360e[_0x2e1e55(0x2df)][_0x2e1e55(0x204)](_0x392aef=>typeof _0x392aef['attrs']['id']=='string'&&_0x2f1a21&&_0x2f1a21[_0x2e1e55(0x2c7)](_0x392aef[_0x2e1e55(0x16a)]['id'])?{..._0x392aef,'attrs':{..._0x392aef['attrs'],'id':_0x392aef['attrs']['id']+_0x43159c[_0x2e1e55(0x1d9)]}}:_0x392aef)}:_0x19360e;}function vi(){const _0x4eed05=_0x3ebe;return Math['random']()[_0x4eed05(0x35a)](0x24)[_0x4eed05(0x177)](0x2,0x8);}Ge[_0x4ac3a4(0x360)]=_0x4ac3a4(0x33a);const pi={'tag':_0x4ac3a4(0x228),'attrs':{'xmlns':_0x4ac3a4(0x2e5),'fill':_0x4ac3a4(0x169),'viewBox':'0\x200\x2016\x2016','width':_0x4ac3a4(0x190),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4ac3a4(0x297)},'children':[{'tag':'path','attrs':{'stroke':_0x4ac3a4(0x30f),'d':_0x4ac3a4(0x269),'strokeLinecap':'round','strokeLinejoin':_0x4ac3a4(0x122),'strokeWidth':1.2}}]},{'tag':_0x4ac3a4(0x230),'attrs':{},'children':[{'tag':_0x4ac3a4(0x331),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4ac3a4(0x265),'attrs':{'fill':_0x4ac3a4(0x2c1),'d':_0x4ac3a4(0x362)}}]}]}],'defIds':[_0x4ac3a4(0x293)]},Pt=_0x46b37a(function(_0x10d27f,_0xd54598){return _0x112968(Ge,Object['assign']({},_0x10d27f,{'id':'off-line-icon','ref':_0xd54598,'icon':pi}));});Pt[_0x4ac3a4(0x360)]=_0x4ac3a4(0x2af);const Oi={'tag':'svg','attrs':{'xmlns':_0x4ac3a4(0x2e5),'fill':'none','viewBox':_0x4ac3a4(0x208),'width':_0x4ac3a4(0x190),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4ac3a4(0x333)},'children':[{'tag':_0x4ac3a4(0x265),'attrs':{'stroke':_0x4ac3a4(0x30f),'d':_0x4ac3a4(0x24c),'strokeLinecap':_0x4ac3a4(0x122),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4ac3a4(0x230),'attrs':{},'children':[{'tag':_0x4ac3a4(0x331),'attrs':{'id':_0x4ac3a4(0x184)},'children':[{'tag':'path','attrs':{'fill':_0x4ac3a4(0x2c1),'d':_0x4ac3a4(0x362),'transform':_0x4ac3a4(0x1de)}}]}]}],'defIds':[_0x4ac3a4(0x184)]},wt=_0x46b37a(function(_0x9bf9b2,_0x2fc31c){const _0x20c3e6=_0x4ac3a4;return _0x112968(Ge,Object[_0x20c3e6(0x332)]({},_0x9bf9b2,{'id':'on-line-icon','ref':_0x2fc31c,'icon':Oi}));});wt[_0x4ac3a4(0x360)]=_0x4ac3a4(0x1b4);function Ti(_0x3e0623){const _0x2e955b=_0x4ac3a4;switch(_0x3e0623){case _0x259f40['OFFLINE']:return'collabStatus.offline';case _0x259f40[_0x2e955b(0x31e)]:return _0x2e955b(0x170);case _0x259f40[_0x2e955b(0x28c)]:return _0x2e955b(0x29c);case _0x259f40[_0x2e955b(0x359)]:return'collabStatus.notCollab';case _0x259f40[_0x2e955b(0x1e1)]:case _0x259f40[_0x2e955b(0x330)]:return _0x2e955b(0x143);case _0x259f40[_0x2e955b(0x2e2)]:case _0x259f40[_0x2e955b(0x1c7)]:return _0x2e955b(0x217);}}function Ci(_0x18b1ab){const _0x2c84a1=_0x4ac3a4,{status$:_0x1afa64}=_0x18b1ab,_0x294ba5=_0x1547a9(_0x1afa64,_0x259f40['NOT_COLLAB']),_0x43da51=_0x30d903(_0x55ece3),_0x4492f9=_0x30d903(_0x1965e1),_0x4b61c4=_0x294ba5!==_0x259f40[_0x2c84a1(0x30e)],_0xa746d4=_0x43da51['t'](Ti(_0x294ba5)),_0x3072ae=_0x4b61c4?_0x137b50(wt,{}):_0x137b50(Pt,{}),_0x549a8c=_0x5bb056(()=>{const _0x236e65=_0x2c84a1;_0x4b61c4||_0x4492f9[_0x236e65(0x29f)]();},[_0x4b61c4,_0x4492f9]);function _0x32192a(){const _0xbc1d89=_0x2c84a1;return _0x317f21('div',{'className':_0xbc1d89(0x341),'onClick':_0x549a8c,'children':[_0x137b50(_0xbc1d89(0x130),{'className':_0x4a4dc0(_0xbc1d89(0x156),{'univer-text-green-500':_0x4b61c4,'univer-text-red-500':!_0x4b61c4}),'children':_0x3072ae}),_0x137b50('div',{'className':_0xbc1d89(0x361),'children':_0xa746d4})]});}return _0x4b61c4?_0x32192a():_0x137b50(_0x4d1729,{'title':_0x43da51['t'](_0x2c84a1(0x1f9)),'children':_0x32192a()});}var Ri=Object[_0x4ac3a4(0x13a)],Di=(_0x3b0db2,_0x33e3f9,_0x3a8a2f,_0x4c7a44)=>{const _0x5d0d23=_0x4ac3a4;for(var _0x4aec5e=_0x4c7a44>0x1?void 0x0:_0x4c7a44?Ri(_0x33e3f9,_0x3a8a2f):_0x33e3f9,_0x589f79=_0x3b0db2[_0x5d0d23(0x245)]-0x1,_0x48f8f4;_0x589f79>=0x0;_0x589f79--)(_0x48f8f4=_0x3b0db2[_0x589f79])&&(_0x4aec5e=_0x48f8f4(_0x4aec5e)||_0x4aec5e);return _0x4aec5e;},se=(_0x1c3f01,_0xb2d64f)=>(_0x1ec36b,_0x4ae03d)=>_0xb2d64f(_0x1ec36b,_0x4ae03d,_0x1c3f01);let ae=class extends _0x2119f0{constructor(_0xdfe5f7,_0x320e63,_0x2f6767,_0x7f6b84){const _0x495a5e=_0x4ac3a4;super(),_(this,_0x495a5e(0x2ae),new _0x1d7743(_0x259f40[_0x495a5e(0x359)])),(this[_0x495a5e(0x20f)]=_0xdfe5f7,this['_injector']=_0x320e63,this[_0x495a5e(0x35d)]=_0x2f6767,this[_0x495a5e(0x1aa)]=_0x7f6b84,this[_0x495a5e(0x16e)](),this[_0x495a5e(0x221)]());}['_initStatusListener'](){const _0x3dbefb=_0x4ac3a4;this[_0x3dbefb(0x29e)](this['_univerInstanceService'][_0x3dbefb(0x12b)][_0x3dbefb(0x1be)](_0x14aa89(()=>{const _0x1b7b24=_0x3dbefb,_0x22e6bd=this['_univerInstanceService']['getFocusedUnit']();return _0x22e6bd?this[_0x1b7b24(0x35d)][_0x1b7b24(0x2f4)](_0x22e6bd['getUnitId']()):_0x3d3910(null);}),_0x14aa89(_0x2c1dd8=>_0x2c1dd8?_0x2c1dd8['status$']:_0x3d3910(_0x259f40[_0x3dbefb(0x359)])))[_0x3dbefb(0x1cb)](_0x59e7f0=>{const _0x41f9d8=_0x3dbefb;this['_status$'][_0x41f9d8(0x242)](_0x59e7f0);}));}[_0x4ac3a4(0x16e)](){const _0x3b71aa=_0x4ac3a4;this[_0x3b71aa(0x29e)](this['_uiPartsService']['registerComponent'](_0x332ffb['HEADER_MENU'],()=>_0x433bb0(Ni({'status$':this[_0x3b71aa(0x2ae)][_0x3b71aa(0x365)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x4711cc),se(0x1,_0x5f06d0(_0x1d4bde)),se(0x2,_0x5f06d0(_0x333941)),se(0x3,_0x1036d1)],ae);function Ni(_0x2b3b7){const {status$:_0x431b9c}=_0x2b3b7;return function(){return _0x137b50(Ci,{'status$':_0x431b9c});};}const yt=_0x25c1c5('uni.network.url-service');var bi=Object[_0x4ac3a4(0x13a)],Li=(_0x48b5e0,_0x14bb1c,_0x3fd249,_0x4e0e0e)=>{for(var _0x17dd58=_0x4e0e0e>0x1?void 0x0:_0x4e0e0e?bi(_0x14bb1c,_0x3fd249):_0x14bb1c,_0x396e82=_0x48b5e0['length']-0x1,_0xad9a69;_0x396e82>=0x0;_0x396e82--)(_0xad9a69=_0x48b5e0[_0x396e82])&&(_0x17dd58=_0xad9a69(_0x17dd58)||_0x17dd58);return _0x17dd58;},K=(_0x217c8b,_0x5ec967)=>(_0x57810a,_0x3c158b)=>_0x5ec967(_0x57810a,_0x3c158b,_0x217c8b);let ce=class extends _0x3004d6{constructor(_0x70c1e4,_0x563188,_0x2c974e,_0x4a5b01,_0x28863a){const _0x3a96cf=_0x4ac3a4;super(),this[_0x3a96cf(0x1d7)]=_0x70c1e4,this[_0x3a96cf(0x312)]=_0x563188,this[_0x3a96cf(0x155)]=_0x2c974e,this[_0x3a96cf(0x124)]=_0x4a5b01,_0x28863a?_0x28863a==null||_0x28863a[_0x3a96cf(0x13e)]()['then'](()=>this[_0x3a96cf(0x28a)]()):(this[_0x3a96cf(0x312)][_0x3a96cf(0x2c6)](_0x3a96cf(0x296),_0x3a96cf(0x2d0)),this[_0x3a96cf(0x28a)]());}async['_init'](){const _0x1e5adb=_0x4ac3a4,_0x4bc1c9=this[_0x1e5adb(0x1d7)][_0x1e5adb(0x24e)](_0x1e5adb(0x2d1)),_0x36bfa1=this[_0x1e5adb(0x1d7)][_0x1e5adb(0x24e)](_0x1e5adb(0x1eb)),_0x57f07e=this['_urlService'][_0x1e5adb(0x24e)]('subunit');if(!_0x4bc1c9||!_0x36bfa1){this[_0x1e5adb(0x312)][_0x1e5adb(0x2c6)](_0x1e5adb(0x296),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x7f5d98=await this[_0x1e5adb(0x124)][_0x1e5adb(0x19e)](_0x4bc1c9,Number(_0x36bfa1),_0x57f07e);_0x7f5d98&&_0x7f5d98 instanceof _0x59329c&&this[_0x1e5adb(0x32b)](_0x7f5d98);}async[_0x4ac3a4(0x32b)](_0x2d7cec){const _0x10f72d=_0x4ac3a4;await this[_0x10f72d(0x2bc)](_0x2d7cec),_0x2d7cec['activeSheet$'][_0x10f72d(0x1be)](_0x141c76(this[_0x10f72d(0x31b)]))[_0x10f72d(0x1cb)](_0xfbba88=>{const _0x16c89d=_0x10f72d;_0xfbba88&&this[_0x16c89d(0x336)](_0xfbba88);}),this['_urlService'][_0x10f72d(0x2a5)][_0x10f72d(0x1be)](_0x141c76(this[_0x10f72d(0x31b)]))[_0x10f72d(0x1cb)](()=>this[_0x10f72d(0x2bc)](_0x2d7cec));}[_0x4ac3a4(0x336)](_0x1ef060,_0x3b3e38=!0x1){const _0x4b264b=_0x4ac3a4,_0x343a98=this[_0x4b264b(0x1d7)][_0x4b264b(0x24e)](_0x4b264b(0x2a2));_0x1ef060['getSheetId']()!==_0x343a98&&this[_0x4b264b(0x1d7)][_0x4b264b(0x2a7)](_0x4b264b(0x2a2),_0x1ef060['getSheetId'](),_0x3b3e38);}async[_0x4ac3a4(0x2bc)](_0x20aae5){const _0x58a850=_0x4ac3a4;var _0x35e4bd;const _0x1167d1=this['_urlService'][_0x58a850(0x24e)](_0x58a850(0x2a2));if(!_0x1167d1||!_0x20aae5['getSheetBySheetId'](_0x1167d1)){const _0xf243b7=_0x20aae5['getUnhiddenWorksheets']()[0x0],_0x22777a=_0x20aae5[_0x58a850(0x258)](_0xf243b7);if(!_0x22777a)return;this[_0x58a850(0x336)](_0x22777a,!0x0),await this[_0x58a850(0x155)][_0x58a850(0x338)](_0x2a4294['id'],{'unitId':_0x20aae5[_0x58a850(0x1dc)](),'subUnitId':_0xf243b7});return;}((_0x35e4bd=_0x20aae5[_0x58a850(0x14d)]())==null?void 0x0:_0x35e4bd[_0x58a850(0x364)]())!==_0x1167d1&&await this['_commandService'][_0x58a850(0x338)](_0x2a4294['id'],{'unitId':_0x20aae5[_0x58a850(0x1dc)](),'subUnitId':_0x1167d1});}};ce=Li([K(0x0,yt),K(0x1,_0x87d10f),K(0x2,_0x222551),K(0x3,_0x5f06d0(_0x350235)),K(0x4,_0x493271(_0x506e93))],ce);var Ui=Object[_0x4ac3a4(0x13a)],Mi=(_0x522e10,_0x541653,_0x56b9e6,_0xb06951)=>{const _0x15a54c=_0x4ac3a4;for(var _0x5568ae=_0xb06951>0x1?void 0x0:_0xb06951?Ui(_0x541653,_0x56b9e6):_0x541653,_0x5bffe2=_0x522e10[_0x15a54c(0x245)]-0x1,_0x4081dc;_0x5bffe2>=0x0;_0x5bffe2--)(_0x4081dc=_0x522e10[_0x5bffe2])&&(_0x5568ae=_0x4081dc(_0x5568ae)||_0x5568ae);return _0x5568ae;},rt=(_0x22ce10,_0x4f3feb)=>(_0x3a7de6,_0x3864f1)=>_0x4f3feb(_0x3a7de6,_0x3864f1,_0x22ce10);let $e=class extends _0x3004d6{constructor(_0xefda07,_0x58feed){const _0x360dc8=_0x4ac3a4;super(),this['_docClipboardService']=_0xefda07,this[_0x360dc8(0x1ab)]=_0x58feed,this[_0x360dc8(0x28a)]();}['_init'](){const _0x4678c2=_0x4ac3a4,_0x37ed75=this;this[_0x4678c2(0x29e)](this['_docClipboardService'][_0x4678c2(0x326)]({'onBeforePasteImage':async _0x226595=>{const _0x2999be=_0x4678c2,_0x1d0062=await _0x37ed75['_imageIoService'][_0x2999be(0x1d2)](_0x226595);return _0x1d0062?{'source':_0x1d0062[_0x2999be(0x12d)],'imageSourceType':_0x1d0062[_0x2999be(0x21c)]}:null;}}));}};$e=Mi([rt(0x0,_0x4488cb),rt(0x1,_0x28e137)],$e);const ot=[_0x4ac3a4(0x11c),'jiqing.500',_0x4ac3a4(0x33c),_0x4ac3a4(0x14e),_0x4ac3a4(0x13f),_0x4ac3a4(0x34d)];class Ke extends _0x2119f0{constructor(){const _0x553743=_0x4ac3a4;super(...arguments),_(this,_0x553743(0x17e),new Map()),_(this,_0x553743(0x2db),0x0);}[_0x4ac3a4(0x267)](_0x268c60){const _0x367a62=_0x4ac3a4;if(this['_assignedColors'][_0x367a62(0x247)](_0x268c60))return this[_0x367a62(0x17e)][_0x367a62(0x2bb)](_0x268c60);const _0x4fa451=ot[this[_0x367a62(0x2db)]];return this[_0x367a62(0x2db)]=(this['_colorIndex']+0x1)%ot[_0x367a62(0x245)],this[_0x367a62(0x17e)][_0x367a62(0x1bd)](_0x268c60,_0x4fa451),_0x4fa451;}}function $t(_0x22732d){const _0xcd5e88=_0x4ac3a4;let _0x39c6ab='';for(const _0x5e862f of _0x22732d){const {startOffset:_0x11e98f,endOffset:_0xe31a08,isActive:_0xfe4ea2,rangeType:_0x515489,segmentId:_0x177a2d,segmentPage:_0x2e9803}=_0x5e862f;_0x39c6ab[_0xcd5e88(0x245)]&&(_0x39c6ab+=','),_0x39c6ab+=_0x11e98f+':'+_0xe31a08+':'+(_0xfe4ea2?'1':'0')+':'+_0x515489+':'+_0x177a2d+':'+_0x2e9803;}return _0x39c6ab;}function Ai(_0x3baa80){const _0x27d9d7=_0x4ac3a4,_0x4c3239=_0x3baa80[_0x27d9d7(0x151)](','),_0x5a74d6=[];for(const _0xe94a3a of _0x4c3239){const [_0x35a5ab,_0xa571e0,_0x2a6532,_0x32e4dc,_0x10ee42,_0x3f10f9]=_0xe94a3a['split'](':');_0x5a74d6[_0x27d9d7(0x15e)]({'startOffset':Number(_0x35a5ab),'endOffset':Number(_0xa571e0),'collapsed':_0x35a5ab===_0xa571e0,'isActive':_0x2a6532==='1','rangeType':_0x32e4dc===_0x422485[_0x27d9d7(0x343)]?_0x422485[_0x27d9d7(0x343)]:_0x422485['RECT'],'segmentId':typeof _0x10ee42==_0x27d9d7(0x311)?String(_0x10ee42):'','segmentPage':Number(_0x3f10f9!=null?_0x3f10f9:-0x1)});}return _0x5a74d6[_0x27d9d7(0x140)](_0x32b785=>_0x32b785['isActive'])||(_0x5a74d6[0x0][_0x27d9d7(0x2cb)]=!0x0),_0x5a74d6;}class ze extends _0x3004d6{constructor(){const _0xf72ee4=_0x4ac3a4;super(...arguments),_(this,_0xf72ee4(0x317),new _0x1d7743(null)),_(this,_0xf72ee4(0x263),this['_collabCursorState$'][_0xf72ee4(0x365)]());}[_0x4ac3a4(0x345)](_0x159c53){const _0x272822=_0x4ac3a4,{unitID:_0x20eaa8,memberID:_0x56f160,textRanges:_0x10293d}=_0x159c53,_0x565466=$t(_0x10293d);if(_0x565466==='')return;const _0x2f79a0={'unitID':_0x20eaa8,'memberID':_0x56f160,'selection':_0x565466};this[_0x272822(0x317)][_0x272822(0x242)](_0x2f79a0);}}var Pi=Object[_0x4ac3a4(0x13a)],wi=(_0xd3d8fa,_0xc5c886,_0x43b58,_0x54326c)=>{const _0x3a590e=_0x4ac3a4;for(var _0x593619=_0x54326c>0x1?void 0x0:_0x54326c?Pi(_0xc5c886,_0x43b58):_0xc5c886,_0x4b6545=_0xd3d8fa[_0x3a590e(0x245)]-0x1,_0x244848;_0x4b6545>=0x0;_0x4b6545--)(_0x244848=_0xd3d8fa[_0x4b6545])&&(_0x593619=_0x244848(_0x593619)||_0x593619);return _0x593619;},A=(_0x317062,_0x5de250)=>(_0x192d5a,_0x2f7e6f)=>_0x5de250(_0x192d5a,_0x2f7e6f,_0x317062);const yi=0x12c,$i=0x64;let xe=class extends _0x3004d6{constructor(_0x47b033,_0x1ca3d4,_0x144e29,_0x290f0b,_0x377e7a,_0x1f3b13,_0x2096a8,_0x557241,_0x2bd70f){const _0x228f61=_0x4ac3a4;super(),_(this,_0x228f61(0x1f7),!0x1),_(this,'_init',!0x1),_(this,_0x228f61(0x2e8),new _0x1d7743(new Map())),_(this,_0x228f61(0x1b6),this[_0x228f61(0x2e8)][_0x228f61(0x365)]()),_(this,_0x228f61(0x283),new _0x1d7743([])),_(this,_0x228f61(0x2d2),this[_0x228f61(0x283)][_0x228f61(0x1be)](_0x5eb71b(yi))),_(this,_0x228f61(0x1b0),_0x4b634b(_0x560ff2=>{const _0x427b54=_0x228f61,_0x2856b1={'eventID':_0x33ce2e[_0x427b54(0x173)],'data':{'unitID':this[_0x427b54(0x1ae)],'memberID':this[_0x427b54(0x2e1)][_0x427b54(0x2fb)](),'selection':$t(_0x560ff2)}};this[_0x427b54(0x2e1)][_0x427b54(0x223)](_0x2856b1,this[_0x427b54(0x1ae)]);},$i)),(this['unitID']=_0x47b033,this['_session']=_0x1ca3d4,this[_0x228f61(0x357)]=_0x144e29,this[_0x228f61(0x1c4)]=_0x290f0b,this['_memberService']=_0x377e7a,this[_0x228f61(0x2f6)]=_0x1f3b13,this[_0x228f61(0x17c)]=_0x2096a8,this[_0x228f61(0x20f)]=_0x557241,this['_commandService']=_0x2bd70f);}get[_0x4ac3a4(0x282)](){const _0x369686=_0x4ac3a4;return this['_cursorInfo$'][_0x369686(0x21e)]();}get['roomMembers'](){const _0x1e4c30=_0x4ac3a4;return this['_roomMembers$'][_0x1e4c30(0x21e)]();}['dispose'](){const _0x59d232=_0x4ac3a4;super[_0x59d232(0x302)](),this[_0x59d232(0x2e8)][_0x59d232(0x242)](new Map()),this[_0x59d232(0x2e8)]['complete'](),this[_0x59d232(0x283)]['next']([]),this[_0x59d232(0x283)][_0x59d232(0x20b)]();}[_0x4ac3a4(0x1bf)](){const _0x1237f0=_0x4ac3a4;this['_init']||(this[_0x1237f0(0x28a)]=!0x0,this[_0x1237f0(0x2e1)][_0x1237f0(0x12c)][_0x1237f0(0x1be)](_0x141c76(this['dispose$']))['subscribe'](_0x9dd72a=>{const _0x402de6=_0x1237f0;_0x9dd72a===_0x241864[_0x402de6(0x2b9)]?this[_0x402de6(0x316)]():this['_toggleOffline']();}),this['_session'][_0x1237f0(0x244)][_0x1237f0(0x1be)](_0x141c76(this[_0x1237f0(0x31b)]))['subscribe'](_0x36994a=>{const _0x2b758c=_0x1237f0,_0x4fd31c=_0x36994a[_0x2b758c(0x19c)];_0x4fd31c===_0x33ce2e[_0x2b758c(0x173)]&&this['_onCursorUpdate'](_0x36994a),_0x4fd31c===_0x33ce2e[_0x2b758c(0x183)]&&this['_onCursorDelete'](_0x36994a);}),this[_0x1237f0(0x29e)](this['_commandService'][_0x1237f0(0x2b8)](_0x36850b=>{const _0x1ff92d=_0x1237f0,_0x34bbd9=_0x36850b[_0x1ff92d(0x30d)];_0x34bbd9!=null&&this[_0x1ff92d(0x1f7)]&&_0x36850b['id']===_0x5aa79d['id']&&_0x34bbd9[_0x1ff92d(0x307)]===this[_0x1ff92d(0x1ae)]&&_0x34bbd9['isEditing']===!0x1&&_0x34bbd9[_0x1ff92d(0x26d)]['length']>0x0&&this[_0x1ff92d(0x1b0)](_0x34bbd9[_0x1ff92d(0x26d)]);})),this[_0x1237f0(0x2f6)][_0x1237f0(0x263)][_0x1237f0(0x1be)](_0x141c76(this[_0x1237f0(0x31b)]))[_0x1237f0(0x1cb)](_0x49e582=>{const _0x4c326a=_0x1237f0;if((_0x49e582==null?void 0x0:_0x49e582['unitID'])!==this[_0x4c326a(0x1ae)])return;const _0x14a50e={'eventID':_0x33ce2e[_0x4c326a(0x173)],'data':_0x49e582};this[_0x4c326a(0x197)](_0x14a50e);}),this['disposeWithMe'](this[_0x1237f0(0x155)][_0x1237f0(0x2b8)](_0x3c3d8a=>{const _0x1a9bfc=_0x1237f0;if(_0x3c3d8a['params']==null)return;const _0x483ea6=_0x3c3d8a[_0x1a9bfc(0x30d)];if(_0x3c3d8a['id']!==_0x5cfcf4['id']||_0x483ea6[_0x1a9bfc(0x307)]!==this[_0x1a9bfc(0x1ae)])return;const _0x441ac1={'id':'doc.mutation.rich-text-editing','params':_0x483ea6},_0x187a1f=this['cursorInfo'];for(const [_0x3a639b,_0x411dfd]of _0x187a1f){const _0x110c1b={'id':_0x1a9bfc(0x13c),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x411dfd[_0x1a9bfc(0x26d)]}},_0x236c8d=this[_0x1a9bfc(0x17c)][_0x1a9bfc(0x35e)](_0x441ac1,_0x110c1b,!0x1);if(_0x747370(_0x236c8d))throw _0x236c8d[_0x1a9bfc(0x1e2)];_0x187a1f[_0x1a9bfc(0x1bd)](_0x3a639b,{..._0x411dfd,'ranges':_0x236c8d[_0x1a9bfc(0x12e)][_0x1a9bfc(0x30d)][_0x1a9bfc(0x19b)]});}queueMicrotask(()=>{const _0x51f4f3=_0x1a9bfc;this[_0x51f4f3(0x2e8)][_0x51f4f3(0x242)](_0x187a1f);});})));}['_onCursorUpdate'](_0x4e2422){const _0x4745a3=_0x4ac3a4;var _0x107330,_0x2d6674;const {memberID:_0x4cac5d,selection:_0x41d99f}=_0x4e2422['data'],_0x17ab8c=Ai(_0x41d99f),_0x264fee=(_0x2d6674=(_0x107330=this[_0x4745a3(0x2d9)][_0x4745a3(0x1c5)](this['unitID'],_0x4cac5d))==null?void 0x0:_0x107330[_0x4745a3(0x1df)])!=null?_0x2d6674:'Unknown\x20user',_0x5c2bee={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x4cac5d),'name':_0x264fee,'ranges':_0x17ab8c},_0x1bb043=this['cursorInfo'];_0x1bb043['set'](_0x4cac5d,_0x5c2bee),this[_0x4745a3(0x2e8)][_0x4745a3(0x242)](_0x1bb043);}[_0x4ac3a4(0x15b)](_0x508081){const _0x2e3b65=_0x4ac3a4,{memberID:_0x24e808}=_0x508081['data'],_0x1154e9=this[_0x2e3b65(0x282)];_0x1154e9['delete'](_0x24e808),this[_0x2e3b65(0x2e8)]['next'](_0x1154e9);}['_toggleOnline'](){const _0x142e60=_0x4ac3a4;var _0x1639c5;if(this[_0x142e60(0x1f7)]=!0x0,((_0x1639c5=this[_0x142e60(0x20f)][_0x142e60(0x29d)]())==null?void 0x0:_0x1639c5[_0x142e60(0x1dc)]())!==this[_0x142e60(0x1ae)])return;const _0x37389b=this[_0x142e60(0x357)][_0x142e60(0x2bb)](_0x474edc)[_0x142e60(0x28e)]();Array[_0x142e60(0x1fd)](_0x37389b)&&_0x37389b['length']>0x0&&this[_0x142e60(0x1b0)](_0x37389b);}[_0x4ac3a4(0x18d)](){const _0x2334c5=_0x4ac3a4;this[_0x2334c5(0x1f7)]=!0x1;}};xe=wi([A(0x2,_0x5f06d0(_0x1d4bde)),A(0x3,_0x5f06d0(Ke)),A(0x4,_0x5f06d0(_0x19374d)),A(0x5,_0x5f06d0(ze)),A(0x6,_0x190171),A(0x7,_0x4711cc),A(0x8,_0x222551)],xe);var xi=Object[_0x4ac3a4(0x13a)],Bi=(_0x2ca296,_0x14b80f,_0x2cadd7,_0x146941)=>{const _0x15839e=_0x4ac3a4;for(var _0x19868e=_0x146941>0x1?void 0x0:_0x146941?xi(_0x14b80f,_0x2cadd7):_0x14b80f,_0x15dd52=_0x2ca296[_0x15839e(0x245)]-0x1,_0xb4da7a;_0x15dd52>=0x0;_0x15dd52--)(_0xb4da7a=_0x2ca296[_0x15dd52])&&(_0x19868e=_0xb4da7a(_0x19868e)||_0x19868e);return _0x19868e;},B=(_0x57bc50,_0x2cad29)=>(_0x153e4c,_0x4141bb)=>_0x2cad29(_0x153e4c,_0x4141bb,_0x57bc50);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x506830=[],_0x2c5594=!0x1;return _0x12b71=>{_0x506830['push'](_0x12b71),_0x2c5594||(_0x2c5594=!0x0,setTimeout(()=>{const _0x2bc4c1=_0x3ebe;_0x506830[_0x2bc4c1(0x272)](_0x1fbd95=>_0x1fbd95()),_0x506830=[],_0x2c5594=!0x1;}));};};function _0x3ebe(_0x245a24,_0x3d2c8d){_0x245a24=_0x245a24-0x11c;const _0x4bcd47=_0x4bcd();let _0x3ebe80=_0x4bcd47[_0x245a24];return _0x3ebe80;}let Be=class extends _0x3004d6{constructor(_0x1d738a,_0x97fda4,_0x1182ec,_0x215615,_0x4cd787,_0x5c036f,_0x30a370,_0x3770ba){const _0x334dfb=_0x4ac3a4;super(),_(this,_0x334dfb(0x1f7),!0x1),_(this,_0x334dfb(0x28a),!0x1),_(this,_0x334dfb(0x2e8),new _0x1d7743(new Map())),_(this,'cursorInfo$',this[_0x334dfb(0x2e8)][_0x334dfb(0x365)]()),_(this,_0x334dfb(0x283),new _0x1d7743([])),_(this,'roomMembers$',this[_0x334dfb(0x283)][_0x334dfb(0x1be)](_0x5eb71b(Fi))),_(this,_0x334dfb(0x1b0),_0x4b634b((_0x306ed5,_0x59a4ba)=>{const _0x38187a=_0x334dfb,_0x1e2c85={'eventID':_0x33ce2e[_0x38187a(0x173)],'data':{'unitID':this[_0x38187a(0x1ae)],'memberID':this[_0x38187a(0x2e1)][_0x38187a(0x2fb)](),'selection':_0x5dd673(_0x306ed5,_0x59a4ba['range'])}};this['_session'][_0x38187a(0x223)](_0x1e2c85,this['unitID']);},ki)),(this[_0x334dfb(0x1ae)]=_0x1d738a,this['_session']=_0x97fda4,this[_0x334dfb(0x357)]=_0x1182ec,this[_0x334dfb(0x1c4)]=_0x215615,this[_0x334dfb(0x2d9)]=_0x4cd787,this[_0x334dfb(0x20f)]=_0x5c036f,this[_0x334dfb(0x155)]=_0x30a370,this[_0x334dfb(0x2b1)]=_0x3770ba);}get[_0x4ac3a4(0x282)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5a816a=_0x4ac3a4;return this[_0x5a816a(0x283)][_0x5a816a(0x21e)]();}[_0x4ac3a4(0x302)](){const _0x1ce2fe=_0x4ac3a4;super[_0x1ce2fe(0x302)](),this[_0x1ce2fe(0x2e8)][_0x1ce2fe(0x242)](new Map()),this[_0x1ce2fe(0x2e8)]['complete'](),this[_0x1ce2fe(0x283)][_0x1ce2fe(0x242)]([]),this[_0x1ce2fe(0x283)][_0x1ce2fe(0x20b)]();}[_0x4ac3a4(0x1bf)](){const _0x3d22b1=_0x4ac3a4;this['_init']||(this[_0x3d22b1(0x28a)]=!0x0,this[_0x3d22b1(0x2e1)][_0x3d22b1(0x12c)][_0x3d22b1(0x1be)](_0x141c76(this[_0x3d22b1(0x31b)]))[_0x3d22b1(0x1cb)](_0x32a43e=>{const _0x2400e9=_0x3d22b1;_0x32a43e===_0x241864['ONLINE']?this[_0x2400e9(0x316)]():this[_0x2400e9(0x18d)]();}),this[_0x3d22b1(0x2e1)][_0x3d22b1(0x244)][_0x3d22b1(0x1be)](_0x141c76(this[_0x3d22b1(0x31b)]))[_0x3d22b1(0x1cb)](_0xaeda03=>{const _0x3d05e1=_0x3d22b1,_0x30c5d7=_0xaeda03[_0x3d05e1(0x19c)];_0x30c5d7===_0x33ce2e['UPDATE_CURSOR']&&this[_0x3d05e1(0x197)](_0xaeda03),_0x30c5d7===_0x33ce2e[_0x3d05e1(0x183)]&&this[_0x3d05e1(0x15b)](_0xaeda03);}),this['_onRefRangeChange'](),this[_0x3d22b1(0x29e)](this[_0x3d22b1(0x155)][_0x3d22b1(0x2b8)](_0x550bc9=>{const _0x348ef1=_0x3d22b1;if(this[_0x348ef1(0x1f7)]&&_0x550bc9['id']===_0x51c17b['id']&&_0x550bc9[_0x348ef1(0x30d)][_0x348ef1(0x307)]===this['unitID']){const _0x5acf44=_0x550bc9[_0x348ef1(0x30d)];this[_0x348ef1(0x1b0)](_0x5acf44[_0x348ef1(0x1d1)],_0x5acf44[_0x348ef1(0x26b)][0x0]);}})));}['_onCursorUpdate'](_0x4111f0){const _0x4f5ffa=_0x4ac3a4;var _0x5889b8,_0x605162;const {memberID:_0x36ea1a,selection:_0x1aa642}=_0x4111f0['data'],{sheetName:_0x23fd6a,range:_0x16bace}=_0x1d8a17(_0x1aa642),_0x37da67={'name':(_0x605162=(_0x5889b8=this[_0x4f5ffa(0x2d9)][_0x4f5ffa(0x1c5)](this[_0x4f5ffa(0x1ae)],_0x36ea1a))==null?void 0x0:_0x5889b8[_0x4f5ffa(0x1df)])!=null?_0x605162:_0x4f5ffa(0x274),'range':this[_0x4f5ffa(0x22a)](_0x23fd6a,_0x16bace),'sheetID':_0x23fd6a,'color':this['_colorAssignService'][_0x4f5ffa(0x267)](_0x36ea1a),'selection':_0x1aa642},_0x58c4bd=this['cursorInfo'];_0x58c4bd[_0x4f5ffa(0x1bd)](_0x36ea1a,_0x37da67),this['_cursorInfo$'][_0x4f5ffa(0x242)](_0x58c4bd);}[_0x4ac3a4(0x15b)](_0x34b3ed){const _0x3e21e6=_0x4ac3a4,{memberID:_0x58d43f}=_0x34b3ed[_0x3e21e6(0x32e)],_0x1bee2d=this[_0x3e21e6(0x282)];_0x1bee2d[_0x3e21e6(0x342)](_0x58d43f),this[_0x3e21e6(0x2e8)][_0x3e21e6(0x242)](_0x1bee2d);}[_0x4ac3a4(0x22a)](_0x4d9b14,_0x51b419){const _0x28eab5=_0x4ac3a4;var _0x19c618,_0x5c9cd7;const _0x24c5c0=(_0x5c9cd7=(_0x19c618=this[_0x28eab5(0x20f)]['getUniverSheetInstance'](this[_0x28eab5(0x1ae)]))==null?void 0x0:_0x19c618[_0x28eab5(0x258)](_0x4d9b14))==null?void 0x0:_0x5c9cd7['getMergeData']();return(_0x24c5c0==null?void 0x0:_0x24c5c0[_0x28eab5(0x1dd)](_0x44f8d4=>_0x581118[_0x28eab5(0x21d)](_0x44f8d4,_0x51b419)))||_0x51b419;}[_0x4ac3a4(0x211)](){const _0x127801=_0x4ac3a4,_0x188297=new _0x1b660f(),_0x4d964e=Hi(),_0x278749=()=>{const _0x32e937=_0x3ebe;_0x188297[_0x32e937(0x302)]();const _0x9c8bd4=(_0x1cf479,_0x17c391,_0x1023a5,_0x1060f4)=>{const _0x3b97ff=_0x32e937;let _0x3d0353=[];switch(_0x1cf479['id']){case _0x2ed0ad[_0x3b97ff(0x2da)]:{_0x3d0353=_0x2ca480(_0x1cf479,_0x1060f4);break;}case _0x2ed0ad[_0x3b97ff(0x25d)]:{_0x3d0353=_0x21d932(_0x1cf479,_0x1060f4);break;}case _0x2ed0ad[_0x3b97ff(0x280)]:{_0x3d0353=_0x1223d2(_0x1cf479,_0x1060f4);break;}case _0x2ed0ad[_0x3b97ff(0x1a7)]:{_0x3d0353=_0x4b051c(_0x1cf479,_0x1060f4);break;}case _0x2ed0ad[_0x3b97ff(0x27c)]:{_0x3d0353=_0x77a863(_0x1cf479,_0x1060f4);break;}case _0x2ed0ad[_0x3b97ff(0x335)]:{_0x3d0353=_0x473ecd(_0x1cf479,_0x1060f4);break;}case _0x2ed0ad['MoveRangeCommandId']:{_0x3d0353=_0x5eb746(_0x1cf479,_0x1060f4);break;}case _0x2ed0ad['RemoveColCommandId']:{_0x3d0353=_0x5450a1(_0x1cf479,_0x1060f4);break;}case _0x2ed0ad[_0x3b97ff(0x2ca)]:{_0x3d0353=_0x53c1f6(_0x1cf479,_0x1060f4);break;}}const _0x1dd85f=_0x4232ef(_0x3d0353,_0x1060f4),_0xf618e7=this['cursorInfo']['get'](_0x17c391);if(_0xf618e7&&_0x1dd85f){const _0x6877a={..._0xf618e7,'range':_0x1dd85f};this[_0x3b97ff(0x282)][_0x3b97ff(0x1bd)](_0x17c391,_0x6877a),_0x4d964e(()=>{const _0xff379d=_0x3b97ff,_0x24b06f=this['_refRangeService'][_0xff379d(0x1f6)](_0x1dd85f,_0x2438bf=>(_0x24b06f[_0xff379d(0x302)](),_0x9c8bd4(_0x2438bf,_0x17c391,_0x1023a5,_0x1dd85f)));_0x188297['add'](_0x24b06f);});}return{'redos':[],'undos':[]};};this[_0x32e937(0x282)][_0x32e937(0x272)]((_0x4087e3,_0x45b25e)=>{const _0x2f6d16=_0x32e937,{range:_0xa6ba7d,sheetID:_0x1a2e95}=_0x4087e3,_0x12c769=this[_0x2f6d16(0x2b1)]['registerRefRange'](_0xa6ba7d,_0x5f58f4=>(_0x12c769[_0x2f6d16(0x302)](),_0x9c8bd4(_0x5f58f4,_0x45b25e,_0x1a2e95,_0xa6ba7d)));_0x188297[_0x2f6d16(0x241)](_0x12c769);});};this[_0x127801(0x29e)](_0x31a568(this[_0x127801(0x2e8)][_0x127801(0x1cb)](()=>{_0x278749();})));}[_0x4ac3a4(0x316)](){const _0x2cb676=_0x4ac3a4;var _0x3edd59,_0x1a68cf;if(this['_online']=!0x0,((_0x3edd59=this[_0x2cb676(0x20f)][_0x2cb676(0x29d)]())==null?void 0x0:_0x3edd59[_0x2cb676(0x1dc)]())!==this[_0x2cb676(0x1ae)])return;const _0x294931=(_0x1a68cf=this[_0x2cb676(0x357)][_0x2cb676(0x2bb)](_0x5169e0)['getCurrentSelections']())==null?void 0x0:_0x1a68cf[0x0],_0x1baa1c=this[_0x2cb676(0x20f)][_0x2cb676(0x2f9)](_0x382bbd['UNIVER_SHEET'])[_0x2cb676(0x14d)]();_0x294931&&_0x1baa1c&&this['_updateLocalCursor'](_0x1baa1c[_0x2cb676(0x364)](),_0x294931);}[_0x4ac3a4(0x18d)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x5f06d0(_0x1d4bde)),B(0x3,_0x5f06d0(Ke)),B(0x4,_0x5f06d0(_0x19374d)),B(0x5,_0x4711cc),B(0x6,_0x222551),B(0x7,_0x5f06d0(_0x4ca417))],Be);var Yi=Object[_0x4ac3a4(0x13a)],Wi=(_0x279cb4,_0x1aecab,_0x1789ef,_0x261e20)=>{const _0x490caf=_0x4ac3a4;for(var _0x4ab8aa=_0x261e20>0x1?void 0x0:_0x261e20?Yi(_0x1aecab,_0x1789ef):_0x1aecab,_0x1c8367=_0x279cb4[_0x490caf(0x245)]-0x1,_0x46d9e5;_0x1c8367>=0x0;_0x1c8367--)(_0x46d9e5=_0x279cb4[_0x1c8367])&&(_0x4ab8aa=_0x46d9e5(_0x4ab8aa)||_0x4ab8aa);return _0x4ab8aa;},Ce=(_0x3d7953,_0x4d2c67)=>(_0x148889,_0x3d3130)=>_0x4d2c67(_0x148889,_0x3d3130,_0x3d7953);let H=class extends _0x3004d6{constructor(_0x3d1e9c,_0x2c0815,_0x583aac){const _0x127373=_0x4ac3a4;super(),_(this,_0x127373(0x2c5),new Map()),_(this,_0x127373(0x145),new _0x58442f()),(this[_0x127373(0x20f)]=_0x3d1e9c,this[_0x127373(0x357)]=_0x2c0815,this['_collabSessionService']=_0x583aac,this[_0x127373(0x28a)]());}[_0x4ac3a4(0x302)](){const _0xd11183=_0x4ac3a4;super[_0xd11183(0x302)](),this[_0xd11183(0x145)][_0xd11183(0x20b)](),this['_entities']['forEach'](_0x15a3f8=>_0x15a3f8[_0xd11183(0x302)]());}[_0x4ac3a4(0x236)](_0x5e2ab0){const _0x2544b8=_0x4ac3a4;return this[_0x2544b8(0x2c5)]['has'](_0x5e2ab0)?this[_0x2544b8(0x2c5)]['get'](_0x5e2ab0)[_0x2544b8(0x1b6)]:this[_0x2544b8(0x145)]['pipe'](_0xa755f2(_0x200fca=>_0x200fca[_0x2544b8(0x1ae)]===_0x5e2ab0),_0x14aa89(_0x5d4e77=>_0x5d4e77[_0x2544b8(0x1b6)]));}[_0x4ac3a4(0x28a)](){const _0x20519b=_0x4ac3a4;this['_univerInstanceService'][_0x20519b(0x24f)](_0x382bbd[_0x20519b(0x19d)])[_0x20519b(0x1be)](_0x141c76(this[_0x20519b(0x31b)]))[_0x20519b(0x1cb)](async _0x52ad2e=>{const _0xaea712=_0x20519b,_0x22423e=_0x52ad2e[_0xaea712(0x1dc)](),_0x9fb64=await this[_0xaea712(0x1d3)](_0x22423e);this[_0xaea712(0x145)][_0xaea712(0x242)](_0x9fb64),this[_0xaea712(0x2c5)]['set'](_0x22423e,_0x9fb64);}),this['_univerInstanceService'][_0x20519b(0x24f)](_0x382bbd[_0x20519b(0x20c)])[_0x20519b(0x1be)](_0x141c76(this[_0x20519b(0x31b)]))[_0x20519b(0x1be)](_0xa755f2(_0x51cbab=>!_0x51cbab[_0x20519b(0x1dc)]()[_0x20519b(0x27a)]('__')))[_0x20519b(0x1cb)](async _0x4cfa8b=>{const _0x3b5eda=_0x20519b,_0x2c5c1a=_0x4cfa8b[_0x3b5eda(0x1dc)](),_0x1b779a=await this[_0x3b5eda(0x153)](_0x2c5c1a);this[_0x3b5eda(0x145)][_0x3b5eda(0x242)](_0x1b779a),this[_0x3b5eda(0x2c5)][_0x3b5eda(0x1bd)](_0x2c5c1a,_0x1b779a);}),_0x4aa928(this[_0x20519b(0x20f)][_0x20519b(0x14c)](_0x382bbd[_0x20519b(0x20c)]),this[_0x20519b(0x20f)]['getTypeOfUnitDisposed$'](_0x382bbd[_0x20519b(0x19d)]))[_0x20519b(0x1be)](_0x141c76(this[_0x20519b(0x31b)]))[_0x20519b(0x1cb)](_0x1c2374=>{const _0x4dde8a=_0x20519b,_0x374e92=_0x1c2374['getUnitId'](),_0x327cbe=this[_0x4dde8a(0x2c5)][_0x4dde8a(0x2bb)](_0x374e92);_0x327cbe&&(_0x327cbe[_0x4dde8a(0x302)](),this['_entities'][_0x4dde8a(0x342)](_0x374e92));});}async[_0x4ac3a4(0x1d3)](_0x2e5489){const _0x3be8bc=_0x4ac3a4,_0x7d3cbd=await this[_0x3be8bc(0x144)][_0x3be8bc(0x340)](_0x2e5489),_0x1fab6f=this[_0x3be8bc(0x357)][_0x3be8bc(0x315)](Be,_0x2e5489,_0x7d3cbd);return _0x1fab6f[_0x3be8bc(0x1bf)](),_0x1fab6f;}async[_0x4ac3a4(0x153)](_0x1c751d){const _0x6c869a=_0x4ac3a4,_0x2f0019=await this[_0x6c869a(0x144)]['requireSession'](_0x1c751d),_0x2f2ad1=this[_0x6c869a(0x357)]['createInstance'](xe,_0x1c751d,_0x2f0019);return _0x2f2ad1['init'](),_0x2f2ad1;}};H=Wi([Ce(0x0,_0x4711cc),Ce(0x1,_0x5f06d0(_0x1d4bde)),Ce(0x2,_0x5f06d0(_0x1965e1))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x1720c2,_0x32e273){const _0x1fe774=_0x4ac3a4;let {radius:_0xffdba0,width:_0x53eb89,height:_0x452bdd}=_0x32e273;_0xffdba0=_0xffdba0!=null?_0xffdba0:0x0,_0x53eb89=_0x53eb89!=null?_0x53eb89:0x1e,_0x452bdd=_0x452bdd!=null?_0x452bdd:0x1e;let _0x4b19a6=0x0,_0x257a9a=0x0,_0x2afc06=0x0;_0x4b19a6=_0x257a9a=_0x2afc06=Math[_0x1fe774(0x1e0)](_0xffdba0,_0x53eb89/0x2,_0x452bdd/0x2),_0x1720c2[_0x1fe774(0x363)](),_0x1720c2['moveTo'](_0x4b19a6,0x0),_0x1720c2[_0x1fe774(0x1cc)](_0x53eb89-_0x257a9a,0x0),_0x1720c2[_0x1fe774(0x132)](_0x53eb89-_0x257a9a,_0x257a9a,_0x257a9a,Math['PI']*0x3/0x2,0x0,!0x1),_0x1720c2['lineTo'](_0x53eb89,_0x452bdd-_0x2afc06),_0x1720c2[_0x1fe774(0x132)](_0x53eb89-_0x2afc06,_0x452bdd-_0x2afc06,_0x2afc06,0x0,Math['PI']/0x2,!0x1),_0x1720c2[_0x1fe774(0x1cc)](0x0,_0x452bdd),_0x1720c2[_0x1fe774(0x1cc)](0x0,_0x4b19a6),_0x1720c2[_0x1fe774(0x132)](_0x4b19a6,_0x4b19a6,_0x4b19a6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1720c2['closePath'](),_0x32e273[_0x1fe774(0x25b)]&&(_0x1720c2['save'](),_0x1720c2[_0x1fe774(0x1da)]=_0x32e273[_0x1fe774(0x25b)],_0x32e273[_0x1fe774(0x22f)]===_0x1fe774(0x366)?_0x1720c2[_0x1fe774(0x25b)](_0x1fe774(0x366)):_0x1720c2['fill'](),_0x1720c2['restore']());}class ve extends _0x475d95{constructor(_0x583c45,_0x7f1523){const _0x4479fa=_0x4ac3a4;super(_0x583c45,_0x7f1523),_(this,'color'),_(this,'text'),(this[_0x4479fa(0x279)]=_0x7f1523==null?void 0x0:_0x7f1523[_0x4479fa(0x279)],this[_0x4479fa(0x34c)]=_0x7f1523==null?void 0x0:_0x7f1523['text']);}static['drawWith'](_0x3ee5bc,_0x36f0f3){const _0x1bedba=_0x4ac3a4,{text:_0x2d27de,color:_0xeef74a}=_0x36f0f3;_0x3ee5bc[_0x1bedba(0x1ea)](),_0x3ee5bc[_0x1bedba(0x25e)]=_0x1bedba(0x328);const _0x5955a2=_0x3ee5bc[_0x1bedba(0x147)](_0x2d27de)[_0x1bedba(0x2dd)],_0x1f3f55=Math[_0x1bedba(0x1e0)](_0x5955a2+0x2*Re,at);ji(_0x3ee5bc,{'height':Q,'radius':0x4,'width':_0x1f3f55,'fill':_0xeef74a}),_0x3ee5bc[_0x1bedba(0x1da)]=_0x1bedba(0x295);const _0x46ee9e=Re,_0x2f217c=Q-Vi,_0x1f7443=at-0x2*Re;if(_0x5955a2>_0x1f7443){let _0x1c4fec='',_0xb4e45a=0x0;for(const _0x1bb287 of _0x2d27de){const _0x617258=_0x3ee5bc['measureText'](_0x1bb287)[_0x1bedba(0x2dd)];if(_0xb4e45a+_0x617258<=_0x1f7443-_0x3ee5bc[_0x1bedba(0x147)](_0x1bedba(0x157))[_0x1bedba(0x2dd)])_0x1c4fec+=_0x1bb287,_0xb4e45a+=_0x617258;else{_0x1c4fec+=_0x1bedba(0x157);break;}}_0x3ee5bc[_0x1bedba(0x2d5)](_0x1c4fec,_0x46ee9e,_0x2f217c);}else _0x3ee5bc[_0x1bedba(0x2d5)](_0x2d27de,_0x46ee9e,_0x2f217c);_0x3ee5bc[_0x1bedba(0x252)]();}['_draw'](_0x4151){const _0x371c52=_0x4ac3a4;ve[_0x371c52(0x1ff)](_0x4151,this);}}const De=_0x4ac3a4(0x1d5),Xi='collab-text-range-',Gi=_0x4ac3a4(0x314),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x4ac3a4(0x2b3);class ct{constructor(_0x4a8d42,_0x5a06eb,_0x164cf3,_0x3c1c33){const _0x27ac6a=_0x4ac3a4;_(this,'_shapes',[]),_(this,_0x27ac6a(0x2c4),null),_(this,_0x27ac6a(0x2a4),null),_(this,'_anchorDot',null),_(this,_0x27ac6a(0x34f),null),_(this,'_eventUnsubscribe',null),(this[_0x27ac6a(0x28b)]=_0x4a8d42,this[_0x27ac6a(0x1fe)]=_0x5a06eb,this[_0x27ac6a(0x2b0)]=_0x164cf3,this[_0x27ac6a(0x23c)]=_0x3c1c33,this[_0x27ac6a(0x356)]());}set[_0x4ac3a4(0x189)](_0x5d65f4){const _0x10bc4d=_0x4ac3a4;_0x5d65f4?(this['_anchorDot']&&this['_anchorDot'][_0x10bc4d(0x337)](),this[_0x10bc4d(0x2a4)]&&this['_textBubble'][_0x10bc4d(0x27e)]()):(this[_0x10bc4d(0x329)]&&this[_0x10bc4d(0x329)][_0x10bc4d(0x27e)](),this[_0x10bc4d(0x2a4)]&&this['_textBubble'][_0x10bc4d(0x337)]());}[_0x4ac3a4(0x302)](){const _0x24d746=_0x4ac3a4;for(const _0x46195e of this[_0x24d746(0x206)])_0x46195e[_0x24d746(0x302)]();this[_0x24d746(0x2a4)]&&this[_0x24d746(0x2a4)][_0x24d746(0x302)](),this[_0x24d746(0x329)]&&this[_0x24d746(0x329)][_0x24d746(0x302)](),this[_0x24d746(0x2c4)]&&this['_anchor'][_0x24d746(0x302)](),this['_eventUnsubscribe']&&this[_0x24d746(0x17a)]();}[_0x4ac3a4(0x356)](){const _0xf75c6f=_0x4ac3a4;var _0x234158;const {_docSkeleton:_0x21775f,_document:_0x4bd9de}=this,{color:_0x2b21d4,name:_0xde5c0e,ranges:_0x595657}=this[_0xf75c6f(0x28b)],_0x1317ac=_0x4bd9de[_0xf75c6f(0x2b7)](),{docsLeft:_0x543140,docsTop:_0x2e638a}=_0x1317ac,_0xe6922a=new _0x5f079a(_0x1317ac,_0x21775f);for(const {startOffset:_0x40c0e8,endOffset:_0x17e9d5,rangeType:_0x30c3c8,segmentId:_0x47e388,segmentPage:_0x52d0b6,collapsed:_0x12ed04,isActive:_0x490e16}of _0x595657){const _0x73b400=_0x21775f[_0xf75c6f(0x292)](_0x40c0e8,!0x0,_0x47e388,_0x52d0b6);let _0x59ae3b=_0x21775f[_0xf75c6f(0x292)](_0x17e9d5,!0x0,_0x47e388,_0x52d0b6);if(_0x59ae3b==null&&(_0x59ae3b=_0x21775f[_0xf75c6f(0x292)](_0x17e9d5-0x1,!0x1,_0x47e388,_0x52d0b6)),_0x490e16){const {contentBoxPointGroup:_0x5245cf}=_0xe6922a['getRangePointData'](_0x59ae3b,_0x59ae3b);if(_0x5245cf['length']===0x0)continue;this['_drawAnchor'](_0x2b21d4,_0x5245cf,_0x543140,_0x2e638a,_0xde5c0e),this[_0xf75c6f(0x17a)]=this['_handleHover']();}if(_0x73b400&&_0x59ae3b){if(_0x30c3c8===_0x422485['RECT']){const _0x481dd6=new _0x283ffc(_0x1317ac,_0x21775f),{pointGroup:_0x378d74}=(_0x234158=_0x481dd6[_0xf75c6f(0x139)](_0x73b400,_0x59ae3b))!=null?_0x234158:{};if(_0x378d74==null||_0x378d74[_0xf75c6f(0x245)]===0x0)continue;this['_drawRectRange'](_0x2b21d4,_0x378d74,_0x543140,_0x2e638a);}else{if(!_0x12ed04){const {borderBoxPointGroup:_0x58cb13}=_0xe6922a[_0xf75c6f(0x139)](_0x73b400,_0x59ae3b);if(_0x58cb13[_0xf75c6f(0x245)]===0x0)continue;this['_drawTextRange'](_0x2b21d4,_0x58cb13,_0x543140,_0x2e638a);}}}}}['_drawAnchor'](_0x2c4300,_0x564cdb,_0x15583b,_0x7b5df1,_0x59ba52){const _0x59a3cc=_0x4ac3a4,_0x25de79=this[_0x59a3cc(0x2f0)](_0x564cdb),{left:_0x1ecccf,top:_0x351424,height:_0x289e4c}=_0x25de79,_0x1e509c=this[_0x59a3cc(0x1ce)](),_0x1c715b=zi/_0x1e509c,_0x4d79f1=new _0x2cd40e(De+_0x40f13c(z),{'left':_0x1ecccf+_0x15583b-_0x1c715b,'top':_0x351424+_0x7b5df1,'height':_0x289e4c,'width':Ki,'fill':_0x2c4300||_0x56f14b(_0x375f0c[_0x59a3cc(0x142)],0x0),'strokeWidth':_0x1c715b,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x4d79f1,this[_0x59a3cc(0x1fe)][_0x59a3cc(0x2b2)](_0x4d79f1,_0xab4bd6);const _0x5a05cc=new _0x2cd40e(De+_0x40f13c(z),{'left':_0x1ecccf+_0x15583b-_0x1c715b,'top':_0x351424+_0x7b5df1-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2c4300||_0x56f14b(_0x375f0c[_0x59a3cc(0x142)],0x0),'strokeWidth':0x0,'stroke':_0x2c4300||_0x56f14b(_0x375f0c[_0x59a3cc(0x142)],0x0),'evented':!0x1});this[_0x59a3cc(0x329)]=_0x5a05cc,this[_0x59a3cc(0x1fe)]['addObject'](_0x5a05cc,_0xab4bd6);const _0x4472e=new ve(De+_0x40f13c(z),{'left':_0x1ecccf+_0x15583b-_0x1c715b,'top':_0x351424+_0x7b5df1-Q,'text':_0x59ba52,'color':_0x2c4300});this[_0x59a3cc(0x2a4)]=_0x4472e,this['_scene']['addObject'](_0x4472e,_0xab4bd6),this[_0x59a3cc(0x189)]=!0x1;}[_0x4ac3a4(0x24b)](){const _0x1c130e=_0x4ac3a4,_0x5e2b4e=this['_anchor'][_0x1c130e(0x1e7)][_0x1c130e(0x166)](()=>{const _0x38e2c5=_0x1c130e;this[_0x38e2c5(0x189)]=!0x0;}),_0x52fe3e=this[_0x1c130e(0x2c4)]['onPointerLeave$']['subscribeEvent'](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x1d96ba=_0x3ebe;this[_0x1d96ba(0x189)]=!0x1;},0x7d0);});return()=>{_0x5e2b4e['unsubscribe'](),_0x52fe3e['unsubscribe']();};}[_0x4ac3a4(0x2ee)](_0x4d895f,_0x5a1faf,_0x412320,_0x130f35){const _0x24949a=_0x4ac3a4,_0x300ea7=new _0x1d9650(_0x4d895f)['setAlpha'](0.2)[_0x24949a(0x246)](),_0x29931f=new _0x2ac1af(Xi+_0x40f13c(z),{'pointsGroup':_0x5a1faf,'fill':_0x300ea7||_0x56f14b(_0x375f0c[_0x24949a(0x142)],0.2),'left':_0x412320,'top':_0x130f35,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x24949a(0x206)][_0x24949a(0x15e)](_0x29931f),this[_0x24949a(0x1fe)][_0x24949a(0x2b2)](_0x29931f,_0xab4bd6);}[_0x4ac3a4(0x22e)](_0x1517f0,_0xea6618,_0x407b9d,_0x26fef0){const _0x2e6b77=_0x4ac3a4,_0x5a95d3=new _0x1d9650(_0x1517f0)['setAlpha'](0.2)[_0x2e6b77(0x246)](),_0x182be8=new _0x2ac1af(Gi+_0x40f13c(z),{'pointsGroup':_0xea6618,'fill':_0x5a95d3||_0x56f14b(_0x375f0c[_0x2e6b77(0x142)],0.2),'left':_0x407b9d,'top':_0x26fef0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2e6b77(0x206)]['push'](_0x182be8),this[_0x2e6b77(0x1fe)][_0x2e6b77(0x2b2)](_0x182be8,_0xab4bd6);}[_0x4ac3a4(0x2f0)](_0x32d716){const _0x302c8d=_0x32d716[0x0],_0x41a3b8=_0x302c8d[0x0],_0x1306cb=_0x302c8d[0x2],{x:_0x312dc1,y:_0x39de26}=_0x41a3b8,{x:_0x574010,y:_0x1f5745}=_0x1306cb;return{'left':_0x312dc1,'top':_0x39de26,'width':_0x574010-_0x312dc1,'height':_0x1f5745-_0x39de26};}[_0x4ac3a4(0x1ce)](){const _0x4691c3=_0x4ac3a4,{scaleX:_0x31d328,scaleY:_0x3e497b}=this['_scene'][_0x4691c3(0x174)]();return Math[_0x4691c3(0x1e5)](_0x31d328,_0x3e497b);}}var Zi=Object[_0x4ac3a4(0x13a)],Qi=(_0x803026,_0x370b73,_0x142a65,_0x6fad5f)=>{const _0x1efd34=_0x4ac3a4;for(var _0x3729a1=_0x6fad5f>0x1?void 0x0:_0x6fad5f?Zi(_0x370b73,_0x142a65):_0x370b73,_0x42288b=_0x803026[_0x1efd34(0x245)]-0x1,_0x322b9e;_0x42288b>=0x0;_0x42288b--)(_0x322b9e=_0x803026[_0x42288b])&&(_0x3729a1=_0x322b9e(_0x3729a1)||_0x3729a1);return _0x3729a1;},ie=(_0x1e70d3,_0x3f61f1)=>(_0x357753,_0x585f4c)=>_0x3f61f1(_0x357753,_0x585f4c,_0x1e70d3);let Fe=class extends _0x3004d6{constructor(_0x1f295a,_0x35bfed,_0x9b0878,_0x28aa49,_0x3c8a51){const _0x40fc7d=_0x4ac3a4;super(),_(this,_0x40fc7d(0x192),[]),_(this,'_cursors',[]),(this['_context']=_0x1f295a,this[_0x40fc7d(0x250)]=_0x35bfed,this[_0x40fc7d(0x21b)]=_0x9b0878,this[_0x40fc7d(0x155)]=_0x28aa49,this['_themeService']=_0x3c8a51,this['_init']());}[_0x4ac3a4(0x28a)](){const _0x279a78=_0x4ac3a4,_0x41f6e6=this[_0x279a78(0x11f)][_0x279a78(0x307)],_0x10217d=this[_0x279a78(0x250)];this['disposeWithMe'](_0x5db83e([this[_0x279a78(0x21b)][_0x279a78(0x236)](_0x41f6e6),this[_0x279a78(0x276)][_0x279a78(0x2ef)]])[_0x279a78(0x1be)](_0x410986(([_0x59e376,_0x1ea00a])=>({'skeleton':_0x10217d[_0x279a78(0x2be)](),'cursors':[..._0x59e376[_0x279a78(0x2b6)]()]['flatMap'](_0x4c9eab=>({..._0x4c9eab,'color':this[_0x279a78(0x276)][_0x279a78(0x20d)](_0x4c9eab[_0x279a78(0x279)])}))})))['subscribe'](_0x5dbad8=>{const _0x2b89dc=_0x279a78;if(this[_0x2b89dc(0x1ac)](),_0x5dbad8){const {skeleton:_0x3c6beb,cursors:_0x1ce0d7}=_0x5dbad8;this[_0x2b89dc(0x1b7)](_0x3c6beb,_0x1ce0d7);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x4ac3a4(0x1b7)](_0x3ad367,_0x46d614){const _0x5ddbc5=_0x4ac3a4,{scene:_0xc77dab,mainComponent:_0x12a7e7}=this[_0x5ddbc5(0x11f)],_0x34ea91=_0x46d614[_0x5ddbc5(0x204)](_0x4a663f=>new ct(_0x4a663f,_0xc77dab,_0x3ad367,_0x12a7e7));this[_0x5ddbc5(0x192)]=_0x34ea91,this[_0x5ddbc5(0x308)]=_0x46d614;}[_0x4ac3a4(0x16d)](){const _0x6b979f=_0x4ac3a4;this[_0x6b979f(0x1ac)]();const {scene:_0x2a7d19,mainComponent:_0x460836}=this[_0x6b979f(0x11f)],_0x70279b=this[_0x6b979f(0x250)][_0x6b979f(0x2be)](),_0x26fbe8=this[_0x6b979f(0x308)]['map'](_0x1ad698=>new ct(_0x1ad698,_0x2a7d19,_0x70279b,_0x460836));this[_0x6b979f(0x192)]=_0x26fbe8;}[_0x4ac3a4(0x1ac)](){const _0x5716f9=_0x4ac3a4;this[_0x5716f9(0x192)]['forEach'](_0xc3abdb=>_0xc3abdb[_0x5716f9(0x302)]()),this[_0x5716f9(0x192)]=[];}['_initCommandExecutedListener'](){const _0x120b4e=_0x4ac3a4,_0xd981da=[_0x3522ae['id']];this['disposeWithMe'](this[_0x120b4e(0x155)][_0x120b4e(0x2b8)](_0x1a5125=>{const _0x16bb3e=_0x120b4e;_0xd981da['includes'](_0x1a5125['id'])&&_0x1a5125[_0x16bb3e(0x30d)]['unitId']===this['_context']['unitId']&&this[_0x16bb3e(0x16d)]();}));}['_initResize'](){const _0x5a2bf3=_0x4ac3a4;this[_0x5a2bf3(0x29e)](_0x2b491c(this['_context'][_0x5a2bf3(0x1d8)][_0x5a2bf3(0x2cf)])['pipe'](_0x4b4063(_0x362880=>_0x362880[_0x5a2bf3(0x1eb)]===_0x57400c[_0x5a2bf3(0x238)]),_0x326fba(0x10))[_0x5a2bf3(0x1cb)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x5f06d0(_0x6cf076)),ie(0x2,_0x5f06d0(H)),ie(0x3,_0x222551),ie(0x4,_0x5f06d0(_0x418e65))],Fe);const qi=0x1,en=1.5;class tn extends _0x475d95{constructor(_0x5e12a3,_0x1c59bc){const _0x43e502=_0x4ac3a4;super(_0x5e12a3,_0x1c59bc),_(this,_0x43e502(0x1b5)),_(this,'_hovered',!0x1),_(this,_0x43e502(0x148)),_(this,_0x43e502(0x261),''),_(this,_0x43e502(0x305),'top'),_(this,_0x43e502(0x234)),(_0x1c59bc&&this[_0x43e502(0x1f5)](_0x1c59bc),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x43e502(0x1f5)]({'hovered':!0x0})),this[_0x43e502(0x2e3)][_0x43e502(0x166)](()=>this[_0x43e502(0x1f5)]({'hovered':!0x1})));}[_0x4ac3a4(0x1f5)](_0x477a4d){const _0x5dac47=_0x4ac3a4;var _0x40eb1c,_0x33bec9,_0x1d2f3a,_0x285cfd,_0x5377c3,_0x58fd5f;this[_0x5dac47(0x1b5)]=(_0x40eb1c=_0x477a4d['color'])!=null?_0x40eb1c:this[_0x5dac47(0x1b5)],this[_0x5dac47(0x181)]=(_0x33bec9=_0x477a4d[_0x5dac47(0x33e)])!=null?_0x33bec9:this[_0x5dac47(0x181)],this[_0x5dac47(0x148)]=(_0x1d2f3a=_0x477a4d['range'])!=null?_0x1d2f3a:this[_0x5dac47(0x148)],this[_0x5dac47(0x261)]=(_0x285cfd=_0x477a4d[_0x5dac47(0x1df)])!=null?_0x285cfd:this[_0x5dac47(0x261)],this[_0x5dac47(0x305)]=(_0x5377c3=_0x477a4d['labelPosition'])!=null?_0x5377c3:this[_0x5dac47(0x305)],this['_backgroundColor']=(_0x58fd5f=_0x477a4d[_0x5dac47(0x354)])!=null?_0x58fd5f:this[_0x5dac47(0x234)],this['transformByState']({'width':_0x477a4d[_0x5dac47(0x2dd)],'height':_0x477a4d[_0x5dac47(0x28d)]});}[_0x4ac3a4(0x1ca)](_0x3a0555){const _0x28dc15=_0x4ac3a4,{row:_0x4f419a,column:_0x20a56a}=_0x3a0555;if(_0x4f419a>=this[_0x28dc15(0x148)][_0x28dc15(0x327)]&&_0x4f419a<=this[_0x28dc15(0x148)][_0x28dc15(0x16b)]&&_0x20a56a>=this[_0x28dc15(0x148)]['startColumn']&&_0x20a56a<=this[_0x28dc15(0x148)]['endColumn']){this[_0x28dc15(0x1f5)]({'hovered':!0x0});return;}this[_0x28dc15(0x1f5)]({'hovered':!0x1});}[_0x4ac3a4(0x205)](_0x3feb68){return!0x1;}[_0x4ac3a4(0x22d)](_0x34c1d5){const _0x5cb274=_0x4ac3a4;_0x2cd40e[_0x5cb274(0x1ff)](_0x34c1d5,{'width':this[_0x5cb274(0x2dd)],'height':this[_0x5cb274(0x28d)],'strokeWidth':en,'stroke':this[_0x5cb274(0x1b5)],'evented':!0x1,'fill':this[_0x5cb274(0x234)]}),this[_0x5cb274(0x181)]&&(_0x34c1d5[_0x5cb274(0x1ea)](),_0x34c1d5[_0x5cb274(0x11e)](0x1,0x0,0x0,0x1,this['width'],this[_0x5cb274(0x305)]==='bottom'?0x0:-Q),ve[_0x5cb274(0x1ff)](_0x34c1d5,{'text':this['_name'],'color':this[_0x5cb274(0x1b5)]}),_0x34c1d5[_0x5cb274(0x252)]());}}var sn=Object[_0x4ac3a4(0x13a)],nn=(_0x8d9fd9,_0x47ae09,_0x11935d,_0xba4d20)=>{const _0x1a7d69=_0x4ac3a4;for(var _0x4ab0d6=_0xba4d20>0x1?void 0x0:_0xba4d20?sn(_0x47ae09,_0x11935d):_0x47ae09,_0x2bed9b=_0x8d9fd9[_0x1a7d69(0x245)]-0x1,_0x29090e;_0x2bed9b>=0x0;_0x2bed9b--)(_0x29090e=_0x8d9fd9[_0x2bed9b])&&(_0x4ab0d6=_0x29090e(_0x4ab0d6)||_0x4ab0d6);return _0x4ab0d6;},be=(_0x83a0e5,_0x5972db)=>(_0x80c4a2,_0x2ce6b4)=>_0x5972db(_0x80c4a2,_0x2ce6b4,_0x83a0e5);const rn=0x1389;let ke=class extends _0x3004d6{constructor(_0x4b6f27,_0x529736,_0x2bb6fa,_0x16bb1c){const _0x2e0f84=_0x4ac3a4;super(),_(this,_0x2e0f84(0x308),new Set()),_(this,_0x2e0f84(0x154),null),(this[_0x2e0f84(0x11f)]=_0x4b6f27,this['_sheetSkeletonManagerService']=_0x529736,this[_0x2e0f84(0x21b)]=_0x2bb6fa,this[_0x2e0f84(0x276)]=_0x16bb1c,this[_0x2e0f84(0x28a)]());}[_0x4ac3a4(0x28a)](){const _0x2d1e50=_0x4ac3a4;this[_0x2d1e50(0x319)][_0x2d1e50(0x347)][_0x2d1e50(0x1be)](_0x5ba992(this[_0x2d1e50(0x31b)]),_0x4576a(_0x24e5af=>{const _0x4869a1=_0x2d1e50;if(_0x24e5af){const _0x42513e=_0x24e5af[_0x4869a1(0x35f)];return _0x5db83e(this[_0x4869a1(0x21b)][_0x4869a1(0x236)](this[_0x4869a1(0x11f)][_0x4869a1(0x307)]),this[_0x4869a1(0x276)][_0x4869a1(0x2ef)])[_0x4869a1(0x1be)](_0x410986(([_0x42b987,_0x1868b8])=>{const _0x2b5b37=new Map();return _0x42b987['forEach']((_0x4a6f4f,_0x503b98)=>{const _0x3c7d28=_0x3ebe;if(_0x4a6f4f['sheetID']===_0x42513e){const _0x47c640={..._0x4a6f4f};_0x47c640[_0x3c7d28(0x279)]=this[_0x3c7d28(0x276)][_0x3c7d28(0x20d)](_0x4a6f4f['color']),_0x2b5b37[_0x3c7d28(0x1bd)](_0x503b98,_0x47c640);}}),{'skeleton':_0x24e5af,'cursors':_0x2b5b37};}));}return _0x3d3910({'skeleton':null,'cursors':new Map()});}))[_0x2d1e50(0x1cb)](({skeleton:_0x198321,cursors:_0x4c6c22})=>{const _0x4492da=_0x2d1e50;this[_0x4492da(0x1ac)](),_0x198321&&this['_updateCollabCursors'](_0x198321,_0x4c6c22);}),this[_0x2d1e50(0x319)][_0x2d1e50(0x347)][_0x2d1e50(0x1cb)](_0x459052=>{const _0x1d9cfb=_0x2d1e50;if(_0x459052==null)return;const {skeleton:_0x18fd04}=_0x459052,{scene:_0xde6bd6}=this[_0x1d9cfb(0x11f)];_0xde6bd6[_0x1d9cfb(0x32c)][_0x1d9cfb(0x166)](_0x4b634b(_0x3334bd=>{const _0x509fe1=_0x1d9cfb;var _0x23438d,_0x30d5f3;const {offsetX:_0x5cafd8,offsetY:_0x244e1e}=_0x3334bd,{x:_0x16fb94,y:_0x261756}=_0xde6bd6['getRelativeToViewportCoord'](_0x6cd03a[_0x509fe1(0x25f)]([_0x5cafd8,_0x244e1e])),{scaleX:_0x262778,scaleY:_0x492775}=_0xde6bd6[_0x509fe1(0x174)](),_0x8e389b=_0xde6bd6[_0x509fe1(0x1a6)](_0x2b3764[_0x509fe1(0x1a5)]),_0x1caada=_0xde6bd6['getVpScrollXYInfoByPosToVp'](_0x6cd03a[_0x509fe1(0x25f)]([_0x16fb94,_0x261756]),_0x8e389b),_0x5d7a86=_0x18fd04[_0x509fe1(0x171)](_0x5cafd8,_0x244e1e,_0x262778,_0x492775,_0x1caada);((_0x23438d=this[_0x509fe1(0x154)])==null?void 0x0:_0x23438d['column'])===_0x5d7a86[_0x509fe1(0x2d3)]&&((_0x30d5f3=this[_0x509fe1(0x154)])==null?void 0x0:_0x30d5f3[_0x509fe1(0x18e)])===_0x5d7a86[_0x509fe1(0x18e)]||this[_0x509fe1(0x308)][_0x509fe1(0x272)](_0xc3775b=>{const _0x5de788=_0x509fe1;_0xc3775b[_0x5de788(0x1ca)](_0x5d7a86);});},0x64));});}[_0x4ac3a4(0x1b7)](_0x3e2e9d,_0x58a436){const _0x5cf7dd=_0x4ac3a4;var _0x58875b;const _0x2702d4=(_0x58875b=this[_0x5cf7dd(0x319)][_0x5cf7dd(0x1bb)]())==null?void 0x0:_0x58875b[_0x5cf7dd(0x207)];if(!_0x2702d4)return;const _0x2b11ac=this[_0x5cf7dd(0x2e4)]();if(!_0x2b11ac)return;this[_0x5cf7dd(0x308)]['forEach'](_0x146b01=>{const _0xe45936=_0x5cf7dd;_0x146b01[_0xe45936(0x300)]();});const {scene:_0x51e66}=_0x2b11ac,_0x5ef46b=on(Array['from'](_0x58a436[_0x5cf7dd(0x2b6)]()))[_0x5cf7dd(0x204)](_0x42b0d1=>{const _0x4b7106=_0x5cf7dd,{color:_0x51f4a5,range:_0x433921,name:_0xe1e177,selection:_0x20e9db,sheetID:_0x4832ec}=_0x42b0d1,{startColumn:_0x43089a,startRow:_0x55b227,endColumn:_0x490d7d,endRow:_0x4dc4c8}=_0x433921,_0x988d27=_0xf00378(_0x55b227,_0x43089a,_0x51e66,_0x2702d4),_0x41e3c4=_0xf00378(_0x4dc4c8,_0x490d7d,_0x51e66,_0x2702d4),{columnHeaderHeightAndMarginTop:_0x340ab6}=_0x2702d4,{startX:_0xe6b600,startY:_0x2b2766}=_0x988d27,{endX:_0x3092f0,endY:_0x57a741}=_0x41e3c4,_0xe117c4=_0x3092f0-_0xe6b600,_0x52a45f=_0x57a741-_0x2b2766,_0xb9ae34={'labelPosition':_0x2b2766-_0x340ab6>=Q?_0x4b7106(0x20e):'bottom','sheetID':_0x4832ec,'range':_0x433921,'color':_0x51f4a5,'name':_0xe1e177,'selection':_0x20e9db,'left':_0xe6b600,'top':_0x2b2766,'width':_0xe117c4,'height':_0x52a45f,'evented':!0x1,'zIndex':rn};return new tn(_0xe1e177,_0xb9ae34);});_0x51e66[_0x5cf7dd(0x1e3)](_0x5ef46b,qi),this[_0x5cf7dd(0x308)]=new Set(_0x5ef46b);}['_removeCollabCursors'](){const _0x170f75=_0x4ac3a4;var _0x3b6b25;(_0x3b6b25=this['_cursors'])==null||_0x3b6b25[_0x170f75(0x272)](_0x8d563c=>_0x8d563c[_0x170f75(0x302)]());}[_0x4ac3a4(0x2e4)](){const _0x212825=_0x4ac3a4;return _0xcfa136(this['_context'][_0x212825(0x2d1)],this[_0x212825(0x11f)]);}};ke=nn([be(0x1,_0x5f06d0(_0x3f9887)),be(0x2,_0x5f06d0(H)),be(0x3,_0x5f06d0(_0x418e65))],ke);function on(_0x535165){const _0x389b4f=_0x4ac3a4,_0x713d63=new Map();return _0x535165[_0x389b4f(0x272)](_0x55de03=>{const _0x350281=_0x389b4f;if(_0x713d63['has'](_0x55de03['selection'])){const _0x452546=_0x713d63[_0x350281(0x2bb)](_0x55de03[_0x350281(0x34a)]);_0x452546[_0x350281(0x1df)]+=',\x20'+_0x55de03[_0x350281(0x1df)];}else _0x713d63[_0x350281(0x1bd)](_0x55de03[_0x350281(0x34a)],_0x55de03);}),Array[_0x389b4f(0x2f1)](_0x713d63[_0x389b4f(0x2b6)]());}var an=Object[_0x4ac3a4(0x13a)],cn=(_0x97b677,_0x7fd40,_0x68b37,_0x10c501)=>{for(var _0x28d3f6=_0x10c501>0x1?void 0x0:_0x10c501?an(_0x7fd40,_0x68b37):_0x7fd40,_0x141349=_0x97b677['length']-0x1,_0x5d76cb;_0x141349>=0x0;_0x141349--)(_0x5d76cb=_0x97b677[_0x141349])&&(_0x28d3f6=_0x5d76cb(_0x28d3f6)||_0x28d3f6);return _0x28d3f6;},F=(_0x381af7,_0x84694c)=>(_0x5e39f4,_0x41e827)=>_0x84694c(_0x5e39f4,_0x41e827,_0x381af7);let _e=class extends _0x2119f0{constructor(_0x3adbe0,_0x5aa4e6,_0x5ede97,_0x4ce6a7,_0x424fef,_0x18628a){const _0x2ee5a6=_0x4ac3a4;super(),this[_0x2ee5a6(0x27f)]=_0x3adbe0,this[_0x2ee5a6(0x121)]=_0x5aa4e6,this[_0x2ee5a6(0x1b2)]=_0x5ede97,this[_0x2ee5a6(0x2ba)]=_0x4ce6a7,this[_0x2ee5a6(0x26a)]=_0x424fef,this[_0x2ee5a6(0x301)]=_0x18628a,this[_0x2ee5a6(0x1a1)](),this['_initEvent']();}[_0x4ac3a4(0x1a1)](){const _0x105aac=_0x4ac3a4;this[_0x105aac(0x29e)](this[_0x105aac(0x27f)][_0x105aac(0x137)](()=>{const _0x581a=_0x105aac;if(this['_localCacheService'][_0x581a(0x239)]['size'])return this[_0x581a(0x301)]['t'](_0x581a(0x277));}));}[_0x4ac3a4(0x289)](){const _0x1fa29e=_0x4ac3a4;this[_0x1fa29e(0x29e)](this[_0x1fa29e(0x1b2)][_0x1fa29e(0x244)][_0x1fa29e(0x1cb)](_0x3c803a=>{const _0x4d2699=_0x1fa29e;_0x3c803a['id']===_0x1654c3[_0x4d2699(0x1a3)]&&this[_0x4d2699(0x2ba)]['show']({'type':_0x2d3519[_0x4d2699(0x165)],'content':this[_0x4d2699(0x301)]['t'](_0x4d2699(0x285))}),_0x3c803a['id']===_0x1654c3['CLOSE_ROOM']&&this[_0x4d2699(0x2ba)]['show']({'type':_0x2d3519[_0x4d2699(0x165)],'content':this[_0x4d2699(0x301)]['t']('collaboration.closeRoom')}),_0x3c803a['id']===_0x1654c3[_0x4d2699(0x120)]&&this[_0x4d2699(0x26a)][_0x4d2699(0x27e)]({'title':this[_0x4d2699(0x301)]['t']('permission.title'),'content':this[_0x4d2699(0x301)]['t'](_0x4d2699(0x159)),'type':_0x4d2699(0x1e2),'duration':0x0}),_0x3c803a['id']===_0x1654c3[_0x4d2699(0x31e)]&&this['_messageService']['show']({'type':_0x2d3519[_0x4d2699(0x259)],'content':this[_0x4d2699(0x301)]['t']('collaboration.closeRoom')+'('+_0x3c803a[_0x4d2699(0x32e)]+')'}),_0x3c803a['id']===_0x1654c3[_0x4d2699(0x291)]&&this[_0x4d2699(0x2ba)][_0x4d2699(0x27e)]({'type':_0x2d3519[_0x4d2699(0x165)],'content':this[_0x4d2699(0x301)]['t'](_0x3c803a['data']||'')}),_0x3c803a['id']===_0x1654c3[_0x4d2699(0x348)]&&this[_0x4d2699(0x2ba)][_0x4d2699(0x27e)]({'type':_0x2d3519['Warning'],'content':this[_0x4d2699(0x301)]['t']('session.will-retry')}),_0x3c803a['id']===_0x1654c3[_0x4d2699(0x2a9)]&&this[_0x4d2699(0x2ba)][_0x4d2699(0x27e)]({'type':_0x2d3519[_0x4d2699(0x259)],'content':this[_0x4d2699(0x301)]['t'](_0x4d2699(0x1e6))}),_0x3c803a['id']===_0x1654c3['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4d2699(0x2ba)]['show']({'type':_0x2d3519[_0x4d2699(0x259)],'content':this[_0x4d2699(0x301)]['t'](_0x4d2699(0x1ec))});}));}};_e=cn([F(0x0,_0x1bf845),F(0x1,_0x3a9230),F(0x2,_0x5f06d0(_0x31aad7)),F(0x3,_0x56b023),F(0x4,_0x3b98d2),F(0x5,_0x5f06d0(_0x55ece3))],_e);var _n=Object[_0x4ac3a4(0x13a)],ln=(_0x5d2adc,_0x2fdc5c,_0x39369a,_0x18da67)=>{const _0x3e0744=_0x4ac3a4;for(var _0x5761d9=_0x18da67>0x1?void 0x0:_0x18da67?_n(_0x2fdc5c,_0x39369a):_0x2fdc5c,_0x251a13=_0x5d2adc[_0x3e0744(0x245)]-0x1,_0xf9942e;_0x251a13>=0x0;_0x251a13--)(_0xf9942e=_0x5d2adc[_0x251a13])&&(_0x5761d9=_0xf9942e(_0x5761d9)||_0x5761d9);return _0x5761d9;},ne=(_0x94ff44,_0x35b7b7)=>(_0x1bbb20,_0x301fa0)=>_0x35b7b7(_0x1bbb20,_0x301fa0,_0x94ff44);let le=class extends _0x2119f0{constructor(_0x5996ff,_0x1480eb,_0x3dccdf,_0x31db7b){const _0x35b32d=_0x4ac3a4;super(),_(this,_0x35b32d(0x248)),(this[_0x35b32d(0x357)]=_0x5996ff,this[_0x35b32d(0x2ad)]=_0x1480eb,this[_0x35b32d(0x312)]=_0x3dccdf,this[_0x35b32d(0x26f)]=_0x31db7b,this[_0x35b32d(0x28a)]());}[_0x4ac3a4(0x28a)](){const _0x1e3c74=_0x4ac3a4;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x1e3c74(0x1f3)]();}['_initUserListener'](){const _0x2fb61b=_0x4ac3a4;this[_0x2fb61b(0x29e)](this['_collaborationSessionService'][_0x2fb61b(0x351)][_0x2fb61b(0x1cb)](_0x156eb0=>{const _0x1f8037=_0x2fb61b;this[_0x1f8037(0x248)]=_0x156eb0==null?void 0x0:_0x156eb0[_0x1f8037(0x164)];}));}['_initWindowErrorListener'](){const _0x583cae=_0x4ac3a4,_0x11b646=_0x3ce4c9=>{const _0x49d0d0=_0x3ebe;var _0x81cf42;this['_uploadLog'](_0x49d0d0(0x1e2),_0x49d0d0(0x253)+_0x3ce4c9[_0x49d0d0(0x2a0)]+'\x20at\x20'+_0x3ce4c9[_0x49d0d0(0x31a)]+':'+_0x3ce4c9[_0x49d0d0(0x1c3)]+':'+_0x3ce4c9[_0x49d0d0(0x1a2)]+'\x0a'+(((_0x81cf42=_0x3ce4c9['error'])==null?void 0x0:_0x81cf42['stack'])||''));};window['addEventListener'](_0x583cae(0x1e2),_0x11b646),this[_0x583cae(0x29e)](()=>{const _0x3fa4a4=_0x583cae;window[_0x3fa4a4(0x15a)](_0x3fa4a4(0x1e2),_0x11b646);});}[_0x4ac3a4(0x266)](){const _0x2d7813=_0x4ac3a4,_0x5e95f4=_0x353cdc=>{const _0x3bc6fa=_0x3ebe;this[_0x3bc6fa(0x2ea)](_0x3bc6fa(0x1e2),_0x3bc6fa(0x32f)+_0x353cdc[_0x3bc6fa(0x235)]);};window[_0x2d7813(0x214)](_0x2d7813(0x28f),_0x5e95f4),this[_0x2d7813(0x29e)](()=>{const _0x5d53aa=_0x2d7813;window[_0x5d53aa(0x15a)](_0x5d53aa(0x28f),_0x5e95f4);});}[_0x4ac3a4(0x2b5)](){const _0x354fbd=_0x4ac3a4,_0x34c96f=this[_0x354fbd(0x312)][_0x354fbd(0x1e2)][_0x354fbd(0x2b4)](this[_0x354fbd(0x312)]);this[_0x354fbd(0x312)]['error']=(..._0x43111c)=>{const _0x2fcfd6=_0x354fbd,_0x41fea7=_0x43111c['map'](_0x5cc9c0=>_0x5cc9c0 instanceof Error?_0x5cc9c0[_0x2fcfd6(0x2a0)]+'\x0a'+_0x5cc9c0[_0x2fcfd6(0x1a9)]:String(_0x5cc9c0))[_0x2fcfd6(0x2ab)]('\x20');this[_0x2fcfd6(0x2ea)](_0x2fcfd6(0x1e2),'[LogService\x20Error]:\x20'+_0x41fea7),_0x34c96f(..._0x43111c);},this[_0x354fbd(0x29e)](()=>{const _0x48bd32=_0x354fbd;this[_0x48bd32(0x312)][_0x48bd32(0x1e2)]=_0x34c96f;});}[_0x4ac3a4(0x2ea)](_0x168f41,_0x477d5c){const _0x5020f4=_0x4ac3a4;try{const _0x20e838={'userId':this[_0x5020f4(0x248)],'logLabel':_0x168f41,'content':_0x477d5c};this['_httpService'][_0x5020f4(0x2f5)]('/universer-api/frontend/logs',{'body':_0x20e838})[_0x5020f4(0x18a)](()=>{});}catch{}}};le=ln([ne(0x0,_0x5f06d0(_0x1d4bde)),ne(0x1,_0x5f06d0(_0x593501)),ne(0x2,_0x87d10f),ne(0x3,_0x5f06d0(_0x1965e1))],le);const hn=_0x4ac3a4(0x133),_t={};var un=Object[_0x4ac3a4(0x13a)],dn=(_0x397b78,_0xb838ed,_0x60c567,_0x30b249)=>{const _0x155718=_0x4ac3a4;for(var _0x3f2431=_0x30b249>0x1?void 0x0:_0x30b249?un(_0xb838ed,_0x60c567):_0xb838ed,_0x1e1b4b=_0x397b78[_0x155718(0x245)]-0x1,_0x19da82;_0x1e1b4b>=0x0;_0x1e1b4b--)(_0x19da82=_0x397b78[_0x1e1b4b])&&(_0x3f2431=_0x19da82(_0x3f2431)||_0x3f2431);return _0x3f2431;},lt=(_0x12a999,_0x57aee6)=>(_0x49595d,_0x351009)=>_0x57aee6(_0x49595d,_0x351009,_0x12a999);let he=class{constructor(_0x3c6db5,_0x407c3b){const _0x21074e=_0x4ac3a4;this[_0x21074e(0x17c)]=_0x3c6db5,this[_0x21074e(0x1b9)]=_0x407c3b;}[_0x4ac3a4(0x1ee)](_0x20dacd){this['_transformUndoRedoStack'](_0x20dacd),this['_transformPreviousActiveRange'](_0x20dacd);}[_0x4ac3a4(0x294)](_0x1951f4){const _0xb793c3=_0x4ac3a4,{unitID:_0x43c573}=_0x1951f4,_0x31395b=this['_renderManagerService'][_0xb793c3(0x322)](_0x43c573)[_0xb793c3(0x150)](_0x1ec03d),{redoCache:_0x5e7cbf}=_0x31395b['getUndoRedoMutationParamsCache']();if(_0x5e7cbf[_0xb793c3(0x245)]===0x0)return _0x1951f4;let _0x49fd62=_0x133bef[_0xb793c3(0x199)](_0x1951f4[_0xb793c3(0x128)][0x0]);for(let _0x5c01f4=0x0;_0x5c01f4<_0x5e7cbf['length'];_0x5c01f4++){const _0x55892b={'id':'doc.mutation.rich-text-editing','params':{..._0x5e7cbf[_0x5c01f4]}},_0x4570db=this[_0xb793c3(0x17c)][_0xb793c3(0x35e)](_0x49fd62,_0x55892b,!0x1);if(_0x747370(_0x4570db))throw _0x4570db[_0xb793c3(0x1e2)];_0x49fd62=_0x4570db[_0xb793c3(0x185)];}return{..._0x133bef[_0xb793c3(0x199)](_0x1951f4),'mutations':[_0x49fd62]};}[_0x4ac3a4(0x35b)](_0xf17336){const _0x57e525=_0x4ac3a4,{unitID:_0x93c34b}=_0xf17336,_0x3df2b2=this['_renderManagerService'][_0x57e525(0x322)](_0x93c34b)[_0x57e525(0x150)](_0x1ec03d),{undoCache:_0x187c05,redoCache:_0x38d2d5}=_0x3df2b2['getUndoRedoMutationParamsCache']();if(_0x187c05[_0x57e525(0x245)]===0x0||_0x38d2d5[_0x57e525(0x245)]===0x0)return;const _0x50446d=[],_0x431bc6=[];let _0x9405ac=_0x133bef[_0x57e525(0x199)](_0xf17336[_0x57e525(0x128)][0x0]),_0x5be7b0=_0x133bef[_0x57e525(0x199)](_0xf17336['mutations'][0x0]);for(let _0x490b2b=_0x187c05[_0x57e525(0x245)]-0x1;_0x490b2b>=0x0;_0x490b2b--){const _0x3fd90b={'id':_0x57e525(0x13c),'params':{..._0x187c05[_0x490b2b]}},_0x826ff6={'id':'doc.mutation.rich-text-editing','params':{..._0x38d2d5[_0x490b2b]}},_0x3977a9=this[_0x57e525(0x17c)][_0x57e525(0x35e)](_0x9405ac,_0x3fd90b,!0x1),_0x557051=this[_0x57e525(0x17c)][_0x57e525(0x35e)](_0x5be7b0,_0x826ff6,!0x1);if(_0x747370(_0x3977a9))throw _0x3977a9[_0x57e525(0x1e2)];if(_0x747370(_0x557051))throw _0x557051['error'];_0x50446d[_0x57e525(0x2f7)](_0x3977a9['m2Prime'][_0x57e525(0x30d)]),_0x431bc6[_0x57e525(0x2f7)](_0x557051[_0x57e525(0x12e)][_0x57e525(0x30d)]),_0x9405ac=_0x3977a9[_0x57e525(0x185)],_0x5be7b0=_0x557051[_0x57e525(0x185)];}_0x3df2b2[_0x57e525(0x1f0)]({'undoCache':_0x50446d,'redoCache':_0x431bc6});}[_0x4ac3a4(0x2ce)](_0x59c4db){const _0x278cc7=_0x4ac3a4,{unitID:_0x36ee19}=_0x59c4db,_0xaf939f=this[_0x278cc7(0x1b9)][_0x278cc7(0x322)](_0x36ee19)[_0x278cc7(0x150)](_0x1ec03d),_0x10c5e9=_0xaf939f[_0x278cc7(0x243)]();if(_0x10c5e9==null)return;const _0x2e7c65=[{'id':_0x278cc7(0x13c),'params':{'unitId':_0x59c4db['unitID'],'actions':null,'textRanges':[_0x10c5e9]}}],_0x125686=this[_0x278cc7(0x17c)][_0x278cc7(0x158)](_0x59c4db,_0x2e7c65);if(!_0x18535b(_0x125686))throw _0x125686[_0x278cc7(0x1e2)];const _0x242fa7=_0x125686['m2Prime'][0x0][_0x278cc7(0x30d)][_0x278cc7(0x19b)];Array[_0x278cc7(0x1fd)](_0x242fa7)&&_0x242fa7[_0x278cc7(0x245)]&&_0xaf939f['setActiveRange'](_0x242fa7[0x0]);}};he=dn([lt(0x0,_0x190171),lt(0x1,_0x2004a5)],he);var Sn=Object[_0x4ac3a4(0x13a)],In=(_0x38cf29,_0x368aee,_0x2f6539,_0x121422)=>{for(var _0x222200=_0x121422>0x1?void 0x0:_0x121422?Sn(_0x368aee,_0x2f6539):_0x368aee,_0x833d11=_0x38cf29['length']-0x1,_0x5a30ef;_0x833d11>=0x0;_0x833d11--)(_0x5a30ef=_0x38cf29[_0x833d11])&&(_0x222200=_0x5a30ef(_0x222200)||_0x222200);return _0x222200;},Le=(_0xcfd46d,_0xfdc670)=>(_0xe38b55,_0x46a077)=>_0xfdc670(_0xe38b55,_0x46a077,_0xcfd46d);let ue=class{constructor(_0x11927d,_0x1bfeea,_0x4cf055){const _0x274991=_0x4ac3a4;this['_injector']=_0x11927d,this['_transformService']=_0x1bfeea,this[_0x274991(0x1c2)]=_0x4cf055;}[_0x4ac3a4(0x2de)](_0x3308ef){const _0x3e5673=_0x4ac3a4;this[_0x3e5673(0x2a6)](_0x3308ef);}[_0x4ac3a4(0x294)](_0x3e0c04){const _0x18f327=_0x4ac3a4,{unitID:_0x1ddcb7}=_0x3e0c04,{collaboration:_0x375b40}=this[_0x18f327(0x1c2)][_0x18f327(0x134)](_0x1ddcb7);if(_0x375b40[_0x18f327(0x245)]===0x0)return _0x3e0c04;let _0x10e732=_0x133bef[_0x18f327(0x199)](_0x3e0c04['mutations'][0x0]);for(let _0x57581b=0x0;_0x57581b<_0x375b40[_0x18f327(0x245)];_0x57581b++){const _0x4ef50c={'id':_0x18f327(0x13c),'params':{'unitId':_0x375b40[_0x57581b][_0x18f327(0x307)],..._0x375b40[_0x57581b][_0x18f327(0x2c2)]}},_0x20de23=this[_0x18f327(0x17c)]['transformMutation'](_0x10e732,_0x4ef50c,!0x1);if(_0x747370(_0x20de23))throw _0x20de23[_0x18f327(0x1e2)];_0x10e732=_0x20de23[_0x18f327(0x185)];}return{..._0x133bef['deepClone'](_0x3e0c04),'mutations':[_0x10e732]};}[_0x4ac3a4(0x2a6)](_0x3cb969){const _0x553e72=_0x4ac3a4,{unitID:_0x1ed0ab}=_0x3cb969,{history:_0x3cf2f9,collaboration:_0x1f5c07}=this[_0x553e72(0x1c2)]['getStateCache'](_0x1ed0ab);if(_0x3cf2f9['length']===0x0&&_0x1f5c07[_0x553e72(0x245)]===0x0)return;const _0x78757d=[],_0xe32e02=[];let _0x5b202d=_0x133bef[_0x553e72(0x199)](_0x3cb969[_0x553e72(0x128)][0x0]),_0x27848c=_0x133bef[_0x553e72(0x199)](_0x3cb969[_0x553e72(0x128)][0x0]);for(let _0x481faa=_0x3cf2f9[_0x553e72(0x245)]-0x1;_0x481faa>=0x0;_0x481faa--){const _0x5d34f1={'id':_0x553e72(0x13c),'params':{'unitId':_0x3cf2f9[_0x481faa][_0x553e72(0x307)],..._0x3cf2f9[_0x481faa][_0x553e72(0x32d)]}},_0x4b9326={'id':_0x553e72(0x13c),'params':{'unitId':_0x3cf2f9[_0x481faa][_0x553e72(0x307)],..._0x3cf2f9[_0x481faa][_0x553e72(0x2c2)]}},_0x18af72=this[_0x553e72(0x17c)][_0x553e72(0x35e)](_0x5b202d,_0x5d34f1,!0x1),_0x19ec96=this['_transformService']['transformMutation'](_0x27848c,_0x4b9326,!0x1);if(_0x747370(_0x18af72))throw _0x18af72['error'];if(_0x747370(_0x19ec96))throw _0x19ec96[_0x553e72(0x1e2)];_0x78757d['unshift']({..._0x3cf2f9[_0x481faa],'undoState':_0x18af72[_0x553e72(0x12e)][_0x553e72(0x30d)],'redoState':_0x19ec96[_0x553e72(0x12e)][_0x553e72(0x30d)]}),_0x5b202d=_0x18af72['m1Prime'],_0x27848c=_0x19ec96[_0x553e72(0x185)];}_0x5b202d=_0x133bef['deepClone'](_0x3cb969[_0x553e72(0x128)][0x0]),_0x27848c=_0x133bef[_0x553e72(0x199)](_0x3cb969['mutations'][0x0]);for(let _0xf581e7=_0x1f5c07[_0x553e72(0x245)]-0x1;_0xf581e7>=0x0;_0xf581e7--){const _0x558c02={'id':_0x553e72(0x13c),'params':{'unitId':_0x1f5c07[_0xf581e7]['unitId'],..._0x1f5c07[_0xf581e7][_0x553e72(0x32d)]}},_0x25675d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1f5c07[_0xf581e7][_0x553e72(0x307)],..._0x1f5c07[_0xf581e7][_0x553e72(0x2c2)]}},_0x34561b=this[_0x553e72(0x17c)][_0x553e72(0x35e)](_0x5b202d,_0x558c02,!0x1),_0x35d6b6=this[_0x553e72(0x17c)][_0x553e72(0x35e)](_0x27848c,_0x25675d,!0x1);if(_0x747370(_0x34561b))throw _0x34561b[_0x553e72(0x1e2)];if(_0x747370(_0x35d6b6))throw _0x35d6b6[_0x553e72(0x1e2)];_0xe32e02[_0x553e72(0x2f7)]({..._0x1f5c07[_0xf581e7],'undoState':_0x34561b[_0x553e72(0x12e)][_0x553e72(0x30d)],'redoState':_0x35d6b6[_0x553e72(0x12e)]['params']}),_0x5b202d=_0x34561b['m1Prime'],_0x27848c=_0x35d6b6[_0x553e72(0x185)];}this['_docStateChangeManagerService']['setStateCache'](_0x1ed0ab,{'history':_0x78757d,'collaboration':_0xe32e02});}};ue=In([Le(0x0,_0x5f06d0(_0x1d4bde)),Le(0x1,_0x190171),Le(0x2,_0x5f06d0(_0x2c2e66))],ue);var mn=Object[_0x4ac3a4(0x13a)],fn=(_0x4d3939,_0x2261c4,_0x3bda52,_0x431144)=>{const _0x4aa32d=_0x4ac3a4;for(var _0x3d9277=_0x431144>0x1?void 0x0:_0x431144?mn(_0x2261c4,_0x3bda52):_0x2261c4,_0x3dae24=_0x4d3939[_0x4aa32d(0x245)]-0x1,_0x4a5efc;_0x3dae24>=0x0;_0x3dae24--)(_0x4a5efc=_0x4d3939[_0x3dae24])&&(_0x3d9277=_0x4a5efc(_0x3d9277)||_0x3d9277);return _0x3d9277;},ht=(_0x4552b7,_0x5de39f)=>(_0x2d2c11,_0x4513a4)=>_0x5de39f(_0x2d2c11,_0x4513a4,_0x4552b7);let de=class{constructor(_0x203c02,_0x54e6b8){const _0x101e32=_0x4ac3a4;this['_injector']=_0x203c02,this[_0x101e32(0x17c)]=_0x54e6b8;}[_0x4ac3a4(0x1b1)](_0x3058a3){const _0x4541ee=_0x4ac3a4;var _0x5a9974;const _0x486d61=this[_0x4541ee(0x357)]['get'](_0x474edc),_0x2211e4=(_0x5a9974=_0x486d61[_0x4541ee(0x28e)]())!=null?_0x5a9974:[];if(_0x2211e4[_0x4541ee(0x245)]===0x0)return;const _0x4e55a7=_0x3058a3['unitID'],_0x78c2aa=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e55a7,'actions':null,'textRanges':_0x2211e4}}],_0xace9b4=this[_0x4541ee(0x17c)][_0x4541ee(0x158)](_0x3058a3,_0x78c2aa);if(!_0x18535b(_0xace9b4))throw _0xace9b4[_0x4541ee(0x1e2)];const _0xba0a3c=_0xace9b4[_0x4541ee(0x12e)][0x0][_0x4541ee(0x30d)][_0x4541ee(0x19b)];Array[_0x4541ee(0x1fd)](_0xba0a3c)&&_0xba0a3c[_0x4541ee(0x245)]&&_0x486d61[_0x4541ee(0x229)](_0xba0a3c,{'unitId':_0x4e55a7,'subUnitId':_0x4e55a7},!0x1);}};de=fn([ht(0x0,_0x5f06d0(_0x1d4bde)),ht(0x1,_0x190171)],de);var gn=Object[_0x4ac3a4(0x13a)],En=(_0x428fa4,_0x17d239,_0x8e0d2f,_0x3d1224)=>{const _0x2f3e9f=_0x4ac3a4;for(var _0x4556e1=_0x3d1224>0x1?void 0x0:_0x3d1224?gn(_0x17d239,_0x8e0d2f):_0x17d239,_0x32b053=_0x428fa4[_0x2f3e9f(0x245)]-0x1,_0x110ea5;_0x32b053>=0x0;_0x32b053--)(_0x110ea5=_0x428fa4[_0x32b053])&&(_0x4556e1=_0x110ea5(_0x4556e1)||_0x4556e1);return _0x4556e1;},U=(_0x56589f,_0x23334c)=>(_0x17deb2,_0x5ace29)=>_0x23334c(_0x17deb2,_0x5ace29,_0x56589f);let Se=class extends _0x2119f0{constructor(_0x5d1d65,_0x42db6d,_0x5304e8,_0x751d25,_0x283ed1,_0x162ece,_0x1b55ee,_0x5f0b63){const _0x4254c9=_0x4ac3a4;super(),_(this,_0x4254c9(0x2ae),new _0x1d7743(_0x259f40[_0x4254c9(0x359)])),(this[_0x4254c9(0x1c2)]=_0x5d1d65,this[_0x4254c9(0x35d)]=_0x42db6d,this[_0x4254c9(0x264)]=_0x5304e8,this[_0x4254c9(0x35c)]=_0x751d25,this['_docTransformSelectionsService']=_0x283ed1,this[_0x4254c9(0x273)]=_0x162ece,this[_0x4254c9(0x2ba)]=_0x1b55ee,this[_0x4254c9(0x301)]=_0x5f0b63,this[_0x4254c9(0x260)]());}['_initEntityListener'](){const _0x44d4b2=_0x4ac3a4;this[_0x44d4b2(0x29e)](this[_0x44d4b2(0x35d)][_0x44d4b2(0x1f8)][_0x44d4b2(0x1cb)](_0x464bc1=>{const _0x5c5520=_0x44d4b2,_0x7482e8=this['_docStateChangeManagerService'][_0x5c5520(0x23b)]['subscribe'](_0x3e1c40=>{const _0x4a7a8b=_0x5c5520;if(_0x3e1c40==null)return;const {unitId:_0x281841,redoState:_0x23445a,commandId:_0x458a9f}=_0x3e1c40;if(_0x281841!==_0x464bc1[_0x4a7a8b(0x1ae)])return;const _0x485653={'id':_0x458a9f,'type':_0x1193c0[_0x4a7a8b(0x123)],'params':{'unitId':_0x281841,'actions':_0x23445a['actions'],'textRanges':null}};_0x464bc1['onLocalMutation'](_0x485653);});if(_0x464bc1[_0x5c5520(0x29e)](_0x7482e8),_0x464bc1 instanceof _0x1a9dac){const _0x30a7ef={'onTransformIME':_0x1eca49=>this[_0x5c5520(0x264)][_0x5c5520(0x1ee)](_0x1eca49),'onTransformState':_0x5d28b9=>this[_0x5c5520(0x35c)][_0x5c5520(0x2de)](_0x5d28b9),'onTransformSelections':_0x1ed2d3=>this[_0x5c5520(0x2c9)]['transformSelections'](_0x1ed2d3),'onSyncEditingCollabCursor':_0x382e0f=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x382e0f),'onTransformRemoteChangesetByIMECache':_0x52961=>this['_docTransformIMECacheService'][_0x5c5520(0x294)](_0x52961),'onTransformRemoteChangesetByStateCache':_0x11cda5=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x11cda5)};_0x464bc1[_0x5c5520(0x33f)](_0x30a7ef);}}));}};Se=En([U(0x0,_0x5f06d0(_0x2c2e66)),U(0x1,_0x5f06d0(_0x333941)),U(0x2,_0x5f06d0(he)),U(0x3,_0x5f06d0(ue)),U(0x4,_0x5f06d0(de)),U(0x5,_0x5f06d0(ze)),U(0x6,_0x56b023),U(0x7,_0x5f06d0(_0x55ece3))],Se);var Z=(_0x4b48b9=>(_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x125)]=0x0]='UNDEFINED',_0x4b48b9[_0x4b48b9['OK']=0x1]='OK',_0x4b48b9[_0x4b48b9['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x120)]=0x3]=_0x4ac3a4(0x120),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x196)]=0x4]=_0x4ac3a4(0x196),_0x4b48b9[_0x4b48b9['UNAUTHENTICATED']=0x5]=_0x4ac3a4(0x1a0),_0x4b48b9[_0x4b48b9['ALREADY_EXISTS']=0x6]=_0x4ac3a4(0x355),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x26e)]=0x7]=_0x4ac3a4(0x26e),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2dc)]=0x8]=_0x4ac3a4(0x2dc),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x16f)]=0x9]=_0x4ac3a4(0x16f),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x226)]=0xa]=_0x4ac3a4(0x226),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x18f)]=0xb]=_0x4ac3a4(0x18f),_0x4b48b9[_0x4b48b9['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4ac3a4(0x2e6),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x32a)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x4b48b9[_0x4b48b9['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x4ac3a4(0x2bf),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x323)]=0xf]=_0x4ac3a4(0x323),_0x4b48b9[_0x4b48b9['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x4ac3a4(0x233),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x180)]=0x64]=_0x4ac3a4(0x180),_0x4b48b9[_0x4b48b9['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x13d)]=0xc9]=_0x4ac3a4(0x13d),_0x4b48b9[_0x4b48b9['USER_IS_ANONYMOUS']=0xca]=_0x4ac3a4(0x2d8),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2bd)]=0x1389]=_0x4ac3a4(0x2bd),_0x4b48b9[_0x4b48b9['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4ac3a4(0x218),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x227)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x213)]=0x1773]=_0x4ac3a4(0x213),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2d6)]=0x1b59]=_0x4ac3a4(0x2d6),_0x4b48b9[_0x4b48b9['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4ac3a4(0x136),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2a8)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x1fa)]=0x1b5c]=_0x4ac3a4(0x1fa),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x325)]=0x1b5d]='APPLY_DUPLICATED',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x23d)]=0x1f41]=_0x4ac3a4(0x23d),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x304)]=0x2329]=_0x4ac3a4(0x304),_0x4b48b9[_0x4b48b9['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x4ac3a4(0x358),_0x4b48b9[_0x4b48b9['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4ac3a4(0x152),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x1a4)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x25a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2fa)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x24a)]=0x2712]=_0x4ac3a4(0x24a),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2d4)]=0x2713]=_0x4ac3a4(0x2d4),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x194)]=0x2714]=_0x4ac3a4(0x194),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2c8)]=0x271a]=_0x4ac3a4(0x2c8),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x15d)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x27b)]=0x271c]=_0x4ac3a4(0x27b),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x187)]=0x271d]=_0x4ac3a4(0x187),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x262)]=0x271e]=_0x4ac3a4(0x262),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x1f1)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x346)]=0x2720]=_0x4ac3a4(0x346),_0x4b48b9[_0x4b48b9['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4ac3a4(0x200),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x352)]=0x2ee1]=_0x4ac3a4(0x352),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x23f)]=0x2ee2]=_0x4ac3a4(0x23f),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x219)]=0x2ee3]=_0x4ac3a4(0x219),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x278)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x1af)]=0x2ee5]=_0x4ac3a4(0x1af),_0x4b48b9[_0x4b48b9['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x4ac3a4(0x306),_0x4b48b9[_0x4b48b9['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x162)]=0x32cb]=_0x4ac3a4(0x162),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x17f)]=0x36b1]=_0x4ac3a4(0x17f),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x15c)]=0x36b2]=_0x4ac3a4(0x15c),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2f8)]=0x36b3]=_0x4ac3a4(0x2f8),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x179)]=0x36b4]=_0x4ac3a4(0x179),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x175)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x1e8)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x31d)]=0x36b7]=_0x4ac3a4(0x31d),_0x4b48b9[_0x4b48b9['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x4ac3a4(0x12a),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x23e)]=0x3715]=_0x4ac3a4(0x23e),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x1d4)]=0x3716]=_0x4ac3a4(0x1d4),_0x4b48b9[_0x4b48b9['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x4ac3a4(0x188),_0x4b48b9[_0x4b48b9['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2ac)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x26c)]=0x3a9a]=_0x4ac3a4(0x26c),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x257)]=0x3a9b]=_0x4ac3a4(0x257),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x25c)]=0x3a9c]=_0x4ac3a4(0x25c),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2f3)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4b48b9[_0x4b48b9['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x15f)]=0x3a9f]=_0x4ac3a4(0x15f),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x30b)]=0x3e81]=_0x4ac3a4(0x30b),_0x4b48b9[_0x4b48b9[_0x4ac3a4(0x2e0)]=-0x1]=_0x4ac3a4(0x2e0),_0x4b48b9))(Z||{});function vn(_0x78c09a){const _0x3039e5=_0x4ac3a4;var _0x14b906,_0x36d268;const _0x2b9492=(_0x14b906=_0x78c09a['stageInfo'])==null?void 0x0:_0x14b906[_0x3039e5(0x1b3)],_0x556655=((_0x36d268=_0x78c09a[_0x3039e5(0x2ec)])==null?void 0x0:_0x36d268[_0x3039e5(0x216)])||0x0;return _0x2b9492===_0x5d4b67[_0x3039e5(0x1b8)]&&_0x556655>0x0;}function pn(_0x4d641b){const _0x3eaeaa=_0x4ac3a4;return _0x4d641b[_0x3eaeaa(0x309)]===_0x4949e9[_0x3eaeaa(0x215)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x5737b8,_0xa55aa3,_0xf4ab79,_0x27aefa)=>{const _0x572476=_0x4ac3a4;for(var _0x370dac=_0x27aefa>0x1?void 0x0:_0x27aefa?On(_0xa55aa3,_0xf4ab79):_0xa55aa3,_0x538158=_0x5737b8[_0x572476(0x245)]-0x1,_0x33f5c2;_0x538158>=0x0;_0x538158--)(_0x33f5c2=_0x5737b8[_0x538158])&&(_0x370dac=_0x33f5c2(_0x370dac)||_0x370dac);return _0x370dac;},P=(_0x2407ba,_0x45b683)=>(_0x509f85,_0x12e2fe)=>_0x45b683(_0x509f85,_0x12e2fe,_0x2407ba);const Cn=_0x4ac3a4(0x1a8),Rn='/universer-api/license/formula/limit/start',Dn=_0x4ac3a4(0x31c);let Ie=class extends _0x2119f0{constructor(_0x2dd768,_0x4b6311,_0x1a7fe5,_0x5c2d66,_0x47996f,_0x11e8d2,_0x45b133){const _0x8b4a23=_0x4ac3a4;super(),_(this,_0x8b4a23(0x271),null),_(this,_0x8b4a23(0x1c8),0x0),_(this,_0x8b4a23(0x1db),0x0),_(this,_0x8b4a23(0x14b),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x8b4a23(0x2ba)]=_0x2dd768,this[_0x8b4a23(0x155)]=_0x4b6311,this['_configService']=_0x1a7fe5,this[_0x8b4a23(0x2ad)]=_0x5c2d66,this['_univerInstanceService']=_0x47996f,this[_0x8b4a23(0x312)]=_0x11e8d2,this[_0x8b4a23(0x301)]=_0x45b133,this['_initCommandInterceptor']());}[_0x4ac3a4(0x1cf)](){const _0x322ebb=_0x4ac3a4;this['disposeWithMe'](this[_0x322ebb(0x155)]['beforeCommandExecuted']((_0x8b91a,_0x508632)=>{const _0x5c37e5=_0x322ebb;var _0x5b50cd;if(_0x8b91a['id']!==_0x3494f4['id'])return;const _0x45f5d7=_0x8b91a[_0x5c37e5(0x30d)];if(!this[_0x5c37e5(0x30a)]((_0x5b50cd=_0x45f5d7[_0x5c37e5(0x167)])!=null?_0x5b50cd:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x8b91a,_0x508632),this['_showGuardMessage'](),new _0x3ae488();})),this['disposeWithMe'](this[_0x322ebb(0x155)][_0x322ebb(0x2b8)]((_0x4c9be1,_0x345ad)=>{const _0x475651=_0x322ebb;if(_0x4c9be1['id']!==_0x257e21['id'])return;const _0x37088d=_0x4c9be1['params'];if(vn(_0x37088d)){const _0x207eff=_0x40f13c();this[_0x475651(0x14b)][_0x475651(0x15e)](_0x207eff),this['_startCalculationLimit'](_0x207eff);}else{if(pn(_0x37088d)&&this['_taskIds'][_0x475651(0x245)]>0x0){const _0x282a4c=this['_taskIds'][_0x475651(0x14f)]();this[_0x475651(0x344)](_0x282a4c);}}}));}[_0x4ac3a4(0x302)](){const _0x567105=_0x4ac3a4;super['dispose'](),this[_0x567105(0x1e4)](),this[_0x567105(0x14b)]=[],this[_0x567105(0x1db)]=0x0,this[_0x567105(0x1c8)]=0x0,this[_0x567105(0x135)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x48dadd,_0x2d2bc8){const _0x301253=_0x4ac3a4;for(let _0x149245=0x0;_0x149245<0x1e;_0x149245++)try{if(await this[_0x301253(0x176)](),this[_0x301253(0x2a1)]()){this[_0x301253(0x195)](_0x48dadd,_0x2d2bc8),this[_0x301253(0x2ba)][_0x301253(0x27e)]({'content':this[_0x301253(0x301)]['t']('formula.calculation.started'),'type':_0x2d3519[_0x301253(0x163)]});return;}await new Promise(_0x122876=>{const _0x5b4663=_0x301253;this['_pollingInterval']=window[_0x5b4663(0x1f4)](_0x122876,0x3e8);});}catch(_0x3aa9f9){this[_0x301253(0x312)][_0x301253(0x1e2)](_0x3aa9f9);}this[_0x301253(0x2ba)]['show']({'content':this[_0x301253(0x301)]['t'](_0x301253(0x30c)),'type':_0x2d3519[_0x301253(0x259)]});}[_0x4ac3a4(0x195)](_0x11fcdd,_0x2433fb){const _0x330958=_0x4ac3a4;try{this['_commandService'][_0x330958(0x338)](_0x11fcdd['id'],_0x11fcdd['params'],_0x2433fb);}catch(_0x13c262){this[_0x330958(0x312)]['error'](_0x13c262);}}[_0x4ac3a4(0x178)](_0xf63f46,_0x2d95b8){const _0x594106=_0x4ac3a4;_0x2d95b8<this['_lastResponseTimestamp']||(this[_0x594106(0x135)]=_0x2d95b8,this[_0x594106(0x1c8)]=Number[_0x594106(0x141)](_0xf63f46[_0x594106(0x268)]),this[_0x594106(0x1db)]=Number['parseInt'](_0xf63f46[_0x594106(0x33d)]));}async[_0x4ac3a4(0x2c3)](_0x4b1bfc){const _0x1afbd1=_0x4ac3a4;var _0x28f68f,_0x5a06bb;const _0x3f24f4=Date[_0x1afbd1(0x1f2)]();try{const _0x55ef95=((_0x28f68f=this[_0x1afbd1(0x318)][_0x1afbd1(0x2a3)](_0x2ec864))==null?void 0x0:_0x28f68f['startFormulaLimitUrl'])||Rn,_0x1d4a8c=(await this[_0x1afbd1(0x2ad)][_0x1afbd1(0x2f5)](_0x55ef95,{'body':JSON[_0x1afbd1(0x186)]({'taskId':_0x4b1bfc})}))[_0x1afbd1(0x1e9)];if(((_0x5a06bb=_0x1d4a8c[_0x1afbd1(0x1e2)])==null?void 0x0:_0x5a06bb[_0x1afbd1(0x1ba)])!==Z['OK'])return;this[_0x1afbd1(0x178)](_0x1d4a8c[_0x1afbd1(0x288)],_0x3f24f4);}catch(_0x4ec294){this[_0x1afbd1(0x312)][_0x1afbd1(0x1e2)](_0x4ec294);}}async[_0x4ac3a4(0x176)](_0x30ef07){const _0x5d116e=_0x4ac3a4;var _0x33589c,_0x2a3999;const _0x377306=Date[_0x5d116e(0x1f2)]();try{const _0x38eae1=((_0x33589c=this[_0x5d116e(0x318)][_0x5d116e(0x2a3)](_0x2ec864))==null?void 0x0:_0x33589c[_0x5d116e(0x220)])||Cn,_0x52ec1b=_0x30ef07?_0x38eae1+_0x5d116e(0x2ed)+encodeURIComponent(_0x30ef07):_0x38eae1,_0x45259f=(await this[_0x5d116e(0x2ad)]['get'](_0x52ec1b))['body'];if(((_0x2a3999=_0x45259f[_0x5d116e(0x1e2)])==null?void 0x0:_0x2a3999[_0x5d116e(0x1ba)])!==Z['OK'])return;this[_0x5d116e(0x178)](_0x45259f[_0x5d116e(0x288)],_0x377306);}catch(_0xef143b){this[_0x5d116e(0x312)][_0x5d116e(0x1e2)](_0xef143b);}}async[_0x4ac3a4(0x344)](_0x2eca7d){const _0x5b9323=_0x4ac3a4;var _0x454ca3,_0x20f077;const _0x2291c0=Date[_0x5b9323(0x1f2)]();try{const _0x59a9bc=((_0x454ca3=this[_0x5b9323(0x318)][_0x5b9323(0x2a3)](_0x2ec864))==null?void 0x0:_0x454ca3[_0x5b9323(0x353)])||Dn,_0x1a37f7=(await this[_0x5b9323(0x2ad)][_0x5b9323(0x2f5)](_0x59a9bc,{'body':JSON[_0x5b9323(0x186)]({'taskId':_0x2eca7d})}))['body'];if(((_0x20f077=_0x1a37f7['error'])==null?void 0x0:_0x20f077[_0x5b9323(0x1ba)])!==Z['OK'])return;this[_0x5b9323(0x178)](_0x1a37f7['limitInfo'],_0x2291c0);}catch(_0x43cb22){this[_0x5b9323(0x312)][_0x5b9323(0x1e2)](_0x43cb22);}}['_checkCalculationAvailable'](){const _0xf9b3ef=_0x4ac3a4;return this['_maxFormulaLimit']===0x0?!0x0:this[_0xf9b3ef(0x1c8)]-this['_currentUsage']>0x0;}[_0x4ac3a4(0x1e4)](){const _0x874fb1=_0x4ac3a4;this['_pollingInterval']&&(clearTimeout(this[_0x874fb1(0x271)]),this['_pollingInterval']=null);}[_0x4ac3a4(0x22b)](){const _0x4a3276=_0x4ac3a4;this[_0x4a3276(0x2ba)][_0x4a3276(0x27e)]({'content':this['_localeService']['t'](_0x4a3276(0x2aa)),'type':_0x2d3519[_0x4a3276(0x2f2)]});}['_hasFormulaInDirtyRanges'](_0x43754e){const _0x1faf30=_0x4ac3a4;for(const _0x50195c of _0x43754e){const {unitId:_0x55ab1b,sheetId:_0x20aa39,range:_0x544860}=_0x50195c,_0x21cac0=this['_univerInstanceService'][_0x1faf30(0x160)](_0x55ab1b);if(!_0x21cac0)continue;const _0xcb06b4=_0x21cac0[_0x1faf30(0x258)](_0x20aa39);if(!_0xcb06b4)continue;const _0x551204=_0xcb06b4[_0x1faf30(0x275)]();for(let _0x5b95d2=_0x544860['startRow'];_0x5b95d2<=_0x544860[_0x1faf30(0x16b)];_0x5b95d2++)for(let _0x20ea20=_0x544860['startColumn'];_0x20ea20<=_0x544860['endColumn'];_0x20ea20++){const _0x3104aa=_0x551204[_0x1faf30(0x21e)](_0x5b95d2,_0x20ea20);if(_0x3104aa&&(_0x11bcf0(_0x3104aa['f'])||_0x31786f(_0x3104aa['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x5f06d0(_0x56b023)),P(0x1,_0x222551),P(0x2,_0x132ac0),P(0x3,_0x5f06d0(_0x593501)),P(0x4,_0x4711cc),P(0x5,_0x87d10f),P(0x6,_0x5f06d0(_0x55ece3))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x18e254,_0x44fb49,_0x359e1a,_0x340278)=>{const _0x445f30=_0x4ac3a4;for(var _0x364d17=_0x340278>0x1?void 0x0:_0x340278?Nn(_0x44fb49,_0x359e1a):_0x44fb49,_0x32db9d=_0x18e254[_0x445f30(0x245)]-0x1,_0xf697ff;_0x32db9d>=0x0;_0x32db9d--)(_0xf697ff=_0x18e254[_0x32db9d])&&(_0x364d17=_0xf697ff(_0x364d17)||_0x364d17);return _0x364d17;},Ue=(_0x1bcb81,_0x3fcae3)=>(_0x42f551,_0x40a2da)=>_0x3fcae3(_0x42f551,_0x40a2da,_0x1bcb81);let He=class extends _0x2119f0{constructor(_0x2c0d59,_0x234e74,_0x4886d7){const _0x1591eb=_0x4ac3a4;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x1591eb(0x138),!0x1),(this[_0x1591eb(0x318)]=_0x2c0d59,this[_0x1591eb(0x1d6)]=_0x234e74,this[_0x1591eb(0x299)]=_0x4886d7);}[_0x4ac3a4(0x222)](){const _0x564053=_0x4ac3a4;this[_0x564053(0x138)]=!0x0;}['enableLocalCache'](){const _0x21ae6e=_0x4ac3a4;this[_0x21ae6e(0x138)]=!0x1;}get[_0x4ac3a4(0x239)](){const _0x27b9b5=_0x4ac3a4;return this[_0x27b9b5(0x1fc)];}[_0x4ac3a4(0x302)](){const _0x1e09e0=_0x4ac3a4;this[_0x1e09e0(0x286)]()[_0x1e09e0(0x209)](()=>super[_0x1e09e0(0x302)]());}async['loadOfflineData'](_0x889e6d){const _0x348436=_0x4ac3a4;return this[_0x348436(0x138)]?null:this[_0x348436(0x1d6)][_0x348436(0x232)](_0x3b4797(_0x889e6d));}async[_0x4ac3a4(0x270)](_0x2be6a7,_0x62d83c){const _0x5f3c17=_0x4ac3a4;return!!this[_0x5f3c17(0x1d6)][_0x5f3c17(0x320)](_0x2be6a7,_0x62d83c);}[_0x4ac3a4(0x212)](_0x2eb12b,_0x1b0123,_0x522014,_0xdbba79){const _0x53ea5d=_0x4ac3a4,_0x5a691e=this[_0x53ea5d(0x299)][_0x53ea5d(0x237)](_0x2eb12b);this[_0x53ea5d(0x1cd)][_0x53ea5d(0x1bd)](_0x2eb12b,{'unitID':_0x2eb12b,'type':_0x1b0123,'awaitingChangeset':_0x522014,'mutations':_0xdbba79,'rev':_0x5a691e}),this[_0x53ea5d(0x1fc)]['has'](_0x2eb12b)||this['_scheduleSaving'](_0x2eb12b);}[_0x4ac3a4(0x29b)](_0x62d9b5){const _0x2a7e07=_0x4ac3a4,_0x451941=this[_0x2a7e07(0x21f)]();_0x451941===0x0?this[_0x2a7e07(0x1ed)](_0x62d9b5):this[_0x2a7e07(0x1fc)][_0x2a7e07(0x1bd)](_0x62d9b5,setTimeout(()=>this[_0x2a7e07(0x1ed)](_0x62d9b5),_0x451941));}[_0x4ac3a4(0x21f)](){const _0x310d1d=_0x4ac3a4;var _0x3439db;return(_0x3439db=this[_0x310d1d(0x318)]['getConfig'](_0x3860a1))!=null?_0x3439db:_0xa34fe;}['_saveCache'](_0x211997){const _0x41a07c=_0x4ac3a4,_0x1f5669=this[_0x41a07c(0x1fc)][_0x41a07c(0x2bb)](_0x211997);return _0x1f5669!==void 0x0&&window['clearTimeout'](_0x1f5669),this[_0x41a07c(0x1d6)]['setItem'](_0x3b4797(_0x211997),this[_0x41a07c(0x1cd)][_0x41a07c(0x2bb)](_0x211997))[_0x41a07c(0x209)](()=>this[_0x41a07c(0x1fc)][_0x41a07c(0x342)](_0x211997));}async[_0x4ac3a4(0x286)](){const _0xc138f8=_0x4ac3a4,_0x36ce95=[];this[_0xc138f8(0x1fc)][_0xc138f8(0x272)]((_0x223c5c,_0x2572fe)=>{const _0x3d98c0=_0xc138f8;window['clearTimeout'](_0x223c5c),_0x36ce95[_0x3d98c0(0x15e)](this[_0x3d98c0(0x1ed)](_0x2572fe)[_0x3d98c0(0x209)](()=>{const _0x694234=_0x3d98c0;this[_0x694234(0x1fc)][_0x694234(0x342)](_0x2572fe);}));}),await Promise[_0xc138f8(0x34e)](_0x36ce95);}};He=bn([Ue(0x0,_0x132ac0),Ue(0x1,_0x1e7698),Ue(0x2,_0x5f06d0(_0x1be0dc))],He);class Ln extends _0x3004d6{constructor(){const _0x41022b=_0x4ac3a4;super(),_(this,_0x41022b(0x2a5)),this[_0x41022b(0x2a5)]=_0x442efa(window,_0x41022b(0x287))['pipe'](_0x141c76(this['dispose$']),_0x1eabca(0x1),_0xacfd24(void 0x0));}[_0x4ac3a4(0x2a7)](_0x1c3f36,_0x5d71ab,_0x14ff5e=!0x1){const _0x2f08fd=_0x4ac3a4,_0x49f6d8=new URL(window[_0x2f08fd(0x203)][_0x2f08fd(0x33b)]);_0x49f6d8['searchParams'][_0x2f08fd(0x1bd)](_0x1c3f36,_0x5d71ab),_0x14ff5e?window['history']['replaceState']('','',_0x49f6d8[_0x2f08fd(0x35a)]()):window[_0x2f08fd(0x2ff)][_0x2f08fd(0x210)]('','',_0x49f6d8[_0x2f08fd(0x35a)]());}['removeParam'](_0xa7650a,_0x573174=!0x1){const _0x13b18a=_0x4ac3a4,_0x31e736=new URL(window[_0x13b18a(0x203)]['href']);_0x31e736[_0x13b18a(0x22c)]['delete'](_0xa7650a),_0x573174?window[_0x13b18a(0x2ff)][_0x13b18a(0x17b)]('','',_0x31e736[_0x13b18a(0x35a)]()):window[_0x13b18a(0x2ff)][_0x13b18a(0x210)]('','',_0x31e736['toString']());}[_0x4ac3a4(0x24e)](_0x19ccf2){const _0x318f54=_0x4ac3a4;var _0x495d8c;return(_0x495d8c=new URL(window[_0x318f54(0x203)][_0x318f54(0x33b)])['searchParams'][_0x318f54(0x2bb)](_0x19ccf2))!=null?_0x495d8c:void 0x0;}}var Un=Object[_0x4ac3a4(0x1c1)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x2afdf4,_0x565206,_0x28ed62)=>_0x565206 in _0x2afdf4?Un(_0x2afdf4,_0x565206,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28ed62}):_0x2afdf4[_0x565206]=_0x28ed62,Pn=(_0x4d5303,_0x1a2d23,_0x185e91,_0xa8f55a)=>{const _0x2eb6dc=_0x4ac3a4;for(var _0x2daf72=_0xa8f55a>0x1?void 0x0:_0xa8f55a?Mn(_0x1a2d23,_0x185e91):_0x1a2d23,_0x380c76=_0x4d5303[_0x2eb6dc(0x245)]-0x1,_0xef340c;_0x380c76>=0x0;_0x380c76--)(_0xef340c=_0x4d5303[_0x380c76])&&(_0x2daf72=_0xef340c(_0x2daf72)||_0x2daf72);return _0x2daf72;},Me=(_0x42efdd,_0x584ccb)=>(_0x3e2937,_0x187240)=>_0x584ccb(_0x3e2937,_0x187240,_0x42efdd),wn=(_0x555561,_0x536213,_0x51166d)=>An(_0x555561,_0x536213+'',_0x51166d);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x1fdda0{constructor(_0x2b86a7=_t,_0x5eaa57,_0x1ea09b,_0x3cd7ec){const _0x5afbad=_0x4ac3a4;super(),this['_config']=_0x2b86a7,this['_renderManagerService']=_0x5eaa57,this[_0x5afbad(0x357)]=_0x1ea09b,this[_0x5afbad(0x318)]=_0x3cd7ec;const {..._0x14025f}=_0x25b436({},_t,this[_0x5afbad(0x16c)]);this[_0x5afbad(0x318)]['setConfig'](hn,_0x14025f);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}[_0x4ac3a4(0x24d)](){const _0x2fca1a=_0x4ac3a4;this[_0x2fca1a(0x224)]();}[_0x4ac3a4(0x29a)](){const _0x1f610d=_0x4ac3a4;var _0x46116a;const _0x502f9e=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x66d66e,{'useClass':_0x7c8640}],[_0x3a9230,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x1f610d(0x16c)][_0x1f610d(0x2fc)]&&_0x502f9e[_0x1f610d(0x15e)]([le]),_0x269076(this['_injector'],_0x170b3e(_0x502f9e,(_0x46116a=this[_0x1f610d(0x16c)])==null?void 0x0:_0x46116a[_0x1f610d(0x231)]));}[_0x4ac3a4(0x224)](){const _0xe8b9b4=_0x4ac3a4;this[_0xe8b9b4(0x29e)](this[_0xe8b9b4(0x1b9)][_0xe8b9b4(0x1d0)](_0x382bbd[_0xe8b9b4(0x20c)],[Fe])),this[_0xe8b9b4(0x29e)](this[_0xe8b9b4(0x1b9)][_0xe8b9b4(0x1d0)](_0x382bbd[_0xe8b9b4(0x19d)],[ke]));}[_0x4ac3a4(0x324)](){const _0x101c47=_0x4ac3a4;_0x134778(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x101c47(0x2fc)]&&_0x134778(this[_0x101c47(0x357)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x3bcc9a(_0x18270b),Me(0x1,_0x2004a5),Me(0x2,_0x5f06d0(_0x1d4bde)),Me(0x3,_0x132ac0)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0xd54908,_0x9652ac,_0x5c81a7,_0x349a6f)=>{const _0x13a5c8=_0x4ac3a4;for(var _0x32003c=_0x349a6f>0x1?void 0x0:_0x349a6f?$n(_0x9652ac,_0x5c81a7):_0x9652ac,_0x2d1ad9=_0xd54908[_0x13a5c8(0x245)]-0x1,_0x224777;_0x2d1ad9>=0x0;_0x2d1ad9--)(_0x224777=_0xd54908[_0x2d1ad9])&&(_0x32003c=_0x224777(_0x32003c)||_0x32003c);return _0x32003c;},J=(_0xa9bf24,_0x53ecae)=>(_0x55a74a,_0x5029a4)=>_0x53ecae(_0x55a74a,_0x5029a4,_0xa9bf24);let ut=class extends _0x303847{constructor(_0x40abe1,_0x4ca038,_0x11f640,_0x330b3b,_0x5edba6){super(_0x40abe1,_0x4ca038,_0x11f640,_0x330b3b,_0x5edba6);}async[_0x4ac3a4(0x321)](_0x1b22b3){const _0x2fcd10=_0x4ac3a4,_0x547a7a=await this[_0x2fcd10(0x254)](),_0x14949a=this['_createSocketURL'](_0x1b22b3,_0x547a7a);return this[_0x2fcd10(0x31f)](_0x14949a);}[_0x4ac3a4(0x2fe)](_0xecdae6,_0x335e70){const _0xb5e9ad=_0x4ac3a4,_0x356c80=typeof window>'u'?new URL(_0xecdae6):new URL(_0xecdae6,window[_0xb5e9ad(0x203)]['origin']);_0x356c80['searchParams']['set'](_0xb5e9ad(0x1bc),_0x335e70);const _0x389ef8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xb5e9ad(0x203)][_0xb5e9ad(0x27d)]);return _0x389ef8[_0xb5e9ad(0x2bb)](_0xb5e9ad(0x198))&&_0x356c80[_0xb5e9ad(0x22c)]['set'](_0xb5e9ad(0x198),_0x389ef8[_0xb5e9ad(0x2bb)](_0xb5e9ad(0x198))),_0x356c80[_0xb5e9ad(0x35a)]();}async[_0x4ac3a4(0x254)](){const _0x547b21=_0x4ac3a4;var _0x244683,_0x323ade,_0x2205b9;const _0x3ff9e8=this[_0x547b21(0x318)]['getConfig'](_0x2ec864),_0x1b96a5=(_0x244683=_0x3ff9e8==null?void 0x0:_0x3ff9e8[_0x547b21(0x172)])!=null?_0x244683:_0x4319b2;return(_0x2205b9=(_0x323ade=(await this[_0x547b21(0x2ad)][_0x547b21(0x2bb)](_0x1b96a5,{'headers':{'Content-Type':_0x547b21(0x34b)}}))[_0x547b21(0x1e9)])==null?void 0x0:_0x323ade[_0x547b21(0x310)])!=null?_0x2205b9:'';}};ut=xn([J(0x0,_0x5f06d0(_0x1d4bde)),J(0x1,_0x5f06d0(_0x593501)),J(0x2,_0x132ac0),J(0x3,_0x87d10f),J(0x4,_0x34af7f)],ut);var Bn=Object[_0x4ac3a4(0x13a)],Fn=(_0xa97dcf,_0x15b574,_0x4080c5,_0x1509d6)=>{const _0x49a3d1=_0x4ac3a4;for(var _0x32087e=_0x1509d6>0x1?void 0x0:_0x1509d6?Bn(_0x15b574,_0x4080c5):_0x15b574,_0x41f529=_0xa97dcf[_0x49a3d1(0x245)]-0x1,_0xa4967f;_0x41f529>=0x0;_0x41f529--)(_0xa4967f=_0xa97dcf[_0x41f529])&&(_0x32087e=_0xa4967f(_0x32087e)||_0x32087e);return _0x32087e;},Ae=(_0x1979b7,_0x5c5a5e)=>(_0x52bc42,_0x4cd71c)=>_0x5c5a5e(_0x52bc42,_0x4cd71c,_0x1979b7);let dt=class extends _0x2119f0{constructor(_0x4b880e,_0x31bdd9,_0x1ebf86){const _0x22358b=_0x4ac3a4;super(),this[_0x22358b(0x182)]=_0x4b880e,this[_0x22358b(0x2ad)]=_0x31bdd9,this[_0x22358b(0x318)]=_0x1ebf86;}async[_0x4ac3a4(0x256)](_0x31e3d5,_0x3b2555,_0x2f161a,..._0x2b928c){const _0x2a9223=_0x4ac3a4;var _0x10bb03,_0x58692d,_0x316d12,_0x1c02b7;const _0x533e25=this[_0x2a9223(0x182)]['getFocusedUnit']();if(!_0x533e25)throw new Error(_0x2a9223(0x21a));const _0x4fc0e6=((_0x10bb03=this[_0x2a9223(0x318)]['getConfig'](_0x3a10f9))!=null?_0x10bb03:_0x4797d0)+'/'+_0x31e3d5+_0x2a9223(0x127)+_0x3b2555,_0x331046=new URL(window[_0x2a9223(0x203)][_0x2a9223(0x33b)]),_0x2ea890={'scriptId':_0x31e3d5,'runId':(_0x58692d=_0x331046[_0x2a9223(0x22c)][_0x2a9223(0x2bb)]('runId'))!=null?_0x58692d:'','function':_0x3b2555,'unitId':_0x533e25[_0x2a9223(0x1dc)](),'argsOfFunction':JSON['stringify'](_0x2b928c),'invokeId':(_0x316d12=_0x2f161a[_0x2a9223(0x251)])!=null?_0x316d12:'','executionId':(_0x1c02b7=_0x2f161a[_0x2a9223(0x2e9)])!=null?_0x1c02b7:''};try{const _0x57a82b=await this[_0x2a9223(0x2ad)][_0x2a9223(0x2f5)](_0x4fc0e6,{'body':_0x2ea890});return _0x57a82b['body'][_0x2a9223(0x1e2)]&&_0x57a82b[_0x2a9223(0x1e9)]['error'][_0x2a9223(0x1ba)]!==Z['OK']?_0x2a9223(0x17d):_0x57a82b[_0x2a9223(0x1e9)][_0x2a9223(0x161)];}catch{return _0x2a9223(0x17d);}}};dt=Fn([Ae(0x0,_0x4711cc),Ae(0x1,_0x5f06d0(_0x593501)),Ae(0x2,_0x132ac0)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x2119f0{constructor(){const _0x2ba7b9=_0x4ac3a4;super(),_(this,_0x2ba7b9(0x1c9),_0x40f13c()),_(this,_0x2ba7b9(0x129),new Set()),_(this,_0x2ba7b9(0x313),new Map()),_(this,_0x2ba7b9(0x1ad),null),_(this,_0x2ba7b9(0x225),new Map()),_(this,'_unitStatus',new Map()),this[_0x2ba7b9(0x28a)]();}[_0x4ac3a4(0x302)](){const _0x295e8e=_0x4ac3a4;super['dispose'](),this[_0x295e8e(0x225)][_0x295e8e(0x272)]((_0x563eae,_0x1a6132)=>this['_removeClearOtherTimer'](_0x1a6132)),this[_0x295e8e(0x1ad)]&&window[_0x295e8e(0x201)](this[_0x295e8e(0x1ad)]);}[_0x4ac3a4(0x193)](_0x4462c4){const _0x857399=_0x4ac3a4;return this['_ensureSubject'](_0x4462c4)[_0x857399(0x1be)](_0x12560e());}[_0x4ac3a4(0x303)](_0x17083c){const _0x5982b7=_0x4ac3a4;this[_0x5982b7(0x129)][_0x5982b7(0x1c6)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x17083c),this[_0x5982b7(0x2fd)]({'type':0x0,'memberID':this[_0x5982b7(0x1c9)],'unitIDs':[_0x17083c],'isForwarded':!0x1});}[_0x4ac3a4(0x1c0)](_0x93a765){const _0x155d36=_0x4ac3a4;this[_0x155d36(0x129)][_0x155d36(0x342)](_0x93a765),this[_0x155d36(0x129)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x155d36(0x201)](this[_0x155d36(0x1ad)]);}[_0x4ac3a4(0x28a)](){const _0xf548af=_0x4ac3a4;this[_0xf548af(0x29e)](_0x31a568(_0x442efa(window,_0xf548af(0x14a))[_0xf548af(0x1cb)](_0x34e78a=>{const _0x207425=_0xf548af;if(_0x34e78a[_0x207425(0x2cd)]!==It||!_0x34e78a[_0x207425(0x146)])return;const _0xef4c3b=JSON[_0x207425(0x191)](_0x34e78a['newValue']);this[_0x207425(0x2c0)](_0xef4c3b);}))),window[_0xf548af(0x214)](_0xf548af(0x284),()=>this[_0xf548af(0x2fd)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xf548af(0x2f1)](this[_0xf548af(0x129)])}));}[_0x4ac3a4(0x2c0)](_0x5b76b7){const _0x45d9aa=_0x4ac3a4;switch(_0x5b76b7[_0x45d9aa(0x1eb)]){case 0x0:this[_0x45d9aa(0x168)](_0x5b76b7);break;case 0x1:this['_handleLeaveEvent'](_0x5b76b7);break;case 0x2:this['_handleHeartbeatEvent'](_0x5b76b7);break;}}[_0x4ac3a4(0x168)](_0xbcac17){const _0x39a6d3=_0x4ac3a4,{unitIDs:_0x59f49f,memberID:_0x2c2e87,isForwarded:_0x5b50b3}=_0xbcac17;_0x59f49f[_0x39a6d3(0x272)](_0x26d825=>{const _0x4696a8=_0x39a6d3;if(!_0x5b50b3&&this['_unitOnClients'][_0x4696a8(0x247)](_0x26d825)&&this['_ensureSubject'](_0x26d825)['next'](_0x49a5c0[_0x4696a8(0x334)]),!this[_0x4696a8(0x313)][_0x4696a8(0x247)](_0x26d825)||!this[_0x4696a8(0x313)][_0x4696a8(0x2bb)](_0x26d825)[_0x4696a8(0x247)](_0x2c2e87)){const _0x2845e7=this['_unitOnClients'][_0x4696a8(0x2bb)](_0x26d825)||new Set();_0x2845e7['add'](_0x2c2e87),this[_0x4696a8(0x313)][_0x4696a8(0x1bd)](_0x26d825,_0x2845e7),this[_0x4696a8(0x23a)](_0x2c2e87);}}),_0x5b50b3||this[_0x39a6d3(0x2fd)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x39a6d3(0x129)]],'isForwarded':!0x0});}[_0x4ac3a4(0x23a)](_0x7d8d39){const _0x11468c=_0x4ac3a4;this[_0x11468c(0x2eb)](_0x7d8d39);const _0x3b7e09=window[_0x11468c(0x1f4)](()=>{const _0x230ca7=_0x11468c;this[_0x230ca7(0x313)]['forEach'](_0x3da85e=>{const _0x14a080=_0x230ca7;_0x3da85e[_0x14a080(0x342)](_0x7d8d39);});},St*0x2);this[_0x11468c(0x225)]['set'](_0x7d8d39,_0x3b7e09);}['_removeClearOtherTimer'](_0x58b87b){const _0x3ea9d8=_0x4ac3a4;if(this[_0x3ea9d8(0x225)][_0x3ea9d8(0x247)](_0x58b87b)){const _0x16733a=this['_clearOtherTimers'][_0x3ea9d8(0x2bb)](_0x58b87b);_0x16733a&&window[_0x3ea9d8(0x19f)](_0x16733a),this['_clearOtherTimers'][_0x3ea9d8(0x1bd)](_0x58b87b,null);}}[_0x4ac3a4(0x126)](_0x57bf37){const _0x2f24db=_0x4ac3a4,{memberID:_0x183c05,unitIDs:_0x13020a}=_0x57bf37;_0x13020a['forEach'](_0x18748a=>{const _0x52ac92=_0x3ebe;var _0x3c2eae;const _0x398078=this['_unitOnClients'][_0x52ac92(0x2bb)](_0x18748a);_0x398078&&(_0x398078[_0x52ac92(0x342)](_0x183c05),(_0x3c2eae=this['_ensureSubject'](_0x18748a))==null||_0x3c2eae[_0x52ac92(0x242)](_0x398078[_0x52ac92(0x1c6)]===0x0?_0x49a5c0['NO_OTHER_CLIENTS_EDITING']:_0x49a5c0[_0x52ac92(0x334)]));}),this[_0x2f24db(0x2eb)](_0x183c05);}[_0x4ac3a4(0x339)](_0x30c580){const _0x2b848d=_0x4ac3a4;this[_0x2b848d(0x23a)](_0x30c580[_0x2b848d(0x164)]);}['_send'](_0x6bcc46){const _0x482e2=_0x4ac3a4;localStorage[_0x482e2(0x320)](It,JSON[_0x482e2(0x186)](_0x6bcc46));}['_scheduleHeartbeat'](){const _0x219251=_0x4ac3a4;this[_0x219251(0x1ad)]=window[_0x219251(0x149)](()=>{const _0xc3de81=_0x219251;this['_send']({'type':0x2,'memberID':this[_0xc3de81(0x1c9)]});},St);}[_0x4ac3a4(0x20a)](_0x3f714b){const _0x5c06b3=_0x4ac3a4;return this[_0x5c06b3(0x131)]['has'](_0x3f714b)||this['_unitStatus'][_0x5c06b3(0x1bd)](_0x3f714b,new _0x1d7743(_0x49a5c0['NO_OTHER_CLIENTS_EDITING'])),this[_0x5c06b3(0x131)]['get'](_0x3f714b);}}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 _0x46d0db=_0x4fdf;(function(_0x39b706,_0x28f744){const _0x13e2d2=_0x4fdf,_0x3e367d=_0x39b706();while(!![]){try{const _0x4ae0f5=parseInt(_0x13e2d2(0x2d8))/0x1*(parseInt(_0x13e2d2(0x2df))/0x2)+parseInt(_0x13e2d2(0x201))/0x3*(-parseInt(_0x13e2d2(0x3e5))/0x4)+-parseInt(_0x13e2d2(0x247))/0x5+-parseInt(_0x13e2d2(0x248))/0x6*(-parseInt(_0x13e2d2(0x1db))/0x7)+parseInt(_0x13e2d2(0x3da))/0x8+parseInt(_0x13e2d2(0x276))/0x9*(-parseInt(_0x13e2d2(0x3cf))/0xa)+parseInt(_0x13e2d2(0x2bd))/0xb*(parseInt(_0x13e2d2(0x395))/0xc);if(_0x4ae0f5===_0x28f744)break;else _0x3e367d['push'](_0x3e367d['shift']());}catch(_0x489da9){_0x3e367d['push'](_0x3e367d['shift']());}}}(_0x55b3,0x8a25e));var Yt=Object[_0x46d0db(0x20a)],Wt=(_0xbdedb,_0x326ec6,_0x3e907a)=>_0x326ec6 in _0xbdedb?Yt(_0xbdedb,_0x326ec6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e907a}):_0xbdedb[_0x326ec6]=_0x3e907a,_=(_0x2228ce,_0x2c5260,_0x14ef0e)=>Wt(_0x2228ce,typeof _0x2c5260!=_0x46d0db(0x3bb)?_0x2c5260+'':_0x2c5260,_0x14ef0e);import{jsx as _0x51cab3,jsxs as _0xd762c0}from'react/jsx-runtime';import{CollaborationStatus as _0x3a48be,CollaborationSessionService as _0x3840d4,CollaborationController as _0x1e646e,DataLoaderService as _0x549625,MemberService as _0x245c8d,SessionStatus as _0x61e47f,ILocalCacheService as _0x30567e,CollaborationUIEventService as _0x1f424b,CollaborationUIEventId as _0x31159c,DocCollaborationEntity as _0x311d59,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x331045,getLocalCacheKey as _0x5d5e14,LOCAL_CACHE_INTERVAL as _0x41d58a,LOCAL_CACHE_INTERVAL_KEY as _0x57a441,UniverCollaborationClientPlugin as _0x930682,CollaborationSocketService as _0x1bb4a1,DEFAULT_WS_SESSION_TICKET_URL as _0x202521,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x155d53,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xac7d50,UnitStatus as _0x4155df}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x4fbd2b,IUniverInstanceService as _0x2b2591,Inject as _0xea701b,Injector as _0x29824e,Disposable as _0x325e21,createIdentifier as _0xc99d95,ILogService as _0xf63a71,ICommandService as _0x1f0fa6,Optional as _0x12132d,RxDisposable as _0x4128f2,Workbook as _0x725426,DOC_RANGE_TYPE as _0x4dd949,debounce as _0x1530e6,Rectangle as _0x26b4f0,DisposableCollection as _0x4f5214,toDisposable as _0xd54434,UniverInstanceType as _0xee6b2,generateRandomId as _0x316c01,COLORS as _0x3433f6,ColorKit as _0xe4264a,ThemeService as _0x4e6929,fromEventSubject as _0x572b71,Tools as _0x193f3d,CommandType as _0x32d026,IConfigService as _0x2f71c6,CanceledError as _0x391ab4,isFormulaString as _0x2c0875,isFormulaId as _0x2d1200,ILocalStorageService as _0x2b6927,DependentOn as _0x514518,Plugin as _0x77b34d,merge as _0x2e11c2,registerDependencies as _0x29599c,mergeOverrideWithDependencies as _0x250639,touchDependencies as _0x2e2d25}from'@univerjs/core';import{useObservable as _0x47d542,useDependency as _0x158269,IUIPartsService as _0x5d7c5f,BuiltInUIPart as _0x5de6e0,connectInjector as _0x2a8b05,IBeforeCloseService as _0x17bc31,IMessageService as _0x25d450,INotificationService as _0x1b2ee8}from'@univerjs/ui';import{BehaviorSubject as _0xe5dabe,switchMap as _0xd3a12e,of as _0x45fb3c,takeUntil as _0x3a9d76,debounceTime as _0x225383,Subject as _0x4f3095,filter as _0x271fea,merge as _0x3bcfd6,combineLatest as _0x251a62,fromEvent as _0x550027,shareReplay as _0x34a5e8,mapTo as _0x20a6b6,distinctUntilChanged as _0x10b6a3}from'rxjs';import{Tooltip as _0x4e5e2a,clsx as _0x252119,MessageType as _0x404ab1}from'@univerjs/design';import{useRef as _0x5db2b9,createElement as _0x43157b,forwardRef as _0x95f0e,useCallback as _0x269898}from'react';import{IRemoteInstanceService as _0x35262a}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x1bdbdc,RefRangeService as _0x1ea0ab,SetSelectionsOperation as _0x508f0e,SheetsSelectionsService as _0x152304,EffectRefRangId as _0x5a6104,handleIRemoveRow as _0x3ecfc5,handleIRemoveCol as _0x4b771b,handleMoveRange as _0x17daf7,handleInsertRow as _0x52d453,handleInsertRangeMoveRight as _0x326a81,handleInsertRangeMoveDown as _0x53880d,handleInsertCol as _0x34e3c9,handleDeleteRangeMoveUp as _0x2a052e,handleDeleteRangeMoveLeft as _0x2f32e9,runRefRangeMutations as _0x544486}from'@univerjs/sheets';import{Shape as _0x374fb5,Rect as _0x4dbc14,getColor as _0x44ad87,RegularPolygon as _0xa81d5e,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2da767,Vector2 as _0x1a7621,SHEET_VIEWPORT_KEY as _0x546f5f,IRenderManagerService as _0x38baec}from'@univerjs/engine-render';import{HTTPService as _0x146466,ISocketService as _0x2e5978,WebSocketService as _0x20f03b}from'@univerjs/network';import{IDocClipboardService as _0x6db524,NodePositionConvertToCursor as _0x880a56,NodePositionConvertToRectRange as _0x42b1b8,TEXT_RANGE_LAYER_INDEX as _0x2d25d8,SetDocZoomRatioOperation as _0x4d07bf,DocIMEInputManagerService as _0x6b1360,DocStateChangeManagerService as _0x369bb6}from'@univerjs/docs-ui';import{IImageIoService as _0x18da6b}from'@univerjs/drawing';import{ITransformService as _0x3ec468,CollaborationEvent as _0x3e05c7,isTransformMutationFailure as _0xe71731,isTransformMutationsWithChangesetSuccess as _0x4984e5,RevisionService as _0x3bad50,ISnapshotServerService as _0x189b23}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x30df8b,RichTextEditingMutation as _0xef6574,DocSelectionManagerService as _0x11d383,DocSkeletonManagerService as _0x169330}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x85a7b4,serializeRangeWithSheet as _0x545e12,FormulaExecuteStageType as _0x33e62e,FormulaExecutedStateType as _0x5107e3,SetFormulaCalculationStartMutation as _0xd13b4b,SetFormulaCalculationNotificationMutation as _0x4191e8}from'@univerjs/engine-formula';import{map as _0x2a3dd6,filter as _0x82a1f5,throttleTime as _0x2e9f56,takeUntil as _0x402121,switchMap as _0x310d20}from'rxjs/operators';import{SheetSkeletonManagerService as _0x437ffc,getCoordByCell as _0x58f1da,getSheetObject as _0x146077}from'@univerjs/sheets-ui';function Ge({ref:_0x34f134,..._0x2476d5}){const _0x2139c8=_0x46d0db,{icon:_0x57cc9c,id:_0x5d556a,className:_0x3bad63,extend:_0x43b964,..._0x3ab409}=_0x2476d5,_0x5126d0=(_0x2139c8(0x293)+_0x5d556a+'\x20'+(_0x3bad63||''))[_0x2139c8(0x255)](),_0x2e8302=_0x5db2b9('_'+vi());return At(_0x57cc9c,''+_0x5d556a,{'defIds':_0x57cc9c[_0x2139c8(0x1d9)],'idSuffix':_0x2e8302[_0x2139c8(0x1ed)]},{'ref':_0x34f134,'className':_0x5126d0,..._0x3ab409},_0x43b964);}function At(_0x37234d,_0x2c2f17,_0x5a740e,_0x18ecc5,_0x55f43a){const _0x52577f=_0x46d0db;return _0x43157b(_0x37234d[_0x52577f(0x3ae)],{'key':_0x2c2f17,...gi(_0x37234d,_0x5a740e,_0x55f43a),..._0x18ecc5},(Ei(_0x37234d,_0x5a740e)[_0x52577f(0x31f)]||[])[_0x52577f(0x2ee)]((_0x54f9f9,_0x1c3522)=>At(_0x54f9f9,_0x2c2f17+'-'+_0x37234d[_0x52577f(0x3ae)]+'-'+_0x1c3522,_0x5a740e,void 0x0,_0x55f43a)));}function gi(_0x4ecd9f,_0x119991,_0x54d52a){const _0xb71148=_0x46d0db,_0x250082={..._0x4ecd9f['attrs']};_0x54d52a!=null&&_0x54d52a['colorChannel1']&&_0x250082[_0xb71148(0x30b)]===_0xb71148(0x2e0)&&(_0x250082[_0xb71148(0x30b)]=_0x54d52a['colorChannel1']),_0x4ecd9f['tag']===_0xb71148(0x1eb)&&_0x250082['id']&&(_0x250082['id']=_0x250082['id']+_0x119991[_0xb71148(0x39c)]),Object[_0xb71148(0x259)](_0x250082)[_0xb71148(0x207)](([_0x470fb4,_0x4d7876])=>{const _0x1ac351=_0xb71148;_0x470fb4===_0x1ac351(0x1eb)&&typeof _0x4d7876==_0x1ac351(0x347)&&(_0x250082[_0x470fb4]=_0x4d7876[_0x1ac351(0x286)](/url\(#(.*)\)/,_0x1ac351(0x1dc)+_0x119991['idSuffix']+')'));});const {defIds:_0x43b483}=_0x119991;return!_0x43b483||_0x43b483['length']===0x0||(_0x4ecd9f['tag']===_0xb71148(0x21f)&&_0x250082['xlink:href']&&(_0x250082[_0xb71148(0x2be)]=_0x250082[_0xb71148(0x2be)]+_0x119991['idSuffix']),Object[_0xb71148(0x259)](_0x250082)['forEach'](([_0x5eeecf,_0x1d4cc3])=>{const _0x5593da=_0xb71148;typeof _0x1d4cc3==_0x5593da(0x347)&&(_0x250082[_0x5eeecf]=_0x1d4cc3['replace'](/url\(#(.*)\)/,'url(#$1'+_0x119991[_0x5593da(0x39c)]+')'));})),_0x250082;}function Ei(_0x2c039f,_0x318c36){const _0x4fd595=_0x46d0db;var _0x45f733;const {defIds:_0x263be}=_0x318c36;return!_0x263be||_0x263be['length']===0x0?_0x2c039f:_0x2c039f['tag']===_0x4fd595(0x234)&&((_0x45f733=_0x2c039f[_0x4fd595(0x31f)])!=null&&_0x45f733['length'])?{..._0x2c039f,'children':_0x2c039f[_0x4fd595(0x31f)][_0x4fd595(0x2ee)](_0x3570ac=>typeof _0x3570ac[_0x4fd595(0x312)]['id']==_0x4fd595(0x347)&&_0x263be&&_0x263be[_0x4fd595(0x2ba)](_0x3570ac[_0x4fd595(0x312)]['id'])?{..._0x3570ac,'attrs':{..._0x3570ac[_0x4fd595(0x312)],'id':_0x3570ac[_0x4fd595(0x312)]['id']+_0x318c36[_0x4fd595(0x39c)]}}:_0x3570ac)}:_0x2c039f;}function vi(){const _0x1701cd=_0x46d0db;return Math[_0x1701cd(0x3fd)]()[_0x1701cd(0x37c)](0x24)['substring'](0x2,0x8);}Ge[_0x46d0db(0x223)]=_0x46d0db(0x1ce);const pi={'tag':_0x46d0db(0x2f1),'attrs':{'xmlns':_0x46d0db(0x3d0),'fill':_0x46d0db(0x1d8),'viewBox':_0x46d0db(0x408),'width':_0x46d0db(0x3c1),'height':_0x46d0db(0x3c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x46d0db(0x309)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x46d0db(0x29e),'strokeLinecap':_0x46d0db(0x336),'strokeLinejoin':_0x46d0db(0x336),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x46d0db(0x2a5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x46d0db(0x2ec),'d':_0x46d0db(0x40d)}}]}]}],'defIds':[_0x46d0db(0x272)]},Pt=_0x95f0e(function(_0x37372a,_0x4c3823){const _0x19b04c=_0x46d0db;return _0x43157b(Ge,Object[_0x19b04c(0x2c9)]({},_0x37372a,{'id':'off-line-icon','ref':_0x4c3823,'icon':pi}));});Pt[_0x46d0db(0x223)]=_0x46d0db(0x249);const Oi={'tag':_0x46d0db(0x2f1),'attrs':{'xmlns':_0x46d0db(0x3d0),'fill':'none','viewBox':_0x46d0db(0x392),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x46d0db(0x3a9)},'children':[{'tag':'path','attrs':{'stroke':_0x46d0db(0x311),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x46d0db(0x336),'strokeLinejoin':_0x46d0db(0x336),'strokeWidth':1.2}}]},{'tag':_0x46d0db(0x234),'attrs':{},'children':[{'tag':_0x46d0db(0x2a5),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x46d0db(0x1cf),'attrs':{'fill':_0x46d0db(0x2ec),'d':_0x46d0db(0x40d),'transform':_0x46d0db(0x1ff)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x95f0e(function(_0x28a0bf,_0x4501d9){const _0x16c876=_0x46d0db;return _0x43157b(Ge,Object[_0x16c876(0x2c9)]({},_0x28a0bf,{'id':'on-line-icon','ref':_0x4501d9,'icon':Oi}));});wt[_0x46d0db(0x223)]=_0x46d0db(0x25f);function Ti(_0x507b6f){const _0xfd9d7=_0x46d0db;switch(_0x507b6f){case _0x3a48be[_0xfd9d7(0x1d2)]:return'collabStatus.offline';case _0x3a48be[_0xfd9d7(0x268)]:return _0xfd9d7(0x204);case _0x3a48be['FETCH_MISS']:return _0xfd9d7(0x26e);case _0x3a48be['NOT_COLLAB']:return'collabStatus.notCollab';case _0x3a48be[_0xfd9d7(0x307)]:case _0x3a48be['AWAITING_WITH_PENDING']:return _0xfd9d7(0x316);case _0x3a48be[_0xfd9d7(0x27e)]:case _0x3a48be[_0xfd9d7(0x376)]:return _0xfd9d7(0x32f);}}function Ci(_0x5308e2){const _0x2439c3=_0x46d0db,{status$:_0x1eaa4}=_0x5308e2,_0x728fa3=_0x47d542(_0x1eaa4,_0x3a48be[_0x2439c3(0x35c)]),_0x32c215=_0x158269(_0x4fbd2b),_0x4e886c=_0x158269(_0x3840d4),_0x590b77=_0x728fa3!==_0x3a48be[_0x2439c3(0x1d2)],_0x51e634=_0x32c215['t'](Ti(_0x728fa3)),_0x7c669=_0x590b77?_0x51cab3(wt,{}):_0x51cab3(Pt,{}),_0x3a11e0=_0x269898(()=>{const _0x5c088f=_0x2439c3;_0x590b77||_0x4e886c[_0x5c088f(0x2c8)]();},[_0x590b77,_0x4e886c]);function _0x314fd5(){const _0xd55136=_0x2439c3;return _0xd762c0(_0xd55136(0x2a3),{'className':_0xd55136(0x1f5),'onClick':_0x3a11e0,'children':[_0x51cab3('div',{'className':_0x252119(_0xd55136(0x323),{'univer-text-green-500':_0x590b77,'univer-text-red-500':!_0x590b77}),'children':_0x7c669}),_0x51cab3(_0xd55136(0x2a3),{'className':_0xd55136(0x2c2),'children':_0x51e634})]});}return _0x590b77?_0x314fd5():_0x51cab3(_0x4e5e2a,{'title':_0x32c215['t'](_0x2439c3(0x241)),'children':_0x314fd5()});}var Ri=Object[_0x46d0db(0x3db)],Di=(_0x23c0f3,_0x1b3fb3,_0x265e83,_0x506e16)=>{const _0x589a6c=_0x46d0db;for(var _0xd7e99b=_0x506e16>0x1?void 0x0:_0x506e16?Ri(_0x1b3fb3,_0x265e83):_0x1b3fb3,_0x6533da=_0x23c0f3[_0x589a6c(0x3c7)]-0x1,_0x33ff3d;_0x6533da>=0x0;_0x6533da--)(_0x33ff3d=_0x23c0f3[_0x6533da])&&(_0xd7e99b=_0x33ff3d(_0xd7e99b)||_0xd7e99b);return _0xd7e99b;},se=(_0x19a4ca,_0x5264a5)=>(_0xc80860,_0x3a52fb)=>_0x5264a5(_0xc80860,_0x3a52fb,_0x19a4ca);let ae=class extends _0x325e21{constructor(_0x14cc19,_0xdf52f4,_0x2948c2,_0x357e48){const _0x29b976=_0x46d0db;super(),_(this,_0x29b976(0x27b),new _0xe5dabe(_0x3a48be[_0x29b976(0x35c)])),(this[_0x29b976(0x267)]=_0x14cc19,this['_injector']=_0xdf52f4,this['_collaborationController']=_0x2948c2,this[_0x29b976(0x36c)]=_0x357e48,this[_0x29b976(0x36b)](),this[_0x29b976(0x38a)]());}['_initStatusListener'](){const _0x225624=_0x46d0db;this[_0x225624(0x365)](this['_univerInstanceService']['focused$'][_0x225624(0x303)](_0xd3a12e(()=>{const _0x2e0bf3=_0x225624,_0x14f396=this[_0x2e0bf3(0x267)][_0x2e0bf3(0x3f5)]();return _0x14f396?this['_collaborationController']['getCollabEntity$'](_0x14f396[_0x2e0bf3(0x226)]()):_0x45fb3c(null);}),_0xd3a12e(_0x1019e7=>_0x1019e7?_0x1019e7[_0x225624(0x283)]:_0x45fb3c(_0x3a48be[_0x225624(0x35c)])))[_0x225624(0x22d)](_0x587d11=>{const _0x567be4=_0x225624;this[_0x567be4(0x27b)][_0x567be4(0x3b6)](_0x587d11);}));}[_0x46d0db(0x36b)](){const _0x5608de=_0x46d0db;this['disposeWithMe'](this[_0x5608de(0x36c)][_0x5608de(0x28a)](_0x5de6e0[_0x5608de(0x271)],()=>_0x2a8b05(Ni({'status$':this['_status$'][_0x5608de(0x210)]()}),this[_0x5608de(0x278)])));}};ae=Di([se(0x0,_0x2b2591),se(0x1,_0xea701b(_0x29824e)),se(0x2,_0xea701b(_0x1e646e)),se(0x3,_0x5d7c5f)],ae);function Ni(_0x36b44c){const {status$:_0x36a821}=_0x36b44c;return function(){return _0x51cab3(Ci,{'status$':_0x36a821});};}const yt=_0xc99d95(_0x46d0db(0x353));var bi=Object[_0x46d0db(0x3db)],Li=(_0x5045cc,_0x1daaa2,_0x4ef640,_0x425ac7)=>{for(var _0x589ae3=_0x425ac7>0x1?void 0x0:_0x425ac7?bi(_0x1daaa2,_0x4ef640):_0x1daaa2,_0x7b8bbe=_0x5045cc['length']-0x1,_0x1e41ad;_0x7b8bbe>=0x0;_0x7b8bbe--)(_0x1e41ad=_0x5045cc[_0x7b8bbe])&&(_0x589ae3=_0x1e41ad(_0x589ae3)||_0x589ae3);return _0x589ae3;},K=(_0x8f41e0,_0x56d2c8)=>(_0x52ff76,_0x2c82f9)=>_0x56d2c8(_0x52ff76,_0x2c82f9,_0x8f41e0);let ce=class extends _0x4128f2{constructor(_0x4103a8,_0x26f48b,_0x437821,_0x13bd41,_0x182ad7){const _0x38fa40=_0x46d0db;super(),this[_0x38fa40(0x275)]=_0x4103a8,this[_0x38fa40(0x281)]=_0x26f48b,this[_0x38fa40(0x34c)]=_0x437821,this[_0x38fa40(0x25e)]=_0x13bd41,_0x182ad7?_0x182ad7==null||_0x182ad7['whenReady']()[_0x38fa40(0x1e8)](()=>this['_init']()):(this[_0x38fa40(0x281)][_0x38fa40(0x3f4)](_0x38fa40(0x3f9),_0x38fa40(0x416)),this[_0x38fa40(0x389)]());}async['_init'](){const _0xbb5ac3=_0x46d0db,_0x3443d7=this[_0xbb5ac3(0x275)][_0xbb5ac3(0x235)](_0xbb5ac3(0x3d2)),_0x15daf7=this[_0xbb5ac3(0x275)][_0xbb5ac3(0x235)](_0xbb5ac3(0x266)),_0x525be5=this[_0xbb5ac3(0x275)][_0xbb5ac3(0x235)](_0xbb5ac3(0x30f));if(!_0x3443d7||!_0x15daf7){this[_0xbb5ac3(0x281)][_0xbb5ac3(0x3f4)](_0xbb5ac3(0x3f9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x21b5df=await this[_0xbb5ac3(0x25e)]['loadUnit'](_0x3443d7,Number(_0x15daf7),_0x525be5);_0x21b5df&&_0x21b5df instanceof _0x725426&&this[_0xbb5ac3(0x2cf)](_0x21b5df);}async[_0x46d0db(0x2cf)](_0x300596){const _0x5a6621=_0x46d0db;await this[_0x5a6621(0x3cc)](_0x300596),_0x300596[_0x5a6621(0x345)][_0x5a6621(0x303)](_0x3a9d76(this['dispose$']))[_0x5a6621(0x22d)](_0x4e0f94=>{_0x4e0f94&&this['_updateURLWithCurrentState'](_0x4e0f94);}),this[_0x5a6621(0x275)][_0x5a6621(0x39f)][_0x5a6621(0x303)](_0x3a9d76(this[_0x5a6621(0x2b3)]))[_0x5a6621(0x22d)](()=>this[_0x5a6621(0x3cc)](_0x300596));}['_updateURLWithCurrentState'](_0x18ab3f,_0x16feaf=!0x1){const _0xe0cd51=_0x46d0db,_0xee51f7=this[_0xe0cd51(0x275)]['getParam'](_0xe0cd51(0x30f));_0x18ab3f[_0xe0cd51(0x3d1)]()!==_0xee51f7&&this[_0xe0cd51(0x275)][_0xe0cd51(0x317)](_0xe0cd51(0x30f),_0x18ab3f[_0xe0cd51(0x3d1)](),_0x16feaf);}async['_updateSubUnitFromURLParams'](_0x2fd3bd){const _0x335248=_0x46d0db;var _0x12050c;const _0x3f517f=this[_0x335248(0x275)][_0x335248(0x235)](_0x335248(0x30f));if(!_0x3f517f||!_0x2fd3bd[_0x335248(0x22a)](_0x3f517f)){const _0xfc5fa0=_0x2fd3bd['getUnhiddenWorksheets']()[0x0],_0xf8683c=_0x2fd3bd[_0x335248(0x22a)](_0xfc5fa0);if(!_0xf8683c)return;this[_0x335248(0x3ba)](_0xf8683c,!0x0),await this[_0x335248(0x34c)][_0x335248(0x296)](_0x1bdbdc['id'],{'unitId':_0x2fd3bd[_0x335248(0x226)](),'subUnitId':_0xfc5fa0});return;}((_0x12050c=_0x2fd3bd[_0x335248(0x383)]())==null?void 0x0:_0x12050c['getSheetId']())!==_0x3f517f&&await this[_0x335248(0x34c)][_0x335248(0x296)](_0x1bdbdc['id'],{'unitId':_0x2fd3bd[_0x335248(0x226)](),'subUnitId':_0x3f517f});}};ce=Li([K(0x0,yt),K(0x1,_0xf63a71),K(0x2,_0x1f0fa6),K(0x3,_0xea701b(_0x549625)),K(0x4,_0x12132d(_0x35262a))],ce);var Ui=Object[_0x46d0db(0x3db)],Mi=(_0x5761ec,_0xd15fdd,_0x3e545d,_0x3bd9ac)=>{const _0x46d8d2=_0x46d0db;for(var _0xcac2c6=_0x3bd9ac>0x1?void 0x0:_0x3bd9ac?Ui(_0xd15fdd,_0x3e545d):_0xd15fdd,_0x43291c=_0x5761ec[_0x46d8d2(0x3c7)]-0x1,_0x1520b6;_0x43291c>=0x0;_0x43291c--)(_0x1520b6=_0x5761ec[_0x43291c])&&(_0xcac2c6=_0x1520b6(_0xcac2c6)||_0xcac2c6);return _0xcac2c6;},rt=(_0x4e9e65,_0x379c62)=>(_0x42a586,_0x43f04f)=>_0x379c62(_0x42a586,_0x43f04f,_0x4e9e65);let $e=class extends _0x4128f2{constructor(_0x566683,_0x472920){const _0x203373=_0x46d0db;super(),this[_0x203373(0x25c)]=_0x566683,this['_imageIoService']=_0x472920,this[_0x203373(0x389)]();}[_0x46d0db(0x389)](){const _0x24d27e=_0x46d0db,_0x115c97=this;this[_0x24d27e(0x365)](this['_docClipboardService'][_0x24d27e(0x3bc)]({'onBeforePasteImage':async _0x16913d=>{const _0x23f073=_0x24d27e,_0x2598e3=await _0x115c97[_0x23f073(0x1d6)][_0x23f073(0x2c1)](_0x16913d);return _0x2598e3?{'source':_0x2598e3[_0x23f073(0x2a1)],'imageSourceType':_0x2598e3[_0x23f073(0x344)]}:null;}}));}};$e=Mi([rt(0x0,_0x6db524),rt(0x1,_0x18da6b)],$e);const ot=[_0x46d0db(0x2c4),'jiqing.500',_0x46d0db(0x360),'red.300',_0x46d0db(0x21e),'yellow.400'];class Ke extends _0x325e21{constructor(){const _0x10ba9b=_0x46d0db;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x10ba9b(0x299),0x0);}['assignAColorForMemberID'](_0x5d0e31){const _0x2b74dc=_0x46d0db;if(this[_0x2b74dc(0x2da)][_0x2b74dc(0x325)](_0x5d0e31))return this['_assignedColors'][_0x2b74dc(0x387)](_0x5d0e31);const _0x303d6e=ot[this[_0x2b74dc(0x299)]];return this[_0x2b74dc(0x299)]=(this[_0x2b74dc(0x299)]+0x1)%ot[_0x2b74dc(0x3c7)],this[_0x2b74dc(0x2da)][_0x2b74dc(0x32b)](_0x5d0e31,_0x303d6e),_0x303d6e;}}function $t(_0x49bcfe){const _0x2bb74a=_0x46d0db;let _0x2c2038='';for(const _0x393a17 of _0x49bcfe){const {startOffset:_0x483e31,endOffset:_0x744be1,isActive:_0x2587c9,rangeType:_0x59948a,segmentId:_0x1cbeff,segmentPage:_0x5977cc}=_0x393a17;_0x2c2038[_0x2bb74a(0x3c7)]&&(_0x2c2038+=','),_0x2c2038+=_0x483e31+':'+_0x744be1+':'+(_0x2587c9?'1':'0')+':'+_0x59948a+':'+_0x1cbeff+':'+_0x5977cc;}return _0x2c2038;}function Ai(_0x469389){const _0x1e184c=_0x46d0db,_0x22d898=_0x469389['split'](','),_0x15b4da=[];for(const _0x393ccd of _0x22d898){const [_0x782baf,_0x4b28a9,_0x53563a,_0x43b074,_0x3f4549,_0x4d1e61]=_0x393ccd['split'](':');_0x15b4da[_0x1e184c(0x2ac)]({'startOffset':Number(_0x782baf),'endOffset':Number(_0x4b28a9),'collapsed':_0x782baf===_0x4b28a9,'isActive':_0x53563a==='1','rangeType':_0x43b074===_0x4dd949[_0x1e184c(0x22c)]?_0x4dd949['TEXT']:_0x4dd949['RECT'],'segmentId':typeof _0x3f4549==_0x1e184c(0x347)?String(_0x3f4549):'','segmentPage':Number(_0x4d1e61!=null?_0x4d1e61:-0x1)});}return _0x15b4da[_0x1e184c(0x363)](_0x5adef2=>_0x5adef2[_0x1e184c(0x3ed)])||(_0x15b4da[0x0][_0x1e184c(0x3ed)]=!0x0),_0x15b4da;}class ze extends _0x4128f2{constructor(){const _0x2b4a82=_0x46d0db;super(...arguments),_(this,'_collabCursorState$',new _0xe5dabe(null)),_(this,_0x2b4a82(0x22b),this['_collabCursorState$'][_0x2b4a82(0x210)]());}[_0x46d0db(0x2f6)](_0x5108f7){const {unitID:_0x1c8bbc,memberID:_0x2617db,textRanges:_0x1955d4}=_0x5108f7,_0x32e84e=$t(_0x1955d4);if(_0x32e84e==='')return;const _0x10ca2a={'unitID':_0x1c8bbc,'memberID':_0x2617db,'selection':_0x32e84e};this['_collabCursorState$']['next'](_0x10ca2a);}}function _0x4fdf(_0x5a41c9,_0x300bc5){_0x5a41c9=_0x5a41c9-0x1c9;const _0x55b3d7=_0x55b3();let _0x4fdf3c=_0x55b3d7[_0x5a41c9];return _0x4fdf3c;}var Pi=Object[_0x46d0db(0x3db)],wi=(_0x5a014a,_0x362a3,_0x244442,_0x3357c3)=>{const _0x47fb51=_0x46d0db;for(var _0x2e32df=_0x3357c3>0x1?void 0x0:_0x3357c3?Pi(_0x362a3,_0x244442):_0x362a3,_0x4c8ea6=_0x5a014a[_0x47fb51(0x3c7)]-0x1,_0x19cd54;_0x4c8ea6>=0x0;_0x4c8ea6--)(_0x19cd54=_0x5a014a[_0x4c8ea6])&&(_0x2e32df=_0x19cd54(_0x2e32df)||_0x2e32df);return _0x2e32df;},A=(_0x558e59,_0x348ab1)=>(_0x3e4c0f,_0x3f3a94)=>_0x348ab1(_0x3e4c0f,_0x3f3a94,_0x558e59);const yi=0x12c,$i=0x64;let xe=class extends _0x4128f2{constructor(_0x1106ec,_0x33a0c5,_0x9fc2cc,_0xb6873a,_0x392f4b,_0x1f6fde,_0x255224,_0xd46c80,_0x512635){const _0x30b273=_0x46d0db;super(),_(this,_0x30b273(0x1fe),!0x1),_(this,_0x30b273(0x389),!0x1),_(this,'_cursorInfo$',new _0xe5dabe(new Map())),_(this,_0x30b273(0x375),this[_0x30b273(0x357)][_0x30b273(0x210)]()),_(this,_0x30b273(0x305),new _0xe5dabe([])),_(this,'roomMembers$',this['_roomMembers$'][_0x30b273(0x303)](_0x225383(yi))),_(this,'_updateLocalCursor',_0x1530e6(_0x3632ef=>{const _0x3df72a=_0x30b273,_0x4651fb={'eventID':_0x3e05c7[_0x3df72a(0x26c)],'data':{'unitID':this[_0x3df72a(0x23d)],'memberID':this[_0x3df72a(0x38b)][_0x3df72a(0x32e)](),'selection':$t(_0x3632ef)}};this['_session'][_0x3df72a(0x341)](_0x4651fb,this[_0x3df72a(0x23d)]);},$i)),(this[_0x30b273(0x23d)]=_0x1106ec,this[_0x30b273(0x38b)]=_0x33a0c5,this[_0x30b273(0x278)]=_0x9fc2cc,this[_0x30b273(0x358)]=_0xb6873a,this[_0x30b273(0x227)]=_0x392f4b,this[_0x30b273(0x23c)]=_0x1f6fde,this[_0x30b273(0x297)]=_0x255224,this[_0x30b273(0x267)]=_0xd46c80,this[_0x30b273(0x34c)]=_0x512635);}get[_0x46d0db(0x3eb)](){const _0x1caa38=_0x46d0db;return this[_0x1caa38(0x357)][_0x1caa38(0x400)]();}get[_0x46d0db(0x331)](){const _0x7a1793=_0x46d0db;return this[_0x7a1793(0x305)]['getValue']();}[_0x46d0db(0x339)](){const _0xa9d9d0=_0x46d0db;super[_0xa9d9d0(0x339)](),this[_0xa9d9d0(0x357)][_0xa9d9d0(0x3b6)](new Map()),this[_0xa9d9d0(0x357)]['complete'](),this[_0xa9d9d0(0x305)][_0xa9d9d0(0x3b6)]([]),this[_0xa9d9d0(0x305)][_0xa9d9d0(0x401)]();}['init'](){const _0x1dd831=_0x46d0db;this[_0x1dd831(0x389)]||(this['_init']=!0x0,this[_0x1dd831(0x38b)][_0x1dd831(0x352)][_0x1dd831(0x303)](_0x3a9d76(this[_0x1dd831(0x2b3)]))[_0x1dd831(0x22d)](_0x5c387f=>{const _0x227433=_0x1dd831;_0x5c387f===_0x61e47f[_0x227433(0x3c0)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1dd831(0x38b)][_0x1dd831(0x212)][_0x1dd831(0x303)](_0x3a9d76(this['dispose$']))['subscribe'](_0xc34976=>{const _0xb5f264=_0x1dd831,_0x59b7b4=_0xc34976[_0xb5f264(0x386)];_0x59b7b4===_0x3e05c7['UPDATE_CURSOR']&&this[_0xb5f264(0x342)](_0xc34976),_0x59b7b4===_0x3e05c7[_0xb5f264(0x3d6)]&&this[_0xb5f264(0x3b0)](_0xc34976);}),this[_0x1dd831(0x365)](this[_0x1dd831(0x34c)][_0x1dd831(0x3a8)](_0x5cd9b6=>{const _0x1644ff=_0x1dd831,_0xeb71ab=_0x5cd9b6['params'];_0xeb71ab!=null&&this[_0x1644ff(0x1fe)]&&_0x5cd9b6['id']===_0x30df8b['id']&&_0xeb71ab[_0x1644ff(0x2f9)]===this['unitID']&&_0xeb71ab[_0x1644ff(0x2d4)]===!0x1&&_0xeb71ab['ranges'][_0x1644ff(0x3c7)]>0x0&&this[_0x1644ff(0x2ae)](_0xeb71ab[_0x1644ff(0x304)]);})),this[_0x1dd831(0x23c)][_0x1dd831(0x22b)]['pipe'](_0x3a9d76(this[_0x1dd831(0x2b3)]))[_0x1dd831(0x22d)](_0x3e3efb=>{const _0x169b35=_0x1dd831;if((_0x3e3efb==null?void 0x0:_0x3e3efb['unitID'])!==this['unitID'])return;const _0x16ecf5={'eventID':_0x3e05c7['UPDATE_CURSOR'],'data':_0x3e3efb};this[_0x169b35(0x342)](_0x16ecf5);}),this[_0x1dd831(0x365)](this['_commandService'][_0x1dd831(0x3a8)](_0x422290=>{const _0x2ee225=_0x1dd831;if(_0x422290[_0x2ee225(0x2a9)]==null)return;const _0x3261b4=_0x422290['params'];if(_0x422290['id']!==_0xef6574['id']||_0x3261b4[_0x2ee225(0x2f9)]!==this[_0x2ee225(0x23d)])return;const _0x41a97e={'id':_0x2ee225(0x26b),'params':_0x3261b4},_0x229c3c=this[_0x2ee225(0x3eb)];for(const [_0x5e4074,_0x36975c]of _0x229c3c){const _0xae5a10={'id':_0x2ee225(0x26b),'params':{'unitId':this[_0x2ee225(0x23d)],'actions':null,'textRanges':_0x36975c[_0x2ee225(0x304)]}},_0x38e56e=this['_transformService'][_0x2ee225(0x367)](_0x41a97e,_0xae5a10,!0x1);if(_0xe71731(_0x38e56e))throw _0x38e56e[_0x2ee225(0x263)];_0x229c3c[_0x2ee225(0x32b)](_0x5e4074,{..._0x36975c,'ranges':_0x38e56e[_0x2ee225(0x3a3)][_0x2ee225(0x2a9)][_0x2ee225(0x319)]});}queueMicrotask(()=>{const _0x4834bc=_0x2ee225;this[_0x4834bc(0x357)][_0x4834bc(0x3b6)](_0x229c3c);});})));}[_0x46d0db(0x342)](_0x5504c9){const _0x5b3fb6=_0x46d0db;var _0x3eb874,_0x326117;const {memberID:_0x4a2093,selection:_0x214f73}=_0x5504c9['data'],_0x24985b=Ai(_0x214f73),_0x4c8fc7=(_0x326117=(_0x3eb874=this[_0x5b3fb6(0x227)][_0x5b3fb6(0x33a)](this[_0x5b3fb6(0x23d)],_0x4a2093))==null?void 0x0:_0x3eb874[_0x5b3fb6(0x1d5)])!=null?_0x326117:_0x5b3fb6(0x3c2),_0x16daaf={'color':this[_0x5b3fb6(0x358)][_0x5b3fb6(0x22e)](_0x4a2093),'name':_0x4c8fc7,'ranges':_0x24985b},_0x3a4720=this['cursorInfo'];_0x3a4720[_0x5b3fb6(0x32b)](_0x4a2093,_0x16daaf),this[_0x5b3fb6(0x357)]['next'](_0x3a4720);}['_onCursorDelete'](_0x15864e){const _0x167cd3=_0x46d0db,{memberID:_0x58615f}=_0x15864e['data'],_0x29314b=this[_0x167cd3(0x3eb)];_0x29314b[_0x167cd3(0x291)](_0x58615f),this[_0x167cd3(0x357)][_0x167cd3(0x3b6)](_0x29314b);}[_0x46d0db(0x35e)](){const _0x503aff=_0x46d0db;var _0xf4bd7d;if(this[_0x503aff(0x1fe)]=!0x0,((_0xf4bd7d=this[_0x503aff(0x267)][_0x503aff(0x3f5)]())==null?void 0x0:_0xf4bd7d[_0x503aff(0x226)]())!==this['unitID'])return;const _0x19ae3f=this[_0x503aff(0x278)][_0x503aff(0x387)](_0x11d383)[_0x503aff(0x24f)]();Array[_0x503aff(0x1e5)](_0x19ae3f)&&_0x19ae3f[_0x503aff(0x3c7)]>0x0&&this[_0x503aff(0x2ae)](_0x19ae3f);}['_toggleOffline'](){const _0x45d703=_0x46d0db;this[_0x45d703(0x1fe)]=!0x1;}};xe=wi([A(0x2,_0xea701b(_0x29824e)),A(0x3,_0xea701b(Ke)),A(0x4,_0xea701b(_0x245c8d)),A(0x5,_0xea701b(ze)),A(0x6,_0x3ec468),A(0x7,_0x2b2591),A(0x8,_0x1f0fa6)],xe);var xi=Object[_0x46d0db(0x3db)],Bi=(_0x1c1f21,_0x5b4a62,_0x5e7959,_0x2ecd16)=>{for(var _0x5c4ac0=_0x2ecd16>0x1?void 0x0:_0x2ecd16?xi(_0x5b4a62,_0x5e7959):_0x5b4a62,_0x36e97d=_0x1c1f21['length']-0x1,_0x3d6216;_0x36e97d>=0x0;_0x36e97d--)(_0x3d6216=_0x1c1f21[_0x36e97d])&&(_0x5c4ac0=_0x3d6216(_0x5c4ac0)||_0x5c4ac0);return _0x5c4ac0;},B=(_0x4d559f,_0x1ce27c)=>(_0x2dd6d2,_0x43ca55)=>_0x1ce27c(_0x2dd6d2,_0x43ca55,_0x4d559f);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xe608a4=[],_0x130d95=!0x1;return _0x50b751=>{const _0x2c9a99=_0x4fdf;_0xe608a4[_0x2c9a99(0x2ac)](_0x50b751),_0x130d95||(_0x130d95=!0x0,setTimeout(()=>{const _0x1156b6=_0x2c9a99;_0xe608a4[_0x1156b6(0x207)](_0x1d441f=>_0x1d441f()),_0xe608a4=[],_0x130d95=!0x1;}));};};let Be=class extends _0x4128f2{constructor(_0x4b8e33,_0x4b32e3,_0x2173dc,_0x1c962a,_0x4a0b25,_0x2439a4,_0x357864,_0x23b4a6){const _0x3d94c2=_0x46d0db;super(),_(this,_0x3d94c2(0x1fe),!0x1),_(this,_0x3d94c2(0x389),!0x1),_(this,_0x3d94c2(0x357),new _0xe5dabe(new Map())),_(this,_0x3d94c2(0x375),this[_0x3d94c2(0x357)][_0x3d94c2(0x210)]()),_(this,_0x3d94c2(0x305),new _0xe5dabe([])),_(this,_0x3d94c2(0x232),this['_roomMembers$'][_0x3d94c2(0x303)](_0x225383(Fi))),_(this,_0x3d94c2(0x2ae),_0x1530e6((_0x15b374,_0x19de36)=>{const _0x4e8f02=_0x3d94c2,_0xb036c={'eventID':_0x3e05c7[_0x4e8f02(0x26c)],'data':{'unitID':this[_0x4e8f02(0x23d)],'memberID':this[_0x4e8f02(0x38b)]['getMemberID'](),'selection':_0x545e12(_0x15b374,_0x19de36[_0x4e8f02(0x3a2)])}};this[_0x4e8f02(0x38b)][_0x4e8f02(0x341)](_0xb036c,this['unitID']);},ki)),(this['unitID']=_0x4b8e33,this[_0x3d94c2(0x38b)]=_0x4b32e3,this['_injector']=_0x2173dc,this[_0x3d94c2(0x358)]=_0x1c962a,this[_0x3d94c2(0x227)]=_0x4a0b25,this[_0x3d94c2(0x267)]=_0x2439a4,this[_0x3d94c2(0x34c)]=_0x357864,this[_0x3d94c2(0x1ca)]=_0x23b4a6);}get['cursorInfo'](){const _0x25f980=_0x46d0db;return this[_0x25f980(0x357)]['getValue']();}get[_0x46d0db(0x331)](){const _0xf0220=_0x46d0db;return this[_0xf0220(0x305)]['getValue']();}[_0x46d0db(0x339)](){const _0x548320=_0x46d0db;super[_0x548320(0x339)](),this[_0x548320(0x357)][_0x548320(0x3b6)](new Map()),this[_0x548320(0x357)]['complete'](),this[_0x548320(0x305)][_0x548320(0x3b6)]([]),this[_0x548320(0x305)][_0x548320(0x401)]();}['init'](){const _0x588d08=_0x46d0db;this[_0x588d08(0x389)]||(this[_0x588d08(0x389)]=!0x0,this['_session'][_0x588d08(0x352)][_0x588d08(0x303)](_0x3a9d76(this[_0x588d08(0x2b3)]))[_0x588d08(0x22d)](_0x588dc4=>{const _0x5ae36a=_0x588d08;_0x588dc4===_0x61e47f[_0x5ae36a(0x3c0)]?this[_0x5ae36a(0x35e)]():this[_0x5ae36a(0x3d9)]();}),this[_0x588d08(0x38b)]['event$'][_0x588d08(0x303)](_0x3a9d76(this[_0x588d08(0x2b3)]))[_0x588d08(0x22d)](_0x38f5d1=>{const _0x3169b6=_0x588d08,_0xf0ee90=_0x38f5d1[_0x3169b6(0x386)];_0xf0ee90===_0x3e05c7['UPDATE_CURSOR']&&this[_0x3169b6(0x342)](_0x38f5d1),_0xf0ee90===_0x3e05c7['USERS_LEAVE']&&this[_0x3169b6(0x3b0)](_0x38f5d1);}),this[_0x588d08(0x3ac)](),this[_0x588d08(0x365)](this[_0x588d08(0x34c)][_0x588d08(0x3a8)](_0x19da73=>{const _0x16f970=_0x588d08;if(this[_0x16f970(0x1fe)]&&_0x19da73['id']===_0x508f0e['id']&&_0x19da73[_0x16f970(0x2a9)][_0x16f970(0x2f9)]===this['unitID']){const _0x5eee35=_0x19da73[_0x16f970(0x2a9)];this[_0x16f970(0x2ae)](_0x5eee35['subUnitId'],_0x5eee35[_0x16f970(0x25d)][0x0]);}})));}[_0x46d0db(0x342)](_0x232f3c){const _0x376c1c=_0x46d0db;var _0x238c91,_0x11d871;const {memberID:_0x58cfd9,selection:_0x267e6a}=_0x232f3c[_0x376c1c(0x2ca)],{sheetName:_0x4ef5b4,range:_0x26be10}=_0x85a7b4(_0x267e6a),_0x4090aa={'name':(_0x11d871=(_0x238c91=this[_0x376c1c(0x227)][_0x376c1c(0x33a)](this[_0x376c1c(0x23d)],_0x58cfd9))==null?void 0x0:_0x238c91['name'])!=null?_0x11d871:_0x376c1c(0x3c2),'range':this[_0x376c1c(0x1ec)](_0x4ef5b4,_0x26be10),'sheetID':_0x4ef5b4,'color':this[_0x376c1c(0x358)][_0x376c1c(0x22e)](_0x58cfd9),'selection':_0x267e6a},_0x585c23=this['cursorInfo'];_0x585c23[_0x376c1c(0x32b)](_0x58cfd9,_0x4090aa),this['_cursorInfo$'][_0x376c1c(0x3b6)](_0x585c23);}['_onCursorDelete'](_0x54b1f5){const _0x867acb=_0x46d0db,{memberID:_0x3b0e89}=_0x54b1f5['data'],_0xad2ba9=this['cursorInfo'];_0xad2ba9[_0x867acb(0x291)](_0x3b0e89),this[_0x867acb(0x357)][_0x867acb(0x3b6)](_0xad2ba9);}['_getMergeRange'](_0x1f9bb0,_0x5eaa1e){const _0x1f3259=_0x46d0db;var _0x16d8f2,_0x241267;const _0x414913=(_0x241267=(_0x16d8f2=this[_0x1f3259(0x267)][_0x1f3259(0x3aa)](this[_0x1f3259(0x23d)]))==null?void 0x0:_0x16d8f2[_0x1f3259(0x22a)](_0x1f9bb0))==null?void 0x0:_0x241267[_0x1f3259(0x3b8)]();return(_0x414913==null?void 0x0:_0x414913['find'](_0x5e2eee=>_0x26b4f0[_0x1f3259(0x315)](_0x5e2eee,_0x5eaa1e)))||_0x5eaa1e;}[_0x46d0db(0x3ac)](){const _0x12486e=_0x46d0db,_0x192b77=new _0x4f5214(),_0x4802aa=Hi(),_0x41b8a6=()=>{const _0x329c89=_0x4fdf;_0x192b77[_0x329c89(0x339)]();const _0x14c4fa=(_0x4c394f,_0x25ec36,_0x4edad3,_0x3460e9)=>{const _0x326f9c=_0x329c89;let _0x2d6fbb=[];switch(_0x4c394f['id']){case _0x5a6104['DeleteRangeMoveLeftCommandId']:{_0x2d6fbb=_0x2f32e9(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x3c4)]:{_0x2d6fbb=_0x2a052e(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x39d)]:{_0x2d6fbb=_0x34e3c9(_0x4c394f,_0x3460e9);break;}case _0x5a6104['InsertRangeMoveDownCommandId']:{_0x2d6fbb=_0x53880d(_0x4c394f,_0x3460e9);break;}case _0x5a6104['InsertRangeMoveRightCommandId']:{_0x2d6fbb=_0x326a81(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x2eb)]:{_0x2d6fbb=_0x52d453(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x3b4)]:{_0x2d6fbb=_0x17daf7(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x295)]:{_0x2d6fbb=_0x4b771b(_0x4c394f,_0x3460e9);break;}case _0x5a6104['RemoveRowCommandId']:{_0x2d6fbb=_0x3ecfc5(_0x4c394f,_0x3460e9);break;}}const _0x275c09=_0x544486(_0x2d6fbb,_0x3460e9),_0x265f30=this[_0x326f9c(0x3eb)][_0x326f9c(0x387)](_0x25ec36);if(_0x265f30&&_0x275c09){const _0x10007e={..._0x265f30,'range':_0x275c09};this['cursorInfo'][_0x326f9c(0x32b)](_0x25ec36,_0x10007e),_0x4802aa(()=>{const _0x236e97=_0x326f9c,_0xdda180=this['_refRangeService'][_0x236e97(0x20c)](_0x275c09,_0x5c7a10=>(_0xdda180[_0x236e97(0x339)](),_0x14c4fa(_0x5c7a10,_0x25ec36,_0x4edad3,_0x275c09)));_0x192b77['add'](_0xdda180);});}return{'redos':[],'undos':[]};};this[_0x329c89(0x3eb)][_0x329c89(0x207)]((_0x334698,_0x43f223)=>{const _0x2ee843=_0x329c89,{range:_0xec810f,sheetID:_0x1120f9}=_0x334698,_0x19248e=this[_0x2ee843(0x1ca)][_0x2ee843(0x20c)](_0xec810f,_0x542bd2=>(_0x19248e['dispose'](),_0x14c4fa(_0x542bd2,_0x43f223,_0x1120f9,_0xec810f)));_0x192b77[_0x2ee843(0x3b9)](_0x19248e);});};this[_0x12486e(0x365)](_0xd54434(this[_0x12486e(0x357)][_0x12486e(0x22d)](()=>{_0x41b8a6();})));}[_0x46d0db(0x35e)](){const _0x2cd06b=_0x46d0db;var _0x321e1b,_0xd42dfb;if(this[_0x2cd06b(0x1fe)]=!0x0,((_0x321e1b=this[_0x2cd06b(0x267)][_0x2cd06b(0x3f5)]())==null?void 0x0:_0x321e1b['getUnitId']())!==this['unitID'])return;const _0x1955bd=(_0xd42dfb=this[_0x2cd06b(0x278)][_0x2cd06b(0x387)](_0x152304)['getCurrentSelections']())==null?void 0x0:_0xd42dfb[0x0],_0xee4dca=this[_0x2cd06b(0x267)][_0x2cd06b(0x35b)](_0xee6b2[_0x2cd06b(0x3af)])[_0x2cd06b(0x383)]();_0x1955bd&&_0xee4dca&&this[_0x2cd06b(0x2ae)](_0xee4dca[_0x2cd06b(0x3d1)](),_0x1955bd);}['_toggleOffline'](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0xea701b(_0x29824e)),B(0x3,_0xea701b(Ke)),B(0x4,_0xea701b(_0x245c8d)),B(0x5,_0x2b2591),B(0x6,_0x1f0fa6),B(0x7,_0xea701b(_0x1ea0ab))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x1ebcf4,_0x26ee10,_0x404607,_0x3fcd98)=>{const _0x519c0c=_0x46d0db;for(var _0x49f17b=_0x3fcd98>0x1?void 0x0:_0x3fcd98?Yi(_0x26ee10,_0x404607):_0x26ee10,_0x5b8585=_0x1ebcf4[_0x519c0c(0x3c7)]-0x1,_0x1cfd3e;_0x5b8585>=0x0;_0x5b8585--)(_0x1cfd3e=_0x1ebcf4[_0x5b8585])&&(_0x49f17b=_0x1cfd3e(_0x49f17b)||_0x49f17b);return _0x49f17b;},Ce=(_0x46efb9,_0x22996a)=>(_0x5ba909,_0x47ba2a)=>_0x22996a(_0x5ba909,_0x47ba2a,_0x46efb9);let H=class extends _0x4128f2{constructor(_0x418b39,_0x48d4fe,_0x11d306){const _0x35839d=_0x46d0db;super(),_(this,_0x35839d(0x411),new Map()),_(this,_0x35839d(0x2a2),new _0x4f3095()),(this[_0x35839d(0x267)]=_0x418b39,this[_0x35839d(0x278)]=_0x48d4fe,this['_collabSessionService']=_0x11d306,this[_0x35839d(0x389)]());}[_0x46d0db(0x339)](){const _0x133571=_0x46d0db;super[_0x133571(0x339)](),this[_0x133571(0x2a2)][_0x133571(0x401)](),this[_0x133571(0x411)][_0x133571(0x207)](_0xa97fc3=>_0xa97fc3[_0x133571(0x339)]());}[_0x46d0db(0x3ff)](_0x54822b){const _0x26c104=_0x46d0db;return this[_0x26c104(0x411)]['has'](_0x54822b)?this[_0x26c104(0x411)][_0x26c104(0x387)](_0x54822b)['cursorInfo$']:this[_0x26c104(0x2a2)]['pipe'](_0x271fea(_0x15c1e8=>_0x15c1e8['unitID']===_0x54822b),_0xd3a12e(_0x37f3b5=>_0x37f3b5['cursorInfo$']));}['_init'](){const _0x12de67=_0x46d0db;this[_0x12de67(0x267)]['getTypeOfUnitAdded$'](_0xee6b2[_0x12de67(0x3af)])['pipe'](_0x3a9d76(this[_0x12de67(0x2b3)]))[_0x12de67(0x22d)](async _0x57b2f0=>{const _0x31823f=_0x12de67,_0x163984=_0x57b2f0['getUnitId'](),_0x3fa9d0=await this[_0x31823f(0x38f)](_0x163984);this['_entityInit$'][_0x31823f(0x3b6)](_0x3fa9d0),this[_0x31823f(0x411)][_0x31823f(0x32b)](_0x163984,_0x3fa9d0);}),this[_0x12de67(0x267)][_0x12de67(0x1d4)](_0xee6b2[_0x12de67(0x36d)])[_0x12de67(0x303)](_0x3a9d76(this['dispose$']))[_0x12de67(0x303)](_0x271fea(_0x8ff100=>!_0x8ff100['getUnitId']()['startsWith']('__')))[_0x12de67(0x22d)](async _0x1c2c58=>{const _0x470d6c=_0x12de67,_0x501bb5=_0x1c2c58[_0x470d6c(0x226)](),_0x35d9d4=await this[_0x470d6c(0x29d)](_0x501bb5);this['_entityInit$']['next'](_0x35d9d4),this['_entities'][_0x470d6c(0x32b)](_0x501bb5,_0x35d9d4);}),_0x3bcfd6(this[_0x12de67(0x267)][_0x12de67(0x40e)](_0xee6b2['UNIVER_DOC']),this[_0x12de67(0x267)]['getTypeOfUnitDisposed$'](_0xee6b2['UNIVER_SHEET']))['pipe'](_0x3a9d76(this[_0x12de67(0x2b3)]))[_0x12de67(0x22d)](_0x18b73c=>{const _0x273f22=_0x12de67,_0x44f66f=_0x18b73c[_0x273f22(0x226)](),_0x5acd9c=this[_0x273f22(0x411)]['get'](_0x44f66f);_0x5acd9c&&(_0x5acd9c[_0x273f22(0x339)](),this['_entities'][_0x273f22(0x291)](_0x44f66f));});}async['_startSheetCollabCursor'](_0x1e86cb){const _0xe0a1eb=_0x46d0db,_0x39da22=await this[_0xe0a1eb(0x354)]['requireSession'](_0x1e86cb),_0x43f2d5=this[_0xe0a1eb(0x278)][_0xe0a1eb(0x209)](Be,_0x1e86cb,_0x39da22);return _0x43f2d5[_0xe0a1eb(0x26d)](),_0x43f2d5;}async[_0x46d0db(0x29d)](_0x565a38){const _0x4d1114=_0x46d0db,_0x5cd183=await this[_0x4d1114(0x354)][_0x4d1114(0x398)](_0x565a38),_0x5b2902=this['_injector'][_0x4d1114(0x209)](xe,_0x565a38,_0x5cd183);return _0x5b2902['init'](),_0x5b2902;}};H=Wi([Ce(0x0,_0x2b2591),Ce(0x1,_0xea701b(_0x29824e)),Ce(0x2,_0xea701b(_0x3840d4))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x24006e,_0x595409){const _0x28ae8f=_0x46d0db;let {radius:_0x4998e2,width:_0x249fe3,height:_0x4e3e26}=_0x595409;_0x4998e2=_0x4998e2!=null?_0x4998e2:0x0,_0x249fe3=_0x249fe3!=null?_0x249fe3:0x1e,_0x4e3e26=_0x4e3e26!=null?_0x4e3e26:0x1e;let _0x259a8c=0x0,_0x5959a4=0x0,_0x5dc825=0x0;_0x259a8c=_0x5959a4=_0x5dc825=Math['min'](_0x4998e2,_0x249fe3/0x2,_0x4e3e26/0x2),_0x24006e[_0x28ae8f(0x277)](),_0x24006e[_0x28ae8f(0x25b)](_0x259a8c,0x0),_0x24006e[_0x28ae8f(0x2b5)](_0x249fe3-_0x5959a4,0x0),_0x24006e[_0x28ae8f(0x265)](_0x249fe3-_0x5959a4,_0x5959a4,_0x5959a4,Math['PI']*0x3/0x2,0x0,!0x1),_0x24006e[_0x28ae8f(0x2b5)](_0x249fe3,_0x4e3e26-_0x5dc825),_0x24006e[_0x28ae8f(0x265)](_0x249fe3-_0x5dc825,_0x4e3e26-_0x5dc825,_0x5dc825,0x0,Math['PI']/0x2,!0x1),_0x24006e[_0x28ae8f(0x2b5)](0x0,_0x4e3e26),_0x24006e['lineTo'](0x0,_0x259a8c),_0x24006e[_0x28ae8f(0x265)](_0x259a8c,_0x259a8c,_0x259a8c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x24006e[_0x28ae8f(0x3fb)](),_0x595409[_0x28ae8f(0x30b)]&&(_0x24006e[_0x28ae8f(0x343)](),_0x24006e[_0x28ae8f(0x2fb)]=_0x595409[_0x28ae8f(0x30b)],_0x595409['fillRule']===_0x28ae8f(0x2ef)?_0x24006e[_0x28ae8f(0x30b)](_0x28ae8f(0x2ef)):_0x24006e[_0x28ae8f(0x30b)](),_0x24006e['restore']());}class ve extends _0x374fb5{constructor(_0x14c295,_0x182741){const _0x1b11a7=_0x46d0db;super(_0x14c295,_0x182741),_(this,_0x1b11a7(0x2d5)),_(this,'text'),(this[_0x1b11a7(0x2d5)]=_0x182741==null?void 0x0:_0x182741['color'],this[_0x1b11a7(0x237)]=_0x182741==null?void 0x0:_0x182741[_0x1b11a7(0x237)]);}static[_0x46d0db(0x374)](_0x24e727,_0x4adafb){const _0x1291c4=_0x46d0db,{text:_0x5029a0,color:_0x406a61}=_0x4adafb;_0x24e727['save'](),_0x24e727[_0x1291c4(0x2d9)]=_0x1291c4(0x41a);const _0x5bcc42=_0x24e727['measureText'](_0x5029a0)['width'],_0x5ead40=Math[_0x1291c4(0x2c6)](_0x5bcc42+0x2*Re,at);ji(_0x24e727,{'height':Q,'radius':0x4,'width':_0x5ead40,'fill':_0x406a61}),_0x24e727[_0x1291c4(0x2fb)]=_0x1291c4(0x251);const _0x46fa59=Re,_0x2bcddf=Q-Vi,_0x33405f=at-0x2*Re;if(_0x5bcc42>_0x33405f){let _0x5267c5='',_0x4df61d=0x0;for(const _0x1621af of _0x5029a0){const _0x7de477=_0x24e727[_0x1291c4(0x2b7)](_0x1621af)[_0x1291c4(0x361)];if(_0x4df61d+_0x7de477<=_0x33405f-_0x24e727[_0x1291c4(0x2b7)](_0x1291c4(0x2ea))[_0x1291c4(0x361)])_0x5267c5+=_0x1621af,_0x4df61d+=_0x7de477;else{_0x5267c5+=_0x1291c4(0x2ea);break;}}_0x24e727[_0x1291c4(0x240)](_0x5267c5,_0x46fa59,_0x2bcddf);}else _0x24e727[_0x1291c4(0x240)](_0x5029a0,_0x46fa59,_0x2bcddf);_0x24e727[_0x1291c4(0x250)]();}[_0x46d0db(0x3d4)](_0x275ac3){ve['drawWith'](_0x275ac3,this);}}const De=_0x46d0db(0x3d8),Xi='collab-text-range-',Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x46d0db(0x30e);class ct{constructor(_0x82bde6,_0x5489f8,_0x4dd358,_0x2d0e40){const _0x2e0b5d=_0x46d0db;_(this,_0x2e0b5d(0x39a),[]),_(this,_0x2e0b5d(0x3ca),null),_(this,_0x2e0b5d(0x284),null),_(this,_0x2e0b5d(0x231),null),_(this,_0x2e0b5d(0x254),null),_(this,_0x2e0b5d(0x3ef),null),(this[_0x2e0b5d(0x3ec)]=_0x82bde6,this[_0x2e0b5d(0x35d)]=_0x5489f8,this[_0x2e0b5d(0x370)]=_0x4dd358,this[_0x2e0b5d(0x3f0)]=_0x2d0e40,this[_0x2e0b5d(0x1e7)]());}set['_hover'](_0x518d33){const _0x509b00=_0x46d0db;_0x518d33?(this[_0x509b00(0x231)]&&this['_anchorDot']['hide'](),this[_0x509b00(0x284)]&&this[_0x509b00(0x284)]['show']()):(this[_0x509b00(0x231)]&&this[_0x509b00(0x231)]['show'](),this[_0x509b00(0x284)]&&this['_textBubble'][_0x509b00(0x334)]());}[_0x46d0db(0x339)](){const _0x188ada=_0x46d0db;for(const _0xe640e of this[_0x188ada(0x39a)])_0xe640e[_0x188ada(0x339)]();this[_0x188ada(0x284)]&&this[_0x188ada(0x284)][_0x188ada(0x339)](),this[_0x188ada(0x231)]&&this['_anchorDot'][_0x188ada(0x339)](),this[_0x188ada(0x3ca)]&&this[_0x188ada(0x3ca)][_0x188ada(0x339)](),this[_0x188ada(0x3ef)]&&this[_0x188ada(0x3ef)]();}['_render'](){const _0xce517f=_0x46d0db;var _0x25f31c;const {_docSkeleton:_0x484996,_document:_0x25d78d}=this,{color:_0x4ad017,name:_0x588314,ranges:_0x6a5180}=this[_0xce517f(0x3ec)],_0x1ca1ce=_0x25d78d['getOffsetConfig'](),{docsLeft:_0x1d3420,docsTop:_0x2ac9b5}=_0x1ca1ce,_0x57d30a=new _0x880a56(_0x1ca1ce,_0x484996);for(const {startOffset:_0x3b879f,endOffset:_0x2553c6,rangeType:_0x168cc8,segmentId:_0x2b37eb,segmentPage:_0x4ecb3b,collapsed:_0x50d834,isActive:_0x1cb8f4}of _0x6a5180){const _0x1b8708=_0x484996[_0xce517f(0x3a7)](_0x3b879f,!0x0,_0x2b37eb,_0x4ecb3b);let _0x57a679=_0x484996[_0xce517f(0x3a7)](_0x2553c6,!0x0,_0x2b37eb,_0x4ecb3b);if(_0x57a679==null&&(_0x57a679=_0x484996['findNodePositionByCharIndex'](_0x2553c6-0x1,!0x1,_0x2b37eb,_0x4ecb3b)),_0x1cb8f4){const {contentBoxPointGroup:_0x53b6ea}=_0x57d30a[_0xce517f(0x3de)](_0x57a679,_0x57a679);if(_0x53b6ea[_0xce517f(0x3c7)]===0x0)continue;this[_0xce517f(0x41b)](_0x4ad017,_0x53b6ea,_0x1d3420,_0x2ac9b5,_0x588314),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x1b8708&&_0x57a679){if(_0x168cc8===_0x4dd949[_0xce517f(0x355)]){const _0x36245f=new _0x42b1b8(_0x1ca1ce,_0x484996),{pointGroup:_0x97a680}=(_0x25f31c=_0x36245f[_0xce517f(0x3de)](_0x1b8708,_0x57a679))!=null?_0x25f31c:{};if(_0x97a680==null||_0x97a680[_0xce517f(0x3c7)]===0x0)continue;this[_0xce517f(0x245)](_0x4ad017,_0x97a680,_0x1d3420,_0x2ac9b5);}else{if(!_0x50d834){const {borderBoxPointGroup:_0x3c274c}=_0x57d30a[_0xce517f(0x3de)](_0x1b8708,_0x57a679);if(_0x3c274c[_0xce517f(0x3c7)]===0x0)continue;this['_drawTextRange'](_0x4ad017,_0x3c274c,_0x1d3420,_0x2ac9b5);}}}}}[_0x46d0db(0x41b)](_0x373eac,_0x278335,_0x5509f0,_0x165ee7,_0x4188a5){const _0x2842ce=_0x46d0db,_0xa4f979=this[_0x2842ce(0x219)](_0x278335),{left:_0x3efb92,top:_0x39f19c,height:_0x37c183}=_0xa4f979,_0x2ffec3=this[_0x2842ce(0x256)](),_0x5ee093=zi/_0x2ffec3,_0x4f1a13=new _0x4dbc14(De+_0x316c01(z),{'left':_0x3efb92+_0x5509f0-_0x5ee093,'top':_0x39f19c+_0x165ee7,'height':_0x37c183,'width':Ki,'fill':_0x373eac||_0x44ad87(_0x3433f6[_0x2842ce(0x3fe)],0x0),'strokeWidth':_0x5ee093,'stroke':Ji,'evented':!0x0});this[_0x2842ce(0x3ca)]=_0x4f1a13,this[_0x2842ce(0x35d)][_0x2842ce(0x29b)](_0x4f1a13,_0x2d25d8);const _0x3a430f=new _0x4dbc14(De+_0x316c01(z),{'left':_0x3efb92+_0x5509f0-_0x5ee093,'top':_0x39f19c+_0x165ee7-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x373eac||_0x44ad87(_0x3433f6['black'],0x0),'strokeWidth':0x0,'stroke':_0x373eac||_0x44ad87(_0x3433f6[_0x2842ce(0x3fe)],0x0),'evented':!0x1});this[_0x2842ce(0x231)]=_0x3a430f,this[_0x2842ce(0x35d)]['addObject'](_0x3a430f,_0x2d25d8);const _0x47b64e=new ve(De+_0x316c01(z),{'left':_0x3efb92+_0x5509f0-_0x5ee093,'top':_0x39f19c+_0x165ee7-Q,'text':_0x4188a5,'color':_0x373eac});this['_textBubble']=_0x47b64e,this['_scene']['addObject'](_0x47b64e,_0x2d25d8),this[_0x2842ce(0x368)]=!0x1;}[_0x46d0db(0x2f7)](){const _0x555150=_0x46d0db,_0x3db6ce=this[_0x555150(0x3ca)][_0x555150(0x1f8)][_0x555150(0x1fa)](()=>{const _0x80618b=_0x555150;this[_0x80618b(0x368)]=!0x0;}),_0x2eca6c=this[_0x555150(0x3ca)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x1330b3=_0x555150;this[_0x1330b3(0x254)]&&clearTimeout(this[_0x1330b3(0x254)]),this[_0x1330b3(0x254)]=setTimeout(()=>{const _0x2fdabc=_0x1330b3;this[_0x2fdabc(0x368)]=!0x1;},0x7d0);});return()=>{const _0x320f3d=_0x555150;_0x3db6ce[_0x320f3d(0x3c6)](),_0x2eca6c[_0x320f3d(0x3c6)]();};}['_drawTextRange'](_0x3eb8bf,_0x5ceda5,_0x17ddea,_0x161bf8){const _0x51523e=_0x46d0db,_0x319cf3=new _0xe4264a(_0x3eb8bf)[_0x51523e(0x24b)](0.2)[_0x51523e(0x33b)](),_0x5304fb=new _0xa81d5e(Xi+_0x316c01(z),{'pointsGroup':_0x5ceda5,'fill':_0x319cf3||_0x44ad87(_0x3433f6[_0x51523e(0x3fe)],0.2),'left':_0x17ddea,'top':_0x161bf8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x51523e(0x39a)][_0x51523e(0x2ac)](_0x5304fb),this[_0x51523e(0x35d)]['addObject'](_0x5304fb,_0x2d25d8);}['_drawRectRange'](_0x1069ab,_0xf773fd,_0x577e49,_0x2fd643){const _0xe4760d=_0x46d0db,_0x506b50=new _0xe4264a(_0x1069ab)[_0xe4760d(0x24b)](0.2)[_0xe4760d(0x33b)](),_0x208671=new _0xa81d5e(Gi+_0x316c01(z),{'pointsGroup':_0xf773fd,'fill':_0x506b50||_0x44ad87(_0x3433f6[_0xe4760d(0x3fe)],0.2),'left':_0x577e49,'top':_0x2fd643,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe4760d(0x39a)][_0xe4760d(0x2ac)](_0x208671),this[_0xe4760d(0x35d)]['addObject'](_0x208671,_0x2d25d8);}[_0x46d0db(0x219)](_0x3cc29b){const _0x395f7f=_0x3cc29b[0x0],_0x142ffe=_0x395f7f[0x0],_0x2e20d0=_0x395f7f[0x2],{x:_0x54d6a0,y:_0x5b454d}=_0x142ffe,{x:_0x5ef8a5,y:_0x55be22}=_0x2e20d0;return{'left':_0x54d6a0,'top':_0x5b454d,'width':_0x5ef8a5-_0x54d6a0,'height':_0x55be22-_0x5b454d};}[_0x46d0db(0x256)](){const _0x1e5925=_0x46d0db,{scaleX:_0x3d5395,scaleY:_0x542587}=this[_0x1e5925(0x35d)][_0x1e5925(0x2b9)]();return Math[_0x1e5925(0x3e0)](_0x3d5395,_0x542587);}}var Zi=Object[_0x46d0db(0x3db)],Qi=(_0x48a8e2,_0x4abcb5,_0x3c064c,_0x14200a)=>{const _0x490a3=_0x46d0db;for(var _0x140abc=_0x14200a>0x1?void 0x0:_0x14200a?Zi(_0x4abcb5,_0x3c064c):_0x4abcb5,_0x4b10ab=_0x48a8e2[_0x490a3(0x3c7)]-0x1,_0xa8f7c1;_0x4b10ab>=0x0;_0x4b10ab--)(_0xa8f7c1=_0x48a8e2[_0x4b10ab])&&(_0x140abc=_0xa8f7c1(_0x140abc)||_0x140abc);return _0x140abc;},ie=(_0xcbd2f0,_0x430112)=>(_0x2a4aa9,_0x1c8111)=>_0x430112(_0x2a4aa9,_0x1c8111,_0xcbd2f0);let Fe=class extends _0x4128f2{constructor(_0x3fb3c2,_0x56d424,_0x353284,_0x531c31,_0x5bd792){const _0x207aac=_0x46d0db;super(),_(this,_0x207aac(0x314),[]),_(this,_0x207aac(0x35f),[]),(this['_context']=_0x3fb3c2,this[_0x207aac(0x417)]=_0x56d424,this[_0x207aac(0x348)]=_0x353284,this['_commandService']=_0x531c31,this[_0x207aac(0x2ed)]=_0x5bd792,this[_0x207aac(0x389)]());}[_0x46d0db(0x389)](){const _0xa5e29e=_0x46d0db,_0x367ac3=this[_0xa5e29e(0x340)][_0xa5e29e(0x2f9)],_0xbdc230=this['_docSkeletonManagerService'];this[_0xa5e29e(0x365)](_0x251a62([this[_0xa5e29e(0x348)][_0xa5e29e(0x3ff)](_0x367ac3),this['_themeService'][_0xa5e29e(0x38d)]])[_0xa5e29e(0x303)](_0x2a3dd6(([_0x27a996,_0x5330c1])=>({'skeleton':_0xbdc230[_0xa5e29e(0x34f)](),'cursors':[..._0x27a996['values']()]['flatMap'](_0x2e6f5e=>({..._0x2e6f5e,'color':this[_0xa5e29e(0x2ed)][_0xa5e29e(0x22f)](_0x2e6f5e['color'])}))})))[_0xa5e29e(0x22d)](_0x1f7ec0=>{const _0x480861=_0xa5e29e;if(this[_0x480861(0x27a)](),_0x1f7ec0){const {skeleton:_0x2f256e,cursors:_0x3c5ea6}=_0x1f7ec0;this['_updateCollabCursors'](_0x2f256e,_0x3c5ea6);}})),this[_0xa5e29e(0x31d)](),this[_0xa5e29e(0x2a0)]();}['_updateCollabCursors'](_0x41f7fa,_0x1ef94d){const _0x3a092a=_0x46d0db,{scene:_0x110b4e,mainComponent:_0xc15b5}=this[_0x3a092a(0x340)],_0x4ea9c6=_0x1ef94d[_0x3a092a(0x2ee)](_0x532296=>new ct(_0x532296,_0x110b4e,_0x41f7fa,_0xc15b5));this[_0x3a092a(0x314)]=_0x4ea9c6,this['_cursors']=_0x1ef94d;}[_0x46d0db(0x27d)](){const _0x158424=_0x46d0db;this[_0x158424(0x27a)]();const {scene:_0x1f8010,mainComponent:_0x400bec}=this[_0x158424(0x340)],_0x39521b=this['_docSkeletonManagerService'][_0x158424(0x34f)](),_0x609487=this[_0x158424(0x35f)][_0x158424(0x2ee)](_0x8a85df=>new ct(_0x8a85df,_0x1f8010,_0x39521b,_0x400bec));this[_0x158424(0x314)]=_0x609487;}[_0x46d0db(0x27a)](){const _0x9f777a=_0x46d0db;this['_cursorShapes'][_0x9f777a(0x207)](_0x1585df=>_0x1585df[_0x9f777a(0x339)]()),this[_0x9f777a(0x314)]=[];}['_initCommandExecutedListener'](){const _0x433541=_0x46d0db,_0x1c5f7e=[_0x4d07bf['id']];this[_0x433541(0x365)](this[_0x433541(0x34c)][_0x433541(0x3a8)](_0x4b3ab9=>{const _0x1548e0=_0x433541;_0x1c5f7e[_0x1548e0(0x2ba)](_0x4b3ab9['id'])&&_0x4b3ab9[_0x1548e0(0x2a9)][_0x1548e0(0x2f9)]===this[_0x1548e0(0x340)][_0x1548e0(0x2f9)]&&this[_0x1548e0(0x27d)]();}));}['_initResize'](){const _0x5c5fce=_0x46d0db;this[_0x5c5fce(0x365)](_0x572b71(this['_context'][_0x5c5fce(0x1df)]['onTransformChange$'])['pipe'](_0x82a1f5(_0x455a96=>_0x455a96[_0x5c5fce(0x266)]===_0x2da767[_0x5c5fce(0x1e3)]),_0x2e9f56(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0xea701b(_0x169330)),ie(0x2,_0xea701b(H)),ie(0x3,_0x1f0fa6),ie(0x4,_0xea701b(_0x4e6929))],Fe);const qi=0x1,en=1.5;class tn extends _0x374fb5{constructor(_0x305fc7,_0x479f6c){const _0x565234=_0x46d0db;super(_0x305fc7,_0x479f6c),_(this,'_color'),_(this,_0x565234(0x3f2),!0x1),_(this,_0x565234(0x1f4)),_(this,_0x565234(0x3df),''),_(this,_0x565234(0x2b4),_0x565234(0x390)),_(this,_0x565234(0x3ad)),(_0x479f6c&&this['setShapeProps'](_0x479f6c),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x565234(0x2a6)]({'hovered':!0x0})),this[_0x565234(0x261)][_0x565234(0x1fa)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x46d0db(0x2a6)](_0x3fc62f){const _0x388d3f=_0x46d0db;var _0x25349b,_0x55830b,_0x31e17c,_0x5319b5,_0xe0454b,_0x2b08f8;this[_0x388d3f(0x1f9)]=(_0x25349b=_0x3fc62f[_0x388d3f(0x2d5)])!=null?_0x25349b:this[_0x388d3f(0x1f9)],this[_0x388d3f(0x3f2)]=(_0x55830b=_0x3fc62f[_0x388d3f(0x230)])!=null?_0x55830b:this['_hovered'],this[_0x388d3f(0x1f4)]=(_0x31e17c=_0x3fc62f[_0x388d3f(0x3a2)])!=null?_0x31e17c:this[_0x388d3f(0x1f4)],this[_0x388d3f(0x3df)]=(_0x5319b5=_0x3fc62f['name'])!=null?_0x5319b5:this[_0x388d3f(0x3df)],this[_0x388d3f(0x2b4)]=(_0xe0454b=_0x3fc62f[_0x388d3f(0x29f)])!=null?_0xe0454b:this[_0x388d3f(0x2b4)],this[_0x388d3f(0x3ad)]=(_0x2b08f8=_0x3fc62f[_0x388d3f(0x21d)])!=null?_0x2b08f8:this['_backgroundColor'],this[_0x388d3f(0x318)]({'width':_0x3fc62f[_0x388d3f(0x361)],'height':_0x3fc62f[_0x388d3f(0x2c3)]});}[_0x46d0db(0x364)](_0x5d3e08){const _0xbeb5f9=_0x46d0db,{row:_0x50b91d,column:_0x2a0d71}=_0x5d3e08;if(_0x50b91d>=this[_0xbeb5f9(0x1f4)][_0xbeb5f9(0x2d1)]&&_0x50b91d<=this[_0xbeb5f9(0x1f4)][_0xbeb5f9(0x2b1)]&&_0x2a0d71>=this[_0xbeb5f9(0x1f4)][_0xbeb5f9(0x31e)]&&_0x2a0d71<=this[_0xbeb5f9(0x1f4)][_0xbeb5f9(0x2b8)]){this[_0xbeb5f9(0x2a6)]({'hovered':!0x0});return;}this[_0xbeb5f9(0x2a6)]({'hovered':!0x1});}['triggerDblclick'](_0x160422){return!0x1;}[_0x46d0db(0x3d4)](_0xd1cfd4){const _0x3bf846=_0x46d0db;_0x4dbc14[_0x3bf846(0x374)](_0xd1cfd4,{'width':this[_0x3bf846(0x361)],'height':this['height'],'strokeWidth':en,'stroke':this[_0x3bf846(0x1f9)],'evented':!0x1,'fill':this[_0x3bf846(0x3ad)]}),this[_0x3bf846(0x3f2)]&&(_0xd1cfd4[_0x3bf846(0x343)](),_0xd1cfd4[_0x3bf846(0x3fa)](0x1,0x0,0x0,0x1,this[_0x3bf846(0x361)],this['_labelPosition']===_0x3bf846(0x26f)?0x0:-Q),ve[_0x3bf846(0x374)](_0xd1cfd4,{'text':this[_0x3bf846(0x3df)],'color':this[_0x3bf846(0x1f9)]}),_0xd1cfd4['restore']());}}var sn=Object[_0x46d0db(0x3db)],nn=(_0x4ed0fd,_0x4682af,_0x4290df,_0x26f7ae)=>{const _0x4e83a0=_0x46d0db;for(var _0x1233e0=_0x26f7ae>0x1?void 0x0:_0x26f7ae?sn(_0x4682af,_0x4290df):_0x4682af,_0xa0d125=_0x4ed0fd[_0x4e83a0(0x3c7)]-0x1,_0x1271e8;_0xa0d125>=0x0;_0xa0d125--)(_0x1271e8=_0x4ed0fd[_0xa0d125])&&(_0x1233e0=_0x1271e8(_0x1233e0)||_0x1233e0);return _0x1233e0;},be=(_0x191274,_0x146ab7)=>(_0x32666a,_0x5472e7)=>_0x146ab7(_0x32666a,_0x5472e7,_0x191274);function _0x55b3(){const _0x44f4c4=['AUTHORIZE_CODE_ILLEGAL','next','INTERNAL_ERROR','getMergeData','add','_updateURLWithCurrentState','symbol','addClipboardHook','_createSocketURL','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','ENTITLE_INVALID_COUPON_CODE','ONLINE','1em','Unknown\x20user','getCellPositionByOffset','DeleteRangeMoveUpCommandId','getItem','unsubscribe','length','enableLocalCache','DATA_SOURCE_TOO_LARGE','_anchor','[LogService\x20Error]:\x20','_updateSubUnitFromURLParams','_cachedData','editingUnit','5232360msQsqD','http://www.w3.org/2000/svg','getSheetId','unit','_currentUsage','_draw','invokeId','USERS_LEAVE','getformulaLimitStatusUrl','collab-text-anchor-','_toggleOffline','6441056hjsZDJ','getOwnPropertyDescriptor','history','ENTITLE_USE_COUPON_NOT_1ST_TRADE','getRangePointData','_name','max','parse','getCurrentRevOfUnit','transformIMECache','_handleHeartbeatEvent','3302412jpYThz','collaboration.offline-data-not-saved','entityInit$','UNDEFINED','USER_IS_ANONYMOUS','getActiveRange','cursorInfo','_cursor','isActive','transformRemoteChangeset','_eventUnsubscribe','_document','SOCKET_FAILED','_hovered','_clearOtherTimers','debug','getFocusedUnit','_initDependencies','APPLY_NON_SEQUENTIAL_REVISION','collaboration.closeRoom','[CollaborationDataLoaderController]','transform','closePath','APPLY_DUPLICATED','random','black','getCollabCursors$','getValue','complete','_beforeCloseService','startFormulaLimitUrl','SUBMIT_CHANGESET_TIMEOUT','_initUserListener','_getSaveTimeout','_saveCache','0\x200\x2016\x2016','LICENSE_EXPORT_SIZE_EXCEEDED','VIEW_MAIN','sheetId','transformMutationsWithChangeset','M0\x200H16V16H0z','getTypeOfUnitDisposed$','_applyCommand','_scheduleSaving','_entities','join','reason','getUnit','YUUMI_RATE_OVER_LIMIT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docSkeletonManagerService','popstate','ENTITLE_NEED_BILLING_ADDRESS','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_drawAnchor','_taskIds','_refRangeService','_docStateChangeManagerService','_clearPolling','_id','UniverIcon','path','unload','setItem','OFFLINE','registerRenderModule','getTypeOfUnitAdded$','name','_imageIoService','REDEMPTION_INVALID_CODE','none','defIds','_initEvent','14hbHXbf','url(#$1','_memberID','now','engine','addEventListener','USER_NOT_FOUND','_lastResponseTimestamp','resize','_configService','isArray','saveOfflineData','_render','then','UNAUTHENTICATED','OTHER_CLIENT_EDITING','mask','_getMergeRange','current','unshift','totalFormulasToCalculate','CURRENT_STATUS_CANNOT_OPERATE','setInterval','clearTimeout','makeDirty','_range','univer-flex\x20univer-items-center','COMPLETION_FINISHED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','onPointerEnter$','_color','subscribeEvent','_initEntityListener','_hasFormulaInDirtyRanges','EMAIL_HAS_BEEN_BOUND','_online','translate(.97)','YUUMI_ASYNCIO_CANCELLED','3UvMouu','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_ALL_TABLES_IS_INVALID','collabStatus.conflict','\x20at\x20','storage','forEach','stringify','createInstance','defineProperty','REDEMPTION_USER_NOT_ELIGIBLE','registerRefRange','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_getFormulaLimitStatus','code','asObservable','post','event$','limitInfo','ENSURE_SNAPSHOT_EXECUTION','ENTITLE_COUPON_EXPIRED','WECHAT_HAS_BEEN_BOUND','column','ENTITLE_CHAT_LIMIT_EXCEED','_getAnchorBounding','[RemoteUniscriptService]:\x20no\x20focused\x20unit','replaceState','formula.calculation.started','backgroundColor','blue.400','use','_handleJoinEvent','body','APPLY_PERMISSION_DENIED','displayName','sessionTicket','searchParams','getUnitId','_memberService','collaboration-client-ui.config','origin','getSheetBySheetId','collabCursorState$','TEXT','subscribe','assignAColorForMemberID','getColorFromTheme','hovered','_anchorDot','roomMembers$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','defs','getParam','_messageService','text','setStateCache','pluginName','href','_removeClearOtherTimer','_syncEditingCollabCursorService','unitID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','transformSelections','fillText','collab-client.tooltip.reconnect','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_registerDependencies','session.connection-failed','_drawRectRange','YUUMI_AI_RUN_FAILED','1376355MNzXHQ','2112822BFqgGu','OffLineIcon','_handleLeaveEvent','setAlpha','location','Error','_setFormulaLimitStatus','getDocRanges','restore','#FFF','_instanceService','_scheduleClearOtherTimer','_hideTimer','trim','_getScale','stageInfo','saveTaskMap','entries','lineno','moveTo','_docClipboardService','selections','_dataLoaderService','OnLineIcon','memberID','onPointerLeave$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','error','Loading','arc','type','_univerInstanceService','CONFLICT','USER_NOT_INVITED_CODE','_checkAndWaitForCalculationPermission','doc.mutation.rich-text-editing','UPDATE_CURSOR','init','collabStatus.fetchMiss','bottom','from','HEADER_MENU','off-line-icon_clip0_910_343','maxFormulaLimit','message','_urlService','18npAUvU','beginPath','_injector','SNAPSHOT_HAS_BEEN_REMOVED','_removeCollabCursors','_status$','_notificationService','_refreshCollabCursors','SYNCED','TOO_MANY_REQUESTS','/universer-api/license/formula/limit/status','_logService','LICENSE_MAX_UNITS_EXCEEDED','status$','_textBubble','setConfig','replace','key','currentUsage','PY_RUNTIME_SCRIPT_ERROR','registerComponent','pushState','setTimeout','_initUnhandledRejectionListener','MOBILE_HAS_BEEN_BOUND','selection','Warning','delete','undoState','univerjs-icon\x20univerjs-icon-','INVALID_INVITE_CODE','RemoveColCommandId','executeCommand','_transformService','registerBeforeClose','_colorIndex','_updateCollabCursors','addObject','_transformUndoRedoStack','_startDocCollabCursor','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','labelPosition','_initCommandExecutedListener','source','_entityInit$','div','UNRECOGNIZED','clipPath','setShapeProps','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docTransformSelectionsService','params','MOBILE_VERIFY_CODE_MISMATCH','addObjects','push','_localCacheService','_updateLocalCursor','values','override','endRow','removeEventListener','dispose$','_labelPosition','lineTo','stage','measureText','endColumn','getAncestorScale','includes','_unitStatus','_selfUnitIDs','11wLenxv','xlink:href','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_lastPointer','saveImage','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','height','purple.300','?taskId=','min','_localeService','reconnect','assign','data','removeParam','_scheduleHeartbeat','getConfig','NO_OTHER_CLIENTS_EDITING','_setupSubUnitSync','_revisionService','startRow','_httpService','getRelativeToViewportCoord','isEditing','color','_docTransformStateCacheService','_docSyncEditingCollabCursorService','5hIMNDB','font','_assignedColors','LOGIN_TOKEN_PROCESSING_FAILED','INVITE_CODE_REQUIRED','CONNECTOR_DATA_TOO_LARGE','NOT_FOUND','40600LNCDkn','colorChannel1','session.will-retry','REDEMPTION_CODE_NOT_STARTED','START_CALCULATION','formula.calculation.unable','setUndoRedoMutationParamsCache','_heartbeatTimer','onPointerMove$','show','_collaborationUIEventService','...','InsertRowCommandId','white','_themeService','map','evenodd','ALREADY_EXISTS','svg','parseInt','colno','_doCreateSocket','currentSkeleton$','syncEditingCollabCursor','_handleHover','transformStateCache','unitId','redoState','fillStyle','[Window\x20Error]:\x20','replaceDocRanges','releaseFormulaLimitUrl','updateOfflineData','_config','_initCommandInterceptor','loadOfflineData','pipe','ranges','_roomMembers$','result','AWAITING','runId','url(#off-line-icon_clip0_910_343)','mutations','fill','ERROR_AGAIN','_saveTaskMap','rgba(255,\x20255,\x20255,\x200.01)','subunit','getCellMatrix','currentColor','attrs','with','_cursorShapes','contains','collabStatus.syncing','setParam','transformByState','textRanges','ENTITLE_INSUFFICIENT_QUOTA','PERMISSION_DENIED','YUUMI_SUBSCRIPTION_NOT_FOUND','_initResize','startColumn','children','INVITE_CODE_HAS_BEEN_UES','_transformHistoryAndStateStack','_startCalculationLimit','univer-mr-2\x20univer-flex\x20univer-text-xl','_releaseCalculationLimit','has','ENTITLE_COUPON_USED_UP','_unitOnClients','ENTITLE_REPORT_LIMIT_EXCEED','unhandledrejection','size','set','_localStorageService','_getSheetObject','getMemberID','collabStatus.synced','_getSessionTicket','roomMembers','LICENSE_IMPORT_SIZE_EXCEEDED','filename','hide','YUUMI_CONNECTOR_URL_NOT_FOUND','round','_sheetSkeletonManagerService','_checkCalculationAvailable','dispose','getMember','toRgbString','enableFrontendLog','bind','ACTIVE_UNIT_EVENT_CHANNEL','_registerRenderDependencies','_context','send','_onCursorUpdate','save','imageSourceType','activeSheet$','PAYMENT_CHANNEL_NOT_SUPPORT','string','_collabCursorController','getRenderById','onLocalMutation','ENTITLE_DUP_SUBSCRIPTION','_commandService','INVITE_CODE_ALREADY_BOUND','getStateCache','getSkeleton','socket$','exhaustSavingTask','sessionStatus$','uni.network.url-service','_collabSessionService','RECT','REDEMPTION_CODE_INACTIVE','_cursorInfo$','_colorAssignService','m1Prime','row','getCurrentUnitForType','NOT_COLLAB','_scene','_toggleOnline','_cursors','green.600','width','dirtyRanges','some','onMouseMove','disposeWithMe','SNAPSHOT_INVALID_SNAPSHOT','transformMutation','_hover','YUUMI_UNABLE_LOAD_URL','_showGuardMessage','_initStatusComponent','_uiPartsService','UNIVER_DOC','_collaborationSessionService','getUndoRedoMutationParamsCache','_docSkeleton','LOGIN_FAILED','_transformPreviousActiveRange','REDEMPTION_CODE_FULLY_REDEEMED','drawWith','cursorInfo$','PENDING','permission.title','APPLY_REJECT','EMAIL_VERIFY_CODE_MISMATCH','_initWindowErrorListener','stack','toString','LICENSE_DISTRO_REJECTED','newValue','SUCCESS','session.collaboration-timeout','CHANGESET_REVISION_CONFILICT','shift','getActiveSheet','OTHER_CLIENTS_EDITING','INVALID_ARGUMENT','eventID','get','_ensureSubject','_init','_initStatusListener','_session','_send','currentTheme$','/run/','_startSheetCollabCursor','top','clearInterval','0\x200\x2017\x2016','YUUMI_URL_COL_OUT_OF_RANGE','_maxFormulaLimit','13227528QWpLwg','executionId','onRendered','requireSession','getVpScrollXYInfoByPosToVp','_shapes','deepClone','idSuffix','InsertColCommandId','FromArray','urlChange$','_docTransformIMECacheService','_monkeyPatchLogService','range','m2Prime','_renderManagerService','permission.content','_uploadLog','findNodePositionByCharIndex','onCommandExecuted','url(#on-line-icon_clip0_910_349)','getUniverSheetInstance','_setupBeforeClosingHandler','_onRefRangeChange','_backgroundColor','tag','UNIVER_SHEET','_onCursorDelete','_disabled','_pollingInterval','sheetID','MoveRangeCommandId'];_0x55b3=function(){return _0x44f4c4;};return _0x55b3();}const rn=0x1389;let ke=class extends _0x4128f2{constructor(_0x118ecc,_0xdb6e69,_0x1bd0dc,_0x308e2d){const _0x337d37=_0x46d0db;super(),_(this,_0x337d37(0x35f),new Set()),_(this,_0x337d37(0x2c0),null),(this[_0x337d37(0x340)]=_0x118ecc,this[_0x337d37(0x337)]=_0xdb6e69,this['_collabCursorController']=_0x1bd0dc,this[_0x337d37(0x2ed)]=_0x308e2d,this[_0x337d37(0x389)]());}[_0x46d0db(0x389)](){const _0x440ad3=_0x46d0db;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x440ad3(0x303)](_0x402121(this[_0x440ad3(0x2b3)]),_0x310d20(_0xf0def0=>{const _0x27355b=_0x440ad3;if(_0xf0def0){const _0x253316=_0xf0def0[_0x27355b(0x40b)];return _0x251a62(this[_0x27355b(0x348)][_0x27355b(0x3ff)](this[_0x27355b(0x340)][_0x27355b(0x2f9)]),this[_0x27355b(0x2ed)][_0x27355b(0x38d)])[_0x27355b(0x303)](_0x2a3dd6(([_0x238de0,_0x11a142])=>{const _0x1e218b=_0x27355b,_0x5c0060=new Map();return _0x238de0[_0x1e218b(0x207)]((_0x449972,_0x32a27d)=>{const _0xfc423b=_0x1e218b;if(_0x449972[_0xfc423b(0x3b3)]===_0x253316){const _0x1170a0={..._0x449972};_0x1170a0['color']=this[_0xfc423b(0x2ed)][_0xfc423b(0x22f)](_0x449972[_0xfc423b(0x2d5)]),_0x5c0060[_0xfc423b(0x32b)](_0x32a27d,_0x1170a0);}}),{'skeleton':_0xf0def0,'cursors':_0x5c0060};}));}return _0x45fb3c({'skeleton':null,'cursors':new Map()});}))[_0x440ad3(0x22d)](({skeleton:_0x3bb0af,cursors:_0xce995a})=>{const _0x41eb2a=_0x440ad3;this[_0x41eb2a(0x27a)](),_0x3bb0af&&this[_0x41eb2a(0x29a)](_0x3bb0af,_0xce995a);}),this[_0x440ad3(0x337)][_0x440ad3(0x2f5)]['subscribe'](_0x3f4143=>{const _0x2924ab=_0x440ad3;if(_0x3f4143==null)return;const {skeleton:_0x4ee05c}=_0x3f4143,{scene:_0x35a11a}=this['_context'];_0x35a11a[_0x2924ab(0x2e7)]['subscribeEvent'](_0x1530e6(_0x4210ed=>{const _0x6e1bac=_0x2924ab;var _0x19ed00,_0xa72343;const {offsetX:_0x49617d,offsetY:_0x403090}=_0x4210ed,{x:_0x281766,y:_0x559b8a}=_0x35a11a[_0x6e1bac(0x2d3)](_0x1a7621[_0x6e1bac(0x39e)]([_0x49617d,_0x403090])),{scaleX:_0x448bdb,scaleY:_0x18ca59}=_0x35a11a[_0x6e1bac(0x2b9)](),_0x348d74=_0x35a11a['getViewport'](_0x546f5f[_0x6e1bac(0x40a)]),_0x941cad=_0x35a11a[_0x6e1bac(0x399)](_0x1a7621[_0x6e1bac(0x39e)]([_0x281766,_0x559b8a]),_0x348d74),_0x19fb69=_0x4ee05c[_0x6e1bac(0x3c3)](_0x49617d,_0x403090,_0x448bdb,_0x18ca59,_0x941cad);((_0x19ed00=this['_lastPointer'])==null?void 0x0:_0x19ed00[_0x6e1bac(0x217)])===_0x19fb69[_0x6e1bac(0x217)]&&((_0xa72343=this['_lastPointer'])==null?void 0x0:_0xa72343[_0x6e1bac(0x35a)])===_0x19fb69['row']||this[_0x6e1bac(0x35f)][_0x6e1bac(0x207)](_0x3f2058=>{const _0x48df6f=_0x6e1bac;_0x3f2058[_0x48df6f(0x364)](_0x19fb69);});},0x64));});}[_0x46d0db(0x29a)](_0x50e568,_0x25a16d){const _0x164b47=_0x46d0db;var _0x431e15;const _0x10d915=(_0x431e15=this[_0x164b47(0x337)]['getCurrent']())==null?void 0x0:_0x431e15['skeleton'];if(!_0x10d915)return;const _0x5fa236=this[_0x164b47(0x32d)]();if(!_0x5fa236)return;this[_0x164b47(0x35f)][_0x164b47(0x207)](_0x363bef=>{const _0x24399a=_0x164b47;_0x363bef[_0x24399a(0x1f3)]();});const {scene:_0x521506}=_0x5fa236,_0x2c07b6=on(Array['from'](_0x25a16d[_0x164b47(0x2af)]()))['map'](_0x154d8d=>{const _0x490800=_0x164b47,{color:_0x26a63b,range:_0x1fff91,name:_0x1edbee,selection:_0xacfcd0,sheetID:_0x350947}=_0x154d8d,{startColumn:_0x2e7fff,startRow:_0x269f10,endColumn:_0x317f9b,endRow:_0x3dfde6}=_0x1fff91,_0x5c4de2=_0x58f1da(_0x269f10,_0x2e7fff,_0x521506,_0x10d915),_0x429c31=_0x58f1da(_0x3dfde6,_0x317f9b,_0x521506,_0x10d915),{columnHeaderHeightAndMarginTop:_0x66329f}=_0x10d915,{startX:_0x98acbc,startY:_0x5c4963}=_0x5c4de2,{endX:_0x4ec1b8,endY:_0x9bf0b3}=_0x429c31,_0x1f01e4=_0x4ec1b8-_0x98acbc,_0x456107=_0x9bf0b3-_0x5c4963,_0x44ad1b={'labelPosition':_0x5c4963-_0x66329f>=Q?_0x490800(0x390):_0x490800(0x26f),'sheetID':_0x350947,'range':_0x1fff91,'color':_0x26a63b,'name':_0x1edbee,'selection':_0xacfcd0,'left':_0x98acbc,'top':_0x5c4963,'width':_0x1f01e4,'height':_0x456107,'evented':!0x1,'zIndex':rn};return new tn(_0x1edbee,_0x44ad1b);});_0x521506[_0x164b47(0x2ab)](_0x2c07b6,qi),this[_0x164b47(0x35f)]=new Set(_0x2c07b6);}['_removeCollabCursors'](){const _0x364e1e=_0x46d0db;var _0x43e948;(_0x43e948=this['_cursors'])==null||_0x43e948[_0x364e1e(0x207)](_0x41034b=>_0x41034b[_0x364e1e(0x339)]());}['_getSheetObject'](){const _0x353165=_0x46d0db;return _0x146077(this[_0x353165(0x340)]['unit'],this[_0x353165(0x340)]);}};ke=nn([be(0x1,_0xea701b(_0x437ffc)),be(0x2,_0xea701b(H)),be(0x3,_0xea701b(_0x4e6929))],ke);function on(_0x3b8377){const _0x72f27=_0x46d0db,_0x518cc7=new Map();return _0x3b8377[_0x72f27(0x207)](_0x2f2ae5=>{const _0x3f32b7=_0x72f27;if(_0x518cc7[_0x3f32b7(0x325)](_0x2f2ae5['selection'])){const _0x4e492b=_0x518cc7['get'](_0x2f2ae5[_0x3f32b7(0x28f)]);_0x4e492b['name']+=',\x20'+_0x2f2ae5[_0x3f32b7(0x1d5)];}else _0x518cc7[_0x3f32b7(0x32b)](_0x2f2ae5[_0x3f32b7(0x28f)],_0x2f2ae5);}),Array[_0x72f27(0x270)](_0x518cc7[_0x72f27(0x2af)]());}var an=Object[_0x46d0db(0x3db)],cn=(_0x64c5aa,_0x5dcea2,_0x6f5e49,_0x58a5f8)=>{for(var _0x431cdf=_0x58a5f8>0x1?void 0x0:_0x58a5f8?an(_0x5dcea2,_0x6f5e49):_0x5dcea2,_0x573514=_0x64c5aa['length']-0x1,_0x5d7411;_0x573514>=0x0;_0x573514--)(_0x5d7411=_0x64c5aa[_0x573514])&&(_0x431cdf=_0x5d7411(_0x431cdf)||_0x431cdf);return _0x431cdf;},F=(_0x31a89f,_0x4da8b3)=>(_0x1375f2,_0x17fc79)=>_0x4da8b3(_0x1375f2,_0x17fc79,_0x31a89f);let _e=class extends _0x325e21{constructor(_0x2894d7,_0x8c430d,_0xbdb750,_0x560acb,_0x3fdffd,_0x55155e){const _0x318d6d=_0x46d0db;super(),this[_0x318d6d(0x402)]=_0x2894d7,this[_0x318d6d(0x2ad)]=_0x8c430d,this['_collaborationUIEventService']=_0xbdb750,this[_0x318d6d(0x236)]=_0x560acb,this[_0x318d6d(0x27c)]=_0x3fdffd,this[_0x318d6d(0x2c7)]=_0x55155e,this['_setupBeforeClosingHandler'](),this[_0x318d6d(0x1da)]();}[_0x46d0db(0x3ab)](){const _0x1b5fc3=_0x46d0db;this['disposeWithMe'](this['_beforeCloseService'][_0x1b5fc3(0x298)](()=>{const _0x575e07=_0x1b5fc3;if(this[_0x575e07(0x2ad)][_0x575e07(0x258)][_0x575e07(0x32a)])return this['_localeService']['t'](_0x575e07(0x3e6));}));}[_0x46d0db(0x1da)](){const _0x26dd2a=_0x46d0db;this['disposeWithMe'](this[_0x26dd2a(0x2e9)][_0x26dd2a(0x212)]['subscribe'](_0x206de2=>{const _0x26c027=_0x26dd2a;_0x206de2['id']===_0x31159c[_0x26c027(0x1ea)]&&this['_messageService'][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x290)],'content':this[_0x26c027(0x2c7)]['t']('collaboration.single-unit.warning')}),_0x206de2['id']===_0x31159c['CLOSE_ROOM']&&this[_0x26c027(0x236)][_0x26c027(0x2e8)]({'type':_0x404ab1['Warning'],'content':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x3f8))}),_0x206de2['id']===_0x31159c['PERMISSION_DENIED']&&this[_0x26c027(0x27c)][_0x26c027(0x2e8)]({'title':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x377)),'content':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x3a5)),'type':_0x26c027(0x263),'duration':0x0}),_0x206de2['id']===_0x31159c[_0x26c027(0x268)]&&this['_messageService'][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x24d)],'content':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x3f8))+'('+_0x206de2[_0x26c027(0x2ca)]+')'}),_0x206de2['id']===_0x31159c['JOIN_ROOM_FAILED']&&this[_0x26c027(0x236)][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x290)],'content':this[_0x26c027(0x2c7)]['t'](_0x206de2[_0x26c027(0x2ca)]||'')}),_0x206de2['id']===_0x31159c['SOCKET_FAILED_RETRY']&&this[_0x26c027(0x236)]['show']({'type':_0x404ab1[_0x26c027(0x290)],'content':this['_localeService']['t'](_0x26c027(0x2e1))}),_0x206de2['id']===_0x31159c[_0x26c027(0x3f1)]&&this[_0x26c027(0x236)][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x24d)],'content':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x244))}),_0x206de2['id']===_0x31159c[_0x26c027(0x404)]&&this[_0x26c027(0x236)][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x24d)],'content':this['_localeService']['t'](_0x26c027(0x380))});}));}};_e=cn([F(0x0,_0x17bc31),F(0x1,_0x30567e),F(0x2,_0xea701b(_0x1f424b)),F(0x3,_0x25d450),F(0x4,_0x1b2ee8),F(0x5,_0xea701b(_0x4fbd2b))],_e);var _n=Object[_0x46d0db(0x3db)],ln=(_0x5ea69b,_0x44f579,_0x3bdb82,_0x15cfb0)=>{const _0xf49a3e=_0x46d0db;for(var _0x313ba5=_0x15cfb0>0x1?void 0x0:_0x15cfb0?_n(_0x44f579,_0x3bdb82):_0x44f579,_0x227435=_0x5ea69b[_0xf49a3e(0x3c7)]-0x1,_0x82660e;_0x227435>=0x0;_0x227435--)(_0x82660e=_0x5ea69b[_0x227435])&&(_0x313ba5=_0x82660e(_0x313ba5)||_0x313ba5);return _0x313ba5;},ne=(_0x2f0544,_0x2d2a19)=>(_0x15253a,_0x5dc1a0)=>_0x2d2a19(_0x15253a,_0x5dc1a0,_0x2f0544);let le=class extends _0x325e21{constructor(_0x28a1fd,_0x44a672,_0x3729ef,_0x4022af){const _0x216e74=_0x46d0db;super(),_(this,_0x216e74(0x1dd)),(this[_0x216e74(0x278)]=_0x28a1fd,this[_0x216e74(0x2d2)]=_0x44a672,this['_logService']=_0x3729ef,this[_0x216e74(0x36e)]=_0x4022af,this[_0x216e74(0x389)]());}[_0x46d0db(0x389)](){const _0x395ead=_0x46d0db;this[_0x395ead(0x37a)](),this[_0x395ead(0x28d)](),this[_0x395ead(0x3a1)](),this[_0x395ead(0x405)]();}[_0x46d0db(0x405)](){const _0xadf57d=_0x46d0db;this['disposeWithMe'](this[_0xadf57d(0x36e)][_0xadf57d(0x350)][_0xadf57d(0x22d)](_0x4ba511=>{const _0x263d31=_0xadf57d;this[_0x263d31(0x1dd)]=_0x4ba511==null?void 0x0:_0x4ba511[_0x263d31(0x260)];}));}['_initWindowErrorListener'](){const _0x30b005=_0x46d0db,_0x3afa58=_0x143df9=>{const _0x2565da=_0x4fdf;var _0x3ea152;this[_0x2565da(0x3a6)](_0x2565da(0x263),_0x2565da(0x2fc)+_0x143df9[_0x2565da(0x274)]+_0x2565da(0x205)+_0x143df9[_0x2565da(0x333)]+':'+_0x143df9[_0x2565da(0x25a)]+':'+_0x143df9[_0x2565da(0x2f3)]+'\x0a'+(((_0x3ea152=_0x143df9['error'])==null?void 0x0:_0x3ea152[_0x2565da(0x37b)])||''));};window[_0x30b005(0x1e0)](_0x30b005(0x263),_0x3afa58),this[_0x30b005(0x365)](()=>{const _0x552586=_0x30b005;window[_0x552586(0x2b2)](_0x552586(0x263),_0x3afa58);});}[_0x46d0db(0x28d)](){const _0xb1ea29=_0x46d0db,_0x3f9211=_0x41603a=>{const _0x3b42d4=_0x4fdf;this['_uploadLog'](_0x3b42d4(0x263),'[Unhandled\x20Rejection]:\x20'+_0x41603a[_0x3b42d4(0x413)]);};window[_0xb1ea29(0x1e0)](_0xb1ea29(0x329),_0x3f9211),this[_0xb1ea29(0x365)](()=>{const _0x36ad39=_0xb1ea29;window[_0x36ad39(0x2b2)](_0x36ad39(0x329),_0x3f9211);});}['_monkeyPatchLogService'](){const _0x114398=_0x46d0db,_0x575e09=this['_logService'][_0x114398(0x263)][_0x114398(0x33d)](this[_0x114398(0x281)]);this[_0x114398(0x281)][_0x114398(0x263)]=(..._0x4160db)=>{const _0x13501c=_0x114398,_0x5a5f4e=_0x4160db[_0x13501c(0x2ee)](_0x5e197e=>_0x5e197e instanceof Error?_0x5e197e[_0x13501c(0x274)]+'\x0a'+_0x5e197e[_0x13501c(0x37b)]:String(_0x5e197e))[_0x13501c(0x412)]('\x20');this[_0x13501c(0x3a6)](_0x13501c(0x263),_0x13501c(0x3cb)+_0x5a5f4e),_0x575e09(..._0x4160db);},this[_0x114398(0x365)](()=>{const _0x5b1a5f=_0x114398;this[_0x5b1a5f(0x281)][_0x5b1a5f(0x263)]=_0x575e09;});}[_0x46d0db(0x3a6)](_0x3ce201,_0x9f269f){const _0x40112d=_0x46d0db;try{const _0xa26811={'userId':this[_0x40112d(0x1dd)],'logLabel':_0x3ce201,'content':_0x9f269f};this[_0x40112d(0x2d2)][_0x40112d(0x211)]('/universer-api/frontend/logs',{'body':_0xa26811})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0xea701b(_0x29824e)),ne(0x1,_0xea701b(_0x146466)),ne(0x2,_0xf63a71),ne(0x3,_0xea701b(_0x3840d4))],le);const hn=_0x46d0db(0x228),_t={};var un=Object[_0x46d0db(0x3db)],dn=(_0x267f33,_0x4d1054,_0x2dc69d,_0x455666)=>{const _0x16c297=_0x46d0db;for(var _0xa205fa=_0x455666>0x1?void 0x0:_0x455666?un(_0x4d1054,_0x2dc69d):_0x4d1054,_0x13291b=_0x267f33[_0x16c297(0x3c7)]-0x1,_0xef635a;_0x13291b>=0x0;_0x13291b--)(_0xef635a=_0x267f33[_0x13291b])&&(_0xa205fa=_0xef635a(_0xa205fa)||_0xa205fa);return _0xa205fa;},lt=(_0x13dbb1,_0x3e027b)=>(_0x126936,_0x137baa)=>_0x3e027b(_0x126936,_0x137baa,_0x13dbb1);let he=class{constructor(_0x1c226d,_0x46a2fe){const _0x535add=_0x46d0db;this[_0x535add(0x297)]=_0x1c226d,this['_renderManagerService']=_0x46a2fe;}['transformIMECache'](_0x43c2c9){const _0x21780e=_0x46d0db;this[_0x21780e(0x29c)](_0x43c2c9),this[_0x21780e(0x372)](_0x43c2c9);}[_0x46d0db(0x3ee)](_0x166a2b){const _0x2f5029=_0x46d0db,{unitID:_0x5e9082}=_0x166a2b,_0x2f8613=this['_renderManagerService'][_0x2f5029(0x349)](_0x5e9082)['with'](_0x6b1360),{redoCache:_0x501b04}=_0x2f8613[_0x2f5029(0x36f)]();if(_0x501b04[_0x2f5029(0x3c7)]===0x0)return _0x166a2b;let _0x552c42=_0x193f3d[_0x2f5029(0x39b)](_0x166a2b[_0x2f5029(0x30a)][0x0]);for(let _0x479ccc=0x0;_0x479ccc<_0x501b04[_0x2f5029(0x3c7)];_0x479ccc++){const _0x31d30b={'id':'doc.mutation.rich-text-editing','params':{..._0x501b04[_0x479ccc]}},_0x5edb33=this[_0x2f5029(0x297)][_0x2f5029(0x367)](_0x552c42,_0x31d30b,!0x1);if(_0xe71731(_0x5edb33))throw _0x5edb33[_0x2f5029(0x263)];_0x552c42=_0x5edb33[_0x2f5029(0x359)];}return{..._0x193f3d[_0x2f5029(0x39b)](_0x166a2b),'mutations':[_0x552c42]};}['_transformUndoRedoStack'](_0xd793bb){const _0xb3e132=_0x46d0db,{unitID:_0x5e49c7}=_0xd793bb,_0x15592d=this[_0xb3e132(0x3a4)][_0xb3e132(0x349)](_0x5e49c7)[_0xb3e132(0x313)](_0x6b1360),{undoCache:_0x633c71,redoCache:_0x1c24cf}=_0x15592d[_0xb3e132(0x36f)]();if(_0x633c71[_0xb3e132(0x3c7)]===0x0||_0x1c24cf[_0xb3e132(0x3c7)]===0x0)return;const _0x1b41e4=[],_0x111ed3=[];let _0x1f5c7d=_0x193f3d[_0xb3e132(0x39b)](_0xd793bb['mutations'][0x0]),_0x20cc8f=_0x193f3d[_0xb3e132(0x39b)](_0xd793bb[_0xb3e132(0x30a)][0x0]);for(let _0x2e345a=_0x633c71[_0xb3e132(0x3c7)]-0x1;_0x2e345a>=0x0;_0x2e345a--){const _0x2ab59f={'id':_0xb3e132(0x26b),'params':{..._0x633c71[_0x2e345a]}},_0x37fe27={'id':_0xb3e132(0x26b),'params':{..._0x1c24cf[_0x2e345a]}},_0x589948=this[_0xb3e132(0x297)]['transformMutation'](_0x1f5c7d,_0x2ab59f,!0x1),_0xc6b6b8=this[_0xb3e132(0x297)][_0xb3e132(0x367)](_0x20cc8f,_0x37fe27,!0x1);if(_0xe71731(_0x589948))throw _0x589948[_0xb3e132(0x263)];if(_0xe71731(_0xc6b6b8))throw _0xc6b6b8['error'];_0x1b41e4[_0xb3e132(0x1ee)](_0x589948[_0xb3e132(0x3a3)]['params']),_0x111ed3['unshift'](_0xc6b6b8[_0xb3e132(0x3a3)]['params']),_0x1f5c7d=_0x589948['m1Prime'],_0x20cc8f=_0xc6b6b8[_0xb3e132(0x359)];}_0x15592d[_0xb3e132(0x2e5)]({'undoCache':_0x1b41e4,'redoCache':_0x111ed3});}[_0x46d0db(0x372)](_0x30d6dc){const _0xba4189=_0x46d0db,{unitID:_0x5e133e}=_0x30d6dc,_0x1051c3=this[_0xba4189(0x3a4)][_0xba4189(0x349)](_0x5e133e)[_0xba4189(0x313)](_0x6b1360),_0x1c0157=_0x1051c3[_0xba4189(0x3ea)]();if(_0x1c0157==null)return;const _0x1deab3=[{'id':_0xba4189(0x26b),'params':{'unitId':_0x30d6dc[_0xba4189(0x23d)],'actions':null,'textRanges':[_0x1c0157]}}],_0x35db55=this[_0xba4189(0x297)]['transformMutationsWithChangeset'](_0x30d6dc,_0x1deab3);if(!_0x4984e5(_0x35db55))throw _0x35db55[_0xba4189(0x263)];const _0x4a6972=_0x35db55[_0xba4189(0x3a3)][0x0][_0xba4189(0x2a9)][_0xba4189(0x319)];Array['isArray'](_0x4a6972)&&_0x4a6972['length']&&_0x1051c3['setActiveRange'](_0x4a6972[0x0]);}};he=dn([lt(0x0,_0x3ec468),lt(0x1,_0x38baec)],he);var Sn=Object[_0x46d0db(0x3db)],In=(_0x2b1ebb,_0x47b1c4,_0x85a02c,_0x3c5b6e)=>{for(var _0x5e3853=_0x3c5b6e>0x1?void 0x0:_0x3c5b6e?Sn(_0x47b1c4,_0x85a02c):_0x47b1c4,_0x37c413=_0x2b1ebb['length']-0x1,_0x241265;_0x37c413>=0x0;_0x37c413--)(_0x241265=_0x2b1ebb[_0x37c413])&&(_0x5e3853=_0x241265(_0x5e3853)||_0x5e3853);return _0x5e3853;},Le=(_0x42a207,_0x33a2fe)=>(_0x254d89,_0x24a7b7)=>_0x33a2fe(_0x254d89,_0x24a7b7,_0x42a207);let ue=class{constructor(_0x4a3abd,_0x4c26e8,_0x51fc3c){const _0x1e2a4e=_0x46d0db;this[_0x1e2a4e(0x278)]=_0x4a3abd,this[_0x1e2a4e(0x297)]=_0x4c26e8,this['_docStateChangeManagerService']=_0x51fc3c;}['transformStateCache'](_0x176c54){const _0x10ec5a=_0x46d0db;this[_0x10ec5a(0x321)](_0x176c54);}[_0x46d0db(0x3ee)](_0x464145){const _0x114411=_0x46d0db,{unitID:_0x5afded}=_0x464145,{collaboration:_0xf6cc11}=this[_0x114411(0x1cb)][_0x114411(0x34e)](_0x5afded);if(_0xf6cc11[_0x114411(0x3c7)]===0x0)return _0x464145;let _0x1a03a4=_0x193f3d[_0x114411(0x39b)](_0x464145[_0x114411(0x30a)][0x0]);for(let _0x1c3475=0x0;_0x1c3475<_0xf6cc11[_0x114411(0x3c7)];_0x1c3475++){const _0x3c43e9={'id':_0x114411(0x26b),'params':{'unitId':_0xf6cc11[_0x1c3475]['unitId'],..._0xf6cc11[_0x1c3475][_0x114411(0x2fa)]}},_0x459188=this[_0x114411(0x297)][_0x114411(0x367)](_0x1a03a4,_0x3c43e9,!0x1);if(_0xe71731(_0x459188))throw _0x459188['error'];_0x1a03a4=_0x459188[_0x114411(0x359)];}return{..._0x193f3d[_0x114411(0x39b)](_0x464145),'mutations':[_0x1a03a4]};}['_transformHistoryAndStateStack'](_0x4006fd){const _0x2f6076=_0x46d0db,{unitID:_0x4aba5f}=_0x4006fd,{history:_0x420b08,collaboration:_0x5d1d21}=this[_0x2f6076(0x1cb)]['getStateCache'](_0x4aba5f);if(_0x420b08[_0x2f6076(0x3c7)]===0x0&&_0x5d1d21[_0x2f6076(0x3c7)]===0x0)return;const _0x3ea474=[],_0x173be3=[];let _0x2f051b=_0x193f3d['deepClone'](_0x4006fd['mutations'][0x0]),_0x27c196=_0x193f3d[_0x2f6076(0x39b)](_0x4006fd[_0x2f6076(0x30a)][0x0]);for(let _0xfda136=_0x420b08[_0x2f6076(0x3c7)]-0x1;_0xfda136>=0x0;_0xfda136--){const _0x4d461b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x420b08[_0xfda136]['unitId'],..._0x420b08[_0xfda136]['undoState']}},_0x512dc0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x420b08[_0xfda136][_0x2f6076(0x2f9)],..._0x420b08[_0xfda136][_0x2f6076(0x2fa)]}},_0x1e5b5f=this[_0x2f6076(0x297)]['transformMutation'](_0x2f051b,_0x4d461b,!0x1),_0xe3392d=this[_0x2f6076(0x297)][_0x2f6076(0x367)](_0x27c196,_0x512dc0,!0x1);if(_0xe71731(_0x1e5b5f))throw _0x1e5b5f[_0x2f6076(0x263)];if(_0xe71731(_0xe3392d))throw _0xe3392d[_0x2f6076(0x263)];_0x3ea474['unshift']({..._0x420b08[_0xfda136],'undoState':_0x1e5b5f[_0x2f6076(0x3a3)][_0x2f6076(0x2a9)],'redoState':_0xe3392d[_0x2f6076(0x3a3)][_0x2f6076(0x2a9)]}),_0x2f051b=_0x1e5b5f['m1Prime'],_0x27c196=_0xe3392d[_0x2f6076(0x359)];}_0x2f051b=_0x193f3d['deepClone'](_0x4006fd['mutations'][0x0]),_0x27c196=_0x193f3d['deepClone'](_0x4006fd[_0x2f6076(0x30a)][0x0]);for(let _0x16688b=_0x5d1d21[_0x2f6076(0x3c7)]-0x1;_0x16688b>=0x0;_0x16688b--){const _0x3f3661={'id':_0x2f6076(0x26b),'params':{'unitId':_0x5d1d21[_0x16688b][_0x2f6076(0x2f9)],..._0x5d1d21[_0x16688b][_0x2f6076(0x292)]}},_0x1bb484={'id':_0x2f6076(0x26b),'params':{'unitId':_0x5d1d21[_0x16688b]['unitId'],..._0x5d1d21[_0x16688b][_0x2f6076(0x2fa)]}},_0x1801a9=this['_transformService'][_0x2f6076(0x367)](_0x2f051b,_0x3f3661,!0x1),_0x22e9fd=this[_0x2f6076(0x297)][_0x2f6076(0x367)](_0x27c196,_0x1bb484,!0x1);if(_0xe71731(_0x1801a9))throw _0x1801a9['error'];if(_0xe71731(_0x22e9fd))throw _0x22e9fd[_0x2f6076(0x263)];_0x173be3['unshift']({..._0x5d1d21[_0x16688b],'undoState':_0x1801a9[_0x2f6076(0x3a3)][_0x2f6076(0x2a9)],'redoState':_0x22e9fd[_0x2f6076(0x3a3)][_0x2f6076(0x2a9)]}),_0x2f051b=_0x1801a9['m1Prime'],_0x27c196=_0x22e9fd['m1Prime'];}this[_0x2f6076(0x1cb)][_0x2f6076(0x238)](_0x4aba5f,{'history':_0x3ea474,'collaboration':_0x173be3});}};ue=In([Le(0x0,_0xea701b(_0x29824e)),Le(0x1,_0x3ec468),Le(0x2,_0xea701b(_0x369bb6))],ue);var mn=Object[_0x46d0db(0x3db)],fn=(_0x249167,_0x46f408,_0x128566,_0x3b5162)=>{const _0x1db582=_0x46d0db;for(var _0x5a5c8a=_0x3b5162>0x1?void 0x0:_0x3b5162?mn(_0x46f408,_0x128566):_0x46f408,_0x4b01f8=_0x249167[_0x1db582(0x3c7)]-0x1,_0x18ca3e;_0x4b01f8>=0x0;_0x4b01f8--)(_0x18ca3e=_0x249167[_0x4b01f8])&&(_0x5a5c8a=_0x18ca3e(_0x5a5c8a)||_0x5a5c8a);return _0x5a5c8a;},ht=(_0x1c42c5,_0x54317a)=>(_0x275221,_0x35453e)=>_0x54317a(_0x275221,_0x35453e,_0x1c42c5);let de=class{constructor(_0x51ae4d,_0x288785){const _0x555f98=_0x46d0db;this[_0x555f98(0x278)]=_0x51ae4d,this[_0x555f98(0x297)]=_0x288785;}[_0x46d0db(0x23f)](_0x51d85f){const _0x44481e=_0x46d0db;var _0x3d428e;const _0x42818e=this['_injector'][_0x44481e(0x387)](_0x11d383),_0x2da27a=(_0x3d428e=_0x42818e[_0x44481e(0x24f)]())!=null?_0x3d428e:[];if(_0x2da27a[_0x44481e(0x3c7)]===0x0)return;const _0x2114fb=_0x51d85f[_0x44481e(0x23d)],_0x327cc8=[{'id':_0x44481e(0x26b),'params':{'unitId':_0x2114fb,'actions':null,'textRanges':_0x2da27a}}],_0x5e261e=this[_0x44481e(0x297)][_0x44481e(0x40c)](_0x51d85f,_0x327cc8);if(!_0x4984e5(_0x5e261e))throw _0x5e261e[_0x44481e(0x263)];const _0x3153a2=_0x5e261e[_0x44481e(0x3a3)][0x0][_0x44481e(0x2a9)][_0x44481e(0x319)];Array[_0x44481e(0x1e5)](_0x3153a2)&&_0x3153a2[_0x44481e(0x3c7)]&&_0x42818e[_0x44481e(0x2fd)](_0x3153a2,{'unitId':_0x2114fb,'subUnitId':_0x2114fb},!0x1);}};de=fn([ht(0x0,_0xea701b(_0x29824e)),ht(0x1,_0x3ec468)],de);var gn=Object[_0x46d0db(0x3db)],En=(_0x156e17,_0x193fbf,_0x4a0313,_0x114fd4)=>{const _0x43b071=_0x46d0db;for(var _0xdf70ea=_0x114fd4>0x1?void 0x0:_0x114fd4?gn(_0x193fbf,_0x4a0313):_0x193fbf,_0x5ae4b5=_0x156e17[_0x43b071(0x3c7)]-0x1,_0x40a672;_0x5ae4b5>=0x0;_0x5ae4b5--)(_0x40a672=_0x156e17[_0x5ae4b5])&&(_0xdf70ea=_0x40a672(_0xdf70ea)||_0xdf70ea);return _0xdf70ea;},U=(_0x5a4a1a,_0x8ada5b)=>(_0x211894,_0x5c41a9)=>_0x8ada5b(_0x211894,_0x5c41a9,_0x5a4a1a);let Se=class extends _0x325e21{constructor(_0x59a9f5,_0x3cdf08,_0x3f7626,_0x24d802,_0x2e8af9,_0x4948e0,_0x49e8db,_0x1d0c24){const _0x77ddf9=_0x46d0db;super(),_(this,_0x77ddf9(0x27b),new _0xe5dabe(_0x3a48be[_0x77ddf9(0x35c)])),(this['_docStateChangeManagerService']=_0x59a9f5,this['_collaborationController']=_0x3cdf08,this[_0x77ddf9(0x3a0)]=_0x3f7626,this['_docTransformStateCacheService']=_0x24d802,this[_0x77ddf9(0x2a8)]=_0x2e8af9,this[_0x77ddf9(0x2d7)]=_0x4948e0,this[_0x77ddf9(0x236)]=_0x49e8db,this[_0x77ddf9(0x2c7)]=_0x1d0c24,this['_initEntityListener']());}[_0x46d0db(0x1fb)](){const _0x2a0e36=_0x46d0db;this[_0x2a0e36(0x365)](this['_collaborationController'][_0x2a0e36(0x3e7)][_0x2a0e36(0x22d)](_0x514fe5=>{const _0x2bfcf3=_0x2a0e36,_0x493106=this['_docStateChangeManagerService']['docStateChange$'][_0x2bfcf3(0x22d)](_0x410c19=>{const _0x4a9a6a=_0x2bfcf3;if(_0x410c19==null)return;const {unitId:_0x261240,redoState:_0x347ade,commandId:_0x195e2d}=_0x410c19;if(_0x261240!==_0x514fe5[_0x4a9a6a(0x23d)])return;const _0x25b923={'id':_0x195e2d,'type':_0x32d026['MUTATION'],'params':{'unitId':_0x261240,'actions':_0x347ade['actions'],'textRanges':null}};_0x514fe5[_0x4a9a6a(0x34a)](_0x25b923);});if(_0x514fe5[_0x2bfcf3(0x365)](_0x493106),_0x514fe5 instanceof _0x311d59){const _0x2cd37f={'onTransformIME':_0x10ae97=>this[_0x2bfcf3(0x3a0)][_0x2bfcf3(0x3e3)](_0x10ae97),'onTransformState':_0x407d6b=>this[_0x2bfcf3(0x2d6)][_0x2bfcf3(0x2f8)](_0x407d6b),'onTransformSelections':_0x4cecf7=>this[_0x2bfcf3(0x2a8)]['transformSelections'](_0x4cecf7),'onSyncEditingCollabCursor':_0x38c4dd=>this[_0x2bfcf3(0x2d7)]['syncEditingCollabCursor'](_0x38c4dd),'onTransformRemoteChangesetByIMECache':_0x58ee5b=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x58ee5b),'onTransformRemoteChangesetByStateCache':_0x2620ba=>this[_0x2bfcf3(0x2d6)][_0x2bfcf3(0x3ee)](_0x2620ba)};_0x514fe5['addHandlerCallback'](_0x2cd37f);}}));}};Se=En([U(0x0,_0xea701b(_0x369bb6)),U(0x1,_0xea701b(_0x1e646e)),U(0x2,_0xea701b(he)),U(0x3,_0xea701b(ue)),U(0x4,_0xea701b(de)),U(0x5,_0xea701b(ze)),U(0x6,_0x25d450),U(0x7,_0xea701b(_0x4fbd2b))],Se);var Z=(_0x35c53f=>(_0x35c53f[_0x35c53f[_0x46d0db(0x3e8)]=0x0]=_0x46d0db(0x3e8),_0x35c53f[_0x35c53f['OK']=0x1]='OK',_0x35c53f[_0x35c53f[_0x46d0db(0x3b7)]=0x2]='INTERNAL_ERROR',_0x35c53f[_0x35c53f[_0x46d0db(0x31b)]=0x3]='PERMISSION_DENIED',_0x35c53f[_0x35c53f[_0x46d0db(0x2de)]=0x4]=_0x46d0db(0x2de),_0x35c53f[_0x35c53f[_0x46d0db(0x1e9)]=0x5]=_0x46d0db(0x1e9),_0x35c53f[_0x35c53f[_0x46d0db(0x2f0)]=0x6]='ALREADY_EXISTS',_0x35c53f[_0x35c53f[_0x46d0db(0x385)]=0x7]='INVALID_ARGUMENT',_0x35c53f[_0x35c53f[_0x46d0db(0x27f)]=0x8]=_0x46d0db(0x27f),_0x35c53f[_0x35c53f['COMPLETION_FINISHED']=0x9]=_0x46d0db(0x1f6),_0x35c53f[_0x35c53f[_0x46d0db(0x371)]=0xa]=_0x46d0db(0x371),_0x35c53f[_0x35c53f[_0x46d0db(0x2aa)]=0xb]=_0x46d0db(0x2aa),_0x35c53f[_0x35c53f[_0x46d0db(0x2bf)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x35c53f[_0x35c53f[_0x46d0db(0x379)]=0xd]=_0x46d0db(0x379),_0x35c53f[_0x35c53f[_0x46d0db(0x242)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x35c53f[_0x35c53f['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x46d0db(0x3b5),_0x35c53f[_0x35c53f[_0x46d0db(0x2db)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x35c53f[_0x35c53f[_0x46d0db(0x1f0)]=0x64]=_0x46d0db(0x1f0),_0x35c53f[_0x35c53f['ERROR_AGAIN']=0x65]=_0x46d0db(0x30c),_0x35c53f[_0x35c53f[_0x46d0db(0x1e1)]=0xc9]=_0x46d0db(0x1e1),_0x35c53f[_0x35c53f[_0x46d0db(0x3e9)]=0xca]='USER_IS_ANONYMOUS',_0x35c53f[_0x35c53f[_0x46d0db(0x381)]=0x1389]=_0x46d0db(0x381),_0x35c53f[_0x35c53f[_0x46d0db(0x366)]=0x1771]=_0x46d0db(0x366),_0x35c53f[_0x35c53f[_0x46d0db(0x279)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x35c53f[_0x35c53f[_0x46d0db(0x214)]=0x1773]=_0x46d0db(0x214),_0x35c53f[_0x35c53f[_0x46d0db(0x378)]=0x1b59]=_0x46d0db(0x378),_0x35c53f[_0x35c53f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x46d0db(0x3f7),_0x35c53f[_0x35c53f['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x35c53f[_0x35c53f[_0x46d0db(0x222)]=0x1b5c]=_0x46d0db(0x222),_0x35c53f[_0x35c53f['APPLY_DUPLICATED']=0x1b5d]=_0x46d0db(0x3fc),_0x35c53f[_0x35c53f['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x46d0db(0x2dd),_0x35c53f[_0x35c53f[_0x46d0db(0x282)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x35c53f[_0x35c53f[_0x46d0db(0x23e)]=0x232a]=_0x46d0db(0x23e),_0x35c53f[_0x35c53f[_0x46d0db(0x332)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x35c53f[_0x35c53f[_0x46d0db(0x409)]=0x232c]=_0x46d0db(0x409),_0x35c53f[_0x35c53f[_0x46d0db(0x37d)]=0x232d]=_0x46d0db(0x37d),_0x35c53f[_0x35c53f[_0x46d0db(0x369)]=0x2711]=_0x46d0db(0x369),_0x35c53f[_0x35c53f[_0x46d0db(0x393)]=0x2712]=_0x46d0db(0x393),_0x35c53f[_0x35c53f[_0x46d0db(0x415)]=0x2713]=_0x46d0db(0x415),_0x35c53f[_0x35c53f[_0x46d0db(0x31c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x35c53f[_0x35c53f[_0x46d0db(0x202)]=0x271a]=_0x46d0db(0x202),_0x35c53f[_0x35c53f[_0x46d0db(0x200)]=0x271b]=_0x46d0db(0x200),_0x35c53f[_0x35c53f[_0x46d0db(0x1f7)]=0x271c]=_0x46d0db(0x1f7),_0x35c53f[_0x35c53f[_0x46d0db(0x203)]=0x271d]=_0x46d0db(0x203),_0x35c53f[_0x35c53f[_0x46d0db(0x233)]=0x271e]=_0x46d0db(0x233),_0x35c53f[_0x35c53f[_0x46d0db(0x246)]=0x271f]=_0x46d0db(0x246),_0x35c53f[_0x35c53f[_0x46d0db(0x335)]=0x2720]=_0x46d0db(0x335),_0x35c53f[_0x35c53f[_0x46d0db(0x289)]=0x2af9]=_0x46d0db(0x289),_0x35c53f[_0x35c53f[_0x46d0db(0x320)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x35c53f[_0x35c53f[_0x46d0db(0x294)]=0x2ee2]=_0x46d0db(0x294),_0x35c53f[_0x35c53f[_0x46d0db(0x2dc)]=0x2ee3]=_0x46d0db(0x2dc),_0x35c53f[_0x35c53f[_0x46d0db(0x269)]=0x2ee4]=_0x46d0db(0x269),_0x35c53f[_0x35c53f[_0x46d0db(0x34d)]=0x2ee5]=_0x46d0db(0x34d),_0x35c53f[_0x35c53f[_0x46d0db(0x216)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x35c53f[_0x35c53f['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x46d0db(0x28e),_0x35c53f[_0x35c53f[_0x46d0db(0x1fd)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x35c53f[_0x35c53f[_0x46d0db(0x20d)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x35c53f[_0x35c53f[_0x46d0db(0x3be)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x35c53f[_0x35c53f['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x46d0db(0x34b),_0x35c53f[_0x35c53f['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x46d0db(0x346),_0x35c53f[_0x35c53f[_0x46d0db(0x3bf)]=0x36b5]=_0x46d0db(0x3bf),_0x35c53f[_0x35c53f[_0x46d0db(0x215)]=0x36b6]=_0x46d0db(0x215),_0x35c53f[_0x35c53f[_0x46d0db(0x326)]=0x36b7]=_0x46d0db(0x326),_0x35c53f[_0x35c53f['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x46d0db(0x3dd),_0x35c53f[_0x35c53f[_0x46d0db(0x218)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x35c53f[_0x35c53f[_0x46d0db(0x328)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x35c53f[_0x35c53f[_0x46d0db(0x31a)]=0x3717]=_0x46d0db(0x31a),_0x35c53f[_0x35c53f[_0x46d0db(0x419)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x35c53f[_0x35c53f[_0x46d0db(0x1d7)]=0x3a99]=_0x46d0db(0x1d7),_0x35c53f[_0x35c53f[_0x46d0db(0x356)]=0x3a9a]=_0x46d0db(0x356),_0x35c53f[_0x35c53f[_0x46d0db(0x373)]=0x3a9b]=_0x46d0db(0x373),_0x35c53f[_0x35c53f[_0x46d0db(0x2e2)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x35c53f[_0x35c53f['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x46d0db(0x20b),_0x35c53f[_0x35c53f[_0x46d0db(0x2a7)]=0x3a9e]=_0x46d0db(0x2a7),_0x35c53f[_0x35c53f['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x35c53f[_0x35c53f[_0x46d0db(0x3c9)]=0x3e81]=_0x46d0db(0x3c9),_0x35c53f[_0x35c53f['UNRECOGNIZED']=-0x1]=_0x46d0db(0x2a4),_0x35c53f))(Z||{});function vn(_0x3f053f){const _0x572df5=_0x46d0db;var _0x44df38,_0x9a5a1e;const _0x3e9ded=(_0x44df38=_0x3f053f[_0x572df5(0x257)])==null?void 0x0:_0x44df38[_0x572df5(0x2b6)],_0x560e98=((_0x9a5a1e=_0x3f053f[_0x572df5(0x257)])==null?void 0x0:_0x9a5a1e[_0x572df5(0x1ef)])||0x0;return _0x3e9ded===_0x33e62e[_0x572df5(0x2e3)]&&_0x560e98>0x0;}function pn(_0x3cf0c9){const _0x3649db=_0x46d0db;return _0x3cf0c9['functionsExecutedState']===_0x5107e3[_0x3649db(0x37f)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x47341b,_0x4244b7,_0x36a53c,_0x22a359)=>{const _0x10c4e9=_0x46d0db;for(var _0x5d5522=_0x22a359>0x1?void 0x0:_0x22a359?On(_0x4244b7,_0x36a53c):_0x4244b7,_0x29b109=_0x47341b[_0x10c4e9(0x3c7)]-0x1,_0x270488;_0x29b109>=0x0;_0x29b109--)(_0x270488=_0x47341b[_0x29b109])&&(_0x5d5522=_0x270488(_0x5d5522)||_0x5d5522);return _0x5d5522;},P=(_0x1bb9d3,_0x1da027)=>(_0x2137b2,_0xb0be50)=>_0x1da027(_0x2137b2,_0xb0be50,_0x1bb9d3);const Cn=_0x46d0db(0x280),Rn='/universer-api/license/formula/limit/start',Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x325e21{constructor(_0x2e6783,_0x5047c8,_0x39ad65,_0x1e400a,_0x1eb7d1,_0x1f53a0,_0x3ab123){const _0x4d43cb=_0x46d0db;super(),_(this,_0x4d43cb(0x3b2),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x4d43cb(0x3d3),0x0),_(this,'_taskIds',[]),_(this,_0x4d43cb(0x1e2),0x0),(this[_0x4d43cb(0x236)]=_0x2e6783,this[_0x4d43cb(0x34c)]=_0x5047c8,this[_0x4d43cb(0x1e4)]=_0x39ad65,this[_0x4d43cb(0x2d2)]=_0x1e400a,this['_univerInstanceService']=_0x1eb7d1,this[_0x4d43cb(0x281)]=_0x1f53a0,this['_localeService']=_0x3ab123,this[_0x4d43cb(0x301)]());}[_0x46d0db(0x301)](){const _0xda51e4=_0x46d0db;this[_0xda51e4(0x365)](this[_0xda51e4(0x34c)]['beforeCommandExecuted']((_0x213197,_0x55a159)=>{const _0x18e0b2=_0xda51e4;var _0x48fd31;if(_0x213197['id']!==_0xd13b4b['id'])return;const _0x1e7547=_0x213197[_0x18e0b2(0x2a9)];if(!this[_0x18e0b2(0x1fc)]((_0x48fd31=_0x1e7547[_0x18e0b2(0x362)])!=null?_0x48fd31:[]))return;if(!this[_0x18e0b2(0x338)]())throw this[_0x18e0b2(0x26a)](_0x213197,_0x55a159),this[_0x18e0b2(0x36a)](),new _0x391ab4();})),this[_0xda51e4(0x365)](this[_0xda51e4(0x34c)][_0xda51e4(0x3a8)]((_0x3c8912,_0x170ca9)=>{const _0x247d06=_0xda51e4;if(_0x3c8912['id']!==_0x4191e8['id'])return;const _0x1fe57f=_0x3c8912[_0x247d06(0x2a9)];if(vn(_0x1fe57f)){const _0x12e15a=_0x316c01();this['_taskIds']['push'](_0x12e15a),this[_0x247d06(0x322)](_0x12e15a);}else{if(pn(_0x1fe57f)&&this[_0x247d06(0x1c9)][_0x247d06(0x3c7)]>0x0){const _0x3c218a=this['_taskIds'][_0x247d06(0x382)]();this[_0x247d06(0x324)](_0x3c218a);}}}));}[_0x46d0db(0x339)](){const _0x22ad97=_0x46d0db;super['dispose'](),this[_0x22ad97(0x1cc)](),this[_0x22ad97(0x1c9)]=[],this[_0x22ad97(0x3d3)]=0x0,this[_0x22ad97(0x394)]=0x0,this[_0x22ad97(0x1e2)]=0x0;}async[_0x46d0db(0x26a)](_0xdeaabf,_0xd559dd){const _0x62704f=_0x46d0db;for(let _0x278723=0x0;_0x278723<0x1e;_0x278723++)try{if(await this[_0x62704f(0x20e)](),this[_0x62704f(0x338)]()){this[_0x62704f(0x40f)](_0xdeaabf,_0xd559dd),this['_messageService'][_0x62704f(0x2e8)]({'content':this['_localeService']['t'](_0x62704f(0x21c)),'type':_0x404ab1['Success']});return;}await new Promise(_0x55770e=>{const _0x51958a=_0x62704f;this[_0x51958a(0x3b2)]=window[_0x51958a(0x28c)](_0x55770e,0x3e8);});}catch(_0x131061){this[_0x62704f(0x281)]['error'](_0x131061);}this[_0x62704f(0x236)][_0x62704f(0x2e8)]({'content':this['_localeService']['t'](_0x62704f(0x2e4)),'type':_0x404ab1['Error']});}[_0x46d0db(0x40f)](_0x1e54e0,_0x320472){const _0x3fbf61=_0x46d0db;try{this['_commandService'][_0x3fbf61(0x296)](_0x1e54e0['id'],_0x1e54e0[_0x3fbf61(0x2a9)],_0x320472);}catch(_0x38cf63){this[_0x3fbf61(0x281)][_0x3fbf61(0x263)](_0x38cf63);}}[_0x46d0db(0x24e)](_0x3f0284,_0x58da10){const _0x3041e6=_0x46d0db;_0x58da10<this[_0x3041e6(0x1e2)]||(this['_lastResponseTimestamp']=_0x58da10,this[_0x3041e6(0x394)]=Number[_0x3041e6(0x2f2)](_0x3f0284[_0x3041e6(0x273)]),this['_currentUsage']=Number[_0x3041e6(0x2f2)](_0x3f0284[_0x3041e6(0x288)]));}async[_0x46d0db(0x322)](_0x523bf6){const _0x47432f=_0x46d0db;var _0x269afd,_0x3109bb;const _0x38f70e=Date[_0x47432f(0x1de)]();try{const _0x2c5aa3=((_0x269afd=this[_0x47432f(0x1e4)][_0x47432f(0x2cd)](_0x331045))==null?void 0x0:_0x269afd[_0x47432f(0x403)])||Rn,_0x163d08=(await this['_httpService']['post'](_0x2c5aa3,{'body':JSON['stringify']({'taskId':_0x523bf6})}))[_0x47432f(0x221)];if(((_0x3109bb=_0x163d08[_0x47432f(0x263)])==null?void 0x0:_0x3109bb[_0x47432f(0x20f)])!==Z['OK'])return;this[_0x47432f(0x24e)](_0x163d08['limitInfo'],_0x38f70e);}catch(_0x4aa060){this['_logService']['error'](_0x4aa060);}}async[_0x46d0db(0x20e)](_0x24f5c4){const _0x133540=_0x46d0db;var _0x1eb42f,_0x272289;const _0x374b11=Date[_0x133540(0x1de)]();try{const _0x454444=((_0x1eb42f=this[_0x133540(0x1e4)]['getConfig'](_0x331045))==null?void 0x0:_0x1eb42f[_0x133540(0x3d7)])||Cn,_0x3abc5a=_0x24f5c4?_0x454444+_0x133540(0x2c5)+encodeURIComponent(_0x24f5c4):_0x454444,_0x3ffcd7=(await this[_0x133540(0x2d2)][_0x133540(0x387)](_0x3abc5a))[_0x133540(0x221)];if(((_0x272289=_0x3ffcd7['error'])==null?void 0x0:_0x272289[_0x133540(0x20f)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x3ffcd7[_0x133540(0x213)],_0x374b11);}catch(_0x38b4d0){this['_logService']['error'](_0x38b4d0);}}async[_0x46d0db(0x324)](_0x513776){const _0x14bc09=_0x46d0db;var _0x5b6784,_0x437b24;const _0x4df2ca=Date[_0x14bc09(0x1de)]();try{const _0x41d2ec=((_0x5b6784=this[_0x14bc09(0x1e4)][_0x14bc09(0x2cd)](_0x331045))==null?void 0x0:_0x5b6784[_0x14bc09(0x2fe)])||Dn,_0x11cfb4=(await this[_0x14bc09(0x2d2)][_0x14bc09(0x211)](_0x41d2ec,{'body':JSON[_0x14bc09(0x208)]({'taskId':_0x513776})}))[_0x14bc09(0x221)];if(((_0x437b24=_0x11cfb4[_0x14bc09(0x263)])==null?void 0x0:_0x437b24[_0x14bc09(0x20f)])!==Z['OK'])return;this[_0x14bc09(0x24e)](_0x11cfb4['limitInfo'],_0x4df2ca);}catch(_0x217e11){this['_logService'][_0x14bc09(0x263)](_0x217e11);}}['_checkCalculationAvailable'](){const _0x1c07fe=_0x46d0db;return this[_0x1c07fe(0x394)]===0x0?!0x0:this[_0x1c07fe(0x394)]-this[_0x1c07fe(0x3d3)]>0x0;}[_0x46d0db(0x1cc)](){const _0x2d4728=_0x46d0db;this[_0x2d4728(0x3b2)]&&(clearTimeout(this[_0x2d4728(0x3b2)]),this[_0x2d4728(0x3b2)]=null);}[_0x46d0db(0x36a)](){const _0x530c0b=_0x46d0db;this['_messageService']['show']({'content':this[_0x530c0b(0x2c7)]['t']('formula.calculation.waiting'),'type':_0x404ab1[_0x530c0b(0x264)]});}['_hasFormulaInDirtyRanges'](_0x5669d1){const _0xa3cfff=_0x46d0db;for(const _0x3f0738 of _0x5669d1){const {unitId:_0x566847,sheetId:_0x58f89d,range:_0x3d3ce2}=_0x3f0738,_0x4f4ca6=this[_0xa3cfff(0x267)][_0xa3cfff(0x414)](_0x566847);if(!_0x4f4ca6)continue;const _0x5ead54=_0x4f4ca6[_0xa3cfff(0x22a)](_0x58f89d);if(!_0x5ead54)continue;const _0x898ee6=_0x5ead54[_0xa3cfff(0x310)]();for(let _0x4fedf8=_0x3d3ce2[_0xa3cfff(0x2d1)];_0x4fedf8<=_0x3d3ce2[_0xa3cfff(0x2b1)];_0x4fedf8++)for(let _0x236dec=_0x3d3ce2['startColumn'];_0x236dec<=_0x3d3ce2[_0xa3cfff(0x2b8)];_0x236dec++){const _0x335014=_0x898ee6['getValue'](_0x4fedf8,_0x236dec);if(_0x335014&&(_0x2c0875(_0x335014['f'])||_0x2d1200(_0x335014['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xea701b(_0x25d450)),P(0x1,_0x1f0fa6),P(0x2,_0x2f71c6),P(0x3,_0xea701b(_0x146466)),P(0x4,_0x2b2591),P(0x5,_0xf63a71),P(0x6,_0xea701b(_0x4fbd2b))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x52ec23,_0x56cc88,_0x22f50c,_0x54e527)=>{const _0x55e9ed=_0x46d0db;for(var _0x40688f=_0x54e527>0x1?void 0x0:_0x54e527?Nn(_0x56cc88,_0x22f50c):_0x56cc88,_0x357c33=_0x52ec23[_0x55e9ed(0x3c7)]-0x1,_0x47c6c2;_0x357c33>=0x0;_0x357c33--)(_0x47c6c2=_0x52ec23[_0x357c33])&&(_0x40688f=_0x47c6c2(_0x40688f)||_0x40688f);return _0x40688f;},Ue=(_0x40b8fa,_0x212186)=>(_0x5baf47,_0xc5594)=>_0x212186(_0x5baf47,_0xc5594,_0x40b8fa);let He=class extends _0x325e21{constructor(_0x43f931,_0x48bfb4,_0x3867f5){const _0x20a691=_0x46d0db;super(),_(this,_0x20a691(0x3cd),new Map()),_(this,_0x20a691(0x30d),new Map()),_(this,_0x20a691(0x3b1),!0x1),(this['_configService']=_0x43f931,this[_0x20a691(0x32c)]=_0x48bfb4,this[_0x20a691(0x2d0)]=_0x3867f5);}['disableLocalCache'](){const _0x35f18d=_0x46d0db;this[_0x35f18d(0x3b1)]=!0x0;}[_0x46d0db(0x3c8)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0xfec21d=_0x46d0db;return this[_0xfec21d(0x30d)];}[_0x46d0db(0x339)](){const _0x449cb0=_0x46d0db;this[_0x449cb0(0x351)]()[_0x449cb0(0x1e8)](()=>super[_0x449cb0(0x339)]());}async[_0x46d0db(0x302)](_0x53025c){const _0x5dfc4c=_0x46d0db;return this[_0x5dfc4c(0x3b1)]?null:this['_localStorageService'][_0x5dfc4c(0x3c5)](_0x5d5e14(_0x53025c));}async[_0x46d0db(0x1e6)](_0x4265c5,_0x1fe9bd){const _0x5d6213=_0x46d0db;return!!this[_0x5d6213(0x32c)][_0x5d6213(0x1d1)](_0x4265c5,_0x1fe9bd);}[_0x46d0db(0x2ff)](_0x4e21fe,_0x5ba1aa,_0x1a1384,_0x486d3c){const _0x1143dd=_0x46d0db,_0x3cd3df=this[_0x1143dd(0x2d0)][_0x1143dd(0x3e2)](_0x4e21fe);this[_0x1143dd(0x3cd)][_0x1143dd(0x32b)](_0x4e21fe,{'unitID':_0x4e21fe,'type':_0x5ba1aa,'awaitingChangeset':_0x1a1384,'mutations':_0x486d3c,'rev':_0x3cd3df}),this[_0x1143dd(0x30d)][_0x1143dd(0x325)](_0x4e21fe)||this[_0x1143dd(0x410)](_0x4e21fe);}[_0x46d0db(0x410)](_0x35dbca){const _0x4ffd65=_0x46d0db,_0x5ed499=this[_0x4ffd65(0x406)]();_0x5ed499===0x0?this[_0x4ffd65(0x407)](_0x35dbca):this[_0x4ffd65(0x30d)][_0x4ffd65(0x32b)](_0x35dbca,setTimeout(()=>this['_saveCache'](_0x35dbca),_0x5ed499));}[_0x46d0db(0x406)](){const _0x9ee4f3=_0x46d0db;var _0x376496;return(_0x376496=this[_0x9ee4f3(0x1e4)][_0x9ee4f3(0x2cd)](_0x57a441))!=null?_0x376496:_0x41d58a;}['_saveCache'](_0x5e57be){const _0x4a21e7=_0x46d0db,_0x2d1090=this[_0x4a21e7(0x30d)]['get'](_0x5e57be);return _0x2d1090!==void 0x0&&window[_0x4a21e7(0x1f2)](_0x2d1090),this[_0x4a21e7(0x32c)][_0x4a21e7(0x1d1)](_0x5d5e14(_0x5e57be),this[_0x4a21e7(0x3cd)][_0x4a21e7(0x387)](_0x5e57be))[_0x4a21e7(0x1e8)](()=>this['_saveTaskMap'][_0x4a21e7(0x291)](_0x5e57be));}async['exhaustSavingTask'](){const _0x4edd13=_0x46d0db,_0xf8419=[];this['_saveTaskMap'][_0x4edd13(0x207)]((_0x4b4e1b,_0x50f837)=>{const _0x598728=_0x4edd13;window[_0x598728(0x1f2)](_0x4b4e1b),_0xf8419[_0x598728(0x2ac)](this[_0x598728(0x407)](_0x50f837)[_0x598728(0x1e8)](()=>{const _0x37788e=_0x598728;this['_saveTaskMap'][_0x37788e(0x291)](_0x50f837);}));}),await Promise['all'](_0xf8419);}};He=bn([Ue(0x0,_0x2f71c6),Ue(0x1,_0x2b6927),Ue(0x2,_0xea701b(_0x3bad50))],He);class Ln extends _0x4128f2{constructor(){const _0x3d2a30=_0x46d0db;super(),_(this,_0x3d2a30(0x39f)),this[_0x3d2a30(0x39f)]=_0x550027(window,_0x3d2a30(0x418))[_0x3d2a30(0x303)](_0x3a9d76(this['dispose$']),_0x34a5e8(0x1),_0x20a6b6(void 0x0));}['setParam'](_0x29578f,_0x4438c3,_0x5985d2=!0x1){const _0x49203c=_0x46d0db,_0xaaca77=new URL(window[_0x49203c(0x24c)][_0x49203c(0x23a)]);_0xaaca77[_0x49203c(0x225)][_0x49203c(0x32b)](_0x29578f,_0x4438c3),_0x5985d2?window[_0x49203c(0x3dc)][_0x49203c(0x21b)]('','',_0xaaca77[_0x49203c(0x37c)]()):window['history']['pushState']('','',_0xaaca77[_0x49203c(0x37c)]());}[_0x46d0db(0x2cb)](_0x1dfdd0,_0x4a68ee=!0x1){const _0x1cef14=_0x46d0db,_0x17de68=new URL(window[_0x1cef14(0x24c)][_0x1cef14(0x23a)]);_0x17de68[_0x1cef14(0x225)][_0x1cef14(0x291)](_0x1dfdd0),_0x4a68ee?window[_0x1cef14(0x3dc)][_0x1cef14(0x21b)]('','',_0x17de68[_0x1cef14(0x37c)]()):window[_0x1cef14(0x3dc)][_0x1cef14(0x28b)]('','',_0x17de68[_0x1cef14(0x37c)]());}[_0x46d0db(0x235)](_0x5897c4){var _0x2018fa;return(_0x2018fa=new URL(window['location']['href'])['searchParams']['get'](_0x5897c4))!=null?_0x2018fa:void 0x0;}}var Un=Object[_0x46d0db(0x20a)],Mn=Object['getOwnPropertyDescriptor'],An=(_0xfa69b,_0x118f92,_0x21c849)=>_0x118f92 in _0xfa69b?Un(_0xfa69b,_0x118f92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21c849}):_0xfa69b[_0x118f92]=_0x21c849,Pn=(_0x34e072,_0x440a2c,_0x2357fb,_0xdac61b)=>{const _0x1db4c6=_0x46d0db;for(var _0x5aefe9=_0xdac61b>0x1?void 0x0:_0xdac61b?Mn(_0x440a2c,_0x2357fb):_0x440a2c,_0x34ada1=_0x34e072[_0x1db4c6(0x3c7)]-0x1,_0x12bb19;_0x34ada1>=0x0;_0x34ada1--)(_0x12bb19=_0x34e072[_0x34ada1])&&(_0x5aefe9=_0x12bb19(_0x5aefe9)||_0x5aefe9);return _0x5aefe9;},Me=(_0x17f944,_0x425ddf)=>(_0x4e48bf,_0x495ac4)=>_0x425ddf(_0x4e48bf,_0x495ac4,_0x17f944),wn=(_0xe36e3a,_0x125c51,_0x16c304)=>An(_0xe36e3a,_0x125c51+'',_0x16c304);const yn=_0x46d0db(0x262);let Ye=class extends _0x77b34d{constructor(_0x4541cb=_t,_0x10468a,_0x80fbf5,_0x1ad315){const _0x4b360b=_0x46d0db;super(),this[_0x4b360b(0x300)]=_0x4541cb,this[_0x4b360b(0x3a4)]=_0x10468a,this[_0x4b360b(0x278)]=_0x80fbf5,this[_0x4b360b(0x1e4)]=_0x1ad315;const {..._0x21e2fa}=_0x2e11c2({},_t,this[_0x4b360b(0x300)]);this[_0x4b360b(0x1e4)][_0x4b360b(0x285)](hn,_0x21e2fa);}['onStarting'](){const _0xa1844a=_0x46d0db;this['_registerDependencies'](),this[_0xa1844a(0x3f6)]();}[_0x46d0db(0x397)](){const _0x51b73d=_0x46d0db;this[_0x51b73d(0x33f)]();}[_0x46d0db(0x243)](){const _0x299f9d=_0x46d0db;var _0x1330ab;const _0x4f89dc=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2e5978,{'useClass':_0x20f03b}],[_0x30567e,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this['_config']['enableFrontendLog']&&_0x4f89dc['push']([le]),_0x29599c(this['_injector'],_0x250639(_0x4f89dc,(_0x1330ab=this[_0x299f9d(0x300)])==null?void 0x0:_0x1330ab[_0x299f9d(0x2b0)]));}[_0x46d0db(0x33f)](){const _0x2b0e87=_0x46d0db;this[_0x2b0e87(0x365)](this[_0x2b0e87(0x3a4)][_0x2b0e87(0x1d3)](_0xee6b2[_0x2b0e87(0x36d)],[Fe])),this[_0x2b0e87(0x365)](this[_0x2b0e87(0x3a4)][_0x2b0e87(0x1d3)](_0xee6b2['UNIVER_SHEET'],[ke]));}[_0x46d0db(0x3f6)](){const _0x234eed=_0x46d0db;_0x2e2d25(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x234eed(0x300)][_0x234eed(0x33c)]&&_0x2e2d25(this[_0x234eed(0x278)],[[le]]);}};wn(Ye,_0x46d0db(0x239),yn),Ye=Pn([_0x514518(_0x930682),Me(0x1,_0x38baec),Me(0x2,_0xea701b(_0x29824e)),Me(0x3,_0x2f71c6)],Ye);var $n=Object[_0x46d0db(0x3db)],xn=(_0x167fb9,_0x737b32,_0x249265,_0x56a19d)=>{for(var _0x537b05=_0x56a19d>0x1?void 0x0:_0x56a19d?$n(_0x737b32,_0x249265):_0x737b32,_0x48b3ce=_0x167fb9['length']-0x1,_0x1f1ebb;_0x48b3ce>=0x0;_0x48b3ce--)(_0x1f1ebb=_0x167fb9[_0x48b3ce])&&(_0x537b05=_0x1f1ebb(_0x537b05)||_0x537b05);return _0x537b05;},J=(_0x1fdd91,_0x4c82aa)=>(_0x53fbd0,_0x5df459)=>_0x4c82aa(_0x53fbd0,_0x5df459,_0x1fdd91);let ut=class extends _0x1bb4a1{constructor(_0x5bb3d2,_0xe68156,_0x1178b9,_0x26a071,_0x15f975){super(_0x5bb3d2,_0xe68156,_0x1178b9,_0x26a071,_0x15f975);}async['createSocket'](_0x253170){const _0x4edc4c=_0x46d0db,_0x4779c7=await this[_0x4edc4c(0x330)](),_0x2e1e0d=this[_0x4edc4c(0x3bd)](_0x253170,_0x4779c7);return this[_0x4edc4c(0x2f4)](_0x2e1e0d);}[_0x46d0db(0x3bd)](_0x50f5fd,_0x53df01){const _0x336daa=_0x46d0db,_0x1b2b04=typeof window>'u'?new URL(_0x50f5fd):new URL(_0x50f5fd,window[_0x336daa(0x24c)][_0x336daa(0x229)]);_0x1b2b04[_0x336daa(0x225)][_0x336daa(0x32b)](_0x336daa(0x224),_0x53df01);const _0x58515f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x58515f['get'](_0x336daa(0x308))&&_0x1b2b04[_0x336daa(0x225)][_0x336daa(0x32b)](_0x336daa(0x308),_0x58515f[_0x336daa(0x387)]('runId')),_0x1b2b04['toString']();}async[_0x46d0db(0x330)](){const _0x56df5a=_0x46d0db;var _0xa6652,_0x51c421,_0x50820d;const _0x117ef1=this[_0x56df5a(0x1e4)]['getConfig'](_0x331045),_0x19d1e6=(_0xa6652=_0x117ef1==null?void 0x0:_0x117ef1['wsSessionTicketUrl'])!=null?_0xa6652:_0x202521;return(_0x50820d=(_0x51c421=(await this[_0x56df5a(0x2d2)][_0x56df5a(0x387)](_0x19d1e6,{'headers':{'Content-Type':'application/json'}}))[_0x56df5a(0x221)])==null?void 0x0:_0x51c421['ticket'])!=null?_0x50820d:'';}};ut=xn([J(0x0,_0xea701b(_0x29824e)),J(0x1,_0xea701b(_0x146466)),J(0x2,_0x2f71c6),J(0x3,_0xf63a71),J(0x4,_0x189b23)],ut);var Bn=Object[_0x46d0db(0x3db)],Fn=(_0x3eabcf,_0x4f9279,_0x302896,_0x59b2e5)=>{const _0x88fd56=_0x46d0db;for(var _0x542ff0=_0x59b2e5>0x1?void 0x0:_0x59b2e5?Bn(_0x4f9279,_0x302896):_0x4f9279,_0x106e95=_0x3eabcf[_0x88fd56(0x3c7)]-0x1,_0x2892f2;_0x106e95>=0x0;_0x106e95--)(_0x2892f2=_0x3eabcf[_0x106e95])&&(_0x542ff0=_0x2892f2(_0x542ff0)||_0x542ff0);return _0x542ff0;},Ae=(_0x4580cb,_0x105fa3)=>(_0x1397a2,_0xdcbeec)=>_0x105fa3(_0x1397a2,_0xdcbeec,_0x4580cb);let dt=class extends _0x325e21{constructor(_0x31c496,_0x5c195c,_0x303b50){const _0x2cf704=_0x46d0db;super(),this[_0x2cf704(0x252)]=_0x31c496,this[_0x2cf704(0x2d2)]=_0x5c195c,this[_0x2cf704(0x1e4)]=_0x303b50;}async['runOnServer'](_0x23d160,_0x5bbfae,_0x116cc1,..._0x3dcceb){const _0x54de0e=_0x46d0db;var _0xa4663,_0x35931a,_0x2f8016,_0x23d783;const _0x3b4bda=this[_0x54de0e(0x252)][_0x54de0e(0x3f5)]();if(!_0x3b4bda)throw new Error(_0x54de0e(0x21a));const _0x5083bf=((_0xa4663=this[_0x54de0e(0x1e4)]['getConfig'](_0x155d53))!=null?_0xa4663:_0xac7d50)+'/'+_0x23d160+_0x54de0e(0x38e)+_0x5bbfae,_0x2108a6=new URL(window[_0x54de0e(0x24c)][_0x54de0e(0x23a)]),_0x8f5d1c={'scriptId':_0x23d160,'runId':(_0x35931a=_0x2108a6['searchParams'][_0x54de0e(0x387)](_0x54de0e(0x308)))!=null?_0x35931a:'','function':_0x5bbfae,'unitId':_0x3b4bda[_0x54de0e(0x226)](),'argsOfFunction':JSON[_0x54de0e(0x208)](_0x3dcceb),'invokeId':(_0x2f8016=_0x116cc1[_0x54de0e(0x3d5)])!=null?_0x2f8016:'','executionId':(_0x23d783=_0x116cc1[_0x54de0e(0x396)])!=null?_0x23d783:''};try{const _0x243582=await this[_0x54de0e(0x2d2)][_0x54de0e(0x211)](_0x5083bf,{'body':_0x8f5d1c});return _0x243582[_0x54de0e(0x221)]['error']&&_0x243582[_0x54de0e(0x221)][_0x54de0e(0x263)]['code']!==Z['OK']?'Failed':_0x243582[_0x54de0e(0x221)][_0x54de0e(0x306)];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x2b2591),Ae(0x1,_0xea701b(_0x146466)),Ae(0x2,_0x2f71c6)],dt);const St=0x7530,It=_0x46d0db(0x33e);class rr extends _0x325e21{constructor(){const _0x4a1c78=_0x46d0db;super(),_(this,'_id',_0x316c01()),_(this,'_selfUnitIDs',new Set()),_(this,_0x4a1c78(0x327),new Map()),_(this,_0x4a1c78(0x2e6),null),_(this,_0x4a1c78(0x3f3),new Map()),_(this,_0x4a1c78(0x2bb),new Map()),this[_0x4a1c78(0x389)]();}[_0x46d0db(0x339)](){const _0x392cdc=_0x46d0db;super['dispose'](),this[_0x392cdc(0x3f3)]['forEach']((_0xca3b77,_0x55151e)=>this['_removeClearOtherTimer'](_0x55151e)),this['_heartbeatTimer']&&window[_0x392cdc(0x391)](this[_0x392cdc(0x2e6)]);}['getUnitStatus$'](_0x12acd1){const _0x396f49=_0x46d0db;return this[_0x396f49(0x388)](_0x12acd1)[_0x396f49(0x303)](_0x10b6a3());}[_0x46d0db(0x3ce)](_0x2b3274){const _0x1d0ee7=_0x46d0db;this[_0x1d0ee7(0x2bc)]['size']===0x0&&this[_0x1d0ee7(0x2cc)](),this['_selfUnitIDs'][_0x1d0ee7(0x3b9)](_0x2b3274),this[_0x1d0ee7(0x38c)]({'type':0x0,'memberID':this[_0x1d0ee7(0x1cd)],'unitIDs':[_0x2b3274],'isForwarded':!0x1});}['disposeUnit'](_0x2aa2bb){const _0x21ba91=_0x46d0db;this['_selfUnitIDs'][_0x21ba91(0x291)](_0x2aa2bb),this[_0x21ba91(0x2bc)][_0x21ba91(0x32a)]===0x0&&this[_0x21ba91(0x2e6)]&&window[_0x21ba91(0x391)](this[_0x21ba91(0x2e6)]);}[_0x46d0db(0x389)](){const _0x155ef6=_0x46d0db;this[_0x155ef6(0x365)](_0xd54434(_0x550027(window,_0x155ef6(0x206))['subscribe'](_0x4e2053=>{const _0x34f7aa=_0x155ef6;if(_0x4e2053[_0x34f7aa(0x287)]!==It||!_0x4e2053[_0x34f7aa(0x37e)])return;const _0x3a999f=JSON[_0x34f7aa(0x3e1)](_0x4e2053[_0x34f7aa(0x37e)]);this['_handleEvent'](_0x3a999f);}))),window[_0x155ef6(0x1e0)](_0x155ef6(0x1d0),()=>this[_0x155ef6(0x38c)]({'type':0x1,'memberID':this[_0x155ef6(0x1cd)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x41a83e){const _0x3e7bdc=_0x46d0db;switch(_0x41a83e['type']){case 0x0:this[_0x3e7bdc(0x220)](_0x41a83e);break;case 0x1:this[_0x3e7bdc(0x24a)](_0x41a83e);break;case 0x2:this[_0x3e7bdc(0x3e4)](_0x41a83e);break;}}[_0x46d0db(0x220)](_0x2d34cf){const _0x5ddef7=_0x46d0db,{unitIDs:_0x4e1271,memberID:_0x1ca0bd,isForwarded:_0x30c7c4}=_0x2d34cf;_0x4e1271[_0x5ddef7(0x207)](_0x1a6ad4=>{const _0x279314=_0x5ddef7;if(!_0x30c7c4&&this[_0x279314(0x327)][_0x279314(0x325)](_0x1a6ad4)&&this[_0x279314(0x388)](_0x1a6ad4)[_0x279314(0x3b6)](_0x4155df[_0x279314(0x384)]),!this[_0x279314(0x327)][_0x279314(0x325)](_0x1a6ad4)||!this[_0x279314(0x327)][_0x279314(0x387)](_0x1a6ad4)[_0x279314(0x325)](_0x1ca0bd)){const _0x39e24e=this[_0x279314(0x327)][_0x279314(0x387)](_0x1a6ad4)||new Set();_0x39e24e['add'](_0x1ca0bd),this['_unitOnClients'][_0x279314(0x32b)](_0x1a6ad4,_0x39e24e),this[_0x279314(0x253)](_0x1ca0bd);}}),_0x30c7c4||this['_send']({'type':0x0,'memberID':this[_0x5ddef7(0x1cd)],'unitIDs':[...this[_0x5ddef7(0x2bc)]],'isForwarded':!0x0});}[_0x46d0db(0x253)](_0xea72){const _0x4a9259=_0x46d0db;this[_0x4a9259(0x23b)](_0xea72);const _0x55270c=window[_0x4a9259(0x28c)](()=>{const _0x3ff44b=_0x4a9259;this['_unitOnClients'][_0x3ff44b(0x207)](_0x390f10=>{const _0x59c4fc=_0x3ff44b;_0x390f10[_0x59c4fc(0x291)](_0xea72);});},St*0x2);this['_clearOtherTimers']['set'](_0xea72,_0x55270c);}['_removeClearOtherTimer'](_0x55aeeb){const _0x1970f7=_0x46d0db;if(this[_0x1970f7(0x3f3)]['has'](_0x55aeeb)){const _0x262a37=this[_0x1970f7(0x3f3)][_0x1970f7(0x387)](_0x55aeeb);_0x262a37&&window['clearTimeout'](_0x262a37),this[_0x1970f7(0x3f3)][_0x1970f7(0x32b)](_0x55aeeb,null);}}[_0x46d0db(0x24a)](_0x21fe2f){const {memberID:_0x4dc7d7,unitIDs:_0x3366b7}=_0x21fe2f;_0x3366b7['forEach'](_0x22d1f0=>{const _0x237d18=_0x4fdf;var _0x2eab9c;const _0x447f3e=this['_unitOnClients'][_0x237d18(0x387)](_0x22d1f0);_0x447f3e&&(_0x447f3e['delete'](_0x4dc7d7),(_0x2eab9c=this[_0x237d18(0x388)](_0x22d1f0))==null||_0x2eab9c['next'](_0x447f3e[_0x237d18(0x32a)]===0x0?_0x4155df[_0x237d18(0x2ce)]:_0x4155df[_0x237d18(0x384)]));}),this['_removeClearOtherTimer'](_0x4dc7d7);}[_0x46d0db(0x3e4)](_0x4e39cf){const _0x53a8cc=_0x46d0db;this[_0x53a8cc(0x253)](_0x4e39cf['memberID']);}[_0x46d0db(0x38c)](_0x33af2f){const _0xbfeccf=_0x46d0db;localStorage[_0xbfeccf(0x1d1)](It,JSON[_0xbfeccf(0x208)](_0x33af2f));}[_0x46d0db(0x2cc)](){const _0x3bd372=_0x46d0db;this[_0x3bd372(0x2e6)]=window[_0x3bd372(0x1f1)](()=>{const _0xf4bd9d=_0x3bd372;this[_0xf4bd9d(0x38c)]({'type':0x2,'memberID':this[_0xf4bd9d(0x1cd)]});},St);}[_0x46d0db(0x388)](_0x444d0f){const _0x216e57=_0x46d0db;return this['_unitStatus']['has'](_0x444d0f)||this[_0x216e57(0x2bb)][_0x216e57(0x32b)](_0x444d0f,new _0xe5dabe(_0x4155df[_0x216e57(0x2ce)])),this[_0x216e57(0x2bb)][_0x216e57(0x387)](_0x444d0f);}}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};
|