@univerjs-pro/collaboration-client-ui 0.11.0-nightly.202511151013 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x23037e=_0x596d;(function(_0x297678,_0x43ed65){const _0x8bdd18=_0x596d,_0x138d35=_0x297678();while(!![]){try{const _0x52be90=parseInt(_0x8bdd18(0x20b))/0x1+-parseInt(_0x8bdd18(0x2e1))/0x2+parseInt(_0x8bdd18(0x33e))/0x3*(-parseInt(_0x8bdd18(0x250))/0x4)+-parseInt(_0x8bdd18(0x328))/0x5+parseInt(_0x8bdd18(0x201))/0x6*(-parseInt(_0x8bdd18(0x380))/0x7)+-parseInt(_0x8bdd18(0x345))/0x8+parseInt(_0x8bdd18(0x3ed))/0x9;if(_0x52be90===_0x43ed65)break;else _0x138d35['push'](_0x138d35['shift']());}catch(_0x3326e5){_0x138d35['push'](_0x138d35['shift']());}}}(_0x1d21,0x88756));var Ft=Object[_0x23037e(0x346)],kt=(_0x5b0e41,_0x58c4a8,_0x251470)=>_0x58c4a8 in _0x5b0e41?Ft(_0x5b0e41,_0x58c4a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x251470}):_0x5b0e41[_0x58c4a8]=_0x251470,l=(_0x24435d,_0x1b8a6e,_0x3be8ff)=>kt(_0x24435d,typeof _0x1b8a6e!=_0x23037e(0x418)?_0x1b8a6e+'':_0x1b8a6e,_0x3be8ff);import{jsx as _0x138755,jsxs as _0xfacd06}from'react/jsx-runtime';import{CollaborationStatus as _0x2bd07a,CollaborationSessionService as _0x421172,CollaborationController as _0x2c7817,DataLoaderService as _0x1de1a6,MemberService as _0x254d55,SessionStatus as _0x3b587d,ILocalCacheService as _0x2c165a,CollaborationUIEventService as _0xf10605,CollaborationUIEventId as _0x595d90,DocCollaborationEntity as _0x5abbf2,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c4393,getLocalCacheKey as _0x4d52ef,LOCAL_CACHE_INTERVAL as _0x94812e,LOCAL_CACHE_INTERVAL_KEY as _0x18f2e4,UniverCollaborationClientPlugin as _0x413558,CollaborationSocketService as _0x21196e,DEFAULT_WS_SESSION_TICKET_URL as _0x4b56ec,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x9fc019,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x494cec,UnitStatus as _0x30f496}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x23ab5c,IUniverInstanceService as _0x2c6926,Inject as _0x57b7af,Injector as _0xc05c74,Disposable as _0x2adf18,createIdentifier as _0x536e65,ILogService as _0x285ace,ICommandService as _0x409061,Optional as _0x1f94a2,RxDisposable as _0x1d3622,Workbook as _0x31a656,DOC_RANGE_TYPE as _0x3c6aa3,debounce as _0x16545f,Rectangle as _0x231b0b,DisposableCollection as _0x31703a,toDisposable as _0x586ed0,UniverInstanceType as _0x175e13,generateRandomId as _0x21c798,COLORS as _0x527bec,ColorKit as _0x20724d,ThemeService as _0xd8aa5f,fromEventSubject as _0x40819d,Tools as _0x4466a1,CommandType as _0x3a1dbc,IConfigService as _0x2905aa,CanceledError as _0x4ec729,isFormulaString as _0x2ecb79,isFormulaId as _0x472e4c,ILocalStorageService as _0x4a8848,DependentOn as _0x175337,Plugin as _0x59b96e,merge as _0x4d1f57,registerDependencies as _0x50ee13,mergeOverrideWithDependencies as _0x3bff89,touchDependencies as _0x356ea1}from'@univerjs/core';import{useObservable as _0x3925f0,useDependency as _0xd61efa,IUIPartsService as _0x505eb5,BuiltInUIPart as _0x1daa22,connectInjector as _0x4aae1a,IBeforeCloseService as _0x282c8c,IMessageService as _0x92c012,INotificationService as _0x1c9405}from'@univerjs/ui';import{BehaviorSubject as _0x107cff,switchMap as _0x1a78b4,of as _0x53144c,takeUntil as _0x1f8529,debounceTime as _0x48f0e5,Subject as _0x37e983,filter as _0x72003c,merge as _0x4680f6,combineLatest as _0x4625a1,fromEvent as _0x3ac611,shareReplay as _0x109633,mapTo as _0x51cdb0,distinctUntilChanged as _0x4a17c6}from'rxjs';import{Tooltip as _0x266c7f,clsx as _0x5b3388,MessageType as _0x38ce13}from'@univerjs/design';import{useRef as _0x59da9c,createElement as _0x386601,forwardRef as _0xddff13,useCallback as _0x40aaa4}from'react';import{IRemoteInstanceService as _0x331afc}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5b0313,RefRangeService as _0x60f440,SetSelectionsOperation as _0x1b5f73,SheetsSelectionsService as _0x4e7057,EffectRefRangId as _0x5546d5,handleIRemoveRow as _0x7f5d7e,handleIRemoveCol as _0x15b017,handleMoveRange as _0x62f1a4,handleInsertRow as _0x2d53e8,handleInsertRangeMoveRight as _0x5b21d5,handleInsertRangeMoveDown as _0x5c823a,handleInsertCol as _0x13497b,handleDeleteRangeMoveUp as _0x4536fa,handleDeleteRangeMoveLeft as _0x2f0783,runRefRangeMutations as _0x3dbed1}from'@univerjs/sheets';import{Shape as _0x403c8d,Rect as _0x13c2ec,getColor as _0x29e4a4,RegularPolygon as _0x2d1fb7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x397d4d,Vector2 as _0x14908a,SHEET_VIEWPORT_KEY as _0x17ae79,IRenderManagerService as _0x3947d8}from'@univerjs/engine-render';import{HTTPService as _0x46f386,ISocketService as _0x44de3e,WebSocketService as _0x17c854}from'@univerjs/network';import{IDocClipboardService as _0x5222a8,NodePositionConvertToCursor as _0xcac73d,NodePositionConvertToRectRange as _0xbcad60,TEXT_RANGE_LAYER_INDEX as _0x2279bd,SetDocZoomRatioOperation as _0x41542c,DocIMEInputManagerService as _0x1b1e78,DocStateChangeManagerService as _0x273172}from'@univerjs/docs-ui';import{IImageIoService as _0x33779e}from'@univerjs/drawing';import{ITransformService as _0x459e0f,CollaborationEvent as _0x2d5bf8,isTransformMutationFailure as _0x3d5424,isTransformMutationsWithChangesetSuccess as _0x181dca,RevisionService as _0xfc506e,ISnapshotServerService as _0xe935bb}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3fa432,RichTextEditingMutation as _0x4442d5,DocSelectionManagerService as _0x4b96b6,DocSkeletonManagerService as _0x3f62c8}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x584d03,serializeRangeWithSheet as _0xef98ea,FormulaExecuteStageType as _0x244207,FormulaExecutedStateType as _0x4e9f65,SetFormulaCalculationStartMutation as _0x3dc31f,SetFormulaCalculationNotificationMutation as _0x3dea83}from'@univerjs/engine-formula';import{map as _0x43594e,filter as _0x11482a,throttleTime as _0xda8cfa,takeUntil as _0x62c4b1,switchMap as _0x18725f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x45795e,getCoordByCell as _0x421831,getSheetObject as _0x473f43}from'@univerjs/sheets-ui';function Ve({ref:_0x30e44f,..._0x43a027}){const _0x57bbe8=_0x23037e,{icon:_0x43df37,id:_0x3a225f,className:_0x4677b5,extend:_0x466476,..._0x28c948}=_0x43a027,_0x32df56=(_0x57bbe8(0x320)+_0x3a225f+'\x20'+(_0x4677b5||''))[_0x57bbe8(0x31b)](),_0x4bc007=_0x59da9c('_'+gi());return Ut(_0x43df37,''+_0x3a225f,{'defIds':_0x43df37[_0x57bbe8(0x31f)],'idSuffix':_0x4bc007['current']},{'ref':_0x30e44f,'className':_0x32df56,..._0x28c948},_0x466476);}function Ut(_0x3b6b7d,_0x345cac,_0x1493cf,_0x54af78,_0x2833f2){const _0x34940f=_0x23037e;return _0x386601(_0x3b6b7d['tag'],{'key':_0x345cac,...mi(_0x3b6b7d,_0x1493cf,_0x2833f2),..._0x54af78},(fi(_0x3b6b7d,_0x1493cf)[_0x34940f(0x270)]||[])[_0x34940f(0x218)]((_0x4e7218,_0x3ddf73)=>Ut(_0x4e7218,_0x345cac+'-'+_0x3b6b7d[_0x34940f(0x318)]+'-'+_0x3ddf73,_0x1493cf,void 0x0,_0x2833f2)));}function mi(_0x44a749,_0x2322dd,_0x22b373){const _0x34ac16=_0x23037e,_0x55d7dd={..._0x44a749[_0x34ac16(0x357)]};_0x22b373!=null&&_0x22b373[_0x34ac16(0x2b9)]&&_0x55d7dd[_0x34ac16(0x293)]==='colorChannel1'&&(_0x55d7dd[_0x34ac16(0x293)]=_0x22b373[_0x34ac16(0x2b9)]),_0x44a749[_0x34ac16(0x318)]==='mask'&&_0x55d7dd['id']&&(_0x55d7dd['id']=_0x55d7dd['id']+_0x2322dd[_0x34ac16(0x35b)]),Object['entries'](_0x55d7dd)[_0x34ac16(0x342)](([_0x26db58,_0x4039c1])=>{const _0x1753df=_0x34ac16;_0x26db58==='mask'&&typeof _0x4039c1==_0x1753df(0x261)&&(_0x55d7dd[_0x26db58]=_0x4039c1[_0x1753df(0x3a5)](/url\(#(.*)\)/,_0x1753df(0x425)+_0x2322dd[_0x1753df(0x35b)]+')'));});const {defIds:_0x43b0c0}=_0x2322dd;return!_0x43b0c0||_0x43b0c0[_0x34ac16(0x285)]===0x0||(_0x44a749[_0x34ac16(0x318)]===_0x34ac16(0x39f)&&_0x55d7dd[_0x34ac16(0x2e6)]&&(_0x55d7dd[_0x34ac16(0x2e6)]=_0x55d7dd[_0x34ac16(0x2e6)]+_0x2322dd[_0x34ac16(0x35b)]),Object['entries'](_0x55d7dd)['forEach'](([_0x279758,_0x4a8ef9])=>{const _0x5e3489=_0x34ac16;typeof _0x4a8ef9==_0x5e3489(0x261)&&(_0x55d7dd[_0x279758]=_0x4a8ef9[_0x5e3489(0x3a5)](/url\(#(.*)\)/,_0x5e3489(0x425)+_0x2322dd[_0x5e3489(0x35b)]+')'));})),_0x55d7dd;}function fi(_0x3d28c6,_0x1afe44){const _0x365d8e=_0x23037e;var _0x407f55;const {defIds:_0x3f2b92}=_0x1afe44;return!_0x3f2b92||_0x3f2b92[_0x365d8e(0x285)]===0x0?_0x3d28c6:_0x3d28c6['tag']===_0x365d8e(0x3c9)&&((_0x407f55=_0x3d28c6['children'])!=null&&_0x407f55[_0x365d8e(0x285)])?{..._0x3d28c6,'children':_0x3d28c6[_0x365d8e(0x270)][_0x365d8e(0x218)](_0x104336=>typeof _0x104336[_0x365d8e(0x357)]['id']==_0x365d8e(0x261)&&_0x3f2b92&&_0x3f2b92[_0x365d8e(0x2bf)](_0x104336[_0x365d8e(0x357)]['id'])?{..._0x104336,'attrs':{..._0x104336[_0x365d8e(0x357)],'id':_0x104336[_0x365d8e(0x357)]['id']+_0x1afe44['idSuffix']}}:_0x104336)}:_0x3d28c6;}function gi(){const _0x9af667=_0x23037e;return Math[_0x9af667(0x31c)]()[_0x9af667(0x41f)](0x24)['substring'](0x2,0x8);}Ve[_0x23037e(0x283)]=_0x23037e(0x3a7);function _0x1d21(){const _0x503382=['_config','shift','_saveCache','PENDING','override','_scheduleSaving','_getSaveTimeout','SYNCED','then','clearTimeout','collabStatus.offline','startRow','START_CALCULATION','_initStatusComponent','1em','isActive','_eventUnsubscribe','UNIVER_DOC','_onRefRangeChange','init','YUUMI_CONNECTOR_URL_NOT_FOUND','AUTHORIZE_CODE_ILLEGAL','selection','wsSessionTicketUrl','SNAPSHOT_INVALID_SNAPSHOT','contains','FromArray','flatMap','7xAxGAB','_updateCollabCursors','search','debug','LOGIN_FAILED','formula.calculation.unable','measureText','USER_NOT_FOUND','dispose$','_removeClearOtherTimer','setTimeout','setUndoRedoMutationParamsCache','getSheetId','collaboration.single-unit.warning','_drawRectRange','TEXT','newValue','ENSURE_SNAPSHOT_EXECUTION','_lastPointer','_name','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_taskIds','registerBeforeClose','_refreshCollabCursors','_render','RECT','_scheduleHeartbeat','stageInfo','transformSelections','setItem','_collabCursorState$','use','functionsExecutedState','Failed','_anchorDot','subunit','_sheetSkeletonManagerService','replace','_assignedColors','UniverIcon','InsertRangeMoveDownCommandId','clipPath','ENTITLE_DUP_SUBSCRIPTION','EMAIL_HAS_BEEN_BOUND','subscribeEvent','translate(.97)','addObject','ERROR_AGAIN','_updateLocalCursor','getRenderById','_startSheetCollabCursor','parseInt','dispose','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','push','_getAnchorBounding','_imageIoService','_updateURLWithCurrentState','_scene','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','onStarting','transformRemoteChangeset','dirtyRanges','with','collabStatus.conflict','MOBILE_HAS_BEEN_BOUND','getCollabCursors$','INVITE_CODE_ALREADY_BOUND','fillStyle','LICENSE_DISTRO_REJECTED','session.collaboration-timeout','_collaborationController','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','defs','HEADER_MENU','roomMembers','getStateCache','Loading','_initStatusListener','INVITE_CODE_REQUIRED','_doCreateSocket','currentTheme$','stage','find','searchParams','INVITE_CODE_HAS_BEEN_UES','_collaborationUIEventService','YUUMI_SUBSCRIPTION_NOT_FOUND','executeCommand','getUnitStatus$','_cursorInfo$','_docStateChangeManagerService','sessionStatus$','params','SUBMIT_CHANGESET_TIMEOUT','startColumn','_initResize','white','onPointerEnter$','getItem','findNodePositionByCharIndex','SOCKET_FAILED_RETRY','addEventListener','runOnServer','registerRefRange','round','send','_drawAnchor','ENTITLE_CHAT_LIMIT_EXCEED','33646374DQAghs','top','REDEMPTION_CODE_NOT_STARTED','_pollingInterval','size','_transformHistoryAndStateStack','sheetID','range','NOT_COLLAB','RemoveRowCommandId','M0\x200H16V16H0z','text','fillRule','_initDependencies','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getRangePointData','InsertColCommandId','getConfig','INTERNAL_ERROR','UPDATE_CURSOR','CONNECTOR_DATA_TOO_LARGE','DeleteRangeMoveLeftCommandId','_getFormulaLimitStatus','sessionTicket','invokeId','from','skeleton','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','activeSheet$','_hovered','_entities','PAYMENT_CHANNEL_NOT_SUPPORT','_docTransformStateCacheService','http://www.w3.org/2000/svg','_hasFormulaInDirtyRanges','_registerRenderDependencies','ENTITLE_NEED_BILLING_ADDRESS','_anchor','_initCommandInterceptor','path','_getSessionTicket','getActiveSheet','_labelPosition','symbol','PERMISSION_DENIED','getAncestorScale','_colorAssignService','setParam','save','transformMutation','toString','MOBILE_VERIFY_CODE_MISMATCH','onCommandExecuted','_shapes','_cursors','on-line-icon_clip0_910_349','url(#$1','_messageService','lineTo','collabStatus.syncing','_beforeCloseService','setAlpha','row','REDEMPTION_CODE_HAS_BEEN_CREATED','getDocRanges','saveImage','all','_injector','labelPosition','EMAIL_VERIFY_CODE_MISMATCH','loadOfflineData','_transformUndoRedoStack','YUUMI_UNABLE_LOAD_URL','_instanceService','_dataLoaderService','InsertRowCommandId','429786KBaceZ','_onCursorUpdate','replaceState','toRgbString','color','red.300','YUUMI_NO_CUBOID_FOR_QUESTION','_docTransformIMECacheService','limitInfo','CONFLICT','14910EjbYKO','endColumn','getTypeOfUnitDisposed$','setConfig','_themeService','_initEvent','collab-rect-range-','disposeUnit','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','setInterval','assign','_handleJoinEvent','_hideTimer','map','collab-text-range-','_configService','textRanges','OffLineIcon','REDEMPTION_USER_NOT_ELIGIBLE','getCurrentUnitForType','_session','_handleHeartbeatEvent','setShapeProps','url(#on-line-icon_clip0_910_349)','onMouseMove','unsubscribe','getUniverSheetInstance','COMPLETION_FINISHED','location','type','SNAPSHOT_HAS_BEEN_REMOVED','_collabSessionService','UNRECOGNIZED','PY_RUNTIME_SCRIPT_ERROR','fillText','collab-client.tooltip.reconnect','_setupSubUnitSync','closePath','onLocalMutation','complete','transform','_currentUsage','NOT_FOUND','maxFormulaLimit','_transformService','ticket','has','drawWith','YUUMI_AI_RUN_FAILED','getUnitId','RemoveColCommandId','SOCKET_FAILED','_cachedData','[CollaborationDataLoaderController]','LICENSE_EXPORT_SIZE_EXCEEDED','focused$','_handleLeaveEvent','now','USER_IS_ANONYMOUS','_textBubble','WECHAT_HAS_BEEN_BOUND','Error','collabStatus.synced','_urlService','arc','NO_OTHER_CLIENTS_EDITING','_transformPreviousActiveRange','result','getMemberID','4LSJHzI','_httpService','stringify','...','_unitOnClients','_updateSubUnitFromURLParams','unitID','_renderManagerService','replaceDocRanges','_localeService','AWAITING','_setFormulaLimitStatus','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getCurrent','_saveTaskMap','_draw','_clearPolling','string','_disabled','CLOSE_ROOM','transformByState','popstate','green.600','getValue','_entityInit$','OFFLINE','history','unitId','_getScale','runId','JOIN_ROOM_FAILED','onRendered','children','REDEMPTION_CODE_FULLY_REDEEMED','loadUnit','getRelativeToViewportCoord','_color','_docClipboardService','eventID','pipe','_online','whenReady','_send','YUUMI_URL_COL_OUT_OF_RANGE','min','getActiveRange','cursorInfo','releaseFormulaLimitUrl','DATA_SOURCE_TOO_LARGE','APPLY_NON_SEQUENTIAL_REVISION','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','displayName','univer-flex\x20univer-items-center','length','subscribe','LOGIN_TOKEN_PROCESSING_FAILED','engine','/run/','/universer-api/license/formula/limit/status','permission.content','_initCommandExecutedListener','_roomMembers$','USERS_LEAVE','_selfUnitIDs','exhaustSavingTask','status$','width','fill','FETCH_MISS','REDEMPTION_CODE_INACTIVE','height','m1Prime','OTHER_CLIENT_EDITING','REDEMPTION_USER_REDEEM_TIMES_EXCEED','OTHER_CLIENTS_EDITING','_getSheetObject','_range','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_hover','_localStorageService','set','onTransformChange$','getTypeOfUnitAdded$','_handleEvent','href','next','getFocusedUnit','_notificationService','YUUMI_ASYNCIO_CANCELLED','unit','moveTo','purple.300','APPLY_PERMISSION_DENIED','getCellPositionByOffset','backgroundColor','evenodd','isArray','LICENSE_MAX_UNITS_EXCEEDED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_memberService','disposeWithMe','session.will-retry','_docSyncEditingCollabCursorService','onPointerMove$','urlChange$','colorChannel1','UNAUTHENTICATED','_checkAndWaitForCalculationPermission','deepClone','UNDEFINED','UNIVER_SHEET','includes','getOwnPropertyDescriptor','_startCalculationLimit','collabCursorState$','_toggleOnline','getUnit','_initEntityListener','_ensureSubject','key','enableLocalCache','_toggleOffline','_id','_startDocCollabCursor','_uiPartsService','onPointerLeave$','_removeCollabCursors','transformIMECache','pushState','DeleteRangeMoveUpCommandId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','get','uni.network.url-service','startsWith','_commandService','APPLY_REVISION_CONFILICT','collab-text-anchor-','_revisionService','ALREADY_EXISTS','currentColor','memberID','restore','code','YUUMI_ALL_TABLES_IS_INVALID','_registerDependencies','1921246euRpeV','removeParam','values','_cursor','error','xlink:href','jiqing.500','registerComponent','addClipboardHook','clearInterval','getSkeleton','ranges','unload','asObservable','_maxFormulaLimit','black','setStateCache','_colorIndex','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','_init','_releaseCalculationLimit','Warning','some','_univerInstanceService','transformStateCache','TOO_MANY_REQUESTS','_checkCalculationAvailable','bottom','_clearOtherTimers','session.connection-failed','isEditing','_unitStatus','getSheetBySheetId','_setupBeforeClosingHandler','getCollabEntity$','selections','unshift','_cursorShapes','column','getOffsetConfig','none','add','createInstance','data','_logService','getUnhiddenWorksheets','hide','_localCacheService','mutations','_drawTextRange','_backgroundColor','Success','div','APPLY_DUPLICATED','tag','body','registerRenderModule','trim','random','reconnect','collaboration.closeRoom','defIds','univerjs-icon\x20univerjs-icon-','ENTITLE_REPORT_LIMIT_EXCEED','beginPath','getUndoRedoMutationParamsCache','InsertRangeMoveRightCommandId','_lastResponseTimestamp','formula.calculation.waiting','show','2995145cMImBH','m2Prime','endRow','_applyCommand','application/json','YUUMI_RATE_OVER_LIMIT','_scheduleClearOtherTimer','font','REDEMPTION_INVALID_CODE','_onCursorDelete','/universer-api/license/formula/limit/start','MUTATION','_heartbeatTimer','imageSourceType','APPLY_REJECT','_docSkeletonManagerService','ENTITLE_INSUFFICIENT_QUOTA','redoState','delete','LICENSE_IMPORT_SIZE_EXCEEDED','event$','split','2023608giZljR','name','assignAColorForMemberID','getCurrentRevOfUnit','forEach','INVALID_INVITE_CODE','USER_NOT_INVITED_CODE','7109144UsYKeG','defineProperty','saveTaskMap','docStateChange$','entityInit$','ONLINE','storage','doc.mutation.rich-text-editing','ACTIVE_UNIT_EVENT_CHANNEL','getParam','_docTransformSelectionsService','CHANGESET_REVISION_CONFILICT','_handleHover','_status$','off-line-icon_clip0_910_343','INVALID_ARGUMENT','getColorFromTheme','Unknown\x20user','attrs','currentSkeleton$','updateOfflineData','AWAITING_WITH_PENDING','idSuffix','syncEditingCollabCursor','setActiveRange','CURRENT_STATUS_CANNOT_OPERATE','_context','_createSocketURL','undoState','_syncEditingCollabCursorService','roomMembers$'];_0x1d21=function(){return _0x503382;};return _0x1d21();}const vi={'tag':'svg','attrs':{'xmlns':_0x23037e(0x40e),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x23037e(0x372),'height':_0x23037e(0x372)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x23037e(0x414),'attrs':{'stroke':_0x23037e(0x2db),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x23037e(0x3e9),'strokeWidth':1.2}}]},{'tag':_0x23037e(0x3c9),'attrs':{},'children':[{'tag':_0x23037e(0x3a9),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x23037e(0x3e1),'d':_0x23037e(0x3f7)}}]}]}],'defIds':[_0x23037e(0x353)]},Lt=_0xddff13(function(_0x1276be,_0x198979){const _0x1f52f6=_0x23037e;return _0x386601(Ve,Object[_0x1f52f6(0x215)]({},_0x1276be,{'id':'off-line-icon','ref':_0x198979,'icon':vi}));});Lt[_0x23037e(0x283)]=_0x23037e(0x21c);const Ei={'tag':'svg','attrs':{'xmlns':_0x23037e(0x40e),'fill':_0x23037e(0x30a),'viewBox':'0\x200\x2017\x2016','width':_0x23037e(0x372),'height':_0x23037e(0x372)},'children':[{'tag':'g','attrs':{'clipPath':_0x23037e(0x222)},'children':[{'tag':'path','attrs':{'stroke':_0x23037e(0x2db),'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':'round','strokeLinejoin':_0x23037e(0x3e9),'strokeWidth':1.2}}]},{'tag':_0x23037e(0x3c9),'attrs':{},'children':[{'tag':_0x23037e(0x3a9),'attrs':{'id':_0x23037e(0x424)},'children':[{'tag':_0x23037e(0x414),'attrs':{'fill':_0x23037e(0x3e1),'d':'M0\x200H16V16H0z','transform':_0x23037e(0x3ad)}}]}]}],'defIds':[_0x23037e(0x424)]},Mt=_0xddff13(function(_0x848081,_0xba0c44){const _0x3b1651=_0x23037e;return _0x386601(Ve,Object[_0x3b1651(0x215)]({},_0x848081,{'id':'on-line-icon','ref':_0xba0c44,'icon':Ei}));});Mt[_0x23037e(0x283)]='OnLineIcon';function pi(_0x2bd119){const _0x308708=_0x23037e;switch(_0x2bd119){case _0x2bd07a['OFFLINE']:return _0x308708(0x36e);case _0x2bd07a['CONFLICT']:return _0x308708(0x3c0);case _0x2bd07a[_0x308708(0x294)]:return'collabStatus.fetchMiss';case _0x2bd07a[_0x308708(0x3f5)]:return'collabStatus.notCollab';case _0x2bd07a[_0x308708(0x25a)]:case _0x2bd07a[_0x308708(0x35a)]:return _0x308708(0x1f0);case _0x2bd07a[_0x308708(0x36b)]:case _0x2bd07a[_0x308708(0x367)]:return _0x308708(0x249);}}function Oi(_0x4db6c2){const _0x2535e7=_0x23037e,{status$:_0xfff3d6}=_0x4db6c2,_0x5ac50c=_0x3925f0(_0xfff3d6,_0x2bd07a[_0x2535e7(0x3f5)]),_0x59725c=_0xd61efa(_0x23ab5c),_0x48edcc=_0xd61efa(_0x421172),_0x46ec4d=_0x5ac50c!==_0x2bd07a[_0x2535e7(0x269)],_0xdf3a3=_0x59725c['t'](pi(_0x5ac50c)),_0x3894bb=_0x46ec4d?_0x138755(Mt,{}):_0x138755(Lt,{}),_0x21bae0=_0x40aaa4(()=>{const _0x188901=_0x2535e7;_0x46ec4d||_0x48edcc[_0x188901(0x31d)]();},[_0x46ec4d,_0x48edcc]);function _0x1ed844(){const _0x1828ee=_0x2535e7;return _0xfacd06(_0x1828ee(0x316),{'className':_0x1828ee(0x284),'onClick':_0x21bae0,'children':[_0x138755(_0x1828ee(0x316),{'className':_0x5b3388('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x46ec4d,'univer-text-red-500':!_0x46ec4d}),'children':_0x3894bb}),_0x138755(_0x1828ee(0x316),{'className':_0x1828ee(0x213),'children':_0xdf3a3})]});}return _0x46ec4d?_0x1ed844():_0x138755(_0x266c7f,{'title':_0x59725c['t'](_0x2535e7(0x22e)),'children':_0x1ed844()});}var Ti=Object[_0x23037e(0x2c0)],Ci=(_0x534516,_0x54cbb3,_0x16ba1b,_0x5524f7)=>{const _0x1a76e4=_0x23037e;for(var _0x5d11dd=_0x5524f7>0x1?void 0x0:_0x5524f7?Ti(_0x54cbb3,_0x16ba1b):_0x54cbb3,_0x1a2b51=_0x534516[_0x1a76e4(0x285)]-0x1,_0x4bfc04;_0x1a2b51>=0x0;_0x1a2b51--)(_0x4bfc04=_0x534516[_0x1a2b51])&&(_0x5d11dd=_0x4bfc04(_0x5d11dd)||_0x5d11dd);return _0x5d11dd;},se=(_0x2828d6,_0x1d1998)=>(_0x1b57fb,_0x2cf3ea)=>_0x1d1998(_0x1b57fb,_0x2cf3ea,_0x2828d6);let oe=class extends _0x2adf18{constructor(_0x52b0da,_0x44cdaa,_0x524a22,_0x1ad06c){const _0x2769dc=_0x23037e;super(),l(this,_0x2769dc(0x352),new _0x107cff(_0x2bd07a['NOT_COLLAB'])),(this[_0x2769dc(0x2f9)]=_0x52b0da,this['_injector']=_0x44cdaa,this[_0x2769dc(0x3c7)]=_0x524a22,this[_0x2769dc(0x2cc)]=_0x1ad06c,this[_0x2769dc(0x371)](),this[_0x2769dc(0x3ce)]());}['_initStatusListener'](){const _0x38709a=_0x23037e;this[_0x38709a(0x2b4)](this[_0x38709a(0x2f9)][_0x38709a(0x242)]['pipe'](_0x1a78b4(()=>{const _0x2612d4=_0x38709a,_0x4cef88=this[_0x2612d4(0x2f9)][_0x2612d4(0x2a6)]();return _0x4cef88?this[_0x2612d4(0x3c7)][_0x2612d4(0x304)](_0x4cef88[_0x2612d4(0x23c)]()):_0x53144c(null);}),_0x1a78b4(_0x34cc64=>_0x34cc64?_0x34cc64[_0x38709a(0x291)]:_0x53144c(_0x2bd07a['NOT_COLLAB'])))[_0x38709a(0x286)](_0x505bd0=>{const _0x3fdf5a=_0x38709a;this['_status$'][_0x3fdf5a(0x2a5)](_0x505bd0);}));}[_0x23037e(0x371)](){const _0x23e564=_0x23037e;this['disposeWithMe'](this['_uiPartsService'][_0x23e564(0x2e8)](_0x1daa22[_0x23e564(0x3ca)],()=>_0x4aae1a(Ri({'status$':this[_0x23e564(0x352)][_0x23e564(0x2ee)]()}),this[_0x23e564(0x1f8)])));}};oe=Ci([se(0x0,_0x2c6926),se(0x1,_0x57b7af(_0xc05c74)),se(0x2,_0x57b7af(_0x2c7817)),se(0x3,_0x505eb5)],oe);function Ri(_0x467f2a){const {status$:_0x579e67}=_0x467f2a;return function(){return _0x138755(Oi,{'status$':_0x579e67});};}const At=_0x536e65(_0x23037e(0x2d4));function _0x596d(_0x5f49aa,_0x1ba67e){const _0x1d2191=_0x1d21();return _0x596d=function(_0x596dbe,_0x54bee7){_0x596dbe=_0x596dbe-0x1f0;let _0x1d80d8=_0x1d2191[_0x596dbe];return _0x1d80d8;},_0x596d(_0x5f49aa,_0x1ba67e);}var Di=Object['getOwnPropertyDescriptor'],Ni=(_0x471e70,_0x44e513,_0x6e2ae7,_0x252650)=>{const _0xf9e46a=_0x23037e;for(var _0x3776c4=_0x252650>0x1?void 0x0:_0x252650?Di(_0x44e513,_0x6e2ae7):_0x44e513,_0xb5d4b2=_0x471e70[_0xf9e46a(0x285)]-0x1,_0x11465d;_0xb5d4b2>=0x0;_0xb5d4b2--)(_0x11465d=_0x471e70[_0xb5d4b2])&&(_0x3776c4=_0x11465d(_0x3776c4)||_0x3776c4);return _0x3776c4;},K=(_0x334a1b,_0x902e7c)=>(_0x367417,_0x229d1a)=>_0x902e7c(_0x367417,_0x229d1a,_0x334a1b);let ae=class extends _0x1d3622{constructor(_0x55bdd5,_0x5486ba,_0x1a8ba0,_0x4b8d8e,_0x2e07ca){const _0x121209=_0x23037e;super(),this[_0x121209(0x24a)]=_0x55bdd5,this[_0x121209(0x30e)]=_0x5486ba,this[_0x121209(0x2d6)]=_0x1a8ba0,this[_0x121209(0x1ff)]=_0x4b8d8e,_0x2e07ca?_0x2e07ca==null||_0x2e07ca[_0x121209(0x279)]()[_0x121209(0x36c)](()=>this[_0x121209(0x2f5)]()):(this[_0x121209(0x30e)][_0x121209(0x383)]('[CollaborationDataLoaderController]',_0x121209(0x3fb)),this[_0x121209(0x2f5)]());}async[_0x23037e(0x2f5)](){const _0x228724=_0x23037e,_0x2fa4cc=this[_0x228724(0x24a)][_0x228724(0x34e)](_0x228724(0x2a9)),_0xf7807f=this[_0x228724(0x24a)][_0x228724(0x34e)](_0x228724(0x228)),_0x5ce61b=this[_0x228724(0x24a)][_0x228724(0x34e)]('subunit');if(!_0x2fa4cc||!_0xf7807f){this[_0x228724(0x30e)][_0x228724(0x383)](_0x228724(0x240),_0x228724(0x408));return;}const _0x505d3d=await this[_0x228724(0x1ff)][_0x228724(0x272)](_0x2fa4cc,Number(_0xf7807f),_0x5ce61b);_0x505d3d&&_0x505d3d instanceof _0x31a656&&this[_0x228724(0x22f)](_0x505d3d);}async['_setupSubUnitSync'](_0x305400){const _0x33e589=_0x23037e;await this[_0x33e589(0x255)](_0x305400),_0x305400[_0x33e589(0x409)][_0x33e589(0x277)](_0x1f8529(this['dispose$']))[_0x33e589(0x286)](_0x262838=>{_0x262838&&this['_updateURLWithCurrentState'](_0x262838);}),this[_0x33e589(0x24a)][_0x33e589(0x2b8)][_0x33e589(0x277)](_0x1f8529(this[_0x33e589(0x388)]))[_0x33e589(0x286)](()=>this[_0x33e589(0x255)](_0x305400));}[_0x23037e(0x3b9)](_0x2cee7f,_0x57bf2e=!0x1){const _0x1ed597=_0x23037e,_0x393514=this['_urlService']['getParam']('subunit');_0x2cee7f[_0x1ed597(0x38c)]()!==_0x393514&&this['_urlService']['setParam'](_0x1ed597(0x3a3),_0x2cee7f[_0x1ed597(0x38c)](),_0x57bf2e);}async['_updateSubUnitFromURLParams'](_0x7b013c){const _0x1c86d6=_0x23037e;var _0x3a1a69;const _0x531260=this['_urlService'][_0x1c86d6(0x34e)](_0x1c86d6(0x3a3));if(!_0x531260||!_0x7b013c[_0x1c86d6(0x302)](_0x531260)){const _0x4aa4b8=_0x7b013c[_0x1c86d6(0x30f)]()[0x0],_0x31729a=_0x7b013c[_0x1c86d6(0x302)](_0x4aa4b8);if(!_0x31729a)return;this[_0x1c86d6(0x3b9)](_0x31729a,!0x0),await this[_0x1c86d6(0x2d6)][_0x1c86d6(0x3d8)](_0x5b0313['id'],{'unitId':_0x7b013c[_0x1c86d6(0x23c)](),'subUnitId':_0x4aa4b8});return;}((_0x3a1a69=_0x7b013c[_0x1c86d6(0x416)]())==null?void 0x0:_0x3a1a69['getSheetId']())!==_0x531260&&await this[_0x1c86d6(0x2d6)][_0x1c86d6(0x3d8)](_0x5b0313['id'],{'unitId':_0x7b013c['getUnitId'](),'subUnitId':_0x531260});}};ae=Ni([K(0x0,At),K(0x1,_0x285ace),K(0x2,_0x409061),K(0x3,_0x57b7af(_0x1de1a6)),K(0x4,_0x1f94a2(_0x331afc))],ae);var bi=Object[_0x23037e(0x2c0)],Ui=(_0xc09724,_0x27b89c,_0x72fca0,_0x2ed809)=>{const _0x35da06=_0x23037e;for(var _0x4647b8=_0x2ed809>0x1?void 0x0:_0x2ed809?bi(_0x27b89c,_0x72fca0):_0x27b89c,_0x559256=_0xc09724[_0x35da06(0x285)]-0x1,_0x41b1d6;_0x559256>=0x0;_0x559256--)(_0x41b1d6=_0xc09724[_0x559256])&&(_0x4647b8=_0x41b1d6(_0x4647b8)||_0x4647b8);return _0x4647b8;},tt=(_0x35c38d,_0x21f834)=>(_0x1f2637,_0x56ca66)=>_0x21f834(_0x1f2637,_0x56ca66,_0x35c38d);let Ae=class extends _0x1d3622{constructor(_0x1082d0,_0x49a2b3){const _0x3d7c6d=_0x23037e;super(),this[_0x3d7c6d(0x275)]=_0x1082d0,this[_0x3d7c6d(0x3b8)]=_0x49a2b3,this[_0x3d7c6d(0x2f5)]();}[_0x23037e(0x2f5)](){const _0x115ef5=_0x23037e,_0x168ee4=this;this[_0x115ef5(0x2b4)](this[_0x115ef5(0x275)][_0x115ef5(0x2e9)]({'onBeforePasteImage':async _0xad6163=>{const _0x129a60=_0x115ef5,_0x5d9041=await _0x168ee4['_imageIoService'][_0x129a60(0x1f6)](_0xad6163);return _0x5d9041?{'source':_0x5d9041['source'],'imageSourceType':_0x5d9041[_0x129a60(0x335)]}:null;}}));}};Ae=Ui([tt(0x0,_0x5222a8),tt(0x1,_0x33779e)],Ae);const st=[_0x23037e(0x2ab),_0x23037e(0x2e7),_0x23037e(0x266),_0x23037e(0x206),'blue.400','yellow.400'];class je extends _0x2adf18{constructor(){const _0x237f29=_0x23037e;super(...arguments),l(this,_0x237f29(0x3a6),new Map()),l(this,_0x237f29(0x2f2),0x0);}[_0x23037e(0x340)](_0x237162){const _0x3ce0d4=_0x23037e;if(this['_assignedColors'][_0x3ce0d4(0x239)](_0x237162))return this[_0x3ce0d4(0x3a6)][_0x3ce0d4(0x2d3)](_0x237162);const _0x1cea56=st[this['_colorIndex']];return this[_0x3ce0d4(0x2f2)]=(this[_0x3ce0d4(0x2f2)]+0x1)%st['length'],this[_0x3ce0d4(0x3a6)][_0x3ce0d4(0x2a0)](_0x237162,_0x1cea56),_0x1cea56;}}function Pt(_0x31ab0d){const _0x15bb42=_0x23037e;let _0x59f098='';for(const _0x187813 of _0x31ab0d){const {startOffset:_0x2e7509,endOffset:_0x185a5c,isActive:_0x448d65,rangeType:_0x341495,segmentId:_0x509905,segmentPage:_0x43c2f2}=_0x187813;_0x59f098[_0x15bb42(0x285)]&&(_0x59f098+=','),_0x59f098+=_0x2e7509+':'+_0x185a5c+':'+(_0x448d65?'1':'0')+':'+_0x341495+':'+_0x509905+':'+_0x43c2f2;}return _0x59f098;}function Li(_0x36374b){const _0x1afcdb=_0x23037e,_0x674b8a=_0x36374b[_0x1afcdb(0x33d)](','),_0x1ffbb4=[];for(const _0x39fb13 of _0x674b8a){const [_0x45c4ad,_0x25a4c7,_0x12183d,_0x429b43,_0x1b6482,_0x598ff7]=_0x39fb13[_0x1afcdb(0x33d)](':');_0x1ffbb4['push']({'startOffset':Number(_0x45c4ad),'endOffset':Number(_0x25a4c7),'collapsed':_0x45c4ad===_0x25a4c7,'isActive':_0x12183d==='1','rangeType':_0x429b43===_0x3c6aa3[_0x1afcdb(0x38f)]?_0x3c6aa3[_0x1afcdb(0x38f)]:_0x3c6aa3[_0x1afcdb(0x399)],'segmentId':typeof _0x1b6482=='string'?String(_0x1b6482):'','segmentPage':Number(_0x598ff7!=null?_0x598ff7:-0x1)});}return _0x1ffbb4[_0x1afcdb(0x2f8)](_0x2e1968=>_0x2e1968['isActive'])||(_0x1ffbb4[0x0][_0x1afcdb(0x373)]=!0x0),_0x1ffbb4;}class Xe extends _0x1d3622{constructor(){const _0xb21970=_0x23037e;super(...arguments),l(this,_0xb21970(0x39e),new _0x107cff(null)),l(this,_0xb21970(0x2c2),this['_collabCursorState$'][_0xb21970(0x2ee)]());}[_0x23037e(0x35c)](_0x29e3df){const _0x168e9f=_0x23037e,{unitID:_0x2060d7,memberID:_0xf09147,textRanges:_0x1f6694}=_0x29e3df,_0x1434eb=Pt(_0x1f6694);if(_0x1434eb==='')return;const _0x481051={'unitID':_0x2060d7,'memberID':_0xf09147,'selection':_0x1434eb};this[_0x168e9f(0x39e)][_0x168e9f(0x2a5)](_0x481051);}}var Mi=Object[_0x23037e(0x2c0)],Ai=(_0x49ad7a,_0x1bdc72,_0x3438fa,_0x39ef05)=>{const _0x4b18a0=_0x23037e;for(var _0x448e00=_0x39ef05>0x1?void 0x0:_0x39ef05?Mi(_0x1bdc72,_0x3438fa):_0x1bdc72,_0x357e28=_0x49ad7a[_0x4b18a0(0x285)]-0x1,_0x1d1a29;_0x357e28>=0x0;_0x357e28--)(_0x1d1a29=_0x49ad7a[_0x357e28])&&(_0x448e00=_0x1d1a29(_0x448e00)||_0x448e00);return _0x448e00;},A=(_0x51a78c,_0x481d95)=>(_0x2e098a,_0x51ce1b)=>_0x481d95(_0x2e098a,_0x51ce1b,_0x51a78c);const Pi=0x12c,wi=0x64;let Pe=class extends _0x1d3622{constructor(_0x515878,_0x4ac84d,_0x3e6d0,_0x31dc79,_0x4756ce,_0x4eff3d,_0x2dbcfb,_0xb1d7db,_0x12002c){const _0xdfac02=_0x23037e;super(),l(this,_0xdfac02(0x278),!0x1),l(this,_0xdfac02(0x2f5),!0x1),l(this,_0xdfac02(0x3da),new _0x107cff(new Map())),l(this,'cursorInfo$',this[_0xdfac02(0x3da)][_0xdfac02(0x2ee)]()),l(this,'_roomMembers$',new _0x107cff([])),l(this,_0xdfac02(0x363),this[_0xdfac02(0x28d)][_0xdfac02(0x277)](_0x48f0e5(Pi))),l(this,'_updateLocalCursor',_0x16545f(_0x281270=>{const _0x181af5=_0xdfac02,_0x472a65={'eventID':_0x2d5bf8[_0x181af5(0x400)],'data':{'unitID':this[_0x181af5(0x256)],'memberID':this[_0x181af5(0x21f)][_0x181af5(0x24f)](),'selection':Pt(_0x281270)}};this[_0x181af5(0x21f)][_0x181af5(0x3ea)](_0x472a65,this[_0x181af5(0x256)]);},wi)),(this[_0xdfac02(0x256)]=_0x515878,this['_session']=_0x4ac84d,this[_0xdfac02(0x1f8)]=_0x3e6d0,this[_0xdfac02(0x41b)]=_0x31dc79,this[_0xdfac02(0x2b3)]=_0x4756ce,this[_0xdfac02(0x362)]=_0x4eff3d,this[_0xdfac02(0x237)]=_0x2dbcfb,this[_0xdfac02(0x2f9)]=_0xb1d7db,this[_0xdfac02(0x2d6)]=_0x12002c);}get[_0x23037e(0x27e)](){const _0x4965e2=_0x23037e;return this[_0x4965e2(0x3da)][_0x4965e2(0x267)]();}get[_0x23037e(0x3cb)](){const _0xf3703f=_0x23037e;return this[_0xf3703f(0x28d)][_0xf3703f(0x267)]();}[_0x23037e(0x3b4)](){const _0x4de548=_0x23037e;super['dispose'](),this[_0x4de548(0x3da)][_0x4de548(0x2a5)](new Map()),this[_0x4de548(0x3da)]['complete'](),this[_0x4de548(0x28d)][_0x4de548(0x2a5)]([]),this[_0x4de548(0x28d)][_0x4de548(0x232)]();}['init'](){const _0x203d77=_0x23037e;this['_init']||(this['_init']=!0x0,this[_0x203d77(0x21f)][_0x203d77(0x3dc)][_0x203d77(0x277)](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x3dda1f=>{const _0x57460b=_0x203d77;_0x3dda1f===_0x3b587d[_0x57460b(0x34a)]?this[_0x57460b(0x2c3)]():this['_toggleOffline']();}),this[_0x203d77(0x21f)]['event$'][_0x203d77(0x277)](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x378c27=>{const _0x25f5ae=_0x203d77,_0x2170fa=_0x378c27[_0x25f5ae(0x276)];_0x2170fa===_0x2d5bf8[_0x25f5ae(0x400)]&&this[_0x25f5ae(0x202)](_0x378c27),_0x2170fa===_0x2d5bf8[_0x25f5ae(0x28e)]&&this[_0x25f5ae(0x331)](_0x378c27);}),this[_0x203d77(0x2b4)](this[_0x203d77(0x2d6)][_0x203d77(0x421)](_0xd9cfbc=>{const _0x8156fd=_0x203d77,_0x3ff270=_0xd9cfbc[_0x8156fd(0x3dd)];_0x3ff270!=null&&this[_0x8156fd(0x278)]&&_0xd9cfbc['id']===_0x3fa432['id']&&_0x3ff270[_0x8156fd(0x26b)]===this[_0x8156fd(0x256)]&&_0x3ff270[_0x8156fd(0x300)]===!0x1&&_0x3ff270[_0x8156fd(0x2ec)][_0x8156fd(0x285)]>0x0&&this[_0x8156fd(0x3b0)](_0x3ff270[_0x8156fd(0x2ec)]);})),this['_syncEditingCollabCursorService']['collabCursorState$']['pipe'](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x556b2b=>{const _0x1d8f18=_0x203d77;if((_0x556b2b==null?void 0x0:_0x556b2b['unitID'])!==this['unitID'])return;const _0x711d09={'eventID':_0x2d5bf8['UPDATE_CURSOR'],'data':_0x556b2b};this[_0x1d8f18(0x202)](_0x711d09);}),this['disposeWithMe'](this[_0x203d77(0x2d6)][_0x203d77(0x421)](_0x94377f=>{const _0x3153e6=_0x203d77;if(_0x94377f[_0x3153e6(0x3dd)]==null)return;const _0x1be994=_0x94377f['params'];if(_0x94377f['id']!==_0x4442d5['id']||_0x1be994[_0x3153e6(0x26b)]!==this[_0x3153e6(0x256)])return;const _0x32d9cc={'id':_0x3153e6(0x34c),'params':_0x1be994},_0x284526=this['cursorInfo'];for(const [_0x35b67a,_0xb47a0a]of _0x284526){const _0x3b8287={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xb47a0a[_0x3153e6(0x2ec)]}},_0x223208=this[_0x3153e6(0x237)]['transformMutation'](_0x32d9cc,_0x3b8287,!0x1);if(_0x3d5424(_0x223208))throw _0x223208[_0x3153e6(0x2e5)];_0x284526[_0x3153e6(0x2a0)](_0x35b67a,{..._0xb47a0a,'ranges':_0x223208[_0x3153e6(0x329)]['params'][_0x3153e6(0x21b)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x284526);});})));}['_onCursorUpdate'](_0x3d6256){const _0x247714=_0x23037e;var _0x290a12,_0x505f46;const {memberID:_0x8a631,selection:_0x2f03bd}=_0x3d6256[_0x247714(0x30d)],_0x520433=Li(_0x2f03bd),_0x5b168e=(_0x505f46=(_0x290a12=this[_0x247714(0x2b3)]['getMember'](this[_0x247714(0x256)],_0x8a631))==null?void 0x0:_0x290a12[_0x247714(0x33f)])!=null?_0x505f46:_0x247714(0x356),_0x3f0f52={'color':this[_0x247714(0x41b)][_0x247714(0x340)](_0x8a631),'name':_0x5b168e,'ranges':_0x520433},_0x97a0a1=this[_0x247714(0x27e)];_0x97a0a1['set'](_0x8a631,_0x3f0f52),this[_0x247714(0x3da)][_0x247714(0x2a5)](_0x97a0a1);}[_0x23037e(0x331)](_0x363b53){const _0x35a844=_0x23037e,{memberID:_0x29a825}=_0x363b53[_0x35a844(0x30d)],_0x4ef935=this['cursorInfo'];_0x4ef935[_0x35a844(0x33a)](_0x29a825),this[_0x35a844(0x3da)][_0x35a844(0x2a5)](_0x4ef935);}[_0x23037e(0x2c3)](){const _0x1edd12=_0x23037e;var _0x5787ec;if(this[_0x1edd12(0x278)]=!0x0,((_0x5787ec=this[_0x1edd12(0x2f9)][_0x1edd12(0x2a6)]())==null?void 0x0:_0x5787ec[_0x1edd12(0x23c)]())!==this[_0x1edd12(0x256)])return;const _0x53164d=this[_0x1edd12(0x1f8)]['get'](_0x4b96b6)[_0x1edd12(0x1f5)]();Array['isArray'](_0x53164d)&&_0x53164d['length']>0x0&&this[_0x1edd12(0x3b0)](_0x53164d);}[_0x23037e(0x2c9)](){const _0x26cce6=_0x23037e;this[_0x26cce6(0x278)]=!0x1;}};Pe=Ai([A(0x2,_0x57b7af(_0xc05c74)),A(0x3,_0x57b7af(je)),A(0x4,_0x57b7af(_0x254d55)),A(0x5,_0x57b7af(Xe)),A(0x6,_0x459e0f),A(0x7,_0x2c6926),A(0x8,_0x409061)],Pe);var yi=Object[_0x23037e(0x2c0)],$i=(_0x29a2e2,_0x373e77,_0x39fcfa,_0x302bd8)=>{const _0x38c268=_0x23037e;for(var _0x250de9=_0x302bd8>0x1?void 0x0:_0x302bd8?yi(_0x373e77,_0x39fcfa):_0x373e77,_0x152332=_0x29a2e2[_0x38c268(0x285)]-0x1,_0x7520eb;_0x152332>=0x0;_0x152332--)(_0x7520eb=_0x29a2e2[_0x152332])&&(_0x250de9=_0x7520eb(_0x250de9)||_0x250de9);return _0x250de9;},B=(_0x2cded7,_0x5bbfb1)=>(_0x3fa5d7,_0x4c9211)=>_0x5bbfb1(_0x3fa5d7,_0x4c9211,_0x2cded7);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x493cef=[],_0x430ab7=!0x1;return _0x18e8ed=>{const _0xf72c5f=_0x596d;_0x493cef[_0xf72c5f(0x3b6)](_0x18e8ed),_0x430ab7||(_0x430ab7=!0x0,setTimeout(()=>{const _0x4e0647=_0xf72c5f;_0x493cef[_0x4e0647(0x342)](_0x16c66e=>_0x16c66e()),_0x493cef=[],_0x430ab7=!0x1;}));};};let we=class extends _0x1d3622{constructor(_0x3a9019,_0x163db6,_0x4fe115,_0x51668d,_0x6fcd00,_0x2f0068,_0x8e0068,_0x30081d){const _0x3d0fe4=_0x23037e;super(),l(this,_0x3d0fe4(0x278),!0x1),l(this,_0x3d0fe4(0x2f5),!0x1),l(this,_0x3d0fe4(0x3da),new _0x107cff(new Map())),l(this,'cursorInfo$',this[_0x3d0fe4(0x3da)][_0x3d0fe4(0x2ee)]()),l(this,_0x3d0fe4(0x28d),new _0x107cff([])),l(this,'roomMembers$',this['_roomMembers$'][_0x3d0fe4(0x277)](_0x48f0e5(xi))),l(this,'_updateLocalCursor',_0x16545f((_0x34ba64,_0x552cef)=>{const _0xa8f9fd=_0x3d0fe4,_0x5c6b83={'eventID':_0x2d5bf8[_0xa8f9fd(0x400)],'data':{'unitID':this['unitID'],'memberID':this[_0xa8f9fd(0x21f)][_0xa8f9fd(0x24f)](),'selection':_0xef98ea(_0x34ba64,_0x552cef['range'])}};this[_0xa8f9fd(0x21f)][_0xa8f9fd(0x3ea)](_0x5c6b83,this[_0xa8f9fd(0x256)]);},Bi)),(this['unitID']=_0x3a9019,this[_0x3d0fe4(0x21f)]=_0x163db6,this['_injector']=_0x4fe115,this[_0x3d0fe4(0x41b)]=_0x51668d,this[_0x3d0fe4(0x2b3)]=_0x6fcd00,this[_0x3d0fe4(0x2f9)]=_0x2f0068,this[_0x3d0fe4(0x2d6)]=_0x8e0068,this['_refRangeService']=_0x30081d);}get['cursorInfo'](){const _0x190623=_0x23037e;return this[_0x190623(0x3da)][_0x190623(0x267)]();}get[_0x23037e(0x3cb)](){const _0x34e811=_0x23037e;return this[_0x34e811(0x28d)][_0x34e811(0x267)]();}[_0x23037e(0x3b4)](){const _0x3d8477=_0x23037e;super[_0x3d8477(0x3b4)](),this[_0x3d8477(0x3da)][_0x3d8477(0x2a5)](new Map()),this['_cursorInfo$'][_0x3d8477(0x232)](),this[_0x3d8477(0x28d)][_0x3d8477(0x2a5)]([]),this[_0x3d8477(0x28d)][_0x3d8477(0x232)]();}[_0x23037e(0x377)](){const _0x31460a=_0x23037e;this[_0x31460a(0x2f5)]||(this[_0x31460a(0x2f5)]=!0x0,this[_0x31460a(0x21f)][_0x31460a(0x3dc)]['pipe'](_0x1f8529(this[_0x31460a(0x388)]))[_0x31460a(0x286)](_0x292d04=>{const _0x10a91b=_0x31460a;_0x292d04===_0x3b587d[_0x10a91b(0x34a)]?this['_toggleOnline']():this[_0x10a91b(0x2c9)]();}),this[_0x31460a(0x21f)][_0x31460a(0x33c)][_0x31460a(0x277)](_0x1f8529(this[_0x31460a(0x388)]))[_0x31460a(0x286)](_0x49387d=>{const _0x12d3b3=_0x31460a,_0x56f013=_0x49387d[_0x12d3b3(0x276)];_0x56f013===_0x2d5bf8[_0x12d3b3(0x400)]&&this[_0x12d3b3(0x202)](_0x49387d),_0x56f013===_0x2d5bf8[_0x12d3b3(0x28e)]&&this[_0x12d3b3(0x331)](_0x49387d);}),this[_0x31460a(0x376)](),this[_0x31460a(0x2b4)](this[_0x31460a(0x2d6)][_0x31460a(0x421)](_0x156513=>{const _0x207b19=_0x31460a;if(this[_0x207b19(0x278)]&&_0x156513['id']===_0x1b5f73['id']&&_0x156513['params']['unitId']===this[_0x207b19(0x256)]){const _0x1d05b2=_0x156513[_0x207b19(0x3dd)];this[_0x207b19(0x3b0)](_0x1d05b2['subUnitId'],_0x1d05b2[_0x207b19(0x305)][0x0]);}})));}['_onCursorUpdate'](_0xd17e69){const _0x545f66=_0x23037e;var _0x41751f,_0x296e76;const {memberID:_0x1e6789,selection:_0x5a974c}=_0xd17e69[_0x545f66(0x30d)],{sheetName:_0x552bd6,range:_0x2ea047}=_0x584d03(_0x5a974c),_0x54cd38={'name':(_0x296e76=(_0x41751f=this[_0x545f66(0x2b3)]['getMember'](this[_0x545f66(0x256)],_0x1e6789))==null?void 0x0:_0x41751f[_0x545f66(0x33f)])!=null?_0x296e76:_0x545f66(0x356),'range':this['_getMergeRange'](_0x552bd6,_0x2ea047),'sheetID':_0x552bd6,'color':this[_0x545f66(0x41b)][_0x545f66(0x340)](_0x1e6789),'selection':_0x5a974c},_0x5141c4=this[_0x545f66(0x27e)];_0x5141c4[_0x545f66(0x2a0)](_0x1e6789,_0x54cd38),this[_0x545f66(0x3da)][_0x545f66(0x2a5)](_0x5141c4);}[_0x23037e(0x331)](_0x34b722){const _0x1470c0=_0x23037e,{memberID:_0x44c0bf}=_0x34b722[_0x1470c0(0x30d)],_0x541f9f=this[_0x1470c0(0x27e)];_0x541f9f[_0x1470c0(0x33a)](_0x44c0bf),this['_cursorInfo$'][_0x1470c0(0x2a5)](_0x541f9f);}['_getMergeRange'](_0xd9dbcd,_0x346f54){const _0x3bfbec=_0x23037e;var _0x5804fc,_0x513b40;const _0x4947d1=(_0x513b40=(_0x5804fc=this[_0x3bfbec(0x2f9)][_0x3bfbec(0x225)](this['unitID']))==null?void 0x0:_0x5804fc[_0x3bfbec(0x302)](_0xd9dbcd))==null?void 0x0:_0x513b40['getMergeData']();return(_0x4947d1==null?void 0x0:_0x4947d1[_0x3bfbec(0x3d3)](_0x30dea8=>_0x231b0b[_0x3bfbec(0x37d)](_0x30dea8,_0x346f54)))||_0x346f54;}[_0x23037e(0x376)](){const _0x2607b8=new _0x31703a(),_0x4540f4=Fi(),_0x1fcf51=()=>{const _0x33eac1=_0x596d;_0x2607b8[_0x33eac1(0x3b4)]();const _0x389bb2=(_0x2e00c5,_0x135fae,_0x38132f,_0x9565d6)=>{const _0xac6ec1=_0x33eac1;let _0x12bf36=[];switch(_0x2e00c5['id']){case _0x5546d5[_0xac6ec1(0x402)]:{_0x12bf36=_0x2f0783(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x2d1)]:{_0x12bf36=_0x4536fa(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3fd)]:{_0x12bf36=_0x13497b(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3a8)]:{_0x12bf36=_0x5c823a(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x324)]:{_0x12bf36=_0x5b21d5(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x200)]:{_0x12bf36=_0x2d53e8(_0x2e00c5,_0x9565d6);break;}case _0x5546d5['MoveRangeCommandId']:{_0x12bf36=_0x62f1a4(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x23d)]:{_0x12bf36=_0x15b017(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3f6)]:{_0x12bf36=_0x7f5d7e(_0x2e00c5,_0x9565d6);break;}}const _0x2617b0=_0x3dbed1(_0x12bf36,_0x9565d6),_0x41744a=this[_0xac6ec1(0x27e)][_0xac6ec1(0x2d3)](_0x135fae);if(_0x41744a&&_0x2617b0){const _0x3c3791={..._0x41744a,'range':_0x2617b0};this['cursorInfo']['set'](_0x135fae,_0x3c3791),_0x4540f4(()=>{const _0x49453e=_0xac6ec1,_0x16428b=this['_refRangeService'][_0x49453e(0x3e8)](_0x2617b0,_0x1db1e4=>(_0x16428b[_0x49453e(0x3b4)](),_0x389bb2(_0x1db1e4,_0x135fae,_0x38132f,_0x2617b0)));_0x2607b8[_0x49453e(0x30b)](_0x16428b);});}return{'redos':[],'undos':[]};};this[_0x33eac1(0x27e)][_0x33eac1(0x342)]((_0xe9e54d,_0x30e55e)=>{const _0x13e1b0=_0x33eac1,{range:_0x2a400c,sheetID:_0xf72323}=_0xe9e54d,_0x59ae6e=this['_refRangeService'][_0x13e1b0(0x3e8)](_0x2a400c,_0x236436=>(_0x59ae6e[_0x13e1b0(0x3b4)](),_0x389bb2(_0x236436,_0x30e55e,_0xf72323,_0x2a400c)));_0x2607b8[_0x13e1b0(0x30b)](_0x59ae6e);});};this['disposeWithMe'](_0x586ed0(this['_cursorInfo$']['subscribe'](()=>{_0x1fcf51();})));}[_0x23037e(0x2c3)](){const _0x16eb1a=_0x23037e;var _0x29f376,_0xa52bcd;if(this['_online']=!0x0,((_0x29f376=this[_0x16eb1a(0x2f9)]['getFocusedUnit']())==null?void 0x0:_0x29f376[_0x16eb1a(0x23c)]())!==this['unitID'])return;const _0x50dc2c=(_0xa52bcd=this[_0x16eb1a(0x1f8)]['get'](_0x4e7057)['getCurrentSelections']())==null?void 0x0:_0xa52bcd[0x0],_0x162166=this[_0x16eb1a(0x2f9)][_0x16eb1a(0x21e)](_0x175e13[_0x16eb1a(0x2be)])[_0x16eb1a(0x416)]();_0x50dc2c&&_0x162166&&this[_0x16eb1a(0x3b0)](_0x162166[_0x16eb1a(0x38c)](),_0x50dc2c);}['_toggleOffline'](){this['_online']=!0x1;}};we=$i([B(0x2,_0x57b7af(_0xc05c74)),B(0x3,_0x57b7af(je)),B(0x4,_0x57b7af(_0x254d55)),B(0x5,_0x2c6926),B(0x6,_0x409061),B(0x7,_0x57b7af(_0x60f440))],we);var ki=Object['getOwnPropertyDescriptor'],Hi=(_0x54cdcc,_0x5d5527,_0x64a23,_0x54be78)=>{const _0x42ed8d=_0x23037e;for(var _0x36b166=_0x54be78>0x1?void 0x0:_0x54be78?ki(_0x5d5527,_0x64a23):_0x5d5527,_0x51767e=_0x54cdcc[_0x42ed8d(0x285)]-0x1,_0x42348c;_0x51767e>=0x0;_0x51767e--)(_0x42348c=_0x54cdcc[_0x51767e])&&(_0x36b166=_0x42348c(_0x36b166)||_0x36b166);return _0x36b166;},Ee=(_0x4607cb,_0x25567d)=>(_0x594afc,_0x4a558d)=>_0x25567d(_0x594afc,_0x4a558d,_0x4607cb);let H=class extends _0x1d3622{constructor(_0x5e93b4,_0x2eae73,_0x2b13b0){const _0x2cfc5e=_0x23037e;super(),l(this,_0x2cfc5e(0x40b),new Map()),l(this,_0x2cfc5e(0x268),new _0x37e983()),(this[_0x2cfc5e(0x2f9)]=_0x5e93b4,this[_0x2cfc5e(0x1f8)]=_0x2eae73,this[_0x2cfc5e(0x22a)]=_0x2b13b0,this[_0x2cfc5e(0x2f5)]());}['dispose'](){const _0x31e8a9=_0x23037e;super['dispose'](),this[_0x31e8a9(0x268)][_0x31e8a9(0x232)](),this[_0x31e8a9(0x40b)][_0x31e8a9(0x342)](_0x8f31f0=>_0x8f31f0[_0x31e8a9(0x3b4)]());}[_0x23037e(0x3c2)](_0x58b6ea){const _0xe8fc2e=_0x23037e;return this['_entities'][_0xe8fc2e(0x239)](_0x58b6ea)?this['_entities']['get'](_0x58b6ea)['cursorInfo$']:this[_0xe8fc2e(0x268)]['pipe'](_0x72003c(_0x24407b=>_0x24407b[_0xe8fc2e(0x256)]===_0x58b6ea),_0x1a78b4(_0x2c2182=>_0x2c2182['cursorInfo$']));}[_0x23037e(0x2f5)](){const _0x248029=_0x23037e;this[_0x248029(0x2f9)]['getTypeOfUnitAdded$'](_0x175e13[_0x248029(0x2be)])[_0x248029(0x277)](_0x1f8529(this[_0x248029(0x388)]))[_0x248029(0x286)](async _0x3cede7=>{const _0x398291=_0x248029,_0x419282=_0x3cede7['getUnitId'](),_0x1d1fdf=await this['_startSheetCollabCursor'](_0x419282);this[_0x398291(0x268)][_0x398291(0x2a5)](_0x1d1fdf),this[_0x398291(0x40b)][_0x398291(0x2a0)](_0x419282,_0x1d1fdf);}),this[_0x248029(0x2f9)][_0x248029(0x2a2)](_0x175e13[_0x248029(0x375)])['pipe'](_0x1f8529(this[_0x248029(0x388)]))[_0x248029(0x277)](_0x72003c(_0x325aee=>!_0x325aee[_0x248029(0x23c)]()[_0x248029(0x2d5)]('__')))['subscribe'](async _0x2fba79=>{const _0x4829e9=_0x248029,_0x2a638f=_0x2fba79[_0x4829e9(0x23c)](),_0x49802c=await this[_0x4829e9(0x2cb)](_0x2a638f);this['_entityInit$'][_0x4829e9(0x2a5)](_0x49802c),this['_entities']['set'](_0x2a638f,_0x49802c);}),_0x4680f6(this[_0x248029(0x2f9)][_0x248029(0x20d)](_0x175e13[_0x248029(0x375)]),this['_univerInstanceService'][_0x248029(0x20d)](_0x175e13[_0x248029(0x2be)]))['pipe'](_0x1f8529(this['dispose$']))[_0x248029(0x286)](_0x56a4cb=>{const _0x2736a1=_0x248029,_0x178593=_0x56a4cb['getUnitId'](),_0x5a04ca=this[_0x2736a1(0x40b)][_0x2736a1(0x2d3)](_0x178593);_0x5a04ca&&(_0x5a04ca[_0x2736a1(0x3b4)](),this[_0x2736a1(0x40b)][_0x2736a1(0x33a)](_0x178593));});}async[_0x23037e(0x3b2)](_0x45fc04){const _0x5b3072=_0x23037e,_0x333344=await this[_0x5b3072(0x22a)]['requireSession'](_0x45fc04),_0x376020=this[_0x5b3072(0x1f8)][_0x5b3072(0x30c)](we,_0x45fc04,_0x333344);return _0x376020['init'](),_0x376020;}async[_0x23037e(0x2cb)](_0x53e8ad){const _0x22cde3=_0x23037e,_0x2e0085=await this[_0x22cde3(0x22a)]['requireSession'](_0x53e8ad),_0x31a1d8=this[_0x22cde3(0x1f8)]['createInstance'](Pe,_0x53e8ad,_0x2e0085);return _0x31a1d8[_0x22cde3(0x377)](),_0x31a1d8;}};H=Hi([Ee(0x0,_0x2c6926),Ee(0x1,_0x57b7af(_0xc05c74)),Ee(0x2,_0x57b7af(_0x421172))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x828e59,_0x5c0b7d){const _0x859768=_0x23037e;let {radius:_0x49fecb,width:_0x31be45,height:_0x122716}=_0x5c0b7d;_0x49fecb=_0x49fecb!=null?_0x49fecb:0x0,_0x31be45=_0x31be45!=null?_0x31be45:0x1e,_0x122716=_0x122716!=null?_0x122716:0x1e;let _0x59b65b=0x0,_0x5571f6=0x0,_0x311184=0x0;_0x59b65b=_0x5571f6=_0x311184=Math[_0x859768(0x27c)](_0x49fecb,_0x31be45/0x2,_0x122716/0x2),_0x828e59[_0x859768(0x322)](),_0x828e59[_0x859768(0x2aa)](_0x59b65b,0x0),_0x828e59[_0x859768(0x427)](_0x31be45-_0x5571f6,0x0),_0x828e59[_0x859768(0x24b)](_0x31be45-_0x5571f6,_0x5571f6,_0x5571f6,Math['PI']*0x3/0x2,0x0,!0x1),_0x828e59[_0x859768(0x427)](_0x31be45,_0x122716-_0x311184),_0x828e59['arc'](_0x31be45-_0x311184,_0x122716-_0x311184,_0x311184,0x0,Math['PI']/0x2,!0x1),_0x828e59['lineTo'](0x0,_0x122716),_0x828e59['lineTo'](0x0,_0x59b65b),_0x828e59[_0x859768(0x24b)](_0x59b65b,_0x59b65b,_0x59b65b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x828e59[_0x859768(0x230)](),_0x5c0b7d[_0x859768(0x293)]&&(_0x828e59[_0x859768(0x41d)](),_0x828e59['fillStyle']=_0x5c0b7d['fill'],_0x5c0b7d[_0x859768(0x3f9)]===_0x859768(0x2af)?_0x828e59[_0x859768(0x293)](_0x859768(0x2af)):_0x828e59['fill'](),_0x828e59[_0x859768(0x2dd)]());}class me extends _0x403c8d{constructor(_0xc3cc63,_0x524682){const _0x477d89=_0x23037e;super(_0xc3cc63,_0x524682),l(this,'color'),l(this,_0x477d89(0x3f8)),(this['color']=_0x524682==null?void 0x0:_0x524682[_0x477d89(0x205)],this[_0x477d89(0x3f8)]=_0x524682==null?void 0x0:_0x524682[_0x477d89(0x3f8)]);}static[_0x23037e(0x23a)](_0x361129,_0x2ba0fa){const _0xdef3e=_0x23037e,{text:_0x34e29c,color:_0x18bc09}=_0x2ba0fa;_0x361129[_0xdef3e(0x41d)](),_0x361129[_0xdef3e(0x32f)]=_0xdef3e(0x2d2);const _0x5d2163=_0x361129[_0xdef3e(0x386)](_0x34e29c)[_0xdef3e(0x292)],_0x24b365=Math[_0xdef3e(0x27c)](_0x5d2163+0x2*pe,it);Wi(_0x361129,{'height':Q,'radius':0x4,'width':_0x24b365,'fill':_0x18bc09}),_0x361129[_0xdef3e(0x3c4)]='#FFF';const _0x321eed=pe,_0x577c41=Q-Yi,_0x27832b=it-0x2*pe;if(_0x5d2163>_0x27832b){let _0x241e59='',_0x114543=0x0;for(const _0xfa55b3 of _0x34e29c){const _0x925031=_0x361129['measureText'](_0xfa55b3)[_0xdef3e(0x292)];if(_0x114543+_0x925031<=_0x27832b-_0x361129[_0xdef3e(0x386)](_0xdef3e(0x253))[_0xdef3e(0x292)])_0x241e59+=_0xfa55b3,_0x114543+=_0x925031;else{_0x241e59+='...';break;}}_0x361129[_0xdef3e(0x22d)](_0x241e59,_0x321eed,_0x577c41);}else _0x361129[_0xdef3e(0x22d)](_0x34e29c,_0x321eed,_0x577c41);_0x361129[_0xdef3e(0x2dd)]();}[_0x23037e(0x25f)](_0x541fb2){const _0x32f2b9=_0x23037e;me[_0x32f2b9(0x23a)](_0x541fb2,this);}}const Oe=_0x23037e(0x2d8),Vi=_0x23037e(0x219),ji=_0x23037e(0x211),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki='rgba(255,\x20255,\x20255,\x200.01)';class nt{constructor(_0xe36ea9,_0x372750,_0x39d26f,_0x76c0f9){const _0x5895b9=_0x23037e;l(this,_0x5895b9(0x422),[]),l(this,'_anchor',null),l(this,_0x5895b9(0x246),null),l(this,_0x5895b9(0x3a2),null),l(this,'_hideTimer',null),l(this,_0x5895b9(0x374),null),(this[_0x5895b9(0x2e4)]=_0xe36ea9,this['_scene']=_0x372750,this['_docSkeleton']=_0x39d26f,this['_document']=_0x76c0f9,this['_render']());}set[_0x23037e(0x29e)](_0x4071fb){const _0x50184e=_0x23037e;_0x4071fb?(this[_0x50184e(0x3a2)]&&this[_0x50184e(0x3a2)][_0x50184e(0x310)](),this[_0x50184e(0x246)]&&this['_textBubble'][_0x50184e(0x327)]()):(this['_anchorDot']&&this['_anchorDot'][_0x50184e(0x327)](),this['_textBubble']&&this['_textBubble'][_0x50184e(0x310)]());}[_0x23037e(0x3b4)](){const _0x3cb456=_0x23037e;for(const _0x38c3ef of this[_0x3cb456(0x422)])_0x38c3ef[_0x3cb456(0x3b4)]();this[_0x3cb456(0x246)]&&this[_0x3cb456(0x246)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x3a2)]&&this[_0x3cb456(0x3a2)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x412)]&&this[_0x3cb456(0x412)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x374)]&&this[_0x3cb456(0x374)]();}[_0x23037e(0x398)](){const _0x500196=_0x23037e;var _0x37e19c;const {_docSkeleton:_0xccf63a,_document:_0x1991ae}=this,{color:_0x4835b1,name:_0x517093,ranges:_0x27e31b}=this[_0x500196(0x2e4)],_0x2ed36e=_0x1991ae[_0x500196(0x309)](),{docsLeft:_0x367349,docsTop:_0x476f03}=_0x2ed36e,_0x4b5748=new _0xcac73d(_0x2ed36e,_0xccf63a);for(const {startOffset:_0x390537,endOffset:_0x18300e,rangeType:_0x5fce1b,segmentId:_0x5126c0,segmentPage:_0x5dd3b8,collapsed:_0x47a4fc,isActive:_0x4313fb}of _0x27e31b){const _0x1973a7=_0xccf63a[_0x500196(0x3e4)](_0x390537,!0x0,_0x5126c0,_0x5dd3b8);let _0x1253da=_0xccf63a[_0x500196(0x3e4)](_0x18300e,!0x0,_0x5126c0,_0x5dd3b8);if(_0x1253da==null&&(_0x1253da=_0xccf63a['findNodePositionByCharIndex'](_0x18300e-0x1,!0x1,_0x5126c0,_0x5dd3b8)),_0x4313fb){const {contentBoxPointGroup:_0x2f0cb0}=_0x4b5748[_0x500196(0x3fc)](_0x1253da,_0x1253da);if(_0x2f0cb0['length']===0x0)continue;this[_0x500196(0x3eb)](_0x4835b1,_0x2f0cb0,_0x367349,_0x476f03,_0x517093),this[_0x500196(0x374)]=this['_handleHover']();}if(_0x1973a7&&_0x1253da){if(_0x5fce1b===_0x3c6aa3[_0x500196(0x399)]){const _0x44dde5=new _0xbcad60(_0x2ed36e,_0xccf63a),{pointGroup:_0x4bee11}=(_0x37e19c=_0x44dde5['getRangePointData'](_0x1973a7,_0x1253da))!=null?_0x37e19c:{};if(_0x4bee11==null||_0x4bee11[_0x500196(0x285)]===0x0)continue;this[_0x500196(0x38e)](_0x4835b1,_0x4bee11,_0x367349,_0x476f03);}else{if(!_0x47a4fc){const {borderBoxPointGroup:_0x6b0e71}=_0x4b5748[_0x500196(0x3fc)](_0x1973a7,_0x1253da);if(_0x6b0e71[_0x500196(0x285)]===0x0)continue;this[_0x500196(0x313)](_0x4835b1,_0x6b0e71,_0x367349,_0x476f03);}}}}}[_0x23037e(0x3eb)](_0x523c53,_0x2118a8,_0x4553b6,_0x2f60bf,_0x262f1e){const _0x554027=_0x23037e,_0x4ba804=this[_0x554027(0x3b7)](_0x2118a8),{left:_0x323975,top:_0x1042b3,height:_0x1420eb}=_0x4ba804,_0x2ec6ed=this[_0x554027(0x26c)](),_0x382a8a=Gi/_0x2ec6ed,_0x208af6=new _0x13c2ec(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf,'height':_0x1420eb,'width':Xi,'fill':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'strokeWidth':_0x382a8a,'stroke':Ki,'evented':!0x0});this[_0x554027(0x412)]=_0x208af6,this[_0x554027(0x3ba)][_0x554027(0x3ae)](_0x208af6,_0x2279bd);const _0x34582e=new _0x13c2ec(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf-Te/0x2,'height':Te,'width':Te,'fill':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'strokeWidth':0x0,'stroke':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'evented':!0x1});this[_0x554027(0x3a2)]=_0x34582e,this[_0x554027(0x3ba)][_0x554027(0x3ae)](_0x34582e,_0x2279bd);const _0x2a6e0c=new me(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf-Q,'text':_0x262f1e,'color':_0x523c53});this[_0x554027(0x246)]=_0x2a6e0c,this['_scene'][_0x554027(0x3ae)](_0x2a6e0c,_0x2279bd),this['_hover']=!0x1;}[_0x23037e(0x351)](){const _0x4b336e=_0x23037e,_0x1dc46f=this['_anchor'][_0x4b336e(0x3e2)][_0x4b336e(0x3ac)](()=>{this['_hover']=!0x0;}),_0x3658be=this[_0x4b336e(0x412)][_0x4b336e(0x2cd)]['subscribeEvent'](()=>{const _0x5e05c5=_0x4b336e;this[_0x5e05c5(0x217)]&&clearTimeout(this[_0x5e05c5(0x217)]),this[_0x5e05c5(0x217)]=setTimeout(()=>{const _0x50930e=_0x5e05c5;this[_0x50930e(0x29e)]=!0x1;},0x7d0);});return()=>{const _0x30c726=_0x4b336e;_0x1dc46f['unsubscribe'](),_0x3658be[_0x30c726(0x224)]();};}['_drawTextRange'](_0x5009be,_0x2974a3,_0x4ce0b0,_0x372c81){const _0x5b2b4e=_0x23037e,_0x1ce878=new _0x20724d(_0x5009be)[_0x5b2b4e(0x1f2)](0.2)[_0x5b2b4e(0x204)](),_0xbe7f67=new _0x2d1fb7(Vi+_0x21c798(z),{'pointsGroup':_0x2974a3,'fill':_0x1ce878||_0x29e4a4(_0x527bec['black'],0.2),'left':_0x4ce0b0,'top':_0x372c81,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b2b4e(0x422)][_0x5b2b4e(0x3b6)](_0xbe7f67),this[_0x5b2b4e(0x3ba)]['addObject'](_0xbe7f67,_0x2279bd);}['_drawRectRange'](_0x2e690e,_0x437225,_0x2971eb,_0x2fd3ec){const _0x5a5652=_0x23037e,_0x2b4e96=new _0x20724d(_0x2e690e)[_0x5a5652(0x1f2)](0.2)[_0x5a5652(0x204)](),_0x2d2ffb=new _0x2d1fb7(ji+_0x21c798(z),{'pointsGroup':_0x437225,'fill':_0x2b4e96||_0x29e4a4(_0x527bec[_0x5a5652(0x2f0)],0.2),'left':_0x2971eb,'top':_0x2fd3ec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a5652(0x422)][_0x5a5652(0x3b6)](_0x2d2ffb),this[_0x5a5652(0x3ba)]['addObject'](_0x2d2ffb,_0x2279bd);}[_0x23037e(0x3b7)](_0x14cd08){const _0x17f294=_0x14cd08[0x0],_0x4cc987=_0x17f294[0x0],_0x3a0686=_0x17f294[0x2],{x:_0x464859,y:_0x35b0a5}=_0x4cc987,{x:_0x1e7186,y:_0xdfd605}=_0x3a0686;return{'left':_0x464859,'top':_0x35b0a5,'width':_0x1e7186-_0x464859,'height':_0xdfd605-_0x35b0a5};}['_getScale'](){const _0x205e05=_0x23037e,{scaleX:_0x45a6a9,scaleY:_0x5ab2d8}=this[_0x205e05(0x3ba)][_0x205e05(0x41a)]();return Math['max'](_0x45a6a9,_0x5ab2d8);}}var zi=Object[_0x23037e(0x2c0)],Ji=(_0x3586c9,_0x3e9427,_0xbeb77a,_0x49b7fb)=>{const _0x19a1c8=_0x23037e;for(var _0x299d5b=_0x49b7fb>0x1?void 0x0:_0x49b7fb?zi(_0x3e9427,_0xbeb77a):_0x3e9427,_0x57c78c=_0x3586c9[_0x19a1c8(0x285)]-0x1,_0x3e93ab;_0x57c78c>=0x0;_0x57c78c--)(_0x3e93ab=_0x3586c9[_0x57c78c])&&(_0x299d5b=_0x3e93ab(_0x299d5b)||_0x299d5b);return _0x299d5b;},ie=(_0x4b264e,_0x48d0d4)=>(_0x5efe64,_0x3f9673)=>_0x48d0d4(_0x5efe64,_0x3f9673,_0x4b264e);let ye=class extends _0x1d3622{constructor(_0xae7e3a,_0x56f763,_0x3d5cbe,_0x58e826,_0x550f98){const _0x4bebb4=_0x23037e;super(),l(this,_0x4bebb4(0x307),[]),l(this,_0x4bebb4(0x423),[]),(this[_0x4bebb4(0x35f)]=_0xae7e3a,this['_docSkeletonManagerService']=_0x56f763,this[_0x4bebb4(0x2f4)]=_0x3d5cbe,this[_0x4bebb4(0x2d6)]=_0x58e826,this[_0x4bebb4(0x20f)]=_0x550f98,this[_0x4bebb4(0x2f5)]());}[_0x23037e(0x2f5)](){const _0x5e987c=_0x23037e,_0x159905=this[_0x5e987c(0x35f)][_0x5e987c(0x26b)],_0x422790=this['_docSkeletonManagerService'];this[_0x5e987c(0x2b4)](_0x4625a1([this[_0x5e987c(0x2f4)][_0x5e987c(0x3c2)](_0x159905),this[_0x5e987c(0x20f)][_0x5e987c(0x3d1)]])[_0x5e987c(0x277)](_0x43594e(([_0x51dd7a,_0x149c46])=>({'skeleton':_0x422790[_0x5e987c(0x2eb)](),'cursors':[..._0x51dd7a[_0x5e987c(0x2e3)]()][_0x5e987c(0x37f)](_0x5369e3=>({..._0x5369e3,'color':this[_0x5e987c(0x20f)][_0x5e987c(0x355)](_0x5369e3['color'])}))})))[_0x5e987c(0x286)](_0x2653a8=>{const _0x33c533=_0x5e987c;if(this[_0x33c533(0x2ce)](),_0x2653a8){const {skeleton:_0x448dbe,cursors:_0x22e1d2}=_0x2653a8;this['_updateCollabCursors'](_0x448dbe,_0x22e1d2);}})),this[_0x5e987c(0x3e0)](),this[_0x5e987c(0x28c)]();}[_0x23037e(0x381)](_0x3b903c,_0x102e48){const _0x338188=_0x23037e,{scene:_0x5997e8,mainComponent:_0x2dc74e}=this['_context'],_0x3b2c76=_0x102e48[_0x338188(0x218)](_0x516413=>new nt(_0x516413,_0x5997e8,_0x3b903c,_0x2dc74e));this[_0x338188(0x307)]=_0x3b2c76,this[_0x338188(0x423)]=_0x102e48;}[_0x23037e(0x397)](){const _0x419bb1=_0x23037e;this['_removeCollabCursors']();const {scene:_0x1552a3,mainComponent:_0x38c2bd}=this[_0x419bb1(0x35f)],_0x3e6df0=this[_0x419bb1(0x337)][_0x419bb1(0x2eb)](),_0x51017f=this[_0x419bb1(0x423)]['map'](_0x833a76=>new nt(_0x833a76,_0x1552a3,_0x3e6df0,_0x38c2bd));this[_0x419bb1(0x307)]=_0x51017f;}[_0x23037e(0x2ce)](){const _0x20e666=_0x23037e;this[_0x20e666(0x307)][_0x20e666(0x342)](_0x3935e6=>_0x3935e6[_0x20e666(0x3b4)]()),this['_cursorShapes']=[];}[_0x23037e(0x28c)](){const _0xacc1c8=_0x23037e,_0x493a96=[_0x41542c['id']];this[_0xacc1c8(0x2b4)](this[_0xacc1c8(0x2d6)]['onCommandExecuted'](_0x3c9d77=>{const _0x511654=_0xacc1c8;_0x493a96['includes'](_0x3c9d77['id'])&&_0x3c9d77[_0x511654(0x3dd)][_0x511654(0x26b)]===this['_context'][_0x511654(0x26b)]&&this[_0x511654(0x397)]();}));}[_0x23037e(0x3e0)](){const _0x9e2b2d=_0x23037e;this[_0x9e2b2d(0x2b4)](_0x40819d(this[_0x9e2b2d(0x35f)][_0x9e2b2d(0x288)][_0x9e2b2d(0x2a1)])['pipe'](_0x11482a(_0xb32a=>_0xb32a[_0x9e2b2d(0x228)]===_0x397d4d['resize']),_0xda8cfa(0x10))[_0x9e2b2d(0x286)](()=>{const _0x95fdbe=_0x9e2b2d;this[_0x95fdbe(0x397)]();}));}};ye=Ji([ie(0x1,_0x57b7af(_0x3f62c8)),ie(0x2,_0x57b7af(H)),ie(0x3,_0x409061),ie(0x4,_0x57b7af(_0xd8aa5f))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x403c8d{constructor(_0x2e1deb,_0x5c9334){const _0x236a27=_0x23037e;super(_0x2e1deb,_0x5c9334),l(this,_0x236a27(0x274)),l(this,'_hovered',!0x1),l(this,_0x236a27(0x29c)),l(this,_0x236a27(0x393),''),l(this,_0x236a27(0x417),'top'),l(this,_0x236a27(0x314)),(_0x5c9334&&this[_0x236a27(0x221)](_0x5c9334),this[_0x236a27(0x3e2)][_0x236a27(0x3ac)](()=>this[_0x236a27(0x221)]({'hovered':!0x0})),this[_0x236a27(0x2cd)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x23037e(0x221)](_0xef4783){const _0x5effc0=_0x23037e;var _0x22325b,_0x2db6ea,_0x4dc631,_0x1cea26,_0x33c174,_0x19fa7d;this[_0x5effc0(0x274)]=(_0x22325b=_0xef4783[_0x5effc0(0x205)])!=null?_0x22325b:this[_0x5effc0(0x274)],this[_0x5effc0(0x40a)]=(_0x2db6ea=_0xef4783['hovered'])!=null?_0x2db6ea:this[_0x5effc0(0x40a)],this['_range']=(_0x4dc631=_0xef4783[_0x5effc0(0x3f4)])!=null?_0x4dc631:this[_0x5effc0(0x29c)],this[_0x5effc0(0x393)]=(_0x1cea26=_0xef4783[_0x5effc0(0x33f)])!=null?_0x1cea26:this[_0x5effc0(0x393)],this[_0x5effc0(0x417)]=(_0x33c174=_0xef4783[_0x5effc0(0x1f9)])!=null?_0x33c174:this[_0x5effc0(0x417)],this['_backgroundColor']=(_0x19fa7d=_0xef4783[_0x5effc0(0x2ae)])!=null?_0x19fa7d:this[_0x5effc0(0x314)],this[_0x5effc0(0x264)]({'width':_0xef4783[_0x5effc0(0x292)],'height':_0xef4783[_0x5effc0(0x296)]});}[_0x23037e(0x223)](_0x1d3043){const _0x169e49=_0x23037e,{row:_0x1f4fdb,column:_0x457b37}=_0x1d3043;if(_0x1f4fdb>=this[_0x169e49(0x29c)]['startRow']&&_0x1f4fdb<=this['_range'][_0x169e49(0x32a)]&&_0x457b37>=this[_0x169e49(0x29c)][_0x169e49(0x3df)]&&_0x457b37<=this['_range'][_0x169e49(0x20c)]){this[_0x169e49(0x221)]({'hovered':!0x0});return;}this[_0x169e49(0x221)]({'hovered':!0x1});}['triggerDblclick'](_0x291357){return!0x1;}[_0x23037e(0x25f)](_0x3ae883){const _0x43a2b6=_0x23037e;_0x13c2ec[_0x43a2b6(0x23a)](_0x3ae883,{'width':this[_0x43a2b6(0x292)],'height':this[_0x43a2b6(0x296)],'strokeWidth':Qi,'stroke':this[_0x43a2b6(0x274)],'evented':!0x1,'fill':this[_0x43a2b6(0x314)]}),this['_hovered']&&(_0x3ae883['save'](),_0x3ae883[_0x43a2b6(0x233)](0x1,0x0,0x0,0x1,this[_0x43a2b6(0x292)],this[_0x43a2b6(0x417)]===_0x43a2b6(0x2fd)?0x0:-Q),me[_0x43a2b6(0x23a)](_0x3ae883,{'text':this[_0x43a2b6(0x393)],'color':this[_0x43a2b6(0x274)]}),_0x3ae883[_0x43a2b6(0x2dd)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0x2d5e57,_0x494a9b,_0x5dc82a,_0x460a5d)=>{const _0x72fac4=_0x23037e;for(var _0x3464f3=_0x460a5d>0x1?void 0x0:_0x460a5d?en(_0x494a9b,_0x5dc82a):_0x494a9b,_0x15d02c=_0x2d5e57[_0x72fac4(0x285)]-0x1,_0x5b8b68;_0x15d02c>=0x0;_0x15d02c--)(_0x5b8b68=_0x2d5e57[_0x15d02c])&&(_0x3464f3=_0x5b8b68(_0x3464f3)||_0x3464f3);return _0x3464f3;},Ce=(_0x3dfc0c,_0x2dfd87)=>(_0x3d8cba,_0x2ab433)=>_0x2dfd87(_0x3d8cba,_0x2ab433,_0x3dfc0c);const sn=0x1389;let $e=class extends _0x1d3622{constructor(_0xf46e82,_0x1749c2,_0x4cea9a,_0x2ce172){const _0x5dc29f=_0x23037e;super(),l(this,'_cursors',new Set()),l(this,_0x5dc29f(0x392),null),(this[_0x5dc29f(0x35f)]=_0xf46e82,this[_0x5dc29f(0x3a4)]=_0x1749c2,this[_0x5dc29f(0x2f4)]=_0x4cea9a,this[_0x5dc29f(0x20f)]=_0x2ce172,this[_0x5dc29f(0x2f5)]());}[_0x23037e(0x2f5)](){const _0x12925a=_0x23037e;this[_0x12925a(0x3a4)][_0x12925a(0x358)][_0x12925a(0x277)](_0x62c4b1(this[_0x12925a(0x388)]),_0x18725f(_0x163947=>{const _0x59a0aa=_0x12925a;if(_0x163947){const _0x58f288=_0x163947['sheetId'];return _0x4625a1(this['_collabCursorController']['getCollabCursors$'](this[_0x59a0aa(0x35f)][_0x59a0aa(0x26b)]),this[_0x59a0aa(0x20f)]['currentTheme$'])[_0x59a0aa(0x277)](_0x43594e(([_0x50224c,_0x48ceeb])=>{const _0x50c153=_0x59a0aa,_0x1cf561=new Map();return _0x50224c[_0x50c153(0x342)]((_0x38324b,_0x51e38f)=>{const _0x576f01=_0x50c153;if(_0x38324b[_0x576f01(0x3f3)]===_0x58f288){const _0x4ea3bd={..._0x38324b};_0x4ea3bd[_0x576f01(0x205)]=this[_0x576f01(0x20f)][_0x576f01(0x355)](_0x38324b[_0x576f01(0x205)]),_0x1cf561[_0x576f01(0x2a0)](_0x51e38f,_0x4ea3bd);}}),{'skeleton':_0x163947,'cursors':_0x1cf561};}));}return _0x53144c({'skeleton':null,'cursors':new Map()});}))[_0x12925a(0x286)](({skeleton:_0x40a96a,cursors:_0xbc5ea5})=>{const _0x121dc8=_0x12925a;this[_0x121dc8(0x2ce)](),_0x40a96a&&this[_0x121dc8(0x381)](_0x40a96a,_0xbc5ea5);}),this['_sheetSkeletonManagerService'][_0x12925a(0x358)][_0x12925a(0x286)](_0x5fb810=>{const _0x5b4877=_0x12925a;if(_0x5fb810==null)return;const {skeleton:_0x32582e}=_0x5fb810,{scene:_0x4a63b2}=this[_0x5b4877(0x35f)];_0x4a63b2[_0x5b4877(0x2b7)]['subscribeEvent'](_0x16545f(_0xb8bbd0=>{const _0x6ef6b1=_0x5b4877;var _0x5efa80,_0x3b070f;const {offsetX:_0x31eaf4,offsetY:_0x524d0a}=_0xb8bbd0,{x:_0x2b8010,y:_0x4b4834}=_0x4a63b2[_0x6ef6b1(0x273)](_0x14908a[_0x6ef6b1(0x37e)]([_0x31eaf4,_0x524d0a])),{scaleX:_0x574616,scaleY:_0x5abc44}=_0x4a63b2[_0x6ef6b1(0x41a)](),_0x4cf0d7=_0x4a63b2['getViewport'](_0x17ae79['VIEW_MAIN']),_0x2cf4ce=_0x4a63b2['getVpScrollXYInfoByPosToVp'](_0x14908a['FromArray']([_0x2b8010,_0x4b4834]),_0x4cf0d7),_0x542e82=_0x32582e[_0x6ef6b1(0x2ad)](_0x31eaf4,_0x524d0a,_0x574616,_0x5abc44,_0x2cf4ce);((_0x5efa80=this[_0x6ef6b1(0x392)])==null?void 0x0:_0x5efa80[_0x6ef6b1(0x308)])===_0x542e82['column']&&((_0x3b070f=this['_lastPointer'])==null?void 0x0:_0x3b070f[_0x6ef6b1(0x1f3)])===_0x542e82['row']||this[_0x6ef6b1(0x423)][_0x6ef6b1(0x342)](_0xe234bd=>{const _0x5ba8ad=_0x6ef6b1;_0xe234bd[_0x5ba8ad(0x223)](_0x542e82);});},0x64));});}['_updateCollabCursors'](_0x49318c,_0x59d643){const _0x433e76=_0x23037e;var _0x499c2d;const _0x8f6e7c=(_0x499c2d=this[_0x433e76(0x3a4)][_0x433e76(0x25d)]())==null?void 0x0:_0x499c2d[_0x433e76(0x407)];if(!_0x8f6e7c)return;const _0x5d222a=this[_0x433e76(0x29b)]();if(!_0x5d222a)return;this[_0x433e76(0x423)][_0x433e76(0x342)](_0x12c802=>{_0x12c802['makeDirty']();});const {scene:_0x132c86}=_0x5d222a,_0xc4c84=nn(Array[_0x433e76(0x406)](_0x59d643['values']()))[_0x433e76(0x218)](_0x2112b4=>{const _0x4ab023=_0x433e76,{color:_0x121a90,range:_0x3af398,name:_0x5d8ec6,selection:_0x4df783,sheetID:_0x5da5cb}=_0x2112b4,{startColumn:_0x1c01ed,startRow:_0x53a284,endColumn:_0x17a1f2,endRow:_0x2bd90f}=_0x3af398,_0x9f2417=_0x421831(_0x53a284,_0x1c01ed,_0x132c86,_0x8f6e7c),_0x144502=_0x421831(_0x2bd90f,_0x17a1f2,_0x132c86,_0x8f6e7c),{columnHeaderHeightAndMarginTop:_0xa4ebd1}=_0x8f6e7c,{startX:_0xc09eb4,startY:_0x136f06}=_0x9f2417,{endX:_0x678631,endY:_0xe01780}=_0x144502,_0x51b8a3=_0x678631-_0xc09eb4,_0x2b48c2=_0xe01780-_0x136f06,_0x13de46={'labelPosition':_0x136f06-_0xa4ebd1>=Q?_0x4ab023(0x3ee):_0x4ab023(0x2fd),'sheetID':_0x5da5cb,'range':_0x3af398,'color':_0x121a90,'name':_0x5d8ec6,'selection':_0x4df783,'left':_0xc09eb4,'top':_0x136f06,'width':_0x51b8a3,'height':_0x2b48c2,'evented':!0x1,'zIndex':sn};return new qi(_0x5d8ec6,_0x13de46);});_0x132c86['addObjects'](_0xc4c84,Zi),this[_0x433e76(0x423)]=new Set(_0xc4c84);}[_0x23037e(0x2ce)](){const _0x301876=_0x23037e;var _0xe11171;(_0xe11171=this[_0x301876(0x423)])==null||_0xe11171['forEach'](_0x19d2e5=>_0x19d2e5['dispose']());}[_0x23037e(0x29b)](){const _0x1eb60f=_0x23037e;return _0x473f43(this[_0x1eb60f(0x35f)][_0x1eb60f(0x2a9)],this[_0x1eb60f(0x35f)]);}};$e=tn([Ce(0x1,_0x57b7af(_0x45795e)),Ce(0x2,_0x57b7af(H)),Ce(0x3,_0x57b7af(_0xd8aa5f))],$e);function nn(_0x388a6b){const _0x40433e=_0x23037e,_0x490b5f=new Map();return _0x388a6b[_0x40433e(0x342)](_0x2c20d5=>{const _0x288899=_0x40433e;if(_0x490b5f[_0x288899(0x239)](_0x2c20d5[_0x288899(0x37a)])){const _0x1e646e=_0x490b5f[_0x288899(0x2d3)](_0x2c20d5[_0x288899(0x37a)]);_0x1e646e[_0x288899(0x33f)]+=',\x20'+_0x2c20d5[_0x288899(0x33f)];}else _0x490b5f[_0x288899(0x2a0)](_0x2c20d5['selection'],_0x2c20d5);}),Array[_0x40433e(0x406)](_0x490b5f[_0x40433e(0x2e3)]());}var rn=Object[_0x23037e(0x2c0)],on=(_0x274509,_0x5c87a8,_0x219296,_0x4bf674)=>{const _0x9720d4=_0x23037e;for(var _0x139c71=_0x4bf674>0x1?void 0x0:_0x4bf674?rn(_0x5c87a8,_0x219296):_0x5c87a8,_0x27a9f2=_0x274509[_0x9720d4(0x285)]-0x1,_0x4b4304;_0x27a9f2>=0x0;_0x27a9f2--)(_0x4b4304=_0x274509[_0x27a9f2])&&(_0x139c71=_0x4b4304(_0x139c71)||_0x139c71);return _0x139c71;},F=(_0x346cb3,_0x44867a)=>(_0x3e8851,_0x4f31d9)=>_0x44867a(_0x3e8851,_0x4f31d9,_0x346cb3);let ce=class extends _0x2adf18{constructor(_0x37fc0b,_0x5d6127,_0xefc9e4,_0x60744c,_0x37da5a,_0x16a3f7){const _0x518c5f=_0x23037e;super(),this[_0x518c5f(0x1f1)]=_0x37fc0b,this[_0x518c5f(0x311)]=_0x5d6127,this[_0x518c5f(0x3d6)]=_0xefc9e4,this[_0x518c5f(0x426)]=_0x60744c,this[_0x518c5f(0x2a7)]=_0x37da5a,this[_0x518c5f(0x259)]=_0x16a3f7,this[_0x518c5f(0x303)](),this[_0x518c5f(0x210)]();}[_0x23037e(0x303)](){const _0x4fb93a=_0x23037e;this['disposeWithMe'](this[_0x4fb93a(0x1f1)][_0x4fb93a(0x396)](()=>{const _0x571f69=_0x4fb93a;if(this['_localCacheService'][_0x571f69(0x347)][_0x571f69(0x3f1)])return this[_0x571f69(0x259)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x23037e(0x210)](){const _0xd1628b=_0x23037e;this[_0xd1628b(0x2b4)](this[_0xd1628b(0x3d6)][_0xd1628b(0x33c)]['subscribe'](_0x26804f=>{const _0x30758c=_0xd1628b;_0x26804f['id']===_0x595d90[_0x30758c(0x298)]&&this[_0x30758c(0x426)]['show']({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x38d))}),_0x26804f['id']===_0x595d90[_0x30758c(0x263)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x31e))}),_0x26804f['id']===_0x595d90[_0x30758c(0x419)]&&this['_notificationService'][_0x30758c(0x327)]({'title':this[_0x30758c(0x259)]['t']('permission.title'),'content':this['_localeService']['t'](_0x30758c(0x28b)),'type':_0x30758c(0x2e5),'duration':0x0}),_0x26804f['id']===_0x595d90[_0x30758c(0x20a)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13['Error'],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x31e))+'('+_0x26804f[_0x30758c(0x30d)]+')'}),_0x26804f['id']===_0x595d90[_0x30758c(0x26e)]&&this['_messageService'][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x26804f['data']||'')}),_0x26804f['id']===_0x595d90[_0x30758c(0x3e5)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13['Warning'],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x2b5))}),_0x26804f['id']===_0x595d90[_0x30758c(0x23e)]&&this[_0x30758c(0x426)]['show']({'type':_0x38ce13[_0x30758c(0x248)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x2ff))}),_0x26804f['id']===_0x595d90[_0x30758c(0x3de)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x248)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x3c6))});}));}};ce=on([F(0x0,_0x282c8c),F(0x1,_0x2c165a),F(0x2,_0x57b7af(_0xf10605)),F(0x3,_0x92c012),F(0x4,_0x1c9405),F(0x5,_0x57b7af(_0x23ab5c))],ce);const an='collaboration-client-ui.config',rt={};var cn=Object[_0x23037e(0x2c0)],_n=(_0x2a8230,_0x2ba569,_0x220f46,_0x2845b5)=>{const _0x576f84=_0x23037e;for(var _0x52e6ad=_0x2845b5>0x1?void 0x0:_0x2845b5?cn(_0x2ba569,_0x220f46):_0x2ba569,_0x532231=_0x2a8230[_0x576f84(0x285)]-0x1,_0x1713d9;_0x532231>=0x0;_0x532231--)(_0x1713d9=_0x2a8230[_0x532231])&&(_0x52e6ad=_0x1713d9(_0x52e6ad)||_0x52e6ad);return _0x52e6ad;},ot=(_0x2ee758,_0x1918bc)=>(_0x292022,_0x6e7bb6)=>_0x1918bc(_0x292022,_0x6e7bb6,_0x2ee758);let _e=class{constructor(_0x2019cb,_0x4ba0ef){const _0x41228f=_0x23037e;this[_0x41228f(0x237)]=_0x2019cb,this['_renderManagerService']=_0x4ba0ef;}[_0x23037e(0x2cf)](_0x442675){const _0x15951d=_0x23037e;this[_0x15951d(0x1fc)](_0x442675),this[_0x15951d(0x24d)](_0x442675);}[_0x23037e(0x3bd)](_0x45f438){const _0x59c306=_0x23037e,{unitID:_0x348868}=_0x45f438,_0x48f6af=this['_renderManagerService']['getRenderById'](_0x348868)[_0x59c306(0x3bf)](_0x1b1e78),{redoCache:_0x2c6d93}=_0x48f6af[_0x59c306(0x323)]();if(_0x2c6d93['length']===0x0)return _0x45f438;let _0x473ff1=_0x4466a1[_0x59c306(0x2bc)](_0x45f438['mutations'][0x0]);for(let _0x8cbf60=0x0;_0x8cbf60<_0x2c6d93[_0x59c306(0x285)];_0x8cbf60++){const _0x28d74f={'id':_0x59c306(0x34c),'params':{..._0x2c6d93[_0x8cbf60]}},_0x529f9a=this[_0x59c306(0x237)][_0x59c306(0x41e)](_0x473ff1,_0x28d74f,!0x1);if(_0x3d5424(_0x529f9a))throw _0x529f9a[_0x59c306(0x2e5)];_0x473ff1=_0x529f9a[_0x59c306(0x297)];}return{..._0x4466a1[_0x59c306(0x2bc)](_0x45f438),'mutations':[_0x473ff1]};}[_0x23037e(0x1fc)](_0x335a92){const _0x3a0369=_0x23037e,{unitID:_0x67964}=_0x335a92,_0x5ef075=this[_0x3a0369(0x257)][_0x3a0369(0x3b1)](_0x67964)[_0x3a0369(0x3bf)](_0x1b1e78),{undoCache:_0x1cfe84,redoCache:_0x48a534}=_0x5ef075[_0x3a0369(0x323)]();if(_0x1cfe84[_0x3a0369(0x285)]===0x0||_0x48a534[_0x3a0369(0x285)]===0x0)return;const _0x4c4d3e=[],_0x221d3c=[];let _0x1b4cab=_0x4466a1[_0x3a0369(0x2bc)](_0x335a92[_0x3a0369(0x312)][0x0]),_0x1be332=_0x4466a1[_0x3a0369(0x2bc)](_0x335a92[_0x3a0369(0x312)][0x0]);for(let _0x3adf74=_0x1cfe84[_0x3a0369(0x285)]-0x1;_0x3adf74>=0x0;_0x3adf74--){const _0x3f6307={'id':_0x3a0369(0x34c),'params':{..._0x1cfe84[_0x3adf74]}},_0x51b29b={'id':_0x3a0369(0x34c),'params':{..._0x48a534[_0x3adf74]}},_0x3db805=this['_transformService'][_0x3a0369(0x41e)](_0x1b4cab,_0x3f6307,!0x1),_0x5ef8f5=this[_0x3a0369(0x237)][_0x3a0369(0x41e)](_0x1be332,_0x51b29b,!0x1);if(_0x3d5424(_0x3db805))throw _0x3db805['error'];if(_0x3d5424(_0x5ef8f5))throw _0x5ef8f5['error'];_0x4c4d3e[_0x3a0369(0x306)](_0x3db805[_0x3a0369(0x329)][_0x3a0369(0x3dd)]),_0x221d3c['unshift'](_0x5ef8f5['m2Prime']['params']),_0x1b4cab=_0x3db805[_0x3a0369(0x297)],_0x1be332=_0x5ef8f5[_0x3a0369(0x297)];}_0x5ef075[_0x3a0369(0x38b)]({'undoCache':_0x4c4d3e,'redoCache':_0x221d3c});}[_0x23037e(0x24d)](_0xba5ad1){const _0x2bd5e0=_0x23037e,{unitID:_0x4eff07}=_0xba5ad1,_0x53758c=this['_renderManagerService'][_0x2bd5e0(0x3b1)](_0x4eff07)[_0x2bd5e0(0x3bf)](_0x1b1e78),_0x4eb7c7=_0x53758c[_0x2bd5e0(0x27d)]();if(_0x4eb7c7==null)return;const _0x2e2be5=[{'id':_0x2bd5e0(0x34c),'params':{'unitId':_0xba5ad1['unitID'],'actions':null,'textRanges':[_0x4eb7c7]}}],_0x3debef=this['_transformService']['transformMutationsWithChangeset'](_0xba5ad1,_0x2e2be5);if(!_0x181dca(_0x3debef))throw _0x3debef[_0x2bd5e0(0x2e5)];const _0x121c61=_0x3debef[_0x2bd5e0(0x329)][0x0][_0x2bd5e0(0x3dd)][_0x2bd5e0(0x21b)];Array[_0x2bd5e0(0x2b0)](_0x121c61)&&_0x121c61['length']&&_0x53758c[_0x2bd5e0(0x35d)](_0x121c61[0x0]);}};_e=_n([ot(0x0,_0x459e0f),ot(0x1,_0x3947d8)],_e);var ln=Object[_0x23037e(0x2c0)],hn=(_0x4fabc2,_0x16c137,_0x5cd2d3,_0x3e148a)=>{for(var _0x471c96=_0x3e148a>0x1?void 0x0:_0x3e148a?ln(_0x16c137,_0x5cd2d3):_0x16c137,_0x22a572=_0x4fabc2['length']-0x1,_0x3f0e36;_0x22a572>=0x0;_0x22a572--)(_0x3f0e36=_0x4fabc2[_0x22a572])&&(_0x471c96=_0x3f0e36(_0x471c96)||_0x471c96);return _0x471c96;},Re=(_0x50470e,_0x248436)=>(_0x33d5d0,_0x24d630)=>_0x248436(_0x33d5d0,_0x24d630,_0x50470e);let le=class{constructor(_0x49689b,_0x17ffc8,_0x54bf51){const _0x3e3283=_0x23037e;this[_0x3e3283(0x1f8)]=_0x49689b,this[_0x3e3283(0x237)]=_0x17ffc8,this[_0x3e3283(0x3db)]=_0x54bf51;}[_0x23037e(0x2fa)](_0x13de27){this['_transformHistoryAndStateStack'](_0x13de27);}[_0x23037e(0x3bd)](_0x127780){const _0x372a4c=_0x23037e,{unitID:_0xedf17c}=_0x127780,{collaboration:_0x53bcf8}=this['_docStateChangeManagerService'][_0x372a4c(0x3cc)](_0xedf17c);if(_0x53bcf8[_0x372a4c(0x285)]===0x0)return _0x127780;let _0x31006e=_0x4466a1['deepClone'](_0x127780['mutations'][0x0]);for(let _0x3166f9=0x0;_0x3166f9<_0x53bcf8[_0x372a4c(0x285)];_0x3166f9++){const _0x550b53={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53bcf8[_0x3166f9]['unitId'],..._0x53bcf8[_0x3166f9][_0x372a4c(0x339)]}},_0x1cc3f3=this[_0x372a4c(0x237)]['transformMutation'](_0x31006e,_0x550b53,!0x1);if(_0x3d5424(_0x1cc3f3))throw _0x1cc3f3[_0x372a4c(0x2e5)];_0x31006e=_0x1cc3f3['m1Prime'];}return{..._0x4466a1[_0x372a4c(0x2bc)](_0x127780),'mutations':[_0x31006e]};}[_0x23037e(0x3f2)](_0x37f771){const _0x270839=_0x23037e,{unitID:_0x3a78f9}=_0x37f771,{history:_0x562801,collaboration:_0x3bce0d}=this[_0x270839(0x3db)][_0x270839(0x3cc)](_0x3a78f9);if(_0x562801['length']===0x0&&_0x3bce0d[_0x270839(0x285)]===0x0)return;const _0x45d780=[],_0x4e1708=[];let _0x28eb58=_0x4466a1['deepClone'](_0x37f771['mutations'][0x0]),_0x44b320=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]);for(let _0x3e8701=_0x562801[_0x270839(0x285)]-0x1;_0x3e8701>=0x0;_0x3e8701--){const _0x38dc47={'id':_0x270839(0x34c),'params':{'unitId':_0x562801[_0x3e8701][_0x270839(0x26b)],..._0x562801[_0x3e8701][_0x270839(0x361)]}},_0x5e4d17={'id':_0x270839(0x34c),'params':{'unitId':_0x562801[_0x3e8701][_0x270839(0x26b)],..._0x562801[_0x3e8701][_0x270839(0x339)]}},_0x1b74b8=this[_0x270839(0x237)][_0x270839(0x41e)](_0x28eb58,_0x38dc47,!0x1),_0x2b0e84=this[_0x270839(0x237)][_0x270839(0x41e)](_0x44b320,_0x5e4d17,!0x1);if(_0x3d5424(_0x1b74b8))throw _0x1b74b8[_0x270839(0x2e5)];if(_0x3d5424(_0x2b0e84))throw _0x2b0e84[_0x270839(0x2e5)];_0x45d780[_0x270839(0x306)]({..._0x562801[_0x3e8701],'undoState':_0x1b74b8[_0x270839(0x329)][_0x270839(0x3dd)],'redoState':_0x2b0e84[_0x270839(0x329)][_0x270839(0x3dd)]}),_0x28eb58=_0x1b74b8[_0x270839(0x297)],_0x44b320=_0x2b0e84[_0x270839(0x297)];}_0x28eb58=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]),_0x44b320=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]);for(let _0x14962c=_0x3bce0d['length']-0x1;_0x14962c>=0x0;_0x14962c--){const _0x18a62e={'id':_0x270839(0x34c),'params':{'unitId':_0x3bce0d[_0x14962c][_0x270839(0x26b)],..._0x3bce0d[_0x14962c][_0x270839(0x361)]}},_0x10853b={'id':_0x270839(0x34c),'params':{'unitId':_0x3bce0d[_0x14962c][_0x270839(0x26b)],..._0x3bce0d[_0x14962c][_0x270839(0x339)]}},_0x5928f0=this[_0x270839(0x237)][_0x270839(0x41e)](_0x28eb58,_0x18a62e,!0x1),_0x4547a0=this[_0x270839(0x237)][_0x270839(0x41e)](_0x44b320,_0x10853b,!0x1);if(_0x3d5424(_0x5928f0))throw _0x5928f0[_0x270839(0x2e5)];if(_0x3d5424(_0x4547a0))throw _0x4547a0['error'];_0x4e1708['unshift']({..._0x3bce0d[_0x14962c],'undoState':_0x5928f0[_0x270839(0x329)][_0x270839(0x3dd)],'redoState':_0x4547a0[_0x270839(0x329)][_0x270839(0x3dd)]}),_0x28eb58=_0x5928f0[_0x270839(0x297)],_0x44b320=_0x4547a0[_0x270839(0x297)];}this[_0x270839(0x3db)][_0x270839(0x2f1)](_0x3a78f9,{'history':_0x45d780,'collaboration':_0x4e1708});}};le=hn([Re(0x0,_0x57b7af(_0xc05c74)),Re(0x1,_0x459e0f),Re(0x2,_0x57b7af(_0x273172))],le);var un=Object[_0x23037e(0x2c0)],dn=(_0xa06d4d,_0x4e036e,_0x48a8a6,_0x5575d1)=>{const _0x1a2407=_0x23037e;for(var _0x595762=_0x5575d1>0x1?void 0x0:_0x5575d1?un(_0x4e036e,_0x48a8a6):_0x4e036e,_0x40c207=_0xa06d4d[_0x1a2407(0x285)]-0x1,_0x3e8181;_0x40c207>=0x0;_0x40c207--)(_0x3e8181=_0xa06d4d[_0x40c207])&&(_0x595762=_0x3e8181(_0x595762)||_0x595762);return _0x595762;},at=(_0x2e41d4,_0x50f324)=>(_0x6dc07e,_0x637e1e)=>_0x50f324(_0x6dc07e,_0x637e1e,_0x2e41d4);let he=class{constructor(_0x35997c,_0x3e66ba){const _0xd7624e=_0x23037e;this['_injector']=_0x35997c,this[_0xd7624e(0x237)]=_0x3e66ba;}[_0x23037e(0x39c)](_0x361cc7){const _0x2f6e17=_0x23037e;var _0x4811c6;const _0x5ee2f1=this[_0x2f6e17(0x1f8)][_0x2f6e17(0x2d3)](_0x4b96b6),_0x1a8bd6=(_0x4811c6=_0x5ee2f1[_0x2f6e17(0x1f5)]())!=null?_0x4811c6:[];if(_0x1a8bd6[_0x2f6e17(0x285)]===0x0)return;const _0x4b0aab=_0x361cc7['unitID'],_0x4c8132=[{'id':_0x2f6e17(0x34c),'params':{'unitId':_0x4b0aab,'actions':null,'textRanges':_0x1a8bd6}}],_0x501fe4=this[_0x2f6e17(0x237)]['transformMutationsWithChangeset'](_0x361cc7,_0x4c8132);if(!_0x181dca(_0x501fe4))throw _0x501fe4[_0x2f6e17(0x2e5)];const _0x39ff59=_0x501fe4[_0x2f6e17(0x329)][0x0][_0x2f6e17(0x3dd)][_0x2f6e17(0x21b)];Array[_0x2f6e17(0x2b0)](_0x39ff59)&&_0x39ff59[_0x2f6e17(0x285)]&&_0x5ee2f1[_0x2f6e17(0x258)](_0x39ff59,{'unitId':_0x4b0aab,'subUnitId':_0x4b0aab},!0x1);}};he=dn([at(0x0,_0x57b7af(_0xc05c74)),at(0x1,_0x459e0f)],he);var Sn=Object[_0x23037e(0x2c0)],In=(_0xa47c3b,_0x42b508,_0x3e2b87,_0x8024e4)=>{const _0x41f945=_0x23037e;for(var _0x4aa7cf=_0x8024e4>0x1?void 0x0:_0x8024e4?Sn(_0x42b508,_0x3e2b87):_0x42b508,_0x53ef59=_0xa47c3b[_0x41f945(0x285)]-0x1,_0x184a68;_0x53ef59>=0x0;_0x53ef59--)(_0x184a68=_0xa47c3b[_0x53ef59])&&(_0x4aa7cf=_0x184a68(_0x4aa7cf)||_0x4aa7cf);return _0x4aa7cf;},b=(_0x977ac3,_0x1249b9)=>(_0x35a4f2,_0x147bbe)=>_0x1249b9(_0x35a4f2,_0x147bbe,_0x977ac3);let ue=class extends _0x2adf18{constructor(_0x3f0dac,_0xab955d,_0x2bbf1,_0xb6f0fb,_0x4a925a,_0x3acb75,_0x5734cc,_0xaf1509){const _0x10d5bc=_0x23037e;super(),l(this,_0x10d5bc(0x352),new _0x107cff(_0x2bd07a[_0x10d5bc(0x3f5)])),(this['_docStateChangeManagerService']=_0x3f0dac,this[_0x10d5bc(0x3c7)]=_0xab955d,this[_0x10d5bc(0x208)]=_0x2bbf1,this[_0x10d5bc(0x40d)]=_0xb6f0fb,this[_0x10d5bc(0x34f)]=_0x4a925a,this[_0x10d5bc(0x2b6)]=_0x3acb75,this['_messageService']=_0x5734cc,this['_localeService']=_0xaf1509,this[_0x10d5bc(0x2c5)]());}[_0x23037e(0x2c5)](){const _0x34bf93=_0x23037e;this['disposeWithMe'](this[_0x34bf93(0x3c7)][_0x34bf93(0x349)][_0x34bf93(0x286)](_0x4d0c20=>{const _0x523c6b=_0x34bf93,_0x25b2ff=this[_0x523c6b(0x3db)][_0x523c6b(0x348)][_0x523c6b(0x286)](_0x3dac2f=>{const _0x5e17e6=_0x523c6b;if(_0x3dac2f==null)return;const {unitId:_0x345c32,redoState:_0x1ab877,commandId:_0x30ee06}=_0x3dac2f;if(_0x345c32!==_0x4d0c20[_0x5e17e6(0x256)])return;const _0x1cf2a6={'id':_0x30ee06,'type':_0x3a1dbc[_0x5e17e6(0x333)],'params':{'unitId':_0x345c32,'actions':_0x1ab877['actions'],'textRanges':null}};_0x4d0c20[_0x5e17e6(0x231)](_0x1cf2a6);});if(_0x4d0c20['disposeWithMe'](_0x25b2ff),_0x4d0c20 instanceof _0x5abbf2){const _0x515b86={'onTransformIME':_0x4aaf85=>this[_0x523c6b(0x208)][_0x523c6b(0x2cf)](_0x4aaf85),'onTransformState':_0x249f51=>this[_0x523c6b(0x40d)]['transformStateCache'](_0x249f51),'onTransformSelections':_0x54b0ee=>this['_docTransformSelectionsService'][_0x523c6b(0x39c)](_0x54b0ee),'onSyncEditingCollabCursor':_0x448152=>this[_0x523c6b(0x2b6)][_0x523c6b(0x35c)](_0x448152),'onTransformRemoteChangesetByIMECache':_0x425d56=>this['_docTransformIMECacheService'][_0x523c6b(0x3bd)](_0x425d56),'onTransformRemoteChangesetByStateCache':_0xc4e933=>this[_0x523c6b(0x40d)][_0x523c6b(0x3bd)](_0xc4e933)};_0x4d0c20['addHandlerCallback'](_0x515b86);}}));}};ue=In([b(0x0,_0x57b7af(_0x273172)),b(0x1,_0x57b7af(_0x2c7817)),b(0x2,_0x57b7af(_e)),b(0x3,_0x57b7af(le)),b(0x4,_0x57b7af(he)),b(0x5,_0x57b7af(Xe)),b(0x6,_0x92c012),b(0x7,_0x57b7af(_0x23ab5c))],ue);var Z=(_0x2b59fd=>(_0x2b59fd[_0x2b59fd[_0x23037e(0x2bd)]=0x0]=_0x23037e(0x2bd),_0x2b59fd[_0x2b59fd['OK']=0x1]='OK',_0x2b59fd[_0x2b59fd[_0x23037e(0x3ff)]=0x2]=_0x23037e(0x3ff),_0x2b59fd[_0x2b59fd[_0x23037e(0x419)]=0x3]='PERMISSION_DENIED',_0x2b59fd[_0x2b59fd[_0x23037e(0x235)]=0x4]=_0x23037e(0x235),_0x2b59fd[_0x2b59fd['UNAUTHENTICATED']=0x5]=_0x23037e(0x2ba),_0x2b59fd[_0x2b59fd[_0x23037e(0x2da)]=0x6]='ALREADY_EXISTS',_0x2b59fd[_0x2b59fd[_0x23037e(0x354)]=0x7]='INVALID_ARGUMENT',_0x2b59fd[_0x2b59fd[_0x23037e(0x2fb)]=0x8]='TOO_MANY_REQUESTS',_0x2b59fd[_0x2b59fd[_0x23037e(0x226)]=0x9]=_0x23037e(0x226),_0x2b59fd[_0x2b59fd[_0x23037e(0x384)]=0xa]=_0x23037e(0x384),_0x2b59fd[_0x2b59fd['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x23037e(0x420),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c8)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2b59fd[_0x2b59fd['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x23037e(0x1fa),_0x2b59fd[_0x2b59fd['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x23037e(0x3b5),_0x2b59fd[_0x2b59fd[_0x23037e(0x379)]=0xf]=_0x23037e(0x379),_0x2b59fd[_0x2b59fd['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x23037e(0x287),_0x2b59fd[_0x2b59fd[_0x23037e(0x35e)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2b59fd[_0x2b59fd[_0x23037e(0x3af)]=0x65]=_0x23037e(0x3af),_0x2b59fd[_0x2b59fd['USER_NOT_FOUND']=0xc9]=_0x23037e(0x387),_0x2b59fd[_0x2b59fd[_0x23037e(0x245)]=0xca]=_0x23037e(0x245),_0x2b59fd[_0x2b59fd[_0x23037e(0x350)]=0x1389]=_0x23037e(0x350),_0x2b59fd[_0x2b59fd[_0x23037e(0x37c)]=0x1771]=_0x23037e(0x37c),_0x2b59fd[_0x2b59fd[_0x23037e(0x229)]=0x1772]=_0x23037e(0x229),_0x2b59fd[_0x2b59fd[_0x23037e(0x391)]=0x1773]=_0x23037e(0x391),_0x2b59fd[_0x2b59fd[_0x23037e(0x336)]=0x1b59]=_0x23037e(0x336),_0x2b59fd[_0x2b59fd[_0x23037e(0x281)]=0x1b5a]=_0x23037e(0x281),_0x2b59fd[_0x2b59fd[_0x23037e(0x2d7)]=0x1b5b]=_0x23037e(0x2d7),_0x2b59fd[_0x2b59fd[_0x23037e(0x2ac)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2b59fd[_0x2b59fd[_0x23037e(0x317)]=0x1b5d]=_0x23037e(0x317),_0x2b59fd[_0x2b59fd[_0x23037e(0x401)]=0x1f41]=_0x23037e(0x401),_0x2b59fd[_0x2b59fd[_0x23037e(0x2b1)]=0x2329]=_0x23037e(0x2b1),_0x2b59fd[_0x2b59fd[_0x23037e(0x29d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2b59fd[_0x2b59fd[_0x23037e(0x33b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2b59fd[_0x2b59fd[_0x23037e(0x241)]=0x232c]=_0x23037e(0x241),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c5)]=0x232d]=_0x23037e(0x3c5),_0x2b59fd[_0x2b59fd[_0x23037e(0x1fd)]=0x2711]=_0x23037e(0x1fd),_0x2b59fd[_0x2b59fd['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x23037e(0x27b),_0x2b59fd[_0x2b59fd[_0x23037e(0x32d)]=0x2713]=_0x23037e(0x32d),_0x2b59fd[_0x2b59fd[_0x23037e(0x3d7)]=0x2714]=_0x23037e(0x3d7),_0x2b59fd[_0x2b59fd['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x23037e(0x207),_0x2b59fd[_0x2b59fd[_0x23037e(0x2a8)]=0x271b]=_0x23037e(0x2a8),_0x2b59fd[_0x2b59fd[_0x23037e(0x25c)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2b59fd[_0x2b59fd[_0x23037e(0x2df)]=0x271d]=_0x23037e(0x2df),_0x2b59fd[_0x2b59fd[_0x23037e(0x3bb)]=0x271e]=_0x23037e(0x3bb),_0x2b59fd[_0x2b59fd[_0x23037e(0x23b)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x2b59fd[_0x2b59fd[_0x23037e(0x378)]=0x2720]=_0x23037e(0x378),_0x2b59fd[_0x2b59fd[_0x23037e(0x22c)]=0x2af9]=_0x23037e(0x22c),_0x2b59fd[_0x2b59fd[_0x23037e(0x3d5)]=0x2ee1]=_0x23037e(0x3d5),_0x2b59fd[_0x2b59fd['INVALID_INVITE_CODE']=0x2ee2]=_0x23037e(0x343),_0x2b59fd[_0x2b59fd[_0x23037e(0x3cf)]=0x2ee3]=_0x23037e(0x3cf),_0x2b59fd[_0x2b59fd['USER_NOT_INVITED_CODE']=0x2ee4]=_0x23037e(0x344),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c3)]=0x2ee5]=_0x23037e(0x3c3),_0x2b59fd[_0x2b59fd[_0x23037e(0x247)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2b59fd[_0x2b59fd['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x23037e(0x3c1),_0x2b59fd[_0x2b59fd['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x23037e(0x3ab),_0x2b59fd[_0x2b59fd[_0x23037e(0x2b2)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2b59fd[_0x2b59fd[_0x23037e(0x394)]=0x36b2]=_0x23037e(0x394),_0x2b59fd[_0x2b59fd[_0x23037e(0x3aa)]=0x36b3]=_0x23037e(0x3aa),_0x2b59fd[_0x2b59fd[_0x23037e(0x40c)]=0x36b4]=_0x23037e(0x40c),_0x2b59fd[_0x2b59fd['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x23037e(0x3ec),_0x2b59fd[_0x2b59fd[_0x23037e(0x321)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x2b59fd[_0x2b59fd[_0x23037e(0x338)]=0x3717]=_0x23037e(0x338),_0x2b59fd[_0x2b59fd['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x23037e(0x411),_0x2b59fd[_0x2b59fd[_0x23037e(0x330)]=0x3a99]=_0x23037e(0x330),_0x2b59fd[_0x2b59fd[_0x23037e(0x295)]=0x3a9a]=_0x23037e(0x295),_0x2b59fd[_0x2b59fd[_0x23037e(0x271)]=0x3a9b]=_0x23037e(0x271),_0x2b59fd[_0x2b59fd[_0x23037e(0x3ef)]=0x3a9c]=_0x23037e(0x3ef),_0x2b59fd[_0x2b59fd[_0x23037e(0x21d)]=0x3a9d]=_0x23037e(0x21d),_0x2b59fd[_0x2b59fd[_0x23037e(0x299)]=0x3a9e]=_0x23037e(0x299),_0x2b59fd[_0x2b59fd[_0x23037e(0x1f4)]=0x3a9f]=_0x23037e(0x1f4),_0x2b59fd[_0x2b59fd[_0x23037e(0x280)]=0x3e81]=_0x23037e(0x280),_0x2b59fd[_0x2b59fd[_0x23037e(0x22b)]=-0x1]=_0x23037e(0x22b),_0x2b59fd))(Z||{});function mn(_0x4ac1ea){const _0x57db93=_0x23037e;var _0x3328e7,_0x130b6c;const _0x259be3=(_0x3328e7=_0x4ac1ea['stageInfo'])==null?void 0x0:_0x3328e7[_0x57db93(0x3d2)],_0x4851a3=((_0x130b6c=_0x4ac1ea[_0x57db93(0x39b)])==null?void 0x0:_0x130b6c['totalFormulasToCalculate'])||0x0;return _0x259be3===_0x244207[_0x57db93(0x370)]&&_0x4851a3>0x0;}function fn(_0x5eec67){const _0x39538a=_0x23037e;return _0x5eec67[_0x39538a(0x3a0)]===_0x4e9f65['SUCCESS'];}var gn=Object[_0x23037e(0x2c0)],vn=(_0x5afaf2,_0x496900,_0x3dc954,_0x27101b)=>{const _0x4d543c=_0x23037e;for(var _0x1031e5=_0x27101b>0x1?void 0x0:_0x27101b?gn(_0x496900,_0x3dc954):_0x496900,_0x37f395=_0x5afaf2[_0x4d543c(0x285)]-0x1,_0x166411;_0x37f395>=0x0;_0x37f395--)(_0x166411=_0x5afaf2[_0x37f395])&&(_0x1031e5=_0x166411(_0x1031e5)||_0x1031e5);return _0x1031e5;},P=(_0x1681da,_0x58e50b)=>(_0x4ee7ef,_0x24278b)=>_0x58e50b(_0x4ee7ef,_0x24278b,_0x1681da);const En=_0x23037e(0x28a),pn=_0x23037e(0x332),On='/universer-api/license/formula/limit/done';let de=class extends _0x2adf18{constructor(_0x1be602,_0x49e142,_0xdb46ec,_0x319c16,_0x17409b,_0x41c90f,_0x33ab5e){const _0x2340b2=_0x23037e;super(),l(this,'_pollingInterval',null),l(this,_0x2340b2(0x2ef),0x0),l(this,_0x2340b2(0x234),0x0),l(this,_0x2340b2(0x395),[]),l(this,'_lastResponseTimestamp',0x0),(this[_0x2340b2(0x426)]=_0x1be602,this[_0x2340b2(0x2d6)]=_0x49e142,this[_0x2340b2(0x21a)]=_0xdb46ec,this[_0x2340b2(0x251)]=_0x319c16,this[_0x2340b2(0x2f9)]=_0x17409b,this[_0x2340b2(0x30e)]=_0x41c90f,this[_0x2340b2(0x259)]=_0x33ab5e,this[_0x2340b2(0x413)]());}[_0x23037e(0x413)](){const _0x5d508e=_0x23037e;this[_0x5d508e(0x2b4)](this[_0x5d508e(0x2d6)]['beforeCommandExecuted']((_0x4100ac,_0x5914c5)=>{const _0x25d900=_0x5d508e;var _0x4a5a9c;if(_0x4100ac['id']!==_0x3dc31f['id'])return;const _0x22f5d0=_0x4100ac[_0x25d900(0x3dd)];if(!this[_0x25d900(0x40f)]((_0x4a5a9c=_0x22f5d0[_0x25d900(0x3be)])!=null?_0x4a5a9c:[]))return;if(!this[_0x25d900(0x2fc)]())throw this['_checkAndWaitForCalculationPermission'](_0x4100ac,_0x5914c5),this['_showGuardMessage'](),new _0x4ec729();})),this[_0x5d508e(0x2b4)](this['_commandService']['onCommandExecuted']((_0x59306b,_0x83076b)=>{const _0x166351=_0x5d508e;if(_0x59306b['id']!==_0x3dea83['id'])return;const _0x1cc745=_0x59306b[_0x166351(0x3dd)];if(mn(_0x1cc745)){const _0x1a0786=_0x21c798();this[_0x166351(0x395)][_0x166351(0x3b6)](_0x1a0786),this[_0x166351(0x2c1)](_0x1a0786);}else{if(fn(_0x1cc745)&&this[_0x166351(0x395)]['length']>0x0){const _0x337f7d=this['_taskIds'][_0x166351(0x365)]();this[_0x166351(0x2f6)](_0x337f7d);}}}));}[_0x23037e(0x3b4)](){const _0x2cd6a6=_0x23037e;super[_0x2cd6a6(0x3b4)](),this[_0x2cd6a6(0x260)](),this[_0x2cd6a6(0x395)]=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this[_0x2cd6a6(0x325)]=0x0;}async[_0x23037e(0x2bb)](_0x2ceba5,_0x309a5a){const _0x31a192=_0x23037e;for(let _0x50ce61=0x0;_0x50ce61<0x1e;_0x50ce61++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this[_0x31a192(0x32b)](_0x2ceba5,_0x309a5a),this['_messageService'][_0x31a192(0x327)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x38ce13[_0x31a192(0x315)]});return;}await new Promise(_0x3f2a84=>{const _0x7693a9=_0x31a192;this[_0x7693a9(0x3f0)]=window[_0x7693a9(0x38a)](_0x3f2a84,0x3e8);});}catch(_0x53f8c8){this[_0x31a192(0x30e)][_0x31a192(0x2e5)](_0x53f8c8);}this[_0x31a192(0x426)][_0x31a192(0x327)]({'content':this[_0x31a192(0x259)]['t'](_0x31a192(0x385)),'type':_0x38ce13[_0x31a192(0x248)]});}['_applyCommand'](_0x3bbaf9,_0x40c357){const _0x30c85d=_0x23037e;try{this[_0x30c85d(0x2d6)]['executeCommand'](_0x3bbaf9['id'],_0x3bbaf9[_0x30c85d(0x3dd)],_0x40c357);}catch(_0xe94ba4){this[_0x30c85d(0x30e)][_0x30c85d(0x2e5)](_0xe94ba4);}}[_0x23037e(0x25b)](_0x5ba650,_0x199cee){const _0x1783f9=_0x23037e;_0x199cee<this[_0x1783f9(0x325)]||(this[_0x1783f9(0x325)]=_0x199cee,this[_0x1783f9(0x2ef)]=Number[_0x1783f9(0x3b3)](_0x5ba650[_0x1783f9(0x236)]),this['_currentUsage']=Number[_0x1783f9(0x3b3)](_0x5ba650['currentUsage']));}async[_0x23037e(0x2c1)](_0x464a7c){const _0x29f3b8=_0x23037e;var _0x4e1136,_0x4a68a9;const _0xbfdd3c=Date['now']();try{const _0x5769b4=((_0x4e1136=this[_0x29f3b8(0x21a)]['getConfig'](_0x3c4393))==null?void 0x0:_0x4e1136['startFormulaLimitUrl'])||pn,_0x30ee38=(await this[_0x29f3b8(0x251)]['post'](_0x5769b4,{'body':JSON[_0x29f3b8(0x252)]({'taskId':_0x464a7c})}))[_0x29f3b8(0x319)];if(((_0x4a68a9=_0x30ee38[_0x29f3b8(0x2e5)])==null?void 0x0:_0x4a68a9['code'])!==Z['OK'])return;this[_0x29f3b8(0x25b)](_0x30ee38[_0x29f3b8(0x209)],_0xbfdd3c);}catch(_0x1814a4){this[_0x29f3b8(0x30e)]['error'](_0x1814a4);}}async[_0x23037e(0x403)](_0x26e4d1){const _0xdee322=_0x23037e;var _0x42a8a4,_0xf54146;const _0x5ec3f1=Date['now']();try{const _0x18fa81=((_0x42a8a4=this['_configService'][_0xdee322(0x3fe)](_0x3c4393))==null?void 0x0:_0x42a8a4['getformulaLimitStatusUrl'])||En,_0x4c001e=_0x26e4d1?_0x18fa81+'?taskId='+encodeURIComponent(_0x26e4d1):_0x18fa81,_0x5ed6bb=(await this['_httpService']['get'](_0x4c001e))['body'];if(((_0xf54146=_0x5ed6bb[_0xdee322(0x2e5)])==null?void 0x0:_0xf54146[_0xdee322(0x2de)])!==Z['OK'])return;this[_0xdee322(0x25b)](_0x5ed6bb[_0xdee322(0x209)],_0x5ec3f1);}catch(_0x3bdb1f){this[_0xdee322(0x30e)][_0xdee322(0x2e5)](_0x3bdb1f);}}async[_0x23037e(0x2f6)](_0x4a0958){const _0x460da3=_0x23037e;var _0x4dfd9a,_0x4c01fa;const _0x96fec7=Date[_0x460da3(0x244)]();try{const _0x26c0be=((_0x4dfd9a=this['_configService'][_0x460da3(0x3fe)](_0x3c4393))==null?void 0x0:_0x4dfd9a[_0x460da3(0x27f)])||On,_0x25b20d=(await this[_0x460da3(0x251)]['post'](_0x26c0be,{'body':JSON[_0x460da3(0x252)]({'taskId':_0x4a0958})}))['body'];if(((_0x4c01fa=_0x25b20d[_0x460da3(0x2e5)])==null?void 0x0:_0x4c01fa[_0x460da3(0x2de)])!==Z['OK'])return;this[_0x460da3(0x25b)](_0x25b20d[_0x460da3(0x209)],_0x96fec7);}catch(_0x5b4988){this[_0x460da3(0x30e)][_0x460da3(0x2e5)](_0x5b4988);}}[_0x23037e(0x2fc)](){const _0x4f1f15=_0x23037e;return this[_0x4f1f15(0x2ef)]===0x0?!0x0:this[_0x4f1f15(0x2ef)]-this['_currentUsage']>0x0;}[_0x23037e(0x260)](){const _0x1d3c47=_0x23037e;this[_0x1d3c47(0x3f0)]&&(clearTimeout(this[_0x1d3c47(0x3f0)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x40f06c=_0x23037e;this['_messageService'][_0x40f06c(0x327)]({'content':this[_0x40f06c(0x259)]['t'](_0x40f06c(0x326)),'type':_0x38ce13[_0x40f06c(0x3cd)]});}[_0x23037e(0x40f)](_0xaf9782){const _0x20969f=_0x23037e;for(const _0x56ec22 of _0xaf9782){const {unitId:_0x52fa6e,sheetId:_0x45879d,range:_0x45e3d5}=_0x56ec22,_0x5ee476=this[_0x20969f(0x2f9)][_0x20969f(0x2c4)](_0x52fa6e);if(!_0x5ee476)continue;const _0x99cf30=_0x5ee476[_0x20969f(0x302)](_0x45879d);if(!_0x99cf30)continue;const _0x102110=_0x99cf30['getCellMatrix']();for(let _0xbe384d=_0x45e3d5[_0x20969f(0x36f)];_0xbe384d<=_0x45e3d5['endRow'];_0xbe384d++)for(let _0x55e1a2=_0x45e3d5['startColumn'];_0x55e1a2<=_0x45e3d5[_0x20969f(0x20c)];_0x55e1a2++){const _0x543f52=_0x102110['getValue'](_0xbe384d,_0x55e1a2);if(_0x543f52&&(_0x2ecb79(_0x543f52['f'])||_0x472e4c(_0x543f52['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x57b7af(_0x92c012)),P(0x1,_0x409061),P(0x2,_0x2905aa),P(0x3,_0x57b7af(_0x46f386)),P(0x4,_0x2c6926),P(0x5,_0x285ace),P(0x6,_0x57b7af(_0x23ab5c))],de);var Tn=Object[_0x23037e(0x2c0)],Cn=(_0xb24e9e,_0x4cb200,_0x82e837,_0x59727f)=>{const _0x2a8208=_0x23037e;for(var _0x5cbe84=_0x59727f>0x1?void 0x0:_0x59727f?Tn(_0x4cb200,_0x82e837):_0x4cb200,_0x5f543e=_0xb24e9e[_0x2a8208(0x285)]-0x1,_0x1e5556;_0x5f543e>=0x0;_0x5f543e--)(_0x1e5556=_0xb24e9e[_0x5f543e])&&(_0x5cbe84=_0x1e5556(_0x5cbe84)||_0x5cbe84);return _0x5cbe84;},De=(_0x488830,_0x1ae28b)=>(_0x33e405,_0x1cdef4)=>_0x1ae28b(_0x33e405,_0x1cdef4,_0x488830);let xe=class extends _0x2adf18{constructor(_0x4f3f8d,_0x8fca8e,_0x56269e){const _0x3a00d8=_0x23037e;super(),l(this,_0x3a00d8(0x23f),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x3a00d8(0x262),!0x1),(this[_0x3a00d8(0x21a)]=_0x4f3f8d,this[_0x3a00d8(0x29f)]=_0x8fca8e,this[_0x3a00d8(0x2d9)]=_0x56269e);}['disableLocalCache'](){const _0x478f9f=_0x23037e;this[_0x478f9f(0x262)]=!0x0;}[_0x23037e(0x2c8)](){const _0x1a5525=_0x23037e;this[_0x1a5525(0x262)]=!0x1;}get[_0x23037e(0x347)](){return this['_saveTaskMap'];}[_0x23037e(0x3b4)](){const _0xc5d085=_0x23037e;this['exhaustSavingTask']()[_0xc5d085(0x36c)](()=>super[_0xc5d085(0x3b4)]());}async[_0x23037e(0x1fb)](_0x5e789d){const _0x266150=_0x23037e;return this['_disabled']?null:this[_0x266150(0x29f)][_0x266150(0x3e3)](_0x4d52ef(_0x5e789d));}async['saveOfflineData'](_0x125ee2,_0x4c5df9){const _0x1b9dde=_0x23037e;return!!this[_0x1b9dde(0x29f)][_0x1b9dde(0x39d)](_0x125ee2,_0x4c5df9);}[_0x23037e(0x359)](_0x88a17e,_0x197692,_0x43a559,_0x349e84){const _0x265c2f=_0x23037e,_0x515130=this[_0x265c2f(0x2d9)][_0x265c2f(0x341)](_0x88a17e);this['_cachedData'][_0x265c2f(0x2a0)](_0x88a17e,{'unitID':_0x88a17e,'type':_0x197692,'awaitingChangeset':_0x43a559,'mutations':_0x349e84,'rev':_0x515130}),this['_saveTaskMap'][_0x265c2f(0x239)](_0x88a17e)||this[_0x265c2f(0x369)](_0x88a17e);}['_scheduleSaving'](_0x2cd33f){const _0x5e907f=_0x23037e,_0x38c8fd=this[_0x5e907f(0x36a)]();_0x38c8fd===0x0?this[_0x5e907f(0x366)](_0x2cd33f):this[_0x5e907f(0x25e)][_0x5e907f(0x2a0)](_0x2cd33f,setTimeout(()=>this[_0x5e907f(0x366)](_0x2cd33f),_0x38c8fd));}[_0x23037e(0x36a)](){const _0x5c45c1=_0x23037e;var _0x4e8e0b;return(_0x4e8e0b=this[_0x5c45c1(0x21a)][_0x5c45c1(0x3fe)](_0x18f2e4))!=null?_0x4e8e0b:_0x94812e;}['_saveCache'](_0x1f9a8f){const _0x3df74f=_0x23037e,_0x2d4862=this[_0x3df74f(0x25e)]['get'](_0x1f9a8f);return _0x2d4862!==void 0x0&&window[_0x3df74f(0x36d)](_0x2d4862),this['_localStorageService']['setItem'](_0x4d52ef(_0x1f9a8f),this[_0x3df74f(0x23f)][_0x3df74f(0x2d3)](_0x1f9a8f))[_0x3df74f(0x36c)](()=>this[_0x3df74f(0x25e)]['delete'](_0x1f9a8f));}async[_0x23037e(0x290)](){const _0x573882=_0x23037e,_0x3d9133=[];this[_0x573882(0x25e)][_0x573882(0x342)]((_0x456827,_0x2e66e0)=>{const _0x31ed9d=_0x573882;window[_0x31ed9d(0x36d)](_0x456827),_0x3d9133['push'](this[_0x31ed9d(0x366)](_0x2e66e0)[_0x31ed9d(0x36c)](()=>{const _0x9e4a28=_0x31ed9d;this[_0x9e4a28(0x25e)][_0x9e4a28(0x33a)](_0x2e66e0);}));}),await Promise[_0x573882(0x1f7)](_0x3d9133);}};xe=Cn([De(0x0,_0x2905aa),De(0x1,_0x4a8848),De(0x2,_0x57b7af(_0xfc506e))],xe);class Rn extends _0x1d3622{constructor(){const _0x46fb87=_0x23037e;super(),l(this,_0x46fb87(0x2b8)),this['urlChange$']=_0x3ac611(window,_0x46fb87(0x265))[_0x46fb87(0x277)](_0x1f8529(this[_0x46fb87(0x388)]),_0x109633(0x1),_0x51cdb0(void 0x0));}[_0x23037e(0x41c)](_0x3eeef1,_0x36f4e4,_0x3d7aba=!0x1){const _0x5a6fb7=_0x23037e,_0x4bca6a=new URL(window[_0x5a6fb7(0x227)][_0x5a6fb7(0x2a4)]);_0x4bca6a[_0x5a6fb7(0x3d4)][_0x5a6fb7(0x2a0)](_0x3eeef1,_0x36f4e4),_0x3d7aba?window[_0x5a6fb7(0x26a)][_0x5a6fb7(0x203)]('','',_0x4bca6a[_0x5a6fb7(0x41f)]()):window[_0x5a6fb7(0x26a)][_0x5a6fb7(0x2d0)]('','',_0x4bca6a[_0x5a6fb7(0x41f)]());}[_0x23037e(0x2e2)](_0x57ff75,_0x4eab00=!0x1){const _0x223f57=_0x23037e,_0x378247=new URL(window[_0x223f57(0x227)][_0x223f57(0x2a4)]);_0x378247[_0x223f57(0x3d4)][_0x223f57(0x33a)](_0x57ff75),_0x4eab00?window[_0x223f57(0x26a)][_0x223f57(0x203)]('','',_0x378247['toString']()):window[_0x223f57(0x26a)][_0x223f57(0x2d0)]('','',_0x378247['toString']());}[_0x23037e(0x34e)](_0x158541){const _0x5dd14f=_0x23037e;var _0x5163d9;return(_0x5163d9=new URL(window[_0x5dd14f(0x227)][_0x5dd14f(0x2a4)])[_0x5dd14f(0x3d4)]['get'](_0x158541))!=null?_0x5163d9:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object[_0x23037e(0x2c0)],bn=(_0x559800,_0x496213,_0x19b075)=>_0x496213 in _0x559800?Dn(_0x559800,_0x496213,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19b075}):_0x559800[_0x496213]=_0x19b075,Un=(_0x1b2fd9,_0x3bfc81,_0x1b30dc,_0x4d6db4)=>{const _0x447f62=_0x23037e;for(var _0x1136c9=_0x4d6db4>0x1?void 0x0:_0x4d6db4?Nn(_0x3bfc81,_0x1b30dc):_0x3bfc81,_0x2ce709=_0x1b2fd9[_0x447f62(0x285)]-0x1,_0x310b22;_0x2ce709>=0x0;_0x2ce709--)(_0x310b22=_0x1b2fd9[_0x2ce709])&&(_0x1136c9=_0x310b22(_0x1136c9)||_0x1136c9);return _0x1136c9;},Ne=(_0x51a1fb,_0x277fb9)=>(_0x50855c,_0x53cf5c)=>_0x277fb9(_0x50855c,_0x53cf5c,_0x51a1fb),Ln=(_0x4ba32f,_0x3f8c90,_0x37ba43)=>bn(_0x4ba32f,_0x3f8c90+'',_0x37ba43);const Mn=_0x23037e(0x282);let Be=class extends _0x59b96e{constructor(_0x4614a2=rt,_0x28b153,_0x326285,_0x3d5b7f){const _0x310391=_0x23037e;super(),this['_config']=_0x4614a2,this[_0x310391(0x257)]=_0x28b153,this[_0x310391(0x1f8)]=_0x326285,this[_0x310391(0x21a)]=_0x3d5b7f;const {..._0x2bdda0}=_0x4d1f57({},rt,this['_config']);this[_0x310391(0x21a)][_0x310391(0x20e)](an,_0x2bdda0);}[_0x23037e(0x3bc)](){const _0x1abf53=_0x23037e;this[_0x1abf53(0x2e0)](),this[_0x1abf53(0x3fa)]();}[_0x23037e(0x26f)](){const _0x582ea9=_0x23037e;this[_0x582ea9(0x410)]();}['_registerDependencies'](){const _0x4d486f=_0x23037e;var _0x58ba2d;const _0x29956a=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x44de3e,{'useClass':_0x17c854}],[_0x2c165a,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x50ee13(this[_0x4d486f(0x1f8)],_0x3bff89(_0x29956a,(_0x58ba2d=this[_0x4d486f(0x364)])==null?void 0x0:_0x58ba2d[_0x4d486f(0x368)]));}['_registerRenderDependencies'](){const _0x59dac7=_0x23037e;this['disposeWithMe'](this[_0x59dac7(0x257)][_0x59dac7(0x31a)](_0x175e13['UNIVER_DOC'],[ye])),this[_0x59dac7(0x2b4)](this[_0x59dac7(0x257)][_0x59dac7(0x31a)](_0x175e13['UNIVER_SHEET'],[$e]));}[_0x23037e(0x3fa)](){const _0x2f2ff9=_0x23037e;_0x356ea1(this[_0x2f2ff9(0x1f8)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,'pluginName',Mn),Be=Un([_0x175337(_0x413558),Ne(0x1,_0x3947d8),Ne(0x2,_0x57b7af(_0xc05c74)),Ne(0x3,_0x2905aa)],Be);var An=Object['getOwnPropertyDescriptor'],Pn=(_0x57d353,_0x5f2ed7,_0xfb1be1,_0x3a7fd8)=>{const _0x5c695e=_0x23037e;for(var _0x42aab1=_0x3a7fd8>0x1?void 0x0:_0x3a7fd8?An(_0x5f2ed7,_0xfb1be1):_0x5f2ed7,_0x308123=_0x57d353[_0x5c695e(0x285)]-0x1,_0x438775;_0x308123>=0x0;_0x308123--)(_0x438775=_0x57d353[_0x308123])&&(_0x42aab1=_0x438775(_0x42aab1)||_0x42aab1);return _0x42aab1;},J=(_0x145afc,_0xd30d33)=>(_0xfca6d5,_0x1b831c)=>_0xd30d33(_0xfca6d5,_0x1b831c,_0x145afc);let ct=class extends _0x21196e{constructor(_0x102fd7,_0x1a3530,_0x470453,_0x4db420,_0x23f6c8){super(_0x102fd7,_0x1a3530,_0x470453,_0x4db420,_0x23f6c8);}async['createSocket'](_0x1b99d6){const _0x5b8c5d=_0x23037e,_0x4592a4=await this[_0x5b8c5d(0x415)](),_0x38923d=this[_0x5b8c5d(0x360)](_0x1b99d6,_0x4592a4);return this[_0x5b8c5d(0x3d0)](_0x38923d);}[_0x23037e(0x360)](_0x5d4ad1,_0x43b542){const _0x617ae7=_0x23037e,_0x120c00=typeof window>'u'?new URL(_0x5d4ad1):new URL(_0x5d4ad1,window[_0x617ae7(0x227)]['origin']);_0x120c00['searchParams'][_0x617ae7(0x2a0)](_0x617ae7(0x404),_0x43b542);const _0x4f0881=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x617ae7(0x227)][_0x617ae7(0x382)]);return _0x4f0881['get'](_0x617ae7(0x26d))&&_0x120c00[_0x617ae7(0x3d4)]['set'](_0x617ae7(0x26d),_0x4f0881[_0x617ae7(0x2d3)](_0x617ae7(0x26d))),_0x120c00['toString']();}async[_0x23037e(0x415)](){const _0x4d1a6b=_0x23037e;var _0x4163df,_0x2d89bc,_0x325291;const _0x49045f=this[_0x4d1a6b(0x21a)]['getConfig'](_0x3c4393),_0x5d0607=(_0x4163df=_0x49045f==null?void 0x0:_0x49045f[_0x4d1a6b(0x37b)])!=null?_0x4163df:_0x4b56ec;return(_0x325291=(_0x2d89bc=(await this[_0x4d1a6b(0x251)][_0x4d1a6b(0x2d3)](_0x5d0607,{'headers':{'Content-Type':_0x4d1a6b(0x32c)}}))['body'])==null?void 0x0:_0x2d89bc[_0x4d1a6b(0x238)])!=null?_0x325291:'';}};ct=Pn([J(0x0,_0x57b7af(_0xc05c74)),J(0x1,_0x57b7af(_0x46f386)),J(0x2,_0x2905aa),J(0x3,_0x285ace),J(0x4,_0xe935bb)],ct);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x43d674,_0x373136,_0x1a43ec,_0x3a4ed8)=>{const _0x1b2c8b=_0x23037e;for(var _0x4b8f50=_0x3a4ed8>0x1?void 0x0:_0x3a4ed8?wn(_0x373136,_0x1a43ec):_0x373136,_0x1a0a09=_0x43d674[_0x1b2c8b(0x285)]-0x1,_0x28860b;_0x1a0a09>=0x0;_0x1a0a09--)(_0x28860b=_0x43d674[_0x1a0a09])&&(_0x4b8f50=_0x28860b(_0x4b8f50)||_0x4b8f50);return _0x4b8f50;},be=(_0x38a4f6,_0x70185c)=>(_0x45d6b0,_0x5d860b)=>_0x70185c(_0x45d6b0,_0x5d860b,_0x38a4f6);let _t=class extends _0x2adf18{constructor(_0x522d2d,_0x4f7220,_0x4fa328){const _0x31a2a9=_0x23037e;super(),this[_0x31a2a9(0x1fe)]=_0x522d2d,this[_0x31a2a9(0x251)]=_0x4f7220,this['_configService']=_0x4fa328;}async[_0x23037e(0x3e7)](_0x5f260b,_0x354559,_0x1bf098,..._0x54bfcd){const _0xded7ec=_0x23037e;var _0x1bc11a,_0x4aad0f,_0xbc20fe,_0xce7c7b;const _0x65dcc6=this[_0xded7ec(0x1fe)]['getFocusedUnit']();if(!_0x65dcc6)throw new Error(_0xded7ec(0x2f3));const _0x3c3c5d=((_0x1bc11a=this[_0xded7ec(0x21a)][_0xded7ec(0x3fe)](_0x9fc019))!=null?_0x1bc11a:_0x494cec)+'/'+_0x5f260b+_0xded7ec(0x289)+_0x354559,_0x137f2b=new URL(window[_0xded7ec(0x227)]['href']),_0x1e9bd0={'scriptId':_0x5f260b,'runId':(_0x4aad0f=_0x137f2b[_0xded7ec(0x3d4)][_0xded7ec(0x2d3)](_0xded7ec(0x26d)))!=null?_0x4aad0f:'','function':_0x354559,'unitId':_0x65dcc6[_0xded7ec(0x23c)](),'argsOfFunction':JSON[_0xded7ec(0x252)](_0x54bfcd),'invokeId':(_0xbc20fe=_0x1bf098[_0xded7ec(0x405)])!=null?_0xbc20fe:'','executionId':(_0xce7c7b=_0x1bf098['executionId'])!=null?_0xce7c7b:''};try{const _0x322f75=await this[_0xded7ec(0x251)]['post'](_0x3c3c5d,{'body':_0x1e9bd0});return _0x322f75[_0xded7ec(0x319)][_0xded7ec(0x2e5)]&&_0x322f75['body'][_0xded7ec(0x2e5)][_0xded7ec(0x2de)]!==Z['OK']?'Failed':_0x322f75[_0xded7ec(0x319)][_0xded7ec(0x24e)];}catch{return _0xded7ec(0x3a1);}}};_t=yn([be(0x0,_0x2c6926),be(0x1,_0x57b7af(_0x46f386)),be(0x2,_0x2905aa)],_t);const lt=0x7530,ht=_0x23037e(0x34d);class tr extends _0x2adf18{constructor(){const _0xb06031=_0x23037e;super(),l(this,_0xb06031(0x2ca),_0x21c798()),l(this,_0xb06031(0x28f),new Set()),l(this,'_unitOnClients',new Map()),l(this,'_heartbeatTimer',null),l(this,_0xb06031(0x2fe),new Map()),l(this,'_unitStatus',new Map()),this[_0xb06031(0x2f5)]();}['dispose'](){const _0x2adc81=_0x23037e;super[_0x2adc81(0x3b4)](),this[_0x2adc81(0x2fe)][_0x2adc81(0x342)]((_0x50cd99,_0x37727c)=>this[_0x2adc81(0x389)](_0x37727c)),this[_0x2adc81(0x334)]&&window[_0x2adc81(0x2ea)](this[_0x2adc81(0x334)]);}[_0x23037e(0x3d9)](_0x418c35){const _0x4897ea=_0x23037e;return this[_0x4897ea(0x2c6)](_0x418c35)[_0x4897ea(0x277)](_0x4a17c6());}['editingUnit'](_0x521bb4){const _0x3e84c7=_0x23037e;this[_0x3e84c7(0x28f)][_0x3e84c7(0x3f1)]===0x0&&this[_0x3e84c7(0x39a)](),this[_0x3e84c7(0x28f)]['add'](_0x521bb4),this[_0x3e84c7(0x27a)]({'type':0x0,'memberID':this[_0x3e84c7(0x2ca)],'unitIDs':[_0x521bb4],'isForwarded':!0x1});}[_0x23037e(0x212)](_0x3d3b79){const _0x1ab733=_0x23037e;this[_0x1ab733(0x28f)]['delete'](_0x3d3b79),this['_selfUnitIDs'][_0x1ab733(0x3f1)]===0x0&&this['_heartbeatTimer']&&window[_0x1ab733(0x2ea)](this[_0x1ab733(0x334)]);}['_init'](){const _0xbd1757=_0x23037e;this[_0xbd1757(0x2b4)](_0x586ed0(_0x3ac611(window,_0xbd1757(0x34b))['subscribe'](_0x158f45=>{const _0x2d4963=_0xbd1757;if(_0x158f45[_0x2d4963(0x2c7)]!==ht||!_0x158f45[_0x2d4963(0x390)])return;const _0x107221=JSON['parse'](_0x158f45[_0x2d4963(0x390)]);this['_handleEvent'](_0x107221);}))),window[_0xbd1757(0x3e6)](_0xbd1757(0x2ed),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xbd1757(0x406)](this['_selfUnitIDs'])}));}[_0x23037e(0x2a3)](_0x2a6fc3){const _0x2d3bba=_0x23037e;switch(_0x2a6fc3[_0x2d3bba(0x228)]){case 0x0:this[_0x2d3bba(0x216)](_0x2a6fc3);break;case 0x1:this[_0x2d3bba(0x243)](_0x2a6fc3);break;case 0x2:this[_0x2d3bba(0x220)](_0x2a6fc3);break;}}['_handleJoinEvent'](_0x4f9c34){const _0x1dd9e9=_0x23037e,{unitIDs:_0x355c3b,memberID:_0x355dcf,isForwarded:_0x26a7fa}=_0x4f9c34;_0x355c3b[_0x1dd9e9(0x342)](_0x26f5bf=>{const _0x43e92c=_0x1dd9e9;if(!_0x26a7fa&&this[_0x43e92c(0x254)]['has'](_0x26f5bf)&&this['_ensureSubject'](_0x26f5bf)[_0x43e92c(0x2a5)](_0x30f496['OTHER_CLIENTS_EDITING']),!this[_0x43e92c(0x254)][_0x43e92c(0x239)](_0x26f5bf)||!this[_0x43e92c(0x254)][_0x43e92c(0x2d3)](_0x26f5bf)['has'](_0x355dcf)){const _0x295a84=this[_0x43e92c(0x254)]['get'](_0x26f5bf)||new Set();_0x295a84[_0x43e92c(0x30b)](_0x355dcf),this[_0x43e92c(0x254)]['set'](_0x26f5bf,_0x295a84),this[_0x43e92c(0x32e)](_0x355dcf);}}),_0x26a7fa||this[_0x1dd9e9(0x27a)]({'type':0x0,'memberID':this[_0x1dd9e9(0x2ca)],'unitIDs':[...this[_0x1dd9e9(0x28f)]],'isForwarded':!0x0});}[_0x23037e(0x32e)](_0x20297e){const _0x1ff6ff=_0x23037e;this[_0x1ff6ff(0x389)](_0x20297e);const _0x593085=window[_0x1ff6ff(0x38a)](()=>{const _0x49f34e=_0x1ff6ff;this[_0x49f34e(0x254)][_0x49f34e(0x342)](_0xda9095=>{const _0x3bfa61=_0x49f34e;_0xda9095[_0x3bfa61(0x33a)](_0x20297e);});},lt*0x2);this[_0x1ff6ff(0x2fe)][_0x1ff6ff(0x2a0)](_0x20297e,_0x593085);}[_0x23037e(0x389)](_0x327fa9){const _0x30790d=_0x23037e;if(this[_0x30790d(0x2fe)][_0x30790d(0x239)](_0x327fa9)){const _0x597803=this['_clearOtherTimers'][_0x30790d(0x2d3)](_0x327fa9);_0x597803&&window[_0x30790d(0x36d)](_0x597803),this[_0x30790d(0x2fe)]['set'](_0x327fa9,null);}}[_0x23037e(0x243)](_0x284e01){const _0x1a7bce=_0x23037e,{memberID:_0x20e205,unitIDs:_0x34f5bf}=_0x284e01;_0x34f5bf[_0x1a7bce(0x342)](_0x5c7b89=>{const _0x3237d5=_0x1a7bce;var _0x39abea;const _0x25be30=this[_0x3237d5(0x254)][_0x3237d5(0x2d3)](_0x5c7b89);_0x25be30&&(_0x25be30[_0x3237d5(0x33a)](_0x20e205),(_0x39abea=this[_0x3237d5(0x2c6)](_0x5c7b89))==null||_0x39abea[_0x3237d5(0x2a5)](_0x25be30[_0x3237d5(0x3f1)]===0x0?_0x30f496['NO_OTHER_CLIENTS_EDITING']:_0x30f496[_0x3237d5(0x29a)]));}),this[_0x1a7bce(0x389)](_0x20e205);}[_0x23037e(0x220)](_0x4d33ae){const _0x51e541=_0x23037e;this['_scheduleClearOtherTimer'](_0x4d33ae[_0x51e541(0x2dc)]);}[_0x23037e(0x27a)](_0x53a684){const _0xb3b100=_0x23037e;localStorage[_0xb3b100(0x39d)](ht,JSON[_0xb3b100(0x252)](_0x53a684));}['_scheduleHeartbeat'](){const _0x56b6dc=_0x23037e;this[_0x56b6dc(0x334)]=window[_0x56b6dc(0x214)](()=>{const _0x4f1a68=_0x56b6dc;this[_0x4f1a68(0x27a)]({'type':0x2,'memberID':this[_0x4f1a68(0x2ca)]});},lt);}[_0x23037e(0x2c6)](_0x13b88f){const _0x53b520=_0x23037e;return this[_0x53b520(0x301)][_0x53b520(0x239)](_0x13b88f)||this['_unitStatus'][_0x53b520(0x2a0)](_0x13b88f,new _0x107cff(_0x30f496[_0x53b520(0x24c)])),this[_0x53b520(0x301)][_0x53b520(0x2d3)](_0x13b88f);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|
|
1
|
+
const _0x517afa=_0x4ad2;(function(_0x59798c,_0x421909){const _0x7bd44a=_0x4ad2,_0x1dd0be=_0x59798c();while(!![]){try{const _0x5767fc=parseInt(_0x7bd44a(0x82))/0x1+parseInt(_0x7bd44a(0x169))/0x2*(parseInt(_0x7bd44a(0x1f3))/0x3)+-parseInt(_0x7bd44a(0x142))/0x4+parseInt(_0x7bd44a(0x156))/0x5*(parseInt(_0x7bd44a(0x117))/0x6)+parseInt(_0x7bd44a(0x1b1))/0x7*(-parseInt(_0x7bd44a(0x157))/0x8)+-parseInt(_0x7bd44a(0x294))/0x9+parseInt(_0x7bd44a(0x22b))/0xa;if(_0x5767fc===_0x421909)break;else _0x1dd0be['push'](_0x1dd0be['shift']());}catch(_0xd5b0a5){_0x1dd0be['push'](_0x1dd0be['shift']());}}}(_0x1e85,0x623f9));var Ft=Object[_0x517afa(0xa8)],kt=(_0x5a2880,_0x4a8471,_0x3d2c14)=>_0x4a8471 in _0x5a2880?Ft(_0x5a2880,_0x4a8471,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d2c14}):_0x5a2880[_0x4a8471]=_0x3d2c14,l=(_0x9a81f7,_0x2cf990,_0x46698b)=>kt(_0x9a81f7,typeof _0x2cf990!='symbol'?_0x2cf990+'':_0x2cf990,_0x46698b);import{jsx as _0x277ba7,jsxs as _0x1bde0f}from'react/jsx-runtime';import{CollaborationStatus as _0x5039cf,CollaborationSessionService as _0x2c25d7,CollaborationController as _0x477518,DataLoaderService as _0x2a1a88,MemberService as _0x4164ee,SessionStatus as _0x309895,ILocalCacheService as _0x190965,CollaborationUIEventService as _0x3671b7,CollaborationUIEventId as _0x175362,DocCollaborationEntity as _0x39449e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x174b68,getLocalCacheKey as _0x439647,LOCAL_CACHE_INTERVAL as _0x5d3637,LOCAL_CACHE_INTERVAL_KEY as _0x141eb8,UniverCollaborationClientPlugin as _0x246cf1,CollaborationSocketService as _0x5c223d,DEFAULT_WS_SESSION_TICKET_URL as _0x84448e,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5be24c,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2db30,UnitStatus as _0x182996}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x3ae72e,IUniverInstanceService as _0x30c7ee,Inject as _0x388393,Injector as _0x258030,Disposable as _0x4057f7,createIdentifier as _0x39e1c8,ILogService as _0x46da51,ICommandService as _0x4ab028,Optional as _0x4ea5e5,RxDisposable as _0x518648,Workbook as _0x2a5c81,DOC_RANGE_TYPE as _0x13dbee,debounce as _0x5465f7,Rectangle as _0x54ee1a,DisposableCollection as _0x57a43d,toDisposable as _0x5d128c,UniverInstanceType as _0x4ed0b3,generateRandomId as _0x24b861,COLORS as _0x520d70,ColorKit as _0x27dda8,ThemeService as _0x4d7d85,fromEventSubject as _0xdcf17c,Tools as _0x24fd68,CommandType as _0x18ebdb,IConfigService as _0x6a4de3,CanceledError as _0x458890,isFormulaString as _0x434ee5,isFormulaId as _0x2fae16,ILocalStorageService as _0xbe08f5,DependentOn as _0x2422e9,Plugin as _0x576e66,merge as _0xff84a3,registerDependencies as _0x183763,mergeOverrideWithDependencies as _0x328036,touchDependencies as _0x36d93c}from'@univerjs/core';import{useObservable as _0x42cc23,useDependency as _0x5058dd,IUIPartsService as _0x396b61,BuiltInUIPart as _0x606109,connectInjector as _0x2a674f,IBeforeCloseService as _0x1e0e35,IMessageService as _0x341740,INotificationService as _0x577074}from'@univerjs/ui';import{BehaviorSubject as _0x340b13,switchMap as _0x1308ff,of as _0x38b4ff,takeUntil as _0xd33296,debounceTime as _0x59a831,Subject as _0x25ec2f,filter as _0x4edfe7,merge as _0x2f4c1a,combineLatest as _0x41429a,fromEvent as _0x258e3e,shareReplay as _0x4adcb8,mapTo as _0x487335,distinctUntilChanged as _0xfe7dd9}from'rxjs';import{Tooltip as _0x576972,clsx as _0x116133,MessageType as _0x43794b}from'@univerjs/design';import{useRef as _0x23f6bc,createElement as _0x217658,forwardRef as _0x33f249,useCallback as _0x3c5a52}from'react';import{IRemoteInstanceService as _0x4dada7}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3fab11,RefRangeService as _0x2c0610,SetSelectionsOperation as _0x24b6af,SheetsSelectionsService as _0x4b8257,EffectRefRangId as _0x3786ea,handleIRemoveRow as _0x559731,handleIRemoveCol as _0x1788e2,handleMoveRange as _0x443ce7,handleInsertRow as _0x223b9d,handleInsertRangeMoveRight as _0x516fbd,handleInsertRangeMoveDown as _0x2cc346,handleInsertCol as _0x11dfa9,handleDeleteRangeMoveUp as _0x1cffba,handleDeleteRangeMoveLeft as _0x3b4431,runRefRangeMutations as _0x575db5}from'@univerjs/sheets';import{Shape as _0x965c3a,Rect as _0x54f591,getColor as _0x4d4f6a,RegularPolygon as _0x6dd2a8,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2dd456,Vector2 as _0x4ad7c8,SHEET_VIEWPORT_KEY as _0x1f1ace,IRenderManagerService as _0x7acb9e}from'@univerjs/engine-render';import{HTTPService as _0x345138,ISocketService as _0x5adab9,WebSocketService as _0x558214}from'@univerjs/network';import{IDocClipboardService as _0xaa9e07,NodePositionConvertToCursor as _0x22b823,NodePositionConvertToRectRange as _0x4d41d5,TEXT_RANGE_LAYER_INDEX as _0x57eea3,SetDocZoomRatioOperation as _0x2a3ec3,DocIMEInputManagerService as _0x30a772,DocStateChangeManagerService as _0x3d7f81}from'@univerjs/docs-ui';import{IImageIoService as _0x32f1bc}from'@univerjs/drawing';import{ITransformService as _0x2e28c1,CollaborationEvent as _0x2aa15d,isTransformMutationFailure as _0x18536c,isTransformMutationsWithChangesetSuccess as _0x2ef47c,RevisionService as _0x1fb0da,ISnapshotServerService as _0x3419af}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x1ec7e1,RichTextEditingMutation as _0x3321ec,DocSelectionManagerService as _0x59d42f,DocSkeletonManagerService as _0x162c1a}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2f7970,serializeRangeWithSheet as _0x1ae78a,FormulaExecuteStageType as _0x93f55d,FormulaExecutedStateType as _0x1da652,SetFormulaCalculationStartMutation as _0xa507f6,SetFormulaCalculationNotificationMutation as _0x3f8c9d}from'@univerjs/engine-formula';import{map as _0x4ee011,filter as _0x4cc029,throttleTime as _0x1a7dfa,takeUntil as _0x2533f0,switchMap as _0x23dfcb}from'rxjs/operators';import{SheetSkeletonManagerService as _0x4703f3,getCoordByCell as _0x10d1ca,getSheetObject as _0x3aa887}from'@univerjs/sheets-ui';function Ve({ref:_0x5bfeab,..._0xa6fbcf}){const _0x3d6d95=_0x517afa,{icon:_0x24d3dd,id:_0x3013c6,className:_0x52f677,extend:_0xfaa4c7,..._0x4b48be}=_0xa6fbcf,_0xaf6e07=('univerjs-icon\x20univerjs-icon-'+_0x3013c6+'\x20'+(_0x52f677||''))['trim'](),_0x2bfcde=_0x23f6bc('_'+gi());return Ut(_0x24d3dd,''+_0x3013c6,{'defIds':_0x24d3dd[_0x3d6d95(0x1ef)],'idSuffix':_0x2bfcde['current']},{'ref':_0x5bfeab,'className':_0xaf6e07,..._0x4b48be},_0xfaa4c7);}function Ut(_0x5e6d66,_0x552b58,_0x47df7d,_0x14c2cf,_0xf0a37d){const _0xa2f119=_0x517afa;return _0x217658(_0x5e6d66['tag'],{'key':_0x552b58,...mi(_0x5e6d66,_0x47df7d,_0xf0a37d),..._0x14c2cf},(fi(_0x5e6d66,_0x47df7d)[_0xa2f119(0x1af)]||[])[_0xa2f119(0x193)]((_0x4155a2,_0x190190)=>Ut(_0x4155a2,_0x552b58+'-'+_0x5e6d66[_0xa2f119(0x264)]+'-'+_0x190190,_0x47df7d,void 0x0,_0xf0a37d)));}function mi(_0x262718,_0x33ba4e,_0x180ede){const _0xda6143=_0x517afa,_0x22ab1b={..._0x262718['attrs']};_0x180ede!=null&&_0x180ede['colorChannel1']&&_0x22ab1b['fill']===_0xda6143(0x106)&&(_0x22ab1b['fill']=_0x180ede[_0xda6143(0x106)]),_0x262718[_0xda6143(0x264)]===_0xda6143(0x197)&&_0x22ab1b['id']&&(_0x22ab1b['id']=_0x22ab1b['id']+_0x33ba4e[_0xda6143(0x276)]),Object[_0xda6143(0x1dd)](_0x22ab1b)[_0xda6143(0x17f)](([_0x575f0e,_0x5be218])=>{const _0x24e62b=_0xda6143;_0x575f0e===_0x24e62b(0x197)&&typeof _0x5be218==_0x24e62b(0x149)&&(_0x22ab1b[_0x575f0e]=_0x5be218[_0x24e62b(0x216)](/url\(#(.*)\)/,_0x24e62b(0x9d)+_0x33ba4e[_0x24e62b(0x276)]+')'));});const {defIds:_0x9363d7}=_0x33ba4e;return!_0x9363d7||_0x9363d7[_0xda6143(0x1d1)]===0x0||(_0x262718[_0xda6143(0x264)]===_0xda6143(0x17e)&&_0x22ab1b['xlink:href']&&(_0x22ab1b[_0xda6143(0xa1)]=_0x22ab1b['xlink:href']+_0x33ba4e[_0xda6143(0x276)]),Object[_0xda6143(0x1dd)](_0x22ab1b)['forEach'](([_0xa97d55,_0x2f4f30])=>{const _0x33a548=_0xda6143;typeof _0x2f4f30==_0x33a548(0x149)&&(_0x22ab1b[_0xa97d55]=_0x2f4f30['replace'](/url\(#(.*)\)/,_0x33a548(0x9d)+_0x33ba4e[_0x33a548(0x276)]+')'));})),_0x22ab1b;}function fi(_0x5b5c03,_0x3bd42f){const _0x3913fe=_0x517afa;var _0x5e1ae8;const {defIds:_0x406ce6}=_0x3bd42f;return!_0x406ce6||_0x406ce6['length']===0x0?_0x5b5c03:_0x5b5c03[_0x3913fe(0x264)]===_0x3913fe(0x120)&&((_0x5e1ae8=_0x5b5c03['children'])!=null&&_0x5e1ae8[_0x3913fe(0x1d1)])?{..._0x5b5c03,'children':_0x5b5c03[_0x3913fe(0x1af)][_0x3913fe(0x193)](_0x31735e=>typeof _0x31735e[_0x3913fe(0x1db)]['id']==_0x3913fe(0x149)&&_0x406ce6&&_0x406ce6[_0x3913fe(0x170)](_0x31735e[_0x3913fe(0x1db)]['id'])?{..._0x31735e,'attrs':{..._0x31735e[_0x3913fe(0x1db)],'id':_0x31735e['attrs']['id']+_0x3bd42f[_0x3913fe(0x276)]}}:_0x31735e)}:_0x5b5c03;}function gi(){const _0xad11d6=_0x517afa;return Math['random']()[_0xad11d6(0xee)](0x24)[_0xad11d6(0x109)](0x2,0x8);}Ve[_0x517afa(0x114)]='UniverIcon';const vi={'tag':'svg','attrs':{'xmlns':_0x517afa(0x1d0),'fill':'none','viewBox':_0x517afa(0xbc),'width':_0x517afa(0xe4),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x517afa(0x172)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'stroke':_0x517afa(0x192),'d':_0x517afa(0x27c),'strokeLinecap':'round','strokeLinejoin':_0x517afa(0xcb),'strokeWidth':1.2}}]},{'tag':_0x517afa(0x120),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x517afa(0x9e)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'fill':'white','d':_0x517afa(0x7a)}}]}]}],'defIds':[_0x517afa(0x9e)]},Lt=_0x33f249(function(_0x389dae,_0x48818b){const _0x460a5e=_0x517afa;return _0x217658(Ve,Object['assign']({},_0x389dae,{'id':_0x460a5e(0xea),'ref':_0x48818b,'icon':vi}));});Lt['displayName']=_0x517afa(0x13f);const Ei={'tag':_0x517afa(0x6f),'attrs':{'xmlns':_0x517afa(0x1d0),'fill':'none','viewBox':_0x517afa(0xb1),'width':_0x517afa(0xe4),'height':_0x517afa(0xe4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x517afa(0x10a),'attrs':{'stroke':_0x517afa(0x192),'d':_0x517afa(0xdc),'strokeLinecap':_0x517afa(0xcb),'strokeLinejoin':_0x517afa(0xcb),'strokeWidth':1.2}}]},{'tag':_0x517afa(0x120),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x517afa(0xde)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x517afa(0x152)}}]}]}],'defIds':[_0x517afa(0xde)]},Mt=_0x33f249(function(_0x3a1bff,_0x1ff957){const _0x46b02b=_0x517afa;return _0x217658(Ve,Object[_0x46b02b(0x1bd)]({},_0x3a1bff,{'id':_0x46b02b(0xa9),'ref':_0x1ff957,'icon':Ei}));});Mt[_0x517afa(0x114)]='OnLineIcon';function pi(_0x246a7c){const _0x458919=_0x517afa;switch(_0x246a7c){case _0x5039cf['OFFLINE']:return _0x458919(0xfc);case _0x5039cf[_0x458919(0x275)]:return _0x458919(0x84);case _0x5039cf[_0x458919(0x153)]:return _0x458919(0x1de);case _0x5039cf['NOT_COLLAB']:return _0x458919(0x260);case _0x5039cf['AWAITING']:case _0x5039cf['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case _0x5039cf[_0x458919(0x14c)]:case _0x5039cf[_0x458919(0x23d)]:return'collabStatus.synced';}}function Oi(_0x1fe203){const _0x2780fb=_0x517afa,{status$:_0x4afa5e}=_0x1fe203,_0x3d1551=_0x42cc23(_0x4afa5e,_0x5039cf[_0x2780fb(0x24b)]),_0x168f93=_0x5058dd(_0x3ae72e),_0x830629=_0x5058dd(_0x2c25d7),_0x3d2e53=_0x3d1551!==_0x5039cf[_0x2780fb(0x9f)],_0x1f2e85=_0x168f93['t'](pi(_0x3d1551)),_0x24ddc8=_0x3d2e53?_0x277ba7(Mt,{}):_0x277ba7(Lt,{}),_0x247f49=_0x3c5a52(()=>{const _0x5ab0ad=_0x2780fb;_0x3d2e53||_0x830629[_0x5ab0ad(0x75)]();},[_0x3d2e53,_0x830629]);function _0x593962(){const _0x5b40c9=_0x2780fb;return _0x1bde0f(_0x5b40c9(0x1b7),{'className':_0x5b40c9(0x71),'onClick':_0x247f49,'children':[_0x277ba7(_0x5b40c9(0x1b7),{'className':_0x116133(_0x5b40c9(0x19c),{'univer-text-green-500':_0x3d2e53,'univer-text-red-500':!_0x3d2e53}),'children':_0x24ddc8}),_0x277ba7(_0x5b40c9(0x1b7),{'className':_0x5b40c9(0x204),'children':_0x1f2e85})]});}return _0x3d2e53?_0x593962():_0x277ba7(_0x576972,{'title':_0x168f93['t']('collab-client.tooltip.reconnect'),'children':_0x593962()});}var Ti=Object['getOwnPropertyDescriptor'],Ci=(_0x2beec6,_0xf1868,_0x236baa,_0xec97fc)=>{const _0x4a9fab=_0x517afa;for(var _0x2b1a11=_0xec97fc>0x1?void 0x0:_0xec97fc?Ti(_0xf1868,_0x236baa):_0xf1868,_0x49a528=_0x2beec6[_0x4a9fab(0x1d1)]-0x1,_0x1f9e63;_0x49a528>=0x0;_0x49a528--)(_0x1f9e63=_0x2beec6[_0x49a528])&&(_0x2b1a11=_0x1f9e63(_0x2b1a11)||_0x2b1a11);return _0x2b1a11;},se=(_0x1b45e8,_0xf62440)=>(_0x2d8c1a,_0x1559d1)=>_0xf62440(_0x2d8c1a,_0x1559d1,_0x1b45e8);let oe=class extends _0x4057f7{constructor(_0xa8a9d1,_0x190dfd,_0x3b783a,_0x2128af){const _0x557379=_0x517afa;super(),l(this,'_status$',new _0x340b13(_0x5039cf[_0x557379(0x24b)])),(this[_0x557379(0xb4)]=_0xa8a9d1,this[_0x557379(0x22f)]=_0x190dfd,this[_0x557379(0x15d)]=_0x3b783a,this[_0x557379(0x268)]=_0x2128af,this[_0x557379(0x11a)](),this[_0x557379(0x23e)]());}[_0x517afa(0x23e)](){const _0x2a543c=_0x517afa;this[_0x2a543c(0x161)](this['_univerInstanceService'][_0x2a543c(0xd0)]['pipe'](_0x1308ff(()=>{const _0x50fd83=_0x2a543c,_0x20a7eb=this[_0x50fd83(0xb4)][_0x50fd83(0x228)]();return _0x20a7eb?this[_0x50fd83(0x15d)][_0x50fd83(0x176)](_0x20a7eb['getUnitId']()):_0x38b4ff(null);}),_0x1308ff(_0x2bb4ae=>_0x2bb4ae?_0x2bb4ae[_0x2a543c(0x155)]:_0x38b4ff(_0x5039cf[_0x2a543c(0x24b)])))[_0x2a543c(0x243)](_0x21fa30=>{const _0x326167=_0x2a543c;this[_0x326167(0x245)][_0x326167(0xb2)](_0x21fa30);}));}[_0x517afa(0x11a)](){const _0x36298d=_0x517afa;this[_0x36298d(0x161)](this['_uiPartsService']['registerComponent'](_0x606109['HEADER_MENU'],()=>_0x2a674f(Ri({'status$':this[_0x36298d(0x245)][_0x36298d(0x198)]()}),this[_0x36298d(0x22f)])));}};oe=Ci([se(0x0,_0x30c7ee),se(0x1,_0x388393(_0x258030)),se(0x2,_0x388393(_0x477518)),se(0x3,_0x396b61)],oe);function Ri(_0x3a38ac){const {status$:_0x3580c7}=_0x3a38ac;return function(){return _0x277ba7(Oi,{'status$':_0x3580c7});};}const At=_0x39e1c8(_0x517afa(0x168));var Di=Object[_0x517afa(0x217)],Ni=(_0x27341c,_0x52be70,_0x434edb,_0x3f335a)=>{const _0x12f46e=_0x517afa;for(var _0x1032c7=_0x3f335a>0x1?void 0x0:_0x3f335a?Di(_0x52be70,_0x434edb):_0x52be70,_0x39ae90=_0x27341c[_0x12f46e(0x1d1)]-0x1,_0x559833;_0x39ae90>=0x0;_0x39ae90--)(_0x559833=_0x27341c[_0x39ae90])&&(_0x1032c7=_0x559833(_0x1032c7)||_0x1032c7);return _0x1032c7;},K=(_0x20c8d8,_0x42a27d)=>(_0x368a1d,_0x3315cf)=>_0x42a27d(_0x368a1d,_0x3315cf,_0x20c8d8);let ae=class extends _0x518648{constructor(_0x2d342a,_0x4ccbe7,_0x1df9ea,_0x269dda,_0x80710d){const _0x18a868=_0x517afa;super(),this['_urlService']=_0x2d342a,this[_0x18a868(0x237)]=_0x4ccbe7,this[_0x18a868(0x27f)]=_0x1df9ea,this['_dataLoaderService']=_0x269dda,_0x80710d?_0x80710d==null||_0x80710d[_0x18a868(0x93)]()[_0x18a868(0x189)](()=>this['_init']()):(this[_0x18a868(0x237)][_0x18a868(0x194)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x18a868(0xf3)]());}async['_init'](){const _0xdb0516=_0x517afa,_0x303827=this['_urlService']['getParam'](_0xdb0516(0x1ec)),_0x481ab6=this[_0xdb0516(0x242)][_0xdb0516(0xf5)](_0xdb0516(0x7e)),_0x685544=this['_urlService']['getParam'](_0xdb0516(0x7d));if(!_0x303827||!_0x481ab6){this[_0xdb0516(0x237)][_0xdb0516(0x194)](_0xdb0516(0x207),_0xdb0516(0x12d));return;}const _0x5a00dd=await this[_0xdb0516(0x1b0)][_0xdb0516(0xd5)](_0x303827,Number(_0x481ab6),_0x685544);_0x5a00dd&&_0x5a00dd instanceof _0x2a5c81&&this['_setupSubUnitSync'](_0x5a00dd);}async[_0x517afa(0x1c1)](_0x38d6c6){const _0x4ed5b3=_0x517afa;await this[_0x4ed5b3(0x6c)](_0x38d6c6),_0x38d6c6[_0x4ed5b3(0x19d)][_0x4ed5b3(0x7b)](_0xd33296(this['dispose$']))[_0x4ed5b3(0x243)](_0x8cd8a5=>{const _0x1757a4=_0x4ed5b3;_0x8cd8a5&&this[_0x1757a4(0x23f)](_0x8cd8a5);}),this[_0x4ed5b3(0x242)][_0x4ed5b3(0x20e)][_0x4ed5b3(0x7b)](_0xd33296(this['dispose$']))['subscribe'](()=>this[_0x4ed5b3(0x6c)](_0x38d6c6));}[_0x517afa(0x23f)](_0x2da51c,_0x162be8=!0x1){const _0x12044e=_0x517afa,_0x9a9089=this[_0x12044e(0x242)][_0x12044e(0xf5)]('subunit');_0x2da51c[_0x12044e(0x83)]()!==_0x9a9089&&this[_0x12044e(0x242)][_0x12044e(0x281)]('subunit',_0x2da51c[_0x12044e(0x83)](),_0x162be8);}async[_0x517afa(0x6c)](_0x132fe9){const _0x358343=_0x517afa;var _0x2b7771;const _0x217fca=this[_0x358343(0x242)][_0x358343(0xf5)](_0x358343(0x7d));if(!_0x217fca||!_0x132fe9['getSheetBySheetId'](_0x217fca)){const _0x306cb0=_0x132fe9[_0x358343(0x1f0)]()[0x0],_0x5c5991=_0x132fe9[_0x358343(0x18f)](_0x306cb0);if(!_0x5c5991)return;this['_updateURLWithCurrentState'](_0x5c5991,!0x0),await this['_commandService'][_0x358343(0x111)](_0x3fab11['id'],{'unitId':_0x132fe9[_0x358343(0x90)](),'subUnitId':_0x306cb0});return;}((_0x2b7771=_0x132fe9['getActiveSheet']())==null?void 0x0:_0x2b7771[_0x358343(0x83)]())!==_0x217fca&&await this[_0x358343(0x27f)][_0x358343(0x111)](_0x3fab11['id'],{'unitId':_0x132fe9[_0x358343(0x90)](),'subUnitId':_0x217fca});}};ae=Ni([K(0x0,At),K(0x1,_0x46da51),K(0x2,_0x4ab028),K(0x3,_0x388393(_0x2a1a88)),K(0x4,_0x4ea5e5(_0x4dada7))],ae);var bi=Object[_0x517afa(0x217)],Ui=(_0x3a589e,_0x271cc7,_0xee4681,_0x2b03ed)=>{const _0x2b818b=_0x517afa;for(var _0x23d4d7=_0x2b03ed>0x1?void 0x0:_0x2b03ed?bi(_0x271cc7,_0xee4681):_0x271cc7,_0x124f65=_0x3a589e[_0x2b818b(0x1d1)]-0x1,_0x47b0f2;_0x124f65>=0x0;_0x124f65--)(_0x47b0f2=_0x3a589e[_0x124f65])&&(_0x23d4d7=_0x47b0f2(_0x23d4d7)||_0x23d4d7);return _0x23d4d7;},tt=(_0x1da118,_0x5f0858)=>(_0x5a9b32,_0x492fc8)=>_0x5f0858(_0x5a9b32,_0x492fc8,_0x1da118);let Ae=class extends _0x518648{constructor(_0x3c548b,_0x287896){const _0x4ab910=_0x517afa;super(),this[_0x4ab910(0x1d4)]=_0x3c548b,this[_0x4ab910(0x238)]=_0x287896,this[_0x4ab910(0xf3)]();}[_0x517afa(0xf3)](){const _0x807ef7=_0x517afa,_0xed730a=this;this[_0x807ef7(0x161)](this[_0x807ef7(0x1d4)][_0x807ef7(0xcd)]({'onBeforePasteImage':async _0x104091=>{const _0x421e66=_0x807ef7,_0x22c284=await _0xed730a[_0x421e66(0x238)][_0x421e66(0x22d)](_0x104091);return _0x22c284?{'source':_0x22c284['source'],'imageSourceType':_0x22c284[_0x421e66(0x1e4)]}:null;}}));}};Ae=Ui([tt(0x0,_0xaa9e07),tt(0x1,_0x32f1bc)],Ae);const st=['purple.300',_0x517afa(0x1f8),_0x517afa(0xeb),_0x517afa(0x25d),_0x517afa(0x116),'yellow.400'];class je extends _0x4057f7{constructor(){const _0x532079=_0x517afa;super(...arguments),l(this,_0x532079(0x271),new Map()),l(this,_0x532079(0x158),0x0);}['assignAColorForMemberID'](_0x7aa126){const _0x43b310=_0x517afa;if(this['_assignedColors'][_0x43b310(0x248)](_0x7aa126))return this[_0x43b310(0x271)][_0x43b310(0x19b)](_0x7aa126);const _0x4d835b=st[this[_0x43b310(0x158)]];return this[_0x43b310(0x158)]=(this[_0x43b310(0x158)]+0x1)%st[_0x43b310(0x1d1)],this[_0x43b310(0x271)][_0x43b310(0x11e)](_0x7aa126,_0x4d835b),_0x4d835b;}}function Pt(_0x5e9642){const _0x265b04=_0x517afa;let _0x263ae5='';for(const _0x50a3df of _0x5e9642){const {startOffset:_0x54adc5,endOffset:_0x53eba6,isActive:_0x4bad31,rangeType:_0x4bf001,segmentId:_0x3935cd,segmentPage:_0xcc0f57}=_0x50a3df;_0x263ae5[_0x265b04(0x1d1)]&&(_0x263ae5+=','),_0x263ae5+=_0x54adc5+':'+_0x53eba6+':'+(_0x4bad31?'1':'0')+':'+_0x4bf001+':'+_0x3935cd+':'+_0xcc0f57;}return _0x263ae5;}function Li(_0x28dae9){const _0x5e844c=_0x517afa,_0x5de168=_0x28dae9[_0x5e844c(0xa4)](','),_0x1dde10=[];for(const _0x15e125 of _0x5de168){const [_0x5e1c5a,_0x5dc617,_0x163197,_0x3430a9,_0x2a8359,_0x57d42f]=_0x15e125[_0x5e844c(0xa4)](':');_0x1dde10['push']({'startOffset':Number(_0x5e1c5a),'endOffset':Number(_0x5dc617),'collapsed':_0x5e1c5a===_0x5dc617,'isActive':_0x163197==='1','rangeType':_0x3430a9===_0x13dbee['TEXT']?_0x13dbee['TEXT']:_0x13dbee[_0x5e844c(0x1ba)],'segmentId':typeof _0x2a8359=='string'?String(_0x2a8359):'','segmentPage':Number(_0x57d42f!=null?_0x57d42f:-0x1)});}return _0x1dde10[_0x5e844c(0x15e)](_0x592fd5=>_0x592fd5[_0x5e844c(0x24a)])||(_0x1dde10[0x0][_0x5e844c(0x24a)]=!0x0),_0x1dde10;}class Xe extends _0x518648{constructor(){const _0x5bbd14=_0x517afa;super(...arguments),l(this,_0x5bbd14(0x123),new _0x340b13(null)),l(this,'collabCursorState$',this[_0x5bbd14(0x123)][_0x5bbd14(0x198)]());}[_0x517afa(0x14a)](_0x2227c6){const _0x1b7d2f=_0x517afa,{unitID:_0x20ed6a,memberID:_0x447a78,textRanges:_0x441103}=_0x2227c6,_0x5ee698=Pt(_0x441103);if(_0x5ee698==='')return;const _0xeaed33={'unitID':_0x20ed6a,'memberID':_0x447a78,'selection':_0x5ee698};this[_0x1b7d2f(0x123)][_0x1b7d2f(0xb2)](_0xeaed33);}}var Mi=Object['getOwnPropertyDescriptor'],Ai=(_0x5c52be,_0x113c0e,_0x3f753c,_0x22ba5d)=>{for(var _0x426601=_0x22ba5d>0x1?void 0x0:_0x22ba5d?Mi(_0x113c0e,_0x3f753c):_0x113c0e,_0x3a3feb=_0x5c52be['length']-0x1,_0x159a49;_0x3a3feb>=0x0;_0x3a3feb--)(_0x159a49=_0x5c52be[_0x3a3feb])&&(_0x426601=_0x159a49(_0x426601)||_0x426601);return _0x426601;},A=(_0x3dee63,_0x2adcf7)=>(_0x1b4ae5,_0x25d1b8)=>_0x2adcf7(_0x1b4ae5,_0x25d1b8,_0x3dee63);const Pi=0x12c,wi=0x64;let Pe=class extends _0x518648{constructor(_0x5c3433,_0x328926,_0x1e1b10,_0x444016,_0x2d75f0,_0x1cf721,_0x490a57,_0x312c88,_0x531b60){const _0x56bd48=_0x517afa;super(),l(this,_0x56bd48(0xa7),!0x1),l(this,_0x56bd48(0xf3),!0x1),l(this,_0x56bd48(0x234),new _0x340b13(new Map())),l(this,_0x56bd48(0x255),this[_0x56bd48(0x234)]['asObservable']()),l(this,_0x56bd48(0x1f5),new _0x340b13([])),l(this,'roomMembers$',this[_0x56bd48(0x1f5)][_0x56bd48(0x7b)](_0x59a831(Pi))),l(this,_0x56bd48(0x284),_0x5465f7(_0x286426=>{const _0x15f7c9=_0x56bd48,_0x21f282={'eventID':_0x2aa15d[_0x15f7c9(0xd7)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Pt(_0x286426)}};this[_0x15f7c9(0xad)][_0x15f7c9(0x267)](_0x21f282,this[_0x15f7c9(0x186)]);},wi)),(this[_0x56bd48(0x186)]=_0x5c3433,this[_0x56bd48(0xad)]=_0x328926,this[_0x56bd48(0x22f)]=_0x1e1b10,this['_colorAssignService']=_0x444016,this[_0x56bd48(0x1d9)]=_0x2d75f0,this[_0x56bd48(0x66)]=_0x1cf721,this[_0x56bd48(0x295)]=_0x490a57,this[_0x56bd48(0xb4)]=_0x312c88,this[_0x56bd48(0x27f)]=_0x531b60);}get[_0x517afa(0x253)](){const _0x5bbc65=_0x517afa;return this['_cursorInfo$'][_0x5bbc65(0x89)]();}get[_0x517afa(0xf4)](){const _0x46a170=_0x517afa;return this[_0x46a170(0x1f5)][_0x46a170(0x89)]();}[_0x517afa(0x121)](){const _0x4645ac=_0x517afa;super[_0x4645ac(0x121)](),this['_cursorInfo$'][_0x4645ac(0xb2)](new Map()),this[_0x4645ac(0x234)][_0x4645ac(0x202)](),this[_0x4645ac(0x1f5)][_0x4645ac(0xb2)]([]),this[_0x4645ac(0x1f5)]['complete']();}['init'](){const _0x4bff03=_0x517afa;this[_0x4bff03(0xf3)]||(this[_0x4bff03(0xf3)]=!0x0,this[_0x4bff03(0xad)]['sessionStatus$'][_0x4bff03(0x7b)](_0xd33296(this[_0x4bff03(0x1e9)]))['subscribe'](_0x61aa1=>{const _0x2f867e=_0x4bff03;_0x61aa1===_0x309895['ONLINE']?this[_0x2f867e(0x177)]():this['_toggleOffline']();}),this[_0x4bff03(0xad)][_0x4bff03(0x226)][_0x4bff03(0x7b)](_0xd33296(this[_0x4bff03(0x1e9)]))[_0x4bff03(0x243)](_0x296dfc=>{const _0x1d2a06=_0x4bff03,_0x37a521=_0x296dfc[_0x1d2a06(0x69)];_0x37a521===_0x2aa15d['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x296dfc),_0x37a521===_0x2aa15d[_0x1d2a06(0x26c)]&&this['_onCursorDelete'](_0x296dfc);}),this[_0x4bff03(0x161)](this['_commandService'][_0x4bff03(0x208)](_0x2b90ab=>{const _0x44a781=_0x4bff03,_0x5eb7c3=_0x2b90ab[_0x44a781(0x269)];_0x5eb7c3!=null&&this['_online']&&_0x2b90ab['id']===_0x1ec7e1['id']&&_0x5eb7c3[_0x44a781(0x140)]===this[_0x44a781(0x186)]&&_0x5eb7c3[_0x44a781(0xe9)]===!0x1&&_0x5eb7c3[_0x44a781(0x25f)]['length']>0x0&&this[_0x44a781(0x284)](_0x5eb7c3['ranges']);})),this[_0x4bff03(0x66)][_0x4bff03(0xa6)][_0x4bff03(0x7b)](_0xd33296(this['dispose$']))[_0x4bff03(0x243)](_0x1d5e1e=>{const _0x2ad665=_0x4bff03;if((_0x1d5e1e==null?void 0x0:_0x1d5e1e[_0x2ad665(0x186)])!==this[_0x2ad665(0x186)])return;const _0x121ded={'eventID':_0x2aa15d['UPDATE_CURSOR'],'data':_0x1d5e1e};this[_0x2ad665(0x209)](_0x121ded);}),this[_0x4bff03(0x161)](this[_0x4bff03(0x27f)][_0x4bff03(0x208)](_0x8fa16=>{const _0x58c72b=_0x4bff03;if(_0x8fa16['params']==null)return;const _0x329bde=_0x8fa16[_0x58c72b(0x269)];if(_0x8fa16['id']!==_0x3321ec['id']||_0x329bde[_0x58c72b(0x140)]!==this[_0x58c72b(0x186)])return;const _0x54e2a8={'id':_0x58c72b(0x21f),'params':_0x329bde},_0x2f63a4=this[_0x58c72b(0x253)];for(const [_0xf47117,_0x2c4165]of _0x2f63a4){const _0xad3e8={'id':_0x58c72b(0x21f),'params':{'unitId':this[_0x58c72b(0x186)],'actions':null,'textRanges':_0x2c4165[_0x58c72b(0x25f)]}},_0x108dcc=this['_transformService'][_0x58c72b(0x1c4)](_0x54e2a8,_0xad3e8,!0x1);if(_0x18536c(_0x108dcc))throw _0x108dcc[_0x58c72b(0x154)];_0x2f63a4[_0x58c72b(0x11e)](_0xf47117,{..._0x2c4165,'ranges':_0x108dcc['m2Prime'][_0x58c72b(0x269)][_0x58c72b(0x1a7)]});}queueMicrotask(()=>{const _0x260184=_0x58c72b;this[_0x260184(0x234)][_0x260184(0xb2)](_0x2f63a4);});})));}[_0x517afa(0x209)](_0x1d3822){const _0x203a87=_0x517afa;var _0x51d598,_0x68ec78;const {memberID:_0x4d848e,selection:_0x526396}=_0x1d3822['data'],_0x5db27e=Li(_0x526396),_0x3e52af=(_0x68ec78=(_0x51d598=this[_0x203a87(0x1d9)][_0x203a87(0x1f9)](this['unitID'],_0x4d848e))==null?void 0x0:_0x51d598[_0x203a87(0xf8)])!=null?_0x68ec78:_0x203a87(0x22a),_0x5d9ebd={'color':this[_0x203a87(0xe5)][_0x203a87(0xa0)](_0x4d848e),'name':_0x3e52af,'ranges':_0x5db27e},_0x226837=this[_0x203a87(0x253)];_0x226837['set'](_0x4d848e,_0x5d9ebd),this['_cursorInfo$']['next'](_0x226837);}[_0x517afa(0x20b)](_0x592d2e){const _0xa582e8=_0x517afa,{memberID:_0x7a95a7}=_0x592d2e[_0xa582e8(0x16f)],_0x47acc9=this[_0xa582e8(0x253)];_0x47acc9[_0xa582e8(0x26d)](_0x7a95a7),this[_0xa582e8(0x234)][_0xa582e8(0xb2)](_0x47acc9);}[_0x517afa(0x177)](){const _0x1909b7=_0x517afa;var _0xb52e46;if(this[_0x1909b7(0xa7)]=!0x0,((_0xb52e46=this[_0x1909b7(0xb4)][_0x1909b7(0x228)]())==null?void 0x0:_0xb52e46[_0x1909b7(0x90)]())!==this[_0x1909b7(0x186)])return;const _0x5f4213=this['_injector'][_0x1909b7(0x19b)](_0x59d42f)[_0x1909b7(0x15c)]();Array[_0x1909b7(0x229)](_0x5f4213)&&_0x5f4213[_0x1909b7(0x1d1)]>0x0&&this[_0x1909b7(0x284)](_0x5f4213);}[_0x517afa(0x218)](){const _0x4aec1b=_0x517afa;this[_0x4aec1b(0xa7)]=!0x1;}};Pe=Ai([A(0x2,_0x388393(_0x258030)),A(0x3,_0x388393(je)),A(0x4,_0x388393(_0x4164ee)),A(0x5,_0x388393(Xe)),A(0x6,_0x2e28c1),A(0x7,_0x30c7ee),A(0x8,_0x4ab028)],Pe);var yi=Object[_0x517afa(0x217)],$i=(_0x45bb84,_0x2b2fe3,_0x22da68,_0x2a8a11)=>{const _0x5ab209=_0x517afa;for(var _0x5db564=_0x2a8a11>0x1?void 0x0:_0x2a8a11?yi(_0x2b2fe3,_0x22da68):_0x2b2fe3,_0x53f4a5=_0x45bb84[_0x5ab209(0x1d1)]-0x1,_0x4706cc;_0x53f4a5>=0x0;_0x53f4a5--)(_0x4706cc=_0x45bb84[_0x53f4a5])&&(_0x5db564=_0x4706cc(_0x5db564)||_0x5db564);return _0x5db564;},B=(_0xc1b32,_0x15babb)=>(_0x2e3581,_0xadafe1)=>_0x15babb(_0x2e3581,_0xadafe1,_0xc1b32);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1020bf=[],_0x20e473=!0x1;return _0x331a1b=>{const _0x3d3fe5=_0x4ad2;_0x1020bf[_0x3d3fe5(0x178)](_0x331a1b),_0x20e473||(_0x20e473=!0x0,setTimeout(()=>{const _0x38ad4d=_0x3d3fe5;_0x1020bf[_0x38ad4d(0x17f)](_0xa08f75=>_0xa08f75()),_0x1020bf=[],_0x20e473=!0x1;}));};};let we=class extends _0x518648{constructor(_0x4a9b9e,_0xc9c157,_0x73a832,_0x38901f,_0x32ad48,_0x5657ce,_0x3cfa7b,_0x3d27e3){const _0xd28acc=_0x517afa;super(),l(this,_0xd28acc(0xa7),!0x1),l(this,_0xd28acc(0xf3),!0x1),l(this,'_cursorInfo$',new _0x340b13(new Map())),l(this,'cursorInfo$',this[_0xd28acc(0x234)]['asObservable']()),l(this,_0xd28acc(0x1f5),new _0x340b13([])),l(this,_0xd28acc(0x1fe),this[_0xd28acc(0x1f5)][_0xd28acc(0x7b)](_0x59a831(xi))),l(this,_0xd28acc(0x284),_0x5465f7((_0x33772c,_0x570664)=>{const _0x2c9d2a=_0xd28acc,_0x18d796={'eventID':_0x2aa15d['UPDATE_CURSOR'],'data':{'unitID':this[_0x2c9d2a(0x186)],'memberID':this[_0x2c9d2a(0xad)][_0x2c9d2a(0xc2)](),'selection':_0x1ae78a(_0x33772c,_0x570664['range'])}};this[_0x2c9d2a(0xad)][_0x2c9d2a(0x267)](_0x18d796,this[_0x2c9d2a(0x186)]);},Bi)),(this[_0xd28acc(0x186)]=_0x4a9b9e,this[_0xd28acc(0xad)]=_0xc9c157,this['_injector']=_0x73a832,this[_0xd28acc(0xe5)]=_0x38901f,this[_0xd28acc(0x1d9)]=_0x32ad48,this[_0xd28acc(0xb4)]=_0x5657ce,this[_0xd28acc(0x27f)]=_0x3cfa7b,this['_refRangeService']=_0x3d27e3);}get[_0x517afa(0x253)](){const _0x3b8c2c=_0x517afa;return this[_0x3b8c2c(0x234)][_0x3b8c2c(0x89)]();}get[_0x517afa(0xf4)](){const _0x27f646=_0x517afa;return this[_0x27f646(0x1f5)][_0x27f646(0x89)]();}['dispose'](){const _0x780598=_0x517afa;super[_0x780598(0x121)](),this['_cursorInfo$'][_0x780598(0xb2)](new Map()),this[_0x780598(0x234)][_0x780598(0x202)](),this[_0x780598(0x1f5)][_0x780598(0xb2)]([]),this['_roomMembers$'][_0x780598(0x202)]();}[_0x517afa(0x1bb)](){const _0x37fa7a=_0x517afa;this['_init']||(this[_0x37fa7a(0xf3)]=!0x0,this['_session'][_0x37fa7a(0x12b)][_0x37fa7a(0x7b)](_0xd33296(this['dispose$']))['subscribe'](_0x5070b9=>{const _0x7db586=_0x37fa7a;_0x5070b9===_0x309895['ONLINE']?this[_0x7db586(0x177)]():this[_0x7db586(0x218)]();}),this[_0x37fa7a(0xad)][_0x37fa7a(0x226)]['pipe'](_0xd33296(this[_0x37fa7a(0x1e9)]))[_0x37fa7a(0x243)](_0x1ec446=>{const _0x2813e6=_0x37fa7a,_0x3687af=_0x1ec446[_0x2813e6(0x69)];_0x3687af===_0x2aa15d[_0x2813e6(0xd7)]&&this[_0x2813e6(0x209)](_0x1ec446),_0x3687af===_0x2aa15d[_0x2813e6(0x26c)]&&this[_0x2813e6(0x20b)](_0x1ec446);}),this['_onRefRangeChange'](),this[_0x37fa7a(0x161)](this['_commandService'][_0x37fa7a(0x208)](_0x32761b=>{const _0x321346=_0x37fa7a;if(this['_online']&&_0x32761b['id']===_0x24b6af['id']&&_0x32761b['params'][_0x321346(0x140)]===this[_0x321346(0x186)]){const _0x46be23=_0x32761b[_0x321346(0x269)];this[_0x321346(0x284)](_0x46be23[_0x321346(0x15a)],_0x46be23[_0x321346(0x13a)][0x0]);}})));}[_0x517afa(0x209)](_0x473b66){const _0x3d45b0=_0x517afa;var _0x598fef,_0x39e513;const {memberID:_0x993bf4,selection:_0x8c5fb5}=_0x473b66['data'],{sheetName:_0x5d2220,range:_0x25b0ef}=_0x2f7970(_0x8c5fb5),_0x1d8bfc={'name':(_0x39e513=(_0x598fef=this[_0x3d45b0(0x1d9)][_0x3d45b0(0x1f9)](this[_0x3d45b0(0x186)],_0x993bf4))==null?void 0x0:_0x598fef[_0x3d45b0(0xf8)])!=null?_0x39e513:_0x3d45b0(0x22a),'range':this['_getMergeRange'](_0x5d2220,_0x25b0ef),'sheetID':_0x5d2220,'color':this[_0x3d45b0(0xe5)][_0x3d45b0(0xa0)](_0x993bf4),'selection':_0x8c5fb5},_0xd1788=this[_0x3d45b0(0x253)];_0xd1788[_0x3d45b0(0x11e)](_0x993bf4,_0x1d8bfc),this[_0x3d45b0(0x234)][_0x3d45b0(0xb2)](_0xd1788);}[_0x517afa(0x20b)](_0x3547f8){const _0x176164=_0x517afa,{memberID:_0x4ba7f3}=_0x3547f8[_0x176164(0x16f)],_0x63d5a2=this[_0x176164(0x253)];_0x63d5a2[_0x176164(0x26d)](_0x4ba7f3),this[_0x176164(0x234)][_0x176164(0xb2)](_0x63d5a2);}[_0x517afa(0x72)](_0x3aa281,_0x41b4ba){const _0x318f83=_0x517afa;var _0x549508,_0x3c770a;const _0x577250=(_0x3c770a=(_0x549508=this[_0x318f83(0xb4)][_0x318f83(0x11b)](this[_0x318f83(0x186)]))==null?void 0x0:_0x549508['getSheetBySheetId'](_0x3aa281))==null?void 0x0:_0x3c770a['getMergeData']();return(_0x577250==null?void 0x0:_0x577250[_0x318f83(0x108)](_0x300d92=>_0x54ee1a[_0x318f83(0x9c)](_0x300d92,_0x41b4ba)))||_0x41b4ba;}[_0x517afa(0x214)](){const _0x28e8fb=_0x517afa,_0x91e2df=new _0x57a43d(),_0x334ce3=Fi(),_0x19bbfd=()=>{const _0x2f3f19=_0x4ad2;_0x91e2df[_0x2f3f19(0x121)]();const _0x2b532b=(_0x19ee4b,_0x412742,_0x343cc0,_0x2847bd)=>{const _0x4225d7=_0x2f3f19;let _0x52674f=[];switch(_0x19ee4b['id']){case _0x3786ea[_0x4225d7(0x25c)]:{_0x52674f=_0x3b4431(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x131)]:{_0x52674f=_0x1cffba(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x10b)]:{_0x52674f=_0x11dfa9(_0x19ee4b,_0x2847bd);break;}case _0x3786ea['InsertRangeMoveDownCommandId']:{_0x52674f=_0x2cc346(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x203)]:{_0x52674f=_0x516fbd(_0x19ee4b,_0x2847bd);break;}case _0x3786ea['InsertRowCommandId']:{_0x52674f=_0x223b9d(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x94)]:{_0x52674f=_0x443ce7(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x8b)]:{_0x52674f=_0x1788e2(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x81)]:{_0x52674f=_0x559731(_0x19ee4b,_0x2847bd);break;}}const _0xf33b78=_0x575db5(_0x52674f,_0x2847bd),_0x2fb4f6=this[_0x4225d7(0x253)][_0x4225d7(0x19b)](_0x412742);if(_0x2fb4f6&&_0xf33b78){const _0x47de2e={..._0x2fb4f6,'range':_0xf33b78};this['cursorInfo']['set'](_0x412742,_0x47de2e),_0x334ce3(()=>{const _0x547b0f=_0x4225d7,_0x565801=this[_0x547b0f(0x16b)][_0x547b0f(0x20f)](_0xf33b78,_0x3632f4=>(_0x565801[_0x547b0f(0x121)](),_0x2b532b(_0x3632f4,_0x412742,_0x343cc0,_0xf33b78)));_0x91e2df['add'](_0x565801);});}return{'redos':[],'undos':[]};};this[_0x2f3f19(0x253)][_0x2f3f19(0x17f)]((_0x1b9df4,_0x5e6198)=>{const _0x4fb892=_0x2f3f19,{range:_0x30445a,sheetID:_0x3c7288}=_0x1b9df4,_0x2446c6=this[_0x4fb892(0x16b)][_0x4fb892(0x20f)](_0x30445a,_0x1abff8=>(_0x2446c6[_0x4fb892(0x121)](),_0x2b532b(_0x1abff8,_0x5e6198,_0x3c7288,_0x30445a)));_0x91e2df[_0x4fb892(0xef)](_0x2446c6);});};this[_0x28e8fb(0x161)](_0x5d128c(this['_cursorInfo$'][_0x28e8fb(0x243)](()=>{_0x19bbfd();})));}[_0x517afa(0x177)](){const _0x51f54b=_0x517afa;var _0x1769fe,_0x32afa9;if(this['_online']=!0x0,((_0x1769fe=this[_0x51f54b(0xb4)][_0x51f54b(0x228)]())==null?void 0x0:_0x1769fe[_0x51f54b(0x90)]())!==this[_0x51f54b(0x186)])return;const _0x145116=(_0x32afa9=this[_0x51f54b(0x22f)]['get'](_0x4b8257)[_0x51f54b(0xc9)]())==null?void 0x0:_0x32afa9[0x0],_0x332ac5=this[_0x51f54b(0xb4)]['getCurrentUnitForType'](_0x4ed0b3[_0x51f54b(0x211)])['getActiveSheet']();_0x145116&&_0x332ac5&&this['_updateLocalCursor'](_0x332ac5[_0x51f54b(0x83)](),_0x145116);}[_0x517afa(0x218)](){const _0x331618=_0x517afa;this[_0x331618(0xa7)]=!0x1;}};we=$i([B(0x2,_0x388393(_0x258030)),B(0x3,_0x388393(je)),B(0x4,_0x388393(_0x4164ee)),B(0x5,_0x30c7ee),B(0x6,_0x4ab028),B(0x7,_0x388393(_0x2c0610))],we);var ki=Object[_0x517afa(0x217)],Hi=(_0x4343dd,_0x56984c,_0x4bf1c9,_0x570a4d)=>{const _0x2a3f1e=_0x517afa;for(var _0x41c405=_0x570a4d>0x1?void 0x0:_0x570a4d?ki(_0x56984c,_0x4bf1c9):_0x56984c,_0x426f24=_0x4343dd[_0x2a3f1e(0x1d1)]-0x1,_0x5ce1c9;_0x426f24>=0x0;_0x426f24--)(_0x5ce1c9=_0x4343dd[_0x426f24])&&(_0x41c405=_0x5ce1c9(_0x41c405)||_0x41c405);return _0x41c405;},Ee=(_0x37743f,_0x25d6df)=>(_0x143889,_0x29524d)=>_0x25d6df(_0x143889,_0x29524d,_0x37743f);let H=class extends _0x518648{constructor(_0x645138,_0x11beec,_0xadfc10){const _0x5658f7=_0x517afa;super(),l(this,'_entities',new Map()),l(this,_0x5658f7(0x1cc),new _0x25ec2f()),(this[_0x5658f7(0xb4)]=_0x645138,this['_injector']=_0x11beec,this[_0x5658f7(0x1a8)]=_0xadfc10,this[_0x5658f7(0xf3)]());}[_0x517afa(0x121)](){const _0x35f67e=_0x517afa;super['dispose'](),this[_0x35f67e(0x1cc)][_0x35f67e(0x202)](),this[_0x35f67e(0x1e5)][_0x35f67e(0x17f)](_0x56f1f8=>_0x56f1f8[_0x35f67e(0x121)]());}[_0x517afa(0x205)](_0x411976){const _0x4783ea=_0x517afa;return this[_0x4783ea(0x1e5)][_0x4783ea(0x248)](_0x411976)?this[_0x4783ea(0x1e5)][_0x4783ea(0x19b)](_0x411976)[_0x4783ea(0x255)]:this[_0x4783ea(0x1cc)][_0x4783ea(0x7b)](_0x4edfe7(_0x3ab5ce=>_0x3ab5ce[_0x4783ea(0x186)]===_0x411976),_0x1308ff(_0x2de03e=>_0x2de03e['cursorInfo$']));}[_0x517afa(0xf3)](){const _0x206117=_0x517afa;this[_0x206117(0xb4)]['getTypeOfUnitAdded$'](_0x4ed0b3['UNIVER_SHEET'])[_0x206117(0x7b)](_0xd33296(this[_0x206117(0x1e9)]))[_0x206117(0x243)](async _0x3b652c=>{const _0x4e2ac6=_0x206117,_0x275a57=_0x3b652c[_0x4e2ac6(0x90)](),_0x4cd8b2=await this[_0x4e2ac6(0x17a)](_0x275a57);this[_0x4e2ac6(0x1cc)][_0x4e2ac6(0xb2)](_0x4cd8b2),this['_entities'][_0x4e2ac6(0x11e)](_0x275a57,_0x4cd8b2);}),this[_0x206117(0xb4)]['getTypeOfUnitAdded$'](_0x4ed0b3[_0x206117(0xf0)])[_0x206117(0x7b)](_0xd33296(this['dispose$']))[_0x206117(0x7b)](_0x4edfe7(_0x5aa57b=>!_0x5aa57b['getUnitId']()['startsWith']('__')))[_0x206117(0x243)](async _0x1ae181=>{const _0xbdeb3e=_0x206117,_0x2d62cf=_0x1ae181[_0xbdeb3e(0x90)](),_0x2a3076=await this[_0xbdeb3e(0x1e6)](_0x2d62cf);this[_0xbdeb3e(0x1cc)]['next'](_0x2a3076),this[_0xbdeb3e(0x1e5)][_0xbdeb3e(0x11e)](_0x2d62cf,_0x2a3076);}),_0x2f4c1a(this[_0x206117(0xb4)][_0x206117(0x1fa)](_0x4ed0b3['UNIVER_DOC']),this[_0x206117(0xb4)]['getTypeOfUnitDisposed$'](_0x4ed0b3[_0x206117(0x211)]))[_0x206117(0x7b)](_0xd33296(this[_0x206117(0x1e9)]))['subscribe'](_0x5691df=>{const _0x3323bb=_0x206117,_0x2e3e0e=_0x5691df[_0x3323bb(0x90)](),_0xef9d45=this[_0x3323bb(0x1e5)][_0x3323bb(0x19b)](_0x2e3e0e);_0xef9d45&&(_0xef9d45['dispose'](),this[_0x3323bb(0x1e5)]['delete'](_0x2e3e0e));});}async['_startSheetCollabCursor'](_0x2ba64c){const _0x3494ee=_0x517afa,_0x3b1762=await this[_0x3494ee(0x1a8)][_0x3494ee(0x146)](_0x2ba64c),_0x2f20e6=this['_injector'][_0x3494ee(0x263)](we,_0x2ba64c,_0x3b1762);return _0x2f20e6[_0x3494ee(0x1bb)](),_0x2f20e6;}async[_0x517afa(0x1e6)](_0x58e15b){const _0x4fb0b6=_0x517afa,_0x2df5c4=await this[_0x4fb0b6(0x1a8)][_0x4fb0b6(0x146)](_0x58e15b),_0x583a5e=this[_0x4fb0b6(0x22f)][_0x4fb0b6(0x263)](Pe,_0x58e15b,_0x2df5c4);return _0x583a5e[_0x4fb0b6(0x1bb)](),_0x583a5e;}};H=Hi([Ee(0x0,_0x30c7ee),Ee(0x1,_0x388393(_0x258030)),Ee(0x2,_0x388393(_0x2c25d7))],H);function _0x4ad2(_0x40d07e,_0x45a39a){const _0x1e85d5=_0x1e85();return _0x4ad2=function(_0x4ad208,_0x1fcd5c){_0x4ad208=_0x4ad208-0x64;let _0x1b0897=_0x1e85d5[_0x4ad208];return _0x1b0897;},_0x4ad2(_0x40d07e,_0x45a39a);}const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x4862c3,_0x56f022){const _0x1fbfa0=_0x517afa;let {radius:_0x7e1d69,width:_0x5960c5,height:_0x1056b4}=_0x56f022;_0x7e1d69=_0x7e1d69!=null?_0x7e1d69:0x0,_0x5960c5=_0x5960c5!=null?_0x5960c5:0x1e,_0x1056b4=_0x1056b4!=null?_0x1056b4:0x1e;let _0x2ef22f=0x0,_0x5724c0=0x0,_0x43f1fc=0x0;_0x2ef22f=_0x5724c0=_0x43f1fc=Math[_0x1fbfa0(0x135)](_0x7e1d69,_0x5960c5/0x2,_0x1056b4/0x2),_0x4862c3[_0x1fbfa0(0x266)](),_0x4862c3[_0x1fbfa0(0xec)](_0x2ef22f,0x0),_0x4862c3[_0x1fbfa0(0x105)](_0x5960c5-_0x5724c0,0x0),_0x4862c3[_0x1fbfa0(0x25a)](_0x5960c5-_0x5724c0,_0x5724c0,_0x5724c0,Math['PI']*0x3/0x2,0x0,!0x1),_0x4862c3[_0x1fbfa0(0x105)](_0x5960c5,_0x1056b4-_0x43f1fc),_0x4862c3['arc'](_0x5960c5-_0x43f1fc,_0x1056b4-_0x43f1fc,_0x43f1fc,0x0,Math['PI']/0x2,!0x1),_0x4862c3[_0x1fbfa0(0x105)](0x0,_0x1056b4),_0x4862c3[_0x1fbfa0(0x105)](0x0,_0x2ef22f),_0x4862c3[_0x1fbfa0(0x25a)](_0x2ef22f,_0x2ef22f,_0x2ef22f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4862c3[_0x1fbfa0(0x215)](),_0x56f022['fill']&&(_0x4862c3['save'](),_0x4862c3[_0x1fbfa0(0x101)]=_0x56f022['fill'],_0x56f022[_0x1fbfa0(0x1e7)]===_0x1fbfa0(0x67)?_0x4862c3[_0x1fbfa0(0x77)](_0x1fbfa0(0x67)):_0x4862c3[_0x1fbfa0(0x77)](),_0x4862c3['restore']());}class me extends _0x965c3a{constructor(_0x36e80f,_0x2d0a3b){const _0x419f38=_0x517afa;super(_0x36e80f,_0x2d0a3b),l(this,_0x419f38(0xdf)),l(this,_0x419f38(0x287)),(this[_0x419f38(0xdf)]=_0x2d0a3b==null?void 0x0:_0x2d0a3b[_0x419f38(0xdf)],this[_0x419f38(0x287)]=_0x2d0a3b==null?void 0x0:_0x2d0a3b['text']);}static['drawWith'](_0x50405d,_0x50678d){const _0x28aa27=_0x517afa,{text:_0x53ea7d,color:_0x10b704}=_0x50678d;_0x50405d[_0x28aa27(0x147)](),_0x50405d[_0x28aa27(0x292)]=_0x28aa27(0x7f);const _0x24eb2f=_0x50405d[_0x28aa27(0x1bc)](_0x53ea7d)[_0x28aa27(0x1ee)],_0x31efa3=Math['min'](_0x24eb2f+0x2*pe,it);Wi(_0x50405d,{'height':Q,'radius':0x4,'width':_0x31efa3,'fill':_0x10b704}),_0x50405d['fillStyle']='#FFF';const _0x36f223=pe,_0x47398d=Q-Yi,_0x1ff68a=it-0x2*pe;if(_0x24eb2f>_0x1ff68a){let _0x40b36d='',_0x53edf6=0x0;for(const _0x593334 of _0x53ea7d){const _0xd56cfa=_0x50405d[_0x28aa27(0x1bc)](_0x593334)['width'];if(_0x53edf6+_0xd56cfa<=_0x1ff68a-_0x50405d[_0x28aa27(0x1bc)](_0x28aa27(0xab))['width'])_0x40b36d+=_0x593334,_0x53edf6+=_0xd56cfa;else{_0x40b36d+=_0x28aa27(0xab);break;}}_0x50405d[_0x28aa27(0x12f)](_0x40b36d,_0x36f223,_0x47398d);}else _0x50405d[_0x28aa27(0x12f)](_0x53ea7d,_0x36f223,_0x47398d);_0x50405d[_0x28aa27(0x70)]();}[_0x517afa(0x78)](_0x5c164c){const _0x3fb4a0=_0x517afa;me[_0x3fb4a0(0x12c)](_0x5c164c,this);}}const Oe=_0x517afa(0x95),Vi=_0x517afa(0x1bf),ji='collab-rect-range-',z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x517afa(0x128);class nt{constructor(_0x12f06c,_0x3abc28,_0xbbaaae,_0x59ebcc){const _0x27b03e=_0x517afa;l(this,_0x27b03e(0x10c),[]),l(this,_0x27b03e(0x27d),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x27b03e(0x1aa),null),l(this,'_eventUnsubscribe',null),(this[_0x27b03e(0x270)]=_0x12f06c,this[_0x27b03e(0x132)]=_0x3abc28,this[_0x27b03e(0x136)]=_0xbbaaae,this[_0x27b03e(0x73)]=_0x59ebcc,this[_0x27b03e(0xc4)]());}set[_0x517afa(0xb5)](_0x3dfc13){const _0x4382ae=_0x517afa;_0x3dfc13?(this[_0x4382ae(0x236)]&&this[_0x4382ae(0x236)][_0x4382ae(0x181)](),this[_0x4382ae(0x28b)]&&this[_0x4382ae(0x28b)][_0x4382ae(0xd6)]()):(this[_0x4382ae(0x236)]&&this[_0x4382ae(0x236)]['show'](),this[_0x4382ae(0x28b)]&&this[_0x4382ae(0x28b)][_0x4382ae(0x181)]());}[_0x517afa(0x121)](){const _0x28062c=_0x517afa;for(const _0x4c0799 of this[_0x28062c(0x10c)])_0x4c0799[_0x28062c(0x121)]();this[_0x28062c(0x28b)]&&this[_0x28062c(0x28b)][_0x28062c(0x121)](),this[_0x28062c(0x236)]&&this[_0x28062c(0x236)]['dispose'](),this[_0x28062c(0x27d)]&&this[_0x28062c(0x27d)]['dispose'](),this[_0x28062c(0x185)]&&this[_0x28062c(0x185)]();}[_0x517afa(0xc4)](){const _0x4597c4=_0x517afa;var _0x17fa94;const {_docSkeleton:_0x383f21,_document:_0x264125}=this,{color:_0x309182,name:_0x4de3df,ranges:_0x22ef0c}=this['_cursor'],_0x585345=_0x264125['getOffsetConfig'](),{docsLeft:_0x2ccd0f,docsTop:_0x3703b4}=_0x585345,_0x1f7ad2=new _0x22b823(_0x585345,_0x383f21);for(const {startOffset:_0x31f17e,endOffset:_0x1af54b,rangeType:_0x728e6a,segmentId:_0x1b55fd,segmentPage:_0x3aeff9,collapsed:_0x5e4e86,isActive:_0x4a7d5d}of _0x22ef0c){const _0x134bdc=_0x383f21[_0x4597c4(0x10d)](_0x31f17e,!0x0,_0x1b55fd,_0x3aeff9);let _0x1e633f=_0x383f21[_0x4597c4(0x10d)](_0x1af54b,!0x0,_0x1b55fd,_0x3aeff9);if(_0x1e633f==null&&(_0x1e633f=_0x383f21[_0x4597c4(0x10d)](_0x1af54b-0x1,!0x1,_0x1b55fd,_0x3aeff9)),_0x4a7d5d){const {contentBoxPointGroup:_0x1f0935}=_0x1f7ad2[_0x4597c4(0x261)](_0x1e633f,_0x1e633f);if(_0x1f0935[_0x4597c4(0x1d1)]===0x0)continue;this[_0x4597c4(0x19f)](_0x309182,_0x1f0935,_0x2ccd0f,_0x3703b4,_0x4de3df),this[_0x4597c4(0x185)]=this['_handleHover']();}if(_0x134bdc&&_0x1e633f){if(_0x728e6a===_0x13dbee['RECT']){const _0x46e7be=new _0x4d41d5(_0x585345,_0x383f21),{pointGroup:_0x4b7d28}=(_0x17fa94=_0x46e7be['getRangePointData'](_0x134bdc,_0x1e633f))!=null?_0x17fa94:{};if(_0x4b7d28==null||_0x4b7d28[_0x4597c4(0x1d1)]===0x0)continue;this['_drawRectRange'](_0x309182,_0x4b7d28,_0x2ccd0f,_0x3703b4);}else{if(!_0x5e4e86){const {borderBoxPointGroup:_0x182dc4}=_0x1f7ad2['getRangePointData'](_0x134bdc,_0x1e633f);if(_0x182dc4['length']===0x0)continue;this[_0x4597c4(0xd9)](_0x309182,_0x182dc4,_0x2ccd0f,_0x3703b4);}}}}}[_0x517afa(0x19f)](_0xb937a3,_0x3aec95,_0x4103f6,_0x478822,_0x3643e6){const _0x5a6df9=_0x517afa,_0x2924fd=this[_0x5a6df9(0x16e)](_0x3aec95),{left:_0x5be36e,top:_0x42b5de,height:_0xd79e66}=_0x2924fd,_0x3319da=this['_getScale'](),_0x1707b8=Gi/_0x3319da,_0x2c7148=new _0x54f591(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822,'height':_0xd79e66,'width':Xi,'fill':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'strokeWidth':_0x1707b8,'stroke':Ki,'evented':!0x0});this['_anchor']=_0x2c7148,this['_scene'][_0x5a6df9(0x151)](_0x2c7148,_0x57eea3);const _0x408fef=new _0x54f591(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822-Te/0x2,'height':Te,'width':Te,'fill':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'strokeWidth':0x0,'stroke':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'evented':!0x1});this['_anchorDot']=_0x408fef,this[_0x5a6df9(0x132)][_0x5a6df9(0x151)](_0x408fef,_0x57eea3);const _0x13cb91=new me(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822-Q,'text':_0x3643e6,'color':_0xb937a3});this[_0x5a6df9(0x28b)]=_0x13cb91,this[_0x5a6df9(0x132)][_0x5a6df9(0x151)](_0x13cb91,_0x57eea3),this[_0x5a6df9(0xb5)]=!0x1;}['_handleHover'](){const _0x59dce2=_0x517afa,_0x59e6a7=this[_0x59dce2(0x27d)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x2bb66d=_0x59dce2;this[_0x2bb66d(0xb5)]=!0x0;}),_0xd0a599=this[_0x59dce2(0x27d)][_0x59dce2(0x1b6)][_0x59dce2(0x1b9)](()=>{const _0x236821=_0x59dce2;this[_0x236821(0x1aa)]&&clearTimeout(this[_0x236821(0x1aa)]),this['_hideTimer']=setTimeout(()=>{const _0x3fcac6=_0x236821;this[_0x3fcac6(0xb5)]=!0x1;},0x7d0);});return()=>{const _0x18ec8c=_0x59dce2;_0x59e6a7['unsubscribe'](),_0xd0a599[_0x18ec8c(0x183)]();};}[_0x517afa(0xd9)](_0x2a1681,_0x2ea02c,_0x194a02,_0x510151){const _0x429cac=_0x517afa,_0x2580a5=new _0x27dda8(_0x2a1681)[_0x429cac(0x227)](0.2)['toRgbString'](),_0x1f8b7a=new _0x6dd2a8(Vi+_0x24b861(z),{'pointsGroup':_0x2ea02c,'fill':_0x2580a5||_0x4d4f6a(_0x520d70[_0x429cac(0xba)],0.2),'left':_0x194a02,'top':_0x510151,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x429cac(0x10c)][_0x429cac(0x178)](_0x1f8b7a),this[_0x429cac(0x132)][_0x429cac(0x151)](_0x1f8b7a,_0x57eea3);}[_0x517afa(0x28f)](_0x31545d,_0x42c77e,_0x4a9f8d,_0x23bad3){const _0x5aa9f8=_0x517afa,_0x58f5e0=new _0x27dda8(_0x31545d)[_0x5aa9f8(0x227)](0.2)[_0x5aa9f8(0x10f)](),_0x576fa7=new _0x6dd2a8(ji+_0x24b861(z),{'pointsGroup':_0x42c77e,'fill':_0x58f5e0||_0x4d4f6a(_0x520d70[_0x5aa9f8(0xba)],0.2),'left':_0x4a9f8d,'top':_0x23bad3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5aa9f8(0x10c)][_0x5aa9f8(0x178)](_0x576fa7),this[_0x5aa9f8(0x132)][_0x5aa9f8(0x151)](_0x576fa7,_0x57eea3);}[_0x517afa(0x16e)](_0x217d00){const _0x4818ec=_0x217d00[0x0],_0x5cd9ee=_0x4818ec[0x0],_0x3fcf86=_0x4818ec[0x2],{x:_0x284e01,y:_0x49183d}=_0x5cd9ee,{x:_0x594e39,y:_0x1ea92d}=_0x3fcf86;return{'left':_0x284e01,'top':_0x49183d,'width':_0x594e39-_0x284e01,'height':_0x1ea92d-_0x49183d};}[_0x517afa(0x1ca)](){const _0x3b3368=_0x517afa,{scaleX:_0x4a2282,scaleY:_0x25b036}=this['_scene'][_0x3b3368(0x166)]();return Math[_0x3b3368(0x282)](_0x4a2282,_0x25b036);}}function _0x1e85(){const _0x41b31d=['color','OTHER_CLIENT_EDITING','APPLY_NON_SEQUENTIAL_REVISION','now','getSkeleton','1em','_colorAssignService','deepClone','clearInterval','getUndoRedoMutationParamsCache','isEditing','off-line-icon','green.600','moveTo','_localCacheService','toString','add','UNIVER_DOC','removeParam','size','_init','roomMembers','getParam','INTERNAL_ERROR','CONNECTOR_DATA_TOO_LARGE','name','PERMISSION_DENIED','ENTITLE_DUP_SUBSCRIPTION','addObjects','collabStatus.offline','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_docSyncEditingCollabCursorService','stringify','override','fillStyle','NO_OTHER_CLIENTS_EDITING','beforeCommandExecuted','REDEMPTION_USER_REDEEM_TIMES_EXCEED','lineTo','colorChannel1','REDEMPTION_CODE_FULLY_REDEEMED','find','substring','path','InsertColCommandId','_shapes','findNodePositionByCharIndex','onLocalMutation','toRgbString','_labelPosition','executeCommand','_setFormulaLimitStatus','_renderManagerService','displayName','session.collaboration-timeout','blue.400','306ZyzxlJ','ENTITLE_REPORT_LIMIT_EXCEED','permission.content','_initStatusComponent','getUniverSheetInstance','UNDEFINED','getStateCache','set','replaceState','defs','dispose','_doCreateSocket','_collabCursorState$','INVITE_CODE_REQUIRED','pushState','COMPLETION_FINISHED','collaboration.single-unit.warning','rgba(255,\x20255,\x20255,\x200.01)','formula.calculation.waiting','INVALID_ARGUMENT','sessionStatus$','drawWith','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cachedData','fillText','ENTITLE_INSUFFICIENT_QUOTA','DeleteRangeMoveUpCommandId','_scene','dirtyRanges','_heartbeatTimer','min','_docSkeleton','undoState','_range','transformSelections','selections','YUUMI_NO_CUBOID_FOR_QUESTION','setUndoRedoMutationParamsCache','INVITE_CODE_HAS_BEEN_UES','getRelativeToViewportCoord','OffLineIcon','unitId','currentUsage','409488MGjWXN','_docTransformStateCacheService','_getSaveTimeout','_refreshCollabCursors','requireSession','save','_removeClearOtherTimer','string','syncEditingCollabCursor','_lastResponseTimestamp','SYNCED','_taskIds','_collabCursorController','transformByState','_registerDependencies','addObject','translate(.97)','FETCH_MISS','error','status$','18530IsfPMZ','511064BUkdGW','_colorIndex','OTHER_CLIENTS_EDITING','subUnitId','_checkAndWaitForCalculationPermission','getDocRanges','_collaborationController','some','body','USER_IS_ANONYMOUS','disposeWithMe','totalFormulasToCalculate','registerBeforeClose','maxFormulaLimit','LICENSE_IMPORT_SIZE_EXCEEDED','getAncestorScale','DATA_SOURCE_TOO_LARGE','uni.network.url-service','910408KSeBKf','ERROR_AGAIN','_refRangeService','setStateCache','getVpScrollXYInfoByPosToVp','_getAnchorBounding','data','includes','FromArray','url(#off-line-icon_clip0_910_343)','history','_send','_scheduleClearOtherTimer','getCollabEntity$','_toggleOnline','push','ENTITLE_NEED_BILLING_ADDRESS','_startSheetCollabCursor','_applyCommand','_beforeCloseService','disableLocalCache','use','forEach','_config','hide','transformMutationsWithChangeset','unsubscribe','ticket','_eventUnsubscribe','unitID','_sheetSkeletonManagerService','_initCommandExecutedListener','then','USER_NOT_INVITED_CODE','REDEMPTION_INVALID_CODE','_scheduleHeartbeat','setItem','result','getSheetBySheetId','runOnServer','_messageService','currentColor','map','debug','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REVISION_CONFILICT','mask','asObservable','YUUMI_RATE_OVER_LIMIT','getActiveRange','get','univer-mr-2\x20univer-flex\x20univer-text-xl','activeSheet$','ENSURE_SNAPSHOT_EXECUTION','_drawAnchor','VIEW_MAIN','key','parse','_setupBeforeClosingHandler','getRenderById','_instanceService','storage','textRanges','_collabSessionService','SNAPSHOT_HAS_BEEN_REMOVED','_hideTimer','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_selfUnitIDs','INVALID_INVITE_CODE','Loading','children','_dataLoaderService','28EaLEWR','transformRemoteChangeset','search','NOT_FOUND','limitInfo','onPointerLeave$','div','_docSkeletonManagerService','subscribeEvent','RECT','init','measureText','assign','EMAIL_VERIFY_CODE_MISMATCH','collab-text-range-','_getSheetObject','_setupSubUnitSync','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','loadOfflineData','transformMutation','YUUMI_AI_RUN_FAILED','SNAPSHOT_INVALID_SNAPSHOT','top','_unitStatus','code','_getScale','WECHAT_HAS_BEEN_BOUND','_entityInit$','from','bottom','setTimeout','http://www.w3.org/2000/svg','length','getItem','_handleEvent','_docClipboardService','_showGuardMessage','Warning','AUTHORIZE_CODE_ILLEGAL','SOCKET_FAILED_RETRY','_memberService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','attrs','CURRENT_STATUS_CANNOT_OPERATE','entries','collabStatus.fetchMiss','engine','sheetID','APPLY_REJECT','_themeService','APPLY_DUPLICATED','imageSourceType','_entities','_startDocCollabCursor','fillRule','USER_NOT_FOUND','dispose$','executionId','session.connection-failed','unit','getViewport','width','defIds','getUnhiddenWorksheets','_id','_getFormulaLimitStatus','3DnRdhV','PAYMENT_CHANNEL_NOT_SUPPORT','_roomMembers$','resize','row','jiqing.500','getMember','getTypeOfUnitDisposed$','searchParams','backgroundColor','_clearOtherTimers','roomMembers$','updateOfflineData','EMAIL_HAS_BEEN_BOUND','getConfig','complete','InsertRangeMoveRightCommandId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getCollabCursors$','_maxFormulaLimit','[CollaborationDataLoaderController]','onCommandExecuted','_onCursorUpdate','redoState','_onCursorDelete','onPointerEnter$','_removeCollabCursors','urlChange$','registerRefRange','_lastPointer','UNIVER_SHEET','_revisionService','onMouseMove','_onRefRangeChange','closePath','replace','getOwnPropertyDescriptor','_toggleOffline','with','_initEvent','_httpService','PY_RUNTIME_SCRIPT_ERROR','YUUMI_CONNECTOR_URL_NOT_FOUND','LOGIN_TOKEN_PROCESSING_FAILED','doc.mutation.rich-text-editing','_saveCache','makeDirty','collaboration-client-ui.config','enableLocalCache','YUUMI_ALL_TABLES_IS_INVALID','hovered','event$','setAlpha','getFocusedUnit','isArray','Unknown\x20user','1265750RUVdjc','ACTIVE_UNIT_EVENT_CHANNEL','saveImage','pluginName','_injector','setConfig','_disabled','transformIMECache','START_CALCULATION','_cursorInfo$','post','_anchorDot','_logService','_imageIoService','docStateChange$','onStarting','YUUMI_SUBSCRIPTION_NOT_FOUND','_clearPolling','PENDING','_initStatusListener','_updateURLWithCurrentState','_handleLeaveEvent','_ensureSubject','_urlService','subscribe','_currentUsage','_status$','SOCKET_FAILED','/run/','has','height','isActive','NOT_COLLAB','m2Prime','getformulaLimitStatusUrl','all','getCurrentRevOfUnit','href','_handleJoinEvent','LICENSE_EXPORT_SIZE_EXCEEDED','cursorInfo','getCurrent','cursorInfo$','stage','_releaseCalculationLimit','application/json','saveOfflineData','arc','currentTheme$','DeleteRangeMoveLeftCommandId','red.300','_createSocketURL','ranges','collabStatus.notCollab','getRangePointData','_docTransformSelectionsService','createInstance','tag','editingUnit','beginPath','send','_uiPartsService','params','mutations','collaboration-client.offline-data-not-saved','USERS_LEAVE','delete','transform','SUBMIT_CHANGESET_TIMEOUT','_cursor','_assignedColors','_hovered','/universer-api/license/formula/limit/done','entityInit$','CONFLICT','idSuffix','_docStateChangeManagerService','YUUMI_URL_COL_OUT_OF_RANGE','_transformUndoRedoStack','_saveTaskMap','ENTITLE_CHAT_LIMIT_EXCEED','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','_anchor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_commandService','?taskId=','setParam','max','stageInfo','_updateLocalCursor','unshift','MUTATION','text','_color','_initCommandInterceptor','LICENSE_MAX_UNITS_EXCEEDED','_textBubble','column','ALREADY_EXISTS','_localStorageService','_drawRectRange','location','MOBILE_HAS_BEEN_BOUND','font','INVITE_CODE_ALREADY_BOUND','2783889SmCIue','_transformService','_docTransformIMECacheService','setInterval','wsSessionTicketUrl','SUCCESS','_syncEditingCollabCursorService','evenodd','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','eventID','_transformPreviousActiveRange','runId','_updateSubUnitFromURLParams','selection','registerRenderModule','svg','restore','univer-flex\x20univer-items-center','_getMergeRange','_document','_transformHistoryAndStateStack','reconnect','REDEMPTION_CODE_HAS_BEEN_CREATED','fill','_draw','shift','M0\x200H16V16H0z','pipe','permission.title','subunit','type','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','endRow','RemoveRowCommandId','298865ytrNhi','getSheetId','collabStatus.conflict','_initResize','currentSkeleton$','origin','_name','getValue','_hasFormulaInDirtyRanges','RemoveColCommandId','_startCalculationLimit','YUUMI_ASYNCIO_CANCELLED','_backgroundColor','Error','getUnitId','_context','_updateCollabCursors','whenReady','MoveRangeCommandId','collab-text-anchor-','exhaustSavingTask','APPLY_PERMISSION_DENIED','endColumn','_pollingInterval','_unitOnClients','_scheduleSaving','contains','url(#$1','off-line-icon_clip0_910_343','OFFLINE','assignAColorForMemberID','xlink:href','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initEntityListener','split','MOBILE_VERIFY_CODE_MISMATCH','collabCursorState$','_online','defineProperty','on-line-icon','m1Prime','...','functionsExecutedState','_session','_registerRenderDependencies','values','YUUMI_UNABLE_LOAD_URL','0\x200\x2017\x2016','next','saveTaskMap','_univerInstanceService','_hover','newValue','TOO_MANY_REQUESTS','_notificationService','Failed','black','setShapeProps','0\x200\x2016\x2016','_cursors','clearTimeout','REDEMPTION_CODE_INACTIVE','LICENSE_DISTRO_REJECTED','UNRECOGNIZED','getMemberID','REDEMPTION_CODE_NOT_STARTED','_render','_getSessionTicket','_configService','onPointerMove$','collaboration.closeRoom','getCurrentSelections','startFormulaLimitUrl','round','disposeUnit','addClipboardHook','startRow','startColumn','focused$','transformStateCache','_checkCalculationAvailable','addHandlerCallback','unload','loadUnit','show','UPDATE_CURSOR','UNAUTHENTICATED','_drawTextRange','_cursorShapes','_localeService','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','LOGIN_FAILED','on-line-icon_clip0_910_349'];_0x1e85=function(){return _0x41b31d;};return _0x1e85();}var zi=Object[_0x517afa(0x217)],Ji=(_0x37f32c,_0xba789f,_0x3c5667,_0x3c03c2)=>{const _0x40201f=_0x517afa;for(var _0x45c090=_0x3c03c2>0x1?void 0x0:_0x3c03c2?zi(_0xba789f,_0x3c5667):_0xba789f,_0x50ab61=_0x37f32c[_0x40201f(0x1d1)]-0x1,_0x36b1df;_0x50ab61>=0x0;_0x50ab61--)(_0x36b1df=_0x37f32c[_0x50ab61])&&(_0x45c090=_0x36b1df(_0x45c090)||_0x45c090);return _0x45c090;},ie=(_0x403136,_0x132da6)=>(_0x4c0073,_0x17be63)=>_0x132da6(_0x4c0073,_0x17be63,_0x403136);let ye=class extends _0x518648{constructor(_0x337615,_0x135bbf,_0x5f2687,_0x20199d,_0x2ea171){const _0x56fd18=_0x517afa;super(),l(this,_0x56fd18(0xda),[]),l(this,_0x56fd18(0xbd),[]),(this[_0x56fd18(0x91)]=_0x337615,this[_0x56fd18(0x1b8)]=_0x135bbf,this[_0x56fd18(0x14e)]=_0x5f2687,this[_0x56fd18(0x27f)]=_0x20199d,this[_0x56fd18(0x1e2)]=_0x2ea171,this['_init']());}[_0x517afa(0xf3)](){const _0xf2a926=_0x517afa,_0x4ae723=this[_0xf2a926(0x91)]['unitId'],_0x1f4125=this['_docSkeletonManagerService'];this[_0xf2a926(0x161)](_0x41429a([this[_0xf2a926(0x14e)][_0xf2a926(0x205)](_0x4ae723),this['_themeService'][_0xf2a926(0x25b)]])[_0xf2a926(0x7b)](_0x4ee011(([_0x2ff7f8,_0x477b9e])=>({'skeleton':_0x1f4125['getSkeleton'](),'cursors':[..._0x2ff7f8[_0xf2a926(0xaf)]()]['flatMap'](_0x34f9f0=>({..._0x34f9f0,'color':this[_0xf2a926(0x1e2)]['getColorFromTheme'](_0x34f9f0[_0xf2a926(0xdf)])}))})))[_0xf2a926(0x243)](_0x371178=>{const _0x53095d=_0xf2a926;if(this[_0x53095d(0x20d)](),_0x371178){const {skeleton:_0xcdfbd,cursors:_0x23b662}=_0x371178;this[_0x53095d(0x92)](_0xcdfbd,_0x23b662);}})),this[_0xf2a926(0x85)](),this['_initCommandExecutedListener']();}[_0x517afa(0x92)](_0x419188,_0x55a1b3){const _0x2cf2cd=_0x517afa,{scene:_0x316f7a,mainComponent:_0x30bd54}=this[_0x2cf2cd(0x91)],_0x8f5119=_0x55a1b3[_0x2cf2cd(0x193)](_0x242929=>new nt(_0x242929,_0x316f7a,_0x419188,_0x30bd54));this[_0x2cf2cd(0xda)]=_0x8f5119,this['_cursors']=_0x55a1b3;}[_0x517afa(0x145)](){const _0x4bd211=_0x517afa;this[_0x4bd211(0x20d)]();const {scene:_0xae241a,mainComponent:_0x2805ee}=this[_0x4bd211(0x91)],_0x3794cc=this[_0x4bd211(0x1b8)][_0x4bd211(0xe3)](),_0x6a473b=this[_0x4bd211(0xbd)]['map'](_0x107e45=>new nt(_0x107e45,_0xae241a,_0x3794cc,_0x2805ee));this[_0x4bd211(0xda)]=_0x6a473b;}[_0x517afa(0x20d)](){const _0x323f63=_0x517afa;this[_0x323f63(0xda)][_0x323f63(0x17f)](_0x3780c6=>_0x3780c6[_0x323f63(0x121)]()),this['_cursorShapes']=[];}[_0x517afa(0x188)](){const _0x244f56=_0x517afa,_0x101246=[_0x2a3ec3['id']];this[_0x244f56(0x161)](this['_commandService']['onCommandExecuted'](_0x498361=>{const _0x196b5a=_0x244f56;_0x101246[_0x196b5a(0x170)](_0x498361['id'])&&_0x498361[_0x196b5a(0x269)][_0x196b5a(0x140)]===this[_0x196b5a(0x91)][_0x196b5a(0x140)]&&this[_0x196b5a(0x145)]();}));}[_0x517afa(0x85)](){const _0x3424c1=_0x517afa;this['disposeWithMe'](_0xdcf17c(this[_0x3424c1(0x91)][_0x3424c1(0x1df)]['onTransformChange$'])['pipe'](_0x4cc029(_0x216c0b=>_0x216c0b['type']===_0x2dd456[_0x3424c1(0x1f6)]),_0x1a7dfa(0x10))[_0x3424c1(0x243)](()=>{const _0x3dc584=_0x3424c1;this[_0x3dc584(0x145)]();}));}};ye=Ji([ie(0x1,_0x388393(_0x162c1a)),ie(0x2,_0x388393(H)),ie(0x3,_0x4ab028),ie(0x4,_0x388393(_0x4d7d85))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x965c3a{constructor(_0x429493,_0x2c559c){const _0x228d2d=_0x517afa;super(_0x429493,_0x2c559c),l(this,_0x228d2d(0x288)),l(this,_0x228d2d(0x272),!0x1),l(this,_0x228d2d(0x138)),l(this,_0x228d2d(0x88),''),l(this,_0x228d2d(0x110),_0x228d2d(0x1c7)),l(this,_0x228d2d(0x8e)),(_0x2c559c&&this[_0x228d2d(0xbb)](_0x2c559c),this[_0x228d2d(0x20c)][_0x228d2d(0x1b9)](()=>this[_0x228d2d(0xbb)]({'hovered':!0x0})),this[_0x228d2d(0x1b6)][_0x228d2d(0x1b9)](()=>this[_0x228d2d(0xbb)]({'hovered':!0x1})));}[_0x517afa(0xbb)](_0x26d96c){const _0x2e0c41=_0x517afa;var _0x551ba4,_0x58e5f8,_0x35a6bf,_0x19e734,_0x1c8749,_0x1f8002;this[_0x2e0c41(0x288)]=(_0x551ba4=_0x26d96c[_0x2e0c41(0xdf)])!=null?_0x551ba4:this[_0x2e0c41(0x288)],this['_hovered']=(_0x58e5f8=_0x26d96c[_0x2e0c41(0x225)])!=null?_0x58e5f8:this[_0x2e0c41(0x272)],this[_0x2e0c41(0x138)]=(_0x35a6bf=_0x26d96c['range'])!=null?_0x35a6bf:this[_0x2e0c41(0x138)],this['_name']=(_0x19e734=_0x26d96c[_0x2e0c41(0xf8)])!=null?_0x19e734:this[_0x2e0c41(0x88)],this[_0x2e0c41(0x110)]=(_0x1c8749=_0x26d96c['labelPosition'])!=null?_0x1c8749:this[_0x2e0c41(0x110)],this[_0x2e0c41(0x8e)]=(_0x1f8002=_0x26d96c[_0x2e0c41(0x1fc)])!=null?_0x1f8002:this[_0x2e0c41(0x8e)],this[_0x2e0c41(0x14f)]({'width':_0x26d96c[_0x2e0c41(0x1ee)],'height':_0x26d96c['height']});}[_0x517afa(0x213)](_0x3dab74){const _0x282a2a=_0x517afa,{row:_0x4861b1,column:_0x6fc78f}=_0x3dab74;if(_0x4861b1>=this[_0x282a2a(0x138)][_0x282a2a(0xce)]&&_0x4861b1<=this[_0x282a2a(0x138)][_0x282a2a(0x80)]&&_0x6fc78f>=this[_0x282a2a(0x138)]['startColumn']&&_0x6fc78f<=this[_0x282a2a(0x138)]['endColumn']){this[_0x282a2a(0xbb)]({'hovered':!0x0});return;}this[_0x282a2a(0xbb)]({'hovered':!0x1});}['triggerDblclick'](_0x3e58e0){return!0x1;}[_0x517afa(0x78)](_0x1444c3){const _0x299a14=_0x517afa;_0x54f591[_0x299a14(0x12c)](_0x1444c3,{'width':this['width'],'height':this[_0x299a14(0x249)],'strokeWidth':Qi,'stroke':this[_0x299a14(0x288)],'evented':!0x1,'fill':this[_0x299a14(0x8e)]}),this[_0x299a14(0x272)]&&(_0x1444c3[_0x299a14(0x147)](),_0x1444c3[_0x299a14(0x26e)](0x1,0x0,0x0,0x1,this[_0x299a14(0x1ee)],this[_0x299a14(0x110)]===_0x299a14(0x1ce)?0x0:-Q),me['drawWith'](_0x1444c3,{'text':this[_0x299a14(0x88)],'color':this['_color']}),_0x1444c3['restore']());}}var en=Object[_0x517afa(0x217)],tn=(_0x19ebf0,_0x5b13fc,_0x343362,_0xd8df34)=>{const _0x554386=_0x517afa;for(var _0x1b931e=_0xd8df34>0x1?void 0x0:_0xd8df34?en(_0x5b13fc,_0x343362):_0x5b13fc,_0x13641c=_0x19ebf0[_0x554386(0x1d1)]-0x1,_0x43d7c1;_0x13641c>=0x0;_0x13641c--)(_0x43d7c1=_0x19ebf0[_0x13641c])&&(_0x1b931e=_0x43d7c1(_0x1b931e)||_0x1b931e);return _0x1b931e;},Ce=(_0x4f7dba,_0x12892a)=>(_0x3ddac3,_0x1747de)=>_0x12892a(_0x3ddac3,_0x1747de,_0x4f7dba);const sn=0x1389;let $e=class extends _0x518648{constructor(_0x33e5e2,_0x1487ff,_0x266e7a,_0x77ee90){const _0x4e637b=_0x517afa;super(),l(this,_0x4e637b(0xbd),new Set()),l(this,_0x4e637b(0x210),null),(this[_0x4e637b(0x91)]=_0x33e5e2,this[_0x4e637b(0x187)]=_0x1487ff,this[_0x4e637b(0x14e)]=_0x266e7a,this[_0x4e637b(0x1e2)]=_0x77ee90,this[_0x4e637b(0xf3)]());}['_init'](){const _0x297707=_0x517afa;this[_0x297707(0x187)]['currentSkeleton$'][_0x297707(0x7b)](_0x2533f0(this[_0x297707(0x1e9)]),_0x23dfcb(_0x1e6620=>{const _0x2a1bde=_0x297707;if(_0x1e6620){const _0x490071=_0x1e6620['sheetId'];return _0x41429a(this['_collabCursorController'][_0x2a1bde(0x205)](this[_0x2a1bde(0x91)][_0x2a1bde(0x140)]),this['_themeService'][_0x2a1bde(0x25b)])['pipe'](_0x4ee011(([_0x39b135,_0x2465d0])=>{const _0xf6c9d0=new Map();return _0x39b135['forEach']((_0x3433c5,_0x1801cc)=>{const _0x5d9b51=_0x4ad2;if(_0x3433c5[_0x5d9b51(0x1e0)]===_0x490071){const _0x1fc8c0={..._0x3433c5};_0x1fc8c0[_0x5d9b51(0xdf)]=this['_themeService']['getColorFromTheme'](_0x3433c5[_0x5d9b51(0xdf)]),_0xf6c9d0['set'](_0x1801cc,_0x1fc8c0);}}),{'skeleton':_0x1e6620,'cursors':_0xf6c9d0};}));}return _0x38b4ff({'skeleton':null,'cursors':new Map()});}))[_0x297707(0x243)](({skeleton:_0x149f3c,cursors:_0x268c40})=>{const _0x35d9bb=_0x297707;this[_0x35d9bb(0x20d)](),_0x149f3c&&this[_0x35d9bb(0x92)](_0x149f3c,_0x268c40);}),this[_0x297707(0x187)][_0x297707(0x86)][_0x297707(0x243)](_0x25150f=>{const _0x5a48cb=_0x297707;if(_0x25150f==null)return;const {skeleton:_0x383828}=_0x25150f,{scene:_0x497a31}=this[_0x5a48cb(0x91)];_0x497a31[_0x5a48cb(0xc7)][_0x5a48cb(0x1b9)](_0x5465f7(_0x50dfb9=>{const _0xa2bb71=_0x5a48cb;var _0x46760c,_0x293d2f;const {offsetX:_0x562630,offsetY:_0x256a81}=_0x50dfb9,{x:_0x405776,y:_0x2cd196}=_0x497a31[_0xa2bb71(0x13e)](_0x4ad7c8['FromArray']([_0x562630,_0x256a81])),{scaleX:_0xc028e0,scaleY:_0x412b03}=_0x497a31['getAncestorScale'](),_0x322b0f=_0x497a31[_0xa2bb71(0x1ed)](_0x1f1ace[_0xa2bb71(0x1a0)]),_0x386160=_0x497a31[_0xa2bb71(0x16d)](_0x4ad7c8[_0xa2bb71(0x171)]([_0x405776,_0x2cd196]),_0x322b0f),_0x1b27c7=_0x383828['getCellPositionByOffset'](_0x562630,_0x256a81,_0xc028e0,_0x412b03,_0x386160);((_0x46760c=this[_0xa2bb71(0x210)])==null?void 0x0:_0x46760c[_0xa2bb71(0x28c)])===_0x1b27c7[_0xa2bb71(0x28c)]&&((_0x293d2f=this[_0xa2bb71(0x210)])==null?void 0x0:_0x293d2f[_0xa2bb71(0x1f7)])===_0x1b27c7[_0xa2bb71(0x1f7)]||this['_cursors'][_0xa2bb71(0x17f)](_0x26a033=>{const _0x2a177c=_0xa2bb71;_0x26a033[_0x2a177c(0x213)](_0x1b27c7);});},0x64));});}['_updateCollabCursors'](_0x3807b7,_0x3a10aa){const _0x6efb2=_0x517afa;var _0xf20e6b;const _0x5be4a1=(_0xf20e6b=this[_0x6efb2(0x187)][_0x6efb2(0x254)]())==null?void 0x0:_0xf20e6b['skeleton'];if(!_0x5be4a1)return;const _0xa8162b=this[_0x6efb2(0x1c0)]();if(!_0xa8162b)return;this['_cursors']['forEach'](_0x306482=>{const _0x27ef68=_0x6efb2;_0x306482[_0x27ef68(0x221)]();});const {scene:_0x92f103}=_0xa8162b,_0x36f274=nn(Array[_0x6efb2(0x1cd)](_0x3a10aa[_0x6efb2(0xaf)]()))[_0x6efb2(0x193)](_0x432f9f=>{const _0x2fdd41=_0x6efb2,{color:_0x5887f9,range:_0x5791a0,name:_0x189001,selection:_0x26a515,sheetID:_0x2db938}=_0x432f9f,{startColumn:_0x44bc8d,startRow:_0x3f332b,endColumn:_0x1a936b,endRow:_0x47cdf1}=_0x5791a0,_0x28ff1d=_0x10d1ca(_0x3f332b,_0x44bc8d,_0x92f103,_0x5be4a1),_0x11406b=_0x10d1ca(_0x47cdf1,_0x1a936b,_0x92f103,_0x5be4a1),{columnHeaderHeightAndMarginTop:_0x17a643}=_0x5be4a1,{startX:_0x54bd26,startY:_0x48f706}=_0x28ff1d,{endX:_0x204883,endY:_0x15896f}=_0x11406b,_0x295131=_0x204883-_0x54bd26,_0x4bca02=_0x15896f-_0x48f706,_0x448721={'labelPosition':_0x48f706-_0x17a643>=Q?_0x2fdd41(0x1c7):_0x2fdd41(0x1ce),'sheetID':_0x2db938,'range':_0x5791a0,'color':_0x5887f9,'name':_0x189001,'selection':_0x26a515,'left':_0x54bd26,'top':_0x48f706,'width':_0x295131,'height':_0x4bca02,'evented':!0x1,'zIndex':sn};return new qi(_0x189001,_0x448721);});_0x92f103[_0x6efb2(0xfb)](_0x36f274,Zi),this['_cursors']=new Set(_0x36f274);}['_removeCollabCursors'](){const _0x24ceff=_0x517afa;var _0xd168a8;(_0xd168a8=this[_0x24ceff(0xbd)])==null||_0xd168a8[_0x24ceff(0x17f)](_0xd9841d=>_0xd9841d[_0x24ceff(0x121)]());}[_0x517afa(0x1c0)](){const _0x11f851=_0x517afa;return _0x3aa887(this[_0x11f851(0x91)][_0x11f851(0x1ec)],this[_0x11f851(0x91)]);}};$e=tn([Ce(0x1,_0x388393(_0x4703f3)),Ce(0x2,_0x388393(H)),Ce(0x3,_0x388393(_0x4d7d85))],$e);function nn(_0x434a65){const _0x487d08=_0x517afa,_0x5e10c9=new Map();return _0x434a65[_0x487d08(0x17f)](_0x56c4b0=>{const _0x1a899d=_0x487d08;if(_0x5e10c9['has'](_0x56c4b0[_0x1a899d(0x6d)])){const _0x7e279e=_0x5e10c9[_0x1a899d(0x19b)](_0x56c4b0[_0x1a899d(0x6d)]);_0x7e279e[_0x1a899d(0xf8)]+=',\x20'+_0x56c4b0[_0x1a899d(0xf8)];}else _0x5e10c9[_0x1a899d(0x11e)](_0x56c4b0[_0x1a899d(0x6d)],_0x56c4b0);}),Array[_0x487d08(0x1cd)](_0x5e10c9['values']());}var rn=Object[_0x517afa(0x217)],on=(_0x3b4fed,_0x4e1716,_0x2500c0,_0x403b6d)=>{const _0x48abf1=_0x517afa;for(var _0x1c212d=_0x403b6d>0x1?void 0x0:_0x403b6d?rn(_0x4e1716,_0x2500c0):_0x4e1716,_0xad212c=_0x3b4fed[_0x48abf1(0x1d1)]-0x1,_0x5b5257;_0xad212c>=0x0;_0xad212c--)(_0x5b5257=_0x3b4fed[_0xad212c])&&(_0x1c212d=_0x5b5257(_0x1c212d)||_0x1c212d);return _0x1c212d;},F=(_0x20f412,_0x25f52c)=>(_0x5c5a3d,_0x4d3194)=>_0x25f52c(_0x5c5a3d,_0x4d3194,_0x20f412);let ce=class extends _0x4057f7{constructor(_0x3700ff,_0x5488b2,_0x44b68e,_0x39ac2a,_0x1befe7,_0x1f1a07){const _0x6cbe1b=_0x517afa;super(),this['_beforeCloseService']=_0x3700ff,this[_0x6cbe1b(0xed)]=_0x5488b2,this['_collaborationUIEventService']=_0x44b68e,this[_0x6cbe1b(0x191)]=_0x39ac2a,this[_0x6cbe1b(0xb8)]=_0x1befe7,this[_0x6cbe1b(0xdb)]=_0x1f1a07,this[_0x6cbe1b(0x1a3)](),this[_0x6cbe1b(0x21a)]();}[_0x517afa(0x1a3)](){const _0x34ba59=_0x517afa;this['disposeWithMe'](this[_0x34ba59(0x17c)][_0x34ba59(0x163)](()=>{const _0x5cdd06=_0x34ba59;if(this['_localCacheService'][_0x5cdd06(0xb3)][_0x5cdd06(0xf2)])return this[_0x5cdd06(0xdb)]['t'](_0x5cdd06(0x26b));}));}[_0x517afa(0x21a)](){const _0x1f8fd1=_0x517afa;this['disposeWithMe'](this['_collaborationUIEventService'][_0x1f8fd1(0x226)][_0x1f8fd1(0x243)](_0x17b0da=>{const _0x2ccaaa=_0x1f8fd1;_0x17b0da['id']===_0x175362[_0x2ccaaa(0xe0)]&&this[_0x2ccaaa(0x191)]['show']({'type':_0x43794b['Warning'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x127))}),_0x17b0da['id']===_0x175362['CLOSE_ROOM']&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x1d6)],'content':this['_localeService']['t'](_0x2ccaaa(0xc8))}),_0x17b0da['id']===_0x175362['PERMISSION_DENIED']&&this[_0x2ccaaa(0xb8)][_0x2ccaaa(0xd6)]({'title':this['_localeService']['t'](_0x2ccaaa(0x7c)),'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x119)),'type':'error','duration':0x0}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x275)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Error'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0xc8))+'('+_0x17b0da[_0x2ccaaa(0x16f)]+')'}),_0x17b0da['id']===_0x175362['JOIN_ROOM_FAILED']&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x1d6)],'content':this[_0x2ccaaa(0xdb)]['t'](_0x17b0da[_0x2ccaaa(0x16f)]||'')}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x1d8)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Warning'],'content':this[_0x2ccaaa(0xdb)]['t']('session.will-retry')}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x246)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x8f)],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x1eb))}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x26f)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Error'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x115))});}));}};ce=on([F(0x0,_0x1e0e35),F(0x1,_0x190965),F(0x2,_0x388393(_0x3671b7)),F(0x3,_0x341740),F(0x4,_0x577074),F(0x5,_0x388393(_0x3ae72e))],ce);const an=_0x517afa(0x222),rt={};var cn=Object[_0x517afa(0x217)],_n=(_0x3ae042,_0x10a46f,_0x273f65,_0x3c9bdb)=>{const _0x518aa0=_0x517afa;for(var _0x187418=_0x3c9bdb>0x1?void 0x0:_0x3c9bdb?cn(_0x10a46f,_0x273f65):_0x10a46f,_0x111d57=_0x3ae042[_0x518aa0(0x1d1)]-0x1,_0x55fd48;_0x111d57>=0x0;_0x111d57--)(_0x55fd48=_0x3ae042[_0x111d57])&&(_0x187418=_0x55fd48(_0x187418)||_0x187418);return _0x187418;},ot=(_0x324d99,_0x4e30d1)=>(_0x59d06c,_0x17e609)=>_0x4e30d1(_0x59d06c,_0x17e609,_0x324d99);let _e=class{constructor(_0x5b9987,_0x39f375){const _0x5ea6c4=_0x517afa;this[_0x5ea6c4(0x295)]=_0x5b9987,this[_0x5ea6c4(0x113)]=_0x39f375;}['transformIMECache'](_0x19c6ac){const _0x59d30b=_0x517afa;this['_transformUndoRedoStack'](_0x19c6ac),this[_0x59d30b(0x6a)](_0x19c6ac);}[_0x517afa(0x1b2)](_0x1f5f28){const _0x47d3ac=_0x517afa,{unitID:_0x435790}=_0x1f5f28,_0x971b61=this[_0x47d3ac(0x113)][_0x47d3ac(0x1a4)](_0x435790)[_0x47d3ac(0x219)](_0x30a772),{redoCache:_0x5f12b9}=_0x971b61[_0x47d3ac(0xe8)]();if(_0x5f12b9[_0x47d3ac(0x1d1)]===0x0)return _0x1f5f28;let _0x463c29=_0x24fd68[_0x47d3ac(0xe6)](_0x1f5f28[_0x47d3ac(0x26a)][0x0]);for(let _0x47838d=0x0;_0x47838d<_0x5f12b9['length'];_0x47838d++){const _0x92998b={'id':_0x47d3ac(0x21f),'params':{..._0x5f12b9[_0x47838d]}},_0x567bcd=this[_0x47d3ac(0x295)][_0x47d3ac(0x1c4)](_0x463c29,_0x92998b,!0x1);if(_0x18536c(_0x567bcd))throw _0x567bcd[_0x47d3ac(0x154)];_0x463c29=_0x567bcd[_0x47d3ac(0xaa)];}return{..._0x24fd68['deepClone'](_0x1f5f28),'mutations':[_0x463c29]};}[_0x517afa(0x279)](_0x2edaba){const _0x1124e6=_0x517afa,{unitID:_0x3df96a}=_0x2edaba,_0x5b3589=this[_0x1124e6(0x113)][_0x1124e6(0x1a4)](_0x3df96a)[_0x1124e6(0x219)](_0x30a772),{undoCache:_0x6b1ddf,redoCache:_0x584b5c}=_0x5b3589[_0x1124e6(0xe8)]();if(_0x6b1ddf['length']===0x0||_0x584b5c[_0x1124e6(0x1d1)]===0x0)return;const _0x2f2b3f=[],_0x1ff2da=[];let _0x126d48=_0x24fd68['deepClone'](_0x2edaba[_0x1124e6(0x26a)][0x0]),_0x550f33=_0x24fd68[_0x1124e6(0xe6)](_0x2edaba[_0x1124e6(0x26a)][0x0]);for(let _0x2efa3f=_0x6b1ddf['length']-0x1;_0x2efa3f>=0x0;_0x2efa3f--){const _0x1d2383={'id':_0x1124e6(0x21f),'params':{..._0x6b1ddf[_0x2efa3f]}},_0x52fa1a={'id':'doc.mutation.rich-text-editing','params':{..._0x584b5c[_0x2efa3f]}},_0x4f453d=this[_0x1124e6(0x295)][_0x1124e6(0x1c4)](_0x126d48,_0x1d2383,!0x1),_0x1d1bcb=this[_0x1124e6(0x295)]['transformMutation'](_0x550f33,_0x52fa1a,!0x1);if(_0x18536c(_0x4f453d))throw _0x4f453d[_0x1124e6(0x154)];if(_0x18536c(_0x1d1bcb))throw _0x1d1bcb[_0x1124e6(0x154)];_0x2f2b3f['unshift'](_0x4f453d[_0x1124e6(0x24c)]['params']),_0x1ff2da[_0x1124e6(0x285)](_0x1d1bcb[_0x1124e6(0x24c)][_0x1124e6(0x269)]),_0x126d48=_0x4f453d[_0x1124e6(0xaa)],_0x550f33=_0x1d1bcb[_0x1124e6(0xaa)];}_0x5b3589[_0x1124e6(0x13c)]({'undoCache':_0x2f2b3f,'redoCache':_0x1ff2da});}[_0x517afa(0x6a)](_0x4dc19c){const _0x2e5859=_0x517afa,{unitID:_0x5e00d8}=_0x4dc19c,_0x5942f7=this[_0x2e5859(0x113)][_0x2e5859(0x1a4)](_0x5e00d8)['with'](_0x30a772),_0x4afd79=_0x5942f7[_0x2e5859(0x19a)]();if(_0x4afd79==null)return;const _0x18b393=[{'id':_0x2e5859(0x21f),'params':{'unitId':_0x4dc19c[_0x2e5859(0x186)],'actions':null,'textRanges':[_0x4afd79]}}],_0x4ebfe5=this[_0x2e5859(0x295)]['transformMutationsWithChangeset'](_0x4dc19c,_0x18b393);if(!_0x2ef47c(_0x4ebfe5))throw _0x4ebfe5['error'];const _0x31d6ae=_0x4ebfe5[_0x2e5859(0x24c)][0x0][_0x2e5859(0x269)]['textRanges'];Array[_0x2e5859(0x229)](_0x31d6ae)&&_0x31d6ae[_0x2e5859(0x1d1)]&&_0x5942f7['setActiveRange'](_0x31d6ae[0x0]);}};_e=_n([ot(0x0,_0x2e28c1),ot(0x1,_0x7acb9e)],_e);var ln=Object[_0x517afa(0x217)],hn=(_0x4458cf,_0x46f2de,_0x7c4124,_0x53bec4)=>{const _0x2729f4=_0x517afa;for(var _0x455bf3=_0x53bec4>0x1?void 0x0:_0x53bec4?ln(_0x46f2de,_0x7c4124):_0x46f2de,_0x432b8f=_0x4458cf[_0x2729f4(0x1d1)]-0x1,_0x155fca;_0x432b8f>=0x0;_0x432b8f--)(_0x155fca=_0x4458cf[_0x432b8f])&&(_0x455bf3=_0x155fca(_0x455bf3)||_0x455bf3);return _0x455bf3;},Re=(_0x50126d,_0x99f43a)=>(_0x50fb61,_0x3fcdf5)=>_0x99f43a(_0x50fb61,_0x3fcdf5,_0x50126d);let le=class{constructor(_0x126124,_0x2d336a,_0x38dc96){const _0x3cb7e8=_0x517afa;this[_0x3cb7e8(0x22f)]=_0x126124,this[_0x3cb7e8(0x295)]=_0x2d336a,this['_docStateChangeManagerService']=_0x38dc96;}[_0x517afa(0xd1)](_0x20f3b6){const _0x2e2afc=_0x517afa;this[_0x2e2afc(0x74)](_0x20f3b6);}[_0x517afa(0x1b2)](_0x384922){const _0x53fdb9=_0x517afa,{unitID:_0x2574a5}=_0x384922,{collaboration:_0x393a64}=this[_0x53fdb9(0x277)][_0x53fdb9(0x11d)](_0x2574a5);if(_0x393a64[_0x53fdb9(0x1d1)]===0x0)return _0x384922;let _0x1b8d66=_0x24fd68[_0x53fdb9(0xe6)](_0x384922[_0x53fdb9(0x26a)][0x0]);for(let _0x4b7413=0x0;_0x4b7413<_0x393a64[_0x53fdb9(0x1d1)];_0x4b7413++){const _0x3acf16={'id':_0x53fdb9(0x21f),'params':{'unitId':_0x393a64[_0x4b7413]['unitId'],..._0x393a64[_0x4b7413][_0x53fdb9(0x20a)]}},_0x5784c4=this['_transformService'][_0x53fdb9(0x1c4)](_0x1b8d66,_0x3acf16,!0x1);if(_0x18536c(_0x5784c4))throw _0x5784c4[_0x53fdb9(0x154)];_0x1b8d66=_0x5784c4[_0x53fdb9(0xaa)];}return{..._0x24fd68[_0x53fdb9(0xe6)](_0x384922),'mutations':[_0x1b8d66]};}[_0x517afa(0x74)](_0x3a10ac){const _0x7cbf23=_0x517afa,{unitID:_0x2829ed}=_0x3a10ac,{history:_0x32e1c9,collaboration:_0xcfbd13}=this[_0x7cbf23(0x277)][_0x7cbf23(0x11d)](_0x2829ed);if(_0x32e1c9[_0x7cbf23(0x1d1)]===0x0&&_0xcfbd13['length']===0x0)return;const _0x28b2a2=[],_0x4d6d5d=[];let _0x2c38d3=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac[_0x7cbf23(0x26a)][0x0]),_0x36db6f=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]);for(let _0x418fa8=_0x32e1c9[_0x7cbf23(0x1d1)]-0x1;_0x418fa8>=0x0;_0x418fa8--){const _0x41de1b={'id':_0x7cbf23(0x21f),'params':{'unitId':_0x32e1c9[_0x418fa8][_0x7cbf23(0x140)],..._0x32e1c9[_0x418fa8]['undoState']}},_0x4ffa14={'id':_0x7cbf23(0x21f),'params':{'unitId':_0x32e1c9[_0x418fa8][_0x7cbf23(0x140)],..._0x32e1c9[_0x418fa8][_0x7cbf23(0x20a)]}},_0xa61010=this[_0x7cbf23(0x295)][_0x7cbf23(0x1c4)](_0x2c38d3,_0x41de1b,!0x1),_0x4169bf=this['_transformService'][_0x7cbf23(0x1c4)](_0x36db6f,_0x4ffa14,!0x1);if(_0x18536c(_0xa61010))throw _0xa61010[_0x7cbf23(0x154)];if(_0x18536c(_0x4169bf))throw _0x4169bf[_0x7cbf23(0x154)];_0x28b2a2[_0x7cbf23(0x285)]({..._0x32e1c9[_0x418fa8],'undoState':_0xa61010[_0x7cbf23(0x24c)][_0x7cbf23(0x269)],'redoState':_0x4169bf['m2Prime']['params']}),_0x2c38d3=_0xa61010[_0x7cbf23(0xaa)],_0x36db6f=_0x4169bf[_0x7cbf23(0xaa)];}_0x2c38d3=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]),_0x36db6f=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]);for(let _0x66037d=_0xcfbd13[_0x7cbf23(0x1d1)]-0x1;_0x66037d>=0x0;_0x66037d--){const _0x4ae7db={'id':_0x7cbf23(0x21f),'params':{'unitId':_0xcfbd13[_0x66037d]['unitId'],..._0xcfbd13[_0x66037d][_0x7cbf23(0x137)]}},_0x583663={'id':_0x7cbf23(0x21f),'params':{'unitId':_0xcfbd13[_0x66037d]['unitId'],..._0xcfbd13[_0x66037d][_0x7cbf23(0x20a)]}},_0x2ea0dd=this[_0x7cbf23(0x295)][_0x7cbf23(0x1c4)](_0x2c38d3,_0x4ae7db,!0x1),_0x5e24ee=this[_0x7cbf23(0x295)]['transformMutation'](_0x36db6f,_0x583663,!0x1);if(_0x18536c(_0x2ea0dd))throw _0x2ea0dd[_0x7cbf23(0x154)];if(_0x18536c(_0x5e24ee))throw _0x5e24ee[_0x7cbf23(0x154)];_0x4d6d5d['unshift']({..._0xcfbd13[_0x66037d],'undoState':_0x2ea0dd[_0x7cbf23(0x24c)]['params'],'redoState':_0x5e24ee['m2Prime']['params']}),_0x2c38d3=_0x2ea0dd[_0x7cbf23(0xaa)],_0x36db6f=_0x5e24ee[_0x7cbf23(0xaa)];}this[_0x7cbf23(0x277)][_0x7cbf23(0x16c)](_0x2829ed,{'history':_0x28b2a2,'collaboration':_0x4d6d5d});}};le=hn([Re(0x0,_0x388393(_0x258030)),Re(0x1,_0x2e28c1),Re(0x2,_0x388393(_0x3d7f81))],le);var un=Object[_0x517afa(0x217)],dn=(_0xece5e7,_0x4d7754,_0x1673fd,_0x17545b)=>{const _0x30ff08=_0x517afa;for(var _0x37cacc=_0x17545b>0x1?void 0x0:_0x17545b?un(_0x4d7754,_0x1673fd):_0x4d7754,_0x37d560=_0xece5e7[_0x30ff08(0x1d1)]-0x1,_0x5c2de4;_0x37d560>=0x0;_0x37d560--)(_0x5c2de4=_0xece5e7[_0x37d560])&&(_0x37cacc=_0x5c2de4(_0x37cacc)||_0x37cacc);return _0x37cacc;},at=(_0x1518c1,_0x2989f3)=>(_0x1a4fe4,_0x4f3bf0)=>_0x2989f3(_0x1a4fe4,_0x4f3bf0,_0x1518c1);let he=class{constructor(_0x2fda4f,_0x2c59bc){const _0x29c5e5=_0x517afa;this[_0x29c5e5(0x22f)]=_0x2fda4f,this[_0x29c5e5(0x295)]=_0x2c59bc;}['transformSelections'](_0x5309e9){const _0x4a0b0b=_0x517afa;var _0x55aa30;const _0x9cf969=this[_0x4a0b0b(0x22f)][_0x4a0b0b(0x19b)](_0x59d42f),_0x49537d=(_0x55aa30=_0x9cf969['getDocRanges']())!=null?_0x55aa30:[];if(_0x49537d[_0x4a0b0b(0x1d1)]===0x0)return;const _0x9cca00=_0x5309e9[_0x4a0b0b(0x186)],_0x597da6=[{'id':_0x4a0b0b(0x21f),'params':{'unitId':_0x9cca00,'actions':null,'textRanges':_0x49537d}}],_0x1217b0=this[_0x4a0b0b(0x295)][_0x4a0b0b(0x182)](_0x5309e9,_0x597da6);if(!_0x2ef47c(_0x1217b0))throw _0x1217b0[_0x4a0b0b(0x154)];const _0xcf83dd=_0x1217b0['m2Prime'][0x0][_0x4a0b0b(0x269)]['textRanges'];Array[_0x4a0b0b(0x229)](_0xcf83dd)&&_0xcf83dd['length']&&_0x9cf969['replaceDocRanges'](_0xcf83dd,{'unitId':_0x9cca00,'subUnitId':_0x9cca00},!0x1);}};he=dn([at(0x0,_0x388393(_0x258030)),at(0x1,_0x2e28c1)],he);var Sn=Object[_0x517afa(0x217)],In=(_0x3b0f7c,_0x5c9b72,_0x3b5bab,_0x3dc740)=>{const _0x4b69bc=_0x517afa;for(var _0x1f2b4c=_0x3dc740>0x1?void 0x0:_0x3dc740?Sn(_0x5c9b72,_0x3b5bab):_0x5c9b72,_0x242280=_0x3b0f7c[_0x4b69bc(0x1d1)]-0x1,_0x49b9da;_0x242280>=0x0;_0x242280--)(_0x49b9da=_0x3b0f7c[_0x242280])&&(_0x1f2b4c=_0x49b9da(_0x1f2b4c)||_0x1f2b4c);return _0x1f2b4c;},b=(_0x148e5f,_0x3b65d8)=>(_0x5093b8,_0x447037)=>_0x3b65d8(_0x5093b8,_0x447037,_0x148e5f);let ue=class extends _0x4057f7{constructor(_0x390a71,_0x2a381c,_0xa0b5da,_0x4faef1,_0x4ed0f3,_0x350e03,_0x5b60a1,_0x711cd4){const _0x5397d5=_0x517afa;super(),l(this,_0x5397d5(0x245),new _0x340b13(_0x5039cf['NOT_COLLAB'])),(this[_0x5397d5(0x277)]=_0x390a71,this[_0x5397d5(0x15d)]=_0x2a381c,this['_docTransformIMECacheService']=_0xa0b5da,this[_0x5397d5(0x143)]=_0x4faef1,this[_0x5397d5(0x262)]=_0x4ed0f3,this[_0x5397d5(0xfe)]=_0x350e03,this[_0x5397d5(0x191)]=_0x5b60a1,this[_0x5397d5(0xdb)]=_0x711cd4,this['_initEntityListener']());}[_0x517afa(0xa3)](){const _0x1d4228=_0x517afa;this[_0x1d4228(0x161)](this[_0x1d4228(0x15d)][_0x1d4228(0x274)]['subscribe'](_0x3bc89f=>{const _0xa0f12f=_0x1d4228,_0x172d8d=this[_0xa0f12f(0x277)][_0xa0f12f(0x239)]['subscribe'](_0x1f0d78=>{const _0xe9171f=_0xa0f12f;if(_0x1f0d78==null)return;const {unitId:_0x19a576,redoState:_0x35f6ad,commandId:_0x90a0e9}=_0x1f0d78;if(_0x19a576!==_0x3bc89f[_0xe9171f(0x186)])return;const _0xaaa88c={'id':_0x90a0e9,'type':_0x18ebdb[_0xe9171f(0x286)],'params':{'unitId':_0x19a576,'actions':_0x35f6ad['actions'],'textRanges':null}};_0x3bc89f[_0xe9171f(0x10e)](_0xaaa88c);});if(_0x3bc89f['disposeWithMe'](_0x172d8d),_0x3bc89f instanceof _0x39449e){const _0xa0e02f={'onTransformIME':_0x5eee1f=>this[_0xa0f12f(0x296)][_0xa0f12f(0x232)](_0x5eee1f),'onTransformState':_0x115574=>this[_0xa0f12f(0x143)][_0xa0f12f(0xd1)](_0x115574),'onTransformSelections':_0x27f67f=>this[_0xa0f12f(0x262)][_0xa0f12f(0x139)](_0x27f67f),'onSyncEditingCollabCursor':_0x183e92=>this[_0xa0f12f(0xfe)][_0xa0f12f(0x14a)](_0x183e92),'onTransformRemoteChangesetByIMECache':_0x4e2912=>this[_0xa0f12f(0x296)]['transformRemoteChangeset'](_0x4e2912),'onTransformRemoteChangesetByStateCache':_0x24ffa1=>this[_0xa0f12f(0x143)][_0xa0f12f(0x1b2)](_0x24ffa1)};_0x3bc89f[_0xa0f12f(0xd3)](_0xa0e02f);}}));}};ue=In([b(0x0,_0x388393(_0x3d7f81)),b(0x1,_0x388393(_0x477518)),b(0x2,_0x388393(_e)),b(0x3,_0x388393(le)),b(0x4,_0x388393(he)),b(0x5,_0x388393(Xe)),b(0x6,_0x341740),b(0x7,_0x388393(_0x3ae72e))],ue);var Z=(_0x1a20bc=>(_0x1a20bc[_0x1a20bc[_0x517afa(0x11c)]=0x0]='UNDEFINED',_0x1a20bc[_0x1a20bc['OK']=0x1]='OK',_0x1a20bc[_0x1a20bc[_0x517afa(0xf6)]=0x2]=_0x517afa(0xf6),_0x1a20bc[_0x1a20bc[_0x517afa(0xf9)]=0x3]=_0x517afa(0xf9),_0x1a20bc[_0x1a20bc[_0x517afa(0x1b4)]=0x4]='NOT_FOUND',_0x1a20bc[_0x1a20bc[_0x517afa(0xd8)]=0x5]=_0x517afa(0xd8),_0x1a20bc[_0x1a20bc[_0x517afa(0x28d)]=0x6]=_0x517afa(0x28d),_0x1a20bc[_0x1a20bc[_0x517afa(0x12a)]=0x7]=_0x517afa(0x12a),_0x1a20bc[_0x1a20bc[_0x517afa(0xb7)]=0x8]=_0x517afa(0xb7),_0x1a20bc[_0x1a20bc['COMPLETION_FINISHED']=0x9]=_0x517afa(0x126),_0x1a20bc[_0x1a20bc['LOGIN_FAILED']=0xa]=_0x517afa(0xdd),_0x1a20bc[_0x1a20bc['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x517afa(0xa5),_0x1a20bc[_0x1a20bc['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x517afa(0x195),_0x1a20bc[_0x1a20bc[_0x517afa(0x1be)]=0xd]=_0x517afa(0x1be),_0x1a20bc[_0x1a20bc[_0x517afa(0x1ab)]=0xe]=_0x517afa(0x1ab),_0x1a20bc[_0x1a20bc[_0x517afa(0x1d7)]=0xf]=_0x517afa(0x1d7),_0x1a20bc[_0x1a20bc[_0x517afa(0x21e)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x1a20bc[_0x1a20bc['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x517afa(0x1dc),_0x1a20bc[_0x1a20bc[_0x517afa(0x16a)]=0x65]=_0x517afa(0x16a),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e8)]=0xc9]=_0x517afa(0x1e8),_0x1a20bc[_0x1a20bc['USER_IS_ANONYMOUS']=0xca]=_0x517afa(0x160),_0x1a20bc[_0x1a20bc['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1a20bc[_0x1a20bc[_0x517afa(0x1c6)]=0x1771]=_0x517afa(0x1c6),_0x1a20bc[_0x1a20bc[_0x517afa(0x1a9)]=0x1772]=_0x517afa(0x1a9),_0x1a20bc[_0x1a20bc['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x517afa(0x19e),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e1)]=0x1b59]=_0x517afa(0x1e1),_0x1a20bc[_0x1a20bc[_0x517afa(0xe1)]=0x1b5a]=_0x517afa(0xe1),_0x1a20bc[_0x1a20bc['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x517afa(0x196),_0x1a20bc[_0x1a20bc[_0x517afa(0x97)]=0x1b5c]=_0x517afa(0x97),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e3)]=0x1b5d]=_0x517afa(0x1e3),_0x1a20bc[_0x1a20bc[_0x517afa(0xf7)]=0x1f41]=_0x517afa(0xf7),_0x1a20bc[_0x1a20bc['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x517afa(0x28a),_0x1a20bc[_0x1a20bc[_0x517afa(0x1da)]=0x232a]=_0x517afa(0x1da),_0x1a20bc[_0x1a20bc['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x517afa(0x165),_0x1a20bc[_0x1a20bc[_0x517afa(0x252)]=0x232c]=_0x517afa(0x252),_0x1a20bc[_0x1a20bc[_0x517afa(0xc0)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x1a20bc[_0x1a20bc[_0x517afa(0xb0)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1a20bc[_0x1a20bc[_0x517afa(0x278)]=0x2712]=_0x517afa(0x278),_0x1a20bc[_0x1a20bc[_0x517afa(0x199)]=0x2713]=_0x517afa(0x199),_0x1a20bc[_0x1a20bc[_0x517afa(0x23b)]=0x2714]=_0x517afa(0x23b),_0x1a20bc[_0x1a20bc[_0x517afa(0x13b)]=0x271a]=_0x517afa(0x13b),_0x1a20bc[_0x1a20bc['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x517afa(0x8d),_0x1a20bc[_0x1a20bc['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1a20bc[_0x1a20bc['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x517afa(0x224),_0x1a20bc[_0x1a20bc[_0x517afa(0x68)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x1a20bc[_0x1a20bc[_0x517afa(0x1c5)]=0x271f]=_0x517afa(0x1c5),_0x1a20bc[_0x1a20bc[_0x517afa(0x21d)]=0x2720]=_0x517afa(0x21d),_0x1a20bc[_0x1a20bc['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x517afa(0x21c),_0x1a20bc[_0x1a20bc[_0x517afa(0x13d)]=0x2ee1]=_0x517afa(0x13d),_0x1a20bc[_0x1a20bc[_0x517afa(0x1ad)]=0x2ee2]=_0x517afa(0x1ad),_0x1a20bc[_0x1a20bc['INVITE_CODE_REQUIRED']=0x2ee3]=_0x517afa(0x124),_0x1a20bc[_0x1a20bc[_0x517afa(0x18a)]=0x2ee4]=_0x517afa(0x18a),_0x1a20bc[_0x1a20bc[_0x517afa(0x293)]=0x2ee5]=_0x517afa(0x293),_0x1a20bc[_0x1a20bc[_0x517afa(0x1cb)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1a20bc[_0x1a20bc[_0x517afa(0x291)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1a20bc[_0x1a20bc['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x517afa(0x200),_0x1a20bc[_0x1a20bc[_0x517afa(0x27e)]=0x36b1]=_0x517afa(0x27e),_0x1a20bc[_0x1a20bc['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x517afa(0xfd),_0x1a20bc[_0x1a20bc[_0x517afa(0xfa)]=0x36b3]=_0x517afa(0xfa),_0x1a20bc[_0x1a20bc[_0x517afa(0x1f4)]=0x36b4]=_0x517afa(0x1f4),_0x1a20bc[_0x1a20bc[_0x517afa(0x27b)]=0x3715]=_0x517afa(0x27b),_0x1a20bc[_0x1a20bc[_0x517afa(0x118)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x1a20bc[_0x1a20bc[_0x517afa(0x130)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x1a20bc[_0x1a20bc['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x517afa(0x179),_0x1a20bc[_0x1a20bc[_0x517afa(0x18b)]=0x3a99]=_0x517afa(0x18b),_0x1a20bc[_0x1a20bc[_0x517afa(0xbf)]=0x3a9a]=_0x517afa(0xbf),_0x1a20bc[_0x1a20bc[_0x517afa(0x107)]=0x3a9b]=_0x517afa(0x107),_0x1a20bc[_0x1a20bc[_0x517afa(0xc3)]=0x3a9c]=_0x517afa(0xc3),_0x1a20bc[_0x1a20bc['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x1a20bc[_0x1a20bc[_0x517afa(0x104)]=0x3a9e]=_0x517afa(0x104),_0x1a20bc[_0x1a20bc[_0x517afa(0x76)]=0x3a9f]=_0x517afa(0x76),_0x1a20bc[_0x1a20bc[_0x517afa(0x167)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x1a20bc[_0x1a20bc['UNRECOGNIZED']=-0x1]=_0x517afa(0xc1),_0x1a20bc))(Z||{});function mn(_0x4d6f50){const _0x209b02=_0x517afa;var _0xfd3c42,_0x24ead2;const _0x32d0ec=(_0xfd3c42=_0x4d6f50[_0x209b02(0x283)])==null?void 0x0:_0xfd3c42[_0x209b02(0x256)],_0x5cb3c1=((_0x24ead2=_0x4d6f50[_0x209b02(0x283)])==null?void 0x0:_0x24ead2[_0x209b02(0x162)])||0x0;return _0x32d0ec===_0x93f55d[_0x209b02(0x233)]&&_0x5cb3c1>0x0;}function fn(_0x2db790){const _0x3ed280=_0x517afa;return _0x2db790[_0x3ed280(0xac)]===_0x1da652[_0x3ed280(0x65)];}var gn=Object[_0x517afa(0x217)],vn=(_0x42edd7,_0x36cd90,_0x650ab3,_0x5746d6)=>{const _0x58b2c2=_0x517afa;for(var _0x4c71d2=_0x5746d6>0x1?void 0x0:_0x5746d6?gn(_0x36cd90,_0x650ab3):_0x36cd90,_0x38f27f=_0x42edd7[_0x58b2c2(0x1d1)]-0x1,_0x1a02cb;_0x38f27f>=0x0;_0x38f27f--)(_0x1a02cb=_0x42edd7[_0x38f27f])&&(_0x4c71d2=_0x1a02cb(_0x4c71d2)||_0x4c71d2);return _0x4c71d2;},P=(_0x1b3eda,_0x32ddc3)=>(_0x535d94,_0x2c1350)=>_0x32ddc3(_0x535d94,_0x2c1350,_0x1b3eda);const En='/universer-api/license/formula/limit/status',pn='/universer-api/license/formula/limit/start',On=_0x517afa(0x273);let de=class extends _0x4057f7{constructor(_0x20ff60,_0x29f812,_0x3c6dbd,_0x165279,_0x46c0d4,_0x155e8a,_0x8c97dc){const _0x538433=_0x517afa;super(),l(this,_0x538433(0x99),null),l(this,'_maxFormulaLimit',0x0),l(this,'_currentUsage',0x0),l(this,_0x538433(0x14d),[]),l(this,_0x538433(0x14b),0x0),(this[_0x538433(0x191)]=_0x20ff60,this[_0x538433(0x27f)]=_0x29f812,this[_0x538433(0xc6)]=_0x3c6dbd,this[_0x538433(0x21b)]=_0x165279,this['_univerInstanceService']=_0x46c0d4,this[_0x538433(0x237)]=_0x155e8a,this['_localeService']=_0x8c97dc,this[_0x538433(0x289)]());}[_0x517afa(0x289)](){const _0x95c16=_0x517afa;this['disposeWithMe'](this['_commandService'][_0x95c16(0x103)]((_0x5f37d4,_0x465109)=>{const _0x3ccf7c=_0x95c16;var _0x5d7b85;if(_0x5f37d4['id']!==_0xa507f6['id'])return;const _0x20befe=_0x5f37d4[_0x3ccf7c(0x269)];if(!this['_hasFormulaInDirtyRanges']((_0x5d7b85=_0x20befe[_0x3ccf7c(0x133)])!=null?_0x5d7b85:[]))return;if(!this[_0x3ccf7c(0xd2)]())throw this[_0x3ccf7c(0x15b)](_0x5f37d4,_0x465109),this[_0x3ccf7c(0x1d5)](),new _0x458890();})),this[_0x95c16(0x161)](this[_0x95c16(0x27f)][_0x95c16(0x208)]((_0x5b3de1,_0x3ce737)=>{const _0x42d722=_0x95c16;if(_0x5b3de1['id']!==_0x3f8c9d['id'])return;const _0xcc16a6=_0x5b3de1[_0x42d722(0x269)];if(mn(_0xcc16a6)){const _0x4037ca=_0x24b861();this[_0x42d722(0x14d)]['push'](_0x4037ca),this[_0x42d722(0x8c)](_0x4037ca);}else{if(fn(_0xcc16a6)&&this[_0x42d722(0x14d)]['length']>0x0){const _0x29aad4=this[_0x42d722(0x14d)][_0x42d722(0x79)]();this[_0x42d722(0x257)](_0x29aad4);}}}));}['dispose'](){const _0x3aa429=_0x517afa;super[_0x3aa429(0x121)](),this[_0x3aa429(0x23c)](),this[_0x3aa429(0x14d)]=[],this[_0x3aa429(0x244)]=0x0,this[_0x3aa429(0x206)]=0x0,this[_0x3aa429(0x14b)]=0x0;}async[_0x517afa(0x15b)](_0x593a5e,_0x22c115){const _0x51301a=_0x517afa;for(let _0x188b6c=0x0;_0x188b6c<0x1e;_0x188b6c++)try{if(await this[_0x51301a(0x1f2)](),this[_0x51301a(0xd2)]()){this[_0x51301a(0x17b)](_0x593a5e,_0x22c115),this[_0x51301a(0x191)][_0x51301a(0xd6)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x43794b['Success']});return;}await new Promise(_0x3d8cd9=>{const _0x2ce021=_0x51301a;this[_0x2ce021(0x99)]=window[_0x2ce021(0x1cf)](_0x3d8cd9,0x3e8);});}catch(_0x33fda0){this['_logService'][_0x51301a(0x154)](_0x33fda0);}this[_0x51301a(0x191)][_0x51301a(0xd6)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x43794b[_0x51301a(0x8f)]});}['_applyCommand'](_0x1582cf,_0x543d5e){const _0x5c5b27=_0x517afa;try{this[_0x5c5b27(0x27f)][_0x5c5b27(0x111)](_0x1582cf['id'],_0x1582cf[_0x5c5b27(0x269)],_0x543d5e);}catch(_0x525ead){this[_0x5c5b27(0x237)][_0x5c5b27(0x154)](_0x525ead);}}[_0x517afa(0x112)](_0x45244e,_0x17c92f){const _0x2da246=_0x517afa;_0x17c92f<this[_0x2da246(0x14b)]||(this[_0x2da246(0x14b)]=_0x17c92f,this[_0x2da246(0x206)]=Number['parseInt'](_0x45244e[_0x2da246(0x164)]),this[_0x2da246(0x244)]=Number['parseInt'](_0x45244e[_0x2da246(0x141)]));}async[_0x517afa(0x8c)](_0x226969){const _0x5218fc=_0x517afa;var _0x1531f2,_0x3db894;const _0x5641d9=Date['now']();try{const _0x4f578b=((_0x1531f2=this[_0x5218fc(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x1531f2[_0x5218fc(0xca)])||pn,_0x26d139=(await this[_0x5218fc(0x21b)]['post'](_0x4f578b,{'body':JSON[_0x5218fc(0xff)]({'taskId':_0x226969})}))[_0x5218fc(0x15f)];if(((_0x3db894=_0x26d139[_0x5218fc(0x154)])==null?void 0x0:_0x3db894[_0x5218fc(0x1c9)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x26d139[_0x5218fc(0x1b5)],_0x5641d9);}catch(_0x35ac8d){this[_0x5218fc(0x237)]['error'](_0x35ac8d);}}async[_0x517afa(0x1f2)](_0x2efd39){const _0x274cbe=_0x517afa;var _0x2ed56c,_0x2418a9;const _0x35bbce=Date[_0x274cbe(0xe2)]();try{const _0x48ace7=((_0x2ed56c=this[_0x274cbe(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x2ed56c[_0x274cbe(0x24d)])||En,_0x36ffe1=_0x2efd39?_0x48ace7+_0x274cbe(0x280)+encodeURIComponent(_0x2efd39):_0x48ace7,_0x4bd62c=(await this[_0x274cbe(0x21b)]['get'](_0x36ffe1))['body'];if(((_0x2418a9=_0x4bd62c[_0x274cbe(0x154)])==null?void 0x0:_0x2418a9['code'])!==Z['OK'])return;this[_0x274cbe(0x112)](_0x4bd62c[_0x274cbe(0x1b5)],_0x35bbce);}catch(_0x158de8){this['_logService'][_0x274cbe(0x154)](_0x158de8);}}async[_0x517afa(0x257)](_0x271961){const _0x2aba0c=_0x517afa;var _0x18859e,_0xbe029c;const _0x5ebc96=Date[_0x2aba0c(0xe2)]();try{const _0x1a5486=((_0x18859e=this[_0x2aba0c(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x18859e['releaseFormulaLimitUrl'])||On,_0x17daef=(await this[_0x2aba0c(0x21b)]['post'](_0x1a5486,{'body':JSON['stringify']({'taskId':_0x271961})}))[_0x2aba0c(0x15f)];if(((_0xbe029c=_0x17daef[_0x2aba0c(0x154)])==null?void 0x0:_0xbe029c[_0x2aba0c(0x1c9)])!==Z['OK'])return;this[_0x2aba0c(0x112)](_0x17daef[_0x2aba0c(0x1b5)],_0x5ebc96);}catch(_0x46ac57){this[_0x2aba0c(0x237)][_0x2aba0c(0x154)](_0x46ac57);}}['_checkCalculationAvailable'](){const _0x29df4d=_0x517afa;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x29df4d(0x206)]-this[_0x29df4d(0x244)]>0x0;}[_0x517afa(0x23c)](){const _0x566f10=_0x517afa;this[_0x566f10(0x99)]&&(clearTimeout(this[_0x566f10(0x99)]),this[_0x566f10(0x99)]=null);}[_0x517afa(0x1d5)](){const _0x34d020=_0x517afa;this['_messageService'][_0x34d020(0xd6)]({'content':this[_0x34d020(0xdb)]['t'](_0x34d020(0x129)),'type':_0x43794b[_0x34d020(0x1ae)]});}[_0x517afa(0x8a)](_0x4a54d6){const _0x3127bc=_0x517afa;for(const _0x139f2d of _0x4a54d6){const {unitId:_0x360549,sheetId:_0x4b8697,range:_0xe0b171}=_0x139f2d,_0x5be82c=this[_0x3127bc(0xb4)]['getUnit'](_0x360549);if(!_0x5be82c)continue;const _0x3cf598=_0x5be82c[_0x3127bc(0x18f)](_0x4b8697);if(!_0x3cf598)continue;const _0x30c1b6=_0x3cf598['getCellMatrix']();for(let _0x5f4648=_0xe0b171['startRow'];_0x5f4648<=_0xe0b171[_0x3127bc(0x80)];_0x5f4648++)for(let _0x41fba2=_0xe0b171[_0x3127bc(0xcf)];_0x41fba2<=_0xe0b171[_0x3127bc(0x98)];_0x41fba2++){const _0x30c985=_0x30c1b6[_0x3127bc(0x89)](_0x5f4648,_0x41fba2);if(_0x30c985&&(_0x434ee5(_0x30c985['f'])||_0x2fae16(_0x30c985['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x388393(_0x341740)),P(0x1,_0x4ab028),P(0x2,_0x6a4de3),P(0x3,_0x388393(_0x345138)),P(0x4,_0x30c7ee),P(0x5,_0x46da51),P(0x6,_0x388393(_0x3ae72e))],de);var Tn=Object[_0x517afa(0x217)],Cn=(_0x516afe,_0xb22d77,_0x3b03f1,_0x33614e)=>{const _0xb10d20=_0x517afa;for(var _0x58f3ce=_0x33614e>0x1?void 0x0:_0x33614e?Tn(_0xb22d77,_0x3b03f1):_0xb22d77,_0x2acf0b=_0x516afe[_0xb10d20(0x1d1)]-0x1,_0xa26ba;_0x2acf0b>=0x0;_0x2acf0b--)(_0xa26ba=_0x516afe[_0x2acf0b])&&(_0x58f3ce=_0xa26ba(_0x58f3ce)||_0x58f3ce);return _0x58f3ce;},De=(_0x408472,_0x168c64)=>(_0x48ee2c,_0x486808)=>_0x168c64(_0x48ee2c,_0x486808,_0x408472);let xe=class extends _0x4057f7{constructor(_0x25539e,_0x4edeeb,_0x3eb649){const _0x569a2b=_0x517afa;super(),l(this,_0x569a2b(0x12e),new Map()),l(this,_0x569a2b(0x27a),new Map()),l(this,_0x569a2b(0x231),!0x1),(this[_0x569a2b(0xc6)]=_0x25539e,this[_0x569a2b(0x28e)]=_0x4edeeb,this[_0x569a2b(0x212)]=_0x3eb649);}[_0x517afa(0x17d)](){const _0x32d058=_0x517afa;this[_0x32d058(0x231)]=!0x0;}[_0x517afa(0x223)](){const _0x4d861e=_0x517afa;this[_0x4d861e(0x231)]=!0x1;}get[_0x517afa(0xb3)](){return this['_saveTaskMap'];}[_0x517afa(0x121)](){const _0x1b55af=_0x517afa;this[_0x1b55af(0x96)]()[_0x1b55af(0x189)](()=>super[_0x1b55af(0x121)]());}async[_0x517afa(0x1c3)](_0xc26c88){const _0xdfee4f=_0x517afa;return this['_disabled']?null:this['_localStorageService'][_0xdfee4f(0x1d2)](_0x439647(_0xc26c88));}async[_0x517afa(0x259)](_0x4c3fb9,_0x670f80){const _0x36d466=_0x517afa;return!!this['_localStorageService'][_0x36d466(0x18d)](_0x4c3fb9,_0x670f80);}[_0x517afa(0x1ff)](_0x37064e,_0x525bd6,_0x48dccb,_0x3988b2){const _0xee7b78=_0x517afa,_0x575caf=this[_0xee7b78(0x212)][_0xee7b78(0x24f)](_0x37064e);this[_0xee7b78(0x12e)][_0xee7b78(0x11e)](_0x37064e,{'unitID':_0x37064e,'type':_0x525bd6,'awaitingChangeset':_0x48dccb,'mutations':_0x3988b2,'rev':_0x575caf}),this[_0xee7b78(0x27a)][_0xee7b78(0x248)](_0x37064e)||this[_0xee7b78(0x9b)](_0x37064e);}['_scheduleSaving'](_0x3e077d){const _0x540a54=_0x517afa,_0x1e2e2e=this[_0x540a54(0x144)]();_0x1e2e2e===0x0?this[_0x540a54(0x220)](_0x3e077d):this['_saveTaskMap'][_0x540a54(0x11e)](_0x3e077d,setTimeout(()=>this[_0x540a54(0x220)](_0x3e077d),_0x1e2e2e));}[_0x517afa(0x144)](){const _0x47f51d=_0x517afa;var _0x14626b;return(_0x14626b=this[_0x47f51d(0xc6)][_0x47f51d(0x201)](_0x141eb8))!=null?_0x14626b:_0x5d3637;}[_0x517afa(0x220)](_0x50867e){const _0x2dba9a=_0x517afa,_0xe14ff4=this['_saveTaskMap'][_0x2dba9a(0x19b)](_0x50867e);return _0xe14ff4!==void 0x0&&window[_0x2dba9a(0xbe)](_0xe14ff4),this[_0x2dba9a(0x28e)][_0x2dba9a(0x18d)](_0x439647(_0x50867e),this[_0x2dba9a(0x12e)][_0x2dba9a(0x19b)](_0x50867e))[_0x2dba9a(0x189)](()=>this[_0x2dba9a(0x27a)][_0x2dba9a(0x26d)](_0x50867e));}async[_0x517afa(0x96)](){const _0x4651c8=_0x517afa,_0x531f4f=[];this[_0x4651c8(0x27a)][_0x4651c8(0x17f)]((_0x11f40c,_0x535c89)=>{const _0x354589=_0x4651c8;window[_0x354589(0xbe)](_0x11f40c),_0x531f4f['push'](this['_saveCache'](_0x535c89)[_0x354589(0x189)](()=>{const _0x29d529=_0x354589;this['_saveTaskMap'][_0x29d529(0x26d)](_0x535c89);}));}),await Promise[_0x4651c8(0x24e)](_0x531f4f);}};xe=Cn([De(0x0,_0x6a4de3),De(0x1,_0xbe08f5),De(0x2,_0x388393(_0x1fb0da))],xe);class Rn extends _0x518648{constructor(){const _0x39ba9e=_0x517afa;super(),l(this,'urlChange$'),this['urlChange$']=_0x258e3e(window,'popstate')[_0x39ba9e(0x7b)](_0xd33296(this[_0x39ba9e(0x1e9)]),_0x4adcb8(0x1),_0x487335(void 0x0));}[_0x517afa(0x281)](_0x1182bd,_0x4440e3,_0x4ce1b5=!0x1){const _0x2b8b2b=_0x517afa,_0x344e83=new URL(window[_0x2b8b2b(0x290)][_0x2b8b2b(0x250)]);_0x344e83[_0x2b8b2b(0x1fb)][_0x2b8b2b(0x11e)](_0x1182bd,_0x4440e3),_0x4ce1b5?window['history'][_0x2b8b2b(0x11f)]('','',_0x344e83[_0x2b8b2b(0xee)]()):window[_0x2b8b2b(0x173)][_0x2b8b2b(0x125)]('','',_0x344e83['toString']());}[_0x517afa(0xf1)](_0x72dc06,_0x576f15=!0x1){const _0x396972=_0x517afa,_0x4e151c=new URL(window[_0x396972(0x290)]['href']);_0x4e151c['searchParams'][_0x396972(0x26d)](_0x72dc06),_0x576f15?window[_0x396972(0x173)][_0x396972(0x11f)]('','',_0x4e151c['toString']()):window[_0x396972(0x173)][_0x396972(0x125)]('','',_0x4e151c[_0x396972(0xee)]());}[_0x517afa(0xf5)](_0x42739c){const _0x59ea87=_0x517afa;var _0x5d2149;return(_0x5d2149=new URL(window[_0x59ea87(0x290)][_0x59ea87(0x250)])[_0x59ea87(0x1fb)][_0x59ea87(0x19b)](_0x42739c))!=null?_0x5d2149:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object['getOwnPropertyDescriptor'],bn=(_0x75f93a,_0x450df4,_0x1e14f0)=>_0x450df4 in _0x75f93a?Dn(_0x75f93a,_0x450df4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e14f0}):_0x75f93a[_0x450df4]=_0x1e14f0,Un=(_0x3fb22a,_0x612123,_0x1110f8,_0xd35fa1)=>{const _0x17934a=_0x517afa;for(var _0x29f87a=_0xd35fa1>0x1?void 0x0:_0xd35fa1?Nn(_0x612123,_0x1110f8):_0x612123,_0x1b468b=_0x3fb22a[_0x17934a(0x1d1)]-0x1,_0x3b0d11;_0x1b468b>=0x0;_0x1b468b--)(_0x3b0d11=_0x3fb22a[_0x1b468b])&&(_0x29f87a=_0x3b0d11(_0x29f87a)||_0x29f87a);return _0x29f87a;},Ne=(_0x25a969,_0x350ae3)=>(_0xc584a9,_0x471781)=>_0x350ae3(_0xc584a9,_0x471781,_0x25a969),Ln=(_0x35d2d9,_0x11516a,_0x4f6538)=>bn(_0x35d2d9,_0x11516a+'',_0x4f6538);const Mn=_0x517afa(0x1c2);let Be=class extends _0x576e66{constructor(_0x134e48=rt,_0x21f916,_0x557771,_0x11708a){const _0xbbb914=_0x517afa;super(),this[_0xbbb914(0x180)]=_0x134e48,this[_0xbbb914(0x113)]=_0x21f916,this[_0xbbb914(0x22f)]=_0x557771,this[_0xbbb914(0xc6)]=_0x11708a;const {..._0x4b6022}=_0xff84a3({},rt,this[_0xbbb914(0x180)]);this[_0xbbb914(0xc6)][_0xbbb914(0x230)](an,_0x4b6022);}[_0x517afa(0x23a)](){const _0xed6282=_0x517afa;this[_0xed6282(0x150)](),this['_initDependencies']();}['onRendered'](){const _0x325492=_0x517afa;this[_0x325492(0xae)]();}[_0x517afa(0x150)](){const _0x40ac8b=_0x517afa;var _0x28c032;const _0x366b49=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x5adab9,{'useClass':_0x558214}],[_0x190965,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x183763(this[_0x40ac8b(0x22f)],_0x328036(_0x366b49,(_0x28c032=this[_0x40ac8b(0x180)])==null?void 0x0:_0x28c032[_0x40ac8b(0x100)]));}['_registerRenderDependencies'](){const _0x5ac2d4=_0x517afa;this[_0x5ac2d4(0x161)](this['_renderManagerService'][_0x5ac2d4(0x6e)](_0x4ed0b3[_0x5ac2d4(0xf0)],[ye])),this['disposeWithMe'](this[_0x5ac2d4(0x113)][_0x5ac2d4(0x6e)](_0x4ed0b3[_0x5ac2d4(0x211)],[$e]));}['_initDependencies'](){const _0x587f12=_0x517afa;_0x36d93c(this[_0x587f12(0x22f)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x517afa(0x22e),Mn),Be=Un([_0x2422e9(_0x246cf1),Ne(0x1,_0x7acb9e),Ne(0x2,_0x388393(_0x258030)),Ne(0x3,_0x6a4de3)],Be);var An=Object[_0x517afa(0x217)],Pn=(_0x2ff376,_0x9fac01,_0x35963e,_0x81f380)=>{const _0x3baa0e=_0x517afa;for(var _0x1e3e4d=_0x81f380>0x1?void 0x0:_0x81f380?An(_0x9fac01,_0x35963e):_0x9fac01,_0x538f2f=_0x2ff376[_0x3baa0e(0x1d1)]-0x1,_0x412cb3;_0x538f2f>=0x0;_0x538f2f--)(_0x412cb3=_0x2ff376[_0x538f2f])&&(_0x1e3e4d=_0x412cb3(_0x1e3e4d)||_0x1e3e4d);return _0x1e3e4d;},J=(_0xb9c1f1,_0x13955e)=>(_0x14ce0f,_0x39c5de)=>_0x13955e(_0x14ce0f,_0x39c5de,_0xb9c1f1);let ct=class extends _0x5c223d{constructor(_0x3428e1,_0x2f0096,_0x48cc36,_0x53a874,_0x291fd9){super(_0x3428e1,_0x2f0096,_0x48cc36,_0x53a874,_0x291fd9);}async['createSocket'](_0x1bd2c1){const _0x5c280a=_0x517afa,_0x5cebef=await this[_0x5c280a(0xc5)](),_0x51fbc2=this['_createSocketURL'](_0x1bd2c1,_0x5cebef);return this[_0x5c280a(0x122)](_0x51fbc2);}[_0x517afa(0x25e)](_0x4bf289,_0x23a8d5){const _0x8ca50a=_0x517afa,_0x2a701c=typeof window>'u'?new URL(_0x4bf289):new URL(_0x4bf289,window[_0x8ca50a(0x290)][_0x8ca50a(0x87)]);_0x2a701c[_0x8ca50a(0x1fb)][_0x8ca50a(0x11e)]('sessionTicket',_0x23a8d5);const _0x57240a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8ca50a(0x290)][_0x8ca50a(0x1b3)]);return _0x57240a['get']('runId')&&_0x2a701c[_0x8ca50a(0x1fb)][_0x8ca50a(0x11e)](_0x8ca50a(0x6b),_0x57240a[_0x8ca50a(0x19b)](_0x8ca50a(0x6b))),_0x2a701c[_0x8ca50a(0xee)]();}async[_0x517afa(0xc5)](){const _0x2b8b07=_0x517afa;var _0x10da06,_0x3b371b,_0x2e7c0a;const _0x490f68=this[_0x2b8b07(0xc6)][_0x2b8b07(0x201)](_0x174b68),_0x48659f=(_0x10da06=_0x490f68==null?void 0x0:_0x490f68[_0x2b8b07(0x64)])!=null?_0x10da06:_0x84448e;return(_0x2e7c0a=(_0x3b371b=(await this[_0x2b8b07(0x21b)][_0x2b8b07(0x19b)](_0x48659f,{'headers':{'Content-Type':_0x2b8b07(0x258)}}))['body'])==null?void 0x0:_0x3b371b[_0x2b8b07(0x184)])!=null?_0x2e7c0a:'';}};ct=Pn([J(0x0,_0x388393(_0x258030)),J(0x1,_0x388393(_0x345138)),J(0x2,_0x6a4de3),J(0x3,_0x46da51),J(0x4,_0x3419af)],ct);var wn=Object[_0x517afa(0x217)],yn=(_0x8e2e0f,_0x1aeee1,_0xf4372,_0x7112)=>{const _0x2dbf6a=_0x517afa;for(var _0x58496e=_0x7112>0x1?void 0x0:_0x7112?wn(_0x1aeee1,_0xf4372):_0x1aeee1,_0x4ce315=_0x8e2e0f[_0x2dbf6a(0x1d1)]-0x1,_0x2f09c1;_0x4ce315>=0x0;_0x4ce315--)(_0x2f09c1=_0x8e2e0f[_0x4ce315])&&(_0x58496e=_0x2f09c1(_0x58496e)||_0x58496e);return _0x58496e;},be=(_0x479338,_0x4ebe8b)=>(_0x11f824,_0x2f569b)=>_0x4ebe8b(_0x11f824,_0x2f569b,_0x479338);let _t=class extends _0x4057f7{constructor(_0x32cabd,_0x120fb2,_0x375742){const _0x5dbca3=_0x517afa;super(),this[_0x5dbca3(0x1a5)]=_0x32cabd,this['_httpService']=_0x120fb2,this[_0x5dbca3(0xc6)]=_0x375742;}async[_0x517afa(0x190)](_0x30c50c,_0xae4965,_0x16543f,..._0x465e95){const _0x3038d3=_0x517afa;var _0x5b0974,_0x193cd5,_0x59b5b3,_0x57d416;const _0x163a08=this[_0x3038d3(0x1a5)][_0x3038d3(0x228)]();if(!_0x163a08)throw new Error(_0x3038d3(0xa2));const _0x6b7b66=((_0x5b0974=this['_configService'][_0x3038d3(0x201)](_0x5be24c))!=null?_0x5b0974:_0x2db30)+'/'+_0x30c50c+_0x3038d3(0x247)+_0xae4965,_0x1d4631=new URL(window[_0x3038d3(0x290)][_0x3038d3(0x250)]),_0x23ad41={'scriptId':_0x30c50c,'runId':(_0x193cd5=_0x1d4631[_0x3038d3(0x1fb)][_0x3038d3(0x19b)](_0x3038d3(0x6b)))!=null?_0x193cd5:'','function':_0xae4965,'unitId':_0x163a08[_0x3038d3(0x90)](),'argsOfFunction':JSON[_0x3038d3(0xff)](_0x465e95),'invokeId':(_0x59b5b3=_0x16543f['invokeId'])!=null?_0x59b5b3:'','executionId':(_0x57d416=_0x16543f[_0x3038d3(0x1ea)])!=null?_0x57d416:''};try{const _0x1201ad=await this[_0x3038d3(0x21b)][_0x3038d3(0x235)](_0x6b7b66,{'body':_0x23ad41});return _0x1201ad[_0x3038d3(0x15f)][_0x3038d3(0x154)]&&_0x1201ad['body'][_0x3038d3(0x154)]['code']!==Z['OK']?_0x3038d3(0xb9):_0x1201ad[_0x3038d3(0x15f)][_0x3038d3(0x18e)];}catch{return _0x3038d3(0xb9);}}};_t=yn([be(0x0,_0x30c7ee),be(0x1,_0x388393(_0x345138)),be(0x2,_0x6a4de3)],_t);const lt=0x7530,ht=_0x517afa(0x22c);class tr extends _0x4057f7{constructor(){const _0x4c1c38=_0x517afa;super(),l(this,_0x4c1c38(0x1f1),_0x24b861()),l(this,_0x4c1c38(0x1ac),new Set()),l(this,_0x4c1c38(0x9a),new Map()),l(this,_0x4c1c38(0x134),null),l(this,_0x4c1c38(0x1fd),new Map()),l(this,_0x4c1c38(0x1c8),new Map()),this['_init']();}[_0x517afa(0x121)](){const _0x520346=_0x517afa;super[_0x520346(0x121)](),this[_0x520346(0x1fd)][_0x520346(0x17f)]((_0xbf1db2,_0x165190)=>this[_0x520346(0x148)](_0x165190)),this[_0x520346(0x134)]&&window[_0x520346(0xe7)](this[_0x520346(0x134)]);}['getUnitStatus$'](_0x53e614){return this['_ensureSubject'](_0x53e614)['pipe'](_0xfe7dd9());}[_0x517afa(0x265)](_0x135c13){const _0x39a802=_0x517afa;this[_0x39a802(0x1ac)][_0x39a802(0xf2)]===0x0&&this['_scheduleHeartbeat'](),this[_0x39a802(0x1ac)][_0x39a802(0xef)](_0x135c13),this[_0x39a802(0x174)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x135c13],'isForwarded':!0x1});}[_0x517afa(0xcc)](_0x856fa3){const _0x211217=_0x517afa;this['_selfUnitIDs'][_0x211217(0x26d)](_0x856fa3),this[_0x211217(0x1ac)][_0x211217(0xf2)]===0x0&&this[_0x211217(0x134)]&&window['clearInterval'](this[_0x211217(0x134)]);}['_init'](){const _0x54dbb8=_0x517afa;this[_0x54dbb8(0x161)](_0x5d128c(_0x258e3e(window,_0x54dbb8(0x1a6))['subscribe'](_0x57c6e5=>{const _0x5600b9=_0x54dbb8;if(_0x57c6e5[_0x5600b9(0x1a1)]!==ht||!_0x57c6e5[_0x5600b9(0xb6)])return;const _0x12f928=JSON[_0x5600b9(0x1a2)](_0x57c6e5[_0x5600b9(0xb6)]);this['_handleEvent'](_0x12f928);}))),window['addEventListener'](_0x54dbb8(0xd4),()=>this[_0x54dbb8(0x174)]({'type':0x1,'memberID':this[_0x54dbb8(0x1f1)],'unitIDs':Array[_0x54dbb8(0x1cd)](this[_0x54dbb8(0x1ac)])}));}[_0x517afa(0x1d3)](_0x277228){const _0x2bc802=_0x517afa;switch(_0x277228[_0x2bc802(0x7e)]){case 0x0:this[_0x2bc802(0x251)](_0x277228);break;case 0x1:this[_0x2bc802(0x240)](_0x277228);break;case 0x2:this['_handleHeartbeatEvent'](_0x277228);break;}}[_0x517afa(0x251)](_0x41631c){const _0x28cd09=_0x517afa,{unitIDs:_0x3fcd1b,memberID:_0x322d0d,isForwarded:_0x3561e7}=_0x41631c;_0x3fcd1b[_0x28cd09(0x17f)](_0x234857=>{const _0x35277b=_0x28cd09;if(!_0x3561e7&&this[_0x35277b(0x9a)]['has'](_0x234857)&&this['_ensureSubject'](_0x234857)['next'](_0x182996['OTHER_CLIENTS_EDITING']),!this[_0x35277b(0x9a)][_0x35277b(0x248)](_0x234857)||!this[_0x35277b(0x9a)][_0x35277b(0x19b)](_0x234857)[_0x35277b(0x248)](_0x322d0d)){const _0x30e2e4=this['_unitOnClients']['get'](_0x234857)||new Set();_0x30e2e4[_0x35277b(0xef)](_0x322d0d),this[_0x35277b(0x9a)][_0x35277b(0x11e)](_0x234857,_0x30e2e4),this[_0x35277b(0x175)](_0x322d0d);}}),_0x3561e7||this[_0x28cd09(0x174)]({'type':0x0,'memberID':this[_0x28cd09(0x1f1)],'unitIDs':[...this[_0x28cd09(0x1ac)]],'isForwarded':!0x0});}[_0x517afa(0x175)](_0x16f577){const _0x1dca94=_0x517afa;this[_0x1dca94(0x148)](_0x16f577);const _0x3d05b3=window[_0x1dca94(0x1cf)](()=>{const _0x396a66=_0x1dca94;this['_unitOnClients'][_0x396a66(0x17f)](_0x1c1128=>{_0x1c1128['delete'](_0x16f577);});},lt*0x2);this[_0x1dca94(0x1fd)]['set'](_0x16f577,_0x3d05b3);}[_0x517afa(0x148)](_0x4de560){const _0x105f79=_0x517afa;if(this[_0x105f79(0x1fd)]['has'](_0x4de560)){const _0x53e76c=this[_0x105f79(0x1fd)][_0x105f79(0x19b)](_0x4de560);_0x53e76c&&window[_0x105f79(0xbe)](_0x53e76c),this['_clearOtherTimers'][_0x105f79(0x11e)](_0x4de560,null);}}[_0x517afa(0x240)](_0x5a6670){const _0xec18cf=_0x517afa,{memberID:_0x3560e0,unitIDs:_0x5cb6f8}=_0x5a6670;_0x5cb6f8[_0xec18cf(0x17f)](_0x4b52e0=>{const _0x7cf082=_0xec18cf;var _0x2e045e;const _0x18a1d7=this[_0x7cf082(0x9a)]['get'](_0x4b52e0);_0x18a1d7&&(_0x18a1d7[_0x7cf082(0x26d)](_0x3560e0),(_0x2e045e=this[_0x7cf082(0x241)](_0x4b52e0))==null||_0x2e045e[_0x7cf082(0xb2)](_0x18a1d7['size']===0x0?_0x182996[_0x7cf082(0x102)]:_0x182996[_0x7cf082(0x159)]));}),this[_0xec18cf(0x148)](_0x3560e0);}['_handleHeartbeatEvent'](_0x57da80){const _0x41e076=_0x517afa;this[_0x41e076(0x175)](_0x57da80['memberID']);}[_0x517afa(0x174)](_0x347b81){const _0x2992a6=_0x517afa;localStorage[_0x2992a6(0x18d)](ht,JSON['stringify'](_0x347b81));}[_0x517afa(0x18c)](){const _0x4d3b59=_0x517afa;this[_0x4d3b59(0x134)]=window[_0x4d3b59(0x297)](()=>{const _0xc57d32=_0x4d3b59;this['_send']({'type':0x2,'memberID':this[_0xc57d32(0x1f1)]});},lt);}[_0x517afa(0x241)](_0x32e38e){const _0x232c48=_0x517afa;return this[_0x232c48(0x1c8)][_0x232c48(0x248)](_0x32e38e)||this[_0x232c48(0x1c8)]['set'](_0x32e38e,new _0x340b13(_0x182996[_0x232c48(0x102)])),this[_0x232c48(0x1c8)][_0x232c48(0x19b)](_0x32e38e);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|